From 110d2b79344eded7252d0985068e624464697a02 Mon Sep 17 00:00:00 2001 From: Will Howes Date: Fri, 12 Jun 2026 23:07:15 +0000 Subject: [PATCH 01/82] feat: enable self-signed JWTs by default in ServiceOptions (#13338) This should improve efficiency/reliability by avoiding OAuth token exchange - see https://google.aip.dev/auth/4111. BigQueryOptions (b/523372553) and StorageOptions (b/523372960) are disabled by default for now. --- .../cloud/bigquery/BigQueryOptions.java | 4 +- .../cloud/bigquery/BigQueryOptionsTest.java | 7 ++++ .../google/cloud/storage/StorageOptions.java | 4 +- .../storage/StorageOptionsBuilderTest.java | 9 +++++ .../java/com/google/cloud/ServiceOptions.java | 30 ++++++++++++++ .../com/google/cloud/ServiceOptionsTest.java | 40 +++++++++++++++++++ 6 files changed, 92 insertions(+), 2 deletions(-) diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryOptions.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryOptions.java index 8ac4c622a91c..b8b7994f8775 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryOptions.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryOptions.java @@ -77,7 +77,9 @@ public static class Builder extends ServiceOptions.Builder resultRetryAlgorithm; - private Builder() {} + private Builder() { + setUseJwtAccessWithScope(false); + } private Builder(BigQueryOptions options) { super(options); diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryOptionsTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryOptionsTest.java index 050deba4af16..49d6f6fe031f 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryOptionsTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryOptionsTest.java @@ -92,4 +92,11 @@ void dataFormatOptionsSetterHasPrecedence() { assertTrue(options.getDataFormatOptions().useInt64Timestamp()); } + + @Test + void testUseJwtAccessWithScope_defaultsToFalse() { + BigQueryOptions options = BigQueryOptions.newBuilder().setProjectId("project-id").build(); + + assertFalse(options.getUseJwtAccessWithScope()); + } } diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/StorageOptions.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/StorageOptions.java index 723a11dc34ce..97eecedaeef1 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/StorageOptions.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/StorageOptions.java @@ -112,7 +112,9 @@ public DefaultStorageRpcFactory() { public abstract static class Builder extends ServiceOptions.Builder { - Builder() {} + Builder() { + setUseJwtAccessWithScope(false); + } Builder(StorageOptions options) { super(options); diff --git a/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/StorageOptionsBuilderTest.java b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/StorageOptionsBuilderTest.java index 4601a3b2e8df..240040519635 100644 --- a/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/StorageOptionsBuilderTest.java +++ b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/StorageOptionsBuilderTest.java @@ -69,6 +69,15 @@ public void grpc() throws Exception { () -> assertThat(rebuilt.hashCode()).isEqualTo(base.hashCode())); } + @Test + public void useJwtAccessWithScope_defaultsToFalse() { + HttpStorageOptions httpOptions = HttpStorageOptions.http().build(); + GrpcStorageOptions grpcOptions = GrpcStorageOptions.grpc().build(); + + assertThat(httpOptions.getUseJwtAccessWithScope()).isFalse(); + assertThat(grpcOptions.getUseJwtAccessWithScope()).isFalse(); + } + private static class MyStorageRetryStrategy implements StorageRetryStrategy { @Override diff --git a/sdk-platform-java/java-core/google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java b/sdk-platform-java/java-core/google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java index 92aaa9d6a9e1..89f96f4e38d8 100644 --- a/sdk-platform-java/java-core/google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java +++ b/sdk-platform-java/java-core/google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java @@ -106,6 +106,7 @@ public abstract class ServiceOptions< private final TransportOptions transportOptions; private final HeaderProvider headerProvider; private final String quotaProjectId; + private final boolean useJwtAccessWithScope; private transient ServiceRpcFactory serviceRpcFactory; private transient ServiceFactory serviceFactory; @@ -140,6 +141,7 @@ public abstract static class Builder< private HeaderProvider headerProvider; private String clientLibToken = ServiceOptions.getGoogApiClientLibName(); private String quotaProjectId; + private boolean useJwtAccessWithScope = true; private ApiTracerFactory apiTracerFactory; @@ -159,6 +161,7 @@ protected Builder(ServiceOptions options) { transportOptions = options.transportOptions; clientLibToken = options.clientLibToken; quotaProjectId = options.quotaProjectId; + useJwtAccessWithScope = options.useJwtAccessWithScope; apiTracerFactory = options.apiTracerFactory; } @@ -313,6 +316,18 @@ public B setQuotaProjectId(String quotaProjectId) { return self(); } + /** + * Sets the configuration determining whether self-signed JWT with scopes are used for service + * account credentials. + * + * @param useJwtAccessWithScope whether to use self-signed JWT with scopes + * @return the builder + */ + public B setUseJwtAccessWithScope(final boolean useJwtAccessWithScope) { + this.useJwtAccessWithScope = useJwtAccessWithScope; + return self(); + } + /** * Sets the {@link ApiTracerFactory}. It will be used to create an {@link ApiTracer} that is * annotated throughout the lifecycle of an RPC operation. @@ -365,6 +380,7 @@ protected ServiceOptions( builder.quotaProjectId != null ? builder.quotaProjectId : getValueFromCredentialsFile(getCredentialsPath(), "quota_project_id"); + useJwtAccessWithScope = builder.useJwtAccessWithScope; apiTracerFactory = builder.apiTracerFactory; } @@ -650,6 +666,11 @@ public Credentials getScopedCredentials() { && ((GoogleCredentials) credentials).createScopedRequired()) { credentialsToReturn = ((GoogleCredentials) credentials).createScoped(getScopes()); } + if (credentialsToReturn instanceof ServiceAccountCredentials) { + credentialsToReturn = + ((ServiceAccountCredentials) credentialsToReturn) + .createWithUseJwtAccessWithScope(getUseJwtAccessWithScope()); + } return credentialsToReturn; } @@ -823,6 +844,15 @@ public String getQuotaProjectId() { return quotaProjectId; } + /** + * Returns true when self-signed JWT with scopes are used for service account credentials. + * + * @return true when self-signed JWT with scopes are used + */ + public boolean getUseJwtAccessWithScope() { + return useJwtAccessWithScope; + } + /** * Returns the resolved host for the Service to connect to Google Cloud * diff --git a/sdk-platform-java/java-core/google-cloud-core/src/test/java/com/google/cloud/ServiceOptionsTest.java b/sdk-platform-java/java-core/google-cloud-core/src/test/java/com/google/cloud/ServiceOptionsTest.java index eb8eab37b2a6..3c11ba0eeefa 100644 --- a/sdk-platform-java/java-core/google-cloud-core/src/test/java/com/google/cloud/ServiceOptionsTest.java +++ b/sdk-platform-java/java-core/google-cloud-core/src/test/java/com/google/cloud/ServiceOptionsTest.java @@ -630,6 +630,46 @@ void testIsValidUniverseDomain_userUniverseDomainConfig_nonGDUCredentials() thro assertThat(options.hasValidUniverseDomain()).isTrue(); } + @Test + void testGetScopedCredentials_useJwtAccessWithScope_enablesByDefault() { + TestServiceOptions options = + TestServiceOptions.newBuilder() + .setProjectId("project-id") + .setCredentials(credentials) + .build(); + com.google.auth.Credentials scoped = options.getScopedCredentials(); + assertThat(scoped).isInstanceOf(ServiceAccountCredentials.class); + assertThat(((ServiceAccountCredentials) scoped).getUseJwtAccessWithScope()).isTrue(); + } + + @Test + void testGetScopedCredentials_useJwtAccessWithScope_canBeDisabled() { + TestServiceOptions options = + new TestServiceOptions.Builder() + .setProjectId("project-id") + .setCredentials(credentials) + .setUseJwtAccessWithScope(false) + .build(); + com.google.auth.Credentials scoped = options.getScopedCredentials(); + assertThat(scoped).isInstanceOf(ServiceAccountCredentials.class); + assertThat(((ServiceAccountCredentials) scoped).getUseJwtAccessWithScope()).isFalse(); + } + + @Test + void testGetScopedCredentials_useJwtAccessWithScope_overridesCredentials() { + ServiceAccountCredentials trueCredentials = + ((ServiceAccountCredentials) credentials).createWithUseJwtAccessWithScope(true); + TestServiceOptions options = + new TestServiceOptions.Builder() + .setProjectId("project-id") + .setCredentials(trueCredentials) + .setUseJwtAccessWithScope(false) + .build(); + com.google.auth.Credentials scoped = options.getScopedCredentials(); + assertThat(scoped).isInstanceOf(ServiceAccountCredentials.class); + assertThat(((ServiceAccountCredentials) scoped).getUseJwtAccessWithScope()).isFalse(); + } + private HttpResponse createHttpResponseWithHeader(final Multimap headers) throws Exception { HttpTransport mockHttpTransport = From 05c2a56b2f165b1aff72e8062458b17e5847be1d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Sat, 13 Jun 2026 02:21:52 -0400 Subject: [PATCH 02/82] chore(main): release 1.88.0-SNAPSHOT (#13456) :robot: I have created a release *beep* *boop* ---
1.88.0-SNAPSHOT ### Updating meta-information for bleeding-edge SNAPSHOT release.
--- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> --- WORKSPACE | 2 +- gapic-libraries-bom/pom.xml | 440 ++-- google-auth-library-java/appengine/pom.xml | 2 +- google-auth-library-java/bom/pom.xml | 10 +- .../cab-token-generator/pom.xml | 2 +- google-auth-library-java/credentials/pom.xml | 2 +- google-auth-library-java/oauth2_http/pom.xml | 2 +- google-auth-library-java/pom.xml | 4 +- google-cloud-jar-parent/pom.xml | 8 +- google-cloud-pom-parent/pom.xml | 4 +- grpc-gcp-java/pom.xml | 6 +- .../google-cloud-accessapproval-bom/pom.xml | 10 +- .../google-cloud-accessapproval/pom.xml | 4 +- .../cloud/accessapproval/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-accessapproval/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 12 +- .../pom.xml | 4 +- .../accesscontextmanager/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-accesscontextmanager/pom.xml | 12 +- .../pom.xml | 4 +- .../pom.xml | 6 +- java-admanager/ad-manager-bom/pom.xml | 8 +- java-admanager/ad-manager/pom.xml | 4 +- .../google/ads/admanager/v1/stub/Version.java | 2 +- java-admanager/pom.xml | 8 +- java-admanager/proto-ad-manager-v1/pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-advisorynotifications/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-aiplatform-bom/pom.xml | 14 +- .../google-cloud-aiplatform/pom.xml | 4 +- .../cloud/aiplatform/v1/stub/Version.java | 2 +- .../aiplatform/v1beta1/stub/Version.java | 2 +- .../grpc-google-cloud-aiplatform-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-aiplatform/pom.xml | 14 +- .../proto-google-cloud-aiplatform-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 12 +- .../google-cloud-alloydb-connectors/pom.xml | 4 +- java-alloydb-connectors/pom.xml | 12 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-alloydb/google-cloud-alloydb-bom/pom.xml | 18 +- java-alloydb/google-cloud-alloydb/pom.xml | 4 +- .../google/cloud/alloydb/v1/stub/Version.java | 2 +- .../cloud/alloydb/v1alpha/stub/Version.java | 2 +- .../cloud/alloydb/v1beta/stub/Version.java | 2 +- .../grpc-google-cloud-alloydb-v1/pom.xml | 4 +- .../grpc-google-cloud-alloydb-v1alpha/pom.xml | 4 +- .../grpc-google-cloud-alloydb-v1beta/pom.xml | 4 +- java-alloydb/pom.xml | 18 +- .../proto-google-cloud-alloydb-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-alloydb-v1beta/pom.xml | 4 +- .../google-analytics-admin-bom/pom.xml | 14 +- .../google-analytics-admin/pom.xml | 4 +- .../analytics/admin/v1alpha/stub/Version.java | 2 +- .../analytics/admin/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-analytics-admin/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-analytics-data-bom/pom.xml | 14 +- .../google-analytics-data/pom.xml | 4 +- .../analytics/data/v1alpha/stub/Version.java | 2 +- .../analytics/data/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../grpc-google-analytics-data-v1beta/pom.xml | 4 +- java-analytics-data/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-analyticshub-bom/pom.xml | 10 +- .../google-cloud-analyticshub/pom.xml | 4 +- .../analyticshub/v1/stub/Version.java | 2 +- .../grpc-google-cloud-analyticshub-v1/pom.xml | 4 +- java-analyticshub/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-api-gateway-bom/pom.xml | 10 +- .../google-cloud-api-gateway/pom.xml | 4 +- .../cloud/apigateway/v1/stub/Version.java | 2 +- .../grpc-google-cloud-api-gateway-v1/pom.xml | 4 +- java-api-gateway/pom.xml | 10 +- .../proto-google-cloud-api-gateway-v1/pom.xml | 4 +- .../google-cloud-apigee-connect-bom/pom.xml | 10 +- .../google-cloud-apigee-connect/pom.xml | 4 +- .../cloud/apigeeconnect/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-apigee-connect/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-apigee-registry-bom/pom.xml | 10 +- .../google-cloud-apigee-registry/pom.xml | 4 +- .../cloud/apigeeregistry/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-apigee-registry/pom.xml | 10 +- .../pom.xml | 4 +- java-apihub/google-cloud-apihub-bom/pom.xml | 8 +- java-apihub/google-cloud-apihub/pom.xml | 4 +- .../google/cloud/apihub/v1/stub/Version.java | 2 +- java-apihub/pom.xml | 8 +- .../proto-google-cloud-apihub-v1/pom.xml | 4 +- java-apikeys/google-cloud-apikeys-bom/pom.xml | 10 +- java-apikeys/google-cloud-apikeys/pom.xml | 4 +- .../google/api/apikeys/v2/stub/Version.java | 2 +- .../grpc-google-cloud-apikeys-v2/pom.xml | 4 +- java-apikeys/pom.xml | 10 +- .../proto-google-cloud-apikeys-v2/pom.xml | 4 +- .../google-cloud-appengine-admin-bom/pom.xml | 10 +- .../google-cloud-appengine-admin/pom.xml | 4 +- .../com/google/appengine/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-appengine-admin/pom.xml | 10 +- .../pom.xml | 4 +- java-apphub/google-cloud-apphub-bom/pom.xml | 10 +- java-apphub/google-cloud-apphub/pom.xml | 4 +- .../google/cloud/apphub/v1/stub/Version.java | 2 +- .../grpc-google-cloud-apphub-v1/pom.xml | 4 +- java-apphub/pom.xml | 10 +- .../proto-google-cloud-apphub-v1/pom.xml | 4 +- .../google-cloud-appoptimize-bom/pom.xml | 10 +- .../google-cloud-appoptimize/pom.xml | 4 +- .../appoptimize/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- java-appoptimize/pom.xml | 10 +- .../pom.xml | 4 +- .../google-area120-tables-bom/pom.xml | 10 +- .../google-area120-tables/pom.xml | 4 +- .../area120/tables/v1alpha/stub/Version.java | 2 +- .../pom.xml | 4 +- java-area120-tables/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-artifact-registry/pom.xml | 4 +- .../artifactregistry/v1/stub/Version.java | 2 +- .../v1beta2/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-artifact-registry/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-asset/google-cloud-asset-bom/pom.xml | 26 +- java-asset/google-cloud-asset/pom.xml | 4 +- .../google/cloud/asset/v1/stub/Version.java | 2 +- .../cloud/asset/v1p1beta1/stub/Version.java | 2 +- .../cloud/asset/v1p2beta1/stub/Version.java | 2 +- .../cloud/asset/v1p5beta1/stub/Version.java | 2 +- .../cloud/asset/v1p7beta1/stub/Version.java | 2 +- java-asset/grpc-google-cloud-asset-v1/pom.xml | 4 +- .../grpc-google-cloud-asset-v1p1beta1/pom.xml | 4 +- .../grpc-google-cloud-asset-v1p2beta1/pom.xml | 4 +- .../grpc-google-cloud-asset-v1p5beta1/pom.xml | 4 +- .../grpc-google-cloud-asset-v1p7beta1/pom.xml | 4 +- java-asset/pom.xml | 34 +- .../proto-google-cloud-asset-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-assured-workloads/pom.xml | 4 +- .../assuredworkloads/v1/stub/Version.java | 2 +- .../v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-assured-workloads/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-auditmanager-bom/pom.xml | 10 +- .../google-cloud-auditmanager/pom.xml | 4 +- .../cloud/auditmanager/v1/stub/Version.java | 2 +- .../grpc-google-cloud-auditmanager-v1/pom.xml | 4 +- java-auditmanager/pom.xml | 10 +- .../pom.xml | 4 +- java-automl/google-cloud-automl-bom/pom.xml | 14 +- java-automl/google-cloud-automl/pom.xml | 4 +- .../google/cloud/automl/v1/stub/Version.java | 2 +- .../cloud/automl/v1beta1/stub/Version.java | 2 +- .../grpc-google-cloud-automl-v1/pom.xml | 4 +- .../grpc-google-cloud-automl-v1beta1/pom.xml | 4 +- java-automl/pom.xml | 14 +- .../proto-google-cloud-automl-v1/pom.xml | 4 +- .../proto-google-cloud-automl-v1beta1/pom.xml | 4 +- .../google-cloud-backstory-bom/pom.xml | 8 +- java-backstory/google-cloud-backstory/pom.xml | 4 +- java-backstory/pom.xml | 8 +- .../proto-google-cloud-backstory/pom.xml | 4 +- .../google-cloud-backupdr-bom/pom.xml | 10 +- java-backupdr/google-cloud-backupdr/pom.xml | 4 +- .../cloud/backupdr/v1/stub/Version.java | 2 +- .../grpc-google-cloud-backupdr-v1/pom.xml | 4 +- java-backupdr/pom.xml | 10 +- .../proto-google-cloud-backupdr-v1/pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-bare-metal-solution/pom.xml | 4 +- .../baremetalsolution/v2/stub/Version.java | 2 +- .../pom.xml | 4 +- java-bare-metal-solution/pom.xml | 10 +- .../pom.xml | 4 +- java-batch/google-cloud-batch-bom/pom.xml | 14 +- java-batch/google-cloud-batch/pom.xml | 4 +- .../google/cloud/batch/v1/stub/Version.java | 2 +- .../cloud/batch/v1alpha/stub/Version.java | 2 +- java-batch/grpc-google-cloud-batch-v1/pom.xml | 4 +- .../grpc-google-cloud-batch-v1alpha/pom.xml | 4 +- java-batch/pom.xml | 14 +- .../proto-google-cloud-batch-v1/pom.xml | 4 +- .../proto-google-cloud-batch-v1alpha/pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../appconnections/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-beyondcorp-appconnections/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../appconnectors/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-beyondcorp-appconnectors/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../appgateways/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-beyondcorp-appgateways/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../v1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../clientgateways/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-beyondcorp-clientgateways/pom.xml | 10 +- .../pom.xml | 4 +- java-biglake/google-cloud-biglake-bom/pom.xml | 18 +- java-biglake/google-cloud-biglake/pom.xml | 4 +- .../biglake/hive/v1beta/stub/Version.java | 2 +- .../google/cloud/biglake/v1/stub/Version.java | 2 +- .../bigquery/biglake/v1/stub/Version.java | 2 +- .../biglake/v1alpha1/stub/Version.java | 2 +- .../grpc-google-cloud-biglake-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-biglake-v1beta/pom.xml | 4 +- java-biglake/pom.xml | 18 +- .../proto-google-cloud-biglake-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-biglake-v1beta/pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../dataexchange/v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-bigquery-data-exchange/pom.xml | 10 +- .../pom.xml | 4 +- java-bigquery-jdbc/pom.xml | 10 +- java-bigquery/benchmark/pom.xml | 4 +- .../google-cloud-bigquery-bom/pom.xml | 6 +- java-bigquery/google-cloud-bigquery/pom.xml | 18 +- .../cloud/bigquery/telemetry/Version.java | 2 +- java-bigquery/pom.xml | 12 +- java-bigquery/samples/snapshot/pom.xml | 2 +- .../pom.xml | 14 +- .../google-cloud-bigqueryconnection/pom.xml | 4 +- .../connection/v1beta1/stub/Version.java | 2 +- .../bigqueryconnection/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-bigqueryconnection/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 22 +- .../google-cloud-bigquerydatapolicy/pom.xml | 4 +- .../datapolicies/v1/stub/Version.java | 2 +- .../datapolicies/v1beta1/stub/Version.java | 2 +- .../datapolicies/v2/stub/Version.java | 2 +- .../datapolicies/v2beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-bigquerydatapolicy/pom.xml | 22 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-bigquerydatatransfer/pom.xml | 4 +- .../datatransfer/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-bigquerydatatransfer/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-bigquerymigration/pom.xml | 4 +- .../bigquery/migration/v2/stub/Version.java | 2 +- .../migration/v2alpha/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-bigquerymigration/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-bigqueryreservation/pom.xml | 4 +- .../bigquery/reservation/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-bigqueryreservation/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-bigquerystorage-bom/pom.xml | 26 +- .../google-cloud-bigquerystorage/pom.xml | 4 +- .../bigquery/storage/v1/stub/Version.java | 2 +- .../storage/v1alpha/stub/Version.java | 2 +- .../bigquery/storage/v1beta/stub/Version.java | 2 +- .../storage/v1beta1/stub/Version.java | 2 +- .../storage/v1beta2/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-bigquerystorage/pom.xml | 26 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-bigquerystorage/samples/snapshot/pom.xml | 2 +- .../google-cloud-bigtable-bom/pom.xml | 18 +- .../google-cloud-bigtable-deps-bom/pom.xml | 8 +- .../pom.xml | 4 +- .../google-cloud-bigtable-emulator/pom.xml | 10 +- java-bigtable/google-cloud-bigtable/pom.xml | 10 +- .../com/google/cloud/bigtable/Version.java | 2 +- .../cloud/bigtable/admin/v2/stub/Version.java | 2 +- .../cloud/bigtable/data/v2/stub/Version.java | 2 +- .../pom.xml | 8 +- .../grpc-google-cloud-bigtable-v2/pom.xml | 8 +- java-bigtable/pom.xml | 14 +- .../pom.xml | 8 +- .../proto-google-cloud-bigtable-v2/pom.xml | 8 +- java-bigtable/samples/snapshot/pom.xml | 2 +- java-bigtable/test-proxy/pom.xml | 4 +- java-billing/google-cloud-billing-bom/pom.xml | 10 +- java-billing/google-cloud-billing/pom.xml | 4 +- .../google/cloud/billing/v1/stub/Version.java | 2 +- .../grpc-google-cloud-billing-v1/pom.xml | 4 +- java-billing/pom.xml | 10 +- .../proto-google-cloud-billing-v1/pom.xml | 4 +- .../google-cloud-billingbudgets-bom/pom.xml | 14 +- .../google-cloud-billingbudgets/pom.xml | 4 +- .../billing/budgets/v1/stub/Version.java | 2 +- .../billing/budgets/v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-billingbudgets/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-binary-authorization/pom.xml | 4 +- .../v1beta1/stub/Version.java | 2 +- .../binaryauthorization/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-binary-authorization/pom.xml | 16 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-capacityplanner-bom/pom.xml | 10 +- .../google-cloud-capacityplanner/pom.xml | 4 +- .../capacityplanner/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- java-capacityplanner/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-certificate-manager/pom.xml | 4 +- .../certificatemanager/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-certificate-manager/pom.xml | 10 +- .../pom.xml | 4 +- java-ces/google-cloud-ces-bom/pom.xml | 14 +- java-ces/google-cloud-ces/pom.xml | 4 +- .../com/google/cloud/ces/v1/stub/Version.java | 2 +- .../google/cloud/ces/v1beta/stub/Version.java | 2 +- java-ces/grpc-google-cloud-ces-v1/pom.xml | 4 +- java-ces/grpc-google-cloud-ces-v1beta/pom.xml | 4 +- java-ces/pom.xml | 14 +- java-ces/proto-google-cloud-ces-v1/pom.xml | 4 +- .../proto-google-cloud-ces-v1beta/pom.xml | 4 +- java-channel/google-cloud-channel-bom/pom.xml | 10 +- java-channel/google-cloud-channel/pom.xml | 4 +- .../google/cloud/channel/v1/stub/Version.java | 2 +- .../grpc-google-cloud-channel-v1/pom.xml | 4 +- java-channel/pom.xml | 10 +- .../proto-google-cloud-channel-v1/pom.xml | 4 +- java-chat/google-cloud-chat-bom/pom.xml | 10 +- java-chat/google-cloud-chat/pom.xml | 4 +- .../java/com/google/chat/v1/stub/Version.java | 2 +- java-chat/grpc-google-cloud-chat-v1/pom.xml | 4 +- java-chat/pom.xml | 10 +- java-chat/proto-google-cloud-chat-v1/pom.xml | 4 +- .../google-cloud-chronicle-bom/pom.xml | 10 +- java-chronicle/google-cloud-chronicle/pom.xml | 4 +- .../cloud/chronicle/v1/stub/Version.java | 2 +- .../grpc-google-cloud-chronicle-v1/pom.xml | 4 +- java-chronicle/pom.xml | 10 +- .../proto-google-cloud-chronicle-v1/pom.xml | 4 +- .../google-cloud-cloudapiregistry-bom/pom.xml | 14 +- .../google-cloud-cloudapiregistry/pom.xml | 4 +- .../cloud/apiregistry/v1/stub/Version.java | 2 +- .../apiregistry/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-cloudapiregistry/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-build-bom/pom.xml | 14 +- java-cloudbuild/google-cloud-build/pom.xml | 4 +- .../devtools/cloudbuild/v1/stub/Version.java | 2 +- .../devtools/cloudbuild/v2/stub/Version.java | 2 +- .../grpc-google-cloud-build-v1/pom.xml | 4 +- .../grpc-google-cloud-build-v2/pom.xml | 4 +- java-cloudbuild/pom.xml | 14 +- .../proto-google-cloud-build-v1/pom.xml | 4 +- .../proto-google-cloud-build-v2/pom.xml | 4 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../consumer/procurement/v1/stub/Version.java | 2 +- .../procurement/v1alpha1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-cloudcommerceconsumerprocurement/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-cloudcontrolspartner/pom.xml | 4 +- .../cloudcontrolspartner/v1/stub/Version.java | 2 +- .../v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-cloudcontrolspartner/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-cloudquotas-bom/pom.xml | 14 +- .../google-cloud-cloudquotas/pom.xml | 4 +- .../api/cloudquotas/v1/stub/Version.java | 2 +- .../api/cloudquotas/v1beta/stub/Version.java | 2 +- .../grpc-google-cloud-cloudquotas-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-cloudquotas/pom.xml | 14 +- .../proto-google-cloud-cloudquotas-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-cloudsecuritycompliance/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-cloudsupport-bom/pom.xml | 14 +- .../google-cloud-cloudsupport/pom.xml | 4 +- .../google/cloud/support/v2/stub/Version.java | 2 +- .../cloud/support/v2beta/stub/Version.java | 2 +- .../grpc-google-cloud-cloudsupport-v2/pom.xml | 4 +- .../pom.xml | 4 +- java-cloudsupport/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-common-protos/pom.xml | 4 +- java-common-protos/pom.xml | 10 +- .../proto-google-common-protos/pom.xml | 4 +- java-compute/google-cloud-compute-bom/pom.xml | 8 +- java-compute/google-cloud-compute/pom.xml | 8 +- .../google/cloud/compute/v1/stub/Version.java | 2 +- java-compute/pom.xml | 8 +- .../proto-google-cloud-compute-v1/pom.xml | 4 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../v1/stub/Version.java | 2 +- .../v1alpha1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-confidentialcomputing/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-configdelivery-bom/pom.xml | 14 +- .../google-cloud-configdelivery/pom.xml | 4 +- .../cloud/configdelivery/v1/stub/Version.java | 2 +- .../configdelivery/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-configdelivery/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-connectgateway-bom/pom.xml | 8 +- .../google-cloud-connectgateway/pom.xml | 4 +- .../gkeconnect/gateway/v1/stub/Version.java | 2 +- java-connectgateway/pom.xml | 8 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-contact-center-insights/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-container-bom/pom.xml | 14 +- java-container/google-cloud-container/pom.xml | 4 +- .../cloud/container/v1/stub/Version.java | 2 +- .../cloud/container/v1beta1/stub/Version.java | 2 +- .../grpc-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-container/pom.xml | 14 +- .../proto-google-cloud-container-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-containeranalysis/pom.xml | 4 +- .../containeranalysis/v1/stub/Version.java | 2 +- .../v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-containeranalysis/pom.xml | 16 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-contentwarehouse-bom/pom.xml | 10 +- .../google-cloud-contentwarehouse/pom.xml | 4 +- .../contentwarehouse/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-contentwarehouse/pom.xml | 12 +- .../pom.xml | 4 +- .../google-cloud-data-fusion-bom/pom.xml | 14 +- .../google-cloud-data-fusion/pom.xml | 4 +- .../cloud/datafusion/v1/stub/Version.java | 2 +- .../datafusion/v1beta1/stub/Version.java | 2 +- .../grpc-google-cloud-data-fusion-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-data-fusion/pom.xml | 14 +- .../proto-google-cloud-data-fusion-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-databasecenter-bom/pom.xml | 10 +- .../google-cloud-databasecenter/pom.xml | 4 +- .../databasecenter/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- java-databasecenter/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-datacatalog-bom/pom.xml | 14 +- .../google-cloud-datacatalog/pom.xml | 4 +- .../cloud/datacatalog/v1/stub/Version.java | 2 +- .../datacatalog/v1beta1/stub/Version.java | 2 +- .../grpc-google-cloud-datacatalog-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-datacatalog/pom.xml | 14 +- .../proto-google-cloud-datacatalog-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-dataflow-bom/pom.xml | 10 +- java-dataflow/google-cloud-dataflow/pom.xml | 4 +- .../google/dataflow/v1beta3/stub/Version.java | 2 +- .../pom.xml | 4 +- java-dataflow/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-dataform-bom/pom.xml | 14 +- java-dataform/google-cloud-dataform/pom.xml | 4 +- .../cloud/dataform/v1/stub/Version.java | 2 +- .../cloud/dataform/v1beta1/stub/Version.java | 2 +- .../grpc-google-cloud-dataform-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-dataform/pom.xml | 14 +- .../proto-google-cloud-dataform-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-datalabeling-bom/pom.xml | 10 +- .../google-cloud-datalabeling/pom.xml | 4 +- .../datalabeling/v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-datalabeling/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-datalineage-bom/pom.xml | 10 +- .../google-cloud-datalineage/pom.xml | 4 +- .../configmanagement/v1/stub/Version.java | 2 +- .../datacatalog/lineage/v1/stub/Version.java | 2 +- .../grpc-google-cloud-datalineage-v1/pom.xml | 4 +- java-datalineage/pom.xml | 10 +- .../proto-google-cloud-datalineage-v1/pom.xml | 4 +- java-datamanager/data-manager-bom/pom.xml | 10 +- java-datamanager/data-manager/pom.xml | 4 +- .../ads/datamanager/v1/stub/Version.java | 2 +- java-datamanager/grpc-data-manager-v1/pom.xml | 4 +- java-datamanager/pom.xml | 10 +- .../proto-data-manager-v1/pom.xml | 4 +- .../google-cloud-dataplex-bom/pom.xml | 10 +- java-dataplex/google-cloud-dataplex/pom.xml | 4 +- .../cloud/dataplex/v1/stub/Version.java | 2 +- .../grpc-google-cloud-dataplex-v1/pom.xml | 4 +- java-dataplex/pom.xml | 10 +- .../proto-google-cloud-dataplex-v1/pom.xml | 4 +- .../pom.xml | 18 +- .../google-cloud-dataproc-metastore/pom.xml | 4 +- .../cloud/metastore/v1/stub/Version.java | 2 +- .../cloud/metastore/v1alpha/stub/Version.java | 2 +- .../cloud/metastore/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-dataproc-metastore/pom.xml | 18 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-dataproc-bom/pom.xml | 10 +- java-dataproc/google-cloud-dataproc/pom.xml | 4 +- .../cloud/dataproc/v1/stub/Version.java | 2 +- .../grpc-google-cloud-dataproc-v1/pom.xml | 4 +- java-dataproc/pom.xml | 10 +- .../proto-google-cloud-dataproc-v1/pom.xml | 4 +- java-datastore/README.md | 2 +- .../datastore-v1-proto-client/pom.xml | 4 +- .../google-cloud-datastore-bom/pom.xml | 14 +- .../google-cloud-datastore-utils/pom.xml | 4 +- java-datastore/google-cloud-datastore/pom.xml | 12 +- .../datastore/admin/v1/stub/Version.java | 2 +- .../cloud/datastore/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../grpc-google-cloud-datastore-v1/pom.xml | 4 +- java-datastore/pom.xml | 18 +- .../pom.xml | 4 +- .../proto-google-cloud-datastore-v1/pom.xml | 4 +- java-datastore/samples/snapshot/pom.xml | 2 +- java-datastore/samples/snippets/pom.xml | 2 +- .../google-cloud-datastream-bom/pom.xml | 14 +- .../google-cloud-datastream/pom.xml | 4 +- .../cloud/datastream/v1/stub/Version.java | 2 +- .../datastream/v1alpha1/stub/Version.java | 2 +- .../grpc-google-cloud-datastream-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-datastream/pom.xml | 14 +- .../proto-google-cloud-datastream-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-deploy/google-cloud-deploy-bom/pom.xml | 10 +- java-deploy/google-cloud-deploy/pom.xml | 4 +- .../google/cloud/deploy/v1/stub/Version.java | 2 +- .../grpc-google-cloud-deploy-v1/pom.xml | 4 +- java-deploy/pom.xml | 10 +- .../proto-google-cloud-deploy-v1/pom.xml | 4 +- .../google-cloud-developerconnect-bom/pom.xml | 10 +- .../google-cloud-developerconnect/pom.xml | 4 +- .../developerconnect/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-developerconnect/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-developer-knowledge/pom.xml | 4 +- .../developers/knowledge/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-developerknowledge/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-devicestreaming-bom/pom.xml | 10 +- .../google-cloud-devicestreaming/pom.xml | 4 +- .../devicestreaming/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-devicestreaming/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-dialogflow-cx-bom/pom.xml | 14 +- .../google-cloud-dialogflow-cx/pom.xml | 4 +- .../cloud/dialogflow/cx/v3/stub/Version.java | 2 +- .../dialogflow/cx/v3beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-dialogflow-cx/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-dialogflow-bom/pom.xml | 14 +- .../google-cloud-dialogflow/pom.xml | 4 +- .../cloud/dialogflow/v2/stub/Version.java | 2 +- .../dialogflow/v2beta1/stub/Version.java | 2 +- .../grpc-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- java-dialogflow/pom.xml | 14 +- .../proto-google-cloud-dialogflow-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-discoveryengine-bom/pom.xml | 18 +- .../google-cloud-discoveryengine/pom.xml | 4 +- .../discoveryengine/v1/stub/Version.java | 2 +- .../discoveryengine/v1alpha/stub/Version.java | 2 +- .../discoveryengine/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-discoveryengine/pom.xml | 18 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-distributedcloudedge/pom.xml | 4 +- .../cloud/edgecontainer/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-distributedcloudedge/pom.xml | 10 +- .../pom.xml | 4 +- java-dlp/google-cloud-dlp-bom/pom.xml | 10 +- java-dlp/google-cloud-dlp/pom.xml | 4 +- .../com/google/cloud/dlp/v2/stub/Version.java | 2 +- java-dlp/grpc-google-cloud-dlp-v2/pom.xml | 4 +- java-dlp/pom.xml | 10 +- java-dlp/proto-google-cloud-dlp-v2/pom.xml | 4 +- java-dms/google-cloud-dms-bom/pom.xml | 10 +- java-dms/google-cloud-dms/pom.xml | 4 +- .../cloud/clouddms/v1/stub/Version.java | 2 +- java-dms/grpc-google-cloud-dms-v1/pom.xml | 4 +- java-dms/pom.xml | 10 +- java-dms/proto-google-cloud-dms-v1/pom.xml | 4 +- java-dns/pom.xml | 4 +- .../google-cloud-document-ai-bom/pom.xml | 14 +- .../google-cloud-document-ai/pom.xml | 4 +- .../cloud/documentai/v1/stub/Version.java | 2 +- .../documentai/v1beta3/stub/Version.java | 2 +- .../grpc-google-cloud-document-ai-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-document-ai/pom.xml | 14 +- .../proto-google-cloud-document-ai-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-domains/google-cloud-domains-bom/pom.xml | 18 +- java-domains/google-cloud-domains/pom.xml | 4 +- .../google/cloud/domains/v1/stub/Version.java | 2 +- .../cloud/domains/v1alpha2/stub/Version.java | 2 +- .../cloud/domains/v1beta1/stub/Version.java | 2 +- .../grpc-google-cloud-domains-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-domains-v1beta1/pom.xml | 4 +- java-domains/pom.xml | 18 +- .../proto-google-cloud-domains-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-edgenetwork-bom/pom.xml | 10 +- .../google-cloud-edgenetwork/pom.xml | 4 +- .../cloud/edgenetwork/v1/stub/Version.java | 2 +- .../grpc-google-cloud-edgenetwork-v1/pom.xml | 4 +- java-edgenetwork/pom.xml | 10 +- .../proto-google-cloud-edgenetwork-v1/pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-enterpriseknowledgegraph/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-errorreporting-bom/pom.xml | 10 +- .../google-cloud-errorreporting/pom.xml | 4 +- .../v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-errorreporting/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-essential-contacts/pom.xml | 4 +- .../essentialcontacts/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-essential-contacts/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-eventarc-publishing/pom.xml | 4 +- .../eventarc/publishing/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-eventarc-publishing/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-eventarc-bom/pom.xml | 10 +- java-eventarc/google-cloud-eventarc/pom.xml | 4 +- .../cloud/eventarc/v1/stub/Version.java | 2 +- .../grpc-google-cloud-eventarc-v1/pom.xml | 4 +- java-eventarc/pom.xml | 10 +- .../proto-google-cloud-eventarc-v1/pom.xml | 4 +- .../google-cloud-filestore-bom/pom.xml | 14 +- java-filestore/google-cloud-filestore/pom.xml | 4 +- .../cloud/filestore/v1/stub/Version.java | 2 +- .../cloud/filestore/v1beta1/stub/Version.java | 2 +- .../grpc-google-cloud-filestore-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-filestore/pom.xml | 14 +- .../proto-google-cloud-filestore-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-financialservices/pom.xml | 4 +- .../financialservices/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-financialservices/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-firestore-admin/pom.xml | 4 +- .../google-cloud-firestore-bom/pom.xml | 18 +- java-firestore/google-cloud-firestore/pom.xml | 4 +- .../cloud/firestore/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../grpc-google-cloud-firestore-v1/pom.xml | 4 +- java-firestore/pom.xml | 16 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-firestore-v1/pom.xml | 4 +- .../google-cloud-functions-bom/pom.xml | 22 +- java-functions/google-cloud-functions/pom.xml | 4 +- .../cloud/functions/v1/stub/Version.java | 2 +- .../cloud/functions/v2/stub/Version.java | 2 +- .../cloud/functions/v2alpha/stub/Version.java | 2 +- .../cloud/functions/v2beta/stub/Version.java | 2 +- .../grpc-google-cloud-functions-v1/pom.xml | 4 +- .../grpc-google-cloud-functions-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-functions/pom.xml | 22 +- .../proto-google-cloud-functions-v1/pom.xml | 4 +- .../proto-google-cloud-functions-v2/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../v1alpha/stub/Version.java | 2 +- .../pom.xml | 4 +- java-gdchardwaremanagement/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-geminidataanalytics/pom.xml | 4 +- .../geminidataanalytics/v1/stub/Version.java | 2 +- .../v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-geminidataanalytics/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-gke-backup-bom/pom.xml | 10 +- .../google-cloud-gke-backup/pom.xml | 4 +- .../cloud/gkebackup/v1/stub/Version.java | 2 +- .../grpc-google-cloud-gke-backup-v1/pom.xml | 4 +- java-gke-backup/pom.xml | 10 +- .../proto-google-cloud-gke-backup-v1/pom.xml | 4 +- .../pom.xml | 8 +- .../google-cloud-gke-connect-gateway/pom.xml | 4 +- .../gateway/v1beta1/stub/Version.java | 2 +- java-gke-connect-gateway/pom.xml | 8 +- .../pom.xml | 4 +- .../google-cloud-gke-multi-cloud-bom/pom.xml | 10 +- .../google-cloud-gke-multi-cloud/pom.xml | 4 +- .../cloud/gkemulticloud/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-gke-multi-cloud/pom.xml | 10 +- .../pom.xml | 4 +- java-gkehub/google-cloud-gkehub-bom/pom.xml | 22 +- java-gkehub/google-cloud-gkehub/pom.xml | 4 +- .../google/cloud/gkehub/v1/stub/Version.java | 2 +- .../cloud/gkehub/v1alpha/stub/Version.java | 2 +- .../cloud/gkehub/v1beta/stub/Version.java | 2 +- .../cloud/gkehub/v1beta1/stub/Version.java | 2 +- .../grpc-google-cloud-gkehub-v1/pom.xml | 4 +- .../grpc-google-cloud-gkehub-v1alpha/pom.xml | 4 +- .../grpc-google-cloud-gkehub-v1beta/pom.xml | 4 +- .../grpc-google-cloud-gkehub-v1beta1/pom.xml | 4 +- java-gkehub/pom.xml | 22 +- .../proto-google-cloud-gkehub-v1/pom.xml | 4 +- .../proto-google-cloud-gkehub-v1alpha/pom.xml | 4 +- .../proto-google-cloud-gkehub-v1beta/pom.xml | 4 +- .../proto-google-cloud-gkehub-v1beta1/pom.xml | 4 +- .../google-cloud-gkerecommender-bom/pom.xml | 10 +- .../google-cloud-gkerecommender/pom.xml | 4 +- .../cloud/gkerecommender/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-gkerecommender/pom.xml | 10 +- .../pom.xml | 4 +- java-grafeas/pom.xml | 4 +- .../main/java/io/grafeas/v1/stub/Version.java | 2 +- .../google-cloud-gsuite-addons-bom/pom.xml | 12 +- .../google-cloud-gsuite-addons/pom.xml | 4 +- .../cloud/gsuiteaddons/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-gsuite-addons/pom.xml | 12 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-health/google-cloud-health-bom/pom.xml | 10 +- java-health/google-cloud-health/pom.xml | 4 +- .../health/v4/stub/Version.java | 2 +- .../grpc-google-cloud-health-v4/pom.xml | 4 +- java-health/pom.xml | 10 +- .../proto-google-cloud-health-v4/pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-hypercomputecluster/pom.xml | 4 +- .../hypercomputecluster/v1/stub/Version.java | 2 +- .../v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-hypercomputecluster/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-iam-admin/google-iam-admin-bom/pom.xml | 10 +- java-iam-admin/google-iam-admin/pom.xml | 4 +- .../cloud/iam/admin/v1/stub/Version.java | 2 +- .../grpc-google-iam-admin-v1/pom.xml | 4 +- java-iam-admin/pom.xml | 10 +- .../proto-google-iam-admin-v1/pom.xml | 4 +- java-iam-policy/google-iam-policy-bom/pom.xml | 6 +- java-iam-policy/google-iam-policy/pom.xml | 4 +- .../java/com/google/iam/v2/stub/Version.java | 2 +- .../com/google/iam/v2beta/stub/Version.java | 2 +- .../java/com/google/iam/v3/stub/Version.java | 2 +- .../com/google/iam/v3beta/stub/Version.java | 2 +- java-iam-policy/pom.xml | 4 +- java-iam/grpc-google-iam-v1/pom.xml | 4 +- java-iam/grpc-google-iam-v2/pom.xml | 4 +- java-iam/grpc-google-iam-v2beta/pom.xml | 4 +- java-iam/grpc-google-iam-v3/pom.xml | 4 +- java-iam/grpc-google-iam-v3beta/pom.xml | 4 +- java-iam/pom.xml | 32 +- java-iam/proto-google-iam-v1/pom.xml | 4 +- java-iam/proto-google-iam-v2/pom.xml | 4 +- java-iam/proto-google-iam-v2beta/pom.xml | 4 +- java-iam/proto-google-iam-v3/pom.xml | 4 +- java-iam/proto-google-iam-v3beta/pom.xml | 4 +- .../google-cloud-iamcredentials-bom/pom.xml | 10 +- .../google-cloud-iamcredentials/pom.xml | 4 +- .../iam/credentials/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-iamcredentials/pom.xml | 10 +- .../pom.xml | 4 +- java-iap/google-cloud-iap-bom/pom.xml | 10 +- java-iap/google-cloud-iap/pom.xml | 4 +- .../com/google/cloud/iap/v1/stub/Version.java | 2 +- java-iap/grpc-google-cloud-iap-v1/pom.xml | 4 +- java-iap/pom.xml | 10 +- java-iap/proto-google-cloud-iap-v1/pom.xml | 4 +- java-ids/google-cloud-ids-bom/pom.xml | 10 +- java-ids/google-cloud-ids/pom.xml | 4 +- .../com/google/cloud/ids/v1/stub/Version.java | 2 +- java-ids/grpc-google-cloud-ids-v1/pom.xml | 4 +- java-ids/pom.xml | 10 +- java-ids/proto-google-cloud-ids-v1/pom.xml | 4 +- .../google-cloud-infra-manager-bom/pom.xml | 10 +- .../google-cloud-infra-manager/pom.xml | 4 +- .../google/cloud/config/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-infra-manager/pom.xml | 10 +- .../pom.xml | 4 +- java-iot/google-cloud-iot-bom/pom.xml | 10 +- java-iot/google-cloud-iot/pom.xml | 4 +- .../com/google/cloud/iot/v1/stub/Version.java | 2 +- java-iot/grpc-google-cloud-iot-v1/pom.xml | 4 +- java-iot/pom.xml | 10 +- java-iot/proto-google-cloud-iot-v1/pom.xml | 4 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../issueresolution/v1/stub/Version.java | 2 +- .../issueresolution/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../ordertracking/v1/stub/Version.java | 2 +- .../ordertracking/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-kms/google-cloud-kms-bom/pom.xml | 10 +- java-kms/google-cloud-kms/pom.xml | 4 +- .../com/google/cloud/kms/v1/stub/Version.java | 2 +- java-kms/grpc-google-cloud-kms-v1/pom.xml | 4 +- java-kms/pom.xml | 12 +- java-kms/proto-google-cloud-kms-v1/pom.xml | 4 +- .../google-cloud-kmsinventory-bom/pom.xml | 10 +- .../google-cloud-kmsinventory/pom.xml | 4 +- .../cloud/kms/inventory/v1/stub/Version.java | 2 +- .../grpc-google-cloud-kmsinventory-v1/pom.xml | 4 +- java-kmsinventory/pom.xml | 12 +- .../pom.xml | 4 +- .../google-cloud-language-bom/pom.xml | 18 +- java-language/google-cloud-language/pom.xml | 4 +- .../cloud/language/v1/stub/Version.java | 2 +- .../cloud/language/v1beta2/stub/Version.java | 2 +- .../cloud/language/v2/stub/Version.java | 2 +- .../grpc-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-language-v2/pom.xml | 4 +- java-language/pom.xml | 18 +- .../proto-google-cloud-language-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-language-v2/pom.xml | 4 +- .../google-cloud-licensemanager-bom/pom.xml | 10 +- .../google-cloud-licensemanager/pom.xml | 4 +- .../cloud/licensemanager/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-licensemanager/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-life-sciences-bom/pom.xml | 10 +- .../google-cloud-life-sciences/pom.xml | 4 +- .../lifesciences/v2beta/stub/Version.java | 2 +- .../pom.xml | 4 +- java-life-sciences/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-locationfinder-bom/pom.xml | 10 +- .../google-cloud-locationfinder/pom.xml | 4 +- .../cloud/locationfinder/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-locationfinder/pom.xml | 10 +- .../pom.xml | 4 +- java-logging-logback/pom.xml | 6 +- java-logging-logback/samples/snapshot/pom.xml | 2 +- java-logging/google-cloud-logging-bom/pom.xml | 10 +- java-logging/google-cloud-logging/pom.xml | 4 +- .../google/cloud/logging/v2/stub/Version.java | 2 +- .../grpc-google-cloud-logging-v2/pom.xml | 4 +- java-logging/pom.xml | 10 +- .../proto-google-cloud-logging-v2/pom.xml | 4 +- java-logging/samples/snapshot/pom.xml | 2 +- java-lustre/google-cloud-lustre-bom/pom.xml | 10 +- java-lustre/google-cloud-lustre/pom.xml | 4 +- .../google/cloud/lustre/v1/stub/Version.java | 2 +- .../grpc-google-cloud-lustre-v1/pom.xml | 4 +- java-lustre/pom.xml | 10 +- .../proto-google-cloud-lustre-v1/pom.xml | 4 +- .../google-cloud-maintenance-bom/pom.xml | 14 +- .../google-cloud-maintenance/pom.xml | 4 +- .../maintenance/api/v1/stub/Version.java | 2 +- .../maintenance/api/v1beta/stub/Version.java | 2 +- .../grpc-google-cloud-maintenance-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-maintenance/pom.xml | 14 +- .../proto-google-cloud-maintenance-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-managed-identities/pom.xml | 4 +- .../managedidentities/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-managed-identities/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-managedkafka-bom/pom.xml | 10 +- .../google-cloud-managedkafka/pom.xml | 4 +- .../cloud/managedkafka/v1/stub/Version.java | 2 +- .../grpc-google-cloud-managedkafka-v1/pom.xml | 4 +- java-managedkafka/pom.xml | 10 +- .../pom.xml | 4 +- .../google-maps-addressvalidation-bom/pom.xml | 10 +- .../google-maps-addressvalidation/pom.xml | 4 +- .../addressvalidation/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-maps-addressvalidation/pom.xml | 10 +- .../pom.xml | 4 +- .../google-maps-area-insights-bom/pom.xml | 10 +- .../google-maps-area-insights/pom.xml | 4 +- .../maps/areainsights/v1/stub/Version.java | 2 +- .../grpc-google-maps-area-insights-v1/pom.xml | 4 +- java-maps-area-insights/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-maps-fleetengine-delivery/pom.xml | 4 +- .../fleetengine/delivery/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-maps-fleetengine-delivery/pom.xml | 10 +- .../pom.xml | 4 +- .../google-maps-fleetengine-bom/pom.xml | 10 +- .../google-maps-fleetengine/pom.xml | 4 +- .../maps/fleetengine/v1/stub/Version.java | 2 +- .../grpc-google-maps-fleetengine-v1/pom.xml | 4 +- java-maps-fleetengine/pom.xml | 10 +- .../proto-google-maps-fleetengine-v1/pom.xml | 4 +- .../google-maps-geocode-bom/pom.xml | 10 +- java-maps-geocode/google-maps-geocode/pom.xml | 4 +- .../google/maps/geocode/v4/stub/Version.java | 2 +- .../grpc-google-maps-geocode-v4/pom.xml | 4 +- java-maps-geocode/pom.xml | 10 +- .../proto-google-maps-geocode-v4/pom.xml | 4 +- .../google-maps-mapmanagement-bom/pom.xml | 10 +- .../google-maps-mapmanagement/pom.xml | 4 +- .../mapmanagement/v2beta/stub/Version.java | 2 +- .../pom.xml | 4 +- java-maps-mapmanagement/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-maps-mapsplatformdatasets/pom.xml | 4 +- .../mapsplatformdatasets/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-maps-mapsplatformdatasets/pom.xml | 10 +- .../pom.xml | 4 +- .../google-maps-places-bom/pom.xml | 10 +- java-maps-places/google-maps-places/pom.xml | 4 +- .../google/maps/places/v1/stub/Version.java | 2 +- .../grpc-google-maps-places-v1/pom.xml | 4 +- java-maps-places/pom.xml | 10 +- .../proto-google-maps-places-v1/pom.xml | 4 +- .../google-maps-routeoptimization-bom/pom.xml | 10 +- .../google-maps-routeoptimization/pom.xml | 4 +- .../routeoptimization/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-maps-routeoptimization/pom.xml | 10 +- .../pom.xml | 4 +- .../google-maps-routing-bom/pom.xml | 10 +- java-maps-routing/google-maps-routing/pom.xml | 4 +- .../google/maps/routing/v2/stub/Version.java | 2 +- .../grpc-google-maps-routing-v2/pom.xml | 4 +- java-maps-routing/pom.xml | 10 +- .../proto-google-maps-routing-v2/pom.xml | 4 +- java-maps-solar/google-maps-solar-bom/pom.xml | 10 +- java-maps-solar/google-maps-solar/pom.xml | 4 +- .../google/maps/solar/v1/stub/Version.java | 2 +- .../grpc-google-maps-solar-v1/pom.xml | 4 +- java-maps-solar/pom.xml | 10 +- .../proto-google-maps-solar-v1/pom.xml | 4 +- .../admin-bom/pom.xml | 10 +- java-marketingplatformadminapi/admin/pom.xml | 4 +- .../admin/v1alpha/stub/Version.java | 2 +- .../grpc-admin-v1alpha/pom.xml | 4 +- java-marketingplatformadminapi/pom.xml | 10 +- .../proto-admin-v1alpha/pom.xml | 4 +- .../google-cloud-mediatranslation-bom/pom.xml | 10 +- .../google-cloud-mediatranslation/pom.xml | 4 +- .../v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-mediatranslation/pom.xml | 10 +- .../pom.xml | 4 +- java-meet/google-cloud-meet-bom/pom.xml | 14 +- java-meet/google-cloud-meet/pom.xml | 4 +- .../com/google/apps/meet/v2/stub/Version.java | 2 +- .../google/apps/meet/v2beta/stub/Version.java | 2 +- java-meet/grpc-google-cloud-meet-v2/pom.xml | 4 +- .../grpc-google-cloud-meet-v2beta/pom.xml | 4 +- java-meet/pom.xml | 14 +- java-meet/proto-google-cloud-meet-v2/pom.xml | 4 +- .../proto-google-cloud-meet-v2beta/pom.xml | 4 +- .../google-cloud-memcache-bom/pom.xml | 14 +- java-memcache/google-cloud-memcache/pom.xml | 4 +- .../cloud/memcache/v1/stub/Version.java | 2 +- .../cloud/memcache/v1beta2/stub/Version.java | 2 +- .../grpc-google-cloud-memcache-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-memcache/pom.xml | 14 +- .../proto-google-cloud-memcache-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-migrationcenter-bom/pom.xml | 10 +- .../google-cloud-migrationcenter/pom.xml | 4 +- .../migrationcenter/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-migrationcenter/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-modelarmor-bom/pom.xml | 14 +- .../google-cloud-modelarmor/pom.xml | 4 +- .../cloud/modelarmor/v1/stub/Version.java | 2 +- .../cloud/modelarmor/v1beta/stub/Version.java | 2 +- .../grpc-google-cloud-modelarmor-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-modelarmor/pom.xml | 14 +- .../proto-google-cloud-modelarmor-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-monitoring-dashboard/pom.xml | 4 +- .../monitoring/dashboard/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-monitoring-dashboards/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../metricsscope/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-monitoring-metricsscope/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-monitoring-bom/pom.xml | 10 +- .../google-cloud-monitoring/pom.xml | 4 +- .../cloud/monitoring/v3/stub/Version.java | 2 +- .../grpc-google-cloud-monitoring-v3/pom.xml | 4 +- java-monitoring/pom.xml | 10 +- .../proto-google-cloud-monitoring-v3/pom.xml | 4 +- java-netapp/google-cloud-netapp-bom/pom.xml | 10 +- java-netapp/google-cloud-netapp/pom.xml | 4 +- .../google/cloud/netapp/v1/stub/Version.java | 2 +- .../grpc-google-cloud-netapp-v1/pom.xml | 4 +- java-netapp/pom.xml | 10 +- .../proto-google-cloud-netapp-v1/pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-network-management/pom.xml | 4 +- .../networkmanagement/v1/stub/Version.java | 2 +- .../v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-network-management/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-network-security-bom/pom.xml | 14 +- .../google-cloud-network-security/pom.xml | 4 +- .../networksecurity/v1/stub/Version.java | 2 +- .../networksecurity/v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-network-security/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 18 +- .../google-cloud-networkconnectivity/pom.xml | 4 +- .../networkconnectivity/v1/stub/Version.java | 2 +- .../v1alpha1/stub/Version.java | 2 +- .../v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-networkconnectivity/pom.xml | 18 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-networkservices-bom/pom.xml | 10 +- .../google-cloud-networkservices/pom.xml | 4 +- .../networkservices/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-networkservices/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-notebooks-bom/pom.xml | 18 +- java-notebooks/google-cloud-notebooks/pom.xml | 4 +- .../cloud/notebooks/v1/stub/Version.java | 2 +- .../cloud/notebooks/v1beta1/stub/Version.java | 2 +- .../cloud/notebooks/v2/stub/Version.java | 2 +- .../grpc-google-cloud-notebooks-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-notebooks-v2/pom.xml | 4 +- java-notebooks/pom.xml | 18 +- .../proto-google-cloud-notebooks-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-notebooks-v2/pom.xml | 4 +- java-notification/pom.xml | 4 +- .../google-cloud-optimization-bom/pom.xml | 10 +- .../google-cloud-optimization/pom.xml | 4 +- .../cloud/optimization/v1/stub/Version.java | 2 +- .../grpc-google-cloud-optimization-v1/pom.xml | 4 +- java-optimization/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-oracledatabase-bom/pom.xml | 10 +- .../google-cloud-oracledatabase/pom.xml | 4 +- .../cloud/oracledatabase/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-oracledatabase/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../airflow/service/v1/stub/Version.java | 2 +- .../airflow/service/v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-orchestration-airflow/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-orgpolicy-bom/pom.xml | 12 +- java-orgpolicy/google-cloud-orgpolicy/pom.xml | 4 +- .../cloud/orgpolicy/v2/stub/Version.java | 2 +- .../grpc-google-cloud-orgpolicy-v2/pom.xml | 4 +- java-orgpolicy/pom.xml | 12 +- .../proto-google-cloud-orgpolicy-v1/pom.xml | 4 +- .../proto-google-cloud-orgpolicy-v2/pom.xml | 4 +- .../google-cloud-os-config-bom/pom.xml | 18 +- java-os-config/google-cloud-os-config/pom.xml | 4 +- .../cloud/osconfig/v1/stub/Version.java | 2 +- .../cloud/osconfig/v1alpha/stub/Version.java | 2 +- .../cloud/osconfig/v1beta/stub/Version.java | 2 +- .../grpc-google-cloud-os-config-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-os-config/pom.xml | 18 +- .../proto-google-cloud-os-config-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-os-login-bom/pom.xml | 10 +- java-os-login/google-cloud-os-login/pom.xml | 4 +- .../google/cloud/oslogin/v1/stub/Version.java | 2 +- .../grpc-google-cloud-os-login-v1/pom.xml | 4 +- java-os-login/pom.xml | 10 +- .../proto-google-cloud-os-login-v1/pom.xml | 4 +- .../google-cloud-parallelstore-bom/pom.xml | 14 +- .../google-cloud-parallelstore/pom.xml | 4 +- .../cloud/parallelstore/v1/stub/Version.java | 2 +- .../parallelstore/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-parallelstore/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-parametermanager-bom/pom.xml | 10 +- .../google-cloud-parametermanager/pom.xml | 4 +- .../parametermanager/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-parametermanager/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-phishingprotection/pom.xml | 4 +- .../v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-phishingprotection/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../iam/v3/stub/Version.java | 2 +- .../policytroubleshooter/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-policy-troubleshooter/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-policysimulator-bom/pom.xml | 10 +- .../google-cloud-policysimulator/pom.xml | 4 +- .../policysimulator/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-policysimulator/pom.xml | 12 +- .../pom.xml | 6 +- .../google-cloud-private-catalog-bom/pom.xml | 10 +- .../google-cloud-private-catalog/pom.xml | 4 +- .../privatecatalog/v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-private-catalog/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-privilegedaccessmanager/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-profiler-bom/pom.xml | 10 +- java-profiler/google-cloud-profiler/pom.xml | 4 +- .../cloudprofiler/v2/stub/Version.java | 2 +- .../grpc-google-cloud-profiler-v2/pom.xml | 4 +- java-profiler/pom.xml | 10 +- .../proto-google-cloud-profiler-v2/pom.xml | 4 +- .../google-cloud-publicca-bom/pom.xml | 14 +- java-publicca/google-cloud-publicca/pom.xml | 4 +- .../security/publicca/v1/stub/Version.java | 2 +- .../publicca/v1beta1/stub/Version.java | 2 +- .../grpc-google-cloud-publicca-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-publicca/pom.xml | 14 +- .../proto-google-cloud-publicca-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-pubsub/google-cloud-pubsub-bom/pom.xml | 10 +- java-pubsub/google-cloud-pubsub/pom.xml | 4 +- .../google/cloud/pubsub/v1/stub/Version.java | 2 +- .../grpc-google-cloud-pubsub-v1/pom.xml | 4 +- java-pubsub/pom.xml | 10 +- .../proto-google-cloud-pubsub-v1/pom.xml | 4 +- java-pubsub/samples/snapshot/pom.xml | 2 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-rapidmigrationassessment/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-recaptchaenterprise/pom.xml | 4 +- .../recaptchaenterprise/v1/stub/Version.java | 2 +- .../v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-recaptchaenterprise/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-recommendations-ai/pom.xml | 4 +- .../v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-recommendations-ai/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-recommender-bom/pom.xml | 14 +- .../google-cloud-recommender/pom.xml | 4 +- .../cloud/recommender/v1/stub/Version.java | 2 +- .../recommender/v1beta1/stub/Version.java | 2 +- .../grpc-google-cloud-recommender-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-recommender/pom.xml | 14 +- .../proto-google-cloud-recommender-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-redis-cluster-bom/pom.xml | 14 +- .../google-cloud-redis-cluster/pom.xml | 4 +- .../cloud/redis/cluster/v1/stub/Version.java | 2 +- .../redis/cluster/v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-redis-cluster/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-redis/google-cloud-redis-bom/pom.xml | 14 +- java-redis/google-cloud-redis/pom.xml | 4 +- .../google/cloud/redis/v1/stub/Version.java | 2 +- .../cloud/redis/v1beta1/stub/Version.java | 2 +- java-redis/grpc-google-cloud-redis-v1/pom.xml | 4 +- .../grpc-google-cloud-redis-v1beta1/pom.xml | 4 +- java-redis/pom.xml | 14 +- .../proto-google-cloud-redis-v1/pom.xml | 4 +- .../proto-google-cloud-redis-v1beta1/pom.xml | 4 +- .../google-cloud-resourcemanager-bom/pom.xml | 10 +- .../google-cloud-resourcemanager/pom.xml | 4 +- .../resourcemanager/v3/stub/Version.java | 2 +- .../pom.xml | 4 +- java-resourcemanager/pom.xml | 10 +- .../pom.xml | 4 +- java-retail/google-cloud-retail-bom/pom.xml | 18 +- java-retail/google-cloud-retail/pom.xml | 4 +- .../google/cloud/retail/v2/stub/Version.java | 2 +- .../cloud/retail/v2alpha/stub/Version.java | 2 +- .../cloud/retail/v2beta/stub/Version.java | 2 +- .../grpc-google-cloud-retail-v2/pom.xml | 4 +- .../grpc-google-cloud-retail-v2alpha/pom.xml | 4 +- .../grpc-google-cloud-retail-v2beta/pom.xml | 4 +- java-retail/pom.xml | 18 +- .../proto-google-cloud-retail-v2/pom.xml | 4 +- .../proto-google-cloud-retail-v2alpha/pom.xml | 4 +- .../proto-google-cloud-retail-v2beta/pom.xml | 4 +- java-run/google-cloud-run-bom/pom.xml | 10 +- java-run/google-cloud-run/pom.xml | 4 +- .../com/google/cloud/run/v2/stub/Version.java | 2 +- java-run/grpc-google-cloud-run-v2/pom.xml | 4 +- java-run/pom.xml | 10 +- java-run/proto-google-cloud-run-v2/pom.xml | 4 +- .../google-cloud-saasservicemgmt-bom/pom.xml | 10 +- .../google-cloud-saasservicemgmt/pom.xml | 4 +- .../saasservicemgmt/v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-saasservicemgmt/pom.xml | 10 +- .../pom.xml | 4 +- java-samples/pom.xml | 2 +- .../google-cloud-scheduler-bom/pom.xml | 14 +- java-scheduler/google-cloud-scheduler/pom.xml | 4 +- .../cloud/scheduler/v1/stub/Version.java | 2 +- .../cloud/scheduler/v1beta1/stub/Version.java | 2 +- .../grpc-google-cloud-scheduler-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-scheduler/pom.xml | 14 +- .../proto-google-cloud-scheduler-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-secretmanager-bom/pom.xml | 18 +- .../google-cloud-secretmanager/pom.xml | 4 +- .../cloud/secretmanager/v1/stub/Version.java | 2 +- .../secretmanager/v1beta1/stub/Version.java | 2 +- .../secretmanager/v1beta2/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-secretmanager/pom.xml | 18 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-securesourcemanager/pom.xml | 4 +- .../securesourcemanager/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-securesourcemanager/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-security-private-ca/pom.xml | 4 +- .../security/privateca/v1/stub/Version.java | 2 +- .../privateca/v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-security-private-ca/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../settings/v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-securitycenter-settings/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-securitycenter-bom/pom.xml | 22 +- .../google-cloud-securitycenter/pom.xml | 4 +- .../cloud/securitycenter/v1/stub/Version.java | 2 +- .../securitycenter/v1beta1/stub/Version.java | 2 +- .../v1p1beta1/stub/Version.java | 2 +- .../cloud/securitycenter/v2/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-securitycenter/pom.xml | 22 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-securitycentermanagement/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-securityposture-bom/pom.xml | 10 +- .../google-cloud-securityposture/pom.xml | 4 +- .../securityposture/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-securityposture/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-service-control-bom/pom.xml | 14 +- .../google-cloud-service-control/pom.xml | 4 +- .../api/servicecontrol/v1/stub/Version.java | 2 +- .../api/servicecontrol/v2/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-service-control/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-cloud-service-management/pom.xml | 4 +- .../servicemanagement/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-service-management/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-service-usage-bom/pom.xml | 14 +- .../google-cloud-service-usage/pom.xml | 4 +- .../api/serviceusage/v1/stub/Version.java | 2 +- .../serviceusage/v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-service-usage/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-servicedirectory-bom/pom.xml | 14 +- .../google-cloud-servicedirectory/pom.xml | 4 +- .../servicedirectory/v1/stub/Version.java | 2 +- .../v1beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-servicedirectory/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-servicehealth-bom/pom.xml | 10 +- .../google-cloud-servicehealth/pom.xml | 4 +- .../cloud/servicehealth/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-servicehealth/pom.xml | 10 +- .../pom.xml | 4 +- java-shell/google-cloud-shell-bom/pom.xml | 10 +- java-shell/google-cloud-shell/pom.xml | 4 +- .../google/cloud/shell/v1/stub/Version.java | 2 +- java-shell/grpc-google-cloud-shell-v1/pom.xml | 4 +- java-shell/pom.xml | 10 +- .../proto-google-cloud-shell-v1/pom.xml | 4 +- .../google-shopping-css-bom/pom.xml | 10 +- java-shopping-css/google-shopping-css/pom.xml | 4 +- .../google/shopping/css/v1/stub/Version.java | 2 +- .../grpc-google-shopping-css-v1/pom.xml | 4 +- java-shopping-css/pom.xml | 10 +- .../proto-google-shopping-css-v1/pom.xml | 4 +- .../pom.xml | 14 +- .../google-shopping-merchant-accounts/pom.xml | 4 +- .../merchant/accounts/v1/stub/Version.java | 2 +- .../accounts/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-accounts/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../merchant/conversions/v1/stub/Version.java | 2 +- .../conversions/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-conversions/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../merchant/datasources/v1/stub/Version.java | 2 +- .../datasources/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-datasources/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../merchant/inventories/v1/stub/Version.java | 2 +- .../inventories/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-inventories/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-shopping-merchant-lfp-bom/pom.xml | 14 +- .../google-shopping-merchant-lfp/pom.xml | 4 +- .../merchant/lfp/v1/stub/Version.java | 2 +- .../merchant/lfp/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-lfp/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../notifications/v1/stub/Version.java | 2 +- .../notifications/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-notifications/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../productstudio/v1alpha/stub/Version.java | 2 +- .../pom.xml | 4 +- java-shopping-merchant-product-studio/pom.xml | 10 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-shopping-merchant-products/pom.xml | 4 +- .../merchant/products/v1/stub/Version.java | 2 +- .../products/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-products/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../pom.xml | 4 +- .../merchant/promotions/v1/stub/Version.java | 2 +- .../promotions/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-promotions/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-shopping-merchant-quota/pom.xml | 4 +- .../merchant/quota/v1/stub/Version.java | 2 +- .../merchant/quota/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-quota/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 18 +- .../google-shopping-merchant-reports/pom.xml | 4 +- .../merchant/reports/v1/stub/Version.java | 2 +- .../reports/v1alpha/stub/Version.java | 2 +- .../merchant/reports/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-shopping-merchant-reports/pom.xml | 18 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 10 +- .../google-shopping-merchant-reviews/pom.xml | 4 +- .../merchant/reviews/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- java-shopping-merchant-reviews/pom.xml | 10 +- .../pom.xml | 4 +- java-showcase/pom.xml | 2 +- java-spanner-jdbc/pom.xml | 14 +- java-spanner-jdbc/samples/snapshot/pom.xml | 2 +- java-spanner/benchmarks/pom.xml | 4 +- java-spanner/google-cloud-spanner-bom/pom.xml | 20 +- .../google-cloud-spanner-executor/pom.xml | 4 +- .../spanner/executor/v1/stub/Version.java | 2 +- java-spanner/google-cloud-spanner/pom.xml | 14 +- .../admin/database/v1/stub/Version.java | 2 +- .../admin/instance/v1/stub/Version.java | 2 +- .../google/cloud/spanner/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-spanner-v1/pom.xml | 4 +- java-spanner/pom.xml | 22 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-spanner-v1/pom.xml | 4 +- java-spanner/samples/snapshot/pom.xml | 2 +- .../google-cloud-spanneradapter-bom/pom.xml | 10 +- .../google-cloud-spanneradapter/pom.xml | 4 +- .../spanner/adapter/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-spanneradapter/pom.xml | 10 +- .../pom.xml | 4 +- java-speech/google-cloud-speech-bom/pom.xml | 18 +- java-speech/google-cloud-speech/pom.xml | 4 +- .../google/cloud/speech/v1/stub/Version.java | 2 +- .../cloud/speech/v1p1beta1/stub/Version.java | 2 +- .../google/cloud/speech/v2/stub/Version.java | 2 +- .../grpc-google-cloud-speech-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../grpc-google-cloud-speech-v2/pom.xml | 4 +- java-speech/pom.xml | 18 +- .../proto-google-cloud-speech-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../proto-google-cloud-speech-v2/pom.xml | 4 +- java-storage-nio/google-cloud-nio-bom/pom.xml | 6 +- .../google-cloud-nio-examples/pom.xml | 4 +- .../google-cloud-nio-retrofit/README.md | 4 +- .../google-cloud-nio-retrofit/pom.xml | 4 +- java-storage-nio/google-cloud-nio/pom.xml | 4 +- java-storage-nio/pom.xml | 6 +- java-storage-nio/samples/snapshot/pom.xml | 2 +- .../google-cloud-storage-transfer-bom/pom.xml | 10 +- .../google-cloud-storage-transfer/pom.xml | 4 +- .../v1/proto/stub/Version.java | 2 +- .../pom.xml | 4 +- java-storage-transfer/pom.xml | 10 +- .../pom.xml | 4 +- .../gapic-google-cloud-storage-v2/pom.xml | 16 +- .../com/google/storage/v2/stub/Version.java | 2 +- java-storage/google-cloud-storage-bom/pom.xml | 18 +- .../google-cloud-storage-control/pom.xml | 4 +- .../storage/control/v2/stub/Version.java | 2 +- java-storage/google-cloud-storage/pom.xml | 8 +- .../pom.xml | 4 +- .../grpc-google-cloud-storage-v2/pom.xml | 4 +- java-storage/pom.xml | 18 +- .../pom.xml | 4 +- .../proto-google-cloud-storage-v2/pom.xml | 4 +- java-storage/samples/snapshot/pom.xml | 6 +- .../storage-shared-benchmarking/pom.xml | 4 +- .../pom.xml | 10 +- .../pom.xml | 4 +- .../v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-storagebatchoperations/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-storageinsights-bom/pom.xml | 10 +- .../google-cloud-storageinsights/pom.xml | 4 +- .../storageinsights/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-storageinsights/pom.xml | 10 +- .../pom.xml | 4 +- java-talent/google-cloud-talent-bom/pom.xml | 14 +- java-talent/google-cloud-talent/pom.xml | 4 +- .../google/cloud/talent/v4/stub/Version.java | 2 +- .../cloud/talent/v4beta1/stub/Version.java | 2 +- .../grpc-google-cloud-talent-v4/pom.xml | 4 +- .../grpc-google-cloud-talent-v4beta1/pom.xml | 4 +- java-talent/pom.xml | 16 +- .../proto-google-cloud-talent-v4/pom.xml | 4 +- .../proto-google-cloud-talent-v4beta1/pom.xml | 4 +- java-tasks/google-cloud-tasks-bom/pom.xml | 18 +- java-tasks/google-cloud-tasks/pom.xml | 4 +- .../google/cloud/tasks/v2/stub/Version.java | 2 +- .../cloud/tasks/v2beta2/stub/Version.java | 2 +- .../cloud/tasks/v2beta3/stub/Version.java | 2 +- java-tasks/grpc-google-cloud-tasks-v2/pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../grpc-google-cloud-tasks-v2beta3/pom.xml | 4 +- java-tasks/pom.xml | 18 +- .../proto-google-cloud-tasks-v2/pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta2/pom.xml | 4 +- .../proto-google-cloud-tasks-v2beta3/pom.xml | 4 +- .../google-cloud-telcoautomation-bom/pom.xml | 14 +- .../google-cloud-telcoautomation/pom.xml | 4 +- .../telcoautomation/v1/stub/Version.java | 2 +- .../v1alpha1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-telcoautomation/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-texttospeech-bom/pom.xml | 14 +- .../google-cloud-texttospeech/pom.xml | 4 +- .../cloud/texttospeech/v1/stub/Version.java | 2 +- .../texttospeech/v1beta1/stub/Version.java | 2 +- .../grpc-google-cloud-texttospeech-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-texttospeech/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-tpu/google-cloud-tpu-bom/pom.xml | 18 +- java-tpu/google-cloud-tpu/pom.xml | 4 +- .../com/google/cloud/tpu/v1/stub/Version.java | 2 +- .../com/google/cloud/tpu/v2/stub/Version.java | 2 +- .../cloud/tpu/v2alpha1/stub/Version.java | 2 +- java-tpu/grpc-google-cloud-tpu-v1/pom.xml | 4 +- java-tpu/grpc-google-cloud-tpu-v2/pom.xml | 4 +- .../grpc-google-cloud-tpu-v2alpha1/pom.xml | 4 +- java-tpu/pom.xml | 18 +- java-tpu/proto-google-cloud-tpu-v1/pom.xml | 4 +- java-tpu/proto-google-cloud-tpu-v2/pom.xml | 4 +- .../proto-google-cloud-tpu-v2alpha1/pom.xml | 4 +- java-trace/google-cloud-trace-bom/pom.xml | 14 +- java-trace/google-cloud-trace/pom.xml | 4 +- .../google/cloud/trace/v1/stub/Version.java | 2 +- .../google/cloud/trace/v2/stub/Version.java | 2 +- java-trace/grpc-google-cloud-trace-v1/pom.xml | 4 +- java-trace/grpc-google-cloud-trace-v2/pom.xml | 4 +- java-trace/pom.xml | 14 +- .../proto-google-cloud-trace-v1/pom.xml | 4 +- .../proto-google-cloud-trace-v2/pom.xml | 4 +- .../google-cloud-translate-bom/pom.xml | 14 +- java-translate/google-cloud-translate/pom.xml | 4 +- .../cloud/translate/v3/stub/Version.java | 2 +- .../cloud/translate/v3beta1/stub/Version.java | 2 +- .../grpc-google-cloud-translate-v3/pom.xml | 4 +- .../pom.xml | 4 +- java-translate/pom.xml | 14 +- .../proto-google-cloud-translate-v3/pom.xml | 4 +- .../pom.xml | 4 +- java-valkey/google-cloud-valkey-bom/pom.xml | 14 +- java-valkey/google-cloud-valkey/pom.xml | 4 +- .../cloud/memorystore/v1/stub/Version.java | 2 +- .../memorystore/v1beta/stub/Version.java | 2 +- .../grpc-google-cloud-valkey-v1/pom.xml | 4 +- .../grpc-google-cloud-valkey-v1beta/pom.xml | 4 +- java-valkey/pom.xml | 14 +- .../proto-google-cloud-valkey-v1/pom.xml | 4 +- .../proto-google-cloud-valkey-v1beta/pom.xml | 4 +- .../google-cloud-vectorsearch-bom/pom.xml | 14 +- .../google-cloud-vectorsearch/pom.xml | 4 +- .../cloud/vectorsearch/v1/stub/Version.java | 2 +- .../vectorsearch/v1beta/stub/Version.java | 2 +- .../grpc-google-cloud-vectorsearch-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-vectorsearch/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 26 +- .../google-cloud-video-intelligence/pom.xml | 4 +- .../videointelligence/v1/stub/Version.java | 2 +- .../v1beta2/stub/Version.java | 2 +- .../v1p1beta1/stub/Version.java | 2 +- .../v1p2beta1/stub/Version.java | 2 +- .../v1p3beta1/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-video-intelligence/pom.xml | 28 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-live-stream-bom/pom.xml | 10 +- .../google-cloud-live-stream/pom.xml | 4 +- .../video/livestream/v1/stub/Version.java | 2 +- .../grpc-google-cloud-live-stream-v1/pom.xml | 4 +- java-video-live-stream/pom.xml | 10 +- .../proto-google-cloud-live-stream-v1/pom.xml | 4 +- .../google-cloud-video-stitcher-bom/pom.xml | 10 +- .../google-cloud-video-stitcher/pom.xml | 4 +- .../cloud/video/stitcher/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-video-stitcher/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-video-transcoder-bom/pom.xml | 10 +- .../google-cloud-video-transcoder/pom.xml | 4 +- .../video/transcoder/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-video-transcoder/pom.xml | 10 +- .../pom.xml | 4 +- java-vision/google-cloud-vision-bom/pom.xml | 26 +- java-vision/google-cloud-vision/pom.xml | 4 +- .../google/cloud/vision/v1/stub/Version.java | 2 +- .../cloud/vision/v1p1beta1/stub/Version.java | 2 +- .../cloud/vision/v1p2beta1/stub/Version.java | 2 +- .../cloud/vision/v1p3beta1/stub/Version.java | 2 +- .../cloud/vision/v1p4beta1/stub/Version.java | 2 +- .../grpc-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-vision/pom.xml | 26 +- .../proto-google-cloud-vision-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-visionai-bom/pom.xml | 10 +- java-visionai/google-cloud-visionai/pom.xml | 4 +- .../cloud/visionai/v1/stub/Version.java | 2 +- .../grpc-google-cloud-visionai-v1/pom.xml | 4 +- java-visionai/pom.xml | 10 +- .../proto-google-cloud-visionai-v1/pom.xml | 4 +- .../google-cloud-vmmigration-bom/pom.xml | 10 +- .../google-cloud-vmmigration/pom.xml | 4 +- .../cloud/vmmigration/v1/stub/Version.java | 2 +- .../grpc-google-cloud-vmmigration-v1/pom.xml | 4 +- java-vmmigration/pom.xml | 10 +- .../proto-google-cloud-vmmigration-v1/pom.xml | 4 +- .../google-cloud-vmwareengine-bom/pom.xml | 10 +- .../google-cloud-vmwareengine/pom.xml | 4 +- .../cloud/vmwareengine/v1/stub/Version.java | 2 +- .../grpc-google-cloud-vmwareengine-v1/pom.xml | 4 +- java-vmwareengine/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-vpcaccess-bom/pom.xml | 10 +- java-vpcaccess/google-cloud-vpcaccess/pom.xml | 4 +- .../cloud/vpcaccess/v1/stub/Version.java | 2 +- .../grpc-google-cloud-vpcaccess-v1/pom.xml | 4 +- java-vpcaccess/pom.xml | 10 +- .../proto-google-cloud-vpcaccess-v1/pom.xml | 4 +- java-webrisk/google-cloud-webrisk-bom/pom.xml | 14 +- java-webrisk/google-cloud-webrisk/pom.xml | 4 +- .../google/cloud/webrisk/v1/stub/Version.java | 2 +- .../cloud/webrisk/v1beta1/stub/Version.java | 2 +- .../grpc-google-cloud-webrisk-v1/pom.xml | 4 +- .../grpc-google-cloud-webrisk-v1beta1/pom.xml | 4 +- java-webrisk/pom.xml | 14 +- .../proto-google-cloud-webrisk-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 18 +- .../google-cloud-websecurityscanner/pom.xml | 4 +- .../websecurityscanner/v1/stub/Version.java | 2 +- .../v1alpha/stub/Version.java | 2 +- .../v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-websecurityscanner/pom.xml | 18 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../pom.xml | 14 +- .../google-cloud-workflow-executions/pom.xml | 4 +- .../workflows/executions/v1/stub/Version.java | 2 +- .../executions/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-workflow-executions/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-workflows-bom/pom.xml | 14 +- java-workflows/google-cloud-workflows/pom.xml | 4 +- .../cloud/workflows/v1/stub/Version.java | 2 +- .../cloud/workflows/v1beta/stub/Version.java | 2 +- .../grpc-google-cloud-workflows-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-workflows/pom.xml | 14 +- .../proto-google-cloud-workflows-v1/pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-workloadmanager-bom/pom.xml | 10 +- .../google-cloud-workloadmanager/pom.xml | 4 +- .../workloadmanager/v1/stub/Version.java | 2 +- .../pom.xml | 4 +- java-workloadmanager/pom.xml | 10 +- .../pom.xml | 4 +- .../google-cloud-workspaceevents-bom/pom.xml | 14 +- .../google-cloud-workspaceevents/pom.xml | 4 +- .../events/subscriptions/v1/stub/Version.java | 2 +- .../subscriptions/v1beta/stub/Version.java | 2 +- .../pom.xml | 4 +- .../pom.xml | 4 +- java-workspaceevents/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- .../google-cloud-workstations-bom/pom.xml | 14 +- .../google-cloud-workstations/pom.xml | 4 +- .../cloud/workstations/v1/stub/Version.java | 2 +- .../workstations/v1beta/stub/Version.java | 2 +- .../grpc-google-cloud-workstations-v1/pom.xml | 4 +- .../pom.xml | 4 +- java-workstations/pom.xml | 14 +- .../pom.xml | 4 +- .../pom.xml | 4 +- librarian.yaml | 491 ++-- .../graalvm/cloudbuild-test-a.yaml | 2 +- .../graalvm/cloudbuild-test-b.yaml | 2 +- .../graalvm/cloudbuild-test-c.yaml | 2 +- .../.cloudbuild/graalvm/cloudbuild.yaml | 2 +- .../cloudbuild-library-generation-push.yaml | 2 +- .../library_generation.Dockerfile | 4 +- .../library_generation_airlock.Dockerfile | 2 +- sdk-platform-java/api-common-java/pom.xml | 4 +- sdk-platform-java/coverage-report/pom.xml | 8 +- .../gapic-generator-java-bom/pom.xml | 44 +- .../gapic-generator-java-pom-parent/pom.xml | 2 +- .../gapic-generator-java/pom.xml | 10 +- .../gax-java/dependencies.properties | 8 +- sdk-platform-java/gax-java/gax-bom/pom.xml | 20 +- sdk-platform-java/gax-java/gax-grpc/pom.xml | 4 +- .../gax-java/gax-httpjson/pom.xml | 4 +- sdk-platform-java/gax-java/gax/pom.xml | 4 +- sdk-platform-java/gax-java/pom.xml | 22 +- .../.kokoro/presubmit/graalvm-native-a.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-b.cfg | 2 +- .../.kokoro/presubmit/graalvm-native-c.cfg | 2 +- .../java-core/google-cloud-core-bom/pom.xml | 10 +- .../java-core/google-cloud-core-grpc/pom.xml | 4 +- .../java-core/google-cloud-core-http/pom.xml | 4 +- .../java-core/google-cloud-core/pom.xml | 4 +- sdk-platform-java/java-core/pom.xml | 6 +- .../dependency-convergence-check/pom.xml | 2 +- .../first-party-dependencies/pom.xml | 12 +- .../java-shared-dependencies/pom.xml | 8 +- .../third-party-dependencies/pom.xml | 4 +- .../upper-bound-check/pom.xml | 4 +- .../java-showcase-3.21.0/pom.xml | 2 +- .../java-showcase-3.25.8/pom.xml | 2 +- .../sdk-platform-java-config/pom.xml | 4 +- versions.txt | 2116 ++++++++--------- 1981 files changed, 7227 insertions(+), 7226 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 7dd237935e26..95ff2bd72f2f 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -67,7 +67,7 @@ load("@rules_jvm_external//:defs.bzl", "maven_install") load("@io_grpc_grpc_java//:repositories.bzl", "IO_GRPC_GRPC_JAVA_ARTIFACTS") load("@io_grpc_grpc_java//:repositories.bzl", "IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS") -_gapic_generator_java_version = "2.73.0" # {x-version-update:gapic-generator-java:current} +_gapic_generator_java_version = "2.74.0-SNAPSHOT" # {x-version-update:gapic-generator-java:current} maven_install( artifacts = [ diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index d804633cb9a4..4df82569ba73 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -4,7 +4,7 @@ com.google.cloud gapic-libraries-bom pom - 1.87.1 + 1.88.0-SNAPSHOT Google Cloud Java BOM BOM for the libraries in google-cloud-java repository. Users should not @@ -15,7 +15,7 @@ google-cloud-pom-parent com.google.cloud - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-pom-parent/pom.xml @@ -24,1522 +24,1522 @@ com.google.analytics google-analytics-admin-bom - 0.103.0 + 0.104.0-SNAPSHOT pom import com.google.analytics google-analytics-data-bom - 0.104.0 + 0.105.0-SNAPSHOT pom import com.google.area120 google-area120-tables-bom - 0.97.0 + 0.98.0-SNAPSHOT pom import com.google.cloud google-cloud-accessapproval-bom - 2.94.0 + 2.95.0-SNAPSHOT pom import com.google.cloud google-cloud-advisorynotifications-bom - 0.82.0 + 0.83.0-SNAPSHOT pom import com.google.cloud google-cloud-aiplatform-bom - 3.94.0 + 3.95.0-SNAPSHOT pom import com.google.cloud google-cloud-alloydb-bom - 0.82.0 + 0.83.0-SNAPSHOT pom import com.google.cloud google-cloud-alloydb-connectors-bom - 0.71.0 + 0.72.0-SNAPSHOT pom import com.google.cloud google-cloud-analyticshub-bom - 0.90.0 + 0.91.0-SNAPSHOT pom import com.google.cloud google-cloud-api-gateway-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-apigee-connect-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-apigee-registry-bom - 0.93.0 + 0.94.0-SNAPSHOT pom import com.google.cloud google-cloud-apihub-bom - 0.46.0 + 0.47.0-SNAPSHOT pom import com.google.cloud google-cloud-apikeys-bom - 0.91.0 + 0.92.0-SNAPSHOT pom import com.google.cloud google-cloud-appengine-admin-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-apphub-bom - 0.57.0 + 0.58.0-SNAPSHOT pom import com.google.cloud google-cloud-appoptimize-bom - 0.3.0 + 0.4.0-SNAPSHOT pom import com.google.cloud google-cloud-artifact-registry-bom - 1.92.0 + 1.93.0-SNAPSHOT pom import com.google.cloud google-cloud-asset-bom - 3.97.0 + 3.98.0-SNAPSHOT pom import com.google.cloud google-cloud-assured-workloads-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-auditmanager-bom - 0.11.0 + 0.12.0-SNAPSHOT pom import com.google.cloud google-cloud-automl-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-backstory-bom - 0.1.0 + 0.2.0-SNAPSHOT pom import com.google.cloud google-cloud-backupdr-bom - 0.52.0 + 0.53.0-SNAPSHOT pom import com.google.cloud google-cloud-bare-metal-solution-bom - 0.93.0 + 0.94.0-SNAPSHOT pom import com.google.cloud google-cloud-batch-bom - 0.93.0 + 0.94.0-SNAPSHOT pom import com.google.cloud google-cloud-beyondcorp-appconnections-bom - 0.91.0 + 0.92.0-SNAPSHOT pom import com.google.cloud google-cloud-beyondcorp-appconnectors-bom - 0.91.0 + 0.92.0-SNAPSHOT pom import com.google.cloud google-cloud-beyondcorp-appgateways-bom - 0.91.0 + 0.92.0-SNAPSHOT pom import com.google.cloud google-cloud-beyondcorp-clientconnectorservices-bom - 0.91.0 + 0.92.0-SNAPSHOT pom import com.google.cloud google-cloud-beyondcorp-clientgateways-bom - 0.91.0 + 0.92.0-SNAPSHOT pom import com.google.cloud google-cloud-biglake-bom - 0.81.1 + 0.82.0-SNAPSHOT pom import com.google.cloud google-cloud-bigquery-bom - 2.67.0 + 2.68.0-SNAPSHOT pom import com.google.cloud google-cloud-bigquery-data-exchange-bom - 2.88.0 + 2.89.0-SNAPSHOT pom import com.google.cloud google-cloud-bigqueryconnection-bom - 2.95.0 + 2.96.0-SNAPSHOT pom import com.google.cloud google-cloud-bigquerydatapolicy-bom - 0.90.0 + 0.91.0-SNAPSHOT pom import com.google.cloud google-cloud-bigquerydatatransfer-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-bigquerymigration-bom - 0.96.0 + 0.97.0-SNAPSHOT pom import com.google.cloud google-cloud-bigqueryreservation-bom - 2.94.0 + 2.95.0-SNAPSHOT pom import com.google.cloud google-cloud-bigquerystorage-bom - 3.29.0 + 3.30.0-SNAPSHOT pom import com.google.cloud google-cloud-bigtable-bom - 2.79.0 + 2.80.0-SNAPSHOT pom import com.google.cloud google-cloud-billing-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-billingbudgets-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-binary-authorization-bom - 1.92.0 + 1.93.0-SNAPSHOT pom import com.google.cloud google-cloud-build-bom - 3.95.0 + 3.96.0-SNAPSHOT pom import com.google.cloud google-cloud-capacityplanner-bom - 0.16.0 + 0.17.0-SNAPSHOT pom import com.google.cloud google-cloud-certificate-manager-bom - 0.96.0 + 0.97.0-SNAPSHOT pom import com.google.cloud google-cloud-ces-bom - 0.9.0 + 0.10.0-SNAPSHOT pom import com.google.cloud google-cloud-channel-bom - 3.97.0 + 3.98.0-SNAPSHOT pom import com.google.cloud google-cloud-chat-bom - 0.57.0 + 0.58.0-SNAPSHOT pom import com.google.cloud google-cloud-chronicle-bom - 0.31.0 + 0.32.0-SNAPSHOT pom import com.google.cloud google-cloud-cloudapiregistry-bom - 0.12.0 + 0.13.0-SNAPSHOT pom import com.google.cloud google-cloud-cloudcommerceconsumerprocurement-bom - 0.91.0 + 0.92.0-SNAPSHOT pom import com.google.cloud google-cloud-cloudcontrolspartner-bom - 0.57.0 + 0.58.0-SNAPSHOT pom import com.google.cloud google-cloud-cloudquotas-bom - 0.61.0 + 0.62.0-SNAPSHOT pom import com.google.cloud google-cloud-cloudsecuritycompliance-bom - 0.20.0 + 0.21.0-SNAPSHOT pom import com.google.cloud google-cloud-cloudsupport-bom - 0.77.0 + 0.78.0-SNAPSHOT pom import com.google.cloud google-cloud-compute-bom - 1.103.0 + 1.104.0-SNAPSHOT pom import com.google.cloud google-cloud-confidentialcomputing-bom - 0.79.0 + 0.80.0-SNAPSHOT pom import com.google.cloud google-cloud-configdelivery-bom - 0.27.0 + 0.28.0-SNAPSHOT pom import com.google.cloud google-cloud-connectgateway-bom - 0.45.0 + 0.46.0-SNAPSHOT pom import com.google.cloud google-cloud-contact-center-insights-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-container-bom - 2.96.0 + 2.97.0-SNAPSHOT pom import com.google.cloud google-cloud-containeranalysis-bom - 2.94.0 + 2.95.0-SNAPSHOT pom import com.google.cloud google-cloud-contentwarehouse-bom - 0.89.0 + 0.90.0-SNAPSHOT pom import com.google.cloud google-cloud-data-fusion-bom - 1.93.0 + 1.94.0-SNAPSHOT pom import com.google.cloud google-cloud-databasecenter-bom - 0.14.0 + 0.15.0-SNAPSHOT pom import com.google.cloud google-cloud-datacatalog-bom - 1.99.0 + 1.100.0-SNAPSHOT pom import com.google.cloud google-cloud-dataflow-bom - 0.97.0 + 0.98.0-SNAPSHOT pom import com.google.cloud google-cloud-dataform-bom - 0.92.0 + 0.93.0-SNAPSHOT pom import com.google.cloud google-cloud-datalabeling-bom - 0.213.0 + 0.214.0-SNAPSHOT pom import com.google.cloud google-cloud-datalineage-bom - 0.85.0 + 0.86.0-SNAPSHOT pom import com.google.cloud google-cloud-dataplex-bom - 1.91.0 + 1.92.0-SNAPSHOT pom import com.google.cloud google-cloud-dataproc-bom - 4.90.0 + 4.91.0-SNAPSHOT pom import com.google.cloud google-cloud-dataproc-metastore-bom - 2.94.0 + 2.95.0-SNAPSHOT pom import com.google.cloud google-cloud-datastore-bom - 3.1.0 + 3.2.0-SNAPSHOT pom import com.google.cloud google-cloud-datastream-bom - 1.92.0 + 1.93.0-SNAPSHOT pom import com.google.cloud google-cloud-deploy-bom - 1.91.0 + 1.92.0-SNAPSHOT pom import com.google.cloud google-cloud-developer-knowledge-bom - 0.1.0 + 0.2.0-SNAPSHOT pom import com.google.cloud google-cloud-developerconnect-bom - 0.50.0 + 0.51.0-SNAPSHOT pom import com.google.cloud google-cloud-devicestreaming-bom - 0.33.0 + 0.34.0-SNAPSHOT pom import com.google.cloud google-cloud-dialogflow-bom - 4.99.0 + 4.100.0-SNAPSHOT pom import com.google.cloud google-cloud-dialogflow-cx-bom - 0.104.0 + 0.105.0-SNAPSHOT pom import com.google.cloud google-cloud-discoveryengine-bom - 0.89.0 + 0.90.0-SNAPSHOT pom import com.google.cloud google-cloud-distributedcloudedge-bom - 0.90.0 + 0.91.0-SNAPSHOT pom import com.google.cloud google-cloud-dlp-bom - 3.97.0 + 3.98.0-SNAPSHOT pom import com.google.cloud google-cloud-dms-bom - 2.92.0 + 2.93.0-SNAPSHOT pom import com.google.cloud google-cloud-dns - 2.91.0 + 2.92.0-SNAPSHOT com.google.cloud google-cloud-document-ai-bom - 2.97.0 + 2.98.0-SNAPSHOT pom import com.google.cloud google-cloud-domains-bom - 1.90.0 + 1.91.0-SNAPSHOT pom import com.google.cloud google-cloud-edgenetwork-bom - 0.61.0 + 0.62.0-SNAPSHOT pom import com.google.cloud google-cloud-enterpriseknowledgegraph-bom - 0.89.0 + 0.90.0-SNAPSHOT pom import com.google.cloud google-cloud-errorreporting-bom - 0.214.0-beta + 0.215.0-beta-SNAPSHOT pom import com.google.cloud google-cloud-essential-contacts-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-eventarc-bom - 1.93.0 + 1.94.0-SNAPSHOT pom import com.google.cloud google-cloud-eventarc-publishing-bom - 0.93.0 + 0.94.0-SNAPSHOT pom import com.google.cloud google-cloud-filestore-bom - 1.94.0 + 1.95.0-SNAPSHOT pom import com.google.cloud google-cloud-financialservices-bom - 0.34.0 + 0.35.0-SNAPSHOT pom import com.google.cloud google-cloud-firestore-bom - 3.43.1 + 3.44.0-SNAPSHOT pom import com.google.cloud google-cloud-functions-bom - 2.95.0 + 2.96.0-SNAPSHOT pom import com.google.cloud google-cloud-gdchardwaremanagement-bom - 0.48.0 + 0.49.0-SNAPSHOT pom import com.google.cloud google-cloud-geminidataanalytics-bom - 0.21.0 + 0.22.0-SNAPSHOT pom import com.google.cloud google-cloud-gke-backup-bom - 0.92.0 + 0.93.0-SNAPSHOT pom import com.google.cloud google-cloud-gke-connect-gateway-bom - 0.94.0 + 0.95.0-SNAPSHOT pom import com.google.cloud google-cloud-gke-multi-cloud-bom - 0.92.0 + 0.93.0-SNAPSHOT pom import com.google.cloud google-cloud-gkehub-bom - 1.93.0 + 1.94.0-SNAPSHOT pom import com.google.cloud google-cloud-gkerecommender-bom - 0.13.0 + 0.14.0-SNAPSHOT pom import com.google.cloud google-cloud-gsuite-addons-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-health-bom - 0.2.0 + 0.3.0-SNAPSHOT pom import com.google.cloud google-cloud-hypercomputecluster-bom - 0.13.0 + 0.14.0-SNAPSHOT pom import com.google.cloud google-cloud-iamcredentials-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-iap-bom - 0.49.0 + 0.50.0-SNAPSHOT pom import com.google.cloud google-cloud-ids-bom - 1.92.0 + 1.93.0-SNAPSHOT pom import com.google.cloud google-cloud-infra-manager-bom - 0.70.0 + 0.71.0-SNAPSHOT pom import com.google.cloud google-cloud-iot-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-kms-bom - 2.96.0 + 2.97.0-SNAPSHOT pom import com.google.cloud google-cloud-kmsinventory-bom - 0.82.0 + 0.83.0-SNAPSHOT pom import com.google.cloud google-cloud-language-bom - 2.94.0 + 2.95.0-SNAPSHOT pom import com.google.cloud google-cloud-licensemanager-bom - 0.26.0 + 0.27.0-SNAPSHOT pom import com.google.cloud google-cloud-life-sciences-bom - 0.95.0 + 0.96.0-SNAPSHOT pom import com.google.cloud google-cloud-live-stream-bom - 0.95.0 + 0.96.0-SNAPSHOT pom import com.google.cloud google-cloud-locationfinder-bom - 0.18.0 + 0.19.0-SNAPSHOT pom import com.google.cloud google-cloud-logging-bom - 3.34.0 + 3.35.0-SNAPSHOT pom import com.google.cloud google-cloud-lustre-bom - 0.33.0 + 0.34.0-SNAPSHOT pom import com.google.cloud google-cloud-maintenance-bom - 0.27.0 + 0.28.0-SNAPSHOT pom import com.google.cloud google-cloud-managed-identities-bom - 1.91.0 + 1.92.0-SNAPSHOT pom import com.google.cloud google-cloud-managedkafka-bom - 0.49.0 + 0.50.0-SNAPSHOT pom import com.google.cloud google-cloud-mediatranslation-bom - 0.99.0 + 0.100.0-SNAPSHOT pom import com.google.cloud google-cloud-meet-bom - 0.60.0 + 0.61.0-SNAPSHOT pom import com.google.cloud google-cloud-memcache-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-migrationcenter-bom - 0.75.0 + 0.76.0-SNAPSHOT pom import com.google.cloud google-cloud-modelarmor-bom - 0.34.0 + 0.35.0-SNAPSHOT pom import com.google.cloud google-cloud-monitoring-bom - 3.94.0 + 3.95.0-SNAPSHOT pom import com.google.cloud google-cloud-monitoring-dashboard-bom - 2.95.0 + 2.96.0-SNAPSHOT pom import com.google.cloud google-cloud-monitoring-metricsscope-bom - 0.87.0 + 0.88.0-SNAPSHOT pom import com.google.cloud google-cloud-netapp-bom - 0.72.0 + 0.73.0-SNAPSHOT pom import com.google.cloud google-cloud-network-management-bom - 1.94.0 + 1.95.0-SNAPSHOT pom import com.google.cloud google-cloud-network-security-bom - 0.96.0 + 0.97.0-SNAPSHOT pom import com.google.cloud google-cloud-networkconnectivity-bom - 1.92.0 + 1.93.0-SNAPSHOT pom import com.google.cloud google-cloud-networkservices-bom - 0.49.0 + 0.50.0-SNAPSHOT pom import com.google.cloud google-cloud-nio-bom - 0.133.0 + 0.134.0-SNAPSHOT pom import com.google.cloud google-cloud-notebooks-bom - 1.91.0 + 1.92.0-SNAPSHOT pom import com.google.cloud google-cloud-notification - 0.211.0-beta + 0.212.0-beta-SNAPSHOT com.google.cloud google-cloud-optimization-bom - 1.91.0 + 1.92.0-SNAPSHOT pom import com.google.cloud google-cloud-oracledatabase-bom - 0.42.0 + 0.43.0-SNAPSHOT pom import com.google.cloud google-cloud-orchestration-airflow-bom - 1.93.0 + 1.94.0-SNAPSHOT pom import com.google.cloud google-cloud-orgpolicy-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-os-config-bom - 2.95.0 + 2.96.0-SNAPSHOT pom import com.google.cloud google-cloud-os-login-bom - 2.92.0 + 2.93.0-SNAPSHOT pom import com.google.cloud google-cloud-parallelstore-bom - 0.56.0 + 0.57.0-SNAPSHOT pom import com.google.cloud google-cloud-parametermanager-bom - 0.37.0 + 0.38.0-SNAPSHOT pom import com.google.cloud google-cloud-phishingprotection-bom - 0.124.0 + 0.125.0-SNAPSHOT pom import com.google.cloud google-cloud-policy-troubleshooter-bom - 1.92.0 + 1.93.0-SNAPSHOT pom import com.google.cloud google-cloud-policysimulator-bom - 0.72.0 + 0.73.0-SNAPSHOT pom import com.google.cloud google-cloud-private-catalog-bom - 0.95.0 + 0.96.0-SNAPSHOT pom import com.google.cloud google-cloud-privilegedaccessmanager-bom - 0.47.0 + 0.48.0-SNAPSHOT pom import com.google.cloud google-cloud-profiler-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-publicca-bom - 0.90.0 + 0.91.0-SNAPSHOT pom import com.google.cloud google-cloud-pubsub-bom - 1.151.0 + 1.152.0-SNAPSHOT pom import com.google.cloud google-cloud-rapidmigrationassessment-bom - 0.76.0 + 0.77.0-SNAPSHOT pom import com.google.cloud google-cloud-recaptchaenterprise-bom - 3.90.0 + 3.91.0-SNAPSHOT pom import com.google.cloud google-cloud-recommendations-ai-bom - 0.100.0 + 0.101.0-SNAPSHOT pom import com.google.cloud google-cloud-recommender-bom - 2.95.0 + 2.96.0-SNAPSHOT pom import com.google.cloud google-cloud-redis-bom - 2.96.0 + 2.97.0-SNAPSHOT pom import com.google.cloud google-cloud-redis-cluster-bom - 0.65.0 + 0.66.0-SNAPSHOT pom import com.google.cloud google-cloud-resourcemanager-bom - 1.95.0 + 1.96.0-SNAPSHOT pom import com.google.cloud google-cloud-retail-bom - 2.95.0 + 2.96.0-SNAPSHOT pom import com.google.cloud google-cloud-run-bom - 0.93.0 + 0.94.0-SNAPSHOT pom import com.google.cloud google-cloud-saasservicemgmt-bom - 0.23.0 + 0.24.0-SNAPSHOT pom import com.google.cloud google-cloud-scheduler-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-secretmanager-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-securesourcemanager-bom - 0.63.0 + 0.64.0-SNAPSHOT pom import com.google.cloud google-cloud-security-private-ca-bom - 2.95.0 + 2.96.0-SNAPSHOT pom import com.google.cloud google-cloud-securitycenter-bom - 2.101.0 + 2.102.0-SNAPSHOT pom import com.google.cloud google-cloud-securitycenter-settings-bom - 0.96.0 + 0.97.0-SNAPSHOT pom import com.google.cloud google-cloud-securitycentermanagement-bom - 0.61.0 + 0.62.0-SNAPSHOT pom import com.google.cloud google-cloud-securityposture-bom - 0.58.0 + 0.59.0-SNAPSHOT pom import com.google.cloud google-cloud-service-control-bom - 1.93.0 + 1.94.0-SNAPSHOT pom import com.google.cloud google-cloud-service-management-bom - 3.91.0 + 3.92.0-SNAPSHOT pom import com.google.cloud google-cloud-service-usage-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-servicedirectory-bom - 2.94.0 + 2.95.0-SNAPSHOT pom import com.google.cloud google-cloud-servicehealth-bom - 0.60.0 + 0.61.0-SNAPSHOT pom import com.google.cloud google-cloud-shell-bom - 2.92.0 + 2.93.0-SNAPSHOT pom import com.google.cloud google-cloud-spanner-bom - 6.118.0 + 6.119.0-SNAPSHOT pom import com.google.cloud google-cloud-spanneradapter-bom - 0.29.0 + 0.30.0-SNAPSHOT pom import com.google.cloud google-cloud-speech-bom - 4.88.0 + 4.89.0-SNAPSHOT pom import com.google.cloud google-cloud-storage-bom - 2.69.0 + 2.70.0-SNAPSHOT pom import com.google.cloud google-cloud-storage-transfer-bom - 1.93.0 + 1.94.0-SNAPSHOT pom import com.google.cloud google-cloud-storagebatchoperations-bom - 0.33.0 + 0.34.0-SNAPSHOT pom import com.google.cloud google-cloud-storageinsights-bom - 0.78.0 + 0.79.0-SNAPSHOT pom import com.google.cloud google-cloud-talent-bom - 2.94.0 + 2.95.0-SNAPSHOT pom import com.google.cloud google-cloud-tasks-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-telcoautomation-bom - 0.63.0 + 0.64.0-SNAPSHOT pom import com.google.cloud google-cloud-texttospeech-bom - 2.94.0 + 2.95.0-SNAPSHOT pom import com.google.cloud google-cloud-tpu-bom - 2.94.0 + 2.95.0-SNAPSHOT pom import com.google.cloud google-cloud-trace-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-translate-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-valkey-bom - 0.39.0 + 0.40.0-SNAPSHOT pom import com.google.cloud google-cloud-vectorsearch-bom - 0.15.0 + 0.16.0-SNAPSHOT pom import com.google.cloud google-cloud-video-intelligence-bom - 2.92.0 + 2.93.0-SNAPSHOT pom import com.google.cloud google-cloud-video-stitcher-bom - 0.93.0 + 0.94.0-SNAPSHOT pom import com.google.cloud google-cloud-video-transcoder-bom - 1.92.0 + 1.93.0-SNAPSHOT pom import com.google.cloud google-cloud-vision-bom - 3.91.0 + 3.92.0-SNAPSHOT pom import com.google.cloud google-cloud-visionai-bom - 0.50.0 + 0.51.0-SNAPSHOT pom import com.google.cloud google-cloud-vmmigration-bom - 1.93.0 + 1.94.0-SNAPSHOT pom import com.google.cloud google-cloud-vmwareengine-bom - 0.87.0 + 0.88.0-SNAPSHOT pom import com.google.cloud google-cloud-vpcaccess-bom - 2.94.0 + 2.95.0-SNAPSHOT pom import com.google.cloud google-cloud-webrisk-bom - 2.92.0 + 2.93.0-SNAPSHOT pom import com.google.cloud google-cloud-websecurityscanner-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-workflow-executions-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-workflows-bom - 2.93.0 + 2.94.0-SNAPSHOT pom import com.google.cloud google-cloud-workloadmanager-bom - 0.9.0 + 0.10.0-SNAPSHOT pom import com.google.cloud google-cloud-workspaceevents-bom - 0.57.0 + 0.58.0-SNAPSHOT pom import com.google.cloud google-cloud-workstations-bom - 0.81.0 + 0.82.0-SNAPSHOT pom import com.google.cloud google-iam-admin-bom - 3.88.0 + 3.89.0-SNAPSHOT pom import com.google.cloud google-iam-policy-bom - 1.90.0 + 1.91.0-SNAPSHOT pom import com.google.cloud google-identity-accesscontextmanager-bom - 1.94.0 + 1.95.0-SNAPSHOT pom import io.grafeas grafeas - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/google-auth-library-java/appengine/pom.xml b/google-auth-library-java/appengine/pom.xml index 051fc5f6eedc..b49d2e19789f 100644 --- a/google-auth-library-java/appengine/pom.xml +++ b/google-auth-library-java/appengine/pom.xml @@ -5,7 +5,7 @@ com.google.auth google-auth-library-parent - 1.48.0 + 1.49.0-SNAPSHOT ../pom.xml diff --git a/google-auth-library-java/bom/pom.xml b/google-auth-library-java/bom/pom.xml index d38005833e70..d10a629dc439 100644 --- a/google-auth-library-java/bom/pom.xml +++ b/google-auth-library-java/bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.auth google-auth-library-bom - 1.48.0 + 1.49.0-SNAPSHOT pom @@ -23,22 +23,22 @@ com.google.auth google-auth-library-credentials - 1.48.0 + 1.49.0-SNAPSHOT com.google.auth google-auth-library-oauth2-http - 1.48.0 + 1.49.0-SNAPSHOT com.google.auth google-auth-library-appengine - 1.48.0 + 1.49.0-SNAPSHOT com.google.auth google-auth-library-cab-token-generator - 1.48.0 + 1.49.0-SNAPSHOT diff --git a/google-auth-library-java/cab-token-generator/pom.xml b/google-auth-library-java/cab-token-generator/pom.xml index 1d50fb00cf7e..55bf58c57ccb 100644 --- a/google-auth-library-java/cab-token-generator/pom.xml +++ b/google-auth-library-java/cab-token-generator/pom.xml @@ -6,7 +6,7 @@ com.google.auth google-auth-library-parent - 1.48.0 + 1.49.0-SNAPSHOT google-auth-library-cab-token-generator diff --git a/google-auth-library-java/credentials/pom.xml b/google-auth-library-java/credentials/pom.xml index 0dec338840f0..80a039d8f046 100644 --- a/google-auth-library-java/credentials/pom.xml +++ b/google-auth-library-java/credentials/pom.xml @@ -4,7 +4,7 @@ com.google.auth google-auth-library-parent - 1.48.0 + 1.49.0-SNAPSHOT ../pom.xml diff --git a/google-auth-library-java/oauth2_http/pom.xml b/google-auth-library-java/oauth2_http/pom.xml index e2fc0718d6e0..d62086948fae 100644 --- a/google-auth-library-java/oauth2_http/pom.xml +++ b/google-auth-library-java/oauth2_http/pom.xml @@ -7,7 +7,7 @@ com.google.auth google-auth-library-parent - 1.48.0 + 1.49.0-SNAPSHOT ../pom.xml diff --git a/google-auth-library-java/pom.xml b/google-auth-library-java/pom.xml index cd6989518fbd..be2539db5912 100644 --- a/google-auth-library-java/pom.xml +++ b/google-auth-library-java/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.auth google-auth-library-parent - 1.48.0 + 1.49.0-SNAPSHOT pom Google Auth Library for Java Client libraries providing authentication and @@ -86,7 +86,7 @@ 1.15.0 2.0.17 2.13.2 - 2.64.0 + 2.65.0-SNAPSHOT 3.5.2 true diff --git a/google-cloud-jar-parent/pom.xml b/google-cloud-jar-parent/pom.xml index 04349050311f..20fa3e5ec4a7 100644 --- a/google-cloud-jar-parent/pom.xml +++ b/google-cloud-jar-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-jar-parent com.google.cloud - 1.87.0 + 1.88.0-SNAPSHOT pom Google Cloud JAR Parent @@ -15,7 +15,7 @@ com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-pom-parent/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.63.0 + 3.64.0-SNAPSHOT pom import @@ -47,7 +47,7 @@ com.google.cloud google-cloud-storage - 2.69.0 + 2.70.0-SNAPSHOT com.google.apis diff --git a/google-cloud-pom-parent/pom.xml b/google-cloud-pom-parent/pom.xml index 19e138dab615..96834c0f4bb8 100644 --- a/google-cloud-pom-parent/pom.xml +++ b/google-cloud-pom-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-pom-parent com.google.cloud - 1.87.0 + 1.88.0-SNAPSHOT pom Google Cloud POM Parent https://github.com/googleapis/google-cloud-java @@ -15,7 +15,7 @@ com.google.cloud sdk-platform-java-config - 3.63.0 + 3.64.0-SNAPSHOT ../sdk-platform-java/sdk-platform-java-config diff --git a/grpc-gcp-java/pom.xml b/grpc-gcp-java/pom.xml index f855aca7066b..9c25f79268a5 100644 --- a/grpc-gcp-java/pom.xml +++ b/grpc-gcp-java/pom.xml @@ -17,7 +17,7 @@ com.google.cloud grpc-gcp - 1.11.0 + 1.12.0-SNAPSHOT jar gRPC extension library for Google Cloud Platform @@ -62,7 +62,7 @@ UTF-8 UTF-8 grpc-gcp - 2.64.0 + 2.65.0-SNAPSHOT 1.11.0 2.48.0 2.1.0 @@ -74,7 +74,7 @@ 4.13.2 0.31.1 1.62.0 - 6.118.0 + 6.119.0-SNAPSHOT 1.4.5 4.11.0 true diff --git a/java-accessapproval/google-cloud-accessapproval-bom/pom.xml b/java-accessapproval/google-cloud-accessapproval-bom/pom.xml index 9d20ef5dc5e2..6713c936e7d8 100644 --- a/java-accessapproval/google-cloud-accessapproval-bom/pom.xml +++ b/java-accessapproval/google-cloud-accessapproval-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-accessapproval-bom - 2.94.0 + 2.95.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,17 +24,17 @@ com.google.cloud google-cloud-accessapproval - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-accessapproval-v1 - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-accessapproval/google-cloud-accessapproval/pom.xml b/java-accessapproval/google-cloud-accessapproval/pom.xml index 88b0512b89bc..077e358baff4 100644 --- a/java-accessapproval/google-cloud-accessapproval/pom.xml +++ b/java-accessapproval/google-cloud-accessapproval/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-accessapproval - 2.94.0 + 2.95.0-SNAPSHOT jar Google Cloud Access Approval Java idiomatic client for Google Cloud accessapproval com.google.cloud google-cloud-accessapproval-parent - 2.94.0 + 2.95.0-SNAPSHOT google-cloud-accessapproval diff --git a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/Version.java b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/Version.java index fdbb623da4be..0f012aac1713 100644 --- a/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/Version.java +++ b/java-accessapproval/google-cloud-accessapproval/src/main/java/com/google/cloud/accessapproval/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-accessapproval:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml b/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml index 5b2adaf5c148..1ed7b13d5307 100644 --- a/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml +++ b/java-accessapproval/grpc-google-cloud-accessapproval-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-accessapproval-v1 GRPC library for grpc-google-cloud-accessapproval-v1 com.google.cloud google-cloud-accessapproval-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-accessapproval/pom.xml b/java-accessapproval/pom.xml index 0bd0c4a4f7f4..1b059c7f7d85 100644 --- a/java-accessapproval/pom.xml +++ b/java-accessapproval/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-accessapproval-parent pom - 2.94.0 + 2.95.0-SNAPSHOT Google Cloud Access Approval Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.api.grpc proto-google-cloud-accessapproval-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-accessapproval-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.cloud google-cloud-accessapproval - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml b/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml index 8b03bfe19b1e..afbd7614a0f1 100644 --- a/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml +++ b/java-accessapproval/proto-google-cloud-accessapproval-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-accessapproval-v1 - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-accessapproval-v1beta1 PROTO library for proto-google-cloud-accessapproval-v1 com.google.cloud google-cloud-accessapproval-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml b/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml index 67099082cd6d..a5a968a359b6 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml +++ b/java-accesscontextmanager/google-identity-accesscontextmanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-identity-accesscontextmanager-bom - 1.94.0 + 1.95.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,22 +28,22 @@ com.google.cloud google-identity-accesscontextmanager - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.94.0 + 1.95.0-SNAPSHOT diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml b/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml index 26577a1bdf68..99771cc0dbe4 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml +++ b/java-accesscontextmanager/google-identity-accesscontextmanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-identity-accesscontextmanager - 1.94.0 + 1.95.0-SNAPSHOT jar Google Identity Access Context Manager Identity Access Context Manager n/a com.google.cloud google-identity-accesscontextmanager-parent - 1.94.0 + 1.95.0-SNAPSHOT google-identity-accesscontextmanager diff --git a/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/Version.java b/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/Version.java index be3697d475c3..807927d5e036 100644 --- a/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/Version.java +++ b/java-accesscontextmanager/google-identity-accesscontextmanager/src/main/java/com/google/identity/accesscontextmanager/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-identity-accesscontextmanager:current} - static final String VERSION = "1.94.0"; + static final String VERSION = "1.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml b/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml index 4ee085c5c675..c76b1249d998 100644 --- a/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml +++ b/java-accesscontextmanager/grpc-google-identity-accesscontextmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.94.0 + 1.95.0-SNAPSHOT grpc-google-identity-accesscontextmanager-v1 GRPC library for google-identity-accesscontextmanager com.google.cloud google-identity-accesscontextmanager-parent - 1.94.0 + 1.95.0-SNAPSHOT diff --git a/java-accesscontextmanager/pom.xml b/java-accesscontextmanager/pom.xml index 45fa84355291..5d20d03a07b9 100644 --- a/java-accesscontextmanager/pom.xml +++ b/java-accesscontextmanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-identity-accesscontextmanager-parent pom - 1.94.0 + 1.95.0-SNAPSHOT Google Identity Access Context Manager Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -31,22 +31,22 @@ com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc grpc-google-identity-accesscontextmanager-v1 - 1.94.0 + 1.95.0-SNAPSHOT com.google.cloud google-identity-accesscontextmanager - 1.94.0 + 1.95.0-SNAPSHOT diff --git a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml index b7f837d97a53..acfdfcb9aacc 100644 --- a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml +++ b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-type/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.94.0 + 1.95.0-SNAPSHOT proto-google-identity-accesscontextmanager-type PROTO library for proto-google-identity-accesscontextmanager-type com.google.cloud google-identity-accesscontextmanager-parent - 1.94.0 + 1.95.0-SNAPSHOT diff --git a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml index dfba7ce45a80..aef2aa0f00b4 100644 --- a/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml +++ b/java-accesscontextmanager/proto-google-identity-accesscontextmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.94.0 + 1.95.0-SNAPSHOT proto-google-identity-accesscontextmanager-v1 PROTO library for proto-google-identity-accesscontextmanager-v1 com.google.cloud google-identity-accesscontextmanager-parent - 1.94.0 + 1.95.0-SNAPSHOT @@ -37,7 +37,7 @@ com.google.api.grpc proto-google-identity-accesscontextmanager-type - 1.94.0 + 1.95.0-SNAPSHOT diff --git a/java-admanager/ad-manager-bom/pom.xml b/java-admanager/ad-manager-bom/pom.xml index 796abed9b1db..11de9e0312e8 100644 --- a/java-admanager/ad-manager-bom/pom.xml +++ b/java-admanager/ad-manager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.api-ads ad-manager-bom - 0.52.0 + 0.53.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,12 +27,12 @@ com.google.api-ads ad-manager - 0.52.0 + 0.53.0-SNAPSHOT com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.52.0 + 0.53.0-SNAPSHOT diff --git a/java-admanager/ad-manager/pom.xml b/java-admanager/ad-manager/pom.xml index 43b0070c42cb..27d58b77b93b 100644 --- a/java-admanager/ad-manager/pom.xml +++ b/java-admanager/ad-manager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.api-ads ad-manager - 0.52.0 + 0.53.0-SNAPSHOT jar Google Google Ad Manager API Google Ad Manager API The Ad Manager API enables an app to integrate with Google Ad Manager. You can read Ad Manager data and run reports using the API. com.google.api-ads ad-manager-parent - 0.52.0 + 0.53.0-SNAPSHOT ad-manager diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/Version.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/Version.java index c5ec026a4fe7..f0bba64f1303 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/Version.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:ad-manager:current} - static final String VERSION = "0.52.0"; + static final String VERSION = "0.53.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-admanager/pom.xml b/java-admanager/pom.xml index b4247c814a88..52b8999a6307 100644 --- a/java-admanager/pom.xml +++ b/java-admanager/pom.xml @@ -4,7 +4,7 @@ com.google.api-ads ad-manager-parent pom - 0.52.0 + 0.53.0-SNAPSHOT Google Google Ad Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,12 +30,12 @@ com.google.api-ads ad-manager - 0.52.0 + 0.53.0-SNAPSHOT com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.52.0 + 0.53.0-SNAPSHOT diff --git a/java-admanager/proto-ad-manager-v1/pom.xml b/java-admanager/proto-ad-manager-v1/pom.xml index 70d58f7603f8..aec559a4b611 100644 --- a/java-admanager/proto-ad-manager-v1/pom.xml +++ b/java-admanager/proto-ad-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api-ads.api.grpc proto-ad-manager-v1 - 0.52.0 + 0.53.0-SNAPSHOT proto-ad-manager-v1 Proto library for ad-manager com.google.api-ads ad-manager-parent - 0.52.0 + 0.53.0-SNAPSHOT diff --git a/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml b/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml index fa5f92eceb9e..0f304dd249db 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml +++ b/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-advisorynotifications-bom - 0.82.0 + 0.83.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-advisorynotifications - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.82.0 + 0.83.0-SNAPSHOT diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml b/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml index dd1514bd53dd..da99d368d2a8 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml +++ b/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-advisorynotifications - 0.82.0 + 0.83.0-SNAPSHOT jar Google Advisory Notifications API Advisory Notifications API An API for accessing Advisory Notifications in Google Cloud. com.google.cloud google-cloud-advisorynotifications-parent - 0.82.0 + 0.83.0-SNAPSHOT google-cloud-advisorynotifications diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/Version.java b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/Version.java index 4a7ac0f674f1..c50c5c388c3e 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/Version.java +++ b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-advisorynotifications:current} - static final String VERSION = "0.82.0"; + static final String VERSION = "0.83.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml b/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml index 155856990e2e..63953abbf28b 100644 --- a/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml +++ b/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.82.0 + 0.83.0-SNAPSHOT grpc-google-cloud-advisorynotifications-v1 GRPC library for google-cloud-advisorynotifications com.google.cloud google-cloud-advisorynotifications-parent - 0.82.0 + 0.83.0-SNAPSHOT diff --git a/java-advisorynotifications/pom.xml b/java-advisorynotifications/pom.xml index 2aa1457ca35d..c6abc6499549 100644 --- a/java-advisorynotifications/pom.xml +++ b/java-advisorynotifications/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-advisorynotifications-parent pom - 0.82.0 + 0.83.0-SNAPSHOT Google Advisory Notifications API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-advisorynotifications - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-advisorynotifications-v1 - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.82.0 + 0.83.0-SNAPSHOT diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml index 3497683ae649..335c685f18b7 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-advisorynotifications-v1 - 0.82.0 + 0.83.0-SNAPSHOT proto-google-cloud-advisorynotifications-v1 Proto library for google-cloud-advisorynotifications com.google.cloud google-cloud-advisorynotifications-parent - 0.82.0 + 0.83.0-SNAPSHOT diff --git a/java-aiplatform/google-cloud-aiplatform-bom/pom.xml b/java-aiplatform/google-cloud-aiplatform-bom/pom.xml index 036958875d40..7d59d21f2e1a 100644 --- a/java-aiplatform/google-cloud-aiplatform-bom/pom.xml +++ b/java-aiplatform/google-cloud-aiplatform-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-aiplatform-bom - 3.94.0 + 3.95.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-aiplatform - 3.94.0 + 3.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.94.0 + 3.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 3.94.0 + 3.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.94.0 + 3.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 3.94.0 + 3.95.0-SNAPSHOT diff --git a/java-aiplatform/google-cloud-aiplatform/pom.xml b/java-aiplatform/google-cloud-aiplatform/pom.xml index 11f0531db786..ff33ff17c166 100644 --- a/java-aiplatform/google-cloud-aiplatform/pom.xml +++ b/java-aiplatform/google-cloud-aiplatform/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-aiplatform - 3.94.0 + 3.95.0-SNAPSHOT jar Google Cloud Vertex AI Java client for Google Cloud Vertex AI services. com.google.cloud google-cloud-aiplatform-parent - 3.94.0 + 3.95.0-SNAPSHOT google-cloud-aiplatform diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/Version.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/Version.java index 2e5db4a38540..b60a841c9cd0 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/Version.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-aiplatform:current} - static final String VERSION = "3.94.0"; + static final String VERSION = "3.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/Version.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/Version.java index 42a4c1a63dde..8f757954bbed 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/Version.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-aiplatform:current} - static final String VERSION = "3.94.0"; + static final String VERSION = "3.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml b/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml index 75631c3fde1d..fb8726b94082 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.94.0 + 3.95.0-SNAPSHOT grpc-google-cloud-aiplatform-v1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.94.0 + 3.95.0-SNAPSHOT diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml index 799eafc65d4d..d2dd7cb784e7 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 3.94.0 + 3.95.0-SNAPSHOT grpc-google-cloud-aiplatform-v1beta1 GRPC library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.94.0 + 3.95.0-SNAPSHOT diff --git a/java-aiplatform/pom.xml b/java-aiplatform/pom.xml index daa6d6017d12..a6667d9c4ad2 100644 --- a/java-aiplatform/pom.xml +++ b/java-aiplatform/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-aiplatform-parent pom - 3.94.0 + 3.95.0-SNAPSHOT Google Cloud Vertex AI Parent Java client for Google Cloud Vertex AI services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-aiplatform - 3.94.0 + 3.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.94.0 + 3.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 3.94.0 + 3.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-aiplatform-v1 - 3.94.0 + 3.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-aiplatform-v1beta1 - 3.94.0 + 3.95.0-SNAPSHOT diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml b/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml index 0ada45b25931..4b96eee734f1 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1 - 3.94.0 + 3.95.0-SNAPSHOT proto-google-cloud-aiplatform-v1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.94.0 + 3.95.0-SNAPSHOT diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml index 90a473bd2f47..7f4f95ea1a6e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-aiplatform-v1beta1 - 3.94.0 + 3.95.0-SNAPSHOT proto-google-cloud-aiplatform-v1beta1 Proto library for google-cloud-aiplatform com.google.cloud google-cloud-aiplatform-parent - 3.94.0 + 3.95.0-SNAPSHOT diff --git a/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml b/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml index ed8d4fe2019f..b5cd17b17867 100644 --- a/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml +++ b/java-alloydb-connectors/google-cloud-alloydb-connectors-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-alloydb-connectors-bom - 0.71.0 + 0.72.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,22 +28,22 @@ com.google.cloud google-cloud-alloydb-connectors - 0.71.0 + 0.72.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.71.0 + 0.72.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.71.0 + 0.72.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.71.0 + 0.72.0-SNAPSHOT diff --git a/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml b/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml index 46c0c965835c..d0f867f3fb90 100644 --- a/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml +++ b/java-alloydb-connectors/google-cloud-alloydb-connectors/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-alloydb-connectors - 0.71.0 + 0.72.0-SNAPSHOT jar Google AlloyDB connectors AlloyDB connectors AlloyDB is a fully-managed, PostgreSQL-compatible database for demanding transactional workloads. It provides enterprise-grade performance and availability while maintaining 100% compatibility with open-source PostgreSQL. com.google.cloud google-cloud-alloydb-connectors-parent - 0.71.0 + 0.72.0-SNAPSHOT google-cloud-alloydb-connectors diff --git a/java-alloydb-connectors/pom.xml b/java-alloydb-connectors/pom.xml index 83cf2e9cb07c..a317938fd8c7 100644 --- a/java-alloydb-connectors/pom.xml +++ b/java-alloydb-connectors/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-alloydb-connectors-parent pom - 0.71.0 + 0.72.0-SNAPSHOT Google AlloyDB connectors Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,22 +30,22 @@ com.google.cloud google-cloud-alloydb-connectors - 0.71.0 + 0.72.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.71.0 + 0.72.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.71.0 + 0.72.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.71.0 + 0.72.0-SNAPSHOT diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml index ebb716729ed8..ea03dbe69d2d 100644 --- a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1 - 0.71.0 + 0.72.0-SNAPSHOT proto-google-cloud-alloydb-connectors-v1 Proto library for google-cloud-alloydb-connectors com.google.cloud google-cloud-alloydb-connectors-parent - 0.71.0 + 0.72.0-SNAPSHOT diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml index 2a153c128cfa..bf16ad47fadd 100644 --- a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1alpha - 0.71.0 + 0.72.0-SNAPSHOT proto-google-cloud-alloydb-connectors-v1alpha Proto library for google-cloud-alloydb-connectors com.google.cloud google-cloud-alloydb-connectors-parent - 0.71.0 + 0.72.0-SNAPSHOT diff --git a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml index 8b6236a9ed7d..b78c901043de 100644 --- a/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml +++ b/java-alloydb-connectors/proto-google-cloud-alloydb-connectors-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-connectors-v1beta - 0.71.0 + 0.72.0-SNAPSHOT proto-google-cloud-alloydb-connectors-v1beta Proto library for google-cloud-alloydb-connectors com.google.cloud google-cloud-alloydb-connectors-parent - 0.71.0 + 0.72.0-SNAPSHOT diff --git a/java-alloydb/google-cloud-alloydb-bom/pom.xml b/java-alloydb/google-cloud-alloydb-bom/pom.xml index 764bbabb19f9..9b45cce25295 100644 --- a/java-alloydb/google-cloud-alloydb-bom/pom.xml +++ b/java-alloydb/google-cloud-alloydb-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-alloydb-bom - 0.82.0 + 0.83.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,37 +28,37 @@ com.google.cloud google-cloud-alloydb - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.82.0 + 0.83.0-SNAPSHOT diff --git a/java-alloydb/google-cloud-alloydb/pom.xml b/java-alloydb/google-cloud-alloydb/pom.xml index d546a28ac299..1968a15198a4 100644 --- a/java-alloydb/google-cloud-alloydb/pom.xml +++ b/java-alloydb/google-cloud-alloydb/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-alloydb - 0.82.0 + 0.83.0-SNAPSHOT jar Google AlloyDB AlloyDB AlloyDB is a fully managed, PostgreSQL-compatible database service with industry-leading performance, availability, and scale. com.google.cloud google-cloud-alloydb-parent - 0.82.0 + 0.83.0-SNAPSHOT google-cloud-alloydb diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/Version.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/Version.java index 5cef689b62c8..8234bd3698c6 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/Version.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-alloydb:current} - static final String VERSION = "0.82.0"; + static final String VERSION = "0.83.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/Version.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/Version.java index 19da7ab64c73..e332463fc3d3 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/Version.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-alloydb:current} - static final String VERSION = "0.82.0"; + static final String VERSION = "0.83.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/Version.java b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/Version.java index 62558e1d104e..c9f69c57cfcc 100644 --- a/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/Version.java +++ b/java-alloydb/google-cloud-alloydb/src/main/java/com/google/cloud/alloydb/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-alloydb:current} - static final String VERSION = "0.82.0"; + static final String VERSION = "0.83.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml b/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml index fd1a651bfaaa..5b7cdad3c316 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml +++ b/java-alloydb/grpc-google-cloud-alloydb-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.82.0 + 0.83.0-SNAPSHOT grpc-google-cloud-alloydb-v1 GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.82.0 + 0.83.0-SNAPSHOT diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml index 739f454e04b7..91fefc30864d 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml +++ b/java-alloydb/grpc-google-cloud-alloydb-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.82.0 + 0.83.0-SNAPSHOT grpc-google-cloud-alloydb-v1alpha GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.82.0 + 0.83.0-SNAPSHOT diff --git a/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml b/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml index b655d5e1fafc..58e8d81c0b87 100644 --- a/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml +++ b/java-alloydb/grpc-google-cloud-alloydb-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.82.0 + 0.83.0-SNAPSHOT grpc-google-cloud-alloydb-v1beta GRPC library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.82.0 + 0.83.0-SNAPSHOT diff --git a/java-alloydb/pom.xml b/java-alloydb/pom.xml index d8c0fb71d6b6..79fe6c164c77 100644 --- a/java-alloydb/pom.xml +++ b/java-alloydb/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-alloydb-parent pom - 0.82.0 + 0.83.0-SNAPSHOT Google AlloyDB Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,37 +30,37 @@ com.google.cloud google-cloud-alloydb - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-alloydb-v1beta - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-alloydb-v1 - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-alloydb-v1alpha - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.82.0 + 0.83.0-SNAPSHOT diff --git a/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml b/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml index 6abd71cb299a..7e58a9bb953f 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml +++ b/java-alloydb/proto-google-cloud-alloydb-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-v1 - 0.82.0 + 0.83.0-SNAPSHOT proto-google-cloud-alloydb-v1 Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.82.0 + 0.83.0-SNAPSHOT diff --git a/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml b/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml index 97cf810c1b4d..8fc63a2290c0 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml +++ b/java-alloydb/proto-google-cloud-alloydb-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-v1alpha - 0.82.0 + 0.83.0-SNAPSHOT proto-google-cloud-alloydb-v1alpha Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.82.0 + 0.83.0-SNAPSHOT diff --git a/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml b/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml index 2f9957c7868f..30f4bd2e535e 100644 --- a/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml +++ b/java-alloydb/proto-google-cloud-alloydb-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-alloydb-v1beta - 0.82.0 + 0.83.0-SNAPSHOT proto-google-cloud-alloydb-v1beta Proto library for google-cloud-alloydb com.google.cloud google-cloud-alloydb-parent - 0.82.0 + 0.83.0-SNAPSHOT diff --git a/java-analytics-admin/google-analytics-admin-bom/pom.xml b/java-analytics-admin/google-analytics-admin-bom/pom.xml index 8090d190fb14..596d84c39b90 100644 --- a/java-analytics-admin/google-analytics-admin-bom/pom.xml +++ b/java-analytics-admin/google-analytics-admin-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.analytics google-analytics-admin-bom - 0.103.0 + 0.104.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.analytics google-analytics-admin - 0.103.0 + 0.104.0-SNAPSHOT com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.103.0 + 0.104.0-SNAPSHOT com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.103.0 + 0.104.0-SNAPSHOT com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.103.0 + 0.104.0-SNAPSHOT com.google.api.grpc proto-google-analytics-admin-v1beta - 0.103.0 + 0.104.0-SNAPSHOT diff --git a/java-analytics-admin/google-analytics-admin/pom.xml b/java-analytics-admin/google-analytics-admin/pom.xml index 164b7021ea19..bca2d435a385 100644 --- a/java-analytics-admin/google-analytics-admin/pom.xml +++ b/java-analytics-admin/google-analytics-admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.analytics google-analytics-admin - 0.103.0 + 0.104.0-SNAPSHOT jar Google Analytics Admin allows you to manage Google Analytics accounts and properties. com.google.analytics google-analytics-admin-parent - 0.103.0 + 0.104.0-SNAPSHOT google-analytics-admin diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/Version.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/Version.java index c5420caa9f35..2b0a15609b3a 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/Version.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-analytics-admin:current} - static final String VERSION = "0.103.0"; + static final String VERSION = "0.104.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/Version.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/Version.java index edfb735d7cee..c5d74d4c7260 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/Version.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-analytics-admin:current} - static final String VERSION = "0.103.0"; + static final String VERSION = "0.104.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml index d8de0c1e6b3b..9e79fde50877 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml +++ b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.103.0 + 0.104.0-SNAPSHOT grpc-google-analytics-admin-v1alpha GRPC library for grpc-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.103.0 + 0.104.0-SNAPSHOT diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml b/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml index dc973f84d160..fb0f49b13109 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml +++ b/java-analytics-admin/grpc-google-analytics-admin-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.103.0 + 0.104.0-SNAPSHOT grpc-google-analytics-admin-v1beta GRPC library for google-analytics-admin com.google.analytics google-analytics-admin-parent - 0.103.0 + 0.104.0-SNAPSHOT diff --git a/java-analytics-admin/pom.xml b/java-analytics-admin/pom.xml index a40cb71e234c..66b5c2505e3d 100644 --- a/java-analytics-admin/pom.xml +++ b/java-analytics-admin/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-admin-parent pom - 0.103.0 + 0.104.0-SNAPSHOT Google Analytics Admin Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.analytics google-analytics-admin - 0.103.0 + 0.104.0-SNAPSHOT com.google.api.grpc proto-google-analytics-admin-v1beta - 0.103.0 + 0.104.0-SNAPSHOT com.google.api.grpc grpc-google-analytics-admin-v1beta - 0.103.0 + 0.104.0-SNAPSHOT com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.103.0 + 0.104.0-SNAPSHOT com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.103.0 + 0.104.0-SNAPSHOT diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml b/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml index 717251b70e34..67d9fbfd1642 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.103.0 + 0.104.0-SNAPSHOT proto-google-analytics-admin-v1alpha PROTO library for proto-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.103.0 + 0.104.0-SNAPSHOT diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml b/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml index 32d462a38366..18bf1d17c61e 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-admin-v1beta - 0.103.0 + 0.104.0-SNAPSHOT proto-google-analytics-admin-v1beta Proto library for google-analytics-admin com.google.analytics google-analytics-admin-parent - 0.103.0 + 0.104.0-SNAPSHOT diff --git a/java-analytics-data/google-analytics-data-bom/pom.xml b/java-analytics-data/google-analytics-data-bom/pom.xml index 063ae7cef0c5..b2a2cdada5c8 100644 --- a/java-analytics-data/google-analytics-data-bom/pom.xml +++ b/java-analytics-data/google-analytics-data-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.104.0 + 0.105.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.analytics google-analytics-data - 0.104.0 + 0.105.0-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.104.0 + 0.105.0-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.104.0 + 0.105.0-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.104.0 + 0.105.0-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.104.0 + 0.105.0-SNAPSHOT diff --git a/java-analytics-data/google-analytics-data/pom.xml b/java-analytics-data/google-analytics-data/pom.xml index ecfac3317998..2819c20fef30 100644 --- a/java-analytics-data/google-analytics-data/pom.xml +++ b/java-analytics-data/google-analytics-data/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.analytics google-analytics-data - 0.104.0 + 0.105.0-SNAPSHOT jar Google Analytics Data provides programmatic methods to access report data in Google Analytics App+Web properties. com.google.analytics google-analytics-data-parent - 0.104.0 + 0.105.0-SNAPSHOT google-analytics-data diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/Version.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/Version.java index 04d758d410cd..cc46a9cdb2cd 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/Version.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-analytics-data:current} - static final String VERSION = "0.104.0"; + static final String VERSION = "0.105.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/Version.java b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/Version.java index 30e10722d3a3..69ab21cc6221 100644 --- a/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/Version.java +++ b/java-analytics-data/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-analytics-data:current} - static final String VERSION = "0.104.0"; + static final String VERSION = "0.105.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml b/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml index 4029eff5f59e..97af48c26f01 100644 --- a/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml +++ b/java-analytics-data/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.104.0 + 0.105.0-SNAPSHOT grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.104.0 + 0.105.0-SNAPSHOT diff --git a/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml b/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml index 86ccd8ba7b3d..17a7f7b0004f 100644 --- a/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml +++ b/java-analytics-data/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.104.0 + 0.105.0-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.104.0 + 0.105.0-SNAPSHOT diff --git a/java-analytics-data/pom.xml b/java-analytics-data/pom.xml index 33cb3b4403d7..4c5bf94592c2 100644 --- a/java-analytics-data/pom.xml +++ b/java-analytics-data/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.104.0 + 0.105.0-SNAPSHOT Google Analytics Data Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.analytics google-analytics-data - 0.104.0 + 0.105.0-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.104.0 + 0.105.0-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.104.0 + 0.105.0-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.104.0 + 0.105.0-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.104.0 + 0.105.0-SNAPSHOT diff --git a/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml b/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml index 5ca1392d3f02..cbf660aea443 100644 --- a/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml +++ b/java-analytics-data/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.104.0 + 0.105.0-SNAPSHOT proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.104.0 + 0.105.0-SNAPSHOT diff --git a/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml b/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml index 477930ed428a..8a22141fe2ec 100644 --- a/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml +++ b/java-analytics-data/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.104.0 + 0.105.0-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.104.0 + 0.105.0-SNAPSHOT diff --git a/java-analyticshub/google-cloud-analyticshub-bom/pom.xml b/java-analyticshub/google-cloud-analyticshub-bom/pom.xml index 9a881bc81d44..4380cf0c4a61 100644 --- a/java-analyticshub/google-cloud-analyticshub-bom/pom.xml +++ b/java-analyticshub/google-cloud-analyticshub-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-analyticshub-bom - 0.90.0 + 0.91.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-analyticshub - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-analyticshub/google-cloud-analyticshub/pom.xml b/java-analyticshub/google-cloud-analyticshub/pom.xml index dd55a37f93c7..ad577f554f0a 100644 --- a/java-analyticshub/google-cloud-analyticshub/pom.xml +++ b/java-analyticshub/google-cloud-analyticshub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-analyticshub - 0.90.0 + 0.91.0-SNAPSHOT jar Google Analytics Hub API Analytics Hub API TBD com.google.cloud google-cloud-analyticshub-parent - 0.90.0 + 0.91.0-SNAPSHOT google-cloud-analyticshub diff --git a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/Version.java b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/Version.java index 2e395e60a7ce..6366d0e3cbbd 100644 --- a/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/Version.java +++ b/java-analyticshub/google-cloud-analyticshub/src/main/java/com/google/cloud/bigquery/analyticshub/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-analyticshub:current} - static final String VERSION = "0.90.0"; + static final String VERSION = "0.91.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml b/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml index b475bbce7795..6c55b170dce9 100644 --- a/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml +++ b/java-analyticshub/grpc-google-cloud-analyticshub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.90.0 + 0.91.0-SNAPSHOT grpc-google-cloud-analyticshub-v1 GRPC library for google-cloud-analyticshub com.google.cloud google-cloud-analyticshub-parent - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-analyticshub/pom.xml b/java-analyticshub/pom.xml index 504092ac84ed..f9ad97e1bd9b 100644 --- a/java-analyticshub/pom.xml +++ b/java-analyticshub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-analyticshub-parent pom - 0.90.0 + 0.91.0-SNAPSHOT Google Analytics Hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-analyticshub - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-analyticshub-v1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml b/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml index 64821c2aad87..dfc53bc74ef5 100644 --- a/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml +++ b/java-analyticshub/proto-google-cloud-analyticshub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-analyticshub-v1 - 0.90.0 + 0.91.0-SNAPSHOT proto-google-cloud-analyticshub-v1 Proto library for google-cloud-analyticshub com.google.cloud google-cloud-analyticshub-parent - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-api-gateway/google-cloud-api-gateway-bom/pom.xml b/java-api-gateway/google-cloud-api-gateway-bom/pom.xml index c4dd31d4e8aa..23f9c409cda6 100644 --- a/java-api-gateway/google-cloud-api-gateway-bom/pom.xml +++ b/java-api-gateway/google-cloud-api-gateway-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-api-gateway-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-api-gateway - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-api-gateway/google-cloud-api-gateway/pom.xml b/java-api-gateway/google-cloud-api-gateway/pom.xml index 0c651323d5c6..963d39467022 100644 --- a/java-api-gateway/google-cloud-api-gateway/pom.xml +++ b/java-api-gateway/google-cloud-api-gateway/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-api-gateway - 2.93.0 + 2.94.0-SNAPSHOT jar Google API Gateway API Gateway enables you to provide secure access to your backend services through a well-defined REST API that is consistent across all of your services, regardless of the service implementation. Clients consume your REST APIS to implement standalone apps for a mobile device or tablet, through apps running in a browser, or through any other type of app that can make a request to an HTTP endpoint. com.google.cloud google-cloud-api-gateway-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-api-gateway diff --git a/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/Version.java b/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/Version.java index 4465f5cdbca4..655bf5f4a651 100644 --- a/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/Version.java +++ b/java-api-gateway/google-cloud-api-gateway/src/main/java/com/google/cloud/apigateway/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-api-gateway:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml b/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml index 710622c204a9..3767e14f350f 100644 --- a/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml +++ b/java-api-gateway/grpc-google-cloud-api-gateway-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-api-gateway-v1 GRPC library for google-cloud-api-gateway com.google.cloud google-cloud-api-gateway-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-api-gateway/pom.xml b/java-api-gateway/pom.xml index ce99f3297072..cc54b035ed47 100644 --- a/java-api-gateway/pom.xml +++ b/java-api-gateway/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-api-gateway-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google API Gateway Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-api-gateway - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-api-gateway-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml b/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml index a5d94cec9a53..d0f48e271ce7 100644 --- a/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml +++ b/java-api-gateway/proto-google-cloud-api-gateway-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-api-gateway-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-api-gateway-v1 Proto library for google-cloud-api-gateway com.google.cloud google-cloud-api-gateway-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml b/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml index eeae9e2aa6c9..77d5ad3657ee 100644 --- a/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml +++ b/java-apigee-connect/google-cloud-apigee-connect-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apigee-connect-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-apigee-connect - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-apigee-connect/google-cloud-apigee-connect/pom.xml b/java-apigee-connect/google-cloud-apigee-connect/pom.xml index 852ed0c22588..8655c12e8438 100644 --- a/java-apigee-connect/google-cloud-apigee-connect/pom.xml +++ b/java-apigee-connect/google-cloud-apigee-connect/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apigee-connect - 2.93.0 + 2.94.0-SNAPSHOT jar Google Apigee Connect Apigee Connect allows the Apigee hybrid management plane to connect securely to the MART service in the runtime plane without requiring you to expose the MART endpoint on the internet. com.google.cloud google-cloud-apigee-connect-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-apigee-connect diff --git a/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/Version.java b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/Version.java index 5d06d86da665..1bd6ac27e58e 100644 --- a/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/Version.java +++ b/java-apigee-connect/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-apigee-connect:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml b/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml index 7c7d5947cc05..00d39c0db775 100644 --- a/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml +++ b/java-apigee-connect/grpc-google-cloud-apigee-connect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-apigee-connect-v1 GRPC library for google-cloud-apigee-connect com.google.cloud google-cloud-apigee-connect-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-apigee-connect/pom.xml b/java-apigee-connect/pom.xml index ac9f6e4d2a64..e1151cc15e9d 100644 --- a/java-apigee-connect/pom.xml +++ b/java-apigee-connect/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apigee-connect-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Apigee Connect Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-apigee-connect - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-apigee-connect-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml b/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml index 0d9ce49954cd..961c2e3c4e30 100644 --- a/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml +++ b/java-apigee-connect/proto-google-cloud-apigee-connect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apigee-connect-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-apigee-connect-v1 Proto library for google-cloud-apigee-connect com.google.cloud google-cloud-apigee-connect-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml b/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml index 510fbbf83ffd..81c9c488a595 100644 --- a/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml +++ b/java-apigee-registry/google-cloud-apigee-registry-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apigee-registry-bom - 0.93.0 + 0.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-apigee-registry - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-apigee-registry/google-cloud-apigee-registry/pom.xml b/java-apigee-registry/google-cloud-apigee-registry/pom.xml index 247676b3eeec..f48b4d0e79d5 100644 --- a/java-apigee-registry/google-cloud-apigee-registry/pom.xml +++ b/java-apigee-registry/google-cloud-apigee-registry/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apigee-registry - 0.93.0 + 0.94.0-SNAPSHOT jar Google Registry API Registry API allows teams to upload and share machine-readable descriptions of APIs that are in use and in development. com.google.cloud google-cloud-apigee-registry-parent - 0.93.0 + 0.94.0-SNAPSHOT google-cloud-apigee-registry diff --git a/java-apigee-registry/google-cloud-apigee-registry/src/main/java/com/google/cloud/apigeeregistry/v1/stub/Version.java b/java-apigee-registry/google-cloud-apigee-registry/src/main/java/com/google/cloud/apigeeregistry/v1/stub/Version.java index 4dfb1273bb8b..9daa07891d09 100644 --- a/java-apigee-registry/google-cloud-apigee-registry/src/main/java/com/google/cloud/apigeeregistry/v1/stub/Version.java +++ b/java-apigee-registry/google-cloud-apigee-registry/src/main/java/com/google/cloud/apigeeregistry/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-apigee-registry:current} - static final String VERSION = "0.93.0"; + static final String VERSION = "0.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml b/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml index 5d41f4404efc..4de714f53ed2 100644 --- a/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml +++ b/java-apigee-registry/grpc-google-cloud-apigee-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.93.0 + 0.94.0-SNAPSHOT grpc-google-cloud-apigee-registry-v1 GRPC library for google-cloud-apigee-registry com.google.cloud google-cloud-apigee-registry-parent - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-apigee-registry/pom.xml b/java-apigee-registry/pom.xml index 0c2f9133a9b2..cdf36ca7bfc9 100644 --- a/java-apigee-registry/pom.xml +++ b/java-apigee-registry/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apigee-registry-parent pom - 0.93.0 + 0.94.0-SNAPSHOT Google Registry API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-apigee-registry - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-apigee-registry-v1 - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml b/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml index caf77ef77433..c249f0f59300 100644 --- a/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml +++ b/java-apigee-registry/proto-google-cloud-apigee-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apigee-registry-v1 - 0.93.0 + 0.94.0-SNAPSHOT proto-google-cloud-apigee-registry-v1 Proto library for google-cloud-apigee-registry com.google.cloud google-cloud-apigee-registry-parent - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-apihub/google-cloud-apihub-bom/pom.xml b/java-apihub/google-cloud-apihub-bom/pom.xml index 3052026b4d54..0ea946edd026 100644 --- a/java-apihub/google-cloud-apihub-bom/pom.xml +++ b/java-apihub/google-cloud-apihub-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-apihub-bom - 0.46.0 + 0.47.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,12 +27,12 @@ com.google.cloud google-cloud-apihub - 0.46.0 + 0.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-apihub-v1 - 0.46.0 + 0.47.0-SNAPSHOT diff --git a/java-apihub/google-cloud-apihub/pom.xml b/java-apihub/google-cloud-apihub/pom.xml index a8f758256df7..98a9074f51e8 100644 --- a/java-apihub/google-cloud-apihub/pom.xml +++ b/java-apihub/google-cloud-apihub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apihub - 0.46.0 + 0.47.0-SNAPSHOT jar Google API hub API API hub API API hub lets you consolidate and organize information about all of the APIs of interest to your organization. API hub lets you capture critical information about APIs that allows developers to discover and evaluate them easily and leverage the work of other teams wherever possible. API platform teams can use API hub to have visibility into and manage their portfolio of APIs. com.google.cloud google-cloud-apihub-parent - 0.46.0 + 0.47.0-SNAPSHOT google-cloud-apihub diff --git a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/Version.java b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/Version.java index 28c53b3b7ed4..6bc567cce5dd 100644 --- a/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/Version.java +++ b/java-apihub/google-cloud-apihub/src/main/java/com/google/cloud/apihub/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-apihub:current} - static final String VERSION = "0.46.0"; + static final String VERSION = "0.47.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-apihub/pom.xml b/java-apihub/pom.xml index 46acbb81f3cf..3f46729c2bb7 100644 --- a/java-apihub/pom.xml +++ b/java-apihub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apihub-parent pom - 0.46.0 + 0.47.0-SNAPSHOT Google API hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,12 +30,12 @@ com.google.cloud google-cloud-apihub - 0.46.0 + 0.47.0-SNAPSHOT com.google.api.grpc proto-google-cloud-apihub-v1 - 0.46.0 + 0.47.0-SNAPSHOT diff --git a/java-apihub/proto-google-cloud-apihub-v1/pom.xml b/java-apihub/proto-google-cloud-apihub-v1/pom.xml index 0bbb08f76520..a09a24e0cc89 100644 --- a/java-apihub/proto-google-cloud-apihub-v1/pom.xml +++ b/java-apihub/proto-google-cloud-apihub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apihub-v1 - 0.46.0 + 0.47.0-SNAPSHOT proto-google-cloud-apihub-v1 Proto library for google-cloud-apihub com.google.cloud google-cloud-apihub-parent - 0.46.0 + 0.47.0-SNAPSHOT diff --git a/java-apikeys/google-cloud-apikeys-bom/pom.xml b/java-apikeys/google-cloud-apikeys-bom/pom.xml index fb4eff132730..e040d8c8eec0 100644 --- a/java-apikeys/google-cloud-apikeys-bom/pom.xml +++ b/java-apikeys/google-cloud-apikeys-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apikeys-bom - 0.91.0 + 0.92.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-apikeys - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-apikeys/google-cloud-apikeys/pom.xml b/java-apikeys/google-cloud-apikeys/pom.xml index 7dbef03b2d1d..4cd736d12770 100644 --- a/java-apikeys/google-cloud-apikeys/pom.xml +++ b/java-apikeys/google-cloud-apikeys/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apikeys - 0.91.0 + 0.92.0-SNAPSHOT jar Google API Keys API API Keys API API Keys lets you create and manage your API keys for your projects. com.google.cloud google-cloud-apikeys-parent - 0.91.0 + 0.92.0-SNAPSHOT google-cloud-apikeys diff --git a/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/Version.java b/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/Version.java index 1fbeabbaaab8..ba5a1b01fbd2 100644 --- a/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/Version.java +++ b/java-apikeys/google-cloud-apikeys/src/main/java/com/google/api/apikeys/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-apikeys:current} - static final String VERSION = "0.91.0"; + static final String VERSION = "0.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml b/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml index 9084f9fae43a..5675c85f2f96 100644 --- a/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml +++ b/java-apikeys/grpc-google-cloud-apikeys-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.91.0 + 0.92.0-SNAPSHOT grpc-google-cloud-apikeys-v2 GRPC library for google-cloud-apikeys com.google.cloud google-cloud-apikeys-parent - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-apikeys/pom.xml b/java-apikeys/pom.xml index 6741d8820221..6cc626c540df 100644 --- a/java-apikeys/pom.xml +++ b/java-apikeys/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apikeys-parent pom - 0.91.0 + 0.92.0-SNAPSHOT Google API Keys API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-apikeys - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-apikeys-v2 - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml b/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml index 0695158ef946..3d3b18633af0 100644 --- a/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml +++ b/java-apikeys/proto-google-cloud-apikeys-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apikeys-v2 - 0.91.0 + 0.92.0-SNAPSHOT proto-google-cloud-apikeys-v2 Proto library for google-cloud-apikeys com.google.cloud google-cloud-apikeys-parent - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml b/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml index 7fe75132cbf0..846ae92785cf 100644 --- a/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml +++ b/java-appengine-admin/google-cloud-appengine-admin-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-appengine-admin-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-appengine-admin - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-appengine-admin/google-cloud-appengine-admin/pom.xml b/java-appengine-admin/google-cloud-appengine-admin/pom.xml index 99531895b48e..36919e35280b 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/pom.xml +++ b/java-appengine-admin/google-cloud-appengine-admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-appengine-admin - 2.93.0 + 2.94.0-SNAPSHOT jar Google App Engine Admin API App Engine Admin API you to manage your App Engine applications. com.google.cloud google-cloud-appengine-admin-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-appengine-admin diff --git a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/Version.java b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/Version.java index 0714296522d6..df96fea41391 100644 --- a/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/Version.java +++ b/java-appengine-admin/google-cloud-appengine-admin/src/main/java/com/google/appengine/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-appengine-admin:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml index 71dbe3fb1f8e..f7ce2dbbb104 100644 --- a/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml +++ b/java-appengine-admin/grpc-google-cloud-appengine-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-appengine-admin-v1 GRPC library for google-cloud-appengine-admin com.google.cloud google-cloud-appengine-admin-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-appengine-admin/pom.xml b/java-appengine-admin/pom.xml index 999a166f1677..e95d0d93135f 100644 --- a/java-appengine-admin/pom.xml +++ b/java-appengine-admin/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-appengine-admin-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google App Engine Admin API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-appengine-admin - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-appengine-admin-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml b/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml index cccd3ce256fc..ab2afc544d76 100644 --- a/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml +++ b/java-appengine-admin/proto-google-cloud-appengine-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-appengine-admin-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-appengine-admin-v1 Proto library for google-cloud-appengine-admin com.google.cloud google-cloud-appengine-admin-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-apphub/google-cloud-apphub-bom/pom.xml b/java-apphub/google-cloud-apphub-bom/pom.xml index 15c038b0e3b6..f0d88511a9db 100644 --- a/java-apphub/google-cloud-apphub-bom/pom.xml +++ b/java-apphub/google-cloud-apphub-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-apphub-bom - 0.57.0 + 0.58.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-apphub - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc proto-google-cloud-apphub-v1 - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-apphub/google-cloud-apphub/pom.xml b/java-apphub/google-cloud-apphub/pom.xml index bd4bcc706717..ba6d11985f7f 100644 --- a/java-apphub/google-cloud-apphub/pom.xml +++ b/java-apphub/google-cloud-apphub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-apphub - 0.57.0 + 0.58.0-SNAPSHOT jar Google App Hub API App Hub API App Hub simplifies the process of building, running, and managing applications on Google Cloud. com.google.cloud google-cloud-apphub-parent - 0.57.0 + 0.58.0-SNAPSHOT google-cloud-apphub diff --git a/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/Version.java b/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/Version.java index aa7ccf222404..6783c0e6cb58 100644 --- a/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/Version.java +++ b/java-apphub/google-cloud-apphub/src/main/java/com/google/cloud/apphub/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-apphub:current} - static final String VERSION = "0.57.0"; + static final String VERSION = "0.58.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-apphub/grpc-google-cloud-apphub-v1/pom.xml b/java-apphub/grpc-google-cloud-apphub-v1/pom.xml index 7c90c9d3db85..d11ff6814bbf 100644 --- a/java-apphub/grpc-google-cloud-apphub-v1/pom.xml +++ b/java-apphub/grpc-google-cloud-apphub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.57.0 + 0.58.0-SNAPSHOT grpc-google-cloud-apphub-v1 GRPC library for google-cloud-apphub com.google.cloud google-cloud-apphub-parent - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-apphub/pom.xml b/java-apphub/pom.xml index 6addd406a0ec..43778d787639 100644 --- a/java-apphub/pom.xml +++ b/java-apphub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-apphub-parent pom - 0.57.0 + 0.58.0-SNAPSHOT Google App Hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-apphub - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-apphub-v1 - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc proto-google-cloud-apphub-v1 - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-apphub/proto-google-cloud-apphub-v1/pom.xml b/java-apphub/proto-google-cloud-apphub-v1/pom.xml index b08b69654e33..18ae510f1134 100644 --- a/java-apphub/proto-google-cloud-apphub-v1/pom.xml +++ b/java-apphub/proto-google-cloud-apphub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-apphub-v1 - 0.57.0 + 0.58.0-SNAPSHOT proto-google-cloud-apphub-v1 Proto library for google-cloud-apphub com.google.cloud google-cloud-apphub-parent - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-appoptimize/google-cloud-appoptimize-bom/pom.xml b/java-appoptimize/google-cloud-appoptimize-bom/pom.xml index f8148b9fa9dd..ec436fa63a52 100644 --- a/java-appoptimize/google-cloud-appoptimize-bom/pom.xml +++ b/java-appoptimize/google-cloud-appoptimize-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-appoptimize-bom - 0.3.0 + 0.4.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-appoptimize - 0.3.0 + 0.4.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-appoptimize-v1beta - 0.3.0 + 0.4.0-SNAPSHOT com.google.api.grpc proto-google-cloud-appoptimize-v1beta - 0.3.0 + 0.4.0-SNAPSHOT diff --git a/java-appoptimize/google-cloud-appoptimize/pom.xml b/java-appoptimize/google-cloud-appoptimize/pom.xml index 3bc33192ddb2..692994cdeab3 100644 --- a/java-appoptimize/google-cloud-appoptimize/pom.xml +++ b/java-appoptimize/google-cloud-appoptimize/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-appoptimize - 0.3.0 + 0.4.0-SNAPSHOT jar Google App Optimize API App Optimize API The App Optimize API provides developers and platform teams with tools to monitor, analyze, and improve the performance and cost-efficiency of their cloud applications. com.google.cloud google-cloud-appoptimize-parent - 0.3.0 + 0.4.0-SNAPSHOT google-cloud-appoptimize diff --git a/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/stub/Version.java b/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/stub/Version.java index 600ca39f8391..5a7a1d82f22f 100644 --- a/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/stub/Version.java +++ b/java-appoptimize/google-cloud-appoptimize/src/main/java/com/google/cloud/appoptimize/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-appoptimize:current} - static final String VERSION = "0.3.0"; + static final String VERSION = "0.4.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-appoptimize/grpc-google-cloud-appoptimize-v1beta/pom.xml b/java-appoptimize/grpc-google-cloud-appoptimize-v1beta/pom.xml index 3f78859e9418..a9782773201b 100644 --- a/java-appoptimize/grpc-google-cloud-appoptimize-v1beta/pom.xml +++ b/java-appoptimize/grpc-google-cloud-appoptimize-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-appoptimize-v1beta - 0.3.0 + 0.4.0-SNAPSHOT grpc-google-cloud-appoptimize-v1beta GRPC library for google-cloud-appoptimize com.google.cloud google-cloud-appoptimize-parent - 0.3.0 + 0.4.0-SNAPSHOT diff --git a/java-appoptimize/pom.xml b/java-appoptimize/pom.xml index aaa3702f3608..8c0774939ea7 100644 --- a/java-appoptimize/pom.xml +++ b/java-appoptimize/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-appoptimize-parent pom - 0.3.0 + 0.4.0-SNAPSHOT Google App Optimize API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-appoptimize - 0.3.0 + 0.4.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-appoptimize-v1beta - 0.3.0 + 0.4.0-SNAPSHOT com.google.api.grpc proto-google-cloud-appoptimize-v1beta - 0.3.0 + 0.4.0-SNAPSHOT diff --git a/java-appoptimize/proto-google-cloud-appoptimize-v1beta/pom.xml b/java-appoptimize/proto-google-cloud-appoptimize-v1beta/pom.xml index ec54efcf3b4d..19cea7459e44 100644 --- a/java-appoptimize/proto-google-cloud-appoptimize-v1beta/pom.xml +++ b/java-appoptimize/proto-google-cloud-appoptimize-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-appoptimize-v1beta - 0.3.0 + 0.4.0-SNAPSHOT proto-google-cloud-appoptimize-v1beta Proto library for google-cloud-appoptimize com.google.cloud google-cloud-appoptimize-parent - 0.3.0 + 0.4.0-SNAPSHOT diff --git a/java-area120-tables/google-area120-tables-bom/pom.xml b/java-area120-tables/google-area120-tables-bom/pom.xml index d6f2ffae8585..46316296995b 100644 --- a/java-area120-tables/google-area120-tables-bom/pom.xml +++ b/java-area120-tables/google-area120-tables-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.area120 google-area120-tables-bom - 0.97.0 + 0.98.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.area120 google-area120-tables - 0.97.0 + 0.98.0-SNAPSHOT com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.97.0 + 0.98.0-SNAPSHOT com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.97.0 + 0.98.0-SNAPSHOT diff --git a/java-area120-tables/google-area120-tables/pom.xml b/java-area120-tables/google-area120-tables/pom.xml index 394858e7da61..926761ec598d 100644 --- a/java-area120-tables/google-area120-tables/pom.xml +++ b/java-area120-tables/google-area120-tables/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.area120 google-area120-tables - 0.97.0 + 0.98.0-SNAPSHOT jar Google Area 120 Tables provides programmatic methods to the Area 120 Tables API. com.google.area120 google-area120-tables-parent - 0.97.0 + 0.98.0-SNAPSHOT google-area120-tables diff --git a/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/stub/Version.java b/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/stub/Version.java index 6b77e96346e5..5f06b690daf6 100644 --- a/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/stub/Version.java +++ b/java-area120-tables/google-area120-tables/src/main/java/com/google/area120/tables/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-area120-tables:current} - static final String VERSION = "0.97.0"; + static final String VERSION = "0.98.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml b/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml index 729fefc416d8..b15e5cce4a49 100644 --- a/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml +++ b/java-area120-tables/grpc-google-area120-tables-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.97.0 + 0.98.0-SNAPSHOT grpc-google-area120-tables-v1alpha1 GRPC library for google-area120-tables com.google.area120 google-area120-tables-parent - 0.97.0 + 0.98.0-SNAPSHOT diff --git a/java-area120-tables/pom.xml b/java-area120-tables/pom.xml index b761e11b3a79..d1940d491bfc 100644 --- a/java-area120-tables/pom.xml +++ b/java-area120-tables/pom.xml @@ -4,7 +4,7 @@ com.google.area120 google-area120-tables-parent pom - 0.97.0 + 0.98.0-SNAPSHOT Google Area 120 Tables Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.area120 google-area120-tables - 0.97.0 + 0.98.0-SNAPSHOT com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.97.0 + 0.98.0-SNAPSHOT com.google.api.grpc grpc-google-area120-tables-v1alpha1 - 0.97.0 + 0.98.0-SNAPSHOT diff --git a/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml b/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml index 3064e1cf86d9..2545de814822 100644 --- a/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml +++ b/java-area120-tables/proto-google-area120-tables-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-area120-tables-v1alpha1 - 0.97.0 + 0.98.0-SNAPSHOT proto-google-area120-tables-v1alpha1 Proto library for google-area120-tables com.google.area120 google-area120-tables-parent - 0.97.0 + 0.98.0-SNAPSHOT diff --git a/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml b/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml index 203d8496f329..c4188c8baac2 100644 --- a/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml +++ b/java-artifact-registry/google-cloud-artifact-registry-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-artifact-registry-bom - 1.92.0 + 1.93.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-artifact-registry - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-artifact-registry/google-cloud-artifact-registry/pom.xml b/java-artifact-registry/google-cloud-artifact-registry/pom.xml index 52b9ab8d3871..ec94c6afe9f3 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/pom.xml +++ b/java-artifact-registry/google-cloud-artifact-registry/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-artifact-registry - 1.92.0 + 1.93.0-SNAPSHOT jar Google Artifact Registry provides a single place for your organization to manage container images and language packages (such as Maven and npm). It is fully integrated with Google Cloud's tooling and runtimes and comes with support for native artifact protocols. This makes it simple to integrate it with your CI/CD tooling to set up automated pipelines. com.google.cloud google-cloud-artifact-registry-parent - 1.92.0 + 1.93.0-SNAPSHOT google-cloud-artifact-registry diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/Version.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/Version.java index 349b2fce1825..eebf0a29ee2c 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/Version.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-artifact-registry:current} - static final String VERSION = "1.92.0"; + static final String VERSION = "1.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/Version.java b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/Version.java index 513dcb21e56e..0b689fc71619 100644 --- a/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/Version.java +++ b/java-artifact-registry/google-cloud-artifact-registry/src/main/java/com/google/devtools/artifactregistry/v1beta2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-artifact-registry:current} - static final String VERSION = "1.92.0"; + static final String VERSION = "1.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml index 4232f3f370c8..e1ed7e37c961 100644 --- a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml +++ b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.92.0 + 1.93.0-SNAPSHOT grpc-google-cloud-artifact-registry-v1 GRPC library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml index 77cef3427a6a..fdc4aff34cd7 100644 --- a/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml +++ b/java-artifact-registry/grpc-google-cloud-artifact-registry-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 1.92.0 + 1.93.0-SNAPSHOT grpc-google-cloud-artifact-registry-v1beta2 GRPC library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-artifact-registry/pom.xml b/java-artifact-registry/pom.xml index 23be79bca66f..2a2b4f02c03e 100644 --- a/java-artifact-registry/pom.xml +++ b/java-artifact-registry/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-artifact-registry-parent pom - 1.92.0 + 1.93.0-SNAPSHOT Google Artifact Registry Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-artifact-registry - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-artifact-registry-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-artifact-registry-v1beta2 - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml index 88c999b5ed31..0987cfb2490c 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1 - 1.92.0 + 1.93.0-SNAPSHOT proto-google-cloud-artifact-registry-v1 Proto library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml b/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml index b1ae7d733b76..ecd8799fbfc0 100644 --- a/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml +++ b/java-artifact-registry/proto-google-cloud-artifact-registry-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-artifact-registry-v1beta2 - 1.92.0 + 1.93.0-SNAPSHOT grpc-google-cloud-artifact-registry-v1beta2 Proto library for google-cloud-artifact-registry com.google.cloud google-cloud-artifact-registry-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-asset/google-cloud-asset-bom/pom.xml b/java-asset/google-cloud-asset-bom/pom.xml index 5e3c81668556..d9bd177ee93f 100644 --- a/java-asset/google-cloud-asset-bom/pom.xml +++ b/java-asset/google-cloud-asset-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-asset-bom - 3.97.0 + 3.98.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,57 +24,57 @@ com.google.cloud google-cloud-asset - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.97.0 + 3.98.0-SNAPSHOT diff --git a/java-asset/google-cloud-asset/pom.xml b/java-asset/google-cloud-asset/pom.xml index 8f062882f7a6..fcbb7c00e0c4 100644 --- a/java-asset/google-cloud-asset/pom.xml +++ b/java-asset/google-cloud-asset/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-asset - 3.97.0 + 3.98.0-SNAPSHOT jar Google Cloud Asset Java idiomatic client for Google Cloud Asset com.google.cloud google-cloud-asset-parent - 3.97.0 + 3.98.0-SNAPSHOT google-cloud-asset diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/Version.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/Version.java index 45f77bacddcf..5641cbaa7a53 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/Version.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-asset:current} - static final String VERSION = "3.97.0"; + static final String VERSION = "3.98.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/Version.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/Version.java index ca5708980a73..e02d07d06158 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/Version.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-asset:current} - static final String VERSION = "3.97.0"; + static final String VERSION = "3.98.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/Version.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/Version.java index b90a92a9580b..23b024fa756f 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/Version.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p2beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-asset:current} - static final String VERSION = "3.97.0"; + static final String VERSION = "3.98.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/Version.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/Version.java index 3405d2eeb23a..889b0bfca0ba 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/Version.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p5beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-asset:current} - static final String VERSION = "3.97.0"; + static final String VERSION = "3.98.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/Version.java b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/Version.java index 4292a7ae3aaf..50537e0bbc78 100644 --- a/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/Version.java +++ b/java-asset/google-cloud-asset/src/main/java/com/google/cloud/asset/v1p7beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-asset:current} - static final String VERSION = "3.97.0"; + static final String VERSION = "3.98.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-asset/grpc-google-cloud-asset-v1/pom.xml b/java-asset/grpc-google-cloud-asset-v1/pom.xml index bdb92e6eecfc..aa28a3d216c8 100644 --- a/java-asset/grpc-google-cloud-asset-v1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1 - 3.97.0 + 3.98.0-SNAPSHOT grpc-google-cloud-asset-v1 GRPC library for grpc-google-cloud-asset-v1 com.google.cloud google-cloud-asset-parent - 3.97.0 + 3.98.0-SNAPSHOT diff --git a/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml index bd00f80acfab..03d018b7b220 100644 --- a/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 3.97.0 + 3.98.0-SNAPSHOT grpc-google-cloud-asset-v1p1beta1 GRPC library for grpc-google-cloud-asset-v1p1beta1 com.google.cloud google-cloud-asset-parent - 3.97.0 + 3.98.0-SNAPSHOT diff --git a/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml index 193347d41ecc..be511bd5a141 100644 --- a/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 3.97.0 + 3.98.0-SNAPSHOT grpc-google-cloud-asset-v1p2beta1 GRPC library for grpc-google-cloud-asset-v1p2beta1 com.google.cloud google-cloud-asset-parent - 3.97.0 + 3.98.0-SNAPSHOT diff --git a/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml index e1843adf61cb..6d5a43279b52 100644 --- a/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p5beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 3.97.0 + 3.98.0-SNAPSHOT grpc-google-cloud-asset-v1p5beta1 GRPC library for grpc-google-cloud-asset-v1p5beta1 com.google.cloud google-cloud-asset-parent - 3.97.0 + 3.98.0-SNAPSHOT diff --git a/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml b/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml index 2b104f9cb9f2..0a1822d6f88a 100644 --- a/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml +++ b/java-asset/grpc-google-cloud-asset-v1p7beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.97.0 + 3.98.0-SNAPSHOT grpc-google-cloud-asset-v1p7beta1 GRPC library for google-cloud-asset com.google.cloud google-cloud-asset-parent - 3.97.0 + 3.98.0-SNAPSHOT diff --git a/java-asset/pom.xml b/java-asset/pom.xml index 06b497cd817f..5d335d19d8f3 100644 --- a/java-asset/pom.xml +++ b/java-asset/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-asset-parent pom - 3.97.0 + 3.98.0-SNAPSHOT Google Cloud Asset Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,78 +30,78 @@ com.google.api.grpc proto-google-cloud-asset-v1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p7beta1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p1beta1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p2beta1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-asset-v1p5beta1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.cloud google-cloud-asset - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-identity-accesscontextmanager-v1 - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-os-config-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.cloud google-cloud-resourcemanager - 1.95.0 + 1.96.0-SNAPSHOT test diff --git a/java-asset/proto-google-cloud-asset-v1/pom.xml b/java-asset/proto-google-cloud-asset-v1/pom.xml index a634cf4bcbfa..5e564ede9d33 100644 --- a/java-asset/proto-google-cloud-asset-v1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1 - 3.97.0 + 3.98.0-SNAPSHOT proto-google-cloud-asset-v1 PROTO library for proto-google-cloud-asset-v1 com.google.cloud google-cloud-asset-parent - 3.97.0 + 3.98.0-SNAPSHOT diff --git a/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml index 02b88e0405dc..a055f35ee59a 100644 --- a/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p1beta1 - 3.97.0 + 3.98.0-SNAPSHOT proto-google-cloud-asset-v1p1beta1 PROTO library for proto-google-cloud-asset-v1p1beta1 com.google.cloud google-cloud-asset-parent - 3.97.0 + 3.98.0-SNAPSHOT diff --git a/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml index d6e3fd8a5b50..ca697114c9e7 100644 --- a/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p2beta1 - 3.97.0 + 3.98.0-SNAPSHOT proto-google-cloud-asset-v1p2beta1 PROTO library for proto-google-cloud-asset-v1p2beta1 com.google.cloud google-cloud-asset-parent - 3.97.0 + 3.98.0-SNAPSHOT diff --git a/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml index 467d4b30cec5..8c928a790bf4 100644 --- a/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p5beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p5beta1 - 3.97.0 + 3.98.0-SNAPSHOT proto-google-cloud-asset-v1p5beta1 PROTO library for proto-google-cloud-asset-v1p4beta1 com.google.cloud google-cloud-asset-parent - 3.97.0 + 3.98.0-SNAPSHOT diff --git a/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml b/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml index d4ef86c66cab..4f60d4c1fba5 100644 --- a/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml +++ b/java-asset/proto-google-cloud-asset-v1p7beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-asset-v1p7beta1 - 3.97.0 + 3.98.0-SNAPSHOT proto-google-cloud-asset-v1p7beta1 Proto library for google-cloud-asset com.google.cloud google-cloud-asset-parent - 3.97.0 + 3.98.0-SNAPSHOT diff --git a/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml b/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml index 6ad353614e1e..e6fd3ee8b345 100644 --- a/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml +++ b/java-assured-workloads/google-cloud-assured-workloads-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-assured-workloads-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-assured-workloads - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-assured-workloads/google-cloud-assured-workloads/pom.xml b/java-assured-workloads/google-cloud-assured-workloads/pom.xml index 5aff8b256754..9ec1131f74c7 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/pom.xml +++ b/java-assured-workloads/google-cloud-assured-workloads/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-assured-workloads - 2.93.0 + 2.94.0-SNAPSHOT jar Google Assured Workloads for Government allows you to secure your government workloads and accelerate your path to running compliant workloads on Google Cloud with Assured Workloads for Government. com.google.cloud google-cloud-assured-workloads-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-assured-workloads diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/Version.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/Version.java index 70c246291b0b..3e98b8107ff5 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/Version.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-assured-workloads:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/Version.java b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/Version.java index 85cbc23423ad..c00092c0a764 100644 --- a/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/Version.java +++ b/java-assured-workloads/google-cloud-assured-workloads/src/main/java/com/google/cloud/assuredworkloads/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-assured-workloads:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml index 9942959ae02e..f82f0dfdd952 100644 --- a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml +++ b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-assured-workloads-v1 GRPC library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml index ee1cabf1fd46..cfa413478657 100644 --- a/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml +++ b/java-assured-workloads/grpc-google-cloud-assured-workloads-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-assured-workloads-v1beta1 GRPC library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-assured-workloads/pom.xml b/java-assured-workloads/pom.xml index f827e2b176c2..21e1afb84dc8 100644 --- a/java-assured-workloads/pom.xml +++ b/java-assured-workloads/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-assured-workloads-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Assured Workloads for Government Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-assured-workloads - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-assured-workloads-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-assured-workloads-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml b/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml index 965d9586431c..ff1e31dcbba0 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-assured-workloads-v1 Proto library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml index e4c4dabab1f7..bfdf10c1b591 100644 --- a/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml +++ b/java-assured-workloads/proto-google-cloud-assured-workloads-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-assured-workloads-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-assured-workloads-v1beta1 Proto library for google-cloud-assured-workloads com.google.cloud google-cloud-assured-workloads-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-auditmanager/google-cloud-auditmanager-bom/pom.xml b/java-auditmanager/google-cloud-auditmanager-bom/pom.xml index 71c1af30b667..b150dd5aaac3 100644 --- a/java-auditmanager/google-cloud-auditmanager-bom/pom.xml +++ b/java-auditmanager/google-cloud-auditmanager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-auditmanager-bom - 0.11.0 + 0.12.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-auditmanager - 0.11.0 + 0.12.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-auditmanager-v1 - 0.11.0 + 0.12.0-SNAPSHOT com.google.api.grpc proto-google-cloud-auditmanager-v1 - 0.11.0 + 0.12.0-SNAPSHOT diff --git a/java-auditmanager/google-cloud-auditmanager/pom.xml b/java-auditmanager/google-cloud-auditmanager/pom.xml index 346f52cc6403..d15c29064b5b 100644 --- a/java-auditmanager/google-cloud-auditmanager/pom.xml +++ b/java-auditmanager/google-cloud-auditmanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-auditmanager - 0.11.0 + 0.12.0-SNAPSHOT jar Google Audit Manager API Audit Manager API Lists information about the supported locations for this service. com.google.cloud google-cloud-auditmanager-parent - 0.11.0 + 0.12.0-SNAPSHOT google-cloud-auditmanager diff --git a/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/Version.java b/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/Version.java index d6c690d6bdd4..3088a0ad66f2 100644 --- a/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/Version.java +++ b/java-auditmanager/google-cloud-auditmanager/src/main/java/com/google/cloud/auditmanager/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-auditmanager:current} - static final String VERSION = "0.11.0"; + static final String VERSION = "0.12.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-auditmanager/grpc-google-cloud-auditmanager-v1/pom.xml b/java-auditmanager/grpc-google-cloud-auditmanager-v1/pom.xml index de2f0be690d0..e2a51c4e8017 100644 --- a/java-auditmanager/grpc-google-cloud-auditmanager-v1/pom.xml +++ b/java-auditmanager/grpc-google-cloud-auditmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-auditmanager-v1 - 0.11.0 + 0.12.0-SNAPSHOT grpc-google-cloud-auditmanager-v1 GRPC library for google-cloud-auditmanager com.google.cloud google-cloud-auditmanager-parent - 0.11.0 + 0.12.0-SNAPSHOT diff --git a/java-auditmanager/pom.xml b/java-auditmanager/pom.xml index ade2f6582c56..eccf98928ef5 100644 --- a/java-auditmanager/pom.xml +++ b/java-auditmanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-auditmanager-parent pom - 0.11.0 + 0.12.0-SNAPSHOT Google Audit Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-auditmanager - 0.11.0 + 0.12.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-auditmanager-v1 - 0.11.0 + 0.12.0-SNAPSHOT com.google.api.grpc proto-google-cloud-auditmanager-v1 - 0.11.0 + 0.12.0-SNAPSHOT diff --git a/java-auditmanager/proto-google-cloud-auditmanager-v1/pom.xml b/java-auditmanager/proto-google-cloud-auditmanager-v1/pom.xml index 041539558cae..a64acc4c4c6e 100644 --- a/java-auditmanager/proto-google-cloud-auditmanager-v1/pom.xml +++ b/java-auditmanager/proto-google-cloud-auditmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-auditmanager-v1 - 0.11.0 + 0.12.0-SNAPSHOT proto-google-cloud-auditmanager-v1 Proto library for google-cloud-auditmanager com.google.cloud google-cloud-auditmanager-parent - 0.11.0 + 0.12.0-SNAPSHOT diff --git a/java-automl/google-cloud-automl-bom/pom.xml b/java-automl/google-cloud-automl-bom/pom.xml index c6653aaea6bf..bfe853303125 100644 --- a/java-automl/google-cloud-automl-bom/pom.xml +++ b/java-automl/google-cloud-automl-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-automl-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,27 +24,27 @@ com.google.cloud google-cloud-automl - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-automl-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-automl-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-automl-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-automl/google-cloud-automl/pom.xml b/java-automl/google-cloud-automl/pom.xml index 5ed39e546bc5..9b9c1cfb9606 100644 --- a/java-automl/google-cloud-automl/pom.xml +++ b/java-automl/google-cloud-automl/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-automl - 2.93.0 + 2.94.0-SNAPSHOT jar Google Cloud AutoML Java idiomatic client for Google Cloud Auto ML com.google.cloud google-cloud-automl-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-automl diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/Version.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/Version.java index 0c9614108ab0..07f7e19951ca 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/Version.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-automl:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/Version.java b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/Version.java index 1c1796475049..3c6a19d6fdbe 100644 --- a/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/Version.java +++ b/java-automl/google-cloud-automl/src/main/java/com/google/cloud/automl/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-automl:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-automl/grpc-google-cloud-automl-v1/pom.xml b/java-automl/grpc-google-cloud-automl-v1/pom.xml index e6bf8f5df092..fcfd7c84eb88 100644 --- a/java-automl/grpc-google-cloud-automl-v1/pom.xml +++ b/java-automl/grpc-google-cloud-automl-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-automl-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-automl-v1 GRPC library for grpc-google-cloud-automl-v1 com.google.cloud google-cloud-automl-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml b/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml index 48ec8306c724..43a8375140ba 100644 --- a/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml +++ b/java-automl/grpc-google-cloud-automl-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-automl-v1beta1 GRPC library for grpc-google-cloud-automl-v1beta1 com.google.cloud google-cloud-automl-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-automl/pom.xml b/java-automl/pom.xml index 8f6905424ddb..73f9c089502d 100644 --- a/java-automl/pom.xml +++ b/java-automl/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-automl-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Cloud AutoML Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.api.grpc proto-google-cloud-automl-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-automl-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-automl-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-automl-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.cloud google-cloud-automl - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-automl/proto-google-cloud-automl-v1/pom.xml b/java-automl/proto-google-cloud-automl-v1/pom.xml index 37836aebcf18..bd60c0c47a74 100644 --- a/java-automl/proto-google-cloud-automl-v1/pom.xml +++ b/java-automl/proto-google-cloud-automl-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-automl-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-automl-v1 PROTO library for proto-google-cloud-automl-v1 com.google.cloud google-cloud-automl-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-automl/proto-google-cloud-automl-v1beta1/pom.xml b/java-automl/proto-google-cloud-automl-v1beta1/pom.xml index 614cd66b84d6..98c1da175ee2 100644 --- a/java-automl/proto-google-cloud-automl-v1beta1/pom.xml +++ b/java-automl/proto-google-cloud-automl-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-automl-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-automl-v1beta1 PROTO library for proto-google-cloud-automl-v1beta1 com.google.cloud google-cloud-automl-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-backstory/google-cloud-backstory-bom/pom.xml b/java-backstory/google-cloud-backstory-bom/pom.xml index da8c92374af0..1041647e7b1d 100644 --- a/java-backstory/google-cloud-backstory-bom/pom.xml +++ b/java-backstory/google-cloud-backstory-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-backstory-bom - 0.1.0 + 0.2.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -26,12 +26,12 @@ com.google.cloud google-cloud-backstory - 0.1.0 + 0.2.0-SNAPSHOT com.google.api.grpc proto-google-cloud-backstory - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-backstory/google-cloud-backstory/pom.xml b/java-backstory/google-cloud-backstory/pom.xml index 98efab46b08c..074c8937e739 100644 --- a/java-backstory/google-cloud-backstory/pom.xml +++ b/java-backstory/google-cloud-backstory/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-backstory - 0.1.0 + 0.2.0-SNAPSHOT jar Google Malachite Common Protos Malachite Common Protos Common Universal Data Model (UDM) and Entity protos used by Chronicle. com.google.cloud google-cloud-backstory-parent - 0.1.0 + 0.2.0-SNAPSHOT google-cloud-backstory diff --git a/java-backstory/pom.xml b/java-backstory/pom.xml index 1006be614fc6..9b9a3dfdbdfd 100644 --- a/java-backstory/pom.xml +++ b/java-backstory/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-backstory-parent pom - 0.1.0 + 0.2.0-SNAPSHOT Google Malachite Common Protos Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -29,12 +29,12 @@ com.google.cloud google-cloud-backstory - 0.1.0 + 0.2.0-SNAPSHOT com.google.api.grpc proto-google-cloud-backstory - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-backstory/proto-google-cloud-backstory/pom.xml b/java-backstory/proto-google-cloud-backstory/pom.xml index 14421decac00..26b3ecf2a4f8 100644 --- a/java-backstory/proto-google-cloud-backstory/pom.xml +++ b/java-backstory/proto-google-cloud-backstory/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-backstory - 0.1.0 + 0.2.0-SNAPSHOT proto-google-cloud-backstory Proto library for google-cloud-backstory com.google.cloud google-cloud-backstory-parent - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-backupdr/google-cloud-backupdr-bom/pom.xml b/java-backupdr/google-cloud-backupdr-bom/pom.xml index 258444406176..07b516d920de 100644 --- a/java-backupdr/google-cloud-backupdr-bom/pom.xml +++ b/java-backupdr/google-cloud-backupdr-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-backupdr-bom - 0.52.0 + 0.53.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-backupdr - 0.52.0 + 0.53.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.52.0 + 0.53.0-SNAPSHOT com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.52.0 + 0.53.0-SNAPSHOT diff --git a/java-backupdr/google-cloud-backupdr/pom.xml b/java-backupdr/google-cloud-backupdr/pom.xml index ec8547f1bc85..287075e16477 100644 --- a/java-backupdr/google-cloud-backupdr/pom.xml +++ b/java-backupdr/google-cloud-backupdr/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-backupdr - 0.52.0 + 0.53.0-SNAPSHOT jar Google Backup and DR Service API Backup and DR Service API Backup and DR Service is a powerful, centralized, cloud-first backup and disaster recovery solution for cloud-based and hybrid workloads. com.google.cloud google-cloud-backupdr-parent - 0.52.0 + 0.53.0-SNAPSHOT google-cloud-backupdr diff --git a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/Version.java b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/Version.java index b80679ba4242..db3879f06eb2 100644 --- a/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/Version.java +++ b/java-backupdr/google-cloud-backupdr/src/main/java/com/google/cloud/backupdr/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-backupdr:current} - static final String VERSION = "0.52.0"; + static final String VERSION = "0.53.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml b/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml index 17bf1ff620dd..a3211f171584 100644 --- a/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml +++ b/java-backupdr/grpc-google-cloud-backupdr-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.52.0 + 0.53.0-SNAPSHOT grpc-google-cloud-backupdr-v1 GRPC library for google-cloud-backupdr com.google.cloud google-cloud-backupdr-parent - 0.52.0 + 0.53.0-SNAPSHOT diff --git a/java-backupdr/pom.xml b/java-backupdr/pom.xml index fccdbb6781ca..a9ae3841bf7d 100644 --- a/java-backupdr/pom.xml +++ b/java-backupdr/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-backupdr-parent pom - 0.52.0 + 0.53.0-SNAPSHOT Google Backup and DR Service API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-backupdr - 0.52.0 + 0.53.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-backupdr-v1 - 0.52.0 + 0.53.0-SNAPSHOT com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.52.0 + 0.53.0-SNAPSHOT diff --git a/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml b/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml index 56e1a0abe020..4e2f1f0e07ac 100644 --- a/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml +++ b/java-backupdr/proto-google-cloud-backupdr-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-backupdr-v1 - 0.52.0 + 0.53.0-SNAPSHOT proto-google-cloud-backupdr-v1 Proto library for google-cloud-backupdr com.google.cloud google-cloud-backupdr-parent - 0.52.0 + 0.53.0-SNAPSHOT diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml b/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml index 4b3ee505f6af..c795c1818579 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bare-metal-solution-bom - 0.93.0 + 0.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-bare-metal-solution - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml b/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml index e52e276cacdf..bba90a321a36 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bare-metal-solution - 0.93.0 + 0.94.0-SNAPSHOT jar Google Bare Metal SOlution Bare Metal SOlution Bring your Oracle workloads to Google Cloud with Bare Metal Solution and jumpstart your cloud journey with minimal risk. com.google.cloud google-cloud-bare-metal-solution-parent - 0.93.0 + 0.94.0-SNAPSHOT google-cloud-bare-metal-solution diff --git a/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/Version.java b/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/Version.java index dbafac07a2e0..4d46d27e9a28 100644 --- a/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/Version.java +++ b/java-bare-metal-solution/google-cloud-bare-metal-solution/src/main/java/com/google/cloud/baremetalsolution/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bare-metal-solution:current} - static final String VERSION = "0.93.0"; + static final String VERSION = "0.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml b/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml index 4d1821b2fc25..8adaf00ea61c 100644 --- a/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml +++ b/java-bare-metal-solution/grpc-google-cloud-bare-metal-solution-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.93.0 + 0.94.0-SNAPSHOT grpc-google-cloud-bare-metal-solution-v2 GRPC library for google-cloud-bare-metal-solution com.google.cloud google-cloud-bare-metal-solution-parent - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-bare-metal-solution/pom.xml b/java-bare-metal-solution/pom.xml index 7ba3e4275e55..dc170553405f 100644 --- a/java-bare-metal-solution/pom.xml +++ b/java-bare-metal-solution/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bare-metal-solution-parent pom - 0.93.0 + 0.94.0-SNAPSHOT Google Bare Metal SOlution Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-bare-metal-solution - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bare-metal-solution-v2 - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml index cde172856baf..f7e53164e45f 100644 --- a/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml +++ b/java-bare-metal-solution/proto-google-cloud-bare-metal-solution-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bare-metal-solution-v2 - 0.93.0 + 0.94.0-SNAPSHOT proto-google-cloud-bare-metal-solution-v2 Proto library for google-cloud-bare-metal-solution com.google.cloud google-cloud-bare-metal-solution-parent - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-batch/google-cloud-batch-bom/pom.xml b/java-batch/google-cloud-batch-bom/pom.xml index 4460047c8f2f..ad43b6b62eb5 100644 --- a/java-batch/google-cloud-batch-bom/pom.xml +++ b/java-batch/google-cloud-batch-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-batch-bom - 0.93.0 + 0.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-batch - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-batch-v1 - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-batch-v1 - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-batch/google-cloud-batch/pom.xml b/java-batch/google-cloud-batch/pom.xml index a0a4203b6757..f7715e8cee81 100644 --- a/java-batch/google-cloud-batch/pom.xml +++ b/java-batch/google-cloud-batch/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-batch - 0.93.0 + 0.94.0-SNAPSHOT jar Google Google Cloud Batch Google Cloud Batch n/a com.google.cloud google-cloud-batch-parent - 0.93.0 + 0.94.0-SNAPSHOT google-cloud-batch diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/Version.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/Version.java index ed9e4a74df21..782dd506de41 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/Version.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-batch:current} - static final String VERSION = "0.93.0"; + static final String VERSION = "0.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/Version.java b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/Version.java index 7be6498798d7..c91eb8449360 100644 --- a/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/Version.java +++ b/java-batch/google-cloud-batch/src/main/java/com/google/cloud/batch/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-batch:current} - static final String VERSION = "0.93.0"; + static final String VERSION = "0.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-batch/grpc-google-cloud-batch-v1/pom.xml b/java-batch/grpc-google-cloud-batch-v1/pom.xml index 6b87754e03aa..d89e58aa0e40 100644 --- a/java-batch/grpc-google-cloud-batch-v1/pom.xml +++ b/java-batch/grpc-google-cloud-batch-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-batch-v1 - 0.93.0 + 0.94.0-SNAPSHOT grpc-google-cloud-batch-v1 GRPC library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml b/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml index 27f7bfe807a3..73bc86d22131 100644 --- a/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml +++ b/java-batch/grpc-google-cloud-batch-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.93.0 + 0.94.0-SNAPSHOT grpc-google-cloud-batch-v1alpha GRPC library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-batch/pom.xml b/java-batch/pom.xml index 767bf083c52b..9c9fe216a653 100644 --- a/java-batch/pom.xml +++ b/java-batch/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-batch-parent pom - 0.93.0 + 0.94.0-SNAPSHOT Google Google Cloud Batch Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-batch - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-batch-v1alpha - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-batch-v1 - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-batch-v1 - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-batch/proto-google-cloud-batch-v1/pom.xml b/java-batch/proto-google-cloud-batch-v1/pom.xml index 480424d8dc9f..2ab611711f35 100644 --- a/java-batch/proto-google-cloud-batch-v1/pom.xml +++ b/java-batch/proto-google-cloud-batch-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-batch-v1 - 0.93.0 + 0.94.0-SNAPSHOT proto-google-cloud-batch-v1 Proto library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-batch/proto-google-cloud-batch-v1alpha/pom.xml b/java-batch/proto-google-cloud-batch-v1alpha/pom.xml index 46807e9c6112..824c78f75389 100644 --- a/java-batch/proto-google-cloud-batch-v1alpha/pom.xml +++ b/java-batch/proto-google-cloud-batch-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-batch-v1alpha - 0.93.0 + 0.94.0-SNAPSHOT proto-google-cloud-batch-v1alpha Proto library for google-cloud-batch com.google.cloud google-cloud-batch-parent - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml index 439172f4c335..b7c316c7ccd9 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnections-bom - 0.91.0 + 0.92.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-beyondcorp-appconnections - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml index aabf0e9fd484..0436b8006cdc 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnections - 0.91.0 + 0.92.0-SNAPSHOT jar Google BeyondCorp AppConnections BeyondCorp AppConnections is Google's implementation of the zero trust model. It builds upon a decade of experience at Google, combined with ideas and best practices from the community. By shifting access controls from the network perimeter to individual users, BeyondCorp enables secure work from virtually any location without the need for a traditional VPN. com.google.cloud google-cloud-beyondcorp-appconnections-parent - 0.91.0 + 0.92.0-SNAPSHOT google-cloud-beyondcorp-appconnections diff --git a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/Version.java b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/Version.java index 3744c19cc4d0..5f4b7cc06af2 100644 --- a/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/Version.java +++ b/java-beyondcorp-appconnections/google-cloud-beyondcorp-appconnections/src/main/java/com/google/cloud/beyondcorp/appconnections/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-beyondcorp-appconnections:current} - static final String VERSION = "0.91.0"; + static final String VERSION = "0.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml b/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml index b9b46affa162..94011bb25fb2 100644 --- a/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml +++ b/java-beyondcorp-appconnections/grpc-google-cloud-beyondcorp-appconnections-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.91.0 + 0.92.0-SNAPSHOT grpc-google-cloud-beyondcorp-appconnections-v1 GRPC library for google-cloud-beyondcorp-appconnections com.google.cloud google-cloud-beyondcorp-appconnections-parent - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-beyondcorp-appconnections/pom.xml b/java-beyondcorp-appconnections/pom.xml index 8f143e06bc13..dacdce2453c8 100644 --- a/java-beyondcorp-appconnections/pom.xml +++ b/java-beyondcorp-appconnections/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-appconnections-parent pom - 0.91.0 + 0.92.0-SNAPSHOT Google BeyondCorp AppConnections Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-beyondcorp-appconnections - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-appconnections-v1 - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml b/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml index d7698866ce4d..85d5ee25e600 100644 --- a/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml +++ b/java-beyondcorp-appconnections/proto-google-cloud-beyondcorp-appconnections-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnections-v1 - 0.91.0 + 0.92.0-SNAPSHOT proto-google-cloud-beyondcorp-appconnections-v1 Proto library for google-cloud-beyondcorp-appconnections com.google.cloud google-cloud-beyondcorp-appconnections-parent - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml index 14c18fcbf120..c1a90a6e91ab 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnectors-bom - 0.91.0 + 0.92.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-beyondcorp-appconnectors - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml index 45ab134d0f85..1edb89b77b89 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appconnectors - 0.91.0 + 0.92.0-SNAPSHOT jar Google BeyondCorp AppConnectors BeyondCorp AppConnectors provides methods to manage (create/read/update/delete) BeyondCorp AppConnectors. com.google.cloud google-cloud-beyondcorp-appconnectors-parent - 0.91.0 + 0.92.0-SNAPSHOT google-cloud-beyondcorp-appconnectors diff --git a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/Version.java b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/Version.java index 82b39294d110..96923ff18240 100644 --- a/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/Version.java +++ b/java-beyondcorp-appconnectors/google-cloud-beyondcorp-appconnectors/src/main/java/com/google/cloud/beyondcorp/appconnectors/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-beyondcorp-appconnectors:current} - static final String VERSION = "0.91.0"; + static final String VERSION = "0.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml b/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml index ec70b07e4e4b..c6e8968f717d 100644 --- a/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml +++ b/java-beyondcorp-appconnectors/grpc-google-cloud-beyondcorp-appconnectors-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.91.0 + 0.92.0-SNAPSHOT grpc-google-cloud-beyondcorp-appconnectors-v1 GRPC library for google-cloud-beyondcorp-appconnectors com.google.cloud google-cloud-beyondcorp-appconnectors-parent - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-beyondcorp-appconnectors/pom.xml b/java-beyondcorp-appconnectors/pom.xml index 3b29dfaf5c2b..182ee7ca0416 100644 --- a/java-beyondcorp-appconnectors/pom.xml +++ b/java-beyondcorp-appconnectors/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-appconnectors-parent pom - 0.91.0 + 0.92.0-SNAPSHOT Google BeyondCorp AppConnectors Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-beyondcorp-appconnectors - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-appconnectors-v1 - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml b/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml index 287fbf29c157..03162333d8bd 100644 --- a/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml +++ b/java-beyondcorp-appconnectors/proto-google-cloud-beyondcorp-appconnectors-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-appconnectors-v1 - 0.91.0 + 0.92.0-SNAPSHOT proto-google-cloud-beyondcorp-appconnectors-v1 Proto library for google-cloud-beyondcorp-appconnectors com.google.cloud google-cloud-beyondcorp-appconnectors-parent - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml index 8b3568889855..5b8a36a67ad5 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appgateways-bom - 0.91.0 + 0.92.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-beyondcorp-appgateways - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml index ee59a1248b58..00344fc621c0 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-appgateways - 0.91.0 + 0.92.0-SNAPSHOT jar Google BeyondCorp AppGateways BeyondCorp AppGateways A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. com.google.cloud google-cloud-beyondcorp-appgateways-parent - 0.91.0 + 0.92.0-SNAPSHOT google-cloud-beyondcorp-appgateways diff --git a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/Version.java b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/Version.java index f50af9b3e409..0153104c6582 100644 --- a/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/Version.java +++ b/java-beyondcorp-appgateways/google-cloud-beyondcorp-appgateways/src/main/java/com/google/cloud/beyondcorp/appgateways/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-beyondcorp-appgateways:current} - static final String VERSION = "0.91.0"; + static final String VERSION = "0.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml b/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml index 7bfb782b4680..1eb1a3e60864 100644 --- a/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml +++ b/java-beyondcorp-appgateways/grpc-google-cloud-beyondcorp-appgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.91.0 + 0.92.0-SNAPSHOT grpc-google-cloud-beyondcorp-appgateways-v1 GRPC library for google-cloud-beyondcorp-appgateways com.google.cloud google-cloud-beyondcorp-appgateways-parent - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-beyondcorp-appgateways/pom.xml b/java-beyondcorp-appgateways/pom.xml index b64a71599ea9..b754ce67e1da 100644 --- a/java-beyondcorp-appgateways/pom.xml +++ b/java-beyondcorp-appgateways/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-appgateways-parent pom - 0.91.0 + 0.92.0-SNAPSHOT Google BeyondCorp AppGateways Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-beyondcorp-appgateways - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-appgateways-v1 - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml b/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml index 18348c6407b1..f73f2b0852d8 100644 --- a/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml +++ b/java-beyondcorp-appgateways/proto-google-cloud-beyondcorp-appgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-appgateways-v1 - 0.91.0 + 0.92.0-SNAPSHOT proto-google-cloud-beyondcorp-appgateways-v1 Proto library for google-cloud-beyondcorp-appgateways com.google.cloud google-cloud-beyondcorp-appgateways-parent - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml index cdc05e464ef7..8b41080d0e41 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientconnectorservices-bom - 0.91.0 + 0.92.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml index 19cb3956b4df..00299d5c9a7e 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.91.0 + 0.92.0-SNAPSHOT jar Google BeyondCorp ClientConnectorServices BeyondCorp ClientConnectorServices A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent - 0.91.0 + 0.92.0-SNAPSHOT google-cloud-beyondcorp-clientconnectorservices diff --git a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/Version.java b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/Version.java index 1c916642a2a1..2f941509626a 100644 --- a/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/Version.java +++ b/java-beyondcorp-clientconnectorservices/google-cloud-beyondcorp-clientconnectorservices/src/main/java/com/google/cloud/beyondcorp/clientconnectorservices/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-beyondcorp-clientconnectorservices:current} - static final String VERSION = "0.91.0"; + static final String VERSION = "0.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml b/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml index b644f68fd98c..db0ee1a99e75 100644 --- a/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml +++ b/java-beyondcorp-clientconnectorservices/grpc-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.91.0 + 0.92.0-SNAPSHOT grpc-google-cloud-beyondcorp-clientconnectorservices-v1 GRPC library for google-cloud-beyondcorp-clientconnectorservices com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-beyondcorp-clientconnectorservices/pom.xml b/java-beyondcorp-clientconnectorservices/pom.xml index 6731f6ccf8b5..f0c0697ebb9f 100644 --- a/java-beyondcorp-clientconnectorservices/pom.xml +++ b/java-beyondcorp-clientconnectorservices/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent pom - 0.91.0 + 0.92.0-SNAPSHOT Google BeyondCorp ClientConnectorServices Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml b/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml index acd0a9f56e89..ff79612c1f44 100644 --- a/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml +++ b/java-beyondcorp-clientconnectorservices/proto-google-cloud-beyondcorp-clientconnectorservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientconnectorservices-v1 - 0.91.0 + 0.92.0-SNAPSHOT proto-google-cloud-beyondcorp-clientconnectorservices-v1 Proto library for google-cloud-beyondcorp-clientconnectorservices com.google.cloud google-cloud-beyondcorp-clientconnectorservices-parent - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml index b22e7094b5f6..a63642d2e523 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientgateways-bom - 0.91.0 + 0.92.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-beyondcorp-clientgateways - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml index 7410feac0d97..60ef65a21765 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-beyondcorp-clientgateways - 0.91.0 + 0.92.0-SNAPSHOT jar Google BeyondCorp ClientGateways BeyondCorp ClientGateways A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. com.google.cloud google-cloud-beyondcorp-clientgateways-parent - 0.91.0 + 0.92.0-SNAPSHOT google-cloud-beyondcorp-clientgateways diff --git a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/Version.java b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/Version.java index a2ffc135a586..a652e4bebadc 100644 --- a/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/Version.java +++ b/java-beyondcorp-clientgateways/google-cloud-beyondcorp-clientgateways/src/main/java/com/google/cloud/beyondcorp/clientgateways/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-beyondcorp-clientgateways:current} - static final String VERSION = "0.91.0"; + static final String VERSION = "0.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml b/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml index 3b757a5f4797..d79025df073d 100644 --- a/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml +++ b/java-beyondcorp-clientgateways/grpc-google-cloud-beyondcorp-clientgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.91.0 + 0.92.0-SNAPSHOT grpc-google-cloud-beyondcorp-clientgateways-v1 GRPC library for google-cloud-beyondcorp-clientgateways com.google.cloud google-cloud-beyondcorp-clientgateways-parent - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-beyondcorp-clientgateways/pom.xml b/java-beyondcorp-clientgateways/pom.xml index 92e98a6953f1..9767533a772a 100644 --- a/java-beyondcorp-clientgateways/pom.xml +++ b/java-beyondcorp-clientgateways/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-beyondcorp-clientgateways-parent pom - 0.91.0 + 0.92.0-SNAPSHOT Google BeyondCorp ClientGateways Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-beyondcorp-clientgateways - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-beyondcorp-clientgateways-v1 - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml b/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml index 64293043522f..3bcfc7aff3a6 100644 --- a/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml +++ b/java-beyondcorp-clientgateways/proto-google-cloud-beyondcorp-clientgateways-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-beyondcorp-clientgateways-v1 - 0.91.0 + 0.92.0-SNAPSHOT proto-google-cloud-beyondcorp-clientgateways-v1 Proto library for google-cloud-beyondcorp-clientgateways com.google.cloud google-cloud-beyondcorp-clientgateways-parent - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-biglake/google-cloud-biglake-bom/pom.xml b/java-biglake/google-cloud-biglake-bom/pom.xml index cd330c6f554f..5953909a7005 100644 --- a/java-biglake/google-cloud-biglake-bom/pom.xml +++ b/java-biglake/google-cloud-biglake-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-biglake-bom - 0.81.1 + 0.82.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,37 +28,37 @@ com.google.cloud google-cloud-biglake - 0.81.1 + 0.82.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.81.1 + 0.82.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.81.1 + 0.82.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-biglake-v1beta - 0.81.1 + 0.82.0-SNAPSHOT com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.81.1 + 0.82.0-SNAPSHOT com.google.api.grpc proto-google-cloud-biglake-v1 - 0.81.1 + 0.82.0-SNAPSHOT com.google.api.grpc proto-google-cloud-biglake-v1beta - 0.81.1 + 0.82.0-SNAPSHOT diff --git a/java-biglake/google-cloud-biglake/pom.xml b/java-biglake/google-cloud-biglake/pom.xml index ec15f76327b9..1fa21fe5e991 100644 --- a/java-biglake/google-cloud-biglake/pom.xml +++ b/java-biglake/google-cloud-biglake/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-biglake - 0.81.1 + 0.82.0-SNAPSHOT jar Google BigLake BigLake The BigLake API provides access to BigLake Metastore, a serverless, fully managed, and highly available metastore for open-source data that can be used for querying Apache Iceberg tables in BigQuery. com.google.cloud google-cloud-biglake-parent - 0.81.1 + 0.82.0-SNAPSHOT google-cloud-biglake diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/stub/Version.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/stub/Version.java index eb91a08c8b9a..e68f4bcc71c1 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/stub/Version.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/hive/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-biglake:current} - static final String VERSION = "0.81.1"; + static final String VERSION = "0.82.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/Version.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/Version.java index a95b808cdfde..538f860aac0d 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/Version.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/biglake/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-biglake:current} - static final String VERSION = "0.81.1"; + static final String VERSION = "0.82.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/stub/Version.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/stub/Version.java index 2c41951b7fa9..33709ec62fbd 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/stub/Version.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-biglake:current} - static final String VERSION = "0.81.1"; + static final String VERSION = "0.82.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/stub/Version.java b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/stub/Version.java index 3354f80e8192..b607f000b2b2 100644 --- a/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/stub/Version.java +++ b/java-biglake/google-cloud-biglake/src/main/java/com/google/cloud/bigquery/biglake/v1alpha1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-biglake:current} - static final String VERSION = "0.81.1"; + static final String VERSION = "0.82.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-biglake/grpc-google-cloud-biglake-v1/pom.xml b/java-biglake/grpc-google-cloud-biglake-v1/pom.xml index ffbdb7920054..12c969940c8c 100644 --- a/java-biglake/grpc-google-cloud-biglake-v1/pom.xml +++ b/java-biglake/grpc-google-cloud-biglake-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.81.1 + 0.82.0-SNAPSHOT grpc-google-cloud-biglake-v1 GRPC library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.81.1 + 0.82.0-SNAPSHOT diff --git a/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml b/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml index 5dff88d53542..20581d88b1f8 100644 --- a/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml +++ b/java-biglake/grpc-google-cloud-biglake-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.81.1 + 0.82.0-SNAPSHOT grpc-google-cloud-biglake-v1alpha1 GRPC library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.81.1 + 0.82.0-SNAPSHOT diff --git a/java-biglake/grpc-google-cloud-biglake-v1beta/pom.xml b/java-biglake/grpc-google-cloud-biglake-v1beta/pom.xml index 8c76f5f93407..71e1b90184c7 100644 --- a/java-biglake/grpc-google-cloud-biglake-v1beta/pom.xml +++ b/java-biglake/grpc-google-cloud-biglake-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-biglake-v1beta - 0.81.1 + 0.82.0-SNAPSHOT grpc-google-cloud-biglake-v1beta GRPC library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.81.1 + 0.82.0-SNAPSHOT diff --git a/java-biglake/pom.xml b/java-biglake/pom.xml index bf54e60ce63d..78b24b3c07e9 100644 --- a/java-biglake/pom.xml +++ b/java-biglake/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-biglake-parent pom - 0.81.1 + 0.82.0-SNAPSHOT Google BigLake Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,37 +30,37 @@ com.google.cloud google-cloud-biglake - 0.81.1 + 0.82.0-SNAPSHOT com.google.api.grpc proto-google-cloud-biglake-v1beta - 0.81.1 + 0.82.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-biglake-v1beta - 0.81.1 + 0.82.0-SNAPSHOT com.google.api.grpc proto-google-cloud-biglake-v1 - 0.81.1 + 0.82.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-biglake-v1 - 0.81.1 + 0.82.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-biglake-v1alpha1 - 0.81.1 + 0.82.0-SNAPSHOT com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.81.1 + 0.82.0-SNAPSHOT diff --git a/java-biglake/proto-google-cloud-biglake-v1/pom.xml b/java-biglake/proto-google-cloud-biglake-v1/pom.xml index 82fb698df8f3..a1963f9669c0 100644 --- a/java-biglake/proto-google-cloud-biglake-v1/pom.xml +++ b/java-biglake/proto-google-cloud-biglake-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-biglake-v1 - 0.81.1 + 0.82.0-SNAPSHOT proto-google-cloud-biglake-v1 Proto library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.81.1 + 0.82.0-SNAPSHOT diff --git a/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml b/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml index fc114dbd37d1..339a1d6f607d 100644 --- a/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml +++ b/java-biglake/proto-google-cloud-biglake-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-biglake-v1alpha1 - 0.81.1 + 0.82.0-SNAPSHOT proto-google-cloud-biglake-v1alpha1 Proto library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.81.1 + 0.82.0-SNAPSHOT diff --git a/java-biglake/proto-google-cloud-biglake-v1beta/pom.xml b/java-biglake/proto-google-cloud-biglake-v1beta/pom.xml index 6712806e8933..a4a45f85b935 100644 --- a/java-biglake/proto-google-cloud-biglake-v1beta/pom.xml +++ b/java-biglake/proto-google-cloud-biglake-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-biglake-v1beta - 0.81.1 + 0.82.0-SNAPSHOT proto-google-cloud-biglake-v1beta Proto library for google-cloud-biglake com.google.cloud google-cloud-biglake-parent - 0.81.1 + 0.82.0-SNAPSHOT diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml index a7a0e08e9bea..29b8efd72d3d 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquery-data-exchange-bom - 2.88.0 + 2.89.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-bigquery-data-exchange - 2.88.0 + 2.89.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.88.0 + 2.89.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.88.0 + 2.89.0-SNAPSHOT diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml index 082f6f93ff86..d29dcb3e4a84 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquery-data-exchange - 2.88.0 + 2.89.0-SNAPSHOT jar Google Analytics Hub Analytics Hub is a data exchange that allows you to efficiently and securely exchange data assets across organizations to address challenges of data reliability and cost. com.google.cloud google-cloud-bigquery-data-exchange-parent - 2.88.0 + 2.89.0-SNAPSHOT google-cloud-bigquery-data-exchange diff --git a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/Version.java b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/Version.java index 649ac16fed21..bb5cf116db5b 100644 --- a/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/Version.java +++ b/java-bigquery-data-exchange/google-cloud-bigquery-data-exchange/src/main/java/com/google/cloud/bigquery/dataexchange/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquery-data-exchange:current} - static final String VERSION = "2.88.0"; + static final String VERSION = "2.89.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml b/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml index 92b15a394f76..16024af92af8 100644 --- a/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml +++ b/java-bigquery-data-exchange/grpc-google-cloud-bigquery-data-exchange-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.88.0 + 2.89.0-SNAPSHOT grpc-google-cloud-bigquery-data-exchange-v1beta1 GRPC library for google-cloud-bigquery-data-exchange com.google.cloud google-cloud-bigquery-data-exchange-parent - 2.88.0 + 2.89.0-SNAPSHOT diff --git a/java-bigquery-data-exchange/pom.xml b/java-bigquery-data-exchange/pom.xml index 2cc25189656f..d627190eaa1c 100644 --- a/java-bigquery-data-exchange/pom.xml +++ b/java-bigquery-data-exchange/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquery-data-exchange-parent pom - 2.88.0 + 2.89.0-SNAPSHOT Google Analytics Hub Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-bigquery-data-exchange - 2.88.0 + 2.89.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquery-data-exchange-v1beta1 - 2.88.0 + 2.89.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.88.0 + 2.89.0-SNAPSHOT diff --git a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml index 5fcea6992856..42a6fd8dca11 100644 --- a/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml +++ b/java-bigquery-data-exchange/proto-google-cloud-bigquery-data-exchange-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquery-data-exchange-v1beta1 - 2.88.0 + 2.89.0-SNAPSHOT proto-google-cloud-bigquery-data-exchange-v1beta1 Proto library for google-cloud-bigquery-data-exchange com.google.cloud google-cloud-bigquery-data-exchange-parent - 2.88.0 + 2.89.0-SNAPSHOT diff --git a/java-bigquery-jdbc/pom.xml b/java-bigquery-jdbc/pom.xml index 0a5705df3520..ed141e41ef35 100644 --- a/java-bigquery-jdbc/pom.xml +++ b/java-bigquery-jdbc/pom.xml @@ -20,7 +20,7 @@ 4.0.0 com.google.cloud google-cloud-bigquery-jdbc - 1.0.0 + 1.1.0-SNAPSHOT jar BigQuery JDBC https://github.com/googleapis/google-cloud-java @@ -202,7 +202,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -210,12 +210,12 @@ com.google.cloud google-cloud-bigquery - 2.67.0 + 2.68.0-SNAPSHOT com.google.cloud google-cloud-bigquerystorage - 3.29.0 + 3.30.0-SNAPSHOT com.google.http-client @@ -248,7 +248,7 @@ com.google.api.grpc proto-google-cloud-bigquerystorage-v1 - 3.29.0 + 3.30.0-SNAPSHOT diff --git a/java-bigquery/benchmark/pom.xml b/java-bigquery/benchmark/pom.xml index 3abc86ac711e..64d5a83fbb90 100644 --- a/java-bigquery/benchmark/pom.xml +++ b/java-bigquery/benchmark/pom.xml @@ -4,11 +4,11 @@ 4.0.0 com.google.cloud benchmark - 2.67.0 + 2.68.0-SNAPSHOT google-cloud-bigquery-parent com.google.cloud - 2.67.0 + 2.68.0-SNAPSHOT diff --git a/java-bigquery/google-cloud-bigquery-bom/pom.xml b/java-bigquery/google-cloud-bigquery-bom/pom.xml index 4d5eabb693b8..ae4d2d42382a 100644 --- a/java-bigquery/google-cloud-bigquery-bom/pom.xml +++ b/java-bigquery/google-cloud-bigquery-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-bigquery-bom - 2.67.0 + 2.68.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -53,7 +53,7 @@ com.google.cloud google-cloud-bigquery - 2.67.0 + 2.68.0-SNAPSHOT diff --git a/java-bigquery/google-cloud-bigquery/pom.xml b/java-bigquery/google-cloud-bigquery/pom.xml index 436ce0f9cb63..1bb7f1bdc1e0 100644 --- a/java-bigquery/google-cloud-bigquery/pom.xml +++ b/java-bigquery/google-cloud-bigquery/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-bigquery - 2.67.0 + 2.68.0-SNAPSHOT jar BigQuery https://github.com/googleapis/google-cloud-java @@ -11,7 +11,7 @@ com.google.cloud google-cloud-bigquery-parent - 2.67.0 + 2.68.0-SNAPSHOT google-cloud-bigquery @@ -100,12 +100,12 @@ com.google.cloud google-cloud-bigquerystorage - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerystorage-v1 - 3.29.0 + 3.30.0-SNAPSHOT org.apache.arrow @@ -148,19 +148,19 @@ com.google.cloud google-cloud-datacatalog test - 1.99.0 + 1.100.0-SNAPSHOT com.google.cloud google-cloud-bigqueryconnection test - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 test - 2.95.0 + 2.96.0-SNAPSHOT com.google.cloud @@ -196,13 +196,13 @@ com.google.cloud google-cloud-datacatalog test - 1.99.0 + 1.100.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datacatalog-v1 test - 1.99.0 + 1.100.0-SNAPSHOT diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/telemetry/Version.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/telemetry/Version.java index ff5541fedad5..f662f84e3857 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/telemetry/Version.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/telemetry/Version.java @@ -25,6 +25,6 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquery:current} - static final String VERSION = "2.67.0"; + static final String VERSION = "2.68.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigquery/pom.xml b/java-bigquery/pom.xml index 2c49a4c4eb56..1e7084674d08 100644 --- a/java-bigquery/pom.xml +++ b/java-bigquery/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquery-parent pom - 2.67.0 + 2.68.0-SNAPSHOT BigQuery Parent https://github.com/googleapis/google-cloud-java @@ -14,7 +14,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -70,7 +70,7 @@ com.google.cloud google-cloud-bigquery - 2.67.0 + 2.68.0-SNAPSHOT @@ -88,19 +88,19 @@ com.google.cloud google-cloud-storage - 2.69.0 + 2.70.0-SNAPSHOT test com.google.cloud google-cloud-bigqueryconnection - 2.95.0 + 2.96.0-SNAPSHOT test com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.95.0 + 2.96.0-SNAPSHOT test diff --git a/java-bigquery/samples/snapshot/pom.xml b/java-bigquery/samples/snapshot/pom.xml index 8ac1467d4b0f..b67a77fd45ce 100644 --- a/java-bigquery/samples/snapshot/pom.xml +++ b/java-bigquery/samples/snapshot/pom.xml @@ -56,7 +56,7 @@ com.google.cloud google-cloud-bigquery - 2.67.0 + 2.68.0-SNAPSHOT diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml b/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml index 914fa5d25e53..b92f314908d8 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigqueryconnection-bom - 2.95.0 + 2.96.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,27 +24,27 @@ com.google.cloud google-cloud-bigqueryconnection - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml b/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml index 0c844812e038..56c04301fede 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigqueryconnection - 2.95.0 + 2.96.0-SNAPSHOT jar Google Cloud BigQuery Connections is about com.google.cloud google-cloud-bigqueryconnection-parent - 2.95.0 + 2.96.0-SNAPSHOT google-cloud-bigqueryconnection diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/Version.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/Version.java index 4e5392b489a8..dc98bc013eed 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/Version.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigquery/connection/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigqueryconnection:current} - static final String VERSION = "2.95.0"; + static final String VERSION = "2.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/Version.java b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/Version.java index d398d881e739..5db2d7bd54ca 100644 --- a/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/Version.java +++ b/java-bigqueryconnection/google-cloud-bigqueryconnection/src/main/java/com/google/cloud/bigqueryconnection/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigqueryconnection:current} - static final String VERSION = "2.95.0"; + static final String VERSION = "2.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml index 4994fd795f2e..ea5415291f7f 100644 --- a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml +++ b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.95.0 + 2.96.0-SNAPSHOT grpc-google-cloud-bigqueryconnection-v1 GRPC library for grpc-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml index e51dc4191bcf..b7ea520367f9 100644 --- a/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml +++ b/java-bigqueryconnection/grpc-google-cloud-bigqueryconnection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 2.95.0 + 2.96.0-SNAPSHOT grpc-google-cloud-bigqueryconnection-v1beta1 GRPC library for grpc-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-bigqueryconnection/pom.xml b/java-bigqueryconnection/pom.xml index 7fb822575d3b..97ce7674731e 100644 --- a/java-bigqueryconnection/pom.xml +++ b/java-bigqueryconnection/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigqueryconnection-parent pom - 2.95.0 + 2.96.0-SNAPSHOT Google Cloud BigQuery Connections Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-bigqueryconnection - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryconnection-v1beta1 - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml index 5a6ae1f6a7d3..55395c8ce56b 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1 - 2.95.0 + 2.96.0-SNAPSHOT proto-google-cloud-bigqueryconnection-v1 PROTO library for proto-google-cloud-bigqueryconnection-v1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml index ef6800241a34..8b6466012671 100644 --- a/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml +++ b/java-bigqueryconnection/proto-google-cloud-bigqueryconnection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryconnection-v1beta1 - 2.95.0 + 2.96.0-SNAPSHOT proto-google-cloud-bigqueryconnection-v1beta1 PROTO library for proto-google-cloud-bigqueryconnection-v1beta1 com.google.cloud google-cloud-bigqueryconnection-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml index 49233eb62fc4..c65d71e128c9 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatapolicy-bom - 0.90.0 + 0.91.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,47 +28,47 @@ com.google.cloud google-cloud-bigquerydatapolicy - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2beta1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2beta1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2 - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml index eaa7bbfa4e15..ec3396240ffc 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatapolicy - 0.90.0 + 0.91.0-SNAPSHOT jar Google BigQuery DataPolicy API BigQuery DataPolicy API com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.90.0 + 0.91.0-SNAPSHOT google-cloud-bigquerydatapolicy diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/stub/Version.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/stub/Version.java index da57454ee558..79f3d5d2355a 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/stub/Version.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerydatapolicy:current} - static final String VERSION = "0.90.0"; + static final String VERSION = "0.91.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/stub/Version.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/stub/Version.java index 051e628b5ae7..0cd8fa9d8167 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/stub/Version.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerydatapolicy:current} - static final String VERSION = "0.90.0"; + static final String VERSION = "0.91.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/stub/Version.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/stub/Version.java index 2cb85bbd9c99..208849d2152f 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/stub/Version.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerydatapolicy:current} - static final String VERSION = "0.90.0"; + static final String VERSION = "0.91.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/Version.java b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/Version.java index c9913c45a4bf..6b69a946159b 100644 --- a/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/Version.java +++ b/java-bigquerydatapolicy/google-cloud-bigquerydatapolicy/src/main/java/com/google/cloud/bigquery/datapolicies/v2beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerydatapolicy:current} - static final String VERSION = "0.90.0"; + static final String VERSION = "0.91.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml index 3dc0de1a64fa..c7035ba21d91 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.90.0 + 0.91.0-SNAPSHOT grpc-google-cloud-bigquerydatapolicy-v1 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml index 54caf132db4e..3fb03291ba27 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.90.0 + 0.91.0-SNAPSHOT grpc-google-cloud-bigquerydatapolicy-v1beta1 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2/pom.xml b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2/pom.xml index 96eb7c055937..35c5e2a5e0b9 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2/pom.xml +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2 - 0.90.0 + 0.91.0-SNAPSHOT grpc-google-cloud-bigquerydatapolicy-v2 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/pom.xml b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/pom.xml index e6c6e195339a..42e99ca34f2b 100644 --- a/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/pom.xml +++ b/java-bigquerydatapolicy/grpc-google-cloud-bigquerydatapolicy-v2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2beta1 - 0.90.0 + 0.91.0-SNAPSHOT grpc-google-cloud-bigquerydatapolicy-v2beta1 GRPC library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-bigquerydatapolicy/pom.xml b/java-bigquerydatapolicy/pom.xml index da95ca91dfbe..73e56289dbb8 100644 --- a/java-bigquerydatapolicy/pom.xml +++ b/java-bigquerydatapolicy/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerydatapolicy-parent pom - 0.90.0 + 0.91.0-SNAPSHOT Google BigQuery DataPolicy API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,47 +30,47 @@ com.google.cloud google-cloud-bigquerydatapolicy - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2beta1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v2beta1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatapolicy-v1beta1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml index 45f21b9a7bc5..07a14efc3841 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1 - 0.90.0 + 0.91.0-SNAPSHOT proto-google-cloud-bigquerydatapolicy-v1 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml index 8cac61ff7293..58770784239f 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v1beta1 - 0.90.0 + 0.91.0-SNAPSHOT proto-google-cloud-bigquerydatapolicy-v1beta1 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/pom.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/pom.xml index 804dc698c95d..4cdd5d22bab0 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/pom.xml +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2 - 0.90.0 + 0.91.0-SNAPSHOT proto-google-cloud-bigquerydatapolicy-v2 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/pom.xml b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/pom.xml index 8ed59869645e..b6877224c69b 100644 --- a/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/pom.xml +++ b/java-bigquerydatapolicy/proto-google-cloud-bigquerydatapolicy-v2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatapolicy-v2beta1 - 0.90.0 + 0.91.0-SNAPSHOT proto-google-cloud-bigquerydatapolicy-v2beta1 Proto library for google-cloud-bigquerydatapolicy com.google.cloud google-cloud-bigquerydatapolicy-parent - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml index 6692ecc5f6a2..d2b4712ca261 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatatransfer-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,17 +24,17 @@ com.google.cloud google-cloud-bigquerydatatransfer - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml index b0239aacc94f..811d1b6241f9 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquerydatatransfer - 2.93.0 + 2.94.0-SNAPSHOT jar BigQuery DataTransfer BigQuery DataTransfer com.google.cloud google-cloud-bigquerydatatransfer-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-bigquerydatatransfer diff --git a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/Version.java b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/Version.java index 506fed339409..c7e000c98d9a 100644 --- a/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/Version.java +++ b/java-bigquerydatatransfer/google-cloud-bigquerydatatransfer/src/main/java/com/google/cloud/bigquery/datatransfer/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerydatatransfer:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml index 95ad4b2ad09f..09d49f73eac7 100644 --- a/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/java-bigquerydatatransfer/grpc-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-bigquerydatatransfer-v1 GRPC library for grpc-google-cloud-bigquerydatatransfer-v1 com.google.cloud google-cloud-bigquerydatatransfer-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-bigquerydatatransfer/pom.xml b/java-bigquerydatatransfer/pom.xml index 69dab9ab446a..98cd12b98240 100644 --- a/java-bigquerydatatransfer/pom.xml +++ b/java-bigquerydatatransfer/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerydatatransfer-parent pom - 2.93.0 + 2.94.0-SNAPSHOT BigQuery DataTransfer Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerydatatransfer-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.cloud google-cloud-bigquerydatatransfer - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml index 0aad963ee12e..2a5a6f10267f 100644 --- a/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml +++ b/java-bigquerydatatransfer/proto-google-cloud-bigquerydatatransfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerydatatransfer-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-bigquerydatatransfer-v1 PROTO library for proto-google-cloud-bigquerydatatransfer-v1 com.google.cloud google-cloud-bigquerydatatransfer-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml b/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml index 02a0fdeea543..c87f860a92f2 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml +++ b/java-bigquerymigration/google-cloud-bigquerymigration-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigquerymigration-bom - 0.96.0 + 0.97.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-bigquerymigration - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml b/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml index 53a5a0c17aad..ff83191f1621 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml +++ b/java-bigquerymigration/google-cloud-bigquerymigration/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigquerymigration - 0.96.0 + 0.97.0-SNAPSHOT jar Google BigQuery Migration BigQuery Migration BigQuery Migration API com.google.cloud google-cloud-bigquerymigration-parent - 0.96.0 + 0.97.0-SNAPSHOT google-cloud-bigquerymigration diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/Version.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/Version.java index bb8f4e428c2a..1d548f5c9b37 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/Version.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerymigration:current} - static final String VERSION = "0.96.0"; + static final String VERSION = "0.97.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/Version.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/Version.java index 6d43d32f8281..e15e6796582f 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/Version.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerymigration:current} - static final String VERSION = "0.96.0"; + static final String VERSION = "0.97.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml index 9d7469f24dc7..3898b083d0c6 100644 --- a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml +++ b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.96.0 + 0.97.0-SNAPSHOT grpc-google-cloud-bigquerymigration-v2 GRPC library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml index dbeb8f43037b..c32dba3b8187 100644 --- a/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml +++ b/java-bigquerymigration/grpc-google-cloud-bigquerymigration-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.96.0 + 0.97.0-SNAPSHOT grpc-google-cloud-bigquerymigration-v2alpha GRPC library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-bigquerymigration/pom.xml b/java-bigquerymigration/pom.xml index db0d22d8d3f2..eec81552314e 100644 --- a/java-bigquerymigration/pom.xml +++ b/java-bigquerymigration/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerymigration-parent pom - 0.96.0 + 0.97.0-SNAPSHOT Google BigQuery Migration Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-bigquerymigration - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerymigration-v2 - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerymigration-v2alpha - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml index 5817cad90f37..5a0486835278 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2 - 0.96.0 + 0.97.0-SNAPSHOT proto-google-cloud-bigquerymigration-v2 Proto library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml index 9f39b6b15670..cf2ef23ec97d 100644 --- a/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml +++ b/java-bigquerymigration/proto-google-cloud-bigquerymigration-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerymigration-v2alpha - 0.96.0 + 0.97.0-SNAPSHOT proto-google-cloud-bigquerymigration-v2alpha Proto library for google-cloud-bigquerymigration com.google.cloud google-cloud-bigquerymigration-parent - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml b/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml index 30ffe5fd18ad..8dc3376b4a73 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-bigqueryreservation-bom - 2.94.0 + 2.95.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,17 +24,17 @@ com.google.cloud google-cloud-bigqueryreservation - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml b/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml index 334f916c4dfa..94b3ffb303f1 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-bigqueryreservation - 2.94.0 + 2.95.0-SNAPSHOT jar Google Cloud BigQuery Reservations allows users to manage their flat-rate BigQuery reservations. com.google.cloud google-cloud-bigqueryreservation-parent - 2.94.0 + 2.95.0-SNAPSHOT google-cloud-bigqueryreservation diff --git a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/Version.java b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/Version.java index 089e38313ccc..160a8f155526 100644 --- a/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/Version.java +++ b/java-bigqueryreservation/google-cloud-bigqueryreservation/src/main/java/com/google/cloud/bigquery/reservation/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigqueryreservation:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml b/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml index 9e9e4e1d895b..013aca718090 100644 --- a/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml +++ b/java-bigqueryreservation/grpc-google-cloud-bigqueryreservation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-bigqueryreservation-v1 GRPC library for grpc-google-cloud-bigqueryreservation-v1 com.google.cloud google-cloud-bigqueryreservation-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-bigqueryreservation/pom.xml b/java-bigqueryreservation/pom.xml index 5974af695814..80a5ff3defbb 100644 --- a/java-bigqueryreservation/pom.xml +++ b/java-bigqueryreservation/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigqueryreservation-parent pom - 2.94.0 + 2.95.0-SNAPSHOT Google Cloud BigQuery Reservations Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-bigqueryreservation - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigqueryreservation-v1 - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml index e1946f0f9563..cb059166899a 100644 --- a/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml +++ b/java-bigqueryreservation/proto-google-cloud-bigqueryreservation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigqueryreservation-v1 - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-bigqueryreservation-v1 PROTO library for proto-google-cloud-bigqueryreservation-v1 com.google.cloud google-cloud-bigqueryreservation-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-bigquerystorage/google-cloud-bigquerystorage-bom/pom.xml b/java-bigquerystorage/google-cloud-bigquerystorage-bom/pom.xml index d6d3068bb228..918dfedeee02 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage-bom/pom.xml +++ b/java-bigquerystorage/google-cloud-bigquerystorage-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-bigquerystorage-bom - 3.29.0 + 3.30.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -54,57 +54,57 @@ com.google.cloud google-cloud-bigquerystorage - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta1 - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta2 - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerystorage-v1 - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerystorage-v1alpha - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta2 - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerystorage-v1 - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerystorage-v1alpha - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta - 3.29.0 + 3.30.0-SNAPSHOT diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/pom.xml b/java-bigquerystorage/google-cloud-bigquerystorage/pom.xml index 021e865edc82..fdc6eab9271f 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/pom.xml +++ b/java-bigquerystorage/google-cloud-bigquerystorage/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-bigquerystorage - 3.29.0 + 3.30.0-SNAPSHOT jar BigQuery Storage https://github.com/googleapis/google-cloud-java @@ -11,7 +11,7 @@ com.google.cloud google-cloud-bigquerystorage-parent - 3.29.0 + 3.30.0-SNAPSHOT google-cloud-bigquerystorage diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/Version.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/Version.java index 7e4944f7c65d..8e585c247957 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/Version.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerystorage:current} - static final String VERSION = "3.29.0"; + static final String VERSION = "3.30.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/Version.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/Version.java index 14662285fadf..a8680d5d8de9 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/Version.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerystorage:current} - static final String VERSION = "3.29.0"; + static final String VERSION = "3.30.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/stub/Version.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/stub/Version.java index 4bb053b4ae0c..0b76cd4f79b9 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/stub/Version.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerystorage:current} - static final String VERSION = "3.29.0"; + static final String VERSION = "3.30.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/Version.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/Version.java index 6758fc03c6a8..6f50f672e7b1 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/Version.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerystorage:current} - static final String VERSION = "3.29.0"; + static final String VERSION = "3.30.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/Version.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/Version.java index aa346a299c8b..05f60166de7f 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/Version.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1beta2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigquerystorage:current} - static final String VERSION = "3.29.0"; + static final String VERSION = "3.30.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1/pom.xml b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1/pom.xml index eb0262a63b0c..4e29d09e3f6a 100644 --- a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1/pom.xml +++ b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1 - 3.29.0 + 3.30.0-SNAPSHOT grpc-google-cloud-bigquerystorage-v1 GRPC library for grpc-google-cloud-bigquerystorage-v1 com.google.cloud google-cloud-bigquerystorage-parent - 3.29.0 + 3.30.0-SNAPSHOT diff --git a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1alpha/pom.xml b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1alpha/pom.xml index 571fd89f842a..e0c6edbcdf67 100644 --- a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1alpha/pom.xml +++ b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1alpha - 3.29.0 + 3.30.0-SNAPSHOT grpc-google-cloud-bigquerystorage-v1alpha GRPC library for google-cloud-bigquerystorage com.google.cloud google-cloud-bigquerystorage-parent - 3.29.0 + 3.30.0-SNAPSHOT diff --git a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta/pom.xml b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta/pom.xml index 47ddcc059670..5084bd7bf356 100644 --- a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta/pom.xml +++ b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta - 3.29.0 + 3.30.0-SNAPSHOT grpc-google-cloud-bigquerystorage-v1beta GRPC library for google-cloud-bigquerystorage com.google.cloud google-cloud-bigquerystorage-parent - 3.29.0 + 3.30.0-SNAPSHOT diff --git a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml index a55d591c295a..c158633f39af 100644 --- a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml +++ b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta1 - 3.29.0 + 3.30.0-SNAPSHOT grpc-google-cloud-bigquerystorage-v1beta1 GRPC library for grpc-google-cloud-bigquerystorage-v1beta1 com.google.cloud google-cloud-bigquerystorage-parent - 3.29.0 + 3.30.0-SNAPSHOT diff --git a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta2/pom.xml b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta2/pom.xml index 5380e26a7eb0..7a6d44dd42ef 100644 --- a/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta2/pom.xml +++ b/java-bigquerystorage/grpc-google-cloud-bigquerystorage-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta2 - 3.29.0 + 3.30.0-SNAPSHOT grpc-google-cloud-bigquerystorage-v1beta2 GRPC library for grpc-google-cloud-bigquerystorage-v1beta2 com.google.cloud google-cloud-bigquerystorage-parent - 3.29.0 + 3.30.0-SNAPSHOT diff --git a/java-bigquerystorage/pom.xml b/java-bigquerystorage/pom.xml index fcbb163eafa1..c936c1306031 100644 --- a/java-bigquerystorage/pom.xml +++ b/java-bigquerystorage/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-bigquerystorage-parent pom - 3.29.0 + 3.30.0-SNAPSHOT BigQuery Storage Parent https://github.com/googleapis/google-cloud-java @@ -14,7 +14,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -78,57 +78,57 @@ com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerystorage-v1alpha - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerystorage-v1alpha - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta2 - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigquerystorage-v1 - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta1 - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerystorage-v1beta2 - 3.29.0 + 3.30.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigquerystorage-v1 - 3.29.0 + 3.30.0-SNAPSHOT com.google.cloud google-cloud-bigquerystorage - 3.29.0 + 3.30.0-SNAPSHOT com.google.cloud diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/pom.xml b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/pom.xml index 2f08d0c035d6..e578e58623bc 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/pom.xml +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1 - 3.29.0 + 3.30.0-SNAPSHOT proto-google-cloud-bigquerystorage-v1 PROTO library for proto-google-cloud-bigquerystorage-v1 com.google.cloud google-cloud-bigquerystorage-parent - 3.29.0 + 3.30.0-SNAPSHOT diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1alpha/pom.xml b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1alpha/pom.xml index 4eec38cb437b..f1ce61f40e24 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1alpha/pom.xml +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1alpha - 3.29.0 + 3.30.0-SNAPSHOT proto-google-cloud-bigquerystorage-v1alpha Proto library for google-cloud-bigquerystorage com.google.cloud google-cloud-bigquerystorage-parent - 3.29.0 + 3.30.0-SNAPSHOT diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta/pom.xml b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta/pom.xml index 557eeed6a02b..eb7cc898b0b8 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta/pom.xml +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta - 3.29.0 + 3.30.0-SNAPSHOT proto-google-cloud-bigquerystorage-v1beta Proto library for google-cloud-bigquerystorage com.google.cloud google-cloud-bigquerystorage-parent - 3.29.0 + 3.30.0-SNAPSHOT diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta1/pom.xml b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta1/pom.xml index b5d4392a7f19..a8fa267e41fd 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta1/pom.xml +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta1 - 3.29.0 + 3.30.0-SNAPSHOT proto-google-cloud-bigquerystorage-v1beta1 PROTO library for proto-google-cloud-bigquerystorage-v1beta1 com.google.cloud google-cloud-bigquerystorage-parent - 3.29.0 + 3.30.0-SNAPSHOT diff --git a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/pom.xml b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/pom.xml index 1a0ebbb1248a..f1644ba2027a 100644 --- a/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/pom.xml +++ b/java-bigquerystorage/proto-google-cloud-bigquerystorage-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigquerystorage-v1beta2 - 3.29.0 + 3.30.0-SNAPSHOT proto-google-cloud-bigquerystorage-v1beta2 PROTO library for proto-google-cloud-bigquerystorage-v1beta2 com.google.cloud google-cloud-bigquerystorage-parent - 3.29.0 + 3.30.0-SNAPSHOT diff --git a/java-bigquerystorage/samples/snapshot/pom.xml b/java-bigquerystorage/samples/snapshot/pom.xml index e295dddb2206..4cd0f07bfb70 100644 --- a/java-bigquerystorage/samples/snapshot/pom.xml +++ b/java-bigquerystorage/samples/snapshot/pom.xml @@ -30,7 +30,7 @@ com.google.cloud google-cloud-bigquerystorage - 3.29.0 + 3.30.0-SNAPSHOT diff --git a/java-bigtable/google-cloud-bigtable-bom/pom.xml b/java-bigtable/google-cloud-bigtable-bom/pom.xml index 4ac37897133c..ecbbc52328fb 100644 --- a/java-bigtable/google-cloud-bigtable-bom/pom.xml +++ b/java-bigtable/google-cloud-bigtable-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-bigtable-bom - 2.79.0 + 2.80.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -62,37 +62,37 @@ com.google.cloud google-cloud-bigtable - 2.79.0 + 2.80.0-SNAPSHOT com.google.cloud google-cloud-bigtable-emulator - 0.216.0 + 0.217.0-SNAPSHOT com.google.cloud google-cloud-bigtable-emulator-core - 0.216.0 + 0.217.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 2.79.0 + 2.80.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigtable-v2 - 2.79.0 + 2.80.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 2.79.0 + 2.80.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigtable-v2 - 2.79.0 + 2.80.0-SNAPSHOT diff --git a/java-bigtable/google-cloud-bigtable-deps-bom/pom.xml b/java-bigtable/google-cloud-bigtable-deps-bom/pom.xml index 0e405b90d302..fc292f41f226 100644 --- a/java-bigtable/google-cloud-bigtable-deps-bom/pom.xml +++ b/java-bigtable/google-cloud-bigtable-deps-bom/pom.xml @@ -7,13 +7,13 @@ com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml com.google.cloud google-cloud-bigtable-deps-bom - 2.79.0 + 2.80.0-SNAPSHOT pom Google Cloud Bigtable Dependency BOM @@ -66,14 +66,14 @@ com.google.cloud google-cloud-monitoring-bom - 3.94.0 + 3.95.0-SNAPSHOT pom import com.google.cloud google-cloud-shared-dependencies - 3.63.0 + 3.64.0-SNAPSHOT pom import diff --git a/java-bigtable/google-cloud-bigtable-emulator-core/pom.xml b/java-bigtable/google-cloud-bigtable-emulator-core/pom.xml index 09d486e2e2d2..93f6f0c17a9e 100644 --- a/java-bigtable/google-cloud-bigtable-emulator-core/pom.xml +++ b/java-bigtable/google-cloud-bigtable-emulator-core/pom.xml @@ -7,12 +7,12 @@ google-cloud-bigtable-parent com.google.cloud - 2.79.0 + 2.80.0-SNAPSHOT Google Cloud Java - Bigtable Emulator Core google-cloud-bigtable-emulator-core - 0.216.0 + 0.217.0-SNAPSHOT A Java wrapper for the Cloud Bigtable emulator. diff --git a/java-bigtable/google-cloud-bigtable-emulator/pom.xml b/java-bigtable/google-cloud-bigtable-emulator/pom.xml index 0a1a2cdb40f0..6d8086dbc88c 100644 --- a/java-bigtable/google-cloud-bigtable-emulator/pom.xml +++ b/java-bigtable/google-cloud-bigtable-emulator/pom.xml @@ -5,7 +5,7 @@ 4.0.0 google-cloud-bigtable-emulator - 0.216.0 + 0.217.0-SNAPSHOT Google Cloud Java - Bigtable Emulator https://github.com/googleapis/java-bigtable @@ -14,7 +14,7 @@ com.google.cloud google-cloud-bigtable-parent - 2.79.0 + 2.80.0-SNAPSHOT scm:git:git@github.com:googleapis/java-bigtable.git @@ -81,14 +81,14 @@ com.google.cloud google-cloud-bigtable-deps-bom - 2.79.0 + 2.80.0-SNAPSHOT pom import com.google.cloud google-cloud-bigtable-bom - 2.79.0 + 2.80.0-SNAPSHOT pom import @@ -99,7 +99,7 @@ com.google.cloud google-cloud-bigtable-emulator-core - 0.216.0 + 0.217.0-SNAPSHOT diff --git a/java-bigtable/google-cloud-bigtable/pom.xml b/java-bigtable/google-cloud-bigtable/pom.xml index c09a79a13731..342132044bae 100644 --- a/java-bigtable/google-cloud-bigtable/pom.xml +++ b/java-bigtable/google-cloud-bigtable/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-bigtable - 2.79.0 + 2.80.0-SNAPSHOT jar Google Cloud Bigtable https://github.com/googleapis/java-bigtable @@ -12,11 +12,11 @@ com.google.cloud google-cloud-bigtable-parent - 2.79.0 + 2.80.0-SNAPSHOT - 2.79.0 + 2.80.0-SNAPSHOT google-cloud-bigtable @@ -54,14 +54,14 @@ com.google.cloud google-cloud-bigtable-deps-bom - 2.79.0 + 2.80.0-SNAPSHOT pom import com.google.cloud google-cloud-bigtable-bom - 2.79.0 + 2.80.0-SNAPSHOT pom import diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/Version.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/Version.java index dc55b018cea1..f9f6677dd00e 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/Version.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/Version.java @@ -20,6 +20,6 @@ @InternalApi("For internal use only") public final class Version { // {x-version-update-start:google-cloud-bigtable:current} - public static String VERSION = "2.79.0"; + public static String VERSION = "2.80.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/Version.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/Version.java index c69c09a7e0b6..133a38377d2a 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/Version.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigtable:current} - static final String VERSION = "2.79.0"; + static final String VERSION = "2.80.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/Version.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/Version.java index e185b2606b46..315bdf6baa90 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/Version.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-bigtable:current} - static final String VERSION = "2.79.0"; + static final String VERSION = "2.80.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-bigtable/grpc-google-cloud-bigtable-admin-v2/pom.xml b/java-bigtable/grpc-google-cloud-bigtable-admin-v2/pom.xml index 12654efa044e..b83d0071617f 100644 --- a/java-bigtable/grpc-google-cloud-bigtable-admin-v2/pom.xml +++ b/java-bigtable/grpc-google-cloud-bigtable-admin-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 2.79.0 + 2.80.0-SNAPSHOT grpc-google-cloud-bigtable-admin-v2 GRPC library for grpc-google-cloud-bigtable-admin-v2 com.google.cloud google-cloud-bigtable-parent - 2.79.0 + 2.80.0-SNAPSHOT @@ -18,14 +18,14 @@ com.google.cloud google-cloud-bigtable-deps-bom - 2.79.0 + 2.80.0-SNAPSHOT pom import com.google.cloud google-cloud-bigtable-bom - 2.79.0 + 2.80.0-SNAPSHOT pom import diff --git a/java-bigtable/grpc-google-cloud-bigtable-v2/pom.xml b/java-bigtable/grpc-google-cloud-bigtable-v2/pom.xml index b702df3d5ff5..da0e1ad17969 100644 --- a/java-bigtable/grpc-google-cloud-bigtable-v2/pom.xml +++ b/java-bigtable/grpc-google-cloud-bigtable-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-bigtable-v2 - 2.79.0 + 2.80.0-SNAPSHOT grpc-google-cloud-bigtable-v2 GRPC library for grpc-google-cloud-bigtable-v2 com.google.cloud google-cloud-bigtable-parent - 2.79.0 + 2.80.0-SNAPSHOT @@ -18,14 +18,14 @@ com.google.cloud google-cloud-bigtable-deps-bom - 2.79.0 + 2.80.0-SNAPSHOT pom import com.google.cloud google-cloud-bigtable-bom - 2.79.0 + 2.80.0-SNAPSHOT pom import diff --git a/java-bigtable/pom.xml b/java-bigtable/pom.xml index d76940ff2e95..6b6993a0b150 100644 --- a/java-bigtable/pom.xml +++ b/java-bigtable/pom.xml @@ -4,7 +4,7 @@ google-cloud-bigtable-parent pom - 2.79.0 + 2.80.0-SNAPSHOT Google Cloud Bigtable Parent https://github.com/googleapis/google-cloud-java @@ -14,7 +14,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -155,27 +155,27 @@ com.google.api.grpc proto-google-cloud-bigtable-v2 - 2.79.0 + 2.80.0-SNAPSHOT com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 2.79.0 + 2.80.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigtable-v2 - 2.79.0 + 2.80.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-bigtable-admin-v2 - 2.79.0 + 2.80.0-SNAPSHOT com.google.cloud google-cloud-bigtable - 2.79.0 + 2.80.0-SNAPSHOT diff --git a/java-bigtable/proto-google-cloud-bigtable-admin-v2/pom.xml b/java-bigtable/proto-google-cloud-bigtable-admin-v2/pom.xml index 95fda8c63744..aa056a3a15ea 100644 --- a/java-bigtable/proto-google-cloud-bigtable-admin-v2/pom.xml +++ b/java-bigtable/proto-google-cloud-bigtable-admin-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigtable-admin-v2 - 2.79.0 + 2.80.0-SNAPSHOT proto-google-cloud-bigtable-admin-v2 PROTO library for proto-google-cloud-bigtable-admin-v2 com.google.cloud google-cloud-bigtable-parent - 2.79.0 + 2.80.0-SNAPSHOT @@ -18,14 +18,14 @@ com.google.cloud google-cloud-bigtable-deps-bom - 2.79.0 + 2.80.0-SNAPSHOT pom import com.google.cloud google-cloud-bigtable-bom - 2.79.0 + 2.80.0-SNAPSHOT pom import diff --git a/java-bigtable/proto-google-cloud-bigtable-v2/pom.xml b/java-bigtable/proto-google-cloud-bigtable-v2/pom.xml index 298f95fefd3a..e45314d02e2e 100644 --- a/java-bigtable/proto-google-cloud-bigtable-v2/pom.xml +++ b/java-bigtable/proto-google-cloud-bigtable-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-bigtable-v2 - 2.79.0 + 2.80.0-SNAPSHOT proto-google-cloud-bigtable-v2 PROTO library for proto-google-cloud-bigtable-v2 com.google.cloud google-cloud-bigtable-parent - 2.79.0 + 2.80.0-SNAPSHOT @@ -18,14 +18,14 @@ com.google.cloud google-cloud-bigtable-deps-bom - 2.79.0 + 2.80.0-SNAPSHOT pom import com.google.cloud google-cloud-bigtable-bom - 2.79.0 + 2.80.0-SNAPSHOT pom import diff --git a/java-bigtable/samples/snapshot/pom.xml b/java-bigtable/samples/snapshot/pom.xml index 80558478f8a8..99bd5c96767e 100644 --- a/java-bigtable/samples/snapshot/pom.xml +++ b/java-bigtable/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-bigtable - 2.79.0 + 2.80.0-SNAPSHOT diff --git a/java-bigtable/test-proxy/pom.xml b/java-bigtable/test-proxy/pom.xml index f8dd0964b069..ac01d09a8795 100644 --- a/java-bigtable/test-proxy/pom.xml +++ b/java-bigtable/test-proxy/pom.xml @@ -12,11 +12,11 @@ google-cloud-bigtable-parent com.google.cloud - 2.79.0 + 2.80.0-SNAPSHOT - 2.79.0 + 2.80.0-SNAPSHOT diff --git a/java-billing/google-cloud-billing-bom/pom.xml b/java-billing/google-cloud-billing-bom/pom.xml index f3d0cc9a32eb..3dae8166867f 100644 --- a/java-billing/google-cloud-billing-bom/pom.xml +++ b/java-billing/google-cloud-billing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-billing-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,17 +24,17 @@ com.google.cloud google-cloud-billing - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-billing-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-billing-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-billing/google-cloud-billing/pom.xml b/java-billing/google-cloud-billing/pom.xml index 03db29df9bcb..15ef029b2148 100644 --- a/java-billing/google-cloud-billing/pom.xml +++ b/java-billing/google-cloud-billing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-billing - 2.93.0 + 2.94.0-SNAPSHOT jar Google Cloud Billing Java idiomatic client for Google Cloud Billing com.google.cloud google-cloud-billing-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-billing diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/Version.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/Version.java index e3bacffbe92f..a62a60593019 100644 --- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/Version.java +++ b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-billing:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-billing/grpc-google-cloud-billing-v1/pom.xml b/java-billing/grpc-google-cloud-billing-v1/pom.xml index 682f9ae043ce..2ef58a8c532f 100644 --- a/java-billing/grpc-google-cloud-billing-v1/pom.xml +++ b/java-billing/grpc-google-cloud-billing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-billing-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-billing-v1 GRPC library for grpc-google-cloud-billing-v1 com.google.cloud google-cloud-billing-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-billing/pom.xml b/java-billing/pom.xml index cde623f9c45e..5246c1f3c38e 100644 --- a/java-billing/pom.xml +++ b/java-billing/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-billing-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Cloud Billing Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.api.grpc proto-google-cloud-billing-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-billing-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.cloud google-cloud-billing - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-billing/proto-google-cloud-billing-v1/pom.xml b/java-billing/proto-google-cloud-billing-v1/pom.xml index 4fa73ddb5bab..8ed0eceb8cb1 100644 --- a/java-billing/proto-google-cloud-billing-v1/pom.xml +++ b/java-billing/proto-google-cloud-billing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-billing-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-billing-v1beta1 PROTO library for proto-google-cloud-billing-v1 com.google.cloud google-cloud-billing-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml b/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml index e91941f386f3..ab3e2234b215 100644 --- a/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml +++ b/java-billingbudgets/google-cloud-billingbudgets-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-billingbudgets-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,27 +24,27 @@ com.google.cloud google-cloud-billingbudgets - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-billingbudgets-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-billingbudgets/google-cloud-billingbudgets/pom.xml b/java-billingbudgets/google-cloud-billingbudgets/pom.xml index 10dc0ed2606b..8f16f7abb9e9 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/pom.xml +++ b/java-billingbudgets/google-cloud-billingbudgets/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-billingbudgets - 2.93.0 + 2.94.0-SNAPSHOT jar Google Cloud billingbudgets Java idiomatic client for Google Cloud billingbudgets com.google.cloud google-cloud-billingbudgets-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-billingbudgets diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/Version.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/Version.java index da28a47b3089..e9dd6f6ce7a6 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/Version.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-billingbudgets:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/Version.java b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/Version.java index 091ba2d216d1..977ddb0bbc95 100644 --- a/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/Version.java +++ b/java-billingbudgets/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-billingbudgets:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml index 98a28c9ac2ca..f7719d8be4b6 100644 --- a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml +++ b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-billingbudgets-v1 GRPC library for grpc-google-cloud-billingbudgets-v1 com.google.cloud google-cloud-billingbudgets-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml index ad2bd8d9cda5..10969ddd3697 100644 --- a/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml +++ b/java-billingbudgets/grpc-google-cloud-billingbudgets-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-billingbudgets-v1beta1 GRPC library for grpc-google-cloud-billingbudgets-v1beta1 com.google.cloud google-cloud-billingbudgets-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-billingbudgets/pom.xml b/java-billingbudgets/pom.xml index 3bf375f83f53..81ad50d07fac 100644 --- a/java-billingbudgets/pom.xml +++ b/java-billingbudgets/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-billingbudgets-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Cloud Billing Budgets Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.api.grpc proto-google-cloud-billingbudgets-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-billingbudgets-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-billingbudgets-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.cloud google-cloud-billingbudgets - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml index 48c486384b8f..4293b7c95147 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-billingbudgets-v1 PROTO library for proto-google-cloud-billingbudgets-v1 com.google.cloud google-cloud-billingbudgets-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml index a52faf30b5ed..a552a1388f89 100644 --- a/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml +++ b/java-billingbudgets/proto-google-cloud-billingbudgets-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-billingbudgets-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-billingbudgets-v1beta1 PROTO library for proto-google-cloud-billingbudgets-v1beta1 com.google.cloud google-cloud-billingbudgets-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml b/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml index e6aa75505fab..384c85482f09 100644 --- a/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml +++ b/java-binary-authorization/google-cloud-binary-authorization-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-binary-authorization-bom - 1.92.0 + 1.93.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-binary-authorization - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-binary-authorization/google-cloud-binary-authorization/pom.xml b/java-binary-authorization/google-cloud-binary-authorization/pom.xml index 417e95f71370..3aaab67017e8 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/pom.xml +++ b/java-binary-authorization/google-cloud-binary-authorization/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-binary-authorization - 1.92.0 + 1.93.0-SNAPSHOT jar Google Binary Authorization Binary Authorization is a service on Google Cloud that provides centralized software supply-chain security for applications that run on Google Kubernetes Engine (GKE) and Anthos clusters on VMware com.google.cloud google-cloud-binary-authorization-parent - 1.92.0 + 1.93.0-SNAPSHOT google-cloud-binary-authorization diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/Version.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/Version.java index 5e469ffbba2e..d7bda9c1b448 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/Version.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/cloud/binaryauthorization/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-binary-authorization:current} - static final String VERSION = "1.92.0"; + static final String VERSION = "1.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/Version.java b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/Version.java index 201ad1514f7c..739785536e54 100644 --- a/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/Version.java +++ b/java-binary-authorization/google-cloud-binary-authorization/src/main/java/com/google/protos/google/cloud/binaryauthorization/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-binary-authorization:current} - static final String VERSION = "1.92.0"; + static final String VERSION = "1.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml index f29c7078f0f4..d5a5e26116b0 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.92.0 + 1.93.0-SNAPSHOT grpc-google-cloud-binary-authorization-v1 GRPC library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml index 945363e62eb9..49ac433aa731 100644 --- a/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml +++ b/java-binary-authorization/grpc-google-cloud-binary-authorization-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 1.92.0 + 1.93.0-SNAPSHOT grpc-google-cloud-binary-authorization-v1beta1 GRPC library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-binary-authorization/pom.xml b/java-binary-authorization/pom.xml index 06cfc500e04b..c5f14ba544b2 100644 --- a/java-binary-authorization/pom.xml +++ b/java-binary-authorization/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-binary-authorization-parent pom - 1.92.0 + 1.93.0-SNAPSHOT Google Binary Authorization Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,34 +30,34 @@ com.google.cloud google-cloud-binary-authorization - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-binary-authorization-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-binary-authorization-v1beta1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 1.92.0 + 1.93.0-SNAPSHOT io.grafeas grafeas - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml index f110066e1f4b..9c0f7b7f0570 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1 - 1.92.0 + 1.93.0-SNAPSHOT proto-google-cloud-binary-authorization-v1 Proto library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml index 80c99497f643..40f0e3c7b335 100644 --- a/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml +++ b/java-binary-authorization/proto-google-cloud-binary-authorization-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-binary-authorization-v1beta1 - 1.92.0 + 1.93.0-SNAPSHOT proto-google-cloud-binary-authorization-v1beta1 Proto library for google-cloud-binary-authorization com.google.cloud google-cloud-binary-authorization-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-capacityplanner/google-cloud-capacityplanner-bom/pom.xml b/java-capacityplanner/google-cloud-capacityplanner-bom/pom.xml index 5f7efe34392c..ec43286513e2 100644 --- a/java-capacityplanner/google-cloud-capacityplanner-bom/pom.xml +++ b/java-capacityplanner/google-cloud-capacityplanner-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-capacityplanner-bom - 0.16.0 + 0.17.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-capacityplanner - 0.16.0 + 0.17.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-capacityplanner-v1beta - 0.16.0 + 0.17.0-SNAPSHOT com.google.api.grpc proto-google-cloud-capacityplanner-v1beta - 0.16.0 + 0.17.0-SNAPSHOT diff --git a/java-capacityplanner/google-cloud-capacityplanner/pom.xml b/java-capacityplanner/google-cloud-capacityplanner/pom.xml index 267e14f14c24..b53c8fafbd63 100644 --- a/java-capacityplanner/google-cloud-capacityplanner/pom.xml +++ b/java-capacityplanner/google-cloud-capacityplanner/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-capacityplanner - 0.16.0 + 0.17.0-SNAPSHOT jar Google Capacity Planner API Capacity Planner API Provides programmatic access to Capacity Planner features. com.google.cloud google-cloud-capacityplanner-parent - 0.16.0 + 0.17.0-SNAPSHOT google-cloud-capacityplanner diff --git a/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/stub/Version.java b/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/stub/Version.java index 29ff78c88d08..f97bc0f6d0e9 100644 --- a/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/stub/Version.java +++ b/java-capacityplanner/google-cloud-capacityplanner/src/main/java/com/google/cloud/capacityplanner/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-capacityplanner:current} - static final String VERSION = "0.16.0"; + static final String VERSION = "0.17.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-capacityplanner/grpc-google-cloud-capacityplanner-v1beta/pom.xml b/java-capacityplanner/grpc-google-cloud-capacityplanner-v1beta/pom.xml index a94f7f2dad72..bccd67b419bd 100644 --- a/java-capacityplanner/grpc-google-cloud-capacityplanner-v1beta/pom.xml +++ b/java-capacityplanner/grpc-google-cloud-capacityplanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-capacityplanner-v1beta - 0.16.0 + 0.17.0-SNAPSHOT grpc-google-cloud-capacityplanner-v1beta GRPC library for google-cloud-capacityplanner com.google.cloud google-cloud-capacityplanner-parent - 0.16.0 + 0.17.0-SNAPSHOT diff --git a/java-capacityplanner/pom.xml b/java-capacityplanner/pom.xml index b588e0cb427c..148102658d7a 100644 --- a/java-capacityplanner/pom.xml +++ b/java-capacityplanner/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-capacityplanner-parent pom - 0.16.0 + 0.17.0-SNAPSHOT Google Capacity Planner API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-capacityplanner - 0.16.0 + 0.17.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-capacityplanner-v1beta - 0.16.0 + 0.17.0-SNAPSHOT com.google.api.grpc proto-google-cloud-capacityplanner-v1beta - 0.16.0 + 0.17.0-SNAPSHOT diff --git a/java-capacityplanner/proto-google-cloud-capacityplanner-v1beta/pom.xml b/java-capacityplanner/proto-google-cloud-capacityplanner-v1beta/pom.xml index e7bfceeeee02..4aaf2b4d2972 100644 --- a/java-capacityplanner/proto-google-cloud-capacityplanner-v1beta/pom.xml +++ b/java-capacityplanner/proto-google-cloud-capacityplanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-capacityplanner-v1beta - 0.16.0 + 0.17.0-SNAPSHOT proto-google-cloud-capacityplanner-v1beta Proto library for google-cloud-capacityplanner com.google.cloud google-cloud-capacityplanner-parent - 0.16.0 + 0.17.0-SNAPSHOT diff --git a/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml b/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml index 5fe5b91089c6..f763811058fa 100644 --- a/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml +++ b/java-certificate-manager/google-cloud-certificate-manager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-certificate-manager-bom - 0.96.0 + 0.97.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-certificate-manager - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-certificate-manager/google-cloud-certificate-manager/pom.xml b/java-certificate-manager/google-cloud-certificate-manager/pom.xml index eb7cded1eac1..701e762c9edd 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/pom.xml +++ b/java-certificate-manager/google-cloud-certificate-manager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-certificate-manager - 0.96.0 + 0.97.0-SNAPSHOT jar Google Certificate Manager Certificate Manager lets you acquire and manage TLS (SSL) certificates for use with Cloud Load Balancing. com.google.cloud google-cloud-certificate-manager-parent - 0.96.0 + 0.97.0-SNAPSHOT google-cloud-certificate-manager diff --git a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/Version.java b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/Version.java index 2a411b4e5561..12d3e7f67de8 100644 --- a/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/Version.java +++ b/java-certificate-manager/google-cloud-certificate-manager/src/main/java/com/google/cloud/certificatemanager/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-certificate-manager:current} - static final String VERSION = "0.96.0"; + static final String VERSION = "0.97.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml b/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml index 1df91d90d63b..ec6df4a96875 100644 --- a/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml +++ b/java-certificate-manager/grpc-google-cloud-certificate-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.96.0 + 0.97.0-SNAPSHOT grpc-google-cloud-certificate-manager-v1 GRPC library for google-cloud-certificate-manager com.google.cloud google-cloud-certificate-manager-parent - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-certificate-manager/pom.xml b/java-certificate-manager/pom.xml index 449cdefe6a55..31300678bcde 100644 --- a/java-certificate-manager/pom.xml +++ b/java-certificate-manager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-certificate-manager-parent pom - 0.96.0 + 0.97.0-SNAPSHOT Google Certificate Manager Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-certificate-manager - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-certificate-manager-v1 - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml index ccc6be8860c7..f5dee1998642 100644 --- a/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml +++ b/java-certificate-manager/proto-google-cloud-certificate-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-certificate-manager-v1 - 0.96.0 + 0.97.0-SNAPSHOT proto-google-cloud-certificate-manager-v1 Proto library for google-cloud-certificate-manager com.google.cloud google-cloud-certificate-manager-parent - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-ces/google-cloud-ces-bom/pom.xml b/java-ces/google-cloud-ces-bom/pom.xml index af1e0bdf725e..8c0c039a7cbf 100644 --- a/java-ces/google-cloud-ces-bom/pom.xml +++ b/java-ces/google-cloud-ces-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-ces-bom - 0.9.0 + 0.10.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-ces - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-ces-v1 - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-ces-v1beta - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc proto-google-cloud-ces-v1 - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc proto-google-cloud-ces-v1beta - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-ces/google-cloud-ces/pom.xml b/java-ces/google-cloud-ces/pom.xml index daba7dd69b19..6d9ecd89dc62 100644 --- a/java-ces/google-cloud-ces/pom.xml +++ b/java-ces/google-cloud-ces/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-ces - 0.9.0 + 0.10.0-SNAPSHOT jar Google Gemini Enterprise for Customer Experience API Gemini Enterprise for Customer Experience API Customer Experience Agent Studio (CX Agent Studio) is a minimal code conversational agent builder. com.google.cloud google-cloud-ces-parent - 0.9.0 + 0.10.0-SNAPSHOT google-cloud-ces diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/Version.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/Version.java index 1a0da77c0194..96f561bfd0c6 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/Version.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-ces:current} - static final String VERSION = "0.9.0"; + static final String VERSION = "0.10.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/Version.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/Version.java index 462b63fd0c9d..a84e0e4b270e 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/Version.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-ces:current} - static final String VERSION = "0.9.0"; + static final String VERSION = "0.10.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-ces/grpc-google-cloud-ces-v1/pom.xml b/java-ces/grpc-google-cloud-ces-v1/pom.xml index 75936f07b5d6..650a716a95ee 100644 --- a/java-ces/grpc-google-cloud-ces-v1/pom.xml +++ b/java-ces/grpc-google-cloud-ces-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-ces-v1 - 0.9.0 + 0.10.0-SNAPSHOT grpc-google-cloud-ces-v1 GRPC library for google-cloud-ces com.google.cloud google-cloud-ces-parent - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-ces/grpc-google-cloud-ces-v1beta/pom.xml b/java-ces/grpc-google-cloud-ces-v1beta/pom.xml index 2dd3202954d0..8f5faa7b6119 100644 --- a/java-ces/grpc-google-cloud-ces-v1beta/pom.xml +++ b/java-ces/grpc-google-cloud-ces-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-ces-v1beta - 0.9.0 + 0.10.0-SNAPSHOT grpc-google-cloud-ces-v1beta GRPC library for google-cloud-ces com.google.cloud google-cloud-ces-parent - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-ces/pom.xml b/java-ces/pom.xml index 77b072892ad5..b1db7ee1355a 100644 --- a/java-ces/pom.xml +++ b/java-ces/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-ces-parent pom - 0.9.0 + 0.10.0-SNAPSHOT Google Gemini Enterprise for Customer Experience API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-ces - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc proto-google-cloud-ces-v1beta - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-ces-v1beta - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-ces-v1 - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc proto-google-cloud-ces-v1 - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-ces/proto-google-cloud-ces-v1/pom.xml b/java-ces/proto-google-cloud-ces-v1/pom.xml index 84d5ec6e4593..1baeaf138b46 100644 --- a/java-ces/proto-google-cloud-ces-v1/pom.xml +++ b/java-ces/proto-google-cloud-ces-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-ces-v1 - 0.9.0 + 0.10.0-SNAPSHOT proto-google-cloud-ces-v1 Proto library for google-cloud-ces com.google.cloud google-cloud-ces-parent - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-ces/proto-google-cloud-ces-v1beta/pom.xml b/java-ces/proto-google-cloud-ces-v1beta/pom.xml index 2cc115dd8c76..0bdd5ba60b90 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/pom.xml +++ b/java-ces/proto-google-cloud-ces-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-ces-v1beta - 0.9.0 + 0.10.0-SNAPSHOT proto-google-cloud-ces-v1beta Proto library for google-cloud-ces com.google.cloud google-cloud-ces-parent - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-channel/google-cloud-channel-bom/pom.xml b/java-channel/google-cloud-channel-bom/pom.xml index bed4487368d6..5f2556dfb3c8 100644 --- a/java-channel/google-cloud-channel-bom/pom.xml +++ b/java-channel/google-cloud-channel-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-channel-bom - 3.97.0 + 3.98.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-channel - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-channel-v1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc proto-google-cloud-channel-v1 - 3.97.0 + 3.98.0-SNAPSHOT diff --git a/java-channel/google-cloud-channel/pom.xml b/java-channel/google-cloud-channel/pom.xml index 143efdee51e7..6b4a65829f77 100644 --- a/java-channel/google-cloud-channel/pom.xml +++ b/java-channel/google-cloud-channel/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-channel - 3.97.0 + 3.98.0-SNAPSHOT jar Google Channel Services With Channel Services, Google Cloud partners and resellers have a single unified resale platform, with a unified resale catalog, customer management, order management, billing management, policy and authorization management, and cost management. com.google.cloud google-cloud-channel-parent - 3.97.0 + 3.98.0-SNAPSHOT google-cloud-channel diff --git a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/Version.java b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/Version.java index 46cbb8fc132a..fa99a62bc18b 100644 --- a/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/Version.java +++ b/java-channel/google-cloud-channel/src/main/java/com/google/cloud/channel/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-channel:current} - static final String VERSION = "3.97.0"; + static final String VERSION = "3.98.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-channel/grpc-google-cloud-channel-v1/pom.xml b/java-channel/grpc-google-cloud-channel-v1/pom.xml index 3e2d3013dec4..f62f39f16813 100644 --- a/java-channel/grpc-google-cloud-channel-v1/pom.xml +++ b/java-channel/grpc-google-cloud-channel-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-channel-v1 - 3.97.0 + 3.98.0-SNAPSHOT grpc-google-cloud-channel-v1 GRPC library for google-cloud-channel com.google.cloud google-cloud-channel-parent - 3.97.0 + 3.98.0-SNAPSHOT diff --git a/java-channel/pom.xml b/java-channel/pom.xml index a56fc0d81c27..1fad7b521e0a 100644 --- a/java-channel/pom.xml +++ b/java-channel/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-channel-parent pom - 3.97.0 + 3.98.0-SNAPSHOT Google Channel Services Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-channel - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc proto-google-cloud-channel-v1 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-channel-v1 - 3.97.0 + 3.98.0-SNAPSHOT diff --git a/java-channel/proto-google-cloud-channel-v1/pom.xml b/java-channel/proto-google-cloud-channel-v1/pom.xml index 1efef873a816..b444bfc1fdff 100644 --- a/java-channel/proto-google-cloud-channel-v1/pom.xml +++ b/java-channel/proto-google-cloud-channel-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-channel-v1 - 3.97.0 + 3.98.0-SNAPSHOT proto-google-cloud-channel-v1 Proto library for google-cloud-channel com.google.cloud google-cloud-channel-parent - 3.97.0 + 3.98.0-SNAPSHOT diff --git a/java-chat/google-cloud-chat-bom/pom.xml b/java-chat/google-cloud-chat-bom/pom.xml index 0fbf90626f64..cb05c22e3828 100644 --- a/java-chat/google-cloud-chat-bom/pom.xml +++ b/java-chat/google-cloud-chat-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-chat-bom - 0.57.0 + 0.58.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-chat - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-chat-v1 - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc proto-google-cloud-chat-v1 - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-chat/google-cloud-chat/pom.xml b/java-chat/google-cloud-chat/pom.xml index 42a473406fd4..d2b2d620d970 100644 --- a/java-chat/google-cloud-chat/pom.xml +++ b/java-chat/google-cloud-chat/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-chat - 0.57.0 + 0.58.0-SNAPSHOT jar Google Google Chat API Google Chat API The Google Chat API lets you build Chat apps to integrate your services with Google Chat and manage Chat resources such as spaces, members, and messages. com.google.cloud google-cloud-chat-parent - 0.57.0 + 0.58.0-SNAPSHOT google-cloud-chat diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/Version.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/Version.java index 433f99fd5418..52aee6310156 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/Version.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-chat:current} - static final String VERSION = "0.57.0"; + static final String VERSION = "0.58.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-chat/grpc-google-cloud-chat-v1/pom.xml b/java-chat/grpc-google-cloud-chat-v1/pom.xml index 0591f122d082..bf9a6a5aad01 100644 --- a/java-chat/grpc-google-cloud-chat-v1/pom.xml +++ b/java-chat/grpc-google-cloud-chat-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-chat-v1 - 0.57.0 + 0.58.0-SNAPSHOT grpc-google-cloud-chat-v1 GRPC library for google-cloud-chat com.google.cloud google-cloud-chat-parent - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-chat/pom.xml b/java-chat/pom.xml index 0a13de9e5714..5eba41b71926 100644 --- a/java-chat/pom.xml +++ b/java-chat/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-chat-parent pom - 0.57.0 + 0.58.0-SNAPSHOT Google Google Chat API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-chat - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-chat-v1 - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc proto-google-cloud-chat-v1 - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-chat/proto-google-cloud-chat-v1/pom.xml b/java-chat/proto-google-cloud-chat-v1/pom.xml index da68a5dc7b95..23da92b777fd 100644 --- a/java-chat/proto-google-cloud-chat-v1/pom.xml +++ b/java-chat/proto-google-cloud-chat-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-chat-v1 - 0.57.0 + 0.58.0-SNAPSHOT proto-google-cloud-chat-v1 Proto library for google-cloud-chat com.google.cloud google-cloud-chat-parent - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-chronicle/google-cloud-chronicle-bom/pom.xml b/java-chronicle/google-cloud-chronicle-bom/pom.xml index 96ddcb656a77..becd584edfb2 100644 --- a/java-chronicle/google-cloud-chronicle-bom/pom.xml +++ b/java-chronicle/google-cloud-chronicle-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-chronicle-bom - 0.31.0 + 0.32.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-chronicle - 0.31.0 + 0.32.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-chronicle-v1 - 0.31.0 + 0.32.0-SNAPSHOT com.google.api.grpc proto-google-cloud-chronicle-v1 - 0.31.0 + 0.32.0-SNAPSHOT diff --git a/java-chronicle/google-cloud-chronicle/pom.xml b/java-chronicle/google-cloud-chronicle/pom.xml index 1b17567217ba..3142f01fdd7e 100644 --- a/java-chronicle/google-cloud-chronicle/pom.xml +++ b/java-chronicle/google-cloud-chronicle/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-chronicle - 0.31.0 + 0.32.0-SNAPSHOT jar Google Chronicle API Chronicle API The Google Cloud Security Operations API, popularly known as the Chronicle API, serves endpoints that enable security analysts to analyze and mitigate a security threat throughout its lifecycle com.google.cloud google-cloud-chronicle-parent - 0.31.0 + 0.32.0-SNAPSHOT google-cloud-chronicle diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/Version.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/Version.java index 85ac4398309a..0691ed4f13b0 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/Version.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-chronicle:current} - static final String VERSION = "0.31.0"; + static final String VERSION = "0.32.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-chronicle/grpc-google-cloud-chronicle-v1/pom.xml b/java-chronicle/grpc-google-cloud-chronicle-v1/pom.xml index 7a5b93bec17a..5c0b62d6a123 100644 --- a/java-chronicle/grpc-google-cloud-chronicle-v1/pom.xml +++ b/java-chronicle/grpc-google-cloud-chronicle-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-chronicle-v1 - 0.31.0 + 0.32.0-SNAPSHOT grpc-google-cloud-chronicle-v1 GRPC library for google-cloud-chronicle com.google.cloud google-cloud-chronicle-parent - 0.31.0 + 0.32.0-SNAPSHOT diff --git a/java-chronicle/pom.xml b/java-chronicle/pom.xml index 4c34dcdd48be..a5a28d037c5b 100644 --- a/java-chronicle/pom.xml +++ b/java-chronicle/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-chronicle-parent pom - 0.31.0 + 0.32.0-SNAPSHOT Google Chronicle API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-chronicle - 0.31.0 + 0.32.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-chronicle-v1 - 0.31.0 + 0.32.0-SNAPSHOT com.google.api.grpc proto-google-cloud-chronicle-v1 - 0.31.0 + 0.32.0-SNAPSHOT diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/pom.xml b/java-chronicle/proto-google-cloud-chronicle-v1/pom.xml index 416ea292be88..ce4a6582ee09 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/pom.xml +++ b/java-chronicle/proto-google-cloud-chronicle-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-chronicle-v1 - 0.31.0 + 0.32.0-SNAPSHOT proto-google-cloud-chronicle-v1 Proto library for google-cloud-chronicle com.google.cloud google-cloud-chronicle-parent - 0.31.0 + 0.32.0-SNAPSHOT diff --git a/java-cloudapiregistry/google-cloud-cloudapiregistry-bom/pom.xml b/java-cloudapiregistry/google-cloud-cloudapiregistry-bom/pom.xml index c144bf689b6f..7ff44ea3b4c1 100644 --- a/java-cloudapiregistry/google-cloud-cloudapiregistry-bom/pom.xml +++ b/java-cloudapiregistry/google-cloud-cloudapiregistry-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-cloudapiregistry-bom - 0.12.0 + 0.13.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-cloudapiregistry - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudapiregistry-v1beta - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudapiregistry-v1 - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudapiregistry-v1beta - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudapiregistry-v1 - 0.12.0 + 0.13.0-SNAPSHOT diff --git a/java-cloudapiregistry/google-cloud-cloudapiregistry/pom.xml b/java-cloudapiregistry/google-cloud-cloudapiregistry/pom.xml index 6bee300124b6..0458b9568516 100644 --- a/java-cloudapiregistry/google-cloud-cloudapiregistry/pom.xml +++ b/java-cloudapiregistry/google-cloud-cloudapiregistry/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-cloudapiregistry - 0.12.0 + 0.13.0-SNAPSHOT jar Google Cloud API Registry API Cloud API Registry API Cloud API Registry lets you discover, govern, use, and monitor Model Context Protocol (MCP) servers and tools provided by Google, or by your organization through Apigee API hub. com.google.cloud google-cloud-cloudapiregistry-parent - 0.12.0 + 0.13.0-SNAPSHOT google-cloud-cloudapiregistry diff --git a/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1/stub/Version.java b/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1/stub/Version.java index 407b01fb99b5..c3e0da29518d 100644 --- a/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1/stub/Version.java +++ b/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-cloudapiregistry:current} - static final String VERSION = "0.12.0"; + static final String VERSION = "0.13.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1beta/stub/Version.java b/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1beta/stub/Version.java index 5c5cab5d96d6..9db977f02417 100644 --- a/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1beta/stub/Version.java +++ b/java-cloudapiregistry/google-cloud-cloudapiregistry/src/main/java/com/google/cloud/apiregistry/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-cloudapiregistry:current} - static final String VERSION = "0.12.0"; + static final String VERSION = "0.13.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-cloudapiregistry/grpc-google-cloud-cloudapiregistry-v1/pom.xml b/java-cloudapiregistry/grpc-google-cloud-cloudapiregistry-v1/pom.xml index 7b3e31ab22f6..83f7d258821c 100644 --- a/java-cloudapiregistry/grpc-google-cloud-cloudapiregistry-v1/pom.xml +++ b/java-cloudapiregistry/grpc-google-cloud-cloudapiregistry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudapiregistry-v1 - 0.12.0 + 0.13.0-SNAPSHOT grpc-google-cloud-cloudapiregistry-v1 GRPC library for google-cloud-cloudapiregistry com.google.cloud google-cloud-cloudapiregistry-parent - 0.12.0 + 0.13.0-SNAPSHOT diff --git a/java-cloudapiregistry/grpc-google-cloud-cloudapiregistry-v1beta/pom.xml b/java-cloudapiregistry/grpc-google-cloud-cloudapiregistry-v1beta/pom.xml index 70bae0389119..86c4cc9dd315 100644 --- a/java-cloudapiregistry/grpc-google-cloud-cloudapiregistry-v1beta/pom.xml +++ b/java-cloudapiregistry/grpc-google-cloud-cloudapiregistry-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudapiregistry-v1beta - 0.12.0 + 0.13.0-SNAPSHOT grpc-google-cloud-cloudapiregistry-v1beta GRPC library for google-cloud-cloudapiregistry com.google.cloud google-cloud-cloudapiregistry-parent - 0.12.0 + 0.13.0-SNAPSHOT diff --git a/java-cloudapiregistry/pom.xml b/java-cloudapiregistry/pom.xml index 97ff8cfa5f5f..fce8814865e9 100644 --- a/java-cloudapiregistry/pom.xml +++ b/java-cloudapiregistry/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudapiregistry-parent pom - 0.12.0 + 0.13.0-SNAPSHOT Google Cloud API Registry API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-cloudapiregistry - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudapiregistry-v1 - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudapiregistry-v1 - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudapiregistry-v1beta - 0.12.0 + 0.13.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudapiregistry-v1beta - 0.12.0 + 0.13.0-SNAPSHOT diff --git a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/pom.xml b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/pom.xml index 7e77305131bd..fa934dfe15ab 100644 --- a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/pom.xml +++ b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudapiregistry-v1 - 0.12.0 + 0.13.0-SNAPSHOT proto-google-cloud-cloudapiregistry-v1 Proto library for google-cloud-cloudapiregistry com.google.cloud google-cloud-cloudapiregistry-parent - 0.12.0 + 0.13.0-SNAPSHOT diff --git a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/pom.xml b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/pom.xml index 578eafe6eb29..165ab74cc738 100644 --- a/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/pom.xml +++ b/java-cloudapiregistry/proto-google-cloud-cloudapiregistry-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudapiregistry-v1beta - 0.12.0 + 0.13.0-SNAPSHOT proto-google-cloud-cloudapiregistry-v1beta Proto library for google-cloud-cloudapiregistry com.google.cloud google-cloud-cloudapiregistry-parent - 0.12.0 + 0.13.0-SNAPSHOT diff --git a/java-cloudbuild/google-cloud-build-bom/pom.xml b/java-cloudbuild/google-cloud-build-bom/pom.xml index a672de9f6e05..083fea783e68 100644 --- a/java-cloudbuild/google-cloud-build-bom/pom.xml +++ b/java-cloudbuild/google-cloud-build-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-build-bom - 3.95.0 + 3.96.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,27 +24,27 @@ com.google.cloud google-cloud-build - 3.95.0 + 3.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-build-v1 - 3.95.0 + 3.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-build-v2 - 3.95.0 + 3.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-build-v1 - 3.95.0 + 3.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-build-v2 - 3.95.0 + 3.96.0-SNAPSHOT diff --git a/java-cloudbuild/google-cloud-build/pom.xml b/java-cloudbuild/google-cloud-build/pom.xml index c8ad043c0a4f..79d0bb8b76d3 100644 --- a/java-cloudbuild/google-cloud-build/pom.xml +++ b/java-cloudbuild/google-cloud-build/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-build - 3.95.0 + 3.96.0-SNAPSHOT jar Google Cloud Build @@ -12,7 +12,7 @@ com.google.cloud google-cloud-build-parent - 3.95.0 + 3.96.0-SNAPSHOT google-cloud-build diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/Version.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/Version.java index 7e865080f1bc..069e4dc60cfa 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/Version.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-build:current} - static final String VERSION = "3.95.0"; + static final String VERSION = "3.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/stub/Version.java b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/stub/Version.java index a9938a3c722b..f5d29c131169 100644 --- a/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/stub/Version.java +++ b/java-cloudbuild/google-cloud-build/src/main/java/com/google/cloud/devtools/cloudbuild/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-build:current} - static final String VERSION = "3.95.0"; + static final String VERSION = "3.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml b/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml index 80e629f631ae..e0aab804ac6a 100644 --- a/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml +++ b/java-cloudbuild/grpc-google-cloud-build-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-build-v1 - 3.95.0 + 3.96.0-SNAPSHOT grpc-google-cloud-build-v1 GRPC library for grpc-google-cloud-build-v1 com.google.cloud google-cloud-build-parent - 3.95.0 + 3.96.0-SNAPSHOT diff --git a/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml b/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml index e9419af0ee20..9744d48a1eae 100644 --- a/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml +++ b/java-cloudbuild/grpc-google-cloud-build-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-build-v2 - 3.95.0 + 3.96.0-SNAPSHOT grpc-google-cloud-build-v2 GRPC library for google-cloud-build com.google.cloud google-cloud-build-parent - 3.95.0 + 3.96.0-SNAPSHOT diff --git a/java-cloudbuild/pom.xml b/java-cloudbuild/pom.xml index 2c325b3a0ce8..812e7118973a 100644 --- a/java-cloudbuild/pom.xml +++ b/java-cloudbuild/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-build-parent pom - 3.95.0 + 3.96.0-SNAPSHOT Google Cloud Build Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.api.grpc proto-google-cloud-build-v1 - 3.95.0 + 3.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-build-v2 - 3.95.0 + 3.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-build-v2 - 3.95.0 + 3.96.0-SNAPSHOT com.google.cloud google-cloud-build - 3.95.0 + 3.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-build-v1 - 3.95.0 + 3.96.0-SNAPSHOT diff --git a/java-cloudbuild/proto-google-cloud-build-v1/pom.xml b/java-cloudbuild/proto-google-cloud-build-v1/pom.xml index 275c7d1584f0..12abde43661f 100644 --- a/java-cloudbuild/proto-google-cloud-build-v1/pom.xml +++ b/java-cloudbuild/proto-google-cloud-build-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-build-v1 - 3.95.0 + 3.96.0-SNAPSHOT proto-google-cloud-build-v1 PROTO library for proto-google-cloud-build-v1 com.google.cloud google-cloud-build-parent - 3.95.0 + 3.96.0-SNAPSHOT diff --git a/java-cloudbuild/proto-google-cloud-build-v2/pom.xml b/java-cloudbuild/proto-google-cloud-build-v2/pom.xml index 93371455a97d..519a55aba822 100644 --- a/java-cloudbuild/proto-google-cloud-build-v2/pom.xml +++ b/java-cloudbuild/proto-google-cloud-build-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-build-v2 - 3.95.0 + 3.96.0-SNAPSHOT proto-google-cloud-build-v2 Proto library for google-cloud-build com.google.cloud google-cloud-build-parent - 3.95.0 + 3.96.0-SNAPSHOT diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml index d54753744588..5b70ca24d59e 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudcommerceconsumerprocurement-bom - 0.91.0 + 0.92.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml index 626245f65cab..4836067a0c56 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.91.0 + 0.92.0-SNAPSHOT jar Google Cloud Commerce Consumer Procurement Cloud Commerce Consumer Procurement Find top solutions integrated with Google Cloud to accelerate your digital transformation. Scale and simplify procurement for your organization with online discovery, flexible purchasing, and fulfillment of enterprise-grade cloud solutions. com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.91.0 + 0.92.0-SNAPSHOT google-cloud-cloudcommerceconsumerprocurement diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/Version.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/Version.java index 4ff108ab9647..c93ef227aea8 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/Version.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-cloudcommerceconsumerprocurement:current} - static final String VERSION = "0.91.0"; + static final String VERSION = "0.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/Version.java b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/Version.java index 6dcaba2e1c5c..b0520b288531 100644 --- a/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/Version.java +++ b/java-cloudcommerceconsumerprocurement/google-cloud-cloudcommerceconsumerprocurement/src/main/java/com/google/cloud/commerce/consumer/procurement/v1alpha1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-cloudcommerceconsumerprocurement:current} - static final String VERSION = "0.91.0"; + static final String VERSION = "0.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml index b78a9d102a6b..a460cf237ac1 100644 --- a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.91.0 + 0.92.0-SNAPSHOT grpc-google-cloud-cloudcommerceconsumerprocurement-v1 GRPC library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml index 03c93a17c50f..306b925f9bf7 100644 --- a/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.91.0 + 0.92.0-SNAPSHOT grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 GRPC library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-cloudcommerceconsumerprocurement/pom.xml b/java-cloudcommerceconsumerprocurement/pom.xml index 6afc30a7df00..9c3e9ec7ad45 100644 --- a/java-cloudcommerceconsumerprocurement/pom.xml +++ b/java-cloudcommerceconsumerprocurement/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent pom - 0.91.0 + 0.92.0-SNAPSHOT Google Cloud Commerce Consumer Procurement Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.91.0 + 0.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml index 1d6c8dac93b8..83c2a69bea58 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1 - 0.91.0 + 0.92.0-SNAPSHOT proto-google-cloud-cloudcommerceconsumerprocurement-v1 Proto library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml index 28123951fcfe..08fa3bc6a2d9 100644 --- a/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml +++ b/java-cloudcommerceconsumerprocurement/proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 - 0.91.0 + 0.92.0-SNAPSHOT proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1 Proto library for google-cloud-cloudcommerceconsumerprocurement com.google.cloud google-cloud-cloudcommerceconsumerprocurement-parent - 0.91.0 + 0.92.0-SNAPSHOT diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml index 64bdb76630bd..af123d32b915 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudcontrolspartner-bom - 0.57.0 + 0.58.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-cloudcontrolspartner - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1 - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1beta - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1beta - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1 - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml index 00f094b24ca1..6c8c952d44fc 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-cloudcontrolspartner - 0.57.0 + 0.58.0-SNAPSHOT jar Google Cloud Controls Partner API Cloud Controls Partner API Provides insights about your customers and their Assured Workloads based on your Sovereign Controls by Partners offering. com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.57.0 + 0.58.0-SNAPSHOT google-cloud-cloudcontrolspartner diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/Version.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/Version.java index 76598c9530b2..2fd0b61f561e 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/Version.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-cloudcontrolspartner:current} - static final String VERSION = "0.57.0"; + static final String VERSION = "0.58.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/Version.java b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/Version.java index 374c039cb7ba..71f2c1c30798 100644 --- a/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/Version.java +++ b/java-cloudcontrolspartner/google-cloud-cloudcontrolspartner/src/main/java/com/google/cloud/cloudcontrolspartner/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-cloudcontrolspartner:current} - static final String VERSION = "0.57.0"; + static final String VERSION = "0.58.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml index c915e09d9b36..50b195ca52f4 100644 --- a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml +++ b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1 - 0.57.0 + 0.58.0-SNAPSHOT grpc-google-cloud-cloudcontrolspartner-v1 GRPC library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml index b8e7bb9f96c5..5a8d7f28f28d 100644 --- a/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml +++ b/java-cloudcontrolspartner/grpc-google-cloud-cloudcontrolspartner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1beta - 0.57.0 + 0.58.0-SNAPSHOT grpc-google-cloud-cloudcontrolspartner-v1beta GRPC library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-cloudcontrolspartner/pom.xml b/java-cloudcontrolspartner/pom.xml index fcb6351c546b..9fa836977789 100644 --- a/java-cloudcontrolspartner/pom.xml +++ b/java-cloudcontrolspartner/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudcontrolspartner-parent pom - 0.57.0 + 0.58.0-SNAPSHOT Google Cloud Controls Partner API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-cloudcontrolspartner - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1 - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudcontrolspartner-v1beta - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1beta - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1 - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml index b7e835f66973..51a82bc31605 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1 - 0.57.0 + 0.58.0-SNAPSHOT proto-google-cloud-cloudcontrolspartner-v1 Proto library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml index 155d93b159fc..2ed49fea87a3 100644 --- a/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml +++ b/java-cloudcontrolspartner/proto-google-cloud-cloudcontrolspartner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudcontrolspartner-v1beta - 0.57.0 + 0.58.0-SNAPSHOT proto-google-cloud-cloudcontrolspartner-v1beta Proto library for google-cloud-cloudcontrolspartner com.google.cloud google-cloud-cloudcontrolspartner-parent - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml b/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml index 3bf196da43a0..0811ea46ee3c 100644 --- a/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml +++ b/java-cloudquotas/google-cloud-cloudquotas-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudquotas-bom - 0.61.0 + 0.62.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-cloudquotas - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudquotas-v1 - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudquotas-v1beta - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudquotas-v1 - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudquotas-v1beta - 0.61.0 + 0.62.0-SNAPSHOT diff --git a/java-cloudquotas/google-cloud-cloudquotas/pom.xml b/java-cloudquotas/google-cloud-cloudquotas/pom.xml index 897ec1048ac8..8772699d0906 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/pom.xml +++ b/java-cloudquotas/google-cloud-cloudquotas/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-cloudquotas - 0.61.0 + 0.62.0-SNAPSHOT jar Google Cloud Quotas API Cloud Quotas API Cloud Quotas API provides GCP service consumers with management and @@ -12,7 +12,7 @@ com.google.cloud google-cloud-cloudquotas-parent - 0.61.0 + 0.62.0-SNAPSHOT google-cloud-cloudquotas diff --git a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/stub/Version.java b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/stub/Version.java index 3e367b2d6b78..67258450c69c 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/stub/Version.java +++ b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-cloudquotas:current} - static final String VERSION = "0.61.0"; + static final String VERSION = "0.62.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/stub/Version.java b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/stub/Version.java index db72ac51142d..28f826d1d92c 100644 --- a/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/stub/Version.java +++ b/java-cloudquotas/google-cloud-cloudquotas/src/main/java/com/google/api/cloudquotas/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-cloudquotas:current} - static final String VERSION = "0.61.0"; + static final String VERSION = "0.62.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml index 2cb368828b0c..cde18f9e538a 100644 --- a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml +++ b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1 - 0.61.0 + 0.62.0-SNAPSHOT grpc-google-cloud-cloudquotas-v1 GRPC library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.61.0 + 0.62.0-SNAPSHOT diff --git a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/pom.xml b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/pom.xml index 73fed4d6f986..b58d95b090d2 100644 --- a/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/pom.xml +++ b/java-cloudquotas/grpc-google-cloud-cloudquotas-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudquotas-v1beta - 0.61.0 + 0.62.0-SNAPSHOT grpc-google-cloud-cloudquotas-v1beta GRPC library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.61.0 + 0.62.0-SNAPSHOT diff --git a/java-cloudquotas/pom.xml b/java-cloudquotas/pom.xml index 66c926a5973e..e399fd6016f1 100644 --- a/java-cloudquotas/pom.xml +++ b/java-cloudquotas/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudquotas-parent pom - 0.61.0 + 0.62.0-SNAPSHOT Google Cloud Quotas API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-cloudquotas - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudquotas-v1beta - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudquotas-v1beta - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudquotas-v1 - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudquotas-v1 - 0.61.0 + 0.62.0-SNAPSHOT diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml index 6c7f295700ed..ef1596cc7ab1 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1 - 0.61.0 + 0.62.0-SNAPSHOT proto-google-cloud-cloudquotas-v1 Proto library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.61.0 + 0.62.0-SNAPSHOT diff --git a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/pom.xml b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/pom.xml index 7aab27edf375..e1d148549135 100644 --- a/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/pom.xml +++ b/java-cloudquotas/proto-google-cloud-cloudquotas-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudquotas-v1beta - 0.61.0 + 0.62.0-SNAPSHOT proto-google-cloud-cloudquotas-v1beta Proto library for google-cloud-cloudquotas com.google.cloud google-cloud-cloudquotas-parent - 0.61.0 + 0.62.0-SNAPSHOT diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance-bom/pom.xml b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance-bom/pom.xml index 90afd002fc63..b893ab3f5663 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance-bom/pom.xml +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-cloudsecuritycompliance-bom - 0.20.0 + 0.21.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-cloudsecuritycompliance - 0.20.0 + 0.21.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudsecuritycompliance-v1 - 0.20.0 + 0.21.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudsecuritycompliance-v1 - 0.20.0 + 0.21.0-SNAPSHOT diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/pom.xml b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/pom.xml index 73e9f2be83ba..b8e06d9bdca7 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/pom.xml +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-cloudsecuritycompliance - 0.20.0 + 0.21.0-SNAPSHOT jar Google Cloud Security Compliance API Cloud Security Compliance API Compliance Manager uses software-defined controls that let you assess support for multiple compliance programs and security requirements within a Google Cloud organization com.google.cloud google-cloud-cloudsecuritycompliance-parent - 0.20.0 + 0.21.0-SNAPSHOT google-cloud-cloudsecuritycompliance diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/Version.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/Version.java index 2f9efc8bb376..9f7da2a29032 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/Version.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-cloudsecuritycompliance:current} - static final String VERSION = "0.20.0"; + static final String VERSION = "0.21.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/pom.xml b/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/pom.xml index ca0657a9882a..5df42632889d 100644 --- a/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/pom.xml +++ b/java-cloudsecuritycompliance/grpc-google-cloud-cloudsecuritycompliance-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudsecuritycompliance-v1 - 0.20.0 + 0.21.0-SNAPSHOT grpc-google-cloud-cloudsecuritycompliance-v1 GRPC library for google-cloud-cloudsecuritycompliance com.google.cloud google-cloud-cloudsecuritycompliance-parent - 0.20.0 + 0.21.0-SNAPSHOT diff --git a/java-cloudsecuritycompliance/pom.xml b/java-cloudsecuritycompliance/pom.xml index 81618dc99473..a11b160c672f 100644 --- a/java-cloudsecuritycompliance/pom.xml +++ b/java-cloudsecuritycompliance/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudsecuritycompliance-parent pom - 0.20.0 + 0.21.0-SNAPSHOT Google Cloud Security Compliance API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-cloudsecuritycompliance - 0.20.0 + 0.21.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudsecuritycompliance-v1 - 0.20.0 + 0.21.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudsecuritycompliance-v1 - 0.20.0 + 0.21.0-SNAPSHOT diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/pom.xml b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/pom.xml index a54607e63255..7e24a54b6736 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/pom.xml +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudsecuritycompliance-v1 - 0.20.0 + 0.21.0-SNAPSHOT proto-google-cloud-cloudsecuritycompliance-v1 Proto library for google-cloud-cloudsecuritycompliance com.google.cloud google-cloud-cloudsecuritycompliance-parent - 0.20.0 + 0.21.0-SNAPSHOT diff --git a/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml b/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml index ceb7179d5284..eb96a67b4699 100644 --- a/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml +++ b/java-cloudsupport/google-cloud-cloudsupport-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-cloudsupport-bom - 0.77.0 + 0.78.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-cloudsupport - 0.77.0 + 0.78.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudsupport-v2 - 0.77.0 + 0.78.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudsupport-v2beta - 0.77.0 + 0.78.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudsupport-v2 - 0.77.0 + 0.78.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudsupport-v2beta - 0.77.0 + 0.78.0-SNAPSHOT diff --git a/java-cloudsupport/google-cloud-cloudsupport/pom.xml b/java-cloudsupport/google-cloud-cloudsupport/pom.xml index 53314c0151e3..87625b8746d2 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/pom.xml +++ b/java-cloudsupport/google-cloud-cloudsupport/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-cloudsupport - 0.77.0 + 0.78.0-SNAPSHOT jar Google Google Cloud Support API Google Cloud Support API Manages Google Cloud technical support cases for Customer Care support offerings. com.google.cloud google-cloud-cloudsupport-parent - 0.77.0 + 0.78.0-SNAPSHOT google-cloud-cloudsupport diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/Version.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/Version.java index 4a0d0b70d5a6..eb4ef9f474b1 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/Version.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-cloudsupport:current} - static final String VERSION = "0.77.0"; + static final String VERSION = "0.78.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/Version.java b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/Version.java index 31a5f0bd52cb..ef53ba52b269 100644 --- a/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/Version.java +++ b/java-cloudsupport/google-cloud-cloudsupport/src/main/java/com/google/cloud/support/v2beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-cloudsupport:current} - static final String VERSION = "0.77.0"; + static final String VERSION = "0.78.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml index ad3023dfdc83..a07fe62136c6 100644 --- a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml +++ b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2 - 0.77.0 + 0.78.0-SNAPSHOT grpc-google-cloud-cloudsupport-v2 GRPC library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.77.0 + 0.78.0-SNAPSHOT diff --git a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/pom.xml b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/pom.xml index f6195fb3fb91..edcfc4ca030b 100644 --- a/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/pom.xml +++ b/java-cloudsupport/grpc-google-cloud-cloudsupport-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-cloudsupport-v2beta - 0.77.0 + 0.78.0-SNAPSHOT grpc-google-cloud-cloudsupport-v2beta GRPC library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.77.0 + 0.78.0-SNAPSHOT diff --git a/java-cloudsupport/pom.xml b/java-cloudsupport/pom.xml index 1301339d54db..0ae2a61e5096 100644 --- a/java-cloudsupport/pom.xml +++ b/java-cloudsupport/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-cloudsupport-parent pom - 0.77.0 + 0.78.0-SNAPSHOT Google Google Cloud Support API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-cloudsupport - 0.77.0 + 0.78.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudsupport-v2beta - 0.77.0 + 0.78.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudsupport-v2beta - 0.77.0 + 0.78.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-cloudsupport-v2 - 0.77.0 + 0.78.0-SNAPSHOT com.google.api.grpc proto-google-cloud-cloudsupport-v2 - 0.77.0 + 0.78.0-SNAPSHOT diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml index 267dafcf72f9..40fa993c5ff8 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2 - 0.77.0 + 0.78.0-SNAPSHOT proto-google-cloud-cloudsupport-v2 Proto library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.77.0 + 0.78.0-SNAPSHOT diff --git a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/pom.xml b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/pom.xml index 5f0608212c6e..7a007b59f0ce 100644 --- a/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/pom.xml +++ b/java-cloudsupport/proto-google-cloud-cloudsupport-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-cloudsupport-v2beta - 0.77.0 + 0.78.0-SNAPSHOT proto-google-cloud-cloudsupport-v2beta Proto library for google-cloud-cloudsupport com.google.cloud google-cloud-cloudsupport-parent - 0.77.0 + 0.78.0-SNAPSHOT diff --git a/java-common-protos/grpc-google-common-protos/pom.xml b/java-common-protos/grpc-google-common-protos/pom.xml index d6b2e5603492..dc8ee58d8ab1 100644 --- a/java-common-protos/grpc-google-common-protos/pom.xml +++ b/java-common-protos/grpc-google-common-protos/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-common-protos - 2.72.0 + 2.73.0-SNAPSHOT grpc-google-common-protos GRPC library for grpc-google-common-protos com.google.api.grpc google-common-protos-parent - 2.72.0 + 2.73.0-SNAPSHOT diff --git a/java-common-protos/pom.xml b/java-common-protos/pom.xml index 7f36f243f66f..28cc997f8ba4 100644 --- a/java-common-protos/pom.xml +++ b/java-common-protos/pom.xml @@ -4,7 +4,7 @@ com.google.api.grpc google-common-protos-parent pom - 2.72.0 + 2.73.0-SNAPSHOT Google Common Protos Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.api gapic-generator-java-pom-parent - 2.73.0 + 2.74.0-SNAPSHOT ../sdk-platform-java/gapic-generator-java-pom-parent @@ -50,7 +50,7 @@ com.google.cloud third-party-dependencies - 3.63.0 + 3.64.0-SNAPSHOT pom import @@ -64,7 +64,7 @@ com.google.api.grpc grpc-google-common-protos - 2.72.0 + 2.73.0-SNAPSHOT io.grpc @@ -76,7 +76,7 @@ com.google.api.grpc proto-google-common-protos - 2.72.0 + 2.73.0-SNAPSHOT com.google.guava diff --git a/java-common-protos/proto-google-common-protos/pom.xml b/java-common-protos/proto-google-common-protos/pom.xml index 4248fec5da84..e2314926111b 100644 --- a/java-common-protos/proto-google-common-protos/pom.xml +++ b/java-common-protos/proto-google-common-protos/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-common-protos - 2.72.0 + 2.73.0-SNAPSHOT proto-google-common-protos PROTO library for proto-google-common-protos com.google.api.grpc google-common-protos-parent - 2.72.0 + 2.73.0-SNAPSHOT diff --git a/java-compute/google-cloud-compute-bom/pom.xml b/java-compute/google-cloud-compute-bom/pom.xml index 3b05ba14cadb..7aa226062fc9 100644 --- a/java-compute/google-cloud-compute-bom/pom.xml +++ b/java-compute/google-cloud-compute-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-compute-bom - 1.103.0 + 1.104.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,12 +24,12 @@ com.google.cloud google-cloud-compute - 1.103.0 + 1.104.0-SNAPSHOT com.google.api.grpc proto-google-cloud-compute-v1 - 1.103.0 + 1.104.0-SNAPSHOT diff --git a/java-compute/google-cloud-compute/pom.xml b/java-compute/google-cloud-compute/pom.xml index 6e1d0980137d..d0165ca4e130 100644 --- a/java-compute/google-cloud-compute/pom.xml +++ b/java-compute/google-cloud-compute/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-compute - 1.103.0 + 1.104.0-SNAPSHOT jar Google Compute Engine Compute Engine delivers configurable virtual machines running in @@ -12,7 +12,7 @@ com.google.cloud google-cloud-compute-parent - 1.103.0 + 1.104.0-SNAPSHOT google-cloud-compute @@ -97,7 +97,7 @@ com.google.cloud google-cloud-monitoring - 3.94.0 + 3.95.0-SNAPSHOT test @@ -129,7 +129,7 @@ com.google.cloud google-cloud-trace - 2.93.0 + 2.94.0-SNAPSHOT test diff --git a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/Version.java b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/Version.java index fc55af5c0f03..d33025e0232d 100644 --- a/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/Version.java +++ b/java-compute/google-cloud-compute/src/main/java/com/google/cloud/compute/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-compute:current} - static final String VERSION = "1.103.0"; + static final String VERSION = "1.104.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-compute/pom.xml b/java-compute/pom.xml index a3e3d75a9eb0..4875e3dc12eb 100644 --- a/java-compute/pom.xml +++ b/java-compute/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-compute-parent pom - 1.103.0 + 1.104.0-SNAPSHOT Google Compute Engine Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,12 +30,12 @@ com.google.cloud google-cloud-compute - 1.103.0 + 1.104.0-SNAPSHOT com.google.api.grpc proto-google-cloud-compute-v1 - 1.103.0 + 1.104.0-SNAPSHOT diff --git a/java-compute/proto-google-cloud-compute-v1/pom.xml b/java-compute/proto-google-cloud-compute-v1/pom.xml index 50671db4c4f2..26ea662e658d 100644 --- a/java-compute/proto-google-cloud-compute-v1/pom.xml +++ b/java-compute/proto-google-cloud-compute-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-compute-v1 - 1.103.0 + 1.104.0-SNAPSHOT proto-google-cloud-compute-v1 Proto library for google-cloud-compute com.google.cloud google-cloud-compute-parent - 1.103.0 + 1.104.0-SNAPSHOT diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml b/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml index c090fd6a1301..04c5ee1ab8de 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-confidentialcomputing-bom - 0.79.0 + 0.80.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-confidentialcomputing - 0.79.0 + 0.80.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1 - 0.79.0 + 0.80.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1alpha1 - 0.79.0 + 0.80.0-SNAPSHOT com.google.api.grpc proto-google-cloud-confidentialcomputing-v1 - 0.79.0 + 0.80.0-SNAPSHOT com.google.api.grpc proto-google-cloud-confidentialcomputing-v1alpha1 - 0.79.0 + 0.80.0-SNAPSHOT diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml b/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml index e03ee4e49f53..0a70f12d4402 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-confidentialcomputing - 0.79.0 + 0.80.0-SNAPSHOT jar Google Confidential Computing API Confidential Computing API Protect data in-use with Confidential VMs, Confidential GKE, Confidential Dataproc, and Confidential Space. com.google.cloud google-cloud-confidentialcomputing-parent - 0.79.0 + 0.80.0-SNAPSHOT google-cloud-confidentialcomputing diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/Version.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/Version.java index 26c710647162..9ec3db5878ea 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/Version.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-confidentialcomputing:current} - static final String VERSION = "0.79.0"; + static final String VERSION = "0.80.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/Version.java b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/Version.java index 7ec3ad718de7..50784cbdffa7 100644 --- a/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/Version.java +++ b/java-confidentialcomputing/google-cloud-confidentialcomputing/src/main/java/com/google/cloud/confidentialcomputing/v1alpha1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-confidentialcomputing:current} - static final String VERSION = "0.79.0"; + static final String VERSION = "0.80.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml index 44eaba1851e3..93ec8aafcdc3 100644 --- a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml +++ b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1 - 0.79.0 + 0.80.0-SNAPSHOT grpc-google-cloud-confidentialcomputing-v1 GRPC library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.79.0 + 0.80.0-SNAPSHOT diff --git a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml index e48698dbec8c..35385153e32e 100644 --- a/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml +++ b/java-confidentialcomputing/grpc-google-cloud-confidentialcomputing-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1alpha1 - 0.79.0 + 0.80.0-SNAPSHOT grpc-google-cloud-confidentialcomputing-v1alpha1 GRPC library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.79.0 + 0.80.0-SNAPSHOT diff --git a/java-confidentialcomputing/pom.xml b/java-confidentialcomputing/pom.xml index 83bb05a1ee35..c672c9086c1a 100644 --- a/java-confidentialcomputing/pom.xml +++ b/java-confidentialcomputing/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-confidentialcomputing-parent pom - 0.79.0 + 0.80.0-SNAPSHOT Google Confidential Computing API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-confidentialcomputing - 0.79.0 + 0.80.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1 - 0.79.0 + 0.80.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-confidentialcomputing-v1alpha1 - 0.79.0 + 0.80.0-SNAPSHOT com.google.api.grpc proto-google-cloud-confidentialcomputing-v1 - 0.79.0 + 0.80.0-SNAPSHOT com.google.api.grpc proto-google-cloud-confidentialcomputing-v1alpha1 - 0.79.0 + 0.80.0-SNAPSHOT diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml index d9591ce2ed8e..9f20a664b6eb 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1 - 0.79.0 + 0.80.0-SNAPSHOT proto-google-cloud-confidentialcomputing-v1 Proto library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.79.0 + 0.80.0-SNAPSHOT diff --git a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml index 41dfce00d18f..1af4802234b1 100644 --- a/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml +++ b/java-confidentialcomputing/proto-google-cloud-confidentialcomputing-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-confidentialcomputing-v1alpha1 - 0.79.0 + 0.80.0-SNAPSHOT proto-google-cloud-confidentialcomputing-v1alpha1 Proto library for google-cloud-confidentialcomputing com.google.cloud google-cloud-confidentialcomputing-parent - 0.79.0 + 0.80.0-SNAPSHOT diff --git a/java-configdelivery/google-cloud-configdelivery-bom/pom.xml b/java-configdelivery/google-cloud-configdelivery-bom/pom.xml index e63ad2352367..59be62ea94d0 100644 --- a/java-configdelivery/google-cloud-configdelivery-bom/pom.xml +++ b/java-configdelivery/google-cloud-configdelivery-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-configdelivery-bom - 0.27.0 + 0.28.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-configdelivery - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-configdelivery-v1beta - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-configdelivery-v1 - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc proto-google-cloud-configdelivery-v1beta - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc proto-google-cloud-configdelivery-v1 - 0.27.0 + 0.28.0-SNAPSHOT diff --git a/java-configdelivery/google-cloud-configdelivery/pom.xml b/java-configdelivery/google-cloud-configdelivery/pom.xml index aecb4e631409..664d377d512c 100644 --- a/java-configdelivery/google-cloud-configdelivery/pom.xml +++ b/java-configdelivery/google-cloud-configdelivery/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-configdelivery - 0.27.0 + 0.28.0-SNAPSHOT jar Google Config Delivery API Config Delivery API ConfigDelivery service manages the deployment of kubernetes configuration to a fleet of kubernetes clusters. com.google.cloud google-cloud-configdelivery-parent - 0.27.0 + 0.28.0-SNAPSHOT google-cloud-configdelivery diff --git a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/stub/Version.java b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/stub/Version.java index 7a2e2d29d774..45537a7f3a37 100644 --- a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/stub/Version.java +++ b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-configdelivery:current} - static final String VERSION = "0.27.0"; + static final String VERSION = "0.28.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/stub/Version.java b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/stub/Version.java index 4a28d9040da2..7b0e222b4982 100644 --- a/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/stub/Version.java +++ b/java-configdelivery/google-cloud-configdelivery/src/main/java/com/google/cloud/configdelivery/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-configdelivery:current} - static final String VERSION = "0.27.0"; + static final String VERSION = "0.28.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-configdelivery/grpc-google-cloud-configdelivery-v1/pom.xml b/java-configdelivery/grpc-google-cloud-configdelivery-v1/pom.xml index 72db0c47f461..de6e98573555 100644 --- a/java-configdelivery/grpc-google-cloud-configdelivery-v1/pom.xml +++ b/java-configdelivery/grpc-google-cloud-configdelivery-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-configdelivery-v1 - 0.27.0 + 0.28.0-SNAPSHOT grpc-google-cloud-configdelivery-v1 GRPC library for google-cloud-configdelivery com.google.cloud google-cloud-configdelivery-parent - 0.27.0 + 0.28.0-SNAPSHOT diff --git a/java-configdelivery/grpc-google-cloud-configdelivery-v1beta/pom.xml b/java-configdelivery/grpc-google-cloud-configdelivery-v1beta/pom.xml index 3bb7729931d4..0810e6e6bbd4 100644 --- a/java-configdelivery/grpc-google-cloud-configdelivery-v1beta/pom.xml +++ b/java-configdelivery/grpc-google-cloud-configdelivery-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-configdelivery-v1beta - 0.27.0 + 0.28.0-SNAPSHOT grpc-google-cloud-configdelivery-v1beta GRPC library for google-cloud-configdelivery com.google.cloud google-cloud-configdelivery-parent - 0.27.0 + 0.28.0-SNAPSHOT diff --git a/java-configdelivery/pom.xml b/java-configdelivery/pom.xml index 0f9eb4c20174..0550c776c6d3 100644 --- a/java-configdelivery/pom.xml +++ b/java-configdelivery/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-configdelivery-parent pom - 0.27.0 + 0.28.0-SNAPSHOT Google Config Delivery API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-configdelivery - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc proto-google-cloud-configdelivery-v1 - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-configdelivery-v1 - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-configdelivery-v1beta - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc proto-google-cloud-configdelivery-v1beta - 0.27.0 + 0.28.0-SNAPSHOT diff --git a/java-configdelivery/proto-google-cloud-configdelivery-v1/pom.xml b/java-configdelivery/proto-google-cloud-configdelivery-v1/pom.xml index 94eba356520b..608b7113f0e3 100644 --- a/java-configdelivery/proto-google-cloud-configdelivery-v1/pom.xml +++ b/java-configdelivery/proto-google-cloud-configdelivery-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-configdelivery-v1 - 0.27.0 + 0.28.0-SNAPSHOT proto-google-cloud-configdelivery-v1 Proto library for google-cloud-configdelivery com.google.cloud google-cloud-configdelivery-parent - 0.27.0 + 0.28.0-SNAPSHOT diff --git a/java-configdelivery/proto-google-cloud-configdelivery-v1beta/pom.xml b/java-configdelivery/proto-google-cloud-configdelivery-v1beta/pom.xml index c1912b2c73de..e4297e1d2678 100644 --- a/java-configdelivery/proto-google-cloud-configdelivery-v1beta/pom.xml +++ b/java-configdelivery/proto-google-cloud-configdelivery-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-configdelivery-v1beta - 0.27.0 + 0.28.0-SNAPSHOT proto-google-cloud-configdelivery-v1beta Proto library for google-cloud-configdelivery com.google.cloud google-cloud-configdelivery-parent - 0.27.0 + 0.28.0-SNAPSHOT diff --git a/java-connectgateway/google-cloud-connectgateway-bom/pom.xml b/java-connectgateway/google-cloud-connectgateway-bom/pom.xml index b1f03f94414f..f3f0311a6396 100644 --- a/java-connectgateway/google-cloud-connectgateway-bom/pom.xml +++ b/java-connectgateway/google-cloud-connectgateway-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-connectgateway-bom - 0.45.0 + 0.46.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,12 +27,12 @@ com.google.cloud google-cloud-connectgateway - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-connectgateway-v1 - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-connectgateway/google-cloud-connectgateway/pom.xml b/java-connectgateway/google-cloud-connectgateway/pom.xml index f0386a30bc76..5280b06a5440 100644 --- a/java-connectgateway/google-cloud-connectgateway/pom.xml +++ b/java-connectgateway/google-cloud-connectgateway/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-connectgateway - 0.45.0 + 0.46.0-SNAPSHOT jar Google Connect Gateway API Connect Gateway API The Connect Gateway service allows connectivity from external parties to connected Kubernetes clusters. com.google.cloud google-cloud-connectgateway-parent - 0.45.0 + 0.46.0-SNAPSHOT google-cloud-connectgateway diff --git a/java-connectgateway/google-cloud-connectgateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1/stub/Version.java b/java-connectgateway/google-cloud-connectgateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1/stub/Version.java index d0f50f954113..654d267c033f 100644 --- a/java-connectgateway/google-cloud-connectgateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1/stub/Version.java +++ b/java-connectgateway/google-cloud-connectgateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-connectgateway:current} - static final String VERSION = "0.45.0"; + static final String VERSION = "0.46.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-connectgateway/pom.xml b/java-connectgateway/pom.xml index fa48f954b23a..53a09d7cf5ee 100644 --- a/java-connectgateway/pom.xml +++ b/java-connectgateway/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-connectgateway-parent pom - 0.45.0 + 0.46.0-SNAPSHOT Google Connect Gateway API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,12 +30,12 @@ com.google.cloud google-cloud-connectgateway - 0.45.0 + 0.46.0-SNAPSHOT com.google.api.grpc proto-google-cloud-connectgateway-v1 - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-connectgateway/proto-google-cloud-connectgateway-v1/pom.xml b/java-connectgateway/proto-google-cloud-connectgateway-v1/pom.xml index 73008aba7962..d33b54f4e835 100644 --- a/java-connectgateway/proto-google-cloud-connectgateway-v1/pom.xml +++ b/java-connectgateway/proto-google-cloud-connectgateway-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-connectgateway-v1 - 0.45.0 + 0.46.0-SNAPSHOT proto-google-cloud-connectgateway-v1 Proto library for google-cloud-connectgateway com.google.cloud google-cloud-connectgateway-parent - 0.45.0 + 0.46.0-SNAPSHOT diff --git a/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml b/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml index a9628bf88614..4aec021f39d1 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml +++ b/java-contact-center-insights/google-cloud-contact-center-insights-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-contact-center-insights-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-contact-center-insights - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-contact-center-insights-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-contact-center-insights-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml b/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml index 95e1b48774c3..8f7181fb4c30 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml +++ b/java-contact-center-insights/google-cloud-contact-center-insights/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-contact-center-insights - 2.93.0 + 2.94.0-SNAPSHOT jar Google CCAI Insights CCAI Insights helps users detect and visualize patterns in their contact center data. com.google.cloud google-cloud-contact-center-insights-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-contact-center-insights diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/Version.java b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/Version.java index 3321da843a9f..fa272ab4e8ea 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/Version.java +++ b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-contact-center-insights:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml b/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml index e012b98cb255..842694be7768 100644 --- a/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml +++ b/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-contact-center-insights-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-contact-center-insights-v1 GRPC library for google-cloud-contact-center-insights com.google.cloud google-cloud-contact-center-insights-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-contact-center-insights/pom.xml b/java-contact-center-insights/pom.xml index 9646eef11dea..985c48e4ea9e 100644 --- a/java-contact-center-insights/pom.xml +++ b/java-contact-center-insights/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-contact-center-insights-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google CCAI Insights Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-contact-center-insights - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-contact-center-insights-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-contact-center-insights-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml index a1483b9f60f2..fc7cd829b783 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-contact-center-insights-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-contact-center-insights-v1 Proto library for google-cloud-contact-center-insights com.google.cloud google-cloud-contact-center-insights-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-container/google-cloud-container-bom/pom.xml b/java-container/google-cloud-container-bom/pom.xml index 3577f5d91d44..e8429dff5181 100644 --- a/java-container/google-cloud-container-bom/pom.xml +++ b/java-container/google-cloud-container-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-container-bom - 2.96.0 + 2.97.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,27 +24,27 @@ com.google.cloud google-cloud-container - 2.96.0 + 2.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-container-v1 - 2.96.0 + 2.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-container-v1beta1 - 2.96.0 + 2.97.0-SNAPSHOT com.google.api.grpc proto-google-cloud-container-v1 - 2.96.0 + 2.97.0-SNAPSHOT com.google.api.grpc proto-google-cloud-container-v1beta1 - 2.96.0 + 2.97.0-SNAPSHOT diff --git a/java-container/google-cloud-container/pom.xml b/java-container/google-cloud-container/pom.xml index f5469eda2969..d4cee00d4ca4 100644 --- a/java-container/google-cloud-container/pom.xml +++ b/java-container/google-cloud-container/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-container - 2.96.0 + 2.97.0-SNAPSHOT jar Google Cloud Container Java idiomatic client for Google Cloud Container com.google.cloud google-cloud-container-parent - 2.96.0 + 2.97.0-SNAPSHOT google-cloud-container diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/Version.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/Version.java index ed69e810cd02..18401b7fa827 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/Version.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-container:current} - static final String VERSION = "2.96.0"; + static final String VERSION = "2.97.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/Version.java b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/Version.java index c3b6c19fa617..0f5f7daca341 100644 --- a/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/Version.java +++ b/java-container/google-cloud-container/src/main/java/com/google/cloud/container/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-container:current} - static final String VERSION = "2.96.0"; + static final String VERSION = "2.97.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-container/grpc-google-cloud-container-v1/pom.xml b/java-container/grpc-google-cloud-container-v1/pom.xml index 7990dd6f8f82..fcb13515ca40 100644 --- a/java-container/grpc-google-cloud-container-v1/pom.xml +++ b/java-container/grpc-google-cloud-container-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-container-v1 - 2.96.0 + 2.97.0-SNAPSHOT grpc-google-cloud-container-v1 GRPC library for grpc-google-cloud-container-v1 com.google.cloud google-cloud-container-parent - 2.96.0 + 2.97.0-SNAPSHOT diff --git a/java-container/grpc-google-cloud-container-v1beta1/pom.xml b/java-container/grpc-google-cloud-container-v1beta1/pom.xml index 470c42ad55f6..52ee0aa9b040 100644 --- a/java-container/grpc-google-cloud-container-v1beta1/pom.xml +++ b/java-container/grpc-google-cloud-container-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-container-v1beta1 - 2.96.0 + 2.97.0-SNAPSHOT grpc-google-cloud-container-v1beta1 GRPC library for google-cloud-container com.google.cloud google-cloud-container-parent - 2.96.0 + 2.97.0-SNAPSHOT diff --git a/java-container/pom.xml b/java-container/pom.xml index eb4fe5a39f61..b0394e238489 100644 --- a/java-container/pom.xml +++ b/java-container/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-container-parent pom - 2.96.0 + 2.97.0-SNAPSHOT Google Cloud Container Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.api.grpc proto-google-cloud-container-v1 - 2.96.0 + 2.97.0-SNAPSHOT com.google.api.grpc proto-google-cloud-container-v1beta1 - 2.96.0 + 2.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-container-v1beta1 - 2.96.0 + 2.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-container-v1 - 2.96.0 + 2.97.0-SNAPSHOT com.google.cloud google-cloud-container - 2.96.0 + 2.97.0-SNAPSHOT diff --git a/java-container/proto-google-cloud-container-v1/pom.xml b/java-container/proto-google-cloud-container-v1/pom.xml index 3ea8f3795ff1..b768ebfb0881 100644 --- a/java-container/proto-google-cloud-container-v1/pom.xml +++ b/java-container/proto-google-cloud-container-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-container-v1 - 2.96.0 + 2.97.0-SNAPSHOT proto-google-cloud-container-v1 PROTO library for proto-google-cloud-container-v1 com.google.cloud google-cloud-container-parent - 2.96.0 + 2.97.0-SNAPSHOT diff --git a/java-container/proto-google-cloud-container-v1beta1/pom.xml b/java-container/proto-google-cloud-container-v1beta1/pom.xml index 6149bbf21cd4..7386c7ad9735 100644 --- a/java-container/proto-google-cloud-container-v1beta1/pom.xml +++ b/java-container/proto-google-cloud-container-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-container-v1beta1 - 2.96.0 + 2.97.0-SNAPSHOT proto-google-cloud-container-v1beta1 Proto library for google-cloud-container com.google.cloud google-cloud-container-parent - 2.96.0 + 2.97.0-SNAPSHOT diff --git a/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml b/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml index 5234de8e899a..f043991be5aa 100644 --- a/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml +++ b/java-containeranalysis/google-cloud-containeranalysis-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-containeranalysis-bom - 2.94.0 + 2.95.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,27 +24,27 @@ com.google.cloud google-cloud-containeranalysis - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-containeranalysis-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-containeranalysis-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-containeranalysis/google-cloud-containeranalysis/pom.xml b/java-containeranalysis/google-cloud-containeranalysis/pom.xml index c55a743001bb..9e4cbe99d73c 100644 --- a/java-containeranalysis/google-cloud-containeranalysis/pom.xml +++ b/java-containeranalysis/google-cloud-containeranalysis/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-containeranalysis - 2.94.0 + 2.95.0-SNAPSHOT jar Google Cloud Container Analysis Java idiomatic client for Google Cloud Container Analysis com.google.cloud google-cloud-containeranalysis-parent - 2.94.0 + 2.95.0-SNAPSHOT google-cloud-containeranalysis diff --git a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/stub/Version.java b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/stub/Version.java index 43bdaa75e2b5..a75f66cd61ba 100644 --- a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/stub/Version.java +++ b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-containeranalysis:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/stub/Version.java b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/stub/Version.java index ef3dce05afc3..4868bd4b7066 100644 --- a/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/stub/Version.java +++ b/java-containeranalysis/google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-containeranalysis:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml index 967051f88290..9f8c937c54ab 100644 --- a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml +++ b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1 - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-containeranalysis-v1 GRPC library for grpc-google-cloud-containeranalysis-v1 com.google.cloud google-cloud-containeranalysis-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml index 35b31329f16b..9a01aa552603 100644 --- a/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/java-containeranalysis/grpc-google-cloud-containeranalysis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-containeranalysis-v1beta1 GRPC library for grpc-google-cloud-containeranalysis-v1beta1 com.google.cloud google-cloud-containeranalysis-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-containeranalysis/pom.xml b/java-containeranalysis/pom.xml index 0e5c40a0fc21..fb89863205e8 100644 --- a/java-containeranalysis/pom.xml +++ b/java-containeranalysis/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-containeranalysis-parent pom - 2.94.0 + 2.95.0-SNAPSHOT Google Cloud Container Analysis Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,34 +30,34 @@ com.google.api.grpc proto-google-cloud-containeranalysis-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-containeranalysis-v1beta1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-containeranalysis-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.cloud google-cloud-containeranalysis - 2.94.0 + 2.95.0-SNAPSHOT io.grafeas grafeas - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml b/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml index 3f3b89732708..9f9b17bd9521 100644 --- a/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml +++ b/java-containeranalysis/proto-google-cloud-containeranalysis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1 - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-containeranalysis-v1 PROTO library for proto-google-cloud-containeranalysis-v1 com.google.cloud google-cloud-containeranalysis-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml b/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml index e7acaeaa53a0..20d11aaadc25 100644 --- a/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml +++ b/java-containeranalysis/proto-google-cloud-containeranalysis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-containeranalysis-v1beta1 - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-containeranalysis-v1beta1 PROTO library for proto-google-cloud-containeranalysis-v1beta1 com.google.cloud google-cloud-containeranalysis-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml b/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml index 0cf88b99f9c6..33bba0c3098f 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml +++ b/java-contentwarehouse/google-cloud-contentwarehouse-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-contentwarehouse-bom - 0.89.0 + 0.90.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-contentwarehouse - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-contentwarehouse-v1 - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc proto-google-cloud-contentwarehouse-v1 - 0.89.0 + 0.90.0-SNAPSHOT diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml b/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml index 93d0ce99e456..0fb986ee8d83 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml +++ b/java-contentwarehouse/google-cloud-contentwarehouse/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-contentwarehouse - 0.89.0 + 0.90.0-SNAPSHOT jar Google Document AI Warehouse Document AI Warehouse Document AI Warehouse is an integrated cloud-native GCP platform to store, search, organize, govern and analyze documents and their structured metadata. com.google.cloud google-cloud-contentwarehouse-parent - 0.89.0 + 0.90.0-SNAPSHOT google-cloud-contentwarehouse diff --git a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/Version.java b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/Version.java index 6df65920f56e..9495e7f283d5 100644 --- a/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/Version.java +++ b/java-contentwarehouse/google-cloud-contentwarehouse/src/main/java/com/google/cloud/contentwarehouse/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-contentwarehouse:current} - static final String VERSION = "0.89.0"; + static final String VERSION = "0.90.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml index 029f11a05105..4ed4dd4ea980 100644 --- a/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml +++ b/java-contentwarehouse/grpc-google-cloud-contentwarehouse-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-contentwarehouse-v1 - 0.89.0 + 0.90.0-SNAPSHOT grpc-google-cloud-contentwarehouse-v1 GRPC library for google-cloud-contentwarehouse com.google.cloud google-cloud-contentwarehouse-parent - 0.89.0 + 0.90.0-SNAPSHOT diff --git a/java-contentwarehouse/pom.xml b/java-contentwarehouse/pom.xml index e072e006faea..5f19676f0551 100644 --- a/java-contentwarehouse/pom.xml +++ b/java-contentwarehouse/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-contentwarehouse-parent pom - 0.89.0 + 0.90.0-SNAPSHOT Google Document AI Warehouse Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-contentwarehouse - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-contentwarehouse-v1 - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc proto-google-cloud-contentwarehouse-v1 - 0.89.0 + 0.90.0-SNAPSHOT @@ -50,7 +50,7 @@ com.google.cloud google-cloud-document-ai - 2.97.0 + 2.98.0-SNAPSHOT diff --git a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml index 25150d95c8ca..c9a63319a3c4 100644 --- a/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml +++ b/java-contentwarehouse/proto-google-cloud-contentwarehouse-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-contentwarehouse-v1 - 0.89.0 + 0.90.0-SNAPSHOT proto-google-cloud-contentwarehouse-v1 Proto library for google-cloud-contentwarehouse com.google.cloud google-cloud-contentwarehouse-parent - 0.89.0 + 0.90.0-SNAPSHOT diff --git a/java-data-fusion/google-cloud-data-fusion-bom/pom.xml b/java-data-fusion/google-cloud-data-fusion-bom/pom.xml index 8f3399590a00..6cdd5aec8fc3 100644 --- a/java-data-fusion/google-cloud-data-fusion-bom/pom.xml +++ b/java-data-fusion/google-cloud-data-fusion-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-data-fusion-bom - 1.93.0 + 1.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-data-fusion - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-data-fusion-v1beta1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-data-fusion-v1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-data-fusion-v1beta1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-data-fusion-v1 - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-data-fusion/google-cloud-data-fusion/pom.xml b/java-data-fusion/google-cloud-data-fusion/pom.xml index eb4e66023022..fb3a74ed4382 100644 --- a/java-data-fusion/google-cloud-data-fusion/pom.xml +++ b/java-data-fusion/google-cloud-data-fusion/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-data-fusion - 1.93.0 + 1.94.0-SNAPSHOT jar Google Cloud Data Fusion Cloud Data Fusion is a fully managed, cloud-native, enterprise data integration service for quickly building and managing data pipelines. com.google.cloud google-cloud-data-fusion-parent - 1.93.0 + 1.94.0-SNAPSHOT google-cloud-data-fusion diff --git a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/stub/Version.java b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/stub/Version.java index 8f923ce4d985..5c74730e41e2 100644 --- a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/stub/Version.java +++ b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-data-fusion:current} - static final String VERSION = "1.93.0"; + static final String VERSION = "1.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/stub/Version.java b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/stub/Version.java index 3366713a83e4..a94282029750 100644 --- a/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/stub/Version.java +++ b/java-data-fusion/google-cloud-data-fusion/src/main/java/com/google/cloud/datafusion/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-data-fusion:current} - static final String VERSION = "1.93.0"; + static final String VERSION = "1.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml b/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml index b813f845421a..3bdad9c7f588 100644 --- a/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml +++ b/java-data-fusion/grpc-google-cloud-data-fusion-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1 - 1.93.0 + 1.94.0-SNAPSHOT grpc-google-cloud-data-fusion-v1 GRPC library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml b/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml index c94883916dfa..541a8c5514a6 100644 --- a/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml +++ b/java-data-fusion/grpc-google-cloud-data-fusion-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-data-fusion-v1beta1 - 1.93.0 + 1.94.0-SNAPSHOT grpc-google-cloud-data-fusion-v1beta1 GRPC library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-data-fusion/pom.xml b/java-data-fusion/pom.xml index 059f23cb96a9..22d268de4534 100644 --- a/java-data-fusion/pom.xml +++ b/java-data-fusion/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-data-fusion-parent pom - 1.93.0 + 1.94.0-SNAPSHOT Google Cloud Data Fusion Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-data-fusion - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-data-fusion-v1beta1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-data-fusion-v1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-data-fusion-v1beta1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-data-fusion-v1 - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml b/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml index eb7a66814bf3..86a99545ff26 100644 --- a/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml +++ b/java-data-fusion/proto-google-cloud-data-fusion-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-data-fusion-v1 - 1.93.0 + 1.94.0-SNAPSHOT proto-google-cloud-data-fusion-v1 Proto library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml b/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml index 2b6f1afbc7bc..900b17ff79d2 100644 --- a/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml +++ b/java-data-fusion/proto-google-cloud-data-fusion-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-data-fusion-v1beta1 - 1.93.0 + 1.94.0-SNAPSHOT proto-google-cloud-data-fusion-v1beta1 Proto library for google-cloud-data-fusion com.google.cloud google-cloud-data-fusion-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-databasecenter/google-cloud-databasecenter-bom/pom.xml b/java-databasecenter/google-cloud-databasecenter-bom/pom.xml index 66b5197bad30..199b7bb16a77 100644 --- a/java-databasecenter/google-cloud-databasecenter-bom/pom.xml +++ b/java-databasecenter/google-cloud-databasecenter-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-databasecenter-bom - 0.14.0 + 0.15.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-databasecenter - 0.14.0 + 0.15.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-databasecenter-v1beta - 0.14.0 + 0.15.0-SNAPSHOT com.google.api.grpc proto-google-cloud-databasecenter-v1beta - 0.14.0 + 0.15.0-SNAPSHOT diff --git a/java-databasecenter/google-cloud-databasecenter/pom.xml b/java-databasecenter/google-cloud-databasecenter/pom.xml index 5050cfa183ec..46c467a28b18 100644 --- a/java-databasecenter/google-cloud-databasecenter/pom.xml +++ b/java-databasecenter/google-cloud-databasecenter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-databasecenter - 0.14.0 + 0.15.0-SNAPSHOT jar Google Database Center API Database Center API Database Center provides an organization-wide, cross-product fleet health platform to eliminate the overhead, complexity, and risk associated with aggregating and summarizing health signals through custom dashboards. Through Database Center’s fleet health dashboard and API, database platform teams that are responsible for reliability, compliance, security, cost, and administration of database fleets will now have a single pane of glass that pinpoints issues relevant to each team. com.google.cloud google-cloud-databasecenter-parent - 0.14.0 + 0.15.0-SNAPSHOT google-cloud-databasecenter diff --git a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/Version.java b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/Version.java index a7f71ce247ba..32907d03e89e 100644 --- a/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/Version.java +++ b/java-databasecenter/google-cloud-databasecenter/src/main/java/com/google/cloud/databasecenter/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-databasecenter:current} - static final String VERSION = "0.14.0"; + static final String VERSION = "0.15.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-databasecenter/grpc-google-cloud-databasecenter-v1beta/pom.xml b/java-databasecenter/grpc-google-cloud-databasecenter-v1beta/pom.xml index c9704719c789..1d0d94458fd3 100644 --- a/java-databasecenter/grpc-google-cloud-databasecenter-v1beta/pom.xml +++ b/java-databasecenter/grpc-google-cloud-databasecenter-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-databasecenter-v1beta - 0.14.0 + 0.15.0-SNAPSHOT grpc-google-cloud-databasecenter-v1beta GRPC library for google-cloud-databasecenter com.google.cloud google-cloud-databasecenter-parent - 0.14.0 + 0.15.0-SNAPSHOT diff --git a/java-databasecenter/pom.xml b/java-databasecenter/pom.xml index bf2446b36cce..a3e832cef411 100644 --- a/java-databasecenter/pom.xml +++ b/java-databasecenter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-databasecenter-parent pom - 0.14.0 + 0.15.0-SNAPSHOT Google Database Center API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-databasecenter - 0.14.0 + 0.15.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-databasecenter-v1beta - 0.14.0 + 0.15.0-SNAPSHOT com.google.api.grpc proto-google-cloud-databasecenter-v1beta - 0.14.0 + 0.15.0-SNAPSHOT diff --git a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/pom.xml b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/pom.xml index a6ba3d447859..ad6106d0dba6 100644 --- a/java-databasecenter/proto-google-cloud-databasecenter-v1beta/pom.xml +++ b/java-databasecenter/proto-google-cloud-databasecenter-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-databasecenter-v1beta - 0.14.0 + 0.15.0-SNAPSHOT proto-google-cloud-databasecenter-v1beta Proto library for google-cloud-databasecenter com.google.cloud google-cloud-databasecenter-parent - 0.14.0 + 0.15.0-SNAPSHOT diff --git a/java-datacatalog/google-cloud-datacatalog-bom/pom.xml b/java-datacatalog/google-cloud-datacatalog-bom/pom.xml index 3a830cd0dcdc..d8cc3888e939 100644 --- a/java-datacatalog/google-cloud-datacatalog-bom/pom.xml +++ b/java-datacatalog/google-cloud-datacatalog-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datacatalog-bom - 1.99.0 + 1.100.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,27 +24,27 @@ com.google.cloud google-cloud-datacatalog - 1.99.0 + 1.100.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datacatalog-v1 - 1.99.0 + 1.100.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datacatalog-v1beta1 - 1.99.0 + 1.100.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datacatalog-v1 - 1.99.0 + 1.100.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datacatalog-v1beta1 - 1.99.0 + 1.100.0-SNAPSHOT diff --git a/java-datacatalog/google-cloud-datacatalog/pom.xml b/java-datacatalog/google-cloud-datacatalog/pom.xml index ab02fb0b7c5f..27a0e7161325 100644 --- a/java-datacatalog/google-cloud-datacatalog/pom.xml +++ b/java-datacatalog/google-cloud-datacatalog/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datacatalog - 1.99.0 + 1.100.0-SNAPSHOT jar Google Cloud Data Catalog Java idiomatic client for Google Cloud Data Catalog com.google.cloud google-cloud-datacatalog-parent - 1.99.0 + 1.100.0-SNAPSHOT google-cloud-datacatalog diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/Version.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/Version.java index c11aeade1be1..be3d8c670b22 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/Version.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-datacatalog:current} - static final String VERSION = "1.99.0"; + static final String VERSION = "1.100.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/Version.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/Version.java index 7074776b6d82..5e44cf764993 100644 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/Version.java +++ b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-datacatalog:current} - static final String VERSION = "1.99.0"; + static final String VERSION = "1.100.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml b/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml index 762a737634ea..3b53bf1ac955 100644 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1 - 1.99.0 + 1.100.0-SNAPSHOT grpc-google-cloud-datacatalog-v1 GRPC library for grpc-google-cloud-datacatalog-v1 com.google.cloud google-cloud-datacatalog-parent - 1.99.0 + 1.100.0-SNAPSHOT diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml index bfb7d5f84b5e..5755f82ca3e6 100644 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml +++ b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datacatalog-v1beta1 - 1.99.0 + 1.100.0-SNAPSHOT grpc-google-cloud-datacatalog-v1beta1 GRPC library for grpc-google-cloud-datacatalog-v1beta1 com.google.cloud google-cloud-datacatalog-parent - 1.99.0 + 1.100.0-SNAPSHOT diff --git a/java-datacatalog/pom.xml b/java-datacatalog/pom.xml index 133ea9afd9f4..97727be11e4e 100644 --- a/java-datacatalog/pom.xml +++ b/java-datacatalog/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datacatalog-parent pom - 1.99.0 + 1.100.0-SNAPSHOT Google Cloud Data Catalog Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.api.grpc proto-google-cloud-datacatalog-v1 - 1.99.0 + 1.100.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datacatalog-v1beta1 - 1.99.0 + 1.100.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datacatalog-v1 - 1.99.0 + 1.100.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datacatalog-v1beta1 - 1.99.0 + 1.100.0-SNAPSHOT com.google.cloud google-cloud-datacatalog - 1.99.0 + 1.100.0-SNAPSHOT diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml b/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml index 4202f0a2d1f6..1eb0fd7e76cd 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datacatalog-v1 - 1.99.0 + 1.100.0-SNAPSHOT proto-google-cloud-datacatalog-v1 PROTO library for proto-google-cloud-datacatalog-v1 com.google.cloud google-cloud-datacatalog-parent - 1.99.0 + 1.100.0-SNAPSHOT diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml index 1c205d67c790..83eee0b7c0d6 100644 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml +++ b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datacatalog-v1beta1 - 1.99.0 + 1.100.0-SNAPSHOT proto-google-cloud-datacatalog-v1beta1 PROTO library for proto-google-cloud-datacatalog-v1beta1 com.google.cloud google-cloud-datacatalog-parent - 1.99.0 + 1.100.0-SNAPSHOT diff --git a/java-dataflow/google-cloud-dataflow-bom/pom.xml b/java-dataflow/google-cloud-dataflow-bom/pom.xml index 620ae8ac621e..c785071da56c 100644 --- a/java-dataflow/google-cloud-dataflow-bom/pom.xml +++ b/java-dataflow/google-cloud-dataflow-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataflow-bom - 0.97.0 + 0.98.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-dataflow - 0.97.0 + 0.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataflow-v1beta3 - 0.97.0 + 0.98.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataflow-v1beta3 - 0.97.0 + 0.98.0-SNAPSHOT diff --git a/java-dataflow/google-cloud-dataflow/pom.xml b/java-dataflow/google-cloud-dataflow/pom.xml index 9e9a8e04a9a7..6407181b971a 100644 --- a/java-dataflow/google-cloud-dataflow/pom.xml +++ b/java-dataflow/google-cloud-dataflow/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataflow - 0.97.0 + 0.98.0-SNAPSHOT jar Google Dataflow Dataflow is a managed service for executing a wide variety of data processing patterns. com.google.cloud google-cloud-dataflow-parent - 0.97.0 + 0.98.0-SNAPSHOT google-cloud-dataflow diff --git a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/Version.java b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/Version.java index f7c64ff535cd..0fa991ec23f0 100644 --- a/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/Version.java +++ b/java-dataflow/google-cloud-dataflow/src/main/java/com/google/dataflow/v1beta3/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-dataflow:current} - static final String VERSION = "0.97.0"; + static final String VERSION = "0.98.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml index 18d95d742702..9654b6f1bff4 100644 --- a/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml +++ b/java-dataflow/grpc-google-cloud-dataflow-v1beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataflow-v1beta3 - 0.97.0 + 0.98.0-SNAPSHOT grpc-google-cloud-dataflow-v1beta3 GRPC library for google-cloud-dataflow com.google.cloud google-cloud-dataflow-parent - 0.97.0 + 0.98.0-SNAPSHOT diff --git a/java-dataflow/pom.xml b/java-dataflow/pom.xml index f848b7f369fc..1dc2b4c268a2 100644 --- a/java-dataflow/pom.xml +++ b/java-dataflow/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataflow-parent pom - 0.97.0 + 0.98.0-SNAPSHOT Google Dataflow Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-dataflow - 0.97.0 + 0.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataflow-v1beta3 - 0.97.0 + 0.98.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataflow-v1beta3 - 0.97.0 + 0.98.0-SNAPSHOT diff --git a/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml b/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml index f0f46000bf85..ecc20f1cbff3 100644 --- a/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml +++ b/java-dataflow/proto-google-cloud-dataflow-v1beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataflow-v1beta3 - 0.97.0 + 0.98.0-SNAPSHOT proto-google-cloud-dataflow-v1beta3 Proto library for google-cloud-dataflow com.google.cloud google-cloud-dataflow-parent - 0.97.0 + 0.98.0-SNAPSHOT diff --git a/java-dataform/google-cloud-dataform-bom/pom.xml b/java-dataform/google-cloud-dataform-bom/pom.xml index cd72767e589e..a4c5988066db 100644 --- a/java-dataform/google-cloud-dataform-bom/pom.xml +++ b/java-dataform/google-cloud-dataform-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataform-bom - 0.92.0 + 0.93.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-dataform - 0.92.0 + 0.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataform-v1beta1 - 0.92.0 + 0.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataform-v1 - 0.92.0 + 0.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataform-v1beta1 - 0.92.0 + 0.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataform-v1 - 0.92.0 + 0.93.0-SNAPSHOT diff --git a/java-dataform/google-cloud-dataform/pom.xml b/java-dataform/google-cloud-dataform/pom.xml index 5aca187f4dda..352aad92dd0b 100644 --- a/java-dataform/google-cloud-dataform/pom.xml +++ b/java-dataform/google-cloud-dataform/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataform - 0.92.0 + 0.93.0-SNAPSHOT jar Google Cloud Dataform Cloud Dataform Help analytics teams manage data inside BigQuery using SQL. com.google.cloud google-cloud-dataform-parent - 0.92.0 + 0.93.0-SNAPSHOT google-cloud-dataform diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/Version.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/Version.java index 73a93fbb5490..efb897389708 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/Version.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-dataform:current} - static final String VERSION = "0.92.0"; + static final String VERSION = "0.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/Version.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/Version.java index 7adeb0d45bc1..b434d6f21799 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/Version.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-dataform:current} - static final String VERSION = "0.92.0"; + static final String VERSION = "0.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-dataform/grpc-google-cloud-dataform-v1/pom.xml b/java-dataform/grpc-google-cloud-dataform-v1/pom.xml index eeee3e07d6de..0a0afddf205c 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1/pom.xml +++ b/java-dataform/grpc-google-cloud-dataform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataform-v1 - 0.92.0 + 0.93.0-SNAPSHOT grpc-google-cloud-dataform-v1 GRPC library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.92.0 + 0.93.0-SNAPSHOT diff --git a/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml b/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml index a92cfb1cadac..4f7068da971a 100644 --- a/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml +++ b/java-dataform/grpc-google-cloud-dataform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataform-v1beta1 - 0.92.0 + 0.93.0-SNAPSHOT grpc-google-cloud-dataform-v1beta1 GRPC library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.92.0 + 0.93.0-SNAPSHOT diff --git a/java-dataform/pom.xml b/java-dataform/pom.xml index 4adbfd386b5e..b17f8ad657b0 100644 --- a/java-dataform/pom.xml +++ b/java-dataform/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataform-parent pom - 0.92.0 + 0.93.0-SNAPSHOT Google Cloud Dataform Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-dataform - 0.92.0 + 0.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataform-v1 - 0.92.0 + 0.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataform-v1 - 0.92.0 + 0.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataform-v1beta1 - 0.92.0 + 0.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataform-v1beta1 - 0.92.0 + 0.93.0-SNAPSHOT diff --git a/java-dataform/proto-google-cloud-dataform-v1/pom.xml b/java-dataform/proto-google-cloud-dataform-v1/pom.xml index 61446f924861..99ccdb60a376 100644 --- a/java-dataform/proto-google-cloud-dataform-v1/pom.xml +++ b/java-dataform/proto-google-cloud-dataform-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataform-v1 - 0.92.0 + 0.93.0-SNAPSHOT proto-google-cloud-dataform-v1 Proto library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.92.0 + 0.93.0-SNAPSHOT diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml b/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml index 142cedb992a7..1ba97cecde43 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataform-v1beta1 - 0.92.0 + 0.93.0-SNAPSHOT proto-google-cloud-dataform-v1beta1 Proto library for google-cloud-dataform com.google.cloud google-cloud-dataform-parent - 0.92.0 + 0.93.0-SNAPSHOT diff --git a/java-datalabeling/google-cloud-datalabeling-bom/pom.xml b/java-datalabeling/google-cloud-datalabeling-bom/pom.xml index 2f89379c84ef..ef0118c13429 100644 --- a/java-datalabeling/google-cloud-datalabeling-bom/pom.xml +++ b/java-datalabeling/google-cloud-datalabeling-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datalabeling-bom - 0.213.0 + 0.214.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,17 +24,17 @@ com.google.cloud google-cloud-datalabeling - 0.213.0 + 0.214.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datalabeling-v1beta1 - 0.213.0 + 0.214.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datalabeling-v1beta1 - 0.213.0 + 0.214.0-SNAPSHOT diff --git a/java-datalabeling/google-cloud-datalabeling/pom.xml b/java-datalabeling/google-cloud-datalabeling/pom.xml index b92e0f329fc7..f2389a27c412 100644 --- a/java-datalabeling/google-cloud-datalabeling/pom.xml +++ b/java-datalabeling/google-cloud-datalabeling/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datalabeling - 0.213.0 + 0.214.0-SNAPSHOT jar Google Cloud Data Labeling Java idiomatic client for Google Cloud Data Labeling com.google.cloud google-cloud-datalabeling-parent - 0.213.0 + 0.214.0-SNAPSHOT google-cloud-datalabeling diff --git a/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/Version.java b/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/Version.java index ae72ff2ba54a..c02abac552a5 100644 --- a/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/Version.java +++ b/java-datalabeling/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-datalabeling:current} - static final String VERSION = "0.213.0"; + static final String VERSION = "0.214.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml b/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml index d33a85bc8b48..7d33e5c1311b 100644 --- a/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml +++ b/java-datalabeling/grpc-google-cloud-datalabeling-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datalabeling-v1beta1 - 0.213.0 + 0.214.0-SNAPSHOT grpc-google-cloud-datalabeling-v1beta1 GRPC library for grpc-google-cloud-datalabeling-v1beta1 com.google.cloud google-cloud-datalabeling-parent - 0.213.0 + 0.214.0-SNAPSHOT diff --git a/java-datalabeling/pom.xml b/java-datalabeling/pom.xml index ce16a2aea10b..08a472ce9054 100644 --- a/java-datalabeling/pom.xml +++ b/java-datalabeling/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datalabeling-parent pom - 0.213.0 + 0.214.0-SNAPSHOT Google Cloud Data Labeling Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.api.grpc proto-google-cloud-datalabeling-v1beta1 - 0.213.0 + 0.214.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datalabeling-v1beta1 - 0.213.0 + 0.214.0-SNAPSHOT com.google.cloud google-cloud-datalabeling - 0.213.0 + 0.214.0-SNAPSHOT diff --git a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml index 252d6271139c..10b363bd2b3a 100644 --- a/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml +++ b/java-datalabeling/proto-google-cloud-datalabeling-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datalabeling-v1beta1 - 0.213.0 + 0.214.0-SNAPSHOT proto-google-cloud-datalabeling-v1beta1 PROTO library for proto-google-cloud-datalabeling-v1beta1 com.google.cloud google-cloud-datalabeling-parent - 0.213.0 + 0.214.0-SNAPSHOT diff --git a/java-datalineage/google-cloud-datalineage-bom/pom.xml b/java-datalineage/google-cloud-datalineage-bom/pom.xml index ce02e0928b80..2b941cb1f0e3 100644 --- a/java-datalineage/google-cloud-datalineage-bom/pom.xml +++ b/java-datalineage/google-cloud-datalineage-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datalineage-bom - 0.85.0 + 0.86.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-datalineage - 0.85.0 + 0.86.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datalineage-v1 - 0.85.0 + 0.86.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datalineage-v1 - 0.85.0 + 0.86.0-SNAPSHOT diff --git a/java-datalineage/google-cloud-datalineage/pom.xml b/java-datalineage/google-cloud-datalineage/pom.xml index ed2086cb89b8..e1bdc8acda64 100644 --- a/java-datalineage/google-cloud-datalineage/pom.xml +++ b/java-datalineage/google-cloud-datalineage/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datalineage - 0.85.0 + 0.86.0-SNAPSHOT jar Google Data Lineage Data Lineage Lineage is used to track data flows between assets over time. com.google.cloud google-cloud-datalineage-parent - 0.85.0 + 0.86.0-SNAPSHOT google-cloud-datalineage diff --git a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/stub/Version.java b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/stub/Version.java index f2e5254aab86..2d9195e6660c 100644 --- a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/stub/Version.java +++ b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/configmanagement/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-datalineage:current} - static final String VERSION = "0.85.0"; + static final String VERSION = "0.86.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/Version.java b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/Version.java index bdb7ca606e48..d9e5282930b3 100644 --- a/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/Version.java +++ b/java-datalineage/google-cloud-datalineage/src/main/java/com/google/cloud/datacatalog/lineage/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-datalineage:current} - static final String VERSION = "0.85.0"; + static final String VERSION = "0.86.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml b/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml index 4bf5cd976dc6..c301b2d450e6 100644 --- a/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml +++ b/java-datalineage/grpc-google-cloud-datalineage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datalineage-v1 - 0.85.0 + 0.86.0-SNAPSHOT grpc-google-cloud-datalineage-v1 GRPC library for google-cloud-datalineage com.google.cloud google-cloud-datalineage-parent - 0.85.0 + 0.86.0-SNAPSHOT diff --git a/java-datalineage/pom.xml b/java-datalineage/pom.xml index 0ca4a7d65cf7..06d56b73fbc8 100644 --- a/java-datalineage/pom.xml +++ b/java-datalineage/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datalineage-parent pom - 0.85.0 + 0.86.0-SNAPSHOT Google Data Lineage Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-datalineage - 0.85.0 + 0.86.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datalineage-v1 - 0.85.0 + 0.86.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datalineage-v1 - 0.85.0 + 0.86.0-SNAPSHOT diff --git a/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml b/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml index 94602678880c..ae21da61fbdb 100644 --- a/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml +++ b/java-datalineage/proto-google-cloud-datalineage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datalineage-v1 - 0.85.0 + 0.86.0-SNAPSHOT proto-google-cloud-datalineage-v1 Proto library for google-cloud-datalineage com.google.cloud google-cloud-datalineage-parent - 0.85.0 + 0.86.0-SNAPSHOT diff --git a/java-datamanager/data-manager-bom/pom.xml b/java-datamanager/data-manager-bom/pom.xml index 68d0e50d18bb..87160b9570b9 100644 --- a/java-datamanager/data-manager-bom/pom.xml +++ b/java-datamanager/data-manager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.api-ads data-manager-bom - 0.14.0 + 0.15.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.api-ads data-manager - 0.14.0 + 0.15.0-SNAPSHOT com.google.api-ads.api.grpc grpc-data-manager-v1 - 0.14.0 + 0.15.0-SNAPSHOT com.google.api-ads.api.grpc proto-data-manager-v1 - 0.14.0 + 0.15.0-SNAPSHOT diff --git a/java-datamanager/data-manager/pom.xml b/java-datamanager/data-manager/pom.xml index 8d55a60e54f8..e8fa85ebe4c6 100644 --- a/java-datamanager/data-manager/pom.xml +++ b/java-datamanager/data-manager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.api-ads data-manager - 0.14.0 + 0.15.0-SNAPSHOT jar Google Data Manager API Data Manager API A unified ingestion API for data partners, agencies and advertisers to connect first-party data across Google advertising products. com.google.api-ads data-manager-parent - 0.14.0 + 0.15.0-SNAPSHOT data-manager diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/Version.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/Version.java index c6ef2b5b06d9..35fdc27d28c6 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/Version.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:data-manager:current} - static final String VERSION = "0.14.0"; + static final String VERSION = "0.15.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-datamanager/grpc-data-manager-v1/pom.xml b/java-datamanager/grpc-data-manager-v1/pom.xml index cc78f538ef01..4cb78f3c2c6b 100644 --- a/java-datamanager/grpc-data-manager-v1/pom.xml +++ b/java-datamanager/grpc-data-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api-ads.api.grpc grpc-data-manager-v1 - 0.14.0 + 0.15.0-SNAPSHOT grpc-data-manager-v1 GRPC library for data-manager com.google.api-ads data-manager-parent - 0.14.0 + 0.15.0-SNAPSHOT diff --git a/java-datamanager/pom.xml b/java-datamanager/pom.xml index 8d9f62606307..fc00bbf25c20 100644 --- a/java-datamanager/pom.xml +++ b/java-datamanager/pom.xml @@ -4,7 +4,7 @@ com.google.api-ads data-manager-parent pom - 0.14.0 + 0.15.0-SNAPSHOT Google Data Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.api-ads data-manager - 0.14.0 + 0.15.0-SNAPSHOT com.google.api-ads.api.grpc grpc-data-manager-v1 - 0.14.0 + 0.15.0-SNAPSHOT com.google.api-ads.api.grpc proto-data-manager-v1 - 0.14.0 + 0.15.0-SNAPSHOT diff --git a/java-datamanager/proto-data-manager-v1/pom.xml b/java-datamanager/proto-data-manager-v1/pom.xml index 39333468bd14..9f5a98d1a2ca 100644 --- a/java-datamanager/proto-data-manager-v1/pom.xml +++ b/java-datamanager/proto-data-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api-ads.api.grpc proto-data-manager-v1 - 0.14.0 + 0.15.0-SNAPSHOT proto-data-manager-v1 Proto library for data-manager com.google.api-ads data-manager-parent - 0.14.0 + 0.15.0-SNAPSHOT diff --git a/java-dataplex/google-cloud-dataplex-bom/pom.xml b/java-dataplex/google-cloud-dataplex-bom/pom.xml index 888dcf413386..aad9cbb4cf82 100644 --- a/java-dataplex/google-cloud-dataplex-bom/pom.xml +++ b/java-dataplex/google-cloud-dataplex-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataplex-bom - 1.91.0 + 1.92.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-dataplex - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataplex-v1 - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataplex-v1 - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-dataplex/google-cloud-dataplex/pom.xml b/java-dataplex/google-cloud-dataplex/pom.xml index 435ca2443139..6b5049a7bb30 100644 --- a/java-dataplex/google-cloud-dataplex/pom.xml +++ b/java-dataplex/google-cloud-dataplex/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataplex - 1.91.0 + 1.92.0-SNAPSHOT jar Google Cloud Dataplex Cloud Dataplex provides intelligent data fabric that enables organizations to centrally manage, monitor, and govern their data across data lakes, data warehouses, and data marts with consistent controls, providing access to trusted data and powering analytics at scale. com.google.cloud google-cloud-dataplex-parent - 1.91.0 + 1.92.0-SNAPSHOT google-cloud-dataplex diff --git a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/Version.java b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/Version.java index a18f8befe012..173e036304ff 100644 --- a/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/Version.java +++ b/java-dataplex/google-cloud-dataplex/src/main/java/com/google/cloud/dataplex/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-dataplex:current} - static final String VERSION = "1.91.0"; + static final String VERSION = "1.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml b/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml index 1864a5437e3c..2356cc568b7c 100644 --- a/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml +++ b/java-dataplex/grpc-google-cloud-dataplex-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataplex-v1 - 1.91.0 + 1.92.0-SNAPSHOT grpc-google-cloud-dataplex-v1 GRPC library for google-cloud-dataplex com.google.cloud google-cloud-dataplex-parent - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-dataplex/pom.xml b/java-dataplex/pom.xml index 68b8d4c9a6bd..b02bcda251e8 100644 --- a/java-dataplex/pom.xml +++ b/java-dataplex/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataplex-parent pom - 1.91.0 + 1.92.0-SNAPSHOT Google Cloud Dataplex Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-dataplex - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataplex-v1 - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataplex-v1 - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml b/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml index d2ad1c5c16ff..b63cec91f67d 100644 --- a/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml +++ b/java-dataplex/proto-google-cloud-dataplex-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataplex-v1 - 1.91.0 + 1.92.0-SNAPSHOT proto-google-cloud-dataplex-v1 Proto library for google-cloud-dataplex com.google.cloud google-cloud-dataplex-parent - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml b/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml index 34fbfc9f645f..502e13d1f67d 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataproc-metastore-bom - 2.94.0 + 2.95.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,37 +28,37 @@ com.google.cloud google-cloud-dataproc-metastore - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1beta - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1alpha - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-metastore-v1beta - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-metastore-v1alpha - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-metastore-v1 - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml b/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml index d6db9a4c047a..6563fff20b44 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataproc-metastore - 2.94.0 + 2.95.0-SNAPSHOT jar Google Dataproc Metastore is a fully managed, highly available, autoscaled, autohealing, OSS-native metastore service that greatly simplifies technical metadata management. Dataproc Metastore service is based on Apache Hive metastore and serves as a critical component towards enterprise data lakes. com.google.cloud google-cloud-dataproc-metastore-parent - 2.94.0 + 2.95.0-SNAPSHOT google-cloud-dataproc-metastore diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/Version.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/Version.java index dba02bddd342..6d1a81d73048 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/Version.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-dataproc-metastore:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/Version.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/Version.java index a988fb1bb8f4..8913194fa51e 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/Version.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-dataproc-metastore:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/Version.java b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/Version.java index df1767d2c11c..8dbb10000dd4 100644 --- a/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/Version.java +++ b/java-dataproc-metastore/google-cloud-dataproc-metastore/src/main/java/com/google/cloud/metastore/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-dataproc-metastore:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml index 2a30e63a21f4..b6034a87566f 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1 - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-dataproc-metastore-v1 GRPC library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml index 63167afe5c0b..deb27dc65cc2 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1alpha - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-dataproc-metastore-v1alpha GRPC library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml index ec0191da5016..530b34498e81 100644 --- a/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml +++ b/java-dataproc-metastore/grpc-google-cloud-dataproc-metastore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1beta - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-dataproc-metastore-v1beta GRPC library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-dataproc-metastore/pom.xml b/java-dataproc-metastore/pom.xml index 14d490e64a20..7d9dd3f01388 100644 --- a/java-dataproc-metastore/pom.xml +++ b/java-dataproc-metastore/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-metastore-parent pom - 2.94.0 + 2.95.0-SNAPSHOT Google Dataproc Metastore Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,37 +30,37 @@ com.google.cloud google-cloud-dataproc-metastore - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1beta - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1alpha - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-metastore-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-metastore-v1beta - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-metastore-v1alpha - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-metastore-v1 - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml index 3aa7343dff4d..e984206edc78 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1 - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-dataproc-metastore-v1 Proto library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml index 7b90f6bc4611..e1cf70bf4377 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1alpha - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-dataproc-metastore-v1alpha Proto library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml index def72ed7f625..073d1e44965e 100644 --- a/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml +++ b/java-dataproc-metastore/proto-google-cloud-dataproc-metastore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-metastore-v1beta - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-dataproc-metastore-v1beta Proto library for google-cloud-dataproc-metastore com.google.cloud google-cloud-dataproc-metastore-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-dataproc/google-cloud-dataproc-bom/pom.xml b/java-dataproc/google-cloud-dataproc-bom/pom.xml index c825e7a13fbc..a3bf49417acf 100644 --- a/java-dataproc/google-cloud-dataproc-bom/pom.xml +++ b/java-dataproc/google-cloud-dataproc-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dataproc-bom - 4.90.0 + 4.91.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,17 +24,17 @@ com.google.cloud google-cloud-dataproc - 4.90.0 + 4.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.90.0 + 4.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.90.0 + 4.91.0-SNAPSHOT diff --git a/java-dataproc/google-cloud-dataproc/pom.xml b/java-dataproc/google-cloud-dataproc/pom.xml index d52d53fb588c..e0b5e289d7a3 100644 --- a/java-dataproc/google-cloud-dataproc/pom.xml +++ b/java-dataproc/google-cloud-dataproc/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dataproc - 4.90.0 + 4.91.0-SNAPSHOT jar Google Cloud Dataproc Java idiomatic client for Google Cloud Dataproc com.google.cloud google-cloud-dataproc-parent - 4.90.0 + 4.91.0-SNAPSHOT google-cloud-dataproc diff --git a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/Version.java b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/Version.java index ffb2135e6608..c6a37cd9e6ad 100644 --- a/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/Version.java +++ b/java-dataproc/google-cloud-dataproc/src/main/java/com/google/cloud/dataproc/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-dataproc:current} - static final String VERSION = "4.90.0"; + static final String VERSION = "4.91.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml b/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml index 7a2f70906e48..24b226ef318e 100644 --- a/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml +++ b/java-dataproc/grpc-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.90.0 + 4.91.0-SNAPSHOT grpc-google-cloud-dataproc-v1 GRPC library for grpc-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.90.0 + 4.91.0-SNAPSHOT diff --git a/java-dataproc/pom.xml b/java-dataproc/pom.xml index 11056d58ddca..415d91ec7ae2 100644 --- a/java-dataproc/pom.xml +++ b/java-dataproc/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dataproc-parent pom - 4.90.0 + 4.91.0-SNAPSHOT Google Cloud Dataproc Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.90.0 + 4.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dataproc-v1 - 4.90.0 + 4.91.0-SNAPSHOT com.google.cloud google-cloud-dataproc - 4.90.0 + 4.91.0-SNAPSHOT diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml b/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml index 0e8296acc9c8..9e8eccb30d5a 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml +++ b/java-dataproc/proto-google-cloud-dataproc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dataproc-v1 - 4.90.0 + 4.91.0-SNAPSHOT proto-google-cloud-dataproc-v1 PROTO library for proto-google-cloud-dataproc-v1 com.google.cloud google-cloud-dataproc-parent - 4.90.0 + 4.91.0-SNAPSHOT diff --git a/java-datastore/README.md b/java-datastore/README.md index b5215680b423..bc837a0ea828 100644 --- a/java-datastore/README.md +++ b/java-datastore/README.md @@ -30,7 +30,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud google-cloud-datastore - 3.1.0 + 3.2.0-SNAPSHOT ``` diff --git a/java-datastore/datastore-v1-proto-client/pom.xml b/java-datastore/datastore-v1-proto-client/pom.xml index 68f86397a0c2..0ca94559f467 100644 --- a/java-datastore/datastore-v1-proto-client/pom.xml +++ b/java-datastore/datastore-v1-proto-client/pom.xml @@ -19,12 +19,12 @@ 4.0.0 com.google.cloud.datastore datastore-v1-proto-client - 3.1.0 + 3.2.0-SNAPSHOT com.google.cloud google-cloud-datastore-parent - 3.1.0 + 3.2.0-SNAPSHOT jar diff --git a/java-datastore/google-cloud-datastore-bom/pom.xml b/java-datastore/google-cloud-datastore-bom/pom.xml index e33054501574..2c6d3b60f7e0 100644 --- a/java-datastore/google-cloud-datastore-bom/pom.xml +++ b/java-datastore/google-cloud-datastore-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-datastore-bom - 3.1.0 + 3.2.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -54,27 +54,27 @@ com.google.cloud google-cloud-datastore - 3.1.0 + 3.2.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datastore-admin-v1 - 3.1.0 + 3.2.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datastore-v1 - 3.1.0 + 3.2.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datastore-v1 - 3.1.0 + 3.2.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datastore-admin-v1 - 3.1.0 + 3.2.0-SNAPSHOT diff --git a/java-datastore/google-cloud-datastore-utils/pom.xml b/java-datastore/google-cloud-datastore-utils/pom.xml index 5445ec7cf527..13a7ff143888 100644 --- a/java-datastore/google-cloud-datastore-utils/pom.xml +++ b/java-datastore/google-cloud-datastore-utils/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-datastore-utils - 3.1.0 + 3.2.0-SNAPSHOT jar Google Cloud Datastore Utilities https://github.com/googleapis/google-cloud-java @@ -13,7 +13,7 @@ com.google.cloud google-cloud-datastore-parent - 3.1.0 + 3.2.0-SNAPSHOT google-cloud-datastore-utils diff --git a/java-datastore/google-cloud-datastore/pom.xml b/java-datastore/google-cloud-datastore/pom.xml index ea8ff3044391..64715b4b8301 100644 --- a/java-datastore/google-cloud-datastore/pom.xml +++ b/java-datastore/google-cloud-datastore/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-datastore - 3.1.0 + 3.2.0-SNAPSHOT jar Google Cloud Datastore https://github.com/googleapis/google-cloud-java @@ -13,7 +13,7 @@ com.google.cloud google-cloud-datastore-parent - 3.1.0 + 3.2.0-SNAPSHOT google-cloud-datastore @@ -212,12 +212,12 @@ com.google.cloud google-cloud-monitoring - 3.94.0 + 3.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-monitoring-v3 - 3.94.0 + 3.95.0-SNAPSHOT io.opentelemetry @@ -249,13 +249,13 @@ com.google.cloud google-cloud-trace test - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-trace-v1 test - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/Version.java b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/Version.java index 7879d7838599..73be36eead50 100644 --- a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/Version.java +++ b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/admin/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-datastore:current} - static final String VERSION = "3.1.0"; + static final String VERSION = "3.2.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/v1/stub/Version.java b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/v1/stub/Version.java index ad544ae8781d..0de484fbc0cb 100644 --- a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/v1/stub/Version.java +++ b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-datastore:current} - static final String VERSION = "3.1.0"; + static final String VERSION = "3.2.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-datastore/grpc-google-cloud-datastore-admin-v1/pom.xml b/java-datastore/grpc-google-cloud-datastore-admin-v1/pom.xml index c5409017b2ba..c351972253b0 100644 --- a/java-datastore/grpc-google-cloud-datastore-admin-v1/pom.xml +++ b/java-datastore/grpc-google-cloud-datastore-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datastore-admin-v1 - 3.1.0 + 3.2.0-SNAPSHOT grpc-google-cloud-datastore-admin-v1 GRPC library for google-cloud-datastore com.google.cloud google-cloud-datastore-parent - 3.1.0 + 3.2.0-SNAPSHOT diff --git a/java-datastore/grpc-google-cloud-datastore-v1/pom.xml b/java-datastore/grpc-google-cloud-datastore-v1/pom.xml index 01325246b1d4..772cb9f325ea 100644 --- a/java-datastore/grpc-google-cloud-datastore-v1/pom.xml +++ b/java-datastore/grpc-google-cloud-datastore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datastore-v1 - 3.1.0 + 3.2.0-SNAPSHOT grpc-google-cloud-datastore-v1 GRPC library for google-cloud-datastore com.google.cloud google-cloud-datastore-parent - 3.1.0 + 3.2.0-SNAPSHOT diff --git a/java-datastore/pom.xml b/java-datastore/pom.xml index 3128629a84f8..19cc247180fc 100644 --- a/java-datastore/pom.xml +++ b/java-datastore/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datastore-parent pom - 3.1.0 + 3.2.0-SNAPSHOT Google Cloud Datastore Parent https://github.com/googleapis/google-cloud-java @@ -14,7 +14,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -155,32 +155,32 @@ com.google.api.grpc proto-google-cloud-datastore-admin-v1 - 3.1.0 + 3.2.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datastore-admin-v1 - 3.1.0 + 3.2.0-SNAPSHOT com.google.cloud google-cloud-datastore - 3.1.0 + 3.2.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datastore-v1 - 3.1.0 + 3.2.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datastore-v1 - 3.1.0 + 3.2.0-SNAPSHOT com.google.cloud.datastore datastore-v1-proto-client - 3.1.0 + 3.2.0-SNAPSHOT com.google.api.grpc @@ -192,7 +192,7 @@ com.google.cloud google-cloud-datastore-utils - 3.1.0 + 3.2.0-SNAPSHOT org.easymock diff --git a/java-datastore/proto-google-cloud-datastore-admin-v1/pom.xml b/java-datastore/proto-google-cloud-datastore-admin-v1/pom.xml index 40961bc51ade..51e45440651c 100644 --- a/java-datastore/proto-google-cloud-datastore-admin-v1/pom.xml +++ b/java-datastore/proto-google-cloud-datastore-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datastore-admin-v1 - 3.1.0 + 3.2.0-SNAPSHOT proto-google-cloud-datastore-admin-v1 Proto library for google-cloud-datastore com.google.cloud google-cloud-datastore-parent - 3.1.0 + 3.2.0-SNAPSHOT diff --git a/java-datastore/proto-google-cloud-datastore-v1/pom.xml b/java-datastore/proto-google-cloud-datastore-v1/pom.xml index ab6ebe644564..991d3474a74d 100644 --- a/java-datastore/proto-google-cloud-datastore-v1/pom.xml +++ b/java-datastore/proto-google-cloud-datastore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datastore-v1 - 3.1.0 + 3.2.0-SNAPSHOT proto-google-cloud-datastore-v1 PROTO library for proto-google-cloud-datastore-v1 com.google.cloud google-cloud-datastore-parent - 3.1.0 + 3.2.0-SNAPSHOT diff --git a/java-datastore/samples/snapshot/pom.xml b/java-datastore/samples/snapshot/pom.xml index a2bd25b88975..2d23c79326d9 100644 --- a/java-datastore/samples/snapshot/pom.xml +++ b/java-datastore/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-datastore - 3.1.0 + 3.2.0-SNAPSHOT diff --git a/java-datastore/samples/snippets/pom.xml b/java-datastore/samples/snippets/pom.xml index 6d759429d294..b5a0b1153458 100644 --- a/java-datastore/samples/snippets/pom.xml +++ b/java-datastore/samples/snippets/pom.xml @@ -41,7 +41,7 @@ com.google.cloud google-cloud-datastore - 3.1.0 + 3.2.0-SNAPSHOT diff --git a/java-datastream/google-cloud-datastream-bom/pom.xml b/java-datastream/google-cloud-datastream-bom/pom.xml index 6a8bb3b1edcd..bbae55bdf25b 100644 --- a/java-datastream/google-cloud-datastream-bom/pom.xml +++ b/java-datastream/google-cloud-datastream-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-datastream-bom - 1.92.0 + 1.93.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-datastream - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datastream-v1alpha1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datastream-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datastream-v1alpha1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datastream-v1 - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-datastream/google-cloud-datastream/pom.xml b/java-datastream/google-cloud-datastream/pom.xml index aebc914f5621..d409b913fdb2 100644 --- a/java-datastream/google-cloud-datastream/pom.xml +++ b/java-datastream/google-cloud-datastream/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-datastream - 1.92.0 + 1.93.0-SNAPSHOT jar Google Datastream Datastream is a serverless and easy-to-use change data capture (CDC) and replication service. It allows you to synchronize data across heterogeneous databases and applications reliably, and with minimal latency and downtime. com.google.cloud google-cloud-datastream-parent - 1.92.0 + 1.93.0-SNAPSHOT google-cloud-datastream diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/Version.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/Version.java index cbcbdf3bfe1d..511a5924d06f 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/Version.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-datastream:current} - static final String VERSION = "1.92.0"; + static final String VERSION = "1.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/Version.java b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/Version.java index 77068386145f..68d834429a33 100644 --- a/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/Version.java +++ b/java-datastream/google-cloud-datastream/src/main/java/com/google/cloud/datastream/v1alpha1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-datastream:current} - static final String VERSION = "1.92.0"; + static final String VERSION = "1.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-datastream/grpc-google-cloud-datastream-v1/pom.xml b/java-datastream/grpc-google-cloud-datastream-v1/pom.xml index 300100e8a52f..206512abccd2 100644 --- a/java-datastream/grpc-google-cloud-datastream-v1/pom.xml +++ b/java-datastream/grpc-google-cloud-datastream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datastream-v1 - 1.92.0 + 1.93.0-SNAPSHOT grpc-google-cloud-datastream-v1 GRPC library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml b/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml index bcc1cdb0843b..7cda39419540 100644 --- a/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml +++ b/java-datastream/grpc-google-cloud-datastream-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-datastream-v1alpha1 - 1.92.0 + 1.93.0-SNAPSHOT grpc-google-cloud-datastream-v1alpha1 GRPC library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-datastream/pom.xml b/java-datastream/pom.xml index ec6a5683c9f7..2a9e41884211 100644 --- a/java-datastream/pom.xml +++ b/java-datastream/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-datastream-parent pom - 1.92.0 + 1.93.0-SNAPSHOT Google Datastream Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-datastream - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datastream-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datastream-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-datastream-v1alpha1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-datastream-v1alpha1 - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-datastream/proto-google-cloud-datastream-v1/pom.xml b/java-datastream/proto-google-cloud-datastream-v1/pom.xml index c6c28896639c..f802d5c61e4e 100644 --- a/java-datastream/proto-google-cloud-datastream-v1/pom.xml +++ b/java-datastream/proto-google-cloud-datastream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datastream-v1 - 1.92.0 + 1.93.0-SNAPSHOT proto-google-cloud-datastream-v1 Proto library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml b/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml index 49e77bbb3954..3582eb466d43 100644 --- a/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml +++ b/java-datastream/proto-google-cloud-datastream-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-datastream-v1alpha1 - 1.92.0 + 1.93.0-SNAPSHOT proto-google-cloud-datastream-v1alpha1 Proto library for google-cloud-datastream com.google.cloud google-cloud-datastream-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-deploy/google-cloud-deploy-bom/pom.xml b/java-deploy/google-cloud-deploy-bom/pom.xml index 375cb8da6213..d85e64d56800 100644 --- a/java-deploy/google-cloud-deploy-bom/pom.xml +++ b/java-deploy/google-cloud-deploy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-deploy-bom - 1.91.0 + 1.92.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-deploy - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-deploy-v1 - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-deploy-v1 - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-deploy/google-cloud-deploy/pom.xml b/java-deploy/google-cloud-deploy/pom.xml index 617ee08be000..a885dcfa52cc 100644 --- a/java-deploy/google-cloud-deploy/pom.xml +++ b/java-deploy/google-cloud-deploy/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-deploy - 1.91.0 + 1.92.0-SNAPSHOT jar Google Google CLoud Deploy Google CLoud Deploy is a service that automates delivery of your applications to a series of target environments in a defined sequence com.google.cloud google-cloud-deploy-parent - 1.91.0 + 1.92.0-SNAPSHOT google-cloud-deploy diff --git a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/Version.java b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/Version.java index 87702e525094..5249adf50116 100644 --- a/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/Version.java +++ b/java-deploy/google-cloud-deploy/src/main/java/com/google/cloud/deploy/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-deploy:current} - static final String VERSION = "1.91.0"; + static final String VERSION = "1.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-deploy/grpc-google-cloud-deploy-v1/pom.xml b/java-deploy/grpc-google-cloud-deploy-v1/pom.xml index 02554d51eea4..bacc7dc349cf 100644 --- a/java-deploy/grpc-google-cloud-deploy-v1/pom.xml +++ b/java-deploy/grpc-google-cloud-deploy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-deploy-v1 - 1.91.0 + 1.92.0-SNAPSHOT grpc-google-cloud-deploy-v1 GRPC library for google-cloud-deploy com.google.cloud google-cloud-deploy-parent - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-deploy/pom.xml b/java-deploy/pom.xml index c2adf42c5d73..299281172423 100644 --- a/java-deploy/pom.xml +++ b/java-deploy/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-deploy-parent pom - 1.91.0 + 1.92.0-SNAPSHOT Google Google CLoud Deploy Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-deploy - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-deploy-v1 - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-deploy-v1 - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-deploy/proto-google-cloud-deploy-v1/pom.xml b/java-deploy/proto-google-cloud-deploy-v1/pom.xml index 7f1e843ffcf8..bd04dbf46ab8 100644 --- a/java-deploy/proto-google-cloud-deploy-v1/pom.xml +++ b/java-deploy/proto-google-cloud-deploy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-deploy-v1 - 1.91.0 + 1.92.0-SNAPSHOT proto-google-cloud-deploy-v1 Proto library for google-cloud-deploy com.google.cloud google-cloud-deploy-parent - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-developerconnect/google-cloud-developerconnect-bom/pom.xml b/java-developerconnect/google-cloud-developerconnect-bom/pom.xml index dc4ea5be955d..645dd9968b1e 100644 --- a/java-developerconnect/google-cloud-developerconnect-bom/pom.xml +++ b/java-developerconnect/google-cloud-developerconnect-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-developerconnect-bom - 0.50.0 + 0.51.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-developerconnect - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-developerconnect-v1 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc proto-google-cloud-developerconnect-v1 - 0.50.0 + 0.51.0-SNAPSHOT diff --git a/java-developerconnect/google-cloud-developerconnect/pom.xml b/java-developerconnect/google-cloud-developerconnect/pom.xml index 2123a5765f51..e20220327961 100644 --- a/java-developerconnect/google-cloud-developerconnect/pom.xml +++ b/java-developerconnect/google-cloud-developerconnect/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-developerconnect - 0.50.0 + 0.51.0-SNAPSHOT jar Google Developer Connect API Developer Connect API Connect third-party source code management to Google com.google.cloud google-cloud-developerconnect-parent - 0.50.0 + 0.51.0-SNAPSHOT google-cloud-developerconnect diff --git a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/Version.java b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/Version.java index 1e191a5ac6b6..fea8a975c2d8 100644 --- a/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/Version.java +++ b/java-developerconnect/google-cloud-developerconnect/src/main/java/com/google/cloud/developerconnect/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-developerconnect:current} - static final String VERSION = "0.50.0"; + static final String VERSION = "0.51.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml b/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml index c71ce6cdfbdf..1565e04a48fd 100644 --- a/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml +++ b/java-developerconnect/grpc-google-cloud-developerconnect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-developerconnect-v1 - 0.50.0 + 0.51.0-SNAPSHOT grpc-google-cloud-developerconnect-v1 GRPC library for google-cloud-developerconnect com.google.cloud google-cloud-developerconnect-parent - 0.50.0 + 0.51.0-SNAPSHOT diff --git a/java-developerconnect/pom.xml b/java-developerconnect/pom.xml index f7e9f11a42f0..81b8119e07c1 100644 --- a/java-developerconnect/pom.xml +++ b/java-developerconnect/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-developerconnect-parent pom - 0.50.0 + 0.51.0-SNAPSHOT Google Developer Connect API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-developerconnect - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-developerconnect-v1 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc proto-google-cloud-developerconnect-v1 - 0.50.0 + 0.51.0-SNAPSHOT diff --git a/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml b/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml index 7bf8bcb979de..a2c52de94179 100644 --- a/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml +++ b/java-developerconnect/proto-google-cloud-developerconnect-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-developerconnect-v1 - 0.50.0 + 0.51.0-SNAPSHOT proto-google-cloud-developerconnect-v1 Proto library for google-cloud-developerconnect com.google.cloud google-cloud-developerconnect-parent - 0.50.0 + 0.51.0-SNAPSHOT diff --git a/java-developerknowledge/google-cloud-developer-knowledge-bom/pom.xml b/java-developerknowledge/google-cloud-developer-knowledge-bom/pom.xml index 03ad8ef0f234..6ef3078a8ef4 100644 --- a/java-developerknowledge/google-cloud-developer-knowledge-bom/pom.xml +++ b/java-developerknowledge/google-cloud-developer-knowledge-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-developer-knowledge-bom - 0.1.0 + 0.2.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-developer-knowledge - 0.1.0 + 0.2.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-developer-knowledge-v1 - 0.1.0 + 0.2.0-SNAPSHOT com.google.api.grpc proto-google-cloud-developer-knowledge-v1 - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-developerknowledge/google-cloud-developer-knowledge/pom.xml b/java-developerknowledge/google-cloud-developer-knowledge/pom.xml index 27550d767737..f18bda57e03f 100644 --- a/java-developerknowledge/google-cloud-developer-knowledge/pom.xml +++ b/java-developerknowledge/google-cloud-developer-knowledge/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-developer-knowledge - 0.1.0 + 0.2.0-SNAPSHOT jar Google Developer Knowledge API Developer Knowledge API The Developer Knowledge API provides access to Google's developer knowledge com.google.cloud google-cloud-developer-knowledge-parent - 0.1.0 + 0.2.0-SNAPSHOT google-cloud-developer-knowledge diff --git a/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/stub/Version.java b/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/stub/Version.java index 8837c42ce295..333a90af39ae 100644 --- a/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/stub/Version.java +++ b/java-developerknowledge/google-cloud-developer-knowledge/src/main/java/com/google/developers/knowledge/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-developer-knowledge:current} - static final String VERSION = "0.1.0"; + static final String VERSION = "0.2.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-developerknowledge/grpc-google-cloud-developer-knowledge-v1/pom.xml b/java-developerknowledge/grpc-google-cloud-developer-knowledge-v1/pom.xml index f46dfb3534bd..3fae964447dc 100644 --- a/java-developerknowledge/grpc-google-cloud-developer-knowledge-v1/pom.xml +++ b/java-developerknowledge/grpc-google-cloud-developer-knowledge-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-developer-knowledge-v1 - 0.1.0 + 0.2.0-SNAPSHOT grpc-google-cloud-developer-knowledge-v1 GRPC library for google-cloud-developer-knowledge com.google.cloud google-cloud-developer-knowledge-parent - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-developerknowledge/pom.xml b/java-developerknowledge/pom.xml index c73bbe990ac0..136c65ec66c7 100644 --- a/java-developerknowledge/pom.xml +++ b/java-developerknowledge/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-developer-knowledge-parent pom - 0.1.0 + 0.2.0-SNAPSHOT Google Developer Knowledge API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-developer-knowledge - 0.1.0 + 0.2.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-developer-knowledge-v1 - 0.1.0 + 0.2.0-SNAPSHOT com.google.api.grpc proto-google-cloud-developer-knowledge-v1 - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/pom.xml b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/pom.xml index 68b6c177edf5..f7f64f7c01ab 100644 --- a/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/pom.xml +++ b/java-developerknowledge/proto-google-cloud-developer-knowledge-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-developer-knowledge-v1 - 0.1.0 + 0.2.0-SNAPSHOT proto-google-cloud-developer-knowledge-v1 Proto library for google-cloud-developer-knowledge com.google.cloud google-cloud-developer-knowledge-parent - 0.1.0 + 0.2.0-SNAPSHOT diff --git a/java-devicestreaming/google-cloud-devicestreaming-bom/pom.xml b/java-devicestreaming/google-cloud-devicestreaming-bom/pom.xml index fc7517f26ba1..7a3a8c049f48 100644 --- a/java-devicestreaming/google-cloud-devicestreaming-bom/pom.xml +++ b/java-devicestreaming/google-cloud-devicestreaming-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-devicestreaming-bom - 0.33.0 + 0.34.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-devicestreaming - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-devicestreaming-v1 - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc proto-google-cloud-devicestreaming-v1 - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-devicestreaming/google-cloud-devicestreaming/pom.xml b/java-devicestreaming/google-cloud-devicestreaming/pom.xml index d970d8fb80f5..949bcdf7db95 100644 --- a/java-devicestreaming/google-cloud-devicestreaming/pom.xml +++ b/java-devicestreaming/google-cloud-devicestreaming/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-devicestreaming - 0.33.0 + 0.34.0-SNAPSHOT jar Google Device Streaming API Device Streaming API The Cloud API for device streaming usage. com.google.cloud google-cloud-devicestreaming-parent - 0.33.0 + 0.34.0-SNAPSHOT google-cloud-devicestreaming diff --git a/java-devicestreaming/google-cloud-devicestreaming/src/main/java/com/google/cloud/devicestreaming/v1/stub/Version.java b/java-devicestreaming/google-cloud-devicestreaming/src/main/java/com/google/cloud/devicestreaming/v1/stub/Version.java index 8b70c0d691bf..48e5e2cad444 100644 --- a/java-devicestreaming/google-cloud-devicestreaming/src/main/java/com/google/cloud/devicestreaming/v1/stub/Version.java +++ b/java-devicestreaming/google-cloud-devicestreaming/src/main/java/com/google/cloud/devicestreaming/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-devicestreaming:current} - static final String VERSION = "0.33.0"; + static final String VERSION = "0.34.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-devicestreaming/grpc-google-cloud-devicestreaming-v1/pom.xml b/java-devicestreaming/grpc-google-cloud-devicestreaming-v1/pom.xml index 5cd0e98c78e9..8dad6d1803f3 100644 --- a/java-devicestreaming/grpc-google-cloud-devicestreaming-v1/pom.xml +++ b/java-devicestreaming/grpc-google-cloud-devicestreaming-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-devicestreaming-v1 - 0.33.0 + 0.34.0-SNAPSHOT grpc-google-cloud-devicestreaming-v1 GRPC library for google-cloud-devicestreaming com.google.cloud google-cloud-devicestreaming-parent - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-devicestreaming/pom.xml b/java-devicestreaming/pom.xml index cab5a2de24f8..8abf824607e9 100644 --- a/java-devicestreaming/pom.xml +++ b/java-devicestreaming/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-devicestreaming-parent pom - 0.33.0 + 0.34.0-SNAPSHOT Google Device Streaming API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-devicestreaming - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-devicestreaming-v1 - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc proto-google-cloud-devicestreaming-v1 - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-devicestreaming/proto-google-cloud-devicestreaming-v1/pom.xml b/java-devicestreaming/proto-google-cloud-devicestreaming-v1/pom.xml index 5027cc055c93..54f5fca30cab 100644 --- a/java-devicestreaming/proto-google-cloud-devicestreaming-v1/pom.xml +++ b/java-devicestreaming/proto-google-cloud-devicestreaming-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-devicestreaming-v1 - 0.33.0 + 0.34.0-SNAPSHOT proto-google-cloud-devicestreaming-v1 Proto library for google-cloud-devicestreaming com.google.cloud google-cloud-devicestreaming-parent - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml b/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml index ad9ca2803bcd..27ff72850392 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dialogflow-cx-bom - 0.104.0 + 0.105.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-dialogflow-cx - 0.104.0 + 0.105.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.104.0 + 0.105.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.104.0 + 0.105.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.104.0 + 0.105.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.104.0 + 0.105.0-SNAPSHOT diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml b/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml index 8e489fef09da..014f30f37623 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dialogflow-cx - 0.104.0 + 0.105.0-SNAPSHOT jar Google Dialogflow CX provides a new way of designing agents, taking a state machine approach to agent design. This gives you clear and explicit control over a conversation, a better end-user experience, and a better development workflow. com.google.cloud google-cloud-dialogflow-cx-parent - 0.104.0 + 0.105.0-SNAPSHOT google-cloud-dialogflow-cx diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/Version.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/Version.java index 57cd57dc0cf4..f5e121f7d0d9 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/Version.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-dialogflow-cx:current} - static final String VERSION = "0.104.0"; + static final String VERSION = "0.105.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/Version.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/Version.java index 48e85823ed7e..6028d8c83a1e 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/Version.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-dialogflow-cx:current} - static final String VERSION = "0.104.0"; + static final String VERSION = "0.105.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml index e7d8fe58db4a..4e5338ea6a8e 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.104.0 + 0.105.0-SNAPSHOT grpc-google-cloud-dialogflow-cx-v3 GRPC library for grpc-google-cloud-dialogflow-cx-v3 com.google.cloud google-cloud-dialogflow-cx-parent - 0.104.0 + 0.105.0-SNAPSHOT diff --git a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml index 440d4e1a4735..10f6bc1b1466 100644 --- a/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml +++ b/java-dialogflow-cx/grpc-google-cloud-dialogflow-cx-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.104.0 + 0.105.0-SNAPSHOT grpc-google-cloud-dialogflow-cx-v3beta1 GRPC library for grpc-google-cloud-dialogflow-cx-v3beta1 com.google.cloud google-cloud-dialogflow-cx-parent - 0.104.0 + 0.105.0-SNAPSHOT diff --git a/java-dialogflow-cx/pom.xml b/java-dialogflow-cx/pom.xml index b88ee67b383b..3857dcd9b419 100644 --- a/java-dialogflow-cx/pom.xml +++ b/java-dialogflow-cx/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dialogflow-cx-parent pom - 0.104.0 + 0.105.0-SNAPSHOT Google Dialogflow CX Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-dialogflow-cx - 0.104.0 + 0.105.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.104.0 + 0.105.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.104.0 + 0.105.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3beta1 - 0.104.0 + 0.105.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-cx-v3 - 0.104.0 + 0.105.0-SNAPSHOT diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml index 3e98d8b5abf8..c187cd2031fa 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3 - 0.104.0 + 0.105.0-SNAPSHOT proto-google-cloud-dialogflow-cx-v3 PROTO library for proto-google-cloud-dialogflow-cx-v3 com.google.cloud google-cloud-dialogflow-cx-parent - 0.104.0 + 0.105.0-SNAPSHOT diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml index 3c7d5b6c36d6..091917c04910 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-cx-v3beta1 - 0.104.0 + 0.105.0-SNAPSHOT proto-google-cloud-dialogflow-cx-v3beta1 PROTO library for proto-google-cloud-dialogflow-cx-v3beta1 com.google.cloud google-cloud-dialogflow-cx-parent - 0.104.0 + 0.105.0-SNAPSHOT diff --git a/java-dialogflow/google-cloud-dialogflow-bom/pom.xml b/java-dialogflow/google-cloud-dialogflow-bom/pom.xml index d19bce52fdc6..8767e886de1d 100644 --- a/java-dialogflow/google-cloud-dialogflow-bom/pom.xml +++ b/java-dialogflow/google-cloud-dialogflow-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dialogflow-bom - 4.99.0 + 4.100.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,27 +24,27 @@ com.google.cloud google-cloud-dialogflow - 4.99.0 + 4.100.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 4.99.0 + 4.100.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 4.99.0 + 4.100.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-v2 - 4.99.0 + 4.100.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 4.99.0 + 4.100.0-SNAPSHOT diff --git a/java-dialogflow/google-cloud-dialogflow/pom.xml b/java-dialogflow/google-cloud-dialogflow/pom.xml index b1a8a9cafcfb..a1ea3b32b036 100644 --- a/java-dialogflow/google-cloud-dialogflow/pom.xml +++ b/java-dialogflow/google-cloud-dialogflow/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dialogflow - 4.99.0 + 4.100.0-SNAPSHOT jar Google Cloud Dialog Flow API Java idiomatic client for Google Cloud Dialog Flow API com.google.cloud google-cloud-dialogflow-parent - 4.99.0 + 4.100.0-SNAPSHOT google-cloud-dialogflow diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/Version.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/Version.java index 3b2192076a30..91b6c9f74896 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/Version.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-dialogflow:current} - static final String VERSION = "4.99.0"; + static final String VERSION = "4.100.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/Version.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/Version.java index ed305f7c4f08..88451902b0f2 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/Version.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-dialogflow:current} - static final String VERSION = "4.99.0"; + static final String VERSION = "4.100.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml b/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml index a05dc397041b..64d298d5ce2e 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 4.99.0 + 4.100.0-SNAPSHOT grpc-google-cloud-dialogflow-v2 GRPC library for grpc-google-cloud-dialogflow-v2 com.google.cloud google-cloud-dialogflow-parent - 4.99.0 + 4.100.0-SNAPSHOT diff --git a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml index 2327d15d132c..4a92bf494308 100644 --- a/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml +++ b/java-dialogflow/grpc-google-cloud-dialogflow-v2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 4.99.0 + 4.100.0-SNAPSHOT grpc-google-cloud-dialogflow-v2beta1 GRPC library for grpc-google-cloud-dialogflow-v2beta1 com.google.cloud google-cloud-dialogflow-parent - 4.99.0 + 4.100.0-SNAPSHOT diff --git a/java-dialogflow/pom.xml b/java-dialogflow/pom.xml index 557c87ec15f0..35e2f406a1fe 100644 --- a/java-dialogflow/pom.xml +++ b/java-dialogflow/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dialogflow-parent pom - 4.99.0 + 4.100.0-SNAPSHOT Google Cloud Dialog Flow API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.api.grpc proto-google-cloud-dialogflow-v2 - 4.99.0 + 4.100.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 4.99.0 + 4.100.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2beta1 - 4.99.0 + 4.100.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dialogflow-v2 - 4.99.0 + 4.100.0-SNAPSHOT com.google.cloud google-cloud-dialogflow - 4.99.0 + 4.100.0-SNAPSHOT diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml b/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml index f6b720c85c9f..85492a0da15d 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-v2 - 4.99.0 + 4.100.0-SNAPSHOT proto-google-cloud-dialogflow-v2 PROTO library for proto-google-cloud-dialogflow-v2 com.google.cloud google-cloud-dialogflow-parent - 4.99.0 + 4.100.0-SNAPSHOT diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml index 26a3d2e0a3c8..27de2da0c29b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dialogflow-v2beta1 - 4.99.0 + 4.100.0-SNAPSHOT proto-google-cloud-dialogflow-v2beta1 PROTO library for proto-google-cloud-dialogflow-v2beta1 com.google.cloud google-cloud-dialogflow-parent - 4.99.0 + 4.100.0-SNAPSHOT diff --git a/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml b/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml index 6673bd22c9e4..a24c608223db 100644 --- a/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml +++ b/java-discoveryengine/google-cloud-discoveryengine-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-discoveryengine-bom - 0.89.0 + 0.90.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,37 +28,37 @@ com.google.cloud google-cloud-discoveryengine - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-discoveryengine-v1beta - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-discoveryengine-v1 - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-discoveryengine-v1alpha - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc proto-google-cloud-discoveryengine-v1beta - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc proto-google-cloud-discoveryengine-v1 - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc proto-google-cloud-discoveryengine-v1alpha - 0.89.0 + 0.90.0-SNAPSHOT diff --git a/java-discoveryengine/google-cloud-discoveryengine/pom.xml b/java-discoveryengine/google-cloud-discoveryengine/pom.xml index 631161486391..60c900310f13 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/pom.xml +++ b/java-discoveryengine/google-cloud-discoveryengine/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-discoveryengine - 0.89.0 + 0.90.0-SNAPSHOT jar Google Discovery Engine API Discovery Engine API A Cloud API that offers search and recommendation discoverability for documents from different industry verticals (e.g. media, retail, etc.). com.google.cloud google-cloud-discoveryengine-parent - 0.89.0 + 0.90.0-SNAPSHOT google-cloud-discoveryengine diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/Version.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/Version.java index 8226998c7f36..0edc0c6f78ce 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/Version.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-discoveryengine:current} - static final String VERSION = "0.89.0"; + static final String VERSION = "0.90.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/Version.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/Version.java index 6cfcf5df1476..b07478a05495 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/Version.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-discoveryengine:current} - static final String VERSION = "0.89.0"; + static final String VERSION = "0.90.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/Version.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/Version.java index 79db3c99686b..4e6f5eecf6a6 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/Version.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-discoveryengine:current} - static final String VERSION = "0.89.0"; + static final String VERSION = "0.90.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml index 393dd22397a7..5c04d812a4e9 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1 - 0.89.0 + 0.90.0-SNAPSHOT grpc-google-cloud-discoveryengine-v1 GRPC library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.89.0 + 0.90.0-SNAPSHOT diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml index c94b9cfb5502..f0a337491896 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1alpha - 0.89.0 + 0.90.0-SNAPSHOT grpc-google-cloud-discoveryengine-v1alpha GRPC library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.89.0 + 0.90.0-SNAPSHOT diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml index f1d19e55b54a..fbaeeb800fad 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-discoveryengine-v1beta - 0.89.0 + 0.90.0-SNAPSHOT grpc-google-cloud-discoveryengine-v1beta GRPC library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.89.0 + 0.90.0-SNAPSHOT diff --git a/java-discoveryengine/pom.xml b/java-discoveryengine/pom.xml index 3e7b80abe997..fb081f7089a9 100644 --- a/java-discoveryengine/pom.xml +++ b/java-discoveryengine/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-discoveryengine-parent pom - 0.89.0 + 0.90.0-SNAPSHOT Google Discovery Engine API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,37 +30,37 @@ com.google.cloud google-cloud-discoveryengine - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc proto-google-cloud-discoveryengine-v1alpha - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-discoveryengine-v1alpha - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc proto-google-cloud-discoveryengine-v1 - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-discoveryengine-v1 - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-discoveryengine-v1beta - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc proto-google-cloud-discoveryengine-v1beta - 0.89.0 + 0.90.0-SNAPSHOT diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml index 0f425e0a9857..c604c7bdd12b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1 - 0.89.0 + 0.90.0-SNAPSHOT proto-google-cloud-discoveryengine-v1 Proto library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.89.0 + 0.90.0-SNAPSHOT diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml index 178844598dea..fd7aa1fc15bc 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1alpha - 0.89.0 + 0.90.0-SNAPSHOT proto-google-cloud-discoveryengine-v1alpha Proto library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.89.0 + 0.90.0-SNAPSHOT diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml index e081824b68fb..64577895e1bd 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-discoveryengine-v1beta - 0.89.0 + 0.90.0-SNAPSHOT proto-google-cloud-discoveryengine-v1beta Proto library for google-cloud-discoveryengine com.google.cloud google-cloud-discoveryengine-parent - 0.89.0 + 0.90.0-SNAPSHOT diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml b/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml index 9899894550b6..7c0de059ee94 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-distributedcloudedge-bom - 0.90.0 + 0.91.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-distributedcloudedge - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-distributedcloudedge-v1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-distributedcloudedge-v1 - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml b/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml index 7fd6cda1c652..35aa50e93c8c 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-distributedcloudedge - 0.90.0 + 0.91.0-SNAPSHOT jar Google Google Distributed Cloud Edge Google Distributed Cloud Edge Google Distributed Cloud Edge allows you to run Kubernetes clusters on dedicated hardware provided and maintained by Google that is separate from the Google Cloud data center. com.google.cloud google-cloud-distributedcloudedge-parent - 0.90.0 + 0.91.0-SNAPSHOT google-cloud-distributedcloudedge diff --git a/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/Version.java b/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/Version.java index b07f302dca82..f9643bcf3609 100644 --- a/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/Version.java +++ b/java-distributedcloudedge/google-cloud-distributedcloudedge/src/main/java/com/google/cloud/edgecontainer/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-distributedcloudedge:current} - static final String VERSION = "0.90.0"; + static final String VERSION = "0.91.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml b/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml index 7dcbac62d72f..c0f1c1d51f41 100644 --- a/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml +++ b/java-distributedcloudedge/grpc-google-cloud-distributedcloudedge-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-distributedcloudedge-v1 - 0.90.0 + 0.91.0-SNAPSHOT grpc-google-cloud-distributedcloudedge-v1 GRPC library for google-cloud-distributedcloudedge com.google.cloud google-cloud-distributedcloudedge-parent - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-distributedcloudedge/pom.xml b/java-distributedcloudedge/pom.xml index 8a0aaa5a681d..e8357ea27afc 100644 --- a/java-distributedcloudedge/pom.xml +++ b/java-distributedcloudedge/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-distributedcloudedge-parent pom - 0.90.0 + 0.91.0-SNAPSHOT Google Google Distributed Cloud Edge Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-distributedcloudedge - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-distributedcloudedge-v1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-distributedcloudedge-v1 - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml index f53c7704e13a..436d3bcc4300 100644 --- a/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml +++ b/java-distributedcloudedge/proto-google-cloud-distributedcloudedge-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-distributedcloudedge-v1 - 0.90.0 + 0.91.0-SNAPSHOT proto-google-cloud-distributedcloudedge-v1 Proto library for google-cloud-distributedcloudedge com.google.cloud google-cloud-distributedcloudedge-parent - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-dlp/google-cloud-dlp-bom/pom.xml b/java-dlp/google-cloud-dlp-bom/pom.xml index 1608c9ff5414..5fc91b7b6d7d 100644 --- a/java-dlp/google-cloud-dlp-bom/pom.xml +++ b/java-dlp/google-cloud-dlp-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dlp-bom - 3.97.0 + 3.98.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,17 +24,17 @@ com.google.cloud google-cloud-dlp - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dlp-v2 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dlp-v2 - 3.97.0 + 3.98.0-SNAPSHOT diff --git a/java-dlp/google-cloud-dlp/pom.xml b/java-dlp/google-cloud-dlp/pom.xml index ad884c1cce97..dc034c7e7b67 100644 --- a/java-dlp/google-cloud-dlp/pom.xml +++ b/java-dlp/google-cloud-dlp/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dlp - 3.97.0 + 3.98.0-SNAPSHOT jar Google Cloud DLP Java idiomatic client for Google Cloud DLP com.google.cloud google-cloud-dlp-parent - 3.97.0 + 3.98.0-SNAPSHOT google-cloud-dlp diff --git a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/Version.java b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/Version.java index 5ceda8373538..c510edb742a7 100644 --- a/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/Version.java +++ b/java-dlp/google-cloud-dlp/src/main/java/com/google/cloud/dlp/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-dlp:current} - static final String VERSION = "3.97.0"; + static final String VERSION = "3.98.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-dlp/grpc-google-cloud-dlp-v2/pom.xml b/java-dlp/grpc-google-cloud-dlp-v2/pom.xml index a74072e594b8..081b7fb9ad79 100644 --- a/java-dlp/grpc-google-cloud-dlp-v2/pom.xml +++ b/java-dlp/grpc-google-cloud-dlp-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dlp-v2 - 3.97.0 + 3.98.0-SNAPSHOT grpc-google-cloud-dlp-v2 GRPC library for grpc-google-cloud-dlp-v2 com.google.cloud google-cloud-dlp-parent - 3.97.0 + 3.98.0-SNAPSHOT diff --git a/java-dlp/pom.xml b/java-dlp/pom.xml index 25c7d32195e7..2ffbe82f856a 100644 --- a/java-dlp/pom.xml +++ b/java-dlp/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dlp-parent pom - 3.97.0 + 3.98.0-SNAPSHOT Google Cloud DLP Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.api.grpc proto-google-cloud-dlp-v2 - 3.97.0 + 3.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dlp-v2 - 3.97.0 + 3.98.0-SNAPSHOT com.google.cloud google-cloud-dlp - 3.97.0 + 3.98.0-SNAPSHOT diff --git a/java-dlp/proto-google-cloud-dlp-v2/pom.xml b/java-dlp/proto-google-cloud-dlp-v2/pom.xml index 39c40acb5338..12b300b1e7e8 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/pom.xml +++ b/java-dlp/proto-google-cloud-dlp-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dlp-v2 - 3.97.0 + 3.98.0-SNAPSHOT proto-google-cloud-dlp-v2 PROTO library for proto-google-cloud-dlp-v2 com.google.cloud google-cloud-dlp-parent - 3.97.0 + 3.98.0-SNAPSHOT diff --git a/java-dms/google-cloud-dms-bom/pom.xml b/java-dms/google-cloud-dms-bom/pom.xml index 0cb2fb2a6c02..6a7b390c08d4 100644 --- a/java-dms/google-cloud-dms-bom/pom.xml +++ b/java-dms/google-cloud-dms-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-dms-bom - 2.92.0 + 2.93.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-dms - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dms-v1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dms-v1 - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-dms/google-cloud-dms/pom.xml b/java-dms/google-cloud-dms/pom.xml index ed191158a8b4..4ef5ee64d0fb 100644 --- a/java-dms/google-cloud-dms/pom.xml +++ b/java-dms/google-cloud-dms/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-dms - 2.92.0 + 2.93.0-SNAPSHOT jar Google Database Migration Service Database Migration Service makes it easier for you to migrate your data to Google Cloud. This service helps you lift and shift your MySQL and PostgreSQL workloads into Cloud SQL. com.google.cloud google-cloud-dms-parent - 2.92.0 + 2.93.0-SNAPSHOT google-cloud-dms diff --git a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/Version.java b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/Version.java index 8149f0bb4476..bcb965135988 100644 --- a/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/Version.java +++ b/java-dms/google-cloud-dms/src/main/java/com/google/cloud/clouddms/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-dms:current} - static final String VERSION = "2.92.0"; + static final String VERSION = "2.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-dms/grpc-google-cloud-dms-v1/pom.xml b/java-dms/grpc-google-cloud-dms-v1/pom.xml index ba74a759d585..6db48ae0d39f 100644 --- a/java-dms/grpc-google-cloud-dms-v1/pom.xml +++ b/java-dms/grpc-google-cloud-dms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-dms-v1 - 2.92.0 + 2.93.0-SNAPSHOT grpc-google-cloud-dms-v1 GRPC library for google-cloud-dms com.google.cloud google-cloud-dms-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-dms/pom.xml b/java-dms/pom.xml index 9d0c7c7fa24c..0066582df68f 100644 --- a/java-dms/pom.xml +++ b/java-dms/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dms-parent pom - 2.92.0 + 2.93.0-SNAPSHOT Google Database Migration Service Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-dms - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-dms-v1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-dms-v1 - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-dms/proto-google-cloud-dms-v1/pom.xml b/java-dms/proto-google-cloud-dms-v1/pom.xml index 11ec0304e8c2..83fb87ca9821 100644 --- a/java-dms/proto-google-cloud-dms-v1/pom.xml +++ b/java-dms/proto-google-cloud-dms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-dms-v1 - 2.92.0 + 2.93.0-SNAPSHOT proto-google-cloud-dms-v1 Proto library for google-cloud-dms com.google.cloud google-cloud-dms-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-dns/pom.xml b/java-dns/pom.xml index 70e9b742ce76..76d3f90f13cd 100644 --- a/java-dns/pom.xml +++ b/java-dns/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-dns jar - 2.91.0 + 2.92.0-SNAPSHOT Google Cloud DNS Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-document-ai/google-cloud-document-ai-bom/pom.xml b/java-document-ai/google-cloud-document-ai-bom/pom.xml index 2fdc1e9a610f..587a3a66b0ee 100644 --- a/java-document-ai/google-cloud-document-ai-bom/pom.xml +++ b/java-document-ai/google-cloud-document-ai-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-document-ai-bom - 2.97.0 + 2.98.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -22,27 +22,27 @@ com.google.cloud google-cloud-document-ai - 2.97.0 + 2.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-document-ai-v1beta3 - 2.97.0 + 2.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-document-ai-v1 - 2.97.0 + 2.98.0-SNAPSHOT com.google.api.grpc proto-google-cloud-document-ai-v1beta3 - 2.97.0 + 2.98.0-SNAPSHOT com.google.api.grpc proto-google-cloud-document-ai-v1 - 2.97.0 + 2.98.0-SNAPSHOT diff --git a/java-document-ai/google-cloud-document-ai/pom.xml b/java-document-ai/google-cloud-document-ai/pom.xml index f1fd416baccb..d36acf835edc 100644 --- a/java-document-ai/google-cloud-document-ai/pom.xml +++ b/java-document-ai/google-cloud-document-ai/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-document-ai - 2.97.0 + 2.98.0-SNAPSHOT jar Google Cloud Document AI Java idiomatic client for Google Cloud Document AI com.google.cloud google-cloud-document-ai-parent - 2.97.0 + 2.98.0-SNAPSHOT google-cloud-document-ai diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/Version.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/Version.java index 82c1c518afa5..eb33da5991aa 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/Version.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-document-ai:current} - static final String VERSION = "2.97.0"; + static final String VERSION = "2.98.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/Version.java b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/Version.java index 5d8d66ab30ae..5fcdae2d199a 100644 --- a/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/Version.java +++ b/java-document-ai/google-cloud-document-ai/src/main/java/com/google/cloud/documentai/v1beta3/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-document-ai:current} - static final String VERSION = "2.97.0"; + static final String VERSION = "2.98.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml b/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml index 8673e6531e56..005807305002 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml +++ b/java-document-ai/grpc-google-cloud-document-ai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-document-ai-v1 - 2.97.0 + 2.98.0-SNAPSHOT grpc-google-cloud-document-ai-v1 GRPC library for google-cloud-document-ai com.google.cloud google-cloud-document-ai-parent - 2.97.0 + 2.98.0-SNAPSHOT diff --git a/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml index c51bf8aeb134..078ac930dfae 100644 --- a/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml +++ b/java-document-ai/grpc-google-cloud-document-ai-v1beta3/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-document-ai-v1beta3 - 2.97.0 + 2.98.0-SNAPSHOT grpc-google-cloud-document-ai-v1beta3 GRPC library for grpc-google-cloud-document-ai-v1beta3 com.google.cloud google-cloud-document-ai-parent - 2.97.0 + 2.98.0-SNAPSHOT diff --git a/java-document-ai/pom.xml b/java-document-ai/pom.xml index 3d2e361e0397..0e2049c15c4e 100644 --- a/java-document-ai/pom.xml +++ b/java-document-ai/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-document-ai-parent pom - 2.97.0 + 2.98.0-SNAPSHOT Google Cloud Document AI Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.api.grpc proto-google-cloud-document-ai-v1 - 2.97.0 + 2.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-document-ai-v1 - 2.97.0 + 2.98.0-SNAPSHOT com.google.cloud google-cloud-document-ai - 2.97.0 + 2.98.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-document-ai-v1beta3 - 2.97.0 + 2.98.0-SNAPSHOT com.google.api.grpc proto-google-cloud-document-ai-v1beta3 - 2.97.0 + 2.98.0-SNAPSHOT diff --git a/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml b/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml index 160782976b5e..9a22935e3977 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml +++ b/java-document-ai/proto-google-cloud-document-ai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-document-ai-v1 - 2.97.0 + 2.98.0-SNAPSHOT proto-google-cloud-document-ai-v1 Proto library for google-cloud-document-ai com.google.cloud google-cloud-document-ai-parent - 2.97.0 + 2.98.0-SNAPSHOT diff --git a/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml b/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml index 2f71a6a1b3f0..b7fd63d25056 100644 --- a/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml +++ b/java-document-ai/proto-google-cloud-document-ai-v1beta3/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-document-ai-v1beta3 - 2.97.0 + 2.98.0-SNAPSHOT proto-google-cloud-document-ai-v1beta3 PROTO library for proto-google-cloud-document-ai-v1beta3 com.google.cloud google-cloud-document-ai-parent - 2.97.0 + 2.98.0-SNAPSHOT diff --git a/java-domains/google-cloud-domains-bom/pom.xml b/java-domains/google-cloud-domains-bom/pom.xml index c2b830f93f52..a7cb35d030c7 100644 --- a/java-domains/google-cloud-domains-bom/pom.xml +++ b/java-domains/google-cloud-domains-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-domains-bom - 1.90.0 + 1.91.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,37 +28,37 @@ com.google.cloud google-cloud-domains - 1.90.0 + 1.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-domains-v1beta1 - 1.90.0 + 1.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-domains-v1alpha2 - 1.90.0 + 1.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-domains-v1 - 1.90.0 + 1.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-domains-v1beta1 - 1.90.0 + 1.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-domains-v1alpha2 - 1.90.0 + 1.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-domains-v1 - 1.90.0 + 1.91.0-SNAPSHOT diff --git a/java-domains/google-cloud-domains/pom.xml b/java-domains/google-cloud-domains/pom.xml index cf3b9dec9275..39332abd20b8 100644 --- a/java-domains/google-cloud-domains/pom.xml +++ b/java-domains/google-cloud-domains/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-domains - 1.90.0 + 1.91.0-SNAPSHOT jar Google Cloud Domains allows you to register and manage domains by using Cloud Domains. com.google.cloud google-cloud-domains-parent - 1.90.0 + 1.91.0-SNAPSHOT google-cloud-domains diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/Version.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/Version.java index e2115e0f3779..bccdad171589 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/Version.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-domains:current} - static final String VERSION = "1.90.0"; + static final String VERSION = "1.91.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/Version.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/Version.java index 55b79e2cb9dc..4d9dded5bf9d 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/Version.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-domains:current} - static final String VERSION = "1.90.0"; + static final String VERSION = "1.91.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/Version.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/Version.java index 8ccca0631299..757417eb50fc 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/Version.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-domains:current} - static final String VERSION = "1.90.0"; + static final String VERSION = "1.91.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-domains/grpc-google-cloud-domains-v1/pom.xml b/java-domains/grpc-google-cloud-domains-v1/pom.xml index 66d54e7e33d3..1392e39abf09 100644 --- a/java-domains/grpc-google-cloud-domains-v1/pom.xml +++ b/java-domains/grpc-google-cloud-domains-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-domains-v1 - 1.90.0 + 1.91.0-SNAPSHOT grpc-google-cloud-domains-v1 GRPC library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.90.0 + 1.91.0-SNAPSHOT diff --git a/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml b/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml index 4a9924d99205..7027da3fb874 100644 --- a/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml +++ b/java-domains/grpc-google-cloud-domains-v1alpha2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-domains-v1alpha2 - 1.90.0 + 1.91.0-SNAPSHOT grpc-google-cloud-domains-v1alpha2 GRPC library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.90.0 + 1.91.0-SNAPSHOT diff --git a/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml b/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml index aadead7477bd..671b188d56e9 100644 --- a/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml +++ b/java-domains/grpc-google-cloud-domains-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-domains-v1beta1 - 1.90.0 + 1.91.0-SNAPSHOT grpc-google-cloud-domains-v1beta1 GRPC library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.90.0 + 1.91.0-SNAPSHOT diff --git a/java-domains/pom.xml b/java-domains/pom.xml index 1d41ac5ab63f..5786787c5169 100644 --- a/java-domains/pom.xml +++ b/java-domains/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-domains-parent pom - 1.90.0 + 1.91.0-SNAPSHOT Google Cloud Domains Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,37 +30,37 @@ com.google.cloud google-cloud-domains - 1.90.0 + 1.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-domains-v1 - 1.90.0 + 1.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-domains-v1 - 1.90.0 + 1.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-domains-v1alpha2 - 1.90.0 + 1.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-domains-v1alpha2 - 1.90.0 + 1.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-domains-v1beta1 - 1.90.0 + 1.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-domains-v1beta1 - 1.90.0 + 1.91.0-SNAPSHOT diff --git a/java-domains/proto-google-cloud-domains-v1/pom.xml b/java-domains/proto-google-cloud-domains-v1/pom.xml index 4d7ee6b648f2..fa0e70f2bbee 100644 --- a/java-domains/proto-google-cloud-domains-v1/pom.xml +++ b/java-domains/proto-google-cloud-domains-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-domains-v1 - 1.90.0 + 1.91.0-SNAPSHOT proto-google-cloud-domains-v1 Proto library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.90.0 + 1.91.0-SNAPSHOT diff --git a/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml b/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml index 324558c39e0f..a3c822ce5a1a 100644 --- a/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml +++ b/java-domains/proto-google-cloud-domains-v1alpha2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-domains-v1alpha2 - 1.90.0 + 1.91.0-SNAPSHOT proto-google-cloud-domains-v1alpha2 Proto library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.90.0 + 1.91.0-SNAPSHOT diff --git a/java-domains/proto-google-cloud-domains-v1beta1/pom.xml b/java-domains/proto-google-cloud-domains-v1beta1/pom.xml index 31546731e711..92b3d83b419a 100644 --- a/java-domains/proto-google-cloud-domains-v1beta1/pom.xml +++ b/java-domains/proto-google-cloud-domains-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-domains-v1beta1 - 1.90.0 + 1.91.0-SNAPSHOT proto-google-cloud-domains-v1beta1 Proto library for google-cloud-domains com.google.cloud google-cloud-domains-parent - 1.90.0 + 1.91.0-SNAPSHOT diff --git a/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml b/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml index 5a7feb643d89..8f075649d408 100644 --- a/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml +++ b/java-edgenetwork/google-cloud-edgenetwork-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-edgenetwork-bom - 0.61.0 + 0.62.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-edgenetwork - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-edgenetwork-v1 - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc proto-google-cloud-edgenetwork-v1 - 0.61.0 + 0.62.0-SNAPSHOT diff --git a/java-edgenetwork/google-cloud-edgenetwork/pom.xml b/java-edgenetwork/google-cloud-edgenetwork/pom.xml index 5b4bb47efa90..8c444e3cc6a5 100644 --- a/java-edgenetwork/google-cloud-edgenetwork/pom.xml +++ b/java-edgenetwork/google-cloud-edgenetwork/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-edgenetwork - 0.61.0 + 0.62.0-SNAPSHOT jar Google Distributed Cloud Edge Network API Distributed Cloud Edge Network API Network management API for Distributed Cloud Edge. com.google.cloud google-cloud-edgenetwork-parent - 0.61.0 + 0.62.0-SNAPSHOT google-cloud-edgenetwork diff --git a/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/Version.java b/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/Version.java index 624859a266bf..6b7f83feb66b 100644 --- a/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/Version.java +++ b/java-edgenetwork/google-cloud-edgenetwork/src/main/java/com/google/cloud/edgenetwork/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-edgenetwork:current} - static final String VERSION = "0.61.0"; + static final String VERSION = "0.62.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml b/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml index 40750f2fca1f..bc0583dcbdcd 100644 --- a/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml +++ b/java-edgenetwork/grpc-google-cloud-edgenetwork-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-edgenetwork-v1 - 0.61.0 + 0.62.0-SNAPSHOT grpc-google-cloud-edgenetwork-v1 GRPC library for google-cloud-edgenetwork com.google.cloud google-cloud-edgenetwork-parent - 0.61.0 + 0.62.0-SNAPSHOT diff --git a/java-edgenetwork/pom.xml b/java-edgenetwork/pom.xml index ee56b4c484d6..5df0e20ed9be 100644 --- a/java-edgenetwork/pom.xml +++ b/java-edgenetwork/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-edgenetwork-parent pom - 0.61.0 + 0.62.0-SNAPSHOT Google Distributed Cloud Edge Network API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-edgenetwork - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-edgenetwork-v1 - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc proto-google-cloud-edgenetwork-v1 - 0.61.0 + 0.62.0-SNAPSHOT diff --git a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml index 0294306165ad..0faae719be7a 100644 --- a/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml +++ b/java-edgenetwork/proto-google-cloud-edgenetwork-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-edgenetwork-v1 - 0.61.0 + 0.62.0-SNAPSHOT proto-google-cloud-edgenetwork-v1 Proto library for google-cloud-edgenetwork com.google.cloud google-cloud-edgenetwork-parent - 0.61.0 + 0.62.0-SNAPSHOT diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml index cc89699b9b91..f0dada3afd15 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-enterpriseknowledgegraph-bom - 0.89.0 + 0.90.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-enterpriseknowledgegraph - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-enterpriseknowledgegraph-v1 - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc proto-google-cloud-enterpriseknowledgegraph-v1 - 0.89.0 + 0.90.0-SNAPSHOT diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml index a181a988f12d..7944da934910 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-enterpriseknowledgegraph - 0.89.0 + 0.90.0-SNAPSHOT jar Google Enterprise Knowledge Graph Enterprise Knowledge Graph Enterprise Knowledge Graph organizes siloed information into organizational knowledge, which involves consolidating, standardizing, and reconciling data in an efficient and useful way. com.google.cloud google-cloud-enterpriseknowledgegraph-parent - 0.89.0 + 0.90.0-SNAPSHOT google-cloud-enterpriseknowledgegraph diff --git a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/Version.java b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/Version.java index 7406634087aa..8ed5dd40062b 100644 --- a/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/Version.java +++ b/java-enterpriseknowledgegraph/google-cloud-enterpriseknowledgegraph/src/main/java/com/google/cloud/enterpriseknowledgegraph/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-enterpriseknowledgegraph:current} - static final String VERSION = "0.89.0"; + static final String VERSION = "0.90.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml b/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml index c9eb69862c01..5461184270e4 100644 --- a/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml +++ b/java-enterpriseknowledgegraph/grpc-google-cloud-enterpriseknowledgegraph-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-enterpriseknowledgegraph-v1 - 0.89.0 + 0.90.0-SNAPSHOT grpc-google-cloud-enterpriseknowledgegraph-v1 GRPC library for google-cloud-enterpriseknowledgegraph com.google.cloud google-cloud-enterpriseknowledgegraph-parent - 0.89.0 + 0.90.0-SNAPSHOT diff --git a/java-enterpriseknowledgegraph/pom.xml b/java-enterpriseknowledgegraph/pom.xml index 32b0d627e817..6393fe93c65e 100644 --- a/java-enterpriseknowledgegraph/pom.xml +++ b/java-enterpriseknowledgegraph/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-enterpriseknowledgegraph-parent pom - 0.89.0 + 0.90.0-SNAPSHOT Google Enterprise Knowledge Graph Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-enterpriseknowledgegraph - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-enterpriseknowledgegraph-v1 - 0.89.0 + 0.90.0-SNAPSHOT com.google.api.grpc proto-google-cloud-enterpriseknowledgegraph-v1 - 0.89.0 + 0.90.0-SNAPSHOT diff --git a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml index 33e13970180e..707b79f7178f 100644 --- a/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml +++ b/java-enterpriseknowledgegraph/proto-google-cloud-enterpriseknowledgegraph-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-enterpriseknowledgegraph-v1 - 0.89.0 + 0.90.0-SNAPSHOT proto-google-cloud-enterpriseknowledgegraph-v1 Proto library for google-cloud-enterpriseknowledgegraph com.google.cloud google-cloud-enterpriseknowledgegraph-parent - 0.89.0 + 0.90.0-SNAPSHOT diff --git a/java-errorreporting/google-cloud-errorreporting-bom/pom.xml b/java-errorreporting/google-cloud-errorreporting-bom/pom.xml index 71b1ff4e085f..6b75fc114332 100644 --- a/java-errorreporting/google-cloud-errorreporting-bom/pom.xml +++ b/java-errorreporting/google-cloud-errorreporting-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-errorreporting-bom - 0.214.0-beta + 0.215.0-beta-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,17 +24,17 @@ com.google.cloud google-cloud-errorreporting - 0.214.0-beta + 0.215.0-beta-SNAPSHOT com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.214.0-beta + 0.215.0-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.214.0-beta + 0.215.0-beta-SNAPSHOT diff --git a/java-errorreporting/google-cloud-errorreporting/pom.xml b/java-errorreporting/google-cloud-errorreporting/pom.xml index 6e56b7144444..e72d884fe1a7 100644 --- a/java-errorreporting/google-cloud-errorreporting/pom.xml +++ b/java-errorreporting/google-cloud-errorreporting/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-errorreporting - 0.214.0-beta + 0.215.0-beta-SNAPSHOT jar Google Cloud Error Reporting Java idiomatic client for Google Cloud Error Reporting com.google.cloud google-cloud-errorreporting-parent - 0.214.0-beta + 0.215.0-beta-SNAPSHOT google-cloud-errorreporting diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/Version.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/Version.java index 21ddc059e8ed..184677d41187 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/Version.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-errorreporting:current} - static final String VERSION = "0.214.0-beta"; + static final String VERSION = "0.215.0-beta-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml b/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml index d9cd96e2d510..4f2b9e5f86af 100644 --- a/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml +++ b/java-errorreporting/grpc-google-cloud-error-reporting-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.214.0-beta + 0.215.0-beta-SNAPSHOT grpc-google-cloud-error-reporting-v1beta1 GRPC library for grpc-google-cloud-error-reporting-v1beta1 com.google.cloud google-cloud-errorreporting-parent - 0.214.0-beta + 0.215.0-beta-SNAPSHOT diff --git a/java-errorreporting/pom.xml b/java-errorreporting/pom.xml index a184745e18f0..4bbd88462f2c 100644 --- a/java-errorreporting/pom.xml +++ b/java-errorreporting/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-errorreporting-parent pom - 0.214.0-beta + 0.215.0-beta-SNAPSHOT Google Cloud Error Reporting Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-errorreporting - 0.214.0-beta + 0.215.0-beta-SNAPSHOT com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.214.0-beta + 0.215.0-beta-SNAPSHOT com.google.api.grpc grpc-google-cloud-error-reporting-v1beta1 - 0.214.0-beta + 0.215.0-beta-SNAPSHOT diff --git a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml index 787dd17abe8c..d09da28c8a2e 100644 --- a/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml +++ b/java-errorreporting/proto-google-cloud-error-reporting-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-error-reporting-v1beta1 - 0.214.0-beta + 0.215.0-beta-SNAPSHOT proto-google-cloud-error-reporting-v1beta1 PROTO library for proto-google-cloud-error-reporting-v1beta1 com.google.cloud google-cloud-errorreporting-parent - 0.214.0-beta + 0.215.0-beta-SNAPSHOT diff --git a/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml b/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml index 7727c041e69f..4651dc578097 100644 --- a/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml +++ b/java-essential-contacts/google-cloud-essential-contacts-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-essential-contacts-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-essential-contacts - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-essential-contacts-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-essential-contacts-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-essential-contacts/google-cloud-essential-contacts/pom.xml b/java-essential-contacts/google-cloud-essential-contacts/pom.xml index 2b26b367f18e..3d78d13cbd40 100644 --- a/java-essential-contacts/google-cloud-essential-contacts/pom.xml +++ b/java-essential-contacts/google-cloud-essential-contacts/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-essential-contacts - 2.93.0 + 2.94.0-SNAPSHOT jar Google Essential Contacts API Essential Contacts API helps you customize who receives notifications by providing your own list of contacts in many Google Cloud services. com.google.cloud google-cloud-essential-contacts-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-essential-contacts diff --git a/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/Version.java b/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/Version.java index 6361e145d079..c2a712940b9e 100644 --- a/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/Version.java +++ b/java-essential-contacts/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-essential-contacts:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml b/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml index c263a02b174f..de4cb688f0cb 100644 --- a/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml +++ b/java-essential-contacts/grpc-google-cloud-essential-contacts-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-essential-contacts-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-essential-contacts-v1 GRPC library for google-cloud-essential-contacts com.google.cloud google-cloud-essential-contacts-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-essential-contacts/pom.xml b/java-essential-contacts/pom.xml index efd65b33afbb..569071baf925 100644 --- a/java-essential-contacts/pom.xml +++ b/java-essential-contacts/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-essential-contacts-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Essential Contacts API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-essential-contacts - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-essential-contacts-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-essential-contacts-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml index 2507cd525b6d..273ff22c6090 100644 --- a/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml +++ b/java-essential-contacts/proto-google-cloud-essential-contacts-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-essential-contacts-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-essential-contacts-v1 Proto library for google-cloud-essential-contacts com.google.cloud google-cloud-essential-contacts-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml b/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml index 1a9295a32582..581f9bb602b6 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-eventarc-publishing-bom - 0.93.0 + 0.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-eventarc-publishing - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-eventarc-publishing-v1 - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-eventarc-publishing-v1 - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml b/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml index b2423a76127c..4bcda98bb39d 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-eventarc-publishing - 0.93.0 + 0.94.0-SNAPSHOT jar Google Eventarc Publishing Eventarc Publishing lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. com.google.cloud google-cloud-eventarc-publishing-parent - 0.93.0 + 0.94.0-SNAPSHOT google-cloud-eventarc-publishing diff --git a/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/Version.java b/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/Version.java index b979178cc0ed..1f55d67200d4 100644 --- a/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/Version.java +++ b/java-eventarc-publishing/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-eventarc-publishing:current} - static final String VERSION = "0.93.0"; + static final String VERSION = "0.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml b/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml index c8984d799820..73219b2abb75 100644 --- a/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml +++ b/java-eventarc-publishing/grpc-google-cloud-eventarc-publishing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-eventarc-publishing-v1 - 0.93.0 + 0.94.0-SNAPSHOT grpc-google-cloud-eventarc-publishing-v1 GRPC library for google-cloud-eventarc-publishing com.google.cloud google-cloud-eventarc-publishing-parent - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-eventarc-publishing/pom.xml b/java-eventarc-publishing/pom.xml index 40862ae7c18b..81833633a598 100644 --- a/java-eventarc-publishing/pom.xml +++ b/java-eventarc-publishing/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-eventarc-publishing-parent pom - 0.93.0 + 0.94.0-SNAPSHOT Google Eventarc Publishing Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-eventarc-publishing - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-eventarc-publishing-v1 - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-eventarc-publishing-v1 - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml b/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml index b7719bce2ef7..c29a809faaef 100644 --- a/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml +++ b/java-eventarc-publishing/proto-google-cloud-eventarc-publishing-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-eventarc-publishing-v1 - 0.93.0 + 0.94.0-SNAPSHOT proto-google-cloud-eventarc-publishing-v1 Proto library for google-cloud-eventarc-publishing com.google.cloud google-cloud-eventarc-publishing-parent - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-eventarc/google-cloud-eventarc-bom/pom.xml b/java-eventarc/google-cloud-eventarc-bom/pom.xml index 01940c79e87a..9d6417201f30 100644 --- a/java-eventarc/google-cloud-eventarc-bom/pom.xml +++ b/java-eventarc/google-cloud-eventarc-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-eventarc-bom - 1.93.0 + 1.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-eventarc - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-eventarc-v1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-eventarc-v1 - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-eventarc/google-cloud-eventarc/pom.xml b/java-eventarc/google-cloud-eventarc/pom.xml index 5118e6846b68..0f90e2a581fc 100644 --- a/java-eventarc/google-cloud-eventarc/pom.xml +++ b/java-eventarc/google-cloud-eventarc/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-eventarc - 1.93.0 + 1.94.0-SNAPSHOT jar Google Eventarc Eventarc lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. com.google.cloud google-cloud-eventarc-parent - 1.93.0 + 1.94.0-SNAPSHOT google-cloud-eventarc diff --git a/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/Version.java b/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/Version.java index 99c1d8d88687..5de5e471be40 100644 --- a/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/Version.java +++ b/java-eventarc/google-cloud-eventarc/src/main/java/com/google/cloud/eventarc/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-eventarc:current} - static final String VERSION = "1.93.0"; + static final String VERSION = "1.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml b/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml index e2cc27dce6ae..f9c52997f147 100644 --- a/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml +++ b/java-eventarc/grpc-google-cloud-eventarc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-eventarc-v1 - 1.93.0 + 1.94.0-SNAPSHOT grpc-google-cloud-eventarc-v1 GRPC library for google-cloud-eventarc com.google.cloud google-cloud-eventarc-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-eventarc/pom.xml b/java-eventarc/pom.xml index 1b262b36ee2e..d97953234cb1 100644 --- a/java-eventarc/pom.xml +++ b/java-eventarc/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-eventarc-parent pom - 1.93.0 + 1.94.0-SNAPSHOT Google Eventarc Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-eventarc - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-eventarc-v1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-eventarc-v1 - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml b/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml index b1022f0aff65..ca7746264306 100644 --- a/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml +++ b/java-eventarc/proto-google-cloud-eventarc-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-eventarc-v1 - 1.93.0 + 1.94.0-SNAPSHOT proto-google-cloud-eventarc-v1 Proto library for google-cloud-eventarc com.google.cloud google-cloud-eventarc-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-filestore/google-cloud-filestore-bom/pom.xml b/java-filestore/google-cloud-filestore-bom/pom.xml index c72b24242821..900e50dd924e 100644 --- a/java-filestore/google-cloud-filestore-bom/pom.xml +++ b/java-filestore/google-cloud-filestore-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-filestore-bom - 1.94.0 + 1.95.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-filestore - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-filestore-v1beta1 - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-filestore-v1 - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-filestore-v1 - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-filestore-v1beta1 - 1.94.0 + 1.95.0-SNAPSHOT diff --git a/java-filestore/google-cloud-filestore/pom.xml b/java-filestore/google-cloud-filestore/pom.xml index df09bc42f15b..8fe5e815bd2b 100644 --- a/java-filestore/google-cloud-filestore/pom.xml +++ b/java-filestore/google-cloud-filestore/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-filestore - 1.94.0 + 1.95.0-SNAPSHOT jar Google Cloud Filestore API Cloud Filestore API instances are fully managed NFS file servers on Google Cloud for use with applications running on Compute Engine virtual machines (VMs) instances or Google Kubernetes Engine clusters. com.google.cloud google-cloud-filestore-parent - 1.94.0 + 1.95.0-SNAPSHOT google-cloud-filestore diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/Version.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/Version.java index 9dd1ff9e1b4e..bf26dd5297bd 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/Version.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-filestore:current} - static final String VERSION = "1.94.0"; + static final String VERSION = "1.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/Version.java b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/Version.java index aaea1d3c0f39..381c315a362d 100644 --- a/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/Version.java +++ b/java-filestore/google-cloud-filestore/src/main/java/com/google/cloud/filestore/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-filestore:current} - static final String VERSION = "1.94.0"; + static final String VERSION = "1.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-filestore/grpc-google-cloud-filestore-v1/pom.xml b/java-filestore/grpc-google-cloud-filestore-v1/pom.xml index fb515eef502c..cb8fca927799 100644 --- a/java-filestore/grpc-google-cloud-filestore-v1/pom.xml +++ b/java-filestore/grpc-google-cloud-filestore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-filestore-v1 - 1.94.0 + 1.95.0-SNAPSHOT grpc-google-cloud-filestore-v1 GRPC library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.94.0 + 1.95.0-SNAPSHOT diff --git a/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml b/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml index d5c06817b836..79e95d450e1b 100644 --- a/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml +++ b/java-filestore/grpc-google-cloud-filestore-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-filestore-v1beta1 - 1.94.0 + 1.95.0-SNAPSHOT grpc-google-cloud-filestore-v1beta1 GRPC library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.94.0 + 1.95.0-SNAPSHOT diff --git a/java-filestore/pom.xml b/java-filestore/pom.xml index e3141cbede3b..a750fe4102e7 100644 --- a/java-filestore/pom.xml +++ b/java-filestore/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-filestore-parent pom - 1.94.0 + 1.95.0-SNAPSHOT Google Cloud Filestore API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-filestore - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-filestore-v1beta1 - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-filestore-v1 - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-filestore-v1 - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-filestore-v1beta1 - 1.94.0 + 1.95.0-SNAPSHOT diff --git a/java-filestore/proto-google-cloud-filestore-v1/pom.xml b/java-filestore/proto-google-cloud-filestore-v1/pom.xml index a958bb4d35de..2d41b3c30e06 100644 --- a/java-filestore/proto-google-cloud-filestore-v1/pom.xml +++ b/java-filestore/proto-google-cloud-filestore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-filestore-v1 - 1.94.0 + 1.95.0-SNAPSHOT proto-google-cloud-filestore-v1 Proto library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.94.0 + 1.95.0-SNAPSHOT diff --git a/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml b/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml index abfb9221f405..6e00b4a872ce 100644 --- a/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml +++ b/java-filestore/proto-google-cloud-filestore-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-filestore-v1beta1 - 1.94.0 + 1.95.0-SNAPSHOT proto-google-cloud-filestore-v1beta1 Proto library for google-cloud-filestore com.google.cloud google-cloud-filestore-parent - 1.94.0 + 1.95.0-SNAPSHOT diff --git a/java-financialservices/google-cloud-financialservices-bom/pom.xml b/java-financialservices/google-cloud-financialservices-bom/pom.xml index d6c522d247cf..c089cfe0d4e8 100644 --- a/java-financialservices/google-cloud-financialservices-bom/pom.xml +++ b/java-financialservices/google-cloud-financialservices-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-financialservices-bom - 0.34.0 + 0.35.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-financialservices - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-financialservices-v1 - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc proto-google-cloud-financialservices-v1 - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-financialservices/google-cloud-financialservices/pom.xml b/java-financialservices/google-cloud-financialservices/pom.xml index c4fb09893434..a23fbf37a491 100644 --- a/java-financialservices/google-cloud-financialservices/pom.xml +++ b/java-financialservices/google-cloud-financialservices/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-financialservices - 0.34.0 + 0.35.0-SNAPSHOT jar Google Financial Services API Financial Services API Google Cloud's Anti Money Laundering AI (AML AI) product is an API that scores AML risk. Use it to identify more risk, more defensibly, with fewer false positives and reduced time per review. com.google.cloud google-cloud-financialservices-parent - 0.34.0 + 0.35.0-SNAPSHOT google-cloud-financialservices diff --git a/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/stub/Version.java b/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/stub/Version.java index b276271a060f..2a72f548bed4 100644 --- a/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/stub/Version.java +++ b/java-financialservices/google-cloud-financialservices/src/main/java/com/google/cloud/financialservices/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-financialservices:current} - static final String VERSION = "0.34.0"; + static final String VERSION = "0.35.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-financialservices/grpc-google-cloud-financialservices-v1/pom.xml b/java-financialservices/grpc-google-cloud-financialservices-v1/pom.xml index c1f145fc667e..1ea69a7a5320 100644 --- a/java-financialservices/grpc-google-cloud-financialservices-v1/pom.xml +++ b/java-financialservices/grpc-google-cloud-financialservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-financialservices-v1 - 0.34.0 + 0.35.0-SNAPSHOT grpc-google-cloud-financialservices-v1 GRPC library for google-cloud-financialservices com.google.cloud google-cloud-financialservices-parent - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-financialservices/pom.xml b/java-financialservices/pom.xml index 08e244f9a2f3..19c7f24c8794 100644 --- a/java-financialservices/pom.xml +++ b/java-financialservices/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-financialservices-parent pom - 0.34.0 + 0.35.0-SNAPSHOT Google Financial Services API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-financialservices - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-financialservices-v1 - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc proto-google-cloud-financialservices-v1 - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-financialservices/proto-google-cloud-financialservices-v1/pom.xml b/java-financialservices/proto-google-cloud-financialservices-v1/pom.xml index 1502973c4e65..fcdbee864dc3 100644 --- a/java-financialservices/proto-google-cloud-financialservices-v1/pom.xml +++ b/java-financialservices/proto-google-cloud-financialservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-financialservices-v1 - 0.34.0 + 0.35.0-SNAPSHOT proto-google-cloud-financialservices-v1 Proto library for google-cloud-financialservices com.google.cloud google-cloud-financialservices-parent - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-firestore/google-cloud-firestore-admin/pom.xml b/java-firestore/google-cloud-firestore-admin/pom.xml index 7b5c502f6273..e96a383af9ec 100644 --- a/java-firestore/google-cloud-firestore-admin/pom.xml +++ b/java-firestore/google-cloud-firestore-admin/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-firestore-admin - 3.43.1 + 3.44.0-SNAPSHOT jar Google Cloud Firestore Admin Client https://github.com/googleapis/java-firestore @@ -14,7 +14,7 @@ com.google.cloud google-cloud-firestore-parent - 3.43.1 + 3.44.0-SNAPSHOT diff --git a/java-firestore/google-cloud-firestore-bom/pom.xml b/java-firestore/google-cloud-firestore-bom/pom.xml index 3752a246a336..99870739b368 100644 --- a/java-firestore/google-cloud-firestore-bom/pom.xml +++ b/java-firestore/google-cloud-firestore-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-firestore-bom - 3.43.1 + 3.44.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -53,37 +53,37 @@ com.google.cloud google-cloud-firestore - 3.43.1 + 3.44.0-SNAPSHOT com.google.cloud google-cloud-firestore-admin - 3.43.1 + 3.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-firestore-admin-v1 - 3.43.1 + 3.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-firestore-v1 - 3.43.1 + 3.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-firestore-admin-v1 - 3.43.1 + 3.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-firestore-v1 - 3.43.1 + 3.44.0-SNAPSHOT com.google.cloud proto-google-cloud-firestore-bundle-v1 - 3.43.1 + 3.44.0-SNAPSHOT diff --git a/java-firestore/google-cloud-firestore/pom.xml b/java-firestore/google-cloud-firestore/pom.xml index 0889004e272b..f126b3337dd4 100644 --- a/java-firestore/google-cloud-firestore/pom.xml +++ b/java-firestore/google-cloud-firestore/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-firestore - 3.43.1 + 3.44.0-SNAPSHOT jar Google Cloud Firestore https://github.com/googleapis/java-firestore @@ -12,7 +12,7 @@ com.google.cloud google-cloud-firestore-parent - 3.43.1 + 3.44.0-SNAPSHOT google-cloud-firestore diff --git a/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/Version.java b/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/Version.java index b7a77a02ae14..4b0ca368843a 100644 --- a/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/Version.java +++ b/java-firestore/google-cloud-firestore/src/main/java/com/google/cloud/firestore/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-firestore:current} - static final String VERSION = "3.43.1"; + static final String VERSION = "3.44.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-firestore/grpc-google-cloud-firestore-admin-v1/pom.xml b/java-firestore/grpc-google-cloud-firestore-admin-v1/pom.xml index cab6a4fb61db..ebb05f7103f1 100644 --- a/java-firestore/grpc-google-cloud-firestore-admin-v1/pom.xml +++ b/java-firestore/grpc-google-cloud-firestore-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-firestore-admin-v1 - 3.43.1 + 3.44.0-SNAPSHOT grpc-google-cloud-firestore-admin-v1 GRPC library for grpc-google-cloud-firestore-admin-v1 com.google.cloud google-cloud-firestore-parent - 3.43.1 + 3.44.0-SNAPSHOT diff --git a/java-firestore/grpc-google-cloud-firestore-v1/pom.xml b/java-firestore/grpc-google-cloud-firestore-v1/pom.xml index 5f47f7706d1c..33cb8a933c60 100644 --- a/java-firestore/grpc-google-cloud-firestore-v1/pom.xml +++ b/java-firestore/grpc-google-cloud-firestore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-firestore-v1 - 3.43.1 + 3.44.0-SNAPSHOT grpc-google-cloud-firestore-v1 GRPC library for grpc-google-cloud-firestore-v1 com.google.cloud google-cloud-firestore-parent - 3.43.1 + 3.44.0-SNAPSHOT diff --git a/java-firestore/pom.xml b/java-firestore/pom.xml index 419cb400e020..88331720420c 100644 --- a/java-firestore/pom.xml +++ b/java-firestore/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-firestore-parent pom - 3.43.1 + 3.44.0-SNAPSHOT Google Cloud Firestore Parent https://github.com/googleapis/google-cloud-java @@ -14,7 +14,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -151,32 +151,32 @@ com.google.api.grpc proto-google-cloud-firestore-admin-v1 - 3.43.1 + 3.44.0-SNAPSHOT com.google.cloud google-cloud-firestore - 3.43.1 + 3.44.0-SNAPSHOT com.google.cloud proto-google-cloud-firestore-bundle-v1 - 3.43.1 + 3.44.0-SNAPSHOT com.google.api.grpc proto-google-cloud-firestore-v1 - 3.43.1 + 3.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-firestore-admin-v1 - 3.43.1 + 3.44.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-firestore-v1 - 3.43.1 + 3.44.0-SNAPSHOT diff --git a/java-firestore/proto-google-cloud-firestore-admin-v1/pom.xml b/java-firestore/proto-google-cloud-firestore-admin-v1/pom.xml index 8892bae6224f..4156e673990f 100644 --- a/java-firestore/proto-google-cloud-firestore-admin-v1/pom.xml +++ b/java-firestore/proto-google-cloud-firestore-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-firestore-admin-v1 - 3.43.1 + 3.44.0-SNAPSHOT proto-google-cloud-firestore-admin-v1 PROTO library for proto-google-cloud-firestore-admin-v1 com.google.cloud google-cloud-firestore-parent - 3.43.1 + 3.44.0-SNAPSHOT diff --git a/java-firestore/proto-google-cloud-firestore-bundle-v1/pom.xml b/java-firestore/proto-google-cloud-firestore-bundle-v1/pom.xml index 74da205c2293..96b02b2247a4 100644 --- a/java-firestore/proto-google-cloud-firestore-bundle-v1/pom.xml +++ b/java-firestore/proto-google-cloud-firestore-bundle-v1/pom.xml @@ -5,14 +5,14 @@ 4.0.0 proto-google-cloud-firestore-bundle-v1 - 3.43.1 + 3.44.0-SNAPSHOT proto-google-cloud-firestore-bundle-v1 PROTO library for proto-google-cloud-firestore-bundle-v1 com.google.cloud google-cloud-firestore-parent - 3.43.1 + 3.44.0-SNAPSHOT diff --git a/java-firestore/proto-google-cloud-firestore-v1/pom.xml b/java-firestore/proto-google-cloud-firestore-v1/pom.xml index 1fb2ce770bef..5a748f0d84a5 100644 --- a/java-firestore/proto-google-cloud-firestore-v1/pom.xml +++ b/java-firestore/proto-google-cloud-firestore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-firestore-v1 - 3.43.1 + 3.44.0-SNAPSHOT proto-google-cloud-firestore-v1 PROTO library for proto-google-cloud-firestore-v1 com.google.cloud google-cloud-firestore-parent - 3.43.1 + 3.44.0-SNAPSHOT diff --git a/java-functions/google-cloud-functions-bom/pom.xml b/java-functions/google-cloud-functions-bom/pom.xml index a93ce6b2d94d..8e9b6085bb58 100644 --- a/java-functions/google-cloud-functions-bom/pom.xml +++ b/java-functions/google-cloud-functions-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-functions-bom - 2.95.0 + 2.96.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,47 +28,47 @@ com.google.cloud google-cloud-functions - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-functions-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-functions-v2beta - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-functions-v2alpha - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-functions-v2 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-functions-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-functions-v2beta - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-functions-v2alpha - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-functions-v2 - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-functions/google-cloud-functions/pom.xml b/java-functions/google-cloud-functions/pom.xml index d4f987e28dee..70f8318fb82c 100644 --- a/java-functions/google-cloud-functions/pom.xml +++ b/java-functions/google-cloud-functions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-functions - 2.95.0 + 2.96.0-SNAPSHOT jar Google Cloud Functions is a scalable pay as you go Functions-as-a-Service (FaaS) to run your code with zero server management. com.google.cloud google-cloud-functions-parent - 2.95.0 + 2.96.0-SNAPSHOT google-cloud-functions diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/Version.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/Version.java index ebb32257e336..1a55490aa083 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/Version.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-functions:current} - static final String VERSION = "2.95.0"; + static final String VERSION = "2.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/Version.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/Version.java index c5a5d0ee9c66..64b8a1b81ce8 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/Version.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-functions:current} - static final String VERSION = "2.95.0"; + static final String VERSION = "2.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/Version.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/Version.java index 2a9835095708..2b738b8e6f38 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/Version.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-functions:current} - static final String VERSION = "2.95.0"; + static final String VERSION = "2.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/Version.java b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/Version.java index 7544e0834d49..d989335ad73e 100644 --- a/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/Version.java +++ b/java-functions/google-cloud-functions/src/main/java/com/google/cloud/functions/v2beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-functions:current} - static final String VERSION = "2.95.0"; + static final String VERSION = "2.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-functions/grpc-google-cloud-functions-v1/pom.xml b/java-functions/grpc-google-cloud-functions-v1/pom.xml index 1caaaf5a0f31..ef91a5f94245 100644 --- a/java-functions/grpc-google-cloud-functions-v1/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v1 - 2.95.0 + 2.96.0-SNAPSHOT grpc-google-cloud-functions-v1 GRPC library for grpc-google-cloud-functions-v1 com.google.cloud google-cloud-functions-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-functions/grpc-google-cloud-functions-v2/pom.xml b/java-functions/grpc-google-cloud-functions-v2/pom.xml index 4af4aa722659..c3c4e5cabc04 100644 --- a/java-functions/grpc-google-cloud-functions-v2/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v2 - 2.95.0 + 2.96.0-SNAPSHOT grpc-google-cloud-functions-v2 GRPC library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml b/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml index 50f7c7be7fe9..4816e00d0f0b 100644 --- a/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v2alpha - 2.95.0 + 2.96.0-SNAPSHOT grpc-google-cloud-functions-v2alpha GRPC library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-functions/grpc-google-cloud-functions-v2beta/pom.xml b/java-functions/grpc-google-cloud-functions-v2beta/pom.xml index 12e964e88ad1..efceb45f8d07 100644 --- a/java-functions/grpc-google-cloud-functions-v2beta/pom.xml +++ b/java-functions/grpc-google-cloud-functions-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-functions-v2beta - 2.95.0 + 2.96.0-SNAPSHOT grpc-google-cloud-functions-v2beta GRPC library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-functions/pom.xml b/java-functions/pom.xml index 502092cc24e0..2f6e62e33ab7 100644 --- a/java-functions/pom.xml +++ b/java-functions/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-functions-parent pom - 2.95.0 + 2.96.0-SNAPSHOT Google Cloud Functions Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,47 +30,47 @@ com.google.cloud google-cloud-functions - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-functions-v2 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-functions-v2 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-functions-v2alpha - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-functions-v2beta - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-functions-v2alpha - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-functions-v2beta - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-functions-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-functions-v1 - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-functions/proto-google-cloud-functions-v1/pom.xml b/java-functions/proto-google-cloud-functions-v1/pom.xml index 329acdf77ac1..aa59dce512ed 100644 --- a/java-functions/proto-google-cloud-functions-v1/pom.xml +++ b/java-functions/proto-google-cloud-functions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v1 - 2.95.0 + 2.96.0-SNAPSHOT proto-google-cloud-functions-v1 PROTO library for proto-google-cloud-functions-v1 com.google.cloud google-cloud-functions-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-functions/proto-google-cloud-functions-v2/pom.xml b/java-functions/proto-google-cloud-functions-v2/pom.xml index 951a49d9dc04..ece98619c4ac 100644 --- a/java-functions/proto-google-cloud-functions-v2/pom.xml +++ b/java-functions/proto-google-cloud-functions-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v2 - 2.95.0 + 2.96.0-SNAPSHOT proto-google-cloud-functions-v2 Proto library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-functions/proto-google-cloud-functions-v2alpha/pom.xml b/java-functions/proto-google-cloud-functions-v2alpha/pom.xml index e217561022b1..cea25ea0fad1 100644 --- a/java-functions/proto-google-cloud-functions-v2alpha/pom.xml +++ b/java-functions/proto-google-cloud-functions-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v2alpha - 2.95.0 + 2.96.0-SNAPSHOT proto-google-cloud-functions-v2alpha Proto library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-functions/proto-google-cloud-functions-v2beta/pom.xml b/java-functions/proto-google-cloud-functions-v2beta/pom.xml index 75f326a5af79..96e1edb7a1ab 100644 --- a/java-functions/proto-google-cloud-functions-v2beta/pom.xml +++ b/java-functions/proto-google-cloud-functions-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-functions-v2beta - 2.95.0 + 2.96.0-SNAPSHOT proto-google-cloud-functions-v2beta Proto library for google-cloud-functions com.google.cloud google-cloud-functions-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml index f6445a7118f7..5a97b4d671f9 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-gdchardwaremanagement-bom - 0.48.0 + 0.49.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-gdchardwaremanagement - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gdchardwaremanagement-v1alpha - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gdchardwaremanagement-v1alpha - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml index 11cbdbc9024f..089dfe18299b 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gdchardwaremanagement - 0.48.0 + 0.49.0-SNAPSHOT jar Google GDC Hardware Management API GDC Hardware Management API Google Distributed Cloud connected allows you to run Kubernetes clusters on dedicated hardware provided and maintained by Google that is separate from the Google Cloud data center. com.google.cloud google-cloud-gdchardwaremanagement-parent - 0.48.0 + 0.49.0-SNAPSHOT google-cloud-gdchardwaremanagement diff --git a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/Version.java b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/Version.java index 309d87e8bcdb..098cbe3ab5bb 100644 --- a/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/Version.java +++ b/java-gdchardwaremanagement/google-cloud-gdchardwaremanagement/src/main/java/com/google/cloud/gdchardwaremanagement/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-gdchardwaremanagement:current} - static final String VERSION = "0.48.0"; + static final String VERSION = "0.49.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml b/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml index 7a0ab0eab55f..e70d911b3108 100644 --- a/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml +++ b/java-gdchardwaremanagement/grpc-google-cloud-gdchardwaremanagement-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gdchardwaremanagement-v1alpha - 0.48.0 + 0.49.0-SNAPSHOT grpc-google-cloud-gdchardwaremanagement-v1alpha GRPC library for google-cloud-gdchardwaremanagement com.google.cloud google-cloud-gdchardwaremanagement-parent - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-gdchardwaremanagement/pom.xml b/java-gdchardwaremanagement/pom.xml index ab03015d757e..191e280a6c92 100644 --- a/java-gdchardwaremanagement/pom.xml +++ b/java-gdchardwaremanagement/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gdchardwaremanagement-parent pom - 0.48.0 + 0.49.0-SNAPSHOT Google GDC Hardware Management API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-gdchardwaremanagement - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gdchardwaremanagement-v1alpha - 0.48.0 + 0.49.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gdchardwaremanagement-v1alpha - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml index 63c3c1db2dec..e4c12a1482c0 100644 --- a/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml +++ b/java-gdchardwaremanagement/proto-google-cloud-gdchardwaremanagement-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gdchardwaremanagement-v1alpha - 0.48.0 + 0.49.0-SNAPSHOT proto-google-cloud-gdchardwaremanagement-v1alpha Proto library for google-cloud-gdchardwaremanagement com.google.cloud google-cloud-gdchardwaremanagement-parent - 0.48.0 + 0.49.0-SNAPSHOT diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics-bom/pom.xml b/java-geminidataanalytics/google-cloud-geminidataanalytics-bom/pom.xml index 824aba346641..6e4dbb4686db 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics-bom/pom.xml +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-geminidataanalytics-bom - 0.21.0 + 0.22.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-geminidataanalytics - 0.21.0 + 0.22.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-geminidataanalytics-v1beta - 0.21.0 + 0.22.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-geminidataanalytics-v1 - 0.21.0 + 0.22.0-SNAPSHOT com.google.api.grpc proto-google-cloud-geminidataanalytics-v1beta - 0.21.0 + 0.22.0-SNAPSHOT com.google.api.grpc proto-google-cloud-geminidataanalytics-v1 - 0.21.0 + 0.22.0-SNAPSHOT diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/pom.xml b/java-geminidataanalytics/google-cloud-geminidataanalytics/pom.xml index 73b17f2c9de9..a29246a012a0 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/pom.xml +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-geminidataanalytics - 0.21.0 + 0.22.0-SNAPSHOT jar Google Data Analytics API with Gemini Data Analytics API with Gemini Use Conversational Analytics API to build an artificial intelligence (AI)-powered chat interface, or data agent, that answers questions about structured data using natural language. com.google.cloud google-cloud-geminidataanalytics-parent - 0.21.0 + 0.22.0-SNAPSHOT google-cloud-geminidataanalytics diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/Version.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/Version.java index 5ec58099cc6d..21011892d74c 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/Version.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-geminidataanalytics:current} - static final String VERSION = "0.21.0"; + static final String VERSION = "0.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/Version.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/Version.java index 41dbee5117f8..60ede2f16685 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/Version.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-geminidataanalytics:current} - static final String VERSION = "0.21.0"; + static final String VERSION = "0.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1/pom.xml b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1/pom.xml index a4413d3979a5..771328eff6ab 100644 --- a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1/pom.xml +++ b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-geminidataanalytics-v1 - 0.21.0 + 0.22.0-SNAPSHOT grpc-google-cloud-geminidataanalytics-v1 GRPC library for google-cloud-geminidataanalytics com.google.cloud google-cloud-geminidataanalytics-parent - 0.21.0 + 0.22.0-SNAPSHOT diff --git a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/pom.xml b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/pom.xml index 012391add55b..aaf4dc4cc1b5 100644 --- a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/pom.xml +++ b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-geminidataanalytics-v1beta - 0.21.0 + 0.22.0-SNAPSHOT grpc-google-cloud-geminidataanalytics-v1beta GRPC library for google-cloud-geminidataanalytics com.google.cloud google-cloud-geminidataanalytics-parent - 0.21.0 + 0.22.0-SNAPSHOT diff --git a/java-geminidataanalytics/pom.xml b/java-geminidataanalytics/pom.xml index 8192e34e0847..17f5dc91b36b 100644 --- a/java-geminidataanalytics/pom.xml +++ b/java-geminidataanalytics/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-geminidataanalytics-parent pom - 0.21.0 + 0.22.0-SNAPSHOT Google Data Analytics API with Gemini Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-geminidataanalytics - 0.21.0 + 0.22.0-SNAPSHOT com.google.api.grpc proto-google-cloud-geminidataanalytics-v1 - 0.21.0 + 0.22.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-geminidataanalytics-v1 - 0.21.0 + 0.22.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-geminidataanalytics-v1beta - 0.21.0 + 0.22.0-SNAPSHOT com.google.api.grpc proto-google-cloud-geminidataanalytics-v1beta - 0.21.0 + 0.22.0-SNAPSHOT diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/pom.xml b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/pom.xml index 8f5bd04bc108..d76fdfa42604 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/pom.xml +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-geminidataanalytics-v1 - 0.21.0 + 0.22.0-SNAPSHOT proto-google-cloud-geminidataanalytics-v1 Proto library for google-cloud-geminidataanalytics com.google.cloud google-cloud-geminidataanalytics-parent - 0.21.0 + 0.22.0-SNAPSHOT diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/pom.xml b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/pom.xml index 4a7eea6edad3..573f43269cf1 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/pom.xml +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-geminidataanalytics-v1beta - 0.21.0 + 0.22.0-SNAPSHOT proto-google-cloud-geminidataanalytics-v1beta Proto library for google-cloud-geminidataanalytics com.google.cloud google-cloud-geminidataanalytics-parent - 0.21.0 + 0.22.0-SNAPSHOT diff --git a/java-gke-backup/google-cloud-gke-backup-bom/pom.xml b/java-gke-backup/google-cloud-gke-backup-bom/pom.xml index d8cf092d4722..d544f722d1c8 100644 --- a/java-gke-backup/google-cloud-gke-backup-bom/pom.xml +++ b/java-gke-backup/google-cloud-gke-backup-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gke-backup-bom - 0.92.0 + 0.93.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-gke-backup - 0.92.0 + 0.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gke-backup-v1 - 0.92.0 + 0.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gke-backup-v1 - 0.92.0 + 0.93.0-SNAPSHOT diff --git a/java-gke-backup/google-cloud-gke-backup/pom.xml b/java-gke-backup/google-cloud-gke-backup/pom.xml index 76e19641734f..e93d5d993bd6 100644 --- a/java-gke-backup/google-cloud-gke-backup/pom.xml +++ b/java-gke-backup/google-cloud-gke-backup/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gke-backup - 0.92.0 + 0.93.0-SNAPSHOT jar Google Backup for GKE Backup for GKE is a service for backing up and restoring workloads in GKE. com.google.cloud google-cloud-gke-backup-parent - 0.92.0 + 0.93.0-SNAPSHOT google-cloud-gke-backup diff --git a/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/Version.java b/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/Version.java index 215b070322e3..56966b5159b4 100644 --- a/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/Version.java +++ b/java-gke-backup/google-cloud-gke-backup/src/main/java/com/google/cloud/gkebackup/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-gke-backup:current} - static final String VERSION = "0.92.0"; + static final String VERSION = "0.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml b/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml index afedc036c549..cbf1217f6964 100644 --- a/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml +++ b/java-gke-backup/grpc-google-cloud-gke-backup-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gke-backup-v1 - 0.92.0 + 0.93.0-SNAPSHOT grpc-google-cloud-gke-backup-v1 GRPC library for google-cloud-gke-backup com.google.cloud google-cloud-gke-backup-parent - 0.92.0 + 0.93.0-SNAPSHOT diff --git a/java-gke-backup/pom.xml b/java-gke-backup/pom.xml index 6e972a11bba9..2ffa837d0681 100644 --- a/java-gke-backup/pom.xml +++ b/java-gke-backup/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gke-backup-parent pom - 0.92.0 + 0.93.0-SNAPSHOT Google Backup for GKE Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-gke-backup - 0.92.0 + 0.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gke-backup-v1 - 0.92.0 + 0.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gke-backup-v1 - 0.92.0 + 0.93.0-SNAPSHOT diff --git a/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml b/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml index 8f1d00ac356b..d35394fdc30c 100644 --- a/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml +++ b/java-gke-backup/proto-google-cloud-gke-backup-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gke-backup-v1 - 0.92.0 + 0.93.0-SNAPSHOT proto-google-cloud-gke-backup-v1 Proto library for google-cloud-gke-backup com.google.cloud google-cloud-gke-backup-parent - 0.92.0 + 0.93.0-SNAPSHOT diff --git a/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml b/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml index deb65b3cfd32..fc1e7e0e36ab 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gke-connect-gateway-bom - 0.94.0 + 0.95.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,12 +28,12 @@ com.google.cloud google-cloud-gke-connect-gateway - 0.94.0 + 0.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gke-connect-gateway-v1beta1 - 0.94.0 + 0.95.0-SNAPSHOT diff --git a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml index 224d7104d1d6..54acd413f241 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gke-connect-gateway - 0.94.0 + 0.95.0-SNAPSHOT jar Google Connect Gateway API Connect Gateway API builds on the power of fleets to let Anthos users connect to and run commands against registered Anthos clusters in a simple, consistent, and secured way, whether the clusters are on Google Cloud, other public clouds, or on premises, and makes it easier to automate DevOps processes across all your clusters. com.google.cloud google-cloud-gke-connect-gateway-parent - 0.94.0 + 0.95.0-SNAPSHOT google-cloud-gke-connect-gateway diff --git a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/stub/Version.java b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/stub/Version.java index 90227d4aed47..33274679a6ab 100644 --- a/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/stub/Version.java +++ b/java-gke-connect-gateway/google-cloud-gke-connect-gateway/src/main/java/com/google/cloud/gkeconnect/gateway/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-gke-connect-gateway:current} - static final String VERSION = "0.94.0"; + static final String VERSION = "0.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-gke-connect-gateway/pom.xml b/java-gke-connect-gateway/pom.xml index 441bb7881b23..c5c98144dc9a 100644 --- a/java-gke-connect-gateway/pom.xml +++ b/java-gke-connect-gateway/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gke-connect-gateway-parent pom - 0.94.0 + 0.95.0-SNAPSHOT Google Connect Gateway API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,12 +30,12 @@ com.google.cloud google-cloud-gke-connect-gateway - 0.94.0 + 0.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gke-connect-gateway-v1beta1 - 0.94.0 + 0.95.0-SNAPSHOT diff --git a/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml b/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml index de519cf47a6c..592a6c8908fa 100644 --- a/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml +++ b/java-gke-connect-gateway/proto-google-cloud-gke-connect-gateway-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gke-connect-gateway-v1beta1 - 0.94.0 + 0.95.0-SNAPSHOT proto-google-cloud-gke-connect-gateway-v1beta1 Proto library for google-cloud-gke-connect-gateway com.google.cloud google-cloud-gke-connect-gateway-parent - 0.94.0 + 0.95.0-SNAPSHOT diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml b/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml index e4d5b6262b58..6623156c82fe 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gke-multi-cloud-bom - 0.92.0 + 0.93.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-gke-multi-cloud - 0.92.0 + 0.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gke-multi-cloud-v1 - 0.92.0 + 0.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gke-multi-cloud-v1 - 0.92.0 + 0.93.0-SNAPSHOT diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml index 097ac5d67588..c855f4be8d32 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gke-multi-cloud - 0.92.0 + 0.93.0-SNAPSHOT jar Google Anthos Multicloud Anthos Multicloud enables you to provision and manage GKE clusters running on AWS and Azure infrastructure through a centralized Google Cloud backed control plane. com.google.cloud google-cloud-gke-multi-cloud-parent - 0.92.0 + 0.93.0-SNAPSHOT google-cloud-gke-multi-cloud diff --git a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/Version.java b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/Version.java index 5c63dcca99d0..0d539fe2e7ab 100644 --- a/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/Version.java +++ b/java-gke-multi-cloud/google-cloud-gke-multi-cloud/src/main/java/com/google/cloud/gkemulticloud/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-gke-multi-cloud:current} - static final String VERSION = "0.92.0"; + static final String VERSION = "0.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml index 6aa8efd8d3b7..192f8fe560fe 100644 --- a/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml +++ b/java-gke-multi-cloud/grpc-google-cloud-gke-multi-cloud-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gke-multi-cloud-v1 - 0.92.0 + 0.93.0-SNAPSHOT grpc-google-cloud-gke-multi-cloud-v1 GRPC library for google-cloud-gke-multi-cloud com.google.cloud google-cloud-gke-multi-cloud-parent - 0.92.0 + 0.93.0-SNAPSHOT diff --git a/java-gke-multi-cloud/pom.xml b/java-gke-multi-cloud/pom.xml index 0eeda5e58616..06b440ca18f3 100644 --- a/java-gke-multi-cloud/pom.xml +++ b/java-gke-multi-cloud/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gke-multi-cloud-parent pom - 0.92.0 + 0.93.0-SNAPSHOT Google Anthos Multicloud Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-gke-multi-cloud - 0.92.0 + 0.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gke-multi-cloud-v1 - 0.92.0 + 0.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gke-multi-cloud-v1 - 0.92.0 + 0.93.0-SNAPSHOT diff --git a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml index 07c77b06932d..cc4209b87392 100644 --- a/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml +++ b/java-gke-multi-cloud/proto-google-cloud-gke-multi-cloud-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gke-multi-cloud-v1 - 0.92.0 + 0.93.0-SNAPSHOT proto-google-cloud-gke-multi-cloud-v1 Proto library for google-cloud-gke-multi-cloud com.google.cloud google-cloud-gke-multi-cloud-parent - 0.92.0 + 0.93.0-SNAPSHOT diff --git a/java-gkehub/google-cloud-gkehub-bom/pom.xml b/java-gkehub/google-cloud-gkehub-bom/pom.xml index bfc6fd111ed0..7db44b54ca4f 100644 --- a/java-gkehub/google-cloud-gkehub-bom/pom.xml +++ b/java-gkehub/google-cloud-gkehub-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gkehub-bom - 1.93.0 + 1.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,47 +28,47 @@ com.google.cloud google-cloud-gkehub - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gkehub-v1beta1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gkehub-v1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gkehub-v1alpha - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gkehub-v1beta - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gkehub-v1beta1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gkehub-v1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gkehub-v1alpha - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gkehub-v1beta - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-gkehub/google-cloud-gkehub/pom.xml b/java-gkehub/google-cloud-gkehub/pom.xml index a59da2a86049..2c12fcd07a80 100644 --- a/java-gkehub/google-cloud-gkehub/pom.xml +++ b/java-gkehub/google-cloud-gkehub/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gkehub - 1.93.0 + 1.94.0-SNAPSHOT jar Google GKE Hub API provides a unified way to work with Kubernetes clusters as part of Anthos, extending GKE to work in multiple environments. You have consistent, unified, and secure infrastructure, cluster, and container management, whether you're using Anthos on Google Cloud (with traditional GKE), hybrid cloud, or multiple public clouds. com.google.cloud google-cloud-gkehub-parent - 1.93.0 + 1.94.0-SNAPSHOT google-cloud-gkehub diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/Version.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/Version.java index 5fb39554d2a0..ea2b43015b00 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/Version.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-gkehub:current} - static final String VERSION = "1.93.0"; + static final String VERSION = "1.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/Version.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/Version.java index 0c9f40af44b3..85648634df95 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/Version.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-gkehub:current} - static final String VERSION = "1.93.0"; + static final String VERSION = "1.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/Version.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/Version.java index 143d49a2ce3c..c2a184ddbb25 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/Version.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-gkehub:current} - static final String VERSION = "1.93.0"; + static final String VERSION = "1.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/Version.java b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/Version.java index 944d72b57303..1f776fadd27d 100644 --- a/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/Version.java +++ b/java-gkehub/google-cloud-gkehub/src/main/java/com/google/cloud/gkehub/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-gkehub:current} - static final String VERSION = "1.93.0"; + static final String VERSION = "1.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml index 4e4afc4d7538..be4d035ccf73 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1 - 1.93.0 + 1.94.0-SNAPSHOT grpc-google-cloud-gkehub-v1 GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml index 18b0bb1b341f..01b578c0ea15 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1alpha - 1.93.0 + 1.94.0-SNAPSHOT grpc-google-cloud-gkehub-v1alpha GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml index 81a37c3e6f0b..ff8741651417 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta - 1.93.0 + 1.94.0-SNAPSHOT grpc-google-cloud-gkehub-v1beta GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml b/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml index ec349b12c786..808a5e09201a 100644 --- a/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml +++ b/java-gkehub/grpc-google-cloud-gkehub-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkehub-v1beta1 - 1.93.0 + 1.94.0-SNAPSHOT grpc-google-cloud-gkehub-v1beta1 GRPC library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-gkehub/pom.xml b/java-gkehub/pom.xml index 82d493cb5e5f..99be0d26f487 100644 --- a/java-gkehub/pom.xml +++ b/java-gkehub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gkehub-parent pom - 1.93.0 + 1.94.0-SNAPSHOT Google GKE Hub API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,47 +30,47 @@ com.google.cloud google-cloud-gkehub - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gkehub-v1beta - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gkehub-v1alpha - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gkehub-v1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gkehub-v1beta - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gkehub-v1alpha - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gkehub-v1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gkehub-v1beta1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gkehub-v1beta1 - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml index c5e7d7d4b02b..a43961de315b 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1 - 1.93.0 + 1.94.0-SNAPSHOT proto-google-cloud-gkehub-v1 Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml index ca93a0df74b9..84b2f2bb72f2 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1alpha - 1.93.0 + 1.94.0-SNAPSHOT proto-google-cloud-gkehub-v1alpha Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml index 853f8cd12e39..7d6951a83636 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta - 1.93.0 + 1.94.0-SNAPSHOT proto-google-cloud-gkehub-v1beta Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml b/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml index ca0fe87138bb..89b81d864c42 100644 --- a/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml +++ b/java-gkehub/proto-google-cloud-gkehub-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkehub-v1beta1 - 1.93.0 + 1.94.0-SNAPSHOT proto-google-cloud-gkehub-v1beta1 Proto library for google-cloud-gkehub com.google.cloud google-cloud-gkehub-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-gkerecommender/google-cloud-gkerecommender-bom/pom.xml b/java-gkerecommender/google-cloud-gkerecommender-bom/pom.xml index d31e4cb41d0f..f6da801229c7 100644 --- a/java-gkerecommender/google-cloud-gkerecommender-bom/pom.xml +++ b/java-gkerecommender/google-cloud-gkerecommender-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-gkerecommender-bom - 0.13.0 + 0.14.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-gkerecommender - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gkerecommender-v1 - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gkerecommender-v1 - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-gkerecommender/google-cloud-gkerecommender/pom.xml b/java-gkerecommender/google-cloud-gkerecommender/pom.xml index 406cc530086c..ff3c9cd2c060 100644 --- a/java-gkerecommender/google-cloud-gkerecommender/pom.xml +++ b/java-gkerecommender/google-cloud-gkerecommender/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gkerecommender - 0.13.0 + 0.14.0-SNAPSHOT jar Google GKE Recommender API GKE Recommender API lets you analyze the performance and cost-efficiency of your inference workloads, and make data-driven decisions about resource allocation and model deployment strategies. com.google.cloud google-cloud-gkerecommender-parent - 0.13.0 + 0.14.0-SNAPSHOT google-cloud-gkerecommender diff --git a/java-gkerecommender/google-cloud-gkerecommender/src/main/java/com/google/cloud/gkerecommender/v1/stub/Version.java b/java-gkerecommender/google-cloud-gkerecommender/src/main/java/com/google/cloud/gkerecommender/v1/stub/Version.java index 6d0a0b2b3c33..531911efe766 100644 --- a/java-gkerecommender/google-cloud-gkerecommender/src/main/java/com/google/cloud/gkerecommender/v1/stub/Version.java +++ b/java-gkerecommender/google-cloud-gkerecommender/src/main/java/com/google/cloud/gkerecommender/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-gkerecommender:current} - static final String VERSION = "0.13.0"; + static final String VERSION = "0.14.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-gkerecommender/grpc-google-cloud-gkerecommender-v1/pom.xml b/java-gkerecommender/grpc-google-cloud-gkerecommender-v1/pom.xml index 3323dc50f73e..90126a9a9016 100644 --- a/java-gkerecommender/grpc-google-cloud-gkerecommender-v1/pom.xml +++ b/java-gkerecommender/grpc-google-cloud-gkerecommender-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gkerecommender-v1 - 0.13.0 + 0.14.0-SNAPSHOT grpc-google-cloud-gkerecommender-v1 GRPC library for google-cloud-gkerecommender com.google.cloud google-cloud-gkerecommender-parent - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-gkerecommender/pom.xml b/java-gkerecommender/pom.xml index afff75e7f893..b536d1f34394 100644 --- a/java-gkerecommender/pom.xml +++ b/java-gkerecommender/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gkerecommender-parent pom - 0.13.0 + 0.14.0-SNAPSHOT Google GKE Recommender API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-gkerecommender - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gkerecommender-v1 - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gkerecommender-v1 - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-gkerecommender/proto-google-cloud-gkerecommender-v1/pom.xml b/java-gkerecommender/proto-google-cloud-gkerecommender-v1/pom.xml index c4ed56c0d7a9..40da090e05de 100644 --- a/java-gkerecommender/proto-google-cloud-gkerecommender-v1/pom.xml +++ b/java-gkerecommender/proto-google-cloud-gkerecommender-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gkerecommender-v1 - 0.13.0 + 0.14.0-SNAPSHOT proto-google-cloud-gkerecommender-v1 Proto library for google-cloud-gkerecommender com.google.cloud google-cloud-gkerecommender-parent - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-grafeas/pom.xml b/java-grafeas/pom.xml index 4a4470c56eed..9e919a98f0c6 100644 --- a/java-grafeas/pom.xml +++ b/java-grafeas/pom.xml @@ -5,7 +5,7 @@ 4.0.0 io.grafeas grafeas - 2.94.0 + 2.95.0-SNAPSHOT jar Grafeas Client @@ -15,7 +15,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-grafeas/src/main/java/io/grafeas/v1/stub/Version.java b/java-grafeas/src/main/java/io/grafeas/v1/stub/Version.java index 1616034c418e..ebced8068ce9 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/stub/Version.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:grafeas:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml b/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml index e62d72943743..db62cf99c7f0 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml +++ b/java-gsuite-addons/google-cloud-gsuite-addons-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-gsuite-addons-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,22 +28,22 @@ com.google.cloud google-cloud-gsuite-addons - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gsuite-addons-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gsuite-addons-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-apps-script-type-protos - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml b/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml index 54e58bf6bd03..3c199f42511f 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml +++ b/java-gsuite-addons/google-cloud-gsuite-addons/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-gsuite-addons - 2.93.0 + 2.94.0-SNAPSHOT jar Google Google Workspace Add-ons API Google Workspace Add-ons API are customized applications that integrate with Google Workspace productivity applications. com.google.cloud google-cloud-gsuite-addons-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-gsuite-addons diff --git a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/Version.java b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/Version.java index d7ec3a1440bb..f99b69683c24 100644 --- a/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/Version.java +++ b/java-gsuite-addons/google-cloud-gsuite-addons/src/main/java/com/google/cloud/gsuiteaddons/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-gsuite-addons:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml b/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml index c5b75d17d1ba..647328c10e82 100644 --- a/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml +++ b/java-gsuite-addons/grpc-google-cloud-gsuite-addons-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-gsuite-addons-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-gsuite-addons-v1 GRPC library for google-cloud-gsuite-addons com.google.cloud google-cloud-gsuite-addons-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-gsuite-addons/pom.xml b/java-gsuite-addons/pom.xml index 4e20316f6e77..14c8e73c2153 100644 --- a/java-gsuite-addons/pom.xml +++ b/java-gsuite-addons/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-gsuite-addons-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Google Workspace Add-ons API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,22 +30,22 @@ com.google.cloud google-cloud-gsuite-addons - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-apps-script-type-protos - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-gsuite-addons-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-gsuite-addons-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml b/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml index 0ead811835ae..1fc043ce4d62 100644 --- a/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml +++ b/java-gsuite-addons/proto-google-apps-script-type-protos/pom.xml @@ -5,13 +5,13 @@ com.google.cloud google-cloud-gsuite-addons-parent - 2.93.0 + 2.94.0-SNAPSHOT 4.0.0 com.google.api.grpc proto-google-apps-script-type-protos proto-google-apps-script-type-protos - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml index 40b1e210aa7e..d88d39a60b3a 100644 --- a/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml +++ b/java-gsuite-addons/proto-google-cloud-gsuite-addons-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-gsuite-addons-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-gsuite-addons-v1 Proto library for google-cloud-gsuite-addons com.google.cloud google-cloud-gsuite-addons-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-health/google-cloud-health-bom/pom.xml b/java-health/google-cloud-health-bom/pom.xml index 40812bdc5b68..6730de60fcda 100644 --- a/java-health/google-cloud-health-bom/pom.xml +++ b/java-health/google-cloud-health-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-health-bom - 0.2.0 + 0.3.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-health - 0.2.0 + 0.3.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-health-v4 - 0.2.0 + 0.3.0-SNAPSHOT com.google.api.grpc proto-google-cloud-health-v4 - 0.2.0 + 0.3.0-SNAPSHOT diff --git a/java-health/google-cloud-health/pom.xml b/java-health/google-cloud-health/pom.xml index 4919a4b73f27..51f11dd836bf 100644 --- a/java-health/google-cloud-health/pom.xml +++ b/java-health/google-cloud-health/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-health - 0.2.0 + 0.3.0-SNAPSHOT jar Google Google Health API Google Health API The Google Health API lets you view and manage health and fitness metrics and measurement data. com.google.cloud google-cloud-health-parent - 0.2.0 + 0.3.0-SNAPSHOT google-cloud-health diff --git a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/Version.java b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/Version.java index a93b1b7de256..fc02f104cd3d 100644 --- a/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/Version.java +++ b/java-health/google-cloud-health/src/main/java/com/google/devicesandservices/health/v4/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-health:current} - static final String VERSION = "0.2.0"; + static final String VERSION = "0.3.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-health/grpc-google-cloud-health-v4/pom.xml b/java-health/grpc-google-cloud-health-v4/pom.xml index 02a970f5efce..02da733c6fc9 100644 --- a/java-health/grpc-google-cloud-health-v4/pom.xml +++ b/java-health/grpc-google-cloud-health-v4/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-health-v4 - 0.2.0 + 0.3.0-SNAPSHOT grpc-google-cloud-health-v4 GRPC library for google-cloud-health com.google.cloud google-cloud-health-parent - 0.2.0 + 0.3.0-SNAPSHOT diff --git a/java-health/pom.xml b/java-health/pom.xml index d4c31ca96445..39c0fbee9592 100644 --- a/java-health/pom.xml +++ b/java-health/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-health-parent pom - 0.2.0 + 0.3.0-SNAPSHOT Google Google Health API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-health - 0.2.0 + 0.3.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-health-v4 - 0.2.0 + 0.3.0-SNAPSHOT com.google.api.grpc proto-google-cloud-health-v4 - 0.2.0 + 0.3.0-SNAPSHOT diff --git a/java-health/proto-google-cloud-health-v4/pom.xml b/java-health/proto-google-cloud-health-v4/pom.xml index 8e0c0f11b51c..e212db75ea60 100644 --- a/java-health/proto-google-cloud-health-v4/pom.xml +++ b/java-health/proto-google-cloud-health-v4/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-health-v4 - 0.2.0 + 0.3.0-SNAPSHOT proto-google-cloud-health-v4 Proto library for google-cloud-health com.google.cloud google-cloud-health-parent - 0.2.0 + 0.3.0-SNAPSHOT diff --git a/java-hypercomputecluster/google-cloud-hypercomputecluster-bom/pom.xml b/java-hypercomputecluster/google-cloud-hypercomputecluster-bom/pom.xml index c648e182bcc0..38bc4bd7bdc0 100644 --- a/java-hypercomputecluster/google-cloud-hypercomputecluster-bom/pom.xml +++ b/java-hypercomputecluster/google-cloud-hypercomputecluster-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-hypercomputecluster-bom - 0.13.0 + 0.14.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-hypercomputecluster - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-hypercomputecluster-v1beta - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-hypercomputecluster-v1 - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc proto-google-cloud-hypercomputecluster-v1beta - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc proto-google-cloud-hypercomputecluster-v1 - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-hypercomputecluster/google-cloud-hypercomputecluster/pom.xml b/java-hypercomputecluster/google-cloud-hypercomputecluster/pom.xml index d7fd2ba84693..e6524fac5443 100644 --- a/java-hypercomputecluster/google-cloud-hypercomputecluster/pom.xml +++ b/java-hypercomputecluster/google-cloud-hypercomputecluster/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-hypercomputecluster - 0.13.0 + 0.14.0-SNAPSHOT jar Google Cluster Director API Cluster Director API simplifies cluster management across compute, network, and storage com.google.cloud google-cloud-hypercomputecluster-parent - 0.13.0 + 0.14.0-SNAPSHOT google-cloud-hypercomputecluster diff --git a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/stub/Version.java b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/stub/Version.java index 6c1ca134a40a..b8a80ceb8dfd 100644 --- a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/stub/Version.java +++ b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-hypercomputecluster:current} - static final String VERSION = "0.13.0"; + static final String VERSION = "0.14.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/stub/Version.java b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/stub/Version.java index aa25f1379bbe..d79956c74b6b 100644 --- a/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/stub/Version.java +++ b/java-hypercomputecluster/google-cloud-hypercomputecluster/src/main/java/com/google/cloud/hypercomputecluster/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-hypercomputecluster:current} - static final String VERSION = "0.13.0"; + static final String VERSION = "0.14.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-hypercomputecluster/grpc-google-cloud-hypercomputecluster-v1/pom.xml b/java-hypercomputecluster/grpc-google-cloud-hypercomputecluster-v1/pom.xml index d9f9233c563a..af4c3bc8ff8a 100644 --- a/java-hypercomputecluster/grpc-google-cloud-hypercomputecluster-v1/pom.xml +++ b/java-hypercomputecluster/grpc-google-cloud-hypercomputecluster-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-hypercomputecluster-v1 - 0.13.0 + 0.14.0-SNAPSHOT grpc-google-cloud-hypercomputecluster-v1 GRPC library for google-cloud-hypercomputecluster com.google.cloud google-cloud-hypercomputecluster-parent - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-hypercomputecluster/grpc-google-cloud-hypercomputecluster-v1beta/pom.xml b/java-hypercomputecluster/grpc-google-cloud-hypercomputecluster-v1beta/pom.xml index 15f841d3c127..9d311fe76c41 100644 --- a/java-hypercomputecluster/grpc-google-cloud-hypercomputecluster-v1beta/pom.xml +++ b/java-hypercomputecluster/grpc-google-cloud-hypercomputecluster-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-hypercomputecluster-v1beta - 0.13.0 + 0.14.0-SNAPSHOT grpc-google-cloud-hypercomputecluster-v1beta GRPC library for google-cloud-hypercomputecluster com.google.cloud google-cloud-hypercomputecluster-parent - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-hypercomputecluster/pom.xml b/java-hypercomputecluster/pom.xml index cb7bdd7063fd..aac305984c57 100644 --- a/java-hypercomputecluster/pom.xml +++ b/java-hypercomputecluster/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-hypercomputecluster-parent pom - 0.13.0 + 0.14.0-SNAPSHOT Google Cluster Director API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-hypercomputecluster - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc proto-google-cloud-hypercomputecluster-v1 - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-hypercomputecluster-v1 - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-hypercomputecluster-v1beta - 0.13.0 + 0.14.0-SNAPSHOT com.google.api.grpc proto-google-cloud-hypercomputecluster-v1beta - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1/pom.xml b/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1/pom.xml index 8c761ef3ffde..fa31879865f2 100644 --- a/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1/pom.xml +++ b/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-hypercomputecluster-v1 - 0.13.0 + 0.14.0-SNAPSHOT proto-google-cloud-hypercomputecluster-v1 Proto library for google-cloud-hypercomputecluster com.google.cloud google-cloud-hypercomputecluster-parent - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1beta/pom.xml b/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1beta/pom.xml index 0a481caaaa97..ebdab57dabc4 100644 --- a/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1beta/pom.xml +++ b/java-hypercomputecluster/proto-google-cloud-hypercomputecluster-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-hypercomputecluster-v1beta - 0.13.0 + 0.14.0-SNAPSHOT proto-google-cloud-hypercomputecluster-v1beta Proto library for google-cloud-hypercomputecluster com.google.cloud google-cloud-hypercomputecluster-parent - 0.13.0 + 0.14.0-SNAPSHOT diff --git a/java-iam-admin/google-iam-admin-bom/pom.xml b/java-iam-admin/google-iam-admin-bom/pom.xml index e290e437d180..81546a76611c 100644 --- a/java-iam-admin/google-iam-admin-bom/pom.xml +++ b/java-iam-admin/google-iam-admin-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-iam-admin-bom - 3.88.0 + 3.89.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-iam-admin - 3.88.0 + 3.89.0-SNAPSHOT com.google.api.grpc grpc-google-iam-admin-v1 - 3.88.0 + 3.89.0-SNAPSHOT com.google.api.grpc proto-google-iam-admin-v1 - 3.88.0 + 3.89.0-SNAPSHOT diff --git a/java-iam-admin/google-iam-admin/pom.xml b/java-iam-admin/google-iam-admin/pom.xml index d7dbbb57e80c..07e15ed0b0bc 100644 --- a/java-iam-admin/google-iam-admin/pom.xml +++ b/java-iam-admin/google-iam-admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-iam-admin - 3.88.0 + 3.89.0-SNAPSHOT jar Google IAM Admin API IAM Admin API you to manage your Service Accounts and IAM bindings. com.google.cloud google-iam-admin-parent - 3.88.0 + 3.89.0-SNAPSHOT google-iam-admin diff --git a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/Version.java b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/Version.java index 6a8739dd27aa..392b88eebd61 100644 --- a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/Version.java +++ b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-iam-admin:current} - static final String VERSION = "3.88.0"; + static final String VERSION = "3.89.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-iam-admin/grpc-google-iam-admin-v1/pom.xml b/java-iam-admin/grpc-google-iam-admin-v1/pom.xml index c8ccb187449b..bc8b604cd099 100644 --- a/java-iam-admin/grpc-google-iam-admin-v1/pom.xml +++ b/java-iam-admin/grpc-google-iam-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-admin-v1 - 3.88.0 + 3.89.0-SNAPSHOT grpc-google-iam-admin-v1 GRPC library for google-iam-admin com.google.cloud google-iam-admin-parent - 3.88.0 + 3.89.0-SNAPSHOT diff --git a/java-iam-admin/pom.xml b/java-iam-admin/pom.xml index 90ac2cc38100..cf2285abc7ab 100644 --- a/java-iam-admin/pom.xml +++ b/java-iam-admin/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-iam-admin-parent pom - 3.88.0 + 3.89.0-SNAPSHOT Google IAM Admin API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-iam-admin - 3.88.0 + 3.89.0-SNAPSHOT com.google.api.grpc grpc-google-iam-admin-v1 - 3.88.0 + 3.89.0-SNAPSHOT com.google.api.grpc proto-google-iam-admin-v1 - 3.88.0 + 3.89.0-SNAPSHOT diff --git a/java-iam-admin/proto-google-iam-admin-v1/pom.xml b/java-iam-admin/proto-google-iam-admin-v1/pom.xml index b2042c9aedce..aa0b0be00d26 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/pom.xml +++ b/java-iam-admin/proto-google-iam-admin-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-admin-v1 - 3.88.0 + 3.89.0-SNAPSHOT proto-google-iam-admin-v1 Proto library for google-iam-admin com.google.cloud google-iam-admin-parent - 3.88.0 + 3.89.0-SNAPSHOT diff --git a/java-iam-policy/google-iam-policy-bom/pom.xml b/java-iam-policy/google-iam-policy-bom/pom.xml index 66d4d1ba705f..bf7b0dcb30dd 100644 --- a/java-iam-policy/google-iam-policy-bom/pom.xml +++ b/java-iam-policy/google-iam-policy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-iam-policy-bom - 1.90.0 + 1.91.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-iam-policy - 1.90.0 + 1.91.0-SNAPSHOT diff --git a/java-iam-policy/google-iam-policy/pom.xml b/java-iam-policy/google-iam-policy/pom.xml index e599d4f35f73..a57d266e3775 100644 --- a/java-iam-policy/google-iam-policy/pom.xml +++ b/java-iam-policy/google-iam-policy/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-iam-policy - 1.90.0 + 1.91.0-SNAPSHOT jar Google IAM Policy Eventarc lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. com.google.cloud google-iam-policy-parent - 1.90.0 + 1.91.0-SNAPSHOT google-iam-policy diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/stub/Version.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/stub/Version.java index 3433e53b77f7..4875a8494a24 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/stub/Version.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-iam-policy:current} - static final String VERSION = "1.90.0"; + static final String VERSION = "1.91.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/Version.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/Version.java index 4840e9ad7e9a..0052565ebfcf 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/Version.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v2beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-iam-policy:current} - static final String VERSION = "1.90.0"; + static final String VERSION = "1.91.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/Version.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/Version.java index d38e43e8c2f4..9d7dfaae1696 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/Version.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-iam-policy:current} - static final String VERSION = "1.90.0"; + static final String VERSION = "1.91.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/Version.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/Version.java index 13122ee800e6..251004e74deb 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/Version.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-iam-policy:current} - static final String VERSION = "1.90.0"; + static final String VERSION = "1.91.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-iam-policy/pom.xml b/java-iam-policy/pom.xml index 989fb21a9172..6483060f3e22 100644 --- a/java-iam-policy/pom.xml +++ b/java-iam-policy/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-iam-policy-parent pom - 1.90.0 + 1.91.0-SNAPSHOT Google IAM Policy Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-iam/grpc-google-iam-v1/pom.xml b/java-iam/grpc-google-iam-v1/pom.xml index 0b60cfacf953..fe9195915e1f 100644 --- a/java-iam/grpc-google-iam-v1/pom.xml +++ b/java-iam/grpc-google-iam-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v1 - 1.67.0 + 1.68.0-SNAPSHOT grpc-google-iam-v1 GRPC library for grpc-google-iam-v1 com.google.cloud google-iam-parent - 1.67.0 + 1.68.0-SNAPSHOT diff --git a/java-iam/grpc-google-iam-v2/pom.xml b/java-iam/grpc-google-iam-v2/pom.xml index eb2e4cb5f000..68b7fc40b82f 100644 --- a/java-iam/grpc-google-iam-v2/pom.xml +++ b/java-iam/grpc-google-iam-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v2 - 1.67.0 + 1.68.0-SNAPSHOT grpc-google-iam-v2 GRPC library for proto-google-iam-v2 com.google.cloud google-iam-parent - 1.67.0 + 1.68.0-SNAPSHOT diff --git a/java-iam/grpc-google-iam-v2beta/pom.xml b/java-iam/grpc-google-iam-v2beta/pom.xml index 73b8186d8993..96c53f0542b5 100644 --- a/java-iam/grpc-google-iam-v2beta/pom.xml +++ b/java-iam/grpc-google-iam-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v2beta - 1.67.0 + 1.68.0-SNAPSHOT grpc-google-iam-v2beta GRPC library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.67.0 + 1.68.0-SNAPSHOT diff --git a/java-iam/grpc-google-iam-v3/pom.xml b/java-iam/grpc-google-iam-v3/pom.xml index 5baaa44b7eaf..56e8746d56d2 100644 --- a/java-iam/grpc-google-iam-v3/pom.xml +++ b/java-iam/grpc-google-iam-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v3 - 1.67.0 + 1.68.0-SNAPSHOT grpc-google-iam-v3 GRPC library for proto-google-iam-v3 com.google.cloud google-iam-parent - 1.67.0 + 1.68.0-SNAPSHOT diff --git a/java-iam/grpc-google-iam-v3beta/pom.xml b/java-iam/grpc-google-iam-v3beta/pom.xml index 18a0ae3d8669..232ebe0ea7da 100644 --- a/java-iam/grpc-google-iam-v3beta/pom.xml +++ b/java-iam/grpc-google-iam-v3beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-iam-v3beta - 1.67.0 + 1.68.0-SNAPSHOT grpc-google-iam-v3beta GRPC library for proto-google-iam-v3beta com.google.cloud google-iam-parent - 1.67.0 + 1.68.0-SNAPSHOT diff --git a/java-iam/pom.xml b/java-iam/pom.xml index e83b8d6b121e..cfde4e93d8b2 100644 --- a/java-iam/pom.xml +++ b/java-iam/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-iam-parent pom - 1.67.0 + 1.68.0-SNAPSHOT Google IAM Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.api gapic-generator-java-pom-parent - 2.73.0 + 2.74.0-SNAPSHOT ../sdk-platform-java/gapic-generator-java-pom-parent @@ -50,7 +50,7 @@ com.google.cloud third-party-dependencies - 3.63.0 + 3.64.0-SNAPSHOT pom import @@ -58,52 +58,52 @@ com.google.api.grpc proto-google-iam-v3beta - 1.67.0 + 1.68.0-SNAPSHOT com.google.api.grpc grpc-google-iam-v3beta - 1.67.0 + 1.68.0-SNAPSHOT com.google.api.grpc proto-google-iam-v2 - 1.67.0 + 1.68.0-SNAPSHOT com.google.api.grpc grpc-google-iam-v2 - 1.67.0 + 1.68.0-SNAPSHOT com.google.api.grpc proto-google-iam-v2beta - 1.67.0 + 1.68.0-SNAPSHOT com.google.api.grpc grpc-google-iam-v1 - 1.67.0 + 1.68.0-SNAPSHOT com.google.api.grpc grpc-google-iam-v2beta - 1.67.0 + 1.68.0-SNAPSHOT com.google.api.grpc proto-google-iam-v1 - 1.67.0 + 1.68.0-SNAPSHOT com.google.api.grpc proto-google-iam-v3 - 1.67.0 + 1.68.0-SNAPSHOT com.google.api.grpc grpc-google-iam-v3 - 1.67.0 + 1.68.0-SNAPSHOT @@ -130,19 +130,19 @@ com.google.api gax-bom - 2.81.0 + 2.82.0-SNAPSHOT pom import com.google.api api-common - 2.64.0 + 2.65.0-SNAPSHOT com.google.api.grpc proto-google-common-protos - 2.72.0 + 2.73.0-SNAPSHOT javax.annotation diff --git a/java-iam/proto-google-iam-v1/pom.xml b/java-iam/proto-google-iam-v1/pom.xml index 471fcd8060b0..57ceb19551f5 100644 --- a/java-iam/proto-google-iam-v1/pom.xml +++ b/java-iam/proto-google-iam-v1/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v1 - 1.67.0 + 1.68.0-SNAPSHOT proto-google-iam-v1 PROTO library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.67.0 + 1.68.0-SNAPSHOT diff --git a/java-iam/proto-google-iam-v2/pom.xml b/java-iam/proto-google-iam-v2/pom.xml index c624be3f4f7c..3c71406d916d 100644 --- a/java-iam/proto-google-iam-v2/pom.xml +++ b/java-iam/proto-google-iam-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v2 - 1.67.0 + 1.68.0-SNAPSHOT proto-google-iam-v2 Proto library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.67.0 + 1.68.0-SNAPSHOT diff --git a/java-iam/proto-google-iam-v2beta/pom.xml b/java-iam/proto-google-iam-v2beta/pom.xml index 89d3c357fd18..d45eb2b17b76 100644 --- a/java-iam/proto-google-iam-v2beta/pom.xml +++ b/java-iam/proto-google-iam-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v2beta - 1.67.0 + 1.68.0-SNAPSHOT proto-google-iam-v2beta Proto library for proto-google-iam-v1 com.google.cloud google-iam-parent - 1.67.0 + 1.68.0-SNAPSHOT diff --git a/java-iam/proto-google-iam-v3/pom.xml b/java-iam/proto-google-iam-v3/pom.xml index e4719f921d33..aaee54ca7329 100644 --- a/java-iam/proto-google-iam-v3/pom.xml +++ b/java-iam/proto-google-iam-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v3 - 1.67.0 + 1.68.0-SNAPSHOT proto-google-iam-v3 Proto library for proto-google-iam-v3 com.google.cloud google-iam-parent - 1.67.0 + 1.68.0-SNAPSHOT diff --git a/java-iam/proto-google-iam-v3beta/pom.xml b/java-iam/proto-google-iam-v3beta/pom.xml index c62793188e47..093d1e9f1687 100644 --- a/java-iam/proto-google-iam-v3beta/pom.xml +++ b/java-iam/proto-google-iam-v3beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-iam-v3beta - 1.67.0 + 1.68.0-SNAPSHOT proto-google-iam-v3beta Proto library for proto-google-iam-v3beta com.google.cloud google-iam-parent - 1.67.0 + 1.68.0-SNAPSHOT diff --git a/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml b/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml index e7c7427d8e91..7703ac5d0ef3 100644 --- a/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml +++ b/java-iamcredentials/google-cloud-iamcredentials-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-iamcredentials-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,17 +24,17 @@ com.google.cloud google-cloud-iamcredentials - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-iamcredentials/google-cloud-iamcredentials/pom.xml b/java-iamcredentials/google-cloud-iamcredentials/pom.xml index df888e0f06ac..3f198c255463 100644 --- a/java-iamcredentials/google-cloud-iamcredentials/pom.xml +++ b/java-iamcredentials/google-cloud-iamcredentials/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-iamcredentials - 2.93.0 + 2.94.0-SNAPSHOT jar Google Cloud IAM Service Account Credentials Java idiomatic client for Google Cloud IAM Service Account Credentials com.google.cloud google-cloud-iamcredentials-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-iamcredentials diff --git a/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/Version.java b/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/Version.java index 695208d09e5f..544b77c0c512 100644 --- a/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/Version.java +++ b/java-iamcredentials/google-cloud-iamcredentials/src/main/java/com/google/cloud/iam/credentials/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-iamcredentials:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml b/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml index f7ba86d206ad..99614f17b382 100644 --- a/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml +++ b/java-iamcredentials/grpc-google-cloud-iamcredentials-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-iamcredentials-v1 GRPC library for grpc-google-cloud-iamcredentials-v1 com.google.cloud google-cloud-iamcredentials-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-iamcredentials/pom.xml b/java-iamcredentials/pom.xml index 354b53a44005..cace8c1427a0 100644 --- a/java-iamcredentials/pom.xml +++ b/java-iamcredentials/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-iamcredentials-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Cloud IAM Service Account Credentials Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-iamcredentials-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.cloud google-cloud-iamcredentials - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml b/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml index 49aae706f33c..2f2aa0005e13 100644 --- a/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml +++ b/java-iamcredentials/proto-google-cloud-iamcredentials-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-iamcredentials-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-iamcredentials-v1 PROTO library for proto-google-cloud-iamcredentials-v1 com.google.cloud google-cloud-iamcredentials-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-iap/google-cloud-iap-bom/pom.xml b/java-iap/google-cloud-iap-bom/pom.xml index e31eb5afbb52..dc3ab2a3f43f 100644 --- a/java-iap/google-cloud-iap-bom/pom.xml +++ b/java-iap/google-cloud-iap-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-iap-bom - 0.49.0 + 0.50.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-iap - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-iap-v1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-iap-v1 - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-iap/google-cloud-iap/pom.xml b/java-iap/google-cloud-iap/pom.xml index 0b873000ea29..e5e6edb00937 100644 --- a/java-iap/google-cloud-iap/pom.xml +++ b/java-iap/google-cloud-iap/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-iap - 0.49.0 + 0.50.0-SNAPSHOT jar Google Cloud Identity-Aware Proxy API Cloud Identity-Aware Proxy API Controls access to cloud applications running on Google Cloud Platform. com.google.cloud google-cloud-iap-parent - 0.49.0 + 0.50.0-SNAPSHOT google-cloud-iap diff --git a/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/Version.java b/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/Version.java index 84515b372d85..cf820083a2fe 100644 --- a/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/Version.java +++ b/java-iap/google-cloud-iap/src/main/java/com/google/cloud/iap/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-iap:current} - static final String VERSION = "0.49.0"; + static final String VERSION = "0.50.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-iap/grpc-google-cloud-iap-v1/pom.xml b/java-iap/grpc-google-cloud-iap-v1/pom.xml index 43f3fc197140..a5c0ef49b6f4 100644 --- a/java-iap/grpc-google-cloud-iap-v1/pom.xml +++ b/java-iap/grpc-google-cloud-iap-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-iap-v1 - 0.49.0 + 0.50.0-SNAPSHOT grpc-google-cloud-iap-v1 GRPC library for google-cloud-iap com.google.cloud google-cloud-iap-parent - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-iap/pom.xml b/java-iap/pom.xml index c505c4a78805..3acb87fe550b 100644 --- a/java-iap/pom.xml +++ b/java-iap/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-iap-parent pom - 0.49.0 + 0.50.0-SNAPSHOT Google Cloud Identity-Aware Proxy API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-iap - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-iap-v1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-iap-v1 - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-iap/proto-google-cloud-iap-v1/pom.xml b/java-iap/proto-google-cloud-iap-v1/pom.xml index c4e25c56bd02..b1da69d298ca 100644 --- a/java-iap/proto-google-cloud-iap-v1/pom.xml +++ b/java-iap/proto-google-cloud-iap-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-iap-v1 - 0.49.0 + 0.50.0-SNAPSHOT proto-google-cloud-iap-v1 Proto library for google-cloud-iap com.google.cloud google-cloud-iap-parent - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-ids/google-cloud-ids-bom/pom.xml b/java-ids/google-cloud-ids-bom/pom.xml index 8dc51daf1592..6d0adc0c3f27 100644 --- a/java-ids/google-cloud-ids-bom/pom.xml +++ b/java-ids/google-cloud-ids-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-ids-bom - 1.92.0 + 1.93.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-ids - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-ids-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-ids-v1 - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-ids/google-cloud-ids/pom.xml b/java-ids/google-cloud-ids/pom.xml index a93da2e2925b..bfebd6beb571 100644 --- a/java-ids/google-cloud-ids/pom.xml +++ b/java-ids/google-cloud-ids/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-ids - 1.92.0 + 1.93.0-SNAPSHOT jar Google Intrusion Detection System Intrusion Detection System monitors your networks, and it alerts you when it detects malicious activity. Cloud IDS is powered by Palo Alto Networks. com.google.cloud google-cloud-ids-parent - 1.92.0 + 1.93.0-SNAPSHOT google-cloud-ids diff --git a/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/Version.java b/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/Version.java index 8b5cfc481e25..b3b2224f28f2 100644 --- a/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/Version.java +++ b/java-ids/google-cloud-ids/src/main/java/com/google/cloud/ids/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-ids:current} - static final String VERSION = "1.92.0"; + static final String VERSION = "1.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-ids/grpc-google-cloud-ids-v1/pom.xml b/java-ids/grpc-google-cloud-ids-v1/pom.xml index e3d42b22f81b..24c03ba28966 100644 --- a/java-ids/grpc-google-cloud-ids-v1/pom.xml +++ b/java-ids/grpc-google-cloud-ids-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-ids-v1 - 1.92.0 + 1.93.0-SNAPSHOT grpc-google-cloud-ids-v1 GRPC library for google-cloud-ids com.google.cloud google-cloud-ids-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-ids/pom.xml b/java-ids/pom.xml index 92f4cd891f7a..2c317223f1ca 100644 --- a/java-ids/pom.xml +++ b/java-ids/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-ids-parent pom - 1.92.0 + 1.93.0-SNAPSHOT Google Intrusion Detection System Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-ids - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-ids-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-ids-v1 - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-ids/proto-google-cloud-ids-v1/pom.xml b/java-ids/proto-google-cloud-ids-v1/pom.xml index 9083623b73a2..effdbf42adc5 100644 --- a/java-ids/proto-google-cloud-ids-v1/pom.xml +++ b/java-ids/proto-google-cloud-ids-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-ids-v1 - 1.92.0 + 1.93.0-SNAPSHOT proto-google-cloud-ids-v1 Proto library for google-cloud-ids com.google.cloud google-cloud-ids-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-infra-manager/google-cloud-infra-manager-bom/pom.xml b/java-infra-manager/google-cloud-infra-manager-bom/pom.xml index c34852c60ab7..915409d35b12 100644 --- a/java-infra-manager/google-cloud-infra-manager-bom/pom.xml +++ b/java-infra-manager/google-cloud-infra-manager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-infra-manager-bom - 0.70.0 + 0.71.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-infra-manager - 0.70.0 + 0.71.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-infra-manager-v1 - 0.70.0 + 0.71.0-SNAPSHOT com.google.api.grpc proto-google-cloud-infra-manager-v1 - 0.70.0 + 0.71.0-SNAPSHOT diff --git a/java-infra-manager/google-cloud-infra-manager/pom.xml b/java-infra-manager/google-cloud-infra-manager/pom.xml index c48b6b22bac7..e0ee4b938d6c 100644 --- a/java-infra-manager/google-cloud-infra-manager/pom.xml +++ b/java-infra-manager/google-cloud-infra-manager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-infra-manager - 0.70.0 + 0.71.0-SNAPSHOT jar Google Infrastructure Manager API Infrastructure Manager API Creates and manages Google Cloud Platform resources and infrastructure. com.google.cloud google-cloud-infra-manager-parent - 0.70.0 + 0.71.0-SNAPSHOT google-cloud-infra-manager diff --git a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/Version.java b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/Version.java index 9ac7045dee44..cfb819993325 100644 --- a/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/Version.java +++ b/java-infra-manager/google-cloud-infra-manager/src/main/java/com/google/cloud/config/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-infra-manager:current} - static final String VERSION = "0.70.0"; + static final String VERSION = "0.71.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml b/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml index 7698fb6e028e..62385e705b89 100644 --- a/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml +++ b/java-infra-manager/grpc-google-cloud-infra-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-infra-manager-v1 - 0.70.0 + 0.71.0-SNAPSHOT grpc-google-cloud-infra-manager-v1 GRPC library for google-cloud-infra-manager com.google.cloud google-cloud-infra-manager-parent - 0.70.0 + 0.71.0-SNAPSHOT diff --git a/java-infra-manager/pom.xml b/java-infra-manager/pom.xml index a7e96348be8d..dfcbfd18dd1a 100644 --- a/java-infra-manager/pom.xml +++ b/java-infra-manager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-infra-manager-parent pom - 0.70.0 + 0.71.0-SNAPSHOT Google Infrastructure Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-infra-manager - 0.70.0 + 0.71.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-infra-manager-v1 - 0.70.0 + 0.71.0-SNAPSHOT com.google.api.grpc proto-google-cloud-infra-manager-v1 - 0.70.0 + 0.71.0-SNAPSHOT diff --git a/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml b/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml index f51bc005560b..e540c9edd7e5 100644 --- a/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml +++ b/java-infra-manager/proto-google-cloud-infra-manager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-infra-manager-v1 - 0.70.0 + 0.71.0-SNAPSHOT proto-google-cloud-infra-manager-v1 Proto library for google-cloud-infra-manager com.google.cloud google-cloud-infra-manager-parent - 0.70.0 + 0.71.0-SNAPSHOT diff --git a/java-iot/google-cloud-iot-bom/pom.xml b/java-iot/google-cloud-iot-bom/pom.xml index 49a01e46f7f4..36f7d0daedb5 100644 --- a/java-iot/google-cloud-iot-bom/pom.xml +++ b/java-iot/google-cloud-iot-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-iot-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,17 +24,17 @@ com.google.cloud google-cloud-iot - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-iot-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-iot-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-iot/google-cloud-iot/pom.xml b/java-iot/google-cloud-iot/pom.xml index 6482cbe69de0..dd4404848fad 100644 --- a/java-iot/google-cloud-iot/pom.xml +++ b/java-iot/google-cloud-iot/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-iot - 2.93.0 + 2.94.0-SNAPSHOT jar Google Cloud IoT Core Java idiomatic client for Google Cloud IoT Core com.google.cloud google-cloud-iot-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-iot diff --git a/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/Version.java b/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/Version.java index 753899c94375..c7ad28a1eae2 100644 --- a/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/Version.java +++ b/java-iot/google-cloud-iot/src/main/java/com/google/cloud/iot/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-iot:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-iot/grpc-google-cloud-iot-v1/pom.xml b/java-iot/grpc-google-cloud-iot-v1/pom.xml index 3d623236f04a..9b9b5e7b794f 100644 --- a/java-iot/grpc-google-cloud-iot-v1/pom.xml +++ b/java-iot/grpc-google-cloud-iot-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-iot-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-iot-v1 GRPC library for grpc-google-cloud-iot-v1 com.google.cloud google-cloud-iot-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-iot/pom.xml b/java-iot/pom.xml index 8a3b485d2e21..f0fe776c2fd7 100644 --- a/java-iot/pom.xml +++ b/java-iot/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-iot-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Cloud IoT Core Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.api.grpc proto-google-cloud-iot-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-iot-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.cloud google-cloud-iot - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-iot/proto-google-cloud-iot-v1/pom.xml b/java-iot/proto-google-cloud-iot-v1/pom.xml index 2e7c753b8cc6..23ff1823b3ed 100644 --- a/java-iot/proto-google-cloud-iot-v1/pom.xml +++ b/java-iot/proto-google-cloud-iot-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-iot-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-iot-v1 PROTO library for proto-google-cloud-iot-v1 com.google.cloud google-cloud-iot-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution-bom/pom.xml b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution-bom/pom.xml index 4015f761a066..874fe3184f5b 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution-bom/pom.xml +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-issue-resolution-bom - 1.21.0 + 1.22.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.shopping google-shopping-merchant-issue-resolution - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-issue-resolution-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-issue-resolution-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-issue-resolution-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-issue-resolution-v1 - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/pom.xml b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/pom.xml index db59a9b3cbb4..98b055f0da30 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/pom.xml +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-issue-resolution - 1.21.0 + 1.22.0-SNAPSHOT jar Google Merchant Issue Resolution API Merchant Issue Resolution API Programatically manage your Merchant Issues com.google.shopping google-shopping-merchant-issue-resolution-parent - 1.21.0 + 1.22.0-SNAPSHOT google-shopping-merchant-issue-resolution diff --git a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/stub/Version.java b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/stub/Version.java index 3b6a3b397063..0d6328734f2d 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/stub/Version.java +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-issue-resolution:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/stub/Version.java b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/stub/Version.java index 1338944a67d2..1dacddf1a1a0 100644 --- a/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/stub/Version.java +++ b/java-java-shopping-merchant-issue-resolution/google-shopping-merchant-issue-resolution/src/main/java/com/google/shopping/merchant/issueresolution/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-issue-resolution:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1/pom.xml b/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1/pom.xml index 7a1769782cb3..84c6196d617c 100644 --- a/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1/pom.xml +++ b/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-issue-resolution-v1 - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-issue-resolution-v1 GRPC library for google-shopping-merchant-issue-resolution com.google.shopping google-shopping-merchant-issue-resolution-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/pom.xml b/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/pom.xml index 646ed8620ca6..10b823e249a5 100644 --- a/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/pom.xml +++ b/java-java-shopping-merchant-issue-resolution/grpc-google-shopping-merchant-issue-resolution-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-issue-resolution-v1beta - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-issue-resolution-v1beta GRPC library for google-shopping-merchant-issue-resolution com.google.shopping google-shopping-merchant-issue-resolution-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-java-shopping-merchant-issue-resolution/pom.xml b/java-java-shopping-merchant-issue-resolution/pom.xml index d01139e16dd4..d9ee7863063f 100644 --- a/java-java-shopping-merchant-issue-resolution/pom.xml +++ b/java-java-shopping-merchant-issue-resolution/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-issue-resolution-parent pom - 1.21.0 + 1.22.0-SNAPSHOT Google Merchant Issue Resolution API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.shopping google-shopping-merchant-issue-resolution - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-issue-resolution-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-issue-resolution-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-issue-resolution-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-issue-resolution-v1beta - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/pom.xml b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/pom.xml index bf3411b668bf..cc860b5f93fa 100644 --- a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/pom.xml +++ b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-issue-resolution-v1 - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-issue-resolution-v1 Proto library for google-shopping-merchant-issue-resolution com.google.shopping google-shopping-merchant-issue-resolution-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/pom.xml b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/pom.xml index 0e8ecdc1b6f0..76ea350ba4d7 100644 --- a/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/pom.xml +++ b/java-java-shopping-merchant-issue-resolution/proto-google-shopping-merchant-issue-resolution-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-issue-resolution-v1beta - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-issue-resolution-v1beta Proto library for google-shopping-merchant-issue-resolution com.google.shopping google-shopping-merchant-issue-resolution-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking-bom/pom.xml b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking-bom/pom.xml index 87b5c9a5efda..5616ac9c21ba 100644 --- a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking-bom/pom.xml +++ b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-order-tracking-bom - 1.21.0 + 1.22.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.shopping google-shopping-merchant-order-tracking - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-order-tracking-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-order-tracking-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-order-tracking-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-order-tracking-v1 - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/pom.xml b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/pom.xml index cd005f360acd..e62f19f8eb38 100644 --- a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/pom.xml +++ b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-order-tracking - 1.21.0 + 1.22.0-SNAPSHOT jar Google Merchant Order Tracking API Merchant Order Tracking API Programmatically manage your Merchant Center Accounts com.google.shopping google-shopping-merchant-order-tracking-parent - 1.21.0 + 1.22.0-SNAPSHOT google-shopping-merchant-order-tracking diff --git a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1/stub/Version.java b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1/stub/Version.java index 8a9d57bb7741..777cd4b01a0c 100644 --- a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1/stub/Version.java +++ b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-order-tracking:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/stub/Version.java b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/stub/Version.java index 19a068e434cc..c29c2f1fd456 100644 --- a/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/stub/Version.java +++ b/java-java-shopping-merchant-order-tracking/google-shopping-merchant-order-tracking/src/main/java/com/google/shopping/merchant/ordertracking/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-order-tracking:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1/pom.xml b/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1/pom.xml index 593631ef12e5..162572c96094 100644 --- a/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1/pom.xml +++ b/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-order-tracking-v1 - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-order-tracking-v1 GRPC library for google-shopping-merchant-order-tracking com.google.shopping google-shopping-merchant-order-tracking-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1beta/pom.xml b/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1beta/pom.xml index 2acb10e41c65..448104be3601 100644 --- a/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1beta/pom.xml +++ b/java-java-shopping-merchant-order-tracking/grpc-google-shopping-merchant-order-tracking-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-order-tracking-v1beta - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-order-tracking-v1beta GRPC library for google-shopping-merchant-order-tracking com.google.shopping google-shopping-merchant-order-tracking-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-java-shopping-merchant-order-tracking/pom.xml b/java-java-shopping-merchant-order-tracking/pom.xml index 54d8000f9128..d0422597fd0b 100644 --- a/java-java-shopping-merchant-order-tracking/pom.xml +++ b/java-java-shopping-merchant-order-tracking/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-order-tracking-parent pom - 1.21.0 + 1.22.0-SNAPSHOT Google Merchant Order Tracking API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.shopping google-shopping-merchant-order-tracking - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-order-tracking-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-order-tracking-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-order-tracking-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-order-tracking-v1beta - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1/pom.xml b/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1/pom.xml index a886664124c6..cad05f67b97f 100644 --- a/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1/pom.xml +++ b/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-order-tracking-v1 - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-order-tracking-v1 Proto library for google-shopping-merchant-order-tracking com.google.shopping google-shopping-merchant-order-tracking-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1beta/pom.xml b/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1beta/pom.xml index 26f34f6370b4..e4e2014e4469 100644 --- a/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1beta/pom.xml +++ b/java-java-shopping-merchant-order-tracking/proto-google-shopping-merchant-order-tracking-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-order-tracking-v1beta - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-order-tracking-v1beta Proto library for google-shopping-merchant-order-tracking com.google.shopping google-shopping-merchant-order-tracking-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-kms/google-cloud-kms-bom/pom.xml b/java-kms/google-cloud-kms-bom/pom.xml index eb64af98de6b..141849d9063e 100644 --- a/java-kms/google-cloud-kms-bom/pom.xml +++ b/java-kms/google-cloud-kms-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-kms-bom - 2.96.0 + 2.97.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,17 +24,17 @@ com.google.cloud google-cloud-kms - 2.96.0 + 2.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-kms-v1 - 2.96.0 + 2.97.0-SNAPSHOT com.google.api.grpc proto-google-cloud-kms-v1 - 2.96.0 + 2.97.0-SNAPSHOT diff --git a/java-kms/google-cloud-kms/pom.xml b/java-kms/google-cloud-kms/pom.xml index 17cc105ae452..ebbd1b86b5a0 100644 --- a/java-kms/google-cloud-kms/pom.xml +++ b/java-kms/google-cloud-kms/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-kms - 2.96.0 + 2.97.0-SNAPSHOT jar Google Cloud KMS Java idiomatic client for Google Cloud KMS com.google.cloud google-cloud-kms-parent - 2.96.0 + 2.97.0-SNAPSHOT google-cloud-kms diff --git a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/Version.java b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/Version.java index fdefb517cbd9..a2104f7221e2 100644 --- a/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/Version.java +++ b/java-kms/google-cloud-kms/src/main/java/com/google/cloud/kms/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-kms:current} - static final String VERSION = "2.96.0"; + static final String VERSION = "2.97.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-kms/grpc-google-cloud-kms-v1/pom.xml b/java-kms/grpc-google-cloud-kms-v1/pom.xml index 334eb6129dc5..844565881841 100644 --- a/java-kms/grpc-google-cloud-kms-v1/pom.xml +++ b/java-kms/grpc-google-cloud-kms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-kms-v1 - 2.96.0 + 2.97.0-SNAPSHOT grpc-google-cloud-kms-v1 GRPC library for grpc-google-cloud-kms-v1 com.google.cloud google-cloud-kms-parent - 2.96.0 + 2.97.0-SNAPSHOT diff --git a/java-kms/pom.xml b/java-kms/pom.xml index 84348cf5429e..1ab3d1dbce1f 100644 --- a/java-kms/pom.xml +++ b/java-kms/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-kms-parent pom - 2.96.0 + 2.97.0-SNAPSHOT Google Cloud KMS Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,22 +30,22 @@ com.google.api.grpc proto-google-cloud-kms-v1 - 2.96.0 + 2.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-kms-v1 - 2.96.0 + 2.97.0-SNAPSHOT com.google.cloud google-cloud-kms - 2.96.0 + 2.97.0-SNAPSHOT com.google.cloud google-cloud-kms-bom - 2.96.0 + 2.97.0-SNAPSHOT diff --git a/java-kms/proto-google-cloud-kms-v1/pom.xml b/java-kms/proto-google-cloud-kms-v1/pom.xml index 564cd70866ee..58fb88914678 100644 --- a/java-kms/proto-google-cloud-kms-v1/pom.xml +++ b/java-kms/proto-google-cloud-kms-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-kms-v1 - 2.96.0 + 2.97.0-SNAPSHOT proto-google-cloud-kms-v1 PROTO library for proto-google-cloud-kms-v1 com.google.cloud google-cloud-kms-parent - 2.96.0 + 2.97.0-SNAPSHOT diff --git a/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml b/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml index 160baf403bc0..108be0fc84c2 100644 --- a/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml +++ b/java-kmsinventory/google-cloud-kmsinventory-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-kmsinventory-bom - 0.82.0 + 0.83.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-kmsinventory - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-kmsinventory-v1 - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc proto-google-cloud-kmsinventory-v1 - 0.82.0 + 0.83.0-SNAPSHOT diff --git a/java-kmsinventory/google-cloud-kmsinventory/pom.xml b/java-kmsinventory/google-cloud-kmsinventory/pom.xml index 7358df5ddb17..c81be3f7e23d 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/pom.xml +++ b/java-kmsinventory/google-cloud-kmsinventory/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-kmsinventory - 0.82.0 + 0.83.0-SNAPSHOT jar Google KMS Inventory API KMS Inventory API KMS Inventory API. com.google.cloud google-cloud-kmsinventory-parent - 0.82.0 + 0.83.0-SNAPSHOT google-cloud-kmsinventory diff --git a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/Version.java b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/Version.java index f870432243eb..4e0e5fbcced2 100644 --- a/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/Version.java +++ b/java-kmsinventory/google-cloud-kmsinventory/src/main/java/com/google/cloud/kms/inventory/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-kmsinventory:current} - static final String VERSION = "0.82.0"; + static final String VERSION = "0.83.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml b/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml index f22c6517d252..33c7e5b12469 100644 --- a/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml +++ b/java-kmsinventory/grpc-google-cloud-kmsinventory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-kmsinventory-v1 - 0.82.0 + 0.83.0-SNAPSHOT grpc-google-cloud-kmsinventory-v1 GRPC library for google-cloud-kmsinventory com.google.cloud google-cloud-kmsinventory-parent - 0.82.0 + 0.83.0-SNAPSHOT diff --git a/java-kmsinventory/pom.xml b/java-kmsinventory/pom.xml index ff798cdbdb85..dda8fa728a43 100644 --- a/java-kmsinventory/pom.xml +++ b/java-kmsinventory/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-kmsinventory-parent pom - 0.82.0 + 0.83.0-SNAPSHOT Google KMS Inventory API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,23 +30,23 @@ com.google.cloud google-cloud-kmsinventory - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-kmsinventory-v1 - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc proto-google-cloud-kmsinventory-v1 - 0.82.0 + 0.83.0-SNAPSHOT com.google.api.grpc proto-google-cloud-kms-v1 - 2.96.0 + 2.97.0-SNAPSHOT diff --git a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml index 5548d5e6256c..0140d8d8f82b 100644 --- a/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml +++ b/java-kmsinventory/proto-google-cloud-kmsinventory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-kmsinventory-v1 - 0.82.0 + 0.83.0-SNAPSHOT proto-google-cloud-kmsinventory-v1 Proto library for google-cloud-kmsinventory com.google.cloud google-cloud-kmsinventory-parent - 0.82.0 + 0.83.0-SNAPSHOT diff --git a/java-language/google-cloud-language-bom/pom.xml b/java-language/google-cloud-language-bom/pom.xml index 671d0bad4a12..fd3665c061e2 100644 --- a/java-language/google-cloud-language-bom/pom.xml +++ b/java-language/google-cloud-language-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-language-bom - 2.94.0 + 2.95.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,37 +24,37 @@ com.google.cloud google-cloud-language - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1beta2 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v2 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1beta2 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v2 - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-language/google-cloud-language/pom.xml b/java-language/google-cloud-language/pom.xml index 770465099676..9437833f8d81 100644 --- a/java-language/google-cloud-language/pom.xml +++ b/java-language/google-cloud-language/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-language - 2.94.0 + 2.95.0-SNAPSHOT jar Google Cloud Natural Language Java idiomatic client for Google Clould Natural Language com.google.cloud google-cloud-language-parent - 2.94.0 + 2.95.0-SNAPSHOT google-cloud-language diff --git a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/Version.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/Version.java index 2b26021cf0d4..ca8d7184d2cb 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/Version.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-language:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/Version.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/Version.java index f0b7a5596807..0f97a419bb76 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/Version.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v1beta2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-language:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/stub/Version.java b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/stub/Version.java index 7beae0ddfdd9..517fee60716f 100644 --- a/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/stub/Version.java +++ b/java-language/google-cloud-language/src/main/java/com/google/cloud/language/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-language:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-language/grpc-google-cloud-language-v1/pom.xml b/java-language/grpc-google-cloud-language-v1/pom.xml index d87de51ff002..1f02e3939c4d 100644 --- a/java-language/grpc-google-cloud-language-v1/pom.xml +++ b/java-language/grpc-google-cloud-language-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-language-v1 - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-language-v1 GRPC library for grpc-google-cloud-language-v1 com.google.cloud google-cloud-language-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-language/grpc-google-cloud-language-v1beta2/pom.xml b/java-language/grpc-google-cloud-language-v1beta2/pom.xml index 8da44332237c..5a7fc27d5725 100644 --- a/java-language/grpc-google-cloud-language-v1beta2/pom.xml +++ b/java-language/grpc-google-cloud-language-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-language-v1beta2 - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-language-v1beta2 GRPC library for grpc-google-cloud-language-v1beta2 com.google.cloud google-cloud-language-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-language/grpc-google-cloud-language-v2/pom.xml b/java-language/grpc-google-cloud-language-v2/pom.xml index 7c7d09a9fa45..4936c2430e76 100644 --- a/java-language/grpc-google-cloud-language-v2/pom.xml +++ b/java-language/grpc-google-cloud-language-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-language-v2 - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-language-v2 GRPC library for google-cloud-language com.google.cloud google-cloud-language-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-language/pom.xml b/java-language/pom.xml index fbe6b7951334..3e0069ba666f 100644 --- a/java-language/pom.xml +++ b/java-language/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-language-parent pom - 2.94.0 + 2.95.0-SNAPSHOT Google Cloud Natural Language Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,37 +30,37 @@ com.google.api.grpc proto-google-cloud-language-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v2 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v2 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-language-v1beta2 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-language-v1beta2 - 2.94.0 + 2.95.0-SNAPSHOT com.google.cloud google-cloud-language - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-language/proto-google-cloud-language-v1/pom.xml b/java-language/proto-google-cloud-language-v1/pom.xml index 912732e50b5f..109c3653beed 100644 --- a/java-language/proto-google-cloud-language-v1/pom.xml +++ b/java-language/proto-google-cloud-language-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-language-v1 - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-language-v1 PROTO library for proto-google-cloud-language-v1 com.google.cloud google-cloud-language-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-language/proto-google-cloud-language-v1beta2/pom.xml b/java-language/proto-google-cloud-language-v1beta2/pom.xml index 985fad456006..ebcfee5771bf 100644 --- a/java-language/proto-google-cloud-language-v1beta2/pom.xml +++ b/java-language/proto-google-cloud-language-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-language-v1beta2 - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-language-v1beta2 PROTO library for proto-google-cloud-language-v1beta2 com.google.cloud google-cloud-language-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-language/proto-google-cloud-language-v2/pom.xml b/java-language/proto-google-cloud-language-v2/pom.xml index b50322aea9b8..2f4ea35ed494 100644 --- a/java-language/proto-google-cloud-language-v2/pom.xml +++ b/java-language/proto-google-cloud-language-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-language-v2 - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-language-v2 Proto library for google-cloud-language com.google.cloud google-cloud-language-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-licensemanager/google-cloud-licensemanager-bom/pom.xml b/java-licensemanager/google-cloud-licensemanager-bom/pom.xml index 0ec9e5ae4a88..66f8db8ec21b 100644 --- a/java-licensemanager/google-cloud-licensemanager-bom/pom.xml +++ b/java-licensemanager/google-cloud-licensemanager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-licensemanager-bom - 0.26.0 + 0.27.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-licensemanager - 0.26.0 + 0.27.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-licensemanager-v1 - 0.26.0 + 0.27.0-SNAPSHOT com.google.api.grpc proto-google-cloud-licensemanager-v1 - 0.26.0 + 0.27.0-SNAPSHOT diff --git a/java-licensemanager/google-cloud-licensemanager/pom.xml b/java-licensemanager/google-cloud-licensemanager/pom.xml index ddc5bbfe3f21..3c4910082274 100644 --- a/java-licensemanager/google-cloud-licensemanager/pom.xml +++ b/java-licensemanager/google-cloud-licensemanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-licensemanager - 0.26.0 + 0.27.0-SNAPSHOT jar Google License Manager API License Manager API License Manager is a tool to manage and track third-party licenses on Google Cloud. com.google.cloud google-cloud-licensemanager-parent - 0.26.0 + 0.27.0-SNAPSHOT google-cloud-licensemanager diff --git a/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/Version.java b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/Version.java index ca98846bd403..6ca9bcc1cfd8 100644 --- a/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/Version.java +++ b/java-licensemanager/google-cloud-licensemanager/src/main/java/com/google/cloud/licensemanager/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-licensemanager:current} - static final String VERSION = "0.26.0"; + static final String VERSION = "0.27.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-licensemanager/grpc-google-cloud-licensemanager-v1/pom.xml b/java-licensemanager/grpc-google-cloud-licensemanager-v1/pom.xml index 0829e4e99425..6f9380d54140 100644 --- a/java-licensemanager/grpc-google-cloud-licensemanager-v1/pom.xml +++ b/java-licensemanager/grpc-google-cloud-licensemanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-licensemanager-v1 - 0.26.0 + 0.27.0-SNAPSHOT grpc-google-cloud-licensemanager-v1 GRPC library for google-cloud-licensemanager com.google.cloud google-cloud-licensemanager-parent - 0.26.0 + 0.27.0-SNAPSHOT diff --git a/java-licensemanager/pom.xml b/java-licensemanager/pom.xml index fa5008ca7e96..512f5447764e 100644 --- a/java-licensemanager/pom.xml +++ b/java-licensemanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-licensemanager-parent pom - 0.26.0 + 0.27.0-SNAPSHOT Google License Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-licensemanager - 0.26.0 + 0.27.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-licensemanager-v1 - 0.26.0 + 0.27.0-SNAPSHOT com.google.api.grpc proto-google-cloud-licensemanager-v1 - 0.26.0 + 0.27.0-SNAPSHOT diff --git a/java-licensemanager/proto-google-cloud-licensemanager-v1/pom.xml b/java-licensemanager/proto-google-cloud-licensemanager-v1/pom.xml index b2f13dbdf677..1e03a93fc445 100644 --- a/java-licensemanager/proto-google-cloud-licensemanager-v1/pom.xml +++ b/java-licensemanager/proto-google-cloud-licensemanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-licensemanager-v1 - 0.26.0 + 0.27.0-SNAPSHOT proto-google-cloud-licensemanager-v1 Proto library for google-cloud-licensemanager com.google.cloud google-cloud-licensemanager-parent - 0.26.0 + 0.27.0-SNAPSHOT diff --git a/java-life-sciences/google-cloud-life-sciences-bom/pom.xml b/java-life-sciences/google-cloud-life-sciences-bom/pom.xml index 92a1e9027267..c5eb8a10b7b8 100644 --- a/java-life-sciences/google-cloud-life-sciences-bom/pom.xml +++ b/java-life-sciences/google-cloud-life-sciences-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-life-sciences-bom - 0.95.0 + 0.96.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-life-sciences - 0.95.0 + 0.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-life-sciences-v2beta - 0.95.0 + 0.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-life-sciences-v2beta - 0.95.0 + 0.96.0-SNAPSHOT diff --git a/java-life-sciences/google-cloud-life-sciences/pom.xml b/java-life-sciences/google-cloud-life-sciences/pom.xml index 1b55c07ccb86..f39e971983df 100644 --- a/java-life-sciences/google-cloud-life-sciences/pom.xml +++ b/java-life-sciences/google-cloud-life-sciences/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-life-sciences - 0.95.0 + 0.96.0-SNAPSHOT jar Google Cloud Life Sciences Cloud Life Sciences is a suite of services and tools for managing, processing, and transforming life sciences data. com.google.cloud google-cloud-life-sciences-parent - 0.95.0 + 0.96.0-SNAPSHOT google-cloud-life-sciences diff --git a/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/Version.java b/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/Version.java index dd5357fd63e3..66d2b2ad11f6 100644 --- a/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/Version.java +++ b/java-life-sciences/google-cloud-life-sciences/src/main/java/com/google/cloud/lifesciences/v2beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-life-sciences:current} - static final String VERSION = "0.95.0"; + static final String VERSION = "0.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml b/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml index 569fd3c273e7..ec4124b1545c 100644 --- a/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml +++ b/java-life-sciences/grpc-google-cloud-life-sciences-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-life-sciences-v2beta - 0.95.0 + 0.96.0-SNAPSHOT grpc-google-cloud-life-sciences-v2beta GRPC library for google-cloud-life-sciences com.google.cloud google-cloud-life-sciences-parent - 0.95.0 + 0.96.0-SNAPSHOT diff --git a/java-life-sciences/pom.xml b/java-life-sciences/pom.xml index 5e93c08fd56f..7808ae135d6f 100644 --- a/java-life-sciences/pom.xml +++ b/java-life-sciences/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-life-sciences-parent pom - 0.95.0 + 0.96.0-SNAPSHOT Google Cloud Life Sciences Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-life-sciences - 0.95.0 + 0.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-life-sciences-v2beta - 0.95.0 + 0.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-life-sciences-v2beta - 0.95.0 + 0.96.0-SNAPSHOT diff --git a/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml b/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml index 914139ac0192..c85d6f3458dc 100644 --- a/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml +++ b/java-life-sciences/proto-google-cloud-life-sciences-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-life-sciences-v2beta - 0.95.0 + 0.96.0-SNAPSHOT proto-google-cloud-life-sciences-v2beta Proto library for google-cloud-life-sciences com.google.cloud google-cloud-life-sciences-parent - 0.95.0 + 0.96.0-SNAPSHOT diff --git a/java-locationfinder/google-cloud-locationfinder-bom/pom.xml b/java-locationfinder/google-cloud-locationfinder-bom/pom.xml index 80e05129bacb..8ab6cfa4d7d8 100644 --- a/java-locationfinder/google-cloud-locationfinder-bom/pom.xml +++ b/java-locationfinder/google-cloud-locationfinder-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-locationfinder-bom - 0.18.0 + 0.19.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-locationfinder - 0.18.0 + 0.19.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-locationfinder-v1 - 0.18.0 + 0.19.0-SNAPSHOT com.google.api.grpc proto-google-cloud-locationfinder-v1 - 0.18.0 + 0.19.0-SNAPSHOT diff --git a/java-locationfinder/google-cloud-locationfinder/pom.xml b/java-locationfinder/google-cloud-locationfinder/pom.xml index a08d36c5082d..761e13c14e59 100644 --- a/java-locationfinder/google-cloud-locationfinder/pom.xml +++ b/java-locationfinder/google-cloud-locationfinder/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-locationfinder - 0.18.0 + 0.19.0-SNAPSHOT jar Google Cloud Location Finder API Cloud Location Finder API Cloud Location Finder is a public API that offers a repository of all Google Cloud and Google Distributed Cloud locations, as well as cloud locations for other cloud providers. com.google.cloud google-cloud-locationfinder-parent - 0.18.0 + 0.19.0-SNAPSHOT google-cloud-locationfinder diff --git a/java-locationfinder/google-cloud-locationfinder/src/main/java/com/google/cloud/locationfinder/v1/stub/Version.java b/java-locationfinder/google-cloud-locationfinder/src/main/java/com/google/cloud/locationfinder/v1/stub/Version.java index d5e508fdadb3..2334827c1ab8 100644 --- a/java-locationfinder/google-cloud-locationfinder/src/main/java/com/google/cloud/locationfinder/v1/stub/Version.java +++ b/java-locationfinder/google-cloud-locationfinder/src/main/java/com/google/cloud/locationfinder/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-locationfinder:current} - static final String VERSION = "0.18.0"; + static final String VERSION = "0.19.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-locationfinder/grpc-google-cloud-locationfinder-v1/pom.xml b/java-locationfinder/grpc-google-cloud-locationfinder-v1/pom.xml index 289175314ff6..0f20532dc73a 100644 --- a/java-locationfinder/grpc-google-cloud-locationfinder-v1/pom.xml +++ b/java-locationfinder/grpc-google-cloud-locationfinder-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-locationfinder-v1 - 0.18.0 + 0.19.0-SNAPSHOT grpc-google-cloud-locationfinder-v1 GRPC library for google-cloud-locationfinder com.google.cloud google-cloud-locationfinder-parent - 0.18.0 + 0.19.0-SNAPSHOT diff --git a/java-locationfinder/pom.xml b/java-locationfinder/pom.xml index efa2515fa38a..561c5d728798 100644 --- a/java-locationfinder/pom.xml +++ b/java-locationfinder/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-locationfinder-parent pom - 0.18.0 + 0.19.0-SNAPSHOT Google Cloud Location Finder API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-locationfinder - 0.18.0 + 0.19.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-locationfinder-v1 - 0.18.0 + 0.19.0-SNAPSHOT com.google.api.grpc proto-google-cloud-locationfinder-v1 - 0.18.0 + 0.19.0-SNAPSHOT diff --git a/java-locationfinder/proto-google-cloud-locationfinder-v1/pom.xml b/java-locationfinder/proto-google-cloud-locationfinder-v1/pom.xml index a57a8fcf0969..6d891f1c27de 100644 --- a/java-locationfinder/proto-google-cloud-locationfinder-v1/pom.xml +++ b/java-locationfinder/proto-google-cloud-locationfinder-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-locationfinder-v1 - 0.18.0 + 0.19.0-SNAPSHOT proto-google-cloud-locationfinder-v1 Proto library for google-cloud-locationfinder com.google.cloud google-cloud-locationfinder-parent - 0.18.0 + 0.19.0-SNAPSHOT diff --git a/java-logging-logback/pom.xml b/java-logging-logback/pom.xml index 0c63e37a4da7..eee3a06b17d5 100644 --- a/java-logging-logback/pom.xml +++ b/java-logging-logback/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.cloud google-cloud-logging-logback - 0.142.0-alpha + 0.143.0-alpha-SNAPSHOT jar Google Cloud Logging Logback Appender https://github.com/googleapis/google-cloud-java @@ -25,7 +25,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -81,7 +81,7 @@ com.google.cloud google-cloud-logging - 3.34.0 + 3.35.0-SNAPSHOT org.slf4j diff --git a/java-logging-logback/samples/snapshot/pom.xml b/java-logging-logback/samples/snapshot/pom.xml index 391d3b5a44c7..b48473ed3a71 100644 --- a/java-logging-logback/samples/snapshot/pom.xml +++ b/java-logging-logback/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-logging-logback - 0.142.0-alpha + 0.143.0-alpha-SNAPSHOT diff --git a/java-logging/google-cloud-logging-bom/pom.xml b/java-logging/google-cloud-logging-bom/pom.xml index 414c973ad68d..0154a9958966 100644 --- a/java-logging/google-cloud-logging-bom/pom.xml +++ b/java-logging/google-cloud-logging-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-logging-bom - 3.34.0 + 3.35.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -54,17 +54,17 @@ com.google.cloud google-cloud-logging - 3.34.0 + 3.35.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-logging-v2 - 3.34.0 + 3.35.0-SNAPSHOT com.google.api.grpc proto-google-cloud-logging-v2 - 3.34.0 + 3.35.0-SNAPSHOT diff --git a/java-logging/google-cloud-logging/pom.xml b/java-logging/google-cloud-logging/pom.xml index 426565334860..5224b05d8909 100644 --- a/java-logging/google-cloud-logging/pom.xml +++ b/java-logging/google-cloud-logging/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-logging - 3.34.0 + 3.35.0-SNAPSHOT jar Google Cloud Logging https://github.com/googleapis/java-logging @@ -11,7 +11,7 @@ com.google.cloud google-cloud-logging-parent - 3.34.0 + 3.35.0-SNAPSHOT google-cloud-logging diff --git a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/Version.java b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/Version.java index 2b63703e129a..e57a1dbd8b85 100644 --- a/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/Version.java +++ b/java-logging/google-cloud-logging/src/main/java/com/google/cloud/logging/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-logging:current} - static final String VERSION = "3.34.0"; + static final String VERSION = "3.35.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-logging/grpc-google-cloud-logging-v2/pom.xml b/java-logging/grpc-google-cloud-logging-v2/pom.xml index cf4c5137379b..63050501baf2 100644 --- a/java-logging/grpc-google-cloud-logging-v2/pom.xml +++ b/java-logging/grpc-google-cloud-logging-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-logging-v2 - 3.34.0 + 3.35.0-SNAPSHOT grpc-google-cloud-logging-v2 GRPC library for grpc-google-cloud-logging-v2 com.google.cloud google-cloud-logging-parent - 3.34.0 + 3.35.0-SNAPSHOT diff --git a/java-logging/pom.xml b/java-logging/pom.xml index 5bd65bf72ab4..5a910924e8f0 100644 --- a/java-logging/pom.xml +++ b/java-logging/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-logging-parent pom - 3.34.0 + 3.35.0-SNAPSHOT Google Cloud Logging Parent https://github.com/googleapis/google-cloud-java @@ -14,7 +14,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -63,17 +63,17 @@ com.google.api.grpc proto-google-cloud-logging-v2 - 3.34.0 + 3.35.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-logging-v2 - 3.34.0 + 3.35.0-SNAPSHOT com.google.cloud google-cloud-logging - 3.34.0 + 3.35.0-SNAPSHOT diff --git a/java-logging/proto-google-cloud-logging-v2/pom.xml b/java-logging/proto-google-cloud-logging-v2/pom.xml index 6993c0384459..9b784cd7d8fe 100644 --- a/java-logging/proto-google-cloud-logging-v2/pom.xml +++ b/java-logging/proto-google-cloud-logging-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-logging-v2 - 3.34.0 + 3.35.0-SNAPSHOT proto-google-cloud-logging-v2 PROTO library for proto-google-cloud-logging-v2 com.google.cloud google-cloud-logging-parent - 3.34.0 + 3.35.0-SNAPSHOT diff --git a/java-logging/samples/snapshot/pom.xml b/java-logging/samples/snapshot/pom.xml index f7baf44c73b1..1340c6413366 100644 --- a/java-logging/samples/snapshot/pom.xml +++ b/java-logging/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-logging - 3.34.0 + 3.35.0-SNAPSHOT diff --git a/java-lustre/google-cloud-lustre-bom/pom.xml b/java-lustre/google-cloud-lustre-bom/pom.xml index a0983318912d..6a9e12129d4f 100644 --- a/java-lustre/google-cloud-lustre-bom/pom.xml +++ b/java-lustre/google-cloud-lustre-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-lustre-bom - 0.33.0 + 0.34.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-lustre - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-lustre-v1 - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc proto-google-cloud-lustre-v1 - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-lustre/google-cloud-lustre/pom.xml b/java-lustre/google-cloud-lustre/pom.xml index f310343c8f3b..319dff25b683 100644 --- a/java-lustre/google-cloud-lustre/pom.xml +++ b/java-lustre/google-cloud-lustre/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-lustre - 0.33.0 + 0.34.0-SNAPSHOT jar Google Google Cloud Managed Lustre API Google Cloud Managed Lustre API Google Cloud Managed Lustre delivers a high-performance, fully managed parallel file system optimized for AI and HPC applications. com.google.cloud google-cloud-lustre-parent - 0.33.0 + 0.34.0-SNAPSHOT google-cloud-lustre diff --git a/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/stub/Version.java b/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/stub/Version.java index 68248e1ec5f2..c558d9b1dbe7 100644 --- a/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/stub/Version.java +++ b/java-lustre/google-cloud-lustre/src/main/java/com/google/cloud/lustre/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-lustre:current} - static final String VERSION = "0.33.0"; + static final String VERSION = "0.34.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-lustre/grpc-google-cloud-lustre-v1/pom.xml b/java-lustre/grpc-google-cloud-lustre-v1/pom.xml index 88ee4029ea87..c175757bb755 100644 --- a/java-lustre/grpc-google-cloud-lustre-v1/pom.xml +++ b/java-lustre/grpc-google-cloud-lustre-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-lustre-v1 - 0.33.0 + 0.34.0-SNAPSHOT grpc-google-cloud-lustre-v1 GRPC library for google-cloud-lustre com.google.cloud google-cloud-lustre-parent - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-lustre/pom.xml b/java-lustre/pom.xml index 5fbe8eea06f6..654e7f2cddde 100644 --- a/java-lustre/pom.xml +++ b/java-lustre/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-lustre-parent pom - 0.33.0 + 0.34.0-SNAPSHOT Google Google Cloud Managed Lustre API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-lustre - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-lustre-v1 - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc proto-google-cloud-lustre-v1 - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-lustre/proto-google-cloud-lustre-v1/pom.xml b/java-lustre/proto-google-cloud-lustre-v1/pom.xml index e7aad9f9a0c2..9f0f6b99e519 100644 --- a/java-lustre/proto-google-cloud-lustre-v1/pom.xml +++ b/java-lustre/proto-google-cloud-lustre-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-lustre-v1 - 0.33.0 + 0.34.0-SNAPSHOT proto-google-cloud-lustre-v1 Proto library for google-cloud-lustre com.google.cloud google-cloud-lustre-parent - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-maintenance/google-cloud-maintenance-bom/pom.xml b/java-maintenance/google-cloud-maintenance-bom/pom.xml index adeaa5ed207b..3d67e6cf4697 100644 --- a/java-maintenance/google-cloud-maintenance-bom/pom.xml +++ b/java-maintenance/google-cloud-maintenance-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-maintenance-bom - 0.27.0 + 0.28.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-maintenance - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-maintenance-v1beta - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-maintenance-v1 - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc proto-google-cloud-maintenance-v1beta - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc proto-google-cloud-maintenance-v1 - 0.27.0 + 0.28.0-SNAPSHOT diff --git a/java-maintenance/google-cloud-maintenance/pom.xml b/java-maintenance/google-cloud-maintenance/pom.xml index fea986de9a42..431e587d59d8 100644 --- a/java-maintenance/google-cloud-maintenance/pom.xml +++ b/java-maintenance/google-cloud-maintenance/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-maintenance - 0.27.0 + 0.28.0-SNAPSHOT jar Google Maintenance API Maintenance API The Maintenance API provides a centralized view of planned disruptive maintenance events across supported Google Cloud products. com.google.cloud google-cloud-maintenance-parent - 0.27.0 + 0.28.0-SNAPSHOT google-cloud-maintenance diff --git a/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1/stub/Version.java b/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1/stub/Version.java index 7ee26871cd5a..028c2ae8d6f1 100644 --- a/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1/stub/Version.java +++ b/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-maintenance:current} - static final String VERSION = "0.27.0"; + static final String VERSION = "0.28.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1beta/stub/Version.java b/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1beta/stub/Version.java index 0582c5234184..92f22f3de116 100644 --- a/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1beta/stub/Version.java +++ b/java-maintenance/google-cloud-maintenance/src/main/java/com/google/cloud/maintenance/api/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-maintenance:current} - static final String VERSION = "0.27.0"; + static final String VERSION = "0.28.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-maintenance/grpc-google-cloud-maintenance-v1/pom.xml b/java-maintenance/grpc-google-cloud-maintenance-v1/pom.xml index b6efcadebceb..1066000c365d 100644 --- a/java-maintenance/grpc-google-cloud-maintenance-v1/pom.xml +++ b/java-maintenance/grpc-google-cloud-maintenance-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-maintenance-v1 - 0.27.0 + 0.28.0-SNAPSHOT grpc-google-cloud-maintenance-v1 GRPC library for google-cloud-maintenance com.google.cloud google-cloud-maintenance-parent - 0.27.0 + 0.28.0-SNAPSHOT diff --git a/java-maintenance/grpc-google-cloud-maintenance-v1beta/pom.xml b/java-maintenance/grpc-google-cloud-maintenance-v1beta/pom.xml index 30dde3e93f1a..028b39147327 100644 --- a/java-maintenance/grpc-google-cloud-maintenance-v1beta/pom.xml +++ b/java-maintenance/grpc-google-cloud-maintenance-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-maintenance-v1beta - 0.27.0 + 0.28.0-SNAPSHOT grpc-google-cloud-maintenance-v1beta GRPC library for google-cloud-maintenance com.google.cloud google-cloud-maintenance-parent - 0.27.0 + 0.28.0-SNAPSHOT diff --git a/java-maintenance/pom.xml b/java-maintenance/pom.xml index c7cde7b4bb30..0193033fddea 100644 --- a/java-maintenance/pom.xml +++ b/java-maintenance/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-maintenance-parent pom - 0.27.0 + 0.28.0-SNAPSHOT Google Maintenance API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-maintenance - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc proto-google-cloud-maintenance-v1 - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-maintenance-v1 - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-maintenance-v1beta - 0.27.0 + 0.28.0-SNAPSHOT com.google.api.grpc proto-google-cloud-maintenance-v1beta - 0.27.0 + 0.28.0-SNAPSHOT diff --git a/java-maintenance/proto-google-cloud-maintenance-v1/pom.xml b/java-maintenance/proto-google-cloud-maintenance-v1/pom.xml index bb1f9bd0b2bd..0e4c8f358dbe 100644 --- a/java-maintenance/proto-google-cloud-maintenance-v1/pom.xml +++ b/java-maintenance/proto-google-cloud-maintenance-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-maintenance-v1 - 0.27.0 + 0.28.0-SNAPSHOT proto-google-cloud-maintenance-v1 Proto library for google-cloud-maintenance com.google.cloud google-cloud-maintenance-parent - 0.27.0 + 0.28.0-SNAPSHOT diff --git a/java-maintenance/proto-google-cloud-maintenance-v1beta/pom.xml b/java-maintenance/proto-google-cloud-maintenance-v1beta/pom.xml index c4c56d4d091c..e37c75410ddf 100644 --- a/java-maintenance/proto-google-cloud-maintenance-v1beta/pom.xml +++ b/java-maintenance/proto-google-cloud-maintenance-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-maintenance-v1beta - 0.27.0 + 0.28.0-SNAPSHOT proto-google-cloud-maintenance-v1beta Proto library for google-cloud-maintenance com.google.cloud google-cloud-maintenance-parent - 0.27.0 + 0.28.0-SNAPSHOT diff --git a/java-managed-identities/google-cloud-managed-identities-bom/pom.xml b/java-managed-identities/google-cloud-managed-identities-bom/pom.xml index ddb89e8fd586..12a0bf570d43 100644 --- a/java-managed-identities/google-cloud-managed-identities-bom/pom.xml +++ b/java-managed-identities/google-cloud-managed-identities-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-managed-identities-bom - 1.91.0 + 1.92.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-managed-identities - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-managed-identities-v1 - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-managed-identities-v1 - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-managed-identities/google-cloud-managed-identities/pom.xml b/java-managed-identities/google-cloud-managed-identities/pom.xml index 245cafc74120..c4e0dfdfe74d 100644 --- a/java-managed-identities/google-cloud-managed-identities/pom.xml +++ b/java-managed-identities/google-cloud-managed-identities/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-managed-identities - 1.91.0 + 1.92.0-SNAPSHOT jar Google Managed Service for Microsoft Active Directory is a highly available, hardened Google Cloud service running actual Microsoft AD that enables you to manage authentication and authorization for your AD-dependent workloads, automate AD server maintenance and security configuration, and connect your on-premises AD domain to the cloud. com.google.cloud google-cloud-managed-identities-parent - 1.91.0 + 1.92.0-SNAPSHOT google-cloud-managed-identities diff --git a/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/Version.java b/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/Version.java index 4100327145b8..2aa4d7be4c26 100644 --- a/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/Version.java +++ b/java-managed-identities/google-cloud-managed-identities/src/main/java/com/google/cloud/managedidentities/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-managed-identities:current} - static final String VERSION = "1.91.0"; + static final String VERSION = "1.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml b/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml index d777a46fdd16..328b1e4f910e 100644 --- a/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml +++ b/java-managed-identities/grpc-google-cloud-managed-identities-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-managed-identities-v1 - 1.91.0 + 1.92.0-SNAPSHOT grpc-google-cloud-managed-identities-v1 GRPC library for google-cloud-managed-identities com.google.cloud google-cloud-managed-identities-parent - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-managed-identities/pom.xml b/java-managed-identities/pom.xml index 618e09e2f10d..3e0ca7dfb942 100644 --- a/java-managed-identities/pom.xml +++ b/java-managed-identities/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-managed-identities-parent pom - 1.91.0 + 1.92.0-SNAPSHOT Google Managed Service for Microsoft Active Directory Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-managed-identities - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-managed-identities-v1 - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-managed-identities-v1 - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml b/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml index 8116f223a390..bbff90a90833 100644 --- a/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml +++ b/java-managed-identities/proto-google-cloud-managed-identities-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-managed-identities-v1 - 1.91.0 + 1.92.0-SNAPSHOT proto-google-cloud-managed-identities-v1 Proto library for google-cloud-managed-identities com.google.cloud google-cloud-managed-identities-parent - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-managedkafka/google-cloud-managedkafka-bom/pom.xml b/java-managedkafka/google-cloud-managedkafka-bom/pom.xml index dc08f4394971..a8b5af4dfa02 100644 --- a/java-managedkafka/google-cloud-managedkafka-bom/pom.xml +++ b/java-managedkafka/google-cloud-managedkafka-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-managedkafka-bom - 0.49.0 + 0.50.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-managedkafka - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-managedkafka-v1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-managedkafka-v1 - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-managedkafka/google-cloud-managedkafka/pom.xml b/java-managedkafka/google-cloud-managedkafka/pom.xml index bdc55cca9398..cda09577cde1 100644 --- a/java-managedkafka/google-cloud-managedkafka/pom.xml +++ b/java-managedkafka/google-cloud-managedkafka/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-managedkafka - 0.49.0 + 0.50.0-SNAPSHOT jar Google Managed Service for Apache Kafka API Managed Service for Apache Kafka API Manage Apache Kafka clusters and resources. com.google.cloud google-cloud-managedkafka-parent - 0.49.0 + 0.50.0-SNAPSHOT google-cloud-managedkafka diff --git a/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/Version.java b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/Version.java index 304c24a716fd..2355f7e7f213 100644 --- a/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/Version.java +++ b/java-managedkafka/google-cloud-managedkafka/src/main/java/com/google/cloud/managedkafka/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-managedkafka:current} - static final String VERSION = "0.49.0"; + static final String VERSION = "0.50.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml b/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml index 738e41a8df16..78d78b3f566a 100644 --- a/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml +++ b/java-managedkafka/grpc-google-cloud-managedkafka-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-managedkafka-v1 - 0.49.0 + 0.50.0-SNAPSHOT grpc-google-cloud-managedkafka-v1 GRPC library for google-cloud-managedkafka com.google.cloud google-cloud-managedkafka-parent - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-managedkafka/pom.xml b/java-managedkafka/pom.xml index cd2bf76fcfdb..db3ab3cad1b1 100644 --- a/java-managedkafka/pom.xml +++ b/java-managedkafka/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-managedkafka-parent pom - 0.49.0 + 0.50.0-SNAPSHOT Google Managed Service for Apache Kafka API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-managedkafka - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-managedkafka-v1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-managedkafka-v1 - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml b/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml index 575a7f8c09ef..cd97d0a65ccc 100644 --- a/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml +++ b/java-managedkafka/proto-google-cloud-managedkafka-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-managedkafka-v1 - 0.49.0 + 0.50.0-SNAPSHOT proto-google-cloud-managedkafka-v1 Proto library for google-cloud-managedkafka com.google.cloud google-cloud-managedkafka-parent - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-maps-addressvalidation/google-maps-addressvalidation-bom/pom.xml b/java-maps-addressvalidation/google-maps-addressvalidation-bom/pom.xml index 4487818dadc5..681dae5523a1 100644 --- a/java-maps-addressvalidation/google-maps-addressvalidation-bom/pom.xml +++ b/java-maps-addressvalidation/google-maps-addressvalidation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-addressvalidation-bom - 0.87.0 + 0.88.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.maps google-maps-addressvalidation - 0.87.0 + 0.88.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-addressvalidation-v1 - 0.87.0 + 0.88.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-addressvalidation-v1 - 0.87.0 + 0.88.0-SNAPSHOT diff --git a/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml b/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml index a8180887a77d..c7ddd8701db3 100644 --- a/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml +++ b/java-maps-addressvalidation/google-maps-addressvalidation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-addressvalidation - 0.87.0 + 0.88.0-SNAPSHOT jar Google Address Validation API Address Validation API The Address Validation API allows developers to verify the accuracy of addresses. Given an address, it returns information about the correctness of the components of the parsed address, a geocode, and a verdict on the deliverability of the parsed address. com.google.maps google-maps-addressvalidation-parent - 0.87.0 + 0.88.0-SNAPSHOT google-maps-addressvalidation diff --git a/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/stub/Version.java b/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/stub/Version.java index f1d624c80adc..9fce39e3b5ff 100644 --- a/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/stub/Version.java +++ b/java-maps-addressvalidation/google-maps-addressvalidation/src/main/java/com/google/maps/addressvalidation/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-maps-addressvalidation:current} - static final String VERSION = "0.87.0"; + static final String VERSION = "0.88.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml b/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml index 58b3c35cb9ed..26f42e9584ee 100644 --- a/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml +++ b/java-maps-addressvalidation/grpc-google-maps-addressvalidation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-addressvalidation-v1 - 0.87.0 + 0.88.0-SNAPSHOT grpc-google-maps-addressvalidation-v1 GRPC library for google-maps-addressvalidation com.google.maps google-maps-addressvalidation-parent - 0.87.0 + 0.88.0-SNAPSHOT diff --git a/java-maps-addressvalidation/pom.xml b/java-maps-addressvalidation/pom.xml index b32fed924a37..e14ad6b20169 100644 --- a/java-maps-addressvalidation/pom.xml +++ b/java-maps-addressvalidation/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-addressvalidation-parent pom - 0.87.0 + 0.88.0-SNAPSHOT Google Address Validation API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.maps google-maps-addressvalidation - 0.87.0 + 0.88.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-addressvalidation-v1 - 0.87.0 + 0.88.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-addressvalidation-v1 - 0.87.0 + 0.88.0-SNAPSHOT diff --git a/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml b/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml index c2c6e4bf72ba..e77de1c38d4e 100644 --- a/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml +++ b/java-maps-addressvalidation/proto-google-maps-addressvalidation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-addressvalidation-v1 - 0.87.0 + 0.88.0-SNAPSHOT proto-google-maps-addressvalidation-v1 Proto library for google-maps-addressvalidation com.google.maps google-maps-addressvalidation-parent - 0.87.0 + 0.88.0-SNAPSHOT diff --git a/java-maps-area-insights/google-maps-area-insights-bom/pom.xml b/java-maps-area-insights/google-maps-area-insights-bom/pom.xml index caa517d92d13..ad885b7db9fd 100644 --- a/java-maps-area-insights/google-maps-area-insights-bom/pom.xml +++ b/java-maps-area-insights/google-maps-area-insights-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-area-insights-bom - 0.44.0 + 0.45.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-area-insights - 0.44.0 + 0.45.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-area-insights-v1 - 0.44.0 + 0.45.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-area-insights-v1 - 0.44.0 + 0.45.0-SNAPSHOT diff --git a/java-maps-area-insights/google-maps-area-insights/pom.xml b/java-maps-area-insights/google-maps-area-insights/pom.xml index d9d9d6370a50..140c4fb7a49a 100644 --- a/java-maps-area-insights/google-maps-area-insights/pom.xml +++ b/java-maps-area-insights/google-maps-area-insights/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-area-insights - 0.44.0 + 0.45.0-SNAPSHOT jar Google Places Insights API Places Insights API Places Insights API. com.google.maps google-maps-area-insights-parent - 0.44.0 + 0.45.0-SNAPSHOT google-maps-area-insights diff --git a/java-maps-area-insights/google-maps-area-insights/src/main/java/com/google/maps/areainsights/v1/stub/Version.java b/java-maps-area-insights/google-maps-area-insights/src/main/java/com/google/maps/areainsights/v1/stub/Version.java index b62d4d721042..290a0820f0cc 100644 --- a/java-maps-area-insights/google-maps-area-insights/src/main/java/com/google/maps/areainsights/v1/stub/Version.java +++ b/java-maps-area-insights/google-maps-area-insights/src/main/java/com/google/maps/areainsights/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-maps-area-insights:current} - static final String VERSION = "0.44.0"; + static final String VERSION = "0.45.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-maps-area-insights/grpc-google-maps-area-insights-v1/pom.xml b/java-maps-area-insights/grpc-google-maps-area-insights-v1/pom.xml index b28a3d79f461..d8ecffdca462 100644 --- a/java-maps-area-insights/grpc-google-maps-area-insights-v1/pom.xml +++ b/java-maps-area-insights/grpc-google-maps-area-insights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-area-insights-v1 - 0.44.0 + 0.45.0-SNAPSHOT grpc-google-maps-area-insights-v1 GRPC library for google-maps-area-insights com.google.maps google-maps-area-insights-parent - 0.44.0 + 0.45.0-SNAPSHOT diff --git a/java-maps-area-insights/pom.xml b/java-maps-area-insights/pom.xml index 2612ab27b78e..36a4b92e72e1 100644 --- a/java-maps-area-insights/pom.xml +++ b/java-maps-area-insights/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-area-insights-parent pom - 0.44.0 + 0.45.0-SNAPSHOT Google Places Insights API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.maps google-maps-area-insights - 0.44.0 + 0.45.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-area-insights-v1 - 0.44.0 + 0.45.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-area-insights-v1 - 0.44.0 + 0.45.0-SNAPSHOT diff --git a/java-maps-area-insights/proto-google-maps-area-insights-v1/pom.xml b/java-maps-area-insights/proto-google-maps-area-insights-v1/pom.xml index a8bba70711b3..19a012043c37 100644 --- a/java-maps-area-insights/proto-google-maps-area-insights-v1/pom.xml +++ b/java-maps-area-insights/proto-google-maps-area-insights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-area-insights-v1 - 0.44.0 + 0.45.0-SNAPSHOT proto-google-maps-area-insights-v1 Proto library for google-maps-area-insights com.google.maps google-maps-area-insights-parent - 0.44.0 + 0.45.0-SNAPSHOT diff --git a/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery-bom/pom.xml b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery-bom/pom.xml index f81b133f47ae..9dd6f9d516ce 100644 --- a/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery-bom/pom.xml +++ b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-fleetengine-delivery-bom - 0.40.0 + 0.41.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-fleetengine-delivery - 0.40.0 + 0.41.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-fleetengine-delivery-v1 - 0.40.0 + 0.41.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-fleetengine-delivery-v1 - 0.40.0 + 0.41.0-SNAPSHOT diff --git a/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/pom.xml b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/pom.xml index 0130026a4433..42deacc0d988 100644 --- a/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/pom.xml +++ b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-fleetengine-delivery - 0.40.0 + 0.41.0-SNAPSHOT jar Google Last Mile Fleet Solution Delivery API Last Mile Fleet Solution Delivery API Enables Fleet Engine for access to the On Demand Rides and Deliveries and Last Mile Fleet Solution APIs. Customer's use of Google Maps Content in the Cloud Logging Services is subject to the Google Maps Platform Terms of Service located at https://cloud.google.com/maps-platform/terms. com.google.maps google-maps-fleetengine-delivery-parent - 0.40.0 + 0.41.0-SNAPSHOT google-maps-fleetengine-delivery diff --git a/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/src/main/java/com/google/maps/fleetengine/delivery/v1/stub/Version.java b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/src/main/java/com/google/maps/fleetengine/delivery/v1/stub/Version.java index fed203d3231a..c2ae585f35c4 100644 --- a/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/src/main/java/com/google/maps/fleetengine/delivery/v1/stub/Version.java +++ b/java-maps-fleetengine-delivery/google-maps-fleetengine-delivery/src/main/java/com/google/maps/fleetengine/delivery/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-maps-fleetengine-delivery:current} - static final String VERSION = "0.40.0"; + static final String VERSION = "0.41.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-maps-fleetengine-delivery/grpc-google-maps-fleetengine-delivery-v1/pom.xml b/java-maps-fleetengine-delivery/grpc-google-maps-fleetengine-delivery-v1/pom.xml index 9aed2bd67dc4..1f3b1b03733c 100644 --- a/java-maps-fleetengine-delivery/grpc-google-maps-fleetengine-delivery-v1/pom.xml +++ b/java-maps-fleetengine-delivery/grpc-google-maps-fleetengine-delivery-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-fleetengine-delivery-v1 - 0.40.0 + 0.41.0-SNAPSHOT grpc-google-maps-fleetengine-delivery-v1 GRPC library for google-maps-fleetengine-delivery com.google.maps google-maps-fleetengine-delivery-parent - 0.40.0 + 0.41.0-SNAPSHOT diff --git a/java-maps-fleetengine-delivery/pom.xml b/java-maps-fleetengine-delivery/pom.xml index ca205cd9e605..a2186c0ea89b 100644 --- a/java-maps-fleetengine-delivery/pom.xml +++ b/java-maps-fleetengine-delivery/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-fleetengine-delivery-parent pom - 0.40.0 + 0.41.0-SNAPSHOT Google Last Mile Fleet Solution Delivery API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.maps google-maps-fleetengine-delivery - 0.40.0 + 0.41.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-fleetengine-delivery-v1 - 0.40.0 + 0.41.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-fleetengine-delivery-v1 - 0.40.0 + 0.41.0-SNAPSHOT diff --git a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/pom.xml b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/pom.xml index cbad272b8559..949c831c1364 100644 --- a/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/pom.xml +++ b/java-maps-fleetengine-delivery/proto-google-maps-fleetengine-delivery-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-fleetengine-delivery-v1 - 0.40.0 + 0.41.0-SNAPSHOT proto-google-maps-fleetengine-delivery-v1 Proto library for google-maps-fleetengine-delivery com.google.maps google-maps-fleetengine-delivery-parent - 0.40.0 + 0.41.0-SNAPSHOT diff --git a/java-maps-fleetengine/google-maps-fleetengine-bom/pom.xml b/java-maps-fleetengine/google-maps-fleetengine-bom/pom.xml index 6f469f0832d0..52bedb4e8a44 100644 --- a/java-maps-fleetengine/google-maps-fleetengine-bom/pom.xml +++ b/java-maps-fleetengine/google-maps-fleetengine-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-fleetengine-bom - 0.40.0 + 0.41.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-fleetengine - 0.40.0 + 0.41.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-fleetengine-v1 - 0.40.0 + 0.41.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-fleetengine-v1 - 0.40.0 + 0.41.0-SNAPSHOT diff --git a/java-maps-fleetengine/google-maps-fleetengine/pom.xml b/java-maps-fleetengine/google-maps-fleetengine/pom.xml index 2d674ad49728..3bde4966a41d 100644 --- a/java-maps-fleetengine/google-maps-fleetengine/pom.xml +++ b/java-maps-fleetengine/google-maps-fleetengine/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-fleetengine - 0.40.0 + 0.41.0-SNAPSHOT jar Google Local Rides and Deliveries API Local Rides and Deliveries API Enables Fleet Engine for access to the On Demand Rides and Deliveries and Last Mile Fleet Solution APIs. Customer's use of Google Maps Content in the Cloud Logging Services is subject to the Google Maps Platform Terms of Service located at https://cloud.google.com/maps-platform/terms. com.google.maps google-maps-fleetengine-parent - 0.40.0 + 0.41.0-SNAPSHOT google-maps-fleetengine diff --git a/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/stub/Version.java b/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/stub/Version.java index 78828432aab3..6be7b3711e85 100644 --- a/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/stub/Version.java +++ b/java-maps-fleetengine/google-maps-fleetengine/src/main/java/com/google/maps/fleetengine/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-maps-fleetengine:current} - static final String VERSION = "0.40.0"; + static final String VERSION = "0.41.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/pom.xml b/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/pom.xml index fc8f4f7aa8cc..5e16399a9d10 100644 --- a/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/pom.xml +++ b/java-maps-fleetengine/grpc-google-maps-fleetengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-fleetengine-v1 - 0.40.0 + 0.41.0-SNAPSHOT grpc-google-maps-fleetengine-v1 GRPC library for google-maps-fleetengine com.google.maps google-maps-fleetengine-parent - 0.40.0 + 0.41.0-SNAPSHOT diff --git a/java-maps-fleetengine/pom.xml b/java-maps-fleetengine/pom.xml index 49253ade6180..c90ea76b6f2a 100644 --- a/java-maps-fleetengine/pom.xml +++ b/java-maps-fleetengine/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-fleetengine-parent pom - 0.40.0 + 0.41.0-SNAPSHOT Google Local Rides and Deliveries API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.maps google-maps-fleetengine - 0.40.0 + 0.41.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-fleetengine-v1 - 0.40.0 + 0.41.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-fleetengine-v1 - 0.40.0 + 0.41.0-SNAPSHOT diff --git a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/pom.xml b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/pom.xml index aa9474e7416b..96f7ac9c1d7a 100644 --- a/java-maps-fleetengine/proto-google-maps-fleetengine-v1/pom.xml +++ b/java-maps-fleetengine/proto-google-maps-fleetengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-fleetengine-v1 - 0.40.0 + 0.41.0-SNAPSHOT proto-google-maps-fleetengine-v1 Proto library for google-maps-fleetengine com.google.maps google-maps-fleetengine-parent - 0.40.0 + 0.41.0-SNAPSHOT diff --git a/java-maps-geocode/google-maps-geocode-bom/pom.xml b/java-maps-geocode/google-maps-geocode-bom/pom.xml index f31e6e1dabae..bdf08d094124 100644 --- a/java-maps-geocode/google-maps-geocode-bom/pom.xml +++ b/java-maps-geocode/google-maps-geocode-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-geocode-bom - 0.5.0 + 0.6.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-geocode - 0.5.0 + 0.6.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-geocode-v4 - 0.5.0 + 0.6.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-geocode-v4 - 0.5.0 + 0.6.0-SNAPSHOT diff --git a/java-maps-geocode/google-maps-geocode/pom.xml b/java-maps-geocode/google-maps-geocode/pom.xml index d8a30068c1fa..57e9ddb23e3a 100644 --- a/java-maps-geocode/google-maps-geocode/pom.xml +++ b/java-maps-geocode/google-maps-geocode/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-geocode - 0.5.0 + 0.6.0-SNAPSHOT jar Google Geocoding API Geocoding API The Geocoding API is a service that accepts a place as an address, latitude and longitude coordinates, or Place ID. com.google.maps google-maps-geocode-parent - 0.5.0 + 0.6.0-SNAPSHOT google-maps-geocode diff --git a/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/stub/Version.java b/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/stub/Version.java index 2551668f3eea..3c6ac146c9f5 100644 --- a/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/stub/Version.java +++ b/java-maps-geocode/google-maps-geocode/src/main/java/com/google/maps/geocode/v4/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-maps-geocode:current} - static final String VERSION = "0.5.0"; + static final String VERSION = "0.6.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-maps-geocode/grpc-google-maps-geocode-v4/pom.xml b/java-maps-geocode/grpc-google-maps-geocode-v4/pom.xml index 86aef8b2fee7..883f10513d9d 100644 --- a/java-maps-geocode/grpc-google-maps-geocode-v4/pom.xml +++ b/java-maps-geocode/grpc-google-maps-geocode-v4/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-geocode-v4 - 0.5.0 + 0.6.0-SNAPSHOT grpc-google-maps-geocode-v4 GRPC library for google-maps-geocode com.google.maps google-maps-geocode-parent - 0.5.0 + 0.6.0-SNAPSHOT diff --git a/java-maps-geocode/pom.xml b/java-maps-geocode/pom.xml index d9c4b7b349d9..e78d9000b627 100644 --- a/java-maps-geocode/pom.xml +++ b/java-maps-geocode/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-geocode-parent pom - 0.5.0 + 0.6.0-SNAPSHOT Google Geocoding API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.maps google-maps-geocode - 0.5.0 + 0.6.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-geocode-v4 - 0.5.0 + 0.6.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-geocode-v4 - 0.5.0 + 0.6.0-SNAPSHOT diff --git a/java-maps-geocode/proto-google-maps-geocode-v4/pom.xml b/java-maps-geocode/proto-google-maps-geocode-v4/pom.xml index 957e595288ae..ee44bd8b2ffb 100644 --- a/java-maps-geocode/proto-google-maps-geocode-v4/pom.xml +++ b/java-maps-geocode/proto-google-maps-geocode-v4/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-geocode-v4 - 0.5.0 + 0.6.0-SNAPSHOT proto-google-maps-geocode-v4 Proto library for google-maps-geocode com.google.maps google-maps-geocode-parent - 0.5.0 + 0.6.0-SNAPSHOT diff --git a/java-maps-mapmanagement/google-maps-mapmanagement-bom/pom.xml b/java-maps-mapmanagement/google-maps-mapmanagement-bom/pom.xml index cfc6afadd7e9..78c88e008988 100644 --- a/java-maps-mapmanagement/google-maps-mapmanagement-bom/pom.xml +++ b/java-maps-mapmanagement/google-maps-mapmanagement-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-mapmanagement-bom - 0.2.0 + 0.3.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-mapmanagement - 0.2.0 + 0.3.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-mapmanagement-v2beta - 0.2.0 + 0.3.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-mapmanagement-v2beta - 0.2.0 + 0.3.0-SNAPSHOT diff --git a/java-maps-mapmanagement/google-maps-mapmanagement/pom.xml b/java-maps-mapmanagement/google-maps-mapmanagement/pom.xml index ec65660e171b..63d7a37ee071 100644 --- a/java-maps-mapmanagement/google-maps-mapmanagement/pom.xml +++ b/java-maps-mapmanagement/google-maps-mapmanagement/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-mapmanagement - 0.2.0 + 0.3.0-SNAPSHOT jar Google Map Management API Map Management API The Map Management API is a RESTful service that accepts HTTP requests for map styling data through a variety of methods. It returns formatted configuration data about map styling resources so that you can programmatically manage your Cloud-based map styles. com.google.maps google-maps-mapmanagement-parent - 0.2.0 + 0.3.0-SNAPSHOT google-maps-mapmanagement diff --git a/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/Version.java b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/Version.java index fc88e16b7d12..e64b1cdc8b7a 100644 --- a/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/Version.java +++ b/java-maps-mapmanagement/google-maps-mapmanagement/src/main/java/com/google/maps/mapmanagement/v2beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-maps-mapmanagement:current} - static final String VERSION = "0.2.0"; + static final String VERSION = "0.3.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-maps-mapmanagement/grpc-google-maps-mapmanagement-v2beta/pom.xml b/java-maps-mapmanagement/grpc-google-maps-mapmanagement-v2beta/pom.xml index 8b1f5e93b7de..48d628aeb75b 100644 --- a/java-maps-mapmanagement/grpc-google-maps-mapmanagement-v2beta/pom.xml +++ b/java-maps-mapmanagement/grpc-google-maps-mapmanagement-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-mapmanagement-v2beta - 0.2.0 + 0.3.0-SNAPSHOT grpc-google-maps-mapmanagement-v2beta GRPC library for google-maps-mapmanagement com.google.maps google-maps-mapmanagement-parent - 0.2.0 + 0.3.0-SNAPSHOT diff --git a/java-maps-mapmanagement/pom.xml b/java-maps-mapmanagement/pom.xml index 013ff31a203a..e9138e510679 100644 --- a/java-maps-mapmanagement/pom.xml +++ b/java-maps-mapmanagement/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-mapmanagement-parent pom - 0.2.0 + 0.3.0-SNAPSHOT Google Map Management API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.maps google-maps-mapmanagement - 0.2.0 + 0.3.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-mapmanagement-v2beta - 0.2.0 + 0.3.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-mapmanagement-v2beta - 0.2.0 + 0.3.0-SNAPSHOT diff --git a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/pom.xml b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/pom.xml index a5149324b172..25d13a297618 100644 --- a/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/pom.xml +++ b/java-maps-mapmanagement/proto-google-maps-mapmanagement-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-mapmanagement-v2beta - 0.2.0 + 0.3.0-SNAPSHOT proto-google-maps-mapmanagement-v2beta Proto library for google-maps-mapmanagement com.google.maps google-maps-mapmanagement-parent - 0.2.0 + 0.3.0-SNAPSHOT diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets-bom/pom.xml b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets-bom/pom.xml index 9afd396bbf72..a0d973a7bd48 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets-bom/pom.xml +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-mapsplatformdatasets-bom - 0.82.0 + 0.83.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.maps google-maps-mapsplatformdatasets - 0.82.0 + 0.83.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-mapsplatformdatasets-v1 - 0.82.0 + 0.83.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-mapsplatformdatasets-v1 - 0.82.0 + 0.83.0-SNAPSHOT diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml index 8ec7dbde93f8..00fa6751843b 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.maps google-maps-mapsplatformdatasets - 0.82.0 + 0.83.0-SNAPSHOT jar Google Maps Platform Datasets API Maps Platform Datasets API The Maps Platform Datasets API enables developers to ingest geospatially-tied datasets @@ -11,7 +11,7 @@ com.google.maps google-maps-mapsplatformdatasets-parent - 0.82.0 + 0.83.0-SNAPSHOT google-maps-mapsplatformdatasets diff --git a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/Version.java b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/Version.java index 2ed2e2ed43e1..7432beadb3b7 100644 --- a/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/Version.java +++ b/java-maps-mapsplatformdatasets/google-maps-mapsplatformdatasets/src/main/java/com/google/maps/mapsplatformdatasets/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-maps-mapsplatformdatasets:current} - static final String VERSION = "0.82.0"; + static final String VERSION = "0.83.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml b/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml index c9c8e9f26345..222d561165f0 100644 --- a/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml +++ b/java-maps-mapsplatformdatasets/grpc-google-maps-mapsplatformdatasets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-mapsplatformdatasets-v1 - 0.82.0 + 0.83.0-SNAPSHOT grpc-google-maps-mapsplatformdatasets-v1 GRPC library for google-maps-mapsplatformdatasets com.google.maps google-maps-mapsplatformdatasets-parent - 0.82.0 + 0.83.0-SNAPSHOT diff --git a/java-maps-mapsplatformdatasets/pom.xml b/java-maps-mapsplatformdatasets/pom.xml index c45081c81377..97fa6eb817bd 100644 --- a/java-maps-mapsplatformdatasets/pom.xml +++ b/java-maps-mapsplatformdatasets/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-mapsplatformdatasets-parent pom - 0.82.0 + 0.83.0-SNAPSHOT Google Maps Platform Datasets API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.maps google-maps-mapsplatformdatasets - 0.82.0 + 0.83.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-mapsplatformdatasets-v1 - 0.82.0 + 0.83.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-mapsplatformdatasets-v1 - 0.82.0 + 0.83.0-SNAPSHOT diff --git a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml index d6f94167c0a6..a749acb913b6 100644 --- a/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml +++ b/java-maps-mapsplatformdatasets/proto-google-maps-mapsplatformdatasets-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-mapsplatformdatasets-v1 - 0.82.0 + 0.83.0-SNAPSHOT proto-google-maps-mapsplatformdatasets-v1 Proto library for google-maps-mapsplatformdatasets com.google.maps google-maps-mapsplatformdatasets-parent - 0.82.0 + 0.83.0-SNAPSHOT diff --git a/java-maps-places/google-maps-places-bom/pom.xml b/java-maps-places/google-maps-places-bom/pom.xml index 671819556b3d..3fcfe9328ffc 100644 --- a/java-maps-places/google-maps-places-bom/pom.xml +++ b/java-maps-places/google-maps-places-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-places-bom - 0.64.0 + 0.65.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.maps google-maps-places - 0.64.0 + 0.65.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-places-v1 - 0.64.0 + 0.65.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-places-v1 - 0.64.0 + 0.65.0-SNAPSHOT diff --git a/java-maps-places/google-maps-places/pom.xml b/java-maps-places/google-maps-places/pom.xml index 2aae2e5586a7..616888a7f0a3 100644 --- a/java-maps-places/google-maps-places/pom.xml +++ b/java-maps-places/google-maps-places/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.maps google-maps-places - 0.64.0 + 0.65.0-SNAPSHOT jar Google Places API (New) Places API (New) The Places API allows developers to access a variety of search and @@ -11,7 +11,7 @@ com.google.maps google-maps-places-parent - 0.64.0 + 0.65.0-SNAPSHOT google-maps-places diff --git a/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/Version.java b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/Version.java index c3040ba7d530..6c605eac7050 100644 --- a/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/Version.java +++ b/java-maps-places/google-maps-places/src/main/java/com/google/maps/places/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-maps-places:current} - static final String VERSION = "0.64.0"; + static final String VERSION = "0.65.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-maps-places/grpc-google-maps-places-v1/pom.xml b/java-maps-places/grpc-google-maps-places-v1/pom.xml index 87cf2ce57dc1..de2c9b852473 100644 --- a/java-maps-places/grpc-google-maps-places-v1/pom.xml +++ b/java-maps-places/grpc-google-maps-places-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-places-v1 - 0.64.0 + 0.65.0-SNAPSHOT grpc-google-maps-places-v1 GRPC library for google-maps-places com.google.maps google-maps-places-parent - 0.64.0 + 0.65.0-SNAPSHOT diff --git a/java-maps-places/pom.xml b/java-maps-places/pom.xml index 9b8ffd4b4cf8..87ef630c9bc0 100644 --- a/java-maps-places/pom.xml +++ b/java-maps-places/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-places-parent pom - 0.64.0 + 0.65.0-SNAPSHOT Google Places API (New) Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.maps google-maps-places - 0.64.0 + 0.65.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-places-v1 - 0.64.0 + 0.65.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-places-v1 - 0.64.0 + 0.65.0-SNAPSHOT diff --git a/java-maps-places/proto-google-maps-places-v1/pom.xml b/java-maps-places/proto-google-maps-places-v1/pom.xml index 7337c00da27f..8531e7c82348 100644 --- a/java-maps-places/proto-google-maps-places-v1/pom.xml +++ b/java-maps-places/proto-google-maps-places-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-places-v1 - 0.64.0 + 0.65.0-SNAPSHOT proto-google-maps-places-v1 Proto library for google-maps-places com.google.maps google-maps-places-parent - 0.64.0 + 0.65.0-SNAPSHOT diff --git a/java-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml b/java-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml index a1250f7cb427..3add070f05b7 100644 --- a/java-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml +++ b/java-maps-routeoptimization/google-maps-routeoptimization-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-routeoptimization-bom - 0.51.0 + 0.52.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-routeoptimization - 0.51.0 + 0.52.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-routeoptimization-v1 - 0.51.0 + 0.52.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-routeoptimization-v1 - 0.51.0 + 0.52.0-SNAPSHOT diff --git a/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml b/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml index 509ad838c69a..e8bb399c7126 100644 --- a/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml +++ b/java-maps-routeoptimization/google-maps-routeoptimization/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-routeoptimization - 0.51.0 + 0.52.0-SNAPSHOT jar Google Route Optimization API Route Optimization API The Route Optimization API assigns tasks and routes to a vehicle fleet, optimizing against the objectives and constraints that you supply for your transportation goals. com.google.maps google-maps-routeoptimization-parent - 0.51.0 + 0.52.0-SNAPSHOT google-maps-routeoptimization diff --git a/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/stub/Version.java b/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/stub/Version.java index d59b8b968efd..ca72e394b235 100644 --- a/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/stub/Version.java +++ b/java-maps-routeoptimization/google-maps-routeoptimization/src/main/java/com/google/maps/routeoptimization/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-maps-routeoptimization:current} - static final String VERSION = "0.51.0"; + static final String VERSION = "0.52.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml b/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml index 95ff8e7f05e2..fe62a4b82df6 100644 --- a/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml +++ b/java-maps-routeoptimization/grpc-google-maps-routeoptimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-routeoptimization-v1 - 0.51.0 + 0.52.0-SNAPSHOT grpc-google-maps-routeoptimization-v1 GRPC library for google-maps-routeoptimization com.google.maps google-maps-routeoptimization-parent - 0.51.0 + 0.52.0-SNAPSHOT diff --git a/java-maps-routeoptimization/pom.xml b/java-maps-routeoptimization/pom.xml index 858699fb33ab..c4d23dec3481 100644 --- a/java-maps-routeoptimization/pom.xml +++ b/java-maps-routeoptimization/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-routeoptimization-parent pom - 0.51.0 + 0.52.0-SNAPSHOT Google Route Optimization API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.maps google-maps-routeoptimization - 0.51.0 + 0.52.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-routeoptimization-v1 - 0.51.0 + 0.52.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-routeoptimization-v1 - 0.51.0 + 0.52.0-SNAPSHOT diff --git a/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml b/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml index c81db545d0d1..57257f70a237 100644 --- a/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml +++ b/java-maps-routeoptimization/proto-google-maps-routeoptimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-routeoptimization-v1 - 0.51.0 + 0.52.0-SNAPSHOT proto-google-maps-routeoptimization-v1 Proto library for google-maps-routeoptimization com.google.maps google-maps-routeoptimization-parent - 0.51.0 + 0.52.0-SNAPSHOT diff --git a/java-maps-routing/google-maps-routing-bom/pom.xml b/java-maps-routing/google-maps-routing-bom/pom.xml index 7ef22d699e81..f91512d7d2c5 100644 --- a/java-maps-routing/google-maps-routing-bom/pom.xml +++ b/java-maps-routing/google-maps-routing-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.maps google-maps-routing-bom - 1.78.0 + 1.79.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.maps google-maps-routing - 1.78.0 + 1.79.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-routing-v2 - 1.78.0 + 1.79.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-routing-v2 - 1.78.0 + 1.79.0-SNAPSHOT diff --git a/java-maps-routing/google-maps-routing/pom.xml b/java-maps-routing/google-maps-routing/pom.xml index 04afd7a3910e..a180bfd954f4 100644 --- a/java-maps-routing/google-maps-routing/pom.xml +++ b/java-maps-routing/google-maps-routing/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-routing - 1.78.0 + 1.79.0-SNAPSHOT jar Google Routes API Routes API Routes API is the next generation, performance optimized version of the existing Directions API and Distance Matrix API. It helps you find the ideal route from A to Z, calculates ETAs and distances for matrices of origin and destination locations, and also offers new features. com.google.maps google-maps-routing-parent - 1.78.0 + 1.79.0-SNAPSHOT google-maps-routing diff --git a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/Version.java b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/Version.java index 362e3aa70439..3db22e45a571 100644 --- a/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/Version.java +++ b/java-maps-routing/google-maps-routing/src/main/java/com/google/maps/routing/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-maps-routing:current} - static final String VERSION = "1.78.0"; + static final String VERSION = "1.79.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-maps-routing/grpc-google-maps-routing-v2/pom.xml b/java-maps-routing/grpc-google-maps-routing-v2/pom.xml index bf8d36beb572..1fd49f89f1f5 100644 --- a/java-maps-routing/grpc-google-maps-routing-v2/pom.xml +++ b/java-maps-routing/grpc-google-maps-routing-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-routing-v2 - 1.78.0 + 1.79.0-SNAPSHOT grpc-google-maps-routing-v2 GRPC library for google-maps-routing com.google.maps google-maps-routing-parent - 1.78.0 + 1.79.0-SNAPSHOT diff --git a/java-maps-routing/pom.xml b/java-maps-routing/pom.xml index d9ce08a597bd..112d8dbfecd0 100644 --- a/java-maps-routing/pom.xml +++ b/java-maps-routing/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-routing-parent pom - 1.78.0 + 1.79.0-SNAPSHOT Google Routes API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.maps google-maps-routing - 1.78.0 + 1.79.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-routing-v2 - 1.78.0 + 1.79.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-routing-v2 - 1.78.0 + 1.79.0-SNAPSHOT diff --git a/java-maps-routing/proto-google-maps-routing-v2/pom.xml b/java-maps-routing/proto-google-maps-routing-v2/pom.xml index d8974ccfa428..e135b1c75d4d 100644 --- a/java-maps-routing/proto-google-maps-routing-v2/pom.xml +++ b/java-maps-routing/proto-google-maps-routing-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-routing-v2 - 1.78.0 + 1.79.0-SNAPSHOT proto-google-maps-routing-v2 Proto library for google-maps-routing com.google.maps google-maps-routing-parent - 1.78.0 + 1.79.0-SNAPSHOT diff --git a/java-maps-solar/google-maps-solar-bom/pom.xml b/java-maps-solar/google-maps-solar-bom/pom.xml index 140e70d53bda..d3436ea768e2 100644 --- a/java-maps-solar/google-maps-solar-bom/pom.xml +++ b/java-maps-solar/google-maps-solar-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.maps google-maps-solar-bom - 0.52.0 + 0.53.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.maps google-maps-solar - 0.52.0 + 0.53.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-solar-v1 - 0.52.0 + 0.53.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-solar-v1 - 0.52.0 + 0.53.0-SNAPSHOT diff --git a/java-maps-solar/google-maps-solar/pom.xml b/java-maps-solar/google-maps-solar/pom.xml index 93fe520904e2..823795e4567a 100644 --- a/java-maps-solar/google-maps-solar/pom.xml +++ b/java-maps-solar/google-maps-solar/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.maps google-maps-solar - 0.52.0 + 0.53.0-SNAPSHOT jar Google Solar API Solar API The Solar API allows users to read details about the solar potential of over 60 million buildings. This includes measurements of the building's roof (e.g., size and tilt/azimuth), energy production for a range of sizes of solar installations, and financial costs and benefits. com.google.maps google-maps-solar-parent - 0.52.0 + 0.53.0-SNAPSHOT google-maps-solar diff --git a/java-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/stub/Version.java b/java-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/stub/Version.java index 7bcd2fc52cb0..49f7eaf6d859 100644 --- a/java-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/stub/Version.java +++ b/java-maps-solar/google-maps-solar/src/main/java/com/google/maps/solar/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-maps-solar:current} - static final String VERSION = "0.52.0"; + static final String VERSION = "0.53.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-maps-solar/grpc-google-maps-solar-v1/pom.xml b/java-maps-solar/grpc-google-maps-solar-v1/pom.xml index 6660d0ad4fdc..2927abe8adb4 100644 --- a/java-maps-solar/grpc-google-maps-solar-v1/pom.xml +++ b/java-maps-solar/grpc-google-maps-solar-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc grpc-google-maps-solar-v1 - 0.52.0 + 0.53.0-SNAPSHOT grpc-google-maps-solar-v1 GRPC library for google-maps-solar com.google.maps google-maps-solar-parent - 0.52.0 + 0.53.0-SNAPSHOT diff --git a/java-maps-solar/pom.xml b/java-maps-solar/pom.xml index 69cfbc3195ca..6e4de28d4953 100644 --- a/java-maps-solar/pom.xml +++ b/java-maps-solar/pom.xml @@ -4,7 +4,7 @@ com.google.maps google-maps-solar-parent pom - 0.52.0 + 0.53.0-SNAPSHOT Google Solar API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.maps google-maps-solar - 0.52.0 + 0.53.0-SNAPSHOT com.google.maps.api.grpc grpc-google-maps-solar-v1 - 0.52.0 + 0.53.0-SNAPSHOT com.google.maps.api.grpc proto-google-maps-solar-v1 - 0.52.0 + 0.53.0-SNAPSHOT diff --git a/java-maps-solar/proto-google-maps-solar-v1/pom.xml b/java-maps-solar/proto-google-maps-solar-v1/pom.xml index e24cf4ea7590..db7e603c2413 100644 --- a/java-maps-solar/proto-google-maps-solar-v1/pom.xml +++ b/java-maps-solar/proto-google-maps-solar-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.maps.api.grpc proto-google-maps-solar-v1 - 0.52.0 + 0.53.0-SNAPSHOT proto-google-maps-solar-v1 Proto library for google-maps-solar com.google.maps google-maps-solar-parent - 0.52.0 + 0.53.0-SNAPSHOT diff --git a/java-marketingplatformadminapi/admin-bom/pom.xml b/java-marketingplatformadminapi/admin-bom/pom.xml index df955ada5076..b4e568f02153 100644 --- a/java-marketingplatformadminapi/admin-bom/pom.xml +++ b/java-marketingplatformadminapi/admin-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.ads-marketingplatform admin-bom - 0.42.0 + 0.43.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.ads-marketingplatform admin - 0.42.0 + 0.43.0-SNAPSHOT com.google.ads-marketingplatform.api.grpc grpc-admin-v1alpha - 0.42.0 + 0.43.0-SNAPSHOT com.google.ads-marketingplatform.api.grpc proto-admin-v1alpha - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-marketingplatformadminapi/admin/pom.xml b/java-marketingplatformadminapi/admin/pom.xml index 5f7bab813ebd..53a5f9a935e5 100644 --- a/java-marketingplatformadminapi/admin/pom.xml +++ b/java-marketingplatformadminapi/admin/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.ads-marketingplatform admin - 0.42.0 + 0.43.0-SNAPSHOT jar Google Google Marketing Platform Admin API Google Marketing Platform Admin API The Google Marketing Platform Admin API allows for programmatic access to the Google Marketing Platform configuration data. You can use the Google Marketing Platform Admin API to manage links between your Google Marketing Platform organization and Google Analytics accounts, and to set the service level of your GA4 properties. com.google.ads-marketingplatform admin-parent - 0.42.0 + 0.43.0-SNAPSHOT admin diff --git a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/Version.java b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/Version.java index 3e30aea460ac..6f7c0eb29d90 100644 --- a/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/Version.java +++ b/java-marketingplatformadminapi/admin/src/main/java/com/google/ads/marketingplatform/admin/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:admin:current} - static final String VERSION = "0.42.0"; + static final String VERSION = "0.43.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-marketingplatformadminapi/grpc-admin-v1alpha/pom.xml b/java-marketingplatformadminapi/grpc-admin-v1alpha/pom.xml index 6ed34e3ff5b7..ea98fc66b61d 100644 --- a/java-marketingplatformadminapi/grpc-admin-v1alpha/pom.xml +++ b/java-marketingplatformadminapi/grpc-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.ads-marketingplatform.api.grpc grpc-admin-v1alpha - 0.42.0 + 0.43.0-SNAPSHOT grpc-admin-v1alpha GRPC library for admin com.google.ads-marketingplatform admin-parent - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-marketingplatformadminapi/pom.xml b/java-marketingplatformadminapi/pom.xml index 6bd53a234c9d..a24a9c62f6e6 100644 --- a/java-marketingplatformadminapi/pom.xml +++ b/java-marketingplatformadminapi/pom.xml @@ -4,7 +4,7 @@ com.google.ads-marketingplatform admin-parent pom - 0.42.0 + 0.43.0-SNAPSHOT Google Google Marketing Platform Admin API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.ads-marketingplatform admin - 0.42.0 + 0.43.0-SNAPSHOT com.google.ads-marketingplatform.api.grpc grpc-admin-v1alpha - 0.42.0 + 0.43.0-SNAPSHOT com.google.ads-marketingplatform.api.grpc proto-admin-v1alpha - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-marketingplatformadminapi/proto-admin-v1alpha/pom.xml b/java-marketingplatformadminapi/proto-admin-v1alpha/pom.xml index a684b684abb4..c3274fba0db6 100644 --- a/java-marketingplatformadminapi/proto-admin-v1alpha/pom.xml +++ b/java-marketingplatformadminapi/proto-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.ads-marketingplatform.api.grpc proto-admin-v1alpha - 0.42.0 + 0.43.0-SNAPSHOT proto-admin-v1alpha Proto library for admin com.google.ads-marketingplatform admin-parent - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml b/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml index acb2b53d808d..1a55ff38ea15 100644 --- a/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml +++ b/java-mediatranslation/google-cloud-mediatranslation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-mediatranslation-bom - 0.99.0 + 0.100.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,17 +24,17 @@ com.google.cloud google-cloud-mediatranslation - 0.99.0 + 0.100.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-mediatranslation-v1beta1 - 0.99.0 + 0.100.0-SNAPSHOT com.google.api.grpc proto-google-cloud-mediatranslation-v1beta1 - 0.99.0 + 0.100.0-SNAPSHOT diff --git a/java-mediatranslation/google-cloud-mediatranslation/pom.xml b/java-mediatranslation/google-cloud-mediatranslation/pom.xml index accb224820ea..21b95bd5f799 100644 --- a/java-mediatranslation/google-cloud-mediatranslation/pom.xml +++ b/java-mediatranslation/google-cloud-mediatranslation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-mediatranslation - 0.99.0 + 0.100.0-SNAPSHOT jar Google Media Translation API provides enterprise quality translation from/to various media types. com.google.cloud google-cloud-mediatranslation-parent - 0.99.0 + 0.100.0-SNAPSHOT google-cloud-mediatranslation diff --git a/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/Version.java b/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/Version.java index f56782351e3b..84d9312150cc 100644 --- a/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/Version.java +++ b/java-mediatranslation/google-cloud-mediatranslation/src/main/java/com/google/cloud/mediatranslation/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-mediatranslation:current} - static final String VERSION = "0.99.0"; + static final String VERSION = "0.100.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml b/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml index d552830868c8..1889f48c38f4 100644 --- a/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml +++ b/java-mediatranslation/grpc-google-cloud-mediatranslation-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-mediatranslation-v1beta1 - 0.99.0 + 0.100.0-SNAPSHOT grpc-google-cloud-mediatranslation-v1beta1 GRPC library for grpc-google-cloud-mediatranslation-v1beta1 com.google.cloud google-cloud-mediatranslation-parent - 0.99.0 + 0.100.0-SNAPSHOT diff --git a/java-mediatranslation/pom.xml b/java-mediatranslation/pom.xml index 187f0c1d359e..9c58247406f3 100644 --- a/java-mediatranslation/pom.xml +++ b/java-mediatranslation/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-mediatranslation-parent pom - 0.99.0 + 0.100.0-SNAPSHOT Google Media Translation API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-mediatranslation - 0.99.0 + 0.100.0-SNAPSHOT com.google.api.grpc proto-google-cloud-mediatranslation-v1beta1 - 0.99.0 + 0.100.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-mediatranslation-v1beta1 - 0.99.0 + 0.100.0-SNAPSHOT diff --git a/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml b/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml index 8faee10503be..e1f84cb5ada1 100644 --- a/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml +++ b/java-mediatranslation/proto-google-cloud-mediatranslation-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-mediatranslation-v1beta1 - 0.99.0 + 0.100.0-SNAPSHOT proto-google-cloud-mediatranslation-v1beta1 PROTO library for proto-google-cloud-mediatranslation-v1beta1 com.google.cloud google-cloud-mediatranslation-parent - 0.99.0 + 0.100.0-SNAPSHOT diff --git a/java-meet/google-cloud-meet-bom/pom.xml b/java-meet/google-cloud-meet-bom/pom.xml index 56c9f88aa75b..8d6e94315d0a 100644 --- a/java-meet/google-cloud-meet-bom/pom.xml +++ b/java-meet/google-cloud-meet-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-meet-bom - 0.60.0 + 0.61.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-meet - 0.60.0 + 0.61.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-meet-v2beta - 0.60.0 + 0.61.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-meet-v2 - 0.60.0 + 0.61.0-SNAPSHOT com.google.api.grpc proto-google-cloud-meet-v2beta - 0.60.0 + 0.61.0-SNAPSHOT com.google.api.grpc proto-google-cloud-meet-v2 - 0.60.0 + 0.61.0-SNAPSHOT diff --git a/java-meet/google-cloud-meet/pom.xml b/java-meet/google-cloud-meet/pom.xml index 202f21b223fb..1895692ac198 100644 --- a/java-meet/google-cloud-meet/pom.xml +++ b/java-meet/google-cloud-meet/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-meet - 0.60.0 + 0.61.0-SNAPSHOT jar Google Google Meet API Google Meet API The Google Meet REST API lets you create and manage meetings for Google Meet and offers entry points to your users directly from your app com.google.cloud google-cloud-meet-parent - 0.60.0 + 0.61.0-SNAPSHOT google-cloud-meet diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/Version.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/Version.java index 4d0c43a9f989..3ef6ec4965f8 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/Version.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-meet:current} - static final String VERSION = "0.60.0"; + static final String VERSION = "0.61.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/Version.java b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/Version.java index 0de59335641f..9317a54154ae 100644 --- a/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/Version.java +++ b/java-meet/google-cloud-meet/src/main/java/com/google/apps/meet/v2beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-meet:current} - static final String VERSION = "0.60.0"; + static final String VERSION = "0.61.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-meet/grpc-google-cloud-meet-v2/pom.xml b/java-meet/grpc-google-cloud-meet-v2/pom.xml index 3327f1e85c66..78e033547e88 100644 --- a/java-meet/grpc-google-cloud-meet-v2/pom.xml +++ b/java-meet/grpc-google-cloud-meet-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-meet-v2 - 0.60.0 + 0.61.0-SNAPSHOT grpc-google-cloud-meet-v2 GRPC library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.60.0 + 0.61.0-SNAPSHOT diff --git a/java-meet/grpc-google-cloud-meet-v2beta/pom.xml b/java-meet/grpc-google-cloud-meet-v2beta/pom.xml index 8bc34e5c5e29..0b95020f2811 100644 --- a/java-meet/grpc-google-cloud-meet-v2beta/pom.xml +++ b/java-meet/grpc-google-cloud-meet-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-meet-v2beta - 0.60.0 + 0.61.0-SNAPSHOT grpc-google-cloud-meet-v2beta GRPC library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.60.0 + 0.61.0-SNAPSHOT diff --git a/java-meet/pom.xml b/java-meet/pom.xml index 1e320187c924..65539fc15d8d 100644 --- a/java-meet/pom.xml +++ b/java-meet/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-meet-parent pom - 0.60.0 + 0.61.0-SNAPSHOT Google Google Meet API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-meet - 0.60.0 + 0.61.0-SNAPSHOT com.google.api.grpc proto-google-cloud-meet-v2 - 0.60.0 + 0.61.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-meet-v2 - 0.60.0 + 0.61.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-meet-v2beta - 0.60.0 + 0.61.0-SNAPSHOT com.google.api.grpc proto-google-cloud-meet-v2beta - 0.60.0 + 0.61.0-SNAPSHOT diff --git a/java-meet/proto-google-cloud-meet-v2/pom.xml b/java-meet/proto-google-cloud-meet-v2/pom.xml index aa666dce3152..68d85b5515b1 100644 --- a/java-meet/proto-google-cloud-meet-v2/pom.xml +++ b/java-meet/proto-google-cloud-meet-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-meet-v2 - 0.60.0 + 0.61.0-SNAPSHOT proto-google-cloud-meet-v2 Proto library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.60.0 + 0.61.0-SNAPSHOT diff --git a/java-meet/proto-google-cloud-meet-v2beta/pom.xml b/java-meet/proto-google-cloud-meet-v2beta/pom.xml index a9e2c1c8a8fe..9ed0d69370fc 100644 --- a/java-meet/proto-google-cloud-meet-v2beta/pom.xml +++ b/java-meet/proto-google-cloud-meet-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-meet-v2beta - 0.60.0 + 0.61.0-SNAPSHOT proto-google-cloud-meet-v2beta Proto library for google-cloud-meet com.google.cloud google-cloud-meet-parent - 0.60.0 + 0.61.0-SNAPSHOT diff --git a/java-memcache/google-cloud-memcache-bom/pom.xml b/java-memcache/google-cloud-memcache-bom/pom.xml index 60ae4ef963fe..1f2630dc3c62 100644 --- a/java-memcache/google-cloud-memcache-bom/pom.xml +++ b/java-memcache/google-cloud-memcache-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-memcache-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-memcache - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-memcache-v1beta2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-memcache-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-memcache-v1beta2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-memcache-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-memcache/google-cloud-memcache/pom.xml b/java-memcache/google-cloud-memcache/pom.xml index c5c3f6edab77..8bc75c9756b8 100644 --- a/java-memcache/google-cloud-memcache/pom.xml +++ b/java-memcache/google-cloud-memcache/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-memcache - 2.93.0 + 2.94.0-SNAPSHOT jar Google Cloud Memcache Java idiomatic client for Google Cloud memcache com.google.cloud google-cloud-memcache-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-memcache diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/Version.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/Version.java index 517751986a5f..73a5a4e47001 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/Version.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-memcache:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/Version.java b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/Version.java index 35474d105742..2831bdad6a1a 100644 --- a/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/Version.java +++ b/java-memcache/google-cloud-memcache/src/main/java/com/google/cloud/memcache/v1beta2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-memcache:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-memcache/grpc-google-cloud-memcache-v1/pom.xml b/java-memcache/grpc-google-cloud-memcache-v1/pom.xml index 7f2b09f67f68..291b455504a6 100644 --- a/java-memcache/grpc-google-cloud-memcache-v1/pom.xml +++ b/java-memcache/grpc-google-cloud-memcache-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-memcache-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-memcache-v1 GRPC library for grpc-google-cloud-memcache-v1 com.google.cloud google-cloud-memcache-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml b/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml index 83a67d072ed9..792448c0aed2 100644 --- a/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml +++ b/java-memcache/grpc-google-cloud-memcache-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-memcache-v1beta2 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-memcache-v1beta2 GRPC library for grpc-google-cloud-memcache-v1beta2 com.google.cloud google-cloud-memcache-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-memcache/pom.xml b/java-memcache/pom.xml index 6dc7fbd09f81..9b97db588895 100644 --- a/java-memcache/pom.xml +++ b/java-memcache/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-memcache-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Cloud Memcache Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.api.grpc proto-google-cloud-memcache-v1beta2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-memcache-v1beta2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-memcache-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-memcache-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.cloud google-cloud-memcache - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-memcache/proto-google-cloud-memcache-v1/pom.xml b/java-memcache/proto-google-cloud-memcache-v1/pom.xml index 7f016d902d9a..69456c09990e 100644 --- a/java-memcache/proto-google-cloud-memcache-v1/pom.xml +++ b/java-memcache/proto-google-cloud-memcache-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-memcache-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-memcache-v1 PROTO library for proto-google-cloud-memcache-v1 com.google.cloud google-cloud-memcache-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml b/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml index a0f8100d1499..242a6587c958 100644 --- a/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml +++ b/java-memcache/proto-google-cloud-memcache-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-memcache-v1beta2 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-memcache-v1beta2 PROTO library for proto-google-cloud-memcache-v1beta2 com.google.cloud google-cloud-memcache-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-migrationcenter/google-cloud-migrationcenter-bom/pom.xml b/java-migrationcenter/google-cloud-migrationcenter-bom/pom.xml index ac1eb3bc7396..66ab68820fcf 100644 --- a/java-migrationcenter/google-cloud-migrationcenter-bom/pom.xml +++ b/java-migrationcenter/google-cloud-migrationcenter-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-migrationcenter-bom - 0.75.0 + 0.76.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-migrationcenter - 0.75.0 + 0.76.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-migrationcenter-v1 - 0.75.0 + 0.76.0-SNAPSHOT com.google.api.grpc proto-google-cloud-migrationcenter-v1 - 0.75.0 + 0.76.0-SNAPSHOT diff --git a/java-migrationcenter/google-cloud-migrationcenter/pom.xml b/java-migrationcenter/google-cloud-migrationcenter/pom.xml index 80c30a56a509..937cf2b55c6e 100644 --- a/java-migrationcenter/google-cloud-migrationcenter/pom.xml +++ b/java-migrationcenter/google-cloud-migrationcenter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-migrationcenter - 0.75.0 + 0.76.0-SNAPSHOT jar Google Migration Center API Migration Center API Google Cloud Migration Center is a unified platform that helps you accelerate your end-to-end cloud journey from your current on-premises or cloud environments to Google Cloud com.google.cloud google-cloud-migrationcenter-parent - 0.75.0 + 0.76.0-SNAPSHOT google-cloud-migrationcenter diff --git a/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/stub/Version.java b/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/stub/Version.java index 0c40a17de143..ada73d5a14c1 100644 --- a/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/stub/Version.java +++ b/java-migrationcenter/google-cloud-migrationcenter/src/main/java/com/google/cloud/migrationcenter/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-migrationcenter:current} - static final String VERSION = "0.75.0"; + static final String VERSION = "0.76.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml b/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml index 5f64e79df625..50bb8fb206b8 100644 --- a/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml +++ b/java-migrationcenter/grpc-google-cloud-migrationcenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-migrationcenter-v1 - 0.75.0 + 0.76.0-SNAPSHOT grpc-google-cloud-migrationcenter-v1 GRPC library for google-cloud-migrationcenter com.google.cloud google-cloud-migrationcenter-parent - 0.75.0 + 0.76.0-SNAPSHOT diff --git a/java-migrationcenter/pom.xml b/java-migrationcenter/pom.xml index 75d53cd6ee76..e1d8cd8a0a10 100644 --- a/java-migrationcenter/pom.xml +++ b/java-migrationcenter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-migrationcenter-parent pom - 0.75.0 + 0.76.0-SNAPSHOT Google Migration Center API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-migrationcenter - 0.75.0 + 0.76.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-migrationcenter-v1 - 0.75.0 + 0.76.0-SNAPSHOT com.google.api.grpc proto-google-cloud-migrationcenter-v1 - 0.75.0 + 0.76.0-SNAPSHOT diff --git a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml index bc821f6c0e1d..2bb94150e756 100644 --- a/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml +++ b/java-migrationcenter/proto-google-cloud-migrationcenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-migrationcenter-v1 - 0.75.0 + 0.76.0-SNAPSHOT proto-google-cloud-migrationcenter-v1 Proto library for google-cloud-migrationcenter com.google.cloud google-cloud-migrationcenter-parent - 0.75.0 + 0.76.0-SNAPSHOT diff --git a/java-modelarmor/google-cloud-modelarmor-bom/pom.xml b/java-modelarmor/google-cloud-modelarmor-bom/pom.xml index 0dd964a4ad04..c06ae5ecdaee 100644 --- a/java-modelarmor/google-cloud-modelarmor-bom/pom.xml +++ b/java-modelarmor/google-cloud-modelarmor-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-modelarmor-bom - 0.34.0 + 0.35.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-modelarmor - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-modelarmor-v1 - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-modelarmor-v1beta - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc proto-google-cloud-modelarmor-v1 - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc proto-google-cloud-modelarmor-v1beta - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-modelarmor/google-cloud-modelarmor/pom.xml b/java-modelarmor/google-cloud-modelarmor/pom.xml index cea93b65b95f..6ffd30313685 100644 --- a/java-modelarmor/google-cloud-modelarmor/pom.xml +++ b/java-modelarmor/google-cloud-modelarmor/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-modelarmor - 0.34.0 + 0.35.0-SNAPSHOT jar Google Model Armor API Model Armor API Model Armor helps you protect against risks like prompt injection, harmful content, and data leakage in generative AI applications by letting you define policies that filter user prompts and model responses. com.google.cloud google-cloud-modelarmor-parent - 0.34.0 + 0.35.0-SNAPSHOT google-cloud-modelarmor diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/stub/Version.java b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/stub/Version.java index 0cfa5a308724..d130b55e2e2d 100644 --- a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/stub/Version.java +++ b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-modelarmor:current} - static final String VERSION = "0.34.0"; + static final String VERSION = "0.35.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/Version.java b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/Version.java index aecfa9dd68b8..e80bcdac2bf2 100644 --- a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/Version.java +++ b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-modelarmor:current} - static final String VERSION = "0.34.0"; + static final String VERSION = "0.35.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-modelarmor/grpc-google-cloud-modelarmor-v1/pom.xml b/java-modelarmor/grpc-google-cloud-modelarmor-v1/pom.xml index 659788b7e3e1..858ad829d252 100644 --- a/java-modelarmor/grpc-google-cloud-modelarmor-v1/pom.xml +++ b/java-modelarmor/grpc-google-cloud-modelarmor-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-modelarmor-v1 - 0.34.0 + 0.35.0-SNAPSHOT grpc-google-cloud-modelarmor-v1 GRPC library for google-cloud-modelarmor com.google.cloud google-cloud-modelarmor-parent - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/pom.xml b/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/pom.xml index d2a6d83163e7..fc29fba6fd85 100644 --- a/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/pom.xml +++ b/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-modelarmor-v1beta - 0.34.0 + 0.35.0-SNAPSHOT grpc-google-cloud-modelarmor-v1beta GRPC library for google-cloud-modelarmor com.google.cloud google-cloud-modelarmor-parent - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-modelarmor/pom.xml b/java-modelarmor/pom.xml index 7aa09cd264ec..376b85608e76 100644 --- a/java-modelarmor/pom.xml +++ b/java-modelarmor/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-modelarmor-parent pom - 0.34.0 + 0.35.0-SNAPSHOT Google Model Armor API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-modelarmor - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc proto-google-cloud-modelarmor-v1beta - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-modelarmor-v1beta - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-modelarmor-v1 - 0.34.0 + 0.35.0-SNAPSHOT com.google.api.grpc proto-google-cloud-modelarmor-v1 - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/pom.xml b/java-modelarmor/proto-google-cloud-modelarmor-v1/pom.xml index e42eed974685..88e695f05f76 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/pom.xml +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-modelarmor-v1 - 0.34.0 + 0.35.0-SNAPSHOT proto-google-cloud-modelarmor-v1 Proto library for google-cloud-modelarmor com.google.cloud google-cloud-modelarmor-parent - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/pom.xml b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/pom.xml index b74092a58ca4..36a2c2bc5ad8 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/pom.xml +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-modelarmor-v1beta - 0.34.0 + 0.35.0-SNAPSHOT proto-google-cloud-modelarmor-v1beta Proto library for google-cloud-modelarmor com.google.cloud google-cloud-modelarmor-parent - 0.34.0 + 0.35.0-SNAPSHOT diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml b/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml index b099769ac9a8..c2e82f6daec8 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-monitoring-dashboard-bom - 2.95.0 + 2.96.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,17 +24,17 @@ com.google.cloud google-cloud-monitoring-dashboard - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml index 93b60c166a2a..f6c90f7f56d8 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-monitoring-dashboard - 2.95.0 + 2.96.0-SNAPSHOT jar Google Cloud Monitoring Dashboard Java idiomatic client for Google Cloud Monitoring Dashboard com.google.cloud google-cloud-monitoring-dashboard-parent - 2.95.0 + 2.96.0-SNAPSHOT google-cloud-monitoring-dashboard diff --git a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/Version.java b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/Version.java index f8cdbb76782b..2b00b2ba0c0c 100644 --- a/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/Version.java +++ b/java-monitoring-dashboards/google-cloud-monitoring-dashboard/src/main/java/com/google/cloud/monitoring/dashboard/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-monitoring-dashboard:current} - static final String VERSION = "2.95.0"; + static final String VERSION = "2.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml b/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml index 0d9d19d0856d..d20f3a9ac1d6 100644 --- a/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml +++ b/java-monitoring-dashboards/grpc-google-cloud-monitoring-dashboard-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.95.0 + 2.96.0-SNAPSHOT grpc-google-cloud-monitoring-dashboard-v1 GRPC library for grpc-google-cloud-monitoring-dashboard-v1 com.google.cloud google-cloud-monitoring-dashboard-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-monitoring-dashboards/pom.xml b/java-monitoring-dashboards/pom.xml index 1f1c58d2c19b..8f3204ee31fe 100644 --- a/java-monitoring-dashboards/pom.xml +++ b/java-monitoring-dashboards/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-monitoring-dashboard-parent pom - 2.95.0 + 2.96.0-SNAPSHOT Google Cloud Monitoring Dashboard Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-dashboard-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.cloud google-cloud-monitoring-dashboard - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml index 6d02b8923b37..6b83a1e05223 100644 --- a/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml +++ b/java-monitoring-dashboards/proto-google-cloud-monitoring-dashboard-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-monitoring-dashboard-v1 - 2.95.0 + 2.96.0-SNAPSHOT proto-google-cloud-monitoring-dashboard-v1 PROTO library for proto-google-cloud-monitoring-dashboard-v1 com.google.cloud google-cloud-monitoring-dashboard-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope-bom/pom.xml b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope-bom/pom.xml index 7a410260c1d5..2aa61e080d89 100644 --- a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope-bom/pom.xml +++ b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-monitoring-metricsscope-bom - 0.87.0 + 0.88.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-monitoring-metricsscope - 0.87.0 + 0.88.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-metricsscope-v1 - 0.87.0 + 0.88.0-SNAPSHOT com.google.api.grpc proto-google-cloud-monitoring-metricsscope-v1 - 0.87.0 + 0.88.0-SNAPSHOT diff --git a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml index 475ced0ae008..5574cef1e0e3 100644 --- a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml +++ b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-monitoring-metricsscope - 0.87.0 + 0.88.0-SNAPSHOT jar Google Monitoring Metrics Scopes Monitoring Metrics Scopes The metrics scope defines the set of Google Cloud projects whose metrics the current Google Cloud project can access. com.google.cloud google-cloud-monitoring-metricsscope-parent - 0.87.0 + 0.88.0-SNAPSHOT google-cloud-monitoring-metricsscope diff --git a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/stub/Version.java b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/stub/Version.java index 4182edff097d..12fa73cfc34f 100644 --- a/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/stub/Version.java +++ b/java-monitoring-metricsscope/google-cloud-monitoring-metricsscope/src/main/java/com/google/monitoring/metricsscope/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-monitoring-metricsscope:current} - static final String VERSION = "0.87.0"; + static final String VERSION = "0.88.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml b/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml index 8327f1b9fbac..ab78505475b3 100644 --- a/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml +++ b/java-monitoring-metricsscope/grpc-google-cloud-monitoring-metricsscope-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-monitoring-metricsscope-v1 - 0.87.0 + 0.88.0-SNAPSHOT grpc-google-cloud-monitoring-metricsscope-v1 GRPC library for google-cloud-monitoring-metricsscope com.google.cloud google-cloud-monitoring-metricsscope-parent - 0.87.0 + 0.88.0-SNAPSHOT diff --git a/java-monitoring-metricsscope/pom.xml b/java-monitoring-metricsscope/pom.xml index ae4c24a0962c..0b40a60377c0 100644 --- a/java-monitoring-metricsscope/pom.xml +++ b/java-monitoring-metricsscope/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-monitoring-metricsscope-parent pom - 0.87.0 + 0.88.0-SNAPSHOT Google Monitoring Metrics Scopes Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-monitoring-metricsscope - 0.87.0 + 0.88.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-metricsscope-v1 - 0.87.0 + 0.88.0-SNAPSHOT com.google.api.grpc proto-google-cloud-monitoring-metricsscope-v1 - 0.87.0 + 0.88.0-SNAPSHOT diff --git a/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml b/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml index 366c8fea2915..1d7c49a3332e 100644 --- a/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml +++ b/java-monitoring-metricsscope/proto-google-cloud-monitoring-metricsscope-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-monitoring-metricsscope-v1 - 0.87.0 + 0.88.0-SNAPSHOT proto-google-cloud-monitoring-metricsscope-v1 Proto library for google-cloud-monitoring-metricsscope com.google.cloud google-cloud-monitoring-metricsscope-parent - 0.87.0 + 0.88.0-SNAPSHOT diff --git a/java-monitoring/google-cloud-monitoring-bom/pom.xml b/java-monitoring/google-cloud-monitoring-bom/pom.xml index da2ef46671c6..590142a6f4ea 100644 --- a/java-monitoring/google-cloud-monitoring-bom/pom.xml +++ b/java-monitoring/google-cloud-monitoring-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-monitoring-bom - 3.94.0 + 3.95.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,17 +24,17 @@ com.google.cloud google-cloud-monitoring - 3.94.0 + 3.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-v3 - 3.94.0 + 3.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-monitoring-v3 - 3.94.0 + 3.95.0-SNAPSHOT diff --git a/java-monitoring/google-cloud-monitoring/pom.xml b/java-monitoring/google-cloud-monitoring/pom.xml index 2b3db87479bc..2d7b1893f0a7 100644 --- a/java-monitoring/google-cloud-monitoring/pom.xml +++ b/java-monitoring/google-cloud-monitoring/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-monitoring - 3.94.0 + 3.95.0-SNAPSHOT jar Google Cloud Monitoring Java idiomatic client for Stackdriver Monitoring com.google.cloud google-cloud-monitoring-parent - 3.94.0 + 3.95.0-SNAPSHOT google-cloud-monitoring diff --git a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/Version.java b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/Version.java index 71e53095bbb8..ef07d4a927b4 100644 --- a/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/Version.java +++ b/java-monitoring/google-cloud-monitoring/src/main/java/com/google/cloud/monitoring/v3/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-monitoring:current} - static final String VERSION = "3.94.0"; + static final String VERSION = "3.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml b/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml index 1b8be60621fd..c96c79389643 100644 --- a/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml +++ b/java-monitoring/grpc-google-cloud-monitoring-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-monitoring-v3 - 3.94.0 + 3.95.0-SNAPSHOT grpc-google-cloud-monitoring-v3 GRPC library for grpc-google-cloud-monitoring-v3 com.google.cloud google-cloud-monitoring-parent - 3.94.0 + 3.95.0-SNAPSHOT diff --git a/java-monitoring/pom.xml b/java-monitoring/pom.xml index c8316cd63f99..9774c8ca3489 100644 --- a/java-monitoring/pom.xml +++ b/java-monitoring/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-monitoring-parent pom - 3.94.0 + 3.95.0-SNAPSHOT Google Cloud Monitoring Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.api.grpc proto-google-cloud-monitoring-v3 - 3.94.0 + 3.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-monitoring-v3 - 3.94.0 + 3.95.0-SNAPSHOT com.google.cloud google-cloud-monitoring - 3.94.0 + 3.95.0-SNAPSHOT diff --git a/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml b/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml index 8158bbf1ff8e..7d5ffcdb4ca0 100644 --- a/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml +++ b/java-monitoring/proto-google-cloud-monitoring-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-monitoring-v3 - 3.94.0 + 3.95.0-SNAPSHOT proto-google-cloud-monitoring-v3 PROTO library for proto-google-cloud-monitoring-v3 com.google.cloud google-cloud-monitoring-parent - 3.94.0 + 3.95.0-SNAPSHOT diff --git a/java-netapp/google-cloud-netapp-bom/pom.xml b/java-netapp/google-cloud-netapp-bom/pom.xml index 7bf2e1bf7ef5..2bb333250d1e 100644 --- a/java-netapp/google-cloud-netapp-bom/pom.xml +++ b/java-netapp/google-cloud-netapp-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-netapp-bom - 0.72.0 + 0.73.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-netapp - 0.72.0 + 0.73.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-netapp-v1 - 0.72.0 + 0.73.0-SNAPSHOT com.google.api.grpc proto-google-cloud-netapp-v1 - 0.72.0 + 0.73.0-SNAPSHOT diff --git a/java-netapp/google-cloud-netapp/pom.xml b/java-netapp/google-cloud-netapp/pom.xml index b20d24bc57fd..a15df49e88dd 100644 --- a/java-netapp/google-cloud-netapp/pom.xml +++ b/java-netapp/google-cloud-netapp/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-netapp - 0.72.0 + 0.73.0-SNAPSHOT jar Google NetApp API NetApp API Google Cloud NetApp Volumes is a fully-managed, cloud-based data storage service that provides advanced data management capabilities and highly scalable performance with global availability. com.google.cloud google-cloud-netapp-parent - 0.72.0 + 0.73.0-SNAPSHOT google-cloud-netapp diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/Version.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/Version.java index ce8d7b6542bb..8f1c1ce3f50d 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/Version.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-netapp:current} - static final String VERSION = "0.72.0"; + static final String VERSION = "0.73.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-netapp/grpc-google-cloud-netapp-v1/pom.xml b/java-netapp/grpc-google-cloud-netapp-v1/pom.xml index 9a36d089599d..7185ed604b7d 100644 --- a/java-netapp/grpc-google-cloud-netapp-v1/pom.xml +++ b/java-netapp/grpc-google-cloud-netapp-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-netapp-v1 - 0.72.0 + 0.73.0-SNAPSHOT grpc-google-cloud-netapp-v1 GRPC library for google-cloud-netapp com.google.cloud google-cloud-netapp-parent - 0.72.0 + 0.73.0-SNAPSHOT diff --git a/java-netapp/pom.xml b/java-netapp/pom.xml index 64e3f64b987a..ec2397172c14 100644 --- a/java-netapp/pom.xml +++ b/java-netapp/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-netapp-parent pom - 0.72.0 + 0.73.0-SNAPSHOT Google NetApp API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-netapp - 0.72.0 + 0.73.0-SNAPSHOT com.google.api.grpc proto-google-cloud-netapp-v1 - 0.72.0 + 0.73.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-netapp-v1 - 0.72.0 + 0.73.0-SNAPSHOT diff --git a/java-netapp/proto-google-cloud-netapp-v1/pom.xml b/java-netapp/proto-google-cloud-netapp-v1/pom.xml index 42a0f95df4f7..14ee13c31bfa 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/pom.xml +++ b/java-netapp/proto-google-cloud-netapp-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-netapp-v1 - 0.72.0 + 0.73.0-SNAPSHOT proto-google-cloud-netapp-v1 Proto library for google-cloud-netapp com.google.cloud google-cloud-netapp-parent - 0.72.0 + 0.73.0-SNAPSHOT diff --git a/java-network-management/google-cloud-network-management-bom/pom.xml b/java-network-management/google-cloud-network-management-bom/pom.xml index 82d2e3c941f7..4f5c11cdc82b 100644 --- a/java-network-management/google-cloud-network-management-bom/pom.xml +++ b/java-network-management/google-cloud-network-management-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-network-management-bom - 1.94.0 + 1.95.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-network-management - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-network-management-v1beta1 - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-network-management-v1 - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-network-management-v1beta1 - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-network-management-v1 - 1.94.0 + 1.95.0-SNAPSHOT diff --git a/java-network-management/google-cloud-network-management/pom.xml b/java-network-management/google-cloud-network-management/pom.xml index 213129774b31..ae9f2a76d4e1 100644 --- a/java-network-management/google-cloud-network-management/pom.xml +++ b/java-network-management/google-cloud-network-management/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-network-management - 1.94.0 + 1.95.0-SNAPSHOT jar Google Network Management API Network Management API provides a collection of network performance monitoring and diagnostic capabilities. com.google.cloud google-cloud-network-management-parent - 1.94.0 + 1.95.0-SNAPSHOT google-cloud-network-management diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/Version.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/Version.java index 52c53da293ff..5d61a3f84c69 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/Version.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-network-management:current} - static final String VERSION = "1.94.0"; + static final String VERSION = "1.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/Version.java b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/Version.java index f8138b4cc945..1fe395e140c5 100644 --- a/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/Version.java +++ b/java-network-management/google-cloud-network-management/src/main/java/com/google/cloud/networkmanagement/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-network-management:current} - static final String VERSION = "1.94.0"; + static final String VERSION = "1.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-network-management/grpc-google-cloud-network-management-v1/pom.xml b/java-network-management/grpc-google-cloud-network-management-v1/pom.xml index 0ccfb135423c..6ed3b6571ba8 100644 --- a/java-network-management/grpc-google-cloud-network-management-v1/pom.xml +++ b/java-network-management/grpc-google-cloud-network-management-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-management-v1 - 1.94.0 + 1.95.0-SNAPSHOT grpc-google-cloud-network-management-v1 GRPC library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.94.0 + 1.95.0-SNAPSHOT diff --git a/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml b/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml index c418584db38f..29bd05a8ba53 100644 --- a/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml +++ b/java-network-management/grpc-google-cloud-network-management-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-management-v1beta1 - 1.94.0 + 1.95.0-SNAPSHOT grpc-google-cloud-network-management-v1beta1 GRPC library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.94.0 + 1.95.0-SNAPSHOT diff --git a/java-network-management/pom.xml b/java-network-management/pom.xml index 3add8b3924ab..0395f4d9010d 100644 --- a/java-network-management/pom.xml +++ b/java-network-management/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-network-management-parent pom - 1.94.0 + 1.95.0-SNAPSHOT Google Network Management API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-network-management - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-network-management-v1beta1 - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-network-management-v1 - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-network-management-v1beta1 - 1.94.0 + 1.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-network-management-v1 - 1.94.0 + 1.95.0-SNAPSHOT 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 40755e9da094..ef8b8cab54ec 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 @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-management-v1 - 1.94.0 + 1.95.0-SNAPSHOT proto-google-cloud-network-management-v1 Proto library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.94.0 + 1.95.0-SNAPSHOT diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml b/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml index 45bb813fd65b..39e74b3e0cdf 100644 --- a/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-management-v1beta1 - 1.94.0 + 1.95.0-SNAPSHOT proto-google-cloud-network-management-v1beta1 Proto library for google-cloud-network-management com.google.cloud google-cloud-network-management-parent - 1.94.0 + 1.95.0-SNAPSHOT diff --git a/java-network-security/google-cloud-network-security-bom/pom.xml b/java-network-security/google-cloud-network-security-bom/pom.xml index aabe7115d8d8..6d0de288eb70 100644 --- a/java-network-security/google-cloud-network-security-bom/pom.xml +++ b/java-network-security/google-cloud-network-security-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-network-security-bom - 0.96.0 + 0.97.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-network-security - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-network-security-v1beta1 - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-network-security-v1 - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc proto-google-cloud-network-security-v1beta1 - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc proto-google-cloud-network-security-v1 - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-network-security/google-cloud-network-security/pom.xml b/java-network-security/google-cloud-network-security/pom.xml index f7cc4c0efec0..09a26cbd602e 100644 --- a/java-network-security/google-cloud-network-security/pom.xml +++ b/java-network-security/google-cloud-network-security/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-network-security - 0.96.0 + 0.97.0-SNAPSHOT jar Google Network Security API Network Security API n/a com.google.cloud google-cloud-network-security-parent - 0.96.0 + 0.97.0-SNAPSHOT google-cloud-network-security diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/Version.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/Version.java index ef1d9f85a674..92701293584d 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/Version.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-network-security:current} - static final String VERSION = "0.96.0"; + static final String VERSION = "0.97.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/Version.java b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/Version.java index 9f799819c92e..37d4ab867590 100644 --- a/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/Version.java +++ b/java-network-security/google-cloud-network-security/src/main/java/com/google/cloud/networksecurity/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-network-security:current} - static final String VERSION = "0.96.0"; + static final String VERSION = "0.97.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-network-security/grpc-google-cloud-network-security-v1/pom.xml b/java-network-security/grpc-google-cloud-network-security-v1/pom.xml index 44f7e05be91f..1941a723cac0 100644 --- a/java-network-security/grpc-google-cloud-network-security-v1/pom.xml +++ b/java-network-security/grpc-google-cloud-network-security-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-security-v1 - 0.96.0 + 0.97.0-SNAPSHOT grpc-google-cloud-network-security-v1 GRPC library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml b/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml index dea148806376..d7033f31896c 100644 --- a/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml +++ b/java-network-security/grpc-google-cloud-network-security-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-network-security-v1beta1 - 0.96.0 + 0.97.0-SNAPSHOT grpc-google-cloud-network-security-v1beta1 GRPC library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-network-security/pom.xml b/java-network-security/pom.xml index c4c34b68a15e..a95339e846a6 100644 --- a/java-network-security/pom.xml +++ b/java-network-security/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-network-security-parent pom - 0.96.0 + 0.97.0-SNAPSHOT Google Network Security API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-network-security - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc proto-google-cloud-network-security-v1 - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-network-security-v1 - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-network-security-v1beta1 - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc proto-google-cloud-network-security-v1beta1 - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-network-security/proto-google-cloud-network-security-v1/pom.xml b/java-network-security/proto-google-cloud-network-security-v1/pom.xml index 26d589779f54..c05abbc5d1a6 100644 --- a/java-network-security/proto-google-cloud-network-security-v1/pom.xml +++ b/java-network-security/proto-google-cloud-network-security-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-security-v1 - 0.96.0 + 0.97.0-SNAPSHOT proto-google-cloud-network-security-v1 Proto library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml b/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml index df44cfe853a6..f222d9628a8c 100644 --- a/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml +++ b/java-network-security/proto-google-cloud-network-security-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-network-security-v1beta1 - 0.96.0 + 0.97.0-SNAPSHOT proto-google-cloud-network-security-v1beta1 Proto library for google-cloud-network-security com.google.cloud google-cloud-network-security-parent - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml b/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml index b85446f308a9..a272a257b935 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml +++ b/java-networkconnectivity/google-cloud-networkconnectivity-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-networkconnectivity-bom - 1.92.0 + 1.93.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,37 +28,37 @@ com.google.cloud google-cloud-networkconnectivity - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-networkconnectivity-v1alpha1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-networkconnectivity-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-networkconnectivity-v1beta - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-networkconnectivity-v1alpha1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-networkconnectivity-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-networkconnectivity-v1beta - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml b/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml index 25b48a859000..80b045da2eed 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml +++ b/java-networkconnectivity/google-cloud-networkconnectivity/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-networkconnectivity - 1.92.0 + 1.93.0-SNAPSHOT jar Google Network Connectivity Center Google's suite of products that provide enterprise connectivity from your on-premises network or from another cloud provider to your Virtual Private Cloud (VPC) network com.google.cloud google-cloud-networkconnectivity-parent - 1.92.0 + 1.93.0-SNAPSHOT google-cloud-networkconnectivity diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/Version.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/Version.java index 1806ea5190f5..cfd9dea15b5a 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/Version.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-networkconnectivity:current} - static final String VERSION = "1.92.0"; + static final String VERSION = "1.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/Version.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/Version.java index 314dcdc921c4..00d442a9fa98 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/Version.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-networkconnectivity:current} - static final String VERSION = "1.92.0"; + static final String VERSION = "1.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/Version.java b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/Version.java index 77ca311b71d8..b5d0e95acff5 100644 --- a/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/Version.java +++ b/java-networkconnectivity/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-networkconnectivity:current} - static final String VERSION = "1.92.0"; + static final String VERSION = "1.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml index aa307050151c..45b8b2fedec5 100644 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1 - 1.92.0 + 1.93.0-SNAPSHOT grpc-google-cloud-networkconnectivity-v1 GRPC library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml index 413b49a226d6..8ef8e85500dc 100644 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1alpha1 - 1.92.0 + 1.93.0-SNAPSHOT grpc-google-cloud-networkconnectivity-v1alpha1 GRPC library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1beta/pom.xml b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1beta/pom.xml index 99a6d4cc45d1..e18a119df8a2 100644 --- a/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1beta/pom.xml +++ b/java-networkconnectivity/grpc-google-cloud-networkconnectivity-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-networkconnectivity-v1beta - 1.92.0 + 1.93.0-SNAPSHOT grpc-google-cloud-networkconnectivity-v1beta GRPC library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-networkconnectivity/pom.xml b/java-networkconnectivity/pom.xml index b0fcba6f844b..fc7725466af3 100644 --- a/java-networkconnectivity/pom.xml +++ b/java-networkconnectivity/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-networkconnectivity-parent pom - 1.92.0 + 1.93.0-SNAPSHOT Google Network Connectivity Center Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,37 +30,37 @@ com.google.cloud google-cloud-networkconnectivity - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-networkconnectivity-v1beta - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-networkconnectivity-v1beta - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-networkconnectivity-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-networkconnectivity-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-networkconnectivity-v1alpha1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-networkconnectivity-v1alpha1 - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml index 85454c812035..8eb74dd9fd9e 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1 - 1.92.0 + 1.93.0-SNAPSHOT proto-google-cloud-networkconnectivity-v1 Proto library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml index ad335d49953c..8736567a59b6 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1alpha1 - 1.92.0 + 1.93.0-SNAPSHOT proto-google-cloud-networkconnectivity-v1alpha1 Proto library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/pom.xml b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/pom.xml index 7d515cd5b09e..b5c2cb914d01 100644 --- a/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/pom.xml +++ b/java-networkconnectivity/proto-google-cloud-networkconnectivity-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-networkconnectivity-v1beta - 1.92.0 + 1.93.0-SNAPSHOT proto-google-cloud-networkconnectivity-v1beta Proto library for google-cloud-networkconnectivity com.google.cloud google-cloud-networkconnectivity-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-networkservices/google-cloud-networkservices-bom/pom.xml b/java-networkservices/google-cloud-networkservices-bom/pom.xml index b3057e5f39bd..8e7421c28ad3 100644 --- a/java-networkservices/google-cloud-networkservices-bom/pom.xml +++ b/java-networkservices/google-cloud-networkservices-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-networkservices-bom - 0.49.0 + 0.50.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-networkservices - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-networkservices-v1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-networkservices-v1 - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-networkservices/google-cloud-networkservices/pom.xml b/java-networkservices/google-cloud-networkservices/pom.xml index 7c9f21d9390e..1cb2d96e41e0 100644 --- a/java-networkservices/google-cloud-networkservices/pom.xml +++ b/java-networkservices/google-cloud-networkservices/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-networkservices - 0.49.0 + 0.50.0-SNAPSHOT jar Google Network Services API Network Services API Google Cloud offers a broad portfolio of networking services built on top of planet-scale infrastructure that leverages automation, advanced AI, and programmability, enabling enterprises to connect, scale, secure, modernize and optimize their infrastructure. com.google.cloud google-cloud-networkservices-parent - 0.49.0 + 0.50.0-SNAPSHOT google-cloud-networkservices diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/Version.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/Version.java index 50f4530b1630..2a4db222e5fa 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/Version.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-networkservices:current} - static final String VERSION = "0.49.0"; + static final String VERSION = "0.50.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml b/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml index 75e978618cd0..26102b0066a2 100644 --- a/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml +++ b/java-networkservices/grpc-google-cloud-networkservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-networkservices-v1 - 0.49.0 + 0.50.0-SNAPSHOT grpc-google-cloud-networkservices-v1 GRPC library for google-cloud-networkservices com.google.cloud google-cloud-networkservices-parent - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-networkservices/pom.xml b/java-networkservices/pom.xml index 59b4591334e5..eff4af1f512e 100644 --- a/java-networkservices/pom.xml +++ b/java-networkservices/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-networkservices-parent pom - 0.49.0 + 0.50.0-SNAPSHOT Google Network Services API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-networkservices - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-networkservices-v1 - 0.49.0 + 0.50.0-SNAPSHOT com.google.api.grpc proto-google-cloud-networkservices-v1 - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml b/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml index 2242c2c3df4c..51c8a920b3b6 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml +++ b/java-networkservices/proto-google-cloud-networkservices-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-networkservices-v1 - 0.49.0 + 0.50.0-SNAPSHOT proto-google-cloud-networkservices-v1 Proto library for google-cloud-networkservices com.google.cloud google-cloud-networkservices-parent - 0.49.0 + 0.50.0-SNAPSHOT diff --git a/java-notebooks/google-cloud-notebooks-bom/pom.xml b/java-notebooks/google-cloud-notebooks-bom/pom.xml index 9c032dc50699..ee5bf526feb7 100644 --- a/java-notebooks/google-cloud-notebooks-bom/pom.xml +++ b/java-notebooks/google-cloud-notebooks-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-notebooks-bom - 1.91.0 + 1.92.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,37 +28,37 @@ com.google.cloud google-cloud-notebooks - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-notebooks-v2 - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-notebooks-v2 - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-notebooks/google-cloud-notebooks/pom.xml b/java-notebooks/google-cloud-notebooks/pom.xml index ae0d26fcd8c7..81d02c505f37 100644 --- a/java-notebooks/google-cloud-notebooks/pom.xml +++ b/java-notebooks/google-cloud-notebooks/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-notebooks - 1.91.0 + 1.92.0-SNAPSHOT jar Google AI Platform Notebooks is a managed service that offers an integrated and secure JupyterLab environment for data scientists and machine learning developers to experiment, develop, and deploy models into production. Users can create instances running JupyterLab that come pre-installed with the latest data science and machine learning frameworks in a single click. com.google.cloud google-cloud-notebooks-parent - 1.91.0 + 1.92.0-SNAPSHOT google-cloud-notebooks diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/Version.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/Version.java index 89bb862ab9d8..8cc33c90b262 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/Version.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-notebooks:current} - static final String VERSION = "1.91.0"; + static final String VERSION = "1.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/Version.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/Version.java index d01484fb14b6..4fe52de3d240 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/Version.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-notebooks:current} - static final String VERSION = "1.91.0"; + static final String VERSION = "1.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/stub/Version.java b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/stub/Version.java index 851e14ae62ce..556cd977cf40 100644 --- a/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/stub/Version.java +++ b/java-notebooks/google-cloud-notebooks/src/main/java/com/google/cloud/notebooks/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-notebooks:current} - static final String VERSION = "1.91.0"; + static final String VERSION = "1.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml b/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml index 39f060ff82f5..859ea98ebc4b 100644 --- a/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml +++ b/java-notebooks/grpc-google-cloud-notebooks-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.91.0 + 1.92.0-SNAPSHOT grpc-google-cloud-notebooks-v1 GRPC library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml b/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml index 3100fe3fa4fa..fd1cb19103c1 100644 --- a/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml +++ b/java-notebooks/grpc-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 1.91.0 + 1.92.0-SNAPSHOT grpc-google-cloud-notebooks-v1beta1 GRPC library for grpc-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml b/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml index 88db01a6c512..9d7f59b82896 100644 --- a/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml +++ b/java-notebooks/grpc-google-cloud-notebooks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-notebooks-v2 - 1.91.0 + 1.92.0-SNAPSHOT grpc-google-cloud-notebooks-v2 GRPC library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-notebooks/pom.xml b/java-notebooks/pom.xml index 08a0336c27c7..06eff3890cde 100644 --- a/java-notebooks/pom.xml +++ b/java-notebooks/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-notebooks-parent pom - 1.91.0 + 1.92.0-SNAPSHOT Google AI Platform Notebooks Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,37 +30,37 @@ com.google.cloud google-cloud-notebooks - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-notebooks-v2 - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-notebooks-v2 - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-notebooks-v1 - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-notebooks-v1beta1 - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml b/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml index c81f20775ffd..478820140149 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml +++ b/java-notebooks/proto-google-cloud-notebooks-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v1 - 1.91.0 + 1.92.0-SNAPSHOT proto-google-cloud-notebooks-v1 Proto library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml b/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml index 6163a340e69b..f4251d9815c9 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml +++ b/java-notebooks/proto-google-cloud-notebooks-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v1beta1 - 1.91.0 + 1.92.0-SNAPSHOT proto-google-cloud-notebooks-v1beta1 PROTO library for proto-google-cloud-notebooks-v1beta1 com.google.cloud google-cloud-notebooks-parent - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml b/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml index d9236c4db67b..e10a47e5ffd2 100644 --- a/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml +++ b/java-notebooks/proto-google-cloud-notebooks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-notebooks-v2 - 1.91.0 + 1.92.0-SNAPSHOT proto-google-cloud-notebooks-v2 Proto library for google-cloud-notebooks com.google.cloud google-cloud-notebooks-parent - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-notification/pom.xml b/java-notification/pom.xml index cbba220d51f9..3bb2bc8ad29c 100644 --- a/java-notification/pom.xml +++ b/java-notification/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.cloud google-cloud-notification - 0.211.0-beta + 0.212.0-beta-SNAPSHOT jar Google Cloud Pub/Sub Notifications for GCS @@ -15,7 +15,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-optimization/google-cloud-optimization-bom/pom.xml b/java-optimization/google-cloud-optimization-bom/pom.xml index ffa0eb6ff589..a32d78c68970 100644 --- a/java-optimization/google-cloud-optimization-bom/pom.xml +++ b/java-optimization/google-cloud-optimization-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-optimization-bom - 1.91.0 + 1.92.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-optimization - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-optimization-v1 - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-optimization-v1 - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-optimization/google-cloud-optimization/pom.xml b/java-optimization/google-cloud-optimization/pom.xml index 81ccfa696307..c091677d0322 100644 --- a/java-optimization/google-cloud-optimization/pom.xml +++ b/java-optimization/google-cloud-optimization/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-optimization - 1.91.0 + 1.92.0-SNAPSHOT jar Google Cloud Fleet Routing Cloud Fleet Routing is a managed routing service that takes your list of orders, vehicles, constraints, and objectives and returns the most efficient plan for your entire fleet in near real-time. com.google.cloud google-cloud-optimization-parent - 1.91.0 + 1.92.0-SNAPSHOT google-cloud-optimization diff --git a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/Version.java b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/Version.java index 06d779c650d0..aba1c368f379 100644 --- a/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/Version.java +++ b/java-optimization/google-cloud-optimization/src/main/java/com/google/cloud/optimization/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-optimization:current} - static final String VERSION = "1.91.0"; + static final String VERSION = "1.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-optimization/grpc-google-cloud-optimization-v1/pom.xml b/java-optimization/grpc-google-cloud-optimization-v1/pom.xml index 1168b90b64f8..bc5c39a02a95 100644 --- a/java-optimization/grpc-google-cloud-optimization-v1/pom.xml +++ b/java-optimization/grpc-google-cloud-optimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-optimization-v1 - 1.91.0 + 1.92.0-SNAPSHOT grpc-google-cloud-optimization-v1 GRPC library for google-cloud-optimization com.google.cloud google-cloud-optimization-parent - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-optimization/pom.xml b/java-optimization/pom.xml index d96e89936d80..a1fd24dd1c34 100644 --- a/java-optimization/pom.xml +++ b/java-optimization/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-optimization-parent pom - 1.91.0 + 1.92.0-SNAPSHOT Google Cloud Fleet Routing Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-optimization - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-optimization-v1 - 1.91.0 + 1.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-optimization-v1 - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-optimization/proto-google-cloud-optimization-v1/pom.xml b/java-optimization/proto-google-cloud-optimization-v1/pom.xml index 07804b2b3d31..3c1b0c203654 100644 --- a/java-optimization/proto-google-cloud-optimization-v1/pom.xml +++ b/java-optimization/proto-google-cloud-optimization-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-optimization-v1 - 1.91.0 + 1.92.0-SNAPSHOT proto-google-cloud-optimization-v1 Proto library for google-cloud-optimization com.google.cloud google-cloud-optimization-parent - 1.91.0 + 1.92.0-SNAPSHOT diff --git a/java-oracledatabase/google-cloud-oracledatabase-bom/pom.xml b/java-oracledatabase/google-cloud-oracledatabase-bom/pom.xml index b7c79b162390..2e0ca01b0c49 100644 --- a/java-oracledatabase/google-cloud-oracledatabase-bom/pom.xml +++ b/java-oracledatabase/google-cloud-oracledatabase-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-oracledatabase-bom - 0.42.0 + 0.43.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-oracledatabase - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-oracledatabase-v1 - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-oracledatabase-v1 - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-oracledatabase/google-cloud-oracledatabase/pom.xml b/java-oracledatabase/google-cloud-oracledatabase/pom.xml index 0f187a2e419f..fb57d9b4ed7e 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/pom.xml +++ b/java-oracledatabase/google-cloud-oracledatabase/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-oracledatabase - 0.42.0 + 0.43.0-SNAPSHOT jar Google Oracle Database@Google Cloud API Oracle Database@Google Cloud API The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases. com.google.cloud google-cloud-oracledatabase-parent - 0.42.0 + 0.43.0-SNAPSHOT google-cloud-oracledatabase diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/Version.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/Version.java index 2145b015da92..220c6b1839c7 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/Version.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-oracledatabase:current} - static final String VERSION = "0.42.0"; + static final String VERSION = "0.43.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/pom.xml b/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/pom.xml index 87a5a8fec194..76bf0ae18158 100644 --- a/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/pom.xml +++ b/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-oracledatabase-v1 - 0.42.0 + 0.43.0-SNAPSHOT grpc-google-cloud-oracledatabase-v1 GRPC library for google-cloud-oracledatabase com.google.cloud google-cloud-oracledatabase-parent - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-oracledatabase/pom.xml b/java-oracledatabase/pom.xml index ecb9103de1b6..17f57bd655be 100644 --- a/java-oracledatabase/pom.xml +++ b/java-oracledatabase/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-oracledatabase-parent pom - 0.42.0 + 0.43.0-SNAPSHOT Google Oracle Database@Google Cloud API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-oracledatabase - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-oracledatabase-v1 - 0.42.0 + 0.43.0-SNAPSHOT com.google.api.grpc proto-google-cloud-oracledatabase-v1 - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/pom.xml b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/pom.xml index dd17180209ef..8ff23aa6e4d2 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/pom.xml +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-oracledatabase-v1 - 0.42.0 + 0.43.0-SNAPSHOT proto-google-cloud-oracledatabase-v1 Proto library for google-cloud-oracledatabase com.google.cloud google-cloud-oracledatabase-parent - 0.42.0 + 0.43.0-SNAPSHOT diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml b/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml index 8c655f1a754a..db8dfa8cceec 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-orchestration-airflow-bom - 1.93.0 + 1.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-orchestration-airflow - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1beta1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orchestration-airflow-v1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orchestration-airflow-v1beta1 - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml b/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml index 71c13675a6ea..b4354dc23406 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-orchestration-airflow - 1.93.0 + 1.94.0-SNAPSHOT jar Google Cloud Composer Cloud Composer is a managed Apache Airflow service that helps you create, schedule, monitor and manage workflows. Cloud Composer automation helps you create Airflow environments quickly and use Airflow-native tools, such as the powerful Airflow web interface and command line tools, so you can focus on your workflows and not your infrastructure. com.google.cloud google-cloud-orchestration-airflow-parent - 1.93.0 + 1.94.0-SNAPSHOT google-cloud-orchestration-airflow diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/Version.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/Version.java index 7dc7a0070630..3161ddf6c6fc 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/Version.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-orchestration-airflow:current} - static final String VERSION = "1.93.0"; + static final String VERSION = "1.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/Version.java b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/Version.java index d9e27f0d85d7..3c5d09e1aa40 100644 --- a/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/Version.java +++ b/java-orchestration-airflow/google-cloud-orchestration-airflow/src/main/java/com/google/cloud/orchestration/airflow/service/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-orchestration-airflow:current} - static final String VERSION = "1.93.0"; + static final String VERSION = "1.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml index 53f3944bd3df..5a75e44ea802 100644 --- a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml +++ b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1 - 1.93.0 + 1.94.0-SNAPSHOT grpc-google-cloud-orchestration-airflow-v1 GRPC library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml index 1ef8e75a5a19..746a0fffed29 100644 --- a/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml +++ b/java-orchestration-airflow/grpc-google-cloud-orchestration-airflow-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1beta1 - 1.93.0 + 1.94.0-SNAPSHOT grpc-google-cloud-orchestration-airflow-v1beta1 GRPC library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-orchestration-airflow/pom.xml b/java-orchestration-airflow/pom.xml index 3dfa62e769bb..c66adeefe918 100644 --- a/java-orchestration-airflow/pom.xml +++ b/java-orchestration-airflow/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-orchestration-airflow-parent pom - 1.93.0 + 1.94.0-SNAPSHOT Google Cloud Composer Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-orchestration-airflow - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-orchestration-airflow-v1beta1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orchestration-airflow-v1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orchestration-airflow-v1beta1 - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml index e8daf4a09c3f..cd5260ecf48f 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1 - 1.93.0 + 1.94.0-SNAPSHOT proto-google-cloud-orchestration-airflow-v1 Proto library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml index 9385d570fa8f..18fe105273de 100644 --- a/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml +++ b/java-orchestration-airflow/proto-google-cloud-orchestration-airflow-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orchestration-airflow-v1beta1 - 1.93.0 + 1.94.0-SNAPSHOT proto-google-cloud-orchestration-airflow-v1beta1 Proto library for google-cloud-orchestration-airflow com.google.cloud google-cloud-orchestration-airflow-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml b/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml index 66a51b4bcf19..0696805c4354 100644 --- a/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml +++ b/java-orgpolicy/google-cloud-orgpolicy-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-orgpolicy-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,22 +27,22 @@ com.google.cloud google-cloud-orgpolicy - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-orgpolicy-v2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orgpolicy-v2 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-orgpolicy/google-cloud-orgpolicy/pom.xml b/java-orgpolicy/google-cloud-orgpolicy/pom.xml index 278bfb9dfdaa..88c8d926c843 100644 --- a/java-orgpolicy/google-cloud-orgpolicy/pom.xml +++ b/java-orgpolicy/google-cloud-orgpolicy/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-orgpolicy - 2.93.0 + 2.94.0-SNAPSHOT Google Cloud Org Policy The Org Policy API allows users to configure governance rules on their GCP resources across the Cloud Resource Hierarchy. @@ -11,7 +11,7 @@ com.google.cloud google-cloud-orgpolicy-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-orgpolicy diff --git a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/Version.java b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/Version.java index 81622b2ecec7..6ed2b21e0a43 100644 --- a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/Version.java +++ b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-orgpolicy:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml b/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml index 2ead8dba1a44..89a8690ca461 100644 --- a/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml +++ b/java-orgpolicy/grpc-google-cloud-orgpolicy-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-orgpolicy-v2 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-orgpolicy-v2 GRPC library for grpc-google-cloud-orgpolicy-v2 com.google.cloud google-cloud-orgpolicy-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-orgpolicy/pom.xml b/java-orgpolicy/pom.xml index bd5b685205d1..75141ce16631 100644 --- a/java-orgpolicy/pom.xml +++ b/java-orgpolicy/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-orgpolicy-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Cloud Org Policy Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,22 +30,22 @@ com.google.api.grpc google-cloud-orgpolicy - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orgpolicy-v2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-orgpolicy-v2 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml b/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml index 5d58ef4258fa..7448e9cb7d16 100644 --- a/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml +++ b/java-orgpolicy/proto-google-cloud-orgpolicy-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orgpolicy-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-orgpolicy-v1 PROTO library for proto-google-cloud-orgpolicy-v1 com.google.cloud google-cloud-orgpolicy-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml index 27ff58ee3c77..734418535657 100644 --- a/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml +++ b/java-orgpolicy/proto-google-cloud-orgpolicy-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-orgpolicy-v2 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-orgpolicy-v2 PROTO library for proto-google-cloud-orgpolicy-v2 com.google.cloud google-cloud-orgpolicy-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-os-config/google-cloud-os-config-bom/pom.xml b/java-os-config/google-cloud-os-config-bom/pom.xml index ac16e5c84781..477c4ef36af1 100644 --- a/java-os-config/google-cloud-os-config-bom/pom.xml +++ b/java-os-config/google-cloud-os-config-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-os-config-bom - 2.95.0 + 2.96.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,37 +24,37 @@ com.google.cloud google-cloud-os-config - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-config-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-config-v1beta - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-config-v1alpha - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-os-config-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-os-config-v1alpha - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-os-config-v1beta - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-os-config/google-cloud-os-config/pom.xml b/java-os-config/google-cloud-os-config/pom.xml index 6417ad759cca..a24c2631a168 100644 --- a/java-os-config/google-cloud-os-config/pom.xml +++ b/java-os-config/google-cloud-os-config/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-os-config - 2.95.0 + 2.96.0-SNAPSHOT jar Google OS Config API provides OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. com.google.cloud google-cloud-os-config-parent - 2.95.0 + 2.96.0-SNAPSHOT google-cloud-os-config diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/Version.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/Version.java index 4bc0b2066a8b..0aa5ef5f8c39 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/Version.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-os-config:current} - static final String VERSION = "2.95.0"; + static final String VERSION = "2.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/Version.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/Version.java index 7224136428ce..fb01eee93e57 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/Version.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-os-config:current} - static final String VERSION = "2.95.0"; + static final String VERSION = "2.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/stub/Version.java b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/stub/Version.java index c5b26e037d87..14c44fdec126 100644 --- a/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/stub/Version.java +++ b/java-os-config/google-cloud-os-config/src/main/java/com/google/cloud/osconfig/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-os-config:current} - static final String VERSION = "2.95.0"; + static final String VERSION = "2.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-os-config/grpc-google-cloud-os-config-v1/pom.xml b/java-os-config/grpc-google-cloud-os-config-v1/pom.xml index 68683ffd169e..5f1daf530da4 100644 --- a/java-os-config/grpc-google-cloud-os-config-v1/pom.xml +++ b/java-os-config/grpc-google-cloud-os-config-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-config-v1 - 2.95.0 + 2.96.0-SNAPSHOT grpc-google-cloud-os-config-v1 GRPC library for grpc-google-cloud-os-config-v1 com.google.cloud google-cloud-os-config-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml b/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml index 7aaf871a1fde..a895fa29c164 100644 --- a/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml +++ b/java-os-config/grpc-google-cloud-os-config-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-config-v1alpha - 2.95.0 + 2.96.0-SNAPSHOT grpc-google-cloud-os-config-v1alpha GRPC library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml b/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml index b897354f879e..eb05a5fd3f9a 100644 --- a/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml +++ b/java-os-config/grpc-google-cloud-os-config-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-config-v1beta - 2.95.0 + 2.96.0-SNAPSHOT grpc-google-cloud-os-config-v1beta GRPC library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-os-config/pom.xml b/java-os-config/pom.xml index d84701505ef8..fa33ac6c677f 100644 --- a/java-os-config/pom.xml +++ b/java-os-config/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-os-config-parent pom - 2.95.0 + 2.96.0-SNAPSHOT Google OS Config API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,37 +30,37 @@ com.google.cloud google-cloud-os-config - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-os-config-v1beta - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-os-config-v1alpha - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-config-v1alpha - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-config-v1beta - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-os-config-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-config-v1 - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-os-config/proto-google-cloud-os-config-v1/pom.xml b/java-os-config/proto-google-cloud-os-config-v1/pom.xml index c18e2c45bfa1..16e9322d553a 100644 --- a/java-os-config/proto-google-cloud-os-config-v1/pom.xml +++ b/java-os-config/proto-google-cloud-os-config-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-config-v1 - 2.95.0 + 2.96.0-SNAPSHOT proto-google-cloud-os-config-v1 PROTO library for proto-google-cloud-os-config-v1 com.google.cloud google-cloud-os-config-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml b/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml index 0e0b9476aaf2..a13a7696947a 100644 --- a/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml +++ b/java-os-config/proto-google-cloud-os-config-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-config-v1alpha - 2.95.0 + 2.96.0-SNAPSHOT proto-google-cloud-os-config-v1alpha Proto library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml b/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml index 2de5bbf6bc70..c218c55ac092 100644 --- a/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml +++ b/java-os-config/proto-google-cloud-os-config-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-config-v1beta - 2.95.0 + 2.96.0-SNAPSHOT proto-google-cloud-os-config-v1beta Proto library for google-cloud-os-config com.google.cloud google-cloud-os-config-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-os-login/google-cloud-os-login-bom/pom.xml b/java-os-login/google-cloud-os-login-bom/pom.xml index 5d565d4bfff3..92406eb97da8 100644 --- a/java-os-login/google-cloud-os-login-bom/pom.xml +++ b/java-os-login/google-cloud-os-login-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-os-login-bom - 2.92.0 + 2.93.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,17 +24,17 @@ com.google.cloud google-cloud-os-login - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-login-v1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-os-login-v1 - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-os-login/google-cloud-os-login/pom.xml b/java-os-login/google-cloud-os-login/pom.xml index 7cca8d2ec58d..2242996d7d04 100644 --- a/java-os-login/google-cloud-os-login/pom.xml +++ b/java-os-login/google-cloud-os-login/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-os-login - 2.92.0 + 2.93.0-SNAPSHOT jar Google Cloud OS Login Java idiomatic client for Google Cloud OS Login com.google.cloud google-cloud-os-login-parent - 2.92.0 + 2.93.0-SNAPSHOT google-cloud-os-login diff --git a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/Version.java b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/Version.java index 8d1271c579e7..acea04e365cb 100644 --- a/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/Version.java +++ b/java-os-login/google-cloud-os-login/src/main/java/com/google/cloud/oslogin/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-os-login:current} - static final String VERSION = "2.92.0"; + static final String VERSION = "2.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-os-login/grpc-google-cloud-os-login-v1/pom.xml b/java-os-login/grpc-google-cloud-os-login-v1/pom.xml index 073fc0401dd2..249c5ca176cd 100644 --- a/java-os-login/grpc-google-cloud-os-login-v1/pom.xml +++ b/java-os-login/grpc-google-cloud-os-login-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-os-login-v1 - 2.92.0 + 2.93.0-SNAPSHOT grpc-google-cloud-os-login-v1 GRPC library for grpc-google-cloud-os-login-v1 com.google.cloud google-cloud-os-login-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-os-login/pom.xml b/java-os-login/pom.xml index 505cea678a4f..1ea2acd0a640 100644 --- a/java-os-login/pom.xml +++ b/java-os-login/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-os-login-parent pom - 2.92.0 + 2.93.0-SNAPSHOT Google Cloud OS Login Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.api.grpc proto-google-cloud-os-login-v1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-os-login-v1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.cloud google-cloud-os-login - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-os-login/proto-google-cloud-os-login-v1/pom.xml b/java-os-login/proto-google-cloud-os-login-v1/pom.xml index b13fc004444e..7e1b7af55c74 100644 --- a/java-os-login/proto-google-cloud-os-login-v1/pom.xml +++ b/java-os-login/proto-google-cloud-os-login-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-os-login-v1 - 2.92.0 + 2.93.0-SNAPSHOT proto-google-cloud-os-login-v1 PROTO library for proto-google-cloud-os-login-v1 com.google.cloud google-cloud-os-login-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-parallelstore/google-cloud-parallelstore-bom/pom.xml b/java-parallelstore/google-cloud-parallelstore-bom/pom.xml index 0b788d4aeef1..04c717043a85 100644 --- a/java-parallelstore/google-cloud-parallelstore-bom/pom.xml +++ b/java-parallelstore/google-cloud-parallelstore-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-parallelstore-bom - 0.56.0 + 0.57.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-parallelstore - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-parallelstore-v1beta - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-parallelstore-v1 - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc proto-google-cloud-parallelstore-v1beta - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc proto-google-cloud-parallelstore-v1 - 0.56.0 + 0.57.0-SNAPSHOT diff --git a/java-parallelstore/google-cloud-parallelstore/pom.xml b/java-parallelstore/google-cloud-parallelstore/pom.xml index 09e1050bf777..70bb8625122a 100644 --- a/java-parallelstore/google-cloud-parallelstore/pom.xml +++ b/java-parallelstore/google-cloud-parallelstore/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-parallelstore - 0.56.0 + 0.57.0-SNAPSHOT jar Google Parallelstore API Parallelstore API Parallelstore is based on Intel DAOS and delivers up to 6.3x greater read throughput performance compared to competitive Lustre scratch offerings. com.google.cloud google-cloud-parallelstore-parent - 0.56.0 + 0.57.0-SNAPSHOT google-cloud-parallelstore diff --git a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/stub/Version.java b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/stub/Version.java index f4adb1daff80..720f7831e9a5 100644 --- a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/stub/Version.java +++ b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-parallelstore:current} - static final String VERSION = "0.56.0"; + static final String VERSION = "0.57.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/stub/Version.java b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/stub/Version.java index 5c670dadf150..b8843c484aa7 100644 --- a/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/stub/Version.java +++ b/java-parallelstore/google-cloud-parallelstore/src/main/java/com/google/cloud/parallelstore/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-parallelstore:current} - static final String VERSION = "0.56.0"; + static final String VERSION = "0.57.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-parallelstore/grpc-google-cloud-parallelstore-v1/pom.xml b/java-parallelstore/grpc-google-cloud-parallelstore-v1/pom.xml index 2fb6d955884c..6f9e73a757e7 100644 --- a/java-parallelstore/grpc-google-cloud-parallelstore-v1/pom.xml +++ b/java-parallelstore/grpc-google-cloud-parallelstore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-parallelstore-v1 - 0.56.0 + 0.57.0-SNAPSHOT grpc-google-cloud-parallelstore-v1 GRPC library for google-cloud-parallelstore com.google.cloud google-cloud-parallelstore-parent - 0.56.0 + 0.57.0-SNAPSHOT diff --git a/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml b/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml index 1c7a693b0bba..29b58c495f77 100644 --- a/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml +++ b/java-parallelstore/grpc-google-cloud-parallelstore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-parallelstore-v1beta - 0.56.0 + 0.57.0-SNAPSHOT grpc-google-cloud-parallelstore-v1beta GRPC library for google-cloud-parallelstore com.google.cloud google-cloud-parallelstore-parent - 0.56.0 + 0.57.0-SNAPSHOT diff --git a/java-parallelstore/pom.xml b/java-parallelstore/pom.xml index 92952090348a..52101b4d8c4d 100644 --- a/java-parallelstore/pom.xml +++ b/java-parallelstore/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-parallelstore-parent pom - 0.56.0 + 0.57.0-SNAPSHOT Google Parallelstore API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-parallelstore - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc proto-google-cloud-parallelstore-v1 - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-parallelstore-v1 - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-parallelstore-v1beta - 0.56.0 + 0.57.0-SNAPSHOT com.google.api.grpc proto-google-cloud-parallelstore-v1beta - 0.56.0 + 0.57.0-SNAPSHOT diff --git a/java-parallelstore/proto-google-cloud-parallelstore-v1/pom.xml b/java-parallelstore/proto-google-cloud-parallelstore-v1/pom.xml index b9597da08c56..d9b3578e4397 100644 --- a/java-parallelstore/proto-google-cloud-parallelstore-v1/pom.xml +++ b/java-parallelstore/proto-google-cloud-parallelstore-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-parallelstore-v1 - 0.56.0 + 0.57.0-SNAPSHOT proto-google-cloud-parallelstore-v1 Proto library for google-cloud-parallelstore com.google.cloud google-cloud-parallelstore-parent - 0.56.0 + 0.57.0-SNAPSHOT diff --git a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml index 0709ebf3fe92..556f9228d9f9 100644 --- a/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml +++ b/java-parallelstore/proto-google-cloud-parallelstore-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-parallelstore-v1beta - 0.56.0 + 0.57.0-SNAPSHOT proto-google-cloud-parallelstore-v1beta Proto library for google-cloud-parallelstore com.google.cloud google-cloud-parallelstore-parent - 0.56.0 + 0.57.0-SNAPSHOT diff --git a/java-parametermanager/google-cloud-parametermanager-bom/pom.xml b/java-parametermanager/google-cloud-parametermanager-bom/pom.xml index b78216b858a7..a64b0f331fff 100644 --- a/java-parametermanager/google-cloud-parametermanager-bom/pom.xml +++ b/java-parametermanager/google-cloud-parametermanager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-parametermanager-bom - 0.37.0 + 0.38.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-parametermanager - 0.37.0 + 0.38.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-parametermanager-v1 - 0.37.0 + 0.38.0-SNAPSHOT com.google.api.grpc proto-google-cloud-parametermanager-v1 - 0.37.0 + 0.38.0-SNAPSHOT diff --git a/java-parametermanager/google-cloud-parametermanager/pom.xml b/java-parametermanager/google-cloud-parametermanager/pom.xml index 2633999b06f3..13d72cdde058 100644 --- a/java-parametermanager/google-cloud-parametermanager/pom.xml +++ b/java-parametermanager/google-cloud-parametermanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-parametermanager - 0.37.0 + 0.38.0-SNAPSHOT jar Google Parameter Manager API Parameter Manager API (Public Preview) Parameter Manager is a single source of truth to store, access and manage the lifecycle of your workload parameters. Parameter Manager aims to make management of sensitive application parameters effortless for customers without diminishing focus on security. com.google.cloud google-cloud-parametermanager-parent - 0.37.0 + 0.38.0-SNAPSHOT google-cloud-parametermanager diff --git a/java-parametermanager/google-cloud-parametermanager/src/main/java/com/google/cloud/parametermanager/v1/stub/Version.java b/java-parametermanager/google-cloud-parametermanager/src/main/java/com/google/cloud/parametermanager/v1/stub/Version.java index 34782f3011f6..32b95cf50a55 100644 --- a/java-parametermanager/google-cloud-parametermanager/src/main/java/com/google/cloud/parametermanager/v1/stub/Version.java +++ b/java-parametermanager/google-cloud-parametermanager/src/main/java/com/google/cloud/parametermanager/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-parametermanager:current} - static final String VERSION = "0.37.0"; + static final String VERSION = "0.38.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-parametermanager/grpc-google-cloud-parametermanager-v1/pom.xml b/java-parametermanager/grpc-google-cloud-parametermanager-v1/pom.xml index b704465713a9..6a6501ecd0ba 100644 --- a/java-parametermanager/grpc-google-cloud-parametermanager-v1/pom.xml +++ b/java-parametermanager/grpc-google-cloud-parametermanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-parametermanager-v1 - 0.37.0 + 0.38.0-SNAPSHOT grpc-google-cloud-parametermanager-v1 GRPC library for google-cloud-parametermanager com.google.cloud google-cloud-parametermanager-parent - 0.37.0 + 0.38.0-SNAPSHOT diff --git a/java-parametermanager/pom.xml b/java-parametermanager/pom.xml index 4cee3afa2b55..946ae83e82f0 100644 --- a/java-parametermanager/pom.xml +++ b/java-parametermanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-parametermanager-parent pom - 0.37.0 + 0.38.0-SNAPSHOT Google Parameter Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-parametermanager - 0.37.0 + 0.38.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-parametermanager-v1 - 0.37.0 + 0.38.0-SNAPSHOT com.google.api.grpc proto-google-cloud-parametermanager-v1 - 0.37.0 + 0.38.0-SNAPSHOT diff --git a/java-parametermanager/proto-google-cloud-parametermanager-v1/pom.xml b/java-parametermanager/proto-google-cloud-parametermanager-v1/pom.xml index cc6dd33c1059..d29db582dd9c 100644 --- a/java-parametermanager/proto-google-cloud-parametermanager-v1/pom.xml +++ b/java-parametermanager/proto-google-cloud-parametermanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-parametermanager-v1 - 0.37.0 + 0.38.0-SNAPSHOT proto-google-cloud-parametermanager-v1 Proto library for google-cloud-parametermanager com.google.cloud google-cloud-parametermanager-parent - 0.37.0 + 0.38.0-SNAPSHOT diff --git a/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml b/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml index 76293b77a58c..5fc1800ee287 100644 --- a/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml +++ b/java-phishingprotection/google-cloud-phishingprotection-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-phishingprotection-bom - 0.124.0 + 0.125.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,17 +24,17 @@ com.google.cloud google-cloud-phishingprotection - 0.124.0 + 0.125.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-phishingprotection-v1beta1 - 0.124.0 + 0.125.0-SNAPSHOT com.google.api.grpc proto-google-cloud-phishingprotection-v1beta1 - 0.124.0 + 0.125.0-SNAPSHOT diff --git a/java-phishingprotection/google-cloud-phishingprotection/pom.xml b/java-phishingprotection/google-cloud-phishingprotection/pom.xml index 02692f504f6d..75d4722f49cb 100644 --- a/java-phishingprotection/google-cloud-phishingprotection/pom.xml +++ b/java-phishingprotection/google-cloud-phishingprotection/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-phishingprotection - 0.124.0 + 0.125.0-SNAPSHOT jar Google Cloud Phishing Protection Java idiomatic client for Google Cloud Phishing Protection com.google.cloud google-cloud-phishingprotection-parent - 0.124.0 + 0.125.0-SNAPSHOT google-cloud-phishingprotection diff --git a/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/Version.java b/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/Version.java index 3b2f28555dd8..63bd7ac28838 100644 --- a/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/Version.java +++ b/java-phishingprotection/google-cloud-phishingprotection/src/main/java/com/google/cloud/phishingprotection/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-phishingprotection:current} - static final String VERSION = "0.124.0"; + static final String VERSION = "0.125.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml b/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml index 0ab6eafb553e..7d9e5266bdc9 100644 --- a/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml +++ b/java-phishingprotection/grpc-google-cloud-phishingprotection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-phishingprotection-v1beta1 - 0.124.0 + 0.125.0-SNAPSHOT grpc-google-cloud-phishingprotection-v1beta1 GRPC library for grpc-google-cloud-phishingprotection-v1beta1 com.google.cloud google-cloud-phishingprotection-parent - 0.124.0 + 0.125.0-SNAPSHOT diff --git a/java-phishingprotection/pom.xml b/java-phishingprotection/pom.xml index feb2191a67e2..38e23f00cbf8 100644 --- a/java-phishingprotection/pom.xml +++ b/java-phishingprotection/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-phishingprotection-parent pom - 0.124.0 + 0.125.0-SNAPSHOT Google Cloud Phishing Protection Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.api.grpc proto-google-cloud-phishingprotection-v1beta1 - 0.124.0 + 0.125.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-phishingprotection-v1beta1 - 0.124.0 + 0.125.0-SNAPSHOT com.google.cloud google-cloud-phishingprotection - 0.124.0 + 0.125.0-SNAPSHOT diff --git a/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml b/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml index a9b9896e2d28..7d8808f2be1a 100644 --- a/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml +++ b/java-phishingprotection/proto-google-cloud-phishingprotection-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-phishingprotection-v1beta1 - 0.124.0 + 0.125.0-SNAPSHOT proto-google-cloud-phishingprotection-v1beta1 PROTO library for proto-google-cloud-phishingprotection-v1beta1 com.google.cloud google-cloud-phishingprotection-parent - 0.124.0 + 0.125.0-SNAPSHOT diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml b/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml index a56d6cba09d5..06e69b9e15f4 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-policy-troubleshooter-bom - 1.92.0 + 1.93.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-policy-troubleshooter - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v3 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-policy-troubleshooter-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-policy-troubleshooter-v3 - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml index ed3a361f50f1..a2bf63e2d74f 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-policy-troubleshooter - 1.92.0 + 1.93.0-SNAPSHOT jar Google IAM Policy Troubleshooter API makes it easier to understand why a user has access to a resource or doesn't have permission to call an API. Given an email, resource, and permission, Policy Troubleshooter examines all Identity and Access Management (IAM) policies that apply to the resource. It then reveals whether the member's roles include the permission on that resource and, if so, which policies bind the member to those roles. com.google.cloud google-cloud-policy-troubleshooter-parent - 1.92.0 + 1.93.0-SNAPSHOT google-cloud-policy-troubleshooter diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/stub/Version.java b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/stub/Version.java index cd72eae0e7df..66cebcfab776 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/stub/Version.java +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/iam/v3/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-policy-troubleshooter:current} - static final String VERSION = "1.92.0"; + static final String VERSION = "1.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/Version.java b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/Version.java index f31f2a6da183..3407654f85a2 100644 --- a/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/Version.java +++ b/java-policy-troubleshooter/google-cloud-policy-troubleshooter/src/main/java/com/google/cloud/policytroubleshooter/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-policy-troubleshooter:current} - static final String VERSION = "1.92.0"; + static final String VERSION = "1.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml index 5530f9ebf926..87812317dcd7 100644 --- a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml +++ b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v1 - 1.92.0 + 1.93.0-SNAPSHOT grpc-google-cloud-policy-troubleshooter-v1 GRPC library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml index 31dd0d499982..33c3cc334682 100644 --- a/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml +++ b/java-policy-troubleshooter/grpc-google-cloud-policy-troubleshooter-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v3 - 1.92.0 + 1.93.0-SNAPSHOT grpc-google-cloud-policy-troubleshooter-v3 GRPC library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-policy-troubleshooter/pom.xml b/java-policy-troubleshooter/pom.xml index ac8ef72d43bf..f814598d88c8 100644 --- a/java-policy-troubleshooter/pom.xml +++ b/java-policy-troubleshooter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-policy-troubleshooter-parent pom - 1.92.0 + 1.93.0-SNAPSHOT Google IAM Policy Troubleshooter API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-policy-troubleshooter - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-policy-troubleshooter-v3 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v3 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-policy-troubleshooter-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-policy-troubleshooter-v1 - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml index dd3ea50003ab..f8c1b90dc424 100644 --- a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml +++ b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v1 - 1.92.0 + 1.93.0-SNAPSHOT proto-google-cloud-policy-troubleshooter-v1 Proto library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml index 12bcd8114b9f..920fcfc3bef0 100644 --- a/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml +++ b/java-policy-troubleshooter/proto-google-cloud-policy-troubleshooter-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-policy-troubleshooter-v3 - 1.92.0 + 1.93.0-SNAPSHOT proto-google-cloud-policy-troubleshooter-v3 Proto library for google-cloud-policy-troubleshooter com.google.cloud google-cloud-policy-troubleshooter-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-policysimulator/google-cloud-policysimulator-bom/pom.xml b/java-policysimulator/google-cloud-policysimulator-bom/pom.xml index aa5ab6fd838f..5a7fe5e7284f 100644 --- a/java-policysimulator/google-cloud-policysimulator-bom/pom.xml +++ b/java-policysimulator/google-cloud-policysimulator-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-policysimulator-bom - 0.72.0 + 0.73.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-policysimulator - 0.72.0 + 0.73.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-policysimulator-v1 - 0.72.0 + 0.73.0-SNAPSHOT com.google.api.grpc proto-google-cloud-policysimulator-v1 - 0.72.0 + 0.73.0-SNAPSHOT diff --git a/java-policysimulator/google-cloud-policysimulator/pom.xml b/java-policysimulator/google-cloud-policysimulator/pom.xml index 5da5e84fbbfd..30559f837359 100644 --- a/java-policysimulator/google-cloud-policysimulator/pom.xml +++ b/java-policysimulator/google-cloud-policysimulator/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-policysimulator - 0.72.0 + 0.73.0-SNAPSHOT jar Google Policy Simulator API Policy Simulator API Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. com.google.cloud google-cloud-policysimulator-parent - 0.72.0 + 0.73.0-SNAPSHOT google-cloud-policysimulator diff --git a/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/Version.java b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/Version.java index b20eb2fe82d5..1ac7255683d8 100644 --- a/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/Version.java +++ b/java-policysimulator/google-cloud-policysimulator/src/main/java/com/google/cloud/policysimulator/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-policysimulator:current} - static final String VERSION = "0.72.0"; + static final String VERSION = "0.73.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml b/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml index 5046cd947168..a54c92b69cdc 100644 --- a/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml +++ b/java-policysimulator/grpc-google-cloud-policysimulator-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-policysimulator-v1 - 0.72.0 + 0.73.0-SNAPSHOT grpc-google-cloud-policysimulator-v1 GRPC library for google-cloud-policysimulator com.google.cloud google-cloud-policysimulator-parent - 0.72.0 + 0.73.0-SNAPSHOT diff --git a/java-policysimulator/pom.xml b/java-policysimulator/pom.xml index 6db07322105f..a9cf86c06c06 100644 --- a/java-policysimulator/pom.xml +++ b/java-policysimulator/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-policysimulator-parent pom - 0.72.0 + 0.73.0-SNAPSHOT Google Policy Simulator API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,23 +30,23 @@ com.google.cloud google-cloud-policysimulator - 0.72.0 + 0.73.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-policysimulator-v1 - 0.72.0 + 0.73.0-SNAPSHOT com.google.api.grpc proto-google-cloud-policysimulator-v1 - 0.72.0 + 0.73.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orgpolicy-v2 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml b/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml index a6df20872309..236a6fe48d9c 100644 --- a/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml +++ b/java-policysimulator/proto-google-cloud-policysimulator-v1/pom.xml @@ -4,19 +4,19 @@ 4.0.0 com.google.api.grpc proto-google-cloud-policysimulator-v1 - 0.72.0 + 0.73.0-SNAPSHOT proto-google-cloud-policysimulator-v1 Proto library for google-cloud-policysimulator com.google.cloud google-cloud-policysimulator-parent - 0.72.0 + 0.73.0-SNAPSHOT com.google.api.grpc proto-google-cloud-orgpolicy-v2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.protobuf diff --git a/java-private-catalog/google-cloud-private-catalog-bom/pom.xml b/java-private-catalog/google-cloud-private-catalog-bom/pom.xml index cfb7964aef52..d62970105b42 100644 --- a/java-private-catalog/google-cloud-private-catalog-bom/pom.xml +++ b/java-private-catalog/google-cloud-private-catalog-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-private-catalog-bom - 0.95.0 + 0.96.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-private-catalog - 0.95.0 + 0.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-private-catalog-v1beta1 - 0.95.0 + 0.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-private-catalog-v1beta1 - 0.95.0 + 0.96.0-SNAPSHOT diff --git a/java-private-catalog/google-cloud-private-catalog/pom.xml b/java-private-catalog/google-cloud-private-catalog/pom.xml index 25d00d8f376d..aba43743e2b2 100644 --- a/java-private-catalog/google-cloud-private-catalog/pom.xml +++ b/java-private-catalog/google-cloud-private-catalog/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-private-catalog - 0.95.0 + 0.96.0-SNAPSHOT jar Google Private Catalog Private Catalog allows developers and cloud admins to make their solutions discoverable to their internal enterprise users. Cloud admins can manage their solutions and ensure their users are always launching the latest versions. com.google.cloud google-cloud-private-catalog-parent - 0.95.0 + 0.96.0-SNAPSHOT google-cloud-private-catalog diff --git a/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/stub/Version.java b/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/stub/Version.java index 494d759297c1..cedae8b6208b 100644 --- a/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/stub/Version.java +++ b/java-private-catalog/google-cloud-private-catalog/src/main/java/com/google/cloud/privatecatalog/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-private-catalog:current} - static final String VERSION = "0.95.0"; + static final String VERSION = "0.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml b/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml index d029d2c88115..1ecf3c32dcf2 100644 --- a/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml +++ b/java-private-catalog/grpc-google-cloud-private-catalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-private-catalog-v1beta1 - 0.95.0 + 0.96.0-SNAPSHOT grpc-google-cloud-private-catalog-v1beta1 GRPC library for google-cloud-private-catalog com.google.cloud google-cloud-private-catalog-parent - 0.95.0 + 0.96.0-SNAPSHOT diff --git a/java-private-catalog/pom.xml b/java-private-catalog/pom.xml index 3da14f25378d..07030feef58b 100644 --- a/java-private-catalog/pom.xml +++ b/java-private-catalog/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-private-catalog-parent pom - 0.95.0 + 0.96.0-SNAPSHOT Google Private Catalog Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-private-catalog - 0.95.0 + 0.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-private-catalog-v1beta1 - 0.95.0 + 0.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-private-catalog-v1beta1 - 0.95.0 + 0.96.0-SNAPSHOT diff --git a/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml b/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml index cdace832ce9c..5cb04c20af07 100644 --- a/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml +++ b/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-private-catalog-v1beta1 - 0.95.0 + 0.96.0-SNAPSHOT proto-google-cloud-private-catalog-v1beta1 Proto library for google-cloud-private-catalog com.google.cloud google-cloud-private-catalog-parent - 0.95.0 + 0.96.0-SNAPSHOT diff --git a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager-bom/pom.xml b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager-bom/pom.xml index d5019fcbd04f..5e1be1eaee9a 100644 --- a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager-bom/pom.xml +++ b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-privilegedaccessmanager-bom - 0.47.0 + 0.48.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-privilegedaccessmanager - 0.47.0 + 0.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-privilegedaccessmanager-v1 - 0.47.0 + 0.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-privilegedaccessmanager-v1 - 0.47.0 + 0.48.0-SNAPSHOT diff --git a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/pom.xml b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/pom.xml index 303b14428cbb..0c3d3f85cd9f 100644 --- a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/pom.xml +++ b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-privilegedaccessmanager - 0.47.0 + 0.48.0-SNAPSHOT jar Google Privileged Access Manager API Privileged Access Manager API Privileged Access Manager (PAM) helps you on your journey towards least privilege and helps mitigate risks tied to privileged access misuse or abuse. com.google.cloud google-cloud-privilegedaccessmanager-parent - 0.47.0 + 0.48.0-SNAPSHOT google-cloud-privilegedaccessmanager diff --git a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/stub/Version.java b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/stub/Version.java index 0d845e1dfd39..8193beb89df0 100644 --- a/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/stub/Version.java +++ b/java-privilegedaccessmanager/google-cloud-privilegedaccessmanager/src/main/java/com/google/cloud/privilegedaccessmanager/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-privilegedaccessmanager:current} - static final String VERSION = "0.47.0"; + static final String VERSION = "0.48.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-privilegedaccessmanager/grpc-google-cloud-privilegedaccessmanager-v1/pom.xml b/java-privilegedaccessmanager/grpc-google-cloud-privilegedaccessmanager-v1/pom.xml index d8726c048109..4f8fe317aac7 100644 --- a/java-privilegedaccessmanager/grpc-google-cloud-privilegedaccessmanager-v1/pom.xml +++ b/java-privilegedaccessmanager/grpc-google-cloud-privilegedaccessmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-privilegedaccessmanager-v1 - 0.47.0 + 0.48.0-SNAPSHOT grpc-google-cloud-privilegedaccessmanager-v1 GRPC library for google-cloud-privilegedaccessmanager com.google.cloud google-cloud-privilegedaccessmanager-parent - 0.47.0 + 0.48.0-SNAPSHOT diff --git a/java-privilegedaccessmanager/pom.xml b/java-privilegedaccessmanager/pom.xml index d5c965a7f5a2..f99c331cf94e 100644 --- a/java-privilegedaccessmanager/pom.xml +++ b/java-privilegedaccessmanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-privilegedaccessmanager-parent pom - 0.47.0 + 0.48.0-SNAPSHOT Google Privileged Access Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-privilegedaccessmanager - 0.47.0 + 0.48.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-privilegedaccessmanager-v1 - 0.47.0 + 0.48.0-SNAPSHOT com.google.api.grpc proto-google-cloud-privilegedaccessmanager-v1 - 0.47.0 + 0.48.0-SNAPSHOT diff --git a/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/pom.xml b/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/pom.xml index d0f3aa57d996..32f40decfb34 100644 --- a/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/pom.xml +++ b/java-privilegedaccessmanager/proto-google-cloud-privilegedaccessmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-privilegedaccessmanager-v1 - 0.47.0 + 0.48.0-SNAPSHOT proto-google-cloud-privilegedaccessmanager-v1 Proto library for google-cloud-privilegedaccessmanager com.google.cloud google-cloud-privilegedaccessmanager-parent - 0.47.0 + 0.48.0-SNAPSHOT diff --git a/java-profiler/google-cloud-profiler-bom/pom.xml b/java-profiler/google-cloud-profiler-bom/pom.xml index e90319fe593f..ad9ee1fb1563 100644 --- a/java-profiler/google-cloud-profiler-bom/pom.xml +++ b/java-profiler/google-cloud-profiler-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-profiler-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-profiler - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-profiler-v2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-profiler-v2 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-profiler/google-cloud-profiler/pom.xml b/java-profiler/google-cloud-profiler/pom.xml index 36fca1d55ff0..b00e32f6a98c 100644 --- a/java-profiler/google-cloud-profiler/pom.xml +++ b/java-profiler/google-cloud-profiler/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-profiler - 2.93.0 + 2.94.0-SNAPSHOT jar Google Cloud Profiler is a statistical, low-overhead profiler that continuously gathers CPU usage and memory-allocation information from your production applications. It attributes that information to the application's source code, helping you identify the parts of the application consuming the most resources, and otherwise illuminating the performance characteristics of the code. com.google.cloud google-cloud-profiler-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-profiler diff --git a/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/Version.java b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/Version.java index 5120410554c8..77bf33f0dd69 100644 --- a/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/Version.java +++ b/java-profiler/google-cloud-profiler/src/main/java/com/google/devtools/cloudprofiler/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-profiler:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-profiler/grpc-google-cloud-profiler-v2/pom.xml b/java-profiler/grpc-google-cloud-profiler-v2/pom.xml index f70ee7848c5f..c45b0c47a1ae 100644 --- a/java-profiler/grpc-google-cloud-profiler-v2/pom.xml +++ b/java-profiler/grpc-google-cloud-profiler-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-profiler-v2 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-profiler-v2 GRPC library for google-cloud-profiler com.google.cloud google-cloud-profiler-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-profiler/pom.xml b/java-profiler/pom.xml index dfbf57c3186a..d0927fc7c19a 100644 --- a/java-profiler/pom.xml +++ b/java-profiler/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-profiler-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Cloud Profiler Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-profiler - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-profiler-v2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-profiler-v2 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-profiler/proto-google-cloud-profiler-v2/pom.xml b/java-profiler/proto-google-cloud-profiler-v2/pom.xml index f1b2e3b144b8..c121e6037725 100644 --- a/java-profiler/proto-google-cloud-profiler-v2/pom.xml +++ b/java-profiler/proto-google-cloud-profiler-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-profiler-v2 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-profiler-v2 Proto library for google-cloud-profiler com.google.cloud google-cloud-profiler-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-publicca/google-cloud-publicca-bom/pom.xml b/java-publicca/google-cloud-publicca-bom/pom.xml index 6975881602f7..d6535ecea08a 100644 --- a/java-publicca/google-cloud-publicca-bom/pom.xml +++ b/java-publicca/google-cloud-publicca-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-publicca-bom - 0.90.0 + 0.91.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-publicca - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-publicca-v1beta1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-publicca-v1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-publicca-v1beta1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-publicca-v1 - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-publicca/google-cloud-publicca/pom.xml b/java-publicca/google-cloud-publicca/pom.xml index c255d5a10c54..ee8ec9e1021a 100644 --- a/java-publicca/google-cloud-publicca/pom.xml +++ b/java-publicca/google-cloud-publicca/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-publicca - 0.90.0 + 0.91.0-SNAPSHOT jar Google Public Certificate Authority Public Certificate Authority Certificate Manager's Public Certificate Authority (CA) functionality allows you to provision and deploy widely trusted X.509 certificates after validating that the certificate requester controls the domains. com.google.cloud google-cloud-publicca-parent - 0.90.0 + 0.91.0-SNAPSHOT google-cloud-publicca diff --git a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/stub/Version.java b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/stub/Version.java index 10143b0d4f14..8f968789bef2 100644 --- a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/stub/Version.java +++ b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-publicca:current} - static final String VERSION = "0.90.0"; + static final String VERSION = "0.91.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/stub/Version.java b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/stub/Version.java index 66153c6712d3..06d242042080 100644 --- a/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/stub/Version.java +++ b/java-publicca/google-cloud-publicca/src/main/java/com/google/cloud/security/publicca/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-publicca:current} - static final String VERSION = "0.90.0"; + static final String VERSION = "0.91.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-publicca/grpc-google-cloud-publicca-v1/pom.xml b/java-publicca/grpc-google-cloud-publicca-v1/pom.xml index 1b82f26b40e1..fa02da36aabe 100644 --- a/java-publicca/grpc-google-cloud-publicca-v1/pom.xml +++ b/java-publicca/grpc-google-cloud-publicca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-publicca-v1 - 0.90.0 + 0.91.0-SNAPSHOT grpc-google-cloud-publicca-v1 GRPC library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml b/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml index 0af09fd0c16c..9ee722bb124c 100644 --- a/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml +++ b/java-publicca/grpc-google-cloud-publicca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-publicca-v1beta1 - 0.90.0 + 0.91.0-SNAPSHOT grpc-google-cloud-publicca-v1beta1 GRPC library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-publicca/pom.xml b/java-publicca/pom.xml index 7610ef843192..5f0d780f8ddd 100644 --- a/java-publicca/pom.xml +++ b/java-publicca/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-publicca-parent pom - 0.90.0 + 0.91.0-SNAPSHOT Google Public Certificate Authority Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-publicca - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-publicca-v1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-publicca-v1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-publicca-v1beta1 - 0.90.0 + 0.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-publicca-v1beta1 - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-publicca/proto-google-cloud-publicca-v1/pom.xml b/java-publicca/proto-google-cloud-publicca-v1/pom.xml index 7ba7243009f8..39db9c6d37d4 100644 --- a/java-publicca/proto-google-cloud-publicca-v1/pom.xml +++ b/java-publicca/proto-google-cloud-publicca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-publicca-v1 - 0.90.0 + 0.91.0-SNAPSHOT proto-google-cloud-publicca-v1 Proto library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml b/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml index 118616e499b5..6a2a2fa65555 100644 --- a/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml +++ b/java-publicca/proto-google-cloud-publicca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-publicca-v1beta1 - 0.90.0 + 0.91.0-SNAPSHOT proto-google-cloud-publicca-v1beta1 Proto library for google-cloud-publicca com.google.cloud google-cloud-publicca-parent - 0.90.0 + 0.91.0-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub-bom/pom.xml b/java-pubsub/google-cloud-pubsub-bom/pom.xml index 554852beeb5e..c14f6d6dba79 100644 --- a/java-pubsub/google-cloud-pubsub-bom/pom.xml +++ b/java-pubsub/google-cloud-pubsub-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-pubsub-bom - 1.151.0 + 1.152.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -54,17 +54,17 @@ com.google.cloud google-cloud-pubsub - 1.151.0 + 1.152.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.151.0 + 1.152.0-SNAPSHOT com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.151.0 + 1.152.0-SNAPSHOT diff --git a/java-pubsub/google-cloud-pubsub/pom.xml b/java-pubsub/google-cloud-pubsub/pom.xml index 837ee330e022..c71d98a5493c 100644 --- a/java-pubsub/google-cloud-pubsub/pom.xml +++ b/java-pubsub/google-cloud-pubsub/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-pubsub - 1.151.0 + 1.152.0-SNAPSHOT jar Google Cloud Pub/Sub https://github.com/googleapis/java-pubsub @@ -11,7 +11,7 @@ com.google.cloud google-cloud-pubsub-parent - 1.151.0 + 1.152.0-SNAPSHOT google-cloud-pubsub diff --git a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/Version.java b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/Version.java index 8c4106af5d68..abfc2ccfcd14 100644 --- a/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/Version.java +++ b/java-pubsub/google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-pubsub:current} - static final String VERSION = "1.151.0"; + static final String VERSION = "1.152.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml index bb998a5dc2bd..291594c64157 100644 --- a/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/grpc-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.151.0 + 1.152.0-SNAPSHOT grpc-google-cloud-pubsub-v1 GRPC library for grpc-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.151.0 + 1.152.0-SNAPSHOT diff --git a/java-pubsub/pom.xml b/java-pubsub/pom.xml index ae2c516c9a48..ddd7a32cae09 100644 --- a/java-pubsub/pom.xml +++ b/java-pubsub/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-pubsub-parent pom - 1.151.0 + 1.152.0-SNAPSHOT Google Cloud Pub/Sub Parent https://github.com/googleapis/google-cloud-java @@ -14,7 +14,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -64,17 +64,17 @@ com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.151.0 + 1.152.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-pubsub-v1 - 1.151.0 + 1.152.0-SNAPSHOT com.google.cloud google-cloud-pubsub - 1.151.0 + 1.152.0-SNAPSHOT diff --git a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml index a4aee9d60836..c9b76f1ae160 100644 --- a/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml +++ b/java-pubsub/proto-google-cloud-pubsub-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-pubsub-v1 - 1.151.0 + 1.152.0-SNAPSHOT proto-google-cloud-pubsub-v1 PROTO library for proto-google-cloud-pubsub-v1 com.google.cloud google-cloud-pubsub-parent - 1.151.0 + 1.152.0-SNAPSHOT diff --git a/java-pubsub/samples/snapshot/pom.xml b/java-pubsub/samples/snapshot/pom.xml index 3f4f32efdab1..d20253367c03 100644 --- a/java-pubsub/samples/snapshot/pom.xml +++ b/java-pubsub/samples/snapshot/pom.xml @@ -43,7 +43,7 @@ com.google.cloud google-cloud-pubsub - 1.151.0 + 1.152.0-SNAPSHOT diff --git a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml index c6278060b86e..1a10989d50c3 100644 --- a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml +++ b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-rapidmigrationassessment-bom - 0.76.0 + 0.77.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-rapidmigrationassessment - 0.76.0 + 0.77.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-rapidmigrationassessment-v1 - 0.76.0 + 0.77.0-SNAPSHOT com.google.api.grpc proto-google-cloud-rapidmigrationassessment-v1 - 0.76.0 + 0.77.0-SNAPSHOT diff --git a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml index 71f9512650bb..75767c28c240 100644 --- a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml +++ b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-rapidmigrationassessment - 0.76.0 + 0.77.0-SNAPSHOT jar Google Rapid Migration Assessment API Rapid Migration Assessment API Rapid Migration Assessment API com.google.cloud google-cloud-rapidmigrationassessment-parent - 0.76.0 + 0.77.0-SNAPSHOT google-cloud-rapidmigrationassessment diff --git a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/stub/Version.java b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/stub/Version.java index 9920dd559901..a891fcf31c73 100644 --- a/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/stub/Version.java +++ b/java-rapidmigrationassessment/google-cloud-rapidmigrationassessment/src/main/java/com/google/cloud/rapidmigrationassessment/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-rapidmigrationassessment:current} - static final String VERSION = "0.76.0"; + static final String VERSION = "0.77.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml b/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml index f689faf52753..4c5d075dccd2 100644 --- a/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml +++ b/java-rapidmigrationassessment/grpc-google-cloud-rapidmigrationassessment-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-rapidmigrationassessment-v1 - 0.76.0 + 0.77.0-SNAPSHOT grpc-google-cloud-rapidmigrationassessment-v1 GRPC library for google-cloud-rapidmigrationassessment com.google.cloud google-cloud-rapidmigrationassessment-parent - 0.76.0 + 0.77.0-SNAPSHOT diff --git a/java-rapidmigrationassessment/pom.xml b/java-rapidmigrationassessment/pom.xml index 2f1f0a52d251..b57c300d0aeb 100644 --- a/java-rapidmigrationassessment/pom.xml +++ b/java-rapidmigrationassessment/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-rapidmigrationassessment-parent pom - 0.76.0 + 0.77.0-SNAPSHOT Google Rapid Migration Assessment API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-rapidmigrationassessment - 0.76.0 + 0.77.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-rapidmigrationassessment-v1 - 0.76.0 + 0.77.0-SNAPSHOT com.google.api.grpc proto-google-cloud-rapidmigrationassessment-v1 - 0.76.0 + 0.77.0-SNAPSHOT diff --git a/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml b/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml index da94b7e627f1..63d819a4e0aa 100644 --- a/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml +++ b/java-rapidmigrationassessment/proto-google-cloud-rapidmigrationassessment-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-rapidmigrationassessment-v1 - 0.76.0 + 0.77.0-SNAPSHOT proto-google-cloud-rapidmigrationassessment-v1 Proto library for google-cloud-rapidmigrationassessment com.google.cloud google-cloud-rapidmigrationassessment-parent - 0.76.0 + 0.77.0-SNAPSHOT diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml b/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml index b815f401ecfc..1844fc4e77c5 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-recaptchaenterprise-bom - 3.90.0 + 3.91.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,27 +24,27 @@ com.google.cloud google-cloud-recaptchaenterprise - 3.90.0 + 3.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1 - 3.90.0 + 3.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1beta1 - 3.90.0 + 3.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1 - 3.90.0 + 3.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1beta1 - 3.90.0 + 3.91.0-SNAPSHOT diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml index e9e8e6083913..0e45b6f30175 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-recaptchaenterprise - 3.90.0 + 3.91.0-SNAPSHOT jar reCAPTCHA Enterprise Help protect your website from fraudulent activity, spam, and abuse. com.google.cloud google-cloud-recaptchaenterprise-parent - 3.90.0 + 3.91.0-SNAPSHOT google-cloud-recaptchaenterprise diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/Version.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/Version.java index 0dad2b2e42ba..c716b27c0197 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/Version.java +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-recaptchaenterprise:current} - static final String VERSION = "3.90.0"; + static final String VERSION = "3.91.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/Version.java b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/Version.java index c42bbe4e7941..81c209902966 100644 --- a/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/Version.java +++ b/java-recaptchaenterprise/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-recaptchaenterprise:current} - static final String VERSION = "3.90.0"; + static final String VERSION = "3.91.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml index 2247eb6914c5..1e683a8878bc 100644 --- a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml +++ b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1 - 3.90.0 + 3.91.0-SNAPSHOT grpc-google-cloud-recaptchaenterprise-v1 GRPC library for grpc-google-cloud-recaptchaenterprise-v1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.90.0 + 3.91.0-SNAPSHOT diff --git a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml index 459e87a26864..fe7fbc5854d8 100644 --- a/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml +++ b/java-recaptchaenterprise/grpc-google-cloud-recaptchaenterprise-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1beta1 - 3.90.0 + 3.91.0-SNAPSHOT grpc-google-cloud-recaptchaenterprise-v1beta1 GRPC library for grpc-google-cloud-recaptchaenterprise-v1beta1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.90.0 + 3.91.0-SNAPSHOT diff --git a/java-recaptchaenterprise/pom.xml b/java-recaptchaenterprise/pom.xml index 9bdf72c6af9d..47c00cd473de 100644 --- a/java-recaptchaenterprise/pom.xml +++ b/java-recaptchaenterprise/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-recaptchaenterprise-parent pom - 3.90.0 + 3.91.0-SNAPSHOT reCAPTCHA Enterprise Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1 - 3.90.0 + 3.91.0-SNAPSHOT com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1beta1 - 3.90.0 + 3.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1 - 3.90.0 + 3.91.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1beta1 - 3.90.0 + 3.91.0-SNAPSHOT com.google.cloud google-cloud-recaptchaenterprise - 3.90.0 + 3.91.0-SNAPSHOT diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml index 00c1ae792d24..d90d965963ce 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1 - 3.90.0 + 3.91.0-SNAPSHOT proto-google-cloud-recaptchaenterprise-v1 PROTO library for proto-google-cloud-recaptchaenterprise-v1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.90.0 + 3.91.0-SNAPSHOT diff --git a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml index 6d117a736196..50b1d569cb6d 100644 --- a/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml +++ b/java-recaptchaenterprise/proto-google-cloud-recaptchaenterprise-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1beta1 - 3.90.0 + 3.91.0-SNAPSHOT proto-google-cloud-recaptchaenterprise-v1beta1 PROTO library for proto-google-cloud-recaptchaenterprise-v1beta1 com.google.cloud google-cloud-recaptchaenterprise-parent - 3.90.0 + 3.91.0-SNAPSHOT diff --git a/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml b/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml index 4d022ceb6930..846ac46dfe05 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml +++ b/java-recommendations-ai/google-cloud-recommendations-ai-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-recommendations-ai-bom - 0.100.0 + 0.101.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,17 +24,17 @@ com.google.cloud google-cloud-recommendations-ai - 0.100.0 + 0.101.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recommendations-ai-v1beta1 - 0.100.0 + 0.101.0-SNAPSHOT com.google.api.grpc proto-google-cloud-recommendations-ai-v1beta1 - 0.100.0 + 0.101.0-SNAPSHOT diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml b/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml index e51002b0b437..450c08cf7af8 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml +++ b/java-recommendations-ai/google-cloud-recommendations-ai/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-recommendations-ai - 0.100.0 + 0.101.0-SNAPSHOT jar Google Recommendations AI delivers highly personalized product recommendations at scale. com.google.cloud google-cloud-recommendations-ai-parent - 0.100.0 + 0.101.0-SNAPSHOT google-cloud-recommendations-ai diff --git a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/Version.java b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/Version.java index 36cb4dcc7de8..ab2b59ae1a5f 100644 --- a/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/Version.java +++ b/java-recommendations-ai/google-cloud-recommendations-ai/src/main/java/com/google/cloud/recommendationengine/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-recommendations-ai:current} - static final String VERSION = "0.100.0"; + static final String VERSION = "0.101.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml b/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml index e03ed635011e..4f71700eca5d 100644 --- a/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml +++ b/java-recommendations-ai/grpc-google-cloud-recommendations-ai-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recommendations-ai-v1beta1 - 0.100.0 + 0.101.0-SNAPSHOT grpc-google-cloud-recommendations-ai-v1beta1 GRPC library for grpc-google-cloud-recommendations-ai-v1beta1 com.google.cloud google-cloud-recommendations-ai-parent - 0.100.0 + 0.101.0-SNAPSHOT diff --git a/java-recommendations-ai/pom.xml b/java-recommendations-ai/pom.xml index 8cf19ce04712..a6cbbd30f0c4 100644 --- a/java-recommendations-ai/pom.xml +++ b/java-recommendations-ai/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-recommendations-ai-parent pom - 0.100.0 + 0.101.0-SNAPSHOT Google Recommendations AI Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-recommendations-ai - 0.100.0 + 0.101.0-SNAPSHOT com.google.api.grpc proto-google-cloud-recommendations-ai-v1beta1 - 0.100.0 + 0.101.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recommendations-ai-v1beta1 - 0.100.0 + 0.101.0-SNAPSHOT diff --git a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml index f577acc6c2b1..7cd4b9bc9034 100644 --- a/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml +++ b/java-recommendations-ai/proto-google-cloud-recommendations-ai-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recommendations-ai-v1beta1 - 0.100.0 + 0.101.0-SNAPSHOT proto-google-cloud-recommendations-ai-v1beta1 PROTO library for proto-google-cloud-recommendations-ai-v1beta1 com.google.cloud google-cloud-recommendations-ai-parent - 0.100.0 + 0.101.0-SNAPSHOT diff --git a/java-recommender/google-cloud-recommender-bom/pom.xml b/java-recommender/google-cloud-recommender-bom/pom.xml index 7c81dd98638a..4f6e1d2d2fee 100644 --- a/java-recommender/google-cloud-recommender-bom/pom.xml +++ b/java-recommender/google-cloud-recommender-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-recommender-bom - 2.95.0 + 2.96.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,27 +24,27 @@ com.google.cloud google-cloud-recommender - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recommender-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recommender-v1beta1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-recommender-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-recommender-v1beta1 - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-recommender/google-cloud-recommender/pom.xml b/java-recommender/google-cloud-recommender/pom.xml index 086869db570b..b526da835fa4 100644 --- a/java-recommender/google-cloud-recommender/pom.xml +++ b/java-recommender/google-cloud-recommender/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-recommender - 2.95.0 + 2.96.0-SNAPSHOT jar Google Cloud Recommender @@ -12,7 +12,7 @@ com.google.cloud google-cloud-recommender-parent - 2.95.0 + 2.96.0-SNAPSHOT google-cloud-recommender diff --git a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/Version.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/Version.java index 994b427cd269..44445da10491 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/Version.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-recommender:current} - static final String VERSION = "2.95.0"; + static final String VERSION = "2.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/Version.java b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/Version.java index af2607e98c97..6e242f5bb4a5 100644 --- a/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/Version.java +++ b/java-recommender/google-cloud-recommender/src/main/java/com/google/cloud/recommender/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-recommender:current} - static final String VERSION = "2.95.0"; + static final String VERSION = "2.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-recommender/grpc-google-cloud-recommender-v1/pom.xml b/java-recommender/grpc-google-cloud-recommender-v1/pom.xml index 500618f152b3..3904bbde96be 100644 --- a/java-recommender/grpc-google-cloud-recommender-v1/pom.xml +++ b/java-recommender/grpc-google-cloud-recommender-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recommender-v1 - 2.95.0 + 2.96.0-SNAPSHOT grpc-google-cloud-recommender-v1 GRPC library for grpc-google-cloud-recommender-v1 com.google.cloud google-cloud-recommender-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml b/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml index 2f29e0e09b3d..491f6584bc41 100644 --- a/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml +++ b/java-recommender/grpc-google-cloud-recommender-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-recommender-v1beta1 - 2.95.0 + 2.96.0-SNAPSHOT grpc-google-cloud-recommender-v1beta1 GRPC library for grpc-google-cloud-recommender-v1beta1 com.google.cloud google-cloud-recommender-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-recommender/pom.xml b/java-recommender/pom.xml index 68d0efcbc91a..fa9c5a708c9c 100644 --- a/java-recommender/pom.xml +++ b/java-recommender/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-recommender-parent pom - 2.95.0 + 2.96.0-SNAPSHOT Google Cloud recommender Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.api.grpc proto-google-cloud-recommender-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.cloud google-cloud-recommender - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-recommender-v1beta1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recommender-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-recommender-v1beta1 - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-recommender/proto-google-cloud-recommender-v1/pom.xml b/java-recommender/proto-google-cloud-recommender-v1/pom.xml index ac15c4573d3b..caeebc9ebd4f 100644 --- a/java-recommender/proto-google-cloud-recommender-v1/pom.xml +++ b/java-recommender/proto-google-cloud-recommender-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recommender-v1 - 2.95.0 + 2.96.0-SNAPSHOT proto-google-cloud-recommender-v1 PROTO library for proto-google-cloud-recommender-v1 com.google.cloud google-cloud-recommender-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml b/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml index 19ee6040cee1..6e74e5cd9be9 100644 --- a/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml +++ b/java-recommender/proto-google-cloud-recommender-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-recommender-v1beta1 - 2.95.0 + 2.96.0-SNAPSHOT proto-google-cloud-recommender-v1beta1 PROTO library for proto-google-cloud-recommender-v1beta1 com.google.cloud google-cloud-recommender-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-redis-cluster/google-cloud-redis-cluster-bom/pom.xml b/java-redis-cluster/google-cloud-redis-cluster-bom/pom.xml index 95d578ee9d73..fcdb172ba910 100644 --- a/java-redis-cluster/google-cloud-redis-cluster-bom/pom.xml +++ b/java-redis-cluster/google-cloud-redis-cluster-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-redis-cluster-bom - 0.65.0 + 0.66.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-redis-cluster - 0.65.0 + 0.66.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-cluster-v1 - 0.65.0 + 0.66.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-cluster-v1beta1 - 0.65.0 + 0.66.0-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-cluster-v1beta1 - 0.65.0 + 0.66.0-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-cluster-v1 - 0.65.0 + 0.66.0-SNAPSHOT diff --git a/java-redis-cluster/google-cloud-redis-cluster/pom.xml b/java-redis-cluster/google-cloud-redis-cluster/pom.xml index b7a5389e2126..e3f7f4f77098 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/pom.xml +++ b/java-redis-cluster/google-cloud-redis-cluster/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-redis-cluster - 0.65.0 + 0.66.0-SNAPSHOT jar Google Google Cloud Memorystore for Redis API Google Cloud Memorystore for Redis API Creates and manages Redis instances on the Google Cloud Platform. com.google.cloud google-cloud-redis-cluster-parent - 0.65.0 + 0.66.0-SNAPSHOT google-cloud-redis-cluster diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/Version.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/Version.java index f24baf955e8d..cdb31f7c796b 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/Version.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-redis-cluster:current} - static final String VERSION = "0.65.0"; + static final String VERSION = "0.66.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/Version.java b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/Version.java index 8f55e3722628..3da1399c01fd 100644 --- a/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/Version.java +++ b/java-redis-cluster/google-cloud-redis-cluster/src/main/java/com/google/cloud/redis/cluster/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-redis-cluster:current} - static final String VERSION = "0.65.0"; + static final String VERSION = "0.66.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml index 6de93ac0854b..9b29f086acbe 100644 --- a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml +++ b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1 - 0.65.0 + 0.66.0-SNAPSHOT grpc-google-cloud-redis-cluster-v1 GRPC library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.65.0 + 0.66.0-SNAPSHOT diff --git a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml index b644788bac60..b21c259a78c9 100644 --- a/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml +++ b/java-redis-cluster/grpc-google-cloud-redis-cluster-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-cluster-v1beta1 - 0.65.0 + 0.66.0-SNAPSHOT grpc-google-cloud-redis-cluster-v1beta1 GRPC library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.65.0 + 0.66.0-SNAPSHOT diff --git a/java-redis-cluster/pom.xml b/java-redis-cluster/pom.xml index 68f1db999100..a7ea22f405ee 100644 --- a/java-redis-cluster/pom.xml +++ b/java-redis-cluster/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-redis-cluster-parent pom - 0.65.0 + 0.66.0-SNAPSHOT Google Google Cloud Memorystore for Redis API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-redis-cluster - 0.65.0 + 0.66.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-cluster-v1 - 0.65.0 + 0.66.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-cluster-v1beta1 - 0.65.0 + 0.66.0-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-cluster-v1beta1 - 0.65.0 + 0.66.0-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-cluster-v1 - 0.65.0 + 0.66.0-SNAPSHOT diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml index 1cfe7d66e8ef..c8febad4479e 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1 - 0.65.0 + 0.66.0-SNAPSHOT proto-google-cloud-redis-cluster-v1 Proto library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.65.0 + 0.66.0-SNAPSHOT diff --git a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml index 9f09851c4b63..9521f1e41723 100644 --- a/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml +++ b/java-redis-cluster/proto-google-cloud-redis-cluster-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-cluster-v1beta1 - 0.65.0 + 0.66.0-SNAPSHOT proto-google-cloud-redis-cluster-v1beta1 Proto library for google-cloud-redis-cluster com.google.cloud google-cloud-redis-cluster-parent - 0.65.0 + 0.66.0-SNAPSHOT diff --git a/java-redis/google-cloud-redis-bom/pom.xml b/java-redis/google-cloud-redis-bom/pom.xml index 5019280d25b8..d8f43c0ebb3a 100644 --- a/java-redis/google-cloud-redis-bom/pom.xml +++ b/java-redis/google-cloud-redis-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-redis-bom - 2.96.0 + 2.97.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,27 +24,27 @@ com.google.cloud google-cloud-redis - 2.96.0 + 2.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 2.96.0 + 2.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1 - 2.96.0 + 2.97.0-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-v1 - 2.96.0 + 2.97.0-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-v1beta1 - 2.96.0 + 2.97.0-SNAPSHOT diff --git a/java-redis/google-cloud-redis/pom.xml b/java-redis/google-cloud-redis/pom.xml index df6125ef8e9e..dffc5e1fc931 100644 --- a/java-redis/google-cloud-redis/pom.xml +++ b/java-redis/google-cloud-redis/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-redis - 2.96.0 + 2.97.0-SNAPSHOT jar Google Cloud Redis Java idiomatic client for Google Cloud Redis com.google.cloud google-cloud-redis-parent - 2.96.0 + 2.97.0-SNAPSHOT google-cloud-redis diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/Version.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/Version.java index ae562b9f111f..bebe0a4ba38a 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/Version.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-redis:current} - static final String VERSION = "2.96.0"; + static final String VERSION = "2.97.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/Version.java b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/Version.java index 517d1d3f1b4c..d20cdfb46fb2 100644 --- a/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/Version.java +++ b/java-redis/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-redis:current} - static final String VERSION = "2.96.0"; + static final String VERSION = "2.97.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-redis/grpc-google-cloud-redis-v1/pom.xml b/java-redis/grpc-google-cloud-redis-v1/pom.xml index 4848338bf473..f61505ccc380 100644 --- a/java-redis/grpc-google-cloud-redis-v1/pom.xml +++ b/java-redis/grpc-google-cloud-redis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-v1 - 2.96.0 + 2.97.0-SNAPSHOT grpc-google-cloud-redis-v1 GRPC library for grpc-google-cloud-redis-v1 com.google.cloud google-cloud-redis-parent - 2.96.0 + 2.97.0-SNAPSHOT diff --git a/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml b/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml index 49335ef96c59..9f20e18ad27f 100644 --- a/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml +++ b/java-redis/grpc-google-cloud-redis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 2.96.0 + 2.97.0-SNAPSHOT grpc-google-cloud-redis-v1beta1 GRPC library for grpc-google-cloud-redis-v1beta1 com.google.cloud google-cloud-redis-parent - 2.96.0 + 2.97.0-SNAPSHOT diff --git a/java-redis/pom.xml b/java-redis/pom.xml index b0bdb5326a9c..0b49863d2b2d 100644 --- a/java-redis/pom.xml +++ b/java-redis/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-redis-parent pom - 2.96.0 + 2.97.0-SNAPSHOT Google Cloud Redis Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.api.grpc proto-google-cloud-redis-v1 - 2.96.0 + 2.97.0-SNAPSHOT com.google.api.grpc proto-google-cloud-redis-v1beta1 - 2.96.0 + 2.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1beta1 - 2.96.0 + 2.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-redis-v1 - 2.96.0 + 2.97.0-SNAPSHOT com.google.cloud google-cloud-redis - 2.96.0 + 2.97.0-SNAPSHOT diff --git a/java-redis/proto-google-cloud-redis-v1/pom.xml b/java-redis/proto-google-cloud-redis-v1/pom.xml index bd1bfe8755d8..a87a6ece0245 100644 --- a/java-redis/proto-google-cloud-redis-v1/pom.xml +++ b/java-redis/proto-google-cloud-redis-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-v1 - 2.96.0 + 2.97.0-SNAPSHOT proto-google-cloud-redis-v1 PROTO library for proto-google-cloud-redis-v1 com.google.cloud google-cloud-redis-parent - 2.96.0 + 2.97.0-SNAPSHOT diff --git a/java-redis/proto-google-cloud-redis-v1beta1/pom.xml b/java-redis/proto-google-cloud-redis-v1beta1/pom.xml index 6c5fcc47c719..af2c9c814841 100644 --- a/java-redis/proto-google-cloud-redis-v1beta1/pom.xml +++ b/java-redis/proto-google-cloud-redis-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-redis-v1beta1 - 2.96.0 + 2.97.0-SNAPSHOT proto-google-cloud-redis-v1beta1 PROTO library for proto-google-cloud-redis-v1beta1 com.google.cloud google-cloud-redis-parent - 2.96.0 + 2.97.0-SNAPSHOT diff --git a/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml b/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml index e527a63c176b..110a5c3784a5 100644 --- a/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml +++ b/java-resourcemanager/google-cloud-resourcemanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-resourcemanager-bom - 1.95.0 + 1.96.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-resourcemanager - 1.95.0 + 1.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-resourcemanager-v3 - 1.95.0 + 1.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-resourcemanager-v3 - 1.95.0 + 1.96.0-SNAPSHOT diff --git a/java-resourcemanager/google-cloud-resourcemanager/pom.xml b/java-resourcemanager/google-cloud-resourcemanager/pom.xml index c527d2f8be12..28558b5f9a24 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/pom.xml +++ b/java-resourcemanager/google-cloud-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-resourcemanager jar - 1.95.0 + 1.96.0-SNAPSHOT Google Cloud Resource Manager Java idiomatic client for Google Cloud Resource Manager @@ -13,7 +13,7 @@ com.google.cloud google-cloud-resourcemanager-parent - 1.95.0 + 1.96.0-SNAPSHOT diff --git a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/Version.java b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/Version.java index 47cf74c30c02..0f587588cea6 100644 --- a/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/Version.java +++ b/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/v3/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-resourcemanager:current} - static final String VERSION = "1.95.0"; + static final String VERSION = "1.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml index 75b146694a44..5c3db78f9224 100644 --- a/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml +++ b/java-resourcemanager/grpc-google-cloud-resourcemanager-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-resourcemanager-v3 - 1.95.0 + 1.96.0-SNAPSHOT grpc-google-cloud-resourcemanager-v3 GRPC library for google-cloud-resourcemanager com.google.cloud google-cloud-resourcemanager-parent - 1.95.0 + 1.96.0-SNAPSHOT diff --git a/java-resourcemanager/pom.xml b/java-resourcemanager/pom.xml index b7b477ad73f0..c4d5ae05811f 100644 --- a/java-resourcemanager/pom.xml +++ b/java-resourcemanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-resourcemanager-parent pom - 1.95.0 + 1.96.0-SNAPSHOT Google Resource Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-resourcemanager - 1.95.0 + 1.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-resourcemanager-v3 - 1.95.0 + 1.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-resourcemanager-v3 - 1.95.0 + 1.96.0-SNAPSHOT diff --git a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml index 4737c6b8eeb8..da5fe75e463f 100644 --- a/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml +++ b/java-resourcemanager/proto-google-cloud-resourcemanager-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-resourcemanager-v3 - 1.95.0 + 1.96.0-SNAPSHOT proto-google-cloud-resourcemanager-v3 Proto library for google-cloud-resourcemanager com.google.cloud google-cloud-resourcemanager-parent - 1.95.0 + 1.96.0-SNAPSHOT diff --git a/java-retail/google-cloud-retail-bom/pom.xml b/java-retail/google-cloud-retail-bom/pom.xml index 723e61468869..00784efd4581 100644 --- a/java-retail/google-cloud-retail-bom/pom.xml +++ b/java-retail/google-cloud-retail-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-retail-bom - 2.95.0 + 2.96.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,37 +28,37 @@ com.google.cloud google-cloud-retail - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-retail-v2 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-retail-v2alpha - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-retail-v2beta - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-retail-v2 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-retail-v2alpha - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-retail-v2beta - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-retail/google-cloud-retail/pom.xml b/java-retail/google-cloud-retail/pom.xml index 85901264b3d7..e25040e7b402 100644 --- a/java-retail/google-cloud-retail/pom.xml +++ b/java-retail/google-cloud-retail/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-retail - 2.95.0 + 2.96.0-SNAPSHOT jar Google Cloud Retail Retail solutions API. com.google.cloud google-cloud-retail-parent - 2.95.0 + 2.96.0-SNAPSHOT google-cloud-retail diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/Version.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/Version.java index 6b0c383040ce..d44432a06050 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/Version.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-retail:current} - static final String VERSION = "2.95.0"; + static final String VERSION = "2.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/Version.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/Version.java index 69d809c18957..f6b17fe2a546 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/Version.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-retail:current} - static final String VERSION = "2.95.0"; + static final String VERSION = "2.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/Version.java b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/Version.java index 44401938e470..1f97d710a645 100644 --- a/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/Version.java +++ b/java-retail/google-cloud-retail/src/main/java/com/google/cloud/retail/v2beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-retail:current} - static final String VERSION = "2.95.0"; + static final String VERSION = "2.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-retail/grpc-google-cloud-retail-v2/pom.xml b/java-retail/grpc-google-cloud-retail-v2/pom.xml index 05f848ad15f4..f30543f438e6 100644 --- a/java-retail/grpc-google-cloud-retail-v2/pom.xml +++ b/java-retail/grpc-google-cloud-retail-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-retail-v2 - 2.95.0 + 2.96.0-SNAPSHOT grpc-google-cloud-retail-v2 GRPC library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml b/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml index 62f0759d2a4d..bae1887cbf37 100644 --- a/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml +++ b/java-retail/grpc-google-cloud-retail-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-retail-v2alpha - 2.95.0 + 2.96.0-SNAPSHOT grpc-google-cloud-retail-v2alpha GRPC library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-retail/grpc-google-cloud-retail-v2beta/pom.xml b/java-retail/grpc-google-cloud-retail-v2beta/pom.xml index 802a2e14866c..41b0fc9adff2 100644 --- a/java-retail/grpc-google-cloud-retail-v2beta/pom.xml +++ b/java-retail/grpc-google-cloud-retail-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-retail-v2beta - 2.95.0 + 2.96.0-SNAPSHOT grpc-google-cloud-retail-v2beta GRPC library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-retail/pom.xml b/java-retail/pom.xml index ca69e1ca48b6..a29fb0d0ae26 100644 --- a/java-retail/pom.xml +++ b/java-retail/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-retail-parent pom - 2.95.0 + 2.96.0-SNAPSHOT Google Cloud Retail Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,37 +30,37 @@ com.google.cloud google-cloud-retail - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-retail-v2beta - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-retail-v2alpha - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-retail-v2beta - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-retail-v2alpha - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-retail-v2 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-retail-v2 - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-retail/proto-google-cloud-retail-v2/pom.xml b/java-retail/proto-google-cloud-retail-v2/pom.xml index 83e8fbf20bb5..7de37f3dcce7 100644 --- a/java-retail/proto-google-cloud-retail-v2/pom.xml +++ b/java-retail/proto-google-cloud-retail-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-retail-v2 - 2.95.0 + 2.96.0-SNAPSHOT proto-google-cloud-retail-v2 Proto library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-retail/proto-google-cloud-retail-v2alpha/pom.xml b/java-retail/proto-google-cloud-retail-v2alpha/pom.xml index 84852f23086c..9923fa43955d 100644 --- a/java-retail/proto-google-cloud-retail-v2alpha/pom.xml +++ b/java-retail/proto-google-cloud-retail-v2alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-retail-v2alpha - 2.95.0 + 2.96.0-SNAPSHOT proto-google-cloud-retail-v2alpha Proto library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-retail/proto-google-cloud-retail-v2beta/pom.xml b/java-retail/proto-google-cloud-retail-v2beta/pom.xml index 38f5aba8596f..4e442b0af833 100644 --- a/java-retail/proto-google-cloud-retail-v2beta/pom.xml +++ b/java-retail/proto-google-cloud-retail-v2beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-retail-v2beta - 2.95.0 + 2.96.0-SNAPSHOT proto-google-cloud-retail-v2beta Proto library for google-cloud-retail com.google.cloud google-cloud-retail-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-run/google-cloud-run-bom/pom.xml b/java-run/google-cloud-run-bom/pom.xml index 2ea52219e798..d090938d48cd 100644 --- a/java-run/google-cloud-run-bom/pom.xml +++ b/java-run/google-cloud-run-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-run-bom - 0.93.0 + 0.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-run - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-run-v2 - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-run-v2 - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-run/google-cloud-run/pom.xml b/java-run/google-cloud-run/pom.xml index 3325331fb23c..ac4df8a29c4e 100644 --- a/java-run/google-cloud-run/pom.xml +++ b/java-run/google-cloud-run/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-run - 0.93.0 + 0.94.0-SNAPSHOT jar Google Cloud Run Cloud Run is a managed compute platform that enables you to run containers that are invocable via requests or events. com.google.cloud google-cloud-run-parent - 0.93.0 + 0.94.0-SNAPSHOT google-cloud-run diff --git a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/Version.java b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/Version.java index 6449e67a2bb3..0d4634550e8c 100644 --- a/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/Version.java +++ b/java-run/google-cloud-run/src/main/java/com/google/cloud/run/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-run:current} - static final String VERSION = "0.93.0"; + static final String VERSION = "0.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-run/grpc-google-cloud-run-v2/pom.xml b/java-run/grpc-google-cloud-run-v2/pom.xml index bafe02cfe2e5..eb4454d714ad 100644 --- a/java-run/grpc-google-cloud-run-v2/pom.xml +++ b/java-run/grpc-google-cloud-run-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-run-v2 - 0.93.0 + 0.94.0-SNAPSHOT grpc-google-cloud-run-v2 GRPC library for google-cloud-run com.google.cloud google-cloud-run-parent - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-run/pom.xml b/java-run/pom.xml index e4be80c26961..4524ef76b369 100644 --- a/java-run/pom.xml +++ b/java-run/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-run-parent pom - 0.93.0 + 0.94.0-SNAPSHOT Google Cloud Run Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-run - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-run-v2 - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-run-v2 - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-run/proto-google-cloud-run-v2/pom.xml b/java-run/proto-google-cloud-run-v2/pom.xml index 5e979f5f4da6..bba0dccdbc13 100644 --- a/java-run/proto-google-cloud-run-v2/pom.xml +++ b/java-run/proto-google-cloud-run-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-run-v2 - 0.93.0 + 0.94.0-SNAPSHOT proto-google-cloud-run-v2 Proto library for google-cloud-run com.google.cloud google-cloud-run-parent - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt-bom/pom.xml b/java-saasservicemgmt/google-cloud-saasservicemgmt-bom/pom.xml index 7fe26bfc6446..007c70cc9921 100644 --- a/java-saasservicemgmt/google-cloud-saasservicemgmt-bom/pom.xml +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-saasservicemgmt-bom - 0.23.0 + 0.24.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-saasservicemgmt - 0.23.0 + 0.24.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-saasservicemgmt-v1beta1 - 0.23.0 + 0.24.0-SNAPSHOT com.google.api.grpc proto-google-cloud-saasservicemgmt-v1beta1 - 0.23.0 + 0.24.0-SNAPSHOT diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/pom.xml b/java-saasservicemgmt/google-cloud-saasservicemgmt/pom.xml index 19b994d05d1c..26aeaac9fac9 100644 --- a/java-saasservicemgmt/google-cloud-saasservicemgmt/pom.xml +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-saasservicemgmt - 0.23.0 + 0.24.0-SNAPSHOT jar Google SaaS Runtime API SaaS Runtime API Model, deploy, and operate your SaaS at scale. com.google.cloud google-cloud-saasservicemgmt-parent - 0.23.0 + 0.24.0-SNAPSHOT google-cloud-saasservicemgmt diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/Version.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/Version.java index fbf765aa3cb5..34e1e4f96f6a 100644 --- a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/Version.java +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-saasservicemgmt:current} - static final String VERSION = "0.23.0"; + static final String VERSION = "0.24.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/pom.xml b/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/pom.xml index c3bcee8dd3e1..a20f62e533b9 100644 --- a/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/pom.xml +++ b/java-saasservicemgmt/grpc-google-cloud-saasservicemgmt-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-saasservicemgmt-v1beta1 - 0.23.0 + 0.24.0-SNAPSHOT grpc-google-cloud-saasservicemgmt-v1beta1 GRPC library for google-cloud-saasservicemgmt com.google.cloud google-cloud-saasservicemgmt-parent - 0.23.0 + 0.24.0-SNAPSHOT diff --git a/java-saasservicemgmt/pom.xml b/java-saasservicemgmt/pom.xml index 1977a1da0017..bea723d1da94 100644 --- a/java-saasservicemgmt/pom.xml +++ b/java-saasservicemgmt/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-saasservicemgmt-parent pom - 0.23.0 + 0.24.0-SNAPSHOT Google SaaS Runtime API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-saasservicemgmt - 0.23.0 + 0.24.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-saasservicemgmt-v1beta1 - 0.23.0 + 0.24.0-SNAPSHOT com.google.api.grpc proto-google-cloud-saasservicemgmt-v1beta1 - 0.23.0 + 0.24.0-SNAPSHOT diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/pom.xml b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/pom.xml index b3eb189cb464..e499a0dd9cd8 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/pom.xml +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-saasservicemgmt-v1beta1 - 0.23.0 + 0.24.0-SNAPSHOT proto-google-cloud-saasservicemgmt-v1beta1 Proto library for google-cloud-saasservicemgmt com.google.cloud google-cloud-saasservicemgmt-parent - 0.23.0 + 0.24.0-SNAPSHOT diff --git a/java-samples/pom.xml b/java-samples/pom.xml index cbd659e2617a..6c8015bdfd65 100644 --- a/java-samples/pom.xml +++ b/java-samples/pom.xml @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml diff --git a/java-scheduler/google-cloud-scheduler-bom/pom.xml b/java-scheduler/google-cloud-scheduler-bom/pom.xml index fb9bc050cdd0..b17698dacefa 100644 --- a/java-scheduler/google-cloud-scheduler-bom/pom.xml +++ b/java-scheduler/google-cloud-scheduler-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-scheduler-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,27 +24,27 @@ com.google.cloud google-cloud-scheduler - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-scheduler-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-scheduler-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-scheduler/google-cloud-scheduler/pom.xml b/java-scheduler/google-cloud-scheduler/pom.xml index 546f6cc752fb..730ffc24e042 100644 --- a/java-scheduler/google-cloud-scheduler/pom.xml +++ b/java-scheduler/google-cloud-scheduler/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-scheduler - 2.93.0 + 2.94.0-SNAPSHOT jar Google Cloud Scheduler Fully managed cron job service com.google.cloud google-cloud-scheduler-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-scheduler diff --git a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/Version.java b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/Version.java index 02331300eb04..3d0924d33f3b 100644 --- a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/Version.java +++ b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-scheduler:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/stub/Version.java b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/stub/Version.java index ece93836db6b..1743ba983c77 100644 --- a/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/stub/Version.java +++ b/java-scheduler/google-cloud-scheduler/src/main/java/com/google/cloud/scheduler/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-scheduler:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml b/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml index 95e02d987db2..fab6bc6be774 100644 --- a/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml +++ b/java-scheduler/grpc-google-cloud-scheduler-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-scheduler-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-scheduler-v1 GRPC library for grpc-google-cloud-scheduler-v1 com.google.cloud google-cloud-scheduler-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml b/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml index 0dcfa92fdf41..1d76a6adf48e 100644 --- a/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml +++ b/java-scheduler/grpc-google-cloud-scheduler-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-scheduler-v1beta1 GRPC library for grpc-google-cloud-scheduler-v1beta1 com.google.cloud google-cloud-scheduler-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-scheduler/pom.xml b/java-scheduler/pom.xml index 022d3544d229..2971825305df 100644 --- a/java-scheduler/pom.xml +++ b/java-scheduler/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-scheduler-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Cloud Scheduler Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-scheduler-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-scheduler-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-scheduler-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.cloud google-cloud-scheduler - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml b/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml index e31b4e11628e..3fbf2b8883f0 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml +++ b/java-scheduler/proto-google-cloud-scheduler-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-scheduler-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-scheduler-v1 PROTO library for proto-google-cloud-scheduler-v1 com.google.cloud google-cloud-scheduler-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml b/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml index b1a9878166f2..52d811ede6c0 100644 --- a/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml +++ b/java-scheduler/proto-google-cloud-scheduler-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-scheduler-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-scheduler-v1beta1 PROTO library for proto-google-cloud-scheduler-v1beta1 com.google.cloud google-cloud-scheduler-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-secretmanager/google-cloud-secretmanager-bom/pom.xml b/java-secretmanager/google-cloud-secretmanager-bom/pom.xml index c67c831f5226..9084421bc196 100644 --- a/java-secretmanager/google-cloud-secretmanager-bom/pom.xml +++ b/java-secretmanager/google-cloud-secretmanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-secretmanager-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,37 +24,37 @@ com.google.cloud google-cloud-secretmanager - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-secretmanager-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-secretmanager-v1beta2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-secretmanager-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-secretmanager-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-secretmanager-v1beta2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-secretmanager-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-secretmanager/google-cloud-secretmanager/pom.xml b/java-secretmanager/google-cloud-secretmanager/pom.xml index 6bb555dc5d85..e95ab33ee9f3 100644 --- a/java-secretmanager/google-cloud-secretmanager/pom.xml +++ b/java-secretmanager/google-cloud-secretmanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-secretmanager - 2.93.0 + 2.94.0-SNAPSHOT jar Google Cloud Secret Manager Java idiomatic client for Google Cloud Secret Manager com.google.cloud google-cloud-secretmanager-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-secretmanager diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/Version.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/Version.java index 4af06ca053ce..c87dedc01792 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/Version.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-secretmanager:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta1/stub/Version.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta1/stub/Version.java index dfa443e251bd..02701d8c9f12 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta1/stub/Version.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-secretmanager:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/stub/Version.java b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/stub/Version.java index b8c521ae4fb9..10ee20f5f7b5 100644 --- a/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/stub/Version.java +++ b/java-secretmanager/google-cloud-secretmanager/src/main/java/com/google/cloud/secretmanager/v1beta2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-secretmanager:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml b/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml index f9513c51ab6d..e63329233260 100644 --- a/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml +++ b/java-secretmanager/grpc-google-cloud-secretmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-secretmanager-v1 GRPC library for grpc-google-cloud-secretmanager-v1 com.google.cloud google-cloud-secretmanager-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta1/pom.xml b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta1/pom.xml index 8037f1b719bc..fdccaad8a686 100644 --- a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta1/pom.xml +++ b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-secretmanager-v1beta1 GRPC library for google-cloud-secretmanager com.google.cloud google-cloud-secretmanager-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml index 6d68f06363ef..01ff3dc41cad 100644 --- a/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml +++ b/java-secretmanager/grpc-google-cloud-secretmanager-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-secretmanager-v1beta2 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-secretmanager-v1beta2 GRPC library for google-cloud-secretmanager com.google.cloud google-cloud-secretmanager-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-secretmanager/pom.xml b/java-secretmanager/pom.xml index b24fb7d879ff..f493934da768 100644 --- a/java-secretmanager/pom.xml +++ b/java-secretmanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-secretmanager-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Cloud secretmanager Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,37 +30,37 @@ com.google.api.grpc proto-google-cloud-secretmanager-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-secretmanager-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-secretmanager-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-secretmanager-v1beta2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-secretmanager-v1beta2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-secretmanager-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.cloud google-cloud-secretmanager - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml b/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml index c19218ccce28..81c30d0e692a 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-secretmanager-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-secretmanager-v1 PROTO library for proto-google-cloud-secretmanager-v1 com.google.cloud google-cloud-secretmanager-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/pom.xml b/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/pom.xml index 03ac1d334610..ce0b85922856 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/pom.xml +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-secretmanager-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-secretmanager-v1beta1 Proto library for google-cloud-secretmanager com.google.cloud google-cloud-secretmanager-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml index 2cef43ad5efc..f6a9ab81d413 100644 --- a/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml +++ b/java-secretmanager/proto-google-cloud-secretmanager-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-secretmanager-v1beta2 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-secretmanager-v1beta2 Proto library for google-cloud-secretmanager com.google.cloud google-cloud-secretmanager-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-securesourcemanager/google-cloud-securesourcemanager-bom/pom.xml b/java-securesourcemanager/google-cloud-securesourcemanager-bom/pom.xml index 4c58e2409413..bfcd4f242bd3 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager-bom/pom.xml +++ b/java-securesourcemanager/google-cloud-securesourcemanager-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securesourcemanager-bom - 0.63.0 + 0.64.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-securesourcemanager - 0.63.0 + 0.64.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securesourcemanager-v1 - 0.63.0 + 0.64.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securesourcemanager-v1 - 0.63.0 + 0.64.0-SNAPSHOT diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml b/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml index bb1c86bf0935..bb7bfcac5cbe 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml +++ b/java-securesourcemanager/google-cloud-securesourcemanager/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-securesourcemanager - 0.63.0 + 0.64.0-SNAPSHOT jar Google Secure Source Manager API Secure Source Manager API Regionally deployed, single-tenant managed source code repository hosted on @@ -11,7 +11,7 @@ com.google.cloud google-cloud-securesourcemanager-parent - 0.63.0 + 0.64.0-SNAPSHOT google-cloud-securesourcemanager diff --git a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/Version.java b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/Version.java index bb78306ddd9f..07680c03b7b9 100644 --- a/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/Version.java +++ b/java-securesourcemanager/google-cloud-securesourcemanager/src/main/java/com/google/cloud/securesourcemanager/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-securesourcemanager:current} - static final String VERSION = "0.63.0"; + static final String VERSION = "0.64.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml b/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml index e6c488f4de8f..c782992837d7 100644 --- a/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml +++ b/java-securesourcemanager/grpc-google-cloud-securesourcemanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securesourcemanager-v1 - 0.63.0 + 0.64.0-SNAPSHOT grpc-google-cloud-securesourcemanager-v1 GRPC library for google-cloud-securesourcemanager com.google.cloud google-cloud-securesourcemanager-parent - 0.63.0 + 0.64.0-SNAPSHOT diff --git a/java-securesourcemanager/pom.xml b/java-securesourcemanager/pom.xml index f5ff044e1231..1579999f3153 100644 --- a/java-securesourcemanager/pom.xml +++ b/java-securesourcemanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securesourcemanager-parent pom - 0.63.0 + 0.64.0-SNAPSHOT Google Secure Source Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-securesourcemanager - 0.63.0 + 0.64.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securesourcemanager-v1 - 0.63.0 + 0.64.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securesourcemanager-v1 - 0.63.0 + 0.64.0-SNAPSHOT diff --git a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml index 4c248351750b..5ff07ec35489 100644 --- a/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml +++ b/java-securesourcemanager/proto-google-cloud-securesourcemanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securesourcemanager-v1 - 0.63.0 + 0.64.0-SNAPSHOT proto-google-cloud-securesourcemanager-v1 Proto library for google-cloud-securesourcemanager com.google.cloud google-cloud-securesourcemanager-parent - 0.63.0 + 0.64.0-SNAPSHOT diff --git a/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml b/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml index e47e346b506a..3c520a1b504c 100644 --- a/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml +++ b/java-security-private-ca/google-cloud-security-private-ca-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-security-private-ca-bom - 2.95.0 + 2.96.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-security-private-ca - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-security-private-ca-v1beta1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-security-private-ca-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-security-private-ca-v1beta1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-security-private-ca-v1 - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-security-private-ca/google-cloud-security-private-ca/pom.xml b/java-security-private-ca/google-cloud-security-private-ca/pom.xml index 6406d0a6098a..094da84730de 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/pom.xml +++ b/java-security-private-ca/google-cloud-security-private-ca/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-security-private-ca - 2.95.0 + 2.96.0-SNAPSHOT jar Google Certificate Authority Service simplifies the deployment and management of private CAs without managing infrastructure. com.google.cloud google-cloud-security-private-ca-parent - 2.95.0 + 2.96.0-SNAPSHOT google-cloud-security-private-ca diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/Version.java b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/Version.java index 66965afe8bfa..140d36947281 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/Version.java +++ b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-security-private-ca:current} - static final String VERSION = "2.95.0"; + static final String VERSION = "2.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/Version.java b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/Version.java index 19da91f51873..6837d62ef7bb 100644 --- a/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/Version.java +++ b/java-security-private-ca/google-cloud-security-private-ca/src/main/java/com/google/cloud/security/privateca/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-security-private-ca:current} - static final String VERSION = "2.95.0"; + static final String VERSION = "2.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml index dde628aab120..f5dfe78643b8 100644 --- a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml +++ b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1 - 2.95.0 + 2.96.0-SNAPSHOT grpc-google-cloud-security-private-ca-v1 GRPC library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml index e996da2437e8..66ac633f471c 100644 --- a/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml +++ b/java-security-private-ca/grpc-google-cloud-security-private-ca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-security-private-ca-v1beta1 - 2.95.0 + 2.96.0-SNAPSHOT grpc-google-cloud-security-private-ca-v1beta1 GRPC library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-security-private-ca/pom.xml b/java-security-private-ca/pom.xml index e95a1b532ea1..c83b5c815f12 100644 --- a/java-security-private-ca/pom.xml +++ b/java-security-private-ca/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-security-private-ca-parent pom - 2.95.0 + 2.96.0-SNAPSHOT Google Certificate Authority Service Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-security-private-ca - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-security-private-ca-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-security-private-ca-v1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-security-private-ca-v1beta1 - 2.95.0 + 2.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-security-private-ca-v1beta1 - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml index f148f21be99c..9b7ab3c91fbc 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1 - 2.95.0 + 2.96.0-SNAPSHOT proto-google-cloud-security-private-ca-v1 Proto library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml index 87b7a7586203..3a3a8114289e 100644 --- a/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml +++ b/java-security-private-ca/proto-google-cloud-security-private-ca-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-security-private-ca-v1beta1 - 2.95.0 + 2.96.0-SNAPSHOT proto-google-cloud-security-private-ca-v1beta1 Proto library for google-cloud-security-private-ca com.google.cloud google-cloud-security-private-ca-parent - 2.95.0 + 2.96.0-SNAPSHOT diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml b/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml index 62612b172c3d..3ced2dd3cfa5 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securitycenter-settings-bom - 0.96.0 + 0.97.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,17 +24,17 @@ com.google.cloud google-cloud-securitycenter-settings - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-settings-v1beta1 - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-settings-v1beta1 - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml b/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml index 4525e1cf2bea..a017f96570d9 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securitycenter-settings - 0.96.0 + 0.97.0-SNAPSHOT jar Google Security Command Center Settings API is the canonical security and data risk database for Google Cloud. Security Command Center enables you to understand your security and data attack surface by providing asset inventory, discovery, search, and management. com.google.cloud google-cloud-securitycenter-settings-parent - 0.96.0 + 0.97.0-SNAPSHOT google-cloud-securitycenter-settings diff --git a/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/stub/Version.java b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/stub/Version.java index 1d9128cefd91..10539547c030 100644 --- a/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/stub/Version.java +++ b/java-securitycenter-settings/google-cloud-securitycenter-settings/src/main/java/com/google/cloud/securitycenter/settings/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-securitycenter-settings:current} - static final String VERSION = "0.96.0"; + static final String VERSION = "0.97.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml b/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml index f30de3d2e101..73ce5bbcc510 100644 --- a/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml +++ b/java-securitycenter-settings/grpc-google-cloud-securitycenter-settings-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-settings-v1beta1 - 0.96.0 + 0.97.0-SNAPSHOT grpc-google-cloud-securitycenter-settings-v1beta1 GRPC library for grpc-google-cloud-securitycenter-settings-v1beta1 com.google.cloud google-cloud-securitycenter-settings-parent - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-securitycenter-settings/pom.xml b/java-securitycenter-settings/pom.xml index cb0a272f45c7..688518c8d8a0 100644 --- a/java-securitycenter-settings/pom.xml +++ b/java-securitycenter-settings/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securitycenter-settings-parent pom - 0.96.0 + 0.97.0-SNAPSHOT Google Security Command Center Settings API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-securitycenter-settings - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-settings-v1beta1 - 0.96.0 + 0.97.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-settings-v1beta1 - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml b/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml index 977225548625..60e8d09f85c1 100644 --- a/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml +++ b/java-securitycenter-settings/proto-google-cloud-securitycenter-settings-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-settings-v1beta1 - 0.96.0 + 0.97.0-SNAPSHOT proto-google-cloud-securitycenter-settings-v1beta1 PROTO library for proto-google-cloud-securitycenter-settings-v1beta1 com.google.cloud google-cloud-securitycenter-settings-parent - 0.96.0 + 0.97.0-SNAPSHOT diff --git a/java-securitycenter/google-cloud-securitycenter-bom/pom.xml b/java-securitycenter/google-cloud-securitycenter-bom/pom.xml index f9246c6800d3..139efbba74f1 100644 --- a/java-securitycenter/google-cloud-securitycenter-bom/pom.xml +++ b/java-securitycenter/google-cloud-securitycenter-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securitycenter-bom - 2.101.0 + 2.102.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,47 +24,47 @@ com.google.cloud google-cloud-securitycenter - 2.101.0 + 2.102.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 2.101.0 + 2.102.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 2.101.0 + 2.102.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 2.101.0 + 2.102.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v2 - 2.101.0 + 2.102.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1 - 2.101.0 + 2.102.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 2.101.0 + 2.102.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 2.101.0 + 2.102.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v2 - 2.101.0 + 2.102.0-SNAPSHOT diff --git a/java-securitycenter/google-cloud-securitycenter/pom.xml b/java-securitycenter/google-cloud-securitycenter/pom.xml index 10761db24a24..938beb0240a1 100644 --- a/java-securitycenter/google-cloud-securitycenter/pom.xml +++ b/java-securitycenter/google-cloud-securitycenter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securitycenter - 2.101.0 + 2.102.0-SNAPSHOT jar Google Cloud Security Command Center Java idiomatic client for Google Cloud Security Command Center com.google.cloud google-cloud-securitycenter-parent - 2.101.0 + 2.102.0-SNAPSHOT google-cloud-securitycenter diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/Version.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/Version.java index f66249556f46..39d33a3f510f 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/Version.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-securitycenter:current} - static final String VERSION = "2.101.0"; + static final String VERSION = "2.102.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/Version.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/Version.java index dc257ce95048..dd66826d0f9c 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/Version.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-securitycenter:current} - static final String VERSION = "2.101.0"; + static final String VERSION = "2.102.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/Version.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/Version.java index df70fa1c55a9..31a454bc9642 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/Version.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v1p1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-securitycenter:current} - static final String VERSION = "2.101.0"; + static final String VERSION = "2.102.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/stub/Version.java b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/stub/Version.java index 2a3d7c38e812..fd309ff4a233 100644 --- a/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/stub/Version.java +++ b/java-securitycenter/google-cloud-securitycenter/src/main/java/com/google/cloud/securitycenter/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-securitycenter:current} - static final String VERSION = "2.101.0"; + static final String VERSION = "2.102.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml index eda032171d4f..0577047a03ff 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 2.101.0 + 2.102.0-SNAPSHOT grpc-google-cloud-securitycenter-v1 GRPC library for grpc-google-cloud-securitycenter-v1 com.google.cloud google-cloud-securitycenter-parent - 2.101.0 + 2.102.0-SNAPSHOT diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml index cbfed9fc1790..6d285f85ece0 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 2.101.0 + 2.102.0-SNAPSHOT grpc-google-cloud-securitycenter-v1beta1 GRPC library for grpc-google-cloud-securitycenter-v1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.101.0 + 2.102.0-SNAPSHOT diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml index 3665ebee6816..39b23d2c33a8 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 2.101.0 + 2.102.0-SNAPSHOT grpc-google-cloud-securitycenter-v1p1beta1 GRPC library for grpc-google-cloud-securitycenter-v1p1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.101.0 + 2.102.0-SNAPSHOT diff --git a/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml b/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml index de3370d317e1..e7dce2ebc7b1 100644 --- a/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml +++ b/java-securitycenter/grpc-google-cloud-securitycenter-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycenter-v2 - 2.101.0 + 2.102.0-SNAPSHOT grpc-google-cloud-securitycenter-v2 GRPC library for google-cloud-securitycenter com.google.cloud google-cloud-securitycenter-parent - 2.101.0 + 2.102.0-SNAPSHOT diff --git a/java-securitycenter/pom.xml b/java-securitycenter/pom.xml index 6f106ce23921..140071b5f0d0 100644 --- a/java-securitycenter/pom.xml +++ b/java-securitycenter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securitycenter-parent pom - 2.101.0 + 2.102.0-SNAPSHOT Google Cloud Security Command Center Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,47 +30,47 @@ com.google.api.grpc proto-google-cloud-securitycenter-v1 - 2.101.0 + 2.102.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v2 - 2.101.0 + 2.102.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v2 - 2.101.0 + 2.102.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 2.101.0 + 2.102.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 2.101.0 + 2.102.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1 - 2.101.0 + 2.102.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1beta1 - 2.101.0 + 2.102.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycenter-v1p1beta1 - 2.101.0 + 2.102.0-SNAPSHOT com.google.cloud google-cloud-securitycenter - 2.101.0 + 2.102.0-SNAPSHOT diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml index ebf169e0eb50..55656642415a 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v1 - 2.101.0 + 2.102.0-SNAPSHOT proto-google-cloud-securitycenter-v1 PROTO library for proto-google-cloud-securitycenter-v1 com.google.cloud google-cloud-securitycenter-parent - 2.101.0 + 2.102.0-SNAPSHOT diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml index f6eee1b658b1..b95f4326ec7a 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v1beta1 - 2.101.0 + 2.102.0-SNAPSHOT proto-google-cloud-securitycenter-v1beta1 PROTO library for proto-google-cloud-securitycenter-v1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.101.0 + 2.102.0-SNAPSHOT diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml index 6db617000994..18f32697d423 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v1p1beta1 - 2.101.0 + 2.102.0-SNAPSHOT proto-google-cloud-securitycenter-v1p1beta1 PROTO library for proto-google-cloud-securitycenter-v1p1beta1 com.google.cloud google-cloud-securitycenter-parent - 2.101.0 + 2.102.0-SNAPSHOT diff --git a/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml b/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml index 0542f12f924d..6c12daa4edce 100644 --- a/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml +++ b/java-securitycenter/proto-google-cloud-securitycenter-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycenter-v2 - 2.101.0 + 2.102.0-SNAPSHOT proto-google-cloud-securitycenter-v2 Proto library for google-cloud-securitycenter com.google.cloud google-cloud-securitycenter-parent - 2.101.0 + 2.102.0-SNAPSHOT diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml b/java-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml index a893f75ed486..79674f3734e4 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securitycentermanagement-bom - 0.61.0 + 0.62.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-securitycentermanagement - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycentermanagement-v1 - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycentermanagement-v1 - 0.61.0 + 0.62.0-SNAPSHOT diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml b/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml index 6f7e22d5d9a1..8318f9d41df7 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securitycentermanagement - 0.61.0 + 0.62.0-SNAPSHOT jar Google Security Center Management API Security Center Management API Security Center Management API com.google.cloud google-cloud-securitycentermanagement-parent - 0.61.0 + 0.62.0-SNAPSHOT google-cloud-securitycentermanagement diff --git a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/Version.java b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/Version.java index 0f19097f1173..63a8b92ee3fa 100644 --- a/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/Version.java +++ b/java-securitycentermanagement/google-cloud-securitycentermanagement/src/main/java/com/google/cloud/securitycentermanagement/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-securitycentermanagement:current} - static final String VERSION = "0.61.0"; + static final String VERSION = "0.62.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml b/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml index e3001afe1919..8c56368b3105 100644 --- a/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml +++ b/java-securitycentermanagement/grpc-google-cloud-securitycentermanagement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securitycentermanagement-v1 - 0.61.0 + 0.62.0-SNAPSHOT grpc-google-cloud-securitycentermanagement-v1 GRPC library for google-cloud-securitycentermanagement com.google.cloud google-cloud-securitycentermanagement-parent - 0.61.0 + 0.62.0-SNAPSHOT diff --git a/java-securitycentermanagement/pom.xml b/java-securitycentermanagement/pom.xml index 46e6d2828ff6..aac04ece62d2 100644 --- a/java-securitycentermanagement/pom.xml +++ b/java-securitycentermanagement/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securitycentermanagement-parent pom - 0.61.0 + 0.62.0-SNAPSHOT Google Security Center Management API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-securitycentermanagement - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securitycentermanagement-v1 - 0.61.0 + 0.62.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securitycentermanagement-v1 - 0.61.0 + 0.62.0-SNAPSHOT diff --git a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml index 8caa46fdfe16..e7fb1a9dde2b 100644 --- a/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml +++ b/java-securitycentermanagement/proto-google-cloud-securitycentermanagement-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securitycentermanagement-v1 - 0.61.0 + 0.62.0-SNAPSHOT proto-google-cloud-securitycentermanagement-v1 Proto library for google-cloud-securitycentermanagement com.google.cloud google-cloud-securitycentermanagement-parent - 0.61.0 + 0.62.0-SNAPSHOT diff --git a/java-securityposture/google-cloud-securityposture-bom/pom.xml b/java-securityposture/google-cloud-securityposture-bom/pom.xml index a7755273a57a..239382973279 100644 --- a/java-securityposture/google-cloud-securityposture-bom/pom.xml +++ b/java-securityposture/google-cloud-securityposture-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-securityposture-bom - 0.58.0 + 0.59.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-securityposture - 0.58.0 + 0.59.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securityposture-v1 - 0.58.0 + 0.59.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securityposture-v1 - 0.58.0 + 0.59.0-SNAPSHOT diff --git a/java-securityposture/google-cloud-securityposture/pom.xml b/java-securityposture/google-cloud-securityposture/pom.xml index 2030da7d6297..046094af3f94 100644 --- a/java-securityposture/google-cloud-securityposture/pom.xml +++ b/java-securityposture/google-cloud-securityposture/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-securityposture - 0.58.0 + 0.59.0-SNAPSHOT jar Google Security Posture API Security Posture API Security Posture is a comprehensive framework of policy sets that empowers organizations to define, assess early, deploy, and monitor their security measures in a unified way and helps simplify governance and reduces administrative toil. com.google.cloud google-cloud-securityposture-parent - 0.58.0 + 0.59.0-SNAPSHOT google-cloud-securityposture diff --git a/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/stub/Version.java b/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/stub/Version.java index 9871a0d5ef1c..0fa61fccaf33 100644 --- a/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/stub/Version.java +++ b/java-securityposture/google-cloud-securityposture/src/main/java/com/google/cloud/securityposture/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-securityposture:current} - static final String VERSION = "0.58.0"; + static final String VERSION = "0.59.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml b/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml index 9c563ab15ab9..5a2024bbcb07 100644 --- a/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml +++ b/java-securityposture/grpc-google-cloud-securityposture-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-securityposture-v1 - 0.58.0 + 0.59.0-SNAPSHOT grpc-google-cloud-securityposture-v1 GRPC library for google-cloud-securityposture com.google.cloud google-cloud-securityposture-parent - 0.58.0 + 0.59.0-SNAPSHOT diff --git a/java-securityposture/pom.xml b/java-securityposture/pom.xml index 9b2b9d444f18..99d48de3a62a 100644 --- a/java-securityposture/pom.xml +++ b/java-securityposture/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-securityposture-parent pom - 0.58.0 + 0.59.0-SNAPSHOT Google Security Posture API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-securityposture - 0.58.0 + 0.59.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-securityposture-v1 - 0.58.0 + 0.59.0-SNAPSHOT com.google.api.grpc proto-google-cloud-securityposture-v1 - 0.58.0 + 0.59.0-SNAPSHOT diff --git a/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml b/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml index f9b8bffc6705..1a37aaa5332e 100644 --- a/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml +++ b/java-securityposture/proto-google-cloud-securityposture-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-securityposture-v1 - 0.58.0 + 0.59.0-SNAPSHOT proto-google-cloud-securityposture-v1 Proto library for google-cloud-securityposture com.google.cloud google-cloud-securityposture-parent - 0.58.0 + 0.59.0-SNAPSHOT diff --git a/java-service-control/google-cloud-service-control-bom/pom.xml b/java-service-control/google-cloud-service-control-bom/pom.xml index 57923dbec505..78e3aaddac61 100644 --- a/java-service-control/google-cloud-service-control-bom/pom.xml +++ b/java-service-control/google-cloud-service-control-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-service-control-bom - 1.93.0 + 1.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-service-control - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-control-v1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-control-v2 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-control-v1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-control-v2 - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-service-control/google-cloud-service-control/pom.xml b/java-service-control/google-cloud-service-control/pom.xml index fcb697029da1..b4ed081d3eed 100644 --- a/java-service-control/google-cloud-service-control/pom.xml +++ b/java-service-control/google-cloud-service-control/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-service-control - 1.93.0 + 1.94.0-SNAPSHOT jar Google Service Control API Service Control API is a foundational platform for creating, managing, securing, and consuming APIs and services across organizations. It is used by Google APIs, Cloud APIs, Cloud Endpoints, and API Gateway. com.google.cloud google-cloud-service-control-parent - 1.93.0 + 1.94.0-SNAPSHOT google-cloud-service-control diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/Version.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/Version.java index 407f0b13f584..0714e340e0e8 100644 --- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/Version.java +++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-service-control:current} - static final String VERSION = "1.93.0"; + static final String VERSION = "1.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/Version.java b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/Version.java index e2242a418217..7a0bacba5f82 100644 --- a/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/Version.java +++ b/java-service-control/google-cloud-service-control/src/main/java/com/google/api/servicecontrol/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-service-control:current} - static final String VERSION = "1.93.0"; + static final String VERSION = "1.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-service-control/grpc-google-cloud-service-control-v1/pom.xml b/java-service-control/grpc-google-cloud-service-control-v1/pom.xml index 8df63c233eeb..44402e7c261b 100644 --- a/java-service-control/grpc-google-cloud-service-control-v1/pom.xml +++ b/java-service-control/grpc-google-cloud-service-control-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-control-v1 - 1.93.0 + 1.94.0-SNAPSHOT grpc-google-cloud-service-control-v1 GRPC library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-service-control/grpc-google-cloud-service-control-v2/pom.xml b/java-service-control/grpc-google-cloud-service-control-v2/pom.xml index cec61319577d..255d161f0b55 100644 --- a/java-service-control/grpc-google-cloud-service-control-v2/pom.xml +++ b/java-service-control/grpc-google-cloud-service-control-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-control-v2 - 1.93.0 + 1.94.0-SNAPSHOT grpc-google-cloud-service-control-v2 GRPC library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-service-control/pom.xml b/java-service-control/pom.xml index 5960798b8e7c..3eeece427278 100644 --- a/java-service-control/pom.xml +++ b/java-service-control/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-service-control-parent pom - 1.93.0 + 1.94.0-SNAPSHOT Google Service Control API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-service-control - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-control-v2 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-control-v2 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-control-v1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-control-v1 - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-service-control/proto-google-cloud-service-control-v1/pom.xml b/java-service-control/proto-google-cloud-service-control-v1/pom.xml index effa4a4317b7..53d5b85c6ae8 100644 --- a/java-service-control/proto-google-cloud-service-control-v1/pom.xml +++ b/java-service-control/proto-google-cloud-service-control-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-control-v1 - 1.93.0 + 1.94.0-SNAPSHOT proto-google-cloud-service-control-v1 Proto library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-service-control/proto-google-cloud-service-control-v2/pom.xml b/java-service-control/proto-google-cloud-service-control-v2/pom.xml index 56720446ab2b..a683a98828f5 100644 --- a/java-service-control/proto-google-cloud-service-control-v2/pom.xml +++ b/java-service-control/proto-google-cloud-service-control-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-control-v2 - 1.93.0 + 1.94.0-SNAPSHOT proto-google-cloud-service-control-v2 Proto library for google-cloud-service-control com.google.cloud google-cloud-service-control-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-service-management/google-cloud-service-management-bom/pom.xml b/java-service-management/google-cloud-service-management-bom/pom.xml index d293d74ca301..106f3d270125 100644 --- a/java-service-management/google-cloud-service-management-bom/pom.xml +++ b/java-service-management/google-cloud-service-management-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-service-management-bom - 3.91.0 + 3.92.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-service-management - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-management-v1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-management-v1 - 3.91.0 + 3.92.0-SNAPSHOT diff --git a/java-service-management/google-cloud-service-management/pom.xml b/java-service-management/google-cloud-service-management/pom.xml index 982ac219edb0..2fa4d2427557 100644 --- a/java-service-management/google-cloud-service-management/pom.xml +++ b/java-service-management/google-cloud-service-management/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-service-management - 3.91.0 + 3.92.0-SNAPSHOT jar Google Service Management API is a foundational platform for creating, managing, securing, and consuming APIs and services across organizations. It is used by Google APIs, Cloud APIs, Cloud Endpoints, and API Gateway. Service Infrastructure provides a wide range of features to service consumers and service producers, including authentication, authorization, auditing, rate limiting, analytics, billing, logging, and monitoring. com.google.cloud google-cloud-service-management-parent - 3.91.0 + 3.92.0-SNAPSHOT google-cloud-service-management diff --git a/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/stub/Version.java b/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/stub/Version.java index 01b44901f30c..2bebc9e9216a 100644 --- a/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/stub/Version.java +++ b/java-service-management/google-cloud-service-management/src/main/java/com/google/cloud/api/servicemanagement/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-service-management:current} - static final String VERSION = "3.91.0"; + static final String VERSION = "3.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-service-management/grpc-google-cloud-service-management-v1/pom.xml b/java-service-management/grpc-google-cloud-service-management-v1/pom.xml index 5977a116ef1f..5fb5b23539c3 100644 --- a/java-service-management/grpc-google-cloud-service-management-v1/pom.xml +++ b/java-service-management/grpc-google-cloud-service-management-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-management-v1 - 3.91.0 + 3.92.0-SNAPSHOT grpc-google-cloud-service-management-v1 GRPC library for google-cloud-service-management com.google.cloud google-cloud-service-management-parent - 3.91.0 + 3.92.0-SNAPSHOT diff --git a/java-service-management/pom.xml b/java-service-management/pom.xml index a36856e0e498..4586c96697e5 100644 --- a/java-service-management/pom.xml +++ b/java-service-management/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-service-management-parent pom - 3.91.0 + 3.92.0-SNAPSHOT Google Service Management API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-service-management - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-management-v1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-management-v1 - 3.91.0 + 3.92.0-SNAPSHOT diff --git a/java-service-management/proto-google-cloud-service-management-v1/pom.xml b/java-service-management/proto-google-cloud-service-management-v1/pom.xml index 71d4408f9058..53cd26e0f3f2 100644 --- a/java-service-management/proto-google-cloud-service-management-v1/pom.xml +++ b/java-service-management/proto-google-cloud-service-management-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-management-v1 - 3.91.0 + 3.92.0-SNAPSHOT proto-google-cloud-service-management-v1 Proto library for google-cloud-service-management com.google.cloud google-cloud-service-management-parent - 3.91.0 + 3.92.0-SNAPSHOT diff --git a/java-service-usage/google-cloud-service-usage-bom/pom.xml b/java-service-usage/google-cloud-service-usage-bom/pom.xml index 4a64c19e2a83..a8d50448791c 100644 --- a/java-service-usage/google-cloud-service-usage-bom/pom.xml +++ b/java-service-usage/google-cloud-service-usage-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-service-usage-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-service-usage - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-usage-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-usage-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-usage-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-usage-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-service-usage/google-cloud-service-usage/pom.xml b/java-service-usage/google-cloud-service-usage/pom.xml index 2f737b471fd5..466841aff4fe 100644 --- a/java-service-usage/google-cloud-service-usage/pom.xml +++ b/java-service-usage/google-cloud-service-usage/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-service-usage - 2.93.0 + 2.94.0-SNAPSHOT jar Google Service Usage Service Usage is an infrastructure service of Google Cloud that lets you list and manage other APIs and services in your Cloud projects. com.google.cloud google-cloud-service-usage-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-service-usage diff --git a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/Version.java b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/Version.java index 1e5a771da6b3..7b96fbbb0957 100644 --- a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/Version.java +++ b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-service-usage:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/Version.java b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/Version.java index e03c41e8de8d..555fcd60367c 100644 --- a/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/Version.java +++ b/java-service-usage/google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-service-usage:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml b/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml index 6ed5e94c0702..ff4801b46480 100644 --- a/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml +++ b/java-service-usage/grpc-google-cloud-service-usage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-usage-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-service-usage-v1 GRPC library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml b/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml index 21ccdaf24246..218e1832ff2c 100644 --- a/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml +++ b/java-service-usage/grpc-google-cloud-service-usage-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-service-usage-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-service-usage-v1beta1 GRPC library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-service-usage/pom.xml b/java-service-usage/pom.xml index aa85f4dd0fe7..0f2195234ae1 100644 --- a/java-service-usage/pom.xml +++ b/java-service-usage/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-service-usage-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Service Usage Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-service-usage - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-usage-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-service-usage-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-usage-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-service-usage-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml b/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml index 7fdef360bb4a..3db23e7a1a7a 100644 --- a/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml +++ b/java-service-usage/proto-google-cloud-service-usage-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-usage-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-service-usage-v1 Proto library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml b/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml index 5f3cdd60239c..892be8911f4d 100644 --- a/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml +++ b/java-service-usage/proto-google-cloud-service-usage-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-service-usage-v1beta1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-service-usage-v1beta1 Proto library for google-cloud-service-usage com.google.cloud google-cloud-service-usage-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml b/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml index ff2e64f8a46a..f6e93a0c8b25 100644 --- a/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml +++ b/java-servicedirectory/google-cloud-servicedirectory-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-servicedirectory-bom - 2.94.0 + 2.95.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,27 +24,27 @@ com.google.cloud google-cloud-servicedirectory - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-servicedirectory-v1beta1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-servicedirectory-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-servicedirectory-v1beta1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-servicedirectory-v1 - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-servicedirectory/google-cloud-servicedirectory/pom.xml b/java-servicedirectory/google-cloud-servicedirectory/pom.xml index 2a258401d14a..6718a4346a2f 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/pom.xml +++ b/java-servicedirectory/google-cloud-servicedirectory/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-servicedirectory - 2.94.0 + 2.95.0-SNAPSHOT jar Google Cloud Service Directory Java idiomatic client for Google Cloud Service Directory com.google.cloud google-cloud-servicedirectory-parent - 2.94.0 + 2.95.0-SNAPSHOT google-cloud-servicedirectory diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/Version.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/Version.java index 7a15294cff94..9bd6b465c891 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/Version.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-servicedirectory:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/Version.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/Version.java index dfa82efe6fcd..a86d94beb8e7 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/Version.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-servicedirectory:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml index 8ba8bf5b232b..ce2a9966fabe 100644 --- a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml +++ b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1 - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-servicedirectory-v1 GRPC library for grpc-google-cloud-servicedirectory-v1 com.google.cloud google-cloud-servicedirectory-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml index 97e344f1a8ea..a002d39ff345 100644 --- a/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml +++ b/java-servicedirectory/grpc-google-cloud-servicedirectory-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-servicedirectory-v1beta1 - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-servicedirectory-v1beta1 GRPC library for grpc-google-cloud-servicedirectory-v1beta1 com.google.cloud google-cloud-servicedirectory-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-servicedirectory/pom.xml b/java-servicedirectory/pom.xml index fd5587bf51b1..1c21d271fa8b 100644 --- a/java-servicedirectory/pom.xml +++ b/java-servicedirectory/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-servicedirectory-parent pom - 2.94.0 + 2.95.0-SNAPSHOT Google Cloud Service Directory Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.api.grpc proto-google-cloud-servicedirectory-v1beta1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-servicedirectory-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-servicedirectory-v1beta1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-servicedirectory-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.cloud google-cloud-servicedirectory - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml index 5544a61cf9e5..350dfbfb070c 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-servicedirectory-v1 - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-servicedirectory-v1 PROTO library for proto-google-cloud-servicedirectory-v1 com.google.cloud google-cloud-servicedirectory-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml index 7d77bd53161f..c81324b70969 100644 --- a/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml +++ b/java-servicedirectory/proto-google-cloud-servicedirectory-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-servicedirectory-v1beta1 - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-servicedirectory-v1beta1 PROTO library for proto-google-cloud-servicedirectory-v1beta1 com.google.cloud google-cloud-servicedirectory-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-servicehealth/google-cloud-servicehealth-bom/pom.xml b/java-servicehealth/google-cloud-servicehealth-bom/pom.xml index 8dbe2068668e..70d317d7f7a1 100644 --- a/java-servicehealth/google-cloud-servicehealth-bom/pom.xml +++ b/java-servicehealth/google-cloud-servicehealth-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-servicehealth-bom - 0.60.0 + 0.61.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-servicehealth - 0.60.0 + 0.61.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-servicehealth-v1 - 0.60.0 + 0.61.0-SNAPSHOT com.google.api.grpc proto-google-cloud-servicehealth-v1 - 0.60.0 + 0.61.0-SNAPSHOT diff --git a/java-servicehealth/google-cloud-servicehealth/pom.xml b/java-servicehealth/google-cloud-servicehealth/pom.xml index c019888c2829..e94a71dbaefd 100644 --- a/java-servicehealth/google-cloud-servicehealth/pom.xml +++ b/java-servicehealth/google-cloud-servicehealth/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-servicehealth - 0.60.0 + 0.61.0-SNAPSHOT jar Google Service Health API Service Health API Personalized Service Health helps you gain visibility into disruptive events impacting Google Cloud products. com.google.cloud google-cloud-servicehealth-parent - 0.60.0 + 0.61.0-SNAPSHOT google-cloud-servicehealth diff --git a/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/Version.java b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/Version.java index 3caaa0eaf36e..166c18d539df 100644 --- a/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/Version.java +++ b/java-servicehealth/google-cloud-servicehealth/src/main/java/com/google/cloud/servicehealth/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-servicehealth:current} - static final String VERSION = "0.60.0"; + static final String VERSION = "0.61.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml b/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml index 2f42b0ae6a37..1fa6e1888c70 100644 --- a/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml +++ b/java-servicehealth/grpc-google-cloud-servicehealth-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-servicehealth-v1 - 0.60.0 + 0.61.0-SNAPSHOT grpc-google-cloud-servicehealth-v1 GRPC library for google-cloud-servicehealth com.google.cloud google-cloud-servicehealth-parent - 0.60.0 + 0.61.0-SNAPSHOT diff --git a/java-servicehealth/pom.xml b/java-servicehealth/pom.xml index 74adbc8246e4..356ac3727437 100644 --- a/java-servicehealth/pom.xml +++ b/java-servicehealth/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-servicehealth-parent pom - 0.60.0 + 0.61.0-SNAPSHOT Google Service Health API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-servicehealth - 0.60.0 + 0.61.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-servicehealth-v1 - 0.60.0 + 0.61.0-SNAPSHOT com.google.api.grpc proto-google-cloud-servicehealth-v1 - 0.60.0 + 0.61.0-SNAPSHOT diff --git a/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml b/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml index 457cbeefbe4f..7f764bf53719 100644 --- a/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml +++ b/java-servicehealth/proto-google-cloud-servicehealth-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-servicehealth-v1 - 0.60.0 + 0.61.0-SNAPSHOT proto-google-cloud-servicehealth-v1 Proto library for google-cloud-servicehealth com.google.cloud google-cloud-servicehealth-parent - 0.60.0 + 0.61.0-SNAPSHOT diff --git a/java-shell/google-cloud-shell-bom/pom.xml b/java-shell/google-cloud-shell-bom/pom.xml index 764e5efc0575..202b3cf1541f 100644 --- a/java-shell/google-cloud-shell-bom/pom.xml +++ b/java-shell/google-cloud-shell-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-shell-bom - 2.92.0 + 2.93.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-shell - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-shell-v1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-shell-v1 - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-shell/google-cloud-shell/pom.xml b/java-shell/google-cloud-shell/pom.xml index d660bce630f5..5a37b26c8b8b 100644 --- a/java-shell/google-cloud-shell/pom.xml +++ b/java-shell/google-cloud-shell/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-shell - 2.92.0 + 2.93.0-SNAPSHOT jar Google Cloud Shell Cloud Shell is an interactive shell environment for Google Cloud that makes it easy for you to learn and experiment with Google Cloud and manage your projects and resources from your web browser. com.google.cloud google-cloud-shell-parent - 2.92.0 + 2.93.0-SNAPSHOT google-cloud-shell diff --git a/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/Version.java b/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/Version.java index 9f9c03d16cee..738c7374c6db 100644 --- a/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/Version.java +++ b/java-shell/google-cloud-shell/src/main/java/com/google/cloud/shell/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-shell:current} - static final String VERSION = "2.92.0"; + static final String VERSION = "2.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shell/grpc-google-cloud-shell-v1/pom.xml b/java-shell/grpc-google-cloud-shell-v1/pom.xml index 9b76b733c64d..c7aa76d25a63 100644 --- a/java-shell/grpc-google-cloud-shell-v1/pom.xml +++ b/java-shell/grpc-google-cloud-shell-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-shell-v1 - 2.92.0 + 2.93.0-SNAPSHOT grpc-google-cloud-shell-v1 GRPC library for google-cloud-shell com.google.cloud google-cloud-shell-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-shell/pom.xml b/java-shell/pom.xml index e00fd2bf5890..1cc235aa932d 100644 --- a/java-shell/pom.xml +++ b/java-shell/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-shell-parent pom - 2.92.0 + 2.93.0-SNAPSHOT Google Cloud Shell Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-shell - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-shell-v1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-shell-v1 - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-shell/proto-google-cloud-shell-v1/pom.xml b/java-shell/proto-google-cloud-shell-v1/pom.xml index 9f8bbb4961b7..51fb930b2aef 100644 --- a/java-shell/proto-google-cloud-shell-v1/pom.xml +++ b/java-shell/proto-google-cloud-shell-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-shell-v1 - 2.92.0 + 2.93.0-SNAPSHOT proto-google-cloud-shell-v1 Proto library for google-cloud-shell com.google.cloud google-cloud-shell-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-shopping-css/google-shopping-css-bom/pom.xml b/java-shopping-css/google-shopping-css-bom/pom.xml index a42e7f995333..aa0b6e33f081 100644 --- a/java-shopping-css/google-shopping-css-bom/pom.xml +++ b/java-shopping-css/google-shopping-css-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.shopping google-shopping-css-bom - 0.61.0 + 0.62.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.shopping google-shopping-css - 0.61.0 + 0.62.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-css-v1 - 0.61.0 + 0.62.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-css-v1 - 0.61.0 + 0.62.0-SNAPSHOT diff --git a/java-shopping-css/google-shopping-css/pom.xml b/java-shopping-css/google-shopping-css/pom.xml index ea156233074e..c49539e7bf97 100644 --- a/java-shopping-css/google-shopping-css/pom.xml +++ b/java-shopping-css/google-shopping-css/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-css - 0.61.0 + 0.62.0-SNAPSHOT jar Google CSS API CSS API The CSS API is used to manage your CSS and control your CSS Products portfolio com.google.shopping google-shopping-css-parent - 0.61.0 + 0.62.0-SNAPSHOT google-shopping-css diff --git a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/Version.java b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/Version.java index 301a9871f664..575c95be6417 100644 --- a/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/Version.java +++ b/java-shopping-css/google-shopping-css/src/main/java/com/google/shopping/css/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-css:current} - static final String VERSION = "0.61.0"; + static final String VERSION = "0.62.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-css/grpc-google-shopping-css-v1/pom.xml b/java-shopping-css/grpc-google-shopping-css-v1/pom.xml index 38d0fb448a93..b751fb4f2194 100644 --- a/java-shopping-css/grpc-google-shopping-css-v1/pom.xml +++ b/java-shopping-css/grpc-google-shopping-css-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-css-v1 - 0.61.0 + 0.62.0-SNAPSHOT grpc-google-shopping-css-v1 GRPC library for google-shopping-css com.google.shopping google-shopping-css-parent - 0.61.0 + 0.62.0-SNAPSHOT diff --git a/java-shopping-css/pom.xml b/java-shopping-css/pom.xml index 701332faf615..4df5aee727c7 100644 --- a/java-shopping-css/pom.xml +++ b/java-shopping-css/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-css-parent pom - 0.61.0 + 0.62.0-SNAPSHOT Google CSS API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.shopping google-shopping-css - 0.61.0 + 0.62.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-css-v1 - 0.61.0 + 0.62.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-css-v1 - 0.61.0 + 0.62.0-SNAPSHOT diff --git a/java-shopping-css/proto-google-shopping-css-v1/pom.xml b/java-shopping-css/proto-google-shopping-css-v1/pom.xml index 8a3b3e5ec48f..eafb9a88987c 100644 --- a/java-shopping-css/proto-google-shopping-css-v1/pom.xml +++ b/java-shopping-css/proto-google-shopping-css-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-css-v1 - 0.61.0 + 0.62.0-SNAPSHOT proto-google-shopping-css-v1 Proto library for google-shopping-css com.google.shopping google-shopping-css-parent - 0.61.0 + 0.62.0-SNAPSHOT diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml b/java-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml index e1d43a0c2e1a..d44c0aa954da 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-accounts-bom - 1.21.0 + 1.22.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.shopping google-shopping-merchant-accounts - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1 - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml index 08a3f26ae83c..648febd54e21 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-accounts - 1.21.0 + 1.22.0-SNAPSHOT jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-accounts-parent - 1.21.0 + 1.22.0-SNAPSHOT google-shopping-merchant-accounts diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/Version.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/Version.java index 920548efc60b..be998fa4cf08 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/Version.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-accounts:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/Version.java b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/Version.java index 9d4bd43f516c..d7cf96b776be 100644 --- a/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/Version.java +++ b/java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-accounts:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/pom.xml b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/pom.xml index fb76a1c9a46b..86e10346f971 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/pom.xml +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1 - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-accounts-v1 GRPC library for google-shopping-merchant-accounts com.google.shopping google-shopping-merchant-accounts-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml index 9686de489642..f0af3f22ce0c 100644 --- a/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml +++ b/java-shopping-merchant-accounts/grpc-google-shopping-merchant-accounts-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1beta - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-accounts-v1beta GRPC library for google-shopping-merchant-accounts com.google.shopping google-shopping-merchant-accounts-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-accounts/pom.xml b/java-shopping-merchant-accounts/pom.xml index 6b361a8d2a74..4c41d490d59c 100644 --- a/java-shopping-merchant-accounts/pom.xml +++ b/java-shopping-merchant-accounts/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-accounts-parent pom - 1.21.0 + 1.22.0-SNAPSHOT Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.shopping google-shopping-merchant-accounts - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-accounts-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1beta - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/pom.xml b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/pom.xml index 0ee584aec11a..e4740cd65570 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/pom.xml +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1 - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-accounts-v1 Proto library for google-shopping-merchant-accounts com.google.shopping google-shopping-merchant-accounts-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml index 641c8e75df31..e5277c8cc53b 100644 --- a/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml +++ b/java-shopping-merchant-accounts/proto-google-shopping-merchant-accounts-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-accounts-v1beta - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-accounts-v1beta Proto library for google-shopping-merchant-accounts com.google.shopping google-shopping-merchant-accounts-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml b/java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml index 1a99fd459752..958515c6092d 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-conversions-bom - 1.21.0 + 1.22.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.shopping google-shopping-merchant-conversions - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1 - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml index b75bdbf14411..b056b2d2f87f 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-conversions - 1.21.0 + 1.22.0-SNAPSHOT jar Google Merchant Conversions API Merchant Conversions API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-conversions-parent - 1.21.0 + 1.22.0-SNAPSHOT google-shopping-merchant-conversions diff --git a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1/stub/Version.java b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1/stub/Version.java index d65dcc13b50d..4382f7a37b4b 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1/stub/Version.java +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-conversions:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/stub/Version.java b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/stub/Version.java index 340ba6aa2f64..840b3426837b 100644 --- a/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/stub/Version.java +++ b/java-shopping-merchant-conversions/google-shopping-merchant-conversions/src/main/java/com/google/shopping/merchant/conversions/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-conversions:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1/pom.xml b/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1/pom.xml index 20f4524f385b..23c522f5d2cb 100644 --- a/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1/pom.xml +++ b/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1 - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-conversions-v1 GRPC library for google-shopping-merchant-conversions com.google.shopping google-shopping-merchant-conversions-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml b/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml index 58deca3e764e..bc7f5930d1d4 100644 --- a/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml +++ b/java-shopping-merchant-conversions/grpc-google-shopping-merchant-conversions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1beta - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-conversions-v1beta GRPC library for google-shopping-merchant-conversions com.google.shopping google-shopping-merchant-conversions-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-conversions/pom.xml b/java-shopping-merchant-conversions/pom.xml index a063f74b1fe4..cd1613205294 100644 --- a/java-shopping-merchant-conversions/pom.xml +++ b/java-shopping-merchant-conversions/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-conversions-parent pom - 1.21.0 + 1.22.0-SNAPSHOT Google Merchant Conversions API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.shopping google-shopping-merchant-conversions - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-conversions-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1beta - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1/pom.xml b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1/pom.xml index 292b5d9c439a..3be74c855f9e 100644 --- a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1/pom.xml +++ b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1 - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-conversions-v1 Proto library for google-shopping-merchant-conversions com.google.shopping google-shopping-merchant-conversions-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml index c5caf300863e..33e9e4a53378 100644 --- a/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml +++ b/java-shopping-merchant-conversions/proto-google-shopping-merchant-conversions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-conversions-v1beta - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-conversions-v1beta Proto library for google-shopping-merchant-conversions com.google.shopping google-shopping-merchant-conversions-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml b/java-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml index 8a043348faea..c051169271ce 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-datasources-bom - 1.21.0 + 1.22.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.shopping google-shopping-merchant-datasources - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1 - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml index db90774b888d..06e75d00d2d0 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-datasources - 1.21.0 + 1.22.0-SNAPSHOT jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-datasources-parent - 1.21.0 + 1.22.0-SNAPSHOT google-shopping-merchant-datasources diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/stub/Version.java b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/stub/Version.java index c1acff1ff4cd..a07d0d074748 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/stub/Version.java +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-datasources:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/stub/Version.java b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/stub/Version.java index 5fbbc16d29e1..4acd57a2ed75 100644 --- a/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/stub/Version.java +++ b/java-shopping-merchant-datasources/google-shopping-merchant-datasources/src/main/java/com/google/shopping/merchant/datasources/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-datasources:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1/pom.xml b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1/pom.xml index 99114d58fab9..76e4d37e09f1 100644 --- a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1/pom.xml +++ b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1 - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-datasources-v1 GRPC library for google-shopping-merchant-datasources com.google.shopping google-shopping-merchant-datasources-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml index 2a0f6faacccb..7efbb58456d0 100644 --- a/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml +++ b/java-shopping-merchant-datasources/grpc-google-shopping-merchant-datasources-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1beta - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-datasources-v1beta GRPC library for google-shopping-merchant-datasources com.google.shopping google-shopping-merchant-datasources-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-datasources/pom.xml b/java-shopping-merchant-datasources/pom.xml index eae7cbd46161..f9f2944a76d5 100644 --- a/java-shopping-merchant-datasources/pom.xml +++ b/java-shopping-merchant-datasources/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-datasources-parent pom - 1.21.0 + 1.22.0-SNAPSHOT Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.shopping google-shopping-merchant-datasources - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-datasources-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1beta - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/pom.xml b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/pom.xml index 3b0aa6759444..758ef0c9412b 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/pom.xml +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1 - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-datasources-v1 Proto library for google-shopping-merchant-datasources com.google.shopping google-shopping-merchant-datasources-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml index b3f51244ea7d..2fe675e2abce 100644 --- a/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml +++ b/java-shopping-merchant-datasources/proto-google-shopping-merchant-datasources-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-datasources-v1beta - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-datasources-v1beta Proto library for google-shopping-merchant-datasources com.google.shopping google-shopping-merchant-datasources-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories-bom/pom.xml b/java-shopping-merchant-inventories/google-shopping-merchant-inventories-bom/pom.xml index 7ea306aead1c..3410aaee456e 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories-bom/pom.xml +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.shopping google-shopping-merchant-inventories-bom - 1.21.0 + 1.22.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.shopping google-shopping-merchant-inventories - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1 - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml index 6b1d287db151..5d516a0f8023 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-inventories - 1.21.0 + 1.22.0-SNAPSHOT jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-inventories-parent - 1.21.0 + 1.22.0-SNAPSHOT google-shopping-merchant-inventories diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/stub/Version.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/stub/Version.java index 8330d61a6cd7..6e75b21fa985 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/stub/Version.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-inventories:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/Version.java b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/Version.java index 6b8e7e444685..98b875e48a78 100644 --- a/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/Version.java +++ b/java-shopping-merchant-inventories/google-shopping-merchant-inventories/src/main/java/com/google/shopping/merchant/inventories/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-inventories:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1/pom.xml b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1/pom.xml index fa8567931d4f..2dc31ef2c437 100644 --- a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1/pom.xml +++ b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1 - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-inventories-v1 GRPC library for google-shopping-merchant-inventories com.google.shopping google-shopping-merchant-inventories-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml index b2c74d175677..b4cc5822c228 100644 --- a/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml +++ b/java-shopping-merchant-inventories/grpc-google-shopping-merchant-inventories-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1beta - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-inventories-v1beta GRPC library for google-shopping-merchant-inventories com.google.shopping google-shopping-merchant-inventories-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-inventories/pom.xml b/java-shopping-merchant-inventories/pom.xml index 817187ab33ef..5ad665a704f7 100644 --- a/java-shopping-merchant-inventories/pom.xml +++ b/java-shopping-merchant-inventories/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-inventories-parent pom - 1.21.0 + 1.22.0-SNAPSHOT Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.shopping google-shopping-merchant-inventories - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-inventories-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1beta - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/pom.xml b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/pom.xml index 76d695fe26eb..8030967ec4c2 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/pom.xml +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1 - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-inventories-v1 Proto library for google-shopping-merchant-inventories com.google.shopping google-shopping-merchant-inventories-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml index 104ad2264d23..758ee00bab56 100644 --- a/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml +++ b/java-shopping-merchant-inventories/proto-google-shopping-merchant-inventories-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-inventories-v1beta - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-inventories-v1beta Proto library for google-shopping-merchant-inventories com.google.shopping google-shopping-merchant-inventories-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp-bom/pom.xml b/java-shopping-merchant-lfp/google-shopping-merchant-lfp-bom/pom.xml index 97a1dde1165e..67958010c4c1 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp-bom/pom.xml +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-lfp-bom - 1.21.0 + 1.22.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.shopping google-shopping-merchant-lfp - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1 - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml index 094d4b6695db..23d75df2dd80 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-lfp - 1.21.0 + 1.22.0-SNAPSHOT jar Google Merchant LFP API Merchant LFP API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-lfp-parent - 1.21.0 + 1.22.0-SNAPSHOT google-shopping-merchant-lfp diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/Version.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/Version.java index 63cd8fc1edc6..4d71a61d4978 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/Version.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-lfp:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/Version.java b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/Version.java index 785082db2462..165ef3d8b8b5 100644 --- a/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/Version.java +++ b/java-shopping-merchant-lfp/google-shopping-merchant-lfp/src/main/java/com/google/shopping/merchant/lfp/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-lfp:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/pom.xml b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/pom.xml index f8a9c723b0ef..94c4cdbc50cf 100644 --- a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/pom.xml +++ b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1 - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-lfp-v1 GRPC library for google-shopping-merchant-lfp com.google.shopping google-shopping-merchant-lfp-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml index 625f2a572249..a7e7c9f9b5fb 100644 --- a/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml +++ b/java-shopping-merchant-lfp/grpc-google-shopping-merchant-lfp-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1beta - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-lfp-v1beta GRPC library for google-shopping-merchant-lfp com.google.shopping google-shopping-merchant-lfp-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-lfp/pom.xml b/java-shopping-merchant-lfp/pom.xml index ef36c174919b..b40b334533d4 100644 --- a/java-shopping-merchant-lfp/pom.xml +++ b/java-shopping-merchant-lfp/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-lfp-parent pom - 1.21.0 + 1.22.0-SNAPSHOT Google Merchant LFP API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.shopping google-shopping-merchant-lfp - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-lfp-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1beta - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/pom.xml b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/pom.xml index 366bdfa8c8ae..668a61788130 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/pom.xml +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1 - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-lfp-v1 Proto library for google-shopping-merchant-lfp com.google.shopping google-shopping-merchant-lfp-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml index 1fb40ee821b0..2d595e897d3f 100644 --- a/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml +++ b/java-shopping-merchant-lfp/proto-google-shopping-merchant-lfp-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-lfp-v1beta - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-lfp-v1beta Proto library for google-shopping-merchant-lfp com.google.shopping google-shopping-merchant-lfp-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml b/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml index 99f1ad6f945e..232aa65fc291 100644 --- a/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml +++ b/java-shopping-merchant-notifications/google-shopping-merchant-notifications-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-notifications-bom - 1.21.0 + 1.22.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.shopping google-shopping-merchant-notifications - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1 - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml index 85805aad3482..a9535d8ad031 100644 --- a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml +++ b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-notifications - 1.21.0 + 1.22.0-SNAPSHOT jar Google Merchant Notifications API Merchant Notifications API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-notifications-parent - 1.21.0 + 1.22.0-SNAPSHOT google-shopping-merchant-notifications diff --git a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1/stub/Version.java b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1/stub/Version.java index fdff320c0785..394fd8bc39e3 100644 --- a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1/stub/Version.java +++ b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-notifications:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1beta/stub/Version.java b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1beta/stub/Version.java index 16f081d52fd0..f07f3d41978f 100644 --- a/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1beta/stub/Version.java +++ b/java-shopping-merchant-notifications/google-shopping-merchant-notifications/src/main/java/com/google/shopping/merchant/notifications/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-notifications:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1/pom.xml b/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1/pom.xml index ab55f8d4e08b..d52abe988933 100644 --- a/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1/pom.xml +++ b/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1 - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-notifications-v1 GRPC library for google-shopping-merchant-notifications com.google.shopping google-shopping-merchant-notifications-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml b/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml index 84235dd598e9..c3bba654ad88 100644 --- a/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml +++ b/java-shopping-merchant-notifications/grpc-google-shopping-merchant-notifications-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1beta - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-notifications-v1beta GRPC library for google-shopping-merchant-notifications com.google.shopping google-shopping-merchant-notifications-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-notifications/pom.xml b/java-shopping-merchant-notifications/pom.xml index c168906d8cb0..aa01aae9e505 100644 --- a/java-shopping-merchant-notifications/pom.xml +++ b/java-shopping-merchant-notifications/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-notifications-parent pom - 1.21.0 + 1.22.0-SNAPSHOT Google Merchant Notifications API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.shopping google-shopping-merchant-notifications - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-notifications-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1beta - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/pom.xml b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/pom.xml index 5d7cc62f977a..b1a8400603ed 100644 --- a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/pom.xml +++ b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1 - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-notifications-v1 Proto library for google-shopping-merchant-notifications com.google.shopping google-shopping-merchant-notifications-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml index 0e732743ef08..9f07579ac0db 100644 --- a/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml +++ b/java-shopping-merchant-notifications/proto-google-shopping-merchant-notifications-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-notifications-v1beta - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-notifications-v1beta Proto library for google-shopping-merchant-notifications com.google.shopping google-shopping-merchant-notifications-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio-bom/pom.xml b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio-bom/pom.xml index bc6bcb7cac5c..1457d59c85c6 100644 --- a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio-bom/pom.xml +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-productstudio-bom - 0.33.0 + 0.34.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.shopping google-shopping-merchant-productstudio - 0.33.0 + 0.34.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-productstudio-v1alpha - 0.33.0 + 0.34.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-productstudio-v1alpha - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/pom.xml b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/pom.xml index 5a5ed0843de2..b50d7d5ce250 100644 --- a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/pom.xml +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-productstudio - 0.33.0 + 0.34.0-SNAPSHOT jar Google Merchant API Merchant API Programmatically manage your products. com.google.shopping google-shopping-merchant-productstudio-parent - 0.33.0 + 0.34.0-SNAPSHOT google-shopping-merchant-productstudio diff --git a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/Version.java b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/Version.java index 9c84b468c8e6..54cd4605fc3b 100644 --- a/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/Version.java +++ b/java-shopping-merchant-product-studio/google-shopping-merchant-productstudio/src/main/java/com/google/shopping/merchant/productstudio/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-productstudio:current} - static final String VERSION = "0.33.0"; + static final String VERSION = "0.34.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/pom.xml b/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/pom.xml index a109ed5f900f..b86fb8add7e9 100644 --- a/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/pom.xml +++ b/java-shopping-merchant-product-studio/grpc-google-shopping-merchant-productstudio-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-productstudio-v1alpha - 0.33.0 + 0.34.0-SNAPSHOT grpc-google-shopping-merchant-productstudio-v1alpha GRPC library for google-shopping-merchant-productstudio com.google.shopping google-shopping-merchant-productstudio-parent - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-shopping-merchant-product-studio/pom.xml b/java-shopping-merchant-product-studio/pom.xml index 57ff20f15b20..4a10fc5a24eb 100644 --- a/java-shopping-merchant-product-studio/pom.xml +++ b/java-shopping-merchant-product-studio/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-productstudio-parent pom - 0.33.0 + 0.34.0-SNAPSHOT Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.shopping google-shopping-merchant-productstudio - 0.33.0 + 0.34.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-productstudio-v1alpha - 0.33.0 + 0.34.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-productstudio-v1alpha - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/pom.xml b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/pom.xml index d09df4524fb3..aa6e539487fa 100644 --- a/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/pom.xml +++ b/java-shopping-merchant-product-studio/proto-google-shopping-merchant-productstudio-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-productstudio-v1alpha - 0.33.0 + 0.34.0-SNAPSHOT proto-google-shopping-merchant-productstudio-v1alpha Proto library for google-shopping-merchant-productstudio com.google.shopping google-shopping-merchant-productstudio-parent - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml b/java-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml index 1d2b717007bc..f86cdeb321a9 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml +++ b/java-shopping-merchant-products/google-shopping-merchant-products-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-products-bom - 1.21.0 + 1.22.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.shopping google-shopping-merchant-products - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1 - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml b/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml index 41c21cc81e1d..2065563575cd 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml +++ b/java-shopping-merchant-products/google-shopping-merchant-products/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-products - 1.21.0 + 1.22.0-SNAPSHOT jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-products-parent - 1.21.0 + 1.22.0-SNAPSHOT google-shopping-merchant-products diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/stub/Version.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/stub/Version.java index 8473a069f88a..983184a0b503 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/stub/Version.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-products:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/Version.java b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/Version.java index 51710c40ac75..5100862cb4ab 100644 --- a/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/Version.java +++ b/java-shopping-merchant-products/google-shopping-merchant-products/src/main/java/com/google/shopping/merchant/products/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-products:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1/pom.xml b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1/pom.xml index 1a3ffd806635..71837427a2fb 100644 --- a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1/pom.xml +++ b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1 - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-products-v1 GRPC library for google-shopping-merchant-products com.google.shopping google-shopping-merchant-products-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml index bee026862421..0c75e5bbdc81 100644 --- a/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml +++ b/java-shopping-merchant-products/grpc-google-shopping-merchant-products-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1beta - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-products-v1beta GRPC library for google-shopping-merchant-products com.google.shopping google-shopping-merchant-products-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-products/pom.xml b/java-shopping-merchant-products/pom.xml index 7a6d63fc411a..acedad01ed7b 100644 --- a/java-shopping-merchant-products/pom.xml +++ b/java-shopping-merchant-products/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-products-parent pom - 1.21.0 + 1.22.0-SNAPSHOT Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.shopping google-shopping-merchant-products - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-products-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1beta - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/pom.xml b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/pom.xml index f0c7312a420f..b67eebb1b91e 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/pom.xml +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1 - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-products-v1 Proto library for google-shopping-merchant-products com.google.shopping google-shopping-merchant-products-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml index a5212cd273a9..6b6efe2b6bae 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-products-v1beta - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-products-v1beta Proto library for google-shopping-merchant-products com.google.shopping google-shopping-merchant-products-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml b/java-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml index 50b987741346..b0897cd76a0a 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-promotions-bom - 1.21.0 + 1.22.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.shopping google-shopping-merchant-promotions - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1 - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml index afbc892c1901..93d6a4e6a8c8 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-promotions - 1.21.0 + 1.22.0-SNAPSHOT jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-promotions-parent - 1.21.0 + 1.22.0-SNAPSHOT google-shopping-merchant-promotions diff --git a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1/stub/Version.java b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1/stub/Version.java index 177feec499a8..49bb65192250 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1/stub/Version.java +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-promotions:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/stub/Version.java b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/stub/Version.java index df5814304a9d..6cb4c0375389 100644 --- a/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/stub/Version.java +++ b/java-shopping-merchant-promotions/google-shopping-merchant-promotions/src/main/java/com/google/shopping/merchant/promotions/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-promotions:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1/pom.xml b/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1/pom.xml index 297f0e982bb3..71fd83acef91 100644 --- a/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1/pom.xml +++ b/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1 - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-promotions-v1 GRPC library for google-shopping-merchant-promotions com.google.shopping google-shopping-merchant-promotions-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml b/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml index 18d6ecdeadd2..d489d2f570e9 100644 --- a/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml +++ b/java-shopping-merchant-promotions/grpc-google-shopping-merchant-promotions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1beta - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-promotions-v1beta GRPC library for google-shopping-merchant-promotions com.google.shopping google-shopping-merchant-promotions-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-promotions/pom.xml b/java-shopping-merchant-promotions/pom.xml index 9895c0c5fa5b..b5101275b817 100644 --- a/java-shopping-merchant-promotions/pom.xml +++ b/java-shopping-merchant-promotions/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-promotions-parent pom - 1.21.0 + 1.22.0-SNAPSHOT Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.shopping google-shopping-merchant-promotions - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-promotions-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1beta - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1/pom.xml b/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1/pom.xml index fec7113ad36c..8a803708daf9 100644 --- a/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1/pom.xml +++ b/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1 - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-promotions-v1 Proto library for google-shopping-merchant-promotions com.google.shopping google-shopping-merchant-promotions-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml b/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml index c2fd344d5c0b..ec83ea299d20 100644 --- a/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml +++ b/java-shopping-merchant-promotions/proto-google-shopping-merchant-promotions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-promotions-v1beta - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-promotions-v1beta Proto library for google-shopping-merchant-promotions com.google.shopping google-shopping-merchant-promotions-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota-bom/pom.xml b/java-shopping-merchant-quota/google-shopping-merchant-quota-bom/pom.xml index ab72dc77dc6e..ee4d796ee087 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota-bom/pom.xml +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-quota-bom - 1.21.0 + 1.22.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.shopping google-shopping-merchant-quota - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1 - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml b/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml index 61b740d442e0..cbefadd8c8d0 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-quota - 1.21.0 + 1.22.0-SNAPSHOT jar Google Merchant Quota API Merchant Quota API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-quota-parent - 1.21.0 + 1.22.0-SNAPSHOT google-shopping-merchant-quota diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/stub/Version.java b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/stub/Version.java index b99b9ca48fa1..3c62596a5a9c 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/stub/Version.java +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-quota:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/stub/Version.java b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/stub/Version.java index 31c65cdc08b4..bfa96856d7b2 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/stub/Version.java +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-quota:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1/pom.xml b/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1/pom.xml index 95467bca941a..66d5e430015c 100644 --- a/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1/pom.xml +++ b/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1 - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-quota-v1 GRPC library for google-shopping-merchant-quota com.google.shopping google-shopping-merchant-quota-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml b/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml index 4e1bfd6624c8..d7711cb2299e 100644 --- a/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml +++ b/java-shopping-merchant-quota/grpc-google-shopping-merchant-quota-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1beta - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-quota-v1beta GRPC library for google-shopping-merchant-quota com.google.shopping google-shopping-merchant-quota-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-quota/pom.xml b/java-shopping-merchant-quota/pom.xml index faf61d241342..dbeeff67d98f 100644 --- a/java-shopping-merchant-quota/pom.xml +++ b/java-shopping-merchant-quota/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-quota-parent pom - 1.21.0 + 1.22.0-SNAPSHOT Google Merchant Quota API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.shopping google-shopping-merchant-quota - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-quota-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1beta - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/pom.xml b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/pom.xml index 10f55d223b94..5a5a3e077717 100644 --- a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/pom.xml +++ b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1 - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-quota-v1 Proto library for google-shopping-merchant-quota com.google.shopping google-shopping-merchant-quota-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml index afcba40563f2..b695aa4492b7 100644 --- a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml +++ b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-quota-v1beta - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-quota-v1beta Proto library for google-shopping-merchant-quota com.google.shopping google-shopping-merchant-quota-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports-bom/pom.xml b/java-shopping-merchant-reports/google-shopping-merchant-reports-bom/pom.xml index f649a3a42276..c587a06a9fcb 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports-bom/pom.xml +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.shopping google-shopping-merchant-reports-bom - 1.21.0 + 1.22.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,37 +28,37 @@ com.google.shopping google-shopping-merchant-reports - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1alpha - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1alpha - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1 - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml b/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml index fc0411c14942..dccd1c8c584c 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-reports - 1.21.0 + 1.22.0-SNAPSHOT jar Google Merchant API Merchant API Programmatically manage your Merchant Center accounts. com.google.shopping google-shopping-merchant-reports-parent - 1.21.0 + 1.22.0-SNAPSHOT google-shopping-merchant-reports diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1/stub/Version.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1/stub/Version.java index 77ea9b6777bf..bd4a4461e7ae 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1/stub/Version.java +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-reports:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/Version.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/Version.java index e26a89c7215b..15fe91978ad7 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/Version.java +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-reports:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/stub/Version.java b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/stub/Version.java index 911e2bdb4ae7..b0975da1d4da 100644 --- a/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/stub/Version.java +++ b/java-shopping-merchant-reports/google-shopping-merchant-reports/src/main/java/com/google/shopping/merchant/reports/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-reports:current} - static final String VERSION = "1.21.0"; + static final String VERSION = "1.22.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1/pom.xml b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1/pom.xml index 79fa7d6a7d43..7d525e7fcfef 100644 --- a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1/pom.xml +++ b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1 - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-reports-v1 GRPC library for google-shopping-merchant-reports com.google.shopping google-shopping-merchant-reports-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1alpha/pom.xml b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1alpha/pom.xml index 7e31968155d9..2882feb7ca79 100644 --- a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1alpha/pom.xml +++ b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1alpha - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-reports-v1alpha GRPC library for google-shopping-merchant-reports com.google.shopping google-shopping-merchant-reports-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml index d0f7d3334cde..781a71b585d5 100644 --- a/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml +++ b/java-shopping-merchant-reports/grpc-google-shopping-merchant-reports-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1beta - 1.21.0 + 1.22.0-SNAPSHOT grpc-google-shopping-merchant-reports-v1beta GRPC library for google-shopping-merchant-reports com.google.shopping google-shopping-merchant-reports-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-reports/pom.xml b/java-shopping-merchant-reports/pom.xml index 1c55ddc60ef2..9c8f9e85126f 100644 --- a/java-shopping-merchant-reports/pom.xml +++ b/java-shopping-merchant-reports/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-reports-parent pom - 1.21.0 + 1.22.0-SNAPSHOT Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,37 +30,37 @@ com.google.shopping google-shopping-merchant-reports - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1 - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1alpha - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1alpha - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-reports-v1beta - 1.21.0 + 1.22.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1beta - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/pom.xml b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/pom.xml index b19d3e2541b9..324a55280742 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/pom.xml +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1 - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-reports-v1 Proto library for google-shopping-merchant-reports com.google.shopping google-shopping-merchant-reports-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/pom.xml b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/pom.xml index a9e3868d6084..91e6fdc4ad90 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/pom.xml +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1alpha - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-reports-v1alpha Proto library for google-shopping-merchant-reports com.google.shopping google-shopping-merchant-reports-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml index 7b9b2ad26c53..35c20a5f93dd 100644 --- a/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml +++ b/java-shopping-merchant-reports/proto-google-shopping-merchant-reports-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reports-v1beta - 1.21.0 + 1.22.0-SNAPSHOT proto-google-shopping-merchant-reports-v1beta Proto library for google-shopping-merchant-reports com.google.shopping google-shopping-merchant-reports-parent - 1.21.0 + 1.22.0-SNAPSHOT diff --git a/java-shopping-merchant-reviews/google-shopping-merchant-reviews-bom/pom.xml b/java-shopping-merchant-reviews/google-shopping-merchant-reviews-bom/pom.xml index bab54b693261..1e5c45f35097 100644 --- a/java-shopping-merchant-reviews/google-shopping-merchant-reviews-bom/pom.xml +++ b/java-shopping-merchant-reviews/google-shopping-merchant-reviews-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.shopping google-shopping-merchant-reviews-bom - 0.39.0 + 0.40.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.shopping google-shopping-merchant-reviews - 0.39.0 + 0.40.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-reviews-v1beta - 0.39.0 + 0.40.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-reviews-v1beta - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/pom.xml b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/pom.xml index 58f4bcb5efe6..27228a775801 100644 --- a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/pom.xml +++ b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.shopping google-shopping-merchant-reviews - 0.39.0 + 0.40.0-SNAPSHOT jar Google Merchant API Merchant API Programmatically manage your Merchant Center Accounts. com.google.shopping google-shopping-merchant-reviews-parent - 0.39.0 + 0.40.0-SNAPSHOT google-shopping-merchant-reviews diff --git a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/stub/Version.java b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/stub/Version.java index ac8066b10130..00c7d5f06dc2 100644 --- a/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/stub/Version.java +++ b/java-shopping-merchant-reviews/google-shopping-merchant-reviews/src/main/java/com/google/shopping/merchant/reviews/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-shopping-merchant-reviews:current} - static final String VERSION = "0.39.0"; + static final String VERSION = "0.40.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/pom.xml b/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/pom.xml index 33609c57e5bc..274c4a805ac9 100644 --- a/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/pom.xml +++ b/java-shopping-merchant-reviews/grpc-google-shopping-merchant-reviews-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc grpc-google-shopping-merchant-reviews-v1beta - 0.39.0 + 0.40.0-SNAPSHOT grpc-google-shopping-merchant-reviews-v1beta GRPC library for google-shopping-merchant-reviews com.google.shopping google-shopping-merchant-reviews-parent - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-shopping-merchant-reviews/pom.xml b/java-shopping-merchant-reviews/pom.xml index a706f66530da..7c81b19703cd 100644 --- a/java-shopping-merchant-reviews/pom.xml +++ b/java-shopping-merchant-reviews/pom.xml @@ -4,7 +4,7 @@ com.google.shopping google-shopping-merchant-reviews-parent pom - 0.39.0 + 0.40.0-SNAPSHOT Google Merchant API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.shopping google-shopping-merchant-reviews - 0.39.0 + 0.40.0-SNAPSHOT com.google.shopping.api.grpc grpc-google-shopping-merchant-reviews-v1beta - 0.39.0 + 0.40.0-SNAPSHOT com.google.shopping.api.grpc proto-google-shopping-merchant-reviews-v1beta - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/pom.xml b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/pom.xml index 86b3bc47d94d..b3f03990cd5a 100644 --- a/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/pom.xml +++ b/java-shopping-merchant-reviews/proto-google-shopping-merchant-reviews-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.shopping.api.grpc proto-google-shopping-merchant-reviews-v1beta - 0.39.0 + 0.40.0-SNAPSHOT proto-google-shopping-merchant-reviews-v1beta Proto library for google-shopping-merchant-reviews com.google.shopping google-shopping-merchant-reviews-parent - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-showcase/pom.xml b/java-showcase/pom.xml index a2299beea5de..c6a9a0352f57 100644 --- a/java-showcase/pom.xml +++ b/java-showcase/pom.xml @@ -34,7 +34,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.63.0 + 3.64.0-SNAPSHOT pom import diff --git a/java-spanner-jdbc/pom.xml b/java-spanner-jdbc/pom.xml index 52c0068ab965..a1a677dabc09 100644 --- a/java-spanner-jdbc/pom.xml +++ b/java-spanner-jdbc/pom.xml @@ -4,7 +4,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 google-cloud-spanner-jdbc - 2.40.0 + 2.41.0-SNAPSHOT jar Google Cloud Spanner JDBC https://github.com/googleapis/google-cloud-java @@ -14,7 +14,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -96,7 +96,7 @@ com.google.cloud google-cloud-spanner - 6.118.0 + 6.119.0-SNAPSHOT io.grpc @@ -137,7 +137,7 @@ com.google.api.grpc proto-google-cloud-spanner-v1 - 6.118.0 + 6.119.0-SNAPSHOT io.opentelemetry @@ -147,7 +147,7 @@ com.google.cloud google-cloud-spanner - 6.118.0 + 6.119.0-SNAPSHOT test-jar test @@ -203,13 +203,13 @@ com.google.cloud google-cloud-trace - 2.93.0 + 2.94.0-SNAPSHOT test com.google.api.grpc proto-google-cloud-trace-v1 - 2.93.0 + 2.94.0-SNAPSHOT test diff --git a/java-spanner-jdbc/samples/snapshot/pom.xml b/java-spanner-jdbc/samples/snapshot/pom.xml index 53f460b099d2..7f9bb67513e6 100644 --- a/java-spanner-jdbc/samples/snapshot/pom.xml +++ b/java-spanner-jdbc/samples/snapshot/pom.xml @@ -29,7 +29,7 @@ com.google.cloud google-cloud-spanner-jdbc - 2.40.0 + 2.41.0-SNAPSHOT diff --git a/java-spanner/benchmarks/pom.xml b/java-spanner/benchmarks/pom.xml index aff528eba72f..15112ba5b3f6 100644 --- a/java-spanner/benchmarks/pom.xml +++ b/java-spanner/benchmarks/pom.xml @@ -24,7 +24,7 @@ com.google.cloud google-cloud-spanner-parent - 6.118.0 + 6.119.0-SNAPSHOT @@ -59,7 +59,7 @@ com.google.cloud google-cloud-monitoring - 3.94.0 + 3.95.0-SNAPSHOT io.opentelemetry diff --git a/java-spanner/google-cloud-spanner-bom/pom.xml b/java-spanner/google-cloud-spanner-bom/pom.xml index 8674673b9503..763004005d3a 100644 --- a/java-spanner/google-cloud-spanner-bom/pom.xml +++ b/java-spanner/google-cloud-spanner-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-spanner-bom - 6.118.0 + 6.119.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -53,43 +53,43 @@ com.google.cloud google-cloud-spanner - 6.118.0 + 6.119.0-SNAPSHOT com.google.cloud google-cloud-spanner test-jar - 6.118.0 + 6.119.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-v1 - 6.118.0 + 6.119.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-admin-instance-v1 - 6.118.0 + 6.119.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-admin-database-v1 - 6.118.0 + 6.119.0-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-admin-instance-v1 - 6.118.0 + 6.119.0-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-v1 - 6.118.0 + 6.119.0-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-admin-database-v1 - 6.118.0 + 6.119.0-SNAPSHOT diff --git a/java-spanner/google-cloud-spanner-executor/pom.xml b/java-spanner/google-cloud-spanner-executor/pom.xml index 80a734ff3fa0..0663d2add204 100644 --- a/java-spanner/google-cloud-spanner-executor/pom.xml +++ b/java-spanner/google-cloud-spanner-executor/pom.xml @@ -5,14 +5,14 @@ 4.0.0 com.google.cloud google-cloud-spanner-executor - 6.118.0 + 6.119.0-SNAPSHOT jar Google Cloud Spanner Executor com.google.cloud google-cloud-spanner-parent - 6.118.0 + 6.119.0-SNAPSHOT diff --git a/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/Version.java b/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/Version.java index 044f1edb2b4f..01f3ccd846ea 100644 --- a/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/Version.java +++ b/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-spanner:current} - static final String VERSION = "6.118.0"; + static final String VERSION = "6.119.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-spanner/google-cloud-spanner/pom.xml b/java-spanner/google-cloud-spanner/pom.xml index 2124aa446c8c..c26501188ec7 100644 --- a/java-spanner/google-cloud-spanner/pom.xml +++ b/java-spanner/google-cloud-spanner/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-spanner - 6.118.0 + 6.119.0-SNAPSHOT jar Google Cloud Spanner https://github.com/googleapis/google-cloud-java @@ -11,7 +11,7 @@ com.google.cloud google-cloud-spanner-parent - 6.118.0 + 6.119.0-SNAPSHOT google-cloud-spanner @@ -310,7 +310,7 @@ com.google.cloud google-cloud-monitoring - 3.94.0 + 3.95.0-SNAPSHOT @@ -322,7 +322,7 @@ com.google.api.grpc proto-google-cloud-monitoring-v3 - 3.94.0 + 3.95.0-SNAPSHOT @@ -334,7 +334,7 @@ com.google.api.grpc grpc-google-cloud-monitoring-v3 - 3.94.0 + 3.95.0-SNAPSHOT test @@ -523,13 +523,13 @@ com.google.cloud google-cloud-trace - 2.93.0 + 2.94.0-SNAPSHOT test com.google.api.grpc proto-google-cloud-trace-v1 - 2.93.0 + 2.94.0-SNAPSHOT test diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/Version.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/Version.java index b7bb43c4e66d..340a4765bc49 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/Version.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/database/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-spanner:current} - static final String VERSION = "6.118.0"; + static final String VERSION = "6.119.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/Version.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/Version.java index aa1854cf89eb..edfb05e7e7c8 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/Version.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/admin/instance/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-spanner:current} - static final String VERSION = "6.118.0"; + static final String VERSION = "6.119.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/Version.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/Version.java index 28bf815873fa..4d5b268c4e4f 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/Version.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-spanner:current} - static final String VERSION = "6.118.0"; + static final String VERSION = "6.119.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-spanner/grpc-google-cloud-spanner-admin-database-v1/pom.xml b/java-spanner/grpc-google-cloud-spanner-admin-database-v1/pom.xml index c80914bff96c..b6919d177309 100644 --- a/java-spanner/grpc-google-cloud-spanner-admin-database-v1/pom.xml +++ b/java-spanner/grpc-google-cloud-spanner-admin-database-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-spanner-admin-database-v1 - 6.118.0 + 6.119.0-SNAPSHOT grpc-google-cloud-spanner-admin-database-v1 GRPC library for grpc-google-cloud-spanner-admin-database-v1 com.google.cloud google-cloud-spanner-parent - 6.118.0 + 6.119.0-SNAPSHOT diff --git a/java-spanner/grpc-google-cloud-spanner-admin-instance-v1/pom.xml b/java-spanner/grpc-google-cloud-spanner-admin-instance-v1/pom.xml index 9fb664ab149d..9c875865a25e 100644 --- a/java-spanner/grpc-google-cloud-spanner-admin-instance-v1/pom.xml +++ b/java-spanner/grpc-google-cloud-spanner-admin-instance-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-spanner-admin-instance-v1 - 6.118.0 + 6.119.0-SNAPSHOT grpc-google-cloud-spanner-admin-instance-v1 GRPC library for grpc-google-cloud-spanner-admin-instance-v1 com.google.cloud google-cloud-spanner-parent - 6.118.0 + 6.119.0-SNAPSHOT diff --git a/java-spanner/grpc-google-cloud-spanner-executor-v1/pom.xml b/java-spanner/grpc-google-cloud-spanner-executor-v1/pom.xml index e7f796c53512..21e09efbeacf 100644 --- a/java-spanner/grpc-google-cloud-spanner-executor-v1/pom.xml +++ b/java-spanner/grpc-google-cloud-spanner-executor-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-spanner-executor-v1 - 6.118.0 + 6.119.0-SNAPSHOT grpc-google-cloud-spanner-executor-v1 GRPC library for google-cloud-spanner com.google.cloud google-cloud-spanner-parent - 6.118.0 + 6.119.0-SNAPSHOT diff --git a/java-spanner/grpc-google-cloud-spanner-v1/pom.xml b/java-spanner/grpc-google-cloud-spanner-v1/pom.xml index bbe9c2a81589..2e379f297370 100644 --- a/java-spanner/grpc-google-cloud-spanner-v1/pom.xml +++ b/java-spanner/grpc-google-cloud-spanner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-spanner-v1 - 6.118.0 + 6.119.0-SNAPSHOT grpc-google-cloud-spanner-v1 GRPC library for grpc-google-cloud-spanner-v1 com.google.cloud google-cloud-spanner-parent - 6.118.0 + 6.119.0-SNAPSHOT diff --git a/java-spanner/pom.xml b/java-spanner/pom.xml index 844e06ced5da..e8fd478c69b6 100644 --- a/java-spanner/pom.xml +++ b/java-spanner/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-spanner-parent pom - 6.118.0 + 6.119.0-SNAPSHOT Google Cloud Spanner Parent https://github.com/googleapis/google-cloud-java @@ -14,7 +14,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -63,47 +63,47 @@ com.google.api.grpc proto-google-cloud-spanner-admin-instance-v1 - 6.118.0 + 6.119.0-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-executor-v1 - 6.118.0 + 6.119.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-executor-v1 - 6.118.0 + 6.119.0-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-v1 - 6.118.0 + 6.119.0-SNAPSHOT com.google.api.grpc proto-google-cloud-spanner-admin-database-v1 - 6.118.0 + 6.119.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-v1 - 6.118.0 + 6.119.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-admin-instance-v1 - 6.118.0 + 6.119.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanner-admin-database-v1 - 6.118.0 + 6.119.0-SNAPSHOT com.google.cloud google-cloud-spanner - 6.118.0 + 6.119.0-SNAPSHOT diff --git a/java-spanner/proto-google-cloud-spanner-admin-database-v1/pom.xml b/java-spanner/proto-google-cloud-spanner-admin-database-v1/pom.xml index a6101c93f2e6..251e5d40c689 100644 --- a/java-spanner/proto-google-cloud-spanner-admin-database-v1/pom.xml +++ b/java-spanner/proto-google-cloud-spanner-admin-database-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-spanner-admin-database-v1 - 6.118.0 + 6.119.0-SNAPSHOT proto-google-cloud-spanner-admin-database-v1 PROTO library for proto-google-cloud-spanner-admin-database-v1 com.google.cloud google-cloud-spanner-parent - 6.118.0 + 6.119.0-SNAPSHOT diff --git a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/pom.xml b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/pom.xml index 96be18aa94af..120d94ca259e 100644 --- a/java-spanner/proto-google-cloud-spanner-admin-instance-v1/pom.xml +++ b/java-spanner/proto-google-cloud-spanner-admin-instance-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-spanner-admin-instance-v1 - 6.118.0 + 6.119.0-SNAPSHOT proto-google-cloud-spanner-admin-instance-v1 PROTO library for proto-google-cloud-spanner-admin-instance-v1 com.google.cloud google-cloud-spanner-parent - 6.118.0 + 6.119.0-SNAPSHOT diff --git a/java-spanner/proto-google-cloud-spanner-executor-v1/pom.xml b/java-spanner/proto-google-cloud-spanner-executor-v1/pom.xml index 7907540bda8d..08ab91176d8d 100644 --- a/java-spanner/proto-google-cloud-spanner-executor-v1/pom.xml +++ b/java-spanner/proto-google-cloud-spanner-executor-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-spanner-executor-v1 - 6.118.0 + 6.119.0-SNAPSHOT proto-google-cloud-spanner-executor-v1 Proto library for google-cloud-spanner com.google.cloud google-cloud-spanner-parent - 6.118.0 + 6.119.0-SNAPSHOT diff --git a/java-spanner/proto-google-cloud-spanner-v1/pom.xml b/java-spanner/proto-google-cloud-spanner-v1/pom.xml index c7c17baaeb65..8164ac4c7e90 100644 --- a/java-spanner/proto-google-cloud-spanner-v1/pom.xml +++ b/java-spanner/proto-google-cloud-spanner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-spanner-v1 - 6.118.0 + 6.119.0-SNAPSHOT proto-google-cloud-spanner-v1 PROTO library for proto-google-cloud-spanner-v1 com.google.cloud google-cloud-spanner-parent - 6.118.0 + 6.119.0-SNAPSHOT diff --git a/java-spanner/samples/snapshot/pom.xml b/java-spanner/samples/snapshot/pom.xml index 63905f335231..10989b96888f 100644 --- a/java-spanner/samples/snapshot/pom.xml +++ b/java-spanner/samples/snapshot/pom.xml @@ -32,7 +32,7 @@ com.google.cloud google-cloud-spanner - 6.118.0 + 6.119.0-SNAPSHOT diff --git a/java-spanneradapter/google-cloud-spanneradapter-bom/pom.xml b/java-spanneradapter/google-cloud-spanneradapter-bom/pom.xml index 3bc020c762be..71b198a7c4c2 100644 --- a/java-spanneradapter/google-cloud-spanneradapter-bom/pom.xml +++ b/java-spanneradapter/google-cloud-spanneradapter-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-spanneradapter-bom - 0.29.0 + 0.30.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-spanneradapter - 0.29.0 + 0.30.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanneradapter-v1 - 0.29.0 + 0.30.0-SNAPSHOT com.google.api.grpc proto-google-cloud-spanneradapter-v1 - 0.29.0 + 0.30.0-SNAPSHOT diff --git a/java-spanneradapter/google-cloud-spanneradapter/pom.xml b/java-spanneradapter/google-cloud-spanneradapter/pom.xml index df6743b7f4d1..34debb3cb4cb 100644 --- a/java-spanneradapter/google-cloud-spanneradapter/pom.xml +++ b/java-spanneradapter/google-cloud-spanneradapter/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-spanneradapter - 0.29.0 + 0.30.0-SNAPSHOT jar Google Cloud Spanner Adapter API Cloud Spanner Adapter API The Cloud Spanner Adapter service allows native drivers of supported database dialects to interact directly with Cloud Spanner by wrapping the underlying wire protocol used by the driver in a gRPC stream. com.google.cloud google-cloud-spanneradapter-parent - 0.29.0 + 0.30.0-SNAPSHOT google-cloud-spanneradapter diff --git a/java-spanneradapter/google-cloud-spanneradapter/src/main/java/com/google/spanner/adapter/v1/stub/Version.java b/java-spanneradapter/google-cloud-spanneradapter/src/main/java/com/google/spanner/adapter/v1/stub/Version.java index 2541f03bf3f0..0858e51d8289 100644 --- a/java-spanneradapter/google-cloud-spanneradapter/src/main/java/com/google/spanner/adapter/v1/stub/Version.java +++ b/java-spanneradapter/google-cloud-spanneradapter/src/main/java/com/google/spanner/adapter/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-spanneradapter:current} - static final String VERSION = "0.29.0"; + static final String VERSION = "0.30.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-spanneradapter/grpc-google-cloud-spanneradapter-v1/pom.xml b/java-spanneradapter/grpc-google-cloud-spanneradapter-v1/pom.xml index e99d6ea4a6c4..81085aaa0f84 100644 --- a/java-spanneradapter/grpc-google-cloud-spanneradapter-v1/pom.xml +++ b/java-spanneradapter/grpc-google-cloud-spanneradapter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-spanneradapter-v1 - 0.29.0 + 0.30.0-SNAPSHOT grpc-google-cloud-spanneradapter-v1 GRPC library for google-cloud-spanneradapter com.google.cloud google-cloud-spanneradapter-parent - 0.29.0 + 0.30.0-SNAPSHOT diff --git a/java-spanneradapter/pom.xml b/java-spanneradapter/pom.xml index bad04f4f2554..c3d620206021 100644 --- a/java-spanneradapter/pom.xml +++ b/java-spanneradapter/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-spanneradapter-parent pom - 0.29.0 + 0.30.0-SNAPSHOT Google Cloud Spanner Adapter API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-spanneradapter - 0.29.0 + 0.30.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-spanneradapter-v1 - 0.29.0 + 0.30.0-SNAPSHOT com.google.api.grpc proto-google-cloud-spanneradapter-v1 - 0.29.0 + 0.30.0-SNAPSHOT diff --git a/java-spanneradapter/proto-google-cloud-spanneradapter-v1/pom.xml b/java-spanneradapter/proto-google-cloud-spanneradapter-v1/pom.xml index 72fa9d07811b..c104854d2677 100644 --- a/java-spanneradapter/proto-google-cloud-spanneradapter-v1/pom.xml +++ b/java-spanneradapter/proto-google-cloud-spanneradapter-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-spanneradapter-v1 - 0.29.0 + 0.30.0-SNAPSHOT proto-google-cloud-spanneradapter-v1 Proto library for google-cloud-spanneradapter com.google.cloud google-cloud-spanneradapter-parent - 0.29.0 + 0.30.0-SNAPSHOT diff --git a/java-speech/google-cloud-speech-bom/pom.xml b/java-speech/google-cloud-speech-bom/pom.xml index d43c99426dab..8bc27c953648 100644 --- a/java-speech/google-cloud-speech-bom/pom.xml +++ b/java-speech/google-cloud-speech-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-speech-bom - 4.88.0 + 4.89.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,37 +24,37 @@ com.google.cloud google-cloud-speech - 4.88.0 + 4.89.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1 - 4.88.0 + 4.89.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 4.88.0 + 4.89.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v2 - 4.88.0 + 4.89.0-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1 - 4.88.0 + 4.89.0-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 4.88.0 + 4.89.0-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v2 - 4.88.0 + 4.89.0-SNAPSHOT diff --git a/java-speech/google-cloud-speech/pom.xml b/java-speech/google-cloud-speech/pom.xml index 9cb7686386ea..7bae9a1b416a 100644 --- a/java-speech/google-cloud-speech/pom.xml +++ b/java-speech/google-cloud-speech/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-speech - 4.88.0 + 4.89.0-SNAPSHOT jar Google Cloud Speech @@ -12,7 +12,7 @@ com.google.cloud google-cloud-speech-parent - 4.88.0 + 4.89.0-SNAPSHOT google-cloud-speech diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/Version.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/Version.java index aa83516a124d..e9ad2b798038 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/Version.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-speech:current} - static final String VERSION = "4.88.0"; + static final String VERSION = "4.89.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/Version.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/Version.java index 16ab72bd8ad9..df0d4b5bfdeb 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/Version.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-speech:current} - static final String VERSION = "4.88.0"; + static final String VERSION = "4.89.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/Version.java b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/Version.java index 1d2a36ac5c97..202f32a19233 100644 --- a/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/Version.java +++ b/java-speech/google-cloud-speech/src/main/java/com/google/cloud/speech/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-speech:current} - static final String VERSION = "4.88.0"; + static final String VERSION = "4.89.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-speech/grpc-google-cloud-speech-v1/pom.xml b/java-speech/grpc-google-cloud-speech-v1/pom.xml index ea2fc6a644c8..f07da5837202 100644 --- a/java-speech/grpc-google-cloud-speech-v1/pom.xml +++ b/java-speech/grpc-google-cloud-speech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v1 - 4.88.0 + 4.89.0-SNAPSHOT grpc-google-cloud-speech-v1 GRPC library for grpc-google-cloud-speech-v1 com.google.cloud google-cloud-speech-parent - 4.88.0 + 4.89.0-SNAPSHOT diff --git a/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml b/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml index a6996e184034..6ad74ab7d42b 100644 --- a/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml +++ b/java-speech/grpc-google-cloud-speech-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 4.88.0 + 4.89.0-SNAPSHOT grpc-google-cloud-speech-v1p1beta1 GRPC library for grpc-google-cloud-speech-v1p1beta1 com.google.cloud google-cloud-speech-parent - 4.88.0 + 4.89.0-SNAPSHOT diff --git a/java-speech/grpc-google-cloud-speech-v2/pom.xml b/java-speech/grpc-google-cloud-speech-v2/pom.xml index f1623f83b2b0..37f499dcfed0 100644 --- a/java-speech/grpc-google-cloud-speech-v2/pom.xml +++ b/java-speech/grpc-google-cloud-speech-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-speech-v2 - 4.88.0 + 4.89.0-SNAPSHOT grpc-google-cloud-speech-v2 GRPC library for google-cloud-speech com.google.cloud google-cloud-speech-parent - 4.88.0 + 4.89.0-SNAPSHOT diff --git a/java-speech/pom.xml b/java-speech/pom.xml index d9341be8ee9d..bee2a5a3b543 100644 --- a/java-speech/pom.xml +++ b/java-speech/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-speech-parent pom - 4.88.0 + 4.89.0-SNAPSHOT Google Cloud speech Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,37 +30,37 @@ com.google.api.grpc proto-google-cloud-speech-v1 - 4.88.0 + 4.89.0-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v2 - 4.88.0 + 4.89.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v2 - 4.88.0 + 4.89.0-SNAPSHOT com.google.cloud google-cloud-speech - 4.88.0 + 4.89.0-SNAPSHOT com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 4.88.0 + 4.89.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1 - 4.88.0 + 4.89.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-speech-v1p1beta1 - 4.88.0 + 4.89.0-SNAPSHOT diff --git a/java-speech/proto-google-cloud-speech-v1/pom.xml b/java-speech/proto-google-cloud-speech-v1/pom.xml index d2e891d0abb4..af56ace191ff 100644 --- a/java-speech/proto-google-cloud-speech-v1/pom.xml +++ b/java-speech/proto-google-cloud-speech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v1 - 4.88.0 + 4.89.0-SNAPSHOT proto-google-cloud-speech-v1 PROTO library for proto-google-cloud-speech-v1 com.google.cloud google-cloud-speech-parent - 4.88.0 + 4.89.0-SNAPSHOT diff --git a/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml b/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml index 8008f2b87446..2a29f6c1cf1a 100644 --- a/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml +++ b/java-speech/proto-google-cloud-speech-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v1p1beta1 - 4.88.0 + 4.89.0-SNAPSHOT proto-google-cloud-speech-v1p1beta1 PROTO library for proto-google-cloud-speech-v1p1beta1 com.google.cloud google-cloud-speech-parent - 4.88.0 + 4.89.0-SNAPSHOT diff --git a/java-speech/proto-google-cloud-speech-v2/pom.xml b/java-speech/proto-google-cloud-speech-v2/pom.xml index 7a88857ee65b..0236a0bba9e0 100644 --- a/java-speech/proto-google-cloud-speech-v2/pom.xml +++ b/java-speech/proto-google-cloud-speech-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-speech-v2 - 4.88.0 + 4.89.0-SNAPSHOT proto-google-cloud-speech-v2 Proto library for google-cloud-speech com.google.cloud google-cloud-speech-parent - 4.88.0 + 4.89.0-SNAPSHOT diff --git a/java-storage-nio/google-cloud-nio-bom/pom.xml b/java-storage-nio/google-cloud-nio-bom/pom.xml index 4549c8bd1202..9e07aa8799c9 100644 --- a/java-storage-nio/google-cloud-nio-bom/pom.xml +++ b/java-storage-nio/google-cloud-nio-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-nio-bom - 0.133.0 + 0.134.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -53,7 +53,7 @@ com.google.cloud google-cloud-nio - 0.133.0 + 0.134.0-SNAPSHOT diff --git a/java-storage-nio/google-cloud-nio-examples/pom.xml b/java-storage-nio/google-cloud-nio-examples/pom.xml index 4b112d17b205..85cbdf1a7c89 100644 --- a/java-storage-nio/google-cloud-nio-examples/pom.xml +++ b/java-storage-nio/google-cloud-nio-examples/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-nio-examples - 0.133.0 + 0.134.0-SNAPSHOT jar Google Cloud NIO Examples https://github.com/googleapis/google-cloud-java @@ -13,7 +13,7 @@ com.google.cloud google-cloud-nio-parent - 0.133.0 + 0.134.0-SNAPSHOT diff --git a/java-storage-nio/google-cloud-nio-retrofit/README.md b/java-storage-nio/google-cloud-nio-retrofit/README.md index ea81beba9ee6..029ebbe2c83d 100644 --- a/java-storage-nio/google-cloud-nio-retrofit/README.md +++ b/java-storage-nio/google-cloud-nio-retrofit/README.md @@ -27,12 +27,12 @@ To run this example: [//]: # ({x-version-update-start:google-cloud-nio:current}) ``` - java -cp google-cloud-nio/target/google-cloud-nio-0.133.0.jar:google-cloud-nio-retrofit/target/google-cloud-nio-retrofit-0.120.1-alpha-SNAPSHOT.jar com.google.cloud.nio.retrofit.ListFilesystems + java -cp google-cloud-nio/target/google-cloud-nio-0.134.0-SNAPSHOT.jar:google-cloud-nio-retrofit/target/google-cloud-nio-retrofit-0.120.1-alpha-SNAPSHOT.jar com.google.cloud.nio.retrofit.ListFilesystems ``` Notice that it lists Google Cloud Storage ("gs"), which it wouldn't if you ran it without the NIO jar: ``` - java -cp google-cloud-nio-retrofit/target/google-cloud-nio-retrofit-0.133.0.jar com.google.cloud.nio.retrofit.ListFilesystems + java -cp google-cloud-nio-retrofit/target/google-cloud-nio-retrofit-0.134.0-SNAPSHOT.jar com.google.cloud.nio.retrofit.ListFilesystems ``` [//]: # ({x-version-update-end}) diff --git a/java-storage-nio/google-cloud-nio-retrofit/pom.xml b/java-storage-nio/google-cloud-nio-retrofit/pom.xml index fff769efd0d8..0754ab91be63 100644 --- a/java-storage-nio/google-cloud-nio-retrofit/pom.xml +++ b/java-storage-nio/google-cloud-nio-retrofit/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-nio-retrofit - 0.133.0 + 0.134.0-SNAPSHOT jar Google Cloud NIO Retrofit Example https://github.com/googleapis/google-cloud-java @@ -12,7 +12,7 @@ com.google.cloud google-cloud-nio-parent - 0.133.0 + 0.134.0-SNAPSHOT google-cloud-nio-retrofit diff --git a/java-storage-nio/google-cloud-nio/pom.xml b/java-storage-nio/google-cloud-nio/pom.xml index 7d9f913c369e..8d579fae5559 100644 --- a/java-storage-nio/google-cloud-nio/pom.xml +++ b/java-storage-nio/google-cloud-nio/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-nio - 0.133.0 + 0.134.0-SNAPSHOT jar Google Cloud NIO https://github.com/googleapis/google-cloud-java @@ -12,7 +12,7 @@ com.google.cloud google-cloud-nio-parent - 0.133.0 + 0.134.0-SNAPSHOT google-cloud-nio diff --git a/java-storage-nio/pom.xml b/java-storage-nio/pom.xml index fd5ecbc63fc2..23dfaf414f13 100644 --- a/java-storage-nio/pom.xml +++ b/java-storage-nio/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-nio-parent pom - 0.133.0 + 0.134.0-SNAPSHOT Storage Parent https://github.com/googleapis/google-cloud-java @@ -14,7 +14,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -72,7 +72,7 @@ com.google.cloud google-cloud-storage - 2.69.0 + 2.70.0-SNAPSHOT io.opentelemetry.semconv diff --git a/java-storage-nio/samples/snapshot/pom.xml b/java-storage-nio/samples/snapshot/pom.xml index 9c503783be2c..aa701ba6925c 100644 --- a/java-storage-nio/samples/snapshot/pom.xml +++ b/java-storage-nio/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud google-cloud-nio - 0.133.0 + 0.134.0-SNAPSHOT diff --git a/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml b/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml index 1df5a07cc97c..8a56f017f72d 100644 --- a/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml +++ b/java-storage-transfer/google-cloud-storage-transfer-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-storage-transfer-bom - 1.93.0 + 1.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-storage-transfer - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-storage-transfer-v1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-storage-transfer-v1 - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-storage-transfer/google-cloud-storage-transfer/pom.xml b/java-storage-transfer/google-cloud-storage-transfer/pom.xml index dfa2b9416c5a..137f60cda020 100644 --- a/java-storage-transfer/google-cloud-storage-transfer/pom.xml +++ b/java-storage-transfer/google-cloud-storage-transfer/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-storage-transfer - 1.93.0 + 1.94.0-SNAPSHOT jar Google Storage Transfer Service Storage Transfer Service Secure, low-cost services for transferring data from cloud or on-premises sources. com.google.cloud google-cloud-storage-transfer-parent - 1.93.0 + 1.94.0-SNAPSHOT google-cloud-storage-transfer diff --git a/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/Version.java b/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/Version.java index ed3508f751f7..00c44218038f 100644 --- a/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/Version.java +++ b/java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-storage-transfer:current} - static final String VERSION = "1.93.0"; + static final String VERSION = "1.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml b/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml index 9154eb6edbf4..9924c0a029b5 100644 --- a/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml +++ b/java-storage-transfer/grpc-google-cloud-storage-transfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-storage-transfer-v1 - 1.93.0 + 1.94.0-SNAPSHOT grpc-google-cloud-storage-transfer-v1 GRPC library for google-cloud-storage-transfer com.google.cloud google-cloud-storage-transfer-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-storage-transfer/pom.xml b/java-storage-transfer/pom.xml index 1f9d857bc349..68e0b3e79224 100644 --- a/java-storage-transfer/pom.xml +++ b/java-storage-transfer/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-storage-transfer-parent pom - 1.93.0 + 1.94.0-SNAPSHOT Google Storage Transfer Service Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-storage-transfer - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-storage-transfer-v1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-storage-transfer-v1 - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml b/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml index a49d9cfe2fe0..91ba34d4c67d 100644 --- a/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml +++ b/java-storage-transfer/proto-google-cloud-storage-transfer-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-storage-transfer-v1 - 1.93.0 + 1.94.0-SNAPSHOT proto-google-cloud-storage-transfer-v1 Proto library for google-cloud-storage-transfer com.google.cloud google-cloud-storage-transfer-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-storage/gapic-google-cloud-storage-v2/pom.xml b/java-storage/gapic-google-cloud-storage-v2/pom.xml index 0156777f8c10..ed46a328dcbb 100644 --- a/java-storage/gapic-google-cloud-storage-v2/pom.xml +++ b/java-storage/gapic-google-cloud-storage-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc gapic-google-cloud-storage-v2 - 2.69.0 + 2.70.0-SNAPSHOT gapic-google-cloud-storage-v2 GRPC library for gapic-google-cloud-storage-v2 com.google.cloud google-cloud-storage-parent - 2.69.0 + 2.70.0-SNAPSHOT @@ -40,28 +40,28 @@ com.google.api.grpc proto-google-common-protos - 2.72.0 + 2.73.0-SNAPSHOT com.google.api api-common - 2.64.0 + 2.65.0-SNAPSHOT com.google.api gax - 2.81.0 + 2.82.0-SNAPSHOT com.google.api.grpc proto-google-iam-v1 - 1.67.0 + 1.68.0-SNAPSHOT com.google.api gax-grpc - 2.81.0 + 2.82.0-SNAPSHOT com.google.guava @@ -77,7 +77,7 @@ gax-grpc testlib test - 2.81.0 + 2.82.0-SNAPSHOT diff --git a/java-storage/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/Version.java b/java-storage/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/Version.java index 2ecf0ad1ac68..d65cbc47dcdb 100644 --- a/java-storage/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/Version.java +++ b/java-storage/gapic-google-cloud-storage-v2/src/main/java/com/google/storage/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-storage:current} - static final String VERSION = "2.69.0"; + static final String VERSION = "2.70.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-storage/google-cloud-storage-bom/pom.xml b/java-storage/google-cloud-storage-bom/pom.xml index 25d952731f91..5f07f9a9e3ec 100644 --- a/java-storage/google-cloud-storage-bom/pom.xml +++ b/java-storage/google-cloud-storage-bom/pom.xml @@ -19,12 +19,12 @@ 4.0.0 com.google.cloud google-cloud-storage-bom - 2.69.0 + 2.70.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -69,37 +69,37 @@ com.google.cloud google-cloud-storage - 2.69.0 + 2.70.0-SNAPSHOT com.google.api.grpc gapic-google-cloud-storage-v2 - 2.69.0 + 2.70.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-storage-v2 - 2.69.0 + 2.70.0-SNAPSHOT com.google.api.grpc proto-google-cloud-storage-v2 - 2.69.0 + 2.70.0-SNAPSHOT com.google.cloud google-cloud-storage-control - 2.69.0 + 2.70.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-storage-control-v2 - 2.69.0 + 2.70.0-SNAPSHOT com.google.api.grpc proto-google-cloud-storage-control-v2 - 2.69.0 + 2.70.0-SNAPSHOT diff --git a/java-storage/google-cloud-storage-control/pom.xml b/java-storage/google-cloud-storage-control/pom.xml index e6dcd6c6ca1f..ba0b11644a84 100644 --- a/java-storage/google-cloud-storage-control/pom.xml +++ b/java-storage/google-cloud-storage-control/pom.xml @@ -5,13 +5,13 @@ 4.0.0 com.google.cloud google-cloud-storage-control - 2.69.0 + 2.70.0-SNAPSHOT google-cloud-storage-control GRPC library for google-cloud-storage-control com.google.cloud google-cloud-storage-parent - 2.69.0 + 2.70.0-SNAPSHOT diff --git a/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/Version.java b/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/Version.java index 594b3b7d8d45..884e95ab123a 100644 --- a/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/Version.java +++ b/java-storage/google-cloud-storage-control/src/main/java/com/google/storage/control/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-storage:current} - static final String VERSION = "2.69.0"; + static final String VERSION = "2.70.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-storage/google-cloud-storage/pom.xml b/java-storage/google-cloud-storage/pom.xml index 08388a576b6f..615a0eab825f 100644 --- a/java-storage/google-cloud-storage/pom.xml +++ b/java-storage/google-cloud-storage/pom.xml @@ -2,7 +2,7 @@ 4.0.0 google-cloud-storage - 2.69.0 + 2.70.0-SNAPSHOT jar Google Cloud Storage https://github.com/googleapis/google-cloud-java @@ -12,7 +12,7 @@ com.google.cloud google-cloud-storage-parent - 2.69.0 + 2.70.0-SNAPSHOT google-cloud-storage @@ -255,14 +255,14 @@ com.google.api.grpc proto-google-cloud-kms-v1 - 2.96.0 + 2.97.0-SNAPSHOT test com.google.cloud google-cloud-kms - 2.96.0 + 2.97.0-SNAPSHOT test diff --git a/java-storage/grpc-google-cloud-storage-control-v2/pom.xml b/java-storage/grpc-google-cloud-storage-control-v2/pom.xml index 02219cf71424..389e8866f67b 100644 --- a/java-storage/grpc-google-cloud-storage-control-v2/pom.xml +++ b/java-storage/grpc-google-cloud-storage-control-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-storage-control-v2 - 2.69.0 + 2.70.0-SNAPSHOT grpc-google-cloud-storage-control-v2 GRPC library for google-cloud-storage com.google.cloud google-cloud-storage-parent - 2.69.0 + 2.70.0-SNAPSHOT diff --git a/java-storage/grpc-google-cloud-storage-v2/pom.xml b/java-storage/grpc-google-cloud-storage-v2/pom.xml index 6b59e1d9a645..1310c97a0829 100644 --- a/java-storage/grpc-google-cloud-storage-v2/pom.xml +++ b/java-storage/grpc-google-cloud-storage-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-storage-v2 - 2.69.0 + 2.70.0-SNAPSHOT grpc-google-cloud-storage-v2 GRPC library for grpc-google-cloud-storage-v2 com.google.cloud google-cloud-storage-parent - 2.69.0 + 2.70.0-SNAPSHOT diff --git a/java-storage/pom.xml b/java-storage/pom.xml index 63e17e49bf7d..a8d8a9c80871 100644 --- a/java-storage/pom.xml +++ b/java-storage/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-storage-parent pom - 2.69.0 + 2.70.0-SNAPSHOT Storage Parent https://github.com/googleapis/google-cloud-java @@ -14,7 +14,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -77,27 +77,27 @@ com.google.cloud google-cloud-storage - 2.69.0 + 2.70.0-SNAPSHOT com.google.api.grpc proto-google-cloud-storage-v2 - 2.69.0 + 2.70.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-storage-v2 - 2.69.0 + 2.70.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-storage-control-v2 - 2.69.0 + 2.70.0-SNAPSHOT com.google.api.grpc proto-google-cloud-storage-control-v2 - 2.69.0 + 2.70.0-SNAPSHOT @@ -109,12 +109,12 @@ com.google.api.grpc gapic-google-cloud-storage-v2 - 2.69.0 + 2.70.0-SNAPSHOT com.google.cloud google-cloud-storage-control - 2.69.0 + 2.70.0-SNAPSHOT com.google.cloud diff --git a/java-storage/proto-google-cloud-storage-control-v2/pom.xml b/java-storage/proto-google-cloud-storage-control-v2/pom.xml index 771a6edb6f81..16abc0fc58ac 100644 --- a/java-storage/proto-google-cloud-storage-control-v2/pom.xml +++ b/java-storage/proto-google-cloud-storage-control-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-storage-control-v2 - 2.69.0 + 2.70.0-SNAPSHOT proto-google-cloud-storage-control-v2 Proto library for proto-google-cloud-storage-control-v2 com.google.cloud google-cloud-storage-parent - 2.69.0 + 2.70.0-SNAPSHOT diff --git a/java-storage/proto-google-cloud-storage-v2/pom.xml b/java-storage/proto-google-cloud-storage-v2/pom.xml index c755c7e3f45b..676cf2ebdacb 100644 --- a/java-storage/proto-google-cloud-storage-v2/pom.xml +++ b/java-storage/proto-google-cloud-storage-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-storage-v2 - 2.69.0 + 2.70.0-SNAPSHOT proto-google-cloud-storage-v2 PROTO library for proto-google-cloud-storage-v2 com.google.cloud google-cloud-storage-parent - 2.69.0 + 2.70.0-SNAPSHOT diff --git a/java-storage/samples/snapshot/pom.xml b/java-storage/samples/snapshot/pom.xml index cd43177c114e..588dd592838f 100644 --- a/java-storage/samples/snapshot/pom.xml +++ b/java-storage/samples/snapshot/pom.xml @@ -28,12 +28,12 @@ com.google.cloud google-cloud-storage - 2.69.0 + 2.70.0-SNAPSHOT com.google.cloud google-cloud-storage-control - 2.69.0 + 2.70.0-SNAPSHOT compile @@ -70,7 +70,7 @@ com.google.cloud google-cloud-storage - 2.69.0 + 2.70.0-SNAPSHOT tests test diff --git a/java-storage/storage-shared-benchmarking/pom.xml b/java-storage/storage-shared-benchmarking/pom.xml index b447aa67802c..624a754739cc 100644 --- a/java-storage/storage-shared-benchmarking/pom.xml +++ b/java-storage/storage-shared-benchmarking/pom.xml @@ -10,7 +10,7 @@ com.google.cloud google-cloud-storage-parent - 2.69.0 + 2.70.0-SNAPSHOT @@ -31,7 +31,7 @@ com.google.cloud google-cloud-storage - 2.69.0 + 2.70.0-SNAPSHOT tests diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations-bom/pom.xml b/java-storagebatchoperations/google-cloud-storagebatchoperations-bom/pom.xml index 813f52aa6e64..8d6c97d35d04 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations-bom/pom.xml +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-storagebatchoperations-bom - 0.33.0 + 0.34.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-storagebatchoperations - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-storagebatchoperations-v1 - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc proto-google-cloud-storagebatchoperations-v1 - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations/pom.xml b/java-storagebatchoperations/google-cloud-storagebatchoperations/pom.xml index 34af878b5255..77984d719576 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations/pom.xml +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-storagebatchoperations - 0.33.0 + 0.34.0-SNAPSHOT jar Google Storage Batch Operations API Storage Batch Operations API Storage batch operations is a Cloud Storage management feature that performs operations on billions of Cloud Storage objects in a serverless manner. com.google.cloud google-cloud-storagebatchoperations-parent - 0.33.0 + 0.34.0-SNAPSHOT google-cloud-storagebatchoperations diff --git a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/Version.java b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/Version.java index 8563c3f5e2d8..df2bebd0ba0f 100644 --- a/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/Version.java +++ b/java-storagebatchoperations/google-cloud-storagebatchoperations/src/main/java/com/google/cloud/storagebatchoperations/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-storagebatchoperations:current} - static final String VERSION = "0.33.0"; + static final String VERSION = "0.34.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/pom.xml b/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/pom.xml index 2ef4eb435358..f5596f5851c2 100644 --- a/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/pom.xml +++ b/java-storagebatchoperations/grpc-google-cloud-storagebatchoperations-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-storagebatchoperations-v1 - 0.33.0 + 0.34.0-SNAPSHOT grpc-google-cloud-storagebatchoperations-v1 GRPC library for google-cloud-storagebatchoperations com.google.cloud google-cloud-storagebatchoperations-parent - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-storagebatchoperations/pom.xml b/java-storagebatchoperations/pom.xml index f8b92add85ae..6a84622a45e4 100644 --- a/java-storagebatchoperations/pom.xml +++ b/java-storagebatchoperations/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-storagebatchoperations-parent pom - 0.33.0 + 0.34.0-SNAPSHOT Google Storage Batch Operations API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-storagebatchoperations - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-storagebatchoperations-v1 - 0.33.0 + 0.34.0-SNAPSHOT com.google.api.grpc proto-google-cloud-storagebatchoperations-v1 - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/pom.xml b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/pom.xml index 5e45c7e9000f..efbe71c5e9bb 100644 --- a/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/pom.xml +++ b/java-storagebatchoperations/proto-google-cloud-storagebatchoperations-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-storagebatchoperations-v1 - 0.33.0 + 0.34.0-SNAPSHOT proto-google-cloud-storagebatchoperations-v1 Proto library for google-cloud-storagebatchoperations com.google.cloud google-cloud-storagebatchoperations-parent - 0.33.0 + 0.34.0-SNAPSHOT diff --git a/java-storageinsights/google-cloud-storageinsights-bom/pom.xml b/java-storageinsights/google-cloud-storageinsights-bom/pom.xml index 460b4c9f9527..696f6789fb3d 100644 --- a/java-storageinsights/google-cloud-storageinsights-bom/pom.xml +++ b/java-storageinsights/google-cloud-storageinsights-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-storageinsights-bom - 0.78.0 + 0.79.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-storageinsights - 0.78.0 + 0.79.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-storageinsights-v1 - 0.78.0 + 0.79.0-SNAPSHOT com.google.api.grpc proto-google-cloud-storageinsights-v1 - 0.78.0 + 0.79.0-SNAPSHOT diff --git a/java-storageinsights/google-cloud-storageinsights/pom.xml b/java-storageinsights/google-cloud-storageinsights/pom.xml index 8ea50a03f8fc..c67b3db27c35 100644 --- a/java-storageinsights/google-cloud-storageinsights/pom.xml +++ b/java-storageinsights/google-cloud-storageinsights/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-storageinsights - 0.78.0 + 0.79.0-SNAPSHOT jar Google Storage Insights API Storage Insights API Provides insights capability on Google Cloud Storage com.google.cloud google-cloud-storageinsights-parent - 0.78.0 + 0.79.0-SNAPSHOT google-cloud-storageinsights diff --git a/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/Version.java b/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/Version.java index 142e2a8e01fd..9583197a8a23 100644 --- a/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/Version.java +++ b/java-storageinsights/google-cloud-storageinsights/src/main/java/com/google/cloud/storageinsights/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-storageinsights:current} - static final String VERSION = "0.78.0"; + static final String VERSION = "0.79.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml b/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml index d4b9ec1e3433..1f08509f1a12 100644 --- a/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml +++ b/java-storageinsights/grpc-google-cloud-storageinsights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-storageinsights-v1 - 0.78.0 + 0.79.0-SNAPSHOT grpc-google-cloud-storageinsights-v1 GRPC library for google-cloud-storageinsights com.google.cloud google-cloud-storageinsights-parent - 0.78.0 + 0.79.0-SNAPSHOT diff --git a/java-storageinsights/pom.xml b/java-storageinsights/pom.xml index ac8bb791dada..3e9904c69f86 100644 --- a/java-storageinsights/pom.xml +++ b/java-storageinsights/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-storageinsights-parent pom - 0.78.0 + 0.79.0-SNAPSHOT Google Storage Insights API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-storageinsights - 0.78.0 + 0.79.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-storageinsights-v1 - 0.78.0 + 0.79.0-SNAPSHOT com.google.api.grpc proto-google-cloud-storageinsights-v1 - 0.78.0 + 0.79.0-SNAPSHOT diff --git a/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml b/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml index 38decc578fbc..db8f88a0a7ee 100644 --- a/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml +++ b/java-storageinsights/proto-google-cloud-storageinsights-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-storageinsights-v1 - 0.78.0 + 0.79.0-SNAPSHOT proto-google-cloud-storageinsights-v1 Proto library for google-cloud-storageinsights com.google.cloud google-cloud-storageinsights-parent - 0.78.0 + 0.79.0-SNAPSHOT diff --git a/java-talent/google-cloud-talent-bom/pom.xml b/java-talent/google-cloud-talent-bom/pom.xml index aafb8d75c79f..acfc784ec0e0 100644 --- a/java-talent/google-cloud-talent-bom/pom.xml +++ b/java-talent/google-cloud-talent-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-talent-bom - 2.94.0 + 2.95.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,27 +24,27 @@ com.google.cloud google-cloud-talent - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-talent-v4 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-talent-v4 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-talent-v4beta1 - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-talent/google-cloud-talent/pom.xml b/java-talent/google-cloud-talent/pom.xml index 8c2b857b1e97..4b961d7b73e9 100644 --- a/java-talent/google-cloud-talent/pom.xml +++ b/java-talent/google-cloud-talent/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-talent - 2.94.0 + 2.95.0-SNAPSHOT jar Google Cloud Talent Solution Java idiomatic client for Google Cloud Talent Solution com.google.cloud google-cloud-talent-parent - 2.94.0 + 2.95.0-SNAPSHOT google-cloud-talent diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/Version.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/Version.java index 3433daa058c8..cf80e9285306 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/Version.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-talent:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/Version.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/Version.java index 45c4906e86e6..0aae527a5c87 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/Version.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-talent:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-talent/grpc-google-cloud-talent-v4/pom.xml b/java-talent/grpc-google-cloud-talent-v4/pom.xml index 594461707f1f..1662b784ea34 100644 --- a/java-talent/grpc-google-cloud-talent-v4/pom.xml +++ b/java-talent/grpc-google-cloud-talent-v4/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-talent-v4 - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-talent-v4 GRPC library for grpc-google-cloud-talent-v4 com.google.cloud google-cloud-talent-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml b/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml index a8972f437622..d263a0b93747 100644 --- a/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml +++ b/java-talent/grpc-google-cloud-talent-v4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-talent-v4beta1 GRPC library for grpc-google-cloud-talent-v4beta1 com.google.cloud google-cloud-talent-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-talent/pom.xml b/java-talent/pom.xml index 89bd515a6622..0b4807b46f05 100644 --- a/java-talent/pom.xml +++ b/java-talent/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-talent-parent pom - 2.94.0 + 2.95.0-SNAPSHOT Google Cloud Talent Solution Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,32 +30,32 @@ com.google.api.grpc proto-google-cloud-talent-v4beta1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-talent-v4 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-talent-v4beta1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-talent-v4 - 2.94.0 + 2.95.0-SNAPSHOT com.google.cloud google-cloud-talent - 2.94.0 + 2.95.0-SNAPSHOT com.google.cloud google-cloud-talent-bom - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-talent/proto-google-cloud-talent-v4/pom.xml b/java-talent/proto-google-cloud-talent-v4/pom.xml index ba37fb8a3a50..071588fdce27 100644 --- a/java-talent/proto-google-cloud-talent-v4/pom.xml +++ b/java-talent/proto-google-cloud-talent-v4/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-talent-v4 - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-talent-v4 PROTO library for proto-google-cloud-talent-v4 com.google.cloud google-cloud-talent-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-talent/proto-google-cloud-talent-v4beta1/pom.xml b/java-talent/proto-google-cloud-talent-v4beta1/pom.xml index f87506f3f7b8..22de16a48f8c 100644 --- a/java-talent/proto-google-cloud-talent-v4beta1/pom.xml +++ b/java-talent/proto-google-cloud-talent-v4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-talent-v4beta1 - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-talent-v4beta1 PROTO library for proto-google-cloud-talent-v4beta1 com.google.cloud google-cloud-talent-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-tasks/google-cloud-tasks-bom/pom.xml b/java-tasks/google-cloud-tasks-bom/pom.xml index b0a12dfba56d..91eef0938cc3 100644 --- a/java-tasks/google-cloud-tasks-bom/pom.xml +++ b/java-tasks/google-cloud-tasks-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-tasks-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,37 +24,37 @@ com.google.cloud google-cloud-tasks - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-tasks/google-cloud-tasks/pom.xml b/java-tasks/google-cloud-tasks/pom.xml index b11f80ecba9f..087e4bdcb96f 100644 --- a/java-tasks/google-cloud-tasks/pom.xml +++ b/java-tasks/google-cloud-tasks/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-tasks - 2.93.0 + 2.94.0-SNAPSHOT jar Google Cloud Tasks Java idiomatic client for Google Cloud Tasks com.google.cloud google-cloud-tasks-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-tasks diff --git a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/Version.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/Version.java index 7e9ff2f41d02..256ab31a7e87 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/Version.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-tasks:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/Version.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/Version.java index 28e0491a178b..a5a4a7527b4a 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/Version.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-tasks:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/Version.java b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/Version.java index 3c96b1c3bffc..37ba42612eee 100644 --- a/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/Version.java +++ b/java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-tasks:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-tasks/grpc-google-cloud-tasks-v2/pom.xml b/java-tasks/grpc-google-cloud-tasks-v2/pom.xml index 5c72ce985814..5acd1e6236b1 100644 --- a/java-tasks/grpc-google-cloud-tasks-v2/pom.xml +++ b/java-tasks/grpc-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-tasks-v2 GRPC library for grpc-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml b/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml index 0d9b4ada231a..340e120daee7 100644 --- a/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml +++ b/java-tasks/grpc-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-tasks-v2beta2 GRPC library for grpc-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml b/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml index eb3ddee6fde8..c5c4d18cd7a8 100644 --- a/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml +++ b/java-tasks/grpc-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-tasks-v2beta3 GRPC library for grpc-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-tasks/pom.xml b/java-tasks/pom.xml index c42948695e4b..38f7512300ad 100644 --- a/java-tasks/pom.xml +++ b/java-tasks/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tasks-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Cloud Tasks Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,37 +30,37 @@ com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tasks-v2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta3 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2beta2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tasks-v2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.cloud google-cloud-tasks - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-tasks/proto-google-cloud-tasks-v2/pom.xml b/java-tasks/proto-google-cloud-tasks-v2/pom.xml index aabbfd347c5e..cc67be103c0c 100644 --- a/java-tasks/proto-google-cloud-tasks-v2/pom.xml +++ b/java-tasks/proto-google-cloud-tasks-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-tasks-v2 PROTO library for proto-google-cloud-tasks-v2 com.google.cloud google-cloud-tasks-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml b/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml index d7e5a309436d..c90b6f9decc9 100644 --- a/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml +++ b/java-tasks/proto-google-cloud-tasks-v2beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta2 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-tasks-v2beta2 PROTO library for proto-google-cloud-tasks-v2beta2 com.google.cloud google-cloud-tasks-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml b/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml index 081ebc0b31f6..9686a1c34968 100644 --- a/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml +++ b/java-tasks/proto-google-cloud-tasks-v2beta3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tasks-v2beta3 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-tasks-v2beta3 PROTO library for proto-google-cloud-tasks-v2beta3 com.google.cloud google-cloud-tasks-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml b/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml index 22f074b6aba8..0970aa203276 100644 --- a/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml +++ b/java-telcoautomation/google-cloud-telcoautomation-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-telcoautomation-bom - 0.63.0 + 0.64.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-telcoautomation - 0.63.0 + 0.64.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-telcoautomation-v1 - 0.63.0 + 0.64.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-telcoautomation-v1alpha1 - 0.63.0 + 0.64.0-SNAPSHOT com.google.api.grpc proto-google-cloud-telcoautomation-v1 - 0.63.0 + 0.64.0-SNAPSHOT com.google.api.grpc proto-google-cloud-telcoautomation-v1alpha1 - 0.63.0 + 0.64.0-SNAPSHOT diff --git a/java-telcoautomation/google-cloud-telcoautomation/pom.xml b/java-telcoautomation/google-cloud-telcoautomation/pom.xml index d0824723c02f..3781152931de 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/pom.xml +++ b/java-telcoautomation/google-cloud-telcoautomation/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-telcoautomation - 0.63.0 + 0.64.0-SNAPSHOT jar Google Telco Automation API Telco Automation API APIs to automate 5G deployment and management of cloud infrastructure and network functions. com.google.cloud google-cloud-telcoautomation-parent - 0.63.0 + 0.64.0-SNAPSHOT google-cloud-telcoautomation diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/Version.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/Version.java index 62d32784b739..85ac25e08cd0 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/Version.java +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-telcoautomation:current} - static final String VERSION = "0.63.0"; + static final String VERSION = "0.64.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/Version.java b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/Version.java index 1ca0d3f4b739..05982dc1ba55 100644 --- a/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/Version.java +++ b/java-telcoautomation/google-cloud-telcoautomation/src/main/java/com/google/cloud/telcoautomation/v1alpha1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-telcoautomation:current} - static final String VERSION = "0.63.0"; + static final String VERSION = "0.64.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml index d8da3cd6f4d1..c4d81e81c0df 100644 --- a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml +++ b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1 - 0.63.0 + 0.64.0-SNAPSHOT grpc-google-cloud-telcoautomation-v1 GRPC library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.63.0 + 0.64.0-SNAPSHOT diff --git a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml index 20a780c34735..305a703dbfca 100644 --- a/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml +++ b/java-telcoautomation/grpc-google-cloud-telcoautomation-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-telcoautomation-v1alpha1 - 0.63.0 + 0.64.0-SNAPSHOT grpc-google-cloud-telcoautomation-v1alpha1 GRPC library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.63.0 + 0.64.0-SNAPSHOT diff --git a/java-telcoautomation/pom.xml b/java-telcoautomation/pom.xml index 32c698d670c1..a8d712c1c53f 100644 --- a/java-telcoautomation/pom.xml +++ b/java-telcoautomation/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-telcoautomation-parent pom - 0.63.0 + 0.64.0-SNAPSHOT Google Telco Automation API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-telcoautomation - 0.63.0 + 0.64.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-telcoautomation-v1 - 0.63.0 + 0.64.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-telcoautomation-v1alpha1 - 0.63.0 + 0.64.0-SNAPSHOT com.google.api.grpc proto-google-cloud-telcoautomation-v1 - 0.63.0 + 0.64.0-SNAPSHOT com.google.api.grpc proto-google-cloud-telcoautomation-v1alpha1 - 0.63.0 + 0.64.0-SNAPSHOT diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml index 5cbc8d812a95..da3f14249802 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1 - 0.63.0 + 0.64.0-SNAPSHOT proto-google-cloud-telcoautomation-v1 Proto library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.63.0 + 0.64.0-SNAPSHOT diff --git a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml index c0a9c7079a59..bb2235c2cf72 100644 --- a/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml +++ b/java-telcoautomation/proto-google-cloud-telcoautomation-v1alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-telcoautomation-v1alpha1 - 0.63.0 + 0.64.0-SNAPSHOT proto-google-cloud-telcoautomation-v1alpha1 Proto library for google-cloud-telcoautomation com.google.cloud google-cloud-telcoautomation-parent - 0.63.0 + 0.64.0-SNAPSHOT diff --git a/java-texttospeech/google-cloud-texttospeech-bom/pom.xml b/java-texttospeech/google-cloud-texttospeech-bom/pom.xml index 16ad885a2d58..1e8bf59f2d33 100644 --- a/java-texttospeech/google-cloud-texttospeech-bom/pom.xml +++ b/java-texttospeech/google-cloud-texttospeech-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-texttospeech-bom - 2.94.0 + 2.95.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,27 +24,27 @@ com.google.cloud google-cloud-texttospeech - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-texttospeech-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-texttospeech/google-cloud-texttospeech/pom.xml b/java-texttospeech/google-cloud-texttospeech/pom.xml index 694c1673fc45..21a62b0be733 100644 --- a/java-texttospeech/google-cloud-texttospeech/pom.xml +++ b/java-texttospeech/google-cloud-texttospeech/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-texttospeech - 2.94.0 + 2.95.0-SNAPSHOT jar Google Cloud Text-to-Speech Java idiomatic client for Google Cloud Text-to-Speech com.google.cloud google-cloud-texttospeech-parent - 2.94.0 + 2.95.0-SNAPSHOT google-cloud-texttospeech diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/Version.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/Version.java index 92dcb4cd5542..aa46342d5984 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/Version.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-texttospeech:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/Version.java b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/Version.java index 11d1ce7a4b63..bc3083e937d2 100644 --- a/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/Version.java +++ b/java-texttospeech/google-cloud-texttospeech/src/main/java/com/google/cloud/texttospeech/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-texttospeech:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml b/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml index ab6f4f3f750d..8b16228a9670 100644 --- a/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml +++ b/java-texttospeech/grpc-google-cloud-texttospeech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-texttospeech-v1 GRPC library for grpc-google-cloud-texttospeech-v1 com.google.cloud google-cloud-texttospeech-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml b/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml index 7c4d003e52d7..7ec862f49a18 100644 --- a/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml +++ b/java-texttospeech/grpc-google-cloud-texttospeech-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-texttospeech-v1beta1 GRPC library for grpc-google-cloud-texttospeech-v1beta1 com.google.cloud google-cloud-texttospeech-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-texttospeech/pom.xml b/java-texttospeech/pom.xml index 28dc80418655..e9fc4a0b76ef 100644 --- a/java-texttospeech/pom.xml +++ b/java-texttospeech/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-texttospeech-parent pom - 2.94.0 + 2.95.0-SNAPSHOT Google Cloud Text-to-Speech Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.api.grpc proto-google-cloud-texttospeech-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1beta1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-texttospeech-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.cloud google-cloud-texttospeech - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml b/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml index 6c1f39af2b0d..757ab4286a6a 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-texttospeech-v1 - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-texttospeech-v1 PROTO library for proto-google-cloud-texttospeech-v1 com.google.cloud google-cloud-texttospeech-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml index 424a9f5a0808..dfba2cd8a244 100644 --- a/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml +++ b/java-texttospeech/proto-google-cloud-texttospeech-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-texttospeech-v1beta1 - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-texttospeech-v1beta1 PROTO library for proto-google-cloud-texttospeech-v1beta1 com.google.cloud google-cloud-texttospeech-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-tpu/google-cloud-tpu-bom/pom.xml b/java-tpu/google-cloud-tpu-bom/pom.xml index 9f10caaa98b8..ccbd3969e20d 100644 --- a/java-tpu/google-cloud-tpu-bom/pom.xml +++ b/java-tpu/google-cloud-tpu-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-tpu-bom - 2.94.0 + 2.95.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,37 +28,37 @@ com.google.cloud google-cloud-tpu - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tpu-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tpu-v2alpha1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tpu-v2 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tpu-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tpu-v2alpha1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tpu-v2 - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-tpu/google-cloud-tpu/pom.xml b/java-tpu/google-cloud-tpu/pom.xml index f50b090b784e..ab9e81e4a2ce 100644 --- a/java-tpu/google-cloud-tpu/pom.xml +++ b/java-tpu/google-cloud-tpu/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-tpu - 2.94.0 + 2.95.0-SNAPSHOT jar Google Cloud TPU Cloud TPU are Google's custom-developed application-specific integrated circuits (ASICs) used to accelerate machine learning workloads. com.google.cloud google-cloud-tpu-parent - 2.94.0 + 2.95.0-SNAPSHOT google-cloud-tpu diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/Version.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/Version.java index f94301ff3079..dc791e069feb 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/Version.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-tpu:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/Version.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/Version.java index f7ba4ec10fe8..f5e9a3a8d87d 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/Version.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-tpu:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/Version.java b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/Version.java index b2a98920e90b..b6c255a0f90a 100644 --- a/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/Version.java +++ b/java-tpu/google-cloud-tpu/src/main/java/com/google/cloud/tpu/v2alpha1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-tpu:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-tpu/grpc-google-cloud-tpu-v1/pom.xml b/java-tpu/grpc-google-cloud-tpu-v1/pom.xml index df7070be2176..bfbf4fe7619e 100644 --- a/java-tpu/grpc-google-cloud-tpu-v1/pom.xml +++ b/java-tpu/grpc-google-cloud-tpu-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tpu-v1 - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-tpu-v1 GRPC library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-tpu/grpc-google-cloud-tpu-v2/pom.xml b/java-tpu/grpc-google-cloud-tpu-v2/pom.xml index cf5c398c1d89..6188a33beda6 100644 --- a/java-tpu/grpc-google-cloud-tpu-v2/pom.xml +++ b/java-tpu/grpc-google-cloud-tpu-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tpu-v2 - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-tpu-v2 GRPC library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml b/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml index 676fbfd23a1f..29697cfaeac0 100644 --- a/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml +++ b/java-tpu/grpc-google-cloud-tpu-v2alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-tpu-v2alpha1 - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-tpu-v2alpha1 GRPC library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-tpu/pom.xml b/java-tpu/pom.xml index d6d87b6ef449..fb2044f81c07 100644 --- a/java-tpu/pom.xml +++ b/java-tpu/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-tpu-parent pom - 2.94.0 + 2.95.0-SNAPSHOT Google Cloud TPU Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,37 +30,37 @@ com.google.cloud google-cloud-tpu - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tpu-v2 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tpu-v2 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tpu-v2alpha1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tpu-v2alpha1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-tpu-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-tpu-v1 - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-tpu/proto-google-cloud-tpu-v1/pom.xml b/java-tpu/proto-google-cloud-tpu-v1/pom.xml index 975a503bb365..c7f388f7c024 100644 --- a/java-tpu/proto-google-cloud-tpu-v1/pom.xml +++ b/java-tpu/proto-google-cloud-tpu-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tpu-v1 - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-tpu-v1 Proto library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-tpu/proto-google-cloud-tpu-v2/pom.xml b/java-tpu/proto-google-cloud-tpu-v2/pom.xml index 3a5a1cfb6580..2a426a1779af 100644 --- a/java-tpu/proto-google-cloud-tpu-v2/pom.xml +++ b/java-tpu/proto-google-cloud-tpu-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tpu-v2 - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-tpu-v2 Proto library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml b/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml index 6b3867a6d590..2015c2882467 100644 --- a/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml +++ b/java-tpu/proto-google-cloud-tpu-v2alpha1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-tpu-v2alpha1 - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-tpu-v2alpha1 Proto library for google-cloud-tpu com.google.cloud google-cloud-tpu-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-trace/google-cloud-trace-bom/pom.xml b/java-trace/google-cloud-trace-bom/pom.xml index 890bc214c74b..e9bf27ee2a74 100644 --- a/java-trace/google-cloud-trace-bom/pom.xml +++ b/java-trace/google-cloud-trace-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-trace-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,27 +24,27 @@ com.google.cloud google-cloud-trace - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-trace-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-trace-v2 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-trace/google-cloud-trace/pom.xml b/java-trace/google-cloud-trace/pom.xml index 6838f45737ca..9de539dfd1a2 100644 --- a/java-trace/google-cloud-trace/pom.xml +++ b/java-trace/google-cloud-trace/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-trace - 2.93.0 + 2.94.0-SNAPSHOT jar Google Cloud Trace @@ -12,7 +12,7 @@ com.google.cloud google-cloud-trace-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-trace diff --git a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/stub/Version.java b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/stub/Version.java index e84bd48799ac..718e45c4da3b 100644 --- a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/stub/Version.java +++ b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-trace:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/stub/Version.java b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/stub/Version.java index a590933c0c7e..764ab5fae2d1 100644 --- a/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/stub/Version.java +++ b/java-trace/google-cloud-trace/src/main/java/com/google/cloud/trace/v2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-trace:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-trace/grpc-google-cloud-trace-v1/pom.xml b/java-trace/grpc-google-cloud-trace-v1/pom.xml index 711614246636..31b32a622523 100644 --- a/java-trace/grpc-google-cloud-trace-v1/pom.xml +++ b/java-trace/grpc-google-cloud-trace-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-trace-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-trace-v1 GRPC library for grpc-google-cloud-trace-v1 com.google.cloud google-cloud-trace-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-trace/grpc-google-cloud-trace-v2/pom.xml b/java-trace/grpc-google-cloud-trace-v2/pom.xml index 80d76c6dd484..b1c9121d07b3 100644 --- a/java-trace/grpc-google-cloud-trace-v2/pom.xml +++ b/java-trace/grpc-google-cloud-trace-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-trace-v2 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-trace-v2 GRPC library for grpc-google-cloud-trace-v2 com.google.cloud google-cloud-trace-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-trace/pom.xml b/java-trace/pom.xml index 4cc6d7b77d22..5fef712412de 100644 --- a/java-trace/pom.xml +++ b/java-trace/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-trace-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Cloud Trace Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.api.grpc proto-google-cloud-trace-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.cloud google-cloud-trace - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-trace-v2 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-trace-v2 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-trace/proto-google-cloud-trace-v1/pom.xml b/java-trace/proto-google-cloud-trace-v1/pom.xml index 00ec187fd0dc..0e18ae35743b 100644 --- a/java-trace/proto-google-cloud-trace-v1/pom.xml +++ b/java-trace/proto-google-cloud-trace-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-trace-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-trace-v1 PROTO library for proto-google-cloud-trace-v1 com.google.cloud google-cloud-trace-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-trace/proto-google-cloud-trace-v2/pom.xml b/java-trace/proto-google-cloud-trace-v2/pom.xml index 7607f6027fad..03730440c3d7 100644 --- a/java-trace/proto-google-cloud-trace-v2/pom.xml +++ b/java-trace/proto-google-cloud-trace-v2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-trace-v2 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-trace-v2 PROTO library for proto-google-cloud-trace-v2 com.google.cloud google-cloud-trace-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-translate/google-cloud-translate-bom/pom.xml b/java-translate/google-cloud-translate-bom/pom.xml index 04f8ca224cb4..a3a04b413372 100644 --- a/java-translate/google-cloud-translate-bom/pom.xml +++ b/java-translate/google-cloud-translate-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-translate-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,27 +24,27 @@ com.google.cloud google-cloud-translate - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-translate-v3beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-translate-v3 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-translate-v3beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-translate-v3 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-translate/google-cloud-translate/pom.xml b/java-translate/google-cloud-translate/pom.xml index b440ae1a34a1..d12209f49757 100644 --- a/java-translate/google-cloud-translate/pom.xml +++ b/java-translate/google-cloud-translate/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-translate - 2.93.0 + 2.94.0-SNAPSHOT jar Google Cloud Translate Java idiomatic client for Google Cloud Translate com.google.cloud google-cloud-translate-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-translate diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/Version.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/Version.java index 2d32197c9e14..f650e71e4cb1 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/Version.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-translate:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/Version.java b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/Version.java index 57666b409ccd..de11215f3d05 100644 --- a/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/Version.java +++ b/java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-translate:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-translate/grpc-google-cloud-translate-v3/pom.xml b/java-translate/grpc-google-cloud-translate-v3/pom.xml index 4b51688466c8..dbdc9c53735d 100644 --- a/java-translate/grpc-google-cloud-translate-v3/pom.xml +++ b/java-translate/grpc-google-cloud-translate-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-translate-v3 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-translate-v3 GRPC library for grpc-google-cloud-translate-v3 com.google.cloud google-cloud-translate-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml b/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml index cd0642f25047..3a19dfbdaf65 100644 --- a/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml +++ b/java-translate/grpc-google-cloud-translate-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-translate-v3beta1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-translate-v3beta1 GRPC library for grpc-google-cloud-translate-v3beta1 com.google.cloud google-cloud-translate-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-translate/pom.xml b/java-translate/pom.xml index 4053254c2abc..c3b4fad6e089 100644 --- a/java-translate/pom.xml +++ b/java-translate/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-translate-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Cloud Translate Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.api.grpc proto-google-cloud-translate-v3beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-translate-v3 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-translate-v3beta1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-translate-v3 - 2.93.0 + 2.94.0-SNAPSHOT com.google.cloud google-cloud-translate - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-translate/proto-google-cloud-translate-v3/pom.xml b/java-translate/proto-google-cloud-translate-v3/pom.xml index 3b1f34f7fd9e..2954702aa110 100644 --- a/java-translate/proto-google-cloud-translate-v3/pom.xml +++ b/java-translate/proto-google-cloud-translate-v3/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-translate-v3 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-translate-v3 PROTO library for proto-google-cloud-translate-v3 com.google.cloud google-cloud-translate-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-translate/proto-google-cloud-translate-v3beta1/pom.xml b/java-translate/proto-google-cloud-translate-v3beta1/pom.xml index 21232a9539f8..d42b07e8eb9d 100644 --- a/java-translate/proto-google-cloud-translate-v3beta1/pom.xml +++ b/java-translate/proto-google-cloud-translate-v3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-translate-v3beta1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-translate-v3beta1 PROTO library for proto-google-cloud-translate-v3beta1 com.google.cloud google-cloud-translate-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-valkey/google-cloud-valkey-bom/pom.xml b/java-valkey/google-cloud-valkey-bom/pom.xml index 65951641fdf7..541c5b1bb8c2 100644 --- a/java-valkey/google-cloud-valkey-bom/pom.xml +++ b/java-valkey/google-cloud-valkey-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-valkey-bom - 0.39.0 + 0.40.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-valkey - 0.39.0 + 0.40.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-valkey-v1beta - 0.39.0 + 0.40.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-valkey-v1 - 0.39.0 + 0.40.0-SNAPSHOT com.google.api.grpc proto-google-cloud-valkey-v1 - 0.39.0 + 0.40.0-SNAPSHOT com.google.api.grpc proto-google-cloud-valkey-v1beta - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-valkey/google-cloud-valkey/pom.xml b/java-valkey/google-cloud-valkey/pom.xml index 3558c5411305..8f2c02a1d01b 100644 --- a/java-valkey/google-cloud-valkey/pom.xml +++ b/java-valkey/google-cloud-valkey/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-valkey - 0.39.0 + 0.40.0-SNAPSHOT jar Google Memorystore API Memorystore API Memorystore for Valkey is a fully managed Valkey Cluster service for Google Cloud. com.google.cloud google-cloud-valkey-parent - 0.39.0 + 0.40.0-SNAPSHOT google-cloud-valkey diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/Version.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/Version.java index bbe54f67aff3..d27624cc4310 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/Version.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-valkey:current} - static final String VERSION = "0.39.0"; + static final String VERSION = "0.40.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/Version.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/Version.java index c79a9d14eb9d..7b25da9177f2 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/Version.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-valkey:current} - static final String VERSION = "0.39.0"; + static final String VERSION = "0.40.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-valkey/grpc-google-cloud-valkey-v1/pom.xml b/java-valkey/grpc-google-cloud-valkey-v1/pom.xml index 7138fa6fe032..e811aa75bc89 100644 --- a/java-valkey/grpc-google-cloud-valkey-v1/pom.xml +++ b/java-valkey/grpc-google-cloud-valkey-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-valkey-v1 - 0.39.0 + 0.40.0-SNAPSHOT grpc-google-cloud-valkey-v1 GRPC library for google-cloud-valkey com.google.cloud google-cloud-valkey-parent - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-valkey/grpc-google-cloud-valkey-v1beta/pom.xml b/java-valkey/grpc-google-cloud-valkey-v1beta/pom.xml index c7f7aecc6069..ce4436c7c060 100644 --- a/java-valkey/grpc-google-cloud-valkey-v1beta/pom.xml +++ b/java-valkey/grpc-google-cloud-valkey-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-valkey-v1beta - 0.39.0 + 0.40.0-SNAPSHOT grpc-google-cloud-valkey-v1beta GRPC library for google-cloud-valkey com.google.cloud google-cloud-valkey-parent - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-valkey/pom.xml b/java-valkey/pom.xml index 37269e0a24a0..c4422cece96f 100644 --- a/java-valkey/pom.xml +++ b/java-valkey/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-valkey-parent pom - 0.39.0 + 0.40.0-SNAPSHOT Google Memorystore API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-valkey - 0.39.0 + 0.40.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-valkey-v1 - 0.39.0 + 0.40.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-valkey-v1beta - 0.39.0 + 0.40.0-SNAPSHOT com.google.api.grpc proto-google-cloud-valkey-v1 - 0.39.0 + 0.40.0-SNAPSHOT com.google.api.grpc proto-google-cloud-valkey-v1beta - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-valkey/proto-google-cloud-valkey-v1/pom.xml b/java-valkey/proto-google-cloud-valkey-v1/pom.xml index 676ff49f1734..715f77bd8544 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/pom.xml +++ b/java-valkey/proto-google-cloud-valkey-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-valkey-v1 - 0.39.0 + 0.40.0-SNAPSHOT proto-google-cloud-valkey-v1 Proto library for google-cloud-valkey com.google.cloud google-cloud-valkey-parent - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-valkey/proto-google-cloud-valkey-v1beta/pom.xml b/java-valkey/proto-google-cloud-valkey-v1beta/pom.xml index c7b1bcf184c8..440647e31409 100644 --- a/java-valkey/proto-google-cloud-valkey-v1beta/pom.xml +++ b/java-valkey/proto-google-cloud-valkey-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-valkey-v1beta - 0.39.0 + 0.40.0-SNAPSHOT proto-google-cloud-valkey-v1beta Proto library for google-cloud-valkey com.google.cloud google-cloud-valkey-parent - 0.39.0 + 0.40.0-SNAPSHOT diff --git a/java-vectorsearch/google-cloud-vectorsearch-bom/pom.xml b/java-vectorsearch/google-cloud-vectorsearch-bom/pom.xml index 22c1033daee8..3ae561421f1c 100644 --- a/java-vectorsearch/google-cloud-vectorsearch-bom/pom.xml +++ b/java-vectorsearch/google-cloud-vectorsearch-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-vectorsearch-bom - 0.15.0 + 0.16.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,27 +27,27 @@ com.google.cloud google-cloud-vectorsearch - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vectorsearch-v1beta - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vectorsearch-v1 - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vectorsearch-v1beta - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vectorsearch-v1 - 0.15.0 + 0.16.0-SNAPSHOT diff --git a/java-vectorsearch/google-cloud-vectorsearch/pom.xml b/java-vectorsearch/google-cloud-vectorsearch/pom.xml index 6b0f547997b4..ede1e0851ba4 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/pom.xml +++ b/java-vectorsearch/google-cloud-vectorsearch/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vectorsearch - 0.15.0 + 0.16.0-SNAPSHOT jar Google Vector Search API Vector Search API The Vector Search API provides a fully-managed, highly performant, and scalable vector database designed to power next-generation search, recommendation, and generative AI applications. It allows you to store, index, and query your data and its corresponding vector embeddings through a simple, intuitive interface. With Vector Search, you can define custom schemas for your data, insert objects with associated metadata, automatically generate embeddings from your data, and perform fast approximate nearest neighbor (ANN) searches to find semantically similar items at scale. com.google.cloud google-cloud-vectorsearch-parent - 0.15.0 + 0.16.0-SNAPSHOT google-cloud-vectorsearch diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/Version.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/Version.java index 8ec8d23869d0..b9a0f9c76d64 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/Version.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-vectorsearch:current} - static final String VERSION = "0.15.0"; + static final String VERSION = "0.16.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/Version.java b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/Version.java index 9d19c00083bb..75db732ddce1 100644 --- a/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/Version.java +++ b/java-vectorsearch/google-cloud-vectorsearch/src/main/java/com/google/cloud/vectorsearch/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-vectorsearch:current} - static final String VERSION = "0.15.0"; + static final String VERSION = "0.16.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-vectorsearch/grpc-google-cloud-vectorsearch-v1/pom.xml b/java-vectorsearch/grpc-google-cloud-vectorsearch-v1/pom.xml index b2cfe65af0aa..2318e3c6b690 100644 --- a/java-vectorsearch/grpc-google-cloud-vectorsearch-v1/pom.xml +++ b/java-vectorsearch/grpc-google-cloud-vectorsearch-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vectorsearch-v1 - 0.15.0 + 0.16.0-SNAPSHOT grpc-google-cloud-vectorsearch-v1 GRPC library for google-cloud-vectorsearch com.google.cloud google-cloud-vectorsearch-parent - 0.15.0 + 0.16.0-SNAPSHOT diff --git a/java-vectorsearch/grpc-google-cloud-vectorsearch-v1beta/pom.xml b/java-vectorsearch/grpc-google-cloud-vectorsearch-v1beta/pom.xml index dcfcffddab26..1f697120ff61 100644 --- a/java-vectorsearch/grpc-google-cloud-vectorsearch-v1beta/pom.xml +++ b/java-vectorsearch/grpc-google-cloud-vectorsearch-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vectorsearch-v1beta - 0.15.0 + 0.16.0-SNAPSHOT grpc-google-cloud-vectorsearch-v1beta GRPC library for google-cloud-vectorsearch com.google.cloud google-cloud-vectorsearch-parent - 0.15.0 + 0.16.0-SNAPSHOT diff --git a/java-vectorsearch/pom.xml b/java-vectorsearch/pom.xml index 0bf74338899d..a3a6bf06522d 100644 --- a/java-vectorsearch/pom.xml +++ b/java-vectorsearch/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vectorsearch-parent pom - 0.15.0 + 0.16.0-SNAPSHOT Google Vector Search API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-vectorsearch - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vectorsearch-v1 - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vectorsearch-v1 - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vectorsearch-v1beta - 0.15.0 + 0.16.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vectorsearch-v1beta - 0.15.0 + 0.16.0-SNAPSHOT diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/pom.xml b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/pom.xml index 257aa7f157ff..18d46acf4dae 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1/pom.xml +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vectorsearch-v1 - 0.15.0 + 0.16.0-SNAPSHOT proto-google-cloud-vectorsearch-v1 Proto library for google-cloud-vectorsearch com.google.cloud google-cloud-vectorsearch-parent - 0.15.0 + 0.16.0-SNAPSHOT diff --git a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/pom.xml b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/pom.xml index 47b67ffa225a..8456b6f891ee 100644 --- a/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/pom.xml +++ b/java-vectorsearch/proto-google-cloud-vectorsearch-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vectorsearch-v1beta - 0.15.0 + 0.16.0-SNAPSHOT proto-google-cloud-vectorsearch-v1beta Proto library for google-cloud-vectorsearch com.google.cloud google-cloud-vectorsearch-parent - 0.15.0 + 0.16.0-SNAPSHOT diff --git a/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml b/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml index f79c9e68fafb..d2f5b15fe10f 100644 --- a/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml +++ b/java-video-intelligence/google-cloud-video-intelligence-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-video-intelligence-bom - 2.92.0 + 2.93.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,57 +24,57 @@ com.google.cloud google-cloud-video-intelligence - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-video-intelligence/google-cloud-video-intelligence/pom.xml b/java-video-intelligence/google-cloud-video-intelligence/pom.xml index 4aa3ca1aa088..70f62a4feeab 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/pom.xml +++ b/java-video-intelligence/google-cloud-video-intelligence/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-video-intelligence - 2.92.0 + 2.93.0-SNAPSHOT jar Google Cloud Video Intelligence Java idiomatic client for Google Cloud Video Intelligence com.google.cloud google-cloud-video-intelligence-parent - 2.92.0 + 2.93.0-SNAPSHOT google-cloud-video-intelligence diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/Version.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/Version.java index bac646b484cc..287bce46d275 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/Version.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-video-intelligence:current} - static final String VERSION = "2.92.0"; + static final String VERSION = "2.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/Version.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/Version.java index c5d31b104f8b..384e2b27f647 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/Version.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1beta2/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-video-intelligence:current} - static final String VERSION = "2.92.0"; + static final String VERSION = "2.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/Version.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/Version.java index 7deef896e597..7d4a0892da20 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/Version.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-video-intelligence:current} - static final String VERSION = "2.92.0"; + static final String VERSION = "2.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/Version.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/Version.java index 8840797b6d69..df6e3aa85bce 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/Version.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p2beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-video-intelligence:current} - static final String VERSION = "2.92.0"; + static final String VERSION = "2.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/Version.java b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/Version.java index e11bd9a1c2ee..05db87248fcc 100644 --- a/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/Version.java +++ b/java-video-intelligence/google-cloud-video-intelligence/src/main/java/com/google/cloud/videointelligence/v1p3beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-video-intelligence:current} - static final String VERSION = "2.92.0"; + static final String VERSION = "2.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml index cf166ec0cf1c..ae8213ad0384 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 2.92.0 + 2.93.0-SNAPSHOT grpc-google-cloud-video-intelligence-v1 GRPC library for grpc-google-cloud-video-intelligence-v1 com.google.cloud google-cloud-video-intelligence-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml index 08c4d7639508..5498db45b0ef 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 2.92.0 + 2.93.0-SNAPSHOT grpc-google-cloud-video-intelligence-v1beta2 GRPC library for grpc-google-cloud-video-intelligence-v1beta2 com.google.cloud google-cloud-video-intelligence-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml index 9cad305e79de..8c4e04fcd249 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 2.92.0 + 2.93.0-SNAPSHOT grpc-google-cloud-video-intelligence-v1p1beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p1beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml index 616fe3ba125a..52e528e05c1e 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 2.92.0 + 2.93.0-SNAPSHOT grpc-google-cloud-video-intelligence-v1p2beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p2beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml index 6d8f20c9262b..944dc6f7ef64 100644 --- a/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml +++ b/java-video-intelligence/grpc-google-cloud-video-intelligence-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 2.92.0 + 2.93.0-SNAPSHOT grpc-google-cloud-video-intelligence-v1p3beta1 GRPC library for grpc-google-cloud-video-intelligence-v1p3beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-video-intelligence/pom.xml b/java-video-intelligence/pom.xml index 51121e57b82b..172ebfae78e4 100644 --- a/java-video-intelligence/pom.xml +++ b/java-video-intelligence/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-video-intelligence-parent pom - 2.92.0 + 2.93.0-SNAPSHOT Google Cloud Video Intelligence Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,62 +30,62 @@ com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p1beta1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1beta2 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p2beta1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-intelligence-v1p3beta1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.cloud google-cloud-video-intelligence - 2.92.0 + 2.93.0-SNAPSHOT com.google.cloud google-cloud-video-intelligence-bom - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml index 99a1b27dd31f..229c61dc636c 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1 - 2.92.0 + 2.93.0-SNAPSHOT proto-google-cloud-video-intelligence-v1 PROTO library for proto-google-cloud-video-intelligence-v1 com.google.cloud google-cloud-video-intelligence-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml index 95b6e65c8f27..fd355f280b22 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1beta2 - 2.92.0 + 2.93.0-SNAPSHOT proto-google-cloud-video-intelligence-v1beta2 PROTO library for proto-google-cloud-video-intelligence-v1beta2 com.google.cloud google-cloud-video-intelligence-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml index c8f7c0b6c6b3..cda44e8160ee 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p1beta1 - 2.92.0 + 2.93.0-SNAPSHOT proto-google-cloud-video-intelligence-v1p1beta1 PROTO library for proto-google-cloud-video-intelligence-v1p1beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml index be138206c387..0ee03d4bf0fd 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p2beta1 - 2.92.0 + 2.93.0-SNAPSHOT proto-google-cloud-video-intelligence-v1p2beta1 PROTO library for proto-google-cloud-video-intelligence-v1p2beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml index e6d7765b25dd..0be4d0ad8fd7 100644 --- a/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml +++ b/java-video-intelligence/proto-google-cloud-video-intelligence-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-intelligence-v1p3beta1 - 2.92.0 + 2.93.0-SNAPSHOT proto-google-cloud-video-intelligence-v1p3beta1 PROTO library for proto-google-cloud-video-intelligence-v1p3beta1 com.google.cloud google-cloud-video-intelligence-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-video-live-stream/google-cloud-live-stream-bom/pom.xml b/java-video-live-stream/google-cloud-live-stream-bom/pom.xml index 2f38a3a22c9f..108a204c13bd 100644 --- a/java-video-live-stream/google-cloud-live-stream-bom/pom.xml +++ b/java-video-live-stream/google-cloud-live-stream-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-live-stream-bom - 0.95.0 + 0.96.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-live-stream - 0.95.0 + 0.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-live-stream-v1 - 0.95.0 + 0.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-live-stream-v1 - 0.95.0 + 0.96.0-SNAPSHOT diff --git a/java-video-live-stream/google-cloud-live-stream/pom.xml b/java-video-live-stream/google-cloud-live-stream/pom.xml index bbbfc94fcae6..d4a2c597857f 100644 --- a/java-video-live-stream/google-cloud-live-stream/pom.xml +++ b/java-video-live-stream/google-cloud-live-stream/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-live-stream - 0.95.0 + 0.96.0-SNAPSHOT jar Google Cloud Live Stream Cloud Live Stream transcodes mezzanine live signals into direct-to-consumer streaming formats, including Dynamic Adaptive Streaming over HTTP (DASH/MPEG-DASH), and HTTP Live Streaming (HLS), for multiple device platforms. com.google.cloud google-cloud-live-stream-parent - 0.95.0 + 0.96.0-SNAPSHOT google-cloud-live-stream diff --git a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/Version.java b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/Version.java index b98582470a5a..e323572eb7d1 100644 --- a/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/Version.java +++ b/java-video-live-stream/google-cloud-live-stream/src/main/java/com/google/cloud/video/livestream/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-live-stream:current} - static final String VERSION = "0.95.0"; + static final String VERSION = "0.96.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml b/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml index c93b6d570313..fdd54e124e8a 100644 --- a/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml +++ b/java-video-live-stream/grpc-google-cloud-live-stream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-live-stream-v1 - 0.95.0 + 0.96.0-SNAPSHOT grpc-google-cloud-live-stream-v1 GRPC library for google-cloud-live-stream com.google.cloud google-cloud-live-stream-parent - 0.95.0 + 0.96.0-SNAPSHOT diff --git a/java-video-live-stream/pom.xml b/java-video-live-stream/pom.xml index 60f0119c93dd..a81987635f87 100644 --- a/java-video-live-stream/pom.xml +++ b/java-video-live-stream/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-live-stream-parent pom - 0.95.0 + 0.96.0-SNAPSHOT Google Cloud Live Stream Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-live-stream - 0.95.0 + 0.96.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-live-stream-v1 - 0.95.0 + 0.96.0-SNAPSHOT com.google.api.grpc proto-google-cloud-live-stream-v1 - 0.95.0 + 0.96.0-SNAPSHOT diff --git a/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml b/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml index 708d31634d36..1e55b36c391d 100644 --- a/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml +++ b/java-video-live-stream/proto-google-cloud-live-stream-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-live-stream-v1 - 0.95.0 + 0.96.0-SNAPSHOT proto-google-cloud-live-stream-v1 Proto library for google-cloud-live-stream com.google.cloud google-cloud-live-stream-parent - 0.95.0 + 0.96.0-SNAPSHOT diff --git a/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml b/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml index c28f266cb069..a0d176effb6c 100644 --- a/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml +++ b/java-video-stitcher/google-cloud-video-stitcher-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-video-stitcher-bom - 0.93.0 + 0.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-video-stitcher - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-stitcher-v1 - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-stitcher-v1 - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-video-stitcher/google-cloud-video-stitcher/pom.xml b/java-video-stitcher/google-cloud-video-stitcher/pom.xml index 5a45f1bb10fa..b3d7a0a6189a 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/pom.xml +++ b/java-video-stitcher/google-cloud-video-stitcher/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-video-stitcher - 0.93.0 + 0.94.0-SNAPSHOT jar Google Video Stitcher API Video Stitcher API allows you to manipulate video content to dynamically insert ads prior to delivery to client devices. com.google.cloud google-cloud-video-stitcher-parent - 0.93.0 + 0.94.0-SNAPSHOT google-cloud-video-stitcher diff --git a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/Version.java b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/Version.java index 159c3da1e253..0fc2ebef9f6c 100644 --- a/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/Version.java +++ b/java-video-stitcher/google-cloud-video-stitcher/src/main/java/com/google/cloud/video/stitcher/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-video-stitcher:current} - static final String VERSION = "0.93.0"; + static final String VERSION = "0.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml b/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml index 6bdbe073a174..d01d30dccb86 100644 --- a/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml +++ b/java-video-stitcher/grpc-google-cloud-video-stitcher-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-stitcher-v1 - 0.93.0 + 0.94.0-SNAPSHOT grpc-google-cloud-video-stitcher-v1 GRPC library for google-cloud-video-stitcher com.google.cloud google-cloud-video-stitcher-parent - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-video-stitcher/pom.xml b/java-video-stitcher/pom.xml index fcf06c55b5f9..cee33708b23a 100644 --- a/java-video-stitcher/pom.xml +++ b/java-video-stitcher/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-video-stitcher-parent pom - 0.93.0 + 0.94.0-SNAPSHOT Google Video Stitcher API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-video-stitcher - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-stitcher-v1 - 0.93.0 + 0.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-stitcher-v1 - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml index 967a1c690e40..00fe2f9eada0 100644 --- a/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml +++ b/java-video-stitcher/proto-google-cloud-video-stitcher-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-stitcher-v1 - 0.93.0 + 0.94.0-SNAPSHOT proto-google-cloud-video-stitcher-v1 Proto library for google-cloud-video-stitcher com.google.cloud google-cloud-video-stitcher-parent - 0.93.0 + 0.94.0-SNAPSHOT diff --git a/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml b/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml index ce1d79cf6b13..9038e8b1e8f3 100644 --- a/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml +++ b/java-video-transcoder/google-cloud-video-transcoder-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-video-transcoder-bom - 1.92.0 + 1.93.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-video-transcoder - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-transcoder-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-transcoder-v1 - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-video-transcoder/google-cloud-video-transcoder/pom.xml b/java-video-transcoder/google-cloud-video-transcoder/pom.xml index f4d229d46dae..b871a25ed5c7 100644 --- a/java-video-transcoder/google-cloud-video-transcoder/pom.xml +++ b/java-video-transcoder/google-cloud-video-transcoder/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-video-transcoder - 1.92.0 + 1.93.0-SNAPSHOT jar Google Video Transcoder allows you to transcode videos into a variety of formats. The Transcoder API benefits broadcasters, production companies, businesses, and individuals looking to transform their video content for use across a variety of user devices. com.google.cloud google-cloud-video-transcoder-parent - 1.92.0 + 1.93.0-SNAPSHOT google-cloud-video-transcoder diff --git a/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/Version.java b/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/Version.java index 3c0b23cd0b4b..d469c87ab162 100644 --- a/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/Version.java +++ b/java-video-transcoder/google-cloud-video-transcoder/src/main/java/com/google/cloud/video/transcoder/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-video-transcoder:current} - static final String VERSION = "1.92.0"; + static final String VERSION = "1.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml b/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml index 2e46a23260e5..e2439d34fab8 100644 --- a/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml +++ b/java-video-transcoder/grpc-google-cloud-video-transcoder-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-video-transcoder-v1 - 1.92.0 + 1.93.0-SNAPSHOT grpc-google-cloud-video-transcoder-v1 GRPC library for google-cloud-video-transcoder com.google.cloud google-cloud-video-transcoder-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-video-transcoder/pom.xml b/java-video-transcoder/pom.xml index 99874601a209..8b1b51b2c457 100644 --- a/java-video-transcoder/pom.xml +++ b/java-video-transcoder/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-video-transcoder-parent pom - 1.92.0 + 1.93.0-SNAPSHOT Google Video Transcoder Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-video-transcoder - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-video-transcoder-v1 - 1.92.0 + 1.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-video-transcoder-v1 - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml index 8d0a5b0d16a7..5c572573cb59 100644 --- a/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml +++ b/java-video-transcoder/proto-google-cloud-video-transcoder-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-video-transcoder-v1 - 1.92.0 + 1.93.0-SNAPSHOT proto-google-cloud-video-transcoder-v1 Proto library for google-cloud-video-transcoder com.google.cloud google-cloud-video-transcoder-parent - 1.92.0 + 1.93.0-SNAPSHOT diff --git a/java-vision/google-cloud-vision-bom/pom.xml b/java-vision/google-cloud-vision-bom/pom.xml index bd0f0cda4c6e..d82f91c2f452 100644 --- a/java-vision/google-cloud-vision-bom/pom.xml +++ b/java-vision/google-cloud-vision-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vision-bom - 3.91.0 + 3.92.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,57 +24,57 @@ com.google.cloud google-cloud-vision - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 3.91.0 + 3.92.0-SNAPSHOT diff --git a/java-vision/google-cloud-vision/pom.xml b/java-vision/google-cloud-vision/pom.xml index a6d6ccfc0c0e..a7914ec1da5a 100644 --- a/java-vision/google-cloud-vision/pom.xml +++ b/java-vision/google-cloud-vision/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vision - 3.91.0 + 3.92.0-SNAPSHOT jar Google Cloud Vision Java idiomatic client for Google Cloud Vision com.google.cloud google-cloud-vision-parent - 3.91.0 + 3.92.0-SNAPSHOT google-cloud-vision diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/Version.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/Version.java index 98872922e1b8..40c4e864be08 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/Version.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-vision:current} - static final String VERSION = "3.91.0"; + static final String VERSION = "3.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/Version.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/Version.java index efbd36f78f94..56ebee263d18 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/Version.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-vision:current} - static final String VERSION = "3.91.0"; + static final String VERSION = "3.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/Version.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/Version.java index 2e003ed96548..eca706d4d52e 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/Version.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p2beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-vision:current} - static final String VERSION = "3.91.0"; + static final String VERSION = "3.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/Version.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/Version.java index 00dc15d5acc3..3e2e3f0cf5ba 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/Version.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p3beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-vision:current} - static final String VERSION = "3.91.0"; + static final String VERSION = "3.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/Version.java b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/Version.java index 7332ae4f13fd..a054835b88ae 100644 --- a/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/Version.java +++ b/java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-vision:current} - static final String VERSION = "3.91.0"; + static final String VERSION = "3.92.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-vision/grpc-google-cloud-vision-v1/pom.xml b/java-vision/grpc-google-cloud-vision-v1/pom.xml index edaeb93423bb..b8eaeae1d434 100644 --- a/java-vision/grpc-google-cloud-vision-v1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1 - 3.91.0 + 3.92.0-SNAPSHOT grpc-google-cloud-vision-v1 GRPC library for grpc-google-cloud-vision-v1 com.google.cloud google-cloud-vision-parent - 3.91.0 + 3.92.0-SNAPSHOT diff --git a/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml index 8dbd74a67702..c4348afd11c7 100644 --- a/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 3.91.0 + 3.92.0-SNAPSHOT grpc-google-cloud-vision-v1p1beta1 GRPC library for grpc-google-cloud-vision-v1p1beta1 com.google.cloud google-cloud-vision-parent - 3.91.0 + 3.92.0-SNAPSHOT diff --git a/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml index a3cb46f4583d..69229fa28a3e 100644 --- a/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 3.91.0 + 3.92.0-SNAPSHOT grpc-google-cloud-vision-v1p2beta1 GRPC library for grpc-google-cloud-vision-v1p2beta1 com.google.cloud google-cloud-vision-parent - 3.91.0 + 3.92.0-SNAPSHOT diff --git a/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml index efeaa49541a5..d73f151d3953 100644 --- a/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 3.91.0 + 3.92.0-SNAPSHOT grpc-google-cloud-vision-v1p3beta1 GRPC library for grpc-google-cloud-vision-v1p3beta1 com.google.cloud google-cloud-vision-parent - 3.91.0 + 3.92.0-SNAPSHOT diff --git a/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml b/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml index 1fa8b6cabab5..2c4f0f67f3d1 100644 --- a/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml +++ b/java-vision/grpc-google-cloud-vision-v1p4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 3.91.0 + 3.92.0-SNAPSHOT grpc-google-cloud-vision-v1p4beta1 GRPC library for grpc-google-cloud-vision-v1p4beta1 com.google.cloud google-cloud-vision-parent - 3.91.0 + 3.92.0-SNAPSHOT diff --git a/java-vision/pom.xml b/java-vision/pom.xml index 6a1af8839299..69448dd582e0 100644 --- a/java-vision/pom.xml +++ b/java-vision/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vision-parent pom - 3.91.0 + 3.92.0-SNAPSHOT Google Cloud Vision Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,57 +30,57 @@ com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p3beta1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p1beta1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p4beta1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1p2beta1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vision-v1 - 3.91.0 + 3.92.0-SNAPSHOT com.google.cloud google-cloud-vision - 3.91.0 + 3.92.0-SNAPSHOT diff --git a/java-vision/proto-google-cloud-vision-v1/pom.xml b/java-vision/proto-google-cloud-vision-v1/pom.xml index 4ef6ca935066..92ffa519efba 100644 --- a/java-vision/proto-google-cloud-vision-v1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1 - 3.91.0 + 3.92.0-SNAPSHOT proto-google-cloud-vision-v1 PROTO library for proto-google-cloud-vision-v1 com.google.cloud google-cloud-vision-parent - 3.91.0 + 3.92.0-SNAPSHOT diff --git a/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml index f958381a95e0..38e19335bb1a 100644 --- a/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p1beta1 - 3.91.0 + 3.92.0-SNAPSHOT proto-google-cloud-vision-v1p1beta1 PROTO library for proto-google-cloud-vision-v1p1beta1 com.google.cloud google-cloud-vision-parent - 3.91.0 + 3.92.0-SNAPSHOT diff --git a/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml index c02e7819131b..99ec67550153 100644 --- a/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p2beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p2beta1 - 3.91.0 + 3.92.0-SNAPSHOT proto-google-cloud-vision-v1p2beta1 PROTO library for proto-google-cloud-vision-v1p2beta1 com.google.cloud google-cloud-vision-parent - 3.91.0 + 3.92.0-SNAPSHOT diff --git a/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml index 0b3e4cef4886..1e7c47354e18 100644 --- a/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p3beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p3beta1 - 3.91.0 + 3.92.0-SNAPSHOT proto-google-cloud-vision-v1p3beta1 PROTO library for proto-google-cloud-vision-v1p3beta1 com.google.cloud google-cloud-vision-parent - 3.91.0 + 3.92.0-SNAPSHOT diff --git a/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml b/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml index fb395209494e..091b282dc72e 100644 --- a/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml +++ b/java-vision/proto-google-cloud-vision-v1p4beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vision-v1p4beta1 - 3.91.0 + 3.92.0-SNAPSHOT proto-google-cloud-vision-v1p4beta1 PROTO library for proto-google-cloud-vision-v1p4beta1 com.google.cloud google-cloud-vision-parent - 3.91.0 + 3.92.0-SNAPSHOT diff --git a/java-visionai/google-cloud-visionai-bom/pom.xml b/java-visionai/google-cloud-visionai-bom/pom.xml index 582f7705bbf3..6850e93fb669 100644 --- a/java-visionai/google-cloud-visionai-bom/pom.xml +++ b/java-visionai/google-cloud-visionai-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-visionai-bom - 0.50.0 + 0.51.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-visionai - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-visionai-v1 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc proto-google-cloud-visionai-v1 - 0.50.0 + 0.51.0-SNAPSHOT diff --git a/java-visionai/google-cloud-visionai/pom.xml b/java-visionai/google-cloud-visionai/pom.xml index 30cea82b5ab4..881879940429 100644 --- a/java-visionai/google-cloud-visionai/pom.xml +++ b/java-visionai/google-cloud-visionai/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-visionai - 0.50.0 + 0.51.0-SNAPSHOT jar Google Vision AI API Vision AI API Vertex AI Vision is an AI-powered platform to ingest, analyze and store video data. com.google.cloud google-cloud-visionai-parent - 0.50.0 + 0.51.0-SNAPSHOT google-cloud-visionai diff --git a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/Version.java b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/Version.java index a65b773fc833..ec6f794e96c7 100644 --- a/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/Version.java +++ b/java-visionai/google-cloud-visionai/src/main/java/com/google/cloud/visionai/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-visionai:current} - static final String VERSION = "0.50.0"; + static final String VERSION = "0.51.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-visionai/grpc-google-cloud-visionai-v1/pom.xml b/java-visionai/grpc-google-cloud-visionai-v1/pom.xml index f52ce00722d2..9fd60dab6bcd 100644 --- a/java-visionai/grpc-google-cloud-visionai-v1/pom.xml +++ b/java-visionai/grpc-google-cloud-visionai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-visionai-v1 - 0.50.0 + 0.51.0-SNAPSHOT grpc-google-cloud-visionai-v1 GRPC library for google-cloud-visionai com.google.cloud google-cloud-visionai-parent - 0.50.0 + 0.51.0-SNAPSHOT diff --git a/java-visionai/pom.xml b/java-visionai/pom.xml index e8c5d70c6d9e..7acadfc96e0b 100644 --- a/java-visionai/pom.xml +++ b/java-visionai/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-visionai-parent pom - 0.50.0 + 0.51.0-SNAPSHOT Google Vision AI API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-visionai - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-visionai-v1 - 0.50.0 + 0.51.0-SNAPSHOT com.google.api.grpc proto-google-cloud-visionai-v1 - 0.50.0 + 0.51.0-SNAPSHOT diff --git a/java-visionai/proto-google-cloud-visionai-v1/pom.xml b/java-visionai/proto-google-cloud-visionai-v1/pom.xml index e9fd03fe9240..a1937bb6580e 100644 --- a/java-visionai/proto-google-cloud-visionai-v1/pom.xml +++ b/java-visionai/proto-google-cloud-visionai-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-visionai-v1 - 0.50.0 + 0.51.0-SNAPSHOT proto-google-cloud-visionai-v1 Proto library for google-cloud-visionai com.google.cloud google-cloud-visionai-parent - 0.50.0 + 0.51.0-SNAPSHOT diff --git a/java-vmmigration/google-cloud-vmmigration-bom/pom.xml b/java-vmmigration/google-cloud-vmmigration-bom/pom.xml index a4118349e638..32108daccdb0 100644 --- a/java-vmmigration/google-cloud-vmmigration-bom/pom.xml +++ b/java-vmmigration/google-cloud-vmmigration-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vmmigration-bom - 1.93.0 + 1.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-vmmigration - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vmmigration-v1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vmmigration-v1 - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-vmmigration/google-cloud-vmmigration/pom.xml b/java-vmmigration/google-cloud-vmmigration/pom.xml index ea7ee49a7826..91d928567a5b 100644 --- a/java-vmmigration/google-cloud-vmmigration/pom.xml +++ b/java-vmmigration/google-cloud-vmmigration/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vmmigration - 1.93.0 + 1.94.0-SNAPSHOT jar Google VM Migration VM Migration helps customers migrating VMs to GCP at no additional cost, as well as an extensive ecosystem of partners to help with discovery and assessment, planning, migration, special use cases, and more. com.google.cloud google-cloud-vmmigration-parent - 1.93.0 + 1.94.0-SNAPSHOT google-cloud-vmmigration diff --git a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/Version.java b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/Version.java index e40e5e40d046..9f84e7a37cda 100644 --- a/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/Version.java +++ b/java-vmmigration/google-cloud-vmmigration/src/main/java/com/google/cloud/vmmigration/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-vmmigration:current} - static final String VERSION = "1.93.0"; + static final String VERSION = "1.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml b/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml index 9e8b6c26e1a1..901455896d2c 100644 --- a/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml +++ b/java-vmmigration/grpc-google-cloud-vmmigration-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vmmigration-v1 - 1.93.0 + 1.94.0-SNAPSHOT grpc-google-cloud-vmmigration-v1 GRPC library for google-cloud-vmmigration com.google.cloud google-cloud-vmmigration-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-vmmigration/pom.xml b/java-vmmigration/pom.xml index 39bbc4576f6f..b7284d3338ec 100644 --- a/java-vmmigration/pom.xml +++ b/java-vmmigration/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vmmigration-parent pom - 1.93.0 + 1.94.0-SNAPSHOT Google VM Migration Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-vmmigration - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vmmigration-v1 - 1.93.0 + 1.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vmmigration-v1 - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml b/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml index 4cbfce042049..c517479555aa 100644 --- a/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml +++ b/java-vmmigration/proto-google-cloud-vmmigration-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vmmigration-v1 - 1.93.0 + 1.94.0-SNAPSHOT proto-google-cloud-vmmigration-v1 Proto library for google-cloud-vmmigration com.google.cloud google-cloud-vmmigration-parent - 1.93.0 + 1.94.0-SNAPSHOT diff --git a/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml b/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml index 233608744d53..2d41317a2847 100644 --- a/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml +++ b/java-vmwareengine/google-cloud-vmwareengine-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vmwareengine-bom - 0.87.0 + 0.88.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-vmwareengine - 0.87.0 + 0.88.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vmwareengine-v1 - 0.87.0 + 0.88.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vmwareengine-v1 - 0.87.0 + 0.88.0-SNAPSHOT diff --git a/java-vmwareengine/google-cloud-vmwareengine/pom.xml b/java-vmwareengine/google-cloud-vmwareengine/pom.xml index 9806c81dcec3..611125d3a481 100644 --- a/java-vmwareengine/google-cloud-vmwareengine/pom.xml +++ b/java-vmwareengine/google-cloud-vmwareengine/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vmwareengine - 0.87.0 + 0.88.0-SNAPSHOT jar Google Google Cloud VMware Engine Google Cloud VMware Engine Easily lift and shift your VMware-based applications to Google Cloud without changes to your apps, tools, or processes. com.google.cloud google-cloud-vmwareengine-parent - 0.87.0 + 0.88.0-SNAPSHOT google-cloud-vmwareengine diff --git a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/Version.java b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/Version.java index b3a29e8adc59..0d6b403a1598 100644 --- a/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/Version.java +++ b/java-vmwareengine/google-cloud-vmwareengine/src/main/java/com/google/cloud/vmwareengine/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-vmwareengine:current} - static final String VERSION = "0.87.0"; + static final String VERSION = "0.88.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml b/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml index ed7d5411b858..074d6379a3c1 100644 --- a/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml +++ b/java-vmwareengine/grpc-google-cloud-vmwareengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vmwareengine-v1 - 0.87.0 + 0.88.0-SNAPSHOT grpc-google-cloud-vmwareengine-v1 GRPC library for google-cloud-vmwareengine com.google.cloud google-cloud-vmwareengine-parent - 0.87.0 + 0.88.0-SNAPSHOT diff --git a/java-vmwareengine/pom.xml b/java-vmwareengine/pom.xml index 45a2ec868f86..f0cade161e2f 100644 --- a/java-vmwareengine/pom.xml +++ b/java-vmwareengine/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vmwareengine-parent pom - 0.87.0 + 0.88.0-SNAPSHOT Google Google Cloud VMware Engine Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-vmwareengine - 0.87.0 + 0.88.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vmwareengine-v1 - 0.87.0 + 0.88.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vmwareengine-v1 - 0.87.0 + 0.88.0-SNAPSHOT diff --git a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml index 6d6128593e1b..f5568d8f2c0a 100644 --- a/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml +++ b/java-vmwareengine/proto-google-cloud-vmwareengine-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vmwareengine-v1 - 0.87.0 + 0.88.0-SNAPSHOT proto-google-cloud-vmwareengine-v1 Proto library for google-cloud-vmwareengine com.google.cloud google-cloud-vmwareengine-parent - 0.87.0 + 0.88.0-SNAPSHOT diff --git a/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml b/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml index 3ee35b4133cb..5559813ccd60 100644 --- a/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml +++ b/java-vpcaccess/google-cloud-vpcaccess-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-vpcaccess-bom - 2.94.0 + 2.95.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,17 +28,17 @@ com.google.cloud google-cloud-vpcaccess - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vpcaccess-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vpcaccess-v1 - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-vpcaccess/google-cloud-vpcaccess/pom.xml b/java-vpcaccess/google-cloud-vpcaccess/pom.xml index d409ff4f374f..eb4b63bd70c1 100644 --- a/java-vpcaccess/google-cloud-vpcaccess/pom.xml +++ b/java-vpcaccess/google-cloud-vpcaccess/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-vpcaccess - 2.94.0 + 2.95.0-SNAPSHOT jar Google Serverless VPC Access Serverless VPC Access enables you to connect from a serverless environment on Google Cloud directly to your VPC network. This connection makes it possible for your serverless environment to access resources in your VPC network via internal IP addresses. com.google.cloud google-cloud-vpcaccess-parent - 2.94.0 + 2.95.0-SNAPSHOT google-cloud-vpcaccess diff --git a/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/Version.java b/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/Version.java index 148eba7fb666..1ffba4137fc8 100644 --- a/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/Version.java +++ b/java-vpcaccess/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-vpcaccess:current} - static final String VERSION = "2.94.0"; + static final String VERSION = "2.95.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml b/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml index 4dc85e1be0db..2c0e3cb4828e 100644 --- a/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml +++ b/java-vpcaccess/grpc-google-cloud-vpcaccess-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-vpcaccess-v1 - 2.94.0 + 2.95.0-SNAPSHOT grpc-google-cloud-vpcaccess-v1 GRPC library for google-cloud-vpcaccess com.google.cloud google-cloud-vpcaccess-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-vpcaccess/pom.xml b/java-vpcaccess/pom.xml index 1566019958af..860fac8d8fe1 100644 --- a/java-vpcaccess/pom.xml +++ b/java-vpcaccess/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-vpcaccess-parent pom - 2.94.0 + 2.95.0-SNAPSHOT Google Serverless VPC Access Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-vpcaccess - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-vpcaccess-v1 - 2.94.0 + 2.95.0-SNAPSHOT com.google.api.grpc proto-google-cloud-vpcaccess-v1 - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml b/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml index 2fd8187897a3..2876c3a91af8 100644 --- a/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml +++ b/java-vpcaccess/proto-google-cloud-vpcaccess-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-vpcaccess-v1 - 2.94.0 + 2.95.0-SNAPSHOT proto-google-cloud-vpcaccess-v1 Proto library for google-cloud-vpcaccess com.google.cloud google-cloud-vpcaccess-parent - 2.94.0 + 2.95.0-SNAPSHOT diff --git a/java-webrisk/google-cloud-webrisk-bom/pom.xml b/java-webrisk/google-cloud-webrisk-bom/pom.xml index 7e0dfe4d7875..4dde81fe6469 100644 --- a/java-webrisk/google-cloud-webrisk-bom/pom.xml +++ b/java-webrisk/google-cloud-webrisk-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-webrisk-bom - 2.92.0 + 2.93.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,27 +24,27 @@ com.google.cloud google-cloud-webrisk - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-webrisk-v1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-webrisk-v1beta1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-webrisk-v1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-webrisk-v1beta1 - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-webrisk/google-cloud-webrisk/pom.xml b/java-webrisk/google-cloud-webrisk/pom.xml index f92f5f422afd..12cccb6d71ff 100644 --- a/java-webrisk/google-cloud-webrisk/pom.xml +++ b/java-webrisk/google-cloud-webrisk/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-webrisk - 2.92.0 + 2.93.0-SNAPSHOT jar Google Cloud Web Risk Java idiomatic client for Google Cloud Web Risk com.google.cloud google-cloud-webrisk-parent - 2.92.0 + 2.93.0-SNAPSHOT google-cloud-webrisk diff --git a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/Version.java b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/Version.java index 169d1a33f2e9..9c659f65f95e 100644 --- a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/Version.java +++ b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-webrisk:current} - static final String VERSION = "2.92.0"; + static final String VERSION = "2.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/Version.java b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/Version.java index 37b2e5d4d927..1dedb240c015 100644 --- a/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/Version.java +++ b/java-webrisk/google-cloud-webrisk/src/main/java/com/google/cloud/webrisk/v1beta1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-webrisk:current} - static final String VERSION = "2.92.0"; + static final String VERSION = "2.93.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml b/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml index f473530b119b..e2eab1fe177a 100644 --- a/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml +++ b/java-webrisk/grpc-google-cloud-webrisk-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-webrisk-v1 - 2.92.0 + 2.93.0-SNAPSHOT grpc-google-cloud-webrisk-v1 GRPC library for grpc-google-cloud-webrisk-v1 com.google.cloud google-cloud-webrisk-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml b/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml index 2790a89d1662..c17a41cbdf76 100644 --- a/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml +++ b/java-webrisk/grpc-google-cloud-webrisk-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-webrisk-v1beta1 - 2.92.0 + 2.93.0-SNAPSHOT grpc-google-cloud-webrisk-v1beta1 GRPC library for grpc-google-cloud-webrisk-v1beta1 com.google.cloud google-cloud-webrisk-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-webrisk/pom.xml b/java-webrisk/pom.xml index 8801bbd94b47..e46b4dd63162 100644 --- a/java-webrisk/pom.xml +++ b/java-webrisk/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-webrisk-parent pom - 2.92.0 + 2.93.0-SNAPSHOT Google Cloud Web Risk Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.api.grpc proto-google-cloud-webrisk-v1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc proto-google-cloud-webrisk-v1beta1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-webrisk-v1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-webrisk-v1beta1 - 2.92.0 + 2.93.0-SNAPSHOT com.google.cloud google-cloud-webrisk - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml b/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml index 4b79c5ab4f39..10cdb2215f9d 100644 --- a/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml +++ b/java-webrisk/proto-google-cloud-webrisk-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-webrisk-v1 - 2.92.0 + 2.93.0-SNAPSHOT proto-google-cloud-webrisk-v1 PROTO library for proto-google-cloud-webrisk-v1 com.google.cloud google-cloud-webrisk-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml b/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml index efbc388ba93e..560a0b55f64f 100644 --- a/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml +++ b/java-webrisk/proto-google-cloud-webrisk-v1beta1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-webrisk-v1beta1 - 2.92.0 + 2.93.0-SNAPSHOT proto-google-cloud-webrisk-v1beta1 PROTO library for proto-google-cloud-webrisk-v1beta1 com.google.cloud google-cloud-webrisk-parent - 2.92.0 + 2.93.0-SNAPSHOT diff --git a/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml b/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml index 1aab15a1f68a..5f70cd430aed 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml +++ b/java-websecurityscanner/google-cloud-websecurityscanner-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-websecurityscanner-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -24,37 +24,37 @@ com.google.cloud google-cloud-websecurityscanner - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml b/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml index 0ed3a060e267..0fd830263b92 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml +++ b/java-websecurityscanner/google-cloud-websecurityscanner/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-websecurityscanner - 2.93.0 + 2.94.0-SNAPSHOT jar Google Cloud Web Security Scanner Java idiomatic client for Google Cloud Web Security Scanner com.google.cloud google-cloud-websecurityscanner-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-websecurityscanner diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/Version.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/Version.java index 693795b9b6d2..deb8296ee525 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/Version.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-websecurityscanner:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/Version.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/Version.java index 3064ccbd9ee5..f5f19dd53a9b 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/Version.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1alpha/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-websecurityscanner:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/Version.java b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/Version.java index 6b9a89594682..fc8a04d72be9 100644 --- a/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/Version.java +++ b/java-websecurityscanner/google-cloud-websecurityscanner/src/main/java/com/google/cloud/websecurityscanner/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-websecurityscanner:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml index 209c067b2476..d0dcab82287f 100644 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-websecurityscanner-v1 GRPC library for grpc-google-cloud-websecurityscanner-v1 com.google.cloud google-cloud-websecurityscanner-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml index fdacdf1ebcb6..abe6abf4b4b8 100644 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-websecurityscanner-v1alpha GRPC library for grpc-google-cloud-websecurityscanner-v1alpha com.google.cloud google-cloud-websecurityscanner-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml index 9283877bd36b..89421bb1098e 100644 --- a/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml +++ b/java-websecurityscanner/grpc-google-cloud-websecurityscanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-websecurityscanner-v1beta GRPC library for grpc-google-cloud-websecurityscanner-v1beta com.google.cloud google-cloud-websecurityscanner-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-websecurityscanner/pom.xml b/java-websecurityscanner/pom.xml index 43dcc7ea128b..4f60d8671afa 100644 --- a/java-websecurityscanner/pom.xml +++ b/java-websecurityscanner/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-websecurityscanner-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Cloud Web Security Scanner Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,37 +30,37 @@ com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1alpha - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1beta - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-websecurityscanner-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.cloud google-cloud-websecurityscanner - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml index e2febe8c6df2..f11ba263e37b 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-websecurityscanner-v1 PROTO library for proto-google-cloud-websecurityscanner-v1 com.google.cloud google-cloud-websecurityscanner-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml index 767b73651324..700cf08e0163 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1alpha - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-websecurityscanner-v1alpha PROTO library for proto-google-cloud-websecurityscanner-v1alpha com.google.cloud google-cloud-websecurityscanner-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml index bd7d6bdf5ea2..5f9b1230ead2 100644 --- a/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml +++ b/java-websecurityscanner/proto-google-cloud-websecurityscanner-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-websecurityscanner-v1beta - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-websecurityscanner-v1beta PROTO library for proto-google-cloud-websecurityscanner-v1beta com.google.cloud google-cloud-websecurityscanner-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml b/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml index ce9c0e09c065..494bf7c8c9a4 100644 --- a/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml +++ b/java-workflow-executions/google-cloud-workflow-executions-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workflow-executions-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-workflow-executions - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workflow-executions-v1beta - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workflow-executions-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workflow-executions-v1beta - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workflow-executions-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-workflow-executions/google-cloud-workflow-executions/pom.xml b/java-workflow-executions/google-cloud-workflow-executions/pom.xml index bd743801fc94..98e965f33a5d 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/pom.xml +++ b/java-workflow-executions/google-cloud-workflow-executions/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workflow-executions - 2.93.0 + 2.94.0-SNAPSHOT jar Google Cloud Workflow Executions allows you to ochestrate and automate Google Cloud and HTTP-based API services with serverless workflows. com.google.cloud google-cloud-workflow-executions-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-workflow-executions diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/Version.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/Version.java index 7c70fb422bae..99ab88157b93 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/Version.java +++ b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-workflow-executions:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/Version.java b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/Version.java index 0e8f73e7a387..17c268e91f90 100644 --- a/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/Version.java +++ b/java-workflow-executions/google-cloud-workflow-executions/src/main/java/com/google/cloud/workflows/executions/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-workflow-executions:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml index e6f2a6d63869..12d6e363f2e4 100644 --- a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml +++ b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-workflow-executions-v1 GRPC library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml index d6ac92ad4906..f6f073b84e7c 100644 --- a/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml +++ b/java-workflow-executions/grpc-google-cloud-workflow-executions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflow-executions-v1beta - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-workflow-executions-v1beta GRPC library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-workflow-executions/pom.xml b/java-workflow-executions/pom.xml index 0154aed28d2c..46354af7f1b9 100644 --- a/java-workflow-executions/pom.xml +++ b/java-workflow-executions/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workflow-executions-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Cloud Workflow Executions Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-workflow-executions - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workflow-executions-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workflow-executions-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workflow-executions-v1beta - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workflow-executions-v1beta - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml index 42f2f111cb0d..401b328bb99a 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-workflow-executions-v1 Proto library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml index 548ef08f8a76..6d7c547a761e 100644 --- a/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml +++ b/java-workflow-executions/proto-google-cloud-workflow-executions-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflow-executions-v1beta - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-workflow-executions-v1beta Proto library for google-cloud-workflow-executions com.google.cloud google-cloud-workflow-executions-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-workflows/google-cloud-workflows-bom/pom.xml b/java-workflows/google-cloud-workflows-bom/pom.xml index 082b26b3613b..ce795c651269 100644 --- a/java-workflows/google-cloud-workflows-bom/pom.xml +++ b/java-workflows/google-cloud-workflows-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workflows-bom - 2.93.0 + 2.94.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-workflows - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workflows-v1beta - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workflows-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workflows-v1beta - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workflows-v1 - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-workflows/google-cloud-workflows/pom.xml b/java-workflows/google-cloud-workflows/pom.xml index 59cf57a9987a..16455a13a4fa 100644 --- a/java-workflows/google-cloud-workflows/pom.xml +++ b/java-workflows/google-cloud-workflows/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workflows - 2.93.0 + 2.94.0-SNAPSHOT jar Google Cloud Workflows allows you to ochestrate and automate Google Cloud and HTTP-based API services with serverless workflows. com.google.cloud google-cloud-workflows-parent - 2.93.0 + 2.94.0-SNAPSHOT google-cloud-workflows diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/Version.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/Version.java index c02dc7af052d..cfbc6fe0bcd3 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/Version.java +++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-workflows:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/Version.java b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/Version.java index 6f5fdc4bcf5b..e74159df0bb1 100644 --- a/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/Version.java +++ b/java-workflows/google-cloud-workflows/src/main/java/com/google/cloud/workflows/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-workflows:current} - static final String VERSION = "2.93.0"; + static final String VERSION = "2.94.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-workflows/grpc-google-cloud-workflows-v1/pom.xml b/java-workflows/grpc-google-cloud-workflows-v1/pom.xml index 06c6604b9c1d..b555ff74474d 100644 --- a/java-workflows/grpc-google-cloud-workflows-v1/pom.xml +++ b/java-workflows/grpc-google-cloud-workflows-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflows-v1 - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-workflows-v1 GRPC library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml b/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml index a361e01e7913..757c6184db72 100644 --- a/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml +++ b/java-workflows/grpc-google-cloud-workflows-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workflows-v1beta - 2.93.0 + 2.94.0-SNAPSHOT grpc-google-cloud-workflows-v1beta GRPC library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-workflows/pom.xml b/java-workflows/pom.xml index f7b417d206bb..355b5d05457d 100644 --- a/java-workflows/pom.xml +++ b/java-workflows/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workflows-parent pom - 2.93.0 + 2.94.0-SNAPSHOT Google Cloud Workflows Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-workflows - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workflows-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workflows-v1 - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workflows-v1beta - 2.93.0 + 2.94.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workflows-v1beta - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-workflows/proto-google-cloud-workflows-v1/pom.xml b/java-workflows/proto-google-cloud-workflows-v1/pom.xml index 81874bdedf30..0e5ec7061f22 100644 --- a/java-workflows/proto-google-cloud-workflows-v1/pom.xml +++ b/java-workflows/proto-google-cloud-workflows-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflows-v1 - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-workflows-v1 Proto library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml b/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml index 0732056d39e6..50487de7e13c 100644 --- a/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml +++ b/java-workflows/proto-google-cloud-workflows-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workflows-v1beta - 2.93.0 + 2.94.0-SNAPSHOT proto-google-cloud-workflows-v1beta Proto library for google-cloud-workflows com.google.cloud google-cloud-workflows-parent - 2.93.0 + 2.94.0-SNAPSHOT diff --git a/java-workloadmanager/google-cloud-workloadmanager-bom/pom.xml b/java-workloadmanager/google-cloud-workloadmanager-bom/pom.xml index f0085039d51e..e9baf481d9d5 100644 --- a/java-workloadmanager/google-cloud-workloadmanager-bom/pom.xml +++ b/java-workloadmanager/google-cloud-workloadmanager-bom/pom.xml @@ -3,12 +3,12 @@ 4.0.0 com.google.cloud google-cloud-workloadmanager-bom - 0.9.0 + 0.10.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -27,17 +27,17 @@ com.google.cloud google-cloud-workloadmanager - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workloadmanager-v1 - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workloadmanager-v1 - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-workloadmanager/google-cloud-workloadmanager/pom.xml b/java-workloadmanager/google-cloud-workloadmanager/pom.xml index 17ff110b3eb8..0b8ee6d2b6a7 100644 --- a/java-workloadmanager/google-cloud-workloadmanager/pom.xml +++ b/java-workloadmanager/google-cloud-workloadmanager/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workloadmanager - 0.9.0 + 0.10.0-SNAPSHOT jar Google Workload Manager API Workload Manager API Workload Manager is a service that provides tooling for enterprise workloads to automate the deployment and validation of your workloads against best practices and recommendations. com.google.cloud google-cloud-workloadmanager-parent - 0.9.0 + 0.10.0-SNAPSHOT google-cloud-workloadmanager diff --git a/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/Version.java b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/Version.java index dc1ace1c8a2d..f88f94456451 100644 --- a/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/Version.java +++ b/java-workloadmanager/google-cloud-workloadmanager/src/main/java/com/google/cloud/workloadmanager/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-workloadmanager:current} - static final String VERSION = "0.9.0"; + static final String VERSION = "0.10.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-workloadmanager/grpc-google-cloud-workloadmanager-v1/pom.xml b/java-workloadmanager/grpc-google-cloud-workloadmanager-v1/pom.xml index b83c06dfce29..dcdb86696b88 100644 --- a/java-workloadmanager/grpc-google-cloud-workloadmanager-v1/pom.xml +++ b/java-workloadmanager/grpc-google-cloud-workloadmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workloadmanager-v1 - 0.9.0 + 0.10.0-SNAPSHOT grpc-google-cloud-workloadmanager-v1 GRPC library for google-cloud-workloadmanager com.google.cloud google-cloud-workloadmanager-parent - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-workloadmanager/pom.xml b/java-workloadmanager/pom.xml index 62a121d7656d..961b81f70110 100644 --- a/java-workloadmanager/pom.xml +++ b/java-workloadmanager/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workloadmanager-parent pom - 0.9.0 + 0.10.0-SNAPSHOT Google Workload Manager API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,17 +30,17 @@ com.google.cloud google-cloud-workloadmanager - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workloadmanager-v1 - 0.9.0 + 0.10.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workloadmanager-v1 - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/pom.xml b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/pom.xml index 73c8b26f3c29..72b4a1818912 100644 --- a/java-workloadmanager/proto-google-cloud-workloadmanager-v1/pom.xml +++ b/java-workloadmanager/proto-google-cloud-workloadmanager-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workloadmanager-v1 - 0.9.0 + 0.10.0-SNAPSHOT proto-google-cloud-workloadmanager-v1 Proto library for google-cloud-workloadmanager com.google.cloud google-cloud-workloadmanager-parent - 0.9.0 + 0.10.0-SNAPSHOT diff --git a/java-workspaceevents/google-cloud-workspaceevents-bom/pom.xml b/java-workspaceevents/google-cloud-workspaceevents-bom/pom.xml index 557783cfc474..3ea6408cef3f 100644 --- a/java-workspaceevents/google-cloud-workspaceevents-bom/pom.xml +++ b/java-workspaceevents/google-cloud-workspaceevents-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workspaceevents-bom - 0.57.0 + 0.58.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-workspaceevents - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workspaceevents-v1 - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workspaceevents-v1beta - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workspaceevents-v1 - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workspaceevents-v1beta - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-workspaceevents/google-cloud-workspaceevents/pom.xml b/java-workspaceevents/google-cloud-workspaceevents/pom.xml index 9a7890d13690..30dc176470d5 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/pom.xml +++ b/java-workspaceevents/google-cloud-workspaceevents/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workspaceevents - 0.57.0 + 0.58.0-SNAPSHOT jar Google Google Workspace Events API Google Workspace Events API The Google Workspace Events API lets you subscribe to events and manage change notifications across Google Workspace applications. com.google.cloud google-cloud-workspaceevents-parent - 0.57.0 + 0.58.0-SNAPSHOT google-cloud-workspaceevents diff --git a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/Version.java b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/Version.java index 70bfc5b8f1f2..5f917ca9653b 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/Version.java +++ b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-workspaceevents:current} - static final String VERSION = "0.57.0"; + static final String VERSION = "0.58.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/stub/Version.java b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/stub/Version.java index 4501804d9c8d..0b7fd052c283 100644 --- a/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/stub/Version.java +++ b/java-workspaceevents/google-cloud-workspaceevents/src/main/java/com/google/apps/events/subscriptions/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-workspaceevents:current} - static final String VERSION = "0.57.0"; + static final String VERSION = "0.58.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml index 670bc9fb2f16..47314dca4adf 100644 --- a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml +++ b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workspaceevents-v1 - 0.57.0 + 0.58.0-SNAPSHOT grpc-google-cloud-workspaceevents-v1 GRPC library for google-cloud-workspaceevents com.google.cloud google-cloud-workspaceevents-parent - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1beta/pom.xml b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1beta/pom.xml index c43e6cf51631..2424705b641d 100644 --- a/java-workspaceevents/grpc-google-cloud-workspaceevents-v1beta/pom.xml +++ b/java-workspaceevents/grpc-google-cloud-workspaceevents-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workspaceevents-v1beta - 0.57.0 + 0.58.0-SNAPSHOT grpc-google-cloud-workspaceevents-v1beta GRPC library for google-cloud-workspaceevents com.google.cloud google-cloud-workspaceevents-parent - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-workspaceevents/pom.xml b/java-workspaceevents/pom.xml index 5cee833f0bbf..c34c2c7169fe 100644 --- a/java-workspaceevents/pom.xml +++ b/java-workspaceevents/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workspaceevents-parent pom - 0.57.0 + 0.58.0-SNAPSHOT Google Google Workspace Events API Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-workspaceevents - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workspaceevents-v1beta - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workspaceevents-v1beta - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workspaceevents-v1 - 0.57.0 + 0.58.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workspaceevents-v1 - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml index 54752a1de5ca..0730809c8537 100644 --- a/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml +++ b/java-workspaceevents/proto-google-cloud-workspaceevents-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workspaceevents-v1 - 0.57.0 + 0.58.0-SNAPSHOT proto-google-cloud-workspaceevents-v1 Proto library for google-cloud-workspaceevents com.google.cloud google-cloud-workspaceevents-parent - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-workspaceevents/proto-google-cloud-workspaceevents-v1beta/pom.xml b/java-workspaceevents/proto-google-cloud-workspaceevents-v1beta/pom.xml index 56072a2b1121..1b74260ff981 100644 --- a/java-workspaceevents/proto-google-cloud-workspaceevents-v1beta/pom.xml +++ b/java-workspaceevents/proto-google-cloud-workspaceevents-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workspaceevents-v1beta - 0.57.0 + 0.58.0-SNAPSHOT proto-google-cloud-workspaceevents-v1beta Proto library for google-cloud-workspaceevents com.google.cloud google-cloud-workspaceevents-parent - 0.57.0 + 0.58.0-SNAPSHOT diff --git a/java-workstations/google-cloud-workstations-bom/pom.xml b/java-workstations/google-cloud-workstations-bom/pom.xml index 9b8231f00682..b6478fa659c1 100644 --- a/java-workstations/google-cloud-workstations-bom/pom.xml +++ b/java-workstations/google-cloud-workstations-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-workstations-bom - 0.81.0 + 0.82.0-SNAPSHOT pom com.google.cloud google-cloud-pom-parent - 1.87.0 + 1.88.0-SNAPSHOT ../../google-cloud-pom-parent/pom.xml @@ -28,27 +28,27 @@ com.google.cloud google-cloud-workstations - 0.81.0 + 0.82.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workstations-v1beta - 0.81.0 + 0.82.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workstations-v1 - 0.81.0 + 0.82.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workstations-v1beta - 0.81.0 + 0.82.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workstations-v1 - 0.81.0 + 0.82.0-SNAPSHOT diff --git a/java-workstations/google-cloud-workstations/pom.xml b/java-workstations/google-cloud-workstations/pom.xml index 6783a7acc53f..d86f16438a0b 100644 --- a/java-workstations/google-cloud-workstations/pom.xml +++ b/java-workstations/google-cloud-workstations/pom.xml @@ -3,14 +3,14 @@ 4.0.0 com.google.cloud google-cloud-workstations - 0.81.0 + 0.82.0-SNAPSHOT jar Google Cloud Workstations Cloud Workstations Fully managed development environments built to meet the needs of security-sensitive enterprises. It enhances the security of development environments while accelerating developer onboarding and productivity. com.google.cloud google-cloud-workstations-parent - 0.81.0 + 0.82.0-SNAPSHOT google-cloud-workstations diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/Version.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/Version.java index c02d1e2ef499..6246c4c2adc4 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/Version.java +++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-workstations:current} - static final String VERSION = "0.81.0"; + static final String VERSION = "0.82.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/Version.java b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/Version.java index 2909cb5293ec..4f576a6b1788 100644 --- a/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/Version.java +++ b/java-workstations/google-cloud-workstations/src/main/java/com/google/cloud/workstations/v1beta/stub/Version.java @@ -21,7 +21,7 @@ @InternalApi("For internal use only") final class Version { // {x-version-update-start:google-cloud-workstations:current} - static final String VERSION = "0.81.0"; + static final String VERSION = "0.82.0-SNAPSHOT"; // {x-version-update-end} } diff --git a/java-workstations/grpc-google-cloud-workstations-v1/pom.xml b/java-workstations/grpc-google-cloud-workstations-v1/pom.xml index c7774795f4de..88e02197a897 100644 --- a/java-workstations/grpc-google-cloud-workstations-v1/pom.xml +++ b/java-workstations/grpc-google-cloud-workstations-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workstations-v1 - 0.81.0 + 0.82.0-SNAPSHOT grpc-google-cloud-workstations-v1 GRPC library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.81.0 + 0.82.0-SNAPSHOT diff --git a/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml b/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml index ee59f3cd9492..c55294e426c5 100644 --- a/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml +++ b/java-workstations/grpc-google-cloud-workstations-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-cloud-workstations-v1beta - 0.81.0 + 0.82.0-SNAPSHOT grpc-google-cloud-workstations-v1beta GRPC library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.81.0 + 0.82.0-SNAPSHOT diff --git a/java-workstations/pom.xml b/java-workstations/pom.xml index 602fa3c46b2f..923b4f798548 100644 --- a/java-workstations/pom.xml +++ b/java-workstations/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-workstations-parent pom - 0.81.0 + 0.82.0-SNAPSHOT Google Cloud Workstations Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.cloud google-cloud-jar-parent - 1.87.0 + 1.88.0-SNAPSHOT ../google-cloud-jar-parent/pom.xml @@ -30,27 +30,27 @@ com.google.cloud google-cloud-workstations - 0.81.0 + 0.82.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workstations-v1 - 0.81.0 + 0.82.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workstations-v1 - 0.81.0 + 0.82.0-SNAPSHOT com.google.api.grpc grpc-google-cloud-workstations-v1beta - 0.81.0 + 0.82.0-SNAPSHOT com.google.api.grpc proto-google-cloud-workstations-v1beta - 0.81.0 + 0.82.0-SNAPSHOT diff --git a/java-workstations/proto-google-cloud-workstations-v1/pom.xml b/java-workstations/proto-google-cloud-workstations-v1/pom.xml index 0a67edb2599d..0f05b1c46a26 100644 --- a/java-workstations/proto-google-cloud-workstations-v1/pom.xml +++ b/java-workstations/proto-google-cloud-workstations-v1/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workstations-v1 - 0.81.0 + 0.82.0-SNAPSHOT proto-google-cloud-workstations-v1 Proto library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.81.0 + 0.82.0-SNAPSHOT diff --git a/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml b/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml index 5a7cdb6bb2a9..4384903fa010 100644 --- a/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml +++ b/java-workstations/proto-google-cloud-workstations-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-cloud-workstations-v1beta - 0.81.0 + 0.82.0-SNAPSHOT proto-google-cloud-workstations-v1beta Proto library for google-cloud-workstations com.google.cloud google-cloud-workstations-parent - 0.81.0 + 0.82.0-SNAPSHOT diff --git a/librarian.yaml b/librarian.yaml index e2b7a85f3d0c..4e22496f99f1 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -52,7 +52,7 @@ default: libraries_bom_version: 26.83.0 libraries: - name: accessapproval - version: 2.94.0 + version: 2.95.0-SNAPSHOT apis: - path: google/cloud/accessapproval/v1 java: @@ -60,7 +60,7 @@ libraries: name_pretty_override: Access Approval product_documentation_override: https://cloud.google.com/access-approval/docs/ - name: accesscontextmanager - version: 1.94.0 + version: 1.95.0-SNAPSHOT apis: - path: google/identity/accesscontextmanager/v1 - path: google/identity/accesscontextmanager/type @@ -76,7 +76,7 @@ libraries: name_pretty_override: Identity Access Context Manager product_documentation_override: n/a - name: admanager - version: 0.52.0 + version: 0.53.0-SNAPSHOT apis: - path: google/ads/admanager/v1 java: @@ -89,7 +89,7 @@ libraries: name_pretty_override: Google Ad Manager API product_documentation_override: https://developers.google.com/ad-manager/api/beta - name: advisorynotifications - version: 0.82.0 + version: 0.83.0-SNAPSHOT apis: - path: google/cloud/advisorynotifications/v1 java: @@ -99,7 +99,7 @@ libraries: name_pretty_override: Advisory Notifications API product_documentation_override: https://cloud.google.com/advisory-notifications/ - name: aiplatform - version: 3.94.0 + version: 3.95.0-SNAPSHOT apis: - path: google/cloud/aiplatform/v1 java: @@ -131,7 +131,7 @@ libraries: rest_documentation: https://cloud.google.com/vertex-ai/docs/reference/rest rpc_documentation: https://cloud.google.com/vertex-ai/docs/reference/rpc - name: alloydb - version: 0.82.0 + version: 0.83.0-SNAPSHOT apis: - path: google/cloud/alloydb/v1 java: @@ -154,7 +154,7 @@ libraries: product_documentation_override: https://cloud.google.com/alloydb/ rest_documentation: https://cloud.google.com/alloydb/docs/reference/rest - name: alloydb-connectors - version: 0.71.0 + version: 0.72.0-SNAPSHOT apis: - path: google/cloud/alloydb/connectors/v1 java: @@ -185,7 +185,7 @@ libraries: rest_documentation: https://cloud.google.com/alloydb/docs/reference/rest transport_override: grpc - name: analytics-admin - version: 0.103.0 + version: 0.104.0-SNAPSHOT apis: - path: google/analytics/admin/v1beta - path: google/analytics/admin/v1alpha @@ -197,7 +197,7 @@ libraries: name_pretty_override: Analytics Admin product_documentation_override: https://developers.google.com/analytics - name: analytics-data - version: 0.104.0 + version: 0.105.0-SNAPSHOT apis: - path: google/analytics/data/v1beta - path: google/analytics/data/v1alpha @@ -210,7 +210,7 @@ libraries: name_pretty_override: Analytics Data product_documentation_override: https://developers.google.com/analytics/trusted-testing/analytics-data - name: analyticshub - version: 0.90.0 + version: 0.91.0-SNAPSHOT apis: - path: google/cloud/bigquery/analyticshub/v1 java: @@ -218,7 +218,7 @@ libraries: name_pretty_override: Analytics Hub API product_documentation_override: https://cloud.google.com/bigquery/TBD - name: api-gateway - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/apigateway/v1 java: @@ -228,7 +228,7 @@ libraries: product_documentation_override: https://cloud.google.com/api-gateway/docs rest_documentation: https://cloud.google.com/api-gateway/docs/reference/rest - name: apigee-connect - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/apigeeconnect/v1 java: @@ -236,7 +236,7 @@ libraries: name_pretty_override: Apigee Connect product_documentation_override: https://cloud.google.com/apigee/docs/hybrid/v1.3/apigee-connect/ - name: apigee-registry - version: 0.93.0 + version: 0.94.0-SNAPSHOT apis: - path: google/cloud/apigeeregistry/v1 java: @@ -250,7 +250,7 @@ libraries: name_pretty_override: Registry API product_documentation_override: https://cloud.google.com/apigee/docs/api-hub/get-started-registry-api - name: apihub - version: 0.46.0 + version: 0.47.0-SNAPSHOT apis: - path: google/cloud/apihub/v1 java: @@ -264,7 +264,7 @@ libraries: name_pretty_override: API hub API product_documentation_override: https://cloud.google.com/apigee/docs/apihub/what-is-api-hub - name: apikeys - version: 0.91.0 + version: 0.92.0-SNAPSHOT apis: - path: google/api/apikeys/v2 java: @@ -272,7 +272,7 @@ libraries: name_pretty_override: API Keys API product_documentation_override: https://cloud.google.com/api-keys/ - name: appengine-admin - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/appengine/v1 java: @@ -281,7 +281,7 @@ libraries: name_pretty_override: App Engine Admin API product_documentation_override: https://cloud.google.com/appengine/docs/admin-api/ - name: apphub - version: 0.57.0 + version: 0.58.0-SNAPSHOT apis: - path: google/cloud/apphub/v1 java: @@ -294,7 +294,7 @@ libraries: product_documentation_override: https://cloud.google.com/app-hub/docs/overview rpc_documentation: https://cloud.google.com/app-hub/docs/reference/rpc - name: appoptimize - version: 0.3.0 + version: 0.4.0-SNAPSHOT apis: - path: google/cloud/appoptimize/v1beta java: @@ -308,7 +308,7 @@ libraries: name_pretty_override: App Optimize API product_documentation_override: https://docs.cloud.google.com/app-optimize/overview - name: area120-tables - version: 0.97.0 + version: 0.98.0-SNAPSHOT apis: - path: google/area120/tables/v1alpha1 java: @@ -318,7 +318,7 @@ libraries: name_pretty_override: Area 120 Tables product_documentation_override: https://area120.google.com/ - name: artifact-registry - version: 1.92.0 + version: 1.93.0-SNAPSHOT apis: - path: google/devtools/artifactregistry/v1 java: @@ -336,7 +336,7 @@ libraries: rest_documentation: https://cloud.google.com/artifact-registry/docs/reference/rest rpc_documentation: https://cloud.google.com/artifact-registry/docs/reference/rpc - name: asset - version: 3.97.0 + version: 3.98.0-SNAPSHOT apis: - path: google/cloud/asset/v1 - path: google/cloud/asset/v1p7beta1 @@ -353,7 +353,7 @@ libraries: name_pretty_override: Cloud Asset Inventory product_documentation_override: https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview - name: assured-workloads - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/assuredworkloads/v1 - path: google/cloud/assuredworkloads/v1beta1 @@ -363,7 +363,7 @@ libraries: product_documentation_override: https://cloud.google.com/assured-workloads/ rest_documentation: https://cloud.google.com/assured-workloads/docs/reference/rest - name: auditmanager - version: 0.11.0 + version: 0.12.0-SNAPSHOT apis: - path: google/cloud/auditmanager/v1 java: @@ -377,7 +377,7 @@ libraries: name_pretty_override: Audit Manager API product_documentation_override: https://cloud.google.com/audit-manager/docs - name: automl - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/automl/v1 - path: google/cloud/automl/v1beta1 @@ -389,7 +389,7 @@ libraries: rest_documentation: https://cloud.google.com/automl/docs/reference/rest rpc_documentation: https://cloud.google.com/automl/docs/reference/rpc - name: backupdr - version: 0.52.0 + version: 0.53.0-SNAPSHOT apis: - path: google/cloud/backupdr/v1 java: @@ -404,7 +404,7 @@ libraries: name_pretty_override: Backup and DR Service API product_documentation_override: https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-dr - name: bare-metal-solution - version: 0.93.0 + version: 0.94.0-SNAPSHOT apis: - path: google/cloud/baremetalsolution/v2 java: @@ -418,7 +418,7 @@ libraries: rest_documentation: https://cloud.google.com/bare-metal/docs/reference/rest rpc_documentation: https://cloud.google.com/bare-metal/docs/reference/rpc - name: batch - version: 0.93.0 + version: 0.94.0-SNAPSHOT apis: - path: google/cloud/batch/v1 java: @@ -434,7 +434,7 @@ libraries: name_pretty_override: Cloud Batch product_documentation_override: https://cloud.google.com/ - name: beyondcorp-appconnections - version: 0.91.0 + version: 0.92.0-SNAPSHOT apis: - path: google/cloud/beyondcorp/appconnections/v1 java: @@ -447,7 +447,7 @@ libraries: name_pretty_override: BeyondCorp AppConnections product_documentation_override: https://cloud.google.com/beyondcorp-enterprise/ - name: beyondcorp-appconnectors - version: 0.91.0 + version: 0.92.0-SNAPSHOT apis: - path: google/cloud/beyondcorp/appconnectors/v1 java: @@ -460,7 +460,7 @@ libraries: name_pretty_override: BeyondCorp AppConnectors product_documentation_override: cloud.google.com/beyondcorp-enterprise/ - name: beyondcorp-appgateways - version: 0.91.0 + version: 0.92.0-SNAPSHOT apis: - path: google/cloud/beyondcorp/appgateways/v1 java: @@ -474,7 +474,7 @@ libraries: name_pretty_override: BeyondCorp AppGateways product_documentation_override: https://cloud.google.com/beyondcorp-enterprise/ - name: beyondcorp-clientconnectorservices - version: 0.91.0 + version: 0.92.0-SNAPSHOT apis: - path: google/cloud/beyondcorp/clientconnectorservices/v1 java: @@ -488,7 +488,7 @@ libraries: name_pretty_override: BeyondCorp ClientConnectorServices product_documentation_override: https://cloud.google.com/beyondcorp-enterprise/ - name: beyondcorp-clientgateways - version: 0.91.0 + version: 0.92.0-SNAPSHOT apis: - path: google/cloud/beyondcorp/clientgateways/v1 java: @@ -502,7 +502,7 @@ libraries: name_pretty_override: BeyondCorp ClientGateways product_documentation_override: https://cloud.google.com/beyondcorp-enterprise/ - name: biglake - version: 0.81.1 + version: 0.82.0-SNAPSHOT apis: - path: google/cloud/biglake/v1 - path: google/cloud/bigquery/biglake/v1 @@ -513,7 +513,7 @@ libraries: name_pretty_override: BigLake product_documentation_override: https://cloud.google.com/biglake - name: bigquery-data-exchange - version: 2.88.0 + version: 2.89.0-SNAPSHOT apis: - path: google/cloud/bigquery/dataexchange/v1beta1 java: @@ -524,7 +524,7 @@ libraries: name_pretty_override: Analytics Hub product_documentation_override: https://cloud.google.com/analytics-hub - name: bigqueryconnection - version: 2.95.0 + version: 2.96.0-SNAPSHOT apis: - path: google/cloud/bigquery/connection/v1 - path: google/cloud/bigquery/connection/v1beta1 @@ -534,7 +534,7 @@ libraries: name_pretty_override: Cloud BigQuery Connection product_documentation_override: https://cloud.google.com/bigquery/docs/reference/bigqueryconnection/rest - name: bigquerydatapolicy - version: 0.90.0 + version: 0.91.0-SNAPSHOT apis: - path: google/cloud/bigquery/datapolicies/v2 - path: google/cloud/bigquery/datapolicies/v1 @@ -545,7 +545,7 @@ libraries: name_pretty_override: BigQuery DataPolicy API product_documentation_override: https://cloud.google.com/bigquery/docs/reference/datapolicy/ - name: bigquerydatatransfer - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/bigquery/datatransfer/v1 java: @@ -559,7 +559,7 @@ libraries: name_pretty_override: BigQuery Data Transfer Service product_documentation_override: https://cloud.google.com/bigquery/transfer/ - name: bigquerymigration - version: 0.96.0 + version: 0.97.0-SNAPSHOT apis: - path: google/cloud/bigquery/migration/v2 - path: google/cloud/bigquery/migration/v2alpha @@ -569,7 +569,7 @@ libraries: product_documentation_override: https://cloud.google.com/bigquery/docs rest_documentation: https://cloud.google.com/bigquery/docs/reference/rest - name: bigqueryreservation - version: 2.94.0 + version: 2.95.0-SNAPSHOT apis: - path: google/cloud/bigquery/reservation/v1 java: @@ -577,7 +577,7 @@ libraries: name_pretty_override: Cloud BigQuery Reservation product_documentation_override: https://cloud.google.com/bigquery/docs/reference/reservations/rpc - name: bigquerystorage - version: 3.29.0 + version: 3.30.0-SNAPSHOT apis: - path: google/cloud/bigquery/storage/v1 java: @@ -707,7 +707,7 @@ libraries: recommended_package: com.google.cloud.bigquery.storage.v1 transport_override: grpc - name: bigtable - version: 2.79.0 + version: 2.80.0-SNAPSHOT apis: - path: google/bigtable/v2 java: @@ -732,7 +732,7 @@ libraries: product_documentation_override: https://cloud.google.com/bigtable recommended_package: com.google.cloud.bigtable - name: billing - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/billing/v1 java: @@ -747,7 +747,7 @@ libraries: rest_documentation: https://cloud.google.com/billing/docs/reference/rest rpc_documentation: https://cloud.google.com/billing/docs/reference/rpc - name: billingbudgets - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/billing/budgets/v1 - path: google/cloud/billing/budgets/v1beta1 @@ -756,7 +756,7 @@ libraries: name_pretty_override: Cloud Billing Budgets product_documentation_override: https://cloud.google.com/billing/docs/how-to/budgets - name: binary-authorization - version: 1.92.0 + version: 1.93.0-SNAPSHOT apis: - path: google/cloud/binaryauthorization/v1 - path: google/cloud/binaryauthorization/v1beta1 @@ -769,7 +769,7 @@ libraries: rest_documentation: https://cloud.google.com/binary-authorization/docs/reference/rest rpc_documentation: https://cloud.google.com/binary-authorization/docs/reference/rpc - name: capacityplanner - version: 0.16.0 + version: 0.17.0-SNAPSHOT apis: - path: google/cloud/capacityplanner/v1beta java: @@ -780,7 +780,7 @@ libraries: name_pretty_override: Capacity Planner API product_documentation_override: https://cloud.google.com/capacity-planner/docs - name: certificate-manager - version: 0.96.0 + version: 0.97.0-SNAPSHOT apis: - path: google/cloud/certificatemanager/v1 java: @@ -792,7 +792,7 @@ libraries: name_pretty_override: Certificate Manager product_documentation_override: https://cloud.google.com/certificate-manager/docs - name: ces - version: 0.9.0 + version: 0.10.0-SNAPSHOT apis: - path: google/cloud/ces/v1 java: @@ -811,7 +811,7 @@ libraries: product_documentation_override: https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps rpc_documentation: https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/rpc - name: channel - version: 3.97.0 + version: 3.98.0-SNAPSHOT apis: - path: google/cloud/channel/v1 java: @@ -821,7 +821,7 @@ libraries: rest_documentation: https://cloud.google.com/channel/docs/reference/rest rpc_documentation: https://cloud.google.com/channel/docs/reference/rpc - name: chat - version: 0.57.0 + version: 0.58.0-SNAPSHOT apis: - path: google/chat/v1 java: @@ -830,7 +830,7 @@ libraries: product_documentation_override: https://developers.google.com/chat/concepts rest_documentation: https://developers.google.com/chat/api/reference/rest - name: chronicle - version: 0.31.0 + version: 0.32.0-SNAPSHOT apis: - path: google/cloud/chronicle/v1 java: @@ -841,7 +841,7 @@ libraries: name_pretty_override: Chronicle API product_documentation_override: https://cloud.google.com/chronicle/docs/secops/secops-overview - name: cloudapiregistry - version: 0.12.0 + version: 0.13.0-SNAPSHOT apis: - path: google/cloud/apiregistry/v1 java: @@ -859,7 +859,7 @@ libraries: name_pretty_override: Cloud API Registry API product_documentation_override: https://docs.cloud.google.com/api-registry/docs/overview - name: cloudbuild - version: 3.95.0 + version: 3.96.0-SNAPSHOT apis: - path: google/devtools/cloudbuild/v2 java: @@ -875,7 +875,7 @@ libraries: name_pretty_override: Cloud Build product_documentation_override: https://cloud.google.com/cloud-build/ - name: cloudcommerceconsumerprocurement - version: 0.91.0 + version: 0.92.0-SNAPSHOT apis: - path: google/cloud/commerce/consumer/procurement/v1 - path: google/cloud/commerce/consumer/procurement/v1alpha1 @@ -884,7 +884,7 @@ libraries: name_pretty_override: Cloud Commerce Consumer Procurement product_documentation_override: https://cloud.google.com/marketplace/ - name: cloudcontrolspartner - version: 0.57.0 + version: 0.58.0-SNAPSHOT apis: - path: google/cloud/cloudcontrolspartner/v1 - path: google/cloud/cloudcontrolspartner/v1beta @@ -893,7 +893,7 @@ libraries: name_pretty_override: Cloud Controls Partner API product_documentation_override: https://cloud.google.com/sovereign-controls-by-partners/docs/sovereign-partners - name: cloudquotas - version: 0.61.0 + version: 0.62.0-SNAPSHOT apis: - path: google/api/cloudquotas/v1 java: @@ -909,7 +909,7 @@ libraries: name_pretty_override: Cloud Quotas API product_documentation_override: https://cloud.google.com/cloudquotas/docs/ - name: cloudsecuritycompliance - version: 0.20.0 + version: 0.21.0-SNAPSHOT apis: - path: google/cloud/cloudsecuritycompliance/v1 java: @@ -923,7 +923,7 @@ libraries: name_pretty_override: Cloud Security Compliance API product_documentation_override: https://cloud.google.com/security-command-center/docs/compliance-manager-overview - name: cloudsupport - version: 0.77.0 + version: 0.78.0-SNAPSHOT apis: - path: google/cloud/support/v2 - path: google/cloud/support/v2beta @@ -932,7 +932,7 @@ libraries: name_pretty_override: Google Cloud Support API product_documentation_override: https://cloud.google.com/support/docs/reference/support-api/ - name: common-protos - version: 2.72.0 + version: 2.73.0-SNAPSHOT apis: - path: google/apps/card/v1 java: @@ -1038,7 +1038,7 @@ libraries: skip_pom_updates: true skip_api_id: true - name: compute - version: 1.103.0 + version: 1.104.0-SNAPSHOT apis: - path: google/cloud/compute/v1 java: @@ -1057,7 +1057,7 @@ libraries: name_pretty_override: Compute Engine product_documentation_override: https://cloud.google.com/compute/ - name: confidentialcomputing - version: 0.79.0 + version: 0.80.0-SNAPSHOT apis: - path: google/cloud/confidentialcomputing/v1 java: @@ -1072,7 +1072,7 @@ libraries: name_pretty_override: Confidential Computing API product_documentation_override: https://cloud.google.com/confidential-computing/ - name: configdelivery - version: 0.27.0 + version: 0.28.0-SNAPSHOT apis: - path: google/cloud/configdelivery/v1 java: @@ -1091,7 +1091,7 @@ libraries: product_documentation_override: https://cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/concepts/fleet-packages rest_documentation: https://cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/reference/rest - name: connectgateway - version: 0.45.0 + version: 0.46.0-SNAPSHOT apis: - path: google/cloud/gkeconnect/gateway/v1 java: @@ -1102,7 +1102,7 @@ libraries: name_pretty_override: Connect Gateway API product_documentation_override: https://cloud.google.com/kubernetes-engine/enterprise/multicluster-management/gateway - name: contact-center-insights - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/contactcenterinsights/v1 java: @@ -1111,7 +1111,7 @@ libraries: name_pretty_override: CCAI Insights product_documentation_override: https://cloud.google.com/dialogflow/priv/docs/insights/ - name: container - version: 2.96.0 + version: 2.97.0-SNAPSHOT apis: - path: google/container/v1 - path: google/container/v1beta1 @@ -1126,7 +1126,7 @@ libraries: product_documentation_override: https://cloud.google.com/kubernetes-engine/ rest_documentation: https://cloud.google.com/kubernetes-engine/docs/reference/rest - name: containeranalysis - version: 2.94.0 + version: 2.95.0-SNAPSHOT apis: - path: google/devtools/containeranalysis/v1 java: @@ -1144,7 +1144,7 @@ libraries: name_pretty_override: Cloud Container Analysis product_documentation_override: https://cloud.google.com/container-registry/docs/container-analysis - name: contentwarehouse - version: 0.89.0 + version: 0.90.0-SNAPSHOT apis: - path: google/cloud/contentwarehouse/v1 java: @@ -1152,7 +1152,7 @@ libraries: name_pretty_override: Document AI Warehouse product_documentation_override: https://cloud.google.com/document-warehouse/docs/overview - name: data-fusion - version: 1.93.0 + version: 1.94.0-SNAPSHOT apis: - path: google/cloud/datafusion/v1 - path: google/cloud/datafusion/v1beta1 @@ -1162,7 +1162,7 @@ libraries: product_documentation_override: https://cloud.google.com/data-fusion/docs rest_documentation: https://cloud.google.com/data-fusion/docs/reference/rest - name: databasecenter - version: 0.14.0 + version: 0.15.0-SNAPSHOT apis: - path: google/cloud/databasecenter/v1beta java: @@ -1173,7 +1173,7 @@ libraries: name_pretty_override: Database Center API product_documentation_override: https://cloud.google.com/database-center/docs/overview - name: datacatalog - version: 1.99.0 + version: 1.100.0-SNAPSHOT apis: - path: google/cloud/datacatalog/v1 java: @@ -1190,7 +1190,7 @@ libraries: name_pretty_override: Data Catalog product_documentation_override: https://cloud.google.com/data-catalog - name: dataflow - version: 0.97.0 + version: 0.98.0-SNAPSHOT apis: - path: google/dataflow/v1beta3 java: @@ -1200,7 +1200,7 @@ libraries: rest_documentation: https://cloud.google.com/dataflow/docs/reference/rest rpc_documentation: https://cloud.google.com/dataflow/docs/reference/rpc - name: dataform - version: 0.92.0 + version: 0.93.0-SNAPSHOT apis: - path: google/cloud/dataform/v1 java: @@ -1217,7 +1217,7 @@ libraries: name_pretty_override: Cloud Dataform product_documentation_override: https://cloud.google.com/dataform/docs - name: datalabeling - version: 0.213.0 + version: 0.214.0-SNAPSHOT apis: - path: google/cloud/datalabeling/v1beta1 keep: @@ -1229,7 +1229,7 @@ libraries: rest_documentation: https://cloud.google.com/ai-platform/data-labeling/docs/reference/rest rpc_documentation: https://cloud.google.com/ai-platform/data-labeling/docs/reference/rpc - name: datalineage - version: 0.85.0 + version: 0.86.0-SNAPSHOT apis: - path: google/cloud/datacatalog/lineage/v1 - path: google/cloud/datacatalog/lineage/configmanagement/v1 @@ -1238,7 +1238,7 @@ libraries: name_pretty_override: Data Lineage product_documentation_override: https://cloud.google.com/dataplex/docs/about-data-lineage - name: datamanager - version: 0.14.0 + version: 0.15.0-SNAPSHOT apis: - path: google/ads/datamanager/v1 java: @@ -1252,7 +1252,7 @@ libraries: product_documentation_override: https://developers.google.com/data-manager rpc_documentation: https://developers.google.com/data-manager/api/reference/rpc - name: dataplex - version: 1.91.0 + version: 1.92.0-SNAPSHOT apis: - path: google/cloud/dataplex/v1 java: @@ -1266,7 +1266,7 @@ libraries: rest_documentation: https://cloud.google.com/dataplex/docs/reference/rest rpc_documentation: https://cloud.google.com/dataplex/docs/reference/rpc - name: dataproc - version: 4.90.0 + version: 4.91.0-SNAPSHOT apis: - path: google/cloud/dataproc/v1 java: @@ -1281,7 +1281,7 @@ libraries: rest_documentation: https://cloud.google.com/dataproc/docs/reference/rest rpc_documentation: https://cloud.google.com/dataproc/docs/reference/rpc - name: dataproc-metastore - version: 2.94.0 + version: 2.95.0-SNAPSHOT apis: - path: google/cloud/metastore/v1 java: @@ -1305,7 +1305,7 @@ libraries: rest_documentation: https://cloud.google.com/dataproc-metastore/docs/reference/rest rpc_documentation: https://cloud.google.com/dataproc-metastore/docs/reference/rpc - name: datastore - version: 3.1.0 + version: 3.2.0-SNAPSHOT apis: - path: google/datastore/v1 java: @@ -1329,7 +1329,7 @@ libraries: product_documentation_override: https://cloud.google.com/datastore recommended_package: com.google.cloud.datastore - name: datastream - version: 1.92.0 + version: 1.93.0-SNAPSHOT apis: - path: google/cloud/datastream/v1 java: @@ -1343,7 +1343,7 @@ libraries: product_documentation_override: https://cloud.google.com/datastream/docs rest_documentation: https://cloud.google.com/datastream/docs/reference/rest - name: deploy - version: 1.91.0 + version: 1.92.0-SNAPSHOT apis: - path: google/cloud/deploy/v1 java: @@ -1356,7 +1356,7 @@ libraries: name_pretty_override: Google Cloud Deploy product_documentation_override: https://cloud.google.com/deploy/docs - name: developerconnect - version: 0.50.0 + version: 0.51.0-SNAPSHOT apis: - path: google/cloud/developerconnect/v1 java: @@ -1370,7 +1370,7 @@ libraries: name_pretty_override: Developer Connect API product_documentation_override: https://cloud.google.com/developer-connect/docs/overview - name: developerknowledge - version: 0.1.0 + version: 0.2.0-SNAPSHOT apis: - path: google/developers/knowledge/v1 java: @@ -1382,7 +1382,7 @@ libraries: name_pretty_override: Developer Knowledge API product_documentation_override: https://developers.google.com/knowledge - name: devicestreaming - version: 0.33.0 + version: 0.34.0-SNAPSHOT apis: - path: google/cloud/devicestreaming/v1 java: @@ -1393,7 +1393,7 @@ libraries: name_pretty_override: Device Streaming API product_documentation_override: https://cloud.google.com/device-streaming/docs - name: dialogflow - version: 4.99.0 + version: 4.100.0-SNAPSHOT apis: - path: google/cloud/dialogflow/v2 java: @@ -1418,7 +1418,7 @@ libraries: name_pretty_override: Dialogflow API product_documentation_override: https://cloud.google.com/dialogflow-enterprise/ - name: dialogflow-cx - version: 0.104.0 + version: 0.105.0-SNAPSHOT apis: - path: google/cloud/dialogflow/cx/v3 java: @@ -1436,7 +1436,7 @@ libraries: rest_documentation: https://cloud.google.com/dialogflow/cx/docs/reference/rest rpc_documentation: https://cloud.google.com/dialogflow/cx/docs/reference/rpc - name: discoveryengine - version: 0.89.0 + version: 0.90.0-SNAPSHOT apis: - path: google/cloud/discoveryengine/v1 java: @@ -1455,7 +1455,7 @@ libraries: name_pretty_override: Discovery Engine API product_documentation_override: https://cloud.google.com/discovery-engine/media/docs - name: distributedcloudedge - version: 0.90.0 + version: 0.91.0-SNAPSHOT apis: - path: google/cloud/edgecontainer/v1 java: @@ -1468,7 +1468,7 @@ libraries: name_pretty_override: Google Distributed Cloud Edge product_documentation_override: https://cloud.google.com/distributed-cloud/edge/latest/ - name: dlp - version: 3.97.0 + version: 3.98.0-SNAPSHOT apis: - path: google/privacy/dlp/v2 keep: @@ -1494,7 +1494,7 @@ libraries: rest_documentation: https://cloud.google.com/dlp/docs/reference/rest rpc_documentation: https://cloud.google.com/dlp/docs/reference/rpc - name: dms - version: 2.92.0 + version: 2.93.0-SNAPSHOT apis: - path: google/cloud/clouddms/v1 java: @@ -1504,7 +1504,7 @@ libraries: product_documentation_override: https://cloud.google.com/database-migration/docs rest_documentation: https://cloud.google.com/database-migration/docs/reference/rest - name: document-ai - version: 2.97.0 + version: 2.98.0-SNAPSHOT apis: - path: google/cloud/documentai/v1 java: @@ -1520,7 +1520,7 @@ libraries: name_pretty_override: Document AI product_documentation_override: https://cloud.google.com/compute/docs/documentai/ - name: domains - version: 1.90.0 + version: 1.91.0-SNAPSHOT apis: - path: google/cloud/domains/v1 - path: google/cloud/domains/v1beta1 @@ -1530,7 +1530,7 @@ libraries: name_pretty_override: Cloud Domains product_documentation_override: https://cloud.google.com/domains - name: edgenetwork - version: 0.61.0 + version: 0.62.0-SNAPSHOT apis: - path: google/cloud/edgenetwork/v1 java: @@ -1541,7 +1541,7 @@ libraries: name_pretty_override: Distributed Cloud Edge Network API product_documentation_override: https://cloud.google.com/distributed-cloud/edge/latest/docs/overview - name: enterpriseknowledgegraph - version: 0.89.0 + version: 0.90.0-SNAPSHOT apis: - path: google/cloud/enterpriseknowledgegraph/v1 java: @@ -1549,7 +1549,7 @@ libraries: name_pretty_override: Enterprise Knowledge Graph product_documentation_override: https://cloud.google.com/enterprise-knowledge-graph/docs/overview - name: errorreporting - version: 0.214.0-beta + version: 0.215.0-beta-SNAPSHOT apis: - path: google/devtools/clouderrorreporting/v1beta1 java: @@ -1564,8 +1564,9 @@ libraries: name_pretty_override: Error Reporting product_documentation_override: https://cloud.google.com/error-reporting billing_not_required: true + released_version: 0.215.0-beta-SNAPSHOT - name: essential-contacts - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/essentialcontacts/v1 java: @@ -1573,7 +1574,7 @@ libraries: name_pretty_override: Essential Contacts API product_documentation_override: https://cloud.google.com/resource-manager/docs/managing-notification-contacts/ - name: eventarc - version: 1.93.0 + version: 1.94.0-SNAPSHOT apis: - path: google/cloud/eventarc/v1 java: @@ -1588,7 +1589,7 @@ libraries: rest_documentation: https://cloud.google.com/eventarc/docs/reference/rest rpc_documentation: https://cloud.google.com/eventarc/docs/reference/rpc - name: eventarc-publishing - version: 0.93.0 + version: 0.94.0-SNAPSHOT apis: - path: google/cloud/eventarc/publishing/v1 java: @@ -1599,7 +1600,7 @@ libraries: rest_documentation: https://cloud.google.com/eventarc/docs/reference/rest rpc_documentation: https://cloud.google.com/eventarc/docs/reference/rpc - name: filestore - version: 1.94.0 + version: 1.95.0-SNAPSHOT apis: - path: google/cloud/filestore/v1 java: @@ -1617,7 +1618,7 @@ libraries: product_documentation_override: https://cloud.google.com/filestore/docs rest_documentation: https://cloud.google.com/filestore/docs/reference/rest - name: financialservices - version: 0.34.0 + version: 0.35.0-SNAPSHOT apis: - path: google/cloud/financialservices/v1 java: @@ -1631,7 +1632,7 @@ libraries: name_pretty_override: Financial Services API product_documentation_override: https://cloud.google.com/financial-services/anti-money-laundering/docs/concepts/overview - name: firestore - version: 3.43.1 + version: 3.44.0-SNAPSHOT apis: - path: google/firestore/v1 java: @@ -1680,7 +1681,7 @@ libraries: transport_override: grpc skip_pom_updates: true - name: functions - version: 2.95.0 + version: 2.96.0-SNAPSHOT apis: - path: google/cloud/functions/v2 java: @@ -1710,7 +1711,7 @@ libraries: rest_documentation: https://cloud.google.com/functions/docs/reference/rest rpc_documentation: https://cloud.google.com/functions/docs/reference/rpc - name: gdchardwaremanagement - version: 0.48.0 + version: 0.49.0-SNAPSHOT apis: - path: google/cloud/gdchardwaremanagement/v1alpha java: @@ -1725,7 +1726,7 @@ libraries: product_documentation_override: https://cloud.google.com/distributed-cloud/edge/latest/docs rpc_documentation: https://cloud.google.com/distributed-cloud/edge/latest/docs/reference/hardware/rpc - name: geminidataanalytics - version: 0.21.0 + version: 0.22.0-SNAPSHOT apis: - path: google/cloud/geminidataanalytics/v1 java: @@ -1744,7 +1745,7 @@ libraries: product_documentation_override: https://cloud.google.com/gemini/docs/conversational-analytics-api/overview rpc_documentation: https://cloud.google.com/gemini/docs/conversational-analytics-api/reference - name: gke-backup - version: 0.92.0 + version: 0.93.0-SNAPSHOT apis: - path: google/cloud/gkebackup/v1 java: @@ -1758,7 +1759,7 @@ libraries: name_pretty_override: Backup for GKE product_documentation_override: 'https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/concepts/backup-for-gke ' - name: gke-connect-gateway - version: 0.94.0 + version: 0.95.0-SNAPSHOT apis: - path: google/cloud/gkeconnect/gateway/v1beta1 java: @@ -1766,7 +1767,7 @@ libraries: name_pretty_override: Connect Gateway API product_documentation_override: https://cloud.google.com/anthos/multicluster-management/gateway/ - name: gke-multi-cloud - version: 0.92.0 + version: 0.93.0-SNAPSHOT apis: - path: google/cloud/gkemulticloud/v1 java: @@ -1776,7 +1777,7 @@ libraries: name_pretty_override: Anthos Multicloud product_documentation_override: https://cloud.google.com/anthos/clusters/docs/multi-cloud - name: gkehub - version: 1.93.0 + version: 1.94.0-SNAPSHOT apis: - path: google/cloud/gkehub/v1 - path: google/cloud/gkehub/v1beta1 @@ -1807,7 +1808,7 @@ libraries: name_pretty_override: GKE Hub API product_documentation_override: https://cloud.google.com/anthos/gke/docs/ - name: gkerecommender - version: 0.13.0 + version: 0.14.0-SNAPSHOT apis: - path: google/cloud/gkerecommender/v1 java: @@ -1818,10 +1819,10 @@ libraries: name_pretty_override: GKE Recommender API product_documentation_override: https://cloud.google.com/kubernetes-engine/docs/how-to/machine-learning/inference-quickstart - name: google-cloud-java - version: 1.87.1 + version: 1.88.0-SNAPSHOT skip_generate: true - name: grafeas - version: 2.94.0 + version: 2.95.0-SNAPSHOT apis: - path: grafeas/v1 java: @@ -1839,7 +1840,7 @@ libraries: product_documentation_override: https://grafeas.io skip_pom_updates: true - name: gsuite-addons - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/gsuiteaddons/v1 - path: google/apps/script/type @@ -1895,7 +1896,7 @@ libraries: name_pretty_override: Google Workspace Add-ons API product_documentation_override: https://developers.google.com/workspace/add-ons/overview - name: health - version: 0.2.0 + version: 0.3.0-SNAPSHOT apis: - path: google/devicesandservices/health/v4 java: @@ -1907,7 +1908,7 @@ libraries: product_documentation_override: https://developers.google.com/health/api rpc_documentation: https://developers.google.com/health/api/reference/rpc - name: hypercomputecluster - version: 0.13.0 + version: 0.14.0-SNAPSHOT apis: - path: google/cloud/hypercomputecluster/v1 java: @@ -1925,7 +1926,7 @@ libraries: name_pretty_override: Cluster Director API product_documentation_override: https://cloud.google.com/blog/products/compute/managed-slurm-and-other-cluster-director-enhancements - name: iam - version: 1.67.0 + version: 1.68.0-SNAPSHOT apis: - path: google/iam/v3 java: @@ -1978,7 +1979,7 @@ libraries: product_documentation_override: https://cloud.google.com/iam skip_api_id: true - name: iam-admin - version: 3.88.0 + version: 3.89.0-SNAPSHOT apis: - path: google/iam/admin/v1 java: @@ -1989,7 +1990,7 @@ libraries: name_pretty_override: IAM Admin API product_documentation_override: https://cloud.google.com/iam/docs/apis - name: iam-policy - version: 1.90.0 + version: 1.91.0-SNAPSHOT apis: - path: google/iam/v3 java: @@ -2033,7 +2034,7 @@ libraries: name_pretty_override: Cloud IAM Policy product_documentation_override: n/a - name: iamcredentials - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/iam/credentials/v1 java: @@ -2043,7 +2044,7 @@ libraries: product_documentation_override: https://cloud.google.com/iam/credentials/reference/rest/ billing_not_required: true - name: iap - version: 0.49.0 + version: 0.50.0-SNAPSHOT apis: - path: google/cloud/iap/v1 java: @@ -2054,7 +2055,7 @@ libraries: name_pretty_override: Cloud Identity-Aware Proxy API product_documentation_override: https://cloud.google.com/iap - name: ids - version: 1.92.0 + version: 1.93.0-SNAPSHOT apis: - path: google/cloud/ids/v1 java: @@ -2062,7 +2063,7 @@ libraries: name_pretty_override: Intrusion Detection System product_documentation_override: https://cloud.google.com/intrusion-detection-system/docs - name: infra-manager - version: 0.70.0 + version: 0.71.0-SNAPSHOT apis: - path: google/cloud/config/v1 java: @@ -2075,7 +2076,7 @@ libraries: name_pretty_override: Infrastructure Manager API product_documentation_override: https://cloud.google.com/infrastructure-manager/docs/overview - name: iot - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/iot/v1 java: @@ -2084,7 +2085,7 @@ libraries: name_pretty_override: Cloud Internet of Things (IoT) Core product_documentation_override: https://cloud.google.com/iot - name: java-shopping-merchant-issue-resolution - version: 1.21.0 + version: 1.22.0-SNAPSHOT apis: - path: google/shopping/merchant/issueresolution/v1 - path: google/shopping/merchant/issueresolution/v1beta @@ -2098,7 +2099,7 @@ libraries: name_pretty_override: Merchant Issue Resolution API product_documentation_override: https://developers.google.com/merchant/api - name: java-shopping-merchant-order-tracking - version: 1.21.0 + version: 1.22.0-SNAPSHOT apis: - path: google/shopping/merchant/ordertracking/v1 - path: google/shopping/merchant/ordertracking/v1beta @@ -2112,7 +2113,7 @@ libraries: name_pretty_override: Merchant Order Tracking API product_documentation_override: https://developers.google.com/merchant/api - name: kms - version: 2.96.0 + version: 2.97.0-SNAPSHOT apis: - path: google/cloud/kms/v1 java: @@ -2131,7 +2132,7 @@ libraries: name_pretty_override: Cloud Key Management Service product_documentation_override: https://cloud.google.com/kms - name: kmsinventory - version: 0.82.0 + version: 0.83.0-SNAPSHOT apis: - path: google/cloud/kms/inventory/v1 java: @@ -2141,7 +2142,7 @@ libraries: rest_documentation: https://cloud.google.com/kms/docs/reference/rest rpc_documentation: https://cloud.google.com/kms/docs/reference/rpc - name: language - version: 2.94.0 + version: 2.95.0-SNAPSHOT apis: - path: google/cloud/language/v2 - path: google/cloud/language/v1 @@ -2154,7 +2155,7 @@ libraries: rest_documentation: https://cloud.google.com/natural-language/docs/reference/rest rpc_documentation: https://cloud.google.com/natural-language/docs/reference/rpc - name: licensemanager - version: 0.26.0 + version: 0.27.0-SNAPSHOT apis: - path: google/cloud/licensemanager/v1 java: @@ -2168,7 +2169,7 @@ libraries: name_pretty_override: License Manager API product_documentation_override: https://cloud.google.com/compute/docs/instances/windows/ms-licensing - name: life-sciences - version: 0.95.0 + version: 0.96.0-SNAPSHOT apis: - path: google/cloud/lifesciences/v2beta java: @@ -2181,7 +2182,7 @@ libraries: rest_documentation: https://cloud.google.com/life-sciences/docs/reference/rest rpc_documentation: https://cloud.google.com/life-sciences/docs/reference/rpc - name: locationfinder - version: 0.18.0 + version: 0.19.0-SNAPSHOT apis: - path: google/cloud/locationfinder/v1 java: @@ -2193,7 +2194,7 @@ libraries: product_documentation_override: https://cloud.google.com/location-finder/docs/overview rpc_documentation: https://cloud.google.com/locationfinder/docs/reference/rest - name: logging - version: 3.34.0 + version: 3.35.0-SNAPSHOT apis: - path: google/logging/v2 java: @@ -2210,7 +2211,7 @@ libraries: recommended_package: com.google.cloud.logging transport_override: grpc - name: lustre - version: 0.33.0 + version: 0.34.0-SNAPSHOT apis: - path: google/cloud/lustre/v1 java: @@ -2224,7 +2225,7 @@ libraries: name_pretty_override: Google Cloud Managed Lustre API product_documentation_override: https://cloud.google.com/managed-lustre/docs - name: maintenance - version: 0.27.0 + version: 0.28.0-SNAPSHOT apis: - path: google/cloud/maintenance/api/v1 java: @@ -2243,7 +2244,7 @@ libraries: product_documentation_override: https://cloud.google.com/unified-maintenance/docs/overview rpc_documentation: https://cloud.google.com/unified-maintenance/docs/reference/rpc - name: managed-identities - version: 1.91.0 + version: 1.92.0-SNAPSHOT apis: - path: google/cloud/managedidentities/v1 java: @@ -2252,7 +2253,7 @@ libraries: name_pretty_override: Managed Service for Microsoft Active Directory product_documentation_override: https://cloud.google.com/managed-microsoft-ad/ - name: managedkafka - version: 0.49.0 + version: 0.50.0-SNAPSHOT apis: - path: google/cloud/managedkafka/v1 java: @@ -2266,7 +2267,7 @@ libraries: name_pretty_override: Managed Service for Apache Kafka product_documentation_override: https://cloud.google.com/managed-kafka - name: maps-addressvalidation - version: 0.87.0 + version: 0.88.0-SNAPSHOT apis: - path: google/maps/addressvalidation/v1 java: @@ -2278,7 +2279,7 @@ libraries: name_pretty_override: Address Validation API product_documentation_override: https://developers.google.com/maps/documentation/address-validation/ - name: maps-area-insights - version: 0.44.0 + version: 0.45.0-SNAPSHOT apis: - path: google/maps/areainsights/v1 java: @@ -2292,7 +2293,7 @@ libraries: name_pretty_override: Places Insights API product_documentation_override: https://developers.google.com/maps/documentation/places-insights - name: maps-fleetengine - version: 0.40.0 + version: 0.41.0-SNAPSHOT apis: - path: google/maps/fleetengine/v1 java: @@ -2306,7 +2307,7 @@ libraries: name_pretty_override: Local Rides and Deliveries API product_documentation_override: https://developers.google.com/maps/documentation/transportation-logistics/mobility - name: maps-fleetengine-delivery - version: 0.40.0 + version: 0.41.0-SNAPSHOT apis: - path: google/maps/fleetengine/delivery/v1 java: @@ -2320,7 +2321,7 @@ libraries: name_pretty_override: Last Mile Fleet Solution Delivery API product_documentation_override: https://developers.google.com/maps/documentation/transportation-logistics/mobility - name: maps-geocode - version: 0.5.0 + version: 0.6.0-SNAPSHOT apis: - path: google/maps/geocode/v4 java: @@ -2333,7 +2334,7 @@ libraries: name_pretty_override: Geocoding API product_documentation_override: https://developers.google.com/maps/documentation/geocoding/overview - name: maps-mapmanagement - version: 0.2.0 + version: 0.3.0-SNAPSHOT apis: - path: google/maps/mapmanagement/v2beta java: @@ -2346,7 +2347,7 @@ libraries: name_pretty_override: Map Management API product_documentation_override: https://developers.google.com/maps/documentation/mapmanagement/overview - name: maps-mapsplatformdatasets - version: 0.82.0 + version: 0.83.0-SNAPSHOT apis: - path: google/maps/mapsplatformdatasets/v1 java: @@ -2360,7 +2361,7 @@ libraries: name_pretty_override: Maps Platform Datasets API product_documentation_override: https://developers.google.com/maps/documentation - name: maps-places - version: 0.64.0 + version: 0.65.0-SNAPSHOT apis: - path: google/maps/places/v1 java: @@ -2374,7 +2375,7 @@ libraries: name_pretty_override: Places API (New) product_documentation_override: https://developers.google.com/maps/documentation/places/web-service/ - name: maps-routeoptimization - version: 0.51.0 + version: 0.52.0-SNAPSHOT apis: - path: google/maps/routeoptimization/v1 java: @@ -2389,7 +2390,7 @@ libraries: rest_documentation: https://developers.google.com/maps/documentation/route-optimization/reference/rest/ rpc_documentation: https://developers.google.com/maps/documentation/route-optimization/reference/rpc - name: maps-routing - version: 1.78.0 + version: 1.79.0-SNAPSHOT apis: - path: google/maps/routing/v2 java: @@ -2401,7 +2402,7 @@ libraries: name_pretty_override: Routes API product_documentation_override: https://developers.google.com/maps/documentation/routes - name: maps-solar - version: 0.52.0 + version: 0.53.0-SNAPSHOT apis: - path: google/maps/solar/v1 java: @@ -2416,7 +2417,7 @@ libraries: product_documentation_override: https://developers.google.com/maps/documentation/solar/overview rpc_documentation: https://developers.google.com/maps/documentation/solar/reference/rest - name: marketingplatformadminapi - version: 0.42.0 + version: 0.43.0-SNAPSHOT apis: - path: google/marketingplatform/admin/v1alpha java: @@ -2431,7 +2432,7 @@ libraries: name_pretty_override: Google Marketing Platform Admin API product_documentation_override: https://developers.google.com/analytics/devguides/config/gmp/v1 - name: mediatranslation - version: 0.99.0 + version: 0.100.0-SNAPSHOT apis: - path: google/cloud/mediatranslation/v1beta1 java: @@ -2440,7 +2441,7 @@ libraries: product_documentation_override: https://cloud.google.com/ billing_not_required: true - name: meet - version: 0.60.0 + version: 0.61.0-SNAPSHOT apis: - path: google/apps/meet/v2 - path: google/apps/meet/v2beta @@ -2449,7 +2450,7 @@ libraries: name_pretty_override: Google Meet API product_documentation_override: https://developers.google.com/meet/api/guides/overview - name: memcache - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/memcache/v1 java: @@ -2465,7 +2466,7 @@ libraries: product_documentation_override: https://cloud.google.com/memorystore/ billing_not_required: true - name: migrationcenter - version: 0.75.0 + version: 0.76.0-SNAPSHOT apis: - path: google/cloud/migrationcenter/v1 java: @@ -2476,7 +2477,7 @@ libraries: name_pretty_override: Migration Center API product_documentation_override: https://cloud.google.com/migration-center/docs/migration-center-overview - name: modelarmor - version: 0.34.0 + version: 0.35.0-SNAPSHOT apis: - path: google/cloud/modelarmor/v1 java: @@ -2494,7 +2495,7 @@ libraries: name_pretty_override: Model Armor API product_documentation_override: https://cloud.google.com/security-command-center/docs/model-armor-overview - name: monitoring - version: 3.94.0 + version: 3.95.0-SNAPSHOT apis: - path: google/monitoring/v3 keep: @@ -2505,7 +2506,7 @@ libraries: name_pretty_override: Stackdriver Monitoring product_documentation_override: https://cloud.google.com/monitoring/docs - name: monitoring-dashboards - version: 2.95.0 + version: 2.96.0-SNAPSHOT apis: - path: google/monitoring/dashboard/v1 java: @@ -2516,7 +2517,7 @@ libraries: name_pretty_override: Monitoring Dashboards product_documentation_override: https://cloud.google.com/monitoring/charts/dashboards - name: monitoring-metricsscope - version: 0.87.0 + version: 0.88.0-SNAPSHOT apis: - path: google/monitoring/metricsscope/v1 java: @@ -2526,7 +2527,7 @@ libraries: name_pretty_override: Monitoring Metrics Scopes product_documentation_override: https://cloud.google.com/monitoring/api/ref_v3/rest/v1/locations.global.metricsScopes - name: netapp - version: 0.72.0 + version: 0.73.0-SNAPSHOT apis: - path: google/cloud/netapp/v1 java: @@ -2537,7 +2538,7 @@ libraries: name_pretty_override: NetApp API product_documentation_override: https://cloud.google.com/netapp/volumes/docs/discover/overview - name: network-management - version: 1.94.0 + version: 1.95.0-SNAPSHOT apis: - path: google/cloud/networkmanagement/v1 java: @@ -2554,7 +2555,7 @@ libraries: name_pretty_override: Network Management API product_documentation_override: https://cloud.google.com/network-intelligence-center/docs/connectivity-tests/reference/networkmanagement/rest/ - name: network-security - version: 0.96.0 + version: 0.97.0-SNAPSHOT apis: - path: google/cloud/networksecurity/v1 java: @@ -2571,7 +2572,7 @@ libraries: name_pretty_override: Network Security API product_documentation_override: https://cloud.google.com/traffic-director/docs/reference/network-security/rest - name: networkconnectivity - version: 1.92.0 + version: 1.93.0-SNAPSHOT apis: - path: google/cloud/networkconnectivity/v1 java: @@ -2589,7 +2590,7 @@ libraries: name_pretty_override: Network Connectivity Center product_documentation_override: https://cloud.google.com/network-connectivity/docs - name: networkservices - version: 0.49.0 + version: 0.50.0-SNAPSHOT apis: - path: google/cloud/networkservices/v1 java: @@ -2604,7 +2605,7 @@ libraries: name_pretty_override: Network Services API product_documentation_override: https://cloud.google.com/products/networking - name: notebooks - version: 1.91.0 + version: 1.92.0-SNAPSHOT apis: - path: google/cloud/notebooks/v2 java: @@ -2626,7 +2627,7 @@ libraries: name_pretty_override: AI Platform Notebooks product_documentation_override: https://cloud.google.com/ai-platform-notebooks - name: optimization - version: 1.91.0 + version: 1.92.0-SNAPSHOT apis: - path: google/cloud/optimization/v1 java: @@ -2636,7 +2637,7 @@ libraries: rest_documentation: https://cloud.google.com/optimization/docs/reference/rest rpc_documentation: https://cloud.google.com/optimization/docs/reference/rpc - name: oracledatabase - version: 0.42.0 + version: 0.43.0-SNAPSHOT apis: - path: google/cloud/oracledatabase/v1 java: @@ -2650,7 +2651,7 @@ libraries: name_pretty_override: Oracle Database@Google Cloud API product_documentation_override: https://cloud.google.com/oracle/database/docs - name: orchestration-airflow - version: 1.93.0 + version: 1.94.0-SNAPSHOT apis: - path: google/cloud/orchestration/airflow/service/v1 - path: google/cloud/orchestration/airflow/service/v1beta1 @@ -2663,7 +2664,7 @@ libraries: rest_documentation: https://cloud.google.com/composer/docs/reference/rest rpc_documentation: https://cloud.google.com/composer/docs/reference/rpc - name: orgpolicy - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/orgpolicy/v2 - path: google/cloud/orgpolicy/v1 @@ -2678,7 +2679,7 @@ libraries: name_pretty_override: Cloud Organization Policy product_documentation_override: n/a - name: os-config - version: 2.95.0 + version: 2.96.0-SNAPSHOT apis: - path: google/cloud/osconfig/v1 - path: google/cloud/osconfig/v1beta @@ -2690,7 +2691,7 @@ libraries: product_documentation_override: https://cloud.google.com/compute/docs/os-patch-management billing_not_required: true - name: os-login - version: 2.92.0 + version: 2.93.0-SNAPSHOT apis: - path: google/cloud/oslogin/v1 java: @@ -2712,7 +2713,7 @@ libraries: name_pretty_override: Cloud OS Login product_documentation_override: https://cloud.google.com/compute/docs/oslogin/ - name: parallelstore - version: 0.56.0 + version: 0.57.0-SNAPSHOT apis: - path: google/cloud/parallelstore/v1 java: @@ -2730,7 +2731,7 @@ libraries: name_pretty_override: Parallelstore API product_documentation_override: https://cloud/parallelstore?hl=en - name: parametermanager - version: 0.37.0 + version: 0.38.0-SNAPSHOT apis: - path: google/cloud/parametermanager/v1 java: @@ -2744,7 +2745,7 @@ libraries: name_pretty_override: Parameter Manager API product_documentation_override: https://cloud.google.com/secret-manager/parameter-manager/docs/overview - name: phishingprotection - version: 0.124.0 + version: 0.125.0-SNAPSHOT apis: - path: google/cloud/phishingprotection/v1beta1 java: @@ -2753,7 +2754,7 @@ libraries: product_documentation_override: https://cloud.google.com/phishing-protection/docs/ billing_not_required: true - name: policy-troubleshooter - version: 1.92.0 + version: 1.93.0-SNAPSHOT apis: - path: google/cloud/policytroubleshooter/v1 - path: google/cloud/policytroubleshooter/iam/v3 @@ -2763,7 +2764,7 @@ libraries: name_pretty_override: IAM Policy Troubleshooter API product_documentation_override: https://cloud.google.com/iam/docs/troubleshooting-access - name: policysimulator - version: 0.72.0 + version: 0.73.0-SNAPSHOT apis: - path: google/cloud/policysimulator/v1 java: @@ -2771,7 +2772,7 @@ libraries: name_pretty_override: Policy Simulator API product_documentation_override: https://cloud.google.com/policysimulator/docs/overview - name: private-catalog - version: 0.95.0 + version: 0.96.0-SNAPSHOT apis: - path: google/cloud/privatecatalog/v1beta1 java: @@ -2780,7 +2781,7 @@ libraries: name_pretty_override: Private Catalog product_documentation_override: https://cloud.google.com/private-catalog/docs - name: privilegedaccessmanager - version: 0.47.0 + version: 0.48.0-SNAPSHOT apis: - path: google/cloud/privilegedaccessmanager/v1 java: @@ -2795,7 +2796,7 @@ libraries: product_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-privilegedaccessmanager/latest/overview rpc_documentation: https://cloud.google.com/iam/docs/reference/pam/rpc - name: profiler - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/devtools/cloudprofiler/v2 java: @@ -2804,7 +2805,7 @@ libraries: name_pretty_override: Cloud Profiler product_documentation_override: https://cloud.google.com/profiler/docs - name: publicca - version: 0.90.0 + version: 0.91.0-SNAPSHOT apis: - path: google/cloud/security/publicca/v1 - path: google/cloud/security/publicca/v1beta1 @@ -2814,7 +2815,7 @@ libraries: product_documentation_override: https://cloud.google.com/certificate-manager/docs/public-ca rpc_documentation: https://cloud.google.com/certificate-manager/docs/reference/public-ca/rpc - name: pubsub - version: 1.151.0 + version: 1.152.0-SNAPSHOT apis: - path: google/pubsub/v1 java: @@ -2883,7 +2884,7 @@ libraries: product_documentation_override: https://cloud.google.com/pubsub/docs/ recommended_package: com.google.cloud.pubsub.v1 - name: rapidmigrationassessment - version: 0.76.0 + version: 0.77.0-SNAPSHOT apis: - path: google/cloud/rapidmigrationassessment/v1 java: @@ -2894,7 +2895,7 @@ libraries: name_pretty_override: Rapid Migration Assessment API product_documentation_override: https://cloud.google.com/migration-center/docs - name: recaptchaenterprise - version: 3.90.0 + version: 3.91.0-SNAPSHOT apis: - path: google/cloud/recaptchaenterprise/v1 - path: google/cloud/recaptchaenterprise/v1beta1 @@ -2906,7 +2907,7 @@ libraries: rest_documentation: https://cloud.google.com/recaptcha-enterprise/docs/reference/rest rpc_documentation: https://cloud.google.com/recaptcha-enterprise/docs/reference/rpc - name: recommendations-ai - version: 0.100.0 + version: 0.101.0-SNAPSHOT apis: - path: google/cloud/recommendationengine/v1beta1 java: @@ -2914,7 +2915,7 @@ libraries: name_pretty_override: Recommendations AI product_documentation_override: https://cloud.google.com/recommendations-ai/ - name: recommender - version: 2.95.0 + version: 2.96.0-SNAPSHOT apis: - path: google/cloud/recommender/v1 - path: google/cloud/recommender/v1beta1 @@ -2923,7 +2924,7 @@ libraries: name_pretty_override: Recommender product_documentation_override: https://cloud.google.com/recommendations/ - name: redis - version: 2.96.0 + version: 2.97.0-SNAPSHOT apis: - path: google/cloud/redis/v1 java: @@ -2936,7 +2937,7 @@ libraries: name_pretty_override: Cloud Redis product_documentation_override: https://cloud.google.com/memorystore/docs/redis/ - name: redis-cluster - version: 0.65.0 + version: 0.66.0-SNAPSHOT apis: - path: google/cloud/redis/cluster/v1 java: @@ -2952,7 +2953,7 @@ libraries: name_pretty_override: Google Cloud Memorystore for Redis API product_documentation_override: https://cloud.google.com/memorystore/docs/cluster - name: resourcemanager - version: 1.95.0 + version: 1.96.0-SNAPSHOT apis: - path: google/cloud/resourcemanager/v3 java: @@ -2964,7 +2965,7 @@ libraries: product_documentation_override: https://cloud.google.com/resource-manager billing_not_required: true - name: retail - version: 2.95.0 + version: 2.96.0-SNAPSHOT apis: - path: google/cloud/retail/v2 java: @@ -2983,7 +2984,7 @@ libraries: name_pretty_override: Cloud Retail product_documentation_override: https://cloud.google.com/solutions/retail - name: run - version: 0.93.0 + version: 0.94.0-SNAPSHOT apis: - path: google/cloud/run/v2 java: @@ -2996,7 +2997,7 @@ libraries: rest_documentation: https://cloud.google.com/run/docs/reference/rest rpc_documentation: https://cloud.google.com/run/docs/reference/rpc - name: saasservicemgmt - version: 0.23.0 + version: 0.24.0-SNAPSHOT apis: - path: google/cloud/saasplatform/saasservicemgmt/v1beta1 java: @@ -3011,7 +3012,7 @@ libraries: product_documentation_override: https://cloud.google.com/saas-runtime/docs/overview rpc_documentation: https://cloud.google.com/saas-runtime/docs/apis - name: scheduler - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/scheduler/v1 java: @@ -3033,7 +3034,7 @@ libraries: rest_documentation: https://cloud.google.com/scheduler/docs/reference/rest rpc_documentation: https://cloud.google.com/scheduler/docs/reference/rpc - name: secretmanager - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/secretmanager/v1 - path: google/cloud/secretmanager/v1beta2 @@ -3050,7 +3051,7 @@ libraries: product_documentation_override: https://cloud.google.com/solutions/secrets-management/ billing_not_required: true - name: securesourcemanager - version: 0.63.0 + version: 0.64.0-SNAPSHOT apis: - path: google/cloud/securesourcemanager/v1 java: @@ -3064,7 +3065,7 @@ libraries: name_pretty_override: Secure Source Manager API product_documentation_override: https://cloud.google.com/secure-source-manager/docs/overview - name: security-private-ca - version: 2.95.0 + version: 2.96.0-SNAPSHOT apis: - path: google/cloud/security/privateca/v1 java: @@ -3080,7 +3081,7 @@ libraries: rest_documentation: https://cloud.google.com/certificate-authority-service/docs/reference/rest rpc_documentation: https://cloud.google.com/certificate-authority-service/docs/reference/rpc - name: securitycenter - version: 2.101.0 + version: 2.102.0-SNAPSHOT apis: - path: google/cloud/securitycenter/v2 - path: google/cloud/securitycenter/v1 @@ -3100,7 +3101,7 @@ libraries: billing_not_required: true rest_documentation: https://cloud.google.com/security-command-center/docs/reference/rest - name: securitycenter-settings - version: 0.96.0 + version: 0.97.0-SNAPSHOT apis: - path: google/cloud/securitycenter/settings/v1beta1 java: @@ -3111,7 +3112,7 @@ libraries: billing_not_required: true rest_documentation: https://cloud.google.com/security-command-center/docs/reference/rest - name: securitycentermanagement - version: 0.61.0 + version: 0.62.0-SNAPSHOT apis: - path: google/cloud/securitycentermanagement/v1 java: @@ -3122,7 +3123,7 @@ libraries: name_pretty_override: Security Center Management API product_documentation_override: https://cloud.google.com/securitycentermanagement/docs/overview - name: securityposture - version: 0.58.0 + version: 0.59.0-SNAPSHOT apis: - path: google/cloud/securityposture/v1 java: @@ -3133,7 +3134,7 @@ libraries: name_pretty_override: Security Posture API product_documentation_override: https://cloud.google.com/security-command-center/docs/security-posture-overview - name: service-control - version: 1.93.0 + version: 1.94.0-SNAPSHOT apis: - path: google/api/servicecontrol/v2 - path: google/api/servicecontrol/v1 @@ -3142,7 +3143,7 @@ libraries: name_pretty_override: Service Control API product_documentation_override: https://cloud.google.com/service-infrastructure/docs/overview/ - name: service-management - version: 3.91.0 + version: 3.92.0-SNAPSHOT apis: - path: google/api/servicemanagement/v1 java: @@ -3156,7 +3157,7 @@ libraries: name_pretty_override: Service Management API product_documentation_override: https://cloud.google.com/service-infrastructure/docs/overview/ - name: service-usage - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/api/serviceusage/v1 - path: google/api/serviceusage/v1beta1 @@ -3165,7 +3166,7 @@ libraries: name_pretty_override: Service Usage product_documentation_override: https://cloud.google.com/service-usage/docs/overview - name: servicedirectory - version: 2.94.0 + version: 2.95.0-SNAPSHOT apis: - path: google/cloud/servicedirectory/v1 java: @@ -3183,7 +3184,7 @@ libraries: rest_documentation: https://cloud.google.com/service-directory/docs/reference/rest rpc_documentation: https://cloud.google.com/service-directory/docs/reference/rpc - name: servicehealth - version: 0.60.0 + version: 0.61.0-SNAPSHOT apis: - path: google/cloud/servicehealth/v1 java: @@ -3195,7 +3196,7 @@ libraries: product_documentation_override: https://cloud.google.com/service-health/docs/overview rpc_documentation: https://cloud.google.com/service-health/docs/reference/rpc - name: shell - version: 2.92.0 + version: 2.93.0-SNAPSHOT apis: - path: google/cloud/shell/v1 java: @@ -3206,7 +3207,7 @@ libraries: rest_documentation: https://cloud.google.com/shell/docs/reference/rest rpc_documentation: https://cloud.google.com/shell/docs/reference/rpc - name: shopping-css - version: 0.61.0 + version: 0.62.0-SNAPSHOT apis: - path: google/shopping/css/v1 java: @@ -3216,7 +3217,7 @@ libraries: name_pretty_override: CSS API product_documentation_override: https://developers.google.com/comparison-shopping-services/api - name: shopping-merchant-accounts - version: 1.21.0 + version: 1.22.0-SNAPSHOT apis: - path: google/shopping/merchant/accounts/v1 - path: google/shopping/merchant/accounts/v1beta @@ -3230,7 +3231,7 @@ libraries: name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - name: shopping-merchant-conversions - version: 1.21.0 + version: 1.22.0-SNAPSHOT apis: - path: google/shopping/merchant/conversions/v1 - path: google/shopping/merchant/conversions/v1beta @@ -3245,7 +3246,7 @@ libraries: name_pretty_override: Merchant Conversions API product_documentation_override: https://developers.google.com/merchant/api - name: shopping-merchant-datasources - version: 1.21.0 + version: 1.22.0-SNAPSHOT apis: - path: google/shopping/merchant/datasources/v1 - path: google/shopping/merchant/datasources/v1beta @@ -3259,7 +3260,7 @@ libraries: name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - name: shopping-merchant-inventories - version: 1.21.0 + version: 1.22.0-SNAPSHOT apis: - path: google/shopping/merchant/inventories/v1 - path: google/shopping/merchant/inventories/v1beta @@ -3270,7 +3271,7 @@ libraries: name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - name: shopping-merchant-lfp - version: 1.21.0 + version: 1.22.0-SNAPSHOT apis: - path: google/shopping/merchant/lfp/v1 - path: google/shopping/merchant/lfp/v1beta @@ -3285,7 +3286,7 @@ libraries: name_pretty_override: Merchant LFP API product_documentation_override: https://developers.google.com/merchant/api - name: shopping-merchant-notifications - version: 1.21.0 + version: 1.22.0-SNAPSHOT apis: - path: google/shopping/merchant/notifications/v1 - path: google/shopping/merchant/notifications/v1beta @@ -3300,7 +3301,7 @@ libraries: name_pretty_override: Merchant Notifications API product_documentation_override: https://developers.google.com/merchant/api - name: shopping-merchant-product-studio - version: 0.33.0 + version: 0.34.0-SNAPSHOT apis: - path: google/shopping/merchant/productstudio/v1alpha java: @@ -3313,7 +3314,7 @@ libraries: name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - name: shopping-merchant-products - version: 1.21.0 + version: 1.22.0-SNAPSHOT apis: - path: google/shopping/merchant/products/v1 - path: google/shopping/merchant/products/v1beta @@ -3327,7 +3328,7 @@ libraries: name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - name: shopping-merchant-promotions - version: 1.21.0 + version: 1.22.0-SNAPSHOT apis: - path: google/shopping/merchant/promotions/v1 - path: google/shopping/merchant/promotions/v1beta @@ -3341,7 +3342,7 @@ libraries: name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - name: shopping-merchant-quota - version: 1.21.0 + version: 1.22.0-SNAPSHOT apis: - path: google/shopping/merchant/quota/v1 - path: google/shopping/merchant/quota/v1beta @@ -3356,7 +3357,7 @@ libraries: name_pretty_override: Merchant Quota API product_documentation_override: https://developers.google.com/merchant/api - name: shopping-merchant-reports - version: 1.21.0 + version: 1.22.0-SNAPSHOT apis: - path: google/shopping/merchant/reports/v1 - path: google/shopping/merchant/reports/v1beta @@ -3368,7 +3369,7 @@ libraries: name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - name: shopping-merchant-reviews - version: 0.39.0 + version: 0.40.0-SNAPSHOT apis: - path: google/shopping/merchant/reviews/v1beta java: @@ -3406,7 +3407,7 @@ libraries: product_documentation_override: https://cloud.google.com/dummy skip_api_id: true - name: spanner - version: 6.118.0 + version: 6.119.0-SNAPSHOT apis: - path: google/spanner/v1 java: @@ -3447,7 +3448,7 @@ libraries: recommended_package: com.google.cloud.spanner transport_override: grpc - name: spanneradapter - version: 0.29.0 + version: 0.30.0-SNAPSHOT apis: - path: google/spanner/adapter/v1 java: @@ -3459,7 +3460,7 @@ libraries: name_pretty_override: Cloud Spanner Adapter API product_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-spanneradapter/latest/overview - name: speech - version: 4.88.0 + version: 4.89.0-SNAPSHOT apis: - path: google/cloud/speech/v2 java: @@ -3481,7 +3482,7 @@ libraries: rest_documentation: https://cloud.google.com/speech-to-text/docs/reference/rest rpc_documentation: https://cloud.google.com/speech-to-text/docs/reference/rpc - name: storage - version: 2.69.0 + version: 2.70.0-SNAPSHOT apis: - path: google/storage/v2 java: @@ -3517,7 +3518,7 @@ libraries: recommended_package: com.google.cloud.storage transport_override: rest - name: storage-transfer - version: 1.93.0 + version: 1.94.0-SNAPSHOT apis: - path: google/storagetransfer/v1 java: @@ -3525,7 +3526,7 @@ libraries: name_pretty_override: Storage Transfer Service product_documentation_override: https://cloud.google.com/storage-transfer-service - name: storagebatchoperations - version: 0.33.0 + version: 0.34.0-SNAPSHOT apis: - path: google/cloud/storagebatchoperations/v1 java: @@ -3539,7 +3540,7 @@ libraries: name_pretty_override: Storage Batch Operations API product_documentation_override: https://cloud.google.com/storage/docs/batch-operations/overview - name: storageinsights - version: 0.78.0 + version: 0.79.0-SNAPSHOT apis: - path: google/cloud/storageinsights/v1 java: @@ -3550,7 +3551,7 @@ libraries: name_pretty_override: Storage Insights API product_documentation_override: https://cloud.google.com/storage/docs/insights/storage-insights/ - name: talent - version: 2.94.0 + version: 2.95.0-SNAPSHOT apis: - path: google/cloud/talent/v4 - path: google/cloud/talent/v4beta1 @@ -3560,7 +3561,7 @@ libraries: name_pretty_override: Talent Solution product_documentation_override: https://cloud.google.com/solutions/talent-solution/ - name: tasks - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/tasks/v2 java: @@ -3588,7 +3589,7 @@ libraries: rest_documentation: https://cloud.google.com/tasks/docs/reference/rest rpc_documentation: https://cloud.google.com/tasks/docs/reference/rpc - name: telcoautomation - version: 0.63.0 + version: 0.64.0-SNAPSHOT apis: - path: google/cloud/telcoautomation/v1 java: @@ -3603,7 +3604,7 @@ libraries: name_pretty_override: Telco Automation API product_documentation_override: https://cloud.google.com/telecom-network-automation - name: texttospeech - version: 2.94.0 + version: 2.95.0-SNAPSHOT apis: - path: google/cloud/texttospeech/v1 - path: google/cloud/texttospeech/v1beta1 @@ -3619,7 +3620,7 @@ libraries: rest_documentation: https://cloud.google.com/text-to-speech/docs/reference/rest rpc_documentation: https://cloud.google.com/text-to-speech/docs/reference/rpc - name: tpu - version: 2.94.0 + version: 2.95.0-SNAPSHOT apis: - path: google/cloud/tpu/v2 java: @@ -3639,7 +3640,7 @@ libraries: product_documentation_override: https://cloud.google.com/tpu/docs rest_documentation: https://cloud.google.com/tpu/docs/reference/rest - name: trace - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/devtools/cloudtrace/v2 - path: google/devtools/cloudtrace/v1 @@ -3652,7 +3653,7 @@ libraries: product_documentation_override: https://cloud.google.com/trace/docs/ billing_not_required: true - name: translate - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/translate/v3 - path: google/cloud/translate/v3beta1 @@ -3665,7 +3666,7 @@ libraries: rest_documentation: https://cloud.google.com/translate/docs/reference/rest rpc_documentation: https://cloud.google.com/translate/docs/reference/rpc - name: valkey - version: 0.39.0 + version: 0.40.0-SNAPSHOT apis: - path: google/cloud/memorystore/v1 java: @@ -3684,7 +3685,7 @@ libraries: product_documentation_override: https://cloud.google.com/memorystore/docs/valkey rest_documentation: https://cloud.google.com/memorystore/docs/valkey/reference/rest - name: vectorsearch - version: 0.15.0 + version: 0.16.0-SNAPSHOT apis: - path: google/cloud/vectorsearch/v1 java: @@ -3702,7 +3703,7 @@ libraries: name_pretty_override: Vector Search API product_documentation_override: https://docs.cloud.google.com/vertex-ai/docs/vector-search/overview - name: video-intelligence - version: 2.92.0 + version: 2.93.0-SNAPSHOT apis: - path: google/cloud/videointelligence/v1 - path: google/cloud/videointelligence/v1p3beta1 @@ -3717,7 +3718,7 @@ libraries: rest_documentation: https://cloud.google.com/video-intelligence/docs/reference/rest rpc_documentation: https://cloud.google.com/video-intelligence/docs/reference/rpc - name: video-live-stream - version: 0.95.0 + version: 0.96.0-SNAPSHOT apis: - path: google/cloud/video/livestream/v1 java: @@ -3729,7 +3730,7 @@ libraries: name_pretty_override: Live Stream API product_documentation_override: https://cloud.google.com/livestream/ - name: video-stitcher - version: 0.93.0 + version: 0.94.0-SNAPSHOT apis: - path: google/cloud/video/stitcher/v1 java: @@ -3737,7 +3738,7 @@ libraries: name_pretty_override: Video Stitcher API product_documentation_override: https://cloud.google.com/video-stitcher/ - name: video-transcoder - version: 1.92.0 + version: 1.93.0-SNAPSHOT apis: - path: google/cloud/video/transcoder/v1 java: @@ -3748,7 +3749,7 @@ libraries: rest_documentation: https://cloud.google.com/transcoder/docs/reference/rest rpc_documentation: https://cloud.google.com/transcoder/docs/reference/rpc - name: vision - version: 3.91.0 + version: 3.92.0-SNAPSHOT apis: - path: google/cloud/vision/v1 - path: google/cloud/vision/v1p4beta1 @@ -3773,7 +3774,7 @@ libraries: rest_documentation: https://cloud.google.com/vision/docs/reference/rest rpc_documentation: https://cloud.google.com/vision/docs/reference/rpc - name: visionai - version: 0.50.0 + version: 0.51.0-SNAPSHOT apis: - path: google/cloud/visionai/v1 java: @@ -3789,7 +3790,7 @@ libraries: product_documentation_override: https://cloud.google.com/vision-ai/docs rpc_documentation: https://cloud.google.com/vision-ai/docs/reference/rpc - name: vmmigration - version: 1.93.0 + version: 1.94.0-SNAPSHOT apis: - path: google/cloud/vmmigration/v1 java: @@ -3801,7 +3802,7 @@ libraries: name_pretty_override: VM Migration product_documentation_override: n/a - name: vmwareengine - version: 0.87.0 + version: 0.88.0-SNAPSHOT apis: - path: google/cloud/vmwareengine/v1 java: @@ -3814,7 +3815,7 @@ libraries: product_documentation_override: https://cloud.google.com/vmware-engine/ rest_documentation: https://cloud.google.com/vmware-engine/docs/reference/rest - name: vpcaccess - version: 2.94.0 + version: 2.95.0-SNAPSHOT apis: - path: google/cloud/vpcaccess/v1 java: @@ -3825,7 +3826,7 @@ libraries: name_pretty_override: Serverless VPC Access product_documentation_override: https://cloud.google.com/vpc/docs/serverless-vpc-access - name: webrisk - version: 2.92.0 + version: 2.93.0-SNAPSHOT apis: - path: google/cloud/webrisk/v1 - path: google/cloud/webrisk/v1beta1 @@ -3837,7 +3838,7 @@ libraries: rest_documentation: https://cloud.google.com/web-risk/docs/reference/rest rpc_documentation: https://cloud.google.com/web-risk/docs/reference/rpc - name: websecurityscanner - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/websecurityscanner/v1 - path: google/cloud/websecurityscanner/v1beta @@ -3852,7 +3853,7 @@ libraries: product_documentation_override: https://cloud.google.com/security-scanner/docs/ billing_not_required: true - name: workflow-executions - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/workflows/executions/v1 - path: google/cloud/workflows/executions/v1beta @@ -3863,7 +3864,7 @@ libraries: product_documentation_override: https://cloud.google.com/workflows rest_documentation: https://cloud.google.com/workflows/docs/reference/rest - name: workflows - version: 2.93.0 + version: 2.94.0-SNAPSHOT apis: - path: google/cloud/workflows/v1 java: @@ -3880,7 +3881,7 @@ libraries: product_documentation_override: https://cloud.google.com/workflows rest_documentation: https://cloud.google.com/workflows/docs/reference/rest - name: workloadmanager - version: 0.9.0 + version: 0.10.0-SNAPSHOT apis: - path: google/cloud/workloadmanager/v1 java: @@ -3895,7 +3896,7 @@ libraries: product_documentation_override: https://docs.cloud.google.com/workload-manager/docs rpc_documentation: https://docs.cloud.google.com/workload-manager/docs/reference/rest - name: workspaceevents - version: 0.57.0 + version: 0.58.0-SNAPSHOT apis: - path: google/apps/events/subscriptions/v1 - path: google/apps/events/subscriptions/v1beta @@ -3905,7 +3906,7 @@ libraries: product_documentation_override: https://developers.google.com/workspace/events rest_documentation: https://developers.google.com/workspace/events/reference/rest - name: workstations - version: 0.81.0 + version: 0.82.0-SNAPSHOT apis: - path: google/cloud/workstations/v1 java: diff --git a/sdk-platform-java/.cloudbuild/graalvm/cloudbuild-test-a.yaml b/sdk-platform-java/.cloudbuild/graalvm/cloudbuild-test-a.yaml index 7fbe4fa6d0d6..16badbe8b89d 100644 --- a/sdk-platform-java/.cloudbuild/graalvm/cloudbuild-test-a.yaml +++ b/sdk-platform-java/.cloudbuild/graalvm/cloudbuild-test-a.yaml @@ -14,7 +14,7 @@ timeout: 7200s # 2 hours substitutions: - _SHARED_DEPENDENCIES_VERSION: '3.63.0' # {x-version-update:google-cloud-shared-dependencies:current} + _SHARED_DEPENDENCIES_VERSION: '3.64.0-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current} _JAVA_SHARED_CONFIG_VERSION: '1.17.0' options: machineType: 'E2_HIGHCPU_8' diff --git a/sdk-platform-java/.cloudbuild/graalvm/cloudbuild-test-b.yaml b/sdk-platform-java/.cloudbuild/graalvm/cloudbuild-test-b.yaml index 331f6ecebe53..100a20f48bc4 100644 --- a/sdk-platform-java/.cloudbuild/graalvm/cloudbuild-test-b.yaml +++ b/sdk-platform-java/.cloudbuild/graalvm/cloudbuild-test-b.yaml @@ -14,7 +14,7 @@ timeout: 7200s # 2 hours substitutions: - _SHARED_DEPENDENCIES_VERSION: '3.63.0' # {x-version-update:google-cloud-shared-dependencies:current} + _SHARED_DEPENDENCIES_VERSION: '3.64.0-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current} _JAVA_SHARED_CONFIG_VERSION: '1.17.0' options: machineType: 'E2_HIGHCPU_8' diff --git a/sdk-platform-java/.cloudbuild/graalvm/cloudbuild-test-c.yaml b/sdk-platform-java/.cloudbuild/graalvm/cloudbuild-test-c.yaml index 86168b7910bc..6f97e789933f 100644 --- a/sdk-platform-java/.cloudbuild/graalvm/cloudbuild-test-c.yaml +++ b/sdk-platform-java/.cloudbuild/graalvm/cloudbuild-test-c.yaml @@ -14,7 +14,7 @@ timeout: 7200s # 2 hours substitutions: - _SHARED_DEPENDENCIES_VERSION: '3.63.0' # {x-version-update:google-cloud-shared-dependencies:current} + _SHARED_DEPENDENCIES_VERSION: '3.64.0-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current} _JAVA_SHARED_CONFIG_VERSION: '1.17.0' options: machineType: 'E2_HIGHCPU_8' diff --git a/sdk-platform-java/.cloudbuild/graalvm/cloudbuild.yaml b/sdk-platform-java/.cloudbuild/graalvm/cloudbuild.yaml index f29f76f81e36..24d864b9367a 100644 --- a/sdk-platform-java/.cloudbuild/graalvm/cloudbuild.yaml +++ b/sdk-platform-java/.cloudbuild/graalvm/cloudbuild.yaml @@ -14,7 +14,7 @@ timeout: 7200s # 2 hours substitutions: - _SHARED_DEPENDENCIES_VERSION: '3.63.0' # {x-version-update:google-cloud-shared-dependencies:current} + _SHARED_DEPENDENCIES_VERSION: '3.64.0-SNAPSHOT' # {x-version-update:google-cloud-shared-dependencies:current} _JAVA_SHARED_CONFIG_VERSION: '1.17.0' steps: # GraalVM A build diff --git a/sdk-platform-java/.cloudbuild/library_generation/cloudbuild-library-generation-push.yaml b/sdk-platform-java/.cloudbuild/library_generation/cloudbuild-library-generation-push.yaml index 5b59b310a12b..1e3fd3c63669 100644 --- a/sdk-platform-java/.cloudbuild/library_generation/cloudbuild-library-generation-push.yaml +++ b/sdk-platform-java/.cloudbuild/library_generation/cloudbuild-library-generation-push.yaml @@ -14,7 +14,7 @@ timeout: 7200s # 2 hours substitutions: - _GAPIC_GENERATOR_JAVA_VERSION: '2.73.0' # {x-version-update:gapic-generator-java:current} + _GAPIC_GENERATOR_JAVA_VERSION: '2.74.0-SNAPSHOT' # {x-version-update:gapic-generator-java:current} _PRIVATE_IMAGE_NAME: "us-docker.pkg.dev/java-hermetic-build-prod/private-resources/java-library-generation" _PRIVATE_SHA_IMAGE_ID: "${_PRIVATE_IMAGE_NAME}:${COMMIT_SHA}" _PRIVATE_LATEST_IMAGE_ID: "${_PRIVATE_IMAGE_NAME}:latest" diff --git a/sdk-platform-java/.cloudbuild/library_generation/library_generation.Dockerfile b/sdk-platform-java/.cloudbuild/library_generation/library_generation.Dockerfile index 12416916e2cf..2b79df53de01 100644 --- a/sdk-platform-java/.cloudbuild/library_generation/library_generation.Dockerfile +++ b/sdk-platform-java/.cloudbuild/library_generation/library_generation.Dockerfile @@ -22,7 +22,7 @@ WORKDIR /google-cloud-java COPY . . # {x-version-update-start:gapic-generator-java:current} -ENV DOCKER_GAPIC_GENERATOR_VERSION="2.73.0" +ENV DOCKER_GAPIC_GENERATOR_VERSION="2.74.0-SNAPSHOT" # {x-version-update-end} # Download the java formatter @@ -44,7 +44,7 @@ ENV HOME=/home ENV OS_ARCHITECTURE="linux-x86_64" # {x-version-update-start:gapic-generator-java:current} -ENV GENERATOR_VERSION="2.73.0" +ENV GENERATOR_VERSION="2.74.0-SNAPSHOT" # {x-version-update-end} # install OS tools diff --git a/sdk-platform-java/.cloudbuild/library_generation/library_generation_airlock.Dockerfile b/sdk-platform-java/.cloudbuild/library_generation/library_generation_airlock.Dockerfile index 5df58abf1e64..2d4ad9e5ef56 100644 --- a/sdk-platform-java/.cloudbuild/library_generation/library_generation_airlock.Dockerfile +++ b/sdk-platform-java/.cloudbuild/library_generation/library_generation_airlock.Dockerfile @@ -22,7 +22,7 @@ WORKDIR /google-cloud-java COPY . . # {x-version-update-start:gapic-generator-java:current} -ENV DOCKER_GAPIC_GENERATOR_VERSION="2.73.0" +ENV DOCKER_GAPIC_GENERATOR_VERSION="2.74.0-SNAPSHOT" # {x-version-update-end} # Download the java formatter diff --git a/sdk-platform-java/api-common-java/pom.xml b/sdk-platform-java/api-common-java/pom.xml index af96a9fed873..f11e2e5b354b 100644 --- a/sdk-platform-java/api-common-java/pom.xml +++ b/sdk-platform-java/api-common-java/pom.xml @@ -5,14 +5,14 @@ com.google.api api-common jar - 2.64.0 + 2.65.0-SNAPSHOT API Common Common utilities for Google APIs in Java com.google.api gapic-generator-java-pom-parent - 2.73.0 + 2.74.0-SNAPSHOT ../gapic-generator-java-pom-parent diff --git a/sdk-platform-java/coverage-report/pom.xml b/sdk-platform-java/coverage-report/pom.xml index 83c5b2a57013..a4311fed8a0f 100644 --- a/sdk-platform-java/coverage-report/pom.xml +++ b/sdk-platform-java/coverage-report/pom.xml @@ -31,22 +31,22 @@ com.google.api gax - 2.81.0 + 2.82.0-SNAPSHOT com.google.api gax-grpc - 2.81.0 + 2.82.0-SNAPSHOT com.google.api gax-httpjson - 2.81.0 + 2.82.0-SNAPSHOT com.google.api api-common - 2.64.0 + 2.65.0-SNAPSHOT diff --git a/sdk-platform-java/gapic-generator-java-bom/pom.xml b/sdk-platform-java/gapic-generator-java-bom/pom.xml index edbc68a5e3ba..38be327192cd 100644 --- a/sdk-platform-java/gapic-generator-java-bom/pom.xml +++ b/sdk-platform-java/gapic-generator-java-bom/pom.xml @@ -4,7 +4,7 @@ com.google.api gapic-generator-java-bom pom - 2.73.0 + 2.74.0-SNAPSHOT GAPIC Generator Java BOM BOM for the libraries in gapic-generator-java repository. Users should not @@ -15,7 +15,7 @@ com.google.api gapic-generator-java-pom-parent - 2.73.0 + 2.74.0-SNAPSHOT ../gapic-generator-java-pom-parent @@ -25,27 +25,27 @@ com.google.auth google-auth-library-credentials - 1.48.0 + 1.49.0-SNAPSHOT com.google.auth google-auth-library-oauth2-http - 1.48.0 + 1.49.0-SNAPSHOT com.google.auth google-auth-library-appengine - 1.48.0 + 1.49.0-SNAPSHOT com.google.auth google-auth-library-cab-token-generator - 1.48.0 + 1.49.0-SNAPSHOT com.google.auth google-auth-library-oauth2-http - 1.48.0 + 1.49.0-SNAPSHOT test-jar testlib test @@ -88,81 +88,81 @@ com.google.api api-common - 2.64.0 + 2.65.0-SNAPSHOT com.google.api gax-bom - 2.81.0 + 2.82.0-SNAPSHOT pom import com.google.api gapic-generator-java - 2.73.0 + 2.74.0-SNAPSHOT com.google.api.grpc grpc-google-common-protos - 2.72.0 + 2.73.0-SNAPSHOT com.google.api.grpc proto-google-common-protos - 2.72.0 + 2.73.0-SNAPSHOT com.google.api.grpc proto-google-iam-v1 - 1.67.0 + 1.68.0-SNAPSHOT com.google.api.grpc proto-google-iam-v2 - 1.67.0 + 1.68.0-SNAPSHOT com.google.api.grpc proto-google-iam-v2beta - 1.67.0 + 1.68.0-SNAPSHOT com.google.api.grpc proto-google-iam-v3 - 1.67.0 + 1.68.0-SNAPSHOT com.google.api.grpc proto-google-iam-v3beta - 1.67.0 + 1.68.0-SNAPSHOT com.google.api.grpc grpc-google-iam-v1 - 1.67.0 + 1.68.0-SNAPSHOT com.google.api.grpc grpc-google-iam-v2 - 1.67.0 + 1.68.0-SNAPSHOT com.google.api.grpc grpc-google-iam-v2beta - 1.67.0 + 1.68.0-SNAPSHOT com.google.api.grpc grpc-google-iam-v3 - 1.67.0 + 1.68.0-SNAPSHOT com.google.api.grpc grpc-google-iam-v3beta - 1.67.0 + 1.68.0-SNAPSHOT diff --git a/sdk-platform-java/gapic-generator-java-pom-parent/pom.xml b/sdk-platform-java/gapic-generator-java-pom-parent/pom.xml index c8a8ee8554d9..dcf064bd91b4 100644 --- a/sdk-platform-java/gapic-generator-java-pom-parent/pom.xml +++ b/sdk-platform-java/gapic-generator-java-pom-parent/pom.xml @@ -5,7 +5,7 @@ 4.0.0 com.google.api gapic-generator-java-pom-parent - 2.73.0 + 2.74.0-SNAPSHOT pom GAPIC Generator Java POM Parent https://github.com/googleapis/sdk-platform-java diff --git a/sdk-platform-java/gapic-generator-java/pom.xml b/sdk-platform-java/gapic-generator-java/pom.xml index 03b91b92dc51..736b3ca5a20e 100644 --- a/sdk-platform-java/gapic-generator-java/pom.xml +++ b/sdk-platform-java/gapic-generator-java/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.google.api gapic-generator-java - 2.73.0 + 2.74.0-SNAPSHOT GAPIC Generator Java GAPIC generator Java @@ -23,7 +23,7 @@ com.google.api gapic-generator-java-pom-parent - 2.73.0 + 2.74.0-SNAPSHOT ../gapic-generator-java-pom-parent @@ -32,7 +32,7 @@ com.google.api gapic-generator-java-bom - 2.73.0 + 2.74.0-SNAPSHOT pom import @@ -401,7 +401,7 @@ com.google.api api-common - 2.64.0 + 2.65.0-SNAPSHOT org.junit.jupiter @@ -427,7 +427,7 @@ com.google.api.grpc proto-google-common-protos - 2.72.0 + 2.73.0-SNAPSHOT com.google.protobuf diff --git a/sdk-platform-java/gax-java/dependencies.properties b/sdk-platform-java/gax-java/dependencies.properties index 261ff0a9f8af..1a0a10545dad 100644 --- a/sdk-platform-java/gax-java/dependencies.properties +++ b/sdk-platform-java/gax-java/dependencies.properties @@ -8,16 +8,16 @@ # Versions of oneself # {x-version-update-start:gax:current} -version.gax=2.81.0 +version.gax=2.82.0-SNAPSHOT # {x-version-update-end} # {x-version-update-start:gax:current} -version.gax_grpc=2.81.0 +version.gax_grpc=2.82.0-SNAPSHOT # {x-version-update-end} # {x-version-update-start:gax:current} -version.gax_bom=2.81.0 +version.gax_bom=2.82.0-SNAPSHOT # {x-version-update-end} # {x-version-update-start:gax:current} -version.gax_httpjson=2.81.0 +version.gax_httpjson=2.82.0-SNAPSHOT # {x-version-update-end} # Versions for dependencies which actual artifacts differ between Bazel and Gradle. diff --git a/sdk-platform-java/gax-java/gax-bom/pom.xml b/sdk-platform-java/gax-java/gax-bom/pom.xml index bc03da050638..e7b5e38018e0 100644 --- a/sdk-platform-java/gax-java/gax-bom/pom.xml +++ b/sdk-platform-java/gax-java/gax-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.api gax-bom - 2.81.0 + 2.82.0-SNAPSHOT pom GAX (Google Api eXtensions) for Java (BOM) Google Api eXtensions for Java (BOM) @@ -43,55 +43,55 @@ com.google.api gax - 2.81.0 + 2.82.0-SNAPSHOT com.google.api gax - 2.81.0 + 2.82.0-SNAPSHOT test-jar testlib com.google.api gax - 2.81.0 + 2.82.0-SNAPSHOT testlib com.google.api gax-grpc - 2.81.0 + 2.82.0-SNAPSHOT com.google.api gax-grpc - 2.81.0 + 2.82.0-SNAPSHOT test-jar testlib com.google.api gax-grpc - 2.81.0 + 2.82.0-SNAPSHOT testlib com.google.api gax-httpjson - 2.81.0 + 2.82.0-SNAPSHOT com.google.api gax-httpjson - 2.81.0 + 2.82.0-SNAPSHOT test-jar testlib com.google.api gax-httpjson - 2.81.0 + 2.82.0-SNAPSHOT testlib diff --git a/sdk-platform-java/gax-java/gax-grpc/pom.xml b/sdk-platform-java/gax-java/gax-grpc/pom.xml index 434409a72807..d8dfbdf27370 100644 --- a/sdk-platform-java/gax-java/gax-grpc/pom.xml +++ b/sdk-platform-java/gax-java/gax-grpc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 gax-grpc - 2.81.0 + 2.82.0-SNAPSHOT jar GAX (Google Api eXtensions) for Java (gRPC) Google Api eXtensions for Java (gRPC) @@ -11,7 +11,7 @@ com.google.api gax-parent - 2.81.0 + 2.82.0-SNAPSHOT diff --git a/sdk-platform-java/gax-java/gax-httpjson/pom.xml b/sdk-platform-java/gax-java/gax-httpjson/pom.xml index 2a57b9a542cd..6edf3a5d2552 100644 --- a/sdk-platform-java/gax-java/gax-httpjson/pom.xml +++ b/sdk-platform-java/gax-java/gax-httpjson/pom.xml @@ -3,7 +3,7 @@ 4.0.0 gax-httpjson - 2.81.0 + 2.82.0-SNAPSHOT jar GAX (Google Api eXtensions) for Java (HTTP JSON) Google Api eXtensions for Java (HTTP JSON) @@ -11,7 +11,7 @@ com.google.api gax-parent - 2.81.0 + 2.82.0-SNAPSHOT diff --git a/sdk-platform-java/gax-java/gax/pom.xml b/sdk-platform-java/gax-java/gax/pom.xml index 76688e04ef86..4a7de697b8b1 100644 --- a/sdk-platform-java/gax-java/gax/pom.xml +++ b/sdk-platform-java/gax-java/gax/pom.xml @@ -3,7 +3,7 @@ 4.0.0 gax - 2.81.0 + 2.82.0-SNAPSHOT jar GAX (Google Api eXtensions) for Java (Core) Google Api eXtensions for Java (Core) @@ -11,7 +11,7 @@ com.google.api gax-parent - 2.81.0 + 2.82.0-SNAPSHOT diff --git a/sdk-platform-java/gax-java/pom.xml b/sdk-platform-java/gax-java/pom.xml index e46f1018a813..32103d17a33e 100644 --- a/sdk-platform-java/gax-java/pom.xml +++ b/sdk-platform-java/gax-java/pom.xml @@ -4,14 +4,14 @@ com.google.api gax-parent pom - 2.81.0 + 2.82.0-SNAPSHOT GAX (Google Api eXtensions) for Java (Parent) Google Api eXtensions for Java (Parent) com.google.api gapic-generator-java-pom-parent - 2.73.0 + 2.74.0-SNAPSHOT ../gapic-generator-java-pom-parent @@ -50,27 +50,27 @@ com.google.api api-common - 2.64.0 + 2.65.0-SNAPSHOT com.google.auth google-auth-library-credentials - 1.48.0 + 1.49.0-SNAPSHOT com.google.auth google-auth-library-oauth2-http - 1.48.0 + 1.49.0-SNAPSHOT com.google.auth google-auth-library-appengine - 1.48.0 + 1.49.0-SNAPSHOT com.google.auth google-auth-library-cab-token-generator - 1.48.0 + 1.49.0-SNAPSHOT org.threeten @@ -111,24 +111,24 @@ com.google.api gax - 2.81.0 + 2.82.0-SNAPSHOT com.google.api gax - 2.81.0 + 2.82.0-SNAPSHOT test-jar testlib com.google.api.grpc proto-google-common-protos - 2.72.0 + 2.73.0-SNAPSHOT com.google.api.grpc grpc-google-common-protos - 2.72.0 + 2.73.0-SNAPSHOT io.grpc diff --git a/sdk-platform-java/hermetic_build/library_generation/owlbot/templates/java_library/.kokoro/presubmit/graalvm-native-a.cfg b/sdk-platform-java/hermetic_build/library_generation/owlbot/templates/java_library/.kokoro/presubmit/graalvm-native-a.cfg index 30b79d45c426..fcb5a3d54a0f 100644 --- a/sdk-platform-java/hermetic_build/library_generation/owlbot/templates/java_library/.kokoro/presubmit/graalvm-native-a.cfg +++ b/sdk-platform-java/hermetic_build/library_generation/owlbot/templates/java_library/.kokoro/presubmit/graalvm-native-a.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.63.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_a:3.64.0-SNAPSHOT" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/sdk-platform-java/hermetic_build/library_generation/owlbot/templates/java_library/.kokoro/presubmit/graalvm-native-b.cfg b/sdk-platform-java/hermetic_build/library_generation/owlbot/templates/java_library/.kokoro/presubmit/graalvm-native-b.cfg index ad72a9c777bb..4db7ee51b785 100644 --- a/sdk-platform-java/hermetic_build/library_generation/owlbot/templates/java_library/.kokoro/presubmit/graalvm-native-b.cfg +++ b/sdk-platform-java/hermetic_build/library_generation/owlbot/templates/java_library/.kokoro/presubmit/graalvm-native-b.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.63.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_b:3.64.0-SNAPSHOT" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/sdk-platform-java/hermetic_build/library_generation/owlbot/templates/java_library/.kokoro/presubmit/graalvm-native-c.cfg b/sdk-platform-java/hermetic_build/library_generation/owlbot/templates/java_library/.kokoro/presubmit/graalvm-native-c.cfg index a81e9ce312c0..465d5fcd1236 100644 --- a/sdk-platform-java/hermetic_build/library_generation/owlbot/templates/java_library/.kokoro/presubmit/graalvm-native-c.cfg +++ b/sdk-platform-java/hermetic_build/library_generation/owlbot/templates/java_library/.kokoro/presubmit/graalvm-native-c.cfg @@ -3,7 +3,7 @@ # Configure the docker image for kokoro-trampoline. env_vars: { key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.63.0" # {x-version-update:google-cloud-shared-dependencies:current} + value: "gcr.io/cloud-devrel-public-resources/graalvm_sdk_platform_c:3.64.0-SNAPSHOT" # {x-version-update:google-cloud-shared-dependencies:current} } env_vars: { diff --git a/sdk-platform-java/java-core/google-cloud-core-bom/pom.xml b/sdk-platform-java/java-core/google-cloud-core-bom/pom.xml index 5986b9bfb93d..d437009f4002 100644 --- a/sdk-platform-java/java-core/google-cloud-core-bom/pom.xml +++ b/sdk-platform-java/java-core/google-cloud-core-bom/pom.xml @@ -3,13 +3,13 @@ 4.0.0 com.google.cloud google-cloud-core-bom - 2.71.0 + 2.72.0-SNAPSHOT pom com.google.api gapic-generator-java-pom-parent - 2.73.0 + 2.74.0-SNAPSHOT ../../gapic-generator-java-pom-parent @@ -23,17 +23,17 @@ com.google.cloud google-cloud-core - 2.71.0 + 2.72.0-SNAPSHOT com.google.cloud google-cloud-core-grpc - 2.71.0 + 2.72.0-SNAPSHOT com.google.cloud google-cloud-core-http - 2.71.0 + 2.72.0-SNAPSHOT diff --git a/sdk-platform-java/java-core/google-cloud-core-grpc/pom.xml b/sdk-platform-java/java-core/google-cloud-core-grpc/pom.xml index e6ab9c2d17f8..b437710d05f3 100644 --- a/sdk-platform-java/java-core/google-cloud-core-grpc/pom.xml +++ b/sdk-platform-java/java-core/google-cloud-core-grpc/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-core-grpc - 2.71.0 + 2.72.0-SNAPSHOT jar Google Cloud Core gRPC @@ -12,7 +12,7 @@ com.google.cloud google-cloud-core-parent - 2.71.0 + 2.72.0-SNAPSHOT google-cloud-core-grpc diff --git a/sdk-platform-java/java-core/google-cloud-core-http/pom.xml b/sdk-platform-java/java-core/google-cloud-core-http/pom.xml index a3da8d2eee64..d91f8804db58 100644 --- a/sdk-platform-java/java-core/google-cloud-core-http/pom.xml +++ b/sdk-platform-java/java-core/google-cloud-core-http/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-core-http - 2.71.0 + 2.72.0-SNAPSHOT jar Google Cloud Core HTTP @@ -12,7 +12,7 @@ com.google.cloud google-cloud-core-parent - 2.71.0 + 2.72.0-SNAPSHOT google-cloud-core-http diff --git a/sdk-platform-java/java-core/google-cloud-core/pom.xml b/sdk-platform-java/java-core/google-cloud-core/pom.xml index 8f03413241e7..10856b7ec7bf 100644 --- a/sdk-platform-java/java-core/google-cloud-core/pom.xml +++ b/sdk-platform-java/java-core/google-cloud-core/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud google-cloud-core - 2.71.0 + 2.72.0-SNAPSHOT jar Google Cloud Core @@ -12,7 +12,7 @@ com.google.cloud google-cloud-core-parent - 2.71.0 + 2.72.0-SNAPSHOT google-cloud-core diff --git a/sdk-platform-java/java-core/pom.xml b/sdk-platform-java/java-core/pom.xml index 5611c1771e9f..d381f7c7a41c 100644 --- a/sdk-platform-java/java-core/pom.xml +++ b/sdk-platform-java/java-core/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-core-parent pom - 2.71.0 + 2.72.0-SNAPSHOT Google Cloud Core Parent Java idiomatic client for Google Cloud Platform services. @@ -13,7 +13,7 @@ com.google.api gapic-generator-java-pom-parent - 2.73.0 + 2.74.0-SNAPSHOT ../gapic-generator-java-pom-parent @@ -33,7 +33,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.63.0 + 3.64.0-SNAPSHOT pom import diff --git a/sdk-platform-java/java-shared-dependencies/dependency-convergence-check/pom.xml b/sdk-platform-java/java-shared-dependencies/dependency-convergence-check/pom.xml index 9436a35bcfd3..88eec647ca6d 100644 --- a/sdk-platform-java/java-shared-dependencies/dependency-convergence-check/pom.xml +++ b/sdk-platform-java/java-shared-dependencies/dependency-convergence-check/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.cloud shared-dependencies-dependency-convergence-test - 3.63.0 + 3.64.0-SNAPSHOT Dependency convergence test for certain artifacts in Google Cloud Shared Dependencies An dependency convergence test case for the shared dependencies BOM. A failure of this test case means diff --git a/sdk-platform-java/java-shared-dependencies/first-party-dependencies/pom.xml b/sdk-platform-java/java-shared-dependencies/first-party-dependencies/pom.xml index 2618ff29c077..9b4765bb3325 100644 --- a/sdk-platform-java/java-shared-dependencies/first-party-dependencies/pom.xml +++ b/sdk-platform-java/java-shared-dependencies/first-party-dependencies/pom.xml @@ -6,7 +6,7 @@ com.google.cloud first-party-dependencies pom - 3.63.0 + 3.64.0-SNAPSHOT Google Cloud First-party Shared Dependencies Shared first-party dependencies for Google Cloud Java libraries. @@ -21,7 +21,7 @@ UTF-8 ${project.artifactId} - 1.11.0 + 1.12.0-SNAPSHOT 1.39.0 2.7.2 @@ -32,7 +32,7 @@ com.google.api gapic-generator-java-bom - 2.73.0 + 2.74.0-SNAPSHOT pom import @@ -44,7 +44,7 @@ com.google.cloud google-cloud-core-bom - 2.71.0 + 2.72.0-SNAPSHOT pom import @@ -68,13 +68,13 @@ com.google.cloud google-cloud-core - 2.71.0 + 2.72.0-SNAPSHOT test-jar com.google.cloud google-cloud-core - 2.71.0 + 2.72.0-SNAPSHOT tests diff --git a/sdk-platform-java/java-shared-dependencies/pom.xml b/sdk-platform-java/java-shared-dependencies/pom.xml index a0334eff7333..d20b3d406f2a 100644 --- a/sdk-platform-java/java-shared-dependencies/pom.xml +++ b/sdk-platform-java/java-shared-dependencies/pom.xml @@ -4,7 +4,7 @@ com.google.cloud google-cloud-shared-dependencies pom - 3.63.0 + 3.64.0-SNAPSHOT first-party-dependencies third-party-dependencies @@ -17,7 +17,7 @@ com.google.api gapic-generator-java-pom-parent - 2.73.0 + 2.74.0-SNAPSHOT ../gapic-generator-java-pom-parent @@ -31,14 +31,14 @@ com.google.cloud first-party-dependencies - 3.63.0 + 3.64.0-SNAPSHOT pom import com.google.cloud third-party-dependencies - 3.63.0 + 3.64.0-SNAPSHOT pom import diff --git a/sdk-platform-java/java-shared-dependencies/third-party-dependencies/pom.xml b/sdk-platform-java/java-shared-dependencies/third-party-dependencies/pom.xml index bd9f94c8e43c..77da27155848 100644 --- a/sdk-platform-java/java-shared-dependencies/third-party-dependencies/pom.xml +++ b/sdk-platform-java/java-shared-dependencies/third-party-dependencies/pom.xml @@ -6,7 +6,7 @@ com.google.cloud third-party-dependencies pom - 3.63.0 + 3.64.0-SNAPSHOT Google Cloud Third-party Shared Dependencies Shared third-party dependencies for Google Cloud Java libraries. @@ -15,7 +15,7 @@ com.google.api gapic-generator-java-pom-parent - 2.73.0 + 2.74.0-SNAPSHOT ../../gapic-generator-java-pom-parent diff --git a/sdk-platform-java/java-shared-dependencies/upper-bound-check/pom.xml b/sdk-platform-java/java-shared-dependencies/upper-bound-check/pom.xml index 5bf75ebf7095..f0cf98e66fd8 100644 --- a/sdk-platform-java/java-shared-dependencies/upper-bound-check/pom.xml +++ b/sdk-platform-java/java-shared-dependencies/upper-bound-check/pom.xml @@ -4,7 +4,7 @@ com.google.cloud shared-dependencies-upper-bound-test pom - 3.63.0 + 3.64.0-SNAPSHOT Upper bound test for Google Cloud Shared Dependencies An upper bound test case for the shared dependencies BOM. A failure of this test case means @@ -29,7 +29,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.63.0 + 3.64.0-SNAPSHOT pom import diff --git a/sdk-platform-java/java-showcase-3.21.0/pom.xml b/sdk-platform-java/java-showcase-3.21.0/pom.xml index 898bda585e0f..5e8265634625 100644 --- a/sdk-platform-java/java-showcase-3.21.0/pom.xml +++ b/sdk-platform-java/java-showcase-3.21.0/pom.xml @@ -31,7 +31,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.63.0 + 3.64.0-SNAPSHOT pom import diff --git a/sdk-platform-java/java-showcase-3.25.8/pom.xml b/sdk-platform-java/java-showcase-3.25.8/pom.xml index 898bda585e0f..5e8265634625 100644 --- a/sdk-platform-java/java-showcase-3.25.8/pom.xml +++ b/sdk-platform-java/java-showcase-3.25.8/pom.xml @@ -31,7 +31,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.63.0 + 3.64.0-SNAPSHOT pom import diff --git a/sdk-platform-java/sdk-platform-java-config/pom.xml b/sdk-platform-java/sdk-platform-java-config/pom.xml index 6114a60bb398..1eacdd319448 100644 --- a/sdk-platform-java/sdk-platform-java-config/pom.xml +++ b/sdk-platform-java/sdk-platform-java-config/pom.xml @@ -4,7 +4,7 @@ com.google.cloud sdk-platform-java-config pom - 3.63.0 + 3.64.0-SNAPSHOT SDK Platform For Java Configurations Shared build configuration for Google Cloud Java libraries. @@ -18,7 +18,7 @@ - 3.63.0 + 3.64.0-SNAPSHOT true diff --git a/versions.txt b/versions.txt index e62cc1651580..0134e3b1aeb0 100644 --- a/versions.txt +++ b/versions.txt @@ -1,1061 +1,1061 @@ # Format: # module:released-version:current-version -google-cloud-java:1.87.1:1.87.1 -google-cloud-accessapproval:2.94.0:2.94.0 -grpc-google-cloud-accessapproval-v1:2.94.0:2.94.0 -proto-google-cloud-accessapproval-v1:2.94.0:2.94.0 -google-identity-accesscontextmanager:1.94.0:1.94.0 -grpc-google-identity-accesscontextmanager-v1:1.94.0:1.94.0 -proto-google-identity-accesscontextmanager-v1:1.94.0:1.94.0 -proto-google-identity-accesscontextmanager-type:1.94.0:1.94.0 -google-cloud-aiplatform:3.94.0:3.94.0 -grpc-google-cloud-aiplatform-v1:3.94.0:3.94.0 -grpc-google-cloud-aiplatform-v1beta1:3.94.0:3.94.0 -proto-google-cloud-aiplatform-v1:3.94.0:3.94.0 -proto-google-cloud-aiplatform-v1beta1:3.94.0:3.94.0 -google-analytics-admin:0.103.0:0.103.0 -grpc-google-analytics-admin-v1alpha:0.103.0:0.103.0 -proto-google-analytics-admin-v1alpha:0.103.0:0.103.0 -proto-google-analytics-admin-v1beta:0.103.0:0.103.0 -grpc-google-analytics-admin-v1beta:0.103.0:0.103.0 -google-analytics-data:0.104.0:0.104.0 -grpc-google-analytics-data-v1beta:0.104.0:0.104.0 -proto-google-analytics-data-v1beta:0.104.0:0.104.0 -proto-google-analytics-data-v1alpha:0.104.0:0.104.0 -grpc-google-analytics-data-v1alpha:0.104.0:0.104.0 -google-cloud-analyticshub:0.90.0:0.90.0 -proto-google-cloud-analyticshub-v1:0.90.0:0.90.0 -grpc-google-cloud-analyticshub-v1:0.90.0:0.90.0 -google-shopping-merchant-promotions:1.21.0:1.21.0 -proto-google-shopping-merchant-promotions-v1beta:1.21.0:1.21.0 -grpc-google-shopping-merchant-promotions-v1beta:1.21.0:1.21.0 -google-cloud-api-gateway:2.93.0:2.93.0 -grpc-google-cloud-api-gateway-v1:2.93.0:2.93.0 -proto-google-cloud-api-gateway-v1:2.93.0:2.93.0 -google-cloud-apigee-connect:2.93.0:2.93.0 -grpc-google-cloud-apigee-connect-v1:2.93.0:2.93.0 -proto-google-cloud-apigee-connect-v1:2.93.0:2.93.0 -google-cloud-apigee-registry:0.93.0:0.93.0 -proto-google-cloud-apigee-registry-v1:0.93.0:0.93.0 -grpc-google-cloud-apigee-registry-v1:0.93.0:0.93.0 -google-cloud-apikeys:0.91.0:0.91.0 -proto-google-cloud-apikeys-v2:0.91.0:0.91.0 -grpc-google-cloud-apikeys-v2:0.91.0:0.91.0 -google-cloud-appengine-admin:2.93.0:2.93.0 -grpc-google-cloud-appengine-admin-v1:2.93.0:2.93.0 -proto-google-cloud-appengine-admin-v1:2.93.0:2.93.0 -google-area120-tables:0.97.0:0.97.0 -grpc-google-area120-tables-v1alpha1:0.97.0:0.97.0 -proto-google-area120-tables-v1alpha1:0.97.0:0.97.0 -google-cloud-artifact-registry:1.92.0:1.92.0 -grpc-google-cloud-artifact-registry-v1beta2:1.92.0:1.92.0 -grpc-google-cloud-artifact-registry-v1:1.92.0:1.92.0 -proto-google-cloud-artifact-registry-v1beta2:1.92.0:1.92.0 -proto-google-cloud-artifact-registry-v1:1.92.0:1.92.0 -google-cloud-asset:3.97.0:3.97.0 -grpc-google-cloud-asset-v1:3.97.0:3.97.0 -grpc-google-cloud-asset-v1p1beta1:3.97.0:3.97.0 -grpc-google-cloud-asset-v1p2beta1:3.97.0:3.97.0 -grpc-google-cloud-asset-v1p5beta1:3.97.0:3.97.0 -grpc-google-cloud-asset-v1p7beta1:3.97.0:3.97.0 -proto-google-cloud-asset-v1:3.97.0:3.97.0 -proto-google-cloud-asset-v1p1beta1:3.97.0:3.97.0 -proto-google-cloud-asset-v1p2beta1:3.97.0:3.97.0 -proto-google-cloud-asset-v1p5beta1:3.97.0:3.97.0 -proto-google-cloud-asset-v1p7beta1:3.97.0:3.97.0 -google-cloud-assured-workloads:2.93.0:2.93.0 -grpc-google-cloud-assured-workloads-v1beta1:2.93.0:2.93.0 -grpc-google-cloud-assured-workloads-v1:2.93.0:2.93.0 -proto-google-cloud-assured-workloads-v1beta1:2.93.0:2.93.0 -proto-google-cloud-assured-workloads-v1:2.93.0:2.93.0 -google-cloud-automl:2.93.0:2.93.0 -grpc-google-cloud-automl-v1beta1:2.93.0:2.93.0 -grpc-google-cloud-automl-v1:2.93.0:2.93.0 -proto-google-cloud-automl-v1beta1:2.93.0:2.93.0 -proto-google-cloud-automl-v1:2.93.0:2.93.0 -google-cloud-bare-metal-solution:0.93.0:0.93.0 -proto-google-cloud-bare-metal-solution-v2:0.93.0:0.93.0 -grpc-google-cloud-bare-metal-solution-v2:0.93.0:0.93.0 -google-cloud-batch:0.93.0:0.93.0 -proto-google-cloud-batch-v1:0.93.0:0.93.0 -grpc-google-cloud-batch-v1:0.93.0:0.93.0 -proto-google-cloud-batch-v1alpha:0.93.0:0.93.0 -grpc-google-cloud-batch-v1alpha:0.93.0:0.93.0 -google-cloud-beyondcorp-appconnections:0.91.0:0.91.0 -proto-google-cloud-beyondcorp-appconnections-v1:0.91.0:0.91.0 -grpc-google-cloud-beyondcorp-appconnections-v1:0.91.0:0.91.0 -google-cloud-beyondcorp-appconnectors:0.91.0:0.91.0 -proto-google-cloud-beyondcorp-appconnectors-v1:0.91.0:0.91.0 -grpc-google-cloud-beyondcorp-appconnectors-v1:0.91.0:0.91.0 -google-cloud-beyondcorp-appgateways:0.91.0:0.91.0 -proto-google-cloud-beyondcorp-appgateways-v1:0.91.0:0.91.0 -grpc-google-cloud-beyondcorp-appgateways-v1:0.91.0:0.91.0 -google-cloud-beyondcorp-clientconnectorservices:0.91.0:0.91.0 -proto-google-cloud-beyondcorp-clientconnectorservices-v1:0.91.0:0.91.0 -grpc-google-cloud-beyondcorp-clientconnectorservices-v1:0.91.0:0.91.0 -google-cloud-beyondcorp-clientgateways:0.91.0:0.91.0 -proto-google-cloud-beyondcorp-clientgateways-v1:0.91.0:0.91.0 -grpc-google-cloud-beyondcorp-clientgateways-v1:0.91.0:0.91.0 -google-cloud-bigqueryconnection:2.95.0:2.95.0 -grpc-google-cloud-bigqueryconnection-v1:2.95.0:2.95.0 -grpc-google-cloud-bigqueryconnection-v1beta1:2.95.0:2.95.0 -proto-google-cloud-bigqueryconnection-v1:2.95.0:2.95.0 -proto-google-cloud-bigqueryconnection-v1beta1:2.95.0:2.95.0 -google-cloud-bigquery-data-exchange:2.88.0:2.88.0 -proto-google-cloud-bigquery-data-exchange-v1beta1:2.88.0:2.88.0 -grpc-google-cloud-bigquery-data-exchange-v1beta1:2.88.0:2.88.0 -google-cloud-bigquerydatapolicy:0.90.0:0.90.0 -proto-google-cloud-bigquerydatapolicy-v1beta1:0.90.0:0.90.0 -grpc-google-cloud-bigquerydatapolicy-v1beta1:0.90.0:0.90.0 -google-cloud-bigquerydatatransfer:2.93.0:2.93.0 -grpc-google-cloud-bigquerydatatransfer-v1:2.93.0:2.93.0 -proto-google-cloud-bigquerydatatransfer-v1:2.93.0:2.93.0 -google-cloud-bigquerymigration:0.96.0:0.96.0 -grpc-google-cloud-bigquerymigration-v2alpha:0.96.0:0.96.0 -proto-google-cloud-bigquerymigration-v2alpha:0.96.0:0.96.0 -proto-google-cloud-bigquerymigration-v2:0.96.0:0.96.0 -grpc-google-cloud-bigquerymigration-v2:0.96.0:0.96.0 -google-cloud-bigqueryreservation:2.94.0:2.94.0 -grpc-google-cloud-bigqueryreservation-v1:2.94.0:2.94.0 -proto-google-cloud-bigqueryreservation-v1:2.94.0:2.94.0 -google-cloud-billingbudgets:2.93.0:2.93.0 -grpc-google-cloud-billingbudgets-v1beta1:2.93.0:2.93.0 -grpc-google-cloud-billingbudgets-v1:2.93.0:2.93.0 -proto-google-cloud-billingbudgets-v1beta1:2.93.0:2.93.0 -proto-google-cloud-billingbudgets-v1:2.93.0:2.93.0 -google-cloud-billing:2.93.0:2.93.0 -grpc-google-cloud-billing-v1:2.93.0:2.93.0 -proto-google-cloud-billing-v1:2.93.0:2.93.0 -google-cloud-binary-authorization:1.92.0:1.92.0 -grpc-google-cloud-binary-authorization-v1beta1:1.92.0:1.92.0 -grpc-google-cloud-binary-authorization-v1:1.92.0:1.92.0 -proto-google-cloud-binary-authorization-v1beta1:1.92.0:1.92.0 -proto-google-cloud-binary-authorization-v1:1.92.0:1.92.0 -google-cloud-certificate-manager:0.96.0:0.96.0 -proto-google-cloud-certificate-manager-v1:0.96.0:0.96.0 -grpc-google-cloud-certificate-manager-v1:0.96.0:0.96.0 -google-cloud-channel:3.97.0:3.97.0 -grpc-google-cloud-channel-v1:3.97.0:3.97.0 -proto-google-cloud-channel-v1:3.97.0:3.97.0 -google-cloud-build:3.95.0:3.95.0 -grpc-google-cloud-build-v1:3.95.0:3.95.0 -proto-google-cloud-build-v1:3.95.0:3.95.0 -google-cloud-cloudcommerceconsumerprocurement:0.91.0:0.91.0 -proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.91.0:0.91.0 -grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.91.0:0.91.0 -google-cloud-compute:1.103.0:1.103.0 -proto-google-cloud-compute-v1:1.103.0:1.103.0 -google-cloud-contact-center-insights:2.93.0:2.93.0 -grpc-google-cloud-contact-center-insights-v1:2.93.0:2.93.0 -proto-google-cloud-contact-center-insights-v1:2.93.0:2.93.0 -proto-google-cloud-containeranalysis-v1:2.94.0:2.94.0 -proto-google-cloud-containeranalysis-v1beta1:2.94.0:2.94.0 -grpc-google-cloud-containeranalysis-v1beta1:2.94.0:2.94.0 -grpc-google-cloud-containeranalysis-v1:2.94.0:2.94.0 -google-cloud-containeranalysis:2.94.0:2.94.0 -google-cloud-container:2.96.0:2.96.0 -grpc-google-cloud-container-v1:2.96.0:2.96.0 -grpc-google-cloud-container-v1beta1:2.96.0:2.96.0 -proto-google-cloud-container-v1:2.96.0:2.96.0 -proto-google-cloud-container-v1beta1:2.96.0:2.96.0 -google-cloud-contentwarehouse:0.89.0:0.89.0 -proto-google-cloud-contentwarehouse-v1:0.89.0:0.89.0 -grpc-google-cloud-contentwarehouse-v1:0.89.0:0.89.0 -google-cloud-datacatalog:1.99.0:1.99.0 -grpc-google-cloud-datacatalog-v1:1.99.0:1.99.0 -grpc-google-cloud-datacatalog-v1beta1:1.99.0:1.99.0 -proto-google-cloud-datacatalog-v1:1.99.0:1.99.0 -proto-google-cloud-datacatalog-v1beta1:1.99.0:1.99.0 -google-cloud-dataflow:0.97.0:0.97.0 -grpc-google-cloud-dataflow-v1beta3:0.97.0:0.97.0 -proto-google-cloud-dataflow-v1beta3:0.97.0:0.97.0 -google-cloud-dataform:0.92.0:0.92.0 -proto-google-cloud-dataform-v1beta1:0.92.0:0.92.0 -grpc-google-cloud-dataform-v1beta1:0.92.0:0.92.0 -google-cloud-data-fusion:1.93.0:1.93.0 -grpc-google-cloud-data-fusion-v1beta1:1.93.0:1.93.0 -grpc-google-cloud-data-fusion-v1:1.93.0:1.93.0 -proto-google-cloud-data-fusion-v1beta1:1.93.0:1.93.0 -proto-google-cloud-data-fusion-v1:1.93.0:1.93.0 -google-cloud-datalabeling:0.213.0:0.213.0 -grpc-google-cloud-datalabeling-v1beta1:0.213.0:0.213.0 -proto-google-cloud-datalabeling-v1beta1:0.213.0:0.213.0 -google-cloud-dataplex:1.91.0:1.91.0 -proto-google-cloud-dataplex-v1:1.91.0:1.91.0 -grpc-google-cloud-dataplex-v1:1.91.0:1.91.0 -google-cloud-dataproc-metastore:2.94.0:2.94.0 -grpc-google-cloud-dataproc-metastore-v1beta:2.94.0:2.94.0 -grpc-google-cloud-dataproc-metastore-v1alpha:2.94.0:2.94.0 -grpc-google-cloud-dataproc-metastore-v1:2.94.0:2.94.0 -proto-google-cloud-dataproc-metastore-v1beta:2.94.0:2.94.0 -proto-google-cloud-dataproc-metastore-v1alpha:2.94.0:2.94.0 -proto-google-cloud-dataproc-metastore-v1:2.94.0:2.94.0 -google-cloud-dataproc:4.90.0:4.90.0 -grpc-google-cloud-dataproc-v1:4.90.0:4.90.0 -proto-google-cloud-dataproc-v1:4.90.0:4.90.0 -google-cloud-datastream:1.92.0:1.92.0 -grpc-google-cloud-datastream-v1alpha1:1.92.0:1.92.0 -proto-google-cloud-datastream-v1alpha1:1.92.0:1.92.0 -proto-google-cloud-datastream-v1:1.92.0:1.92.0 -grpc-google-cloud-datastream-v1:1.92.0:1.92.0 -proto-google-devtools-source-protos:1.93.0:1.93.0 -google-cloud-deploy:1.91.0:1.91.0 -grpc-google-cloud-deploy-v1:1.91.0:1.91.0 -proto-google-cloud-deploy-v1:1.91.0:1.91.0 -google-cloud-dialogflow-cx:0.104.0:0.104.0 -grpc-google-cloud-dialogflow-cx-v3beta1:0.104.0:0.104.0 -grpc-google-cloud-dialogflow-cx-v3:0.104.0:0.104.0 -proto-google-cloud-dialogflow-cx-v3beta1:0.104.0:0.104.0 -proto-google-cloud-dialogflow-cx-v3:0.104.0:0.104.0 -google-cloud-dialogflow:4.99.0:4.99.0 -grpc-google-cloud-dialogflow-v2beta1:4.99.0:4.99.0 -grpc-google-cloud-dialogflow-v2:4.99.0:4.99.0 -proto-google-cloud-dialogflow-v2:4.99.0:4.99.0 -proto-google-cloud-dialogflow-v2beta1:4.99.0:4.99.0 -google-cloud-discoveryengine:0.89.0:0.89.0 -proto-google-cloud-discoveryengine-v1beta:0.89.0:0.89.0 -grpc-google-cloud-discoveryengine-v1beta:0.89.0:0.89.0 -google-cloud-distributedcloudedge:0.90.0:0.90.0 -proto-google-cloud-distributedcloudedge-v1:0.90.0:0.90.0 -grpc-google-cloud-distributedcloudedge-v1:0.90.0:0.90.0 -google-cloud-dlp:3.97.0:3.97.0 -grpc-google-cloud-dlp-v2:3.97.0:3.97.0 -proto-google-cloud-dlp-v2:3.97.0:3.97.0 -google-cloud-dms:2.92.0:2.92.0 -grpc-google-cloud-dms-v1:2.92.0:2.92.0 -proto-google-cloud-dms-v1:2.92.0:2.92.0 -google-cloud-document-ai:2.97.0:2.97.0 -grpc-google-cloud-document-ai-v1beta3:2.97.0:2.97.0 -grpc-google-cloud-document-ai-v1:2.97.0:2.97.0 -proto-google-cloud-document-ai-v1beta3:2.97.0:2.97.0 -proto-google-cloud-document-ai-v1:2.97.0:2.97.0 -google-cloud-domains:1.90.0:1.90.0 -grpc-google-cloud-domains-v1beta1:1.90.0:1.90.0 -grpc-google-cloud-domains-v1alpha2:1.90.0:1.90.0 -grpc-google-cloud-domains-v1:1.90.0:1.90.0 -proto-google-cloud-domains-v1beta1:1.90.0:1.90.0 -proto-google-cloud-domains-v1alpha2:1.90.0:1.90.0 -proto-google-cloud-domains-v1:1.90.0:1.90.0 -google-cloud-enterpriseknowledgegraph:0.89.0:0.89.0 -proto-google-cloud-enterpriseknowledgegraph-v1:0.89.0:0.89.0 -grpc-google-cloud-enterpriseknowledgegraph-v1:0.89.0:0.89.0 -google-cloud-errorreporting:0.214.0-beta:0.214.0-beta -grpc-google-cloud-error-reporting-v1beta1:0.214.0-beta:0.214.0-beta -proto-google-cloud-error-reporting-v1beta1:0.214.0-beta:0.214.0-beta -google-cloud-essential-contacts:2.93.0:2.93.0 -grpc-google-cloud-essential-contacts-v1:2.93.0:2.93.0 -proto-google-cloud-essential-contacts-v1:2.93.0:2.93.0 -google-cloud-eventarc:1.93.0:1.93.0 -grpc-google-cloud-eventarc-v1:1.93.0:1.93.0 -proto-google-cloud-eventarc-v1:1.93.0:1.93.0 -google-cloud-eventarc-publishing:0.93.0:0.93.0 -proto-google-cloud-eventarc-publishing-v1:0.93.0:0.93.0 -grpc-google-cloud-eventarc-publishing-v1:0.93.0:0.93.0 -google-cloud-filestore:1.94.0:1.94.0 -grpc-google-cloud-filestore-v1beta1:1.94.0:1.94.0 -grpc-google-cloud-filestore-v1:1.94.0:1.94.0 -proto-google-cloud-filestore-v1:1.94.0:1.94.0 -proto-google-cloud-filestore-v1beta1:1.94.0:1.94.0 -google-cloud-functions:2.95.0:2.95.0 -grpc-google-cloud-functions-v1:2.95.0:2.95.0 -proto-google-cloud-functions-v1:2.95.0:2.95.0 -proto-google-cloud-functions-v2beta:2.95.0:2.95.0 -proto-google-cloud-functions-v2alpha:2.95.0:2.95.0 -grpc-google-cloud-functions-v2beta:2.95.0:2.95.0 -grpc-google-cloud-functions-v2alpha:2.95.0:2.95.0 -proto-google-cloud-functions-v2:2.95.0:2.95.0 -grpc-google-cloud-functions-v2:2.95.0:2.95.0 -google-cloud-game-servers:2.93.0:2.93.0 -grpc-google-cloud-game-servers-v1:2.93.0:2.93.0 -grpc-google-cloud-game-servers-v1beta:0.118.0:0.118.0 -proto-google-cloud-game-servers-v1:2.93.0:2.93.0 -proto-google-cloud-game-servers-v1beta:0.118.0:0.118.0 -google-cloud-gke-backup:0.92.0:0.92.0 -proto-google-cloud-gke-backup-v1:0.92.0:0.92.0 -grpc-google-cloud-gke-backup-v1:0.92.0:0.92.0 -google-cloud-gke-connect-gateway:0.94.0:0.94.0 -proto-google-cloud-gke-connect-gateway-v1beta1:0.94.0:0.94.0 -google-cloud-gkehub:1.93.0:1.93.0 -grpc-google-cloud-gkehub-v1beta1:1.93.0:1.93.0 -grpc-google-cloud-gkehub-v1:1.93.0:1.93.0 -grpc-google-cloud-gkehub-v1alpha:1.93.0:1.93.0 -grpc-google-cloud-gkehub-v1beta:1.93.0:1.93.0 -proto-google-cloud-gkehub-v1beta1:1.93.0:1.93.0 -proto-google-cloud-gkehub-v1:1.93.0:1.93.0 -proto-google-cloud-gkehub-v1alpha:1.93.0:1.93.0 -proto-google-cloud-gkehub-v1beta:1.93.0:1.93.0 -google-cloud-gke-multi-cloud:0.92.0:0.92.0 -proto-google-cloud-gke-multi-cloud-v1:0.92.0:0.92.0 -grpc-google-cloud-gke-multi-cloud-v1:0.92.0:0.92.0 -grafeas:2.94.0:2.94.0 -google-cloud-gsuite-addons:2.93.0:2.93.0 -grpc-google-cloud-gsuite-addons-v1:2.93.0:2.93.0 -proto-google-cloud-gsuite-addons-v1:2.93.0:2.93.0 -proto-google-apps-script-type-protos:2.93.0:2.93.0 -google-iam-admin:3.88.0:3.88.0 -grpc-google-iam-admin-v1:3.88.0:3.88.0 -proto-google-iam-admin-v1:3.88.0:3.88.0 -google-cloud-iamcredentials:2.93.0:2.93.0 -grpc-google-cloud-iamcredentials-v1:2.93.0:2.93.0 -proto-google-cloud-iamcredentials-v1:2.93.0:2.93.0 -google-cloud-ids:1.92.0:1.92.0 -grpc-google-cloud-ids-v1:1.92.0:1.92.0 -proto-google-cloud-ids-v1:1.92.0:1.92.0 -google-cloud-iot:2.93.0:2.93.0 -grpc-google-cloud-iot-v1:2.93.0:2.93.0 -proto-google-cloud-iot-v1:2.93.0:2.93.0 -google-cloud-kms:2.96.0:2.96.0 -grpc-google-cloud-kms-v1:2.96.0:2.96.0 -proto-google-cloud-kms-v1:2.96.0:2.96.0 -google-cloud-language:2.94.0:2.94.0 -grpc-google-cloud-language-v1:2.94.0:2.94.0 -grpc-google-cloud-language-v1beta2:2.94.0:2.94.0 -proto-google-cloud-language-v1:2.94.0:2.94.0 -proto-google-cloud-language-v1beta2:2.94.0:2.94.0 -google-cloud-life-sciences:0.95.0:0.95.0 -grpc-google-cloud-life-sciences-v2beta:0.95.0:0.95.0 -proto-google-cloud-life-sciences-v2beta:0.95.0:0.95.0 -google-cloud-managed-identities:1.91.0:1.91.0 -grpc-google-cloud-managed-identities-v1:1.91.0:1.91.0 -proto-google-cloud-managed-identities-v1:1.91.0:1.91.0 -google-cloud-mediatranslation:0.99.0:0.99.0 -grpc-google-cloud-mediatranslation-v1beta1:0.99.0:0.99.0 -proto-google-cloud-mediatranslation-v1beta1:0.99.0:0.99.0 -google-cloud-memcache:2.93.0:2.93.0 -grpc-google-cloud-memcache-v1beta2:2.93.0:2.93.0 -grpc-google-cloud-memcache-v1:2.93.0:2.93.0 -proto-google-cloud-memcache-v1beta2:2.93.0:2.93.0 -proto-google-cloud-memcache-v1:2.93.0:2.93.0 -google-cloud-monitoring-dashboard:2.95.0:2.95.0 -grpc-google-cloud-monitoring-dashboard-v1:2.95.0:2.95.0 -proto-google-cloud-monitoring-dashboard-v1:2.95.0:2.95.0 -google-cloud-monitoring:3.94.0:3.94.0 -grpc-google-cloud-monitoring-v3:3.94.0:3.94.0 -proto-google-cloud-monitoring-v3:3.94.0:3.94.0 -google-cloud-networkconnectivity:1.92.0:1.92.0 -grpc-google-cloud-networkconnectivity-v1alpha1:1.92.0:1.92.0 -grpc-google-cloud-networkconnectivity-v1:1.92.0:1.92.0 -proto-google-cloud-networkconnectivity-v1alpha1:1.92.0:1.92.0 -proto-google-cloud-networkconnectivity-v1:1.92.0:1.92.0 -google-cloud-network-management:1.94.0:1.94.0 -grpc-google-cloud-network-management-v1beta1:1.94.0:1.94.0 -grpc-google-cloud-network-management-v1:1.94.0:1.94.0 -proto-google-cloud-network-management-v1beta1:1.94.0:1.94.0 -proto-google-cloud-network-management-v1:1.94.0:1.94.0 -google-cloud-network-security:0.96.0:0.96.0 -grpc-google-cloud-network-security-v1beta1:0.96.0:0.96.0 -proto-google-cloud-network-security-v1beta1:0.96.0:0.96.0 -proto-google-cloud-network-security-v1:0.96.0:0.96.0 -grpc-google-cloud-network-security-v1:0.96.0:0.96.0 -google-cloud-notebooks:1.91.0:1.91.0 -grpc-google-cloud-notebooks-v1beta1:1.91.0:1.91.0 -grpc-google-cloud-notebooks-v1:1.91.0:1.91.0 -proto-google-cloud-notebooks-v1beta1:1.91.0:1.91.0 -proto-google-cloud-notebooks-v1:1.91.0:1.91.0 -google-cloud-notification:0.211.0-beta:0.211.0-beta -google-cloud-optimization:1.91.0:1.91.0 -proto-google-cloud-optimization-v1:1.91.0:1.91.0 -grpc-google-cloud-optimization-v1:1.91.0:1.91.0 -google-cloud-orchestration-airflow:1.93.0:1.93.0 -grpc-google-cloud-orchestration-airflow-v1:1.93.0:1.93.0 -grpc-google-cloud-orchestration-airflow-v1beta1:1.93.0:1.93.0 -proto-google-cloud-orchestration-airflow-v1:1.93.0:1.93.0 -proto-google-cloud-orchestration-airflow-v1beta1:1.93.0:1.93.0 -google-cloud-orgpolicy:2.93.0:2.93.0 -grpc-google-cloud-orgpolicy-v2:2.93.0:2.93.0 -proto-google-cloud-orgpolicy-v1:2.93.0:2.93.0 -proto-google-cloud-orgpolicy-v2:2.93.0:2.93.0 -google-cloud-os-config:2.95.0:2.95.0 -grpc-google-cloud-os-config-v1:2.95.0:2.95.0 -grpc-google-cloud-os-config-v1beta:2.95.0:2.95.0 -grpc-google-cloud-os-config-v1alpha:2.95.0:2.95.0 -proto-google-cloud-os-config-v1:2.95.0:2.95.0 -proto-google-cloud-os-config-v1alpha:2.95.0:2.95.0 -proto-google-cloud-os-config-v1beta:2.95.0:2.95.0 -google-cloud-os-login:2.92.0:2.92.0 -grpc-google-cloud-os-login-v1:2.92.0:2.92.0 -proto-google-cloud-os-login-v1:2.92.0:2.92.0 -google-cloud-phishingprotection:0.124.0:0.124.0 -grpc-google-cloud-phishingprotection-v1beta1:0.124.0:0.124.0 -proto-google-cloud-phishingprotection-v1beta1:0.124.0:0.124.0 -google-cloud-policy-troubleshooter:1.92.0:1.92.0 -grpc-google-cloud-policy-troubleshooter-v1:1.92.0:1.92.0 -proto-google-cloud-policy-troubleshooter-v1:1.92.0:1.92.0 -google-cloud-private-catalog:0.95.0:0.95.0 -grpc-google-cloud-private-catalog-v1beta1:0.95.0:0.95.0 -proto-google-cloud-private-catalog-v1beta1:0.95.0:0.95.0 -google-cloud-profiler:2.93.0:2.93.0 -grpc-google-cloud-profiler-v2:2.93.0:2.93.0 -proto-google-cloud-profiler-v2:2.93.0:2.93.0 -google-cloud-publicca:0.90.0:0.90.0 -proto-google-cloud-publicca-v1beta1:0.90.0:0.90.0 -grpc-google-cloud-publicca-v1beta1:0.90.0:0.90.0 -google-cloud-recaptchaenterprise:3.90.0:3.90.0 -grpc-google-cloud-recaptchaenterprise-v1:3.90.0:3.90.0 -grpc-google-cloud-recaptchaenterprise-v1beta1:3.90.0:3.90.0 -proto-google-cloud-recaptchaenterprise-v1:3.90.0:3.90.0 -proto-google-cloud-recaptchaenterprise-v1beta1:3.90.0:3.90.0 -google-cloud-recommendations-ai:0.100.0:0.100.0 -grpc-google-cloud-recommendations-ai-v1beta1:0.100.0:0.100.0 -proto-google-cloud-recommendations-ai-v1beta1:0.100.0:0.100.0 -google-cloud-recommender:2.95.0:2.95.0 -grpc-google-cloud-recommender-v1:2.95.0:2.95.0 -grpc-google-cloud-recommender-v1beta1:2.95.0:2.95.0 -proto-google-cloud-recommender-v1:2.95.0:2.95.0 -proto-google-cloud-recommender-v1beta1:2.95.0:2.95.0 -google-cloud-redis:2.96.0:2.96.0 -grpc-google-cloud-redis-v1beta1:2.96.0:2.96.0 -grpc-google-cloud-redis-v1:2.96.0:2.96.0 -proto-google-cloud-redis-v1:2.96.0:2.96.0 -proto-google-cloud-redis-v1beta1:2.96.0:2.96.0 -google-cloud-resourcemanager:1.95.0:1.95.0 -grpc-google-cloud-resourcemanager-v3:1.95.0:1.95.0 -proto-google-cloud-resourcemanager-v3:1.95.0:1.95.0 -google-cloud-retail:2.95.0:2.95.0 -grpc-google-cloud-retail-v2:2.95.0:2.95.0 -proto-google-cloud-retail-v2:2.95.0:2.95.0 -proto-google-cloud-retail-v2alpha:2.95.0:2.95.0 -proto-google-cloud-retail-v2beta:2.95.0:2.95.0 -grpc-google-cloud-retail-v2alpha:2.95.0:2.95.0 -grpc-google-cloud-retail-v2beta:2.95.0:2.95.0 -google-cloud-run:0.93.0:0.93.0 -proto-google-cloud-run-v2:0.93.0:0.93.0 -grpc-google-cloud-run-v2:0.93.0:0.93.0 -google-cloud-scheduler:2.93.0:2.93.0 -grpc-google-cloud-scheduler-v1beta1:2.93.0:2.93.0 -grpc-google-cloud-scheduler-v1:2.93.0:2.93.0 -proto-google-cloud-scheduler-v1beta1:2.93.0:2.93.0 -proto-google-cloud-scheduler-v1:2.93.0:2.93.0 -google-cloud-secretmanager:2.93.0:2.93.0 -grpc-google-cloud-secretmanager-v1:2.93.0:2.93.0 -proto-google-cloud-secretmanager-v1:2.93.0:2.93.0 -google-cloud-securitycenter:2.101.0:2.101.0 -grpc-google-cloud-securitycenter-v1:2.101.0:2.101.0 -grpc-google-cloud-securitycenter-v1beta1:2.101.0:2.101.0 -grpc-google-cloud-securitycenter-v1p1beta1:2.101.0:2.101.0 -proto-google-cloud-securitycenter-v1:2.101.0:2.101.0 -proto-google-cloud-securitycenter-v1beta1:2.101.0:2.101.0 -proto-google-cloud-securitycenter-v1p1beta1:2.101.0:2.101.0 -google-cloud-securitycenter-settings:0.96.0:0.96.0 -grpc-google-cloud-securitycenter-settings-v1beta1:0.96.0:0.96.0 -proto-google-cloud-securitycenter-settings-v1beta1:0.96.0:0.96.0 -google-cloud-security-private-ca:2.95.0:2.95.0 -grpc-google-cloud-security-private-ca-v1beta1:2.95.0:2.95.0 -grpc-google-cloud-security-private-ca-v1:2.95.0:2.95.0 -proto-google-cloud-security-private-ca-v1beta1:2.95.0:2.95.0 -proto-google-cloud-security-private-ca-v1:2.95.0:2.95.0 -google-cloud-service-control:1.93.0:1.93.0 -grpc-google-cloud-service-control-v1:1.93.0:1.93.0 -proto-google-cloud-service-control-v1:1.93.0:1.93.0 -proto-google-cloud-service-control-v2:1.93.0:1.93.0 -grpc-google-cloud-service-control-v2:1.93.0:1.93.0 -google-cloud-servicedirectory:2.94.0:2.94.0 -grpc-google-cloud-servicedirectory-v1beta1:2.94.0:2.94.0 -grpc-google-cloud-servicedirectory-v1:2.94.0:2.94.0 -proto-google-cloud-servicedirectory-v1beta1:2.94.0:2.94.0 -proto-google-cloud-servicedirectory-v1:2.94.0:2.94.0 -google-cloud-service-management:3.91.0:3.91.0 -grpc-google-cloud-service-management-v1:3.91.0:3.91.0 -proto-google-cloud-service-management-v1:3.91.0:3.91.0 -google-cloud-service-usage:2.93.0:2.93.0 -grpc-google-cloud-service-usage-v1beta1:2.93.0:2.93.0 -grpc-google-cloud-service-usage-v1:2.93.0:2.93.0 -proto-google-cloud-service-usage-v1:2.93.0:2.93.0 -proto-google-cloud-service-usage-v1beta1:2.93.0:2.93.0 -google-cloud-shell:2.92.0:2.92.0 -grpc-google-cloud-shell-v1:2.92.0:2.92.0 -proto-google-cloud-shell-v1:2.92.0:2.92.0 -google-cloud-speech:4.88.0:4.88.0 -grpc-google-cloud-speech-v1:4.88.0:4.88.0 -grpc-google-cloud-speech-v1p1beta1:4.88.0:4.88.0 -proto-google-cloud-speech-v1:4.88.0:4.88.0 -proto-google-cloud-speech-v1p1beta1:4.88.0:4.88.0 -proto-google-cloud-speech-v2:4.88.0:4.88.0 -grpc-google-cloud-speech-v2:4.88.0:4.88.0 -google-cloud-storage-transfer:1.93.0:1.93.0 -grpc-google-cloud-storage-transfer-v1:1.93.0:1.93.0 -proto-google-cloud-storage-transfer-v1:1.93.0:1.93.0 -google-cloud-talent:2.94.0:2.94.0 -grpc-google-cloud-talent-v4:2.94.0:2.94.0 -grpc-google-cloud-talent-v4beta1:2.94.0:2.94.0 -proto-google-cloud-talent-v4:2.94.0:2.94.0 -proto-google-cloud-talent-v4beta1:2.94.0:2.94.0 -google-cloud-tasks:2.93.0:2.93.0 -grpc-google-cloud-tasks-v2beta3:2.93.0:2.93.0 -grpc-google-cloud-tasks-v2beta2:2.93.0:2.93.0 -grpc-google-cloud-tasks-v2:2.93.0:2.93.0 -proto-google-cloud-tasks-v2beta3:2.93.0:2.93.0 -proto-google-cloud-tasks-v2beta2:2.93.0:2.93.0 -proto-google-cloud-tasks-v2:2.93.0:2.93.0 -google-cloud-texttospeech:2.94.0:2.94.0 -grpc-google-cloud-texttospeech-v1beta1:2.94.0:2.94.0 -grpc-google-cloud-texttospeech-v1:2.94.0:2.94.0 -proto-google-cloud-texttospeech-v1:2.94.0:2.94.0 -proto-google-cloud-texttospeech-v1beta1:2.94.0:2.94.0 -google-cloud-tpu:2.94.0:2.94.0 -grpc-google-cloud-tpu-v1:2.94.0:2.94.0 -grpc-google-cloud-tpu-v2alpha1:2.94.0:2.94.0 -proto-google-cloud-tpu-v1:2.94.0:2.94.0 -proto-google-cloud-tpu-v2alpha1:2.94.0:2.94.0 -google-cloud-trace:2.93.0:2.93.0 -grpc-google-cloud-trace-v1:2.93.0:2.93.0 -grpc-google-cloud-trace-v2:2.93.0:2.93.0 -proto-google-cloud-trace-v1:2.93.0:2.93.0 -proto-google-cloud-trace-v2:2.93.0:2.93.0 -google-cloud-translate:2.93.0:2.93.0 -grpc-google-cloud-translate-v3beta1:2.93.0:2.93.0 -grpc-google-cloud-translate-v3:2.93.0:2.93.0 -proto-google-cloud-translate-v3beta1:2.93.0:2.93.0 -proto-google-cloud-translate-v3:2.93.0:2.93.0 -google-cloud-video-intelligence:2.92.0:2.92.0 -grpc-google-cloud-video-intelligence-v1p1beta1:2.92.0:2.92.0 -grpc-google-cloud-video-intelligence-v1beta2:2.92.0:2.92.0 -grpc-google-cloud-video-intelligence-v1:2.92.0:2.92.0 -grpc-google-cloud-video-intelligence-v1p2beta1:2.92.0:2.92.0 -grpc-google-cloud-video-intelligence-v1p3beta1:2.92.0:2.92.0 -proto-google-cloud-video-intelligence-v1p3beta1:2.92.0:2.92.0 -proto-google-cloud-video-intelligence-v1beta2:2.92.0:2.92.0 -proto-google-cloud-video-intelligence-v1p1beta1:2.92.0:2.92.0 -proto-google-cloud-video-intelligence-v1:2.92.0:2.92.0 -proto-google-cloud-video-intelligence-v1p2beta1:2.92.0:2.92.0 -google-cloud-live-stream:0.95.0:0.95.0 -proto-google-cloud-live-stream-v1:0.95.0:0.95.0 -grpc-google-cloud-live-stream-v1:0.95.0:0.95.0 -google-cloud-video-stitcher:0.93.0:0.93.0 -proto-google-cloud-video-stitcher-v1:0.93.0:0.93.0 -grpc-google-cloud-video-stitcher-v1:0.93.0:0.93.0 -google-cloud-video-transcoder:1.92.0:1.92.0 -grpc-google-cloud-video-transcoder-v1:1.92.0:1.92.0 -proto-google-cloud-video-transcoder-v1:1.92.0:1.92.0 -google-cloud-vision:3.91.0:3.91.0 -grpc-google-cloud-vision-v1p3beta1:3.91.0:3.91.0 -grpc-google-cloud-vision-v1p1beta1:3.91.0:3.91.0 -grpc-google-cloud-vision-v1p4beta1:3.91.0:3.91.0 -grpc-google-cloud-vision-v1p2beta1:3.91.0:3.91.0 -grpc-google-cloud-vision-v1:3.91.0:3.91.0 -proto-google-cloud-vision-v1p4beta1:3.91.0:3.91.0 -proto-google-cloud-vision-v1:3.91.0:3.91.0 -proto-google-cloud-vision-v1p1beta1:3.91.0:3.91.0 -proto-google-cloud-vision-v1p3beta1:3.91.0:3.91.0 -proto-google-cloud-vision-v1p2beta1:3.91.0:3.91.0 -google-cloud-vmmigration:1.93.0:1.93.0 -grpc-google-cloud-vmmigration-v1:1.93.0:1.93.0 -proto-google-cloud-vmmigration-v1:1.93.0:1.93.0 -google-cloud-vpcaccess:2.94.0:2.94.0 -grpc-google-cloud-vpcaccess-v1:2.94.0:2.94.0 -proto-google-cloud-vpcaccess-v1:2.94.0:2.94.0 -google-cloud-webrisk:2.92.0:2.92.0 -grpc-google-cloud-webrisk-v1:2.92.0:2.92.0 -grpc-google-cloud-webrisk-v1beta1:2.92.0:2.92.0 -proto-google-cloud-webrisk-v1:2.92.0:2.92.0 -proto-google-cloud-webrisk-v1beta1:2.92.0:2.92.0 -google-cloud-websecurityscanner:2.93.0:2.93.0 -grpc-google-cloud-websecurityscanner-v1alpha:2.93.0:2.93.0 -grpc-google-cloud-websecurityscanner-v1beta:2.93.0:2.93.0 -grpc-google-cloud-websecurityscanner-v1:2.93.0:2.93.0 -proto-google-cloud-websecurityscanner-v1alpha:2.93.0:2.93.0 -proto-google-cloud-websecurityscanner-v1beta:2.93.0:2.93.0 -proto-google-cloud-websecurityscanner-v1:2.93.0:2.93.0 -google-cloud-workflow-executions:2.93.0:2.93.0 -grpc-google-cloud-workflow-executions-v1beta:2.93.0:2.93.0 -grpc-google-cloud-workflow-executions-v1:2.93.0:2.93.0 -proto-google-cloud-workflow-executions-v1beta:2.93.0:2.93.0 -proto-google-cloud-workflow-executions-v1:2.93.0:2.93.0 -google-cloud-workflows:2.93.0:2.93.0 -grpc-google-cloud-workflows-v1beta:2.93.0:2.93.0 -grpc-google-cloud-workflows-v1:2.93.0:2.93.0 -proto-google-cloud-workflows-v1beta:2.93.0:2.93.0 -proto-google-cloud-workflows-v1:2.93.0:2.93.0 -google-cloud-dns:2.91.0:2.91.0 -google-maps-routing:1.78.0:1.78.0 -proto-google-maps-routing-v2:1.78.0:1.78.0 -grpc-google-maps-routing-v2:1.78.0:1.78.0 -google-cloud-vmwareengine:0.87.0:0.87.0 -proto-google-cloud-vmwareengine-v1:0.87.0:0.87.0 -grpc-google-cloud-vmwareengine-v1:0.87.0:0.87.0 -google-maps-addressvalidation:0.87.0:0.87.0 -proto-google-maps-addressvalidation-v1:0.87.0:0.87.0 -grpc-google-maps-addressvalidation-v1:0.87.0:0.87.0 -proto-google-cloud-bigquerydatapolicy-v1:0.90.0:0.90.0 -grpc-google-cloud-bigquerydatapolicy-v1:0.90.0:0.90.0 -google-cloud-monitoring-metricsscope:0.87.0:0.87.0 -proto-google-cloud-monitoring-metricsscope-v1:0.87.0:0.87.0 -grpc-google-cloud-monitoring-metricsscope-v1:0.87.0:0.87.0 -proto-google-cloud-tpu-v2:2.94.0:2.94.0 -grpc-google-cloud-tpu-v2:2.94.0:2.94.0 -google-cloud-datalineage:0.85.0:0.85.0 -proto-google-cloud-datalineage-v1:0.85.0:0.85.0 -grpc-google-cloud-datalineage-v1:0.85.0:0.85.0 -google-iam-policy:1.90.0:1.90.0 -proto-google-cloud-build-v2:3.95.0:3.95.0 -grpc-google-cloud-build-v2:3.95.0:3.95.0 -google-cloud-advisorynotifications:0.82.0:0.82.0 -proto-google-cloud-advisorynotifications-v1:0.82.0:0.82.0 -grpc-google-cloud-advisorynotifications-v1:0.82.0:0.82.0 -google-maps-mapsplatformdatasets:0.82.0:0.82.0 -google-cloud-kmsinventory:0.82.0:0.82.0 -proto-google-cloud-kmsinventory-v1:0.82.0:0.82.0 -grpc-google-cloud-kmsinventory-v1:0.82.0:0.82.0 -google-cloud-alloydb:0.82.0:0.82.0 -proto-google-cloud-alloydb-v1:0.82.0:0.82.0 -proto-google-cloud-alloydb-v1beta:0.82.0:0.82.0 -proto-google-cloud-alloydb-v1alpha:0.82.0:0.82.0 -grpc-google-cloud-alloydb-v1beta:0.82.0:0.82.0 -grpc-google-cloud-alloydb-v1:0.82.0:0.82.0 -grpc-google-cloud-alloydb-v1alpha:0.82.0:0.82.0 -google-cloud-biglake:0.81.1:0.81.1 -proto-google-cloud-biglake-v1alpha1:0.81.1:0.81.1 -grpc-google-cloud-biglake-v1alpha1:0.81.1:0.81.1 -google-cloud-workstations:0.81.0:0.81.0 -proto-google-cloud-workstations-v1beta:0.81.0:0.81.0 -grpc-google-cloud-workstations-v1beta:0.81.0:0.81.0 -google-cloud-confidentialcomputing:0.79.0:0.79.0 -proto-google-cloud-confidentialcomputing-v1:0.79.0:0.79.0 -proto-google-cloud-confidentialcomputing-v1alpha1:0.79.0:0.79.0 -grpc-google-cloud-confidentialcomputing-v1:0.79.0:0.79.0 -grpc-google-cloud-confidentialcomputing-v1alpha1:0.79.0:0.79.0 -proto-google-cloud-workstations-v1:0.81.0:0.81.0 -grpc-google-cloud-workstations-v1:0.81.0:0.81.0 -proto-google-cloud-biglake-v1:0.81.1:0.81.1 -grpc-google-cloud-biglake-v1:0.81.1:0.81.1 -google-cloud-storageinsights:0.78.0:0.78.0 -proto-google-cloud-storageinsights-v1:0.78.0:0.78.0 -grpc-google-cloud-storageinsights-v1:0.78.0:0.78.0 -google-cloud-cloudsupport:0.77.0:0.77.0 -proto-google-cloud-cloudsupport-v2:0.77.0:0.77.0 -grpc-google-cloud-cloudsupport-v2:0.77.0:0.77.0 -google-cloud-rapidmigrationassessment:0.76.0:0.76.0 -proto-google-cloud-rapidmigrationassessment-v1:0.76.0:0.76.0 -grpc-google-cloud-rapidmigrationassessment-v1:0.76.0:0.76.0 -proto-google-maps-mapsplatformdatasets-v1:0.82.0:0.82.0 -grpc-google-maps-mapsplatformdatasets-v1:0.82.0:0.82.0 -google-shopping-merchant-accounts:1.21.0:1.21.0 -proto-google-shopping-merchant-accounts-v1beta:1.21.0:1.21.0 -grpc-google-shopping-merchant-accounts-v1beta:1.21.0:1.21.0 -proto-google-cloud-discoveryengine-v1:0.89.0:0.89.0 -grpc-google-cloud-discoveryengine-v1:0.89.0:0.89.0 -google-cloud-migrationcenter:0.75.0:0.75.0 -proto-google-cloud-migrationcenter-v1:0.75.0:0.75.0 -grpc-google-cloud-migrationcenter-v1:0.75.0:0.75.0 -google-cloud-policysimulator:0.72.0:0.72.0 -proto-google-cloud-policysimulator-v1:0.72.0:0.72.0 -grpc-google-cloud-policysimulator-v1:0.72.0:0.72.0 -google-cloud-netapp:0.72.0:0.72.0 -proto-google-cloud-netapp-v1beta1:0.72.0:0.72.0 -grpc-google-cloud-netapp-v1beta1:0.72.0:0.72.0 -proto-google-cloud-netapp-v1:0.72.0:0.72.0 -grpc-google-cloud-netapp-v1:0.72.0:0.72.0 -proto-google-cloud-cloudcommerceconsumerprocurement-v1:0.91.0:0.91.0 -grpc-google-cloud-cloudcommerceconsumerprocurement-v1:0.91.0:0.91.0 -google-cloud-java-alloydb-connectors:0.71.0:0.71.0 -proto-google-cloud-java-alloydb-connectors-v1alpha:0.71.0:0.71.0 -google-cloud-alloydb-connectors:0.71.0:0.71.0 -proto-google-cloud-alloydb-connectors-v1alpha:0.71.0:0.71.0 -proto-google-cloud-language-v2:2.94.0:2.94.0 -grpc-google-cloud-language-v2:2.94.0:2.94.0 -google-cloud-infra-manager:0.70.0:0.70.0 -proto-google-cloud-infra-manager-v1:0.70.0:0.70.0 -grpc-google-cloud-infra-manager-v1:0.70.0:0.70.0 -proto-google-cloud-notebooks-v2:1.91.0:1.91.0 -grpc-google-cloud-notebooks-v2:1.91.0:1.91.0 -proto-google-cloud-alloydb-connectors-v1beta:0.71.0:0.71.0 -google-shopping-merchant-inventories:1.21.0:1.21.0 -proto-google-shopping-merchant-inventories-v1beta:1.21.0:1.21.0 -grpc-google-shopping-merchant-inventories-v1beta:1.21.0:1.21.0 -proto-google-cloud-policy-troubleshooter-v3:1.92.0:1.92.0 -grpc-google-cloud-policy-troubleshooter-v3:1.92.0:1.92.0 -google-shopping-merchant-reports:1.21.0:1.21.0 -proto-google-shopping-merchant-reports-v1beta:1.21.0:1.21.0 -grpc-google-shopping-merchant-reports-v1beta:1.21.0:1.21.0 -proto-google-cloud-alloydb-connectors-v1:0.71.0:0.71.0 -proto-google-cloud-discoveryengine-v1alpha:0.89.0:0.89.0 -grpc-google-cloud-discoveryengine-v1alpha:0.89.0:0.89.0 -google-cloud-redis-cluster:0.65.0:0.65.0 -proto-google-cloud-redis-cluster-v1beta1:0.65.0:0.65.0 -proto-google-cloud-redis-cluster-v1:0.65.0:0.65.0 -grpc-google-cloud-redis-cluster-v1:0.65.0:0.65.0 -grpc-google-cloud-redis-cluster-v1beta1:0.65.0:0.65.0 -google-maps-places:0.64.0:0.64.0 -proto-google-maps-places-v1:0.64.0:0.64.0 -grpc-google-maps-places-v1:0.64.0:0.64.0 -google-cloud-telcoautomation:0.63.0:0.63.0 -proto-google-cloud-telcoautomation-v1:0.63.0:0.63.0 -proto-google-cloud-telcoautomation-v1alpha1:0.63.0:0.63.0 -grpc-google-cloud-telcoautomation-v1:0.63.0:0.63.0 -grpc-google-cloud-telcoautomation-v1alpha1:0.63.0:0.63.0 -google-cloud-securesourcemanager:0.63.0:0.63.0 -proto-google-cloud-securesourcemanager-v1:0.63.0:0.63.0 -grpc-google-cloud-securesourcemanager-v1:0.63.0:0.63.0 -google-cloud-edgenetwork:0.61.0:0.61.0 -proto-google-cloud-edgenetwork-v1:0.61.0:0.61.0 -grpc-google-cloud-edgenetwork-v1:0.61.0:0.61.0 -google-cloud-cloudquotas:0.61.0:0.61.0 -proto-google-cloud-cloudquotas-v1:0.61.0:0.61.0 -grpc-google-cloud-cloudquotas-v1:0.61.0:0.61.0 -google-cloud-securitycentermanagement:0.61.0:0.61.0 -proto-google-cloud-securitycentermanagement-v1:0.61.0:0.61.0 -grpc-google-cloud-securitycentermanagement-v1:0.61.0:0.61.0 -google-shopping-css:0.61.0:0.61.0 -proto-google-shopping-css-v1:0.61.0:0.61.0 -grpc-google-shopping-css-v1:0.61.0:0.61.0 -google-cloud-meet:0.60.0:0.60.0 -proto-google-cloud-meet-v2beta:0.60.0:0.60.0 -grpc-google-cloud-meet-v2beta:0.60.0:0.60.0 -google-cloud-servicehealth:0.60.0:0.60.0 -proto-google-cloud-servicehealth-v1:0.60.0:0.60.0 -grpc-google-cloud-servicehealth-v1:0.60.0:0.60.0 -proto-google-cloud-meet-v2:0.60.0:0.60.0 -grpc-google-cloud-meet-v2:0.60.0:0.60.0 -google-cloud-securityposture:0.58.0:0.58.0 -proto-google-cloud-securityposture-v1:0.58.0:0.58.0 -grpc-google-cloud-securityposture-v1:0.58.0:0.58.0 -proto-google-cloud-securitycenter-v2:2.101.0:2.101.0 -grpc-google-cloud-securitycenter-v2:2.101.0:2.101.0 -google-cloud-cloudcontrolspartner:0.57.0:0.57.0 -proto-google-cloud-cloudcontrolspartner-v1beta:0.57.0:0.57.0 -proto-google-cloud-cloudcontrolspartner-v1:0.57.0:0.57.0 -grpc-google-cloud-cloudcontrolspartner-v1:0.57.0:0.57.0 -grpc-google-cloud-cloudcontrolspartner-v1beta:0.57.0:0.57.0 -google-cloud-workspaceevents:0.57.0:0.57.0 -proto-google-cloud-workspaceevents-v1:0.57.0:0.57.0 -grpc-google-cloud-workspaceevents-v1:0.57.0:0.57.0 -google-cloud-apphub:0.57.0:0.57.0 -proto-google-cloud-apphub-v1:0.57.0:0.57.0 -grpc-google-cloud-apphub-v1:0.57.0:0.57.0 -google-cloud-chat:0.57.0:0.57.0 -proto-google-cloud-chat-v1:0.57.0:0.57.0 -grpc-google-cloud-chat-v1:0.57.0:0.57.0 -google-shopping-merchant-quota:1.21.0:1.21.0 -proto-google-shopping-merchant-quota-v1beta:1.21.0:1.21.0 -grpc-google-shopping-merchant-quota-v1beta:1.21.0:1.21.0 -proto-google-cloud-secretmanager-v1beta2:2.93.0:2.93.0 -grpc-google-cloud-secretmanager-v1beta2:2.93.0:2.93.0 -google-cloud-parallelstore:0.56.0:0.56.0 -proto-google-cloud-parallelstore-v1beta:0.56.0:0.56.0 -grpc-google-cloud-parallelstore-v1beta:0.56.0:0.56.0 -google-cloud-backupdr:0.52.0:0.52.0 -proto-google-cloud-backupdr-v1:0.52.0:0.52.0 -grpc-google-cloud-backupdr-v1:0.52.0:0.52.0 -google-maps-solar:0.52.0:0.52.0 -proto-google-maps-solar-v1:0.52.0:0.52.0 -grpc-google-maps-solar-v1:0.52.0:0.52.0 -google-shopping-merchant-datasources:1.21.0:1.21.0 -proto-google-shopping-merchant-datasources-v1beta:1.21.0:1.21.0 -grpc-google-shopping-merchant-datasources-v1beta:1.21.0:1.21.0 -google-shopping-merchant-conversions:1.21.0:1.21.0 -proto-google-shopping-merchant-conversions-v1beta:1.21.0:1.21.0 -grpc-google-shopping-merchant-conversions-v1beta:1.21.0:1.21.0 -google-shopping-merchant-lfp:1.21.0:1.21.0 -proto-google-shopping-merchant-lfp-v1beta:1.21.0:1.21.0 -grpc-google-shopping-merchant-lfp-v1beta:1.21.0:1.21.0 -google-shopping-merchant-notifications:1.21.0:1.21.0 -proto-google-shopping-merchant-notifications-v1beta:1.21.0:1.21.0 -grpc-google-shopping-merchant-notifications-v1beta:1.21.0:1.21.0 -ad-manager:0.52.0:0.52.0 -proto-ad-manager-v1:0.52.0:0.52.0 -google-maps-routeoptimization:0.51.0:0.51.0 -proto-google-maps-routeoptimization-v1:0.51.0:0.51.0 -grpc-google-maps-routeoptimization-v1:0.51.0:0.51.0 -proto-google-cloud-publicca-v1:0.90.0:0.90.0 -grpc-google-cloud-publicca-v1:0.90.0:0.90.0 -google-cloud-visionai:0.50.0:0.50.0 -proto-google-cloud-visionai-v1:0.50.0:0.50.0 -grpc-google-cloud-visionai-v1:0.50.0:0.50.0 -google-cloud-developerconnect:0.50.0:0.50.0 -proto-google-cloud-developerconnect-v1:0.50.0:0.50.0 -grpc-google-cloud-developerconnect-v1:0.50.0:0.50.0 -google-cloud-iap:0.49.0:0.49.0 -proto-google-cloud-iap-v1:0.49.0:0.49.0 -grpc-google-cloud-iap-v1:0.49.0:0.49.0 -google-cloud-managedkafka:0.49.0:0.49.0 -proto-google-cloud-managedkafka-v1:0.49.0:0.49.0 -grpc-google-cloud-managedkafka-v1:0.49.0:0.49.0 -google-cloud-networkservices:0.49.0:0.49.0 -proto-google-cloud-networkservices-v1:0.49.0:0.49.0 -grpc-google-cloud-networkservices-v1:0.49.0:0.49.0 -google-shopping-merchant-products:1.21.0:1.21.0 -proto-google-shopping-merchant-products-v1beta:1.21.0:1.21.0 -grpc-google-shopping-merchant-products-v1beta:1.21.0:1.21.0 -google-cloud-gdchardwaremanagement:0.48.0:0.48.0 -proto-google-cloud-gdchardwaremanagement-v1alpha:0.48.0:0.48.0 -grpc-google-cloud-gdchardwaremanagement-v1alpha:0.48.0:0.48.0 -google-cloud-privilegedaccessmanager:0.47.0:0.47.0 -proto-google-cloud-privilegedaccessmanager-v1:0.47.0:0.47.0 -grpc-google-cloud-privilegedaccessmanager-v1:0.47.0:0.47.0 -google-cloud-apihub:0.46.0:0.46.0 -proto-google-cloud-apihub-v1:0.46.0:0.46.0 -grpc-google-cloud-apihub-v1:0.46.0:0.46.0 -google-cloud-connectgateway:0.45.0:0.45.0 -proto-google-cloud-connectgateway-v1:0.45.0:0.45.0 -google-maps-area-insights:0.44.0:0.44.0 -proto-google-maps-area-insights-v1:0.44.0:0.44.0 -grpc-google-maps-area-insights-v1:0.44.0:0.44.0 -admin:0.42.0:0.42.0 -proto-admin-v1alpha:0.42.0:0.42.0 -grpc-admin-v1alpha:0.42.0:0.42.0 -google-cloud-oracledatabase:0.42.0:0.42.0 -proto-google-cloud-oracledatabase-v1:0.42.0:0.42.0 -proto-google-cloud-parallelstore-v1:0.56.0:0.56.0 -grpc-google-cloud-parallelstore-v1:0.56.0:0.56.0 -google-maps-fleetengine:0.40.0:0.40.0 -proto-google-maps-fleetengine-v1:0.40.0:0.40.0 -grpc-google-maps-fleetengine-v1:0.40.0:0.40.0 -google-maps-fleetengine-delivery:0.40.0:0.40.0 -proto-google-maps-fleetengine-delivery-v1:0.40.0:0.40.0 -grpc-google-maps-fleetengine-delivery-v1:0.40.0:0.40.0 -google-shopping-merchant-reviews:0.39.0:0.39.0 -proto-google-shopping-merchant-reviews-v1beta:0.39.0:0.39.0 -grpc-google-shopping-merchant-reviews-v1beta:0.39.0:0.39.0 -google-cloud-valkey:0.39.0:0.39.0 -proto-google-cloud-valkey-v1:0.39.0:0.39.0 -proto-google-cloud-valkey-v1beta:0.39.0:0.39.0 -proto-google-cloud-cloudquotas-v1beta:0.61.0:0.61.0 -grpc-google-cloud-cloudquotas-v1beta:0.61.0:0.61.0 -proto-google-cloud-secretmanager-v1beta1:2.93.0:2.93.0 -grpc-google-cloud-secretmanager-v1beta1:2.93.0:2.93.0 -google-cloud-parametermanager:0.37.0:0.37.0 -proto-google-cloud-parametermanager-v1:0.37.0:0.37.0 -grpc-google-cloud-parametermanager-v1:0.37.0:0.37.0 -google-cloud-modelarmor:0.34.0:0.34.0 -proto-google-cloud-modelarmor-v1:0.34.0:0.34.0 -grpc-google-cloud-modelarmor-v1:0.34.0:0.34.0 -google-cloud-financialservices:0.34.0:0.34.0 -proto-google-cloud-financialservices-v1:0.34.0:0.34.0 -grpc-google-cloud-financialservices-v1:0.34.0:0.34.0 -google-cloud-devicestreaming:0.33.0:0.33.0 -proto-google-cloud-devicestreaming-v1:0.33.0:0.33.0 -grpc-google-cloud-devicestreaming-v1:0.33.0:0.33.0 -google-shopping-merchant-productstudio:0.33.0:0.33.0 -proto-google-shopping-merchant-productstudio-v1alpha:0.33.0:0.33.0 -grpc-google-shopping-merchant-productstudio-v1alpha:0.33.0:0.33.0 -google-cloud-storagebatchoperations:0.33.0:0.33.0 -proto-google-cloud-storagebatchoperations-v1:0.33.0:0.33.0 -grpc-google-cloud-storagebatchoperations-v1:0.33.0:0.33.0 -google-shopping-merchant-issue-resolution:1.21.0:1.21.0 -proto-google-shopping-merchant-issue-resolution-v1beta:1.21.0:1.21.0 -grpc-google-shopping-merchant-issue-resolution-v1beta:1.21.0:1.21.0 -google-cloud-lustre:0.33.0:0.33.0 -proto-google-cloud-lustre-v1:0.33.0:0.33.0 -grpc-google-cloud-lustre-v1:0.33.0:0.33.0 -google-shopping-merchant-order-tracking:1.21.0:1.21.0 -proto-google-shopping-merchant-order-tracking-v1beta:1.21.0:1.21.0 -grpc-google-shopping-merchant-order-tracking-v1beta:1.21.0:1.21.0 -grpc-google-cloud-oracledatabase-v1:0.42.0:0.42.0 -google-cloud-chronicle:0.31.0:0.31.0 -proto-google-cloud-chronicle-v1:0.31.0:0.31.0 -grpc-google-cloud-chronicle-v1:0.31.0:0.31.0 -proto-google-cloud-cloudsupport-v2beta:0.77.0:0.77.0 -grpc-google-cloud-cloudsupport-v2beta:0.77.0:0.77.0 -proto-google-cloud-modelarmor-v1beta:0.34.0:0.34.0 -grpc-google-cloud-modelarmor-v1beta:0.34.0:0.34.0 -proto-google-cloud-dataform-v1:0.92.0:0.92.0 -grpc-google-cloud-dataform-v1:0.92.0:0.92.0 -google-cloud-spanneradapter:0.29.0:0.29.0 -proto-google-cloud-spanneradapter-v1:0.29.0:0.29.0 -grpc-google-cloud-spanneradapter-v1:0.29.0:0.29.0 -proto-google-cloud-workspaceevents-v1beta:0.57.0:0.57.0 -grpc-google-cloud-workspaceevents-v1beta:0.57.0:0.57.0 -google-cloud-maintenance:0.27.0:0.27.0 -proto-google-cloud-maintenance-v1beta:0.27.0:0.27.0 -grpc-google-cloud-maintenance-v1beta:0.27.0:0.27.0 -google-cloud-configdelivery:0.27.0:0.27.0 -proto-google-cloud-configdelivery-v1beta:0.27.0:0.27.0 -grpc-google-cloud-configdelivery-v1beta:0.27.0:0.27.0 -proto-google-cloud-bigquerydatapolicy-v2beta1:0.90.0:0.90.0 -grpc-google-cloud-bigquerydatapolicy-v2beta1:0.90.0:0.90.0 -google-cloud-licensemanager:0.26.0:0.26.0 -proto-google-cloud-licensemanager-v1:0.26.0:0.26.0 -grpc-google-cloud-licensemanager-v1:0.26.0:0.26.0 -proto-google-shopping-merchant-reports-v1alpha:1.21.0:1.21.0 -grpc-google-shopping-merchant-reports-v1alpha:1.21.0:1.21.0 -proto-google-cloud-bigquerydatapolicy-v2:0.90.0:0.90.0 -grpc-google-cloud-bigquerydatapolicy-v2:0.90.0:0.90.0 -proto-google-cloud-configdelivery-v1:0.27.0:0.27.0 -grpc-google-cloud-configdelivery-v1:0.27.0:0.27.0 -proto-google-shopping-merchant-datasources-v1:1.21.0:1.21.0 -grpc-google-shopping-merchant-datasources-v1:1.21.0:1.21.0 -proto-google-shopping-merchant-inventories-v1:1.21.0:1.21.0 -grpc-google-shopping-merchant-inventories-v1:1.21.0:1.21.0 -proto-google-shopping-merchant-conversions-v1:1.21.0:1.21.0 -grpc-google-shopping-merchant-conversions-v1:1.21.0:1.21.0 -proto-google-shopping-merchant-issue-resolution-v1:1.21.0:1.21.0 -grpc-google-shopping-merchant-issue-resolution-v1:1.21.0:1.21.0 -proto-google-shopping-merchant-order-tracking-v1:1.21.0:1.21.0 -grpc-google-shopping-merchant-order-tracking-v1:1.21.0:1.21.0 -proto-google-shopping-merchant-accounts-v1:1.21.0:1.21.0 -grpc-google-shopping-merchant-accounts-v1:1.21.0:1.21.0 -proto-google-shopping-merchant-lfp-v1:1.21.0:1.21.0 -grpc-google-shopping-merchant-lfp-v1:1.21.0:1.21.0 -proto-google-shopping-merchant-products-v1:1.21.0:1.21.0 -grpc-google-shopping-merchant-products-v1:1.21.0:1.21.0 -proto-google-shopping-merchant-promotions-v1:1.21.0:1.21.0 -grpc-google-shopping-merchant-promotions-v1:1.21.0:1.21.0 -proto-google-shopping-merchant-quota-v1:1.21.0:1.21.0 -grpc-google-shopping-merchant-quota-v1:1.21.0:1.21.0 -proto-google-shopping-merchant-reports-v1:1.21.0:1.21.0 -grpc-google-shopping-merchant-reports-v1:1.21.0:1.21.0 -google-cloud-saasservicemgmt:0.23.0:0.23.0 -proto-google-cloud-saasservicemgmt-v1beta1:0.23.0:0.23.0 -grpc-google-cloud-saasservicemgmt-v1beta1:0.23.0:0.23.0 -proto-google-shopping-merchant-notifications-v1:1.21.0:1.21.0 -grpc-google-shopping-merchant-notifications-v1:1.21.0:1.21.0 -google-cloud-geminidataanalytics:0.21.0:0.21.0 -proto-google-cloud-geminidataanalytics-v1beta:0.21.0:0.21.0 -grpc-google-cloud-geminidataanalytics-v1beta:0.21.0:0.21.0 -google-cloud-cloudsecuritycompliance:0.20.0:0.20.0 -proto-google-cloud-cloudsecuritycompliance-v1:0.20.0:0.20.0 -grpc-google-cloud-cloudsecuritycompliance-v1:0.20.0:0.20.0 -google-cloud-locationfinder:0.18.0:0.18.0 -proto-google-cloud-locationfinder-v1:0.18.0:0.18.0 -grpc-google-cloud-locationfinder-v1:0.18.0:0.18.0 -google-cloud-capacityplanner:0.16.0:0.16.0 -proto-google-cloud-capacityplanner-v1beta:0.16.0:0.16.0 -grpc-google-cloud-capacityplanner-v1beta:0.16.0:0.16.0 -data-manager:0.14.0:0.14.0 -proto-data-manager-v1:0.14.0:0.14.0 -grpc-data-manager-v1:0.14.0:0.14.0 -google-cloud-vectorsearch:0.15.0:0.15.0 -proto-google-cloud-vectorsearch-v1beta:0.15.0:0.15.0 -grpc-google-cloud-vectorsearch-v1beta:0.15.0:0.15.0 -google-cloud-databasecenter:0.14.0:0.14.0 -proto-google-cloud-databasecenter-v1beta:0.14.0:0.14.0 -grpc-google-cloud-databasecenter-v1beta:0.14.0:0.14.0 -google-cloud-hypercomputecluster:0.13.0:0.13.0 -proto-google-cloud-hypercomputecluster-v1beta:0.13.0:0.13.0 -grpc-google-cloud-hypercomputecluster-v1beta:0.13.0:0.13.0 -proto-google-cloud-maintenance-v1:0.27.0:0.27.0 -grpc-google-cloud-maintenance-v1:0.27.0:0.27.0 -google-cloud-gkerecommender:0.13.0:0.13.0 -proto-google-cloud-gkerecommender-v1:0.13.0:0.13.0 -grpc-google-cloud-gkerecommender-v1:0.13.0:0.13.0 -google-cloud-cloudapiregistry:0.12.0:0.12.0 -proto-google-cloud-cloudapiregistry-v1beta:0.12.0:0.12.0 -grpc-google-cloud-cloudapiregistry-v1beta:0.12.0:0.12.0 -google-cloud-auditmanager:0.11.0:0.11.0 -proto-google-cloud-auditmanager-v1:0.11.0:0.11.0 -grpc-google-cloud-auditmanager-v1:0.11.0:0.11.0 -proto-google-cloud-cloudapiregistry-v1:0.12.0:0.12.0 -grpc-google-cloud-cloudapiregistry-v1:0.12.0:0.12.0 -google-cloud-logging:3.34.0:3.34.0 -grpc-google-cloud-logging-v2:3.34.0:3.34.0 -proto-google-cloud-logging-v2:3.34.0:3.34.0 -google-cloud-workloadmanager:0.9.0:0.9.0 -proto-google-cloud-workloadmanager-v1:0.9.0:0.9.0 -grpc-google-cloud-workloadmanager-v1:0.9.0:0.9.0 -google-cloud-ces:0.9.0:0.9.0 -proto-google-cloud-ces-v1:0.9.0:0.9.0 -grpc-google-cloud-ces-v1:0.9.0:0.9.0 -google-cloud-bigquerystorage:3.29.0:3.29.0 -grpc-google-cloud-bigquerystorage-v1beta1:3.29.0:3.29.0 -grpc-google-cloud-bigquerystorage-v1beta2:3.29.0:3.29.0 -grpc-google-cloud-bigquerystorage-v1:3.29.0:3.29.0 -proto-google-cloud-bigquerystorage-v1beta1:3.29.0:3.29.0 -proto-google-cloud-bigquerystorage-v1beta2:3.29.0:3.29.0 -proto-google-cloud-bigquerystorage-v1:3.29.0:3.29.0 -grpc-google-cloud-bigquerystorage-v1alpha:3.29.0:3.29.0 -proto-google-cloud-bigquerystorage-v1alpha:3.29.0:3.29.0 -proto-google-cloud-bigquerystorage-v1beta:3.29.0:3.29.0 -grpc-google-cloud-bigquerystorage-v1beta:3.29.0:3.29.0 -google-cloud-datastore:3.1.0:3.1.0 -google-cloud-datastore-bom:3.1.0:3.1.0 -proto-google-cloud-datastore-v1:3.1.0:3.1.0 -datastore-v1-proto-client:3.1.0:3.1.0 -proto-google-cloud-datastore-admin-v1:3.1.0:3.1.0 -grpc-google-cloud-datastore-admin-v1:3.1.0:3.1.0 -grpc-google-cloud-datastore-v1:3.1.0:3.1.0 -google-cloud-logging-logback:0.142.0-alpha:0.142.0-alpha -proto-google-cloud-ces-v1beta:0.9.0:0.9.0 -grpc-google-cloud-ces-v1beta:0.9.0:0.9.0 -proto-google-cloud-vectorsearch-v1:0.15.0:0.15.0 -grpc-google-cloud-vectorsearch-v1:0.15.0:0.15.0 -google-cloud-bigquery:2.67.0:2.67.0 -google-cloud-bigquery-jdbc:1.0.0:1.0.0 -proto-google-cloud-networkconnectivity-v1beta:1.92.0:1.92.0 -grpc-google-cloud-networkconnectivity-v1beta:1.92.0:1.92.0 -proto-google-cloud-hypercomputecluster-v1:0.13.0:0.13.0 -grpc-google-cloud-hypercomputecluster-v1:0.13.0:0.13.0 -proto-google-cloud-biglake-v1beta:0.81.1:0.81.1 -grpc-google-cloud-biglake-v1beta:0.81.1:0.81.1 -gapic-generator-java:2.73.0:2.73.0 -api-common:2.64.0:2.64.0 -gax:2.81.0:2.81.0 -gax-grpc:2.81.0:2.81.0 -proto-google-common-protos:2.72.0:2.72.0 -grpc-google-common-protos:2.72.0:2.72.0 -proto-google-iam-v1:1.67.0:1.67.0 -grpc-google-iam-v1:1.67.0:1.67.0 -proto-google-iam-v2beta:1.67.0:1.67.0 -grpc-google-iam-v2beta:1.67.0:1.67.0 -proto-google-iam-v2:1.67.0:1.67.0 -grpc-google-iam-v2:1.67.0:1.67.0 -google-cloud-core:2.71.0:2.71.0 -google-cloud-shared-dependencies:3.63.0:3.63.0 -proto-google-iam-v3:1.67.0:1.67.0 -grpc-google-iam-v3:1.67.0:1.67.0 -proto-google-iam-v3beta:1.67.0:1.67.0 -grpc-google-iam-v3beta:1.67.0:1.67.0 -proto-google-cloud-spanner-admin-instance-v1:6.118.0:6.118.0 -proto-google-cloud-spanner-v1:6.118.0:6.118.0 -proto-google-cloud-spanner-admin-database-v1:6.118.0:6.118.0 -grpc-google-cloud-spanner-v1:6.118.0:6.118.0 -grpc-google-cloud-spanner-admin-instance-v1:6.118.0:6.118.0 -grpc-google-cloud-spanner-admin-database-v1:6.118.0:6.118.0 -google-cloud-spanner:6.118.0:6.118.0 -grpc-gcp:1.11.0:1.11.0 -google-cloud-spanner-executor:6.118.0:6.118.0 -proto-google-cloud-spanner-executor-v1:6.118.0:6.118.0 -grpc-google-cloud-spanner-executor-v1:6.118.0:6.118.0 -google-cloud-spanner-jdbc:2.40.0:2.40.0 -google-auth-library:1.48.0:1.48.0 -google-auth-library-bom:1.48.0:1.48.0 -google-auth-library-parent:1.48.0:1.48.0 -google-auth-library-appengine:1.48.0:1.48.0 -google-auth-library-credentials:1.48.0:1.48.0 -google-auth-library-oauth2-http:1.48.0:1.48.0 -google-cloud-storage:2.69.0:2.69.0 -gapic-google-cloud-storage-v2:2.69.0:2.69.0 -grpc-google-cloud-storage-v2:2.69.0:2.69.0 -proto-google-cloud-storage-v2:2.69.0:2.69.0 -google-cloud-storage-control:2.69.0:2.69.0 -proto-google-cloud-storage-control-v2:2.69.0:2.69.0 -grpc-google-cloud-storage-control-v2:2.69.0:2.69.0 -google-maps-geocode:0.5.0:0.5.0 -proto-google-maps-geocode-v4:0.5.0:0.5.0 -grpc-google-maps-geocode-v4:0.5.0:0.5.0 -google-cloud-nio:0.133.0:0.133.0 -google-cloud-appoptimize:0.3.0:0.3.0 -proto-google-cloud-appoptimize-v1beta:0.3.0:0.3.0 -grpc-google-cloud-appoptimize-v1beta:0.3.0:0.3.0 -google-cloud-health:0.2.0:0.2.0 -proto-google-cloud-health-v4:0.2.0:0.2.0 -grpc-google-cloud-health-v4:0.2.0:0.2.0 -google-maps-mapmanagement:0.2.0:0.2.0 -proto-google-maps-mapmanagement-v2beta:0.2.0:0.2.0 -grpc-google-maps-mapmanagement-v2beta:0.2.0:0.2.0 -grpc-google-cloud-valkey-v1beta:0.39.0:0.39.0 -grpc-google-cloud-valkey-v1:0.39.0:0.39.0 -google-cloud-pubsub:1.151.0:1.151.0 -grpc-google-cloud-pubsub-v1:1.151.0:1.151.0 -proto-google-cloud-pubsub-v1:1.151.0:1.151.0 -google-cloud-bigtable:2.79.0:2.79.0 -grpc-google-cloud-bigtable-admin-v2:2.79.0:2.79.0 -grpc-google-cloud-bigtable-v2:2.79.0:2.79.0 -proto-google-cloud-bigtable-admin-v2:2.79.0:2.79.0 -proto-google-cloud-bigtable-v2:2.79.0:2.79.0 -google-cloud-bigtable-emulator:0.216.0:0.216.0 -google-cloud-bigtable-emulator-core:0.216.0:0.216.0 -google-cloud-firestore:3.43.1:3.43.1 -google-cloud-firestore-admin:3.43.1:3.43.1 -google-cloud-firestore-bom:3.43.1:3.43.1 -grpc-google-cloud-firestore-admin-v1:3.43.1:3.43.1 -grpc-google-cloud-firestore-v1:3.43.1:3.43.1 -proto-google-cloud-firestore-admin-v1:3.43.1:3.43.1 -proto-google-cloud-firestore-v1:3.43.1:3.43.1 -proto-google-cloud-firestore-bundle-v1:3.43.1:3.43.1 -proto-google-cloud-geminidataanalytics-v1:0.21.0:0.21.0 -grpc-google-cloud-geminidataanalytics-v1:0.21.0:0.21.0 -google-cloud-developer-knowledge:0.1.0:0.1.0 -proto-google-cloud-developer-knowledge-v1:0.1.0:0.1.0 -grpc-google-cloud-developer-knowledge-v1:0.1.0:0.1.0 -google-cloud-backstory:0.1.0:0.1.0 +google-cloud-java:1.87.1:1.88.0-SNAPSHOT +google-cloud-accessapproval:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-accessapproval-v1:2.94.0:2.95.0-SNAPSHOT +proto-google-cloud-accessapproval-v1:2.94.0:2.95.0-SNAPSHOT +google-identity-accesscontextmanager:1.94.0:1.95.0-SNAPSHOT +grpc-google-identity-accesscontextmanager-v1:1.94.0:1.95.0-SNAPSHOT +proto-google-identity-accesscontextmanager-v1:1.94.0:1.95.0-SNAPSHOT +proto-google-identity-accesscontextmanager-type:1.94.0:1.95.0-SNAPSHOT +google-cloud-aiplatform:3.94.0:3.95.0-SNAPSHOT +grpc-google-cloud-aiplatform-v1:3.94.0:3.95.0-SNAPSHOT +grpc-google-cloud-aiplatform-v1beta1:3.94.0:3.95.0-SNAPSHOT +proto-google-cloud-aiplatform-v1:3.94.0:3.95.0-SNAPSHOT +proto-google-cloud-aiplatform-v1beta1:3.94.0:3.95.0-SNAPSHOT +google-analytics-admin:0.103.0:0.104.0-SNAPSHOT +grpc-google-analytics-admin-v1alpha:0.103.0:0.104.0-SNAPSHOT +proto-google-analytics-admin-v1alpha:0.103.0:0.104.0-SNAPSHOT +proto-google-analytics-admin-v1beta:0.103.0:0.104.0-SNAPSHOT +grpc-google-analytics-admin-v1beta:0.103.0:0.104.0-SNAPSHOT +google-analytics-data:0.104.0:0.105.0-SNAPSHOT +grpc-google-analytics-data-v1beta:0.104.0:0.105.0-SNAPSHOT +proto-google-analytics-data-v1beta:0.104.0:0.105.0-SNAPSHOT +proto-google-analytics-data-v1alpha:0.104.0:0.105.0-SNAPSHOT +grpc-google-analytics-data-v1alpha:0.104.0:0.105.0-SNAPSHOT +google-cloud-analyticshub:0.90.0:0.91.0-SNAPSHOT +proto-google-cloud-analyticshub-v1:0.90.0:0.91.0-SNAPSHOT +grpc-google-cloud-analyticshub-v1:0.90.0:0.91.0-SNAPSHOT +google-shopping-merchant-promotions:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-promotions-v1beta:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-promotions-v1beta:1.21.0:1.22.0-SNAPSHOT +google-cloud-api-gateway:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-api-gateway-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-api-gateway-v1:2.93.0:2.94.0-SNAPSHOT +google-cloud-apigee-connect:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-apigee-connect-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-apigee-connect-v1:2.93.0:2.94.0-SNAPSHOT +google-cloud-apigee-registry:0.93.0:0.94.0-SNAPSHOT +proto-google-cloud-apigee-registry-v1:0.93.0:0.94.0-SNAPSHOT +grpc-google-cloud-apigee-registry-v1:0.93.0:0.94.0-SNAPSHOT +google-cloud-apikeys:0.91.0:0.92.0-SNAPSHOT +proto-google-cloud-apikeys-v2:0.91.0:0.92.0-SNAPSHOT +grpc-google-cloud-apikeys-v2:0.91.0:0.92.0-SNAPSHOT +google-cloud-appengine-admin:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-appengine-admin-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-appengine-admin-v1:2.93.0:2.94.0-SNAPSHOT +google-area120-tables:0.97.0:0.98.0-SNAPSHOT +grpc-google-area120-tables-v1alpha1:0.97.0:0.98.0-SNAPSHOT +proto-google-area120-tables-v1alpha1:0.97.0:0.98.0-SNAPSHOT +google-cloud-artifact-registry:1.92.0:1.93.0-SNAPSHOT +grpc-google-cloud-artifact-registry-v1beta2:1.92.0:1.93.0-SNAPSHOT +grpc-google-cloud-artifact-registry-v1:1.92.0:1.93.0-SNAPSHOT +proto-google-cloud-artifact-registry-v1beta2:1.92.0:1.93.0-SNAPSHOT +proto-google-cloud-artifact-registry-v1:1.92.0:1.93.0-SNAPSHOT +google-cloud-asset:3.97.0:3.98.0-SNAPSHOT +grpc-google-cloud-asset-v1:3.97.0:3.98.0-SNAPSHOT +grpc-google-cloud-asset-v1p1beta1:3.97.0:3.98.0-SNAPSHOT +grpc-google-cloud-asset-v1p2beta1:3.97.0:3.98.0-SNAPSHOT +grpc-google-cloud-asset-v1p5beta1:3.97.0:3.98.0-SNAPSHOT +grpc-google-cloud-asset-v1p7beta1:3.97.0:3.98.0-SNAPSHOT +proto-google-cloud-asset-v1:3.97.0:3.98.0-SNAPSHOT +proto-google-cloud-asset-v1p1beta1:3.97.0:3.98.0-SNAPSHOT +proto-google-cloud-asset-v1p2beta1:3.97.0:3.98.0-SNAPSHOT +proto-google-cloud-asset-v1p5beta1:3.97.0:3.98.0-SNAPSHOT +proto-google-cloud-asset-v1p7beta1:3.97.0:3.98.0-SNAPSHOT +google-cloud-assured-workloads:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-assured-workloads-v1beta1:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-assured-workloads-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-assured-workloads-v1beta1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-assured-workloads-v1:2.93.0:2.94.0-SNAPSHOT +google-cloud-automl:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-automl-v1beta1:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-automl-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-automl-v1beta1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-automl-v1:2.93.0:2.94.0-SNAPSHOT +google-cloud-bare-metal-solution:0.93.0:0.94.0-SNAPSHOT +proto-google-cloud-bare-metal-solution-v2:0.93.0:0.94.0-SNAPSHOT +grpc-google-cloud-bare-metal-solution-v2:0.93.0:0.94.0-SNAPSHOT +google-cloud-batch:0.93.0:0.94.0-SNAPSHOT +proto-google-cloud-batch-v1:0.93.0:0.94.0-SNAPSHOT +grpc-google-cloud-batch-v1:0.93.0:0.94.0-SNAPSHOT +proto-google-cloud-batch-v1alpha:0.93.0:0.94.0-SNAPSHOT +grpc-google-cloud-batch-v1alpha:0.93.0:0.94.0-SNAPSHOT +google-cloud-beyondcorp-appconnections:0.91.0:0.92.0-SNAPSHOT +proto-google-cloud-beyondcorp-appconnections-v1:0.91.0:0.92.0-SNAPSHOT +grpc-google-cloud-beyondcorp-appconnections-v1:0.91.0:0.92.0-SNAPSHOT +google-cloud-beyondcorp-appconnectors:0.91.0:0.92.0-SNAPSHOT +proto-google-cloud-beyondcorp-appconnectors-v1:0.91.0:0.92.0-SNAPSHOT +grpc-google-cloud-beyondcorp-appconnectors-v1:0.91.0:0.92.0-SNAPSHOT +google-cloud-beyondcorp-appgateways:0.91.0:0.92.0-SNAPSHOT +proto-google-cloud-beyondcorp-appgateways-v1:0.91.0:0.92.0-SNAPSHOT +grpc-google-cloud-beyondcorp-appgateways-v1:0.91.0:0.92.0-SNAPSHOT +google-cloud-beyondcorp-clientconnectorservices:0.91.0:0.92.0-SNAPSHOT +proto-google-cloud-beyondcorp-clientconnectorservices-v1:0.91.0:0.92.0-SNAPSHOT +grpc-google-cloud-beyondcorp-clientconnectorservices-v1:0.91.0:0.92.0-SNAPSHOT +google-cloud-beyondcorp-clientgateways:0.91.0:0.92.0-SNAPSHOT +proto-google-cloud-beyondcorp-clientgateways-v1:0.91.0:0.92.0-SNAPSHOT +grpc-google-cloud-beyondcorp-clientgateways-v1:0.91.0:0.92.0-SNAPSHOT +google-cloud-bigqueryconnection:2.95.0:2.96.0-SNAPSHOT +grpc-google-cloud-bigqueryconnection-v1:2.95.0:2.96.0-SNAPSHOT +grpc-google-cloud-bigqueryconnection-v1beta1:2.95.0:2.96.0-SNAPSHOT +proto-google-cloud-bigqueryconnection-v1:2.95.0:2.96.0-SNAPSHOT +proto-google-cloud-bigqueryconnection-v1beta1:2.95.0:2.96.0-SNAPSHOT +google-cloud-bigquery-data-exchange:2.88.0:2.89.0-SNAPSHOT +proto-google-cloud-bigquery-data-exchange-v1beta1:2.88.0:2.89.0-SNAPSHOT +grpc-google-cloud-bigquery-data-exchange-v1beta1:2.88.0:2.89.0-SNAPSHOT +google-cloud-bigquerydatapolicy:0.90.0:0.91.0-SNAPSHOT +proto-google-cloud-bigquerydatapolicy-v1beta1:0.90.0:0.91.0-SNAPSHOT +grpc-google-cloud-bigquerydatapolicy-v1beta1:0.90.0:0.91.0-SNAPSHOT +google-cloud-bigquerydatatransfer:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-bigquerydatatransfer-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-bigquerydatatransfer-v1:2.93.0:2.94.0-SNAPSHOT +google-cloud-bigquerymigration:0.96.0:0.97.0-SNAPSHOT +grpc-google-cloud-bigquerymigration-v2alpha:0.96.0:0.97.0-SNAPSHOT +proto-google-cloud-bigquerymigration-v2alpha:0.96.0:0.97.0-SNAPSHOT +proto-google-cloud-bigquerymigration-v2:0.96.0:0.97.0-SNAPSHOT +grpc-google-cloud-bigquerymigration-v2:0.96.0:0.97.0-SNAPSHOT +google-cloud-bigqueryreservation:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-bigqueryreservation-v1:2.94.0:2.95.0-SNAPSHOT +proto-google-cloud-bigqueryreservation-v1:2.94.0:2.95.0-SNAPSHOT +google-cloud-billingbudgets:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-billingbudgets-v1beta1:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-billingbudgets-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-billingbudgets-v1beta1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-billingbudgets-v1:2.93.0:2.94.0-SNAPSHOT +google-cloud-billing:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-billing-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-billing-v1:2.93.0:2.94.0-SNAPSHOT +google-cloud-binary-authorization:1.92.0:1.93.0-SNAPSHOT +grpc-google-cloud-binary-authorization-v1beta1:1.92.0:1.93.0-SNAPSHOT +grpc-google-cloud-binary-authorization-v1:1.92.0:1.93.0-SNAPSHOT +proto-google-cloud-binary-authorization-v1beta1:1.92.0:1.93.0-SNAPSHOT +proto-google-cloud-binary-authorization-v1:1.92.0:1.93.0-SNAPSHOT +google-cloud-certificate-manager:0.96.0:0.97.0-SNAPSHOT +proto-google-cloud-certificate-manager-v1:0.96.0:0.97.0-SNAPSHOT +grpc-google-cloud-certificate-manager-v1:0.96.0:0.97.0-SNAPSHOT +google-cloud-channel:3.97.0:3.98.0-SNAPSHOT +grpc-google-cloud-channel-v1:3.97.0:3.98.0-SNAPSHOT +proto-google-cloud-channel-v1:3.97.0:3.98.0-SNAPSHOT +google-cloud-build:3.95.0:3.96.0-SNAPSHOT +grpc-google-cloud-build-v1:3.95.0:3.96.0-SNAPSHOT +proto-google-cloud-build-v1:3.95.0:3.96.0-SNAPSHOT +google-cloud-cloudcommerceconsumerprocurement:0.91.0:0.92.0-SNAPSHOT +proto-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.91.0:0.92.0-SNAPSHOT +grpc-google-cloud-cloudcommerceconsumerprocurement-v1alpha1:0.91.0:0.92.0-SNAPSHOT +google-cloud-compute:1.103.0:1.104.0-SNAPSHOT +proto-google-cloud-compute-v1:1.103.0:1.104.0-SNAPSHOT +google-cloud-contact-center-insights:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-contact-center-insights-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-contact-center-insights-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-containeranalysis-v1:2.94.0:2.95.0-SNAPSHOT +proto-google-cloud-containeranalysis-v1beta1:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-containeranalysis-v1beta1:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-containeranalysis-v1:2.94.0:2.95.0-SNAPSHOT +google-cloud-containeranalysis:2.94.0:2.95.0-SNAPSHOT +google-cloud-container:2.96.0:2.97.0-SNAPSHOT +grpc-google-cloud-container-v1:2.96.0:2.97.0-SNAPSHOT +grpc-google-cloud-container-v1beta1:2.96.0:2.97.0-SNAPSHOT +proto-google-cloud-container-v1:2.96.0:2.97.0-SNAPSHOT +proto-google-cloud-container-v1beta1:2.96.0:2.97.0-SNAPSHOT +google-cloud-contentwarehouse:0.89.0:0.90.0-SNAPSHOT +proto-google-cloud-contentwarehouse-v1:0.89.0:0.90.0-SNAPSHOT +grpc-google-cloud-contentwarehouse-v1:0.89.0:0.90.0-SNAPSHOT +google-cloud-datacatalog:1.99.0:1.100.0-SNAPSHOT +grpc-google-cloud-datacatalog-v1:1.99.0:1.100.0-SNAPSHOT +grpc-google-cloud-datacatalog-v1beta1:1.99.0:1.100.0-SNAPSHOT +proto-google-cloud-datacatalog-v1:1.99.0:1.100.0-SNAPSHOT +proto-google-cloud-datacatalog-v1beta1:1.99.0:1.100.0-SNAPSHOT +google-cloud-dataflow:0.97.0:0.98.0-SNAPSHOT +grpc-google-cloud-dataflow-v1beta3:0.97.0:0.98.0-SNAPSHOT +proto-google-cloud-dataflow-v1beta3:0.97.0:0.98.0-SNAPSHOT +google-cloud-dataform:0.92.0:0.93.0-SNAPSHOT +proto-google-cloud-dataform-v1beta1:0.92.0:0.93.0-SNAPSHOT +grpc-google-cloud-dataform-v1beta1:0.92.0:0.93.0-SNAPSHOT +google-cloud-data-fusion:1.93.0:1.94.0-SNAPSHOT +grpc-google-cloud-data-fusion-v1beta1:1.93.0:1.94.0-SNAPSHOT +grpc-google-cloud-data-fusion-v1:1.93.0:1.94.0-SNAPSHOT +proto-google-cloud-data-fusion-v1beta1:1.93.0:1.94.0-SNAPSHOT +proto-google-cloud-data-fusion-v1:1.93.0:1.94.0-SNAPSHOT +google-cloud-datalabeling:0.213.0:0.214.0-SNAPSHOT +grpc-google-cloud-datalabeling-v1beta1:0.213.0:0.214.0-SNAPSHOT +proto-google-cloud-datalabeling-v1beta1:0.213.0:0.214.0-SNAPSHOT +google-cloud-dataplex:1.91.0:1.92.0-SNAPSHOT +proto-google-cloud-dataplex-v1:1.91.0:1.92.0-SNAPSHOT +grpc-google-cloud-dataplex-v1:1.91.0:1.92.0-SNAPSHOT +google-cloud-dataproc-metastore:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-dataproc-metastore-v1beta:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-dataproc-metastore-v1alpha:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-dataproc-metastore-v1:2.94.0:2.95.0-SNAPSHOT +proto-google-cloud-dataproc-metastore-v1beta:2.94.0:2.95.0-SNAPSHOT +proto-google-cloud-dataproc-metastore-v1alpha:2.94.0:2.95.0-SNAPSHOT +proto-google-cloud-dataproc-metastore-v1:2.94.0:2.95.0-SNAPSHOT +google-cloud-dataproc:4.90.0:4.91.0-SNAPSHOT +grpc-google-cloud-dataproc-v1:4.90.0:4.91.0-SNAPSHOT +proto-google-cloud-dataproc-v1:4.90.0:4.91.0-SNAPSHOT +google-cloud-datastream:1.92.0:1.93.0-SNAPSHOT +grpc-google-cloud-datastream-v1alpha1:1.92.0:1.93.0-SNAPSHOT +proto-google-cloud-datastream-v1alpha1:1.92.0:1.93.0-SNAPSHOT +proto-google-cloud-datastream-v1:1.92.0:1.93.0-SNAPSHOT +grpc-google-cloud-datastream-v1:1.92.0:1.93.0-SNAPSHOT +proto-google-devtools-source-protos:1.93.0:1.94.0-SNAPSHOT +google-cloud-deploy:1.91.0:1.92.0-SNAPSHOT +grpc-google-cloud-deploy-v1:1.91.0:1.92.0-SNAPSHOT +proto-google-cloud-deploy-v1:1.91.0:1.92.0-SNAPSHOT +google-cloud-dialogflow-cx:0.104.0:0.105.0-SNAPSHOT +grpc-google-cloud-dialogflow-cx-v3beta1:0.104.0:0.105.0-SNAPSHOT +grpc-google-cloud-dialogflow-cx-v3:0.104.0:0.105.0-SNAPSHOT +proto-google-cloud-dialogflow-cx-v3beta1:0.104.0:0.105.0-SNAPSHOT +proto-google-cloud-dialogflow-cx-v3:0.104.0:0.105.0-SNAPSHOT +google-cloud-dialogflow:4.99.0:4.100.0-SNAPSHOT +grpc-google-cloud-dialogflow-v2beta1:4.99.0:4.100.0-SNAPSHOT +grpc-google-cloud-dialogflow-v2:4.99.0:4.100.0-SNAPSHOT +proto-google-cloud-dialogflow-v2:4.99.0:4.100.0-SNAPSHOT +proto-google-cloud-dialogflow-v2beta1:4.99.0:4.100.0-SNAPSHOT +google-cloud-discoveryengine:0.89.0:0.90.0-SNAPSHOT +proto-google-cloud-discoveryengine-v1beta:0.89.0:0.90.0-SNAPSHOT +grpc-google-cloud-discoveryengine-v1beta:0.89.0:0.90.0-SNAPSHOT +google-cloud-distributedcloudedge:0.90.0:0.91.0-SNAPSHOT +proto-google-cloud-distributedcloudedge-v1:0.90.0:0.91.0-SNAPSHOT +grpc-google-cloud-distributedcloudedge-v1:0.90.0:0.91.0-SNAPSHOT +google-cloud-dlp:3.97.0:3.98.0-SNAPSHOT +grpc-google-cloud-dlp-v2:3.97.0:3.98.0-SNAPSHOT +proto-google-cloud-dlp-v2:3.97.0:3.98.0-SNAPSHOT +google-cloud-dms:2.92.0:2.93.0-SNAPSHOT +grpc-google-cloud-dms-v1:2.92.0:2.93.0-SNAPSHOT +proto-google-cloud-dms-v1:2.92.0:2.93.0-SNAPSHOT +google-cloud-document-ai:2.97.0:2.98.0-SNAPSHOT +grpc-google-cloud-document-ai-v1beta3:2.97.0:2.98.0-SNAPSHOT +grpc-google-cloud-document-ai-v1:2.97.0:2.98.0-SNAPSHOT +proto-google-cloud-document-ai-v1beta3:2.97.0:2.98.0-SNAPSHOT +proto-google-cloud-document-ai-v1:2.97.0:2.98.0-SNAPSHOT +google-cloud-domains:1.90.0:1.91.0-SNAPSHOT +grpc-google-cloud-domains-v1beta1:1.90.0:1.91.0-SNAPSHOT +grpc-google-cloud-domains-v1alpha2:1.90.0:1.91.0-SNAPSHOT +grpc-google-cloud-domains-v1:1.90.0:1.91.0-SNAPSHOT +proto-google-cloud-domains-v1beta1:1.90.0:1.91.0-SNAPSHOT +proto-google-cloud-domains-v1alpha2:1.90.0:1.91.0-SNAPSHOT +proto-google-cloud-domains-v1:1.90.0:1.91.0-SNAPSHOT +google-cloud-enterpriseknowledgegraph:0.89.0:0.90.0-SNAPSHOT +proto-google-cloud-enterpriseknowledgegraph-v1:0.89.0:0.90.0-SNAPSHOT +grpc-google-cloud-enterpriseknowledgegraph-v1:0.89.0:0.90.0-SNAPSHOT +google-cloud-errorreporting:0.214.0-beta:0.215.0-beta-SNAPSHOT +grpc-google-cloud-error-reporting-v1beta1:0.214.0-beta:0.215.0-beta-SNAPSHOT +proto-google-cloud-error-reporting-v1beta1:0.214.0-beta:0.215.0-beta-SNAPSHOT +google-cloud-essential-contacts:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-essential-contacts-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-essential-contacts-v1:2.93.0:2.94.0-SNAPSHOT +google-cloud-eventarc:1.93.0:1.94.0-SNAPSHOT +grpc-google-cloud-eventarc-v1:1.93.0:1.94.0-SNAPSHOT +proto-google-cloud-eventarc-v1:1.93.0:1.94.0-SNAPSHOT +google-cloud-eventarc-publishing:0.93.0:0.94.0-SNAPSHOT +proto-google-cloud-eventarc-publishing-v1:0.93.0:0.94.0-SNAPSHOT +grpc-google-cloud-eventarc-publishing-v1:0.93.0:0.94.0-SNAPSHOT +google-cloud-filestore:1.94.0:1.95.0-SNAPSHOT +grpc-google-cloud-filestore-v1beta1:1.94.0:1.95.0-SNAPSHOT +grpc-google-cloud-filestore-v1:1.94.0:1.95.0-SNAPSHOT +proto-google-cloud-filestore-v1:1.94.0:1.95.0-SNAPSHOT +proto-google-cloud-filestore-v1beta1:1.94.0:1.95.0-SNAPSHOT +google-cloud-functions:2.95.0:2.96.0-SNAPSHOT +grpc-google-cloud-functions-v1:2.95.0:2.96.0-SNAPSHOT +proto-google-cloud-functions-v1:2.95.0:2.96.0-SNAPSHOT +proto-google-cloud-functions-v2beta:2.95.0:2.96.0-SNAPSHOT +proto-google-cloud-functions-v2alpha:2.95.0:2.96.0-SNAPSHOT +grpc-google-cloud-functions-v2beta:2.95.0:2.96.0-SNAPSHOT +grpc-google-cloud-functions-v2alpha:2.95.0:2.96.0-SNAPSHOT +proto-google-cloud-functions-v2:2.95.0:2.96.0-SNAPSHOT +grpc-google-cloud-functions-v2:2.95.0:2.96.0-SNAPSHOT +google-cloud-game-servers:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-game-servers-v1:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-game-servers-v1beta:0.118.0:0.119.0-SNAPSHOT +proto-google-cloud-game-servers-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-game-servers-v1beta:0.118.0:0.119.0-SNAPSHOT +google-cloud-gke-backup:0.92.0:0.93.0-SNAPSHOT +proto-google-cloud-gke-backup-v1:0.92.0:0.93.0-SNAPSHOT +grpc-google-cloud-gke-backup-v1:0.92.0:0.93.0-SNAPSHOT +google-cloud-gke-connect-gateway:0.94.0:0.95.0-SNAPSHOT +proto-google-cloud-gke-connect-gateway-v1beta1:0.94.0:0.95.0-SNAPSHOT +google-cloud-gkehub:1.93.0:1.94.0-SNAPSHOT +grpc-google-cloud-gkehub-v1beta1:1.93.0:1.94.0-SNAPSHOT +grpc-google-cloud-gkehub-v1:1.93.0:1.94.0-SNAPSHOT +grpc-google-cloud-gkehub-v1alpha:1.93.0:1.94.0-SNAPSHOT +grpc-google-cloud-gkehub-v1beta:1.93.0:1.94.0-SNAPSHOT +proto-google-cloud-gkehub-v1beta1:1.93.0:1.94.0-SNAPSHOT +proto-google-cloud-gkehub-v1:1.93.0:1.94.0-SNAPSHOT +proto-google-cloud-gkehub-v1alpha:1.93.0:1.94.0-SNAPSHOT +proto-google-cloud-gkehub-v1beta:1.93.0:1.94.0-SNAPSHOT +google-cloud-gke-multi-cloud:0.92.0:0.93.0-SNAPSHOT +proto-google-cloud-gke-multi-cloud-v1:0.92.0:0.93.0-SNAPSHOT +grpc-google-cloud-gke-multi-cloud-v1:0.92.0:0.93.0-SNAPSHOT +grafeas:2.94.0:2.95.0-SNAPSHOT +google-cloud-gsuite-addons:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-gsuite-addons-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-gsuite-addons-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-apps-script-type-protos:2.93.0:2.94.0-SNAPSHOT +google-iam-admin:3.88.0:3.89.0-SNAPSHOT +grpc-google-iam-admin-v1:3.88.0:3.89.0-SNAPSHOT +proto-google-iam-admin-v1:3.88.0:3.89.0-SNAPSHOT +google-cloud-iamcredentials:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-iamcredentials-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-iamcredentials-v1:2.93.0:2.94.0-SNAPSHOT +google-cloud-ids:1.92.0:1.93.0-SNAPSHOT +grpc-google-cloud-ids-v1:1.92.0:1.93.0-SNAPSHOT +proto-google-cloud-ids-v1:1.92.0:1.93.0-SNAPSHOT +google-cloud-iot:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-iot-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-iot-v1:2.93.0:2.94.0-SNAPSHOT +google-cloud-kms:2.96.0:2.97.0-SNAPSHOT +grpc-google-cloud-kms-v1:2.96.0:2.97.0-SNAPSHOT +proto-google-cloud-kms-v1:2.96.0:2.97.0-SNAPSHOT +google-cloud-language:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-language-v1:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-language-v1beta2:2.94.0:2.95.0-SNAPSHOT +proto-google-cloud-language-v1:2.94.0:2.95.0-SNAPSHOT +proto-google-cloud-language-v1beta2:2.94.0:2.95.0-SNAPSHOT +google-cloud-life-sciences:0.95.0:0.96.0-SNAPSHOT +grpc-google-cloud-life-sciences-v2beta:0.95.0:0.96.0-SNAPSHOT +proto-google-cloud-life-sciences-v2beta:0.95.0:0.96.0-SNAPSHOT +google-cloud-managed-identities:1.91.0:1.92.0-SNAPSHOT +grpc-google-cloud-managed-identities-v1:1.91.0:1.92.0-SNAPSHOT +proto-google-cloud-managed-identities-v1:1.91.0:1.92.0-SNAPSHOT +google-cloud-mediatranslation:0.99.0:0.100.0-SNAPSHOT +grpc-google-cloud-mediatranslation-v1beta1:0.99.0:0.100.0-SNAPSHOT +proto-google-cloud-mediatranslation-v1beta1:0.99.0:0.100.0-SNAPSHOT +google-cloud-memcache:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-memcache-v1beta2:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-memcache-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-memcache-v1beta2:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-memcache-v1:2.93.0:2.94.0-SNAPSHOT +google-cloud-monitoring-dashboard:2.95.0:2.96.0-SNAPSHOT +grpc-google-cloud-monitoring-dashboard-v1:2.95.0:2.96.0-SNAPSHOT +proto-google-cloud-monitoring-dashboard-v1:2.95.0:2.96.0-SNAPSHOT +google-cloud-monitoring:3.94.0:3.95.0-SNAPSHOT +grpc-google-cloud-monitoring-v3:3.94.0:3.95.0-SNAPSHOT +proto-google-cloud-monitoring-v3:3.94.0:3.95.0-SNAPSHOT +google-cloud-networkconnectivity:1.92.0:1.93.0-SNAPSHOT +grpc-google-cloud-networkconnectivity-v1alpha1:1.92.0:1.93.0-SNAPSHOT +grpc-google-cloud-networkconnectivity-v1:1.92.0:1.93.0-SNAPSHOT +proto-google-cloud-networkconnectivity-v1alpha1:1.92.0:1.93.0-SNAPSHOT +proto-google-cloud-networkconnectivity-v1:1.92.0:1.93.0-SNAPSHOT +google-cloud-network-management:1.94.0:1.95.0-SNAPSHOT +grpc-google-cloud-network-management-v1beta1:1.94.0:1.95.0-SNAPSHOT +grpc-google-cloud-network-management-v1:1.94.0:1.95.0-SNAPSHOT +proto-google-cloud-network-management-v1beta1:1.94.0:1.95.0-SNAPSHOT +proto-google-cloud-network-management-v1:1.94.0:1.95.0-SNAPSHOT +google-cloud-network-security:0.96.0:0.97.0-SNAPSHOT +grpc-google-cloud-network-security-v1beta1:0.96.0:0.97.0-SNAPSHOT +proto-google-cloud-network-security-v1beta1:0.96.0:0.97.0-SNAPSHOT +proto-google-cloud-network-security-v1:0.96.0:0.97.0-SNAPSHOT +grpc-google-cloud-network-security-v1:0.96.0:0.97.0-SNAPSHOT +google-cloud-notebooks:1.91.0:1.92.0-SNAPSHOT +grpc-google-cloud-notebooks-v1beta1:1.91.0:1.92.0-SNAPSHOT +grpc-google-cloud-notebooks-v1:1.91.0:1.92.0-SNAPSHOT +proto-google-cloud-notebooks-v1beta1:1.91.0:1.92.0-SNAPSHOT +proto-google-cloud-notebooks-v1:1.91.0:1.92.0-SNAPSHOT +google-cloud-notification:0.211.0-beta:0.212.0-beta-SNAPSHOT +google-cloud-optimization:1.91.0:1.92.0-SNAPSHOT +proto-google-cloud-optimization-v1:1.91.0:1.92.0-SNAPSHOT +grpc-google-cloud-optimization-v1:1.91.0:1.92.0-SNAPSHOT +google-cloud-orchestration-airflow:1.93.0:1.94.0-SNAPSHOT +grpc-google-cloud-orchestration-airflow-v1:1.93.0:1.94.0-SNAPSHOT +grpc-google-cloud-orchestration-airflow-v1beta1:1.93.0:1.94.0-SNAPSHOT +proto-google-cloud-orchestration-airflow-v1:1.93.0:1.94.0-SNAPSHOT +proto-google-cloud-orchestration-airflow-v1beta1:1.93.0:1.94.0-SNAPSHOT +google-cloud-orgpolicy:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-orgpolicy-v2:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-orgpolicy-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-orgpolicy-v2:2.93.0:2.94.0-SNAPSHOT +google-cloud-os-config:2.95.0:2.96.0-SNAPSHOT +grpc-google-cloud-os-config-v1:2.95.0:2.96.0-SNAPSHOT +grpc-google-cloud-os-config-v1beta:2.95.0:2.96.0-SNAPSHOT +grpc-google-cloud-os-config-v1alpha:2.95.0:2.96.0-SNAPSHOT +proto-google-cloud-os-config-v1:2.95.0:2.96.0-SNAPSHOT +proto-google-cloud-os-config-v1alpha:2.95.0:2.96.0-SNAPSHOT +proto-google-cloud-os-config-v1beta:2.95.0:2.96.0-SNAPSHOT +google-cloud-os-login:2.92.0:2.93.0-SNAPSHOT +grpc-google-cloud-os-login-v1:2.92.0:2.93.0-SNAPSHOT +proto-google-cloud-os-login-v1:2.92.0:2.93.0-SNAPSHOT +google-cloud-phishingprotection:0.124.0:0.125.0-SNAPSHOT +grpc-google-cloud-phishingprotection-v1beta1:0.124.0:0.125.0-SNAPSHOT +proto-google-cloud-phishingprotection-v1beta1:0.124.0:0.125.0-SNAPSHOT +google-cloud-policy-troubleshooter:1.92.0:1.93.0-SNAPSHOT +grpc-google-cloud-policy-troubleshooter-v1:1.92.0:1.93.0-SNAPSHOT +proto-google-cloud-policy-troubleshooter-v1:1.92.0:1.93.0-SNAPSHOT +google-cloud-private-catalog:0.95.0:0.96.0-SNAPSHOT +grpc-google-cloud-private-catalog-v1beta1:0.95.0:0.96.0-SNAPSHOT +proto-google-cloud-private-catalog-v1beta1:0.95.0:0.96.0-SNAPSHOT +google-cloud-profiler:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-profiler-v2:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-profiler-v2:2.93.0:2.94.0-SNAPSHOT +google-cloud-publicca:0.90.0:0.91.0-SNAPSHOT +proto-google-cloud-publicca-v1beta1:0.90.0:0.91.0-SNAPSHOT +grpc-google-cloud-publicca-v1beta1:0.90.0:0.91.0-SNAPSHOT +google-cloud-recaptchaenterprise:3.90.0:3.91.0-SNAPSHOT +grpc-google-cloud-recaptchaenterprise-v1:3.90.0:3.91.0-SNAPSHOT +grpc-google-cloud-recaptchaenterprise-v1beta1:3.90.0:3.91.0-SNAPSHOT +proto-google-cloud-recaptchaenterprise-v1:3.90.0:3.91.0-SNAPSHOT +proto-google-cloud-recaptchaenterprise-v1beta1:3.90.0:3.91.0-SNAPSHOT +google-cloud-recommendations-ai:0.100.0:0.101.0-SNAPSHOT +grpc-google-cloud-recommendations-ai-v1beta1:0.100.0:0.101.0-SNAPSHOT +proto-google-cloud-recommendations-ai-v1beta1:0.100.0:0.101.0-SNAPSHOT +google-cloud-recommender:2.95.0:2.96.0-SNAPSHOT +grpc-google-cloud-recommender-v1:2.95.0:2.96.0-SNAPSHOT +grpc-google-cloud-recommender-v1beta1:2.95.0:2.96.0-SNAPSHOT +proto-google-cloud-recommender-v1:2.95.0:2.96.0-SNAPSHOT +proto-google-cloud-recommender-v1beta1:2.95.0:2.96.0-SNAPSHOT +google-cloud-redis:2.96.0:2.97.0-SNAPSHOT +grpc-google-cloud-redis-v1beta1:2.96.0:2.97.0-SNAPSHOT +grpc-google-cloud-redis-v1:2.96.0:2.97.0-SNAPSHOT +proto-google-cloud-redis-v1:2.96.0:2.97.0-SNAPSHOT +proto-google-cloud-redis-v1beta1:2.96.0:2.97.0-SNAPSHOT +google-cloud-resourcemanager:1.95.0:1.96.0-SNAPSHOT +grpc-google-cloud-resourcemanager-v3:1.95.0:1.96.0-SNAPSHOT +proto-google-cloud-resourcemanager-v3:1.95.0:1.96.0-SNAPSHOT +google-cloud-retail:2.95.0:2.96.0-SNAPSHOT +grpc-google-cloud-retail-v2:2.95.0:2.96.0-SNAPSHOT +proto-google-cloud-retail-v2:2.95.0:2.96.0-SNAPSHOT +proto-google-cloud-retail-v2alpha:2.95.0:2.96.0-SNAPSHOT +proto-google-cloud-retail-v2beta:2.95.0:2.96.0-SNAPSHOT +grpc-google-cloud-retail-v2alpha:2.95.0:2.96.0-SNAPSHOT +grpc-google-cloud-retail-v2beta:2.95.0:2.96.0-SNAPSHOT +google-cloud-run:0.93.0:0.94.0-SNAPSHOT +proto-google-cloud-run-v2:0.93.0:0.94.0-SNAPSHOT +grpc-google-cloud-run-v2:0.93.0:0.94.0-SNAPSHOT +google-cloud-scheduler:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-scheduler-v1beta1:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-scheduler-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-scheduler-v1beta1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-scheduler-v1:2.93.0:2.94.0-SNAPSHOT +google-cloud-secretmanager:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-secretmanager-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-secretmanager-v1:2.93.0:2.94.0-SNAPSHOT +google-cloud-securitycenter:2.101.0:2.102.0-SNAPSHOT +grpc-google-cloud-securitycenter-v1:2.101.0:2.102.0-SNAPSHOT +grpc-google-cloud-securitycenter-v1beta1:2.101.0:2.102.0-SNAPSHOT +grpc-google-cloud-securitycenter-v1p1beta1:2.101.0:2.102.0-SNAPSHOT +proto-google-cloud-securitycenter-v1:2.101.0:2.102.0-SNAPSHOT +proto-google-cloud-securitycenter-v1beta1:2.101.0:2.102.0-SNAPSHOT +proto-google-cloud-securitycenter-v1p1beta1:2.101.0:2.102.0-SNAPSHOT +google-cloud-securitycenter-settings:0.96.0:0.97.0-SNAPSHOT +grpc-google-cloud-securitycenter-settings-v1beta1:0.96.0:0.97.0-SNAPSHOT +proto-google-cloud-securitycenter-settings-v1beta1:0.96.0:0.97.0-SNAPSHOT +google-cloud-security-private-ca:2.95.0:2.96.0-SNAPSHOT +grpc-google-cloud-security-private-ca-v1beta1:2.95.0:2.96.0-SNAPSHOT +grpc-google-cloud-security-private-ca-v1:2.95.0:2.96.0-SNAPSHOT +proto-google-cloud-security-private-ca-v1beta1:2.95.0:2.96.0-SNAPSHOT +proto-google-cloud-security-private-ca-v1:2.95.0:2.96.0-SNAPSHOT +google-cloud-service-control:1.93.0:1.94.0-SNAPSHOT +grpc-google-cloud-service-control-v1:1.93.0:1.94.0-SNAPSHOT +proto-google-cloud-service-control-v1:1.93.0:1.94.0-SNAPSHOT +proto-google-cloud-service-control-v2:1.93.0:1.94.0-SNAPSHOT +grpc-google-cloud-service-control-v2:1.93.0:1.94.0-SNAPSHOT +google-cloud-servicedirectory:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-servicedirectory-v1beta1:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-servicedirectory-v1:2.94.0:2.95.0-SNAPSHOT +proto-google-cloud-servicedirectory-v1beta1:2.94.0:2.95.0-SNAPSHOT +proto-google-cloud-servicedirectory-v1:2.94.0:2.95.0-SNAPSHOT +google-cloud-service-management:3.91.0:3.92.0-SNAPSHOT +grpc-google-cloud-service-management-v1:3.91.0:3.92.0-SNAPSHOT +proto-google-cloud-service-management-v1:3.91.0:3.92.0-SNAPSHOT +google-cloud-service-usage:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-service-usage-v1beta1:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-service-usage-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-service-usage-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-service-usage-v1beta1:2.93.0:2.94.0-SNAPSHOT +google-cloud-shell:2.92.0:2.93.0-SNAPSHOT +grpc-google-cloud-shell-v1:2.92.0:2.93.0-SNAPSHOT +proto-google-cloud-shell-v1:2.92.0:2.93.0-SNAPSHOT +google-cloud-speech:4.88.0:4.89.0-SNAPSHOT +grpc-google-cloud-speech-v1:4.88.0:4.89.0-SNAPSHOT +grpc-google-cloud-speech-v1p1beta1:4.88.0:4.89.0-SNAPSHOT +proto-google-cloud-speech-v1:4.88.0:4.89.0-SNAPSHOT +proto-google-cloud-speech-v1p1beta1:4.88.0:4.89.0-SNAPSHOT +proto-google-cloud-speech-v2:4.88.0:4.89.0-SNAPSHOT +grpc-google-cloud-speech-v2:4.88.0:4.89.0-SNAPSHOT +google-cloud-storage-transfer:1.93.0:1.94.0-SNAPSHOT +grpc-google-cloud-storage-transfer-v1:1.93.0:1.94.0-SNAPSHOT +proto-google-cloud-storage-transfer-v1:1.93.0:1.94.0-SNAPSHOT +google-cloud-talent:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-talent-v4:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-talent-v4beta1:2.94.0:2.95.0-SNAPSHOT +proto-google-cloud-talent-v4:2.94.0:2.95.0-SNAPSHOT +proto-google-cloud-talent-v4beta1:2.94.0:2.95.0-SNAPSHOT +google-cloud-tasks:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-tasks-v2beta3:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-tasks-v2beta2:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-tasks-v2:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-tasks-v2beta3:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-tasks-v2beta2:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-tasks-v2:2.93.0:2.94.0-SNAPSHOT +google-cloud-texttospeech:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-texttospeech-v1beta1:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-texttospeech-v1:2.94.0:2.95.0-SNAPSHOT +proto-google-cloud-texttospeech-v1:2.94.0:2.95.0-SNAPSHOT +proto-google-cloud-texttospeech-v1beta1:2.94.0:2.95.0-SNAPSHOT +google-cloud-tpu:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-tpu-v1:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-tpu-v2alpha1:2.94.0:2.95.0-SNAPSHOT +proto-google-cloud-tpu-v1:2.94.0:2.95.0-SNAPSHOT +proto-google-cloud-tpu-v2alpha1:2.94.0:2.95.0-SNAPSHOT +google-cloud-trace:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-trace-v1:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-trace-v2:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-trace-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-trace-v2:2.93.0:2.94.0-SNAPSHOT +google-cloud-translate:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-translate-v3beta1:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-translate-v3:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-translate-v3beta1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-translate-v3:2.93.0:2.94.0-SNAPSHOT +google-cloud-video-intelligence:2.92.0:2.93.0-SNAPSHOT +grpc-google-cloud-video-intelligence-v1p1beta1:2.92.0:2.93.0-SNAPSHOT +grpc-google-cloud-video-intelligence-v1beta2:2.92.0:2.93.0-SNAPSHOT +grpc-google-cloud-video-intelligence-v1:2.92.0:2.93.0-SNAPSHOT +grpc-google-cloud-video-intelligence-v1p2beta1:2.92.0:2.93.0-SNAPSHOT +grpc-google-cloud-video-intelligence-v1p3beta1:2.92.0:2.93.0-SNAPSHOT +proto-google-cloud-video-intelligence-v1p3beta1:2.92.0:2.93.0-SNAPSHOT +proto-google-cloud-video-intelligence-v1beta2:2.92.0:2.93.0-SNAPSHOT +proto-google-cloud-video-intelligence-v1p1beta1:2.92.0:2.93.0-SNAPSHOT +proto-google-cloud-video-intelligence-v1:2.92.0:2.93.0-SNAPSHOT +proto-google-cloud-video-intelligence-v1p2beta1:2.92.0:2.93.0-SNAPSHOT +google-cloud-live-stream:0.95.0:0.96.0-SNAPSHOT +proto-google-cloud-live-stream-v1:0.95.0:0.96.0-SNAPSHOT +grpc-google-cloud-live-stream-v1:0.95.0:0.96.0-SNAPSHOT +google-cloud-video-stitcher:0.93.0:0.94.0-SNAPSHOT +proto-google-cloud-video-stitcher-v1:0.93.0:0.94.0-SNAPSHOT +grpc-google-cloud-video-stitcher-v1:0.93.0:0.94.0-SNAPSHOT +google-cloud-video-transcoder:1.92.0:1.93.0-SNAPSHOT +grpc-google-cloud-video-transcoder-v1:1.92.0:1.93.0-SNAPSHOT +proto-google-cloud-video-transcoder-v1:1.92.0:1.93.0-SNAPSHOT +google-cloud-vision:3.91.0:3.92.0-SNAPSHOT +grpc-google-cloud-vision-v1p3beta1:3.91.0:3.92.0-SNAPSHOT +grpc-google-cloud-vision-v1p1beta1:3.91.0:3.92.0-SNAPSHOT +grpc-google-cloud-vision-v1p4beta1:3.91.0:3.92.0-SNAPSHOT +grpc-google-cloud-vision-v1p2beta1:3.91.0:3.92.0-SNAPSHOT +grpc-google-cloud-vision-v1:3.91.0:3.92.0-SNAPSHOT +proto-google-cloud-vision-v1p4beta1:3.91.0:3.92.0-SNAPSHOT +proto-google-cloud-vision-v1:3.91.0:3.92.0-SNAPSHOT +proto-google-cloud-vision-v1p1beta1:3.91.0:3.92.0-SNAPSHOT +proto-google-cloud-vision-v1p3beta1:3.91.0:3.92.0-SNAPSHOT +proto-google-cloud-vision-v1p2beta1:3.91.0:3.92.0-SNAPSHOT +google-cloud-vmmigration:1.93.0:1.94.0-SNAPSHOT +grpc-google-cloud-vmmigration-v1:1.93.0:1.94.0-SNAPSHOT +proto-google-cloud-vmmigration-v1:1.93.0:1.94.0-SNAPSHOT +google-cloud-vpcaccess:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-vpcaccess-v1:2.94.0:2.95.0-SNAPSHOT +proto-google-cloud-vpcaccess-v1:2.94.0:2.95.0-SNAPSHOT +google-cloud-webrisk:2.92.0:2.93.0-SNAPSHOT +grpc-google-cloud-webrisk-v1:2.92.0:2.93.0-SNAPSHOT +grpc-google-cloud-webrisk-v1beta1:2.92.0:2.93.0-SNAPSHOT +proto-google-cloud-webrisk-v1:2.92.0:2.93.0-SNAPSHOT +proto-google-cloud-webrisk-v1beta1:2.92.0:2.93.0-SNAPSHOT +google-cloud-websecurityscanner:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-websecurityscanner-v1alpha:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-websecurityscanner-v1beta:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-websecurityscanner-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-websecurityscanner-v1alpha:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-websecurityscanner-v1beta:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-websecurityscanner-v1:2.93.0:2.94.0-SNAPSHOT +google-cloud-workflow-executions:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-workflow-executions-v1beta:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-workflow-executions-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-workflow-executions-v1beta:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-workflow-executions-v1:2.93.0:2.94.0-SNAPSHOT +google-cloud-workflows:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-workflows-v1beta:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-workflows-v1:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-workflows-v1beta:2.93.0:2.94.0-SNAPSHOT +proto-google-cloud-workflows-v1:2.93.0:2.94.0-SNAPSHOT +google-cloud-dns:2.91.0:2.92.0-SNAPSHOT +google-maps-routing:1.78.0:1.79.0-SNAPSHOT +proto-google-maps-routing-v2:1.78.0:1.79.0-SNAPSHOT +grpc-google-maps-routing-v2:1.78.0:1.79.0-SNAPSHOT +google-cloud-vmwareengine:0.87.0:0.88.0-SNAPSHOT +proto-google-cloud-vmwareengine-v1:0.87.0:0.88.0-SNAPSHOT +grpc-google-cloud-vmwareengine-v1:0.87.0:0.88.0-SNAPSHOT +google-maps-addressvalidation:0.87.0:0.88.0-SNAPSHOT +proto-google-maps-addressvalidation-v1:0.87.0:0.88.0-SNAPSHOT +grpc-google-maps-addressvalidation-v1:0.87.0:0.88.0-SNAPSHOT +proto-google-cloud-bigquerydatapolicy-v1:0.90.0:0.91.0-SNAPSHOT +grpc-google-cloud-bigquerydatapolicy-v1:0.90.0:0.91.0-SNAPSHOT +google-cloud-monitoring-metricsscope:0.87.0:0.88.0-SNAPSHOT +proto-google-cloud-monitoring-metricsscope-v1:0.87.0:0.88.0-SNAPSHOT +grpc-google-cloud-monitoring-metricsscope-v1:0.87.0:0.88.0-SNAPSHOT +proto-google-cloud-tpu-v2:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-tpu-v2:2.94.0:2.95.0-SNAPSHOT +google-cloud-datalineage:0.85.0:0.86.0-SNAPSHOT +proto-google-cloud-datalineage-v1:0.85.0:0.86.0-SNAPSHOT +grpc-google-cloud-datalineage-v1:0.85.0:0.86.0-SNAPSHOT +google-iam-policy:1.90.0:1.91.0-SNAPSHOT +proto-google-cloud-build-v2:3.95.0:3.96.0-SNAPSHOT +grpc-google-cloud-build-v2:3.95.0:3.96.0-SNAPSHOT +google-cloud-advisorynotifications:0.82.0:0.83.0-SNAPSHOT +proto-google-cloud-advisorynotifications-v1:0.82.0:0.83.0-SNAPSHOT +grpc-google-cloud-advisorynotifications-v1:0.82.0:0.83.0-SNAPSHOT +google-maps-mapsplatformdatasets:0.82.0:0.83.0-SNAPSHOT +google-cloud-kmsinventory:0.82.0:0.83.0-SNAPSHOT +proto-google-cloud-kmsinventory-v1:0.82.0:0.83.0-SNAPSHOT +grpc-google-cloud-kmsinventory-v1:0.82.0:0.83.0-SNAPSHOT +google-cloud-alloydb:0.82.0:0.83.0-SNAPSHOT +proto-google-cloud-alloydb-v1:0.82.0:0.83.0-SNAPSHOT +proto-google-cloud-alloydb-v1beta:0.82.0:0.83.0-SNAPSHOT +proto-google-cloud-alloydb-v1alpha:0.82.0:0.83.0-SNAPSHOT +grpc-google-cloud-alloydb-v1beta:0.82.0:0.83.0-SNAPSHOT +grpc-google-cloud-alloydb-v1:0.82.0:0.83.0-SNAPSHOT +grpc-google-cloud-alloydb-v1alpha:0.82.0:0.83.0-SNAPSHOT +google-cloud-biglake:0.81.1:0.82.0-SNAPSHOT +proto-google-cloud-biglake-v1alpha1:0.81.1:0.82.0-SNAPSHOT +grpc-google-cloud-biglake-v1alpha1:0.81.1:0.82.0-SNAPSHOT +google-cloud-workstations:0.81.0:0.82.0-SNAPSHOT +proto-google-cloud-workstations-v1beta:0.81.0:0.82.0-SNAPSHOT +grpc-google-cloud-workstations-v1beta:0.81.0:0.82.0-SNAPSHOT +google-cloud-confidentialcomputing:0.79.0:0.80.0-SNAPSHOT +proto-google-cloud-confidentialcomputing-v1:0.79.0:0.80.0-SNAPSHOT +proto-google-cloud-confidentialcomputing-v1alpha1:0.79.0:0.80.0-SNAPSHOT +grpc-google-cloud-confidentialcomputing-v1:0.79.0:0.80.0-SNAPSHOT +grpc-google-cloud-confidentialcomputing-v1alpha1:0.79.0:0.80.0-SNAPSHOT +proto-google-cloud-workstations-v1:0.81.0:0.82.0-SNAPSHOT +grpc-google-cloud-workstations-v1:0.81.0:0.82.0-SNAPSHOT +proto-google-cloud-biglake-v1:0.81.1:0.82.0-SNAPSHOT +grpc-google-cloud-biglake-v1:0.81.1:0.82.0-SNAPSHOT +google-cloud-storageinsights:0.78.0:0.79.0-SNAPSHOT +proto-google-cloud-storageinsights-v1:0.78.0:0.79.0-SNAPSHOT +grpc-google-cloud-storageinsights-v1:0.78.0:0.79.0-SNAPSHOT +google-cloud-cloudsupport:0.77.0:0.78.0-SNAPSHOT +proto-google-cloud-cloudsupport-v2:0.77.0:0.78.0-SNAPSHOT +grpc-google-cloud-cloudsupport-v2:0.77.0:0.78.0-SNAPSHOT +google-cloud-rapidmigrationassessment:0.76.0:0.77.0-SNAPSHOT +proto-google-cloud-rapidmigrationassessment-v1:0.76.0:0.77.0-SNAPSHOT +grpc-google-cloud-rapidmigrationassessment-v1:0.76.0:0.77.0-SNAPSHOT +proto-google-maps-mapsplatformdatasets-v1:0.82.0:0.83.0-SNAPSHOT +grpc-google-maps-mapsplatformdatasets-v1:0.82.0:0.83.0-SNAPSHOT +google-shopping-merchant-accounts:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-accounts-v1beta:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-accounts-v1beta:1.21.0:1.22.0-SNAPSHOT +proto-google-cloud-discoveryengine-v1:0.89.0:0.90.0-SNAPSHOT +grpc-google-cloud-discoveryengine-v1:0.89.0:0.90.0-SNAPSHOT +google-cloud-migrationcenter:0.75.0:0.76.0-SNAPSHOT +proto-google-cloud-migrationcenter-v1:0.75.0:0.76.0-SNAPSHOT +grpc-google-cloud-migrationcenter-v1:0.75.0:0.76.0-SNAPSHOT +google-cloud-policysimulator:0.72.0:0.73.0-SNAPSHOT +proto-google-cloud-policysimulator-v1:0.72.0:0.73.0-SNAPSHOT +grpc-google-cloud-policysimulator-v1:0.72.0:0.73.0-SNAPSHOT +google-cloud-netapp:0.72.0:0.73.0-SNAPSHOT +proto-google-cloud-netapp-v1beta1:0.72.0:0.73.0-SNAPSHOT +grpc-google-cloud-netapp-v1beta1:0.72.0:0.73.0-SNAPSHOT +proto-google-cloud-netapp-v1:0.72.0:0.73.0-SNAPSHOT +grpc-google-cloud-netapp-v1:0.72.0:0.73.0-SNAPSHOT +proto-google-cloud-cloudcommerceconsumerprocurement-v1:0.91.0:0.92.0-SNAPSHOT +grpc-google-cloud-cloudcommerceconsumerprocurement-v1:0.91.0:0.92.0-SNAPSHOT +google-cloud-java-alloydb-connectors:0.71.0:0.72.0-SNAPSHOT +proto-google-cloud-java-alloydb-connectors-v1alpha:0.71.0:0.72.0-SNAPSHOT +google-cloud-alloydb-connectors:0.71.0:0.72.0-SNAPSHOT +proto-google-cloud-alloydb-connectors-v1alpha:0.71.0:0.72.0-SNAPSHOT +proto-google-cloud-language-v2:2.94.0:2.95.0-SNAPSHOT +grpc-google-cloud-language-v2:2.94.0:2.95.0-SNAPSHOT +google-cloud-infra-manager:0.70.0:0.71.0-SNAPSHOT +proto-google-cloud-infra-manager-v1:0.70.0:0.71.0-SNAPSHOT +grpc-google-cloud-infra-manager-v1:0.70.0:0.71.0-SNAPSHOT +proto-google-cloud-notebooks-v2:1.91.0:1.92.0-SNAPSHOT +grpc-google-cloud-notebooks-v2:1.91.0:1.92.0-SNAPSHOT +proto-google-cloud-alloydb-connectors-v1beta:0.71.0:0.72.0-SNAPSHOT +google-shopping-merchant-inventories:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-inventories-v1beta:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-inventories-v1beta:1.21.0:1.22.0-SNAPSHOT +proto-google-cloud-policy-troubleshooter-v3:1.92.0:1.93.0-SNAPSHOT +grpc-google-cloud-policy-troubleshooter-v3:1.92.0:1.93.0-SNAPSHOT +google-shopping-merchant-reports:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-reports-v1beta:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-reports-v1beta:1.21.0:1.22.0-SNAPSHOT +proto-google-cloud-alloydb-connectors-v1:0.71.0:0.72.0-SNAPSHOT +proto-google-cloud-discoveryengine-v1alpha:0.89.0:0.90.0-SNAPSHOT +grpc-google-cloud-discoveryengine-v1alpha:0.89.0:0.90.0-SNAPSHOT +google-cloud-redis-cluster:0.65.0:0.66.0-SNAPSHOT +proto-google-cloud-redis-cluster-v1beta1:0.65.0:0.66.0-SNAPSHOT +proto-google-cloud-redis-cluster-v1:0.65.0:0.66.0-SNAPSHOT +grpc-google-cloud-redis-cluster-v1:0.65.0:0.66.0-SNAPSHOT +grpc-google-cloud-redis-cluster-v1beta1:0.65.0:0.66.0-SNAPSHOT +google-maps-places:0.64.0:0.65.0-SNAPSHOT +proto-google-maps-places-v1:0.64.0:0.65.0-SNAPSHOT +grpc-google-maps-places-v1:0.64.0:0.65.0-SNAPSHOT +google-cloud-telcoautomation:0.63.0:0.64.0-SNAPSHOT +proto-google-cloud-telcoautomation-v1:0.63.0:0.64.0-SNAPSHOT +proto-google-cloud-telcoautomation-v1alpha1:0.63.0:0.64.0-SNAPSHOT +grpc-google-cloud-telcoautomation-v1:0.63.0:0.64.0-SNAPSHOT +grpc-google-cloud-telcoautomation-v1alpha1:0.63.0:0.64.0-SNAPSHOT +google-cloud-securesourcemanager:0.63.0:0.64.0-SNAPSHOT +proto-google-cloud-securesourcemanager-v1:0.63.0:0.64.0-SNAPSHOT +grpc-google-cloud-securesourcemanager-v1:0.63.0:0.64.0-SNAPSHOT +google-cloud-edgenetwork:0.61.0:0.62.0-SNAPSHOT +proto-google-cloud-edgenetwork-v1:0.61.0:0.62.0-SNAPSHOT +grpc-google-cloud-edgenetwork-v1:0.61.0:0.62.0-SNAPSHOT +google-cloud-cloudquotas:0.61.0:0.62.0-SNAPSHOT +proto-google-cloud-cloudquotas-v1:0.61.0:0.62.0-SNAPSHOT +grpc-google-cloud-cloudquotas-v1:0.61.0:0.62.0-SNAPSHOT +google-cloud-securitycentermanagement:0.61.0:0.62.0-SNAPSHOT +proto-google-cloud-securitycentermanagement-v1:0.61.0:0.62.0-SNAPSHOT +grpc-google-cloud-securitycentermanagement-v1:0.61.0:0.62.0-SNAPSHOT +google-shopping-css:0.61.0:0.62.0-SNAPSHOT +proto-google-shopping-css-v1:0.61.0:0.62.0-SNAPSHOT +grpc-google-shopping-css-v1:0.61.0:0.62.0-SNAPSHOT +google-cloud-meet:0.60.0:0.61.0-SNAPSHOT +proto-google-cloud-meet-v2beta:0.60.0:0.61.0-SNAPSHOT +grpc-google-cloud-meet-v2beta:0.60.0:0.61.0-SNAPSHOT +google-cloud-servicehealth:0.60.0:0.61.0-SNAPSHOT +proto-google-cloud-servicehealth-v1:0.60.0:0.61.0-SNAPSHOT +grpc-google-cloud-servicehealth-v1:0.60.0:0.61.0-SNAPSHOT +proto-google-cloud-meet-v2:0.60.0:0.61.0-SNAPSHOT +grpc-google-cloud-meet-v2:0.60.0:0.61.0-SNAPSHOT +google-cloud-securityposture:0.58.0:0.59.0-SNAPSHOT +proto-google-cloud-securityposture-v1:0.58.0:0.59.0-SNAPSHOT +grpc-google-cloud-securityposture-v1:0.58.0:0.59.0-SNAPSHOT +proto-google-cloud-securitycenter-v2:2.101.0:2.102.0-SNAPSHOT +grpc-google-cloud-securitycenter-v2:2.101.0:2.102.0-SNAPSHOT +google-cloud-cloudcontrolspartner:0.57.0:0.58.0-SNAPSHOT +proto-google-cloud-cloudcontrolspartner-v1beta:0.57.0:0.58.0-SNAPSHOT +proto-google-cloud-cloudcontrolspartner-v1:0.57.0:0.58.0-SNAPSHOT +grpc-google-cloud-cloudcontrolspartner-v1:0.57.0:0.58.0-SNAPSHOT +grpc-google-cloud-cloudcontrolspartner-v1beta:0.57.0:0.58.0-SNAPSHOT +google-cloud-workspaceevents:0.57.0:0.58.0-SNAPSHOT +proto-google-cloud-workspaceevents-v1:0.57.0:0.58.0-SNAPSHOT +grpc-google-cloud-workspaceevents-v1:0.57.0:0.58.0-SNAPSHOT +google-cloud-apphub:0.57.0:0.58.0-SNAPSHOT +proto-google-cloud-apphub-v1:0.57.0:0.58.0-SNAPSHOT +grpc-google-cloud-apphub-v1:0.57.0:0.58.0-SNAPSHOT +google-cloud-chat:0.57.0:0.58.0-SNAPSHOT +proto-google-cloud-chat-v1:0.57.0:0.58.0-SNAPSHOT +grpc-google-cloud-chat-v1:0.57.0:0.58.0-SNAPSHOT +google-shopping-merchant-quota:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-quota-v1beta:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-quota-v1beta:1.21.0:1.22.0-SNAPSHOT +proto-google-cloud-secretmanager-v1beta2:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-secretmanager-v1beta2:2.93.0:2.94.0-SNAPSHOT +google-cloud-parallelstore:0.56.0:0.57.0-SNAPSHOT +proto-google-cloud-parallelstore-v1beta:0.56.0:0.57.0-SNAPSHOT +grpc-google-cloud-parallelstore-v1beta:0.56.0:0.57.0-SNAPSHOT +google-cloud-backupdr:0.52.0:0.53.0-SNAPSHOT +proto-google-cloud-backupdr-v1:0.52.0:0.53.0-SNAPSHOT +grpc-google-cloud-backupdr-v1:0.52.0:0.53.0-SNAPSHOT +google-maps-solar:0.52.0:0.53.0-SNAPSHOT +proto-google-maps-solar-v1:0.52.0:0.53.0-SNAPSHOT +grpc-google-maps-solar-v1:0.52.0:0.53.0-SNAPSHOT +google-shopping-merchant-datasources:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-datasources-v1beta:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-datasources-v1beta:1.21.0:1.22.0-SNAPSHOT +google-shopping-merchant-conversions:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-conversions-v1beta:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-conversions-v1beta:1.21.0:1.22.0-SNAPSHOT +google-shopping-merchant-lfp:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-lfp-v1beta:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-lfp-v1beta:1.21.0:1.22.0-SNAPSHOT +google-shopping-merchant-notifications:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-notifications-v1beta:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-notifications-v1beta:1.21.0:1.22.0-SNAPSHOT +ad-manager:0.52.0:0.53.0-SNAPSHOT +proto-ad-manager-v1:0.52.0:0.53.0-SNAPSHOT +google-maps-routeoptimization:0.51.0:0.52.0-SNAPSHOT +proto-google-maps-routeoptimization-v1:0.51.0:0.52.0-SNAPSHOT +grpc-google-maps-routeoptimization-v1:0.51.0:0.52.0-SNAPSHOT +proto-google-cloud-publicca-v1:0.90.0:0.91.0-SNAPSHOT +grpc-google-cloud-publicca-v1:0.90.0:0.91.0-SNAPSHOT +google-cloud-visionai:0.50.0:0.51.0-SNAPSHOT +proto-google-cloud-visionai-v1:0.50.0:0.51.0-SNAPSHOT +grpc-google-cloud-visionai-v1:0.50.0:0.51.0-SNAPSHOT +google-cloud-developerconnect:0.50.0:0.51.0-SNAPSHOT +proto-google-cloud-developerconnect-v1:0.50.0:0.51.0-SNAPSHOT +grpc-google-cloud-developerconnect-v1:0.50.0:0.51.0-SNAPSHOT +google-cloud-iap:0.49.0:0.50.0-SNAPSHOT +proto-google-cloud-iap-v1:0.49.0:0.50.0-SNAPSHOT +grpc-google-cloud-iap-v1:0.49.0:0.50.0-SNAPSHOT +google-cloud-managedkafka:0.49.0:0.50.0-SNAPSHOT +proto-google-cloud-managedkafka-v1:0.49.0:0.50.0-SNAPSHOT +grpc-google-cloud-managedkafka-v1:0.49.0:0.50.0-SNAPSHOT +google-cloud-networkservices:0.49.0:0.50.0-SNAPSHOT +proto-google-cloud-networkservices-v1:0.49.0:0.50.0-SNAPSHOT +grpc-google-cloud-networkservices-v1:0.49.0:0.50.0-SNAPSHOT +google-shopping-merchant-products:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-products-v1beta:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-products-v1beta:1.21.0:1.22.0-SNAPSHOT +google-cloud-gdchardwaremanagement:0.48.0:0.49.0-SNAPSHOT +proto-google-cloud-gdchardwaremanagement-v1alpha:0.48.0:0.49.0-SNAPSHOT +grpc-google-cloud-gdchardwaremanagement-v1alpha:0.48.0:0.49.0-SNAPSHOT +google-cloud-privilegedaccessmanager:0.47.0:0.48.0-SNAPSHOT +proto-google-cloud-privilegedaccessmanager-v1:0.47.0:0.48.0-SNAPSHOT +grpc-google-cloud-privilegedaccessmanager-v1:0.47.0:0.48.0-SNAPSHOT +google-cloud-apihub:0.46.0:0.47.0-SNAPSHOT +proto-google-cloud-apihub-v1:0.46.0:0.47.0-SNAPSHOT +grpc-google-cloud-apihub-v1:0.46.0:0.47.0-SNAPSHOT +google-cloud-connectgateway:0.45.0:0.46.0-SNAPSHOT +proto-google-cloud-connectgateway-v1:0.45.0:0.46.0-SNAPSHOT +google-maps-area-insights:0.44.0:0.45.0-SNAPSHOT +proto-google-maps-area-insights-v1:0.44.0:0.45.0-SNAPSHOT +grpc-google-maps-area-insights-v1:0.44.0:0.45.0-SNAPSHOT +admin:0.42.0:0.43.0-SNAPSHOT +proto-admin-v1alpha:0.42.0:0.43.0-SNAPSHOT +grpc-admin-v1alpha:0.42.0:0.43.0-SNAPSHOT +google-cloud-oracledatabase:0.42.0:0.43.0-SNAPSHOT +proto-google-cloud-oracledatabase-v1:0.42.0:0.43.0-SNAPSHOT +proto-google-cloud-parallelstore-v1:0.56.0:0.57.0-SNAPSHOT +grpc-google-cloud-parallelstore-v1:0.56.0:0.57.0-SNAPSHOT +google-maps-fleetengine:0.40.0:0.41.0-SNAPSHOT +proto-google-maps-fleetengine-v1:0.40.0:0.41.0-SNAPSHOT +grpc-google-maps-fleetengine-v1:0.40.0:0.41.0-SNAPSHOT +google-maps-fleetengine-delivery:0.40.0:0.41.0-SNAPSHOT +proto-google-maps-fleetengine-delivery-v1:0.40.0:0.41.0-SNAPSHOT +grpc-google-maps-fleetengine-delivery-v1:0.40.0:0.41.0-SNAPSHOT +google-shopping-merchant-reviews:0.39.0:0.40.0-SNAPSHOT +proto-google-shopping-merchant-reviews-v1beta:0.39.0:0.40.0-SNAPSHOT +grpc-google-shopping-merchant-reviews-v1beta:0.39.0:0.40.0-SNAPSHOT +google-cloud-valkey:0.39.0:0.40.0-SNAPSHOT +proto-google-cloud-valkey-v1:0.39.0:0.40.0-SNAPSHOT +proto-google-cloud-valkey-v1beta:0.39.0:0.40.0-SNAPSHOT +proto-google-cloud-cloudquotas-v1beta:0.61.0:0.62.0-SNAPSHOT +grpc-google-cloud-cloudquotas-v1beta:0.61.0:0.62.0-SNAPSHOT +proto-google-cloud-secretmanager-v1beta1:2.93.0:2.94.0-SNAPSHOT +grpc-google-cloud-secretmanager-v1beta1:2.93.0:2.94.0-SNAPSHOT +google-cloud-parametermanager:0.37.0:0.38.0-SNAPSHOT +proto-google-cloud-parametermanager-v1:0.37.0:0.38.0-SNAPSHOT +grpc-google-cloud-parametermanager-v1:0.37.0:0.38.0-SNAPSHOT +google-cloud-modelarmor:0.34.0:0.35.0-SNAPSHOT +proto-google-cloud-modelarmor-v1:0.34.0:0.35.0-SNAPSHOT +grpc-google-cloud-modelarmor-v1:0.34.0:0.35.0-SNAPSHOT +google-cloud-financialservices:0.34.0:0.35.0-SNAPSHOT +proto-google-cloud-financialservices-v1:0.34.0:0.35.0-SNAPSHOT +grpc-google-cloud-financialservices-v1:0.34.0:0.35.0-SNAPSHOT +google-cloud-devicestreaming:0.33.0:0.34.0-SNAPSHOT +proto-google-cloud-devicestreaming-v1:0.33.0:0.34.0-SNAPSHOT +grpc-google-cloud-devicestreaming-v1:0.33.0:0.34.0-SNAPSHOT +google-shopping-merchant-productstudio:0.33.0:0.34.0-SNAPSHOT +proto-google-shopping-merchant-productstudio-v1alpha:0.33.0:0.34.0-SNAPSHOT +grpc-google-shopping-merchant-productstudio-v1alpha:0.33.0:0.34.0-SNAPSHOT +google-cloud-storagebatchoperations:0.33.0:0.34.0-SNAPSHOT +proto-google-cloud-storagebatchoperations-v1:0.33.0:0.34.0-SNAPSHOT +grpc-google-cloud-storagebatchoperations-v1:0.33.0:0.34.0-SNAPSHOT +google-shopping-merchant-issue-resolution:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-issue-resolution-v1beta:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-issue-resolution-v1beta:1.21.0:1.22.0-SNAPSHOT +google-cloud-lustre:0.33.0:0.34.0-SNAPSHOT +proto-google-cloud-lustre-v1:0.33.0:0.34.0-SNAPSHOT +grpc-google-cloud-lustre-v1:0.33.0:0.34.0-SNAPSHOT +google-shopping-merchant-order-tracking:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-order-tracking-v1beta:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-order-tracking-v1beta:1.21.0:1.22.0-SNAPSHOT +grpc-google-cloud-oracledatabase-v1:0.42.0:0.43.0-SNAPSHOT +google-cloud-chronicle:0.31.0:0.32.0-SNAPSHOT +proto-google-cloud-chronicle-v1:0.31.0:0.32.0-SNAPSHOT +grpc-google-cloud-chronicle-v1:0.31.0:0.32.0-SNAPSHOT +proto-google-cloud-cloudsupport-v2beta:0.77.0:0.78.0-SNAPSHOT +grpc-google-cloud-cloudsupport-v2beta:0.77.0:0.78.0-SNAPSHOT +proto-google-cloud-modelarmor-v1beta:0.34.0:0.35.0-SNAPSHOT +grpc-google-cloud-modelarmor-v1beta:0.34.0:0.35.0-SNAPSHOT +proto-google-cloud-dataform-v1:0.92.0:0.93.0-SNAPSHOT +grpc-google-cloud-dataform-v1:0.92.0:0.93.0-SNAPSHOT +google-cloud-spanneradapter:0.29.0:0.30.0-SNAPSHOT +proto-google-cloud-spanneradapter-v1:0.29.0:0.30.0-SNAPSHOT +grpc-google-cloud-spanneradapter-v1:0.29.0:0.30.0-SNAPSHOT +proto-google-cloud-workspaceevents-v1beta:0.57.0:0.58.0-SNAPSHOT +grpc-google-cloud-workspaceevents-v1beta:0.57.0:0.58.0-SNAPSHOT +google-cloud-maintenance:0.27.0:0.28.0-SNAPSHOT +proto-google-cloud-maintenance-v1beta:0.27.0:0.28.0-SNAPSHOT +grpc-google-cloud-maintenance-v1beta:0.27.0:0.28.0-SNAPSHOT +google-cloud-configdelivery:0.27.0:0.28.0-SNAPSHOT +proto-google-cloud-configdelivery-v1beta:0.27.0:0.28.0-SNAPSHOT +grpc-google-cloud-configdelivery-v1beta:0.27.0:0.28.0-SNAPSHOT +proto-google-cloud-bigquerydatapolicy-v2beta1:0.90.0:0.91.0-SNAPSHOT +grpc-google-cloud-bigquerydatapolicy-v2beta1:0.90.0:0.91.0-SNAPSHOT +google-cloud-licensemanager:0.26.0:0.27.0-SNAPSHOT +proto-google-cloud-licensemanager-v1:0.26.0:0.27.0-SNAPSHOT +grpc-google-cloud-licensemanager-v1:0.26.0:0.27.0-SNAPSHOT +proto-google-shopping-merchant-reports-v1alpha:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-reports-v1alpha:1.21.0:1.22.0-SNAPSHOT +proto-google-cloud-bigquerydatapolicy-v2:0.90.0:0.91.0-SNAPSHOT +grpc-google-cloud-bigquerydatapolicy-v2:0.90.0:0.91.0-SNAPSHOT +proto-google-cloud-configdelivery-v1:0.27.0:0.28.0-SNAPSHOT +grpc-google-cloud-configdelivery-v1:0.27.0:0.28.0-SNAPSHOT +proto-google-shopping-merchant-datasources-v1:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-datasources-v1:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-inventories-v1:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-inventories-v1:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-conversions-v1:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-conversions-v1:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-issue-resolution-v1:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-issue-resolution-v1:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-order-tracking-v1:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-order-tracking-v1:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-accounts-v1:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-accounts-v1:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-lfp-v1:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-lfp-v1:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-products-v1:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-products-v1:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-promotions-v1:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-promotions-v1:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-quota-v1:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-quota-v1:1.21.0:1.22.0-SNAPSHOT +proto-google-shopping-merchant-reports-v1:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-reports-v1:1.21.0:1.22.0-SNAPSHOT +google-cloud-saasservicemgmt:0.23.0:0.24.0-SNAPSHOT +proto-google-cloud-saasservicemgmt-v1beta1:0.23.0:0.24.0-SNAPSHOT +grpc-google-cloud-saasservicemgmt-v1beta1:0.23.0:0.24.0-SNAPSHOT +proto-google-shopping-merchant-notifications-v1:1.21.0:1.22.0-SNAPSHOT +grpc-google-shopping-merchant-notifications-v1:1.21.0:1.22.0-SNAPSHOT +google-cloud-geminidataanalytics:0.21.0:0.22.0-SNAPSHOT +proto-google-cloud-geminidataanalytics-v1beta:0.21.0:0.22.0-SNAPSHOT +grpc-google-cloud-geminidataanalytics-v1beta:0.21.0:0.22.0-SNAPSHOT +google-cloud-cloudsecuritycompliance:0.20.0:0.21.0-SNAPSHOT +proto-google-cloud-cloudsecuritycompliance-v1:0.20.0:0.21.0-SNAPSHOT +grpc-google-cloud-cloudsecuritycompliance-v1:0.20.0:0.21.0-SNAPSHOT +google-cloud-locationfinder:0.18.0:0.19.0-SNAPSHOT +proto-google-cloud-locationfinder-v1:0.18.0:0.19.0-SNAPSHOT +grpc-google-cloud-locationfinder-v1:0.18.0:0.19.0-SNAPSHOT +google-cloud-capacityplanner:0.16.0:0.17.0-SNAPSHOT +proto-google-cloud-capacityplanner-v1beta:0.16.0:0.17.0-SNAPSHOT +grpc-google-cloud-capacityplanner-v1beta:0.16.0:0.17.0-SNAPSHOT +data-manager:0.14.0:0.15.0-SNAPSHOT +proto-data-manager-v1:0.14.0:0.15.0-SNAPSHOT +grpc-data-manager-v1:0.14.0:0.15.0-SNAPSHOT +google-cloud-vectorsearch:0.15.0:0.16.0-SNAPSHOT +proto-google-cloud-vectorsearch-v1beta:0.15.0:0.16.0-SNAPSHOT +grpc-google-cloud-vectorsearch-v1beta:0.15.0:0.16.0-SNAPSHOT +google-cloud-databasecenter:0.14.0:0.15.0-SNAPSHOT +proto-google-cloud-databasecenter-v1beta:0.14.0:0.15.0-SNAPSHOT +grpc-google-cloud-databasecenter-v1beta:0.14.0:0.15.0-SNAPSHOT +google-cloud-hypercomputecluster:0.13.0:0.14.0-SNAPSHOT +proto-google-cloud-hypercomputecluster-v1beta:0.13.0:0.14.0-SNAPSHOT +grpc-google-cloud-hypercomputecluster-v1beta:0.13.0:0.14.0-SNAPSHOT +proto-google-cloud-maintenance-v1:0.27.0:0.28.0-SNAPSHOT +grpc-google-cloud-maintenance-v1:0.27.0:0.28.0-SNAPSHOT +google-cloud-gkerecommender:0.13.0:0.14.0-SNAPSHOT +proto-google-cloud-gkerecommender-v1:0.13.0:0.14.0-SNAPSHOT +grpc-google-cloud-gkerecommender-v1:0.13.0:0.14.0-SNAPSHOT +google-cloud-cloudapiregistry:0.12.0:0.13.0-SNAPSHOT +proto-google-cloud-cloudapiregistry-v1beta:0.12.0:0.13.0-SNAPSHOT +grpc-google-cloud-cloudapiregistry-v1beta:0.12.0:0.13.0-SNAPSHOT +google-cloud-auditmanager:0.11.0:0.12.0-SNAPSHOT +proto-google-cloud-auditmanager-v1:0.11.0:0.12.0-SNAPSHOT +grpc-google-cloud-auditmanager-v1:0.11.0:0.12.0-SNAPSHOT +proto-google-cloud-cloudapiregistry-v1:0.12.0:0.13.0-SNAPSHOT +grpc-google-cloud-cloudapiregistry-v1:0.12.0:0.13.0-SNAPSHOT +google-cloud-logging:3.34.0:3.35.0-SNAPSHOT +grpc-google-cloud-logging-v2:3.34.0:3.35.0-SNAPSHOT +proto-google-cloud-logging-v2:3.34.0:3.35.0-SNAPSHOT +google-cloud-workloadmanager:0.9.0:0.10.0-SNAPSHOT +proto-google-cloud-workloadmanager-v1:0.9.0:0.10.0-SNAPSHOT +grpc-google-cloud-workloadmanager-v1:0.9.0:0.10.0-SNAPSHOT +google-cloud-ces:0.9.0:0.10.0-SNAPSHOT +proto-google-cloud-ces-v1:0.9.0:0.10.0-SNAPSHOT +grpc-google-cloud-ces-v1:0.9.0:0.10.0-SNAPSHOT +google-cloud-bigquerystorage:3.29.0:3.30.0-SNAPSHOT +grpc-google-cloud-bigquerystorage-v1beta1:3.29.0:3.30.0-SNAPSHOT +grpc-google-cloud-bigquerystorage-v1beta2:3.29.0:3.30.0-SNAPSHOT +grpc-google-cloud-bigquerystorage-v1:3.29.0:3.30.0-SNAPSHOT +proto-google-cloud-bigquerystorage-v1beta1:3.29.0:3.30.0-SNAPSHOT +proto-google-cloud-bigquerystorage-v1beta2:3.29.0:3.30.0-SNAPSHOT +proto-google-cloud-bigquerystorage-v1:3.29.0:3.30.0-SNAPSHOT +grpc-google-cloud-bigquerystorage-v1alpha:3.29.0:3.30.0-SNAPSHOT +proto-google-cloud-bigquerystorage-v1alpha:3.29.0:3.30.0-SNAPSHOT +proto-google-cloud-bigquerystorage-v1beta:3.29.0:3.30.0-SNAPSHOT +grpc-google-cloud-bigquerystorage-v1beta:3.29.0:3.30.0-SNAPSHOT +google-cloud-datastore:3.1.0:3.2.0-SNAPSHOT +google-cloud-datastore-bom:3.1.0:3.2.0-SNAPSHOT +proto-google-cloud-datastore-v1:3.1.0:3.2.0-SNAPSHOT +datastore-v1-proto-client:3.1.0:3.2.0-SNAPSHOT +proto-google-cloud-datastore-admin-v1:3.1.0:3.2.0-SNAPSHOT +grpc-google-cloud-datastore-admin-v1:3.1.0:3.2.0-SNAPSHOT +grpc-google-cloud-datastore-v1:3.1.0:3.2.0-SNAPSHOT +google-cloud-logging-logback:0.142.0-alpha:0.143.0-alpha-SNAPSHOT +proto-google-cloud-ces-v1beta:0.9.0:0.10.0-SNAPSHOT +grpc-google-cloud-ces-v1beta:0.9.0:0.10.0-SNAPSHOT +proto-google-cloud-vectorsearch-v1:0.15.0:0.16.0-SNAPSHOT +grpc-google-cloud-vectorsearch-v1:0.15.0:0.16.0-SNAPSHOT +google-cloud-bigquery:2.67.0:2.68.0-SNAPSHOT +google-cloud-bigquery-jdbc:1.0.0:1.1.0-SNAPSHOT +proto-google-cloud-networkconnectivity-v1beta:1.92.0:1.93.0-SNAPSHOT +grpc-google-cloud-networkconnectivity-v1beta:1.92.0:1.93.0-SNAPSHOT +proto-google-cloud-hypercomputecluster-v1:0.13.0:0.14.0-SNAPSHOT +grpc-google-cloud-hypercomputecluster-v1:0.13.0:0.14.0-SNAPSHOT +proto-google-cloud-biglake-v1beta:0.81.1:0.82.0-SNAPSHOT +grpc-google-cloud-biglake-v1beta:0.81.1:0.82.0-SNAPSHOT +gapic-generator-java:2.73.0:2.74.0-SNAPSHOT +api-common:2.64.0:2.65.0-SNAPSHOT +gax:2.81.0:2.82.0-SNAPSHOT +gax-grpc:2.81.0:2.82.0-SNAPSHOT +proto-google-common-protos:2.72.0:2.73.0-SNAPSHOT +grpc-google-common-protos:2.72.0:2.73.0-SNAPSHOT +proto-google-iam-v1:1.67.0:1.68.0-SNAPSHOT +grpc-google-iam-v1:1.67.0:1.68.0-SNAPSHOT +proto-google-iam-v2beta:1.67.0:1.68.0-SNAPSHOT +grpc-google-iam-v2beta:1.67.0:1.68.0-SNAPSHOT +proto-google-iam-v2:1.67.0:1.68.0-SNAPSHOT +grpc-google-iam-v2:1.67.0:1.68.0-SNAPSHOT +google-cloud-core:2.71.0:2.72.0-SNAPSHOT +google-cloud-shared-dependencies:3.63.0:3.64.0-SNAPSHOT +proto-google-iam-v3:1.67.0:1.68.0-SNAPSHOT +grpc-google-iam-v3:1.67.0:1.68.0-SNAPSHOT +proto-google-iam-v3beta:1.67.0:1.68.0-SNAPSHOT +grpc-google-iam-v3beta:1.67.0:1.68.0-SNAPSHOT +proto-google-cloud-spanner-admin-instance-v1:6.118.0:6.119.0-SNAPSHOT +proto-google-cloud-spanner-v1:6.118.0:6.119.0-SNAPSHOT +proto-google-cloud-spanner-admin-database-v1:6.118.0:6.119.0-SNAPSHOT +grpc-google-cloud-spanner-v1:6.118.0:6.119.0-SNAPSHOT +grpc-google-cloud-spanner-admin-instance-v1:6.118.0:6.119.0-SNAPSHOT +grpc-google-cloud-spanner-admin-database-v1:6.118.0:6.119.0-SNAPSHOT +google-cloud-spanner:6.118.0:6.119.0-SNAPSHOT +grpc-gcp:1.11.0:1.12.0-SNAPSHOT +google-cloud-spanner-executor:6.118.0:6.119.0-SNAPSHOT +proto-google-cloud-spanner-executor-v1:6.118.0:6.119.0-SNAPSHOT +grpc-google-cloud-spanner-executor-v1:6.118.0:6.119.0-SNAPSHOT +google-cloud-spanner-jdbc:2.40.0:2.41.0-SNAPSHOT +google-auth-library:1.48.0:1.49.0-SNAPSHOT +google-auth-library-bom:1.48.0:1.49.0-SNAPSHOT +google-auth-library-parent:1.48.0:1.49.0-SNAPSHOT +google-auth-library-appengine:1.48.0:1.49.0-SNAPSHOT +google-auth-library-credentials:1.48.0:1.49.0-SNAPSHOT +google-auth-library-oauth2-http:1.48.0:1.49.0-SNAPSHOT +google-cloud-storage:2.69.0:2.70.0-SNAPSHOT +gapic-google-cloud-storage-v2:2.69.0:2.70.0-SNAPSHOT +grpc-google-cloud-storage-v2:2.69.0:2.70.0-SNAPSHOT +proto-google-cloud-storage-v2:2.69.0:2.70.0-SNAPSHOT +google-cloud-storage-control:2.69.0:2.70.0-SNAPSHOT +proto-google-cloud-storage-control-v2:2.69.0:2.70.0-SNAPSHOT +grpc-google-cloud-storage-control-v2:2.69.0:2.70.0-SNAPSHOT +google-maps-geocode:0.5.0:0.6.0-SNAPSHOT +proto-google-maps-geocode-v4:0.5.0:0.6.0-SNAPSHOT +grpc-google-maps-geocode-v4:0.5.0:0.6.0-SNAPSHOT +google-cloud-nio:0.133.0:0.134.0-SNAPSHOT +google-cloud-appoptimize:0.3.0:0.4.0-SNAPSHOT +proto-google-cloud-appoptimize-v1beta:0.3.0:0.4.0-SNAPSHOT +grpc-google-cloud-appoptimize-v1beta:0.3.0:0.4.0-SNAPSHOT +google-cloud-health:0.2.0:0.3.0-SNAPSHOT +proto-google-cloud-health-v4:0.2.0:0.3.0-SNAPSHOT +grpc-google-cloud-health-v4:0.2.0:0.3.0-SNAPSHOT +google-maps-mapmanagement:0.2.0:0.3.0-SNAPSHOT +proto-google-maps-mapmanagement-v2beta:0.2.0:0.3.0-SNAPSHOT +grpc-google-maps-mapmanagement-v2beta:0.2.0:0.3.0-SNAPSHOT +grpc-google-cloud-valkey-v1beta:0.39.0:0.40.0-SNAPSHOT +grpc-google-cloud-valkey-v1:0.39.0:0.40.0-SNAPSHOT +google-cloud-pubsub:1.151.0:1.152.0-SNAPSHOT +grpc-google-cloud-pubsub-v1:1.151.0:1.152.0-SNAPSHOT +proto-google-cloud-pubsub-v1:1.151.0:1.152.0-SNAPSHOT +google-cloud-bigtable:2.79.0:2.80.0-SNAPSHOT +grpc-google-cloud-bigtable-admin-v2:2.79.0:2.80.0-SNAPSHOT +grpc-google-cloud-bigtable-v2:2.79.0:2.80.0-SNAPSHOT +proto-google-cloud-bigtable-admin-v2:2.79.0:2.80.0-SNAPSHOT +proto-google-cloud-bigtable-v2:2.79.0:2.80.0-SNAPSHOT +google-cloud-bigtable-emulator:0.216.0:0.217.0-SNAPSHOT +google-cloud-bigtable-emulator-core:0.216.0:0.217.0-SNAPSHOT +google-cloud-firestore:3.43.1:3.44.0-SNAPSHOT +google-cloud-firestore-admin:3.43.1:3.44.0-SNAPSHOT +google-cloud-firestore-bom:3.43.1:3.44.0-SNAPSHOT +grpc-google-cloud-firestore-admin-v1:3.43.1:3.44.0-SNAPSHOT +grpc-google-cloud-firestore-v1:3.43.1:3.44.0-SNAPSHOT +proto-google-cloud-firestore-admin-v1:3.43.1:3.44.0-SNAPSHOT +proto-google-cloud-firestore-v1:3.43.1:3.44.0-SNAPSHOT +proto-google-cloud-firestore-bundle-v1:3.43.1:3.44.0-SNAPSHOT +proto-google-cloud-geminidataanalytics-v1:0.21.0:0.22.0-SNAPSHOT +grpc-google-cloud-geminidataanalytics-v1:0.21.0:0.22.0-SNAPSHOT +google-cloud-developer-knowledge:0.1.0:0.2.0-SNAPSHOT +proto-google-cloud-developer-knowledge-v1:0.1.0:0.2.0-SNAPSHOT +grpc-google-cloud-developer-knowledge-v1:0.1.0:0.2.0-SNAPSHOT +google-cloud-backstory:0.1.0:0.2.0-SNAPSHOT From cfc6ba7d7e1d1fa4a81a4f60d3fec8cc7c1dea1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Knut=20Olav=20L=C3=B8ite?= Date: Sun, 14 Jun 2026 06:59:15 +0200 Subject: [PATCH 03/82] chore(spanner): reuse CharsetEncoder in ChecksumResultSet (#13455) Reuse the CharsetEncoder in ChecksumResultSet to prevent the creation of a new encoder for each string that we encounter. --- .../google/cloud/spanner/connection/ChecksumResultSet.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ChecksumResultSet.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ChecksumResultSet.java index c2af543cc9b1..cc6d47b105ff 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ChecksumResultSet.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ChecksumResultSet.java @@ -212,6 +212,7 @@ private static final class ChecksumCalculator { private final MessageDigest digest; private ByteBuffer buffer; private ByteBuffer float64Buffer; + private CharsetEncoder encoder; ChecksumCalculator() { try { @@ -338,7 +339,11 @@ private void putString(String stringValue) { // creating a new copy of (a part of) the string. E.g. using something like substring(..) // would create a copy of that part of the string, using CharBuffer.wrap(..) does not. CharBuffer source = CharBuffer.wrap(stringValue); - CharsetEncoder encoder = StandardCharsets.UTF_8.newEncoder(); + if (encoder == null) { + encoder = StandardCharsets.UTF_8.newEncoder(); + } else { + encoder.reset(); + } // source.hasRemaining() returns false when all the characters in the string have been // processed. while (source.hasRemaining()) { From 051aea7468c0492104c52f06f5537d6238284965 Mon Sep 17 00:00:00 2001 From: Cameron Moberg Date: Sat, 13 Jun 2026 22:22:52 -0700 Subject: [PATCH 04/82] Fix edge cases with UTF-8 strings in ChecksumResultSet (#13441) 1. Ensure a minimum capacity of 4 bytes when allocating the buffer, this is the max size of a UTF-8 character. However, the java length representation is being used in this code for the byte buffer allocation, which may be too small for a single utf-8 character. 2. Use buffer.clear() instead of the second buffer.flip() . This resets the buffer's write limit back to its full capacity for the next iteration, instead of shrinking it to the size of the previous write. This is for mixed multi-byte utf-8 characters and single-byte characters. A test was added to show this passing, and it fails with `flip()` vs `clear()` Fixes #13440 --- .../spanner/connection/ChecksumResultSet.java | 7 ++-- .../connection/ChecksumResultSetTest.java | 38 +++++++++++++++++++ 2 files changed, 42 insertions(+), 3 deletions(-) diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ChecksumResultSet.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ChecksumResultSet.java index cc6d47b105ff..e34e8d31f13c 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ChecksumResultSet.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ChecksumResultSet.java @@ -330,7 +330,8 @@ private void putString(String stringValue) { if (buffer == null || (buffer.capacity() < MAX_BUFFER_SIZE && buffer.capacity() < length)) { // Create a ByteBuffer with a maximum buffer size. // This buffer is re-used for all string values in the result set. - buffer = ByteBuffer.allocate(Math.min(MAX_BUFFER_SIZE, length)); + // UTF-8 can require 4 bytes to represent, so we need at least that size buffer. + buffer = ByteBuffer.allocate(Math.max(4, Math.min(MAX_BUFFER_SIZE, length))); } else { buffer.clear(); } @@ -354,8 +355,8 @@ private void putString(String stringValue) { buffer.flip(); // Put the bytes from the buffer into the digest. digest.update(buffer); - // Flip the buffer again, so we can repeat and write to the start of the buffer again. - buffer.flip(); + // Clear the buffer, so we can repeat and write to the start of the buffer again. + buffer.clear(); } } } diff --git a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/ChecksumResultSetTest.java b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/ChecksumResultSetTest.java index 6201200ec076..f79e33962a9d 100644 --- a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/ChecksumResultSetTest.java +++ b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/ChecksumResultSetTest.java @@ -448,4 +448,42 @@ public void testRetry() { () -> resultSet.retry(abortedException)); } } + + @Test + public void testEmptyString() { + ChecksumResultSet resultSet = createStringValChecksumResultSet(""); + assertTrue(resultSet.next()); + } + + @Test + public void testSingleCharMultiByteString() { + ChecksumResultSet resultSet = createStringValChecksumResultSet("ä"); + assertTrue(resultSet.next()); + } + + @Test + public void testLongMixedUtf8String() { + ChecksumResultSet resultSet = createStringValChecksumResultSet("aaa\uD841\uDF0E"); + assertTrue(resultSet.next()); + } + + private ChecksumResultSet createStringValChecksumResultSet(String value) { + Type type = Type.struct(StructField.of("stringVal", Type.string())); + Struct row = Struct.newBuilder().set("stringVal").to(value).build(); + + ParsedStatement parsedStatement = mock(ParsedStatement.class); + Statement statement = Statement.of("select * from foo"); + when(parsedStatement.getStatement()).thenReturn(statement); + ReadWriteTransaction transaction = mock(ReadWriteTransaction.class); + when(transaction.runWithRetry(any(Callable.class))) + .thenAnswer(invocationOnMock -> ((Callable) invocationOnMock.getArgument(0)).call()); + when(transaction.getStatementExecutor()).thenReturn(mock(StatementExecutor.class)); + + ResultSet queryResult = ResultSets.forRows(type, ImmutableList.of(row)); + return new ChecksumResultSet( + transaction, + DirectExecuteResultSet.ofResultSet(queryResult), + parsedStatement, + AnalyzeMode.NONE); + } } From bb4d9e4eeec625ade86b22ef2d12ced2446bd0c9 Mon Sep 17 00:00:00 2001 From: Min Zhu Date: Mon, 15 Jun 2026 10:32:01 -0400 Subject: [PATCH 05/82] chore: manual fix released versions in librarian.yaml (#13463) Put in manual fix in librarian.yaml for released_version for firestore, biglake and errorreporting. This is a temporarily fix to unblock development in google-cloud-java, track remaining work in https://github.com/googleapis/librarian/issues/6419. Fixes https://github.com/googleapis/google-cloud-java/issues/13447 --- librarian.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/librarian.yaml b/librarian.yaml index 4e22496f99f1..2cd3eef0ce8f 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -510,6 +510,7 @@ libraries: - path: google/cloud/bigquery/biglake/v1alpha1 java: api_description_override: The BigLake API provides access to BigLake Metastore, a serverless, fully managed, and highly available metastore for open-source data that can be used for querying Apache Iceberg tables in BigQuery. + released_version: 0.81.1 name_pretty_override: BigLake product_documentation_override: https://cloud.google.com/biglake - name: bigquery-data-exchange @@ -1564,7 +1565,6 @@ libraries: name_pretty_override: Error Reporting product_documentation_override: https://cloud.google.com/error-reporting billing_not_required: true - released_version: 0.215.0-beta-SNAPSHOT - name: essential-contacts version: 2.94.0-SNAPSHOT apis: @@ -1674,6 +1674,7 @@ libraries: - google-cloud-firestore - google-cloud-firestore-bom issue_tracker_override: https://issuetracker.google.com/savedsearches/5337669 + released_version: 3.43.1 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Firestore product_documentation_override: https://cloud.google.com/firestore From 29543a23d7f80d908fc019fa39f612d5eba83b10 Mon Sep 17 00:00:00 2001 From: Will Howes Date: Mon, 15 Jun 2026 15:41:21 +0000 Subject: [PATCH 06/82] feat: use self-signed JWTs in Spanner MutableCredentials (#13381) See https://google.aip.dev/auth/4111 - this should improve efficiency/reliability by avoiding OAuth token exchange Related #13338 will enable self-signed JWTs in [SpannerOptions](https://github.com/googleapis/google-cloud-java/blob/main/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerOptions.java) --- .../java/com/google/cloud/spanner/MutableCredentials.java | 8 ++++++-- .../com/google/cloud/spanner/MutableCredentialsTest.java | 6 ++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/MutableCredentials.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/MutableCredentials.java index 9d09b9fe2686..4b08ef5cc427 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/MutableCredentials.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/MutableCredentials.java @@ -58,7 +58,9 @@ public MutableCredentials( throw new IllegalArgumentException("Scopes must not be empty"); } this.scopes = new java.util.HashSet<>(scopes); - delegate = (ServiceAccountCredentials) credentials.createScoped(this.scopes); + delegate = + ((ServiceAccountCredentials) credentials.createScoped(this.scopes)) + .createWithUseJwtAccessWithScope(true); } /** @@ -74,7 +76,9 @@ public MutableCredentials( */ public void updateCredentials(@Nonnull ServiceAccountCredentials credentials) { Objects.requireNonNull(credentials, "credentials must not be null"); - delegate = (ServiceAccountCredentials) credentials.createScoped(scopes); + delegate = + ((ServiceAccountCredentials) credentials.createScoped(scopes)) + .createWithUseJwtAccessWithScope(true); } @Override diff --git a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/MutableCredentialsTest.java b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/MutableCredentialsTest.java index dfa6d6695dd7..654083e0ee69 100644 --- a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/MutableCredentialsTest.java +++ b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/MutableCredentialsTest.java @@ -86,6 +86,8 @@ public void testCreateMutableCredentials() throws IOException { public void testCreateMutableCredentialsWithDefaultScopes() throws IOException { Set defaultScopes = SpannerOptions.SCOPES; when(initialCredentials.createScoped(defaultScopes)).thenReturn(initialScopedCredentials); + when(initialScopedCredentials.createWithUseJwtAccessWithScope(true)) + .thenReturn(initialScopedCredentials); when(initialScopedCredentials.getAuthenticationType()).thenReturn(initialAuthType); when(initialScopedCredentials.getRequestMetadata(any(URI.class))).thenReturn(initialMetadata); when(initialScopedCredentials.getUniverseDomain()).thenReturn(initialUniverseDomain); @@ -172,6 +174,8 @@ private void validateInitialDelegatedCredentialsAreSet( private void setupInitialCredentials() throws IOException { when(initialCredentials.createScoped(scopes)).thenReturn(initialScopedCredentials); + when(initialScopedCredentials.createWithUseJwtAccessWithScope(true)) + .thenReturn(initialScopedCredentials); when(initialCredentials.createScoped(Collections.emptyList())) .thenReturn(initialScopedCredentials); when(initialScopedCredentials.getAuthenticationType()).thenReturn(initialAuthType); @@ -185,6 +189,8 @@ private void setupInitialCredentials() throws IOException { private void setupUpdatedCredentials() throws IOException { when(updatedCredentials.createScoped(scopes)).thenReturn(updatedScopedCredentials); + when(updatedScopedCredentials.createWithUseJwtAccessWithScope(true)) + .thenReturn(updatedScopedCredentials); when(updatedScopedCredentials.getAuthenticationType()).thenReturn(updatedAuthType); when(updatedScopedCredentials.getRequestMetadata(any(URI.class))).thenReturn(updatedMetadata); when(updatedScopedCredentials.getUniverseDomain()).thenReturn(updatedUniverseDomain); From 6436ced2dc3039aacbb8a6ef391524f1efac8c72 Mon Sep 17 00:00:00 2001 From: Jin Seop Kim Date: Mon, 15 Jun 2026 12:54:35 -0400 Subject: [PATCH 07/82] test(bigquery): warm up client in beforeClass to stabilize testFastSQLQueryMultiPage (#13417) b/467064659 --- .../test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java index 0fba4f9c8241..dbad4634c52a 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java @@ -1184,6 +1184,9 @@ static void beforeClass() throws InterruptedException, IOException { Job jobLargeTable = bigquery.create(JobInfo.of(configurationLargeTable)); jobLargeTable = jobLargeTable.waitFor(); assertNull(jobLargeTable.getStatus().getError()); + + // Warmup query to initialize connection and avoid cold start timeout in subsequent tests + bigquery.query(QueryJobConfiguration.of("SELECT 1")); } @AfterAll From 84afc94aa2d97712b62bf5c82b5c815bf30c80aa Mon Sep 17 00:00:00 2001 From: Min Zhu Date: Mon, 15 Jun 2026 13:43:03 -0400 Subject: [PATCH 08/82] chore: add backstory to librarian.yaml and re-generate (#13452) Followup to https://github.com/googleapis/google-cloud-java/pull/13351, add backstory back to librarian.yaml and re-generate code with librarian. Manual add config to librarian.yaml and run: ``` V=$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version) go run github.com/googleapis/librarian/cmd/librarian@${V} install export PATH=$PATH:$HOME/.cache/librarian/bin/java_tools/bin go run github.com/googleapis/librarian/cmd/librarian@${V} generate backstory ``` Then manually reverted version change in [gapic-libraries-bom/pom.xml](https://github.com/googleapis/google-cloud-java/pull/13452/commits/48525721316044f5b530b78145a65f50604d6a0b), this is known limitation during partial release. See https://github.com/googleapis/librarian/issues/6411. Fixes https://github.com/googleapis/librarian/issues/6409 --- java-backstory/.repo-metadata.json | 2 +- java-backstory/README.md | 10 +-- .../clirr-ignored-differences.xml | 80 +++++++++++++++++++ .../backstory/CollectionOuterClass.java | 8 +- .../java/com/google/backstory/DataAccess.java | 10 +-- .../com/google/backstory/EntityProto.java | 10 +-- .../com/google/backstory/EntityRiskProto.java | 10 +-- .../com/google/backstory/IdOuterClass.java | 8 +- .../main/java/com/google/backstory/Udm.java | 8 +- .../src/main/proto/backstory/collection.proto | 2 +- .../main/proto/backstory/data_access.proto | 2 +- .../src/main/proto/backstory/entity.proto | 2 +- .../main/proto/backstory/entity_risk.proto | 2 +- .../src/main/proto/backstory/id.proto | 2 +- .../src/main/proto/backstory/udm.proto | 2 +- librarian.yaml | 16 ++++ 16 files changed, 135 insertions(+), 39 deletions(-) create mode 100644 java-backstory/proto-google-cloud-backstory/clirr-ignored-differences.xml diff --git a/java-backstory/.repo-metadata.json b/java-backstory/.repo-metadata.json index bd0684045421..8d97391ed1be 100644 --- a/java-backstory/.repo-metadata.json +++ b/java-backstory/.repo-metadata.json @@ -5,7 +5,7 @@ "api_description": "Common Universal Data Model (UDM) and Entity protos used by Chronicle.", "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-backstory/latest/overview", "release_level": "preview", - "transport": "grpc", + "transport": "both", "language": "java", "repo": "googleapis/google-cloud-java", "repo_short": "java-backstory", diff --git a/java-backstory/README.md b/java-backstory/README.md index ecc96e1a8fc3..0c8206c7b75f 100644 --- a/java-backstory/README.md +++ b/java-backstory/README.md @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-backstory - 0.0.0 + 0.1.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backstory:0.0.0' +implementation 'com.google.cloud:google-cloud-backstory:0.1.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backstory" % "0.0.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backstory" % "0.1.0" ``` ## Authentication @@ -103,7 +103,7 @@ To get help, follow the instructions in the [shared Troubleshooting document][tr ## Transport -Malachite Common Protos uses gRPC for the transport layer. +Malachite Common Protos uses both gRPC and HTTP/JSON for the transport layer. ## Supported Java Versions @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-backstory/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-backstory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backstory/0.0.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backstory/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-backstory/proto-google-cloud-backstory/clirr-ignored-differences.xml b/java-backstory/proto-google-cloud-backstory/clirr-ignored-differences.xml new file mode 100644 index 000000000000..abb11d1606d7 --- /dev/null +++ b/java-backstory/proto-google-cloud-backstory/clirr-ignored-differences.xml @@ -0,0 +1,80 @@ + + + + + 7012 + com/google/backstory/*OrBuilder + * get*(*) + + + 7012 + com/google/backstory/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/backstory/*OrBuilder + boolean has*(*) + + + + 7006 + com/google/backstory/** + * getDefaultInstanceForType() + ** + + + 7006 + com/google/backstory/** + * addRepeatedField(*) + ** + + + 7006 + com/google/backstory/** + * clear() + ** + + + 7006 + com/google/backstory/** + * clearField(*) + ** + + + 7006 + com/google/backstory/** + * clearOneof(*) + ** + + + 7006 + com/google/backstory/** + * clone() + ** + + + 7006 + com/google/backstory/** + * mergeUnknownFields(*) + ** + + + 7006 + com/google/backstory/** + * setField(*) + ** + + + 7006 + com/google/backstory/** + * setRepeatedField(*) + ** + + + 7006 + com/google/backstory/** + * setUnknownFields(*) + ** + + diff --git a/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/CollectionOuterClass.java b/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/CollectionOuterClass.java index c710c3b798eb..9b945c9b86ff 100644 --- a/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/CollectionOuterClass.java +++ b/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/CollectionOuterClass.java @@ -179,10 +179,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "source_system\030\004 \001(\t\022\017\n" + "\007product\030\005 \001(\t\022\037\n" + "\027source_system_ticket_id\030\006 \001(\t\022\031\n" - + "\021source_system_uri\030\007 \001(\tB\215\001\n" - + "\024com.google.backstoryP\001Z9google.golang.org/genproto/googleapis/backstory" - + ";backstory\252\002\020Google.Backstory\312\002\020Google\\B" - + "ackstory\352\002\021Google::Backstoryb\006proto3" + + "\021source_system_uri\030\007 \001(\tB\211\001\n" + + "\024com.google.backstoryP\001Z5cloud.google.com/go/backstory/backstorypb;backs" + + "torypb\252\002\020Google.Backstory\312\002\020Google\\Backs" + + "tory\352\002\021Google::Backstoryb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/DataAccess.java b/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/DataAccess.java index b2e7fc733488..e05dbbd59700 100644 --- a/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/DataAccess.java +++ b/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/DataAccess.java @@ -64,11 +64,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "els\030\002 \003(\tB\002\030\001\022\022\n\nnamespaces\030\003 \003(\t\022\025\n\rcus" + "tom_labels\030\004 \003(\t\022G\n\023ingestion_kv_labels\030" + "\005 \003(\0132*.google.backstory.DataAccessInges" - + "tionLabel\022\033\n\023allow_scoped_access\030\006 \001(\010B\215" - + "\001\n\024com.google.backstoryP\001Z9google.golang" - + ".org/genproto/googleapis/backstory;backs" - + "tory\252\002\020Google.Backstory\312\002\020Google\\Backsto" - + "ry\352\002\021Google::Backstoryb\006proto3" + + "tionLabel\022\033\n\023allow_scoped_access\030\006 \001(\010B\211" + + "\001\n\024com.google.backstoryP\001Z5cloud.google." + + "com/go/backstory/backstorypb;backstorypb" + + "\252\002\020Google.Backstory\312\002\020Google\\Backstory\352\002" + + "\021Google::Backstoryb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/EntityProto.java b/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/EntityProto.java index 9d5decbe93cf..6534ab990a72 100644 --- a/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/EntityProto.java +++ b/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/EntityProto.java @@ -285,11 +285,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024TARGET_RESOURCE_TYPE\020$\022\030\n" + "\024TARGET_LOCATION_NAME\020%\022\014\n" + "\010LOG_TYPE\020&\022\023\n" - + "\017TARGET_HOSTNAME\020\'B\232\001\n" - + "\024com.google.backstoryB\013EntityProtoP\001Z9g" - + "oogle.golang.org/genproto/googleapis/bac" - + "kstory;backstory\252\002\020Google.Backstory\312\002\020Go" - + "ogle\\Backstory\352\002\021Google::Backstoryb\006proto3" + + "\017TARGET_HOSTNAME\020\'B\226\001\n" + + "\024com.google.backstoryB\013EntityProtoP\001Z5c" + + "loud.google.com/go/backstory/backstorypb" + + ";backstorypb\252\002\020Google.Backstory\312\002\020Google" + + "\\Backstory\352\002\021Google::Backstoryb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/EntityRiskProto.java b/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/EntityRiskProto.java index ed03d9d27109..bfdbed980897 100644 --- a/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/EntityRiskProto.java +++ b/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/EntityRiskProto.java @@ -80,11 +80,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "revious_range_end_time\030\001 \001(\0132\032.google.pr" + "otobuf.Timestamp\022\030\n\020risk_score_delta\030\002 \001" + "(\005\022\033\n\023previous_risk_score\030\003 \001(\005\022 \n\030risk_" - + "score_numeric_delta\030\004 \001(\005B\236\001\n\024com.google" - + ".backstoryB\017EntityRiskProtoP\001Z9google.go" - + "lang.org/genproto/googleapis/backstory;b" - + "ackstory\252\002\020Google.Backstory\312\002\020Google\\Bac" - + "kstory\352\002\021Google::Backstoryb\006proto3" + + "score_numeric_delta\030\004 \001(\005B\232\001\n\024com.google" + + ".backstoryB\017EntityRiskProtoP\001Z5cloud.goo" + + "gle.com/go/backstory/backstorypb;backsto" + + "rypb\252\002\020Google.Backstory\312\002\020Google\\Backsto" + + "ry\352\002\021Google::Backstoryb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/IdOuterClass.java b/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/IdOuterClass.java index fcdf5f0286ce..3f72c61c457f 100644 --- a/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/IdOuterClass.java +++ b/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/IdOuterClass.java @@ -61,10 +61,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "TIONS\020\002\022\r\n\tUPPERCASE\020\003\022\030\n\024MACHINE_INTELL" + "IGENCE\020\004\022\033\n\027SECURITY_COMMAND_CENTER\020\005\022\017\n" + "\013UNSPECIFIED\020\006\022\016\n\nSOAR_ALERT\020\007\022\017\n\013VIRUS_" - + "TOTAL\020\010B\215\001\n\024com.google.backstoryP\001Z9goog" - + "le.golang.org/genproto/googleapis/backst" - + "ory;backstory\252\002\020Google.Backstory\312\002\020Googl" - + "e\\Backstory\352\002\021Google::Backstoryb\006proto3" + + "TOTAL\020\010B\211\001\n\024com.google.backstoryP\001Z5clou" + + "d.google.com/go/backstory/backstorypb;ba" + + "ckstorypb\252\002\020Google.Backstory\312\002\020Google\\Ba" + + "ckstory\352\002\021Google::Backstoryb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/Udm.java b/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/Udm.java index b4667cb5f49f..6c25a66a44ec 100644 --- a/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/Udm.java +++ b/java-backstory/proto-google-cloud-backstory/src/main/java/com/google/backstory/Udm.java @@ -2723,10 +2723,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n" + "UNDETECTED\020\001\022\016\n\n" + "SUSPICIOUS\020\002\022\r\n" - + "\tMALICIOUS\020\003B\215\001\n" - + "\024com.google.backstoryP\001Z9google.golang.org/genproto/googleapis/backstory" - + ";backstory\252\002\020Google.Backstory\312\002\020Google\\B" - + "ackstory\352\002\021Google::Backstoryb\006proto3" + + "\tMALICIOUS\020\003B\211\001\n" + + "\024com.google.backstoryP\001Z5cloud.google.com/go/backstory/backstorypb;backs" + + "torypb\252\002\020Google.Backstory\312\002\020Google\\Backs" + + "tory\352\002\021Google::Backstoryb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/collection.proto b/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/collection.proto index 3e5d3de9ba1a..db22471f5340 100644 --- a/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/collection.proto +++ b/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/collection.proto @@ -25,7 +25,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/interval.proto"; option csharp_namespace = "Google.Backstory"; -option go_package = "google.golang.org/genproto/googleapis/backstory;backstory"; +option go_package = "cloud.google.com/go/backstory/backstorypb;backstorypb"; option java_multiple_files = true; option java_package = "com.google.backstory"; option php_namespace = "Google\\Backstory"; diff --git a/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/data_access.proto b/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/data_access.proto index 06773afa070c..04ba6075388e 100644 --- a/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/data_access.proto +++ b/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/data_access.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.backstory; option csharp_namespace = "Google.Backstory"; -option go_package = "google.golang.org/genproto/googleapis/backstory;backstory"; +option go_package = "cloud.google.com/go/backstory/backstorypb;backstorypb"; option java_multiple_files = true; option java_package = "com.google.backstory"; option php_namespace = "Google\\Backstory"; diff --git a/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/entity.proto b/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/entity.proto index 3eba0e93de57..8f314aa55dc7 100644 --- a/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/entity.proto +++ b/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/entity.proto @@ -23,7 +23,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/interval.proto"; option csharp_namespace = "Google.Backstory"; -option go_package = "google.golang.org/genproto/googleapis/backstory;backstory"; +option go_package = "cloud.google.com/go/backstory/backstorypb;backstorypb"; option java_multiple_files = true; option java_outer_classname = "EntityProto"; option java_package = "com.google.backstory"; diff --git a/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/entity_risk.proto b/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/entity_risk.proto index 78b03eb05e14..ac7b67548b9c 100644 --- a/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/entity_risk.proto +++ b/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/entity_risk.proto @@ -21,7 +21,7 @@ import "google/protobuf/timestamp.proto"; import "google/type/interval.proto"; option csharp_namespace = "Google.Backstory"; -option go_package = "google.golang.org/genproto/googleapis/backstory;backstory"; +option go_package = "cloud.google.com/go/backstory/backstorypb;backstorypb"; option java_multiple_files = true; option java_outer_classname = "EntityRiskProto"; option java_package = "com.google.backstory"; diff --git a/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/id.proto b/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/id.proto index 9e29322fcb52..3b9c11d0960d 100644 --- a/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/id.proto +++ b/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/id.proto @@ -17,7 +17,7 @@ syntax = "proto3"; package google.backstory; option csharp_namespace = "Google.Backstory"; -option go_package = "google.golang.org/genproto/googleapis/backstory;backstory"; +option go_package = "cloud.google.com/go/backstory/backstorypb;backstorypb"; option java_multiple_files = true; option java_package = "com.google.backstory"; option php_namespace = "Google\\Backstory"; diff --git a/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/udm.proto b/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/udm.proto index 2ec28546dc7c..d4337b32aa3d 100644 --- a/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/udm.proto +++ b/java-backstory/proto-google-cloud-backstory/src/main/proto/backstory/udm.proto @@ -26,7 +26,7 @@ import "google/type/interval.proto"; import "google/type/latlng.proto"; option csharp_namespace = "Google.Backstory"; -option go_package = "google.golang.org/genproto/googleapis/backstory;backstory"; +option go_package = "cloud.google.com/go/backstory/backstorypb;backstorypb"; option java_multiple_files = true; option java_package = "com.google.backstory"; option php_namespace = "Google\\Backstory"; diff --git a/librarian.yaml b/librarian.yaml index 2cd3eef0ce8f..c7ddc1c059c6 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -388,6 +388,22 @@ libraries: product_documentation_override: https://cloud.google.com/automl/docs/ rest_documentation: https://cloud.google.com/automl/docs/reference/rest rpc_documentation: https://cloud.google.com/automl/docs/reference/rpc + - name: backstory + version: 0.2.0-SNAPSHOT + apis: + - path: backstory + java: + proto_artifact_id_override: proto-google-cloud-backstory + generate_gapic: false + generate_grpc: false + generate_resource_names: false + java: + api_id_override: backstory.googleapis.com + api_description_override: Common Universal Data Model (UDM) and Entity protos used by Chronicle. + client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-backstory/latest/overview + library_type_override: GAPIC_AUTO + name_pretty_override: Malachite Common Protos + product_documentation_override: https://cloud.google.com/chronicle/docs/secops/secops-overview - name: backupdr version: 0.53.0-SNAPSHOT apis: From f31da6541d695c6f52391c39bbb988e8849fe709 Mon Sep 17 00:00:00 2001 From: Blake Li Date: Mon, 15 Jun 2026 15:54:08 -0400 Subject: [PATCH 09/82] test: introduce awaitility to sdk-platform-java (#13458) This PR - Introduces awaitility version 4.3.0 to gapic-generator-java-pom-parent and gax-java. - Migrate one test ThresholdBatcherTest to use it as an example. This is the first PR of b/505479343. Follow up PRs would migrate all tests in sdk-platform-java to use awaitility. --- .../gapic-generator-java-pom-parent/pom.xml | 1 + .../gax-java/dependencies.properties | 2 ++ sdk-platform-java/gax-java/gax/BUILD.bazel | 1 + sdk-platform-java/gax-java/gax/pom.xml | 5 +++++ .../api/gax/batching/ThresholdBatcherTest.java | 17 +++++++++++------ sdk-platform-java/gax-java/pom.xml | 6 ++++++ 6 files changed, 26 insertions(+), 6 deletions(-) diff --git a/sdk-platform-java/gapic-generator-java-pom-parent/pom.xml b/sdk-platform-java/gapic-generator-java-pom-parent/pom.xml index dcf064bd91b4..5dc35542ccdc 100644 --- a/sdk-platform-java/gapic-generator-java-pom-parent/pom.xml +++ b/sdk-platform-java/gapic-generator-java-pom-parent/pom.xml @@ -38,6 +38,7 @@ 1.7.0 5.11.4 4.11.0 + 4.3.0 2.0.16 true diff --git a/sdk-platform-java/gax-java/dependencies.properties b/sdk-platform-java/gax-java/dependencies.properties index 1a0a10545dad..50cb9dc8de0b 100644 --- a/sdk-platform-java/gax-java/dependencies.properties +++ b/sdk-platform-java/gax-java/dependencies.properties @@ -96,3 +96,5 @@ maven.io_opentelemetry_opentelemetry_sdk=io.opentelemetry:opentelemetry-sdk:1.57 maven.io_opentelemetry_opentelemetry_sdk_common=io.opentelemetry:opentelemetry-sdk-common:1.57.0 maven.io_opentelemetry_opentelemetry_sdk_metrics=io.opentelemetry:opentelemetry-sdk-metrics:1.57.0 maven.com_google_guava_guava_testlib=com.google.guava:guava-testlib:32.1.3-jre +maven.org_awaitility_awaitility=org.awaitility:awaitility:4.3.0 + diff --git a/sdk-platform-java/gax-java/gax/BUILD.bazel b/sdk-platform-java/gax-java/gax/BUILD.bazel index 7faa2d2597bb..773e9b9beb45 100644 --- a/sdk-platform-java/gax-java/gax/BUILD.bazel +++ b/sdk-platform-java/gax-java/gax/BUILD.bazel @@ -49,6 +49,7 @@ _TEST_COMPILE_DEPS = [ "@io_opentelemetry_opentelemetry_sdk_metrics//jar", "@io_opentelemetry_opentelemetry_sdk_common//jar", "@com_google_guava_guava_testlib//jar", + "@org_awaitility_awaitility//jar", ] java_library( diff --git a/sdk-platform-java/gax-java/gax/pom.xml b/sdk-platform-java/gax-java/gax/pom.xml index 4a7de697b8b1..8616caaeb56f 100644 --- a/sdk-platform-java/gax-java/gax/pom.xml +++ b/sdk-platform-java/gax-java/gax/pom.xml @@ -111,6 +111,11 @@ ${junit.version} test + + org.awaitility + awaitility + test + io.grpc grpc-api diff --git a/sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/batching/ThresholdBatcherTest.java b/sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/batching/ThresholdBatcherTest.java index f87b772d3b4e..29b1628338a0 100644 --- a/sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/batching/ThresholdBatcherTest.java +++ b/sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/batching/ThresholdBatcherTest.java @@ -30,6 +30,7 @@ package com.google.api.gax.batching; import static com.google.common.truth.Truth.assertThat; +import static org.awaitility.Awaitility.await; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.ArgumentMatchers.any; @@ -44,6 +45,7 @@ import com.google.api.gax.batching.FlowController.FlowControlException; import com.google.api.gax.batching.FlowController.LimitExceededBehavior; import com.google.common.collect.ImmutableList; +import java.time.Duration; import java.util.AbstractMap.SimpleEntry; import java.util.ArrayList; import java.util.Arrays; @@ -194,14 +196,16 @@ void testBatching() throws Exception { batcher.add(SimpleBatch.fromInteger(3)); batcher.add(SimpleBatch.fromInteger(5)); // Give time for the executor to push the batch - Thread.sleep(100); - assertThat(receiver.getBatches()).hasSize(1); + await() + .atMost(Duration.ofSeconds(5)) + .untilAsserted(() -> assertThat(receiver.getBatches()).hasSize(1)); batcher.add(SimpleBatch.fromInteger(7)); batcher.add(SimpleBatch.fromInteger(9)); // Give time for the executor to push the batch - Thread.sleep(100); - assertThat(receiver.getBatches()).hasSize(2); + await() + .atMost(Duration.ofSeconds(5)) + .untilAsserted(() -> assertThat(receiver.getBatches()).hasSize(2)); batcher.add(SimpleBatch.fromInteger(11)); @@ -228,8 +232,9 @@ void testBatchingWithDelay() throws Exception { batcher.add(SimpleBatch.fromInteger(3)); batcher.add(SimpleBatch.fromInteger(5)); // Give time for the delay to trigger and push the batch - Thread.sleep(500); - assertThat(receiver.getBatches()).hasSize(1); + await() + .atMost(Duration.ofSeconds(5)) + .untilAsserted(() -> assertThat(receiver.getBatches()).hasSize(1)); batcher.add(SimpleBatch.fromInteger(11)); diff --git a/sdk-platform-java/gax-java/pom.xml b/sdk-platform-java/gax-java/pom.xml index 32103d17a33e..59d3d08b182a 100644 --- a/sdk-platform-java/gax-java/pom.xml +++ b/sdk-platform-java/gax-java/pom.xml @@ -175,6 +175,12 @@ pom import + + org.awaitility + awaitility + ${awaitility.version} + test + From eb379b367581356de1d621bf17df5761de71d318 Mon Sep 17 00:00:00 2001 From: Siddharth Agrawal Date: Mon, 15 Jun 2026 15:22:08 -0700 Subject: [PATCH 10/82] feat: scale up connection worker pool based on latency (#13384) --- .../bigquery/storage/v1/ConnectionWorker.java | 124 +++++++-- .../storage/v1/ConnectionWorkerPoolTest.java | 50 ++++ .../storage/v1/ConnectionWorkerTest.java | 238 +++++++++++++++++- 3 files changed, 379 insertions(+), 33 deletions(-) diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/ConnectionWorker.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/ConnectionWorker.java index 215176e7b46f..75aba8b3644b 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/ConnectionWorker.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/main/java/com/google/cloud/bigquery/storage/v1/ConnectionWorker.java @@ -52,6 +52,7 @@ import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicLong; +import java.util.concurrent.atomic.AtomicReference; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; @@ -140,13 +141,16 @@ class ConnectionWorker implements AutoCloseable { * Tracks current inflight requests in the stream. */ @GuardedBy("lock") - private long inflightRequests = 0; + private final AtomicLong inflightRequests = new AtomicLong(0); /* * Tracks current inflight bytes in the stream. */ @GuardedBy("lock") - private long inflightBytes = 0; + private final AtomicLong inflightBytes = new AtomicLong(0); + + private final TrackRequestQueueEarliestSendTime trackRequestQueueEarliestSendTime = + new TrackRequestQueueEarliestSendTime(); /* * Tracks how often the stream was closed due to a retriable error. Streaming will stop when the @@ -395,7 +399,7 @@ private void gatherHealthCheckMetrics(HealthCheckFields healthCheckFields) { healthCheckFields.queuedRequestCountMax = windowedQueuedRequestsMax; healthCheckFields.queuedRetryCountMax = windowedQueuedRetriesMax; healthCheckFields.msecLongestResponseWaitTime = windowedMilliResponseWaitTimeMax; - healthCheckFields.inflightBytes = inflightBytes; + healthCheckFields.inflightBytes = inflightBytes.get(); healthCheckFields.requestsSentCount = windowedRequestsSent; healthCheckFields.responseCount = windowedResponsesAcked; if (HEALTH_CHECK_INTERVAL.toMillis() > 0) { @@ -779,8 +783,8 @@ private void addMessageToFrontOfWaitingQueue(AppendRequestAndResponse requestWra @GuardedBy("lock") private void addMessageToWaitingQueue( AppendRequestAndResponse requestWrapper, boolean addToFront) { - ++this.inflightRequests; - this.inflightBytes += requestWrapper.messageSize; + this.inflightRequests.incrementAndGet(); + this.inflightBytes.addAndGet(requestWrapper.messageSize); hasMessageInWaitingQueue.signal(); requestProfilerHook.startOperation( RequestProfiler.OperationName.WAIT_QUEUE, requestWrapper.requestUniqueId); @@ -896,11 +900,11 @@ private ApiFuture appendInternal( } // Check if queue is going to be full before adding the request. if (this.limitExceededBehavior == FlowController.LimitExceededBehavior.ThrowException) { - if (this.inflightRequests + 1 >= this.maxInflightRequests) { + if (this.inflightRequests.get() + 1 >= this.maxInflightRequests) { throw new Exceptions.InflightRequestsLimitExceededException( writerId, this.maxInflightRequests); } - if (this.inflightBytes + requestWrapper.messageSize >= this.maxInflightBytes) { + if (this.inflightBytes.get() + requestWrapper.messageSize >= this.maxInflightBytes) { throw new Exceptions.InflightBytesLimitExceededException(writerId, this.maxInflightBytes); } } @@ -926,8 +930,8 @@ private ApiFuture appendInternal( return requestWrapper.appendResult; } requestProfilerHook.startOperation(RequestProfiler.OperationName.WAIT_QUEUE, requestUniqueId); - ++this.inflightRequests; - this.inflightBytes += requestWrapper.messageSize; + this.inflightRequests.incrementAndGet(); + this.inflightBytes.addAndGet(requestWrapper.messageSize); requestWrapper.placedInWaitingQueueTime = Instant.now(); waitingRequestQueue.addLast(requestWrapper); healthCheckMetrics.updateWindowedQueuedRequestsMax( @@ -938,9 +942,9 @@ private ApiFuture appendInternal( try { maybeWaitForInflightQuota(); } catch (StatusRuntimeException ex) { - --this.inflightRequests; + this.inflightRequests.decrementAndGet(); waitingRequestQueue.pollLast(); - this.inflightBytes -= requestWrapper.messageSize; + this.inflightBytes.addAndGet(-requestWrapper.messageSize); throw ex; } requestProfilerHook.endOperation( @@ -954,8 +958,8 @@ private ApiFuture appendInternal( @GuardedBy("lock") private void maybeWaitForInflightQuota() { long start_time = System.currentTimeMillis(); - while (this.inflightRequests >= this.maxInflightRequests - || this.inflightBytes >= this.maxInflightBytes) { + while (this.inflightRequests.get() >= this.maxInflightRequests + || this.inflightBytes.get() >= this.maxInflightBytes) { try { inflightReduced.await(100, TimeUnit.MILLISECONDS); } catch (InterruptedException e) { @@ -998,6 +1002,11 @@ void setTestOnlyRunTimeExceptionInAppendLoop( this.testOnlyRunTimeExceptionInAppendLoop = testOnlyRunTimeExceptionInAppendLoop; } + @VisibleForTesting + Instant getEarliestSendTime() { + return trackRequestQueueEarliestSendTime.getEarliestSendTime(); + } + @VisibleForTesting() HealthCheckMetrics.HealthCheckFields gatherTestOnlyHealthCheckMetrics() { this.lock.lock(); @@ -1229,7 +1238,9 @@ private void appendLoop() { firstRequestForTableOrSchemaSwitch = true; } while (!localQueue.isEmpty()) { - localQueue.peekFirst().setRequestSendQueueTime(); + AppendRequestAndResponse head = localQueue.peekFirst(); + head.setRequestSendQueueTime(); + trackRequestQueueEarliestSendTime.captureEarliest(head.requestSendTimeStamp); AppendRequestAndResponse wrapper = localQueue.pollFirst(); AppendRowsRequest originalRequest = wrapper.message; String requestUniqueId = wrapper.requestUniqueId; @@ -1642,6 +1653,9 @@ private void requestCallback(AppendRowsResponse response) { if (response.hasError()) { if (retryOnRetryableError(Code.values()[response.getError().getCode()], requestWrapper)) { log.info("Attempting to retry on error: " + response.getError().toString()); + // Note that if we are retrying a request it is still in the system so we don't refresh the + // earliest send time. That way we can keep track of the earliest send time based on the + // first time the request was sent, which gives us a better idea of load on this worker. return; } } @@ -1653,6 +1667,10 @@ private void requestCallback(AppendRowsResponse response) { this.lock.unlock(); } } + // Since we have processed a response and have now removed that request from the system, go + // ahead and refresh the earliest send time, based on the remaining requests that are + // outstanding. + trackRequestQueueEarliestSendTime.discardAndRefresh(); // We need a separate thread pool to unblock the next request callback. // Otherwise user may call append inside request callback, which may be blocked on waiting @@ -1788,8 +1806,8 @@ private AppendRequestAndResponse pollInflightRequestQueue(boolean pollLast) { AppendRequestAndResponse requestWrapper = pollLast ? inflightRequestQueue.pollLast() : inflightRequestQueue.poll(); requestWrapper.requestSendTimeStamp = null; - --this.inflightRequests; - this.inflightBytes -= requestWrapper.messageSize; + this.inflightRequests.decrementAndGet(); + this.inflightBytes.addAndGet(-requestWrapper.messageSize); this.inflightReduced.signal(); return requestWrapper; } @@ -1881,9 +1899,15 @@ void setRequestSendQueueTime() { /** Returns the current workload of this worker. */ public Load getLoad() { + Duration timeSinceLastCallback = Duration.ZERO; + Instant earliestSendTime = trackRequestQueueEarliestSendTime.getEarliestSendTime(); + if (earliestSendTime != null) { + timeSinceLastCallback = Duration.between(earliestSendTime, Instant.now()); + } return Load.create( - inflightBytes, - inflightRequests, + timeSinceLastCallback, + inflightBytes.get(), + inflightRequests.get(), destinationSet.size(), maxInflightBytes, maxInflightRequests); @@ -1896,11 +1920,15 @@ public Load getLoad() { @AutoValue public abstract static class Load { - // Consider the load on this worker to be overwhelmed when above some percentage of - // in-flight bytes or in-flight requests count. + // Consider the load on this worker to be overwhelmed when above some inflight latency or + // percentage of in-flight bytes or in-flight requests count. + private static Duration overwhelmedTimeSinceLastCallback = Duration.ofSeconds(3); private static double overwhelmedInflightCount = 0.2; private static double overwhelmedInflightBytes = 0.2; + // Time we have spent waiting for a response in the worker. + abstract Duration timeSinceLastCallback(); + // Number of in-flight requests bytes in the worker. abstract long inFlightRequestsBytes(); @@ -1917,12 +1945,14 @@ public abstract static class Load { abstract long maxInflightCount(); static Load create( + Duration timeSinceLastCallback, long inFlightRequestsBytes, long inFlightRequestsCount, long destinationCount, long maxInflightBytes, long maxInflightCount) { return new AutoValue_ConnectionWorker_Load( + timeSinceLastCallback, inFlightRequestsBytes, inFlightRequestsCount, destinationCount, @@ -1934,20 +1964,29 @@ boolean isOverwhelmed() { // Consider only in flight bytes and count for now, as by experiment those two are the most // efficient and has great simplity. return inFlightRequestsCount() > overwhelmedInflightCount * maxInflightCount() - || inFlightRequestsBytes() > overwhelmedInflightBytes * maxInflightBytes(); + || inFlightRequestsBytes() > overwhelmedInflightBytes * maxInflightBytes() + || timeSinceLastCallback().compareTo(overwhelmedTimeSinceLastCallback) > 0; } - // Compares two different load. First compare in flight request bytes split by size 1024 bucket. + // Compares two different load. First compare the timeSinceLastCallback bucketed into 1 second + // intervals. + // Then compare in flight request bytes split by size 1024 bucket. // Then compare the inflight requests count. // Then compare destination count of the two connections. public static final Comparator LOAD_COMPARATOR = - Comparator.comparing((Load key) -> (int) (key.inFlightRequestsBytes() / 1024)) + Comparator.comparing((Load key) -> (int) key.timeSinceLastCallback().getSeconds()) + .thenComparing((Load key) -> (int) (key.inFlightRequestsBytes() / 1024)) .thenComparing((Load key) -> (int) (key.inFlightRequestsCount() / 100)) .thenComparing(Load::destinationCount); // Compares two different load without bucket, used in smaller scale unit testing. + // First compare the timeSinceLastCallback. + // Then compare in flight request bytes. + // Then compare the inflight requests count. + // Then compare destination count of the two connections. public static final Comparator TEST_LOAD_COMPARATOR = - Comparator.comparing((Load key) -> (int) key.inFlightRequestsBytes()) + Comparator.comparing(Load::timeSinceLastCallback) + .thenComparing((Load key) -> (int) key.inFlightRequestsBytes()) .thenComparing((Load key) -> (int) key.inFlightRequestsCount()) .thenComparing(Load::destinationCount); @@ -1960,6 +1999,11 @@ public static void setOverwhelmedBytesThreshold(double newThreshold) { public static void setOverwhelmedCountsThreshold(double newThreshold) { overwhelmedInflightCount = newThreshold; } + + @VisibleForTesting + public static void setOverwhelmedTimeSinceLastCallbackThreshold(Duration newThreshold) { + overwhelmedTimeSinceLastCallback = newThreshold; + } } @VisibleForTesting @@ -1985,4 +2029,36 @@ static TableSchemaAndTimestamp create(long updateTimeStamp, TableSchema updatedS return new AutoValue_ConnectionWorker_TableSchemaAndTimestamp(updateTimeStamp, updatedSchema); } } + + class TrackRequestQueueEarliestSendTime { + private final AtomicReference earliestSendTime = new AtomicReference<>(null); + + public void captureEarliest(Instant sendTime) { + // This method records the given sendTime only if earliestSendTime is currently NULL. + if (sendTime == null) { + return; + } + earliestSendTime.compareAndSet(null, sendTime); + } + + public void discardAndRefresh() { + Instant newEarliestSendTime = null; + lock.lock(); + try { + if (!inflightRequestQueue.isEmpty()) { + AppendRequestAndResponse head = inflightRequestQueue.peekFirst(); + if (head != null) { + newEarliestSendTime = head.requestSendTimeStamp; + } + } + } finally { + lock.unlock(); + } + earliestSendTime.set(newEarliestSendTime); + } + + public Instant getEarliestSendTime() { + return earliestSendTime.get(); + } + } } diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/ConnectionWorkerPoolTest.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/ConnectionWorkerPoolTest.java index 51fea1232b11..e0a376adf03e 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/ConnectionWorkerPoolTest.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/ConnectionWorkerPoolTest.java @@ -89,6 +89,7 @@ void setUp() throws Exception { .build(); ConnectionWorker.Load.setOverwhelmedCountsThreshold(0.5); ConnectionWorker.Load.setOverwhelmedBytesThreshold(0.6); + ConnectionWorker.Load.setOverwhelmedTimeSinceLastCallbackThreshold(Duration.ofSeconds(3)); } @Test @@ -555,6 +556,55 @@ private ProtoRows createProtoRows(String[] messages) { return rowsBuilder.build(); } + @Test + void testSingleTableConnections_overwhelmed_timeSinceLastCallback() throws Exception { + // Set count/bytes thresholds to be very high so they don't trigger. + ConnectionWorker.Load.setOverwhelmedCountsThreshold(0.9); + ConnectionWorker.Load.setOverwhelmedBytesThreshold(0.9); + // Set time threshold to 100ms. + ConnectionWorker.Load.setOverwhelmedTimeSinceLastCallbackThreshold(Duration.ofMillis(100)); + + // We use a pool with max 8 connections. + ConnectionWorkerPool.setOptions( + Settings.builder() + .setMinConnectionsPerRegion(1) // Start with 1 connection to make scaling obvious. + .setMaxConnectionsPerRegion(8) + .build()); + + // We set maxRequests to a large value (100) so it's not overwhelmed by count (threshold 90). + ConnectionWorkerPool connectionWorkerPool = + createConnectionWorkerPool( + /* maxRequests= */ 100, /* maxBytes= */ 1000000, java.time.Duration.ofSeconds(5)); + + // Stuck requests for 500ms (larger than 100ms threshold). + testBigQueryWrite.setResponseSleep(Duration.ofSeconds(1)); + + // Send 1 request. It will go to Connection 1. + testBigQueryWrite.addResponse(createAppendResponse(0)); + StreamWriter writer = getTestStreamWriter(TEST_STREAM_1); + + ApiFuture future1 = + sendFooStringTestMessage(writer, connectionWorkerPool, new String[] {"0"}, 0); + + // Wait 500ms. Request 1 is still in flight (needs 1000ms). + // Connection 1 timeSinceLastCallback should be ~500ms > 100ms. + // So Connection 1 is now overwhelmed. + Thread.sleep(500); + + // Send Request 2. Since Connection 1 is overwhelmed, it should scale up and create Connection + // 2. + testBigQueryWrite.addResponse(createAppendResponse(1)); + ApiFuture future2 = + sendFooStringTestMessage(writer, connectionWorkerPool, new String[] {"1"}, 1); + + // Wait for both to finish. + future1.get(); + future2.get(); + + // Verify that we created 2 connections. + assertThat(connectionWorkerPool.getCreateConnectionCount()).isEqualTo(2); + } + ConnectionWorkerPool createConnectionWorkerPool( long maxRequests, long maxBytes, java.time.Duration maxRetryDuration) { ConnectionWorkerPool.enableTestingLogic(); diff --git a/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/ConnectionWorkerTest.java b/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/ConnectionWorkerTest.java index 44bb25105d12..6e4ee2642a6a 100644 --- a/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/ConnectionWorkerTest.java +++ b/java-bigquerystorage/google-cloud-bigquerystorage/src/test/java/com/google/cloud/bigquery/storage/v1/ConnectionWorkerTest.java @@ -44,6 +44,7 @@ import java.io.IOException; import java.nio.channels.Channels; import java.time.Duration; +import java.time.Instant; import java.util.ArrayList; import java.util.Arrays; import java.util.List; @@ -94,6 +95,9 @@ void setUp() throws Exception { testBigQueryWrite = new FakeBigQueryWrite(); ConnectionWorker.setMaxInflightQueueWaitTime(300000); ConnectionWorker.setMaxInflightRequestWaitTime(Duration.ofMinutes(10)); + ConnectionWorker.Load.setOverwhelmedCountsThreshold(0.2); + ConnectionWorker.Load.setOverwhelmedBytesThreshold(0.2); + ConnectionWorker.Load.setOverwhelmedTimeSinceLastCallbackThreshold(Duration.ofSeconds(3)); serviceHelper = new MockServiceHelper( UUID.randomUUID().toString(), Arrays.asList(testBigQueryWrite)); @@ -865,29 +869,116 @@ void testLoadCompare_compareLoad() { // In flight bytes bucket is split as per 1024 requests per bucket. // When in flight bytes is in lower bucket, even destination count is higher and request count // is higher, the load is still smaller. - Load load1 = ConnectionWorker.Load.create(1000, 2000, 100, 1000, 10); - Load load2 = ConnectionWorker.Load.create(2000, 1000, 10, 1000, 10); + Load load1 = ConnectionWorker.Load.create(Duration.ZERO, 1000, 2000, 100, 1000, 10); + Load load2 = ConnectionWorker.Load.create(Duration.ZERO, 2000, 1000, 10, 1000, 10); assertThat(Load.LOAD_COMPARATOR.compare(load1, load2)).isLessThan(0); // In flight bytes in the same bucke of request bytes will compare request count. - Load load3 = ConnectionWorker.Load.create(1, 300, 10, 0, 10); - Load load4 = ConnectionWorker.Load.create(10, 1, 10, 0, 10); + Load load3 = ConnectionWorker.Load.create(Duration.ZERO, 1, 300, 10, 0, 10); + Load load4 = ConnectionWorker.Load.create(Duration.ZERO, 10, 1, 10, 0, 10); assertThat(Load.LOAD_COMPARATOR.compare(load3, load4)).isGreaterThan(0); // In flight request and bytes in the same bucket will compare the destination count. - Load load5 = ConnectionWorker.Load.create(200, 1, 10, 1000, 10); - Load load6 = ConnectionWorker.Load.create(100, 10, 10, 1000, 10); + Load load5 = ConnectionWorker.Load.create(Duration.ZERO, 200, 1, 10, 1000, 10); + Load load6 = ConnectionWorker.Load.create(Duration.ZERO, 100, 10, 10, 1000, 10); assertThat(Load.LOAD_COMPARATOR.compare(load5, load6) == 0).isTrue(); + + // timeSinceLastCallback has the highest priority. + // load7 has higher timeSinceLastCallback (2s -> bucket 2) but lower other parameters. + // load8 has lower timeSinceLastCallback (0s -> bucket 0) but higher other parameters. + Load load7 = ConnectionWorker.Load.create(Duration.ofSeconds(2), 0, 0, 0, 10, 10); + Load load8 = ConnectionWorker.Load.create(Duration.ZERO, 10000, 10000, 100, 10, 10); + assertThat(Load.LOAD_COMPARATOR.compare(load7, load8)).isGreaterThan(0); } @Test void testLoadIsOverWhelmed() { - // Only in flight request is considered in current overwhelmed calculation. - Load load1 = ConnectionWorker.Load.create(60, 10, 100, 90, 100); + // In-flight requests, bytes, and timeSinceLastCallback are considered in overwhelmed + // calculation. + + // Overwhelmed by request count + Load load1 = ConnectionWorker.Load.create(Duration.ZERO, 60, 10, 100, 90, 100); assertThat(load1.isOverwhelmed()).isTrue(); - Load load2 = ConnectionWorker.Load.create(1, 1, 100, 100, 100); + // Not overwhelmed + Load load2 = ConnectionWorker.Load.create(Duration.ZERO, 1, 1, 100, 100, 100); assertThat(load2.isOverwhelmed()).isFalse(); + + // Under threshold (3s) for timeSinceLastCallback + Load load3 = ConnectionWorker.Load.create(Duration.ofSeconds(2), 0, 0, 0, 100, 100); + assertThat(load3.isOverwhelmed()).isFalse(); + + // Over threshold (3s) for timeSinceLastCallback + Load load4 = ConnectionWorker.Load.create(Duration.ofSeconds(4), 0, 0, 0, 100, 100); + assertThat(load4.isOverwhelmed()).isTrue(); + } + + @Test + void testGetLoad_timeSinceLastCallback() throws Exception { + ProtoSchema schema1 = createProtoSchema("foo"); + StreamWriter sw1 = + StreamWriter.newBuilder(TEST_STREAM_1, client).setWriterSchema(schema1).build(); + try (ConnectionWorker connectionWorker = + new ConnectionWorker( + TEST_STREAM_1, + null, + createProtoSchema("foo"), + 10, + 100000, + Duration.ofSeconds(100), + FlowController.LimitExceededBehavior.Block, + TEST_TRACE_ID, + null, + client.getSettings(), + retrySettings, + /* enableRequestProfiler= */ false, + /* enableOpenTelemetry= */ false, + /*isMultiplexing*/ false)) { + + // Initially empty, should be zero. + assertThat(connectionWorker.getLoad().timeSinceLastCallback()).isEqualTo(Duration.ZERO); + + // Keep response in flight + testBigQueryWrite.setResponseSleep(java.time.Duration.ofSeconds(5)); + + // Send a message + ApiFuture future = + sendTestMessage(connectionWorker, sw1, createFooProtoRows(new String[] {"hello"}), 0); + + // Wait a bit to ensure it is sent and in flight queue + Thread.sleep(500); + + Load load = connectionWorker.getLoad(); + assertThat(load.timeSinceLastCallback()).isGreaterThan(Duration.ZERO); + assertThat(load.timeSinceLastCallback()) + .isLessThan(Duration.ofSeconds(2)); // Should be around 500ms + } + } + + @Test + void testLoadCompare_timeSinceLastCallback() { + // Same bytes, same count, same destination, different timeSinceLastCallback + // Bucketed by 1 second (1000ms). + + // 100ms and 200ms are in the same bucket (0). + Load load1 = ConnectionWorker.Load.create(Duration.ofMillis(100), 0, 0, 0, 0, 0); + Load load2 = ConnectionWorker.Load.create(Duration.ofMillis(200), 0, 0, 0, 0, 0); + assertThat(Load.LOAD_COMPARATOR.compare(load1, load2)).isEqualTo(0); + + // 100ms and 1200ms are in different buckets (0 vs 1). + Load load3 = ConnectionWorker.Load.create(Duration.ofMillis(1200), 0, 0, 0, 0, 0); + assertThat(Load.LOAD_COMPARATOR.compare(load1, load3)).isLessThan(0); + assertThat(Load.LOAD_COMPARATOR.compare(load3, load1)).isGreaterThan(0); + } + + @Test + void testTestLoadCompare_timeSinceLastCallback() { + // TEST_LOAD_COMPARATOR compares timeSinceLastCallback unbucketed. + // 1s and 2s should be different. + Load load1 = ConnectionWorker.Load.create(Duration.ofSeconds(1), 0, 0, 0, 0, 0); + Load load2 = ConnectionWorker.Load.create(Duration.ofSeconds(2), 0, 0, 0, 0, 0); + assertThat(Load.TEST_LOAD_COMPARATOR.compare(load1, load2)).isLessThan(0); + assertThat(Load.TEST_LOAD_COMPARATOR.compare(load2, load1)).isGreaterThan(0); } @Test @@ -1433,6 +1524,24 @@ public FakeBigQueryWriteImpl.Response get() { } } + private ConnectionWorker createConnectionWorker() throws IOException { + return new ConnectionWorker( + TEST_STREAM_1, + "us", + createProtoSchema("foo"), + 100000, + 100000, + Duration.ofSeconds(100), + FlowController.LimitExceededBehavior.Block, + TEST_TRACE_ID, + null, + client.getSettings(), + retrySettings, + /* enableRequestProfiler= */ false, + /* enableOpenTelemetry= */ false, + /* isMultiplexing= */ false); + } + @Test void testInflightRetryCountHealthMetricExactlyOnce() throws Exception { ProtoSchema schema1 = createProtoSchema("foo"); @@ -1504,4 +1613,115 @@ void testInflightRetryCountHealthMetricExactlyOnce() throws Exception { assertEquals(3, healthCheckFields.responseCodes.get(Status.Code.OK.value())); assertEquals("projects/p1/datasets/d1/tables/t1/streams/s1", healthCheckFields.streamName); } + + @Test + void testEarliestSendTime_outstandingRequest() throws Exception { + ProtoSchema schema1 = createProtoSchema("foo"); + StreamWriter sw1 = + StreamWriter.newBuilder(TEST_STREAM_1, client) + .setLocation("us") + .setWriterSchema(schema1) + .build(); + try (ConnectionWorker connectionWorker = createConnectionWorker()) { + // Stuck response to keep request in flight + testBigQueryWrite.setResponseSleep(java.time.Duration.ofSeconds(10)); + testBigQueryWrite.addResponse(createAppendResponse(0)); + + Instant beforeSend = Instant.now(); + ApiFuture future = + sendTestMessage(connectionWorker, sw1, createFooProtoRows(new String[] {"0"}), 0); + + // Wait a bit to ensure it is sent and send time is captured + Thread.sleep(500); + Instant afterSend = Instant.now(); + + Instant earliestSendTime = connectionWorker.getEarliestSendTime(); + assertThat(earliestSendTime).isNotNull(); + assertThat(earliestSendTime).isAtLeast(beforeSend); + assertThat(earliestSendTime).isAtMost(afterSend); + + // Clean up + testBigQueryWrite.setResponseSleep(java.time.Duration.ZERO); + future.get(); + } + } + + @Test + void testEarliestSendTime_requestSuccess() throws Exception { + ProtoSchema schema1 = createProtoSchema("foo"); + StreamWriter sw1 = + StreamWriter.newBuilder(TEST_STREAM_1, client) + .setLocation("us") + .setWriterSchema(schema1) + .build(); + try (ConnectionWorker connectionWorker = createConnectionWorker()) { + testBigQueryWrite.addResponse(createAppendResponse(0)); + + ApiFuture future = + sendTestMessage(connectionWorker, sw1, createFooProtoRows(new String[] {"0"}), 0); + + // Wait for success response + future.get(); + + // Verify state is NULL + assertThat(connectionWorker.getEarliestSendTime()).isNull(); + } + } + + @Test + void testEarliestSendTime_retryScenario() throws Exception { + ProtoSchema schema1 = createProtoSchema("foo"); + StreamWriter sw1 = + StreamWriter.newBuilder(TEST_STREAM_1, client) + .setLocation("us") + .setWriterSchema(schema1) + .build(); + try (ConnectionWorker connectionWorker = createConnectionWorker()) { + // Stuck first response to ensure we can capture send time + testBigQueryWrite.setResponseSleep(java.time.Duration.ofMillis(500)); + + // Fail enough times to exhaust retries (maxAttempts + 1) + testBigQueryWrite.addResponse( + new DummyResponseSupplierWillFailThenSucceed( + new FakeBigQueryWriteImpl.Response(createAppendResponse(0)), + /* totalFailCount= */ retrySettings.getMaxAttempts() + 1, + com.google.rpc.Status.newBuilder().setCode(Code.INTERNAL.ordinal()).build())); + + Instant beforeSend = Instant.now(); + ApiFuture future = + sendTestMessage(connectionWorker, sw1, createFooProtoRows(new String[] {"0"}), 0); + + // Wait for first attempt to be sent (response sleep is 500ms) + Thread.sleep(200); + Instant afterSend = Instant.now(); + + Instant earliestSendTime = connectionWorker.getEarliestSendTime(); + assertThat(earliestSendTime).isNotNull(); + assertThat(earliestSendTime).isAtLeast(beforeSend); + assertThat(earliestSendTime).isAtMost(afterSend); + + // Wait for first response to arrive (500ms) and retry to be scheduled. + // Retry will be scheduled with 500ms delay (initialRetryDelay). + // So it will be sent at ~1000ms. + // We check state at 800ms (after first failure but before retry is sent). + Thread.sleep(600); // 200ms + 600ms = 800ms from start. + + Instant earliestSendTimeAfterFirstFailure = connectionWorker.getEarliestSendTime(); + assertThat(earliestSendTimeAfterFirstFailure).isEqualTo(earliestSendTime); + + // Wait for all retries to exhaust and fail. + ExecutionException ex = + assertThrows( + ExecutionException.class, + () -> { + future.get(5, TimeUnit.SECONDS); + }); + assertThat(ex.getCause()).isInstanceOf(StatusRuntimeException.class); + assertThat(((StatusRuntimeException) ex.getCause()).getStatus().getCode()) + .isEqualTo(Code.INTERNAL); + + // Once exhausted, state should be null + assertThat(connectionWorker.getEarliestSendTime()).isNull(); + } + } } From 8e9170490ac849b8ff2c19deb7af73ffb48035ac Mon Sep 17 00:00:00 2001 From: gyang-google <48337601+gyang-google@users.noreply.github.com> Date: Tue, 16 Jun 2026 09:40:17 +0000 Subject: [PATCH 11/82] chore: update executor to fix a SI issue (#13492) --- .../google/cloud/executor/spanner/CloudClientExecutor.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/executor/spanner/CloudClientExecutor.java b/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/executor/spanner/CloudClientExecutor.java index fd38ad6b286d..1a2e55c1b433 100644 --- a/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/executor/spanner/CloudClientExecutor.java +++ b/java-spanner/google-cloud-spanner-executor/src/main/java/com/google/cloud/executor/spanner/CloudClientExecutor.java @@ -397,9 +397,10 @@ public void startRWTransaction() throws Exception { } else { transactionOptions.add(Options.isolationLevel(IsolationLevel.SERIALIZABLE)); } - if (optimistic) { + if (!repeatableRead && optimistic) { transactionOptions.add(Options.readLockMode(ReadLockMode.OPTIMISTIC)); - } else { + } + if (repeatableRead && !optimistic) { transactionOptions.add(Options.readLockMode(ReadLockMode.PESSIMISTIC)); } runner = From bd4032476d9ef97e3b513043b53bd446511c5e95 Mon Sep 17 00:00:00 2001 From: Dhriti07 <56169283+Dhriti07@users.noreply.github.com> Date: Tue, 16 Jun 2026 16:30:00 +0530 Subject: [PATCH 12/82] =?UTF-8?q?feat(storage):=20Adding=20CumulativeHashe?= =?UTF-8?q?r=20wrapper=20class=20for=20Full=20object=20=E2=80=A6=20(#13239?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding CumulativeHasher wrapper class for Full object checksum Refer to: go/full_checksum_java --------- Co-authored-by: Dhriti Chopra --- .../cloud/storage/CumulativeHasher.java | 159 ++++++++++++++++++ .../java/com/google/cloud/storage/Hasher.java | 4 +- 2 files changed, 161 insertions(+), 2 deletions(-) create mode 100644 java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/CumulativeHasher.java diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/CumulativeHasher.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/CumulativeHasher.java new file mode 100644 index 000000000000..1614a3595a75 --- /dev/null +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/CumulativeHasher.java @@ -0,0 +1,159 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.storage; + +import com.google.api.gax.grpc.GrpcStatusCode; +import com.google.cloud.storage.Crc32cValue.Crc32cLengthKnown; +import com.google.protobuf.ByteString; +import com.google.storage.v2.Object; +import io.grpc.Status.Code; +import java.nio.ByteBuffer; +import java.util.Locale; +import java.util.OptionalLong; +import java.util.function.Supplier; + +/** + * A wrapper around hasher that accumulates checksums and validates them at the end of the read if + * it was a full object read. + */ +final class CumulativeHasher implements Hasher { + private final Hasher delegate; + private final long startOffset; + private final OptionalLong limit; + private Crc32cLengthKnown cumulativeHash; + + CumulativeHasher(Hasher delegate, long startOffset, OptionalLong limit) { + this.delegate = delegate; + this.startOffset = startOffset; + this.limit = limit; + this.cumulativeHash = Crc32cValue.zero(); + } + + @Override + public Crc32cLengthKnown hash(ByteBuffer b) { + return delegate.hash(b); + } + + @Override + public Crc32cLengthKnown hash(ByteString byteString) { + return delegate.hash(byteString); + } + + @Override + public void validate(Crc32cValue expected, Supplier b) + throws ChecksumMismatchException { + ByteBuffer byteBuffer = b.get(); + Crc32cLengthKnown actual = delegate.hash(byteBuffer); + if (actual != null) { + if (expected != null && !actual.eqValue(expected)) { + throw new ChecksumMismatchException(expected, actual); + } + accumulate(actual); + } + } + + @Override + public void validate(Crc32cValue expected, ByteString byteString) + throws ChecksumMismatchException { + Crc32cLengthKnown actual = delegate.hash(byteString); + if (actual != null) { + if (expected != null && !actual.eqValue(expected)) { + throw new ChecksumMismatchException(expected, actual); + } + accumulate(actual); + } + } + + @Override + public void validateUnchecked(Crc32cValue expected, ByteString byteString) + throws UncheckedChecksumMismatchException { + Crc32cLengthKnown actual = delegate.hash(byteString); + if (actual != null) { + if (expected != null && !actual.eqValue(expected)) { + throw new UncheckedChecksumMismatchException(expected, actual); + } + accumulate(actual); + } + } + + @Override + public > C nullSafeConcat(C r1, Crc32cLengthKnown r2) { + return delegate.nullSafeConcat(r1, r2); + } + + @Override + public Crc32cLengthKnown initialValue() { + return delegate.initialValue(); + } + + // Checks if it was a full object read. + boolean qualifiesForVerification(Object metadata) { + return startOffset == 0 + && metadata != null + && metadata.hasChecksums() + && metadata.getChecksums().hasCrc32C() + && (!limit.isPresent() || limit.getAsLong() >= metadata.getSize()); + } + + void validateCumulativeChecksum(Object metadata) + throws UncheckedCumulativeChecksumMismatchException { + if (qualifiesForVerification(metadata)) { + Crc32cValue expected = Crc32cValue.of(metadata.getChecksums().getCrc32C()); + Crc32cLengthKnown actual = getCumulativeHash(); + if (!actual.eqValue(expected)) { + throw new UncheckedCumulativeChecksumMismatchException(expected, actual); + } + } + } + + private void accumulate(Crc32cLengthKnown actual) { + cumulativeHash = cumulativeHash.concat(actual); + } + + Crc32cLengthKnown getCumulativeHash() { + return cumulativeHash; + } +} + +final class UncheckedCumulativeChecksumMismatchException + extends com.google.api.gax.rpc.DataLossException { + private static final GrpcStatusCode STATUS_CODE = GrpcStatusCode.of(Code.DATA_LOSS); + private final Crc32cValue expected; + private final Crc32cLengthKnown actual; + + UncheckedCumulativeChecksumMismatchException(Crc32cValue expected, Crc32cLengthKnown actual) { + super( + String.format( + Locale.US, + "Mismatch cumulative checksum value. Expected %s actual %s", + expected.debugString(), + actual.debugString()), + /* cause= */ null, + STATUS_CODE, + /* retryable= */ false); + this.expected = expected; + this.actual = actual; + } + + Crc32cValue getExpected() { + return expected; + } + + Crc32cLengthKnown getActual() { + return actual; + } +} diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/Hasher.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/Hasher.java index c1b506de2f7e..02dfe9efef41 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/Hasher.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/Hasher.java @@ -212,7 +212,7 @@ final class ChecksumMismatchException extends IOException { private final Crc32cValue expected; private final Crc32cLengthKnown actual; - private ChecksumMismatchException(Crc32cValue expected, Crc32cLengthKnown actual) { + ChecksumMismatchException(Crc32cValue expected, Crc32cLengthKnown actual) { super( String.format( Locale.US, @@ -237,7 +237,7 @@ final class UncheckedChecksumMismatchException extends DataLossException { private final Crc32cValue expected; private final Crc32cLengthKnown actual; - private UncheckedChecksumMismatchException(Crc32cValue expected, Crc32cLengthKnown actual) { + UncheckedChecksumMismatchException(Crc32cValue expected, Crc32cLengthKnown actual) { super( String.format( "Mismatch checksum value. Expected %s actual %s", From 2204d75e05d00979b5233965b61b8df161b2e547 Mon Sep 17 00:00:00 2001 From: Wes Tarle Date: Tue, 16 Jun 2026 10:54:41 -0400 Subject: [PATCH 13/82] test(auth): Assert JWT headers and claims (alg, typ, iat, exp) (#13472) This commit adds explicit assertions to verify that the generated JWS header correctly contains 'alg=RS256' and 'typ=JWT', and that the JWT payload contains the 'iat' and 'exp' claims with exactly a 3600-second (1-hour) expiration offset. This brings the Java library's test suite into alignment with the expected auth specification. Other Google Cloud client libraries like Go, Node.js, and Python natively assert the presence of these standard headers and the 1-hour expiration window during their Self-Signed JWT generation tests. --- .../auth/oauth2/ServiceAccountCredentialsTest.java | 10 ++++++++++ .../oauth2/ServiceAccountJwtAccessCredentialsTest.java | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java index ed26a0af3c6f..1bae2651f5ab 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java @@ -1777,6 +1777,8 @@ private void verifyJwtAccess(Map> metadata, String expected assertNotNull(assertion, "Bearer assertion not found"); JsonWebSignature signature = JsonWebSignature.parse(GsonFactory.getDefaultInstance(), assertion); + assertEquals("RS256", signature.getHeader().getAlgorithm()); + assertEquals("JWT", signature.getHeader().getType()); assertEquals(CLIENT_EMAIL, signature.getPayload().getIssuer()); assertEquals(CLIENT_EMAIL, signature.getPayload().getSubject()); if (expectedScopeClaim != null) { @@ -1787,6 +1789,14 @@ private void verifyJwtAccess(Map> metadata, String expected assertFalse(signature.getPayload().containsKey("scope")); } assertEquals(PRIVATE_KEY_ID, signature.getHeader().getKeyId()); + + Long iat = signature.getPayload().getIssuedAtTimeSeconds(); + Long exp = signature.getPayload().getExpirationTimeSeconds(); + assertNotNull(iat); + assertNotNull(exp); + assertEquals(3600L, exp - iat); + long currentTimeSecs = System.currentTimeMillis() / 1000; + assertTrue(Math.abs(currentTimeSecs - iat) < 60); } static GenericJson writeServiceAccountJson( diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountJwtAccessCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountJwtAccessCredentialsTest.java index d961f7b1b685..4a12b7483a33 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountJwtAccessCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountJwtAccessCredentialsTest.java @@ -914,6 +914,8 @@ private void verifyJwtAccess(Map> metadata, URI expectedAud } assertNotNull(assertion, "Bearer assertion not found"); JsonWebSignature signature = JsonWebSignature.parse(JSON_FACTORY, assertion); + assertEquals("RS256", signature.getHeader().getAlgorithm()); + assertEquals("JWT", signature.getHeader().getType()); assertEquals( ServiceAccountJwtAccessCredentialsTest.SA_CLIENT_EMAIL, signature.getPayload().getIssuer()); assertEquals( @@ -922,6 +924,14 @@ private void verifyJwtAccess(Map> metadata, URI expectedAud assertEquals(expectedAudience.toString(), signature.getPayload().getAudience()); assertEquals( ServiceAccountJwtAccessCredentialsTest.SA_PRIVATE_KEY_ID, signature.getHeader().getKeyId()); + + Long iat = signature.getPayload().getIssuedAtTimeSeconds(); + Long exp = signature.getPayload().getExpirationTimeSeconds(); + assertNotNull(iat); + assertNotNull(exp); + assertEquals(3600L, exp - iat); + long currentTimeSecs = System.currentTimeMillis() / 1000; + assertTrue(Math.abs(currentTimeSecs - iat) < 60); } private static void testFromStreamException(InputStream stream, String expectedMessageContent) { From 8e6aeb59277475d8ebfaad8ac00233d5d8fb83dc Mon Sep 17 00:00:00 2001 From: Wes Tarle Date: Tue, 16 Jun 2026 11:03:23 -0400 Subject: [PATCH 14/82] test(auth): Assert multiple scopes are space-separated in JWT claim (#13474) This commit adds a test to verify that when a Service Account is configured with multiple scopes during Self-Signed JWT authentication, the scopes are correctly serialized into a single space-separated string within the JWT's 'scope' claim. This brings the Java library's test suite into alignment with the expected auth specification. Other Google Cloud client libraries like Go, Node.js, and Python natively assert that multiple scopes are appropriately space-separated during their JWT generation tests. --- .../auth/oauth2/ServiceAccountCredentialsTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java index 1bae2651f5ab..6ee26e3338a0 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java @@ -1762,6 +1762,17 @@ void createScopes_existingAccessTokenInvalidated() throws IOException { assertNull(newAccessToken); } + @Test + void getRequestMetadata_withMultipleScopes_selfSignedJWT() throws IOException { + List scopes = Arrays.asList("scope1", "scope2"); + ServiceAccountCredentials credentials = + createDefaultBuilderWithKey(OAuth2Utils.privateKeyFromPkcs8(PRIVATE_KEY_PKCS8)) + .setScopes(scopes) + .setUseJwtAccessWithScope(true) + .build(); + verifyJwtAccess(credentials.getRequestMetadata(CALL_URI), "scope1 scope2"); + } + private void verifyJwtAccess(Map> metadata, String expectedScopeClaim) throws IOException { assertNotNull(metadata); From 99b9a6eeeaab32a290939bb93e9aadc763b69a98 Mon Sep 17 00:00:00 2001 From: Wes Tarle Date: Tue, 16 Jun 2026 11:03:54 -0400 Subject: [PATCH 15/82] test(auth): enable skipped quota project default credentials testcase (#13459) In DefaultCredentialsProviderTest.java, the getDefaultCredentials_quota_project test case was missing the JUnit @Test annotation, causing it to be ignored. This adds the annotation to ensure it is executed during test runs. --- .../com/google/auth/oauth2/DefaultCredentialsProviderTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/DefaultCredentialsProviderTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/DefaultCredentialsProviderTest.java index d0447871b01a..2efb9bc92b87 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/DefaultCredentialsProviderTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/DefaultCredentialsProviderTest.java @@ -387,6 +387,7 @@ void getDefaultCredentials_GdchServiceAccount() throws IOException { assertNotNull(((GdchCredentials) defaultCredentials).getApiAudience()); } + @Test void getDefaultCredentials_quota_project() throws IOException { InputStream userStream = UserCredentialsTest.writeUserStream( From 2d9d01cdff846f8594927c9556bcc51cb8225817 Mon Sep 17 00:00:00 2001 From: Leo <39062083+lsirac@users.noreply.github.com> Date: Tue, 16 Jun 2026 09:53:38 -0700 Subject: [PATCH 16/82] fix(auth): Fix UserCredentials serialization clientSecret leak (#13465) This PR fixes a critical security issue where the plaintext clientSecret of UserCredentials was being leaked and written to disk under the key quota_project, instead of the actual quotaProjectId under quota_project_id. --- .../java/com/google/auth/oauth2/UserCredentials.java | 2 +- .../javatests/com/google/auth/oauth2/UserCredentialsTest.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/UserCredentials.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/UserCredentials.java index 3670ac7a6804..5ec0920411d7 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/UserCredentials.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/UserCredentials.java @@ -328,7 +328,7 @@ private InputStream getUserCredentialsStream() throws IOException { json.put("client_secret", clientSecret); } if (quotaProjectId != null) { - json.put("quota_project", clientSecret); + json.put("quota_project_id", quotaProjectId); } json.setFactory(JSON_FACTORY); String text = json.toPrettyString(); diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/UserCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/UserCredentialsTest.java index aaabf4aeefec..b4b06743ee24 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/UserCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/UserCredentialsTest.java @@ -635,6 +635,7 @@ void saveAndRestoreUserCredential_saveAndRestored_doesNotThrow() throws IOExcept .setClientId(CLIENT_ID) .setClientSecret(CLIENT_SECRET) .setRefreshToken(REFRESH_TOKEN) + .setQuotaProjectId(QUOTA_PROJECT) .build(); File file = File.createTempFile("GOOGLE_APPLICATION_CREDENTIALS", null, null); @@ -649,6 +650,7 @@ void saveAndRestoreUserCredential_saveAndRestored_doesNotThrow() throws IOExcept assertEquals(userCredentials.getClientId(), restoredCredentials.getClientId()); assertEquals(userCredentials.getClientSecret(), restoredCredentials.getClientSecret()); assertEquals(userCredentials.getRefreshToken(), restoredCredentials.getRefreshToken()); + assertEquals(userCredentials.getQuotaProjectId(), restoredCredentials.getQuotaProjectId()); } } From a5ba6067abb00855466f31a53d037d8e61f45da0 Mon Sep 17 00:00:00 2001 From: Dhriti07 <56169283+Dhriti07@users.noreply.github.com> Date: Wed, 17 Jun 2026 15:03:46 +0530 Subject: [PATCH 17/82] feat(storage): add full object checksum validation for grpc flow (#13265) Adding full object checksum for grpc flow Refer to: go/full_checksum_java --------- Co-authored-by: Dhriti Chopra --- .../GapicUnbufferedReadableByteChannel.java | 77 ++- ...apicUnbufferedReadableByteChannelTest.java | 463 ++++++++++++++++++ 2 files changed, 525 insertions(+), 15 deletions(-) diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannel.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannel.java index cef751213c6d..f17bd942fd31 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannel.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannel.java @@ -49,6 +49,7 @@ import java.nio.channels.ScatteringByteChannel; import java.util.List; import java.util.Locale; +import java.util.OptionalLong; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.CancellationException; import java.util.concurrent.ExecutionException; @@ -91,7 +92,15 @@ final class GapicUnbufferedReadableByteChannel this.result = result; this.read = read; this.req = req; - this.hasher = hasher; + this.hasher = + (req.getReadOffset() == 0 && !(hasher instanceof Hasher.NoOpHasher)) + ? new CumulativeHasher( + hasher, + 0, + req.getReadLimit() <= 0 + ? OptionalLong.empty() + : OptionalLong.of(req.getReadLimit())) + : hasher; this.fetchOffset = new AtomicLong(req.getReadOffset()); this.blobOffset = req.getReadOffset(); this.retrier = retrier; @@ -154,7 +163,7 @@ public long read(ByteBuffer[] dsts, int offset, int length) throws IOException { if (take instanceof IOException) { IOException ioe = (IOException) take; if (alg.shouldRetry(ioe, null)) { - readObjectObserver = null; + cancelAndDrainCurrentObserver(); continue; } else { ioe.addSuppressed(new AsyncStorageTaskException()); @@ -165,7 +174,7 @@ public long read(ByteBuffer[] dsts, int offset, int length) throws IOException { Throwable throwable = (Throwable) take; BaseServiceException coalesce = StorageException.coalesce(throwable); if (alg.shouldRetry(coalesce, null)) { - readObjectObserver = null; + cancelAndDrainCurrentObserver(); continue; } else { close(); @@ -174,6 +183,7 @@ public long read(ByteBuffer[] dsts, int offset, int length) throws IOException { } if (take == EOF_MARKER) { complete = true; + validateCumulativeChecksum(); break; } @@ -240,7 +250,9 @@ private void drainQueue() throws IOException { while (queue.nonEmpty()) { try { java.lang.Object queueValue = queue.poll(); - if (queueValue instanceof ReadObjectResponse) { + if (queueValue instanceof java.io.Closeable) { + ((java.io.Closeable) queueValue).close(); + } else if (queueValue instanceof ReadObjectResponse) { ReadObjectResponse resp = (ReadObjectResponse) queueValue; ResponseContentLifecycleHandle handle = read.getResponseContentLifecycleManager().get(resp); @@ -273,6 +285,19 @@ private void drainQueue() throws IOException { } } + private void cancelAndDrainCurrentObserver() { + if (readObjectObserver != null) { + readObjectObserver.cancel(); + try { + drainQueue(); + } catch (IOException e) { + // drainQueue() in this context can be ignored because we are resetting the + // stream. + } + readObjectObserver = null; + } + } + ApiFuture getResult() { return result; } @@ -311,14 +336,27 @@ private IOException createError(String message) throws IOException { return new IOException(message, cause); } + private void validateCumulativeChecksum() throws IOException { + if (hasher instanceof CumulativeHasher) { + CumulativeHasher cumulativeHasher = (CumulativeHasher) hasher; + try { + cumulativeHasher.validateCumulativeChecksum(metadata); + } catch (UncheckedCumulativeChecksumMismatchException exception) { + throw new IOException(StorageException.coalesce(exception)); + } + } + } + private final class ReadObjectObserver extends StateCheckingResponseObserver { private final SettableApiFuture open = SettableApiFuture.create(); private final SettableApiFuture cancellation = SettableApiFuture.create(); private volatile StreamController controller; + private volatile boolean cancelled = false; void cancel() { + cancelled = true; controller.cancel(); } @@ -331,10 +369,13 @@ protected void onStartImpl(StreamController controller) { @Override protected void onResponseImpl(ReadObjectResponse response) { - controller.request(1); - open.set(null); try (ResponseContentLifecycleHandle handle = read.getResponseContentLifecycleManager().get(response)) { + if (cancelled) { + return; + } + controller.request(1); + open.set(null); ChecksummedData checksummedData = response.getChecksummedData(); ByteString content = checksummedData.getContent(); int contentSize = content.size(); @@ -348,6 +389,8 @@ protected void onResponseImpl(ReadObjectResponse response) { queue.offer(e); return; } + } else if (hasher instanceof CumulativeHasher) { + hasher.validateUnchecked(null, content); } if (response.hasMetadata()) { Object respMetadata = response.getMetadata(); @@ -380,6 +423,12 @@ protected void onResponseImpl(ReadObjectResponse response) { @Override protected void onErrorImpl(Throwable t) { + if (t instanceof CancellationException) { + cancellation.set(t); + } + if (cancelled) { + return; + } if (t instanceof OutOfRangeException) { try { queue.offer(EOF_MARKER); @@ -389,17 +438,15 @@ protected void onErrorImpl(Throwable t) { throw Code.ABORTED.toStatus().withCause(e).asRuntimeException(); } } - if (t instanceof CancellationException) { - cancellation.set(t); - } if (!open.isDone()) { open.setException(t); - } - try { - queue.offer(t); - } catch (InterruptedException e) { - Thread.currentThread().interrupt(); - throw Code.ABORTED.toStatus().withCause(e).asRuntimeException(); + } else { + try { + queue.offer(t); + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + throw Code.ABORTED.toStatus().withCause(e).asRuntimeException(); + } } } diff --git a/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannelTest.java b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannelTest.java index 27d96ef6f06f..c4b19e717c88 100644 --- a/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannelTest.java +++ b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannelTest.java @@ -18,6 +18,7 @@ import static com.google.cloud.storage.TestUtils.xxd; import static com.google.common.truth.Truth.assertThat; +import static org.junit.Assert.assertThrows; import com.google.api.core.SettableApiFuture; import com.google.api.gax.rpc.ApiCallContext; @@ -26,6 +27,8 @@ import com.google.cloud.storage.GrpcUtils.ZeroCopyServerStreamingCallable; import com.google.cloud.storage.Retrying.Retrier; import com.google.cloud.storage.it.ChecksummedTestContent; +import com.google.storage.v2.Object; +import com.google.storage.v2.ObjectChecksums; import com.google.storage.v2.ReadObjectRequest; import com.google.storage.v2.ReadObjectResponse; import java.io.IOException; @@ -75,4 +78,464 @@ public void call( assertThat(close.get()).isTrue(); } } + + @Test + public void validateCumulativeChecksum_success() throws IOException { + ChecksummedTestContent testContent = + ChecksummedTestContent.of(DataGenerator.base64Characters().genBytes(10)); + + Object metadata = + Object.newBuilder() + .setSize(testContent.length()) + .setChecksums(ObjectChecksums.newBuilder().setCrc32C(testContent.getCrc32c()).build()) + .build(); + + ResponseContentLifecycleManager manager = + ResponseContentLifecycleManager.noop(); + + try (GapicUnbufferedReadableByteChannel c = + new GapicUnbufferedReadableByteChannel( + SettableApiFuture.create(), + new ZeroCopyServerStreamingCallable<>( + new ServerStreamingCallable() { + @Override + public void call( + ReadObjectRequest request, + ResponseObserver respond, + ApiCallContext context) { + respond.onStart(TestUtils.nullStreamController()); + respond.onResponse( + ReadObjectResponse.newBuilder() + .setChecksummedData(testContent.asChecksummedData()) + .setMetadata(metadata) + .build()); + respond.onComplete(); + } + }, + manager), + ReadObjectRequest.getDefaultInstance(), + Hasher.defaultHasher(), + Retrier.attemptOnce(), + Retrying.neverRetry())) { + + ByteBuffer buffer = ByteBuffer.allocate(15); + int read = (int) c.read(new ByteBuffer[] {buffer}, 0, 1); + assertThat(read).isEqualTo(testContent.length()); + assertThat(xxd(buffer)).isEqualTo(xxd(testContent.getBytes())); + } + } + + @Test + public void validateCumulativeChecksum_failure() throws IOException { + ChecksummedTestContent testContent = + ChecksummedTestContent.of(DataGenerator.base64Characters().genBytes(10)); + + Object metadata = + Object.newBuilder() + .setSize(testContent.length()) + .setChecksums( + ObjectChecksums.newBuilder().setCrc32C(testContent.getCrc32c() + 1).build()) + .build(); + + ResponseContentLifecycleManager manager = + ResponseContentLifecycleManager.noop(); + + try (GapicUnbufferedReadableByteChannel c = + new GapicUnbufferedReadableByteChannel( + SettableApiFuture.create(), + new ZeroCopyServerStreamingCallable<>( + new ServerStreamingCallable() { + @Override + public void call( + ReadObjectRequest request, + ResponseObserver respond, + ApiCallContext context) { + respond.onStart(TestUtils.nullStreamController()); + respond.onResponse( + ReadObjectResponse.newBuilder() + .setChecksummedData(testContent.asChecksummedData()) + .setMetadata(metadata) + .build()); + respond.onComplete(); + } + }, + manager), + ReadObjectRequest.getDefaultInstance(), + Hasher.defaultHasher(), + Retrier.attemptOnce(), + Retrying.neverRetry())) { + + ByteBuffer buffer = ByteBuffer.allocate(15); + IOException exception = assertThrows(IOException.class, () -> c.read(buffer)); + assertThat(exception.getCause()).isInstanceOf(StorageException.class); + assertThat(exception.getCause().getCause()) + .isInstanceOf(UncheckedCumulativeChecksumMismatchException.class); + } + } + + @Test + public void validateCumulativeChecksum_disabled_noFailureOnMismatch() throws IOException { + ChecksummedTestContent testContent = + ChecksummedTestContent.of(DataGenerator.base64Characters().genBytes(10)); + + Object metadata = + Object.newBuilder() + .setSize(testContent.length()) + .setChecksums( + ObjectChecksums.newBuilder().setCrc32C(testContent.getCrc32c() + 1).build()) + .build(); + + ResponseContentLifecycleManager manager = + ResponseContentLifecycleManager.noop(); + + try (GapicUnbufferedReadableByteChannel c = + new GapicUnbufferedReadableByteChannel( + SettableApiFuture.create(), + new ZeroCopyServerStreamingCallable<>( + new ServerStreamingCallable() { + @Override + public void call( + ReadObjectRequest request, + ResponseObserver respond, + ApiCallContext context) { + respond.onStart(TestUtils.nullStreamController()); + respond.onResponse( + ReadObjectResponse.newBuilder() + .setChecksummedData(testContent.asChecksummedData()) + .setMetadata(metadata) + .build()); + respond.onComplete(); + } + }, + manager), + ReadObjectRequest.getDefaultInstance(), + Hasher.noop(), + Retrier.attemptOnce(), + Retrying.neverRetry())) { + + ByteBuffer buffer = ByteBuffer.allocate(15); + int read = (int) c.read(new ByteBuffer[] {buffer}, 0, 1); + assertThat(read).isEqualTo(testContent.length()); + assertThat(xxd(buffer)).isEqualTo(xxd(testContent.getBytes())); + } + } + + @Test + public void validateCumulativeChecksum_skippedForRangedRead() throws IOException { + ChecksummedTestContent testContent = + ChecksummedTestContent.of(DataGenerator.base64Characters().genBytes(10)); + + Object metadata = + Object.newBuilder() + .setSize(testContent.length()) + .setChecksums( + ObjectChecksums.newBuilder().setCrc32C(testContent.getCrc32c() + 1).build()) + .build(); + + ResponseContentLifecycleManager manager = + ResponseContentLifecycleManager.noop(); + + ReadObjectRequest req = ReadObjectRequest.newBuilder().setReadLimit(5).build(); + + try (GapicUnbufferedReadableByteChannel c = + new GapicUnbufferedReadableByteChannel( + SettableApiFuture.create(), + new ZeroCopyServerStreamingCallable<>( + new ServerStreamingCallable() { + @Override + public void call( + ReadObjectRequest request, + ResponseObserver respond, + ApiCallContext context) { + respond.onStart(TestUtils.nullStreamController()); + respond.onResponse( + ReadObjectResponse.newBuilder() + .setChecksummedData(testContent.slice(0, 5).asChecksummedData()) + .setMetadata(metadata) + .build()); + respond.onComplete(); + } + }, + manager), + req, + Hasher.defaultHasher(), + Retrier.attemptOnce(), + Retrying.neverRetry())) { + + ByteBuffer buffer = ByteBuffer.allocate(15); + int read = (int) c.read(buffer); + assertThat(read).isEqualTo(5); + assertThat(xxd(buffer)).isEqualTo(xxd(testContent.slice(0, 5).getBytes())); + } + } + + @Test + public void validateCumulativeChecksum_multipleChunks_success() throws IOException { + ChecksummedTestContent chunk1 = ChecksummedTestContent.of("abcde".getBytes()); + ChecksummedTestContent chunk2 = ChecksummedTestContent.of("fghij".getBytes()); + ChecksummedTestContent chunk3 = ChecksummedTestContent.of("klmno".getBytes()); + byte[] fullBytes = "abcdefghijklmno".getBytes(); + ChecksummedTestContent fullContent = ChecksummedTestContent.of(fullBytes); + + Object metadata = + Object.newBuilder() + .setSize(fullContent.length()) + .setChecksums(ObjectChecksums.newBuilder().setCrc32C(fullContent.getCrc32c()).build()) + .build(); + + ResponseContentLifecycleManager manager = + ResponseContentLifecycleManager.noop(); + + try (GapicUnbufferedReadableByteChannel c = + new GapicUnbufferedReadableByteChannel( + SettableApiFuture.create(), + new ZeroCopyServerStreamingCallable<>( + new ServerStreamingCallable() { + @Override + public void call( + ReadObjectRequest request, + ResponseObserver respond, + ApiCallContext context) { + respond.onStart(TestUtils.nullStreamController()); + new Thread( + () -> { + try { + respond.onResponse( + ReadObjectResponse.newBuilder() + .setChecksummedData(chunk1.asChecksummedData()) + .build()); + respond.onResponse( + ReadObjectResponse.newBuilder() + .setChecksummedData(chunk2.asChecksummedData()) + .build()); + respond.onResponse( + ReadObjectResponse.newBuilder() + .setChecksummedData(chunk3.asChecksummedData()) + .setMetadata(metadata) + .build()); + respond.onComplete(); + } catch (Throwable t) { + respond.onError(t); + } + }) + .start(); + } + }, + manager), + ReadObjectRequest.getDefaultInstance(), + Hasher.defaultHasher(), + Retrier.attemptOnce(), + Retrying.neverRetry())) { + + ByteBuffer buffer = ByteBuffer.allocate(20); + int read = (int) c.read(new ByteBuffer[] {buffer}, 0, 1); + assertThat(read).isEqualTo(15); + assertThat(xxd(buffer)).isEqualTo(xxd(fullContent.getBytes())); + } + } + + @Test + public void validateCumulativeChecksum_multipleChunks_failure() throws IOException { + ChecksummedTestContent chunk1 = ChecksummedTestContent.of("abcde".getBytes()); + ChecksummedTestContent chunk2 = ChecksummedTestContent.of("fghij".getBytes()); + ChecksummedTestContent chunk3 = ChecksummedTestContent.of("klmno".getBytes()); + byte[] fullBytes = "abcdefghijklmno".getBytes(); + ChecksummedTestContent fullContent = ChecksummedTestContent.of(fullBytes); + + Object metadata = + Object.newBuilder() + .setSize(fullContent.length()) + .setChecksums( + ObjectChecksums.newBuilder().setCrc32C(fullContent.getCrc32c() + 1).build()) + .build(); + + ResponseContentLifecycleManager manager = + ResponseContentLifecycleManager.noop(); + + try (GapicUnbufferedReadableByteChannel c = + new GapicUnbufferedReadableByteChannel( + SettableApiFuture.create(), + new ZeroCopyServerStreamingCallable<>( + new ServerStreamingCallable() { + @Override + public void call( + ReadObjectRequest request, + ResponseObserver respond, + ApiCallContext context) { + respond.onStart(TestUtils.nullStreamController()); + new Thread( + () -> { + try { + respond.onResponse( + ReadObjectResponse.newBuilder() + .setChecksummedData(chunk1.asChecksummedData()) + .build()); + respond.onResponse( + ReadObjectResponse.newBuilder() + .setChecksummedData(chunk2.asChecksummedData()) + .build()); + respond.onResponse( + ReadObjectResponse.newBuilder() + .setChecksummedData(chunk3.asChecksummedData()) + .setMetadata(metadata) + .build()); + respond.onComplete(); + } catch (Throwable t) { + respond.onError(t); + } + }) + .start(); + } + }, + manager), + ReadObjectRequest.getDefaultInstance(), + Hasher.defaultHasher(), + Retrier.attemptOnce(), + Retrying.neverRetry())) { + + ByteBuffer buffer = ByteBuffer.allocate(20); + IOException exception = + assertThrows( + IOException.class, + () -> { + c.read(new ByteBuffer[] {buffer}, 0, 1); + }); + assertThat(exception.getCause()).isInstanceOf(StorageException.class); + assertThat(exception.getCause().getCause()) + .isInstanceOf(UncheckedCumulativeChecksumMismatchException.class); + } + } + + @Test + public void validateCumulativeChecksum_metadataMissingCrc32c_skipped() throws IOException { + ChecksummedTestContent testContent = + ChecksummedTestContent.of(DataGenerator.base64Characters().genBytes(10)); + + Object metadata = + Object.newBuilder() + .setSize(testContent.length()) + .setChecksums(ObjectChecksums.newBuilder().build()) + .build(); + + ResponseContentLifecycleManager manager = + ResponseContentLifecycleManager.noop(); + + try (GapicUnbufferedReadableByteChannel c = + new GapicUnbufferedReadableByteChannel( + SettableApiFuture.create(), + new ZeroCopyServerStreamingCallable<>( + new ServerStreamingCallable() { + @Override + public void call( + ReadObjectRequest request, + ResponseObserver respond, + ApiCallContext context) { + respond.onStart(TestUtils.nullStreamController()); + respond.onResponse( + ReadObjectResponse.newBuilder() + .setChecksummedData(testContent.asChecksummedData()) + .setMetadata(metadata) + .build()); + respond.onComplete(); + } + }, + manager), + ReadObjectRequest.getDefaultInstance(), + Hasher.defaultHasher(), + Retrier.attemptOnce(), + Retrying.neverRetry())) { + + ByteBuffer buffer = ByteBuffer.allocate(15); + int read = (int) c.read(buffer); + assertThat(read).isEqualTo(10); + } + } + + @Test + public void validateCumulativeChecksum_nonZeroOffset_skipped() throws IOException { + ChecksummedTestContent testContent = + ChecksummedTestContent.of(DataGenerator.base64Characters().genBytes(10)); + + Object metadata = + Object.newBuilder() + .setSize(testContent.length()) + .setChecksums( + ObjectChecksums.newBuilder().setCrc32C(testContent.getCrc32c() + 1).build()) + .build(); + + ResponseContentLifecycleManager manager = + ResponseContentLifecycleManager.noop(); + + ReadObjectRequest req = ReadObjectRequest.newBuilder().setReadOffset(5).build(); + + try (GapicUnbufferedReadableByteChannel c = + new GapicUnbufferedReadableByteChannel( + SettableApiFuture.create(), + new ZeroCopyServerStreamingCallable<>( + new ServerStreamingCallable() { + @Override + public void call( + ReadObjectRequest request, + ResponseObserver respond, + ApiCallContext context) { + respond.onStart(TestUtils.nullStreamController()); + respond.onResponse( + ReadObjectResponse.newBuilder() + .setChecksummedData(testContent.slice(5, 5).asChecksummedData()) + .setMetadata(metadata) + .build()); + respond.onComplete(); + } + }, + manager), + req, + Hasher.defaultHasher(), + Retrier.attemptOnce(), + Retrying.neverRetry())) { + + ByteBuffer buffer = ByteBuffer.allocate(15); + int read = (int) c.read(buffer); + assertThat(read).isEqualTo(5); + } + } + + @Test + public void validateCumulativeChecksum_zeroByteObject_success() throws IOException { + Object metadata = + Object.newBuilder() + .setSize(0) + .setChecksums(ObjectChecksums.newBuilder().setCrc32C(0).build()) + .build(); + + ResponseContentLifecycleManager manager = + ResponseContentLifecycleManager.noop(); + + try (GapicUnbufferedReadableByteChannel c = + new GapicUnbufferedReadableByteChannel( + SettableApiFuture.create(), + new ZeroCopyServerStreamingCallable<>( + new ServerStreamingCallable() { + @Override + public void call( + ReadObjectRequest request, + ResponseObserver respond, + ApiCallContext context) { + respond.onStart(TestUtils.nullStreamController()); + respond.onResponse( + ReadObjectResponse.newBuilder().setMetadata(metadata).build()); + respond.onComplete(); + } + }, + manager), + ReadObjectRequest.getDefaultInstance(), + Hasher.defaultHasher(), + Retrier.attemptOnce(), + Retrying.neverRetry())) { + + ByteBuffer buffer = ByteBuffer.allocate(15); + int read = (int) c.read(buffer); + assertThat(read).isEqualTo(0); + assertThat(c.read(buffer)).isEqualTo(-1); + } + } } From 77e84a9f02a96974606924ad21e00c14a313cf5f Mon Sep 17 00:00:00 2001 From: Wes Tarle Date: Wed, 17 Jun 2026 07:06:39 -0400 Subject: [PATCH 18/82] fix(auth): handle missing APPDATA on Windows gracefully (#13471) Other languages (such as Python and Node.js) handle missing HOME or APPDATA directories by falling back gracefully or failing with a structured Error/Exception. This change brings Java into parity by ensuring an orderly IOException is thrown instead of an opaque NullPointerException when APPDATA is null. Fixes #12565 --- .../oauth2/DefaultCredentialsProvider.java | 2 +- .../google/auth/oauth2/GoogleAuthUtils.java | 18 ++++++++++++++---- .../oauth2/DefaultCredentialsProviderTest.java | 14 ++++++++++++++ 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/DefaultCredentialsProvider.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/DefaultCredentialsProvider.java index acbfe28af8d5..3ce69b391609 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/DefaultCredentialsProvider.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/DefaultCredentialsProvider.java @@ -239,7 +239,7 @@ private final GoogleCredentials getDefaultCredentialsUnsynchronized( return credentials; } - private final File getWellKnownCredentialsFile() { + private final File getWellKnownCredentialsFile() throws IOException { return GoogleAuthUtils.getWellKnownCredentialsFile(this); } diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/GoogleAuthUtils.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/GoogleAuthUtils.java index d82548a082fd..973411aff240 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/GoogleAuthUtils.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/GoogleAuthUtils.java @@ -32,6 +32,7 @@ package com.google.auth.oauth2; import java.io.File; +import java.io.IOException; /** * This public class provides shared utilities for common OAuth2 utils or ADC. It also exposes @@ -45,7 +46,7 @@ public class GoogleAuthUtils { * @return the path to the well-known Application Default Credentials file location */ public static final String getWellKnownCredentialsPath() { - return getWellKnownCredentialsFile(DefaultCredentialsProvider.DEFAULT).getAbsolutePath(); + return getWellKnownCredentialsPath(DefaultCredentialsProvider.DEFAULT); } /** @@ -54,7 +55,11 @@ public static final String getWellKnownCredentialsPath() { * @return the path to the well-known Application Default Credentials file location */ static final String getWellKnownCredentialsPath(DefaultCredentialsProvider provider) { - return getWellKnownCredentialsFile(provider).getAbsolutePath(); + try { + return getWellKnownCredentialsFile(provider).getAbsolutePath(); + } catch (IOException e) { + throw new RuntimeException(e); + } } /** @@ -64,13 +69,18 @@ static final String getWellKnownCredentialsPath(DefaultCredentialsProvider provi * purposes) * @return the well-known Application Default Credentials file */ - static final File getWellKnownCredentialsFile(DefaultCredentialsProvider provider) { + static final File getWellKnownCredentialsFile(DefaultCredentialsProvider provider) + throws IOException { File cloudConfigPath; String envPath = provider.getEnv("CLOUDSDK_CONFIG"); if (envPath != null) { cloudConfigPath = new File(envPath); } else if (provider.getOsName().indexOf("windows") >= 0) { - File appDataPath = new File(provider.getEnv("APPDATA")); + String appData = provider.getEnv("APPDATA"); + if (appData == null) { + throw new IOException(DefaultCredentialsProvider.CLOUDSDK_MISSING_CREDENTIALS); + } + File appDataPath = new File(appData); cloudConfigPath = new File(appDataPath, provider.CLOUDSDK_CONFIG_DIRECTORY); } else { File configPath = new File(provider.getProperty("user.home", ""), ".config"); diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/DefaultCredentialsProviderTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/DefaultCredentialsProviderTest.java index 2efb9bc92b87..dbfb70ea0038 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/DefaultCredentialsProviderTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/DefaultCredentialsProviderTest.java @@ -115,6 +115,20 @@ void getDefaultCredentials_noCredentials_throws() { assertEquals(DefaultCredentialsProvider.CLOUDSDK_MISSING_CREDENTIALS, message); } + @Test + void getDefaultCredentials_windowsMissingAppData_throws() { + // When APPDATA is unset on Windows, the ADC resolution should fail gracefully + // with a structured missing credentials exception, rather than crashing with an NPE. + MockHttpTransportFactory transportFactory = new MockHttpTransportFactory(); + TestDefaultCredentialsProvider testProvider = new TestDefaultCredentialsProvider(); + testProvider.setProperty("os.name", "windows"); + testProvider.setEnv("APPDATA", null); + + IOException e = + assertThrows(IOException.class, () -> testProvider.getDefaultCredentials(transportFactory)); + assertEquals(DefaultCredentialsProvider.CLOUDSDK_MISSING_CREDENTIALS, e.getMessage()); + } + @Test void getDefaultCredentials_noCredentialsSandbox_throwsNonSecurity() { MockHttpTransportFactory transportFactory = new MockHttpTransportFactory(); From 6078bae7b106e1a9c357087dc1fa8fc1a3fae74d Mon Sep 17 00:00:00 2001 From: rahul2393 Date: Wed, 17 Jun 2026 16:42:46 +0530 Subject: [PATCH 19/82] test(spanner): deflake location-aware retry harness test (#13504) Fixes: b/509979376 --- ...nAwareSharedBackendReplicaHarnessTest.java | 549 ++++++++++-------- 1 file changed, 316 insertions(+), 233 deletions(-) diff --git a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/LocationAwareSharedBackendReplicaHarnessTest.java b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/LocationAwareSharedBackendReplicaHarnessTest.java index 6ea248288ac1..84643ad21207 100644 --- a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/LocationAwareSharedBackendReplicaHarnessTest.java +++ b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/LocationAwareSharedBackendReplicaHarnessTest.java @@ -57,13 +57,11 @@ import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; -import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @RunWith(JUnit4.class) -@Ignore("Flaky test, tracked in b/509979376") public class LocationAwareSharedBackendReplicaHarnessTest { private static final String PROJECT = "fake-project"; @@ -123,16 +121,11 @@ public void singleUseReadReroutesOnResourceExhaustedForBypassTraffic() throws Ex DatabaseClient client = spanner.getDatabaseClient(DatabaseId.of(PROJECT, INSTANCE, DATABASE)); seedLocationMetadata(client); - int firstReplicaIndex = waitForReplicaRoutedRead(client, harness); - int secondReplicaIndex = 1 - firstReplicaIndex; + waitForReplicaRoutedRead(client, harness); harness.clearRequests(); - harness - .replicas - .get(firstReplicaIndex) - .putMethodErrors( - SharedBackendReplicaHarness.METHOD_STREAMING_READ, - resourceExhausted("busy-routed-replica")); + harness.backend.setStreamingReadExecutionTime( + SimulatedExecutionTime.ofStreamException(resourceExhausted("busy-routed-replica"), 0L)); try (ResultSet resultSet = client @@ -145,45 +138,15 @@ public void singleUseReadReroutesOnResourceExhaustedForBypassTraffic() throws Ex assertTrue(resultSet.next()); } + String diagnostics = routingDiagnostics(harness); + List attempts = streamingReadAttempts(harness); assertEquals( - 1, - harness - .replicas - .get(firstReplicaIndex) - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .size()); - assertEquals( - 1, - harness - .replicas - .get(secondReplicaIndex) - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .size()); - assertEquals( - 0, - harness - .defaultReplica - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .size()); - ReadRequest replicaARequest = - (ReadRequest) - harness - .replicas - .get(firstReplicaIndex) - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .get(0); - assertTrue(replicaARequest.getResumeToken().isEmpty()); - assertRetriedOnSameLogicalRequest( - harness - .replicas - .get(firstReplicaIndex) - .getRequestIds(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .get(0), - harness - .replicas - .get(secondReplicaIndex) - .getRequestIds(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .get(0)); + "Expected original request and retry request on replica endpoints.\n" + diagnostics, + 2, + attempts.size()); + assertDefaultReplicaUnused(harness, diagnostics); + assertAllResumeTokensEmpty(attempts, diagnostics); + assertRetriedOnDifferentReplicasInEitherOrder(attempts.get(0), attempts.get(1), diagnostics); } } @@ -194,16 +157,12 @@ public void singleUseReadCooldownSkipsReplicaOnNextRequestForBypassTraffic() thr DatabaseClient client = spanner.getDatabaseClient(DatabaseId.of(PROJECT, INSTANCE, DATABASE)); seedLocationMetadata(client); - int firstReplicaIndex = waitForReplicaRoutedRead(client, harness); - int secondReplicaIndex = 1 - firstReplicaIndex; + waitForReplicaRoutedRead(client, harness); harness.clearRequests(); - harness - .replicas - .get(firstReplicaIndex) - .putMethodErrors( - SharedBackendReplicaHarness.METHOD_STREAMING_READ, - resourceExhaustedWithRetryInfo("busy-routed-replica")); + harness.backend.setStreamingReadExecutionTime( + SimulatedExecutionTime.ofStreamException( + resourceExhaustedWithRetryInfo("busy-routed-replica"), 0L)); try (ResultSet firstRead = client @@ -227,49 +186,23 @@ public void singleUseReadCooldownSkipsReplicaOnNextRequestForBypassTraffic() thr assertTrue(secondRead.next()); } + String diagnostics = routingDiagnostics(harness); + List attempts = streamingReadAttempts(harness); assertEquals( - 1, - harness - .replicas - .get(firstReplicaIndex) - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .size()); - assertEquals( - 2, - harness - .replicas - .get(secondReplicaIndex) - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .size()); - assertEquals( - 0, - harness - .defaultReplica - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .size()); - List replicaBRequests = - harness - .replicas - .get(secondReplicaIndex) - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ); - for (AbstractMessage request : replicaBRequests) { - assertTrue(((ReadRequest) request).getResumeToken().isEmpty()); - } - List replicaBRequestIds = - harness - .replicas - .get(secondReplicaIndex) - .getRequestIds(SharedBackendReplicaHarness.METHOD_STREAMING_READ); + "Expected failed original request, retry request, and next request.\n" + diagnostics, + 3, + attempts.size()); + assertDefaultReplicaUnused(harness, diagnostics); + assertAllResumeTokensEmpty(attempts, diagnostics); + + int originalReplicaIndex = findSingleReplicaWithRequestCount(harness, 1, diagnostics); + int routedReplicaIndex = findSingleReplicaWithRequestCount(harness, 2, diagnostics); + ReplicaRequestAttempt originalAttempt = + attemptsForReplica(attempts, originalReplicaIndex).get(0); + List routedAttempts = attemptsForReplica(attempts, routedReplicaIndex); assertRetriedOnSameLogicalRequest( - harness - .replicas - .get(firstReplicaIndex) - .getRequestIds(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .get(0), - replicaBRequestIds.get(0)); - assertNotEquals( - XGoogSpannerRequestId.of(replicaBRequestIds.get(0)).getLogicalRequestKey(), - XGoogSpannerRequestId.of(replicaBRequestIds.get(1)).getLogicalRequestKey()); + originalAttempt.requestId, routedAttempts.get(0).requestId, diagnostics); + assertDifferentLogicalRequests(routedAttempts.get(0), routedAttempts.get(1), diagnostics); } } @@ -280,15 +213,11 @@ public void singleUseReadReroutesOnUnavailableForBypassTraffic() throws Exceptio DatabaseClient client = spanner.getDatabaseClient(DatabaseId.of(PROJECT, INSTANCE, DATABASE)); seedLocationMetadata(client); - int firstReplicaIndex = waitForReplicaRoutedRead(client, harness); - int secondReplicaIndex = 1 - firstReplicaIndex; + waitForReplicaRoutedRead(client, harness); harness.clearRequests(); - harness - .replicas - .get(firstReplicaIndex) - .putMethodErrors( - SharedBackendReplicaHarness.METHOD_STREAMING_READ, unavailable("isolated-replica")); + harness.backend.setStreamingReadExecutionTime( + SimulatedExecutionTime.ofStreamException(unavailable("isolated-replica"), 0L)); try (ResultSet resultSet = client @@ -301,45 +230,15 @@ public void singleUseReadReroutesOnUnavailableForBypassTraffic() throws Exceptio assertTrue(resultSet.next()); } + String diagnostics = routingDiagnostics(harness); + List attempts = streamingReadAttempts(harness); assertEquals( - 1, - harness - .replicas - .get(firstReplicaIndex) - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .size()); - assertEquals( - 1, - harness - .replicas - .get(secondReplicaIndex) - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .size()); - assertEquals( - 0, - harness - .defaultReplica - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .size()); - ReadRequest replicaARequest = - (ReadRequest) - harness - .replicas - .get(firstReplicaIndex) - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .get(0); - assertTrue(replicaARequest.getResumeToken().isEmpty()); - assertRetriedOnSameLogicalRequest( - harness - .replicas - .get(firstReplicaIndex) - .getRequestIds(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .get(0), - harness - .replicas - .get(secondReplicaIndex) - .getRequestIds(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .get(0)); + "Expected original request and retry request on replica endpoints.\n" + diagnostics, + 2, + attempts.size()); + assertDefaultReplicaUnused(harness, diagnostics); + assertAllResumeTokensEmpty(attempts, diagnostics); + assertRetriedOnDifferentReplicasInEitherOrder(attempts.get(0), attempts.get(1), diagnostics); } } @@ -351,15 +250,11 @@ public void singleUseReadCooldownSkipsUnavailableReplicaOnNextRequestForBypassTr DatabaseClient client = spanner.getDatabaseClient(DatabaseId.of(PROJECT, INSTANCE, DATABASE)); seedLocationMetadata(client); - int firstReplicaIndex = waitForReplicaRoutedRead(client, harness); - int secondReplicaIndex = 1 - firstReplicaIndex; + waitForReplicaRoutedRead(client, harness); harness.clearRequests(); - harness - .replicas - .get(firstReplicaIndex) - .putMethodErrors( - SharedBackendReplicaHarness.METHOD_STREAMING_READ, unavailable("isolated-replica")); + harness.backend.setStreamingReadExecutionTime( + SimulatedExecutionTime.ofStreamException(unavailable("isolated-replica"), 0L)); try (ResultSet firstRead = client @@ -383,49 +278,23 @@ public void singleUseReadCooldownSkipsUnavailableReplicaOnNextRequestForBypassTr assertTrue(secondRead.next()); } + String diagnostics = routingDiagnostics(harness); + List attempts = streamingReadAttempts(harness); assertEquals( - 1, - harness - .replicas - .get(firstReplicaIndex) - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .size()); - assertEquals( - 2, - harness - .replicas - .get(secondReplicaIndex) - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .size()); - assertEquals( - 0, - harness - .defaultReplica - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .size()); - List replicaBRequests = - harness - .replicas - .get(secondReplicaIndex) - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ); - for (AbstractMessage request : replicaBRequests) { - assertTrue(((ReadRequest) request).getResumeToken().isEmpty()); - } - List replicaBRequestIds = - harness - .replicas - .get(secondReplicaIndex) - .getRequestIds(SharedBackendReplicaHarness.METHOD_STREAMING_READ); + "Expected failed original request, retry request, and next request.\n" + diagnostics, + 3, + attempts.size()); + assertDefaultReplicaUnused(harness, diagnostics); + assertAllResumeTokensEmpty(attempts, diagnostics); + + int originalReplicaIndex = findSingleReplicaWithRequestCount(harness, 1, diagnostics); + int routedReplicaIndex = findSingleReplicaWithRequestCount(harness, 2, diagnostics); + ReplicaRequestAttempt originalAttempt = + attemptsForReplica(attempts, originalReplicaIndex).get(0); + List routedAttempts = attemptsForReplica(attempts, routedReplicaIndex); assertRetriedOnSameLogicalRequest( - harness - .replicas - .get(firstReplicaIndex) - .getRequestIds(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .get(0), - replicaBRequestIds.get(0)); - assertNotEquals( - XGoogSpannerRequestId.of(replicaBRequestIds.get(0)).getLogicalRequestKey(), - XGoogSpannerRequestId.of(replicaBRequestIds.get(1)).getLogicalRequestKey()); + originalAttempt.requestId, routedAttempts.get(0).requestId, diagnostics); + assertDifferentLogicalRequests(routedAttempts.get(0), routedAttempts.get(1), diagnostics); } } @@ -437,8 +306,7 @@ public void singleUseReadMidStreamRecvFailureWithoutRetryInfoRetriesForBypassTra DatabaseClient client = spanner.getDatabaseClient(DatabaseId.of(PROJECT, INSTANCE, DATABASE)); seedLocationMetadata(client); - int firstReplicaIndex = waitForReplicaRoutedRead(client, harness); - int secondReplicaIndex = 1 - firstReplicaIndex; + waitForReplicaRoutedRead(client, harness); harness.clearRequests(); harness.backend.setStreamingReadExecutionTime( @@ -459,54 +327,30 @@ public void singleUseReadMidStreamRecvFailureWithoutRetryInfoRetriesForBypassTra } assertEquals(Arrays.asList("b", "c", "d"), rows); + String diagnostics = routingDiagnostics(harness); + List attempts = streamingReadAttempts(harness); assertEquals( - 1, - harness - .replicas - .get(firstReplicaIndex) - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .size()); - assertEquals( - 1, - harness - .replicas - .get(secondReplicaIndex) - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .size()); + "Expected original request and retry request on replica endpoints.\n" + diagnostics, + 2, + attempts.size()); assertEquals( + "Default replica should not receive bypass traffic.\n" + diagnostics, 0, harness .defaultReplica .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) .size()); - ReadRequest replicaARequest = - (ReadRequest) - harness - .replicas - .get(firstReplicaIndex) - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .get(0); - ReadRequest replicaBRequest = - (ReadRequest) - harness - .replicas - .get(secondReplicaIndex) - .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .get(0); - assertTrue(replicaARequest.getResumeToken().isEmpty()); - assertEquals(RESUME_TOKEN_AFTER_FIRST_ROW, replicaBRequest.getResumeToken()); + ReplicaRequestAttempt originalRequest = + findSingleAttemptWithResumeToken(harness, attempts, ByteString.EMPTY); + ReplicaRequestAttempt retryRequest = + findSingleAttemptWithResumeToken(harness, attempts, RESUME_TOKEN_AFTER_FIRST_ROW); + assertNotEquals( + "Retry should reroute to a different replica.\n" + diagnostics, + originalRequest.replicaIndex, + retryRequest.replicaIndex); assertRetriedOnSameLogicalRequest( - harness - .replicas - .get(firstReplicaIndex) - .getRequestIds(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .get(0), - harness - .replicas - .get(secondReplicaIndex) - .getRequestIds(SharedBackendReplicaHarness.METHOD_STREAMING_READ) - .get(0)); + originalRequest.requestId, retryRequest.requestId, diagnostics); } } @@ -784,6 +628,202 @@ private static RoutingHint exactReadRoutingHint(RecipeList recipes) { return request.getRoutingHint(); } + private static final class ReplicaRequestAttempt { + private final int replicaIndex; + private final ReadRequest request; + private final String requestId; + + private ReplicaRequestAttempt(int replicaIndex, ReadRequest request, String requestId) { + this.replicaIndex = replicaIndex; + this.request = request; + this.requestId = requestId; + } + } + + private static List streamingReadAttempts( + SharedBackendReplicaHarness harness) { + List attempts = new ArrayList<>(); + for (int replicaIndex = 0; replicaIndex < harness.replicas.size(); replicaIndex++) { + SharedBackendReplicaHarness.HookedReplicaSpannerService replica = + harness.replicas.get(replicaIndex); + List requests = + replica.getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ); + List requestIds = + replica.getRequestIds(SharedBackendReplicaHarness.METHOD_STREAMING_READ); + assertEquals( + "StreamingRead requests and request ids should be recorded in pairs.\n" + + routingDiagnostics(harness), + requests.size(), + requestIds.size()); + for (int requestIndex = 0; requestIndex < requests.size(); requestIndex++) { + attempts.add( + new ReplicaRequestAttempt( + replicaIndex, + (ReadRequest) requests.get(requestIndex), + requestIds.get(requestIndex))); + } + } + return attempts; + } + + private static void assertDefaultReplicaUnused( + SharedBackendReplicaHarness harness, String diagnostics) { + assertEquals( + "Expected default endpoint to receive no StreamingRead requests.\n" + diagnostics, + 0, + harness + .defaultReplica + .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) + .size()); + } + + private static void assertAllResumeTokensEmpty( + List attempts, String diagnostics) { + for (ReplicaRequestAttempt attempt : attempts) { + assertTrue( + "Expected all retry/retry-info requests to restart without resume token.\n" + diagnostics, + attempt.request.getResumeToken().isEmpty()); + } + } + + private static int findSingleReplicaWithRequestCount( + SharedBackendReplicaHarness harness, int expectedCount, String diagnostics) { + int match = -1; + for (int replicaIndex = 0; replicaIndex < harness.replicas.size(); replicaIndex++) { + int requestCount = + harness + .replicas + .get(replicaIndex) + .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) + .size(); + if (requestCount == expectedCount) { + if (match >= 0) { + fail( + "Expected exactly one replica with " + + expectedCount + + " StreamingRead requests, but found multiple.\n" + + diagnostics); + } + match = replicaIndex; + } + } + if (match < 0) { + fail( + "Expected exactly one replica with " + + expectedCount + + " StreamingRead requests, but found none.\n" + + diagnostics); + } + return match; + } + + private static List attemptsForReplica( + List attempts, int replicaIndex) { + List result = new ArrayList<>(); + for (ReplicaRequestAttempt attempt : attempts) { + if (attempt.replicaIndex == replicaIndex) { + result.add(attempt); + } + } + return result; + } + + private static void assertRetriedOnDifferentReplicasInEitherOrder( + ReplicaRequestAttempt firstAttempt, ReplicaRequestAttempt secondAttempt, String diagnostics) { + assertNotEquals( + "Retry should reroute to different replica.\n" + diagnostics, + firstAttempt.replicaIndex, + secondAttempt.replicaIndex); + assertRetriedOnSameLogicalRequestInEitherOrder( + firstAttempt.requestId, secondAttempt.requestId, diagnostics); + } + + private static void assertDifferentLogicalRequests( + ReplicaRequestAttempt firstAttempt, ReplicaRequestAttempt secondAttempt, String diagnostics) { + if (firstAttempt.requestId == null || secondAttempt.requestId == null) { + fail( + "Missing x-goog-spanner-request-id header. firstRequestId=" + + firstAttempt.requestId + + ", secondRequestId=" + + secondAttempt.requestId + + "\n" + + diagnostics); + } + assertNotEquals( + "Expected separate reads to use distinct logical request ids.\n" + diagnostics, + XGoogSpannerRequestId.of(firstAttempt.requestId).getLogicalRequestKey(), + XGoogSpannerRequestId.of(secondAttempt.requestId).getLogicalRequestKey()); + } + + private static ReplicaRequestAttempt findSingleAttemptWithResumeToken( + SharedBackendReplicaHarness harness, + List attempts, + ByteString resumeToken) { + ReplicaRequestAttempt match = null; + for (ReplicaRequestAttempt attempt : attempts) { + if (attempt.request.getResumeToken().equals(resumeToken)) { + if (match != null) { + fail( + "Expected exactly one StreamingRead request with resume token " + + resumeToken.toStringUtf8() + + ", but found multiple.\n" + + routingDiagnostics(harness)); + } + match = attempt; + } + } + if (match == null) { + fail( + "Expected exactly one StreamingRead request with resume token " + + resumeToken.toStringUtf8() + + ", but found none.\n" + + routingDiagnostics(harness)); + } + return match; + } + + private static String routingDiagnostics(SharedBackendReplicaHarness harness) { + StringBuilder builder = new StringBuilder(); + appendStreamingReadDiagnostics(builder, "default", -1, harness.defaultReplica); + for (int replicaIndex = 0; replicaIndex < harness.replicas.size(); replicaIndex++) { + appendStreamingReadDiagnostics( + builder, "replica", replicaIndex, harness.replicas.get(replicaIndex)); + } + return builder.toString(); + } + + private static void appendStreamingReadDiagnostics( + StringBuilder builder, + String label, + int replicaIndex, + SharedBackendReplicaHarness.HookedReplicaSpannerService replica) { + List requests = + replica.getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ); + List requestIds = + replica.getRequestIds(SharedBackendReplicaHarness.METHOD_STREAMING_READ); + builder + .append(label) + .append(replicaIndex >= 0 ? "[" + replicaIndex + "]" : "") + .append(" requestCount=") + .append(requests.size()) + .append(" requestIdCount=") + .append(requestIds.size()) + .append('\n'); + for (int requestIndex = 0; requestIndex < requests.size(); requestIndex++) { + ReadRequest request = (ReadRequest) requests.get(requestIndex); + builder + .append(" #") + .append(requestIndex) + .append(" requestId=") + .append(requestIndex < requestIds.size() ? requestIds.get(requestIndex) : "") + .append(" resumeToken=") + .append(request.getResumeToken().toStringUtf8()) + .append(" routingHint=") + .append(request.getRoutingHint()) + .append('\n'); + } + } + private static io.grpc.StatusRuntimeException resourceExhaustedWithRetryInfo(String description) { Metadata trailers = new Metadata(); trailers.put( @@ -805,12 +845,55 @@ private static StatusRuntimeException unavailable(String description) { return Status.UNAVAILABLE.withDescription(description).asRuntimeException(); } + private static void assertRetriedOnSameLogicalRequestInEitherOrder( + String firstRequestId, String secondRequestId, String diagnostics) { + if (firstRequestId == null || secondRequestId == null) { + fail( + "Missing x-goog-spanner-request-id header. firstRequestId=" + + firstRequestId + + ", secondRequestId=" + + secondRequestId + + "\n" + + diagnostics); + } + XGoogSpannerRequestId first = XGoogSpannerRequestId.of(firstRequestId); + XGoogSpannerRequestId second = XGoogSpannerRequestId.of(secondRequestId); + assertEquals( + "Retry should use same logical request.\n" + diagnostics, + first.getLogicalRequestKey(), + second.getLogicalRequestKey()); + assertEquals( + "Retry attempts should be consecutive.\n" + diagnostics, + 1, + Math.abs(first.getAttempt() - second.getAttempt())); + } + private static void assertRetriedOnSameLogicalRequest( String firstRequestId, String secondRequestId) { + assertRetriedOnSameLogicalRequest(firstRequestId, secondRequestId, ""); + } + + private static void assertRetriedOnSameLogicalRequest( + String firstRequestId, String secondRequestId, String diagnostics) { + if (firstRequestId == null || secondRequestId == null) { + fail( + "Missing x-goog-spanner-request-id header. firstRequestId=" + + firstRequestId + + ", secondRequestId=" + + secondRequestId + + "\n" + + diagnostics); + } XGoogSpannerRequestId first = XGoogSpannerRequestId.of(firstRequestId); XGoogSpannerRequestId second = XGoogSpannerRequestId.of(secondRequestId); - assertEquals(first.getLogicalRequestKey(), second.getLogicalRequestKey()); - assertEquals(first.getAttempt() + 1, second.getAttempt()); + assertEquals( + "Retry should use same logical request.\n" + diagnostics, + first.getLogicalRequestKey(), + second.getLogicalRequestKey()); + assertEquals( + "Retry should increment request attempt.\n" + diagnostics, + first.getAttempt() + 1, + second.getAttempt()); } private static com.google.spanner.v1.ResultSet singleRowReadResultSet(String value) { From feda2b16c957314e8c4c9c1da11d4eef045ed65a Mon Sep 17 00:00:00 2001 From: Min Zhu Date: Wed, 17 Jun 2026 10:47:50 -0400 Subject: [PATCH 20/82] chore(ci): update_librarian_googleapis workflow run librarian at version in config (#13505) Fix workflow to run librarian at version configured in librarian.yaml consistently. Fixes https://github.com/googleapis/librarian/issues/6466 --- .../workflows/update_librarian_googleapis.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update_librarian_googleapis.yaml b/.github/workflows/update_librarian_googleapis.yaml index 848ef6feb359..e8143025db43 100644 --- a/.github/workflows/update_librarian_googleapis.yaml +++ b/.github/workflows/update_librarian_googleapis.yaml @@ -57,15 +57,18 @@ jobs: uses: actions/setup-go@v5 with: go-version: '>=1.20.2' - - name: Run librarian update + - name: Get librarian version + id: librarian run: | version=$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version) - go run "github.com/googleapis/librarian/cmd/librarian@${version}" update sources.googleapis + echo "version=${version}" >> $GITHUB_OUTPUT + - name: Run librarian update + run: | + go run "github.com/googleapis/librarian/cmd/librarian@${{ steps.librarian.outputs.version }}" update sources.googleapis - name: Get latest commit id: commit run: | - version=$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version) - new_commit=$(go run "github.com/googleapis/librarian/cmd/librarian@${version}" config get sources.googleapis.commit) + new_commit=$(go run "github.com/googleapis/librarian/cmd/librarian@${{ steps.librarian.outputs.version }}" config get sources.googleapis.commit) echo "new_commit=${new_commit}" >> $GITHUB_OUTPUT echo "short_commit=${new_commit:0:7}" >> $GITHUB_OUTPUT # TODO(https://github.com/googleapis/librarian/issues/6220): Remove this step. @@ -115,14 +118,14 @@ jobs: - name: Run librarian install if: steps.detect_librarian.outputs.has_changes == 'true' run: | - go run github.com/googleapis/librarian/cmd/librarian@latest install + go run "github.com/googleapis/librarian/cmd/librarian@${{ steps.librarian.outputs.version }}" install echo "$HOME/.cache/librarian/bin/java_tools/bin" >> $GITHUB_PATH env: PYTHONPATH: ${{ github.workspace }}/sdk-platform-java/hermetic_build/library_generation/owlbot - name: Generate Libraries if: steps.detect_librarian.outputs.has_changes == 'true' run: | - go run github.com/googleapis/librarian/cmd/librarian@latest generate --all + go run "github.com/googleapis/librarian/cmd/librarian@${{ steps.librarian.outputs.version }}" generate --all - name: Commit and Create PR if: steps.detect_librarian.outputs.has_changes == 'true' env: From da1ccb160950f9be1efb47a0e1692cabc7750d4f Mon Sep 17 00:00:00 2001 From: Min Zhu Date: Wed, 17 Jun 2026 11:07:58 -0400 Subject: [PATCH 21/82] chore: update librarian to v0.21.1-0.20260617000028-820646f3db93 (#13501) Weekly update of librarian version and re-generate. Use pseudo version because v0.21.0 has a known issue for Java. Command used: ``` go run github.com/googleapis/librarian/cmd/librarian@latest update version # Get the updated version V=$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version) # Regenerate everything to pick up librarian / sdk.yaml changes. go run github.com/googleapis/librarian/cmd/librarian@${V} generate --all ``` --- librarian.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librarian.yaml b/librarian.yaml index c7ddc1c059c6..6b0f23ce9960 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. language: java -version: v0.20.0 +version: v0.21.1-0.20260617000028-820646f3db93 repo: googleapis/google-cloud-java sources: googleapis: From 203a91e99c021c60918961f37a67ade77673fb29 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Wed, 17 Jun 2026 13:34:52 -0400 Subject: [PATCH 22/82] fix(bqjdbc): pass rowsInPage with TableResult (#13238) b/511229401 This PR introduces the `rowsInPage` metadata to `TableResult` and ensures it is populated for all pages (both the first page and subsequent pages fetched via pagination). Previously, metadata about the number of rows in the page was not easily accessible or propagated across multiple paginated requests (e.g., when calling `getNextPage()`). This change: 1. Adds a `rowsInPage` field and builder method to the `@AutoValue` `TableResult` class. 2. Populates `rowsInPage` during initial page creation in `BigQueryImpl` and empty results in `Job.java`. 3. Updates `TableResult.getNextPage()` to calculate the size of values for subsequent pages via `Iterables.size` (which is $O(1)$ for materialized lists) and sets it on the returned `TableResult` pages. 4. Updates unit test assertions in `TableResultTest.java` and `SerializationTest.java` to verify that `rowsInPage` is populated and propagated correctly. ## Key Changes - **`TableResult.java`**: Added `getRowsInPage()`, builder method `setRowsInPage()`, and updated `getNextPage()` to pass down the calculated row count for the next page. - **`BigQueryImpl.java`**: Set `rowsInPage` on initial query results page creation. - **`TableResultTest.java`**: Added assertions to verify that `rowsInPage` is correctly populated for both the first page and subsequent pages. --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- .../cloud/bigquery/jdbc/BigQueryStatement.java | 4 +++- .../google/cloud/bigquery/BigQueryImpl.java | 3 +++ .../java/com/google/cloud/bigquery/Job.java | 1 + .../com/google/cloud/bigquery/TableResult.java | 18 +++++++++++++++--- .../cloud/bigquery/SerializationTest.java | 1 + .../google/cloud/bigquery/TableResultTest.java | 11 ++++++++++- 6 files changed, 33 insertions(+), 5 deletions(-) diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java index 0d4d94175b8d..09cc6cda6940 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java @@ -1028,7 +1028,9 @@ private boolean meetsReadRatio(TableResult results) { return false; } - long pageSize = querySettings.getMaxResultPerPage(); + Long rowsInPage = results.getRowsInPage(); + long pageSize = + (rowsInPage != null && rowsInPage > 0) ? rowsInPage : querySettings.getMaxResultPerPage(); // Prevent division by zero due to potential overflows/empty sets: if (pageSize <= 0) { diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java index 74c9ce60e84f..447fe916c5db 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java @@ -1691,6 +1691,7 @@ && getOptions().getOpenTelemetryTracer() != null) { .setSchema(schema) .setTotalRows(data.y()) .setPageNoSchema(data.x()) + .setRowsInPage((long) Iterables.size(data.x().getValues())) .build(); } finally { if (tableDataList != null) { @@ -2022,6 +2023,7 @@ public com.google.api.services.bigquery.model.QueryResponse call() .setJobId(jobId) .setQueryId(results.getQueryId()) .setJobCreationReason(JobCreationReason.fromPb(results.getJobCreationReason())) + .setRowsInPage(results.getRows() != null ? (long) results.getRows().size() : 0L) .build(); } // only 1 page of result @@ -2041,6 +2043,7 @@ public com.google.api.services.bigquery.model.QueryResponse call() results.getJobReference() != null ? JobId.fromPb(results.getJobReference()) : null) .setQueryId(results.getQueryId()) .setJobCreationReason(JobCreationReason.fromPb(results.getJobCreationReason())) + .setRowsInPage(results.getRows() != null ? (long) results.getRows().size() : 0L) .build(); } diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Job.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Job.java index c64327500f70..43832f3410b8 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Job.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Job.java @@ -424,6 +424,7 @@ public TableResult getQueryResults(QueryResultsOption... options) .setJobId(job.getJobId()) .setTotalRows(0L) .setPageNoSchema(new PageImpl(null, "", null)) + .setRowsInPage(0L) .build(); return emptyTableResult; } diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java index a7aa6ba9de4a..a791628c5b16 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/TableResult.java @@ -49,6 +49,8 @@ public abstract static class Builder { public abstract TableResult.Builder setJobCreationReason(JobCreationReason jobCreationReason); + abstract TableResult.Builder setRowsInPage(Long rowsInPage); + /** Creates a @code TableResult} object. */ public abstract TableResult build(); } @@ -81,6 +83,10 @@ public static Builder newBuilder() { @Nullable public abstract JobCreationReason getJobCreationReason(); + /** Returns the number of rows in the current page of results. */ + @Nullable + public abstract Long getRowsInPage(); + @Override public boolean hasNextPage() { return getPageNoSchema().hasNextPage(); @@ -94,12 +100,15 @@ public String getNextPageToken() { @Override public TableResult getNextPage() { if (getPageNoSchema().hasNextPage()) { + Page nextPageNoSchema = getPageNoSchema().getNextPage(); + long nextRows = (long) Iterables.size(nextPageNoSchema.getValues()); return TableResult.newBuilder() .setSchema(getSchema()) .setTotalRows(getTotalRows()) - .setPageNoSchema(getPageNoSchema().getNextPage()) + .setPageNoSchema(nextPageNoSchema) .setQueryId(getQueryId()) .setJobCreationReason(getJobCreationReason()) + .setRowsInPage(nextRows) .build(); } return null; @@ -137,12 +146,14 @@ public String toString() { .add("totalRows", getTotalRows()) .add("cursor", getNextPageToken()) .add("queryId", getQueryId()) + .add("rowsInPage", getRowsInPage()) .toString(); } @Override public final int hashCode() { - return Objects.hash(getPageNoSchema(), getSchema(), getTotalRows(), getQueryId()); + return Objects.hash( + getPageNoSchema(), getSchema(), getTotalRows(), getQueryId(), getRowsInPage()); } @Override @@ -158,6 +169,7 @@ public final boolean equals(Object obj) { && Iterators.elementsEqual(getValues().iterator(), response.getValues().iterator()) && Objects.equals(getSchema(), response.getSchema()) && getTotalRows() == response.getTotalRows() - && getQueryId() == response.getQueryId(); + && Objects.equals(getQueryId(), response.getQueryId()) + && Objects.equals(getRowsInPage(), response.getRowsInPage()); } } diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/SerializationTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/SerializationTest.java index e91a243949a8..4f0724cb01be 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/SerializationTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/SerializationTest.java @@ -210,6 +210,7 @@ public class SerializationTest extends BaseSerializationTest { .setSchema(Schema.of()) .setTotalRows(0L) .setPageNoSchema(new PageImpl(null, "", ImmutableList.of())) + .setRowsInPage(0L) .build(); private static final BigQuery BIGQUERY = BigQueryOptions.newBuilder().setProjectId("p1").build().getService(); diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableResultTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableResultTest.java index 5bdb14cf49ce..90ae2692f00c 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableResultTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/TableResultTest.java @@ -54,10 +54,15 @@ private static FieldValueList newFieldValueList(String s) { @Test void testNullSchema() { TableResult result = - TableResult.newBuilder().setTotalRows(3L).setPageNoSchema(INNER_PAGE_0).build(); + TableResult.newBuilder() + .setTotalRows(3L) + .setPageNoSchema(INNER_PAGE_0) + .setRowsInPage(2L) + .build(); assertThat(result.getSchema()).isNull(); assertThat(result.hasNextPage()).isTrue(); assertThat(result.getNextPageToken()).isNotNull(); + assertThat(result.getRowsInPage()).isEqualTo(2L); assertThat(result.getValues()) .containsExactly(newFieldValueList("0"), newFieldValueList("1")) .inOrder(); @@ -66,6 +71,7 @@ void testNullSchema() { assertThat(next.getSchema()).isNull(); assertThat(next.hasNextPage()).isFalse(); assertThat(next.getNextPageToken()).isNull(); + assertThat(next.getRowsInPage()).isEqualTo(1L); assertThat(next.getValues()).containsExactly(newFieldValueList("2")); assertThat(next.getNextPage()).isNull(); @@ -81,10 +87,12 @@ void testSchema() { .setSchema(SCHEMA) .setTotalRows(3L) .setPageNoSchema(INNER_PAGE_0) + .setRowsInPage(2L) .build(); assertThat(result.getSchema()).isEqualTo(SCHEMA); assertThat(result.hasNextPage()).isTrue(); assertThat(result.getNextPageToken()).isNotNull(); + assertThat(result.getRowsInPage()).isEqualTo(2L); assertThat(result.getValues()) .containsExactly( newFieldValueList("0").withSchema(SCHEMA.getFields()), @@ -95,6 +103,7 @@ void testSchema() { assertThat(next.getSchema()).isEqualTo(SCHEMA); assertThat(next.hasNextPage()).isFalse(); assertThat(next.getNextPageToken()).isNull(); + assertThat(next.getRowsInPage()).isEqualTo(1L); assertThat(next.getValues()) .containsExactly(newFieldValueList("2").withSchema(SCHEMA.getFields())); assertThat(next.getNextPage()).isNull(); From d2bc99d9c2e412ae7a0f8a2258ccc1a6eee83353 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Wed, 17 Jun 2026 13:37:16 -0400 Subject: [PATCH 23/82] chore: update googleapis commitish to 7af3f2c (#13507) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated googleapis commitish in librarian.yaml and generation_config.yaml to https://github.com/googleapis/googleapis/commit/7af3f2c7b8927cffb548fd2cf09b04c6371437ee 💡 **Note:** Please merge or close this PR so that the daily update workflow can continue to run successfully the next day. Alternatively, you can manually trigger the workflow once this PR is merged or closed. --- generation_config.yaml | 2 +- .../reflect-config.json | 9 + .../aiplatform/v1beta1/EndpointProto.java | 33 +- .../v1beta1/PublisherModelConfig.java | 356 +- .../PublisherModelConfigOrBuilder.java | 37 + .../cloud/aiplatform/v1beta1/endpoint.proto | 16 + .../v1/IngestionServiceClient.java | 80 + .../v1/IngestionServiceSettings.java | 11 + .../ads/datamanager/v1/gapic_metadata.json | 3 + .../v1/stub/GrpcIngestionServiceStub.java | 28 + .../v1/stub/HttpJsonIngestionServiceStub.java | 54 + .../v1/stub/IngestionServiceStub.java | 6 + .../v1/stub/IngestionServiceStubSettings.java | 27 + .../reflect-config.json | 234 + .../IngestionServiceClientHttpJsonTest.java | 51 + .../v1/IngestionServiceClientTest.java | 47 + .../v1/MockIngestionServiceImpl.java | 21 + .../PartnerLinkServiceClientHttpJsonTest.java | 6 + .../v1/PartnerLinkServiceClientTest.java | 6 + .../datamanager/v1/IngestionServiceGrpc.java | 152 +- .../google/ads/datamanager/v1/AdEvent.java | 8395 +++ .../ads/datamanager/v1/AdEventOrBuilder.java | 1171 + .../ads/datamanager/v1/AdEventProto.java | 270 + .../google/ads/datamanager/v1/AdFormat.java | 559 + .../ads/datamanager/v1/AdPlacement.java | 352 + .../com/google/ads/datamanager/v1/AdType.java | 306 + .../ads/datamanager/v1/AttributionHint.java | 191 + .../datamanager/v1/CoordinatorKeyInfo.java | 596 + .../v1/CoordinatorKeyInfoOrBuilder.java | 54 + .../ads/datamanager/v1/DestinationProto.java | 2 +- .../google/ads/datamanager/v1/DeviceInfo.java | 28 +- .../datamanager/v1/DeviceInfoOrBuilder.java | 8 +- .../ads/datamanager/v1/DeviceInfoProto.java | 20 +- .../ads/datamanager/v1/EncryptionInfo.java | 395 + .../v1/EncryptionInfoOrBuilder.java | 58 + .../datamanager/v1/EncryptionInfoProto.java | 38 +- .../ads/datamanager/v1/ErrorReason.java | 4 + .../google/ads/datamanager/v1/FeatureSet.java | 195 + .../datamanager/v1/IngestAdEventsRequest.java | 1396 + .../v1/IngestAdEventsRequestOrBuilder.java | 153 + .../v1/IngestAdEventsResponse.java | 396 + .../v1/IngestAdEventsResponseOrBuilder.java | 27 + .../datamanager/v1/IngestionServiceProto.java | 188 +- .../ads/datamanager/v1/MediaQuartile.java | 260 + .../v1/PartnerCustomerAccount.java | 981 + .../v1/PartnerCustomerAccountOrBuilder.java | 108 + .../ads/datamanager/v1/PartnerLink.java | 876 + .../datamanager/v1/PartnerLinkMetadata.java | 985 + .../v1/PartnerLinkMetadataOrBuilder.java | 95 + .../datamanager/v1/PartnerLinkOrBuilder.java | 136 + .../v1/PartnerLinkServiceProto.java | 148 +- .../google/ads/datamanager/v1/Platform.java | 214 + .../ads/datamanager/v1/PlatformType.java | 260 + .../ads/datamanager/v1/ProductAccount.java | 28 +- .../v1/ProductAccountOrBuilder.java | 8 +- .../ads/datamanager/v1/TargetingType.java | 329 + .../google/ads/datamanager/v1/ViewType.java | 191 + .../ads/datamanager/v1/ViewabilityInfo.java | 1970 + .../v1/ViewabilityInfoOrBuilder.java | 257 + .../datamanager/v1/ViewabilityInfoProto.java | 118 + .../google/ads/datamanager/v1/ad_event.proto | 425 + .../ads/datamanager/v1/destination.proto | 4 +- .../ads/datamanager/v1/device_info.proto | 6 +- .../ads/datamanager/v1/encryption_info.proto | 16 + .../google/ads/datamanager/v1/error.proto | 2 + .../datamanager/v1/ingestion_service.proto | 29 + .../datamanager/v1/partner_link_service.proto | 54 + .../ads/datamanager/v1/viewability_info.proto | 93 + .../ingestadevents/AsyncIngestAdEvents.java | 54 + .../ingestadevents/SyncIngestAdEvents.java | 50 + .../v1beta/AclConfigServiceClient.java | 403 + .../v1beta/AclConfigServiceSettings.java | 227 + .../v1beta/AssistantServiceClient.java | 1020 + .../v1beta/AssistantServiceSettings.java | 278 + .../v1beta/CmekConfigServiceClient.java | 824 + .../v1beta/CmekConfigServiceSettings.java | 305 + .../v1beta/CompletionServiceClient.java | 97 + .../v1beta/CompletionServiceSettings.java | 12 + .../ConversationalSearchServiceClient.java | 71 + .../ConversationalSearchServiceSettings.java | 14 + .../v1beta/DocumentServiceClient.java | 7 +- .../v1beta/EngineServiceClient.java | 409 +- .../v1beta/EngineServiceSettings.java | 23 + .../v1beta/EvaluationServiceClient.java | 14 +- .../IdentityMappingStoreServiceClient.java | 1499 + .../IdentityMappingStoreServiceSettings.java | 395 + .../v1beta/LicenseConfigServiceClient.java | 1478 + .../v1beta/LicenseConfigServiceSettings.java | 286 + .../v1beta/ProjectServiceClient.java | 3 + .../v1beta/SearchServiceClient.java | 63 + .../v1beta/ServingConfigServiceClient.java | 419 +- .../v1beta/ServingConfigServiceSettings.java | 30 +- .../v1beta/SessionServiceClient.java | 2 + .../v1beta/UserLicenseServiceClient.java | 763 + .../v1beta/UserLicenseServiceSettings.java | 299 + .../v1beta/UserStoreServiceClient.java | 436 + .../v1beta/UserStoreServiceSettings.java | 227 + .../v1beta/gapic_metadata.json | 171 + .../discoveryengine/v1beta/package-info.java | 158 +- .../v1beta/stub/AclConfigServiceStub.java | 47 + .../stub/AclConfigServiceStubSettings.java | 371 + .../v1beta/stub/AssistantServiceStub.java | 78 + .../stub/AssistantServiceStubSettings.java | 578 + .../v1beta/stub/CmekConfigServiceStub.java | 82 + .../stub/CmekConfigServiceStubSettings.java | 552 + .../v1beta/stub/CompletionServiceStub.java | 7 + .../stub/CompletionServiceStubSettings.java | 40 +- .../stub/ControlServiceStubSettings.java | 6 +- .../stub/ConversationalSearchServiceStub.java | 6 + ...nversationalSearchServiceStubSettings.java | 31 +- .../stub/DataStoreServiceStubSettings.java | 6 +- .../stub/DocumentServiceStubSettings.java | 18 +- .../v1beta/stub/EngineServiceStub.java | 11 + .../stub/EngineServiceStubSettings.java | 57 +- .../stub/EvaluationServiceStubSettings.java | 19 +- ...GroundedGenerationServiceStubSettings.java | 6 +- .../GrpcAclConfigServiceCallableFactory.java | 115 + .../v1beta/stub/GrpcAclConfigServiceStub.java | 198 + .../GrpcAssistantServiceCallableFactory.java | 115 + .../v1beta/stub/GrpcAssistantServiceStub.java | 350 + .../GrpcCmekConfigServiceCallableFactory.java | 115 + .../stub/GrpcCmekConfigServiceStub.java | 302 + .../stub/GrpcCompletionServiceStub.java | 39 + .../GrpcConversationalSearchServiceStub.java | 37 + .../v1beta/stub/GrpcDataStoreServiceStub.java | 2 +- .../v1beta/stub/GrpcEngineServiceStub.java | 61 + ...ityMappingStoreServiceCallableFactory.java | 115 + .../GrpcIdentityMappingStoreServiceStub.java | 504 + ...pcLicenseConfigServiceCallableFactory.java | 115 + .../stub/GrpcLicenseConfigServiceStub.java | 384 + .../stub/GrpcServingConfigServiceStub.java | 73 + ...GrpcUserLicenseServiceCallableFactory.java | 115 + .../stub/GrpcUserLicenseServiceStub.java | 292 + .../GrpcUserStoreServiceCallableFactory.java | 115 + .../v1beta/stub/GrpcUserStoreServiceStub.java | 198 + ...tpJsonAclConfigServiceCallableFactory.java | 103 + .../stub/HttpJsonAclConfigServiceStub.java | 262 + ...tpJsonAssistantServiceCallableFactory.java | 103 + .../stub/HttpJsonAssistantServiceStub.java | 524 + ...pJsonCmekConfigServiceCallableFactory.java | 103 + .../stub/HttpJsonCmekConfigServiceStub.java | 620 + .../stub/HttpJsonCompletionServiceStub.java | 85 + ...tpJsonConversationalSearchServiceStub.java | 72 + .../stub/HttpJsonDataStoreServiceStub.java | 21 +- .../stub/HttpJsonDocumentServiceStub.java | 15 + .../stub/HttpJsonEngineServiceStub.java | 134 + .../stub/HttpJsonEvaluationServiceStub.java | 15 + ...ityMappingStoreServiceCallableFactory.java | 103 + ...tpJsonIdentityMappingStoreServiceStub.java | 926 + ...onLicenseConfigServiceCallableFactory.java | 103 + .../HttpJsonLicenseConfigServiceStub.java | 580 + .../stub/HttpJsonProjectServiceStub.java | 15 + .../stub/HttpJsonSampleQueryServiceStub.java | 15 + .../stub/HttpJsonSchemaServiceStub.java | 15 + .../stub/HttpJsonSearchTuningServiceStub.java | 15 + .../HttpJsonServingConfigServiceStub.java | 134 + .../stub/HttpJsonSessionServiceStub.java | 1 + .../HttpJsonSiteSearchEngineServiceStub.java | 17 + .../stub/HttpJsonUserEventServiceStub.java | 18 +- ...JsonUserLicenseServiceCallableFactory.java | 103 + .../stub/HttpJsonUserLicenseServiceStub.java | 580 + ...tpJsonUserStoreServiceCallableFactory.java | 103 + .../stub/HttpJsonUserStoreServiceStub.java | 263 + .../stub/IdentityMappingStoreServiceStub.java | 133 + ...entityMappingStoreServiceStubSettings.java | 893 + .../v1beta/stub/LicenseConfigServiceStub.java | 80 + .../LicenseConfigServiceStubSettings.java | 567 + .../stub/ProjectServiceStubSettings.java | 6 +- .../v1beta/stub/RankServiceStubSettings.java | 6 +- .../RecommendationServiceStubSettings.java | 6 +- .../stub/SampleQueryServiceStubSettings.java | 6 +- .../SampleQuerySetServiceStubSettings.java | 6 +- .../stub/SchemaServiceStubSettings.java | 6 +- .../stub/SearchServiceStubSettings.java | 7 +- .../stub/SearchTuningServiceStubSettings.java | 6 +- .../v1beta/stub/ServingConfigServiceStub.java | 11 + .../ServingConfigServiceStubSettings.java | 75 +- .../stub/SessionServiceStubSettings.java | 7 +- .../SiteSearchEngineServiceStubSettings.java | 6 +- .../stub/UserEventServiceStubSettings.java | 19 +- .../v1beta/stub/UserLicenseServiceStub.java | 86 + .../stub/UserLicenseServiceStubSettings.java | 580 + .../v1beta/stub/UserStoreServiceStub.java | 47 + .../stub/UserStoreServiceStubSettings.java | 371 + .../reflect-config.json | 5366 +- .../AclConfigServiceClientHttpJsonTest.java | 222 + .../v1beta/AclConfigServiceClientTest.java | 199 + .../AssistantServiceClientHttpJsonTest.java | 544 + .../v1beta/AssistantServiceClientTest.java | 539 + .../CmekConfigServiceClientHttpJsonTest.java | 423 + .../v1beta/CmekConfigServiceClientTest.java | 382 + .../CompletionServiceClientHttpJsonTest.java | 66 + .../v1beta/CompletionServiceClientTest.java | 71 + ...tionalSearchServiceClientHttpJsonTest.java | 35 + ...ConversationalSearchServiceClientTest.java | 113 + .../DataStoreServiceClientHttpJsonTest.java | 77 + .../v1beta/DataStoreServiceClientTest.java | 55 + .../DocumentServiceClientHttpJsonTest.java | 9 + .../v1beta/DocumentServiceClientTest.java | 8 + .../EngineServiceClientHttpJsonTest.java | 290 + .../v1beta/EngineServiceClientTest.java | 250 + ...MappingStoreServiceClientHttpJsonTest.java | 669 + ...IdentityMappingStoreServiceClientTest.java | 639 + ...icenseConfigServiceClientHttpJsonTest.java | 830 + .../LicenseConfigServiceClientTest.java | 761 + .../v1beta/MockAclConfigService.java | 59 + .../v1beta/MockAclConfigServiceImpl.java | 102 + .../v1beta/MockAssistantService.java | 59 + .../v1beta/MockAssistantServiceImpl.java | 187 + .../v1beta/MockCmekConfigService.java | 59 + .../v1beta/MockCmekConfigServiceImpl.java | 145 + .../v1beta/MockCompletionServiceImpl.java | 21 + .../MockConversationalSearchServiceImpl.java | 21 + .../v1beta/MockEngineServiceImpl.java | 43 + .../MockIdentityMappingStoreService.java | 59 + .../MockIdentityMappingStoreServiceImpl.java | 219 + .../v1beta/MockLicenseConfigService.java | 59 + .../v1beta/MockLicenseConfigServiceImpl.java | 191 + .../v1beta/MockServingConfigServiceImpl.java | 43 + .../v1beta/MockUserLicenseService.java | 59 + .../v1beta/MockUserLicenseServiceImpl.java | 127 + .../v1beta/MockUserStoreService.java | 59 + .../v1beta/MockUserStoreServiceImpl.java | 102 + .../ProjectServiceClientHttpJsonTest.java | 4 + .../v1beta/ProjectServiceClientTest.java | 4 + .../SearchServiceClientHttpJsonTest.java | 36 + .../v1beta/SearchServiceClientTest.java | 56 + ...ervingConfigServiceClientHttpJsonTest.java | 312 + .../ServingConfigServiceClientTest.java | 282 + .../SessionServiceClientHttpJsonTest.java | 14 + .../v1beta/SessionServiceClientTest.java | 10 + .../UserEventServiceClientHttpJsonTest.java | 3 + .../v1beta/UserEventServiceClientTest.java | 3 + .../UserLicenseServiceClientHttpJsonTest.java | 331 + .../v1beta/UserLicenseServiceClientTest.java | 317 + .../UserStoreServiceClientHttpJsonTest.java | 239 + .../v1beta/UserStoreServiceClientTest.java | 213 + .../v1beta/AclConfigServiceGrpc.java | 569 + .../v1beta/AssistantServiceGrpc.java | 1085 + .../v1beta/CmekConfigServiceGrpc.java | 840 + .../v1beta/CompletionServiceGrpc.java | 158 + .../ConversationalSearchServiceGrpc.java | 159 +- .../v1beta/EngineServiceGrpc.java | 383 +- .../IdentityMappingStoreServiceGrpc.java | 1292 + .../v1beta/LicenseConfigServiceGrpc.java | 1188 + .../v1beta/ServingConfigServiceGrpc.java | 313 +- .../v1beta/UserLicenseServiceGrpc.java | 730 + .../v1beta/UserStoreServiceGrpc.java | 559 + .../discoveryengine/v1beta/AclConfig.java | 925 + .../discoveryengine/v1beta/AclConfigName.java | 192 + .../v1beta/AclConfigOrBuilder.java | 101 + .../v1beta/AclConfigProto.java | 104 + .../v1beta/AclConfigServiceProto.java | 141 + .../v1beta/AdvancedCompleteQueryRequest.java | 5501 +- ...AdvancedCompleteQueryRequestOrBuilder.java | 159 +- .../v1beta/AdvancedCompleteQueryResponse.java | 1648 +- .../v1beta/AdvancedSiteSearchConfig.java | 687 + .../AdvancedSiteSearchConfigOrBuilder.java | 80 + .../v1beta/AgentGatewaySetting.java | 1494 + .../v1beta/AgentGatewaySettingOrBuilder.java | 85 + .../v1beta/AgentGatewaySettingProto.java | 115 + .../cloud/discoveryengine/v1beta/Answer.java | 48021 +++++++++------- .../v1beta/AnswerGenerationSpec.java | 2426 + .../v1beta/AnswerGenerationSpecOrBuilder.java | 73 + .../v1beta/AnswerOrBuilder.java | 231 + .../discoveryengine/v1beta/AnswerProto.java | 220 +- .../v1beta/AnswerQueryRequest.java | 45728 +++++++++------ .../v1beta/AnswerQueryRequestOrBuilder.java | 58 +- .../discoveryengine/v1beta/AssistAnswer.java | 8864 +++ .../v1beta/AssistAnswerOrBuilder.java | 281 + .../v1beta/AssistAnswerProto.java | 448 + .../v1beta/AssistUserMetadata.java | 800 + .../v1beta/AssistUserMetadataOrBuilder.java | 84 + .../discoveryengine/v1beta/Assistant.java | 11643 ++++ .../v1beta/AssistantContent.java | 5598 ++ .../v1beta/AssistantContentOrBuilder.java | 268 + .../v1beta/AssistantGroundedContent.java | 10079 ++++ .../AssistantGroundedContentOrBuilder.java | 152 + .../discoveryengine/v1beta/AssistantName.java | 298 + .../v1beta/AssistantOrBuilder.java | 468 + .../v1beta/AssistantProto.java | 268 + .../v1beta/AssistantServiceProto.java | 426 + .../BatchUpdateUserLicensesMetadata.java | 1199 + ...chUpdateUserLicensesMetadataOrBuilder.java | 131 + .../BatchUpdateUserLicensesRequest.java | 2704 + ...tchUpdateUserLicensesRequestOrBuilder.java | 127 + .../BatchUpdateUserLicensesResponse.java | 1452 + ...chUpdateUserLicensesResponseOrBuilder.java | 139 + .../v1beta/BigtableOptions.java | 2 +- .../BillingAccountLicenseConfigName.java | 211 + .../v1beta/CheckGroundingResponse.java | 333 +- .../v1beta/CheckGroundingSpec.java | 135 + .../v1beta/CheckGroundingSpecOrBuilder.java | 26 + .../cloud/discoveryengine/v1beta/Chunk.java | 6739 ++- .../v1beta/ChunkOrBuilder.java | 208 +- .../discoveryengine/v1beta/ChunkProto.java | 92 +- .../discoveryengine/v1beta/Citation.java | 1730 + .../v1beta/CitationMetadata.java | 974 + .../v1beta/CitationMetadataOrBuilder.java | 94 + .../v1beta/CitationOrBuilder.java | 172 + .../discoveryengine/v1beta/CmekConfig.java | 2710 + .../v1beta/CmekConfigName.java | 306 + .../v1beta/CmekConfigOrBuilder.java | 278 + .../v1beta/CmekConfigServiceProto.java | 300 + .../v1beta/CollectUserEventRequest.java | 70 +- .../CollectUserEventRequestOrBuilder.java | 20 +- .../discoveryengine/v1beta/CommonProto.java | 223 +- .../v1beta/CompleteQueryRequest.java | 70 +- .../v1beta/CompleteQueryRequestOrBuilder.java | 20 +- .../v1beta/CompletionServiceProto.java | 285 +- .../discoveryengine/v1beta/Condition.java | 14 +- .../v1beta/ConditionOrBuilder.java | 4 +- .../cloud/discoveryengine/v1beta/Control.java | 7524 ++- .../v1beta/ControlOrBuilder.java | 38 + .../discoveryengine/v1beta/ControlProto.java | 113 +- .../v1beta/ControlServiceProto.java | 19 +- .../ConversationalSearchServiceProto.java | 550 +- .../v1beta/CreateAssistantRequest.java | 1196 + .../CreateAssistantRequestOrBuilder.java | 146 + .../v1beta/CreateDataStoreRequest.java | 533 +- .../CreateDataStoreRequestOrBuilder.java | 72 + .../v1beta/CreateDocumentRequest.java | 14 +- .../CreateDocumentRequestOrBuilder.java | 4 +- .../CreateIdentityMappingStoreRequest.java | 1661 + ...eIdentityMappingStoreRequestOrBuilder.java | 211 + .../v1beta/CreateLicenseConfigRequest.java | 1202 + .../CreateLicenseConfigRequestOrBuilder.java | 145 + .../v1beta/CreateServingConfigRequest.java | 1167 + .../CreateServingConfigRequestOrBuilder.java | 137 + .../v1beta/CreateSessionRequest.java | 224 + .../v1beta/CreateSessionRequestOrBuilder.java | 36 + .../discoveryengine/v1beta/DataStore.java | 16312 +++++- .../v1beta/DataStoreOrBuilder.java | 416 +- .../v1beta/DataStoreProto.java | 269 +- .../v1beta/DataStoreServiceProto.java | 167 +- .../v1beta/DeleteAssistantRequest.java | 684 + .../DeleteAssistantRequestOrBuilder.java | 76 + .../v1beta/DeleteCmekConfigMetadata.java | 997 + .../DeleteCmekConfigMetadataOrBuilder.java | 105 + .../v1beta/DeleteCmekConfigRequest.java | 286 +- .../DeleteCmekConfigRequestOrBuilder.java | 64 + .../DeleteIdentityMappingStoreMetadata.java | 1014 + ...IdentityMappingStoreMetadataOrBuilder.java | 105 + .../DeleteIdentityMappingStoreRequest.java | 171 +- ...eIdentityMappingStoreRequestOrBuilder.java | 16 +- .../v1beta/DeleteServingConfigRequest.java | 167 +- .../DeleteServingConfigRequestOrBuilder.java | 60 + .../DistributeLicenseConfigRequest.java | 1247 + ...stributeLicenseConfigRequestOrBuilder.java | 149 + .../DistributeLicenseConfigResponse.java | 723 + ...tributeLicenseConfigResponseOrBuilder.java | 65 + .../discoveryengine/v1beta/Document.java | 3460 +- .../discoveryengine/v1beta/DocumentInfo.java | 172 + .../v1beta/DocumentInfoOrBuilder.java | 38 + .../v1beta/DocumentOrBuilder.java | 98 +- .../v1beta/DocumentProcessingConfig.java | 2529 +- .../v1beta/DocumentProcessingConfigProto.java | 63 +- .../discoveryengine/v1beta/DocumentProto.java | 72 +- .../v1beta/DocumentServiceProto.java | 25 +- .../cloud/discoveryengine/v1beta/Engine.java | 28564 ++++++--- .../v1beta/EngineOrBuilder.java | 1080 +- .../discoveryengine/v1beta/EngineProto.java | 326 +- .../v1beta/EngineServiceProto.java | 207 +- .../discoveryengine/v1beta/Evaluation.java | 96 +- .../v1beta/EvaluationProto.java | 4 +- .../v1beta/EvaluationServiceProto.java | 119 +- .../discoveryengine/v1beta/FactChunk.java | 567 + .../v1beta/FactChunkOrBuilder.java | 78 + .../discoveryengine/v1beta/Feedback.java | 4443 ++ .../v1beta/FeedbackOrBuilder.java | 305 + .../discoveryengine/v1beta/FeedbackProto.java | 154 + .../v1beta/FhirStoreSource.java | 141 + .../v1beta/FhirStoreSourceOrBuilder.java | 22 + .../GenerateGroundedContentRequest.java | 2909 +- .../GenerateGroundedContentResponse.java | 9490 ++- .../v1beta/GetAclConfigRequest.java | 653 + .../v1beta/GetAclConfigRequestOrBuilder.java | 70 + .../v1beta/GetAssistantRequest.java | 629 + .../v1beta/GetAssistantRequestOrBuilder.java | 62 + .../v1beta/GetCmekConfigRequest.java | 664 + .../v1beta/GetCmekConfigRequestOrBuilder.java | 72 + .../GetIdentityMappingStoreRequest.java | 170 +- ...tIdentityMappingStoreRequestOrBuilder.java | 16 +- .../v1beta/GetLicenseConfigRequest.java | 699 + .../GetLicenseConfigRequestOrBuilder.java | 80 + .../v1beta/GetUserStoreRequest.java | 627 + .../v1beta/GetUserStoreRequestOrBuilder.java | 18 +- .../GroundedGenerationServiceProto.java | 410 +- .../v1beta/GroundingProto.java | 21 +- .../discoveryengine/v1beta/HarmCategory.java | 262 + .../v1beta/HealthcareFhirConfig.java | 1011 + .../v1beta/HealthcareFhirConfigOrBuilder.java | 140 + .../v1beta/IdentityMappingEntry.java | 1437 + ...IdentityMappingEntryOperationMetadata.java | 730 + ...appingEntryOperationMetadataOrBuilder.java | 67 + .../v1beta/IdentityMappingEntryOrBuilder.java | 187 + .../v1beta/IdentityMappingStore.java | 1185 + .../v1beta/IdentityMappingStoreName.java | 232 + .../v1beta/IdentityMappingStoreOrBuilder.java | 145 + .../v1beta/IdentityMappingStoreProto.java | 123 + .../IdentityMappingStoreServiceProto.java | 400 + .../discoveryengine/v1beta/IdpConfig.java | 1698 + .../v1beta/IdpConfigOrBuilder.java | 95 + .../v1beta/ImportConfigProto.java | 154 +- .../v1beta/ImportDocumentsRequest.java | 126 +- .../ImportDocumentsRequestOrBuilder.java | 19 +- .../v1beta/ImportIdentityMappingsRequest.java | 2185 + ...mportIdentityMappingsRequestOrBuilder.java | 109 + .../ImportIdentityMappingsResponse.java | 925 + ...portIdentityMappingsResponseOrBuilder.java | 83 + .../v1beta/ImportUserEventsMetadata.java | 93 +- .../ImportUserEventsMetadataOrBuilder.java | 21 +- .../discoveryengine/v1beta/LicenseConfig.java | 2766 + .../v1beta/LicenseConfigName.java | 227 + .../v1beta/LicenseConfigOrBuilder.java | 340 + .../v1beta/LicenseConfigProto.java | 138 + .../v1beta/LicenseConfigServiceProto.java | 289 + .../v1beta/LicenseConfigUsageStats.java | 701 + .../LicenseConfigUsageStatsOrBuilder.java | 67 + .../v1beta/ListAssistantsRequest.java | 987 + .../ListAssistantsRequestOrBuilder.java | 120 + .../v1beta/ListAssistantsResponse.java | 1176 + .../ListAssistantsResponseOrBuilder.java | 121 + .../v1beta/ListCmekConfigsRequest.java | 663 + .../ListCmekConfigsRequestOrBuilder.java | 70 + .../v1beta/ListCmekConfigsResponse.java | 968 + .../ListCmekConfigsResponseOrBuilder.java | 89 + .../v1beta/ListEvaluationResultsRequest.java | 113 +- ...ListEvaluationResultsRequestOrBuilder.java | 31 +- .../v1beta/ListEvaluationResultsResponse.java | 92 +- ...istEvaluationResultsResponseOrBuilder.java | 20 +- .../v1beta/ListEvaluationsRequest.java | 44 +- .../ListEvaluationsRequestOrBuilder.java | 12 +- .../ListIdentityMappingStoresRequest.java | 973 + ...IdentityMappingStoresRequestOrBuilder.java | 113 + .../ListIdentityMappingStoresResponse.java | 1216 + ...dentityMappingStoresResponseOrBuilder.java | 124 + .../v1beta/ListIdentityMappingsRequest.java | 967 + .../ListIdentityMappingsRequestOrBuilder.java | 113 + .../v1beta/ListIdentityMappingsResponse.java | 1209 + ...ListIdentityMappingsResponseOrBuilder.java | 124 + .../v1beta/ListLicenseConfigsRequest.java | 1197 + .../ListLicenseConfigsRequestOrBuilder.java | 151 + .../v1beta/ListLicenseConfigsResponse.java | 1168 + .../ListLicenseConfigsResponseOrBuilder.java | 116 + .../ListLicenseConfigsUsageStatsRequest.java | 646 + ...enseConfigsUsageStatsRequestOrBuilder.java | 60 + .../ListLicenseConfigsUsageStatsResponse.java | 1054 + ...nseConfigsUsageStatsResponseOrBuilder.java | 102 + .../v1beta/ListSessionsRequest.java | 175 +- .../v1beta/ListSessionsRequestOrBuilder.java | 50 +- .../v1beta/ListUserLicensesRequest.java | 1566 + .../ListUserLicensesRequestOrBuilder.java | 229 + .../v1beta/ListUserLicensesResponse.java | 1163 + .../ListUserLicensesResponseOrBuilder.java | 117 + .../discoveryengine/v1beta/LoggingProto.java | 97 + .../v1beta/ObservabilityConfig.java | 609 + .../v1beta/ObservabilityConfigOrBuilder.java | 56 + .../discoveryengine/v1beta/Principal.java | 1294 + .../v1beta/PrincipalOrBuilder.java | 174 + .../cloud/discoveryengine/v1beta/Project.java | 13939 ++++- .../v1beta/ProjectOrBuilder.java | 90 + .../discoveryengine/v1beta/ProjectProto.java | 234 +- .../v1beta/ProjectServiceProto.java | 72 +- .../v1beta/ProvisionProjectRequest.java | 983 +- .../ProvisionProjectRequestOrBuilder.java | 44 + .../v1beta/PurgeIdentityMappingsRequest.java | 2651 + ...PurgeIdentityMappingsRequestOrBuilder.java | 203 + .../v1beta/PurgeUserEventsRequest.java | 98 +- .../PurgeUserEventsRequestOrBuilder.java | 28 +- .../discoveryengine/v1beta/RankRequest.java | 60 +- .../v1beta/RankRequestOrBuilder.java | 14 +- .../v1beta/RankServiceProto.java | 18 +- .../discoveryengine/v1beta/RankingRecord.java | 8 + .../v1beta/RankingRecordOrBuilder.java | 2 + .../v1beta/RecommendRequest.java | 28 +- .../v1beta/RecommendRequestOrBuilder.java | 8 +- .../v1beta/RecommendationServiceProto.java | 20 +- .../v1beta/RecrawlUrisMetadata.java | 447 +- .../v1beta/RecrawlUrisMetadataOrBuilder.java | 67 + .../v1beta/RecrawlUrisRequest.java | 28 +- .../v1beta/RecrawlUrisRequestOrBuilder.java | 8 +- .../v1beta/RemoveSuggestionRequest.java | 2053 + .../RemoveSuggestionRequestOrBuilder.java | 281 + .../v1beta/RemoveSuggestionResponse.java | 407 + .../RemoveSuggestionResponseOrBuilder.java | 27 + .../v1beta/RetractLicenseConfigRequest.java | 1082 + .../RetractLicenseConfigRequestOrBuilder.java | 130 + .../v1beta/RetractLicenseConfigResponse.java | 719 + ...RetractLicenseConfigResponseOrBuilder.java | 65 + .../discoveryengine/v1beta/SafetyProto.java | 118 + .../discoveryengine/v1beta/SafetyRating.java | 1679 + .../v1beta/SafetyRatingOrBuilder.java | 158 + .../v1beta/SampleQueryServiceProto.java | 18 +- .../v1beta/SampleQuerySetServiceProto.java | 27 +- .../v1beta/SchemaServiceProto.java | 26 +- .../v1beta/SearchLinkPromotion.java | 1513 + .../v1beta/SearchLinkPromotionOrBuilder.java | 188 + .../discoveryengine/v1beta/SearchRequest.java | 47217 +++++++++------ .../v1beta/SearchRequestOrBuilder.java | 689 +- .../v1beta/SearchResponse.java | 5709 +- .../v1beta/SearchResponseOrBuilder.java | 147 +- .../v1beta/SearchServiceProto.java | 742 +- .../v1beta/SearchTuningServiceProto.java | 27 +- .../discoveryengine/v1beta/ServingConfig.java | 684 +- .../v1beta/ServingConfigOrBuilder.java | 116 +- .../v1beta/ServingConfigProto.java | 159 +- .../v1beta/ServingConfigServiceProto.java | 178 +- .../cloud/discoveryengine/v1beta/Session.java | 1294 +- .../discoveryengine/v1beta/SessionName.java | 166 +- .../v1beta/SessionOrBuilder.java | 94 + .../discoveryengine/v1beta/SessionProto.java | 60 +- .../v1beta/SessionServiceProto.java | 27 +- .../v1beta/SingleRegionKey.java | 625 + .../v1beta/SingleRegionKeyOrBuilder.java | 62 + .../v1beta/SiteSearchEngineProto.java | 44 +- .../v1beta/SiteSearchEngineServiceProto.java | 351 +- .../discoveryengine/v1beta/SolutionType.java | 23 + .../v1beta/StreamAssistRequest.java | 7848 +++ .../v1beta/StreamAssistRequestOrBuilder.java | 291 + .../v1beta/StreamAssistResponse.java | 3863 ++ .../v1beta/StreamAssistResponseOrBuilder.java | 322 + .../v1beta/SubscriptionTerm.java | 239 + .../v1beta/SubscriptionTier.java | 450 + .../discoveryengine/v1beta/TargetSite.java | 70 +- .../v1beta/TargetSiteOrBuilder.java | 6 +- .../v1beta/UpdateAclConfigRequest.java | 659 + .../UpdateAclConfigRequestOrBuilder.java | 53 + .../v1beta/UpdateAssistantRequest.java | 1180 + .../UpdateAssistantRequestOrBuilder.java | 150 + .../v1beta/UpdateCmekConfigMetadata.java | 997 + .../UpdateCmekConfigMetadataOrBuilder.java | 105 + .../v1beta/UpdateCmekConfigRequest.java | 833 + .../UpdateCmekConfigRequestOrBuilder.java | 85 + .../v1beta/UpdateLicenseConfigRequest.java | 1116 + .../UpdateLicenseConfigRequestOrBuilder.java | 132 + .../v1beta/UpdateUserStoreRequest.java | 1048 + .../UpdateUserStoreRequestOrBuilder.java | 117 + .../discoveryengine/v1beta/UserEvent.java | 1208 +- .../v1beta/UserEventOrBuilder.java | 147 +- .../v1beta/UserEventProto.java | 65 +- .../v1beta/UserEventServiceProto.java | 27 +- .../discoveryengine/v1beta/UserInfo.java | 1755 +- .../v1beta/UserInfoOrBuilder.java | 84 + .../discoveryengine/v1beta/UserLicense.java | 2420 + .../v1beta/UserLicenseOrBuilder.java | 287 + .../v1beta/UserLicenseProto.java | 133 + .../v1beta/UserLicenseServiceProto.java | 266 + .../discoveryengine/v1beta/UserStore.java | 1314 + .../discoveryengine/v1beta/UserStoreName.java | 223 + .../v1beta/UserStoreOrBuilder.java | 172 + .../v1beta/UserStoreProto.java | 109 + .../v1beta/UserStoreServiceProto.java | 146 + .../v1beta/WorkspaceConfig.java | 65 +- .../v1beta/WorkspaceConfigOrBuilder.java | 12 +- .../v1beta/WriteUserEventRequest.java | 70 +- .../WriteUserEventRequestOrBuilder.java | 20 +- .../discoveryengine/v1beta/acl_config.proto | 49 + .../v1beta/acl_config_service.proto | 81 + .../v1beta/agent_gateway_setting.proto | 57 + .../cloud/discoveryengine/v1beta/answer.proto | 120 +- .../v1beta/assist_answer.proto | 365 + .../discoveryengine/v1beta/assistant.proto | 250 + .../v1beta/assistant_service.proto | 425 + .../cloud/discoveryengine/v1beta/chunk.proto | 61 +- .../v1beta/cmek_config_service.proto | 314 + .../cloud/discoveryengine/v1beta/common.proto | 238 +- .../discoveryengine/v1beta/completion.proto | 2 +- .../v1beta/completion_service.proto | 150 +- .../discoveryengine/v1beta/control.proto | 118 +- .../v1beta/control_service.proto | 6 +- .../discoveryengine/v1beta/conversation.proto | 2 +- .../conversational_search_service.proto | 200 +- .../v1beta/custom_tuning_model.proto | 2 +- .../discoveryengine/v1beta/data_store.proto | 226 +- .../v1beta/data_store_service.proto | 20 +- .../discoveryengine/v1beta/document.proto | 123 +- .../v1beta/document_processing_config.proto | 40 +- .../v1beta/document_service.proto | 8 +- .../cloud/discoveryengine/v1beta/engine.proto | 372 +- .../v1beta/engine_service.proto | 57 +- .../discoveryengine/v1beta/evaluation.proto | 10 +- .../v1beta/evaluation_service.proto | 39 +- .../discoveryengine/v1beta/feedback.proto | 144 + .../v1beta/grounded_generation_service.proto | 183 +- .../discoveryengine/v1beta/grounding.proto | 11 +- .../v1beta/identity_mapping_store.proto | 87 + .../identity_mapping_store_service.proto | 378 + .../v1beta/import_config.proto | 34 +- .../v1beta/license_config.proto | 116 + .../v1beta/license_config_service.proto | 312 + .../discoveryengine/v1beta/logging.proto | 40 + .../discoveryengine/v1beta/project.proto | 230 +- .../v1beta/project_service.proto | 21 +- .../discoveryengine/v1beta/purge_config.proto | 16 +- .../discoveryengine/v1beta/rank_service.proto | 12 +- .../v1beta/recommendation_service.proto | 10 +- .../cloud/discoveryengine/v1beta/safety.proto | 107 + .../discoveryengine/v1beta/sample_query.proto | 2 +- .../v1beta/sample_query_service.proto | 6 +- .../v1beta/sample_query_set.proto | 2 +- .../v1beta/sample_query_set_service.proto | 6 +- .../cloud/discoveryengine/v1beta/schema.proto | 2 +- .../v1beta/schema_service.proto | 6 +- .../v1beta/search_service.proto | 566 +- .../v1beta/search_tuning_service.proto | 6 +- .../v1beta/serving_config.proto | 52 +- .../v1beta/serving_config_service.proto | 84 +- .../discoveryengine/v1beta/session.proto | 27 +- .../v1beta/session_service.proto | 7 +- .../v1beta/site_search_engine.proto | 14 +- .../v1beta/site_search_engine_service.proto | 19 +- .../discoveryengine/v1beta/user_event.proto | 47 +- .../v1beta/user_event_service.proto | 31 +- .../discoveryengine/v1beta/user_license.proto | 110 + .../v1beta/user_license_service.proto | 252 + .../discoveryengine/v1beta/user_store.proto | 79 + .../v1beta/user_store_service.proto | 87 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../getaclconfig/AsyncGetAclConfig.java | 35 +- .../getaclconfig/SyncGetAclConfig.java | 46 + .../SyncGetAclConfigAclconfigname.java | 42 + .../getaclconfig/SyncGetAclConfigString.java | 42 + .../updateaclconfig/AsyncUpdateAclConfig.java | 47 + .../updateaclconfig/SyncUpdateAclConfig.java | 43 + .../updateaclconfig/SyncUpdateAclConfig.java | 56 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../createassistant/AsyncCreateAssistant.java | 53 + .../createassistant/SyncCreateAssistant.java | 49 + .../deleteassistant/AsyncDeleteAssistant.java | 36 +- .../deleteassistant/SyncDeleteAssistant.java | 32 +- .../SyncDeleteAssistantAssistantname.java | 43 + .../SyncDeleteAssistantString.java | 24 +- .../getassistant/AsyncGetAssistant.java | 36 +- .../getassistant/SyncGetAssistant.java | 49 + .../SyncGetAssistantAssistantname.java | 43 + .../getassistant/SyncGetAssistantString.java | 24 +- .../listassistants/AsyncListAssistants.java | 55 + .../AsyncListAssistantsPaged.java | 63 + .../listassistants/SyncListAssistants.java | 51 + .../SyncListAssistantsEnginename.java | 44 + .../SyncListAssistantsString.java | 45 + .../streamassist/AsyncStreamAssist.java | 65 + .../updateassistant/AsyncUpdateAssistant.java | 51 + .../updateassistant/SyncUpdateAssistant.java | 47 + ...SyncUpdateAssistantAssistantFieldmask.java | 43 + .../createassistant/SyncCreateAssistant.java | 56 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../AsyncDeleteCmekConfig.java | 36 +- .../AsyncDeleteCmekConfigLRO.java | 54 + .../SyncDeleteCmekConfig.java | 49 + .../SyncDeleteCmekConfigCmekconfigname.java | 44 + .../SyncDeleteCmekConfigString.java | 42 + .../getcmekconfig/AsyncGetCmekConfig.java | 50 + .../getcmekconfig/SyncGetCmekConfig.java | 46 + .../SyncGetCmekConfigCmekconfigname.java | 42 + .../SyncGetCmekConfigString.java | 42 + .../listcmekconfigs/AsyncListCmekConfigs.java | 50 + .../listcmekconfigs/SyncListCmekConfigs.java | 46 + .../SyncListCmekConfigsLocationname.java | 42 + .../SyncListCmekConfigsString.java | 42 + .../AsyncUpdateCmekConfig.java | 51 + .../AsyncUpdateCmekConfigLRO.java | 51 + .../SyncUpdateCmekConfig.java | 46 + .../SyncUpdateCmekConfigCmekconfig.java | 41 + .../getcmekconfig/SyncGetCmekConfig.java | 56 + .../SyncUpdateCmekConfig.java | 54 + .../AsyncAdvancedCompleteQuery.java | 3 + .../SyncAdvancedCompleteQuery.java | 3 + .../AsyncRemoveSuggestion.java | 58 + .../SyncRemoveSuggestion.java | 54 + .../answerquery/AsyncAnswerQuery.java | 1 + .../answerquery/SyncAnswerQuery.java | 1 + .../createsession/AsyncCreateSession.java | 1 + .../createsession/SyncCreateSession.java | 1 + .../AsyncStreamAnswerQuery.java | 74 + .../importdocuments/AsyncImportDocuments.java | 1 + .../AsyncImportDocumentsLRO.java | 1 + .../importdocuments/SyncImportDocuments.java | 1 + .../getiampolicy/AsyncGetIamPolicy.java | 52 + .../getiampolicy/SyncGetIamPolicy.java | 49 + .../SyncGetIamPolicyResourcename.java | 43 + .../getiampolicy/SyncGetIamPolicyString.java | 42 + .../setiampolicy/AsyncSetIamPolicy.java | 53 + .../setiampolicy/SyncSetIamPolicy.java | 50 + .../SyncSetIamPolicyResourcenamePolicy.java | 44 + .../SyncSetIamPolicyStringPolicy.java | 43 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../AsyncCreateIdentityMappingStore.java | 55 + .../SyncCreateIdentityMappingStore.java | 50 + ...ocationnameIdentitymappingstoreString.java | 48 + ...StoreStringIdentitymappingstoreString.java | 48 + .../AsyncDeleteIdentityMappingStore.java | 55 + .../AsyncDeleteIdentityMappingStoreLRO.java | 56 + .../SyncDeleteIdentityMappingStore.java | 33 +- ...yMappingStoreIdentitymappingstorename.java | 29 +- .../SyncDeleteIdentityMappingStoreString.java | 27 +- .../AsyncGetIdentityMappingStore.java | 53 + .../SyncGetIdentityMappingStore.java | 50 + ...yMappingStoreIdentitymappingstorename.java | 45 + .../SyncGetIdentityMappingStoreString.java | 28 +- .../AsyncImportIdentityMappings.java | 53 + .../AsyncImportIdentityMappingsLRO.java | 57 + .../SyncImportIdentityMappings.java | 50 + .../AsyncListIdentityMappings.java | 57 + .../AsyncListIdentityMappingsPaged.java | 65 + .../SyncListIdentityMappings.java | 54 + .../AsyncListIdentityMappingStores.java | 57 + .../AsyncListIdentityMappingStoresPaged.java | 63 + .../SyncListIdentityMappingStores.java | 52 + ...ListIdentityMappingStoresLocationname.java | 46 + .../SyncListIdentityMappingStoresString.java | 46 + .../AsyncPurgeIdentityMappings.java | 55 + .../AsyncPurgeIdentityMappingsLRO.java | 58 + .../SyncPurgeIdentityMappings.java | 51 + .../SyncCreateIdentityMappingStore.java | 57 + .../SyncDeleteIdentityMappingStore.java | 54 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../AsyncCreateLicenseConfig.java | 53 + .../SyncCreateLicenseConfig.java | 49 + ...ConfigLocationnameLicenseconfigString.java | 46 + ...icenseConfigStringLicenseconfigString.java | 46 + .../AsyncDistributeLicenseConfig.java | 58 + .../SyncDistributeLicenseConfig.java | 55 + ...licenseconfignameLongStringLongString.java | 53 + ...censeConfigStringLongStringLongString.java | 52 + .../AsyncGetLicenseConfig.java | 52 + .../SyncGetLicenseConfig.java | 48 + ...SyncGetLicenseConfigLicenseconfigname.java | 43 + .../SyncGetLicenseConfigString.java | 43 + .../AsyncListLicenseConfigs.java | 56 + .../AsyncListLicenseConfigsPaged.java | 64 + .../SyncListLicenseConfigs.java | 53 + .../SyncListLicenseConfigsLocationname.java | 46 + .../SyncListLicenseConfigsString.java | 46 + .../AsyncRetractLicenseConfig.java | 59 + .../SyncRetractLicenseConfig.java | 56 + ...onfignameLicenseconfignameBooleanLong.java | 54 + ...untlicenseconfignameStringBooleanLong.java | 53 + ...figStringLicenseconfignameBooleanLong.java | 53 + ...tLicenseConfigStringStringBooleanLong.java | 53 + .../AsyncUpdateLicenseConfig.java | 52 + .../SyncUpdateLicenseConfig.java | 48 + ...teLicenseConfigLicenseconfigFieldmask.java | 45 + .../SyncCreateLicenseConfig.java | 57 + .../AsyncProvisionProject.java | 1 + .../AsyncProvisionProjectLRO.java | 1 + .../SyncProvisionProject.java | 1 + .../searchservice/search/AsyncSearch.java | 9 + .../search/AsyncSearchPaged.java | 9 + .../searchservice/search/SyncSearch.java | 9 + .../searchlite/AsyncSearchLite.java | 9 + .../searchlite/AsyncSearchLitePaged.java | 9 + .../searchlite/SyncSearchLite.java | 9 + .../AsyncCreateServingConfig.java | 56 + .../SyncCreateServingConfig.java | 52 + ...onfigDatastorenameServingconfigString.java | 47 + ...ngConfigEnginenameServingconfigString.java | 46 + ...ervingConfigStringServingconfigString.java | 48 + .../AsyncDeleteServingConfig.java | 54 + .../SyncDeleteServingConfig.java | 50 + ...cDeleteServingConfigServingconfigname.java | 45 + .../SyncDeleteServingConfigString.java | 46 + .../SyncCreateServingConfig.java} | 14 +- .../createsession/AsyncCreateSession.java | 1 + .../createsession/SyncCreateSession.java | 1 + .../updateaclconfig/SyncUpdateAclConfig.java | 56 + .../createassistant/SyncCreateAssistant.java | 56 + .../getcmekconfig/SyncGetCmekConfig.java | 57 + .../SyncUpdateCmekConfig.java | 54 + .../SyncCreateIdentityMappingStore.java | 57 + .../SyncDeleteIdentityMappingStore.java | 54 + .../SyncCreateLicenseConfig.java | 57 + .../SyncCreateServingConfig.java} | 14 +- .../SyncBatchUpdateUserLicenses.java | 54 + .../SyncListLicenseConfigsUsageStats.java | 57 + .../getuserstore/SyncGetUserStore.java | 56 + .../AsyncBatchUpdateUserLicenses.java | 51 + .../AsyncBatchUpdateUserLicensesLRO.java | 52 + .../SyncBatchUpdateUserLicenses.java | 48 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../AsyncListLicenseConfigsUsageStats.java | 50 + .../SyncListLicenseConfigsUsageStats.java | 47 + ...yncListLicenseConfigsUsageStatsString.java | 43 + ...LicenseConfigsUsageStatsUserstorename.java | 43 + .../AsyncListUserLicenses.java | 56 + .../AsyncListUserLicensesPaged.java | 64 + .../SyncListUserLicenses.java | 52 + .../SyncListUserLicensesString.java | 44 + .../SyncListUserLicensesUserstorename.java | 44 + .../SyncBatchUpdateUserLicenses.java | 54 + .../SyncListLicenseConfigsUsageStats.java | 57 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../getuserstore/AsyncGetUserStore.java | 50 + .../getuserstore/SyncGetUserStore.java | 46 + .../getuserstore/SyncGetUserStoreString.java | 42 + .../SyncGetUserStoreUserstorename.java | 42 + .../updateuserstore/AsyncUpdateUserStore.java | 51 + .../updateuserstore/SyncUpdateUserStore.java | 47 + ...SyncUpdateUserStoreUserstoreFieldmask.java | 43 + .../getuserstore/SyncGetUserStore.java | 56 + .../reflect-config.json | 18 + .../v1beta1/DeliverInfo.java | 23 + .../networkmanagement/v1beta1/DropInfo.java | 48 + .../networkmanagement/v1beta1/Endpoint.java | 308 +- .../v1beta1/EndpointOrBuilder.java | 32 + .../v1beta1/InstanceInfo.java | 22 +- .../v1beta1/InstanceInfoOrBuilder.java | 6 +- .../v1beta1/LoadBalancerInfo.java | 14 +- .../v1beta1/LoadBalancerInfoOrBuilder.java | 4 +- .../v1beta1/PrivateConnectionInfo.java | 611 + .../PrivateConnectionInfoOrBuilder.java | 56 + .../networkmanagement/v1beta1/RouteInfo.java | 46 +- .../v1beta1/RouteInfoOrBuilder.java | 14 +- .../cloud/networkmanagement/v1beta1/Step.java | 377 +- .../v1beta1/StepOrBuilder.java | 48 +- .../v1beta1/TestOuterClass.java | 71 +- .../networkmanagement/v1beta1/TraceProto.java | 136 +- .../v1beta1/connectivity_test.proto | 6 + .../networkmanagement/v1beta1/trace.proto | 23 + .../v1/NetworkServicesClient.java | 1199 +- .../v1/NetworkServicesSettings.java | 95 + .../networkservices/v1/gapic_metadata.json | 15 + .../v1/stub/GrpcNetworkServicesStub.java | 234 + .../v1/stub/HttpJsonNetworkServicesStub.java | 385 + .../v1/stub/NetworkServicesStub.java | 52 + .../v1/stub/NetworkServicesStubSettings.java | 330 + .../reflect-config.json | 279 + .../v1/DepServiceClientHttpJsonTest.java | 7 + .../v1/DepServiceClientTest.java | 5 + .../v1/MockNetworkServicesImpl.java | 106 + .../v1/NetworkServicesClientHttpJsonTest.java | 528 + .../v1/NetworkServicesClientTest.java | 464 + .../v1/NetworkServicesGrpc.java | 661 + .../networkservices/v1/AgentGateway.java | 11323 ++++ .../networkservices/v1/AgentGatewayName.java | 227 + .../v1/AgentGatewayOrBuilder.java | 600 + .../networkservices/v1/AgentGatewayProto.java | 371 + .../networkservices/v1/AuthzExtension.java | 537 +- .../v1/AuthzExtensionOrBuilder.java | 122 +- .../networkservices/v1/BodySendMode.java | 215 + .../v1/CreateAgentGatewayRequest.java | 1130 + .../CreateAgentGatewayRequestOrBuilder.java | 129 + .../v1/CreateEndpointPolicyRequest.java | 14 +- .../CreateEndpointPolicyRequestOrBuilder.java | 4 +- .../v1/CreateGrpcRouteRequest.java | 14 +- .../v1/CreateGrpcRouteRequestOrBuilder.java | 4 +- .../v1/CreateHttpRouteRequest.java | 217 +- .../v1/CreateHttpRouteRequestOrBuilder.java | 34 +- .../networkservices/v1/CreateMeshRequest.java | 14 +- .../v1/CreateMeshRequestOrBuilder.java | 4 +- .../v1/CreateTcpRouteRequest.java | 14 +- .../v1/CreateTcpRouteRequestOrBuilder.java | 4 +- .../v1/CreateTlsRouteRequest.java | 14 +- .../v1/CreateTlsRouteRequestOrBuilder.java | 4 +- .../v1/DeleteAgentGatewayRequest.java | 811 + .../DeleteAgentGatewayRequestOrBuilder.java | 86 + .../v1/DeleteEndpointPolicyRequest.java | 14 +- .../DeleteEndpointPolicyRequestOrBuilder.java | 4 +- .../v1/DeleteGrpcRouteRequest.java | 14 +- .../v1/DeleteGrpcRouteRequestOrBuilder.java | 4 +- .../v1/DeleteHttpRouteRequest.java | 14 +- .../v1/DeleteHttpRouteRequestOrBuilder.java | 4 +- .../networkservices/v1/DeleteMeshRequest.java | 14 +- .../v1/DeleteMeshRequestOrBuilder.java | 4 +- .../v1/DeleteTcpRouteRequest.java | 14 +- .../v1/DeleteTcpRouteRequestOrBuilder.java | 4 +- .../v1/DeleteTlsRouteRequest.java | 14 +- .../v1/DeleteTlsRouteRequestOrBuilder.java | 4 +- .../cloud/networkservices/v1/DepProto.java | 371 +- .../networkservices/v1/EndpointPolicy.java | 14 +- .../v1/EndpointPolicyOrBuilder.java | 4 +- .../networkservices/v1/EnvoyHeaders.java | 16 +- .../networkservices/v1/ExtensionChain.java | 1732 +- .../cloud/networkservices/v1/Gateway.java | 336 +- .../networkservices/v1/GatewayOrBuilder.java | 36 +- .../networkservices/v1/GatewayProto.java | 62 +- .../v1/GetAgentGatewayRequest.java | 618 + .../v1/GetAgentGatewayRequestOrBuilder.java | 16 +- .../v1/GetEndpointPolicyRequest.java | 14 +- .../v1/GetEndpointPolicyRequestOrBuilder.java | 4 +- .../v1/GetGrpcRouteRequest.java | 14 +- .../v1/GetGrpcRouteRequestOrBuilder.java | 4 +- .../v1/GetHttpRouteRequest.java | 14 +- .../v1/GetHttpRouteRequestOrBuilder.java | 4 +- .../networkservices/v1/GetMeshRequest.java | 14 +- .../v1/GetMeshRequestOrBuilder.java | 4 +- .../v1/GetTcpRouteRequest.java | 14 +- .../v1/GetTcpRouteRequestOrBuilder.java | 4 +- .../v1/GetTlsRouteRequest.java | 14 +- .../v1/GetTlsRouteRequestOrBuilder.java | 4 +- .../cloud/networkservices/v1/GrpcRoute.java | 66 +- .../v1/GrpcRouteOrBuilder.java | 20 +- .../cloud/networkservices/v1/HttpRoute.java | 66 +- .../v1/HttpRouteOrBuilder.java | 20 +- .../networkservices/v1/HttpRouteProto.java | 140 +- .../v1/ListAgentGatewaysRequest.java | 1027 + .../v1/ListAgentGatewaysRequestOrBuilder.java | 118 + .../v1/ListAgentGatewaysResponse.java | 1459 + .../ListAgentGatewaysResponseOrBuilder.java | 176 + .../v1/ListEndpointPoliciesRequest.java | 14 +- .../ListEndpointPoliciesRequestOrBuilder.java | 4 +- .../v1/ListGrpcRoutesRequest.java | 14 +- .../v1/ListGrpcRoutesRequestOrBuilder.java | 4 +- .../v1/ListHttpRoutesRequest.java | 203 +- .../v1/ListHttpRoutesRequestOrBuilder.java | 30 +- .../networkservices/v1/ListMeshesRequest.java | 14 +- .../v1/ListMeshesRequestOrBuilder.java | 4 +- .../v1/ListTcpRoutesRequest.java | 14 +- .../v1/ListTcpRoutesRequestOrBuilder.java | 4 +- .../v1/ListTlsRoutesRequest.java | 14 +- .../v1/ListTlsRoutesRequestOrBuilder.java | 4 +- .../google/cloud/networkservices/v1/Mesh.java | 14 +- .../networkservices/v1/MeshOrBuilder.java | 4 +- .../cloud/networkservices/v1/MeshProto.java | 62 +- .../v1/NetworkServicesOuterClass.java | 775 +- .../v1/ServiceBindingProto.java | 105 +- .../cloud/networkservices/v1/TcpRoute.java | 66 +- .../networkservices/v1/TcpRouteOrBuilder.java | 20 +- .../cloud/networkservices/v1/TlsRoute.java | 461 +- .../networkservices/v1/TlsRouteOrBuilder.java | 102 +- .../networkservices/v1/TlsRouteProto.java | 41 +- .../v1/UpdateAgentGatewayRequest.java | 1067 + .../UpdateAgentGatewayRequestOrBuilder.java | 123 + .../cloud/networkservices/v1/WasmPlugin.java | 639 +- .../networkservices/v1/WasmPluginVersion.java | 457 +- .../v1/WasmPluginVersionOrBuilder.java | 140 +- .../cloud/networkservices/v1/WireFormat.java | 27 + .../networkservices/v1/agent_gateway.proto | 299 + .../cloud/networkservices/v1/common.proto | 10 +- .../google/cloud/networkservices/v1/dep.proto | 129 +- .../networkservices/v1/endpoint_policy.proto | 12 +- .../networkservices/v1/extensibility.proto | 125 +- .../cloud/networkservices/v1/gateway.proto | 17 +- .../cloud/networkservices/v1/grpc_route.proto | 19 +- .../cloud/networkservices/v1/http_route.proto | 26 +- .../cloud/networkservices/v1/mesh.proto | 14 +- .../networkservices/v1/network_services.proto | 62 +- .../networkservices/v1/service_binding.proto | 4 +- .../v1/service_lb_policy.proto | 2 +- .../cloud/networkservices/v1/tcp_route.proto | 16 +- .../cloud/networkservices/v1/tls_route.proto | 33 +- .../AsyncCreateAgentGateway.java | 53 + .../AsyncCreateAgentGatewayLRO.java | 53 + .../SyncCreateAgentGateway.java | 48 + ...GatewayLocationnameAgentgatewayString.java | 45 + ...eAgentGatewayStringAgentgatewayString.java | 45 + .../createhttproute/AsyncCreateHttpRoute.java | 1 + .../AsyncCreateHttpRouteLRO.java | 1 + .../createhttproute/SyncCreateHttpRoute.java | 1 + .../AsyncDeleteAgentGateway.java | 51 + .../AsyncDeleteAgentGatewayLRO.java | 52 + .../SyncDeleteAgentGateway.java | 47 + ...yncDeleteAgentGatewayAgentgatewayname.java | 42 + .../SyncDeleteAgentGatewayString.java | 42 + .../getagentgateway/AsyncGetAgentGateway.java | 50 + .../getagentgateway/SyncGetAgentGateway.java | 46 + .../SyncGetAgentGatewayAgentgatewayname.java | 42 + .../SyncGetAgentGatewayString.java | 42 + .../AsyncListAgentGateways.java | 55 + .../AsyncListAgentGatewaysPaged.java | 63 + .../SyncListAgentGateways.java | 51 + .../SyncListAgentGatewaysLocationname.java | 44 + .../SyncListAgentGatewaysString.java | 44 + .../listhttproutes/AsyncListHttpRoutes.java | 1 + .../AsyncListHttpRoutesPaged.java | 1 + .../listhttproutes/SyncListHttpRoutes.java | 1 + .../AsyncUpdateAgentGateway.java | 52 + .../AsyncUpdateAgentGatewayLRO.java | 52 + .../SyncUpdateAgentGateway.java | 47 + ...dateAgentGatewayAgentgatewayFieldmask.java | 44 + .../v1/OracleDatabaseClient.java | 593 - .../v1/OracleDatabaseSettings.java | 55 - .../oracledatabase/v1/gapic_metadata.json | 12 - .../v1/stub/GrpcOracleDatabaseStub.java | 176 - .../v1/stub/HttpJsonOracleDatabaseStub.java | 272 - .../v1/stub/OracleDatabaseStub.java | 32 - .../v1/stub/OracleDatabaseStubSettings.java | 127 - .../reflect-config.json | 72 - .../v1/MockOracleDatabaseImpl.java | 92 - .../v1/OracleDatabaseClientHttpJsonTest.java | 438 - .../v1/OracleDatabaseClientTest.java | 390 - .../oracledatabase/v1/OracleDatabaseGrpc.java | 604 +- .../v1/GoldengateConnectionTypeProto.java | 35 +- .../GoldengateDeploymentEnvironmentProto.java | 39 +- .../v1/GoldengateDeploymentTypeProto.java | 35 +- .../v1/GoldengateDeploymentVersionProto.java | 37 +- .../cloud/oracledatabase/v1/V1mainProto.java | 209 +- .../v1/goldengate_connection_type.proto | 12 - .../goldengate_deployment_environment.proto | 12 - .../v1/goldengate_deployment_type.proto | 13 - .../v1/goldengate_deployment_version.proto | 13 - .../oracledatabase/v1/oracledatabase.proto | 37 - ...yncGetGoldengateDeploymentEnvironment.java | 53 - ...yncGetGoldengateDeploymentEnvironment.java | 50 - ...ntGoldengatedeploymentenvironmentname.java | 46 - .../AsyncGetGoldengateDeploymentVersion.java | 53 - ...ersionGoldengatedeploymentversionname.java | 46 - librarian.yaml | 4 +- 1013 files changed, 451688 insertions(+), 85882 deletions(-) create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEvent.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventOrBuilder.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventProto.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdFormat.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdPlacement.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdType.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AttributionHint.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CoordinatorKeyInfo.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CoordinatorKeyInfoOrBuilder.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/FeatureSet.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequest.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequestOrBuilder.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsResponse.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsResponseOrBuilder.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MediaQuartile.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerCustomerAccount.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerCustomerAccountOrBuilder.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkMetadata.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkMetadataOrBuilder.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/Platform.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PlatformType.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TargetingType.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewType.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfo.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfoOrBuilder.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfoProto.java create mode 100644 java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ad_event.proto create mode 100644 java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/viewability_info.proto create mode 100644 java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/ingestadevents/AsyncIngestAdEvents.java create mode 100644 java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/ingestadevents/SyncIngestAdEvents.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceClient.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceClient.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceClient.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceClient.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceClient.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceClient.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceClient.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AclConfigServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AclConfigServiceStubSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AssistantServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AssistantServiceStubSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CmekConfigServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CmekConfigServiceStubSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcAclConfigServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcAclConfigServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcAssistantServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcAssistantServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCmekConfigServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCmekConfigServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcIdentityMappingStoreServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcIdentityMappingStoreServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcLicenseConfigServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcLicenseConfigServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserLicenseServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserLicenseServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserStoreServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserStoreServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonAclConfigServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonAclConfigServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonAssistantServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonAssistantServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCmekConfigServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCmekConfigServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonIdentityMappingStoreServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonIdentityMappingStoreServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonLicenseConfigServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonLicenseConfigServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserLicenseServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserLicenseServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserStoreServiceCallableFactory.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserStoreServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/IdentityMappingStoreServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/IdentityMappingStoreServiceStubSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/LicenseConfigServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/LicenseConfigServiceStubSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserLicenseServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserLicenseServiceStubSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserStoreServiceStub.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserStoreServiceStubSettings.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceClientHttpJsonTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceClientTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceClientHttpJsonTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceClientTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceClientHttpJsonTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceClientTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceClientHttpJsonTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceClientTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceClientHttpJsonTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceClientTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockAclConfigService.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockAclConfigServiceImpl.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockAssistantService.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockAssistantServiceImpl.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCmekConfigService.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCmekConfigServiceImpl.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockIdentityMappingStoreService.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockIdentityMappingStoreServiceImpl.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockLicenseConfigService.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockLicenseConfigServiceImpl.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserLicenseService.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserLicenseServiceImpl.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserStoreService.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserStoreServiceImpl.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceClientHttpJsonTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceClientTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceClientHttpJsonTest.java create mode 100644 java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceClientTest.java create mode 100644 java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceGrpc.java create mode 100644 java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceGrpc.java create mode 100644 java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceGrpc.java create mode 100644 java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceGrpc.java create mode 100644 java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceGrpc.java create mode 100644 java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceGrpc.java create mode 100644 java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceGrpc.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfig.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigName.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedSiteSearchConfig.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedSiteSearchConfigOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AgentGatewaySetting.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AgentGatewaySettingOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AgentGatewaySettingProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerGenerationSpec.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerGenerationSpecOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistAnswer.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistAnswerOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistAnswerProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistUserMetadata.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistUserMetadataOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Assistant.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantContent.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantContentOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantGroundedContent.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantGroundedContentOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantName.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesMetadata.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesMetadataOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BillingAccountLicenseConfigName.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Citation.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CitationMetadata.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CitationMetadataOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CitationOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfig.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigName.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateAssistantRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateAssistantRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateIdentityMappingStoreRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateIdentityMappingStoreRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateLicenseConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateLicenseConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateServingConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateServingConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteAssistantRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteAssistantRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteCmekConfigMetadata.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteCmekConfigMetadataOrBuilder.java rename java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentEnvironmentRequest.java => java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteCmekConfigRequest.java (54%) create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteCmekConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteIdentityMappingStoreMetadata.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteIdentityMappingStoreMetadataOrBuilder.java rename java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentVersionRequest.java => java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteIdentityMappingStoreRequest.java (66%) rename java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentTypeRequestOrBuilder.java => java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteIdentityMappingStoreRequestOrBuilder.java (67%) rename java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateConnectionTypeRequest.java => java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteServingConfigRequest.java (67%) create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteServingConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DistributeLicenseConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DistributeLicenseConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DistributeLicenseConfigResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DistributeLicenseConfigResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Feedback.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FeedbackOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FeedbackProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetAclConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetAclConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetAssistantRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetAssistantRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetCmekConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetCmekConfigRequestOrBuilder.java rename java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentTypeRequest.java => java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetIdentityMappingStoreRequest.java (66%) rename java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentVersionRequestOrBuilder.java => java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetIdentityMappingStoreRequestOrBuilder.java (67%) create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetLicenseConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetLicenseConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetUserStoreRequest.java rename java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateConnectionTypeRequestOrBuilder.java => java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetUserStoreRequestOrBuilder.java (68%) create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/HarmCategory.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/HealthcareFhirConfig.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/HealthcareFhirConfigOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingEntry.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingEntryOperationMetadata.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingEntryOperationMetadataOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingEntryOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStore.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreName.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdpConfig.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdpConfigOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportIdentityMappingsRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportIdentityMappingsRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportIdentityMappingsResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportIdentityMappingsResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfig.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigName.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigUsageStats.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigUsageStatsOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListAssistantsRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListAssistantsRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListAssistantsResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListAssistantsResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListCmekConfigsRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListCmekConfigsRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListCmekConfigsResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListCmekConfigsResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingStoresRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingStoresRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingStoresResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingStoresResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingsRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingsRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingsResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingsResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsUsageStatsRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsUsageStatsRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsUsageStatsResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsUsageStatsResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListUserLicensesRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListUserLicensesRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListUserLicensesResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListUserLicensesResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LoggingProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ObservabilityConfig.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ObservabilityConfigOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Principal.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PrincipalOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeIdentityMappingsRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeIdentityMappingsRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RemoveSuggestionRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RemoveSuggestionRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RemoveSuggestionResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RemoveSuggestionResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RetractLicenseConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RetractLicenseConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RetractLicenseConfigResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RetractLicenseConfigResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SafetyProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SafetyRating.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SafetyRatingOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchLinkPromotion.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchLinkPromotionOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SingleRegionKey.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SingleRegionKeyOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/StreamAssistRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/StreamAssistRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/StreamAssistResponse.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/StreamAssistResponseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SubscriptionTerm.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SubscriptionTier.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateAclConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateAclConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateAssistantRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateAssistantRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateCmekConfigMetadata.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateCmekConfigMetadataOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateCmekConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateCmekConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateLicenseConfigRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateLicenseConfigRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateUserStoreRequest.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateUserStoreRequestOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicense.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStore.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreName.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreOrBuilder.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceProto.java create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/acl_config.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/acl_config_service.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/agent_gateway_setting.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/assist_answer.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/assistant.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/assistant_service.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/cmek_config_service.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/feedback.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/identity_mapping_store.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/license_config.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/license_config_service.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/logging.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/safety.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_license.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_license_service.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_store.proto create mode 100644 java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_store_service.proto create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/create/SyncCreateSetEndpoint.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/create/SyncCreateUseHttpJsonTransport.java rename java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengateconnectiontype/SyncGetGoldengateConnectionTypeGoldengateconnectiontypename.java => java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/getaclconfig/AsyncGetAclConfig.java (50%) create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/getaclconfig/SyncGetAclConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/getaclconfig/SyncGetAclConfigAclconfigname.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/getaclconfig/SyncGetAclConfigString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/updateaclconfig/AsyncUpdateAclConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/updateaclconfig/SyncUpdateAclConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservicesettings/updateaclconfig/SyncUpdateAclConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/create/SyncCreateSetEndpoint.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/createassistant/AsyncCreateAssistant.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/createassistant/SyncCreateAssistant.java rename java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymenttype/SyncGetGoldengateDeploymentType.java => java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/deleteassistant/AsyncDeleteAssistant.java (51%) rename java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengateconnectiontype/SyncGetGoldengateConnectionType.java => java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/deleteassistant/SyncDeleteAssistant.java (51%) create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/deleteassistant/SyncDeleteAssistantAssistantname.java rename java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengateconnectiontype/SyncGetGoldengateConnectionTypeString.java => java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/deleteassistant/SyncDeleteAssistantString.java (55%) rename java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymenttype/AsyncGetGoldengateDeploymentType.java => java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/getassistant/AsyncGetAssistant.java (50%) create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/getassistant/SyncGetAssistant.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/getassistant/SyncGetAssistantAssistantname.java rename java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymenttype/SyncGetGoldengateDeploymentTypeString.java => java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/getassistant/SyncGetAssistantString.java (55%) create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/AsyncListAssistants.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/AsyncListAssistantsPaged.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/SyncListAssistants.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/SyncListAssistantsEnginename.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/SyncListAssistantsString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/streamassist/AsyncStreamAssist.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/updateassistant/AsyncUpdateAssistant.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/updateassistant/SyncUpdateAssistant.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/updateassistant/SyncUpdateAssistantAssistantFieldmask.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservicesettings/createassistant/SyncCreateAssistant.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/create/SyncCreateSetEndpoint.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/create/SyncCreateUseHttpJsonTransport.java rename java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengateconnectiontype/AsyncGetGoldengateConnectionType.java => java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/AsyncDeleteCmekConfig.java (50%) create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/AsyncDeleteCmekConfigLRO.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/SyncDeleteCmekConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/SyncDeleteCmekConfigCmekconfigname.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/SyncDeleteCmekConfigString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/getcmekconfig/AsyncGetCmekConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/getcmekconfig/SyncGetCmekConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/getcmekconfig/SyncGetCmekConfigCmekconfigname.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/getcmekconfig/SyncGetCmekConfigString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/listcmekconfigs/AsyncListCmekConfigs.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/listcmekconfigs/SyncListCmekConfigs.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/listcmekconfigs/SyncListCmekConfigsLocationname.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/listcmekconfigs/SyncListCmekConfigsString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/updatecmekconfig/AsyncUpdateCmekConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/updatecmekconfig/AsyncUpdateCmekConfigLRO.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/updatecmekconfig/SyncUpdateCmekConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/updatecmekconfig/SyncUpdateCmekConfigCmekconfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservicesettings/getcmekconfig/SyncGetCmekConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservicesettings/updatecmekconfig/SyncUpdateCmekConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/removesuggestion/AsyncRemoveSuggestion.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/removesuggestion/SyncRemoveSuggestion.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/streamanswerquery/AsyncStreamAnswerQuery.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/getiampolicy/AsyncGetIamPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/getiampolicy/SyncGetIamPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/getiampolicy/SyncGetIamPolicyResourcename.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/getiampolicy/SyncGetIamPolicyString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/setiampolicy/AsyncSetIamPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/setiampolicy/SyncSetIamPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/setiampolicy/SyncSetIamPolicyStringPolicy.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/create/SyncCreateSetEndpoint.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/createidentitymappingstore/AsyncCreateIdentityMappingStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/createidentitymappingstore/SyncCreateIdentityMappingStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/createidentitymappingstore/SyncCreateIdentityMappingStoreLocationnameIdentitymappingstoreString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/createidentitymappingstore/SyncCreateIdentityMappingStoreStringIdentitymappingstoreString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/AsyncDeleteIdentityMappingStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/AsyncDeleteIdentityMappingStoreLRO.java rename java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentversion/SyncGetGoldengateDeploymentVersion.java => java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/SyncDeleteIdentityMappingStore.java (50%) rename java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymenttype/SyncGetGoldengateDeploymentTypeGoldengatedeploymenttypename.java => java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/SyncDeleteIdentityMappingStoreIdentitymappingstorename.java (50%) rename java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentversion/SyncGetGoldengateDeploymentVersionString.java => java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/SyncDeleteIdentityMappingStoreString.java (54%) create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/getidentitymappingstore/AsyncGetIdentityMappingStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/getidentitymappingstore/SyncGetIdentityMappingStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/getidentitymappingstore/SyncGetIdentityMappingStoreIdentitymappingstorename.java rename java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentenvironment/SyncGetGoldengateDeploymentEnvironmentString.java => java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/getidentitymappingstore/SyncGetIdentityMappingStoreString.java (52%) create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/importidentitymappings/AsyncImportIdentityMappings.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/importidentitymappings/AsyncImportIdentityMappingsLRO.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/importidentitymappings/SyncImportIdentityMappings.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappings/AsyncListIdentityMappings.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappings/AsyncListIdentityMappingsPaged.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappings/SyncListIdentityMappings.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/AsyncListIdentityMappingStores.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/AsyncListIdentityMappingStoresPaged.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/SyncListIdentityMappingStores.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/SyncListIdentityMappingStoresLocationname.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/SyncListIdentityMappingStoresString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/purgeidentitymappings/AsyncPurgeIdentityMappings.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/purgeidentitymappings/AsyncPurgeIdentityMappingsLRO.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/purgeidentitymappings/SyncPurgeIdentityMappings.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservicesettings/createidentitymappingstore/SyncCreateIdentityMappingStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservicesettings/deleteidentitymappingstore/SyncDeleteIdentityMappingStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/create/SyncCreateSetEndpoint.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/createlicenseconfig/AsyncCreateLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfigLocationnameLicenseconfigString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfigStringLicenseconfigString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/distributelicenseconfig/AsyncDistributeLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfigBillingaccountlicenseconfignameLongStringLongString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfigStringLongStringLongString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/getlicenseconfig/AsyncGetLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfigLicenseconfigname.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfigString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/AsyncListLicenseConfigs.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/AsyncListLicenseConfigsPaged.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigs.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigsLocationname.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigsString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/AsyncRetractLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigBillingaccountlicenseconfignameLicenseconfignameBooleanLong.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigBillingaccountlicenseconfignameStringBooleanLong.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigStringLicenseconfignameBooleanLong.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigStringStringBooleanLong.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/updatelicenseconfig/AsyncUpdateLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/updatelicenseconfig/SyncUpdateLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/updatelicenseconfig/SyncUpdateLicenseConfigLicenseconfigFieldmask.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservicesettings/createlicenseconfig/SyncCreateLicenseConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/AsyncCreateServingConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/SyncCreateServingConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/SyncCreateServingConfigDatastorenameServingconfigString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/SyncCreateServingConfigEnginenameServingconfigString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/SyncCreateServingConfigStringServingconfigString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/deleteservingconfig/AsyncDeleteServingConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/deleteservingconfig/SyncDeleteServingConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/deleteservingconfig/SyncDeleteServingConfigServingconfigname.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/deleteservingconfig/SyncDeleteServingConfigString.java rename java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservicesettings/{updateservingconfig/SyncUpdateServingConfig.java => createservingconfig/SyncCreateServingConfig.java} (88%) create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/aclconfigservicestubsettings/updateaclconfig/SyncUpdateAclConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/assistantservicestubsettings/createassistant/SyncCreateAssistant.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/cmekconfigservicestubsettings/getcmekconfig/SyncGetCmekConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/cmekconfigservicestubsettings/updatecmekconfig/SyncUpdateCmekConfig.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/identitymappingstoreservicestubsettings/createidentitymappingstore/SyncCreateIdentityMappingStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/identitymappingstoreservicestubsettings/deleteidentitymappingstore/SyncDeleteIdentityMappingStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/licenseconfigservicestubsettings/createlicenseconfig/SyncCreateLicenseConfig.java rename java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/servingconfigservicestubsettings/{updateservingconfig/SyncUpdateServingConfig.java => createservingconfig/SyncCreateServingConfig.java} (88%) create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/userlicenseservicestubsettings/batchupdateuserlicenses/SyncBatchUpdateUserLicenses.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/userlicenseservicestubsettings/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/userstoreservicestubsettings/getuserstore/SyncGetUserStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/batchupdateuserlicenses/AsyncBatchUpdateUserLicenses.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/batchupdateuserlicenses/AsyncBatchUpdateUserLicensesLRO.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/batchupdateuserlicenses/SyncBatchUpdateUserLicenses.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/create/SyncCreateSetEndpoint.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listlicenseconfigsusagestats/AsyncListLicenseConfigsUsageStats.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStatsString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStatsUserstorename.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/AsyncListUserLicenses.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/AsyncListUserLicensesPaged.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/SyncListUserLicenses.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/SyncListUserLicensesString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/SyncListUserLicensesUserstorename.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservicesettings/batchupdateuserlicenses/SyncBatchUpdateUserLicenses.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservicesettings/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/create/SyncCreateSetEndpoint.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/getuserstore/AsyncGetUserStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/getuserstore/SyncGetUserStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/getuserstore/SyncGetUserStoreString.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/getuserstore/SyncGetUserStoreUserstorename.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/updateuserstore/AsyncUpdateUserStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/updateuserstore/SyncUpdateUserStore.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/updateuserstore/SyncUpdateUserStoreUserstoreFieldmask.java create mode 100644 java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservicesettings/getuserstore/SyncGetUserStore.java create mode 100644 java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/PrivateConnectionInfo.java create mode 100644 java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/PrivateConnectionInfoOrBuilder.java create mode 100644 java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGateway.java create mode 100644 java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayName.java create mode 100644 java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayOrBuilder.java create mode 100644 java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayProto.java create mode 100644 java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/BodySendMode.java create mode 100644 java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateAgentGatewayRequest.java create mode 100644 java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateAgentGatewayRequestOrBuilder.java create mode 100644 java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteAgentGatewayRequest.java create mode 100644 java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteAgentGatewayRequestOrBuilder.java create mode 100644 java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetAgentGatewayRequest.java rename java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentEnvironmentRequestOrBuilder.java => java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetAgentGatewayRequestOrBuilder.java (66%) create mode 100644 java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysRequest.java create mode 100644 java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysRequestOrBuilder.java create mode 100644 java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysResponse.java create mode 100644 java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysResponseOrBuilder.java create mode 100644 java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/UpdateAgentGatewayRequest.java create mode 100644 java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/UpdateAgentGatewayRequestOrBuilder.java create mode 100644 java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/agent_gateway.proto create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/AsyncCreateAgentGateway.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/AsyncCreateAgentGatewayLRO.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGateway.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGatewayLocationnameAgentgatewayString.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGatewayStringAgentgatewayString.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/AsyncDeleteAgentGateway.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/AsyncDeleteAgentGatewayLRO.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGateway.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGatewayAgentgatewayname.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGatewayString.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/AsyncGetAgentGateway.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGateway.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGatewayAgentgatewayname.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGatewayString.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/AsyncListAgentGateways.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/AsyncListAgentGatewaysPaged.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGateways.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGatewaysLocationname.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGatewaysString.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/AsyncUpdateAgentGateway.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/AsyncUpdateAgentGatewayLRO.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/SyncUpdateAgentGateway.java create mode 100644 java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/SyncUpdateAgentGatewayAgentgatewayFieldmask.java delete mode 100644 java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentenvironment/AsyncGetGoldengateDeploymentEnvironment.java delete mode 100644 java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentenvironment/SyncGetGoldengateDeploymentEnvironment.java delete mode 100644 java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentenvironment/SyncGetGoldengateDeploymentEnvironmentGoldengatedeploymentenvironmentname.java delete mode 100644 java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentversion/AsyncGetGoldengateDeploymentVersion.java delete mode 100644 java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentversion/SyncGetGoldengateDeploymentVersionGoldengatedeploymentversionname.java diff --git a/generation_config.yaml b/generation_config.yaml index 10ab615e932c..e5add8939823 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,4 +1,4 @@ -googleapis_commitish: f7b17174725f43b5cb11b0b8c6bbad20a3dc5bd1 +googleapis_commitish: 7af3f2c7b8927cffb548fd2cf09b04c6371437ee libraries_bom_version: 26.83.0 is_monorepo: true libraries: 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 12b95a657341..fc7ab666763f 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 @@ -20789,6 +20789,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.PublisherModelConfig$ModelProvider", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.PublisherModelEulaAcceptance", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java index 992375bffeef..cf58a4cf796b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EndpointProto.java @@ -224,10 +224,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024bigquery_destination\030\003 \001(\01324.googl" + "e.cloud.aiplatform.v1beta1.BigQueryDestination\0224\n" + "\'request_response_logging_schema_version\030\004 \001(\tB\003\340A\003\022\033\n" - + "\023enable_otel_logging\030\006 \001(\010\"t\n" + + "\023enable_otel_logging\030\006 \001(\010\"\245\002\n" + "\024PublisherModelConfig\022\\\n" - + "\016logging_config\030\003 \001(\0132D.google.cloud.aiplatf" - + "orm.v1beta1.PredictRequestResponseLoggingConfig\"N\n" + + "\016logging_config\030\003 \001(\0132D.google.cloud.aiplat" + + "form.v1beta1.PredictRequestResponseLoggingConfig\022o\n" + + "\035data_sharing_enabled_provider\030\004 \001(\0162C.google.cloud.aiplatform.v1beta" + + "1.PublisherModelConfig.ModelProviderB\003\340A\001\">\n\r" + + "ModelProvider\022\036\n" + + "\032MODEL_PROVIDER_UNSPECIFIED\020\000\022\r\n" + + "\tANTHROPIC\020\001\"N\n" + "\026ClientConnectionConfig\0224\n" + "\021inference_timeout\030\001 \001(\0132\031.google.protobuf.Duration\"5\n" + "\026FasterDeploymentConfig\022\033\n" @@ -242,15 +247,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017max_unavailableB\013\n" + "\tmax_surge\"\232\001\n" + "\033GenAiAdvancedFeaturesConfig\022Z\n\n" - + "rag_config\030\001" - + " \001(\0132F.google.cloud.aiplatform.v1beta1.GenAiAdvancedFeaturesConfig.RagConfig\032\037\n" + + "rag_config\030\001 \001(\0132F.google.cloud.ai" + + "platform.v1beta1.GenAiAdvancedFeaturesConfig.RagConfig\032\037\n" + "\tRagConfig\022\022\n\n" + "enable_rag\030\001 \001(\010\"\243\003\n" + "\027SpeculativeDecodingSpec\022q\n" - + "\027draft_model_speculation\030\002 \001(\0132N.google.cloud.aiplatform.v1b" - + "eta1.SpeculativeDecodingSpec.DraftModelSpeculationH\000\022f\n" - + "\021ngram_speculation\030\003 \001(\0132" - + "I.google.cloud.aiplatform.v1beta1.SpeculativeDecodingSpec.NgramSpeculationH\000\022\037\n" + + "\027draft_model_speculation\030\002 \001(\0132N.google.cl" + + "oud.aiplatform.v1beta1.SpeculativeDecodingSpec.DraftModelSpeculationH\000\022f\n" + + "\021ngram_speculation\030\003 \001(\0132I.google.cloud.aiplatf" + + "orm.v1beta1.SpeculativeDecodingSpec.NgramSpeculationH\000\022\037\n" + "\027speculative_token_count\030\001 \001(\005\032U\n" + "\025DraftModelSpeculation\022<\n" + "\013draft_model\030\001 \001(\tB\'\340A\002\372A!\n" @@ -259,10 +264,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ngram_size\030\001 \001(\005B\r\n" + "\013speculationB\344\001\n" + "#com.google.cloud.aiplatform.v1beta1B\r" - + "EndpointProtoP\001ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatfo" - + "rmpb;aiplatformpb\252\002\037Google.Cloud.AIPlatf" - + "orm.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1" - + "beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + + "EndpointProtoP\001ZCcloud.google.com/go/aiplatform/a" + + "piv1beta1/aiplatformpb;aiplatformpb\252\002\037Go" + + "ogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\C" + + "loud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -395,7 +400,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_PublisherModelConfig_descriptor, new java.lang.String[] { - "LoggingConfig", + "LoggingConfig", "DataSharingEnabledProvider", }); internal_static_google_cloud_aiplatform_v1beta1_ClientConnectionConfig_descriptor = getDescriptor().getMessageType(5); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelConfig.java index a0edf1428ea6..8080af78367e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelConfig.java @@ -51,7 +51,9 @@ private PublisherModelConfig(com.google.protobuf.GeneratedMessage.Builder bui super(builder); } - private PublisherModelConfig() {} + private PublisherModelConfig() { + dataSharingEnabledProvider_ = 0; + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.aiplatform.v1beta1.EndpointProto @@ -68,6 +70,154 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.Builder.class); } + /** + * + * + *
+   * A model provider (publisher) that prediction data may be shared with.
+   * 
+ * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider} + */ + public enum ModelProvider implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified model provider.
+     * 
+ * + * MODEL_PROVIDER_UNSPECIFIED = 0; + */ + MODEL_PROVIDER_UNSPECIFIED(0), + /** + * + * + *
+     * Anthropic.
+     * 
+ * + * ANTHROPIC = 1; + */ + ANTHROPIC(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ModelProvider"); + } + + /** + * + * + *
+     * Unspecified model provider.
+     * 
+ * + * MODEL_PROVIDER_UNSPECIFIED = 0; + */ + public static final int MODEL_PROVIDER_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Anthropic.
+     * 
+ * + * ANTHROPIC = 1; + */ + public static final int ANTHROPIC_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 ModelProvider 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 ModelProvider forNumber(int value) { + switch (value) { + case 0: + return MODEL_PROVIDER_UNSPECIFIED; + case 1: + return ANTHROPIC; + 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 ModelProvider findValueByNumber(int number) { + return ModelProvider.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ModelProvider[] VALUES = values(); + + public static ModelProvider 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 ModelProvider(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider) + } + private int bitField0_; public static final int LOGGING_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig loggingConfig_; @@ -129,6 +279,57 @@ public boolean hasLoggingConfig() { : loggingConfig_; } + public static final int DATA_SHARING_ENABLED_PROVIDER_FIELD_NUMBER = 4; + private int dataSharingEnabledProvider_ = 0; + + /** + * + * + *
+   * Optional. The model provider (publisher) for which the customer has enabled
+   * data sharing. For publisher models that are configured to require data
+   * sharing, a prediction request is only allowed when the model's publisher
+   * matches this provider. Otherwise, the request is rejected.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider data_sharing_enabled_provider = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for dataSharingEnabledProvider. + */ + @java.lang.Override + public int getDataSharingEnabledProviderValue() { + return dataSharingEnabledProvider_; + } + + /** + * + * + *
+   * Optional. The model provider (publisher) for which the customer has enabled
+   * data sharing. For publisher models that are configured to require data
+   * sharing, a prediction request is only allowed when the model's publisher
+   * matches this provider. Otherwise, the request is rejected.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider data_sharing_enabled_provider = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataSharingEnabledProvider. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider + getDataSharingEnabledProvider() { + com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider result = + com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider.forNumber( + dataSharingEnabledProvider_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -146,6 +347,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getLoggingConfig()); } + if (dataSharingEnabledProvider_ + != com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider + .MODEL_PROVIDER_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, dataSharingEnabledProvider_); + } getUnknownFields().writeTo(output); } @@ -158,6 +365,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLoggingConfig()); } + if (dataSharingEnabledProvider_ + != com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider + .MODEL_PROVIDER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, dataSharingEnabledProvider_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -178,6 +391,7 @@ public boolean equals(final java.lang.Object obj) { if (hasLoggingConfig()) { if (!getLoggingConfig().equals(other.getLoggingConfig())) return false; } + if (dataSharingEnabledProvider_ != other.dataSharingEnabledProvider_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -193,6 +407,8 @@ public int hashCode() { hash = (37 * hash) + LOGGING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getLoggingConfig().hashCode(); } + hash = (37 * hash) + DATA_SHARING_ENABLED_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + dataSharingEnabledProvider_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -348,6 +564,7 @@ public Builder clear() { loggingConfigBuilder_.dispose(); loggingConfigBuilder_ = null; } + dataSharingEnabledProvider_ = 0; return this; } @@ -390,6 +607,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.PublisherModelCon loggingConfigBuilder_ == null ? loggingConfig_ : loggingConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataSharingEnabledProvider_ = dataSharingEnabledProvider_; + } result.bitField0_ |= to_bitField0_; } @@ -409,6 +629,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.PublisherModelConfi if (other.hasLoggingConfig()) { mergeLoggingConfig(other.getLoggingConfig()); } + if (other.dataSharingEnabledProvider_ != 0) { + setDataSharingEnabledProviderValue(other.getDataSharingEnabledProviderValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -442,6 +665,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 26 + case 32: + { + dataSharingEnabledProvider_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -684,6 +913,131 @@ public Builder clearLoggingConfig() { return loggingConfigBuilder_; } + private int dataSharingEnabledProvider_ = 0; + + /** + * + * + *
+     * Optional. The model provider (publisher) for which the customer has enabled
+     * data sharing. For publisher models that are configured to require data
+     * sharing, a prediction request is only allowed when the model's publisher
+     * matches this provider. Otherwise, the request is rejected.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider data_sharing_enabled_provider = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for dataSharingEnabledProvider. + */ + @java.lang.Override + public int getDataSharingEnabledProviderValue() { + return dataSharingEnabledProvider_; + } + + /** + * + * + *
+     * Optional. The model provider (publisher) for which the customer has enabled
+     * data sharing. For publisher models that are configured to require data
+     * sharing, a prediction request is only allowed when the model's publisher
+     * matches this provider. Otherwise, the request is rejected.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider data_sharing_enabled_provider = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for dataSharingEnabledProvider to set. + * @return This builder for chaining. + */ + public Builder setDataSharingEnabledProviderValue(int value) { + dataSharingEnabledProvider_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The model provider (publisher) for which the customer has enabled
+     * data sharing. For publisher models that are configured to require data
+     * sharing, a prediction request is only allowed when the model's publisher
+     * matches this provider. Otherwise, the request is rejected.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider data_sharing_enabled_provider = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataSharingEnabledProvider. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider + getDataSharingEnabledProvider() { + com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider result = + com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider.forNumber( + dataSharingEnabledProvider_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The model provider (publisher) for which the customer has enabled
+     * data sharing. For publisher models that are configured to require data
+     * sharing, a prediction request is only allowed when the model's publisher
+     * matches this provider. Otherwise, the request is rejected.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider data_sharing_enabled_provider = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The dataSharingEnabledProvider to set. + * @return This builder for chaining. + */ + public Builder setDataSharingEnabledProvider( + com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + dataSharingEnabledProvider_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The model provider (publisher) for which the customer has enabled
+     * data sharing. For publisher models that are configured to require data
+     * sharing, a prediction request is only allowed when the model's publisher
+     * matches this provider. Otherwise, the request is rejected.
+     * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider data_sharing_enabled_provider = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDataSharingEnabledProvider() { + bitField0_ = (bitField0_ & ~0x00000002); + dataSharingEnabledProvider_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.PublisherModelConfig) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelConfigOrBuilder.java index 7c9f94eea746..57eefa6cb536 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/PublisherModelConfigOrBuilder.java @@ -66,4 +66,41 @@ public interface PublisherModelConfigOrBuilder */ com.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfigOrBuilder getLoggingConfigOrBuilder(); + + /** + * + * + *
+   * Optional. The model provider (publisher) for which the customer has enabled
+   * data sharing. For publisher models that are configured to require data
+   * sharing, a prediction request is only allowed when the model's publisher
+   * matches this provider. Otherwise, the request is rejected.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider data_sharing_enabled_provider = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for dataSharingEnabledProvider. + */ + int getDataSharingEnabledProviderValue(); + + /** + * + * + *
+   * Optional. The model provider (publisher) for which the customer has enabled
+   * data sharing. For publisher models that are configured to require data
+   * sharing, a prediction request is only allowed when the model's publisher
+   * matches this provider. Otherwise, the request is rejected.
+   * 
+ * + * + * .google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider data_sharing_enabled_provider = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataSharingEnabledProvider. + */ + com.google.cloud.aiplatform.v1beta1.PublisherModelConfig.ModelProvider + getDataSharingEnabledProvider(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto index 42fbeae165ea..a484031985e5 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/endpoint.proto @@ -400,8 +400,24 @@ message PredictRequestResponseLoggingConfig { // This message contains configs of a publisher model. message PublisherModelConfig { + // A model provider (publisher) that prediction data may be shared with. + enum ModelProvider { + // Unspecified model provider. + MODEL_PROVIDER_UNSPECIFIED = 0; + + // Anthropic. + ANTHROPIC = 1; + } + // The prediction request/response logging config. PredictRequestResponseLoggingConfig logging_config = 3; + + // Optional. The model provider (publisher) for which the customer has enabled + // data sharing. For publisher models that are configured to require data + // sharing, a prediction request is only allowed when the model's publisher + // matches this provider. Otherwise, the request is rejected. + ModelProvider data_sharing_enabled_provider = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Configurations (e.g. inference timeout) that are applied on your endpoints. diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceClient.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceClient.java index e6665dc956bc..88b5c6c5999b 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceClient.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceClient.java @@ -107,6 +107,21 @@ * * * + *

IngestAdEvents + *

Uploads a list of [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google Analytics. + *

This feature is only available to accounts on an allowlist. + * + *

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

+ *
    + *
  • ingestAdEvents(IngestAdEventsRequest request) + *

+ *

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

+ *
    + *
  • ingestAdEventsCallable() + *

+ * + * + * *

RetrieveRequestStatus *

Gets the status of a request given request id. * @@ -438,6 +453,71 @@ public final UnaryCallable ingestEven return stub.ingestEventsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Uploads a list of [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google Analytics. + * + *

This feature is only available to accounts on an allowlist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (IngestionServiceClient ingestionServiceClient = IngestionServiceClient.create()) {
+   *   IngestAdEventsRequest request =
+   *       IngestAdEventsRequest.newBuilder()
+   *           .addAllAdEvents(new ArrayList())
+   *           .setEncryptionInfo(EncryptionInfo.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   IngestAdEventsResponse response = ingestionServiceClient.ingestAdEvents(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 IngestAdEventsResponse ingestAdEvents(IngestAdEventsRequest request) { + return ingestAdEventsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Uploads a list of [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google Analytics. + * + *

This feature is only available to accounts on an allowlist. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (IngestionServiceClient ingestionServiceClient = IngestionServiceClient.create()) {
+   *   IngestAdEventsRequest request =
+   *       IngestAdEventsRequest.newBuilder()
+   *           .addAllAdEvents(new ArrayList())
+   *           .setEncryptionInfo(EncryptionInfo.newBuilder().build())
+   *           .setValidateOnly(true)
+   *           .build();
+   *   ApiFuture future =
+   *       ingestionServiceClient.ingestAdEventsCallable().futureCall(request);
+   *   // Do something.
+   *   IngestAdEventsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + ingestAdEventsCallable() { + return stub.ingestAdEventsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the status of a request given request id. diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceSettings.java index 1e72290fc33f..0ff50e96d9cc 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/IngestionServiceSettings.java @@ -102,6 +102,11 @@ public UnaryCallSettings ingestEvents return ((IngestionServiceStubSettings) getStubSettings()).ingestEventsSettings(); } + /** Returns the object with the settings used for calls to ingestAdEvents. */ + public UnaryCallSettings ingestAdEventsSettings() { + return ((IngestionServiceStubSettings) getStubSettings()).ingestAdEventsSettings(); + } + /** Returns the object with the settings used for calls to retrieveRequestStatus. */ public UnaryCallSettings retrieveRequestStatusSettings() { @@ -238,6 +243,12 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().ingestEventsSettings(); } + /** Returns the builder for the settings used for calls to ingestAdEvents. */ + public UnaryCallSettings.Builder + ingestAdEventsSettings() { + return getStubSettingsBuilder().ingestAdEventsSettings(); + } + /** Returns the builder for the settings used for calls to retrieveRequestStatus. */ public UnaryCallSettings.Builder retrieveRequestStatusSettings() { diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/gapic_metadata.json b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/gapic_metadata.json index 48e4057a76c6..64ef439f1111 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/gapic_metadata.json +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/gapic_metadata.json @@ -10,6 +10,9 @@ "grpc": { "libraryClient": "IngestionServiceClient", "rpcs": { + "IngestAdEvents": { + "methods": ["ingestAdEvents", "ingestAdEventsCallable"] + }, "IngestAudienceMembers": { "methods": ["ingestAudienceMembers", "ingestAudienceMembersCallable"] }, diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcIngestionServiceStub.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcIngestionServiceStub.java index d1bfc365a912..1b9c8f169200 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcIngestionServiceStub.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/GrpcIngestionServiceStub.java @@ -16,6 +16,8 @@ package com.google.ads.datamanager.v1.stub; +import com.google.ads.datamanager.v1.IngestAdEventsRequest; +import com.google.ads.datamanager.v1.IngestAdEventsResponse; import com.google.ads.datamanager.v1.IngestAudienceMembersRequest; import com.google.ads.datamanager.v1.IngestAudienceMembersResponse; import com.google.ads.datamanager.v1.IngestEventsRequest; @@ -80,6 +82,18 @@ public class GrpcIngestionServiceStub extends IngestionServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + ingestAdEventsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.ads.datamanager.v1.IngestionService/IngestAdEvents") + .setRequestMarshaller( + ProtoUtils.marshaller(IngestAdEventsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(IngestAdEventsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor retrieveRequestStatusMethodDescriptor = MethodDescriptor.newBuilder() @@ -97,6 +111,7 @@ public class GrpcIngestionServiceStub extends IngestionServiceStub { private final UnaryCallable removeAudienceMembersCallable; private final UnaryCallable ingestEventsCallable; + private final UnaryCallable ingestAdEventsCallable; private final UnaryCallable retrieveRequestStatusCallable; @@ -160,6 +175,11 @@ protected GrpcIngestionServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(ingestEventsMethodDescriptor) .build(); + GrpcCallSettings + ingestAdEventsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(ingestAdEventsMethodDescriptor) + .build(); GrpcCallSettings retrieveRequestStatusTransportSettings = GrpcCallSettings @@ -180,6 +200,9 @@ protected GrpcIngestionServiceStub( this.ingestEventsCallable = callableFactory.createUnaryCallable( ingestEventsTransportSettings, settings.ingestEventsSettings(), clientContext); + this.ingestAdEventsCallable = + callableFactory.createUnaryCallable( + ingestAdEventsTransportSettings, settings.ingestAdEventsSettings(), clientContext); this.retrieveRequestStatusCallable = callableFactory.createUnaryCallable( retrieveRequestStatusTransportSettings, @@ -211,6 +234,11 @@ public UnaryCallable ingestEventsCall return ingestEventsCallable; } + @Override + public UnaryCallable ingestAdEventsCallable() { + return ingestAdEventsCallable; + } + @Override public UnaryCallable retrieveRequestStatusCallable() { diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonIngestionServiceStub.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonIngestionServiceStub.java index 79b3e3b58d72..0f41fc286d40 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonIngestionServiceStub.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/HttpJsonIngestionServiceStub.java @@ -16,6 +16,8 @@ package com.google.ads.datamanager.v1.stub; +import com.google.ads.datamanager.v1.IngestAdEventsRequest; +import com.google.ads.datamanager.v1.IngestAdEventsResponse; import com.google.ads.datamanager.v1.IngestAudienceMembersRequest; import com.google.ads.datamanager.v1.IngestAudienceMembersResponse; import com.google.ads.datamanager.v1.IngestEventsRequest; @@ -166,6 +168,42 @@ public class HttpJsonIngestionServiceStub extends IngestionServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + ingestAdEventsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.datamanager.v1.IngestionService/IngestAdEvents") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/adEvents:ingest", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + 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().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(IngestAdEventsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor< RetrieveRequestStatusRequest, RetrieveRequestStatusResponse> retrieveRequestStatusMethodDescriptor = @@ -207,6 +245,7 @@ public class HttpJsonIngestionServiceStub extends IngestionServiceStub { private final UnaryCallable removeAudienceMembersCallable; private final UnaryCallable ingestEventsCallable; + private final UnaryCallable ingestAdEventsCallable; private final UnaryCallable retrieveRequestStatusCallable; @@ -271,6 +310,12 @@ protected HttpJsonIngestionServiceStub( .setMethodDescriptor(ingestEventsMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + ingestAdEventsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(ingestAdEventsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings retrieveRequestStatusTransportSettings = HttpJsonCallSettings @@ -292,6 +337,9 @@ protected HttpJsonIngestionServiceStub( this.ingestEventsCallable = callableFactory.createUnaryCallable( ingestEventsTransportSettings, settings.ingestEventsSettings(), clientContext); + this.ingestAdEventsCallable = + callableFactory.createUnaryCallable( + ingestAdEventsTransportSettings, settings.ingestAdEventsSettings(), clientContext); this.retrieveRequestStatusCallable = callableFactory.createUnaryCallable( retrieveRequestStatusTransportSettings, @@ -308,6 +356,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(ingestAudienceMembersMethodDescriptor); methodDescriptors.add(removeAudienceMembersMethodDescriptor); methodDescriptors.add(ingestEventsMethodDescriptor); + methodDescriptors.add(ingestAdEventsMethodDescriptor); methodDescriptors.add(retrieveRequestStatusMethodDescriptor); return methodDescriptors; } @@ -329,6 +378,11 @@ public UnaryCallable ingestEventsCall return ingestEventsCallable; } + @Override + public UnaryCallable ingestAdEventsCallable() { + return ingestAdEventsCallable; + } + @Override public UnaryCallable retrieveRequestStatusCallable() { diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStub.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStub.java index f88edd3f131a..ddea8d1bc7c9 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStub.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStub.java @@ -16,6 +16,8 @@ package com.google.ads.datamanager.v1.stub; +import com.google.ads.datamanager.v1.IngestAdEventsRequest; +import com.google.ads.datamanager.v1.IngestAdEventsResponse; import com.google.ads.datamanager.v1.IngestAudienceMembersRequest; import com.google.ads.datamanager.v1.IngestAudienceMembersResponse; import com.google.ads.datamanager.v1.IngestEventsRequest; @@ -51,6 +53,10 @@ public UnaryCallable ingestEventsCall throw new UnsupportedOperationException("Not implemented: ingestEventsCallable()"); } + public UnaryCallable ingestAdEventsCallable() { + throw new UnsupportedOperationException("Not implemented: ingestAdEventsCallable()"); + } + public UnaryCallable retrieveRequestStatusCallable() { throw new UnsupportedOperationException("Not implemented: retrieveRequestStatusCallable()"); diff --git a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java index 8c13f0f4c3ed..6edfe164836f 100644 --- a/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java +++ b/java-datamanager/data-manager/src/main/java/com/google/ads/datamanager/v1/stub/IngestionServiceStubSettings.java @@ -16,6 +16,8 @@ package com.google.ads.datamanager.v1.stub; +import com.google.ads.datamanager.v1.IngestAdEventsRequest; +import com.google.ads.datamanager.v1.IngestAdEventsResponse; import com.google.ads.datamanager.v1.IngestAudienceMembersRequest; import com.google.ads.datamanager.v1.IngestAudienceMembersResponse; import com.google.ads.datamanager.v1.IngestEventsRequest; @@ -114,6 +116,8 @@ public class IngestionServiceStubSettings extends StubSettings removeAudienceMembersSettings; private final UnaryCallSettings ingestEventsSettings; + private final UnaryCallSettings + ingestAdEventsSettings; private final UnaryCallSettings retrieveRequestStatusSettings; @@ -134,6 +138,11 @@ public UnaryCallSettings ingestEvents return ingestEventsSettings; } + /** Returns the object with the settings used for calls to ingestAdEvents. */ + public UnaryCallSettings ingestAdEventsSettings() { + return ingestAdEventsSettings; + } + /** Returns the object with the settings used for calls to retrieveRequestStatus. */ public UnaryCallSettings retrieveRequestStatusSettings() { @@ -254,6 +263,7 @@ protected IngestionServiceStubSettings(Builder settingsBuilder) throws IOExcepti ingestAudienceMembersSettings = settingsBuilder.ingestAudienceMembersSettings().build(); removeAudienceMembersSettings = settingsBuilder.removeAudienceMembersSettings().build(); ingestEventsSettings = settingsBuilder.ingestEventsSettings().build(); + ingestAdEventsSettings = settingsBuilder.ingestAdEventsSettings().build(); retrieveRequestStatusSettings = settingsBuilder.retrieveRequestStatusSettings().build(); } @@ -277,6 +287,8 @@ public static class Builder extends StubSettings.Builder ingestEventsSettings; + private final UnaryCallSettings.Builder + ingestAdEventsSettings; private final UnaryCallSettings.Builder< RetrieveRequestStatusRequest, RetrieveRequestStatusResponse> retrieveRequestStatusSettings; @@ -310,6 +322,7 @@ protected Builder(ClientContext clientContext) { ingestAudienceMembersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); removeAudienceMembersSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); ingestEventsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + ingestAdEventsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); retrieveRequestStatusSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = @@ -317,6 +330,7 @@ protected Builder(ClientContext clientContext) { ingestAudienceMembersSettings, removeAudienceMembersSettings, ingestEventsSettings, + ingestAdEventsSettings, retrieveRequestStatusSettings); initDefaults(this); } @@ -327,6 +341,7 @@ protected Builder(IngestionServiceStubSettings settings) { ingestAudienceMembersSettings = settings.ingestAudienceMembersSettings.toBuilder(); removeAudienceMembersSettings = settings.removeAudienceMembersSettings.toBuilder(); ingestEventsSettings = settings.ingestEventsSettings.toBuilder(); + ingestAdEventsSettings = settings.ingestAdEventsSettings.toBuilder(); retrieveRequestStatusSettings = settings.retrieveRequestStatusSettings.toBuilder(); unaryMethodSettingsBuilders = @@ -334,6 +349,7 @@ protected Builder(IngestionServiceStubSettings settings) { ingestAudienceMembersSettings, removeAudienceMembersSettings, ingestEventsSettings, + ingestAdEventsSettings, retrieveRequestStatusSettings); } @@ -377,6 +393,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .ingestAdEventsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .retrieveRequestStatusSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -418,6 +439,12 @@ public Builder applyToAllUnaryMethods( return ingestEventsSettings; } + /** Returns the builder for the settings used for calls to ingestAdEvents. */ + public UnaryCallSettings.Builder + ingestAdEventsSettings() { + return ingestAdEventsSettings; + } + /** Returns the builder for the settings used for calls to retrieveRequestStatus. */ public UnaryCallSettings.Builder retrieveRequestStatusSettings() { diff --git a/java-datamanager/data-manager/src/main/resources/META-INF/native-image/com.google.ads.datamanager.v1/reflect-config.json b/java-datamanager/data-manager/src/main/resources/META-INF/native-image/com.google.ads.datamanager.v1/reflect-config.json index 8f70505a68c2..15bfcf0c244d 100644 --- a/java-datamanager/data-manager/src/main/resources/META-INF/native-image/com.google.ads.datamanager.v1/reflect-config.json +++ b/java-datamanager/data-manager/src/main/resources/META-INF/native-image/com.google.ads.datamanager.v1/reflect-config.json @@ -1,4 +1,49 @@ [ + { + "name": "com.google.ads.datamanager.v1.AdEvent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.AdEvent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.AdEvent$EventSubtype", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.AdEvent$EventType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.AdFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.AdIdentifiers", "queryAllDeclaredConstructors": true, @@ -17,6 +62,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.AdPlacement", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.AdType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.AddressInfo", "queryAllDeclaredConstructors": true, @@ -44,6 +107,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.AttributionHint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.AudienceMember", "queryAllDeclaredConstructors": true, @@ -206,6 +278,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.CoordinatorKeyInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.CoordinatorKeyInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.CreatePartnerLinkRequest", "queryAllDeclaredConstructors": true, @@ -584,6 +674,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.GcpWrappedKeyInfo", "queryAllDeclaredConstructors": true, @@ -674,6 +773,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.IngestAdEventsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.IngestAdEventsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.IngestAdEventsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.IngestAdEventsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.IngestAudienceMembersRequest", "queryAllDeclaredConstructors": true, @@ -998,6 +1133,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.MediaQuartile", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.MobileData", "queryAllDeclaredConstructors": true, @@ -1106,6 +1250,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.PartnerCustomerAccount", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.PartnerCustomerAccount$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.PartnerLink", "queryAllDeclaredConstructors": true, @@ -1124,6 +1286,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.PartnerLinkMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.PartnerLinkMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.Platform", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.PlatformType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.PpidData", "queryAllDeclaredConstructors": true, @@ -1772,6 +1970,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.TargetingType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.TermsOfService", "queryAllDeclaredConstructors": true, @@ -2150,6 +2357,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.datamanager.v1.ViewType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.ViewabilityInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.datamanager.v1.ViewabilityInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.datamanager.v1.WarningCount", "queryAllDeclaredConstructors": true, diff --git a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientHttpJsonTest.java b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientHttpJsonTest.java index 4f0e450708af..5c4affa6f640 100644 --- a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientHttpJsonTest.java +++ b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientHttpJsonTest.java @@ -246,6 +246,57 @@ public void ingestEventsExceptionTest() throws Exception { } } + @Test + public void ingestAdEventsTest() throws Exception { + IngestAdEventsResponse expectedResponse = IngestAdEventsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + IngestAdEventsRequest request = + IngestAdEventsRequest.newBuilder() + .addAllAdEvents(new ArrayList()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setValidateOnly(true) + .build(); + + IngestAdEventsResponse actualResponse = client.ingestAdEvents(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 ingestAdEventsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + IngestAdEventsRequest request = + IngestAdEventsRequest.newBuilder() + .addAllAdEvents(new ArrayList()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setValidateOnly(true) + .build(); + client.ingestAdEvents(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void retrieveRequestStatusTest() throws Exception { RetrieveRequestStatusResponse expectedResponse = diff --git a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientTest.java b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientTest.java index 602f913a473a..ab60a33290c5 100644 --- a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientTest.java +++ b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/IngestionServiceClientTest.java @@ -249,6 +249,53 @@ public void ingestEventsExceptionTest() throws Exception { } } + @Test + public void ingestAdEventsTest() throws Exception { + IngestAdEventsResponse expectedResponse = IngestAdEventsResponse.newBuilder().build(); + mockIngestionService.addResponse(expectedResponse); + + IngestAdEventsRequest request = + IngestAdEventsRequest.newBuilder() + .addAllAdEvents(new ArrayList()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setValidateOnly(true) + .build(); + + IngestAdEventsResponse actualResponse = client.ingestAdEvents(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIngestionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + IngestAdEventsRequest actualRequest = ((IngestAdEventsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getAdEventsList(), actualRequest.getAdEventsList()); + Assert.assertEquals(request.getEncryptionInfo(), actualRequest.getEncryptionInfo()); + Assert.assertEquals(request.getValidateOnly(), actualRequest.getValidateOnly()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void ingestAdEventsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIngestionService.addException(exception); + + try { + IngestAdEventsRequest request = + IngestAdEventsRequest.newBuilder() + .addAllAdEvents(new ArrayList()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setValidateOnly(true) + .build(); + client.ingestAdEvents(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void retrieveRequestStatusTest() throws Exception { RetrieveRequestStatusResponse expectedResponse = diff --git a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/MockIngestionServiceImpl.java b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/MockIngestionServiceImpl.java index 9276a124352a..d2fbaddd10e6 100644 --- a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/MockIngestionServiceImpl.java +++ b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/MockIngestionServiceImpl.java @@ -125,6 +125,27 @@ public void ingestEvents( } } + @Override + public void ingestAdEvents( + IngestAdEventsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof IngestAdEventsResponse) { + requests.add(request); + responseObserver.onNext(((IngestAdEventsResponse) 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 IngestAdEvents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + IngestAdEventsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void retrieveRequestStatus( RetrieveRequestStatusRequest request, diff --git a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/PartnerLinkServiceClientHttpJsonTest.java b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/PartnerLinkServiceClientHttpJsonTest.java index 2eb55a6c5386..498278a9b0ef 100644 --- a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/PartnerLinkServiceClientHttpJsonTest.java +++ b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/PartnerLinkServiceClientHttpJsonTest.java @@ -84,6 +84,9 @@ public void createPartnerLinkTest() throws Exception { .setPartnerLinkId("partnerLinkId171029917") .setOwningAccount(ProductAccount.newBuilder().build()) .setPartnerAccount(ProductAccount.newBuilder().build()) + .setFeatureSet(FeatureSet.forNumber(0)) + .setPartnerCustomerAccount(PartnerCustomerAccount.newBuilder().build()) + .setPartnerLinkMetadata(PartnerLinkMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -133,6 +136,9 @@ public void createPartnerLinkTest2() throws Exception { .setPartnerLinkId("partnerLinkId171029917") .setOwningAccount(ProductAccount.newBuilder().build()) .setPartnerAccount(ProductAccount.newBuilder().build()) + .setFeatureSet(FeatureSet.forNumber(0)) + .setPartnerCustomerAccount(PartnerCustomerAccount.newBuilder().build()) + .setPartnerLinkMetadata(PartnerLinkMetadata.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/PartnerLinkServiceClientTest.java b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/PartnerLinkServiceClientTest.java index bf162e007659..a37a442e73a6 100644 --- a/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/PartnerLinkServiceClientTest.java +++ b/java-datamanager/data-manager/src/test/java/com/google/ads/datamanager/v1/PartnerLinkServiceClientTest.java @@ -87,6 +87,9 @@ public void createPartnerLinkTest() throws Exception { .setPartnerLinkId("partnerLinkId171029917") .setOwningAccount(ProductAccount.newBuilder().build()) .setPartnerAccount(ProductAccount.newBuilder().build()) + .setFeatureSet(FeatureSet.forNumber(0)) + .setPartnerCustomerAccount(PartnerCustomerAccount.newBuilder().build()) + .setPartnerLinkMetadata(PartnerLinkMetadata.newBuilder().build()) .build(); mockPartnerLinkService.addResponse(expectedResponse); @@ -131,6 +134,9 @@ public void createPartnerLinkTest2() throws Exception { .setPartnerLinkId("partnerLinkId171029917") .setOwningAccount(ProductAccount.newBuilder().build()) .setPartnerAccount(ProductAccount.newBuilder().build()) + .setFeatureSet(FeatureSet.forNumber(0)) + .setPartnerCustomerAccount(PartnerCustomerAccount.newBuilder().build()) + .setPartnerLinkMetadata(PartnerLinkMetadata.newBuilder().build()) .build(); mockPartnerLinkService.addResponse(expectedResponse); diff --git a/java-datamanager/grpc-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceGrpc.java b/java-datamanager/grpc-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceGrpc.java index 73780e756689..5762aa5fedf9 100644 --- a/java-datamanager/grpc-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceGrpc.java +++ b/java-datamanager/grpc-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceGrpc.java @@ -179,6 +179,53 @@ private IngestionServiceGrpc() {} return getIngestEventsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.ads.datamanager.v1.IngestAdEventsRequest, + com.google.ads.datamanager.v1.IngestAdEventsResponse> + getIngestAdEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "IngestAdEvents", + requestType = com.google.ads.datamanager.v1.IngestAdEventsRequest.class, + responseType = com.google.ads.datamanager.v1.IngestAdEventsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.ads.datamanager.v1.IngestAdEventsRequest, + com.google.ads.datamanager.v1.IngestAdEventsResponse> + getIngestAdEventsMethod() { + io.grpc.MethodDescriptor< + com.google.ads.datamanager.v1.IngestAdEventsRequest, + com.google.ads.datamanager.v1.IngestAdEventsResponse> + getIngestAdEventsMethod; + if ((getIngestAdEventsMethod = IngestionServiceGrpc.getIngestAdEventsMethod) == null) { + synchronized (IngestionServiceGrpc.class) { + if ((getIngestAdEventsMethod = IngestionServiceGrpc.getIngestAdEventsMethod) == null) { + IngestionServiceGrpc.getIngestAdEventsMethod = + getIngestAdEventsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "IngestAdEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.datamanager.v1.IngestAdEventsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.ads.datamanager.v1.IngestAdEventsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new IngestionServiceMethodDescriptorSupplier("IngestAdEvents")) + .build(); + } + } + } + return getIngestAdEventsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.ads.datamanager.v1.RetrieveRequestStatusRequest, com.google.ads.datamanager.v1.RetrieveRequestStatusResponse> @@ -343,6 +390,24 @@ default void ingestEvents( getIngestEventsMethod(), responseObserver); } + /** + * + * + *
+     * Uploads a list of
+     * [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google
+     * Analytics.
+     * This feature is only available to accounts on an allowlist.
+     * 
+ */ + default void ingestAdEvents( + com.google.ads.datamanager.v1.IngestAdEventsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getIngestAdEventsMethod(), responseObserver); + } + /** * * @@ -450,6 +515,26 @@ public void ingestEvents( responseObserver); } + /** + * + * + *
+     * Uploads a list of
+     * [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google
+     * Analytics.
+     * This feature is only available to accounts on an allowlist.
+     * 
+ */ + public void ingestAdEvents( + com.google.ads.datamanager.v1.IngestAdEventsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getIngestAdEventsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -535,6 +620,23 @@ public com.google.ads.datamanager.v1.IngestEventsResponse ingestEvents( getChannel(), getIngestEventsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Uploads a list of
+     * [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google
+     * Analytics.
+     * This feature is only available to accounts on an allowlist.
+     * 
+ */ + public com.google.ads.datamanager.v1.IngestAdEventsResponse ingestAdEvents( + com.google.ads.datamanager.v1.IngestAdEventsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getIngestAdEventsMethod(), getCallOptions(), request); + } + /** * * @@ -614,6 +716,22 @@ public com.google.ads.datamanager.v1.IngestEventsResponse ingestEvents( getChannel(), getIngestEventsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Uploads a list of
+     * [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google
+     * Analytics.
+     * This feature is only available to accounts on an allowlist.
+     * 
+ */ + public com.google.ads.datamanager.v1.IngestAdEventsResponse ingestAdEvents( + com.google.ads.datamanager.v1.IngestAdEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getIngestAdEventsMethod(), getCallOptions(), request); + } + /** * * @@ -695,6 +813,23 @@ protected IngestionServiceFutureStub build( getChannel().newCall(getIngestEventsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Uploads a list of
+     * [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google
+     * Analytics.
+     * This feature is only available to accounts on an allowlist.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.ads.datamanager.v1.IngestAdEventsResponse> + ingestAdEvents(com.google.ads.datamanager.v1.IngestAdEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getIngestAdEventsMethod(), getCallOptions()), request); + } + /** * * @@ -713,7 +848,8 @@ protected IngestionServiceFutureStub build( private static final int METHODID_INGEST_AUDIENCE_MEMBERS = 0; private static final int METHODID_REMOVE_AUDIENCE_MEMBERS = 1; private static final int METHODID_INGEST_EVENTS = 2; - private static final int METHODID_RETRIEVE_REQUEST_STATUS = 3; + private static final int METHODID_INGEST_AD_EVENTS = 3; + private static final int METHODID_RETRIEVE_REQUEST_STATUS = 4; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -752,6 +888,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_INGEST_AD_EVENTS: + serviceImpl.ingestAdEvents( + (com.google.ads.datamanager.v1.IngestAdEventsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_RETRIEVE_REQUEST_STATUS: serviceImpl.retrieveRequestStatus( (com.google.ads.datamanager.v1.RetrieveRequestStatusRequest) request, @@ -798,6 +940,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.ads.datamanager.v1.IngestEventsRequest, com.google.ads.datamanager.v1.IngestEventsResponse>( service, METHODID_INGEST_EVENTS))) + .addMethod( + getIngestAdEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.ads.datamanager.v1.IngestAdEventsRequest, + com.google.ads.datamanager.v1.IngestAdEventsResponse>( + service, METHODID_INGEST_AD_EVENTS))) .addMethod( getRetrieveRequestStatusMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -859,6 +1008,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getIngestAudienceMembersMethod()) .addMethod(getRemoveAudienceMembersMethod()) .addMethod(getIngestEventsMethod()) + .addMethod(getIngestAdEventsMethod()) .addMethod(getRetrieveRequestStatusMethod()) .build(); } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEvent.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEvent.java new file mode 100644 index 000000000000..711bd79f7d7c --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEvent.java @@ -0,0 +1,8395 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/ad_event.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * An ad event.
+ * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.AdEvent} + */ +@com.google.protobuf.Generated +public final class AdEvent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.AdEvent) + AdEventOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AdEvent"); + } + + // Use AdEvent.newBuilder() to construct. + private AdEvent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AdEvent() { + advertiserId_ = ""; + eventType_ = 0; + eventId_ = ""; + mobileDeviceId_ = ""; + campaignId_ = ""; + campaignName_ = ""; + adGroupId_ = ""; + adId_ = ""; + regionCode_ = ""; + source_ = ""; + medium_ = ""; + attributionHint_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEventProto + .internal_static_google_ads_datamanager_v1_AdEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.AdEventProto + .internal_static_google_ads_datamanager_v1_AdEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.AdEvent.class, + com.google.ads.datamanager.v1.AdEvent.Builder.class); + } + + /** + * + * + *
+   * The type of the event.
+   * 
+ * + * Protobuf enum {@code google.ads.datamanager.v1.AdEvent.EventType} + */ + public enum EventType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified event type.
+     * 
+ * + * EVENT_TYPE_UNSPECIFIED = 0; + */ + EVENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * View event.
+     * 
+ * + * EVENT_TYPE_VIEW = 1; + */ + EVENT_TYPE_VIEW(1), + /** + * + * + *
+     * Click event.
+     * 
+ * + * EVENT_TYPE_CLICK = 2; + */ + EVENT_TYPE_CLICK(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EventType"); + } + + /** + * + * + *
+     * Unspecified event type.
+     * 
+ * + * EVENT_TYPE_UNSPECIFIED = 0; + */ + public static final int EVENT_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * View event.
+     * 
+ * + * EVENT_TYPE_VIEW = 1; + */ + public static final int EVENT_TYPE_VIEW_VALUE = 1; + + /** + * + * + *
+     * Click event.
+     * 
+ * + * EVENT_TYPE_CLICK = 2; + */ + public static final int EVENT_TYPE_CLICK_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 EventType 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 EventType forNumber(int value) { + switch (value) { + case 0: + return EVENT_TYPE_UNSPECIFIED; + case 1: + return EVENT_TYPE_VIEW; + case 2: + return EVENT_TYPE_CLICK; + 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 EventType findValueByNumber(int number) { + return EventType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEvent.getDescriptor().getEnumTypes().get(0); + } + + private static final EventType[] VALUES = values(); + + public static EventType 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 EventType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.AdEvent.EventType) + } + + /** + * + * + *
+   * Additional classification about the type of ad event.
+   * 
+ * + * Protobuf enum {@code google.ads.datamanager.v1.AdEvent.EventSubtype} + */ + public enum EventSubtype implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified event subtype.
+     * 
+ * + * EVENT_SUBTYPE_UNSPECIFIED = 0; + */ + EVENT_SUBTYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Impression event.
+     * 
+ * + * EVENT_SUBTYPE_IMPRESSION = 1; + */ + EVENT_SUBTYPE_IMPRESSION(1), + /** + * + * + *
+     * Engaged view event.
+     * 
+ * + * EVENT_SUBTYPE_ENGAGED_VIEW = 2; + */ + EVENT_SUBTYPE_ENGAGED_VIEW(2), + /** + * + * + *
+     * Onsite click event.
+     * 
+ * + * EVENT_SUBTYPE_ONSITE_CLICK = 3; + */ + EVENT_SUBTYPE_ONSITE_CLICK(3), + /** + * + * + *
+     * Outbound click event.
+     * 
+ * + * EVENT_SUBTYPE_OUTBOUND_CLICK = 4; + */ + EVENT_SUBTYPE_OUTBOUND_CLICK(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EventSubtype"); + } + + /** + * + * + *
+     * Unspecified event subtype.
+     * 
+ * + * EVENT_SUBTYPE_UNSPECIFIED = 0; + */ + public static final int EVENT_SUBTYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Impression event.
+     * 
+ * + * EVENT_SUBTYPE_IMPRESSION = 1; + */ + public static final int EVENT_SUBTYPE_IMPRESSION_VALUE = 1; + + /** + * + * + *
+     * Engaged view event.
+     * 
+ * + * EVENT_SUBTYPE_ENGAGED_VIEW = 2; + */ + public static final int EVENT_SUBTYPE_ENGAGED_VIEW_VALUE = 2; + + /** + * + * + *
+     * Onsite click event.
+     * 
+ * + * EVENT_SUBTYPE_ONSITE_CLICK = 3; + */ + public static final int EVENT_SUBTYPE_ONSITE_CLICK_VALUE = 3; + + /** + * + * + *
+     * Outbound click event.
+     * 
+ * + * EVENT_SUBTYPE_OUTBOUND_CLICK = 4; + */ + public static final int EVENT_SUBTYPE_OUTBOUND_CLICK_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 EventSubtype 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 EventSubtype forNumber(int value) { + switch (value) { + case 0: + return EVENT_SUBTYPE_UNSPECIFIED; + case 1: + return EVENT_SUBTYPE_IMPRESSION; + case 2: + return EVENT_SUBTYPE_ENGAGED_VIEW; + case 3: + return EVENT_SUBTYPE_ONSITE_CLICK; + case 4: + return EVENT_SUBTYPE_OUTBOUND_CLICK; + 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 EventSubtype findValueByNumber(int number) { + return EventSubtype.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEvent.getDescriptor().getEnumTypes().get(1); + } + + private static final EventSubtype[] VALUES = values(); + + public static EventSubtype 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 EventSubtype(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.AdEvent.EventSubtype) + } + + private int bitField0_; + private int eventSubtypeOneofCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object eventSubtypeOneof_; + + public enum EventSubtypeOneofCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EVENT_SUBTYPE(3), + EVENT_SUBTYPE_STRING(4), + EVENTSUBTYPEONEOF_NOT_SET(0); + private final int value; + + private EventSubtypeOneofCase(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 EventSubtypeOneofCase valueOf(int value) { + return forNumber(value); + } + + public static EventSubtypeOneofCase forNumber(int value) { + switch (value) { + case 3: + return EVENT_SUBTYPE; + case 4: + return EVENT_SUBTYPE_STRING; + case 0: + return EVENTSUBTYPEONEOF_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EventSubtypeOneofCase getEventSubtypeOneofCase() { + return EventSubtypeOneofCase.forNumber(eventSubtypeOneofCase_); + } + + private int adTypeOneofCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object adTypeOneof_; + + public enum AdTypeOneofCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AD_TYPE(14), + AD_TYPE_STRING(15), + ADTYPEONEOF_NOT_SET(0); + private final int value; + + private AdTypeOneofCase(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 AdTypeOneofCase valueOf(int value) { + return forNumber(value); + } + + public static AdTypeOneofCase forNumber(int value) { + switch (value) { + case 14: + return AD_TYPE; + case 15: + return AD_TYPE_STRING; + case 0: + return ADTYPEONEOF_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AdTypeOneofCase getAdTypeOneofCase() { + return AdTypeOneofCase.forNumber(adTypeOneofCase_); + } + + private int adFormatOneofCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object adFormatOneof_; + + public enum AdFormatOneofCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AD_FORMAT(16), + AD_FORMAT_STRING(17), + ADFORMATONEOF_NOT_SET(0); + private final int value; + + private AdFormatOneofCase(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 AdFormatOneofCase valueOf(int value) { + return forNumber(value); + } + + public static AdFormatOneofCase forNumber(int value) { + switch (value) { + case 16: + return AD_FORMAT; + case 17: + return AD_FORMAT_STRING; + case 0: + return ADFORMATONEOF_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AdFormatOneofCase getAdFormatOneofCase() { + return AdFormatOneofCase.forNumber(adFormatOneofCase_); + } + + private int adPlacementOneofCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object adPlacementOneof_; + + public enum AdPlacementOneofCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AD_PLACEMENT(18), + AD_PLACEMENT_STRING(19), + ADPLACEMENTONEOF_NOT_SET(0); + private final int value; + + private AdPlacementOneofCase(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 AdPlacementOneofCase valueOf(int value) { + return forNumber(value); + } + + public static AdPlacementOneofCase forNumber(int value) { + switch (value) { + case 18: + return AD_PLACEMENT; + case 19: + return AD_PLACEMENT_STRING; + case 0: + return ADPLACEMENTONEOF_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AdPlacementOneofCase getAdPlacementOneofCase() { + return AdPlacementOneofCase.forNumber(adPlacementOneofCase_); + } + + private int targetingTypeOneofCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object targetingTypeOneof_; + + public enum TargetingTypeOneofCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TARGETING_TYPE(25), + TARGETING_TYPE_STRING(26), + TARGETINGTYPEONEOF_NOT_SET(0); + private final int value; + + private TargetingTypeOneofCase(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 TargetingTypeOneofCase valueOf(int value) { + return forNumber(value); + } + + public static TargetingTypeOneofCase forNumber(int value) { + switch (value) { + case 25: + return TARGETING_TYPE; + case 26: + return TARGETING_TYPE_STRING; + case 0: + return TARGETINGTYPEONEOF_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TargetingTypeOneofCase getTargetingTypeOneofCase() { + return TargetingTypeOneofCase.forNumber(targetingTypeOneofCase_); + } + + private int platformTypeOneofCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object platformTypeOneof_; + + public enum PlatformTypeOneofCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PLATFORM_TYPE(27), + PLATFORM_TYPE_STRING(28), + PLATFORMTYPEONEOF_NOT_SET(0); + private final int value; + + private PlatformTypeOneofCase(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 PlatformTypeOneofCase valueOf(int value) { + return forNumber(value); + } + + public static PlatformTypeOneofCase forNumber(int value) { + switch (value) { + case 27: + return PLATFORM_TYPE; + case 28: + return PLATFORM_TYPE_STRING; + case 0: + return PLATFORMTYPEONEOF_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PlatformTypeOneofCase getPlatformTypeOneofCase() { + return PlatformTypeOneofCase.forNumber(platformTypeOneofCase_); + } + + private int platformOneofCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object platformOneof_; + + public enum PlatformOneofCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PLATFORM(29), + PLATFORM_STRING(30), + PLATFORMONEOF_NOT_SET(0); + private final int value; + + private PlatformOneofCase(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 PlatformOneofCase valueOf(int value) { + return forNumber(value); + } + + public static PlatformOneofCase forNumber(int value) { + switch (value) { + case 29: + return PLATFORM; + case 30: + return PLATFORM_STRING; + case 0: + return PLATFORMONEOF_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PlatformOneofCase getPlatformOneofCase() { + return PlatformOneofCase.forNumber(platformOneofCase_); + } + + public static final int ADVERTISER_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object advertiserId_ = ""; + + /** + * + * + *
+   * Required. The ID of the advertiser for the ad event.
+   *
+   * This must match the ID sent in the linking flow.
+   * 
+ * + * string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The advertiserId. + */ + @java.lang.Override + public java.lang.String getAdvertiserId() { + java.lang.Object ref = advertiserId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertiserId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID of the advertiser for the ad event.
+   *
+   * This must match the ID sent in the linking flow.
+   * 
+ * + * string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for advertiserId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdvertiserIdBytes() { + java.lang.Object ref = advertiserId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_TYPE_FIELD_NUMBER = 2; + private int eventType_ = 0; + + /** + * + * + *
+   * Required. The type of the event.
+   * 
+ * + * + * .google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for eventType. + */ + @java.lang.Override + public int getEventTypeValue() { + return eventType_; + } + + /** + * + * + *
+   * Required. The type of the event.
+   * 
+ * + * + * .google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The eventType. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.AdEvent.EventType getEventType() { + com.google.ads.datamanager.v1.AdEvent.EventType result = + com.google.ads.datamanager.v1.AdEvent.EventType.forNumber(eventType_); + return result == null ? com.google.ads.datamanager.v1.AdEvent.EventType.UNRECOGNIZED : result; + } + + public static final int EVENT_SUBTYPE_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Enum value for event subtype.
+   * 
+ * + * .google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3; + * + * @return Whether the eventSubtype field is set. + */ + public boolean hasEventSubtype() { + return eventSubtypeOneofCase_ == 3; + } + + /** + * + * + *
+   * Enum value for event subtype.
+   * 
+ * + * .google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3; + * + * @return The enum numeric value on the wire for eventSubtype. + */ + public int getEventSubtypeValue() { + if (eventSubtypeOneofCase_ == 3) { + return (java.lang.Integer) eventSubtypeOneof_; + } + return 0; + } + + /** + * + * + *
+   * Enum value for event subtype.
+   * 
+ * + * .google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3; + * + * @return The eventSubtype. + */ + public com.google.ads.datamanager.v1.AdEvent.EventSubtype getEventSubtype() { + if (eventSubtypeOneofCase_ == 3) { + com.google.ads.datamanager.v1.AdEvent.EventSubtype result = + com.google.ads.datamanager.v1.AdEvent.EventSubtype.forNumber( + (java.lang.Integer) eventSubtypeOneof_); + return result == null + ? com.google.ads.datamanager.v1.AdEvent.EventSubtype.UNRECOGNIZED + : result; + } + return com.google.ads.datamanager.v1.AdEvent.EventSubtype.EVENT_SUBTYPE_UNSPECIFIED; + } + + public static final int EVENT_SUBTYPE_STRING_FIELD_NUMBER = 4; + + /** + * + * + *
+   * String value for event subtype.
+   * 
+ * + * string event_subtype_string = 4; + * + * @return Whether the eventSubtypeString field is set. + */ + public boolean hasEventSubtypeString() { + return eventSubtypeOneofCase_ == 4; + } + + /** + * + * + *
+   * String value for event subtype.
+   * 
+ * + * string event_subtype_string = 4; + * + * @return The eventSubtypeString. + */ + public java.lang.String getEventSubtypeString() { + java.lang.Object ref = ""; + if (eventSubtypeOneofCase_ == 4) { + ref = eventSubtypeOneof_; + } + if (ref instanceof java.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 (eventSubtypeOneofCase_ == 4) { + eventSubtypeOneof_ = s; + } + return s; + } + } + + /** + * + * + *
+   * String value for event subtype.
+   * 
+ * + * string event_subtype_string = 4; + * + * @return The bytes for eventSubtypeString. + */ + public com.google.protobuf.ByteString getEventSubtypeStringBytes() { + java.lang.Object ref = ""; + if (eventSubtypeOneofCase_ == 4) { + ref = eventSubtypeOneof_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (eventSubtypeOneofCase_ == 4) { + eventSubtypeOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMESTAMP_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp timestamp_; + + /** + * + * + *
+   * Required. The time the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the timestamp field is set. + */ + @java.lang.Override + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The time the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The timestamp. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getTimestamp() { + return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; + } + + /** + * + * + *
+   * Required. The time the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { + return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; + } + + public static final int EVENT_ID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object eventId_ = ""; + + /** + * + * + *
+   * Optional. An ID created and managed by the caller that uniquely identifies
+   * this event.
+   *
+   * Required if you want to deduplicate ad events that are included
+   * in multiple requests. Otherwise, this field is optional.
+   * 
+ * + * string event_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The eventId. + */ + @java.lang.Override + public java.lang.String getEventId() { + java.lang.Object ref = eventId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An ID created and managed by the caller that uniquely identifies
+   * this event.
+   *
+   * Required if you want to deduplicate ad events that are included
+   * in multiple requests. Otherwise, this field is optional.
+   * 
+ * + * string event_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for eventId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventIdBytes() { + java.lang.Object ref = eventId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_DATA_FIELD_NUMBER = 7; + private com.google.ads.datamanager.v1.UserData userData_; + + /** + * + * + *
+   * Optional. Multiple pieces of user-provided data, representing the user the
+   * event is associated with.
+   *
+   * It is possible to provide multiple instances of the same type of data (e.g.
+   * email address). The more data provided, the more likely a match will be
+   * found.
+   * 
+ * + * + * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userData field is set. + */ + @java.lang.Override + public boolean hasUserData() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Multiple pieces of user-provided data, representing the user the
+   * event is associated with.
+   *
+   * It is possible to provide multiple instances of the same type of data (e.g.
+   * email address). The more data provided, the more likely a match will be
+   * found.
+   * 
+ * + * + * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userData. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.UserData getUserData() { + return userData_ == null + ? com.google.ads.datamanager.v1.UserData.getDefaultInstance() + : userData_; + } + + /** + * + * + *
+   * Optional. Multiple pieces of user-provided data, representing the user the
+   * event is associated with.
+   *
+   * It is possible to provide multiple instances of the same type of data (e.g.
+   * email address). The more data provided, the more likely a match will be
+   * found.
+   * 
+ * + * + * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.UserDataOrBuilder getUserDataOrBuilder() { + return userData_ == null + ? com.google.ads.datamanager.v1.UserData.getDefaultInstance() + : userData_; + } + + public static final int DEVICE_INFO_FIELD_NUMBER = 8; + private com.google.ads.datamanager.v1.DeviceInfo deviceInfo_; + + /** + * + * + *
+   * Optional. Information gathered about the device being used when the ad
+   * event happened.
+   * 
+ * + * + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deviceInfo field is set. + */ + @java.lang.Override + public boolean hasDeviceInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. Information gathered about the device being used when the ad
+   * event happened.
+   * 
+ * + * + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deviceInfo. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.DeviceInfo getDeviceInfo() { + return deviceInfo_ == null + ? com.google.ads.datamanager.v1.DeviceInfo.getDefaultInstance() + : deviceInfo_; + } + + /** + * + * + *
+   * Optional. Information gathered about the device being used when the ad
+   * event happened.
+   * 
+ * + * + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.DeviceInfoOrBuilder getDeviceInfoOrBuilder() { + return deviceInfo_ == null + ? com.google.ads.datamanager.v1.DeviceInfo.getDefaultInstance() + : deviceInfo_; + } + + public static final int MOBILE_DEVICE_ID_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object mobileDeviceId_ = ""; + + /** + * + * + *
+   * Optional. The device ID of the device that the ad was served to.
+   * 
+ * + * string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mobileDeviceId. + */ + @java.lang.Override + public java.lang.String getMobileDeviceId() { + java.lang.Object ref = mobileDeviceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mobileDeviceId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The device ID of the device that the ad was served to.
+   * 
+ * + * string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mobileDeviceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMobileDeviceIdBytes() { + java.lang.Object ref = mobileDeviceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mobileDeviceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CAMPAIGN_ID_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object campaignId_ = ""; + + /** + * + * + *
+   * Required. The ID of the associated campaign.
+   * 
+ * + * string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The campaignId. + */ + @java.lang.Override + public java.lang.String getCampaignId() { + java.lang.Object ref = campaignId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + campaignId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID of the associated campaign.
+   * 
+ * + * string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for campaignId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCampaignIdBytes() { + java.lang.Object ref = campaignId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + campaignId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CAMPAIGN_NAME_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object campaignName_ = ""; + + /** + * + * + *
+   * Required. The name of the associated campaign.
+   * 
+ * + * string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The campaignName. + */ + @java.lang.Override + public java.lang.String getCampaignName() { + java.lang.Object ref = campaignName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + campaignName_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the associated campaign.
+   * 
+ * + * string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for campaignName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCampaignNameBytes() { + java.lang.Object ref = campaignName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + campaignName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AD_GROUP_ID_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object adGroupId_ = ""; + + /** + * + * + *
+   * Optional. The ID of the associated ad group.
+   * 
+ * + * string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The adGroupId. + */ + @java.lang.Override + public java.lang.String getAdGroupId() { + java.lang.Object ref = adGroupId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + adGroupId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The ID of the associated ad group.
+   * 
+ * + * string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for adGroupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdGroupIdBytes() { + java.lang.Object ref = adGroupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AD_ID_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object adId_ = ""; + + /** + * + * + *
+   * Optional. The ID of the associated ad within the group.
+   * 
+ * + * string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The adId. + */ + @java.lang.Override + public java.lang.String getAdId() { + java.lang.Object ref = adId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + adId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The ID of the associated ad within the group.
+   * 
+ * + * string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for adId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdIdBytes() { + java.lang.Object ref = adId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AD_TYPE_FIELD_NUMBER = 14; + + /** + * + * + *
+   * Enum value for ad type.
+   * 
+ * + * .google.ads.datamanager.v1.AdType ad_type = 14; + * + * @return Whether the adType field is set. + */ + public boolean hasAdType() { + return adTypeOneofCase_ == 14; + } + + /** + * + * + *
+   * Enum value for ad type.
+   * 
+ * + * .google.ads.datamanager.v1.AdType ad_type = 14; + * + * @return The enum numeric value on the wire for adType. + */ + public int getAdTypeValue() { + if (adTypeOneofCase_ == 14) { + return (java.lang.Integer) adTypeOneof_; + } + return 0; + } + + /** + * + * + *
+   * Enum value for ad type.
+   * 
+ * + * .google.ads.datamanager.v1.AdType ad_type = 14; + * + * @return The adType. + */ + public com.google.ads.datamanager.v1.AdType getAdType() { + if (adTypeOneofCase_ == 14) { + com.google.ads.datamanager.v1.AdType result = + com.google.ads.datamanager.v1.AdType.forNumber((java.lang.Integer) adTypeOneof_); + return result == null ? com.google.ads.datamanager.v1.AdType.UNRECOGNIZED : result; + } + return com.google.ads.datamanager.v1.AdType.AD_TYPE_UNSPECIFIED; + } + + public static final int AD_TYPE_STRING_FIELD_NUMBER = 15; + + /** + * + * + *
+   * String value for ad type.
+   * 
+ * + * string ad_type_string = 15; + * + * @return Whether the adTypeString field is set. + */ + public boolean hasAdTypeString() { + return adTypeOneofCase_ == 15; + } + + /** + * + * + *
+   * String value for ad type.
+   * 
+ * + * string ad_type_string = 15; + * + * @return The adTypeString. + */ + public java.lang.String getAdTypeString() { + java.lang.Object ref = ""; + if (adTypeOneofCase_ == 15) { + ref = adTypeOneof_; + } + if (ref instanceof java.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 (adTypeOneofCase_ == 15) { + adTypeOneof_ = s; + } + return s; + } + } + + /** + * + * + *
+   * String value for ad type.
+   * 
+ * + * string ad_type_string = 15; + * + * @return The bytes for adTypeString. + */ + public com.google.protobuf.ByteString getAdTypeStringBytes() { + java.lang.Object ref = ""; + if (adTypeOneofCase_ == 15) { + ref = adTypeOneof_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (adTypeOneofCase_ == 15) { + adTypeOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AD_FORMAT_FIELD_NUMBER = 16; + + /** + * + * + *
+   * Enum value for ad format.
+   * 
+ * + * .google.ads.datamanager.v1.AdFormat ad_format = 16; + * + * @return Whether the adFormat field is set. + */ + public boolean hasAdFormat() { + return adFormatOneofCase_ == 16; + } + + /** + * + * + *
+   * Enum value for ad format.
+   * 
+ * + * .google.ads.datamanager.v1.AdFormat ad_format = 16; + * + * @return The enum numeric value on the wire for adFormat. + */ + public int getAdFormatValue() { + if (adFormatOneofCase_ == 16) { + return (java.lang.Integer) adFormatOneof_; + } + return 0; + } + + /** + * + * + *
+   * Enum value for ad format.
+   * 
+ * + * .google.ads.datamanager.v1.AdFormat ad_format = 16; + * + * @return The adFormat. + */ + public com.google.ads.datamanager.v1.AdFormat getAdFormat() { + if (adFormatOneofCase_ == 16) { + com.google.ads.datamanager.v1.AdFormat result = + com.google.ads.datamanager.v1.AdFormat.forNumber((java.lang.Integer) adFormatOneof_); + return result == null ? com.google.ads.datamanager.v1.AdFormat.UNRECOGNIZED : result; + } + return com.google.ads.datamanager.v1.AdFormat.AD_FORMAT_UNSPECIFIED; + } + + public static final int AD_FORMAT_STRING_FIELD_NUMBER = 17; + + /** + * + * + *
+   * String value for ad format.
+   * 
+ * + * string ad_format_string = 17; + * + * @return Whether the adFormatString field is set. + */ + public boolean hasAdFormatString() { + return adFormatOneofCase_ == 17; + } + + /** + * + * + *
+   * String value for ad format.
+   * 
+ * + * string ad_format_string = 17; + * + * @return The adFormatString. + */ + public java.lang.String getAdFormatString() { + java.lang.Object ref = ""; + if (adFormatOneofCase_ == 17) { + ref = adFormatOneof_; + } + if (ref instanceof java.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 (adFormatOneofCase_ == 17) { + adFormatOneof_ = s; + } + return s; + } + } + + /** + * + * + *
+   * String value for ad format.
+   * 
+ * + * string ad_format_string = 17; + * + * @return The bytes for adFormatString. + */ + public com.google.protobuf.ByteString getAdFormatStringBytes() { + java.lang.Object ref = ""; + if (adFormatOneofCase_ == 17) { + ref = adFormatOneof_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (adFormatOneofCase_ == 17) { + adFormatOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AD_PLACEMENT_FIELD_NUMBER = 18; + + /** + * + * + *
+   * Enum value for ad placement.
+   * 
+ * + * .google.ads.datamanager.v1.AdPlacement ad_placement = 18; + * + * @return Whether the adPlacement field is set. + */ + public boolean hasAdPlacement() { + return adPlacementOneofCase_ == 18; + } + + /** + * + * + *
+   * Enum value for ad placement.
+   * 
+ * + * .google.ads.datamanager.v1.AdPlacement ad_placement = 18; + * + * @return The enum numeric value on the wire for adPlacement. + */ + public int getAdPlacementValue() { + if (adPlacementOneofCase_ == 18) { + return (java.lang.Integer) adPlacementOneof_; + } + return 0; + } + + /** + * + * + *
+   * Enum value for ad placement.
+   * 
+ * + * .google.ads.datamanager.v1.AdPlacement ad_placement = 18; + * + * @return The adPlacement. + */ + public com.google.ads.datamanager.v1.AdPlacement getAdPlacement() { + if (adPlacementOneofCase_ == 18) { + com.google.ads.datamanager.v1.AdPlacement result = + com.google.ads.datamanager.v1.AdPlacement.forNumber( + (java.lang.Integer) adPlacementOneof_); + return result == null ? com.google.ads.datamanager.v1.AdPlacement.UNRECOGNIZED : result; + } + return com.google.ads.datamanager.v1.AdPlacement.AD_PLACEMENT_UNSPECIFIED; + } + + public static final int AD_PLACEMENT_STRING_FIELD_NUMBER = 19; + + /** + * + * + *
+   * String value for ad placement.
+   * 
+ * + * string ad_placement_string = 19; + * + * @return Whether the adPlacementString field is set. + */ + public boolean hasAdPlacementString() { + return adPlacementOneofCase_ == 19; + } + + /** + * + * + *
+   * String value for ad placement.
+   * 
+ * + * string ad_placement_string = 19; + * + * @return The adPlacementString. + */ + public java.lang.String getAdPlacementString() { + java.lang.Object ref = ""; + if (adPlacementOneofCase_ == 19) { + ref = adPlacementOneof_; + } + if (ref instanceof java.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 (adPlacementOneofCase_ == 19) { + adPlacementOneof_ = s; + } + return s; + } + } + + /** + * + * + *
+   * String value for ad placement.
+   * 
+ * + * string ad_placement_string = 19; + * + * @return The bytes for adPlacementString. + */ + public com.google.protobuf.ByteString getAdPlacementStringBytes() { + java.lang.Object ref = ""; + if (adPlacementOneofCase_ == 19) { + ref = adPlacementOneof_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (adPlacementOneofCase_ == 19) { + adPlacementOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AD_HEIGHT_FIELD_NUMBER = 20; + private int adHeight_ = 0; + + /** + * + * + *
+   * Optional. The height of the ad in pixels.
+   * 
+ * + * int32 ad_height = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The adHeight. + */ + @java.lang.Override + public int getAdHeight() { + return adHeight_; + } + + public static final int AD_WIDTH_FIELD_NUMBER = 21; + private int adWidth_ = 0; + + /** + * + * + *
+   * Optional. The width of the ad in pixels.
+   * 
+ * + * int32 ad_width = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The adWidth. + */ + @java.lang.Override + public int getAdWidth() { + return adWidth_; + } + + public static final int REGION_CODE_FIELD_NUMBER = 22; + + @SuppressWarnings("serial") + private volatile java.lang.Object regionCode_ = ""; + + /** + * + * + *
+   * Required. The ISO 3166-2 country plus subdivision.
+   * 
+ * + * string region_code = 22 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The regionCode. + */ + @java.lang.Override + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ISO 3166-2 country plus subdivision.
+   * 
+ * + * string region_code = 22 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for regionCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 23; + + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + + /** + * + * + *
+   * Required. The platform source of the ad, akin to the Google Analytics
+   * source.
+   * 
+ * + * string source = 23 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The platform source of the ad, akin to the Google Analytics
+   * source.
+   * 
+ * + * string source = 23 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEDIUM_FIELD_NUMBER = 24; + + @SuppressWarnings("serial") + private volatile java.lang.Object medium_ = ""; + + /** + * + * + *
+   * Required. The medium of the ad, akin to the Google Analytics medium.
+   * 
+ * + * string medium = 24 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The medium. + */ + @java.lang.Override + public java.lang.String getMedium() { + java.lang.Object ref = medium_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + medium_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The medium of the ad, akin to the Google Analytics medium.
+   * 
+ * + * string medium = 24 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for medium. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMediumBytes() { + java.lang.Object ref = medium_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + medium_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGETING_TYPE_FIELD_NUMBER = 25; + + /** + * + * + *
+   * Enum value for targeting type.
+   * 
+ * + * .google.ads.datamanager.v1.TargetingType targeting_type = 25; + * + * @return Whether the targetingType field is set. + */ + public boolean hasTargetingType() { + return targetingTypeOneofCase_ == 25; + } + + /** + * + * + *
+   * Enum value for targeting type.
+   * 
+ * + * .google.ads.datamanager.v1.TargetingType targeting_type = 25; + * + * @return The enum numeric value on the wire for targetingType. + */ + public int getTargetingTypeValue() { + if (targetingTypeOneofCase_ == 25) { + return (java.lang.Integer) targetingTypeOneof_; + } + return 0; + } + + /** + * + * + *
+   * Enum value for targeting type.
+   * 
+ * + * .google.ads.datamanager.v1.TargetingType targeting_type = 25; + * + * @return The targetingType. + */ + public com.google.ads.datamanager.v1.TargetingType getTargetingType() { + if (targetingTypeOneofCase_ == 25) { + com.google.ads.datamanager.v1.TargetingType result = + com.google.ads.datamanager.v1.TargetingType.forNumber( + (java.lang.Integer) targetingTypeOneof_); + return result == null ? com.google.ads.datamanager.v1.TargetingType.UNRECOGNIZED : result; + } + return com.google.ads.datamanager.v1.TargetingType.TARGETING_TYPE_UNSPECIFIED; + } + + public static final int TARGETING_TYPE_STRING_FIELD_NUMBER = 26; + + /** + * + * + *
+   * String value for targeting type.
+   * 
+ * + * string targeting_type_string = 26; + * + * @return Whether the targetingTypeString field is set. + */ + public boolean hasTargetingTypeString() { + return targetingTypeOneofCase_ == 26; + } + + /** + * + * + *
+   * String value for targeting type.
+   * 
+ * + * string targeting_type_string = 26; + * + * @return The targetingTypeString. + */ + public java.lang.String getTargetingTypeString() { + java.lang.Object ref = ""; + if (targetingTypeOneofCase_ == 26) { + ref = targetingTypeOneof_; + } + if (ref instanceof java.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 (targetingTypeOneofCase_ == 26) { + targetingTypeOneof_ = s; + } + return s; + } + } + + /** + * + * + *
+   * String value for targeting type.
+   * 
+ * + * string targeting_type_string = 26; + * + * @return The bytes for targetingTypeString. + */ + public com.google.protobuf.ByteString getTargetingTypeStringBytes() { + java.lang.Object ref = ""; + if (targetingTypeOneofCase_ == 26) { + ref = targetingTypeOneof_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetingTypeOneofCase_ == 26) { + targetingTypeOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PLATFORM_TYPE_FIELD_NUMBER = 27; + + /** + * + * + *
+   * Enum value for platform type.
+   * 
+ * + * .google.ads.datamanager.v1.PlatformType platform_type = 27; + * + * @return Whether the platformType field is set. + */ + public boolean hasPlatformType() { + return platformTypeOneofCase_ == 27; + } + + /** + * + * + *
+   * Enum value for platform type.
+   * 
+ * + * .google.ads.datamanager.v1.PlatformType platform_type = 27; + * + * @return The enum numeric value on the wire for platformType. + */ + public int getPlatformTypeValue() { + if (platformTypeOneofCase_ == 27) { + return (java.lang.Integer) platformTypeOneof_; + } + return 0; + } + + /** + * + * + *
+   * Enum value for platform type.
+   * 
+ * + * .google.ads.datamanager.v1.PlatformType platform_type = 27; + * + * @return The platformType. + */ + public com.google.ads.datamanager.v1.PlatformType getPlatformType() { + if (platformTypeOneofCase_ == 27) { + com.google.ads.datamanager.v1.PlatformType result = + com.google.ads.datamanager.v1.PlatformType.forNumber( + (java.lang.Integer) platformTypeOneof_); + return result == null ? com.google.ads.datamanager.v1.PlatformType.UNRECOGNIZED : result; + } + return com.google.ads.datamanager.v1.PlatformType.PLATFORM_TYPE_UNSPECIFIED; + } + + public static final int PLATFORM_TYPE_STRING_FIELD_NUMBER = 28; + + /** + * + * + *
+   * String value for platform type.
+   * 
+ * + * string platform_type_string = 28; + * + * @return Whether the platformTypeString field is set. + */ + public boolean hasPlatformTypeString() { + return platformTypeOneofCase_ == 28; + } + + /** + * + * + *
+   * String value for platform type.
+   * 
+ * + * string platform_type_string = 28; + * + * @return The platformTypeString. + */ + public java.lang.String getPlatformTypeString() { + java.lang.Object ref = ""; + if (platformTypeOneofCase_ == 28) { + ref = platformTypeOneof_; + } + if (ref instanceof java.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 (platformTypeOneofCase_ == 28) { + platformTypeOneof_ = s; + } + return s; + } + } + + /** + * + * + *
+   * String value for platform type.
+   * 
+ * + * string platform_type_string = 28; + * + * @return The bytes for platformTypeString. + */ + public com.google.protobuf.ByteString getPlatformTypeStringBytes() { + java.lang.Object ref = ""; + if (platformTypeOneofCase_ == 28) { + ref = platformTypeOneof_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (platformTypeOneofCase_ == 28) { + platformTypeOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PLATFORM_FIELD_NUMBER = 29; + + /** + * + * + *
+   * Enum value for platform.
+   * 
+ * + * .google.ads.datamanager.v1.Platform platform = 29; + * + * @return Whether the platform field is set. + */ + public boolean hasPlatform() { + return platformOneofCase_ == 29; + } + + /** + * + * + *
+   * Enum value for platform.
+   * 
+ * + * .google.ads.datamanager.v1.Platform platform = 29; + * + * @return The enum numeric value on the wire for platform. + */ + public int getPlatformValue() { + if (platformOneofCase_ == 29) { + return (java.lang.Integer) platformOneof_; + } + return 0; + } + + /** + * + * + *
+   * Enum value for platform.
+   * 
+ * + * .google.ads.datamanager.v1.Platform platform = 29; + * + * @return The platform. + */ + public com.google.ads.datamanager.v1.Platform getPlatform() { + if (platformOneofCase_ == 29) { + com.google.ads.datamanager.v1.Platform result = + com.google.ads.datamanager.v1.Platform.forNumber((java.lang.Integer) platformOneof_); + return result == null ? com.google.ads.datamanager.v1.Platform.UNRECOGNIZED : result; + } + return com.google.ads.datamanager.v1.Platform.PLATFORM_UNSPECIFIED; + } + + public static final int PLATFORM_STRING_FIELD_NUMBER = 30; + + /** + * + * + *
+   * String value for platform.
+   * 
+ * + * string platform_string = 30; + * + * @return Whether the platformString field is set. + */ + public boolean hasPlatformString() { + return platformOneofCase_ == 30; + } + + /** + * + * + *
+   * String value for platform.
+   * 
+ * + * string platform_string = 30; + * + * @return The platformString. + */ + public java.lang.String getPlatformString() { + java.lang.Object ref = ""; + if (platformOneofCase_ == 30) { + ref = platformOneof_; + } + if (ref instanceof java.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 (platformOneofCase_ == 30) { + platformOneof_ = s; + } + return s; + } + } + + /** + * + * + *
+   * String value for platform.
+   * 
+ * + * string platform_string = 30; + * + * @return The bytes for platformString. + */ + public com.google.protobuf.ByteString getPlatformStringBytes() { + java.lang.Object ref = ""; + if (platformOneofCase_ == 30) { + ref = platformOneof_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (platformOneofCase_ == 30) { + platformOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ATTRIBUTION_HINT_FIELD_NUMBER = 31; + private int attributionHint_ = 0; + + /** + * + * + *
+   * Optional. The partner-assumed attribution status for this ad event.
+   *
+   * This acts only as a signal for how the partner assumed attribution played
+   * out, and does not force an end result in final reports.
+   * 
+ * + * + * .google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for attributionHint. + */ + @java.lang.Override + public int getAttributionHintValue() { + return attributionHint_; + } + + /** + * + * + *
+   * Optional. The partner-assumed attribution status for this ad event.
+   *
+   * This acts only as a signal for how the partner assumed attribution played
+   * out, and does not force an end result in final reports.
+   * 
+ * + * + * .google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributionHint. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.AttributionHint getAttributionHint() { + com.google.ads.datamanager.v1.AttributionHint result = + com.google.ads.datamanager.v1.AttributionHint.forNumber(attributionHint_); + return result == null ? com.google.ads.datamanager.v1.AttributionHint.UNRECOGNIZED : result; + } + + public static final int VIEWABILITY_INFO_FIELD_NUMBER = 32; + private com.google.ads.datamanager.v1.ViewabilityInfo viewabilityInfo_; + + /** + * + * + *
+   * Required. Details of the viewability of the ad served.
+   * 
+ * + * + * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the viewabilityInfo field is set. + */ + @java.lang.Override + public boolean hasViewabilityInfo() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Required. Details of the viewability of the ad served.
+   * 
+ * + * + * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The viewabilityInfo. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.ViewabilityInfo getViewabilityInfo() { + return viewabilityInfo_ == null + ? com.google.ads.datamanager.v1.ViewabilityInfo.getDefaultInstance() + : viewabilityInfo_; + } + + /** + * + * + *
+   * Required. Details of the viewability of the ad served.
+   * 
+ * + * + * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.ViewabilityInfoOrBuilder getViewabilityInfoOrBuilder() { + return viewabilityInfo_ == null + ? com.google.ads.datamanager.v1.ViewabilityInfo.getDefaultInstance() + : viewabilityInfo_; + } + + public static final int MEASUREMENT_ALLOWED_FIELD_NUMBER = 33; + private boolean measurementAllowed_ = false; + + /** + * + * + *
+   * Optional. Represents if the row is allowed to be used for measurement
+   * purposes, as governed by applicable privacy laws within regional
+   * jurisdiction.
+   * 
+ * + * optional bool measurement_allowed = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the measurementAllowed field is set. + */ + @java.lang.Override + public boolean hasMeasurementAllowed() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Optional. Represents if the row is allowed to be used for measurement
+   * purposes, as governed by applicable privacy laws within regional
+   * jurisdiction.
+   * 
+ * + * optional bool measurement_allowed = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The measurementAllowed. + */ + @java.lang.Override + public boolean getMeasurementAllowed() { + return measurementAllowed_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(advertiserId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, advertiserId_); + } + if (eventType_ + != com.google.ads.datamanager.v1.AdEvent.EventType.EVENT_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, eventType_); + } + if (eventSubtypeOneofCase_ == 3) { + output.writeEnum(3, ((java.lang.Integer) eventSubtypeOneof_)); + } + if (eventSubtypeOneofCase_ == 4) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, eventSubtypeOneof_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getTimestamp()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, eventId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getUserData()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getDeviceInfo()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mobileDeviceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, mobileDeviceId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(campaignId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, campaignId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(campaignName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, campaignName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(adGroupId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, adGroupId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(adId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, adId_); + } + if (adTypeOneofCase_ == 14) { + output.writeEnum(14, ((java.lang.Integer) adTypeOneof_)); + } + if (adTypeOneofCase_ == 15) { + com.google.protobuf.GeneratedMessage.writeString(output, 15, adTypeOneof_); + } + if (adFormatOneofCase_ == 16) { + output.writeEnum(16, ((java.lang.Integer) adFormatOneof_)); + } + if (adFormatOneofCase_ == 17) { + com.google.protobuf.GeneratedMessage.writeString(output, 17, adFormatOneof_); + } + if (adPlacementOneofCase_ == 18) { + output.writeEnum(18, ((java.lang.Integer) adPlacementOneof_)); + } + if (adPlacementOneofCase_ == 19) { + com.google.protobuf.GeneratedMessage.writeString(output, 19, adPlacementOneof_); + } + if (adHeight_ != 0) { + output.writeInt32(20, adHeight_); + } + if (adWidth_ != 0) { + output.writeInt32(21, adWidth_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(regionCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 22, regionCode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(source_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 23, source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(medium_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 24, medium_); + } + if (targetingTypeOneofCase_ == 25) { + output.writeEnum(25, ((java.lang.Integer) targetingTypeOneof_)); + } + if (targetingTypeOneofCase_ == 26) { + com.google.protobuf.GeneratedMessage.writeString(output, 26, targetingTypeOneof_); + } + if (platformTypeOneofCase_ == 27) { + output.writeEnum(27, ((java.lang.Integer) platformTypeOneof_)); + } + if (platformTypeOneofCase_ == 28) { + com.google.protobuf.GeneratedMessage.writeString(output, 28, platformTypeOneof_); + } + if (platformOneofCase_ == 29) { + output.writeEnum(29, ((java.lang.Integer) platformOneof_)); + } + if (platformOneofCase_ == 30) { + com.google.protobuf.GeneratedMessage.writeString(output, 30, platformOneof_); + } + if (attributionHint_ + != com.google.ads.datamanager.v1.AttributionHint.ATTRIBUTION_HINT_UNSPECIFIED.getNumber()) { + output.writeEnum(31, attributionHint_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(32, getViewabilityInfo()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeBool(33, measurementAllowed_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(advertiserId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, advertiserId_); + } + if (eventType_ + != com.google.ads.datamanager.v1.AdEvent.EventType.EVENT_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, eventType_); + } + if (eventSubtypeOneofCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 3, ((java.lang.Integer) eventSubtypeOneof_)); + } + if (eventSubtypeOneofCase_ == 4) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, eventSubtypeOneof_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTimestamp()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, eventId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUserData()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDeviceInfo()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mobileDeviceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, mobileDeviceId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(campaignId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, campaignId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(campaignName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(11, campaignName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(adGroupId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(12, adGroupId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(adId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, adId_); + } + if (adTypeOneofCase_ == 14) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 14, ((java.lang.Integer) adTypeOneof_)); + } + if (adTypeOneofCase_ == 15) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(15, adTypeOneof_); + } + if (adFormatOneofCase_ == 16) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 16, ((java.lang.Integer) adFormatOneof_)); + } + if (adFormatOneofCase_ == 17) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(17, adFormatOneof_); + } + if (adPlacementOneofCase_ == 18) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 18, ((java.lang.Integer) adPlacementOneof_)); + } + if (adPlacementOneofCase_ == 19) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(19, adPlacementOneof_); + } + if (adHeight_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(20, adHeight_); + } + if (adWidth_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(21, adWidth_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(regionCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(22, regionCode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(source_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(23, source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(medium_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(24, medium_); + } + if (targetingTypeOneofCase_ == 25) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 25, ((java.lang.Integer) targetingTypeOneof_)); + } + if (targetingTypeOneofCase_ == 26) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(26, targetingTypeOneof_); + } + if (platformTypeOneofCase_ == 27) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 27, ((java.lang.Integer) platformTypeOneof_)); + } + if (platformTypeOneofCase_ == 28) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(28, platformTypeOneof_); + } + if (platformOneofCase_ == 29) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 29, ((java.lang.Integer) platformOneof_)); + } + if (platformOneofCase_ == 30) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(30, platformOneof_); + } + if (attributionHint_ + != com.google.ads.datamanager.v1.AttributionHint.ATTRIBUTION_HINT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(31, attributionHint_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, getViewabilityInfo()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(33, measurementAllowed_); + } + 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.ads.datamanager.v1.AdEvent)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.AdEvent other = (com.google.ads.datamanager.v1.AdEvent) obj; + + if (!getAdvertiserId().equals(other.getAdvertiserId())) return false; + if (eventType_ != other.eventType_) return false; + if (hasTimestamp() != other.hasTimestamp()) return false; + if (hasTimestamp()) { + if (!getTimestamp().equals(other.getTimestamp())) return false; + } + if (!getEventId().equals(other.getEventId())) return false; + if (hasUserData() != other.hasUserData()) return false; + if (hasUserData()) { + if (!getUserData().equals(other.getUserData())) return false; + } + if (hasDeviceInfo() != other.hasDeviceInfo()) return false; + if (hasDeviceInfo()) { + if (!getDeviceInfo().equals(other.getDeviceInfo())) return false; + } + if (!getMobileDeviceId().equals(other.getMobileDeviceId())) return false; + if (!getCampaignId().equals(other.getCampaignId())) return false; + if (!getCampaignName().equals(other.getCampaignName())) return false; + if (!getAdGroupId().equals(other.getAdGroupId())) return false; + if (!getAdId().equals(other.getAdId())) return false; + if (getAdHeight() != other.getAdHeight()) return false; + if (getAdWidth() != other.getAdWidth()) return false; + if (!getRegionCode().equals(other.getRegionCode())) return false; + if (!getSource().equals(other.getSource())) return false; + if (!getMedium().equals(other.getMedium())) return false; + if (attributionHint_ != other.attributionHint_) return false; + if (hasViewabilityInfo() != other.hasViewabilityInfo()) return false; + if (hasViewabilityInfo()) { + if (!getViewabilityInfo().equals(other.getViewabilityInfo())) return false; + } + if (hasMeasurementAllowed() != other.hasMeasurementAllowed()) return false; + if (hasMeasurementAllowed()) { + if (getMeasurementAllowed() != other.getMeasurementAllowed()) return false; + } + if (!getEventSubtypeOneofCase().equals(other.getEventSubtypeOneofCase())) return false; + switch (eventSubtypeOneofCase_) { + case 3: + if (getEventSubtypeValue() != other.getEventSubtypeValue()) return false; + break; + case 4: + if (!getEventSubtypeString().equals(other.getEventSubtypeString())) return false; + break; + case 0: + default: + } + if (!getAdTypeOneofCase().equals(other.getAdTypeOneofCase())) return false; + switch (adTypeOneofCase_) { + case 14: + if (getAdTypeValue() != other.getAdTypeValue()) return false; + break; + case 15: + if (!getAdTypeString().equals(other.getAdTypeString())) return false; + break; + case 0: + default: + } + if (!getAdFormatOneofCase().equals(other.getAdFormatOneofCase())) return false; + switch (adFormatOneofCase_) { + case 16: + if (getAdFormatValue() != other.getAdFormatValue()) return false; + break; + case 17: + if (!getAdFormatString().equals(other.getAdFormatString())) return false; + break; + case 0: + default: + } + if (!getAdPlacementOneofCase().equals(other.getAdPlacementOneofCase())) return false; + switch (adPlacementOneofCase_) { + case 18: + if (getAdPlacementValue() != other.getAdPlacementValue()) return false; + break; + case 19: + if (!getAdPlacementString().equals(other.getAdPlacementString())) return false; + break; + case 0: + default: + } + if (!getTargetingTypeOneofCase().equals(other.getTargetingTypeOneofCase())) return false; + switch (targetingTypeOneofCase_) { + case 25: + if (getTargetingTypeValue() != other.getTargetingTypeValue()) return false; + break; + case 26: + if (!getTargetingTypeString().equals(other.getTargetingTypeString())) return false; + break; + case 0: + default: + } + if (!getPlatformTypeOneofCase().equals(other.getPlatformTypeOneofCase())) return false; + switch (platformTypeOneofCase_) { + case 27: + if (getPlatformTypeValue() != other.getPlatformTypeValue()) return false; + break; + case 28: + if (!getPlatformTypeString().equals(other.getPlatformTypeString())) return false; + break; + case 0: + default: + } + if (!getPlatformOneofCase().equals(other.getPlatformOneofCase())) return false; + switch (platformOneofCase_) { + case 29: + if (getPlatformValue() != other.getPlatformValue()) return false; + break; + case 30: + if (!getPlatformString().equals(other.getPlatformString())) 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) + ADVERTISER_ID_FIELD_NUMBER; + hash = (53 * hash) + getAdvertiserId().hashCode(); + hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + eventType_; + if (hasTimestamp()) { + hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getTimestamp().hashCode(); + } + hash = (37 * hash) + EVENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEventId().hashCode(); + if (hasUserData()) { + hash = (37 * hash) + USER_DATA_FIELD_NUMBER; + hash = (53 * hash) + getUserData().hashCode(); + } + if (hasDeviceInfo()) { + hash = (37 * hash) + DEVICE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getDeviceInfo().hashCode(); + } + hash = (37 * hash) + MOBILE_DEVICE_ID_FIELD_NUMBER; + hash = (53 * hash) + getMobileDeviceId().hashCode(); + hash = (37 * hash) + CAMPAIGN_ID_FIELD_NUMBER; + hash = (53 * hash) + getCampaignId().hashCode(); + hash = (37 * hash) + CAMPAIGN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCampaignName().hashCode(); + hash = (37 * hash) + AD_GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getAdGroupId().hashCode(); + hash = (37 * hash) + AD_ID_FIELD_NUMBER; + hash = (53 * hash) + getAdId().hashCode(); + hash = (37 * hash) + AD_HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + getAdHeight(); + hash = (37 * hash) + AD_WIDTH_FIELD_NUMBER; + hash = (53 * hash) + getAdWidth(); + hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getRegionCode().hashCode(); + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (37 * hash) + MEDIUM_FIELD_NUMBER; + hash = (53 * hash) + getMedium().hashCode(); + hash = (37 * hash) + ATTRIBUTION_HINT_FIELD_NUMBER; + hash = (53 * hash) + attributionHint_; + if (hasViewabilityInfo()) { + hash = (37 * hash) + VIEWABILITY_INFO_FIELD_NUMBER; + hash = (53 * hash) + getViewabilityInfo().hashCode(); + } + if (hasMeasurementAllowed()) { + hash = (37 * hash) + MEASUREMENT_ALLOWED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMeasurementAllowed()); + } + switch (eventSubtypeOneofCase_) { + case 3: + hash = (37 * hash) + EVENT_SUBTYPE_FIELD_NUMBER; + hash = (53 * hash) + getEventSubtypeValue(); + break; + case 4: + hash = (37 * hash) + EVENT_SUBTYPE_STRING_FIELD_NUMBER; + hash = (53 * hash) + getEventSubtypeString().hashCode(); + break; + case 0: + default: + } + switch (adTypeOneofCase_) { + case 14: + hash = (37 * hash) + AD_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAdTypeValue(); + break; + case 15: + hash = (37 * hash) + AD_TYPE_STRING_FIELD_NUMBER; + hash = (53 * hash) + getAdTypeString().hashCode(); + break; + case 0: + default: + } + switch (adFormatOneofCase_) { + case 16: + hash = (37 * hash) + AD_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + getAdFormatValue(); + break; + case 17: + hash = (37 * hash) + AD_FORMAT_STRING_FIELD_NUMBER; + hash = (53 * hash) + getAdFormatString().hashCode(); + break; + case 0: + default: + } + switch (adPlacementOneofCase_) { + case 18: + hash = (37 * hash) + AD_PLACEMENT_FIELD_NUMBER; + hash = (53 * hash) + getAdPlacementValue(); + break; + case 19: + hash = (37 * hash) + AD_PLACEMENT_STRING_FIELD_NUMBER; + hash = (53 * hash) + getAdPlacementString().hashCode(); + break; + case 0: + default: + } + switch (targetingTypeOneofCase_) { + case 25: + hash = (37 * hash) + TARGETING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getTargetingTypeValue(); + break; + case 26: + hash = (37 * hash) + TARGETING_TYPE_STRING_FIELD_NUMBER; + hash = (53 * hash) + getTargetingTypeString().hashCode(); + break; + case 0: + default: + } + switch (platformTypeOneofCase_) { + case 27: + hash = (37 * hash) + PLATFORM_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getPlatformTypeValue(); + break; + case 28: + hash = (37 * hash) + PLATFORM_TYPE_STRING_FIELD_NUMBER; + hash = (53 * hash) + getPlatformTypeString().hashCode(); + break; + case 0: + default: + } + switch (platformOneofCase_) { + case 29: + hash = (37 * hash) + PLATFORM_FIELD_NUMBER; + hash = (53 * hash) + getPlatformValue(); + break; + case 30: + hash = (37 * hash) + PLATFORM_STRING_FIELD_NUMBER; + hash = (53 * hash) + getPlatformString().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.datamanager.v1.AdEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.AdEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.AdEvent parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.AdEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.AdEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.AdEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.AdEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.AdEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.AdEvent parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.AdEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.AdEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.AdEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.datamanager.v1.AdEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * An ad event.
+   * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.AdEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.AdEvent) + com.google.ads.datamanager.v1.AdEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEventProto + .internal_static_google_ads_datamanager_v1_AdEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.AdEventProto + .internal_static_google_ads_datamanager_v1_AdEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.AdEvent.class, + com.google.ads.datamanager.v1.AdEvent.Builder.class); + } + + // Construct using com.google.ads.datamanager.v1.AdEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTimestampFieldBuilder(); + internalGetUserDataFieldBuilder(); + internalGetDeviceInfoFieldBuilder(); + internalGetViewabilityInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bitField1_ = 0; + advertiserId_ = ""; + eventType_ = 0; + timestamp_ = null; + if (timestampBuilder_ != null) { + timestampBuilder_.dispose(); + timestampBuilder_ = null; + } + eventId_ = ""; + userData_ = null; + if (userDataBuilder_ != null) { + userDataBuilder_.dispose(); + userDataBuilder_ = null; + } + deviceInfo_ = null; + if (deviceInfoBuilder_ != null) { + deviceInfoBuilder_.dispose(); + deviceInfoBuilder_ = null; + } + mobileDeviceId_ = ""; + campaignId_ = ""; + campaignName_ = ""; + adGroupId_ = ""; + adId_ = ""; + adHeight_ = 0; + adWidth_ = 0; + regionCode_ = ""; + source_ = ""; + medium_ = ""; + attributionHint_ = 0; + viewabilityInfo_ = null; + if (viewabilityInfoBuilder_ != null) { + viewabilityInfoBuilder_.dispose(); + viewabilityInfoBuilder_ = null; + } + measurementAllowed_ = false; + eventSubtypeOneofCase_ = 0; + eventSubtypeOneof_ = null; + adTypeOneofCase_ = 0; + adTypeOneof_ = null; + adFormatOneofCase_ = 0; + adFormatOneof_ = null; + adPlacementOneofCase_ = 0; + adPlacementOneof_ = null; + targetingTypeOneofCase_ = 0; + targetingTypeOneof_ = null; + platformTypeOneofCase_ = 0; + platformTypeOneof_ = null; + platformOneofCase_ = 0; + platformOneof_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.AdEventProto + .internal_static_google_ads_datamanager_v1_AdEvent_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.AdEvent getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.AdEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.AdEvent build() { + com.google.ads.datamanager.v1.AdEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.AdEvent buildPartial() { + com.google.ads.datamanager.v1.AdEvent result = + new com.google.ads.datamanager.v1.AdEvent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + if (bitField1_ != 0) { + buildPartial1(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.datamanager.v1.AdEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.advertiserId_ = advertiserId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.eventType_ = eventType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.timestamp_ = timestampBuilder_ == null ? timestamp_ : timestampBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.eventId_ = eventId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.userData_ = userDataBuilder_ == null ? userData_ : userDataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.deviceInfo_ = deviceInfoBuilder_ == null ? deviceInfo_ : deviceInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.mobileDeviceId_ = mobileDeviceId_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.campaignId_ = campaignId_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.campaignName_ = campaignName_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.adGroupId_ = adGroupId_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.adId_ = adId_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.adHeight_ = adHeight_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.adWidth_ = adWidth_; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.regionCode_ = regionCode_; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.source_ = source_; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.medium_ = medium_; + } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.attributionHint_ = attributionHint_; + } + if (((from_bitField0_ & 0x80000000) != 0)) { + result.viewabilityInfo_ = + viewabilityInfoBuilder_ == null ? viewabilityInfo_ : viewabilityInfoBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartial1(com.google.ads.datamanager.v1.AdEvent result) { + int from_bitField1_ = bitField1_; + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000001) != 0)) { + result.measurementAllowed_ = measurementAllowed_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.ads.datamanager.v1.AdEvent result) { + result.eventSubtypeOneofCase_ = eventSubtypeOneofCase_; + result.eventSubtypeOneof_ = this.eventSubtypeOneof_; + result.adTypeOneofCase_ = adTypeOneofCase_; + result.adTypeOneof_ = this.adTypeOneof_; + result.adFormatOneofCase_ = adFormatOneofCase_; + result.adFormatOneof_ = this.adFormatOneof_; + result.adPlacementOneofCase_ = adPlacementOneofCase_; + result.adPlacementOneof_ = this.adPlacementOneof_; + result.targetingTypeOneofCase_ = targetingTypeOneofCase_; + result.targetingTypeOneof_ = this.targetingTypeOneof_; + result.platformTypeOneofCase_ = platformTypeOneofCase_; + result.platformTypeOneof_ = this.platformTypeOneof_; + result.platformOneofCase_ = platformOneofCase_; + result.platformOneof_ = this.platformOneof_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.datamanager.v1.AdEvent) { + return mergeFrom((com.google.ads.datamanager.v1.AdEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.datamanager.v1.AdEvent other) { + if (other == com.google.ads.datamanager.v1.AdEvent.getDefaultInstance()) return this; + if (!other.getAdvertiserId().isEmpty()) { + advertiserId_ = other.advertiserId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.eventType_ != 0) { + setEventTypeValue(other.getEventTypeValue()); + } + if (other.hasTimestamp()) { + mergeTimestamp(other.getTimestamp()); + } + if (!other.getEventId().isEmpty()) { + eventId_ = other.eventId_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasUserData()) { + mergeUserData(other.getUserData()); + } + if (other.hasDeviceInfo()) { + mergeDeviceInfo(other.getDeviceInfo()); + } + if (!other.getMobileDeviceId().isEmpty()) { + mobileDeviceId_ = other.mobileDeviceId_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getCampaignId().isEmpty()) { + campaignId_ = other.campaignId_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getCampaignName().isEmpty()) { + campaignName_ = other.campaignName_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getAdGroupId().isEmpty()) { + adGroupId_ = other.adGroupId_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (!other.getAdId().isEmpty()) { + adId_ = other.adId_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (other.getAdHeight() != 0) { + setAdHeight(other.getAdHeight()); + } + if (other.getAdWidth() != 0) { + setAdWidth(other.getAdWidth()); + } + if (!other.getRegionCode().isEmpty()) { + regionCode_ = other.regionCode_; + bitField0_ |= 0x00200000; + onChanged(); + } + if (!other.getSource().isEmpty()) { + source_ = other.source_; + bitField0_ |= 0x00400000; + onChanged(); + } + if (!other.getMedium().isEmpty()) { + medium_ = other.medium_; + bitField0_ |= 0x00800000; + onChanged(); + } + if (other.attributionHint_ != 0) { + setAttributionHintValue(other.getAttributionHintValue()); + } + if (other.hasViewabilityInfo()) { + mergeViewabilityInfo(other.getViewabilityInfo()); + } + if (other.hasMeasurementAllowed()) { + setMeasurementAllowed(other.getMeasurementAllowed()); + } + switch (other.getEventSubtypeOneofCase()) { + case EVENT_SUBTYPE: + { + setEventSubtypeValue(other.getEventSubtypeValue()); + break; + } + case EVENT_SUBTYPE_STRING: + { + eventSubtypeOneofCase_ = 4; + eventSubtypeOneof_ = other.eventSubtypeOneof_; + onChanged(); + break; + } + case EVENTSUBTYPEONEOF_NOT_SET: + { + break; + } + } + switch (other.getAdTypeOneofCase()) { + case AD_TYPE: + { + setAdTypeValue(other.getAdTypeValue()); + break; + } + case AD_TYPE_STRING: + { + adTypeOneofCase_ = 15; + adTypeOneof_ = other.adTypeOneof_; + onChanged(); + break; + } + case ADTYPEONEOF_NOT_SET: + { + break; + } + } + switch (other.getAdFormatOneofCase()) { + case AD_FORMAT: + { + setAdFormatValue(other.getAdFormatValue()); + break; + } + case AD_FORMAT_STRING: + { + adFormatOneofCase_ = 17; + adFormatOneof_ = other.adFormatOneof_; + onChanged(); + break; + } + case ADFORMATONEOF_NOT_SET: + { + break; + } + } + switch (other.getAdPlacementOneofCase()) { + case AD_PLACEMENT: + { + setAdPlacementValue(other.getAdPlacementValue()); + break; + } + case AD_PLACEMENT_STRING: + { + adPlacementOneofCase_ = 19; + adPlacementOneof_ = other.adPlacementOneof_; + onChanged(); + break; + } + case ADPLACEMENTONEOF_NOT_SET: + { + break; + } + } + switch (other.getTargetingTypeOneofCase()) { + case TARGETING_TYPE: + { + setTargetingTypeValue(other.getTargetingTypeValue()); + break; + } + case TARGETING_TYPE_STRING: + { + targetingTypeOneofCase_ = 26; + targetingTypeOneof_ = other.targetingTypeOneof_; + onChanged(); + break; + } + case TARGETINGTYPEONEOF_NOT_SET: + { + break; + } + } + switch (other.getPlatformTypeOneofCase()) { + case PLATFORM_TYPE: + { + setPlatformTypeValue(other.getPlatformTypeValue()); + break; + } + case PLATFORM_TYPE_STRING: + { + platformTypeOneofCase_ = 28; + platformTypeOneof_ = other.platformTypeOneof_; + onChanged(); + break; + } + case PLATFORMTYPEONEOF_NOT_SET: + { + break; + } + } + switch (other.getPlatformOneofCase()) { + case PLATFORM: + { + setPlatformValue(other.getPlatformValue()); + break; + } + case PLATFORM_STRING: + { + platformOneofCase_ = 30; + platformOneof_ = other.platformOneof_; + onChanged(); + break; + } + case PLATFORMONEOF_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: + { + advertiserId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + eventType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + int rawValue = input.readEnum(); + eventSubtypeOneofCase_ = 3; + eventSubtypeOneof_ = rawValue; + break; + } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + eventSubtypeOneofCase_ = 4; + eventSubtypeOneof_ = s; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetTimestampFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + eventId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetUserDataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetDeviceInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + mobileDeviceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + campaignId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + campaignName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + adGroupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: + { + adId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 112: + { + int rawValue = input.readEnum(); + adTypeOneofCase_ = 14; + adTypeOneof_ = rawValue; + break; + } // case 112 + case 122: + { + java.lang.String s = input.readStringRequireUtf8(); + adTypeOneofCase_ = 15; + adTypeOneof_ = s; + break; + } // case 122 + case 128: + { + int rawValue = input.readEnum(); + adFormatOneofCase_ = 16; + adFormatOneof_ = rawValue; + break; + } // case 128 + case 138: + { + java.lang.String s = input.readStringRequireUtf8(); + adFormatOneofCase_ = 17; + adFormatOneof_ = s; + break; + } // case 138 + case 144: + { + int rawValue = input.readEnum(); + adPlacementOneofCase_ = 18; + adPlacementOneof_ = rawValue; + break; + } // case 144 + case 154: + { + java.lang.String s = input.readStringRequireUtf8(); + adPlacementOneofCase_ = 19; + adPlacementOneof_ = s; + break; + } // case 154 + case 160: + { + adHeight_ = input.readInt32(); + bitField0_ |= 0x00080000; + break; + } // case 160 + case 168: + { + adWidth_ = input.readInt32(); + bitField0_ |= 0x00100000; + break; + } // case 168 + case 178: + { + regionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00200000; + break; + } // case 178 + case 186: + { + source_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00400000; + break; + } // case 186 + case 194: + { + medium_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00800000; + break; + } // case 194 + case 200: + { + int rawValue = input.readEnum(); + targetingTypeOneofCase_ = 25; + targetingTypeOneof_ = rawValue; + break; + } // case 200 + case 210: + { + java.lang.String s = input.readStringRequireUtf8(); + targetingTypeOneofCase_ = 26; + targetingTypeOneof_ = s; + break; + } // case 210 + case 216: + { + int rawValue = input.readEnum(); + platformTypeOneofCase_ = 27; + platformTypeOneof_ = rawValue; + break; + } // case 216 + case 226: + { + java.lang.String s = input.readStringRequireUtf8(); + platformTypeOneofCase_ = 28; + platformTypeOneof_ = s; + break; + } // case 226 + case 232: + { + int rawValue = input.readEnum(); + platformOneofCase_ = 29; + platformOneof_ = rawValue; + break; + } // case 232 + case 242: + { + java.lang.String s = input.readStringRequireUtf8(); + platformOneofCase_ = 30; + platformOneof_ = s; + break; + } // case 242 + case 248: + { + attributionHint_ = input.readEnum(); + bitField0_ |= 0x40000000; + break; + } // case 248 + case 258: + { + input.readMessage( + internalGetViewabilityInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x80000000; + break; + } // case 258 + case 264: + { + measurementAllowed_ = input.readBool(); + bitField1_ |= 0x00000001; + break; + } // case 264 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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 eventSubtypeOneofCase_ = 0; + private java.lang.Object eventSubtypeOneof_; + + public EventSubtypeOneofCase getEventSubtypeOneofCase() { + return EventSubtypeOneofCase.forNumber(eventSubtypeOneofCase_); + } + + public Builder clearEventSubtypeOneof() { + eventSubtypeOneofCase_ = 0; + eventSubtypeOneof_ = null; + onChanged(); + return this; + } + + private int adTypeOneofCase_ = 0; + private java.lang.Object adTypeOneof_; + + public AdTypeOneofCase getAdTypeOneofCase() { + return AdTypeOneofCase.forNumber(adTypeOneofCase_); + } + + public Builder clearAdTypeOneof() { + adTypeOneofCase_ = 0; + adTypeOneof_ = null; + onChanged(); + return this; + } + + private int adFormatOneofCase_ = 0; + private java.lang.Object adFormatOneof_; + + public AdFormatOneofCase getAdFormatOneofCase() { + return AdFormatOneofCase.forNumber(adFormatOneofCase_); + } + + public Builder clearAdFormatOneof() { + adFormatOneofCase_ = 0; + adFormatOneof_ = null; + onChanged(); + return this; + } + + private int adPlacementOneofCase_ = 0; + private java.lang.Object adPlacementOneof_; + + public AdPlacementOneofCase getAdPlacementOneofCase() { + return AdPlacementOneofCase.forNumber(adPlacementOneofCase_); + } + + public Builder clearAdPlacementOneof() { + adPlacementOneofCase_ = 0; + adPlacementOneof_ = null; + onChanged(); + return this; + } + + private int targetingTypeOneofCase_ = 0; + private java.lang.Object targetingTypeOneof_; + + public TargetingTypeOneofCase getTargetingTypeOneofCase() { + return TargetingTypeOneofCase.forNumber(targetingTypeOneofCase_); + } + + public Builder clearTargetingTypeOneof() { + targetingTypeOneofCase_ = 0; + targetingTypeOneof_ = null; + onChanged(); + return this; + } + + private int platformTypeOneofCase_ = 0; + private java.lang.Object platformTypeOneof_; + + public PlatformTypeOneofCase getPlatformTypeOneofCase() { + return PlatformTypeOneofCase.forNumber(platformTypeOneofCase_); + } + + public Builder clearPlatformTypeOneof() { + platformTypeOneofCase_ = 0; + platformTypeOneof_ = null; + onChanged(); + return this; + } + + private int platformOneofCase_ = 0; + private java.lang.Object platformOneof_; + + public PlatformOneofCase getPlatformOneofCase() { + return PlatformOneofCase.forNumber(platformOneofCase_); + } + + public Builder clearPlatformOneof() { + platformOneofCase_ = 0; + platformOneof_ = null; + onChanged(); + return this; + } + + private int bitField0_; + private int bitField1_; + + private java.lang.Object advertiserId_ = ""; + + /** + * + * + *
+     * Required. The ID of the advertiser for the ad event.
+     *
+     * This must match the ID sent in the linking flow.
+     * 
+ * + * string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The advertiserId. + */ + public java.lang.String getAdvertiserId() { + java.lang.Object ref = advertiserId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertiserId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the advertiser for the ad event.
+     *
+     * This must match the ID sent in the linking flow.
+     * 
+ * + * string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for advertiserId. + */ + public com.google.protobuf.ByteString getAdvertiserIdBytes() { + java.lang.Object ref = advertiserId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the advertiser for the ad event.
+     *
+     * This must match the ID sent in the linking flow.
+     * 
+ * + * string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The advertiserId to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + advertiserId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the advertiser for the ad event.
+     *
+     * This must match the ID sent in the linking flow.
+     * 
+ * + * string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAdvertiserId() { + advertiserId_ = getDefaultInstance().getAdvertiserId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the advertiser for the ad event.
+     *
+     * This must match the ID sent in the linking flow.
+     * 
+ * + * string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for advertiserId to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + advertiserId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int eventType_ = 0; + + /** + * + * + *
+     * Required. The type of the event.
+     * 
+ * + * + * .google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for eventType. + */ + @java.lang.Override + public int getEventTypeValue() { + return eventType_; + } + + /** + * + * + *
+     * Required. The type of the event.
+     * 
+ * + * + * .google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for eventType to set. + * @return This builder for chaining. + */ + public Builder setEventTypeValue(int value) { + eventType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The type of the event.
+     * 
+ * + * + * .google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The eventType. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.AdEvent.EventType getEventType() { + com.google.ads.datamanager.v1.AdEvent.EventType result = + com.google.ads.datamanager.v1.AdEvent.EventType.forNumber(eventType_); + return result == null ? com.google.ads.datamanager.v1.AdEvent.EventType.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Required. The type of the event.
+     * 
+ * + * + * .google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The eventType to set. + * @return This builder for chaining. + */ + public Builder setEventType(com.google.ads.datamanager.v1.AdEvent.EventType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + eventType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The type of the event.
+     * 
+ * + * + * .google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearEventType() { + bitField0_ = (bitField0_ & ~0x00000002); + eventType_ = 0; + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for event subtype.
+     * 
+ * + * .google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3; + * + * @return Whether the eventSubtype field is set. + */ + @java.lang.Override + public boolean hasEventSubtype() { + return eventSubtypeOneofCase_ == 3; + } + + /** + * + * + *
+     * Enum value for event subtype.
+     * 
+ * + * .google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3; + * + * @return The enum numeric value on the wire for eventSubtype. + */ + @java.lang.Override + public int getEventSubtypeValue() { + if (eventSubtypeOneofCase_ == 3) { + return ((java.lang.Integer) eventSubtypeOneof_).intValue(); + } + return 0; + } + + /** + * + * + *
+     * Enum value for event subtype.
+     * 
+ * + * .google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3; + * + * @param value The enum numeric value on the wire for eventSubtype to set. + * @return This builder for chaining. + */ + public Builder setEventSubtypeValue(int value) { + eventSubtypeOneofCase_ = 3; + eventSubtypeOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for event subtype.
+     * 
+ * + * .google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3; + * + * @return The eventSubtype. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.AdEvent.EventSubtype getEventSubtype() { + if (eventSubtypeOneofCase_ == 3) { + com.google.ads.datamanager.v1.AdEvent.EventSubtype result = + com.google.ads.datamanager.v1.AdEvent.EventSubtype.forNumber( + (java.lang.Integer) eventSubtypeOneof_); + return result == null + ? com.google.ads.datamanager.v1.AdEvent.EventSubtype.UNRECOGNIZED + : result; + } + return com.google.ads.datamanager.v1.AdEvent.EventSubtype.EVENT_SUBTYPE_UNSPECIFIED; + } + + /** + * + * + *
+     * Enum value for event subtype.
+     * 
+ * + * .google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3; + * + * @param value The eventSubtype to set. + * @return This builder for chaining. + */ + public Builder setEventSubtype(com.google.ads.datamanager.v1.AdEvent.EventSubtype value) { + if (value == null) { + throw new NullPointerException(); + } + eventSubtypeOneofCase_ = 3; + eventSubtypeOneof_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for event subtype.
+     * 
+ * + * .google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3; + * + * @return This builder for chaining. + */ + public Builder clearEventSubtype() { + if (eventSubtypeOneofCase_ == 3) { + eventSubtypeOneofCase_ = 0; + eventSubtypeOneof_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * String value for event subtype.
+     * 
+ * + * string event_subtype_string = 4; + * + * @return Whether the eventSubtypeString field is set. + */ + @java.lang.Override + public boolean hasEventSubtypeString() { + return eventSubtypeOneofCase_ == 4; + } + + /** + * + * + *
+     * String value for event subtype.
+     * 
+ * + * string event_subtype_string = 4; + * + * @return The eventSubtypeString. + */ + @java.lang.Override + public java.lang.String getEventSubtypeString() { + java.lang.Object ref = ""; + if (eventSubtypeOneofCase_ == 4) { + ref = eventSubtypeOneof_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (eventSubtypeOneofCase_ == 4) { + eventSubtypeOneof_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * String value for event subtype.
+     * 
+ * + * string event_subtype_string = 4; + * + * @return The bytes for eventSubtypeString. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventSubtypeStringBytes() { + java.lang.Object ref = ""; + if (eventSubtypeOneofCase_ == 4) { + ref = eventSubtypeOneof_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (eventSubtypeOneofCase_ == 4) { + eventSubtypeOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * String value for event subtype.
+     * 
+ * + * string event_subtype_string = 4; + * + * @param value The eventSubtypeString to set. + * @return This builder for chaining. + */ + public Builder setEventSubtypeString(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + eventSubtypeOneofCase_ = 4; + eventSubtypeOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * String value for event subtype.
+     * 
+ * + * string event_subtype_string = 4; + * + * @return This builder for chaining. + */ + public Builder clearEventSubtypeString() { + if (eventSubtypeOneofCase_ == 4) { + eventSubtypeOneofCase_ = 0; + eventSubtypeOneof_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * String value for event subtype.
+     * 
+ * + * string event_subtype_string = 4; + * + * @param value The bytes for eventSubtypeString to set. + * @return This builder for chaining. + */ + public Builder setEventSubtypeStringBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventSubtypeOneofCase_ = 4; + eventSubtypeOneof_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp timestamp_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + timestampBuilder_; + + /** + * + * + *
+     * Required. The time the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the timestamp field is set. + */ + public boolean hasTimestamp() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Required. The time the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The timestamp. + */ + public com.google.protobuf.Timestamp getTimestamp() { + if (timestampBuilder_ == null) { + return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; + } else { + return timestampBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The time the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTimestamp(com.google.protobuf.Timestamp value) { + if (timestampBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timestamp_ = value; + } else { + timestampBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The time the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) { + if (timestampBuilder_ == null) { + timestamp_ = builderForValue.build(); + } else { + timestampBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The time the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { + if (timestampBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && timestamp_ != null + && timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getTimestampBuilder().mergeFrom(value); + } else { + timestamp_ = value; + } + } else { + timestampBuilder_.mergeFrom(value); + } + if (timestamp_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The time the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTimestamp() { + bitField0_ = (bitField0_ & ~0x00000010); + timestamp_ = null; + if (timestampBuilder_ != null) { + timestampBuilder_.dispose(); + timestampBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The time the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetTimestampFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The time the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { + if (timestampBuilder_ != null) { + return timestampBuilder_.getMessageOrBuilder(); + } else { + return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; + } + } + + /** + * + * + *
+     * Required. The time the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetTimestampFieldBuilder() { + if (timestampBuilder_ == null) { + timestampBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getTimestamp(), getParentForChildren(), isClean()); + timestamp_ = null; + } + return timestampBuilder_; + } + + private java.lang.Object eventId_ = ""; + + /** + * + * + *
+     * Optional. An ID created and managed by the caller that uniquely identifies
+     * this event.
+     *
+     * Required if you want to deduplicate ad events that are included
+     * in multiple requests. Otherwise, this field is optional.
+     * 
+ * + * string event_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The eventId. + */ + public java.lang.String getEventId() { + java.lang.Object ref = eventId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An ID created and managed by the caller that uniquely identifies
+     * this event.
+     *
+     * Required if you want to deduplicate ad events that are included
+     * in multiple requests. Otherwise, this field is optional.
+     * 
+ * + * string event_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for eventId. + */ + public com.google.protobuf.ByteString getEventIdBytes() { + java.lang.Object ref = eventId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An ID created and managed by the caller that uniquely identifies
+     * this event.
+     *
+     * Required if you want to deduplicate ad events that are included
+     * in multiple requests. Otherwise, this field is optional.
+     * 
+ * + * string event_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The eventId to set. + * @return This builder for chaining. + */ + public Builder setEventId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + eventId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An ID created and managed by the caller that uniquely identifies
+     * this event.
+     *
+     * Required if you want to deduplicate ad events that are included
+     * in multiple requests. Otherwise, this field is optional.
+     * 
+ * + * string event_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEventId() { + eventId_ = getDefaultInstance().getEventId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An ID created and managed by the caller that uniquely identifies
+     * this event.
+     *
+     * Required if you want to deduplicate ad events that are included
+     * in multiple requests. Otherwise, this field is optional.
+     * 
+ * + * string event_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for eventId to set. + * @return This builder for chaining. + */ + public Builder setEventIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.ads.datamanager.v1.UserData userData_; + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.UserData, + com.google.ads.datamanager.v1.UserData.Builder, + com.google.ads.datamanager.v1.UserDataOrBuilder> + userDataBuilder_; + + /** + * + * + *
+     * Optional. Multiple pieces of user-provided data, representing the user the
+     * event is associated with.
+     *
+     * It is possible to provide multiple instances of the same type of data (e.g.
+     * email address). The more data provided, the more likely a match will be
+     * found.
+     * 
+ * + * + * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userData field is set. + */ + public boolean hasUserData() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. Multiple pieces of user-provided data, representing the user the
+     * event is associated with.
+     *
+     * It is possible to provide multiple instances of the same type of data (e.g.
+     * email address). The more data provided, the more likely a match will be
+     * found.
+     * 
+ * + * + * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userData. + */ + public com.google.ads.datamanager.v1.UserData getUserData() { + if (userDataBuilder_ == null) { + return userData_ == null + ? com.google.ads.datamanager.v1.UserData.getDefaultInstance() + : userData_; + } else { + return userDataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Multiple pieces of user-provided data, representing the user the
+     * event is associated with.
+     *
+     * It is possible to provide multiple instances of the same type of data (e.g.
+     * email address). The more data provided, the more likely a match will be
+     * found.
+     * 
+ * + * + * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserData(com.google.ads.datamanager.v1.UserData value) { + if (userDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userData_ = value; + } else { + userDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Multiple pieces of user-provided data, representing the user the
+     * event is associated with.
+     *
+     * It is possible to provide multiple instances of the same type of data (e.g.
+     * email address). The more data provided, the more likely a match will be
+     * found.
+     * 
+ * + * + * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserData(com.google.ads.datamanager.v1.UserData.Builder builderForValue) { + if (userDataBuilder_ == null) { + userData_ = builderForValue.build(); + } else { + userDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Multiple pieces of user-provided data, representing the user the
+     * event is associated with.
+     *
+     * It is possible to provide multiple instances of the same type of data (e.g.
+     * email address). The more data provided, the more likely a match will be
+     * found.
+     * 
+ * + * + * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUserData(com.google.ads.datamanager.v1.UserData value) { + if (userDataBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && userData_ != null + && userData_ != com.google.ads.datamanager.v1.UserData.getDefaultInstance()) { + getUserDataBuilder().mergeFrom(value); + } else { + userData_ = value; + } + } else { + userDataBuilder_.mergeFrom(value); + } + if (userData_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Multiple pieces of user-provided data, representing the user the
+     * event is associated with.
+     *
+     * It is possible to provide multiple instances of the same type of data (e.g.
+     * email address). The more data provided, the more likely a match will be
+     * found.
+     * 
+ * + * + * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUserData() { + bitField0_ = (bitField0_ & ~0x00000040); + userData_ = null; + if (userDataBuilder_ != null) { + userDataBuilder_.dispose(); + userDataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Multiple pieces of user-provided data, representing the user the
+     * event is associated with.
+     *
+     * It is possible to provide multiple instances of the same type of data (e.g.
+     * email address). The more data provided, the more likely a match will be
+     * found.
+     * 
+ * + * + * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.datamanager.v1.UserData.Builder getUserDataBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetUserDataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Multiple pieces of user-provided data, representing the user the
+     * event is associated with.
+     *
+     * It is possible to provide multiple instances of the same type of data (e.g.
+     * email address). The more data provided, the more likely a match will be
+     * found.
+     * 
+ * + * + * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.datamanager.v1.UserDataOrBuilder getUserDataOrBuilder() { + if (userDataBuilder_ != null) { + return userDataBuilder_.getMessageOrBuilder(); + } else { + return userData_ == null + ? com.google.ads.datamanager.v1.UserData.getDefaultInstance() + : userData_; + } + } + + /** + * + * + *
+     * Optional. Multiple pieces of user-provided data, representing the user the
+     * event is associated with.
+     *
+     * It is possible to provide multiple instances of the same type of data (e.g.
+     * email address). The more data provided, the more likely a match will be
+     * found.
+     * 
+ * + * + * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.UserData, + com.google.ads.datamanager.v1.UserData.Builder, + com.google.ads.datamanager.v1.UserDataOrBuilder> + internalGetUserDataFieldBuilder() { + if (userDataBuilder_ == null) { + userDataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.UserData, + com.google.ads.datamanager.v1.UserData.Builder, + com.google.ads.datamanager.v1.UserDataOrBuilder>( + getUserData(), getParentForChildren(), isClean()); + userData_ = null; + } + return userDataBuilder_; + } + + private com.google.ads.datamanager.v1.DeviceInfo deviceInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.DeviceInfo, + com.google.ads.datamanager.v1.DeviceInfo.Builder, + com.google.ads.datamanager.v1.DeviceInfoOrBuilder> + deviceInfoBuilder_; + + /** + * + * + *
+     * Optional. Information gathered about the device being used when the ad
+     * event happened.
+     * 
+ * + * + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deviceInfo field is set. + */ + public boolean hasDeviceInfo() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. Information gathered about the device being used when the ad
+     * event happened.
+     * 
+ * + * + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deviceInfo. + */ + public com.google.ads.datamanager.v1.DeviceInfo getDeviceInfo() { + if (deviceInfoBuilder_ == null) { + return deviceInfo_ == null + ? com.google.ads.datamanager.v1.DeviceInfo.getDefaultInstance() + : deviceInfo_; + } else { + return deviceInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Information gathered about the device being used when the ad
+     * event happened.
+     * 
+ * + * + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeviceInfo(com.google.ads.datamanager.v1.DeviceInfo value) { + if (deviceInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deviceInfo_ = value; + } else { + deviceInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Information gathered about the device being used when the ad
+     * event happened.
+     * 
+ * + * + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeviceInfo(com.google.ads.datamanager.v1.DeviceInfo.Builder builderForValue) { + if (deviceInfoBuilder_ == null) { + deviceInfo_ = builderForValue.build(); + } else { + deviceInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Information gathered about the device being used when the ad
+     * event happened.
+     * 
+ * + * + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDeviceInfo(com.google.ads.datamanager.v1.DeviceInfo value) { + if (deviceInfoBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && deviceInfo_ != null + && deviceInfo_ != com.google.ads.datamanager.v1.DeviceInfo.getDefaultInstance()) { + getDeviceInfoBuilder().mergeFrom(value); + } else { + deviceInfo_ = value; + } + } else { + deviceInfoBuilder_.mergeFrom(value); + } + if (deviceInfo_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Information gathered about the device being used when the ad
+     * event happened.
+     * 
+ * + * + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDeviceInfo() { + bitField0_ = (bitField0_ & ~0x00000080); + deviceInfo_ = null; + if (deviceInfoBuilder_ != null) { + deviceInfoBuilder_.dispose(); + deviceInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Information gathered about the device being used when the ad
+     * event happened.
+     * 
+ * + * + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.datamanager.v1.DeviceInfo.Builder getDeviceInfoBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetDeviceInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Information gathered about the device being used when the ad
+     * event happened.
+     * 
+ * + * + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.datamanager.v1.DeviceInfoOrBuilder getDeviceInfoOrBuilder() { + if (deviceInfoBuilder_ != null) { + return deviceInfoBuilder_.getMessageOrBuilder(); + } else { + return deviceInfo_ == null + ? com.google.ads.datamanager.v1.DeviceInfo.getDefaultInstance() + : deviceInfo_; + } + } + + /** + * + * + *
+     * Optional. Information gathered about the device being used when the ad
+     * event happened.
+     * 
+ * + * + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.DeviceInfo, + com.google.ads.datamanager.v1.DeviceInfo.Builder, + com.google.ads.datamanager.v1.DeviceInfoOrBuilder> + internalGetDeviceInfoFieldBuilder() { + if (deviceInfoBuilder_ == null) { + deviceInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.DeviceInfo, + com.google.ads.datamanager.v1.DeviceInfo.Builder, + com.google.ads.datamanager.v1.DeviceInfoOrBuilder>( + getDeviceInfo(), getParentForChildren(), isClean()); + deviceInfo_ = null; + } + return deviceInfoBuilder_; + } + + private java.lang.Object mobileDeviceId_ = ""; + + /** + * + * + *
+     * Optional. The device ID of the device that the ad was served to.
+     * 
+ * + * string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mobileDeviceId. + */ + public java.lang.String getMobileDeviceId() { + java.lang.Object ref = mobileDeviceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mobileDeviceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The device ID of the device that the ad was served to.
+     * 
+ * + * string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mobileDeviceId. + */ + public com.google.protobuf.ByteString getMobileDeviceIdBytes() { + java.lang.Object ref = mobileDeviceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mobileDeviceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The device ID of the device that the ad was served to.
+     * 
+ * + * string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The mobileDeviceId to set. + * @return This builder for chaining. + */ + public Builder setMobileDeviceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mobileDeviceId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The device ID of the device that the ad was served to.
+     * 
+ * + * string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMobileDeviceId() { + mobileDeviceId_ = getDefaultInstance().getMobileDeviceId(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The device ID of the device that the ad was served to.
+     * 
+ * + * string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for mobileDeviceId to set. + * @return This builder for chaining. + */ + public Builder setMobileDeviceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mobileDeviceId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object campaignId_ = ""; + + /** + * + * + *
+     * Required. The ID of the associated campaign.
+     * 
+ * + * string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The campaignId. + */ + public java.lang.String getCampaignId() { + java.lang.Object ref = campaignId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + campaignId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the associated campaign.
+     * 
+ * + * string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for campaignId. + */ + public com.google.protobuf.ByteString getCampaignIdBytes() { + java.lang.Object ref = campaignId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + campaignId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the associated campaign.
+     * 
+ * + * string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The campaignId to set. + * @return This builder for chaining. + */ + public Builder setCampaignId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + campaignId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the associated campaign.
+     * 
+ * + * string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCampaignId() { + campaignId_ = getDefaultInstance().getCampaignId(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the associated campaign.
+     * 
+ * + * string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for campaignId to set. + * @return This builder for chaining. + */ + public Builder setCampaignIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + campaignId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object campaignName_ = ""; + + /** + * + * + *
+     * Required. The name of the associated campaign.
+     * 
+ * + * string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The campaignName. + */ + public java.lang.String getCampaignName() { + java.lang.Object ref = campaignName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + campaignName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the associated campaign.
+     * 
+ * + * string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for campaignName. + */ + public com.google.protobuf.ByteString getCampaignNameBytes() { + java.lang.Object ref = campaignName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + campaignName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the associated campaign.
+     * 
+ * + * string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The campaignName to set. + * @return This builder for chaining. + */ + public Builder setCampaignName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + campaignName_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the associated campaign.
+     * 
+ * + * string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCampaignName() { + campaignName_ = getDefaultInstance().getCampaignName(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the associated campaign.
+     * 
+ * + * string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for campaignName to set. + * @return This builder for chaining. + */ + public Builder setCampaignNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + campaignName_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object adGroupId_ = ""; + + /** + * + * + *
+     * Optional. The ID of the associated ad group.
+     * 
+ * + * string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The adGroupId. + */ + public java.lang.String getAdGroupId() { + java.lang.Object ref = adGroupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + adGroupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The ID of the associated ad group.
+     * 
+ * + * string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for adGroupId. + */ + public com.google.protobuf.ByteString getAdGroupIdBytes() { + java.lang.Object ref = adGroupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adGroupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The ID of the associated ad group.
+     * 
+ * + * string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The adGroupId to set. + * @return This builder for chaining. + */ + public Builder setAdGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + adGroupId_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The ID of the associated ad group.
+     * 
+ * + * string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAdGroupId() { + adGroupId_ = getDefaultInstance().getAdGroupId(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The ID of the associated ad group.
+     * 
+ * + * string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for adGroupId to set. + * @return This builder for chaining. + */ + public Builder setAdGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + adGroupId_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private java.lang.Object adId_ = ""; + + /** + * + * + *
+     * Optional. The ID of the associated ad within the group.
+     * 
+ * + * string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The adId. + */ + public java.lang.String getAdId() { + java.lang.Object ref = adId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + adId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The ID of the associated ad within the group.
+     * 
+ * + * string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for adId. + */ + public com.google.protobuf.ByteString getAdIdBytes() { + java.lang.Object ref = adId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The ID of the associated ad within the group.
+     * 
+ * + * string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The adId to set. + * @return This builder for chaining. + */ + public Builder setAdId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + adId_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The ID of the associated ad within the group.
+     * 
+ * + * string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAdId() { + adId_ = getDefaultInstance().getAdId(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The ID of the associated ad within the group.
+     * 
+ * + * string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for adId to set. + * @return This builder for chaining. + */ + public Builder setAdIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + adId_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for ad type.
+     * 
+ * + * .google.ads.datamanager.v1.AdType ad_type = 14; + * + * @return Whether the adType field is set. + */ + @java.lang.Override + public boolean hasAdType() { + return adTypeOneofCase_ == 14; + } + + /** + * + * + *
+     * Enum value for ad type.
+     * 
+ * + * .google.ads.datamanager.v1.AdType ad_type = 14; + * + * @return The enum numeric value on the wire for adType. + */ + @java.lang.Override + public int getAdTypeValue() { + if (adTypeOneofCase_ == 14) { + return ((java.lang.Integer) adTypeOneof_).intValue(); + } + return 0; + } + + /** + * + * + *
+     * Enum value for ad type.
+     * 
+ * + * .google.ads.datamanager.v1.AdType ad_type = 14; + * + * @param value The enum numeric value on the wire for adType to set. + * @return This builder for chaining. + */ + public Builder setAdTypeValue(int value) { + adTypeOneofCase_ = 14; + adTypeOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for ad type.
+     * 
+ * + * .google.ads.datamanager.v1.AdType ad_type = 14; + * + * @return The adType. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.AdType getAdType() { + if (adTypeOneofCase_ == 14) { + com.google.ads.datamanager.v1.AdType result = + com.google.ads.datamanager.v1.AdType.forNumber((java.lang.Integer) adTypeOneof_); + return result == null ? com.google.ads.datamanager.v1.AdType.UNRECOGNIZED : result; + } + return com.google.ads.datamanager.v1.AdType.AD_TYPE_UNSPECIFIED; + } + + /** + * + * + *
+     * Enum value for ad type.
+     * 
+ * + * .google.ads.datamanager.v1.AdType ad_type = 14; + * + * @param value The adType to set. + * @return This builder for chaining. + */ + public Builder setAdType(com.google.ads.datamanager.v1.AdType value) { + if (value == null) { + throw new NullPointerException(); + } + adTypeOneofCase_ = 14; + adTypeOneof_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for ad type.
+     * 
+ * + * .google.ads.datamanager.v1.AdType ad_type = 14; + * + * @return This builder for chaining. + */ + public Builder clearAdType() { + if (adTypeOneofCase_ == 14) { + adTypeOneofCase_ = 0; + adTypeOneof_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * String value for ad type.
+     * 
+ * + * string ad_type_string = 15; + * + * @return Whether the adTypeString field is set. + */ + @java.lang.Override + public boolean hasAdTypeString() { + return adTypeOneofCase_ == 15; + } + + /** + * + * + *
+     * String value for ad type.
+     * 
+ * + * string ad_type_string = 15; + * + * @return The adTypeString. + */ + @java.lang.Override + public java.lang.String getAdTypeString() { + java.lang.Object ref = ""; + if (adTypeOneofCase_ == 15) { + ref = adTypeOneof_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (adTypeOneofCase_ == 15) { + adTypeOneof_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * String value for ad type.
+     * 
+ * + * string ad_type_string = 15; + * + * @return The bytes for adTypeString. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdTypeStringBytes() { + java.lang.Object ref = ""; + if (adTypeOneofCase_ == 15) { + ref = adTypeOneof_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (adTypeOneofCase_ == 15) { + adTypeOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * String value for ad type.
+     * 
+ * + * string ad_type_string = 15; + * + * @param value The adTypeString to set. + * @return This builder for chaining. + */ + public Builder setAdTypeString(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + adTypeOneofCase_ = 15; + adTypeOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * String value for ad type.
+     * 
+ * + * string ad_type_string = 15; + * + * @return This builder for chaining. + */ + public Builder clearAdTypeString() { + if (adTypeOneofCase_ == 15) { + adTypeOneofCase_ = 0; + adTypeOneof_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * String value for ad type.
+     * 
+ * + * string ad_type_string = 15; + * + * @param value The bytes for adTypeString to set. + * @return This builder for chaining. + */ + public Builder setAdTypeStringBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + adTypeOneofCase_ = 15; + adTypeOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for ad format.
+     * 
+ * + * .google.ads.datamanager.v1.AdFormat ad_format = 16; + * + * @return Whether the adFormat field is set. + */ + @java.lang.Override + public boolean hasAdFormat() { + return adFormatOneofCase_ == 16; + } + + /** + * + * + *
+     * Enum value for ad format.
+     * 
+ * + * .google.ads.datamanager.v1.AdFormat ad_format = 16; + * + * @return The enum numeric value on the wire for adFormat. + */ + @java.lang.Override + public int getAdFormatValue() { + if (adFormatOneofCase_ == 16) { + return ((java.lang.Integer) adFormatOneof_).intValue(); + } + return 0; + } + + /** + * + * + *
+     * Enum value for ad format.
+     * 
+ * + * .google.ads.datamanager.v1.AdFormat ad_format = 16; + * + * @param value The enum numeric value on the wire for adFormat to set. + * @return This builder for chaining. + */ + public Builder setAdFormatValue(int value) { + adFormatOneofCase_ = 16; + adFormatOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for ad format.
+     * 
+ * + * .google.ads.datamanager.v1.AdFormat ad_format = 16; + * + * @return The adFormat. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.AdFormat getAdFormat() { + if (adFormatOneofCase_ == 16) { + com.google.ads.datamanager.v1.AdFormat result = + com.google.ads.datamanager.v1.AdFormat.forNumber((java.lang.Integer) adFormatOneof_); + return result == null ? com.google.ads.datamanager.v1.AdFormat.UNRECOGNIZED : result; + } + return com.google.ads.datamanager.v1.AdFormat.AD_FORMAT_UNSPECIFIED; + } + + /** + * + * + *
+     * Enum value for ad format.
+     * 
+ * + * .google.ads.datamanager.v1.AdFormat ad_format = 16; + * + * @param value The adFormat to set. + * @return This builder for chaining. + */ + public Builder setAdFormat(com.google.ads.datamanager.v1.AdFormat value) { + if (value == null) { + throw new NullPointerException(); + } + adFormatOneofCase_ = 16; + adFormatOneof_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for ad format.
+     * 
+ * + * .google.ads.datamanager.v1.AdFormat ad_format = 16; + * + * @return This builder for chaining. + */ + public Builder clearAdFormat() { + if (adFormatOneofCase_ == 16) { + adFormatOneofCase_ = 0; + adFormatOneof_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * String value for ad format.
+     * 
+ * + * string ad_format_string = 17; + * + * @return Whether the adFormatString field is set. + */ + @java.lang.Override + public boolean hasAdFormatString() { + return adFormatOneofCase_ == 17; + } + + /** + * + * + *
+     * String value for ad format.
+     * 
+ * + * string ad_format_string = 17; + * + * @return The adFormatString. + */ + @java.lang.Override + public java.lang.String getAdFormatString() { + java.lang.Object ref = ""; + if (adFormatOneofCase_ == 17) { + ref = adFormatOneof_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (adFormatOneofCase_ == 17) { + adFormatOneof_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * String value for ad format.
+     * 
+ * + * string ad_format_string = 17; + * + * @return The bytes for adFormatString. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdFormatStringBytes() { + java.lang.Object ref = ""; + if (adFormatOneofCase_ == 17) { + ref = adFormatOneof_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (adFormatOneofCase_ == 17) { + adFormatOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * String value for ad format.
+     * 
+ * + * string ad_format_string = 17; + * + * @param value The adFormatString to set. + * @return This builder for chaining. + */ + public Builder setAdFormatString(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + adFormatOneofCase_ = 17; + adFormatOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * String value for ad format.
+     * 
+ * + * string ad_format_string = 17; + * + * @return This builder for chaining. + */ + public Builder clearAdFormatString() { + if (adFormatOneofCase_ == 17) { + adFormatOneofCase_ = 0; + adFormatOneof_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * String value for ad format.
+     * 
+ * + * string ad_format_string = 17; + * + * @param value The bytes for adFormatString to set. + * @return This builder for chaining. + */ + public Builder setAdFormatStringBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + adFormatOneofCase_ = 17; + adFormatOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for ad placement.
+     * 
+ * + * .google.ads.datamanager.v1.AdPlacement ad_placement = 18; + * + * @return Whether the adPlacement field is set. + */ + @java.lang.Override + public boolean hasAdPlacement() { + return adPlacementOneofCase_ == 18; + } + + /** + * + * + *
+     * Enum value for ad placement.
+     * 
+ * + * .google.ads.datamanager.v1.AdPlacement ad_placement = 18; + * + * @return The enum numeric value on the wire for adPlacement. + */ + @java.lang.Override + public int getAdPlacementValue() { + if (adPlacementOneofCase_ == 18) { + return ((java.lang.Integer) adPlacementOneof_).intValue(); + } + return 0; + } + + /** + * + * + *
+     * Enum value for ad placement.
+     * 
+ * + * .google.ads.datamanager.v1.AdPlacement ad_placement = 18; + * + * @param value The enum numeric value on the wire for adPlacement to set. + * @return This builder for chaining. + */ + public Builder setAdPlacementValue(int value) { + adPlacementOneofCase_ = 18; + adPlacementOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for ad placement.
+     * 
+ * + * .google.ads.datamanager.v1.AdPlacement ad_placement = 18; + * + * @return The adPlacement. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.AdPlacement getAdPlacement() { + if (adPlacementOneofCase_ == 18) { + com.google.ads.datamanager.v1.AdPlacement result = + com.google.ads.datamanager.v1.AdPlacement.forNumber( + (java.lang.Integer) adPlacementOneof_); + return result == null ? com.google.ads.datamanager.v1.AdPlacement.UNRECOGNIZED : result; + } + return com.google.ads.datamanager.v1.AdPlacement.AD_PLACEMENT_UNSPECIFIED; + } + + /** + * + * + *
+     * Enum value for ad placement.
+     * 
+ * + * .google.ads.datamanager.v1.AdPlacement ad_placement = 18; + * + * @param value The adPlacement to set. + * @return This builder for chaining. + */ + public Builder setAdPlacement(com.google.ads.datamanager.v1.AdPlacement value) { + if (value == null) { + throw new NullPointerException(); + } + adPlacementOneofCase_ = 18; + adPlacementOneof_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for ad placement.
+     * 
+ * + * .google.ads.datamanager.v1.AdPlacement ad_placement = 18; + * + * @return This builder for chaining. + */ + public Builder clearAdPlacement() { + if (adPlacementOneofCase_ == 18) { + adPlacementOneofCase_ = 0; + adPlacementOneof_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * String value for ad placement.
+     * 
+ * + * string ad_placement_string = 19; + * + * @return Whether the adPlacementString field is set. + */ + @java.lang.Override + public boolean hasAdPlacementString() { + return adPlacementOneofCase_ == 19; + } + + /** + * + * + *
+     * String value for ad placement.
+     * 
+ * + * string ad_placement_string = 19; + * + * @return The adPlacementString. + */ + @java.lang.Override + public java.lang.String getAdPlacementString() { + java.lang.Object ref = ""; + if (adPlacementOneofCase_ == 19) { + ref = adPlacementOneof_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (adPlacementOneofCase_ == 19) { + adPlacementOneof_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * String value for ad placement.
+     * 
+ * + * string ad_placement_string = 19; + * + * @return The bytes for adPlacementString. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdPlacementStringBytes() { + java.lang.Object ref = ""; + if (adPlacementOneofCase_ == 19) { + ref = adPlacementOneof_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (adPlacementOneofCase_ == 19) { + adPlacementOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * String value for ad placement.
+     * 
+ * + * string ad_placement_string = 19; + * + * @param value The adPlacementString to set. + * @return This builder for chaining. + */ + public Builder setAdPlacementString(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + adPlacementOneofCase_ = 19; + adPlacementOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * String value for ad placement.
+     * 
+ * + * string ad_placement_string = 19; + * + * @return This builder for chaining. + */ + public Builder clearAdPlacementString() { + if (adPlacementOneofCase_ == 19) { + adPlacementOneofCase_ = 0; + adPlacementOneof_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * String value for ad placement.
+     * 
+ * + * string ad_placement_string = 19; + * + * @param value The bytes for adPlacementString to set. + * @return This builder for chaining. + */ + public Builder setAdPlacementStringBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + adPlacementOneofCase_ = 19; + adPlacementOneof_ = value; + onChanged(); + return this; + } + + private int adHeight_; + + /** + * + * + *
+     * Optional. The height of the ad in pixels.
+     * 
+ * + * int32 ad_height = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The adHeight. + */ + @java.lang.Override + public int getAdHeight() { + return adHeight_; + } + + /** + * + * + *
+     * Optional. The height of the ad in pixels.
+     * 
+ * + * int32 ad_height = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The adHeight to set. + * @return This builder for chaining. + */ + public Builder setAdHeight(int value) { + + adHeight_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The height of the ad in pixels.
+     * 
+ * + * int32 ad_height = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAdHeight() { + bitField0_ = (bitField0_ & ~0x00080000); + adHeight_ = 0; + onChanged(); + return this; + } + + private int adWidth_; + + /** + * + * + *
+     * Optional. The width of the ad in pixels.
+     * 
+ * + * int32 ad_width = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The adWidth. + */ + @java.lang.Override + public int getAdWidth() { + return adWidth_; + } + + /** + * + * + *
+     * Optional. The width of the ad in pixels.
+     * 
+ * + * int32 ad_width = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The adWidth to set. + * @return This builder for chaining. + */ + public Builder setAdWidth(int value) { + + adWidth_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The width of the ad in pixels.
+     * 
+ * + * int32 ad_width = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAdWidth() { + bitField0_ = (bitField0_ & ~0x00100000); + adWidth_ = 0; + onChanged(); + return this; + } + + private java.lang.Object regionCode_ = ""; + + /** + * + * + *
+     * Required. The ISO 3166-2 country plus subdivision.
+     * 
+ * + * string region_code = 22 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The regionCode. + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ISO 3166-2 country plus subdivision.
+     * 
+ * + * string region_code = 22 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for regionCode. + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ISO 3166-2 country plus subdivision.
+     * 
+ * + * string region_code = 22 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The regionCode to set. + * @return This builder for chaining. + */ + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + regionCode_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ISO 3166-2 country plus subdivision.
+     * 
+ * + * string region_code = 22 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegionCode() { + regionCode_ = getDefaultInstance().getRegionCode(); + bitField0_ = (bitField0_ & ~0x00200000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ISO 3166-2 country plus subdivision.
+     * 
+ * + * string region_code = 22 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for regionCode to set. + * @return This builder for chaining. + */ + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + regionCode_ = value; + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + private java.lang.Object source_ = ""; + + /** + * + * + *
+     * Required. The platform source of the ad, akin to the Google Analytics
+     * source.
+     * 
+ * + * string source = 23 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The source. + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The platform source of the ad, akin to the Google Analytics
+     * source.
+     * 
+ * + * string source = 23 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for source. + */ + public com.google.protobuf.ByteString getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The platform source of the ad, akin to the Google Analytics
+     * source.
+     * 
+ * + * string source = 23 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The platform source of the ad, akin to the Google Analytics
+     * source.
+     * 
+ * + * string source = 23 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00400000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The platform source of the ad, akin to the Google Analytics
+     * source.
+     * 
+ * + * string source = 23 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for source to set. + * @return This builder for chaining. + */ + public Builder setSourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + source_ = value; + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + private java.lang.Object medium_ = ""; + + /** + * + * + *
+     * Required. The medium of the ad, akin to the Google Analytics medium.
+     * 
+ * + * string medium = 24 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The medium. + */ + public java.lang.String getMedium() { + java.lang.Object ref = medium_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + medium_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The medium of the ad, akin to the Google Analytics medium.
+     * 
+ * + * string medium = 24 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for medium. + */ + public com.google.protobuf.ByteString getMediumBytes() { + java.lang.Object ref = medium_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + medium_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The medium of the ad, akin to the Google Analytics medium.
+     * 
+ * + * string medium = 24 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The medium to set. + * @return This builder for chaining. + */ + public Builder setMedium(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + medium_ = value; + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The medium of the ad, akin to the Google Analytics medium.
+     * 
+ * + * string medium = 24 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMedium() { + medium_ = getDefaultInstance().getMedium(); + bitField0_ = (bitField0_ & ~0x00800000); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The medium of the ad, akin to the Google Analytics medium.
+     * 
+ * + * string medium = 24 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for medium to set. + * @return This builder for chaining. + */ + public Builder setMediumBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + medium_ = value; + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for targeting type.
+     * 
+ * + * .google.ads.datamanager.v1.TargetingType targeting_type = 25; + * + * @return Whether the targetingType field is set. + */ + @java.lang.Override + public boolean hasTargetingType() { + return targetingTypeOneofCase_ == 25; + } + + /** + * + * + *
+     * Enum value for targeting type.
+     * 
+ * + * .google.ads.datamanager.v1.TargetingType targeting_type = 25; + * + * @return The enum numeric value on the wire for targetingType. + */ + @java.lang.Override + public int getTargetingTypeValue() { + if (targetingTypeOneofCase_ == 25) { + return ((java.lang.Integer) targetingTypeOneof_).intValue(); + } + return 0; + } + + /** + * + * + *
+     * Enum value for targeting type.
+     * 
+ * + * .google.ads.datamanager.v1.TargetingType targeting_type = 25; + * + * @param value The enum numeric value on the wire for targetingType to set. + * @return This builder for chaining. + */ + public Builder setTargetingTypeValue(int value) { + targetingTypeOneofCase_ = 25; + targetingTypeOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for targeting type.
+     * 
+ * + * .google.ads.datamanager.v1.TargetingType targeting_type = 25; + * + * @return The targetingType. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.TargetingType getTargetingType() { + if (targetingTypeOneofCase_ == 25) { + com.google.ads.datamanager.v1.TargetingType result = + com.google.ads.datamanager.v1.TargetingType.forNumber( + (java.lang.Integer) targetingTypeOneof_); + return result == null ? com.google.ads.datamanager.v1.TargetingType.UNRECOGNIZED : result; + } + return com.google.ads.datamanager.v1.TargetingType.TARGETING_TYPE_UNSPECIFIED; + } + + /** + * + * + *
+     * Enum value for targeting type.
+     * 
+ * + * .google.ads.datamanager.v1.TargetingType targeting_type = 25; + * + * @param value The targetingType to set. + * @return This builder for chaining. + */ + public Builder setTargetingType(com.google.ads.datamanager.v1.TargetingType value) { + if (value == null) { + throw new NullPointerException(); + } + targetingTypeOneofCase_ = 25; + targetingTypeOneof_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for targeting type.
+     * 
+ * + * .google.ads.datamanager.v1.TargetingType targeting_type = 25; + * + * @return This builder for chaining. + */ + public Builder clearTargetingType() { + if (targetingTypeOneofCase_ == 25) { + targetingTypeOneofCase_ = 0; + targetingTypeOneof_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * String value for targeting type.
+     * 
+ * + * string targeting_type_string = 26; + * + * @return Whether the targetingTypeString field is set. + */ + @java.lang.Override + public boolean hasTargetingTypeString() { + return targetingTypeOneofCase_ == 26; + } + + /** + * + * + *
+     * String value for targeting type.
+     * 
+ * + * string targeting_type_string = 26; + * + * @return The targetingTypeString. + */ + @java.lang.Override + public java.lang.String getTargetingTypeString() { + java.lang.Object ref = ""; + if (targetingTypeOneofCase_ == 26) { + ref = targetingTypeOneof_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetingTypeOneofCase_ == 26) { + targetingTypeOneof_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * String value for targeting type.
+     * 
+ * + * string targeting_type_string = 26; + * + * @return The bytes for targetingTypeString. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetingTypeStringBytes() { + java.lang.Object ref = ""; + if (targetingTypeOneofCase_ == 26) { + ref = targetingTypeOneof_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetingTypeOneofCase_ == 26) { + targetingTypeOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * String value for targeting type.
+     * 
+ * + * string targeting_type_string = 26; + * + * @param value The targetingTypeString to set. + * @return This builder for chaining. + */ + public Builder setTargetingTypeString(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetingTypeOneofCase_ = 26; + targetingTypeOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * String value for targeting type.
+     * 
+ * + * string targeting_type_string = 26; + * + * @return This builder for chaining. + */ + public Builder clearTargetingTypeString() { + if (targetingTypeOneofCase_ == 26) { + targetingTypeOneofCase_ = 0; + targetingTypeOneof_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * String value for targeting type.
+     * 
+ * + * string targeting_type_string = 26; + * + * @param value The bytes for targetingTypeString to set. + * @return This builder for chaining. + */ + public Builder setTargetingTypeStringBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetingTypeOneofCase_ = 26; + targetingTypeOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for platform type.
+     * 
+ * + * .google.ads.datamanager.v1.PlatformType platform_type = 27; + * + * @return Whether the platformType field is set. + */ + @java.lang.Override + public boolean hasPlatformType() { + return platformTypeOneofCase_ == 27; + } + + /** + * + * + *
+     * Enum value for platform type.
+     * 
+ * + * .google.ads.datamanager.v1.PlatformType platform_type = 27; + * + * @return The enum numeric value on the wire for platformType. + */ + @java.lang.Override + public int getPlatformTypeValue() { + if (platformTypeOneofCase_ == 27) { + return ((java.lang.Integer) platformTypeOneof_).intValue(); + } + return 0; + } + + /** + * + * + *
+     * Enum value for platform type.
+     * 
+ * + * .google.ads.datamanager.v1.PlatformType platform_type = 27; + * + * @param value The enum numeric value on the wire for platformType to set. + * @return This builder for chaining. + */ + public Builder setPlatformTypeValue(int value) { + platformTypeOneofCase_ = 27; + platformTypeOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for platform type.
+     * 
+ * + * .google.ads.datamanager.v1.PlatformType platform_type = 27; + * + * @return The platformType. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.PlatformType getPlatformType() { + if (platformTypeOneofCase_ == 27) { + com.google.ads.datamanager.v1.PlatformType result = + com.google.ads.datamanager.v1.PlatformType.forNumber( + (java.lang.Integer) platformTypeOneof_); + return result == null ? com.google.ads.datamanager.v1.PlatformType.UNRECOGNIZED : result; + } + return com.google.ads.datamanager.v1.PlatformType.PLATFORM_TYPE_UNSPECIFIED; + } + + /** + * + * + *
+     * Enum value for platform type.
+     * 
+ * + * .google.ads.datamanager.v1.PlatformType platform_type = 27; + * + * @param value The platformType to set. + * @return This builder for chaining. + */ + public Builder setPlatformType(com.google.ads.datamanager.v1.PlatformType value) { + if (value == null) { + throw new NullPointerException(); + } + platformTypeOneofCase_ = 27; + platformTypeOneof_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for platform type.
+     * 
+ * + * .google.ads.datamanager.v1.PlatformType platform_type = 27; + * + * @return This builder for chaining. + */ + public Builder clearPlatformType() { + if (platformTypeOneofCase_ == 27) { + platformTypeOneofCase_ = 0; + platformTypeOneof_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * String value for platform type.
+     * 
+ * + * string platform_type_string = 28; + * + * @return Whether the platformTypeString field is set. + */ + @java.lang.Override + public boolean hasPlatformTypeString() { + return platformTypeOneofCase_ == 28; + } + + /** + * + * + *
+     * String value for platform type.
+     * 
+ * + * string platform_type_string = 28; + * + * @return The platformTypeString. + */ + @java.lang.Override + public java.lang.String getPlatformTypeString() { + java.lang.Object ref = ""; + if (platformTypeOneofCase_ == 28) { + ref = platformTypeOneof_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (platformTypeOneofCase_ == 28) { + platformTypeOneof_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * String value for platform type.
+     * 
+ * + * string platform_type_string = 28; + * + * @return The bytes for platformTypeString. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPlatformTypeStringBytes() { + java.lang.Object ref = ""; + if (platformTypeOneofCase_ == 28) { + ref = platformTypeOneof_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (platformTypeOneofCase_ == 28) { + platformTypeOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * String value for platform type.
+     * 
+ * + * string platform_type_string = 28; + * + * @param value The platformTypeString to set. + * @return This builder for chaining. + */ + public Builder setPlatformTypeString(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + platformTypeOneofCase_ = 28; + platformTypeOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * String value for platform type.
+     * 
+ * + * string platform_type_string = 28; + * + * @return This builder for chaining. + */ + public Builder clearPlatformTypeString() { + if (platformTypeOneofCase_ == 28) { + platformTypeOneofCase_ = 0; + platformTypeOneof_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * String value for platform type.
+     * 
+ * + * string platform_type_string = 28; + * + * @param value The bytes for platformTypeString to set. + * @return This builder for chaining. + */ + public Builder setPlatformTypeStringBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + platformTypeOneofCase_ = 28; + platformTypeOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for platform.
+     * 
+ * + * .google.ads.datamanager.v1.Platform platform = 29; + * + * @return Whether the platform field is set. + */ + @java.lang.Override + public boolean hasPlatform() { + return platformOneofCase_ == 29; + } + + /** + * + * + *
+     * Enum value for platform.
+     * 
+ * + * .google.ads.datamanager.v1.Platform platform = 29; + * + * @return The enum numeric value on the wire for platform. + */ + @java.lang.Override + public int getPlatformValue() { + if (platformOneofCase_ == 29) { + return ((java.lang.Integer) platformOneof_).intValue(); + } + return 0; + } + + /** + * + * + *
+     * Enum value for platform.
+     * 
+ * + * .google.ads.datamanager.v1.Platform platform = 29; + * + * @param value The enum numeric value on the wire for platform to set. + * @return This builder for chaining. + */ + public Builder setPlatformValue(int value) { + platformOneofCase_ = 29; + platformOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for platform.
+     * 
+ * + * .google.ads.datamanager.v1.Platform platform = 29; + * + * @return The platform. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.Platform getPlatform() { + if (platformOneofCase_ == 29) { + com.google.ads.datamanager.v1.Platform result = + com.google.ads.datamanager.v1.Platform.forNumber((java.lang.Integer) platformOneof_); + return result == null ? com.google.ads.datamanager.v1.Platform.UNRECOGNIZED : result; + } + return com.google.ads.datamanager.v1.Platform.PLATFORM_UNSPECIFIED; + } + + /** + * + * + *
+     * Enum value for platform.
+     * 
+ * + * .google.ads.datamanager.v1.Platform platform = 29; + * + * @param value The platform to set. + * @return This builder for chaining. + */ + public Builder setPlatform(com.google.ads.datamanager.v1.Platform value) { + if (value == null) { + throw new NullPointerException(); + } + platformOneofCase_ = 29; + platformOneof_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Enum value for platform.
+     * 
+ * + * .google.ads.datamanager.v1.Platform platform = 29; + * + * @return This builder for chaining. + */ + public Builder clearPlatform() { + if (platformOneofCase_ == 29) { + platformOneofCase_ = 0; + platformOneof_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * String value for platform.
+     * 
+ * + * string platform_string = 30; + * + * @return Whether the platformString field is set. + */ + @java.lang.Override + public boolean hasPlatformString() { + return platformOneofCase_ == 30; + } + + /** + * + * + *
+     * String value for platform.
+     * 
+ * + * string platform_string = 30; + * + * @return The platformString. + */ + @java.lang.Override + public java.lang.String getPlatformString() { + java.lang.Object ref = ""; + if (platformOneofCase_ == 30) { + ref = platformOneof_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (platformOneofCase_ == 30) { + platformOneof_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * String value for platform.
+     * 
+ * + * string platform_string = 30; + * + * @return The bytes for platformString. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPlatformStringBytes() { + java.lang.Object ref = ""; + if (platformOneofCase_ == 30) { + ref = platformOneof_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (platformOneofCase_ == 30) { + platformOneof_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * String value for platform.
+     * 
+ * + * string platform_string = 30; + * + * @param value The platformString to set. + * @return This builder for chaining. + */ + public Builder setPlatformString(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + platformOneofCase_ = 30; + platformOneof_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * String value for platform.
+     * 
+ * + * string platform_string = 30; + * + * @return This builder for chaining. + */ + public Builder clearPlatformString() { + if (platformOneofCase_ == 30) { + platformOneofCase_ = 0; + platformOneof_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * String value for platform.
+     * 
+ * + * string platform_string = 30; + * + * @param value The bytes for platformString to set. + * @return This builder for chaining. + */ + public Builder setPlatformStringBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + platformOneofCase_ = 30; + platformOneof_ = value; + onChanged(); + return this; + } + + private int attributionHint_ = 0; + + /** + * + * + *
+     * Optional. The partner-assumed attribution status for this ad event.
+     *
+     * This acts only as a signal for how the partner assumed attribution played
+     * out, and does not force an end result in final reports.
+     * 
+ * + * + * .google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for attributionHint. + */ + @java.lang.Override + public int getAttributionHintValue() { + return attributionHint_; + } + + /** + * + * + *
+     * Optional. The partner-assumed attribution status for this ad event.
+     *
+     * This acts only as a signal for how the partner assumed attribution played
+     * out, and does not force an end result in final reports.
+     * 
+ * + * + * .google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for attributionHint to set. + * @return This builder for chaining. + */ + public Builder setAttributionHintValue(int value) { + attributionHint_ = value; + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The partner-assumed attribution status for this ad event.
+     *
+     * This acts only as a signal for how the partner assumed attribution played
+     * out, and does not force an end result in final reports.
+     * 
+ * + * + * .google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributionHint. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.AttributionHint getAttributionHint() { + com.google.ads.datamanager.v1.AttributionHint result = + com.google.ads.datamanager.v1.AttributionHint.forNumber(attributionHint_); + return result == null ? com.google.ads.datamanager.v1.AttributionHint.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. The partner-assumed attribution status for this ad event.
+     *
+     * This acts only as a signal for how the partner assumed attribution played
+     * out, and does not force an end result in final reports.
+     * 
+ * + * + * .google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The attributionHint to set. + * @return This builder for chaining. + */ + public Builder setAttributionHint(com.google.ads.datamanager.v1.AttributionHint value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x40000000; + attributionHint_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The partner-assumed attribution status for this ad event.
+     *
+     * This acts only as a signal for how the partner assumed attribution played
+     * out, and does not force an end result in final reports.
+     * 
+ * + * + * .google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAttributionHint() { + bitField0_ = (bitField0_ & ~0x40000000); + attributionHint_ = 0; + onChanged(); + return this; + } + + private com.google.ads.datamanager.v1.ViewabilityInfo viewabilityInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.ViewabilityInfo, + com.google.ads.datamanager.v1.ViewabilityInfo.Builder, + com.google.ads.datamanager.v1.ViewabilityInfoOrBuilder> + viewabilityInfoBuilder_; + + /** + * + * + *
+     * Required. Details of the viewability of the ad served.
+     * 
+ * + * + * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the viewabilityInfo field is set. + */ + public boolean hasViewabilityInfo() { + return ((bitField0_ & 0x80000000) != 0); + } + + /** + * + * + *
+     * Required. Details of the viewability of the ad served.
+     * 
+ * + * + * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The viewabilityInfo. + */ + public com.google.ads.datamanager.v1.ViewabilityInfo getViewabilityInfo() { + if (viewabilityInfoBuilder_ == null) { + return viewabilityInfo_ == null + ? com.google.ads.datamanager.v1.ViewabilityInfo.getDefaultInstance() + : viewabilityInfo_; + } else { + return viewabilityInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Details of the viewability of the ad served.
+     * 
+ * + * + * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setViewabilityInfo(com.google.ads.datamanager.v1.ViewabilityInfo value) { + if (viewabilityInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + viewabilityInfo_ = value; + } else { + viewabilityInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Details of the viewability of the ad served.
+     * 
+ * + * + * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setViewabilityInfo( + com.google.ads.datamanager.v1.ViewabilityInfo.Builder builderForValue) { + if (viewabilityInfoBuilder_ == null) { + viewabilityInfo_ = builderForValue.build(); + } else { + viewabilityInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Details of the viewability of the ad served.
+     * 
+ * + * + * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeViewabilityInfo(com.google.ads.datamanager.v1.ViewabilityInfo value) { + if (viewabilityInfoBuilder_ == null) { + if (((bitField0_ & 0x80000000) != 0) + && viewabilityInfo_ != null + && viewabilityInfo_ + != com.google.ads.datamanager.v1.ViewabilityInfo.getDefaultInstance()) { + getViewabilityInfoBuilder().mergeFrom(value); + } else { + viewabilityInfo_ = value; + } + } else { + viewabilityInfoBuilder_.mergeFrom(value); + } + if (viewabilityInfo_ != null) { + bitField0_ |= 0x80000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Details of the viewability of the ad served.
+     * 
+ * + * + * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearViewabilityInfo() { + bitField0_ = (bitField0_ & ~0x80000000); + viewabilityInfo_ = null; + if (viewabilityInfoBuilder_ != null) { + viewabilityInfoBuilder_.dispose(); + viewabilityInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Details of the viewability of the ad served.
+     * 
+ * + * + * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.datamanager.v1.ViewabilityInfo.Builder getViewabilityInfoBuilder() { + bitField0_ |= 0x80000000; + onChanged(); + return internalGetViewabilityInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Details of the viewability of the ad served.
+     * 
+ * + * + * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.datamanager.v1.ViewabilityInfoOrBuilder getViewabilityInfoOrBuilder() { + if (viewabilityInfoBuilder_ != null) { + return viewabilityInfoBuilder_.getMessageOrBuilder(); + } else { + return viewabilityInfo_ == null + ? com.google.ads.datamanager.v1.ViewabilityInfo.getDefaultInstance() + : viewabilityInfo_; + } + } + + /** + * + * + *
+     * Required. Details of the viewability of the ad served.
+     * 
+ * + * + * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.ViewabilityInfo, + com.google.ads.datamanager.v1.ViewabilityInfo.Builder, + com.google.ads.datamanager.v1.ViewabilityInfoOrBuilder> + internalGetViewabilityInfoFieldBuilder() { + if (viewabilityInfoBuilder_ == null) { + viewabilityInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.ViewabilityInfo, + com.google.ads.datamanager.v1.ViewabilityInfo.Builder, + com.google.ads.datamanager.v1.ViewabilityInfoOrBuilder>( + getViewabilityInfo(), getParentForChildren(), isClean()); + viewabilityInfo_ = null; + } + return viewabilityInfoBuilder_; + } + + private boolean measurementAllowed_; + + /** + * + * + *
+     * Optional. Represents if the row is allowed to be used for measurement
+     * purposes, as governed by applicable privacy laws within regional
+     * jurisdiction.
+     * 
+ * + * optional bool measurement_allowed = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the measurementAllowed field is set. + */ + @java.lang.Override + public boolean hasMeasurementAllowed() { + return ((bitField1_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Represents if the row is allowed to be used for measurement
+     * purposes, as governed by applicable privacy laws within regional
+     * jurisdiction.
+     * 
+ * + * optional bool measurement_allowed = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The measurementAllowed. + */ + @java.lang.Override + public boolean getMeasurementAllowed() { + return measurementAllowed_; + } + + /** + * + * + *
+     * Optional. Represents if the row is allowed to be used for measurement
+     * purposes, as governed by applicable privacy laws within regional
+     * jurisdiction.
+     * 
+ * + * optional bool measurement_allowed = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The measurementAllowed to set. + * @return This builder for chaining. + */ + public Builder setMeasurementAllowed(boolean value) { + + measurementAllowed_ = value; + bitField1_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Represents if the row is allowed to be used for measurement
+     * purposes, as governed by applicable privacy laws within regional
+     * jurisdiction.
+     * 
+ * + * optional bool measurement_allowed = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMeasurementAllowed() { + bitField1_ = (bitField1_ & ~0x00000001); + measurementAllowed_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.AdEvent) + } + + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.AdEvent) + private static final com.google.ads.datamanager.v1.AdEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.datamanager.v1.AdEvent(); + } + + public static com.google.ads.datamanager.v1.AdEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.ads.datamanager.v1.AdEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventOrBuilder.java new file mode 100644 index 000000000000..2e459242b3ed --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventOrBuilder.java @@ -0,0 +1,1171 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/ad_event.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +@com.google.protobuf.Generated +public interface AdEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.AdEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ID of the advertiser for the ad event.
+   *
+   * This must match the ID sent in the linking flow.
+   * 
+ * + * string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The advertiserId. + */ + java.lang.String getAdvertiserId(); + + /** + * + * + *
+   * Required. The ID of the advertiser for the ad event.
+   *
+   * This must match the ID sent in the linking flow.
+   * 
+ * + * string advertiser_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for advertiserId. + */ + com.google.protobuf.ByteString getAdvertiserIdBytes(); + + /** + * + * + *
+   * Required. The type of the event.
+   * 
+ * + * + * .google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for eventType. + */ + int getEventTypeValue(); + + /** + * + * + *
+   * Required. The type of the event.
+   * 
+ * + * + * .google.ads.datamanager.v1.AdEvent.EventType event_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The eventType. + */ + com.google.ads.datamanager.v1.AdEvent.EventType getEventType(); + + /** + * + * + *
+   * Enum value for event subtype.
+   * 
+ * + * .google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3; + * + * @return Whether the eventSubtype field is set. + */ + boolean hasEventSubtype(); + + /** + * + * + *
+   * Enum value for event subtype.
+   * 
+ * + * .google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3; + * + * @return The enum numeric value on the wire for eventSubtype. + */ + int getEventSubtypeValue(); + + /** + * + * + *
+   * Enum value for event subtype.
+   * 
+ * + * .google.ads.datamanager.v1.AdEvent.EventSubtype event_subtype = 3; + * + * @return The eventSubtype. + */ + com.google.ads.datamanager.v1.AdEvent.EventSubtype getEventSubtype(); + + /** + * + * + *
+   * String value for event subtype.
+   * 
+ * + * string event_subtype_string = 4; + * + * @return Whether the eventSubtypeString field is set. + */ + boolean hasEventSubtypeString(); + + /** + * + * + *
+   * String value for event subtype.
+   * 
+ * + * string event_subtype_string = 4; + * + * @return The eventSubtypeString. + */ + java.lang.String getEventSubtypeString(); + + /** + * + * + *
+   * String value for event subtype.
+   * 
+ * + * string event_subtype_string = 4; + * + * @return The bytes for eventSubtypeString. + */ + com.google.protobuf.ByteString getEventSubtypeStringBytes(); + + /** + * + * + *
+   * Required. The time the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the timestamp field is set. + */ + boolean hasTimestamp(); + + /** + * + * + *
+   * Required. The time the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The timestamp. + */ + com.google.protobuf.Timestamp getTimestamp(); + + /** + * + * + *
+   * Required. The time the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp timestamp = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); + + /** + * + * + *
+   * Optional. An ID created and managed by the caller that uniquely identifies
+   * this event.
+   *
+   * Required if you want to deduplicate ad events that are included
+   * in multiple requests. Otherwise, this field is optional.
+   * 
+ * + * string event_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The eventId. + */ + java.lang.String getEventId(); + + /** + * + * + *
+   * Optional. An ID created and managed by the caller that uniquely identifies
+   * this event.
+   *
+   * Required if you want to deduplicate ad events that are included
+   * in multiple requests. Otherwise, this field is optional.
+   * 
+ * + * string event_id = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for eventId. + */ + com.google.protobuf.ByteString getEventIdBytes(); + + /** + * + * + *
+   * Optional. Multiple pieces of user-provided data, representing the user the
+   * event is associated with.
+   *
+   * It is possible to provide multiple instances of the same type of data (e.g.
+   * email address). The more data provided, the more likely a match will be
+   * found.
+   * 
+ * + * + * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userData field is set. + */ + boolean hasUserData(); + + /** + * + * + *
+   * Optional. Multiple pieces of user-provided data, representing the user the
+   * event is associated with.
+   *
+   * It is possible to provide multiple instances of the same type of data (e.g.
+   * email address). The more data provided, the more likely a match will be
+   * found.
+   * 
+ * + * + * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userData. + */ + com.google.ads.datamanager.v1.UserData getUserData(); + + /** + * + * + *
+   * Optional. Multiple pieces of user-provided data, representing the user the
+   * event is associated with.
+   *
+   * It is possible to provide multiple instances of the same type of data (e.g.
+   * email address). The more data provided, the more likely a match will be
+   * found.
+   * 
+ * + * + * .google.ads.datamanager.v1.UserData user_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.datamanager.v1.UserDataOrBuilder getUserDataOrBuilder(); + + /** + * + * + *
+   * Optional. Information gathered about the device being used when the ad
+   * event happened.
+   * 
+ * + * + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the deviceInfo field is set. + */ + boolean hasDeviceInfo(); + + /** + * + * + *
+   * Optional. Information gathered about the device being used when the ad
+   * event happened.
+   * 
+ * + * + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deviceInfo. + */ + com.google.ads.datamanager.v1.DeviceInfo getDeviceInfo(); + + /** + * + * + *
+   * Optional. Information gathered about the device being used when the ad
+   * event happened.
+   * 
+ * + * + * .google.ads.datamanager.v1.DeviceInfo device_info = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.datamanager.v1.DeviceInfoOrBuilder getDeviceInfoOrBuilder(); + + /** + * + * + *
+   * Optional. The device ID of the device that the ad was served to.
+   * 
+ * + * string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mobileDeviceId. + */ + java.lang.String getMobileDeviceId(); + + /** + * + * + *
+   * Optional. The device ID of the device that the ad was served to.
+   * 
+ * + * string mobile_device_id = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for mobileDeviceId. + */ + com.google.protobuf.ByteString getMobileDeviceIdBytes(); + + /** + * + * + *
+   * Required. The ID of the associated campaign.
+   * 
+ * + * string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The campaignId. + */ + java.lang.String getCampaignId(); + + /** + * + * + *
+   * Required. The ID of the associated campaign.
+   * 
+ * + * string campaign_id = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for campaignId. + */ + com.google.protobuf.ByteString getCampaignIdBytes(); + + /** + * + * + *
+   * Required. The name of the associated campaign.
+   * 
+ * + * string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The campaignName. + */ + java.lang.String getCampaignName(); + + /** + * + * + *
+   * Required. The name of the associated campaign.
+   * 
+ * + * string campaign_name = 11 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for campaignName. + */ + com.google.protobuf.ByteString getCampaignNameBytes(); + + /** + * + * + *
+   * Optional. The ID of the associated ad group.
+   * 
+ * + * string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The adGroupId. + */ + java.lang.String getAdGroupId(); + + /** + * + * + *
+   * Optional. The ID of the associated ad group.
+   * 
+ * + * string ad_group_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for adGroupId. + */ + com.google.protobuf.ByteString getAdGroupIdBytes(); + + /** + * + * + *
+   * Optional. The ID of the associated ad within the group.
+   * 
+ * + * string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The adId. + */ + java.lang.String getAdId(); + + /** + * + * + *
+   * Optional. The ID of the associated ad within the group.
+   * 
+ * + * string ad_id = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for adId. + */ + com.google.protobuf.ByteString getAdIdBytes(); + + /** + * + * + *
+   * Enum value for ad type.
+   * 
+ * + * .google.ads.datamanager.v1.AdType ad_type = 14; + * + * @return Whether the adType field is set. + */ + boolean hasAdType(); + + /** + * + * + *
+   * Enum value for ad type.
+   * 
+ * + * .google.ads.datamanager.v1.AdType ad_type = 14; + * + * @return The enum numeric value on the wire for adType. + */ + int getAdTypeValue(); + + /** + * + * + *
+   * Enum value for ad type.
+   * 
+ * + * .google.ads.datamanager.v1.AdType ad_type = 14; + * + * @return The adType. + */ + com.google.ads.datamanager.v1.AdType getAdType(); + + /** + * + * + *
+   * String value for ad type.
+   * 
+ * + * string ad_type_string = 15; + * + * @return Whether the adTypeString field is set. + */ + boolean hasAdTypeString(); + + /** + * + * + *
+   * String value for ad type.
+   * 
+ * + * string ad_type_string = 15; + * + * @return The adTypeString. + */ + java.lang.String getAdTypeString(); + + /** + * + * + *
+   * String value for ad type.
+   * 
+ * + * string ad_type_string = 15; + * + * @return The bytes for adTypeString. + */ + com.google.protobuf.ByteString getAdTypeStringBytes(); + + /** + * + * + *
+   * Enum value for ad format.
+   * 
+ * + * .google.ads.datamanager.v1.AdFormat ad_format = 16; + * + * @return Whether the adFormat field is set. + */ + boolean hasAdFormat(); + + /** + * + * + *
+   * Enum value for ad format.
+   * 
+ * + * .google.ads.datamanager.v1.AdFormat ad_format = 16; + * + * @return The enum numeric value on the wire for adFormat. + */ + int getAdFormatValue(); + + /** + * + * + *
+   * Enum value for ad format.
+   * 
+ * + * .google.ads.datamanager.v1.AdFormat ad_format = 16; + * + * @return The adFormat. + */ + com.google.ads.datamanager.v1.AdFormat getAdFormat(); + + /** + * + * + *
+   * String value for ad format.
+   * 
+ * + * string ad_format_string = 17; + * + * @return Whether the adFormatString field is set. + */ + boolean hasAdFormatString(); + + /** + * + * + *
+   * String value for ad format.
+   * 
+ * + * string ad_format_string = 17; + * + * @return The adFormatString. + */ + java.lang.String getAdFormatString(); + + /** + * + * + *
+   * String value for ad format.
+   * 
+ * + * string ad_format_string = 17; + * + * @return The bytes for adFormatString. + */ + com.google.protobuf.ByteString getAdFormatStringBytes(); + + /** + * + * + *
+   * Enum value for ad placement.
+   * 
+ * + * .google.ads.datamanager.v1.AdPlacement ad_placement = 18; + * + * @return Whether the adPlacement field is set. + */ + boolean hasAdPlacement(); + + /** + * + * + *
+   * Enum value for ad placement.
+   * 
+ * + * .google.ads.datamanager.v1.AdPlacement ad_placement = 18; + * + * @return The enum numeric value on the wire for adPlacement. + */ + int getAdPlacementValue(); + + /** + * + * + *
+   * Enum value for ad placement.
+   * 
+ * + * .google.ads.datamanager.v1.AdPlacement ad_placement = 18; + * + * @return The adPlacement. + */ + com.google.ads.datamanager.v1.AdPlacement getAdPlacement(); + + /** + * + * + *
+   * String value for ad placement.
+   * 
+ * + * string ad_placement_string = 19; + * + * @return Whether the adPlacementString field is set. + */ + boolean hasAdPlacementString(); + + /** + * + * + *
+   * String value for ad placement.
+   * 
+ * + * string ad_placement_string = 19; + * + * @return The adPlacementString. + */ + java.lang.String getAdPlacementString(); + + /** + * + * + *
+   * String value for ad placement.
+   * 
+ * + * string ad_placement_string = 19; + * + * @return The bytes for adPlacementString. + */ + com.google.protobuf.ByteString getAdPlacementStringBytes(); + + /** + * + * + *
+   * Optional. The height of the ad in pixels.
+   * 
+ * + * int32 ad_height = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The adHeight. + */ + int getAdHeight(); + + /** + * + * + *
+   * Optional. The width of the ad in pixels.
+   * 
+ * + * int32 ad_width = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The adWidth. + */ + int getAdWidth(); + + /** + * + * + *
+   * Required. The ISO 3166-2 country plus subdivision.
+   * 
+ * + * string region_code = 22 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The regionCode. + */ + java.lang.String getRegionCode(); + + /** + * + * + *
+   * Required. The ISO 3166-2 country plus subdivision.
+   * 
+ * + * string region_code = 22 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for regionCode. + */ + com.google.protobuf.ByteString getRegionCodeBytes(); + + /** + * + * + *
+   * Required. The platform source of the ad, akin to the Google Analytics
+   * source.
+   * 
+ * + * string source = 23 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The source. + */ + java.lang.String getSource(); + + /** + * + * + *
+   * Required. The platform source of the ad, akin to the Google Analytics
+   * source.
+   * 
+ * + * string source = 23 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for source. + */ + com.google.protobuf.ByteString getSourceBytes(); + + /** + * + * + *
+   * Required. The medium of the ad, akin to the Google Analytics medium.
+   * 
+ * + * string medium = 24 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The medium. + */ + java.lang.String getMedium(); + + /** + * + * + *
+   * Required. The medium of the ad, akin to the Google Analytics medium.
+   * 
+ * + * string medium = 24 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for medium. + */ + com.google.protobuf.ByteString getMediumBytes(); + + /** + * + * + *
+   * Enum value for targeting type.
+   * 
+ * + * .google.ads.datamanager.v1.TargetingType targeting_type = 25; + * + * @return Whether the targetingType field is set. + */ + boolean hasTargetingType(); + + /** + * + * + *
+   * Enum value for targeting type.
+   * 
+ * + * .google.ads.datamanager.v1.TargetingType targeting_type = 25; + * + * @return The enum numeric value on the wire for targetingType. + */ + int getTargetingTypeValue(); + + /** + * + * + *
+   * Enum value for targeting type.
+   * 
+ * + * .google.ads.datamanager.v1.TargetingType targeting_type = 25; + * + * @return The targetingType. + */ + com.google.ads.datamanager.v1.TargetingType getTargetingType(); + + /** + * + * + *
+   * String value for targeting type.
+   * 
+ * + * string targeting_type_string = 26; + * + * @return Whether the targetingTypeString field is set. + */ + boolean hasTargetingTypeString(); + + /** + * + * + *
+   * String value for targeting type.
+   * 
+ * + * string targeting_type_string = 26; + * + * @return The targetingTypeString. + */ + java.lang.String getTargetingTypeString(); + + /** + * + * + *
+   * String value for targeting type.
+   * 
+ * + * string targeting_type_string = 26; + * + * @return The bytes for targetingTypeString. + */ + com.google.protobuf.ByteString getTargetingTypeStringBytes(); + + /** + * + * + *
+   * Enum value for platform type.
+   * 
+ * + * .google.ads.datamanager.v1.PlatformType platform_type = 27; + * + * @return Whether the platformType field is set. + */ + boolean hasPlatformType(); + + /** + * + * + *
+   * Enum value for platform type.
+   * 
+ * + * .google.ads.datamanager.v1.PlatformType platform_type = 27; + * + * @return The enum numeric value on the wire for platformType. + */ + int getPlatformTypeValue(); + + /** + * + * + *
+   * Enum value for platform type.
+   * 
+ * + * .google.ads.datamanager.v1.PlatformType platform_type = 27; + * + * @return The platformType. + */ + com.google.ads.datamanager.v1.PlatformType getPlatformType(); + + /** + * + * + *
+   * String value for platform type.
+   * 
+ * + * string platform_type_string = 28; + * + * @return Whether the platformTypeString field is set. + */ + boolean hasPlatformTypeString(); + + /** + * + * + *
+   * String value for platform type.
+   * 
+ * + * string platform_type_string = 28; + * + * @return The platformTypeString. + */ + java.lang.String getPlatformTypeString(); + + /** + * + * + *
+   * String value for platform type.
+   * 
+ * + * string platform_type_string = 28; + * + * @return The bytes for platformTypeString. + */ + com.google.protobuf.ByteString getPlatformTypeStringBytes(); + + /** + * + * + *
+   * Enum value for platform.
+   * 
+ * + * .google.ads.datamanager.v1.Platform platform = 29; + * + * @return Whether the platform field is set. + */ + boolean hasPlatform(); + + /** + * + * + *
+   * Enum value for platform.
+   * 
+ * + * .google.ads.datamanager.v1.Platform platform = 29; + * + * @return The enum numeric value on the wire for platform. + */ + int getPlatformValue(); + + /** + * + * + *
+   * Enum value for platform.
+   * 
+ * + * .google.ads.datamanager.v1.Platform platform = 29; + * + * @return The platform. + */ + com.google.ads.datamanager.v1.Platform getPlatform(); + + /** + * + * + *
+   * String value for platform.
+   * 
+ * + * string platform_string = 30; + * + * @return Whether the platformString field is set. + */ + boolean hasPlatformString(); + + /** + * + * + *
+   * String value for platform.
+   * 
+ * + * string platform_string = 30; + * + * @return The platformString. + */ + java.lang.String getPlatformString(); + + /** + * + * + *
+   * String value for platform.
+   * 
+ * + * string platform_string = 30; + * + * @return The bytes for platformString. + */ + com.google.protobuf.ByteString getPlatformStringBytes(); + + /** + * + * + *
+   * Optional. The partner-assumed attribution status for this ad event.
+   *
+   * This acts only as a signal for how the partner assumed attribution played
+   * out, and does not force an end result in final reports.
+   * 
+ * + * + * .google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for attributionHint. + */ + int getAttributionHintValue(); + + /** + * + * + *
+   * Optional. The partner-assumed attribution status for this ad event.
+   *
+   * This acts only as a signal for how the partner assumed attribution played
+   * out, and does not force an end result in final reports.
+   * 
+ * + * + * .google.ads.datamanager.v1.AttributionHint attribution_hint = 31 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributionHint. + */ + com.google.ads.datamanager.v1.AttributionHint getAttributionHint(); + + /** + * + * + *
+   * Required. Details of the viewability of the ad served.
+   * 
+ * + * + * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the viewabilityInfo field is set. + */ + boolean hasViewabilityInfo(); + + /** + * + * + *
+   * Required. Details of the viewability of the ad served.
+   * 
+ * + * + * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The viewabilityInfo. + */ + com.google.ads.datamanager.v1.ViewabilityInfo getViewabilityInfo(); + + /** + * + * + *
+   * Required. Details of the viewability of the ad served.
+   * 
+ * + * + * .google.ads.datamanager.v1.ViewabilityInfo viewability_info = 32 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.datamanager.v1.ViewabilityInfoOrBuilder getViewabilityInfoOrBuilder(); + + /** + * + * + *
+   * Optional. Represents if the row is allowed to be used for measurement
+   * purposes, as governed by applicable privacy laws within regional
+   * jurisdiction.
+   * 
+ * + * optional bool measurement_allowed = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the measurementAllowed field is set. + */ + boolean hasMeasurementAllowed(); + + /** + * + * + *
+   * Optional. Represents if the row is allowed to be used for measurement
+   * purposes, as governed by applicable privacy laws within regional
+   * jurisdiction.
+   * 
+ * + * optional bool measurement_allowed = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The measurementAllowed. + */ + boolean getMeasurementAllowed(); + + com.google.ads.datamanager.v1.AdEvent.EventSubtypeOneofCase getEventSubtypeOneofCase(); + + com.google.ads.datamanager.v1.AdEvent.AdTypeOneofCase getAdTypeOneofCase(); + + com.google.ads.datamanager.v1.AdEvent.AdFormatOneofCase getAdFormatOneofCase(); + + com.google.ads.datamanager.v1.AdEvent.AdPlacementOneofCase getAdPlacementOneofCase(); + + com.google.ads.datamanager.v1.AdEvent.TargetingTypeOneofCase getTargetingTypeOneofCase(); + + com.google.ads.datamanager.v1.AdEvent.PlatformTypeOneofCase getPlatformTypeOneofCase(); + + com.google.ads.datamanager.v1.AdEvent.PlatformOneofCase getPlatformOneofCase(); +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventProto.java new file mode 100644 index 000000000000..c4af4c7c9a18 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdEventProto.java @@ -0,0 +1,270 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/ad_event.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +@com.google.protobuf.Generated +public final class AdEventProto extends com.google.protobuf.GeneratedFile { + private AdEventProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AdEventProto"); + } + + 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_ads_datamanager_v1_AdEvent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_ads_datamanager_v1_AdEvent_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/ads/datamanager/v1/ad_event.pro" + + "to\022\031google.ads.datamanager.v1\032+google/ad" + + "s/datamanager/v1/device_info.proto\032)google/ads/datamanager/v1/user_data.proto\0320g" + + "oogle/ads/datamanager/v1/viewability_inf" + + "o.proto\032\037google/api/field_behavior.proto\032\037google/protobuf/timestamp.proto\"\240\016\n" + + "\007AdEvent\022\032\n\r" + + "advertiser_id\030\001 \001(\tB\003\340A\002\022E\n\n" + + "event_type\030\002" + + " \001(\0162,.google.ads.datamanager.v1.AdEvent.EventTypeB\003\340A\002\022H\n\r" + + "event_subtype\030\003" + + " \001(\0162/.google.ads.datamanager.v1.AdEvent.EventSubtypeH\000\022\036\n" + + "\024event_subtype_string\030\004 \001(\tH\000\0222\n" + + "\ttimestamp\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022\025\n" + + "\010event_id\030\006 \001(\tB\003\340A\001\022;\n" + + "\tuser_data\030\007" + + " \001(\0132#.google.ads.datamanager.v1.UserDataB\003\340A\001\022?\n" + + "\013device_info\030\010" + + " \001(\0132%.google.ads.datamanager.v1.DeviceInfoB\003\340A\001\022\035\n" + + "\020mobile_device_id\030\t \001(\tB\003\340A\001\022\030\n" + + "\013campaign_id\030\n" + + " \001(\tB\003\340A\002\022\032\n\r" + + "campaign_name\030\013 \001(\tB\003\340A\002\022\030\n" + + "\013ad_group_id\030\014 \001(\tB\003\340A\001\022\022\n" + + "\005ad_id\030\r" + + " \001(\tB\003\340A\001\0224\n" + + "\007ad_type\030\016 \001(\0162!.google.ads.datamanager.v1.AdTypeH\001\022\030\n" + + "\016ad_type_string\030\017 \001(\tH\001\0228\n" + + "\tad_format\030\020 \001(\0162#.google.ads.datamanager.v1.AdFormatH\002\022\032\n" + + "\020ad_format_string\030\021 \001(\tH\002\022>\n" + + "\014ad_placement\030\022" + + " \001(\0162&.google.ads.datamanager.v1.AdPlacementH\003\022\035\n" + + "\023ad_placement_string\030\023 \001(\tH\003\022\026\n" + + "\tad_height\030\024 \001(\005B\003\340A\001\022\025\n" + + "\010ad_width\030\025 \001(\005B\003\340A\001\022\030\n" + + "\013region_code\030\026 \001(\tB\003\340A\002\022\023\n" + + "\006source\030\027 \001(\tB\003\340A\002\022\023\n" + + "\006medium\030\030 \001(\tB\003\340A\002\022B\n" + + "\016targeting_type\030\031" + + " \001(\0162(.google.ads.datamanager.v1.TargetingTypeH\004\022\037\n" + + "\025targeting_type_string\030\032 \001(\tH\004\022@\n\r" + + "platform_type\030\033 \001" + + "(\0162\'.google.ads.datamanager.v1.PlatformTypeH\005\022\036\n" + + "\024platform_type_string\030\034 \001(\tH\005\0227\n" + + "\010platform\030\035 \001(\0162#.google.ads.datamanager.v1.PlatformH\006\022\031\n" + + "\017platform_string\030\036 \001(\tH\006\022I\n" + + "\020attribution_hint\030\037" + + " \001(\0162*.google.ads.datamanager.v1.AttributionHintB\003\340A\001\022I\n" + + "\020viewability_info\030 " + + " \001(\0132*.google.ads.datamanager.v1.ViewabilityInfoB\003\340A\002\022%\n" + + "\023measurement_allowed\030! \001(\010B\003\340A\001H\007\210\001\001\"R\n" + + "\tEventType\022\032\n" + + "\026EVENT_TYPE_UNSPECIFIED\020\000\022\023\n" + + "\017EVENT_TYPE_VIEW\020\001\022\024\n" + + "\020EVENT_TYPE_CLICK\020\002\"\255\001\n" + + "\014EventSubtype\022\035\n" + + "\031EVENT_SUBTYPE_UNSPECIFIED\020\000\022\034\n" + + "\030EVENT_SUBTYPE_IMPRESSION\020\001\022\036\n" + + "\032EVENT_SUBTYPE_ENGAGED_VIEW\020\002\022\036\n" + + "\032EVENT_SUBTYPE_ONSITE_CLICK\020\003\022 \n" + + "\034EVENT_SUBTYPE_OUTBOUND_CLICK\020\004B\025\n" + + "\023event_subtype_oneofB\017\n\r" + + "ad_type_oneofB\021\n" + + "\017ad_format_oneofB\024\n" + + "\022ad_placement_oneofB\026\n" + + "\024targeting_type_oneofB\025\n" + + "\023platform_type_oneofB\020\n" + + "\016platform_oneofB\026\n" + + "\024_measurement_allowed*\253\001\n" + + "\006AdType\022\027\n" + + "\023AD_TYPE_UNSPECIFIED\020\000\022\023\n" + + "\017AD_TYPE_DISPLAY\020\001\022\020\n" + + "\014AD_TYPE_TEXT\020\002\022\021\n\r" + + "AD_TYPE_IMAGE\020\003\022\026\n" + + "\022AD_TYPE_RICH_MEDIA\020\004\022\020\n" + + "\014AD_TYPE_HTML\020\005\022\021\n\r" + + "AD_TYPE_AUDIO\020\006\022\021\n\r" + + "AD_TYPE_VIDEO\020\007*\337\003\n" + + "\010AdFormat\022\031\n" + + "\025AD_FORMAT_UNSPECIFIED\020\000\022\020\n" + + "\014AD_FORMAT_AR\020\001\022\023\n" + + "\017AD_FORMAT_AUDIO\020\002\022\024\n" + + "\020AD_FORMAT_BANNER\020\003\022\024\n" + + "\020AD_FORMAT_BUMPER\020\004\022\026\n" + + "\022AD_FORMAT_CAROUSEL\020\005\022\030\n" + + "\024AD_FORMAT_COLLECTION\020\006\022\023\n" + + "\017AD_FORMAT_IMAGE\020\007\022\031\n" + + "\025AD_FORMAT_INTERACTIVE\020\010\022\032\n" + + "\026AD_FORMAT_INTERSTITIAL\020\t\022\025\n" + + "\021AD_FORMAT_IN_FEED\020\n" + + "\022\027\n" + + "\023AD_FORMAT_IN_STREAM\020\013\022!\n" + + "\035AD_FORMAT_IN_STREAM_SKIPPABLE\020\014\022%\n" + + "!AD_FORMAT_IN_STREAM_NON_SKIPPABLE\020\r" + + "\022\024\n" + + "\020AD_FORMAT_NATIVE\020\016\022\024\n" + + "\020AD_FORMAT_SHORTS\020\017\022\023\n" + + "\017AD_FORMAT_STORY\020\020\022\027\n" + + "\023AD_FORMAT_SPONSORED\020\021\022\023\n" + + "\017AD_FORMAT_VIDEO\020\022*\217\002\n" + + "\013AdPlacement\022\034\n" + + "\030AD_PLACEMENT_UNSPECIFIED\020\000\022\031\n" + + "\025AD_PLACEMENT_DISCOVER\020\001\022\025\n" + + "\021AD_PLACEMENT_FEED\020\002\022\027\n" + + "\023AD_PLACEMENT_FOOTER\020\003\022\027\n" + + "\023AD_PLACEMENT_HEADER\020\004\022\025\n" + + "\021AD_PLACEMENT_HOME\020\005\022\033\n" + + "\027AD_PLACEMENT_IN_CONTENT\020\006\022\031\n" + + "\025AD_PLACEMENT_PROMOTED\020\007\022\027\n" + + "\023AD_PLACEMENT_SEARCH\020\010\022\026\n" + + "\022AD_PLACEMENT_STORY\020\t*\237\002\n\r" + + "TargetingType\022\036\n" + + "\032TARGETING_TYPE_UNSPECIFIED\020\000\022\033\n" + + "\027TARGETING_TYPE_AUDIENCE\020\001\022\035\n" + + "\031TARGETING_TYPE_CONTEXTUAL\020\002\022\036\n" + + "\032TARGETING_TYPE_DEMOGRAPHIC\020\003\022\031\n" + + "\025TARGETING_TYPE_DEVICE\020\004\022\026\n" + + "\022TARGETING_TYPE_GEO\020\005\022\033\n" + + "\027TARGETING_TYPE_INTEREST\020\006\022\"\n" + + "\036TARGETING_TYPE_PURCHASE_INTENT\020\007\022\036\n" + + "\032TARGETING_TYPE_REMARKETING\020\010*\254\001\n" + + "\014PlatformType\022\035\n" + + "\031PLATFORM_TYPE_UNSPECIFIED\020\000\022\030\n" + + "\024PLATFORM_TYPE_MOBILE\020\001\022\031\n" + + "\025PLATFORM_TYPE_DESKTOP\020\002\022\025\n" + + "\021PLATFORM_TYPE_CTV\020\003\022\027\n" + + "\023PLATFORM_TYPE_PHONE\020\004\022\030\n" + + "\024PLATFORM_TYPE_TABLET\020\005*^\n" + + "\010Platform\022\030\n" + + "\024PLATFORM_UNSPECIFIED\020\000\022\020\n" + + "\014PLATFORM_IOS\020\001\022\024\n" + + "\020PLATFORM_ANDROID\020\002\022\020\n" + + "\014PLATFORM_WEB\020\003*w\n" + + "\017AttributionHint\022 \n" + + "\034ATTRIBUTION_HINT_UNSPECIFIED\020\000\022\036\n" + + "\032ATTRIBUTION_HINT_CONVERTED\020\001\022\"\n" + + "\036ATTRIBUTION_HINT_NOT_CONVERTED\020\002B\311\001\n" + + "\035com.google.ads.datamanager.v1B\014AdEventProto" + + "P\001ZAcloud.google.com/go/datamanager/apiv" + + "1/datamanagerpb;datamanagerpb\252\002\031Google.A" + + "ds.DataManager.V1\312\002\031Google\\Ads\\DataManag" + + "er\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.datamanager.v1.DeviceInfoProto.getDescriptor(), + com.google.ads.datamanager.v1.UserDataProto.getDescriptor(), + com.google.ads.datamanager.v1.ViewabilityInfoProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_ads_datamanager_v1_AdEvent_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_ads_datamanager_v1_AdEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_ads_datamanager_v1_AdEvent_descriptor, + new java.lang.String[] { + "AdvertiserId", + "EventType", + "EventSubtype", + "EventSubtypeString", + "Timestamp", + "EventId", + "UserData", + "DeviceInfo", + "MobileDeviceId", + "CampaignId", + "CampaignName", + "AdGroupId", + "AdId", + "AdType", + "AdTypeString", + "AdFormat", + "AdFormatString", + "AdPlacement", + "AdPlacementString", + "AdHeight", + "AdWidth", + "RegionCode", + "Source", + "Medium", + "TargetingType", + "TargetingTypeString", + "PlatformType", + "PlatformTypeString", + "Platform", + "PlatformString", + "AttributionHint", + "ViewabilityInfo", + "MeasurementAllowed", + "EventSubtypeOneof", + "AdTypeOneof", + "AdFormatOneof", + "AdPlacementOneof", + "TargetingTypeOneof", + "PlatformTypeOneof", + "PlatformOneof", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.ads.datamanager.v1.DeviceInfoProto.getDescriptor(); + com.google.ads.datamanager.v1.UserDataProto.getDescriptor(); + com.google.ads.datamanager.v1.ViewabilityInfoProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdFormat.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdFormat.java new file mode 100644 index 000000000000..a582aac4dac3 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdFormat.java @@ -0,0 +1,559 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/ad_event.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * The format of the ad served.
+ * 
+ * + * Protobuf enum {@code google.ads.datamanager.v1.AdFormat} + */ +@com.google.protobuf.Generated +public enum AdFormat implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified ad format.
+   * 
+ * + * AD_FORMAT_UNSPECIFIED = 0; + */ + AD_FORMAT_UNSPECIFIED(0), + /** + * + * + *
+   * AR ad.
+   * 
+ * + * AD_FORMAT_AR = 1; + */ + AD_FORMAT_AR(1), + /** + * + * + *
+   * Audio ad.
+   * 
+ * + * AD_FORMAT_AUDIO = 2; + */ + AD_FORMAT_AUDIO(2), + /** + * + * + *
+   * Banner ad.
+   * 
+ * + * AD_FORMAT_BANNER = 3; + */ + AD_FORMAT_BANNER(3), + /** + * + * + *
+   * Bumper ad.
+   * 
+ * + * AD_FORMAT_BUMPER = 4; + */ + AD_FORMAT_BUMPER(4), + /** + * + * + *
+   * Carousel ad.
+   * 
+ * + * AD_FORMAT_CAROUSEL = 5; + */ + AD_FORMAT_CAROUSEL(5), + /** + * + * + *
+   * Collection ad.
+   * 
+ * + * AD_FORMAT_COLLECTION = 6; + */ + AD_FORMAT_COLLECTION(6), + /** + * + * + *
+   * Image ad.
+   * 
+ * + * AD_FORMAT_IMAGE = 7; + */ + AD_FORMAT_IMAGE(7), + /** + * + * + *
+   * Interactive ad.
+   * 
+ * + * AD_FORMAT_INTERACTIVE = 8; + */ + AD_FORMAT_INTERACTIVE(8), + /** + * + * + *
+   * Interstitial ad.
+   * 
+ * + * AD_FORMAT_INTERSTITIAL = 9; + */ + AD_FORMAT_INTERSTITIAL(9), + /** + * + * + *
+   * In-feed ad.
+   * 
+ * + * AD_FORMAT_IN_FEED = 10; + */ + AD_FORMAT_IN_FEED(10), + /** + * + * + *
+   * In-stream ad.
+   * 
+ * + * AD_FORMAT_IN_STREAM = 11; + */ + AD_FORMAT_IN_STREAM(11), + /** + * + * + *
+   * In-stream skippable ad.
+   * 
+ * + * AD_FORMAT_IN_STREAM_SKIPPABLE = 12; + */ + AD_FORMAT_IN_STREAM_SKIPPABLE(12), + /** + * + * + *
+   * In-stream non-skippable ad.
+   * 
+ * + * AD_FORMAT_IN_STREAM_NON_SKIPPABLE = 13; + */ + AD_FORMAT_IN_STREAM_NON_SKIPPABLE(13), + /** + * + * + *
+   * Native ad.
+   * 
+ * + * AD_FORMAT_NATIVE = 14; + */ + AD_FORMAT_NATIVE(14), + /** + * + * + *
+   * Shorts ad.
+   * 
+ * + * AD_FORMAT_SHORTS = 15; + */ + AD_FORMAT_SHORTS(15), + /** + * + * + *
+   * Story ad.
+   * 
+ * + * AD_FORMAT_STORY = 16; + */ + AD_FORMAT_STORY(16), + /** + * + * + *
+   * Sponsored ad.
+   * 
+ * + * AD_FORMAT_SPONSORED = 17; + */ + AD_FORMAT_SPONSORED(17), + /** + * + * + *
+   * Video ad.
+   * 
+ * + * AD_FORMAT_VIDEO = 18; + */ + AD_FORMAT_VIDEO(18), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AdFormat"); + } + + /** + * + * + *
+   * Unspecified ad format.
+   * 
+ * + * AD_FORMAT_UNSPECIFIED = 0; + */ + public static final int AD_FORMAT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * AR ad.
+   * 
+ * + * AD_FORMAT_AR = 1; + */ + public static final int AD_FORMAT_AR_VALUE = 1; + + /** + * + * + *
+   * Audio ad.
+   * 
+ * + * AD_FORMAT_AUDIO = 2; + */ + public static final int AD_FORMAT_AUDIO_VALUE = 2; + + /** + * + * + *
+   * Banner ad.
+   * 
+ * + * AD_FORMAT_BANNER = 3; + */ + public static final int AD_FORMAT_BANNER_VALUE = 3; + + /** + * + * + *
+   * Bumper ad.
+   * 
+ * + * AD_FORMAT_BUMPER = 4; + */ + public static final int AD_FORMAT_BUMPER_VALUE = 4; + + /** + * + * + *
+   * Carousel ad.
+   * 
+ * + * AD_FORMAT_CAROUSEL = 5; + */ + public static final int AD_FORMAT_CAROUSEL_VALUE = 5; + + /** + * + * + *
+   * Collection ad.
+   * 
+ * + * AD_FORMAT_COLLECTION = 6; + */ + public static final int AD_FORMAT_COLLECTION_VALUE = 6; + + /** + * + * + *
+   * Image ad.
+   * 
+ * + * AD_FORMAT_IMAGE = 7; + */ + public static final int AD_FORMAT_IMAGE_VALUE = 7; + + /** + * + * + *
+   * Interactive ad.
+   * 
+ * + * AD_FORMAT_INTERACTIVE = 8; + */ + public static final int AD_FORMAT_INTERACTIVE_VALUE = 8; + + /** + * + * + *
+   * Interstitial ad.
+   * 
+ * + * AD_FORMAT_INTERSTITIAL = 9; + */ + public static final int AD_FORMAT_INTERSTITIAL_VALUE = 9; + + /** + * + * + *
+   * In-feed ad.
+   * 
+ * + * AD_FORMAT_IN_FEED = 10; + */ + public static final int AD_FORMAT_IN_FEED_VALUE = 10; + + /** + * + * + *
+   * In-stream ad.
+   * 
+ * + * AD_FORMAT_IN_STREAM = 11; + */ + public static final int AD_FORMAT_IN_STREAM_VALUE = 11; + + /** + * + * + *
+   * In-stream skippable ad.
+   * 
+ * + * AD_FORMAT_IN_STREAM_SKIPPABLE = 12; + */ + public static final int AD_FORMAT_IN_STREAM_SKIPPABLE_VALUE = 12; + + /** + * + * + *
+   * In-stream non-skippable ad.
+   * 
+ * + * AD_FORMAT_IN_STREAM_NON_SKIPPABLE = 13; + */ + public static final int AD_FORMAT_IN_STREAM_NON_SKIPPABLE_VALUE = 13; + + /** + * + * + *
+   * Native ad.
+   * 
+ * + * AD_FORMAT_NATIVE = 14; + */ + public static final int AD_FORMAT_NATIVE_VALUE = 14; + + /** + * + * + *
+   * Shorts ad.
+   * 
+ * + * AD_FORMAT_SHORTS = 15; + */ + public static final int AD_FORMAT_SHORTS_VALUE = 15; + + /** + * + * + *
+   * Story ad.
+   * 
+ * + * AD_FORMAT_STORY = 16; + */ + public static final int AD_FORMAT_STORY_VALUE = 16; + + /** + * + * + *
+   * Sponsored ad.
+   * 
+ * + * AD_FORMAT_SPONSORED = 17; + */ + public static final int AD_FORMAT_SPONSORED_VALUE = 17; + + /** + * + * + *
+   * Video ad.
+   * 
+ * + * AD_FORMAT_VIDEO = 18; + */ + public static final int AD_FORMAT_VIDEO_VALUE = 18; + + 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 AdFormat 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 AdFormat forNumber(int value) { + switch (value) { + case 0: + return AD_FORMAT_UNSPECIFIED; + case 1: + return AD_FORMAT_AR; + case 2: + return AD_FORMAT_AUDIO; + case 3: + return AD_FORMAT_BANNER; + case 4: + return AD_FORMAT_BUMPER; + case 5: + return AD_FORMAT_CAROUSEL; + case 6: + return AD_FORMAT_COLLECTION; + case 7: + return AD_FORMAT_IMAGE; + case 8: + return AD_FORMAT_INTERACTIVE; + case 9: + return AD_FORMAT_INTERSTITIAL; + case 10: + return AD_FORMAT_IN_FEED; + case 11: + return AD_FORMAT_IN_STREAM; + case 12: + return AD_FORMAT_IN_STREAM_SKIPPABLE; + case 13: + return AD_FORMAT_IN_STREAM_NON_SKIPPABLE; + case 14: + return AD_FORMAT_NATIVE; + case 15: + return AD_FORMAT_SHORTS; + case 16: + return AD_FORMAT_STORY; + case 17: + return AD_FORMAT_SPONSORED; + case 18: + return AD_FORMAT_VIDEO; + 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 AdFormat findValueByNumber(int number) { + return AdFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEventProto.getDescriptor().getEnumTypes().get(1); + } + + private static final AdFormat[] VALUES = values(); + + public static AdFormat 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 AdFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.AdFormat) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdPlacement.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdPlacement.java new file mode 100644 index 000000000000..a2e459867d9c --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdPlacement.java @@ -0,0 +1,352 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/ad_event.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * The placement of the ad served.
+ * 
+ * + * Protobuf enum {@code google.ads.datamanager.v1.AdPlacement} + */ +@com.google.protobuf.Generated +public enum AdPlacement implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified ad placement.
+   * 
+ * + * AD_PLACEMENT_UNSPECIFIED = 0; + */ + AD_PLACEMENT_UNSPECIFIED(0), + /** + * + * + *
+   * Discover placement.
+   * 
+ * + * AD_PLACEMENT_DISCOVER = 1; + */ + AD_PLACEMENT_DISCOVER(1), + /** + * + * + *
+   * Feed placement.
+   * 
+ * + * AD_PLACEMENT_FEED = 2; + */ + AD_PLACEMENT_FEED(2), + /** + * + * + *
+   * Footer placement.
+   * 
+ * + * AD_PLACEMENT_FOOTER = 3; + */ + AD_PLACEMENT_FOOTER(3), + /** + * + * + *
+   * Header placement.
+   * 
+ * + * AD_PLACEMENT_HEADER = 4; + */ + AD_PLACEMENT_HEADER(4), + /** + * + * + *
+   * Home placement.
+   * 
+ * + * AD_PLACEMENT_HOME = 5; + */ + AD_PLACEMENT_HOME(5), + /** + * + * + *
+   * In-content placement.
+   * 
+ * + * AD_PLACEMENT_IN_CONTENT = 6; + */ + AD_PLACEMENT_IN_CONTENT(6), + /** + * + * + *
+   * Promoted placement.
+   * 
+ * + * AD_PLACEMENT_PROMOTED = 7; + */ + AD_PLACEMENT_PROMOTED(7), + /** + * + * + *
+   * Search placement.
+   * 
+ * + * AD_PLACEMENT_SEARCH = 8; + */ + AD_PLACEMENT_SEARCH(8), + /** + * + * + *
+   * Story placement.
+   * 
+ * + * AD_PLACEMENT_STORY = 9; + */ + AD_PLACEMENT_STORY(9), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AdPlacement"); + } + + /** + * + * + *
+   * Unspecified ad placement.
+   * 
+ * + * AD_PLACEMENT_UNSPECIFIED = 0; + */ + public static final int AD_PLACEMENT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Discover placement.
+   * 
+ * + * AD_PLACEMENT_DISCOVER = 1; + */ + public static final int AD_PLACEMENT_DISCOVER_VALUE = 1; + + /** + * + * + *
+   * Feed placement.
+   * 
+ * + * AD_PLACEMENT_FEED = 2; + */ + public static final int AD_PLACEMENT_FEED_VALUE = 2; + + /** + * + * + *
+   * Footer placement.
+   * 
+ * + * AD_PLACEMENT_FOOTER = 3; + */ + public static final int AD_PLACEMENT_FOOTER_VALUE = 3; + + /** + * + * + *
+   * Header placement.
+   * 
+ * + * AD_PLACEMENT_HEADER = 4; + */ + public static final int AD_PLACEMENT_HEADER_VALUE = 4; + + /** + * + * + *
+   * Home placement.
+   * 
+ * + * AD_PLACEMENT_HOME = 5; + */ + public static final int AD_PLACEMENT_HOME_VALUE = 5; + + /** + * + * + *
+   * In-content placement.
+   * 
+ * + * AD_PLACEMENT_IN_CONTENT = 6; + */ + public static final int AD_PLACEMENT_IN_CONTENT_VALUE = 6; + + /** + * + * + *
+   * Promoted placement.
+   * 
+ * + * AD_PLACEMENT_PROMOTED = 7; + */ + public static final int AD_PLACEMENT_PROMOTED_VALUE = 7; + + /** + * + * + *
+   * Search placement.
+   * 
+ * + * AD_PLACEMENT_SEARCH = 8; + */ + public static final int AD_PLACEMENT_SEARCH_VALUE = 8; + + /** + * + * + *
+   * Story placement.
+   * 
+ * + * AD_PLACEMENT_STORY = 9; + */ + public static final int AD_PLACEMENT_STORY_VALUE = 9; + + 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 AdPlacement 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 AdPlacement forNumber(int value) { + switch (value) { + case 0: + return AD_PLACEMENT_UNSPECIFIED; + case 1: + return AD_PLACEMENT_DISCOVER; + case 2: + return AD_PLACEMENT_FEED; + case 3: + return AD_PLACEMENT_FOOTER; + case 4: + return AD_PLACEMENT_HEADER; + case 5: + return AD_PLACEMENT_HOME; + case 6: + return AD_PLACEMENT_IN_CONTENT; + case 7: + return AD_PLACEMENT_PROMOTED; + case 8: + return AD_PLACEMENT_SEARCH; + case 9: + return AD_PLACEMENT_STORY; + 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 AdPlacement findValueByNumber(int number) { + return AdPlacement.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEventProto.getDescriptor().getEnumTypes().get(2); + } + + private static final AdPlacement[] VALUES = values(); + + public static AdPlacement 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 AdPlacement(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.AdPlacement) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdType.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdType.java new file mode 100644 index 000000000000..8986c9978274 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AdType.java @@ -0,0 +1,306 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/ad_event.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * The type of the ad served.
+ * 
+ * + * Protobuf enum {@code google.ads.datamanager.v1.AdType} + */ +@com.google.protobuf.Generated +public enum AdType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified ad type.
+   * 
+ * + * AD_TYPE_UNSPECIFIED = 0; + */ + AD_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Display ad.
+   * 
+ * + * AD_TYPE_DISPLAY = 1; + */ + AD_TYPE_DISPLAY(1), + /** + * + * + *
+   * Text ad.
+   * 
+ * + * AD_TYPE_TEXT = 2; + */ + AD_TYPE_TEXT(2), + /** + * + * + *
+   * Image ad.
+   * 
+ * + * AD_TYPE_IMAGE = 3; + */ + AD_TYPE_IMAGE(3), + /** + * + * + *
+   * Rich media ad.
+   * 
+ * + * AD_TYPE_RICH_MEDIA = 4; + */ + AD_TYPE_RICH_MEDIA(4), + /** + * + * + *
+   * HTML ad.
+   * 
+ * + * AD_TYPE_HTML = 5; + */ + AD_TYPE_HTML(5), + /** + * + * + *
+   * Audio ad.
+   * 
+ * + * AD_TYPE_AUDIO = 6; + */ + AD_TYPE_AUDIO(6), + /** + * + * + *
+   * Video ad.
+   * 
+ * + * AD_TYPE_VIDEO = 7; + */ + AD_TYPE_VIDEO(7), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AdType"); + } + + /** + * + * + *
+   * Unspecified ad type.
+   * 
+ * + * AD_TYPE_UNSPECIFIED = 0; + */ + public static final int AD_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Display ad.
+   * 
+ * + * AD_TYPE_DISPLAY = 1; + */ + public static final int AD_TYPE_DISPLAY_VALUE = 1; + + /** + * + * + *
+   * Text ad.
+   * 
+ * + * AD_TYPE_TEXT = 2; + */ + public static final int AD_TYPE_TEXT_VALUE = 2; + + /** + * + * + *
+   * Image ad.
+   * 
+ * + * AD_TYPE_IMAGE = 3; + */ + public static final int AD_TYPE_IMAGE_VALUE = 3; + + /** + * + * + *
+   * Rich media ad.
+   * 
+ * + * AD_TYPE_RICH_MEDIA = 4; + */ + public static final int AD_TYPE_RICH_MEDIA_VALUE = 4; + + /** + * + * + *
+   * HTML ad.
+   * 
+ * + * AD_TYPE_HTML = 5; + */ + public static final int AD_TYPE_HTML_VALUE = 5; + + /** + * + * + *
+   * Audio ad.
+   * 
+ * + * AD_TYPE_AUDIO = 6; + */ + public static final int AD_TYPE_AUDIO_VALUE = 6; + + /** + * + * + *
+   * Video ad.
+   * 
+ * + * AD_TYPE_VIDEO = 7; + */ + public static final int AD_TYPE_VIDEO_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 AdType 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 AdType forNumber(int value) { + switch (value) { + case 0: + return AD_TYPE_UNSPECIFIED; + case 1: + return AD_TYPE_DISPLAY; + case 2: + return AD_TYPE_TEXT; + case 3: + return AD_TYPE_IMAGE; + case 4: + return AD_TYPE_RICH_MEDIA; + case 5: + return AD_TYPE_HTML; + case 6: + return AD_TYPE_AUDIO; + case 7: + return AD_TYPE_VIDEO; + 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 AdType findValueByNumber(int number) { + return AdType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEventProto.getDescriptor().getEnumTypes().get(0); + } + + private static final AdType[] VALUES = values(); + + public static AdType 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 AdType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.AdType) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AttributionHint.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AttributionHint.java new file mode 100644 index 000000000000..8314f6bf3c3d --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/AttributionHint.java @@ -0,0 +1,191 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/ad_event.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * The partner-assumed attribution status for this ad event.
+ * 
+ * + * Protobuf enum {@code google.ads.datamanager.v1.AttributionHint} + */ +@com.google.protobuf.Generated +public enum AttributionHint implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unknown attribution status.
+   * 
+ * + * ATTRIBUTION_HINT_UNSPECIFIED = 0; + */ + ATTRIBUTION_HINT_UNSPECIFIED(0), + /** + * + * + *
+   * Converted status.
+   * 
+ * + * ATTRIBUTION_HINT_CONVERTED = 1; + */ + ATTRIBUTION_HINT_CONVERTED(1), + /** + * + * + *
+   * Not converted status.
+   * 
+ * + * ATTRIBUTION_HINT_NOT_CONVERTED = 2; + */ + ATTRIBUTION_HINT_NOT_CONVERTED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AttributionHint"); + } + + /** + * + * + *
+   * Unknown attribution status.
+   * 
+ * + * ATTRIBUTION_HINT_UNSPECIFIED = 0; + */ + public static final int ATTRIBUTION_HINT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Converted status.
+   * 
+ * + * ATTRIBUTION_HINT_CONVERTED = 1; + */ + public static final int ATTRIBUTION_HINT_CONVERTED_VALUE = 1; + + /** + * + * + *
+   * Not converted status.
+   * 
+ * + * ATTRIBUTION_HINT_NOT_CONVERTED = 2; + */ + public static final int ATTRIBUTION_HINT_NOT_CONVERTED_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 AttributionHint 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 AttributionHint forNumber(int value) { + switch (value) { + case 0: + return ATTRIBUTION_HINT_UNSPECIFIED; + case 1: + return ATTRIBUTION_HINT_CONVERTED; + case 2: + return ATTRIBUTION_HINT_NOT_CONVERTED; + 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 AttributionHint findValueByNumber(int number) { + return AttributionHint.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEventProto.getDescriptor().getEnumTypes().get(6); + } + + private static final AttributionHint[] VALUES = values(); + + public static AttributionHint 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 AttributionHint(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.AttributionHint) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CoordinatorKeyInfo.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CoordinatorKeyInfo.java new file mode 100644 index 000000000000..67deae3a3a8a --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CoordinatorKeyInfo.java @@ -0,0 +1,596 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/encryption_info.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * Information about the coordinator key.
+ * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.CoordinatorKeyInfo} + */ +@com.google.protobuf.Generated +public final class CoordinatorKeyInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.CoordinatorKeyInfo) + CoordinatorKeyInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CoordinatorKeyInfo"); + } + + // Use CoordinatorKeyInfo.newBuilder() to construct. + private CoordinatorKeyInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CoordinatorKeyInfo() { + keyId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.EncryptionInfoProto + .internal_static_google_ads_datamanager_v1_CoordinatorKeyInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.EncryptionInfoProto + .internal_static_google_ads_datamanager_v1_CoordinatorKeyInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.CoordinatorKeyInfo.class, + com.google.ads.datamanager.v1.CoordinatorKeyInfo.Builder.class); + } + + public static final int KEY_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object keyId_ = ""; + + /** + * + * + *
+   * Required. The ID of the chosen coordinator key.
+   * 
+ * + * string key_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The keyId. + */ + @java.lang.Override + public java.lang.String getKeyId() { + java.lang.Object ref = keyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID of the chosen coordinator key.
+   * 
+ * + * string key_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for keyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyIdBytes() { + java.lang.Object ref = keyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(keyId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, keyId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(keyId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, keyId_); + } + 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.ads.datamanager.v1.CoordinatorKeyInfo)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.CoordinatorKeyInfo other = + (com.google.ads.datamanager.v1.CoordinatorKeyInfo) obj; + + if (!getKeyId().equals(other.getKeyId())) 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) + KEY_ID_FIELD_NUMBER; + hash = (53 * hash) + getKeyId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.CoordinatorKeyInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.datamanager.v1.CoordinatorKeyInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Information about the coordinator key.
+   * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.CoordinatorKeyInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.CoordinatorKeyInfo) + com.google.ads.datamanager.v1.CoordinatorKeyInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.EncryptionInfoProto + .internal_static_google_ads_datamanager_v1_CoordinatorKeyInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.EncryptionInfoProto + .internal_static_google_ads_datamanager_v1_CoordinatorKeyInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.CoordinatorKeyInfo.class, + com.google.ads.datamanager.v1.CoordinatorKeyInfo.Builder.class); + } + + // Construct using com.google.ads.datamanager.v1.CoordinatorKeyInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + keyId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.EncryptionInfoProto + .internal_static_google_ads_datamanager_v1_CoordinatorKeyInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.CoordinatorKeyInfo getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.CoordinatorKeyInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.CoordinatorKeyInfo build() { + com.google.ads.datamanager.v1.CoordinatorKeyInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.CoordinatorKeyInfo buildPartial() { + com.google.ads.datamanager.v1.CoordinatorKeyInfo result = + new com.google.ads.datamanager.v1.CoordinatorKeyInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.datamanager.v1.CoordinatorKeyInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.keyId_ = keyId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.datamanager.v1.CoordinatorKeyInfo) { + return mergeFrom((com.google.ads.datamanager.v1.CoordinatorKeyInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.datamanager.v1.CoordinatorKeyInfo other) { + if (other == com.google.ads.datamanager.v1.CoordinatorKeyInfo.getDefaultInstance()) + return this; + if (!other.getKeyId().isEmpty()) { + keyId_ = other.keyId_; + 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: + { + keyId_ = 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 keyId_ = ""; + + /** + * + * + *
+     * Required. The ID of the chosen coordinator key.
+     * 
+ * + * string key_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The keyId. + */ + public java.lang.String getKeyId() { + java.lang.Object ref = keyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the chosen coordinator key.
+     * 
+ * + * string key_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for keyId. + */ + public com.google.protobuf.ByteString getKeyIdBytes() { + java.lang.Object ref = keyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID of the chosen coordinator key.
+     * 
+ * + * string key_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The keyId to set. + * @return This builder for chaining. + */ + public Builder setKeyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + keyId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the chosen coordinator key.
+     * 
+ * + * string key_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearKeyId() { + keyId_ = getDefaultInstance().getKeyId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID of the chosen coordinator key.
+     * 
+ * + * string key_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for keyId to set. + * @return This builder for chaining. + */ + public Builder setKeyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + keyId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.CoordinatorKeyInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.CoordinatorKeyInfo) + private static final com.google.ads.datamanager.v1.CoordinatorKeyInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.datamanager.v1.CoordinatorKeyInfo(); + } + + public static com.google.ads.datamanager.v1.CoordinatorKeyInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CoordinatorKeyInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.ads.datamanager.v1.CoordinatorKeyInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CoordinatorKeyInfoOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CoordinatorKeyInfoOrBuilder.java new file mode 100644 index 000000000000..6824701d1ac5 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/CoordinatorKeyInfoOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/encryption_info.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +@com.google.protobuf.Generated +public interface CoordinatorKeyInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.CoordinatorKeyInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ID of the chosen coordinator key.
+   * 
+ * + * string key_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The keyId. + */ + java.lang.String getKeyId(); + + /** + * + * + *
+   * Required. The ID of the chosen coordinator key.
+   * 
+ * + * string key_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for keyId. + */ + com.google.protobuf.ByteString getKeyIdBytes(); +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java index c727d6c7d905..5e368705cb97 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DestinationProto.java @@ -72,7 +72,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "amanager.v1.ProductB\002\030\001\022\027\n\naccount_id\030\002 " + "\001(\tB\003\340A\002\022P\n\014account_type\030\003 \001(\01625.google." + "ads.datamanager.v1.ProductAccount.Accoun" - + "tTypeB\003\340A\001\"\341\001\n\013AccountType\022\034\n\030ACCOUNT_TY" + + "tTypeB\003\340A\002\"\341\001\n\013AccountType\022\034\n\030ACCOUNT_TY" + "PE_UNSPECIFIED\020\000\022\016\n\nGOOGLE_ADS\020\001\022\031\n\025DISP" + "LAY_VIDEO_PARTNER\020\002\022\034\n\030DISPLAY_VIDEO_ADV" + "ERTISER\020\003\022\020\n\014DATA_PARTNER\020\004\022\035\n\031GOOGLE_AN" diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfo.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfo.java index 351ed6d813c8..4bae5dcb334a 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfo.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfo.java @@ -154,7 +154,9 @@ public com.google.protobuf.ByteString getUserAgentBytes() { * more details. * * - * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The ipAddress. */ @@ -188,7 +190,9 @@ public java.lang.String getIpAddress() { * more details. * * - * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for ipAddress. */ @@ -1367,7 +1371,9 @@ public Builder setUserAgentBytes(com.google.protobuf.ByteString value) { * more details. * * - * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The ipAddress. */ @@ -1400,7 +1406,9 @@ public java.lang.String getIpAddress() { * more details. * * - * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for ipAddress. */ @@ -1433,7 +1441,9 @@ public com.google.protobuf.ByteString getIpAddressBytes() { * more details. * * - * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The ipAddress to set. * @return This builder for chaining. @@ -1465,7 +1475,9 @@ public Builder setIpAddress(java.lang.String value) { * more details. * * - * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ @@ -1493,7 +1505,9 @@ public Builder clearIpAddress() { * more details. * * - * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @param value The bytes for ipAddress to set. * @return This builder for chaining. diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoOrBuilder.java index 149a8edde854..06d257129aa3 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoOrBuilder.java @@ -69,7 +69,9 @@ public interface DeviceInfoOrBuilder * more details. * * - * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The ipAddress. */ @@ -92,7 +94,9 @@ public interface DeviceInfoOrBuilder * more details. * * - * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string ip_address = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return The bytes for ipAddress. */ diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java index 6b3820a7d1d2..dadd1661f238 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/DeviceInfoProto.java @@ -55,10 +55,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n" + "+google/ads/datamanager/v1/device_info." - + "proto\022\031google.ads.datamanager.v1\032\037google/api/field_behavior.proto\"\312\002\n\n" + + "proto\022\031google.ads.datamanager.v1\032\037google" + + "/api/field_behavior.proto\032\033google/api/field_info.proto\"\322\002\n\n" + "DeviceInfo\022\027\n\n" - + "user_agent\030\001 \001(\tB\003\340A\001\022\027\n\n" - + "ip_address\030\002 \001(\tB\003\340A\001\022\025\n" + + "user_agent\030\001 \001(\tB\003\340A\001\022\037\n\n" + + "ip_address\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\004\022\025\n" + "\010category\030\003 \001(\tB\003\340A\001\022\032\n\r" + "language_code\030\004 \001(\tB\003\340A\001\022\032\n\r" + "screen_height\030\005 \001(\005B\003\340A\001\022\031\n" @@ -70,17 +71,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB\003\340A\001\022\024\n" + "\007browser\030\013 \001(\tB\003\340A\001\022\034\n" + "\017browser_version\030\014 \001(\tB\003\340A\001B\314\001\n" - + "\035com.google.ads.datamanager.v1B\017Device" - + "InfoProtoP\001ZAcloud.google.com/go/dataman" - + "ager/apiv1/datamanagerpb;datamanagerpb\252\002" - + "\031Google.Ads.DataManager.V1\312\002\031Google\\Ads\\" - + "DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3" + + "\035com.google.ads.datamanager.v1B\017DeviceInf" + + "oProtoP\001ZAcloud.google.com/go/datamanage" + + "r/apiv1/datamanagerpb;datamanagerpb\252\002\031Go" + + "ogle.Ads.DataManager.V1\312\002\031Google\\Ads\\Dat" + + "aManager\\V1\352\002\034Google::Ads::DataManager::V1b\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(), }); internal_static_google_ads_datamanager_v1_DeviceInfo_descriptor = getDescriptor().getMessageType(0); @@ -103,9 +105,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfo.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfo.java index f2393e373a81..9f475c68fa97 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfo.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfo.java @@ -79,6 +79,7 @@ public enum WrappedKeyCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { GCP_WRAPPED_KEY_INFO(1), AWS_WRAPPED_KEY_INFO(2), + COORDINATOR_KEY_INFO(3), WRAPPEDKEY_NOT_SET(0); private final int value; @@ -102,6 +103,8 @@ public static WrappedKeyCase forNumber(int value) { return GCP_WRAPPED_KEY_INFO; case 2: return AWS_WRAPPED_KEY_INFO; + case 3: + return COORDINATOR_KEY_INFO; case 0: return WRAPPEDKEY_NOT_SET; default: @@ -226,6 +229,82 @@ public com.google.ads.datamanager.v1.AwsWrappedKeyInfoOrBuilder getAwsWrappedKey return com.google.ads.datamanager.v1.AwsWrappedKeyInfo.getDefaultInstance(); } + public static final int COORDINATOR_KEY_INFO_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Key information for the chosen coordinator key.
+   *
+   * This is not supported for the
+   * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents],
+   * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers],
+   * and
+   * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers]
+   * methods.
+   * 
+ * + * .google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3; + * + * @return Whether the coordinatorKeyInfo field is set. + */ + @java.lang.Override + public boolean hasCoordinatorKeyInfo() { + return wrappedKeyCase_ == 3; + } + + /** + * + * + *
+   * Key information for the chosen coordinator key.
+   *
+   * This is not supported for the
+   * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents],
+   * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers],
+   * and
+   * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers]
+   * methods.
+   * 
+ * + * .google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3; + * + * @return The coordinatorKeyInfo. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.CoordinatorKeyInfo getCoordinatorKeyInfo() { + if (wrappedKeyCase_ == 3) { + return (com.google.ads.datamanager.v1.CoordinatorKeyInfo) wrappedKey_; + } + return com.google.ads.datamanager.v1.CoordinatorKeyInfo.getDefaultInstance(); + } + + /** + * + * + *
+   * Key information for the chosen coordinator key.
+   *
+   * This is not supported for the
+   * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents],
+   * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers],
+   * and
+   * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers]
+   * methods.
+   * 
+ * + * .google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3; + */ + @java.lang.Override + public com.google.ads.datamanager.v1.CoordinatorKeyInfoOrBuilder + getCoordinatorKeyInfoOrBuilder() { + if (wrappedKeyCase_ == 3) { + return (com.google.ads.datamanager.v1.CoordinatorKeyInfo) wrappedKey_; + } + return com.google.ads.datamanager.v1.CoordinatorKeyInfo.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -246,6 +325,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (wrappedKeyCase_ == 2) { output.writeMessage(2, (com.google.ads.datamanager.v1.AwsWrappedKeyInfo) wrappedKey_); } + if (wrappedKeyCase_ == 3) { + output.writeMessage(3, (com.google.ads.datamanager.v1.CoordinatorKeyInfo) wrappedKey_); + } getUnknownFields().writeTo(output); } @@ -265,6 +347,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, (com.google.ads.datamanager.v1.AwsWrappedKeyInfo) wrappedKey_); } + if (wrappedKeyCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.ads.datamanager.v1.CoordinatorKeyInfo) wrappedKey_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -289,6 +376,9 @@ public boolean equals(final java.lang.Object obj) { case 2: if (!getAwsWrappedKeyInfo().equals(other.getAwsWrappedKeyInfo())) return false; break; + case 3: + if (!getCoordinatorKeyInfo().equals(other.getCoordinatorKeyInfo())) return false; + break; case 0: default: } @@ -312,6 +402,10 @@ public int hashCode() { hash = (37 * hash) + AWS_WRAPPED_KEY_INFO_FIELD_NUMBER; hash = (53 * hash) + getAwsWrappedKeyInfo().hashCode(); break; + case 3: + hash = (37 * hash) + COORDINATOR_KEY_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCoordinatorKeyInfo().hashCode(); + break; case 0: default: } @@ -461,6 +555,9 @@ public Builder clear() { if (awsWrappedKeyInfoBuilder_ != null) { awsWrappedKeyInfoBuilder_.clear(); } + if (coordinatorKeyInfoBuilder_ != null) { + coordinatorKeyInfoBuilder_.clear(); + } wrappedKeyCase_ = 0; wrappedKey_ = null; return this; @@ -511,6 +608,9 @@ private void buildPartialOneofs(com.google.ads.datamanager.v1.EncryptionInfo res if (wrappedKeyCase_ == 2 && awsWrappedKeyInfoBuilder_ != null) { result.wrappedKey_ = awsWrappedKeyInfoBuilder_.build(); } + if (wrappedKeyCase_ == 3 && coordinatorKeyInfoBuilder_ != null) { + result.wrappedKey_ = coordinatorKeyInfoBuilder_.build(); + } } @java.lang.Override @@ -536,6 +636,11 @@ public Builder mergeFrom(com.google.ads.datamanager.v1.EncryptionInfo other) { mergeAwsWrappedKeyInfo(other.getAwsWrappedKeyInfo()); break; } + case COORDINATOR_KEY_INFO: + { + mergeCoordinatorKeyInfo(other.getCoordinatorKeyInfo()); + break; + } case WRAPPEDKEY_NOT_SET: { break; @@ -581,6 +686,13 @@ public Builder mergeFrom( wrappedKeyCase_ = 2; break; } // case 18 + case 26: + { + input.readMessage( + internalGetCoordinatorKeyInfoFieldBuilder().getBuilder(), extensionRegistry); + wrappedKeyCase_ = 3; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1054,6 +1166,289 @@ public com.google.ads.datamanager.v1.AwsWrappedKeyInfo.Builder getAwsWrappedKeyI return awsWrappedKeyInfoBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.CoordinatorKeyInfo, + com.google.ads.datamanager.v1.CoordinatorKeyInfo.Builder, + com.google.ads.datamanager.v1.CoordinatorKeyInfoOrBuilder> + coordinatorKeyInfoBuilder_; + + /** + * + * + *
+     * Key information for the chosen coordinator key.
+     *
+     * This is not supported for the
+     * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents],
+     * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers],
+     * and
+     * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers]
+     * methods.
+     * 
+ * + * .google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3; + * + * @return Whether the coordinatorKeyInfo field is set. + */ + @java.lang.Override + public boolean hasCoordinatorKeyInfo() { + return wrappedKeyCase_ == 3; + } + + /** + * + * + *
+     * Key information for the chosen coordinator key.
+     *
+     * This is not supported for the
+     * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents],
+     * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers],
+     * and
+     * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers]
+     * methods.
+     * 
+ * + * .google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3; + * + * @return The coordinatorKeyInfo. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.CoordinatorKeyInfo getCoordinatorKeyInfo() { + if (coordinatorKeyInfoBuilder_ == null) { + if (wrappedKeyCase_ == 3) { + return (com.google.ads.datamanager.v1.CoordinatorKeyInfo) wrappedKey_; + } + return com.google.ads.datamanager.v1.CoordinatorKeyInfo.getDefaultInstance(); + } else { + if (wrappedKeyCase_ == 3) { + return coordinatorKeyInfoBuilder_.getMessage(); + } + return com.google.ads.datamanager.v1.CoordinatorKeyInfo.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Key information for the chosen coordinator key.
+     *
+     * This is not supported for the
+     * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents],
+     * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers],
+     * and
+     * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers]
+     * methods.
+     * 
+ * + * .google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3; + */ + public Builder setCoordinatorKeyInfo(com.google.ads.datamanager.v1.CoordinatorKeyInfo value) { + if (coordinatorKeyInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + wrappedKey_ = value; + onChanged(); + } else { + coordinatorKeyInfoBuilder_.setMessage(value); + } + wrappedKeyCase_ = 3; + return this; + } + + /** + * + * + *
+     * Key information for the chosen coordinator key.
+     *
+     * This is not supported for the
+     * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents],
+     * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers],
+     * and
+     * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers]
+     * methods.
+     * 
+ * + * .google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3; + */ + public Builder setCoordinatorKeyInfo( + com.google.ads.datamanager.v1.CoordinatorKeyInfo.Builder builderForValue) { + if (coordinatorKeyInfoBuilder_ == null) { + wrappedKey_ = builderForValue.build(); + onChanged(); + } else { + coordinatorKeyInfoBuilder_.setMessage(builderForValue.build()); + } + wrappedKeyCase_ = 3; + return this; + } + + /** + * + * + *
+     * Key information for the chosen coordinator key.
+     *
+     * This is not supported for the
+     * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents],
+     * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers],
+     * and
+     * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers]
+     * methods.
+     * 
+ * + * .google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3; + */ + public Builder mergeCoordinatorKeyInfo(com.google.ads.datamanager.v1.CoordinatorKeyInfo value) { + if (coordinatorKeyInfoBuilder_ == null) { + if (wrappedKeyCase_ == 3 + && wrappedKey_ + != com.google.ads.datamanager.v1.CoordinatorKeyInfo.getDefaultInstance()) { + wrappedKey_ = + com.google.ads.datamanager.v1.CoordinatorKeyInfo.newBuilder( + (com.google.ads.datamanager.v1.CoordinatorKeyInfo) wrappedKey_) + .mergeFrom(value) + .buildPartial(); + } else { + wrappedKey_ = value; + } + onChanged(); + } else { + if (wrappedKeyCase_ == 3) { + coordinatorKeyInfoBuilder_.mergeFrom(value); + } else { + coordinatorKeyInfoBuilder_.setMessage(value); + } + } + wrappedKeyCase_ = 3; + return this; + } + + /** + * + * + *
+     * Key information for the chosen coordinator key.
+     *
+     * This is not supported for the
+     * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents],
+     * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers],
+     * and
+     * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers]
+     * methods.
+     * 
+ * + * .google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3; + */ + public Builder clearCoordinatorKeyInfo() { + if (coordinatorKeyInfoBuilder_ == null) { + if (wrappedKeyCase_ == 3) { + wrappedKeyCase_ = 0; + wrappedKey_ = null; + onChanged(); + } + } else { + if (wrappedKeyCase_ == 3) { + wrappedKeyCase_ = 0; + wrappedKey_ = null; + } + coordinatorKeyInfoBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Key information for the chosen coordinator key.
+     *
+     * This is not supported for the
+     * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents],
+     * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers],
+     * and
+     * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers]
+     * methods.
+     * 
+ * + * .google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3; + */ + public com.google.ads.datamanager.v1.CoordinatorKeyInfo.Builder getCoordinatorKeyInfoBuilder() { + return internalGetCoordinatorKeyInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Key information for the chosen coordinator key.
+     *
+     * This is not supported for the
+     * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents],
+     * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers],
+     * and
+     * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers]
+     * methods.
+     * 
+ * + * .google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3; + */ + @java.lang.Override + public com.google.ads.datamanager.v1.CoordinatorKeyInfoOrBuilder + getCoordinatorKeyInfoOrBuilder() { + if ((wrappedKeyCase_ == 3) && (coordinatorKeyInfoBuilder_ != null)) { + return coordinatorKeyInfoBuilder_.getMessageOrBuilder(); + } else { + if (wrappedKeyCase_ == 3) { + return (com.google.ads.datamanager.v1.CoordinatorKeyInfo) wrappedKey_; + } + return com.google.ads.datamanager.v1.CoordinatorKeyInfo.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Key information for the chosen coordinator key.
+     *
+     * This is not supported for the
+     * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents],
+     * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers],
+     * and
+     * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers]
+     * methods.
+     * 
+ * + * .google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.CoordinatorKeyInfo, + com.google.ads.datamanager.v1.CoordinatorKeyInfo.Builder, + com.google.ads.datamanager.v1.CoordinatorKeyInfoOrBuilder> + internalGetCoordinatorKeyInfoFieldBuilder() { + if (coordinatorKeyInfoBuilder_ == null) { + if (!(wrappedKeyCase_ == 3)) { + wrappedKey_ = com.google.ads.datamanager.v1.CoordinatorKeyInfo.getDefaultInstance(); + } + coordinatorKeyInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.CoordinatorKeyInfo, + com.google.ads.datamanager.v1.CoordinatorKeyInfo.Builder, + com.google.ads.datamanager.v1.CoordinatorKeyInfoOrBuilder>( + (com.google.ads.datamanager.v1.CoordinatorKeyInfo) wrappedKey_, + getParentForChildren(), + isClean()); + wrappedKey_ = null; + } + wrappedKeyCase_ = 3; + onChanged(); + return coordinatorKeyInfoBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.EncryptionInfo) } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoOrBuilder.java index a7b5a9b555ea..f7408b37f6ae 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoOrBuilder.java @@ -100,5 +100,63 @@ public interface EncryptionInfoOrBuilder */ com.google.ads.datamanager.v1.AwsWrappedKeyInfoOrBuilder getAwsWrappedKeyInfoOrBuilder(); + /** + * + * + *
+   * Key information for the chosen coordinator key.
+   *
+   * This is not supported for the
+   * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents],
+   * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers],
+   * and
+   * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers]
+   * methods.
+   * 
+ * + * .google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3; + * + * @return Whether the coordinatorKeyInfo field is set. + */ + boolean hasCoordinatorKeyInfo(); + + /** + * + * + *
+   * Key information for the chosen coordinator key.
+   *
+   * This is not supported for the
+   * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents],
+   * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers],
+   * and
+   * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers]
+   * methods.
+   * 
+ * + * .google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3; + * + * @return The coordinatorKeyInfo. + */ + com.google.ads.datamanager.v1.CoordinatorKeyInfo getCoordinatorKeyInfo(); + + /** + * + * + *
+   * Key information for the chosen coordinator key.
+   *
+   * This is not supported for the
+   * [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents],
+   * [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers],
+   * and
+   * [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers]
+   * methods.
+   * 
+ * + * .google.ads.datamanager.v1.CoordinatorKeyInfo coordinator_key_info = 3; + */ + com.google.ads.datamanager.v1.CoordinatorKeyInfoOrBuilder getCoordinatorKeyInfoOrBuilder(); + com.google.ads.datamanager.v1.EncryptionInfo.WrappedKeyCase getWrappedKeyCase(); } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java index cc530e5c4306..d1c53cc2812c 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/EncryptionInfoProto.java @@ -52,6 +52,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_ads_datamanager_v1_AwsWrappedKeyInfo_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_ads_datamanager_v1_AwsWrappedKeyInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_datamanager_v1_CoordinatorKeyInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_ads_datamanager_v1_CoordinatorKeyInfo_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -63,16 +67,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n" + "/google/ads/datamanager/v1/encryption_i" - + "nfo.proto\022\031google.ads.datamanager.v1\032\037google/api/field_behavior.proto\"\273\001\n" + + "nfo.proto\022\031google.ads.datamanager.v1\032\037google/api/field_behavior.proto\"\212\002\n" + "\016EncryptionInfo\022L\n" + "\024gcp_wrapped_key_info\030\001 \001(\0132," + ".google.ads.datamanager.v1.GcpWrappedKeyInfoH\000\022L\n" + "\024aws_wrapped_key_info\030\002 \001(\0132,.g" - + "oogle.ads.datamanager.v1.AwsWrappedKeyInfoH\000B\r\n" + + "oogle.ads.datamanager.v1.AwsWrappedKeyInfoH\000\022M\n" + + "\024coordinator_key_info\030\003 \001(\0132-.goo" + + "gle.ads.datamanager.v1.CoordinatorKeyInfoH\000B\r\n" + "\013wrapped_key\"\352\001\n" + "\021GcpWrappedKeyInfo\022K\n" - + "\010key_type\030\001 \001(\01624.google.ads.dataman" - + "ager.v1.GcpWrappedKeyInfo.KeyTypeB\003\340A\002\022\031\n" + + "\010key_type\030\001" + + " \001(\01624.google.ads.datamanager.v1.GcpWrappedKeyInfo.KeyTypeB\003\340A\002\022\031\n" + "\014wip_provider\030\002 \001(\tB\003\340A\002\022\024\n" + "\007kek_uri\030\003 \001(\tB\003\340A\002\022\032\n\r" + "encrypted_dek\030\004 \001(\tB\003\340A\002\";\n" @@ -87,12 +93,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "encrypted_dek\030\004 \001(\tB\003\340A\002\";\n" + "\007KeyType\022\030\n" + "\024KEY_TYPE_UNSPECIFIED\020\000\022\026\n" - + "\022XCHACHA20_POLY1305\020\001B\320\001\n" - + "\035com.google.ads.datamanager.v1B\023EncryptionInfoProtoP\001ZAcloud.google" - + ".com/go/datamanager/apiv1/datamanagerpb;" - + "datamanagerpb\252\002\031Google.Ads.DataManager.V" - + "1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google::" - + "Ads::DataManager::V1b\006proto3" + + "\022XCHACHA20_POLY1305\020\001\")\n" + + "\022CoordinatorKeyInfo\022\023\n" + + "\006key_id\030\001 \001(\tB\003\340A\002B\320\001\n" + + "\035com.google.ads.datamanager.v1B\023EncryptionInfoProtoP\001ZAcloud.goog" + + "le.com/go/datamanager/apiv1/datamanagerp" + + "b;datamanagerpb\252\002\031Google.Ads.DataManager" + + ".V1\312\002\031Google\\Ads\\DataManager\\V1\352\002\034Google" + + "::Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -106,7 +114,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_EncryptionInfo_descriptor, new java.lang.String[] { - "GcpWrappedKeyInfo", "AwsWrappedKeyInfo", "WrappedKey", + "GcpWrappedKeyInfo", "AwsWrappedKeyInfo", "CoordinatorKeyInfo", "WrappedKey", }); internal_static_google_ads_datamanager_v1_GcpWrappedKeyInfo_descriptor = getDescriptor().getMessageType(1); @@ -124,6 +132,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "KeyType", "RoleArn", "KekUri", "EncryptedDek", }); + internal_static_google_ads_datamanager_v1_CoordinatorKeyInfo_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_ads_datamanager_v1_CoordinatorKeyInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_ads_datamanager_v1_CoordinatorKeyInfo_descriptor, + new java.lang.String[] { + "KeyId", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorReason.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorReason.java index 0a382ea940f0..951020b8e456 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorReason.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ErrorReason.java @@ -431,6 +431,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { * *
    * Events data contains no user identifiers or ad identifiers.
+   * For Floodlight Event ingestion this error indicates requests contains no ad
+   * identifiers.
    * 
* * NO_IDENTIFIERS_PROVIDED = 39; @@ -1732,6 +1734,8 @@ public enum ErrorReason implements com.google.protobuf.ProtocolMessageEnum { * *
    * Events data contains no user identifiers or ad identifiers.
+   * For Floodlight Event ingestion this error indicates requests contains no ad
+   * identifiers.
    * 
* * NO_IDENTIFIERS_PROVIDED = 39; diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/FeatureSet.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/FeatureSet.java new file mode 100644 index 000000000000..299d60c955e3 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/FeatureSet.java @@ -0,0 +1,195 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/partner_link_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * The set of supported features for a partner link.
+ * 
+ * + * Protobuf enum {@code google.ads.datamanager.v1.FeatureSet} + */ +@com.google.protobuf.Generated +public enum FeatureSet implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified feature set. If unspecified, the system behavior defaults to
+   * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT].
+   * 
+ * + * FEATURE_SET_UNSPECIFIED = 0; + */ + FEATURE_SET_UNSPECIFIED(0), + /** + * + * + *
+   * Indicates a link used for audience and event management.
+   * 
+ * + * FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT = 1; + */ + FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT(1), + /** + * + * + *
+   * Indicates a link used for ad event management.
+   * 
+ * + * FEATURE_SET_AD_EVENT_MANAGEMENT = 2; + */ + FEATURE_SET_AD_EVENT_MANAGEMENT(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FeatureSet"); + } + + /** + * + * + *
+   * Unspecified feature set. If unspecified, the system behavior defaults to
+   * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT].
+   * 
+ * + * FEATURE_SET_UNSPECIFIED = 0; + */ + public static final int FEATURE_SET_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Indicates a link used for audience and event management.
+   * 
+ * + * FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT = 1; + */ + public static final int FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT_VALUE = 1; + + /** + * + * + *
+   * Indicates a link used for ad event management.
+   * 
+ * + * FEATURE_SET_AD_EVENT_MANAGEMENT = 2; + */ + public static final int FEATURE_SET_AD_EVENT_MANAGEMENT_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 FeatureSet 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 FeatureSet forNumber(int value) { + switch (value) { + case 0: + return FEATURE_SET_UNSPECIFIED; + case 1: + return FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT; + case 2: + return FEATURE_SET_AD_EVENT_MANAGEMENT; + 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 FeatureSet findValueByNumber(int number) { + return FeatureSet.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.PartnerLinkServiceProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final FeatureSet[] VALUES = values(); + + public static FeatureSet 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 FeatureSet(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.FeatureSet) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequest.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequest.java new file mode 100644 index 000000000000..d9c7d6201c14 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequest.java @@ -0,0 +1,1396 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/ingestion_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * Request to upload ad events.
+ * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.IngestAdEventsRequest} + */ +@com.google.protobuf.Generated +public final class IngestAdEventsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.IngestAdEventsRequest) + IngestAdEventsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IngestAdEventsRequest"); + } + + // Use IngestAdEventsRequest.newBuilder() to construct. + private IngestAdEventsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IngestAdEventsRequest() { + adEvents_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.IngestAdEventsRequest.class, + com.google.ads.datamanager.v1.IngestAdEventsRequest.Builder.class); + } + + private int bitField0_; + public static final int AD_EVENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List adEvents_; + + /** + * + * + *
+   * Required. Required (at least 1). A list of ad events.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getAdEventsList() { + return adEvents_; + } + + /** + * + * + *
+   * Required. Required (at least 1). A list of ad events.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getAdEventsOrBuilderList() { + return adEvents_; + } + + /** + * + * + *
+   * Required. Required (at least 1). A list of ad events.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getAdEventsCount() { + return adEvents_.size(); + } + + /** + * + * + *
+   * Required. Required (at least 1). A list of ad events.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.AdEvent getAdEvents(int index) { + return adEvents_.get(index); + } + + /** + * + * + *
+   * Required. Required (at least 1). A list of ad events.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.AdEventOrBuilder getAdEventsOrBuilder(int index) { + return adEvents_.get(index); + } + + public static final int ENCRYPTION_INFO_FIELD_NUMBER = 2; + private com.google.ads.datamanager.v1.EncryptionInfo encryptionInfo_; + + /** + * + * + *
+   * Optional. Information about encryption keys which are used to encrypt the
+   * data.
+   * 
+ * + * + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryptionInfo field is set. + */ + @java.lang.Override + public boolean hasEncryptionInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Information about encryption keys which are used to encrypt the
+   * data.
+   * 
+ * + * + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryptionInfo. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.EncryptionInfo getEncryptionInfo() { + return encryptionInfo_ == null + ? com.google.ads.datamanager.v1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } + + /** + * + * + *
+   * Optional. Information about encryption keys which are used to encrypt the
+   * data.
+   * 
+ * + * + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder() { + return encryptionInfo_ == null + ? com.google.ads.datamanager.v1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; + private boolean validateOnly_ = false; + + /** + * + * + *
+   * Optional. If true, the request is validated, but not executed.
+   * 
+ * + * 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 { + for (int i = 0; i < adEvents_.size(); i++) { + output.writeMessage(1, adEvents_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getEncryptionInfo()); + } + 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; + for (int i = 0; i < adEvents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, adEvents_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEncryptionInfo()); + } + 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.ads.datamanager.v1.IngestAdEventsRequest)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.IngestAdEventsRequest other = + (com.google.ads.datamanager.v1.IngestAdEventsRequest) obj; + + if (!getAdEventsList().equals(other.getAdEventsList())) return false; + if (hasEncryptionInfo() != other.hasEncryptionInfo()) return false; + if (hasEncryptionInfo()) { + if (!getEncryptionInfo().equals(other.getEncryptionInfo())) 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(); + if (getAdEventsCount() > 0) { + hash = (37 * hash) + AD_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getAdEventsList().hashCode(); + } + if (hasEncryptionInfo()) { + hash = (37 * hash) + ENCRYPTION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getEncryptionInfo().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.ads.datamanager.v1.IngestAdEventsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.datamanager.v1.IngestAdEventsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request to upload ad events.
+   * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.IngestAdEventsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.IngestAdEventsRequest) + com.google.ads.datamanager.v1.IngestAdEventsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.IngestAdEventsRequest.class, + com.google.ads.datamanager.v1.IngestAdEventsRequest.Builder.class); + } + + // Construct using com.google.ads.datamanager.v1.IngestAdEventsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAdEventsFieldBuilder(); + internalGetEncryptionInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (adEventsBuilder_ == null) { + adEvents_ = java.util.Collections.emptyList(); + } else { + adEvents_ = null; + adEventsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + encryptionInfo_ = null; + if (encryptionInfoBuilder_ != null) { + encryptionInfoBuilder_.dispose(); + encryptionInfoBuilder_ = null; + } + validateOnly_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.IngestAdEventsRequest getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.IngestAdEventsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.IngestAdEventsRequest build() { + com.google.ads.datamanager.v1.IngestAdEventsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.IngestAdEventsRequest buildPartial() { + com.google.ads.datamanager.v1.IngestAdEventsRequest result = + new com.google.ads.datamanager.v1.IngestAdEventsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.datamanager.v1.IngestAdEventsRequest result) { + if (adEventsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + adEvents_ = java.util.Collections.unmodifiableList(adEvents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.adEvents_ = adEvents_; + } else { + result.adEvents_ = adEventsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.datamanager.v1.IngestAdEventsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.encryptionInfo_ = + encryptionInfoBuilder_ == null ? encryptionInfo_ : encryptionInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.datamanager.v1.IngestAdEventsRequest) { + return mergeFrom((com.google.ads.datamanager.v1.IngestAdEventsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.datamanager.v1.IngestAdEventsRequest other) { + if (other == com.google.ads.datamanager.v1.IngestAdEventsRequest.getDefaultInstance()) + return this; + if (adEventsBuilder_ == null) { + if (!other.adEvents_.isEmpty()) { + if (adEvents_.isEmpty()) { + adEvents_ = other.adEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAdEventsIsMutable(); + adEvents_.addAll(other.adEvents_); + } + onChanged(); + } + } else { + if (!other.adEvents_.isEmpty()) { + if (adEventsBuilder_.isEmpty()) { + adEventsBuilder_.dispose(); + adEventsBuilder_ = null; + adEvents_ = other.adEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + adEventsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAdEventsFieldBuilder() + : null; + } else { + adEventsBuilder_.addAllMessages(other.adEvents_); + } + } + } + if (other.hasEncryptionInfo()) { + mergeEncryptionInfo(other.getEncryptionInfo()); + } + 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: + { + com.google.ads.datamanager.v1.AdEvent m = + input.readMessage( + com.google.ads.datamanager.v1.AdEvent.parser(), extensionRegistry); + if (adEventsBuilder_ == null) { + ensureAdEventsIsMutable(); + adEvents_.add(m); + } else { + adEventsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetEncryptionInfoFieldBuilder().getBuilder(), extensionRegistry); + 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.util.List adEvents_ = + java.util.Collections.emptyList(); + + private void ensureAdEventsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + adEvents_ = new java.util.ArrayList(adEvents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.AdEvent, + com.google.ads.datamanager.v1.AdEvent.Builder, + com.google.ads.datamanager.v1.AdEventOrBuilder> + adEventsBuilder_; + + /** + * + * + *
+     * Required. Required (at least 1). A list of ad events.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getAdEventsList() { + if (adEventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(adEvents_); + } else { + return adEventsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. Required (at least 1). A list of ad events.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getAdEventsCount() { + if (adEventsBuilder_ == null) { + return adEvents_.size(); + } else { + return adEventsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. Required (at least 1). A list of ad events.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.datamanager.v1.AdEvent getAdEvents(int index) { + if (adEventsBuilder_ == null) { + return adEvents_.get(index); + } else { + return adEventsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. Required (at least 1). A list of ad events.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAdEvents(int index, com.google.ads.datamanager.v1.AdEvent value) { + if (adEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdEventsIsMutable(); + adEvents_.set(index, value); + onChanged(); + } else { + adEventsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. Required (at least 1). A list of ad events.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAdEvents( + int index, com.google.ads.datamanager.v1.AdEvent.Builder builderForValue) { + if (adEventsBuilder_ == null) { + ensureAdEventsIsMutable(); + adEvents_.set(index, builderForValue.build()); + onChanged(); + } else { + adEventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Required (at least 1). A list of ad events.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAdEvents(com.google.ads.datamanager.v1.AdEvent value) { + if (adEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdEventsIsMutable(); + adEvents_.add(value); + onChanged(); + } else { + adEventsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. Required (at least 1). A list of ad events.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAdEvents(int index, com.google.ads.datamanager.v1.AdEvent value) { + if (adEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdEventsIsMutable(); + adEvents_.add(index, value); + onChanged(); + } else { + adEventsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. Required (at least 1). A list of ad events.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAdEvents(com.google.ads.datamanager.v1.AdEvent.Builder builderForValue) { + if (adEventsBuilder_ == null) { + ensureAdEventsIsMutable(); + adEvents_.add(builderForValue.build()); + onChanged(); + } else { + adEventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Required (at least 1). A list of ad events.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAdEvents( + int index, com.google.ads.datamanager.v1.AdEvent.Builder builderForValue) { + if (adEventsBuilder_ == null) { + ensureAdEventsIsMutable(); + adEvents_.add(index, builderForValue.build()); + onChanged(); + } else { + adEventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. Required (at least 1). A list of ad events.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllAdEvents( + java.lang.Iterable values) { + if (adEventsBuilder_ == null) { + ensureAdEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, adEvents_); + onChanged(); + } else { + adEventsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. Required (at least 1). A list of ad events.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAdEvents() { + if (adEventsBuilder_ == null) { + adEvents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + adEventsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. Required (at least 1). A list of ad events.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeAdEvents(int index) { + if (adEventsBuilder_ == null) { + ensureAdEventsIsMutable(); + adEvents_.remove(index); + onChanged(); + } else { + adEventsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. Required (at least 1). A list of ad events.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.datamanager.v1.AdEvent.Builder getAdEventsBuilder(int index) { + return internalGetAdEventsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. Required (at least 1). A list of ad events.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.datamanager.v1.AdEventOrBuilder getAdEventsOrBuilder(int index) { + if (adEventsBuilder_ == null) { + return adEvents_.get(index); + } else { + return adEventsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. Required (at least 1). A list of ad events.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getAdEventsOrBuilderList() { + if (adEventsBuilder_ != null) { + return adEventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(adEvents_); + } + } + + /** + * + * + *
+     * Required. Required (at least 1). A list of ad events.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.datamanager.v1.AdEvent.Builder addAdEventsBuilder() { + return internalGetAdEventsFieldBuilder() + .addBuilder(com.google.ads.datamanager.v1.AdEvent.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. Required (at least 1). A list of ad events.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.datamanager.v1.AdEvent.Builder addAdEventsBuilder(int index) { + return internalGetAdEventsFieldBuilder() + .addBuilder(index, com.google.ads.datamanager.v1.AdEvent.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. Required (at least 1). A list of ad events.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getAdEventsBuilderList() { + return internalGetAdEventsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.AdEvent, + com.google.ads.datamanager.v1.AdEvent.Builder, + com.google.ads.datamanager.v1.AdEventOrBuilder> + internalGetAdEventsFieldBuilder() { + if (adEventsBuilder_ == null) { + adEventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.AdEvent, + com.google.ads.datamanager.v1.AdEvent.Builder, + com.google.ads.datamanager.v1.AdEventOrBuilder>( + adEvents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + adEvents_ = null; + } + return adEventsBuilder_; + } + + private com.google.ads.datamanager.v1.EncryptionInfo encryptionInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.EncryptionInfo, + com.google.ads.datamanager.v1.EncryptionInfo.Builder, + com.google.ads.datamanager.v1.EncryptionInfoOrBuilder> + encryptionInfoBuilder_; + + /** + * + * + *
+     * Optional. Information about encryption keys which are used to encrypt the
+     * data.
+     * 
+ * + * + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryptionInfo field is set. + */ + public boolean hasEncryptionInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Information about encryption keys which are used to encrypt the
+     * data.
+     * 
+ * + * + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryptionInfo. + */ + public com.google.ads.datamanager.v1.EncryptionInfo getEncryptionInfo() { + if (encryptionInfoBuilder_ == null) { + return encryptionInfo_ == null + ? com.google.ads.datamanager.v1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } else { + return encryptionInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Information about encryption keys which are used to encrypt the
+     * data.
+     * 
+ * + * + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryptionInfo(com.google.ads.datamanager.v1.EncryptionInfo value) { + if (encryptionInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + encryptionInfo_ = value; + } else { + encryptionInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Information about encryption keys which are used to encrypt the
+     * data.
+     * 
+ * + * + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEncryptionInfo( + com.google.ads.datamanager.v1.EncryptionInfo.Builder builderForValue) { + if (encryptionInfoBuilder_ == null) { + encryptionInfo_ = builderForValue.build(); + } else { + encryptionInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Information about encryption keys which are used to encrypt the
+     * data.
+     * 
+ * + * + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEncryptionInfo(com.google.ads.datamanager.v1.EncryptionInfo value) { + if (encryptionInfoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && encryptionInfo_ != null + && encryptionInfo_ + != com.google.ads.datamanager.v1.EncryptionInfo.getDefaultInstance()) { + getEncryptionInfoBuilder().mergeFrom(value); + } else { + encryptionInfo_ = value; + } + } else { + encryptionInfoBuilder_.mergeFrom(value); + } + if (encryptionInfo_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Information about encryption keys which are used to encrypt the
+     * data.
+     * 
+ * + * + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEncryptionInfo() { + bitField0_ = (bitField0_ & ~0x00000002); + encryptionInfo_ = null; + if (encryptionInfoBuilder_ != null) { + encryptionInfoBuilder_.dispose(); + encryptionInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Information about encryption keys which are used to encrypt the
+     * data.
+     * 
+ * + * + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.datamanager.v1.EncryptionInfo.Builder getEncryptionInfoBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEncryptionInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Information about encryption keys which are used to encrypt the
+     * data.
+     * 
+ * + * + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.datamanager.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder() { + if (encryptionInfoBuilder_ != null) { + return encryptionInfoBuilder_.getMessageOrBuilder(); + } else { + return encryptionInfo_ == null + ? com.google.ads.datamanager.v1.EncryptionInfo.getDefaultInstance() + : encryptionInfo_; + } + } + + /** + * + * + *
+     * Optional. Information about encryption keys which are used to encrypt the
+     * data.
+     * 
+ * + * + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.EncryptionInfo, + com.google.ads.datamanager.v1.EncryptionInfo.Builder, + com.google.ads.datamanager.v1.EncryptionInfoOrBuilder> + internalGetEncryptionInfoFieldBuilder() { + if (encryptionInfoBuilder_ == null) { + encryptionInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.EncryptionInfo, + com.google.ads.datamanager.v1.EncryptionInfo.Builder, + com.google.ads.datamanager.v1.EncryptionInfoOrBuilder>( + getEncryptionInfo(), getParentForChildren(), isClean()); + encryptionInfo_ = null; + } + return encryptionInfoBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
+     * Optional. If true, the request is validated, but not executed.
+     * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+     * Optional. If true, the request is validated, but not executed.
+     * 
+ * + * 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 true, the request is validated, but not executed.
+     * 
+ * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.IngestAdEventsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.IngestAdEventsRequest) + private static final com.google.ads.datamanager.v1.IngestAdEventsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.datamanager.v1.IngestAdEventsRequest(); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestAdEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.ads.datamanager.v1.IngestAdEventsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequestOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequestOrBuilder.java new file mode 100644 index 000000000000..6d600a7fe862 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsRequestOrBuilder.java @@ -0,0 +1,153 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/ingestion_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +@com.google.protobuf.Generated +public interface IngestAdEventsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.IngestAdEventsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Required (at least 1). A list of ad events.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getAdEventsList(); + + /** + * + * + *
+   * Required. Required (at least 1). A list of ad events.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.datamanager.v1.AdEvent getAdEvents(int index); + + /** + * + * + *
+   * Required. Required (at least 1). A list of ad events.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getAdEventsCount(); + + /** + * + * + *
+   * Required. Required (at least 1). A list of ad events.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getAdEventsOrBuilderList(); + + /** + * + * + *
+   * Required. Required (at least 1). A list of ad events.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.AdEvent ad_events = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.datamanager.v1.AdEventOrBuilder getAdEventsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Information about encryption keys which are used to encrypt the
+   * data.
+   * 
+ * + * + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the encryptionInfo field is set. + */ + boolean hasEncryptionInfo(); + + /** + * + * + *
+   * Optional. Information about encryption keys which are used to encrypt the
+   * data.
+   * 
+ * + * + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The encryptionInfo. + */ + com.google.ads.datamanager.v1.EncryptionInfo getEncryptionInfo(); + + /** + * + * + *
+   * Optional. Information about encryption keys which are used to encrypt the
+   * data.
+   * 
+ * + * + * .google.ads.datamanager.v1.EncryptionInfo encryption_info = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.datamanager.v1.EncryptionInfoOrBuilder getEncryptionInfoOrBuilder(); + + /** + * + * + *
+   * Optional. If true, the request is validated, but not executed.
+   * 
+ * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsResponse.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsResponse.java new file mode 100644 index 000000000000..9225ce909a1e --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsResponse.java @@ -0,0 +1,396 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/ingestion_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * Response from an ad event ingestion operation.
+ * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.IngestAdEventsResponse} + */ +@com.google.protobuf.Generated +public final class IngestAdEventsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.IngestAdEventsResponse) + IngestAdEventsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IngestAdEventsResponse"); + } + + // Use IngestAdEventsResponse.newBuilder() to construct. + private IngestAdEventsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IngestAdEventsResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.IngestAdEventsResponse.class, + com.google.ads.datamanager.v1.IngestAdEventsResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.ads.datamanager.v1.IngestAdEventsResponse)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.IngestAdEventsResponse other = + (com.google.ads.datamanager.v1.IngestAdEventsResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.datamanager.v1.IngestAdEventsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response from an ad event ingestion operation.
+   * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.IngestAdEventsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.IngestAdEventsResponse) + com.google.ads.datamanager.v1.IngestAdEventsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.IngestAdEventsResponse.class, + com.google.ads.datamanager.v1.IngestAdEventsResponse.Builder.class); + } + + // Construct using com.google.ads.datamanager.v1.IngestAdEventsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.IngestionServiceProto + .internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.IngestAdEventsResponse getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.IngestAdEventsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.IngestAdEventsResponse build() { + com.google.ads.datamanager.v1.IngestAdEventsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.IngestAdEventsResponse buildPartial() { + com.google.ads.datamanager.v1.IngestAdEventsResponse result = + new com.google.ads.datamanager.v1.IngestAdEventsResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.datamanager.v1.IngestAdEventsResponse) { + return mergeFrom((com.google.ads.datamanager.v1.IngestAdEventsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.datamanager.v1.IngestAdEventsResponse other) { + if (other == com.google.ads.datamanager.v1.IngestAdEventsResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.IngestAdEventsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.IngestAdEventsResponse) + private static final com.google.ads.datamanager.v1.IngestAdEventsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.datamanager.v1.IngestAdEventsResponse(); + } + + public static com.google.ads.datamanager.v1.IngestAdEventsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestAdEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.ads.datamanager.v1.IngestAdEventsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsResponseOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsResponseOrBuilder.java new file mode 100644 index 000000000000..43f7c86ae055 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestAdEventsResponseOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/ingestion_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +@com.google.protobuf.Generated +public interface IngestAdEventsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.IngestAdEventsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java index aaaf7d0a7d3e..be5d49edc1d8 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/IngestionServiceProto.java @@ -64,6 +64,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_ads_datamanager_v1_IngestEventsResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_ads_datamanager_v1_IngestEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_datamanager_v1_RetrieveRequestStatusRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -83,86 +91,97 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n1google/ads/datamanager/v1/ingestion_se" + "rvice.proto\022\031google.ads.datamanager.v1\032(" - + "google/ads/datamanager/v1/audience.proto" - + "\032\'google/ads/datamanager/v1/consent.prot" - + "o\032+google/ads/datamanager/v1/destination" - + ".proto\032/google/ads/datamanager/v1/encryp" - + "tion_info.proto\032%google/ads/datamanager/" - + "v1/event.proto\032>google/ads/datamanager/v" - + "1/request_status_per_destination.proto\0320" - + "google/ads/datamanager/v1/terms_of_servi" - + "ce.proto\032\034google/api/annotations.proto\032\027" - + "google/api/client.proto\032\037google/api/fiel" - + "d_behavior.proto\"\320\003\n\034IngestAudienceMembe" - + "rsRequest\022A\n\014destinations\030\001 \003(\0132&.google" - + ".ads.datamanager.v1.DestinationB\003\340A\002\022H\n\020" - + "audience_members\030\002 \003(\0132).google.ads.data" - + "manager.v1.AudienceMemberB\003\340A\002\0228\n\007consen" - + "t\030\003 \001(\0132\".google.ads.datamanager.v1.Cons" - + "entB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022:\n\010" - + "encoding\030\005 \001(\0162#.google.ads.datamanager." - + "v1.EncodingB\003\340A\001\022G\n\017encryption_info\030\006 \001(" - + "\0132).google.ads.datamanager.v1.Encryption" - + "InfoB\003\340A\001\022H\n\020terms_of_service\030\007 \001(\0132).go" - + "ogle.ads.datamanager.v1.TermsOfServiceB\003" - + "\340A\001\"3\n\035IngestAudienceMembersResponse\022\022\n\n" - + "request_id\030\001 \001(\t\"\314\002\n\034RemoveAudienceMembe" - + "rsRequest\022A\n\014destinations\030\001 \003(\0132&.google" - + ".ads.datamanager.v1.DestinationB\003\340A\002\022H\n\020" - + "audience_members\030\002 \003(\0132).google.ads.data" - + "manager.v1.AudienceMemberB\003\340A\002\022\032\n\rvalida" - + "te_only\030\003 \001(\010B\003\340A\001\022:\n\010encoding\030\004 \001(\0162#.g" - + "oogle.ads.datamanager.v1.EncodingB\003\340A\001\022G" - + "\n\017encryption_info\030\005 \001(\0132).google.ads.dat" - + "amanager.v1.EncryptionInfoB\003\340A\001\"3\n\035Remov" - + "eAudienceMembersResponse\022\022\n\nrequest_id\030\001" - + " \001(\t\"\352\002\n\023IngestEventsRequest\022A\n\014destinat" - + "ions\030\001 \003(\0132&.google.ads.datamanager.v1.D" - + "estinationB\003\340A\002\0225\n\006events\030\002 \003(\0132 .google" - + ".ads.datamanager.v1.EventB\003\340A\002\0228\n\007consen" - + "t\030\003 \001(\0132\".google.ads.datamanager.v1.Cons" - + "entB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022:\n\010" - + "encoding\030\005 \001(\0162#.google.ads.datamanager." - + "v1.EncodingB\003\340A\001\022G\n\017encryption_info\030\006 \001(" - + "\0132).google.ads.datamanager.v1.Encryption" - + "InfoB\003\340A\001\"*\n\024IngestEventsResponse\022\022\n\nreq" - + "uest_id\030\001 \001(\t\"7\n\034RetrieveRequestStatusRe" - + "quest\022\027\n\nrequest_id\030\001 \001(\tB\003\340A\002\"\177\n\035Retrie" - + "veRequestStatusResponse\022^\n\036request_statu" - + "s_per_destination\030\001 \003(\01326.google.ads.dat" - + "amanager.v1.RequestStatusPerDestination*" - + "9\n\010Encoding\022\030\n\024ENCODING_UNSPECIFIED\020\000\022\007\n" - + "\003HEX\020\001\022\n\n\006BASE64\020\0022\210\006\n\020IngestionService\022" - + "\261\001\n\025IngestAudienceMembers\0227.google.ads.d" - + "atamanager.v1.IngestAudienceMembersReque" - + "st\0328.google.ads.datamanager.v1.IngestAud" - + "ienceMembersResponse\"%\202\323\344\223\002\037\"\032/v1/audien" - + "ceMembers:ingest:\001*\022\261\001\n\025RemoveAudienceMe" - + "mbers\0227.google.ads.datamanager.v1.Remove" - + "AudienceMembersRequest\0328.google.ads.data" - + "manager.v1.RemoveAudienceMembersResponse" - + "\"%\202\323\344\223\002\037\"\032/v1/audienceMembers:remove:\001*\022" - + "\215\001\n\014IngestEvents\022..google.ads.datamanage" - + "r.v1.IngestEventsRequest\032/.google.ads.da" - + "tamanager.v1.IngestEventsResponse\"\034\202\323\344\223\002" - + "\026\"\021/v1/events:ingest:\001*\022\256\001\n\025RetrieveRequ" - + "estStatus\0227.google.ads.datamanager.v1.Re" - + "trieveRequestStatusRequest\0328.google.ads." - + "datamanager.v1.RetrieveRequestStatusResp" - + "onse\"\"\202\323\344\223\002\034\022\032/v1/requestStatus:retrieve" - + "\032K\312A\032datamanager.googleapis.com\322A+https:" - + "//www.googleapis.com/auth/datamanagerB\322\001" - + "\n\035com.google.ads.datamanager.v1B\025Ingesti" - + "onServiceProtoP\001ZAcloud.google.com/go/da" - + "tamanager/apiv1/datamanagerpb;datamanage" - + "rpb\252\002\031Google.Ads.DataManager.V1\312\002\031Google" - + "\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataM" - + "anager::V1b\006proto3" + + "google/ads/datamanager/v1/ad_event.proto" + + "\032(google/ads/datamanager/v1/audience.pro" + + "to\032\'google/ads/datamanager/v1/consent.pr" + + "oto\032+google/ads/datamanager/v1/destinati" + + "on.proto\032/google/ads/datamanager/v1/encr" + + "yption_info.proto\032%google/ads/datamanage" + + "r/v1/event.proto\032>google/ads/datamanager" + + "/v1/request_status_per_destination.proto" + + "\0320google/ads/datamanager/v1/terms_of_ser" + + "vice.proto\032\034google/api/annotations.proto" + + "\032\027google/api/client.proto\032\037google/api/fi" + + "eld_behavior.proto\"\320\003\n\034IngestAudienceMem" + + "bersRequest\022A\n\014destinations\030\001 \003(\0132&.goog" + + "le.ads.datamanager.v1.DestinationB\003\340A\002\022H" + + "\n\020audience_members\030\002 \003(\0132).google.ads.da" + + "tamanager.v1.AudienceMemberB\003\340A\002\0228\n\007cons" + + "ent\030\003 \001(\0132\".google.ads.datamanager.v1.Co" + + "nsentB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022:" + + "\n\010encoding\030\005 \001(\0162#.google.ads.datamanage" + + "r.v1.EncodingB\003\340A\001\022G\n\017encryption_info\030\006 " + + "\001(\0132).google.ads.datamanager.v1.Encrypti" + + "onInfoB\003\340A\001\022H\n\020terms_of_service\030\007 \001(\0132)." + + "google.ads.datamanager.v1.TermsOfService" + + "B\003\340A\001\"3\n\035IngestAudienceMembersResponse\022\022" + + "\n\nrequest_id\030\001 \001(\t\"\314\002\n\034RemoveAudienceMem" + + "bersRequest\022A\n\014destinations\030\001 \003(\0132&.goog" + + "le.ads.datamanager.v1.DestinationB\003\340A\002\022H" + + "\n\020audience_members\030\002 \003(\0132).google.ads.da" + + "tamanager.v1.AudienceMemberB\003\340A\002\022\032\n\rvali" + + "date_only\030\003 \001(\010B\003\340A\001\022:\n\010encoding\030\004 \001(\0162#" + + ".google.ads.datamanager.v1.EncodingB\003\340A\001" + + "\022G\n\017encryption_info\030\005 \001(\0132).google.ads.d" + + "atamanager.v1.EncryptionInfoB\003\340A\001\"3\n\035Rem" + + "oveAudienceMembersResponse\022\022\n\nrequest_id" + + "\030\001 \001(\t\"\352\002\n\023IngestEventsRequest\022A\n\014destin" + + "ations\030\001 \003(\0132&.google.ads.datamanager.v1" + + ".DestinationB\003\340A\002\0225\n\006events\030\002 \003(\0132 .goog" + + "le.ads.datamanager.v1.EventB\003\340A\002\0228\n\007cons" + + "ent\030\003 \001(\0132\".google.ads.datamanager.v1.Co" + + "nsentB\003\340A\001\022\032\n\rvalidate_only\030\004 \001(\010B\003\340A\001\022:" + + "\n\010encoding\030\005 \001(\0162#.google.ads.datamanage" + + "r.v1.EncodingB\003\340A\001\022G\n\017encryption_info\030\006 " + + "\001(\0132).google.ads.datamanager.v1.Encrypti" + + "onInfoB\003\340A\001\"*\n\024IngestEventsResponse\022\022\n\nr" + + "equest_id\030\001 \001(\t\"\270\001\n\025IngestAdEventsReques" + + "t\022:\n\tad_events\030\001 \003(\0132\".google.ads.datama" + + "nager.v1.AdEventB\003\340A\002\022G\n\017encryption_info" + + "\030\002 \001(\0132).google.ads.datamanager.v1.Encry" + + "ptionInfoB\003\340A\001\022\032\n\rvalidate_only\030\003 \001(\010B\003\340" + + "A\001\"\030\n\026IngestAdEventsResponse\"7\n\034Retrieve" + + "RequestStatusRequest\022\027\n\nrequest_id\030\001 \001(\t" + + "B\003\340A\002\"\177\n\035RetrieveRequestStatusResponse\022^" + + "\n\036request_status_per_destination\030\001 \003(\01326" + + ".google.ads.datamanager.v1.RequestStatus" + + "PerDestination*9\n\010Encoding\022\030\n\024ENCODING_U" + + "NSPECIFIED\020\000\022\007\n\003HEX\020\001\022\n\n\006BASE64\020\0022\240\007\n\020In" + + "gestionService\022\261\001\n\025IngestAudienceMembers" + + "\0227.google.ads.datamanager.v1.IngestAudie" + + "nceMembersRequest\0328.google.ads.datamanag" + + "er.v1.IngestAudienceMembersResponse\"%\202\323\344" + + "\223\002\037\"\032/v1/audienceMembers:ingest:\001*\022\261\001\n\025R" + + "emoveAudienceMembers\0227.google.ads.datama" + + "nager.v1.RemoveAudienceMembersRequest\0328." + + "google.ads.datamanager.v1.RemoveAudience" + + "MembersResponse\"%\202\323\344\223\002\037\"\032/v1/audienceMem" + + "bers:remove:\001*\022\215\001\n\014IngestEvents\022..google" + + ".ads.datamanager.v1.IngestEventsRequest\032" + + "/.google.ads.datamanager.v1.IngestEvents" + + "Response\"\034\202\323\344\223\002\026\"\021/v1/events:ingest:\001*\022\225" + + "\001\n\016IngestAdEvents\0220.google.ads.datamanag" + + "er.v1.IngestAdEventsRequest\0321.google.ads" + + ".datamanager.v1.IngestAdEventsResponse\"\036" + + "\202\323\344\223\002\030\"\023/v1/adEvents:ingest:\001*\022\256\001\n\025Retri" + + "eveRequestStatus\0227.google.ads.datamanage" + + "r.v1.RetrieveRequestStatusRequest\0328.goog" + + "le.ads.datamanager.v1.RetrieveRequestSta" + + "tusResponse\"\"\202\323\344\223\002\034\022\032/v1/requestStatus:r" + + "etrieve\032K\312A\032datamanager.googleapis.com\322A" + + "+https://www.googleapis.com/auth/dataman" + + "agerB\322\001\n\035com.google.ads.datamanager.v1B\025" + + "IngestionServiceProtoP\001ZAcloud.google.co" + + "m/go/datamanager/apiv1/datamanagerpb;dat" + + "amanagerpb\252\002\031Google.Ads.DataManager.V1\312\002" + + "\031Google\\Ads\\DataManager\\V1\352\002\034Google::Ads" + + "::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.datamanager.v1.AdEventProto.getDescriptor(), com.google.ads.datamanager.v1.AudienceProto.getDescriptor(), com.google.ads.datamanager.v1.ConsentProto.getDescriptor(), com.google.ads.datamanager.v1.DestinationProto.getDescriptor(), @@ -228,8 +247,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "RequestId", }); - internal_static_google_ads_datamanager_v1_RetrieveRequestStatusRequest_descriptor = + internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_descriptor = getDescriptor().getMessageType(6); + internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_ads_datamanager_v1_IngestAdEventsRequest_descriptor, + new java.lang.String[] { + "AdEvents", "EncryptionInfo", "ValidateOnly", + }); + internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_ads_datamanager_v1_IngestAdEventsResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_ads_datamanager_v1_RetrieveRequestStatusRequest_descriptor = + getDescriptor().getMessageType(8); internal_static_google_ads_datamanager_v1_RetrieveRequestStatusRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RetrieveRequestStatusRequest_descriptor, @@ -237,7 +270,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestId", }); internal_static_google_ads_datamanager_v1_RetrieveRequestStatusResponse_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(9); internal_static_google_ads_datamanager_v1_RetrieveRequestStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_RetrieveRequestStatusResponse_descriptor, @@ -245,6 +278,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestStatusPerDestination", }); descriptor.resolveAllFeaturesImmutable(); + com.google.ads.datamanager.v1.AdEventProto.getDescriptor(); com.google.ads.datamanager.v1.AudienceProto.getDescriptor(); com.google.ads.datamanager.v1.ConsentProto.getDescriptor(); com.google.ads.datamanager.v1.DestinationProto.getDescriptor(); diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MediaQuartile.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MediaQuartile.java new file mode 100644 index 000000000000..f10745307b70 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/MediaQuartile.java @@ -0,0 +1,260 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/viewability_info.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * The amount of the media that was played as discrete quartiles.
+ * 
+ * + * Protobuf enum {@code google.ads.datamanager.v1.MediaQuartile} + */ +@com.google.protobuf.Generated +public enum MediaQuartile implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified media quartile.
+   * 
+ * + * MEDIA_QUARTILE_UNSPECIFIED = 0; + */ + MEDIA_QUARTILE_UNSPECIFIED(0), + /** + * + * + *
+   * Start.
+   * 
+ * + * MEDIA_QUARTILE_START = 1; + */ + MEDIA_QUARTILE_START(1), + /** + * + * + *
+   * First quartile.
+   * 
+ * + * MEDIA_QUARTILE_FIRST_QUARTILE = 2; + */ + MEDIA_QUARTILE_FIRST_QUARTILE(2), + /** + * + * + *
+   * Midpoint.
+   * 
+ * + * MEDIA_QUARTILE_MIDPOINT = 3; + */ + MEDIA_QUARTILE_MIDPOINT(3), + /** + * + * + *
+   * Third quartile.
+   * 
+ * + * MEDIA_QUARTILE_THIRD_QUARTILE = 4; + */ + MEDIA_QUARTILE_THIRD_QUARTILE(4), + /** + * + * + *
+   * Complete.
+   * 
+ * + * MEDIA_QUARTILE_COMPLETE = 5; + */ + MEDIA_QUARTILE_COMPLETE(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MediaQuartile"); + } + + /** + * + * + *
+   * Unspecified media quartile.
+   * 
+ * + * MEDIA_QUARTILE_UNSPECIFIED = 0; + */ + public static final int MEDIA_QUARTILE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Start.
+   * 
+ * + * MEDIA_QUARTILE_START = 1; + */ + public static final int MEDIA_QUARTILE_START_VALUE = 1; + + /** + * + * + *
+   * First quartile.
+   * 
+ * + * MEDIA_QUARTILE_FIRST_QUARTILE = 2; + */ + public static final int MEDIA_QUARTILE_FIRST_QUARTILE_VALUE = 2; + + /** + * + * + *
+   * Midpoint.
+   * 
+ * + * MEDIA_QUARTILE_MIDPOINT = 3; + */ + public static final int MEDIA_QUARTILE_MIDPOINT_VALUE = 3; + + /** + * + * + *
+   * Third quartile.
+   * 
+ * + * MEDIA_QUARTILE_THIRD_QUARTILE = 4; + */ + public static final int MEDIA_QUARTILE_THIRD_QUARTILE_VALUE = 4; + + /** + * + * + *
+   * Complete.
+   * 
+ * + * MEDIA_QUARTILE_COMPLETE = 5; + */ + public static final int MEDIA_QUARTILE_COMPLETE_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MediaQuartile 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 MediaQuartile forNumber(int value) { + switch (value) { + case 0: + return MEDIA_QUARTILE_UNSPECIFIED; + case 1: + return MEDIA_QUARTILE_START; + case 2: + return MEDIA_QUARTILE_FIRST_QUARTILE; + case 3: + return MEDIA_QUARTILE_MIDPOINT; + case 4: + return MEDIA_QUARTILE_THIRD_QUARTILE; + case 5: + return MEDIA_QUARTILE_COMPLETE; + 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 MediaQuartile findValueByNumber(int number) { + return MediaQuartile.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.ViewabilityInfoProto.getDescriptor().getEnumTypes().get(1); + } + + private static final MediaQuartile[] VALUES = values(); + + public static MediaQuartile 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 MediaQuartile(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.MediaQuartile) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerCustomerAccount.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerCustomerAccount.java new file mode 100644 index 000000000000..7a639085e49e --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerCustomerAccount.java @@ -0,0 +1,981 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/partner_link_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * Represents a customer account in the partner's system.
+ * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.PartnerCustomerAccount} + */ +@com.google.protobuf.Generated +public final class PartnerCustomerAccount extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.PartnerCustomerAccount) + PartnerCustomerAccountOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PartnerCustomerAccount"); + } + + // Use PartnerCustomerAccount.newBuilder() to construct. + private PartnerCustomerAccount(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PartnerCustomerAccount() { + accountId_ = ""; + accountName_ = ""; + accountType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.PartnerLinkServiceProto + .internal_static_google_ads_datamanager_v1_PartnerCustomerAccount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.PartnerLinkServiceProto + .internal_static_google_ads_datamanager_v1_PartnerCustomerAccount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.PartnerCustomerAccount.class, + com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder.class); + } + + public static final int ACCOUNT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object accountId_ = ""; + + /** + * + * + *
+   * Required. The identifier of the customer account in the partner's ID space.
+   * 
+ * + * string account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The accountId. + */ + @java.lang.Override + public java.lang.String getAccountId() { + java.lang.Object ref = accountId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accountId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The identifier of the customer account in the partner's ID space.
+   * 
+ * + * string account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for accountId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccountIdBytes() { + java.lang.Object ref = accountId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCOUNT_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object accountName_ = ""; + + /** + * + * + *
+   * Optional. The name of the account.
+   * 
+ * + * string account_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The accountName. + */ + @java.lang.Override + public java.lang.String getAccountName() { + java.lang.Object ref = accountName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accountName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The name of the account.
+   * 
+ * + * string account_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for accountName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccountNameBytes() { + java.lang.Object ref = accountName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accountName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCOUNT_TYPE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object accountType_ = ""; + + /** + * + * + *
+   * Optional. The type of the account. Can be used to distinguish between
+   * advertiser accounts and business level accounts, for example.
+   * 
+ * + * string account_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The accountType. + */ + @java.lang.Override + public java.lang.String getAccountType() { + java.lang.Object ref = accountType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accountType_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The type of the account. Can be used to distinguish between
+   * advertiser accounts and business level accounts, for example.
+   * 
+ * + * string account_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for accountType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccountTypeBytes() { + java.lang.Object ref = accountType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accountType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accountId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, accountId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accountName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, accountName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accountType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, accountType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accountId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, accountId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accountName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, accountName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accountType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, accountType_); + } + 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.ads.datamanager.v1.PartnerCustomerAccount)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.PartnerCustomerAccount other = + (com.google.ads.datamanager.v1.PartnerCustomerAccount) obj; + + if (!getAccountId().equals(other.getAccountId())) return false; + if (!getAccountName().equals(other.getAccountName())) return false; + if (!getAccountType().equals(other.getAccountType())) 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) + ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + getAccountId().hashCode(); + hash = (37 * hash) + ACCOUNT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAccountName().hashCode(); + hash = (37 * hash) + ACCOUNT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAccountType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.PartnerCustomerAccount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.datamanager.v1.PartnerCustomerAccount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents a customer account in the partner's system.
+   * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.PartnerCustomerAccount} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.PartnerCustomerAccount) + com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.PartnerLinkServiceProto + .internal_static_google_ads_datamanager_v1_PartnerCustomerAccount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.PartnerLinkServiceProto + .internal_static_google_ads_datamanager_v1_PartnerCustomerAccount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.PartnerCustomerAccount.class, + com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder.class); + } + + // Construct using com.google.ads.datamanager.v1.PartnerCustomerAccount.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + accountId_ = ""; + accountName_ = ""; + accountType_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.PartnerLinkServiceProto + .internal_static_google_ads_datamanager_v1_PartnerCustomerAccount_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerCustomerAccount getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.PartnerCustomerAccount.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerCustomerAccount build() { + com.google.ads.datamanager.v1.PartnerCustomerAccount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerCustomerAccount buildPartial() { + com.google.ads.datamanager.v1.PartnerCustomerAccount result = + new com.google.ads.datamanager.v1.PartnerCustomerAccount(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.datamanager.v1.PartnerCustomerAccount result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.accountId_ = accountId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.accountName_ = accountName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.accountType_ = accountType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.datamanager.v1.PartnerCustomerAccount) { + return mergeFrom((com.google.ads.datamanager.v1.PartnerCustomerAccount) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.datamanager.v1.PartnerCustomerAccount other) { + if (other == com.google.ads.datamanager.v1.PartnerCustomerAccount.getDefaultInstance()) + return this; + if (!other.getAccountId().isEmpty()) { + accountId_ = other.accountId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAccountName().isEmpty()) { + accountName_ = other.accountName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAccountType().isEmpty()) { + accountType_ = other.accountType_; + 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: + { + accountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + accountName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + accountType_ = 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 accountId_ = ""; + + /** + * + * + *
+     * Required. The identifier of the customer account in the partner's ID space.
+     * 
+ * + * string account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The accountId. + */ + public java.lang.String getAccountId() { + java.lang.Object ref = accountId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accountId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The identifier of the customer account in the partner's ID space.
+     * 
+ * + * string account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for accountId. + */ + public com.google.protobuf.ByteString getAccountIdBytes() { + java.lang.Object ref = accountId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The identifier of the customer account in the partner's ID space.
+     * 
+ * + * string account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The accountId to set. + * @return This builder for chaining. + */ + public Builder setAccountId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + accountId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The identifier of the customer account in the partner's ID space.
+     * 
+ * + * string account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAccountId() { + accountId_ = getDefaultInstance().getAccountId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The identifier of the customer account in the partner's ID space.
+     * 
+ * + * string account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for accountId to set. + * @return This builder for chaining. + */ + public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accountId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object accountName_ = ""; + + /** + * + * + *
+     * Optional. The name of the account.
+     * 
+ * + * string account_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The accountName. + */ + public java.lang.String getAccountName() { + java.lang.Object ref = accountName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accountName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The name of the account.
+     * 
+ * + * string account_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for accountName. + */ + public com.google.protobuf.ByteString getAccountNameBytes() { + java.lang.Object ref = accountName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accountName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The name of the account.
+     * 
+ * + * string account_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The accountName to set. + * @return This builder for chaining. + */ + public Builder setAccountName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + accountName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The name of the account.
+     * 
+ * + * string account_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAccountName() { + accountName_ = getDefaultInstance().getAccountName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The name of the account.
+     * 
+ * + * string account_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for accountName to set. + * @return This builder for chaining. + */ + public Builder setAccountNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accountName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object accountType_ = ""; + + /** + * + * + *
+     * Optional. The type of the account. Can be used to distinguish between
+     * advertiser accounts and business level accounts, for example.
+     * 
+ * + * string account_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The accountType. + */ + public java.lang.String getAccountType() { + java.lang.Object ref = accountType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accountType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The type of the account. Can be used to distinguish between
+     * advertiser accounts and business level accounts, for example.
+     * 
+ * + * string account_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for accountType. + */ + public com.google.protobuf.ByteString getAccountTypeBytes() { + java.lang.Object ref = accountType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accountType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The type of the account. Can be used to distinguish between
+     * advertiser accounts and business level accounts, for example.
+     * 
+ * + * string account_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The accountType to set. + * @return This builder for chaining. + */ + public Builder setAccountType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + accountType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The type of the account. Can be used to distinguish between
+     * advertiser accounts and business level accounts, for example.
+     * 
+ * + * string account_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAccountType() { + accountType_ = getDefaultInstance().getAccountType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The type of the account. Can be used to distinguish between
+     * advertiser accounts and business level accounts, for example.
+     * 
+ * + * string account_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for accountType to set. + * @return This builder for chaining. + */ + public Builder setAccountTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accountType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.PartnerCustomerAccount) + } + + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.PartnerCustomerAccount) + private static final com.google.ads.datamanager.v1.PartnerCustomerAccount DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.datamanager.v1.PartnerCustomerAccount(); + } + + public static com.google.ads.datamanager.v1.PartnerCustomerAccount getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartnerCustomerAccount parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.ads.datamanager.v1.PartnerCustomerAccount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerCustomerAccountOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerCustomerAccountOrBuilder.java new file mode 100644 index 000000000000..4cb27fa98ff0 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerCustomerAccountOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/partner_link_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +@com.google.protobuf.Generated +public interface PartnerCustomerAccountOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.PartnerCustomerAccount) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The identifier of the customer account in the partner's ID space.
+   * 
+ * + * string account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The accountId. + */ + java.lang.String getAccountId(); + + /** + * + * + *
+   * Required. The identifier of the customer account in the partner's ID space.
+   * 
+ * + * string account_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for accountId. + */ + com.google.protobuf.ByteString getAccountIdBytes(); + + /** + * + * + *
+   * Optional. The name of the account.
+   * 
+ * + * string account_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The accountName. + */ + java.lang.String getAccountName(); + + /** + * + * + *
+   * Optional. The name of the account.
+   * 
+ * + * string account_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for accountName. + */ + com.google.protobuf.ByteString getAccountNameBytes(); + + /** + * + * + *
+   * Optional. The type of the account. Can be used to distinguish between
+   * advertiser accounts and business level accounts, for example.
+   * 
+ * + * string account_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The accountType. + */ + java.lang.String getAccountType(); + + /** + * + * + *
+   * Optional. The type of the account. Can be used to distinguish between
+   * advertiser accounts and business level accounts, for example.
+   * 
+ * + * string account_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for accountType. + */ + com.google.protobuf.ByteString getAccountTypeBytes(); +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLink.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLink.java index 82f4198373d2..fc0e66ccd452 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLink.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLink.java @@ -54,6 +54,7 @@ private PartnerLink(com.google.protobuf.GeneratedMessage.Builder builder) { private PartnerLink() { name_ = ""; partnerLinkId_ = ""; + featureSet_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -300,6 +301,186 @@ public com.google.ads.datamanager.v1.ProductAccountOrBuilder getPartnerAccountOr : partnerAccount_; } + public static final int FEATURE_SET_FIELD_NUMBER = 5; + private int featureSet_ = 0; + + /** + * + * + *
+   * Optional. Immutable. The set of features supported for the partner link.
+   * If not specified, the system behavior defaults to
+   * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT].
+   * 
+ * + * + * .google.ads.datamanager.v1.FeatureSet feature_set = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for featureSet. + */ + @java.lang.Override + public int getFeatureSetValue() { + return featureSet_; + } + + /** + * + * + *
+   * Optional. Immutable. The set of features supported for the partner link.
+   * If not specified, the system behavior defaults to
+   * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT].
+   * 
+ * + * + * .google.ads.datamanager.v1.FeatureSet feature_set = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The featureSet. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.FeatureSet getFeatureSet() { + com.google.ads.datamanager.v1.FeatureSet result = + com.google.ads.datamanager.v1.FeatureSet.forNumber(featureSet_); + return result == null ? com.google.ads.datamanager.v1.FeatureSet.UNRECOGNIZED : result; + } + + public static final int PARTNER_CUSTOMER_ACCOUNT_FIELD_NUMBER = 6; + private com.google.ads.datamanager.v1.PartnerCustomerAccount partnerCustomerAccount_; + + /** + * + * + *
+   * Optional. The customer account in the partner system.
+   * This is required for partner links with the
+   * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]
+   * feature set.
+   * 
+ * + * + * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the partnerCustomerAccount field is set. + */ + @java.lang.Override + public boolean hasPartnerCustomerAccount() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. The customer account in the partner system.
+   * This is required for partner links with the
+   * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]
+   * feature set.
+   * 
+ * + * + * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The partnerCustomerAccount. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerCustomerAccount getPartnerCustomerAccount() { + return partnerCustomerAccount_ == null + ? com.google.ads.datamanager.v1.PartnerCustomerAccount.getDefaultInstance() + : partnerCustomerAccount_; + } + + /** + * + * + *
+   * Optional. The customer account in the partner system.
+   * This is required for partner links with the
+   * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]
+   * feature set.
+   * 
+ * + * + * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder + getPartnerCustomerAccountOrBuilder() { + return partnerCustomerAccount_ == null + ? com.google.ads.datamanager.v1.PartnerCustomerAccount.getDefaultInstance() + : partnerCustomerAccount_; + } + + public static final int PARTNER_LINK_METADATA_FIELD_NUMBER = 7; + private com.google.ads.datamanager.v1.PartnerLinkMetadata partnerLinkMetadata_; + + /** + * + * + *
+   * Optional. Metadata associated with the partner link.
+   * This is optional and only accepted for partner links with the
+   * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT].
+   * 
+ * + * + * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the partnerLinkMetadata field is set. + */ + @java.lang.Override + public boolean hasPartnerLinkMetadata() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Optional. Metadata associated with the partner link.
+   * This is optional and only accepted for partner links with the
+   * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT].
+   * 
+ * + * + * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The partnerLinkMetadata. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerLinkMetadata getPartnerLinkMetadata() { + return partnerLinkMetadata_ == null + ? com.google.ads.datamanager.v1.PartnerLinkMetadata.getDefaultInstance() + : partnerLinkMetadata_; + } + + /** + * + * + *
+   * Optional. Metadata associated with the partner link.
+   * This is optional and only accepted for partner links with the
+   * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT].
+   * 
+ * + * + * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerLinkMetadataOrBuilder + getPartnerLinkMetadataOrBuilder() { + return partnerLinkMetadata_ == null + ? com.google.ads.datamanager.v1.PartnerLinkMetadata.getDefaultInstance() + : partnerLinkMetadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -326,6 +507,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getPartnerAccount()); } + if (featureSet_ + != com.google.ads.datamanager.v1.FeatureSet.FEATURE_SET_UNSPECIFIED.getNumber()) { + output.writeEnum(5, featureSet_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getPartnerCustomerAccount()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(7, getPartnerLinkMetadata()); + } getUnknownFields().writeTo(output); } @@ -347,6 +538,17 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPartnerAccount()); } + if (featureSet_ + != com.google.ads.datamanager.v1.FeatureSet.FEATURE_SET_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, featureSet_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPartnerCustomerAccount()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPartnerLinkMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -373,6 +575,15 @@ public boolean equals(final java.lang.Object obj) { if (hasPartnerAccount()) { if (!getPartnerAccount().equals(other.getPartnerAccount())) return false; } + if (featureSet_ != other.featureSet_) return false; + if (hasPartnerCustomerAccount() != other.hasPartnerCustomerAccount()) return false; + if (hasPartnerCustomerAccount()) { + if (!getPartnerCustomerAccount().equals(other.getPartnerCustomerAccount())) return false; + } + if (hasPartnerLinkMetadata() != other.hasPartnerLinkMetadata()) return false; + if (hasPartnerLinkMetadata()) { + if (!getPartnerLinkMetadata().equals(other.getPartnerLinkMetadata())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -396,6 +607,16 @@ public int hashCode() { hash = (37 * hash) + PARTNER_ACCOUNT_FIELD_NUMBER; hash = (53 * hash) + getPartnerAccount().hashCode(); } + hash = (37 * hash) + FEATURE_SET_FIELD_NUMBER; + hash = (53 * hash) + featureSet_; + if (hasPartnerCustomerAccount()) { + hash = (37 * hash) + PARTNER_CUSTOMER_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getPartnerCustomerAccount().hashCode(); + } + if (hasPartnerLinkMetadata()) { + hash = (37 * hash) + PARTNER_LINK_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getPartnerLinkMetadata().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -539,6 +760,8 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetOwningAccountFieldBuilder(); internalGetPartnerAccountFieldBuilder(); + internalGetPartnerCustomerAccountFieldBuilder(); + internalGetPartnerLinkMetadataFieldBuilder(); } } @@ -558,6 +781,17 @@ public Builder clear() { partnerAccountBuilder_.dispose(); partnerAccountBuilder_ = null; } + featureSet_ = 0; + partnerCustomerAccount_ = null; + if (partnerCustomerAccountBuilder_ != null) { + partnerCustomerAccountBuilder_.dispose(); + partnerCustomerAccountBuilder_ = null; + } + partnerLinkMetadata_ = null; + if (partnerLinkMetadataBuilder_ != null) { + partnerLinkMetadataBuilder_.dispose(); + partnerLinkMetadataBuilder_ = null; + } return this; } @@ -611,6 +845,23 @@ private void buildPartial0(com.google.ads.datamanager.v1.PartnerLink result) { partnerAccountBuilder_ == null ? partnerAccount_ : partnerAccountBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.featureSet_ = featureSet_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.partnerCustomerAccount_ = + partnerCustomerAccountBuilder_ == null + ? partnerCustomerAccount_ + : partnerCustomerAccountBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.partnerLinkMetadata_ = + partnerLinkMetadataBuilder_ == null + ? partnerLinkMetadata_ + : partnerLinkMetadataBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -642,6 +893,15 @@ public Builder mergeFrom(com.google.ads.datamanager.v1.PartnerLink other) { if (other.hasPartnerAccount()) { mergePartnerAccount(other.getPartnerAccount()); } + if (other.featureSet_ != 0) { + setFeatureSetValue(other.getFeatureSetValue()); + } + if (other.hasPartnerCustomerAccount()) { + mergePartnerCustomerAccount(other.getPartnerCustomerAccount()); + } + if (other.hasPartnerLinkMetadata()) { + mergePartnerLinkMetadata(other.getPartnerLinkMetadata()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -694,6 +954,27 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 40: + { + featureSet_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage( + internalGetPartnerCustomerAccountFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetPartnerLinkMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1373,6 +1654,601 @@ public com.google.ads.datamanager.v1.ProductAccountOrBuilder getPartnerAccountOr return partnerAccountBuilder_; } + private int featureSet_ = 0; + + /** + * + * + *
+     * Optional. Immutable. The set of features supported for the partner link.
+     * If not specified, the system behavior defaults to
+     * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT].
+     * 
+ * + * + * .google.ads.datamanager.v1.FeatureSet feature_set = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for featureSet. + */ + @java.lang.Override + public int getFeatureSetValue() { + return featureSet_; + } + + /** + * + * + *
+     * Optional. Immutable. The set of features supported for the partner link.
+     * If not specified, the system behavior defaults to
+     * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT].
+     * 
+ * + * + * .google.ads.datamanager.v1.FeatureSet feature_set = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for featureSet to set. + * @return This builder for chaining. + */ + public Builder setFeatureSetValue(int value) { + featureSet_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. The set of features supported for the partner link.
+     * If not specified, the system behavior defaults to
+     * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT].
+     * 
+ * + * + * .google.ads.datamanager.v1.FeatureSet feature_set = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The featureSet. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.FeatureSet getFeatureSet() { + com.google.ads.datamanager.v1.FeatureSet result = + com.google.ads.datamanager.v1.FeatureSet.forNumber(featureSet_); + return result == null ? com.google.ads.datamanager.v1.FeatureSet.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. Immutable. The set of features supported for the partner link.
+     * If not specified, the system behavior defaults to
+     * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT].
+     * 
+ * + * + * .google.ads.datamanager.v1.FeatureSet feature_set = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The featureSet to set. + * @return This builder for chaining. + */ + public Builder setFeatureSet(com.google.ads.datamanager.v1.FeatureSet value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + featureSet_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Immutable. The set of features supported for the partner link.
+     * If not specified, the system behavior defaults to
+     * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT].
+     * 
+ * + * + * .google.ads.datamanager.v1.FeatureSet feature_set = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearFeatureSet() { + bitField0_ = (bitField0_ & ~0x00000010); + featureSet_ = 0; + onChanged(); + return this; + } + + private com.google.ads.datamanager.v1.PartnerCustomerAccount partnerCustomerAccount_; + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.PartnerCustomerAccount, + com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder, + com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder> + partnerCustomerAccountBuilder_; + + /** + * + * + *
+     * Optional. The customer account in the partner system.
+     * This is required for partner links with the
+     * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]
+     * feature set.
+     * 
+ * + * + * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the partnerCustomerAccount field is set. + */ + public boolean hasPartnerCustomerAccount() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. The customer account in the partner system.
+     * This is required for partner links with the
+     * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]
+     * feature set.
+     * 
+ * + * + * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The partnerCustomerAccount. + */ + public com.google.ads.datamanager.v1.PartnerCustomerAccount getPartnerCustomerAccount() { + if (partnerCustomerAccountBuilder_ == null) { + return partnerCustomerAccount_ == null + ? com.google.ads.datamanager.v1.PartnerCustomerAccount.getDefaultInstance() + : partnerCustomerAccount_; + } else { + return partnerCustomerAccountBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The customer account in the partner system.
+     * This is required for partner links with the
+     * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]
+     * feature set.
+     * 
+ * + * + * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPartnerCustomerAccount( + com.google.ads.datamanager.v1.PartnerCustomerAccount value) { + if (partnerCustomerAccountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partnerCustomerAccount_ = value; + } else { + partnerCustomerAccountBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The customer account in the partner system.
+     * This is required for partner links with the
+     * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]
+     * feature set.
+     * 
+ * + * + * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPartnerCustomerAccount( + com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder builderForValue) { + if (partnerCustomerAccountBuilder_ == null) { + partnerCustomerAccount_ = builderForValue.build(); + } else { + partnerCustomerAccountBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The customer account in the partner system.
+     * This is required for partner links with the
+     * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]
+     * feature set.
+     * 
+ * + * + * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePartnerCustomerAccount( + com.google.ads.datamanager.v1.PartnerCustomerAccount value) { + if (partnerCustomerAccountBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && partnerCustomerAccount_ != null + && partnerCustomerAccount_ + != com.google.ads.datamanager.v1.PartnerCustomerAccount.getDefaultInstance()) { + getPartnerCustomerAccountBuilder().mergeFrom(value); + } else { + partnerCustomerAccount_ = value; + } + } else { + partnerCustomerAccountBuilder_.mergeFrom(value); + } + if (partnerCustomerAccount_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The customer account in the partner system.
+     * This is required for partner links with the
+     * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]
+     * feature set.
+     * 
+ * + * + * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPartnerCustomerAccount() { + bitField0_ = (bitField0_ & ~0x00000020); + partnerCustomerAccount_ = null; + if (partnerCustomerAccountBuilder_ != null) { + partnerCustomerAccountBuilder_.dispose(); + partnerCustomerAccountBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The customer account in the partner system.
+     * This is required for partner links with the
+     * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]
+     * feature set.
+     * 
+ * + * + * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder + getPartnerCustomerAccountBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetPartnerCustomerAccountFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The customer account in the partner system.
+     * This is required for partner links with the
+     * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]
+     * feature set.
+     * 
+ * + * + * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder + getPartnerCustomerAccountOrBuilder() { + if (partnerCustomerAccountBuilder_ != null) { + return partnerCustomerAccountBuilder_.getMessageOrBuilder(); + } else { + return partnerCustomerAccount_ == null + ? com.google.ads.datamanager.v1.PartnerCustomerAccount.getDefaultInstance() + : partnerCustomerAccount_; + } + } + + /** + * + * + *
+     * Optional. The customer account in the partner system.
+     * This is required for partner links with the
+     * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]
+     * feature set.
+     * 
+ * + * + * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.PartnerCustomerAccount, + com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder, + com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder> + internalGetPartnerCustomerAccountFieldBuilder() { + if (partnerCustomerAccountBuilder_ == null) { + partnerCustomerAccountBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.PartnerCustomerAccount, + com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder, + com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder>( + getPartnerCustomerAccount(), getParentForChildren(), isClean()); + partnerCustomerAccount_ = null; + } + return partnerCustomerAccountBuilder_; + } + + private com.google.ads.datamanager.v1.PartnerLinkMetadata partnerLinkMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.PartnerLinkMetadata, + com.google.ads.datamanager.v1.PartnerLinkMetadata.Builder, + com.google.ads.datamanager.v1.PartnerLinkMetadataOrBuilder> + partnerLinkMetadataBuilder_; + + /** + * + * + *
+     * Optional. Metadata associated with the partner link.
+     * This is optional and only accepted for partner links with the
+     * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT].
+     * 
+ * + * + * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the partnerLinkMetadata field is set. + */ + public boolean hasPartnerLinkMetadata() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. Metadata associated with the partner link.
+     * This is optional and only accepted for partner links with the
+     * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT].
+     * 
+ * + * + * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The partnerLinkMetadata. + */ + public com.google.ads.datamanager.v1.PartnerLinkMetadata getPartnerLinkMetadata() { + if (partnerLinkMetadataBuilder_ == null) { + return partnerLinkMetadata_ == null + ? com.google.ads.datamanager.v1.PartnerLinkMetadata.getDefaultInstance() + : partnerLinkMetadata_; + } else { + return partnerLinkMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Metadata associated with the partner link.
+     * This is optional and only accepted for partner links with the
+     * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT].
+     * 
+ * + * + * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPartnerLinkMetadata(com.google.ads.datamanager.v1.PartnerLinkMetadata value) { + if (partnerLinkMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + partnerLinkMetadata_ = value; + } else { + partnerLinkMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Metadata associated with the partner link.
+     * This is optional and only accepted for partner links with the
+     * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT].
+     * 
+ * + * + * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPartnerLinkMetadata( + com.google.ads.datamanager.v1.PartnerLinkMetadata.Builder builderForValue) { + if (partnerLinkMetadataBuilder_ == null) { + partnerLinkMetadata_ = builderForValue.build(); + } else { + partnerLinkMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Metadata associated with the partner link.
+     * This is optional and only accepted for partner links with the
+     * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT].
+     * 
+ * + * + * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePartnerLinkMetadata( + com.google.ads.datamanager.v1.PartnerLinkMetadata value) { + if (partnerLinkMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && partnerLinkMetadata_ != null + && partnerLinkMetadata_ + != com.google.ads.datamanager.v1.PartnerLinkMetadata.getDefaultInstance()) { + getPartnerLinkMetadataBuilder().mergeFrom(value); + } else { + partnerLinkMetadata_ = value; + } + } else { + partnerLinkMetadataBuilder_.mergeFrom(value); + } + if (partnerLinkMetadata_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Metadata associated with the partner link.
+     * This is optional and only accepted for partner links with the
+     * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT].
+     * 
+ * + * + * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPartnerLinkMetadata() { + bitField0_ = (bitField0_ & ~0x00000040); + partnerLinkMetadata_ = null; + if (partnerLinkMetadataBuilder_ != null) { + partnerLinkMetadataBuilder_.dispose(); + partnerLinkMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Metadata associated with the partner link.
+     * This is optional and only accepted for partner links with the
+     * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT].
+     * 
+ * + * + * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.datamanager.v1.PartnerLinkMetadata.Builder + getPartnerLinkMetadataBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetPartnerLinkMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Metadata associated with the partner link.
+     * This is optional and only accepted for partner links with the
+     * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT].
+     * 
+ * + * + * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.datamanager.v1.PartnerLinkMetadataOrBuilder + getPartnerLinkMetadataOrBuilder() { + if (partnerLinkMetadataBuilder_ != null) { + return partnerLinkMetadataBuilder_.getMessageOrBuilder(); + } else { + return partnerLinkMetadata_ == null + ? com.google.ads.datamanager.v1.PartnerLinkMetadata.getDefaultInstance() + : partnerLinkMetadata_; + } + } + + /** + * + * + *
+     * Optional. Metadata associated with the partner link.
+     * This is optional and only accepted for partner links with the
+     * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT].
+     * 
+ * + * + * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.PartnerLinkMetadata, + com.google.ads.datamanager.v1.PartnerLinkMetadata.Builder, + com.google.ads.datamanager.v1.PartnerLinkMetadataOrBuilder> + internalGetPartnerLinkMetadataFieldBuilder() { + if (partnerLinkMetadataBuilder_ == null) { + partnerLinkMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.ads.datamanager.v1.PartnerLinkMetadata, + com.google.ads.datamanager.v1.PartnerLinkMetadata.Builder, + com.google.ads.datamanager.v1.PartnerLinkMetadataOrBuilder>( + getPartnerLinkMetadata(), getParentForChildren(), isClean()); + partnerLinkMetadata_ = null; + } + return partnerLinkMetadataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.PartnerLink) } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkMetadata.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkMetadata.java new file mode 100644 index 000000000000..de1f2c56297e --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkMetadata.java @@ -0,0 +1,985 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/partner_link_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * Represents metadata associated with a partner link.
+ * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.PartnerLinkMetadata} + */ +@com.google.protobuf.Generated +public final class PartnerLinkMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.PartnerLinkMetadata) + PartnerLinkMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PartnerLinkMetadata"); + } + + // Use PartnerLinkMetadata.newBuilder() to construct. + private PartnerLinkMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PartnerLinkMetadata() { + implicitAccounts_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.PartnerLinkServiceProto + .internal_static_google_ads_datamanager_v1_PartnerLinkMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.PartnerLinkServiceProto + .internal_static_google_ads_datamanager_v1_PartnerLinkMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.PartnerLinkMetadata.class, + com.google.ads.datamanager.v1.PartnerLinkMetadata.Builder.class); + } + + public static final int IMPLICIT_ACCOUNTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List implicitAccounts_; + + /** + * + * + *
+   * Optional. The list of implicit accounts.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getImplicitAccountsList() { + return implicitAccounts_; + } + + /** + * + * + *
+   * Optional. The list of implicit accounts.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getImplicitAccountsOrBuilderList() { + return implicitAccounts_; + } + + /** + * + * + *
+   * Optional. The list of implicit accounts.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getImplicitAccountsCount() { + return implicitAccounts_.size(); + } + + /** + * + * + *
+   * Optional. The list of implicit accounts.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerCustomerAccount getImplicitAccounts(int index) { + return implicitAccounts_.get(index); + } + + /** + * + * + *
+   * Optional. The list of implicit accounts.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder getImplicitAccountsOrBuilder( + int index) { + return implicitAccounts_.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 < implicitAccounts_.size(); i++) { + output.writeMessage(1, implicitAccounts_.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 < implicitAccounts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, implicitAccounts_.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.ads.datamanager.v1.PartnerLinkMetadata)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.PartnerLinkMetadata other = + (com.google.ads.datamanager.v1.PartnerLinkMetadata) obj; + + if (!getImplicitAccountsList().equals(other.getImplicitAccountsList())) 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 (getImplicitAccountsCount() > 0) { + hash = (37 * hash) + IMPLICIT_ACCOUNTS_FIELD_NUMBER; + hash = (53 * hash) + getImplicitAccountsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.PartnerLinkMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.datamanager.v1.PartnerLinkMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Represents metadata associated with a partner link.
+   * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.PartnerLinkMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.PartnerLinkMetadata) + com.google.ads.datamanager.v1.PartnerLinkMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.PartnerLinkServiceProto + .internal_static_google_ads_datamanager_v1_PartnerLinkMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.PartnerLinkServiceProto + .internal_static_google_ads_datamanager_v1_PartnerLinkMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.PartnerLinkMetadata.class, + com.google.ads.datamanager.v1.PartnerLinkMetadata.Builder.class); + } + + // Construct using com.google.ads.datamanager.v1.PartnerLinkMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (implicitAccountsBuilder_ == null) { + implicitAccounts_ = java.util.Collections.emptyList(); + } else { + implicitAccounts_ = null; + implicitAccountsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.PartnerLinkServiceProto + .internal_static_google_ads_datamanager_v1_PartnerLinkMetadata_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerLinkMetadata getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.PartnerLinkMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerLinkMetadata build() { + com.google.ads.datamanager.v1.PartnerLinkMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.PartnerLinkMetadata buildPartial() { + com.google.ads.datamanager.v1.PartnerLinkMetadata result = + new com.google.ads.datamanager.v1.PartnerLinkMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.datamanager.v1.PartnerLinkMetadata result) { + if (implicitAccountsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + implicitAccounts_ = java.util.Collections.unmodifiableList(implicitAccounts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.implicitAccounts_ = implicitAccounts_; + } else { + result.implicitAccounts_ = implicitAccountsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.datamanager.v1.PartnerLinkMetadata result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.datamanager.v1.PartnerLinkMetadata) { + return mergeFrom((com.google.ads.datamanager.v1.PartnerLinkMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.datamanager.v1.PartnerLinkMetadata other) { + if (other == com.google.ads.datamanager.v1.PartnerLinkMetadata.getDefaultInstance()) + return this; + if (implicitAccountsBuilder_ == null) { + if (!other.implicitAccounts_.isEmpty()) { + if (implicitAccounts_.isEmpty()) { + implicitAccounts_ = other.implicitAccounts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureImplicitAccountsIsMutable(); + implicitAccounts_.addAll(other.implicitAccounts_); + } + onChanged(); + } + } else { + if (!other.implicitAccounts_.isEmpty()) { + if (implicitAccountsBuilder_.isEmpty()) { + implicitAccountsBuilder_.dispose(); + implicitAccountsBuilder_ = null; + implicitAccounts_ = other.implicitAccounts_; + bitField0_ = (bitField0_ & ~0x00000001); + implicitAccountsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetImplicitAccountsFieldBuilder() + : null; + } else { + implicitAccountsBuilder_.addAllMessages(other.implicitAccounts_); + } + } + } + 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.ads.datamanager.v1.PartnerCustomerAccount m = + input.readMessage( + com.google.ads.datamanager.v1.PartnerCustomerAccount.parser(), + extensionRegistry); + if (implicitAccountsBuilder_ == null) { + ensureImplicitAccountsIsMutable(); + implicitAccounts_.add(m); + } else { + implicitAccountsBuilder_.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 implicitAccounts_ = + java.util.Collections.emptyList(); + + private void ensureImplicitAccountsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + implicitAccounts_ = + new java.util.ArrayList( + implicitAccounts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.PartnerCustomerAccount, + com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder, + com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder> + implicitAccountsBuilder_; + + /** + * + * + *
+     * Optional. The list of implicit accounts.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getImplicitAccountsList() { + if (implicitAccountsBuilder_ == null) { + return java.util.Collections.unmodifiableList(implicitAccounts_); + } else { + return implicitAccountsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The list of implicit accounts.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getImplicitAccountsCount() { + if (implicitAccountsBuilder_ == null) { + return implicitAccounts_.size(); + } else { + return implicitAccountsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The list of implicit accounts.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.datamanager.v1.PartnerCustomerAccount getImplicitAccounts(int index) { + if (implicitAccountsBuilder_ == null) { + return implicitAccounts_.get(index); + } else { + return implicitAccountsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The list of implicit accounts.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setImplicitAccounts( + int index, com.google.ads.datamanager.v1.PartnerCustomerAccount value) { + if (implicitAccountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureImplicitAccountsIsMutable(); + implicitAccounts_.set(index, value); + onChanged(); + } else { + implicitAccountsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of implicit accounts.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setImplicitAccounts( + int index, com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder builderForValue) { + if (implicitAccountsBuilder_ == null) { + ensureImplicitAccountsIsMutable(); + implicitAccounts_.set(index, builderForValue.build()); + onChanged(); + } else { + implicitAccountsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of implicit accounts.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addImplicitAccounts(com.google.ads.datamanager.v1.PartnerCustomerAccount value) { + if (implicitAccountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureImplicitAccountsIsMutable(); + implicitAccounts_.add(value); + onChanged(); + } else { + implicitAccountsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of implicit accounts.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addImplicitAccounts( + int index, com.google.ads.datamanager.v1.PartnerCustomerAccount value) { + if (implicitAccountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureImplicitAccountsIsMutable(); + implicitAccounts_.add(index, value); + onChanged(); + } else { + implicitAccountsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of implicit accounts.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addImplicitAccounts( + com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder builderForValue) { + if (implicitAccountsBuilder_ == null) { + ensureImplicitAccountsIsMutable(); + implicitAccounts_.add(builderForValue.build()); + onChanged(); + } else { + implicitAccountsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of implicit accounts.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addImplicitAccounts( + int index, com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder builderForValue) { + if (implicitAccountsBuilder_ == null) { + ensureImplicitAccountsIsMutable(); + implicitAccounts_.add(index, builderForValue.build()); + onChanged(); + } else { + implicitAccountsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of implicit accounts.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllImplicitAccounts( + java.lang.Iterable values) { + if (implicitAccountsBuilder_ == null) { + ensureImplicitAccountsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, implicitAccounts_); + onChanged(); + } else { + implicitAccountsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of implicit accounts.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearImplicitAccounts() { + if (implicitAccountsBuilder_ == null) { + implicitAccounts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + implicitAccountsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of implicit accounts.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeImplicitAccounts(int index) { + if (implicitAccountsBuilder_ == null) { + ensureImplicitAccountsIsMutable(); + implicitAccounts_.remove(index); + onChanged(); + } else { + implicitAccountsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The list of implicit accounts.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder getImplicitAccountsBuilder( + int index) { + return internalGetImplicitAccountsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The list of implicit accounts.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder + getImplicitAccountsOrBuilder(int index) { + if (implicitAccountsBuilder_ == null) { + return implicitAccounts_.get(index); + } else { + return implicitAccountsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The list of implicit accounts.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getImplicitAccountsOrBuilderList() { + if (implicitAccountsBuilder_ != null) { + return implicitAccountsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(implicitAccounts_); + } + } + + /** + * + * + *
+     * Optional. The list of implicit accounts.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder + addImplicitAccountsBuilder() { + return internalGetImplicitAccountsFieldBuilder() + .addBuilder(com.google.ads.datamanager.v1.PartnerCustomerAccount.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The list of implicit accounts.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder addImplicitAccountsBuilder( + int index) { + return internalGetImplicitAccountsFieldBuilder() + .addBuilder( + index, com.google.ads.datamanager.v1.PartnerCustomerAccount.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The list of implicit accounts.
+     * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getImplicitAccountsBuilderList() { + return internalGetImplicitAccountsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.PartnerCustomerAccount, + com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder, + com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder> + internalGetImplicitAccountsFieldBuilder() { + if (implicitAccountsBuilder_ == null) { + implicitAccountsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.ads.datamanager.v1.PartnerCustomerAccount, + com.google.ads.datamanager.v1.PartnerCustomerAccount.Builder, + com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder>( + implicitAccounts_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + implicitAccounts_ = null; + } + return implicitAccountsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.PartnerLinkMetadata) + } + + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.PartnerLinkMetadata) + private static final com.google.ads.datamanager.v1.PartnerLinkMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.datamanager.v1.PartnerLinkMetadata(); + } + + public static com.google.ads.datamanager.v1.PartnerLinkMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartnerLinkMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.ads.datamanager.v1.PartnerLinkMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkMetadataOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkMetadataOrBuilder.java new file mode 100644 index 000000000000..8968f8349543 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkMetadataOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/partner_link_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +@com.google.protobuf.Generated +public interface PartnerLinkMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.PartnerLinkMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The list of implicit accounts.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getImplicitAccountsList(); + + /** + * + * + *
+   * Optional. The list of implicit accounts.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.datamanager.v1.PartnerCustomerAccount getImplicitAccounts(int index); + + /** + * + * + *
+   * Optional. The list of implicit accounts.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getImplicitAccountsCount(); + + /** + * + * + *
+   * Optional. The list of implicit accounts.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getImplicitAccountsOrBuilderList(); + + /** + * + * + *
+   * Optional. The list of implicit accounts.
+   * 
+ * + * + * repeated .google.ads.datamanager.v1.PartnerCustomerAccount implicit_accounts = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder getImplicitAccountsOrBuilder( + int index); +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkOrBuilder.java index ba31e2586cb5..56ff11b12874 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkOrBuilder.java @@ -167,4 +167,140 @@ public interface PartnerLinkOrBuilder * */ com.google.ads.datamanager.v1.ProductAccountOrBuilder getPartnerAccountOrBuilder(); + + /** + * + * + *
+   * Optional. Immutable. The set of features supported for the partner link.
+   * If not specified, the system behavior defaults to
+   * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT].
+   * 
+ * + * + * .google.ads.datamanager.v1.FeatureSet feature_set = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for featureSet. + */ + int getFeatureSetValue(); + + /** + * + * + *
+   * Optional. Immutable. The set of features supported for the partner link.
+   * If not specified, the system behavior defaults to
+   * [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT].
+   * 
+ * + * + * .google.ads.datamanager.v1.FeatureSet feature_set = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The featureSet. + */ + com.google.ads.datamanager.v1.FeatureSet getFeatureSet(); + + /** + * + * + *
+   * Optional. The customer account in the partner system.
+   * This is required for partner links with the
+   * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]
+   * feature set.
+   * 
+ * + * + * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the partnerCustomerAccount field is set. + */ + boolean hasPartnerCustomerAccount(); + + /** + * + * + *
+   * Optional. The customer account in the partner system.
+   * This is required for partner links with the
+   * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]
+   * feature set.
+   * 
+ * + * + * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The partnerCustomerAccount. + */ + com.google.ads.datamanager.v1.PartnerCustomerAccount getPartnerCustomerAccount(); + + /** + * + * + *
+   * Optional. The customer account in the partner system.
+   * This is required for partner links with the
+   * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]
+   * feature set.
+   * 
+ * + * + * .google.ads.datamanager.v1.PartnerCustomerAccount partner_customer_account = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.datamanager.v1.PartnerCustomerAccountOrBuilder + getPartnerCustomerAccountOrBuilder(); + + /** + * + * + *
+   * Optional. Metadata associated with the partner link.
+   * This is optional and only accepted for partner links with the
+   * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT].
+   * 
+ * + * + * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the partnerLinkMetadata field is set. + */ + boolean hasPartnerLinkMetadata(); + + /** + * + * + *
+   * Optional. Metadata associated with the partner link.
+   * This is optional and only accepted for partner links with the
+   * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT].
+   * 
+ * + * + * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The partnerLinkMetadata. + */ + com.google.ads.datamanager.v1.PartnerLinkMetadata getPartnerLinkMetadata(); + + /** + * + * + *
+   * Optional. Metadata associated with the partner link.
+   * This is optional and only accepted for partner links with the
+   * [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT].
+   * 
+ * + * + * .google.ads.datamanager.v1.PartnerLinkMetadata partner_link_metadata = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.datamanager.v1.PartnerLinkMetadataOrBuilder getPartnerLinkMetadataOrBuilder(); } diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceProto.java index 9767dd1e026c..c85fd546c55a 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceProto.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PartnerLinkServiceProto.java @@ -60,6 +60,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_ads_datamanager_v1_PartnerLink_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_ads_datamanager_v1_PartnerLink_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_datamanager_v1_PartnerCustomerAccount_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_ads_datamanager_v1_PartnerCustomerAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_datamanager_v1_PartnerLinkMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_ads_datamanager_v1_PartnerLinkMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -69,59 +77,75 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n4google/ads/datamanager/v1/partner_link" - + "_service.proto\022\031google.ads.datamanager.v" + "\n" + + "4google/ads/datamanager/v1/partner_link_service.proto\022\031google.ads.datamanager.v" + "1\032+google/ads/datamanager/v1/destination" + ".proto\032\034google/api/annotations.proto\032\027go" + "ogle/api/client.proto\032\037google/api/field_" - + "behavior.proto\032\031google/api/resource.prot" - + "o\032\033google/protobuf/empty.proto\"\235\001\n\030Creat" - + "ePartnerLinkRequest\022>\n\006parent\030\001 \001(\tB.\340A\002" - + "\372A(\022&datamanager.googleapis.com/PartnerL" - + "ink\022A\n\014partner_link\030\002 \001(\0132&.google.ads.d" - + "atamanager.v1.PartnerLinkB\003\340A\002\"X\n\030Delete" - + "PartnerLinkRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(" - + "\n&datamanager.googleapis.com/PartnerLink" - + "\"\227\001\n\031SearchPartnerLinksRequest\022>\n\006parent" - + "\030\001 \001(\tB.\340A\002\372A(\022&datamanager.googleapis.c" - + "om/PartnerLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" - + "e_token\030\003 \001(\t\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"t\n\032Se" - + "archPartnerLinksResponse\022=\n\rpartner_link" - + "s\030\001 \003(\0132&.google.ads.datamanager.v1.Part" - + "nerLink\022\027\n\017next_page_token\030\002 \001(\t\"\345\002\n\013Par" - + "tnerLink\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\034\n\017partner_l" - + "ink_id\030\002 \001(\tB\003\340A\003\022F\n\016owning_account\030\003 \001(" - + "\0132).google.ads.datamanager.v1.ProductAcc" - + "ountB\003\340A\002\022G\n\017partner_account\030\004 \001(\0132).goo" - + "gle.ads.datamanager.v1.ProductAccountB\003\340" - + "A\002:\223\001\352A\217\001\n&datamanager.googleapis.com/Pa" - + "rtnerLink\022JaccountTypes/{account_type}/a" - + "ccounts/{account}/partnerLinks/{partner_" - + "link}*\014partnerLinks2\013partnerLink2\346\005\n\022Par" - + "tnerLinkService\022\321\001\n\021CreatePartnerLink\0223." - + "google.ads.datamanager.v1.CreatePartnerL" - + "inkRequest\032&.google.ads.datamanager.v1.P" - + "artnerLink\"_\332A\023parent,partner_link\202\323\344\223\002C" - + "\"3/v1/{parent=accountTypes/*/accounts/*}" - + "/partnerLinks:\014partner_link\022\244\001\n\021DeletePa" - + "rtnerLink\0223.google.ads.datamanager.v1.De" - + "letePartnerLinkRequest\032\026.google.protobuf" - + ".Empty\"B\332A\004name\202\323\344\223\0025*3/v1/{name=account" - + "Types/*/accounts/*/partnerLinks/*}\022\316\001\n\022S" - + "earchPartnerLinks\0224.google.ads.datamanag" - + "er.v1.SearchPartnerLinksRequest\0325.google" - + ".ads.datamanager.v1.SearchPartnerLinksRe" - + "sponse\"K\332A\006parent\202\323\344\223\002<\022:/v1/{parent=acc" - + "ountTypes/*/accounts/*}/partnerLinks:sea" - + "rch\032\203\001\312A\032datamanager.googleapis.com\322Acht" - + "tps://www.googleapis.com/auth/datamanage" - + "r,https://www.googleapis.com/auth/datama" - + "nager.partnerlinkB\324\001\n\035com.google.ads.dat" - + "amanager.v1B\027PartnerLinkServiceProtoP\001ZA" - + "cloud.google.com/go/datamanager/apiv1/da" - + "tamanagerpb;datamanagerpb\252\002\031Google.Ads.D" - + "ataManager.V1\312\002\031Google\\Ads\\DataManager\\V" - + "1\352\002\034Google::Ads::DataManager::V1b\006proto3" + + "behavior.proto\032\031google/api/resource.proto\032\033google/protobuf/empty.proto\"\235\001\n" + + "\030CreatePartnerLinkRequest\022>\n" + + "\006parent\030\001 \001(\tB.\340A\002" + + "\372A(\022&datamanager.googleapis.com/PartnerLink\022A\n" + + "\014partner_link\030\002" + + " \001(\0132&.google.ads.datamanager.v1.PartnerLinkB\003\340A\002\"X\n" + + "\030DeletePartnerLinkRequest\022<\n" + + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&datamanager.googleapis.com/PartnerLink\"\227\001\n" + + "\031SearchPartnerLinksRequest\022>\n" + + "\006parent\030\001 \001(" + + "\tB.\340A\002\372A(\022&datamanager.googleapis.com/PartnerLink\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\"t\n" + + "\032SearchPartnerLinksResponse\022=\n\r" + + "partner_links\030\001 \003(\0132&.google.ads.datamanager.v1.PartnerLink\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\327\004\n" + + "\013PartnerLink\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\034\n" + + "\017partner_link_id\030\002 \001(\tB\003\340A\003\022F\n" + + "\016owning_account\030\003 \001(" + + "\0132).google.ads.datamanager.v1.ProductAccountB\003\340A\002\022G\n" + + "\017partner_account\030\004 \001(\0132).goo" + + "gle.ads.datamanager.v1.ProductAccountB\003\340A\002\022B\n" + + "\013feature_set\030\005" + + " \001(\0162%.google.ads.datamanager.v1.FeatureSetB\006\340A\001\340A\005\022X\n" + + "\030partner_customer_account\030\006 \001(\01321.google.ads.da" + + "tamanager.v1.PartnerCustomerAccountB\003\340A\001\022R\n" + + "\025partner_link_metadata\030\007 \001(\0132..google" + + ".ads.datamanager.v1.PartnerLinkMetadataB\003\340A\001:\223\001\352A\217\001\n" + + "&datamanager.googleapis.com/PartnerLink\022JaccountTypes/{account_type}" + + "/accounts/{account}/partnerLinks/{partner_link}*\014partnerLinks2\013partnerLink\"g\n" + + "\026PartnerCustomerAccount\022\027\n\n" + + "account_id\030\001 \001(\tB\003\340A\002\022\031\n" + + "\014account_name\030\002 \001(\tB\003\340A\001\022\031\n" + + "\014account_type\030\003 \001(\tB\003\340A\001\"h\n" + + "\023PartnerLinkMetadata\022Q\n" + + "\021implicit_accounts\030\001 \003(\01321.google.a" + + "ds.datamanager.v1.PartnerCustomerAccountB\003\340A\001*}\n\n" + + "FeatureSet\022\033\n" + + "\027FEATURE_SET_UNSPECIFIED\020\000\022-\n" + + ")FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT\020\001\022#\n" + + "\037FEATURE_SET_AD_EVENT_MANAGEMENT\020\0022\346\005\n" + + "\022PartnerLinkService\022\321\001\n" + + "\021CreatePartnerLink\0223.google.ads.datamanag" + + "er.v1.CreatePartnerLinkRequest\032&.google." + + "ads.datamanager.v1.PartnerLink\"_\332A\023paren" + + "t,partner_link\202\323\344\223\002C\"3/v1/{parent=accoun" + + "tTypes/*/accounts/*}/partnerLinks:\014partner_link\022\244\001\n" + + "\021DeletePartnerLink\0223.google.ads.datamanager.v1.DeletePartnerLinkReque" + + "st\032\026.google.protobuf.Empty\"B\332A\004name\202\323\344\223\002" + + "5*3/v1/{name=accountTypes/*/accounts/*/partnerLinks/*}\022\316\001\n" + + "\022SearchPartnerLinks\0224.google.ads.datamanager.v1.SearchPartnerL" + + "inksRequest\0325.google.ads.datamanager.v1." + + "SearchPartnerLinksResponse\"K\332A\006parent\202\323\344" + + "\223\002<\022:/v1/{parent=accountTypes/*/accounts" + + "/*}/partnerLinks:search\032\203\001\312A\032datamanager" + + ".googleapis.com\322Achttps://www.googleapis.com/auth/datamanager,https://www.google" + + "apis.com/auth/datamanager.partnerlinkB\324\001\n" + + "\035com.google.ads.datamanager.v1B\027Partner" + + "LinkServiceProtoP\001ZAcloud.google.com/go/datamanager/apiv1/datamanagerpb;datamana" + + "gerpb\252\002\031Google.Ads.DataManager.V1\312\002\031Goog" + + "le\\Ads\\DataManager\\V1\352\002\034Google::Ads::DataManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -172,7 +196,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_ads_datamanager_v1_PartnerLink_descriptor, new java.lang.String[] { - "Name", "PartnerLinkId", "OwningAccount", "PartnerAccount", + "Name", + "PartnerLinkId", + "OwningAccount", + "PartnerAccount", + "FeatureSet", + "PartnerCustomerAccount", + "PartnerLinkMetadata", + }); + internal_static_google_ads_datamanager_v1_PartnerCustomerAccount_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_ads_datamanager_v1_PartnerCustomerAccount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_ads_datamanager_v1_PartnerCustomerAccount_descriptor, + new java.lang.String[] { + "AccountId", "AccountName", "AccountType", + }); + internal_static_google_ads_datamanager_v1_PartnerLinkMetadata_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_ads_datamanager_v1_PartnerLinkMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_ads_datamanager_v1_PartnerLinkMetadata_descriptor, + new java.lang.String[] { + "ImplicitAccounts", }); descriptor.resolveAllFeaturesImmutable(); com.google.ads.datamanager.v1.DestinationProto.getDescriptor(); diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/Platform.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/Platform.java new file mode 100644 index 000000000000..254b89d681d5 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/Platform.java @@ -0,0 +1,214 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/ad_event.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * Further detail of the platform on which the ad was served.
+ * 
+ * + * Protobuf enum {@code google.ads.datamanager.v1.Platform} + */ +@com.google.protobuf.Generated +public enum Platform implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified platform.
+   * 
+ * + * PLATFORM_UNSPECIFIED = 0; + */ + PLATFORM_UNSPECIFIED(0), + /** + * + * + *
+   * iOS platform.
+   * 
+ * + * PLATFORM_IOS = 1; + */ + PLATFORM_IOS(1), + /** + * + * + *
+   * Android platform.
+   * 
+ * + * PLATFORM_ANDROID = 2; + */ + PLATFORM_ANDROID(2), + /** + * + * + *
+   * Web platform.
+   * 
+ * + * PLATFORM_WEB = 3; + */ + PLATFORM_WEB(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Platform"); + } + + /** + * + * + *
+   * Unspecified platform.
+   * 
+ * + * PLATFORM_UNSPECIFIED = 0; + */ + public static final int PLATFORM_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * iOS platform.
+   * 
+ * + * PLATFORM_IOS = 1; + */ + public static final int PLATFORM_IOS_VALUE = 1; + + /** + * + * + *
+   * Android platform.
+   * 
+ * + * PLATFORM_ANDROID = 2; + */ + public static final int PLATFORM_ANDROID_VALUE = 2; + + /** + * + * + *
+   * Web platform.
+   * 
+ * + * PLATFORM_WEB = 3; + */ + public static final int PLATFORM_WEB_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 Platform 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 Platform forNumber(int value) { + switch (value) { + case 0: + return PLATFORM_UNSPECIFIED; + case 1: + return PLATFORM_IOS; + case 2: + return PLATFORM_ANDROID; + case 3: + return PLATFORM_WEB; + 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 Platform findValueByNumber(int number) { + return Platform.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEventProto.getDescriptor().getEnumTypes().get(5); + } + + private static final Platform[] VALUES = values(); + + public static Platform 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 Platform(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.Platform) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PlatformType.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PlatformType.java new file mode 100644 index 000000000000..8be32849c2b4 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/PlatformType.java @@ -0,0 +1,260 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/ad_event.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * The type of the platform on which the ad was served.
+ * 
+ * + * Protobuf enum {@code google.ads.datamanager.v1.PlatformType} + */ +@com.google.protobuf.Generated +public enum PlatformType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified platform type.
+   * 
+ * + * PLATFORM_TYPE_UNSPECIFIED = 0; + */ + PLATFORM_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Mobile platform.
+   * 
+ * + * PLATFORM_TYPE_MOBILE = 1; + */ + PLATFORM_TYPE_MOBILE(1), + /** + * + * + *
+   * Desktop platform.
+   * 
+ * + * PLATFORM_TYPE_DESKTOP = 2; + */ + PLATFORM_TYPE_DESKTOP(2), + /** + * + * + *
+   * CTV platform.
+   * 
+ * + * PLATFORM_TYPE_CTV = 3; + */ + PLATFORM_TYPE_CTV(3), + /** + * + * + *
+   * Phone platform.
+   * 
+ * + * PLATFORM_TYPE_PHONE = 4; + */ + PLATFORM_TYPE_PHONE(4), + /** + * + * + *
+   * Tablet platform.
+   * 
+ * + * PLATFORM_TYPE_TABLET = 5; + */ + PLATFORM_TYPE_TABLET(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PlatformType"); + } + + /** + * + * + *
+   * Unspecified platform type.
+   * 
+ * + * PLATFORM_TYPE_UNSPECIFIED = 0; + */ + public static final int PLATFORM_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Mobile platform.
+   * 
+ * + * PLATFORM_TYPE_MOBILE = 1; + */ + public static final int PLATFORM_TYPE_MOBILE_VALUE = 1; + + /** + * + * + *
+   * Desktop platform.
+   * 
+ * + * PLATFORM_TYPE_DESKTOP = 2; + */ + public static final int PLATFORM_TYPE_DESKTOP_VALUE = 2; + + /** + * + * + *
+   * CTV platform.
+   * 
+ * + * PLATFORM_TYPE_CTV = 3; + */ + public static final int PLATFORM_TYPE_CTV_VALUE = 3; + + /** + * + * + *
+   * Phone platform.
+   * 
+ * + * PLATFORM_TYPE_PHONE = 4; + */ + public static final int PLATFORM_TYPE_PHONE_VALUE = 4; + + /** + * + * + *
+   * Tablet platform.
+   * 
+ * + * PLATFORM_TYPE_TABLET = 5; + */ + public static final int PLATFORM_TYPE_TABLET_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PlatformType 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 PlatformType forNumber(int value) { + switch (value) { + case 0: + return PLATFORM_TYPE_UNSPECIFIED; + case 1: + return PLATFORM_TYPE_MOBILE; + case 2: + return PLATFORM_TYPE_DESKTOP; + case 3: + return PLATFORM_TYPE_CTV; + case 4: + return PLATFORM_TYPE_PHONE; + case 5: + return PLATFORM_TYPE_TABLET; + 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 PlatformType findValueByNumber(int number) { + return PlatformType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEventProto.getDescriptor().getEnumTypes().get(4); + } + + private static final PlatformType[] VALUES = values(); + + public static PlatformType 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 PlatformType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.PlatformType) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProductAccount.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProductAccount.java index 255205f00259..77419700a60d 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProductAccount.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProductAccount.java @@ -464,13 +464,13 @@ public com.google.protobuf.ByteString getAccountIdBytes() { * * *
-   * Optional. The type of the account. For example, `GOOGLE_ADS`.
+   * Required. The type of the account. For example, `GOOGLE_ADS`.
    * Either `account_type` or the deprecated `product` is required.
    * If both are set, the values must match.
    * 
* * - * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for accountType. @@ -484,13 +484,13 @@ public int getAccountTypeValue() { * * *
-   * Optional. The type of the account. For example, `GOOGLE_ADS`.
+   * Required. The type of the account. For example, `GOOGLE_ADS`.
    * Either `account_type` or the deprecated `product` is required.
    * If both are set, the values must match.
    * 
* * - * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = REQUIRED]; * * * @return The accountType. @@ -1098,13 +1098,13 @@ public Builder setAccountIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. The type of the account. For example, `GOOGLE_ADS`.
+     * Required. The type of the account. For example, `GOOGLE_ADS`.
      * Either `account_type` or the deprecated `product` is required.
      * If both are set, the values must match.
      * 
* * - * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for accountType. @@ -1118,13 +1118,13 @@ public int getAccountTypeValue() { * * *
-     * Optional. The type of the account. For example, `GOOGLE_ADS`.
+     * Required. The type of the account. For example, `GOOGLE_ADS`.
      * Either `account_type` or the deprecated `product` is required.
      * If both are set, the values must match.
      * 
* * - * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The enum numeric value on the wire for accountType to set. @@ -1141,13 +1141,13 @@ public Builder setAccountTypeValue(int value) { * * *
-     * Optional. The type of the account. For example, `GOOGLE_ADS`.
+     * Required. The type of the account. For example, `GOOGLE_ADS`.
      * Either `account_type` or the deprecated `product` is required.
      * If both are set, the values must match.
      * 
* * - * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = REQUIRED]; * * * @return The accountType. @@ -1165,13 +1165,13 @@ public com.google.ads.datamanager.v1.ProductAccount.AccountType getAccountType() * * *
-     * Optional. The type of the account. For example, `GOOGLE_ADS`.
+     * Required. The type of the account. For example, `GOOGLE_ADS`.
      * Either `account_type` or the deprecated `product` is required.
      * If both are set, the values must match.
      * 
* * - * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The accountType to set. @@ -1191,13 +1191,13 @@ public Builder setAccountType(com.google.ads.datamanager.v1.ProductAccount.Accou * * *
-     * Optional. The type of the account. For example, `GOOGLE_ADS`.
+     * Required. The type of the account. For example, `GOOGLE_ADS`.
      * Either `account_type` or the deprecated `product` is required.
      * If both are set, the values must match.
      * 
* * - * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = REQUIRED]; * * * @return This builder for chaining. diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProductAccountOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProductAccountOrBuilder.java index 90ce9ceab24d..36392b288c03 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProductAccountOrBuilder.java +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ProductAccountOrBuilder.java @@ -92,13 +92,13 @@ public interface ProductAccountOrBuilder * * *
-   * Optional. The type of the account. For example, `GOOGLE_ADS`.
+   * Required. The type of the account. For example, `GOOGLE_ADS`.
    * Either `account_type` or the deprecated `product` is required.
    * If both are set, the values must match.
    * 
* * - * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for accountType. @@ -109,13 +109,13 @@ public interface ProductAccountOrBuilder * * *
-   * Optional. The type of the account. For example, `GOOGLE_ADS`.
+   * Required. The type of the account. For example, `GOOGLE_ADS`.
    * Either `account_type` or the deprecated `product` is required.
    * If both are set, the values must match.
    * 
* * - * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.ads.datamanager.v1.ProductAccount.AccountType account_type = 3 [(.google.api.field_behavior) = REQUIRED]; * * * @return The accountType. diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TargetingType.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TargetingType.java new file mode 100644 index 000000000000..aa96b85fd6c0 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/TargetingType.java @@ -0,0 +1,329 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/ad_event.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * The type of targeting used to serve the ad.
+ * 
+ * + * Protobuf enum {@code google.ads.datamanager.v1.TargetingType} + */ +@com.google.protobuf.Generated +public enum TargetingType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified targeting type.
+   * 
+ * + * TARGETING_TYPE_UNSPECIFIED = 0; + */ + TARGETING_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Audience targeting.
+   * 
+ * + * TARGETING_TYPE_AUDIENCE = 1; + */ + TARGETING_TYPE_AUDIENCE(1), + /** + * + * + *
+   * Contextual targeting.
+   * 
+ * + * TARGETING_TYPE_CONTEXTUAL = 2; + */ + TARGETING_TYPE_CONTEXTUAL(2), + /** + * + * + *
+   * Demographic targeting.
+   * 
+ * + * TARGETING_TYPE_DEMOGRAPHIC = 3; + */ + TARGETING_TYPE_DEMOGRAPHIC(3), + /** + * + * + *
+   * Device targeting.
+   * 
+ * + * TARGETING_TYPE_DEVICE = 4; + */ + TARGETING_TYPE_DEVICE(4), + /** + * + * + *
+   * Geo targeting.
+   * 
+ * + * TARGETING_TYPE_GEO = 5; + */ + TARGETING_TYPE_GEO(5), + /** + * + * + *
+   * Interest targeting.
+   * 
+ * + * TARGETING_TYPE_INTEREST = 6; + */ + TARGETING_TYPE_INTEREST(6), + /** + * + * + *
+   * Purchase intent targeting.
+   * 
+ * + * TARGETING_TYPE_PURCHASE_INTENT = 7; + */ + TARGETING_TYPE_PURCHASE_INTENT(7), + /** + * + * + *
+   * Remarketing targeting.
+   * 
+ * + * TARGETING_TYPE_REMARKETING = 8; + */ + TARGETING_TYPE_REMARKETING(8), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TargetingType"); + } + + /** + * + * + *
+   * Unspecified targeting type.
+   * 
+ * + * TARGETING_TYPE_UNSPECIFIED = 0; + */ + public static final int TARGETING_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Audience targeting.
+   * 
+ * + * TARGETING_TYPE_AUDIENCE = 1; + */ + public static final int TARGETING_TYPE_AUDIENCE_VALUE = 1; + + /** + * + * + *
+   * Contextual targeting.
+   * 
+ * + * TARGETING_TYPE_CONTEXTUAL = 2; + */ + public static final int TARGETING_TYPE_CONTEXTUAL_VALUE = 2; + + /** + * + * + *
+   * Demographic targeting.
+   * 
+ * + * TARGETING_TYPE_DEMOGRAPHIC = 3; + */ + public static final int TARGETING_TYPE_DEMOGRAPHIC_VALUE = 3; + + /** + * + * + *
+   * Device targeting.
+   * 
+ * + * TARGETING_TYPE_DEVICE = 4; + */ + public static final int TARGETING_TYPE_DEVICE_VALUE = 4; + + /** + * + * + *
+   * Geo targeting.
+   * 
+ * + * TARGETING_TYPE_GEO = 5; + */ + public static final int TARGETING_TYPE_GEO_VALUE = 5; + + /** + * + * + *
+   * Interest targeting.
+   * 
+ * + * TARGETING_TYPE_INTEREST = 6; + */ + public static final int TARGETING_TYPE_INTEREST_VALUE = 6; + + /** + * + * + *
+   * Purchase intent targeting.
+   * 
+ * + * TARGETING_TYPE_PURCHASE_INTENT = 7; + */ + public static final int TARGETING_TYPE_PURCHASE_INTENT_VALUE = 7; + + /** + * + * + *
+   * Remarketing targeting.
+   * 
+ * + * TARGETING_TYPE_REMARKETING = 8; + */ + public static final int TARGETING_TYPE_REMARKETING_VALUE = 8; + + 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 TargetingType 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 TargetingType forNumber(int value) { + switch (value) { + case 0: + return TARGETING_TYPE_UNSPECIFIED; + case 1: + return TARGETING_TYPE_AUDIENCE; + case 2: + return TARGETING_TYPE_CONTEXTUAL; + case 3: + return TARGETING_TYPE_DEMOGRAPHIC; + case 4: + return TARGETING_TYPE_DEVICE; + case 5: + return TARGETING_TYPE_GEO; + case 6: + return TARGETING_TYPE_INTEREST; + case 7: + return TARGETING_TYPE_PURCHASE_INTENT; + case 8: + return TARGETING_TYPE_REMARKETING; + 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 TargetingType findValueByNumber(int number) { + return TargetingType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.AdEventProto.getDescriptor().getEnumTypes().get(3); + } + + private static final TargetingType[] VALUES = values(); + + public static TargetingType 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 TargetingType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.TargetingType) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewType.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewType.java new file mode 100644 index 000000000000..0df0028928e6 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewType.java @@ -0,0 +1,191 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/viewability_info.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * The type of the event.
+ * 
+ * + * Protobuf enum {@code google.ads.datamanager.v1.ViewType} + */ +@com.google.protobuf.Generated +public enum ViewType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified view type.
+   * 
+ * + * VIEW_TYPE_UNSPECIFIED = 0; + */ + VIEW_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * MRC viewed.
+   * 
+ * + * VIEW_TYPE_MRC_VIEWED = 1; + */ + VIEW_TYPE_MRC_VIEWED(1), + /** + * + * + *
+   * MRC rendered.
+   * 
+ * + * VIEW_TYPE_MRC_RENDERED = 2; + */ + VIEW_TYPE_MRC_RENDERED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ViewType"); + } + + /** + * + * + *
+   * Unspecified view type.
+   * 
+ * + * VIEW_TYPE_UNSPECIFIED = 0; + */ + public static final int VIEW_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * MRC viewed.
+   * 
+ * + * VIEW_TYPE_MRC_VIEWED = 1; + */ + public static final int VIEW_TYPE_MRC_VIEWED_VALUE = 1; + + /** + * + * + *
+   * MRC rendered.
+   * 
+ * + * VIEW_TYPE_MRC_RENDERED = 2; + */ + public static final int VIEW_TYPE_MRC_RENDERED_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 ViewType 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 ViewType forNumber(int value) { + switch (value) { + case 0: + return VIEW_TYPE_UNSPECIFIED; + case 1: + return VIEW_TYPE_MRC_VIEWED; + case 2: + return VIEW_TYPE_MRC_RENDERED; + 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 ViewType findValueByNumber(int number) { + return ViewType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.datamanager.v1.ViewabilityInfoProto.getDescriptor().getEnumTypes().get(0); + } + + private static final ViewType[] VALUES = values(); + + public static ViewType 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 ViewType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.datamanager.v1.ViewType) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfo.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfo.java new file mode 100644 index 000000000000..653ab9493b17 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfo.java @@ -0,0 +1,1970 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/viewability_info.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +/** + * + * + *
+ * Details of the viewability of the ad served.
+ * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.ViewabilityInfo} + */ +@com.google.protobuf.Generated +public final class ViewabilityInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.ads.datamanager.v1.ViewabilityInfo) + ViewabilityInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ViewabilityInfo"); + } + + // Use ViewabilityInfo.newBuilder() to construct. + private ViewabilityInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ViewabilityInfo() { + viewType_ = 0; + mediaQuartile_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.ViewabilityInfoProto + .internal_static_google_ads_datamanager_v1_ViewabilityInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.ViewabilityInfoProto + .internal_static_google_ads_datamanager_v1_ViewabilityInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.ViewabilityInfo.class, + com.google.ads.datamanager.v1.ViewabilityInfo.Builder.class); + } + + private int bitField0_; + public static final int VIEW_TYPE_FIELD_NUMBER = 1; + private int viewType_ = 0; + + /** + * + * + *
+   * Required. The type of the event.
+   * 
+ * + * + * .google.ads.datamanager.v1.ViewType view_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for viewType. + */ + @java.lang.Override + public int getViewTypeValue() { + return viewType_; + } + + /** + * + * + *
+   * Required. The type of the event.
+   * 
+ * + * + * .google.ads.datamanager.v1.ViewType view_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The viewType. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.ViewType getViewType() { + com.google.ads.datamanager.v1.ViewType result = + com.google.ads.datamanager.v1.ViewType.forNumber(viewType_); + return result == null ? com.google.ads.datamanager.v1.ViewType.UNRECOGNIZED : result; + } + + public static final int VIEWABLE_PERCENT_FIELD_NUMBER = 2; + private int viewablePercent_ = 0; + + /** + * + * + *
+   * Optional. The numerical percent (0-100) of the pixels that were viewable.
+   * 
+ * + * int32 viewable_percent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The viewablePercent. + */ + @java.lang.Override + public int getViewablePercent() { + return viewablePercent_; + } + + public static final int VIEWABLE_DURATION_FIELD_NUMBER = 3; + private com.google.protobuf.Duration viewableDuration_; + + /** + * + * + *
+   * Optional. The amount of time the ad was viewable for.
+   * 
+ * + * + * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the viewableDuration field is set. + */ + @java.lang.Override + public boolean hasViewableDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The amount of time the ad was viewable for.
+   * 
+ * + * + * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The viewableDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getViewableDuration() { + return viewableDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : viewableDuration_; + } + + /** + * + * + *
+   * Optional. The amount of time the ad was viewable for.
+   * 
+ * + * + * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getViewableDurationOrBuilder() { + return viewableDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : viewableDuration_; + } + + public static final int MEDIA_SKIPPABLE_FIELD_NUMBER = 4; + private boolean mediaSkippable_ = false; + + /** + * + * + *
+   * Optional. Whether the ad media was skippable or not.
+   * 
+ * + * bool media_skippable = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mediaSkippable. + */ + @java.lang.Override + public boolean getMediaSkippable() { + return mediaSkippable_; + } + + public static final int MEDIA_QUARTILE_FIELD_NUMBER = 5; + private int mediaQuartile_ = 0; + + /** + * + * + *
+   * Optional. The amount of the media that was played as discrete quartiles.
+   * 
+ * + * + * .google.ads.datamanager.v1.MediaQuartile media_quartile = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mediaQuartile. + */ + @java.lang.Override + public int getMediaQuartileValue() { + return mediaQuartile_; + } + + /** + * + * + *
+   * Optional. The amount of the media that was played as discrete quartiles.
+   * 
+ * + * + * .google.ads.datamanager.v1.MediaQuartile media_quartile = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mediaQuartile. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.MediaQuartile getMediaQuartile() { + com.google.ads.datamanager.v1.MediaQuartile result = + com.google.ads.datamanager.v1.MediaQuartile.forNumber(mediaQuartile_); + return result == null ? com.google.ads.datamanager.v1.MediaQuartile.UNRECOGNIZED : result; + } + + public static final int MEDIA_DURATION_FIELD_NUMBER = 6; + private com.google.protobuf.Duration mediaDuration_; + + /** + * + * + *
+   * Optional. The duration of the ad media.
+   * 
+ * + * .google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mediaDuration field is set. + */ + @java.lang.Override + public boolean hasMediaDuration() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The duration of the ad media.
+   * 
+ * + * .google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mediaDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getMediaDuration() { + return mediaDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : mediaDuration_; + } + + /** + * + * + *
+   * Optional. The duration of the ad media.
+   * 
+ * + * .google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getMediaDurationOrBuilder() { + return mediaDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : mediaDuration_; + } + + public static final int MEDIA_VOLUME_PERCENT_FIELD_NUMBER = 7; + private int mediaVolumePercent_ = 0; + + /** + * + * + *
+   * Optional. The numerical percent (0-100) of the volume of the media
+   * playback.
+   * 
+ * + * int32 media_volume_percent = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mediaVolumePercent. + */ + @java.lang.Override + public int getMediaVolumePercent() { + return mediaVolumePercent_; + } + + public static final int PLAYBACK_DURATION_FIELD_NUMBER = 8; + private com.google.protobuf.Duration playbackDuration_; + + /** + * + * + *
+   * Optional. The duration of playback of the ad media, regardless of whether
+   * it was viewable or not.
+   * 
+ * + * + * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the playbackDuration field is set. + */ + @java.lang.Override + public boolean hasPlaybackDuration() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Optional. The duration of playback of the ad media, regardless of whether
+   * it was viewable or not.
+   * 
+ * + * + * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The playbackDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getPlaybackDuration() { + return playbackDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : playbackDuration_; + } + + /** + * + * + *
+   * Optional. The duration of playback of the ad media, regardless of whether
+   * it was viewable or not.
+   * 
+ * + * + * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getPlaybackDurationOrBuilder() { + return playbackDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : playbackDuration_; + } + + 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 (viewType_ != com.google.ads.datamanager.v1.ViewType.VIEW_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, viewType_); + } + if (viewablePercent_ != 0) { + output.writeInt32(2, viewablePercent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getViewableDuration()); + } + if (mediaSkippable_ != false) { + output.writeBool(4, mediaSkippable_); + } + if (mediaQuartile_ + != com.google.ads.datamanager.v1.MediaQuartile.MEDIA_QUARTILE_UNSPECIFIED.getNumber()) { + output.writeEnum(5, mediaQuartile_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getMediaDuration()); + } + if (mediaVolumePercent_ != 0) { + output.writeInt32(7, mediaVolumePercent_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getPlaybackDuration()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (viewType_ != com.google.ads.datamanager.v1.ViewType.VIEW_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, viewType_); + } + if (viewablePercent_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, viewablePercent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getViewableDuration()); + } + if (mediaSkippable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, mediaSkippable_); + } + if (mediaQuartile_ + != com.google.ads.datamanager.v1.MediaQuartile.MEDIA_QUARTILE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, mediaQuartile_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMediaDuration()); + } + if (mediaVolumePercent_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, mediaVolumePercent_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getPlaybackDuration()); + } + 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.ads.datamanager.v1.ViewabilityInfo)) { + return super.equals(obj); + } + com.google.ads.datamanager.v1.ViewabilityInfo other = + (com.google.ads.datamanager.v1.ViewabilityInfo) obj; + + if (viewType_ != other.viewType_) return false; + if (getViewablePercent() != other.getViewablePercent()) return false; + if (hasViewableDuration() != other.hasViewableDuration()) return false; + if (hasViewableDuration()) { + if (!getViewableDuration().equals(other.getViewableDuration())) return false; + } + if (getMediaSkippable() != other.getMediaSkippable()) return false; + if (mediaQuartile_ != other.mediaQuartile_) return false; + if (hasMediaDuration() != other.hasMediaDuration()) return false; + if (hasMediaDuration()) { + if (!getMediaDuration().equals(other.getMediaDuration())) return false; + } + if (getMediaVolumePercent() != other.getMediaVolumePercent()) return false; + if (hasPlaybackDuration() != other.hasPlaybackDuration()) return false; + if (hasPlaybackDuration()) { + if (!getPlaybackDuration().equals(other.getPlaybackDuration())) 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) + VIEW_TYPE_FIELD_NUMBER; + hash = (53 * hash) + viewType_; + hash = (37 * hash) + VIEWABLE_PERCENT_FIELD_NUMBER; + hash = (53 * hash) + getViewablePercent(); + if (hasViewableDuration()) { + hash = (37 * hash) + VIEWABLE_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getViewableDuration().hashCode(); + } + hash = (37 * hash) + MEDIA_SKIPPABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMediaSkippable()); + hash = (37 * hash) + MEDIA_QUARTILE_FIELD_NUMBER; + hash = (53 * hash) + mediaQuartile_; + if (hasMediaDuration()) { + hash = (37 * hash) + MEDIA_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getMediaDuration().hashCode(); + } + hash = (37 * hash) + MEDIA_VOLUME_PERCENT_FIELD_NUMBER; + hash = (53 * hash) + getMediaVolumePercent(); + if (hasPlaybackDuration()) { + hash = (37 * hash) + PLAYBACK_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getPlaybackDuration().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.datamanager.v1.ViewabilityInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.ViewabilityInfo parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.ViewabilityInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.ViewabilityInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.ViewabilityInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.datamanager.v1.ViewabilityInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.ViewabilityInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.ViewabilityInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.ViewabilityInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.ViewabilityInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.ads.datamanager.v1.ViewabilityInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.ads.datamanager.v1.ViewabilityInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.ads.datamanager.v1.ViewabilityInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Details of the viewability of the ad served.
+   * 
+ * + * Protobuf type {@code google.ads.datamanager.v1.ViewabilityInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.datamanager.v1.ViewabilityInfo) + com.google.ads.datamanager.v1.ViewabilityInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.datamanager.v1.ViewabilityInfoProto + .internal_static_google_ads_datamanager_v1_ViewabilityInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.datamanager.v1.ViewabilityInfoProto + .internal_static_google_ads_datamanager_v1_ViewabilityInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.datamanager.v1.ViewabilityInfo.class, + com.google.ads.datamanager.v1.ViewabilityInfo.Builder.class); + } + + // Construct using com.google.ads.datamanager.v1.ViewabilityInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetViewableDurationFieldBuilder(); + internalGetMediaDurationFieldBuilder(); + internalGetPlaybackDurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + viewType_ = 0; + viewablePercent_ = 0; + viewableDuration_ = null; + if (viewableDurationBuilder_ != null) { + viewableDurationBuilder_.dispose(); + viewableDurationBuilder_ = null; + } + mediaSkippable_ = false; + mediaQuartile_ = 0; + mediaDuration_ = null; + if (mediaDurationBuilder_ != null) { + mediaDurationBuilder_.dispose(); + mediaDurationBuilder_ = null; + } + mediaVolumePercent_ = 0; + playbackDuration_ = null; + if (playbackDurationBuilder_ != null) { + playbackDurationBuilder_.dispose(); + playbackDurationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.datamanager.v1.ViewabilityInfoProto + .internal_static_google_ads_datamanager_v1_ViewabilityInfo_descriptor; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.ViewabilityInfo getDefaultInstanceForType() { + return com.google.ads.datamanager.v1.ViewabilityInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.datamanager.v1.ViewabilityInfo build() { + com.google.ads.datamanager.v1.ViewabilityInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.datamanager.v1.ViewabilityInfo buildPartial() { + com.google.ads.datamanager.v1.ViewabilityInfo result = + new com.google.ads.datamanager.v1.ViewabilityInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.datamanager.v1.ViewabilityInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.viewType_ = viewType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.viewablePercent_ = viewablePercent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.viewableDuration_ = + viewableDurationBuilder_ == null ? viewableDuration_ : viewableDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.mediaSkippable_ = mediaSkippable_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.mediaQuartile_ = mediaQuartile_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.mediaDuration_ = + mediaDurationBuilder_ == null ? mediaDuration_ : mediaDurationBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.mediaVolumePercent_ = mediaVolumePercent_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.playbackDuration_ = + playbackDurationBuilder_ == null ? playbackDuration_ : playbackDurationBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.datamanager.v1.ViewabilityInfo) { + return mergeFrom((com.google.ads.datamanager.v1.ViewabilityInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.datamanager.v1.ViewabilityInfo other) { + if (other == com.google.ads.datamanager.v1.ViewabilityInfo.getDefaultInstance()) return this; + if (other.viewType_ != 0) { + setViewTypeValue(other.getViewTypeValue()); + } + if (other.getViewablePercent() != 0) { + setViewablePercent(other.getViewablePercent()); + } + if (other.hasViewableDuration()) { + mergeViewableDuration(other.getViewableDuration()); + } + if (other.getMediaSkippable() != false) { + setMediaSkippable(other.getMediaSkippable()); + } + if (other.mediaQuartile_ != 0) { + setMediaQuartileValue(other.getMediaQuartileValue()); + } + if (other.hasMediaDuration()) { + mergeMediaDuration(other.getMediaDuration()); + } + if (other.getMediaVolumePercent() != 0) { + setMediaVolumePercent(other.getMediaVolumePercent()); + } + if (other.hasPlaybackDuration()) { + mergePlaybackDuration(other.getPlaybackDuration()); + } + 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: + { + viewType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + viewablePercent_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + internalGetViewableDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + mediaSkippable_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + mediaQuartile_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage( + internalGetMediaDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + mediaVolumePercent_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + input.readMessage( + internalGetPlaybackDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int viewType_ = 0; + + /** + * + * + *
+     * Required. The type of the event.
+     * 
+ * + * + * .google.ads.datamanager.v1.ViewType view_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for viewType. + */ + @java.lang.Override + public int getViewTypeValue() { + return viewType_; + } + + /** + * + * + *
+     * Required. The type of the event.
+     * 
+ * + * + * .google.ads.datamanager.v1.ViewType view_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for viewType to set. + * @return This builder for chaining. + */ + public Builder setViewTypeValue(int value) { + viewType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The type of the event.
+     * 
+ * + * + * .google.ads.datamanager.v1.ViewType view_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The viewType. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.ViewType getViewType() { + com.google.ads.datamanager.v1.ViewType result = + com.google.ads.datamanager.v1.ViewType.forNumber(viewType_); + return result == null ? com.google.ads.datamanager.v1.ViewType.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Required. The type of the event.
+     * 
+ * + * + * .google.ads.datamanager.v1.ViewType view_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The viewType to set. + * @return This builder for chaining. + */ + public Builder setViewType(com.google.ads.datamanager.v1.ViewType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + viewType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The type of the event.
+     * 
+ * + * + * .google.ads.datamanager.v1.ViewType view_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearViewType() { + bitField0_ = (bitField0_ & ~0x00000001); + viewType_ = 0; + onChanged(); + return this; + } + + private int viewablePercent_; + + /** + * + * + *
+     * Optional. The numerical percent (0-100) of the pixels that were viewable.
+     * 
+ * + * int32 viewable_percent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The viewablePercent. + */ + @java.lang.Override + public int getViewablePercent() { + return viewablePercent_; + } + + /** + * + * + *
+     * Optional. The numerical percent (0-100) of the pixels that were viewable.
+     * 
+ * + * int32 viewable_percent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The viewablePercent to set. + * @return This builder for chaining. + */ + public Builder setViewablePercent(int value) { + + viewablePercent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The numerical percent (0-100) of the pixels that were viewable.
+     * 
+ * + * int32 viewable_percent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearViewablePercent() { + bitField0_ = (bitField0_ & ~0x00000002); + viewablePercent_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Duration viewableDuration_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + viewableDurationBuilder_; + + /** + * + * + *
+     * Optional. The amount of time the ad was viewable for.
+     * 
+ * + * + * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the viewableDuration field is set. + */ + public boolean hasViewableDuration() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. The amount of time the ad was viewable for.
+     * 
+ * + * + * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The viewableDuration. + */ + public com.google.protobuf.Duration getViewableDuration() { + if (viewableDurationBuilder_ == null) { + return viewableDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : viewableDuration_; + } else { + return viewableDurationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The amount of time the ad was viewable for.
+     * 
+ * + * + * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setViewableDuration(com.google.protobuf.Duration value) { + if (viewableDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + viewableDuration_ = value; + } else { + viewableDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The amount of time the ad was viewable for.
+     * 
+ * + * + * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setViewableDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (viewableDurationBuilder_ == null) { + viewableDuration_ = builderForValue.build(); + } else { + viewableDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The amount of time the ad was viewable for.
+     * 
+ * + * + * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeViewableDuration(com.google.protobuf.Duration value) { + if (viewableDurationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && viewableDuration_ != null + && viewableDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getViewableDurationBuilder().mergeFrom(value); + } else { + viewableDuration_ = value; + } + } else { + viewableDurationBuilder_.mergeFrom(value); + } + if (viewableDuration_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The amount of time the ad was viewable for.
+     * 
+ * + * + * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearViewableDuration() { + bitField0_ = (bitField0_ & ~0x00000004); + viewableDuration_ = null; + if (viewableDurationBuilder_ != null) { + viewableDurationBuilder_.dispose(); + viewableDurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The amount of time the ad was viewable for.
+     * 
+ * + * + * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getViewableDurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetViewableDurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The amount of time the ad was viewable for.
+     * 
+ * + * + * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getViewableDurationOrBuilder() { + if (viewableDurationBuilder_ != null) { + return viewableDurationBuilder_.getMessageOrBuilder(); + } else { + return viewableDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : viewableDuration_; + } + } + + /** + * + * + *
+     * Optional. The amount of time the ad was viewable for.
+     * 
+ * + * + * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetViewableDurationFieldBuilder() { + if (viewableDurationBuilder_ == null) { + viewableDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getViewableDuration(), getParentForChildren(), isClean()); + viewableDuration_ = null; + } + return viewableDurationBuilder_; + } + + private boolean mediaSkippable_; + + /** + * + * + *
+     * Optional. Whether the ad media was skippable or not.
+     * 
+ * + * bool media_skippable = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mediaSkippable. + */ + @java.lang.Override + public boolean getMediaSkippable() { + return mediaSkippable_; + } + + /** + * + * + *
+     * Optional. Whether the ad media was skippable or not.
+     * 
+ * + * bool media_skippable = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The mediaSkippable to set. + * @return This builder for chaining. + */ + public Builder setMediaSkippable(boolean value) { + + mediaSkippable_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether the ad media was skippable or not.
+     * 
+ * + * bool media_skippable = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMediaSkippable() { + bitField0_ = (bitField0_ & ~0x00000008); + mediaSkippable_ = false; + onChanged(); + return this; + } + + private int mediaQuartile_ = 0; + + /** + * + * + *
+     * Optional. The amount of the media that was played as discrete quartiles.
+     * 
+ * + * + * .google.ads.datamanager.v1.MediaQuartile media_quartile = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mediaQuartile. + */ + @java.lang.Override + public int getMediaQuartileValue() { + return mediaQuartile_; + } + + /** + * + * + *
+     * Optional. The amount of the media that was played as discrete quartiles.
+     * 
+ * + * + * .google.ads.datamanager.v1.MediaQuartile media_quartile = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for mediaQuartile to set. + * @return This builder for chaining. + */ + public Builder setMediaQuartileValue(int value) { + mediaQuartile_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The amount of the media that was played as discrete quartiles.
+     * 
+ * + * + * .google.ads.datamanager.v1.MediaQuartile media_quartile = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mediaQuartile. + */ + @java.lang.Override + public com.google.ads.datamanager.v1.MediaQuartile getMediaQuartile() { + com.google.ads.datamanager.v1.MediaQuartile result = + com.google.ads.datamanager.v1.MediaQuartile.forNumber(mediaQuartile_); + return result == null ? com.google.ads.datamanager.v1.MediaQuartile.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. The amount of the media that was played as discrete quartiles.
+     * 
+ * + * + * .google.ads.datamanager.v1.MediaQuartile media_quartile = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The mediaQuartile to set. + * @return This builder for chaining. + */ + public Builder setMediaQuartile(com.google.ads.datamanager.v1.MediaQuartile value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + mediaQuartile_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The amount of the media that was played as discrete quartiles.
+     * 
+ * + * + * .google.ads.datamanager.v1.MediaQuartile media_quartile = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMediaQuartile() { + bitField0_ = (bitField0_ & ~0x00000010); + mediaQuartile_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Duration mediaDuration_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + mediaDurationBuilder_; + + /** + * + * + *
+     * Optional. The duration of the ad media.
+     * 
+ * + * .google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mediaDuration field is set. + */ + public boolean hasMediaDuration() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. The duration of the ad media.
+     * 
+ * + * .google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mediaDuration. + */ + public com.google.protobuf.Duration getMediaDuration() { + if (mediaDurationBuilder_ == null) { + return mediaDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : mediaDuration_; + } else { + return mediaDurationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The duration of the ad media.
+     * 
+ * + * .google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMediaDuration(com.google.protobuf.Duration value) { + if (mediaDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mediaDuration_ = value; + } else { + mediaDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The duration of the ad media.
+     * 
+ * + * .google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMediaDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (mediaDurationBuilder_ == null) { + mediaDuration_ = builderForValue.build(); + } else { + mediaDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The duration of the ad media.
+     * 
+ * + * .google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMediaDuration(com.google.protobuf.Duration value) { + if (mediaDurationBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && mediaDuration_ != null + && mediaDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMediaDurationBuilder().mergeFrom(value); + } else { + mediaDuration_ = value; + } + } else { + mediaDurationBuilder_.mergeFrom(value); + } + if (mediaDuration_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The duration of the ad media.
+     * 
+ * + * .google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMediaDuration() { + bitField0_ = (bitField0_ & ~0x00000020); + mediaDuration_ = null; + if (mediaDurationBuilder_ != null) { + mediaDurationBuilder_.dispose(); + mediaDurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The duration of the ad media.
+     * 
+ * + * .google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getMediaDurationBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetMediaDurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The duration of the ad media.
+     * 
+ * + * .google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getMediaDurationOrBuilder() { + if (mediaDurationBuilder_ != null) { + return mediaDurationBuilder_.getMessageOrBuilder(); + } else { + return mediaDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : mediaDuration_; + } + } + + /** + * + * + *
+     * Optional. The duration of the ad media.
+     * 
+ * + * .google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetMediaDurationFieldBuilder() { + if (mediaDurationBuilder_ == null) { + mediaDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMediaDuration(), getParentForChildren(), isClean()); + mediaDuration_ = null; + } + return mediaDurationBuilder_; + } + + private int mediaVolumePercent_; + + /** + * + * + *
+     * Optional. The numerical percent (0-100) of the volume of the media
+     * playback.
+     * 
+ * + * int32 media_volume_percent = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mediaVolumePercent. + */ + @java.lang.Override + public int getMediaVolumePercent() { + return mediaVolumePercent_; + } + + /** + * + * + *
+     * Optional. The numerical percent (0-100) of the volume of the media
+     * playback.
+     * 
+ * + * int32 media_volume_percent = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The mediaVolumePercent to set. + * @return This builder for chaining. + */ + public Builder setMediaVolumePercent(int value) { + + mediaVolumePercent_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The numerical percent (0-100) of the volume of the media
+     * playback.
+     * 
+ * + * int32 media_volume_percent = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMediaVolumePercent() { + bitField0_ = (bitField0_ & ~0x00000040); + mediaVolumePercent_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Duration playbackDuration_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + playbackDurationBuilder_; + + /** + * + * + *
+     * Optional. The duration of playback of the ad media, regardless of whether
+     * it was viewable or not.
+     * 
+ * + * + * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the playbackDuration field is set. + */ + public boolean hasPlaybackDuration() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Optional. The duration of playback of the ad media, regardless of whether
+     * it was viewable or not.
+     * 
+ * + * + * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The playbackDuration. + */ + public com.google.protobuf.Duration getPlaybackDuration() { + if (playbackDurationBuilder_ == null) { + return playbackDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : playbackDuration_; + } else { + return playbackDurationBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The duration of playback of the ad media, regardless of whether
+     * it was viewable or not.
+     * 
+ * + * + * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPlaybackDuration(com.google.protobuf.Duration value) { + if (playbackDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + playbackDuration_ = value; + } else { + playbackDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The duration of playback of the ad media, regardless of whether
+     * it was viewable or not.
+     * 
+ * + * + * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPlaybackDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (playbackDurationBuilder_ == null) { + playbackDuration_ = builderForValue.build(); + } else { + playbackDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The duration of playback of the ad media, regardless of whether
+     * it was viewable or not.
+     * 
+ * + * + * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePlaybackDuration(com.google.protobuf.Duration value) { + if (playbackDurationBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && playbackDuration_ != null + && playbackDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getPlaybackDurationBuilder().mergeFrom(value); + } else { + playbackDuration_ = value; + } + } else { + playbackDurationBuilder_.mergeFrom(value); + } + if (playbackDuration_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The duration of playback of the ad media, regardless of whether
+     * it was viewable or not.
+     * 
+ * + * + * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPlaybackDuration() { + bitField0_ = (bitField0_ & ~0x00000080); + playbackDuration_ = null; + if (playbackDurationBuilder_ != null) { + playbackDurationBuilder_.dispose(); + playbackDurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The duration of playback of the ad media, regardless of whether
+     * it was viewable or not.
+     * 
+ * + * + * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getPlaybackDurationBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetPlaybackDurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The duration of playback of the ad media, regardless of whether
+     * it was viewable or not.
+     * 
+ * + * + * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getPlaybackDurationOrBuilder() { + if (playbackDurationBuilder_ != null) { + return playbackDurationBuilder_.getMessageOrBuilder(); + } else { + return playbackDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : playbackDuration_; + } + } + + /** + * + * + *
+     * Optional. The duration of playback of the ad media, regardless of whether
+     * it was viewable or not.
+     * 
+ * + * + * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetPlaybackDurationFieldBuilder() { + if (playbackDurationBuilder_ == null) { + playbackDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getPlaybackDuration(), getParentForChildren(), isClean()); + playbackDuration_ = null; + } + return playbackDurationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.ads.datamanager.v1.ViewabilityInfo) + } + + // @@protoc_insertion_point(class_scope:google.ads.datamanager.v1.ViewabilityInfo) + private static final com.google.ads.datamanager.v1.ViewabilityInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.datamanager.v1.ViewabilityInfo(); + } + + public static com.google.ads.datamanager.v1.ViewabilityInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ViewabilityInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.ads.datamanager.v1.ViewabilityInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfoOrBuilder.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfoOrBuilder.java new file mode 100644 index 000000000000..7ed0e0a15a0a --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfoOrBuilder.java @@ -0,0 +1,257 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/viewability_info.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +@com.google.protobuf.Generated +public interface ViewabilityInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.datamanager.v1.ViewabilityInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The type of the event.
+   * 
+ * + * + * .google.ads.datamanager.v1.ViewType view_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for viewType. + */ + int getViewTypeValue(); + + /** + * + * + *
+   * Required. The type of the event.
+   * 
+ * + * + * .google.ads.datamanager.v1.ViewType view_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The viewType. + */ + com.google.ads.datamanager.v1.ViewType getViewType(); + + /** + * + * + *
+   * Optional. The numerical percent (0-100) of the pixels that were viewable.
+   * 
+ * + * int32 viewable_percent = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The viewablePercent. + */ + int getViewablePercent(); + + /** + * + * + *
+   * Optional. The amount of time the ad was viewable for.
+   * 
+ * + * + * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the viewableDuration field is set. + */ + boolean hasViewableDuration(); + + /** + * + * + *
+   * Optional. The amount of time the ad was viewable for.
+   * 
+ * + * + * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The viewableDuration. + */ + com.google.protobuf.Duration getViewableDuration(); + + /** + * + * + *
+   * Optional. The amount of time the ad was viewable for.
+   * 
+ * + * + * .google.protobuf.Duration viewable_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getViewableDurationOrBuilder(); + + /** + * + * + *
+   * Optional. Whether the ad media was skippable or not.
+   * 
+ * + * bool media_skippable = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mediaSkippable. + */ + boolean getMediaSkippable(); + + /** + * + * + *
+   * Optional. The amount of the media that was played as discrete quartiles.
+   * 
+ * + * + * .google.ads.datamanager.v1.MediaQuartile media_quartile = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for mediaQuartile. + */ + int getMediaQuartileValue(); + + /** + * + * + *
+   * Optional. The amount of the media that was played as discrete quartiles.
+   * 
+ * + * + * .google.ads.datamanager.v1.MediaQuartile media_quartile = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mediaQuartile. + */ + com.google.ads.datamanager.v1.MediaQuartile getMediaQuartile(); + + /** + * + * + *
+   * Optional. The duration of the ad media.
+   * 
+ * + * .google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mediaDuration field is set. + */ + boolean hasMediaDuration(); + + /** + * + * + *
+   * Optional. The duration of the ad media.
+   * 
+ * + * .google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mediaDuration. + */ + com.google.protobuf.Duration getMediaDuration(); + + /** + * + * + *
+   * Optional. The duration of the ad media.
+   * 
+ * + * .google.protobuf.Duration media_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getMediaDurationOrBuilder(); + + /** + * + * + *
+   * Optional. The numerical percent (0-100) of the volume of the media
+   * playback.
+   * 
+ * + * int32 media_volume_percent = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The mediaVolumePercent. + */ + int getMediaVolumePercent(); + + /** + * + * + *
+   * Optional. The duration of playback of the ad media, regardless of whether
+   * it was viewable or not.
+   * 
+ * + * + * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the playbackDuration field is set. + */ + boolean hasPlaybackDuration(); + + /** + * + * + *
+   * Optional. The duration of playback of the ad media, regardless of whether
+   * it was viewable or not.
+   * 
+ * + * + * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The playbackDuration. + */ + com.google.protobuf.Duration getPlaybackDuration(); + + /** + * + * + *
+   * Optional. The duration of playback of the ad media, regardless of whether
+   * it was viewable or not.
+   * 
+ * + * + * .google.protobuf.Duration playback_duration = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getPlaybackDurationOrBuilder(); +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfoProto.java b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfoProto.java new file mode 100644 index 000000000000..412db6191407 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/java/com/google/ads/datamanager/v1/ViewabilityInfoProto.java @@ -0,0 +1,118 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/ads/datamanager/v1/viewability_info.proto +// Protobuf Java Version: 4.33.2 + +package com.google.ads.datamanager.v1; + +@com.google.protobuf.Generated +public final class ViewabilityInfoProto extends com.google.protobuf.GeneratedFile { + private ViewabilityInfoProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ViewabilityInfoProto"); + } + + 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_ads_datamanager_v1_ViewabilityInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_ads_datamanager_v1_ViewabilityInfo_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/ads/datamanager/v1/viewability_" + + "info.proto\022\031google.ads.datamanager.v1\032\037g" + + "oogle/api/field_behavior.proto\032\036google/p" + + "rotobuf/duration.proto\"\243\003\n\017ViewabilityIn" + + "fo\022;\n\tview_type\030\001 \001(\0162#.google.ads.datam" + + "anager.v1.ViewTypeB\003\340A\002\022\035\n\020viewable_perc" + + "ent\030\002 \001(\005B\003\340A\001\0229\n\021viewable_duration\030\003 \001(" + + "\0132\031.google.protobuf.DurationB\003\340A\001\022\034\n\017med" + + "ia_skippable\030\004 \001(\010B\003\340A\001\022E\n\016media_quartil" + + "e\030\005 \001(\0162(.google.ads.datamanager.v1.Medi" + + "aQuartileB\003\340A\001\0226\n\016media_duration\030\006 \001(\0132\031" + + ".google.protobuf.DurationB\003\340A\001\022!\n\024media_" + + "volume_percent\030\007 \001(\005B\003\340A\001\0229\n\021playback_du" + + "ration\030\010 \001(\0132\031.google.protobuf.DurationB" + + "\003\340A\001*[\n\010ViewType\022\031\n\025VIEW_TYPE_UNSPECIFIE" + + "D\020\000\022\030\n\024VIEW_TYPE_MRC_VIEWED\020\001\022\032\n\026VIEW_TY" + + "PE_MRC_RENDERED\020\002*\311\001\n\rMediaQuartile\022\036\n\032M" + + "EDIA_QUARTILE_UNSPECIFIED\020\000\022\030\n\024MEDIA_QUA" + + "RTILE_START\020\001\022!\n\035MEDIA_QUARTILE_FIRST_QU" + + "ARTILE\020\002\022\033\n\027MEDIA_QUARTILE_MIDPOINT\020\003\022!\n" + + "\035MEDIA_QUARTILE_THIRD_QUARTILE\020\004\022\033\n\027MEDI" + + "A_QUARTILE_COMPLETE\020\005B\321\001\n\035com.google.ads" + + ".datamanager.v1B\024ViewabilityInfoProtoP\001Z" + + "Acloud.google.com/go/datamanager/apiv1/d" + + "atamanagerpb;datamanagerpb\252\002\031Google.Ads." + + "DataManager.V1\312\002\031Google\\Ads\\DataManager\\" + + "V1\352\002\034Google::Ads::DataManager::V1b\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_ads_datamanager_v1_ViewabilityInfo_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_ads_datamanager_v1_ViewabilityInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_ads_datamanager_v1_ViewabilityInfo_descriptor, + new java.lang.String[] { + "ViewType", + "ViewablePercent", + "ViewableDuration", + "MediaSkippable", + "MediaQuartile", + "MediaDuration", + "MediaVolumePercent", + "PlaybackDuration", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ad_event.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ad_event.proto new file mode 100644 index 000000000000..12f3c58dcd34 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ad_event.proto @@ -0,0 +1,425 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.ads.datamanager.v1; + +import "google/ads/datamanager/v1/device_info.proto"; +import "google/ads/datamanager/v1/user_data.proto"; +import "google/ads/datamanager/v1/viewability_info.proto"; +import "google/api/field_behavior.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Ads.DataManager.V1"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; +option java_multiple_files = true; +option java_outer_classname = "AdEventProto"; +option java_package = "com.google.ads.datamanager.v1"; +option php_namespace = "Google\\Ads\\DataManager\\V1"; +option ruby_package = "Google::Ads::DataManager::V1"; + +// An ad event. +message AdEvent { + // The type of the event. + enum EventType { + // Unspecified event type. + EVENT_TYPE_UNSPECIFIED = 0; + + // View event. + EVENT_TYPE_VIEW = 1; + + // Click event. + EVENT_TYPE_CLICK = 2; + } + + // Additional classification about the type of ad event. + enum EventSubtype { + // Unspecified event subtype. + EVENT_SUBTYPE_UNSPECIFIED = 0; + + // Impression event. + EVENT_SUBTYPE_IMPRESSION = 1; + + // Engaged view event. + EVENT_SUBTYPE_ENGAGED_VIEW = 2; + + // Onsite click event. + EVENT_SUBTYPE_ONSITE_CLICK = 3; + + // Outbound click event. + EVENT_SUBTYPE_OUTBOUND_CLICK = 4; + } + + // Required. The ID of the advertiser for the ad event. + // + // This must match the ID sent in the linking flow. + string advertiser_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The type of the event. + EventType event_type = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Additional classification about the type of ad event. + // + // A raw string is accepted to handle values other than the pure enums. + // The enum is preferred if possible. + oneof event_subtype_oneof { + // Enum value for event subtype. + EventSubtype event_subtype = 3; + + // String value for event subtype. + string event_subtype_string = 4; + } + + // Required. The time the event occurred. + google.protobuf.Timestamp timestamp = 5 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. An ID created and managed by the caller that uniquely identifies + // this event. + // + // Required if you want to deduplicate ad events that are included + // in multiple requests. Otherwise, this field is optional. + string event_id = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Multiple pieces of user-provided data, representing the user the + // event is associated with. + // + // It is possible to provide multiple instances of the same type of data (e.g. + // email address). The more data provided, the more likely a match will be + // found. + UserData user_data = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Information gathered about the device being used when the ad + // event happened. + DeviceInfo device_info = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The device ID of the device that the ad was served to. + string mobile_device_id = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The ID of the associated campaign. + string campaign_id = 10 [(google.api.field_behavior) = REQUIRED]; + + // Required. The name of the associated campaign. + string campaign_name = 11 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The ID of the associated ad group. + string ad_group_id = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The ID of the associated ad within the group. + string ad_id = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The type of the ad served. + // + // A raw string is accepted to handle values other than the pure enums. + // The enum is preferred if possible. + oneof ad_type_oneof { + // Enum value for ad type. + AdType ad_type = 14; + + // String value for ad type. + string ad_type_string = 15; + } + + // Optional. The type of the ad served. + // + // A raw string is accepted to handle values other than the pure enums. + // The enum is preferred if possible. + oneof ad_format_oneof { + // Enum value for ad format. + AdFormat ad_format = 16; + + // String value for ad format. + string ad_format_string = 17; + } + + // Optional. The placement of the ad served. + // + // A raw string is accepted to handle values other than the pure enums. + // The enum is preferred if possible. + oneof ad_placement_oneof { + // Enum value for ad placement. + AdPlacement ad_placement = 18; + + // String value for ad placement. + string ad_placement_string = 19; + } + + // Optional. The height of the ad in pixels. + int32 ad_height = 20 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The width of the ad in pixels. + int32 ad_width = 21 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The ISO 3166-2 country plus subdivision. + string region_code = 22 [(google.api.field_behavior) = REQUIRED]; + + // Required. The platform source of the ad, akin to the Google Analytics + // source. + string source = 23 [(google.api.field_behavior) = REQUIRED]; + + // Required. The medium of the ad, akin to the Google Analytics medium. + string medium = 24 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The type of targeting used to serve the ad. + // + // A raw string is accepted to handle values other than the pure enums. + // The enum is preferred if possible. + oneof targeting_type_oneof { + // Enum value for targeting type. + TargetingType targeting_type = 25; + + // String value for targeting type. + string targeting_type_string = 26; + } + + // Optional. The type of the platform on which the ad was served. + // + // A raw string is accepted to handle values other than the pure enums. + // The enum is preferred if possible. + oneof platform_type_oneof { + // Enum value for platform type. + PlatformType platform_type = 27; + + // String value for platform type. + string platform_type_string = 28; + } + + // Optional. Further detail of the platform on which the ad was served. + // + // A raw string is accepted to handle values other than the pure enums. + // The enum is preferred if possible. + oneof platform_oneof { + // Enum value for platform. + Platform platform = 29; + + // String value for platform. + string platform_string = 30; + } + + // Optional. The partner-assumed attribution status for this ad event. + // + // This acts only as a signal for how the partner assumed attribution played + // out, and does not force an end result in final reports. + AttributionHint attribution_hint = 31 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Details of the viewability of the ad served. + ViewabilityInfo viewability_info = 32 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Represents if the row is allowed to be used for measurement + // purposes, as governed by applicable privacy laws within regional + // jurisdiction. + optional bool measurement_allowed = 33 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The type of the ad served. +enum AdType { + // Unspecified ad type. + AD_TYPE_UNSPECIFIED = 0; + + // Display ad. + AD_TYPE_DISPLAY = 1; + + // Text ad. + AD_TYPE_TEXT = 2; + + // Image ad. + AD_TYPE_IMAGE = 3; + + // Rich media ad. + AD_TYPE_RICH_MEDIA = 4; + + // HTML ad. + AD_TYPE_HTML = 5; + + // Audio ad. + AD_TYPE_AUDIO = 6; + + // Video ad. + AD_TYPE_VIDEO = 7; +} + +// The format of the ad served. +enum AdFormat { + // Unspecified ad format. + AD_FORMAT_UNSPECIFIED = 0; + + // AR ad. + AD_FORMAT_AR = 1; + + // Audio ad. + AD_FORMAT_AUDIO = 2; + + // Banner ad. + AD_FORMAT_BANNER = 3; + + // Bumper ad. + AD_FORMAT_BUMPER = 4; + + // Carousel ad. + AD_FORMAT_CAROUSEL = 5; + + // Collection ad. + AD_FORMAT_COLLECTION = 6; + + // Image ad. + AD_FORMAT_IMAGE = 7; + + // Interactive ad. + AD_FORMAT_INTERACTIVE = 8; + + // Interstitial ad. + AD_FORMAT_INTERSTITIAL = 9; + + // In-feed ad. + AD_FORMAT_IN_FEED = 10; + + // In-stream ad. + AD_FORMAT_IN_STREAM = 11; + + // In-stream skippable ad. + AD_FORMAT_IN_STREAM_SKIPPABLE = 12; + + // In-stream non-skippable ad. + AD_FORMAT_IN_STREAM_NON_SKIPPABLE = 13; + + // Native ad. + AD_FORMAT_NATIVE = 14; + + // Shorts ad. + AD_FORMAT_SHORTS = 15; + + // Story ad. + AD_FORMAT_STORY = 16; + + // Sponsored ad. + AD_FORMAT_SPONSORED = 17; + + // Video ad. + AD_FORMAT_VIDEO = 18; +} + +// The placement of the ad served. +enum AdPlacement { + // Unspecified ad placement. + AD_PLACEMENT_UNSPECIFIED = 0; + + // Discover placement. + AD_PLACEMENT_DISCOVER = 1; + + // Feed placement. + AD_PLACEMENT_FEED = 2; + + // Footer placement. + AD_PLACEMENT_FOOTER = 3; + + // Header placement. + AD_PLACEMENT_HEADER = 4; + + // Home placement. + AD_PLACEMENT_HOME = 5; + + // In-content placement. + AD_PLACEMENT_IN_CONTENT = 6; + + // Promoted placement. + AD_PLACEMENT_PROMOTED = 7; + + // Search placement. + AD_PLACEMENT_SEARCH = 8; + + // Story placement. + AD_PLACEMENT_STORY = 9; +} + +// The type of targeting used to serve the ad. +enum TargetingType { + // Unspecified targeting type. + TARGETING_TYPE_UNSPECIFIED = 0; + + // Audience targeting. + TARGETING_TYPE_AUDIENCE = 1; + + // Contextual targeting. + TARGETING_TYPE_CONTEXTUAL = 2; + + // Demographic targeting. + TARGETING_TYPE_DEMOGRAPHIC = 3; + + // Device targeting. + TARGETING_TYPE_DEVICE = 4; + + // Geo targeting. + TARGETING_TYPE_GEO = 5; + + // Interest targeting. + TARGETING_TYPE_INTEREST = 6; + + // Purchase intent targeting. + TARGETING_TYPE_PURCHASE_INTENT = 7; + + // Remarketing targeting. + TARGETING_TYPE_REMARKETING = 8; +} + +// The type of the platform on which the ad was served. +enum PlatformType { + // Unspecified platform type. + PLATFORM_TYPE_UNSPECIFIED = 0; + + // Mobile platform. + PLATFORM_TYPE_MOBILE = 1; + + // Desktop platform. + PLATFORM_TYPE_DESKTOP = 2; + + // CTV platform. + PLATFORM_TYPE_CTV = 3; + + // Phone platform. + PLATFORM_TYPE_PHONE = 4; + + // Tablet platform. + PLATFORM_TYPE_TABLET = 5; +} + +// Further detail of the platform on which the ad was served. +enum Platform { + // Unspecified platform. + PLATFORM_UNSPECIFIED = 0; + + // iOS platform. + PLATFORM_IOS = 1; + + // Android platform. + PLATFORM_ANDROID = 2; + + // Web platform. + PLATFORM_WEB = 3; +} + +// The partner-assumed attribution status for this ad event. +enum AttributionHint { + // Unknown attribution status. + ATTRIBUTION_HINT_UNSPECIFIED = 0; + + // Converted status. + ATTRIBUTION_HINT_CONVERTED = 1; + + // Not converted status. + ATTRIBUTION_HINT_NOT_CONVERTED = 2; +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto index 069d1fd31fb7..f345a1174815 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/destination.proto @@ -104,10 +104,10 @@ message ProductAccount { // Required. The ID of the account. For example, your Google Ads account ID. string account_id = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. The type of the account. For example, `GOOGLE_ADS`. + // Required. The type of the account. For example, `GOOGLE_ADS`. // Either `account_type` or the deprecated `product` is required. // If both are set, the values must match. - AccountType account_type = 3 [(google.api.field_behavior) = OPTIONAL]; + AccountType account_type = 3 [(google.api.field_behavior) = REQUIRED]; } // Deprecated. Use diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto index 48067f839c1e..1f4f4a4cb324 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/device_info.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.ads.datamanager.v1; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; option csharp_namespace = "Google.Ads.DataManager.V1"; option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; @@ -42,7 +43,10 @@ message DeviceInfo { // applicable Google policies. See the [About offline conversion // imports](https://support.google.com/google-ads/answer/2998031) page for // more details. - string ip_address = 2 [(google.api.field_behavior) = OPTIONAL]; + string ip_address = 2 [ + (google.api.field_info).format = IPV4_OR_IPV6, + (google.api.field_behavior) = OPTIONAL + ]; // Optional. The category of device. For example, “desktop”, “tablet”, // “mobile”, “smart TV”. diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto index 365e5cd12e05..58ee7eac9919 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/encryption_info.proto @@ -36,6 +36,16 @@ message EncryptionInfo { // Amazon Web Services wrapped key information. AwsWrappedKeyInfo aws_wrapped_key_info = 2; + + // Key information for the chosen coordinator key. + // + // This is not supported for the + // [IngestEvents][google.ads.datamanager.v1.IngestionService.IngestEvents], + // [IngestAudienceMembers][google.ads.datamanager.v1.IngestionService.IngestAudienceMembers], + // and + // [RemoveAudienceMembers][google.ads.datamanager.v1.IngestionService.RemoveAudienceMembers] + // methods. + CoordinatorKeyInfo coordinator_key_info = 3; } } @@ -98,3 +108,9 @@ message AwsWrappedKeyInfo { // Required. The base64 encoded encrypted data encryption key. string encrypted_dek = 4 [(google.api.field_behavior) = REQUIRED]; } + +// Information about the coordinator key. +message CoordinatorKeyInfo { + // Required. The ID of the chosen coordinator key. + string key_id = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto index 9295d9374933..98d6ae724528 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/error.proto @@ -148,6 +148,8 @@ enum ErrorReason { UNSUPPORTED_LINKED_ACCOUNT_FOR_DATA_PARTNER = 38; // Events data contains no user identifiers or ad identifiers. + // For Floodlight Event ingestion this error indicates requests contains no ad + // identifiers. NO_IDENTIFIERS_PROVIDED = 39; // The property type is not supported. diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto index d388f7691b90..538e2d2ff472 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/ingestion_service.proto @@ -16,6 +16,7 @@ syntax = "proto3"; package google.ads.datamanager.v1; +import "google/ads/datamanager/v1/ad_event.proto"; import "google/ads/datamanager/v1/audience.proto"; import "google/ads/datamanager/v1/consent.proto"; import "google/ads/datamanager/v1/destination.proto"; @@ -73,6 +74,18 @@ service IngestionService { }; } + // Uploads a list of + // [AdEvent][google.ads.datamanager.v1.AdEvent] resources to Google + // Analytics. + // + // This feature is only available to accounts on an allowlist. + rpc IngestAdEvents(IngestAdEventsRequest) returns (IngestAdEventsResponse) { + option (google.api.http) = { + post: "/v1/adEvents:ingest" + body: "*" + }; + } + // Gets the status of a request given request id. rpc RetrieveRequestStatus(RetrieveRequestStatusRequest) returns (RetrieveRequestStatusResponse) { @@ -210,6 +223,22 @@ message IngestEventsResponse { string request_id = 1; } +// Request to upload ad events. +message IngestAdEventsRequest { + // Required. Required (at least 1). A list of ad events. + repeated AdEvent ad_events = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Information about encryption keys which are used to encrypt the + // data. + EncryptionInfo encryption_info = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, the request is validated, but not executed. + bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response from an ad event ingestion operation. +message IngestAdEventsResponse {} + // Request to get the status of request made to the DM API for a given request // ID. Returns a // [RetrieveRequestStatusResponse][google.ads.datamanager.v1.RetrieveRequestStatusResponse]. diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/partner_link_service.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/partner_link_service.proto index 3e37a1c00841..9148b1366832 100644 --- a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/partner_link_service.proto +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/partner_link_service.proto @@ -216,4 +216,58 @@ message PartnerLink { // Required. The partner account granted access by the owning account. ProductAccount partner_account = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Immutable. The set of features supported for the partner link. + // If not specified, the system behavior defaults to + // [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT]. + FeatureSet feature_set = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. The customer account in the partner system. + // This is required for partner links with the + // [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT] + // feature set. + PartnerCustomerAccount partner_customer_account = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Metadata associated with the partner link. + // This is optional and only accepted for partner links with the + // [FEATURE_SET_AD_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AD_EVENT_MANAGEMENT]. + PartnerLinkMetadata partner_link_metadata = 7 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a customer account in the partner's system. +message PartnerCustomerAccount { + // Required. The identifier of the customer account in the partner's ID space. + string account_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The name of the account. + string account_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The type of the account. Can be used to distinguish between + // advertiser accounts and business level accounts, for example. + string account_type = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents metadata associated with a partner link. +message PartnerLinkMetadata { + // Optional. The list of implicit accounts. + repeated PartnerCustomerAccount implicit_accounts = 1 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The set of supported features for a partner link. +enum FeatureSet { + // Unspecified feature set. If unspecified, the system behavior defaults to + // [FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT][google.ads.datamanager.v1.FeatureSet.FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT]. + FEATURE_SET_UNSPECIFIED = 0; + + // Indicates a link used for audience and event management. + FEATURE_SET_AUDIENCE_AND_EVENT_MANAGEMENT = 1; + + // Indicates a link used for ad event management. + FEATURE_SET_AD_EVENT_MANAGEMENT = 2; } diff --git a/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/viewability_info.proto b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/viewability_info.proto new file mode 100644 index 000000000000..b1b87791a415 --- /dev/null +++ b/java-datamanager/proto-data-manager-v1/src/main/proto/google/ads/datamanager/v1/viewability_info.proto @@ -0,0 +1,93 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// 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.ads.datamanager.v1; + +import "google/api/field_behavior.proto"; +import "google/protobuf/duration.proto"; + +option csharp_namespace = "Google.Ads.DataManager.V1"; +option go_package = "cloud.google.com/go/datamanager/apiv1/datamanagerpb;datamanagerpb"; +option java_multiple_files = true; +option java_outer_classname = "ViewabilityInfoProto"; +option java_package = "com.google.ads.datamanager.v1"; +option php_namespace = "Google\\Ads\\DataManager\\V1"; +option ruby_package = "Google::Ads::DataManager::V1"; + +// Details of the viewability of the ad served. +message ViewabilityInfo { + // Required. The type of the event. + ViewType view_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The numerical percent (0-100) of the pixels that were viewable. + int32 viewable_percent = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The amount of time the ad was viewable for. + google.protobuf.Duration viewable_duration = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the ad media was skippable or not. + bool media_skippable = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The amount of the media that was played as discrete quartiles. + MediaQuartile media_quartile = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The duration of the ad media. + google.protobuf.Duration media_duration = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The numerical percent (0-100) of the volume of the media + // playback. + int32 media_volume_percent = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The duration of playback of the ad media, regardless of whether + // it was viewable or not. + google.protobuf.Duration playback_duration = 8 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The type of the event. +enum ViewType { + // Unspecified view type. + VIEW_TYPE_UNSPECIFIED = 0; + + // MRC viewed. + VIEW_TYPE_MRC_VIEWED = 1; + + // MRC rendered. + VIEW_TYPE_MRC_RENDERED = 2; +} + +// The amount of the media that was played as discrete quartiles. +enum MediaQuartile { + // Unspecified media quartile. + MEDIA_QUARTILE_UNSPECIFIED = 0; + + // Start. + MEDIA_QUARTILE_START = 1; + + // First quartile. + MEDIA_QUARTILE_FIRST_QUARTILE = 2; + + // Midpoint. + MEDIA_QUARTILE_MIDPOINT = 3; + + // Third quartile. + MEDIA_QUARTILE_THIRD_QUARTILE = 4; + + // Complete. + MEDIA_QUARTILE_COMPLETE = 5; +} diff --git a/java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/ingestadevents/AsyncIngestAdEvents.java b/java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/ingestadevents/AsyncIngestAdEvents.java new file mode 100644 index 000000000000..986c8c327ec9 --- /dev/null +++ b/java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/ingestadevents/AsyncIngestAdEvents.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.datamanager.v1.samples; + +// [START datamanager_v1_generated_IngestionService_IngestAdEvents_async] +import com.google.ads.datamanager.v1.AdEvent; +import com.google.ads.datamanager.v1.EncryptionInfo; +import com.google.ads.datamanager.v1.IngestAdEventsRequest; +import com.google.ads.datamanager.v1.IngestAdEventsResponse; +import com.google.ads.datamanager.v1.IngestionServiceClient; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncIngestAdEvents { + + public static void main(String[] args) throws Exception { + asyncIngestAdEvents(); + } + + public static void asyncIngestAdEvents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IngestionServiceClient ingestionServiceClient = IngestionServiceClient.create()) { + IngestAdEventsRequest request = + IngestAdEventsRequest.newBuilder() + .addAllAdEvents(new ArrayList()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setValidateOnly(true) + .build(); + ApiFuture future = + ingestionServiceClient.ingestAdEventsCallable().futureCall(request); + // Do something. + IngestAdEventsResponse response = future.get(); + } + } +} +// [END datamanager_v1_generated_IngestionService_IngestAdEvents_async] diff --git a/java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/ingestadevents/SyncIngestAdEvents.java b/java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/ingestadevents/SyncIngestAdEvents.java new file mode 100644 index 000000000000..547cfbf78820 --- /dev/null +++ b/java-datamanager/samples/snippets/generated/com/google/ads/datamanager/v1/ingestionservice/ingestadevents/SyncIngestAdEvents.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.datamanager.v1.samples; + +// [START datamanager_v1_generated_IngestionService_IngestAdEvents_sync] +import com.google.ads.datamanager.v1.AdEvent; +import com.google.ads.datamanager.v1.EncryptionInfo; +import com.google.ads.datamanager.v1.IngestAdEventsRequest; +import com.google.ads.datamanager.v1.IngestAdEventsResponse; +import com.google.ads.datamanager.v1.IngestionServiceClient; +import java.util.ArrayList; + +public class SyncIngestAdEvents { + + public static void main(String[] args) throws Exception { + syncIngestAdEvents(); + } + + public static void syncIngestAdEvents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IngestionServiceClient ingestionServiceClient = IngestionServiceClient.create()) { + IngestAdEventsRequest request = + IngestAdEventsRequest.newBuilder() + .addAllAdEvents(new ArrayList()) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .setValidateOnly(true) + .build(); + IngestAdEventsResponse response = ingestionServiceClient.ingestAdEvents(request); + } + } +} +// [END datamanager_v1_generated_IngestionService_IngestAdEvents_sync] diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceClient.java new file mode 100644 index 000000000000..78518248c9a5 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceClient.java @@ -0,0 +1,403 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.stub.AclConfigServiceStub; +import com.google.cloud.discoveryengine.v1beta.stub.AclConfigServiceStubSettings; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing Acl Configuration. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
+ *   UpdateAclConfigRequest request =
+ *       UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build();
+ *   AclConfig response = aclConfigServiceClient.updateAclConfig(request);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the AclConfigServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

UpdateAclConfig

Default ACL configuration for use in a location of a customer's project. Updates will only reflect to new data stores. Existing data stores will still use the old value.

+ *

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

+ *
    + *
  • updateAclConfig(UpdateAclConfigRequest request) + *

+ *

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

+ *
    + *
  • updateAclConfigCallable() + *

+ *

GetAclConfig

Gets the [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig].

+ *

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

+ *
    + *
  • getAclConfig(GetAclConfigRequest request) + *

+ *

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

+ *
    + *
  • getAclConfig(AclConfigName name) + *

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

+ *
    + *
  • getAclConfigCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of AclConfigServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AclConfigServiceSettings aclConfigServiceSettings =
+ *     AclConfigServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * AclConfigServiceClient aclConfigServiceClient =
+ *     AclConfigServiceClient.create(aclConfigServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AclConfigServiceSettings aclConfigServiceSettings =
+ *     AclConfigServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AclConfigServiceClient aclConfigServiceClient =
+ *     AclConfigServiceClient.create(aclConfigServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AclConfigServiceSettings aclConfigServiceSettings =
+ *     AclConfigServiceSettings.newHttpJsonBuilder().build();
+ * AclConfigServiceClient aclConfigServiceClient =
+ *     AclConfigServiceClient.create(aclConfigServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class AclConfigServiceClient implements BackgroundResource { + private final AclConfigServiceSettings settings; + private final AclConfigServiceStub stub; + + /** Constructs an instance of AclConfigServiceClient with default settings. */ + public static final AclConfigServiceClient create() throws IOException { + return create(AclConfigServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AclConfigServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final AclConfigServiceClient create(AclConfigServiceSettings settings) + throws IOException { + return new AclConfigServiceClient(settings); + } + + /** + * Constructs an instance of AclConfigServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(AclConfigServiceSettings). + */ + public static final AclConfigServiceClient create(AclConfigServiceStub stub) { + return new AclConfigServiceClient(stub); + } + + /** + * Constructs an instance of AclConfigServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected AclConfigServiceClient(AclConfigServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AclConfigServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected AclConfigServiceClient(AclConfigServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final AclConfigServiceSettings getSettings() { + return settings; + } + + public AclConfigServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Default ACL configuration for use in a location of a customer's project. Updates will only + * reflect to new data stores. Existing data stores will still use the old value. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
+   *   UpdateAclConfigRequest request =
+   *       UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build();
+   *   AclConfig response = aclConfigServiceClient.updateAclConfig(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 AclConfig updateAclConfig(UpdateAclConfigRequest request) { + return updateAclConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Default ACL configuration for use in a location of a customer's project. Updates will only + * reflect to new data stores. Existing data stores will still use the old value. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
+   *   UpdateAclConfigRequest request =
+   *       UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build();
+   *   ApiFuture future =
+   *       aclConfigServiceClient.updateAclConfigCallable().futureCall(request);
+   *   // Do something.
+   *   AclConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateAclConfigCallable() { + return stub.updateAclConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
+   *   AclConfigName name = AclConfigName.of("[PROJECT]", "[LOCATION]");
+   *   AclConfig response = aclConfigServiceClient.getAclConfig(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of + * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], such as + * `projects/*/locations/*/aclConfig`. + *

If the caller does not have permission to access the + * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], regardless of whether or not it + * exists, a PERMISSION_DENIED error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclConfig getAclConfig(AclConfigName name) { + GetAclConfigRequest request = + GetAclConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAclConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
+   *   String name = AclConfigName.of("[PROJECT]", "[LOCATION]").toString();
+   *   AclConfig response = aclConfigServiceClient.getAclConfig(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of + * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], such as + * `projects/*/locations/*/aclConfig`. + *

If the caller does not have permission to access the + * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], regardless of whether or not it + * exists, a PERMISSION_DENIED error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclConfig getAclConfig(String name) { + GetAclConfigRequest request = GetAclConfigRequest.newBuilder().setName(name).build(); + return getAclConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
+   *   GetAclConfigRequest request =
+   *       GetAclConfigRequest.newBuilder()
+   *           .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .build();
+   *   AclConfig response = aclConfigServiceClient.getAclConfig(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 AclConfig getAclConfig(GetAclConfigRequest request) { + return getAclConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
+   *   GetAclConfigRequest request =
+   *       GetAclConfigRequest.newBuilder()
+   *           .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       aclConfigServiceClient.getAclConfigCallable().futureCall(request);
+   *   // Do something.
+   *   AclConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getAclConfigCallable() { + return stub.getAclConfigCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceSettings.java new file mode 100644 index 000000000000..b0684c152127 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceSettings.java @@ -0,0 +1,227 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +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.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1beta.stub.AclConfigServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AclConfigServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require 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.Builder aclConfigServiceSettingsBuilder =
+ *     AclConfigServiceSettings.newBuilder();
+ * aclConfigServiceSettingsBuilder
+ *     .updateAclConfigSettings()
+ *     .setRetrySettings(
+ *         aclConfigServiceSettingsBuilder
+ *             .updateAclConfigSettings()
+ *             .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());
+ * AclConfigServiceSettings aclConfigServiceSettings = aclConfigServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class AclConfigServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to updateAclConfig. */ + public UnaryCallSettings updateAclConfigSettings() { + return ((AclConfigServiceStubSettings) getStubSettings()).updateAclConfigSettings(); + } + + /** Returns the object with the settings used for calls to getAclConfig. */ + public UnaryCallSettings getAclConfigSettings() { + return ((AclConfigServiceStubSettings) getStubSettings()).getAclConfigSettings(); + } + + public static final AclConfigServiceSettings create(AclConfigServiceStubSettings stub) + throws IOException { + return new AclConfigServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AclConfigServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AclConfigServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AclConfigServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AclConfigServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AclConfigServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AclConfigServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AclConfigServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AclConfigServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AclConfigServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AclConfigServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(AclConfigServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(AclConfigServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AclConfigServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AclConfigServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(AclConfigServiceStubSettings.newHttpJsonBuilder()); + } + + public AclConfigServiceStubSettings.Builder getStubSettingsBuilder() { + return ((AclConfigServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to updateAclConfig. */ + public UnaryCallSettings.Builder updateAclConfigSettings() { + return getStubSettingsBuilder().updateAclConfigSettings(); + } + + /** Returns the builder for the settings used for calls to getAclConfig. */ + public UnaryCallSettings.Builder getAclConfigSettings() { + return getStubSettingsBuilder().getAclConfigSettings(); + } + + @Override + public AclConfigServiceSettings build() throws IOException { + return new AclConfigServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceClient.java new file mode 100644 index 000000000000..013b04e4cdcc --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceClient.java @@ -0,0 +1,1020 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.stub.AssistantServiceStub; +import com.google.cloud.discoveryengine.v1beta.stub.AssistantServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing Assistant configuration and assisting users. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ *   CreateAssistantRequest request =
+ *       CreateAssistantRequest.newBuilder()
+ *           .setParent(
+ *               EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+ *           .setAssistant(Assistant.newBuilder().build())
+ *           .setAssistantId("assistantId-324518759")
+ *           .build();
+ *   Assistant response = assistantServiceClient.createAssistant(request);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the AssistantServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

StreamAssist

Assists the user with a query 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.

+ *
    + *
  • streamAssistCallable() + *

+ *

CreateAssistant

Creates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].

+ *

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

+ *
    + *
  • createAssistant(CreateAssistantRequest request) + *

+ *

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

+ *
    + *
  • createAssistantCallable() + *

+ *

DeleteAssistant

Deletes an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].

+ *

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

+ *
    + *
  • deleteAssistant(DeleteAssistantRequest request) + *

+ *

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

+ *
    + *
  • deleteAssistant(AssistantName name) + *

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

+ *
    + *
  • deleteAssistantCallable() + *

+ *

UpdateAssistant

Updates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]

+ *

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

+ *
    + *
  • updateAssistant(UpdateAssistantRequest request) + *

+ *

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

+ *
    + *
  • updateAssistant(Assistant assistant, 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.

+ *
    + *
  • updateAssistantCallable() + *

+ *

GetAssistant

Gets an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].

+ *

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

+ *
    + *
  • getAssistant(GetAssistantRequest request) + *

+ *

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

+ *
    + *
  • getAssistant(AssistantName name) + *

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

+ *
    + *
  • getAssistantCallable() + *

+ *

ListAssistants

Lists all [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s under an [Engine][google.cloud.discoveryengine.v1beta.Engine].

+ *

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

+ *
    + *
  • listAssistants(ListAssistantsRequest request) + *

+ *

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

+ *
    + *
  • listAssistants(EngineName parent) + *

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

+ *
    + *
  • listAssistantsPagedCallable() + *

  • listAssistantsCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of AssistantServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AssistantServiceSettings assistantServiceSettings =
+ *     AssistantServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * AssistantServiceClient assistantServiceClient =
+ *     AssistantServiceClient.create(assistantServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AssistantServiceSettings assistantServiceSettings =
+ *     AssistantServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AssistantServiceClient assistantServiceClient =
+ *     AssistantServiceClient.create(assistantServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AssistantServiceSettings assistantServiceSettings =
+ *     AssistantServiceSettings.newHttpJsonBuilder().build();
+ * AssistantServiceClient assistantServiceClient =
+ *     AssistantServiceClient.create(assistantServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class AssistantServiceClient implements BackgroundResource { + private final AssistantServiceSettings settings; + private final AssistantServiceStub stub; + + /** Constructs an instance of AssistantServiceClient with default settings. */ + public static final AssistantServiceClient create() throws IOException { + return create(AssistantServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AssistantServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final AssistantServiceClient create(AssistantServiceSettings settings) + throws IOException { + return new AssistantServiceClient(settings); + } + + /** + * Constructs an instance of AssistantServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(AssistantServiceSettings). + */ + public static final AssistantServiceClient create(AssistantServiceStub stub) { + return new AssistantServiceClient(stub); + } + + /** + * Constructs an instance of AssistantServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected AssistantServiceClient(AssistantServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AssistantServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected AssistantServiceClient(AssistantServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final AssistantServiceSettings getSettings() { + return settings; + } + + public AssistantServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Assists the user with a query 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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   StreamAssistRequest request =
+   *       StreamAssistRequest.newBuilder()
+   *           .setName(
+   *               AssistantName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]")
+   *                   .toString())
+   *           .setQuery(Query.newBuilder().build())
+   *           .setSession(
+   *               SessionName.ofProjectLocationDataStoreSessionName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]")
+   *                   .toString())
+   *           .setUserMetadata(AssistUserMetadata.newBuilder().build())
+   *           .setToolsSpec(StreamAssistRequest.ToolsSpec.newBuilder().build())
+   *           .setGenerationSpec(StreamAssistRequest.GenerationSpec.newBuilder().build())
+   *           .build();
+   *   ServerStream stream =
+   *       assistantServiceClient.streamAssistCallable().call(request);
+   *   for (StreamAssistResponse response : stream) {
+   *     // Do something when a response is received.
+   *   }
+   * }
+   * }
+ */ + public final ServerStreamingCallable + streamAssistCallable() { + return stub.streamAssistCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   CreateAssistantRequest request =
+   *       CreateAssistantRequest.newBuilder()
+   *           .setParent(
+   *               EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+   *           .setAssistant(Assistant.newBuilder().build())
+   *           .setAssistantId("assistantId-324518759")
+   *           .build();
+   *   Assistant response = assistantServiceClient.createAssistant(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 Assistant createAssistant(CreateAssistantRequest request) { + return createAssistantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   CreateAssistantRequest request =
+   *       CreateAssistantRequest.newBuilder()
+   *           .setParent(
+   *               EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+   *           .setAssistant(Assistant.newBuilder().build())
+   *           .setAssistantId("assistantId-324518759")
+   *           .build();
+   *   ApiFuture future =
+   *       assistantServiceClient.createAssistantCallable().futureCall(request);
+   *   // Do something.
+   *   Assistant response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createAssistantCallable() { + return stub.createAssistantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   AssistantName name =
+   *       AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]");
+   *   assistantServiceClient.deleteAssistant(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of + * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` + *

If the caller does not have permission to delete the + * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of whether or not it + * exists, a PERMISSION_DENIED error is returned. + *

If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to delete does not + * exist, a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAssistant(AssistantName name) { + DeleteAssistantRequest request = + DeleteAssistantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteAssistant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   String name =
+   *       AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]")
+   *           .toString();
+   *   assistantServiceClient.deleteAssistant(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of + * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` + *

If the caller does not have permission to delete the + * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of whether or not it + * exists, a PERMISSION_DENIED error is returned. + *

If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to delete does not + * exist, a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAssistant(String name) { + DeleteAssistantRequest request = DeleteAssistantRequest.newBuilder().setName(name).build(); + deleteAssistant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   DeleteAssistantRequest request =
+   *       DeleteAssistantRequest.newBuilder()
+   *           .setName(
+   *               AssistantName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]")
+   *                   .toString())
+   *           .build();
+   *   assistantServiceClient.deleteAssistant(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 deleteAssistant(DeleteAssistantRequest request) { + deleteAssistantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   Assistant assistant = Assistant.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   Assistant response = assistantServiceClient.updateAssistant(assistant, updateMask);
+   * }
+   * }
+ * + * @param assistant Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to + * update. + *

The [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s `name` field is used to + * identify the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` + *

If the caller does not have permission to update the + * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of whether or not it + * exists, a PERMISSION_DENIED error is returned. + *

If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update does not + * exist, a NOT_FOUND error is returned. + * @param updateMask The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Assistant updateAssistant(Assistant assistant, FieldMask updateMask) { + UpdateAssistantRequest request = + UpdateAssistantRequest.newBuilder() + .setAssistant(assistant) + .setUpdateMask(updateMask) + .build(); + return updateAssistant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant] + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   UpdateAssistantRequest request =
+   *       UpdateAssistantRequest.newBuilder()
+   *           .setAssistant(Assistant.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Assistant response = assistantServiceClient.updateAssistant(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 Assistant updateAssistant(UpdateAssistantRequest request) { + return updateAssistantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant] + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   AssistantName name =
+   *       AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]");
+   *   Assistant response = assistantServiceClient.getAssistant(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of + * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Assistant getAssistant(AssistantName name) { + GetAssistantRequest request = + GetAssistantRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAssistant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   String name =
+   *       AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]")
+   *           .toString();
+   *   Assistant response = assistantServiceClient.getAssistant(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of + * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Assistant getAssistant(String name) { + GetAssistantRequest request = GetAssistantRequest.newBuilder().setName(name).build(); + return getAssistant(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   GetAssistantRequest request =
+   *       GetAssistantRequest.newBuilder()
+   *           .setName(
+   *               AssistantName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]")
+   *                   .toString())
+   *           .build();
+   *   Assistant response = assistantServiceClient.getAssistant(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 Assistant getAssistant(GetAssistantRequest request) { + return getAssistantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   GetAssistantRequest request =
+   *       GetAssistantRequest.newBuilder()
+   *           .setName(
+   *               AssistantName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       assistantServiceClient.getAssistantCallable().futureCall(request);
+   *   // Do something.
+   *   Assistant response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getAssistantCallable() { + return stub.getAssistantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s under an + * [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]");
+   *   for (Assistant element : assistantServiceClient.listAssistants(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource name. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAssistantsPagedResponse listAssistants(EngineName parent) { + ListAssistantsRequest request = + ListAssistantsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAssistants(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s under an + * [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   String parent =
+   *       EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString();
+   *   for (Assistant element : assistantServiceClient.listAssistants(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource name. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAssistantsPagedResponse listAssistants(String parent) { + ListAssistantsRequest request = ListAssistantsRequest.newBuilder().setParent(parent).build(); + return listAssistants(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s under an + * [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   ListAssistantsRequest request =
+   *       ListAssistantsRequest.newBuilder()
+   *           .setParent(
+   *               EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Assistant element : assistantServiceClient.listAssistants(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 ListAssistantsPagedResponse listAssistants(ListAssistantsRequest request) { + return listAssistantsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s under an + * [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   ListAssistantsRequest request =
+   *       ListAssistantsRequest.newBuilder()
+   *           .setParent(
+   *               EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListAssistantsResponse response =
+   *         assistantServiceClient.listAssistantsCallable().call(request);
+   *     for (Assistant element : response.getAssistantsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAssistantsCallable() { + return stub.listAssistantsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListAssistantsPagedResponse + extends AbstractPagedListResponse< + ListAssistantsRequest, + ListAssistantsResponse, + Assistant, + ListAssistantsPage, + ListAssistantsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAssistantsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAssistantsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAssistantsPagedResponse(ListAssistantsPage page) { + super(page, ListAssistantsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAssistantsPage + extends AbstractPage< + ListAssistantsRequest, ListAssistantsResponse, Assistant, ListAssistantsPage> { + + private ListAssistantsPage( + PageContext context, + ListAssistantsResponse response) { + super(context, response); + } + + private static ListAssistantsPage createEmptyPage() { + return new ListAssistantsPage(null, null); + } + + @Override + protected ListAssistantsPage createPage( + PageContext context, + ListAssistantsResponse response) { + return new ListAssistantsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAssistantsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAssistantsRequest, + ListAssistantsResponse, + Assistant, + ListAssistantsPage, + ListAssistantsFixedSizeCollection> { + + private ListAssistantsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAssistantsFixedSizeCollection createEmptyCollection() { + return new ListAssistantsFixedSizeCollection(null, 0); + } + + @Override + protected ListAssistantsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAssistantsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceSettings.java new file mode 100644 index 000000000000..4d310fdc2b11 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceSettings.java @@ -0,0 +1,278 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static com.google.cloud.discoveryengine.v1beta.AssistantServiceClient.ListAssistantsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +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.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1beta.stub.AssistantServiceStubSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AssistantServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * AssistantServiceSettings.Builder assistantServiceSettingsBuilder =
+ *     AssistantServiceSettings.newBuilder();
+ * assistantServiceSettingsBuilder
+ *     .createAssistantSettings()
+ *     .setRetrySettings(
+ *         assistantServiceSettingsBuilder
+ *             .createAssistantSettings()
+ *             .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());
+ * AssistantServiceSettings assistantServiceSettings = assistantServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class AssistantServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to streamAssist. */ + public ServerStreamingCallSettings + streamAssistSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).streamAssistSettings(); + } + + /** Returns the object with the settings used for calls to createAssistant. */ + public UnaryCallSettings createAssistantSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).createAssistantSettings(); + } + + /** Returns the object with the settings used for calls to deleteAssistant. */ + public UnaryCallSettings deleteAssistantSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).deleteAssistantSettings(); + } + + /** Returns the object with the settings used for calls to updateAssistant. */ + public UnaryCallSettings updateAssistantSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).updateAssistantSettings(); + } + + /** Returns the object with the settings used for calls to getAssistant. */ + public UnaryCallSettings getAssistantSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).getAssistantSettings(); + } + + /** Returns the object with the settings used for calls to listAssistants. */ + public PagedCallSettings< + ListAssistantsRequest, ListAssistantsResponse, ListAssistantsPagedResponse> + listAssistantsSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).listAssistantsSettings(); + } + + public static final AssistantServiceSettings create(AssistantServiceStubSettings stub) + throws IOException { + return new AssistantServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AssistantServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AssistantServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AssistantServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AssistantServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AssistantServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AssistantServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AssistantServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AssistantServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AssistantServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AssistantServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(AssistantServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(AssistantServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AssistantServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AssistantServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(AssistantServiceStubSettings.newHttpJsonBuilder()); + } + + public AssistantServiceStubSettings.Builder getStubSettingsBuilder() { + return ((AssistantServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to streamAssist. */ + public ServerStreamingCallSettings.Builder + streamAssistSettings() { + return getStubSettingsBuilder().streamAssistSettings(); + } + + /** Returns the builder for the settings used for calls to createAssistant. */ + public UnaryCallSettings.Builder createAssistantSettings() { + return getStubSettingsBuilder().createAssistantSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAssistant. */ + public UnaryCallSettings.Builder deleteAssistantSettings() { + return getStubSettingsBuilder().deleteAssistantSettings(); + } + + /** Returns the builder for the settings used for calls to updateAssistant. */ + public UnaryCallSettings.Builder updateAssistantSettings() { + return getStubSettingsBuilder().updateAssistantSettings(); + } + + /** Returns the builder for the settings used for calls to getAssistant. */ + public UnaryCallSettings.Builder getAssistantSettings() { + return getStubSettingsBuilder().getAssistantSettings(); + } + + /** Returns the builder for the settings used for calls to listAssistants. */ + public PagedCallSettings.Builder< + ListAssistantsRequest, ListAssistantsResponse, ListAssistantsPagedResponse> + listAssistantsSettings() { + return getStubSettingsBuilder().listAssistantsSettings(); + } + + @Override + public AssistantServiceSettings build() throws IOException { + return new AssistantServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceClient.java new file mode 100644 index 000000000000..c0237896cd4e --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceClient.java @@ -0,0 +1,824 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.stub.CmekConfigServiceStub; +import com.google.cloud.discoveryengine.v1beta.stub.CmekConfigServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing CMEK related tasks + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+ *   CmekConfigName name = CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]");
+ *   CmekConfig response = cmekConfigServiceClient.getCmekConfig(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the CmekConfigServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

UpdateCmekConfig

Provisions a CMEK key for use in a location of a customer's project. This method will also conduct location validation on the provided cmekConfig to make sure the key is valid and can be used in the selected location.

+ *

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

+ *
    + *
  • updateCmekConfigAsync(UpdateCmekConfigRequest request) + *

+ *

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

+ *
    + *
  • updateCmekConfigAsync(CmekConfig config) + *

+ *

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

+ *
    + *
  • updateCmekConfigOperationCallable() + *

  • updateCmekConfigCallable() + *

+ *

GetCmekConfig

Gets the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig].

+ *

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

+ *
    + *
  • getCmekConfig(GetCmekConfigRequest request) + *

+ *

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

+ *
    + *
  • getCmekConfig(CmekConfigName name) + *

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

+ *
    + *
  • getCmekConfigCallable() + *

+ *

ListCmekConfigs

Lists all the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s with the project.

+ *

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

+ *
    + *
  • listCmekConfigs(ListCmekConfigsRequest request) + *

+ *

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

+ *
    + *
  • listCmekConfigs(LocationName parent) + *

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

+ *
    + *
  • listCmekConfigsCallable() + *

+ *

DeleteCmekConfig

De-provisions a CmekConfig.

+ *

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

+ *
    + *
  • deleteCmekConfigAsync(DeleteCmekConfigRequest request) + *

+ *

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

+ *
    + *
  • deleteCmekConfigAsync(CmekConfigName name) + *

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

+ *
    + *
  • deleteCmekConfigOperationCallable() + *

  • deleteCmekConfigCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of CmekConfigServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CmekConfigServiceSettings cmekConfigServiceSettings =
+ *     CmekConfigServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * CmekConfigServiceClient cmekConfigServiceClient =
+ *     CmekConfigServiceClient.create(cmekConfigServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CmekConfigServiceSettings cmekConfigServiceSettings =
+ *     CmekConfigServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * CmekConfigServiceClient cmekConfigServiceClient =
+ *     CmekConfigServiceClient.create(cmekConfigServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CmekConfigServiceSettings cmekConfigServiceSettings =
+ *     CmekConfigServiceSettings.newHttpJsonBuilder().build();
+ * CmekConfigServiceClient cmekConfigServiceClient =
+ *     CmekConfigServiceClient.create(cmekConfigServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class CmekConfigServiceClient implements BackgroundResource { + private final CmekConfigServiceSettings settings; + private final CmekConfigServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of CmekConfigServiceClient with default settings. */ + public static final CmekConfigServiceClient create() throws IOException { + return create(CmekConfigServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of CmekConfigServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final CmekConfigServiceClient create(CmekConfigServiceSettings settings) + throws IOException { + return new CmekConfigServiceClient(settings); + } + + /** + * Constructs an instance of CmekConfigServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(CmekConfigServiceSettings). + */ + public static final CmekConfigServiceClient create(CmekConfigServiceStub stub) { + return new CmekConfigServiceClient(stub); + } + + /** + * Constructs an instance of CmekConfigServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected CmekConfigServiceClient(CmekConfigServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((CmekConfigServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected CmekConfigServiceClient(CmekConfigServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final CmekConfigServiceSettings getSettings() { + return settings; + } + + public CmekConfigServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Provisions a CMEK key for use in a location of a customer's project. This method will also + * conduct location validation on the provided cmekConfig to make sure the key is valid and can be + * used in the selected 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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+   *   CmekConfig config = CmekConfig.newBuilder().build();
+   *   CmekConfig response = cmekConfigServiceClient.updateCmekConfigAsync(config).get();
+   * }
+   * }
+ * + * @param config Required. The CmekConfig resource. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateCmekConfigAsync( + CmekConfig config) { + UpdateCmekConfigRequest request = + UpdateCmekConfigRequest.newBuilder().setConfig(config).build(); + return updateCmekConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Provisions a CMEK key for use in a location of a customer's project. This method will also + * conduct location validation on the provided cmekConfig to make sure the key is valid and can be + * used in the selected 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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+   *   UpdateCmekConfigRequest request =
+   *       UpdateCmekConfigRequest.newBuilder()
+   *           .setConfig(CmekConfig.newBuilder().build())
+   *           .setSetDefault(true)
+   *           .build();
+   *   CmekConfig response = cmekConfigServiceClient.updateCmekConfigAsync(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 updateCmekConfigAsync( + UpdateCmekConfigRequest request) { + return updateCmekConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Provisions a CMEK key for use in a location of a customer's project. This method will also + * conduct location validation on the provided cmekConfig to make sure the key is valid and can be + * used in the selected 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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+   *   UpdateCmekConfigRequest request =
+   *       UpdateCmekConfigRequest.newBuilder()
+   *           .setConfig(CmekConfig.newBuilder().build())
+   *           .setSetDefault(true)
+   *           .build();
+   *   OperationFuture future =
+   *       cmekConfigServiceClient.updateCmekConfigOperationCallable().futureCall(request);
+   *   // Do something.
+   *   CmekConfig response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + updateCmekConfigOperationCallable() { + return stub.updateCmekConfigOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Provisions a CMEK key for use in a location of a customer's project. This method will also + * conduct location validation on the provided cmekConfig to make sure the key is valid and can be + * used in the selected 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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+   *   UpdateCmekConfigRequest request =
+   *       UpdateCmekConfigRequest.newBuilder()
+   *           .setConfig(CmekConfig.newBuilder().build())
+   *           .setSetDefault(true)
+   *           .build();
+   *   ApiFuture future =
+   *       cmekConfigServiceClient.updateCmekConfigCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateCmekConfigCallable() { + return stub.updateCmekConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+   *   CmekConfigName name = CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]");
+   *   CmekConfig response = cmekConfigServiceClient.getCmekConfig(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of + * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], such as + * `projects/*/locations/*/cmekConfig` or + * `projects/*/locations/*/cmekConfigs/*`. + *

If the caller does not have permission to access the + * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], regardless of whether or not + * it exists, a PERMISSION_DENIED error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CmekConfig getCmekConfig(CmekConfigName name) { + GetCmekConfigRequest request = + GetCmekConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getCmekConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+   *   String name = CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString();
+   *   CmekConfig response = cmekConfigServiceClient.getCmekConfig(name);
+   * }
+   * }
+ * + * @param name Required. Resource name of + * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], such as + * `projects/*/locations/*/cmekConfig` or + * `projects/*/locations/*/cmekConfigs/*`. + *

If the caller does not have permission to access the + * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], regardless of whether or not + * it exists, a PERMISSION_DENIED error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CmekConfig getCmekConfig(String name) { + GetCmekConfigRequest request = GetCmekConfigRequest.newBuilder().setName(name).build(); + return getCmekConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+   *   GetCmekConfigRequest request =
+   *       GetCmekConfigRequest.newBuilder()
+   *           .setName(CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString())
+   *           .build();
+   *   CmekConfig response = cmekConfigServiceClient.getCmekConfig(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 CmekConfig getCmekConfig(GetCmekConfigRequest request) { + return getCmekConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+   *   GetCmekConfigRequest request =
+   *       GetCmekConfigRequest.newBuilder()
+   *           .setName(CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       cmekConfigServiceClient.getCmekConfigCallable().futureCall(request);
+   *   // Do something.
+   *   CmekConfig response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getCmekConfigCallable() { + return stub.getCmekConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s with 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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   ListCmekConfigsResponse response = cmekConfigServiceClient.listCmekConfigs(parent);
+   * }
+   * }
+ * + * @param parent Required. The parent location resource name, such as + * `projects/{project}/locations/{location}`. + *

If the caller does not have permission to list + * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s under this location, + * regardless of whether or not a CmekConfig exists, a PERMISSION_DENIED error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCmekConfigsResponse listCmekConfigs(LocationName parent) { + ListCmekConfigsRequest request = + ListCmekConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCmekConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s with 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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   ListCmekConfigsResponse response = cmekConfigServiceClient.listCmekConfigs(parent);
+   * }
+   * }
+ * + * @param parent Required. The parent location resource name, such as + * `projects/{project}/locations/{location}`. + *

If the caller does not have permission to list + * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s under this location, + * regardless of whether or not a CmekConfig exists, a PERMISSION_DENIED error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCmekConfigsResponse listCmekConfigs(String parent) { + ListCmekConfigsRequest request = ListCmekConfigsRequest.newBuilder().setParent(parent).build(); + return listCmekConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s with 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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+   *   ListCmekConfigsRequest request =
+   *       ListCmekConfigsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .build();
+   *   ListCmekConfigsResponse response = cmekConfigServiceClient.listCmekConfigs(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 ListCmekConfigsResponse listCmekConfigs(ListCmekConfigsRequest request) { + return listCmekConfigsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s with 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 (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+   *   ListCmekConfigsRequest request =
+   *       ListCmekConfigsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       cmekConfigServiceClient.listCmekConfigsCallable().futureCall(request);
+   *   // Do something.
+   *   ListCmekConfigsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + listCmekConfigsCallable() { + return stub.listCmekConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * De-provisions a CmekConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+   *   CmekConfigName name =
+   *       CmekConfigName.ofProjectLocationCmekConfigName(
+   *           "[PROJECT]", "[LOCATION]", "[CMEK_CONFIG]");
+   *   cmekConfigServiceClient.deleteCmekConfigAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the + * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig] to delete, such as + * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCmekConfigAsync( + CmekConfigName name) { + DeleteCmekConfigRequest request = + DeleteCmekConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteCmekConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * De-provisions a CmekConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+   *   String name = CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString();
+   *   cmekConfigServiceClient.deleteCmekConfigAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The resource name of the + * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig] to delete, such as + * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteCmekConfigAsync(String name) { + DeleteCmekConfigRequest request = DeleteCmekConfigRequest.newBuilder().setName(name).build(); + return deleteCmekConfigAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * De-provisions a CmekConfig. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+   *   DeleteCmekConfigRequest request =
+   *       DeleteCmekConfigRequest.newBuilder()
+   *           .setName(
+   *               CmekConfigName.ofProjectLocationCmekConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[CMEK_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   cmekConfigServiceClient.deleteCmekConfigAsync(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 deleteCmekConfigAsync( + DeleteCmekConfigRequest request) { + return deleteCmekConfigOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * De-provisions a CmekConfig. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
+   *   DeleteCmekConfigRequest request =
+   *       DeleteCmekConfigRequest.newBuilder()
+   *           .setName(
+   *               CmekConfigName.ofProjectLocationCmekConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[CMEK_CONFIG]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       cmekConfigServiceClient.deleteCmekConfigCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteCmekConfigCallable() { + return stub.deleteCmekConfigCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceSettings.java new file mode 100644 index 000000000000..29ce467cd95f --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceSettings.java @@ -0,0 +1,305 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +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.OperationCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1beta.stub.CmekConfigServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link CmekConfigServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CmekConfigServiceSettings.Builder cmekConfigServiceSettingsBuilder =
+ *     CmekConfigServiceSettings.newBuilder();
+ * cmekConfigServiceSettingsBuilder
+ *     .getCmekConfigSettings()
+ *     .setRetrySettings(
+ *         cmekConfigServiceSettingsBuilder
+ *             .getCmekConfigSettings()
+ *             .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());
+ * CmekConfigServiceSettings cmekConfigServiceSettings = cmekConfigServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for updateCmekConfig: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * CmekConfigServiceSettings.Builder cmekConfigServiceSettingsBuilder =
+ *     CmekConfigServiceSettings.newBuilder();
+ * TimedRetryAlgorithm timedRetryAlgorithm =
+ *     OperationalTimedPollAlgorithm.create(
+ *         RetrySettings.newBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
+ *             .setRetryDelayMultiplier(1.5)
+ *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
+ *             .setTotalTimeoutDuration(Duration.ofHours(24))
+ *             .build());
+ * cmekConfigServiceSettingsBuilder
+ *     .createClusterOperationSettings()
+ *     .setPollingAlgorithm(timedRetryAlgorithm)
+ *     .build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class CmekConfigServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to updateCmekConfig. */ + public UnaryCallSettings updateCmekConfigSettings() { + return ((CmekConfigServiceStubSettings) getStubSettings()).updateCmekConfigSettings(); + } + + /** Returns the object with the settings used for calls to updateCmekConfig. */ + public OperationCallSettings + updateCmekConfigOperationSettings() { + return ((CmekConfigServiceStubSettings) getStubSettings()).updateCmekConfigOperationSettings(); + } + + /** Returns the object with the settings used for calls to getCmekConfig. */ + public UnaryCallSettings getCmekConfigSettings() { + return ((CmekConfigServiceStubSettings) getStubSettings()).getCmekConfigSettings(); + } + + /** Returns the object with the settings used for calls to listCmekConfigs. */ + public UnaryCallSettings + listCmekConfigsSettings() { + return ((CmekConfigServiceStubSettings) getStubSettings()).listCmekConfigsSettings(); + } + + /** Returns the object with the settings used for calls to deleteCmekConfig. */ + public UnaryCallSettings deleteCmekConfigSettings() { + return ((CmekConfigServiceStubSettings) getStubSettings()).deleteCmekConfigSettings(); + } + + /** Returns the object with the settings used for calls to deleteCmekConfig. */ + public OperationCallSettings + deleteCmekConfigOperationSettings() { + return ((CmekConfigServiceStubSettings) getStubSettings()).deleteCmekConfigOperationSettings(); + } + + public static final CmekConfigServiceSettings create(CmekConfigServiceStubSettings stub) + throws IOException { + return new CmekConfigServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return CmekConfigServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return CmekConfigServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return CmekConfigServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return CmekConfigServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return CmekConfigServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return CmekConfigServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return CmekConfigServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CmekConfigServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CmekConfigServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for CmekConfigServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(CmekConfigServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(CmekConfigServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(CmekConfigServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(CmekConfigServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(CmekConfigServiceStubSettings.newHttpJsonBuilder()); + } + + public CmekConfigServiceStubSettings.Builder getStubSettingsBuilder() { + return ((CmekConfigServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to updateCmekConfig. */ + public UnaryCallSettings.Builder + updateCmekConfigSettings() { + return getStubSettingsBuilder().updateCmekConfigSettings(); + } + + /** Returns the builder for the settings used for calls to updateCmekConfig. */ + public OperationCallSettings.Builder< + UpdateCmekConfigRequest, CmekConfig, UpdateCmekConfigMetadata> + updateCmekConfigOperationSettings() { + return getStubSettingsBuilder().updateCmekConfigOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getCmekConfig. */ + public UnaryCallSettings.Builder getCmekConfigSettings() { + return getStubSettingsBuilder().getCmekConfigSettings(); + } + + /** Returns the builder for the settings used for calls to listCmekConfigs. */ + public UnaryCallSettings.Builder + listCmekConfigsSettings() { + return getStubSettingsBuilder().listCmekConfigsSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCmekConfig. */ + public UnaryCallSettings.Builder + deleteCmekConfigSettings() { + return getStubSettingsBuilder().deleteCmekConfigSettings(); + } + + /** Returns the builder for the settings used for calls to deleteCmekConfig. */ + public OperationCallSettings.Builder + deleteCmekConfigOperationSettings() { + return getStubSettingsBuilder().deleteCmekConfigOperationSettings(); + } + + @Override + public CmekConfigServiceSettings build() throws IOException { + return new CmekConfigServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java index ee26da0b8f41..4f88e387fcb3 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClient.java @@ -157,6 +157,20 @@ * * * + * + *

RemoveSuggestion + *

Removes the search history suggestion in an engine for a user. This will remove the suggestion from being returned in the [AdvancedCompleteQueryResponse.recent_search_suggestions][google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.recent_search_suggestions] for this user. If the user searches the same suggestion again, the new history will override and suggest this suggestion again. + * + *

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

+ *
    + *
  • removeSuggestion(RemoveSuggestionRequest request) + *

+ *

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

+ *
    + *
  • removeSuggestionCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -387,6 +401,9 @@ public final UnaryCallable complete * .setIncludeTailSuggestions(true) * .setBoostSpec(AdvancedCompleteQueryRequest.BoostSpec.newBuilder().build()) * .addAllSuggestionTypes(new ArrayList()) + * .addAllSuggestionTypeSpecs( + * new ArrayList()) + * .addAllExperimentIds(new ArrayList()) * .build(); * AdvancedCompleteQueryResponse response = * completionServiceClient.advancedCompleteQuery(request); @@ -427,6 +444,9 @@ public final AdvancedCompleteQueryResponse advancedCompleteQuery( * .setIncludeTailSuggestions(true) * .setBoostSpec(AdvancedCompleteQueryRequest.BoostSpec.newBuilder().build()) * .addAllSuggestionTypes(new ArrayList()) + * .addAllSuggestionTypeSpecs( + * new ArrayList()) + * .addAllExperimentIds(new ArrayList()) * .build(); * ApiFuture future = * completionServiceClient.advancedCompleteQueryCallable().futureCall(request); @@ -882,6 +902,83 @@ public final AdvancedCompleteQueryResponse advancedCompleteQuery( return stub.purgeCompletionSuggestionsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes the search history suggestion in an engine for a user. This will remove the suggestion + * from being returned in the + * [AdvancedCompleteQueryResponse.recent_search_suggestions][google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.recent_search_suggestions] + * for this user. If the user searches the same suggestion again, the new history will override + * and suggest this suggestion again. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
+   *   RemoveSuggestionRequest request =
+   *       RemoveSuggestionRequest.newBuilder()
+   *           .setCompletionConfig(
+   *               CompletionConfigName.ofProjectLocationCollectionEngineName(
+   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]")
+   *                   .toString())
+   *           .setUserPseudoId("userPseudoId-1155274652")
+   *           .setUserInfo(UserInfo.newBuilder().build())
+   *           .setRemoveTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   RemoveSuggestionResponse response = completionServiceClient.removeSuggestion(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 RemoveSuggestionResponse removeSuggestion(RemoveSuggestionRequest request) { + return removeSuggestionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Removes the search history suggestion in an engine for a user. This will remove the suggestion + * from being returned in the + * [AdvancedCompleteQueryResponse.recent_search_suggestions][google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.recent_search_suggestions] + * for this user. If the user searches the same suggestion again, the new history will override + * and suggest this suggestion again. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) {
+   *   RemoveSuggestionRequest request =
+   *       RemoveSuggestionRequest.newBuilder()
+   *           .setCompletionConfig(
+   *               CompletionConfigName.ofProjectLocationCollectionEngineName(
+   *                       "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]")
+   *                   .toString())
+   *           .setUserPseudoId("userPseudoId-1155274652")
+   *           .setUserInfo(UserInfo.newBuilder().build())
+   *           .setRemoveTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       completionServiceClient.removeSuggestionCallable().futureCall(request);
+   *   // Do something.
+   *   RemoveSuggestionResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + removeSuggestionCallable() { + return stub.removeSuggestionCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceSettings.java index 471120e1b42f..670d31206bd4 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceSettings.java @@ -193,6 +193,12 @@ public UnaryCallSettings completeQu .purgeCompletionSuggestionsOperationSettings(); } + /** Returns the object with the settings used for calls to removeSuggestion. */ + public UnaryCallSettings + removeSuggestionSettings() { + return ((CompletionServiceStubSettings) getStubSettings()).removeSuggestionSettings(); + } + public static final CompletionServiceSettings create(CompletionServiceStubSettings stub) throws IOException { return new CompletionServiceSettings.Builder(stub.toBuilder()).build(); @@ -377,6 +383,12 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().purgeCompletionSuggestionsOperationSettings(); } + /** Returns the builder for the settings used for calls to removeSuggestion. */ + public UnaryCallSettings.Builder + removeSuggestionSettings() { + return getStubSettingsBuilder().removeSuggestionSettings(); + } + @Override public CompletionServiceSettings build() throws IOException { return new CompletionServiceSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java index e89e547f3ed4..51d7904725b4 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClient.java @@ -24,6 +24,7 @@ import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.discoveryengine.v1beta.stub.ConversationalSearchServiceStub; import com.google.cloud.discoveryengine.v1beta.stub.ConversationalSearchServiceStubSettings; @@ -202,6 +203,17 @@ * * * + *

StreamAnswerQuery + *

Answer query method (streaming). + *

It takes one [AnswerQueryRequest][google.cloud.discoveryengine.v1beta.AnswerQueryRequest] and returns multiple [AnswerQueryResponse][google.cloud.discoveryengine.v1beta.AnswerQueryResponse] messages in a stream. + * + *

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

+ *
    + *
  • streamAnswerQueryCallable() + *

+ * + * + * *

GetAnswer *

Gets a Answer. * @@ -1363,6 +1375,7 @@ public final ListConversationsPagedResponse listConversations(ListConversationsR * .setAsynchronousMode(true) * .setUserPseudoId("userPseudoId-1155274652") * .putAllUserLabels(new HashMap()) + * .setEndUserSpec(AnswerQueryRequest.EndUserSpec.newBuilder().build()) * .build(); * AnswerQueryResponse response = conversationalSearchServiceClient.answerQuery(request); * } @@ -1410,6 +1423,7 @@ public final AnswerQueryResponse answerQuery(AnswerQueryRequest request) { * .setAsynchronousMode(true) * .setUserPseudoId("userPseudoId-1155274652") * .putAllUserLabels(new HashMap()) + * .setEndUserSpec(AnswerQueryRequest.EndUserSpec.newBuilder().build()) * .build(); * ApiFuture future = * conversationalSearchServiceClient.answerQueryCallable().futureCall(request); @@ -1422,6 +1436,61 @@ public final UnaryCallable answerQueryC return stub.answerQueryCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Answer query method (streaming). + * + *

It takes one [AnswerQueryRequest][google.cloud.discoveryengine.v1beta.AnswerQueryRequest] + * and returns multiple + * [AnswerQueryResponse][google.cloud.discoveryengine.v1beta.AnswerQueryResponse] messages in a + * stream. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ConversationalSearchServiceClient conversationalSearchServiceClient =
+   *     ConversationalSearchServiceClient.create()) {
+   *   AnswerQueryRequest request =
+   *       AnswerQueryRequest.newBuilder()
+   *           .setServingConfig(
+   *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
+   *                   .toString())
+   *           .setQuery(Query.newBuilder().build())
+   *           .setSession(
+   *               SessionName.ofProjectLocationDataStoreSessionName(
+   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]")
+   *                   .toString())
+   *           .setSafetySpec(AnswerQueryRequest.SafetySpec.newBuilder().build())
+   *           .setRelatedQuestionsSpec(AnswerQueryRequest.RelatedQuestionsSpec.newBuilder().build())
+   *           .setGroundingSpec(AnswerQueryRequest.GroundingSpec.newBuilder().build())
+   *           .setAnswerGenerationSpec(AnswerQueryRequest.AnswerGenerationSpec.newBuilder().build())
+   *           .setSearchSpec(AnswerQueryRequest.SearchSpec.newBuilder().build())
+   *           .setQueryUnderstandingSpec(
+   *               AnswerQueryRequest.QueryUnderstandingSpec.newBuilder().build())
+   *           .setAsynchronousMode(true)
+   *           .setUserPseudoId("userPseudoId-1155274652")
+   *           .putAllUserLabels(new HashMap())
+   *           .setEndUserSpec(AnswerQueryRequest.EndUserSpec.newBuilder().build())
+   *           .build();
+   *   ServerStream stream =
+   *       conversationalSearchServiceClient.streamAnswerQueryCallable().call(request);
+   *   for (AnswerQueryResponse response : stream) {
+   *     // Do something when a response is received.
+   *   }
+   * }
+   * }
+ */ + public final ServerStreamingCallable + streamAnswerQueryCallable() { + return stub.streamAnswerQueryCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets a Answer. @@ -1646,6 +1715,7 @@ public final Session createSession(String parent, Session session) { * "[PROJECT]", "[LOCATION]", "[DATA_STORE]") * .toString()) * .setSession(Session.newBuilder().build()) + * .setSessionId("sessionId607796817") * .build(); * Session response = conversationalSearchServiceClient.createSession(request); * } @@ -1682,6 +1752,7 @@ public final Session createSession(CreateSessionRequest request) { * "[PROJECT]", "[LOCATION]", "[DATA_STORE]") * .toString()) * .setSession(Session.newBuilder().build()) + * .setSessionId("sessionId607796817") * .build(); * ApiFuture future = * conversationalSearchServiceClient.createSessionCallable().futureCall(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceSettings.java index 1567c3116dca..fc9ea030268e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceSettings.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1beta.stub.ConversationalSearchServiceStubSettings; @@ -137,6 +138,13 @@ public UnaryCallSettings answerQuerySet return ((ConversationalSearchServiceStubSettings) getStubSettings()).answerQuerySettings(); } + /** Returns the object with the settings used for calls to streamAnswerQuery. */ + public ServerStreamingCallSettings + streamAnswerQuerySettings() { + return ((ConversationalSearchServiceStubSettings) getStubSettings()) + .streamAnswerQuerySettings(); + } + /** Returns the object with the settings used for calls to getAnswer. */ public UnaryCallSettings getAnswerSettings() { return ((ConversationalSearchServiceStubSettings) getStubSettings()).getAnswerSettings(); @@ -324,6 +332,12 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().answerQuerySettings(); } + /** Returns the builder for the settings used for calls to streamAnswerQuery. */ + public ServerStreamingCallSettings.Builder + streamAnswerQuerySettings() { + return getStubSettingsBuilder().streamAnswerQuerySettings(); + } + /** Returns the builder for the settings used for calls to getAnswer. */ public UnaryCallSettings.Builder getAnswerSettings() { return getStubSettingsBuilder().getAnswerSettings(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClient.java index 9fdb4c118705..555f6b21e2b9 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClient.java @@ -710,7 +710,7 @@ public final UnaryCallable listDocu * [parent][google.cloud.discoveryengine.v1beta.CreateDocumentRequest.parent]. Otherwise, an * `ALREADY_EXISTS` error is returned. *

This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with - * a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Document createDocument(BranchName parent, Document document, String documentId) { @@ -761,7 +761,7 @@ public final Document createDocument(BranchName parent, Document document, Strin * [parent][google.cloud.discoveryengine.v1beta.CreateDocumentRequest.parent]. Otherwise, an * `ALREADY_EXISTS` error is returned. *

This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with - * a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Document createDocument(String parent, Document document, String documentId) { @@ -1097,6 +1097,7 @@ public final UnaryCallable deleteDocumentCallable( * .setUpdateMask(FieldMask.newBuilder().build()) * .setAutoGenerateIds(true) * .setIdField("idField1629396127") + * .setForceRefreshContent(true) * .build(); * ImportDocumentsResponse response = documentServiceClient.importDocumentsAsync(request).get(); * } @@ -1137,6 +1138,7 @@ public final UnaryCallable deleteDocumentCallable( * .setUpdateMask(FieldMask.newBuilder().build()) * .setAutoGenerateIds(true) * .setIdField("idField1629396127") + * .setForceRefreshContent(true) * .build(); * OperationFuture future = * documentServiceClient.importDocumentsOperationCallable().futureCall(request); @@ -1178,6 +1180,7 @@ public final UnaryCallable deleteDocumentCallable( * .setUpdateMask(FieldMask.newBuilder().build()) * .setAutoGenerateIds(true) * .setIdField("idField1629396127") + * .setForceRefreshContent(true) * .build(); * ApiFuture future = * documentServiceClient.importDocumentsCallable().futureCall(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceClient.java index 5c7e67fad6d2..b6de51f6f657 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceClient.java @@ -28,9 +28,13 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; +import com.google.api.resourcenames.ResourceName; import com.google.cloud.discoveryengine.v1beta.stub.EngineServiceStub; import com.google.cloud.discoveryengine.v1beta.stub.EngineServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; @@ -72,7 +76,7 @@ * * *

CreateEngine - *

Creates a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + *

Creates an [Engine][google.cloud.discoveryengine.v1beta.Engine]. * *

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

*
    @@ -92,7 +96,7 @@ * * *

    DeleteEngine - *

    Deletes a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + *

    Deletes an [Engine][google.cloud.discoveryengine.v1beta.Engine]. * *

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

    *
      @@ -130,7 +134,7 @@ * * *

      GetEngine - *

      Gets a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + *

      Gets an [Engine][google.cloud.discoveryengine.v1beta.Engine]. * *

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

      *
        @@ -169,7 +173,7 @@ * * *

        PauseEngine - *

        Pauses the training of an existing engine. Only applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. + *

        Pauses the training of an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

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

        *
          @@ -188,7 +192,7 @@ * * *

          ResumeEngine - *

          Resumes the training of an existing engine. Only applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. + *

          Resumes the training of an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

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

          *
            @@ -207,7 +211,7 @@ * * *

            TuneEngine - *

            Tunes an existing engine. Only applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. + *

            Tunes an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

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

            *
              @@ -225,6 +229,45 @@ *
            * * + * + *

            GetIamPolicy + *

            Gets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1beta.Engine]. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it. + * + *

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

            + *
              + *
            • getIamPolicy(GetIamPolicyRequest request) + *

            + *

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

            + *
              + *
            • getIamPolicy(ResourceName resource) + *

            • getIamPolicy(String resource) + *

            + *

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

            + *
              + *
            • getIamPolicyCallable() + *

            + * + * + * + *

            SetIamPolicy + *

            Sets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1beta.Engine]. A `NOT_FOUND` error is returned if the resource does not exist. + *

            **Important:** When setting a policy directly on an Engine resource, the only recommended roles in the bindings are: `roles/discoveryengine.admin`, `roles/discoveryengine.agentspaceAdmin`, `roles/discoveryengine.user`, `roles/discoveryengine.agentspaceUser`, `roles/discoveryengine.viewer`, `roles/discoveryengine.agentspaceViewer`. Attempting to grant any other role will result in a warning in logging. + * + *

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

            + *
              + *
            • setIamPolicy(SetIamPolicyRequest request) + *

            + *

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

            + *
              + *
            • setIamPolicy(ResourceName resource, Policy policy) + *

            • setIamPolicy(String resource, Policy policy) + *

            + *

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

            + *
              + *
            • setIamPolicyCallable() + *

            + * + * * * *

            See the individual methods for example code. @@ -358,7 +401,7 @@ public final OperationsClient getHttpJsonOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * Creates an [Engine][google.cloud.discoveryengine.v1beta.Engine]. * *

            Sample code: * @@ -399,7 +442,7 @@ public final OperationFuture createEngineAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * Creates an [Engine][google.cloud.discoveryengine.v1beta.Engine]. * *

            Sample code: * @@ -440,7 +483,7 @@ public final OperationFuture createEngineAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * Creates an [Engine][google.cloud.discoveryengine.v1beta.Engine]. * *

            Sample code: * @@ -471,7 +514,7 @@ public final OperationFuture createEngineAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * Creates an [Engine][google.cloud.discoveryengine.v1beta.Engine]. * *

            Sample code: * @@ -502,7 +545,7 @@ public final OperationFuture createEngineAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * Creates an [Engine][google.cloud.discoveryengine.v1beta.Engine]. * *

            Sample code: * @@ -531,7 +574,7 @@ public final UnaryCallable createEngineCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * Deletes an [Engine][google.cloud.discoveryengine.v1beta.Engine]. * *

            Sample code: * @@ -565,7 +608,7 @@ public final OperationFuture deleteEngineAsync(Engi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * Deletes an [Engine][google.cloud.discoveryengine.v1beta.Engine]. * *

            Sample code: * @@ -598,7 +641,7 @@ public final OperationFuture deleteEngineAsync(Stri // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * Deletes an [Engine][google.cloud.discoveryengine.v1beta.Engine]. * *

            Sample code: * @@ -628,7 +671,7 @@ public final OperationFuture deleteEngineAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * Deletes an [Engine][google.cloud.discoveryengine.v1beta.Engine]. * *

            Sample code: * @@ -658,7 +701,7 @@ public final OperationFuture deleteEngineAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Deletes a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * Deletes an [Engine][google.cloud.discoveryengine.v1beta.Engine]. * *

            Sample code: * @@ -779,7 +822,7 @@ public final UnaryCallable updateEngineCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * Gets an [Engine][google.cloud.discoveryengine.v1beta.Engine]. * *

            Sample code: * @@ -808,7 +851,7 @@ public final Engine getEngine(EngineName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * Gets an [Engine][google.cloud.discoveryengine.v1beta.Engine]. * *

            Sample code: * @@ -836,7 +879,7 @@ public final Engine getEngine(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * Gets an [Engine][google.cloud.discoveryengine.v1beta.Engine]. * *

            Sample code: * @@ -865,7 +908,7 @@ public final Engine getEngine(GetEngineRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * Gets an [Engine][google.cloud.discoveryengine.v1beta.Engine]. * *

            Sample code: * @@ -1064,8 +1107,8 @@ public final UnaryCallable listEnginesC // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pauses the training of an existing engine. Only applicable if - * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is + * Pauses the training of an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only + * applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

            Sample code: @@ -1094,8 +1137,8 @@ public final Engine pauseEngine(EngineName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pauses the training of an existing engine. Only applicable if - * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is + * Pauses the training of an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only + * applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

            Sample code: @@ -1123,8 +1166,8 @@ public final Engine pauseEngine(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pauses the training of an existing engine. Only applicable if - * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is + * Pauses the training of an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only + * applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

            Sample code: @@ -1154,8 +1197,8 @@ public final Engine pauseEngine(PauseEngineRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Pauses the training of an existing engine. Only applicable if - * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is + * Pauses the training of an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only + * applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

            Sample code: @@ -1184,8 +1227,8 @@ public final UnaryCallable pauseEngineCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Resumes the training of an existing engine. Only applicable if - * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is + * Resumes the training of an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only + * applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

            Sample code: @@ -1214,8 +1257,8 @@ public final Engine resumeEngine(EngineName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Resumes the training of an existing engine. Only applicable if - * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is + * Resumes the training of an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only + * applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

            Sample code: @@ -1243,8 +1286,8 @@ public final Engine resumeEngine(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Resumes the training of an existing engine. Only applicable if - * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is + * Resumes the training of an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only + * applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

            Sample code: @@ -1274,8 +1317,8 @@ public final Engine resumeEngine(ResumeEngineRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Resumes the training of an existing engine. Only applicable if - * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is + * Resumes the training of an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only + * applicable if [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * *

            Sample code: @@ -1304,7 +1347,7 @@ public final UnaryCallable resumeEngineCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Tunes an existing engine. Only applicable if + * Tunes an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * @@ -1335,7 +1378,7 @@ public final OperationFuture tuneEngineA // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Tunes an existing engine. Only applicable if + * Tunes an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * @@ -1365,7 +1408,7 @@ public final OperationFuture tuneEngineA // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Tunes an existing engine. Only applicable if + * Tunes an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * @@ -1397,7 +1440,7 @@ public final OperationFuture tuneEngineA // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Tunes an existing engine. Only applicable if + * Tunes an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * @@ -1429,7 +1472,7 @@ public final OperationFuture tuneEngineA // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Tunes an existing engine. Only applicable if + * Tunes an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. * @@ -1457,6 +1500,290 @@ public final UnaryCallable tuneEngineCallable() { return stub.tuneEngineCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if + * the resource exists but does not have a policy set on it. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
            +   *   ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]");
            +   *   Policy response = engineServiceClient.getIamPolicy(resource);
            +   * }
            +   * }
            + * + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(ResourceName resource) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource(resource == null ? null : resource.toString()) + .build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if + * the resource exists but does not have a policy set on it. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
            +   *   String resource = AclConfigName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   Policy response = engineServiceClient.getIamPolicy(resource);
            +   * }
            +   * }
            + * + * @param resource REQUIRED: The resource for which the policy is being requested. See the + * operation documentation for the appropriate value for this field. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(String resource) { + GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); + return getIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if + * the resource exists but does not have a policy set on it. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
            +   *   GetIamPolicyRequest request =
            +   *       GetIamPolicyRequest.newBuilder()
            +   *           .setResource(
            +   *               EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
            +   *           .setOptions(GetPolicyOptions.newBuilder().build())
            +   *           .build();
            +   *   Policy response = engineServiceClient.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 access control policy for an [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if + * the resource exists but does not have a policy set on it. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
            +   *   GetIamPolicyRequest request =
            +   *       GetIamPolicyRequest.newBuilder()
            +   *           .setResource(
            +   *               EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
            +   *           .setOptions(GetPolicyOptions.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future = engineServiceClient.getIamPolicyCallable().futureCall(request);
            +   *   // Do something.
            +   *   Policy response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * A `NOT_FOUND` error is returned if the resource does not exist. + * + *

            **Important:** When setting a policy directly on an Engine resource, the + * only recommended roles in the bindings are: `roles/discoveryengine.admin`, + * `roles/discoveryengine.agentspaceAdmin`, `roles/discoveryengine.user`, + * `roles/discoveryengine.agentspaceUser`, `roles/discoveryengine.viewer`, + * `roles/discoveryengine.agentspaceViewer`. Attempting to grant any other role will result in a + * warning in logging. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
            +   *   ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]");
            +   *   Policy policy = Policy.newBuilder().build();
            +   *   Policy response = engineServiceClient.setIamPolicy(resource, policy);
            +   * }
            +   * }
            + * + * @param resource REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the + * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud + * Platform services (such as Projects) might reject them. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(ResourceName resource, Policy policy) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource(resource == null ? null : resource.toString()) + .setPolicy(policy) + .build(); + return setIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * A `NOT_FOUND` error is returned if the resource does not exist. + * + *

            **Important:** When setting a policy directly on an Engine resource, the + * only recommended roles in the bindings are: `roles/discoveryengine.admin`, + * `roles/discoveryengine.agentspaceAdmin`, `roles/discoveryengine.user`, + * `roles/discoveryengine.agentspaceUser`, `roles/discoveryengine.viewer`, + * `roles/discoveryengine.agentspaceViewer`. Attempting to grant any other role will result in a + * warning in logging. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
            +   *   String resource = AclConfigName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   Policy policy = Policy.newBuilder().build();
            +   *   Policy response = engineServiceClient.setIamPolicy(resource, policy);
            +   * }
            +   * }
            + * + * @param resource REQUIRED: The resource for which the policy is being specified. See the + * operation documentation for the appropriate value for this field. + * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the + * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud + * Platform services (such as Projects) might reject them. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(String resource, Policy policy) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); + return setIamPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the IAM access control policy for an [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * A `NOT_FOUND` error is returned if the resource does not exist. + * + *

            **Important:** When setting a policy directly on an Engine resource, the + * only recommended roles in the bindings are: `roles/discoveryengine.admin`, + * `roles/discoveryengine.agentspaceAdmin`, `roles/discoveryengine.user`, + * `roles/discoveryengine.agentspaceUser`, `roles/discoveryengine.viewer`, + * `roles/discoveryengine.agentspaceViewer`. Attempting to grant any other role will result in a + * warning in logging. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
            +   *   SetIamPolicyRequest request =
            +   *       SetIamPolicyRequest.newBuilder()
            +   *           .setResource(
            +   *               EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
            +   *           .setPolicy(Policy.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   Policy response = engineServiceClient.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 IAM access control policy for an [Engine][google.cloud.discoveryengine.v1beta.Engine]. + * A `NOT_FOUND` error is returned if the resource does not exist. + * + *

            **Important:** When setting a policy directly on an Engine resource, the + * only recommended roles in the bindings are: `roles/discoveryengine.admin`, + * `roles/discoveryengine.agentspaceAdmin`, `roles/discoveryengine.user`, + * `roles/discoveryengine.agentspaceUser`, `roles/discoveryengine.viewer`, + * `roles/discoveryengine.agentspaceViewer`. Attempting to grant any other role will result in a + * warning in logging. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) {
            +   *   SetIamPolicyRequest request =
            +   *       SetIamPolicyRequest.newBuilder()
            +   *           .setResource(
            +   *               EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
            +   *           .setPolicy(Policy.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future = engineServiceClient.setIamPolicyCallable().futureCall(request);
            +   *   // Do something.
            +   *   Policy response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceSettings.java index a957bf4749d6..d0f38471a3ff 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceSettings.java @@ -32,6 +32,9 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1beta.stub.EngineServiceStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -176,6 +179,16 @@ public UnaryCallSettings tuneEngineSettings() { return ((EngineServiceStubSettings) getStubSettings()).tuneEngineOperationSettings(); } + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((EngineServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((EngineServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + public static final EngineServiceSettings create(EngineServiceStubSettings stub) throws IOException { return new EngineServiceSettings.Builder(stub.toBuilder()).build(); @@ -348,6 +361,16 @@ public UnaryCallSettings.Builder tuneEngineSetting return getStubSettingsBuilder().tuneEngineOperationSettings(); } + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + @Override public EngineServiceSettings build() throws IOException { return new EngineServiceSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceClient.java index 60e37a9fb2d9..4b302e08ba04 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceClient.java @@ -767,9 +767,10 @@ public final UnaryCallable createEvaluationC * * @param evaluation Required. The evaluation resource name, such as * `projects/{project}/locations/{location}/evaluations/{evaluation}`. - *

            If the caller does not have permission to list [EvaluationResult][] under this - * evaluation, regardless of whether or not this evaluation set exists, a `PERMISSION_DENIED` - * error is returned. + *

            If the caller does not have permission to list + * [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult] + * under this evaluation, regardless of whether or not this evaluation set exists, a + * `PERMISSION_DENIED` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEvaluationResultsPagedResponse listEvaluationResults(EvaluationName evaluation) { @@ -804,9 +805,10 @@ public final ListEvaluationResultsPagedResponse listEvaluationResults(Evaluation * * @param evaluation Required. The evaluation resource name, such as * `projects/{project}/locations/{location}/evaluations/{evaluation}`. - *

            If the caller does not have permission to list [EvaluationResult][] under this - * evaluation, regardless of whether or not this evaluation set exists, a `PERMISSION_DENIED` - * error is returned. + *

            If the caller does not have permission to list + * [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult] + * under this evaluation, regardless of whether or not this evaluation set exists, a + * `PERMISSION_DENIED` error is returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEvaluationResultsPagedResponse listEvaluationResults(String evaluation) { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceClient.java new file mode 100644 index 000000000000..eacd312a2f2d --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceClient.java @@ -0,0 +1,1499 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.stub.IdentityMappingStoreServiceStub; +import com.google.cloud.discoveryengine.v1beta.stub.IdentityMappingStoreServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing Identity Mapping Stores. + * + *

            This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            + *     IdentityMappingStoreServiceClient.create()) {
            + *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            + *   IdentityMappingStore identityMappingStore = IdentityMappingStore.newBuilder().build();
            + *   String identityMappingStoreId = "identityMappingStoreId677904780";
            + *   IdentityMappingStore response =
            + *       identityMappingStoreServiceClient.createIdentityMappingStore(
            + *           parent, identityMappingStore, identityMappingStoreId);
            + * }
            + * }
            + * + *

            Note: close() needs to be called on the IdentityMappingStoreServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
            Methods
            MethodDescriptionMethod Variants

            CreateIdentityMappingStore

            Creates a new Identity Mapping Store.

            + *

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

            + *
              + *
            • createIdentityMappingStore(CreateIdentityMappingStoreRequest request) + *

            + *

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

            + *
              + *
            • createIdentityMappingStore(LocationName parent, IdentityMappingStore identityMappingStore, String identityMappingStoreId) + *

            • createIdentityMappingStore(String parent, IdentityMappingStore identityMappingStore, String identityMappingStoreId) + *

            + *

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

            + *
              + *
            • createIdentityMappingStoreCallable() + *

            + *

            GetIdentityMappingStore

            Gets the Identity Mapping Store.

            + *

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

            + *
              + *
            • getIdentityMappingStore(GetIdentityMappingStoreRequest request) + *

            + *

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

            + *
              + *
            • getIdentityMappingStore(IdentityMappingStoreName name) + *

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

            + *
              + *
            • getIdentityMappingStoreCallable() + *

            + *

            DeleteIdentityMappingStore

            Deletes the Identity Mapping Store.

            + *

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

            + *
              + *
            • deleteIdentityMappingStoreAsync(DeleteIdentityMappingStoreRequest request) + *

            + *

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

            + *
              + *
            • deleteIdentityMappingStoreAsync(IdentityMappingStoreName name) + *

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

            + *
              + *
            • deleteIdentityMappingStoreOperationCallable() + *

            • deleteIdentityMappingStoreCallable() + *

            + *

            ImportIdentityMappings

            Imports a list of Identity Mapping Entries to an Identity Mapping Store.

            + *

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

            + *
              + *
            • importIdentityMappingsAsync(ImportIdentityMappingsRequest request) + *

            + *

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

            + *
              + *
            • importIdentityMappingsOperationCallable() + *

            • importIdentityMappingsCallable() + *

            + *

            PurgeIdentityMappings

            Purges specified or all Identity Mapping Entries from an Identity Mapping Store.

            + *

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

            + *
              + *
            • purgeIdentityMappingsAsync(PurgeIdentityMappingsRequest request) + *

            + *

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

            + *
              + *
            • purgeIdentityMappingsOperationCallable() + *

            • purgeIdentityMappingsCallable() + *

            + *

            ListIdentityMappings

            Lists Identity Mappings in an Identity Mapping Store.

            + *

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

            + *
              + *
            • listIdentityMappings(ListIdentityMappingsRequest request) + *

            + *

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

            + *
              + *
            • listIdentityMappingsPagedCallable() + *

            • listIdentityMappingsCallable() + *

            + *

            ListIdentityMappingStores

            Lists all Identity Mapping Stores.

            + *

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

            + *
              + *
            • listIdentityMappingStores(ListIdentityMappingStoresRequest request) + *

            + *

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

            + *
              + *
            • listIdentityMappingStores(LocationName parent) + *

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

            + *
              + *
            • listIdentityMappingStoresPagedCallable() + *

            • listIdentityMappingStoresCallable() + *

            + *
            + * + *

            See the individual methods for example code. + * + *

            Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

            This class can be customized by passing in a custom instance of + * IdentityMappingStoreServiceSettings to create(). For example: + * + *

            To customize credentials: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * IdentityMappingStoreServiceSettings identityMappingStoreServiceSettings =
            + *     IdentityMappingStoreServiceSettings.newBuilder()
            + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
            + *         .build();
            + * IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            + *     IdentityMappingStoreServiceClient.create(identityMappingStoreServiceSettings);
            + * }
            + * + *

            To customize the endpoint: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * IdentityMappingStoreServiceSettings identityMappingStoreServiceSettings =
            + *     IdentityMappingStoreServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
            + * IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            + *     IdentityMappingStoreServiceClient.create(identityMappingStoreServiceSettings);
            + * }
            + * + *

            To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * IdentityMappingStoreServiceSettings identityMappingStoreServiceSettings =
            + *     IdentityMappingStoreServiceSettings.newHttpJsonBuilder().build();
            + * IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            + *     IdentityMappingStoreServiceClient.create(identityMappingStoreServiceSettings);
            + * }
            + * + *

            Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class IdentityMappingStoreServiceClient implements BackgroundResource { + private final IdentityMappingStoreServiceSettings settings; + private final IdentityMappingStoreServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of IdentityMappingStoreServiceClient with default settings. */ + public static final IdentityMappingStoreServiceClient create() throws IOException { + return create(IdentityMappingStoreServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of IdentityMappingStoreServiceClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final IdentityMappingStoreServiceClient create( + IdentityMappingStoreServiceSettings settings) throws IOException { + return new IdentityMappingStoreServiceClient(settings); + } + + /** + * Constructs an instance of IdentityMappingStoreServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(IdentityMappingStoreServiceSettings). + */ + public static final IdentityMappingStoreServiceClient create( + IdentityMappingStoreServiceStub stub) { + return new IdentityMappingStoreServiceClient(stub); + } + + /** + * Constructs an instance of IdentityMappingStoreServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected IdentityMappingStoreServiceClient(IdentityMappingStoreServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((IdentityMappingStoreServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected IdentityMappingStoreServiceClient(IdentityMappingStoreServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final IdentityMappingStoreServiceSettings getSettings() { + return settings; + } + + public IdentityMappingStoreServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Identity Mapping Store. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            +   *     IdentityMappingStoreServiceClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   IdentityMappingStore identityMappingStore = IdentityMappingStore.newBuilder().build();
            +   *   String identityMappingStoreId = "identityMappingStoreId677904780";
            +   *   IdentityMappingStore response =
            +   *       identityMappingStoreServiceClient.createIdentityMappingStore(
            +   *           parent, identityMappingStore, identityMappingStoreId);
            +   * }
            +   * }
            + * + * @param parent Required. The parent collection resource name, such as + * `projects/{project}/locations/{location}`. + * @param identityMappingStore Required. The Identity Mapping Store to create. + * @param identityMappingStoreId Required. The ID of the Identity Mapping Store to create. + *

            The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens + * (-). The maximum length is 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final IdentityMappingStore createIdentityMappingStore( + LocationName parent, + IdentityMappingStore identityMappingStore, + String identityMappingStoreId) { + CreateIdentityMappingStoreRequest request = + CreateIdentityMappingStoreRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setIdentityMappingStore(identityMappingStore) + .setIdentityMappingStoreId(identityMappingStoreId) + .build(); + return createIdentityMappingStore(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Identity Mapping Store. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            +   *     IdentityMappingStoreServiceClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   IdentityMappingStore identityMappingStore = IdentityMappingStore.newBuilder().build();
            +   *   String identityMappingStoreId = "identityMappingStoreId677904780";
            +   *   IdentityMappingStore response =
            +   *       identityMappingStoreServiceClient.createIdentityMappingStore(
            +   *           parent, identityMappingStore, identityMappingStoreId);
            +   * }
            +   * }
            + * + * @param parent Required. The parent collection resource name, such as + * `projects/{project}/locations/{location}`. + * @param identityMappingStore Required. The Identity Mapping Store to create. + * @param identityMappingStoreId Required. The ID of the Identity Mapping Store to create. + *

            The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and hyphens + * (-). The maximum length is 63 characters. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final IdentityMappingStore createIdentityMappingStore( + String parent, IdentityMappingStore identityMappingStore, String identityMappingStoreId) { + CreateIdentityMappingStoreRequest request = + CreateIdentityMappingStoreRequest.newBuilder() + .setParent(parent) + .setIdentityMappingStore(identityMappingStore) + .setIdentityMappingStoreId(identityMappingStoreId) + .build(); + return createIdentityMappingStore(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Identity Mapping Store. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            +   *     IdentityMappingStoreServiceClient.create()) {
            +   *   CreateIdentityMappingStoreRequest request =
            +   *       CreateIdentityMappingStoreRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setIdentityMappingStoreId("identityMappingStoreId677904780")
            +   *           .setIdentityMappingStore(IdentityMappingStore.newBuilder().build())
            +   *           .build();
            +   *   IdentityMappingStore response =
            +   *       identityMappingStoreServiceClient.createIdentityMappingStore(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 IdentityMappingStore createIdentityMappingStore( + CreateIdentityMappingStoreRequest request) { + return createIdentityMappingStoreCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Identity Mapping Store. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            +   *     IdentityMappingStoreServiceClient.create()) {
            +   *   CreateIdentityMappingStoreRequest request =
            +   *       CreateIdentityMappingStoreRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setIdentityMappingStoreId("identityMappingStoreId677904780")
            +   *           .setIdentityMappingStore(IdentityMappingStore.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       identityMappingStoreServiceClient
            +   *           .createIdentityMappingStoreCallable()
            +   *           .futureCall(request);
            +   *   // Do something.
            +   *   IdentityMappingStore response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + createIdentityMappingStoreCallable() { + return stub.createIdentityMappingStoreCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the Identity Mapping Store. + * + *

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            +   *     IdentityMappingStoreServiceClient.create()) {
            +   *   GetIdentityMappingStoreRequest request =
            +   *       GetIdentityMappingStoreRequest.newBuilder()
            +   *           .setName(
            +   *               IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
            +   *                   .toString())
            +   *           .build();
            +   *   IdentityMappingStore response =
            +   *       identityMappingStoreServiceClient.getIdentityMappingStore(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 IdentityMappingStore getIdentityMappingStore( + GetIdentityMappingStoreRequest request) { + return getIdentityMappingStoreCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the Identity Mapping Store. + * + *

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            +   *     IdentityMappingStoreServiceClient.create()) {
            +   *   DeleteIdentityMappingStoreRequest request =
            +   *       DeleteIdentityMappingStoreRequest.newBuilder()
            +   *           .setName(
            +   *               IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
            +   *                   .toString())
            +   *           .build();
            +   *   identityMappingStoreServiceClient.deleteIdentityMappingStoreAsync(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 + deleteIdentityMappingStoreAsync(DeleteIdentityMappingStoreRequest request) { + return deleteIdentityMappingStoreOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the Identity Mapping Store. + * + *

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            +   *     IdentityMappingStoreServiceClient.create()) {
            +   *   ImportIdentityMappingsRequest request =
            +   *       ImportIdentityMappingsRequest.newBuilder()
            +   *           .setIdentityMappingStore(
            +   *               IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
            +   *                   .toString())
            +   *           .build();
            +   *   ImportIdentityMappingsResponse response =
            +   *       identityMappingStoreServiceClient.importIdentityMappingsAsync(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< + ImportIdentityMappingsResponse, IdentityMappingEntryOperationMetadata> + importIdentityMappingsAsync(ImportIdentityMappingsRequest request) { + return importIdentityMappingsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports a list of Identity Mapping Entries to an Identity Mapping Store. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            +   *     IdentityMappingStoreServiceClient.create()) {
            +   *   ImportIdentityMappingsRequest request =
            +   *       ImportIdentityMappingsRequest.newBuilder()
            +   *           .setIdentityMappingStore(
            +   *               IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
            +   *                   .toString())
            +   *           .build();
            +   *   OperationFuture
            +   *       future =
            +   *           identityMappingStoreServiceClient
            +   *               .importIdentityMappingsOperationCallable()
            +   *               .futureCall(request);
            +   *   // Do something.
            +   *   ImportIdentityMappingsResponse response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable< + ImportIdentityMappingsRequest, + ImportIdentityMappingsResponse, + IdentityMappingEntryOperationMetadata> + importIdentityMappingsOperationCallable() { + return stub.importIdentityMappingsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports a list of Identity Mapping Entries to an Identity Mapping Store. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            +   *     IdentityMappingStoreServiceClient.create()) {
            +   *   ImportIdentityMappingsRequest request =
            +   *       ImportIdentityMappingsRequest.newBuilder()
            +   *           .setIdentityMappingStore(
            +   *               IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
            +   *                   .toString())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       identityMappingStoreServiceClient.importIdentityMappingsCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + importIdentityMappingsCallable() { + return stub.importIdentityMappingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Purges specified or all Identity Mapping Entries from an Identity Mapping Store. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            +   *     IdentityMappingStoreServiceClient.create()) {
            +   *   PurgeIdentityMappingsRequest request =
            +   *       PurgeIdentityMappingsRequest.newBuilder()
            +   *           .setIdentityMappingStore(
            +   *               IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
            +   *                   .toString())
            +   *           .setFilter("filter-1274492040")
            +   *           .setForce(true)
            +   *           .build();
            +   *   identityMappingStoreServiceClient.purgeIdentityMappingsAsync(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 + purgeIdentityMappingsAsync(PurgeIdentityMappingsRequest request) { + return purgeIdentityMappingsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Purges specified or all Identity Mapping Entries from an Identity Mapping Store. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            +   *     IdentityMappingStoreServiceClient.create()) {
            +   *   PurgeIdentityMappingsRequest request =
            +   *       PurgeIdentityMappingsRequest.newBuilder()
            +   *           .setIdentityMappingStore(
            +   *               IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
            +   *                   .toString())
            +   *           .setFilter("filter-1274492040")
            +   *           .setForce(true)
            +   *           .build();
            +   *   OperationFuture future =
            +   *       identityMappingStoreServiceClient
            +   *           .purgeIdentityMappingsOperationCallable()
            +   *           .futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable< + PurgeIdentityMappingsRequest, Empty, IdentityMappingEntryOperationMetadata> + purgeIdentityMappingsOperationCallable() { + return stub.purgeIdentityMappingsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Purges specified or all Identity Mapping Entries from an Identity Mapping Store. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            +   *     IdentityMappingStoreServiceClient.create()) {
            +   *   PurgeIdentityMappingsRequest request =
            +   *       PurgeIdentityMappingsRequest.newBuilder()
            +   *           .setIdentityMappingStore(
            +   *               IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
            +   *                   .toString())
            +   *           .setFilter("filter-1274492040")
            +   *           .setForce(true)
            +   *           .build();
            +   *   ApiFuture future =
            +   *       identityMappingStoreServiceClient.purgeIdentityMappingsCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + purgeIdentityMappingsCallable() { + return stub.purgeIdentityMappingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Identity Mappings in an Identity Mapping Store. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            +   *     IdentityMappingStoreServiceClient.create()) {
            +   *   ListIdentityMappingsRequest request =
            +   *       ListIdentityMappingsRequest.newBuilder()
            +   *           .setIdentityMappingStore(
            +   *               IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
            +   *                   .toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   for (IdentityMappingEntry element :
            +   *       identityMappingStoreServiceClient.listIdentityMappings(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 ListIdentityMappingsPagedResponse listIdentityMappings( + ListIdentityMappingsRequest request) { + return listIdentityMappingsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Identity Mappings in an Identity Mapping Store. + * + *

            Sample code: + * + *

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            +   *     IdentityMappingStoreServiceClient.create()) {
            +   *   ListIdentityMappingsRequest request =
            +   *       ListIdentityMappingsRequest.newBuilder()
            +   *           .setIdentityMappingStore(
            +   *               IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]")
            +   *                   .toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   while (true) {
            +   *     ListIdentityMappingsResponse response =
            +   *         identityMappingStoreServiceClient.listIdentityMappingsCallable().call(request);
            +   *     for (IdentityMappingEntry element : response.getIdentityMappingEntriesList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listIdentityMappingsCallable() { + return stub.listIdentityMappingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Identity Mapping Stores. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            +   *     IdentityMappingStoreServiceClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   for (IdentityMappingStore element :
            +   *       identityMappingStoreServiceClient.listIdentityMappingStores(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent of the Identity Mapping Stores to list. Format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListIdentityMappingStoresPagedResponse listIdentityMappingStores( + LocationName parent) { + ListIdentityMappingStoresRequest request = + ListIdentityMappingStoresRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listIdentityMappingStores(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Identity Mapping Stores. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            +   *     IdentityMappingStoreServiceClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   for (IdentityMappingStore element :
            +   *       identityMappingStoreServiceClient.listIdentityMappingStores(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent of the Identity Mapping Stores to list. Format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListIdentityMappingStoresPagedResponse listIdentityMappingStores(String parent) { + ListIdentityMappingStoresRequest request = + ListIdentityMappingStoresRequest.newBuilder().setParent(parent).build(); + return listIdentityMappingStores(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Identity Mapping Stores. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            +   *     IdentityMappingStoreServiceClient.create()) {
            +   *   ListIdentityMappingStoresRequest request =
            +   *       ListIdentityMappingStoresRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   for (IdentityMappingStore element :
            +   *       identityMappingStoreServiceClient.listIdentityMappingStores(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 ListIdentityMappingStoresPagedResponse listIdentityMappingStores( + ListIdentityMappingStoresRequest request) { + return listIdentityMappingStoresPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all Identity Mapping Stores. + * + *

            Sample code: + * + *

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            +   *     IdentityMappingStoreServiceClient.create()) {
            +   *   ListIdentityMappingStoresRequest request =
            +   *       ListIdentityMappingStoresRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   while (true) {
            +   *     ListIdentityMappingStoresResponse response =
            +   *         identityMappingStoreServiceClient.listIdentityMappingStoresCallable().call(request);
            +   *     for (IdentityMappingStore element : response.getIdentityMappingStoresList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listIdentityMappingStoresCallable() { + return stub.listIdentityMappingStoresCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListIdentityMappingsPagedResponse + extends AbstractPagedListResponse< + ListIdentityMappingsRequest, + ListIdentityMappingsResponse, + IdentityMappingEntry, + ListIdentityMappingsPage, + ListIdentityMappingsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListIdentityMappingsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListIdentityMappingsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListIdentityMappingsPagedResponse(ListIdentityMappingsPage page) { + super(page, ListIdentityMappingsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListIdentityMappingsPage + extends AbstractPage< + ListIdentityMappingsRequest, + ListIdentityMappingsResponse, + IdentityMappingEntry, + ListIdentityMappingsPage> { + + private ListIdentityMappingsPage( + PageContext + context, + ListIdentityMappingsResponse response) { + super(context, response); + } + + private static ListIdentityMappingsPage createEmptyPage() { + return new ListIdentityMappingsPage(null, null); + } + + @Override + protected ListIdentityMappingsPage createPage( + PageContext + context, + ListIdentityMappingsResponse response) { + return new ListIdentityMappingsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListIdentityMappingsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListIdentityMappingsRequest, + ListIdentityMappingsResponse, + IdentityMappingEntry, + ListIdentityMappingsPage, + ListIdentityMappingsFixedSizeCollection> { + + private ListIdentityMappingsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListIdentityMappingsFixedSizeCollection createEmptyCollection() { + return new ListIdentityMappingsFixedSizeCollection(null, 0); + } + + @Override + protected ListIdentityMappingsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListIdentityMappingsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListIdentityMappingStoresPagedResponse + extends AbstractPagedListResponse< + ListIdentityMappingStoresRequest, + ListIdentityMappingStoresResponse, + IdentityMappingStore, + ListIdentityMappingStoresPage, + ListIdentityMappingStoresFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListIdentityMappingStoresRequest, + ListIdentityMappingStoresResponse, + IdentityMappingStore> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListIdentityMappingStoresPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListIdentityMappingStoresPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListIdentityMappingStoresPagedResponse(ListIdentityMappingStoresPage page) { + super(page, ListIdentityMappingStoresFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListIdentityMappingStoresPage + extends AbstractPage< + ListIdentityMappingStoresRequest, + ListIdentityMappingStoresResponse, + IdentityMappingStore, + ListIdentityMappingStoresPage> { + + private ListIdentityMappingStoresPage( + PageContext< + ListIdentityMappingStoresRequest, + ListIdentityMappingStoresResponse, + IdentityMappingStore> + context, + ListIdentityMappingStoresResponse response) { + super(context, response); + } + + private static ListIdentityMappingStoresPage createEmptyPage() { + return new ListIdentityMappingStoresPage(null, null); + } + + @Override + protected ListIdentityMappingStoresPage createPage( + PageContext< + ListIdentityMappingStoresRequest, + ListIdentityMappingStoresResponse, + IdentityMappingStore> + context, + ListIdentityMappingStoresResponse response) { + return new ListIdentityMappingStoresPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListIdentityMappingStoresRequest, + ListIdentityMappingStoresResponse, + IdentityMappingStore> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListIdentityMappingStoresFixedSizeCollection + extends AbstractFixedSizeCollection< + ListIdentityMappingStoresRequest, + ListIdentityMappingStoresResponse, + IdentityMappingStore, + ListIdentityMappingStoresPage, + ListIdentityMappingStoresFixedSizeCollection> { + + private ListIdentityMappingStoresFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListIdentityMappingStoresFixedSizeCollection createEmptyCollection() { + return new ListIdentityMappingStoresFixedSizeCollection(null, 0); + } + + @Override + protected ListIdentityMappingStoresFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListIdentityMappingStoresFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceSettings.java new file mode 100644 index 000000000000..591a54ec81b0 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceSettings.java @@ -0,0 +1,395 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient.ListIdentityMappingStoresPagedResponse; +import static com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient.ListIdentityMappingsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +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.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1beta.stub.IdentityMappingStoreServiceStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link IdentityMappingStoreServiceClient}. + * + *

            The default instance has everything set to sensible defaults: + * + *

              + *
            • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
            • Credentials are acquired automatically through Application Default Credentials. + *
            • Retries are configured for idempotent methods but not for non-idempotent methods. + *
            + * + *

            The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * IdentityMappingStoreServiceSettings.Builder identityMappingStoreServiceSettingsBuilder =
            + *     IdentityMappingStoreServiceSettings.newBuilder();
            + * identityMappingStoreServiceSettingsBuilder
            + *     .createIdentityMappingStoreSettings()
            + *     .setRetrySettings(
            + *         identityMappingStoreServiceSettingsBuilder
            + *             .createIdentityMappingStoreSettings()
            + *             .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());
            + * IdentityMappingStoreServiceSettings identityMappingStoreServiceSettings =
            + *     identityMappingStoreServiceSettingsBuilder.build();
            + * }
            + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

            To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for deleteIdentityMappingStore: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * IdentityMappingStoreServiceSettings.Builder identityMappingStoreServiceSettingsBuilder =
            + *     IdentityMappingStoreServiceSettings.newBuilder();
            + * TimedRetryAlgorithm timedRetryAlgorithm =
            + *     OperationalTimedPollAlgorithm.create(
            + *         RetrySettings.newBuilder()
            + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
            + *             .setRetryDelayMultiplier(1.5)
            + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
            + *             .setTotalTimeoutDuration(Duration.ofHours(24))
            + *             .build());
            + * identityMappingStoreServiceSettingsBuilder
            + *     .createClusterOperationSettings()
            + *     .setPollingAlgorithm(timedRetryAlgorithm)
            + *     .build();
            + * }
            + */ +@BetaApi +@Generated("by gapic-generator-java") +public class IdentityMappingStoreServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to createIdentityMappingStore. */ + public UnaryCallSettings + createIdentityMappingStoreSettings() { + return ((IdentityMappingStoreServiceStubSettings) getStubSettings()) + .createIdentityMappingStoreSettings(); + } + + /** Returns the object with the settings used for calls to getIdentityMappingStore. */ + public UnaryCallSettings + getIdentityMappingStoreSettings() { + return ((IdentityMappingStoreServiceStubSettings) getStubSettings()) + .getIdentityMappingStoreSettings(); + } + + /** Returns the object with the settings used for calls to deleteIdentityMappingStore. */ + public UnaryCallSettings + deleteIdentityMappingStoreSettings() { + return ((IdentityMappingStoreServiceStubSettings) getStubSettings()) + .deleteIdentityMappingStoreSettings(); + } + + /** Returns the object with the settings used for calls to deleteIdentityMappingStore. */ + public OperationCallSettings< + DeleteIdentityMappingStoreRequest, Empty, DeleteIdentityMappingStoreMetadata> + deleteIdentityMappingStoreOperationSettings() { + return ((IdentityMappingStoreServiceStubSettings) getStubSettings()) + .deleteIdentityMappingStoreOperationSettings(); + } + + /** Returns the object with the settings used for calls to importIdentityMappings. */ + public UnaryCallSettings + importIdentityMappingsSettings() { + return ((IdentityMappingStoreServiceStubSettings) getStubSettings()) + .importIdentityMappingsSettings(); + } + + /** Returns the object with the settings used for calls to importIdentityMappings. */ + public OperationCallSettings< + ImportIdentityMappingsRequest, + ImportIdentityMappingsResponse, + IdentityMappingEntryOperationMetadata> + importIdentityMappingsOperationSettings() { + return ((IdentityMappingStoreServiceStubSettings) getStubSettings()) + .importIdentityMappingsOperationSettings(); + } + + /** Returns the object with the settings used for calls to purgeIdentityMappings. */ + public UnaryCallSettings + purgeIdentityMappingsSettings() { + return ((IdentityMappingStoreServiceStubSettings) getStubSettings()) + .purgeIdentityMappingsSettings(); + } + + /** Returns the object with the settings used for calls to purgeIdentityMappings. */ + public OperationCallSettings< + PurgeIdentityMappingsRequest, Empty, IdentityMappingEntryOperationMetadata> + purgeIdentityMappingsOperationSettings() { + return ((IdentityMappingStoreServiceStubSettings) getStubSettings()) + .purgeIdentityMappingsOperationSettings(); + } + + /** Returns the object with the settings used for calls to listIdentityMappings. */ + public PagedCallSettings< + ListIdentityMappingsRequest, + ListIdentityMappingsResponse, + ListIdentityMappingsPagedResponse> + listIdentityMappingsSettings() { + return ((IdentityMappingStoreServiceStubSettings) getStubSettings()) + .listIdentityMappingsSettings(); + } + + /** Returns the object with the settings used for calls to listIdentityMappingStores. */ + public PagedCallSettings< + ListIdentityMappingStoresRequest, + ListIdentityMappingStoresResponse, + ListIdentityMappingStoresPagedResponse> + listIdentityMappingStoresSettings() { + return ((IdentityMappingStoreServiceStubSettings) getStubSettings()) + .listIdentityMappingStoresSettings(); + } + + public static final IdentityMappingStoreServiceSettings create( + IdentityMappingStoreServiceStubSettings stub) throws IOException { + return new IdentityMappingStoreServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return IdentityMappingStoreServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return IdentityMappingStoreServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return IdentityMappingStoreServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return IdentityMappingStoreServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return IdentityMappingStoreServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return IdentityMappingStoreServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return IdentityMappingStoreServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return IdentityMappingStoreServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected IdentityMappingStoreServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for IdentityMappingStoreServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(IdentityMappingStoreServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(IdentityMappingStoreServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(IdentityMappingStoreServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(IdentityMappingStoreServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(IdentityMappingStoreServiceStubSettings.newHttpJsonBuilder()); + } + + public IdentityMappingStoreServiceStubSettings.Builder getStubSettingsBuilder() { + return ((IdentityMappingStoreServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

            Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createIdentityMappingStore. */ + public UnaryCallSettings.Builder + createIdentityMappingStoreSettings() { + return getStubSettingsBuilder().createIdentityMappingStoreSettings(); + } + + /** Returns the builder for the settings used for calls to getIdentityMappingStore. */ + public UnaryCallSettings.Builder + getIdentityMappingStoreSettings() { + return getStubSettingsBuilder().getIdentityMappingStoreSettings(); + } + + /** Returns the builder for the settings used for calls to deleteIdentityMappingStore. */ + public UnaryCallSettings.Builder + deleteIdentityMappingStoreSettings() { + return getStubSettingsBuilder().deleteIdentityMappingStoreSettings(); + } + + /** Returns the builder for the settings used for calls to deleteIdentityMappingStore. */ + public OperationCallSettings.Builder< + DeleteIdentityMappingStoreRequest, Empty, DeleteIdentityMappingStoreMetadata> + deleteIdentityMappingStoreOperationSettings() { + return getStubSettingsBuilder().deleteIdentityMappingStoreOperationSettings(); + } + + /** Returns the builder for the settings used for calls to importIdentityMappings. */ + public UnaryCallSettings.Builder + importIdentityMappingsSettings() { + return getStubSettingsBuilder().importIdentityMappingsSettings(); + } + + /** Returns the builder for the settings used for calls to importIdentityMappings. */ + public OperationCallSettings.Builder< + ImportIdentityMappingsRequest, + ImportIdentityMappingsResponse, + IdentityMappingEntryOperationMetadata> + importIdentityMappingsOperationSettings() { + return getStubSettingsBuilder().importIdentityMappingsOperationSettings(); + } + + /** Returns the builder for the settings used for calls to purgeIdentityMappings. */ + public UnaryCallSettings.Builder + purgeIdentityMappingsSettings() { + return getStubSettingsBuilder().purgeIdentityMappingsSettings(); + } + + /** Returns the builder for the settings used for calls to purgeIdentityMappings. */ + public OperationCallSettings.Builder< + PurgeIdentityMappingsRequest, Empty, IdentityMappingEntryOperationMetadata> + purgeIdentityMappingsOperationSettings() { + return getStubSettingsBuilder().purgeIdentityMappingsOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listIdentityMappings. */ + public PagedCallSettings.Builder< + ListIdentityMappingsRequest, + ListIdentityMappingsResponse, + ListIdentityMappingsPagedResponse> + listIdentityMappingsSettings() { + return getStubSettingsBuilder().listIdentityMappingsSettings(); + } + + /** Returns the builder for the settings used for calls to listIdentityMappingStores. */ + public PagedCallSettings.Builder< + ListIdentityMappingStoresRequest, + ListIdentityMappingStoresResponse, + ListIdentityMappingStoresPagedResponse> + listIdentityMappingStoresSettings() { + return getStubSettingsBuilder().listIdentityMappingStoresSettings(); + } + + @Override + public IdentityMappingStoreServiceSettings build() throws IOException { + return new IdentityMappingStoreServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceClient.java new file mode 100644 index 000000000000..edaf4250679d --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceClient.java @@ -0,0 +1,1478 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.stub.LicenseConfigServiceStub; +import com.google.cloud.discoveryengine.v1beta.stub.LicenseConfigServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing license config related resources. + * + *

            This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * try (LicenseConfigServiceClient licenseConfigServiceClient =
            + *     LicenseConfigServiceClient.create()) {
            + *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            + *   LicenseConfig licenseConfig = LicenseConfig.newBuilder().build();
            + *   String licenseConfigId = "licenseConfigId-372057250";
            + *   LicenseConfig response =
            + *       licenseConfigServiceClient.createLicenseConfig(parent, licenseConfig, licenseConfigId);
            + * }
            + * }
            + * + *

            Note: close() needs to be called on the LicenseConfigServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
            Methods
            MethodDescriptionMethod Variants

            CreateLicenseConfig

            Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses.

            + *

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

            + *
              + *
            • createLicenseConfig(CreateLicenseConfigRequest request) + *

            + *

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

            + *
              + *
            • createLicenseConfig(LocationName parent, LicenseConfig licenseConfig, String licenseConfigId) + *

            • createLicenseConfig(String parent, LicenseConfig licenseConfig, String licenseConfigId) + *

            + *

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

            + *
              + *
            • createLicenseConfigCallable() + *

            + *

            UpdateLicenseConfig

            Updates the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]

            + *

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

            + *
              + *
            • updateLicenseConfig(UpdateLicenseConfigRequest request) + *

            + *

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

            + *
              + *
            • updateLicenseConfig(LicenseConfig licenseConfig, 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.

            + *
              + *
            • updateLicenseConfigCallable() + *

            + *

            GetLicenseConfig

            Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].

            + *

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

            + *
              + *
            • getLicenseConfig(GetLicenseConfigRequest request) + *

            + *

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

            + *
              + *
            • getLicenseConfig(LicenseConfigName name) + *

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

            + *
              + *
            • getLicenseConfigCallable() + *

            + *

            ListLicenseConfigs

            Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated with the project.

            + *

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

            + *
              + *
            • listLicenseConfigs(ListLicenseConfigsRequest request) + *

            + *

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

            + *
              + *
            • listLicenseConfigs(LocationName parent) + *

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

            + *
              + *
            • listLicenseConfigsPagedCallable() + *

            • listLicenseConfigsCallable() + *

            + *

            DistributeLicenseConfig

            Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing account level to project level.

            + *

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

            + *
              + *
            • distributeLicenseConfig(DistributeLicenseConfigRequest request) + *

            + *

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

            + *
              + *
            • distributeLicenseConfig(BillingAccountLicenseConfigName billingAccountLicenseConfig, long projectNumber, String location, long licenseCount, String licenseConfigId) + *

            • distributeLicenseConfig(String billingAccountLicenseConfig, long projectNumber, String location, long licenseCount, String licenseConfigId) + *

            + *

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

            + *
              + *
            • distributeLicenseConfigCallable() + *

            + *

            RetractLicenseConfig

            This method is called from the billing account side to retract the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back to the billing account.

            + *

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

            + *
              + *
            • retractLicenseConfig(RetractLicenseConfigRequest request) + *

            + *

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

            + *
              + *
            • retractLicenseConfig(BillingAccountLicenseConfigName billingAccountLicenseConfig, LicenseConfigName licenseConfig, boolean fullRetract, long licenseCount) + *

            • retractLicenseConfig(BillingAccountLicenseConfigName billingAccountLicenseConfig, String licenseConfig, boolean fullRetract, long licenseCount) + *

            • retractLicenseConfig(String billingAccountLicenseConfig, LicenseConfigName licenseConfig, boolean fullRetract, long licenseCount) + *

            • retractLicenseConfig(String billingAccountLicenseConfig, String licenseConfig, boolean fullRetract, long licenseCount) + *

            + *

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

            + *
              + *
            • retractLicenseConfigCallable() + *

            + *
            + * + *

            See the individual methods for example code. + * + *

            Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

            This class can be customized by passing in a custom instance of LicenseConfigServiceSettings + * to create(). For example: + * + *

            To customize credentials: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * LicenseConfigServiceSettings licenseConfigServiceSettings =
            + *     LicenseConfigServiceSettings.newBuilder()
            + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
            + *         .build();
            + * LicenseConfigServiceClient licenseConfigServiceClient =
            + *     LicenseConfigServiceClient.create(licenseConfigServiceSettings);
            + * }
            + * + *

            To customize the endpoint: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * LicenseConfigServiceSettings licenseConfigServiceSettings =
            + *     LicenseConfigServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
            + * LicenseConfigServiceClient licenseConfigServiceClient =
            + *     LicenseConfigServiceClient.create(licenseConfigServiceSettings);
            + * }
            + * + *

            To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * LicenseConfigServiceSettings licenseConfigServiceSettings =
            + *     LicenseConfigServiceSettings.newHttpJsonBuilder().build();
            + * LicenseConfigServiceClient licenseConfigServiceClient =
            + *     LicenseConfigServiceClient.create(licenseConfigServiceSettings);
            + * }
            + * + *

            Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class LicenseConfigServiceClient implements BackgroundResource { + private final LicenseConfigServiceSettings settings; + private final LicenseConfigServiceStub stub; + + /** Constructs an instance of LicenseConfigServiceClient with default settings. */ + public static final LicenseConfigServiceClient create() throws IOException { + return create(LicenseConfigServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of LicenseConfigServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final LicenseConfigServiceClient create(LicenseConfigServiceSettings settings) + throws IOException { + return new LicenseConfigServiceClient(settings); + } + + /** + * Constructs an instance of LicenseConfigServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(LicenseConfigServiceSettings). + */ + public static final LicenseConfigServiceClient create(LicenseConfigServiceStub stub) { + return new LicenseConfigServiceClient(stub); + } + + /** + * Constructs an instance of LicenseConfigServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected LicenseConfigServiceClient(LicenseConfigServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((LicenseConfigServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected LicenseConfigServiceClient(LicenseConfigServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final LicenseConfigServiceSettings getSettings() { + return settings; + } + + public LicenseConfigServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should + * only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   LicenseConfig licenseConfig = LicenseConfig.newBuilder().build();
            +   *   String licenseConfigId = "licenseConfigId-372057250";
            +   *   LicenseConfig response =
            +   *       licenseConfigServiceClient.createLicenseConfig(parent, licenseConfig, licenseConfigId);
            +   * }
            +   * }
            + * + * @param parent Required. The parent resource name, such as + * `projects/{project}/locations/{location}`. + * @param licenseConfig Required. The + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to create. + * @param licenseConfigId Optional. The ID to use for the + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which will become the + * final component of the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s + * resource name. We are using the tier (product edition) name as the license config id such + * as `search` or `search_and_assistant`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LicenseConfig createLicenseConfig( + LocationName parent, LicenseConfig licenseConfig, String licenseConfigId) { + CreateLicenseConfigRequest request = + CreateLicenseConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setLicenseConfig(licenseConfig) + .setLicenseConfigId(licenseConfigId) + .build(); + return createLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should + * only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   LicenseConfig licenseConfig = LicenseConfig.newBuilder().build();
            +   *   String licenseConfigId = "licenseConfigId-372057250";
            +   *   LicenseConfig response =
            +   *       licenseConfigServiceClient.createLicenseConfig(parent, licenseConfig, licenseConfigId);
            +   * }
            +   * }
            + * + * @param parent Required. The parent resource name, such as + * `projects/{project}/locations/{location}`. + * @param licenseConfig Required. The + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to create. + * @param licenseConfigId Optional. The ID to use for the + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which will become the + * final component of the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s + * resource name. We are using the tier (product edition) name as the license config id such + * as `search` or `search_and_assistant`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LicenseConfig createLicenseConfig( + String parent, LicenseConfig licenseConfig, String licenseConfigId) { + CreateLicenseConfigRequest request = + CreateLicenseConfigRequest.newBuilder() + .setParent(parent) + .setLicenseConfig(licenseConfig) + .setLicenseConfigId(licenseConfigId) + .build(); + return createLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should + * only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   CreateLicenseConfigRequest request =
            +   *       CreateLicenseConfigRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setLicenseConfig(LicenseConfig.newBuilder().build())
            +   *           .setLicenseConfigId("licenseConfigId-372057250")
            +   *           .build();
            +   *   LicenseConfig response = licenseConfigServiceClient.createLicenseConfig(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 LicenseConfig createLicenseConfig(CreateLicenseConfigRequest request) { + return createLicenseConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This method should + * only be used for creating NotebookLm licenses or Gemini Enterprise free trial licenses. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   CreateLicenseConfigRequest request =
            +   *       CreateLicenseConfigRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setLicenseConfig(LicenseConfig.newBuilder().build())
            +   *           .setLicenseConfigId("licenseConfigId-372057250")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       licenseConfigServiceClient.createLicenseConfigCallable().futureCall(request);
            +   *   // Do something.
            +   *   LicenseConfig response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + createLicenseConfigCallable() { + return stub.createLicenseConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   LicenseConfig licenseConfig = LicenseConfig.newBuilder().build();
            +   *   FieldMask updateMask = FieldMask.newBuilder().build();
            +   *   LicenseConfig response =
            +   *       licenseConfigServiceClient.updateLicenseConfig(licenseConfig, updateMask);
            +   * }
            +   * }
            + * + * @param licenseConfig Required. The + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to update. + * @param updateMask Optional. Indicates which fields in the provided + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to update. + *

            If an unsupported or unknown field is provided, an INVALID_ARGUMENT error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LicenseConfig updateLicenseConfig( + LicenseConfig licenseConfig, FieldMask updateMask) { + UpdateLicenseConfigRequest request = + UpdateLicenseConfigRequest.newBuilder() + .setLicenseConfig(licenseConfig) + .setUpdateMask(updateMask) + .build(); + return updateLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   UpdateLicenseConfigRequest request =
            +   *       UpdateLicenseConfigRequest.newBuilder()
            +   *           .setLicenseConfig(LicenseConfig.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   LicenseConfig response = licenseConfigServiceClient.updateLicenseConfig(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 LicenseConfig updateLicenseConfig(UpdateLicenseConfigRequest request) { + return updateLicenseConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] + * + *

            Sample code: + * + *

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   LicenseConfigName name = LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]");
            +   *   LicenseConfig response = licenseConfigServiceClient.getLicenseConfig(name);
            +   * }
            +   * }
            + * + * @param name Required. Full resource name of + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as + * `projects/{project}/locations/{location}/licenseConfigs/*`. + *

            If the caller does not have permission to access the + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], regardless of whether + * or not it exists, a PERMISSION_DENIED error is returned. + *

            If the requested [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does + * not exist, a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LicenseConfig getLicenseConfig(LicenseConfigName name) { + GetLicenseConfigRequest request = + GetLicenseConfigRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   String name = LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString();
            +   *   LicenseConfig response = licenseConfigServiceClient.getLicenseConfig(name);
            +   * }
            +   * }
            + * + * @param name Required. Full resource name of + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as + * `projects/{project}/locations/{location}/licenseConfigs/*`. + *

            If the caller does not have permission to access the + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], regardless of whether + * or not it exists, a PERMISSION_DENIED error is returned. + *

            If the requested [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does + * not exist, a NOT_FOUND error is returned. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LicenseConfig getLicenseConfig(String name) { + GetLicenseConfigRequest request = GetLicenseConfigRequest.newBuilder().setName(name).build(); + return getLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   GetLicenseConfigRequest request =
            +   *       GetLicenseConfigRequest.newBuilder()
            +   *           .setName(
            +   *               LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString())
            +   *           .build();
            +   *   LicenseConfig response = licenseConfigServiceClient.getLicenseConfig(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 LicenseConfig getLicenseConfig(GetLicenseConfigRequest request) { + return getLicenseConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   GetLicenseConfigRequest request =
            +   *       GetLicenseConfigRequest.newBuilder()
            +   *           .setName(
            +   *               LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       licenseConfigServiceClient.getLicenseConfigCallable().futureCall(request);
            +   *   // Do something.
            +   *   LicenseConfig response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable getLicenseConfigCallable() { + return stub.getLicenseConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated + * with 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 (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   for (LicenseConfig element :
            +   *       licenseConfigServiceClient.listLicenseConfigs(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent branch resource name, such as + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLicenseConfigsPagedResponse listLicenseConfigs(LocationName parent) { + ListLicenseConfigsRequest request = + ListLicenseConfigsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listLicenseConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated + * with 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 (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   for (LicenseConfig element :
            +   *       licenseConfigServiceClient.listLicenseConfigs(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent branch resource name, such as + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLicenseConfigsPagedResponse listLicenseConfigs(String parent) { + ListLicenseConfigsRequest request = + ListLicenseConfigsRequest.newBuilder().setParent(parent).build(); + return listLicenseConfigs(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated + * with 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 (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   ListLicenseConfigsRequest request =
            +   *       ListLicenseConfigsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   for (LicenseConfig element :
            +   *       licenseConfigServiceClient.listLicenseConfigs(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 ListLicenseConfigsPagedResponse listLicenseConfigs( + ListLicenseConfigsRequest request) { + return listLicenseConfigsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated + * with 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 (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   ListLicenseConfigsRequest request =
            +   *       ListLicenseConfigsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       licenseConfigServiceClient.listLicenseConfigsPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (LicenseConfig element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listLicenseConfigsPagedCallable() { + return stub.listLicenseConfigsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s associated + * with 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 (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   ListLicenseConfigsRequest request =
            +   *       ListLicenseConfigsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   while (true) {
            +   *     ListLicenseConfigsResponse response =
            +   *         licenseConfigServiceClient.listLicenseConfigsCallable().call(request);
            +   *     for (LicenseConfig element : response.getLicenseConfigsList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listLicenseConfigsCallable() { + return stub.listLicenseConfigsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing + * account level to project level. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   BillingAccountLicenseConfigName billingAccountLicenseConfig =
            +   *       BillingAccountLicenseConfigName.of(
            +   *           "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]");
            +   *   long projectNumber = 828084015;
            +   *   String location = "location1901043637";
            +   *   long licenseCount = -1565113455;
            +   *   String licenseConfigId = "licenseConfigId-372057250";
            +   *   DistributeLicenseConfigResponse response =
            +   *       licenseConfigServiceClient.distributeLicenseConfig(
            +   *           billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId);
            +   * }
            +   * }
            + * + * @param billingAccountLicenseConfig Required. Full resource name of + * [BillingAccountLicenseConfig][]. + *

            Format: + * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`. + * @param projectNumber Required. The target GCP project number to distribute the license config + * to. + * @param location Required. The target GCP project region to distribute the license config to. + * @param licenseCount Required. The number of licenses to distribute. + * @param licenseConfigId Optional. Distribute seats to this license config instead of creating a + * new one. If not specified, a new license config will be created from the billing account + * license config. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DistributeLicenseConfigResponse distributeLicenseConfig( + BillingAccountLicenseConfigName billingAccountLicenseConfig, + long projectNumber, + String location, + long licenseCount, + String licenseConfigId) { + DistributeLicenseConfigRequest request = + DistributeLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig( + billingAccountLicenseConfig == null ? null : billingAccountLicenseConfig.toString()) + .setProjectNumber(projectNumber) + .setLocation(location) + .setLicenseCount(licenseCount) + .setLicenseConfigId(licenseConfigId) + .build(); + return distributeLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing + * account level to project level. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   String billingAccountLicenseConfig =
            +   *       BillingAccountLicenseConfigName.of(
            +   *               "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
            +   *           .toString();
            +   *   long projectNumber = 828084015;
            +   *   String location = "location1901043637";
            +   *   long licenseCount = -1565113455;
            +   *   String licenseConfigId = "licenseConfigId-372057250";
            +   *   DistributeLicenseConfigResponse response =
            +   *       licenseConfigServiceClient.distributeLicenseConfig(
            +   *           billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId);
            +   * }
            +   * }
            + * + * @param billingAccountLicenseConfig Required. Full resource name of + * [BillingAccountLicenseConfig][]. + *

            Format: + * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`. + * @param projectNumber Required. The target GCP project number to distribute the license config + * to. + * @param location Required. The target GCP project region to distribute the license config to. + * @param licenseCount Required. The number of licenses to distribute. + * @param licenseConfigId Optional. Distribute seats to this license config instead of creating a + * new one. If not specified, a new license config will be created from the billing account + * license config. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DistributeLicenseConfigResponse distributeLicenseConfig( + String billingAccountLicenseConfig, + long projectNumber, + String location, + long licenseCount, + String licenseConfigId) { + DistributeLicenseConfigRequest request = + DistributeLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig(billingAccountLicenseConfig) + .setProjectNumber(projectNumber) + .setLocation(location) + .setLicenseCount(licenseCount) + .setLicenseConfigId(licenseConfigId) + .build(); + return distributeLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing + * account level to project level. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   DistributeLicenseConfigRequest request =
            +   *       DistributeLicenseConfigRequest.newBuilder()
            +   *           .setBillingAccountLicenseConfig(
            +   *               BillingAccountLicenseConfigName.of(
            +   *                       "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
            +   *                   .toString())
            +   *           .setProjectNumber(828084015)
            +   *           .setLocation("location1901043637")
            +   *           .setLicenseCount(-1565113455)
            +   *           .setLicenseConfigId("licenseConfigId-372057250")
            +   *           .build();
            +   *   DistributeLicenseConfigResponse response =
            +   *       licenseConfigServiceClient.distributeLicenseConfig(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 DistributeLicenseConfigResponse distributeLicenseConfig( + DistributeLicenseConfigRequest request) { + return distributeLicenseConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Distributes a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from billing + * account level to project level. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   DistributeLicenseConfigRequest request =
            +   *       DistributeLicenseConfigRequest.newBuilder()
            +   *           .setBillingAccountLicenseConfig(
            +   *               BillingAccountLicenseConfigName.of(
            +   *                       "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
            +   *                   .toString())
            +   *           .setProjectNumber(828084015)
            +   *           .setLocation("location1901043637")
            +   *           .setLicenseCount(-1565113455)
            +   *           .setLicenseConfigId("licenseConfigId-372057250")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       licenseConfigServiceClient.distributeLicenseConfigCallable().futureCall(request);
            +   *   // Do something.
            +   *   DistributeLicenseConfigResponse response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + distributeLicenseConfigCallable() { + return stub.distributeLicenseConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * This method is called from the billing account side to retract the + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back + * to the billing account. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   BillingAccountLicenseConfigName billingAccountLicenseConfig =
            +   *       BillingAccountLicenseConfigName.of(
            +   *           "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]");
            +   *   LicenseConfigName licenseConfig =
            +   *       LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]");
            +   *   boolean fullRetract = true;
            +   *   long licenseCount = -1565113455;
            +   *   RetractLicenseConfigResponse response =
            +   *       licenseConfigServiceClient.retractLicenseConfig(
            +   *           billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount);
            +   * }
            +   * }
            + * + * @param billingAccountLicenseConfig Required. Full resource name of + * [BillingAccountLicenseConfig][]. + *

            Format: + * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`. + * @param licenseConfig Required. Full resource name of + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]. + *

            Format: `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`. + * @param fullRetract Optional. If set to true, retract the entire license config. Otherwise, + * retract the specified license count. + * @param licenseCount Optional. The number of licenses to retract. Only used when full_retract is + * false. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RetractLicenseConfigResponse retractLicenseConfig( + BillingAccountLicenseConfigName billingAccountLicenseConfig, + LicenseConfigName licenseConfig, + boolean fullRetract, + long licenseCount) { + RetractLicenseConfigRequest request = + RetractLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig( + billingAccountLicenseConfig == null ? null : billingAccountLicenseConfig.toString()) + .setLicenseConfig(licenseConfig == null ? null : licenseConfig.toString()) + .setFullRetract(fullRetract) + .setLicenseCount(licenseCount) + .build(); + return retractLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * This method is called from the billing account side to retract the + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back + * to the billing account. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   BillingAccountLicenseConfigName billingAccountLicenseConfig =
            +   *       BillingAccountLicenseConfigName.of(
            +   *           "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]");
            +   *   String licenseConfig =
            +   *       LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString();
            +   *   boolean fullRetract = true;
            +   *   long licenseCount = -1565113455;
            +   *   RetractLicenseConfigResponse response =
            +   *       licenseConfigServiceClient.retractLicenseConfig(
            +   *           billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount);
            +   * }
            +   * }
            + * + * @param billingAccountLicenseConfig Required. Full resource name of + * [BillingAccountLicenseConfig][]. + *

            Format: + * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`. + * @param licenseConfig Required. Full resource name of + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]. + *

            Format: `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`. + * @param fullRetract Optional. If set to true, retract the entire license config. Otherwise, + * retract the specified license count. + * @param licenseCount Optional. The number of licenses to retract. Only used when full_retract is + * false. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RetractLicenseConfigResponse retractLicenseConfig( + BillingAccountLicenseConfigName billingAccountLicenseConfig, + String licenseConfig, + boolean fullRetract, + long licenseCount) { + RetractLicenseConfigRequest request = + RetractLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig( + billingAccountLicenseConfig == null ? null : billingAccountLicenseConfig.toString()) + .setLicenseConfig(licenseConfig) + .setFullRetract(fullRetract) + .setLicenseCount(licenseCount) + .build(); + return retractLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * This method is called from the billing account side to retract the + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back + * to the billing account. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   String billingAccountLicenseConfig =
            +   *       BillingAccountLicenseConfigName.of(
            +   *               "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
            +   *           .toString();
            +   *   LicenseConfigName licenseConfig =
            +   *       LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]");
            +   *   boolean fullRetract = true;
            +   *   long licenseCount = -1565113455;
            +   *   RetractLicenseConfigResponse response =
            +   *       licenseConfigServiceClient.retractLicenseConfig(
            +   *           billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount);
            +   * }
            +   * }
            + * + * @param billingAccountLicenseConfig Required. Full resource name of + * [BillingAccountLicenseConfig][]. + *

            Format: + * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`. + * @param licenseConfig Required. Full resource name of + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]. + *

            Format: `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`. + * @param fullRetract Optional. If set to true, retract the entire license config. Otherwise, + * retract the specified license count. + * @param licenseCount Optional. The number of licenses to retract. Only used when full_retract is + * false. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RetractLicenseConfigResponse retractLicenseConfig( + String billingAccountLicenseConfig, + LicenseConfigName licenseConfig, + boolean fullRetract, + long licenseCount) { + RetractLicenseConfigRequest request = + RetractLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig(billingAccountLicenseConfig) + .setLicenseConfig(licenseConfig == null ? null : licenseConfig.toString()) + .setFullRetract(fullRetract) + .setLicenseCount(licenseCount) + .build(); + return retractLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * This method is called from the billing account side to retract the + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back + * to the billing account. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   String billingAccountLicenseConfig =
            +   *       BillingAccountLicenseConfigName.of(
            +   *               "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
            +   *           .toString();
            +   *   String licenseConfig =
            +   *       LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString();
            +   *   boolean fullRetract = true;
            +   *   long licenseCount = -1565113455;
            +   *   RetractLicenseConfigResponse response =
            +   *       licenseConfigServiceClient.retractLicenseConfig(
            +   *           billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount);
            +   * }
            +   * }
            + * + * @param billingAccountLicenseConfig Required. Full resource name of + * [BillingAccountLicenseConfig][]. + *

            Format: + * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`. + * @param licenseConfig Required. Full resource name of + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]. + *

            Format: `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`. + * @param fullRetract Optional. If set to true, retract the entire license config. Otherwise, + * retract the specified license count. + * @param licenseCount Optional. The number of licenses to retract. Only used when full_retract is + * false. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RetractLicenseConfigResponse retractLicenseConfig( + String billingAccountLicenseConfig, + String licenseConfig, + boolean fullRetract, + long licenseCount) { + RetractLicenseConfigRequest request = + RetractLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig(billingAccountLicenseConfig) + .setLicenseConfig(licenseConfig) + .setFullRetract(fullRetract) + .setLicenseCount(licenseCount) + .build(); + return retractLicenseConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * This method is called from the billing account side to retract the + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back + * to the billing account. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   RetractLicenseConfigRequest request =
            +   *       RetractLicenseConfigRequest.newBuilder()
            +   *           .setBillingAccountLicenseConfig(
            +   *               BillingAccountLicenseConfigName.of(
            +   *                       "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
            +   *                   .toString())
            +   *           .setLicenseConfig(
            +   *               LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString())
            +   *           .setFullRetract(true)
            +   *           .setLicenseCount(-1565113455)
            +   *           .build();
            +   *   RetractLicenseConfigResponse response =
            +   *       licenseConfigServiceClient.retractLicenseConfig(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 RetractLicenseConfigResponse retractLicenseConfig( + RetractLicenseConfigRequest request) { + return retractLicenseConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * This method is called from the billing account side to retract the + * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the given project back + * to the billing account. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (LicenseConfigServiceClient licenseConfigServiceClient =
            +   *     LicenseConfigServiceClient.create()) {
            +   *   RetractLicenseConfigRequest request =
            +   *       RetractLicenseConfigRequest.newBuilder()
            +   *           .setBillingAccountLicenseConfig(
            +   *               BillingAccountLicenseConfigName.of(
            +   *                       "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]")
            +   *                   .toString())
            +   *           .setLicenseConfig(
            +   *               LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString())
            +   *           .setFullRetract(true)
            +   *           .setLicenseCount(-1565113455)
            +   *           .build();
            +   *   ApiFuture future =
            +   *       licenseConfigServiceClient.retractLicenseConfigCallable().futureCall(request);
            +   *   // Do something.
            +   *   RetractLicenseConfigResponse response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + retractLicenseConfigCallable() { + return stub.retractLicenseConfigCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListLicenseConfigsPagedResponse + extends AbstractPagedListResponse< + ListLicenseConfigsRequest, + ListLicenseConfigsResponse, + LicenseConfig, + ListLicenseConfigsPage, + ListLicenseConfigsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLicenseConfigsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLicenseConfigsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLicenseConfigsPagedResponse(ListLicenseConfigsPage page) { + super(page, ListLicenseConfigsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLicenseConfigsPage + extends AbstractPage< + ListLicenseConfigsRequest, + ListLicenseConfigsResponse, + LicenseConfig, + ListLicenseConfigsPage> { + + private ListLicenseConfigsPage( + PageContext context, + ListLicenseConfigsResponse response) { + super(context, response); + } + + private static ListLicenseConfigsPage createEmptyPage() { + return new ListLicenseConfigsPage(null, null); + } + + @Override + protected ListLicenseConfigsPage createPage( + PageContext context, + ListLicenseConfigsResponse response) { + return new ListLicenseConfigsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLicenseConfigsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLicenseConfigsRequest, + ListLicenseConfigsResponse, + LicenseConfig, + ListLicenseConfigsPage, + ListLicenseConfigsFixedSizeCollection> { + + private ListLicenseConfigsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLicenseConfigsFixedSizeCollection createEmptyCollection() { + return new ListLicenseConfigsFixedSizeCollection(null, 0); + } + + @Override + protected ListLicenseConfigsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLicenseConfigsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceSettings.java new file mode 100644 index 000000000000..2b3a2cc5a286 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceSettings.java @@ -0,0 +1,286 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient.ListLicenseConfigsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +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.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1beta.stub.LicenseConfigServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link LicenseConfigServiceClient}. + * + *

            The default instance has everything set to sensible defaults: + * + *

              + *
            • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
            • Credentials are acquired automatically through Application Default Credentials. + *
            • Retries are configured for idempotent methods but not for non-idempotent methods. + *
            + * + *

            The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * LicenseConfigServiceSettings.Builder licenseConfigServiceSettingsBuilder =
            + *     LicenseConfigServiceSettings.newBuilder();
            + * licenseConfigServiceSettingsBuilder
            + *     .createLicenseConfigSettings()
            + *     .setRetrySettings(
            + *         licenseConfigServiceSettingsBuilder
            + *             .createLicenseConfigSettings()
            + *             .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());
            + * LicenseConfigServiceSettings licenseConfigServiceSettings =
            + *     licenseConfigServiceSettingsBuilder.build();
            + * }
            + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class LicenseConfigServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createLicenseConfig. */ + public UnaryCallSettings + createLicenseConfigSettings() { + return ((LicenseConfigServiceStubSettings) getStubSettings()).createLicenseConfigSettings(); + } + + /** Returns the object with the settings used for calls to updateLicenseConfig. */ + public UnaryCallSettings + updateLicenseConfigSettings() { + return ((LicenseConfigServiceStubSettings) getStubSettings()).updateLicenseConfigSettings(); + } + + /** Returns the object with the settings used for calls to getLicenseConfig. */ + public UnaryCallSettings getLicenseConfigSettings() { + return ((LicenseConfigServiceStubSettings) getStubSettings()).getLicenseConfigSettings(); + } + + /** Returns the object with the settings used for calls to listLicenseConfigs. */ + public PagedCallSettings< + ListLicenseConfigsRequest, ListLicenseConfigsResponse, ListLicenseConfigsPagedResponse> + listLicenseConfigsSettings() { + return ((LicenseConfigServiceStubSettings) getStubSettings()).listLicenseConfigsSettings(); + } + + /** Returns the object with the settings used for calls to distributeLicenseConfig. */ + public UnaryCallSettings + distributeLicenseConfigSettings() { + return ((LicenseConfigServiceStubSettings) getStubSettings()).distributeLicenseConfigSettings(); + } + + /** Returns the object with the settings used for calls to retractLicenseConfig. */ + public UnaryCallSettings + retractLicenseConfigSettings() { + return ((LicenseConfigServiceStubSettings) getStubSettings()).retractLicenseConfigSettings(); + } + + public static final LicenseConfigServiceSettings create(LicenseConfigServiceStubSettings stub) + throws IOException { + return new LicenseConfigServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return LicenseConfigServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return LicenseConfigServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return LicenseConfigServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return LicenseConfigServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return LicenseConfigServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return LicenseConfigServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return LicenseConfigServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return LicenseConfigServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected LicenseConfigServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for LicenseConfigServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(LicenseConfigServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(LicenseConfigServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(LicenseConfigServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(LicenseConfigServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(LicenseConfigServiceStubSettings.newHttpJsonBuilder()); + } + + public LicenseConfigServiceStubSettings.Builder getStubSettingsBuilder() { + return ((LicenseConfigServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

            Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createLicenseConfig. */ + public UnaryCallSettings.Builder + createLicenseConfigSettings() { + return getStubSettingsBuilder().createLicenseConfigSettings(); + } + + /** Returns the builder for the settings used for calls to updateLicenseConfig. */ + public UnaryCallSettings.Builder + updateLicenseConfigSettings() { + return getStubSettingsBuilder().updateLicenseConfigSettings(); + } + + /** Returns the builder for the settings used for calls to getLicenseConfig. */ + public UnaryCallSettings.Builder + getLicenseConfigSettings() { + return getStubSettingsBuilder().getLicenseConfigSettings(); + } + + /** Returns the builder for the settings used for calls to listLicenseConfigs. */ + public PagedCallSettings.Builder< + ListLicenseConfigsRequest, ListLicenseConfigsResponse, ListLicenseConfigsPagedResponse> + listLicenseConfigsSettings() { + return getStubSettingsBuilder().listLicenseConfigsSettings(); + } + + /** Returns the builder for the settings used for calls to distributeLicenseConfig. */ + public UnaryCallSettings.Builder< + DistributeLicenseConfigRequest, DistributeLicenseConfigResponse> + distributeLicenseConfigSettings() { + return getStubSettingsBuilder().distributeLicenseConfigSettings(); + } + + /** Returns the builder for the settings used for calls to retractLicenseConfig. */ + public UnaryCallSettings.Builder + retractLicenseConfigSettings() { + return getStubSettingsBuilder().retractLicenseConfigSettings(); + } + + @Override + public LicenseConfigServiceSettings build() throws IOException { + return new LicenseConfigServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClient.java index e52431b95011..572b71b9d09c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClient.java @@ -300,6 +300,7 @@ public final OperationFuture provisionProject * .setName(ProjectName.of("[PROJECT]").toString()) * .setAcceptDataUseTerms(true) * .setDataUseTermsVersion("dataUseTermsVersion-1913570450") + * .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) * .build(); * Project response = projectServiceClient.provisionProjectAsync(request).get(); * } @@ -335,6 +336,7 @@ public final OperationFuture provisionProject * .setName(ProjectName.of("[PROJECT]").toString()) * .setAcceptDataUseTerms(true) * .setDataUseTermsVersion("dataUseTermsVersion-1913570450") + * .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) * .build(); * OperationFuture future = * projectServiceClient.provisionProjectOperationCallable().futureCall(request); @@ -370,6 +372,7 @@ public final OperationFuture provisionProject * .setName(ProjectName.of("[PROJECT]").toString()) * .setAcceptDataUseTerms(true) * .setDataUseTermsVersion("dataUseTermsVersion-1913570450") + * .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) * .build(); * ApiFuture future = * projectServiceClient.provisionProjectCallable().futureCall(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java index c784044653d3..090a09825b8a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClient.java @@ -58,12 +58,14 @@ * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") * .toString()) * .setQuery("query107944136") + * .addAllPageCategories(new ArrayList()) * .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) * .setOneBoxPageSize(1988477988) * .addAllDataStoreSpecs(new ArrayList()) + * .setNumResultsPerDataStore(397658288) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") @@ -84,12 +86,19 @@ * .setNaturalLanguageQueryUnderstandingSpec( * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + * .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + * .addAllCrowdingSpecs(new ArrayList()) * .setSession( * SessionName.ofProjectLocationDataStoreSessionName( * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") * .toString()) * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + * .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) * .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + * .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + * .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + * .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + * .setEntity("entity-1298275357") * .build(); * for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) { * // doThingsWith(element); @@ -269,12 +278,14 @@ public SearchServiceStub getStub() { * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") * .toString()) * .setQuery("query107944136") + * .addAllPageCategories(new ArrayList()) * .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) * .setOneBoxPageSize(1988477988) * .addAllDataStoreSpecs(new ArrayList()) + * .setNumResultsPerDataStore(397658288) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") @@ -295,12 +306,19 @@ public SearchServiceStub getStub() { * .setNaturalLanguageQueryUnderstandingSpec( * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + * .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + * .addAllCrowdingSpecs(new ArrayList()) * .setSession( * SessionName.ofProjectLocationDataStoreSessionName( * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") * .toString()) * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + * .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) * .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + * .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + * .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + * .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + * .setEntity("entity-1298275357") * .build(); * for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) { * // doThingsWith(element); @@ -339,12 +357,14 @@ public final SearchPagedResponse search(SearchRequest request) { * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") * .toString()) * .setQuery("query107944136") + * .addAllPageCategories(new ArrayList()) * .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) * .setOneBoxPageSize(1988477988) * .addAllDataStoreSpecs(new ArrayList()) + * .setNumResultsPerDataStore(397658288) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") @@ -365,12 +385,19 @@ public final SearchPagedResponse search(SearchRequest request) { * .setNaturalLanguageQueryUnderstandingSpec( * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + * .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + * .addAllCrowdingSpecs(new ArrayList()) * .setSession( * SessionName.ofProjectLocationDataStoreSessionName( * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") * .toString()) * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + * .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) * .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + * .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + * .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + * .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + * .setEntity("entity-1298275357") * .build(); * ApiFuture future = * searchServiceClient.searchPagedCallable().futureCall(request); @@ -409,12 +436,14 @@ public final UnaryCallable searchPagedCallab * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") * .toString()) * .setQuery("query107944136") + * .addAllPageCategories(new ArrayList()) * .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) * .setOneBoxPageSize(1988477988) * .addAllDataStoreSpecs(new ArrayList()) + * .setNumResultsPerDataStore(397658288) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") @@ -435,12 +464,19 @@ public final UnaryCallable searchPagedCallab * .setNaturalLanguageQueryUnderstandingSpec( * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + * .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + * .addAllCrowdingSpecs(new ArrayList()) * .setSession( * SessionName.ofProjectLocationDataStoreSessionName( * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") * .toString()) * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + * .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) * .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + * .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + * .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + * .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + * .setEntity("entity-1298275357") * .build(); * while (true) { * SearchResponse response = searchServiceClient.searchCallable().call(request); @@ -496,12 +532,14 @@ public final UnaryCallable searchCallable() { * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") * .toString()) * .setQuery("query107944136") + * .addAllPageCategories(new ArrayList()) * .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) * .setOneBoxPageSize(1988477988) * .addAllDataStoreSpecs(new ArrayList()) + * .setNumResultsPerDataStore(397658288) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") @@ -522,12 +560,19 @@ public final UnaryCallable searchCallable() { * .setNaturalLanguageQueryUnderstandingSpec( * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + * .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + * .addAllCrowdingSpecs(new ArrayList()) * .setSession( * SessionName.ofProjectLocationDataStoreSessionName( * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") * .toString()) * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + * .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) * .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + * .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + * .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + * .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + * .setEntity("entity-1298275357") * .build(); * for (SearchResponse.SearchResult element : * searchServiceClient.searchLite(request).iterateAll()) { @@ -578,12 +623,14 @@ public final SearchLitePagedResponse searchLite(SearchRequest request) { * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") * .toString()) * .setQuery("query107944136") + * .addAllPageCategories(new ArrayList()) * .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) * .setOneBoxPageSize(1988477988) * .addAllDataStoreSpecs(new ArrayList()) + * .setNumResultsPerDataStore(397658288) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") @@ -604,12 +651,19 @@ public final SearchLitePagedResponse searchLite(SearchRequest request) { * .setNaturalLanguageQueryUnderstandingSpec( * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + * .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + * .addAllCrowdingSpecs(new ArrayList()) * .setSession( * SessionName.ofProjectLocationDataStoreSessionName( * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") * .toString()) * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + * .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) * .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + * .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + * .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + * .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + * .setEntity("entity-1298275357") * .build(); * ApiFuture future = * searchServiceClient.searchLitePagedCallable().futureCall(request); @@ -659,12 +713,14 @@ public final UnaryCallable searchLitePag * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") * .toString()) * .setQuery("query107944136") + * .addAllPageCategories(new ArrayList()) * .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) * .setOneBoxPageSize(1988477988) * .addAllDataStoreSpecs(new ArrayList()) + * .setNumResultsPerDataStore(397658288) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") @@ -685,12 +741,19 @@ public final UnaryCallable searchLitePag * .setNaturalLanguageQueryUnderstandingSpec( * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + * .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + * .addAllCrowdingSpecs(new ArrayList()) * .setSession( * SessionName.ofProjectLocationDataStoreSessionName( * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") * .toString()) * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + * .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) * .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + * .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + * .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + * .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + * .setEntity("entity-1298275357") * .build(); * while (true) { * SearchResponse response = searchServiceClient.searchLiteCallable().call(request); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClient.java index 7460da874392..97b18c67e372 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClient.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClient.java @@ -28,6 +28,7 @@ import com.google.cloud.discoveryengine.v1beta.stub.ServingConfigServiceStub; import com.google.cloud.discoveryengine.v1beta.stub.ServingConfigServiceStubSettings; import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; @@ -50,10 +51,12 @@ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServingConfigServiceClient servingConfigServiceClient = * ServingConfigServiceClient.create()) { + * DataStoreName parent = + * DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); * ServingConfig servingConfig = ServingConfig.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); + * String servingConfigId = "servingConfigId-831052759"; * ServingConfig response = - * servingConfigServiceClient.updateServingConfig(servingConfig, updateMask); + * servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId); * } * } * @@ -69,6 +72,48 @@ * Method Variants * * + *

            CreateServingConfig + *

            Creates a ServingConfig. + *

            Note: The Google Cloud console works only with the default serving config. Additional ServingConfigs can be created and managed only via the API. + *

            A maximum of 100 [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]s are allowed in an [Engine][google.cloud.discoveryengine.v1beta.Engine], otherwise a RESOURCE_EXHAUSTED error is returned. + * + *

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

            + *
              + *
            • createServingConfig(CreateServingConfigRequest request) + *

            + *

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

            + *
              + *
            • createServingConfig(DataStoreName parent, ServingConfig servingConfig, String servingConfigId) + *

            • createServingConfig(EngineName parent, ServingConfig servingConfig, String servingConfigId) + *

            • createServingConfig(String parent, ServingConfig servingConfig, String servingConfigId) + *

            + *

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

            + *
              + *
            • createServingConfigCallable() + *

            + * + * + * + *

            DeleteServingConfig + *

            Deletes a ServingConfig. + *

            Returns a NOT_FOUND error if the ServingConfig does not exist. + * + *

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

            + *
              + *
            • deleteServingConfig(DeleteServingConfigRequest request) + *

            + *

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

            + *
              + *
            • deleteServingConfig(ServingConfigName name) + *

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

            + *
              + *
            • deleteServingConfigCallable() + *

            + * + * + * *

            UpdateServingConfig *

            Updates a ServingConfig. *

            Returns a NOT_FOUND error if the ServingConfig does not exist. @@ -237,6 +282,376 @@ public ServingConfigServiceStub getStub() { return stub; } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a ServingConfig. + * + *

            Note: The Google Cloud console works only with the default serving config. Additional + * ServingConfigs can be created and managed only via the API. + * + *

            A maximum of 100 [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]s are + * allowed in an [Engine][google.cloud.discoveryengine.v1beta.Engine], otherwise a + * RESOURCE_EXHAUSTED error is returned. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (ServingConfigServiceClient servingConfigServiceClient =
            +   *     ServingConfigServiceClient.create()) {
            +   *   DataStoreName parent =
            +   *       DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]");
            +   *   ServingConfig servingConfig = ServingConfig.newBuilder().build();
            +   *   String servingConfigId = "servingConfigId-831052759";
            +   *   ServingConfig response =
            +   *       servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId);
            +   * }
            +   * }
            + * + * @param parent Required. Full resource name of parent. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @param servingConfig Required. The ServingConfig to create. + * @param servingConfigId Required. The ID to use for the ServingConfig, which will become the + * final component of the ServingConfig's resource name. + *

            This value should be 4-63 characters, and valid characters are + * /[a-zA-Z0-9][a-zA-Z0-9_-]+/. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ServingConfig createServingConfig( + DataStoreName parent, ServingConfig servingConfig, String servingConfigId) { + CreateServingConfigRequest request = + CreateServingConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setServingConfig(servingConfig) + .setServingConfigId(servingConfigId) + .build(); + return createServingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a ServingConfig. + * + *

            Note: The Google Cloud console works only with the default serving config. Additional + * ServingConfigs can be created and managed only via the API. + * + *

            A maximum of 100 [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]s are + * allowed in an [Engine][google.cloud.discoveryengine.v1beta.Engine], otherwise a + * RESOURCE_EXHAUSTED error is returned. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (ServingConfigServiceClient servingConfigServiceClient =
            +   *     ServingConfigServiceClient.create()) {
            +   *   EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]");
            +   *   ServingConfig servingConfig = ServingConfig.newBuilder().build();
            +   *   String servingConfigId = "servingConfigId-831052759";
            +   *   ServingConfig response =
            +   *       servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId);
            +   * }
            +   * }
            + * + * @param parent Required. Full resource name of parent. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @param servingConfig Required. The ServingConfig to create. + * @param servingConfigId Required. The ID to use for the ServingConfig, which will become the + * final component of the ServingConfig's resource name. + *

            This value should be 4-63 characters, and valid characters are + * /[a-zA-Z0-9][a-zA-Z0-9_-]+/. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ServingConfig createServingConfig( + EngineName parent, ServingConfig servingConfig, String servingConfigId) { + CreateServingConfigRequest request = + CreateServingConfigRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setServingConfig(servingConfig) + .setServingConfigId(servingConfigId) + .build(); + return createServingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a ServingConfig. + * + *

            Note: The Google Cloud console works only with the default serving config. Additional + * ServingConfigs can be created and managed only via the API. + * + *

            A maximum of 100 [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]s are + * allowed in an [Engine][google.cloud.discoveryengine.v1beta.Engine], otherwise a + * RESOURCE_EXHAUSTED error is returned. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (ServingConfigServiceClient servingConfigServiceClient =
            +   *     ServingConfigServiceClient.create()) {
            +   *   String parent =
            +   *       DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]")
            +   *           .toString();
            +   *   ServingConfig servingConfig = ServingConfig.newBuilder().build();
            +   *   String servingConfigId = "servingConfigId-831052759";
            +   *   ServingConfig response =
            +   *       servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId);
            +   * }
            +   * }
            + * + * @param parent Required. Full resource name of parent. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @param servingConfig Required. The ServingConfig to create. + * @param servingConfigId Required. The ID to use for the ServingConfig, which will become the + * final component of the ServingConfig's resource name. + *

            This value should be 4-63 characters, and valid characters are + * /[a-zA-Z0-9][a-zA-Z0-9_-]+/. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ServingConfig createServingConfig( + String parent, ServingConfig servingConfig, String servingConfigId) { + CreateServingConfigRequest request = + CreateServingConfigRequest.newBuilder() + .setParent(parent) + .setServingConfig(servingConfig) + .setServingConfigId(servingConfigId) + .build(); + return createServingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a ServingConfig. + * + *

            Note: The Google Cloud console works only with the default serving config. Additional + * ServingConfigs can be created and managed only via the API. + * + *

            A maximum of 100 [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]s are + * allowed in an [Engine][google.cloud.discoveryengine.v1beta.Engine], otherwise a + * RESOURCE_EXHAUSTED error is returned. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (ServingConfigServiceClient servingConfigServiceClient =
            +   *     ServingConfigServiceClient.create()) {
            +   *   CreateServingConfigRequest request =
            +   *       CreateServingConfigRequest.newBuilder()
            +   *           .setParent(
            +   *               DataStoreName.ofProjectLocationDataStoreName(
            +   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
            +   *                   .toString())
            +   *           .setServingConfig(ServingConfig.newBuilder().build())
            +   *           .setServingConfigId("servingConfigId-831052759")
            +   *           .build();
            +   *   ServingConfig response = servingConfigServiceClient.createServingConfig(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 ServingConfig createServingConfig(CreateServingConfigRequest request) { + return createServingConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a ServingConfig. + * + *

            Note: The Google Cloud console works only with the default serving config. Additional + * ServingConfigs can be created and managed only via the API. + * + *

            A maximum of 100 [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]s are + * allowed in an [Engine][google.cloud.discoveryengine.v1beta.Engine], otherwise a + * RESOURCE_EXHAUSTED error is returned. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (ServingConfigServiceClient servingConfigServiceClient =
            +   *     ServingConfigServiceClient.create()) {
            +   *   CreateServingConfigRequest request =
            +   *       CreateServingConfigRequest.newBuilder()
            +   *           .setParent(
            +   *               DataStoreName.ofProjectLocationDataStoreName(
            +   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
            +   *                   .toString())
            +   *           .setServingConfig(ServingConfig.newBuilder().build())
            +   *           .setServingConfigId("servingConfigId-831052759")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       servingConfigServiceClient.createServingConfigCallable().futureCall(request);
            +   *   // Do something.
            +   *   ServingConfig response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + createServingConfigCallable() { + return stub.createServingConfigCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a ServingConfig. + * + *

            Returns a NOT_FOUND error if the ServingConfig does not exist. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (ServingConfigServiceClient servingConfigServiceClient =
            +   *     ServingConfigServiceClient.create()) {
            +   *   ServingConfigName name =
            +   *       ServingConfigName.ofProjectLocationDataStoreServingConfigName(
            +   *           "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]");
            +   *   servingConfigServiceClient.deleteServingConfig(name);
            +   * }
            +   * }
            + * + * @param name Required. The resource name of the ServingConfig to delete. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteServingConfig(ServingConfigName name) { + DeleteServingConfigRequest request = + DeleteServingConfigRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteServingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a ServingConfig. + * + *

            Returns a NOT_FOUND error if the ServingConfig does not exist. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (ServingConfigServiceClient servingConfigServiceClient =
            +   *     ServingConfigServiceClient.create()) {
            +   *   String name =
            +   *       ServingConfigName.ofProjectLocationDataStoreServingConfigName(
            +   *               "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
            +   *           .toString();
            +   *   servingConfigServiceClient.deleteServingConfig(name);
            +   * }
            +   * }
            + * + * @param name Required. The resource name of the ServingConfig to delete. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteServingConfig(String name) { + DeleteServingConfigRequest request = + DeleteServingConfigRequest.newBuilder().setName(name).build(); + deleteServingConfig(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a ServingConfig. + * + *

            Returns a NOT_FOUND error if the ServingConfig does not exist. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (ServingConfigServiceClient servingConfigServiceClient =
            +   *     ServingConfigServiceClient.create()) {
            +   *   DeleteServingConfigRequest request =
            +   *       DeleteServingConfigRequest.newBuilder()
            +   *           .setName(
            +   *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
            +   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
            +   *                   .toString())
            +   *           .build();
            +   *   servingConfigServiceClient.deleteServingConfig(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 deleteServingConfig(DeleteServingConfigRequest request) { + deleteServingConfigCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a ServingConfig. + * + *

            Returns a NOT_FOUND error if the ServingConfig does not exist. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (ServingConfigServiceClient servingConfigServiceClient =
            +   *     ServingConfigServiceClient.create()) {
            +   *   DeleteServingConfigRequest request =
            +   *       DeleteServingConfigRequest.newBuilder()
            +   *           .setName(
            +   *               ServingConfigName.ofProjectLocationDataStoreServingConfigName(
            +   *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]")
            +   *                   .toString())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       servingConfigServiceClient.deleteServingConfigCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable deleteServingConfigCallable() { + return stub.deleteServingConfigCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a ServingConfig. diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceSettings.java index fcbf49279ee6..f10b24c3fed6 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceSettings.java @@ -31,6 +31,7 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.discoveryengine.v1beta.stub.ServingConfigServiceStubSettings; +import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -53,7 +54,7 @@ * *

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

            {@code
              * // This snippet has been automatically generated and should be regarded as a code template only.
            @@ -64,10 +65,10 @@
              * ServingConfigServiceSettings.Builder servingConfigServiceSettingsBuilder =
              *     ServingConfigServiceSettings.newBuilder();
              * servingConfigServiceSettingsBuilder
            - *     .updateServingConfigSettings()
            + *     .createServingConfigSettings()
              *     .setRetrySettings(
              *         servingConfigServiceSettingsBuilder
            - *             .updateServingConfigSettings()
            + *             .createServingConfigSettings()
              *             .getRetrySettings()
              *             .toBuilder()
              *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
            @@ -91,6 +92,17 @@
             @Generated("by gapic-generator-java")
             public class ServingConfigServiceSettings extends ClientSettings {
             
            +  /** Returns the object with the settings used for calls to createServingConfig. */
            +  public UnaryCallSettings
            +      createServingConfigSettings() {
            +    return ((ServingConfigServiceStubSettings) getStubSettings()).createServingConfigSettings();
            +  }
            +
            +  /** Returns the object with the settings used for calls to deleteServingConfig. */
            +  public UnaryCallSettings deleteServingConfigSettings() {
            +    return ((ServingConfigServiceStubSettings) getStubSettings()).deleteServingConfigSettings();
            +  }
            +
               /** Returns the object with the settings used for calls to updateServingConfig. */
               public UnaryCallSettings
                   updateServingConfigSettings() {
            @@ -222,6 +234,18 @@ public Builder applyToAllUnaryMethods(
                   return this;
                 }
             
            +    /** Returns the builder for the settings used for calls to createServingConfig. */
            +    public UnaryCallSettings.Builder
            +        createServingConfigSettings() {
            +      return getStubSettingsBuilder().createServingConfigSettings();
            +    }
            +
            +    /** Returns the builder for the settings used for calls to deleteServingConfig. */
            +    public UnaryCallSettings.Builder
            +        deleteServingConfigSettings() {
            +      return getStubSettingsBuilder().deleteServingConfigSettings();
            +    }
            +
                 /** Returns the builder for the settings used for calls to updateServingConfig. */
                 public UnaryCallSettings.Builder
                     updateServingConfigSettings() {
            diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceClient.java
            index 29115aeee095..525d49c9ba03 100644
            --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceClient.java
            +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceClient.java
            @@ -365,6 +365,7 @@ public final Session createSession(String parent, Session session) {
                *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
                *                   .toString())
                *           .setSession(Session.newBuilder().build())
            +   *           .setSessionId("sessionId607796817")
                *           .build();
                *   Session response = sessionServiceClient.createSession(request);
                * }
            @@ -400,6 +401,7 @@ public final Session createSession(CreateSessionRequest request) {
                *                       "[PROJECT]", "[LOCATION]", "[DATA_STORE]")
                *                   .toString())
                *           .setSession(Session.newBuilder().build())
            +   *           .setSessionId("sessionId607796817")
                *           .build();
                *   ApiFuture future = sessionServiceClient.createSessionCallable().futureCall(request);
                *   // Do something.
            diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceClient.java
            new file mode 100644
            index 000000000000..fec207703e9d
            --- /dev/null
            +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceClient.java
            @@ -0,0 +1,763 @@
            +/*
            + * Copyright 2026 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *      https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF 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;
            +
            +import com.google.api.core.ApiFuture;
            +import com.google.api.core.ApiFutures;
            +import com.google.api.core.BetaApi;
            +import com.google.api.gax.core.BackgroundResource;
            +import com.google.api.gax.httpjson.longrunning.OperationsClient;
            +import com.google.api.gax.longrunning.OperationFuture;
            +import com.google.api.gax.paging.AbstractFixedSizeCollection;
            +import com.google.api.gax.paging.AbstractPage;
            +import com.google.api.gax.paging.AbstractPagedListResponse;
            +import com.google.api.gax.rpc.OperationCallable;
            +import com.google.api.gax.rpc.PageContext;
            +import com.google.api.gax.rpc.UnaryCallable;
            +import com.google.cloud.discoveryengine.v1beta.stub.UserLicenseServiceStub;
            +import com.google.cloud.discoveryengine.v1beta.stub.UserLicenseServiceStubSettings;
            +import com.google.common.util.concurrent.MoreExecutors;
            +import com.google.longrunning.Operation;
            +import java.io.IOException;
            +import java.util.List;
            +import java.util.concurrent.TimeUnit;
            +import javax.annotation.Generated;
            +
            +// AUTO-GENERATED DOCUMENTATION AND CLASS.
            +/**
            + * Service Description: Service for managing User Licenses.
            + *
            + * 

            This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
            + *   UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]");
            + *   ListLicenseConfigsUsageStatsResponse response =
            + *       userLicenseServiceClient.listLicenseConfigsUsageStats(parent);
            + * }
            + * }
            + * + *

            Note: close() needs to be called on the UserLicenseServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
            Methods
            MethodDescriptionMethod Variants

            ListUserLicenses

            Lists the User Licenses.

            + *

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

            + *
              + *
            • listUserLicenses(ListUserLicensesRequest request) + *

            + *

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

            + *
              + *
            • listUserLicenses(UserStoreName parent) + *

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

            + *
              + *
            • listUserLicensesPagedCallable() + *

            • listUserLicensesCallable() + *

            + *

            ListLicenseConfigsUsageStats

            Lists all the [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats]s associated with the project.

            + *

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

            + *
              + *
            • listLicenseConfigsUsageStats(ListLicenseConfigsUsageStatsRequest request) + *

            + *

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

            + *
              + *
            • listLicenseConfigsUsageStats(UserStoreName parent) + *

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

            + *
              + *
            • listLicenseConfigsUsageStatsCallable() + *

            + *

            BatchUpdateUserLicenses

            Updates the User License. This method is used for batch assign/unassign licenses to users.

            + *

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

            + *
              + *
            • batchUpdateUserLicensesAsync(BatchUpdateUserLicensesRequest request) + *

            + *

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

            + *
              + *
            • batchUpdateUserLicensesOperationCallable() + *

            • batchUpdateUserLicensesCallable() + *

            + *
            + * + *

            See the individual methods for example code. + * + *

            Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

            This class can be customized by passing in a custom instance of UserLicenseServiceSettings to + * create(). For example: + * + *

            To customize credentials: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * UserLicenseServiceSettings userLicenseServiceSettings =
            + *     UserLicenseServiceSettings.newBuilder()
            + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
            + *         .build();
            + * UserLicenseServiceClient userLicenseServiceClient =
            + *     UserLicenseServiceClient.create(userLicenseServiceSettings);
            + * }
            + * + *

            To customize the endpoint: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * UserLicenseServiceSettings userLicenseServiceSettings =
            + *     UserLicenseServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
            + * UserLicenseServiceClient userLicenseServiceClient =
            + *     UserLicenseServiceClient.create(userLicenseServiceSettings);
            + * }
            + * + *

            To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * UserLicenseServiceSettings userLicenseServiceSettings =
            + *     UserLicenseServiceSettings.newHttpJsonBuilder().build();
            + * UserLicenseServiceClient userLicenseServiceClient =
            + *     UserLicenseServiceClient.create(userLicenseServiceSettings);
            + * }
            + * + *

            Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class UserLicenseServiceClient implements BackgroundResource { + private final UserLicenseServiceSettings settings; + private final UserLicenseServiceStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of UserLicenseServiceClient with default settings. */ + public static final UserLicenseServiceClient create() throws IOException { + return create(UserLicenseServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of UserLicenseServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final UserLicenseServiceClient create(UserLicenseServiceSettings settings) + throws IOException { + return new UserLicenseServiceClient(settings); + } + + /** + * Constructs an instance of UserLicenseServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(UserLicenseServiceSettings). + */ + public static final UserLicenseServiceClient create(UserLicenseServiceStub stub) { + return new UserLicenseServiceClient(stub); + } + + /** + * Constructs an instance of UserLicenseServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected UserLicenseServiceClient(UserLicenseServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((UserLicenseServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected UserLicenseServiceClient(UserLicenseServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final UserLicenseServiceSettings getSettings() { + return settings; + } + + public UserLicenseServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the User Licenses. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
            +   *   UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]");
            +   *   for (UserLicense element : userLicenseServiceClient.listUserLicenses(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent [UserStore][google.cloud.discoveryengine.v1beta.UserStore] + * resource name, format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUserLicensesPagedResponse listUserLicenses(UserStoreName parent) { + ListUserLicensesRequest request = + ListUserLicensesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listUserLicenses(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the User Licenses. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
            +   *   String parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString();
            +   *   for (UserLicense element : userLicenseServiceClient.listUserLicenses(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent [UserStore][google.cloud.discoveryengine.v1beta.UserStore] + * resource name, format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUserLicensesPagedResponse listUserLicenses(String parent) { + ListUserLicensesRequest request = + ListUserLicensesRequest.newBuilder().setParent(parent).build(); + return listUserLicenses(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the User Licenses. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
            +   *   ListUserLicensesRequest request =
            +   *       ListUserLicensesRequest.newBuilder()
            +   *           .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .build();
            +   *   for (UserLicense element : userLicenseServiceClient.listUserLicenses(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 ListUserLicensesPagedResponse listUserLicenses(ListUserLicensesRequest request) { + return listUserLicensesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the User Licenses. + * + *

            Sample code: + * + *

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
            +   *   ListUserLicensesRequest request =
            +   *       ListUserLicensesRequest.newBuilder()
            +   *           .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .build();
            +   *   while (true) {
            +   *     ListUserLicensesResponse response =
            +   *         userLicenseServiceClient.listUserLicensesCallable().call(request);
            +   *     for (UserLicense element : response.getUserLicensesList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listUserLicensesCallable() { + return stub.listUserLicensesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the + * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats]s + * associated with 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 (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
            +   *   UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]");
            +   *   ListLicenseConfigsUsageStatsResponse response =
            +   *       userLicenseServiceClient.listLicenseConfigsUsageStats(parent);
            +   * }
            +   * }
            + * + * @param parent Required. The parent branch resource name, such as + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLicenseConfigsUsageStatsResponse listLicenseConfigsUsageStats( + UserStoreName parent) { + ListLicenseConfigsUsageStatsRequest request = + ListLicenseConfigsUsageStatsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listLicenseConfigsUsageStats(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the + * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats]s + * associated with 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 (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
            +   *   String parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString();
            +   *   ListLicenseConfigsUsageStatsResponse response =
            +   *       userLicenseServiceClient.listLicenseConfigsUsageStats(parent);
            +   * }
            +   * }
            + * + * @param parent Required. The parent branch resource name, such as + * `projects/{project}/locations/{location}/userStores/{user_store_id}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLicenseConfigsUsageStatsResponse listLicenseConfigsUsageStats(String parent) { + ListLicenseConfigsUsageStatsRequest request = + ListLicenseConfigsUsageStatsRequest.newBuilder().setParent(parent).build(); + return listLicenseConfigsUsageStats(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the + * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats]s + * associated with 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 (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
            +   *   ListLicenseConfigsUsageStatsRequest request =
            +   *       ListLicenseConfigsUsageStatsRequest.newBuilder()
            +   *           .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
            +   *           .build();
            +   *   ListLicenseConfigsUsageStatsResponse response =
            +   *       userLicenseServiceClient.listLicenseConfigsUsageStats(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 ListLicenseConfigsUsageStatsResponse listLicenseConfigsUsageStats( + ListLicenseConfigsUsageStatsRequest request) { + return listLicenseConfigsUsageStatsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all the + * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats]s + * associated with 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 (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
            +   *   ListLicenseConfigsUsageStatsRequest request =
            +   *       ListLicenseConfigsUsageStatsRequest.newBuilder()
            +   *           .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       userLicenseServiceClient.listLicenseConfigsUsageStatsCallable().futureCall(request);
            +   *   // Do something.
            +   *   ListLicenseConfigsUsageStatsResponse response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable< + ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse> + listLicenseConfigsUsageStatsCallable() { + return stub.listLicenseConfigsUsageStatsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the User License. This method is used for batch assign/unassign licenses to users. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
            +   *   BatchUpdateUserLicensesRequest request =
            +   *       BatchUpdateUserLicensesRequest.newBuilder()
            +   *           .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
            +   *           .setDeleteUnassignedUserLicenses(true)
            +   *           .build();
            +   *   BatchUpdateUserLicensesResponse response =
            +   *       userLicenseServiceClient.batchUpdateUserLicensesAsync(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 + batchUpdateUserLicensesAsync(BatchUpdateUserLicensesRequest request) { + return batchUpdateUserLicensesOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the User License. This method is used for batch assign/unassign licenses to users. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
            +   *   BatchUpdateUserLicensesRequest request =
            +   *       BatchUpdateUserLicensesRequest.newBuilder()
            +   *           .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
            +   *           .setDeleteUnassignedUserLicenses(true)
            +   *           .build();
            +   *   OperationFuture future =
            +   *       userLicenseServiceClient.batchUpdateUserLicensesOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   BatchUpdateUserLicensesResponse response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable< + BatchUpdateUserLicensesRequest, + BatchUpdateUserLicensesResponse, + BatchUpdateUserLicensesMetadata> + batchUpdateUserLicensesOperationCallable() { + return stub.batchUpdateUserLicensesOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the User License. This method is used for batch assign/unassign licenses to users. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
            +   *   BatchUpdateUserLicensesRequest request =
            +   *       BatchUpdateUserLicensesRequest.newBuilder()
            +   *           .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
            +   *           .setDeleteUnassignedUserLicenses(true)
            +   *           .build();
            +   *   ApiFuture future =
            +   *       userLicenseServiceClient.batchUpdateUserLicensesCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + batchUpdateUserLicensesCallable() { + return stub.batchUpdateUserLicensesCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListUserLicensesPagedResponse + extends AbstractPagedListResponse< + ListUserLicensesRequest, + ListUserLicensesResponse, + UserLicense, + ListUserLicensesPage, + ListUserLicensesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListUserLicensesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListUserLicensesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListUserLicensesPagedResponse(ListUserLicensesPage page) { + super(page, ListUserLicensesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListUserLicensesPage + extends AbstractPage< + ListUserLicensesRequest, ListUserLicensesResponse, UserLicense, ListUserLicensesPage> { + + private ListUserLicensesPage( + PageContext context, + ListUserLicensesResponse response) { + super(context, response); + } + + private static ListUserLicensesPage createEmptyPage() { + return new ListUserLicensesPage(null, null); + } + + @Override + protected ListUserLicensesPage createPage( + PageContext context, + ListUserLicensesResponse response) { + return new ListUserLicensesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListUserLicensesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListUserLicensesRequest, + ListUserLicensesResponse, + UserLicense, + ListUserLicensesPage, + ListUserLicensesFixedSizeCollection> { + + private ListUserLicensesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListUserLicensesFixedSizeCollection createEmptyCollection() { + return new ListUserLicensesFixedSizeCollection(null, 0); + } + + @Override + protected ListUserLicensesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListUserLicensesFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceSettings.java new file mode 100644 index 000000000000..bc7aa19a612e --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceSettings.java @@ -0,0 +1,299 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient.ListUserLicensesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +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.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1beta.stub.UserLicenseServiceStubSettings; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link UserLicenseServiceClient}. + * + *

            The default instance has everything set to sensible defaults: + * + *

              + *
            • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
            • Credentials are acquired automatically through Application Default Credentials. + *
            • Retries are configured for idempotent methods but not for non-idempotent methods. + *
            + * + *

            The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * UserLicenseServiceSettings.Builder userLicenseServiceSettingsBuilder =
            + *     UserLicenseServiceSettings.newBuilder();
            + * userLicenseServiceSettingsBuilder
            + *     .listLicenseConfigsUsageStatsSettings()
            + *     .setRetrySettings(
            + *         userLicenseServiceSettingsBuilder
            + *             .listLicenseConfigsUsageStatsSettings()
            + *             .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());
            + * UserLicenseServiceSettings userLicenseServiceSettings =
            + *     userLicenseServiceSettingsBuilder.build();
            + * }
            + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

            To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for batchUpdateUserLicenses: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * UserLicenseServiceSettings.Builder userLicenseServiceSettingsBuilder =
            + *     UserLicenseServiceSettings.newBuilder();
            + * TimedRetryAlgorithm timedRetryAlgorithm =
            + *     OperationalTimedPollAlgorithm.create(
            + *         RetrySettings.newBuilder()
            + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
            + *             .setRetryDelayMultiplier(1.5)
            + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
            + *             .setTotalTimeoutDuration(Duration.ofHours(24))
            + *             .build());
            + * userLicenseServiceSettingsBuilder
            + *     .createClusterOperationSettings()
            + *     .setPollingAlgorithm(timedRetryAlgorithm)
            + *     .build();
            + * }
            + */ +@BetaApi +@Generated("by gapic-generator-java") +public class UserLicenseServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listUserLicenses. */ + public PagedCallSettings< + ListUserLicensesRequest, ListUserLicensesResponse, ListUserLicensesPagedResponse> + listUserLicensesSettings() { + return ((UserLicenseServiceStubSettings) getStubSettings()).listUserLicensesSettings(); + } + + /** Returns the object with the settings used for calls to listLicenseConfigsUsageStats. */ + public UnaryCallSettings< + ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse> + listLicenseConfigsUsageStatsSettings() { + return ((UserLicenseServiceStubSettings) getStubSettings()) + .listLicenseConfigsUsageStatsSettings(); + } + + /** Returns the object with the settings used for calls to batchUpdateUserLicenses. */ + public UnaryCallSettings + batchUpdateUserLicensesSettings() { + return ((UserLicenseServiceStubSettings) getStubSettings()).batchUpdateUserLicensesSettings(); + } + + /** Returns the object with the settings used for calls to batchUpdateUserLicenses. */ + public OperationCallSettings< + BatchUpdateUserLicensesRequest, + BatchUpdateUserLicensesResponse, + BatchUpdateUserLicensesMetadata> + batchUpdateUserLicensesOperationSettings() { + return ((UserLicenseServiceStubSettings) getStubSettings()) + .batchUpdateUserLicensesOperationSettings(); + } + + public static final UserLicenseServiceSettings create(UserLicenseServiceStubSettings stub) + throws IOException { + return new UserLicenseServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return UserLicenseServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return UserLicenseServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return UserLicenseServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return UserLicenseServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return UserLicenseServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return UserLicenseServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return UserLicenseServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return UserLicenseServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected UserLicenseServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for UserLicenseServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(UserLicenseServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(UserLicenseServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(UserLicenseServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(UserLicenseServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(UserLicenseServiceStubSettings.newHttpJsonBuilder()); + } + + public UserLicenseServiceStubSettings.Builder getStubSettingsBuilder() { + return ((UserLicenseServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

            Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listUserLicenses. */ + public PagedCallSettings.Builder< + ListUserLicensesRequest, ListUserLicensesResponse, ListUserLicensesPagedResponse> + listUserLicensesSettings() { + return getStubSettingsBuilder().listUserLicensesSettings(); + } + + /** Returns the builder for the settings used for calls to listLicenseConfigsUsageStats. */ + public UnaryCallSettings.Builder< + ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse> + listLicenseConfigsUsageStatsSettings() { + return getStubSettingsBuilder().listLicenseConfigsUsageStatsSettings(); + } + + /** Returns the builder for the settings used for calls to batchUpdateUserLicenses. */ + public UnaryCallSettings.Builder + batchUpdateUserLicensesSettings() { + return getStubSettingsBuilder().batchUpdateUserLicensesSettings(); + } + + /** Returns the builder for the settings used for calls to batchUpdateUserLicenses. */ + public OperationCallSettings.Builder< + BatchUpdateUserLicensesRequest, + BatchUpdateUserLicensesResponse, + BatchUpdateUserLicensesMetadata> + batchUpdateUserLicensesOperationSettings() { + return getStubSettingsBuilder().batchUpdateUserLicensesOperationSettings(); + } + + @Override + public UserLicenseServiceSettings build() throws IOException { + return new UserLicenseServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceClient.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceClient.java new file mode 100644 index 000000000000..3c4627815cbc --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceClient.java @@ -0,0 +1,436 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.stub.UserStoreServiceStub; +import com.google.cloud.discoveryengine.v1beta.stub.UserStoreServiceStubSettings; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing User Stores. + * + *

            This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
            + *   UserStoreName name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]");
            + *   UserStore response = userStoreServiceClient.getUserStore(name);
            + * }
            + * }
            + * + *

            Note: close() needs to be called on the UserStoreServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
            Methods
            MethodDescriptionMethod Variants

            GetUserStore

            Gets the User Store.

            + *

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

            + *
              + *
            • getUserStore(GetUserStoreRequest request) + *

            + *

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

            + *
              + *
            • getUserStore(UserStoreName name) + *

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

            + *
              + *
            • getUserStoreCallable() + *

            + *

            UpdateUserStore

            Updates the User Store.

            + *

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

            + *
              + *
            • updateUserStore(UpdateUserStoreRequest request) + *

            + *

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

            + *
              + *
            • updateUserStore(UserStore userStore, 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.

            + *
              + *
            • updateUserStoreCallable() + *

            + *
            + * + *

            See the individual methods for example code. + * + *

            Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

            This class can be customized by passing in a custom instance of UserStoreServiceSettings to + * create(). For example: + * + *

            To customize credentials: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * UserStoreServiceSettings userStoreServiceSettings =
            + *     UserStoreServiceSettings.newBuilder()
            + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
            + *         .build();
            + * UserStoreServiceClient userStoreServiceClient =
            + *     UserStoreServiceClient.create(userStoreServiceSettings);
            + * }
            + * + *

            To customize the endpoint: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * UserStoreServiceSettings userStoreServiceSettings =
            + *     UserStoreServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
            + * UserStoreServiceClient userStoreServiceClient =
            + *     UserStoreServiceClient.create(userStoreServiceSettings);
            + * }
            + * + *

            To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * UserStoreServiceSettings userStoreServiceSettings =
            + *     UserStoreServiceSettings.newHttpJsonBuilder().build();
            + * UserStoreServiceClient userStoreServiceClient =
            + *     UserStoreServiceClient.create(userStoreServiceSettings);
            + * }
            + * + *

            Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class UserStoreServiceClient implements BackgroundResource { + private final UserStoreServiceSettings settings; + private final UserStoreServiceStub stub; + + /** Constructs an instance of UserStoreServiceClient with default settings. */ + public static final UserStoreServiceClient create() throws IOException { + return create(UserStoreServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of UserStoreServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final UserStoreServiceClient create(UserStoreServiceSettings settings) + throws IOException { + return new UserStoreServiceClient(settings); + } + + /** + * Constructs an instance of UserStoreServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(UserStoreServiceSettings). + */ + public static final UserStoreServiceClient create(UserStoreServiceStub stub) { + return new UserStoreServiceClient(stub); + } + + /** + * Constructs an instance of UserStoreServiceClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected UserStoreServiceClient(UserStoreServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((UserStoreServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected UserStoreServiceClient(UserStoreServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final UserStoreServiceSettings getSettings() { + return settings; + } + + public UserStoreServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the User Store. + * + *

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
            +   *   GetUserStoreRequest request =
            +   *       GetUserStoreRequest.newBuilder()
            +   *           .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString())
            +   *           .build();
            +   *   UserStore response = userStoreServiceClient.getUserStore(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 UserStore getUserStore(GetUserStoreRequest request) { + return getUserStoreCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the User Store. + * + *

            Sample code: + * + *

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
            +   *   UserStore userStore = UserStore.newBuilder().build();
            +   *   FieldMask updateMask = FieldMask.newBuilder().build();
            +   *   UserStore response = userStoreServiceClient.updateUserStore(userStore, updateMask);
            +   * }
            +   * }
            + * + * @param userStore Required. The User Store to update. Format: + * `projects/{project}/locations/{location}/userStores/{user_store_id}` + * @param updateMask Optional. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UserStore updateUserStore(UserStore userStore, FieldMask updateMask) { + UpdateUserStoreRequest request = + UpdateUserStoreRequest.newBuilder() + .setUserStore(userStore) + .setUpdateMask(updateMask) + .build(); + return updateUserStore(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the User Store. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
            +   *   UpdateUserStoreRequest request =
            +   *       UpdateUserStoreRequest.newBuilder()
            +   *           .setUserStore(UserStore.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   UserStore response = userStoreServiceClient.updateUserStore(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 UserStore updateUserStore(UpdateUserStoreRequest request) { + return updateUserStoreCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the User Store. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
            +   *   UpdateUserStoreRequest request =
            +   *       UpdateUserStoreRequest.newBuilder()
            +   *           .setUserStore(UserStore.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       userStoreServiceClient.updateUserStoreCallable().futureCall(request);
            +   *   // Do something.
            +   *   UserStore response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable updateUserStoreCallable() { + return stub.updateUserStoreCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceSettings.java new file mode 100644 index 000000000000..0a21ea2a2f0a --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceSettings.java @@ -0,0 +1,227 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +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.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.discoveryengine.v1beta.stub.UserStoreServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link UserStoreServiceClient}. + * + *

            The default instance has everything set to sensible defaults: + * + *

              + *
            • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
            • Credentials are acquired automatically through Application Default Credentials. + *
            • Retries are configured for idempotent methods but not for non-idempotent methods. + *
            + * + *

            The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * UserStoreServiceSettings.Builder userStoreServiceSettingsBuilder =
            + *     UserStoreServiceSettings.newBuilder();
            + * userStoreServiceSettingsBuilder
            + *     .getUserStoreSettings()
            + *     .setRetrySettings(
            + *         userStoreServiceSettingsBuilder
            + *             .getUserStoreSettings()
            + *             .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());
            + * UserStoreServiceSettings userStoreServiceSettings = userStoreServiceSettingsBuilder.build();
            + * }
            + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class UserStoreServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getUserStore. */ + public UnaryCallSettings getUserStoreSettings() { + return ((UserStoreServiceStubSettings) getStubSettings()).getUserStoreSettings(); + } + + /** Returns the object with the settings used for calls to updateUserStore. */ + public UnaryCallSettings updateUserStoreSettings() { + return ((UserStoreServiceStubSettings) getStubSettings()).updateUserStoreSettings(); + } + + public static final UserStoreServiceSettings create(UserStoreServiceStubSettings stub) + throws IOException { + return new UserStoreServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return UserStoreServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return UserStoreServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return UserStoreServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return UserStoreServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return UserStoreServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return UserStoreServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return UserStoreServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return UserStoreServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected UserStoreServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for UserStoreServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(UserStoreServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(UserStoreServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(UserStoreServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(UserStoreServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(UserStoreServiceStubSettings.newHttpJsonBuilder()); + } + + public UserStoreServiceStubSettings.Builder getStubSettingsBuilder() { + return ((UserStoreServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

            Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getUserStore. */ + public UnaryCallSettings.Builder getUserStoreSettings() { + return getStubSettingsBuilder().getUserStoreSettings(); + } + + /** Returns the builder for the settings used for calls to updateUserStore. */ + public UnaryCallSettings.Builder updateUserStoreSettings() { + return getStubSettingsBuilder().updateUserStoreSettings(); + } + + @Override + public UserStoreServiceSettings build() throws IOException { + return new UserStoreServiceSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/gapic_metadata.json b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/gapic_metadata.json index 4e29abd47958..fcbca1f2ad4b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/gapic_metadata.json +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/gapic_metadata.json @@ -5,6 +5,69 @@ "protoPackage": "google.cloud.discoveryengine.v1beta", "libraryPackage": "com.google.cloud.discoveryengine.v1beta", "services": { + "AclConfigService": { + "clients": { + "grpc": { + "libraryClient": "AclConfigServiceClient", + "rpcs": { + "GetAclConfig": { + "methods": ["getAclConfig", "getAclConfig", "getAclConfig", "getAclConfigCallable"] + }, + "UpdateAclConfig": { + "methods": ["updateAclConfig", "updateAclConfigCallable"] + } + } + } + } + }, + "AssistantService": { + "clients": { + "grpc": { + "libraryClient": "AssistantServiceClient", + "rpcs": { + "CreateAssistant": { + "methods": ["createAssistant", "createAssistantCallable"] + }, + "DeleteAssistant": { + "methods": ["deleteAssistant", "deleteAssistant", "deleteAssistant", "deleteAssistantCallable"] + }, + "GetAssistant": { + "methods": ["getAssistant", "getAssistant", "getAssistant", "getAssistantCallable"] + }, + "ListAssistants": { + "methods": ["listAssistants", "listAssistants", "listAssistants", "listAssistantsPagedCallable", "listAssistantsCallable"] + }, + "StreamAssist": { + "methods": ["streamAssistCallable"] + }, + "UpdateAssistant": { + "methods": ["updateAssistant", "updateAssistant", "updateAssistantCallable"] + } + } + } + } + }, + "CmekConfigService": { + "clients": { + "grpc": { + "libraryClient": "CmekConfigServiceClient", + "rpcs": { + "DeleteCmekConfig": { + "methods": ["deleteCmekConfigAsync", "deleteCmekConfigAsync", "deleteCmekConfigAsync", "deleteCmekConfigOperationCallable", "deleteCmekConfigCallable"] + }, + "GetCmekConfig": { + "methods": ["getCmekConfig", "getCmekConfig", "getCmekConfig", "getCmekConfigCallable"] + }, + "ListCmekConfigs": { + "methods": ["listCmekConfigs", "listCmekConfigs", "listCmekConfigs", "listCmekConfigsCallable"] + }, + "UpdateCmekConfig": { + "methods": ["updateCmekConfigAsync", "updateCmekConfigAsync", "updateCmekConfigOperationCallable", "updateCmekConfigCallable"] + } + } + } + } + }, "CompletionService": { "clients": { "grpc": { @@ -27,6 +90,9 @@ }, "PurgeSuggestionDenyListEntries": { "methods": ["purgeSuggestionDenyListEntriesAsync", "purgeSuggestionDenyListEntriesOperationCallable", "purgeSuggestionDenyListEntriesCallable"] + }, + "RemoveSuggestion": { + "methods": ["removeSuggestion", "removeSuggestionCallable"] } } } @@ -94,6 +160,9 @@ "ListSessions": { "methods": ["listSessions", "listSessions", "listSessions", "listSessionsPagedCallable", "listSessionsCallable"] }, + "StreamAnswerQuery": { + "methods": ["streamAnswerQueryCallable"] + }, "UpdateConversation": { "methods": ["updateConversation", "updateConversation", "updateConversationCallable"] }, @@ -175,6 +244,9 @@ "GetEngine": { "methods": ["getEngine", "getEngine", "getEngine", "getEngineCallable"] }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] + }, "ListEngines": { "methods": ["listEngines", "listEngines", "listEngines", "listEnginesPagedCallable", "listEnginesCallable"] }, @@ -184,6 +256,9 @@ "ResumeEngine": { "methods": ["resumeEngine", "resumeEngine", "resumeEngine", "resumeEngineCallable"] }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] + }, "TuneEngine": { "methods": ["tuneEngineAsync", "tuneEngineAsync", "tuneEngineAsync", "tuneEngineOperationCallable", "tuneEngineCallable"] }, @@ -233,6 +308,63 @@ } } }, + "IdentityMappingStoreService": { + "clients": { + "grpc": { + "libraryClient": "IdentityMappingStoreServiceClient", + "rpcs": { + "CreateIdentityMappingStore": { + "methods": ["createIdentityMappingStore", "createIdentityMappingStore", "createIdentityMappingStore", "createIdentityMappingStoreCallable"] + }, + "DeleteIdentityMappingStore": { + "methods": ["deleteIdentityMappingStoreAsync", "deleteIdentityMappingStoreAsync", "deleteIdentityMappingStoreAsync", "deleteIdentityMappingStoreOperationCallable", "deleteIdentityMappingStoreCallable"] + }, + "GetIdentityMappingStore": { + "methods": ["getIdentityMappingStore", "getIdentityMappingStore", "getIdentityMappingStore", "getIdentityMappingStoreCallable"] + }, + "ImportIdentityMappings": { + "methods": ["importIdentityMappingsAsync", "importIdentityMappingsOperationCallable", "importIdentityMappingsCallable"] + }, + "ListIdentityMappingStores": { + "methods": ["listIdentityMappingStores", "listIdentityMappingStores", "listIdentityMappingStores", "listIdentityMappingStoresPagedCallable", "listIdentityMappingStoresCallable"] + }, + "ListIdentityMappings": { + "methods": ["listIdentityMappings", "listIdentityMappingsPagedCallable", "listIdentityMappingsCallable"] + }, + "PurgeIdentityMappings": { + "methods": ["purgeIdentityMappingsAsync", "purgeIdentityMappingsOperationCallable", "purgeIdentityMappingsCallable"] + } + } + } + } + }, + "LicenseConfigService": { + "clients": { + "grpc": { + "libraryClient": "LicenseConfigServiceClient", + "rpcs": { + "CreateLicenseConfig": { + "methods": ["createLicenseConfig", "createLicenseConfig", "createLicenseConfig", "createLicenseConfigCallable"] + }, + "DistributeLicenseConfig": { + "methods": ["distributeLicenseConfig", "distributeLicenseConfig", "distributeLicenseConfig", "distributeLicenseConfigCallable"] + }, + "GetLicenseConfig": { + "methods": ["getLicenseConfig", "getLicenseConfig", "getLicenseConfig", "getLicenseConfigCallable"] + }, + "ListLicenseConfigs": { + "methods": ["listLicenseConfigs", "listLicenseConfigs", "listLicenseConfigs", "listLicenseConfigsPagedCallable", "listLicenseConfigsCallable"] + }, + "RetractLicenseConfig": { + "methods": ["retractLicenseConfig", "retractLicenseConfig", "retractLicenseConfig", "retractLicenseConfig", "retractLicenseConfig", "retractLicenseConfigCallable"] + }, + "UpdateLicenseConfig": { + "methods": ["updateLicenseConfig", "updateLicenseConfig", "updateLicenseConfigCallable"] + } + } + } + } + }, "ProjectService": { "clients": { "grpc": { @@ -379,6 +511,12 @@ "grpc": { "libraryClient": "ServingConfigServiceClient", "rpcs": { + "CreateServingConfig": { + "methods": ["createServingConfig", "createServingConfig", "createServingConfig", "createServingConfig", "createServingConfigCallable"] + }, + "DeleteServingConfig": { + "methods": ["deleteServingConfig", "deleteServingConfig", "deleteServingConfig", "deleteServingConfigCallable"] + }, "GetServingConfig": { "methods": ["getServingConfig", "getServingConfig", "getServingConfig", "getServingConfigCallable"] }, @@ -490,6 +628,39 @@ } } } + }, + "UserLicenseService": { + "clients": { + "grpc": { + "libraryClient": "UserLicenseServiceClient", + "rpcs": { + "BatchUpdateUserLicenses": { + "methods": ["batchUpdateUserLicensesAsync", "batchUpdateUserLicensesOperationCallable", "batchUpdateUserLicensesCallable"] + }, + "ListLicenseConfigsUsageStats": { + "methods": ["listLicenseConfigsUsageStats", "listLicenseConfigsUsageStats", "listLicenseConfigsUsageStats", "listLicenseConfigsUsageStatsCallable"] + }, + "ListUserLicenses": { + "methods": ["listUserLicenses", "listUserLicenses", "listUserLicenses", "listUserLicensesPagedCallable", "listUserLicensesCallable"] + } + } + } + } + }, + "UserStoreService": { + "clients": { + "grpc": { + "libraryClient": "UserStoreServiceClient", + "rpcs": { + "GetUserStore": { + "methods": ["getUserStore", "getUserStore", "getUserStore", "getUserStoreCallable"] + }, + "UpdateUserStore": { + "methods": ["updateUserStore", "updateUserStore", "updateUserStoreCallable"] + } + } + } + } } } } \ No newline at end of file diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/package-info.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/package-info.java index 674d15ce0e75..0ed6ffaa9720 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/package-info.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/package-info.java @@ -19,6 +19,67 @@ * *

            The interfaces provided are listed below, along with usage samples. * + *

            ======================= AclConfigServiceClient ======================= + * + *

            Service Description: Service for managing Acl Configuration. + * + *

            Sample for AclConfigServiceClient: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) {
            + *   UpdateAclConfigRequest request =
            + *       UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build();
            + *   AclConfig response = aclConfigServiceClient.updateAclConfig(request);
            + * }
            + * }
            + * + *

            ======================= AssistantServiceClient ======================= + * + *

            Service Description: Service for managing Assistant configuration and assisting users. + * + *

            Sample for AssistantServiceClient: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
            + *   CreateAssistantRequest request =
            + *       CreateAssistantRequest.newBuilder()
            + *           .setParent(
            + *               EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString())
            + *           .setAssistant(Assistant.newBuilder().build())
            + *           .setAssistantId("assistantId-324518759")
            + *           .build();
            + *   Assistant response = assistantServiceClient.createAssistant(request);
            + * }
            + * }
            + * + *

            ======================= CmekConfigServiceClient ======================= + * + *

            Service Description: Service for managing CMEK related tasks + * + *

            Sample for CmekConfigServiceClient: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) {
            + *   CmekConfigName name = CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]");
            + *   CmekConfig response = cmekConfigServiceClient.getCmekConfig(name);
            + * }
            + * }
            + * *

            ======================= CompletionServiceClient ======================= * *

            Service Description: Service for Auto-Completion. @@ -201,6 +262,51 @@ * } * }

            * + *

            ======================= IdentityMappingStoreServiceClient ======================= + * + *

            Service Description: Service for managing Identity Mapping Stores. + * + *

            Sample for IdentityMappingStoreServiceClient: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient =
            + *     IdentityMappingStoreServiceClient.create()) {
            + *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            + *   IdentityMappingStore identityMappingStore = IdentityMappingStore.newBuilder().build();
            + *   String identityMappingStoreId = "identityMappingStoreId677904780";
            + *   IdentityMappingStore response =
            + *       identityMappingStoreServiceClient.createIdentityMappingStore(
            + *           parent, identityMappingStore, identityMappingStoreId);
            + * }
            + * }
            + * + *

            ======================= LicenseConfigServiceClient ======================= + * + *

            Service Description: Service for managing license config related resources. + * + *

            Sample for LicenseConfigServiceClient: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * try (LicenseConfigServiceClient licenseConfigServiceClient =
            + *     LicenseConfigServiceClient.create()) {
            + *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            + *   LicenseConfig licenseConfig = LicenseConfig.newBuilder().build();
            + *   String licenseConfigId = "licenseConfigId-372057250";
            + *   LicenseConfig response =
            + *       licenseConfigServiceClient.createLicenseConfig(parent, licenseConfig, licenseConfigId);
            + * }
            + * }
            + * *

            ======================= ProjectServiceClient ======================= * *

            Service Description: Service for operations on the @@ -365,12 +471,14 @@ * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") * .toString()) * .setQuery("query107944136") + * .addAllPageCategories(new ArrayList()) * .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setOffset(-1019779949) * .setOneBoxPageSize(1988477988) * .addAllDataStoreSpecs(new ArrayList()) + * .setNumResultsPerDataStore(397658288) * .setFilter("filter-1274492040") * .setCanonicalFilter("canonicalFilter-722283124") * .setOrderBy("orderBy-1207110587") @@ -391,12 +499,19 @@ * .setNaturalLanguageQueryUnderstandingSpec( * SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) * .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + * .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + * .addAllCrowdingSpecs(new ArrayList()) * .setSession( * SessionName.ofProjectLocationDataStoreSessionName( * "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") * .toString()) * .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + * .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) * .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + * .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + * .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + * .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + * .setEntity("entity-1298275357") * .build(); * for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) { * // doThingsWith(element); @@ -443,10 +558,12 @@ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ServingConfigServiceClient servingConfigServiceClient = * ServingConfigServiceClient.create()) { + * DataStoreName parent = + * DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); * ServingConfig servingConfig = ServingConfig.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); + * String servingConfigId = "servingConfigId-831052759"; * ServingConfig response = - * servingConfigServiceClient.updateServingConfig(servingConfig, updateMask); + * servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId); * } * } * @@ -517,6 +634,43 @@ * UserEvent response = userEventServiceClient.writeUserEvent(request); * } * } + * + *

            ======================= UserLicenseServiceClient ======================= + * + *

            Service Description: Service for managing User Licenses. + * + *

            Sample for UserLicenseServiceClient: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) {
            + *   UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]");
            + *   ListLicenseConfigsUsageStatsResponse response =
            + *       userLicenseServiceClient.listLicenseConfigsUsageStats(parent);
            + * }
            + * }
            + * + *

            ======================= UserStoreServiceClient ======================= + * + *

            Service Description: Service for managing User Stores. + * + *

            Sample for UserStoreServiceClient: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) {
            + *   UserStoreName name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]");
            + *   UserStore response = userStoreServiceClient.getUserStore(name);
            + * }
            + * }
            */ @Generated("by gapic-generator-java") package com.google.cloud.discoveryengine.v1beta; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AclConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AclConfigServiceStub.java new file mode 100644 index 000000000000..829160d0caf2 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AclConfigServiceStub.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.AclConfig; +import com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest; +import com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the AclConfigService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class AclConfigServiceStub implements BackgroundResource { + + public UnaryCallable updateAclConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateAclConfigCallable()"); + } + + public UnaryCallable getAclConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getAclConfigCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AclConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AclConfigServiceStubSettings.java new file mode 100644 index 000000000000..7abb93460a48 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AclConfigServiceStubSettings.java @@ -0,0 +1,371 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.StatusCode; +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.v1beta.AclConfig; +import com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest; +import com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AclConfigServiceStub}. + * + *

            The default instance has everything set to sensible defaults: + * + *

              + *
            • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
            • Credentials are acquired automatically through Application Default Credentials. + *
            • Retries are configured for idempotent methods but not for non-idempotent methods. + *
            + * + *

            The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * AclConfigServiceStubSettings.Builder aclConfigServiceSettingsBuilder =
            + *     AclConfigServiceStubSettings.newBuilder();
            + * aclConfigServiceSettingsBuilder
            + *     .updateAclConfigSettings()
            + *     .setRetrySettings(
            + *         aclConfigServiceSettingsBuilder
            + *             .updateAclConfigSettings()
            + *             .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());
            + * AclConfigServiceStubSettings aclConfigServiceSettings = aclConfigServiceSettingsBuilder.build();
            + * }
            + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class AclConfigServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); + + private final UnaryCallSettings updateAclConfigSettings; + private final UnaryCallSettings getAclConfigSettings; + + /** Returns the object with the settings used for calls to updateAclConfig. */ + public UnaryCallSettings updateAclConfigSettings() { + return updateAclConfigSettings; + } + + /** Returns the object with the settings used for calls to getAclConfig. */ + public UnaryCallSettings getAclConfigSettings() { + return getAclConfigSettings; + } + + public AclConfigServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAclConfigServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAclConfigServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AclConfigServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AclConfigServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AclConfigServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AclConfigServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + updateAclConfigSettings = settingsBuilder.updateAclConfigSettings().build(); + getAclConfigSettings = settingsBuilder.getAclConfigSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-discoveryengine") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for AclConfigServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + updateAclConfigSettings; + private final UnaryCallSettings.Builder getAclConfigSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + updateAclConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getAclConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + updateAclConfigSettings, getAclConfigSettings); + initDefaults(this); + } + + protected Builder(AclConfigServiceStubSettings settings) { + super(settings); + + updateAclConfigSettings = settings.updateAclConfigSettings.toBuilder(); + getAclConfigSettings = settings.getAclConfigSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + updateAclConfigSettings, getAclConfigSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .updateAclConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getAclConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

            Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to updateAclConfig. */ + public UnaryCallSettings.Builder updateAclConfigSettings() { + return updateAclConfigSettings; + } + + /** Returns the builder for the settings used for calls to getAclConfig. */ + public UnaryCallSettings.Builder getAclConfigSettings() { + return getAclConfigSettings; + } + + @Override + public AclConfigServiceStubSettings build() throws IOException { + return new AclConfigServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AssistantServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AssistantServiceStub.java new file mode 100644 index 000000000000..359a27ade3ce --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AssistantServiceStub.java @@ -0,0 +1,78 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import static com.google.cloud.discoveryengine.v1beta.AssistantServiceClient.ListAssistantsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.Assistant; +import com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest; +import com.google.cloud.discoveryengine.v1beta.GetAssistantRequest; +import com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest; +import com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse; +import com.google.cloud.discoveryengine.v1beta.StreamAssistRequest; +import com.google.cloud.discoveryengine.v1beta.StreamAssistResponse; +import com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the AssistantService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class AssistantServiceStub implements BackgroundResource { + + public ServerStreamingCallable streamAssistCallable() { + throw new UnsupportedOperationException("Not implemented: streamAssistCallable()"); + } + + public UnaryCallable createAssistantCallable() { + throw new UnsupportedOperationException("Not implemented: createAssistantCallable()"); + } + + public UnaryCallable deleteAssistantCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAssistantCallable()"); + } + + public UnaryCallable updateAssistantCallable() { + throw new UnsupportedOperationException("Not implemented: updateAssistantCallable()"); + } + + public UnaryCallable getAssistantCallable() { + throw new UnsupportedOperationException("Not implemented: getAssistantCallable()"); + } + + public UnaryCallable + listAssistantsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAssistantsPagedCallable()"); + } + + public UnaryCallable listAssistantsCallable() { + throw new UnsupportedOperationException("Not implemented: listAssistantsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AssistantServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AssistantServiceStubSettings.java new file mode 100644 index 000000000000..6861d94d7e98 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/AssistantServiceStubSettings.java @@ -0,0 +1,578 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import static com.google.cloud.discoveryengine.v1beta.AssistantServiceClient.ListAssistantsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.Assistant; +import com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest; +import com.google.cloud.discoveryengine.v1beta.GetAssistantRequest; +import com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest; +import com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse; +import com.google.cloud.discoveryengine.v1beta.StreamAssistRequest; +import com.google.cloud.discoveryengine.v1beta.StreamAssistResponse; +import com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AssistantServiceStub}. + * + *

            The default instance has everything set to sensible defaults: + * + *

              + *
            • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
            • Credentials are acquired automatically through Application Default Credentials. + *
            • Retries are configured for idempotent methods but not for non-idempotent methods. + *
            + * + *

            The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * AssistantServiceStubSettings.Builder assistantServiceSettingsBuilder =
            + *     AssistantServiceStubSettings.newBuilder();
            + * assistantServiceSettingsBuilder
            + *     .createAssistantSettings()
            + *     .setRetrySettings(
            + *         assistantServiceSettingsBuilder
            + *             .createAssistantSettings()
            + *             .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());
            + * AssistantServiceStubSettings assistantServiceSettings = assistantServiceSettingsBuilder.build();
            + * }
            + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class AssistantServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.assist.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); + + private final ServerStreamingCallSettings + streamAssistSettings; + private final UnaryCallSettings createAssistantSettings; + private final UnaryCallSettings deleteAssistantSettings; + private final UnaryCallSettings updateAssistantSettings; + private final UnaryCallSettings getAssistantSettings; + private final PagedCallSettings< + ListAssistantsRequest, ListAssistantsResponse, ListAssistantsPagedResponse> + listAssistantsSettings; + + private static final PagedListDescriptor + LIST_ASSISTANTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAssistantsRequest injectToken(ListAssistantsRequest payload, String token) { + return ListAssistantsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAssistantsRequest injectPageSize( + ListAssistantsRequest payload, int pageSize) { + return ListAssistantsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAssistantsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAssistantsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAssistantsResponse payload) { + return payload.getAssistantsList(); + } + }; + + private static final PagedListResponseFactory< + ListAssistantsRequest, ListAssistantsResponse, ListAssistantsPagedResponse> + LIST_ASSISTANTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAssistantsRequest, ListAssistantsResponse, ListAssistantsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAssistantsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_ASSISTANTS_PAGE_STR_DESC, request, context); + return ListAssistantsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to streamAssist. */ + public ServerStreamingCallSettings + streamAssistSettings() { + return streamAssistSettings; + } + + /** Returns the object with the settings used for calls to createAssistant. */ + public UnaryCallSettings createAssistantSettings() { + return createAssistantSettings; + } + + /** Returns the object with the settings used for calls to deleteAssistant. */ + public UnaryCallSettings deleteAssistantSettings() { + return deleteAssistantSettings; + } + + /** Returns the object with the settings used for calls to updateAssistant. */ + public UnaryCallSettings updateAssistantSettings() { + return updateAssistantSettings; + } + + /** Returns the object with the settings used for calls to getAssistant. */ + public UnaryCallSettings getAssistantSettings() { + return getAssistantSettings; + } + + /** Returns the object with the settings used for calls to listAssistants. */ + public PagedCallSettings< + ListAssistantsRequest, ListAssistantsResponse, ListAssistantsPagedResponse> + listAssistantsSettings() { + return listAssistantsSettings; + } + + public AssistantServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAssistantServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAssistantServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AssistantServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AssistantServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AssistantServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AssistantServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + streamAssistSettings = settingsBuilder.streamAssistSettings().build(); + createAssistantSettings = settingsBuilder.createAssistantSettings().build(); + deleteAssistantSettings = settingsBuilder.deleteAssistantSettings().build(); + updateAssistantSettings = settingsBuilder.updateAssistantSettings().build(); + getAssistantSettings = settingsBuilder.getAssistantSettings().build(); + listAssistantsSettings = settingsBuilder.listAssistantsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-discoveryengine") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for AssistantServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final ServerStreamingCallSettings.Builder + streamAssistSettings; + private final UnaryCallSettings.Builder + createAssistantSettings; + private final UnaryCallSettings.Builder deleteAssistantSettings; + private final UnaryCallSettings.Builder + updateAssistantSettings; + private final UnaryCallSettings.Builder getAssistantSettings; + private final PagedCallSettings.Builder< + ListAssistantsRequest, ListAssistantsResponse, ListAssistantsPagedResponse> + listAssistantsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_4_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "no_retry_2_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_1_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(30000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(300000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(300000L)) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build(); + definitions.put("retry_policy_4_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(30000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(30000L)) + .setTotalTimeoutDuration(Duration.ofMillis(30000L)) + .build(); + definitions.put("no_retry_2_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(30000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(30000L)) + .setTotalTimeoutDuration(Duration.ofMillis(30000L)) + .build(); + definitions.put("retry_policy_1_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + streamAssistSettings = ServerStreamingCallSettings.newBuilder(); + createAssistantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAssistantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAssistantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getAssistantSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAssistantsSettings = PagedCallSettings.newBuilder(LIST_ASSISTANTS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createAssistantSettings, + deleteAssistantSettings, + updateAssistantSettings, + getAssistantSettings, + listAssistantsSettings); + initDefaults(this); + } + + protected Builder(AssistantServiceStubSettings settings) { + super(settings); + + streamAssistSettings = settings.streamAssistSettings.toBuilder(); + createAssistantSettings = settings.createAssistantSettings.toBuilder(); + deleteAssistantSettings = settings.deleteAssistantSettings.toBuilder(); + updateAssistantSettings = settings.updateAssistantSettings.toBuilder(); + getAssistantSettings = settings.getAssistantSettings.toBuilder(); + listAssistantsSettings = settings.listAssistantsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createAssistantSettings, + deleteAssistantSettings, + updateAssistantSettings, + getAssistantSettings, + listAssistantsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .streamAssistSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")); + + builder + .createAssistantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .deleteAssistantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .updateAssistantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); + + builder + .getAssistantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + builder + .listAssistantsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

            Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to streamAssist. */ + public ServerStreamingCallSettings.Builder + streamAssistSettings() { + return streamAssistSettings; + } + + /** Returns the builder for the settings used for calls to createAssistant. */ + public UnaryCallSettings.Builder createAssistantSettings() { + return createAssistantSettings; + } + + /** Returns the builder for the settings used for calls to deleteAssistant. */ + public UnaryCallSettings.Builder deleteAssistantSettings() { + return deleteAssistantSettings; + } + + /** Returns the builder for the settings used for calls to updateAssistant. */ + public UnaryCallSettings.Builder updateAssistantSettings() { + return updateAssistantSettings; + } + + /** Returns the builder for the settings used for calls to getAssistant. */ + public UnaryCallSettings.Builder getAssistantSettings() { + return getAssistantSettings; + } + + /** Returns the builder for the settings used for calls to listAssistants. */ + public PagedCallSettings.Builder< + ListAssistantsRequest, ListAssistantsResponse, ListAssistantsPagedResponse> + listAssistantsSettings() { + return listAssistantsSettings; + } + + @Override + public AssistantServiceStubSettings build() throws IOException { + return new AssistantServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CmekConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CmekConfigServiceStub.java new file mode 100644 index 000000000000..37e2158ff508 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CmekConfigServiceStub.java @@ -0,0 +1,82 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CmekConfig; +import com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata; +import com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest; +import com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest; +import com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest; +import com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse; +import com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata; +import com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the CmekConfigService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class CmekConfigServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public OperationCallable + updateCmekConfigOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateCmekConfigOperationCallable()"); + } + + public UnaryCallable updateCmekConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateCmekConfigCallable()"); + } + + public UnaryCallable getCmekConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getCmekConfigCallable()"); + } + + public UnaryCallable listCmekConfigsCallable() { + throw new UnsupportedOperationException("Not implemented: listCmekConfigsCallable()"); + } + + public OperationCallable + deleteCmekConfigOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCmekConfigOperationCallable()"); + } + + public UnaryCallable deleteCmekConfigCallable() { + throw new UnsupportedOperationException("Not implemented: deleteCmekConfigCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CmekConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CmekConfigServiceStubSettings.java new file mode 100644 index 000000000000..25b95e17d33e --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CmekConfigServiceStubSettings.java @@ -0,0 +1,552 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.StatusCode; +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.v1beta.CmekConfig; +import com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata; +import com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest; +import com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest; +import com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest; +import com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse; +import com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata; +import com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link CmekConfigServiceStub}. + * + *

            The default instance has everything set to sensible defaults: + * + *

              + *
            • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
            • Credentials are acquired automatically through Application Default Credentials. + *
            • Retries are configured for idempotent methods but not for non-idempotent methods. + *
            + * + *

            The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * CmekConfigServiceStubSettings.Builder cmekConfigServiceSettingsBuilder =
            + *     CmekConfigServiceStubSettings.newBuilder();
            + * cmekConfigServiceSettingsBuilder
            + *     .getCmekConfigSettings()
            + *     .setRetrySettings(
            + *         cmekConfigServiceSettingsBuilder
            + *             .getCmekConfigSettings()
            + *             .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());
            + * CmekConfigServiceStubSettings cmekConfigServiceSettings =
            + *     cmekConfigServiceSettingsBuilder.build();
            + * }
            + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

            To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for updateCmekConfig: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * CmekConfigServiceStubSettings.Builder cmekConfigServiceSettingsBuilder =
            + *     CmekConfigServiceStubSettings.newBuilder();
            + * TimedRetryAlgorithm timedRetryAlgorithm =
            + *     OperationalTimedPollAlgorithm.create(
            + *         RetrySettings.newBuilder()
            + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
            + *             .setRetryDelayMultiplier(1.5)
            + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
            + *             .setTotalTimeoutDuration(Duration.ofHours(24))
            + *             .build());
            + * cmekConfigServiceSettingsBuilder
            + *     .createClusterOperationSettings()
            + *     .setPollingAlgorithm(timedRetryAlgorithm)
            + *     .build();
            + * }
            + */ +@BetaApi +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class CmekConfigServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); + + private final UnaryCallSettings updateCmekConfigSettings; + private final OperationCallSettings + updateCmekConfigOperationSettings; + private final UnaryCallSettings getCmekConfigSettings; + private final UnaryCallSettings + listCmekConfigsSettings; + private final UnaryCallSettings deleteCmekConfigSettings; + private final OperationCallSettings + deleteCmekConfigOperationSettings; + + /** Returns the object with the settings used for calls to updateCmekConfig. */ + public UnaryCallSettings updateCmekConfigSettings() { + return updateCmekConfigSettings; + } + + /** Returns the object with the settings used for calls to updateCmekConfig. */ + public OperationCallSettings + updateCmekConfigOperationSettings() { + return updateCmekConfigOperationSettings; + } + + /** Returns the object with the settings used for calls to getCmekConfig. */ + public UnaryCallSettings getCmekConfigSettings() { + return getCmekConfigSettings; + } + + /** Returns the object with the settings used for calls to listCmekConfigs. */ + public UnaryCallSettings + listCmekConfigsSettings() { + return listCmekConfigsSettings; + } + + /** Returns the object with the settings used for calls to deleteCmekConfig. */ + public UnaryCallSettings deleteCmekConfigSettings() { + return deleteCmekConfigSettings; + } + + /** Returns the object with the settings used for calls to deleteCmekConfig. */ + public OperationCallSettings + deleteCmekConfigOperationSettings() { + return deleteCmekConfigOperationSettings; + } + + public CmekConfigServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcCmekConfigServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonCmekConfigServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CmekConfigServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(CmekConfigServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return CmekConfigServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected CmekConfigServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + updateCmekConfigSettings = settingsBuilder.updateCmekConfigSettings().build(); + updateCmekConfigOperationSettings = settingsBuilder.updateCmekConfigOperationSettings().build(); + getCmekConfigSettings = settingsBuilder.getCmekConfigSettings().build(); + listCmekConfigsSettings = settingsBuilder.listCmekConfigsSettings().build(); + deleteCmekConfigSettings = settingsBuilder.deleteCmekConfigSettings().build(); + deleteCmekConfigOperationSettings = settingsBuilder.deleteCmekConfigOperationSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-discoveryengine") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for CmekConfigServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + updateCmekConfigSettings; + private final OperationCallSettings.Builder< + UpdateCmekConfigRequest, CmekConfig, UpdateCmekConfigMetadata> + updateCmekConfigOperationSettings; + private final UnaryCallSettings.Builder getCmekConfigSettings; + private final UnaryCallSettings.Builder + listCmekConfigsSettings; + private final UnaryCallSettings.Builder + deleteCmekConfigSettings; + private final OperationCallSettings.Builder< + DeleteCmekConfigRequest, Empty, DeleteCmekConfigMetadata> + deleteCmekConfigOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + updateCmekConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateCmekConfigOperationSettings = OperationCallSettings.newBuilder(); + getCmekConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listCmekConfigsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteCmekConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteCmekConfigOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + updateCmekConfigSettings, + getCmekConfigSettings, + listCmekConfigsSettings, + deleteCmekConfigSettings); + initDefaults(this); + } + + protected Builder(CmekConfigServiceStubSettings settings) { + super(settings); + + updateCmekConfigSettings = settings.updateCmekConfigSettings.toBuilder(); + updateCmekConfigOperationSettings = settings.updateCmekConfigOperationSettings.toBuilder(); + getCmekConfigSettings = settings.getCmekConfigSettings.toBuilder(); + listCmekConfigsSettings = settings.listCmekConfigsSettings.toBuilder(); + deleteCmekConfigSettings = settings.deleteCmekConfigSettings.toBuilder(); + deleteCmekConfigOperationSettings = settings.deleteCmekConfigOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + updateCmekConfigSettings, + getCmekConfigSettings, + listCmekConfigsSettings, + deleteCmekConfigSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .updateCmekConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getCmekConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listCmekConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteCmekConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateCmekConfigOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(CmekConfig.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(UpdateCmekConfigMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteCmekConfigOperationSettings() + .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(DeleteCmekConfigMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

            Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to updateCmekConfig. */ + public UnaryCallSettings.Builder + updateCmekConfigSettings() { + return updateCmekConfigSettings; + } + + /** Returns the builder for the settings used for calls to updateCmekConfig. */ + public OperationCallSettings.Builder< + UpdateCmekConfigRequest, CmekConfig, UpdateCmekConfigMetadata> + updateCmekConfigOperationSettings() { + return updateCmekConfigOperationSettings; + } + + /** Returns the builder for the settings used for calls to getCmekConfig. */ + public UnaryCallSettings.Builder getCmekConfigSettings() { + return getCmekConfigSettings; + } + + /** Returns the builder for the settings used for calls to listCmekConfigs. */ + public UnaryCallSettings.Builder + listCmekConfigsSettings() { + return listCmekConfigsSettings; + } + + /** Returns the builder for the settings used for calls to deleteCmekConfig. */ + public UnaryCallSettings.Builder + deleteCmekConfigSettings() { + return deleteCmekConfigSettings; + } + + /** Returns the builder for the settings used for calls to deleteCmekConfig. */ + public OperationCallSettings.Builder + deleteCmekConfigOperationSettings() { + return deleteCmekConfigOperationSettings; + } + + @Override + public CmekConfigServiceStubSettings build() throws IOException { + return new CmekConfigServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStub.java index 444b47bd8842..6afcc7283d5c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStub.java @@ -36,6 +36,8 @@ import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse; +import com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest; +import com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; @@ -127,6 +129,11 @@ public UnaryCallable completeQueryC "Not implemented: purgeCompletionSuggestionsCallable()"); } + public UnaryCallable + removeSuggestionCallable() { + throw new UnsupportedOperationException("Not implemented: removeSuggestionCallable()"); + } + @Override public abstract void close(); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java index d3e56a4cd695..771825ff98b2 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/CompletionServiceStubSettings.java @@ -56,6 +56,8 @@ import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse; +import com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest; +import com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -150,7 +152,13 @@ public class CompletionServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/cloud_search.query") + .add("https://www.googleapis.com/auth/discoveryengine.assist.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings completeQuerySettings; @@ -184,6 +192,8 @@ public class CompletionServiceStubSettings extends StubSettings purgeCompletionSuggestionsOperationSettings; + private final UnaryCallSettings + removeSuggestionSettings; /** Returns the object with the settings used for calls to completeQuery. */ public UnaryCallSettings completeQuerySettings() { @@ -256,6 +266,12 @@ public UnaryCallSettings completeQu return purgeCompletionSuggestionsOperationSettings; } + /** Returns the object with the settings used for calls to removeSuggestion. */ + public UnaryCallSettings + removeSuggestionSettings() { + return removeSuggestionSettings; + } + public CompletionServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -385,6 +401,7 @@ protected CompletionServiceStubSettings(Builder settingsBuilder) throws IOExcept settingsBuilder.purgeCompletionSuggestionsSettings().build(); purgeCompletionSuggestionsOperationSettings = settingsBuilder.purgeCompletionSuggestionsOperationSettings().build(); + removeSuggestionSettings = settingsBuilder.removeSuggestionSettings().build(); } @Override @@ -432,6 +449,8 @@ public static class Builder extends StubSettings.Builder purgeCompletionSuggestionsOperationSettings; + private final UnaryCallSettings.Builder + removeSuggestionSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -480,6 +499,7 @@ protected Builder(ClientContext clientContext) { importCompletionSuggestionsOperationSettings = OperationCallSettings.newBuilder(); purgeCompletionSuggestionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); purgeCompletionSuggestionsOperationSettings = OperationCallSettings.newBuilder(); + removeSuggestionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -488,7 +508,8 @@ protected Builder(ClientContext clientContext) { importSuggestionDenyListEntriesSettings, purgeSuggestionDenyListEntriesSettings, importCompletionSuggestionsSettings, - purgeCompletionSuggestionsSettings); + purgeCompletionSuggestionsSettings, + removeSuggestionSettings); initDefaults(this); } @@ -512,6 +533,7 @@ protected Builder(CompletionServiceStubSettings settings) { purgeCompletionSuggestionsSettings = settings.purgeCompletionSuggestionsSettings.toBuilder(); purgeCompletionSuggestionsOperationSettings = settings.purgeCompletionSuggestionsOperationSettings.toBuilder(); + removeSuggestionSettings = settings.removeSuggestionSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -520,7 +542,8 @@ protected Builder(CompletionServiceStubSettings settings) { importSuggestionDenyListEntriesSettings, purgeSuggestionDenyListEntriesSettings, importCompletionSuggestionsSettings, - purgeCompletionSuggestionsSettings); + purgeCompletionSuggestionsSettings, + removeSuggestionSettings); } private static Builder createDefault() { @@ -578,6 +601,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 + .removeSuggestionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .importSuggestionDenyListEntriesOperationSettings() .setInitialCallSettings( @@ -776,6 +804,12 @@ public Builder applyToAllUnaryMethods( return purgeCompletionSuggestionsOperationSettings; } + /** Returns the builder for the settings used for calls to removeSuggestion. */ + public UnaryCallSettings.Builder + removeSuggestionSettings() { + return removeSuggestionSettings; + } + @Override public CompletionServiceStubSettings build() throws IOException { return new CompletionServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ControlServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ControlServiceStubSettings.java index 2c2e42820e0f..f028c2f9f3bc 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ControlServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ControlServiceStubSettings.java @@ -119,7 +119,11 @@ public class ControlServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings createControlSettings; private final UnaryCallSettings deleteControlSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStub.java index 81ae6b0e44ab..c594f2676e24 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStub.java @@ -21,6 +21,7 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.discoveryengine.v1beta.Answer; import com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest; @@ -90,6 +91,11 @@ public UnaryCallable answerQueryCallabl throw new UnsupportedOperationException("Not implemented: answerQueryCallable()"); } + public ServerStreamingCallable + streamAnswerQueryCallable() { + throw new UnsupportedOperationException("Not implemented: streamAnswerQueryCallable()"); + } + public UnaryCallable getAnswerCallable() { throw new UnsupportedOperationException("Not implemented: getAnswerCallable()"); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java index 65815a637f2e..cd35cc645ceb 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ConversationalSearchServiceStubSettings.java @@ -41,6 +41,7 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.PagedListDescriptor; import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; @@ -135,7 +136,11 @@ public class ConversationalSearchServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings converseConversationSettings; @@ -149,6 +154,8 @@ public class ConversationalSearchServiceStubSettings ListConversationsRequest, ListConversationsResponse, ListConversationsPagedResponse> listConversationsSettings; private final UnaryCallSettings answerQuerySettings; + private final ServerStreamingCallSettings + streamAnswerQuerySettings; private final UnaryCallSettings getAnswerSettings; private final UnaryCallSettings createSessionSettings; private final UnaryCallSettings deleteSessionSettings; @@ -306,6 +313,12 @@ public UnaryCallSettings answerQuerySet return answerQuerySettings; } + /** Returns the object with the settings used for calls to streamAnswerQuery. */ + public ServerStreamingCallSettings + streamAnswerQuerySettings() { + return streamAnswerQuerySettings; + } + /** Returns the object with the settings used for calls to getAnswer. */ public UnaryCallSettings getAnswerSettings() { return getAnswerSettings; @@ -455,6 +468,7 @@ protected ConversationalSearchServiceStubSettings(Builder settingsBuilder) throw getConversationSettings = settingsBuilder.getConversationSettings().build(); listConversationsSettings = settingsBuilder.listConversationsSettings().build(); answerQuerySettings = settingsBuilder.answerQuerySettings().build(); + streamAnswerQuerySettings = settingsBuilder.streamAnswerQuerySettings().build(); getAnswerSettings = settingsBuilder.getAnswerSettings().build(); createSessionSettings = settingsBuilder.createSessionSettings().build(); deleteSessionSettings = settingsBuilder.deleteSessionSettings().build(); @@ -492,6 +506,8 @@ public static class Builder listConversationsSettings; private final UnaryCallSettings.Builder answerQuerySettings; + private final ServerStreamingCallSettings.Builder + streamAnswerQuerySettings; private final UnaryCallSettings.Builder getAnswerSettings; private final UnaryCallSettings.Builder createSessionSettings; private final UnaryCallSettings.Builder deleteSessionSettings; @@ -545,6 +561,7 @@ protected Builder(ClientContext clientContext) { getConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listConversationsSettings = PagedCallSettings.newBuilder(LIST_CONVERSATIONS_PAGE_STR_FACT); answerQuerySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + streamAnswerQuerySettings = ServerStreamingCallSettings.newBuilder(); getAnswerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -580,6 +597,7 @@ protected Builder(ConversationalSearchServiceStubSettings settings) { getConversationSettings = settings.getConversationSettings.toBuilder(); listConversationsSettings = settings.listConversationsSettings.toBuilder(); answerQuerySettings = settings.answerQuerySettings.toBuilder(); + streamAnswerQuerySettings = settings.streamAnswerQuerySettings.toBuilder(); getAnswerSettings = settings.getAnswerSettings.toBuilder(); createSessionSettings = settings.createSessionSettings.toBuilder(); deleteSessionSettings = settings.deleteSessionSettings.toBuilder(); @@ -664,6 +682,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 + .streamAnswerQuerySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params")); + builder .getAnswerSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes")) @@ -755,6 +778,12 @@ public Builder applyToAllUnaryMethods( return answerQuerySettings; } + /** Returns the builder for the settings used for calls to streamAnswerQuery. */ + public ServerStreamingCallSettings.Builder + streamAnswerQuerySettings() { + return streamAnswerQuerySettings; + } + /** Returns the builder for the settings used for calls to getAnswer. */ public UnaryCallSettings.Builder getAnswerSettings() { return getAnswerSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DataStoreServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DataStoreServiceStubSettings.java index a53daae642b7..4d31592d86c0 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DataStoreServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DataStoreServiceStubSettings.java @@ -152,7 +152,11 @@ public class DataStoreServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings createDataStoreSettings; private final OperationCallSettings diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java index f80777f77ad4..643557f23575 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/DocumentServiceStubSettings.java @@ -158,7 +158,11 @@ public class DocumentServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings getDocumentSettings; private final PagedCallSettings< @@ -451,7 +455,7 @@ public static class Builder extends StubSettings.BuildernewArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put( - "retry_policy_2_codes", + "retry_policy_4_codes", ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -482,7 +486,7 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(ImportDocumentsResponse.class)) diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStub.java index 14bc34b18062..f7eb4d6df66b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStub.java @@ -36,6 +36,9 @@ import com.google.cloud.discoveryengine.v1beta.TuneEngineRequest; import com.google.cloud.discoveryengine.v1beta.TuneEngineResponse; import com.google.cloud.discoveryengine.v1beta.UpdateEngineRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; @@ -110,6 +113,14 @@ public UnaryCallable tuneEngineCallable() { throw new UnsupportedOperationException("Not implemented: tuneEngineCallable()"); } + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + @Override public abstract void close(); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStubSettings.java index ebc9527825b2..824151a0a558 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EngineServiceStubSettings.java @@ -67,6 +67,9 @@ import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import java.io.IOException; @@ -157,7 +160,11 @@ public class EngineServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings createEngineSettings; private final OperationCallSettings @@ -174,6 +181,8 @@ public class EngineServiceStubSettings extends StubSettings tuneEngineSettings; private final OperationCallSettings tuneEngineOperationSettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings setIamPolicySettings; private static final PagedListDescriptor LIST_ENGINES_PAGE_STR_DESC = @@ -285,6 +294,16 @@ public UnaryCallSettings tuneEngineSettings() { return tuneEngineOperationSettings; } + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + public EngineServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -407,6 +426,8 @@ protected EngineServiceStubSettings(Builder settingsBuilder) throws IOException resumeEngineSettings = settingsBuilder.resumeEngineSettings().build(); tuneEngineSettings = settingsBuilder.tuneEngineSettings().build(); tuneEngineOperationSettings = settingsBuilder.tuneEngineOperationSettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); } @Override @@ -438,6 +459,8 @@ public static class Builder extends StubSettings.Builder tuneEngineOperationSettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder setIamPolicySettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -476,6 +499,8 @@ protected Builder(ClientContext clientContext) { resumeEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); tuneEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); tuneEngineOperationSettings = OperationCallSettings.newBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -486,7 +511,9 @@ protected Builder(ClientContext clientContext) { listEnginesSettings, pauseEngineSettings, resumeEngineSettings, - tuneEngineSettings); + tuneEngineSettings, + getIamPolicySettings, + setIamPolicySettings); initDefaults(this); } @@ -504,6 +531,8 @@ protected Builder(EngineServiceStubSettings settings) { resumeEngineSettings = settings.resumeEngineSettings.toBuilder(); tuneEngineSettings = settings.tuneEngineSettings.toBuilder(); tuneEngineOperationSettings = settings.tuneEngineOperationSettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -514,7 +543,9 @@ protected Builder(EngineServiceStubSettings settings) { listEnginesSettings, pauseEngineSettings, resumeEngineSettings, - tuneEngineSettings); + tuneEngineSettings, + getIamPolicySettings, + setIamPolicySettings); } private static Builder createDefault() { @@ -582,6 +613,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .createEngineOperationSettings() .setInitialCallSettings( @@ -731,6 +772,16 @@ public UnaryCallSettings.Builder tuneEngineSetting return tuneEngineOperationSettings; } + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + @Override public EngineServiceStubSettings build() throws IOException { return new EngineServiceStubSettings(this); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EvaluationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EvaluationServiceStubSettings.java index 091719e4cfb4..f337564d12f2 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EvaluationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/EvaluationServiceStubSettings.java @@ -152,7 +152,12 @@ public class EvaluationServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.assist.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings getEvaluationSettings; private final PagedCallSettings< @@ -476,7 +481,7 @@ public static class Builder extends StubSettings.BuildernewArrayList(StatusCode.Code.UNAVAILABLE))); definitions.put( - "no_retry_3_codes", ImmutableSet.copyOf(Lists.newArrayList())); + "no_retry_5_codes", ImmutableSet.copyOf(Lists.newArrayList())); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -503,7 +508,7 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_3_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_3_params")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")) .build()) .setResponseTransformer( ProtoOperationTransformers.ResponseTransformer.create(Evaluation.class)) diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GroundedGenerationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GroundedGenerationServiceStubSettings.java index 8496b61112af..edb1c2966f85 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GroundedGenerationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GroundedGenerationServiceStubSettings.java @@ -109,7 +109,11 @@ public class GroundedGenerationServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final StreamingCallSettings< GenerateGroundedContentRequest, GenerateGroundedContentResponse> diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcAclConfigServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcAclConfigServiceCallableFactory.java new file mode 100644 index 000000000000..c9a3dbf0f007 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcAclConfigServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the AclConfigService service API. + * + *

            This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAclConfigServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcAclConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcAclConfigServiceStub.java new file mode 100644 index 000000000000..48708a28e548 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcAclConfigServiceStub.java @@ -0,0 +1,198 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +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.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.AclConfig; +import com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest; +import com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the AclConfigService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAclConfigServiceStub extends AclConfigServiceStub { + private static final MethodDescriptor + updateAclConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.AclConfigService/UpdateAclConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAclConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AclConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAclConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.AclConfigService/GetAclConfig") + .setRequestMarshaller(ProtoUtils.marshaller(GetAclConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AclConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable updateAclConfigCallable; + private final UnaryCallable getAclConfigCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAclConfigServiceStub create(AclConfigServiceStubSettings settings) + throws IOException { + return new GrpcAclConfigServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAclConfigServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcAclConfigServiceStub( + AclConfigServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAclConfigServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAclConfigServiceStub( + AclConfigServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAclConfigServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAclConfigServiceStub( + AclConfigServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcAclConfigServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcAclConfigServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAclConfigServiceStub( + AclConfigServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings updateAclConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAclConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("acl_config.name", String.valueOf(request.getAclConfig().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getAclConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAclConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.updateAclConfigCallable = + callableFactory.createUnaryCallable( + updateAclConfigTransportSettings, settings.updateAclConfigSettings(), clientContext); + this.getAclConfigCallable = + callableFactory.createUnaryCallable( + getAclConfigTransportSettings, settings.getAclConfigSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable updateAclConfigCallable() { + return updateAclConfigCallable; + } + + @Override + public UnaryCallable getAclConfigCallable() { + return getAclConfigCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcAssistantServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcAssistantServiceCallableFactory.java new file mode 100644 index 000000000000..21fd9505b249 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcAssistantServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the AssistantService service API. + * + *

            This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAssistantServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcAssistantServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcAssistantServiceStub.java new file mode 100644 index 000000000000..78510f29fc2b --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcAssistantServiceStub.java @@ -0,0 +1,350 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import static com.google.cloud.discoveryengine.v1beta.AssistantServiceClient.ListAssistantsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +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.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.Assistant; +import com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest; +import com.google.cloud.discoveryengine.v1beta.GetAssistantRequest; +import com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest; +import com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse; +import com.google.cloud.discoveryengine.v1beta.StreamAssistRequest; +import com.google.cloud.discoveryengine.v1beta.StreamAssistResponse; +import com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the AssistantService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAssistantServiceStub extends AssistantServiceStub { + private static final MethodDescriptor + streamAssistMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.AssistantService/StreamAssist") + .setRequestMarshaller(ProtoUtils.marshaller(StreamAssistRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(StreamAssistResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createAssistantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.AssistantService/CreateAssistant") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAssistantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Assistant.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteAssistantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.AssistantService/DeleteAssistant") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAssistantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateAssistantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.AssistantService/UpdateAssistant") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAssistantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Assistant.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAssistantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.AssistantService/GetAssistant") + .setRequestMarshaller(ProtoUtils.marshaller(GetAssistantRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Assistant.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listAssistantsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.AssistantService/ListAssistants") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAssistantsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAssistantsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final ServerStreamingCallable + streamAssistCallable; + private final UnaryCallable createAssistantCallable; + private final UnaryCallable deleteAssistantCallable; + private final UnaryCallable updateAssistantCallable; + private final UnaryCallable getAssistantCallable; + private final UnaryCallable listAssistantsCallable; + private final UnaryCallable + listAssistantsPagedCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAssistantServiceStub create(AssistantServiceStubSettings settings) + throws IOException { + return new GrpcAssistantServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAssistantServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcAssistantServiceStub( + AssistantServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAssistantServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAssistantServiceStub( + AssistantServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAssistantServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAssistantServiceStub( + AssistantServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcAssistantServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcAssistantServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAssistantServiceStub( + AssistantServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings streamAssistTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(streamAssistMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings createAssistantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAssistantMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings deleteAssistantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAssistantMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings updateAssistantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAssistantMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("assistant.name", String.valueOf(request.getAssistant().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getAssistantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAssistantMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listAssistantsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAssistantsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + + this.streamAssistCallable = + callableFactory.createServerStreamingCallable( + streamAssistTransportSettings, settings.streamAssistSettings(), clientContext); + this.createAssistantCallable = + callableFactory.createUnaryCallable( + createAssistantTransportSettings, settings.createAssistantSettings(), clientContext); + this.deleteAssistantCallable = + callableFactory.createUnaryCallable( + deleteAssistantTransportSettings, settings.deleteAssistantSettings(), clientContext); + this.updateAssistantCallable = + callableFactory.createUnaryCallable( + updateAssistantTransportSettings, settings.updateAssistantSettings(), clientContext); + this.getAssistantCallable = + callableFactory.createUnaryCallable( + getAssistantTransportSettings, settings.getAssistantSettings(), clientContext); + this.listAssistantsCallable = + callableFactory.createUnaryCallable( + listAssistantsTransportSettings, settings.listAssistantsSettings(), clientContext); + this.listAssistantsPagedCallable = + callableFactory.createPagedCallable( + listAssistantsTransportSettings, settings.listAssistantsSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public ServerStreamingCallable streamAssistCallable() { + return streamAssistCallable; + } + + @Override + public UnaryCallable createAssistantCallable() { + return createAssistantCallable; + } + + @Override + public UnaryCallable deleteAssistantCallable() { + return deleteAssistantCallable; + } + + @Override + public UnaryCallable updateAssistantCallable() { + return updateAssistantCallable; + } + + @Override + public UnaryCallable getAssistantCallable() { + return getAssistantCallable; + } + + @Override + public UnaryCallable listAssistantsCallable() { + return listAssistantsCallable; + } + + @Override + public UnaryCallable + listAssistantsPagedCallable() { + return listAssistantsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCmekConfigServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCmekConfigServiceCallableFactory.java new file mode 100644 index 000000000000..825c5a3aaed3 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCmekConfigServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the CmekConfigService service API. + * + *

            This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcCmekConfigServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCmekConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCmekConfigServiceStub.java new file mode 100644 index 000000000000..23fc62473f89 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCmekConfigServiceStub.java @@ -0,0 +1,302 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +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.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CmekConfig; +import com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata; +import com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest; +import com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest; +import com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest; +import com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse; +import com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata; +import com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the CmekConfigService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcCmekConfigServiceStub extends CmekConfigServiceStub { + private static final MethodDescriptor + updateCmekConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.CmekConfigService/UpdateCmekConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateCmekConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getCmekConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.CmekConfigService/GetCmekConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetCmekConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CmekConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listCmekConfigsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.CmekConfigService/ListCmekConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListCmekConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListCmekConfigsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteCmekConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.CmekConfigService/DeleteCmekConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteCmekConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable updateCmekConfigCallable; + private final OperationCallable + updateCmekConfigOperationCallable; + private final UnaryCallable getCmekConfigCallable; + private final UnaryCallable + listCmekConfigsCallable; + private final UnaryCallable deleteCmekConfigCallable; + private final OperationCallable + deleteCmekConfigOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcCmekConfigServiceStub create(CmekConfigServiceStubSettings settings) + throws IOException { + return new GrpcCmekConfigServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcCmekConfigServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcCmekConfigServiceStub( + CmekConfigServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcCmekConfigServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcCmekConfigServiceStub( + CmekConfigServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcCmekConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcCmekConfigServiceStub( + CmekConfigServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcCmekConfigServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcCmekConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcCmekConfigServiceStub( + CmekConfigServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings updateCmekConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCmekConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("config.name", String.valueOf(request.getConfig().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getCmekConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCmekConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listCmekConfigsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listCmekConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings deleteCmekConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteCmekConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.updateCmekConfigCallable = + callableFactory.createUnaryCallable( + updateCmekConfigTransportSettings, settings.updateCmekConfigSettings(), clientContext); + this.updateCmekConfigOperationCallable = + callableFactory.createOperationCallable( + updateCmekConfigTransportSettings, + settings.updateCmekConfigOperationSettings(), + clientContext, + operationsStub); + this.getCmekConfigCallable = + callableFactory.createUnaryCallable( + getCmekConfigTransportSettings, settings.getCmekConfigSettings(), clientContext); + this.listCmekConfigsCallable = + callableFactory.createUnaryCallable( + listCmekConfigsTransportSettings, settings.listCmekConfigsSettings(), clientContext); + this.deleteCmekConfigCallable = + callableFactory.createUnaryCallable( + deleteCmekConfigTransportSettings, settings.deleteCmekConfigSettings(), clientContext); + this.deleteCmekConfigOperationCallable = + callableFactory.createOperationCallable( + deleteCmekConfigTransportSettings, + settings.deleteCmekConfigOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable updateCmekConfigCallable() { + return updateCmekConfigCallable; + } + + @Override + public OperationCallable + updateCmekConfigOperationCallable() { + return updateCmekConfigOperationCallable; + } + + @Override + public UnaryCallable getCmekConfigCallable() { + return getCmekConfigCallable; + } + + @Override + public UnaryCallable listCmekConfigsCallable() { + return listCmekConfigsCallable; + } + + @Override + public UnaryCallable deleteCmekConfigCallable() { + return deleteCmekConfigCallable; + } + + @Override + public OperationCallable + deleteCmekConfigOperationCallable() { + return deleteCmekConfigOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceStub.java index 36bc0357700c..1c485fdecea5 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcCompletionServiceStub.java @@ -41,6 +41,8 @@ import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse; +import com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest; +import com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import io.grpc.MethodDescriptor; @@ -133,6 +135,19 @@ public class GrpcCompletionServiceStub extends CompletionServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + removeSuggestionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.CompletionService/RemoveSuggestion") + .setRequestMarshaller( + ProtoUtils.marshaller(RemoveSuggestionRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RemoveSuggestionResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private final UnaryCallable completeQueryCallable; private final UnaryCallable advancedCompleteQueryCallable; @@ -164,6 +179,8 @@ public class GrpcCompletionServiceStub extends CompletionServiceStub { PurgeCompletionSuggestionsResponse, PurgeCompletionSuggestionsMetadata> purgeCompletionSuggestionsOperationCallable; + private final UnaryCallable + removeSuggestionCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -282,6 +299,19 @@ protected GrpcCompletionServiceStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings + removeSuggestionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(removeSuggestionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "completion_config", String.valueOf(request.getCompletionConfig())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getCompletionConfig()) + .build(); this.completeQueryCallable = callableFactory.createUnaryCallable( @@ -335,6 +365,9 @@ protected GrpcCompletionServiceStub( settings.purgeCompletionSuggestionsOperationSettings(), clientContext, operationsStub); + this.removeSuggestionCallable = + callableFactory.createUnaryCallable( + removeSuggestionTransportSettings, settings.removeSuggestionSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -415,6 +448,12 @@ public UnaryCallable completeQueryC return purgeCompletionSuggestionsOperationCallable; } + @Override + public UnaryCallable + removeSuggestionCallable() { + return removeSuggestionCallable; + } + @Override public final void close() { try { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcConversationalSearchServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcConversationalSearchServiceStub.java index e373894db43b..6e49e849d255 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcConversationalSearchServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcConversationalSearchServiceStub.java @@ -26,6 +26,7 @@ import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.discoveryengine.v1beta.Answer; import com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest; @@ -150,6 +151,18 @@ public class GrpcConversationalSearchServiceStub extends ConversationalSearchSer .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + streamAnswerQueryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.ConversationalSearchService/StreamAnswerQuery") + .setRequestMarshaller(ProtoUtils.marshaller(AnswerQueryRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AnswerQueryResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor getAnswerMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -227,6 +240,8 @@ public class GrpcConversationalSearchServiceStub extends ConversationalSearchSer private final UnaryCallable listConversationsPagedCallable; private final UnaryCallable answerQueryCallable; + private final ServerStreamingCallable + streamAnswerQueryCallable; private final UnaryCallable getAnswerCallable; private final UnaryCallable createSessionCallable; private final UnaryCallable deleteSessionCallable; @@ -362,6 +377,17 @@ protected GrpcConversationalSearchServiceStub( }) .setResourceNameExtractor(request -> request.getServingConfig()) .build(); + GrpcCallSettings streamAnswerQueryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(streamAnswerQueryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("serving_config", String.valueOf(request.getServingConfig())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getServingConfig()) + .build(); GrpcCallSettings getAnswerTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getAnswerMethodDescriptor) @@ -464,6 +490,11 @@ protected GrpcConversationalSearchServiceStub( this.answerQueryCallable = callableFactory.createUnaryCallable( answerQueryTransportSettings, settings.answerQuerySettings(), clientContext); + this.streamAnswerQueryCallable = + callableFactory.createServerStreamingCallable( + streamAnswerQueryTransportSettings, + settings.streamAnswerQuerySettings(), + clientContext); this.getAnswerCallable = callableFactory.createUnaryCallable( getAnswerTransportSettings, settings.getAnswerSettings(), clientContext); @@ -537,6 +568,12 @@ public UnaryCallable answerQueryCallabl return answerQueryCallable; } + @Override + public ServerStreamingCallable + streamAnswerQueryCallable() { + return streamAnswerQueryCallable; + } + @Override public UnaryCallable getAnswerCallable() { return getAnswerCallable; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcDataStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcDataStoreServiceStub.java index 1975c33cdab3..464ff43fe9e0 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcDataStoreServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcDataStoreServiceStub.java @@ -179,7 +179,7 @@ protected GrpcDataStoreServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) - .setResourceNameExtractor(request -> request.getParent()) + .setResourceNameExtractor(request -> request.getCmekConfigName()) .build(); GrpcCallSettings getDataStoreTransportSettings = GrpcCallSettings.newBuilder() diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcEngineServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcEngineServiceStub.java index a4438d170408..41ac45940a80 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcEngineServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcEngineServiceStub.java @@ -41,6 +41,9 @@ import com.google.cloud.discoveryengine.v1beta.TuneEngineRequest; import com.google.cloud.discoveryengine.v1beta.TuneEngineResponse; import com.google.cloud.discoveryengine.v1beta.UpdateEngineRequest; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; @@ -135,6 +138,24 @@ public class GrpcEngineServiceStub extends EngineServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1beta.EngineService/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.discoveryengine.v1beta.EngineService/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private final UnaryCallable createEngineCallable; private final OperationCallable createEngineOperationCallable; @@ -151,6 +172,8 @@ public class GrpcEngineServiceStub extends EngineServiceStub { private final UnaryCallable tuneEngineCallable; private final OperationCallable tuneEngineOperationCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -281,6 +304,28 @@ protected GrpcEngineServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); this.createEngineCallable = callableFactory.createUnaryCallable( @@ -327,6 +372,12 @@ protected GrpcEngineServiceStub( settings.tuneEngineOperationSettings(), clientContext, operationsStub); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -399,6 +450,16 @@ public UnaryCallable tuneEngineCallable() { return tuneEngineOperationCallable; } + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + @Override public final void close() { try { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcIdentityMappingStoreServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcIdentityMappingStoreServiceCallableFactory.java new file mode 100644 index 000000000000..f006693f3c75 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcIdentityMappingStoreServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the IdentityMappingStoreService service API. + * + *

            This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcIdentityMappingStoreServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcIdentityMappingStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcIdentityMappingStoreServiceStub.java new file mode 100644 index 000000000000..27c89f69b1e8 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcIdentityMappingStoreServiceStub.java @@ -0,0 +1,504 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import static com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient.ListIdentityMappingStoresPagedResponse; +import static com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient.ListIdentityMappingsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +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.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata; +import com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest; +import com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStore; +import com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest; +import com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse; +import com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the IdentityMappingStoreService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcIdentityMappingStoreServiceStub extends IdentityMappingStoreServiceStub { + private static final MethodDescriptor + createIdentityMappingStoreMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.IdentityMappingStoreService/CreateIdentityMappingStore") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateIdentityMappingStoreRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(IdentityMappingStore.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getIdentityMappingStoreMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.IdentityMappingStoreService/GetIdentityMappingStore") + .setRequestMarshaller( + ProtoUtils.marshaller(GetIdentityMappingStoreRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(IdentityMappingStore.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteIdentityMappingStoreMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.IdentityMappingStoreService/DeleteIdentityMappingStore") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteIdentityMappingStoreRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + importIdentityMappingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.IdentityMappingStoreService/ImportIdentityMappings") + .setRequestMarshaller( + ProtoUtils.marshaller(ImportIdentityMappingsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + purgeIdentityMappingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.IdentityMappingStoreService/PurgeIdentityMappings") + .setRequestMarshaller( + ProtoUtils.marshaller(PurgeIdentityMappingsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listIdentityMappingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.IdentityMappingStoreService/ListIdentityMappings") + .setRequestMarshaller( + ProtoUtils.marshaller(ListIdentityMappingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListIdentityMappingsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListIdentityMappingStoresRequest, ListIdentityMappingStoresResponse> + listIdentityMappingStoresMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.IdentityMappingStoreService/ListIdentityMappingStores") + .setRequestMarshaller( + ProtoUtils.marshaller(ListIdentityMappingStoresRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListIdentityMappingStoresResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + createIdentityMappingStoreCallable; + private final UnaryCallable + getIdentityMappingStoreCallable; + private final UnaryCallable + deleteIdentityMappingStoreCallable; + private final OperationCallable< + DeleteIdentityMappingStoreRequest, Empty, DeleteIdentityMappingStoreMetadata> + deleteIdentityMappingStoreOperationCallable; + private final UnaryCallable + importIdentityMappingsCallable; + private final OperationCallable< + ImportIdentityMappingsRequest, + ImportIdentityMappingsResponse, + IdentityMappingEntryOperationMetadata> + importIdentityMappingsOperationCallable; + private final UnaryCallable + purgeIdentityMappingsCallable; + private final OperationCallable< + PurgeIdentityMappingsRequest, Empty, IdentityMappingEntryOperationMetadata> + purgeIdentityMappingsOperationCallable; + private final UnaryCallable + listIdentityMappingsCallable; + private final UnaryCallable + listIdentityMappingsPagedCallable; + private final UnaryCallable + listIdentityMappingStoresCallable; + private final UnaryCallable< + ListIdentityMappingStoresRequest, ListIdentityMappingStoresPagedResponse> + listIdentityMappingStoresPagedCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcIdentityMappingStoreServiceStub create( + IdentityMappingStoreServiceStubSettings settings) throws IOException { + return new GrpcIdentityMappingStoreServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcIdentityMappingStoreServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcIdentityMappingStoreServiceStub( + IdentityMappingStoreServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcIdentityMappingStoreServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcIdentityMappingStoreServiceStub( + IdentityMappingStoreServiceStubSettings.newBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of GrpcIdentityMappingStoreServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcIdentityMappingStoreServiceStub( + IdentityMappingStoreServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcIdentityMappingStoreServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcIdentityMappingStoreServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcIdentityMappingStoreServiceStub( + IdentityMappingStoreServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + createIdentityMappingStoreTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createIdentityMappingStoreMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getCmekConfigName()) + .build(); + GrpcCallSettings + getIdentityMappingStoreTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIdentityMappingStoreMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + deleteIdentityMappingStoreTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteIdentityMappingStoreMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + importIdentityMappingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(importIdentityMappingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "identity_mapping_store", + String.valueOf(request.getIdentityMappingStore())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getIdentityMappingStore()) + .build(); + GrpcCallSettings + purgeIdentityMappingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(purgeIdentityMappingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "identity_mapping_store", + String.valueOf(request.getIdentityMappingStore())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getIdentityMappingStore()) + .build(); + GrpcCallSettings + listIdentityMappingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listIdentityMappingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "identity_mapping_store", + String.valueOf(request.getIdentityMappingStore())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getIdentityMappingStore()) + .build(); + GrpcCallSettings + listIdentityMappingStoresTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listIdentityMappingStoresMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + + this.createIdentityMappingStoreCallable = + callableFactory.createUnaryCallable( + createIdentityMappingStoreTransportSettings, + settings.createIdentityMappingStoreSettings(), + clientContext); + this.getIdentityMappingStoreCallable = + callableFactory.createUnaryCallable( + getIdentityMappingStoreTransportSettings, + settings.getIdentityMappingStoreSettings(), + clientContext); + this.deleteIdentityMappingStoreCallable = + callableFactory.createUnaryCallable( + deleteIdentityMappingStoreTransportSettings, + settings.deleteIdentityMappingStoreSettings(), + clientContext); + this.deleteIdentityMappingStoreOperationCallable = + callableFactory.createOperationCallable( + deleteIdentityMappingStoreTransportSettings, + settings.deleteIdentityMappingStoreOperationSettings(), + clientContext, + operationsStub); + this.importIdentityMappingsCallable = + callableFactory.createUnaryCallable( + importIdentityMappingsTransportSettings, + settings.importIdentityMappingsSettings(), + clientContext); + this.importIdentityMappingsOperationCallable = + callableFactory.createOperationCallable( + importIdentityMappingsTransportSettings, + settings.importIdentityMappingsOperationSettings(), + clientContext, + operationsStub); + this.purgeIdentityMappingsCallable = + callableFactory.createUnaryCallable( + purgeIdentityMappingsTransportSettings, + settings.purgeIdentityMappingsSettings(), + clientContext); + this.purgeIdentityMappingsOperationCallable = + callableFactory.createOperationCallable( + purgeIdentityMappingsTransportSettings, + settings.purgeIdentityMappingsOperationSettings(), + clientContext, + operationsStub); + this.listIdentityMappingsCallable = + callableFactory.createUnaryCallable( + listIdentityMappingsTransportSettings, + settings.listIdentityMappingsSettings(), + clientContext); + this.listIdentityMappingsPagedCallable = + callableFactory.createPagedCallable( + listIdentityMappingsTransportSettings, + settings.listIdentityMappingsSettings(), + clientContext); + this.listIdentityMappingStoresCallable = + callableFactory.createUnaryCallable( + listIdentityMappingStoresTransportSettings, + settings.listIdentityMappingStoresSettings(), + clientContext); + this.listIdentityMappingStoresPagedCallable = + callableFactory.createPagedCallable( + listIdentityMappingStoresTransportSettings, + settings.listIdentityMappingStoresSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + createIdentityMappingStoreCallable() { + return createIdentityMappingStoreCallable; + } + + @Override + public UnaryCallable + getIdentityMappingStoreCallable() { + return getIdentityMappingStoreCallable; + } + + @Override + public UnaryCallable + deleteIdentityMappingStoreCallable() { + return deleteIdentityMappingStoreCallable; + } + + @Override + public OperationCallable< + DeleteIdentityMappingStoreRequest, Empty, DeleteIdentityMappingStoreMetadata> + deleteIdentityMappingStoreOperationCallable() { + return deleteIdentityMappingStoreOperationCallable; + } + + @Override + public UnaryCallable importIdentityMappingsCallable() { + return importIdentityMappingsCallable; + } + + @Override + public OperationCallable< + ImportIdentityMappingsRequest, + ImportIdentityMappingsResponse, + IdentityMappingEntryOperationMetadata> + importIdentityMappingsOperationCallable() { + return importIdentityMappingsOperationCallable; + } + + @Override + public UnaryCallable purgeIdentityMappingsCallable() { + return purgeIdentityMappingsCallable; + } + + @Override + public OperationCallable< + PurgeIdentityMappingsRequest, Empty, IdentityMappingEntryOperationMetadata> + purgeIdentityMappingsOperationCallable() { + return purgeIdentityMappingsOperationCallable; + } + + @Override + public UnaryCallable + listIdentityMappingsCallable() { + return listIdentityMappingsCallable; + } + + @Override + public UnaryCallable + listIdentityMappingsPagedCallable() { + return listIdentityMappingsPagedCallable; + } + + @Override + public UnaryCallable + listIdentityMappingStoresCallable() { + return listIdentityMappingStoresCallable; + } + + @Override + public UnaryCallable + listIdentityMappingStoresPagedCallable() { + return listIdentityMappingStoresPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcLicenseConfigServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcLicenseConfigServiceCallableFactory.java new file mode 100644 index 000000000000..45a21f9befc6 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcLicenseConfigServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the LicenseConfigService service API. + * + *

            This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcLicenseConfigServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcLicenseConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcLicenseConfigServiceStub.java new file mode 100644 index 000000000000..e30d85d616bb --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcLicenseConfigServiceStub.java @@ -0,0 +1,384 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import static com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient.ListLicenseConfigsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +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.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse; +import com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the LicenseConfigService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcLicenseConfigServiceStub extends LicenseConfigServiceStub { + private static final MethodDescriptor + createLicenseConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.LicenseConfigService/CreateLicenseConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateLicenseConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LicenseConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateLicenseConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.LicenseConfigService/UpdateLicenseConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateLicenseConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LicenseConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getLicenseConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.LicenseConfigService/GetLicenseConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(GetLicenseConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(LicenseConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLicenseConfigsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.LicenseConfigService/ListLicenseConfigs") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLicenseConfigsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLicenseConfigsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + DistributeLicenseConfigRequest, DistributeLicenseConfigResponse> + distributeLicenseConfigMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.LicenseConfigService/DistributeLicenseConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(DistributeLicenseConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DistributeLicenseConfigResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + retractLicenseConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.LicenseConfigService/RetractLicenseConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(RetractLicenseConfigRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RetractLicenseConfigResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + createLicenseConfigCallable; + private final UnaryCallable + updateLicenseConfigCallable; + private final UnaryCallable getLicenseConfigCallable; + private final UnaryCallable + listLicenseConfigsCallable; + private final UnaryCallable + listLicenseConfigsPagedCallable; + private final UnaryCallable + distributeLicenseConfigCallable; + private final UnaryCallable + retractLicenseConfigCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcLicenseConfigServiceStub create(LicenseConfigServiceStubSettings settings) + throws IOException { + return new GrpcLicenseConfigServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcLicenseConfigServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcLicenseConfigServiceStub( + LicenseConfigServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcLicenseConfigServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcLicenseConfigServiceStub( + LicenseConfigServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcLicenseConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcLicenseConfigServiceStub( + LicenseConfigServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcLicenseConfigServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcLicenseConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcLicenseConfigServiceStub( + LicenseConfigServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + createLicenseConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createLicenseConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + updateLicenseConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateLicenseConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "license_config.name", + String.valueOf(request.getLicenseConfig().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLicenseConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLicenseConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listLicenseConfigsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLicenseConfigsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + distributeLicenseConfigTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(distributeLicenseConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "billing_account_license_config", + String.valueOf(request.getBillingAccountLicenseConfig())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getBillingAccountLicenseConfig()) + .build(); + GrpcCallSettings + retractLicenseConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(retractLicenseConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "billing_account_license_config", + String.valueOf(request.getBillingAccountLicenseConfig())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getBillingAccountLicenseConfig()) + .build(); + + this.createLicenseConfigCallable = + callableFactory.createUnaryCallable( + createLicenseConfigTransportSettings, + settings.createLicenseConfigSettings(), + clientContext); + this.updateLicenseConfigCallable = + callableFactory.createUnaryCallable( + updateLicenseConfigTransportSettings, + settings.updateLicenseConfigSettings(), + clientContext); + this.getLicenseConfigCallable = + callableFactory.createUnaryCallable( + getLicenseConfigTransportSettings, settings.getLicenseConfigSettings(), clientContext); + this.listLicenseConfigsCallable = + callableFactory.createUnaryCallable( + listLicenseConfigsTransportSettings, + settings.listLicenseConfigsSettings(), + clientContext); + this.listLicenseConfigsPagedCallable = + callableFactory.createPagedCallable( + listLicenseConfigsTransportSettings, + settings.listLicenseConfigsSettings(), + clientContext); + this.distributeLicenseConfigCallable = + callableFactory.createUnaryCallable( + distributeLicenseConfigTransportSettings, + settings.distributeLicenseConfigSettings(), + clientContext); + this.retractLicenseConfigCallable = + callableFactory.createUnaryCallable( + retractLicenseConfigTransportSettings, + settings.retractLicenseConfigSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createLicenseConfigCallable() { + return createLicenseConfigCallable; + } + + @Override + public UnaryCallable updateLicenseConfigCallable() { + return updateLicenseConfigCallable; + } + + @Override + public UnaryCallable getLicenseConfigCallable() { + return getLicenseConfigCallable; + } + + @Override + public UnaryCallable + listLicenseConfigsCallable() { + return listLicenseConfigsCallable; + } + + @Override + public UnaryCallable + listLicenseConfigsPagedCallable() { + return listLicenseConfigsPagedCallable; + } + + @Override + public UnaryCallable + distributeLicenseConfigCallable() { + return distributeLicenseConfigCallable; + } + + @Override + public UnaryCallable + retractLicenseConfigCallable() { + return retractLicenseConfigCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcServingConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcServingConfigServiceStub.java index 5fdc799d0c2b..fea1f3dce36b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcServingConfigServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcServingConfigServiceStub.java @@ -26,12 +26,15 @@ 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.v1beta.CreateServingConfigRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest; import com.google.cloud.discoveryengine.v1beta.GetServingConfigRequest; import com.google.cloud.discoveryengine.v1beta.ListServingConfigsRequest; import com.google.cloud.discoveryengine.v1beta.ListServingConfigsResponse; import com.google.cloud.discoveryengine.v1beta.ServingConfig; import com.google.cloud.discoveryengine.v1beta.UpdateServingConfigRequest; import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; @@ -47,6 +50,30 @@ @BetaApi @Generated("by gapic-generator-java") public class GrpcServingConfigServiceStub extends ServingConfigServiceStub { + private static final MethodDescriptor + createServingConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.ServingConfigService/CreateServingConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateServingConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ServingConfig.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteServingConfigMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.ServingConfigService/DeleteServingConfig") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteServingConfigRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor updateServingConfigMethodDescriptor = MethodDescriptor.newBuilder() @@ -84,6 +111,9 @@ public class GrpcServingConfigServiceStub extends ServingConfigServiceStub { .setSampledToLocalTracing(true) .build(); + private final UnaryCallable + createServingConfigCallable; + private final UnaryCallable deleteServingConfigCallable; private final UnaryCallable updateServingConfigCallable; private final UnaryCallable getServingConfigCallable; @@ -136,6 +166,29 @@ protected GrpcServingConfigServiceStub( this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + GrpcCallSettings + createServingConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createServingConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings deleteServingConfigTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteServingConfigMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings updateServingConfigTransportSettings = GrpcCallSettings.newBuilder() @@ -173,6 +226,16 @@ protected GrpcServingConfigServiceStub( .setResourceNameExtractor(request -> request.getParent()) .build(); + this.createServingConfigCallable = + callableFactory.createUnaryCallable( + createServingConfigTransportSettings, + settings.createServingConfigSettings(), + clientContext); + this.deleteServingConfigCallable = + callableFactory.createUnaryCallable( + deleteServingConfigTransportSettings, + settings.deleteServingConfigSettings(), + clientContext); this.updateServingConfigCallable = callableFactory.createUnaryCallable( updateServingConfigTransportSettings, @@ -200,6 +263,16 @@ public GrpcOperationsStub getOperationsStub() { return operationsStub; } + @Override + public UnaryCallable createServingConfigCallable() { + return createServingConfigCallable; + } + + @Override + public UnaryCallable deleteServingConfigCallable() { + return deleteServingConfigCallable; + } + @Override public UnaryCallable updateServingConfigCallable() { return updateServingConfigCallable; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserLicenseServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserLicenseServiceCallableFactory.java new file mode 100644 index 000000000000..71917c9a1a9c --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserLicenseServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the UserLicenseService service API. + * + *

            This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcUserLicenseServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserLicenseServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserLicenseServiceStub.java new file mode 100644 index 000000000000..25e8e0c09fc0 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserLicenseServiceStub.java @@ -0,0 +1,292 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import static com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient.ListUserLicensesPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +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.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata; +import com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest; +import com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse; +import com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest; +import com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the UserLicenseService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcUserLicenseServiceStub extends UserLicenseServiceStub { + private static final MethodDescriptor + listUserLicensesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.UserLicenseService/ListUserLicenses") + .setRequestMarshaller( + ProtoUtils.marshaller(ListUserLicensesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListUserLicensesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse> + listLicenseConfigsUsageStatsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.UserLicenseService/ListLicenseConfigsUsageStats") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLicenseConfigsUsageStatsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLicenseConfigsUsageStatsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + batchUpdateUserLicensesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.UserLicenseService/BatchUpdateUserLicenses") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchUpdateUserLicensesRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + listUserLicensesCallable; + private final UnaryCallable + listUserLicensesPagedCallable; + private final UnaryCallable< + ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse> + listLicenseConfigsUsageStatsCallable; + private final UnaryCallable + batchUpdateUserLicensesCallable; + private final OperationCallable< + BatchUpdateUserLicensesRequest, + BatchUpdateUserLicensesResponse, + BatchUpdateUserLicensesMetadata> + batchUpdateUserLicensesOperationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcUserLicenseServiceStub create(UserLicenseServiceStubSettings settings) + throws IOException { + return new GrpcUserLicenseServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcUserLicenseServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcUserLicenseServiceStub( + UserLicenseServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcUserLicenseServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcUserLicenseServiceStub( + UserLicenseServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcUserLicenseServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcUserLicenseServiceStub( + UserLicenseServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcUserLicenseServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcUserLicenseServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcUserLicenseServiceStub( + UserLicenseServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listUserLicensesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listUserLicensesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + listLicenseConfigsUsageStatsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listLicenseConfigsUsageStatsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + batchUpdateUserLicensesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchUpdateUserLicensesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + + this.listUserLicensesCallable = + callableFactory.createUnaryCallable( + listUserLicensesTransportSettings, settings.listUserLicensesSettings(), clientContext); + this.listUserLicensesPagedCallable = + callableFactory.createPagedCallable( + listUserLicensesTransportSettings, settings.listUserLicensesSettings(), clientContext); + this.listLicenseConfigsUsageStatsCallable = + callableFactory.createUnaryCallable( + listLicenseConfigsUsageStatsTransportSettings, + settings.listLicenseConfigsUsageStatsSettings(), + clientContext); + this.batchUpdateUserLicensesCallable = + callableFactory.createUnaryCallable( + batchUpdateUserLicensesTransportSettings, + settings.batchUpdateUserLicensesSettings(), + clientContext); + this.batchUpdateUserLicensesOperationCallable = + callableFactory.createOperationCallable( + batchUpdateUserLicensesTransportSettings, + settings.batchUpdateUserLicensesOperationSettings(), + clientContext, + operationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listUserLicensesCallable() { + return listUserLicensesCallable; + } + + @Override + public UnaryCallable + listUserLicensesPagedCallable() { + return listUserLicensesPagedCallable; + } + + @Override + public UnaryCallable + listLicenseConfigsUsageStatsCallable() { + return listLicenseConfigsUsageStatsCallable; + } + + @Override + public UnaryCallable + batchUpdateUserLicensesCallable() { + return batchUpdateUserLicensesCallable; + } + + @Override + public OperationCallable< + BatchUpdateUserLicensesRequest, + BatchUpdateUserLicensesResponse, + BatchUpdateUserLicensesMetadata> + batchUpdateUserLicensesOperationCallable() { + return batchUpdateUserLicensesOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserStoreServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserStoreServiceCallableFactory.java new file mode 100644 index 000000000000..2d7d67a126dd --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserStoreServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the UserStoreService service API. + * + *

            This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcUserStoreServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserStoreServiceStub.java new file mode 100644 index 000000000000..988732d3a9b8 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/GrpcUserStoreServiceStub.java @@ -0,0 +1,198 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +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.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest; +import com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest; +import com.google.cloud.discoveryengine.v1beta.UserStore; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the UserStoreService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcUserStoreServiceStub extends UserStoreServiceStub { + private static final MethodDescriptor + getUserStoreMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.UserStoreService/GetUserStore") + .setRequestMarshaller(ProtoUtils.marshaller(GetUserStoreRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(UserStore.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateUserStoreMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.UserStoreService/UpdateUserStore") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateUserStoreRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(UserStore.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable getUserStoreCallable; + private final UnaryCallable updateUserStoreCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcUserStoreServiceStub create(UserStoreServiceStubSettings settings) + throws IOException { + return new GrpcUserStoreServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcUserStoreServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcUserStoreServiceStub( + UserStoreServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcUserStoreServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcUserStoreServiceStub( + UserStoreServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcUserStoreServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcUserStoreServiceStub( + UserStoreServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcUserStoreServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcUserStoreServiceStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcUserStoreServiceStub( + UserStoreServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getUserStoreTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getUserStoreMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings updateUserStoreTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateUserStoreMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("user_store.name", String.valueOf(request.getUserStore().getName())); + return builder.build(); + }) + .build(); + + this.getUserStoreCallable = + callableFactory.createUnaryCallable( + getUserStoreTransportSettings, settings.getUserStoreSettings(), clientContext); + this.updateUserStoreCallable = + callableFactory.createUnaryCallable( + updateUserStoreTransportSettings, settings.updateUserStoreSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getUserStoreCallable() { + return getUserStoreCallable; + } + + @Override + public UnaryCallable updateUserStoreCallable() { + return updateUserStoreCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonAclConfigServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonAclConfigServiceCallableFactory.java new file mode 100644 index 000000000000..1a05e6997796 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonAclConfigServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AclConfigService service API. + * + *

            This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAclConfigServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonAclConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonAclConfigServiceStub.java new file mode 100644 index 000000000000..174e1841b4c7 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonAclConfigServiceStub.java @@ -0,0 +1,262 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +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.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.AclConfig; +import com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest; +import com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AclConfigService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAclConfigServiceStub extends AclConfigServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + updateAclConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.AclConfigService/UpdateAclConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{aclConfig.name=projects/*/locations/*/aclConfig}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "aclConfig.name", request.getAclConfig().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("aclConfig", request.getAclConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AclConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAclConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.AclConfigService/GetAclConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/aclConfig}", + 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(AclConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable updateAclConfigCallable; + private final UnaryCallable getAclConfigCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAclConfigServiceStub create(AclConfigServiceStubSettings settings) + throws IOException { + return new HttpJsonAclConfigServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAclConfigServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAclConfigServiceStub( + AclConfigServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAclConfigServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAclConfigServiceStub( + AclConfigServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAclConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAclConfigServiceStub( + AclConfigServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonAclConfigServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAclConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAclConfigServiceStub( + AclConfigServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings updateAclConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAclConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("acl_config.name", String.valueOf(request.getAclConfig().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getAclConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAclConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.updateAclConfigCallable = + callableFactory.createUnaryCallable( + updateAclConfigTransportSettings, settings.updateAclConfigSettings(), clientContext); + this.getAclConfigCallable = + callableFactory.createUnaryCallable( + getAclConfigTransportSettings, settings.getAclConfigSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(updateAclConfigMethodDescriptor); + methodDescriptors.add(getAclConfigMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable updateAclConfigCallable() { + return updateAclConfigCallable; + } + + @Override + public UnaryCallable getAclConfigCallable() { + return getAclConfigCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonAssistantServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonAssistantServiceCallableFactory.java new file mode 100644 index 000000000000..9a096e92b502 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonAssistantServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AssistantService service API. + * + *

            This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAssistantServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonAssistantServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonAssistantServiceStub.java new file mode 100644 index 000000000000..577b5cb90daf --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonAssistantServiceStub.java @@ -0,0 +1,524 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import static com.google.cloud.discoveryengine.v1beta.AssistantServiceClient.ListAssistantsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +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.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.Assistant; +import com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest; +import com.google.cloud.discoveryengine.v1beta.GetAssistantRequest; +import com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest; +import com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse; +import com.google.cloud.discoveryengine.v1beta.StreamAssistRequest; +import com.google.cloud.discoveryengine.v1beta.StreamAssistResponse; +import com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AssistantService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAssistantServiceStub extends AssistantServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + streamAssistMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.AssistantService/StreamAssist") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.SERVER_STREAMING) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*}:streamAssist", + 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(StreamAssistResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createAssistantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.AssistantService/CreateAssistant") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/collections/*/engines/*}/assistants", + 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, "assistantId", request.getAssistantId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("assistant", request.getAssistant(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Assistant.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteAssistantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.AssistantService/DeleteAssistant") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*}", + 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 + updateAssistantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.AssistantService/UpdateAssistant") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{assistant.name=projects/*/locations/*/collections/*/engines/*/assistants/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "assistant.name", request.getAssistant().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("assistant", request.getAssistant(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Assistant.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAssistantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.AssistantService/GetAssistant") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*}", + 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(Assistant.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listAssistantsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.AssistantService/ListAssistants") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/collections/*/engines/*}/assistants", + 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(ListAssistantsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final ServerStreamingCallable + streamAssistCallable; + private final UnaryCallable createAssistantCallable; + private final UnaryCallable deleteAssistantCallable; + private final UnaryCallable updateAssistantCallable; + private final UnaryCallable getAssistantCallable; + private final UnaryCallable listAssistantsCallable; + private final UnaryCallable + listAssistantsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAssistantServiceStub create(AssistantServiceStubSettings settings) + throws IOException { + return new HttpJsonAssistantServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAssistantServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAssistantServiceStub( + AssistantServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAssistantServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAssistantServiceStub( + AssistantServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAssistantServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAssistantServiceStub( + AssistantServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonAssistantServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAssistantServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAssistantServiceStub( + AssistantServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings streamAssistTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(streamAssistMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings createAssistantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAssistantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings deleteAssistantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAssistantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings updateAssistantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAssistantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("assistant.name", String.valueOf(request.getAssistant().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getAssistantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAssistantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listAssistantsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAssistantsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + + this.streamAssistCallable = + callableFactory.createServerStreamingCallable( + streamAssistTransportSettings, settings.streamAssistSettings(), clientContext); + this.createAssistantCallable = + callableFactory.createUnaryCallable( + createAssistantTransportSettings, settings.createAssistantSettings(), clientContext); + this.deleteAssistantCallable = + callableFactory.createUnaryCallable( + deleteAssistantTransportSettings, settings.deleteAssistantSettings(), clientContext); + this.updateAssistantCallable = + callableFactory.createUnaryCallable( + updateAssistantTransportSettings, settings.updateAssistantSettings(), clientContext); + this.getAssistantCallable = + callableFactory.createUnaryCallable( + getAssistantTransportSettings, settings.getAssistantSettings(), clientContext); + this.listAssistantsCallable = + callableFactory.createUnaryCallable( + listAssistantsTransportSettings, settings.listAssistantsSettings(), clientContext); + this.listAssistantsPagedCallable = + callableFactory.createPagedCallable( + listAssistantsTransportSettings, settings.listAssistantsSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(streamAssistMethodDescriptor); + methodDescriptors.add(createAssistantMethodDescriptor); + methodDescriptors.add(deleteAssistantMethodDescriptor); + methodDescriptors.add(updateAssistantMethodDescriptor); + methodDescriptors.add(getAssistantMethodDescriptor); + methodDescriptors.add(listAssistantsMethodDescriptor); + return methodDescriptors; + } + + @Override + public ServerStreamingCallable streamAssistCallable() { + return streamAssistCallable; + } + + @Override + public UnaryCallable createAssistantCallable() { + return createAssistantCallable; + } + + @Override + public UnaryCallable deleteAssistantCallable() { + return deleteAssistantCallable; + } + + @Override + public UnaryCallable updateAssistantCallable() { + return updateAssistantCallable; + } + + @Override + public UnaryCallable getAssistantCallable() { + return getAssistantCallable; + } + + @Override + public UnaryCallable listAssistantsCallable() { + return listAssistantsCallable; + } + + @Override + public UnaryCallable + listAssistantsPagedCallable() { + return listAssistantsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCmekConfigServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCmekConfigServiceCallableFactory.java new file mode 100644 index 000000000000..878b5d3b206d --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCmekConfigServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the CmekConfigService service API. + * + *

            This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonCmekConfigServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCmekConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCmekConfigServiceStub.java new file mode 100644 index 000000000000..a5e67e908386 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCmekConfigServiceStub.java @@ -0,0 +1,620 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +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.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CmekConfig; +import com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata; +import com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest; +import com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest; +import com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest; +import com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse; +import com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata; +import com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the CmekConfigService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonCmekConfigServiceStub extends CmekConfigServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(UpdateCmekConfigMetadata.getDescriptor()) + .add(DeleteCmekConfigMetadata.getDescriptor()) + .add(CmekConfig.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + updateCmekConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.CmekConfigService/UpdateCmekConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{config.name=projects/*/locations/*/cmekConfig}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "config.name", request.getConfig().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1beta/{config.name=projects/*/locations/*/cmekConfigs/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "setDefault", request.getSetDefault()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("config", request.getConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateCmekConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getCmekConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.CmekConfigService/GetCmekConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/cmekConfig}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths("/v1beta/{name=projects/*/locations/*/cmekConfigs/*}") + .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(CmekConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listCmekConfigsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.CmekConfigService/ListCmekConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*}/cmekConfigs", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListCmekConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteCmekConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.CmekConfigService/DeleteCmekConfig") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/cmekConfigs/*}", + 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( + (DeleteCmekConfigRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable updateCmekConfigCallable; + private final OperationCallable + updateCmekConfigOperationCallable; + private final UnaryCallable getCmekConfigCallable; + private final UnaryCallable + listCmekConfigsCallable; + private final UnaryCallable deleteCmekConfigCallable; + private final OperationCallable + deleteCmekConfigOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonCmekConfigServiceStub create(CmekConfigServiceStubSettings settings) + throws IOException { + return new HttpJsonCmekConfigServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonCmekConfigServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonCmekConfigServiceStub( + CmekConfigServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonCmekConfigServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonCmekConfigServiceStub( + CmekConfigServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonCmekConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonCmekConfigServiceStub( + CmekConfigServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonCmekConfigServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonCmekConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonCmekConfigServiceStub( + CmekConfigServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel") + .build()) + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataConnector}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/locations/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*}/operations") + .build()) + .build()) + .build()); + + HttpJsonCallSettings updateCmekConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCmekConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("config.name", String.valueOf(request.getConfig().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getCmekConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getCmekConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listCmekConfigsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listCmekConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings deleteCmekConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteCmekConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.updateCmekConfigCallable = + callableFactory.createUnaryCallable( + updateCmekConfigTransportSettings, settings.updateCmekConfigSettings(), clientContext); + this.updateCmekConfigOperationCallable = + callableFactory.createOperationCallable( + updateCmekConfigTransportSettings, + settings.updateCmekConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getCmekConfigCallable = + callableFactory.createUnaryCallable( + getCmekConfigTransportSettings, settings.getCmekConfigSettings(), clientContext); + this.listCmekConfigsCallable = + callableFactory.createUnaryCallable( + listCmekConfigsTransportSettings, settings.listCmekConfigsSettings(), clientContext); + this.deleteCmekConfigCallable = + callableFactory.createUnaryCallable( + deleteCmekConfigTransportSettings, settings.deleteCmekConfigSettings(), clientContext); + this.deleteCmekConfigOperationCallable = + callableFactory.createOperationCallable( + deleteCmekConfigTransportSettings, + settings.deleteCmekConfigOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(updateCmekConfigMethodDescriptor); + methodDescriptors.add(getCmekConfigMethodDescriptor); + methodDescriptors.add(listCmekConfigsMethodDescriptor); + methodDescriptors.add(deleteCmekConfigMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable updateCmekConfigCallable() { + return updateCmekConfigCallable; + } + + @Override + public OperationCallable + updateCmekConfigOperationCallable() { + return updateCmekConfigOperationCallable; + } + + @Override + public UnaryCallable getCmekConfigCallable() { + return getCmekConfigCallable; + } + + @Override + public UnaryCallable listCmekConfigsCallable() { + return listCmekConfigsCallable; + } + + @Override + public UnaryCallable deleteCmekConfigCallable() { + return deleteCmekConfigCallable; + } + + @Override + public OperationCallable + deleteCmekConfigOperationCallable() { + return deleteCmekConfigOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCompletionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCompletionServiceStub.java index 5c1a93df66d4..aabf36f74283 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCompletionServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonCompletionServiceStub.java @@ -49,6 +49,8 @@ import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest; import com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse; +import com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest; +import com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.protobuf.TypeRegistry; @@ -345,6 +347,48 @@ public class HttpJsonCompletionServiceStub extends CompletionServiceStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + removeSuggestionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.CompletionService/RemoveSuggestion") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{completionConfig=projects/*/locations/*/collections/*/engines/*/completionConfig}:removeSuggestion", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "completionConfig", request.getCompletionConfig()); + 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().clearCompletionConfig().build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RemoveSuggestionResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable completeQueryCallable; private final UnaryCallable advancedCompleteQueryCallable; @@ -376,6 +420,8 @@ public class HttpJsonCompletionServiceStub extends CompletionServiceStub { PurgeCompletionSuggestionsResponse, PurgeCompletionSuggestionsMetadata> purgeCompletionSuggestionsOperationCallable; + private final UnaryCallable + removeSuggestionCallable; private final BackgroundResource backgroundResources; private final HttpJsonOperationsStub httpJsonOperationsStub; @@ -471,6 +517,11 @@ protected HttpJsonCompletionServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( @@ -501,6 +552,11 @@ protected HttpJsonCompletionServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") @@ -575,6 +631,11 @@ protected HttpJsonCompletionServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*}/operations") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*}/operations") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*}/operations") @@ -666,6 +727,20 @@ protected HttpJsonCompletionServiceStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings + removeSuggestionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(removeSuggestionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "completion_config", String.valueOf(request.getCompletionConfig())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getCompletionConfig()) + .build(); this.completeQueryCallable = callableFactory.createUnaryCallable( @@ -719,6 +794,9 @@ protected HttpJsonCompletionServiceStub( settings.purgeCompletionSuggestionsOperationSettings(), clientContext, httpJsonOperationsStub); + this.removeSuggestionCallable = + callableFactory.createUnaryCallable( + removeSuggestionTransportSettings, settings.removeSuggestionSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -733,6 +811,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(purgeSuggestionDenyListEntriesMethodDescriptor); methodDescriptors.add(importCompletionSuggestionsMethodDescriptor); methodDescriptors.add(purgeCompletionSuggestionsMethodDescriptor); + methodDescriptors.add(removeSuggestionMethodDescriptor); return methodDescriptors; } @@ -811,6 +890,12 @@ public UnaryCallable completeQueryC return purgeCompletionSuggestionsOperationCallable; } + @Override + public UnaryCallable + removeSuggestionCallable() { + return removeSuggestionCallable; + } + @Override public final void close() { try { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonConversationalSearchServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonConversationalSearchServiceStub.java index 5de02a7a9de0..e2fda4dcebed 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonConversationalSearchServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonConversationalSearchServiceStub.java @@ -31,6 +31,7 @@ import com.google.api.gax.httpjson.ProtoRestSerializer; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.discoveryengine.v1beta.Answer; import com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest; @@ -361,6 +362,49 @@ public class HttpJsonConversationalSearchServiceStub extends ConversationalSearc .build()) .build(); + private static final ApiMethodDescriptor + streamAnswerQueryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.ConversationalSearchService/StreamAnswerQuery") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.SERVER_STREAMING) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{servingConfig=projects/*/locations/*/dataStores/*/servingConfigs/*}:streamAnswer", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "servingConfig", request.getServingConfig()); + return fields; + }) + .setAdditionalPaths( + "/v1beta/{servingConfig=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:streamAnswer", + "/v1beta/{servingConfig=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}:streamAnswer") + .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(AnswerQueryResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor getAnswerMethodDescriptor = ApiMethodDescriptor.newBuilder() .setFullMethodName( @@ -424,6 +468,7 @@ public class HttpJsonConversationalSearchServiceStub extends ConversationalSearc Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "sessionId", request.getSessionId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -612,6 +657,8 @@ public class HttpJsonConversationalSearchServiceStub extends ConversationalSearc private final UnaryCallable listConversationsPagedCallable; private final UnaryCallable answerQueryCallable; + private final ServerStreamingCallable + streamAnswerQueryCallable; private final UnaryCallable getAnswerCallable; private final UnaryCallable createSessionCallable; private final UnaryCallable deleteSessionCallable; @@ -755,6 +802,19 @@ protected HttpJsonConversationalSearchServiceStub( }) .setResourceNameExtractor(request -> request.getServingConfig()) .build(); + HttpJsonCallSettings + streamAnswerQueryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(streamAnswerQueryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("serving_config", String.valueOf(request.getServingConfig())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getServingConfig()) + .build(); HttpJsonCallSettings getAnswerTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getAnswerMethodDescriptor) @@ -863,6 +923,11 @@ protected HttpJsonConversationalSearchServiceStub( this.answerQueryCallable = callableFactory.createUnaryCallable( answerQueryTransportSettings, settings.answerQuerySettings(), clientContext); + this.streamAnswerQueryCallable = + callableFactory.createServerStreamingCallable( + streamAnswerQueryTransportSettings, + settings.streamAnswerQuerySettings(), + clientContext); this.getAnswerCallable = callableFactory.createUnaryCallable( getAnswerTransportSettings, settings.getAnswerSettings(), clientContext); @@ -899,6 +964,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(getConversationMethodDescriptor); methodDescriptors.add(listConversationsMethodDescriptor); methodDescriptors.add(answerQueryMethodDescriptor); + methodDescriptors.add(streamAnswerQueryMethodDescriptor); methodDescriptors.add(getAnswerMethodDescriptor); methodDescriptors.add(createSessionMethodDescriptor); methodDescriptors.add(deleteSessionMethodDescriptor); @@ -951,6 +1017,12 @@ public UnaryCallable answerQueryCallabl return answerQueryCallable; } + @Override + public ServerStreamingCallable + streamAnswerQueryCallable() { + return streamAnswerQueryCallable; + } + @Override public UnaryCallable getAnswerCallable() { return getAnswerCallable; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDataStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDataStoreServiceStub.java index c3b4cdb5a011..7a960d9b4216 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDataStoreServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDataStoreServiceStub.java @@ -98,12 +98,16 @@ public class HttpJsonDataStoreServiceStub extends DataStoreServiceStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "cmekConfigName", request.getCmekConfigName()); serializer.putQueryParam( fields, "createAdvancedSiteSearch", request.getCreateAdvancedSiteSearch()); serializer.putQueryParam( fields, "dataStoreId", request.getDataStoreId()); + serializer.putQueryParam( + fields, "disableCmek", request.getDisableCmek()); serializer.putQueryParam( fields, "skipDefaultSchemaCreation", @@ -391,6 +395,11 @@ protected HttpJsonDataStoreServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( @@ -421,6 +430,11 @@ protected HttpJsonDataStoreServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") @@ -495,6 +509,11 @@ protected HttpJsonDataStoreServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*}/operations") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*}/operations") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*}/operations") @@ -516,7 +535,7 @@ protected HttpJsonDataStoreServiceStub( builder.add("parent", String.valueOf(request.getParent())); return builder.build(); }) - .setResourceNameExtractor(request -> request.getParent()) + .setResourceNameExtractor(request -> request.getCmekConfigName()) .build(); HttpJsonCallSettings getDataStoreTransportSettings = HttpJsonCallSettings.newBuilder() diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceStub.java index 7476c927818f..785041edab37 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonDocumentServiceStub.java @@ -514,6 +514,11 @@ protected HttpJsonDocumentServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( @@ -544,6 +549,11 @@ protected HttpJsonDocumentServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") @@ -618,6 +628,11 @@ protected HttpJsonDocumentServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*}/operations") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*}/operations") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*}/operations") diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonEngineServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonEngineServiceStub.java index 8ab75bc86160..5b87ae1086e8 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonEngineServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonEngineServiceStub.java @@ -50,6 +50,9 @@ import com.google.cloud.discoveryengine.v1beta.TuneEngineResponse; import com.google.cloud.discoveryengine.v1beta.UpdateEngineRequest; import com.google.common.collect.ImmutableMap; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; @@ -380,6 +383,78 @@ public class HttpJsonEngineServiceStub extends EngineServiceStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1beta.EngineService/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{resource=projects/*/locations/*/collections/*/engines/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "options", request.getOptions()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.discoveryengine.v1beta.EngineService/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{resource=projects/*/locations/*/collections/*/engines/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + 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().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable createEngineCallable; private final OperationCallable createEngineOperationCallable; @@ -396,6 +471,8 @@ public class HttpJsonEngineServiceStub extends EngineServiceStub { private final UnaryCallable tuneEngineCallable; private final OperationCallable tuneEngineOperationCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable setIamPolicyCallable; private final BackgroundResource backgroundResources; private final HttpJsonOperationsStub httpJsonOperationsStub; @@ -491,6 +568,11 @@ protected HttpJsonEngineServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( @@ -521,6 +603,11 @@ protected HttpJsonEngineServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") @@ -595,6 +682,11 @@ protected HttpJsonEngineServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*}/operations") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*}/operations") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*}/operations") @@ -701,6 +793,30 @@ protected HttpJsonEngineServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); this.createEngineCallable = callableFactory.createUnaryCallable( @@ -747,6 +863,12 @@ protected HttpJsonEngineServiceStub( settings.tuneEngineOperationSettings(), clientContext, httpJsonOperationsStub); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -763,6 +885,8 @@ public static List getMethodDescriptors() { methodDescriptors.add(pauseEngineMethodDescriptor); methodDescriptors.add(resumeEngineMethodDescriptor); methodDescriptors.add(tuneEngineMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); return methodDescriptors; } @@ -833,6 +957,16 @@ public UnaryCallable tuneEngineCallable() { return tuneEngineOperationCallable; } + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + @Override public final void close() { try { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonEvaluationServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonEvaluationServiceStub.java index 339216f7bb15..851a865ee5d2 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonEvaluationServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonEvaluationServiceStub.java @@ -329,6 +329,11 @@ protected HttpJsonEvaluationServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( @@ -359,6 +364,11 @@ protected HttpJsonEvaluationServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") @@ -433,6 +443,11 @@ protected HttpJsonEvaluationServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*}/operations") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*}/operations") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*}/operations") diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonIdentityMappingStoreServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonIdentityMappingStoreServiceCallableFactory.java new file mode 100644 index 000000000000..886acbc559cc --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonIdentityMappingStoreServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the IdentityMappingStoreService service API. + * + *

            This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonIdentityMappingStoreServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonIdentityMappingStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonIdentityMappingStoreServiceStub.java new file mode 100644 index 000000000000..960d75302bbf --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonIdentityMappingStoreServiceStub.java @@ -0,0 +1,926 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import static com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient.ListIdentityMappingStoresPagedResponse; +import static com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient.ListIdentityMappingsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +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.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata; +import com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest; +import com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStore; +import com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest; +import com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse; +import com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the IdentityMappingStoreService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonIdentityMappingStoreServiceStub extends IdentityMappingStoreServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(IdentityMappingEntryOperationMetadata.getDescriptor()) + .add(Empty.getDescriptor()) + .add(DeleteIdentityMappingStoreMetadata.getDescriptor()) + .add(ImportIdentityMappingsResponse.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + createIdentityMappingStoreMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.IdentityMappingStoreService/CreateIdentityMappingStore") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*}/identityMappingStores", + 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, "cmekConfigName", request.getCmekConfigName()); + serializer.putQueryParam( + fields, "disableCmek", request.getDisableCmek()); + serializer.putQueryParam( + fields, + "identityMappingStoreId", + request.getIdentityMappingStoreId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "identityMappingStore", + request.getIdentityMappingStore(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(IdentityMappingStore.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIdentityMappingStoreMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.IdentityMappingStoreService/GetIdentityMappingStore") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*}", + 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(IdentityMappingStore.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteIdentityMappingStoreMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.IdentityMappingStoreService/DeleteIdentityMappingStore") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*}", + 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( + (DeleteIdentityMappingStoreRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + importIdentityMappingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.IdentityMappingStoreService/ImportIdentityMappings") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{identityMappingStore=projects/*/locations/*/identityMappingStores/*}:importIdentityMappings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "identityMappingStore", request.getIdentityMappingStore()); + 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().clearIdentityMappingStore().build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ImportIdentityMappingsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + purgeIdentityMappingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.IdentityMappingStoreService/PurgeIdentityMappings") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{identityMappingStore=projects/*/locations/*/identityMappingStores/*}:purgeIdentityMappings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "identityMappingStore", request.getIdentityMappingStore()); + 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().clearIdentityMappingStore().build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (PurgeIdentityMappingsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + ListIdentityMappingsRequest, ListIdentityMappingsResponse> + listIdentityMappingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.IdentityMappingStoreService/ListIdentityMappings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{identityMappingStore=projects/*/locations/*/identityMappingStores/*}:listIdentityMappings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "identityMappingStore", request.getIdentityMappingStore()); + 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(ListIdentityMappingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListIdentityMappingStoresRequest, ListIdentityMappingStoresResponse> + listIdentityMappingStoresMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.IdentityMappingStoreService/ListIdentityMappingStores") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*}/identityMappingStores", + 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(ListIdentityMappingStoresResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + createIdentityMappingStoreCallable; + private final UnaryCallable + getIdentityMappingStoreCallable; + private final UnaryCallable + deleteIdentityMappingStoreCallable; + private final OperationCallable< + DeleteIdentityMappingStoreRequest, Empty, DeleteIdentityMappingStoreMetadata> + deleteIdentityMappingStoreOperationCallable; + private final UnaryCallable + importIdentityMappingsCallable; + private final OperationCallable< + ImportIdentityMappingsRequest, + ImportIdentityMappingsResponse, + IdentityMappingEntryOperationMetadata> + importIdentityMappingsOperationCallable; + private final UnaryCallable + purgeIdentityMappingsCallable; + private final OperationCallable< + PurgeIdentityMappingsRequest, Empty, IdentityMappingEntryOperationMetadata> + purgeIdentityMappingsOperationCallable; + private final UnaryCallable + listIdentityMappingsCallable; + private final UnaryCallable + listIdentityMappingsPagedCallable; + private final UnaryCallable + listIdentityMappingStoresCallable; + private final UnaryCallable< + ListIdentityMappingStoresRequest, ListIdentityMappingStoresPagedResponse> + listIdentityMappingStoresPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonIdentityMappingStoreServiceStub create( + IdentityMappingStoreServiceStubSettings settings) throws IOException { + return new HttpJsonIdentityMappingStoreServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonIdentityMappingStoreServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonIdentityMappingStoreServiceStub( + IdentityMappingStoreServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonIdentityMappingStoreServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonIdentityMappingStoreServiceStub( + IdentityMappingStoreServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonIdentityMappingStoreServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected HttpJsonIdentityMappingStoreServiceStub( + IdentityMappingStoreServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonIdentityMappingStoreServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonIdentityMappingStoreServiceStub, using the given settings. + * This is protected so that it is easy to make a subclass, but otherwise, the static factory + * methods should be preferred. + */ + protected HttpJsonIdentityMappingStoreServiceStub( + IdentityMappingStoreServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel") + .build()) + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataConnector}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/locations/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*}/operations") + .build()) + .build()) + .build()); + + HttpJsonCallSettings + createIdentityMappingStoreTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(createIdentityMappingStoreMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getCmekConfigName()) + .build(); + HttpJsonCallSettings + getIdentityMappingStoreTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIdentityMappingStoreMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + deleteIdentityMappingStoreTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteIdentityMappingStoreMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + importIdentityMappingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(importIdentityMappingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "identity_mapping_store", + String.valueOf(request.getIdentityMappingStore())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getIdentityMappingStore()) + .build(); + HttpJsonCallSettings + purgeIdentityMappingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(purgeIdentityMappingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "identity_mapping_store", + String.valueOf(request.getIdentityMappingStore())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getIdentityMappingStore()) + .build(); + HttpJsonCallSettings + listIdentityMappingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listIdentityMappingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "identity_mapping_store", + String.valueOf(request.getIdentityMappingStore())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getIdentityMappingStore()) + .build(); + HttpJsonCallSettings + listIdentityMappingStoresTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listIdentityMappingStoresMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + + this.createIdentityMappingStoreCallable = + callableFactory.createUnaryCallable( + createIdentityMappingStoreTransportSettings, + settings.createIdentityMappingStoreSettings(), + clientContext); + this.getIdentityMappingStoreCallable = + callableFactory.createUnaryCallable( + getIdentityMappingStoreTransportSettings, + settings.getIdentityMappingStoreSettings(), + clientContext); + this.deleteIdentityMappingStoreCallable = + callableFactory.createUnaryCallable( + deleteIdentityMappingStoreTransportSettings, + settings.deleteIdentityMappingStoreSettings(), + clientContext); + this.deleteIdentityMappingStoreOperationCallable = + callableFactory.createOperationCallable( + deleteIdentityMappingStoreTransportSettings, + settings.deleteIdentityMappingStoreOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.importIdentityMappingsCallable = + callableFactory.createUnaryCallable( + importIdentityMappingsTransportSettings, + settings.importIdentityMappingsSettings(), + clientContext); + this.importIdentityMappingsOperationCallable = + callableFactory.createOperationCallable( + importIdentityMappingsTransportSettings, + settings.importIdentityMappingsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.purgeIdentityMappingsCallable = + callableFactory.createUnaryCallable( + purgeIdentityMappingsTransportSettings, + settings.purgeIdentityMappingsSettings(), + clientContext); + this.purgeIdentityMappingsOperationCallable = + callableFactory.createOperationCallable( + purgeIdentityMappingsTransportSettings, + settings.purgeIdentityMappingsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listIdentityMappingsCallable = + callableFactory.createUnaryCallable( + listIdentityMappingsTransportSettings, + settings.listIdentityMappingsSettings(), + clientContext); + this.listIdentityMappingsPagedCallable = + callableFactory.createPagedCallable( + listIdentityMappingsTransportSettings, + settings.listIdentityMappingsSettings(), + clientContext); + this.listIdentityMappingStoresCallable = + callableFactory.createUnaryCallable( + listIdentityMappingStoresTransportSettings, + settings.listIdentityMappingStoresSettings(), + clientContext); + this.listIdentityMappingStoresPagedCallable = + callableFactory.createPagedCallable( + listIdentityMappingStoresTransportSettings, + settings.listIdentityMappingStoresSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createIdentityMappingStoreMethodDescriptor); + methodDescriptors.add(getIdentityMappingStoreMethodDescriptor); + methodDescriptors.add(deleteIdentityMappingStoreMethodDescriptor); + methodDescriptors.add(importIdentityMappingsMethodDescriptor); + methodDescriptors.add(purgeIdentityMappingsMethodDescriptor); + methodDescriptors.add(listIdentityMappingsMethodDescriptor); + methodDescriptors.add(listIdentityMappingStoresMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable + createIdentityMappingStoreCallable() { + return createIdentityMappingStoreCallable; + } + + @Override + public UnaryCallable + getIdentityMappingStoreCallable() { + return getIdentityMappingStoreCallable; + } + + @Override + public UnaryCallable + deleteIdentityMappingStoreCallable() { + return deleteIdentityMappingStoreCallable; + } + + @Override + public OperationCallable< + DeleteIdentityMappingStoreRequest, Empty, DeleteIdentityMappingStoreMetadata> + deleteIdentityMappingStoreOperationCallable() { + return deleteIdentityMappingStoreOperationCallable; + } + + @Override + public UnaryCallable importIdentityMappingsCallable() { + return importIdentityMappingsCallable; + } + + @Override + public OperationCallable< + ImportIdentityMappingsRequest, + ImportIdentityMappingsResponse, + IdentityMappingEntryOperationMetadata> + importIdentityMappingsOperationCallable() { + return importIdentityMappingsOperationCallable; + } + + @Override + public UnaryCallable purgeIdentityMappingsCallable() { + return purgeIdentityMappingsCallable; + } + + @Override + public OperationCallable< + PurgeIdentityMappingsRequest, Empty, IdentityMappingEntryOperationMetadata> + purgeIdentityMappingsOperationCallable() { + return purgeIdentityMappingsOperationCallable; + } + + @Override + public UnaryCallable + listIdentityMappingsCallable() { + return listIdentityMappingsCallable; + } + + @Override + public UnaryCallable + listIdentityMappingsPagedCallable() { + return listIdentityMappingsPagedCallable; + } + + @Override + public UnaryCallable + listIdentityMappingStoresCallable() { + return listIdentityMappingStoresCallable; + } + + @Override + public UnaryCallable + listIdentityMappingStoresPagedCallable() { + return listIdentityMappingStoresPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonLicenseConfigServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonLicenseConfigServiceCallableFactory.java new file mode 100644 index 000000000000..682d9b52c95c --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonLicenseConfigServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the LicenseConfigService service API. + * + *

            This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonLicenseConfigServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonLicenseConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonLicenseConfigServiceStub.java new file mode 100644 index 000000000000..3968f1c7f691 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonLicenseConfigServiceStub.java @@ -0,0 +1,580 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import static com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient.ListLicenseConfigsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +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.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse; +import com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the LicenseConfigService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonLicenseConfigServiceStub extends LicenseConfigServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createLicenseConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.LicenseConfigService/CreateLicenseConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*}/licenseConfigs", + 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, "licenseConfigId", request.getLicenseConfigId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("licenseConfig", request.getLicenseConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(LicenseConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateLicenseConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.LicenseConfigService/UpdateLicenseConfig") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{licenseConfig.name=projects/*/locations/*/licenseConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "licenseConfig.name", request.getLicenseConfig().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("licenseConfig", request.getLicenseConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(LicenseConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLicenseConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.LicenseConfigService/GetLicenseConfig") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/licenseConfigs/*}", + 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(LicenseConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLicenseConfigsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.LicenseConfigService/ListLicenseConfigs") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*}/licenseConfigs", + 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(ListLicenseConfigsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + DistributeLicenseConfigRequest, DistributeLicenseConfigResponse> + distributeLicenseConfigMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.LicenseConfigService/DistributeLicenseConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{billingAccountLicenseConfig=billingAccounts/*/billingAccountLicenseConfigs/*}:distributeLicenseConfig", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "billingAccountLicenseConfig", + request.getBillingAccountLicenseConfig()); + 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() + .clearBillingAccountLicenseConfig() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(DistributeLicenseConfigResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + RetractLicenseConfigRequest, RetractLicenseConfigResponse> + retractLicenseConfigMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.LicenseConfigService/RetractLicenseConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{billingAccountLicenseConfig=billingAccounts/*/billingAccountLicenseConfigs/*}:retractLicenseConfig", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "billingAccountLicenseConfig", + request.getBillingAccountLicenseConfig()); + 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() + .clearBillingAccountLicenseConfig() + .build(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RetractLicenseConfigResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + createLicenseConfigCallable; + private final UnaryCallable + updateLicenseConfigCallable; + private final UnaryCallable getLicenseConfigCallable; + private final UnaryCallable + listLicenseConfigsCallable; + private final UnaryCallable + listLicenseConfigsPagedCallable; + private final UnaryCallable + distributeLicenseConfigCallable; + private final UnaryCallable + retractLicenseConfigCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonLicenseConfigServiceStub create( + LicenseConfigServiceStubSettings settings) throws IOException { + return new HttpJsonLicenseConfigServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonLicenseConfigServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonLicenseConfigServiceStub( + LicenseConfigServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonLicenseConfigServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonLicenseConfigServiceStub( + LicenseConfigServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonLicenseConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonLicenseConfigServiceStub( + LicenseConfigServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonLicenseConfigServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonLicenseConfigServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonLicenseConfigServiceStub( + LicenseConfigServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + createLicenseConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createLicenseConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + updateLicenseConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateLicenseConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "license_config.name", + String.valueOf(request.getLicenseConfig().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLicenseConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLicenseConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listLicenseConfigsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLicenseConfigsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + distributeLicenseConfigTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(distributeLicenseConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "billing_account_license_config", + String.valueOf(request.getBillingAccountLicenseConfig())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getBillingAccountLicenseConfig()) + .build(); + HttpJsonCallSettings + retractLicenseConfigTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(retractLicenseConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "billing_account_license_config", + String.valueOf(request.getBillingAccountLicenseConfig())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getBillingAccountLicenseConfig()) + .build(); + + this.createLicenseConfigCallable = + callableFactory.createUnaryCallable( + createLicenseConfigTransportSettings, + settings.createLicenseConfigSettings(), + clientContext); + this.updateLicenseConfigCallable = + callableFactory.createUnaryCallable( + updateLicenseConfigTransportSettings, + settings.updateLicenseConfigSettings(), + clientContext); + this.getLicenseConfigCallable = + callableFactory.createUnaryCallable( + getLicenseConfigTransportSettings, settings.getLicenseConfigSettings(), clientContext); + this.listLicenseConfigsCallable = + callableFactory.createUnaryCallable( + listLicenseConfigsTransportSettings, + settings.listLicenseConfigsSettings(), + clientContext); + this.listLicenseConfigsPagedCallable = + callableFactory.createPagedCallable( + listLicenseConfigsTransportSettings, + settings.listLicenseConfigsSettings(), + clientContext); + this.distributeLicenseConfigCallable = + callableFactory.createUnaryCallable( + distributeLicenseConfigTransportSettings, + settings.distributeLicenseConfigSettings(), + clientContext); + this.retractLicenseConfigCallable = + callableFactory.createUnaryCallable( + retractLicenseConfigTransportSettings, + settings.retractLicenseConfigSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createLicenseConfigMethodDescriptor); + methodDescriptors.add(updateLicenseConfigMethodDescriptor); + methodDescriptors.add(getLicenseConfigMethodDescriptor); + methodDescriptors.add(listLicenseConfigsMethodDescriptor); + methodDescriptors.add(distributeLicenseConfigMethodDescriptor); + methodDescriptors.add(retractLicenseConfigMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createLicenseConfigCallable() { + return createLicenseConfigCallable; + } + + @Override + public UnaryCallable updateLicenseConfigCallable() { + return updateLicenseConfigCallable; + } + + @Override + public UnaryCallable getLicenseConfigCallable() { + return getLicenseConfigCallable; + } + + @Override + public UnaryCallable + listLicenseConfigsCallable() { + return listLicenseConfigsCallable; + } + + @Override + public UnaryCallable + listLicenseConfigsPagedCallable() { + return listLicenseConfigsPagedCallable; + } + + @Override + public UnaryCallable + distributeLicenseConfigCallable() { + return distributeLicenseConfigCallable; + } + + @Override + public UnaryCallable + retractLicenseConfigCallable() { + return retractLicenseConfigCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonProjectServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonProjectServiceStub.java index e861171a3593..6b1440e77d30 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonProjectServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonProjectServiceStub.java @@ -201,6 +201,11 @@ protected HttpJsonProjectServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( @@ -231,6 +236,11 @@ protected HttpJsonProjectServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") @@ -305,6 +315,11 @@ protected HttpJsonProjectServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*}/operations") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*}/operations") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*}/operations") diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSampleQueryServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSampleQueryServiceStub.java index 02665bfa8461..f0edd903b8db 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSampleQueryServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSampleQueryServiceStub.java @@ -409,6 +409,11 @@ protected HttpJsonSampleQueryServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( @@ -439,6 +444,11 @@ protected HttpJsonSampleQueryServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") @@ -513,6 +523,11 @@ protected HttpJsonSampleQueryServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*}/operations") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*}/operations") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*}/operations") diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceStub.java index 136dafdc126c..a83160c32223 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSchemaServiceStub.java @@ -383,6 +383,11 @@ protected HttpJsonSchemaServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( @@ -413,6 +418,11 @@ protected HttpJsonSchemaServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") @@ -487,6 +497,11 @@ protected HttpJsonSchemaServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*}/operations") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*}/operations") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*}/operations") diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchTuningServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchTuningServiceStub.java index 302f1f330995..68153bc87303 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchTuningServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSearchTuningServiceStub.java @@ -243,6 +243,11 @@ protected HttpJsonSearchTuningServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( @@ -273,6 +278,11 @@ protected HttpJsonSearchTuningServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") @@ -347,6 +357,11 @@ protected HttpJsonSearchTuningServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*}/operations") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*}/operations") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*}/operations") diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonServingConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonServingConfigServiceStub.java index 35e5813a1261..48f64d4efc89 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonServingConfigServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonServingConfigServiceStub.java @@ -31,11 +31,14 @@ 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.v1beta.CreateServingConfigRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest; import com.google.cloud.discoveryengine.v1beta.GetServingConfigRequest; import com.google.cloud.discoveryengine.v1beta.ListServingConfigsRequest; import com.google.cloud.discoveryengine.v1beta.ListServingConfigsResponse; import com.google.cloud.discoveryengine.v1beta.ServingConfig; import com.google.cloud.discoveryengine.v1beta.UpdateServingConfigRequest; +import com.google.protobuf.Empty; import com.google.protobuf.TypeRegistry; import java.io.IOException; import java.util.ArrayList; @@ -56,6 +59,87 @@ public class HttpJsonServingConfigServiceStub extends ServingConfigServiceStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + private static final ApiMethodDescriptor + createServingConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.ServingConfigService/CreateServingConfig") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/dataStores/*}/servingConfigs", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/servingConfigs", + "/v1beta/{parent=projects/*/locations/*/collections/*/engines/*}/servingConfigs") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "servingConfigId", request.getServingConfigId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("servingConfig", request.getServingConfig(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ServingConfig.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteServingConfigMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.ServingConfigService/DeleteServingConfig") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/dataStores/*/servingConfigs/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}", + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}") + .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 updateServingConfigMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -177,6 +261,9 @@ public class HttpJsonServingConfigServiceStub extends ServingConfigServiceStub { .build()) .build(); + private final UnaryCallable + createServingConfigCallable; + private final UnaryCallable deleteServingConfigCallable; private final UnaryCallable updateServingConfigCallable; private final UnaryCallable getServingConfigCallable; @@ -229,6 +316,31 @@ protected HttpJsonServingConfigServiceStub( throws IOException { this.callableFactory = callableFactory; + HttpJsonCallSettings + createServingConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createServingConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings deleteServingConfigTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteServingConfigMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); HttpJsonCallSettings updateServingConfigTransportSettings = HttpJsonCallSettings.newBuilder() @@ -269,6 +381,16 @@ protected HttpJsonServingConfigServiceStub( .setResourceNameExtractor(request -> request.getParent()) .build(); + this.createServingConfigCallable = + callableFactory.createUnaryCallable( + createServingConfigTransportSettings, + settings.createServingConfigSettings(), + clientContext); + this.deleteServingConfigCallable = + callableFactory.createUnaryCallable( + deleteServingConfigTransportSettings, + settings.deleteServingConfigSettings(), + clientContext); this.updateServingConfigCallable = callableFactory.createUnaryCallable( updateServingConfigTransportSettings, @@ -295,12 +417,24 @@ protected HttpJsonServingConfigServiceStub( @InternalApi public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createServingConfigMethodDescriptor); + methodDescriptors.add(deleteServingConfigMethodDescriptor); methodDescriptors.add(updateServingConfigMethodDescriptor); methodDescriptors.add(getServingConfigMethodDescriptor); methodDescriptors.add(listServingConfigsMethodDescriptor); return methodDescriptors; } + @Override + public UnaryCallable createServingConfigCallable() { + return createServingConfigCallable; + } + + @Override + public UnaryCallable deleteServingConfigCallable() { + return deleteServingConfigCallable; + } + @Override public UnaryCallable updateServingConfigCallable() { return updateServingConfigCallable; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSessionServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSessionServiceStub.java index 9435c9850314..e717cc92915b 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSessionServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSessionServiceStub.java @@ -84,6 +84,7 @@ public class HttpJsonSessionServiceStub extends SessionServiceStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "sessionId", request.getSessionId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSiteSearchEngineServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSiteSearchEngineServiceStub.java index 6517c9978a14..32ef3238e8db 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSiteSearchEngineServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonSiteSearchEngineServiceStub.java @@ -499,6 +499,8 @@ public class HttpJsonSiteSearchEngineServiceStub extends SiteSearchEngineService serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) + .setAdditionalPaths( + "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/sitemaps:fetch") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -899,6 +901,11 @@ protected HttpJsonSiteSearchEngineServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( @@ -929,6 +936,11 @@ protected HttpJsonSiteSearchEngineServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") @@ -1003,6 +1015,11 @@ protected HttpJsonSiteSearchEngineServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*}/operations") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*}/operations") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*}/operations") diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceStub.java index 11b0f71f1ea6..486f1ca296cc 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserEventServiceStub.java @@ -220,7 +220,8 @@ public class HttpJsonUserEventServiceStub extends UserEventServiceStub { return fields; }) .setAdditionalPaths( - "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:import") + "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:import", + "/v1beta/{parent=projects/*/locations/*}/userEvents:import") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -349,6 +350,11 @@ protected HttpJsonUserEventServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet( @@ -379,6 +385,11 @@ protected HttpJsonUserEventServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*/operations/*}") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") @@ -453,6 +464,11 @@ protected HttpJsonUserEventServiceStub( .setGet( "/v1beta/{name=projects/*/locations/*/dataStores/*}/operations") .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*}/operations") + .build()) .addAdditionalBindings( HttpRule.newBuilder() .setGet("/v1beta/{name=projects/*/locations/*}/operations") diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserLicenseServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserLicenseServiceCallableFactory.java new file mode 100644 index 000000000000..3252c80377c7 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserLicenseServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the UserLicenseService service API. + * + *

            This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonUserLicenseServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserLicenseServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserLicenseServiceStub.java new file mode 100644 index 000000000000..283fb6f94982 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserLicenseServiceStub.java @@ -0,0 +1,580 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import static com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient.ListUserLicensesPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +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.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata; +import com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest; +import com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse; +import com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest; +import com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the UserLicenseService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonUserLicenseServiceStub extends UserLicenseServiceStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(BatchUpdateUserLicensesResponse.getDescriptor()) + .add(BatchUpdateUserLicensesMetadata.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + listUserLicensesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.UserLicenseService/ListUserLicenses") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/userStores/*}/userLicenses", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListUserLicensesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse> + listLicenseConfigsUsageStatsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.UserLicenseService/ListLicenseConfigsUsageStats") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/userStores/*}/licenseConfigsUsageStats", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLicenseConfigsUsageStatsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchUpdateUserLicensesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.UserLicenseService/BatchUpdateUserLicenses") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/userStores/*}:batchUpdateUserLicenses", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BatchUpdateUserLicensesRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private final UnaryCallable + listUserLicensesCallable; + private final UnaryCallable + listUserLicensesPagedCallable; + private final UnaryCallable< + ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse> + listLicenseConfigsUsageStatsCallable; + private final UnaryCallable + batchUpdateUserLicensesCallable; + private final OperationCallable< + BatchUpdateUserLicensesRequest, + BatchUpdateUserLicensesResponse, + BatchUpdateUserLicensesMetadata> + batchUpdateUserLicensesOperationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonUserLicenseServiceStub create(UserLicenseServiceStubSettings settings) + throws IOException { + return new HttpJsonUserLicenseServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonUserLicenseServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonUserLicenseServiceStub( + UserLicenseServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonUserLicenseServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonUserLicenseServiceStub( + UserLicenseServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonUserLicenseServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonUserLicenseServiceStub( + UserLicenseServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonUserLicenseServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonUserLicenseServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonUserLicenseServiceStub( + UserLicenseServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost( + "/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel") + .build()) + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/evaluations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/locations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/sampleQuerySets/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/operations/*}") + .build()) + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataConnector}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/collections/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/branches/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*/models/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/dataStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet( + "/v1beta/{name=projects/*/locations/*/identityMappingStores/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*/locations/*}/operations") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1beta/{name=projects/*}/operations") + .build()) + .build()) + .build()); + + HttpJsonCallSettings + listUserLicensesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listUserLicensesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + listLicenseConfigsUsageStatsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(listLicenseConfigsUsageStatsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + batchUpdateUserLicensesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchUpdateUserLicensesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + + this.listUserLicensesCallable = + callableFactory.createUnaryCallable( + listUserLicensesTransportSettings, settings.listUserLicensesSettings(), clientContext); + this.listUserLicensesPagedCallable = + callableFactory.createPagedCallable( + listUserLicensesTransportSettings, settings.listUserLicensesSettings(), clientContext); + this.listLicenseConfigsUsageStatsCallable = + callableFactory.createUnaryCallable( + listLicenseConfigsUsageStatsTransportSettings, + settings.listLicenseConfigsUsageStatsSettings(), + clientContext); + this.batchUpdateUserLicensesCallable = + callableFactory.createUnaryCallable( + batchUpdateUserLicensesTransportSettings, + settings.batchUpdateUserLicensesSettings(), + clientContext); + this.batchUpdateUserLicensesOperationCallable = + callableFactory.createOperationCallable( + batchUpdateUserLicensesTransportSettings, + settings.batchUpdateUserLicensesOperationSettings(), + clientContext, + httpJsonOperationsStub); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listUserLicensesMethodDescriptor); + methodDescriptors.add(listLicenseConfigsUsageStatsMethodDescriptor); + methodDescriptors.add(batchUpdateUserLicensesMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable + listUserLicensesCallable() { + return listUserLicensesCallable; + } + + @Override + public UnaryCallable + listUserLicensesPagedCallable() { + return listUserLicensesPagedCallable; + } + + @Override + public UnaryCallable + listLicenseConfigsUsageStatsCallable() { + return listLicenseConfigsUsageStatsCallable; + } + + @Override + public UnaryCallable + batchUpdateUserLicensesCallable() { + return batchUpdateUserLicensesCallable; + } + + @Override + public OperationCallable< + BatchUpdateUserLicensesRequest, + BatchUpdateUserLicensesResponse, + BatchUpdateUserLicensesMetadata> + batchUpdateUserLicensesOperationCallable() { + return batchUpdateUserLicensesOperationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserStoreServiceCallableFactory.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserStoreServiceCallableFactory.java new file mode 100644 index 000000000000..39ba51767ae8 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserStoreServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the UserStoreService service API. + * + *

            This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonUserStoreServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserStoreServiceStub.java new file mode 100644 index 000000000000..420e79fc202e --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/HttpJsonUserStoreServiceStub.java @@ -0,0 +1,263 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +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.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest; +import com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest; +import com.google.cloud.discoveryengine.v1beta.UserStore; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the UserStoreService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonUserStoreServiceStub extends UserStoreServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getUserStoreMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.UserStoreService/GetUserStore") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/userStores/*}", + 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(UserStore.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateUserStoreMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.discoveryengine.v1beta.UserStoreService/UpdateUserStore") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{userStore.name=projects/*/locations/*/userStores/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "userStore.name", request.getUserStore().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("userStore", request.getUserStore(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(UserStore.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getUserStoreCallable; + private final UnaryCallable updateUserStoreCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonUserStoreServiceStub create(UserStoreServiceStubSettings settings) + throws IOException { + return new HttpJsonUserStoreServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonUserStoreServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonUserStoreServiceStub( + UserStoreServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonUserStoreServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonUserStoreServiceStub( + UserStoreServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonUserStoreServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonUserStoreServiceStub( + UserStoreServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonUserStoreServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonUserStoreServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonUserStoreServiceStub( + UserStoreServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getUserStoreTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getUserStoreMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings updateUserStoreTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateUserStoreMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("user_store.name", String.valueOf(request.getUserStore().getName())); + return builder.build(); + }) + .build(); + + this.getUserStoreCallable = + callableFactory.createUnaryCallable( + getUserStoreTransportSettings, settings.getUserStoreSettings(), clientContext); + this.updateUserStoreCallable = + callableFactory.createUnaryCallable( + updateUserStoreTransportSettings, settings.updateUserStoreSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getUserStoreMethodDescriptor); + methodDescriptors.add(updateUserStoreMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getUserStoreCallable() { + return getUserStoreCallable; + } + + @Override + public UnaryCallable updateUserStoreCallable() { + return updateUserStoreCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/IdentityMappingStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/IdentityMappingStoreServiceStub.java new file mode 100644 index 000000000000..12891382a2c0 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/IdentityMappingStoreServiceStub.java @@ -0,0 +1,133 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import static com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient.ListIdentityMappingStoresPagedResponse; +import static com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient.ListIdentityMappingsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata; +import com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest; +import com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStore; +import com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest; +import com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse; +import com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the IdentityMappingStoreService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class IdentityMappingStoreServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable + createIdentityMappingStoreCallable() { + throw new UnsupportedOperationException( + "Not implemented: createIdentityMappingStoreCallable()"); + } + + public UnaryCallable + getIdentityMappingStoreCallable() { + throw new UnsupportedOperationException("Not implemented: getIdentityMappingStoreCallable()"); + } + + public OperationCallable< + DeleteIdentityMappingStoreRequest, Empty, DeleteIdentityMappingStoreMetadata> + deleteIdentityMappingStoreOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteIdentityMappingStoreOperationCallable()"); + } + + public UnaryCallable + deleteIdentityMappingStoreCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteIdentityMappingStoreCallable()"); + } + + public OperationCallable< + ImportIdentityMappingsRequest, + ImportIdentityMappingsResponse, + IdentityMappingEntryOperationMetadata> + importIdentityMappingsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: importIdentityMappingsOperationCallable()"); + } + + public UnaryCallable importIdentityMappingsCallable() { + throw new UnsupportedOperationException("Not implemented: importIdentityMappingsCallable()"); + } + + public OperationCallable< + PurgeIdentityMappingsRequest, Empty, IdentityMappingEntryOperationMetadata> + purgeIdentityMappingsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: purgeIdentityMappingsOperationCallable()"); + } + + public UnaryCallable purgeIdentityMappingsCallable() { + throw new UnsupportedOperationException("Not implemented: purgeIdentityMappingsCallable()"); + } + + public UnaryCallable + listIdentityMappingsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listIdentityMappingsPagedCallable()"); + } + + public UnaryCallable + listIdentityMappingsCallable() { + throw new UnsupportedOperationException("Not implemented: listIdentityMappingsCallable()"); + } + + public UnaryCallable + listIdentityMappingStoresPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listIdentityMappingStoresPagedCallable()"); + } + + public UnaryCallable + listIdentityMappingStoresCallable() { + throw new UnsupportedOperationException("Not implemented: listIdentityMappingStoresCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/IdentityMappingStoreServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/IdentityMappingStoreServiceStubSettings.java new file mode 100644 index 000000000000..5637e83bc1a4 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/IdentityMappingStoreServiceStubSettings.java @@ -0,0 +1,893 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import static com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient.ListIdentityMappingStoresPagedResponse; +import static com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient.ListIdentityMappingsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata; +import com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest; +import com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStore; +import com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest; +import com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse; +import com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link IdentityMappingStoreServiceStub}. + * + *

            The default instance has everything set to sensible defaults: + * + *

              + *
            • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
            • Credentials are acquired automatically through Application Default Credentials. + *
            • Retries are configured for idempotent methods but not for non-idempotent methods. + *
            + * + *

            The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * IdentityMappingStoreServiceStubSettings.Builder identityMappingStoreServiceSettingsBuilder =
            + *     IdentityMappingStoreServiceStubSettings.newBuilder();
            + * identityMappingStoreServiceSettingsBuilder
            + *     .createIdentityMappingStoreSettings()
            + *     .setRetrySettings(
            + *         identityMappingStoreServiceSettingsBuilder
            + *             .createIdentityMappingStoreSettings()
            + *             .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());
            + * IdentityMappingStoreServiceStubSettings identityMappingStoreServiceSettings =
            + *     identityMappingStoreServiceSettingsBuilder.build();
            + * }
            + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

            To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for deleteIdentityMappingStore: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * IdentityMappingStoreServiceStubSettings.Builder identityMappingStoreServiceSettingsBuilder =
            + *     IdentityMappingStoreServiceStubSettings.newBuilder();
            + * TimedRetryAlgorithm timedRetryAlgorithm =
            + *     OperationalTimedPollAlgorithm.create(
            + *         RetrySettings.newBuilder()
            + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
            + *             .setRetryDelayMultiplier(1.5)
            + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
            + *             .setTotalTimeoutDuration(Duration.ofHours(24))
            + *             .build());
            + * identityMappingStoreServiceSettingsBuilder
            + *     .createClusterOperationSettings()
            + *     .setPollingAlgorithm(timedRetryAlgorithm)
            + *     .build();
            + * }
            + */ +@BetaApi +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class IdentityMappingStoreServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); + + private final UnaryCallSettings + createIdentityMappingStoreSettings; + private final UnaryCallSettings + getIdentityMappingStoreSettings; + private final UnaryCallSettings + deleteIdentityMappingStoreSettings; + private final OperationCallSettings< + DeleteIdentityMappingStoreRequest, Empty, DeleteIdentityMappingStoreMetadata> + deleteIdentityMappingStoreOperationSettings; + private final UnaryCallSettings + importIdentityMappingsSettings; + private final OperationCallSettings< + ImportIdentityMappingsRequest, + ImportIdentityMappingsResponse, + IdentityMappingEntryOperationMetadata> + importIdentityMappingsOperationSettings; + private final UnaryCallSettings + purgeIdentityMappingsSettings; + private final OperationCallSettings< + PurgeIdentityMappingsRequest, Empty, IdentityMappingEntryOperationMetadata> + purgeIdentityMappingsOperationSettings; + private final PagedCallSettings< + ListIdentityMappingsRequest, + ListIdentityMappingsResponse, + ListIdentityMappingsPagedResponse> + listIdentityMappingsSettings; + private final PagedCallSettings< + ListIdentityMappingStoresRequest, + ListIdentityMappingStoresResponse, + ListIdentityMappingStoresPagedResponse> + listIdentityMappingStoresSettings; + + private static final PagedListDescriptor< + ListIdentityMappingsRequest, ListIdentityMappingsResponse, IdentityMappingEntry> + LIST_IDENTITY_MAPPINGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListIdentityMappingsRequest, ListIdentityMappingsResponse, IdentityMappingEntry>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListIdentityMappingsRequest injectToken( + ListIdentityMappingsRequest payload, String token) { + return ListIdentityMappingsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListIdentityMappingsRequest injectPageSize( + ListIdentityMappingsRequest payload, int pageSize) { + return ListIdentityMappingsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListIdentityMappingsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListIdentityMappingsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListIdentityMappingsResponse payload) { + return payload.getIdentityMappingEntriesList(); + } + }; + + private static final PagedListDescriptor< + ListIdentityMappingStoresRequest, ListIdentityMappingStoresResponse, IdentityMappingStore> + LIST_IDENTITY_MAPPING_STORES_PAGE_STR_DESC = + new PagedListDescriptor< + ListIdentityMappingStoresRequest, + ListIdentityMappingStoresResponse, + IdentityMappingStore>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListIdentityMappingStoresRequest injectToken( + ListIdentityMappingStoresRequest payload, String token) { + return ListIdentityMappingStoresRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListIdentityMappingStoresRequest injectPageSize( + ListIdentityMappingStoresRequest payload, int pageSize) { + return ListIdentityMappingStoresRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListIdentityMappingStoresRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListIdentityMappingStoresResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListIdentityMappingStoresResponse payload) { + return payload.getIdentityMappingStoresList(); + } + }; + + private static final PagedListResponseFactory< + ListIdentityMappingsRequest, + ListIdentityMappingsResponse, + ListIdentityMappingsPagedResponse> + LIST_IDENTITY_MAPPINGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListIdentityMappingsRequest, + ListIdentityMappingsResponse, + ListIdentityMappingsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListIdentityMappingsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListIdentityMappingsRequest, + ListIdentityMappingsResponse, + IdentityMappingEntry> + pageContext = + PageContext.create( + callable, LIST_IDENTITY_MAPPINGS_PAGE_STR_DESC, request, context); + return ListIdentityMappingsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListIdentityMappingStoresRequest, + ListIdentityMappingStoresResponse, + ListIdentityMappingStoresPagedResponse> + LIST_IDENTITY_MAPPING_STORES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListIdentityMappingStoresRequest, + ListIdentityMappingStoresResponse, + ListIdentityMappingStoresPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListIdentityMappingStoresRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListIdentityMappingStoresRequest, + ListIdentityMappingStoresResponse, + IdentityMappingStore> + pageContext = + PageContext.create( + callable, LIST_IDENTITY_MAPPING_STORES_PAGE_STR_DESC, request, context); + return ListIdentityMappingStoresPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createIdentityMappingStore. */ + public UnaryCallSettings + createIdentityMappingStoreSettings() { + return createIdentityMappingStoreSettings; + } + + /** Returns the object with the settings used for calls to getIdentityMappingStore. */ + public UnaryCallSettings + getIdentityMappingStoreSettings() { + return getIdentityMappingStoreSettings; + } + + /** Returns the object with the settings used for calls to deleteIdentityMappingStore. */ + public UnaryCallSettings + deleteIdentityMappingStoreSettings() { + return deleteIdentityMappingStoreSettings; + } + + /** Returns the object with the settings used for calls to deleteIdentityMappingStore. */ + public OperationCallSettings< + DeleteIdentityMappingStoreRequest, Empty, DeleteIdentityMappingStoreMetadata> + deleteIdentityMappingStoreOperationSettings() { + return deleteIdentityMappingStoreOperationSettings; + } + + /** Returns the object with the settings used for calls to importIdentityMappings. */ + public UnaryCallSettings + importIdentityMappingsSettings() { + return importIdentityMappingsSettings; + } + + /** Returns the object with the settings used for calls to importIdentityMappings. */ + public OperationCallSettings< + ImportIdentityMappingsRequest, + ImportIdentityMappingsResponse, + IdentityMappingEntryOperationMetadata> + importIdentityMappingsOperationSettings() { + return importIdentityMappingsOperationSettings; + } + + /** Returns the object with the settings used for calls to purgeIdentityMappings. */ + public UnaryCallSettings + purgeIdentityMappingsSettings() { + return purgeIdentityMappingsSettings; + } + + /** Returns the object with the settings used for calls to purgeIdentityMappings. */ + public OperationCallSettings< + PurgeIdentityMappingsRequest, Empty, IdentityMappingEntryOperationMetadata> + purgeIdentityMappingsOperationSettings() { + return purgeIdentityMappingsOperationSettings; + } + + /** Returns the object with the settings used for calls to listIdentityMappings. */ + public PagedCallSettings< + ListIdentityMappingsRequest, + ListIdentityMappingsResponse, + ListIdentityMappingsPagedResponse> + listIdentityMappingsSettings() { + return listIdentityMappingsSettings; + } + + /** Returns the object with the settings used for calls to listIdentityMappingStores. */ + public PagedCallSettings< + ListIdentityMappingStoresRequest, + ListIdentityMappingStoresResponse, + ListIdentityMappingStoresPagedResponse> + listIdentityMappingStoresSettings() { + return listIdentityMappingStoresSettings; + } + + public IdentityMappingStoreServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcIdentityMappingStoreServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonIdentityMappingStoreServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(IdentityMappingStoreServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(IdentityMappingStoreServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return IdentityMappingStoreServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected IdentityMappingStoreServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createIdentityMappingStoreSettings = + settingsBuilder.createIdentityMappingStoreSettings().build(); + getIdentityMappingStoreSettings = settingsBuilder.getIdentityMappingStoreSettings().build(); + deleteIdentityMappingStoreSettings = + settingsBuilder.deleteIdentityMappingStoreSettings().build(); + deleteIdentityMappingStoreOperationSettings = + settingsBuilder.deleteIdentityMappingStoreOperationSettings().build(); + importIdentityMappingsSettings = settingsBuilder.importIdentityMappingsSettings().build(); + importIdentityMappingsOperationSettings = + settingsBuilder.importIdentityMappingsOperationSettings().build(); + purgeIdentityMappingsSettings = settingsBuilder.purgeIdentityMappingsSettings().build(); + purgeIdentityMappingsOperationSettings = + settingsBuilder.purgeIdentityMappingsOperationSettings().build(); + listIdentityMappingsSettings = settingsBuilder.listIdentityMappingsSettings().build(); + listIdentityMappingStoresSettings = settingsBuilder.listIdentityMappingStoresSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-discoveryengine") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for IdentityMappingStoreServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createIdentityMappingStoreSettings; + private final UnaryCallSettings.Builder + getIdentityMappingStoreSettings; + private final UnaryCallSettings.Builder + deleteIdentityMappingStoreSettings; + private final OperationCallSettings.Builder< + DeleteIdentityMappingStoreRequest, Empty, DeleteIdentityMappingStoreMetadata> + deleteIdentityMappingStoreOperationSettings; + private final UnaryCallSettings.Builder + importIdentityMappingsSettings; + private final OperationCallSettings.Builder< + ImportIdentityMappingsRequest, + ImportIdentityMappingsResponse, + IdentityMappingEntryOperationMetadata> + importIdentityMappingsOperationSettings; + private final UnaryCallSettings.Builder + purgeIdentityMappingsSettings; + private final OperationCallSettings.Builder< + PurgeIdentityMappingsRequest, Empty, IdentityMappingEntryOperationMetadata> + purgeIdentityMappingsOperationSettings; + private final PagedCallSettings.Builder< + ListIdentityMappingsRequest, + ListIdentityMappingsResponse, + ListIdentityMappingsPagedResponse> + listIdentityMappingsSettings; + private final PagedCallSettings.Builder< + ListIdentityMappingStoresRequest, + ListIdentityMappingStoresResponse, + ListIdentityMappingStoresPagedResponse> + listIdentityMappingStoresSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createIdentityMappingStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIdentityMappingStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteIdentityMappingStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteIdentityMappingStoreOperationSettings = OperationCallSettings.newBuilder(); + importIdentityMappingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + importIdentityMappingsOperationSettings = OperationCallSettings.newBuilder(); + purgeIdentityMappingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + purgeIdentityMappingsOperationSettings = OperationCallSettings.newBuilder(); + listIdentityMappingsSettings = + PagedCallSettings.newBuilder(LIST_IDENTITY_MAPPINGS_PAGE_STR_FACT); + listIdentityMappingStoresSettings = + PagedCallSettings.newBuilder(LIST_IDENTITY_MAPPING_STORES_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createIdentityMappingStoreSettings, + getIdentityMappingStoreSettings, + deleteIdentityMappingStoreSettings, + importIdentityMappingsSettings, + purgeIdentityMappingsSettings, + listIdentityMappingsSettings, + listIdentityMappingStoresSettings); + initDefaults(this); + } + + protected Builder(IdentityMappingStoreServiceStubSettings settings) { + super(settings); + + createIdentityMappingStoreSettings = settings.createIdentityMappingStoreSettings.toBuilder(); + getIdentityMappingStoreSettings = settings.getIdentityMappingStoreSettings.toBuilder(); + deleteIdentityMappingStoreSettings = settings.deleteIdentityMappingStoreSettings.toBuilder(); + deleteIdentityMappingStoreOperationSettings = + settings.deleteIdentityMappingStoreOperationSettings.toBuilder(); + importIdentityMappingsSettings = settings.importIdentityMappingsSettings.toBuilder(); + importIdentityMappingsOperationSettings = + settings.importIdentityMappingsOperationSettings.toBuilder(); + purgeIdentityMappingsSettings = settings.purgeIdentityMappingsSettings.toBuilder(); + purgeIdentityMappingsOperationSettings = + settings.purgeIdentityMappingsOperationSettings.toBuilder(); + listIdentityMappingsSettings = settings.listIdentityMappingsSettings.toBuilder(); + listIdentityMappingStoresSettings = settings.listIdentityMappingStoresSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createIdentityMappingStoreSettings, + getIdentityMappingStoreSettings, + deleteIdentityMappingStoreSettings, + importIdentityMappingsSettings, + purgeIdentityMappingsSettings, + listIdentityMappingsSettings, + listIdentityMappingStoresSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createIdentityMappingStoreSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIdentityMappingStoreSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteIdentityMappingStoreSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .importIdentityMappingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .purgeIdentityMappingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listIdentityMappingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listIdentityMappingStoresSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteIdentityMappingStoreOperationSettings() + .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( + DeleteIdentityMappingStoreMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .importIdentityMappingsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + ImportIdentityMappingsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + IdentityMappingEntryOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .purgeIdentityMappingsOperationSettings() + .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( + IdentityMappingEntryOperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

            Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createIdentityMappingStore. */ + public UnaryCallSettings.Builder + createIdentityMappingStoreSettings() { + return createIdentityMappingStoreSettings; + } + + /** Returns the builder for the settings used for calls to getIdentityMappingStore. */ + public UnaryCallSettings.Builder + getIdentityMappingStoreSettings() { + return getIdentityMappingStoreSettings; + } + + /** Returns the builder for the settings used for calls to deleteIdentityMappingStore. */ + public UnaryCallSettings.Builder + deleteIdentityMappingStoreSettings() { + return deleteIdentityMappingStoreSettings; + } + + /** Returns the builder for the settings used for calls to deleteIdentityMappingStore. */ + public OperationCallSettings.Builder< + DeleteIdentityMappingStoreRequest, Empty, DeleteIdentityMappingStoreMetadata> + deleteIdentityMappingStoreOperationSettings() { + return deleteIdentityMappingStoreOperationSettings; + } + + /** Returns the builder for the settings used for calls to importIdentityMappings. */ + public UnaryCallSettings.Builder + importIdentityMappingsSettings() { + return importIdentityMappingsSettings; + } + + /** Returns the builder for the settings used for calls to importIdentityMappings. */ + public OperationCallSettings.Builder< + ImportIdentityMappingsRequest, + ImportIdentityMappingsResponse, + IdentityMappingEntryOperationMetadata> + importIdentityMappingsOperationSettings() { + return importIdentityMappingsOperationSettings; + } + + /** Returns the builder for the settings used for calls to purgeIdentityMappings. */ + public UnaryCallSettings.Builder + purgeIdentityMappingsSettings() { + return purgeIdentityMappingsSettings; + } + + /** Returns the builder for the settings used for calls to purgeIdentityMappings. */ + public OperationCallSettings.Builder< + PurgeIdentityMappingsRequest, Empty, IdentityMappingEntryOperationMetadata> + purgeIdentityMappingsOperationSettings() { + return purgeIdentityMappingsOperationSettings; + } + + /** Returns the builder for the settings used for calls to listIdentityMappings. */ + public PagedCallSettings.Builder< + ListIdentityMappingsRequest, + ListIdentityMappingsResponse, + ListIdentityMappingsPagedResponse> + listIdentityMappingsSettings() { + return listIdentityMappingsSettings; + } + + /** Returns the builder for the settings used for calls to listIdentityMappingStores. */ + public PagedCallSettings.Builder< + ListIdentityMappingStoresRequest, + ListIdentityMappingStoresResponse, + ListIdentityMappingStoresPagedResponse> + listIdentityMappingStoresSettings() { + return listIdentityMappingStoresSettings; + } + + @Override + public IdentityMappingStoreServiceStubSettings build() throws IOException { + return new IdentityMappingStoreServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/LicenseConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/LicenseConfigServiceStub.java new file mode 100644 index 000000000000..ed2a41a2fd9f --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/LicenseConfigServiceStub.java @@ -0,0 +1,80 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import static com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient.ListLicenseConfigsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse; +import com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the LicenseConfigService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class LicenseConfigServiceStub implements BackgroundResource { + + public UnaryCallable createLicenseConfigCallable() { + throw new UnsupportedOperationException("Not implemented: createLicenseConfigCallable()"); + } + + public UnaryCallable updateLicenseConfigCallable() { + throw new UnsupportedOperationException("Not implemented: updateLicenseConfigCallable()"); + } + + public UnaryCallable getLicenseConfigCallable() { + throw new UnsupportedOperationException("Not implemented: getLicenseConfigCallable()"); + } + + public UnaryCallable + listLicenseConfigsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLicenseConfigsPagedCallable()"); + } + + public UnaryCallable + listLicenseConfigsCallable() { + throw new UnsupportedOperationException("Not implemented: listLicenseConfigsCallable()"); + } + + public UnaryCallable + distributeLicenseConfigCallable() { + throw new UnsupportedOperationException("Not implemented: distributeLicenseConfigCallable()"); + } + + public UnaryCallable + retractLicenseConfigCallable() { + throw new UnsupportedOperationException("Not implemented: retractLicenseConfigCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/LicenseConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/LicenseConfigServiceStubSettings.java new file mode 100644 index 000000000000..44dee5f338bd --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/LicenseConfigServiceStubSettings.java @@ -0,0 +1,567 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import static com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient.ListLicenseConfigsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse; +import com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link LicenseConfigServiceStub}. + * + *

            The default instance has everything set to sensible defaults: + * + *

              + *
            • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
            • Credentials are acquired automatically through Application Default Credentials. + *
            • Retries are configured for idempotent methods but not for non-idempotent methods. + *
            + * + *

            The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * LicenseConfigServiceStubSettings.Builder licenseConfigServiceSettingsBuilder =
            + *     LicenseConfigServiceStubSettings.newBuilder();
            + * licenseConfigServiceSettingsBuilder
            + *     .createLicenseConfigSettings()
            + *     .setRetrySettings(
            + *         licenseConfigServiceSettingsBuilder
            + *             .createLicenseConfigSettings()
            + *             .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());
            + * LicenseConfigServiceStubSettings licenseConfigServiceSettings =
            + *     licenseConfigServiceSettingsBuilder.build();
            + * }
            + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class LicenseConfigServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); + + private final UnaryCallSettings + createLicenseConfigSettings; + private final UnaryCallSettings + updateLicenseConfigSettings; + private final UnaryCallSettings getLicenseConfigSettings; + private final PagedCallSettings< + ListLicenseConfigsRequest, ListLicenseConfigsResponse, ListLicenseConfigsPagedResponse> + listLicenseConfigsSettings; + private final UnaryCallSettings + distributeLicenseConfigSettings; + private final UnaryCallSettings + retractLicenseConfigSettings; + + private static final PagedListDescriptor< + ListLicenseConfigsRequest, ListLicenseConfigsResponse, LicenseConfig> + LIST_LICENSE_CONFIGS_PAGE_STR_DESC = + new PagedListDescriptor< + ListLicenseConfigsRequest, ListLicenseConfigsResponse, LicenseConfig>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLicenseConfigsRequest injectToken( + ListLicenseConfigsRequest payload, String token) { + return ListLicenseConfigsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLicenseConfigsRequest injectPageSize( + ListLicenseConfigsRequest payload, int pageSize) { + return ListLicenseConfigsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLicenseConfigsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLicenseConfigsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLicenseConfigsResponse payload) { + return payload.getLicenseConfigsList(); + } + }; + + private static final PagedListResponseFactory< + ListLicenseConfigsRequest, ListLicenseConfigsResponse, ListLicenseConfigsPagedResponse> + LIST_LICENSE_CONFIGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLicenseConfigsRequest, + ListLicenseConfigsResponse, + ListLicenseConfigsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLicenseConfigsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_LICENSE_CONFIGS_PAGE_STR_DESC, request, context); + return ListLicenseConfigsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createLicenseConfig. */ + public UnaryCallSettings + createLicenseConfigSettings() { + return createLicenseConfigSettings; + } + + /** Returns the object with the settings used for calls to updateLicenseConfig. */ + public UnaryCallSettings + updateLicenseConfigSettings() { + return updateLicenseConfigSettings; + } + + /** Returns the object with the settings used for calls to getLicenseConfig. */ + public UnaryCallSettings getLicenseConfigSettings() { + return getLicenseConfigSettings; + } + + /** Returns the object with the settings used for calls to listLicenseConfigs. */ + public PagedCallSettings< + ListLicenseConfigsRequest, ListLicenseConfigsResponse, ListLicenseConfigsPagedResponse> + listLicenseConfigsSettings() { + return listLicenseConfigsSettings; + } + + /** Returns the object with the settings used for calls to distributeLicenseConfig. */ + public UnaryCallSettings + distributeLicenseConfigSettings() { + return distributeLicenseConfigSettings; + } + + /** Returns the object with the settings used for calls to retractLicenseConfig. */ + public UnaryCallSettings + retractLicenseConfigSettings() { + return retractLicenseConfigSettings; + } + + public LicenseConfigServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcLicenseConfigServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonLicenseConfigServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(LicenseConfigServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(LicenseConfigServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return LicenseConfigServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected LicenseConfigServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createLicenseConfigSettings = settingsBuilder.createLicenseConfigSettings().build(); + updateLicenseConfigSettings = settingsBuilder.updateLicenseConfigSettings().build(); + getLicenseConfigSettings = settingsBuilder.getLicenseConfigSettings().build(); + listLicenseConfigsSettings = settingsBuilder.listLicenseConfigsSettings().build(); + distributeLicenseConfigSettings = settingsBuilder.distributeLicenseConfigSettings().build(); + retractLicenseConfigSettings = settingsBuilder.retractLicenseConfigSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-discoveryengine") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for LicenseConfigServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createLicenseConfigSettings; + private final UnaryCallSettings.Builder + updateLicenseConfigSettings; + private final UnaryCallSettings.Builder + getLicenseConfigSettings; + private final PagedCallSettings.Builder< + ListLicenseConfigsRequest, ListLicenseConfigsResponse, ListLicenseConfigsPagedResponse> + listLicenseConfigsSettings; + private final UnaryCallSettings.Builder< + DistributeLicenseConfigRequest, DistributeLicenseConfigResponse> + distributeLicenseConfigSettings; + private final UnaryCallSettings.Builder< + RetractLicenseConfigRequest, RetractLicenseConfigResponse> + retractLicenseConfigSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createLicenseConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateLicenseConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getLicenseConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLicenseConfigsSettings = PagedCallSettings.newBuilder(LIST_LICENSE_CONFIGS_PAGE_STR_FACT); + distributeLicenseConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + retractLicenseConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createLicenseConfigSettings, + updateLicenseConfigSettings, + getLicenseConfigSettings, + listLicenseConfigsSettings, + distributeLicenseConfigSettings, + retractLicenseConfigSettings); + initDefaults(this); + } + + protected Builder(LicenseConfigServiceStubSettings settings) { + super(settings); + + createLicenseConfigSettings = settings.createLicenseConfigSettings.toBuilder(); + updateLicenseConfigSettings = settings.updateLicenseConfigSettings.toBuilder(); + getLicenseConfigSettings = settings.getLicenseConfigSettings.toBuilder(); + listLicenseConfigsSettings = settings.listLicenseConfigsSettings.toBuilder(); + distributeLicenseConfigSettings = settings.distributeLicenseConfigSettings.toBuilder(); + retractLicenseConfigSettings = settings.retractLicenseConfigSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createLicenseConfigSettings, + updateLicenseConfigSettings, + getLicenseConfigSettings, + listLicenseConfigsSettings, + distributeLicenseConfigSettings, + retractLicenseConfigSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createLicenseConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateLicenseConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLicenseConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLicenseConfigsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .distributeLicenseConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .retractLicenseConfigSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

            Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createLicenseConfig. */ + public UnaryCallSettings.Builder + createLicenseConfigSettings() { + return createLicenseConfigSettings; + } + + /** Returns the builder for the settings used for calls to updateLicenseConfig. */ + public UnaryCallSettings.Builder + updateLicenseConfigSettings() { + return updateLicenseConfigSettings; + } + + /** Returns the builder for the settings used for calls to getLicenseConfig. */ + public UnaryCallSettings.Builder + getLicenseConfigSettings() { + return getLicenseConfigSettings; + } + + /** Returns the builder for the settings used for calls to listLicenseConfigs. */ + public PagedCallSettings.Builder< + ListLicenseConfigsRequest, ListLicenseConfigsResponse, ListLicenseConfigsPagedResponse> + listLicenseConfigsSettings() { + return listLicenseConfigsSettings; + } + + /** Returns the builder for the settings used for calls to distributeLicenseConfig. */ + public UnaryCallSettings.Builder< + DistributeLicenseConfigRequest, DistributeLicenseConfigResponse> + distributeLicenseConfigSettings() { + return distributeLicenseConfigSettings; + } + + /** Returns the builder for the settings used for calls to retractLicenseConfig. */ + public UnaryCallSettings.Builder + retractLicenseConfigSettings() { + return retractLicenseConfigSettings; + } + + @Override + public LicenseConfigServiceStubSettings build() throws IOException { + return new LicenseConfigServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ProjectServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ProjectServiceStubSettings.java index 35b93187e637..7d3adc3b9ba8 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ProjectServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ProjectServiceStubSettings.java @@ -136,7 +136,11 @@ public class ProjectServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings provisionProjectSettings; private final OperationCallSettings diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RankServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RankServiceStubSettings.java index 61c9637619a4..48c8c3c0da46 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RankServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RankServiceStubSettings.java @@ -104,7 +104,11 @@ public class RankServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings rankSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java index 31c589e53f1a..225289590bd1 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/RecommendationServiceStubSettings.java @@ -106,7 +106,11 @@ public class RecommendationServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings recommendSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQueryServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQueryServiceStubSettings.java index 084281d2d4c0..c2620be46aeb 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQueryServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQueryServiceStubSettings.java @@ -154,7 +154,11 @@ public class SampleQueryServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings getSampleQuerySettings; private final PagedCallSettings< diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQuerySetServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQuerySetServiceStubSettings.java index 144f5d15a13b..2acef9e999d6 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQuerySetServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SampleQuerySetServiceStubSettings.java @@ -121,7 +121,11 @@ public class SampleQuerySetServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings getSampleQuerySetSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java index b82a024ce985..99957320dc07 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SchemaServiceStubSettings.java @@ -153,7 +153,11 @@ public class SchemaServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings getSchemaSettings; private final PagedCallSettings diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java index 9558ffbfce84..0e5832ddc8a3 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchServiceStubSettings.java @@ -114,7 +114,12 @@ public class SearchServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.assist.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final PagedCallSettings searchSettings; diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStubSettings.java index 17cae3476354..e3cdb3eef010 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SearchTuningServiceStubSettings.java @@ -139,7 +139,11 @@ public class SearchTuningServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); private final UnaryCallSettings trainCustomModelSettings; private final OperationCallSettings< diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ServingConfigServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ServingConfigServiceStub.java index 8ad8b379948c..88ca1ad8cba9 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ServingConfigServiceStub.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ServingConfigServiceStub.java @@ -21,11 +21,14 @@ import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest; import com.google.cloud.discoveryengine.v1beta.GetServingConfigRequest; import com.google.cloud.discoveryengine.v1beta.ListServingConfigsRequest; import com.google.cloud.discoveryengine.v1beta.ListServingConfigsResponse; import com.google.cloud.discoveryengine.v1beta.ServingConfig; import com.google.cloud.discoveryengine.v1beta.UpdateServingConfigRequest; +import com.google.protobuf.Empty; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. @@ -38,6 +41,14 @@ @Generated("by gapic-generator-java") public abstract class ServingConfigServiceStub implements BackgroundResource { + public UnaryCallable createServingConfigCallable() { + throw new UnsupportedOperationException("Not implemented: createServingConfigCallable()"); + } + + public UnaryCallable deleteServingConfigCallable() { + throw new UnsupportedOperationException("Not implemented: deleteServingConfigCallable()"); + } + public UnaryCallable updateServingConfigCallable() { throw new UnsupportedOperationException("Not implemented: updateServingConfigCallable()"); } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ServingConfigServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ServingConfigServiceStubSettings.java index e14a8946a375..1fd86ef77a21 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ServingConfigServiceStubSettings.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/ServingConfigServiceStubSettings.java @@ -45,6 +45,8 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest; +import com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest; import com.google.cloud.discoveryengine.v1beta.GetServingConfigRequest; import com.google.cloud.discoveryengine.v1beta.ListServingConfigsRequest; import com.google.cloud.discoveryengine.v1beta.ListServingConfigsResponse; @@ -54,6 +56,7 @@ import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.common.collect.Lists; +import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -76,7 +79,7 @@ * *

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

            {@code
              * // This snippet has been automatically generated and should be regarded as a code template only.
            @@ -87,10 +90,10 @@
              * ServingConfigServiceStubSettings.Builder servingConfigServiceSettingsBuilder =
              *     ServingConfigServiceStubSettings.newBuilder();
              * servingConfigServiceSettingsBuilder
            - *     .updateServingConfigSettings()
            + *     .createServingConfigSettings()
              *     .setRetrySettings(
              *         servingConfigServiceSettingsBuilder
            - *             .updateServingConfigSettings()
            + *             .createServingConfigSettings()
              *             .getRetrySettings()
              *             .toBuilder()
              *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
            @@ -117,8 +120,15 @@ public class ServingConfigServiceStubSettings
                 extends StubSettings {
               /** The default scopes of the service. */
               private static final ImmutableList DEFAULT_SERVICE_SCOPES =
            -      ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build();
            -
            +      ImmutableList.builder()
            +          .add("https://www.googleapis.com/auth/cloud-platform")
            +          .add("https://www.googleapis.com/auth/discoveryengine.readwrite")
            +          .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite")
            +          .build();
            +
            +  private final UnaryCallSettings
            +      createServingConfigSettings;
            +  private final UnaryCallSettings deleteServingConfigSettings;
               private final UnaryCallSettings
                   updateServingConfigSettings;
               private final UnaryCallSettings getServingConfigSettings;
            @@ -185,6 +195,17 @@ public ApiFuture getFuturePagedResponse(
                         }
                       };
             
            +  /** Returns the object with the settings used for calls to createServingConfig. */
            +  public UnaryCallSettings
            +      createServingConfigSettings() {
            +    return createServingConfigSettings;
            +  }
            +
            +  /** Returns the object with the settings used for calls to deleteServingConfig. */
            +  public UnaryCallSettings deleteServingConfigSettings() {
            +    return deleteServingConfigSettings;
            +  }
            +
               /** Returns the object with the settings used for calls to updateServingConfig. */
               public UnaryCallSettings
                   updateServingConfigSettings() {
            @@ -314,6 +335,8 @@ public Builder toBuilder() {
               protected ServingConfigServiceStubSettings(Builder settingsBuilder) throws IOException {
                 super(settingsBuilder);
             
            +    createServingConfigSettings = settingsBuilder.createServingConfigSettings().build();
            +    deleteServingConfigSettings = settingsBuilder.deleteServingConfigSettings().build();
                 updateServingConfigSettings = settingsBuilder.updateServingConfigSettings().build();
                 getServingConfigSettings = settingsBuilder.getServingConfigSettings().build();
                 listServingConfigsSettings = settingsBuilder.listServingConfigsSettings().build();
            @@ -332,6 +355,10 @@ protected LibraryMetadata getLibraryMetadata() {
               public static class Builder
                   extends StubSettings.Builder {
                 private final ImmutableList> unaryMethodSettingsBuilders;
            +    private final UnaryCallSettings.Builder
            +        createServingConfigSettings;
            +    private final UnaryCallSettings.Builder
            +        deleteServingConfigSettings;
                 private final UnaryCallSettings.Builder
                     updateServingConfigSettings;
                 private final UnaryCallSettings.Builder
            @@ -366,26 +393,38 @@ protected Builder() {
                 protected Builder(ClientContext clientContext) {
                   super(clientContext);
             
            +      createServingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
            +      deleteServingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                   updateServingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                   getServingConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                   listServingConfigsSettings = PagedCallSettings.newBuilder(LIST_SERVING_CONFIGS_PAGE_STR_FACT);
             
                   unaryMethodSettingsBuilders =
                       ImmutableList.>of(
            -              updateServingConfigSettings, getServingConfigSettings, listServingConfigsSettings);
            +              createServingConfigSettings,
            +              deleteServingConfigSettings,
            +              updateServingConfigSettings,
            +              getServingConfigSettings,
            +              listServingConfigsSettings);
                   initDefaults(this);
                 }
             
                 protected Builder(ServingConfigServiceStubSettings settings) {
                   super(settings);
             
            +      createServingConfigSettings = settings.createServingConfigSettings.toBuilder();
            +      deleteServingConfigSettings = settings.deleteServingConfigSettings.toBuilder();
                   updateServingConfigSettings = settings.updateServingConfigSettings.toBuilder();
                   getServingConfigSettings = settings.getServingConfigSettings.toBuilder();
                   listServingConfigsSettings = settings.listServingConfigsSettings.toBuilder();
             
                   unaryMethodSettingsBuilders =
                       ImmutableList.>of(
            -              updateServingConfigSettings, getServingConfigSettings, listServingConfigsSettings);
            +              createServingConfigSettings,
            +              deleteServingConfigSettings,
            +              updateServingConfigSettings,
            +              getServingConfigSettings,
            +              listServingConfigsSettings);
                 }
             
                 private static Builder createDefault() {
            @@ -413,6 +452,16 @@ private static Builder createHttpJsonDefault() {
                 }
             
                 private static Builder initDefaults(Builder builder) {
            +      builder
            +          .createServingConfigSettings()
            +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
            +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
            +
            +      builder
            +          .deleteServingConfigSettings()
            +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
            +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
            +
                   builder
                       .updateServingConfigSettings()
                       .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
            @@ -446,6 +495,18 @@ public Builder applyToAllUnaryMethods(
                   return unaryMethodSettingsBuilders;
                 }
             
            +    /** Returns the builder for the settings used for calls to createServingConfig. */
            +    public UnaryCallSettings.Builder
            +        createServingConfigSettings() {
            +      return createServingConfigSettings;
            +    }
            +
            +    /** Returns the builder for the settings used for calls to deleteServingConfig. */
            +    public UnaryCallSettings.Builder
            +        deleteServingConfigSettings() {
            +      return deleteServingConfigSettings;
            +    }
            +
                 /** Returns the builder for the settings used for calls to updateServingConfig. */
                 public UnaryCallSettings.Builder
                     updateServingConfigSettings() {
            diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SessionServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SessionServiceStubSettings.java
            index c7681f83d067..e76305359e30 100644
            --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SessionServiceStubSettings.java
            +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SessionServiceStubSettings.java
            @@ -119,7 +119,12 @@
             public class SessionServiceStubSettings extends StubSettings {
               /** The default scopes of the service. */
               private static final ImmutableList DEFAULT_SERVICE_SCOPES =
            -      ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build();
            +      ImmutableList.builder()
            +          .add("https://www.googleapis.com/auth/cloud-platform")
            +          .add("https://www.googleapis.com/auth/discoveryengine.assist.readwrite")
            +          .add("https://www.googleapis.com/auth/discoveryengine.readwrite")
            +          .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite")
            +          .build();
             
               private final UnaryCallSettings createSessionSettings;
               private final UnaryCallSettings deleteSessionSettings;
            diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SiteSearchEngineServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SiteSearchEngineServiceStubSettings.java
            index fb5b71e51e0f..993804b74a68 100644
            --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SiteSearchEngineServiceStubSettings.java
            +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/SiteSearchEngineServiceStubSettings.java
            @@ -182,7 +182,11 @@ public class SiteSearchEngineServiceStubSettings
                 extends StubSettings {
               /** The default scopes of the service. */
               private static final ImmutableList DEFAULT_SERVICE_SCOPES =
            -      ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build();
            +      ImmutableList.builder()
            +          .add("https://www.googleapis.com/auth/cloud-platform")
            +          .add("https://www.googleapis.com/auth/discoveryengine.readwrite")
            +          .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite")
            +          .build();
             
               private final UnaryCallSettings
                   getSiteSearchEngineSettings;
            diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java
            index 1b5048b2aaa0..939a93c3b5f8 100644
            --- a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java
            +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserEventServiceStubSettings.java
            @@ -143,7 +143,12 @@
             public class UserEventServiceStubSettings extends StubSettings {
               /** The default scopes of the service. */
               private static final ImmutableList DEFAULT_SERVICE_SCOPES =
            -      ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build();
            +      ImmutableList.builder()
            +          .add("https://www.googleapis.com/auth/cloud-platform")
            +          .add("https://www.googleapis.com/auth/discoveryengine.assist.readwrite")
            +          .add("https://www.googleapis.com/auth/discoveryengine.readwrite")
            +          .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite")
            +          .build();
             
               private final UnaryCallSettings writeUserEventSettings;
               private final UnaryCallSettings collectUserEventSettings;
            @@ -345,7 +350,7 @@ public static class Builder extends StubSettings.BuildernewArrayList(StatusCode.Code.UNAVAILABLE)));
                   definitions.put(
            -          "retry_policy_2_codes",
            +          "retry_policy_4_codes",
                       ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE)));
                   RETRYABLE_CODE_DEFINITIONS = definitions.build();
                 }
            @@ -376,7 +381,7 @@ public static class Builder extends StubSettings.BuildernewUnaryCallSettingsBuilder()
            -                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes"))
            -                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params"))
            +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes"))
            +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params"))
                               .build())
                       .setResponseTransformer(
                           ProtoOperationTransformers.ResponseTransformer.create(ImportUserEventsResponse.class))
            diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserLicenseServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserLicenseServiceStub.java
            new file mode 100644
            index 000000000000..44add97a3e62
            --- /dev/null
            +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserLicenseServiceStub.java
            @@ -0,0 +1,86 @@
            +/*
            + * Copyright 2026 Google LLC
            + *
            + * Licensed under the Apache License, Version 2.0 (the "License");
            + * you may not use this file except in compliance with the License.
            + * You may obtain a copy of the License at
            + *
            + *      https://www.apache.org/licenses/LICENSE-2.0
            + *
            + * Unless required by applicable law or agreed to in writing, software
            + * distributed under the License is distributed on an "AS IS" BASIS,
            + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
            + * See the License for the specific language governing permissions and
            + * limitations under the License.
            + */
            +
            +package com.google.cloud.discoveryengine.v1beta.stub;
            +
            +import static com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient.ListUserLicensesPagedResponse;
            +
            +import com.google.api.core.BetaApi;
            +import com.google.api.gax.core.BackgroundResource;
            +import com.google.api.gax.rpc.OperationCallable;
            +import com.google.api.gax.rpc.UnaryCallable;
            +import com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata;
            +import com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest;
            +import com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse;
            +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest;
            +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse;
            +import com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest;
            +import com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse;
            +import com.google.longrunning.Operation;
            +import com.google.longrunning.stub.OperationsStub;
            +import javax.annotation.Generated;
            +
            +// AUTO-GENERATED DOCUMENTATION AND CLASS.
            +/**
            + * Base stub class for the UserLicenseService service API.
            + *
            + * 

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class UserLicenseServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable + listUserLicensesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listUserLicensesPagedCallable()"); + } + + public UnaryCallable + listUserLicensesCallable() { + throw new UnsupportedOperationException("Not implemented: listUserLicensesCallable()"); + } + + public UnaryCallable + listLicenseConfigsUsageStatsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listLicenseConfigsUsageStatsCallable()"); + } + + public OperationCallable< + BatchUpdateUserLicensesRequest, + BatchUpdateUserLicensesResponse, + BatchUpdateUserLicensesMetadata> + batchUpdateUserLicensesOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchUpdateUserLicensesOperationCallable()"); + } + + public UnaryCallable + batchUpdateUserLicensesCallable() { + throw new UnsupportedOperationException("Not implemented: batchUpdateUserLicensesCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserLicenseServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserLicenseServiceStubSettings.java new file mode 100644 index 000000000000..dca29e3095f8 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserLicenseServiceStubSettings.java @@ -0,0 +1,580 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import static com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient.ListUserLicensesPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata; +import com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest; +import com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse; +import com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest; +import com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse; +import com.google.cloud.discoveryengine.v1beta.UserLicense; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link UserLicenseServiceStub}. + * + *

            The default instance has everything set to sensible defaults: + * + *

              + *
            • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
            • Credentials are acquired automatically through Application Default Credentials. + *
            • Retries are configured for idempotent methods but not for non-idempotent methods. + *
            + * + *

            The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * UserLicenseServiceStubSettings.Builder userLicenseServiceSettingsBuilder =
            + *     UserLicenseServiceStubSettings.newBuilder();
            + * userLicenseServiceSettingsBuilder
            + *     .listLicenseConfigsUsageStatsSettings()
            + *     .setRetrySettings(
            + *         userLicenseServiceSettingsBuilder
            + *             .listLicenseConfigsUsageStatsSettings()
            + *             .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());
            + * UserLicenseServiceStubSettings userLicenseServiceSettings =
            + *     userLicenseServiceSettingsBuilder.build();
            + * }
            + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

            To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for batchUpdateUserLicenses: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * UserLicenseServiceStubSettings.Builder userLicenseServiceSettingsBuilder =
            + *     UserLicenseServiceStubSettings.newBuilder();
            + * TimedRetryAlgorithm timedRetryAlgorithm =
            + *     OperationalTimedPollAlgorithm.create(
            + *         RetrySettings.newBuilder()
            + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
            + *             .setRetryDelayMultiplier(1.5)
            + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
            + *             .setTotalTimeoutDuration(Duration.ofHours(24))
            + *             .build());
            + * userLicenseServiceSettingsBuilder
            + *     .createClusterOperationSettings()
            + *     .setPollingAlgorithm(timedRetryAlgorithm)
            + *     .build();
            + * }
            + */ +@BetaApi +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class UserLicenseServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); + + private final PagedCallSettings< + ListUserLicensesRequest, ListUserLicensesResponse, ListUserLicensesPagedResponse> + listUserLicensesSettings; + private final UnaryCallSettings< + ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse> + listLicenseConfigsUsageStatsSettings; + private final UnaryCallSettings + batchUpdateUserLicensesSettings; + private final OperationCallSettings< + BatchUpdateUserLicensesRequest, + BatchUpdateUserLicensesResponse, + BatchUpdateUserLicensesMetadata> + batchUpdateUserLicensesOperationSettings; + + private static final PagedListDescriptor< + ListUserLicensesRequest, ListUserLicensesResponse, UserLicense> + LIST_USER_LICENSES_PAGE_STR_DESC = + new PagedListDescriptor< + ListUserLicensesRequest, ListUserLicensesResponse, UserLicense>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListUserLicensesRequest injectToken( + ListUserLicensesRequest payload, String token) { + return ListUserLicensesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListUserLicensesRequest injectPageSize( + ListUserLicensesRequest payload, int pageSize) { + return ListUserLicensesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListUserLicensesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListUserLicensesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListUserLicensesResponse payload) { + return payload.getUserLicensesList(); + } + }; + + private static final PagedListResponseFactory< + ListUserLicensesRequest, ListUserLicensesResponse, ListUserLicensesPagedResponse> + LIST_USER_LICENSES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListUserLicensesRequest, ListUserLicensesResponse, ListUserLicensesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListUserLicensesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_USER_LICENSES_PAGE_STR_DESC, request, context); + return ListUserLicensesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listUserLicenses. */ + public PagedCallSettings< + ListUserLicensesRequest, ListUserLicensesResponse, ListUserLicensesPagedResponse> + listUserLicensesSettings() { + return listUserLicensesSettings; + } + + /** Returns the object with the settings used for calls to listLicenseConfigsUsageStats. */ + public UnaryCallSettings< + ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse> + listLicenseConfigsUsageStatsSettings() { + return listLicenseConfigsUsageStatsSettings; + } + + /** Returns the object with the settings used for calls to batchUpdateUserLicenses. */ + public UnaryCallSettings + batchUpdateUserLicensesSettings() { + return batchUpdateUserLicensesSettings; + } + + /** Returns the object with the settings used for calls to batchUpdateUserLicenses. */ + public OperationCallSettings< + BatchUpdateUserLicensesRequest, + BatchUpdateUserLicensesResponse, + BatchUpdateUserLicensesMetadata> + batchUpdateUserLicensesOperationSettings() { + return batchUpdateUserLicensesOperationSettings; + } + + public UserLicenseServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcUserLicenseServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonUserLicenseServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(UserLicenseServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(UserLicenseServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return UserLicenseServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected UserLicenseServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listUserLicensesSettings = settingsBuilder.listUserLicensesSettings().build(); + listLicenseConfigsUsageStatsSettings = + settingsBuilder.listLicenseConfigsUsageStatsSettings().build(); + batchUpdateUserLicensesSettings = settingsBuilder.batchUpdateUserLicensesSettings().build(); + batchUpdateUserLicensesOperationSettings = + settingsBuilder.batchUpdateUserLicensesOperationSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-discoveryengine") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for UserLicenseServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListUserLicensesRequest, ListUserLicensesResponse, ListUserLicensesPagedResponse> + listUserLicensesSettings; + private final UnaryCallSettings.Builder< + ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse> + listLicenseConfigsUsageStatsSettings; + private final UnaryCallSettings.Builder + batchUpdateUserLicensesSettings; + private final OperationCallSettings.Builder< + BatchUpdateUserLicensesRequest, + BatchUpdateUserLicensesResponse, + BatchUpdateUserLicensesMetadata> + batchUpdateUserLicensesOperationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listUserLicensesSettings = PagedCallSettings.newBuilder(LIST_USER_LICENSES_PAGE_STR_FACT); + listLicenseConfigsUsageStatsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchUpdateUserLicensesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchUpdateUserLicensesOperationSettings = OperationCallSettings.newBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listUserLicensesSettings, + listLicenseConfigsUsageStatsSettings, + batchUpdateUserLicensesSettings); + initDefaults(this); + } + + protected Builder(UserLicenseServiceStubSettings settings) { + super(settings); + + listUserLicensesSettings = settings.listUserLicensesSettings.toBuilder(); + listLicenseConfigsUsageStatsSettings = + settings.listLicenseConfigsUsageStatsSettings.toBuilder(); + batchUpdateUserLicensesSettings = settings.batchUpdateUserLicensesSettings.toBuilder(); + batchUpdateUserLicensesOperationSettings = + settings.batchUpdateUserLicensesOperationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listUserLicensesSettings, + listLicenseConfigsUsageStatsSettings, + batchUpdateUserLicensesSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listUserLicensesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLicenseConfigsUsageStatsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchUpdateUserLicensesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchUpdateUserLicensesOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + BatchUpdateUserLicensesResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + BatchUpdateUserLicensesMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

            Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listUserLicenses. */ + public PagedCallSettings.Builder< + ListUserLicensesRequest, ListUserLicensesResponse, ListUserLicensesPagedResponse> + listUserLicensesSettings() { + return listUserLicensesSettings; + } + + /** Returns the builder for the settings used for calls to listLicenseConfigsUsageStats. */ + public UnaryCallSettings.Builder< + ListLicenseConfigsUsageStatsRequest, ListLicenseConfigsUsageStatsResponse> + listLicenseConfigsUsageStatsSettings() { + return listLicenseConfigsUsageStatsSettings; + } + + /** Returns the builder for the settings used for calls to batchUpdateUserLicenses. */ + public UnaryCallSettings.Builder + batchUpdateUserLicensesSettings() { + return batchUpdateUserLicensesSettings; + } + + /** Returns the builder for the settings used for calls to batchUpdateUserLicenses. */ + public OperationCallSettings.Builder< + BatchUpdateUserLicensesRequest, + BatchUpdateUserLicensesResponse, + BatchUpdateUserLicensesMetadata> + batchUpdateUserLicensesOperationSettings() { + return batchUpdateUserLicensesOperationSettings; + } + + @Override + public UserLicenseServiceStubSettings build() throws IOException { + return new UserLicenseServiceStubSettings(this); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserStoreServiceStub.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserStoreServiceStub.java new file mode 100644 index 000000000000..295fef965dca --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserStoreServiceStub.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest; +import com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest; +import com.google.cloud.discoveryengine.v1beta.UserStore; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the UserStoreService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class UserStoreServiceStub implements BackgroundResource { + + public UnaryCallable getUserStoreCallable() { + throw new UnsupportedOperationException("Not implemented: getUserStoreCallable()"); + } + + public UnaryCallable updateUserStoreCallable() { + throw new UnsupportedOperationException("Not implemented: updateUserStoreCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserStoreServiceStubSettings.java b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserStoreServiceStubSettings.java new file mode 100644 index 000000000000..42c24b950fbd --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/main/java/com/google/cloud/discoveryengine/v1beta/stub/UserStoreServiceStubSettings.java @@ -0,0 +1,371 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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.stub; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.StatusCode; +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.v1beta.GetUserStoreRequest; +import com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest; +import com.google.cloud.discoveryengine.v1beta.UserStore; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link UserStoreServiceStub}. + * + *

            The default instance has everything set to sensible defaults: + * + *

              + *
            • The default service address (discoveryengine.googleapis.com) and default port (443) are + * used. + *
            • Credentials are acquired automatically through Application Default Credentials. + *
            • Retries are configured for idempotent methods but not for non-idempotent methods. + *
            + * + *

            The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * UserStoreServiceStubSettings.Builder userStoreServiceSettingsBuilder =
            + *     UserStoreServiceStubSettings.newBuilder();
            + * userStoreServiceSettingsBuilder
            + *     .getUserStoreSettings()
            + *     .setRetrySettings(
            + *         userStoreServiceSettingsBuilder
            + *             .getUserStoreSettings()
            + *             .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());
            + * UserStoreServiceStubSettings userStoreServiceSettings = userStoreServiceSettingsBuilder.build();
            + * }
            + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@BetaApi +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class UserStoreServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/discoveryengine.readwrite") + .add("https://www.googleapis.com/auth/discoveryengine.serving.readwrite") + .build(); + + private final UnaryCallSettings getUserStoreSettings; + private final UnaryCallSettings updateUserStoreSettings; + + /** Returns the object with the settings used for calls to getUserStore. */ + public UnaryCallSettings getUserStoreSettings() { + return getUserStoreSettings; + } + + /** Returns the object with the settings used for calls to updateUserStore. */ + public UnaryCallSettings updateUserStoreSettings() { + return updateUserStoreSettings; + } + + public UserStoreServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcUserStoreServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonUserStoreServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "discoveryengine"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "discoveryengine.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "discoveryengine.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(UserStoreServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(UserStoreServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return UserStoreServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected UserStoreServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getUserStoreSettings = settingsBuilder.getUserStoreSettings().build(); + updateUserStoreSettings = settingsBuilder.updateUserStoreSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-discoveryengine") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for UserStoreServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getUserStoreSettings; + private final UnaryCallSettings.Builder + updateUserStoreSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getUserStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateUserStoreSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getUserStoreSettings, updateUserStoreSettings); + initDefaults(this); + } + + protected Builder(UserStoreServiceStubSettings settings) { + super(settings); + + getUserStoreSettings = settings.getUserStoreSettings.toBuilder(); + updateUserStoreSettings = settings.updateUserStoreSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getUserStoreSettings, updateUserStoreSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getUserStoreSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateUserStoreSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

            Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getUserStore. */ + public UnaryCallSettings.Builder getUserStoreSettings() { + return getUserStoreSettings; + } + + /** Returns the builder for the settings used for calls to updateUserStore. */ + public UnaryCallSettings.Builder updateUserStoreSettings() { + return updateUserStoreSettings; + } + + @Override + public UserStoreServiceStubSettings build() throws IOException { + return new UserStoreServiceStubSettings(this); + } + } +} 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 dea7a16d5153..e615baaf0953 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 @@ -494,6 +494,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1beta.AclConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.AclConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest", "queryAllDeclaredConstructors": true, @@ -557,6 +575,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest$SuggestionTypeSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest$SuggestionTypeSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse", "queryAllDeclaredConstructors": true, @@ -666,7 +702,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AlloyDbSource", + "name": "com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -675,7 +711,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AlloyDbSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -684,7 +720,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer", + "name": "com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -693,7 +729,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$AnswerSkippedReason", + "name": "com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting$AgentGatewayReference", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -702,7 +738,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting$AgentGatewayReference$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -711,7 +747,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Citation", + "name": "com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -720,7 +756,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Citation$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AlloyDbSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -729,7 +765,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$CitationSource", + "name": "com.google.cloud.discoveryengine.v1beta.AlloyDbSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -738,7 +774,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$CitationSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -747,7 +783,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$QueryUnderstandingInfo", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$AnswerSkippedReason", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -756,7 +792,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$QueryUnderstandingInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$BlobAttachment", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -765,7 +801,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$QueryUnderstandingInfo$QueryClassificationInfo", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$BlobAttachment$AttributionType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -774,7 +810,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$QueryUnderstandingInfo$QueryClassificationInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$BlobAttachment$Blob", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -783,7 +819,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$QueryUnderstandingInfo$QueryClassificationInfo$Type", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$BlobAttachment$Blob$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -792,7 +828,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$BlobAttachment$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -801,7 +837,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -810,7 +846,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$ChunkInfo", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Citation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -819,7 +855,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$ChunkInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Citation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -828,7 +864,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$ChunkInfo$DocumentMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$CitationSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -837,7 +873,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$ChunkInfo$DocumentMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$CitationSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -846,7 +882,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$StructuredDocumentInfo", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$GroundingSupport", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -855,7 +891,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$StructuredDocumentInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$GroundingSupport$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -864,7 +900,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$UnstructuredDocumentInfo", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$QueryUnderstandingInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -873,7 +909,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$UnstructuredDocumentInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$QueryUnderstandingInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -882,7 +918,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$UnstructuredDocumentInfo$ChunkContent", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$QueryUnderstandingInfo$QueryClassificationInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -891,7 +927,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$UnstructuredDocumentInfo$ChunkContent$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$QueryUnderstandingInfo$QueryClassificationInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -900,7 +936,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$State", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$QueryUnderstandingInfo$QueryClassificationInfo$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -909,7 +945,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -918,7 +954,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -927,7 +963,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$ChunkInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -936,7 +972,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$Observation", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$ChunkInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -945,7 +981,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$Observation$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$ChunkInfo$DocumentMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -954,7 +990,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$Observation$SearchResult", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$ChunkInfo$DocumentMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -963,7 +999,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$Observation$SearchResult$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$StructuredDocumentInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -972,7 +1008,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$Observation$SearchResult$ChunkInfo", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$StructuredDocumentInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -981,7 +1017,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$Observation$SearchResult$ChunkInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$UnstructuredDocumentInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -990,7 +1026,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$Observation$SearchResult$SnippetInfo", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$UnstructuredDocumentInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -999,7 +1035,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$Observation$SearchResult$SnippetInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$UnstructuredDocumentInfo$ChunkContent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1008,7 +1044,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$SearchAction", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Reference$UnstructuredDocumentInfo$ChunkContent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1017,7 +1053,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$SearchAction$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +1062,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +1071,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$State", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +1080,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1053,7 +1089,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$AnswerGenerationSpec", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$Observation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1062,7 +1098,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$AnswerGenerationSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$Observation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1071,7 +1107,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$AnswerGenerationSpec$ModelSpec", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$Observation$SearchResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1080,7 +1116,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$AnswerGenerationSpec$ModelSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$Observation$SearchResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1089,7 +1125,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$AnswerGenerationSpec$PromptSpec", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$Observation$SearchResult$ChunkInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +1134,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$AnswerGenerationSpec$PromptSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$Observation$SearchResult$ChunkInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +1143,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$Observation$SearchResult$SnippetInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +1152,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$GroundingSpec", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$Observation$SearchResult$SnippetInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +1161,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$GroundingSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$SearchAction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +1170,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$GroundingSpec$FilteringLevel", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Action$SearchAction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +1179,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$QueryUnderstandingSpec", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +1188,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$QueryUnderstandingSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Answer$Step$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +1197,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$QueryUnderstandingSpec$QueryClassificationSpec", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +1206,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$QueryUnderstandingSpec$QueryClassificationSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$QueryUnderstandingSpec$QueryClassificationSpec$Type", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec$UserDefinedClassifierSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +1224,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$QueryUnderstandingSpec$QueryRephraserSpec", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec$UserDefinedClassifierSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +1233,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$QueryUnderstandingSpec$QueryRephraserSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +1242,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$RelatedQuestionsSpec", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$AnswerGenerationSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +1251,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$RelatedQuestionsSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$AnswerGenerationSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +1260,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SafetySpec", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$AnswerGenerationSpec$ModelSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +1269,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SafetySpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$AnswerGenerationSpec$ModelSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +1278,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$AnswerGenerationSpec$MultimodalSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$AnswerGenerationSpec$MultimodalSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchParams", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$AnswerGenerationSpec$MultimodalSpec$ImageSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +1305,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchParams$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$AnswerGenerationSpec$PromptSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1278,7 +1314,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$AnswerGenerationSpec$PromptSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1287,7 +1323,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1296,7 +1332,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$EndUserSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1305,7 +1341,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$EndUserSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1314,7 +1350,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$ChunkInfo", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$EndUserSpec$EndUserMetaData", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1323,7 +1359,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$ChunkInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$EndUserSpec$EndUserMetaData$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1332,7 +1368,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$ChunkInfo$DocumentMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$EndUserSpec$EndUserMetaData$ChunkInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1341,7 +1377,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$ChunkInfo$DocumentMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$EndUserSpec$EndUserMetaData$ChunkInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1350,7 +1386,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$EndUserSpec$EndUserMetaData$ChunkInfo$DocumentMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1359,7 +1395,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$EndUserSpec$EndUserMetaData$ChunkInfo$DocumentMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1368,7 +1404,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$DocumentContext", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$GroundingSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1377,7 +1413,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$DocumentContext$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$GroundingSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1386,7 +1422,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$ExtractiveAnswer", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$GroundingSpec$FilteringLevel", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1395,7 +1431,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$ExtractiveAnswer$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$QueryUnderstandingSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1404,7 +1440,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$ExtractiveSegment", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$QueryUnderstandingSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1413,7 +1449,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$ExtractiveSegment$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$QueryUnderstandingSpec$QueryClassificationSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1422,7 +1458,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryResponse", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$QueryUnderstandingSpec$QueryClassificationSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1431,7 +1467,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$QueryUnderstandingSpec$QueryClassificationSpec$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1440,7 +1476,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchCreateTargetSiteMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$QueryUnderstandingSpec$QueryRephraserSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1449,7 +1485,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchCreateTargetSiteMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$QueryUnderstandingSpec$QueryRephraserSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1458,7 +1494,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchCreateTargetSitesRequest", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$QueryUnderstandingSpec$QueryRephraserSpec$ModelSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1467,7 +1503,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchCreateTargetSitesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$QueryUnderstandingSpec$QueryRephraserSpec$ModelSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1476,7 +1512,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchCreateTargetSitesResponse", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$QueryUnderstandingSpec$QueryRephraserSpec$ModelSpec$ModelType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1485,7 +1521,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchCreateTargetSitesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$RelatedQuestionsSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1494,7 +1530,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataRequest", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$RelatedQuestionsSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1503,7 +1539,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SafetySpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1512,7 +1548,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataRequest$FhirMatcher", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SafetySpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1521,7 +1557,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataRequest$FhirMatcher$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SafetySpec$SafetySetting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1530,7 +1566,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataRequest$Matcher", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SafetySpec$SafetySetting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1539,7 +1575,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataRequest$Matcher$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SafetySpec$SafetySetting$HarmBlockThreshold", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1548,7 +1584,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataRequest$UrisMatcher", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1557,7 +1593,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataRequest$UrisMatcher$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1566,7 +1602,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataResponse", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchParams", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1575,7 +1611,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchParams$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1584,7 +1620,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataResponse$DocumentMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1593,7 +1629,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataResponse$DocumentMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1602,7 +1638,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataResponse$DocumentMetadata$MatcherValue", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1611,7 +1647,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataResponse$DocumentMetadata$MatcherValue$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1620,7 +1656,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataResponse$State", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$ChunkInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1629,7 +1665,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchVerifyTargetSitesMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$ChunkInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1638,7 +1674,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchVerifyTargetSitesMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$ChunkInfo$DocumentMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1647,7 +1683,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchVerifyTargetSitesRequest", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$ChunkInfo$DocumentMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1656,7 +1692,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchVerifyTargetSitesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1665,7 +1701,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchVerifyTargetSitesResponse", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1674,7 +1710,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BatchVerifyTargetSitesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$DocumentContext", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1683,7 +1719,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BigQuerySource", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$DocumentContext$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1692,7 +1728,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BigQuerySource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$ExtractiveAnswer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1701,7 +1737,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BigtableOptions", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$ExtractiveAnswer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1710,7 +1746,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BigtableOptions$BigtableColumn", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$ExtractiveSegment", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1719,7 +1755,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BigtableOptions$BigtableColumn$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest$SearchSpec$SearchResultList$SearchResult$UnstructuredDocumentInfo$ExtractiveSegment$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1728,7 +1764,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BigtableOptions$BigtableColumnFamily", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1737,7 +1773,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BigtableOptions$BigtableColumnFamily$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AnswerQueryResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1746,7 +1782,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BigtableOptions$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistAnswer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1755,7 +1791,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BigtableOptions$Encoding", + "name": "com.google.cloud.discoveryengine.v1beta.AssistAnswer$AssistSkippedReason", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1764,7 +1800,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BigtableOptions$Type", + "name": "com.google.cloud.discoveryengine.v1beta.AssistAnswer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1773,7 +1809,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BigtableSource", + "name": "com.google.cloud.discoveryengine.v1beta.AssistAnswer$CustomerPolicyEnforcementResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1782,7 +1818,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.BigtableSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistAnswer$CustomerPolicyEnforcementResult$BannedPhraseEnforcementResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1791,7 +1827,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingRequest", + "name": "com.google.cloud.discoveryengine.v1beta.AssistAnswer$CustomerPolicyEnforcementResult$BannedPhraseEnforcementResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1800,7 +1836,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistAnswer$CustomerPolicyEnforcementResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1809,7 +1845,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingResponse", + "name": "com.google.cloud.discoveryengine.v1beta.AssistAnswer$CustomerPolicyEnforcementResult$ModelArmorEnforcementResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1818,7 +1854,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistAnswer$CustomerPolicyEnforcementResult$ModelArmorEnforcementResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1827,7 +1863,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingResponse$CheckGroundingFactChunk", + "name": "com.google.cloud.discoveryengine.v1beta.AssistAnswer$CustomerPolicyEnforcementResult$PolicyEnforcementResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1836,7 +1872,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingResponse$CheckGroundingFactChunk$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistAnswer$CustomerPolicyEnforcementResult$PolicyEnforcementResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1845,7 +1881,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingResponse$Claim", + "name": "com.google.cloud.discoveryengine.v1beta.AssistAnswer$CustomerPolicyEnforcementResult$Verdict", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1854,7 +1890,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingResponse$Claim$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistAnswer$Reply", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1863,7 +1899,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingSpec", + "name": "com.google.cloud.discoveryengine.v1beta.AssistAnswer$Reply$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1872,7 +1908,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistAnswer$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1881,7 +1917,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Chunk", + "name": "com.google.cloud.discoveryengine.v1beta.AssistUserMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1890,7 +1926,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Chunk$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistUserMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1899,7 +1935,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Chunk$ChunkMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.Assistant", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1908,7 +1944,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Chunk$ChunkMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Assistant$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1917,7 +1953,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Chunk$DocumentMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.Assistant$CustomerPolicy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1926,7 +1962,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Chunk$DocumentMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Assistant$CustomerPolicy$BannedPhrase", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1935,7 +1971,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Chunk$PageSpan", + "name": "com.google.cloud.discoveryengine.v1beta.Assistant$CustomerPolicy$BannedPhrase$BannedPhraseMatchType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1944,7 +1980,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Chunk$PageSpan$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Assistant$CustomerPolicy$BannedPhrase$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1953,7 +1989,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CloudSqlSource", + "name": "com.google.cloud.discoveryengine.v1beta.Assistant$CustomerPolicy$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1962,7 +1998,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CloudSqlSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Assistant$CustomerPolicy$ModelArmorConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1971,7 +2007,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Assistant$CustomerPolicy$ModelArmorConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1980,7 +2016,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Assistant$CustomerPolicy$ModelArmorConfig$FailureMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1989,7 +2025,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Assistant$GenerationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1998,7 +2034,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Assistant$GenerationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2007,7 +2043,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse", + "name": "com.google.cloud.discoveryengine.v1beta.Assistant$GenerationConfig$SystemInstruction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2016,7 +2052,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Assistant$GenerationConfig$SystemInstruction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2025,7 +2061,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse$QuerySuggestion", + "name": "com.google.cloud.discoveryengine.v1beta.Assistant$ToolInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2034,7 +2070,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse$QuerySuggestion$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Assistant$ToolInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2043,7 +2079,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CompletionInfo", + "name": "com.google.cloud.discoveryengine.v1beta.Assistant$ToolList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2052,7 +2088,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CompletionInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Assistant$ToolList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2061,7 +2097,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CompletionSuggestion", + "name": "com.google.cloud.discoveryengine.v1beta.Assistant$WebGroundingType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2070,7 +2106,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CompletionSuggestion$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantContent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2079,7 +2115,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Condition", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantContent$Blob", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2088,7 +2124,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Condition$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantContent$Blob$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2097,7 +2133,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Condition$QueryTerm", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantContent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2106,7 +2142,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Condition$QueryTerm$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantContent$CodeExecutionResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2115,7 +2151,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Condition$TimeRange", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantContent$CodeExecutionResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2124,7 +2160,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Condition$TimeRange$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantContent$CodeExecutionResult$Outcome", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2133,7 +2169,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Control", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantContent$ExecutableCode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2142,7 +2178,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Control$BoostAction", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantContent$ExecutableCode$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2151,7 +2187,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Control$BoostAction$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantContent$File", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2160,7 +2196,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Control$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantContent$File$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2169,7 +2205,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Control$FilterAction", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2178,7 +2214,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Control$FilterAction$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2187,7 +2223,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Control$RedirectAction", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent$TextGroundingMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2196,7 +2232,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Control$RedirectAction$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent$TextGroundingMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2205,7 +2241,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Control$SynonymsAction", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent$TextGroundingMetadata$Reference", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2214,7 +2250,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Control$SynonymsAction$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent$TextGroundingMetadata$Reference$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2223,7 +2259,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Conversation", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent$TextGroundingMetadata$Reference$DocumentMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2232,7 +2268,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Conversation$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent$TextGroundingMetadata$Reference$DocumentMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2241,7 +2277,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Conversation$State", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent$TextGroundingMetadata$Reference$DocumentMetadata$Language", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2250,7 +2286,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ConversationContext", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent$TextGroundingMetadata$Segment", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2259,7 +2295,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ConversationContext$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent$TextGroundingMetadata$Segment$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2268,7 +2304,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ConversationMessage", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent$TextGroundingMetadata$VisualSegment", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2277,7 +2313,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ConversationMessage$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent$TextGroundingMetadata$VisualSegment$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2286,7 +2322,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest", + "name": "com.google.cloud.discoveryengine.v1beta.BatchCreateTargetSiteMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2295,7 +2331,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BatchCreateTargetSiteMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2304,7 +2340,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse", + "name": "com.google.cloud.discoveryengine.v1beta.BatchCreateTargetSitesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2313,7 +2349,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BatchCreateTargetSitesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2322,7 +2358,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateControlRequest", + "name": "com.google.cloud.discoveryengine.v1beta.BatchCreateTargetSitesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2331,7 +2367,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateControlRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BatchCreateTargetSitesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2340,7 +2376,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateConversationRequest", + "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2349,7 +2385,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateConversationRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2358,7 +2394,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateDataStoreMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataRequest$FhirMatcher", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2367,7 +2403,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateDataStoreMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataRequest$FhirMatcher$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2376,7 +2412,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateDataStoreRequest", + "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataRequest$Matcher", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2385,7 +2421,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateDataStoreRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataRequest$Matcher$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2394,7 +2430,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest", + "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataRequest$UrisMatcher", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2403,7 +2439,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataRequest$UrisMatcher$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2412,7 +2448,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateEngineMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2421,7 +2457,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateEngineMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2430,7 +2466,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateEngineRequest", + "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataResponse$DocumentMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2439,7 +2475,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateEngineRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataResponse$DocumentMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2448,7 +2484,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataResponse$DocumentMetadata$MatcherValue", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2457,7 +2493,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataResponse$DocumentMetadata$MatcherValue$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2466,7 +2502,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest", + "name": "com.google.cloud.discoveryengine.v1beta.BatchGetDocumentsMetadataResponse$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2475,7 +2511,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2484,7 +2520,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest", + "name": "com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2493,7 +2529,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2502,7 +2538,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest", + "name": "com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2511,7 +2547,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest$InlineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2520,7 +2556,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest$InlineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2529,7 +2565,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2538,7 +2574,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest", + "name": "com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2547,7 +2583,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BatchVerifyTargetSitesMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2556,7 +2592,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateSessionRequest", + "name": "com.google.cloud.discoveryengine.v1beta.BatchVerifyTargetSitesMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2565,7 +2601,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateSessionRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BatchVerifyTargetSitesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2574,7 +2610,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateSitemapMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.BatchVerifyTargetSitesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2583,7 +2619,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateSitemapMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BatchVerifyTargetSitesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2592,7 +2628,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateSitemapRequest", + "name": "com.google.cloud.discoveryengine.v1beta.BatchVerifyTargetSitesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2601,7 +2637,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateSitemapRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BigQuerySource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2610,7 +2646,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateTargetSiteMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.BigQuerySource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2619,7 +2655,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateTargetSiteMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BigtableOptions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2628,7 +2664,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest", + "name": "com.google.cloud.discoveryengine.v1beta.BigtableOptions$BigtableColumn", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2637,7 +2673,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BigtableOptions$BigtableColumn$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2646,7 +2682,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CustomAttribute", + "name": "com.google.cloud.discoveryengine.v1beta.BigtableOptions$BigtableColumnFamily", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2655,7 +2691,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CustomAttribute$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BigtableOptions$BigtableColumnFamily$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2664,7 +2700,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CustomTuningModel", + "name": "com.google.cloud.discoveryengine.v1beta.BigtableOptions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2673,7 +2709,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CustomTuningModel$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.BigtableOptions$Encoding", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2682,7 +2718,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.CustomTuningModel$ModelState", + "name": "com.google.cloud.discoveryengine.v1beta.BigtableOptions$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2691,7 +2727,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DataStore", + "name": "com.google.cloud.discoveryengine.v1beta.BigtableSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2700,7 +2736,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DataStore$BillingEstimation", + "name": "com.google.cloud.discoveryengine.v1beta.BigtableSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2709,7 +2745,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DataStore$BillingEstimation$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2718,7 +2754,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DataStore$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2727,7 +2763,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DataStore$ContentConfig", + "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2736,7 +2772,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DataStore$ServingConfigDataStore", + "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2745,7 +2781,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DataStore$ServingConfigDataStore$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingResponse$CheckGroundingFactChunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2754,7 +2790,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteControlRequest", + "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingResponse$CheckGroundingFactChunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2763,7 +2799,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteControlRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingResponse$Claim", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2772,7 +2808,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest", + "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingResponse$Claim$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2781,7 +2817,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2790,7 +2826,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteDataStoreMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.CheckGroundingSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2799,7 +2835,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteDataStoreMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Chunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2808,7 +2844,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteDataStoreRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Chunk$AnnotationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2817,7 +2853,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteDataStoreRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Chunk$AnnotationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2826,7 +2862,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Chunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2835,7 +2871,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Chunk$ChunkMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2844,7 +2880,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteEngineMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.Chunk$ChunkMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2853,7 +2889,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteEngineMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Chunk$DocumentMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2862,7 +2898,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteEngineRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Chunk$DocumentMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2871,7 +2907,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteEngineRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Chunk$PageSpan", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2880,7 +2916,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Chunk$PageSpan$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2889,7 +2925,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Chunk$StructureType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2898,7 +2934,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Chunk$StructuredContent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2907,7 +2943,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Chunk$StructuredContent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2916,7 +2952,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.Citation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2925,7 +2961,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Citation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2934,7 +2970,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Citation$PhishBlockThreshold", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2943,7 +2979,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CitationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2952,7 +2988,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteSessionRequest", + "name": "com.google.cloud.discoveryengine.v1beta.CitationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2961,7 +2997,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteSessionRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CloudSqlSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2970,7 +3006,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteSitemapMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.CloudSqlSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2979,7 +3015,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteSitemapMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CmekConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2988,7 +3024,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteSitemapRequest", + "name": "com.google.cloud.discoveryengine.v1beta.CmekConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2997,7 +3033,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteSitemapRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CmekConfig$NotebookLMState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3006,7 +3042,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteTargetSiteMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.CmekConfig$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3015,7 +3051,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteTargetSiteMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3024,7 +3060,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteTargetSiteRequest", + "name": "com.google.cloud.discoveryengine.v1beta.CollectUserEventRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3033,7 +3069,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DeleteTargetSiteRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3042,7 +3078,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DisableAdvancedSiteSearchMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.CompleteQueryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3051,7 +3087,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DisableAdvancedSiteSearchMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3060,7 +3096,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DisableAdvancedSiteSearchRequest", + "name": "com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3069,7 +3105,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DisableAdvancedSiteSearchRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse$QuerySuggestion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3078,7 +3114,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DisableAdvancedSiteSearchResponse", + "name": "com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse$QuerySuggestion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3087,7 +3123,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DisableAdvancedSiteSearchResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CompletionInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3096,7 +3132,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Document", + "name": "com.google.cloud.discoveryengine.v1beta.CompletionInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3105,7 +3141,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Document$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CompletionSuggestion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3114,7 +3150,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Document$Content", + "name": "com.google.cloud.discoveryengine.v1beta.CompletionSuggestion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3123,7 +3159,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Document$Content$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Condition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3132,7 +3168,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Document$IndexStatus", + "name": "com.google.cloud.discoveryengine.v1beta.Condition$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3141,7 +3177,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Document$IndexStatus$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Condition$QueryTerm", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3150,7 +3186,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DocumentInfo", + "name": "com.google.cloud.discoveryengine.v1beta.Condition$QueryTerm$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3159,7 +3195,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DocumentInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Condition$TimeRange", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3168,7 +3204,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig", + "name": "com.google.cloud.discoveryengine.v1beta.Condition$TimeRange$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3177,7 +3213,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Control", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3186,7 +3222,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ChunkingConfig", + "name": "com.google.cloud.discoveryengine.v1beta.Control$BoostAction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3195,7 +3231,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ChunkingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Control$BoostAction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3204,7 +3240,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ChunkingConfig$LayoutBasedChunkingConfig", + "name": "com.google.cloud.discoveryengine.v1beta.Control$BoostAction$InterpolationBoostSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3213,7 +3249,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ChunkingConfig$LayoutBasedChunkingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Control$BoostAction$InterpolationBoostSpec$AttributeType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3222,7 +3258,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig", + "name": "com.google.cloud.discoveryengine.v1beta.Control$BoostAction$InterpolationBoostSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3231,7 +3267,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Control$BoostAction$InterpolationBoostSpec$ControlPoint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3240,7 +3276,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$DigitalParsingConfig", + "name": "com.google.cloud.discoveryengine.v1beta.Control$BoostAction$InterpolationBoostSpec$ControlPoint$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3249,7 +3285,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$DigitalParsingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Control$BoostAction$InterpolationBoostSpec$InterpolationType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3258,7 +3294,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$LayoutParsingConfig", + "name": "com.google.cloud.discoveryengine.v1beta.Control$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3267,7 +3303,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$LayoutParsingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Control$FilterAction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3276,7 +3312,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$OcrParsingConfig", + "name": "com.google.cloud.discoveryengine.v1beta.Control$FilterAction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3285,7 +3321,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$OcrParsingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Control$PromoteAction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3294,7 +3330,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DoubleList", + "name": "com.google.cloud.discoveryengine.v1beta.Control$PromoteAction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3303,7 +3339,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.DoubleList$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Control$RedirectAction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3312,7 +3348,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.EmbeddingConfig", + "name": "com.google.cloud.discoveryengine.v1beta.Control$RedirectAction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3321,7 +3357,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.EmbeddingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Control$SynonymsAction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3330,7 +3366,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.EnableAdvancedSiteSearchMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.Control$SynonymsAction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3339,7 +3375,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.EnableAdvancedSiteSearchMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Conversation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3348,7 +3384,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.EnableAdvancedSiteSearchRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Conversation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3357,7 +3393,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.EnableAdvancedSiteSearchRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Conversation$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3366,7 +3402,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.EnableAdvancedSiteSearchResponse", + "name": "com.google.cloud.discoveryengine.v1beta.ConversationContext", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3375,7 +3411,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.EnableAdvancedSiteSearchResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ConversationContext$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3384,7 +3420,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Engine", + "name": "com.google.cloud.discoveryengine.v1beta.ConversationMessage", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3393,7 +3429,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Engine$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ConversationMessage$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3402,7 +3438,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Engine$ChatEngineConfig", + "name": "com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3411,7 +3447,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Engine$ChatEngineConfig$AgentCreationConfig", + "name": "com.google.cloud.discoveryengine.v1beta.ConverseConversationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3420,7 +3456,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Engine$ChatEngineConfig$AgentCreationConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3429,7 +3465,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Engine$ChatEngineConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ConverseConversationResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3438,7 +3474,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Engine$ChatEngineMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3447,7 +3483,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Engine$ChatEngineMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3456,7 +3492,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Engine$CommonConfig", + "name": "com.google.cloud.discoveryengine.v1beta.CreateControlRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3465,7 +3501,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Engine$CommonConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateControlRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3474,7 +3510,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Engine$SearchEngineConfig", + "name": "com.google.cloud.discoveryengine.v1beta.CreateConversationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3483,7 +3519,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Engine$SearchEngineConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateConversationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3492,7 +3528,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Evaluation", + "name": "com.google.cloud.discoveryengine.v1beta.CreateDataStoreMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3501,7 +3537,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Evaluation$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateDataStoreMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3510,7 +3546,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Evaluation$EvaluationSpec", + "name": "com.google.cloud.discoveryengine.v1beta.CreateDataStoreRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3519,7 +3555,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Evaluation$EvaluationSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateDataStoreRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3528,7 +3564,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Evaluation$EvaluationSpec$QuerySetSpec", + "name": "com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3537,7 +3573,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Evaluation$EvaluationSpec$QuerySetSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateDocumentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3546,7 +3582,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Evaluation$State", + "name": "com.google.cloud.discoveryengine.v1beta.CreateEngineMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3555,7 +3591,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FactChunk", + "name": "com.google.cloud.discoveryengine.v1beta.CreateEngineMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3564,7 +3600,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FactChunk$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateEngineRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3573,7 +3609,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusRequest", + "name": "com.google.cloud.discoveryengine.v1beta.CreateEngineRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3582,7 +3618,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3591,7 +3627,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusResponse", + "name": "com.google.cloud.discoveryengine.v1beta.CreateEvaluationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3600,7 +3636,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3609,7 +3645,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.CreateEvaluationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3618,7 +3654,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3627,7 +3663,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsRequest$Matcher", + "name": "com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3636,7 +3672,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsRequest$Matcher$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3645,7 +3681,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsRequest$UrisMatcher", + "name": "com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3654,7 +3690,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsRequest$UrisMatcher$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3663,7 +3699,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.CreateSampleQueryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3672,7 +3708,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3681,7 +3717,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsResponse$SitemapMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.CreateSampleQuerySetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3690,7 +3726,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsResponse$SitemapMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3699,7 +3735,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FhirStoreSource", + "name": "com.google.cloud.discoveryengine.v1beta.CreateSchemaMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3708,7 +3744,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FhirStoreSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3717,7 +3753,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FirestoreSource", + "name": "com.google.cloud.discoveryengine.v1beta.CreateSchemaRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3726,7 +3762,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.FirestoreSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3735,7 +3771,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GcsSource", + "name": "com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3744,7 +3780,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GcsSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateSessionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3753,7 +3789,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest", + "name": "com.google.cloud.discoveryengine.v1beta.CreateSessionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3762,7 +3798,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateSitemapMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3771,7 +3807,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$DynamicRetrievalConfiguration", + "name": "com.google.cloud.discoveryengine.v1beta.CreateSitemapMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3780,7 +3816,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateSitemapRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3789,7 +3825,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$DynamicRetrievalPredictor", + "name": "com.google.cloud.discoveryengine.v1beta.CreateSitemapRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3798,7 +3834,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$DynamicRetrievalPredictor$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateTargetSiteMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3807,7 +3843,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$DynamicRetrievalPredictor$Version", + "name": "com.google.cloud.discoveryengine.v1beta.CreateTargetSiteMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3816,7 +3852,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GenerationSpec", + "name": "com.google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3825,7 +3861,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GenerationSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CreateTargetSiteRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3834,7 +3870,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSource", + "name": "com.google.cloud.discoveryengine.v1beta.CustomAttribute", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3843,7 +3879,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CustomAttribute$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3852,7 +3888,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSource$GoogleSearchSource", + "name": "com.google.cloud.discoveryengine.v1beta.CustomTuningModel", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3861,7 +3897,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSource$GoogleSearchSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.CustomTuningModel$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3870,7 +3906,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSource$InlineSource", + "name": "com.google.cloud.discoveryengine.v1beta.CustomTuningModel$ModelState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3879,7 +3915,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSource$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3888,7 +3924,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSource$SearchSource", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$BillingEstimation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3897,7 +3933,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSource$SearchSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$BillingEstimation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3906,7 +3942,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSpec", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3915,7 +3951,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$ConfigurableBillingApproach", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3924,7 +3960,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$ContentConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3933,7 +3969,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$FederatedSearchConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3942,7 +3978,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$FederatedSearchConfig$AlloyDbConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3951,7 +3987,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$FederatedSearchConfig$AlloyDbConfig$AlloyDbAiNaturalLanguageConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3960,7 +3996,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$FederatedSearchConfig$AlloyDbConfig$AlloyDbAiNaturalLanguageConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3969,7 +4005,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$FederatedSearchConfig$AlloyDbConfig$AlloyDbConnectionConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3978,7 +4014,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$FederatedSearchConfig$AlloyDbConfig$AlloyDbConnectionConfig$AuthMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3987,7 +4023,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$FederatedSearchConfig$AlloyDbConfig$AlloyDbConnectionConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3996,7 +4032,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalPredictorMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$FederatedSearchConfig$AlloyDbConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4005,7 +4041,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalPredictorMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$FederatedSearchConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4014,7 +4050,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalPredictorMetadata$Version", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$FederatedSearchConfig$NotebooklmConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4023,7 +4059,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$GroundingSupport", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$FederatedSearchConfig$NotebooklmConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4032,7 +4068,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$GroundingSupport$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$FederatedSearchConfig$ThirdPartyOauthConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4041,7 +4077,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$RetrievalMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$FederatedSearchConfig$ThirdPartyOauthConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4050,7 +4086,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$RetrievalMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$ServingConfigDataStore", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4059,7 +4095,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$RetrievalMetadata$Source", + "name": "com.google.cloud.discoveryengine.v1beta.DataStore$ServingConfigDataStore$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4068,7 +4104,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$SearchEntryPoint", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4077,7 +4113,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$SearchEntryPoint$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4086,7 +4122,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetAnswerRequest", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4095,7 +4131,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetAnswerRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4104,7 +4140,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetControlRequest", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4113,7 +4149,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetControlRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4122,7 +4158,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetConversationRequest", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteControlRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4131,7 +4167,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetConversationRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteControlRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4140,7 +4176,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetDataStoreRequest", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4149,7 +4185,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetDataStoreRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteConversationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4158,7 +4194,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetDocumentRequest", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteDataStoreMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4167,7 +4203,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetDocumentRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteDataStoreMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4176,7 +4212,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetEngineRequest", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteDataStoreRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4185,7 +4221,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetEngineRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteDataStoreRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4194,7 +4230,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4203,7 +4239,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteDocumentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4212,7 +4248,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteEngineMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4221,7 +4257,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteEngineMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4230,7 +4266,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteEngineRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4239,7 +4275,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteEngineRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4248,7 +4284,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetSchemaRequest", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4257,7 +4293,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetSchemaRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4266,7 +4302,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetServingConfigRequest", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4275,7 +4311,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetServingConfigRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4284,7 +4320,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetSessionRequest", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4293,7 +4329,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetSessionRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteSampleQueryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4302,7 +4338,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetSiteSearchEngineRequest", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4311,7 +4347,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetSiteSearchEngineRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteSampleQuerySetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4320,7 +4356,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetTargetSiteRequest", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4329,7 +4365,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GetTargetSiteRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteSchemaMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4338,7 +4374,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GroundedGenerationContent", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4347,7 +4383,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GroundedGenerationContent$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteSchemaRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4356,7 +4392,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GroundedGenerationContent$Part", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4365,7 +4401,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GroundedGenerationContent$Part$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4374,7 +4410,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GroundingConfig", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteSessionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4383,7 +4419,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GroundingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteSessionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4392,7 +4428,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GroundingFact", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteSitemapMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4401,7 +4437,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.GroundingFact$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteSitemapMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4410,7 +4446,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteSitemapRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4419,7 +4455,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteSitemapRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4428,7 +4464,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteTargetSiteMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4437,7 +4473,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteTargetSiteMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4446,7 +4482,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteTargetSiteRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4455,7 +4491,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DeleteTargetSiteRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4464,7 +4500,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.DisableAdvancedSiteSearchMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4473,7 +4509,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DisableAdvancedSiteSearchMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4482,7 +4518,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.DisableAdvancedSiteSearchRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4491,7 +4527,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DisableAdvancedSiteSearchRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4500,7 +4536,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.DisableAdvancedSiteSearchResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4509,7 +4545,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DisableAdvancedSiteSearchResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4518,7 +4554,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4527,7 +4563,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4536,7 +4572,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest$ReconciliationMode", + "name": "com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4545,7 +4581,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4554,7 +4590,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Document", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4563,7 +4599,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportErrorConfig", + "name": "com.google.cloud.discoveryengine.v1beta.Document$AclInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4572,7 +4608,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportErrorConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Document$AclInfo$AccessRestriction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4581,7 +4617,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.Document$AclInfo$AccessRestriction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4590,7 +4626,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Document$AclInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4599,7 +4635,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Document$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4608,7 +4644,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Document$Content", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4617,7 +4653,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1beta.Document$Content$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4626,7 +4662,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Document$IndexStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4635,7 +4671,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse", + "name": "com.google.cloud.discoveryengine.v1beta.Document$IndexStatus$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4644,7 +4680,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DocumentInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4653,7 +4689,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.DocumentInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4662,7 +4698,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4671,7 +4707,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest", + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4680,7 +4716,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ChunkingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4689,7 +4725,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ChunkingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4698,7 +4734,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ChunkingConfig$LayoutBasedChunkingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4707,7 +4743,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesResponse", + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ChunkingConfig$LayoutBasedChunkingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4716,7 +4752,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4725,7 +4761,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4734,7 +4770,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$DigitalParsingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4743,7 +4779,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$DigitalParsingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4752,7 +4788,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$LayoutParsingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4761,7 +4797,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$LayoutParsingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4770,7 +4806,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$OcrParsingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4779,7 +4815,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig$ParsingConfig$OcrParsingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4788,7 +4824,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.DoubleList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4797,7 +4833,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.IndustryVertical", + "name": "com.google.cloud.discoveryengine.v1beta.DoubleList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4806,7 +4842,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Interval", + "name": "com.google.cloud.discoveryengine.v1beta.EmbeddingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4815,7 +4851,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Interval$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.EmbeddingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4824,7 +4860,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.LanguageInfo", + "name": "com.google.cloud.discoveryengine.v1beta.EnableAdvancedSiteSearchMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4833,7 +4869,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.LanguageInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.EnableAdvancedSiteSearchMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4842,7 +4878,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListControlsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.EnableAdvancedSiteSearchRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4851,7 +4887,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListControlsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.EnableAdvancedSiteSearchRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4860,7 +4896,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListControlsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.EnableAdvancedSiteSearchResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4869,7 +4905,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListControlsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.EnableAdvancedSiteSearchResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4878,7 +4914,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListConversationsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Engine", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4887,7 +4923,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListConversationsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$AppType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4896,7 +4932,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListConversationsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4905,7 +4941,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListConversationsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$ChatEngineConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4914,7 +4950,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListCustomModelsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$ChatEngineConfig$AgentCreationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4923,7 +4959,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListCustomModelsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$ChatEngineConfig$AgentCreationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4932,7 +4968,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListCustomModelsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$ChatEngineConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4941,7 +4977,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListCustomModelsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$ChatEngineMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4950,7 +4986,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListDataStoresRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$ChatEngineMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4959,7 +4995,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListDataStoresRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$CommonConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4968,7 +5004,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListDataStoresResponse", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$CommonConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4977,7 +5013,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListDataStoresResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$ConfigurableBillingApproach", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4986,7 +5022,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$FeatureState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4995,7 +5031,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$KnowledgeGraphConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5004,7 +5040,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$KnowledgeGraphConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5013,7 +5049,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$KnowledgeGraphConfig$FeatureConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5022,7 +5058,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListEnginesRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$KnowledgeGraphConfig$FeatureConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5031,7 +5067,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListEnginesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$MarketplaceAgentVisibility", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5040,7 +5076,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListEnginesResponse", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$MediaRecommendationEngineConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5049,7 +5085,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListEnginesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$MediaRecommendationEngineConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5058,7 +5094,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$MediaRecommendationEngineConfig$EngineFeaturesConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5067,7 +5103,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$MediaRecommendationEngineConfig$EngineFeaturesConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5076,7 +5112,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$MediaRecommendationEngineConfig$MostPopularFeatureConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5085,7 +5121,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$MediaRecommendationEngineConfig$MostPopularFeatureConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5094,7 +5130,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse$EvaluationResult", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$MediaRecommendationEngineConfig$OptimizationObjectiveConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5103,7 +5139,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse$EvaluationResult$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$MediaRecommendationEngineConfig$OptimizationObjectiveConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5112,7 +5148,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$MediaRecommendationEngineConfig$RecommendedForYouFeatureConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5121,7 +5157,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$MediaRecommendationEngineConfig$RecommendedForYouFeatureConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5130,7 +5166,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$MediaRecommendationEngineConfig$TrainingState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5139,7 +5175,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$ModelState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5148,7 +5184,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$SearchEngineConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5157,7 +5193,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Engine$SearchEngineConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5166,7 +5202,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse", + "name": "com.google.cloud.discoveryengine.v1beta.Evaluation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5175,7 +5211,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Evaluation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5184,7 +5220,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Evaluation$EvaluationSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5193,7 +5229,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Evaluation$EvaluationSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5202,7 +5238,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.Evaluation$EvaluationSpec$QuerySetSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5211,7 +5247,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Evaluation$EvaluationSpec$QuerySetSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5220,7 +5256,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSchemasRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Evaluation$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5229,7 +5265,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSchemasRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.FactChunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5238,7 +5274,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSchemasResponse", + "name": "com.google.cloud.discoveryengine.v1beta.FactChunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5247,7 +5283,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSchemasResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Feedback", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5256,7 +5292,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListServingConfigsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Feedback$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5265,7 +5301,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListServingConfigsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Feedback$ConversationInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5274,7 +5310,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListServingConfigsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.Feedback$ConversationInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5283,7 +5319,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListServingConfigsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Feedback$FeedbackSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5292,7 +5328,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSessionsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.Feedback$FeedbackType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5301,7 +5337,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSessionsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Feedback$Reason", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5310,7 +5346,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSessionsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5319,7 +5355,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListSessionsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5328,7 +5364,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListTargetSitesRequest", + "name": "com.google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5337,7 +5373,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListTargetSitesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.FetchDomainVerificationStatusResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5346,7 +5382,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListTargetSitesResponse", + "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5355,7 +5391,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ListTargetSitesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5364,7 +5400,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.MediaInfo", + "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsRequest$Matcher", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5373,7 +5409,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.MediaInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsRequest$Matcher$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5382,7 +5418,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig", + "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsRequest$UrisMatcher", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5391,7 +5427,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsRequest$UrisMatcher$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5400,7 +5436,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig$Mode", + "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5409,7 +5445,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PageInfo", + "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5418,7 +5454,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PageInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsResponse$SitemapMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5427,7 +5463,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PanelInfo", + "name": "com.google.cloud.discoveryengine.v1beta.FetchSitemapsResponse$SitemapMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5436,7 +5472,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PanelInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.FhirStoreSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5445,7 +5481,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PauseEngineRequest", + "name": "com.google.cloud.discoveryengine.v1beta.FhirStoreSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5454,7 +5490,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PauseEngineRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.FirestoreSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5463,7 +5499,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Project", + "name": "com.google.cloud.discoveryengine.v1beta.FirestoreSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5472,7 +5508,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Project$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GcsSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5481,7 +5517,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Project$ServiceTerms", + "name": "com.google.cloud.discoveryengine.v1beta.GcsSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5490,7 +5526,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Project$ServiceTerms$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5499,7 +5535,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Project$ServiceTerms$State", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5508,7 +5544,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$DynamicRetrievalConfiguration", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5517,7 +5553,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5526,7 +5562,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$DynamicRetrievalPredictor", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5535,7 +5571,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$DynamicRetrievalPredictor$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5544,7 +5580,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$DynamicRetrievalConfiguration$DynamicRetrievalPredictor$Version", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5553,7 +5589,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GenerationSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5562,7 +5598,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GenerationSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5571,7 +5607,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GenerationSpec$ProvisionedThroughputSetting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5580,7 +5616,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5589,7 +5625,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5598,7 +5634,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSource$EnterpriseWebRetrievalSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5607,7 +5643,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSource$EnterpriseWebRetrievalSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5616,7 +5652,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSource$GoogleSearchSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5625,7 +5661,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSource$GoogleSearchSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5634,7 +5670,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest$InlineSource", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSource$InlineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5643,7 +5679,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest$InlineSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSource$InlineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5652,7 +5688,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSource$SearchSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5661,7 +5697,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSource$SearchSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5670,7 +5706,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeErrorConfig", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5679,7 +5715,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeErrorConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest$GroundingSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5688,7 +5724,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5697,7 +5733,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5706,7 +5742,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5715,7 +5751,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5724,7 +5760,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5733,7 +5769,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5742,7 +5778,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5751,7 +5787,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5760,7 +5796,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalPredictorMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5769,7 +5805,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalPredictorMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5778,7 +5814,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$DynamicRetrievalPredictorMetadata$Version", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5787,7 +5823,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$GroundingSupport", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5796,7 +5832,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.QualityMetrics", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$GroundingSupport$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5805,7 +5841,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.QualityMetrics$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$ImageMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5814,7 +5850,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.QualityMetrics$TopkMetrics", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$ImageMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5823,7 +5859,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.QualityMetrics$TopkMetrics$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$ImageMetadata$Image", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5832,7 +5868,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Query", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$ImageMetadata$Image$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5841,7 +5877,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Query$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$ImageMetadata$WebsiteInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5850,7 +5886,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RankRequest", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$ImageMetadata$WebsiteInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5859,7 +5895,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RankRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$RetrievalMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5868,7 +5904,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RankResponse", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$RetrievalMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5877,7 +5913,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RankResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$RetrievalMetadata$Source", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5886,7 +5922,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RankingRecord", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$SearchEntryPoint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5895,7 +5931,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RankingRecord$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$SearchEntryPoint$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5904,7 +5940,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecommendRequest", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$VideoMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5913,7 +5949,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecommendRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse$Candidate$GroundingMetadata$VideoMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5922,7 +5958,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecommendResponse", + "name": "com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5931,7 +5967,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecommendResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5940,7 +5976,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecommendResponse$RecommendationResult", + "name": "com.google.cloud.discoveryengine.v1beta.GetAnswerRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5949,7 +5985,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecommendResponse$RecommendationResult$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GetAnswerRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5958,7 +5994,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.GetAssistantRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5967,7 +6003,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GetAssistantRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5976,7 +6012,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisRequest", + "name": "com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5985,7 +6021,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5994,7 +6030,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse", + "name": "com.google.cloud.discoveryengine.v1beta.GetControlRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6003,7 +6039,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GetControlRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6012,7 +6048,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo", + "name": "com.google.cloud.discoveryengine.v1beta.GetConversationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6021,7 +6057,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GetConversationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6030,7 +6066,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo$FailureReason", + "name": "com.google.cloud.discoveryengine.v1beta.GetDataStoreRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6039,7 +6075,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo$FailureReason$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GetDataStoreRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6048,7 +6084,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo$FailureReason$CorpusType", + "name": "com.google.cloud.discoveryengine.v1beta.GetDocumentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6057,7 +6093,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Reply", + "name": "com.google.cloud.discoveryengine.v1beta.GetDocumentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6066,7 +6102,2689 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Reply$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.GetEngineRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetEngineRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetEvaluationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetSampleQueryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetSampleQuerySetRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetSchemaRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetSchemaRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetServingConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetServingConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetSessionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetSessionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetSiteSearchEngineRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetSiteSearchEngineRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetTargetSiteRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetTargetSiteRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GroundedGenerationContent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GroundedGenerationContent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GroundedGenerationContent$Part", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GroundedGenerationContent$Part$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GroundingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GroundingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GroundingFact", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.GroundingFact$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.HarmCategory", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.IdentityMappingStore", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.IdentityMappingStore$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.IdpConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.IdpConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.IdpConfig$ExternalIdpConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.IdpConfig$ExternalIdpConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.IdpConfig$IdpType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest$InlineSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest$InlineSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest$InlineSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest$InlineSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest$ReconciliationMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportDocumentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportErrorConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportErrorConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest$InlineSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest$InlineSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest$InlineSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesRequest$InlineSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportSampleQueriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest$InlineSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRequest$InlineSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest$InlineSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest$InlineSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ImportUserEventsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.IndustryVertical", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Interval", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Interval$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.LanguageInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.LanguageInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.LicenseConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.LicenseConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.LicenseConfig$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListControlsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListControlsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListControlsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListControlsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListConversationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListConversationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListConversationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListConversationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListCustomModelsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListCustomModelsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListCustomModelsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListCustomModelsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListDataStoresRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListDataStoresRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListDataStoresResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListDataStoresResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListDocumentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListDocumentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEnginesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEnginesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEnginesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEnginesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse$EvaluationResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse$EvaluationResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListEvaluationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQueriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQueriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSampleQuerySetsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSchemasRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSchemasRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSchemasResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSchemasResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListServingConfigsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListServingConfigsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListServingConfigsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListServingConfigsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSessionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSessionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSessionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListSessionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListTargetSitesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListTargetSitesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListTargetSitesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListTargetSitesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.MediaInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.MediaInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ObservabilityConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ObservabilityConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PageInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PageInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PanelInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PanelInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PauseEngineRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PauseEngineRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Principal", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Principal$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$ConfigurableBillingStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$ConfigurableBillingStatus$AgentSearchTokenSubscriptionStatus", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$ConfigurableBillingStatus$AgentSearchTokenSubscriptionStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$ConfigurableBillingStatus$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$ConfigurableBillingStatus$UpdateType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$CustomerProvidedConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$CustomerProvidedConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$CustomerProvidedConfig$NotebooklmConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$CustomerProvidedConfig$NotebooklmConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$CustomerProvidedConfig$NotebooklmConfig$DataProtectionPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$CustomerProvidedConfig$NotebooklmConfig$DataProtectionPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$CustomerProvidedConfig$NotebooklmConfig$DataProtectionPolicy$SensitiveDataProtectionPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$CustomerProvidedConfig$NotebooklmConfig$DataProtectionPolicy$SensitiveDataProtectionPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$CustomerProvidedConfig$NotebooklmConfig$ModelArmorConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$CustomerProvidedConfig$NotebooklmConfig$ModelArmorConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$ServiceTerms", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$ServiceTerms$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Project$ServiceTerms$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest$SaasParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest$SaasParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest$InlineSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsRequest$InlineSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeDocumentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeErrorConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeErrorConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest$InlineSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest$InlineSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeSuggestionDenyListEntriesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeUserEventsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeUserEventsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.PurgeUserEventsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.QualityMetrics", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.QualityMetrics$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.QualityMetrics$TopkMetrics", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.QualityMetrics$TopkMetrics$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Query", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Query$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RankRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RankRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RankResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RankResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RankingRecord", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RankingRecord$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RecommendRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RecommendRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RecommendResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RecommendResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RecommendResponse$RecommendationResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RecommendResponse$RecommendationResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo$FailureReason", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo$FailureReason$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RecrawlUrisResponse$FailureInfo$FailureReason$CorpusType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Reply", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Reply$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6084,7 +8802,862 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Reply$Reference$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Reply$Reference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ResumeEngineRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.ResumeEngineRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SafetyRating", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SafetyRating$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SafetyRating$HarmProbability", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SafetyRating$HarmSeverity", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SampleQuery", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SampleQuery$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SampleQuery$QueryEntry", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SampleQuery$QueryEntry$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SampleQuery$QueryEntry$Target", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SampleQuery$QueryEntry$Target$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SampleQuerySet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SampleQuerySet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Schema", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Schema$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchAddOn", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$AttributeType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$InterpolationType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$ChunkSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$ChunkSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$ExtractiveContentSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$ExtractiveContentSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SearchResultMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SnippetSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SnippetSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$ModelPromptSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$ModelPromptSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$ModelSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$ModelSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$MultiModalSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$MultiModalSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$MultiModalSpec$ImageSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$CrowdingSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$CrowdingSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$CrowdingSpec$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$CustomRankingParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$CustomRankingParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$DataStoreSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$DataStoreSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$DisplaySpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$DisplaySpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$DisplaySpec$MatchHighlightingCondition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$EmbeddingSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$EmbeddingSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$EmbeddingSpec$EmbeddingVector", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$EmbeddingSpec$EmbeddingVector$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$FacetSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$FacetSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$FacetSpec$FacetKey", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$FacetSpec$FacetKey$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ImageQuery", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ImageQuery$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$NaturalLanguageQueryUnderstandingSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$NaturalLanguageQueryUnderstandingSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$NaturalLanguageQueryUnderstandingSpec$ExtractedFilterBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$NaturalLanguageQueryUnderstandingSpec$FilterExtractionCondition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$PersonalizationSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$PersonalizationSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$PersonalizationSpec$Mode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$QueryExpansionSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$QueryExpansionSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$QueryExpansionSpec$Condition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$RankingExpressionBackend", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$RelevanceFilterSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$RelevanceFilterSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$RelevanceFilterSpec$RelevanceThresholdSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$RelevanceFilterSpec$RelevanceThresholdSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$RelevanceScoreSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$RelevanceScoreSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$RelevanceThreshold", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SearchAddonSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SearchAddonSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6093,7 +9666,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ResumeEngineRequest", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SearchAsYouTypeSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6102,7 +9675,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ResumeEngineRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SearchAsYouTypeSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6111,7 +9684,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SampleQuery", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SearchAsYouTypeSpec$Condition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6120,7 +9693,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SampleQuery$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SessionSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6129,7 +9702,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SampleQuery$QueryEntry", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SessionSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6138,7 +9711,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SampleQuery$QueryEntry$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SpellCorrectionSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6147,7 +9720,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SampleQuery$QueryEntry$Target", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SpellCorrectionSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6156,7 +9729,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SampleQuery$QueryEntry$Target$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SpellCorrectionSpec$Mode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6165,7 +9738,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SampleQuerySet", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6174,7 +9747,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SampleQuerySet$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6183,7 +9756,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Schema", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Facet", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6192,7 +9765,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Schema$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Facet$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6201,7 +9774,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchAddOn", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Facet$FacetValue", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6210,7 +9783,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchInfo", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Facet$FacetValue$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6219,7 +9792,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GeoSearchDebugInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6228,7 +9801,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GeoSearchDebugInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6237,7 +9810,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GuidedSearchResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6246,7 +9819,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GuidedSearchResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6255,7 +9828,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GuidedSearchResult$RefinementAttribute", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6264,7 +9837,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GuidedSearchResult$RefinementAttribute$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6273,7 +9846,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$AttributeType", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6282,7 +9855,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6291,7 +9864,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6300,7 +9873,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$AndExpression", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6309,7 +9882,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$BoostControlSpec$InterpolationType", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$AndExpression$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6318,7 +9891,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$BoostSpec$ConditionBoostSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6327,7 +9900,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$Expression", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6336,7 +9909,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$Expression$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6345,7 +9918,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$GeolocationConstraint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6354,7 +9927,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$ChunkSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$GeolocationConstraint$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6363,7 +9936,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$ChunkSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$NumberConstraint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6372,7 +9945,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$ExtractiveContentSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$NumberConstraint$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6381,7 +9954,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$ExtractiveContentSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$NumberConstraint$Comparison", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6390,7 +9963,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SearchResultMode", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$OrExpression", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6399,7 +9972,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SnippetSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$OrExpression$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6408,7 +9981,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SnippetSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$StringConstraint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6417,7 +9990,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$StringConstraint$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6426,7 +9999,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$OneBoxResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6435,7 +10008,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$ModelPromptSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$OneBoxResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6444,7 +10017,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$ModelPromptSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$OneBoxResult$OneBoxType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6453,7 +10026,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$ModelSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$QueryExpansionInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6462,7 +10035,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ContentSearchSpec$SummarySpec$ModelSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$QueryExpansionInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6471,7 +10044,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$DataStoreSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SearchResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6480,7 +10053,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$DataStoreSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SearchResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6489,7 +10062,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$EmbeddingSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SearchResult$RankSignals", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6498,7 +10071,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$EmbeddingSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SearchResult$RankSignals$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6507,7 +10080,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$EmbeddingSpec$EmbeddingVector", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SearchResult$RankSignals$CustomSignal", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6516,7 +10089,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$EmbeddingSpec$EmbeddingVector$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SearchResult$RankSignals$CustomSignal$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6525,7 +10098,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$FacetSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SemanticState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6534,7 +10107,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$FacetSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SessionInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6543,7 +10116,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$FacetSpec$FacetKey", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SessionInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6552,7 +10125,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$FacetSpec$FacetKey$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6561,7 +10134,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ImageQuery", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$BlobAttachment", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6570,7 +10143,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$ImageQuery$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$BlobAttachment$AttributionType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6579,7 +10152,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$NaturalLanguageQueryUnderstandingSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$BlobAttachment$Blob", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6588,7 +10161,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$NaturalLanguageQueryUnderstandingSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$BlobAttachment$Blob$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6597,7 +10170,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$NaturalLanguageQueryUnderstandingSpec$FilterExtractionCondition", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$BlobAttachment$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6606,7 +10179,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$PersonalizationSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6615,7 +10188,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$PersonalizationSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$Citation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6624,7 +10197,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$PersonalizationSpec$Mode", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$Citation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6633,7 +10206,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$QueryExpansionSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$CitationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6642,7 +10215,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$QueryExpansionSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$CitationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6651,7 +10224,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$QueryExpansionSpec$Condition", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$CitationSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6660,7 +10233,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$RankingExpressionBackend", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$CitationSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6669,7 +10242,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$RelevanceThreshold", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$Reference", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6678,7 +10251,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SearchAsYouTypeSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$Reference$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6687,7 +10260,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SearchAsYouTypeSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$Reference$ChunkContent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6696,7 +10269,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SearchAsYouTypeSpec$Condition", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$Reference$ChunkContent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6705,7 +10278,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SessionSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$SafetyAttributes", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6714,7 +10287,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SessionSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$SafetyAttributes$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6723,7 +10296,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SpellCorrectionSpec", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$SummarySkippedReason", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6732,7 +10305,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SpellCorrectionSpec$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$SummaryWithMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6741,7 +10314,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchRequest$SpellCorrectionSpec$Mode", + "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$SummaryWithMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6750,7 +10323,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse", + "name": "com.google.cloud.discoveryengine.v1beta.SearchTier", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6759,7 +10332,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SearchUseCase", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6768,7 +10341,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Facet", + "name": "com.google.cloud.discoveryengine.v1beta.ServingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6777,7 +10350,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Facet$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ServingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6786,7 +10359,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Facet$FacetValue", + "name": "com.google.cloud.discoveryengine.v1beta.ServingConfig$GenericConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6795,7 +10368,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Facet$FacetValue$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ServingConfig$GenericConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6804,7 +10377,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GeoSearchDebugInfo", + "name": "com.google.cloud.discoveryengine.v1beta.ServingConfig$MediaConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6813,7 +10386,106 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GeoSearchDebugInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.ServingConfig$MediaConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Session", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Session$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Session$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Session$Turn", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.Session$Turn$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SingleRegionKey", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SingleRegionKey$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SiteSearchEngine", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SiteSearchEngine$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SiteVerificationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.discoveryengine.v1beta.SiteVerificationInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6822,7 +10494,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GuidedSearchResult", + "name": "com.google.cloud.discoveryengine.v1beta.SiteVerificationInfo$SiteVerificationState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6831,7 +10503,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GuidedSearchResult$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.Sitemap", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6840,7 +10512,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GuidedSearchResult$RefinementAttribute", + "name": "com.google.cloud.discoveryengine.v1beta.Sitemap$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6849,7 +10521,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$GuidedSearchResult$RefinementAttribute$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SolutionType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6858,7 +10530,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo", + "name": "com.google.cloud.discoveryengine.v1beta.SpannerSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6867,7 +10539,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SpannerSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6876,7 +10548,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6885,7 +10557,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$AndExpression", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6894,7 +10566,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$AndExpression$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistRequest$GenerationSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6903,7 +10575,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistRequest$GenerationSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6912,7 +10584,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$Expression", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistRequest$ToolsSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6921,7 +10593,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$Expression$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistRequest$ToolsSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6930,7 +10602,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$GeolocationConstraint", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistRequest$ToolsSpec$ImageGenerationSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6939,7 +10611,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$GeolocationConstraint$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistRequest$ToolsSpec$ImageGenerationSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6948,7 +10620,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$NumberConstraint", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistRequest$ToolsSpec$VertexAiSearchSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6957,7 +10629,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$NumberConstraint$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistRequest$ToolsSpec$VertexAiSearchSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6966,7 +10638,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$NumberConstraint$Comparison", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistRequest$ToolsSpec$VideoGenerationSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6975,7 +10647,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$OrExpression", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistRequest$ToolsSpec$VideoGenerationSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6984,7 +10656,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$OrExpression$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistRequest$ToolsSpec$WebGroundingSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6993,7 +10665,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$StringConstraint", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistRequest$ToolsSpec$WebGroundingSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7002,7 +10674,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$NaturalLanguageQueryUnderstandingInfo$StructuredExtractedFilter$StringConstraint$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7011,7 +10683,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$OneBoxResult", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7020,7 +10692,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$OneBoxResult$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistResponse$InvokedSkill", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7029,7 +10701,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$OneBoxResult$OneBoxType", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistResponse$InvokedSkill$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7038,7 +10710,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$QueryExpansionInfo", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistResponse$SessionInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7047,7 +10719,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$QueryExpansionInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.StreamAssistResponse$SessionInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7056,7 +10728,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SearchResult", + "name": "com.google.cloud.discoveryengine.v1beta.SubscriptionTerm", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7065,7 +10737,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SearchResult$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SubscriptionTier", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7074,7 +10746,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SearchResult$RankSignals", + "name": "com.google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7083,7 +10755,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SearchResult$RankSignals$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7092,7 +10764,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SearchResult$RankSignals$CustomSignal", + "name": "com.google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry$MatchOperator", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7101,7 +10773,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SearchResult$RankSignals$CustomSignal$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.TargetSite", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7110,7 +10782,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SessionInfo", + "name": "com.google.cloud.discoveryengine.v1beta.TargetSite$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7119,7 +10791,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$SessionInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.TargetSite$FailureReason", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7128,7 +10800,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary", + "name": "com.google.cloud.discoveryengine.v1beta.TargetSite$FailureReason$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7137,7 +10809,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.TargetSite$FailureReason$QuotaFailure", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7146,7 +10818,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$Citation", + "name": "com.google.cloud.discoveryengine.v1beta.TargetSite$FailureReason$QuotaFailure$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7155,7 +10827,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$Citation$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.TargetSite$IndexingStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7164,7 +10836,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$CitationMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.TargetSite$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7173,7 +10845,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$CitationMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.TextInput", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7182,7 +10854,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$CitationSource", + "name": "com.google.cloud.discoveryengine.v1beta.TextInput$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7191,7 +10863,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$CitationSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7200,7 +10872,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$Reference", + "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7209,7 +10881,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$Reference$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7218,7 +10890,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$Reference$ChunkContent", + "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7227,7 +10899,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$Reference$ChunkContent$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest$GcsTrainingInput", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7236,7 +10908,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$SafetyAttributes", + "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest$GcsTrainingInput$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7245,7 +10917,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$SafetyAttributes$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7254,7 +10926,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$SummarySkippedReason", + "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7263,7 +10935,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$SummaryWithMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.TransactionInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7272,7 +10944,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchResponse$Summary$SummaryWithMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.TransactionInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7281,7 +10953,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchTier", + "name": "com.google.cloud.discoveryengine.v1beta.TuneEngineMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7290,7 +10962,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SearchUseCase", + "name": "com.google.cloud.discoveryengine.v1beta.TuneEngineMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7299,7 +10971,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ServingConfig", + "name": "com.google.cloud.discoveryengine.v1beta.TuneEngineRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7308,7 +10980,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ServingConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.TuneEngineRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7317,7 +10989,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ServingConfig$GenericConfig", + "name": "com.google.cloud.discoveryengine.v1beta.TuneEngineResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7326,7 +10998,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ServingConfig$GenericConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.TuneEngineResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7335,7 +11007,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ServingConfig$MediaConfig", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7344,7 +11016,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.ServingConfig$MediaConfig$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7353,7 +11025,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Session", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7362,7 +11034,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Session$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7371,7 +11043,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Session$State", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7380,7 +11052,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Session$Turn", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7389,7 +11061,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Session$Turn$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7398,7 +11070,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SiteSearchEngine", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7407,7 +11079,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SiteSearchEngine$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateControlRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7416,7 +11088,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SiteVerificationInfo", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateControlRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7425,7 +11097,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SiteVerificationInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7434,7 +11106,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SiteVerificationInfo$SiteVerificationState", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7443,7 +11115,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Sitemap", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateDataStoreRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7452,7 +11124,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.Sitemap$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateDataStoreRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7461,7 +11133,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SolutionType", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7470,7 +11142,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SpannerSource", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7479,7 +11151,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SpannerSource$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateEngineRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7488,7 +11160,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateEngineRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7497,7 +11169,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7506,7 +11178,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.SuggestionDenyListEntry$MatchOperator", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7515,7 +11187,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TargetSite", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7524,7 +11196,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TargetSite$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7533,7 +11205,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TargetSite$FailureReason", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7542,7 +11214,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TargetSite$FailureReason$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7551,7 +11223,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TargetSite$FailureReason$QuotaFailure", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7560,7 +11232,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TargetSite$FailureReason$QuotaFailure$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7569,7 +11241,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TargetSite$IndexingStatus", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7578,7 +11250,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TargetSite$Type", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7587,7 +11259,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TextInput", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateServingConfigRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7596,7 +11268,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TextInput$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateServingConfigRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7605,7 +11277,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateSessionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7614,7 +11286,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateSessionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7623,7 +11295,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateTargetSiteMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7632,7 +11304,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateTargetSiteMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7641,7 +11313,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest$GcsTrainingInput", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateTargetSiteRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7650,7 +11322,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelRequest$GcsTrainingInput$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateTargetSiteRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7659,7 +11331,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7668,7 +11340,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TrainCustomModelResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7677,7 +11349,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TransactionInfo", + "name": "com.google.cloud.discoveryengine.v1beta.UserEvent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7686,7 +11358,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TransactionInfo$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UserEvent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7695,7 +11367,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TuneEngineMetadata", + "name": "com.google.cloud.discoveryengine.v1beta.UserInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7704,7 +11376,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TuneEngineMetadata$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UserInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7713,7 +11385,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TuneEngineRequest", + "name": "com.google.cloud.discoveryengine.v1beta.UserInfo$PreciseLocation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7722,7 +11394,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TuneEngineRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UserInfo$PreciseLocation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7731,7 +11403,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TuneEngineResponse", + "name": "com.google.cloud.discoveryengine.v1beta.UserLicense", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7740,7 +11412,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.TuneEngineResponse$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UserLicense$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7749,7 +11421,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateControlRequest", + "name": "com.google.cloud.discoveryengine.v1beta.UserLicense$LicenseAssignmentState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7758,7 +11430,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateControlRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.UserStore", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7767,7 +11439,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest", + "name": "com.google.cloud.discoveryengine.v1beta.UserStore$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7776,7 +11448,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateConversationRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.WorkspaceConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7785,7 +11457,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateDataStoreRequest", + "name": "com.google.cloud.discoveryengine.v1beta.WorkspaceConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7794,7 +11466,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateDataStoreRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.WorkspaceConfig$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7803,7 +11475,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest", + "name": "com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7812,7 +11484,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateDocumentRequest$Builder", + "name": "com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7821,7 +11493,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateEngineRequest", + "name": "com.google.cloud.location.GetLocationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7830,7 +11502,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateEngineRequest$Builder", + "name": "com.google.cloud.location.GetLocationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7839,7 +11511,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest", + "name": "com.google.cloud.location.ListLocationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7848,7 +11520,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateSampleQueryRequest$Builder", + "name": "com.google.cloud.location.ListLocationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7857,7 +11529,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest", + "name": "com.google.cloud.location.ListLocationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7866,7 +11538,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateSampleQuerySetRequest$Builder", + "name": "com.google.cloud.location.ListLocationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7875,7 +11547,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata", + "name": "com.google.cloud.location.Location", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7884,7 +11556,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateSchemaMetadata$Builder", + "name": "com.google.cloud.location.Location$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7893,7 +11565,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest", + "name": "com.google.iam.v1.AuditConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7902,7 +11574,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateSchemaRequest$Builder", + "name": "com.google.iam.v1.AuditConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7911,7 +11583,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateServingConfigRequest", + "name": "com.google.iam.v1.AuditConfigDelta", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7920,7 +11592,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateServingConfigRequest$Builder", + "name": "com.google.iam.v1.AuditConfigDelta$Action", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7929,7 +11601,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateSessionRequest", + "name": "com.google.iam.v1.AuditConfigDelta$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7938,7 +11610,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateSessionRequest$Builder", + "name": "com.google.iam.v1.AuditLogConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7947,7 +11619,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateTargetSiteMetadata", + "name": "com.google.iam.v1.AuditLogConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7956,7 +11628,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateTargetSiteMetadata$Builder", + "name": "com.google.iam.v1.AuditLogConfig$LogType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7965,7 +11637,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateTargetSiteRequest", + "name": "com.google.iam.v1.Binding", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7974,7 +11646,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UpdateTargetSiteRequest$Builder", + "name": "com.google.iam.v1.Binding$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7983,7 +11655,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UserEvent", + "name": "com.google.iam.v1.BindingDelta", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7992,7 +11664,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UserEvent$Builder", + "name": "com.google.iam.v1.BindingDelta$Action", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8001,7 +11673,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UserInfo", + "name": "com.google.iam.v1.BindingDelta$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8010,7 +11682,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.UserInfo$Builder", + "name": "com.google.iam.v1.GetIamPolicyRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8019,7 +11691,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.WorkspaceConfig", + "name": "com.google.iam.v1.GetIamPolicyRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8028,7 +11700,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.WorkspaceConfig$Builder", + "name": "com.google.iam.v1.GetPolicyOptions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8037,7 +11709,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.WorkspaceConfig$Type", + "name": "com.google.iam.v1.GetPolicyOptions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8046,7 +11718,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest", + "name": "com.google.iam.v1.Policy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8055,7 +11727,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.discoveryengine.v1beta.WriteUserEventRequest$Builder", + "name": "com.google.iam.v1.Policy$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8064,7 +11736,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.location.GetLocationRequest", + "name": "com.google.iam.v1.PolicyDelta", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8073,7 +11745,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.location.GetLocationRequest$Builder", + "name": "com.google.iam.v1.PolicyDelta$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8082,7 +11754,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.location.ListLocationsRequest", + "name": "com.google.iam.v1.SetIamPolicyRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8091,7 +11763,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.location.ListLocationsRequest$Builder", + "name": "com.google.iam.v1.SetIamPolicyRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8100,7 +11772,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.location.ListLocationsResponse", + "name": "com.google.iam.v1.TestIamPermissionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8109,7 +11781,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.location.ListLocationsResponse$Builder", + "name": "com.google.iam.v1.TestIamPermissionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8118,7 +11790,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.location.Location", + "name": "com.google.iam.v1.TestIamPermissionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -8127,7 +11799,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.location.Location$Builder", + "name": "com.google.iam.v1.TestIamPermissionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -9259,5 +12931,41 @@ "allPublicMethods": true, "allDeclaredClasses": true, "allPublicClasses": true + }, + { + "name": "com.google.type.Expr", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Expr$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.LatLng", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.LatLng$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true } ] \ No newline at end of file diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..8f0deac9b8d3 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceClientHttpJsonTest.java @@ -0,0 +1,222 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1beta.stub.HttpJsonAclConfigServiceStub; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AclConfigServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static AclConfigServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAclConfigServiceStub.getMethodDescriptors(), + AclConfigServiceSettings.getDefaultEndpoint()); + AclConfigServiceSettings settings = + AclConfigServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AclConfigServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AclConfigServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void updateAclConfigTest() throws Exception { + AclConfig expectedResponse = + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + UpdateAclConfigRequest request = + UpdateAclConfigRequest.newBuilder() + .setAclConfig( + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build()) + .build(); + + AclConfig actualResponse = client.updateAclConfig(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 updateAclConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UpdateAclConfigRequest request = + UpdateAclConfigRequest.newBuilder() + .setAclConfig( + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build()) + .build(); + client.updateAclConfig(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAclConfigTest() throws Exception { + AclConfig expectedResponse = + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AclConfigName name = AclConfigName.of("[PROJECT]", "[LOCATION]"); + + AclConfig actualResponse = client.getAclConfig(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 getAclConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AclConfigName name = AclConfigName.of("[PROJECT]", "[LOCATION]"); + client.getAclConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAclConfigTest2() throws Exception { + AclConfig expectedResponse = + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-599/locations/location-599/aclConfig"; + + AclConfig actualResponse = client.getAclConfig(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 getAclConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-599/locations/location-599/aclConfig"; + client.getAclConfig(name); + 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/v1beta/AclConfigServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceClientTest.java new file mode 100644 index 000000000000..706ed36f4a1f --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceClientTest.java @@ -0,0 +1,199 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +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.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.AbstractMessage; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AclConfigServiceClientTest { + private static MockAclConfigService mockAclConfigService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AclConfigServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockAclConfigService = new MockAclConfigService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockAclConfigService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AclConfigServiceSettings settings = + AclConfigServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AclConfigServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void updateAclConfigTest() throws Exception { + AclConfig expectedResponse = + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build(); + mockAclConfigService.addResponse(expectedResponse); + + UpdateAclConfigRequest request = + UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build(); + + AclConfig actualResponse = client.updateAclConfig(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAclConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAclConfigRequest actualRequest = ((UpdateAclConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getAclConfig(), actualRequest.getAclConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAclConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAclConfigService.addException(exception); + + try { + UpdateAclConfigRequest request = + UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build(); + client.updateAclConfig(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAclConfigTest() throws Exception { + AclConfig expectedResponse = + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build(); + mockAclConfigService.addResponse(expectedResponse); + + AclConfigName name = AclConfigName.of("[PROJECT]", "[LOCATION]"); + + AclConfig actualResponse = client.getAclConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAclConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAclConfigRequest actualRequest = ((GetAclConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAclConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAclConfigService.addException(exception); + + try { + AclConfigName name = AclConfigName.of("[PROJECT]", "[LOCATION]"); + client.getAclConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAclConfigTest2() throws Exception { + AclConfig expectedResponse = + AclConfig.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdpConfig(IdpConfig.newBuilder().build()) + .build(); + mockAclConfigService.addResponse(expectedResponse); + + String name = "name3373707"; + + AclConfig actualResponse = client.getAclConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAclConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAclConfigRequest actualRequest = ((GetAclConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAclConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAclConfigService.addException(exception); + + try { + String name = "name3373707"; + client.getAclConfig(name); + 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/v1beta/AssistantServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..ee067bcc0136 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceClientHttpJsonTest.java @@ -0,0 +1,544 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static com.google.cloud.discoveryengine.v1beta.AssistantServiceClient.ListAssistantsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1beta.stub.HttpJsonAssistantServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AssistantServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static AssistantServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAssistantServiceStub.getMethodDescriptors(), + AssistantServiceSettings.getDefaultEndpoint()); + AssistantServiceSettings settings = + AssistantServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AssistantServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AssistantServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void streamAssistTest() throws Exception {} + + @Test + public void streamAssistExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + } + + @Test + public void createAssistantTest() throws Exception { + Assistant expectedResponse = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + CreateAssistantRequest request = + CreateAssistantRequest.newBuilder() + .setParent( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setAssistant(Assistant.newBuilder().build()) + .setAssistantId("assistantId-324518759") + .build(); + + Assistant actualResponse = client.createAssistant(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 createAssistantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CreateAssistantRequest request = + CreateAssistantRequest.newBuilder() + .setParent( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setAssistant(Assistant.newBuilder().build()) + .setAssistantId("assistantId-324518759") + .build(); + client.createAssistant(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAssistantTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + + client.deleteAssistant(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 deleteAssistantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + client.deleteAssistant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAssistantTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3577/locations/location-3577/collections/collection-3577/engines/engine-3577/assistants/assistant-3577"; + + client.deleteAssistant(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 deleteAssistantExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3577/locations/location-3577/collections/collection-3577/engines/engine-3577/assistants/assistant-3577"; + client.deleteAssistant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAssistantTest() throws Exception { + Assistant expectedResponse = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Assistant assistant = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Assistant actualResponse = client.updateAssistant(assistant, 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 updateAssistantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Assistant assistant = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAssistant(assistant, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAssistantTest() throws Exception { + Assistant expectedResponse = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + + Assistant actualResponse = client.getAssistant(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 getAssistantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + client.getAssistant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAssistantTest2() throws Exception { + Assistant expectedResponse = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3577/locations/location-3577/collections/collection-3577/engines/engine-3577/assistants/assistant-3577"; + + Assistant actualResponse = client.getAssistant(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 getAssistantExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3577/locations/location-3577/collections/collection-3577/engines/engine-3577/assistants/assistant-3577"; + client.getAssistant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAssistantsTest() throws Exception { + Assistant responsesElement = Assistant.newBuilder().build(); + ListAssistantsResponse expectedResponse = + ListAssistantsResponse.newBuilder() + .setNextPageToken("") + .addAllAssistants(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + + ListAssistantsPagedResponse pagedListResponse = client.listAssistants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAssistantsList().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 listAssistantsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + client.listAssistants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAssistantsTest2() throws Exception { + Assistant responsesElement = Assistant.newBuilder().build(); + ListAssistantsResponse expectedResponse = + ListAssistantsResponse.newBuilder() + .setNextPageToken("") + .addAllAssistants(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = + "projects/project-6937/locations/location-6937/collections/collection-6937/engines/engine-6937"; + + ListAssistantsPagedResponse pagedListResponse = client.listAssistants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAssistantsList().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 listAssistantsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-6937/locations/location-6937/collections/collection-6937/engines/engine-6937"; + client.listAssistants(parent); + 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/v1beta/AssistantServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceClientTest.java new file mode 100644 index 000000000000..45eca56dc9c8 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceClientTest.java @@ -0,0 +1,539 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static com.google.cloud.discoveryengine.v1beta.AssistantServiceClient.ListAssistantsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +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.InvalidArgumentException; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +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; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AssistantServiceClientTest { + private static MockAssistantService mockAssistantService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AssistantServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockAssistantService = new MockAssistantService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockAssistantService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AssistantServiceSettings settings = + AssistantServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AssistantServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void streamAssistTest() throws Exception { + StreamAssistResponse expectedResponse = + StreamAssistResponse.newBuilder() + .setAnswer(AssistAnswer.newBuilder().build()) + .setSessionInfo(StreamAssistResponse.SessionInfo.newBuilder().build()) + .setAssistToken("assistToken-336502512") + .addAllInvocationTools(new ArrayList()) + .addAllInvokedSkills(new ArrayList()) + .build(); + mockAssistantService.addResponse(expectedResponse); + StreamAssistRequest request = + StreamAssistRequest.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setQuery(Query.newBuilder().build()) + .setSession( + SessionName.ofProjectLocationDataStoreSessionName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + .toString()) + .setUserMetadata(AssistUserMetadata.newBuilder().build()) + .setToolsSpec(StreamAssistRequest.ToolsSpec.newBuilder().build()) + .setGenerationSpec(StreamAssistRequest.GenerationSpec.newBuilder().build()) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.streamAssistCallable(); + callable.serverStreamingCall(request, responseObserver); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void streamAssistExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + StreamAssistRequest request = + StreamAssistRequest.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setQuery(Query.newBuilder().build()) + .setSession( + SessionName.ofProjectLocationDataStoreSessionName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + .toString()) + .setUserMetadata(AssistUserMetadata.newBuilder().build()) + .setToolsSpec(StreamAssistRequest.ToolsSpec.newBuilder().build()) + .setGenerationSpec(StreamAssistRequest.GenerationSpec.newBuilder().build()) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.streamAssistCallable(); + callable.serverStreamingCall(request, responseObserver); + + 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 createAssistantTest() throws Exception { + Assistant expectedResponse = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAssistantService.addResponse(expectedResponse); + + CreateAssistantRequest request = + CreateAssistantRequest.newBuilder() + .setParent( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setAssistant(Assistant.newBuilder().build()) + .setAssistantId("assistantId-324518759") + .build(); + + Assistant actualResponse = client.createAssistant(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAssistantRequest actualRequest = ((CreateAssistantRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getAssistant(), actualRequest.getAssistant()); + Assert.assertEquals(request.getAssistantId(), actualRequest.getAssistantId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAssistantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + CreateAssistantRequest request = + CreateAssistantRequest.newBuilder() + .setParent( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setAssistant(Assistant.newBuilder().build()) + .setAssistantId("assistantId-324518759") + .build(); + client.createAssistant(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAssistantTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAssistantService.addResponse(expectedResponse); + + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + + client.deleteAssistant(name); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAssistantRequest actualRequest = ((DeleteAssistantRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAssistantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + client.deleteAssistant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAssistantTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAssistantService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteAssistant(name); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAssistantRequest actualRequest = ((DeleteAssistantRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAssistantExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + String name = "name3373707"; + client.deleteAssistant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAssistantTest() throws Exception { + Assistant expectedResponse = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAssistantService.addResponse(expectedResponse); + + Assistant assistant = Assistant.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Assistant actualResponse = client.updateAssistant(assistant, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAssistantRequest actualRequest = ((UpdateAssistantRequest) actualRequests.get(0)); + + Assert.assertEquals(assistant, actualRequest.getAssistant()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAssistantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + Assistant assistant = Assistant.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAssistant(assistant, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAssistantTest() throws Exception { + Assistant expectedResponse = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAssistantService.addResponse(expectedResponse); + + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + + Assistant actualResponse = client.getAssistant(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAssistantRequest actualRequest = ((GetAssistantRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAssistantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + client.getAssistant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAssistantTest2() throws Exception { + Assistant expectedResponse = + Assistant.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setGenerationConfig(Assistant.GenerationConfig.newBuilder().build()) + .setDefaultWebGroundingToggleOff(true) + .putAllEnabledTools(new HashMap()) + .setCustomerPolicy(Assistant.CustomerPolicy.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAssistantService.addResponse(expectedResponse); + + String name = "name3373707"; + + Assistant actualResponse = client.getAssistant(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAssistantRequest actualRequest = ((GetAssistantRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAssistantExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + String name = "name3373707"; + client.getAssistant(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAssistantsTest() throws Exception { + Assistant responsesElement = Assistant.newBuilder().build(); + ListAssistantsResponse expectedResponse = + ListAssistantsResponse.newBuilder() + .setNextPageToken("") + .addAllAssistants(Arrays.asList(responsesElement)) + .build(); + mockAssistantService.addResponse(expectedResponse); + + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + + ListAssistantsPagedResponse pagedListResponse = client.listAssistants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAssistantsList().get(0), resources.get(0)); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAssistantsRequest actualRequest = ((ListAssistantsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAssistantsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + client.listAssistants(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAssistantsTest2() throws Exception { + Assistant responsesElement = Assistant.newBuilder().build(); + ListAssistantsResponse expectedResponse = + ListAssistantsResponse.newBuilder() + .setNextPageToken("") + .addAllAssistants(Arrays.asList(responsesElement)) + .build(); + mockAssistantService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAssistantsPagedResponse pagedListResponse = client.listAssistants(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAssistantsList().get(0), resources.get(0)); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAssistantsRequest actualRequest = ((ListAssistantsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAssistantsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAssistants(parent); + 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/v1beta/CmekConfigServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..25eca6f07c79 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceClientHttpJsonTest.java @@ -0,0 +1,423 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1beta.stub.HttpJsonCmekConfigServiceStub; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CmekConfigServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static CmekConfigServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonCmekConfigServiceStub.getMethodDescriptors(), + CmekConfigServiceSettings.getDefaultEndpoint()); + CmekConfigServiceSettings settings = + CmekConfigServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + CmekConfigServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CmekConfigServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void updateCmekConfigTest() throws Exception { + CmekConfig expectedResponse = + CmekConfig.newBuilder() + .setName(CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString()) + .setKmsKey("kmsKey-1127483058") + .setKmsKeyVersion("kmsKeyVersion2084784042") + .setIsDefault(true) + .setLastRotationTimestampMicros(-1869978704) + .addAllSingleRegionKeys(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateCmekConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CmekConfig config = + CmekConfig.newBuilder() + .setName(CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString()) + .setKmsKey("kmsKey-1127483058") + .setKmsKeyVersion("kmsKeyVersion2084784042") + .setIsDefault(true) + .setLastRotationTimestampMicros(-1869978704) + .addAllSingleRegionKeys(new ArrayList()) + .build(); + + CmekConfig actualResponse = client.updateCmekConfigAsync(config).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 updateCmekConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CmekConfig config = + CmekConfig.newBuilder() + .setName(CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString()) + .setKmsKey("kmsKey-1127483058") + .setKmsKeyVersion("kmsKeyVersion2084784042") + .setIsDefault(true) + .setLastRotationTimestampMicros(-1869978704) + .addAllSingleRegionKeys(new ArrayList()) + .build(); + client.updateCmekConfigAsync(config).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getCmekConfigTest() throws Exception { + CmekConfig expectedResponse = + CmekConfig.newBuilder() + .setName(CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString()) + .setKmsKey("kmsKey-1127483058") + .setKmsKeyVersion("kmsKeyVersion2084784042") + .setIsDefault(true) + .setLastRotationTimestampMicros(-1869978704) + .addAllSingleRegionKeys(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + CmekConfigName name = CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]"); + + CmekConfig actualResponse = client.getCmekConfig(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 getCmekConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CmekConfigName name = CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]"); + client.getCmekConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCmekConfigTest2() throws Exception { + CmekConfig expectedResponse = + CmekConfig.newBuilder() + .setName(CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString()) + .setKmsKey("kmsKey-1127483058") + .setKmsKeyVersion("kmsKeyVersion2084784042") + .setIsDefault(true) + .setLastRotationTimestampMicros(-1869978704) + .addAllSingleRegionKeys(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9943/locations/location-9943/cmekConfig"; + + CmekConfig actualResponse = client.getCmekConfig(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 getCmekConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-9943/locations/location-9943/cmekConfig"; + client.getCmekConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCmekConfigsTest() throws Exception { + ListCmekConfigsResponse expectedResponse = + ListCmekConfigsResponse.newBuilder().addAllCmekConfigs(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListCmekConfigsResponse actualResponse = client.listCmekConfigs(parent); + 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 listCmekConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listCmekConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCmekConfigsTest2() throws Exception { + ListCmekConfigsResponse expectedResponse = + ListCmekConfigsResponse.newBuilder().addAllCmekConfigs(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListCmekConfigsResponse actualResponse = client.listCmekConfigs(parent); + 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 listCmekConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listCmekConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCmekConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCmekConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + CmekConfigName name = + CmekConfigName.ofProjectLocationCmekConfigName("[PROJECT]", "[LOCATION]", "[CMEK_CONFIG]"); + + client.deleteCmekConfigAsync(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 deleteCmekConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CmekConfigName name = + CmekConfigName.ofProjectLocationCmekConfigName( + "[PROJECT]", "[LOCATION]", "[CMEK_CONFIG]"); + client.deleteCmekConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteCmekConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCmekConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-1207/locations/location-1207/cmekConfigs/cmekConfig-1207"; + + client.deleteCmekConfigAsync(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 deleteCmekConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1207/locations/location-1207/cmekConfigs/cmekConfig-1207"; + client.deleteCmekConfigAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceClientTest.java new file mode 100644 index 000000000000..ffa091a9aa31 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceClientTest.java @@ -0,0 +1,382 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +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.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +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; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class CmekConfigServiceClientTest { + private static MockCmekConfigService mockCmekConfigService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private CmekConfigServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockCmekConfigService = new MockCmekConfigService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockCmekConfigService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + CmekConfigServiceSettings settings = + CmekConfigServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = CmekConfigServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void updateCmekConfigTest() throws Exception { + CmekConfig expectedResponse = + CmekConfig.newBuilder() + .setName(CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString()) + .setKmsKey("kmsKey-1127483058") + .setKmsKeyVersion("kmsKeyVersion2084784042") + .setIsDefault(true) + .setLastRotationTimestampMicros(-1869978704) + .addAllSingleRegionKeys(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateCmekConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCmekConfigService.addResponse(resultOperation); + + CmekConfig config = CmekConfig.newBuilder().build(); + + CmekConfig actualResponse = client.updateCmekConfigAsync(config).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCmekConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateCmekConfigRequest actualRequest = ((UpdateCmekConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(config, actualRequest.getConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateCmekConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCmekConfigService.addException(exception); + + try { + CmekConfig config = CmekConfig.newBuilder().build(); + client.updateCmekConfigAsync(config).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 getCmekConfigTest() throws Exception { + CmekConfig expectedResponse = + CmekConfig.newBuilder() + .setName(CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString()) + .setKmsKey("kmsKey-1127483058") + .setKmsKeyVersion("kmsKeyVersion2084784042") + .setIsDefault(true) + .setLastRotationTimestampMicros(-1869978704) + .addAllSingleRegionKeys(new ArrayList()) + .build(); + mockCmekConfigService.addResponse(expectedResponse); + + CmekConfigName name = CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]"); + + CmekConfig actualResponse = client.getCmekConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCmekConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCmekConfigRequest actualRequest = ((GetCmekConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCmekConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCmekConfigService.addException(exception); + + try { + CmekConfigName name = CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]"); + client.getCmekConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCmekConfigTest2() throws Exception { + CmekConfig expectedResponse = + CmekConfig.newBuilder() + .setName(CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString()) + .setKmsKey("kmsKey-1127483058") + .setKmsKeyVersion("kmsKeyVersion2084784042") + .setIsDefault(true) + .setLastRotationTimestampMicros(-1869978704) + .addAllSingleRegionKeys(new ArrayList()) + .build(); + mockCmekConfigService.addResponse(expectedResponse); + + String name = "name3373707"; + + CmekConfig actualResponse = client.getCmekConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCmekConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCmekConfigRequest actualRequest = ((GetCmekConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCmekConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCmekConfigService.addException(exception); + + try { + String name = "name3373707"; + client.getCmekConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCmekConfigsTest() throws Exception { + ListCmekConfigsResponse expectedResponse = + ListCmekConfigsResponse.newBuilder().addAllCmekConfigs(new ArrayList()).build(); + mockCmekConfigService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListCmekConfigsResponse actualResponse = client.listCmekConfigs(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCmekConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCmekConfigsRequest actualRequest = ((ListCmekConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCmekConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCmekConfigService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listCmekConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCmekConfigsTest2() throws Exception { + ListCmekConfigsResponse expectedResponse = + ListCmekConfigsResponse.newBuilder().addAllCmekConfigs(new ArrayList()).build(); + mockCmekConfigService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListCmekConfigsResponse actualResponse = client.listCmekConfigs(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCmekConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCmekConfigsRequest actualRequest = ((ListCmekConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCmekConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCmekConfigService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listCmekConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteCmekConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCmekConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCmekConfigService.addResponse(resultOperation); + + CmekConfigName name = + CmekConfigName.ofProjectLocationCmekConfigName("[PROJECT]", "[LOCATION]", "[CMEK_CONFIG]"); + + client.deleteCmekConfigAsync(name).get(); + + List actualRequests = mockCmekConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCmekConfigRequest actualRequest = ((DeleteCmekConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCmekConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCmekConfigService.addException(exception); + + try { + CmekConfigName name = + CmekConfigName.ofProjectLocationCmekConfigName( + "[PROJECT]", "[LOCATION]", "[CMEK_CONFIG]"); + client.deleteCmekConfigAsync(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 deleteCmekConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteCmekConfigTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockCmekConfigService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteCmekConfigAsync(name).get(); + + List actualRequests = mockCmekConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteCmekConfigRequest actualRequest = ((DeleteCmekConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteCmekConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCmekConfigService.addException(exception); + + try { + String name = "name3373707"; + client.deleteCmekConfigAsync(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()); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientHttpJsonTest.java index a004a282d7ff..d7fbebab3f20 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientHttpJsonTest.java @@ -28,6 +28,7 @@ import com.google.cloud.discoveryengine.v1beta.stub.HttpJsonCompletionServiceStub; import com.google.longrunning.Operation; import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; import com.google.rpc.Status; import java.io.IOException; import java.util.ArrayList; @@ -169,6 +170,9 @@ public void advancedCompleteQueryTest() throws Exception { .setIncludeTailSuggestions(true) .setBoostSpec(AdvancedCompleteQueryRequest.BoostSpec.newBuilder().build()) .addAllSuggestionTypes(new ArrayList()) + .addAllSuggestionTypeSpecs( + new ArrayList()) + .addAllExperimentIds(new ArrayList()) .build(); AdvancedCompleteQueryResponse actualResponse = client.advancedCompleteQuery(request); @@ -210,6 +214,9 @@ public void advancedCompleteQueryExceptionTest() throws Exception { .setIncludeTailSuggestions(true) .setBoostSpec(AdvancedCompleteQueryRequest.BoostSpec.newBuilder().build()) .addAllSuggestionTypes(new ArrayList()) + .addAllSuggestionTypeSpecs( + new ArrayList()) + .addAllExperimentIds(new ArrayList()) .build(); client.advancedCompleteQuery(request); Assert.fail("No exception raised"); @@ -472,4 +479,63 @@ public void purgeCompletionSuggestionsExceptionTest() throws Exception { } catch (ExecutionException e) { } } + + @Test + public void removeSuggestionTest() throws Exception { + RemoveSuggestionResponse expectedResponse = RemoveSuggestionResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + RemoveSuggestionRequest request = + RemoveSuggestionRequest.newBuilder() + .setCompletionConfig( + CompletionConfigName.ofProjectLocationCollectionEngineName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]") + .toString()) + .setUserPseudoId("userPseudoId-1155274652") + .setUserInfo(UserInfo.newBuilder().build()) + .setRemoveTime(Timestamp.newBuilder().build()) + .build(); + + RemoveSuggestionResponse actualResponse = client.removeSuggestion(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 removeSuggestionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RemoveSuggestionRequest request = + RemoveSuggestionRequest.newBuilder() + .setCompletionConfig( + CompletionConfigName.ofProjectLocationCollectionEngineName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]") + .toString()) + .setUserPseudoId("userPseudoId-1155274652") + .setUserInfo(UserInfo.newBuilder().build()) + .setRemoveTime(Timestamp.newBuilder().build()) + .build(); + client.removeSuggestion(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/v1beta/CompletionServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientTest.java index 122dfb9d0a19..8ada5ea613ea 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceClientTest.java @@ -27,6 +27,7 @@ import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; import com.google.rpc.Status; import io.grpc.StatusRuntimeException; import java.io.IOException; @@ -176,6 +177,9 @@ public void advancedCompleteQueryTest() throws Exception { .setIncludeTailSuggestions(true) .setBoostSpec(AdvancedCompleteQueryRequest.BoostSpec.newBuilder().build()) .addAllSuggestionTypes(new ArrayList()) + .addAllSuggestionTypeSpecs( + new ArrayList()) + .addAllExperimentIds(new ArrayList()) .build(); AdvancedCompleteQueryResponse actualResponse = client.advancedCompleteQuery(request); @@ -195,6 +199,9 @@ public void advancedCompleteQueryTest() throws Exception { request.getIncludeTailSuggestions(), actualRequest.getIncludeTailSuggestions()); Assert.assertEquals(request.getBoostSpec(), actualRequest.getBoostSpec()); Assert.assertEquals(request.getSuggestionTypesList(), actualRequest.getSuggestionTypesList()); + Assert.assertEquals( + request.getSuggestionTypeSpecsList(), actualRequest.getSuggestionTypeSpecsList()); + Assert.assertEquals(request.getExperimentIdsList(), actualRequest.getExperimentIdsList()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -220,6 +227,9 @@ public void advancedCompleteQueryExceptionTest() throws Exception { .setIncludeTailSuggestions(true) .setBoostSpec(AdvancedCompleteQueryRequest.BoostSpec.newBuilder().build()) .addAllSuggestionTypes(new ArrayList()) + .addAllSuggestionTypeSpecs( + new ArrayList()) + .addAllExperimentIds(new ArrayList()) .build(); client.advancedCompleteQuery(request); Assert.fail("No exception raised"); @@ -480,4 +490,65 @@ public void purgeCompletionSuggestionsExceptionTest() throws Exception { Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } + + @Test + public void removeSuggestionTest() throws Exception { + RemoveSuggestionResponse expectedResponse = RemoveSuggestionResponse.newBuilder().build(); + mockCompletionService.addResponse(expectedResponse); + + RemoveSuggestionRequest request = + RemoveSuggestionRequest.newBuilder() + .setCompletionConfig( + CompletionConfigName.ofProjectLocationCollectionEngineName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]") + .toString()) + .setUserPseudoId("userPseudoId-1155274652") + .setUserInfo(UserInfo.newBuilder().build()) + .setRemoveTime(Timestamp.newBuilder().build()) + .build(); + + RemoveSuggestionResponse actualResponse = client.removeSuggestion(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockCompletionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RemoveSuggestionRequest actualRequest = ((RemoveSuggestionRequest) actualRequests.get(0)); + + Assert.assertEquals( + request.getSearchHistorySuggestion(), actualRequest.getSearchHistorySuggestion()); + Assert.assertEquals( + request.getRemoveAllSearchHistorySuggestions(), + actualRequest.getRemoveAllSearchHistorySuggestions()); + Assert.assertEquals(request.getCompletionConfig(), actualRequest.getCompletionConfig()); + Assert.assertEquals(request.getUserPseudoId(), actualRequest.getUserPseudoId()); + Assert.assertEquals(request.getUserInfo(), actualRequest.getUserInfo()); + Assert.assertEquals(request.getRemoveTime(), actualRequest.getRemoveTime()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void removeSuggestionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockCompletionService.addException(exception); + + try { + RemoveSuggestionRequest request = + RemoveSuggestionRequest.newBuilder() + .setCompletionConfig( + CompletionConfigName.ofProjectLocationCollectionEngineName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]") + .toString()) + .setUserPseudoId("userPseudoId-1155274652") + .setUserInfo(UserInfo.newBuilder().build()) + .setRemoveTime(Timestamp.newBuilder().build()) + .build(); + client.removeSuggestion(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/v1beta/ConversationalSearchServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientHttpJsonTest.java index 91638d5da191..71d298947a03 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientHttpJsonTest.java @@ -693,6 +693,7 @@ public void answerQueryTest() throws Exception { .setAsynchronousMode(true) .setUserPseudoId("userPseudoId-1155274652") .putAllUserLabels(new HashMap()) + .setEndUserSpec(AnswerQueryRequest.EndUserSpec.newBuilder().build()) .build(); AnswerQueryResponse actualResponse = client.answerQuery(request); @@ -742,6 +743,7 @@ public void answerQueryExceptionTest() throws Exception { .setAsynchronousMode(true) .setUserPseudoId("userPseudoId-1155274652") .putAllUserLabels(new HashMap()) + .setEndUserSpec(AnswerQueryRequest.EndUserSpec.newBuilder().build()) .build(); client.answerQuery(request); Assert.fail("No exception raised"); @@ -750,6 +752,17 @@ public void answerQueryExceptionTest() throws Exception { } } + @Test + public void streamAnswerQueryTest() throws Exception {} + + @Test + public void streamAnswerQueryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + } + @Test public void getAnswerTest() throws Exception { Answer expectedResponse = @@ -759,14 +772,18 @@ public void getAnswerTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]", "[ANSWER]") .toString()) .setAnswerText("answerText959441419") + .setGroundingScore(1981101646) .addAllCitations(new ArrayList()) + .addAllGroundingSupports(new ArrayList()) .addAllReferences(new ArrayList()) + .addAllBlobAttachments(new ArrayList()) .addAllRelatedQuestions(new ArrayList()) .addAllSteps(new ArrayList()) .setQueryUnderstandingInfo(Answer.QueryUnderstandingInfo.newBuilder().build()) .addAllAnswerSkippedReasons(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) .setCompleteTime(Timestamp.newBuilder().build()) + .addAllSafetyRatings(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -819,14 +836,18 @@ public void getAnswerTest2() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]", "[ANSWER]") .toString()) .setAnswerText("answerText959441419") + .setGroundingScore(1981101646) .addAllCitations(new ArrayList()) + .addAllGroundingSupports(new ArrayList()) .addAllReferences(new ArrayList()) + .addAllBlobAttachments(new ArrayList()) .addAllRelatedQuestions(new ArrayList()) .addAllSteps(new ArrayList()) .setQueryUnderstandingInfo(Answer.QueryUnderstandingInfo.newBuilder().build()) .addAllAnswerSkippedReasons(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) .setCompleteTime(Timestamp.newBuilder().build()) + .addAllSafetyRatings(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -879,9 +900,11 @@ public void createSessionTest() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); @@ -936,9 +959,11 @@ public void createSessionTest2() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); @@ -1077,9 +1102,11 @@ public void updateSessionTest() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); @@ -1092,9 +1119,11 @@ public void updateSessionTest() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1133,9 +1162,11 @@ public void updateSessionExceptionTest() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateSession(session, updateMask); @@ -1156,9 +1187,11 @@ public void getSessionTest() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); @@ -1213,9 +1246,11 @@ public void getSessionTest2() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientTest.java index 840b5d967353..87fe4018dabb 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceClientTest.java @@ -24,8 +24,11 @@ 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.InvalidArgumentException; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StatusCode; import com.google.common.collect.Lists; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Empty; @@ -38,6 +41,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; @@ -614,6 +618,7 @@ public void answerQueryTest() throws Exception { .setAsynchronousMode(true) .setUserPseudoId("userPseudoId-1155274652") .putAllUserLabels(new HashMap()) + .setEndUserSpec(AnswerQueryRequest.EndUserSpec.newBuilder().build()) .build(); AnswerQueryResponse actualResponse = client.answerQuery(request); @@ -636,6 +641,7 @@ public void answerQueryTest() throws Exception { Assert.assertEquals(request.getAsynchronousMode(), actualRequest.getAsynchronousMode()); Assert.assertEquals(request.getUserPseudoId(), actualRequest.getUserPseudoId()); Assert.assertEquals(request.getUserLabelsMap(), actualRequest.getUserLabelsMap()); + Assert.assertEquals(request.getEndUserSpec(), actualRequest.getEndUserSpec()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -669,6 +675,7 @@ public void answerQueryExceptionTest() throws Exception { .setAsynchronousMode(true) .setUserPseudoId("userPseudoId-1155274652") .putAllUserLabels(new HashMap()) + .setEndUserSpec(AnswerQueryRequest.EndUserSpec.newBuilder().build()) .build(); client.answerQuery(request); Assert.fail("No exception raised"); @@ -677,6 +684,94 @@ public void answerQueryExceptionTest() throws Exception { } } + @Test + public void streamAnswerQueryTest() throws Exception { + AnswerQueryResponse expectedResponse = + AnswerQueryResponse.newBuilder() + .setAnswer(Answer.newBuilder().build()) + .setSession(Session.newBuilder().build()) + .setAnswerQueryToken("answerQueryToken758314095") + .build(); + mockConversationalSearchService.addResponse(expectedResponse); + AnswerQueryRequest request = + AnswerQueryRequest.newBuilder() + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setQuery(Query.newBuilder().build()) + .setSession( + SessionName.ofProjectLocationDataStoreSessionName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + .toString()) + .setSafetySpec(AnswerQueryRequest.SafetySpec.newBuilder().build()) + .setRelatedQuestionsSpec(AnswerQueryRequest.RelatedQuestionsSpec.newBuilder().build()) + .setGroundingSpec(AnswerQueryRequest.GroundingSpec.newBuilder().build()) + .setAnswerGenerationSpec(AnswerQueryRequest.AnswerGenerationSpec.newBuilder().build()) + .setSearchSpec(AnswerQueryRequest.SearchSpec.newBuilder().build()) + .setQueryUnderstandingSpec( + AnswerQueryRequest.QueryUnderstandingSpec.newBuilder().build()) + .setAsynchronousMode(true) + .setUserPseudoId("userPseudoId-1155274652") + .putAllUserLabels(new HashMap()) + .setEndUserSpec(AnswerQueryRequest.EndUserSpec.newBuilder().build()) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.streamAnswerQueryCallable(); + callable.serverStreamingCall(request, responseObserver); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void streamAnswerQueryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConversationalSearchService.addException(exception); + AnswerQueryRequest request = + AnswerQueryRequest.newBuilder() + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setQuery(Query.newBuilder().build()) + .setSession( + SessionName.ofProjectLocationDataStoreSessionName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + .toString()) + .setSafetySpec(AnswerQueryRequest.SafetySpec.newBuilder().build()) + .setRelatedQuestionsSpec(AnswerQueryRequest.RelatedQuestionsSpec.newBuilder().build()) + .setGroundingSpec(AnswerQueryRequest.GroundingSpec.newBuilder().build()) + .setAnswerGenerationSpec(AnswerQueryRequest.AnswerGenerationSpec.newBuilder().build()) + .setSearchSpec(AnswerQueryRequest.SearchSpec.newBuilder().build()) + .setQueryUnderstandingSpec( + AnswerQueryRequest.QueryUnderstandingSpec.newBuilder().build()) + .setAsynchronousMode(true) + .setUserPseudoId("userPseudoId-1155274652") + .putAllUserLabels(new HashMap()) + .setEndUserSpec(AnswerQueryRequest.EndUserSpec.newBuilder().build()) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.streamAnswerQueryCallable(); + callable.serverStreamingCall(request, responseObserver); + + 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 getAnswerTest() throws Exception { Answer expectedResponse = @@ -686,14 +781,18 @@ public void getAnswerTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]", "[ANSWER]") .toString()) .setAnswerText("answerText959441419") + .setGroundingScore(1981101646) .addAllCitations(new ArrayList()) + .addAllGroundingSupports(new ArrayList()) .addAllReferences(new ArrayList()) + .addAllBlobAttachments(new ArrayList()) .addAllRelatedQuestions(new ArrayList()) .addAllSteps(new ArrayList()) .setQueryUnderstandingInfo(Answer.QueryUnderstandingInfo.newBuilder().build()) .addAllAnswerSkippedReasons(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) .setCompleteTime(Timestamp.newBuilder().build()) + .addAllSafetyRatings(new ArrayList()) .build(); mockConversationalSearchService.addResponse(expectedResponse); @@ -740,14 +839,18 @@ public void getAnswerTest2() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]", "[ANSWER]") .toString()) .setAnswerText("answerText959441419") + .setGroundingScore(1981101646) .addAllCitations(new ArrayList()) + .addAllGroundingSupports(new ArrayList()) .addAllReferences(new ArrayList()) + .addAllBlobAttachments(new ArrayList()) .addAllRelatedQuestions(new ArrayList()) .addAllSteps(new ArrayList()) .setQueryUnderstandingInfo(Answer.QueryUnderstandingInfo.newBuilder().build()) .addAllAnswerSkippedReasons(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) .setCompleteTime(Timestamp.newBuilder().build()) + .addAllSafetyRatings(new ArrayList()) .build(); mockConversationalSearchService.addResponse(expectedResponse); @@ -792,9 +895,11 @@ public void createSessionTest() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockConversationalSearchService.addResponse(expectedResponse); @@ -844,9 +949,11 @@ public void createSessionTest2() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockConversationalSearchService.addResponse(expectedResponse); @@ -966,9 +1073,11 @@ public void updateSessionTest() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockConversationalSearchService.addResponse(expectedResponse); @@ -1016,9 +1125,11 @@ public void getSessionTest() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockConversationalSearchService.addResponse(expectedResponse); @@ -1067,9 +1178,11 @@ public void getSessionTest2() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockConversationalSearchService.addResponse(expectedResponse); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientHttpJsonTest.java index 98146f7c2eb8..e9f9a0030ae5 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientHttpJsonTest.java @@ -95,14 +95,25 @@ public void createDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) .setLanguageInfo(LanguageInfo.newBuilder().build()) .setNaturalLanguageQueryUnderstandingConfig( NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) + .setAclEnabled(true) .setWorkspaceConfig(WorkspaceConfig.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) + .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -164,14 +175,25 @@ public void createDataStoreTest2() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) .setLanguageInfo(LanguageInfo.newBuilder().build()) .setNaturalLanguageQueryUnderstandingConfig( NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) + .setAclEnabled(true) .setWorkspaceConfig(WorkspaceConfig.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) + .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -233,14 +255,25 @@ public void getDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) .setLanguageInfo(LanguageInfo.newBuilder().build()) .setNaturalLanguageQueryUnderstandingConfig( NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) + .setAclEnabled(true) .setWorkspaceConfig(WorkspaceConfig.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) + .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -295,14 +328,25 @@ public void getDataStoreTest2() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) .setLanguageInfo(LanguageInfo.newBuilder().build()) .setNaturalLanguageQueryUnderstandingConfig( NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) + .setAclEnabled(true) .setWorkspaceConfig(WorkspaceConfig.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) + .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -547,14 +591,25 @@ public void updateDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) .setLanguageInfo(LanguageInfo.newBuilder().build()) .setNaturalLanguageQueryUnderstandingConfig( NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) + .setAclEnabled(true) .setWorkspaceConfig(WorkspaceConfig.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) + .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -569,14 +624,25 @@ public void updateDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) .setLanguageInfo(LanguageInfo.newBuilder().build()) .setNaturalLanguageQueryUnderstandingConfig( NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) + .setAclEnabled(true) .setWorkspaceConfig(WorkspaceConfig.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) + .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -617,14 +683,25 @@ public void updateDataStoreExceptionTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) .setLanguageInfo(LanguageInfo.newBuilder().build()) .setNaturalLanguageQueryUnderstandingConfig( NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) + .setAclEnabled(true) .setWorkspaceConfig(WorkspaceConfig.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) + .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateDataStore(dataStore, updateMask); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientTest.java index 7edf6e761945..ddf7d4f66e0e 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceClientTest.java @@ -102,14 +102,25 @@ public void createDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) .setLanguageInfo(LanguageInfo.newBuilder().build()) .setNaturalLanguageQueryUnderstandingConfig( NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) + .setAclEnabled(true) .setWorkspaceConfig(WorkspaceConfig.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) + .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -170,14 +181,25 @@ public void createDataStoreTest2() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) .setLanguageInfo(LanguageInfo.newBuilder().build()) .setNaturalLanguageQueryUnderstandingConfig( NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) + .setAclEnabled(true) .setWorkspaceConfig(WorkspaceConfig.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) + .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -238,14 +260,25 @@ public void getDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) .setLanguageInfo(LanguageInfo.newBuilder().build()) .setNaturalLanguageQueryUnderstandingConfig( NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) + .setAclEnabled(true) .setWorkspaceConfig(WorkspaceConfig.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) + .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) .build(); mockDataStoreService.addResponse(expectedResponse); @@ -294,14 +327,25 @@ public void getDataStoreTest2() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) .setLanguageInfo(LanguageInfo.newBuilder().build()) .setNaturalLanguageQueryUnderstandingConfig( NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) + .setAclEnabled(true) .setWorkspaceConfig(WorkspaceConfig.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) + .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) .build(); mockDataStoreService.addResponse(expectedResponse); @@ -522,14 +566,25 @@ public void updateDataStoreTest() throws Exception { .addAllSolutionTypes(new ArrayList()) .setDefaultSchemaId("defaultSchemaId1300415485") .setCreateTime(Timestamp.newBuilder().build()) + .setAdvancedSiteSearchConfig(AdvancedSiteSearchConfig.newBuilder().build()) .setLanguageInfo(LanguageInfo.newBuilder().build()) .setNaturalLanguageQueryUnderstandingConfig( NaturalLanguageQueryUnderstandingConfig.newBuilder().build()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) .setBillingEstimation(DataStore.BillingEstimation.newBuilder().build()) + .setAclEnabled(true) .setWorkspaceConfig(WorkspaceConfig.newBuilder().build()) .setDocumentProcessingConfig(DocumentProcessingConfig.newBuilder().build()) .setStartingSchema(Schema.newBuilder().build()) + .setHealthcareFhirConfig(HealthcareFhirConfig.newBuilder().build()) .setServingConfigDataStore(DataStore.ServingConfigDataStore.newBuilder().build()) + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setIsInfobotFaqDataStore(true) + .setFederatedSearchConfig(DataStore.FederatedSearchConfig.newBuilder().build()) + .setConfigurableBillingApproachUpdateTime(Timestamp.newBuilder().build()) .build(); mockDataStoreService.addResponse(expectedResponse); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientHttpJsonTest.java index 636d2fefaf8c..009db76f4918 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientHttpJsonTest.java @@ -97,6 +97,7 @@ public void getDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) .setIndexTime(Timestamp.newBuilder().build()) .setIndexStatus(Document.IndexStatus.newBuilder().build()) .build(); @@ -155,6 +156,7 @@ public void getDocumentTest2() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) .setIndexTime(Timestamp.newBuilder().build()) .setIndexStatus(Document.IndexStatus.newBuilder().build()) .build(); @@ -317,6 +319,7 @@ public void createDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) .setIndexTime(Timestamp.newBuilder().build()) .setIndexStatus(Document.IndexStatus.newBuilder().build()) .build(); @@ -379,6 +382,7 @@ public void createDocumentTest2() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) .setIndexTime(Timestamp.newBuilder().build()) .setIndexStatus(Document.IndexStatus.newBuilder().build()) .build(); @@ -439,6 +443,7 @@ public void updateDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) .setIndexTime(Timestamp.newBuilder().build()) .setIndexStatus(Document.IndexStatus.newBuilder().build()) .build(); @@ -455,6 +460,7 @@ public void updateDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) .setIndexTime(Timestamp.newBuilder().build()) .setIndexStatus(Document.IndexStatus.newBuilder().build()) .build(); @@ -497,6 +503,7 @@ public void updateDocumentExceptionTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) .setIndexTime(Timestamp.newBuilder().build()) .setIndexStatus(Document.IndexStatus.newBuilder().build()) .build(); @@ -619,6 +626,7 @@ public void importDocumentsTest() throws Exception { .setUpdateMask(FieldMask.newBuilder().build()) .setAutoGenerateIds(true) .setIdField("idField1629396127") + .setForceRefreshContent(true) .build(); ImportDocumentsResponse actualResponse = client.importDocumentsAsync(request).get(); @@ -657,6 +665,7 @@ public void importDocumentsExceptionTest() throws Exception { .setUpdateMask(FieldMask.newBuilder().build()) .setAutoGenerateIds(true) .setIdField("idField1629396127") + .setForceRefreshContent(true) .build(); client.importDocumentsAsync(request).get(); Assert.fail("No exception raised"); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientTest.java index d013eeb7170d..20c71800a521 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceClientTest.java @@ -104,6 +104,7 @@ public void getDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) .setIndexTime(Timestamp.newBuilder().build()) .setIndexStatus(Document.IndexStatus.newBuilder().build()) .build(); @@ -156,6 +157,7 @@ public void getDocumentTest2() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) .setIndexTime(Timestamp.newBuilder().build()) .setIndexStatus(Document.IndexStatus.newBuilder().build()) .build(); @@ -296,6 +298,7 @@ public void createDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) .setIndexTime(Timestamp.newBuilder().build()) .setIndexStatus(Document.IndexStatus.newBuilder().build()) .build(); @@ -354,6 +357,7 @@ public void createDocumentTest2() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) .setIndexTime(Timestamp.newBuilder().build()) .setIndexStatus(Document.IndexStatus.newBuilder().build()) .build(); @@ -408,6 +412,7 @@ public void updateDocumentTest() throws Exception { .setContent(Document.Content.newBuilder().build()) .setParentDocumentId("parentDocumentId1990105056") .setDerivedStructData(Struct.newBuilder().build()) + .setAclInfo(Document.AclInfo.newBuilder().build()) .setIndexTime(Timestamp.newBuilder().build()) .setIndexStatus(Document.IndexStatus.newBuilder().build()) .build(); @@ -543,6 +548,7 @@ public void importDocumentsTest() throws Exception { .setUpdateMask(FieldMask.newBuilder().build()) .setAutoGenerateIds(true) .setIdField("idField1629396127") + .setForceRefreshContent(true) .build(); ImportDocumentsResponse actualResponse = client.importDocumentsAsync(request).get(); @@ -567,6 +573,7 @@ public void importDocumentsTest() throws Exception { Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); Assert.assertEquals(request.getAutoGenerateIds(), actualRequest.getAutoGenerateIds()); Assert.assertEquals(request.getIdField(), actualRequest.getIdField()); + Assert.assertEquals(request.getForceRefreshContent(), actualRequest.getForceRefreshContent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -589,6 +596,7 @@ public void importDocumentsExceptionTest() throws Exception { .setUpdateMask(FieldMask.newBuilder().build()) .setAutoGenerateIds(true) .setIdField("idField1629396127") + .setForceRefreshContent(true) .build(); client.importDocumentsAsync(request).get(); Assert.fail("No exception raised"); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/EngineServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/EngineServiceClientHttpJsonTest.java index 22f5e5082459..87b4cbfd2de5 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/EngineServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/EngineServiceClientHttpJsonTest.java @@ -27,16 +27,22 @@ import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.api.resourcenames.ResourceName; import com.google.cloud.discoveryengine.v1beta.stub.HttpJsonEngineServiceStub; import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.Policy; import com.google.longrunning.Operation; import com.google.protobuf.Any; +import com.google.protobuf.ByteString; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.concurrent.ExecutionException; import javax.annotation.Generated; @@ -95,7 +101,15 @@ public void createEngineTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -157,7 +171,15 @@ public void createEngineTest2() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -311,7 +333,15 @@ public void updateEngineTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -326,7 +356,15 @@ public void updateEngineTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -367,7 +405,15 @@ public void updateEngineExceptionTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateEngine(engine, updateMask); @@ -390,7 +436,15 @@ public void getEngineTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -443,7 +497,15 @@ public void getEngineTest2() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -598,7 +660,15 @@ public void pauseEngineTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -651,7 +721,15 @@ public void pauseEngineTest2() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -706,7 +784,15 @@ public void resumeEngineTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -759,7 +845,15 @@ public void resumeEngineTest2() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -894,4 +988,200 @@ public void tuneEngineExceptionTest2() throws Exception { } catch (ExecutionException e) { } } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + + Policy actualResponse = client.getIamPolicy(resource); + 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 getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = + "projects/project-277/locations/location-277/collections/collection-277/engines/engine-277"; + + Policy actualResponse = client.getIamPolicy(resource); + 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 getIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = + "projects/project-277/locations/location-277/collections/collection-277/engines/engine-277"; + client.getIamPolicy(resource); + 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); + + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + 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 setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockService.addResponse(expectedResponse); + + String resource = + "projects/project-277/locations/location-277/collections/collection-277/engines/engine-277"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + 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 setIamPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String resource = + "projects/project-277/locations/location-277/collections/collection-277/engines/engine-277"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + 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/v1beta/EngineServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/EngineServiceClientTest.java index 2502b2ed0c75..13819d8a0410 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/EngineServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/EngineServiceClientTest.java @@ -26,10 +26,17 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; +import com.google.api.resourcenames.ResourceName; import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; +import com.google.protobuf.ByteString; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; @@ -37,6 +44,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.HashMap; import java.util.List; import java.util.UUID; import java.util.concurrent.ExecutionException; @@ -102,7 +110,15 @@ public void createEngineTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -163,7 +179,15 @@ public void createEngineTest2() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); Operation resultOperation = Operation.newBuilder() @@ -308,7 +332,15 @@ public void updateEngineTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); mockEngineService.addResponse(expectedResponse); @@ -358,7 +390,15 @@ public void getEngineTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); mockEngineService.addResponse(expectedResponse); @@ -405,7 +445,15 @@ public void getEngineTest2() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); mockEngineService.addResponse(expectedResponse); @@ -540,7 +588,15 @@ public void pauseEngineTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); mockEngineService.addResponse(expectedResponse); @@ -587,7 +643,15 @@ public void pauseEngineTest2() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); mockEngineService.addResponse(expectedResponse); @@ -634,7 +698,15 @@ public void resumeEngineTest() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); mockEngineService.addResponse(expectedResponse); @@ -681,7 +753,15 @@ public void resumeEngineTest2() throws Exception { .setSolutionType(SolutionType.forNumber(0)) .setIndustryVertical(IndustryVertical.forNumber(0)) .setCommonConfig(Engine.CommonConfig.newBuilder().build()) + .setKnowledgeGraphConfig(Engine.KnowledgeGraphConfig.newBuilder().build()) .setDisableAnalytics(true) + .putAllFeatures(new HashMap()) + .setCmekConfig(CmekConfig.newBuilder().build()) + .putAllModelConfigs(new HashMap()) + .setObservabilityConfig(ObservabilityConfig.newBuilder().build()) + .putAllConnectorTenantInfo(new HashMap()) + .setAgentGatewaySetting(AgentGatewaySetting.newBuilder().build()) + .addAllProcurementContactEmails(new ArrayList()) .build(); mockEngineService.addResponse(expectedResponse); @@ -800,4 +880,174 @@ public void tuneEngineExceptionTest2() throws Exception { Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); } } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockEngineService.addResponse(expectedResponse); + + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEngineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource.toString(), actualRequest.getResource()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEngineService.addException(exception); + + try { + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + client.getIamPolicy(resource); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockEngineService.addResponse(expectedResponse); + + String resource = "resource-341064690"; + + Policy actualResponse = client.getIamPolicy(resource); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEngineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEngineService.addException(exception); + + try { + String resource = "resource-341064690"; + client.getIamPolicy(resource); + 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(); + mockEngineService.addResponse(expectedResponse); + + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEngineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource.toString(), actualRequest.getResource()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEngineService.addException(exception); + + try { + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest2() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockEngineService.addResponse(expectedResponse); + + String resource = "resource-341064690"; + Policy policy = Policy.newBuilder().build(); + + Policy actualResponse = client.setIamPolicy(resource, policy); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEngineService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(resource, actualRequest.getResource()); + Assert.assertEquals(policy, actualRequest.getPolicy()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEngineService.addException(exception); + + try { + String resource = "resource-341064690"; + Policy policy = Policy.newBuilder().build(); + client.setIamPolicy(resource, policy); + 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/v1beta/IdentityMappingStoreServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..b13e33e8de94 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceClientHttpJsonTest.java @@ -0,0 +1,669 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient.ListIdentityMappingStoresPagedResponse; +import static com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient.ListIdentityMappingsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1beta.stub.HttpJsonIdentityMappingStoreServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.rpc.Status; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class IdentityMappingStoreServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static IdentityMappingStoreServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonIdentityMappingStoreServiceStub.getMethodDescriptors(), + IdentityMappingStoreServiceSettings.getDefaultEndpoint()); + IdentityMappingStoreServiceSettings settings = + IdentityMappingStoreServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + IdentityMappingStoreServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = IdentityMappingStoreServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createIdentityMappingStoreTest() throws Exception { + IdentityMappingStore expectedResponse = + IdentityMappingStore.newBuilder() + .setName( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + IdentityMappingStore identityMappingStore = IdentityMappingStore.newBuilder().build(); + String identityMappingStoreId = "identityMappingStoreId677904780"; + + IdentityMappingStore actualResponse = + client.createIdentityMappingStore(parent, identityMappingStore, identityMappingStoreId); + 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 createIdentityMappingStoreExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + IdentityMappingStore identityMappingStore = IdentityMappingStore.newBuilder().build(); + String identityMappingStoreId = "identityMappingStoreId677904780"; + client.createIdentityMappingStore(parent, identityMappingStore, identityMappingStoreId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createIdentityMappingStoreTest2() throws Exception { + IdentityMappingStore expectedResponse = + IdentityMappingStore.newBuilder() + .setName( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + IdentityMappingStore identityMappingStore = IdentityMappingStore.newBuilder().build(); + String identityMappingStoreId = "identityMappingStoreId677904780"; + + IdentityMappingStore actualResponse = + client.createIdentityMappingStore(parent, identityMappingStore, identityMappingStoreId); + 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 createIdentityMappingStoreExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + IdentityMappingStore identityMappingStore = IdentityMappingStore.newBuilder().build(); + String identityMappingStoreId = "identityMappingStoreId677904780"; + client.createIdentityMappingStore(parent, identityMappingStore, identityMappingStoreId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIdentityMappingStoreTest() throws Exception { + IdentityMappingStore expectedResponse = + IdentityMappingStore.newBuilder() + .setName( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + IdentityMappingStoreName name = + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]"); + + IdentityMappingStore actualResponse = client.getIdentityMappingStore(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 getIdentityMappingStoreExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + IdentityMappingStoreName name = + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]"); + client.getIdentityMappingStore(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIdentityMappingStoreTest2() throws Exception { + IdentityMappingStore expectedResponse = + IdentityMappingStore.newBuilder() + .setName( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-7736/locations/location-7736/identityMappingStores/identityMappingStore-7736"; + + IdentityMappingStore actualResponse = client.getIdentityMappingStore(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 getIdentityMappingStoreExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7736/locations/location-7736/identityMappingStores/identityMappingStore-7736"; + client.getIdentityMappingStore(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteIdentityMappingStoreTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteIdentityMappingStoreTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + IdentityMappingStoreName name = + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]"); + + client.deleteIdentityMappingStoreAsync(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 deleteIdentityMappingStoreExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + IdentityMappingStoreName name = + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]"); + client.deleteIdentityMappingStoreAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteIdentityMappingStoreTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteIdentityMappingStoreTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = + "projects/project-7736/locations/location-7736/identityMappingStores/identityMappingStore-7736"; + + client.deleteIdentityMappingStoreAsync(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 deleteIdentityMappingStoreExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-7736/locations/location-7736/identityMappingStores/identityMappingStore-7736"; + client.deleteIdentityMappingStoreAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void importIdentityMappingsTest() throws Exception { + ImportIdentityMappingsResponse expectedResponse = + ImportIdentityMappingsResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importIdentityMappingsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ImportIdentityMappingsRequest request = + ImportIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .build(); + + ImportIdentityMappingsResponse actualResponse = + client.importIdentityMappingsAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void importIdentityMappingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ImportIdentityMappingsRequest request = + ImportIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .build(); + client.importIdentityMappingsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void purgeIdentityMappingsTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeIdentityMappingsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + PurgeIdentityMappingsRequest request = + PurgeIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + + client.purgeIdentityMappingsAsync(request).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 purgeIdentityMappingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PurgeIdentityMappingsRequest request = + PurgeIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + client.purgeIdentityMappingsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listIdentityMappingsTest() throws Exception { + IdentityMappingEntry responsesElement = IdentityMappingEntry.newBuilder().build(); + ListIdentityMappingsResponse expectedResponse = + ListIdentityMappingsResponse.newBuilder() + .setNextPageToken("") + .addAllIdentityMappingEntries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListIdentityMappingsRequest request = + ListIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListIdentityMappingsPagedResponse pagedListResponse = client.listIdentityMappings(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getIdentityMappingEntriesList().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 listIdentityMappingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListIdentityMappingsRequest request = + ListIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listIdentityMappings(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listIdentityMappingStoresTest() throws Exception { + IdentityMappingStore responsesElement = IdentityMappingStore.newBuilder().build(); + ListIdentityMappingStoresResponse expectedResponse = + ListIdentityMappingStoresResponse.newBuilder() + .setNextPageToken("") + .addAllIdentityMappingStores(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListIdentityMappingStoresPagedResponse pagedListResponse = + client.listIdentityMappingStores(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getIdentityMappingStoresList().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 listIdentityMappingStoresExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listIdentityMappingStores(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listIdentityMappingStoresTest2() throws Exception { + IdentityMappingStore responsesElement = IdentityMappingStore.newBuilder().build(); + ListIdentityMappingStoresResponse expectedResponse = + ListIdentityMappingStoresResponse.newBuilder() + .setNextPageToken("") + .addAllIdentityMappingStores(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListIdentityMappingStoresPagedResponse pagedListResponse = + client.listIdentityMappingStores(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getIdentityMappingStoresList().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 listIdentityMappingStoresExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listIdentityMappingStores(parent); + 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/v1beta/IdentityMappingStoreServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceClientTest.java new file mode 100644 index 000000000000..cb2f4b4f6736 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceClientTest.java @@ -0,0 +1,639 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient.ListIdentityMappingStoresPagedResponse; +import static com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient.ListIdentityMappingsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +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.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.rpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +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; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class IdentityMappingStoreServiceClientTest { + private static MockIdentityMappingStoreService mockIdentityMappingStoreService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private IdentityMappingStoreServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockIdentityMappingStoreService = new MockIdentityMappingStoreService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockIdentityMappingStoreService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + IdentityMappingStoreServiceSettings settings = + IdentityMappingStoreServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = IdentityMappingStoreServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createIdentityMappingStoreTest() throws Exception { + IdentityMappingStore expectedResponse = + IdentityMappingStore.newBuilder() + .setName( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) + .build(); + mockIdentityMappingStoreService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + IdentityMappingStore identityMappingStore = IdentityMappingStore.newBuilder().build(); + String identityMappingStoreId = "identityMappingStoreId677904780"; + + IdentityMappingStore actualResponse = + client.createIdentityMappingStore(parent, identityMappingStore, identityMappingStoreId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIdentityMappingStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateIdentityMappingStoreRequest actualRequest = + ((CreateIdentityMappingStoreRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(identityMappingStore, actualRequest.getIdentityMappingStore()); + Assert.assertEquals(identityMappingStoreId, actualRequest.getIdentityMappingStoreId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createIdentityMappingStoreExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIdentityMappingStoreService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + IdentityMappingStore identityMappingStore = IdentityMappingStore.newBuilder().build(); + String identityMappingStoreId = "identityMappingStoreId677904780"; + client.createIdentityMappingStore(parent, identityMappingStore, identityMappingStoreId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createIdentityMappingStoreTest2() throws Exception { + IdentityMappingStore expectedResponse = + IdentityMappingStore.newBuilder() + .setName( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) + .build(); + mockIdentityMappingStoreService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + IdentityMappingStore identityMappingStore = IdentityMappingStore.newBuilder().build(); + String identityMappingStoreId = "identityMappingStoreId677904780"; + + IdentityMappingStore actualResponse = + client.createIdentityMappingStore(parent, identityMappingStore, identityMappingStoreId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIdentityMappingStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateIdentityMappingStoreRequest actualRequest = + ((CreateIdentityMappingStoreRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(identityMappingStore, actualRequest.getIdentityMappingStore()); + Assert.assertEquals(identityMappingStoreId, actualRequest.getIdentityMappingStoreId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createIdentityMappingStoreExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIdentityMappingStoreService.addException(exception); + + try { + String parent = "parent-995424086"; + IdentityMappingStore identityMappingStore = IdentityMappingStore.newBuilder().build(); + String identityMappingStoreId = "identityMappingStoreId677904780"; + client.createIdentityMappingStore(parent, identityMappingStore, identityMappingStoreId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIdentityMappingStoreTest() throws Exception { + IdentityMappingStore expectedResponse = + IdentityMappingStore.newBuilder() + .setName( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) + .build(); + mockIdentityMappingStoreService.addResponse(expectedResponse); + + IdentityMappingStoreName name = + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]"); + + IdentityMappingStore actualResponse = client.getIdentityMappingStore(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIdentityMappingStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIdentityMappingStoreRequest actualRequest = + ((GetIdentityMappingStoreRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIdentityMappingStoreExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIdentityMappingStoreService.addException(exception); + + try { + IdentityMappingStoreName name = + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]"); + client.getIdentityMappingStore(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIdentityMappingStoreTest2() throws Exception { + IdentityMappingStore expectedResponse = + IdentityMappingStore.newBuilder() + .setName( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setKmsKeyName("kmsKeyName412586233") + .setCmekConfig(CmekConfig.newBuilder().build()) + .build(); + mockIdentityMappingStoreService.addResponse(expectedResponse); + + String name = "name3373707"; + + IdentityMappingStore actualResponse = client.getIdentityMappingStore(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIdentityMappingStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIdentityMappingStoreRequest actualRequest = + ((GetIdentityMappingStoreRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIdentityMappingStoreExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIdentityMappingStoreService.addException(exception); + + try { + String name = "name3373707"; + client.getIdentityMappingStore(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteIdentityMappingStoreTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteIdentityMappingStoreTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIdentityMappingStoreService.addResponse(resultOperation); + + IdentityMappingStoreName name = + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]"); + + client.deleteIdentityMappingStoreAsync(name).get(); + + List actualRequests = mockIdentityMappingStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteIdentityMappingStoreRequest actualRequest = + ((DeleteIdentityMappingStoreRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteIdentityMappingStoreExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIdentityMappingStoreService.addException(exception); + + try { + IdentityMappingStoreName name = + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]"); + client.deleteIdentityMappingStoreAsync(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 deleteIdentityMappingStoreTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteIdentityMappingStoreTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIdentityMappingStoreService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteIdentityMappingStoreAsync(name).get(); + + List actualRequests = mockIdentityMappingStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteIdentityMappingStoreRequest actualRequest = + ((DeleteIdentityMappingStoreRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteIdentityMappingStoreExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIdentityMappingStoreService.addException(exception); + + try { + String name = "name3373707"; + client.deleteIdentityMappingStoreAsync(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 importIdentityMappingsTest() throws Exception { + ImportIdentityMappingsResponse expectedResponse = + ImportIdentityMappingsResponse.newBuilder() + .addAllErrorSamples(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("importIdentityMappingsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIdentityMappingStoreService.addResponse(resultOperation); + + ImportIdentityMappingsRequest request = + ImportIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .build(); + + ImportIdentityMappingsResponse actualResponse = + client.importIdentityMappingsAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIdentityMappingStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ImportIdentityMappingsRequest actualRequest = + ((ImportIdentityMappingsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getInlineSource(), actualRequest.getInlineSource()); + Assert.assertEquals(request.getIdentityMappingStore(), actualRequest.getIdentityMappingStore()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void importIdentityMappingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIdentityMappingStoreService.addException(exception); + + try { + ImportIdentityMappingsRequest request = + ImportIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .build(); + client.importIdentityMappingsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void purgeIdentityMappingsTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("purgeIdentityMappingsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockIdentityMappingStoreService.addResponse(resultOperation); + + PurgeIdentityMappingsRequest request = + PurgeIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + + client.purgeIdentityMappingsAsync(request).get(); + + List actualRequests = mockIdentityMappingStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PurgeIdentityMappingsRequest actualRequest = + ((PurgeIdentityMappingsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getInlineSource(), actualRequest.getInlineSource()); + Assert.assertEquals(request.getIdentityMappingStore(), actualRequest.getIdentityMappingStore()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getForce(), actualRequest.getForce()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void purgeIdentityMappingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIdentityMappingStoreService.addException(exception); + + try { + PurgeIdentityMappingsRequest request = + PurgeIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + client.purgeIdentityMappingsAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void listIdentityMappingsTest() throws Exception { + IdentityMappingEntry responsesElement = IdentityMappingEntry.newBuilder().build(); + ListIdentityMappingsResponse expectedResponse = + ListIdentityMappingsResponse.newBuilder() + .setNextPageToken("") + .addAllIdentityMappingEntries(Arrays.asList(responsesElement)) + .build(); + mockIdentityMappingStoreService.addResponse(expectedResponse); + + ListIdentityMappingsRequest request = + ListIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListIdentityMappingsPagedResponse pagedListResponse = client.listIdentityMappings(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getIdentityMappingEntriesList().get(0), resources.get(0)); + + List actualRequests = mockIdentityMappingStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListIdentityMappingsRequest actualRequest = + ((ListIdentityMappingsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getIdentityMappingStore(), actualRequest.getIdentityMappingStore()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listIdentityMappingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIdentityMappingStoreService.addException(exception); + + try { + ListIdentityMappingsRequest request = + ListIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listIdentityMappings(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listIdentityMappingStoresTest() throws Exception { + IdentityMappingStore responsesElement = IdentityMappingStore.newBuilder().build(); + ListIdentityMappingStoresResponse expectedResponse = + ListIdentityMappingStoresResponse.newBuilder() + .setNextPageToken("") + .addAllIdentityMappingStores(Arrays.asList(responsesElement)) + .build(); + mockIdentityMappingStoreService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListIdentityMappingStoresPagedResponse pagedListResponse = + client.listIdentityMappingStores(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getIdentityMappingStoresList().get(0), resources.get(0)); + + List actualRequests = mockIdentityMappingStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListIdentityMappingStoresRequest actualRequest = + ((ListIdentityMappingStoresRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listIdentityMappingStoresExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIdentityMappingStoreService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listIdentityMappingStores(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listIdentityMappingStoresTest2() throws Exception { + IdentityMappingStore responsesElement = IdentityMappingStore.newBuilder().build(); + ListIdentityMappingStoresResponse expectedResponse = + ListIdentityMappingStoresResponse.newBuilder() + .setNextPageToken("") + .addAllIdentityMappingStores(Arrays.asList(responsesElement)) + .build(); + mockIdentityMappingStoreService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListIdentityMappingStoresPagedResponse pagedListResponse = + client.listIdentityMappingStores(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getIdentityMappingStoresList().get(0), resources.get(0)); + + List actualRequests = mockIdentityMappingStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListIdentityMappingStoresRequest actualRequest = + ((ListIdentityMappingStoresRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listIdentityMappingStoresExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIdentityMappingStoreService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listIdentityMappingStores(parent); + 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/v1beta/LicenseConfigServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..35c94ea57677 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceClientHttpJsonTest.java @@ -0,0 +1,830 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient.ListLicenseConfigsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1beta.stub.HttpJsonLicenseConfigServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.FieldMask; +import com.google.type.Date; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class LicenseConfigServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static LicenseConfigServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonLicenseConfigServiceStub.getMethodDescriptors(), + LicenseConfigServiceSettings.getDefaultEndpoint()); + LicenseConfigServiceSettings settings = + LicenseConfigServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + LicenseConfigServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = LicenseConfigServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createLicenseConfigTest() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + + LicenseConfig actualResponse = + client.createLicenseConfig(parent, licenseConfig, licenseConfigId); + 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 createLicenseConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + client.createLicenseConfig(parent, licenseConfig, licenseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createLicenseConfigTest2() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + + LicenseConfig actualResponse = + client.createLicenseConfig(parent, licenseConfig, licenseConfigId); + 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 createLicenseConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + client.createLicenseConfig(parent, licenseConfig, licenseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateLicenseConfigTest() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LicenseConfig licenseConfig = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + LicenseConfig actualResponse = client.updateLicenseConfig(licenseConfig, 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 updateLicenseConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LicenseConfig licenseConfig = + LicenseConfig.newBuilder() + .setName( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateLicenseConfig(licenseConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLicenseConfigTest() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LicenseConfigName name = LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + + LicenseConfig actualResponse = client.getLicenseConfig(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 getLicenseConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LicenseConfigName name = LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + client.getLicenseConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLicenseConfigTest2() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-9552/locations/location-9552/licenseConfigs/licenseConfig-9552"; + + LicenseConfig actualResponse = client.getLicenseConfig(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 getLicenseConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9552/locations/location-9552/licenseConfigs/licenseConfig-9552"; + client.getLicenseConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLicenseConfigsTest() throws Exception { + LicenseConfig responsesElement = LicenseConfig.newBuilder().build(); + ListLicenseConfigsResponse expectedResponse = + ListLicenseConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllLicenseConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListLicenseConfigsPagedResponse pagedListResponse = client.listLicenseConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLicenseConfigsList().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 listLicenseConfigsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listLicenseConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLicenseConfigsTest2() throws Exception { + LicenseConfig responsesElement = LicenseConfig.newBuilder().build(); + ListLicenseConfigsResponse expectedResponse = + ListLicenseConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllLicenseConfigs(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListLicenseConfigsPagedResponse pagedListResponse = client.listLicenseConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLicenseConfigsList().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 listLicenseConfigsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listLicenseConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void distributeLicenseConfigTest() throws Exception { + DistributeLicenseConfigResponse expectedResponse = + DistributeLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + + DistributeLicenseConfigResponse actualResponse = + client.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + 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 distributeLicenseConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + client.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void distributeLicenseConfigTest2() throws Exception { + DistributeLicenseConfigResponse expectedResponse = + DistributeLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String billingAccountLicenseConfig = + "billingAccounts/billingAccount-511/billingAccountLicenseConfigs/billingAccountLicenseConfig-511"; + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + + DistributeLicenseConfigResponse actualResponse = + client.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + 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 distributeLicenseConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String billingAccountLicenseConfig = + "billingAccounts/billingAccount-511/billingAccountLicenseConfigs/billingAccountLicenseConfig-511"; + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + client.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retractLicenseConfigTest() throws Exception { + RetractLicenseConfigResponse expectedResponse = + RetractLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + + RetractLicenseConfigResponse actualResponse = + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + 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 retractLicenseConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retractLicenseConfigTest2() throws Exception { + RetractLicenseConfigResponse expectedResponse = + RetractLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + String licenseConfig = "licenseConfig1939275491"; + boolean fullRetract = true; + long licenseCount = -1565113455; + + RetractLicenseConfigResponse actualResponse = + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + 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 retractLicenseConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + String licenseConfig = "licenseConfig1939275491"; + boolean fullRetract = true; + long licenseCount = -1565113455; + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retractLicenseConfigTest3() throws Exception { + RetractLicenseConfigResponse expectedResponse = + RetractLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String billingAccountLicenseConfig = + "billingAccounts/billingAccount-511/billingAccountLicenseConfigs/billingAccountLicenseConfig-511"; + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + + RetractLicenseConfigResponse actualResponse = + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + 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 retractLicenseConfigExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String billingAccountLicenseConfig = + "billingAccounts/billingAccount-511/billingAccountLicenseConfigs/billingAccountLicenseConfig-511"; + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retractLicenseConfigTest4() throws Exception { + RetractLicenseConfigResponse expectedResponse = + RetractLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String billingAccountLicenseConfig = + "billingAccounts/billingAccount-511/billingAccountLicenseConfigs/billingAccountLicenseConfig-511"; + String licenseConfig = "licenseConfig1939275491"; + boolean fullRetract = true; + long licenseCount = -1565113455; + + RetractLicenseConfigResponse actualResponse = + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + 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 retractLicenseConfigExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String billingAccountLicenseConfig = + "billingAccounts/billingAccount-511/billingAccountLicenseConfigs/billingAccountLicenseConfig-511"; + String licenseConfig = "licenseConfig1939275491"; + boolean fullRetract = true; + long licenseCount = -1565113455; + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + 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/v1beta/LicenseConfigServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceClientTest.java new file mode 100644 index 000000000000..1f6c950fb206 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceClientTest.java @@ -0,0 +1,761 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient.ListLicenseConfigsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +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.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.FieldMask; +import com.google.type.Date; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class LicenseConfigServiceClientTest { + private static MockLicenseConfigService mockLicenseConfigService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private LicenseConfigServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockLicenseConfigService = new MockLicenseConfigService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockLicenseConfigService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + LicenseConfigServiceSettings settings = + LicenseConfigServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = LicenseConfigServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createLicenseConfigTest() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + + LicenseConfig actualResponse = + client.createLicenseConfig(parent, licenseConfig, licenseConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateLicenseConfigRequest actualRequest = ((CreateLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(licenseConfig, actualRequest.getLicenseConfig()); + Assert.assertEquals(licenseConfigId, actualRequest.getLicenseConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createLicenseConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + client.createLicenseConfig(parent, licenseConfig, licenseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createLicenseConfigTest2() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + + LicenseConfig actualResponse = + client.createLicenseConfig(parent, licenseConfig, licenseConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateLicenseConfigRequest actualRequest = ((CreateLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(licenseConfig, actualRequest.getLicenseConfig()); + Assert.assertEquals(licenseConfigId, actualRequest.getLicenseConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createLicenseConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + String parent = "parent-995424086"; + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + client.createLicenseConfig(parent, licenseConfig, licenseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateLicenseConfigTest() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + LicenseConfig actualResponse = client.updateLicenseConfig(licenseConfig, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateLicenseConfigRequest actualRequest = ((UpdateLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(licenseConfig, actualRequest.getLicenseConfig()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateLicenseConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateLicenseConfig(licenseConfig, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLicenseConfigTest() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + LicenseConfigName name = LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + + LicenseConfig actualResponse = client.getLicenseConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLicenseConfigRequest actualRequest = ((GetLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLicenseConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + LicenseConfigName name = LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + client.getLicenseConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLicenseConfigTest2() throws Exception { + LicenseConfig expectedResponse = + LicenseConfig.newBuilder() + .setName(LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setLicenseCount(-1565113455) + .setSubscriptionTier(SubscriptionTier.forNumber(0)) + .setAutoRenew(true) + .setStartDate(Date.newBuilder().build()) + .setEndDate(Date.newBuilder().build()) + .setSubscriptionTerm(SubscriptionTerm.forNumber(0)) + .setFreeTrial(true) + .setGeminiBundle(true) + .setEarlyTerminated(true) + .setEarlyTerminationDate(Date.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + String name = "name3373707"; + + LicenseConfig actualResponse = client.getLicenseConfig(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLicenseConfigRequest actualRequest = ((GetLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLicenseConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + String name = "name3373707"; + client.getLicenseConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLicenseConfigsTest() throws Exception { + LicenseConfig responsesElement = LicenseConfig.newBuilder().build(); + ListLicenseConfigsResponse expectedResponse = + ListLicenseConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllLicenseConfigs(Arrays.asList(responsesElement)) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListLicenseConfigsPagedResponse pagedListResponse = client.listLicenseConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLicenseConfigsList().get(0), resources.get(0)); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLicenseConfigsRequest actualRequest = ((ListLicenseConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLicenseConfigsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listLicenseConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLicenseConfigsTest2() throws Exception { + LicenseConfig responsesElement = LicenseConfig.newBuilder().build(); + ListLicenseConfigsResponse expectedResponse = + ListLicenseConfigsResponse.newBuilder() + .setNextPageToken("") + .addAllLicenseConfigs(Arrays.asList(responsesElement)) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListLicenseConfigsPagedResponse pagedListResponse = client.listLicenseConfigs(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLicenseConfigsList().get(0), resources.get(0)); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLicenseConfigsRequest actualRequest = ((ListLicenseConfigsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLicenseConfigsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listLicenseConfigs(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void distributeLicenseConfigTest() throws Exception { + DistributeLicenseConfigResponse expectedResponse = + DistributeLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + + DistributeLicenseConfigResponse actualResponse = + client.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DistributeLicenseConfigRequest actualRequest = + ((DistributeLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals( + billingAccountLicenseConfig.toString(), actualRequest.getBillingAccountLicenseConfig()); + Assert.assertEquals(projectNumber, actualRequest.getProjectNumber()); + Assert.assertEquals(location, actualRequest.getLocation()); + Assert.assertEquals(licenseCount, actualRequest.getLicenseCount()); + Assert.assertEquals(licenseConfigId, actualRequest.getLicenseConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void distributeLicenseConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + client.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void distributeLicenseConfigTest2() throws Exception { + DistributeLicenseConfigResponse expectedResponse = + DistributeLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + String billingAccountLicenseConfig = "billingAccountLicenseConfig474063057"; + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + + DistributeLicenseConfigResponse actualResponse = + client.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DistributeLicenseConfigRequest actualRequest = + ((DistributeLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals( + billingAccountLicenseConfig, actualRequest.getBillingAccountLicenseConfig()); + Assert.assertEquals(projectNumber, actualRequest.getProjectNumber()); + Assert.assertEquals(location, actualRequest.getLocation()); + Assert.assertEquals(licenseCount, actualRequest.getLicenseCount()); + Assert.assertEquals(licenseConfigId, actualRequest.getLicenseConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void distributeLicenseConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + String billingAccountLicenseConfig = "billingAccountLicenseConfig474063057"; + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + client.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retractLicenseConfigTest() throws Exception { + RetractLicenseConfigResponse expectedResponse = + RetractLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + + RetractLicenseConfigResponse actualResponse = + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RetractLicenseConfigRequest actualRequest = + ((RetractLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals( + billingAccountLicenseConfig.toString(), actualRequest.getBillingAccountLicenseConfig()); + Assert.assertEquals(licenseConfig.toString(), actualRequest.getLicenseConfig()); + Assert.assertEquals(fullRetract, actualRequest.getFullRetract()); + Assert.assertEquals(licenseCount, actualRequest.getLicenseCount()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void retractLicenseConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retractLicenseConfigTest2() throws Exception { + RetractLicenseConfigResponse expectedResponse = + RetractLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of("[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + String licenseConfig = "licenseConfig1939275491"; + boolean fullRetract = true; + long licenseCount = -1565113455; + + RetractLicenseConfigResponse actualResponse = + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RetractLicenseConfigRequest actualRequest = + ((RetractLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals( + billingAccountLicenseConfig.toString(), actualRequest.getBillingAccountLicenseConfig()); + Assert.assertEquals(licenseConfig, actualRequest.getLicenseConfig()); + Assert.assertEquals(fullRetract, actualRequest.getFullRetract()); + Assert.assertEquals(licenseCount, actualRequest.getLicenseCount()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void retractLicenseConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + String licenseConfig = "licenseConfig1939275491"; + boolean fullRetract = true; + long licenseCount = -1565113455; + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retractLicenseConfigTest3() throws Exception { + RetractLicenseConfigResponse expectedResponse = + RetractLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + String billingAccountLicenseConfig = "billingAccountLicenseConfig474063057"; + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + + RetractLicenseConfigResponse actualResponse = + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RetractLicenseConfigRequest actualRequest = + ((RetractLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals( + billingAccountLicenseConfig, actualRequest.getBillingAccountLicenseConfig()); + Assert.assertEquals(licenseConfig.toString(), actualRequest.getLicenseConfig()); + Assert.assertEquals(fullRetract, actualRequest.getFullRetract()); + Assert.assertEquals(licenseCount, actualRequest.getLicenseCount()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void retractLicenseConfigExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + String billingAccountLicenseConfig = "billingAccountLicenseConfig474063057"; + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void retractLicenseConfigTest4() throws Exception { + RetractLicenseConfigResponse expectedResponse = + RetractLicenseConfigResponse.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .build(); + mockLicenseConfigService.addResponse(expectedResponse); + + String billingAccountLicenseConfig = "billingAccountLicenseConfig474063057"; + String licenseConfig = "licenseConfig1939275491"; + boolean fullRetract = true; + long licenseCount = -1565113455; + + RetractLicenseConfigResponse actualResponse = + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLicenseConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RetractLicenseConfigRequest actualRequest = + ((RetractLicenseConfigRequest) actualRequests.get(0)); + + Assert.assertEquals( + billingAccountLicenseConfig, actualRequest.getBillingAccountLicenseConfig()); + Assert.assertEquals(licenseConfig, actualRequest.getLicenseConfig()); + Assert.assertEquals(fullRetract, actualRequest.getFullRetract()); + Assert.assertEquals(licenseCount, actualRequest.getLicenseCount()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void retractLicenseConfigExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLicenseConfigService.addException(exception); + + try { + String billingAccountLicenseConfig = "billingAccountLicenseConfig474063057"; + String licenseConfig = "licenseConfig1939275491"; + boolean fullRetract = true; + long licenseCount = -1565113455; + client.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + 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/v1beta/MockAclConfigService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockAclConfigService.java new file mode 100644 index 000000000000..c983f5bc1f46 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockAclConfigService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAclConfigService implements MockGrpcService { + private final MockAclConfigServiceImpl serviceImpl; + + public MockAclConfigService() { + serviceImpl = new MockAclConfigServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockAclConfigServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockAclConfigServiceImpl.java new file mode 100644 index 000000000000..65d04cc072f5 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockAclConfigServiceImpl.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1beta.AclConfigServiceGrpc.AclConfigServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAclConfigServiceImpl extends AclConfigServiceImplBase { + private List requests; + private Queue responses; + + public MockAclConfigServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void updateAclConfig( + UpdateAclConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AclConfig) { + requests.add(request); + responseObserver.onNext(((AclConfig) 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 UpdateAclConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AclConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAclConfig( + GetAclConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AclConfig) { + requests.add(request); + responseObserver.onNext(((AclConfig) 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 GetAclConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AclConfig.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockAssistantService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockAssistantService.java new file mode 100644 index 000000000000..9c9942dd9b54 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockAssistantService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAssistantService implements MockGrpcService { + private final MockAssistantServiceImpl serviceImpl; + + public MockAssistantService() { + serviceImpl = new MockAssistantServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockAssistantServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockAssistantServiceImpl.java new file mode 100644 index 000000000000..5a3e7663a590 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockAssistantServiceImpl.java @@ -0,0 +1,187 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceGrpc.AssistantServiceImplBase; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAssistantServiceImpl extends AssistantServiceImplBase { + private List requests; + private Queue responses; + + public MockAssistantServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void streamAssist( + StreamAssistRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof StreamAssistResponse) { + requests.add(request); + responseObserver.onNext(((StreamAssistResponse) 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 StreamAssist, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + StreamAssistResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createAssistant( + CreateAssistantRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Assistant) { + requests.add(request); + responseObserver.onNext(((Assistant) 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 CreateAssistant, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Assistant.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAssistant( + DeleteAssistantRequest 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 DeleteAssistant, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateAssistant( + UpdateAssistantRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Assistant) { + requests.add(request); + responseObserver.onNext(((Assistant) 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 UpdateAssistant, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Assistant.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAssistant( + GetAssistantRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Assistant) { + requests.add(request); + responseObserver.onNext(((Assistant) 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 GetAssistant, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Assistant.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAssistants( + ListAssistantsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAssistantsResponse) { + requests.add(request); + responseObserver.onNext(((ListAssistantsResponse) 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 ListAssistants, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAssistantsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCmekConfigService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCmekConfigService.java new file mode 100644 index 000000000000..96fa80f02332 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCmekConfigService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockCmekConfigService implements MockGrpcService { + private final MockCmekConfigServiceImpl serviceImpl; + + public MockCmekConfigService() { + serviceImpl = new MockCmekConfigServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCmekConfigServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCmekConfigServiceImpl.java new file mode 100644 index 000000000000..d3ef9088d6d7 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCmekConfigServiceImpl.java @@ -0,0 +1,145 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceGrpc.CmekConfigServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockCmekConfigServiceImpl extends CmekConfigServiceImplBase { + private List requests; + private Queue responses; + + public MockCmekConfigServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void updateCmekConfig( + UpdateCmekConfigRequest 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 UpdateCmekConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getCmekConfig( + GetCmekConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CmekConfig) { + requests.add(request); + responseObserver.onNext(((CmekConfig) 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 GetCmekConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CmekConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listCmekConfigs( + ListCmekConfigsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListCmekConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListCmekConfigsResponse) 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 ListCmekConfigs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListCmekConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteCmekConfig( + DeleteCmekConfigRequest 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 DeleteCmekConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCompletionServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCompletionServiceImpl.java index 860e9d4bb9b6..44513226de14 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCompletionServiceImpl.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockCompletionServiceImpl.java @@ -190,4 +190,25 @@ public void purgeCompletionSuggestions( Exception.class.getName()))); } } + + @Override + public void removeSuggestion( + RemoveSuggestionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RemoveSuggestionResponse) { + requests.add(request); + responseObserver.onNext(((RemoveSuggestionResponse) 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 RemoveSuggestion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RemoveSuggestionResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockConversationalSearchServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockConversationalSearchServiceImpl.java index 8c1f156065e6..415562828411 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockConversationalSearchServiceImpl.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockConversationalSearchServiceImpl.java @@ -209,6 +209,27 @@ public void answerQuery( } } + @Override + public void streamAnswerQuery( + AnswerQueryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AnswerQueryResponse) { + requests.add(request); + responseObserver.onNext(((AnswerQueryResponse) 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 StreamAnswerQuery, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AnswerQueryResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getAnswer(GetAnswerRequest request, StreamObserver responseObserver) { Object response = responses.poll(); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockEngineServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockEngineServiceImpl.java index 799f96a519de..440466b8c42a 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockEngineServiceImpl.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockEngineServiceImpl.java @@ -18,6 +18,9 @@ import com.google.api.core.BetaApi; import com.google.cloud.discoveryengine.v1beta.EngineServiceGrpc.EngineServiceImplBase; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import io.grpc.stub.StreamObserver; @@ -221,4 +224,44 @@ public void tuneEngine(TuneEngineRequest request, StreamObserver resp Exception.class.getName()))); } } + + @Override + public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) 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 GetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Policy) { + requests.add(request); + responseObserver.onNext(((Policy) 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 SetIamPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Policy.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockIdentityMappingStoreService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockIdentityMappingStoreService.java new file mode 100644 index 000000000000..99c368735049 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockIdentityMappingStoreService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockIdentityMappingStoreService implements MockGrpcService { + private final MockIdentityMappingStoreServiceImpl serviceImpl; + + public MockIdentityMappingStoreService() { + serviceImpl = new MockIdentityMappingStoreServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockIdentityMappingStoreServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockIdentityMappingStoreServiceImpl.java new file mode 100644 index 000000000000..84d16bb640fe --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockIdentityMappingStoreServiceImpl.java @@ -0,0 +1,219 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceGrpc.IdentityMappingStoreServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockIdentityMappingStoreServiceImpl extends IdentityMappingStoreServiceImplBase { + private List requests; + private Queue responses; + + public MockIdentityMappingStoreServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createIdentityMappingStore( + CreateIdentityMappingStoreRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof IdentityMappingStore) { + requests.add(request); + responseObserver.onNext(((IdentityMappingStore) 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 CreateIdentityMappingStore, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + IdentityMappingStore.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getIdentityMappingStore( + GetIdentityMappingStoreRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof IdentityMappingStore) { + requests.add(request); + responseObserver.onNext(((IdentityMappingStore) 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 GetIdentityMappingStore, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + IdentityMappingStore.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteIdentityMappingStore( + DeleteIdentityMappingStoreRequest 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 DeleteIdentityMappingStore, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void importIdentityMappings( + ImportIdentityMappingsRequest 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 ImportIdentityMappings, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void purgeIdentityMappings( + PurgeIdentityMappingsRequest 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 PurgeIdentityMappings, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listIdentityMappings( + ListIdentityMappingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListIdentityMappingsResponse) { + requests.add(request); + responseObserver.onNext(((ListIdentityMappingsResponse) 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 ListIdentityMappings, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListIdentityMappingsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listIdentityMappingStores( + ListIdentityMappingStoresRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListIdentityMappingStoresResponse) { + requests.add(request); + responseObserver.onNext(((ListIdentityMappingStoresResponse) 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 ListIdentityMappingStores, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + ListIdentityMappingStoresResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockLicenseConfigService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockLicenseConfigService.java new file mode 100644 index 000000000000..4fccf68e5c74 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockLicenseConfigService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLicenseConfigService implements MockGrpcService { + private final MockLicenseConfigServiceImpl serviceImpl; + + public MockLicenseConfigService() { + serviceImpl = new MockLicenseConfigServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockLicenseConfigServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockLicenseConfigServiceImpl.java new file mode 100644 index 000000000000..464929c30945 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockLicenseConfigServiceImpl.java @@ -0,0 +1,191 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceGrpc.LicenseConfigServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLicenseConfigServiceImpl extends LicenseConfigServiceImplBase { + private List requests; + private Queue responses; + + public MockLicenseConfigServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createLicenseConfig( + CreateLicenseConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LicenseConfig) { + requests.add(request); + responseObserver.onNext(((LicenseConfig) 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 CreateLicenseConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LicenseConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateLicenseConfig( + UpdateLicenseConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LicenseConfig) { + requests.add(request); + responseObserver.onNext(((LicenseConfig) 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 UpdateLicenseConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LicenseConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLicenseConfig( + GetLicenseConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof LicenseConfig) { + requests.add(request); + responseObserver.onNext(((LicenseConfig) 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 GetLicenseConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + LicenseConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listLicenseConfigs( + ListLicenseConfigsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLicenseConfigsResponse) { + requests.add(request); + responseObserver.onNext(((ListLicenseConfigsResponse) 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 ListLicenseConfigs, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLicenseConfigsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void distributeLicenseConfig( + DistributeLicenseConfigRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DistributeLicenseConfigResponse) { + requests.add(request); + responseObserver.onNext(((DistributeLicenseConfigResponse) 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 DistributeLicenseConfig, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + DistributeLicenseConfigResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void retractLicenseConfig( + RetractLicenseConfigRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RetractLicenseConfigResponse) { + requests.add(request); + responseObserver.onNext(((RetractLicenseConfigResponse) 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 RetractLicenseConfig, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + RetractLicenseConfigResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockServingConfigServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockServingConfigServiceImpl.java index f7e6a17c0b9d..bafb0206d3ef 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockServingConfigServiceImpl.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockServingConfigServiceImpl.java @@ -19,6 +19,7 @@ import com.google.api.core.BetaApi; import com.google.cloud.discoveryengine.v1beta.ServingConfigServiceGrpc.ServingConfigServiceImplBase; import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; import io.grpc.stub.StreamObserver; import java.util.ArrayList; import java.util.LinkedList; @@ -58,6 +59,48 @@ public void reset() { responses = new LinkedList<>(); } + @Override + public void createServingConfig( + CreateServingConfigRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ServingConfig) { + requests.add(request); + responseObserver.onNext(((ServingConfig) 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 CreateServingConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ServingConfig.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteServingConfig( + DeleteServingConfigRequest 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 DeleteServingConfig, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + @Override public void updateServingConfig( UpdateServingConfigRequest request, StreamObserver responseObserver) { diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserLicenseService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserLicenseService.java new file mode 100644 index 000000000000..411a9d74b331 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserLicenseService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockUserLicenseService implements MockGrpcService { + private final MockUserLicenseServiceImpl serviceImpl; + + public MockUserLicenseService() { + serviceImpl = new MockUserLicenseServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserLicenseServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserLicenseServiceImpl.java new file mode 100644 index 000000000000..d9fa3803f80e --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserLicenseServiceImpl.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceGrpc.UserLicenseServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockUserLicenseServiceImpl extends UserLicenseServiceImplBase { + private List requests; + private Queue responses; + + public MockUserLicenseServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listUserLicenses( + ListUserLicensesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListUserLicensesResponse) { + requests.add(request); + responseObserver.onNext(((ListUserLicensesResponse) 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 ListUserLicenses, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListUserLicensesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listLicenseConfigsUsageStats( + ListLicenseConfigsUsageStatsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLicenseConfigsUsageStatsResponse) { + requests.add(request); + responseObserver.onNext(((ListLicenseConfigsUsageStatsResponse) 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 ListLicenseConfigsUsageStats, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLicenseConfigsUsageStatsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchUpdateUserLicenses( + BatchUpdateUserLicensesRequest 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 BatchUpdateUserLicenses, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserStoreService.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserStoreService.java new file mode 100644 index 000000000000..7e7b694ff4de --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserStoreService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockUserStoreService implements MockGrpcService { + private final MockUserStoreServiceImpl serviceImpl; + + public MockUserStoreService() { + serviceImpl = new MockUserStoreServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserStoreServiceImpl.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserStoreServiceImpl.java new file mode 100644 index 000000000000..73803907e7a2 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/MockUserStoreServiceImpl.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.core.BetaApi; +import com.google.cloud.discoveryengine.v1beta.UserStoreServiceGrpc.UserStoreServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockUserStoreServiceImpl extends UserStoreServiceImplBase { + private List requests; + private Queue responses; + + public MockUserStoreServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getUserStore( + GetUserStoreRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof UserStore) { + requests.add(request); + responseObserver.onNext(((UserStore) 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 GetUserStore, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + UserStore.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateUserStore( + UpdateUserStoreRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof UserStore) { + requests.add(request); + responseObserver.onNext(((UserStore) 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 UpdateUserStore, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + UserStore.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClientHttpJsonTest.java index 4600de1eb7ff..1206740b7917 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClientHttpJsonTest.java @@ -83,6 +83,8 @@ public void provisionProjectTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setProvisionCompletionTime(Timestamp.newBuilder().build()) .putAllServiceTermsMap(new HashMap()) + .setCustomerProvidedConfig(Project.CustomerProvidedConfig.newBuilder().build()) + .setConfigurableBillingStatus(Project.ConfigurableBillingStatus.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -135,6 +137,8 @@ public void provisionProjectTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setProvisionCompletionTime(Timestamp.newBuilder().build()) .putAllServiceTermsMap(new HashMap()) + .setCustomerProvidedConfig(Project.CustomerProvidedConfig.newBuilder().build()) + .setConfigurableBillingStatus(Project.ConfigurableBillingStatus.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClientTest.java index 4635a0f042bb..dee05e3f9c4d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceClientTest.java @@ -92,6 +92,8 @@ public void provisionProjectTest() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setProvisionCompletionTime(Timestamp.newBuilder().build()) .putAllServiceTermsMap(new HashMap()) + .setCustomerProvidedConfig(Project.CustomerProvidedConfig.newBuilder().build()) + .setConfigurableBillingStatus(Project.ConfigurableBillingStatus.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -141,6 +143,8 @@ public void provisionProjectTest2() throws Exception { .setCreateTime(Timestamp.newBuilder().build()) .setProvisionCompletionTime(Timestamp.newBuilder().build()) .putAllServiceTermsMap(new HashMap()) + .setCustomerProvidedConfig(Project.CustomerProvidedConfig.newBuilder().build()) + .setConfigurableBillingStatus(Project.ConfigurableBillingStatus.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientHttpJsonTest.java index d9043388fe2e..55ef42e0a3bc 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientHttpJsonTest.java @@ -100,12 +100,14 @@ public void searchTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) .setOneBoxPageSize(1988477988) .addAllDataStoreSpecs(new ArrayList()) + .setNumResultsPerDataStore(397658288) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -126,12 +128,19 @@ public void searchTest() throws Exception { .setNaturalLanguageQueryUnderstandingSpec( SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + .setEntity("entity-1298275357") .build(); SearchPagedResponse pagedListResponse = client.search(request); @@ -176,12 +185,14 @@ public void searchExceptionTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) .setOneBoxPageSize(1988477988) .addAllDataStoreSpecs(new ArrayList()) + .setNumResultsPerDataStore(397658288) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -202,12 +213,19 @@ public void searchExceptionTest() throws Exception { .setNaturalLanguageQueryUnderstandingSpec( SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + .setEntity("entity-1298275357") .build(); client.search(request); Assert.fail("No exception raised"); @@ -237,12 +255,14 @@ public void searchLiteTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) .setOneBoxPageSize(1988477988) .addAllDataStoreSpecs(new ArrayList()) + .setNumResultsPerDataStore(397658288) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -263,12 +283,19 @@ public void searchLiteTest() throws Exception { .setNaturalLanguageQueryUnderstandingSpec( SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + .setEntity("entity-1298275357") .build(); SearchLitePagedResponse pagedListResponse = client.searchLite(request); @@ -313,12 +340,14 @@ public void searchLiteExceptionTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) .setOneBoxPageSize(1988477988) .addAllDataStoreSpecs(new ArrayList()) + .setNumResultsPerDataStore(397658288) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -339,12 +368,19 @@ public void searchLiteExceptionTest() throws Exception { .setNaturalLanguageQueryUnderstandingSpec( SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + .setEntity("entity-1298275357") .build(); client.searchLite(request); Assert.fail("No exception raised"); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientTest.java index 0c20749e610b..d04cf16d5549 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SearchServiceClientTest.java @@ -106,12 +106,14 @@ public void searchTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) .setOneBoxPageSize(1988477988) .addAllDataStoreSpecs(new ArrayList()) + .setNumResultsPerDataStore(397658288) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -132,12 +134,19 @@ public void searchTest() throws Exception { .setNaturalLanguageQueryUnderstandingSpec( SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + .setEntity("entity-1298275357") .build(); SearchPagedResponse pagedListResponse = client.search(request); @@ -155,12 +164,15 @@ public void searchTest() throws Exception { Assert.assertEquals(request.getServingConfig(), actualRequest.getServingConfig()); Assert.assertEquals(request.getBranch(), actualRequest.getBranch()); Assert.assertEquals(request.getQuery(), actualRequest.getQuery()); + Assert.assertEquals(request.getPageCategoriesList(), actualRequest.getPageCategoriesList()); 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.getNumResultsPerDataStore(), actualRequest.getNumResultsPerDataStore()); Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); Assert.assertEquals(request.getCanonicalFilter(), actualRequest.getCanonicalFilter()); Assert.assertEquals(request.getOrderBy(), actualRequest.getOrderBy()); @@ -184,10 +196,17 @@ public void searchTest() throws Exception { request.getNaturalLanguageQueryUnderstandingSpec(), actualRequest.getNaturalLanguageQueryUnderstandingSpec()); Assert.assertEquals(request.getSearchAsYouTypeSpec(), actualRequest.getSearchAsYouTypeSpec()); + Assert.assertEquals(request.getDisplaySpec(), actualRequest.getDisplaySpec()); + Assert.assertEquals(request.getCrowdingSpecsList(), actualRequest.getCrowdingSpecsList()); Assert.assertEquals(request.getSession(), actualRequest.getSession()); Assert.assertEquals(request.getSessionSpec(), actualRequest.getSessionSpec()); Assert.assertEquals(request.getRelevanceThreshold(), actualRequest.getRelevanceThreshold()); + Assert.assertEquals(request.getRelevanceFilterSpec(), actualRequest.getRelevanceFilterSpec()); Assert.assertEquals(request.getPersonalizationSpec(), actualRequest.getPersonalizationSpec()); + Assert.assertEquals(request.getRelevanceScoreSpec(), actualRequest.getRelevanceScoreSpec()); + Assert.assertEquals(request.getSearchAddonSpec(), actualRequest.getSearchAddonSpec()); + Assert.assertEquals(request.getCustomRankingParams(), actualRequest.getCustomRankingParams()); + Assert.assertEquals(request.getEntity(), actualRequest.getEntity()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -211,12 +230,14 @@ public void searchExceptionTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) .setOneBoxPageSize(1988477988) .addAllDataStoreSpecs(new ArrayList()) + .setNumResultsPerDataStore(397658288) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -237,12 +258,19 @@ public void searchExceptionTest() throws Exception { .setNaturalLanguageQueryUnderstandingSpec( SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + .setEntity("entity-1298275357") .build(); client.search(request); Assert.fail("No exception raised"); @@ -272,12 +300,14 @@ public void searchLiteTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) .setOneBoxPageSize(1988477988) .addAllDataStoreSpecs(new ArrayList()) + .setNumResultsPerDataStore(397658288) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -298,12 +328,19 @@ public void searchLiteTest() throws Exception { .setNaturalLanguageQueryUnderstandingSpec( SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + .setEntity("entity-1298275357") .build(); SearchLitePagedResponse pagedListResponse = client.searchLite(request); @@ -321,12 +358,15 @@ public void searchLiteTest() throws Exception { Assert.assertEquals(request.getServingConfig(), actualRequest.getServingConfig()); Assert.assertEquals(request.getBranch(), actualRequest.getBranch()); Assert.assertEquals(request.getQuery(), actualRequest.getQuery()); + Assert.assertEquals(request.getPageCategoriesList(), actualRequest.getPageCategoriesList()); 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.getNumResultsPerDataStore(), actualRequest.getNumResultsPerDataStore()); Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); Assert.assertEquals(request.getCanonicalFilter(), actualRequest.getCanonicalFilter()); Assert.assertEquals(request.getOrderBy(), actualRequest.getOrderBy()); @@ -350,10 +390,17 @@ public void searchLiteTest() throws Exception { request.getNaturalLanguageQueryUnderstandingSpec(), actualRequest.getNaturalLanguageQueryUnderstandingSpec()); Assert.assertEquals(request.getSearchAsYouTypeSpec(), actualRequest.getSearchAsYouTypeSpec()); + Assert.assertEquals(request.getDisplaySpec(), actualRequest.getDisplaySpec()); + Assert.assertEquals(request.getCrowdingSpecsList(), actualRequest.getCrowdingSpecsList()); Assert.assertEquals(request.getSession(), actualRequest.getSession()); Assert.assertEquals(request.getSessionSpec(), actualRequest.getSessionSpec()); Assert.assertEquals(request.getRelevanceThreshold(), actualRequest.getRelevanceThreshold()); + Assert.assertEquals(request.getRelevanceFilterSpec(), actualRequest.getRelevanceFilterSpec()); Assert.assertEquals(request.getPersonalizationSpec(), actualRequest.getPersonalizationSpec()); + Assert.assertEquals(request.getRelevanceScoreSpec(), actualRequest.getRelevanceScoreSpec()); + Assert.assertEquals(request.getSearchAddonSpec(), actualRequest.getSearchAddonSpec()); + Assert.assertEquals(request.getCustomRankingParams(), actualRequest.getCustomRankingParams()); + Assert.assertEquals(request.getEntity(), actualRequest.getEntity()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -377,12 +424,14 @@ public void searchLiteExceptionTest() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) .setOneBoxPageSize(1988477988) .addAllDataStoreSpecs(new ArrayList()) + .setNumResultsPerDataStore(397658288) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -403,12 +452,19 @@ public void searchLiteExceptionTest() throws Exception { .setNaturalLanguageQueryUnderstandingSpec( SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + .setEntity("entity-1298275357") .build(); client.searchLite(request); Assert.fail("No exception raised"); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClientHttpJsonTest.java index b43e06de3291..acd2a6008f04 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClientHttpJsonTest.java @@ -29,6 +29,7 @@ import com.google.api.gax.rpc.testing.FakeStatusCode; import com.google.cloud.discoveryengine.v1beta.stub.HttpJsonServingConfigServiceStub; import com.google.common.collect.Lists; +import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import java.io.IOException; @@ -78,6 +79,307 @@ public void tearDown() throws Exception { mockService.reset(); } + @Test + public void createServingConfigTest() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setEmbeddingConfig(EmbeddingConfig.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) + .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + + ServingConfig actualResponse = + client.createServingConfig(parent, servingConfig, servingConfigId); + 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 createServingConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createServingConfigTest2() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setEmbeddingConfig(EmbeddingConfig.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) + .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + + ServingConfig actualResponse = + client.createServingConfig(parent, servingConfig, servingConfigId); + 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 createServingConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createServingConfigTest3() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setEmbeddingConfig(EmbeddingConfig.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) + .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-3005/locations/location-3005/dataStores/dataStore-3005"; + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + + ServingConfig actualResponse = + client.createServingConfig(parent, servingConfig, servingConfigId); + 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 createServingConfigExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-3005/locations/location-3005/dataStores/dataStore-3005"; + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteServingConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + + client.deleteServingConfig(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 deleteServingConfigExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + client.deleteServingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteServingConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-387/locations/location-387/dataStores/dataStore-387/servingConfigs/servingConfig-387"; + + client.deleteServingConfig(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 deleteServingConfigExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-387/locations/location-387/dataStores/dataStore-387/servingConfigs/servingConfig-387"; + client.deleteServingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void updateServingConfigTest() throws Exception { ServingConfig expectedResponse = @@ -102,7 +404,9 @@ public void updateServingConfigTest() throws Exception { .addAllDissociateControlIds(new ArrayList()) .addAllReplacementControlIds(new ArrayList()) .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -128,7 +432,9 @@ public void updateServingConfigTest() throws Exception { .addAllDissociateControlIds(new ArrayList()) .addAllReplacementControlIds(new ArrayList()) .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -180,7 +486,9 @@ public void updateServingConfigExceptionTest() throws Exception { .addAllDissociateControlIds(new ArrayList()) .addAllReplacementControlIds(new ArrayList()) .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateServingConfig(servingConfig, updateMask); @@ -214,7 +522,9 @@ public void getServingConfigTest() throws Exception { .addAllDissociateControlIds(new ArrayList()) .addAllReplacementControlIds(new ArrayList()) .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -282,7 +592,9 @@ public void getServingConfigTest2() throws Exception { .addAllDissociateControlIds(new ArrayList()) .addAllReplacementControlIds(new ArrayList()) .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClientTest.java index 361784fa7eb3..c8e5dc38524c 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceClientTest.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.InvalidArgumentException; import com.google.common.collect.Lists; import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import io.grpc.StatusRuntimeException; @@ -84,6 +85,281 @@ public void tearDown() throws Exception { client.close(); } + @Test + public void createServingConfigTest() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setEmbeddingConfig(EmbeddingConfig.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) + .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) + .build(); + mockServingConfigService.addResponse(expectedResponse); + + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + + ServingConfig actualResponse = + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateServingConfigRequest actualRequest = ((CreateServingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(servingConfig, actualRequest.getServingConfig()); + Assert.assertEquals(servingConfigId, actualRequest.getServingConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createServingConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createServingConfigTest2() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setEmbeddingConfig(EmbeddingConfig.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) + .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) + .build(); + mockServingConfigService.addResponse(expectedResponse); + + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + + ServingConfig actualResponse = + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateServingConfigRequest actualRequest = ((CreateServingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(servingConfig, actualRequest.getServingConfig()); + Assert.assertEquals(servingConfigId, actualRequest.getServingConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createServingConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createServingConfigTest3() throws Exception { + ServingConfig expectedResponse = + ServingConfig.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setDisplayName("displayName1714148973") + .setSolutionType(SolutionType.forNumber(0)) + .setModelId("modelId1226956324") + .setDiversityLevel("diversityLevel578206123") + .setEmbeddingConfig(EmbeddingConfig.newBuilder().build()) + .setRankingExpression("rankingExpression2110320494") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllFilterControlIds(new ArrayList()) + .addAllBoostControlIds(new ArrayList()) + .addAllRedirectControlIds(new ArrayList()) + .addAllSynonymsControlIds(new ArrayList()) + .addAllOnewaySynonymsControlIds(new ArrayList()) + .addAllDissociateControlIds(new ArrayList()) + .addAllReplacementControlIds(new ArrayList()) + .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) + .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) + .build(); + mockServingConfigService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + + ServingConfig actualResponse = + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateServingConfigRequest actualRequest = ((CreateServingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(servingConfig, actualRequest.getServingConfig()); + Assert.assertEquals(servingConfigId, actualRequest.getServingConfigId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createServingConfigExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + String parent = "parent-995424086"; + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + client.createServingConfig(parent, servingConfig, servingConfigId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteServingConfigTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockServingConfigService.addResponse(expectedResponse); + + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + + client.deleteServingConfig(name); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteServingConfigRequest actualRequest = ((DeleteServingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteServingConfigExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + client.deleteServingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteServingConfigTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockServingConfigService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteServingConfig(name); + + List actualRequests = mockServingConfigService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteServingConfigRequest actualRequest = ((DeleteServingConfigRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteServingConfigExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockServingConfigService.addException(exception); + + try { + String name = "name3373707"; + client.deleteServingConfig(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void updateServingConfigTest() throws Exception { ServingConfig expectedResponse = @@ -108,7 +384,9 @@ public void updateServingConfigTest() throws Exception { .addAllDissociateControlIds(new ArrayList()) .addAllReplacementControlIds(new ArrayList()) .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) .build(); mockServingConfigService.addResponse(expectedResponse); @@ -169,7 +447,9 @@ public void getServingConfigTest() throws Exception { .addAllDissociateControlIds(new ArrayList()) .addAllReplacementControlIds(new ArrayList()) .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) .build(); mockServingConfigService.addResponse(expectedResponse); @@ -231,7 +511,9 @@ public void getServingConfigTest2() throws Exception { .addAllDissociateControlIds(new ArrayList()) .addAllReplacementControlIds(new ArrayList()) .addAllIgnoreControlIds(new ArrayList()) + .addAllPromoteControlIds(new ArrayList()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setAnswerGenerationSpec(AnswerGenerationSpec.newBuilder().build()) .build(); mockServingConfigService.addResponse(expectedResponse); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SessionServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SessionServiceClientHttpJsonTest.java index b06d4a738555..f8cbd212ac84 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SessionServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SessionServiceClientHttpJsonTest.java @@ -90,9 +90,11 @@ public void createSessionTest() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); @@ -147,9 +149,11 @@ public void createSessionTest2() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); @@ -288,9 +292,11 @@ public void updateSessionTest() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); @@ -303,9 +309,11 @@ public void updateSessionTest() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -344,9 +352,11 @@ public void updateSessionExceptionTest() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateSession(session, updateMask); @@ -367,9 +377,11 @@ public void getSessionTest() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); @@ -424,9 +436,11 @@ public void getSessionTest2() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockService.addResponse(expectedResponse); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SessionServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SessionServiceClientTest.java index 11b92b387b85..9aee70f6ed05 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SessionServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/SessionServiceClientTest.java @@ -96,9 +96,11 @@ public void createSessionTest() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockSessionService.addResponse(expectedResponse); @@ -148,9 +150,11 @@ public void createSessionTest2() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockSessionService.addResponse(expectedResponse); @@ -270,9 +274,11 @@ public void updateSessionTest() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockSessionService.addResponse(expectedResponse); @@ -320,9 +326,11 @@ public void getSessionTest() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockSessionService.addResponse(expectedResponse); @@ -371,9 +379,11 @@ public void getSessionTest2() throws Exception { .setDisplayName("displayName1714148973") .setUserPseudoId("userPseudoId-1155274652") .addAllTurns(new ArrayList()) + .addAllLabels(new ArrayList()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) .setIsPinned(true) + .setPendingAsyncAssistOperationId("pendingAsyncAssistOperationId1460582932") .build(); mockSessionService.addResponse(expectedResponse); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientHttpJsonTest.java index 004c2108a006..5ca0ccae7448 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientHttpJsonTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientHttpJsonTest.java @@ -85,6 +85,7 @@ public void writeUserEventTest() throws Exception { UserEvent expectedResponse = UserEvent.newBuilder() .setEventType("eventType31430900") + .setConversionType("conversionType989646192") .setUserPseudoId("userPseudoId-1155274652") .setEngine( EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) @@ -109,6 +110,8 @@ public void writeUserEventTest() throws Exception { .putAllAttributes(new HashMap()) .setMediaInfo(MediaInfo.newBuilder().build()) .addAllPanels(new ArrayList()) + .setFeedback(Feedback.newBuilder().build()) + .setEntity("entity-1298275357") .build(); mockService.addResponse(expectedResponse); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientTest.java index 345ff1519c90..6c45101dbe1d 100644 --- a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientTest.java +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceClientTest.java @@ -93,6 +93,7 @@ public void writeUserEventTest() throws Exception { UserEvent expectedResponse = UserEvent.newBuilder() .setEventType("eventType31430900") + .setConversionType("conversionType989646192") .setUserPseudoId("userPseudoId-1155274652") .setEngine( EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) @@ -117,6 +118,8 @@ public void writeUserEventTest() throws Exception { .putAllAttributes(new HashMap()) .setMediaInfo(MediaInfo.newBuilder().build()) .addAllPanels(new ArrayList()) + .setFeedback(Feedback.newBuilder().build()) + .setEntity("entity-1298275357") .build(); mockUserEventService.addResponse(expectedResponse); diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..09d6f8604b38 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceClientHttpJsonTest.java @@ -0,0 +1,331 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient.ListUserLicensesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1beta.stub.HttpJsonUserLicenseServiceStub; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.rpc.Status; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class UserLicenseServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static UserLicenseServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonUserLicenseServiceStub.getMethodDescriptors(), + UserLicenseServiceSettings.getDefaultEndpoint()); + UserLicenseServiceSettings settings = + UserLicenseServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + UserLicenseServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = UserLicenseServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listUserLicensesTest() throws Exception { + UserLicense responsesElement = UserLicense.newBuilder().build(); + ListUserLicensesResponse expectedResponse = + ListUserLicensesResponse.newBuilder() + .setNextPageToken("") + .addAllUserLicenses(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + + ListUserLicensesPagedResponse pagedListResponse = client.listUserLicenses(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUserLicensesList().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 listUserLicensesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + client.listUserLicenses(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUserLicensesTest2() throws Exception { + UserLicense responsesElement = UserLicense.newBuilder().build(); + ListUserLicensesResponse expectedResponse = + ListUserLicensesResponse.newBuilder() + .setNextPageToken("") + .addAllUserLicenses(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-3682/locations/location-3682/userStores/userStore-3682"; + + ListUserLicensesPagedResponse pagedListResponse = client.listUserLicenses(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUserLicensesList().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 listUserLicensesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-3682/locations/location-3682/userStores/userStore-3682"; + client.listUserLicenses(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLicenseConfigsUsageStatsTest() throws Exception { + ListLicenseConfigsUsageStatsResponse expectedResponse = + ListLicenseConfigsUsageStatsResponse.newBuilder() + .addAllLicenseConfigUsageStats(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + + ListLicenseConfigsUsageStatsResponse actualResponse = + client.listLicenseConfigsUsageStats(parent); + 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 listLicenseConfigsUsageStatsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + client.listLicenseConfigsUsageStats(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLicenseConfigsUsageStatsTest2() throws Exception { + ListLicenseConfigsUsageStatsResponse expectedResponse = + ListLicenseConfigsUsageStatsResponse.newBuilder() + .addAllLicenseConfigUsageStats(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-3682/locations/location-3682/userStores/userStore-3682"; + + ListLicenseConfigsUsageStatsResponse actualResponse = + client.listLicenseConfigsUsageStats(parent); + 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 listLicenseConfigsUsageStatsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-3682/locations/location-3682/userStores/userStore-3682"; + client.listLicenseConfigsUsageStats(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateUserLicensesTest() throws Exception { + BatchUpdateUserLicensesResponse expectedResponse = + BatchUpdateUserLicensesResponse.newBuilder() + .addAllUserLicenses(new ArrayList()) + .addAllErrorSamples(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchUpdateUserLicensesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + BatchUpdateUserLicensesRequest request = + BatchUpdateUserLicensesRequest.newBuilder() + .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDeleteUnassignedUserLicenses(true) + .build(); + + BatchUpdateUserLicensesResponse actualResponse = + client.batchUpdateUserLicensesAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchUpdateUserLicensesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchUpdateUserLicensesRequest request = + BatchUpdateUserLicensesRequest.newBuilder() + .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDeleteUnassignedUserLicenses(true) + .build(); + client.batchUpdateUserLicensesAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceClientTest.java new file mode 100644 index 000000000000..32d37045c259 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceClientTest.java @@ -0,0 +1,317 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient.ListUserLicensesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +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.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.rpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +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; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class UserLicenseServiceClientTest { + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockUserLicenseService mockUserLicenseService; + private LocalChannelProvider channelProvider; + private UserLicenseServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockUserLicenseService = new MockUserLicenseService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockUserLicenseService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + UserLicenseServiceSettings settings = + UserLicenseServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = UserLicenseServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listUserLicensesTest() throws Exception { + UserLicense responsesElement = UserLicense.newBuilder().build(); + ListUserLicensesResponse expectedResponse = + ListUserLicensesResponse.newBuilder() + .setNextPageToken("") + .addAllUserLicenses(Arrays.asList(responsesElement)) + .build(); + mockUserLicenseService.addResponse(expectedResponse); + + UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + + ListUserLicensesPagedResponse pagedListResponse = client.listUserLicenses(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUserLicensesList().get(0), resources.get(0)); + + List actualRequests = mockUserLicenseService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListUserLicensesRequest actualRequest = ((ListUserLicensesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listUserLicensesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockUserLicenseService.addException(exception); + + try { + UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + client.listUserLicenses(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listUserLicensesTest2() throws Exception { + UserLicense responsesElement = UserLicense.newBuilder().build(); + ListUserLicensesResponse expectedResponse = + ListUserLicensesResponse.newBuilder() + .setNextPageToken("") + .addAllUserLicenses(Arrays.asList(responsesElement)) + .build(); + mockUserLicenseService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListUserLicensesPagedResponse pagedListResponse = client.listUserLicenses(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getUserLicensesList().get(0), resources.get(0)); + + List actualRequests = mockUserLicenseService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListUserLicensesRequest actualRequest = ((ListUserLicensesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listUserLicensesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockUserLicenseService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listUserLicenses(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLicenseConfigsUsageStatsTest() throws Exception { + ListLicenseConfigsUsageStatsResponse expectedResponse = + ListLicenseConfigsUsageStatsResponse.newBuilder() + .addAllLicenseConfigUsageStats(new ArrayList()) + .build(); + mockUserLicenseService.addResponse(expectedResponse); + + UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + + ListLicenseConfigsUsageStatsResponse actualResponse = + client.listLicenseConfigsUsageStats(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockUserLicenseService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLicenseConfigsUsageStatsRequest actualRequest = + ((ListLicenseConfigsUsageStatsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLicenseConfigsUsageStatsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockUserLicenseService.addException(exception); + + try { + UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + client.listLicenseConfigsUsageStats(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLicenseConfigsUsageStatsTest2() throws Exception { + ListLicenseConfigsUsageStatsResponse expectedResponse = + ListLicenseConfigsUsageStatsResponse.newBuilder() + .addAllLicenseConfigUsageStats(new ArrayList()) + .build(); + mockUserLicenseService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListLicenseConfigsUsageStatsResponse actualResponse = + client.listLicenseConfigsUsageStats(parent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockUserLicenseService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLicenseConfigsUsageStatsRequest actualRequest = + ((ListLicenseConfigsUsageStatsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLicenseConfigsUsageStatsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockUserLicenseService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listLicenseConfigsUsageStats(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateUserLicensesTest() throws Exception { + BatchUpdateUserLicensesResponse expectedResponse = + BatchUpdateUserLicensesResponse.newBuilder() + .addAllUserLicenses(new ArrayList()) + .addAllErrorSamples(new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("batchUpdateUserLicensesTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockUserLicenseService.addResponse(resultOperation); + + BatchUpdateUserLicensesRequest request = + BatchUpdateUserLicensesRequest.newBuilder() + .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDeleteUnassignedUserLicenses(true) + .build(); + + BatchUpdateUserLicensesResponse actualResponse = + client.batchUpdateUserLicensesAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockUserLicenseService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchUpdateUserLicensesRequest actualRequest = + ((BatchUpdateUserLicensesRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getInlineSource(), actualRequest.getInlineSource()); + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals( + request.getDeleteUnassignedUserLicenses(), actualRequest.getDeleteUnassignedUserLicenses()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchUpdateUserLicensesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockUserLicenseService.addException(exception); + + try { + BatchUpdateUserLicensesRequest request = + BatchUpdateUserLicensesRequest.newBuilder() + .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDeleteUnassignedUserLicenses(true) + .build(); + client.batchUpdateUserLicensesAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } +} diff --git a/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceClientHttpJsonTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..dc675ccdc323 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceClientHttpJsonTest.java @@ -0,0 +1,239 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.discoveryengine.v1beta.stub.HttpJsonUserStoreServiceStub; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class UserStoreServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static UserStoreServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonUserStoreServiceStub.getMethodDescriptors(), + UserStoreServiceSettings.getDefaultEndpoint()); + UserStoreServiceSettings settings = + UserStoreServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + UserStoreServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = UserStoreServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getUserStoreTest() throws Exception { + UserStore expectedResponse = + UserStore.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDisplayName("displayName1714148973") + .setDefaultLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setEnableLicenseAutoRegister(true) + .setEnableExpiredLicenseAutoUpdate(true) + .build(); + mockService.addResponse(expectedResponse); + + UserStoreName name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + + UserStore actualResponse = client.getUserStore(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 getUserStoreExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UserStoreName name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + client.getUserStore(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUserStoreTest2() throws Exception { + UserStore expectedResponse = + UserStore.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDisplayName("displayName1714148973") + .setDefaultLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setEnableLicenseAutoRegister(true) + .setEnableExpiredLicenseAutoUpdate(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5651/locations/location-5651/userStores/userStore-5651"; + + UserStore actualResponse = client.getUserStore(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 getUserStoreExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5651/locations/location-5651/userStores/userStore-5651"; + client.getUserStore(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateUserStoreTest() throws Exception { + UserStore expectedResponse = + UserStore.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDisplayName("displayName1714148973") + .setDefaultLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setEnableLicenseAutoRegister(true) + .setEnableExpiredLicenseAutoUpdate(true) + .build(); + mockService.addResponse(expectedResponse); + + UserStore userStore = + UserStore.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDisplayName("displayName1714148973") + .setDefaultLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setEnableLicenseAutoRegister(true) + .setEnableExpiredLicenseAutoUpdate(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + UserStore actualResponse = client.updateUserStore(userStore, 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 updateUserStoreExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UserStore userStore = + UserStore.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDisplayName("displayName1714148973") + .setDefaultLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setEnableLicenseAutoRegister(true) + .setEnableExpiredLicenseAutoUpdate(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateUserStore(userStore, updateMask); + 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/v1beta/UserStoreServiceClientTest.java b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceClientTest.java new file mode 100644 index 000000000000..5b273bcddfe5 --- /dev/null +++ b/java-discoveryengine/google-cloud-discoveryengine/src/test/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceClientTest.java @@ -0,0 +1,213 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +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.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.FieldMask; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class UserStoreServiceClientTest { + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private static MockUserStoreService mockUserStoreService; + private LocalChannelProvider channelProvider; + private UserStoreServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockUserStoreService = new MockUserStoreService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockUserStoreService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + UserStoreServiceSettings settings = + UserStoreServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = UserStoreServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getUserStoreTest() throws Exception { + UserStore expectedResponse = + UserStore.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDisplayName("displayName1714148973") + .setDefaultLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setEnableLicenseAutoRegister(true) + .setEnableExpiredLicenseAutoUpdate(true) + .build(); + mockUserStoreService.addResponse(expectedResponse); + + UserStoreName name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + + UserStore actualResponse = client.getUserStore(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockUserStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetUserStoreRequest actualRequest = ((GetUserStoreRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getUserStoreExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockUserStoreService.addException(exception); + + try { + UserStoreName name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + client.getUserStore(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUserStoreTest2() throws Exception { + UserStore expectedResponse = + UserStore.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDisplayName("displayName1714148973") + .setDefaultLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setEnableLicenseAutoRegister(true) + .setEnableExpiredLicenseAutoUpdate(true) + .build(); + mockUserStoreService.addResponse(expectedResponse); + + String name = "name3373707"; + + UserStore actualResponse = client.getUserStore(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockUserStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetUserStoreRequest actualRequest = ((GetUserStoreRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getUserStoreExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockUserStoreService.addException(exception); + + try { + String name = "name3373707"; + client.getUserStore(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateUserStoreTest() throws Exception { + UserStore expectedResponse = + UserStore.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDisplayName("displayName1714148973") + .setDefaultLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setEnableLicenseAutoRegister(true) + .setEnableExpiredLicenseAutoUpdate(true) + .build(); + mockUserStoreService.addResponse(expectedResponse); + + UserStore userStore = UserStore.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + UserStore actualResponse = client.updateUserStore(userStore, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockUserStoreService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateUserStoreRequest actualRequest = ((UpdateUserStoreRequest) actualRequests.get(0)); + + Assert.assertEquals(userStore, actualRequest.getUserStore()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateUserStoreExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockUserStoreService.addException(exception); + + try { + UserStore userStore = UserStore.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateUserStore(userStore, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceGrpc.java new file mode 100644 index 000000000000..38f592619e30 --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceGrpc.java @@ -0,0 +1,569 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
            + * Service for managing Acl Configuration.
            + * 
            + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class AclConfigServiceGrpc { + + private AclConfigServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1beta.AclConfigService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest, + com.google.cloud.discoveryengine.v1beta.AclConfig> + getUpdateAclConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAclConfig", + requestType = com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.AclConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest, + com.google.cloud.discoveryengine.v1beta.AclConfig> + getUpdateAclConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest, + com.google.cloud.discoveryengine.v1beta.AclConfig> + getUpdateAclConfigMethod; + if ((getUpdateAclConfigMethod = AclConfigServiceGrpc.getUpdateAclConfigMethod) == null) { + synchronized (AclConfigServiceGrpc.class) { + if ((getUpdateAclConfigMethod = AclConfigServiceGrpc.getUpdateAclConfigMethod) == null) { + AclConfigServiceGrpc.getUpdateAclConfigMethod = + getUpdateAclConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAclConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.AclConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new AclConfigServiceMethodDescriptorSupplier("UpdateAclConfig")) + .build(); + } + } + } + return getUpdateAclConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest, + com.google.cloud.discoveryengine.v1beta.AclConfig> + getGetAclConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAclConfig", + requestType = com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.AclConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest, + com.google.cloud.discoveryengine.v1beta.AclConfig> + getGetAclConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest, + com.google.cloud.discoveryengine.v1beta.AclConfig> + getGetAclConfigMethod; + if ((getGetAclConfigMethod = AclConfigServiceGrpc.getGetAclConfigMethod) == null) { + synchronized (AclConfigServiceGrpc.class) { + if ((getGetAclConfigMethod = AclConfigServiceGrpc.getGetAclConfigMethod) == null) { + AclConfigServiceGrpc.getGetAclConfigMethod = + getGetAclConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAclConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.AclConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new AclConfigServiceMethodDescriptorSupplier("GetAclConfig")) + .build(); + } + } + } + return getGetAclConfigMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AclConfigServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AclConfigServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceStub(channel, callOptions); + } + }; + return AclConfigServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static AclConfigServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AclConfigServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceBlockingV2Stub(channel, callOptions); + } + }; + return AclConfigServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AclConfigServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AclConfigServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceBlockingStub(channel, callOptions); + } + }; + return AclConfigServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AclConfigServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AclConfigServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceFutureStub(channel, callOptions); + } + }; + return AclConfigServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
            +   * Service for managing Acl Configuration.
            +   * 
            + */ + public interface AsyncService { + + /** + * + * + *
            +     * Default ACL configuration for use in a location of a customer's project.
            +     * Updates will only reflect to new data stores. Existing data stores will
            +     * still use the old value.
            +     * 
            + */ + default void updateAclConfig( + com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAclConfigMethod(), responseObserver); + } + + /** + * + * + *
            +     * Gets the [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig].
            +     * 
            + */ + default void getAclConfig( + com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAclConfigMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AclConfigService. + * + *
            +   * Service for managing Acl Configuration.
            +   * 
            + */ + public abstract static class AclConfigServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AclConfigServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AclConfigService. + * + *
            +   * Service for managing Acl Configuration.
            +   * 
            + */ + public static final class AclConfigServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AclConfigServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AclConfigServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceStub(channel, callOptions); + } + + /** + * + * + *
            +     * Default ACL configuration for use in a location of a customer's project.
            +     * Updates will only reflect to new data stores. Existing data stores will
            +     * still use the old value.
            +     * 
            + */ + public void updateAclConfig( + com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAclConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Gets the [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig].
            +     * 
            + */ + public void getAclConfig( + com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAclConfigMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AclConfigService. + * + *
            +   * Service for managing Acl Configuration.
            +   * 
            + */ + public static final class AclConfigServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private AclConfigServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AclConfigServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
            +     * Default ACL configuration for use in a location of a customer's project.
            +     * Updates will only reflect to new data stores. Existing data stores will
            +     * still use the old value.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.AclConfig updateAclConfig( + com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAclConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets the [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig].
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.AclConfig getAclConfig( + com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAclConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service AclConfigService. + * + *
            +   * Service for managing Acl Configuration.
            +   * 
            + */ + public static final class AclConfigServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AclConfigServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AclConfigServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
            +     * Default ACL configuration for use in a location of a customer's project.
            +     * Updates will only reflect to new data stores. Existing data stores will
            +     * still use the old value.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.AclConfig updateAclConfig( + com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAclConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets the [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig].
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.AclConfig getAclConfig( + com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAclConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AclConfigService. + * + *
            +   * Service for managing Acl Configuration.
            +   * 
            + */ + public static final class AclConfigServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AclConfigServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AclConfigServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AclConfigServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
            +     * Default ACL configuration for use in a location of a customer's project.
            +     * Updates will only reflect to new data stores. Existing data stores will
            +     * still use the old value.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.AclConfig> + updateAclConfig(com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAclConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Gets the [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig].
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.AclConfig> + getAclConfig(com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAclConfigMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_UPDATE_ACL_CONFIG = 0; + private static final int METHODID_GET_ACL_CONFIG = 1; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_UPDATE_ACL_CONFIG: + serviceImpl.updateAclConfig( + (com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_ACL_CONFIG: + serviceImpl.getAclConfig( + (com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getUpdateAclConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest, + com.google.cloud.discoveryengine.v1beta.AclConfig>( + service, METHODID_UPDATE_ACL_CONFIG))) + .addMethod( + getGetAclConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest, + com.google.cloud.discoveryengine.v1beta.AclConfig>( + service, METHODID_GET_ACL_CONFIG))) + .build(); + } + + private abstract static class AclConfigServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AclConfigServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AclConfigServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AclConfigService"); + } + } + + private static final class AclConfigServiceFileDescriptorSupplier + extends AclConfigServiceBaseDescriptorSupplier { + AclConfigServiceFileDescriptorSupplier() {} + } + + private static final class AclConfigServiceMethodDescriptorSupplier + extends AclConfigServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AclConfigServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AclConfigServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AclConfigServiceFileDescriptorSupplier()) + .addMethod(getUpdateAclConfigMethod()) + .addMethod(getGetAclConfigMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceGrpc.java new file mode 100644 index 000000000000..5ab41a1ba47f --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceGrpc.java @@ -0,0 +1,1085 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
            + * Service for managing Assistant configuration and assisting users.
            + * 
            + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class AssistantServiceGrpc { + + private AssistantServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1beta.AssistantService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse> + getStreamAssistMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamAssist", + requestType = com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse> + getStreamAssistMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse> + getStreamAssistMethod; + if ((getStreamAssistMethod = AssistantServiceGrpc.getStreamAssistMethod) == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getStreamAssistMethod = AssistantServiceGrpc.getStreamAssistMethod) == null) { + AssistantServiceGrpc.getStreamAssistMethod = + getStreamAssistMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamAssist")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("StreamAssist")) + .build(); + } + } + } + return getStreamAssistMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest, + com.google.cloud.discoveryengine.v1beta.Assistant> + getCreateAssistantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAssistant", + requestType = com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.Assistant.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest, + com.google.cloud.discoveryengine.v1beta.Assistant> + getCreateAssistantMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest, + com.google.cloud.discoveryengine.v1beta.Assistant> + getCreateAssistantMethod; + if ((getCreateAssistantMethod = AssistantServiceGrpc.getCreateAssistantMethod) == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getCreateAssistantMethod = AssistantServiceGrpc.getCreateAssistantMethod) == null) { + AssistantServiceGrpc.getCreateAssistantMethod = + getCreateAssistantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAssistant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.Assistant + .getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("CreateAssistant")) + .build(); + } + } + } + return getCreateAssistantMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest, com.google.protobuf.Empty> + getDeleteAssistantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAssistant", + requestType = com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest, com.google.protobuf.Empty> + getDeleteAssistantMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest, + com.google.protobuf.Empty> + getDeleteAssistantMethod; + if ((getDeleteAssistantMethod = AssistantServiceGrpc.getDeleteAssistantMethod) == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getDeleteAssistantMethod = AssistantServiceGrpc.getDeleteAssistantMethod) == null) { + AssistantServiceGrpc.getDeleteAssistantMethod = + getDeleteAssistantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAssistant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("DeleteAssistant")) + .build(); + } + } + } + return getDeleteAssistantMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest, + com.google.cloud.discoveryengine.v1beta.Assistant> + getUpdateAssistantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAssistant", + requestType = com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.Assistant.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest, + com.google.cloud.discoveryengine.v1beta.Assistant> + getUpdateAssistantMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest, + com.google.cloud.discoveryengine.v1beta.Assistant> + getUpdateAssistantMethod; + if ((getUpdateAssistantMethod = AssistantServiceGrpc.getUpdateAssistantMethod) == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getUpdateAssistantMethod = AssistantServiceGrpc.getUpdateAssistantMethod) == null) { + AssistantServiceGrpc.getUpdateAssistantMethod = + getUpdateAssistantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAssistant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.Assistant + .getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("UpdateAssistant")) + .build(); + } + } + } + return getUpdateAssistantMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetAssistantRequest, + com.google.cloud.discoveryengine.v1beta.Assistant> + getGetAssistantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAssistant", + requestType = com.google.cloud.discoveryengine.v1beta.GetAssistantRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.Assistant.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetAssistantRequest, + com.google.cloud.discoveryengine.v1beta.Assistant> + getGetAssistantMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetAssistantRequest, + com.google.cloud.discoveryengine.v1beta.Assistant> + getGetAssistantMethod; + if ((getGetAssistantMethod = AssistantServiceGrpc.getGetAssistantMethod) == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getGetAssistantMethod = AssistantServiceGrpc.getGetAssistantMethod) == null) { + AssistantServiceGrpc.getGetAssistantMethod = + getGetAssistantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAssistant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.GetAssistantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.Assistant + .getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("GetAssistant")) + .build(); + } + } + } + return getGetAssistantMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest, + com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse> + getListAssistantsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAssistants", + requestType = com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest, + com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse> + getListAssistantsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest, + com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse> + getListAssistantsMethod; + if ((getListAssistantsMethod = AssistantServiceGrpc.getListAssistantsMethod) == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getListAssistantsMethod = AssistantServiceGrpc.getListAssistantsMethod) == null) { + AssistantServiceGrpc.getListAssistantsMethod = + getListAssistantsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAssistants")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("ListAssistants")) + .build(); + } + } + } + return getListAssistantsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AssistantServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssistantServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceStub(channel, callOptions); + } + }; + return AssistantServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static AssistantServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssistantServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceBlockingV2Stub(channel, callOptions); + } + }; + return AssistantServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AssistantServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssistantServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceBlockingStub(channel, callOptions); + } + }; + return AssistantServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AssistantServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssistantServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceFutureStub(channel, callOptions); + } + }; + return AssistantServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
            +   * Service for managing Assistant configuration and assisting users.
            +   * 
            + */ + public interface AsyncService { + + /** + * + * + *
            +     * Assists the user with a query in a streaming fashion.
            +     * 
            + */ + default void streamAssist( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStreamAssistMethod(), responseObserver); + } + + /** + * + * + *
            +     * Creates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
            +     * 
            + */ + default void createAssistant( + com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAssistantMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
            +     * 
            + */ + default void deleteAssistant( + com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAssistantMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]
            +     * 
            + */ + default void updateAssistant( + com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAssistantMethod(), responseObserver); + } + + /** + * + * + *
            +     * Gets an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
            +     * 
            + */ + default void getAssistant( + com.google.cloud.discoveryengine.v1beta.GetAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAssistantMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists all [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s under
            +     * an [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * 
            + */ + default void listAssistants( + com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAssistantsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AssistantService. + * + *
            +   * Service for managing Assistant configuration and assisting users.
            +   * 
            + */ + public abstract static class AssistantServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AssistantServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AssistantService. + * + *
            +   * Service for managing Assistant configuration and assisting users.
            +   * 
            + */ + public static final class AssistantServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AssistantServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssistantServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceStub(channel, callOptions); + } + + /** + * + * + *
            +     * Assists the user with a query in a streaming fashion.
            +     * 
            + */ + public void streamAssist( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getStreamAssistMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Creates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
            +     * 
            + */ + public void createAssistant( + com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAssistantMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
            +     * 
            + */ + public void deleteAssistant( + com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAssistantMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Updates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]
            +     * 
            + */ + public void updateAssistant( + com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAssistantMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Gets an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
            +     * 
            + */ + public void getAssistant( + com.google.cloud.discoveryengine.v1beta.GetAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAssistantMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Lists all [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s under
            +     * an [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * 
            + */ + public void listAssistants( + com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAssistantsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AssistantService. + * + *
            +   * Service for managing Assistant configuration and assisting users.
            +   * 
            + */ + public static final class AssistantServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private AssistantServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssistantServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
            +     * Assists the user with a query in a streaming fashion.
            +     * 
            + */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + ?, com.google.cloud.discoveryengine.v1beta.StreamAssistResponse> + streamAssist(com.google.cloud.discoveryengine.v1beta.StreamAssistRequest request) { + return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( + getChannel(), getStreamAssistMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.Assistant createAssistant( + com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
            +     * 
            + */ + public com.google.protobuf.Empty deleteAssistant( + com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.Assistant updateAssistant( + com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.Assistant getAssistant( + com.google.cloud.discoveryengine.v1beta.GetAssistantRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists all [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s under
            +     * an [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse listAssistants( + com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAssistantsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service AssistantService. + * + *
            +   * Service for managing Assistant configuration and assisting users.
            +   * 
            + */ + public static final class AssistantServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AssistantServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssistantServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
            +     * Assists the user with a query in a streaming fashion.
            +     * 
            + */ + public java.util.Iterator + streamAssist(com.google.cloud.discoveryengine.v1beta.StreamAssistRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getStreamAssistMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.Assistant createAssistant( + com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
            +     * 
            + */ + public com.google.protobuf.Empty deleteAssistant( + com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.Assistant updateAssistant( + com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.Assistant getAssistant( + com.google.cloud.discoveryengine.v1beta.GetAssistantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists all [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s under
            +     * an [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse listAssistants( + com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAssistantsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AssistantService. + * + *
            +   * Service for managing Assistant configuration and assisting users.
            +   * 
            + */ + public static final class AssistantServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AssistantServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssistantServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
            +     * Creates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.Assistant> + createAssistant(com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAssistantMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Deletes an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + deleteAssistant(com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAssistantMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Updates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.Assistant> + updateAssistant(com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAssistantMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Gets an [Assistant][google.cloud.discoveryengine.v1beta.Assistant].
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.Assistant> + getAssistant(com.google.cloud.discoveryengine.v1beta.GetAssistantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAssistantMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Lists all [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s under
            +     * an [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse> + listAssistants(com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAssistantsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_STREAM_ASSIST = 0; + private static final int METHODID_CREATE_ASSISTANT = 1; + private static final int METHODID_DELETE_ASSISTANT = 2; + private static final int METHODID_UPDATE_ASSISTANT = 3; + private static final int METHODID_GET_ASSISTANT = 4; + private static final int METHODID_LIST_ASSISTANTS = 5; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_STREAM_ASSIST: + serviceImpl.streamAssist( + (com.google.cloud.discoveryengine.v1beta.StreamAssistRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse>) + responseObserver); + break; + case METHODID_CREATE_ASSISTANT: + serviceImpl.createAssistant( + (com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_ASSISTANT: + serviceImpl.deleteAssistant( + (com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ASSISTANT: + serviceImpl.updateAssistant( + (com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_ASSISTANT: + serviceImpl.getAssistant( + (com.google.cloud.discoveryengine.v1beta.GetAssistantRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ASSISTANTS: + serviceImpl.listAssistants( + (com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getStreamAssistMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse>( + service, METHODID_STREAM_ASSIST))) + .addMethod( + getCreateAssistantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest, + com.google.cloud.discoveryengine.v1beta.Assistant>( + service, METHODID_CREATE_ASSISTANT))) + .addMethod( + getDeleteAssistantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_ASSISTANT))) + .addMethod( + getUpdateAssistantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest, + com.google.cloud.discoveryengine.v1beta.Assistant>( + service, METHODID_UPDATE_ASSISTANT))) + .addMethod( + getGetAssistantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.GetAssistantRequest, + com.google.cloud.discoveryengine.v1beta.Assistant>( + service, METHODID_GET_ASSISTANT))) + .addMethod( + getListAssistantsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest, + com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse>( + service, METHODID_LIST_ASSISTANTS))) + .build(); + } + + private abstract static class AssistantServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AssistantServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AssistantService"); + } + } + + private static final class AssistantServiceFileDescriptorSupplier + extends AssistantServiceBaseDescriptorSupplier { + AssistantServiceFileDescriptorSupplier() {} + } + + private static final class AssistantServiceMethodDescriptorSupplier + extends AssistantServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AssistantServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AssistantServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AssistantServiceFileDescriptorSupplier()) + .addMethod(getStreamAssistMethod()) + .addMethod(getCreateAssistantMethod()) + .addMethod(getDeleteAssistantMethod()) + .addMethod(getUpdateAssistantMethod()) + .addMethod(getGetAssistantMethod()) + .addMethod(getListAssistantsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceGrpc.java new file mode 100644 index 000000000000..9a7df01bcff1 --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceGrpc.java @@ -0,0 +1,840 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
            + * Service for managing CMEK related tasks
            + * 
            + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class CmekConfigServiceGrpc { + + private CmekConfigServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1beta.CmekConfigService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest, + com.google.longrunning.Operation> + getUpdateCmekConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCmekConfig", + requestType = com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest, + com.google.longrunning.Operation> + getUpdateCmekConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest, + com.google.longrunning.Operation> + getUpdateCmekConfigMethod; + if ((getUpdateCmekConfigMethod = CmekConfigServiceGrpc.getUpdateCmekConfigMethod) == null) { + synchronized (CmekConfigServiceGrpc.class) { + if ((getUpdateCmekConfigMethod = CmekConfigServiceGrpc.getUpdateCmekConfigMethod) == null) { + CmekConfigServiceGrpc.getUpdateCmekConfigMethod = + getUpdateCmekConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCmekConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CmekConfigServiceMethodDescriptorSupplier("UpdateCmekConfig")) + .build(); + } + } + } + return getUpdateCmekConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest, + com.google.cloud.discoveryengine.v1beta.CmekConfig> + getGetCmekConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCmekConfig", + requestType = com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.CmekConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest, + com.google.cloud.discoveryengine.v1beta.CmekConfig> + getGetCmekConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest, + com.google.cloud.discoveryengine.v1beta.CmekConfig> + getGetCmekConfigMethod; + if ((getGetCmekConfigMethod = CmekConfigServiceGrpc.getGetCmekConfigMethod) == null) { + synchronized (CmekConfigServiceGrpc.class) { + if ((getGetCmekConfigMethod = CmekConfigServiceGrpc.getGetCmekConfigMethod) == null) { + CmekConfigServiceGrpc.getGetCmekConfigMethod = + getGetCmekConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCmekConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.CmekConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new CmekConfigServiceMethodDescriptorSupplier("GetCmekConfig")) + .build(); + } + } + } + return getGetCmekConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest, + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse> + getListCmekConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCmekConfigs", + requestType = com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest, + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse> + getListCmekConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest, + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse> + getListCmekConfigsMethod; + if ((getListCmekConfigsMethod = CmekConfigServiceGrpc.getListCmekConfigsMethod) == null) { + synchronized (CmekConfigServiceGrpc.class) { + if ((getListCmekConfigsMethod = CmekConfigServiceGrpc.getListCmekConfigsMethod) == null) { + CmekConfigServiceGrpc.getListCmekConfigsMethod = + getListCmekConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCmekConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CmekConfigServiceMethodDescriptorSupplier("ListCmekConfigs")) + .build(); + } + } + } + return getListCmekConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest, + com.google.longrunning.Operation> + getDeleteCmekConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCmekConfig", + requestType = com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest, + com.google.longrunning.Operation> + getDeleteCmekConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest, + com.google.longrunning.Operation> + getDeleteCmekConfigMethod; + if ((getDeleteCmekConfigMethod = CmekConfigServiceGrpc.getDeleteCmekConfigMethod) == null) { + synchronized (CmekConfigServiceGrpc.class) { + if ((getDeleteCmekConfigMethod = CmekConfigServiceGrpc.getDeleteCmekConfigMethod) == null) { + CmekConfigServiceGrpc.getDeleteCmekConfigMethod = + getDeleteCmekConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCmekConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new CmekConfigServiceMethodDescriptorSupplier("DeleteCmekConfig")) + .build(); + } + } + } + return getDeleteCmekConfigMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static CmekConfigServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CmekConfigServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CmekConfigServiceStub(channel, callOptions); + } + }; + return CmekConfigServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static CmekConfigServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CmekConfigServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CmekConfigServiceBlockingV2Stub(channel, callOptions); + } + }; + return CmekConfigServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static CmekConfigServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CmekConfigServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CmekConfigServiceBlockingStub(channel, callOptions); + } + }; + return CmekConfigServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static CmekConfigServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public CmekConfigServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CmekConfigServiceFutureStub(channel, callOptions); + } + }; + return CmekConfigServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
            +   * Service for managing CMEK related tasks
            +   * 
            + */ + public interface AsyncService { + + /** + * + * + *
            +     * Provisions a CMEK key for use in a location of a customer's project.
            +     * This method will also conduct location validation on the provided
            +     * cmekConfig to make sure the key is valid and can be used in the
            +     * selected location.
            +     * 
            + */ + default void updateCmekConfig( + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCmekConfigMethod(), responseObserver); + } + + /** + * + * + *
            +     * Gets the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig].
            +     * 
            + */ + default void getCmekConfig( + com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCmekConfigMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists all the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s
            +     * with the project.
            +     * 
            + */ + default void listCmekConfigs( + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCmekConfigsMethod(), responseObserver); + } + + /** + * + * + *
            +     * De-provisions a CmekConfig.
            +     * 
            + */ + default void deleteCmekConfig( + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteCmekConfigMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service CmekConfigService. + * + *
            +   * Service for managing CMEK related tasks
            +   * 
            + */ + public abstract static class CmekConfigServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return CmekConfigServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service CmekConfigService. + * + *
            +   * Service for managing CMEK related tasks
            +   * 
            + */ + public static final class CmekConfigServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private CmekConfigServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CmekConfigServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CmekConfigServiceStub(channel, callOptions); + } + + /** + * + * + *
            +     * Provisions a CMEK key for use in a location of a customer's project.
            +     * This method will also conduct location validation on the provided
            +     * cmekConfig to make sure the key is valid and can be used in the
            +     * selected location.
            +     * 
            + */ + public void updateCmekConfig( + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCmekConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Gets the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig].
            +     * 
            + */ + public void getCmekConfig( + com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCmekConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Lists all the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s
            +     * with the project.
            +     * 
            + */ + public void listCmekConfigs( + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCmekConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * De-provisions a CmekConfig.
            +     * 
            + */ + public void deleteCmekConfig( + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCmekConfigMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service CmekConfigService. + * + *
            +   * Service for managing CMEK related tasks
            +   * 
            + */ + public static final class CmekConfigServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private CmekConfigServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CmekConfigServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CmekConfigServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
            +     * Provisions a CMEK key for use in a location of a customer's project.
            +     * This method will also conduct location validation on the provided
            +     * cmekConfig to make sure the key is valid and can be used in the
            +     * selected location.
            +     * 
            + */ + public com.google.longrunning.Operation updateCmekConfig( + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateCmekConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig].
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.CmekConfig getCmekConfig( + com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetCmekConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists all the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s
            +     * with the project.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse listCmekConfigs( + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListCmekConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * De-provisions a CmekConfig.
            +     * 
            + */ + public com.google.longrunning.Operation deleteCmekConfig( + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteCmekConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service CmekConfigService. + * + *
            +   * Service for managing CMEK related tasks
            +   * 
            + */ + public static final class CmekConfigServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private CmekConfigServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CmekConfigServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CmekConfigServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
            +     * Provisions a CMEK key for use in a location of a customer's project.
            +     * This method will also conduct location validation on the provided
            +     * cmekConfig to make sure the key is valid and can be used in the
            +     * selected location.
            +     * 
            + */ + public com.google.longrunning.Operation updateCmekConfig( + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCmekConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig].
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.CmekConfig getCmekConfig( + com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCmekConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists all the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s
            +     * with the project.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse listCmekConfigs( + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCmekConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * De-provisions a CmekConfig.
            +     * 
            + */ + public com.google.longrunning.Operation deleteCmekConfig( + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCmekConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service CmekConfigService. + * + *
            +   * Service for managing CMEK related tasks
            +   * 
            + */ + public static final class CmekConfigServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private CmekConfigServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected CmekConfigServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new CmekConfigServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
            +     * Provisions a CMEK key for use in a location of a customer's project.
            +     * This method will also conduct location validation on the provided
            +     * cmekConfig to make sure the key is valid and can be used in the
            +     * selected location.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + updateCmekConfig(com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCmekConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Gets the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig].
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.CmekConfig> + getCmekConfig(com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCmekConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Lists all the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s
            +     * with the project.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse> + listCmekConfigs(com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCmekConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * De-provisions a CmekConfig.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + deleteCmekConfig(com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCmekConfigMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_UPDATE_CMEK_CONFIG = 0; + private static final int METHODID_GET_CMEK_CONFIG = 1; + private static final int METHODID_LIST_CMEK_CONFIGS = 2; + private static final int METHODID_DELETE_CMEK_CONFIG = 3; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_UPDATE_CMEK_CONFIG: + serviceImpl.updateCmekConfig( + (com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CMEK_CONFIG: + serviceImpl.getCmekConfig( + (com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CMEK_CONFIGS: + serviceImpl.listCmekConfigs( + (com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse>) + responseObserver); + break; + case METHODID_DELETE_CMEK_CONFIG: + serviceImpl.deleteCmekConfig( + (com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getUpdateCmekConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_CMEK_CONFIG))) + .addMethod( + getGetCmekConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest, + com.google.cloud.discoveryengine.v1beta.CmekConfig>( + service, METHODID_GET_CMEK_CONFIG))) + .addMethod( + getListCmekConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest, + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse>( + service, METHODID_LIST_CMEK_CONFIGS))) + .addMethod( + getDeleteCmekConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_CMEK_CONFIG))) + .build(); + } + + private abstract static class CmekConfigServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + CmekConfigServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("CmekConfigService"); + } + } + + private static final class CmekConfigServiceFileDescriptorSupplier + extends CmekConfigServiceBaseDescriptorSupplier { + CmekConfigServiceFileDescriptorSupplier() {} + } + + private static final class CmekConfigServiceMethodDescriptorSupplier + extends CmekConfigServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + CmekConfigServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (CmekConfigServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new CmekConfigServiceFileDescriptorSupplier()) + .addMethod(getUpdateCmekConfigMethod()) + .addMethod(getGetCmekConfigMethod()) + .addMethod(getListCmekConfigsMethod()) + .addMethod(getDeleteCmekConfigMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceGrpc.java index 84969a0e9493..80927cd5769c 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceGrpc.java @@ -343,6 +343,53 @@ private CompletionServiceGrpc() {} return getPurgeCompletionSuggestionsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest, + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse> + getRemoveSuggestionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RemoveSuggestion", + requestType = com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest, + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse> + getRemoveSuggestionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest, + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse> + getRemoveSuggestionMethod; + if ((getRemoveSuggestionMethod = CompletionServiceGrpc.getRemoveSuggestionMethod) == null) { + synchronized (CompletionServiceGrpc.class) { + if ((getRemoveSuggestionMethod = CompletionServiceGrpc.getRemoveSuggestionMethod) == null) { + CompletionServiceGrpc.getRemoveSuggestionMethod = + getRemoveSuggestionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveSuggestion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new CompletionServiceMethodDescriptorSupplier("RemoveSuggestion")) + .build(); + } + } + } + return getRemoveSuggestionMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static CompletionServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -500,6 +547,26 @@ default void purgeCompletionSuggestions( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getPurgeCompletionSuggestionsMethod(), responseObserver); } + + /** + * + * + *
            +     * Removes the search history suggestion in an engine for a user. This will
            +     * remove the suggestion from being returned in the
            +     * [AdvancedCompleteQueryResponse.recent_search_suggestions][google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.recent_search_suggestions]
            +     * for this user. If the user searches the same suggestion again, the new
            +     * history will override and suggest this suggestion again.
            +     * 
            + */ + default void removeSuggestion( + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRemoveSuggestionMethod(), responseObserver); + } } /** @@ -643,6 +710,28 @@ public void purgeCompletionSuggestions( request, responseObserver); } + + /** + * + * + *
            +     * Removes the search history suggestion in an engine for a user. This will
            +     * remove the suggestion from being returned in the
            +     * [AdvancedCompleteQueryResponse.recent_search_suggestions][google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.recent_search_suggestions]
            +     * for this user. If the user searches the same suggestion again, the new
            +     * history will override and suggest this suggestion again.
            +     * 
            + */ + public void removeSuggestion( + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRemoveSuggestionMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -757,6 +846,24 @@ public com.google.longrunning.Operation purgeCompletionSuggestions( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getPurgeCompletionSuggestionsMethod(), getCallOptions(), request); } + + /** + * + * + *
            +     * Removes the search history suggestion in an engine for a user. This will
            +     * remove the suggestion from being returned in the
            +     * [AdvancedCompleteQueryResponse.recent_search_suggestions][google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.recent_search_suggestions]
            +     * for this user. If the user searches the same suggestion again, the new
            +     * history will override and suggest this suggestion again.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse removeSuggestion( + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRemoveSuggestionMethod(), getCallOptions(), request); + } } /** @@ -865,6 +972,23 @@ public com.google.longrunning.Operation purgeCompletionSuggestions( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPurgeCompletionSuggestionsMethod(), getCallOptions(), request); } + + /** + * + * + *
            +     * Removes the search history suggestion in an engine for a user. This will
            +     * remove the suggestion from being returned in the
            +     * [AdvancedCompleteQueryResponse.recent_search_suggestions][google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.recent_search_suggestions]
            +     * for this user. If the user searches the same suggestion again, the new
            +     * history will override and suggest this suggestion again.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse removeSuggestion( + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRemoveSuggestionMethod(), getCallOptions(), request); + } } /** @@ -981,6 +1105,24 @@ protected CompletionServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPurgeCompletionSuggestionsMethod(), getCallOptions()), request); } + + /** + * + * + *
            +     * Removes the search history suggestion in an engine for a user. This will
            +     * remove the suggestion from being returned in the
            +     * [AdvancedCompleteQueryResponse.recent_search_suggestions][google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.recent_search_suggestions]
            +     * for this user. If the user searches the same suggestion again, the new
            +     * history will override and suggest this suggestion again.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse> + removeSuggestion(com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRemoveSuggestionMethod(), getCallOptions()), request); + } } private static final int METHODID_COMPLETE_QUERY = 0; @@ -989,6 +1131,7 @@ protected CompletionServiceFutureStub build( private static final int METHODID_PURGE_SUGGESTION_DENY_LIST_ENTRIES = 3; private static final int METHODID_IMPORT_COMPLETION_SUGGESTIONS = 4; private static final int METHODID_PURGE_COMPLETION_SUGGESTIONS = 5; + private static final int METHODID_REMOVE_SUGGESTION = 6; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1043,6 +1186,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_REMOVE_SUGGESTION: + serviceImpl.removeSuggestion( + (com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -1103,6 +1253,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRequest, com.google.longrunning.Operation>( service, METHODID_PURGE_COMPLETION_SUGGESTIONS))) + .addMethod( + getRemoveSuggestionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest, + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse>( + service, METHODID_REMOVE_SUGGESTION))) .build(); } @@ -1160,6 +1317,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getPurgeSuggestionDenyListEntriesMethod()) .addMethod(getImportCompletionSuggestionsMethod()) .addMethod(getPurgeCompletionSuggestionsMethod()) + .addMethod(getRemoveSuggestionMethod()) .build(); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceGrpc.java index fb5fd4077d94..f3d6ca260b06 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceGrpc.java @@ -386,6 +386,57 @@ private ConversationalSearchServiceGrpc() {} return getAnswerQueryMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest, + com.google.cloud.discoveryengine.v1beta.AnswerQueryResponse> + getStreamAnswerQueryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamAnswerQuery", + requestType = com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.AnswerQueryResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest, + com.google.cloud.discoveryengine.v1beta.AnswerQueryResponse> + getStreamAnswerQueryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest, + com.google.cloud.discoveryengine.v1beta.AnswerQueryResponse> + getStreamAnswerQueryMethod; + if ((getStreamAnswerQueryMethod = ConversationalSearchServiceGrpc.getStreamAnswerQueryMethod) + == null) { + synchronized (ConversationalSearchServiceGrpc.class) { + if ((getStreamAnswerQueryMethod = + ConversationalSearchServiceGrpc.getStreamAnswerQueryMethod) + == null) { + ConversationalSearchServiceGrpc.getStreamAnswerQueryMethod = + getStreamAnswerQueryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamAnswerQuery")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.AnswerQueryResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ConversationalSearchServiceMethodDescriptorSupplier( + "StreamAnswerQuery")) + .build(); + } + } + } + return getStreamAnswerQueryMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.discoveryengine.v1beta.GetAnswerRequest, com.google.cloud.discoveryengine.v1beta.Answer> @@ -843,6 +894,26 @@ default void answerQuery( getAnswerQueryMethod(), responseObserver); } + /** + * + * + *
            +     * Answer query method (streaming).
            +     * It takes one
            +     * [AnswerQueryRequest][google.cloud.discoveryengine.v1beta.AnswerQueryRequest]
            +     * and returns multiple
            +     * [AnswerQueryResponse][google.cloud.discoveryengine.v1beta.AnswerQueryResponse]
            +     * messages in a stream.
            +     * 
            + */ + default void streamAnswerQuery( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStreamAnswerQueryMethod(), responseObserver); + } + /** * * @@ -1104,6 +1175,28 @@ public void answerQuery( responseObserver); } + /** + * + * + *
            +     * Answer query method (streaming).
            +     * It takes one
            +     * [AnswerQueryRequest][google.cloud.discoveryengine.v1beta.AnswerQueryRequest]
            +     * and returns multiple
            +     * [AnswerQueryResponse][google.cloud.discoveryengine.v1beta.AnswerQueryResponse]
            +     * messages in a stream.
            +     * 
            + */ + public void streamAnswerQuery( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getStreamAnswerQueryMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1338,6 +1431,26 @@ public com.google.cloud.discoveryengine.v1beta.AnswerQueryResponse answerQuery( getChannel(), getAnswerQueryMethod(), getCallOptions(), request); } + /** + * + * + *
            +     * Answer query method (streaming).
            +     * It takes one
            +     * [AnswerQueryRequest][google.cloud.discoveryengine.v1beta.AnswerQueryRequest]
            +     * and returns multiple
            +     * [AnswerQueryResponse][google.cloud.discoveryengine.v1beta.AnswerQueryResponse]
            +     * messages in a stream.
            +     * 
            + */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + ?, com.google.cloud.discoveryengine.v1beta.AnswerQueryResponse> + streamAnswerQuery(com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( + getChannel(), getStreamAnswerQueryMethod(), getCallOptions(), request); + } + /** * * @@ -1553,6 +1666,24 @@ public com.google.cloud.discoveryengine.v1beta.AnswerQueryResponse answerQuery( getChannel(), getAnswerQueryMethod(), getCallOptions(), request); } + /** + * + * + *
            +     * Answer query method (streaming).
            +     * It takes one
            +     * [AnswerQueryRequest][google.cloud.discoveryengine.v1beta.AnswerQueryRequest]
            +     * and returns multiple
            +     * [AnswerQueryResponse][google.cloud.discoveryengine.v1beta.AnswerQueryResponse]
            +     * messages in a stream.
            +     * 
            + */ + public java.util.Iterator + streamAnswerQuery(com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getStreamAnswerQueryMethod(), getCallOptions(), request); + } + /** * * @@ -1871,12 +2002,13 @@ protected ConversationalSearchServiceFutureStub build( private static final int METHODID_GET_CONVERSATION = 4; private static final int METHODID_LIST_CONVERSATIONS = 5; private static final int METHODID_ANSWER_QUERY = 6; - private static final int METHODID_GET_ANSWER = 7; - private static final int METHODID_CREATE_SESSION = 8; - private static final int METHODID_DELETE_SESSION = 9; - private static final int METHODID_UPDATE_SESSION = 10; - private static final int METHODID_GET_SESSION = 11; - private static final int METHODID_LIST_SESSIONS = 12; + private static final int METHODID_STREAM_ANSWER_QUERY = 7; + private static final int METHODID_GET_ANSWER = 8; + private static final int METHODID_CREATE_SESSION = 9; + private static final int METHODID_DELETE_SESSION = 10; + private static final int METHODID_UPDATE_SESSION = 11; + private static final int METHODID_GET_SESSION = 12; + private static final int METHODID_LIST_SESSIONS = 13; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1939,6 +2071,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.discoveryengine.v1beta.AnswerQueryResponse>) responseObserver); break; + case METHODID_STREAM_ANSWER_QUERY: + serviceImpl.streamAnswerQuery( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.AnswerQueryResponse>) + responseObserver); + break; case METHODID_GET_ANSWER: serviceImpl.getAnswer( (com.google.cloud.discoveryengine.v1beta.GetAnswerRequest) request, @@ -2041,6 +2180,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest, com.google.cloud.discoveryengine.v1beta.AnswerQueryResponse>( service, METHODID_ANSWER_QUERY))) + .addMethod( + getStreamAnswerQueryMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest, + com.google.cloud.discoveryengine.v1beta.AnswerQueryResponse>( + service, METHODID_STREAM_ANSWER_QUERY))) .addMethod( getGetAnswerMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2140,6 +2286,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetConversationMethod()) .addMethod(getListConversationsMethod()) .addMethod(getAnswerQueryMethod()) + .addMethod(getStreamAnswerQueryMethod()) .addMethod(getGetAnswerMethod()) .addMethod(getCreateSessionMethod()) .addMethod(getDeleteSessionMethod()) diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceGrpc.java index 6cfeb102674e..cb10de297cfd 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceGrpc.java @@ -399,6 +399,84 @@ private EngineServiceGrpc() {} return getTuneEngineMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", + requestType = com.google.iam.v1.GetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> + getGetIamPolicyMethod() { + io.grpc.MethodDescriptor + getGetIamPolicyMethod; + if ((getGetIamPolicyMethod = EngineServiceGrpc.getGetIamPolicyMethod) == null) { + synchronized (EngineServiceGrpc.class) { + if ((getGetIamPolicyMethod = EngineServiceGrpc.getGetIamPolicyMethod) == null) { + EngineServiceGrpc.getGetIamPolicyMethod = + getGetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new EngineServiceMethodDescriptorSupplier("GetIamPolicy")) + .build(); + } + } + } + return getGetIamPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", + requestType = com.google.iam.v1.SetIamPolicyRequest.class, + responseType = com.google.iam.v1.Policy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> + getSetIamPolicyMethod() { + io.grpc.MethodDescriptor + getSetIamPolicyMethod; + if ((getSetIamPolicyMethod = EngineServiceGrpc.getSetIamPolicyMethod) == null) { + synchronized (EngineServiceGrpc.class) { + if ((getSetIamPolicyMethod = EngineServiceGrpc.getSetIamPolicyMethod) == null) { + EngineServiceGrpc.getSetIamPolicyMethod = + getSetIamPolicyMethod = + io.grpc.MethodDescriptor + .newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v1.Policy.getDefaultInstance())) + .setSchemaDescriptor( + new EngineServiceMethodDescriptorSupplier("SetIamPolicy")) + .build(); + } + } + } + return getSetIamPolicyMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static EngineServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -467,7 +545,7 @@ public interface AsyncService { * * *
            -     * Creates a [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Creates an [Engine][google.cloud.discoveryengine.v1beta.Engine].
                  * 
            */ default void createEngine( @@ -481,7 +559,7 @@ default void createEngine( * * *
            -     * Deletes a [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Deletes an [Engine][google.cloud.discoveryengine.v1beta.Engine].
                  * 
            */ default void deleteEngine( @@ -510,7 +588,7 @@ default void updateEngine( * * *
            -     * Gets a [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Gets an [Engine][google.cloud.discoveryengine.v1beta.Engine].
                  * 
            */ default void getEngine( @@ -540,7 +618,8 @@ default void listEngines( * * *
            -     * Pauses the training of an existing engine. Only applicable if
            +     * Pauses the training of an existing
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if
                  * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
                  * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                  * 
            @@ -557,7 +636,8 @@ default void pauseEngine( * * *
            -     * Resumes the training of an existing engine. Only applicable if
            +     * Resumes the training of an existing
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if
                  * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
                  * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                  * 
            @@ -574,7 +654,8 @@ default void resumeEngine( * * *
            -     * Tunes an existing engine. Only applicable if
            +     * Tunes an existing [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Only applicable if
                  * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
                  * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                  * 
            @@ -584,6 +665,48 @@ default void tuneEngine( io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTuneEngineMethod(), responseObserver); } + + /** + * + * + *
            +     * Gets the IAM access control policy for an
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. A `NOT_FOUND` error
            +     * is returned if the resource does not exist. An empty policy is returned if
            +     * the resource exists but does not have a policy set on it.
            +     * 
            + */ + default void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIamPolicyMethod(), responseObserver); + } + + /** + * + * + *
            +     * Sets the IAM access control policy for an
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. A `NOT_FOUND` error
            +     * is returned if the resource does not exist.
            +     * **Important:** When setting a policy directly on an Engine resource,
            +     * the only recommended roles in the bindings are:
            +     * `roles/discoveryengine.admin`,
            +     * `roles/discoveryengine.agentspaceAdmin`,
            +     * `roles/discoveryengine.user`,
            +     * `roles/discoveryengine.agentspaceUser`,
            +     * `roles/discoveryengine.viewer`,
            +     * `roles/discoveryengine.agentspaceViewer`.
            +     * Attempting to grant any other role will result in a warning in logging.
            +     * 
            + */ + default void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetIamPolicyMethod(), responseObserver); + } } /** @@ -626,7 +749,7 @@ protected EngineServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions c * * *
            -     * Creates a [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Creates an [Engine][google.cloud.discoveryengine.v1beta.Engine].
                  * 
            */ public void createEngine( @@ -642,7 +765,7 @@ public void createEngine( * * *
            -     * Deletes a [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Deletes an [Engine][google.cloud.discoveryengine.v1beta.Engine].
                  * 
            */ public void deleteEngine( @@ -675,7 +798,7 @@ public void updateEngine( * * *
            -     * Gets a [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Gets an [Engine][google.cloud.discoveryengine.v1beta.Engine].
                  * 
            */ public void getEngine( @@ -708,7 +831,8 @@ public void listEngines( * * *
            -     * Pauses the training of an existing engine. Only applicable if
            +     * Pauses the training of an existing
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if
                  * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
                  * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                  * 
            @@ -727,7 +851,8 @@ public void pauseEngine( * * *
            -     * Resumes the training of an existing engine. Only applicable if
            +     * Resumes the training of an existing
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if
                  * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
                  * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                  * 
            @@ -746,7 +871,8 @@ public void resumeEngine( * * *
            -     * Tunes an existing engine. Only applicable if
            +     * Tunes an existing [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Only applicable if
                  * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
                  * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                  * 
            @@ -757,6 +883,52 @@ public void tuneEngine( io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getTuneEngineMethod(), getCallOptions()), request, responseObserver); } + + /** + * + * + *
            +     * Gets the IAM access control policy for an
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. A `NOT_FOUND` error
            +     * is returned if the resource does not exist. An empty policy is returned if
            +     * the resource exists but does not have a policy set on it.
            +     * 
            + */ + public void getIamPolicy( + com.google.iam.v1.GetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Sets the IAM access control policy for an
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. A `NOT_FOUND` error
            +     * is returned if the resource does not exist.
            +     * **Important:** When setting a policy directly on an Engine resource,
            +     * the only recommended roles in the bindings are:
            +     * `roles/discoveryengine.admin`,
            +     * `roles/discoveryengine.agentspaceAdmin`,
            +     * `roles/discoveryengine.user`,
            +     * `roles/discoveryengine.agentspaceUser`,
            +     * `roles/discoveryengine.viewer`,
            +     * `roles/discoveryengine.agentspaceViewer`.
            +     * Attempting to grant any other role will result in a warning in logging.
            +     * 
            + */ + public void setIamPolicy( + com.google.iam.v1.SetIamPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -783,7 +955,7 @@ protected EngineServiceBlockingV2Stub build( * * *
            -     * Creates a [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Creates an [Engine][google.cloud.discoveryengine.v1beta.Engine].
                  * 
            */ public com.google.longrunning.Operation createEngine( @@ -797,7 +969,7 @@ public com.google.longrunning.Operation createEngine( * * *
            -     * Deletes a [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Deletes an [Engine][google.cloud.discoveryengine.v1beta.Engine].
                  * 
            */ public com.google.longrunning.Operation deleteEngine( @@ -825,7 +997,7 @@ public com.google.cloud.discoveryengine.v1beta.Engine updateEngine( * * *
            -     * Gets a [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Gets an [Engine][google.cloud.discoveryengine.v1beta.Engine].
                  * 
            */ public com.google.cloud.discoveryengine.v1beta.Engine getEngine( @@ -854,7 +1026,8 @@ public com.google.cloud.discoveryengine.v1beta.ListEnginesResponse listEngines( * * *
            -     * Pauses the training of an existing engine. Only applicable if
            +     * Pauses the training of an existing
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if
                  * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
                  * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                  * 
            @@ -870,7 +1043,8 @@ public com.google.cloud.discoveryengine.v1beta.Engine pauseEngine( * * *
            -     * Resumes the training of an existing engine. Only applicable if
            +     * Resumes the training of an existing
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if
                  * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
                  * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                  * 
            @@ -886,7 +1060,8 @@ public com.google.cloud.discoveryengine.v1beta.Engine resumeEngine( * * *
            -     * Tunes an existing engine. Only applicable if
            +     * Tunes an existing [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Only applicable if
                  * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
                  * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                  * 
            @@ -897,6 +1072,46 @@ public com.google.longrunning.Operation tuneEngine( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTuneEngineMethod(), getCallOptions(), request); } + + /** + * + * + *
            +     * Gets the IAM access control policy for an
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. A `NOT_FOUND` error
            +     * is returned if the resource does not exist. An empty policy is returned if
            +     * the resource exists but does not have a policy set on it.
            +     * 
            + */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Sets the IAM access control policy for an
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. A `NOT_FOUND` error
            +     * is returned if the resource does not exist.
            +     * **Important:** When setting a policy directly on an Engine resource,
            +     * the only recommended roles in the bindings are:
            +     * `roles/discoveryengine.admin`,
            +     * `roles/discoveryengine.agentspaceAdmin`,
            +     * `roles/discoveryengine.user`,
            +     * `roles/discoveryengine.agentspaceUser`,
            +     * `roles/discoveryengine.viewer`,
            +     * `roles/discoveryengine.agentspaceViewer`.
            +     * Attempting to grant any other role will result in a warning in logging.
            +     * 
            + */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } } /** @@ -923,7 +1138,7 @@ protected EngineServiceBlockingStub build( * * *
            -     * Creates a [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Creates an [Engine][google.cloud.discoveryengine.v1beta.Engine].
                  * 
            */ public com.google.longrunning.Operation createEngine( @@ -936,7 +1151,7 @@ public com.google.longrunning.Operation createEngine( * * *
            -     * Deletes a [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Deletes an [Engine][google.cloud.discoveryengine.v1beta.Engine].
                  * 
            */ public com.google.longrunning.Operation deleteEngine( @@ -962,7 +1177,7 @@ public com.google.cloud.discoveryengine.v1beta.Engine updateEngine( * * *
            -     * Gets a [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Gets an [Engine][google.cloud.discoveryengine.v1beta.Engine].
                  * 
            */ public com.google.cloud.discoveryengine.v1beta.Engine getEngine( @@ -989,7 +1204,8 @@ public com.google.cloud.discoveryengine.v1beta.ListEnginesResponse listEngines( * * *
            -     * Pauses the training of an existing engine. Only applicable if
            +     * Pauses the training of an existing
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if
                  * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
                  * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                  * 
            @@ -1004,7 +1220,8 @@ public com.google.cloud.discoveryengine.v1beta.Engine pauseEngine( * * *
            -     * Resumes the training of an existing engine. Only applicable if
            +     * Resumes the training of an existing
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if
                  * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
                  * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                  * 
            @@ -1019,7 +1236,8 @@ public com.google.cloud.discoveryengine.v1beta.Engine resumeEngine( * * *
            -     * Tunes an existing engine. Only applicable if
            +     * Tunes an existing [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Only applicable if
                  * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
                  * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                  * 
            @@ -1029,6 +1247,44 @@ public com.google.longrunning.Operation tuneEngine( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTuneEngineMethod(), getCallOptions(), request); } + + /** + * + * + *
            +     * Gets the IAM access control policy for an
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. A `NOT_FOUND` error
            +     * is returned if the resource does not exist. An empty policy is returned if
            +     * the resource exists but does not have a policy set on it.
            +     * 
            + */ + public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Sets the IAM access control policy for an
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. A `NOT_FOUND` error
            +     * is returned if the resource does not exist.
            +     * **Important:** When setting a policy directly on an Engine resource,
            +     * the only recommended roles in the bindings are:
            +     * `roles/discoveryengine.admin`,
            +     * `roles/discoveryengine.agentspaceAdmin`,
            +     * `roles/discoveryengine.user`,
            +     * `roles/discoveryengine.agentspaceUser`,
            +     * `roles/discoveryengine.viewer`,
            +     * `roles/discoveryengine.agentspaceViewer`.
            +     * Attempting to grant any other role will result in a warning in logging.
            +     * 
            + */ + public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); + } } /** @@ -1055,7 +1311,7 @@ protected EngineServiceFutureStub build( * * *
            -     * Creates a [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Creates an [Engine][google.cloud.discoveryengine.v1beta.Engine].
                  * 
            */ public com.google.common.util.concurrent.ListenableFuture @@ -1068,7 +1324,7 @@ protected EngineServiceFutureStub build( * * *
            -     * Deletes a [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Deletes an [Engine][google.cloud.discoveryengine.v1beta.Engine].
                  * 
            */ public com.google.common.util.concurrent.ListenableFuture @@ -1095,7 +1351,7 @@ protected EngineServiceFutureStub build( * * *
            -     * Gets a [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Gets an [Engine][google.cloud.discoveryengine.v1beta.Engine].
                  * 
            */ public com.google.common.util.concurrent.ListenableFuture< @@ -1124,7 +1380,8 @@ protected EngineServiceFutureStub build( * * *
            -     * Pauses the training of an existing engine. Only applicable if
            +     * Pauses the training of an existing
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if
                  * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
                  * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                  * 
            @@ -1140,7 +1397,8 @@ protected EngineServiceFutureStub build( * * *
            -     * Resumes the training of an existing engine. Only applicable if
            +     * Resumes the training of an existing
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if
                  * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
                  * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                  * 
            @@ -1156,7 +1414,8 @@ protected EngineServiceFutureStub build( * * *
            -     * Tunes an existing engine. Only applicable if
            +     * Tunes an existing [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +     * Only applicable if
                  * [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is
                  * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION].
                  * 
            @@ -1166,6 +1425,46 @@ protected EngineServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTuneEngineMethod(), getCallOptions()), request); } + + /** + * + * + *
            +     * Gets the IAM access control policy for an
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. A `NOT_FOUND` error
            +     * is returned if the resource does not exist. An empty policy is returned if
            +     * the resource exists but does not have a policy set on it.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Sets the IAM access control policy for an
            +     * [Engine][google.cloud.discoveryengine.v1beta.Engine]. A `NOT_FOUND` error
            +     * is returned if the resource does not exist.
            +     * **Important:** When setting a policy directly on an Engine resource,
            +     * the only recommended roles in the bindings are:
            +     * `roles/discoveryengine.admin`,
            +     * `roles/discoveryengine.agentspaceAdmin`,
            +     * `roles/discoveryengine.user`,
            +     * `roles/discoveryengine.agentspaceUser`,
            +     * `roles/discoveryengine.viewer`,
            +     * `roles/discoveryengine.agentspaceViewer`.
            +     * Attempting to grant any other role will result in a warning in logging.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_ENGINE = 0; @@ -1176,6 +1475,8 @@ protected EngineServiceFutureStub build( private static final int METHODID_PAUSE_ENGINE = 5; private static final int METHODID_RESUME_ENGINE = 6; private static final int METHODID_TUNE_ENGINE = 7; + private static final int METHODID_GET_IAM_POLICY = 8; + private static final int METHODID_SET_IAM_POLICY = 9; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1240,6 +1541,16 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.discoveryengine.v1beta.TuneEngineRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_IAM_POLICY: + serviceImpl.getIamPolicy( + (com.google.iam.v1.GetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_IAM_POLICY: + serviceImpl.setIamPolicy( + (com.google.iam.v1.SetIamPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -1310,6 +1621,16 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.discoveryengine.v1beta.TuneEngineRequest, com.google.longrunning.Operation>(service, METHODID_TUNE_ENGINE))) + .addMethod( + getGetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + service, METHODID_GET_IAM_POLICY))) + .addMethod( + getSetIamPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers( + service, METHODID_SET_IAM_POLICY))) .build(); } @@ -1369,6 +1690,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getPauseEngineMethod()) .addMethod(getResumeEngineMethod()) .addMethod(getTuneEngineMethod()) + .addMethod(getGetIamPolicyMethod()) + .addMethod(getSetIamPolicyMethod()) .build(); } } diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceGrpc.java new file mode 100644 index 000000000000..65392122dd27 --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceGrpc.java @@ -0,0 +1,1292 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
            + * Service for managing Identity Mapping Stores.
            + * 
            + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class IdentityMappingStoreServiceGrpc { + + private IdentityMappingStoreServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1beta.IdentityMappingStoreService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore> + getCreateIdentityMappingStoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateIdentityMappingStore", + requestType = com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore> + getCreateIdentityMappingStoreMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore> + getCreateIdentityMappingStoreMethod; + if ((getCreateIdentityMappingStoreMethod = + IdentityMappingStoreServiceGrpc.getCreateIdentityMappingStoreMethod) + == null) { + synchronized (IdentityMappingStoreServiceGrpc.class) { + if ((getCreateIdentityMappingStoreMethod = + IdentityMappingStoreServiceGrpc.getCreateIdentityMappingStoreMethod) + == null) { + IdentityMappingStoreServiceGrpc.getCreateIdentityMappingStoreMethod = + getCreateIdentityMappingStoreMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateIdentityMappingStore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta + .CreateIdentityMappingStoreRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore + .getDefaultInstance())) + .setSchemaDescriptor( + new IdentityMappingStoreServiceMethodDescriptorSupplier( + "CreateIdentityMappingStore")) + .build(); + } + } + } + return getCreateIdentityMappingStoreMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore> + getGetIdentityMappingStoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetIdentityMappingStore", + requestType = com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore> + getGetIdentityMappingStoreMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore> + getGetIdentityMappingStoreMethod; + if ((getGetIdentityMappingStoreMethod = + IdentityMappingStoreServiceGrpc.getGetIdentityMappingStoreMethod) + == null) { + synchronized (IdentityMappingStoreServiceGrpc.class) { + if ((getGetIdentityMappingStoreMethod = + IdentityMappingStoreServiceGrpc.getGetIdentityMappingStoreMethod) + == null) { + IdentityMappingStoreServiceGrpc.getGetIdentityMappingStoreMethod = + getGetIdentityMappingStoreMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetIdentityMappingStore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore + .getDefaultInstance())) + .setSchemaDescriptor( + new IdentityMappingStoreServiceMethodDescriptorSupplier( + "GetIdentityMappingStore")) + .build(); + } + } + } + return getGetIdentityMappingStoreMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest, + com.google.longrunning.Operation> + getDeleteIdentityMappingStoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteIdentityMappingStore", + requestType = com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest, + com.google.longrunning.Operation> + getDeleteIdentityMappingStoreMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest, + com.google.longrunning.Operation> + getDeleteIdentityMappingStoreMethod; + if ((getDeleteIdentityMappingStoreMethod = + IdentityMappingStoreServiceGrpc.getDeleteIdentityMappingStoreMethod) + == null) { + synchronized (IdentityMappingStoreServiceGrpc.class) { + if ((getDeleteIdentityMappingStoreMethod = + IdentityMappingStoreServiceGrpc.getDeleteIdentityMappingStoreMethod) + == null) { + IdentityMappingStoreServiceGrpc.getDeleteIdentityMappingStoreMethod = + getDeleteIdentityMappingStoreMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteIdentityMappingStore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta + .DeleteIdentityMappingStoreRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new IdentityMappingStoreServiceMethodDescriptorSupplier( + "DeleteIdentityMappingStore")) + .build(); + } + } + } + return getDeleteIdentityMappingStoreMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest, + com.google.longrunning.Operation> + getImportIdentityMappingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportIdentityMappings", + requestType = com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest, + com.google.longrunning.Operation> + getImportIdentityMappingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest, + com.google.longrunning.Operation> + getImportIdentityMappingsMethod; + if ((getImportIdentityMappingsMethod = + IdentityMappingStoreServiceGrpc.getImportIdentityMappingsMethod) + == null) { + synchronized (IdentityMappingStoreServiceGrpc.class) { + if ((getImportIdentityMappingsMethod = + IdentityMappingStoreServiceGrpc.getImportIdentityMappingsMethod) + == null) { + IdentityMappingStoreServiceGrpc.getImportIdentityMappingsMethod = + getImportIdentityMappingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ImportIdentityMappings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new IdentityMappingStoreServiceMethodDescriptorSupplier( + "ImportIdentityMappings")) + .build(); + } + } + } + return getImportIdentityMappingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest, + com.google.longrunning.Operation> + getPurgeIdentityMappingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PurgeIdentityMappings", + requestType = com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest, + com.google.longrunning.Operation> + getPurgeIdentityMappingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest, + com.google.longrunning.Operation> + getPurgeIdentityMappingsMethod; + if ((getPurgeIdentityMappingsMethod = + IdentityMappingStoreServiceGrpc.getPurgeIdentityMappingsMethod) + == null) { + synchronized (IdentityMappingStoreServiceGrpc.class) { + if ((getPurgeIdentityMappingsMethod = + IdentityMappingStoreServiceGrpc.getPurgeIdentityMappingsMethod) + == null) { + IdentityMappingStoreServiceGrpc.getPurgeIdentityMappingsMethod = + getPurgeIdentityMappingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "PurgeIdentityMappings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new IdentityMappingStoreServiceMethodDescriptorSupplier( + "PurgeIdentityMappings")) + .build(); + } + } + } + return getPurgeIdentityMappingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest, + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse> + getListIdentityMappingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListIdentityMappings", + requestType = com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest, + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse> + getListIdentityMappingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest, + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse> + getListIdentityMappingsMethod; + if ((getListIdentityMappingsMethod = + IdentityMappingStoreServiceGrpc.getListIdentityMappingsMethod) + == null) { + synchronized (IdentityMappingStoreServiceGrpc.class) { + if ((getListIdentityMappingsMethod = + IdentityMappingStoreServiceGrpc.getListIdentityMappingsMethod) + == null) { + IdentityMappingStoreServiceGrpc.getListIdentityMappingsMethod = + getListIdentityMappingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListIdentityMappings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new IdentityMappingStoreServiceMethodDescriptorSupplier( + "ListIdentityMappings")) + .build(); + } + } + } + return getListIdentityMappingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest, + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse> + getListIdentityMappingStoresMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListIdentityMappingStores", + requestType = com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest.class, + responseType = + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest, + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse> + getListIdentityMappingStoresMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest, + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse> + getListIdentityMappingStoresMethod; + if ((getListIdentityMappingStoresMethod = + IdentityMappingStoreServiceGrpc.getListIdentityMappingStoresMethod) + == null) { + synchronized (IdentityMappingStoreServiceGrpc.class) { + if ((getListIdentityMappingStoresMethod = + IdentityMappingStoreServiceGrpc.getListIdentityMappingStoresMethod) + == null) { + IdentityMappingStoreServiceGrpc.getListIdentityMappingStoresMethod = + getListIdentityMappingStoresMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListIdentityMappingStores")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta + .ListIdentityMappingStoresRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta + .ListIdentityMappingStoresResponse.getDefaultInstance())) + .setSchemaDescriptor( + new IdentityMappingStoreServiceMethodDescriptorSupplier( + "ListIdentityMappingStores")) + .build(); + } + } + } + return getListIdentityMappingStoresMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static IdentityMappingStoreServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IdentityMappingStoreServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityMappingStoreServiceStub(channel, callOptions); + } + }; + return IdentityMappingStoreServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static IdentityMappingStoreServiceBlockingV2Stub newBlockingV2Stub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IdentityMappingStoreServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityMappingStoreServiceBlockingV2Stub(channel, callOptions); + } + }; + return IdentityMappingStoreServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static IdentityMappingStoreServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IdentityMappingStoreServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityMappingStoreServiceBlockingStub(channel, callOptions); + } + }; + return IdentityMappingStoreServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static IdentityMappingStoreServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public IdentityMappingStoreServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityMappingStoreServiceFutureStub(channel, callOptions); + } + }; + return IdentityMappingStoreServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
            +   * Service for managing Identity Mapping Stores.
            +   * 
            + */ + public interface AsyncService { + + /** + * + * + *
            +     * Creates a new Identity Mapping Store.
            +     * 
            + */ + default void createIdentityMappingStore( + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateIdentityMappingStoreMethod(), responseObserver); + } + + /** + * + * + *
            +     * Gets the Identity Mapping Store.
            +     * 
            + */ + default void getIdentityMappingStore( + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIdentityMappingStoreMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes the Identity Mapping Store.
            +     * 
            + */ + default void deleteIdentityMappingStore( + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteIdentityMappingStoreMethod(), responseObserver); + } + + /** + * + * + *
            +     * Imports a list of Identity Mapping Entries to an Identity Mapping Store.
            +     * 
            + */ + default void importIdentityMappings( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getImportIdentityMappingsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Purges specified or all Identity Mapping Entries from an Identity Mapping
            +     * Store.
            +     * 
            + */ + default void purgeIdentityMappings( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPurgeIdentityMappingsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists Identity Mappings in an Identity Mapping Store.
            +     * 
            + */ + default void listIdentityMappings( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListIdentityMappingsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists all Identity Mapping Stores.
            +     * 
            + */ + default void listIdentityMappingStores( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListIdentityMappingStoresMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service IdentityMappingStoreService. + * + *
            +   * Service for managing Identity Mapping Stores.
            +   * 
            + */ + public abstract static class IdentityMappingStoreServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return IdentityMappingStoreServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service IdentityMappingStoreService. + * + *
            +   * Service for managing Identity Mapping Stores.
            +   * 
            + */ + public static final class IdentityMappingStoreServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private IdentityMappingStoreServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IdentityMappingStoreServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityMappingStoreServiceStub(channel, callOptions); + } + + /** + * + * + *
            +     * Creates a new Identity Mapping Store.
            +     * 
            + */ + public void createIdentityMappingStore( + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateIdentityMappingStoreMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Gets the Identity Mapping Store.
            +     * 
            + */ + public void getIdentityMappingStore( + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIdentityMappingStoreMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes the Identity Mapping Store.
            +     * 
            + */ + public void deleteIdentityMappingStore( + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteIdentityMappingStoreMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Imports a list of Identity Mapping Entries to an Identity Mapping Store.
            +     * 
            + */ + public void importIdentityMappings( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportIdentityMappingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Purges specified or all Identity Mapping Entries from an Identity Mapping
            +     * Store.
            +     * 
            + */ + public void purgeIdentityMappings( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPurgeIdentityMappingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Lists Identity Mappings in an Identity Mapping Store.
            +     * 
            + */ + public void listIdentityMappings( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListIdentityMappingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Lists all Identity Mapping Stores.
            +     * 
            + */ + public void listIdentityMappingStores( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListIdentityMappingStoresMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service IdentityMappingStoreService. + * + *
            +   * Service for managing Identity Mapping Stores.
            +   * 
            + */ + public static final class IdentityMappingStoreServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private IdentityMappingStoreServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IdentityMappingStoreServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityMappingStoreServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
            +     * Creates a new Identity Mapping Store.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingStore createIdentityMappingStore( + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateIdentityMappingStoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets the Identity Mapping Store.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingStore getIdentityMappingStore( + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetIdentityMappingStoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes the Identity Mapping Store.
            +     * 
            + */ + public com.google.longrunning.Operation deleteIdentityMappingStore( + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteIdentityMappingStoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Imports a list of Identity Mapping Entries to an Identity Mapping Store.
            +     * 
            + */ + public com.google.longrunning.Operation importIdentityMappings( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getImportIdentityMappingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Purges specified or all Identity Mapping Entries from an Identity Mapping
            +     * Store.
            +     * 
            + */ + public com.google.longrunning.Operation purgeIdentityMappings( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getPurgeIdentityMappingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists Identity Mappings in an Identity Mapping Store.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse + listIdentityMappings( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListIdentityMappingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists all Identity Mapping Stores.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse + listIdentityMappingStores( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListIdentityMappingStoresMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service + * IdentityMappingStoreService. + * + *
            +   * Service for managing Identity Mapping Stores.
            +   * 
            + */ + public static final class IdentityMappingStoreServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private IdentityMappingStoreServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IdentityMappingStoreServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityMappingStoreServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
            +     * Creates a new Identity Mapping Store.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingStore createIdentityMappingStore( + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateIdentityMappingStoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets the Identity Mapping Store.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingStore getIdentityMappingStore( + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIdentityMappingStoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes the Identity Mapping Store.
            +     * 
            + */ + public com.google.longrunning.Operation deleteIdentityMappingStore( + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteIdentityMappingStoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Imports a list of Identity Mapping Entries to an Identity Mapping Store.
            +     * 
            + */ + public com.google.longrunning.Operation importIdentityMappings( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportIdentityMappingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Purges specified or all Identity Mapping Entries from an Identity Mapping
            +     * Store.
            +     * 
            + */ + public com.google.longrunning.Operation purgeIdentityMappings( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPurgeIdentityMappingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists Identity Mappings in an Identity Mapping Store.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse + listIdentityMappings( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListIdentityMappingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists all Identity Mapping Stores.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse + listIdentityMappingStores( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListIdentityMappingStoresMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * IdentityMappingStoreService. + * + *
            +   * Service for managing Identity Mapping Stores.
            +   * 
            + */ + public static final class IdentityMappingStoreServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private IdentityMappingStoreServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected IdentityMappingStoreServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new IdentityMappingStoreServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
            +     * Creates a new Identity Mapping Store.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore> + createIdentityMappingStore( + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateIdentityMappingStoreMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Gets the Identity Mapping Store.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore> + getIdentityMappingStore( + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetIdentityMappingStoreMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Deletes the Identity Mapping Store.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + deleteIdentityMappingStore( + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteIdentityMappingStoreMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Imports a list of Identity Mapping Entries to an Identity Mapping Store.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + importIdentityMappings( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportIdentityMappingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Purges specified or all Identity Mapping Entries from an Identity Mapping
            +     * Store.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + purgeIdentityMappings( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPurgeIdentityMappingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Lists Identity Mappings in an Identity Mapping Store.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse> + listIdentityMappings( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListIdentityMappingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Lists all Identity Mapping Stores.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse> + listIdentityMappingStores( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListIdentityMappingStoresMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_IDENTITY_MAPPING_STORE = 0; + private static final int METHODID_GET_IDENTITY_MAPPING_STORE = 1; + private static final int METHODID_DELETE_IDENTITY_MAPPING_STORE = 2; + private static final int METHODID_IMPORT_IDENTITY_MAPPINGS = 3; + private static final int METHODID_PURGE_IDENTITY_MAPPINGS = 4; + private static final int METHODID_LIST_IDENTITY_MAPPINGS = 5; + private static final int METHODID_LIST_IDENTITY_MAPPING_STORES = 6; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_IDENTITY_MAPPING_STORE: + serviceImpl.createIdentityMappingStore( + (com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore>) + responseObserver); + break; + case METHODID_GET_IDENTITY_MAPPING_STORE: + serviceImpl.getIdentityMappingStore( + (com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore>) + responseObserver); + break; + case METHODID_DELETE_IDENTITY_MAPPING_STORE: + serviceImpl.deleteIdentityMappingStore( + (com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_IDENTITY_MAPPINGS: + serviceImpl.importIdentityMappings( + (com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PURGE_IDENTITY_MAPPINGS: + serviceImpl.purgeIdentityMappings( + (com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_IDENTITY_MAPPINGS: + serviceImpl.listIdentityMappings( + (com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse>) + responseObserver); + break; + case METHODID_LIST_IDENTITY_MAPPING_STORES: + serviceImpl.listIdentityMappingStores( + (com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateIdentityMappingStoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore>( + service, METHODID_CREATE_IDENTITY_MAPPING_STORE))) + .addMethod( + getGetIdentityMappingStoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore>( + service, METHODID_GET_IDENTITY_MAPPING_STORE))) + .addMethod( + getDeleteIdentityMappingStoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_IDENTITY_MAPPING_STORE))) + .addMethod( + getImportIdentityMappingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest, + com.google.longrunning.Operation>(service, METHODID_IMPORT_IDENTITY_MAPPINGS))) + .addMethod( + getPurgeIdentityMappingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest, + com.google.longrunning.Operation>(service, METHODID_PURGE_IDENTITY_MAPPINGS))) + .addMethod( + getListIdentityMappingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest, + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse>( + service, METHODID_LIST_IDENTITY_MAPPINGS))) + .addMethod( + getListIdentityMappingStoresMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest, + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse>( + service, METHODID_LIST_IDENTITY_MAPPING_STORES))) + .build(); + } + + private abstract static class IdentityMappingStoreServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + IdentityMappingStoreServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("IdentityMappingStoreService"); + } + } + + private static final class IdentityMappingStoreServiceFileDescriptorSupplier + extends IdentityMappingStoreServiceBaseDescriptorSupplier { + IdentityMappingStoreServiceFileDescriptorSupplier() {} + } + + private static final class IdentityMappingStoreServiceMethodDescriptorSupplier + extends IdentityMappingStoreServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + IdentityMappingStoreServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (IdentityMappingStoreServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new IdentityMappingStoreServiceFileDescriptorSupplier()) + .addMethod(getCreateIdentityMappingStoreMethod()) + .addMethod(getGetIdentityMappingStoreMethod()) + .addMethod(getDeleteIdentityMappingStoreMethod()) + .addMethod(getImportIdentityMappingsMethod()) + .addMethod(getPurgeIdentityMappingsMethod()) + .addMethod(getListIdentityMappingsMethod()) + .addMethod(getListIdentityMappingStoresMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceGrpc.java new file mode 100644 index 000000000000..31f527a355e2 --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceGrpc.java @@ -0,0 +1,1188 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
            + * Service for managing license config related resources.
            + * 
            + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class LicenseConfigServiceGrpc { + + private LicenseConfigServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1beta.LicenseConfigService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.LicenseConfig> + getCreateLicenseConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateLicenseConfig", + requestType = com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.LicenseConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.LicenseConfig> + getCreateLicenseConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.LicenseConfig> + getCreateLicenseConfigMethod; + if ((getCreateLicenseConfigMethod = LicenseConfigServiceGrpc.getCreateLicenseConfigMethod) + == null) { + synchronized (LicenseConfigServiceGrpc.class) { + if ((getCreateLicenseConfigMethod = LicenseConfigServiceGrpc.getCreateLicenseConfigMethod) + == null) { + LicenseConfigServiceGrpc.getCreateLicenseConfigMethod = + getCreateLicenseConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateLicenseConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.LicenseConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new LicenseConfigServiceMethodDescriptorSupplier("CreateLicenseConfig")) + .build(); + } + } + } + return getCreateLicenseConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.LicenseConfig> + getUpdateLicenseConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateLicenseConfig", + requestType = com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.LicenseConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.LicenseConfig> + getUpdateLicenseConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.LicenseConfig> + getUpdateLicenseConfigMethod; + if ((getUpdateLicenseConfigMethod = LicenseConfigServiceGrpc.getUpdateLicenseConfigMethod) + == null) { + synchronized (LicenseConfigServiceGrpc.class) { + if ((getUpdateLicenseConfigMethod = LicenseConfigServiceGrpc.getUpdateLicenseConfigMethod) + == null) { + LicenseConfigServiceGrpc.getUpdateLicenseConfigMethod = + getUpdateLicenseConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateLicenseConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.LicenseConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new LicenseConfigServiceMethodDescriptorSupplier("UpdateLicenseConfig")) + .build(); + } + } + } + return getUpdateLicenseConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.LicenseConfig> + getGetLicenseConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetLicenseConfig", + requestType = com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.LicenseConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.LicenseConfig> + getGetLicenseConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.LicenseConfig> + getGetLicenseConfigMethod; + if ((getGetLicenseConfigMethod = LicenseConfigServiceGrpc.getGetLicenseConfigMethod) == null) { + synchronized (LicenseConfigServiceGrpc.class) { + if ((getGetLicenseConfigMethod = LicenseConfigServiceGrpc.getGetLicenseConfigMethod) + == null) { + LicenseConfigServiceGrpc.getGetLicenseConfigMethod = + getGetLicenseConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLicenseConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.LicenseConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new LicenseConfigServiceMethodDescriptorSupplier("GetLicenseConfig")) + .build(); + } + } + } + return getGetLicenseConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest, + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse> + getListLicenseConfigsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLicenseConfigs", + requestType = com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest, + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse> + getListLicenseConfigsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest, + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse> + getListLicenseConfigsMethod; + if ((getListLicenseConfigsMethod = LicenseConfigServiceGrpc.getListLicenseConfigsMethod) + == null) { + synchronized (LicenseConfigServiceGrpc.class) { + if ((getListLicenseConfigsMethod = LicenseConfigServiceGrpc.getListLicenseConfigsMethod) + == null) { + LicenseConfigServiceGrpc.getListLicenseConfigsMethod = + getListLicenseConfigsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLicenseConfigs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new LicenseConfigServiceMethodDescriptorSupplier("ListLicenseConfigs")) + .build(); + } + } + } + return getListLicenseConfigsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse> + getDistributeLicenseConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DistributeLicenseConfig", + requestType = com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse> + getDistributeLicenseConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse> + getDistributeLicenseConfigMethod; + if ((getDistributeLicenseConfigMethod = + LicenseConfigServiceGrpc.getDistributeLicenseConfigMethod) + == null) { + synchronized (LicenseConfigServiceGrpc.class) { + if ((getDistributeLicenseConfigMethod = + LicenseConfigServiceGrpc.getDistributeLicenseConfigMethod) + == null) { + LicenseConfigServiceGrpc.getDistributeLicenseConfigMethod = + getDistributeLicenseConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DistributeLicenseConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta + .DistributeLicenseConfigResponse.getDefaultInstance())) + .setSchemaDescriptor( + new LicenseConfigServiceMethodDescriptorSupplier( + "DistributeLicenseConfig")) + .build(); + } + } + } + return getDistributeLicenseConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse> + getRetractLicenseConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RetractLicenseConfig", + requestType = com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse> + getRetractLicenseConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse> + getRetractLicenseConfigMethod; + if ((getRetractLicenseConfigMethod = LicenseConfigServiceGrpc.getRetractLicenseConfigMethod) + == null) { + synchronized (LicenseConfigServiceGrpc.class) { + if ((getRetractLicenseConfigMethod = LicenseConfigServiceGrpc.getRetractLicenseConfigMethod) + == null) { + LicenseConfigServiceGrpc.getRetractLicenseConfigMethod = + getRetractLicenseConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RetractLicenseConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new LicenseConfigServiceMethodDescriptorSupplier("RetractLicenseConfig")) + .build(); + } + } + } + return getRetractLicenseConfigMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static LicenseConfigServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LicenseConfigServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseConfigServiceStub(channel, callOptions); + } + }; + return LicenseConfigServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static LicenseConfigServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LicenseConfigServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseConfigServiceBlockingV2Stub(channel, callOptions); + } + }; + return LicenseConfigServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static LicenseConfigServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LicenseConfigServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseConfigServiceBlockingStub(channel, callOptions); + } + }; + return LicenseConfigServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static LicenseConfigServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public LicenseConfigServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseConfigServiceFutureStub(channel, callOptions); + } + }; + return LicenseConfigServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
            +   * Service for managing license config related resources.
            +   * 
            + */ + public interface AsyncService { + + /** + * + * + *
            +     * Creates a
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This
            +     * method should only be used for creating NotebookLm licenses or Gemini
            +     * Enterprise free trial licenses.
            +     * 
            + */ + default void createLicenseConfig( + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateLicenseConfigMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]
            +     * 
            + */ + default void updateLicenseConfig( + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateLicenseConfigMethod(), responseObserver); + } + + /** + * + * + *
            +     * Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
            +     * 
            + */ + default void getLicenseConfig( + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetLicenseConfigMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists all the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s
            +     * associated with the project.
            +     * 
            + */ + default void listLicenseConfigs( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListLicenseConfigsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Distributes a
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from
            +     * billing account level to project level.
            +     * 
            + */ + default void distributeLicenseConfig( + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDistributeLicenseConfigMethod(), responseObserver); + } + + /** + * + * + *
            +     * This method is called from the billing account side to retract the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the
            +     * given project back to the billing account.
            +     * 
            + */ + default void retractLicenseConfig( + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRetractLicenseConfigMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service LicenseConfigService. + * + *
            +   * Service for managing license config related resources.
            +   * 
            + */ + public abstract static class LicenseConfigServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return LicenseConfigServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service LicenseConfigService. + * + *
            +   * Service for managing license config related resources.
            +   * 
            + */ + public static final class LicenseConfigServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private LicenseConfigServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LicenseConfigServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseConfigServiceStub(channel, callOptions); + } + + /** + * + * + *
            +     * Creates a
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This
            +     * method should only be used for creating NotebookLm licenses or Gemini
            +     * Enterprise free trial licenses.
            +     * 
            + */ + public void createLicenseConfig( + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateLicenseConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Updates the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]
            +     * 
            + */ + public void updateLicenseConfig( + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateLicenseConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
            +     * 
            + */ + public void getLicenseConfig( + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetLicenseConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Lists all the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s
            +     * associated with the project.
            +     * 
            + */ + public void listLicenseConfigs( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLicenseConfigsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Distributes a
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from
            +     * billing account level to project level.
            +     * 
            + */ + public void distributeLicenseConfig( + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDistributeLicenseConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * This method is called from the billing account side to retract the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the
            +     * given project back to the billing account.
            +     * 
            + */ + public void retractLicenseConfig( + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRetractLicenseConfigMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service LicenseConfigService. + * + *
            +   * Service for managing license config related resources.
            +   * 
            + */ + public static final class LicenseConfigServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private LicenseConfigServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LicenseConfigServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseConfigServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
            +     * Creates a
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This
            +     * method should only be used for creating NotebookLm licenses or Gemini
            +     * Enterprise free trial licenses.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfig createLicenseConfig( + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateLicenseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfig updateLicenseConfig( + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateLicenseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfig getLicenseConfig( + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetLicenseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists all the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s
            +     * associated with the project.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse listLicenseConfigs( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListLicenseConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Distributes a
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from
            +     * billing account level to project level.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse + distributeLicenseConfig( + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDistributeLicenseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * This method is called from the billing account side to retract the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the
            +     * given project back to the billing account.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse + retractLicenseConfig( + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRetractLicenseConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service LicenseConfigService. + * + *
            +   * Service for managing license config related resources.
            +   * 
            + */ + public static final class LicenseConfigServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private LicenseConfigServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LicenseConfigServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseConfigServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
            +     * Creates a
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This
            +     * method should only be used for creating NotebookLm licenses or Gemini
            +     * Enterprise free trial licenses.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfig createLicenseConfig( + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateLicenseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfig updateLicenseConfig( + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateLicenseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfig getLicenseConfig( + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetLicenseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists all the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s
            +     * associated with the project.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse listLicenseConfigs( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLicenseConfigsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Distributes a
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from
            +     * billing account level to project level.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse + distributeLicenseConfig( + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDistributeLicenseConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * This method is called from the billing account side to retract the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the
            +     * given project back to the billing account.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse + retractLicenseConfig( + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRetractLicenseConfigMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service LicenseConfigService. + * + *
            +   * Service for managing license config related resources.
            +   * 
            + */ + public static final class LicenseConfigServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private LicenseConfigServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected LicenseConfigServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new LicenseConfigServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
            +     * Creates a
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This
            +     * method should only be used for creating NotebookLm licenses or Gemini
            +     * Enterprise free trial licenses.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.LicenseConfig> + createLicenseConfig( + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateLicenseConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Updates the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.LicenseConfig> + updateLicenseConfig( + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateLicenseConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.LicenseConfig> + getLicenseConfig(com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetLicenseConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Lists all the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s
            +     * associated with the project.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse> + listLicenseConfigs( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLicenseConfigsMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Distributes a
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from
            +     * billing account level to project level.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse> + distributeLicenseConfig( + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDistributeLicenseConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * This method is called from the billing account side to retract the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the
            +     * given project back to the billing account.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse> + retractLicenseConfig( + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRetractLicenseConfigMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_LICENSE_CONFIG = 0; + private static final int METHODID_UPDATE_LICENSE_CONFIG = 1; + private static final int METHODID_GET_LICENSE_CONFIG = 2; + private static final int METHODID_LIST_LICENSE_CONFIGS = 3; + private static final int METHODID_DISTRIBUTE_LICENSE_CONFIG = 4; + private static final int METHODID_RETRACT_LICENSE_CONFIG = 5; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_LICENSE_CONFIG: + serviceImpl.createLicenseConfig( + (com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_LICENSE_CONFIG: + serviceImpl.updateLicenseConfig( + (com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_LICENSE_CONFIG: + serviceImpl.getLicenseConfig( + (com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_LICENSE_CONFIGS: + serviceImpl.listLicenseConfigs( + (com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse>) + responseObserver); + break; + case METHODID_DISTRIBUTE_LICENSE_CONFIG: + serviceImpl.distributeLicenseConfig( + (com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse>) + responseObserver); + break; + case METHODID_RETRACT_LICENSE_CONFIG: + serviceImpl.retractLicenseConfig( + (com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateLicenseConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.LicenseConfig>( + service, METHODID_CREATE_LICENSE_CONFIG))) + .addMethod( + getUpdateLicenseConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.LicenseConfig>( + service, METHODID_UPDATE_LICENSE_CONFIG))) + .addMethod( + getGetLicenseConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.LicenseConfig>( + service, METHODID_GET_LICENSE_CONFIG))) + .addMethod( + getListLicenseConfigsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest, + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse>( + service, METHODID_LIST_LICENSE_CONFIGS))) + .addMethod( + getDistributeLicenseConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse>( + service, METHODID_DISTRIBUTE_LICENSE_CONFIG))) + .addMethod( + getRetractLicenseConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest, + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse>( + service, METHODID_RETRACT_LICENSE_CONFIG))) + .build(); + } + + private abstract static class LicenseConfigServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + LicenseConfigServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("LicenseConfigService"); + } + } + + private static final class LicenseConfigServiceFileDescriptorSupplier + extends LicenseConfigServiceBaseDescriptorSupplier { + LicenseConfigServiceFileDescriptorSupplier() {} + } + + private static final class LicenseConfigServiceMethodDescriptorSupplier + extends LicenseConfigServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + LicenseConfigServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (LicenseConfigServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new LicenseConfigServiceFileDescriptorSupplier()) + .addMethod(getCreateLicenseConfigMethod()) + .addMethod(getUpdateLicenseConfigMethod()) + .addMethod(getGetLicenseConfigMethod()) + .addMethod(getListLicenseConfigsMethod()) + .addMethod(getDistributeLicenseConfigMethod()) + .addMethod(getRetractLicenseConfigMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceGrpc.java index 2607652430c7..7a16216e5dbc 100644 --- a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceGrpc.java +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceGrpc.java @@ -34,6 +34,105 @@ private ServingConfigServiceGrpc() {} "google.cloud.discoveryengine.v1beta.ServingConfigService"; // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest, + com.google.cloud.discoveryengine.v1beta.ServingConfig> + getCreateServingConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateServingConfig", + requestType = com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.ServingConfig.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest, + com.google.cloud.discoveryengine.v1beta.ServingConfig> + getCreateServingConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest, + com.google.cloud.discoveryengine.v1beta.ServingConfig> + getCreateServingConfigMethod; + if ((getCreateServingConfigMethod = ServingConfigServiceGrpc.getCreateServingConfigMethod) + == null) { + synchronized (ServingConfigServiceGrpc.class) { + if ((getCreateServingConfigMethod = ServingConfigServiceGrpc.getCreateServingConfigMethod) + == null) { + ServingConfigServiceGrpc.getCreateServingConfigMethod = + getCreateServingConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateServingConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ServingConfig + .getDefaultInstance())) + .setSchemaDescriptor( + new ServingConfigServiceMethodDescriptorSupplier("CreateServingConfig")) + .build(); + } + } + } + return getCreateServingConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest, + com.google.protobuf.Empty> + getDeleteServingConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteServingConfig", + requestType = com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest, + com.google.protobuf.Empty> + getDeleteServingConfigMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest, + com.google.protobuf.Empty> + getDeleteServingConfigMethod; + if ((getDeleteServingConfigMethod = ServingConfigServiceGrpc.getDeleteServingConfigMethod) + == null) { + synchronized (ServingConfigServiceGrpc.class) { + if ((getDeleteServingConfigMethod = ServingConfigServiceGrpc.getDeleteServingConfigMethod) + == null) { + ServingConfigServiceGrpc.getDeleteServingConfigMethod = + getDeleteServingConfigMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteServingConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ServingConfigServiceMethodDescriptorSupplier("DeleteServingConfig")) + .build(); + } + } + } + return getDeleteServingConfigMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.discoveryengine.v1beta.UpdateServingConfigRequest, com.google.cloud.discoveryengine.v1beta.ServingConfig> @@ -245,6 +344,42 @@ public ServingConfigServiceFutureStub newStub( */ public interface AsyncService { + /** + * + * + *
            +     * Creates a ServingConfig.
            +     * Note: The Google Cloud console works only with the default serving config.
            +     * Additional ServingConfigs can be created and managed only via the API.
            +     * A maximum of 100
            +     * [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]s are
            +     * allowed in an [Engine][google.cloud.discoveryengine.v1beta.Engine],
            +     * otherwise a RESOURCE_EXHAUSTED error is returned.
            +     * 
            + */ + default void createServingConfig( + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateServingConfigMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes a ServingConfig.
            +     * Returns a NOT_FOUND error if the ServingConfig does not exist.
            +     * 
            + */ + default void deleteServingConfig( + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteServingConfigMethod(), responseObserver); + } + /** * * @@ -331,6 +466,46 @@ protected ServingConfigServiceStub build( return new ServingConfigServiceStub(channel, callOptions); } + /** + * + * + *
            +     * Creates a ServingConfig.
            +     * Note: The Google Cloud console works only with the default serving config.
            +     * Additional ServingConfigs can be created and managed only via the API.
            +     * A maximum of 100
            +     * [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]s are
            +     * allowed in an [Engine][google.cloud.discoveryengine.v1beta.Engine],
            +     * otherwise a RESOURCE_EXHAUSTED error is returned.
            +     * 
            + */ + public void createServingConfig( + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateServingConfigMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes a ServingConfig.
            +     * Returns a NOT_FOUND error if the ServingConfig does not exist.
            +     * 
            + */ + public void deleteServingConfig( + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteServingConfigMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -407,6 +582,41 @@ protected ServingConfigServiceBlockingV2Stub build( return new ServingConfigServiceBlockingV2Stub(channel, callOptions); } + /** + * + * + *
            +     * Creates a ServingConfig.
            +     * Note: The Google Cloud console works only with the default serving config.
            +     * Additional ServingConfigs can be created and managed only via the API.
            +     * A maximum of 100
            +     * [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]s are
            +     * allowed in an [Engine][google.cloud.discoveryengine.v1beta.Engine],
            +     * otherwise a RESOURCE_EXHAUSTED error is returned.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.ServingConfig createServingConfig( + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateServingConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a ServingConfig.
            +     * Returns a NOT_FOUND error if the ServingConfig does not exist.
            +     * 
            + */ + public com.google.protobuf.Empty deleteServingConfig( + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteServingConfigMethod(), getCallOptions(), request); + } + /** * * @@ -473,6 +683,39 @@ protected ServingConfigServiceBlockingStub build( return new ServingConfigServiceBlockingStub(channel, callOptions); } + /** + * + * + *
            +     * Creates a ServingConfig.
            +     * Note: The Google Cloud console works only with the default serving config.
            +     * Additional ServingConfigs can be created and managed only via the API.
            +     * A maximum of 100
            +     * [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]s are
            +     * allowed in an [Engine][google.cloud.discoveryengine.v1beta.Engine],
            +     * otherwise a RESOURCE_EXHAUSTED error is returned.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.ServingConfig createServingConfig( + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateServingConfigMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a ServingConfig.
            +     * Returns a NOT_FOUND error if the ServingConfig does not exist.
            +     * 
            + */ + public com.google.protobuf.Empty deleteServingConfig( + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteServingConfigMethod(), getCallOptions(), request); + } + /** * * @@ -536,6 +779,42 @@ protected ServingConfigServiceFutureStub build( return new ServingConfigServiceFutureStub(channel, callOptions); } + /** + * + * + *
            +     * Creates a ServingConfig.
            +     * Note: The Google Cloud console works only with the default serving config.
            +     * Additional ServingConfigs can be created and managed only via the API.
            +     * A maximum of 100
            +     * [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]s are
            +     * allowed in an [Engine][google.cloud.discoveryengine.v1beta.Engine],
            +     * otherwise a RESOURCE_EXHAUSTED error is returned.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.ServingConfig> + createServingConfig( + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateServingConfigMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Deletes a ServingConfig.
            +     * Returns a NOT_FOUND error if the ServingConfig does not exist.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + deleteServingConfig( + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteServingConfigMethod(), getCallOptions()), request); + } + /** * * @@ -583,9 +862,11 @@ protected ServingConfigServiceFutureStub build( } } - private static final int METHODID_UPDATE_SERVING_CONFIG = 0; - private static final int METHODID_GET_SERVING_CONFIG = 1; - private static final int METHODID_LIST_SERVING_CONFIGS = 2; + private static final int METHODID_CREATE_SERVING_CONFIG = 0; + private static final int METHODID_DELETE_SERVING_CONFIG = 1; + private static final int METHODID_UPDATE_SERVING_CONFIG = 2; + private static final int METHODID_GET_SERVING_CONFIG = 3; + private static final int METHODID_LIST_SERVING_CONFIGS = 4; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -604,6 +885,17 @@ private static final class MethodHandlers @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { + case METHODID_CREATE_SERVING_CONFIG: + serviceImpl.createServingConfig( + (com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SERVING_CONFIG: + serviceImpl.deleteServingConfig( + (com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_UPDATE_SERVING_CONFIG: serviceImpl.updateServingConfig( (com.google.cloud.discoveryengine.v1beta.UpdateServingConfigRequest) request, @@ -641,6 +933,19 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateServingConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest, + com.google.cloud.discoveryengine.v1beta.ServingConfig>( + service, METHODID_CREATE_SERVING_CONFIG))) + .addMethod( + getDeleteServingConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_SERVING_CONFIG))) .addMethod( getUpdateServingConfigMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -713,6 +1018,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new ServingConfigServiceFileDescriptorSupplier()) + .addMethod(getCreateServingConfigMethod()) + .addMethod(getDeleteServingConfigMethod()) .addMethod(getUpdateServingConfigMethod()) .addMethod(getGetServingConfigMethod()) .addMethod(getListServingConfigsMethod()) diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceGrpc.java new file mode 100644 index 000000000000..1e29763193a0 --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceGrpc.java @@ -0,0 +1,730 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
            + * Service for managing User Licenses.
            + * 
            + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class UserLicenseServiceGrpc { + + private UserLicenseServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1beta.UserLicenseService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest, + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse> + getListUserLicensesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListUserLicenses", + requestType = com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest, + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse> + getListUserLicensesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest, + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse> + getListUserLicensesMethod; + if ((getListUserLicensesMethod = UserLicenseServiceGrpc.getListUserLicensesMethod) == null) { + synchronized (UserLicenseServiceGrpc.class) { + if ((getListUserLicensesMethod = UserLicenseServiceGrpc.getListUserLicensesMethod) + == null) { + UserLicenseServiceGrpc.getListUserLicensesMethod = + getListUserLicensesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListUserLicenses")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new UserLicenseServiceMethodDescriptorSupplier("ListUserLicenses")) + .build(); + } + } + } + return getListUserLicensesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest, + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse> + getListLicenseConfigsUsageStatsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListLicenseConfigsUsageStats", + requestType = + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest.class, + responseType = + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest, + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse> + getListLicenseConfigsUsageStatsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest, + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse> + getListLicenseConfigsUsageStatsMethod; + if ((getListLicenseConfigsUsageStatsMethod = + UserLicenseServiceGrpc.getListLicenseConfigsUsageStatsMethod) + == null) { + synchronized (UserLicenseServiceGrpc.class) { + if ((getListLicenseConfigsUsageStatsMethod = + UserLicenseServiceGrpc.getListLicenseConfigsUsageStatsMethod) + == null) { + UserLicenseServiceGrpc.getListLicenseConfigsUsageStatsMethod = + getListLicenseConfigsUsageStatsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListLicenseConfigsUsageStats")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta + .ListLicenseConfigsUsageStatsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta + .ListLicenseConfigsUsageStatsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new UserLicenseServiceMethodDescriptorSupplier( + "ListLicenseConfigsUsageStats")) + .build(); + } + } + } + return getListLicenseConfigsUsageStatsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest, + com.google.longrunning.Operation> + getBatchUpdateUserLicensesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchUpdateUserLicenses", + requestType = com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest, + com.google.longrunning.Operation> + getBatchUpdateUserLicensesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest, + com.google.longrunning.Operation> + getBatchUpdateUserLicensesMethod; + if ((getBatchUpdateUserLicensesMethod = UserLicenseServiceGrpc.getBatchUpdateUserLicensesMethod) + == null) { + synchronized (UserLicenseServiceGrpc.class) { + if ((getBatchUpdateUserLicensesMethod = + UserLicenseServiceGrpc.getBatchUpdateUserLicensesMethod) + == null) { + UserLicenseServiceGrpc.getBatchUpdateUserLicensesMethod = + getBatchUpdateUserLicensesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchUpdateUserLicenses")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new UserLicenseServiceMethodDescriptorSupplier("BatchUpdateUserLicenses")) + .build(); + } + } + } + return getBatchUpdateUserLicensesMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static UserLicenseServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UserLicenseServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserLicenseServiceStub(channel, callOptions); + } + }; + return UserLicenseServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static UserLicenseServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UserLicenseServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserLicenseServiceBlockingV2Stub(channel, callOptions); + } + }; + return UserLicenseServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static UserLicenseServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UserLicenseServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserLicenseServiceBlockingStub(channel, callOptions); + } + }; + return UserLicenseServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static UserLicenseServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UserLicenseServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserLicenseServiceFutureStub(channel, callOptions); + } + }; + return UserLicenseServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
            +   * Service for managing User Licenses.
            +   * 
            + */ + public interface AsyncService { + + /** + * + * + *
            +     * Lists the User Licenses.
            +     * 
            + */ + default void listUserLicenses( + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListUserLicensesMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists all the
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats]s
            +     * associated with the project.
            +     * 
            + */ + default void listLicenseConfigsUsageStats( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListLicenseConfigsUsageStatsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates the User License.
            +     * This method is used for batch assign/unassign licenses to users.
            +     * 
            + */ + default void batchUpdateUserLicenses( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchUpdateUserLicensesMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service UserLicenseService. + * + *
            +   * Service for managing User Licenses.
            +   * 
            + */ + public abstract static class UserLicenseServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return UserLicenseServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service UserLicenseService. + * + *
            +   * Service for managing User Licenses.
            +   * 
            + */ + public static final class UserLicenseServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private UserLicenseServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UserLicenseServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserLicenseServiceStub(channel, callOptions); + } + + /** + * + * + *
            +     * Lists the User Licenses.
            +     * 
            + */ + public void listUserLicenses( + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUserLicensesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Lists all the
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats]s
            +     * associated with the project.
            +     * 
            + */ + public void listLicenseConfigsUsageStats( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListLicenseConfigsUsageStatsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Updates the User License.
            +     * This method is used for batch assign/unassign licenses to users.
            +     * 
            + */ + public void batchUpdateUserLicenses( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchUpdateUserLicensesMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service UserLicenseService. + * + *
            +   * Service for managing User Licenses.
            +   * 
            + */ + public static final class UserLicenseServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private UserLicenseServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UserLicenseServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserLicenseServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
            +     * Lists the User Licenses.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse listUserLicenses( + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListUserLicensesMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists all the
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats]s
            +     * associated with the project.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse + listLicenseConfigsUsageStats( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListLicenseConfigsUsageStatsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates the User License.
            +     * This method is used for batch assign/unassign licenses to users.
            +     * 
            + */ + public com.google.longrunning.Operation batchUpdateUserLicenses( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getBatchUpdateUserLicensesMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service UserLicenseService. + * + *
            +   * Service for managing User Licenses.
            +   * 
            + */ + public static final class UserLicenseServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private UserLicenseServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UserLicenseServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserLicenseServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
            +     * Lists the User Licenses.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse listUserLicenses( + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUserLicensesMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists all the
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats]s
            +     * associated with the project.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse + listLicenseConfigsUsageStats( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListLicenseConfigsUsageStatsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates the User License.
            +     * This method is used for batch assign/unassign licenses to users.
            +     * 
            + */ + public com.google.longrunning.Operation batchUpdateUserLicenses( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchUpdateUserLicensesMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service UserLicenseService. + * + *
            +   * Service for managing User Licenses.
            +   * 
            + */ + public static final class UserLicenseServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private UserLicenseServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UserLicenseServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserLicenseServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
            +     * Lists the User Licenses.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse> + listUserLicenses(com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUserLicensesMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Lists all the
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats]s
            +     * associated with the project.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse> + listLicenseConfigsUsageStats( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListLicenseConfigsUsageStatsMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Updates the User License.
            +     * This method is used for batch assign/unassign licenses to users.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + batchUpdateUserLicenses( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchUpdateUserLicensesMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_USER_LICENSES = 0; + private static final int METHODID_LIST_LICENSE_CONFIGS_USAGE_STATS = 1; + private static final int METHODID_BATCH_UPDATE_USER_LICENSES = 2; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_USER_LICENSES: + serviceImpl.listUserLicenses( + (com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse>) + responseObserver); + break; + case METHODID_LIST_LICENSE_CONFIGS_USAGE_STATS: + serviceImpl.listLicenseConfigsUsageStats( + (com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse>) + responseObserver); + break; + case METHODID_BATCH_UPDATE_USER_LICENSES: + serviceImpl.batchUpdateUserLicenses( + (com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListUserLicensesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest, + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse>( + service, METHODID_LIST_USER_LICENSES))) + .addMethod( + getListLicenseConfigsUsageStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest, + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse>( + service, METHODID_LIST_LICENSE_CONFIGS_USAGE_STATS))) + .addMethod( + getBatchUpdateUserLicensesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest, + com.google.longrunning.Operation>( + service, METHODID_BATCH_UPDATE_USER_LICENSES))) + .build(); + } + + private abstract static class UserLicenseServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + UserLicenseServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("UserLicenseService"); + } + } + + private static final class UserLicenseServiceFileDescriptorSupplier + extends UserLicenseServiceBaseDescriptorSupplier { + UserLicenseServiceFileDescriptorSupplier() {} + } + + private static final class UserLicenseServiceMethodDescriptorSupplier + extends UserLicenseServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + UserLicenseServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (UserLicenseServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new UserLicenseServiceFileDescriptorSupplier()) + .addMethod(getListUserLicensesMethod()) + .addMethod(getListLicenseConfigsUsageStatsMethod()) + .addMethod(getBatchUpdateUserLicensesMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceGrpc.java b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceGrpc.java new file mode 100644 index 000000000000..61e46685dedf --- /dev/null +++ b/java-discoveryengine/grpc-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceGrpc.java @@ -0,0 +1,559 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
            + * Service for managing User Stores.
            + * 
            + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class UserStoreServiceGrpc { + + private UserStoreServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.discoveryengine.v1beta.UserStoreService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest, + com.google.cloud.discoveryengine.v1beta.UserStore> + getGetUserStoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetUserStore", + requestType = com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.UserStore.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest, + com.google.cloud.discoveryengine.v1beta.UserStore> + getGetUserStoreMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest, + com.google.cloud.discoveryengine.v1beta.UserStore> + getGetUserStoreMethod; + if ((getGetUserStoreMethod = UserStoreServiceGrpc.getGetUserStoreMethod) == null) { + synchronized (UserStoreServiceGrpc.class) { + if ((getGetUserStoreMethod = UserStoreServiceGrpc.getGetUserStoreMethod) == null) { + UserStoreServiceGrpc.getGetUserStoreMethod = + getGetUserStoreMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetUserStore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.UserStore + .getDefaultInstance())) + .setSchemaDescriptor( + new UserStoreServiceMethodDescriptorSupplier("GetUserStore")) + .build(); + } + } + } + return getGetUserStoreMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest, + com.google.cloud.discoveryengine.v1beta.UserStore> + getUpdateUserStoreMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateUserStore", + requestType = com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest.class, + responseType = com.google.cloud.discoveryengine.v1beta.UserStore.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest, + com.google.cloud.discoveryengine.v1beta.UserStore> + getUpdateUserStoreMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest, + com.google.cloud.discoveryengine.v1beta.UserStore> + getUpdateUserStoreMethod; + if ((getUpdateUserStoreMethod = UserStoreServiceGrpc.getUpdateUserStoreMethod) == null) { + synchronized (UserStoreServiceGrpc.class) { + if ((getUpdateUserStoreMethod = UserStoreServiceGrpc.getUpdateUserStoreMethod) == null) { + UserStoreServiceGrpc.getUpdateUserStoreMethod = + getUpdateUserStoreMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateUserStore")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.discoveryengine.v1beta.UserStore + .getDefaultInstance())) + .setSchemaDescriptor( + new UserStoreServiceMethodDescriptorSupplier("UpdateUserStore")) + .build(); + } + } + } + return getUpdateUserStoreMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static UserStoreServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UserStoreServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserStoreServiceStub(channel, callOptions); + } + }; + return UserStoreServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static UserStoreServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UserStoreServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserStoreServiceBlockingV2Stub(channel, callOptions); + } + }; + return UserStoreServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static UserStoreServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UserStoreServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserStoreServiceBlockingStub(channel, callOptions); + } + }; + return UserStoreServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static UserStoreServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public UserStoreServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserStoreServiceFutureStub(channel, callOptions); + } + }; + return UserStoreServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
            +   * Service for managing User Stores.
            +   * 
            + */ + public interface AsyncService { + + /** + * + * + *
            +     * Gets the User Store.
            +     * 
            + */ + default void getUserStore( + com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetUserStoreMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates the User Store.
            +     * 
            + */ + default void updateUserStore( + com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateUserStoreMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service UserStoreService. + * + *
            +   * Service for managing User Stores.
            +   * 
            + */ + public abstract static class UserStoreServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return UserStoreServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service UserStoreService. + * + *
            +   * Service for managing User Stores.
            +   * 
            + */ + public static final class UserStoreServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private UserStoreServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UserStoreServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserStoreServiceStub(channel, callOptions); + } + + /** + * + * + *
            +     * Gets the User Store.
            +     * 
            + */ + public void getUserStore( + com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetUserStoreMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Updates the User Store.
            +     * 
            + */ + public void updateUserStore( + com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateUserStoreMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service UserStoreService. + * + *
            +   * Service for managing User Stores.
            +   * 
            + */ + public static final class UserStoreServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private UserStoreServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UserStoreServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserStoreServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
            +     * Gets the User Store.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.UserStore getUserStore( + com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetUserStoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates the User Store.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.UserStore updateUserStore( + com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateUserStoreMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service UserStoreService. + * + *
            +   * Service for managing User Stores.
            +   * 
            + */ + public static final class UserStoreServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private UserStoreServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UserStoreServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserStoreServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
            +     * Gets the User Store.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.UserStore getUserStore( + com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetUserStoreMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates the User Store.
            +     * 
            + */ + public com.google.cloud.discoveryengine.v1beta.UserStore updateUserStore( + com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateUserStoreMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service UserStoreService. + * + *
            +   * Service for managing User Stores.
            +   * 
            + */ + public static final class UserStoreServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private UserStoreServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected UserStoreServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new UserStoreServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
            +     * Gets the User Store.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.UserStore> + getUserStore(com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetUserStoreMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Updates the User Store.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.discoveryengine.v1beta.UserStore> + updateUserStore(com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateUserStoreMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_USER_STORE = 0; + private static final int METHODID_UPDATE_USER_STORE = 1; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_USER_STORE: + serviceImpl.getUserStore( + (com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_USER_STORE: + serviceImpl.updateUserStore( + (com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetUserStoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest, + com.google.cloud.discoveryengine.v1beta.UserStore>( + service, METHODID_GET_USER_STORE))) + .addMethod( + getUpdateUserStoreMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest, + com.google.cloud.discoveryengine.v1beta.UserStore>( + service, METHODID_UPDATE_USER_STORE))) + .build(); + } + + private abstract static class UserStoreServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + UserStoreServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserStoreServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("UserStoreService"); + } + } + + private static final class UserStoreServiceFileDescriptorSupplier + extends UserStoreServiceBaseDescriptorSupplier { + UserStoreServiceFileDescriptorSupplier() {} + } + + private static final class UserStoreServiceMethodDescriptorSupplier + extends UserStoreServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + UserStoreServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (UserStoreServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new UserStoreServiceFileDescriptorSupplier()) + .addMethod(getGetUserStoreMethod()) + .addMethod(getUpdateUserStoreMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfig.java new file mode 100644 index 000000000000..eda2225460f4 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfig.java @@ -0,0 +1,925 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/acl_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Access Control Configuration.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AclConfig} + */ +@com.google.protobuf.Generated +public final class AclConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AclConfig) + AclConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AclConfig"); + } + + // Use AclConfig.newBuilder() to construct. + private AclConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclConfig() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AclConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AclConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AclConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AclConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AclConfig.class, + com.google.cloud.discoveryengine.v1beta.AclConfig.Builder.class); + } + + 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 acl configuration.
            +   * Format:
            +   * `projects/{project}/locations/{location}/aclConfig`.
            +   *
            +   * 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 acl configuration.
            +   * Format:
            +   * `projects/{project}/locations/{location}/aclConfig`.
            +   *
            +   * 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 IDP_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.IdpConfig idpConfig_; + + /** + * + * + *
            +   * Identity provider config.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 2; + * + * @return Whether the idpConfig field is set. + */ + @java.lang.Override + public boolean hasIdpConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Identity provider config.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 2; + * + * @return The idpConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdpConfig getIdpConfig() { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.IdpConfig.getDefaultInstance() + : idpConfig_; + } + + /** + * + * + *
            +   * Identity provider config.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdpConfigOrBuilder getIdpConfigOrBuilder() { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.IdpConfig.getDefaultInstance() + : idpConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getIdpConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIdpConfig()); + } + 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.v1beta.AclConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AclConfig other = + (com.google.cloud.discoveryengine.v1beta.AclConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (hasIdpConfig() != other.hasIdpConfig()) return false; + if (hasIdpConfig()) { + if (!getIdpConfig().equals(other.getIdpConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasIdpConfig()) { + hash = (37 * hash) + IDP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getIdpConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AclConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AclConfig 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.v1beta.AclConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AclConfig parseFrom( + 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.v1beta.AclConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AclConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AclConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AclConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AclConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AclConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AclConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AclConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.AclConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Access Control Configuration.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AclConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AclConfig) + com.google.cloud.discoveryengine.v1beta.AclConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AclConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AclConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AclConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AclConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AclConfig.class, + com.google.cloud.discoveryengine.v1beta.AclConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.AclConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetIdpConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + idpConfig_ = null; + if (idpConfigBuilder_ != null) { + idpConfigBuilder_.dispose(); + idpConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AclConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AclConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AclConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AclConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AclConfig build() { + com.google.cloud.discoveryengine.v1beta.AclConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AclConfig buildPartial() { + com.google.cloud.discoveryengine.v1beta.AclConfig result = + new com.google.cloud.discoveryengine.v1beta.AclConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.AclConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.idpConfig_ = idpConfigBuilder_ == null ? idpConfig_ : idpConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.AclConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.AclConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.AclConfig other) { + if (other == com.google.cloud.discoveryengine.v1beta.AclConfig.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasIdpConfig()) { + mergeIdpConfig(other.getIdpConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetIdpConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Immutable. The full resource name of the acl configuration.
            +     * Format:
            +     * `projects/{project}/locations/{location}/aclConfig`.
            +     *
            +     * 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; + } + } + + /** + * + * + *
            +     * Immutable. The full resource name of the acl configuration.
            +     * Format:
            +     * `projects/{project}/locations/{location}/aclConfig`.
            +     *
            +     * 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; + } + } + + /** + * + * + *
            +     * Immutable. The full resource name of the acl configuration.
            +     * Format:
            +     * `projects/{project}/locations/{location}/aclConfig`.
            +     *
            +     * 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; + } + + /** + * + * + *
            +     * Immutable. The full resource name of the acl configuration.
            +     * Format:
            +     * `projects/{project}/locations/{location}/aclConfig`.
            +     *
            +     * 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; + } + + /** + * + * + *
            +     * Immutable. The full resource name of the acl configuration.
            +     * Format:
            +     * `projects/{project}/locations/{location}/aclConfig`.
            +     *
            +     * 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; + } + + private com.google.cloud.discoveryengine.v1beta.IdpConfig idpConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdpConfig, + com.google.cloud.discoveryengine.v1beta.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1beta.IdpConfigOrBuilder> + idpConfigBuilder_; + + /** + * + * + *
            +     * Identity provider config.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 2; + * + * @return Whether the idpConfig field is set. + */ + public boolean hasIdpConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Identity provider config.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 2; + * + * @return The idpConfig. + */ + public com.google.cloud.discoveryengine.v1beta.IdpConfig getIdpConfig() { + if (idpConfigBuilder_ == null) { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.IdpConfig.getDefaultInstance() + : idpConfig_; + } else { + return idpConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Identity provider config.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 2; + */ + public Builder setIdpConfig(com.google.cloud.discoveryengine.v1beta.IdpConfig value) { + if (idpConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + idpConfig_ = value; + } else { + idpConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identity provider config.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 2; + */ + public Builder setIdpConfig( + com.google.cloud.discoveryengine.v1beta.IdpConfig.Builder builderForValue) { + if (idpConfigBuilder_ == null) { + idpConfig_ = builderForValue.build(); + } else { + idpConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identity provider config.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 2; + */ + public Builder mergeIdpConfig(com.google.cloud.discoveryengine.v1beta.IdpConfig value) { + if (idpConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && idpConfig_ != null + && idpConfig_ + != com.google.cloud.discoveryengine.v1beta.IdpConfig.getDefaultInstance()) { + getIdpConfigBuilder().mergeFrom(value); + } else { + idpConfig_ = value; + } + } else { + idpConfigBuilder_.mergeFrom(value); + } + if (idpConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Identity provider config.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 2; + */ + public Builder clearIdpConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + idpConfig_ = null; + if (idpConfigBuilder_ != null) { + idpConfigBuilder_.dispose(); + idpConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identity provider config.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 2; + */ + public com.google.cloud.discoveryengine.v1beta.IdpConfig.Builder getIdpConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetIdpConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Identity provider config.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 2; + */ + public com.google.cloud.discoveryengine.v1beta.IdpConfigOrBuilder getIdpConfigOrBuilder() { + if (idpConfigBuilder_ != null) { + return idpConfigBuilder_.getMessageOrBuilder(); + } else { + return idpConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.IdpConfig.getDefaultInstance() + : idpConfig_; + } + } + + /** + * + * + *
            +     * Identity provider config.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdpConfig, + com.google.cloud.discoveryengine.v1beta.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1beta.IdpConfigOrBuilder> + internalGetIdpConfigFieldBuilder() { + if (idpConfigBuilder_ == null) { + idpConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdpConfig, + com.google.cloud.discoveryengine.v1beta.IdpConfig.Builder, + com.google.cloud.discoveryengine.v1beta.IdpConfigOrBuilder>( + getIdpConfig(), getParentForChildren(), isClean()); + idpConfig_ = null; + } + return idpConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AclConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AclConfig) + private static final com.google.cloud.discoveryengine.v1beta.AclConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.AclConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.AclConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AclConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigName.java new file mode 100644 index 000000000000..21a94fe81ec4 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +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 AclConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/aclConfig"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected AclConfigName() { + project = null; + location = null; + } + + private AclConfigName(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 AclConfigName 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 AclConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "AclConfigName.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 (AclConfigName 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()) { + AclConfigName that = ((AclConfigName) 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}/aclConfig. */ + 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(AclConfigName aclConfigName) { + this.project = aclConfigName.project; + this.location = aclConfigName.location; + } + + public AclConfigName build() { + return new AclConfigName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigOrBuilder.java new file mode 100644 index 000000000000..39e91b815a20 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/acl_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface AclConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AclConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Immutable. The full resource name of the acl configuration.
            +   * Format:
            +   * `projects/{project}/locations/{location}/aclConfig`.
            +   *
            +   * 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.String getName(); + + /** + * + * + *
            +   * Immutable. The full resource name of the acl configuration.
            +   * Format:
            +   * `projects/{project}/locations/{location}/aclConfig`.
            +   *
            +   * 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. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Identity provider config.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 2; + * + * @return Whether the idpConfig field is set. + */ + boolean hasIdpConfig(); + + /** + * + * + *
            +   * Identity provider config.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 2; + * + * @return The idpConfig. + */ + com.google.cloud.discoveryengine.v1beta.IdpConfig getIdpConfig(); + + /** + * + * + *
            +   * Identity provider config.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig idp_config = 2; + */ + com.google.cloud.discoveryengine.v1beta.IdpConfigOrBuilder getIdpConfigOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigProto.java new file mode 100644 index 000000000000..a116c50e6c5e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigProto.java @@ -0,0 +1,104 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/acl_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public final class AclConfigProto extends com.google.protobuf.GeneratedFile { + private AclConfigProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AclConfigProto"); + } + + 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_discoveryengine_v1beta_AclConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AclConfig_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/cloud/discoveryengine/v1beta/ac" + + "l_config.proto\022#google.cloud.discoveryen" + + "gine.v1beta\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\0320google/" + + "cloud/discoveryengine/v1beta/common.prot" + + "o\"\304\001\n\tAclConfig\022\021\n\004name\030\001 \001(\tB\003\340A\005\022B\n\nid" + + "p_config\030\002 \001(\0132..google.cloud.discoverye" + + "ngine.v1beta.IdpConfig:`\352A]\n(discoveryen" + + "gine.googleapis.com/AclConfig\0221projects/" + + "{project}/locations/{location}/aclConfig" + + "B\225\002\n\'com.google.cloud.discoveryengine.v1" + + "betaB\016AclConfigProtoP\001ZQcloud.google.com" + + "/go/discoveryengine/apiv1beta/discoverye" + + "nginepb;discoveryenginepb\242\002\017DISCOVERYENG" + + "INE\252\002#Google.Cloud.DiscoveryEngine.V1Bet" + + "a\312\002#Google\\Cloud\\DiscoveryEngine\\V1beta\352" + + "\002&Google::Cloud::DiscoveryEngine::V1beta" + + "b\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.cloud.discoveryengine.v1beta.CommonProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_AclConfig_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1beta_AclConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AclConfig_descriptor, + new java.lang.String[] { + "Name", "IdpConfig", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.CommonProto.getDescriptor(); + 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); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceProto.java new file mode 100644 index 000000000000..d65bf6d7c402 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AclConfigServiceProto.java @@ -0,0 +1,141 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/acl_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public final class AclConfigServiceProto extends com.google.protobuf.GeneratedFile { + private AclConfigServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AclConfigServiceProto"); + } + + 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_discoveryengine_v1beta_GetAclConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_GetAclConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_UpdateAclConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_UpdateAclConfigRequest_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\n\004name\030\001 \001(\tB0\340A\002\372A*\n(disco" + + "veryengine.googleapis.com/AclConfig\"a\n\026U" + + "pdateAclConfigRequest\022G\n\nacl_config\030\001 \001(" + + "\0132..google.cloud.discoveryengine.v1beta." + + "AclConfigB\003\340A\0022\360\004\n\020AclConfigService\022\316\001\n\017" + + "UpdateAclConfig\022;.google.cloud.discovery" + + "engine.v1beta.UpdateAclConfigRequest\032..g" + + "oogle.cloud.discoveryengine.v1beta.AclCo" + + "nfig\"N\202\323\344\223\002H2:/v1beta/{acl_config.name=p" + + "rojects/*/locations/*/aclConfig}:\nacl_co" + + "nfig\022\270\001\n\014GetAclConfig\0228.google.cloud.dis" + + "coveryengine.v1beta.GetAclConfigRequest\032" + + "..google.cloud.discoveryengine.v1beta.Ac" + + "lConfig\">\332A\004name\202\323\344\223\0021\022//v1beta/{name=pr" + + "ojects/*/locations/*/aclConfig}\032\317\001\312A\036dis" + + "coveryengine.googleapis.com\322A\252\001https://w" + + "ww.googleapis.com/auth/cloud-platform,ht" + + "tps://www.googleapis.com/auth/discoverye" + + "ngine.readwrite,https://www.googleapis.c" + + "om/auth/discoveryengine.serving.readwrit" + + "eB\234\002\n\'com.google.cloud.discoveryengine.v" + + "1betaB\025AclConfigServiceProtoP\001ZQcloud.go" + + "ogle.com/go/discoveryengine/apiv1beta/di" + + "scoveryenginepb;discoveryenginepb\242\002\017DISC" + + "OVERYENGINE\252\002#Google.Cloud.DiscoveryEngi" + + "ne.V1Beta\312\002#Google\\Cloud\\DiscoveryEngine" + + "\\V1beta\352\002&Google::Cloud::DiscoveryEngine" + + "::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.AclConfigProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_GetAclConfigRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1beta_GetAclConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_GetAclConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1beta_UpdateAclConfigRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_discoveryengine_v1beta_UpdateAclConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_UpdateAclConfigRequest_descriptor, + new java.lang.String[] { + "AclConfig", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.AclConfigProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + 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); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedCompleteQueryRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedCompleteQueryRequest.java index 93c5e923225e..e9ead1cfd5d9 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedCompleteQueryRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedCompleteQueryRequest.java @@ -60,6 +60,8 @@ private AdvancedCompleteQueryRequest() { queryModel_ = ""; userPseudoId_ = ""; suggestionTypes_ = emptyIntList(); + suggestionTypeSpecs_ = java.util.Collections.emptyList(); + experimentIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -328,7 +330,7 @@ public interface BoostSpecOrBuilder * *
                  * Condition boost specifications. If a suggestion matches multiple
            -     * conditions in the specifictions, boost values from these specifications
            +     * conditions in the specifications, boost values from these specifications
                  * are all applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  *
            @@ -349,7 +351,7 @@ public interface BoostSpecOrBuilder
                  *
                  * 
                  * Condition boost specifications. If a suggestion matches multiple
            -     * conditions in the specifictions, boost values from these specifications
            +     * conditions in the specifications, boost values from these specifications
                  * are all applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  *
            @@ -369,7 +371,7 @@ public interface BoostSpecOrBuilder
                  *
                  * 
                  * Condition boost specifications. If a suggestion matches multiple
            -     * conditions in the specifictions, boost values from these specifications
            +     * conditions in the specifications, boost values from these specifications
                  * are all applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  *
            @@ -387,7 +389,7 @@ public interface BoostSpecOrBuilder
                  *
                  * 
                  * Condition boost specifications. If a suggestion matches multiple
            -     * conditions in the specifictions, boost values from these specifications
            +     * conditions in the specifications, boost values from these specifications
                  * are all applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  *
            @@ -409,7 +411,7 @@ public interface BoostSpecOrBuilder
                  *
                  * 
                  * Condition boost specifications. If a suggestion matches multiple
            -     * conditions in the specifictions, boost values from these specifications
            +     * conditions in the specifications, boost values from these specifications
                  * are all applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  *
            @@ -429,7 +431,8 @@ public interface BoostSpecOrBuilder
                *
                *
                * 
            -   * Specification to boost suggestions based on the condtion of the suggestion.
            +   * Specification to boost suggestions based on the condition of the
            +   * suggestion.
                * 
            * * Protobuf type {@code @@ -1402,7 +1405,7 @@ public com.google.protobuf.Parser getParserForType() { * *
                  * Condition boost specifications. If a suggestion matches multiple
            -     * conditions in the specifictions, boost values from these specifications
            +     * conditions in the specifications, boost values from these specifications
                  * are all applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  *
            @@ -1426,7 +1429,7 @@ public com.google.protobuf.Parser getParserForType() {
                  *
                  * 
                  * Condition boost specifications. If a suggestion matches multiple
            -     * conditions in the specifictions, boost values from these specifications
            +     * conditions in the specifications, boost values from these specifications
                  * are all applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  *
            @@ -1451,7 +1454,7 @@ public com.google.protobuf.Parser getParserForType() {
                  *
                  * 
                  * Condition boost specifications. If a suggestion matches multiple
            -     * conditions in the specifictions, boost values from these specifications
            +     * conditions in the specifications, boost values from these specifications
                  * are all applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  *
            @@ -1472,7 +1475,7 @@ public int getConditionBoostSpecsCount() {
                  *
                  * 
                  * Condition boost specifications. If a suggestion matches multiple
            -     * conditions in the specifictions, boost values from these specifications
            +     * conditions in the specifications, boost values from these specifications
                  * are all applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  *
            @@ -1495,7 +1498,7 @@ public int getConditionBoostSpecsCount() {
                  *
                  * 
                  * Condition boost specifications. If a suggestion matches multiple
            -     * conditions in the specifictions, boost values from these specifications
            +     * conditions in the specifications, boost values from these specifications
                  * are all applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  *
            @@ -1690,7 +1693,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder
                  *
                  *
                  * 
            -     * Specification to boost suggestions based on the condtion of the suggestion.
            +     * Specification to boost suggestions based on the condition of the
            +     * suggestion.
                  * 
            * * Protobuf type {@code @@ -1932,7 +1936,7 @@ private void ensureConditionBoostSpecsIsMutable() { * *
                    * Condition boost specifications. If a suggestion matches multiple
            -       * conditions in the specifictions, boost values from these specifications
            +       * conditions in the specifications, boost values from these specifications
                    * are all applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    *
            @@ -1959,7 +1963,7 @@ private void ensureConditionBoostSpecsIsMutable() {
                    *
                    * 
                    * Condition boost specifications. If a suggestion matches multiple
            -       * conditions in the specifictions, boost values from these specifications
            +       * conditions in the specifications, boost values from these specifications
                    * are all applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    *
            @@ -1983,7 +1987,7 @@ public int getConditionBoostSpecsCount() {
                    *
                    * 
                    * Condition boost specifications. If a suggestion matches multiple
            -       * conditions in the specifictions, boost values from these specifications
            +       * conditions in the specifications, boost values from these specifications
                    * are all applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    *
            @@ -2009,7 +2013,7 @@ public int getConditionBoostSpecsCount() {
                    *
                    * 
                    * Condition boost specifications. If a suggestion matches multiple
            -       * conditions in the specifictions, boost values from these specifications
            +       * conditions in the specifications, boost values from these specifications
                    * are all applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    *
            @@ -2043,7 +2047,7 @@ public Builder setConditionBoostSpecs(
                    *
                    * 
                    * Condition boost specifications. If a suggestion matches multiple
            -       * conditions in the specifictions, boost values from these specifications
            +       * conditions in the specifications, boost values from these specifications
                    * are all applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    *
            @@ -2074,7 +2078,7 @@ public Builder setConditionBoostSpecs(
                    *
                    * 
                    * Condition boost specifications. If a suggestion matches multiple
            -       * conditions in the specifictions, boost values from these specifications
            +       * conditions in the specifications, boost values from these specifications
                    * are all applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    *
            @@ -2107,7 +2111,7 @@ public Builder addConditionBoostSpecs(
                    *
                    * 
                    * Condition boost specifications. If a suggestion matches multiple
            -       * conditions in the specifictions, boost values from these specifications
            +       * conditions in the specifications, boost values from these specifications
                    * are all applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    *
            @@ -2141,7 +2145,7 @@ public Builder addConditionBoostSpecs(
                    *
                    * 
                    * Condition boost specifications. If a suggestion matches multiple
            -       * conditions in the specifictions, boost values from these specifications
            +       * conditions in the specifications, boost values from these specifications
                    * are all applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    *
            @@ -2171,7 +2175,7 @@ public Builder addConditionBoostSpecs(
                    *
                    * 
                    * Condition boost specifications. If a suggestion matches multiple
            -       * conditions in the specifictions, boost values from these specifications
            +       * conditions in the specifications, boost values from these specifications
                    * are all applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    *
            @@ -2202,7 +2206,7 @@ public Builder addConditionBoostSpecs(
                    *
                    * 
                    * Condition boost specifications. If a suggestion matches multiple
            -       * conditions in the specifictions, boost values from these specifications
            +       * conditions in the specifications, boost values from these specifications
                    * are all applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    *
            @@ -2234,7 +2238,7 @@ public Builder addAllConditionBoostSpecs(
                    *
                    * 
                    * Condition boost specifications. If a suggestion matches multiple
            -       * conditions in the specifictions, boost values from these specifications
            +       * conditions in the specifications, boost values from these specifications
                    * are all applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    *
            @@ -2261,7 +2265,7 @@ public Builder clearConditionBoostSpecs() {
                    *
                    * 
                    * Condition boost specifications. If a suggestion matches multiple
            -       * conditions in the specifictions, boost values from these specifications
            +       * conditions in the specifications, boost values from these specifications
                    * are all applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    *
            @@ -2288,7 +2292,7 @@ public Builder removeConditionBoostSpecs(int index) {
                    *
                    * 
                    * Condition boost specifications. If a suggestion matches multiple
            -       * conditions in the specifictions, boost values from these specifications
            +       * conditions in the specifications, boost values from these specifications
                    * are all applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    *
            @@ -2310,7 +2314,7 @@ public Builder removeConditionBoostSpecs(int index) {
                    *
                    * 
                    * Condition boost specifications. If a suggestion matches multiple
            -       * conditions in the specifictions, boost values from these specifications
            +       * conditions in the specifications, boost values from these specifications
                    * are all applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    *
            @@ -2336,7 +2340,7 @@ public Builder removeConditionBoostSpecs(int index) {
                    *
                    * 
                    * Condition boost specifications. If a suggestion matches multiple
            -       * conditions in the specifictions, boost values from these specifications
            +       * conditions in the specifications, boost values from these specifications
                    * are all applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    *
            @@ -2364,7 +2368,7 @@ public Builder removeConditionBoostSpecs(int index) {
                    *
                    * 
                    * Condition boost specifications. If a suggestion matches multiple
            -       * conditions in the specifictions, boost values from these specifications
            +       * conditions in the specifications, boost values from these specifications
                    * are all applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    *
            @@ -2389,7 +2393,7 @@ public Builder removeConditionBoostSpecs(int index) {
                    *
                    * 
                    * Condition boost specifications. If a suggestion matches multiple
            -       * conditions in the specifictions, boost values from these specifications
            +       * conditions in the specifications, boost values from these specifications
                    * are all applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    *
            @@ -2415,7 +2419,7 @@ public Builder removeConditionBoostSpecs(int index) {
                    *
                    * 
                    * Condition boost specifications. If a suggestion matches multiple
            -       * conditions in the specifictions, boost values from these specifications
            +       * conditions in the specifications, boost values from these specifications
                    * are all applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    *
            @@ -2516,1227 +2520,3027 @@ public com.google.protobuf.Parser getParserForType() {
                 }
               }
             
            -  private int bitField0_;
            -  public static final int COMPLETION_CONFIG_FIELD_NUMBER = 1;
            +  public interface SuggestionTypeSpecOrBuilder
            +      extends
            +      // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec)
            +      com.google.protobuf.MessageOrBuilder {
             
            -  @SuppressWarnings("serial")
            -  private volatile java.lang.Object completionConfig_ = "";
            +    /**
            +     *
            +     *
            +     * 
            +     * Optional. Suggestion type.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for suggestionType. + */ + int getSuggestionTypeValue(); - /** - * - * - *
            -   * Required. The completion_config of the parent dataStore or engine resource
            -   * name for which the completion is performed, such as
            -   * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
            -   * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            -   * 
            - * - * - * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The completionConfig. - */ - @java.lang.Override - public java.lang.String getCompletionConfig() { - java.lang.Object ref = completionConfig_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - completionConfig_ = s; - return s; - } - } + /** + * + * + *
            +     * Optional. Suggestion type.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The suggestionType. + */ + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType + getSuggestionType(); - /** - * - * - *
            -   * Required. The completion_config of the parent dataStore or engine resource
            -   * name for which the completion is performed, such as
            -   * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
            -   * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            -   * 
            - * - * - * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for completionConfig. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCompletionConfigBytes() { - java.lang.Object ref = completionConfig_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - completionConfig_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** + * + * + *
            +     * Optional. Maximum number of suggestions to return for each suggestion
            +     * type.
            +     * 
            + * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSuggestions. + */ + int getMaxSuggestions(); } - public static final int QUERY_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object query_ = ""; - /** * * *
            -   * Required. The typeahead input used to fetch suggestions. Maximum length is
            -   * 128 characters.
            -   *
            -   * The query can not be empty for most of the suggestion types. If it is
            -   * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
            -   * suggestion_types contains only the type `RECENT_SEARCH`, the query can
            -   * be an empty string. The is called "zero prefix" feature, which returns
            -   * user's recently searched queries given the empty query.
            +   * Specification of each suggestion type.
                * 
            * - * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The query. + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec} */ - @java.lang.Override - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } - } + public static final class SuggestionTypeSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec) + SuggestionTypeSpecOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
            -   * Required. The typeahead input used to fetch suggestions. Maximum length is
            -   * 128 characters.
            -   *
            -   * The query can not be empty for most of the suggestion types. If it is
            -   * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
            -   * suggestion_types contains only the type `RECENT_SEARCH`, the query can
            -   * be an empty string. The is called "zero prefix" feature, which returns
            -   * user's recently searched queries given the empty query.
            -   * 
            - * - * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for query. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SuggestionTypeSpec"); } - } - public static final int QUERY_MODEL_FIELD_NUMBER = 3; + // Use SuggestionTypeSpec.newBuilder() to construct. + private SuggestionTypeSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @SuppressWarnings("serial") - private volatile java.lang.Object queryModel_ = ""; + private SuggestionTypeSpec() { + suggestionType_ = 0; + } - /** - * - * - *
            -   * Specifies the autocomplete data model. This overrides any model specified
            -   * in the Configuration > Autocomplete section of the Cloud console. Currently
            -   * supported values:
            -   *
            -   * * `document` - Using suggestions generated from user-imported documents.
            -   * * `search-history` - Using suggestions generated from the past history of
            -   * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -   * API calls. Do not use it when there is no traffic for Search API.
            -   * * `user-event` - Using suggestions generated from user-imported search
            -   * events.
            -   * * `document-completable` - Using suggestions taken directly from
            -   * user-imported document fields marked as completable.
            -   *
            -   * Default values:
            -   *
            -   * * `document` is the default model for regular dataStores.
            -   * * `search-history` is the default model for site search dataStores.
            -   * 
            - * - * string query_model = 3; - * - * @return The queryModel. - */ - @java.lang.Override - public java.lang.String getQueryModel() { - java.lang.Object ref = queryModel_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - queryModel_ = s; - return s; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_SuggestionTypeSpec_descriptor; } - } - /** - * - * - *
            -   * Specifies the autocomplete data model. This overrides any model specified
            -   * in the Configuration > Autocomplete section of the Cloud console. Currently
            -   * supported values:
            -   *
            -   * * `document` - Using suggestions generated from user-imported documents.
            -   * * `search-history` - Using suggestions generated from the past history of
            -   * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -   * API calls. Do not use it when there is no traffic for Search API.
            -   * * `user-event` - Using suggestions generated from user-imported search
            -   * events.
            -   * * `document-completable` - Using suggestions taken directly from
            -   * user-imported document fields marked as completable.
            -   *
            -   * Default values:
            -   *
            -   * * `document` is the default model for regular dataStores.
            -   * * `search-history` is the default model for site search dataStores.
            -   * 
            - * - * string query_model = 3; - * - * @return The bytes for queryModel. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryModelBytes() { - java.lang.Object ref = queryModel_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - queryModel_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_SuggestionTypeSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec.class, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec.Builder.class); } - } - public static final int USER_PSEUDO_ID_FIELD_NUMBER = 4; + public static final int SUGGESTION_TYPE_FIELD_NUMBER = 1; + private int suggestionType_ = 0; - @SuppressWarnings("serial") - private volatile java.lang.Object userPseudoId_ = ""; + /** + * + * + *
            +     * Optional. Suggestion type.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for suggestionType. + */ + @java.lang.Override + public int getSuggestionTypeValue() { + return suggestionType_; + } - /** - * - * - *
            -   * A unique identifier for tracking visitors. For example, this could be
            -   * implemented with an HTTP cookie, which should be able to uniquely identify
            -   * a visitor on a single device. This unique identifier should not change if
            -   * the visitor logs in or out of the website.
            -   *
            -   * This field should NOT have a fixed value such as `unknown_visitor`.
            -   *
            -   * This should be the same identifier as
            -   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            -   * and
            -   * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            -   *
            -   * The field must be a UTF-8 encoded string with a length limit of 128
            -   * 
            - * - * string user_pseudo_id = 4; - * - * @return The userPseudoId. - */ - @java.lang.Override - public java.lang.String getUserPseudoId() { - java.lang.Object ref = userPseudoId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - userPseudoId_ = s; - return s; + /** + * + * + *
            +     * Optional. Suggestion type.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The suggestionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType + getSuggestionType() { + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType result = + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType + .forNumber(suggestionType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType + .UNRECOGNIZED + : result; } - } - /** - * - * - *
            -   * A unique identifier for tracking visitors. For example, this could be
            -   * implemented with an HTTP cookie, which should be able to uniquely identify
            -   * a visitor on a single device. This unique identifier should not change if
            -   * the visitor logs in or out of the website.
            -   *
            -   * This field should NOT have a fixed value such as `unknown_visitor`.
            -   *
            -   * This should be the same identifier as
            -   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            -   * and
            -   * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            -   *
            -   * The field must be a UTF-8 encoded string with a length limit of 128
            -   * 
            - * - * string user_pseudo_id = 4; - * - * @return The bytes for userPseudoId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUserPseudoIdBytes() { - java.lang.Object ref = userPseudoId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - userPseudoId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final int MAX_SUGGESTIONS_FIELD_NUMBER = 2; + private int maxSuggestions_ = 0; - public static final int USER_INFO_FIELD_NUMBER = 9; - private com.google.cloud.discoveryengine.v1beta.UserInfo userInfo_; + /** + * + * + *
            +     * Optional. Maximum number of suggestions to return for each suggestion
            +     * type.
            +     * 
            + * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSuggestions. + */ + @java.lang.Override + public int getMaxSuggestions() { + return maxSuggestions_; + } - /** - * - * - *
            -   * Optional. Information about the end user.
            -   *
            -   * This should be the same identifier information as
            -   * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            -   * and
            -   * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the userInfo field is set. - */ - @java.lang.Override - public boolean hasUserInfo() { - return ((bitField0_ & 0x00000001) != 0); - } + private byte memoizedIsInitialized = -1; - /** - * - * - *
            -   * Optional. Information about the end user.
            -   *
            -   * This should be the same identifier information as
            -   * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            -   * and
            -   * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The userInfo. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.UserInfo getUserInfo() { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() - : userInfo_; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * - * - *
            -   * Optional. Information about the end user.
            -   *
            -   * This should be the same identifier information as
            -   * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            -   * and
            -   * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBuilder() { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() - : userInfo_; - } + memoizedIsInitialized = 1; + return true; + } - public static final int INCLUDE_TAIL_SUGGESTIONS_FIELD_NUMBER = 5; - private boolean includeTailSuggestions_ = false; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (suggestionType_ + != com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType + .SUGGESTION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, suggestionType_); + } + if (maxSuggestions_ != 0) { + output.writeInt32(2, maxSuggestions_); + } + getUnknownFields().writeTo(output); + } - /** - * - * - *
            -   * Indicates if tail suggestions should be returned if there are no
            -   * suggestions that match the full query. Even if set to true, if there are
            -   * suggestions that match the full query, those are returned and no
            -   * tail suggestions are returned.
            -   * 
            - * - * bool include_tail_suggestions = 5; - * - * @return The includeTailSuggestions. - */ - @java.lang.Override - public boolean getIncludeTailSuggestions() { - return includeTailSuggestions_; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static final int BOOST_SPEC_FIELD_NUMBER = 6; - private com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boostSpec_; + size = 0; + if (suggestionType_ + != com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType + .SUGGESTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, suggestionType_); + } + if (maxSuggestions_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxSuggestions_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
            -   * Optional. Specification to boost suggestions matching the condition.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the boostSpec field is set. - */ - @java.lang.Override - public boolean hasBoostSpec() { - return ((bitField0_ & 0x00000002) != 0); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + other = + (com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec) + obj; - /** - * - * - *
            -   * Optional. Specification to boost suggestions matching the condition.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The boostSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec - getBoostSpec() { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec - .getDefaultInstance() - : boostSpec_; - } + if (suggestionType_ != other.suggestionType_) return false; + if (getMaxSuggestions() != other.getMaxSuggestions()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - /** - * - * - *
            -   * Optional. Specification to boost suggestions matching the condition.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpecOrBuilder - getBoostSpecOrBuilder() { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec - .getDefaultInstance() - : boostSpec_; - } - - public static final int SUGGESTION_TYPES_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList suggestionTypes_ = emptyIntList(); - - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType> - suggestionTypes_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest - .SuggestionType>() { - public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest - .SuggestionType - convert(int from) { - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType - result = - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest - .SuggestionType.forNumber(from); - return result == null - ? com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest - .SuggestionType.UNRECOGNIZED - : result; - } - }; - - /** - * - * - *
            -   * Optional. Suggestion types to return. If empty or unspecified, query
            -   * suggestions are returned. Only one suggestion type is supported at the
            -   * moment.
            -   * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the suggestionTypes. - */ - @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType> - getSuggestionTypesList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType>( - suggestionTypes_, suggestionTypes_converter_); - } - - /** - * - * - *
            -   * Optional. Suggestion types to return. If empty or unspecified, query
            -   * suggestions are returned. Only one suggestion type is supported at the
            -   * moment.
            -   * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of suggestionTypes. - */ - @java.lang.Override - public int getSuggestionTypesCount() { - return suggestionTypes_.size(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUGGESTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + suggestionType_; + hash = (37 * hash) + MAX_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMaxSuggestions(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - * - * - *
            -   * Optional. Suggestion types to return. If empty or unspecified, query
            -   * suggestions are returned. Only one suggestion type is supported at the
            -   * moment.
            -   * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The suggestionTypes at the given index. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType - getSuggestionTypes(int index) { - return suggestionTypes_converter_.convert(suggestionTypes_.getInt(index)); - } + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -   * Optional. Suggestion types to return. If empty or unspecified, query
            -   * suggestions are returned. Only one suggestion type is supported at the
            -   * moment.
            -   * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the enum numeric values on the wire for suggestionTypes. - */ - @java.lang.Override - public java.util.List getSuggestionTypesValueList() { - return suggestionTypes_; - } + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -   * Optional. Suggestion types to return. If empty or unspecified, query
            -   * suggestions are returned. Only one suggestion type is supported at the
            -   * moment.
            -   * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of suggestionTypes at the given index. - */ - @java.lang.Override - public int getSuggestionTypesValue(int index) { - return suggestionTypes_.getInt(index); - } + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private int suggestionTypesMemoizedSerializedSize; + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(completionConfig_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, completionConfig_); + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, query_); + + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryModel_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, queryModel_); + + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPseudoId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, userPseudoId_); + + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - if (includeTailSuggestions_ != false) { - output.writeBool(5, includeTailSuggestions_); + + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(6, getBoostSpec()); + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - if (getSuggestionTypesList().size() > 0) { - output.writeUInt32NoTag(58); - output.writeUInt32NoTag(suggestionTypesMemoizedSerializedSize); + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - for (int i = 0; i < suggestionTypes_.size(); i++) { - output.writeEnumNoTag(suggestionTypes_.getInt(i)); + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(9, getUserInfo()); + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(completionConfig_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, completionConfig_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, query_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryModel_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, queryModel_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPseudoId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, userPseudoId_); - } - if (includeTailSuggestions_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, includeTailSuggestions_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBoostSpec()); + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - { - int dataSize = 0; - for (int i = 0; i < suggestionTypes_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(suggestionTypes_.getInt(i)); - } - size += dataSize; - if (!getSuggestionTypesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + + /** + * + * + *
            +     * Specification of each suggestion type.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec) + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_SuggestionTypeSpec_descriptor; } - suggestionTypesMemoizedSerializedSize = dataSize; - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUserInfo()); - } - 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.v1beta.AdvancedCompleteQueryRequest)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest other = - (com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest) obj; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_SuggestionTypeSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec.class, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec.Builder.class); + } - if (!getCompletionConfig().equals(other.getCompletionConfig())) return false; - if (!getQuery().equals(other.getQuery())) return false; - if (!getQueryModel().equals(other.getQueryModel())) return false; - if (!getUserPseudoId().equals(other.getUserPseudoId())) return false; - if (hasUserInfo() != other.hasUserInfo()) return false; - if (hasUserInfo()) { - if (!getUserInfo().equals(other.getUserInfo())) return false; - } - if (getIncludeTailSuggestions() != other.getIncludeTailSuggestions()) return false; - if (hasBoostSpec() != other.hasBoostSpec()) return false; - if (hasBoostSpec()) { - if (!getBoostSpec().equals(other.getBoostSpec())) return false; - } - if (!suggestionTypes_.equals(other.suggestionTypes_)) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec.newBuilder() + private Builder() {} - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COMPLETION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getCompletionConfig().hashCode(); - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - hash = (37 * hash) + QUERY_MODEL_FIELD_NUMBER; - hash = (53 * hash) + getQueryModel().hashCode(); - hash = (37 * hash) + USER_PSEUDO_ID_FIELD_NUMBER; - hash = (53 * hash) + getUserPseudoId().hashCode(); - if (hasUserInfo()) { - hash = (37 * hash) + USER_INFO_FIELD_NUMBER; - hash = (53 * hash) + getUserInfo().hashCode(); - } - hash = (37 * hash) + INCLUDE_TAIL_SUGGESTIONS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeTailSuggestions()); - if (hasBoostSpec()) { - hash = (37 * hash) + BOOST_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getBoostSpec().hashCode(); - } - if (getSuggestionTypesCount() > 0) { - hash = (37 * hash) + SUGGESTION_TYPES_FIELD_NUMBER; - hash = (53 * hash) + suggestionTypes_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + suggestionType_ = 0; + maxSuggestions_ = 0; + return this; + } - public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_SuggestionTypeSpec_descriptor; + } - public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec.getDefaultInstance(); + } - public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest 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.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + build() { + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + result = + new com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.suggestionType_ = suggestionType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxSuggestions_ = maxSuggestions_; + } + } - public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } - public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec.getDefaultInstance()) return this; + if (other.suggestionType_ != 0) { + setSuggestionTypeValue(other.getSuggestionTypeValue()); + } + if (other.getMaxSuggestions() != 0) { + setMaxSuggestions(other.getMaxSuggestions()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + if (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: + { + suggestionType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + maxSuggestions_ = 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; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + private int bitField0_; - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + private int suggestionType_ = 0; - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + /** + * + * + *
            +       * Optional. Suggestion type.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for suggestionType. + */ + @java.lang.Override + public int getSuggestionTypeValue() { + return suggestionType_; + } + + /** + * + * + *
            +       * Optional. Suggestion type.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for suggestionType to set. + * @return This builder for chaining. + */ + public Builder setSuggestionTypeValue(int value) { + suggestionType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Suggestion type.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The suggestionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType + getSuggestionType() { + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType result = + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType + .forNumber(suggestionType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Optional. Suggestion type.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The suggestionType to set. + * @return This builder for chaining. + */ + public Builder setSuggestionType( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + suggestionType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Suggestion type.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSuggestionType() { + bitField0_ = (bitField0_ & ~0x00000001); + suggestionType_ = 0; + onChanged(); + return this; + } + + private int maxSuggestions_; + + /** + * + * + *
            +       * Optional. Maximum number of suggestions to return for each suggestion
            +       * type.
            +       * 
            + * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSuggestions. + */ + @java.lang.Override + public int getMaxSuggestions() { + return maxSuggestions_; + } + + /** + * + * + *
            +       * Optional. Maximum number of suggestions to return for each suggestion
            +       * type.
            +       * 
            + * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxSuggestions to set. + * @return This builder for chaining. + */ + public Builder setMaxSuggestions(int value) { + + maxSuggestions_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Maximum number of suggestions to return for each suggestion
            +       * type.
            +       * 
            + * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxSuggestions() { + bitField0_ = (bitField0_ & ~0x00000002); + maxSuggestions_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec) + private static final com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuggestionTypeSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } + private int bitField0_; + public static final int COMPLETION_CONFIG_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object completionConfig_ = ""; + + /** + * + * + *
            +   * Required. The completion_config of the parent dataStore or engine resource
            +   * name for which the completion is performed, such as
            +   * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
            +   * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +   * 
            + * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The completionConfig. + */ @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public java.lang.String getCompletionConfig() { + java.lang.Object ref = completionConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + completionConfig_ = s; + return s; + } } /** * * *
            -   * Request message for
            -   * [CompletionService.AdvancedCompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.AdvancedCompleteQuery]
            -   * method.
            -   * .
            +   * Required. The completion_config of the parent dataStore or engine resource
            +   * name for which the completion is performed, such as
            +   * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
            +   * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
                * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest} + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for completionConfig. */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest) - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_descriptor; + @java.lang.Override + public com.google.protobuf.ByteString getCompletionConfigBytes() { + java.lang.Object ref = completionConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + completionConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + + /** + * + * + *
            +   * Required. The typeahead input used to fetch suggestions. Maximum length is
            +   * 128 characters.
            +   *
            +   * The query can not be empty for most of the suggestion types. If it is
            +   * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
            +   * suggestion_types contains only the type `RECENT_SEARCH`, the query can
            +   * be an empty string. The is called "zero prefix" feature, which returns
            +   * user's recently searched queries given the empty query.
            +   * 
            + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The typeahead input used to fetch suggestions. Maximum length is
            +   * 128 characters.
            +   *
            +   * The query can not be empty for most of the suggestion types. If it is
            +   * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
            +   * suggestion_types contains only the type `RECENT_SEARCH`, the query can
            +   * be an empty string. The is called "zero prefix" feature, which returns
            +   * user's recently searched queries given the empty query.
            +   * 
            + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_MODEL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object queryModel_ = ""; + + /** + * + * + *
            +   * Specifies the autocomplete query model, which only applies to the QUERY
            +   * SuggestionType. This overrides any model specified in the Configuration >
            +   * Autocomplete section of the Cloud console. Currently supported values:
            +   *
            +   * * `document` - Using suggestions generated from user-imported documents.
            +   * * `search-history` - Using suggestions generated from the past history of
            +   * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +   * API calls. Do not use it when there is no traffic for Search API.
            +   * * `user-event` - Using suggestions generated from user-imported search
            +   * events.
            +   * * `document-completable` - Using suggestions taken directly from
            +   * user-imported document fields marked as completable.
            +   *
            +   * Default values:
            +   *
            +   * * `document` is the default model for regular dataStores.
            +   * * `search-history` is the default model for site search dataStores.
            +   * 
            + * + * string query_model = 3; + * + * @return The queryModel. + */ + @java.lang.Override + public java.lang.String getQueryModel() { + java.lang.Object ref = queryModel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryModel_ = s; + return s; + } + } + + /** + * + * + *
            +   * Specifies the autocomplete query model, which only applies to the QUERY
            +   * SuggestionType. This overrides any model specified in the Configuration >
            +   * Autocomplete section of the Cloud console. Currently supported values:
            +   *
            +   * * `document` - Using suggestions generated from user-imported documents.
            +   * * `search-history` - Using suggestions generated from the past history of
            +   * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +   * API calls. Do not use it when there is no traffic for Search API.
            +   * * `user-event` - Using suggestions generated from user-imported search
            +   * events.
            +   * * `document-completable` - Using suggestions taken directly from
            +   * user-imported document fields marked as completable.
            +   *
            +   * Default values:
            +   *
            +   * * `document` is the default model for regular dataStores.
            +   * * `search-history` is the default model for site search dataStores.
            +   * 
            + * + * string query_model = 3; + * + * @return The bytes for queryModel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryModelBytes() { + java.lang.Object ref = queryModel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_PSEUDO_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object userPseudoId_ = ""; + + /** + * + * + *
            +   * Optional. A unique identifier for tracking visitors. For example, this
            +   * could be implemented with an HTTP cookie, which should be able to uniquely
            +   * identify a visitor on a single device. This unique identifier should not
            +   * change if the visitor logs in or out of the website.
            +   *
            +   * This field should NOT have a fixed value such as `unknown_visitor`.
            +   *
            +   * This should be the same identifier as
            +   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +   * and
            +   * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            +   *
            +   * The field must be a UTF-8 encoded string with a length limit of 128
            +   * 
            + * + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userPseudoId. + */ + @java.lang.Override + public java.lang.String getUserPseudoId() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPseudoId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. A unique identifier for tracking visitors. For example, this
            +   * could be implemented with an HTTP cookie, which should be able to uniquely
            +   * identify a visitor on a single device. This unique identifier should not
            +   * change if the visitor logs in or out of the website.
            +   *
            +   * This field should NOT have a fixed value such as `unknown_visitor`.
            +   *
            +   * This should be the same identifier as
            +   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +   * and
            +   * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            +   *
            +   * The field must be a UTF-8 encoded string with a length limit of 128
            +   * 
            + * + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userPseudoId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserPseudoIdBytes() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPseudoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_INFO_FIELD_NUMBER = 9; + private com.google.cloud.discoveryengine.v1beta.UserInfo userInfo_; + + /** + * + * + *
            +   * Optional. Information about the end user.
            +   *
            +   * This should be the same identifier information as
            +   * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +   * and
            +   * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userInfo field is set. + */ + @java.lang.Override + public boolean hasUserInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Information about the end user.
            +   *
            +   * This should be the same identifier information as
            +   * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +   * and
            +   * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserInfo getUserInfo() { + return userInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() + : userInfo_; + } + + /** + * + * + *
            +   * Optional. Information about the end user.
            +   *
            +   * This should be the same identifier information as
            +   * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +   * and
            +   * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBuilder() { + return userInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() + : userInfo_; + } + + public static final int INCLUDE_TAIL_SUGGESTIONS_FIELD_NUMBER = 5; + private boolean includeTailSuggestions_ = false; + + /** + * + * + *
            +   * Indicates if tail suggestions should be returned if there are no
            +   * suggestions that match the full query. Even if set to true, if there are
            +   * suggestions that match the full query, those are returned and no
            +   * tail suggestions are returned.
            +   * 
            + * + * bool include_tail_suggestions = 5; + * + * @return The includeTailSuggestions. + */ + @java.lang.Override + public boolean getIncludeTailSuggestions() { + return includeTailSuggestions_; + } + + public static final int BOOST_SPEC_FIELD_NUMBER = 6; + private com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boostSpec_; + + /** + * + * + *
            +   * Optional. Specification to boost suggestions matching the condition.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the boostSpec field is set. + */ + @java.lang.Override + public boolean hasBoostSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. Specification to boost suggestions matching the condition.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The boostSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec + getBoostSpec() { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec + .getDefaultInstance() + : boostSpec_; + } + + /** + * + * + *
            +   * Optional. Specification to boost suggestions matching the condition.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpecOrBuilder + getBoostSpecOrBuilder() { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec + .getDefaultInstance() + : boostSpec_; + } + + public static final int SUGGESTION_TYPES_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList suggestionTypes_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType> + suggestionTypes_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionType>() { + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionType + convert(int from) { + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType + result = + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionType.forNumber(from); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionType.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
            +   * Optional. Suggestion types to return. If empty or unspecified, query
            +   * suggestions are returned. Only one suggestion type is supported at the
            +   * moment.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the suggestionTypes. + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType> + getSuggestionTypesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType>( + suggestionTypes_, suggestionTypes_converter_); + } + + /** + * + * + *
            +   * Optional. Suggestion types to return. If empty or unspecified, query
            +   * suggestions are returned. Only one suggestion type is supported at the
            +   * moment.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of suggestionTypes. + */ + @java.lang.Override + public int getSuggestionTypesCount() { + return suggestionTypes_.size(); + } + + /** + * + * + *
            +   * Optional. Suggestion types to return. If empty or unspecified, query
            +   * suggestions are returned. Only one suggestion type is supported at the
            +   * moment.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The suggestionTypes at the given index. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType + getSuggestionTypes(int index) { + return suggestionTypes_converter_.convert(suggestionTypes_.getInt(index)); + } + + /** + * + * + *
            +   * Optional. Suggestion types to return. If empty or unspecified, query
            +   * suggestions are returned. Only one suggestion type is supported at the
            +   * moment.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for suggestionTypes. + */ + @java.lang.Override + public java.util.List getSuggestionTypesValueList() { + return suggestionTypes_; + } + + /** + * + * + *
            +   * Optional. Suggestion types to return. If empty or unspecified, query
            +   * suggestions are returned. Only one suggestion type is supported at the
            +   * moment.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of suggestionTypes at the given index. + */ + @java.lang.Override + public int getSuggestionTypesValue(int index) { + return suggestionTypes_.getInt(index); + } + + private int suggestionTypesMemoizedSerializedSize; + + public static final int SUGGESTION_TYPE_SPECS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec> + suggestionTypeSpecs_; + + /** + * + * + *
            +   * Optional. Specification of each suggestion type.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec> + getSuggestionTypeSpecsList() { + return suggestionTypeSpecs_; + } + + /** + * + * + *
            +   * Optional. Specification of each suggestion type.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpecOrBuilder> + getSuggestionTypeSpecsOrBuilderList() { + return suggestionTypeSpecs_; + } + + /** + * + * + *
            +   * Optional. Specification of each suggestion type.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSuggestionTypeSpecsCount() { + return suggestionTypeSpecs_.size(); + } + + /** + * + * + *
            +   * Optional. Specification of each suggestion type.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + getSuggestionTypeSpecs(int index) { + return suggestionTypeSpecs_.get(index); + } + + /** + * + * + *
            +   * Optional. Specification of each suggestion type.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpecOrBuilder + getSuggestionTypeSpecsOrBuilder(int index) { + return suggestionTypeSpecs_.get(index); + } + + public static final int EXPERIMENT_IDS_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList experimentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * Optional. Experiment ids for this request.
            +   * 
            + * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the experimentIds. + */ + public com.google.protobuf.ProtocolStringList getExperimentIdsList() { + return experimentIds_; + } + + /** + * + * + *
            +   * Optional. Experiment ids for this request.
            +   * 
            + * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of experimentIds. + */ + public int getExperimentIdsCount() { + return experimentIds_.size(); + } + + /** + * + * + *
            +   * Optional. Experiment ids for this request.
            +   * 
            + * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The experimentIds at the given index. + */ + public java.lang.String getExperimentIds(int index) { + return experimentIds_.get(index); + } + + /** + * + * + *
            +   * Optional. Experiment ids for this request.
            +   * 
            + * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the experimentIds at the given index. + */ + public com.google.protobuf.ByteString getExperimentIdsBytes(int index) { + return experimentIds_.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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(completionConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, completionConfig_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, query_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryModel_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, queryModel_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPseudoId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, userPseudoId_); + } + if (includeTailSuggestions_ != false) { + output.writeBool(5, includeTailSuggestions_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getBoostSpec()); + } + if (getSuggestionTypesList().size() > 0) { + output.writeUInt32NoTag(58); + output.writeUInt32NoTag(suggestionTypesMemoizedSerializedSize); + } + for (int i = 0; i < suggestionTypes_.size(); i++) { + output.writeEnumNoTag(suggestionTypes_.getInt(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(9, getUserInfo()); + } + for (int i = 0; i < suggestionTypeSpecs_.size(); i++) { + output.writeMessage(10, suggestionTypeSpecs_.get(i)); + } + for (int i = 0; i < experimentIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 14, experimentIds_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(completionConfig_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, completionConfig_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, query_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryModel_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, queryModel_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPseudoId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, userPseudoId_); + } + if (includeTailSuggestions_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, includeTailSuggestions_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBoostSpec()); + } + { + int dataSize = 0; + for (int i = 0; i < suggestionTypes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(suggestionTypes_.getInt(i)); + } + size += dataSize; + if (!getSuggestionTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + suggestionTypesMemoizedSerializedSize = dataSize; + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUserInfo()); + } + for (int i = 0; i < suggestionTypeSpecs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, suggestionTypeSpecs_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < experimentIds_.size(); i++) { + dataSize += computeStringSizeNoTag(experimentIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getExperimentIdsList().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.v1beta.AdvancedCompleteQueryRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest other = + (com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest) obj; + + if (!getCompletionConfig().equals(other.getCompletionConfig())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (!getQueryModel().equals(other.getQueryModel())) return false; + if (!getUserPseudoId().equals(other.getUserPseudoId())) return false; + if (hasUserInfo() != other.hasUserInfo()) return false; + if (hasUserInfo()) { + if (!getUserInfo().equals(other.getUserInfo())) return false; + } + if (getIncludeTailSuggestions() != other.getIncludeTailSuggestions()) return false; + if (hasBoostSpec() != other.hasBoostSpec()) return false; + if (hasBoostSpec()) { + if (!getBoostSpec().equals(other.getBoostSpec())) return false; + } + if (!suggestionTypes_.equals(other.suggestionTypes_)) return false; + if (!getSuggestionTypeSpecsList().equals(other.getSuggestionTypeSpecsList())) return false; + if (!getExperimentIdsList().equals(other.getExperimentIdsList())) 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) + COMPLETION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCompletionConfig().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (37 * hash) + QUERY_MODEL_FIELD_NUMBER; + hash = (53 * hash) + getQueryModel().hashCode(); + hash = (37 * hash) + USER_PSEUDO_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserPseudoId().hashCode(); + if (hasUserInfo()) { + hash = (37 * hash) + USER_INFO_FIELD_NUMBER; + hash = (53 * hash) + getUserInfo().hashCode(); + } + hash = (37 * hash) + INCLUDE_TAIL_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeTailSuggestions()); + if (hasBoostSpec()) { + hash = (37 * hash) + BOOST_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getBoostSpec().hashCode(); + } + if (getSuggestionTypesCount() > 0) { + hash = (37 * hash) + SUGGESTION_TYPES_FIELD_NUMBER; + hash = (53 * hash) + suggestionTypes_.hashCode(); + } + if (getSuggestionTypeSpecsCount() > 0) { + hash = (37 * hash) + SUGGESTION_TYPE_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getSuggestionTypeSpecsList().hashCode(); + } + if (getExperimentIdsCount() > 0) { + hash = (37 * hash) + EXPERIMENT_IDS_FIELD_NUMBER; + hash = (53 * hash) + getExperimentIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest 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.v1beta.AdvancedCompleteQueryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest parseFrom( + 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.v1beta.AdvancedCompleteQueryRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [CompletionService.AdvancedCompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.AdvancedCompleteQuery]
            +   * method.
            +   * .
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest) + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.class, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUserInfoFieldBuilder(); + internalGetBoostSpecFieldBuilder(); + internalGetSuggestionTypeSpecsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + completionConfig_ = ""; + query_ = ""; + queryModel_ = ""; + userPseudoId_ = ""; + userInfo_ = null; + if (userInfoBuilder_ != null) { + userInfoBuilder_.dispose(); + userInfoBuilder_ = null; + } + includeTailSuggestions_ = false; + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; + } + suggestionTypes_ = emptyIntList(); + if (suggestionTypeSpecsBuilder_ == null) { + suggestionTypeSpecs_ = java.util.Collections.emptyList(); + } else { + suggestionTypeSpecs_ = null; + suggestionTypeSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + experimentIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest build() { + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest result = + new com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest result) { + if (suggestionTypeSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + suggestionTypeSpecs_ = java.util.Collections.unmodifiableList(suggestionTypeSpecs_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.suggestionTypeSpecs_ = suggestionTypeSpecs_; + } else { + result.suggestionTypeSpecs_ = suggestionTypeSpecsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.completionConfig_ = completionConfig_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.queryModel_ = queryModel_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.userPseudoId_ = userPseudoId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.includeTailSuggestions_ = includeTailSuggestions_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + suggestionTypes_.makeImmutable(); + result.suggestionTypes_ = suggestionTypes_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + experimentIds_.makeImmutable(); + result.experimentIds_ = experimentIds_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .getDefaultInstance()) return this; + if (!other.getCompletionConfig().isEmpty()) { + completionConfig_ = other.completionConfig_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getQueryModel().isEmpty()) { + queryModel_ = other.queryModel_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getUserPseudoId().isEmpty()) { + userPseudoId_ = other.userPseudoId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasUserInfo()) { + mergeUserInfo(other.getUserInfo()); + } + if (other.getIncludeTailSuggestions() != false) { + setIncludeTailSuggestions(other.getIncludeTailSuggestions()); + } + if (other.hasBoostSpec()) { + mergeBoostSpec(other.getBoostSpec()); + } + if (!other.suggestionTypes_.isEmpty()) { + if (suggestionTypes_.isEmpty()) { + suggestionTypes_ = other.suggestionTypes_; + suggestionTypes_.makeImmutable(); + bitField0_ |= 0x00000080; + } else { + ensureSuggestionTypesIsMutable(); + suggestionTypes_.addAll(other.suggestionTypes_); + } + onChanged(); + } + if (suggestionTypeSpecsBuilder_ == null) { + if (!other.suggestionTypeSpecs_.isEmpty()) { + if (suggestionTypeSpecs_.isEmpty()) { + suggestionTypeSpecs_ = other.suggestionTypeSpecs_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureSuggestionTypeSpecsIsMutable(); + suggestionTypeSpecs_.addAll(other.suggestionTypeSpecs_); + } + onChanged(); + } + } else { + if (!other.suggestionTypeSpecs_.isEmpty()) { + if (suggestionTypeSpecsBuilder_.isEmpty()) { + suggestionTypeSpecsBuilder_.dispose(); + suggestionTypeSpecsBuilder_ = null; + suggestionTypeSpecs_ = other.suggestionTypeSpecs_; + bitField0_ = (bitField0_ & ~0x00000100); + suggestionTypeSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSuggestionTypeSpecsFieldBuilder() + : null; + } else { + suggestionTypeSpecsBuilder_.addAllMessages(other.suggestionTypeSpecs_); + } + } + } + if (!other.experimentIds_.isEmpty()) { + if (experimentIds_.isEmpty()) { + experimentIds_ = other.experimentIds_; + bitField0_ |= 0x00000200; + } else { + ensureExperimentIdsIsMutable(); + experimentIds_.addAll(other.experimentIds_); + } + 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: + { + completionConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + queryModel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + userPseudoId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + includeTailSuggestions_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 50: + { + input.readMessage( + internalGetBoostSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 56: + { + int tmpRaw = input.readEnum(); + ensureSuggestionTypesIsMutable(); + suggestionTypes_.addInt(tmpRaw); + break; + } // case 56 + case 58: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSuggestionTypesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + suggestionTypes_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 58 + case 74: + { + input.readMessage( + internalGetUserInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 74 + case 82: + { + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec.parser(), + extensionRegistry); + if (suggestionTypeSpecsBuilder_ == null) { + ensureSuggestionTypeSpecsIsMutable(); + suggestionTypeSpecs_.add(m); + } else { + suggestionTypeSpecsBuilder_.addMessage(m); + } + break; + } // case 82 + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExperimentIdsIsMutable(); + experimentIds_.add(s); + break; + } // case 114 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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 completionConfig_ = ""; + + /** + * + * + *
            +     * Required. The completion_config of the parent dataStore or engine resource
            +     * name for which the completion is performed, such as
            +     * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
            +     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +     * 
            + * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The completionConfig. + */ + public java.lang.String getCompletionConfig() { + java.lang.Object ref = completionConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + completionConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The completion_config of the parent dataStore or engine resource
            +     * name for which the completion is performed, such as
            +     * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
            +     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +     * 
            + * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for completionConfig. + */ + public com.google.protobuf.ByteString getCompletionConfigBytes() { + java.lang.Object ref = completionConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + completionConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The completion_config of the parent dataStore or engine resource
            +     * name for which the completion is performed, such as
            +     * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
            +     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +     * 
            + * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The completionConfig to set. + * @return This builder for chaining. + */ + public Builder setCompletionConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + completionConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The completion_config of the parent dataStore or engine resource
            +     * name for which the completion is performed, such as
            +     * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
            +     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +     * 
            + * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCompletionConfig() { + completionConfig_ = getDefaultInstance().getCompletionConfig(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The completion_config of the parent dataStore or engine resource
            +     * name for which the completion is performed, such as
            +     * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
            +     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +     * 
            + * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for completionConfig to set. + * @return This builder for chaining. + */ + public Builder setCompletionConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + completionConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object query_ = ""; + + /** + * + * + *
            +     * Required. The typeahead input used to fetch suggestions. Maximum length is
            +     * 128 characters.
            +     *
            +     * The query can not be empty for most of the suggestion types. If it is
            +     * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
            +     * suggestion_types contains only the type `RECENT_SEARCH`, the query can
            +     * be an empty string. The is called "zero prefix" feature, which returns
            +     * user's recently searched queries given the empty query.
            +     * 
            + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The typeahead input used to fetch suggestions. Maximum length is
            +     * 128 characters.
            +     *
            +     * The query can not be empty for most of the suggestion types. If it is
            +     * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
            +     * suggestion_types contains only the type `RECENT_SEARCH`, the query can
            +     * be an empty string. The is called "zero prefix" feature, which returns
            +     * user's recently searched queries given the empty query.
            +     * 
            + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.class, - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.Builder.class); + /** + * + * + *
            +     * Required. The typeahead input used to fetch suggestions. Maximum length is
            +     * 128 characters.
            +     *
            +     * The query can not be empty for most of the suggestion types. If it is
            +     * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
            +     * suggestion_types contains only the type `RECENT_SEARCH`, the query can
            +     * be an empty string. The is called "zero prefix" feature, which returns
            +     * user's recently searched queries given the empty query.
            +     * 
            + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - // Construct using - // com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + * + * + *
            +     * Required. The typeahead input used to fetch suggestions. Maximum length is
            +     * 128 characters.
            +     *
            +     * The query can not be empty for most of the suggestion types. If it is
            +     * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
            +     * suggestion_types contains only the type `RECENT_SEARCH`, the query can
            +     * be an empty string. The is called "zero prefix" feature, which returns
            +     * user's recently searched queries given the empty query.
            +     * 
            + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * + * + *
            +     * Required. The typeahead input used to fetch suggestions. Maximum length is
            +     * 128 characters.
            +     *
            +     * The query can not be empty for most of the suggestion types. If it is
            +     * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
            +     * suggestion_types contains only the type `RECENT_SEARCH`, the query can
            +     * be an empty string. The is called "zero prefix" feature, which returns
            +     * user's recently searched queries given the empty query.
            +     * 
            + * + * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetUserInfoFieldBuilder(); - internalGetBoostSpecFieldBuilder(); + private java.lang.Object queryModel_ = ""; + + /** + * + * + *
            +     * Specifies the autocomplete query model, which only applies to the QUERY
            +     * SuggestionType. This overrides any model specified in the Configuration >
            +     * Autocomplete section of the Cloud console. Currently supported values:
            +     *
            +     * * `document` - Using suggestions generated from user-imported documents.
            +     * * `search-history` - Using suggestions generated from the past history of
            +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +     * API calls. Do not use it when there is no traffic for Search API.
            +     * * `user-event` - Using suggestions generated from user-imported search
            +     * events.
            +     * * `document-completable` - Using suggestions taken directly from
            +     * user-imported document fields marked as completable.
            +     *
            +     * Default values:
            +     *
            +     * * `document` is the default model for regular dataStores.
            +     * * `search-history` is the default model for site search dataStores.
            +     * 
            + * + * string query_model = 3; + * + * @return The queryModel. + */ + public java.lang.String getQueryModel() { + java.lang.Object ref = queryModel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryModel_ = s; + return s; + } else { + return (java.lang.String) ref; } } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - completionConfig_ = ""; - query_ = ""; - queryModel_ = ""; - userPseudoId_ = ""; - userInfo_ = null; - if (userInfoBuilder_ != null) { - userInfoBuilder_.dispose(); - userInfoBuilder_ = null; + /** + * + * + *
            +     * Specifies the autocomplete query model, which only applies to the QUERY
            +     * SuggestionType. This overrides any model specified in the Configuration >
            +     * Autocomplete section of the Cloud console. Currently supported values:
            +     *
            +     * * `document` - Using suggestions generated from user-imported documents.
            +     * * `search-history` - Using suggestions generated from the past history of
            +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +     * API calls. Do not use it when there is no traffic for Search API.
            +     * * `user-event` - Using suggestions generated from user-imported search
            +     * events.
            +     * * `document-completable` - Using suggestions taken directly from
            +     * user-imported document fields marked as completable.
            +     *
            +     * Default values:
            +     *
            +     * * `document` is the default model for regular dataStores.
            +     * * `search-history` is the default model for site search dataStores.
            +     * 
            + * + * string query_model = 3; + * + * @return The bytes for queryModel. + */ + public com.google.protobuf.ByteString getQueryModelBytes() { + java.lang.Object ref = queryModel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryModel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - includeTailSuggestions_ = false; - boostSpec_ = null; - if (boostSpecBuilder_ != null) { - boostSpecBuilder_.dispose(); - boostSpecBuilder_ = null; + } + + /** + * + * + *
            +     * Specifies the autocomplete query model, which only applies to the QUERY
            +     * SuggestionType. This overrides any model specified in the Configuration >
            +     * Autocomplete section of the Cloud console. Currently supported values:
            +     *
            +     * * `document` - Using suggestions generated from user-imported documents.
            +     * * `search-history` - Using suggestions generated from the past history of
            +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +     * API calls. Do not use it when there is no traffic for Search API.
            +     * * `user-event` - Using suggestions generated from user-imported search
            +     * events.
            +     * * `document-completable` - Using suggestions taken directly from
            +     * user-imported document fields marked as completable.
            +     *
            +     * Default values:
            +     *
            +     * * `document` is the default model for regular dataStores.
            +     * * `search-history` is the default model for site search dataStores.
            +     * 
            + * + * string query_model = 3; + * + * @param value The queryModel to set. + * @return This builder for chaining. + */ + public Builder setQueryModel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - suggestionTypes_ = emptyIntList(); + queryModel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Specifies the autocomplete query model, which only applies to the QUERY
            +     * SuggestionType. This overrides any model specified in the Configuration >
            +     * Autocomplete section of the Cloud console. Currently supported values:
            +     *
            +     * * `document` - Using suggestions generated from user-imported documents.
            +     * * `search-history` - Using suggestions generated from the past history of
            +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +     * API calls. Do not use it when there is no traffic for Search API.
            +     * * `user-event` - Using suggestions generated from user-imported search
            +     * events.
            +     * * `document-completable` - Using suggestions taken directly from
            +     * user-imported document fields marked as completable.
            +     *
            +     * Default values:
            +     *
            +     * * `document` is the default model for regular dataStores.
            +     * * `search-history` is the default model for site search dataStores.
            +     * 
            + * + * string query_model = 3; + * + * @return This builder for chaining. + */ + public Builder clearQueryModel() { + queryModel_ = getDefaultInstance().getQueryModel(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_descriptor; + /** + * + * + *
            +     * Specifies the autocomplete query model, which only applies to the QUERY
            +     * SuggestionType. This overrides any model specified in the Configuration >
            +     * Autocomplete section of the Cloud console. Currently supported values:
            +     *
            +     * * `document` - Using suggestions generated from user-imported documents.
            +     * * `search-history` - Using suggestions generated from the past history of
            +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +     * API calls. Do not use it when there is no traffic for Search API.
            +     * * `user-event` - Using suggestions generated from user-imported search
            +     * events.
            +     * * `document-completable` - Using suggestions taken directly from
            +     * user-imported document fields marked as completable.
            +     *
            +     * Default values:
            +     *
            +     * * `document` is the default model for regular dataStores.
            +     * * `search-history` is the default model for site search dataStores.
            +     * 
            + * + * string query_model = 3; + * + * @param value The bytes for queryModel to set. + * @return This builder for chaining. + */ + public Builder setQueryModelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryModel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest - .getDefaultInstance(); - } + private java.lang.Object userPseudoId_ = ""; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest build() { - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
            +     * Optional. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
            +     *
            +     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     *
            +     * This should be the same identifier as
            +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +     * and
            +     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            +     *
            +     * The field must be a UTF-8 encoded string with a length limit of 128
            +     * 
            + * + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userPseudoId. + */ + public java.lang.String getUserPseudoId() { + java.lang.Object ref = userPseudoId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPseudoId_ = s; + return s; + } else { + return (java.lang.String) ref; } - return result; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest buildPartial() { - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest result = - new com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
            +     * Optional. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
            +     *
            +     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     *
            +     * This should be the same identifier as
            +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +     * and
            +     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            +     *
            +     * The field must be a UTF-8 encoded string with a length limit of 128
            +     * 
            + * + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userPseudoId. + */ + public com.google.protobuf.ByteString getUserPseudoIdBytes() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPseudoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - onBuilt(); - return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.completionConfig_ = completionConfig_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.query_ = query_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.queryModel_ = queryModel_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.userPseudoId_ = userPseudoId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.includeTailSuggestions_ = includeTailSuggestions_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - suggestionTypes_.makeImmutable(); - result.suggestionTypes_ = suggestionTypes_; + /** + * + * + *
            +     * Optional. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
            +     *
            +     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     *
            +     * This should be the same identifier as
            +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +     * and
            +     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            +     *
            +     * The field must be a UTF-8 encoded string with a length limit of 128
            +     * 
            + * + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The userPseudoId to set. + * @return This builder for chaining. + */ + public Builder setUserPseudoId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - result.bitField0_ |= to_bitField0_; + userPseudoId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest) other); - } else { - super.mergeFrom(other); - return this; - } + /** + * + * + *
            +     * Optional. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
            +     *
            +     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     *
            +     * This should be the same identifier as
            +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +     * and
            +     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            +     *
            +     * The field must be a UTF-8 encoded string with a length limit of 128
            +     * 
            + * + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUserPseudoId() { + userPseudoId_ = getDefaultInstance().getUserPseudoId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest other) { - if (other - == com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest - .getDefaultInstance()) return this; - if (!other.getCompletionConfig().isEmpty()) { - completionConfig_ = other.completionConfig_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getQuery().isEmpty()) { - query_ = other.query_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getQueryModel().isEmpty()) { - queryModel_ = other.queryModel_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getUserPseudoId().isEmpty()) { - userPseudoId_ = other.userPseudoId_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasUserInfo()) { - mergeUserInfo(other.getUserInfo()); - } - if (other.getIncludeTailSuggestions() != false) { - setIncludeTailSuggestions(other.getIncludeTailSuggestions()); - } - if (other.hasBoostSpec()) { - mergeBoostSpec(other.getBoostSpec()); - } - if (!other.suggestionTypes_.isEmpty()) { - if (suggestionTypes_.isEmpty()) { - suggestionTypes_ = other.suggestionTypes_; - suggestionTypes_.makeImmutable(); - bitField0_ |= 0x00000080; - } else { - ensureSuggestionTypesIsMutable(); - suggestionTypes_.addAll(other.suggestionTypes_); - } - onChanged(); + /** + * + * + *
            +     * Optional. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
            +     *
            +     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     *
            +     * This should be the same identifier as
            +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +     * and
            +     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            +     *
            +     * The field must be a UTF-8 encoded string with a length limit of 128
            +     * 
            + * + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for userPseudoId to set. + * @return This builder for chaining. + */ + public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - this.mergeUnknownFields(other.getUnknownFields()); + checkByteStringIsUtf8(value); + userPseudoId_ = value; + bitField0_ |= 0x00000008; onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + private com.google.cloud.discoveryengine.v1beta.UserInfo userInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserInfo, + com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, + com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder> + userInfoBuilder_; + + /** + * + * + *
            +     * Optional. Information about the end user.
            +     *
            +     * This should be the same identifier information as
            +     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +     * and
            +     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userInfo field is set. + */ + public boolean hasUserInfo() { + return ((bitField0_ & 0x00000010) != 0); } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
            +     * Optional. Information about the end user.
            +     *
            +     * This should be the same identifier information as
            +     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +     * and
            +     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userInfo. + */ + public com.google.cloud.discoveryengine.v1beta.UserInfo getUserInfo() { + if (userInfoBuilder_ == null) { + return userInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() + : userInfo_; + } else { + return userInfoBuilder_.getMessage(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - completionConfig_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - query_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - queryModel_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - userPseudoId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - includeTailSuggestions_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 40 - case 50: - { - input.readMessage( - internalGetBoostSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 56: - { - int tmpRaw = input.readEnum(); - ensureSuggestionTypesIsMutable(); - suggestionTypes_.addInt(tmpRaw); - break; - } // case 56 - case 58: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureSuggestionTypesIsMutable(); - while (input.getBytesUntilLimit() > 0) { - suggestionTypes_.addInt(input.readEnum()); - } - input.popLimit(limit); - break; - } // case 58 - case 74: - { - input.readMessage( - internalGetUserInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - 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 completionConfig_ = ""; - /** * * *
            -     * Required. The completion_config of the parent dataStore or engine resource
            -     * name for which the completion is performed, such as
            -     * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
            -     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +     * Optional. Information about the end user.
            +     *
            +     * This should be the same identifier information as
            +     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +     * and
            +     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
                  * 
            * * - * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The completionConfig. */ - public java.lang.String getCompletionConfig() { - java.lang.Object ref = completionConfig_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - completionConfig_ = s; - return s; + public Builder setUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo value) { + if (userInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userInfo_ = value; } else { - return (java.lang.String) ref; + userInfoBuilder_.setMessage(value); } + bitField0_ |= 0x00000010; + onChanged(); + return this; } /** * * *
            -     * Required. The completion_config of the parent dataStore or engine resource
            -     * name for which the completion is performed, such as
            -     * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
            -     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +     * Optional. Information about the end user.
            +     *
            +     * This should be the same identifier information as
            +     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +     * and
            +     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
                  * 
            * * - * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public Builder setUserInfo( + com.google.cloud.discoveryengine.v1beta.UserInfo.Builder builderForValue) { + if (userInfoBuilder_ == null) { + userInfo_ = builderForValue.build(); + } else { + userInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** * - * @return The bytes for completionConfig. + * + *
            +     * Optional. Information about the end user.
            +     *
            +     * This should be the same identifier information as
            +     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +     * and
            +     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getCompletionConfigBytes() { - java.lang.Object ref = completionConfig_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - completionConfig_ = b; - return b; + public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo value) { + if (userInfoBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && userInfo_ != null + && userInfo_ != com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance()) { + getUserInfoBuilder().mergeFrom(value); + } else { + userInfo_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + userInfoBuilder_.mergeFrom(value); } + if (userInfo_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; } /** * * *
            -     * Required. The completion_config of the parent dataStore or engine resource
            -     * name for which the completion is performed, such as
            -     * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
            -     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +     * Optional. Information about the end user.
            +     *
            +     * This should be the same identifier information as
            +     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +     * and
            +     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
                  * 
            * * - * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The completionConfig to set. - * @return This builder for chaining. */ - public Builder setCompletionConfig(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearUserInfo() { + bitField0_ = (bitField0_ & ~0x00000010); + userInfo_ = null; + if (userInfoBuilder_ != null) { + userInfoBuilder_.dispose(); + userInfoBuilder_ = null; } - completionConfig_ = value; - bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3745,140 +5549,123 @@ public Builder setCompletionConfig(java.lang.String value) { * * *
            -     * Required. The completion_config of the parent dataStore or engine resource
            -     * name for which the completion is performed, such as
            -     * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
            -     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +     * Optional. Information about the end user.
            +     *
            +     * This should be the same identifier information as
            +     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +     * and
            +     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
                  * 
            * * - * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearCompletionConfig() { - completionConfig_ = getDefaultInstance().getCompletionConfig(); - bitField0_ = (bitField0_ & ~0x00000001); + public com.google.cloud.discoveryengine.v1beta.UserInfo.Builder getUserInfoBuilder() { + bitField0_ |= 0x00000010; onChanged(); - return this; + return internalGetUserInfoFieldBuilder().getBuilder(); } /** * * *
            -     * Required. The completion_config of the parent dataStore or engine resource
            -     * name for which the completion is performed, such as
            -     * `projects/*/locations/global/collections/default_collection/dataStores/*/completionConfig`
            -     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +     * Optional. Information about the end user.
            +     *
            +     * This should be the same identifier information as
            +     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +     * and
            +     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
                  * 
            * * - * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The bytes for completionConfig to set. - * @return This builder for chaining. */ - public Builder setCompletionConfigBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBuilder() { + if (userInfoBuilder_ != null) { + return userInfoBuilder_.getMessageOrBuilder(); + } else { + return userInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() + : userInfo_; } - checkByteStringIsUtf8(value); - completionConfig_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; } - private java.lang.Object query_ = ""; - /** * * *
            -     * Required. The typeahead input used to fetch suggestions. Maximum length is
            -     * 128 characters.
            +     * Optional. Information about the end user.
                  *
            -     * The query can not be empty for most of the suggestion types. If it is
            -     * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
            -     * suggestion_types contains only the type `RECENT_SEARCH`, the query can
            -     * be an empty string. The is called "zero prefix" feature, which returns
            -     * user's recently searched queries given the empty query.
            +     * This should be the same identifier information as
            +     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +     * and
            +     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
                  * 
            * - * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The query. + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } else { - return (java.lang.String) ref; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserInfo, + com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, + com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder> + internalGetUserInfoFieldBuilder() { + if (userInfoBuilder_ == null) { + userInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserInfo, + com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, + com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder>( + getUserInfo(), getParentForChildren(), isClean()); + userInfo_ = null; } + return userInfoBuilder_; } + private boolean includeTailSuggestions_; + /** * * *
            -     * Required. The typeahead input used to fetch suggestions. Maximum length is
            -     * 128 characters.
            -     *
            -     * The query can not be empty for most of the suggestion types. If it is
            -     * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
            -     * suggestion_types contains only the type `RECENT_SEARCH`, the query can
            -     * be an empty string. The is called "zero prefix" feature, which returns
            -     * user's recently searched queries given the empty query.
            +     * Indicates if tail suggestions should be returned if there are no
            +     * suggestions that match the full query. Even if set to true, if there are
            +     * suggestions that match the full query, those are returned and no
            +     * tail suggestions are returned.
                  * 
            * - * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * bool include_tail_suggestions = 5; * - * @return The bytes for query. + * @return The includeTailSuggestions. */ - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public boolean getIncludeTailSuggestions() { + return includeTailSuggestions_; } /** * * *
            -     * Required. The typeahead input used to fetch suggestions. Maximum length is
            -     * 128 characters.
            -     *
            -     * The query can not be empty for most of the suggestion types. If it is
            -     * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
            -     * suggestion_types contains only the type `RECENT_SEARCH`, the query can
            -     * be an empty string. The is called "zero prefix" feature, which returns
            -     * user's recently searched queries given the empty query.
            +     * Indicates if tail suggestions should be returned if there are no
            +     * suggestions that match the full query. Even if set to true, if there are
            +     * suggestions that match the full query, those are returned and no
            +     * tail suggestions are returned.
                  * 
            * - * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * bool include_tail_suggestions = 5; * - * @param value The query to set. + * @param value The includeTailSuggestions to set. * @return This builder for chaining. */ - public Builder setQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - query_ = value; - bitField0_ |= 0x00000002; + public Builder setIncludeTailSuggestions(boolean value) { + + includeTailSuggestions_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3887,171 +5674,174 @@ public Builder setQuery(java.lang.String value) { * * *
            -     * Required. The typeahead input used to fetch suggestions. Maximum length is
            -     * 128 characters.
            -     *
            -     * The query can not be empty for most of the suggestion types. If it is
            -     * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
            -     * suggestion_types contains only the type `RECENT_SEARCH`, the query can
            -     * be an empty string. The is called "zero prefix" feature, which returns
            -     * user's recently searched queries given the empty query.
            +     * Indicates if tail suggestions should be returned if there are no
            +     * suggestions that match the full query. Even if set to true, if there are
            +     * suggestions that match the full query, those are returned and no
            +     * tail suggestions are returned.
                  * 
            * - * string query = 2 [(.google.api.field_behavior) = REQUIRED]; + * bool include_tail_suggestions = 5; * * @return This builder for chaining. */ - public Builder clearQuery() { - query_ = getDefaultInstance().getQuery(); - bitField0_ = (bitField0_ & ~0x00000002); + public Builder clearIncludeTailSuggestions() { + bitField0_ = (bitField0_ & ~0x00000020); + includeTailSuggestions_ = false; onChanged(); return this; } + private com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec + boostSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpecOrBuilder> + boostSpecBuilder_; + + /** + * + * + *
            +     * Optional. Specification to boost suggestions matching the condition.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the boostSpec field is set. + */ + public boolean hasBoostSpec() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +     * Optional. Specification to boost suggestions matching the condition.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The boostSpec. + */ + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec + getBoostSpec() { + if (boostSpecBuilder_ == null) { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec + .getDefaultInstance() + : boostSpec_; + } else { + return boostSpecBuilder_.getMessage(); + } + } + /** * * *
            -     * Required. The typeahead input used to fetch suggestions. Maximum length is
            -     * 128 characters.
            -     *
            -     * The query can not be empty for most of the suggestion types. If it is
            -     * empty, an `INVALID_ARGUMENT` error is returned. The exception is when the
            -     * suggestion_types contains only the type `RECENT_SEARCH`, the query can
            -     * be an empty string. The is called "zero prefix" feature, which returns
            -     * user's recently searched queries given the empty query.
            +     * Optional. Specification to boost suggestions matching the condition.
                  * 
            * - * string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for query to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setBoostSpec( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + boostSpec_ = value; + } else { + boostSpecBuilder_.setMessage(value); } - checkByteStringIsUtf8(value); - query_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000040; onChanged(); return this; } - private java.lang.Object queryModel_ = ""; - /** * * *
            -     * Specifies the autocomplete data model. This overrides any model specified
            -     * in the Configuration > Autocomplete section of the Cloud console. Currently
            -     * supported values:
            -     *
            -     * * `document` - Using suggestions generated from user-imported documents.
            -     * * `search-history` - Using suggestions generated from the past history of
            -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -     * API calls. Do not use it when there is no traffic for Search API.
            -     * * `user-event` - Using suggestions generated from user-imported search
            -     * events.
            -     * * `document-completable` - Using suggestions taken directly from
            -     * user-imported document fields marked as completable.
            -     *
            -     * Default values:
            -     *
            -     * * `document` is the default model for regular dataStores.
            -     * * `search-history` is the default model for site search dataStores.
            +     * Optional. Specification to boost suggestions matching the condition.
                  * 
            * - * string query_model = 3; - * - * @return The queryModel. + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getQueryModel() { - java.lang.Object ref = queryModel_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - queryModel_ = s; - return s; + public Builder setBoostSpec( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.Builder + builderForValue) { + if (boostSpecBuilder_ == null) { + boostSpec_ = builderForValue.build(); } else { - return (java.lang.String) ref; + boostSpecBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000040; + onChanged(); + return this; } /** * * *
            -     * Specifies the autocomplete data model. This overrides any model specified
            -     * in the Configuration > Autocomplete section of the Cloud console. Currently
            -     * supported values:
            -     *
            -     * * `document` - Using suggestions generated from user-imported documents.
            -     * * `search-history` - Using suggestions generated from the past history of
            -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -     * API calls. Do not use it when there is no traffic for Search API.
            -     * * `user-event` - Using suggestions generated from user-imported search
            -     * events.
            -     * * `document-completable` - Using suggestions taken directly from
            -     * user-imported document fields marked as completable.
            -     *
            -     * Default values:
            -     *
            -     * * `document` is the default model for regular dataStores.
            -     * * `search-history` is the default model for site search dataStores.
            +     * Optional. Specification to boost suggestions matching the condition.
                  * 
            * - * string query_model = 3; - * - * @return The bytes for queryModel. + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getQueryModelBytes() { - java.lang.Object ref = queryModel_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - queryModel_ = b; - return b; + public Builder mergeBoostSpec( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && boostSpec_ != null + && boostSpec_ + != com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec + .getDefaultInstance()) { + getBoostSpecBuilder().mergeFrom(value); + } else { + boostSpec_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + boostSpecBuilder_.mergeFrom(value); + } + if (boostSpec_ != null) { + bitField0_ |= 0x00000040; + onChanged(); } + return this; } /** * * *
            -     * Specifies the autocomplete data model. This overrides any model specified
            -     * in the Configuration > Autocomplete section of the Cloud console. Currently
            -     * supported values:
            -     *
            -     * * `document` - Using suggestions generated from user-imported documents.
            -     * * `search-history` - Using suggestions generated from the past history of
            -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -     * API calls. Do not use it when there is no traffic for Search API.
            -     * * `user-event` - Using suggestions generated from user-imported search
            -     * events.
            -     * * `document-completable` - Using suggestions taken directly from
            -     * user-imported document fields marked as completable.
            -     *
            -     * Default values:
            -     *
            -     * * `document` is the default model for regular dataStores.
            -     * * `search-history` is the default model for site search dataStores.
            +     * Optional. Specification to boost suggestions matching the condition.
                  * 
            * - * string query_model = 3; - * - * @param value The queryModel to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setQueryModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearBoostSpec() { + bitField0_ = (bitField0_ & ~0x00000040); + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; } - queryModel_ = value; - bitField0_ |= 0x00000004; onChanged(); return this; } @@ -4060,177 +5850,169 @@ public Builder setQueryModel(java.lang.String value) { * * *
            -     * Specifies the autocomplete data model. This overrides any model specified
            -     * in the Configuration > Autocomplete section of the Cloud console. Currently
            -     * supported values:
            -     *
            -     * * `document` - Using suggestions generated from user-imported documents.
            -     * * `search-history` - Using suggestions generated from the past history of
            -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -     * API calls. Do not use it when there is no traffic for Search API.
            -     * * `user-event` - Using suggestions generated from user-imported search
            -     * events.
            -     * * `document-completable` - Using suggestions taken directly from
            -     * user-imported document fields marked as completable.
            -     *
            -     * Default values:
            -     *
            -     * * `document` is the default model for regular dataStores.
            -     * * `search-history` is the default model for site search dataStores.
            +     * Optional. Specification to boost suggestions matching the condition.
                  * 
            * - * string query_model = 3; - * - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearQueryModel() { - queryModel_ = getDefaultInstance().getQueryModel(); - bitField0_ = (bitField0_ & ~0x00000004); + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.Builder + getBoostSpecBuilder() { + bitField0_ |= 0x00000040; onChanged(); - return this; + return internalGetBoostSpecFieldBuilder().getBuilder(); } /** * * *
            -     * Specifies the autocomplete data model. This overrides any model specified
            -     * in the Configuration > Autocomplete section of the Cloud console. Currently
            -     * supported values:
            +     * Optional. Specification to boost suggestions matching the condition.
            +     * 
            * - * * `document` - Using suggestions generated from user-imported documents. - * * `search-history` - Using suggestions generated from the past history of - * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search] - * API calls. Do not use it when there is no traffic for Search API. - * * `user-event` - Using suggestions generated from user-imported search - * events. - * * `document-completable` - Using suggestions taken directly from - * user-imported document fields marked as completable. + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpecOrBuilder + getBoostSpecOrBuilder() { + if (boostSpecBuilder_ != null) { + return boostSpecBuilder_.getMessageOrBuilder(); + } else { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec + .getDefaultInstance() + : boostSpec_; + } + } + + /** * - * Default values: * - * * `document` is the default model for regular dataStores. - * * `search-history` is the default model for site search dataStores. + *
            +     * Optional. Specification to boost suggestions matching the condition.
                  * 
            * - * string query_model = 3; - * - * @param value The bytes for queryModel to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setQueryModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpecOrBuilder> + internalGetBoostSpecFieldBuilder() { + if (boostSpecBuilder_ == null) { + boostSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .BoostSpecOrBuilder>(getBoostSpec(), getParentForChildren(), isClean()); + boostSpec_ = null; } - checkByteStringIsUtf8(value); - queryModel_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + return boostSpecBuilder_; + } + + private com.google.protobuf.Internal.IntList suggestionTypes_ = emptyIntList(); + + private void ensureSuggestionTypesIsMutable() { + if (!suggestionTypes_.isModifiable()) { + suggestionTypes_ = makeMutableCopy(suggestionTypes_); + } + bitField0_ |= 0x00000080; } - private java.lang.Object userPseudoId_ = ""; - /** * * *
            -     * A unique identifier for tracking visitors. For example, this could be
            -     * implemented with an HTTP cookie, which should be able to uniquely identify
            -     * a visitor on a single device. This unique identifier should not change if
            -     * the visitor logs in or out of the website.
            -     *
            -     * This field should NOT have a fixed value such as `unknown_visitor`.
            -     *
            -     * This should be the same identifier as
            -     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            -     * and
            -     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            -     *
            -     * The field must be a UTF-8 encoded string with a length limit of 128
            +     * Optional. Suggestion types to return. If empty or unspecified, query
            +     * suggestions are returned. Only one suggestion type is supported at the
            +     * moment.
                  * 
            * - * string user_pseudo_id = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The userPseudoId. + * @return A list containing the suggestionTypes. */ - public java.lang.String getUserPseudoId() { - java.lang.Object ref = userPseudoId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - userPseudoId_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType> + getSuggestionTypesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType>( + suggestionTypes_, suggestionTypes_converter_); } /** * * *
            -     * A unique identifier for tracking visitors. For example, this could be
            -     * implemented with an HTTP cookie, which should be able to uniquely identify
            -     * a visitor on a single device. This unique identifier should not change if
            -     * the visitor logs in or out of the website.
            -     *
            -     * This field should NOT have a fixed value such as `unknown_visitor`.
            -     *
            -     * This should be the same identifier as
            -     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            -     * and
            -     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            -     *
            -     * The field must be a UTF-8 encoded string with a length limit of 128
            +     * Optional. Suggestion types to return. If empty or unspecified, query
            +     * suggestions are returned. Only one suggestion type is supported at the
            +     * moment.
                  * 
            * - * string user_pseudo_id = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The bytes for userPseudoId. + * @return The count of suggestionTypes. */ - public com.google.protobuf.ByteString getUserPseudoIdBytes() { - java.lang.Object ref = userPseudoId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - userPseudoId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public int getSuggestionTypesCount() { + return suggestionTypes_.size(); } /** * * *
            -     * A unique identifier for tracking visitors. For example, this could be
            -     * implemented with an HTTP cookie, which should be able to uniquely identify
            -     * a visitor on a single device. This unique identifier should not change if
            -     * the visitor logs in or out of the website.
            +     * Optional. Suggestion types to return. If empty or unspecified, query
            +     * suggestions are returned. Only one suggestion type is supported at the
            +     * moment.
            +     * 
            * - * This field should NOT have a fixed value such as `unknown_visitor`. + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * - * This should be the same identifier as - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id] - * and - * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id]. + * @param index The index of the element to return. + * @return The suggestionTypes at the given index. + */ + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType + getSuggestionTypes(int index) { + return suggestionTypes_converter_.convert(suggestionTypes_.getInt(index)); + } + + /** * - * The field must be a UTF-8 encoded string with a length limit of 128 + * + *
            +     * Optional. Suggestion types to return. If empty or unspecified, query
            +     * suggestions are returned. Only one suggestion type is supported at the
            +     * moment.
                  * 
            * - * string user_pseudo_id = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The userPseudoId to set. + * @param index The index to set the value at. + * @param value The suggestionTypes to set. * @return This builder for chaining. */ - public Builder setUserPseudoId(java.lang.String value) { + public Builder setSuggestionTypes( + int index, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType value) { if (value == null) { throw new NullPointerException(); } - userPseudoId_ = value; - bitField0_ |= 0x00000008; + ensureSuggestionTypesIsMutable(); + suggestionTypes_.setInt(index, value.getNumber()); onChanged(); return this; } @@ -4239,28 +6021,25 @@ public Builder setUserPseudoId(java.lang.String value) { * * *
            -     * A unique identifier for tracking visitors. For example, this could be
            -     * implemented with an HTTP cookie, which should be able to uniquely identify
            -     * a visitor on a single device. This unique identifier should not change if
            -     * the visitor logs in or out of the website.
            -     *
            -     * This field should NOT have a fixed value such as `unknown_visitor`.
            -     *
            -     * This should be the same identifier as
            -     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            -     * and
            -     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            -     *
            -     * The field must be a UTF-8 encoded string with a length limit of 128
            +     * Optional. Suggestion types to return. If empty or unspecified, query
            +     * suggestions are returned. Only one suggestion type is supported at the
            +     * moment.
                  * 
            * - * string user_pseudo_id = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * + * @param value The suggestionTypes to add. * @return This builder for chaining. */ - public Builder clearUserPseudoId() { - userPseudoId_ = getDefaultInstance().getUserPseudoId(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder addSuggestionTypes( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestionTypesIsMutable(); + suggestionTypes_.addInt(value.getNumber()); onChanged(); return this; } @@ -4269,148 +6048,115 @@ public Builder clearUserPseudoId() { * * *
            -     * A unique identifier for tracking visitors. For example, this could be
            -     * implemented with an HTTP cookie, which should be able to uniquely identify
            -     * a visitor on a single device. This unique identifier should not change if
            -     * the visitor logs in or out of the website.
            -     *
            -     * This field should NOT have a fixed value such as `unknown_visitor`.
            -     *
            -     * This should be the same identifier as
            -     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            -     * and
            -     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            -     *
            -     * The field must be a UTF-8 encoded string with a length limit of 128
            +     * Optional. Suggestion types to return. If empty or unspecified, query
            +     * suggestions are returned. Only one suggestion type is supported at the
            +     * moment.
                  * 
            * - * string user_pseudo_id = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The bytes for userPseudoId to set. + * @param values The suggestionTypes to add. * @return This builder for chaining. */ - public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder addAllSuggestionTypes( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionType> + values) { + ensureSuggestionTypesIsMutable(); + for (com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType + value : values) { + suggestionTypes_.addInt(value.getNumber()); } - checkByteStringIsUtf8(value); - userPseudoId_ = value; - bitField0_ |= 0x00000008; onChanged(); return this; } - private com.google.cloud.discoveryengine.v1beta.UserInfo userInfo_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.UserInfo, - com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, - com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder> - userInfoBuilder_; - /** * * *
            -     * Optional. Information about the end user.
            -     *
            -     * This should be the same identifier information as
            -     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            -     * and
            -     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * Optional. Suggestion types to return. If empty or unspecified, query
            +     * suggestions are returned. Only one suggestion type is supported at the
            +     * moment.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the userInfo field is set. + * @return This builder for chaining. */ - public boolean hasUserInfo() { - return ((bitField0_ & 0x00000010) != 0); + public Builder clearSuggestionTypes() { + suggestionTypes_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; } /** * * *
            -     * Optional. Information about the end user.
            -     *
            -     * This should be the same identifier information as
            -     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            -     * and
            -     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * Optional. Suggestion types to return. If empty or unspecified, query
            +     * suggestions are returned. Only one suggestion type is supported at the
            +     * moment.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The userInfo. + * @return A list containing the enum numeric values on the wire for suggestionTypes. */ - public com.google.cloud.discoveryengine.v1beta.UserInfo getUserInfo() { - if (userInfoBuilder_ == null) { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() - : userInfo_; - } else { - return userInfoBuilder_.getMessage(); - } + public java.util.List getSuggestionTypesValueList() { + suggestionTypes_.makeImmutable(); + return suggestionTypes_; } /** * * *
            -     * Optional. Information about the end user.
            -     *
            -     * This should be the same identifier information as
            -     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            -     * and
            -     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * Optional. Suggestion types to return. If empty or unspecified, query
            +     * suggestions are returned. Only one suggestion type is supported at the
            +     * moment.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of suggestionTypes at the given index. */ - public Builder setUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo value) { - if (userInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - userInfo_ = value; - } else { - userInfoBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; + public int getSuggestionTypesValue(int index) { + return suggestionTypes_.getInt(index); } /** * * *
            -     * Optional. Information about the end user.
            -     *
            -     * This should be the same identifier information as
            -     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            -     * and
            -     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * Optional. Suggestion types to return. If empty or unspecified, query
            +     * suggestions are returned. Only one suggestion type is supported at the
            +     * moment.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for suggestionTypes to set. + * @return This builder for chaining. */ - public Builder setUserInfo( - com.google.cloud.discoveryengine.v1beta.UserInfo.Builder builderForValue) { - if (userInfoBuilder_ == null) { - userInfo_ = builderForValue.build(); - } else { - userInfoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; + public Builder setSuggestionTypesValue(int index, int value) { + ensureSuggestionTypesIsMutable(); + suggestionTypes_.setInt(index, value); onChanged(); return this; } @@ -4419,34 +6165,22 @@ public Builder setUserInfo( * * *
            -     * Optional. Information about the end user.
            -     *
            -     * This should be the same identifier information as
            -     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            -     * and
            -     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * Optional. Suggestion types to return. If empty or unspecified, query
            +     * suggestions are returned. Only one suggestion type is supported at the
            +     * moment.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The enum numeric value on the wire for suggestionTypes to add. + * @return This builder for chaining. */ - public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo value) { - if (userInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && userInfo_ != null - && userInfo_ != com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance()) { - getUserInfoBuilder().mergeFrom(value); - } else { - userInfo_ = value; - } - } else { - userInfoBuilder_.mergeFrom(value); - } - if (userInfo_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } + public Builder addSuggestionTypesValue(int value) { + ensureSuggestionTypesIsMutable(); + suggestionTypes_.addInt(value); + onChanged(); return this; } @@ -4454,74 +6188,86 @@ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo va * * *
            -     * Optional. Information about the end user.
            -     *
            -     * This should be the same identifier information as
            -     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            -     * and
            -     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * Optional. Suggestion types to return. If empty or unspecified, query
            +     * suggestions are returned. Only one suggestion type is supported at the
            +     * moment.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param values The enum numeric values on the wire for suggestionTypes to add. + * @return This builder for chaining. */ - public Builder clearUserInfo() { - bitField0_ = (bitField0_ & ~0x00000010); - userInfo_ = null; - if (userInfoBuilder_ != null) { - userInfoBuilder_.dispose(); - userInfoBuilder_ = null; + public Builder addAllSuggestionTypesValue(java.lang.Iterable values) { + ensureSuggestionTypesIsMutable(); + for (int value : values) { + suggestionTypes_.addInt(value); } onChanged(); return this; } + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec> + suggestionTypeSpecs_ = java.util.Collections.emptyList(); + + private void ensureSuggestionTypeSpecsIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + suggestionTypeSpecs_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec>(suggestionTypeSpecs_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpecOrBuilder> + suggestionTypeSpecsBuilder_; + /** * * *
            -     * Optional. Information about the end user.
            -     *
            -     * This should be the same identifier information as
            -     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            -     * and
            -     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * Optional. Specification of each suggestion type.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.UserInfo.Builder getUserInfoBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return internalGetUserInfoFieldBuilder().getBuilder(); + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec> + getSuggestionTypeSpecsList() { + if (suggestionTypeSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(suggestionTypeSpecs_); + } else { + return suggestionTypeSpecsBuilder_.getMessageList(); + } } /** * * *
            -     * Optional. Information about the end user.
            -     *
            -     * This should be the same identifier information as
            -     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            -     * and
            -     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * Optional. Specification of each suggestion type.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBuilder() { - if (userInfoBuilder_ != null) { - return userInfoBuilder_.getMessageOrBuilder(); + public int getSuggestionTypeSpecsCount() { + if (suggestionTypeSpecsBuilder_ == null) { + return suggestionTypeSpecs_.size(); } else { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() - : userInfo_; + return suggestionTypeSpecsBuilder_.getCount(); } } @@ -4529,76 +6275,73 @@ public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBu * * *
            -     * Optional. Information about the end user.
            -     *
            -     * This should be the same identifier information as
            -     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            -     * and
            -     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * Optional. Specification of each suggestion type.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.UserInfo, - com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, - com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder> - internalGetUserInfoFieldBuilder() { - if (userInfoBuilder_ == null) { - userInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.UserInfo, - com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, - com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder>( - getUserInfo(), getParentForChildren(), isClean()); - userInfo_ = null; + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + getSuggestionTypeSpecs(int index) { + if (suggestionTypeSpecsBuilder_ == null) { + return suggestionTypeSpecs_.get(index); + } else { + return suggestionTypeSpecsBuilder_.getMessage(index); } - return userInfoBuilder_; } - private boolean includeTailSuggestions_; - /** * * *
            -     * Indicates if tail suggestions should be returned if there are no
            -     * suggestions that match the full query. Even if set to true, if there are
            -     * suggestions that match the full query, those are returned and no
            -     * tail suggestions are returned.
            +     * Optional. Specification of each suggestion type.
                  * 
            * - * bool include_tail_suggestions = 5; - * - * @return The includeTailSuggestions. + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public boolean getIncludeTailSuggestions() { - return includeTailSuggestions_; + public Builder setSuggestionTypeSpecs( + int index, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + value) { + if (suggestionTypeSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestionTypeSpecsIsMutable(); + suggestionTypeSpecs_.set(index, value); + onChanged(); + } else { + suggestionTypeSpecsBuilder_.setMessage(index, value); + } + return this; } /** * * *
            -     * Indicates if tail suggestions should be returned if there are no
            -     * suggestions that match the full query. Even if set to true, if there are
            -     * suggestions that match the full query, those are returned and no
            -     * tail suggestions are returned.
            +     * Optional. Specification of each suggestion type.
                  * 
            * - * bool include_tail_suggestions = 5; - * - * @param value The includeTailSuggestions to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setIncludeTailSuggestions(boolean value) { - - includeTailSuggestions_ = value; - bitField0_ |= 0x00000020; - onChanged(); + public Builder setSuggestionTypeSpecs( + int index, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .Builder + builderForValue) { + if (suggestionTypeSpecsBuilder_ == null) { + ensureSuggestionTypeSpecsIsMutable(); + suggestionTypeSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + suggestionTypeSpecsBuilder_.setMessage(index, builderForValue.build()); + } return this; } @@ -4606,96 +6349,105 @@ public Builder setIncludeTailSuggestions(boolean value) { * * *
            -     * Indicates if tail suggestions should be returned if there are no
            -     * suggestions that match the full query. Even if set to true, if there are
            -     * suggestions that match the full query, those are returned and no
            -     * tail suggestions are returned.
            +     * Optional. Specification of each suggestion type.
                  * 
            * - * bool include_tail_suggestions = 5; - * - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearIncludeTailSuggestions() { - bitField0_ = (bitField0_ & ~0x00000020); - includeTailSuggestions_ = false; - onChanged(); + public Builder addSuggestionTypeSpecs( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + value) { + if (suggestionTypeSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestionTypeSpecsIsMutable(); + suggestionTypeSpecs_.add(value); + onChanged(); + } else { + suggestionTypeSpecsBuilder_.addMessage(value); + } return this; } - private com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec - boostSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec, - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.Builder, - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpecOrBuilder> - boostSpecBuilder_; - /** * * *
            -     * Optional. Specification to boost suggestions matching the condition.
            +     * Optional. Specification of each suggestion type.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the boostSpec field is set. */ - public boolean hasBoostSpec() { - return ((bitField0_ & 0x00000040) != 0); + public Builder addSuggestionTypeSpecs( + int index, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + value) { + if (suggestionTypeSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestionTypeSpecsIsMutable(); + suggestionTypeSpecs_.add(index, value); + onChanged(); + } else { + suggestionTypeSpecsBuilder_.addMessage(index, value); + } + return this; } /** * * *
            -     * Optional. Specification to boost suggestions matching the condition.
            +     * Optional. Specification of each suggestion type.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The boostSpec. */ - public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec - getBoostSpec() { - if (boostSpecBuilder_ == null) { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec - .getDefaultInstance() - : boostSpec_; + public Builder addSuggestionTypeSpecs( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .Builder + builderForValue) { + if (suggestionTypeSpecsBuilder_ == null) { + ensureSuggestionTypeSpecsIsMutable(); + suggestionTypeSpecs_.add(builderForValue.build()); + onChanged(); } else { - return boostSpecBuilder_.getMessage(); + suggestionTypeSpecsBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
            -     * Optional. Specification to boost suggestions matching the condition.
            +     * Optional. Specification of each suggestion type.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setBoostSpec( - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec value) { - if (boostSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - boostSpec_ = value; + public Builder addSuggestionTypeSpecs( + int index, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .Builder + builderForValue) { + if (suggestionTypeSpecsBuilder_ == null) { + ensureSuggestionTypeSpecsIsMutable(); + suggestionTypeSpecs_.add(index, builderForValue.build()); + onChanged(); } else { - boostSpecBuilder_.setMessage(value); + suggestionTypeSpecsBuilder_.addMessage(index, builderForValue.build()); } - bitField0_ |= 0x00000040; - onChanged(); return this; } @@ -4703,23 +6455,26 @@ public Builder setBoostSpec( * * *
            -     * Optional. Specification to boost suggestions matching the condition.
            +     * Optional. Specification of each suggestion type.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setBoostSpec( - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.Builder - builderForValue) { - if (boostSpecBuilder_ == null) { - boostSpec_ = builderForValue.build(); + public Builder addAllSuggestionTypeSpecs( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec> + values) { + if (suggestionTypeSpecsBuilder_ == null) { + ensureSuggestionTypeSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, suggestionTypeSpecs_); + onChanged(); } else { - boostSpecBuilder_.setMessage(builderForValue.build()); + suggestionTypeSpecsBuilder_.addAllMessages(values); } - bitField0_ |= 0x00000040; - onChanged(); return this; } @@ -4727,31 +6482,20 @@ public Builder setBoostSpec( * * *
            -     * Optional. Specification to boost suggestions matching the condition.
            +     * Optional. Specification of each suggestion type.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeBoostSpec( - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec value) { - if (boostSpecBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && boostSpec_ != null - && boostSpec_ - != com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec - .getDefaultInstance()) { - getBoostSpecBuilder().mergeFrom(value); - } else { - boostSpec_ = value; - } - } else { - boostSpecBuilder_.mergeFrom(value); - } - if (boostSpec_ != null) { - bitField0_ |= 0x00000040; + public Builder clearSuggestionTypeSpecs() { + if (suggestionTypeSpecsBuilder_ == null) { + suggestionTypeSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); + } else { + suggestionTypeSpecsBuilder_.clear(); } return this; } @@ -4760,21 +6504,21 @@ public Builder mergeBoostSpec( * * *
            -     * Optional. Specification to boost suggestions matching the condition.
            +     * Optional. Specification of each suggestion type.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearBoostSpec() { - bitField0_ = (bitField0_ & ~0x00000040); - boostSpec_ = null; - if (boostSpecBuilder_ != null) { - boostSpecBuilder_.dispose(); - boostSpecBuilder_ = null; + public Builder removeSuggestionTypeSpecs(int index) { + if (suggestionTypeSpecsBuilder_ == null) { + ensureSuggestionTypeSpecsIsMutable(); + suggestionTypeSpecs_.remove(index); + onChanged(); + } else { + suggestionTypeSpecsBuilder_.remove(index); } - onChanged(); return this; } @@ -4782,40 +6526,37 @@ public Builder clearBoostSpec() { * * *
            -     * Optional. Specification to boost suggestions matching the condition.
            +     * Optional. Specification of each suggestion type.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.Builder - getBoostSpecBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return internalGetBoostSpecFieldBuilder().getBuilder(); + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .Builder + getSuggestionTypeSpecsBuilder(int index) { + return internalGetSuggestionTypeSpecsFieldBuilder().getBuilder(index); } /** * * *
            -     * Optional. Specification to boost suggestions matching the condition.
            +     * Optional. Specification of each suggestion type.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpecOrBuilder - getBoostSpecOrBuilder() { - if (boostSpecBuilder_ != null) { - return boostSpecBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpecOrBuilder + getSuggestionTypeSpecsOrBuilder(int index) { + if (suggestionTypeSpecsBuilder_ == null) { + return suggestionTypeSpecs_.get(index); } else { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec - .getDefaultInstance() - : boostSpec_; + return suggestionTypeSpecsBuilder_.getMessageOrBuilder(index); } } @@ -4823,272 +6564,245 @@ public Builder clearBoostSpec() { * * *
            -     * Optional. Specification to boost suggestions matching the condition.
            +     * Optional. Specification of each suggestion type.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec boost_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec, - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec.Builder, - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpecOrBuilder> - internalGetBoostSpecFieldBuilder() { - if (boostSpecBuilder_ == null) { - boostSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec, - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpec - .Builder, + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest - .BoostSpecOrBuilder>(getBoostSpec(), getParentForChildren(), isClean()); - boostSpec_ = null; - } - return boostSpecBuilder_; - } - - private com.google.protobuf.Internal.IntList suggestionTypes_ = emptyIntList(); - - private void ensureSuggestionTypesIsMutable() { - if (!suggestionTypes_.isModifiable()) { - suggestionTypes_ = makeMutableCopy(suggestionTypes_); + .SuggestionTypeSpecOrBuilder> + getSuggestionTypeSpecsOrBuilderList() { + if (suggestionTypeSpecsBuilder_ != null) { + return suggestionTypeSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(suggestionTypeSpecs_); } - bitField0_ |= 0x00000080; } /** * * *
            -     * Optional. Suggestion types to return. If empty or unspecified, query
            -     * suggestions are returned. Only one suggestion type is supported at the
            -     * moment.
            +     * Optional. Specification of each suggestion type.
                  * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return A list containing the suggestionTypes. */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType> - getSuggestionTypesList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType>( - suggestionTypes_, suggestionTypes_converter_); + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .Builder + addSuggestionTypeSpecsBuilder() { + return internalGetSuggestionTypeSpecsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec.getDefaultInstance()); } /** * * *
            -     * Optional. Suggestion types to return. If empty or unspecified, query
            -     * suggestions are returned. Only one suggestion type is supported at the
            -     * moment.
            +     * Optional. Specification of each suggestion type.
                  * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The count of suggestionTypes. */ - public int getSuggestionTypesCount() { - return suggestionTypes_.size(); + public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .Builder + addSuggestionTypeSpecsBuilder(int index) { + return internalGetSuggestionTypeSpecsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec.getDefaultInstance()); } /** * * *
            -     * Optional. Suggestion types to return. If empty or unspecified, query
            -     * suggestions are returned. Only one suggestion type is supported at the
            -     * moment.
            +     * Optional. Specification of each suggestion type.
                  * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param index The index of the element to return. - * @return The suggestionTypes at the given index. */ - public com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType - getSuggestionTypes(int index) { - return suggestionTypes_converter_.convert(suggestionTypes_.getInt(index)); + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .Builder> + getSuggestionTypeSpecsBuilderList() { + return internalGetSuggestionTypeSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpecOrBuilder> + internalGetSuggestionTypeSpecsFieldBuilder() { + if (suggestionTypeSpecsBuilder_ == null) { + suggestionTypeSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpecOrBuilder>( + suggestionTypeSpecs_, + ((bitField0_ & 0x00000100) != 0), + getParentForChildren(), + isClean()); + suggestionTypeSpecs_ = null; + } + return suggestionTypeSpecsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList experimentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExperimentIdsIsMutable() { + if (!experimentIds_.isModifiable()) { + experimentIds_ = new com.google.protobuf.LazyStringArrayList(experimentIds_); + } + bitField0_ |= 0x00000200; } /** * * *
            -     * Optional. Suggestion types to return. If empty or unspecified, query
            -     * suggestions are returned. Only one suggestion type is supported at the
            -     * moment.
            +     * Optional. Experiment ids for this request.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; * - * @param index The index to set the value at. - * @param value The suggestionTypes to set. - * @return This builder for chaining. + * @return A list containing the experimentIds. */ - public Builder setSuggestionTypes( - int index, - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSuggestionTypesIsMutable(); - suggestionTypes_.setInt(index, value.getNumber()); - onChanged(); - return this; + public com.google.protobuf.ProtocolStringList getExperimentIdsList() { + experimentIds_.makeImmutable(); + return experimentIds_; } /** * * *
            -     * Optional. Suggestion types to return. If empty or unspecified, query
            -     * suggestions are returned. Only one suggestion type is supported at the
            -     * moment.
            +     * Optional. Experiment ids for this request.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The suggestionTypes to add. - * @return This builder for chaining. + * @return The count of experimentIds. */ - public Builder addSuggestionTypes( - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSuggestionTypesIsMutable(); - suggestionTypes_.addInt(value.getNumber()); - onChanged(); - return this; + public int getExperimentIdsCount() { + return experimentIds_.size(); } /** * * *
            -     * Optional. Suggestion types to return. If empty or unspecified, query
            -     * suggestions are returned. Only one suggestion type is supported at the
            -     * moment.
            +     * Optional. Experiment ids for this request.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; * - * @param values The suggestionTypes to add. - * @return This builder for chaining. + * @param index The index of the element to return. + * @return The experimentIds at the given index. */ - public Builder addAllSuggestionTypes( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest - .SuggestionType> - values) { - ensureSuggestionTypesIsMutable(); - for (com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType - value : values) { - suggestionTypes_.addInt(value.getNumber()); - } - onChanged(); - return this; + public java.lang.String getExperimentIds(int index) { + return experimentIds_.get(index); } /** * * *
            -     * Optional. Suggestion types to return. If empty or unspecified, query
            -     * suggestions are returned. Only one suggestion type is supported at the
            -     * moment.
            +     * Optional. Experiment ids for this request.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; * - * @return This builder for chaining. + * @param index The index of the value to return. + * @return The bytes of the experimentIds at the given index. */ - public Builder clearSuggestionTypes() { - suggestionTypes_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; + public com.google.protobuf.ByteString getExperimentIdsBytes(int index) { + return experimentIds_.getByteString(index); } /** * * *
            -     * Optional. Suggestion types to return. If empty or unspecified, query
            -     * suggestions are returned. Only one suggestion type is supported at the
            -     * moment.
            +     * Optional. Experiment ids for this request.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; * - * @return A list containing the enum numeric values on the wire for suggestionTypes. + * @param index The index to set the value at. + * @param value The experimentIds to set. + * @return This builder for chaining. */ - public java.util.List getSuggestionTypesValueList() { - suggestionTypes_.makeImmutable(); - return suggestionTypes_; + public Builder setExperimentIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExperimentIdsIsMutable(); + experimentIds_.set(index, value); + bitField0_ |= 0x00000200; + onChanged(); + return this; } /** * * *
            -     * Optional. Suggestion types to return. If empty or unspecified, query
            -     * suggestions are returned. Only one suggestion type is supported at the
            -     * moment.
            +     * Optional. Experiment ids for this request.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of suggestionTypes at the given index. + * @param value The experimentIds to add. + * @return This builder for chaining. */ - public int getSuggestionTypesValue(int index) { - return suggestionTypes_.getInt(index); + public Builder addExperimentIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExperimentIdsIsMutable(); + experimentIds_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; } /** * * *
            -     * Optional. Suggestion types to return. If empty or unspecified, query
            -     * suggestions are returned. Only one suggestion type is supported at the
            -     * moment.
            +     * Optional. Experiment ids for this request.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for suggestionTypes to set. + * @param values The experimentIds to add. * @return This builder for chaining. */ - public Builder setSuggestionTypesValue(int index, int value) { - ensureSuggestionTypesIsMutable(); - suggestionTypes_.setInt(index, value); + public Builder addAllExperimentIds(java.lang.Iterable values) { + ensureExperimentIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, experimentIds_); + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -5097,21 +6811,17 @@ public Builder setSuggestionTypesValue(int index, int value) { * * *
            -     * Optional. Suggestion types to return. If empty or unspecified, query
            -     * suggestions are returned. Only one suggestion type is supported at the
            -     * moment.
            +     * Optional. Experiment ids for this request.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The enum numeric value on the wire for suggestionTypes to add. * @return This builder for chaining. */ - public Builder addSuggestionTypesValue(int value) { - ensureSuggestionTypesIsMutable(); - suggestionTypes_.addInt(value); + public Builder clearExperimentIds() { + experimentIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + ; onChanged(); return this; } @@ -5120,23 +6830,22 @@ public Builder addSuggestionTypesValue(int value) { * * *
            -     * Optional. Suggestion types to return. If empty or unspecified, query
            -     * suggestions are returned. Only one suggestion type is supported at the
            -     * moment.
            +     * Optional. Experiment ids for this request.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionType suggestion_types = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; * - * @param values The enum numeric values on the wire for suggestionTypes to add. + * @param value The bytes of the experimentIds to add. * @return This builder for chaining. */ - public Builder addAllSuggestionTypesValue(java.lang.Iterable values) { - ensureSuggestionTypesIsMutable(); - for (int value : values) { - suggestionTypes_.addInt(value); + public Builder addExperimentIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureExperimentIdsIsMutable(); + experimentIds_.add(value); + bitField0_ |= 0x00000200; onChanged(); return this; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedCompleteQueryRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedCompleteQueryRequestOrBuilder.java index 3c8850970b2e..2a08b991bf87 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedCompleteQueryRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedCompleteQueryRequestOrBuilder.java @@ -106,9 +106,9 @@ public interface AdvancedCompleteQueryRequestOrBuilder * * *
            -   * Specifies the autocomplete data model. This overrides any model specified
            -   * in the Configuration > Autocomplete section of the Cloud console. Currently
            -   * supported values:
            +   * Specifies the autocomplete query model, which only applies to the QUERY
            +   * SuggestionType. This overrides any model specified in the Configuration >
            +   * Autocomplete section of the Cloud console. Currently supported values:
                *
                * * `document` - Using suggestions generated from user-imported documents.
                * * `search-history` - Using suggestions generated from the past history of
            @@ -135,9 +135,9 @@ public interface AdvancedCompleteQueryRequestOrBuilder
                *
                *
                * 
            -   * Specifies the autocomplete data model. This overrides any model specified
            -   * in the Configuration > Autocomplete section of the Cloud console. Currently
            -   * supported values:
            +   * Specifies the autocomplete query model, which only applies to the QUERY
            +   * SuggestionType. This overrides any model specified in the Configuration >
            +   * Autocomplete section of the Cloud console. Currently supported values:
                *
                * * `document` - Using suggestions generated from user-imported documents.
                * * `search-history` - Using suggestions generated from the past history of
            @@ -164,10 +164,10 @@ public interface AdvancedCompleteQueryRequestOrBuilder
                *
                *
                * 
            -   * A unique identifier for tracking visitors. For example, this could be
            -   * implemented with an HTTP cookie, which should be able to uniquely identify
            -   * a visitor on a single device. This unique identifier should not change if
            -   * the visitor logs in or out of the website.
            +   * Optional. A unique identifier for tracking visitors. For example, this
            +   * could be implemented with an HTTP cookie, which should be able to uniquely
            +   * identify a visitor on a single device. This unique identifier should not
            +   * change if the visitor logs in or out of the website.
                *
                * This field should NOT have a fixed value such as `unknown_visitor`.
                *
            @@ -179,7 +179,7 @@ public interface AdvancedCompleteQueryRequestOrBuilder
                * The field must be a UTF-8 encoded string with a length limit of 128
                * 
            * - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The userPseudoId. */ @@ -189,10 +189,10 @@ public interface AdvancedCompleteQueryRequestOrBuilder * * *
            -   * A unique identifier for tracking visitors. For example, this could be
            -   * implemented with an HTTP cookie, which should be able to uniquely identify
            -   * a visitor on a single device. This unique identifier should not change if
            -   * the visitor logs in or out of the website.
            +   * Optional. A unique identifier for tracking visitors. For example, this
            +   * could be implemented with an HTTP cookie, which should be able to uniquely
            +   * identify a visitor on a single device. This unique identifier should not
            +   * change if the visitor logs in or out of the website.
                *
                * This field should NOT have a fixed value such as `unknown_visitor`.
                *
            @@ -204,7 +204,7 @@ public interface AdvancedCompleteQueryRequestOrBuilder
                * The field must be a UTF-8 encoded string with a length limit of 128
                * 
            * - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for userPseudoId. */ @@ -417,4 +417,131 @@ public interface AdvancedCompleteQueryRequestOrBuilder * @return The enum numeric value on the wire of suggestionTypes at the given index. */ int getSuggestionTypesValue(int index); + + /** + * + * + *
            +   * Optional. Specification of each suggestion type.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec> + getSuggestionTypeSpecsList(); + + /** + * + * + *
            +   * Optional. Specification of each suggestion type.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec + getSuggestionTypeSpecs(int index); + + /** + * + * + *
            +   * Optional. Specification of each suggestion type.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSuggestionTypeSpecsCount(); + + /** + * + * + *
            +   * Optional. Specification of each suggestion type.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest + .SuggestionTypeSpecOrBuilder> + getSuggestionTypeSpecsOrBuilderList(); + + /** + * + * + *
            +   * Optional. Specification of each suggestion type.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpec suggestion_type_specs = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeSpecOrBuilder + getSuggestionTypeSpecsOrBuilder(int index); + + /** + * + * + *
            +   * Optional. Experiment ids for this request.
            +   * 
            + * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the experimentIds. + */ + java.util.List getExperimentIdsList(); + + /** + * + * + *
            +   * Optional. Experiment ids for this request.
            +   * 
            + * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of experimentIds. + */ + int getExperimentIdsCount(); + + /** + * + * + *
            +   * Optional. Experiment ids for this request.
            +   * 
            + * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The experimentIds at the given index. + */ + java.lang.String getExperimentIds(int index); + + /** + * + * + *
            +   * Optional. Experiment ids for this request.
            +   * 
            + * + * repeated string experiment_ids = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the experimentIds at the given index. + */ + com.google.protobuf.ByteString getExperimentIdsBytes(int index); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedCompleteQueryResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedCompleteQueryResponse.java index 276f9aec51fe..fc2ba6e7ed90 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedCompleteQueryResponse.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedCompleteQueryResponse.java @@ -225,6 +225,19 @@ public interface QuerySuggestionOrBuilder * @return The bytes of the dataStore at the given index. */ com.google.protobuf.ByteString getDataStoreBytes(int index); + + /** + * + * + *
            +     * The score of each suggestion. The score is in the range of [0, 1].
            +     * 
            + * + * double score = 4; + * + * @return The score. + */ + double getScore(); } /** @@ -482,6 +495,25 @@ public com.google.protobuf.ByteString getDataStoreBytes(int index) { return dataStore_.getByteString(index); } + public static final int SCORE_FIELD_NUMBER = 4; + private double score_ = 0D; + + /** + * + * + *
            +     * The score of each suggestion. The score is in the range of [0, 1].
            +     * 
            + * + * double score = 4; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -506,6 +538,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < dataStore_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 3, dataStore_.getRaw(i)); } + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { + output.writeDouble(4, score_); + } getUnknownFields().writeTo(output); } @@ -534,6 +569,9 @@ public int getSerializedSize() { size += dataSize; size += 1 * getDataStoreList().size(); } + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, score_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -557,6 +595,8 @@ public boolean equals(final java.lang.Object obj) { if (!getCompletableFieldPathsList().equals(other.getCompletableFieldPathsList())) return false; if (!getDataStoreList().equals(other.getDataStoreList())) return false; + if (java.lang.Double.doubleToLongBits(getScore()) + != java.lang.Double.doubleToLongBits(other.getScore())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -578,6 +618,11 @@ public int hashCode() { hash = (37 * hash) + DATA_STORE_FIELD_NUMBER; hash = (53 * hash) + getDataStoreList().hashCode(); } + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScore())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -746,6 +791,7 @@ public Builder clear() { suggestion_ = ""; completableFieldPaths_ = com.google.protobuf.LazyStringArrayList.emptyList(); dataStore_ = com.google.protobuf.LazyStringArrayList.emptyList(); + score_ = 0D; return this; } @@ -802,6 +848,9 @@ private void buildPartial0( dataStore_.makeImmutable(); result.dataStore_ = dataStore_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.score_ = score_; + } } @java.lang.Override @@ -850,6 +899,9 @@ public Builder mergeFrom( } onChanged(); } + if (java.lang.Double.doubleToRawLongBits(other.getScore()) != 0) { + setScore(other.getScore()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -896,6 +948,12 @@ public Builder mergeFrom( dataStore_.add(s); break; } // case 26 + case 33: + { + score_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1420,6 +1478,62 @@ public Builder addDataStoreBytes(com.google.protobuf.ByteString value) { return this; } + private double score_; + + /** + * + * + *
            +       * The score of each suggestion. The score is in the range of [0, 1].
            +       * 
            + * + * double score = 4; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + + /** + * + * + *
            +       * The score of each suggestion. The score is in the range of [0, 1].
            +       * 
            + * + * double score = 4; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(double value) { + + score_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The score of each suggestion. The score is in the range of [0, 1].
            +       * 
            + * + * double score = 4; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000008); + score_ = 0D; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion) } @@ -1607,6 +1721,71 @@ public interface PersonSuggestionOrBuilder * @return The bytes for dataStore. */ com.google.protobuf.ByteString getDataStoreBytes(); + + /** + * + * + *
            +     * The score of each suggestion. The score is in the range of [0, 1].
            +     * 
            + * + * double score = 6; + * + * @return The score. + */ + double getScore(); + + /** + * + * + *
            +     * The photo uri of the person suggestion.
            +     * 
            + * + * string display_photo_uri = 7; + * + * @return The displayPhotoUri. + */ + java.lang.String getDisplayPhotoUri(); + + /** + * + * + *
            +     * The photo uri of the person suggestion.
            +     * 
            + * + * string display_photo_uri = 7; + * + * @return The bytes for displayPhotoUri. + */ + com.google.protobuf.ByteString getDisplayPhotoUriBytes(); + + /** + * + * + *
            +     * The destination uri of the person suggestion.
            +     * 
            + * + * string destination_uri = 8; + * + * @return The destinationUri. + */ + java.lang.String getDestinationUri(); + + /** + * + * + *
            +     * The destination uri of the person suggestion.
            +     * 
            + * + * string destination_uri = 8; + * + * @return The bytes for destinationUri. + */ + com.google.protobuf.ByteString getDestinationUriBytes(); } /** @@ -1644,6 +1823,8 @@ private PersonSuggestion() { suggestion_ = ""; personType_ = 0; dataStore_ = ""; + displayPhotoUri_ = ""; + destinationUri_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -2048,6 +2229,131 @@ public com.google.protobuf.ByteString getDataStoreBytes() { } } + public static final int SCORE_FIELD_NUMBER = 6; + private double score_ = 0D; + + /** + * + * + *
            +     * The score of each suggestion. The score is in the range of [0, 1].
            +     * 
            + * + * double score = 6; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + + public static final int DISPLAY_PHOTO_URI_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayPhotoUri_ = ""; + + /** + * + * + *
            +     * The photo uri of the person suggestion.
            +     * 
            + * + * string display_photo_uri = 7; + * + * @return The displayPhotoUri. + */ + @java.lang.Override + public java.lang.String getDisplayPhotoUri() { + java.lang.Object ref = displayPhotoUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayPhotoUri_ = s; + return s; + } + } + + /** + * + * + *
            +     * The photo uri of the person suggestion.
            +     * 
            + * + * string display_photo_uri = 7; + * + * @return The bytes for displayPhotoUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayPhotoUriBytes() { + java.lang.Object ref = displayPhotoUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayPhotoUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_URI_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationUri_ = ""; + + /** + * + * + *
            +     * The destination uri of the person suggestion.
            +     * 
            + * + * string destination_uri = 8; + * + * @return The destinationUri. + */ + @java.lang.Override + public java.lang.String getDestinationUri() { + java.lang.Object ref = destinationUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationUri_ = s; + return s; + } + } + + /** + * + * + *
            +     * The destination uri of the person suggestion.
            +     * 
            + * + * string destination_uri = 8; + * + * @return The bytes for destinationUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationUriBytes() { + java.lang.Object ref = destinationUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2077,6 +2383,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, dataStore_); } + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { + output.writeDouble(6, score_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayPhotoUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, displayPhotoUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, destinationUri_); + } getUnknownFields().writeTo(output); } @@ -2101,6 +2416,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, dataStore_); } + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, score_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayPhotoUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, displayPhotoUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, destinationUri_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2127,6 +2451,10 @@ public boolean equals(final java.lang.Object obj) { if (!getDocument().equals(other.getDocument())) return false; } if (!getDataStore().equals(other.getDataStore())) return false; + if (java.lang.Double.doubleToLongBits(getScore()) + != java.lang.Double.doubleToLongBits(other.getScore())) return false; + if (!getDisplayPhotoUri().equals(other.getDisplayPhotoUri())) return false; + if (!getDestinationUri().equals(other.getDestinationUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2148,6 +2476,15 @@ public int hashCode() { } hash = (37 * hash) + DATA_STORE_FIELD_NUMBER; hash = (53 * hash) + getDataStore().hashCode(); + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScore())); + hash = (37 * hash) + DISPLAY_PHOTO_URI_FIELD_NUMBER; + hash = (53 * hash) + getDisplayPhotoUri().hashCode(); + hash = (37 * hash) + DESTINATION_URI_FIELD_NUMBER; + hash = (53 * hash) + getDestinationUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2330,6 +2667,9 @@ public Builder clear() { documentBuilder_ = null; } dataStore_ = ""; + score_ = 0D; + displayPhotoUri_ = ""; + destinationUri_ = ""; return this; } @@ -2389,6 +2729,15 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000008) != 0)) { result.dataStore_ = dataStore_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.score_ = score_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.displayPhotoUri_ = displayPhotoUri_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.destinationUri_ = destinationUri_; + } result.bitField0_ |= to_bitField0_; } @@ -2430,6 +2779,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; onChanged(); } + if (java.lang.Double.doubleToRawLongBits(other.getScore()) != 0) { + setScore(other.getScore()); + } + if (!other.getDisplayPhotoUri().isEmpty()) { + displayPhotoUri_ = other.displayPhotoUri_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getDestinationUri().isEmpty()) { + destinationUri_ = other.destinationUri_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2481,6 +2843,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 42 + case 49: + { + score_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 49 + case 58: + { + displayPhotoUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + destinationUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3043,21 +3423,299 @@ public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion) - } + private double score_; - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion) - private static final com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse - .PersonSuggestion - DEFAULT_INSTANCE; + /** + * + * + *
            +       * The score of each suggestion. The score is in the range of [0, 1].
            +       * 
            + * + * double score = 6; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse - .PersonSuggestion(); - } + /** + * + * + *
            +       * The score of each suggestion. The score is in the range of [0, 1].
            +       * 
            + * + * double score = 6; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(double value) { - public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse + score_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The score of each suggestion. The score is in the range of [0, 1].
            +       * 
            + * + * double score = 6; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000010); + score_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object displayPhotoUri_ = ""; + + /** + * + * + *
            +       * The photo uri of the person suggestion.
            +       * 
            + * + * string display_photo_uri = 7; + * + * @return The displayPhotoUri. + */ + public java.lang.String getDisplayPhotoUri() { + java.lang.Object ref = displayPhotoUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayPhotoUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * The photo uri of the person suggestion.
            +       * 
            + * + * string display_photo_uri = 7; + * + * @return The bytes for displayPhotoUri. + */ + public com.google.protobuf.ByteString getDisplayPhotoUriBytes() { + java.lang.Object ref = displayPhotoUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayPhotoUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * The photo uri of the person suggestion.
            +       * 
            + * + * string display_photo_uri = 7; + * + * @param value The displayPhotoUri to set. + * @return This builder for chaining. + */ + public Builder setDisplayPhotoUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayPhotoUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The photo uri of the person suggestion.
            +       * 
            + * + * string display_photo_uri = 7; + * + * @return This builder for chaining. + */ + public Builder clearDisplayPhotoUri() { + displayPhotoUri_ = getDefaultInstance().getDisplayPhotoUri(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The photo uri of the person suggestion.
            +       * 
            + * + * string display_photo_uri = 7; + * + * @param value The bytes for displayPhotoUri to set. + * @return This builder for chaining. + */ + public Builder setDisplayPhotoUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayPhotoUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object destinationUri_ = ""; + + /** + * + * + *
            +       * The destination uri of the person suggestion.
            +       * 
            + * + * string destination_uri = 8; + * + * @return The destinationUri. + */ + public java.lang.String getDestinationUri() { + java.lang.Object ref = destinationUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * The destination uri of the person suggestion.
            +       * 
            + * + * string destination_uri = 8; + * + * @return The bytes for destinationUri. + */ + public com.google.protobuf.ByteString getDestinationUriBytes() { + java.lang.Object ref = destinationUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * The destination uri of the person suggestion.
            +       * 
            + * + * string destination_uri = 8; + * + * @param value The destinationUri to set. + * @return This builder for chaining. + */ + public Builder setDestinationUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The destination uri of the person suggestion.
            +       * 
            + * + * string destination_uri = 8; + * + * @return This builder for chaining. + */ + public Builder clearDestinationUri() { + destinationUri_ = getDefaultInstance().getDestinationUri(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The destination uri of the person suggestion.
            +       * 
            + * + * string destination_uri = 8; + * + * @param value The bytes for destinationUri to set. + * @return This builder for chaining. + */ + public Builder setDestinationUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion) + private static final com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse + .PersonSuggestion + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse + .PersonSuggestion(); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse .PersonSuggestion getDefaultInstance() { return DEFAULT_INSTANCE; @@ -3230,6 +3888,71 @@ public interface ContentSuggestionOrBuilder * @return The bytes for dataStore. */ com.google.protobuf.ByteString getDataStoreBytes(); + + /** + * + * + *
            +     * The score of each suggestion. The score is in the range of [0, 1].
            +     * 
            + * + * double score = 6; + * + * @return The score. + */ + double getScore(); + + /** + * + * + *
            +     * The icon uri of the content suggestion.
            +     * 
            + * + * string icon_uri = 7; + * + * @return The iconUri. + */ + java.lang.String getIconUri(); + + /** + * + * + *
            +     * The icon uri of the content suggestion.
            +     * 
            + * + * string icon_uri = 7; + * + * @return The bytes for iconUri. + */ + com.google.protobuf.ByteString getIconUriBytes(); + + /** + * + * + *
            +     * The destination uri of the content suggestion.
            +     * 
            + * + * string destination_uri = 8; + * + * @return The destinationUri. + */ + java.lang.String getDestinationUri(); + + /** + * + * + *
            +     * The destination uri of the content suggestion.
            +     * 
            + * + * string destination_uri = 8; + * + * @return The bytes for destinationUri. + */ + com.google.protobuf.ByteString getDestinationUriBytes(); } /** @@ -3267,6 +3990,8 @@ private ContentSuggestion() { suggestion_ = ""; contentType_ = 0; dataStore_ = ""; + iconUri_ = ""; + destinationUri_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -3671,15 +4396,140 @@ public com.google.protobuf.ByteString getDataStoreBytes() { } } - private byte memoizedIsInitialized = -1; + public static final int SCORE_FIELD_NUMBER = 6; + private double score_ = 0D; + /** + * + * + *
            +     * The score of each suggestion. The score is in the range of [0, 1].
            +     * 
            + * + * double score = 6; + * + * @return The score. + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public double getScore() { + return score_; + } - memoizedIsInitialized = 1; + public static final int ICON_URI_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object iconUri_ = ""; + + /** + * + * + *
            +     * The icon uri of the content suggestion.
            +     * 
            + * + * string icon_uri = 7; + * + * @return The iconUri. + */ + @java.lang.Override + public java.lang.String getIconUri() { + java.lang.Object ref = iconUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconUri_ = s; + return s; + } + } + + /** + * + * + *
            +     * The icon uri of the content suggestion.
            +     * 
            + * + * string icon_uri = 7; + * + * @return The bytes for iconUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIconUriBytes() { + java.lang.Object ref = iconUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iconUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_URI_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationUri_ = ""; + + /** + * + * + *
            +     * The destination uri of the content suggestion.
            +     * 
            + * + * string destination_uri = 8; + * + * @return The destinationUri. + */ + @java.lang.Override + public java.lang.String getDestinationUri() { + java.lang.Object ref = destinationUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationUri_ = s; + return s; + } + } + + /** + * + * + *
            +     * The destination uri of the content suggestion.
            +     * 
            + * + * string destination_uri = 8; + * + * @return The bytes for destinationUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationUriBytes() { + java.lang.Object ref = destinationUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationUri_ = 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; } @@ -3700,6 +4550,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, dataStore_); } + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { + output.writeDouble(6, score_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(iconUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, iconUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, destinationUri_); + } getUnknownFields().writeTo(output); } @@ -3724,6 +4583,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, dataStore_); } + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(6, score_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(iconUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, iconUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(destinationUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, destinationUri_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3753,6 +4621,10 @@ public boolean equals(final java.lang.Object obj) { if (!getDocument().equals(other.getDocument())) return false; } if (!getDataStore().equals(other.getDataStore())) return false; + if (java.lang.Double.doubleToLongBits(getScore()) + != java.lang.Double.doubleToLongBits(other.getScore())) return false; + if (!getIconUri().equals(other.getIconUri())) return false; + if (!getDestinationUri().equals(other.getDestinationUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3774,6 +4646,15 @@ public int hashCode() { } hash = (37 * hash) + DATA_STORE_FIELD_NUMBER; hash = (53 * hash) + getDataStore().hashCode(); + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScore())); + hash = (37 * hash) + ICON_URI_FIELD_NUMBER; + hash = (53 * hash) + getIconUri().hashCode(); + hash = (37 * hash) + DESTINATION_URI_FIELD_NUMBER; + hash = (53 * hash) + getDestinationUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3956,6 +4837,9 @@ public Builder clear() { documentBuilder_ = null; } dataStore_ = ""; + score_ = 0D; + iconUri_ = ""; + destinationUri_ = ""; return this; } @@ -4015,6 +4899,15 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000008) != 0)) { result.dataStore_ = dataStore_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.score_ = score_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.iconUri_ = iconUri_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.destinationUri_ = destinationUri_; + } result.bitField0_ |= to_bitField0_; } @@ -4056,6 +4949,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; onChanged(); } + if (java.lang.Double.doubleToRawLongBits(other.getScore()) != 0) { + setScore(other.getScore()); + } + if (!other.getIconUri().isEmpty()) { + iconUri_ = other.iconUri_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getDestinationUri().isEmpty()) { + destinationUri_ = other.destinationUri_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4107,6 +5013,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 42 + case 49: + { + score_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 49 + case 58: + { + iconUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + destinationUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4353,144 +5277,444 @@ public Builder clearContentType() { return this; } - private com.google.cloud.discoveryengine.v1beta.Document document_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Document, - com.google.cloud.discoveryengine.v1beta.Document.Builder, - com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> - documentBuilder_; + private com.google.cloud.discoveryengine.v1beta.Document document_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Document, + com.google.cloud.discoveryengine.v1beta.Document.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> + documentBuilder_; + + /** + * + * + *
            +       * The document data snippet in the suggestion. Only a subset of fields will
            +       * be populated.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Document document = 4; + * + * @return Whether the document field is set. + */ + public boolean hasDocument() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +       * The document data snippet in the suggestion. Only a subset of fields will
            +       * be populated.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Document document = 4; + * + * @return The document. + */ + public com.google.cloud.discoveryengine.v1beta.Document getDocument() { + if (documentBuilder_ == null) { + return document_ == null + ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() + : document_; + } else { + return documentBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * The document data snippet in the suggestion. Only a subset of fields will
            +       * be populated.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Document document = 4; + */ + public Builder setDocument(com.google.cloud.discoveryengine.v1beta.Document value) { + if (documentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + document_ = value; + } else { + documentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The document data snippet in the suggestion. Only a subset of fields will
            +       * be populated.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Document document = 4; + */ + public Builder setDocument( + com.google.cloud.discoveryengine.v1beta.Document.Builder builderForValue) { + if (documentBuilder_ == null) { + document_ = builderForValue.build(); + } else { + documentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The document data snippet in the suggestion. Only a subset of fields will
            +       * be populated.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Document document = 4; + */ + public Builder mergeDocument(com.google.cloud.discoveryengine.v1beta.Document value) { + if (documentBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && document_ != null + && document_ + != com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()) { + getDocumentBuilder().mergeFrom(value); + } else { + document_ = value; + } + } else { + documentBuilder_.mergeFrom(value); + } + if (document_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * The document data snippet in the suggestion. Only a subset of fields will
            +       * be populated.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Document document = 4; + */ + public Builder clearDocument() { + bitField0_ = (bitField0_ & ~0x00000004); + document_ = null; + if (documentBuilder_ != null) { + documentBuilder_.dispose(); + documentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * The document data snippet in the suggestion. Only a subset of fields will
            +       * be populated.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Document document = 4; + */ + public com.google.cloud.discoveryengine.v1beta.Document.Builder getDocumentBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetDocumentFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * The document data snippet in the suggestion. Only a subset of fields will
            +       * be populated.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Document document = 4; + */ + public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBuilder() { + if (documentBuilder_ != null) { + return documentBuilder_.getMessageOrBuilder(); + } else { + return document_ == null + ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() + : document_; + } + } + + /** + * + * + *
            +       * The document data snippet in the suggestion. Only a subset of fields will
            +       * be populated.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Document document = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Document, + com.google.cloud.discoveryengine.v1beta.Document.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> + internalGetDocumentFieldBuilder() { + if (documentBuilder_ == null) { + documentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Document, + com.google.cloud.discoveryengine.v1beta.Document.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder>( + getDocument(), getParentForChildren(), isClean()); + document_ = null; + } + return documentBuilder_; + } + + private java.lang.Object dataStore_ = ""; + + /** + * + * + *
            +       * The name of the dataStore that this suggestion belongs to.
            +       * 
            + * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @return The dataStore. + */ + public java.lang.String getDataStore() { + java.lang.Object ref = dataStore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataStore_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * The name of the dataStore that this suggestion belongs to.
            +       * 
            + * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for dataStore. + */ + public com.google.protobuf.ByteString getDataStoreBytes() { + java.lang.Object ref = dataStore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * The name of the dataStore that this suggestion belongs to.
            +       * 
            + * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @param value The dataStore to set. + * @return This builder for chaining. + */ + public Builder setDataStore(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataStore_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The name of the dataStore that this suggestion belongs to.
            +       * 
            + * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearDataStore() { + dataStore_ = getDefaultInstance().getDataStore(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The name of the dataStore that this suggestion belongs to.
            +       * 
            + * + * string data_store = 5 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for dataStore to set. + * @return This builder for chaining. + */ + public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataStore_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private double score_; /** * * *
            -       * The document data snippet in the suggestion. Only a subset of fields will
            -       * be populated.
            +       * The score of each suggestion. The score is in the range of [0, 1].
                    * 
            * - * .google.cloud.discoveryengine.v1beta.Document document = 4; + * double score = 6; * - * @return Whether the document field is set. + * @return The score. */ - public boolean hasDocument() { - return ((bitField0_ & 0x00000004) != 0); + @java.lang.Override + public double getScore() { + return score_; } /** * * *
            -       * The document data snippet in the suggestion. Only a subset of fields will
            -       * be populated.
            +       * The score of each suggestion. The score is in the range of [0, 1].
                    * 
            * - * .google.cloud.discoveryengine.v1beta.Document document = 4; + * double score = 6; * - * @return The document. + * @param value The score to set. + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1beta.Document getDocument() { - if (documentBuilder_ == null) { - return document_ == null - ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() - : document_; - } else { - return documentBuilder_.getMessage(); - } + public Builder setScore(double value) { + + score_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; } /** * * *
            -       * The document data snippet in the suggestion. Only a subset of fields will
            -       * be populated.
            +       * The score of each suggestion. The score is in the range of [0, 1].
                    * 
            * - * .google.cloud.discoveryengine.v1beta.Document document = 4; + * double score = 6; + * + * @return This builder for chaining. */ - public Builder setDocument(com.google.cloud.discoveryengine.v1beta.Document value) { - if (documentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - document_ = value; - } else { - documentBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000010); + score_ = 0D; onChanged(); return this; } + private java.lang.Object iconUri_ = ""; + /** * * *
            -       * The document data snippet in the suggestion. Only a subset of fields will
            -       * be populated.
            +       * The icon uri of the content suggestion.
                    * 
            * - * .google.cloud.discoveryengine.v1beta.Document document = 4; + * string icon_uri = 7; + * + * @return The iconUri. */ - public Builder setDocument( - com.google.cloud.discoveryengine.v1beta.Document.Builder builderForValue) { - if (documentBuilder_ == null) { - document_ = builderForValue.build(); + public java.lang.String getIconUri() { + java.lang.Object ref = iconUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconUri_ = s; + return s; } else { - documentBuilder_.setMessage(builderForValue.build()); + return (java.lang.String) ref; } - bitField0_ |= 0x00000004; - onChanged(); - return this; } /** * * *
            -       * The document data snippet in the suggestion. Only a subset of fields will
            -       * be populated.
            +       * The icon uri of the content suggestion.
                    * 
            * - * .google.cloud.discoveryengine.v1beta.Document document = 4; + * string icon_uri = 7; + * + * @return The bytes for iconUri. */ - public Builder mergeDocument(com.google.cloud.discoveryengine.v1beta.Document value) { - if (documentBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && document_ != null - && document_ - != com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance()) { - getDocumentBuilder().mergeFrom(value); - } else { - document_ = value; - } + public com.google.protobuf.ByteString getIconUriBytes() { + java.lang.Object ref = iconUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + iconUri_ = b; + return b; } else { - documentBuilder_.mergeFrom(value); - } - if (document_ != null) { - bitField0_ |= 0x00000004; - onChanged(); + return (com.google.protobuf.ByteString) ref; } - return this; } /** * * *
            -       * The document data snippet in the suggestion. Only a subset of fields will
            -       * be populated.
            +       * The icon uri of the content suggestion.
                    * 
            * - * .google.cloud.discoveryengine.v1beta.Document document = 4; + * string icon_uri = 7; + * + * @param value The iconUri to set. + * @return This builder for chaining. */ - public Builder clearDocument() { - bitField0_ = (bitField0_ & ~0x00000004); - document_ = null; - if (documentBuilder_ != null) { - documentBuilder_.dispose(); - documentBuilder_ = null; + public Builder setIconUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + iconUri_ = value; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4499,84 +5723,62 @@ public Builder clearDocument() { * * *
            -       * The document data snippet in the suggestion. Only a subset of fields will
            -       * be populated.
            +       * The icon uri of the content suggestion.
                    * 
            * - * .google.cloud.discoveryengine.v1beta.Document document = 4; + * string icon_uri = 7; + * + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1beta.Document.Builder getDocumentBuilder() { - bitField0_ |= 0x00000004; + public Builder clearIconUri() { + iconUri_ = getDefaultInstance().getIconUri(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); - return internalGetDocumentFieldBuilder().getBuilder(); + return this; } /** * * *
            -       * The document data snippet in the suggestion. Only a subset of fields will
            -       * be populated.
            +       * The icon uri of the content suggestion.
                    * 
            * - * .google.cloud.discoveryengine.v1beta.Document document = 4; - */ - public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBuilder() { - if (documentBuilder_ != null) { - return documentBuilder_.getMessageOrBuilder(); - } else { - return document_ == null - ? com.google.cloud.discoveryengine.v1beta.Document.getDefaultInstance() - : document_; - } - } - - /** - * - * - *
            -       * The document data snippet in the suggestion. Only a subset of fields will
            -       * be populated.
            -       * 
            + * string icon_uri = 7; * - * .google.cloud.discoveryengine.v1beta.Document document = 4; + * @param value The bytes for iconUri to set. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Document, - com.google.cloud.discoveryengine.v1beta.Document.Builder, - com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder> - internalGetDocumentFieldBuilder() { - if (documentBuilder_ == null) { - documentBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Document, - com.google.cloud.discoveryengine.v1beta.Document.Builder, - com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder>( - getDocument(), getParentForChildren(), isClean()); - document_ = null; + public Builder setIconUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return documentBuilder_; + checkByteStringIsUtf8(value); + iconUri_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; } - private java.lang.Object dataStore_ = ""; + private java.lang.Object destinationUri_ = ""; /** * * *
            -       * The name of the dataStore that this suggestion belongs to.
            +       * The destination uri of the content suggestion.
                    * 
            * - * string data_store = 5 [(.google.api.resource_reference) = { ... } + * string destination_uri = 8; * - * @return The dataStore. + * @return The destinationUri. */ - public java.lang.String getDataStore() { - java.lang.Object ref = dataStore_; + public java.lang.String getDestinationUri() { + java.lang.Object ref = destinationUri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - dataStore_ = s; + destinationUri_ = s; return s; } else { return (java.lang.String) ref; @@ -4587,19 +5789,19 @@ public java.lang.String getDataStore() { * * *
            -       * The name of the dataStore that this suggestion belongs to.
            +       * The destination uri of the content suggestion.
                    * 
            * - * string data_store = 5 [(.google.api.resource_reference) = { ... } + * string destination_uri = 8; * - * @return The bytes for dataStore. + * @return The bytes for destinationUri. */ - public com.google.protobuf.ByteString getDataStoreBytes() { - java.lang.Object ref = dataStore_; + public com.google.protobuf.ByteString getDestinationUriBytes() { + java.lang.Object ref = destinationUri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dataStore_ = b; + destinationUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -4610,20 +5812,20 @@ public com.google.protobuf.ByteString getDataStoreBytes() { * * *
            -       * The name of the dataStore that this suggestion belongs to.
            +       * The destination uri of the content suggestion.
                    * 
            * - * string data_store = 5 [(.google.api.resource_reference) = { ... } + * string destination_uri = 8; * - * @param value The dataStore to set. + * @param value The destinationUri to set. * @return This builder for chaining. */ - public Builder setDataStore(java.lang.String value) { + public Builder setDestinationUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - dataStore_ = value; - bitField0_ |= 0x00000008; + destinationUri_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4632,16 +5834,16 @@ public Builder setDataStore(java.lang.String value) { * * *
            -       * The name of the dataStore that this suggestion belongs to.
            +       * The destination uri of the content suggestion.
                    * 
            * - * string data_store = 5 [(.google.api.resource_reference) = { ... } + * string destination_uri = 8; * * @return This builder for chaining. */ - public Builder clearDataStore() { - dataStore_ = getDefaultInstance().getDataStore(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearDestinationUri() { + destinationUri_ = getDefaultInstance().getDestinationUri(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -4650,21 +5852,21 @@ public Builder clearDataStore() { * * *
            -       * The name of the dataStore that this suggestion belongs to.
            +       * The destination uri of the content suggestion.
                    * 
            * - * string data_store = 5 [(.google.api.resource_reference) = { ... } + * string destination_uri = 8; * - * @param value The bytes for dataStore to set. + * @param value The bytes for destinationUri to set. * @return This builder for chaining. */ - public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { + public Builder setDestinationUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - dataStore_ = value; - bitField0_ |= 0x00000008; + destinationUri_ = value; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4795,6 +5997,19 @@ public interface RecentSearchSuggestionOrBuilder * .google.protobuf.Timestamp recent_search_time = 2; */ com.google.protobuf.TimestampOrBuilder getRecentSearchTimeOrBuilder(); + + /** + * + * + *
            +     * The score of each suggestion. The score is in the range of [0, 1].
            +     * 
            + * + * double score = 3; + * + * @return The score. + */ + double getScore(); } /** @@ -4956,6 +6171,25 @@ public com.google.protobuf.TimestampOrBuilder getRecentSearchTimeOrBuilder() { : recentSearchTime_; } + public static final int SCORE_FIELD_NUMBER = 3; + private double score_ = 0D; + + /** + * + * + *
            +     * The score of each suggestion. The score is in the range of [0, 1].
            +     * 
            + * + * double score = 3; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -4976,6 +6210,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getRecentSearchTime()); } + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { + output.writeDouble(3, score_); + } getUnknownFields().writeTo(output); } @@ -4991,6 +6228,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRecentSearchTime()); } + if (java.lang.Double.doubleToRawLongBits(score_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, score_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5018,6 +6258,8 @@ public boolean equals(final java.lang.Object obj) { if (hasRecentSearchTime()) { if (!getRecentSearchTime().equals(other.getRecentSearchTime())) return false; } + if (java.lang.Double.doubleToLongBits(getScore()) + != java.lang.Double.doubleToLongBits(other.getScore())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -5035,6 +6277,11 @@ public int hashCode() { hash = (37 * hash) + RECENT_SEARCH_TIME_FIELD_NUMBER; hash = (53 * hash) + getRecentSearchTime().hashCode(); } + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScore())); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -5215,6 +6462,7 @@ public Builder clear() { recentSearchTimeBuilder_.dispose(); recentSearchTimeBuilder_ = null; } + score_ = 0D; return this; } @@ -5275,6 +6523,9 @@ private void buildPartial0( : recentSearchTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.score_ = score_; + } result.bitField0_ |= to_bitField0_; } @@ -5309,6 +6560,9 @@ public Builder mergeFrom( if (other.hasRecentSearchTime()) { mergeRecentSearchTime(other.getRecentSearchTime()); } + if (java.lang.Double.doubleToRawLongBits(other.getScore()) != 0) { + setScore(other.getScore()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -5348,6 +6602,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 25: + { + score_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5672,6 +6932,62 @@ public com.google.protobuf.TimestampOrBuilder getRecentSearchTimeOrBuilder() { return recentSearchTimeBuilder_; } + private double score_; + + /** + * + * + *
            +       * The score of each suggestion. The score is in the range of [0, 1].
            +       * 
            + * + * double score = 3; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + + /** + * + * + *
            +       * The score of each suggestion. The score is in the range of [0, 1].
            +       * 
            + * + * double score = 3; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(double value) { + + score_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The score of each suggestion. The score is in the range of [0, 1].
            +       * 
            + * + * double score = 3; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000004); + score_ = 0D; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.RecentSearchSuggestion) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedSiteSearchConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedSiteSearchConfig.java new file mode 100644 index 000000000000..a8cc14da76c3 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedSiteSearchConfig.java @@ -0,0 +1,687 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/data_store.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Configuration data for advance site search.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig} + */ +@com.google.protobuf.Generated +public final class AdvancedSiteSearchConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig) + AdvancedSiteSearchConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AdvancedSiteSearchConfig"); + } + + // Use AdvancedSiteSearchConfig.newBuilder() to construct. + private AdvancedSiteSearchConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AdvancedSiteSearchConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_AdvancedSiteSearchConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_AdvancedSiteSearchConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig.class, + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig.Builder.class); + } + + private int bitField0_; + public static final int DISABLE_INITIAL_INDEX_FIELD_NUMBER = 3; + private boolean disableInitialIndex_ = false; + + /** + * + * + *
            +   * If set true, initial indexing is disabled for the DataStore.
            +   * 
            + * + * optional bool disable_initial_index = 3; + * + * @return Whether the disableInitialIndex field is set. + */ + @java.lang.Override + public boolean hasDisableInitialIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * If set true, initial indexing is disabled for the DataStore.
            +   * 
            + * + * optional bool disable_initial_index = 3; + * + * @return The disableInitialIndex. + */ + @java.lang.Override + public boolean getDisableInitialIndex() { + return disableInitialIndex_; + } + + public static final int DISABLE_AUTOMATIC_REFRESH_FIELD_NUMBER = 4; + private boolean disableAutomaticRefresh_ = false; + + /** + * + * + *
            +   * If set true, automatic refresh is disabled for the DataStore.
            +   * 
            + * + * optional bool disable_automatic_refresh = 4; + * + * @return Whether the disableAutomaticRefresh field is set. + */ + @java.lang.Override + public boolean hasDisableAutomaticRefresh() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * If set true, automatic refresh is disabled for the DataStore.
            +   * 
            + * + * optional bool disable_automatic_refresh = 4; + * + * @return The disableAutomaticRefresh. + */ + @java.lang.Override + public boolean getDisableAutomaticRefresh() { + return disableAutomaticRefresh_; + } + + 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(3, disableInitialIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(4, disableAutomaticRefresh_); + } + 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(3, disableInitialIndex_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, disableAutomaticRefresh_); + } + 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.v1beta.AdvancedSiteSearchConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig other = + (com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig) obj; + + if (hasDisableInitialIndex() != other.hasDisableInitialIndex()) return false; + if (hasDisableInitialIndex()) { + if (getDisableInitialIndex() != other.getDisableInitialIndex()) return false; + } + if (hasDisableAutomaticRefresh() != other.hasDisableAutomaticRefresh()) return false; + if (hasDisableAutomaticRefresh()) { + if (getDisableAutomaticRefresh() != other.getDisableAutomaticRefresh()) 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 (hasDisableInitialIndex()) { + hash = (37 * hash) + DISABLE_INITIAL_INDEX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableInitialIndex()); + } + if (hasDisableAutomaticRefresh()) { + hash = (37 * hash) + DISABLE_AUTOMATIC_REFRESH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableAutomaticRefresh()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig 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.v1beta.AdvancedSiteSearchConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig parseFrom( + 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.v1beta.AdvancedSiteSearchConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Configuration data for advance site search.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig) + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_AdvancedSiteSearchConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_AdvancedSiteSearchConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig.class, + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + disableInitialIndex_ = false; + disableAutomaticRefresh_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_AdvancedSiteSearchConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig build() { + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig buildPartial() { + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig result = + new com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disableInitialIndex_ = disableInitialIndex_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.disableAutomaticRefresh_ = disableAutomaticRefresh_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig.getDefaultInstance()) + return this; + if (other.hasDisableInitialIndex()) { + setDisableInitialIndex(other.getDisableInitialIndex()); + } + if (other.hasDisableAutomaticRefresh()) { + setDisableAutomaticRefresh(other.getDisableAutomaticRefresh()); + } + 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 24: + { + disableInitialIndex_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 24 + case 32: + { + disableAutomaticRefresh_ = input.readBool(); + bitField0_ |= 0x00000002; + 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 boolean disableInitialIndex_; + + /** + * + * + *
            +     * If set true, initial indexing is disabled for the DataStore.
            +     * 
            + * + * optional bool disable_initial_index = 3; + * + * @return Whether the disableInitialIndex field is set. + */ + @java.lang.Override + public boolean hasDisableInitialIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * If set true, initial indexing is disabled for the DataStore.
            +     * 
            + * + * optional bool disable_initial_index = 3; + * + * @return The disableInitialIndex. + */ + @java.lang.Override + public boolean getDisableInitialIndex() { + return disableInitialIndex_; + } + + /** + * + * + *
            +     * If set true, initial indexing is disabled for the DataStore.
            +     * 
            + * + * optional bool disable_initial_index = 3; + * + * @param value The disableInitialIndex to set. + * @return This builder for chaining. + */ + public Builder setDisableInitialIndex(boolean value) { + + disableInitialIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * If set true, initial indexing is disabled for the DataStore.
            +     * 
            + * + * optional bool disable_initial_index = 3; + * + * @return This builder for chaining. + */ + public Builder clearDisableInitialIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + disableInitialIndex_ = false; + onChanged(); + return this; + } + + private boolean disableAutomaticRefresh_; + + /** + * + * + *
            +     * If set true, automatic refresh is disabled for the DataStore.
            +     * 
            + * + * optional bool disable_automatic_refresh = 4; + * + * @return Whether the disableAutomaticRefresh field is set. + */ + @java.lang.Override + public boolean hasDisableAutomaticRefresh() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * If set true, automatic refresh is disabled for the DataStore.
            +     * 
            + * + * optional bool disable_automatic_refresh = 4; + * + * @return The disableAutomaticRefresh. + */ + @java.lang.Override + public boolean getDisableAutomaticRefresh() { + return disableAutomaticRefresh_; + } + + /** + * + * + *
            +     * If set true, automatic refresh is disabled for the DataStore.
            +     * 
            + * + * optional bool disable_automatic_refresh = 4; + * + * @param value The disableAutomaticRefresh to set. + * @return This builder for chaining. + */ + public Builder setDisableAutomaticRefresh(boolean value) { + + disableAutomaticRefresh_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * If set true, automatic refresh is disabled for the DataStore.
            +     * 
            + * + * optional bool disable_automatic_refresh = 4; + * + * @return This builder for chaining. + */ + public Builder clearDisableAutomaticRefresh() { + bitField0_ = (bitField0_ & ~0x00000002); + disableAutomaticRefresh_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig) + private static final com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdvancedSiteSearchConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AdvancedSiteSearchConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedSiteSearchConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedSiteSearchConfigOrBuilder.java new file mode 100644 index 000000000000..f8eb758b1f9a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AdvancedSiteSearchConfigOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/data_store.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface AdvancedSiteSearchConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * If set true, initial indexing is disabled for the DataStore.
            +   * 
            + * + * optional bool disable_initial_index = 3; + * + * @return Whether the disableInitialIndex field is set. + */ + boolean hasDisableInitialIndex(); + + /** + * + * + *
            +   * If set true, initial indexing is disabled for the DataStore.
            +   * 
            + * + * optional bool disable_initial_index = 3; + * + * @return The disableInitialIndex. + */ + boolean getDisableInitialIndex(); + + /** + * + * + *
            +   * If set true, automatic refresh is disabled for the DataStore.
            +   * 
            + * + * optional bool disable_automatic_refresh = 4; + * + * @return Whether the disableAutomaticRefresh field is set. + */ + boolean hasDisableAutomaticRefresh(); + + /** + * + * + *
            +   * If set true, automatic refresh is disabled for the DataStore.
            +   * 
            + * + * optional bool disable_automatic_refresh = 4; + * + * @return The disableAutomaticRefresh. + */ + boolean getDisableAutomaticRefresh(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AgentGatewaySetting.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AgentGatewaySetting.java new file mode 100644 index 000000000000..73a69c0d6c08 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AgentGatewaySetting.java @@ -0,0 +1,1494 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/agent_gateway_setting.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Agent Gateway setting, which may be attached to Gemini Enterprise resources
            + * for egress control of Gemini Enterprise agents to agents and tools outside of
            + * Gemini Enterprise.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AgentGatewaySetting} + */ +@com.google.protobuf.Generated +public final class AgentGatewaySetting extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AgentGatewaySetting) + AgentGatewaySettingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentGatewaySetting"); + } + + // Use AgentGatewaySetting.newBuilder() to construct. + private AgentGatewaySetting(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentGatewaySetting() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.class, + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.Builder.class); + } + + public interface AgentGatewayReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Required. Immutable. The resource name of the agent gateway.
            +     *
            +     * Expected format:
            +     * `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +     * Required. Immutable. The resource name of the agent gateway.
            +     *
            +     * Expected format:
            +     * `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + } + + /** + * + * + *
            +   * Reference to an Agent Gateway resource.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference} + */ + public static final class AgentGatewayReference extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference) + AgentGatewayReferenceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentGatewayReference"); + } + + // Use AgentGatewayReference.newBuilder() to construct. + private AgentGatewayReference(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentGatewayReference() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_AgentGatewayReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_AgentGatewayReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + .class, + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. Immutable. The resource name of the agent gateway.
            +     *
            +     * Expected format:
            +     * `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.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. Immutable. The resource name of the agent gateway.
            +     *
            +     * Expected format:
            +     * `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference other = + (com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference) 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.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + 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.v1beta.AgentGatewaySetting.AgentGatewayReference + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + parseFrom( + 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.v1beta.AgentGatewaySetting.AgentGatewayReference + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Reference to an Agent Gateway resource.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference) + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_AgentGatewayReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_AgentGatewayReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + .class, + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_AgentGatewayReference_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + build() { + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference result = + new com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + .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. Immutable. The resource name of the agent gateway.
            +       *
            +       * Expected format:
            +       * `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`.
            +       * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.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. Immutable. The resource name of the agent gateway.
            +       *
            +       * Expected format:
            +       * `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`.
            +       * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.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. Immutable. The resource name of the agent gateway.
            +       *
            +       * Expected format:
            +       * `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`.
            +       * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.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. Immutable. The resource name of the agent gateway.
            +       *
            +       * Expected format:
            +       * `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`.
            +       * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. Immutable. The resource name of the agent gateway.
            +       *
            +       * Expected format:
            +       * `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`.
            +       * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference) + private static final com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting + .AgentGatewayReference + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference(); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentGatewayReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AgentGatewaySetting.AgentGatewayReference + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int DEFAULT_EGRESS_AGENT_GATEWAY_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + defaultEgressAgentGateway_; + + /** + * + * + *
            +   * Optional. The default egress agent gateway to use, when this setting is
            +   * applied to a Gemini Enterprise resource.
            +   *
            +   * The deployment mode must be GOOGLE_MANAGED, and the governed access path
            +   * must be AGENT_TO_ANYWHERE.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultEgressAgentGateway field is set. + */ + @java.lang.Override + public boolean hasDefaultEgressAgentGateway() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. The default egress agent gateway to use, when this setting is
            +   * applied to a Gemini Enterprise resource.
            +   *
            +   * The deployment mode must be GOOGLE_MANAGED, and the governed access path
            +   * must be AGENT_TO_ANYWHERE.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultEgressAgentGateway. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + getDefaultEgressAgentGateway() { + return defaultEgressAgentGateway_ == null + ? com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + .getDefaultInstance() + : defaultEgressAgentGateway_; + } + + /** + * + * + *
            +   * Optional. The default egress agent gateway to use, when this setting is
            +   * applied to a Gemini Enterprise resource.
            +   *
            +   * The deployment mode must be GOOGLE_MANAGED, and the governed access path
            +   * must be AGENT_TO_ANYWHERE.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReferenceOrBuilder + getDefaultEgressAgentGatewayOrBuilder() { + return defaultEgressAgentGateway_ == null + ? com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + .getDefaultInstance() + : defaultEgressAgentGateway_; + } + + 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, getDefaultEgressAgentGateway()); + } + 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, getDefaultEgressAgentGateway()); + } + 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.v1beta.AgentGatewaySetting)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting other = + (com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting) obj; + + if (hasDefaultEgressAgentGateway() != other.hasDefaultEgressAgentGateway()) return false; + if (hasDefaultEgressAgentGateway()) { + if (!getDefaultEgressAgentGateway().equals(other.getDefaultEgressAgentGateway())) + 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 (hasDefaultEgressAgentGateway()) { + hash = (37 * hash) + DEFAULT_EGRESS_AGENT_GATEWAY_FIELD_NUMBER; + hash = (53 * hash) + getDefaultEgressAgentGateway().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting 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.v1beta.AgentGatewaySetting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting parseFrom( + 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.v1beta.AgentGatewaySetting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Agent Gateway setting, which may be attached to Gemini Enterprise resources
            +   * for egress control of Gemini Enterprise agents to agents and tools outside of
            +   * Gemini Enterprise.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AgentGatewaySetting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AgentGatewaySetting) + com.google.cloud.discoveryengine.v1beta.AgentGatewaySettingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.class, + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDefaultEgressAgentGatewayFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultEgressAgentGateway_ = null; + if (defaultEgressAgentGatewayBuilder_ != null) { + defaultEgressAgentGatewayBuilder_.dispose(); + defaultEgressAgentGatewayBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AgentGatewaySettingProto + .internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting build() { + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting buildPartial() { + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting result = + new com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultEgressAgentGateway_ = + defaultEgressAgentGatewayBuilder_ == null + ? defaultEgressAgentGateway_ + : defaultEgressAgentGatewayBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting other) { + if (other == com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.getDefaultInstance()) + return this; + if (other.hasDefaultEgressAgentGateway()) { + mergeDefaultEgressAgentGateway(other.getDefaultEgressAgentGateway()); + } + 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( + internalGetDefaultEgressAgentGatewayFieldBuilder().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.v1beta.AgentGatewaySetting.AgentGatewayReference + defaultEgressAgentGateway_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference, + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + .Builder, + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting + .AgentGatewayReferenceOrBuilder> + defaultEgressAgentGatewayBuilder_; + + /** + * + * + *
            +     * Optional. The default egress agent gateway to use, when this setting is
            +     * applied to a Gemini Enterprise resource.
            +     *
            +     * The deployment mode must be GOOGLE_MANAGED, and the governed access path
            +     * must be AGENT_TO_ANYWHERE.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultEgressAgentGateway field is set. + */ + public boolean hasDefaultEgressAgentGateway() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. The default egress agent gateway to use, when this setting is
            +     * applied to a Gemini Enterprise resource.
            +     *
            +     * The deployment mode must be GOOGLE_MANAGED, and the governed access path
            +     * must be AGENT_TO_ANYWHERE.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultEgressAgentGateway. + */ + public com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + getDefaultEgressAgentGateway() { + if (defaultEgressAgentGatewayBuilder_ == null) { + return defaultEgressAgentGateway_ == null + ? com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + .getDefaultInstance() + : defaultEgressAgentGateway_; + } else { + return defaultEgressAgentGatewayBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. The default egress agent gateway to use, when this setting is
            +     * applied to a Gemini Enterprise resource.
            +     *
            +     * The deployment mode must be GOOGLE_MANAGED, and the governed access path
            +     * must be AGENT_TO_ANYWHERE.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultEgressAgentGateway( + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference value) { + if (defaultEgressAgentGatewayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + defaultEgressAgentGateway_ = value; + } else { + defaultEgressAgentGatewayBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The default egress agent gateway to use, when this setting is
            +     * applied to a Gemini Enterprise resource.
            +     *
            +     * The deployment mode must be GOOGLE_MANAGED, and the governed access path
            +     * must be AGENT_TO_ANYWHERE.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDefaultEgressAgentGateway( + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference.Builder + builderForValue) { + if (defaultEgressAgentGatewayBuilder_ == null) { + defaultEgressAgentGateway_ = builderForValue.build(); + } else { + defaultEgressAgentGatewayBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The default egress agent gateway to use, when this setting is
            +     * applied to a Gemini Enterprise resource.
            +     *
            +     * The deployment mode must be GOOGLE_MANAGED, and the governed access path
            +     * must be AGENT_TO_ANYWHERE.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDefaultEgressAgentGateway( + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference value) { + if (defaultEgressAgentGatewayBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && defaultEgressAgentGateway_ != null + && defaultEgressAgentGateway_ + != com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + .getDefaultInstance()) { + getDefaultEgressAgentGatewayBuilder().mergeFrom(value); + } else { + defaultEgressAgentGateway_ = value; + } + } else { + defaultEgressAgentGatewayBuilder_.mergeFrom(value); + } + if (defaultEgressAgentGateway_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The default egress agent gateway to use, when this setting is
            +     * applied to a Gemini Enterprise resource.
            +     *
            +     * The deployment mode must be GOOGLE_MANAGED, and the governed access path
            +     * must be AGENT_TO_ANYWHERE.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDefaultEgressAgentGateway() { + bitField0_ = (bitField0_ & ~0x00000001); + defaultEgressAgentGateway_ = null; + if (defaultEgressAgentGatewayBuilder_ != null) { + defaultEgressAgentGatewayBuilder_.dispose(); + defaultEgressAgentGatewayBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The default egress agent gateway to use, when this setting is
            +     * applied to a Gemini Enterprise resource.
            +     *
            +     * The deployment mode must be GOOGLE_MANAGED, and the governed access path
            +     * must be AGENT_TO_ANYWHERE.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference.Builder + getDefaultEgressAgentGatewayBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetDefaultEgressAgentGatewayFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The default egress agent gateway to use, when this setting is
            +     * applied to a Gemini Enterprise resource.
            +     *
            +     * The deployment mode must be GOOGLE_MANAGED, and the governed access path
            +     * must be AGENT_TO_ANYWHERE.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting + .AgentGatewayReferenceOrBuilder + getDefaultEgressAgentGatewayOrBuilder() { + if (defaultEgressAgentGatewayBuilder_ != null) { + return defaultEgressAgentGatewayBuilder_.getMessageOrBuilder(); + } else { + return defaultEgressAgentGateway_ == null + ? com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + .getDefaultInstance() + : defaultEgressAgentGateway_; + } + } + + /** + * + * + *
            +     * Optional. The default egress agent gateway to use, when this setting is
            +     * applied to a Gemini Enterprise resource.
            +     *
            +     * The deployment mode must be GOOGLE_MANAGED, and the governed access path
            +     * must be AGENT_TO_ANYWHERE.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference, + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + .Builder, + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting + .AgentGatewayReferenceOrBuilder> + internalGetDefaultEgressAgentGatewayFieldBuilder() { + if (defaultEgressAgentGatewayBuilder_ == null) { + defaultEgressAgentGatewayBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference, + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + .Builder, + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting + .AgentGatewayReferenceOrBuilder>( + getDefaultEgressAgentGateway(), getParentForChildren(), isClean()); + defaultEgressAgentGateway_ = null; + } + return defaultEgressAgentGatewayBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AgentGatewaySetting) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AgentGatewaySetting) + private static final com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting(); + } + + public static com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentGatewaySetting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AgentGatewaySetting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AgentGatewaySettingOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AgentGatewaySettingOrBuilder.java new file mode 100644 index 000000000000..0340d817ef5e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AgentGatewaySettingOrBuilder.java @@ -0,0 +1,85 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/agent_gateway_setting.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface AgentGatewaySettingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AgentGatewaySetting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. The default egress agent gateway to use, when this setting is
            +   * applied to a Gemini Enterprise resource.
            +   *
            +   * The deployment mode must be GOOGLE_MANAGED, and the governed access path
            +   * must be AGENT_TO_ANYWHERE.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the defaultEgressAgentGateway field is set. + */ + boolean hasDefaultEgressAgentGateway(); + + /** + * + * + *
            +   * Optional. The default egress agent gateway to use, when this setting is
            +   * applied to a Gemini Enterprise resource.
            +   *
            +   * The deployment mode must be GOOGLE_MANAGED, and the governed access path
            +   * must be AGENT_TO_ANYWHERE.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultEgressAgentGateway. + */ + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference + getDefaultEgressAgentGateway(); + + /** + * + * + *
            +   * Optional. The default egress agent gateway to use, when this setting is
            +   * applied to a Gemini Enterprise resource.
            +   *
            +   * The deployment mode must be GOOGLE_MANAGED, and the governed access path
            +   * must be AGENT_TO_ANYWHERE.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReference default_egress_agent_gateway = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.AgentGatewayReferenceOrBuilder + getDefaultEgressAgentGatewayOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AgentGatewaySettingProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AgentGatewaySettingProto.java new file mode 100644 index 000000000000..4fffb9e26b26 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AgentGatewaySettingProto.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/agent_gateway_setting.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public final class AgentGatewaySettingProto extends com.google.protobuf.GeneratedFile { + private AgentGatewaySettingProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentGatewaySettingProto"); + } + + 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_discoveryengine_v1beta_AgentGatewaySetting_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_AgentGatewayReference_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_AgentGatewayReference_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/discoveryengine/v1beta/ag" + + "ent_gateway_setting.proto\022#google.cloud." + + "discoveryengine.v1beta\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\"\357\001\n\023AgentGatewaySetting\022y\n\034default_eg" + + "ress_agent_gateway\030\001 \001(\0132N.google.cloud." + + "discoveryengine.v1beta.AgentGatewaySetti" + + "ng.AgentGatewayReferenceB\003\340A\001\032]\n\025AgentGa" + + "tewayReference\022D\n\004name\030\001 \001(\tB6\340A\002\340A\005\372A-\n" + + "+networkservices.googleapis.com/AgentGat" + + "ewayB\237\002\n\'com.google.cloud.discoveryengin" + + "e.v1betaB\030AgentGatewaySettingProtoP\001ZQcl" + + "oud.google.com/go/discoveryengine/apiv1b" + + "eta/discoveryenginepb;discoveryenginepb\242" + + "\002\017DISCOVERYENGINE\252\002#Google.Cloud.Discove" + + "ryEngine.V1Beta\312\002#Google\\Cloud\\Discovery" + + "Engine\\V1beta\352\002&Google::Cloud::Discovery" + + "Engine::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_descriptor, + new java.lang.String[] { + "DefaultEgressAgentGateway", + }); + internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_AgentGatewayReference_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_AgentGatewayReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AgentGatewaySetting_AgentGatewayReference_descriptor, + new java.lang.String[] { + "Name", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Answer.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Answer.java index bb185cb14343..2aa0622ea5c2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Answer.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Answer.java @@ -56,10 +56,13 @@ private Answer() { state_ = 0; answerText_ = ""; citations_ = java.util.Collections.emptyList(); + groundingSupports_ = java.util.Collections.emptyList(); references_ = java.util.Collections.emptyList(); + blobAttachments_ = java.util.Collections.emptyList(); relatedQuestions_ = com.google.protobuf.LazyStringArrayList.emptyList(); steps_ = java.util.Collections.emptyList(); answerSkippedReasons_ = emptyIntList(); + safetyRatings_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -127,6 +130,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * SUCCEEDED = 3; */ SUCCEEDED(3), + /** + * + * + *
            +     * Answer generation is currently in progress.
            +     * 
            + * + * STREAMING = 4; + */ + STREAMING(4), UNRECOGNIZED(-1), ; @@ -184,6 +197,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SUCCEEDED_VALUE = 3; + /** + * + * + *
            +     * Answer generation is currently in progress.
            +     * 
            + * + * STREAMING = 4; + */ + public static final int STREAMING_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -216,6 +240,8 @@ public static State forNumber(int value) { return FAILED; case 3: return SUCCEEDED; + case 4: + return STREAMING; default: return null; } @@ -401,6 +427,34 @@ public enum AnswerSkippedReason implements com.google.protobuf.ProtocolMessageEn * LOW_GROUNDED_ANSWER = 9; */ LOW_GROUNDED_ANSWER(9), + /** + * + * + *
            +     * The user defined query classification ignored case.
            +     *
            +     * Google skips the answer if the query is classified as a user defined
            +     * query classification.
            +     * 
            + * + * USER_DEFINED_CLASSIFICATION_QUERY_IGNORED = 10; + */ + USER_DEFINED_CLASSIFICATION_QUERY_IGNORED(10), + /** + * + * + *
            +     * The unhelpful answer case.
            +     *
            +     * Google skips the answer if the answer is not helpful. This can be due to
            +     * a variety of factors, including but not limited to: the query is not
            +     * answerable, the answer is not relevant to the query, or the answer is
            +     * not well-formatted.
            +     * 
            + * + * UNHELPFUL_ANSWER = 11; + */ + UNHELPFUL_ANSWER(11), UNRECOGNIZED(-1), ; @@ -546,6 +600,36 @@ public enum AnswerSkippedReason implements com.google.protobuf.ProtocolMessageEn */ public static final int LOW_GROUNDED_ANSWER_VALUE = 9; + /** + * + * + *
            +     * The user defined query classification ignored case.
            +     *
            +     * Google skips the answer if the query is classified as a user defined
            +     * query classification.
            +     * 
            + * + * USER_DEFINED_CLASSIFICATION_QUERY_IGNORED = 10; + */ + public static final int USER_DEFINED_CLASSIFICATION_QUERY_IGNORED_VALUE = 10; + + /** + * + * + *
            +     * The unhelpful answer case.
            +     *
            +     * Google skips the answer if the answer is not helpful. This can be due to
            +     * a variety of factors, including but not limited to: the query is not
            +     * answerable, the answer is not relevant to the query, or the answer is
            +     * not well-formatted.
            +     * 
            + * + * UNHELPFUL_ANSWER = 11; + */ + public static final int UNHELPFUL_ANSWER_VALUE = 11; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -590,6 +674,10 @@ public static AnswerSkippedReason forNumber(int value) { return NON_ANSWER_SEEKING_QUERY_IGNORED_V2; case 9: return LOW_GROUNDED_ANSWER; + case 10: + return USER_DEFINED_CLASSIFICATION_QUERY_IGNORED; + case 11: + return UNHELPFUL_ANSWER; default: return null; } @@ -656,7 +744,8 @@ public interface CitationOrBuilder * *
                  * Index indicates the start of the segment, measured in bytes (UTF-8
            -     * unicode).
            +     * unicode). If there are multi-byte characters,such as non-ASCII
            +     * characters, the index measurement is longer than the string length.
                  * 
            * * int64 start_index = 1; @@ -669,7 +758,9 @@ public interface CitationOrBuilder * * *
            -     * End of the attributed segment, exclusive.
            +     * End of the attributed segment, exclusive. Measured in bytes (UTF-8
            +     * unicode). If there are multi-byte characters,such as non-ASCII
            +     * characters, the index measurement is longer than the string length.
                  * 
            * * int64 end_index = 2; @@ -793,7 +884,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                  * Index indicates the start of the segment, measured in bytes (UTF-8
            -     * unicode).
            +     * unicode). If there are multi-byte characters,such as non-ASCII
            +     * characters, the index measurement is longer than the string length.
                  * 
            * * int64 start_index = 1; @@ -812,7 +904,9 @@ public long getStartIndex() { * * *
            -     * End of the attributed segment, exclusive.
            +     * End of the attributed segment, exclusive. Measured in bytes (UTF-8
            +     * unicode). If there are multi-byte characters,such as non-ASCII
            +     * characters, the index measurement is longer than the string length.
                  * 
            * * int64 end_index = 2; @@ -1314,7 +1408,8 @@ public Builder mergeFrom( * *
                    * Index indicates the start of the segment, measured in bytes (UTF-8
            -       * unicode).
            +       * unicode). If there are multi-byte characters,such as non-ASCII
            +       * characters, the index measurement is longer than the string length.
                    * 
            * * int64 start_index = 1; @@ -1331,7 +1426,8 @@ public long getStartIndex() { * *
                    * Index indicates the start of the segment, measured in bytes (UTF-8
            -       * unicode).
            +       * unicode). If there are multi-byte characters,such as non-ASCII
            +       * characters, the index measurement is longer than the string length.
                    * 
            * * int64 start_index = 1; @@ -1352,7 +1448,8 @@ public Builder setStartIndex(long value) { * *
                    * Index indicates the start of the segment, measured in bytes (UTF-8
            -       * unicode).
            +       * unicode). If there are multi-byte characters,such as non-ASCII
            +       * characters, the index measurement is longer than the string length.
                    * 
            * * int64 start_index = 1; @@ -1372,7 +1469,9 @@ public Builder clearStartIndex() { * * *
            -       * End of the attributed segment, exclusive.
            +       * End of the attributed segment, exclusive. Measured in bytes (UTF-8
            +       * unicode). If there are multi-byte characters,such as non-ASCII
            +       * characters, the index measurement is longer than the string length.
                    * 
            * * int64 end_index = 2; @@ -1388,7 +1487,9 @@ public long getEndIndex() { * * *
            -       * End of the attributed segment, exclusive.
            +       * End of the attributed segment, exclusive. Measured in bytes (UTF-8
            +       * unicode). If there are multi-byte characters,such as non-ASCII
            +       * characters, the index measurement is longer than the string length.
                    * 
            * * int64 end_index = 2; @@ -1408,7 +1509,9 @@ public Builder setEndIndex(long value) { * * *
            -       * End of the attributed segment, exclusive.
            +       * End of the attributed segment, exclusive. Measured in bytes (UTF-8
            +       * unicode). If there are multi-byte characters,such as non-ASCII
            +       * characters, the index measurement is longer than the string length.
                    * 
            * * int64 end_index = 2; @@ -2492,155 +2595,185 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface ReferenceOrBuilder + public interface GroundingSupportOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Reference) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.GroundingSupport) com.google.protobuf.MessageOrBuilder { /** * * *
            -     * Unstructured document information.
            +     * Required. Index indicates the start of the claim, measured in bytes
            +     * (UTF-8 unicode).
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; - * + * int64 start_index = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return Whether the unstructuredDocumentInfo field is set. + * @return The startIndex. */ - boolean hasUnstructuredDocumentInfo(); + long getStartIndex(); /** * * *
            -     * Unstructured document information.
            +     * Required. End of the claim, exclusive.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; - * + * int64 end_index = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @return The unstructuredDocumentInfo. + * @return The endIndex. */ - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - getUnstructuredDocumentInfo(); + long getEndIndex(); /** * * *
            -     * Unstructured document information.
            +     * A score in the range of [0, 1] describing how grounded is a specific
            +     * claim by the references.
            +     * Higher value means that the claim is better supported by the reference
            +     * chunks.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; - * + * optional double grounding_score = 3; + * + * @return Whether the groundingScore field is set. */ - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfoOrBuilder - getUnstructuredDocumentInfoOrBuilder(); + boolean hasGroundingScore(); /** * * *
            -     * Chunk information.
            +     * A score in the range of [0, 1] describing how grounded is a specific
            +     * claim by the references.
            +     * Higher value means that the claim is better supported by the reference
            +     * chunks.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * optional double grounding_score = 3; * - * @return Whether the chunkInfo field is set. + * @return The groundingScore. */ - boolean hasChunkInfo(); + double getGroundingScore(); /** * * *
            -     * Chunk information.
            +     * Indicates that this claim required grounding check. When the
            +     * system decided this claim didn't require attribution/grounding check,
            +     * this field is set to false. In that case, no grounding check was
            +     * done for the claim and therefore `grounding_score`, `sources` is not
            +     * returned.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * optional bool grounding_check_required = 4; * - * @return The chunkInfo. + * @return Whether the groundingCheckRequired field is set. */ - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo getChunkInfo(); + boolean hasGroundingCheckRequired(); /** * * *
            -     * Chunk information.
            +     * Indicates that this claim required grounding check. When the
            +     * system decided this claim didn't require attribution/grounding check,
            +     * this field is set to false. In that case, no grounding check was
            +     * done for the claim and therefore `grounding_score`, `sources` is not
            +     * returned.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * optional bool grounding_check_required = 4; + * + * @return The groundingCheckRequired. */ - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfoOrBuilder - getChunkInfoOrBuilder(); + boolean getGroundingCheckRequired(); /** * * *
            -     * Structured document information.
            +     * Optional. Citation sources for the claim.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the structuredDocumentInfo field is set. */ - boolean hasStructuredDocumentInfo(); + java.util.List getSourcesList(); /** * * *
            -     * Structured document information.
            +     * Optional. Citation sources for the claim.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; * + */ + com.google.cloud.discoveryengine.v1beta.Answer.CitationSource getSources(int index); + + /** * - * @return The structuredDocumentInfo. + * + *
            +     * Optional. Citation sources for the claim.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - getStructuredDocumentInfo(); + int getSourcesCount(); /** * * *
            -     * Structured document information.
            +     * Optional. Citation sources for the claim.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfoOrBuilder - getStructuredDocumentInfoOrBuilder(); + java.util.List + getSourcesOrBuilderList(); - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ContentCase getContentCase(); + /** + * + * + *
            +     * Optional. Citation sources for the claim.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Answer.CitationSourceOrBuilder getSourcesOrBuilder( + int index); } /** * * *
            -   * Reference.
            +   * Grounding support for a claim in `answer_text`.
                * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Reference} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.GroundingSupport} */ - public static final class Reference extends com.google.protobuf.GeneratedMessage + public static final class GroundingSupport extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Reference) - ReferenceOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.GroundingSupport) + GroundingSupportOrBuilder { private static final long serialVersionUID = 0L; static { @@ -2650,2462 +2783,2137 @@ public static final class Reference extends com.google.protobuf.GeneratedMessage /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "Reference"); + "GroundingSupport"); } - // Use Reference.newBuilder() to construct. - private Reference(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use GroundingSupport.newBuilder() to construct. + private GroundingSupport(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private Reference() {} + private GroundingSupport() { + sources_ = java.util.Collections.emptyList(); + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_Answer_GroundingSupport_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_Answer_GroundingSupport_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.class, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder.class); + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport.class, + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport.Builder.class); } - public interface UnstructuredDocumentInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) - com.google.protobuf.MessageOrBuilder { + private int bitField0_; + public static final int START_INDEX_FIELD_NUMBER = 1; + private long startIndex_ = 0L; - /** - * - * - *
            -       * Document resource name.
            -       * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The document. - */ - java.lang.String getDocument(); + /** + * + * + *
            +     * Required. Index indicates the start of the claim, measured in bytes
            +     * (UTF-8 unicode).
            +     * 
            + * + * int64 start_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The startIndex. + */ + @java.lang.Override + public long getStartIndex() { + return startIndex_; + } - /** - * - * - *
            -       * Document resource name.
            -       * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for document. - */ - com.google.protobuf.ByteString getDocumentBytes(); + public static final int END_INDEX_FIELD_NUMBER = 2; + private long endIndex_ = 0L; - /** - * - * - *
            -       * URI for the document.
            -       * 
            - * - * string uri = 2; - * - * @return The uri. - */ - java.lang.String getUri(); + /** + * + * + *
            +     * Required. End of the claim, exclusive.
            +     * 
            + * + * int64 end_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The endIndex. + */ + @java.lang.Override + public long getEndIndex() { + return endIndex_; + } - /** - * - * - *
            -       * URI for the document.
            -       * 
            - * - * string uri = 2; - * - * @return The bytes for uri. - */ - com.google.protobuf.ByteString getUriBytes(); + public static final int GROUNDING_SCORE_FIELD_NUMBER = 3; + private double groundingScore_ = 0D; - /** - * - * - *
            -       * Title.
            -       * 
            - * - * string title = 3; - * - * @return The title. - */ - java.lang.String getTitle(); + /** + * + * + *
            +     * A score in the range of [0, 1] describing how grounded is a specific
            +     * claim by the references.
            +     * Higher value means that the claim is better supported by the reference
            +     * chunks.
            +     * 
            + * + * optional double grounding_score = 3; + * + * @return Whether the groundingScore field is set. + */ + @java.lang.Override + public boolean hasGroundingScore() { + return ((bitField0_ & 0x00000001) != 0); + } - /** - * - * - *
            -       * Title.
            -       * 
            - * - * string title = 3; - * - * @return The bytes for title. - */ - com.google.protobuf.ByteString getTitleBytes(); + /** + * + * + *
            +     * A score in the range of [0, 1] describing how grounded is a specific
            +     * claim by the references.
            +     * Higher value means that the claim is better supported by the reference
            +     * chunks.
            +     * 
            + * + * optional double grounding_score = 3; + * + * @return The groundingScore. + */ + @java.lang.Override + public double getGroundingScore() { + return groundingScore_; + } - /** - * - * - *
            -       * List of cited chunk contents derived from document content.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent> - getChunkContentsList(); + public static final int GROUNDING_CHECK_REQUIRED_FIELD_NUMBER = 4; + private boolean groundingCheckRequired_ = false; - /** - * - * - *
            -       * List of cited chunk contents derived from document content.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent - getChunkContents(int index); + /** + * + * + *
            +     * Indicates that this claim required grounding check. When the
            +     * system decided this claim didn't require attribution/grounding check,
            +     * this field is set to false. In that case, no grounding check was
            +     * done for the claim and therefore `grounding_score`, `sources` is not
            +     * returned.
            +     * 
            + * + * optional bool grounding_check_required = 4; + * + * @return Whether the groundingCheckRequired field is set. + */ + @java.lang.Override + public boolean hasGroundingCheckRequired() { + return ((bitField0_ & 0x00000002) != 0); + } - /** - * - * - *
            -       * List of cited chunk contents derived from document content.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - int getChunkContentsCount(); + /** + * + * + *
            +     * Indicates that this claim required grounding check. When the
            +     * system decided this claim didn't require attribution/grounding check,
            +     * this field is set to false. In that case, no grounding check was
            +     * done for the claim and therefore `grounding_score`, `sources` is not
            +     * returned.
            +     * 
            + * + * optional bool grounding_check_required = 4; + * + * @return The groundingCheckRequired. + */ + @java.lang.Override + public boolean getGroundingCheckRequired() { + return groundingCheckRequired_; + } - /** - * - * - *
            -       * List of cited chunk contents derived from document content.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContentOrBuilder> - getChunkContentsOrBuilderList(); + public static final int SOURCES_FIELD_NUMBER = 5; - /** - * - * - *
            -       * List of cited chunk contents derived from document content.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContentOrBuilder - getChunkContentsOrBuilder(int index); + @SuppressWarnings("serial") + private java.util.List sources_; - /** - * - * - *
            -       * The structured JSON metadata for the document.
            -       * It is populated from the struct data from the Chunk in search result.
            -       * 
            - * - * .google.protobuf.Struct struct_data = 5; - * - * @return Whether the structData field is set. - */ - boolean hasStructData(); + /** + * + * + *
            +     * Optional. Citation sources for the claim.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSourcesList() { + return sources_; + } - /** - * - * - *
            -       * The structured JSON metadata for the document.
            -       * It is populated from the struct data from the Chunk in search result.
            -       * 
            - * - * .google.protobuf.Struct struct_data = 5; - * - * @return The structData. - */ - com.google.protobuf.Struct getStructData(); + /** + * + * + *
            +     * Optional. Citation sources for the claim.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.Answer.CitationSourceOrBuilder> + getSourcesOrBuilderList() { + return sources_; + } - /** - * - * - *
            -       * The structured JSON metadata for the document.
            -       * It is populated from the struct data from the Chunk in search result.
            -       * 
            - * - * .google.protobuf.Struct struct_data = 5; - */ - com.google.protobuf.StructOrBuilder getStructDataOrBuilder(); + /** + * + * + *
            +     * Optional. Citation sources for the claim.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSourcesCount() { + return sources_.size(); } /** * * *
            -     * Unstructured document information.
            +     * Optional. Citation sources for the claim.
                  * 
            * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo} + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public static final class UnstructuredDocumentInfo extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) - UnstructuredDocumentInfoOrBuilder { - private static final long serialVersionUID = 0L; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.CitationSource getSources(int index) { + return sources_.get(index); + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "UnstructuredDocumentInfo"); - } + /** + * + * + *
            +     * Optional. Citation sources for the claim.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.CitationSourceOrBuilder + getSourcesOrBuilder(int index) { + return sources_.get(index); + } - // Use UnstructuredDocumentInfo.newBuilder() to construct. - private UnstructuredDocumentInfo(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + private byte memoizedIsInitialized = -1; - private UnstructuredDocumentInfo() { - document_ = ""; - uri_ = ""; - title_ = ""; - chunkContents_ = java.util.Collections.emptyList(); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_descriptor; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .class, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .Builder.class); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startIndex_ != 0L) { + output.writeInt64(1, startIndex_); + } + if (endIndex_ != 0L) { + output.writeInt64(2, endIndex_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(3, groundingScore_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(4, groundingCheckRequired_); + } + for (int i = 0; i < sources_.size(); i++) { + output.writeMessage(5, sources_.get(i)); + } + getUnknownFields().writeTo(output); + } - public interface ChunkContentOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - * - * - *
            -         * Chunk textual content.
            -         * 
            - * - * string content = 1; - * - * @return The content. - */ - java.lang.String getContent(); + size = 0; + if (startIndex_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, startIndex_); + } + if (endIndex_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, endIndex_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, groundingScore_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, groundingCheckRequired_); + } + for (int i = 0; i < sources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, sources_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
            -         * Chunk textual content.
            -         * 
            - * - * string content = 1; - * - * @return The bytes for content. - */ - com.google.protobuf.ByteString getContentBytes(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport other = + (com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport) obj; - /** - * - * - *
            -         * Page identifier.
            -         * 
            - * - * string page_identifier = 2; - * - * @return The pageIdentifier. - */ - java.lang.String getPageIdentifier(); + if (getStartIndex() != other.getStartIndex()) return false; + if (getEndIndex() != other.getEndIndex()) return false; + if (hasGroundingScore() != other.hasGroundingScore()) return false; + if (hasGroundingScore()) { + if (java.lang.Double.doubleToLongBits(getGroundingScore()) + != java.lang.Double.doubleToLongBits(other.getGroundingScore())) return false; + } + if (hasGroundingCheckRequired() != other.hasGroundingCheckRequired()) return false; + if (hasGroundingCheckRequired()) { + if (getGroundingCheckRequired() != other.getGroundingCheckRequired()) return false; + } + if (!getSourcesList().equals(other.getSourcesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - /** - * - * - *
            -         * Page identifier.
            -         * 
            - * - * string page_identifier = 2; - * - * @return The bytes for pageIdentifier. - */ - com.google.protobuf.ByteString getPageIdentifierBytes(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + START_INDEX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStartIndex()); + hash = (37 * hash) + END_INDEX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEndIndex()); + if (hasGroundingScore()) { + hash = (37 * hash) + GROUNDING_SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getGroundingScore())); + } + if (hasGroundingCheckRequired()) { + hash = (37 * hash) + GROUNDING_CHECK_REQUIRED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGroundingCheckRequired()); + } + if (getSourcesCount() > 0) { + hash = (37 * hash) + SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getSourcesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - * - * - *
            -         * The relevance of the chunk for a given query. Values range from 0.0
            -         * (completely irrelevant) to 1.0 (completely relevant).
            -         * This value is for informational purpose only. It may change for
            -         * the same query and chunk at any time due to a model retraining or
            -         * change in implementation.
            -         * 
            - * - * optional float relevance_score = 3; - * - * @return Whether the relevanceScore field is set. - */ - boolean hasRelevanceScore(); + public static com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -         * The relevance of the chunk for a given query. Values range from 0.0
            -         * (completely irrelevant) to 1.0 (completely relevant).
            -         * This value is for informational purpose only. It may change for
            -         * the same query and chunk at any time due to a model retraining or
            -         * change in implementation.
            -         * 
            - * - * optional float relevance_score = 3; - * - * @return The relevanceScore. - */ - float getRelevanceScore(); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -       * Chunk content.
            -       * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent} - */ - public static final class ChunkContent extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent) - ChunkContentOrBuilder { - private static final long serialVersionUID = 0L; + public static com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "ChunkContent"); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - // Use ChunkContent.newBuilder() to construct. - private ChunkContent(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private ChunkContent() { - content_ = ""; - pageIdentifier_ = ""; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_ChunkContent_descriptor; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_ChunkContent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent.class, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent.Builder.class); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - private int bitField0_; - public static final int CONTENT_FIELD_NUMBER = 1; + public static com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - @SuppressWarnings("serial") - private volatile java.lang.Object content_ = ""; + public static com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -         * Chunk textual content.
            -         * 
            - * - * string content = 1; - * - * @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; - } - } + public static com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
            -         * Chunk textual content.
            -         * 
            - * - * string content = 1; - * - * @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 com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static final int PAGE_IDENTIFIER_FIELD_NUMBER = 2; + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object pageIdentifier_ = ""; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
            -         * Page identifier.
            -         * 
            - * - * string page_identifier = 2; - * - * @return The pageIdentifier. - */ - @java.lang.Override - public java.lang.String getPageIdentifier() { - java.lang.Object ref = pageIdentifier_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageIdentifier_ = s; - return s; - } - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * - * - *
            -         * Page identifier.
            -         * 
            - * - * string page_identifier = 2; - * - * @return The bytes for pageIdentifier. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageIdentifierBytes() { - java.lang.Object ref = pageIdentifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageIdentifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static final int RELEVANCE_SCORE_FIELD_NUMBER = 3; - private float relevanceScore_ = 0F; + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * - * - *
            -         * The relevance of the chunk for a given query. Values range from 0.0
            -         * (completely irrelevant) to 1.0 (completely relevant).
            -         * This value is for informational purpose only. It may change for
            -         * the same query and chunk at any time due to a model retraining or
            -         * change in implementation.
            -         * 
            - * - * optional float relevance_score = 3; - * - * @return Whether the relevanceScore field is set. - */ - @java.lang.Override - public boolean hasRelevanceScore() { - return ((bitField0_ & 0x00000001) != 0); - } + /** + * + * + *
            +     * Grounding support for a claim in `answer_text`.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.GroundingSupport} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.GroundingSupport) + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_GroundingSupport_descriptor; + } - /** - * - * - *
            -         * The relevance of the chunk for a given query. Values range from 0.0
            -         * (completely irrelevant) to 1.0 (completely relevant).
            -         * This value is for informational purpose only. It may change for
            -         * the same query and chunk at any time due to a model retraining or
            -         * change in implementation.
            -         * 
            - * - * optional float relevance_score = 3; - * - * @return The relevanceScore. - */ - @java.lang.Override - public float getRelevanceScore() { - return relevanceScore_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_GroundingSupport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport.class, + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport.Builder.class); + } - private byte memoizedIsInitialized = -1; + // Construct using + // com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport.newBuilder() + private Builder() {} - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - memoizedIsInitialized = 1; - return true; + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startIndex_ = 0L; + endIndex_ = 0L; + groundingScore_ = 0D; + groundingCheckRequired_ = false; + if (sourcesBuilder_ == null) { + sources_ = java.util.Collections.emptyList(); + } else { + sources_ = null; + sourcesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, content_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, pageIdentifier_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeFloat(3, relevanceScore_); - } - getUnknownFields().writeTo(output); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_GroundingSupport_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport build() { + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport buildPartial() { + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport result = + new com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, content_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, pageIdentifier_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, relevanceScore_); + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport result) { + if (sourcesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + sources_ = java.util.Collections.unmodifiableList(sources_); + bitField0_ = (bitField0_ & ~0x00000010); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + result.sources_ = sources_; + } else { + result.sources_ = sourcesBuilder_.build(); } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent - other = - (com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent) - obj; - - if (!getContent().equals(other.getContent())) return false; - if (!getPageIdentifier().equals(other.getPageIdentifier())) return false; - if (hasRelevanceScore() != other.hasRelevanceScore()) return false; - if (hasRelevanceScore()) { - if (java.lang.Float.floatToIntBits(getRelevanceScore()) - != java.lang.Float.floatToIntBits(other.getRelevanceScore())) 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) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().hashCode(); - hash = (37 * hash) + PAGE_IDENTIFIER_FIELD_NUMBER; - hash = (53 * hash) + getPageIdentifier().hashCode(); - if (hasRelevanceScore()) { - hash = (37 * hash) + RELEVANCE_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRelevanceScore()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startIndex_ = startIndex_; } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endIndex_ = endIndex_; } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.groundingScore_ = groundingScore_; + to_bitField0_ |= 0x00000001; } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.groundingCheckRequired_ = groundingCheckRequired_; + to_bitField0_ |= 0x00000002; } + result.bitField0_ |= to_bitField0_; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport) other); + } else { + super.mergeFrom(other); + return this; } + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport.getDefaultInstance()) + return this; + if (other.getStartIndex() != 0L) { + setStartIndex(other.getStartIndex()); } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + if (other.getEndIndex() != 0L) { + setEndIndex(other.getEndIndex()); } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + if (other.hasGroundingScore()) { + setGroundingScore(other.getGroundingScore()); } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + if (other.hasGroundingCheckRequired()) { + setGroundingCheckRequired(other.getGroundingCheckRequired()); } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + if (sourcesBuilder_ == null) { + if (!other.sources_.isEmpty()) { + if (sources_.isEmpty()) { + sources_ = other.sources_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureSourcesIsMutable(); + sources_.addAll(other.sources_); + } + onChanged(); + } + } else { + if (!other.sources_.isEmpty()) { + if (sourcesBuilder_.isEmpty()) { + sourcesBuilder_.dispose(); + sourcesBuilder_ = null; + sources_ = other.sources_; + bitField0_ = (bitField0_ & ~0x00000010); + sourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSourcesFieldBuilder() + : null; + } else { + sourcesBuilder_.addAllMessages(other.sources_); + } + } } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + startIndex_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endIndex_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 25: + { + groundingScore_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 32: + { + groundingCheckRequired_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + com.google.cloud.discoveryengine.v1beta.Answer.CitationSource m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Answer.CitationSource.parser(), + extensionRegistry); + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + sources_.add(m); + } else { + sourcesBuilder_.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; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + private int bitField0_; - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + private long startIndex_; - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
            +       * Required. Index indicates the start of the claim, measured in bytes
            +       * (UTF-8 unicode).
            +       * 
            + * + * int64 start_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The startIndex. + */ + @java.lang.Override + public long getStartIndex() { + return startIndex_; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
            +       * Required. Index indicates the start of the claim, measured in bytes
            +       * (UTF-8 unicode).
            +       * 
            + * + * int64 start_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The startIndex to set. + * @return This builder for chaining. + */ + public Builder setStartIndex(long value) { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + startIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
            -         * Chunk content.
            -         * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent) - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_ChunkContent_descriptor; - } + /** + * + * + *
            +       * Required. Index indicates the start of the claim, measured in bytes
            +       * (UTF-8 unicode).
            +       * 
            + * + * int64 start_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearStartIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + startIndex_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_ChunkContent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent.class, - com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent.Builder.class); - } + private long endIndex_; - // Construct using - // com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent.newBuilder() - private Builder() {} + /** + * + * + *
            +       * Required. End of the claim, exclusive.
            +       * 
            + * + * int64 end_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The endIndex. + */ + @java.lang.Override + public long getEndIndex() { + return endIndex_; + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + /** + * + * + *
            +       * Required. End of the claim, exclusive.
            +       * 
            + * + * int64 end_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The endIndex to set. + * @return This builder for chaining. + */ + public Builder setEndIndex(long value) { - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - content_ = ""; - pageIdentifier_ = ""; - relevanceScore_ = 0F; - return this; - } + endIndex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_ChunkContent_descriptor; - } + /** + * + * + *
            +       * Required. End of the claim, exclusive.
            +       * 
            + * + * int64 end_index = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEndIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + endIndex_ = 0L; + onChanged(); + return this; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent.getDefaultInstance(); - } + private double groundingScore_; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent - build() { - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + /** + * + * + *
            +       * A score in the range of [0, 1] describing how grounded is a specific
            +       * claim by the references.
            +       * Higher value means that the claim is better supported by the reference
            +       * chunks.
            +       * 
            + * + * optional double grounding_score = 3; + * + * @return Whether the groundingScore field is set. + */ + @java.lang.Override + public boolean hasGroundingScore() { + return ((bitField0_ & 0x00000004) != 0); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent - buildPartial() { - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent - result = - new com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + /** + * + * + *
            +       * A score in the range of [0, 1] describing how grounded is a specific
            +       * claim by the references.
            +       * Higher value means that the claim is better supported by the reference
            +       * chunks.
            +       * 
            + * + * optional double grounding_score = 3; + * + * @return The groundingScore. + */ + @java.lang.Override + public double getGroundingScore() { + return groundingScore_; + } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.content_ = content_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageIdentifier_ = pageIdentifier_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.relevanceScore_ = relevanceScore_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } + /** + * + * + *
            +       * A score in the range of [0, 1] describing how grounded is a specific
            +       * claim by the references.
            +       * Higher value means that the claim is better supported by the reference
            +       * chunks.
            +       * 
            + * + * optional double grounding_score = 3; + * + * @param value The groundingScore to set. + * @return This builder for chaining. + */ + public Builder setGroundingScore(double value) { - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent) - other); - } else { - super.mergeFrom(other); - return this; - } - } + groundingScore_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent.getDefaultInstance()) return this; - if (!other.getContent().isEmpty()) { - content_ = other.content_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getPageIdentifier().isEmpty()) { - pageIdentifier_ = other.pageIdentifier_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasRelevanceScore()) { - setRelevanceScore(other.getRelevanceScore()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } + /** + * + * + *
            +       * A score in the range of [0, 1] describing how grounded is a specific
            +       * claim by the references.
            +       * Higher value means that the claim is better supported by the reference
            +       * chunks.
            +       * 
            + * + * optional double grounding_score = 3; + * + * @return This builder for chaining. + */ + public Builder clearGroundingScore() { + bitField0_ = (bitField0_ & ~0x00000004); + groundingScore_ = 0D; + onChanged(); + return 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 10: - { - content_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - pageIdentifier_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 29: - { - relevanceScore_ = input.readFloat(); - bitField0_ |= 0x00000004; - break; - } // case 29 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // 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 boolean groundingCheckRequired_; - private int bitField0_; + /** + * + * + *
            +       * Indicates that this claim required grounding check. When the
            +       * system decided this claim didn't require attribution/grounding check,
            +       * this field is set to false. In that case, no grounding check was
            +       * done for the claim and therefore `grounding_score`, `sources` is not
            +       * returned.
            +       * 
            + * + * optional bool grounding_check_required = 4; + * + * @return Whether the groundingCheckRequired field is set. + */ + @java.lang.Override + public boolean hasGroundingCheckRequired() { + return ((bitField0_ & 0x00000008) != 0); + } - private java.lang.Object content_ = ""; + /** + * + * + *
            +       * Indicates that this claim required grounding check. When the
            +       * system decided this claim didn't require attribution/grounding check,
            +       * this field is set to false. In that case, no grounding check was
            +       * done for the claim and therefore `grounding_score`, `sources` is not
            +       * returned.
            +       * 
            + * + * optional bool grounding_check_required = 4; + * + * @return The groundingCheckRequired. + */ + @java.lang.Override + public boolean getGroundingCheckRequired() { + return groundingCheckRequired_; + } - /** - * - * - *
            -           * Chunk textual content.
            -           * 
            - * - * string content = 1; - * - * @return The content. - */ - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + /** + * + * + *
            +       * Indicates that this claim required grounding check. When the
            +       * system decided this claim didn't require attribution/grounding check,
            +       * this field is set to false. In that case, no grounding check was
            +       * done for the claim and therefore `grounding_score`, `sources` is not
            +       * returned.
            +       * 
            + * + * optional bool grounding_check_required = 4; + * + * @param value The groundingCheckRequired to set. + * @return This builder for chaining. + */ + public Builder setGroundingCheckRequired(boolean value) { - /** - * - * - *
            -           * Chunk textual content.
            -           * 
            - * - * string content = 1; - * - * @return The bytes for content. - */ - public com.google.protobuf.ByteString getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof 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; - } - } + groundingCheckRequired_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - /** - * - * - *
            -           * Chunk textual content.
            -           * 
            - * - * string content = 1; - * - * @param value The content to set. - * @return This builder for chaining. - */ - public Builder setContent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + /** + * + * + *
            +       * Indicates that this claim required grounding check. When the
            +       * system decided this claim didn't require attribution/grounding check,
            +       * this field is set to false. In that case, no grounding check was
            +       * done for the claim and therefore `grounding_score`, `sources` is not
            +       * returned.
            +       * 
            + * + * optional bool grounding_check_required = 4; + * + * @return This builder for chaining. + */ + public Builder clearGroundingCheckRequired() { + bitField0_ = (bitField0_ & ~0x00000008); + groundingCheckRequired_ = false; + onChanged(); + return this; + } - /** - * - * - *
            -           * Chunk textual content.
            -           * 
            - * - * string content = 1; - * - * @return This builder for chaining. - */ - public Builder clearContent() { - content_ = getDefaultInstance().getContent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } + private java.util.List + sources_ = java.util.Collections.emptyList(); - /** - * - * - *
            -           * Chunk textual content.
            -           * 
            - * - * string content = 1; - * - * @param value The bytes for content to set. - * @return This builder for chaining. - */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - content_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + private void ensureSourcesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + sources_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.Answer.CitationSource>(sources_); + bitField0_ |= 0x00000010; + } + } - private java.lang.Object pageIdentifier_ = ""; + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.CitationSource, + com.google.cloud.discoveryengine.v1beta.Answer.CitationSource.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.CitationSourceOrBuilder> + sourcesBuilder_; - /** - * - * - *
            -           * Page identifier.
            -           * 
            - * - * string page_identifier = 2; - * - * @return The pageIdentifier. - */ - public java.lang.String getPageIdentifier() { - java.lang.Object ref = pageIdentifier_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageIdentifier_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + /** + * + * + *
            +       * Optional. Citation sources for the claim.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSourcesList() { + if (sourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(sources_); + } else { + return sourcesBuilder_.getMessageList(); + } + } - /** - * - * - *
            -           * Page identifier.
            -           * 
            - * - * string page_identifier = 2; - * - * @return The bytes for pageIdentifier. - */ - public com.google.protobuf.ByteString getPageIdentifierBytes() { - java.lang.Object ref = pageIdentifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageIdentifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
            +       * Optional. Citation sources for the claim.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSourcesCount() { + if (sourcesBuilder_ == null) { + return sources_.size(); + } else { + return sourcesBuilder_.getCount(); + } + } - /** - * - * - *
            -           * Page identifier.
            -           * 
            - * - * string page_identifier = 2; - * - * @param value The pageIdentifier to set. - * @return This builder for chaining. - */ - public Builder setPageIdentifier(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - pageIdentifier_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + /** + * + * + *
            +       * Optional. Citation sources for the claim.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.CitationSource getSources(int index) { + if (sourcesBuilder_ == null) { + return sources_.get(index); + } else { + return sourcesBuilder_.getMessage(index); + } + } - /** - * - * - *
            -           * Page identifier.
            -           * 
            - * - * string page_identifier = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageIdentifier() { - pageIdentifier_ = getDefaultInstance().getPageIdentifier(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; + /** + * + * + *
            +       * Optional. Citation sources for the claim.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSources( + int index, com.google.cloud.discoveryengine.v1beta.Answer.CitationSource value) { + if (sourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureSourcesIsMutable(); + sources_.set(index, value); + onChanged(); + } else { + sourcesBuilder_.setMessage(index, value); + } + return this; + } - /** - * - * - *
            -           * Page identifier.
            -           * 
            - * - * string page_identifier = 2; - * - * @param value The bytes for pageIdentifier to set. - * @return This builder for chaining. - */ - public Builder setPageIdentifierBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - pageIdentifier_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + /** + * + * + *
            +       * Optional. Citation sources for the claim.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSources( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.CitationSource.Builder builderForValue) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + sources_.set(index, builderForValue.build()); + onChanged(); + } else { + sourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } - private float relevanceScore_; + /** + * + * + *
            +       * Optional. Citation sources for the claim.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSources( + com.google.cloud.discoveryengine.v1beta.Answer.CitationSource value) { + if (sourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcesIsMutable(); + sources_.add(value); + onChanged(); + } else { + sourcesBuilder_.addMessage(value); + } + return this; + } - /** - * - * - *
            -           * The relevance of the chunk for a given query. Values range from 0.0
            -           * (completely irrelevant) to 1.0 (completely relevant).
            -           * This value is for informational purpose only. It may change for
            -           * the same query and chunk at any time due to a model retraining or
            -           * change in implementation.
            -           * 
            - * - * optional float relevance_score = 3; - * - * @return Whether the relevanceScore field is set. - */ - @java.lang.Override - public boolean hasRelevanceScore() { - return ((bitField0_ & 0x00000004) != 0); + /** + * + * + *
            +       * Optional. Citation sources for the claim.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSources( + int index, com.google.cloud.discoveryengine.v1beta.Answer.CitationSource value) { + if (sourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureSourcesIsMutable(); + sources_.add(index, value); + onChanged(); + } else { + sourcesBuilder_.addMessage(index, value); + } + return this; + } - /** - * - * - *
            -           * The relevance of the chunk for a given query. Values range from 0.0
            -           * (completely irrelevant) to 1.0 (completely relevant).
            -           * This value is for informational purpose only. It may change for
            -           * the same query and chunk at any time due to a model retraining or
            -           * change in implementation.
            -           * 
            - * - * optional float relevance_score = 3; - * - * @return The relevanceScore. - */ - @java.lang.Override - public float getRelevanceScore() { - return relevanceScore_; - } - - /** - * - * - *
            -           * The relevance of the chunk for a given query. Values range from 0.0
            -           * (completely irrelevant) to 1.0 (completely relevant).
            -           * This value is for informational purpose only. It may change for
            -           * the same query and chunk at any time due to a model retraining or
            -           * change in implementation.
            -           * 
            - * - * optional float relevance_score = 3; - * - * @param value The relevanceScore to set. - * @return This builder for chaining. - */ - public Builder setRelevanceScore(float value) { - - relevanceScore_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
            -           * The relevance of the chunk for a given query. Values range from 0.0
            -           * (completely irrelevant) to 1.0 (completely relevant).
            -           * This value is for informational purpose only. It may change for
            -           * the same query and chunk at any time due to a model retraining or
            -           * change in implementation.
            -           * 
            - * - * optional float relevance_score = 3; - * - * @return This builder for chaining. - */ - public Builder clearRelevanceScore() { - bitField0_ = (bitField0_ & ~0x00000004); - relevanceScore_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent) - } - - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent) - private static final com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent(); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChunkContent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + /** + * + * + *
            +       * Optional. Citation sources for the claim.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSources( + com.google.cloud.discoveryengine.v1beta.Answer.CitationSource.Builder builderForValue) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + sources_.add(builderForValue.build()); + onChanged(); + } else { + sourcesBuilder_.addMessage(builderForValue.build()); } + return this; } - private int bitField0_; - public static final int DOCUMENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object document_ = ""; - /** * * *
            -       * Document resource name.
            +       * Optional. Citation sources for the claim.
                    * 
            * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The document. + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public java.lang.String getDocument() { - java.lang.Object ref = document_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; + public Builder addSources( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.CitationSource.Builder builderForValue) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + sources_.add(index, builderForValue.build()); + onChanged(); } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - document_ = s; - return s; + sourcesBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** * * *
            -       * Document resource name.
            +       * Optional. Citation sources for the claim.
                    * 
            * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for document. + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public com.google.protobuf.ByteString getDocumentBytes() { - java.lang.Object ref = document_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - document_ = b; - return b; + public Builder addAllSources( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1beta.Answer.CitationSource> + values) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sources_); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + sourcesBuilder_.addAllMessages(values); } + return this; } - public static final int URI_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object uri_ = ""; - /** * * *
            -       * URI for the document.
            +       * Optional. Citation sources for the claim.
                    * 
            * - * string uri = 2; - * - * @return The uri. + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public java.lang.String getUri() { - java.lang.Object ref = uri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; + public Builder clearSources() { + if (sourcesBuilder_ == null) { + sources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uri_ = s; - return s; + sourcesBuilder_.clear(); } + return this; } /** * * *
            -       * URI for the document.
            +       * Optional. Citation sources for the claim.
                    * 
            * - * string uri = 2; - * - * @return The bytes for uri. + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @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; + public Builder removeSources(int index) { + if (sourcesBuilder_ == null) { + ensureSourcesIsMutable(); + sources_.remove(index); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + sourcesBuilder_.remove(index); } + return this; } - public static final int TITLE_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object title_ = ""; - /** * * *
            -       * Title.
            +       * Optional. Citation sources for the claim.
                    * 
            * - * string title = 3; - * - * @return The title. + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @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; - } + public com.google.cloud.discoveryengine.v1beta.Answer.CitationSource.Builder + getSourcesBuilder(int index) { + return internalGetSourcesFieldBuilder().getBuilder(index); } /** * * *
            -       * Title.
            +       * Optional. Citation sources for the claim.
                    * 
            * - * string title = 3; - * - * @return The bytes for title. + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @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; + public com.google.cloud.discoveryengine.v1beta.Answer.CitationSourceOrBuilder + getSourcesOrBuilder(int index) { + if (sourcesBuilder_ == null) { + return sources_.get(index); } else { - return (com.google.protobuf.ByteString) ref; + return sourcesBuilder_.getMessageOrBuilder(index); } } - public static final int CHUNK_CONTENTS_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent> - chunkContents_; - /** * * *
            -       * List of cited chunk contents derived from document content.
            +       * Optional. Citation sources for the claim.
                    * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Override public java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent> - getChunkContentsList() { - return chunkContents_; + ? extends com.google.cloud.discoveryengine.v1beta.Answer.CitationSourceOrBuilder> + getSourcesOrBuilderList() { + if (sourcesBuilder_ != null) { + return sourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sources_); + } } /** * * *
            -       * List of cited chunk contents derived from document content.
            +       * Optional. Citation sources for the claim.
                    * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContentOrBuilder> - getChunkContentsOrBuilderList() { - return chunkContents_; + public com.google.cloud.discoveryengine.v1beta.Answer.CitationSource.Builder + addSourcesBuilder() { + return internalGetSourcesFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.CitationSource.getDefaultInstance()); } /** * * *
            -       * List of cited chunk contents derived from document content.
            +       * Optional. Citation sources for the claim.
                    * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Override - public int getChunkContentsCount() { - return chunkContents_.size(); + public com.google.cloud.discoveryengine.v1beta.Answer.CitationSource.Builder + addSourcesBuilder(int index) { + return internalGetSourcesFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.Answer.CitationSource.getDefaultInstance()); } /** * * *
            -       * List of cited chunk contents derived from document content.
            +       * Optional. Citation sources for the claim.
                    * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * repeated .google.cloud.discoveryengine.v1beta.Answer.CitationSource sources = 5 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent - getChunkContents(int index) { - return chunkContents_.get(index); + public java.util.List + getSourcesBuilderList() { + return internalGetSourcesFieldBuilder().getBuilderList(); } - /** - * - * - *
            -       * List of cited chunk contents derived from document content.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContentOrBuilder - getChunkContentsOrBuilder(int index) { - return chunkContents_.get(index); + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.CitationSource, + com.google.cloud.discoveryengine.v1beta.Answer.CitationSource.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.CitationSourceOrBuilder> + internalGetSourcesFieldBuilder() { + if (sourcesBuilder_ == null) { + sourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.CitationSource, + com.google.cloud.discoveryengine.v1beta.Answer.CitationSource.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.CitationSourceOrBuilder>( + sources_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + sources_ = null; + } + return sourcesBuilder_; } - public static final int STRUCT_DATA_FIELD_NUMBER = 5; - private com.google.protobuf.Struct structData_; + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.GroundingSupport) + } - /** - * - * - *
            -       * The structured JSON metadata for the document.
            -       * It is populated from the struct data from the Chunk in search result.
            -       * 
            - * - * .google.protobuf.Struct struct_data = 5; - * - * @return Whether the structData field is set. - */ - @java.lang.Override - public boolean hasStructData() { - return ((bitField0_ & 0x00000001) != 0); - } + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.GroundingSupport) + private static final com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport + DEFAULT_INSTANCE; - /** - * - * - *
            -       * The structured JSON metadata for the document.
            -       * It is populated from the struct data from the Chunk in search result.
            -       * 
            - * - * .google.protobuf.Struct struct_data = 5; - * - * @return The structData. - */ - @java.lang.Override - public com.google.protobuf.Struct getStructData() { - return structData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : structData_; - } + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport(); + } - /** - * - * - *
            -       * The structured JSON metadata for the document.
            -       * It is populated from the struct data from the Chunk in search result.
            -       * 
            - * - * .google.protobuf.Struct struct_data = 5; - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { - return structData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : structData_; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private byte memoizedIsInitialized = -1; + 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(); + } + }; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static com.google.protobuf.Parser parser() { + return PARSER; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, document_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, title_); - } - for (int i = 0; i < chunkContents_.size(); i++) { - output.writeMessage(4, chunkContents_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getStructData()); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public interface ReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Reference) + com.google.protobuf.MessageOrBuilder { - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, document_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, title_); - } - for (int i = 0; i < chunkContents_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, chunkContents_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStructData()); - } - 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.v1beta.Answer.Reference.UnstructuredDocumentInfo)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo other = - (com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) obj; + /** + * + * + *
            +     * Unstructured document information.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; + * + * + * @return Whether the unstructuredDocumentInfo field is set. + */ + boolean hasUnstructuredDocumentInfo(); - if (!getDocument().equals(other.getDocument())) return false; - if (!getUri().equals(other.getUri())) return false; - if (!getTitle().equals(other.getTitle())) return false; - if (!getChunkContentsList().equals(other.getChunkContentsList())) return false; - if (hasStructData() != other.hasStructData()) return false; - if (hasStructData()) { - if (!getStructData().equals(other.getStructData())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + /** + * + * + *
            +     * Unstructured document information.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; + * + * + * @return The unstructuredDocumentInfo. + */ + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + getUnstructuredDocumentInfo(); - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; - hash = (53 * hash) + getDocument().hashCode(); - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - if (getChunkContentsCount() > 0) { - hash = (37 * hash) + CHUNK_CONTENTS_FIELD_NUMBER; - hash = (53 * hash) + getChunkContentsList().hashCode(); - } - if (hasStructData()) { - hash = (37 * hash) + STRUCT_DATA_FIELD_NUMBER; - hash = (53 * hash) + getStructData().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * + * + *
            +     * Unstructured document information.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfoOrBuilder + getUnstructuredDocumentInfoOrBuilder(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +     * Chunk information.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * + * @return Whether the chunkInfo field is set. + */ + boolean hasChunkInfo(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +     * Chunk information.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * + * @return The chunkInfo. + */ + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo getChunkInfo(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +     * Chunk information.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + */ + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfoOrBuilder + getChunkInfoOrBuilder(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +     * Structured document information.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; + * + * + * @return Whether the structuredDocumentInfo field is set. + */ + boolean hasStructuredDocumentInfo(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +     * Structured document information.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; + * + * + * @return The structuredDocumentInfo. + */ + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + getStructuredDocumentInfo(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +     * Structured document information.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; + * + */ + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfoOrBuilder + getStructuredDocumentInfoOrBuilder(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ContentCase getContentCase(); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +   * Reference.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Reference} + */ + public static final class Reference extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Reference) + ReferenceOrBuilder { + private static final long serialVersionUID = 0L; - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Reference"); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + // Use Reference.newBuilder() to construct. + private Reference(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + private Reference() {} - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_descriptor; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.class, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder.class); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public interface UnstructuredDocumentInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) + com.google.protobuf.MessageOrBuilder { - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
            +       * Document resource name.
            +       * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The document. + */ + java.lang.String getDocument(); - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
            +       * Document resource name.
            +       * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for document. + */ + com.google.protobuf.ByteString getDocumentBytes(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
            +       * URI for the document.
            +       * 
            + * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); /** * * *
            -       * Unstructured document information.
            +       * URI for the document.
                    * 
            * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo} + * string uri = 2; + * + * @return The bytes for uri. */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) - com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_descriptor; - } + com.google.protobuf.ByteString getUriBytes(); - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .class, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .Builder.class); - } + /** + * + * + *
            +       * Title.
            +       * 
            + * + * string title = 3; + * + * @return The title. + */ + java.lang.String getTitle(); - // Construct using - // com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + /** + * + * + *
            +       * Title.
            +       * 
            + * + * string title = 3; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + /** + * + * + *
            +       * List of cited chunk contents derived from document content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent> + getChunkContentsList(); - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetChunkContentsFieldBuilder(); - internalGetStructDataFieldBuilder(); - } - } + /** + * + * + *
            +       * List of cited chunk contents derived from document content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent + getChunkContents(int index); - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - document_ = ""; - uri_ = ""; - title_ = ""; - if (chunkContentsBuilder_ == null) { - chunkContents_ = java.util.Collections.emptyList(); - } else { - chunkContents_ = null; - chunkContentsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - structData_ = null; - if (structDataBuilder_ != null) { - structDataBuilder_.dispose(); - structDataBuilder_ = null; - } - return this; - } + /** + * + * + *
            +       * List of cited chunk contents derived from document content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + int getChunkContentsCount(); - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_descriptor; - } + /** + * + * + *
            +       * List of cited chunk contents derived from document content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContentOrBuilder> + getChunkContentsOrBuilderList(); - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .getDefaultInstance(); - } + /** + * + * + *
            +       * List of cited chunk contents derived from document content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContentOrBuilder + getChunkContentsOrBuilder(int index); - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - build() { - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + /** + * + * + *
            +       * The structured JSON metadata for the document.
            +       * It is populated from the struct data from the Chunk in search result.
            +       * 
            + * + * .google.protobuf.Struct struct_data = 5; + * + * @return Whether the structData field is set. + */ + boolean hasStructData(); - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - buildPartial() { - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo result = - new com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo( - this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + /** + * + * + *
            +       * The structured JSON metadata for the document.
            +       * It is populated from the struct data from the Chunk in search result.
            +       * 
            + * + * .google.protobuf.Struct struct_data = 5; + * + * @return The structData. + */ + com.google.protobuf.Struct getStructData(); - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - result) { - if (chunkContentsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - chunkContents_ = java.util.Collections.unmodifiableList(chunkContents_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.chunkContents_ = chunkContents_; - } else { - result.chunkContents_ = chunkContentsBuilder_.build(); - } - } + /** + * + * + *
            +       * The structured JSON metadata for the document.
            +       * It is populated from the struct data from the Chunk in search result.
            +       * 
            + * + * .google.protobuf.Struct struct_data = 5; + */ + com.google.protobuf.StructOrBuilder getStructDataOrBuilder(); + } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.document_ = document_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.uri_ = uri_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.title_ = title_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.structData_ = - structDataBuilder_ == null ? structData_ : structDataBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } + /** + * + * + *
            +     * Unstructured document information.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo} + */ + public static final class UnstructuredDocumentInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) + UnstructuredDocumentInfoOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) - other); - } else { - super.mergeFrom(other); - return this; - } - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UnstructuredDocumentInfo"); + } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .getDefaultInstance()) return this; - if (!other.getDocument().isEmpty()) { - document_ = other.document_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (chunkContentsBuilder_ == null) { - if (!other.chunkContents_.isEmpty()) { - if (chunkContents_.isEmpty()) { - chunkContents_ = other.chunkContents_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureChunkContentsIsMutable(); - chunkContents_.addAll(other.chunkContents_); - } - onChanged(); - } - } else { - if (!other.chunkContents_.isEmpty()) { - if (chunkContentsBuilder_.isEmpty()) { - chunkContentsBuilder_.dispose(); - chunkContentsBuilder_ = null; - chunkContents_ = other.chunkContents_; - bitField0_ = (bitField0_ & ~0x00000008); - chunkContentsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetChunkContentsFieldBuilder() - : null; - } else { - chunkContentsBuilder_.addAllMessages(other.chunkContents_); - } - } - } - if (other.hasStructData()) { - mergeStructData(other.getStructData()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + // Use UnstructuredDocumentInfo.newBuilder() to construct. + private UnstructuredDocumentInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + private UnstructuredDocumentInfo() { + document_ = ""; + uri_ = ""; + title_ = ""; + chunkContents_ = java.util.Collections.emptyList(); + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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: - { - document_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent - m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent.parser(), - extensionRegistry); - if (chunkContentsBuilder_ == null) { - ensureChunkContentsIsMutable(); - chunkContents_.add(m); - } else { - chunkContentsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - input.readMessage( - internalGetStructDataFieldBuilder().getBuilder(), extensionRegistry); - 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_; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_descriptor; + } - private java.lang.Object document_ = ""; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .class, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .Builder.class); + } - /** - * - * - *
            -         * Document resource name.
            -         * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The document. - */ - public java.lang.String getDocument() { - java.lang.Object ref = document_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - document_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + public interface ChunkContentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent) + com.google.protobuf.MessageOrBuilder { /** * * *
            -         * Document resource name.
            +         * Chunk textual content.
                      * 
            * - * string document = 1 [(.google.api.resource_reference) = { ... } + * string content = 1; * - * @return The bytes for document. + * @return The content. */ - public com.google.protobuf.ByteString getDocumentBytes() { - java.lang.Object ref = document_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - document_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + java.lang.String getContent(); /** * * *
            -         * Document resource name.
            +         * Chunk textual content.
                      * 
            * - * string document = 1 [(.google.api.resource_reference) = { ... } + * string content = 1; * - * @param value The document to set. - * @return This builder for chaining. + * @return The bytes for content. */ - public Builder setDocument(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - document_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + com.google.protobuf.ByteString getContentBytes(); /** * * *
            -         * Document resource name.
            +         * Page identifier.
                      * 
            * - * string document = 1 [(.google.api.resource_reference) = { ... } + * string page_identifier = 2; * - * @return This builder for chaining. + * @return The pageIdentifier. */ - public Builder clearDocument() { - document_ = getDefaultInstance().getDocument(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } + java.lang.String getPageIdentifier(); /** * * *
            -         * Document resource name.
            +         * Page identifier.
                      * 
            * - * string document = 1 [(.google.api.resource_reference) = { ... } + * string page_identifier = 2; * - * @param value The bytes for document to set. - * @return This builder for chaining. + * @return The bytes for pageIdentifier. */ - public Builder setDocumentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - document_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object uri_ = ""; + com.google.protobuf.ByteString getPageIdentifierBytes(); /** * * *
            -         * URI for the document.
            +         * The relevance of the chunk for a given query. Values range from 0.0
            +         * (completely irrelevant) to 1.0 (completely relevant).
            +         * This value is for informational purpose only. It may change for
            +         * the same query and chunk at any time due to a model retraining or
            +         * change in implementation.
                      * 
            * - * string uri = 2; + * optional float relevance_score = 3; * - * @return The uri. + * @return Whether the relevanceScore field is set. */ - 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; - } - } + boolean hasRelevanceScore(); /** * * *
            -         * URI for the document.
            +         * The relevance of the chunk for a given query. Values range from 0.0
            +         * (completely irrelevant) to 1.0 (completely relevant).
            +         * This value is for informational purpose only. It may change for
            +         * the same query and chunk at any time due to a model retraining or
            +         * change in implementation.
                      * 
            * - * string uri = 2; + * optional float relevance_score = 3; * - * @return The bytes for uri. + * @return The relevanceScore. */ - 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; - } - } + float getRelevanceScore(); /** * * *
            -         * URI for the document.
            +         * Output only. Stores indexes of blobattachments linked to this chunk.
                      * 
            * - * string uri = 2; + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The uri to set. - * @return This builder for chaining. + * @return A list containing the blobAttachmentIndexes. */ - public Builder setUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - uri_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + java.util.List getBlobAttachmentIndexesList(); /** * * *
            -         * URI for the document.
            +         * Output only. Stores indexes of blobattachments linked to this chunk.
                      * 
            * - * string uri = 2; + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return This builder for chaining. + * @return The count of blobAttachmentIndexes. */ - public Builder clearUri() { - uri_ = getDefaultInstance().getUri(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } + int getBlobAttachmentIndexesCount(); /** * * *
            -         * URI for the document.
            +         * Output only. Stores indexes of blobattachments linked to this chunk.
                      * 
            * - * string uri = 2; + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The bytes for uri to set. - * @return This builder for chaining. + * @param index The index of the element to return. + * @return The blobAttachmentIndexes at the given index. */ - public Builder setUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - uri_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + long getBlobAttachmentIndexes(int index); + } - private java.lang.Object title_ = ""; + /** + * + * + *
            +       * Chunk content.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent} + */ + public static final class ChunkContent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent) + ChunkContentOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
            -         * Title.
            +        static {
            +          com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
            +              com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
            +              /* major= */ 4,
            +              /* minor= */ 33,
            +              /* patch= */ 2,
            +              /* suffix= */ "",
            +              "ChunkContent");
            +        }
            +
            +        // Use ChunkContent.newBuilder() to construct.
            +        private ChunkContent(com.google.protobuf.GeneratedMessage.Builder builder) {
            +          super(builder);
            +        }
            +
            +        private ChunkContent() {
            +          content_ = "";
            +          pageIdentifier_ = "";
            +          blobAttachmentIndexes_ = emptyLongList();
            +        }
            +
            +        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            +          return com.google.cloud.discoveryengine.v1beta.AnswerProto
            +              .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_ChunkContent_descriptor;
            +        }
            +
            +        @java.lang.Override
            +        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
            +            internalGetFieldAccessorTable() {
            +          return com.google.cloud.discoveryengine.v1beta.AnswerProto
            +              .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_ChunkContent_fieldAccessorTable
            +              .ensureFieldAccessorsInitialized(
            +                  com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo
            +                      .ChunkContent.class,
            +                  com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo
            +                      .ChunkContent.Builder.class);
            +        }
            +
            +        private int bitField0_;
            +        public static final int CONTENT_FIELD_NUMBER = 1;
            +
            +        @SuppressWarnings("serial")
            +        private volatile java.lang.Object content_ = "";
            +
            +        /**
            +         *
            +         *
            +         * 
            +         * Chunk textual content.
                      * 
            * - * string title = 3; + * string content = 1; * - * @return The title. + * @return The content. */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { + @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(); - title_ = s; + content_ = s; return s; - } else { - return (java.lang.String) ref; } } @@ -5113,3325 +4921,2722 @@ public java.lang.String getTitle() { * * *
            -         * Title.
            +         * Chunk textual content.
                      * 
            * - * string title = 3; + * string content = 1; * - * @return The bytes for title. + * @return The bytes for content. */ - public com.google.protobuf.ByteString getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { + @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); - title_ = b; + content_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + public static final int PAGE_IDENTIFIER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageIdentifier_ = ""; + /** * * *
            -         * Title.
            +         * Page identifier.
                      * 
            * - * string title = 3; + * string page_identifier = 2; * - * @param value The title to set. - * @return This builder for chaining. + * @return The pageIdentifier. */ - public Builder setTitle(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public java.lang.String getPageIdentifier() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageIdentifier_ = s; + return s; } - title_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; } /** * * *
            -         * Title.
            +         * Page identifier.
                      * 
            * - * string title = 3; + * string page_identifier = 2; * - * @return This builder for chaining. + * @return The bytes for pageIdentifier. */ - public Builder clearTitle() { - title_ = getDefaultInstance().getTitle(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; + @java.lang.Override + public com.google.protobuf.ByteString getPageIdentifierBytes() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageIdentifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + public static final int RELEVANCE_SCORE_FIELD_NUMBER = 3; + private float relevanceScore_ = 0F; + /** * * *
            -         * Title.
            +         * The relevance of the chunk for a given query. Values range from 0.0
            +         * (completely irrelevant) to 1.0 (completely relevant).
            +         * This value is for informational purpose only. It may change for
            +         * the same query and chunk at any time due to a model retraining or
            +         * change in implementation.
                      * 
            * - * string title = 3; + * optional float relevance_score = 3; * - * @param value The bytes for title to set. - * @return This builder for chaining. + * @return Whether the relevanceScore field is set. */ - public Builder setTitleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - title_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent> - chunkContents_ = java.util.Collections.emptyList(); - - private void ensureChunkContentsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - chunkContents_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent>(chunkContents_); - bitField0_ |= 0x00000008; - } + @java.lang.Override + public boolean hasRelevanceScore() { + return ((bitField0_ & 0x00000001) != 0); } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContentOrBuilder> - chunkContentsBuilder_; - /** * * *
            -         * List of cited chunk contents derived from document content.
            +         * The relevance of the chunk for a given query. Values range from 0.0
            +         * (completely irrelevant) to 1.0 (completely relevant).
            +         * This value is for informational purpose only. It may change for
            +         * the same query and chunk at any time due to a model retraining or
            +         * change in implementation.
                      * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * + * optional float relevance_score = 3; + * + * @return The relevanceScore. */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent> - getChunkContentsList() { - if (chunkContentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(chunkContents_); - } else { - return chunkContentsBuilder_.getMessageList(); - } + @java.lang.Override + public float getRelevanceScore() { + return relevanceScore_; } + public static final int BLOB_ATTACHMENT_INDEXES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.LongList blobAttachmentIndexes_ = emptyLongList(); + /** * * *
            -         * List of cited chunk contents derived from document content.
            +         * Output only. Stores indexes of blobattachments linked to this chunk.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return A list containing the blobAttachmentIndexes. */ - public int getChunkContentsCount() { - if (chunkContentsBuilder_ == null) { - return chunkContents_.size(); - } else { - return chunkContentsBuilder_.getCount(); - } + @java.lang.Override + public java.util.List getBlobAttachmentIndexesList() { + return blobAttachmentIndexes_; } /** * * *
            -         * List of cited chunk contents derived from document content.
            +         * Output only. Stores indexes of blobattachments linked to this chunk.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The count of blobAttachmentIndexes. */ - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent - getChunkContents(int index) { - if (chunkContentsBuilder_ == null) { - return chunkContents_.get(index); - } else { - return chunkContentsBuilder_.getMessage(index); - } + public int getBlobAttachmentIndexesCount() { + return blobAttachmentIndexes_.size(); } /** * * *
            -         * List of cited chunk contents derived from document content.
            +         * Output only. Stores indexes of blobattachments linked to this chunk.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param index The index of the element to return. + * @return The blobAttachmentIndexes at the given index. */ - public Builder setChunkContents( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent - value) { - if (chunkContentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChunkContentsIsMutable(); - chunkContents_.set(index, value); - onChanged(); - } else { - chunkContentsBuilder_.setMessage(index, value); - } - return this; + public long getBlobAttachmentIndexes(int index) { + return blobAttachmentIndexes_.getLong(index); } - /** - * - * - *
            -         * List of cited chunk contents derived from document content.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - public Builder setChunkContents( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent.Builder - builderForValue) { - if (chunkContentsBuilder_ == null) { - ensureChunkContentsIsMutable(); - chunkContents_.set(index, builderForValue.build()); - onChanged(); - } else { - chunkContentsBuilder_.setMessage(index, builderForValue.build()); - } - return this; + private int blobAttachmentIndexesMemoizedSerializedSize = -1; + + 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; } - /** - * - * - *
            -         * List of cited chunk contents derived from document content.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - public Builder addChunkContents( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent - value) { - if (chunkContentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChunkContentsIsMutable(); - chunkContents_.add(value); - onChanged(); - } else { - chunkContentsBuilder_.addMessage(value); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, content_); } - return this; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, pageIdentifier_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(3, relevanceScore_); + } + if (getBlobAttachmentIndexesList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(blobAttachmentIndexesMemoizedSerializedSize); + } + for (int i = 0; i < blobAttachmentIndexes_.size(); i++) { + output.writeInt64NoTag(blobAttachmentIndexes_.getLong(i)); + } + getUnknownFields().writeTo(output); } - /** - * - * - *
            -         * List of cited chunk contents derived from document content.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - public Builder addChunkContents( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent - value) { - if (chunkContentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, content_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, pageIdentifier_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, relevanceScore_); + } + { + int dataSize = 0; + for (int i = 0; i < blobAttachmentIndexes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag( + blobAttachmentIndexes_.getLong(i)); } - ensureChunkContentsIsMutable(); - chunkContents_.add(index, value); - onChanged(); - } else { - chunkContentsBuilder_.addMessage(index, value); + size += dataSize; + if (!getBlobAttachmentIndexesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + blobAttachmentIndexesMemoizedSerializedSize = dataSize; } - return this; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } - /** - * - * - *
            -         * List of cited chunk contents derived from document content.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - public Builder addChunkContents( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent.Builder - builderForValue) { - if (chunkContentsBuilder_ == null) { - ensureChunkContentsIsMutable(); - chunkContents_.add(builderForValue.build()); - onChanged(); - } else { - chunkContentsBuilder_.addMessage(builderForValue.build()); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - return this; - } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent + other = + (com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent) + obj; - /** - * - * - *
            -         * List of cited chunk contents derived from document content.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - public Builder addChunkContents( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent.Builder - builderForValue) { - if (chunkContentsBuilder_ == null) { - ensureChunkContentsIsMutable(); - chunkContents_.add(index, builderForValue.build()); - onChanged(); - } else { - chunkContentsBuilder_.addMessage(index, builderForValue.build()); + if (!getContent().equals(other.getContent())) return false; + if (!getPageIdentifier().equals(other.getPageIdentifier())) return false; + if (hasRelevanceScore() != other.hasRelevanceScore()) return false; + if (hasRelevanceScore()) { + if (java.lang.Float.floatToIntBits(getRelevanceScore()) + != java.lang.Float.floatToIntBits(other.getRelevanceScore())) return false; } - return this; + if (!getBlobAttachmentIndexesList().equals(other.getBlobAttachmentIndexesList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - /** - * - * - *
            -         * List of cited chunk contents derived from document content.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - public Builder addAllChunkContents( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent> - values) { - if (chunkContentsBuilder_ == null) { - ensureChunkContentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, chunkContents_); - onChanged(); - } else { - chunkContentsBuilder_.addAllMessages(values); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - return this; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (37 * hash) + PAGE_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getPageIdentifier().hashCode(); + if (hasRelevanceScore()) { + hash = (37 * hash) + RELEVANCE_SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRelevanceScore()); + } + if (getBlobAttachmentIndexesCount() > 0) { + hash = (37 * hash) + BLOB_ATTACHMENT_INDEXES_FIELD_NUMBER; + hash = (53 * hash) + getBlobAttachmentIndexesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - /** - * - * - *
            -         * List of cited chunk contents derived from document content.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - public Builder clearChunkContents() { - if (chunkContentsBuilder_ == null) { - chunkContents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - chunkContentsBuilder_.clear(); - } - return this; + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * - * - *
            -         * List of cited chunk contents derived from document content.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - public Builder removeChunkContents(int index) { - if (chunkContentsBuilder_ == null) { - ensureChunkContentsIsMutable(); - chunkContents_.remove(index); - onChanged(); - } else { - chunkContentsBuilder_.remove(index); - } - return this; + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - * - * - *
            -         * List of cited chunk contents derived from document content.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent.Builder - getChunkContentsBuilder(int index) { - return internalGetChunkContentsFieldBuilder().getBuilder(index); + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * - * - *
            -         * List of cited chunk contents derived from document content.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContentOrBuilder - getChunkContentsOrBuilder(int index) { - if (chunkContentsBuilder_ == null) { - return chunkContents_.get(index); - } else { - return chunkContentsBuilder_.getMessageOrBuilder(index); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - * - * - *
            -         * List of cited chunk contents derived from document content.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContentOrBuilder> - getChunkContentsOrBuilderList() { - if (chunkContentsBuilder_ != null) { - return chunkContentsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(chunkContents_); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * - * - *
            -         * List of cited chunk contents derived from document content.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent.Builder - addChunkContentsBuilder() { - return internalGetChunkContentsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent.getDefaultInstance()); + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - * - * - *
            -         * List of cited chunk contents derived from document content.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent.Builder - addChunkContentsBuilder(int index) { - return internalGetChunkContentsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent.getDefaultInstance()); + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - /** - * - * - *
            -         * List of cited chunk contents derived from document content.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * - */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent.Builder> - getChunkContentsBuilderList() { - return internalGetChunkContentsFieldBuilder().getBuilderList(); + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContent.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .ChunkContentOrBuilder> - internalGetChunkContentsFieldBuilder() { - if (chunkContentsBuilder_ == null) { - chunkContentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent, - com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContent.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.ChunkContentOrBuilder>( - chunkContents_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - chunkContents_ = null; - } - return chunkContentsBuilder_; + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - private com.google.protobuf.Struct structData_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - structDataBuilder_; + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * * *
            -         * The structured JSON metadata for the document.
            -         * It is populated from the struct data from the Chunk in search result.
            +         * Chunk content.
                      * 
            * - * .google.protobuf.Struct struct_data = 5; - * - * @return Whether the structData field is set. + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent} */ - public boolean hasStructData() { - return ((bitField0_ & 0x00000010) != 0); - } - - /** - * - * - *
            -         * The structured JSON metadata for the document.
            -         * It is populated from the struct data from the Chunk in search result.
            -         * 
            - * - * .google.protobuf.Struct struct_data = 5; - * - * @return The structData. - */ - public com.google.protobuf.Struct getStructData() { - if (structDataBuilder_ == null) { - return structData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : structData_; - } else { - return structDataBuilder_.getMessage(); + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent) + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_ChunkContent_descriptor; } - } - /** - * - * - *
            -         * The structured JSON metadata for the document.
            -         * It is populated from the struct data from the Chunk in search result.
            -         * 
            - * - * .google.protobuf.Struct struct_data = 5; - */ - public Builder setStructData(com.google.protobuf.Struct value) { - if (structDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - structData_ = value; - } else { - structDataBuilder_.setMessage(value); + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_ChunkContent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent.class, + com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent.Builder.class); } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
            -         * The structured JSON metadata for the document.
            -         * It is populated from the struct data from the Chunk in search result.
            -         * 
            - * - * .google.protobuf.Struct struct_data = 5; - */ - public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue) { - if (structDataBuilder_ == null) { - structData_ = builderForValue.build(); - } else { - structDataBuilder_.setMessage(builderForValue.build()); + // Construct using + // com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
            -         * The structured JSON metadata for the document.
            -         * It is populated from the struct data from the Chunk in search result.
            -         * 
            - * - * .google.protobuf.Struct struct_data = 5; - */ - public Builder mergeStructData(com.google.protobuf.Struct value) { - if (structDataBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && structData_ != null - && structData_ != com.google.protobuf.Struct.getDefaultInstance()) { - getStructDataBuilder().mergeFrom(value); - } else { - structData_ = value; - } - } else { - structDataBuilder_.mergeFrom(value); + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + content_ = ""; + pageIdentifier_ = ""; + relevanceScore_ = 0F; + blobAttachmentIndexes_ = emptyLongList(); + return this; } - if (structData_ != null) { - bitField0_ |= 0x00000010; - onChanged(); + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_ChunkContent_descriptor; } - return this; - } - /** - * - * - *
            -         * The structured JSON metadata for the document.
            -         * It is populated from the struct data from the Chunk in search result.
            -         * 
            - * - * .google.protobuf.Struct struct_data = 5; - */ - public Builder clearStructData() { - bitField0_ = (bitField0_ & ~0x00000010); - structData_ = null; - if (structDataBuilder_ != null) { - structDataBuilder_.dispose(); - structDataBuilder_ = null; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent.getDefaultInstance(); } - onChanged(); - return this; - } - /** - * - * - *
            -         * The structured JSON metadata for the document.
            -         * It is populated from the struct data from the Chunk in search result.
            -         * 
            - * - * .google.protobuf.Struct struct_data = 5; - */ - public com.google.protobuf.Struct.Builder getStructDataBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return internalGetStructDataFieldBuilder().getBuilder(); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent + build() { + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * - * - *
            -         * The structured JSON metadata for the document.
            -         * It is populated from the struct data from the Chunk in search result.
            -         * 
            - * - * .google.protobuf.Struct struct_data = 5; - */ - public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { - if (structDataBuilder_ != null) { - return structDataBuilder_.getMessageOrBuilder(); - } else { - return structData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : structData_; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent + result = + new com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; } - } - /** - * - * - *
            -         * The structured JSON metadata for the document.
            -         * It is populated from the struct data from the Chunk in search result.
            -         * 
            - * - * .google.protobuf.Struct struct_data = 5; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - internalGetStructDataFieldBuilder() { - if (structDataBuilder_ == null) { - structDataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getStructData(), getParentForChildren(), isClean()); - structData_ = null; + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageIdentifier_ = pageIdentifier_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.relevanceScore_ = relevanceScore_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + blobAttachmentIndexes_.makeImmutable(); + result.blobAttachmentIndexes_ = blobAttachmentIndexes_; + } + result.bitField0_ |= to_bitField0_; } - return structDataBuilder_; - } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) - } - - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) - private static final com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo(); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent) + other); + } else { + super.mergeFrom(other); + return this; + } + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnstructuredDocumentInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent.getDefaultInstance()) return this; + if (!other.getContent().isEmpty()) { + content_ = other.content_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPageIdentifier().isEmpty()) { + pageIdentifier_ = other.pageIdentifier_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRelevanceScore()) { + setRelevanceScore(other.getRelevanceScore()); + } + if (!other.blobAttachmentIndexes_.isEmpty()) { + if (blobAttachmentIndexes_.isEmpty()) { + blobAttachmentIndexes_ = other.blobAttachmentIndexes_; + blobAttachmentIndexes_.makeImmutable(); + bitField0_ |= 0x00000008; + } else { + ensureBlobAttachmentIndexesIsMutable(); + blobAttachmentIndexes_.addAll(other.blobAttachmentIndexes_); } - return builder.buildPartial(); + onChanged(); } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public interface ChunkInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + pageIdentifier_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 29: + { + relevanceScore_ = input.readFloat(); + bitField0_ |= 0x00000004; + break; + } // case 29 + case 32: + { + long v = input.readInt64(); + ensureBlobAttachmentIndexesIsMutable(); + blobAttachmentIndexes_.addLong(v); + break; + } // case 32 + case 34: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureBlobAttachmentIndexesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + blobAttachmentIndexes_.addLong(input.readInt64()); + } + input.popLimit(limit); + 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; + } - /** - * - * - *
            -       * Chunk resource name.
            -       * 
            - * - * string chunk = 1 [(.google.api.resource_reference) = { ... } - * - * @return The chunk. - */ - java.lang.String getChunk(); + private int bitField0_; - /** - * - * - *
            -       * Chunk resource name.
            -       * 
            - * - * string chunk = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for chunk. - */ - com.google.protobuf.ByteString getChunkBytes(); + private java.lang.Object content_ = ""; - /** - * - * - *
            -       * Chunk textual content.
            -       * 
            - * - * string content = 2; - * - * @return The content. - */ - java.lang.String getContent(); + /** + * + * + *
            +           * Chunk textual content.
            +           * 
            + * + * string content = 1; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * - * - *
            -       * Chunk textual content.
            -       * 
            - * - * string content = 2; - * - * @return The bytes for content. - */ - com.google.protobuf.ByteString getContentBytes(); + /** + * + * + *
            +           * Chunk textual content.
            +           * 
            + * + * string content = 1; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof 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; + } + } - /** - * - * - *
            -       * The relevance of the chunk for a given query. Values range from 0.0
            -       * (completely irrelevant) to 1.0 (completely relevant).
            -       * This value is for informational purpose only. It may change for
            -       * the same query and chunk at any time due to a model retraining or
            -       * change in implementation.
            -       * 
            - * - * optional float relevance_score = 3; - * - * @return Whether the relevanceScore field is set. - */ - boolean hasRelevanceScore(); - - /** - * - * - *
            -       * The relevance of the chunk for a given query. Values range from 0.0
            -       * (completely irrelevant) to 1.0 (completely relevant).
            -       * This value is for informational purpose only. It may change for
            -       * the same query and chunk at any time due to a model retraining or
            -       * change in implementation.
            -       * 
            - * - * optional float relevance_score = 3; - * - * @return The relevanceScore. - */ - float getRelevanceScore(); - - /** - * - * - *
            -       * Document metadata.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; - * - * - * @return Whether the documentMetadata field is set. - */ - boolean hasDocumentMetadata(); + /** + * + * + *
            +           * Chunk textual content.
            +           * 
            + * + * string content = 1; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
            -       * Document metadata.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; - * - * - * @return The documentMetadata. - */ - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - getDocumentMetadata(); + /** + * + * + *
            +           * Chunk textual content.
            +           * 
            + * + * string content = 1; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - /** - * - * - *
            -       * Document metadata.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; - * - */ - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadataOrBuilder - getDocumentMetadataOrBuilder(); - } + /** + * + * + *
            +           * Chunk textual content.
            +           * 
            + * + * string content = 1; + * + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
            -     * Chunk information.
            -     * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo} - */ - public static final class ChunkInfo extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) - ChunkInfoOrBuilder { - private static final long serialVersionUID = 0L; + private java.lang.Object pageIdentifier_ = ""; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "ChunkInfo"); - } + /** + * + * + *
            +           * Page identifier.
            +           * 
            + * + * string page_identifier = 2; + * + * @return The pageIdentifier. + */ + public java.lang.String getPageIdentifier() { + java.lang.Object ref = pageIdentifier_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageIdentifier_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - // Use ChunkInfo.newBuilder() to construct. - private ChunkInfo(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + /** + * + * + *
            +           * Page identifier.
            +           * 
            + * + * string page_identifier = 2; + * + * @return The bytes for pageIdentifier. + */ + public com.google.protobuf.ByteString getPageIdentifierBytes() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageIdentifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private ChunkInfo() { - chunk_ = ""; - content_ = ""; - } + /** + * + * + *
            +           * Page identifier.
            +           * 
            + * + * string page_identifier = 2; + * + * @param value The pageIdentifier to set. + * @return This builder for chaining. + */ + public Builder setPageIdentifier(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageIdentifier_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_descriptor; - } + /** + * + * + *
            +           * Page identifier.
            +           * 
            + * + * string page_identifier = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageIdentifier() { + pageIdentifier_ = getDefaultInstance().getPageIdentifier(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.class, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.Builder.class); - } + /** + * + * + *
            +           * Page identifier.
            +           * 
            + * + * string page_identifier = 2; + * + * @param value The bytes for pageIdentifier to set. + * @return This builder for chaining. + */ + public Builder setPageIdentifierBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageIdentifier_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - public interface DocumentMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata) - com.google.protobuf.MessageOrBuilder { + private float relevanceScore_; - /** - * - * - *
            -         * Document resource name.
            -         * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The document. - */ - java.lang.String getDocument(); + /** + * + * + *
            +           * The relevance of the chunk for a given query. Values range from 0.0
            +           * (completely irrelevant) to 1.0 (completely relevant).
            +           * This value is for informational purpose only. It may change for
            +           * the same query and chunk at any time due to a model retraining or
            +           * change in implementation.
            +           * 
            + * + * optional float relevance_score = 3; + * + * @return Whether the relevanceScore field is set. + */ + @java.lang.Override + public boolean hasRelevanceScore() { + return ((bitField0_ & 0x00000004) != 0); + } - /** - * - * - *
            -         * Document resource name.
            -         * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for document. - */ - com.google.protobuf.ByteString getDocumentBytes(); + /** + * + * + *
            +           * The relevance of the chunk for a given query. Values range from 0.0
            +           * (completely irrelevant) to 1.0 (completely relevant).
            +           * This value is for informational purpose only. It may change for
            +           * the same query and chunk at any time due to a model retraining or
            +           * change in implementation.
            +           * 
            + * + * optional float relevance_score = 3; + * + * @return The relevanceScore. + */ + @java.lang.Override + public float getRelevanceScore() { + return relevanceScore_; + } - /** - * - * - *
            -         * URI for the document.
            -         * 
            - * - * string uri = 2; - * - * @return The uri. - */ - java.lang.String getUri(); + /** + * + * + *
            +           * The relevance of the chunk for a given query. Values range from 0.0
            +           * (completely irrelevant) to 1.0 (completely relevant).
            +           * This value is for informational purpose only. It may change for
            +           * the same query and chunk at any time due to a model retraining or
            +           * change in implementation.
            +           * 
            + * + * optional float relevance_score = 3; + * + * @param value The relevanceScore to set. + * @return This builder for chaining. + */ + public Builder setRelevanceScore(float value) { - /** - * - * - *
            -         * URI for the document.
            -         * 
            - * - * string uri = 2; - * - * @return The bytes for uri. - */ - com.google.protobuf.ByteString getUriBytes(); + relevanceScore_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - /** - * - * - *
            -         * Title.
            -         * 
            - * - * string title = 3; - * - * @return The title. - */ - java.lang.String getTitle(); + /** + * + * + *
            +           * The relevance of the chunk for a given query. Values range from 0.0
            +           * (completely irrelevant) to 1.0 (completely relevant).
            +           * This value is for informational purpose only. It may change for
            +           * the same query and chunk at any time due to a model retraining or
            +           * change in implementation.
            +           * 
            + * + * optional float relevance_score = 3; + * + * @return This builder for chaining. + */ + public Builder clearRelevanceScore() { + bitField0_ = (bitField0_ & ~0x00000004); + relevanceScore_ = 0F; + onChanged(); + return this; + } - /** - * - * - *
            -         * Title.
            -         * 
            - * - * string title = 3; - * - * @return The bytes for title. - */ - com.google.protobuf.ByteString getTitleBytes(); + private com.google.protobuf.Internal.LongList blobAttachmentIndexes_ = emptyLongList(); - /** - * - * - *
            -         * Page identifier.
            -         * 
            - * - * string page_identifier = 4; - * - * @return The pageIdentifier. - */ - java.lang.String getPageIdentifier(); + private void ensureBlobAttachmentIndexesIsMutable() { + if (!blobAttachmentIndexes_.isModifiable()) { + blobAttachmentIndexes_ = makeMutableCopy(blobAttachmentIndexes_); + } + bitField0_ |= 0x00000008; + } - /** - * - * - *
            -         * Page identifier.
            -         * 
            - * - * string page_identifier = 4; - * - * @return The bytes for pageIdentifier. - */ - com.google.protobuf.ByteString getPageIdentifierBytes(); + /** + * + * + *
            +           * Output only. Stores indexes of blobattachments linked to this chunk.
            +           * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the blobAttachmentIndexes. + */ + public java.util.List getBlobAttachmentIndexesList() { + blobAttachmentIndexes_.makeImmutable(); + return blobAttachmentIndexes_; + } - /** - * - * - *
            -         * The structured JSON metadata for the document.
            -         * It is populated from the struct data from the Chunk in search result.
            -         * 
            - * - * .google.protobuf.Struct struct_data = 5; - * - * @return Whether the structData field is set. - */ - boolean hasStructData(); + /** + * + * + *
            +           * Output only. Stores indexes of blobattachments linked to this chunk.
            +           * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of blobAttachmentIndexes. + */ + public int getBlobAttachmentIndexesCount() { + return blobAttachmentIndexes_.size(); + } - /** - * - * - *
            -         * The structured JSON metadata for the document.
            -         * It is populated from the struct data from the Chunk in search result.
            -         * 
            - * - * .google.protobuf.Struct struct_data = 5; - * - * @return The structData. - */ - com.google.protobuf.Struct getStructData(); + /** + * + * + *
            +           * Output only. Stores indexes of blobattachments linked to this chunk.
            +           * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The blobAttachmentIndexes at the given index. + */ + public long getBlobAttachmentIndexes(int index) { + return blobAttachmentIndexes_.getLong(index); + } - /** - * - * - *
            -         * The structured JSON metadata for the document.
            -         * It is populated from the struct data from the Chunk in search result.
            -         * 
            - * - * .google.protobuf.Struct struct_data = 5; - */ - com.google.protobuf.StructOrBuilder getStructDataOrBuilder(); - } + /** + * + * + *
            +           * Output only. Stores indexes of blobattachments linked to this chunk.
            +           * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The blobAttachmentIndexes to set. + * @return This builder for chaining. + */ + public Builder setBlobAttachmentIndexes(int index, long value) { - /** - * - * - *
            -       * Document metadata.
            -       * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata} - */ - public static final class DocumentMetadata extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata) - DocumentMetadataOrBuilder { - private static final long serialVersionUID = 0L; + ensureBlobAttachmentIndexesIsMutable(); + blobAttachmentIndexes_.setLong(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "DocumentMetadata"); - } + /** + * + * + *
            +           * Output only. Stores indexes of blobattachments linked to this chunk.
            +           * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The blobAttachmentIndexes to add. + * @return This builder for chaining. + */ + public Builder addBlobAttachmentIndexes(long value) { - // Use DocumentMetadata.newBuilder() to construct. - private DocumentMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + ensureBlobAttachmentIndexesIsMutable(); + blobAttachmentIndexes_.addLong(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - private DocumentMetadata() { - document_ = ""; - uri_ = ""; - title_ = ""; - pageIdentifier_ = ""; + /** + * + * + *
            +           * Output only. Stores indexes of blobattachments linked to this chunk.
            +           * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The blobAttachmentIndexes to add. + * @return This builder for chaining. + */ + public Builder addAllBlobAttachmentIndexes( + java.lang.Iterable values) { + ensureBlobAttachmentIndexesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blobAttachmentIndexes_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Output only. Stores indexes of blobattachments linked to this chunk.
            +           * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearBlobAttachmentIndexes() { + blobAttachmentIndexes_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent) } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_DocumentMetadata_descriptor; + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent) + private static final com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent(); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_DocumentMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata.class, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata.Builder.class); + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent + getDefaultInstance() { + return DEFAULT_INSTANCE; } - private int bitField0_; - public static final int DOCUMENT_FIELD_NUMBER = 1; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChunkContent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @SuppressWarnings("serial") - private volatile java.lang.Object document_ = ""; + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
            -         * Document resource name.
            -         * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The document. - */ @java.lang.Override - public java.lang.String getDocument() { - java.lang.Object ref = document_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - document_ = s; - return s; - } + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - /** - * - * - *
            -         * Document resource name.
            -         * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for document. - */ @java.lang.Override - public com.google.protobuf.ByteString getDocumentBytes() { - java.lang.Object ref = document_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - document_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - public static final int URI_FIELD_NUMBER = 2; + private int bitField0_; + public static final int DOCUMENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object uri_ = ""; + @SuppressWarnings("serial") + private volatile java.lang.Object document_ = ""; - /** - * - * - *
            -         * URI for the document.
            -         * 
            - * - * 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; - } + /** + * + * + *
            +       * Document resource name.
            +       * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The document. + */ + @java.lang.Override + public java.lang.String getDocument() { + java.lang.Object ref = document_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + document_ = s; + return s; } + } - /** - * - * - *
            -         * URI for the document.
            -         * 
            - * - * 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; - } + /** + * + * + *
            +       * Document resource name.
            +       * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for document. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDocumentBytes() { + java.lang.Object ref = document_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + document_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - public static final int TITLE_FIELD_NUMBER = 3; + public static final int URI_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object title_ = ""; + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; - /** - * - * - *
            -         * Title.
            -         * 
            - * - * string title = 3; - * - * @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; - } + /** + * + * + *
            +       * URI for the document.
            +       * 
            + * + * 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; } + } - /** - * - * - *
            -         * Title.
            -         * 
            - * - * string title = 3; - * - * @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; - } + /** + * + * + *
            +       * URI for the document.
            +       * 
            + * + * 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 PAGE_IDENTIFIER_FIELD_NUMBER = 4; + public static final int TITLE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageIdentifier_ = ""; + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; - /** - * - * - *
            -         * Page identifier.
            -         * 
            - * - * string page_identifier = 4; - * - * @return The pageIdentifier. - */ - @java.lang.Override - public java.lang.String getPageIdentifier() { - java.lang.Object ref = pageIdentifier_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageIdentifier_ = s; - return s; - } + /** + * + * + *
            +       * Title.
            +       * 
            + * + * string title = 3; + * + * @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; } + } - /** - * - * - *
            -         * Page identifier.
            -         * 
            - * - * string page_identifier = 4; - * - * @return The bytes for pageIdentifier. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageIdentifierBytes() { - java.lang.Object ref = pageIdentifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageIdentifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** + * + * + *
            +       * Title.
            +       * 
            + * + * string title = 3; + * + * @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; } + } - public static final int STRUCT_DATA_FIELD_NUMBER = 5; - private com.google.protobuf.Struct structData_; - - /** - * - * - *
            -         * The structured JSON metadata for the document.
            -         * It is populated from the struct data from the Chunk in search result.
            -         * 
            - * - * .google.protobuf.Struct struct_data = 5; - * - * @return Whether the structData field is set. - */ - @java.lang.Override - public boolean hasStructData() { - return ((bitField0_ & 0x00000001) != 0); - } + public static final int CHUNK_CONTENTS_FIELD_NUMBER = 4; - /** - * - * - *
            -         * The structured JSON metadata for the document.
            -         * It is populated from the struct data from the Chunk in search result.
            -         * 
            - * - * .google.protobuf.Struct struct_data = 5; - * - * @return The structData. - */ - @java.lang.Override - public com.google.protobuf.Struct getStructData() { - return structData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : structData_; - } + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent> + chunkContents_; - /** - * - * - *
            -         * The structured JSON metadata for the document.
            -         * It is populated from the struct data from the Chunk in search result.
            -         * 
            - * - * .google.protobuf.Struct struct_data = 5; - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { - return structData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : structData_; - } + /** + * + * + *
            +       * List of cited chunk contents derived from document content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent> + getChunkContentsList() { + return chunkContents_; + } - private byte memoizedIsInitialized = -1; + /** + * + * + *
            +       * List of cited chunk contents derived from document content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContentOrBuilder> + getChunkContentsOrBuilderList() { + return chunkContents_; + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * + * + *
            +       * List of cited chunk contents derived from document content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + @java.lang.Override + public int getChunkContentsCount() { + return chunkContents_.size(); + } - memoizedIsInitialized = 1; - return true; - } + /** + * + * + *
            +       * List of cited chunk contents derived from document content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent + getChunkContents(int index) { + return chunkContents_.get(index); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, document_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, title_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, pageIdentifier_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getStructData()); - } - getUnknownFields().writeTo(output); - } + /** + * + * + *
            +       * List of cited chunk contents derived from document content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContentOrBuilder + getChunkContentsOrBuilder(int index) { + return chunkContents_.get(index); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static final int STRUCT_DATA_FIELD_NUMBER = 5; + private com.google.protobuf.Struct structData_; - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, document_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, title_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pageIdentifier_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStructData()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * + * + *
            +       * The structured JSON metadata for the document.
            +       * It is populated from the struct data from the Chunk in search result.
            +       * 
            + * + * .google.protobuf.Struct struct_data = 5; + * + * @return Whether the structData field is set. + */ + @java.lang.Override + public boolean hasStructData() { + return ((bitField0_ & 0x00000001) != 0); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - other = - (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata) - obj; + /** + * + * + *
            +       * The structured JSON metadata for the document.
            +       * It is populated from the struct data from the Chunk in search result.
            +       * 
            + * + * .google.protobuf.Struct struct_data = 5; + * + * @return The structData. + */ + @java.lang.Override + public com.google.protobuf.Struct getStructData() { + return structData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : structData_; + } - if (!getDocument().equals(other.getDocument())) return false; - if (!getUri().equals(other.getUri())) return false; - if (!getTitle().equals(other.getTitle())) return false; - if (!getPageIdentifier().equals(other.getPageIdentifier())) return false; - if (hasStructData() != other.hasStructData()) return false; - if (hasStructData()) { - if (!getStructData().equals(other.getStructData())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + /** + * + * + *
            +       * The structured JSON metadata for the document.
            +       * It is populated from the struct data from the Chunk in search result.
            +       * 
            + * + * .google.protobuf.Struct struct_data = 5; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { + return structData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : structData_; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; - hash = (53 * hash) + getDocument().hashCode(); - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (37 * hash) + PAGE_IDENTIFIER_FIELD_NUMBER; - hash = (53 * hash) + getPageIdentifier().hashCode(); - if (hasStructData()) { - hash = (37 * hash) + STRUCT_DATA_FIELD_NUMBER; - hash = (53 * hash) + getStructData().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + private byte memoizedIsInitialized = -1; - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + memoizedIsInitialized = 1; + return true; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, document_); } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata - 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.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, title_); } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + for (int i = 0; i < chunkContents_.size(); i++) { + output.writeMessage(4, chunkContents_.get(i)); } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getStructData()); } + getUnknownFields().writeTo(output); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, document_); } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, title_); } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + for (int i = 0; i < chunkContents_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, chunkContents_.get(i)); } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStructData()); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo)) { + return super.equals(obj); } + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo other = + (com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) obj; - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + if (!getDocument().equals(other.getDocument())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getChunkContentsList().equals(other.getChunkContentsList())) return false; + if (hasStructData() != other.hasStructData()) return false; + if (hasStructData()) { + if (!getStructData().equals(other.getStructData())) return false; } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + if (getChunkContentsCount() > 0) { + hash = (37 * hash) + CHUNK_CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getChunkContentsList().hashCode(); } + if (hasStructData()) { + hash = (37 * hash) + STRUCT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getStructData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - * - * - *
            -         * Document metadata.
            -         * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata) - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_DocumentMetadata_descriptor; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_DocumentMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata.class, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata.Builder.class); - } - - // Construct using - // com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetStructDataFieldBuilder(); - } - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo + 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; - document_ = ""; - uri_ = ""; - title_ = ""; - pageIdentifier_ = ""; - structData_ = null; - if (structDataBuilder_ != null) { - structDataBuilder_.dispose(); - structDataBuilder_ = null; - } - return this; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo + 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.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_DocumentMetadata_descriptor; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo + 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.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata.getDefaultInstance(); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - build() { - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo + 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.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - buildPartial() { - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - result = - new com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.document_ = document_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.uri_ = uri_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.title_ = title_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.pageIdentifier_ = pageIdentifier_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.structData_ = - structDataBuilder_ == null ? structData_ : structDataBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata) - other); - } else { - super.mergeFrom(other); - return this; - } - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata.getDefaultInstance()) return this; - if (!other.getDocument().isEmpty()) { - document_ = other.document_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getPageIdentifier().isEmpty()) { - pageIdentifier_ = other.pageIdentifier_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasStructData()) { - mergeStructData(other.getStructData()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - @java.lang.Override - public Builder mergeFrom( + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo + parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - if (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: - { - document_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - pageIdentifier_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage( - internalGetStructDataFieldBuilder().getBuilder(), extensionRegistry); - 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; - } + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - private int bitField0_; + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - private java.lang.Object document_ = ""; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
            -           * Document resource name.
            -           * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The document. - */ - public java.lang.String getDocument() { - java.lang.Object ref = document_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - document_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * - * - *
            -           * Document resource name.
            -           * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for document. - */ - public com.google.protobuf.ByteString getDocumentBytes() { - java.lang.Object ref = document_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - document_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * - * - *
            -           * Document resource name.
            -           * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @param value The document to set. - * @return This builder for chaining. - */ - public Builder setDocument(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - document_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * - * - *
            -           * Document resource name.
            -           * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return This builder for chaining. - */ - public Builder clearDocument() { - document_ = getDefaultInstance().getDocument(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } + /** + * + * + *
            +       * Unstructured document information.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) + com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_descriptor; + } - /** - * - * - *
            -           * Document resource name.
            -           * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @param value The bytes for document to set. - * @return This builder for chaining. - */ - public Builder setDocumentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - document_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .class, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .Builder.class); + } - private java.lang.Object uri_ = ""; + // Construct using + // com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - /** - * - * - *
            -           * URI for the document.
            -           * 
            - * - * 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; - } - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - /** - * - * - *
            -           * URI for the document.
            -           * 
            - * - * 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; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetChunkContentsFieldBuilder(); + internalGetStructDataFieldBuilder(); } + } - /** - * - * - *
            -           * URI for the document.
            -           * 
            - * - * 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; + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + document_ = ""; + uri_ = ""; + title_ = ""; + if (chunkContentsBuilder_ == null) { + chunkContents_ = java.util.Collections.emptyList(); + } else { + chunkContents_ = null; + chunkContentsBuilder_.clear(); } - - /** - * - * - *
            -           * URI for the document.
            -           * 
            - * - * string uri = 2; - * - * @return This builder for chaining. - */ - public Builder clearUri() { - uri_ = getDefaultInstance().getUri(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; + bitField0_ = (bitField0_ & ~0x00000008); + structData_ = null; + if (structDataBuilder_ != null) { + structDataBuilder_.dispose(); + structDataBuilder_ = null; } + return this; + } - /** - * - * - *
            -           * URI for the document.
            -           * 
            - * - * 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; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + build() { + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - private java.lang.Object title_ = ""; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo result = + new com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - /** - * - * - *
            -           * Title.
            -           * 
            - * - * string title = 3; - * - * @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; + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + result) { + if (chunkContentsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + chunkContents_ = java.util.Collections.unmodifiableList(chunkContents_); + bitField0_ = (bitField0_ & ~0x00000008); } + result.chunkContents_ = chunkContents_; + } else { + result.chunkContents_ = chunkContentsBuilder_.build(); } + } - /** - * - * - *
            -           * Title.
            -           * 
            - * - * string title = 3; - * - * @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; - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.document_ = document_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.title_ = title_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.structData_ = + structDataBuilder_ == null ? structData_ : structDataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - /** - * - * - *
            -           * Title.
            -           * 
            - * - * string title = 3; - * - * @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_ |= 0x00000004; - onChanged(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) + other); + } else { + super.mergeFrom(other); return this; } + } - /** - * - * - *
            -           * Title.
            -           * 
            - * - * string title = 3; - * - * @return This builder for chaining. - */ - public Builder clearTitle() { - title_ = getDefaultInstance().getTitle(); - bitField0_ = (bitField0_ & ~0x00000004); + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .getDefaultInstance()) return this; + if (!other.getDocument().isEmpty()) { + document_ = other.document_; + bitField0_ |= 0x00000001; onChanged(); - return this; } - - /** - * - * - *
            -           * Title.
            -           * 
            - * - * string title = 3; - * - * @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; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; bitField0_ |= 0x00000004; onChanged(); - return this; } - - private java.lang.Object pageIdentifier_ = ""; - - /** - * - * - *
            -           * Page identifier.
            -           * 
            - * - * string page_identifier = 4; - * - * @return The pageIdentifier. - */ - public java.lang.String getPageIdentifier() { - java.lang.Object ref = pageIdentifier_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageIdentifier_ = s; - return s; - } else { - return (java.lang.String) ref; + if (chunkContentsBuilder_ == null) { + if (!other.chunkContents_.isEmpty()) { + if (chunkContents_.isEmpty()) { + chunkContents_ = other.chunkContents_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureChunkContentsIsMutable(); + chunkContents_.addAll(other.chunkContents_); + } + onChanged(); } - } - - /** - * - * - *
            -           * Page identifier.
            -           * 
            - * - * string page_identifier = 4; - * - * @return The bytes for pageIdentifier. - */ - public com.google.protobuf.ByteString getPageIdentifierBytes() { - java.lang.Object ref = pageIdentifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageIdentifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + } else { + if (!other.chunkContents_.isEmpty()) { + if (chunkContentsBuilder_.isEmpty()) { + chunkContentsBuilder_.dispose(); + chunkContentsBuilder_ = null; + chunkContents_ = other.chunkContents_; + bitField0_ = (bitField0_ & ~0x00000008); + chunkContentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetChunkContentsFieldBuilder() + : null; + } else { + chunkContentsBuilder_.addAllMessages(other.chunkContents_); + } } } - - /** - * - * - *
            -           * Page identifier.
            -           * 
            - * - * string page_identifier = 4; - * - * @param value The pageIdentifier to set. - * @return This builder for chaining. - */ - public Builder setPageIdentifier(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - pageIdentifier_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; + if (other.hasStructData()) { + mergeStructData(other.getStructData()); } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
            -           * Page identifier.
            -           * 
            - * - * string page_identifier = 4; - * - * @return This builder for chaining. - */ - public Builder clearPageIdentifier() { - pageIdentifier_ = getDefaultInstance().getPageIdentifier(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * - * - *
            -           * Page identifier.
            -           * 
            - * - * string page_identifier = 4; - * - * @param value The bytes for pageIdentifier to set. - * @return This builder for chaining. - */ - public Builder setPageIdentifierBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - pageIdentifier_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return 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 10: + { + document_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent.parser(), + extensionRegistry); + if (chunkContentsBuilder_ == null) { + ensureChunkContentsIsMutable(); + chunkContents_.add(m); + } else { + chunkContentsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetStructDataFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.protobuf.Struct structData_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - structDataBuilder_; + private int bitField0_; - /** - * - * - *
            -           * The structured JSON metadata for the document.
            -           * It is populated from the struct data from the Chunk in search result.
            -           * 
            - * - * .google.protobuf.Struct struct_data = 5; - * - * @return Whether the structData field is set. - */ - public boolean hasStructData() { - return ((bitField0_ & 0x00000010) != 0); + private java.lang.Object document_ = ""; + + /** + * + * + *
            +         * Document resource name.
            +         * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The document. + */ + public java.lang.String getDocument() { + java.lang.Object ref = document_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + document_ = s; + return s; + } else { + return (java.lang.String) ref; } + } - /** - * - * - *
            -           * The structured JSON metadata for the document.
            -           * It is populated from the struct data from the Chunk in search result.
            -           * 
            - * - * .google.protobuf.Struct struct_data = 5; - * - * @return The structData. - */ - public com.google.protobuf.Struct getStructData() { - if (structDataBuilder_ == null) { - return structData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : structData_; - } else { - return structDataBuilder_.getMessage(); - } + /** + * + * + *
            +         * Document resource name.
            +         * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for document. + */ + public com.google.protobuf.ByteString getDocumentBytes() { + java.lang.Object ref = document_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + document_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - /** - * - * - *
            -           * The structured JSON metadata for the document.
            -           * It is populated from the struct data from the Chunk in search result.
            -           * 
            - * - * .google.protobuf.Struct struct_data = 5; - */ - public Builder setStructData(com.google.protobuf.Struct value) { - if (structDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - structData_ = value; - } else { - structDataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; + /** + * + * + *
            +         * Document resource name.
            +         * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The document to set. + * @return This builder for chaining. + */ + public Builder setDocument(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + document_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
            -           * The structured JSON metadata for the document.
            -           * It is populated from the struct data from the Chunk in search result.
            -           * 
            - * - * .google.protobuf.Struct struct_data = 5; - */ - public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue) { - if (structDataBuilder_ == null) { - structData_ = builderForValue.build(); - } else { - structDataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } + /** + * + * + *
            +         * Document resource name.
            +         * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearDocument() { + document_ = getDefaultInstance().getDocument(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - /** - * - * - *
            -           * The structured JSON metadata for the document.
            -           * It is populated from the struct data from the Chunk in search result.
            -           * 
            - * - * .google.protobuf.Struct struct_data = 5; - */ - public Builder mergeStructData(com.google.protobuf.Struct value) { - if (structDataBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && structData_ != null - && structData_ != com.google.protobuf.Struct.getDefaultInstance()) { - getStructDataBuilder().mergeFrom(value); - } else { - structData_ = value; - } - } else { - structDataBuilder_.mergeFrom(value); - } - if (structData_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; + /** + * + * + *
            +         * Document resource name.
            +         * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for document to set. + * @return This builder for chaining. + */ + public Builder setDocumentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + document_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
            -           * The structured JSON metadata for the document.
            -           * It is populated from the struct data from the Chunk in search result.
            -           * 
            - * - * .google.protobuf.Struct struct_data = 5; - */ - public Builder clearStructData() { - bitField0_ = (bitField0_ & ~0x00000010); - structData_ = null; - if (structDataBuilder_ != null) { - structDataBuilder_.dispose(); - structDataBuilder_ = null; - } - onChanged(); - return this; - } + private java.lang.Object uri_ = ""; - /** - * - * - *
            -           * The structured JSON metadata for the document.
            -           * It is populated from the struct data from the Chunk in search result.
            -           * 
            - * - * .google.protobuf.Struct struct_data = 5; - */ - public com.google.protobuf.Struct.Builder getStructDataBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return internalGetStructDataFieldBuilder().getBuilder(); + /** + * + * + *
            +         * URI for the document.
            +         * 
            + * + * 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; } + } - /** - * - * - *
            -           * The structured JSON metadata for the document.
            -           * It is populated from the struct data from the Chunk in search result.
            -           * 
            - * - * .google.protobuf.Struct struct_data = 5; - */ - public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { - if (structDataBuilder_ != null) { - return structDataBuilder_.getMessageOrBuilder(); - } else { - return structData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : structData_; - } + /** + * + * + *
            +         * URI for the document.
            +         * 
            + * + * 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; } + } - /** - * - * - *
            -           * The structured JSON metadata for the document.
            -           * It is populated from the struct data from the Chunk in search result.
            -           * 
            - * - * .google.protobuf.Struct struct_data = 5; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - internalGetStructDataFieldBuilder() { - if (structDataBuilder_ == null) { - structDataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getStructData(), getParentForChildren(), isClean()); - structData_ = null; - } - return structDataBuilder_; + /** + * + * + *
            +         * URI for the document.
            +         * 
            + * + * 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(); } - - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata) + uri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata) - private static final com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata(); + /** + * + * + *
            +         * URI for the document.
            +         * 
            + * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata - getDefaultInstance() { - return DEFAULT_INSTANCE; + /** + * + * + *
            +         * URI for the document.
            +         * 
            + * + * 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 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(); - } - }; + private java.lang.Object title_ = ""; - public static com.google.protobuf.Parser parser() { - return PARSER; + /** + * + * + *
            +         * Title.
            +         * 
            + * + * string title = 3; + * + * @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; + } } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + /** + * + * + *
            +         * Title.
            +         * 
            + * + * string title = 3; + * + * @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; + } } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + /** + * + * + *
            +         * Title.
            +         * 
            + * + * string title = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; } - } - - private int bitField0_; - public static final int CHUNK_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object chunk_ = ""; + /** + * + * + *
            +         * Title.
            +         * 
            + * + * string title = 3; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } - /** - * - * - *
            -       * 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; + /** + * + * + *
            +         * Title.
            +         * 
            + * + * string title = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; } - } - /** - * - * - *
            -       * 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; - } - } + private java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent> + chunkContents_ = java.util.Collections.emptyList(); - public static final int CONTENT_FIELD_NUMBER = 2; + private void ensureChunkContentsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + chunkContents_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent>(chunkContents_); + bitField0_ |= 0x00000008; + } + } - @SuppressWarnings("serial") - private volatile java.lang.Object content_ = ""; + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContentOrBuilder> + chunkContentsBuilder_; - /** - * - * - *
            -       * 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; + /** + * + * + *
            +         * List of cited chunk contents derived from document content.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent> + getChunkContentsList() { + if (chunkContentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(chunkContents_); + } else { + return chunkContentsBuilder_.getMessageList(); + } } - } - /** - * - * - *
            -       * 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; + /** + * + * + *
            +         * List of cited chunk contents derived from document content.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + public int getChunkContentsCount() { + if (chunkContentsBuilder_ == null) { + return chunkContents_.size(); + } else { + return chunkContentsBuilder_.getCount(); + } } - } - - public static final int RELEVANCE_SCORE_FIELD_NUMBER = 3; - private float relevanceScore_ = 0F; - /** - * - * - *
            -       * The relevance of the chunk for a given query. Values range from 0.0
            -       * (completely irrelevant) to 1.0 (completely relevant).
            -       * This value is for informational purpose only. It may change for
            -       * the same query and chunk at any time due to a model retraining or
            -       * change in implementation.
            -       * 
            - * - * optional float relevance_score = 3; - * - * @return Whether the relevanceScore field is set. - */ - @java.lang.Override - public boolean hasRelevanceScore() { - return ((bitField0_ & 0x00000001) != 0); - } + /** + * + * + *
            +         * List of cited chunk contents derived from document content.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent + getChunkContents(int index) { + if (chunkContentsBuilder_ == null) { + return chunkContents_.get(index); + } else { + return chunkContentsBuilder_.getMessage(index); + } + } - /** - * - * - *
            -       * The relevance of the chunk for a given query. Values range from 0.0
            -       * (completely irrelevant) to 1.0 (completely relevant).
            -       * This value is for informational purpose only. It may change for
            -       * the same query and chunk at any time due to a model retraining or
            -       * change in implementation.
            -       * 
            - * - * optional float relevance_score = 3; - * - * @return The relevanceScore. - */ - @java.lang.Override - public float getRelevanceScore() { - return relevanceScore_; - } + /** + * + * + *
            +         * List of cited chunk contents derived from document content.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + public Builder setChunkContents( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent + value) { + if (chunkContentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunkContentsIsMutable(); + chunkContents_.set(index, value); + onChanged(); + } else { + chunkContentsBuilder_.setMessage(index, value); + } + return this; + } - public static final int DOCUMENT_METADATA_FIELD_NUMBER = 4; - private com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - documentMetadata_; + /** + * + * + *
            +         * List of cited chunk contents derived from document content.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + public Builder setChunkContents( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent.Builder + builderForValue) { + if (chunkContentsBuilder_ == null) { + ensureChunkContentsIsMutable(); + chunkContents_.set(index, builderForValue.build()); + onChanged(); + } else { + chunkContentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } - /** - * - * - *
            -       * Document metadata.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; - * - * - * @return Whether the documentMetadata field is set. - */ - @java.lang.Override - public boolean hasDocumentMetadata() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
            -       * Document metadata.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; - * - * - * @return The documentMetadata. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - getDocumentMetadata() { - return documentMetadata_ == null - ? com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - .getDefaultInstance() - : documentMetadata_; - } - - /** - * - * - *
            -       * Document metadata.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadataOrBuilder - getDocumentMetadataOrBuilder() { - return documentMetadata_ == null - ? com.google.cloud.discoveryengine.v1beta.Answer.Reference.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; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(chunk_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, chunk_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, content_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeFloat(3, relevanceScore_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(4, getDocumentMetadata()); + /** + * + * + *
            +         * List of cited chunk contents derived from document content.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + public Builder addChunkContents( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent + value) { + if (chunkContentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunkContentsIsMutable(); + chunkContents_.add(value); + onChanged(); + } else { + chunkContentsBuilder_.addMessage(value); + } + return this; } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(chunk_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, chunk_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, content_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, relevanceScore_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocumentMetadata()); + /** + * + * + *
            +         * List of cited chunk contents derived from document content.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + public Builder addChunkContents( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent + value) { + if (chunkContentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunkContentsIsMutable(); + chunkContents_.add(index, value); + onChanged(); + } else { + chunkContentsBuilder_.addMessage(index, value); + } + return this; } - 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.v1beta.Answer.Reference.ChunkInfo)) { - return super.equals(obj); + /** + * + * + *
            +         * List of cited chunk contents derived from document content.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + public Builder addChunkContents( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent.Builder + builderForValue) { + if (chunkContentsBuilder_ == null) { + ensureChunkContentsIsMutable(); + chunkContents_.add(builderForValue.build()); + onChanged(); + } else { + chunkContentsBuilder_.addMessage(builderForValue.build()); + } + return this; } - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo other = - (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) obj; - if (!getChunk().equals(other.getChunk())) return false; - if (!getContent().equals(other.getContent())) return false; - if (hasRelevanceScore() != other.hasRelevanceScore()) return false; - if (hasRelevanceScore()) { - if (java.lang.Float.floatToIntBits(getRelevanceScore()) - != java.lang.Float.floatToIntBits(other.getRelevanceScore())) return false; - } - if (hasDocumentMetadata() != other.hasDocumentMetadata()) return false; - if (hasDocumentMetadata()) { - if (!getDocumentMetadata().equals(other.getDocumentMetadata())) return false; + /** + * + * + *
            +         * List of cited chunk contents derived from document content.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + public Builder addChunkContents( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent.Builder + builderForValue) { + if (chunkContentsBuilder_ == null) { + ensureChunkContentsIsMutable(); + chunkContents_.add(index, builderForValue.build()); + onChanged(); + } else { + chunkContentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; } - 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) + CHUNK_FIELD_NUMBER; - hash = (53 * hash) + getChunk().hashCode(); - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().hashCode(); - if (hasRelevanceScore()) { - hash = (37 * hash) + RELEVANCE_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRelevanceScore()); - } - if (hasDocumentMetadata()) { - hash = (37 * hash) + DOCUMENT_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getDocumentMetadata().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo 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.v1beta.Answer.Reference.ChunkInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo parseFrom( - 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.v1beta.Answer.Reference.ChunkInfo parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
            -       * Chunk information.
            -       * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.class, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.Builder.class); - } - - // Construct using - // com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * + * + *
            +         * List of cited chunk contents derived from document content.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + public Builder addAllChunkContents( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent> + values) { + if (chunkContentsBuilder_ == null) { + ensureChunkContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, chunkContents_); + onChanged(); + } else { + chunkContentsBuilder_.addAllMessages(values); + } + return this; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetDocumentMetadataFieldBuilder(); + /** + * + * + *
            +         * List of cited chunk contents derived from document content.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + public Builder clearChunkContents() { + if (chunkContentsBuilder_ == null) { + chunkContents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + chunkContentsBuilder_.clear(); } + return this; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - chunk_ = ""; - content_ = ""; - relevanceScore_ = 0F; - documentMetadata_ = null; - if (documentMetadataBuilder_ != null) { - documentMetadataBuilder_.dispose(); - documentMetadataBuilder_ = null; + /** + * + * + *
            +         * List of cited chunk contents derived from document content.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + public Builder removeChunkContents(int index) { + if (chunkContentsBuilder_ == null) { + ensureChunkContentsIsMutable(); + chunkContents_.remove(index); + onChanged(); + } else { + chunkContentsBuilder_.remove(index); } return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_descriptor; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .getDefaultInstance(); + /** + * + * + *
            +         * List of cited chunk contents derived from document content.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent.Builder + getChunkContentsBuilder(int index) { + return internalGetChunkContentsFieldBuilder().getBuilder(index); } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo build() { - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo buildPartial() { - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo result = - new com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.chunk_ = chunk_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.content_ = content_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.relevanceScore_ = relevanceScore_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.documentMetadata_ = - documentMetadataBuilder_ == null - ? documentMetadata_ - : documentMetadataBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo other) { - if (other - == com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .getDefaultInstance()) return this; - if (!other.getChunk().isEmpty()) { - chunk_ = other.chunk_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getContent().isEmpty()) { - content_ = other.content_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasRelevanceScore()) { - setRelevanceScore(other.getRelevanceScore()); - } - if (other.hasDocumentMetadata()) { - mergeDocumentMetadata(other.getDocumentMetadata()); - } - 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: - { - chunk_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - content_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 29: - { - relevanceScore_ = input.readFloat(); - bitField0_ |= 0x00000004; - break; - } // case 29 - case 34: - { - input.readMessage( - internalGetDocumentMetadataFieldBuilder().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 chunk_ = ""; - - /** - * - * - *
            -         * Chunk resource name.
            -         * 
            - * - * string chunk = 1 [(.google.api.resource_reference) = { ... } - * - * @return The chunk. - */ - public java.lang.String getChunk() { - java.lang.Object ref = chunk_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chunk_ = s; - return s; - } else { - return (java.lang.String) ref; + /** + * + * + *
            +         * List of cited chunk contents derived from document content.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContentOrBuilder + getChunkContentsOrBuilder(int index) { + if (chunkContentsBuilder_ == null) { + return chunkContents_.get(index); + } else { + return chunkContentsBuilder_.getMessageOrBuilder(index); } } @@ -8439,22 +7644,22 @@ public java.lang.String getChunk() { * * *
            -         * Chunk resource name.
            +         * List of cited chunk contents derived from document content.
                      * 
            * - * string chunk = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for chunk. + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * */ - public com.google.protobuf.ByteString getChunkBytes() { - java.lang.Object ref = chunk_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - chunk_ = b; - return b; + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContentOrBuilder> + getChunkContentsOrBuilderList() { + if (chunkContentsBuilder_ != null) { + return chunkContentsBuilder_.getMessageOrBuilderList(); } else { - return (com.google.protobuf.ByteString) ref; + return java.util.Collections.unmodifiableList(chunkContents_); } } @@ -8462,149 +7667,152 @@ public com.google.protobuf.ByteString getChunkBytes() { * * *
            -         * Chunk resource name.
            +         * List of cited chunk contents derived from document content.
                      * 
            * - * string chunk = 1 [(.google.api.resource_reference) = { ... } - * - * @param value The chunk to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * */ - public Builder setChunk(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - chunk_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent.Builder + addChunkContentsBuilder() { + return internalGetChunkContentsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent.getDefaultInstance()); } /** * * *
            -         * Chunk resource name.
            +         * List of cited chunk contents derived from document content.
                      * 
            * - * string chunk = 1 [(.google.api.resource_reference) = { ... } - * - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * */ - public Builder clearChunk() { - chunk_ = getDefaultInstance().getChunk(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent.Builder + addChunkContentsBuilder(int index) { + return internalGetChunkContentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent.getDefaultInstance()); } /** * * *
            -         * Chunk resource name.
            +         * List of cited chunk contents derived from document content.
                      * 
            * - * string chunk = 1 [(.google.api.resource_reference) = { ... } - * - * @param value The bytes for chunk to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; + * */ - public Builder setChunkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - chunk_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent.Builder> + getChunkContentsBuilderList() { + return internalGetChunkContentsFieldBuilder().getBuilderList(); } - private java.lang.Object content_ = ""; - - /** - * - * - *
            -         * Chunk textual content.
            -         * 
            - * - * string content = 2; - * - * @return The content. - */ - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } else { - return (java.lang.String) ref; + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContent.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .ChunkContentOrBuilder> + internalGetChunkContentsFieldBuilder() { + if (chunkContentsBuilder_ == null) { + chunkContentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent, + com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContent.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.ChunkContentOrBuilder>( + chunkContents_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + chunkContents_ = null; } + return chunkContentsBuilder_; } + private com.google.protobuf.Struct structData_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + structDataBuilder_; + /** * * *
            -         * Chunk textual content.
            +         * The structured JSON metadata for the document.
            +         * It is populated from the struct data from the Chunk in search result.
                      * 
            * - * string content = 2; + * .google.protobuf.Struct struct_data = 5; * - * @return The bytes for content. + * @return Whether the structData field is set. */ - public com.google.protobuf.ByteString getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof 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 boolean hasStructData() { + return ((bitField0_ & 0x00000010) != 0); } /** * * *
            -         * Chunk textual content.
            +         * The structured JSON metadata for the document.
            +         * It is populated from the struct data from the Chunk in search result.
                      * 
            * - * string content = 2; + * .google.protobuf.Struct struct_data = 5; * - * @param value The content to set. - * @return This builder for chaining. + * @return The structData. */ - public Builder setContent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public com.google.protobuf.Struct getStructData() { + if (structDataBuilder_ == null) { + return structData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structData_; + } else { + return structDataBuilder_.getMessage(); } - content_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; } /** * * *
            -         * Chunk textual content.
            +         * The structured JSON metadata for the document.
            +         * It is populated from the struct data from the Chunk in search result.
                      * 
            * - * string content = 2; - * - * @return This builder for chaining. + * .google.protobuf.Struct struct_data = 5; */ - public Builder clearContent() { - content_ = getDefaultInstance().getContent(); - bitField0_ = (bitField0_ & ~0x00000002); + public Builder setStructData(com.google.protobuf.Struct value) { + if (structDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + structData_ = value; + } else { + structDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -8613,87 +7821,69 @@ public Builder clearContent() { * * *
            -         * Chunk textual content.
            +         * The structured JSON metadata for the document.
            +         * It is populated from the struct data from the Chunk in search result.
                      * 
            * - * string content = 2; - * - * @param value The bytes for content to set. - * @return This builder for chaining. + * .google.protobuf.Struct struct_data = 5; */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue) { + if (structDataBuilder_ == null) { + structData_ = builderForValue.build(); + } else { + structDataBuilder_.setMessage(builderForValue.build()); } - checkByteStringIsUtf8(value); - content_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000010; onChanged(); return this; } - private float relevanceScore_; - - /** - * - * - *
            -         * The relevance of the chunk for a given query. Values range from 0.0
            -         * (completely irrelevant) to 1.0 (completely relevant).
            -         * This value is for informational purpose only. It may change for
            -         * the same query and chunk at any time due to a model retraining or
            -         * change in implementation.
            -         * 
            - * - * optional float relevance_score = 3; - * - * @return Whether the relevanceScore field is set. - */ - @java.lang.Override - public boolean hasRelevanceScore() { - return ((bitField0_ & 0x00000004) != 0); - } - /** * * *
            -         * The relevance of the chunk for a given query. Values range from 0.0
            -         * (completely irrelevant) to 1.0 (completely relevant).
            -         * This value is for informational purpose only. It may change for
            -         * the same query and chunk at any time due to a model retraining or
            -         * change in implementation.
            +         * The structured JSON metadata for the document.
            +         * It is populated from the struct data from the Chunk in search result.
                      * 
            * - * optional float relevance_score = 3; - * - * @return The relevanceScore. + * .google.protobuf.Struct struct_data = 5; */ - @java.lang.Override - public float getRelevanceScore() { - return relevanceScore_; + public Builder mergeStructData(com.google.protobuf.Struct value) { + if (structDataBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && structData_ != null + && structData_ != com.google.protobuf.Struct.getDefaultInstance()) { + getStructDataBuilder().mergeFrom(value); + } else { + structData_ = value; + } + } else { + structDataBuilder_.mergeFrom(value); + } + if (structData_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; } /** * * *
            -         * The relevance of the chunk for a given query. Values range from 0.0
            -         * (completely irrelevant) to 1.0 (completely relevant).
            -         * This value is for informational purpose only. It may change for
            -         * the same query and chunk at any time due to a model retraining or
            -         * change in implementation.
            +         * The structured JSON metadata for the document.
            +         * It is populated from the struct data from the Chunk in search result.
                      * 
            * - * optional float relevance_score = 3; - * - * @param value The relevanceScore to set. - * @return This builder for chaining. + * .google.protobuf.Struct struct_data = 5; */ - public Builder setRelevanceScore(float value) { - - relevanceScore_ = value; - bitField0_ |= 0x00000004; + public Builder clearStructData() { + bitField0_ = (bitField0_ & ~0x00000010); + structData_ = null; + if (structDataBuilder_ != null) { + structDataBuilder_.dispose(); + structDataBuilder_ = null; + } onChanged(); return this; } @@ -8702,280 +7892,88 @@ public Builder setRelevanceScore(float value) { * * *
            -         * The relevance of the chunk for a given query. Values range from 0.0
            -         * (completely irrelevant) to 1.0 (completely relevant).
            -         * This value is for informational purpose only. It may change for
            -         * the same query and chunk at any time due to a model retraining or
            -         * change in implementation.
            +         * The structured JSON metadata for the document.
            +         * It is populated from the struct data from the Chunk in search result.
                      * 
            * - * optional float relevance_score = 3; - * - * @return This builder for chaining. + * .google.protobuf.Struct struct_data = 5; */ - public Builder clearRelevanceScore() { - bitField0_ = (bitField0_ & ~0x00000004); - relevanceScore_ = 0F; + public com.google.protobuf.Struct.Builder getStructDataBuilder() { + bitField0_ |= 0x00000010; onChanged(); - return this; + return internalGetStructDataFieldBuilder().getBuilder(); } - private com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - documentMetadata_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - .Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadataOrBuilder> - documentMetadataBuilder_; - /** * * *
            -         * Document metadata.
            +         * The structured JSON metadata for the document.
            +         * It is populated from the struct data from the Chunk in search result.
                      * 
            * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; - * - * - * @return Whether the documentMetadata field is set. + * .google.protobuf.Struct struct_data = 5; */ - public boolean hasDocumentMetadata() { - return ((bitField0_ & 0x00000008) != 0); + public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { + if (structDataBuilder_ != null) { + return structDataBuilder_.getMessageOrBuilder(); + } else { + return structData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structData_; + } } /** * * *
            -         * Document metadata.
            +         * The structured JSON metadata for the document.
            +         * It is populated from the struct data from the Chunk in search result.
                      * 
            * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; - * - * - * @return The documentMetadata. - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - getDocumentMetadata() { - if (documentMetadataBuilder_ == null) { - return documentMetadata_ == null - ? com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata.getDefaultInstance() - : documentMetadata_; - } else { - return documentMetadataBuilder_.getMessage(); - } - } - - /** - * - * - *
            -         * Document metadata.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; - * - */ - public Builder setDocumentMetadata( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - value) { - if (documentMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - documentMetadata_ = value; - } else { - documentMetadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
            -         * Document metadata.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; - * - */ - public Builder setDocumentMetadata( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - .Builder - builderForValue) { - if (documentMetadataBuilder_ == null) { - documentMetadata_ = builderForValue.build(); - } else { - documentMetadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
            -         * Document metadata.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; - * - */ - public Builder mergeDocumentMetadata( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - value) { - if (documentMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && documentMetadata_ != null - && documentMetadata_ - != com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata.getDefaultInstance()) { - getDocumentMetadataBuilder().mergeFrom(value); - } else { - documentMetadata_ = value; - } - } else { - documentMetadataBuilder_.mergeFrom(value); - } - if (documentMetadata_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - - /** - * - * - *
            -         * Document metadata.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; - * - */ - public Builder clearDocumentMetadata() { - bitField0_ = (bitField0_ & ~0x00000008); - documentMetadata_ = null; - if (documentMetadataBuilder_ != null) { - documentMetadataBuilder_.dispose(); - documentMetadataBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
            -         * Document metadata.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - .Builder - getDocumentMetadataBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetDocumentMetadataFieldBuilder().getBuilder(); - } - - /** - * - * - *
            -         * Document metadata.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadataOrBuilder - getDocumentMetadataOrBuilder() { - if (documentMetadataBuilder_ != null) { - return documentMetadataBuilder_.getMessageOrBuilder(); - } else { - return documentMetadata_ == null - ? com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata.getDefaultInstance() - : documentMetadata_; - } - } - - /** - * - * - *
            -         * Document metadata.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; - * + * .google.protobuf.Struct struct_data = 5; */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata - .Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadataOrBuilder> - internalGetDocumentMetadataFieldBuilder() { - if (documentMetadataBuilder_ == null) { - documentMetadataBuilder_ = + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetStructDataFieldBuilder() { + if (structDataBuilder_ == null) { + structDataBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadata.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .DocumentMetadataOrBuilder>( - getDocumentMetadata(), getParentForChildren(), isClean()); - documentMetadata_ = null; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getStructData(), getParentForChildren(), isClean()); + structData_ = null; } - return documentMetadataBuilder_; + return structDataBuilder_; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) - private static final com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) + private static final com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo(); + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo(); } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo 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 ChunkInfo parsePartialFrom( + public UnstructuredDocumentInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -8995,634 +7993,466 @@ public ChunkInfo 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.discoveryengine.v1beta.Answer.Reference.ChunkInfo + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface StructuredDocumentInfoOrBuilder + public interface ChunkInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) com.google.protobuf.MessageOrBuilder { /** * * *
            -       * Document resource name.
            +       * Chunk resource name.
                    * 
            * - * string document = 1 [(.google.api.resource_reference) = { ... } + * string chunk = 1 [(.google.api.resource_reference) = { ... } * - * @return The document. + * @return The chunk. */ - java.lang.String getDocument(); + java.lang.String getChunk(); /** * * *
            -       * Document resource name.
            +       * Chunk resource name.
                    * 
            * - * string document = 1 [(.google.api.resource_reference) = { ... } + * string chunk = 1 [(.google.api.resource_reference) = { ... } * - * @return The bytes for document. + * @return The bytes for chunk. */ - com.google.protobuf.ByteString getDocumentBytes(); + com.google.protobuf.ByteString getChunkBytes(); /** * * *
            -       * Structured search data.
            +       * Chunk textual content.
                    * 
            * - * .google.protobuf.Struct struct_data = 2; + * string content = 2; * - * @return Whether the structData field is set. + * @return The content. */ - boolean hasStructData(); + java.lang.String getContent(); /** * * *
            -       * Structured search data.
            +       * Chunk textual content.
                    * 
            * - * .google.protobuf.Struct struct_data = 2; + * string content = 2; * - * @return The structData. + * @return The bytes for content. */ - com.google.protobuf.Struct getStructData(); + com.google.protobuf.ByteString getContentBytes(); /** * * *
            -       * Structured search data.
            +       * The relevance of the chunk for a given query. Values range from 0.0
            +       * (completely irrelevant) to 1.0 (completely relevant).
            +       * This value is for informational purpose only. It may change for
            +       * the same query and chunk at any time due to a model retraining or
            +       * change in implementation.
                    * 
            * - * .google.protobuf.Struct struct_data = 2; + * optional float relevance_score = 3; + * + * @return Whether the relevanceScore field is set. */ - com.google.protobuf.StructOrBuilder getStructDataOrBuilder(); - } - - /** - * - * - *
            -     * Structured search information.
            -     * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo} - */ - public static final class StructuredDocumentInfo extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) - StructuredDocumentInfoOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "StructuredDocumentInfo"); - } - - // Use StructuredDocumentInfo.newBuilder() to construct. - private StructuredDocumentInfo(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private StructuredDocumentInfo() { - document_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_StructuredDocumentInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_StructuredDocumentInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - .class, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - .Builder.class); - } - - private int bitField0_; - public static final int DOCUMENT_FIELD_NUMBER = 1; + boolean hasRelevanceScore(); - @SuppressWarnings("serial") - private volatile java.lang.Object document_ = ""; + /** + * + * + *
            +       * The relevance of the chunk for a given query. Values range from 0.0
            +       * (completely irrelevant) to 1.0 (completely relevant).
            +       * This value is for informational purpose only. It may change for
            +       * the same query and chunk at any time due to a model retraining or
            +       * change in implementation.
            +       * 
            + * + * optional float relevance_score = 3; + * + * @return The relevanceScore. + */ + float getRelevanceScore(); /** * * *
            -       * Document resource name.
            +       * Document metadata.
                    * 
            * - * string document = 1 [(.google.api.resource_reference) = { ... } + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; + * * - * @return The document. + * @return Whether the documentMetadata field is set. */ - @java.lang.Override - public java.lang.String getDocument() { - java.lang.Object ref = document_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - document_ = s; - return s; - } - } + boolean hasDocumentMetadata(); /** * * *
            -       * Document resource name.
            +       * Document metadata.
                    * 
            * - * string document = 1 [(.google.api.resource_reference) = { ... } + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; + * * - * @return The bytes for document. + * @return The documentMetadata. */ - @java.lang.Override - public com.google.protobuf.ByteString getDocumentBytes() { - java.lang.Object ref = document_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - document_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + getDocumentMetadata(); - public static final int STRUCT_DATA_FIELD_NUMBER = 2; - private com.google.protobuf.Struct structData_; + /** + * + * + *
            +       * Document metadata.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder(); /** * * *
            -       * Structured search data.
            +       * Output only. Stores indexes of blobattachments linked to this chunk.
                    * 
            * - * .google.protobuf.Struct struct_data = 2; + * + * repeated int64 blob_attachment_indexes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return Whether the structData field is set. + * @return A list containing the blobAttachmentIndexes. */ - @java.lang.Override - public boolean hasStructData() { - return ((bitField0_ & 0x00000001) != 0); - } + java.util.List getBlobAttachmentIndexesList(); /** * * *
            -       * Structured search data.
            +       * Output only. Stores indexes of blobattachments linked to this chunk.
                    * 
            * - * .google.protobuf.Struct struct_data = 2; + * + * repeated int64 blob_attachment_indexes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The structData. + * @return The count of blobAttachmentIndexes. */ - @java.lang.Override - public com.google.protobuf.Struct getStructData() { - return structData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : structData_; - } + int getBlobAttachmentIndexesCount(); /** * * *
            -       * Structured search data.
            +       * Output only. Stores indexes of blobattachments linked to this chunk.
                    * 
            * - * .google.protobuf.Struct struct_data = 2; + * + * repeated int64 blob_attachment_indexes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The blobAttachmentIndexes at the given index. */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { - return structData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : structData_; - } - - private byte memoizedIsInitialized = -1; + long getBlobAttachmentIndexes(int index); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * + * + *
            +     * Chunk information.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo} + */ + public static final class ChunkInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) + ChunkInfoOrBuilder { + private static final long serialVersionUID = 0L; - memoizedIsInitialized = 1; - return true; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ChunkInfo"); } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, document_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getStructData()); - } - getUnknownFields().writeTo(output); + // Use ChunkInfo.newBuilder() to construct. + private ChunkInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private ChunkInfo() { + chunk_ = ""; + content_ = ""; + blobAttachmentIndexes_ = emptyLongList(); + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, document_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStructData()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_descriptor; } @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo other = - (com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) obj; - - if (!getDocument().equals(other.getDocument())) return false; - if (hasStructData() != other.hasStructData()) return false; - if (hasStructData()) { - if (!getStructData().equals(other.getStructData())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.class, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.Builder.class); } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; - hash = (53 * hash) + getDocument().hashCode(); - if (hasStructData()) { - hash = (37 * hash) + STRUCT_DATA_FIELD_NUMBER; - hash = (53 * hash) + getStructData().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public interface DocumentMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata) + com.google.protobuf.MessageOrBuilder { - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +         * Document resource name.
            +         * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The document. + */ + java.lang.String getDocument(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +         * Document resource name.
            +         * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for document. + */ + com.google.protobuf.ByteString getDocumentBytes(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +         * URI for the document.
            +         * 
            + * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +         * URI for the document.
            +         * 
            + * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +         * Title.
            +         * 
            + * + * string title = 3; + * + * @return The title. + */ + java.lang.String getTitle(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +         * Title.
            +         * 
            + * + * string title = 3; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +         * Page identifier.
            +         * 
            + * + * string page_identifier = 4; + * + * @return The pageIdentifier. + */ + java.lang.String getPageIdentifier(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +         * Page identifier.
            +         * 
            + * + * string page_identifier = 4; + * + * @return The bytes for pageIdentifier. + */ + com.google.protobuf.ByteString getPageIdentifierBytes(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + /** + * + * + *
            +         * The structured JSON metadata for the document.
            +         * It is populated from the struct data from the Chunk in search result.
            +         * 
            + * + * .google.protobuf.Struct struct_data = 5; + * + * @return Whether the structData field is set. + */ + boolean hasStructData(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +         * The structured JSON metadata for the document.
            +         * It is populated from the struct data from the Chunk in search result.
            +         * 
            + * + * .google.protobuf.Struct struct_data = 5; + * + * @return The structData. + */ + com.google.protobuf.Struct getStructData(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + /** + * + * + *
            +         * The structured JSON metadata for the document.
            +         * It is populated from the struct data from the Chunk in search result.
            +         * 
            + * + * .google.protobuf.Struct struct_data = 5; + */ + com.google.protobuf.StructOrBuilder getStructDataOrBuilder(); } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +       * Document metadata.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata} + */ + public static final class DocumentMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata) + DocumentMetadataOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DocumentMetadata"); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + // Use DocumentMetadata.newBuilder() to construct. + private DocumentMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + private DocumentMetadata() { + document_ = ""; + uri_ = ""; + title_ = ""; + pageIdentifier_ = ""; + } - /** - * - * - *
            -       * Structured search information.
            -       * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_StructuredDocumentInfo_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_DocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_StructuredDocumentInfo_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_DocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - .class, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - .Builder.class); - } - - // Construct using - // com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetStructDataFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - document_ = ""; - structData_ = null; - if (structDataBuilder_ != null) { - structDataBuilder_.dispose(); - structDataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_StructuredDocumentInfo_descriptor; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - build() { - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - buildPartial() { - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo result = - new com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.document_ = document_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.structData_ = - structDataBuilder_ == null ? structData_ : structDataBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo other) { - if (other - == com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - .getDefaultInstance()) return this; - if (!other.getDocument().isEmpty()) { - document_ = other.document_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasStructData()) { - mergeStructData(other.getStructData()); - } - 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: - { - document_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetStructDataFieldBuilder().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; + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata.class, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata.Builder.class); } private int bitField0_; + public static final int DOCUMENT_FIELD_NUMBER = 1; - private java.lang.Object document_ = ""; + @SuppressWarnings("serial") + private volatile java.lang.Object document_ = ""; /** * @@ -9635,15 +8465,16 @@ public Builder mergeFrom( * * @return The document. */ + @java.lang.Override public java.lang.String getDocument() { java.lang.Object ref = document_; - if (!(ref instanceof java.lang.String)) { + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); document_ = s; return s; - } else { - return (java.lang.String) ref; } } @@ -9658,9 +8489,10 @@ public java.lang.String getDocument() { * * @return The bytes for document. */ + @java.lang.Override public com.google.protobuf.ByteString getDocumentBytes() { java.lang.Object ref = document_; - if (ref instanceof String) { + if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); document_ = b; @@ -9670,109 +8502,85 @@ public com.google.protobuf.ByteString getDocumentBytes() { } } + public static final int URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + /** * * *
            -         * Document resource name.
            +         * URI for the document.
                      * 
            * - * string document = 1 [(.google.api.resource_reference) = { ... } + * string uri = 2; * - * @param value The document to set. - * @return This builder for chaining. + * @return The uri. */ - public Builder setDocument(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + @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; } - document_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
            -         * Document resource name.
            -         * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return This builder for chaining. - */ - public Builder clearDocument() { - document_ = getDefaultInstance().getDocument(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; } /** * * *
            -         * Document resource name.
            +         * URI for the document.
                      * 
            * - * string document = 1 [(.google.api.resource_reference) = { ... } + * string uri = 2; * - * @param value The bytes for document to set. - * @return This builder for chaining. + * @return The bytes for uri. */ - public Builder setDocumentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + @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; } - checkByteStringIsUtf8(value); - document_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; } - private com.google.protobuf.Struct structData_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - structDataBuilder_; + public static final int TITLE_FIELD_NUMBER = 3; - /** - * - * - *
            -         * Structured search data.
            -         * 
            - * - * .google.protobuf.Struct struct_data = 2; - * - * @return Whether the structData field is set. - */ - public boolean hasStructData() { - return ((bitField0_ & 0x00000002) != 0); - } + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; /** * * *
            -         * Structured search data.
            +         * Title.
                      * 
            * - * .google.protobuf.Struct struct_data = 2; + * string title = 3; * - * @return The structData. + * @return The title. */ - public com.google.protobuf.Struct getStructData() { - if (structDataBuilder_ == null) { - return structData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : structData_; + @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 { - return structDataBuilder_.getMessage(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; } } @@ -9780,2346 +8588,2443 @@ public com.google.protobuf.Struct getStructData() { * * *
            -         * Structured search data.
            +         * Title.
                      * 
            * - * .google.protobuf.Struct struct_data = 2; + * string title = 3; + * + * @return The bytes for title. */ - public Builder setStructData(com.google.protobuf.Struct value) { - if (structDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - structData_ = value; + @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 { - structDataBuilder_.setMessage(value); + return (com.google.protobuf.ByteString) ref; } - bitField0_ |= 0x00000002; - onChanged(); - return this; } + public static final int PAGE_IDENTIFIER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageIdentifier_ = ""; + /** * * *
            -         * Structured search data.
            +         * Page identifier.
                      * 
            * - * .google.protobuf.Struct struct_data = 2; + * string page_identifier = 4; + * + * @return The pageIdentifier. */ - public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue) { - if (structDataBuilder_ == null) { - structData_ = builderForValue.build(); + @java.lang.Override + public java.lang.String getPageIdentifier() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - structDataBuilder_.setMessage(builderForValue.build()); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageIdentifier_ = s; + return s; } - bitField0_ |= 0x00000002; - onChanged(); - return this; } /** * * *
            -         * Structured search data.
            +         * Page identifier.
                      * 
            * - * .google.protobuf.Struct struct_data = 2; + * string page_identifier = 4; + * + * @return The bytes for pageIdentifier. */ - public Builder mergeStructData(com.google.protobuf.Struct value) { - if (structDataBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && structData_ != null - && structData_ != com.google.protobuf.Struct.getDefaultInstance()) { - getStructDataBuilder().mergeFrom(value); - } else { - structData_ = value; - } + @java.lang.Override + public com.google.protobuf.ByteString getPageIdentifierBytes() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageIdentifier_ = b; + return b; } else { - structDataBuilder_.mergeFrom(value); - } - if (structData_ != null) { - bitField0_ |= 0x00000002; - onChanged(); + return (com.google.protobuf.ByteString) ref; } - return this; } + public static final int STRUCT_DATA_FIELD_NUMBER = 5; + private com.google.protobuf.Struct structData_; + /** * * *
            -         * Structured search data.
            +         * The structured JSON metadata for the document.
            +         * It is populated from the struct data from the Chunk in search result.
                      * 
            * - * .google.protobuf.Struct struct_data = 2; + * .google.protobuf.Struct struct_data = 5; + * + * @return Whether the structData field is set. */ - public Builder clearStructData() { - bitField0_ = (bitField0_ & ~0x00000002); - structData_ = null; - if (structDataBuilder_ != null) { - structDataBuilder_.dispose(); - structDataBuilder_ = null; - } - onChanged(); - return this; + @java.lang.Override + public boolean hasStructData() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
            -         * Structured search data.
            +         * The structured JSON metadata for the document.
            +         * It is populated from the struct data from the Chunk in search result.
                      * 
            * - * .google.protobuf.Struct struct_data = 2; + * .google.protobuf.Struct struct_data = 5; + * + * @return The structData. */ - public com.google.protobuf.Struct.Builder getStructDataBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetStructDataFieldBuilder().getBuilder(); + @java.lang.Override + public com.google.protobuf.Struct getStructData() { + return structData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structData_; } /** * * *
            -         * Structured search data.
            +         * The structured JSON metadata for the document.
            +         * It is populated from the struct data from the Chunk in search result.
                      * 
            * - * .google.protobuf.Struct struct_data = 2; + * .google.protobuf.Struct struct_data = 5; */ + @java.lang.Override public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { - if (structDataBuilder_ != null) { - return structDataBuilder_.getMessageOrBuilder(); - } else { - return structData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : structData_; - } + return structData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structData_; } - /** - * - * - *
            -         * Structured search data.
            -         * 
            - * - * .google.protobuf.Struct struct_data = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - internalGetStructDataFieldBuilder() { - if (structDataBuilder_ == null) { - structDataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getStructData(), getParentForChildren(), isClean()); - structData_ = null; + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, document_); } - return structDataBuilder_; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, pageIdentifier_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getStructData()); + } + getUnknownFields().writeTo(output); } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) - private static final com.google.cloud.discoveryengine.v1beta.Answer.Reference - .StructuredDocumentInfo - DEFAULT_INSTANCE; + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, document_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pageIdentifier_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getStructData()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + other = + (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata) + obj; - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + if (!getDocument().equals(other.getDocument())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getPageIdentifier().equals(other.getPageIdentifier())) return false; + if (hasStructData() != other.hasStructData()) return false; + if (hasStructData()) { + if (!getStructData().equals(other.getStructData())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StructuredDocumentInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + PAGE_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getPageIdentifier().hashCode(); + if (hasStructData()) { + hash = (37 * hash) + STRUCT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getStructData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata + 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.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private int contentCase_ = 0; + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @SuppressWarnings("serial") - private java.lang.Object content_; + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public enum ContentCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - UNSTRUCTURED_DOCUMENT_INFO(1), - CHUNK_INFO(2), - STRUCTURED_DOCUMENT_INFO(3), - CONTENT_NOT_SET(0); - private final int value; + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - private ContentCase(int value) { - this.value = value; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - /** - * @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 ContentCase valueOf(int value) { - return forNumber(value); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static ContentCase forNumber(int value) { - switch (value) { - case 1: - return UNSTRUCTURED_DOCUMENT_INFO; - case 2: - return CHUNK_INFO; - case 3: - return STRUCTURED_DOCUMENT_INFO; - case 0: - return CONTENT_NOT_SET; - default: - return null; + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - } - public int getNumber() { - return this.value; - } - }; + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - public ContentCase getContentCase() { - return ContentCase.forNumber(contentCase_); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int UNSTRUCTURED_DOCUMENT_INFO_FIELD_NUMBER = 1; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
            -     * Unstructured document information.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; - * - * - * @return Whether the unstructuredDocumentInfo field is set. - */ - @java.lang.Override - public boolean hasUnstructuredDocumentInfo() { - return contentCase_ == 1; - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * - * - *
            -     * Unstructured document information.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; - * - * - * @return The unstructuredDocumentInfo. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - getUnstructuredDocumentInfo() { - if (contentCase_ == 1) { - return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) - content_; - } - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .getDefaultInstance(); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * - * - *
            -     * Unstructured document information.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfoOrBuilder - getUnstructuredDocumentInfoOrBuilder() { - if (contentCase_ == 1) { - return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) - content_; - } - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .getDefaultInstance(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - public static final int CHUNK_INFO_FIELD_NUMBER = 2; + /** + * + * + *
            +         * Document metadata.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata) + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_DocumentMetadata_descriptor; + } - /** - * - * - *
            -     * Chunk information.
            -     * 
            - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; - * - * @return Whether the chunkInfo field is set. - */ - @java.lang.Override - public boolean hasChunkInfo() { - return contentCase_ == 2; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_DocumentMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata.class, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata.Builder.class); + } - /** - * - * - *
            -     * Chunk information.
            -     * 
            - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; - * - * @return The chunkInfo. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo getChunkInfo() { - if (contentCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) content_; - } - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .getDefaultInstance(); - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - /** - * - * - *
            -     * Chunk information.
            -     * 
            - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfoOrBuilder - getChunkInfoOrBuilder() { - if (contentCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) content_; - } - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .getDefaultInstance(); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - public static final int STRUCTURED_DOCUMENT_INFO_FIELD_NUMBER = 3; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStructDataFieldBuilder(); + } + } - /** - * - * - *
            -     * Structured document information.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; - * - * - * @return Whether the structuredDocumentInfo field is set. - */ - @java.lang.Override - public boolean hasStructuredDocumentInfo() { - return contentCase_ == 3; - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + document_ = ""; + uri_ = ""; + title_ = ""; + pageIdentifier_ = ""; + structData_ = null; + if (structDataBuilder_ != null) { + structDataBuilder_.dispose(); + structDataBuilder_ = null; + } + return this; + } - /** - * - * - *
            -     * Structured document information.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; - * - * - * @return The structuredDocumentInfo. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - getStructuredDocumentInfo() { - if (contentCase_ == 3) { - return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) - content_; - } - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - .getDefaultInstance(); - } - - /** - * - * - *
            -     * Structured document information.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfoOrBuilder - getStructuredDocumentInfoOrBuilder() { - if (contentCase_ == 3) { - return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) - content_; - } - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - .getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_DocumentMetadata_descriptor; + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata.getDefaultInstance(); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + build() { + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (contentCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) - content_); - } - if (contentCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) content_); - } - if (contentCase_ == 3) { - output.writeMessage( - 3, - (com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) - content_); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + result = + new com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.document_ = document_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageIdentifier_ = pageIdentifier_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.structData_ = + structDataBuilder_ == null ? structData_ : structDataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - size = 0; - if (contentCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) - content_); - } - if (contentCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) content_); - } - if (contentCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, - (com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) - content_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Answer.Reference)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.Answer.Reference other = - (com.google.cloud.discoveryengine.v1beta.Answer.Reference) obj; + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata.getDefaultInstance()) return this; + if (!other.getDocument().isEmpty()) { + document_ = other.document_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPageIdentifier().isEmpty()) { + pageIdentifier_ = other.pageIdentifier_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasStructData()) { + mergeStructData(other.getStructData()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - if (!getContentCase().equals(other.getContentCase())) return false; - switch (contentCase_) { - case 1: - if (!getUnstructuredDocumentInfo().equals(other.getUnstructuredDocumentInfo())) - return false; - break; - case 2: - if (!getChunkInfo().equals(other.getChunkInfo())) return false; - break; - case 3: - if (!getStructuredDocumentInfo().equals(other.getStructuredDocumentInfo())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (contentCase_) { - case 1: - hash = (37 * hash) + UNSTRUCTURED_DOCUMENT_INFO_FIELD_NUMBER; - hash = (53 * hash) + getUnstructuredDocumentInfo().hashCode(); - break; - case 2: - hash = (37 * hash) + CHUNK_INFO_FIELD_NUMBER; - hash = (53 * hash) + getChunkInfo().hashCode(); - break; - case 3: - hash = (37 * hash) + STRUCTURED_DOCUMENT_INFO_FIELD_NUMBER; - hash = (53 * hash) + getStructuredDocumentInfo().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference 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 mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + document_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + pageIdentifier_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetStructDataFieldBuilder().getBuilder(), extensionRegistry); + 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; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private int bitField0_; - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private java.lang.Object document_ = ""; - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +           * Document resource name.
            +           * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The document. + */ + public java.lang.String getDocument() { + java.lang.Object ref = document_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + document_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +           * Document resource name.
            +           * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for document. + */ + public com.google.protobuf.ByteString getDocumentBytes() { + java.lang.Object ref = document_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + document_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +           * Document resource name.
            +           * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The document to set. + * @return This builder for chaining. + */ + public Builder setDocument(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + document_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +           * Document resource name.
            +           * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearDocument() { + document_ = getDefaultInstance().getDocument(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + /** + * + * + *
            +           * Document resource name.
            +           * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for document to set. + * @return This builder for chaining. + */ + public Builder setDocumentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + document_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + private java.lang.Object uri_ = ""; - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +           * URI for the document.
            +           * 
            + * + * 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; + } + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +           * URI for the document.
            +           * 
            + * + * 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; + } + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + /** + * + * + *
            +           * URI for the document.
            +           * 
            + * + * 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; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
            +           * URI for the document.
            +           * 
            + * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.Reference prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
            +           * URI for the document.
            +           * 
            + * + * 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; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + private java.lang.Object title_ = ""; - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
            +           * Title.
            +           * 
            + * + * string title = 3; + * + * @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; + } + } - /** - * - * - *
            -     * Reference.
            -     * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Reference} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Reference) - com.google.cloud.discoveryengine.v1beta.Answer.ReferenceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_descriptor; - } + /** + * + * + *
            +           * Title.
            +           * 
            + * + * string title = 3; + * + * @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; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.class, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder.class); - } + /** + * + * + *
            +           * Title.
            +           * 
            + * + * string title = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } - // Construct using com.google.cloud.discoveryengine.v1beta.Answer.Reference.newBuilder() - private Builder() {} + /** + * + * + *
            +           * Title.
            +           * 
            + * + * string title = 3; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + /** + * + * + *
            +           * Title.
            +           * 
            + * + * string title = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (unstructuredDocumentInfoBuilder_ != null) { - unstructuredDocumentInfoBuilder_.clear(); - } - if (chunkInfoBuilder_ != null) { - chunkInfoBuilder_.clear(); - } - if (structuredDocumentInfoBuilder_ != null) { - structuredDocumentInfoBuilder_.clear(); - } - contentCase_ = 0; - content_ = null; - return this; - } + private java.lang.Object pageIdentifier_ = ""; - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_descriptor; - } + /** + * + * + *
            +           * Page identifier.
            +           * 
            + * + * string page_identifier = 4; + * + * @return The pageIdentifier. + */ + public java.lang.String getPageIdentifier() { + java.lang.Object ref = pageIdentifier_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageIdentifier_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.getDefaultInstance(); - } + /** + * + * + *
            +           * Page identifier.
            +           * 
            + * + * string page_identifier = 4; + * + * @return The bytes for pageIdentifier. + */ + public com.google.protobuf.ByteString getPageIdentifierBytes() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageIdentifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference build() { - com.google.cloud.discoveryengine.v1beta.Answer.Reference result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + /** + * + * + *
            +           * Page identifier.
            +           * 
            + * + * string page_identifier = 4; + * + * @param value The pageIdentifier to set. + * @return This builder for chaining. + */ + public Builder setPageIdentifier(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageIdentifier_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference buildPartial() { - com.google.cloud.discoveryengine.v1beta.Answer.Reference result = - new com.google.cloud.discoveryengine.v1beta.Answer.Reference(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } + /** + * + * + *
            +           * Page identifier.
            +           * 
            + * + * string page_identifier = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageIdentifier() { + pageIdentifier_ = getDefaultInstance().getPageIdentifier(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } - private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Answer.Reference result) { - int from_bitField0_ = bitField0_; - } + /** + * + * + *
            +           * Page identifier.
            +           * 
            + * + * string page_identifier = 4; + * + * @param value The bytes for pageIdentifier to set. + * @return This builder for chaining. + */ + public Builder setPageIdentifierBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageIdentifier_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - private void buildPartialOneofs( - com.google.cloud.discoveryengine.v1beta.Answer.Reference result) { - result.contentCase_ = contentCase_; - result.content_ = this.content_; - if (contentCase_ == 1 && unstructuredDocumentInfoBuilder_ != null) { - result.content_ = unstructuredDocumentInfoBuilder_.build(); - } - if (contentCase_ == 2 && chunkInfoBuilder_ != null) { - result.content_ = chunkInfoBuilder_.build(); - } - if (contentCase_ == 3 && structuredDocumentInfoBuilder_ != null) { - result.content_ = structuredDocumentInfoBuilder_.build(); - } - } + private com.google.protobuf.Struct structData_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + structDataBuilder_; - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.Answer.Reference) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.Answer.Reference) other); - } else { - super.mergeFrom(other); - return this; - } - } + /** + * + * + *
            +           * The structured JSON metadata for the document.
            +           * It is populated from the struct data from the Chunk in search result.
            +           * 
            + * + * .google.protobuf.Struct struct_data = 5; + * + * @return Whether the structData field is set. + */ + public boolean hasStructData() { + return ((bitField0_ & 0x00000010) != 0); + } - public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Answer.Reference other) { - if (other == com.google.cloud.discoveryengine.v1beta.Answer.Reference.getDefaultInstance()) - return this; - switch (other.getContentCase()) { - case UNSTRUCTURED_DOCUMENT_INFO: - { - mergeUnstructuredDocumentInfo(other.getUnstructuredDocumentInfo()); - break; - } - case CHUNK_INFO: - { - mergeChunkInfo(other.getChunkInfo()); - break; - } - case STRUCTURED_DOCUMENT_INFO: - { - mergeStructuredDocumentInfo(other.getStructuredDocumentInfo()); - break; - } - case CONTENT_NOT_SET: - { - break; + /** + * + * + *
            +           * The structured JSON metadata for the document.
            +           * It is populated from the struct data from the Chunk in search result.
            +           * 
            + * + * .google.protobuf.Struct struct_data = 5; + * + * @return The structData. + */ + public com.google.protobuf.Struct getStructData() { + if (structDataBuilder_ == null) { + return structData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structData_; + } else { + return structDataBuilder_.getMessage(); } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + /** + * + * + *
            +           * The structured JSON metadata for the document.
            +           * It is populated from the struct data from the Chunk in search result.
            +           * 
            + * + * .google.protobuf.Struct struct_data = 5; + */ + public Builder setStructData(com.google.protobuf.Struct value) { + if (structDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + structData_ = value; + } else { + structDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return 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 10: - { - input.readMessage( - internalGetUnstructuredDocumentInfoFieldBuilder().getBuilder(), - extensionRegistry); - contentCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetChunkInfoFieldBuilder().getBuilder(), extensionRegistry); - contentCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetStructuredDocumentInfoFieldBuilder().getBuilder(), - extensionRegistry); - contentCase_ = 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 contentCase_ = 0; - private java.lang.Object content_; - - public ContentCase getContentCase() { - return ContentCase.forNumber(contentCase_); - } - - public Builder clearContent() { - contentCase_ = 0; - content_ = null; - onChanged(); - return this; - } + /** + * + * + *
            +           * The structured JSON metadata for the document.
            +           * It is populated from the struct data from the Chunk in search result.
            +           * 
            + * + * .google.protobuf.Struct struct_data = 5; + */ + public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue) { + if (structDataBuilder_ == null) { + structData_ = builderForValue.build(); + } else { + structDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } - private int bitField0_; + /** + * + * + *
            +           * The structured JSON metadata for the document.
            +           * It is populated from the struct data from the Chunk in search result.
            +           * 
            + * + * .google.protobuf.Struct struct_data = 5; + */ + public Builder mergeStructData(com.google.protobuf.Struct value) { + if (structDataBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && structData_ != null + && structData_ != com.google.protobuf.Struct.getDefaultInstance()) { + getStructDataBuilder().mergeFrom(value); + } else { + structData_ = value; + } + } else { + structDataBuilder_.mergeFrom(value); + } + if (structData_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfoOrBuilder> - unstructuredDocumentInfoBuilder_; + /** + * + * + *
            +           * The structured JSON metadata for the document.
            +           * It is populated from the struct data from the Chunk in search result.
            +           * 
            + * + * .google.protobuf.Struct struct_data = 5; + */ + public Builder clearStructData() { + bitField0_ = (bitField0_ & ~0x00000010); + structData_ = null; + if (structDataBuilder_ != null) { + structDataBuilder_.dispose(); + structDataBuilder_ = null; + } + onChanged(); + return this; + } - /** - * - * - *
            -       * Unstructured document information.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; - * - * - * @return Whether the unstructuredDocumentInfo field is set. - */ - @java.lang.Override - public boolean hasUnstructuredDocumentInfo() { - return contentCase_ == 1; - } + /** + * + * + *
            +           * The structured JSON metadata for the document.
            +           * It is populated from the struct data from the Chunk in search result.
            +           * 
            + * + * .google.protobuf.Struct struct_data = 5; + */ + public com.google.protobuf.Struct.Builder getStructDataBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetStructDataFieldBuilder().getBuilder(); + } - /** - * - * - *
            -       * Unstructured document information.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; - * - * - * @return The unstructuredDocumentInfo. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - getUnstructuredDocumentInfo() { - if (unstructuredDocumentInfoBuilder_ == null) { - if (contentCase_ == 1) { - return (com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo) - content_; + /** + * + * + *
            +           * The structured JSON metadata for the document.
            +           * It is populated from the struct data from the Chunk in search result.
            +           * 
            + * + * .google.protobuf.Struct struct_data = 5; + */ + public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { + if (structDataBuilder_ != null) { + return structDataBuilder_.getMessageOrBuilder(); + } else { + return structData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structData_; + } } - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .getDefaultInstance(); - } else { - if (contentCase_ == 1) { - return unstructuredDocumentInfoBuilder_.getMessage(); + + /** + * + * + *
            +           * The structured JSON metadata for the document.
            +           * It is populated from the struct data from the Chunk in search result.
            +           * 
            + * + * .google.protobuf.Struct struct_data = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetStructDataFieldBuilder() { + if (structDataBuilder_ == null) { + structDataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getStructData(), getParentForChildren(), isClean()); + structData_ = null; + } + return structDataBuilder_; } - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .getDefaultInstance(); + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata) } - } - /** - * - * - *
            -       * Unstructured document information.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; - * + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata) + private static final com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.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.v1beta.Answer.Reference.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. */ - public Builder setUnstructuredDocumentInfo( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo value) { - if (unstructuredDocumentInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - onChanged(); + @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 { - unstructuredDocumentInfoBuilder_.setMessage(value); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + chunk_ = s; + return s; } - contentCase_ = 1; - return this; } /** * * *
            -       * Unstructured document information.
            +       * Chunk resource name.
                    * 
            * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; - * + * string chunk = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for chunk. */ - public Builder setUnstructuredDocumentInfo( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.Builder - builderForValue) { - if (unstructuredDocumentInfoBuilder_ == null) { - content_ = builderForValue.build(); - onChanged(); + @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 { - unstructuredDocumentInfoBuilder_.setMessage(builderForValue.build()); + return (com.google.protobuf.ByteString) ref; } - contentCase_ = 1; - return this; } + public static final int CONTENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; + /** * * *
            -       * Unstructured document information.
            +       * Chunk textual content.
                    * 
            * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; - * + * string content = 2; + * + * @return The content. */ - public Builder mergeUnstructuredDocumentInfo( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo value) { - if (unstructuredDocumentInfoBuilder_ == null) { - if (contentCase_ == 1 - && content_ - != com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo.getDefaultInstance()) { - content_ = - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .newBuilder( - (com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo) - content_) - .mergeFrom(value) - .buildPartial(); - } else { - content_ = value; - } - onChanged(); + @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 { - if (contentCase_ == 1) { - unstructuredDocumentInfoBuilder_.mergeFrom(value); - } else { - unstructuredDocumentInfoBuilder_.setMessage(value); - } + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; } - contentCase_ = 1; - return this; } /** * * *
            -       * Unstructured document information.
            +       * Chunk textual content.
                    * 
            * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; - * + * string content = 2; + * + * @return The bytes for content. */ - public Builder clearUnstructuredDocumentInfo() { - if (unstructuredDocumentInfoBuilder_ == null) { - if (contentCase_ == 1) { - contentCase_ = 0; - content_ = null; - onChanged(); - } + @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 { - if (contentCase_ == 1) { - contentCase_ = 0; - content_ = null; - } - unstructuredDocumentInfoBuilder_.clear(); + return (com.google.protobuf.ByteString) ref; } - return this; } + public static final int RELEVANCE_SCORE_FIELD_NUMBER = 3; + private float relevanceScore_ = 0F; + /** * * *
            -       * Unstructured document information.
            +       * The relevance of the chunk for a given query. Values range from 0.0
            +       * (completely irrelevant) to 1.0 (completely relevant).
            +       * This value is for informational purpose only. It may change for
            +       * the same query and chunk at any time due to a model retraining or
            +       * change in implementation.
                    * 
            * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; - * + * optional float relevance_score = 3; + * + * @return Whether the relevanceScore field is set. */ - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .Builder - getUnstructuredDocumentInfoBuilder() { - return internalGetUnstructuredDocumentInfoFieldBuilder().getBuilder(); + @java.lang.Override + public boolean hasRelevanceScore() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
            -       * Unstructured document information.
            +       * The relevance of the chunk for a given query. Values range from 0.0
            +       * (completely irrelevant) to 1.0 (completely relevant).
            +       * This value is for informational purpose only. It may change for
            +       * the same query and chunk at any time due to a model retraining or
            +       * change in implementation.
                    * 
            * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; - * + * optional float relevance_score = 3; + * + * @return The relevanceScore. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfoOrBuilder - getUnstructuredDocumentInfoOrBuilder() { - if ((contentCase_ == 1) && (unstructuredDocumentInfoBuilder_ != null)) { - return unstructuredDocumentInfoBuilder_.getMessageOrBuilder(); - } else { - if (contentCase_ == 1) { - return (com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo) - content_; - } - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .getDefaultInstance(); - } + public float getRelevanceScore() { + return relevanceScore_; } + public static final int DOCUMENT_METADATA_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + documentMetadata_; + /** * * *
            -       * Unstructured document information.
            +       * Document metadata.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfoOrBuilder> - internalGetUnstructuredDocumentInfoFieldBuilder() { - if (unstructuredDocumentInfoBuilder_ == null) { - if (!(contentCase_ == 1)) { - content_ = - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .getDefaultInstance(); - } - unstructuredDocumentInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo - .Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfoOrBuilder>( - (com.google.cloud.discoveryengine.v1beta.Answer.Reference - .UnstructuredDocumentInfo) - content_, - getParentForChildren(), - isClean()); - content_ = null; - } - contentCase_ = 1; - onChanged(); - return unstructuredDocumentInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfoOrBuilder> - chunkInfoBuilder_; - - /** - * - * - *
            -       * Chunk information.
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; * * - * @return Whether the chunkInfo field is set. + * @return Whether the documentMetadata field is set. */ @java.lang.Override - public boolean hasChunkInfo() { - return contentCase_ == 2; + public boolean hasDocumentMetadata() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
            -       * Chunk information.
            +       * Document metadata.
                    * 
            * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; * * - * @return The chunkInfo. + * @return The documentMetadata. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo getChunkInfo() { - if (chunkInfoBuilder_ == null) { - if (contentCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) content_; - } - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .getDefaultInstance(); - } else { - if (contentCase_ == 2) { - return chunkInfoBuilder_.getMessage(); - } - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .getDefaultInstance(); - } + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + getDocumentMetadata() { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + .getDefaultInstance() + : documentMetadata_; } /** * * *
            -       * Chunk information.
            +       * Document metadata.
                    * 
            * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; * */ - public Builder setChunkInfo( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo value) { - if (chunkInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - onChanged(); - } else { - chunkInfoBuilder_.setMessage(value); - } - contentCase_ = 2; - return this; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder() { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + .getDefaultInstance() + : documentMetadata_; } + public static final int BLOB_ATTACHMENT_INDEXES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.LongList blobAttachmentIndexes_ = emptyLongList(); + /** * * *
            -       * Chunk information.
            +       * Output only. Stores indexes of blobattachments linked to this chunk.
                    * 
            * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * + * repeated int64 blob_attachment_indexes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return A list containing the blobAttachmentIndexes. */ - public Builder setChunkInfo( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.Builder - builderForValue) { - if (chunkInfoBuilder_ == null) { - content_ = builderForValue.build(); - onChanged(); - } else { - chunkInfoBuilder_.setMessage(builderForValue.build()); - } - contentCase_ = 2; - return this; + @java.lang.Override + public java.util.List getBlobAttachmentIndexesList() { + return blobAttachmentIndexes_; } /** * * *
            -       * Chunk information.
            +       * Output only. Stores indexes of blobattachments linked to this chunk.
                    * 
            * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * + * repeated int64 blob_attachment_indexes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The count of blobAttachmentIndexes. */ - public Builder mergeChunkInfo( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo value) { - if (chunkInfoBuilder_ == null) { - if (contentCase_ == 2 - && content_ - != com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .getDefaultInstance()) { - content_ = - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.newBuilder( - (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) - content_) - .mergeFrom(value) - .buildPartial(); - } else { - content_ = value; - } - onChanged(); - } else { - if (contentCase_ == 2) { - chunkInfoBuilder_.mergeFrom(value); - } else { - chunkInfoBuilder_.setMessage(value); - } - } - contentCase_ = 2; - return this; + public int getBlobAttachmentIndexesCount() { + return blobAttachmentIndexes_.size(); } /** * * *
            -       * Chunk information.
            +       * Output only. Stores indexes of blobattachments linked to this chunk.
                    * 
            * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * + * repeated int64 blob_attachment_indexes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param index The index of the element to return. + * @return The blobAttachmentIndexes at the given index. */ - public Builder clearChunkInfo() { - if (chunkInfoBuilder_ == null) { - if (contentCase_ == 2) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - } else { - if (contentCase_ == 2) { - contentCase_ = 0; - content_ = null; - } - chunkInfoBuilder_.clear(); - } - return this; + public long getBlobAttachmentIndexes(int index) { + return blobAttachmentIndexes_.getLong(index); } - /** - * - * - *
            -       * Chunk information.
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.Builder - getChunkInfoBuilder() { - return internalGetChunkInfoFieldBuilder().getBuilder(); + private int blobAttachmentIndexesMemoizedSerializedSize = -1; + + 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; } - /** - * - * - *
            -       * Chunk information.
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; - * - */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfoOrBuilder - getChunkInfoOrBuilder() { - if ((contentCase_ == 2) && (chunkInfoBuilder_ != null)) { - return chunkInfoBuilder_.getMessageOrBuilder(); - } else { - if (contentCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) content_; - } - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .getDefaultInstance(); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(chunk_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, chunk_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, content_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(3, relevanceScore_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getDocumentMetadata()); } + if (getBlobAttachmentIndexesList().size() > 0) { + output.writeUInt32NoTag(42); + output.writeUInt32NoTag(blobAttachmentIndexesMemoizedSerializedSize); + } + for (int i = 0; i < blobAttachmentIndexes_.size(); i++) { + output.writeInt64NoTag(blobAttachmentIndexes_.getLong(i)); + } + getUnknownFields().writeTo(output); } - /** - * - * - *
            -       * Chunk information.
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfoOrBuilder> - internalGetChunkInfoFieldBuilder() { - if (chunkInfoBuilder_ == null) { - if (!(contentCase_ == 2)) { - content_ = - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo - .getDefaultInstance(); - } - chunkInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfoOrBuilder>( - (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) content_, - getParentForChildren(), - isClean()); - content_ = null; - } - contentCase_ = 2; - onChanged(); - return chunkInfoBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - .Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Reference - .StructuredDocumentInfoOrBuilder> - structuredDocumentInfoBuilder_; - - /** - * - * - *
            -       * Structured document information.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; - * - * - * @return Whether the structuredDocumentInfo field is set. - */ @java.lang.Override - public boolean hasStructuredDocumentInfo() { - return contentCase_ == 3; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - * - * - *
            -       * Structured document information.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; - * - * - * @return The structuredDocumentInfo. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - getStructuredDocumentInfo() { - if (structuredDocumentInfoBuilder_ == null) { - if (contentCase_ == 3) { - return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) - content_; + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(chunk_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, chunk_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, content_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, relevanceScore_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDocumentMetadata()); + } + { + int dataSize = 0; + for (int i = 0; i < blobAttachmentIndexes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag( + blobAttachmentIndexes_.getLong(i)); } - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - .getDefaultInstance(); - } else { - if (contentCase_ == 3) { - return structuredDocumentInfoBuilder_.getMessage(); + size += dataSize; + if (!getBlobAttachmentIndexesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); } - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - .getDefaultInstance(); + blobAttachmentIndexesMemoizedSerializedSize = dataSize; } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } - /** - * - * - *
            -       * Structured document information.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; - * - */ - public Builder setStructuredDocumentInfo( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo value) { - if (structuredDocumentInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - onChanged(); - } else { - structuredDocumentInfoBuilder_.setMessage(value); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - contentCase_ = 3; - return this; - } - - /** - * - * - *
            -       * Structured document information.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; - * - */ - public Builder setStructuredDocumentInfo( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo.Builder - builderForValue) { - if (structuredDocumentInfoBuilder_ == null) { - content_ = builderForValue.build(); - onChanged(); - } else { - structuredDocumentInfoBuilder_.setMessage(builderForValue.build()); + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo)) { + return super.equals(obj); } - contentCase_ = 3; - return this; - } + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo other = + (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) obj; - /** - * - * - *
            -       * Structured document information.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; - * - */ - public Builder mergeStructuredDocumentInfo( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo value) { - if (structuredDocumentInfoBuilder_ == null) { - if (contentCase_ == 3 - && content_ - != com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - .getDefaultInstance()) { - content_ = - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - .newBuilder( - (com.google.cloud.discoveryengine.v1beta.Answer.Reference - .StructuredDocumentInfo) - content_) - .mergeFrom(value) - .buildPartial(); - } else { - content_ = value; - } - onChanged(); - } else { - if (contentCase_ == 3) { - structuredDocumentInfoBuilder_.mergeFrom(value); - } else { - structuredDocumentInfoBuilder_.setMessage(value); - } + if (!getChunk().equals(other.getChunk())) return false; + if (!getContent().equals(other.getContent())) return false; + if (hasRelevanceScore() != other.hasRelevanceScore()) return false; + if (hasRelevanceScore()) { + if (java.lang.Float.floatToIntBits(getRelevanceScore()) + != java.lang.Float.floatToIntBits(other.getRelevanceScore())) return false; } - contentCase_ = 3; - return this; + if (hasDocumentMetadata() != other.hasDocumentMetadata()) return false; + if (hasDocumentMetadata()) { + if (!getDocumentMetadata().equals(other.getDocumentMetadata())) return false; + } + if (!getBlobAttachmentIndexesList().equals(other.getBlobAttachmentIndexesList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - /** - * - * - *
            -       * Structured document information.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; - * - */ - public Builder clearStructuredDocumentInfo() { - if (structuredDocumentInfoBuilder_ == null) { - if (contentCase_ == 3) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - } else { - if (contentCase_ == 3) { - contentCase_ = 0; - content_ = null; - } - structuredDocumentInfoBuilder_.clear(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - return this; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CHUNK_FIELD_NUMBER; + hash = (53 * hash) + getChunk().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + if (hasRelevanceScore()) { + hash = (37 * hash) + RELEVANCE_SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRelevanceScore()); + } + if (hasDocumentMetadata()) { + hash = (37 * hash) + DOCUMENT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getDocumentMetadata().hashCode(); + } + if (getBlobAttachmentIndexesCount() > 0) { + hash = (37 * hash) + BLOB_ATTACHMENT_INDEXES_FIELD_NUMBER; + hash = (53 * hash) + getBlobAttachmentIndexesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - /** - * - * - *
            -       * Structured document information.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo.Builder - getStructuredDocumentInfoBuilder() { - return internalGetStructuredDocumentInfoFieldBuilder().getBuilder(); + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo 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.v1beta.Answer.Reference.ChunkInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo parseFrom( + 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.v1beta.Answer.Reference.ChunkInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - /** - * - * - *
            -       * Structured document information.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; - * - */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference - .StructuredDocumentInfoOrBuilder - getStructuredDocumentInfoOrBuilder() { - if ((contentCase_ == 3) && (structuredDocumentInfoBuilder_ != null)) { - return structuredDocumentInfoBuilder_.getMessageOrBuilder(); - } else { - if (contentCase_ == 3) { - return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) - content_; - } - return com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - .getDefaultInstance(); - } + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * * *
            -       * Structured document information.
            +       * Chunk information.
                    * 
            * - * - * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; - * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo} */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - .Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Reference - .StructuredDocumentInfoOrBuilder> - internalGetStructuredDocumentInfoFieldBuilder() { - if (structuredDocumentInfoBuilder_ == null) { - if (!(contentCase_ == 3)) { - content_ = - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - .getDefaultInstance(); - } - structuredDocumentInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo - .Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Reference - .StructuredDocumentInfoOrBuilder>( - (com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) - content_, - getParentForChildren(), - isClean()); - content_ = null; + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_descriptor; } - contentCase_ = 3; - onChanged(); - return structuredDocumentInfoBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Reference) - } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Reference) - private static final com.google.cloud.discoveryengine.v1beta.Answer.Reference DEFAULT_INSTANCE; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.class, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.Builder.class); + } - static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Answer.Reference(); - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Reference getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Reference parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDocumentMetadataFieldBuilder(); } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + chunk_ = ""; + content_ = ""; + relevanceScore_ = 0F; + documentMetadata_ = null; + if (documentMetadataBuilder_ != null) { + documentMetadataBuilder_.dispose(); + documentMetadataBuilder_ = null; + } + blobAttachmentIndexes_ = emptyLongList(); + return this; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_descriptor; + } - public interface StepOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Step) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .getDefaultInstance(); + } - /** - * - * - *
            -     * The state of the step.
            -     * 
            - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.State state = 1; - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo build() { + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * - * - *
            -     * The state of the step.
            -     * 
            - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.State state = 1; - * - * @return The state. - */ - com.google.cloud.discoveryengine.v1beta.Answer.Step.State getState(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo buildPartial() { + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo result = + new com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - /** - * - * - *
            -     * The description of the step.
            -     * 
            - * - * string description = 2; - * - * @return The description. - */ - java.lang.String getDescription(); + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.chunk_ = chunk_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = content_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.relevanceScore_ = relevanceScore_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.documentMetadata_ = + documentMetadataBuilder_ == null + ? documentMetadata_ + : documentMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + blobAttachmentIndexes_.makeImmutable(); + result.blobAttachmentIndexes_ = blobAttachmentIndexes_; + } + result.bitField0_ |= to_bitField0_; + } - /** - * - * - *
            -     * The description of the step.
            -     * 
            - * - * string description = 2; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * - * - *
            -     * The thought of the step.
            -     * 
            - * - * string thought = 3; - * - * @return The thought. - */ - java.lang.String getThought(); + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .getDefaultInstance()) return this; + if (!other.getChunk().isEmpty()) { + chunk_ = other.chunk_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getContent().isEmpty()) { + content_ = other.content_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRelevanceScore()) { + setRelevanceScore(other.getRelevanceScore()); + } + if (other.hasDocumentMetadata()) { + mergeDocumentMetadata(other.getDocumentMetadata()); + } + if (!other.blobAttachmentIndexes_.isEmpty()) { + if (blobAttachmentIndexes_.isEmpty()) { + blobAttachmentIndexes_ = other.blobAttachmentIndexes_; + blobAttachmentIndexes_.makeImmutable(); + bitField0_ |= 0x00000010; + } else { + ensureBlobAttachmentIndexesIsMutable(); + blobAttachmentIndexes_.addAll(other.blobAttachmentIndexes_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
            -     * The thought of the step.
            -     * 
            - * - * string thought = 3; - * - * @return The bytes for thought. - */ - com.google.protobuf.ByteString getThoughtBytes(); + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * - * - *
            -     * Actions.
            -     * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - java.util.List getActionsList(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + chunk_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 29: + { + relevanceScore_ = input.readFloat(); + bitField0_ |= 0x00000004; + break; + } // case 29 + case 34: + { + input.readMessage( + internalGetDocumentMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + long v = input.readInt64(); + ensureBlobAttachmentIndexesIsMutable(); + blobAttachmentIndexes_.addLong(v); + break; + } // case 40 + case 42: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureBlobAttachmentIndexesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + blobAttachmentIndexes_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } - /** - * - * - *
            -     * Actions.
            -     * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action getActions(int index); + private int bitField0_; - /** - * - * - *
            -     * Actions.
            -     * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - int getActionsCount(); + private java.lang.Object chunk_ = ""; - /** - * - * - *
            -     * Actions.
            -     * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - java.util.List - getActionsOrBuilderList(); + /** + * + * + *
            +         * Chunk resource name.
            +         * 
            + * + * string chunk = 1 [(.google.api.resource_reference) = { ... } + * + * @return The chunk. + */ + public java.lang.String getChunk() { + java.lang.Object ref = chunk_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + chunk_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * - * - *
            -     * Actions.
            -     * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - com.google.cloud.discoveryengine.v1beta.Answer.Step.ActionOrBuilder getActionsOrBuilder( - int index); - } + /** + * + * + *
            +         * Chunk resource name.
            +         * 
            + * + * string chunk = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for chunk. + */ + public com.google.protobuf.ByteString getChunkBytes() { + java.lang.Object ref = chunk_; + if (ref instanceof 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; + } + } - /** - * - * - *
            -   * Step information.
            -   * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Step} - */ - public static final class Step extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Step) - StepOrBuilder { - private static final long serialVersionUID = 0L; + /** + * + * + *
            +         * Chunk resource name.
            +         * 
            + * + * string chunk = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The chunk to set. + * @return This builder for chaining. + */ + public Builder setChunk(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + chunk_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "Step"); - } + /** + * + * + *
            +         * Chunk resource name.
            +         * 
            + * + * string chunk = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearChunk() { + chunk_ = getDefaultInstance().getChunk(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - // Use Step.newBuilder() to construct. - private Step(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + /** + * + * + *
            +         * Chunk resource name.
            +         * 
            + * + * string chunk = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for chunk to set. + * @return This builder for chaining. + */ + public Builder setChunkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + chunk_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - private Step() { - state_ = 0; - description_ = ""; - thought_ = ""; - actions_ = java.util.Collections.emptyList(); - } + private java.lang.Object content_ = ""; - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_descriptor; - } + /** + * + * + *
            +         * Chunk textual content.
            +         * 
            + * + * string content = 2; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Step.class, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder.class); - } + /** + * + * + *
            +         * Chunk textual content.
            +         * 
            + * + * string content = 2; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof 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; + } + } - /** - * - * - *
            -     * Enumeration of the state of the step.
            -     * 
            - * - * Protobuf enum {@code google.cloud.discoveryengine.v1beta.Answer.Step.State} - */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
            -       * Unknown.
            -       * 
            - * - * STATE_UNSPECIFIED = 0; - */ - STATE_UNSPECIFIED(0), - /** - * - * - *
            -       * Step is currently in progress.
            -       * 
            - * - * IN_PROGRESS = 1; - */ - IN_PROGRESS(1), - /** - * - * - *
            -       * Step currently failed.
            -       * 
            - * - * FAILED = 2; - */ - FAILED(2), - /** - * - * - *
            -       * Step has succeeded.
            -       * 
            - * - * SUCCEEDED = 3; - */ - SUCCEEDED(3), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "State"); - } - - /** - * - * - *
            -       * Unknown.
            -       * 
            - * - * STATE_UNSPECIFIED = 0; - */ - public static final int STATE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
            -       * Step is currently in progress.
            -       * 
            - * - * IN_PROGRESS = 1; - */ - public static final int IN_PROGRESS_VALUE = 1; - - /** - * - * - *
            -       * Step currently failed.
            -       * 
            - * - * FAILED = 2; - */ - public static final int FAILED_VALUE = 2; - - /** - * - * - *
            -       * Step has succeeded.
            -       * 
            - * - * SUCCEEDED = 3; - */ - public static final int SUCCEEDED_VALUE = 3; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); + /** + * + * + *
            +         * Chunk textual content.
            +         * 
            + * + * string content = 2; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + bitField0_ |= 0x00000002; + 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 State valueOf(int value) { - return forNumber(value); - } - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static State forNumber(int value) { - switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return IN_PROGRESS; - case 2: - return FAILED; - case 3: - return SUCCEEDED; - default: - return null; + /** + * + * + *
            +         * Chunk textual content.
            +         * 
            + * + * string content = 2; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); + /** + * + * + *
            +         * Chunk textual content.
            +         * 
            + * + * string content = 2; + * + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.Answer.Step.getDescriptor() - .getEnumTypes() - .get(0); - } - private static final State[] VALUES = values(); + private float relevanceScore_; - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + /** + * + * + *
            +         * The relevance of the chunk for a given query. Values range from 0.0
            +         * (completely irrelevant) to 1.0 (completely relevant).
            +         * This value is for informational purpose only. It may change for
            +         * the same query and chunk at any time due to a model retraining or
            +         * change in implementation.
            +         * 
            + * + * optional float relevance_score = 3; + * + * @return Whether the relevanceScore field is set. + */ + @java.lang.Override + public boolean hasRelevanceScore() { + return ((bitField0_ & 0x00000004) != 0); } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; + + /** + * + * + *
            +         * The relevance of the chunk for a given query. Values range from 0.0
            +         * (completely irrelevant) to 1.0 (completely relevant).
            +         * This value is for informational purpose only. It may change for
            +         * the same query and chunk at any time due to a model retraining or
            +         * change in implementation.
            +         * 
            + * + * optional float relevance_score = 3; + * + * @return The relevanceScore. + */ + @java.lang.Override + public float getRelevanceScore() { + return relevanceScore_; } - return VALUES[desc.getIndex()]; - } - private final int value; + /** + * + * + *
            +         * The relevance of the chunk for a given query. Values range from 0.0
            +         * (completely irrelevant) to 1.0 (completely relevant).
            +         * This value is for informational purpose only. It may change for
            +         * the same query and chunk at any time due to a model retraining or
            +         * change in implementation.
            +         * 
            + * + * optional float relevance_score = 3; + * + * @param value The relevanceScore to set. + * @return This builder for chaining. + */ + public Builder setRelevanceScore(float value) { - private State(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Answer.Step.State) - } - - public interface ActionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Step.Action) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
            -       * Search action.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; - * - * - * @return Whether the searchAction field is set. - */ - boolean hasSearchAction(); - - /** - * - * - *
            -       * Search action.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; - * - * - * @return The searchAction. - */ - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction getSearchAction(); - - /** - * - * - *
            -       * Search action.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; - * - */ - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchActionOrBuilder - getSearchActionOrBuilder(); - - /** - * - * - *
            -       * Observation.
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; - * - * - * @return Whether the observation field is set. - */ - boolean hasObservation(); - - /** - * - * - *
            -       * Observation.
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; - * - * - * @return The observation. - */ - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation getObservation(); - - /** - * - * - *
            -       * Observation.
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; - * - */ - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.ObservationOrBuilder - getObservationOrBuilder(); - - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.ActionCase getActionCase(); - } - - /** - * - * - *
            -     * Action.
            -     * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Step.Action} - */ - public static final class Action extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action) - ActionOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "Action"); - } - - // Use Action.newBuilder() to construct. - private Action(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private Action() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.class, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder.class); - } - - public interface SearchActionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) - com.google.protobuf.MessageOrBuilder { + relevanceScore_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } /** * * *
            -         * The query to search.
            +         * The relevance of the chunk for a given query. Values range from 0.0
            +         * (completely irrelevant) to 1.0 (completely relevant).
            +         * This value is for informational purpose only. It may change for
            +         * the same query and chunk at any time due to a model retraining or
            +         * change in implementation.
                      * 
            * - * string query = 1; + * optional float relevance_score = 3; * - * @return The query. + * @return This builder for chaining. */ - java.lang.String getQuery(); + public Builder clearRelevanceScore() { + bitField0_ = (bitField0_ & ~0x00000004); + relevanceScore_ = 0F; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + documentMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + .Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadataOrBuilder> + documentMetadataBuilder_; /** * * *
            -         * The query to search.
            +         * Document metadata.
                      * 
            * - * string query = 1; + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; + * * - * @return The bytes for query. + * @return Whether the documentMetadata field is set. */ - com.google.protobuf.ByteString getQueryBytes(); - } - - /** - * - * - *
            -       * Search action.
            -       * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction} - */ - public static final class SearchAction extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) - SearchActionOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "SearchAction"); - } - - // Use SearchAction.newBuilder() to construct. - private SearchAction(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SearchAction() { - query_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_SearchAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_SearchAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.class, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.Builder - .class); + public boolean hasDocumentMetadata() { + return ((bitField0_ & 0x00000008) != 0); } - public static final int QUERY_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object query_ = ""; - /** * * *
            -         * The query to search.
            +         * Document metadata.
                      * 
            * - * string query = 1; + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; + * * - * @return The query. + * @return The documentMetadata. */ - @java.lang.Override - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + getDocumentMetadata() { + if (documentMetadataBuilder_ == null) { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } else { + return documentMetadataBuilder_.getMessage(); } } @@ -12127,6691 +11032,5596 @@ public java.lang.String getQuery() { * * *
            -         * The query to search.
            +         * Document metadata.
                      * 
            * - * string query = 1; - * - * @return The bytes for query. + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; + * */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - query_ = b; - return b; + public Builder setDocumentMetadata( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + value) { + if (documentMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + documentMetadata_ = value; } else { - return (com.google.protobuf.ByteString) ref; + documentMetadataBuilder_.setMessage(value); } + bitField0_ |= 0x00000008; + onChanged(); + return 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; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, query_); + /** + * + * + *
            +         * Document metadata.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + public Builder setDocumentMetadata( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + .Builder + builderForValue) { + if (documentMetadataBuilder_ == null) { + documentMetadata_ = builderForValue.build(); + } else { + documentMetadataBuilder_.setMessage(builderForValue.build()); } - getUnknownFields().writeTo(output); + bitField0_ |= 0x00000008; + onChanged(); + return this; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, query_); + /** + * + * + *
            +         * Document metadata.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + public Builder mergeDocumentMetadata( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + value) { + if (documentMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && documentMetadata_ != null + && documentMetadata_ + != com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata.getDefaultInstance()) { + getDocumentMetadataBuilder().mergeFrom(value); + } else { + documentMetadata_ = value; + } + } else { + documentMetadataBuilder_.mergeFrom(value); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + if (documentMetadata_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction)) { - return super.equals(obj); + /** + * + * + *
            +         * Document metadata.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + public Builder clearDocumentMetadata() { + bitField0_ = (bitField0_ & ~0x00000008); + documentMetadata_ = null; + if (documentMetadataBuilder_ != null) { + documentMetadataBuilder_.dispose(); + documentMetadataBuilder_ = null; } - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction other = - (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) obj; + onChanged(); + return this; + } - if (!getQuery().equals(other.getQuery())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + /** + * + * + *
            +         * Document metadata.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + .Builder + getDocumentMetadataBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetDocumentMetadataFieldBuilder().getBuilder(); } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + /** + * + * + *
            +         * Document metadata.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder() { + if (documentMetadataBuilder_ != null) { + return documentMetadataBuilder_.getMessageOrBuilder(); + } else { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata.getDefaultInstance() + : documentMetadata_; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** + * + * + *
            +         * Document metadata.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata + .Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadataOrBuilder> + internalGetDocumentMetadataFieldBuilder() { + if (documentMetadataBuilder_ == null) { + documentMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .DocumentMetadataOrBuilder>( + getDocumentMetadata(), getParentForChildren(), isClean()); + documentMetadata_ = null; + } + return documentMetadataBuilder_; } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private com.google.protobuf.Internal.LongList blobAttachmentIndexes_ = emptyLongList(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + private void ensureBlobAttachmentIndexesIsMutable() { + if (!blobAttachmentIndexes_.isModifiable()) { + blobAttachmentIndexes_ = makeMutableCopy(blobAttachmentIndexes_); + } + bitField0_ |= 0x00000010; } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - parseFrom( - 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.v1beta.Answer.Step.Action.SearchAction - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
            +         * Output only. Stores indexes of blobattachments linked to this chunk.
            +         * 
            + * + * + * repeated int64 blob_attachment_indexes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the blobAttachmentIndexes. + */ + public java.util.List getBlobAttachmentIndexesList() { + blobAttachmentIndexes_.makeImmutable(); + return blobAttachmentIndexes_; } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + /** + * + * + *
            +         * Output only. Stores indexes of blobattachments linked to this chunk.
            +         * 
            + * + * + * repeated int64 blob_attachment_indexes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of blobAttachmentIndexes. + */ + public int getBlobAttachmentIndexesCount() { + return blobAttachmentIndexes_.size(); } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
            +         * Output only. Stores indexes of blobattachments linked to this chunk.
            +         * 
            + * + * + * repeated int64 blob_attachment_indexes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The blobAttachmentIndexes at the given index. + */ + public long getBlobAttachmentIndexes(int index) { + return blobAttachmentIndexes_.getLong(index); } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + /** + * + * + *
            +         * Output only. Stores indexes of blobattachments linked to this chunk.
            +         * 
            + * + * + * repeated int64 blob_attachment_indexes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The blobAttachmentIndexes to set. + * @return This builder for chaining. + */ + public Builder setBlobAttachmentIndexes(int index, long value) { - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + ensureBlobAttachmentIndexesIsMutable(); + blobAttachmentIndexes_.setLong(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
            +         * Output only. Stores indexes of blobattachments linked to this chunk.
            +         * 
            + * + * + * repeated int64 blob_attachment_indexes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The blobAttachmentIndexes to add. + * @return This builder for chaining. + */ + public Builder addBlobAttachmentIndexes(long value) { - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + ensureBlobAttachmentIndexesIsMutable(); + blobAttachmentIndexes_.addLong(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * + * + *
            +         * Output only. Stores indexes of blobattachments linked to this chunk.
            +         * 
            + * + * + * repeated int64 blob_attachment_indexes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The blobAttachmentIndexes to add. + * @return This builder for chaining. + */ + public Builder addAllBlobAttachmentIndexes( + java.lang.Iterable values) { + ensureBlobAttachmentIndexesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blobAttachmentIndexes_); + bitField0_ |= 0x00000010; + onChanged(); + return this; } /** * * *
            -         * Search action.
            +         * Output only. Stores indexes of blobattachments linked to this chunk.
                      * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction} + * + * repeated int64 blob_attachment_indexes = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_SearchAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_SearchAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.class, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.Builder - .class); - } - - // Construct using - // com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.newBuilder() - private Builder() {} + public Builder clearBlobAttachmentIndexes() { + blobAttachmentIndexes_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - query_ = ""; - return this; - } + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) + private static final com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + DEFAULT_INSTANCE; - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_SearchAction_descriptor; - } + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo(); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - .getDefaultInstance(); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction build() { - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChunkInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } - return result; - } + }; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - buildPartial() { - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction result = - new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.query_ = query_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) other); - } else { - super.mergeFrom(other); - return this; - } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction other) { - if (other - == com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - .getDefaultInstance()) return this; - if (!other.getQuery().isEmpty()) { - query_ = other.query_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + public interface StructuredDocumentInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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: - { - query_ = 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; - } + /** + * + * + *
            +       * Document resource name.
            +       * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The document. + */ + java.lang.String getDocument(); - private int bitField0_; + /** + * + * + *
            +       * Document resource name.
            +       * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for document. + */ + com.google.protobuf.ByteString getDocumentBytes(); - private java.lang.Object query_ = ""; + /** + * + * + *
            +       * Structured search data.
            +       * 
            + * + * .google.protobuf.Struct struct_data = 2; + * + * @return Whether the structData field is set. + */ + boolean hasStructData(); - /** - * - * - *
            -           * The query to search.
            -           * 
            - * - * string query = 1; - * - * @return The query. - */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + /** + * + * + *
            +       * Structured search data.
            +       * 
            + * + * .google.protobuf.Struct struct_data = 2; + * + * @return The structData. + */ + com.google.protobuf.Struct getStructData(); - /** - * - * - *
            -           * The query to search.
            -           * 
            - * - * string query = 1; - * - * @return The bytes for query. - */ - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
            +       * Structured search data.
            +       * 
            + * + * .google.protobuf.Struct struct_data = 2; + */ + com.google.protobuf.StructOrBuilder getStructDataOrBuilder(); - /** - * - * - *
            -           * The query to search.
            -           * 
            - * - * string query = 1; - * - * @param value The query to set. - * @return This builder for chaining. - */ - public Builder setQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - query_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + /** + * + * + *
            +       * Output only. The title of the document.
            +       * 
            + * + * string title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The title. + */ + java.lang.String getTitle(); - /** - * - * - *
            -           * The query to search.
            -           * 
            - * - * string query = 1; - * - * @return This builder for chaining. - */ - public Builder clearQuery() { - query_ = getDefaultInstance().getQuery(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } + /** + * + * + *
            +       * Output only. The title of the document.
            +       * 
            + * + * string title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); - /** - * - * - *
            -           * The query to search.
            -           * 
            - * - * string query = 1; - * - * @param value The bytes for query to set. - * @return This builder for chaining. - */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - query_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) - } - - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) - private static final com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction(); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + /** + * + * + *
            +       * Output only. The URI of the document.
            +       * 
            + * + * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uri. + */ + java.lang.String getUri(); - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * + * + *
            +       * Output only. The URI of the document.
            +       * 
            + * + * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * + * + *
            +     * Structured search information.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo} + */ + public static final class StructuredDocumentInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) + StructuredDocumentInfoOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "StructuredDocumentInfo"); } - public interface ObservationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation) - com.google.protobuf.MessageOrBuilder { + // Use StructuredDocumentInfo.newBuilder() to construct. + private StructuredDocumentInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - /** - * - * - *
            -         * Search results observed by the search action, it can be snippets info
            -         * or chunk info, depending on the citation type set by the user.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult> - getSearchResultsList(); + private StructuredDocumentInfo() { + document_ = ""; + title_ = ""; + uri_ = ""; + } - /** - * - * - *
            -         * Search results observed by the search action, it can be snippets info
            -         * or chunk info, depending on the citation type set by the user.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - getSearchResults(int index); + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_StructuredDocumentInfo_descriptor; + } - /** - * - * - *
            -         * Search results observed by the search action, it can be snippets info
            -         * or chunk info, depending on the citation type set by the user.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - int getSearchResultsCount(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_StructuredDocumentInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + .class, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + .Builder.class); + } - /** - * - * - *
            -         * Search results observed by the search action, it can be snippets info
            -         * or chunk info, depending on the citation type set by the user.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResultOrBuilder> - getSearchResultsOrBuilderList(); + private int bitField0_; + public static final int DOCUMENT_FIELD_NUMBER = 1; - /** - * - * - *
            -         * Search results observed by the search action, it can be snippets info
            -         * or chunk info, depending on the citation type set by the user.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResultOrBuilder - getSearchResultsOrBuilder(int index); - } + @SuppressWarnings("serial") + private volatile java.lang.Object document_ = ""; /** * * *
            -       * Observation.
            +       * Document resource name.
                    * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation} + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The document. */ - public static final class Observation extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation) - ObservationOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "Observation"); - } - - // Use Observation.newBuilder() to construct. - private Observation(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private Observation() { - searchResults_ = java.util.Collections.emptyList(); + @java.lang.Override + public java.lang.String getDocument() { + java.lang.Object ref = document_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + document_ = s; + return s; } + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.class, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.Builder - .class); + /** + * + * + *
            +       * Document resource name.
            +       * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for document. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDocumentBytes() { + java.lang.Object ref = document_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + document_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - public interface SearchResultOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult) - com.google.protobuf.MessageOrBuilder { + public static final int STRUCT_DATA_FIELD_NUMBER = 2; + private com.google.protobuf.Struct structData_; - /** - * - * - *
            -           * Document resource name.
            -           * 
            - * - * string document = 1; - * - * @return The document. - */ - java.lang.String getDocument(); + /** + * + * + *
            +       * Structured search data.
            +       * 
            + * + * .google.protobuf.Struct struct_data = 2; + * + * @return Whether the structData field is set. + */ + @java.lang.Override + public boolean hasStructData() { + return ((bitField0_ & 0x00000001) != 0); + } - /** - * - * - *
            -           * Document resource name.
            -           * 
            - * - * string document = 1; - * - * @return The bytes for document. - */ - com.google.protobuf.ByteString getDocumentBytes(); + /** + * + * + *
            +       * Structured search data.
            +       * 
            + * + * .google.protobuf.Struct struct_data = 2; + * + * @return The structData. + */ + @java.lang.Override + public com.google.protobuf.Struct getStructData() { + return structData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : structData_; + } - /** - * - * - *
            -           * URI for the document.
            -           * 
            - * - * string uri = 2; - * - * @return The uri. - */ - java.lang.String getUri(); + /** + * + * + *
            +       * Structured search data.
            +       * 
            + * + * .google.protobuf.Struct struct_data = 2; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { + return structData_ == null ? com.google.protobuf.Struct.getDefaultInstance() : structData_; + } - /** - * - * - *
            -           * URI for the document.
            -           * 
            - * - * string uri = 2; - * - * @return The bytes for uri. - */ - com.google.protobuf.ByteString getUriBytes(); + public static final int TITLE_FIELD_NUMBER = 3; - /** - * - * - *
            -           * Title.
            -           * 
            - * - * string title = 3; - * - * @return The title. - */ - java.lang.String getTitle(); + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; - /** - * - * - *
            -           * Title.
            -           * 
            - * - * string title = 3; - * - * @return The bytes for title. - */ - com.google.protobuf.ByteString getTitleBytes(); + /** + * + * + *
            +       * Output only. The title of the document.
            +       * 
            + * + * string title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } - /** - * - * - *
            -           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -           * level snippets.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo> - getSnippetInfoList(); + /** + * + * + *
            +       * Output only. The title of the document.
            +       * 
            + * + * string title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } - /** - * - * - *
            -           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -           * level snippets.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .SnippetInfo - getSnippetInfo(int index); + public static final int URI_FIELD_NUMBER = 4; - /** - * - * - *
            -           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -           * level snippets.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - int getSnippetInfoCount(); + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; - /** - * - * - *
            -           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -           * level snippets.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfoOrBuilder> - getSnippetInfoOrBuilderList(); + /** + * + * + *
            +       * Output only. The URI of the document.
            +       * 
            + * + * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } - /** - * - * - *
            -           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -           * level snippets.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .SnippetInfoOrBuilder - getSnippetInfoOrBuilder(int index); + /** + * + * + *
            +       * Output only. The URI of the document.
            +       * 
            + * + * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } - /** - * - * - *
            -           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -           * populate chunk info.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo> - getChunkInfoList(); + private byte memoizedIsInitialized = -1; - /** - * - * - *
            -           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -           * populate chunk info.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .ChunkInfo - getChunkInfo(int index); + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * - * - *
            -           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -           * populate chunk info.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - int getChunkInfoCount(); + memoizedIsInitialized = 1; + return true; + } - /** - * - * - *
            -           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -           * populate chunk info.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfoOrBuilder> - getChunkInfoOrBuilderList(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, document_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getStructData()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, uri_); + } + getUnknownFields().writeTo(output); + } - /** - * - * - *
            -           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -           * populate chunk info.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .ChunkInfoOrBuilder - getChunkInfoOrBuilder(int index); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - * - * - *
            -           * Data representation.
            -           * The structured JSON data for the document.
            -           * It's populated from the struct data from the Document, or the
            -           * Chunk in search result.
            -           * 
            - * - * .google.protobuf.Struct struct_data = 6; - * - * @return Whether the structData field is set. - */ - boolean hasStructData(); + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, document_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStructData()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, uri_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
            -           * Data representation.
            -           * The structured JSON data for the document.
            -           * It's populated from the struct data from the Document, or the
            -           * Chunk in search result.
            -           * 
            - * - * .google.protobuf.Struct struct_data = 6; - * - * @return The structData. - */ - com.google.protobuf.Struct getStructData(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo other = + (com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) obj; - /** - * - * - *
            -           * Data representation.
            -           * The structured JSON data for the document.
            -           * It's populated from the struct data from the Document, or the
            -           * Chunk in search result.
            -           * 
            - * - * .google.protobuf.Struct struct_data = 6; - */ - com.google.protobuf.StructOrBuilder getStructDataOrBuilder(); + if (!getDocument().equals(other.getDocument())) return false; + if (hasStructData() != other.hasStructData()) return false; + if (hasStructData()) { + if (!getStructData().equals(other.getStructData())) return false; } + if (!getTitle().equals(other.getTitle())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - /** - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult} - */ - public static final class SearchResult extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult) - SearchResultOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "SearchResult"); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + if (hasStructData()) { + hash = (37 * hash) + STRUCT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getStructData().hashCode(); + } + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - // Use SearchResult.newBuilder() to construct. - private SearchResult(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private SearchResult() { - document_ = ""; - uri_ = ""; - title_ = ""; - snippetInfo_ = java.util.Collections.emptyList(); - chunkInfo_ = java.util.Collections.emptyList(); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_descriptor; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.class, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.Builder.class); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public interface SnippetInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo) - com.google.protobuf.MessageOrBuilder { + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -             * Snippet content.
            -             * 
            - * - * string snippet = 1; - * - * @return The snippet. - */ - java.lang.String getSnippet(); + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -             * Snippet content.
            -             * 
            - * - * string snippet = 1; - * - * @return The bytes for snippet. - */ - com.google.protobuf.ByteString getSnippetBytes(); + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
            -             * Status of the snippet defined by the search team.
            -             * 
            - * - * string snippet_status = 2; - * - * @return The snippetStatus. - */ - java.lang.String getSnippetStatus(); + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -             * Status of the snippet defined by the search team.
            -             * 
            - * - * string snippet_status = 2; - * - * @return The bytes for snippetStatus. - */ - com.google.protobuf.ByteString getSnippetStatusBytes(); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - /** - * - * - *
            -           * Snippet information.
            -           * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo} - */ - public static final class SnippetInfo extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo) - SnippetInfoOrBuilder { - private static final long serialVersionUID = 0L; + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "SnippetInfo"); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - // Use SnippetInfo.newBuilder() to construct. - private SnippetInfo(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - private SnippetInfo() { - snippet_ = ""; - snippetStatus_ = ""; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_SnippetInfo_descriptor; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_SnippetInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo.class, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo.Builder.class); - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static final int SNIPPET_FIELD_NUMBER = 1; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @SuppressWarnings("serial") - private volatile java.lang.Object snippet_ = ""; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * - * - *
            -             * Snippet content.
            -             * 
            - * - * string snippet = 1; - * - * @return The snippet. - */ - @java.lang.Override - public java.lang.String getSnippet() { - java.lang.Object ref = snippet_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - snippet_ = s; - return s; - } - } + /** + * + * + *
            +       * Structured search information.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_StructuredDocumentInfo_descriptor; + } - /** - * - * - *
            -             * Snippet content.
            -             * 
            - * - * string snippet = 1; - * - * @return The bytes for snippet. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSnippetBytes() { - java.lang.Object ref = snippet_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - snippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_StructuredDocumentInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + .class, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + .Builder.class); + } - public static final int SNIPPET_STATUS_FIELD_NUMBER = 2; + // Construct using + // com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object snippetStatus_ = ""; + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - /** - * - * - *
            -             * Status of the snippet defined by the search team.
            -             * 
            - * - * string snippet_status = 2; - * - * @return The snippetStatus. - */ - @java.lang.Override - public java.lang.String getSnippetStatus() { - java.lang.Object ref = snippetStatus_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - snippetStatus_ = s; - return s; - } - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStructDataFieldBuilder(); + } + } - /** - * - * - *
            -             * Status of the snippet defined by the search team.
            -             * 
            - * - * string snippet_status = 2; - * - * @return The bytes for snippetStatus. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSnippetStatusBytes() { - java.lang.Object ref = snippetStatus_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - snippetStatus_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + document_ = ""; + structData_ = null; + if (structDataBuilder_ != null) { + structDataBuilder_.dispose(); + structDataBuilder_ = null; + } + title_ = ""; + uri_ = ""; + return this; + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_StructuredDocumentInfo_descriptor; + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + .getDefaultInstance(); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + build() { + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snippet_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, snippet_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snippetStatus_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, snippetStatus_); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo result = + new com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.document_ = document_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.structData_ = + structDataBuilder_ == null ? structData_ : structDataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.uri_ = uri_; + } + result.bitField0_ |= to_bitField0_; + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snippet_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, snippet_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snippetStatus_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, snippetStatus_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .SnippetInfo - other = - (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo) - obj; - - if (!getSnippet().equals(other.getSnippet())) return false; - if (!getSnippetStatus().equals(other.getSnippetStatus())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + .getDefaultInstance()) return this; + if (!other.getDocument().isEmpty()) { + document_ = other.document_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasStructData()) { + mergeStructData(other.getStructData()); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000008; + 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) + SNIPPET_FIELD_NUMBER; - hash = (53 * hash) + getSnippet().hashCode(); - hash = (37 * hash) + SNIPPET_STATUS_FIELD_NUMBER; - hash = (53 * hash) + getSnippetStatus().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + document_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetStructDataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + uri_ = 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; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private int bitField0_; - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private java.lang.Object document_ = ""; - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +         * Document resource name.
            +         * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The document. + */ + public java.lang.String getDocument() { + java.lang.Object ref = document_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + document_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +         * Document resource name.
            +         * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for document. + */ + public com.google.protobuf.ByteString getDocumentBytes() { + java.lang.Object ref = document_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + document_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +         * Document resource name.
            +         * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The document to set. + * @return This builder for chaining. + */ + public Builder setDocument(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + document_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +         * Document resource name.
            +         * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearDocument() { + document_ = getDefaultInstance().getDocument(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input); - } + /** + * + * + *
            +         * Document resource name.
            +         * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for document to set. + * @return This builder for chaining. + */ + public Builder setDocumentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + document_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + private com.google.protobuf.Struct structData_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + structDataBuilder_; - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +         * Structured search data.
            +         * 
            + * + * .google.protobuf.Struct struct_data = 2; + * + * @return Whether the structData field is set. + */ + public boolean hasStructData() { + return ((bitField0_ & 0x00000002) != 0); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +         * Structured search data.
            +         * 
            + * + * .google.protobuf.Struct struct_data = 2; + * + * @return The structData. + */ + public com.google.protobuf.Struct getStructData() { + if (structDataBuilder_ == null) { + return structData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structData_; + } else { + return structDataBuilder_.getMessage(); + } + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + /** + * + * + *
            +         * Structured search data.
            +         * 
            + * + * .google.protobuf.Struct struct_data = 2; + */ + public Builder setStructData(com.google.protobuf.Struct value) { + if (structDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + structData_ = value; + } else { + structDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
            +         * Structured search data.
            +         * 
            + * + * .google.protobuf.Struct struct_data = 2; + */ + public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue) { + if (structDataBuilder_ == null) { + structData_ = builderForValue.build(); + } else { + structDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .SnippetInfo - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + /** + * + * + *
            +         * Structured search data.
            +         * 
            + * + * .google.protobuf.Struct struct_data = 2; + */ + public Builder mergeStructData(com.google.protobuf.Struct value) { + if (structDataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && structData_ != null + && structData_ != com.google.protobuf.Struct.getDefaultInstance()) { + getStructDataBuilder().mergeFrom(value); + } else { + structData_ = value; } + } else { + structDataBuilder_.mergeFrom(value); + } + if (structData_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
            +         * Structured search data.
            +         * 
            + * + * .google.protobuf.Struct struct_data = 2; + */ + public Builder clearStructData() { + bitField0_ = (bitField0_ & ~0x00000002); + structData_ = null; + if (structDataBuilder_ != null) { + structDataBuilder_.dispose(); + structDataBuilder_ = null; + } + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
            +         * Structured search data.
            +         * 
            + * + * .google.protobuf.Struct struct_data = 2; + */ + public com.google.protobuf.Struct.Builder getStructDataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetStructDataFieldBuilder().getBuilder(); + } - /** - * - * - *
            -             * Snippet information.
            -             * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo) - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .SnippetInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_SnippetInfo_descriptor; - } + /** + * + * + *
            +         * Structured search data.
            +         * 
            + * + * .google.protobuf.Struct struct_data = 2; + */ + public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { + if (structDataBuilder_ != null) { + return structDataBuilder_.getMessageOrBuilder(); + } else { + return structData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structData_; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_SnippetInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo.class, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo.Builder.class); - } + /** + * + * + *
            +         * Structured search data.
            +         * 
            + * + * .google.protobuf.Struct struct_data = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetStructDataFieldBuilder() { + if (structDataBuilder_ == null) { + structDataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getStructData(), getParentForChildren(), isClean()); + structData_ = null; + } + return structDataBuilder_; + } - // Construct using - // com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo.newBuilder() - private Builder() {} + private java.lang.Object title_ = ""; - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + /** + * + * + *
            +         * Output only. The title of the document.
            +         * 
            + * + * string title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - snippet_ = ""; - snippetStatus_ = ""; - return this; - } + /** + * + * + *
            +         * Output only. The title of the document.
            +         * 
            + * + * string title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_SnippetInfo_descriptor; - } + /** + * + * + *
            +         * Output only. The title of the document.
            +         * 
            + * + * string title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo.getDefaultInstance(); - } + /** + * + * + *
            +         * Output only. The title of the document.
            +         * 
            + * + * string title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - build() { - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .SnippetInfo - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + /** + * + * + *
            +         * Output only. The title of the document.
            +         * 
            + * + * string title = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - buildPartial() { - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .SnippetInfo - result = - new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + private java.lang.Object uri_ = ""; - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.snippet_ = snippet_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.snippetStatus_ = snippetStatus_; - } - } + /** + * + * + *
            +         * Output only. The URI of the document.
            +         * 
            + * + * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo) - other); - } else { - super.mergeFrom(other); - return this; - } - } + /** + * + * + *
            +         * Output only. The URI of the document.
            +         * 
            + * + * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo.getDefaultInstance()) return this; - if (!other.getSnippet().isEmpty()) { - snippet_ = other.snippet_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getSnippetStatus().isEmpty()) { - snippetStatus_ = other.snippetStatus_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + /** + * + * + *
            +         * Output only. The URI of the document.
            +         * 
            + * + * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + /** + * + * + *
            +         * Output only. The URI of the document.
            +         * 
            + * + * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return 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 10: - { - snippet_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - snippetStatus_ = 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; - } + /** + * + * + *
            +         * Output only. The URI of the document.
            +         * 
            + * + * string uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } - private int bitField0_; + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) + } - private java.lang.Object snippet_ = ""; + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) + private static final com.google.cloud.discoveryengine.v1beta.Answer.Reference + .StructuredDocumentInfo + DEFAULT_INSTANCE; - /** - * - * - *
            -               * Snippet content.
            -               * 
            - * - * string snippet = 1; - * - * @return The snippet. - */ - public java.lang.String getSnippet() { - java.lang.Object ref = snippet_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - snippet_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo(); + } - /** - * - * - *
            -               * Snippet content.
            -               * 
            - * - * string snippet = 1; - * - * @return The bytes for snippet. - */ - public com.google.protobuf.ByteString getSnippetBytes() { - java.lang.Object ref = snippet_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - snippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - * - * - *
            -               * Snippet content.
            -               * 
            - * - * string snippet = 1; - * - * @param value The snippet to set. - * @return This builder for chaining. - */ - public Builder setSnippet(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - snippet_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StructuredDocumentInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); } + return builder.buildPartial(); + } + }; - /** - * - * - *
            -               * Snippet content.
            -               * 
            - * - * string snippet = 1; - * - * @return This builder for chaining. - */ - public Builder clearSnippet() { - snippet_ = getDefaultInstance().getSnippet(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
            -               * Snippet content.
            -               * 
            - * - * string snippet = 1; - * - * @param value The bytes for snippet to set. - * @return This builder for chaining. - */ - public Builder setSnippetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - snippet_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object snippetStatus_ = ""; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * - * - *
            -               * Status of the snippet defined by the search team.
            -               * 
            - * - * string snippet_status = 2; - * - * @return The snippetStatus. - */ - public java.lang.String getSnippetStatus() { - java.lang.Object ref = snippetStatus_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - snippetStatus_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - /** - * - * - *
            -               * Status of the snippet defined by the search team.
            -               * 
            - * - * string snippet_status = 2; - * - * @return The bytes for snippetStatus. - */ - public com.google.protobuf.ByteString getSnippetStatusBytes() { - java.lang.Object ref = snippetStatus_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - snippetStatus_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private int contentCase_ = 0; - /** - * - * - *
            -               * Status of the snippet defined by the search team.
            -               * 
            - * - * string snippet_status = 2; - * - * @param value The snippetStatus to set. - * @return This builder for chaining. - */ - public Builder setSnippetStatus(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - snippetStatus_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + @SuppressWarnings("serial") + private java.lang.Object content_; - /** - * - * - *
            -               * Status of the snippet defined by the search team.
            -               * 
            - * - * string snippet_status = 2; - * - * @return This builder for chaining. - */ - public Builder clearSnippetStatus() { - snippetStatus_ = getDefaultInstance().getSnippetStatus(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } + public enum ContentCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + UNSTRUCTURED_DOCUMENT_INFO(1), + CHUNK_INFO(2), + STRUCTURED_DOCUMENT_INFO(3), + CONTENT_NOT_SET(0); + private final int value; - /** - * - * - *
            -               * Status of the snippet defined by the search team.
            -               * 
            - * - * string snippet_status = 2; - * - * @param value The bytes for snippetStatus to set. - * @return This builder for chaining. - */ - public Builder setSnippetStatusBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - snippetStatus_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + private ContentCase(int value) { + this.value = value; + } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo) - } + /** + * @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 ContentCase valueOf(int value) { + return forNumber(value); + } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo) - private static final com.google.cloud.discoveryengine.v1beta.Answer.Step.Action - .Observation.SearchResult.SnippetInfo - DEFAULT_INSTANCE; + public static ContentCase forNumber(int value) { + switch (value) { + case 1: + return UNSTRUCTURED_DOCUMENT_INFO; + case 2: + return CHUNK_INFO; + case 3: + return STRUCTURED_DOCUMENT_INFO; + case 0: + return CONTENT_NOT_SET; + default: + return null; + } + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo(); - } + public int getNumber() { + return this.value; + } + }; - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public ContentCase getContentCase() { + return ContentCase.forNumber(contentCase_); + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SnippetInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + public static final int UNSTRUCTURED_DOCUMENT_INFO_FIELD_NUMBER = 1; - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * + * + *
            +     * Unstructured document information.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; + * + * + * @return Whether the unstructuredDocumentInfo field is set. + */ + @java.lang.Override + public boolean hasUnstructuredDocumentInfo() { + return contentCase_ == 1; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * + * + *
            +     * Unstructured document information.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; + * + * + * @return The unstructuredDocumentInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + getUnstructuredDocumentInfo() { + if (contentCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) + content_; + } + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .getDefaultInstance(); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface ChunkInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
            +     * Unstructured document information.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfoOrBuilder + getUnstructuredDocumentInfoOrBuilder() { + if (contentCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) + content_; + } + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .getDefaultInstance(); + } - /** - * - * - *
            -             * Chunk resource name.
            -             * 
            - * - * string chunk = 1; - * - * @return The chunk. - */ - java.lang.String getChunk(); + public static final int CHUNK_INFO_FIELD_NUMBER = 2; - /** - * - * - *
            -             * Chunk resource name.
            -             * 
            - * - * string chunk = 1; - * - * @return The bytes for chunk. - */ - com.google.protobuf.ByteString getChunkBytes(); + /** + * + * + *
            +     * Chunk information.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * + * @return Whether the chunkInfo field is set. + */ + @java.lang.Override + public boolean hasChunkInfo() { + return contentCase_ == 2; + } - /** - * - * - *
            -             * Chunk textual content.
            -             * 
            - * - * string content = 2; - * - * @return The content. - */ - java.lang.String getContent(); + /** + * + * + *
            +     * Chunk information.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * + * @return The chunkInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo getChunkInfo() { + if (contentCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) content_; + } + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .getDefaultInstance(); + } - /** - * - * - *
            -             * Chunk textual content.
            -             * 
            - * - * string content = 2; - * - * @return The bytes for content. - */ - com.google.protobuf.ByteString getContentBytes(); + /** + * + * + *
            +     * Chunk information.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfoOrBuilder + getChunkInfoOrBuilder() { + if (contentCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) content_; + } + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .getDefaultInstance(); + } - /** - * - * - *
            -             * The relevance of the chunk for a given query. Values range from
            -             * 0.0 (completely irrelevant) to 1.0 (completely relevant).
            -             * This value is for informational purpose only. It may change for
            -             * the same query and chunk at any time due to a model retraining or
            -             * change in implementation.
            -             * 
            - * - * optional float relevance_score = 3; - * - * @return Whether the relevanceScore field is set. - */ - boolean hasRelevanceScore(); + public static final int STRUCTURED_DOCUMENT_INFO_FIELD_NUMBER = 3; - /** - * - * - *
            -             * The relevance of the chunk for a given query. Values range from
            -             * 0.0 (completely irrelevant) to 1.0 (completely relevant).
            -             * This value is for informational purpose only. It may change for
            -             * the same query and chunk at any time due to a model retraining or
            -             * change in implementation.
            -             * 
            - * - * optional float relevance_score = 3; - * - * @return The relevanceScore. - */ - float getRelevanceScore(); - } + /** + * + * + *
            +     * Structured document information.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; + * + * + * @return Whether the structuredDocumentInfo field is set. + */ + @java.lang.Override + public boolean hasStructuredDocumentInfo() { + return contentCase_ == 3; + } - /** - * - * - *
            -           * Chunk information.
            -           * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo} - */ - public static final class ChunkInfo extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo) - ChunkInfoOrBuilder { - private static final long serialVersionUID = 0L; + /** + * + * + *
            +     * Structured document information.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; + * + * + * @return The structuredDocumentInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + getStructuredDocumentInfo() { + if (contentCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) + content_; + } + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + .getDefaultInstance(); + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "ChunkInfo"); - } + /** + * + * + *
            +     * Structured document information.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfoOrBuilder + getStructuredDocumentInfoOrBuilder() { + if (contentCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) + content_; + } + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + .getDefaultInstance(); + } - // Use ChunkInfo.newBuilder() to construct. - private ChunkInfo(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + private byte memoizedIsInitialized = -1; - private ChunkInfo() { - chunk_ = ""; - content_ = ""; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_ChunkInfo_descriptor; - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_ChunkInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo.class, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo.Builder.class); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (contentCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) + content_); + } + if (contentCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) content_); + } + if (contentCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) + content_); + } + getUnknownFields().writeTo(output); + } - private int bitField0_; - public static final int CHUNK_FIELD_NUMBER = 1; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @SuppressWarnings("serial") - private volatile java.lang.Object chunk_ = ""; + size = 0; + if (contentCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo) + content_); + } + if (contentCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) content_); + } + if (contentCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) + content_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
            -             * Chunk resource name.
            -             * 
            - * - * string chunk = 1; - * - * @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; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Answer.Reference)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Answer.Reference other = + (com.google.cloud.discoveryengine.v1beta.Answer.Reference) obj; - /** - * - * - *
            -             * Chunk resource name.
            -             * 
            - * - * string chunk = 1; - * - * @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; - } - } + if (!getContentCase().equals(other.getContentCase())) return false; + switch (contentCase_) { + case 1: + if (!getUnstructuredDocumentInfo().equals(other.getUnstructuredDocumentInfo())) + return false; + break; + case 2: + if (!getChunkInfo().equals(other.getChunkInfo())) return false; + break; + case 3: + if (!getStructuredDocumentInfo().equals(other.getStructuredDocumentInfo())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static final int CONTENT_FIELD_NUMBER = 2; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (contentCase_) { + case 1: + hash = (37 * hash) + UNSTRUCTURED_DOCUMENT_INFO_FIELD_NUMBER; + hash = (53 * hash) + getUnstructuredDocumentInfo().hashCode(); + break; + case 2: + hash = (37 * hash) + CHUNK_INFO_FIELD_NUMBER; + hash = (53 * hash) + getChunkInfo().hashCode(); + break; + case 3: + hash = (37 * hash) + STRUCTURED_DOCUMENT_INFO_FIELD_NUMBER; + hash = (53 * hash) + getStructuredDocumentInfo().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @SuppressWarnings("serial") - private volatile java.lang.Object content_ = ""; + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -             * 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; - } - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -             * 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 com.google.cloud.discoveryengine.v1beta.Answer.Reference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int RELEVANCE_SCORE_FIELD_NUMBER = 3; - private float relevanceScore_ = 0F; + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -             * The relevance of the chunk for a given query. Values range from
            -             * 0.0 (completely irrelevant) to 1.0 (completely relevant).
            -             * This value is for informational purpose only. It may change for
            -             * the same query and chunk at any time due to a model retraining or
            -             * change in implementation.
            -             * 
            - * - * optional float relevance_score = 3; - * - * @return Whether the relevanceScore field is set. - */ - @java.lang.Override - public boolean hasRelevanceScore() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
            -             * The relevance of the chunk for a given query. Values range from
            -             * 0.0 (completely irrelevant) to 1.0 (completely relevant).
            -             * This value is for informational purpose only. It may change for
            -             * the same query and chunk at any time due to a model retraining or
            -             * change in implementation.
            -             * 
            - * - * optional float relevance_score = 3; - * - * @return The relevanceScore. - */ - @java.lang.Override - public float getRelevanceScore() { - return relevanceScore_; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private byte memoizedIsInitialized = -1; + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - memoizedIsInitialized = 1; - return true; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(chunk_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, chunk_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, content_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeFloat(3, relevanceScore_); - } - getUnknownFields().writeTo(output); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(chunk_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, chunk_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, content_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, relevanceScore_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .ChunkInfo - other = - (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo) - obj; + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - if (!getChunk().equals(other.getChunk())) return false; - if (!getContent().equals(other.getContent())) return false; - if (hasRelevanceScore() != other.hasRelevanceScore()) return false; - if (hasRelevanceScore()) { - if (java.lang.Float.floatToIntBits(getRelevanceScore()) - != java.lang.Float.floatToIntBits(other.getRelevanceScore())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CHUNK_FIELD_NUMBER; - hash = (53 * hash) + getChunk().hashCode(); - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().hashCode(); - if (hasRelevanceScore()) { - hash = (37 * hash) + RELEVANCE_SCORE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRelevanceScore()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.Reference prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - 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 toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +     * Reference.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Reference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Reference) + com.google.cloud.discoveryengine.v1beta.Answer.ReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_descriptor; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.class, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder.class); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + // Construct using com.google.cloud.discoveryengine.v1beta.Answer.Reference.newBuilder() + private Builder() {} - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (unstructuredDocumentInfoBuilder_ != null) { + unstructuredDocumentInfoBuilder_.clear(); + } + if (chunkInfoBuilder_ != null) { + chunkInfoBuilder_.clear(); + } + if (structuredDocumentInfoBuilder_ != null) { + structuredDocumentInfoBuilder_.clear(); + } + contentCase_ = 0; + content_ = null; + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_descriptor; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.getDefaultInstance(); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference build() { + com.google.cloud.discoveryengine.v1beta.Answer.Reference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference buildPartial() { + com.google.cloud.discoveryengine.v1beta.Answer.Reference result = + new com.google.cloud.discoveryengine.v1beta.Answer.Reference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Answer.Reference result) { + int from_bitField0_ = bitField0_; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.Answer.Reference result) { + result.contentCase_ = contentCase_; + result.content_ = this.content_; + if (contentCase_ == 1 && unstructuredDocumentInfoBuilder_ != null) { + result.content_ = unstructuredDocumentInfoBuilder_.build(); + } + if (contentCase_ == 2 && chunkInfoBuilder_ != null) { + result.content_ = chunkInfoBuilder_.build(); + } + if (contentCase_ == 3 && structuredDocumentInfoBuilder_ != null) { + result.content_ = structuredDocumentInfoBuilder_.build(); + } + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .ChunkInfo - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Answer.Reference) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Answer.Reference) other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Answer.Reference other) { + if (other == com.google.cloud.discoveryengine.v1beta.Answer.Reference.getDefaultInstance()) + return this; + switch (other.getContentCase()) { + case UNSTRUCTURED_DOCUMENT_INFO: + { + mergeUnstructuredDocumentInfo(other.getUnstructuredDocumentInfo()); + break; } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + case CHUNK_INFO: + { + mergeChunkInfo(other.getChunkInfo()); + break; + } + case STRUCTURED_DOCUMENT_INFO: + { + mergeStructuredDocumentInfo(other.getStructuredDocumentInfo()); + break; + } + case CONTENT_NOT_SET: + { + break; } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
            -             * Chunk information.
            -             * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo) - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .ChunkInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_ChunkInfo_descriptor; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_ChunkInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo.class, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo.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: + { + input.readMessage( + internalGetUnstructuredDocumentInfoFieldBuilder().getBuilder(), + extensionRegistry); + contentCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetChunkInfoFieldBuilder().getBuilder(), extensionRegistry); + contentCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetStructuredDocumentInfoFieldBuilder().getBuilder(), + extensionRegistry); + contentCase_ = 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; + } - // Construct using - // com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo.newBuilder() - private Builder() {} + private int contentCase_ = 0; + private java.lang.Object content_; - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + public ContentCase getContentCase() { + return ContentCase.forNumber(contentCase_); + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - chunk_ = ""; - content_ = ""; - relevanceScore_ = 0F; - return this; - } + public Builder clearContent() { + contentCase_ = 0; + content_ = null; + onChanged(); + return this; + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_ChunkInfo_descriptor; - } + private int bitField0_; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo.getDefaultInstance(); - } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfoOrBuilder> + unstructuredDocumentInfoBuilder_; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - build() { - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .ChunkInfo - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + /** + * + * + *
            +       * Unstructured document information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; + * + * + * @return Whether the unstructuredDocumentInfo field is set. + */ + @java.lang.Override + public boolean hasUnstructuredDocumentInfo() { + return contentCase_ == 1; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - buildPartial() { - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .ChunkInfo - result = - new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + /** + * + * + *
            +       * Unstructured document information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; + * + * + * @return The unstructuredDocumentInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + getUnstructuredDocumentInfo() { + if (unstructuredDocumentInfoBuilder_ == null) { + if (contentCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo) + content_; + } + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .getDefaultInstance(); + } else { + if (contentCase_ == 1) { + return unstructuredDocumentInfoBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .getDefaultInstance(); + } + } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.chunk_ = chunk_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.content_ = content_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.relevanceScore_ = relevanceScore_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } + /** + * + * + *
            +       * Unstructured document information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; + * + */ + public Builder setUnstructuredDocumentInfo( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo value) { + if (unstructuredDocumentInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + unstructuredDocumentInfoBuilder_.setMessage(value); + } + contentCase_ = 1; + return this; + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo) - other); - } else { - super.mergeFrom(other); - return this; - } - } + /** + * + * + *
            +       * Unstructured document information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; + * + */ + public Builder setUnstructuredDocumentInfo( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.Builder + builderForValue) { + if (unstructuredDocumentInfoBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + unstructuredDocumentInfoBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 1; + return this; + } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo.getDefaultInstance()) return this; - if (!other.getChunk().isEmpty()) { - chunk_ = other.chunk_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getContent().isEmpty()) { - content_ = other.content_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasRelevanceScore()) { - setRelevanceScore(other.getRelevanceScore()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + /** + * + * + *
            +       * Unstructured document information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; + * + */ + public Builder mergeUnstructuredDocumentInfo( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo value) { + if (unstructuredDocumentInfoBuilder_ == null) { + if (contentCase_ == 1 + && content_ + != com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo.getDefaultInstance()) { + content_ = + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .newBuilder( + (com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo) + content_) + .mergeFrom(value) + .buildPartial(); + } else { + content_ = value; + } + onChanged(); + } else { + if (contentCase_ == 1) { + unstructuredDocumentInfoBuilder_.mergeFrom(value); + } else { + unstructuredDocumentInfoBuilder_.setMessage(value); + } + } + contentCase_ = 1; + 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: - { - chunk_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - content_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 29: - { - relevanceScore_ = input.readFloat(); - bitField0_ |= 0x00000004; - break; - } // case 29 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } + /** + * + * + *
            +       * Unstructured document information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; + * + */ + public Builder clearUnstructuredDocumentInfo() { + if (unstructuredDocumentInfoBuilder_ == null) { + if (contentCase_ == 1) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 1) { + contentCase_ = 0; + content_ = null; + } + unstructuredDocumentInfoBuilder_.clear(); + } + return this; + } - private int bitField0_; + /** + * + * + *
            +       * Unstructured document information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .Builder + getUnstructuredDocumentInfoBuilder() { + return internalGetUnstructuredDocumentInfoFieldBuilder().getBuilder(); + } - private java.lang.Object chunk_ = ""; + /** + * + * + *
            +       * Unstructured document information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfoOrBuilder + getUnstructuredDocumentInfoOrBuilder() { + if ((contentCase_ == 1) && (unstructuredDocumentInfoBuilder_ != null)) { + return unstructuredDocumentInfoBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo) + content_; + } + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .getDefaultInstance(); + } + } - /** - * - * - *
            -               * Chunk resource name.
            -               * 
            - * - * string chunk = 1; - * - * @return The chunk. - */ - public java.lang.String getChunk() { - java.lang.Object ref = chunk_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chunk_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + /** + * + * + *
            +       * Unstructured document information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfoOrBuilder> + internalGetUnstructuredDocumentInfoFieldBuilder() { + if (unstructuredDocumentInfoBuilder_ == null) { + if (!(contentCase_ == 1)) { + content_ = + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .getDefaultInstance(); + } + unstructuredDocumentInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfo + .Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfoOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.Answer.Reference + .UnstructuredDocumentInfo) + content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 1; + onChanged(); + return unstructuredDocumentInfoBuilder_; + } - /** - * - * - *
            -               * Chunk resource name.
            -               * 
            - * - * string chunk = 1; - * - * @return The bytes for chunk. - */ - public com.google.protobuf.ByteString getChunkBytes() { - java.lang.Object ref = chunk_; - if (ref instanceof 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; - } - } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfoOrBuilder> + chunkInfoBuilder_; - /** - * - * - *
            -               * Chunk resource name.
            -               * 
            - * - * string chunk = 1; - * - * @param value The chunk to set. - * @return This builder for chaining. - */ - public Builder setChunk(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - chunk_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + /** + * + * + *
            +       * Chunk information.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * + * + * @return Whether the chunkInfo field is set. + */ + @java.lang.Override + public boolean hasChunkInfo() { + return contentCase_ == 2; + } - /** - * - * - *
            -               * Chunk resource name.
            -               * 
            - * - * string chunk = 1; - * - * @return This builder for chaining. - */ - public Builder clearChunk() { - chunk_ = getDefaultInstance().getChunk(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } + /** + * + * + *
            +       * Chunk information.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * + * + * @return The chunkInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo getChunkInfo() { + if (chunkInfoBuilder_ == null) { + if (contentCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) content_; + } + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .getDefaultInstance(); + } else { + if (contentCase_ == 2) { + return chunkInfoBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .getDefaultInstance(); + } + } - /** - * - * - *
            -               * Chunk resource name.
            -               * 
            - * - * string chunk = 1; - * - * @param value The bytes for chunk to set. - * @return This builder for chaining. - */ - public Builder setChunkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - chunk_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + /** + * + * + *
            +       * Chunk information.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * + */ + public Builder setChunkInfo( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo value) { + if (chunkInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + chunkInfoBuilder_.setMessage(value); + } + contentCase_ = 2; + return this; + } - private java.lang.Object content_ = ""; + /** + * + * + *
            +       * Chunk information.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * + */ + public Builder setChunkInfo( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.Builder + builderForValue) { + if (chunkInfoBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + chunkInfoBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 2; + return this; + } - /** - * - * - *
            -               * Chunk textual content.
            -               * 
            - * - * string content = 2; - * - * @return The content. - */ - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + /** + * + * + *
            +       * Chunk information.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * + */ + public Builder mergeChunkInfo( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo value) { + if (chunkInfoBuilder_ == null) { + if (contentCase_ == 2 + && content_ + != com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .getDefaultInstance()) { + content_ = + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.newBuilder( + (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) + content_) + .mergeFrom(value) + .buildPartial(); + } else { + content_ = value; + } + onChanged(); + } else { + if (contentCase_ == 2) { + chunkInfoBuilder_.mergeFrom(value); + } else { + chunkInfoBuilder_.setMessage(value); + } + } + contentCase_ = 2; + return this; + } - /** - * - * - *
            -               * Chunk textual content.
            -               * 
            - * - * string content = 2; - * - * @return The bytes for content. - */ - public com.google.protobuf.ByteString getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof 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; - } - } + /** + * + * + *
            +       * Chunk information.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * + */ + public Builder clearChunkInfo() { + if (chunkInfoBuilder_ == null) { + if (contentCase_ == 2) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 2) { + contentCase_ = 0; + content_ = null; + } + chunkInfoBuilder_.clear(); + } + return this; + } - /** - * - * - *
            -               * Chunk textual content.
            -               * 
            - * - * string content = 2; - * - * @param value The content to set. - * @return This builder for chaining. - */ - public Builder setContent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + /** + * + * + *
            +       * Chunk information.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.Builder + getChunkInfoBuilder() { + return internalGetChunkInfoFieldBuilder().getBuilder(); + } - /** - * - * - *
            -               * Chunk textual content.
            -               * 
            - * - * string content = 2; - * - * @return This builder for chaining. - */ - public Builder clearContent() { - content_ = getDefaultInstance().getContent(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
            -               * Chunk textual content.
            -               * 
            - * - * string content = 2; - * - * @param value The bytes for content to set. - * @return This builder for chaining. - */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - content_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + /** + * + * + *
            +       * Chunk information.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfoOrBuilder + getChunkInfoOrBuilder() { + if ((contentCase_ == 2) && (chunkInfoBuilder_ != null)) { + return chunkInfoBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) content_; + } + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .getDefaultInstance(); + } + } - private float relevanceScore_; + /** + * + * + *
            +       * Chunk information.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo chunk_info = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfoOrBuilder> + internalGetChunkInfoFieldBuilder() { + if (chunkInfoBuilder_ == null) { + if (!(contentCase_ == 2)) { + content_ = + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo + .getDefaultInstance(); + } + chunkInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfoOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfo) content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 2; + onChanged(); + return chunkInfoBuilder_; + } - /** - * - * - *
            -               * The relevance of the chunk for a given query. Values range from
            -               * 0.0 (completely irrelevant) to 1.0 (completely relevant).
            -               * This value is for informational purpose only. It may change for
            -               * the same query and chunk at any time due to a model retraining or
            -               * change in implementation.
            -               * 
            - * - * optional float relevance_score = 3; - * - * @return Whether the relevanceScore field is set. - */ - @java.lang.Override - public boolean hasRelevanceScore() { - return ((bitField0_ & 0x00000004) != 0); - } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + .Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Reference + .StructuredDocumentInfoOrBuilder> + structuredDocumentInfoBuilder_; - /** - * - * - *
            -               * The relevance of the chunk for a given query. Values range from
            -               * 0.0 (completely irrelevant) to 1.0 (completely relevant).
            -               * This value is for informational purpose only. It may change for
            -               * the same query and chunk at any time due to a model retraining or
            -               * change in implementation.
            -               * 
            - * - * optional float relevance_score = 3; - * - * @return The relevanceScore. - */ - @java.lang.Override - public float getRelevanceScore() { - return relevanceScore_; - } + /** + * + * + *
            +       * Structured document information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; + * + * + * @return Whether the structuredDocumentInfo field is set. + */ + @java.lang.Override + public boolean hasStructuredDocumentInfo() { + return contentCase_ == 3; + } - /** - * - * - *
            -               * The relevance of the chunk for a given query. Values range from
            -               * 0.0 (completely irrelevant) to 1.0 (completely relevant).
            -               * This value is for informational purpose only. It may change for
            -               * the same query and chunk at any time due to a model retraining or
            -               * change in implementation.
            -               * 
            - * - * optional float relevance_score = 3; - * - * @param value The relevanceScore to set. - * @return This builder for chaining. - */ - public Builder setRelevanceScore(float value) { + /** + * + * + *
            +       * Structured document information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; + * + * + * @return The structuredDocumentInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + getStructuredDocumentInfo() { + if (structuredDocumentInfoBuilder_ == null) { + if (contentCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) + content_; + } + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + .getDefaultInstance(); + } else { + if (contentCase_ == 3) { + return structuredDocumentInfoBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + .getDefaultInstance(); + } + } - relevanceScore_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } + /** + * + * + *
            +       * Structured document information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; + * + */ + public Builder setStructuredDocumentInfo( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo value) { + if (structuredDocumentInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + structuredDocumentInfoBuilder_.setMessage(value); + } + contentCase_ = 3; + return this; + } - /** - * - * - *
            -               * The relevance of the chunk for a given query. Values range from
            -               * 0.0 (completely irrelevant) to 1.0 (completely relevant).
            -               * This value is for informational purpose only. It may change for
            -               * the same query and chunk at any time due to a model retraining or
            -               * change in implementation.
            -               * 
            - * - * optional float relevance_score = 3; - * - * @return This builder for chaining. - */ - public Builder clearRelevanceScore() { - bitField0_ = (bitField0_ & ~0x00000004); - relevanceScore_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo) - } + /** + * + * + *
            +       * Structured document information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; + * + */ + public Builder setStructuredDocumentInfo( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo.Builder + builderForValue) { + if (structuredDocumentInfoBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + structuredDocumentInfoBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 3; + return this; + } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo) - private static final com.google.cloud.discoveryengine.v1beta.Answer.Step.Action - .Observation.SearchResult.ChunkInfo - DEFAULT_INSTANCE; + /** + * + * + *
            +       * Structured document information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; + * + */ + public Builder mergeStructuredDocumentInfo( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo value) { + if (structuredDocumentInfoBuilder_ == null) { + if (contentCase_ == 3 + && content_ + != com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + .getDefaultInstance()) { + content_ = + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + .newBuilder( + (com.google.cloud.discoveryengine.v1beta.Answer.Reference + .StructuredDocumentInfo) + content_) + .mergeFrom(value) + .buildPartial(); + } else { + content_ = value; + } + onChanged(); + } else { + if (contentCase_ == 3) { + structuredDocumentInfoBuilder_.mergeFrom(value); + } else { + structuredDocumentInfoBuilder_.setMessage(value); + } + } + contentCase_ = 3; + return this; + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo(); - } + /** + * + * + *
            +       * Structured document information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; + * + */ + public Builder clearStructuredDocumentInfo() { + if (structuredDocumentInfoBuilder_ == null) { + if (contentCase_ == 3) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 3) { + contentCase_ = 0; + content_ = null; + } + structuredDocumentInfoBuilder_.clear(); + } + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
            +       * Structured document information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo.Builder + getStructuredDocumentInfoBuilder() { + return internalGetStructuredDocumentInfoFieldBuilder().getBuilder(); + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChunkInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + /** + * + * + *
            +       * Structured document information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference + .StructuredDocumentInfoOrBuilder + getStructuredDocumentInfoOrBuilder() { + if ((contentCase_ == 3) && (structuredDocumentInfoBuilder_ != null)) { + return structuredDocumentInfoBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) + content_; + } + return com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + .getDefaultInstance(); + } + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * + * + *
            +       * Structured document information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + .Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Reference + .StructuredDocumentInfoOrBuilder> + internalGetStructuredDocumentInfoFieldBuilder() { + if (structuredDocumentInfoBuilder_ == null) { + if (!(contentCase_ == 3)) { + content_ = + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + .getDefaultInstance(); + } + structuredDocumentInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo + .Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Reference + .StructuredDocumentInfoOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfo) + content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 3; + onChanged(); + return structuredDocumentInfoBuilder_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Reference) + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Reference) + private static final com.google.cloud.discoveryengine.v1beta.Answer.Reference DEFAULT_INSTANCE; - private int bitField0_; - public static final int DOCUMENT_FIELD_NUMBER = 1; + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Answer.Reference(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object document_ = ""; + public static com.google.cloud.discoveryengine.v1beta.Answer.Reference getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - * - * - *
            -           * Document resource name.
            -           * 
            - * - * string document = 1; - * - * @return The document. - */ + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public java.lang.String getDocument() { - java.lang.Object ref = document_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - document_ = s; - return s; + public Reference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); } + return builder.buildPartial(); } + }; - /** - * - * - *
            -           * Document resource name.
            -           * 
            - * - * string document = 1; - * - * @return The bytes for document. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDocumentBytes() { - java.lang.Object ref = document_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - document_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static final int URI_FIELD_NUMBER = 2; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @SuppressWarnings("serial") - private volatile java.lang.Object uri_ = ""; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - /** - * - * - *
            -           * URI for the document.
            -           * 
            - * - * 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; - } - } + public interface BlobAttachmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.BlobAttachment) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
            -           * URI for the document.
            -           * 
            - * - * 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; - } - } + /** + * + * + *
            +     * Output only. The mime type and data of the blob.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the data field is set. + */ + boolean hasData(); - public static final int TITLE_FIELD_NUMBER = 3; + /** + * + * + *
            +     * Output only. The mime type and data of the blob.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The data. + */ + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob getData(); - @SuppressWarnings("serial") - private volatile java.lang.Object title_ = ""; + /** + * + * + *
            +     * Output only. The mime type and data of the blob.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.BlobOrBuilder getDataOrBuilder(); - /** - * - * - *
            -           * Title.
            -           * 
            - * - * string title = 3; - * - * @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; - } - } + /** + * + * + *
            +     * Output only. The attribution type of the blob.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for attributionType. + */ + int getAttributionTypeValue(); - /** - * - * - *
            -           * Title.
            -           * 
            - * - * string title = 3; - * - * @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; - } - } + /** + * + * + *
            +     * Output only. The attribution type of the blob.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The attributionType. + */ + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType + getAttributionType(); + } - public static final int SNIPPET_INFO_FIELD_NUMBER = 4; + /** + * + * + *
            +   * Stores binarydata attached to text answer, e.g. image, video, audio, etc.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.BlobAttachment} + */ + public static final class BlobAttachment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.BlobAttachment) + BlobAttachmentOrBuilder { + private static final long serialVersionUID = 0L; - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo> - snippetInfo_; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BlobAttachment"); + } - /** - * - * - *
            -           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -           * level snippets.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo> - getSnippetInfoList() { - return snippetInfo_; - } + // Use BlobAttachment.newBuilder() to construct. + private BlobAttachment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - /** - * - * - *
            -           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -           * level snippets.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfoOrBuilder> - getSnippetInfoOrBuilderList() { - return snippetInfo_; - } - - /** - * - * - *
            -           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -           * level snippets.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - @java.lang.Override - public int getSnippetInfoCount() { - return snippetInfo_.size(); - } - - /** - * - * - *
            -           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -           * level snippets.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .SnippetInfo - getSnippetInfo(int index) { - return snippetInfo_.get(index); - } + private BlobAttachment() { + attributionType_ = 0; + } - /** - * - * - *
            -           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -           * level snippets.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .SnippetInfoOrBuilder - getSnippetInfoOrBuilder(int index) { - return snippetInfo_.get(index); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_descriptor; + } - public static final int CHUNK_INFO_FIELD_NUMBER = 5; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.class, + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Builder.class); + } - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo> - chunkInfo_; + /** + * + * + *
            +     * The source of the blob.
            +     * 
            + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType} + */ + public enum AttributionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Unspecified attribution type.
            +       * 
            + * + * ATTRIBUTION_TYPE_UNSPECIFIED = 0; + */ + ATTRIBUTION_TYPE_UNSPECIFIED(0), + /** + * + * + *
            +       * The attachment data is from the corpus.
            +       * 
            + * + * CORPUS = 1; + */ + CORPUS(1), + /** + * + * + *
            +       * The attachment data is generated by the model through code
            +       * generation.
            +       * 
            + * + * GENERATED = 2; + */ + GENERATED(2), + UNRECOGNIZED(-1), + ; - /** - * - * - *
            -           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -           * populate chunk info.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo> - getChunkInfoList() { - return chunkInfo_; - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AttributionType"); + } - /** - * - * - *
            -           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -           * populate chunk info.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfoOrBuilder> - getChunkInfoOrBuilderList() { - return chunkInfo_; - } + /** + * + * + *
            +       * Unspecified attribution type.
            +       * 
            + * + * ATTRIBUTION_TYPE_UNSPECIFIED = 0; + */ + public static final int ATTRIBUTION_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
            -           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -           * populate chunk info.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - @java.lang.Override - public int getChunkInfoCount() { - return chunkInfo_.size(); - } + /** + * + * + *
            +       * The attachment data is from the corpus.
            +       * 
            + * + * CORPUS = 1; + */ + public static final int CORPUS_VALUE = 1; - /** - * - * - *
            -           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -           * populate chunk info.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .ChunkInfo - getChunkInfo(int index) { - return chunkInfo_.get(index); - } + /** + * + * + *
            +       * The attachment data is generated by the model through code
            +       * generation.
            +       * 
            + * + * GENERATED = 2; + */ + public static final int GENERATED_VALUE = 2; - /** - * - * - *
            -           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -           * populate chunk info.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .ChunkInfoOrBuilder - getChunkInfoOrBuilder(int index) { - return chunkInfo_.get(index); - } + 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 final int STRUCT_DATA_FIELD_NUMBER = 6; - private com.google.protobuf.Struct structData_; + /** + * @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 AttributionType valueOf(int value) { + return forNumber(value); + } - /** - * - * - *
            -           * Data representation.
            -           * The structured JSON data for the document.
            -           * It's populated from the struct data from the Document, or the
            -           * Chunk in search result.
            -           * 
            - * - * .google.protobuf.Struct struct_data = 6; - * - * @return Whether the structData field is set. - */ - @java.lang.Override - public boolean hasStructData() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
            -           * Data representation.
            -           * The structured JSON data for the document.
            -           * It's populated from the struct data from the Document, or the
            -           * Chunk in search result.
            -           * 
            - * - * .google.protobuf.Struct struct_data = 6; - * - * @return The structData. - */ - @java.lang.Override - public com.google.protobuf.Struct getStructData() { - return structData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : structData_; - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AttributionType forNumber(int value) { + switch (value) { + case 0: + return ATTRIBUTION_TYPE_UNSPECIFIED; + case 1: + return CORPUS; + case 2: + return GENERATED; + default: + return null; + } + } - /** - * - * - *
            -           * Data representation.
            -           * The structured JSON data for the document.
            -           * It's populated from the struct data from the Document, or the
            -           * Chunk in search result.
            -           * 
            - * - * .google.protobuf.Struct struct_data = 6; - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { - return structData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : structData_; - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } - private byte memoizedIsInitialized = -1; + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AttributionType findValueByNumber(int number) { + return AttributionType.forNumber(number); + } + }; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + 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()); + } - memoizedIsInitialized = 1; - return true; - } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, document_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, title_); - } - for (int i = 0; i < snippetInfo_.size(); i++) { - output.writeMessage(4, snippetInfo_.get(i)); - } - for (int i = 0; i < chunkInfo_.size(); i++) { - output.writeMessage(5, chunkInfo_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(6, getStructData()); - } - getUnknownFields().writeTo(output); - } + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.getDescriptor() + .getEnumTypes() + .get(0); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private static final AttributionType[] VALUES = values(); - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, document_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, title_); - } - for (int i = 0; i < snippetInfo_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, snippetInfo_.get(i)); - } - for (int i = 0; i < chunkInfo_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(5, chunkInfo_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStructData()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + public static AttributionType 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 boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - other = - (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult) - obj; + private final int value; - if (!getDocument().equals(other.getDocument())) return false; - if (!getUri().equals(other.getUri())) return false; - if (!getTitle().equals(other.getTitle())) return false; - if (!getSnippetInfoList().equals(other.getSnippetInfoList())) return false; - if (!getChunkInfoList().equals(other.getChunkInfoList())) return false; - if (hasStructData() != other.hasStructData()) return false; - if (hasStructData()) { - if (!getStructData().equals(other.getStructData())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + private AttributionType(int value) { + this.value = value; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; - hash = (53 * hash) + getDocument().hashCode(); - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - if (getSnippetInfoCount() > 0) { - hash = (37 * hash) + SNIPPET_INFO_FIELD_NUMBER; - hash = (53 * hash) + getSnippetInfoList().hashCode(); - } - if (getChunkInfoCount() > 0) { - hash = (37 * hash) + CHUNK_INFO_FIELD_NUMBER; - hash = (53 * hash) + getChunkInfoList().hashCode(); - } - if (hasStructData()) { - hash = (37 * hash) + STRUCT_DATA_FIELD_NUMBER; - hash = (53 * hash) + getStructData().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType) + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public interface BlobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob) + com.google.protobuf.MessageOrBuilder { - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +       * Output only. The media type (MIME type) of the generated or retrieved
            +       * data.
            +       * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mimeType. + */ + java.lang.String getMimeType(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +       * Output only. The media type (MIME type) of the generated or retrieved
            +       * data.
            +       * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mimeType. + */ + com.google.protobuf.ByteString getMimeTypeBytes(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +       * Output only. Raw bytes.
            +       * 
            + * + * bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The data. + */ + com.google.protobuf.ByteString getData(); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +     * The media type and data of the blob.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob} + */ + public static final class Blob extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob) + BlobOrBuilder { + private static final long serialVersionUID = 0L; - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Blob"); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + // Use Blob.newBuilder() to construct. + private Blob(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + private Blob() { + mimeType_ = ""; + data_ = com.google.protobuf.ByteString.EMPTY; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_Blob_descriptor; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_Blob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob.class, + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob.Builder.class); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static final int MIME_TYPE_FIELD_NUMBER = 1; - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + /** + * + * + *
            +       * Output only. The media type (MIME type) of the generated or retrieved
            +       * data.
            +       * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mimeType. + */ + @java.lang.Override + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
            +       * Output only. The media type (MIME type) of the generated or retrieved
            +       * data.
            +       * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mimeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static final int DATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
            +       * Output only. Raw bytes.
            +       * 
            + * + * bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + private byte memoizedIsInitialized = -1; - /** - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult) - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_descriptor; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.class, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.Builder.class); - } + memoizedIsInitialized = 1; + return true; + } - // Construct using - // com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, mimeType_); + } + if (!data_.isEmpty()) { + output.writeBytes(2, data_); + } + getUnknownFields().writeTo(output); + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetSnippetInfoFieldBuilder(); - internalGetChunkInfoFieldBuilder(); - internalGetStructDataFieldBuilder(); - } - } + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, mimeType_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, data_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - document_ = ""; - uri_ = ""; - title_ = ""; - if (snippetInfoBuilder_ == null) { - snippetInfo_ = java.util.Collections.emptyList(); - } else { - snippetInfo_ = null; - snippetInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - if (chunkInfoBuilder_ == null) { - chunkInfo_ = java.util.Collections.emptyList(); - } else { - chunkInfo_ = null; - chunkInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - structData_ = null; - if (structDataBuilder_ != null) { - structDataBuilder_.dispose(); - structDataBuilder_ = null; - } - return this; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob other = + (com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob) obj; - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_descriptor; - } + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getData().equals(other.getData())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.getDefaultInstance(); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult - build() { - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult - buildPartial() { - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - result = - new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - result) { - if (snippetInfoBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - snippetInfo_ = java.util.Collections.unmodifiableList(snippetInfo_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.snippetInfo_ = snippetInfo_; - } else { - result.snippetInfo_ = snippetInfoBuilder_.build(); - } - if (chunkInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - chunkInfo_ = java.util.Collections.unmodifiableList(chunkInfo_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.chunkInfo_ = chunkInfo_; - } else { - result.chunkInfo_ = chunkInfoBuilder_.build(); - } - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.document_ = document_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.uri_ = uri_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.title_ = title_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { - result.structData_ = - structDataBuilder_ == null ? structData_ : structDataBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob 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 mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult) - other); - } else { - super.mergeFrom(other); - return this; - } - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.getDefaultInstance()) return this; - if (!other.getDocument().isEmpty()) { - document_ = other.document_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (snippetInfoBuilder_ == null) { - if (!other.snippetInfo_.isEmpty()) { - if (snippetInfo_.isEmpty()) { - snippetInfo_ = other.snippetInfo_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureSnippetInfoIsMutable(); - snippetInfo_.addAll(other.snippetInfo_); - } - onChanged(); - } - } else { - if (!other.snippetInfo_.isEmpty()) { - if (snippetInfoBuilder_.isEmpty()) { - snippetInfoBuilder_.dispose(); - snippetInfoBuilder_ = null; - snippetInfo_ = other.snippetInfo_; - bitField0_ = (bitField0_ & ~0x00000008); - snippetInfoBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetSnippetInfoFieldBuilder() - : null; - } else { - snippetInfoBuilder_.addAllMessages(other.snippetInfo_); - } - } - } - if (chunkInfoBuilder_ == null) { - if (!other.chunkInfo_.isEmpty()) { - if (chunkInfo_.isEmpty()) { - chunkInfo_ = other.chunkInfo_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureChunkInfoIsMutable(); - chunkInfo_.addAll(other.chunkInfo_); - } - onChanged(); - } - } else { - if (!other.chunkInfo_.isEmpty()) { - if (chunkInfoBuilder_.isEmpty()) { - chunkInfoBuilder_.dispose(); - chunkInfoBuilder_ = null; - chunkInfo_ = other.chunkInfo_; - bitField0_ = (bitField0_ & ~0x00000010); - chunkInfoBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetChunkInfoFieldBuilder() - : null; - } else { - chunkInfoBuilder_.addAllMessages(other.chunkInfo_); - } - } - } - if (other.hasStructData()) { - mergeStructData(other.getStructData()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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: - { - document_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action - .Observation.SearchResult.SnippetInfo.parser(), - extensionRegistry); - if (snippetInfoBuilder_ == null) { - ensureSnippetInfoIsMutable(); - snippetInfo_.add(m); - } else { - snippetInfoBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action - .Observation.SearchResult.ChunkInfo.parser(), - extensionRegistry); - if (chunkInfoBuilder_ == null) { - ensureChunkInfoIsMutable(); - chunkInfo_.add(m); - } else { - chunkInfoBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: - { - input.readMessage( - internalGetStructDataFieldBuilder().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; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - private int bitField0_; + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - private java.lang.Object document_ = ""; + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -             * Document resource name.
            -             * 
            - * - * string document = 1; - * - * @return The document. - */ - public java.lang.String getDocument() { - java.lang.Object ref = document_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - document_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
            -             * Document resource name.
            -             * 
            - * - * string document = 1; - * - * @return The bytes for document. - */ - public com.google.protobuf.ByteString getDocumentBytes() { - java.lang.Object ref = document_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - document_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -             * Document resource name.
            -             * 
            - * - * string document = 1; - * - * @param value The document to set. - * @return This builder for chaining. - */ - public Builder setDocument(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - document_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - * - * - *
            -             * Document resource name.
            -             * 
            - * - * string document = 1; - * - * @return This builder for chaining. - */ - public Builder clearDocument() { - document_ = getDefaultInstance().getDocument(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
            -             * Document resource name.
            -             * 
            - * - * string document = 1; - * - * @param value The bytes for document to set. - * @return This builder for chaining. - */ - public Builder setDocumentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - document_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private java.lang.Object uri_ = ""; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * - * - *
            -             * URI for the document.
            -             * 
            - * - * 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; - } - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * - * - *
            -             * URI for the document.
            -             * 
            - * - * 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 for the document.
            -             * 
            - * - * 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; - } + /** + * + * + *
            +       * The media type and data of the blob.
            +       * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob) + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.BlobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_Blob_descriptor; + } - /** - * - * - *
            -             * URI for the document.
            -             * 
            - * - * string uri = 2; - * - * @return This builder for chaining. - */ - public Builder clearUri() { - uri_ = getDefaultInstance().getUri(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_Blob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob.class, + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob.Builder.class); + } - /** - * - * - *
            -             * URI for the document.
            -             * 
            - * - * 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; - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob.newBuilder() + private Builder() {} - private java.lang.Object title_ = ""; + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - /** - * - * - *
            -             * Title.
            -             * 
            - * - * string title = 3; - * - * @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; - } - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mimeType_ = ""; + data_ = com.google.protobuf.ByteString.EMPTY; + return this; + } - /** - * - * - *
            -             * Title.
            -             * 
            - * - * string title = 3; - * - * @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; - } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_Blob_descriptor; + } - /** - * - * - *
            -             * Title.
            -             * 
            - * - * string title = 3; - * - * @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_ |= 0x00000004; - onChanged(); - return this; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob + .getDefaultInstance(); + } - /** - * - * - *
            -             * Title.
            -             * 
            - * - * string title = 3; - * - * @return This builder for chaining. - */ - public Builder clearTitle() { - title_ = getDefaultInstance().getTitle(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob build() { + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * - * - *
            -             * Title.
            -             * 
            - * - * string title = 3; - * - * @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_ |= 0x00000004; - onChanged(); - return this; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob buildPartial() { + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob result = + new com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - private java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo> - snippetInfo_ = java.util.Collections.emptyList(); + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mimeType_ = mimeType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.data_ = data_; + } + } - private void ensureSnippetInfoIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - snippetInfo_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo>(snippetInfo_); - bitField0_ |= 0x00000008; - } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob) other); + } else { + super.mergeFrom(other); + return this; + } + } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfoOrBuilder> - snippetInfoBuilder_; + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob + .getDefaultInstance()) return this; + if (!other.getMimeType().isEmpty()) { + mimeType_ = other.mimeType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getData().isEmpty()) { + setData(other.getData()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
            -             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -             * level snippets.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo> - getSnippetInfoList() { - if (snippetInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(snippetInfo_); - } else { - return snippetInfoBuilder_.getMessageList(); - } - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * - * - *
            -             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -             * level snippets.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - public int getSnippetInfoCount() { - if (snippetInfoBuilder_ == null) { - return snippetInfo_.size(); - } else { - return snippetInfoBuilder_.getCount(); - } - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + data_ = 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; + } - /** - * - * - *
            -             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -             * level snippets.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo - getSnippetInfo(int index) { - if (snippetInfoBuilder_ == null) { - return snippetInfo_.get(index); - } else { - return snippetInfoBuilder_.getMessage(index); - } - } + private int bitField0_; - /** - * - * - *
            -             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -             * level snippets.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - public Builder setSnippetInfo( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .SnippetInfo - value) { - if (snippetInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnippetInfoIsMutable(); - snippetInfo_.set(index, value); - onChanged(); - } else { - snippetInfoBuilder_.setMessage(index, value); - } - return this; - } + private java.lang.Object mimeType_ = ""; - /** - * - * - *
            -             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -             * level snippets.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - public Builder setSnippetInfo( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .SnippetInfo.Builder - builderForValue) { - if (snippetInfoBuilder_ == null) { - ensureSnippetInfoIsMutable(); - snippetInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - snippetInfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } + /** + * + * + *
            +         * Output only. The media type (MIME type) of the generated or retrieved
            +         * data.
            +         * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mimeType. + */ + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * - * - *
            -             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -             * level snippets.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - public Builder addSnippetInfo( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .SnippetInfo - value) { - if (snippetInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnippetInfoIsMutable(); - snippetInfo_.add(value); - onChanged(); - } else { - snippetInfoBuilder_.addMessage(value); - } - return this; - } + /** + * + * + *
            +         * Output only. The media type (MIME type) of the generated or retrieved
            +         * data.
            +         * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mimeType. + */ + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * - * - *
            -             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -             * level snippets.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - public Builder addSnippetInfo( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .SnippetInfo - value) { - if (snippetInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnippetInfoIsMutable(); - snippetInfo_.add(index, value); - onChanged(); - } else { - snippetInfoBuilder_.addMessage(index, value); - } - return this; - } + /** + * + * + *
            +         * Output only. The media type (MIME type) of the generated or retrieved
            +         * data.
            +         * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mimeType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
            -             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -             * level snippets.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - public Builder addSnippetInfo( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .SnippetInfo.Builder - builderForValue) { - if (snippetInfoBuilder_ == null) { - ensureSnippetInfoIsMutable(); - snippetInfo_.add(builderForValue.build()); - onChanged(); - } else { - snippetInfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } + /** + * + * + *
            +         * Output only. The media type (MIME type) of the generated or retrieved
            +         * data.
            +         * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - /** - * - * - *
            -             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -             * level snippets.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - public Builder addSnippetInfo( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .SnippetInfo.Builder - builderForValue) { - if (snippetInfoBuilder_ == null) { - ensureSnippetInfoIsMutable(); - snippetInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - snippetInfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } + /** + * + * + *
            +         * Output only. The media type (MIME type) of the generated or retrieved
            +         * data.
            +         * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
            -             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -             * level snippets.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - public Builder addAllSnippetInfo( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo> - values) { - if (snippetInfoBuilder_ == null) { - ensureSnippetInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snippetInfo_); - onChanged(); - } else { - snippetInfoBuilder_.addAllMessages(values); - } - return this; - } + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; - /** - * - * - *
            -             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -             * level snippets.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - public Builder clearSnippetInfo() { - if (snippetInfoBuilder_ == null) { - snippetInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - snippetInfoBuilder_.clear(); - } - return this; - } + /** + * + * + *
            +         * Output only. Raw bytes.
            +         * 
            + * + * bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } - /** - * - * - *
            -             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -             * level snippets.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - public Builder removeSnippetInfo(int index) { - if (snippetInfoBuilder_ == null) { - ensureSnippetInfoIsMutable(); - snippetInfo_.remove(index); - onChanged(); - } else { - snippetInfoBuilder_.remove(index); + /** + * + * + *
            +         * Output only. Raw bytes.
            +         * 
            + * + * bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The data to set. + * @return This builder for chaining. + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. Raw bytes.
            +         * 
            + * + * bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearData() { + bitField0_ = (bitField0_ & ~0x00000002); + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob) + private static final com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob(); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Blob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); } - return this; + return builder.buildPartial(); } + }; - /** - * - * - *
            -             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -             * level snippets.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo.Builder - getSnippetInfoBuilder(int index) { - return internalGetSnippetInfoFieldBuilder().getBuilder(index); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
            -             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -             * level snippets.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfoOrBuilder - getSnippetInfoOrBuilder(int index) { - if (snippetInfoBuilder_ == null) { - return snippetInfo_.get(index); - } else { - return snippetInfoBuilder_.getMessageOrBuilder(index); - } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * - * - *
            -             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -             * level snippets.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfoOrBuilder> - getSnippetInfoOrBuilderList() { - if (snippetInfoBuilder_ != null) { - return snippetInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(snippetInfo_); - } - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - /** - * - * - *
            -             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -             * level snippets.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo.Builder - addSnippetInfoBuilder() { - return internalGetSnippetInfoFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo.getDefaultInstance()); - } + private int bitField0_; + public static final int DATA_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data_; - /** - * - * - *
            -             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -             * level snippets.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo.Builder - addSnippetInfoBuilder(int index) { - return internalGetSnippetInfoFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo.getDefaultInstance()); - } + /** + * + * + *
            +     * Output only. The mime type and data of the blob.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the data field is set. + */ + @java.lang.Override + public boolean hasData() { + return ((bitField0_ & 0x00000001) != 0); + } - /** - * - * - *
            -             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            -             * level snippets.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * - */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo.Builder> - getSnippetInfoBuilderList() { - return internalGetSnippetInfoFieldBuilder().getBuilderList(); - } + /** + * + * + *
            +     * Output only. The mime type and data of the blob.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The data. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob getData() { + return data_ == null + ? com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob.getDefaultInstance() + : data_; + } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfoOrBuilder> - internalGetSnippetInfoFieldBuilder() { - if (snippetInfoBuilder_ == null) { - snippetInfoBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfo.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.SnippetInfoOrBuilder>( - snippetInfo_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - snippetInfo_ = null; - } - return snippetInfoBuilder_; - } + /** + * + * + *
            +     * Output only. The mime type and data of the blob.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.BlobOrBuilder + getDataOrBuilder() { + return data_ == null + ? com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob.getDefaultInstance() + : data_; + } - private java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo> - chunkInfo_ = java.util.Collections.emptyList(); + public static final int ATTRIBUTION_TYPE_FIELD_NUMBER = 2; + private int attributionType_ = 0; - private void ensureChunkInfoIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - chunkInfo_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo>(chunkInfo_); - bitField0_ |= 0x00000010; - } - } + /** + * + * + *
            +     * Output only. The attribution type of the blob.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for attributionType. + */ + @java.lang.Override + public int getAttributionTypeValue() { + return attributionType_; + } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfoOrBuilder> - chunkInfoBuilder_; + /** + * + * + *
            +     * Output only. The attribution type of the blob.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The attributionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType + getAttributionType() { + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType result = + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType.forNumber( + attributionType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType + .UNRECOGNIZED + : result; + } - /** - * - * - *
            -             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -             * populate chunk info.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo> - getChunkInfoList() { - if (chunkInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(chunkInfo_); - } else { - return chunkInfoBuilder_.getMessageList(); - } - } + private byte memoizedIsInitialized = -1; - /** - * - * - *
            -             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -             * populate chunk info.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - public int getChunkInfoCount() { - if (chunkInfoBuilder_ == null) { - return chunkInfo_.size(); - } else { - return chunkInfoBuilder_.getCount(); - } - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * - * - *
            -             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -             * populate chunk info.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo - getChunkInfo(int index) { - if (chunkInfoBuilder_ == null) { - return chunkInfo_.get(index); - } else { - return chunkInfoBuilder_.getMessage(index); - } - } + memoizedIsInitialized = 1; + return true; + } - /** - * - * - *
            -             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -             * populate chunk info.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - public Builder setChunkInfo( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .ChunkInfo - value) { - if (chunkInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChunkInfoIsMutable(); - chunkInfo_.set(index, value); - onChanged(); - } else { - chunkInfoBuilder_.setMessage(index, value); - } - return this; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getData()); + } + if (attributionType_ + != com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType + .ATTRIBUTION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, attributionType_); + } + getUnknownFields().writeTo(output); + } - /** - * - * - *
            -             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -             * populate chunk info.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - public Builder setChunkInfo( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .ChunkInfo.Builder - builderForValue) { - if (chunkInfoBuilder_ == null) { - ensureChunkInfoIsMutable(); - chunkInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - chunkInfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - * - * - *
            -             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -             * populate chunk info.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - public Builder addChunkInfo( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .ChunkInfo - value) { - if (chunkInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChunkInfoIsMutable(); - chunkInfo_.add(value); - onChanged(); - } else { - chunkInfoBuilder_.addMessage(value); - } - return this; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getData()); + } + if (attributionType_ + != com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType + .ATTRIBUTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, attributionType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
            -             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -             * populate chunk info.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - public Builder addChunkInfo( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .ChunkInfo - value) { - if (chunkInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChunkInfoIsMutable(); - chunkInfo_.add(index, value); - onChanged(); - } else { - chunkInfoBuilder_.addMessage(index, value); - } - return this; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment other = + (com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment) obj; - /** - * - * - *
            -             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -             * populate chunk info.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - public Builder addChunkInfo( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .ChunkInfo.Builder - builderForValue) { - if (chunkInfoBuilder_ == null) { - ensureChunkInfoIsMutable(); - chunkInfo_.add(builderForValue.build()); - onChanged(); - } else { - chunkInfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData().equals(other.getData())) return false; + } + if (attributionType_ != other.attributionType_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - /** - * - * - *
            -             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -             * populate chunk info.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - public Builder addChunkInfo( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .ChunkInfo.Builder - builderForValue) { - if (chunkInfoBuilder_ == null) { - ensureChunkInfoIsMutable(); - chunkInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - chunkInfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + hash = (37 * hash) + ATTRIBUTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + attributionType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - * - * - *
            -             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -             * populate chunk info.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - public Builder addAllChunkInfo( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo> - values) { - if (chunkInfoBuilder_ == null) { - ensureChunkInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, chunkInfo_); - onChanged(); - } else { - chunkInfoBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
            -             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -             * populate chunk info.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - public Builder clearChunkInfo() { - if (chunkInfoBuilder_ == null) { - chunkInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - chunkInfoBuilder_.clear(); - } - return this; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -             * populate chunk info.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - public Builder removeChunkInfo(int index) { - if (chunkInfoBuilder_ == null) { - ensureChunkInfoIsMutable(); - chunkInfo_.remove(index); - onChanged(); - } else { - chunkInfoBuilder_.remove(index); - } - return this; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -             * populate chunk info.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo.Builder - getChunkInfoBuilder(int index) { - return internalGetChunkInfoFieldBuilder().getBuilder(index); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -             * populate chunk info.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfoOrBuilder - getChunkInfoOrBuilder(int index) { - if (chunkInfoBuilder_ == null) { - return chunkInfo_.get(index); - } else { - return chunkInfoBuilder_.getMessageOrBuilder(index); - } - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -             * populate chunk info.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfoOrBuilder> - getChunkInfoOrBuilderList() { - if (chunkInfoBuilder_ != null) { - return chunkInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(chunkInfo_); - } - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -             * populate chunk info.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo.Builder - addChunkInfoBuilder() { - return internalGetChunkInfoFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo.getDefaultInstance()); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -             * populate chunk info.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo.Builder - addChunkInfoBuilder(int index) { - return internalGetChunkInfoFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo.getDefaultInstance()); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
            -             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            -             * populate chunk info.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * - */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo.Builder> - getChunkInfoBuilderList() { - return internalGetChunkInfoFieldBuilder().getBuilderList(); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfoOrBuilder> - internalGetChunkInfoFieldBuilder() { - if (chunkInfoBuilder_ == null) { - chunkInfoBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfo.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.ChunkInfoOrBuilder>( - chunkInfo_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - chunkInfo_ = null; - } - return chunkInfoBuilder_; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - private com.google.protobuf.Struct structData_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - structDataBuilder_; + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -             * Data representation.
            -             * The structured JSON data for the document.
            -             * It's populated from the struct data from the Document, or the
            -             * Chunk in search result.
            -             * 
            - * - * .google.protobuf.Struct struct_data = 6; - * - * @return Whether the structData field is set. - */ - public boolean hasStructData() { - return ((bitField0_ & 0x00000020) != 0); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
            -             * Data representation.
            -             * The structured JSON data for the document.
            -             * It's populated from the struct data from the Document, or the
            -             * Chunk in search result.
            -             * 
            - * - * .google.protobuf.Struct struct_data = 6; - * - * @return The structData. - */ - public com.google.protobuf.Struct getStructData() { - if (structDataBuilder_ == null) { - return structData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : structData_; - } else { - return structDataBuilder_.getMessage(); - } - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -             * Data representation.
            -             * The structured JSON data for the document.
            -             * It's populated from the struct data from the Document, or the
            -             * Chunk in search result.
            -             * 
            - * - * .google.protobuf.Struct struct_data = 6; - */ - public Builder setStructData(com.google.protobuf.Struct value) { - if (structDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - structData_ = value; - } else { - structDataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - * - * - *
            -             * Data representation.
            -             * The structured JSON data for the document.
            -             * It's populated from the struct data from the Document, or the
            -             * Chunk in search result.
            -             * 
            - * - * .google.protobuf.Struct struct_data = 6; - */ - public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue) { - if (structDataBuilder_ == null) { - structData_ = builderForValue.build(); - } else { - structDataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
            -             * Data representation.
            -             * The structured JSON data for the document.
            -             * It's populated from the struct data from the Document, or the
            -             * Chunk in search result.
            -             * 
            - * - * .google.protobuf.Struct struct_data = 6; - */ - public Builder mergeStructData(com.google.protobuf.Struct value) { - if (structDataBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && structData_ != null - && structData_ != com.google.protobuf.Struct.getDefaultInstance()) { - getStructDataBuilder().mergeFrom(value); - } else { - structData_ = value; - } - } else { - structDataBuilder_.mergeFrom(value); - } - if (structData_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * - * - *
            -             * Data representation.
            -             * The structured JSON data for the document.
            -             * It's populated from the struct data from the Document, or the
            -             * Chunk in search result.
            -             * 
            - * - * .google.protobuf.Struct struct_data = 6; - */ - public Builder clearStructData() { - bitField0_ = (bitField0_ & ~0x00000020); - structData_ = null; - if (structDataBuilder_ != null) { - structDataBuilder_.dispose(); - structDataBuilder_ = null; - } - onChanged(); - return this; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * - * - *
            -             * Data representation.
            -             * The structured JSON data for the document.
            -             * It's populated from the struct data from the Document, or the
            -             * Chunk in search result.
            -             * 
            - * - * .google.protobuf.Struct struct_data = 6; - */ - public com.google.protobuf.Struct.Builder getStructDataBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return internalGetStructDataFieldBuilder().getBuilder(); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * - * - *
            -             * Data representation.
            -             * The structured JSON data for the document.
            -             * It's populated from the struct data from the Document, or the
            -             * Chunk in search result.
            -             * 
            - * - * .google.protobuf.Struct struct_data = 6; - */ - public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { - if (structDataBuilder_ != null) { - return structDataBuilder_.getMessageOrBuilder(); - } else { - return structData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : structData_; - } - } + /** + * + * + *
            +     * Stores binarydata attached to text answer, e.g. image, video, audio, etc.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.BlobAttachment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.BlobAttachment) + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_descriptor; + } - /** - * - * - *
            -             * Data representation.
            -             * The structured JSON data for the document.
            -             * It's populated from the struct data from the Document, or the
            -             * Chunk in search result.
            -             * 
            - * - * .google.protobuf.Struct struct_data = 6; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - internalGetStructDataFieldBuilder() { - if (structDataBuilder_ == null) { - structDataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getStructData(), getParentForChildren(), isClean()); - structData_ = null; - } - return structDataBuilder_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.class, + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Builder.class); + } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult) - } + // Construct using com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult) - private static final com.google.cloud.discoveryengine.v1beta.Answer.Step.Action - .Observation.SearchResult - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult(); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDataFieldBuilder(); + } + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + data_ = null; + if (dataBuilder_ != null) { + dataBuilder_.dispose(); + dataBuilder_ = null; } + attributionType_ = 0; + return this; + } - public static final int SEARCH_RESULTS_FIELD_NUMBER = 2; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_descriptor; + } - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult> - searchResults_; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.getDefaultInstance(); + } - /** - * - * - *
            -         * Search results observed by the search action, it can be snippets info
            -         * or chunk info, depending on the citation type set by the user.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult> - getSearchResultsList() { - return searchResults_; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment build() { + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - /** - * - * - *
            -         * Search results observed by the search action, it can be snippets info
            -         * or chunk info, depending on the citation type set by the user.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResultOrBuilder> - getSearchResultsOrBuilderList() { - return searchResults_; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment buildPartial() { + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment result = + new com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment(this); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } - /** - * - * - *
            -         * Search results observed by the search action, it can be snippets info
            -         * or chunk info, depending on the citation type set by the user.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - @java.lang.Override - public int getSearchResultsCount() { - return searchResults_.size(); + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.data_ = dataBuilder_ == null ? data_ : dataBuilder_.build(); + to_bitField0_ |= 0x00000001; } - - /** - * - * - *
            -         * Search results observed by the search action, it can be snippets info
            -         * or chunk info, depending on the citation type set by the user.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - getSearchResults(int index) { - return searchResults_.get(index); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attributionType_ = attributionType_; } + result.bitField0_ |= to_bitField0_; + } - /** - * - * - *
            -         * Search results observed by the search action, it can be snippets info
            -         * or chunk info, depending on the citation type set by the user.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResultOrBuilder - getSearchResultsOrBuilder(int index) { - return searchResults_.get(index); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment) other); + } else { + super.mergeFrom(other); + return this; } + } - private byte memoizedIsInitialized = -1; + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.getDefaultInstance()) + return this; + if (other.hasData()) { + mergeData(other.getData()); + } + if (other.attributionType_ != 0) { + setAttributionTypeValue(other.getAttributionTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public final boolean isInitialized() { + return true; + } - memoizedIsInitialized = 1; - 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(internalGetDataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + attributionType_ = 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; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < searchResults_.size(); i++) { - output.writeMessage(2, searchResults_.get(i)); - } - getUnknownFields().writeTo(output); - } + private int bitField0_; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob, + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.BlobOrBuilder> + dataBuilder_; - size = 0; - for (int i = 0; i < searchResults_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, searchResults_.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.v1beta.Answer.Step.Action.Observation)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation other = - (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation) obj; + /** + * + * + *
            +       * Output only. The mime type and data of the blob.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the data field is set. + */ + public boolean hasData() { + return ((bitField0_ & 0x00000001) != 0); + } - if (!getSearchResultsList().equals(other.getSearchResultsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + /** + * + * + *
            +       * Output only. The mime type and data of the blob.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The data. + */ + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob getData() { + if (dataBuilder_ == null) { + return data_ == null + ? com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob + .getDefaultInstance() + : data_; + } else { + return dataBuilder_.getMessage(); } + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSearchResultsCount() > 0) { - hash = (37 * hash) + SEARCH_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + getSearchResultsList().hashCode(); + /** + * + * + *
            +       * Output only. The mime type and data of the blob.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setData( + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + data_ = value; + } else { + dataBuilder_.setMessage(value); } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** + * + * + *
            +       * Output only. The mime type and data of the blob.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setData( + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob.Builder + builderForValue) { + if (dataBuilder_ == null) { + data_ = builderForValue.build(); + } else { + dataBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
            +       * Output only. The mime type and data of the blob.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeData( + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob value) { + if (dataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && data_ != null + && data_ + != com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob + .getDefaultInstance()) { + getDataBuilder().mergeFrom(value); + } else { + data_ = value; + } + } else { + dataBuilder_.mergeFrom(value); } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + if (data_ != null) { + bitField0_ |= 0x00000001; + onChanged(); } + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
            +       * Output only. The mime type and data of the blob.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearData() { + bitField0_ = (bitField0_ & ~0x00000001); + data_ = null; + if (dataBuilder_ != null) { + dataBuilder_.dispose(); + dataBuilder_ = null; } + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +       * Output only. The mime type and data of the blob.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob.Builder + getDataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetDataFieldBuilder().getBuilder(); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
            +       * Output only. The mime type and data of the blob.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.BlobOrBuilder + getDataOrBuilder() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilder(); + } else { + return data_ == null + ? com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob + .getDefaultInstance() + : data_; } + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + /** + * + * + *
            +       * Output only. The mime type and data of the blob.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob, + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.BlobOrBuilder> + internalGetDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob, + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Blob.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.BlobOrBuilder>( + getData(), getParentForChildren(), isClean()); + data_ = null; } + return dataBuilder_; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + private int attributionType_ = 0; - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + /** + * + * + *
            +       * Output only. The attribution type of the blob.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for attributionType. + */ + @java.lang.Override + public int getAttributionTypeValue() { + return attributionType_; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +       * Output only. The attribution type of the blob.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for attributionType to set. + * @return This builder for chaining. + */ + public Builder setAttributionTypeValue(int value) { + attributionType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +       * Output only. The attribution type of the blob.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The attributionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType + getAttributionType() { + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType result = + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType.forNumber( + attributionType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType + .UNRECOGNIZED + : result; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + /** + * + * + *
            +       * Output only. The attribution type of the blob.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The attributionType to set. + * @return This builder for chaining. + */ + public Builder setAttributionType( + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000002; + attributionType_ = value.getNumber(); + onChanged(); + return this; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
            +       * Output only. The attribution type of the blob.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAttributionType() { + bitField0_ = (bitField0_ & ~0x00000002); + attributionType_ = 0; + onChanged(); + return this; + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.BlobAttachment) + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.BlobAttachment) + private static final com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment + DEFAULT_INSTANCE; - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment(); + } - /** - * - * - *
            -         * Observation.
            -         * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation) - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.ObservationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_descriptor; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.class, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.Builder - .class); + public BlobAttachment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } + }; - // Construct using - // com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.newBuilder() - private Builder() {} + public static com.google.protobuf.Parser parser() { + return PARSER; + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (searchResultsBuilder_ == null) { - searchResults_ = java.util.Collections.emptyList(); - } else { - searchResults_ = null; - searchResultsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_descriptor; - } + public interface StepOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Step) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .getDefaultInstance(); - } + /** + * + * + *
            +     * The state of the step.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.State state = 1; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation build() { - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + /** + * + * + *
            +     * The state of the step.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.State state = 1; + * + * @return The state. + */ + com.google.cloud.discoveryengine.v1beta.Answer.Step.State getState(); - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - buildPartial() { - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation result = - new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + /** + * + * + *
            +     * The description of the step.
            +     * 
            + * + * string description = 2; + * + * @return The description. + */ + java.lang.String getDescription(); - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation result) { - if (searchResultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - searchResults_ = java.util.Collections.unmodifiableList(searchResults_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.searchResults_ = searchResults_; - } else { - result.searchResults_ = searchResultsBuilder_.build(); - } - } + /** + * + * + *
            +     * The description of the step.
            +     * 
            + * + * string description = 2; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation result) { - int from_bitField0_ = bitField0_; - } + /** + * + * + *
            +     * The thought of the step.
            +     * 
            + * + * string thought = 3; + * + * @return The thought. + */ + java.lang.String getThought(); - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation) other); - } else { - super.mergeFrom(other); - return this; - } - } + /** + * + * + *
            +     * The thought of the step.
            +     * 
            + * + * string thought = 3; + * + * @return The bytes for thought. + */ + com.google.protobuf.ByteString getThoughtBytes(); - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation other) { - if (other - == com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .getDefaultInstance()) return this; - if (searchResultsBuilder_ == null) { - if (!other.searchResults_.isEmpty()) { - if (searchResults_.isEmpty()) { - searchResults_ = other.searchResults_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSearchResultsIsMutable(); - searchResults_.addAll(other.searchResults_); - } - onChanged(); - } - } else { - if (!other.searchResults_.isEmpty()) { - if (searchResultsBuilder_.isEmpty()) { - searchResultsBuilder_.dispose(); - searchResultsBuilder_ = null; - searchResults_ = other.searchResults_; - bitField0_ = (bitField0_ & ~0x00000001); - searchResultsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetSearchResultsFieldBuilder() - : null; - } else { - searchResultsBuilder_.addAllMessages(other.searchResults_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + /** + * + * + *
            +     * Actions.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + java.util.List getActionsList(); - @java.lang.Override - public final boolean isInitialized() { - return true; - } + /** + * + * + *
            +     * Actions.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action getActions(int index); - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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: - { - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult - m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action - .Observation.SearchResult.parser(), - extensionRegistry); - if (searchResultsBuilder_ == null) { - ensureSearchResultsIsMutable(); - searchResults_.add(m); - } else { - searchResultsBuilder_.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; - } + /** + * + * + *
            +     * Actions.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + int getActionsCount(); - private int bitField0_; + /** + * + * + *
            +     * Actions.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + java.util.List + getActionsOrBuilderList(); - private java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult> - searchResults_ = java.util.Collections.emptyList(); + /** + * + * + *
            +     * Actions.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + com.google.cloud.discoveryengine.v1beta.Answer.Step.ActionOrBuilder getActionsOrBuilder( + int index); + } - private void ensureSearchResultsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - searchResults_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult>(searchResults_); - bitField0_ |= 0x00000001; - } - } + /** + * + * + *
            +   * Step information.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Step} + */ + public static final class Step extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Step) + StepOrBuilder { + private static final long serialVersionUID = 0L; - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResultOrBuilder> - searchResultsBuilder_; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Step"); + } - /** - * - * - *
            -           * Search results observed by the search action, it can be snippets info
            -           * or chunk info, depending on the citation type set by the user.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult> - getSearchResultsList() { - if (searchResultsBuilder_ == null) { - return java.util.Collections.unmodifiableList(searchResults_); - } else { - return searchResultsBuilder_.getMessageList(); - } - } + // Use Step.newBuilder() to construct. + private Step(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - /** - * - * - *
            -           * Search results observed by the search action, it can be snippets info
            -           * or chunk info, depending on the citation type set by the user.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - public int getSearchResultsCount() { - if (searchResultsBuilder_ == null) { - return searchResults_.size(); - } else { - return searchResultsBuilder_.getCount(); - } - } + private Step() { + state_ = 0; + description_ = ""; + thought_ = ""; + actions_ = java.util.Collections.emptyList(); + } - /** - * - * - *
            -           * Search results observed by the search action, it can be snippets info
            -           * or chunk info, depending on the citation type set by the user.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - getSearchResults(int index) { - if (searchResultsBuilder_ == null) { - return searchResults_.get(index); - } else { - return searchResultsBuilder_.getMessage(index); - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_descriptor; + } - /** - * - * - *
            -           * Search results observed by the search action, it can be snippets info
            -           * or chunk info, depending on the citation type set by the user.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - public Builder setSearchResults( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - value) { - if (searchResultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSearchResultsIsMutable(); - searchResults_.set(index, value); - onChanged(); - } else { - searchResultsBuilder_.setMessage(index, value); - } - return this; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Step.class, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder.class); + } - /** - * - * - *
            -           * Search results observed by the search action, it can be snippets info
            -           * or chunk info, depending on the citation type set by the user.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - public Builder setSearchResults( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .Builder - builderForValue) { - if (searchResultsBuilder_ == null) { - ensureSearchResultsIsMutable(); - searchResults_.set(index, builderForValue.build()); - onChanged(); - } else { - searchResultsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } + /** + * + * + *
            +     * Enumeration of the state of the step.
            +     * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.Answer.Step.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Unknown.
            +       * 
            + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
            +       * Step is currently in progress.
            +       * 
            + * + * IN_PROGRESS = 1; + */ + IN_PROGRESS(1), + /** + * + * + *
            +       * Step currently failed.
            +       * 
            + * + * FAILED = 2; + */ + FAILED(2), + /** + * + * + *
            +       * Step has succeeded.
            +       * 
            + * + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + UNRECOGNIZED(-1), + ; - /** - * - * - *
            -           * Search results observed by the search action, it can be snippets info
            -           * or chunk info, depending on the citation type set by the user.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - public Builder addSearchResults( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - value) { - if (searchResultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSearchResultsIsMutable(); - searchResults_.add(value); - onChanged(); - } else { - searchResultsBuilder_.addMessage(value); - } - return this; - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } - /** - * - * - *
            -           * Search results observed by the search action, it can be snippets info
            -           * or chunk info, depending on the citation type set by the user.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - public Builder addSearchResults( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - value) { - if (searchResultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSearchResultsIsMutable(); - searchResults_.add(index, value); - onChanged(); - } else { - searchResultsBuilder_.addMessage(index, value); - } - return this; - } + /** + * + * + *
            +       * Unknown.
            +       * 
            + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
            -           * Search results observed by the search action, it can be snippets info
            -           * or chunk info, depending on the citation type set by the user.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - public Builder addSearchResults( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .Builder - builderForValue) { - if (searchResultsBuilder_ == null) { - ensureSearchResultsIsMutable(); - searchResults_.add(builderForValue.build()); - onChanged(); - } else { - searchResultsBuilder_.addMessage(builderForValue.build()); - } - return this; - } + /** + * + * + *
            +       * Step is currently in progress.
            +       * 
            + * + * IN_PROGRESS = 1; + */ + public static final int IN_PROGRESS_VALUE = 1; - /** - * - * - *
            -           * Search results observed by the search action, it can be snippets info
            -           * or chunk info, depending on the citation type set by the user.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - public Builder addSearchResults( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .Builder - builderForValue) { - if (searchResultsBuilder_ == null) { - ensureSearchResultsIsMutable(); - searchResults_.add(index, builderForValue.build()); - onChanged(); - } else { - searchResultsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } + /** + * + * + *
            +       * Step currently failed.
            +       * 
            + * + * FAILED = 2; + */ + public static final int FAILED_VALUE = 2; - /** - * - * - *
            -           * Search results observed by the search action, it can be snippets info
            -           * or chunk info, depending on the citation type set by the user.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - public Builder addAllSearchResults( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult> - values) { - if (searchResultsBuilder_ == null) { - ensureSearchResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, searchResults_); - onChanged(); - } else { - searchResultsBuilder_.addAllMessages(values); - } - return this; - } + /** + * + * + *
            +       * Step has succeeded.
            +       * 
            + * + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; - /** - * - * - *
            -           * Search results observed by the search action, it can be snippets info
            -           * or chunk info, depending on the citation type set by the user.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - public Builder clearSearchResults() { - if (searchResultsBuilder_ == null) { - searchResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - searchResultsBuilder_.clear(); - } - return this; - } + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } - /** - * - * - *
            -           * Search results observed by the search action, it can be snippets info
            -           * or chunk info, depending on the citation type set by the user.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - public Builder removeSearchResults(int index) { - if (searchResultsBuilder_ == null) { - ensureSearchResultsIsMutable(); - searchResults_.remove(index); - onChanged(); - } else { - searchResultsBuilder_.remove(index); - } - return this; - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } - /** - * - * - *
            -           * Search results observed by the search action, it can be snippets info
            -           * or chunk info, depending on the citation type set by the user.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .Builder - getSearchResultsBuilder(int index) { - return internalGetSearchResultsFieldBuilder().getBuilder(index); - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return IN_PROGRESS; + case 2: + return FAILED; + case 3: + return SUCCEEDED; + default: + return null; + } + } - /** - * - * - *
            -           * Search results observed by the search action, it can be snippets info
            -           * or chunk info, depending on the citation type set by the user.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResultOrBuilder - getSearchResultsOrBuilder(int index) { - if (searchResultsBuilder_ == null) { - return searchResults_.get(index); - } else { - return searchResultsBuilder_.getMessageOrBuilder(index); - } - } + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } - /** - * - * - *
            -           * Search results observed by the search action, it can be snippets info
            -           * or chunk info, depending on the citation type set by the user.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResultOrBuilder> - getSearchResultsOrBuilderList() { - if (searchResultsBuilder_ != null) { - return searchResultsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(searchResults_); + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); } - } + }; - /** - * - * - *
            -           * Search results observed by the search action, it can be snippets info
            -           * or chunk info, depending on the citation type set by the user.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .Builder - addSearchResultsBuilder() { - return internalGetSearchResultsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.getDefaultInstance()); - } + 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()); + } - /** - * - * - *
            -           * Search results observed by the search action, it can be snippets info
            -           * or chunk info, depending on the citation type set by the user.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult - .Builder - addSearchResultsBuilder(int index) { - return internalGetSearchResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.getDefaultInstance()); - } - - /** - * - * - *
            -           * Search results observed by the search action, it can be snippets info
            -           * or chunk info, depending on the citation type set by the user.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; - * - */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.Builder> - getSearchResultsBuilderList() { - return internalGetSearchResultsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResultOrBuilder> - internalGetSearchResultsFieldBuilder() { - if (searchResultsBuilder_ == null) { - searchResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResult.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .SearchResultOrBuilder>( - searchResults_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - searchResults_ = null; - } - return searchResultsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation) - } - - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation) - private static final com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation(); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Observation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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.v1beta.Answer.Step.Action.Observation - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); } - private int bitField0_; - private int actionCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object action_; - - public enum ActionCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - SEARCH_ACTION(2), - ACTION_NOT_SET(0); - private final int value; + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Answer.Step.getDescriptor() + .getEnumTypes() + .get(0); + } - private ActionCase(int value) { - this.value = value; - } + private static final State[] VALUES = values(); - /** - * @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 ActionCase valueOf(int value) { - return forNumber(value); + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } - - public static ActionCase forNumber(int value) { - switch (value) { - case 2: - return SEARCH_ACTION; - case 0: - return ACTION_NOT_SET; - default: - return null; - } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; } + return VALUES[desc.getIndex()]; + } - public int getNumber() { - return this.value; - } - }; + private final int value; - public ActionCase getActionCase() { - return ActionCase.forNumber(actionCase_); + private State(int value) { + this.value = value; } - public static final int SEARCH_ACTION_FIELD_NUMBER = 2; + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Answer.Step.State) + } + + public interface ActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Step.Action) + com.google.protobuf.MessageOrBuilder { /** * @@ -18826,10 +16636,7 @@ public ActionCase getActionCase() { * * @return Whether the searchAction field is set. */ - @java.lang.Override - public boolean hasSearchAction() { - return actionCase_ == 2; - } + boolean hasSearchAction(); /** * @@ -18844,15 +16651,7 @@ public boolean hasSearchAction() { * * @return The searchAction. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - getSearchAction() { - if (actionCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) action_; - } - return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - .getDefaultInstance(); - } + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction getSearchAction(); /** * @@ -18865,18 +16664,8 @@ public boolean hasSearchAction() { * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; *
            */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchActionOrBuilder - getSearchActionOrBuilder() { - if (actionCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) action_; - } - return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - .getDefaultInstance(); - } - - public static final int OBSERVATION_FIELD_NUMBER = 3; - private com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation_; + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchActionOrBuilder + getSearchActionOrBuilder(); /** * @@ -18890,10 +16679,7 @@ public boolean hasSearchAction() { * * @return Whether the observation field is set. */ - @java.lang.Override - public boolean hasObservation() { - return ((bitField0_ & 0x00000001) != 0); - } + boolean hasObservation(); /** * @@ -18907,14 +16693,7 @@ public boolean hasObservation() { * * @return The observation. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - getObservation() { - return observation_ == null - ? com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .getDefaultInstance() - : observation_; - } + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation getObservation(); /** * @@ -18926,640 +16705,365 @@ public boolean hasObservation() { * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; * */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.ObservationOrBuilder - getObservationOrBuilder() { - return observation_ == null - ? com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .getDefaultInstance() - : observation_; - } + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.ObservationOrBuilder + getObservationOrBuilder(); - private byte memoizedIsInitialized = -1; + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.ActionCase getActionCase(); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * + * + *
            +     * Action.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Step.Action} + */ + public static final class Action extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action) + ActionOrBuilder { + private static final long serialVersionUID = 0L; - memoizedIsInitialized = 1; - return true; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Action"); } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (actionCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) action_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getObservation()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (actionCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) - action_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getObservation()); - } - 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.v1beta.Answer.Step.Action)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action other = - (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action) obj; - - if (hasObservation() != other.hasObservation()) return false; - if (hasObservation()) { - if (!getObservation().equals(other.getObservation())) return false; - } - if (!getActionCase().equals(other.getActionCase())) return false; - switch (actionCase_) { - case 2: - if (!getSearchAction().equals(other.getSearchAction())) 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(); - if (hasObservation()) { - hash = (37 * hash) + OBSERVATION_FIELD_NUMBER; - hash = (53 * hash) + getObservation().hashCode(); - } - switch (actionCase_) { - case 2: - hash = (37 * hash) + SEARCH_ACTION_FIELD_NUMBER; - hash = (53 * hash) + getSearchAction().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action 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.v1beta.Answer.Step.Action parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action parseFrom( - 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.v1beta.Answer.Step.Action parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + // Use Action.newBuilder() to construct. + private Action(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + private Action() {} - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_descriptor; } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.class, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder.class); } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public interface SearchActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
            +         * The query to search.
            +         * 
            + * + * string query = 1; + * + * @return The query. + */ + java.lang.String getQuery(); - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * + * + *
            +         * The query to search.
            +         * 
            + * + * string query = 1; + * + * @return The bytes for query. + */ + com.google.protobuf.ByteString getQueryBytes(); } /** * * *
            -       * Action.
            +       * Search action.
                    * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Step.Action} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder + public static final class SearchAction extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action) - com.google.cloud.discoveryengine.v1beta.Answer.Step.ActionOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) + SearchActionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchAction"); + } + + // Use SearchAction.newBuilder() to construct. + private SearchAction(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchAction() { + query_ = ""; + } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_SearchAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_SearchAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.class, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder.class); + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.class, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.Builder + .class); } - // Construct using com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public static final int QUERY_FIELD_NUMBER = 1; - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetObservationFieldBuilder(); + /** + * + * + *
            +         * The query to search.
            +         * 
            + * + * string query = 1; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; } } + /** + * + * + *
            +         * The query to search.
            +         * 
            + * + * string query = 1; + * + * @return The bytes for query. + */ @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (searchActionBuilder_ != null) { - searchActionBuilder_.clear(); - } - observation_ = null; - if (observationBuilder_ != null) { - observationBuilder_.dispose(); - observationBuilder_ = null; + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - actionCase_ = 0; - action_ = null; - return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_descriptor; - } + private byte memoizedIsInitialized = -1; @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.getDefaultInstance(); - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action build() { - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + memoizedIsInitialized = 1; + return true; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action buildPartial() { - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action result = - new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action(this); - if (bitField0_ != 0) { - buildPartial0(result); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, query_); } - buildPartialOneofs(result); - onBuilt(); - return result; + getUnknownFields().writeTo(output); } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.observation_ = - observationBuilder_ == null ? observation_ : observationBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private void buildPartialOneofs( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action result) { - result.actionCase_ = actionCase_; - result.action_ = this.action_; - if (actionCase_ == 2 && searchActionBuilder_ != null) { - result.action_ = searchActionBuilder_.build(); + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, query_); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.Answer.Step.Action) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.Answer.Step.Action) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Answer.Step.Action other) { - if (other - == com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.getDefaultInstance()) - return this; - if (other.hasObservation()) { - mergeObservation(other.getObservation()); + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - switch (other.getActionCase()) { - case SEARCH_ACTION: - { - mergeSearchAction(other.getSearchAction()); - break; - } - case ACTION_NOT_SET: - { - break; - } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction)) { + return super.equals(obj); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction other = + (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) obj; - @java.lang.Override - public final boolean isInitialized() { + if (!getQuery().equals(other.getQuery())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; 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(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - input.readMessage( - internalGetSearchActionFieldBuilder().getBuilder(), extensionRegistry); - actionCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetObservationFieldBuilder().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; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - private int actionCase_ = 0; - private java.lang.Object action_; - - public ActionCase getActionCase() { - return ActionCase.forNumber(actionCase_); + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - public Builder clearAction() { - actionCase_ = 0; - action_ = null; - onChanged(); - return this; + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - private int bitField0_; + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchActionOrBuilder> - searchActionBuilder_; + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -         * Search action.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; - * - * - * @return Whether the searchAction field is set. - */ - @java.lang.Override - public boolean hasSearchAction() { - return actionCase_ == 2; + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * - * - *
            -         * Search action.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; - * - * - * @return The searchAction. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - getSearchAction() { - if (searchActionBuilder_ == null) { - if (actionCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) - action_; - } - return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - .getDefaultInstance(); - } else { - if (actionCase_ == 2) { - return searchActionBuilder_.getMessage(); - } - return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - .getDefaultInstance(); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - * - * - *
            -         * Search action.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; - * - */ - public Builder setSearchAction( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction value) { - if (searchActionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - action_ = value; - onChanged(); - } else { - searchActionBuilder_.setMessage(value); - } - actionCase_ = 2; - return this; + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - /** - * - * - *
            -         * Search action.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; - * - */ - public Builder setSearchAction( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.Builder - builderForValue) { - if (searchActionBuilder_ == null) { - action_ = builderForValue.build(); - onChanged(); - } else { - searchActionBuilder_.setMessage(builderForValue.build()); - } - actionCase_ = 2; - return this; + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - /** - * - * - *
            -         * Search action.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; - * - */ - public Builder mergeSearchAction( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction value) { - if (searchActionBuilder_ == null) { - if (actionCase_ == 2 - && action_ - != com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - .getDefaultInstance()) { - action_ = - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - .newBuilder( - (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) - action_) - .mergeFrom(value) - .buildPartial(); - } else { - action_ = value; - } - onChanged(); - } else { - if (actionCase_ == 2) { - searchActionBuilder_.mergeFrom(value); - } else { - searchActionBuilder_.setMessage(value); - } - } - actionCase_ = 2; - return this; + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - /** - * - * - *
            -         * Search action.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; - * - */ - public Builder clearSearchAction() { - if (searchActionBuilder_ == null) { - if (actionCase_ == 2) { - actionCase_ = 0; - action_ = null; - onChanged(); - } - } else { - if (actionCase_ == 2) { - actionCase_ = 0; - action_ = null; - } - searchActionBuilder_.clear(); - } - return this; + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - /** - * - * - *
            -         * Search action.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.Builder - getSearchActionBuilder() { - return internalGetSearchActionFieldBuilder().getBuilder(); + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - /** - * - * - *
            -         * Search action.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; - * - */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchActionOrBuilder - getSearchActionOrBuilder() { - if ((actionCase_ == 2) && (searchActionBuilder_ != null)) { - return searchActionBuilder_.getMessageOrBuilder(); - } else { - if (actionCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) - action_; - } - return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - .getDefaultInstance(); - } + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** @@ -19569,5431 +17073,14459 @@ public Builder clearSearchAction() { * Search action. *
            * - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; - * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction} */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchActionOrBuilder> - internalGetSearchActionFieldBuilder() { - if (searchActionBuilder_ == null) { - if (!(actionCase_ == 2)) { - action_ = - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction - .getDefaultInstance(); - } - searchActionBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action - .SearchActionOrBuilder>( - (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) - action_, - getParentForChildren(), - isClean()); - action_ = null; + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_SearchAction_descriptor; } - actionCase_ = 2; - onChanged(); - return searchActionBuilder_; - } - private com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.ObservationOrBuilder> - observationBuilder_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_SearchAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.class, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.Builder + .class); + } - /** - * - * - *
            -         * Observation.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; - * - * - * @return Whether the observation field is set. - */ - public boolean hasObservation() { - return ((bitField0_ & 0x00000002) != 0); - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.newBuilder() + private Builder() {} - /** - * - * - *
            -         * Observation.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; - * - * - * @return The observation. - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - getObservation() { - if (observationBuilder_ == null) { - return observation_ == null - ? com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .getDefaultInstance() - : observation_; - } else { - return observationBuilder_.getMessage(); + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); } - } - /** - * - * - *
            -         * Observation.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; - * - */ - public Builder setObservation( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation value) { - if (observationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + query_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_SearchAction_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction build() { + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - observation_ = value; - } else { - observationBuilder_.setMessage(value); + return result; } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
            -         * Observation.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; - * - */ - public Builder setObservation( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.Builder - builderForValue) { - if (observationBuilder_ == null) { - observation_ = builderForValue.build(); - } else { - observationBuilder_.setMessage(builderForValue.build()); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction result = + new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
            -         * Observation.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; - * - */ - public Builder mergeObservation( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation value) { - if (observationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && observation_ != null - && observation_ - != com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .getDefaultInstance()) { - getObservationBuilder().mergeFrom(value); + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.query_ = query_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) other); } else { - observation_ = value; + super.mergeFrom(other); + return this; } - } else { - observationBuilder_.mergeFrom(value); } - if (observation_ != null) { - bitField0_ |= 0x00000002; + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + .getDefaultInstance()) return this; + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); + return this; } - return this; - } - /** - * - * - *
            -         * Observation.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; - * - */ - public Builder clearObservation() { - bitField0_ = (bitField0_ & ~0x00000002); - observation_ = null; - if (observationBuilder_ != null) { - observationBuilder_.dispose(); - observationBuilder_ = null; - } - 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: + { + query_ = 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 query_ = ""; + + /** + * + * + *
            +           * The query to search.
            +           * 
            + * + * string query = 1; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +           * The query to search.
            +           * 
            + * + * string query = 1; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +           * The query to search.
            +           * 
            + * + * string query = 1; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +           * The query to search.
            +           * 
            + * + * string query = 1; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +           * The query to search.
            +           * 
            + * + * string query = 1; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) + private static final com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction(); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Answer.Step.Action.SearchAction + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + + public interface ObservationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation) + com.google.protobuf.MessageOrBuilder { /** * * *
            -         * Observation.
            +         * Search results observed by the search action, it can be snippets info
            +         * or chunk info, depending on the citation type set by the user.
                      * 
            * * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; * */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.Builder - getObservationBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetObservationFieldBuilder().getBuilder(); - } + java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult> + getSearchResultsList(); /** * * *
            -         * Observation.
            +         * Search results observed by the search action, it can be snippets info
            +         * or chunk info, depending on the citation type set by the user.
                      * 
            * * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; * */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.ObservationOrBuilder - getObservationOrBuilder() { - if (observationBuilder_ != null) { - return observationBuilder_.getMessageOrBuilder(); - } else { - return observation_ == null - ? com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation - .getDefaultInstance() - : observation_; - } - } + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + getSearchResults(int index); /** * * *
            -         * Observation.
            +         * Search results observed by the search action, it can be snippets info
            +         * or chunk info, depending on the citation type set by the user.
                      * 
            * * - * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.ObservationOrBuilder> - internalGetObservationFieldBuilder() { - if (observationBuilder_ == null) { - observationBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action - .ObservationOrBuilder>(getObservation(), getParentForChildren(), isClean()); - observation_ = null; - } - return observationBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action) - } + int getSearchResultsCount(); - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action) - private static final com.google.cloud.discoveryengine.v1beta.Answer.Step.Action - DEFAULT_INSTANCE; + /** + * + * + *
            +         * Search results observed by the search action, it can be snippets info
            +         * or chunk info, depending on the citation type set by the user.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResultOrBuilder> + getSearchResultsOrBuilderList(); - static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action(); + /** + * + * + *
            +         * Search results observed by the search action, it can be snippets info
            +         * or chunk info, depending on the citation type set by the user.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResultOrBuilder + getSearchResultsOrBuilder(int index); } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
            +       * Observation.
            +       * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation} + */ + public static final class Observation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation) + ObservationOrBuilder { + private static final long serialVersionUID = 0L; - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Action parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Observation"); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // Use Observation.newBuilder() to construct. + private Observation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private Observation() { + searchResults_ = java.util.Collections.emptyList(); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_descriptor; + } - public static final int STATE_FIELD_NUMBER = 1; - private int state_ = 0; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.class, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.Builder + .class); + } - /** - * - * - *
            -     * The state of the step.
            -     * 
            - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.State state = 1; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } + public interface SearchResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
            -     * The state of the step.
            -     * 
            - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.State state = 1; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.State getState() { - com.google.cloud.discoveryengine.v1beta.Answer.Step.State result = - com.google.cloud.discoveryengine.v1beta.Answer.Step.State.forNumber(state_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.Answer.Step.State.UNRECOGNIZED - : result; - } + /** + * + * + *
            +           * Document resource name.
            +           * 
            + * + * string document = 1; + * + * @return The document. + */ + java.lang.String getDocument(); - public static final int DESCRIPTION_FIELD_NUMBER = 2; + /** + * + * + *
            +           * Document resource name.
            +           * 
            + * + * string document = 1; + * + * @return The bytes for document. + */ + com.google.protobuf.ByteString getDocumentBytes(); - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; + /** + * + * + *
            +           * URI for the document.
            +           * 
            + * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); - /** - * - * - *
            -     * The description of the step.
            -     * 
            - * - * string description = 2; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } + /** + * + * + *
            +           * URI for the document.
            +           * 
            + * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); - /** - * - * - *
            -     * The description of the step.
            -     * 
            - * - * string description = 2; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
            +           * Title.
            +           * 
            + * + * string title = 3; + * + * @return The title. + */ + java.lang.String getTitle(); - public static final int THOUGHT_FIELD_NUMBER = 3; + /** + * + * + *
            +           * Title.
            +           * 
            + * + * string title = 3; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); - @SuppressWarnings("serial") - private volatile java.lang.Object thought_ = ""; + /** + * + * + *
            +           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +           * level snippets.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo> + getSnippetInfoList(); - /** - * - * - *
            -     * The thought of the step.
            -     * 
            - * - * string thought = 3; - * - * @return The thought. - */ - @java.lang.Override - public java.lang.String getThought() { - java.lang.Object ref = thought_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - thought_ = s; - return s; - } - } + /** + * + * + *
            +           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +           * level snippets.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .SnippetInfo + getSnippetInfo(int index); - /** - * - * - *
            -     * The thought of the step.
            -     * 
            - * - * string thought = 3; - * - * @return The bytes for thought. - */ - @java.lang.Override - public com.google.protobuf.ByteString getThoughtBytes() { - java.lang.Object ref = thought_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - thought_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
            +           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +           * level snippets.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + int getSnippetInfoCount(); - public static final int ACTIONS_FIELD_NUMBER = 4; + /** + * + * + *
            +           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +           * level snippets.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfoOrBuilder> + getSnippetInfoOrBuilderList(); - @SuppressWarnings("serial") - private java.util.List actions_; + /** + * + * + *
            +           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +           * level snippets.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .SnippetInfoOrBuilder + getSnippetInfoOrBuilder(int index); - /** - * - * - *
            -     * Actions.
            -     * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - @java.lang.Override - public java.util.List - getActionsList() { - return actions_; - } + /** + * + * + *
            +           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +           * populate chunk info.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo> + getChunkInfoList(); - /** - * - * - *
            -     * Actions.
            -     * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.Answer.Step.ActionOrBuilder> - getActionsOrBuilderList() { - return actions_; - } + /** + * + * + *
            +           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +           * populate chunk info.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .ChunkInfo + getChunkInfo(int index); - /** - * - * - *
            -     * Actions.
            -     * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - @java.lang.Override - public int getActionsCount() { - return actions_.size(); - } + /** + * + * + *
            +           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +           * populate chunk info.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + int getChunkInfoCount(); - /** - * - * - *
            -     * Actions.
            -     * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action getActions(int index) { - return actions_.get(index); - } - - /** - * - * - *
            -     * Actions.
            -     * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.ActionOrBuilder getActionsOrBuilder( - int index) { - return actions_.get(index); - } - - private byte memoizedIsInitialized = -1; + /** + * + * + *
            +           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +           * populate chunk info.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfoOrBuilder> + getChunkInfoOrBuilderList(); - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * + * + *
            +           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +           * populate chunk info.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .ChunkInfoOrBuilder + getChunkInfoOrBuilder(int index); - memoizedIsInitialized = 1; - return true; - } + /** + * + * + *
            +           * Data representation.
            +           * The structured JSON data for the document.
            +           * It's populated from the struct data from the Document, or the
            +           * Chunk in search result.
            +           * 
            + * + * .google.protobuf.Struct struct_data = 6; + * + * @return Whether the structData field is set. + */ + boolean hasStructData(); - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (state_ - != com.google.cloud.discoveryengine.v1beta.Answer.Step.State.STATE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, state_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(thought_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, thought_); - } - for (int i = 0; i < actions_.size(); i++) { - output.writeMessage(4, actions_.get(i)); - } - getUnknownFields().writeTo(output); - } + /** + * + * + *
            +           * Data representation.
            +           * The structured JSON data for the document.
            +           * It's populated from the struct data from the Document, or the
            +           * Chunk in search result.
            +           * 
            + * + * .google.protobuf.Struct struct_data = 6; + * + * @return The structData. + */ + com.google.protobuf.Struct getStructData(); - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * + * + *
            +           * Data representation.
            +           * The structured JSON data for the document.
            +           * It's populated from the struct data from the Document, or the
            +           * Chunk in search result.
            +           * 
            + * + * .google.protobuf.Struct struct_data = 6; + */ + com.google.protobuf.StructOrBuilder getStructDataOrBuilder(); + } - size = 0; - if (state_ - != com.google.cloud.discoveryengine.v1beta.Answer.Step.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(thought_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, thought_); - } - for (int i = 0; i < actions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, actions_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult} + */ + public static final class SearchResult extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult) + SearchResultOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Answer.Step)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.Answer.Step other = - (com.google.cloud.discoveryengine.v1beta.Answer.Step) obj; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchResult"); + } - if (state_ != other.state_) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getThought().equals(other.getThought())) return false; - if (!getActionsList().equals(other.getActionsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + // Use SearchResult.newBuilder() to construct. + private SearchResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + THOUGHT_FIELD_NUMBER; - hash = (53 * hash) + getThought().hashCode(); - if (getActionsCount() > 0) { - hash = (37 * hash) + ACTIONS_FIELD_NUMBER; - hash = (53 * hash) + getActionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + private SearchResult() { + document_ = ""; + uri_ = ""; + title_ = ""; + snippetInfo_ = java.util.Collections.emptyList(); + chunkInfo_ = java.util.Collections.emptyList(); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_descriptor; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.class, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.Builder.class); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public interface SnippetInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo) + com.google.protobuf.MessageOrBuilder { - public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseFrom( - 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.v1beta.Answer.Step parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +             * Snippet content.
            +             * 
            + * + * string snippet = 1; + * + * @return The snippet. + */ + java.lang.String getSnippet(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +             * Snippet content.
            +             * 
            + * + * string snippet = 1; + * + * @return The bytes for snippet. + */ + com.google.protobuf.ByteString getSnippetBytes(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +             * Status of the snippet defined by the search team.
            +             * 
            + * + * string snippet_status = 2; + * + * @return The snippetStatus. + */ + java.lang.String getSnippetStatus(); - public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + /** + * + * + *
            +             * Status of the snippet defined by the search team.
            +             * 
            + * + * string snippet_status = 2; + * + * @return The bytes for snippetStatus. + */ + com.google.protobuf.ByteString getSnippetStatusBytes(); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +           * Snippet information.
            +           * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo} + */ + public static final class SnippetInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo) + SnippetInfoOrBuilder { + private static final long serialVersionUID = 0L; - public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SnippetInfo"); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + // Use SnippetInfo.newBuilder() to construct. + private SnippetInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + private SnippetInfo() { + snippet_ = ""; + snippetStatus_ = ""; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_SnippetInfo_descriptor; + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.Step prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_SnippetInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo.class, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo.Builder.class); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static final int SNIPPET_FIELD_NUMBER = 1; - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + @SuppressWarnings("serial") + private volatile java.lang.Object snippet_ = ""; - /** - * - * - *
            -     * Step information.
            -     * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Step} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Step) - com.google.cloud.discoveryengine.v1beta.Answer.StepOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_descriptor; - } + /** + * + * + *
            +             * Snippet content.
            +             * 
            + * + * string snippet = 1; + * + * @return The snippet. + */ + @java.lang.Override + public java.lang.String getSnippet() { + java.lang.Object ref = snippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snippet_ = s; + return s; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.Step.class, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder.class); - } + /** + * + * + *
            +             * Snippet content.
            +             * 
            + * + * string snippet = 1; + * + * @return The bytes for snippet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSnippetBytes() { + java.lang.Object ref = snippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // Construct using com.google.cloud.discoveryengine.v1beta.Answer.Step.newBuilder() - private Builder() {} + public static final int SNIPPET_STATUS_FIELD_NUMBER = 2; - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + @SuppressWarnings("serial") + private volatile java.lang.Object snippetStatus_ = ""; - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - state_ = 0; - description_ = ""; - thought_ = ""; - if (actionsBuilder_ == null) { - actions_ = java.util.Collections.emptyList(); - } else { - actions_ = null; - actionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } + /** + * + * + *
            +             * Status of the snippet defined by the search team.
            +             * 
            + * + * string snippet_status = 2; + * + * @return The snippetStatus. + */ + @java.lang.Override + public java.lang.String getSnippetStatus() { + java.lang.Object ref = snippetStatus_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snippetStatus_ = s; + return s; + } + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_descriptor; - } + /** + * + * + *
            +             * Status of the snippet defined by the search team.
            +             * 
            + * + * string snippet_status = 2; + * + * @return The bytes for snippetStatus. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSnippetStatusBytes() { + java.lang.Object ref = snippetStatus_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snippetStatus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Answer.Step.getDefaultInstance(); - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step build() { - com.google.cloud.discoveryengine.v1beta.Answer.Step result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step buildPartial() { - com.google.cloud.discoveryengine.v1beta.Answer.Step result = - new com.google.cloud.discoveryengine.v1beta.Answer.Step(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + memoizedIsInitialized = 1; + return true; + } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.Answer.Step result) { - if (actionsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - actions_ = java.util.Collections.unmodifiableList(actions_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.actions_ = actions_; - } else { - result.actions_ = actionsBuilder_.build(); - } - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snippet_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, snippet_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snippetStatus_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, snippetStatus_); + } + getUnknownFields().writeTo(output); + } - private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Answer.Step result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.state_ = state_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.thought_ = thought_; - } - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.Answer.Step) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.Answer.Step) other); - } else { - super.mergeFrom(other); - return this; - } - } + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snippet_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, snippet_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(snippetStatus_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, snippetStatus_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Answer.Step other) { - if (other == com.google.cloud.discoveryengine.v1beta.Answer.Step.getDefaultInstance()) - return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getThought().isEmpty()) { - thought_ = other.thought_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (actionsBuilder_ == null) { - if (!other.actions_.isEmpty()) { - if (actions_.isEmpty()) { - actions_ = other.actions_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureActionsIsMutable(); - actions_.addAll(other.actions_); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .SnippetInfo + other = + (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo) + obj; + + if (!getSnippet().equals(other.getSnippet())) return false; + if (!getSnippetStatus().equals(other.getSnippetStatus())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - onChanged(); - } - } else { - if (!other.actions_.isEmpty()) { - if (actionsBuilder_.isEmpty()) { - actionsBuilder_.dispose(); - actionsBuilder_ = null; - actions_ = other.actions_; - bitField0_ = (bitField0_ & ~0x00000008); - actionsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetActionsFieldBuilder() - : null; - } else { - actionsBuilder_.addAllMessages(other.actions_); + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getSnippet().hashCode(); + hash = (37 * hash) + SNIPPET_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getSnippetStatus().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - thought_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.parser(), - extensionRegistry); - if (actionsBuilder_ == null) { - ensureActionsIsMutable(); - actions_.add(m); - } else { - actionsBuilder_.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_; + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private int state_ = 0; + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -       * The state of the step.
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.State state = 1; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -       * The state of the step.
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.State state = 1; - * - * @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_ |= 0x00000001; - onChanged(); - return this; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -       * The state of the step.
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.State state = 1; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step.State getState() { - com.google.cloud.discoveryengine.v1beta.Answer.Step.State result = - com.google.cloud.discoveryengine.v1beta.Answer.Step.State.forNumber(state_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.Answer.Step.State.UNRECOGNIZED - : result; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -       * The state of the step.
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.State state = 1; - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.discoveryengine.v1beta.Answer.Step.State value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - state_ = value.getNumber(); - onChanged(); - return this; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
            -       * The state of the step.
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.Answer.Step.State state = 1; - * - * @return This builder for chaining. - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000001); - state_ = 0; - onChanged(); - return this; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - private java.lang.Object description_ = ""; + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input); + } - /** - * - * - *
            -       * The description of the step.
            -       * 
            - * - * string description = 2; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -       * The description of the step.
            -       * 
            - * - * string description = 2; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
            -       * The description of the step.
            -       * 
            - * - * string description = 2; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
            -       * The description of the step.
            -       * 
            - * - * string description = 2; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -       * The description of the step.
            -       * 
            - * - * string description = 2; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - private java.lang.Object thought_ = ""; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
            -       * The thought of the step.
            -       * 
            - * - * string thought = 3; - * - * @return The thought. - */ - public java.lang.String getThought() { - java.lang.Object ref = thought_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - thought_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .SnippetInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * - * - *
            -       * The thought of the step.
            -       * 
            - * - * string thought = 3; - * - * @return The bytes for thought. - */ - public com.google.protobuf.ByteString getThoughtBytes() { - java.lang.Object ref = thought_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - thought_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * - * - *
            -       * The thought of the step.
            -       * 
            - * - * string thought = 3; - * - * @param value The thought to set. - * @return This builder for chaining. - */ - public Builder setThought(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - thought_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * - * - *
            -       * The thought of the step.
            -       * 
            - * - * string thought = 3; - * - * @return This builder for chaining. - */ - public Builder clearThought() { - thought_ = getDefaultInstance().getThought(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } + /** + * + * + *
            +             * Snippet information.
            +             * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo) + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .SnippetInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_SnippetInfo_descriptor; + } - /** - * - * - *
            -       * The thought of the step.
            -       * 
            - * - * string thought = 3; - * - * @param value The bytes for thought to set. - * @return This builder for chaining. - */ - public Builder setThoughtBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - thought_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_SnippetInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo.class, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo.Builder.class); + } - private java.util.List actions_ = - java.util.Collections.emptyList(); + // Construct using + // com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo.newBuilder() + private Builder() {} - private void ensureActionsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - actions_ = - new java.util.ArrayList( - actions_); - bitField0_ |= 0x00000008; - } - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Step.ActionOrBuilder> - actionsBuilder_; + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + snippet_ = ""; + snippetStatus_ = ""; + return this; + } - /** - * - * - *
            -       * Actions.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - public java.util.List - getActionsList() { - if (actionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(actions_); - } else { - return actionsBuilder_.getMessageList(); - } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_SnippetInfo_descriptor; + } - /** - * - * - *
            -       * Actions.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - public int getActionsCount() { - if (actionsBuilder_ == null) { - return actions_.size(); - } else { - return actionsBuilder_.getCount(); - } - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo.getDefaultInstance(); + } - /** - * - * - *
            -       * Actions.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action getActions(int index) { - if (actionsBuilder_ == null) { - return actions_.get(index); - } else { - return actionsBuilder_.getMessage(index); - } - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + build() { + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .SnippetInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * - * - *
            -       * Actions.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - public Builder setActions( - int index, com.google.cloud.discoveryengine.v1beta.Answer.Step.Action value) { - if (actionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionsIsMutable(); - actions_.set(index, value); - onChanged(); - } else { - actionsBuilder_.setMessage(index, value); - } - return this; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .SnippetInfo + result = + new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - /** - * - * - *
            -       * Actions.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - public Builder setActions( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder builderForValue) { - if (actionsBuilder_ == null) { - ensureActionsIsMutable(); - actions_.set(index, builderForValue.build()); - onChanged(); - } else { - actionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.snippet_ = snippet_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.snippetStatus_ = snippetStatus_; + } + } - /** - * - * - *
            -       * Actions.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - public Builder addActions(com.google.cloud.discoveryengine.v1beta.Answer.Step.Action value) { - if (actionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionsIsMutable(); - actions_.add(value); - onChanged(); - } else { - actionsBuilder_.addMessage(value); - } - return this; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * - * - *
            -       * Actions.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - public Builder addActions( - int index, com.google.cloud.discoveryengine.v1beta.Answer.Step.Action value) { - if (actionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionsIsMutable(); - actions_.add(index, value); - onChanged(); - } else { - actionsBuilder_.addMessage(index, value); - } - return this; - } + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo.getDefaultInstance()) return this; + if (!other.getSnippet().isEmpty()) { + snippet_ = other.snippet_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSnippetStatus().isEmpty()) { + snippetStatus_ = other.snippetStatus_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
            -       * Actions.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - public Builder addActions( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder builderForValue) { - if (actionsBuilder_ == null) { - ensureActionsIsMutable(); - actions_.add(builderForValue.build()); - onChanged(); - } else { - actionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * - * - *
            -       * Actions.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - public Builder addActions( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder builderForValue) { - if (actionsBuilder_ == null) { - ensureActionsIsMutable(); - actions_.add(index, builderForValue.build()); - onChanged(); - } else { - actionsBuilder_.addMessage(index, builderForValue.build()); - } - return 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 10: + { + snippet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + snippetStatus_ = 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; + } - /** - * - * - *
            -       * Actions.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - public Builder addAllActions( - java.lang.Iterable - values) { - if (actionsBuilder_ == null) { - ensureActionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, actions_); - onChanged(); - } else { - actionsBuilder_.addAllMessages(values); - } - return this; - } + private int bitField0_; - /** - * - * - *
            -       * Actions.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - public Builder clearActions() { - if (actionsBuilder_ == null) { - actions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - actionsBuilder_.clear(); - } - return this; - } + private java.lang.Object snippet_ = ""; - /** - * - * - *
            -       * Actions.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - public Builder removeActions(int index) { - if (actionsBuilder_ == null) { - ensureActionsIsMutable(); - actions_.remove(index); - onChanged(); - } else { - actionsBuilder_.remove(index); - } - return this; - } + /** + * + * + *
            +               * Snippet content.
            +               * 
            + * + * string snippet = 1; + * + * @return The snippet. + */ + public java.lang.String getSnippet() { + java.lang.Object ref = snippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * - * - *
            -       * Actions.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder getActionsBuilder( - int index) { - return internalGetActionsFieldBuilder().getBuilder(index); - } + /** + * + * + *
            +               * Snippet content.
            +               * 
            + * + * string snippet = 1; + * + * @return The bytes for snippet. + */ + public com.google.protobuf.ByteString getSnippetBytes() { + java.lang.Object ref = snippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * - * - *
            -       * Actions.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.ActionOrBuilder - getActionsOrBuilder(int index) { - if (actionsBuilder_ == null) { - return actions_.get(index); - } else { - return actionsBuilder_.getMessageOrBuilder(index); - } - } + /** + * + * + *
            +               * Snippet content.
            +               * 
            + * + * string snippet = 1; + * + * @param value The snippet to set. + * @return This builder for chaining. + */ + public Builder setSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + snippet_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
            -       * Actions.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.Answer.Step.ActionOrBuilder> - getActionsOrBuilderList() { - if (actionsBuilder_ != null) { - return actionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(actions_); - } - } + /** + * + * + *
            +               * Snippet content.
            +               * 
            + * + * string snippet = 1; + * + * @return This builder for chaining. + */ + public Builder clearSnippet() { + snippet_ = getDefaultInstance().getSnippet(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - /** - * - * - *
            -       * Actions.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder - addActionsBuilder() { - return internalGetActionsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.getDefaultInstance()); - } - - /** - * - * - *
            -       * Actions.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder addActionsBuilder( - int index) { - return internalGetActionsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.getDefaultInstance()); - } + /** + * + * + *
            +               * Snippet content.
            +               * 
            + * + * string snippet = 1; + * + * @param value The bytes for snippet to set. + * @return This builder for chaining. + */ + public Builder setSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snippet_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
            -       * Actions.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; - */ - public java.util.List - getActionsBuilderList() { - return internalGetActionsFieldBuilder().getBuilderList(); - } + private java.lang.Object snippetStatus_ = ""; - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Step.ActionOrBuilder> - internalGetActionsFieldBuilder() { - if (actionsBuilder_ == null) { - actionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.Step.ActionOrBuilder>( - actions_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - actions_ = null; - } - return actionsBuilder_; - } + /** + * + * + *
            +               * Status of the snippet defined by the search team.
            +               * 
            + * + * string snippet_status = 2; + * + * @return The snippetStatus. + */ + public java.lang.String getSnippetStatus() { + java.lang.Object ref = snippetStatus_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snippetStatus_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Step) - } + /** + * + * + *
            +               * Status of the snippet defined by the search team.
            +               * 
            + * + * string snippet_status = 2; + * + * @return The bytes for snippetStatus. + */ + public com.google.protobuf.ByteString getSnippetStatusBytes() { + java.lang.Object ref = snippetStatus_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snippetStatus_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Step) - private static final com.google.cloud.discoveryengine.v1beta.Answer.Step DEFAULT_INSTANCE; + /** + * + * + *
            +               * Status of the snippet defined by the search team.
            +               * 
            + * + * string snippet_status = 2; + * + * @param value The snippetStatus to set. + * @return This builder for chaining. + */ + public Builder setSnippetStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + snippetStatus_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Answer.Step(); - } + /** + * + * + *
            +               * Status of the snippet defined by the search team.
            +               * 
            + * + * string snippet_status = 2; + * + * @return This builder for chaining. + */ + public Builder clearSnippetStatus() { + snippetStatus_ = getDefaultInstance().getSnippetStatus(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.Step getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
            +               * Status of the snippet defined by the search team.
            +               * 
            + * + * string snippet_status = 2; + * + * @param value The bytes for snippetStatus to set. + * @return This builder for chaining. + */ + public Builder setSnippetStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snippetStatus_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Step parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo) } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo) + private static final com.google.cloud.discoveryengine.v1beta.Answer.Step.Action + .Observation.SearchResult.SnippetInfo + DEFAULT_INSTANCE; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo(); + } - public interface QueryUnderstandingInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo) - com.google.protobuf.MessageOrBuilder { + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - * - * - *
            -     * Query classification information.
            -     * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo> - getQueryClassificationInfoList(); - - /** - * - * - *
            -     * Query classification information.
            -     * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo - getQueryClassificationInfo(int index); + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnippetInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - /** - * - * - *
            -     * Query classification information.
            -     * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - int getQueryClassificationInfoCount(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
            -     * Query classification information.
            -     * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfoOrBuilder> - getQueryClassificationInfoOrBuilderList(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * - * - *
            -     * Query classification information.
            -     * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfoOrBuilder - getQueryClassificationInfoOrBuilder(int index); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - /** - * - * - *
            -   * Query understanding information.
            -   * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo} - */ - public static final class QueryUnderstandingInfo extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo) - QueryUnderstandingInfoOrBuilder { - private static final long serialVersionUID = 0L; + public interface ChunkInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo) + com.google.protobuf.MessageOrBuilder { - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "QueryUnderstandingInfo"); - } + /** + * + * + *
            +             * Chunk resource name.
            +             * 
            + * + * string chunk = 1; + * + * @return The chunk. + */ + java.lang.String getChunk(); - // Use QueryUnderstandingInfo.newBuilder() to construct. - private QueryUnderstandingInfo(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + /** + * + * + *
            +             * Chunk resource name.
            +             * 
            + * + * string chunk = 1; + * + * @return The bytes for chunk. + */ + com.google.protobuf.ByteString getChunkBytes(); - private QueryUnderstandingInfo() { - queryClassificationInfo_ = java.util.Collections.emptyList(); - } + /** + * + * + *
            +             * Chunk textual content.
            +             * 
            + * + * string content = 2; + * + * @return The content. + */ + java.lang.String getContent(); - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_descriptor; - } + /** + * + * + *
            +             * Chunk textual content.
            +             * 
            + * + * string content = 2; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.class, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.Builder.class); - } + /** + * + * + *
            +             * The relevance of the chunk for a given query. Values range from
            +             * 0.0 (completely irrelevant) to 1.0 (completely relevant).
            +             * This value is for informational purpose only. It may change for
            +             * the same query and chunk at any time due to a model retraining or
            +             * change in implementation.
            +             * 
            + * + * optional float relevance_score = 3; + * + * @return Whether the relevanceScore field is set. + */ + boolean hasRelevanceScore(); - public interface QueryClassificationInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
            +             * The relevance of the chunk for a given query. Values range from
            +             * 0.0 (completely irrelevant) to 1.0 (completely relevant).
            +             * This value is for informational purpose only. It may change for
            +             * the same query and chunk at any time due to a model retraining or
            +             * change in implementation.
            +             * 
            + * + * optional float relevance_score = 3; + * + * @return The relevanceScore. + */ + float getRelevanceScore(); + } - /** - * - * - *
            -       * Query classification type.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type type = 1; - * - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); + /** + * + * + *
            +           * Chunk information.
            +           * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo} + */ + public static final class ChunkInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo) + ChunkInfoOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
            -       * Query classification type.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type type = 1; - * - * - * @return The type. - */ - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo - .Type - getType(); - - /** - * - * - *
            -       * Classification output.
            -       * 
            - * - * bool positive = 2; - * - * @return The positive. - */ - boolean getPositive(); - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ChunkInfo"); + } - /** - * - * - *
            -     * Query classification information.
            -     * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo} - */ - public static final class QueryClassificationInfo extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo) - QueryClassificationInfoOrBuilder { - private static final long serialVersionUID = 0L; + // Use ChunkInfo.newBuilder() to construct. + private ChunkInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "QueryClassificationInfo"); - } + private ChunkInfo() { + chunk_ = ""; + content_ = ""; + } - // Use QueryClassificationInfo.newBuilder() to construct. - private QueryClassificationInfo(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_ChunkInfo_descriptor; + } - private QueryClassificationInfo() { - type_ = 0; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_ChunkInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo.class, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo.Builder.class); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_QueryClassificationInfo_descriptor; - } + private int bitField0_; + public static final int CHUNK_FIELD_NUMBER = 1; - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_QueryClassificationInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.class, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Builder.class); - } + @SuppressWarnings("serial") + private volatile java.lang.Object chunk_ = ""; - /** - * - * - *
            -       * Query classification types.
            -       * 
            - * - * Protobuf enum {@code - * google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type} - */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
            -         * Unspecified query classification type.
            -         * 
            - * - * TYPE_UNSPECIFIED = 0; - */ - TYPE_UNSPECIFIED(0), - /** - * - * - *
            -         * Adversarial query classification type.
            -         * 
            - * - * ADVERSARIAL_QUERY = 1; - */ - ADVERSARIAL_QUERY(1), - /** - * - * - *
            -         * Non-answer-seeking query classification type, for chit chat.
            -         * 
            - * - * NON_ANSWER_SEEKING_QUERY = 2; - */ - NON_ANSWER_SEEKING_QUERY(2), - /** - * - * - *
            -         * Jail-breaking query classification type.
            -         * 
            - * - * 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), - ; + /** + * + * + *
            +             * Chunk resource name.
            +             * 
            + * + * string chunk = 1; + * + * @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; + } + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "Type"); - } + /** + * + * + *
            +             * Chunk resource name.
            +             * 
            + * + * string chunk = 1; + * + * @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; + } + } - /** - * - * - *
            -         * Unspecified query classification type.
            -         * 
            - * - * TYPE_UNSPECIFIED = 0; - */ - public static final int TYPE_UNSPECIFIED_VALUE = 0; + public static final int CONTENT_FIELD_NUMBER = 2; - /** - * - * - *
            -         * Adversarial query classification type.
            -         * 
            - * - * ADVERSARIAL_QUERY = 1; - */ - public static final int ADVERSARIAL_QUERY_VALUE = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; - /** - * - * - *
            -         * Non-answer-seeking query classification type, for chit chat.
            -         * 
            - * - * NON_ANSWER_SEEKING_QUERY = 2; - */ - public static final int NON_ANSWER_SEEKING_QUERY_VALUE = 2; - - /** - * - * - *
            -         * Jail-breaking query classification type.
            -         * 
            - * - * JAIL_BREAKING_QUERY = 3; - */ - public static final int JAIL_BREAKING_QUERY_VALUE = 3; + /** + * + * + *
            +             * 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; + } + } - /** - * - * - *
            -         * 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; + /** + * + * + *
            +             * 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 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 final int RELEVANCE_SCORE_FIELD_NUMBER = 3; + private float relevanceScore_ = 0F; - /** - * @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); - } + /** + * + * + *
            +             * The relevance of the chunk for a given query. Values range from
            +             * 0.0 (completely irrelevant) to 1.0 (completely relevant).
            +             * This value is for informational purpose only. It may change for
            +             * the same query and chunk at any time due to a model retraining or
            +             * change in implementation.
            +             * 
            + * + * optional float relevance_score = 3; + * + * @return Whether the relevanceScore field is set. + */ + @java.lang.Override + public boolean hasRelevanceScore() { + return ((bitField0_ & 0x00000001) != 0); + } - /** - * @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 ADVERSARIAL_QUERY; - case 2: - return NON_ANSWER_SEEKING_QUERY; - case 3: - return JAIL_BREAKING_QUERY; - case 4: - return NON_ANSWER_SEEKING_QUERY_V2; - default: - return null; - } - } + /** + * + * + *
            +             * The relevance of the chunk for a given query. Values range from
            +             * 0.0 (completely irrelevant) to 1.0 (completely relevant).
            +             * This value is for informational purpose only. It may change for
            +             * the same query and chunk at any time due to a model retraining or
            +             * change in implementation.
            +             * 
            + * + * optional float relevance_score = 3; + * + * @return The relevanceScore. + */ + @java.lang.Override + public float getRelevanceScore() { + return relevanceScore_; + } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } + private byte memoizedIsInitialized = -1; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Type findValueByNumber(int number) { - return Type.forNumber(number); - } - }; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - 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()); - } + memoizedIsInitialized = 1; + return true; + } - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(chunk_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, chunk_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, content_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeFloat(3, relevanceScore_); + } + getUnknownFields().writeTo(output); + } - public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.getDescriptor() - .getEnumTypes() - .get(0); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private static final Type[] VALUES = values(); + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(chunk_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, chunk_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, content_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, relevanceScore_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - 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()]; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .ChunkInfo + other = + (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo) + obj; - private final int value; + if (!getChunk().equals(other.getChunk())) return false; + if (!getContent().equals(other.getContent())) return false; + if (hasRelevanceScore() != other.hasRelevanceScore()) return false; + if (hasRelevanceScore()) { + if (java.lang.Float.floatToIntBits(getRelevanceScore()) + != java.lang.Float.floatToIntBits(other.getRelevanceScore())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - private Type(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type) - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CHUNK_FIELD_NUMBER; + hash = (53 * hash) + getChunk().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + if (hasRelevanceScore()) { + hash = (37 * hash) + RELEVANCE_SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRelevanceScore()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static final int TYPE_FIELD_NUMBER = 1; - private int type_ = 0; + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -       * Query classification type.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type type = 1; - * - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -       * Query classification type.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type type = 1; - * - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Type - getType() { - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Type - result = - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Type.forNumber(type_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Type.UNRECOGNIZED - : result; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int POSITIVE_FIELD_NUMBER = 2; - private boolean positive_ = false; + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -       * Classification output.
            -       * 
            - * - * bool positive = 2; - * - * @return The positive. - */ - @java.lang.Override - public boolean getPositive() { - return positive_; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private byte memoizedIsInitialized = -1; + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - memoizedIsInitialized = 1; - return true; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (type_ - != com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Type.TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, type_); - } - if (positive_ != false) { - output.writeBool(2, positive_); - } - getUnknownFields().writeTo(output); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - size = 0; - if (type_ - != com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Type.TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); - } - if (positive_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, positive_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - other = - (com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo) - obj; + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - if (type_ != other.type_) return false; - if (getPositive() != other.getPositive()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @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) + POSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPositive()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .ChunkInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - 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 toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +             * Chunk information.
            +             * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo) + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .ChunkInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_ChunkInfo_descriptor; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_ChunkInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo.class, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo.Builder.class); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo.newBuilder() + private Builder() {} - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + chunk_ = ""; + content_ = ""; + relevanceScore_ = 0F; + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_ChunkInfo_descriptor; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo.getDefaultInstance(); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + build() { + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .ChunkInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .ChunkInfo + result = + new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.chunk_ = chunk_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = content_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.relevanceScore_ = relevanceScore_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - 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.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo.getDefaultInstance()) return this; + if (!other.getChunk().isEmpty()) { + chunk_ = other.chunk_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getContent().isEmpty()) { + content_ = other.content_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasRelevanceScore()) { + setRelevanceScore(other.getRelevanceScore()); + } + 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.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
            -       * Query classification information.
            -       * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo) - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_QueryClassificationInfo_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: + { + chunk_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 29: + { + relevanceScore_ = input.readFloat(); + bitField0_ |= 0x00000004; + break; + } // case 29 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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 - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_QueryClassificationInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.class, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Builder.class); - } + private int bitField0_; - // Construct using - // com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.newBuilder() - private Builder() {} + private java.lang.Object chunk_ = ""; - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + /** + * + * + *
            +               * Chunk resource name.
            +               * 
            + * + * string chunk = 1; + * + * @return The chunk. + */ + public java.lang.String getChunk() { + java.lang.Object ref = chunk_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + chunk_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - type_ = 0; - positive_ = false; - return this; - } + /** + * + * + *
            +               * Chunk resource name.
            +               * 
            + * + * string chunk = 1; + * + * @return The bytes for chunk. + */ + public com.google.protobuf.ByteString getChunkBytes() { + java.lang.Object ref = chunk_; + if (ref instanceof 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; + } + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_QueryClassificationInfo_descriptor; - } + /** + * + * + *
            +               * Chunk resource name.
            +               * 
            + * + * string chunk = 1; + * + * @param value The chunk to set. + * @return This builder for chaining. + */ + public Builder setChunk(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + chunk_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.getDefaultInstance(); - } + /** + * + * + *
            +               * Chunk resource name.
            +               * 
            + * + * string chunk = 1; + * + * @return This builder for chaining. + */ + public Builder clearChunk() { + chunk_ = getDefaultInstance().getChunk(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - build() { - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + /** + * + * + *
            +               * Chunk resource name.
            +               * 
            + * + * string chunk = 1; + * + * @param value The bytes for chunk to set. + * @return This builder for chaining. + */ + public Builder setChunkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + chunk_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - buildPartial() { - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - result = - new com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + private java.lang.Object content_ = ""; - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.type_ = type_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.positive_ = positive_; - } - } + /** + * + * + *
            +               * Chunk textual content.
            +               * 
            + * + * string content = 2; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo) - other); - } else { - super.mergeFrom(other); - return this; - } - } + /** + * + * + *
            +               * Chunk textual content.
            +               * 
            + * + * string content = 2; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof 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 Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.getDefaultInstance()) return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (other.getPositive() != false) { - setPositive(other.getPositive()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + /** + * + * + *
            +               * Chunk textual content.
            +               * 
            + * + * string content = 2; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + /** + * + * + *
            +               * Chunk textual content.
            +               * 
            + * + * string content = 2; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return 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: - { - type_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - positive_ = 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; - } + /** + * + * + *
            +               * Chunk textual content.
            +               * 
            + * + * string content = 2; + * + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - private int bitField0_; + private float relevanceScore_; - private int type_ = 0; + /** + * + * + *
            +               * The relevance of the chunk for a given query. Values range from
            +               * 0.0 (completely irrelevant) to 1.0 (completely relevant).
            +               * This value is for informational purpose only. It may change for
            +               * the same query and chunk at any time due to a model retraining or
            +               * change in implementation.
            +               * 
            + * + * optional float relevance_score = 3; + * + * @return Whether the relevanceScore field is set. + */ + @java.lang.Override + public boolean hasRelevanceScore() { + return ((bitField0_ & 0x00000004) != 0); + } - /** - * - * - *
            -         * Query classification type.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type type = 1; - * - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } + /** + * + * + *
            +               * The relevance of the chunk for a given query. Values range from
            +               * 0.0 (completely irrelevant) to 1.0 (completely relevant).
            +               * This value is for informational purpose only. It may change for
            +               * the same query and chunk at any time due to a model retraining or
            +               * change in implementation.
            +               * 
            + * + * optional float relevance_score = 3; + * + * @return The relevanceScore. + */ + @java.lang.Override + public float getRelevanceScore() { + return relevanceScore_; + } - /** - * - * - *
            -         * Query classification type.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.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 relevance of the chunk for a given query. Values range from
            +               * 0.0 (completely irrelevant) to 1.0 (completely relevant).
            +               * This value is for informational purpose only. It may change for
            +               * the same query and chunk at any time due to a model retraining or
            +               * change in implementation.
            +               * 
            + * + * optional float relevance_score = 3; + * + * @param value The relevanceScore to set. + * @return This builder for chaining. + */ + public Builder setRelevanceScore(float value) { - /** - * - * - *
            -         * Query classification type.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type type = 1; - * - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Type - getType() { - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Type - result = - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Type.forNumber(type_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Type.UNRECOGNIZED - : result; - } + relevanceScore_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - /** - * - * - *
            -         * Query classification type.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type type = 1; - * - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType( - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Type - value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - type_ = value.getNumber(); - onChanged(); - return this; - } + /** + * + * + *
            +               * The relevance of the chunk for a given query. Values range from
            +               * 0.0 (completely irrelevant) to 1.0 (completely relevant).
            +               * This value is for informational purpose only. It may change for
            +               * the same query and chunk at any time due to a model retraining or
            +               * change in implementation.
            +               * 
            + * + * optional float relevance_score = 3; + * + * @return This builder for chaining. + */ + public Builder clearRelevanceScore() { + bitField0_ = (bitField0_ & ~0x00000004); + relevanceScore_ = 0F; + onChanged(); + return this; + } - /** - * - * - *
            -         * Query classification type.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type type = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = 0; - onChanged(); - return this; - } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo) + } - private boolean positive_; + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo) + private static final com.google.cloud.discoveryengine.v1beta.Answer.Step.Action + .Observation.SearchResult.ChunkInfo + DEFAULT_INSTANCE; - /** - * - * - *
            -         * Classification output.
            -         * 
            - * - * bool positive = 2; - * - * @return The positive. - */ - @java.lang.Override - public boolean getPositive() { - return positive_; - } + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo(); + } - /** - * - * - *
            -         * Classification output.
            -         * 
            - * - * bool positive = 2; - * - * @param value The positive to set. - * @return This builder for chaining. - */ - public Builder setPositive(boolean value) { + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - positive_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChunkInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - /** - * - * - *
            -         * Classification output.
            -         * 
            - * - * bool positive = 2; - * - * @return This builder for chaining. - */ - public Builder clearPositive() { - bitField0_ = (bitField0_ & ~0x00000002); - positive_ = false; - onChanged(); - return this; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo) - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo) - private static final com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - DEFAULT_INSTANCE; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo(); - } + private int bitField0_; + public static final int DOCUMENT_FIELD_NUMBER = 1; - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @SuppressWarnings("serial") + private volatile java.lang.Object document_ = ""; - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryClassificationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); + /** + * + * + *
            +           * Document resource name.
            +           * 
            + * + * string document = 1; + * + * @return The document. + */ + @java.lang.Override + public java.lang.String getDocument() { + java.lang.Object ref = document_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + document_ = s; + return s; } - }; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * + * + *
            +           * Document resource name.
            +           * 
            + * + * string document = 1; + * + * @return The bytes for document. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDocumentBytes() { + java.lang.Object ref = document_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + document_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static final int URI_FIELD_NUMBER = 2; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; - public static final int QUERY_CLASSIFICATION_INFO_FIELD_NUMBER = 1; + /** + * + * + *
            +           * URI for the document.
            +           * 
            + * + * 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; + } + } - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo> - queryClassificationInfo_; + /** + * + * + *
            +           * URI for the document.
            +           * 
            + * + * 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; + } + } - /** - * - * - *
            -     * Query classification information.
            -     * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo> - getQueryClassificationInfoList() { - return queryClassificationInfo_; - } + public static final int TITLE_FIELD_NUMBER = 3; - /** - * - * - *
            -     * Query classification information.
            -     * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfoOrBuilder> - getQueryClassificationInfoOrBuilderList() { - return queryClassificationInfo_; - } + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; - /** - * - * - *
            -     * Query classification information.
            -     * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - @java.lang.Override - public int getQueryClassificationInfoCount() { - return queryClassificationInfo_.size(); - } + /** + * + * + *
            +           * Title.
            +           * 
            + * + * string title = 3; + * + * @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; + } + } - /** - * - * - *
            -     * Query classification information.
            -     * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - getQueryClassificationInfo(int index) { - return queryClassificationInfo_.get(index); - } + /** + * + * + *
            +           * Title.
            +           * 
            + * + * string title = 3; + * + * @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; + } + } - /** - * - * - *
            -     * Query classification information.
            -     * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfoOrBuilder - getQueryClassificationInfoOrBuilder(int index) { - return queryClassificationInfo_.get(index); - } + public static final int SNIPPET_INFO_FIELD_NUMBER = 4; - private byte memoizedIsInitialized = -1; + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo> + snippetInfo_; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * + * + *
            +           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +           * level snippets.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo> + getSnippetInfoList() { + return snippetInfo_; + } - memoizedIsInitialized = 1; - return true; - } + /** + * + * + *
            +           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +           * level snippets.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfoOrBuilder> + getSnippetInfoOrBuilderList() { + return snippetInfo_; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < queryClassificationInfo_.size(); i++) { - output.writeMessage(1, queryClassificationInfo_.get(i)); - } - getUnknownFields().writeTo(output); - } + /** + * + * + *
            +           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +           * level snippets.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + @java.lang.Override + public int getSnippetInfoCount() { + return snippetInfo_.size(); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * + * + *
            +           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +           * level snippets.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .SnippetInfo + getSnippetInfo(int index) { + return snippetInfo_.get(index); + } - size = 0; - for (int i = 0; i < queryClassificationInfo_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, queryClassificationInfo_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * + * + *
            +           * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +           * level snippets.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .SnippetInfoOrBuilder + getSnippetInfoOrBuilder(int index) { + return snippetInfo_.get(index); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo other = - (com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo) obj; + public static final int CHUNK_INFO_FIELD_NUMBER = 5; - if (!getQueryClassificationInfoList().equals(other.getQueryClassificationInfoList())) - return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo> + chunkInfo_; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getQueryClassificationInfoCount() > 0) { - hash = (37 * hash) + QUERY_CLASSIFICATION_INFO_FIELD_NUMBER; - hash = (53 * hash) + getQueryClassificationInfoList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * + * + *
            +           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +           * populate chunk info.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo> + getChunkInfoList() { + return chunkInfo_; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +           * populate chunk info.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfoOrBuilder> + getChunkInfoOrBuilderList() { + return chunkInfo_; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +           * populate chunk info.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + @java.lang.Override + public int getChunkInfoCount() { + return chunkInfo_.size(); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +           * populate chunk info.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .ChunkInfo + getChunkInfo(int index) { + return chunkInfo_.get(index); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo parseFrom( - 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.v1beta.Answer.QueryUnderstandingInfo parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +           * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +           * populate chunk info.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .ChunkInfoOrBuilder + getChunkInfoOrBuilder(int index) { + return chunkInfo_.get(index); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static final int STRUCT_DATA_FIELD_NUMBER = 6; + private com.google.protobuf.Struct structData_; - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +           * Data representation.
            +           * The structured JSON data for the document.
            +           * It's populated from the struct data from the Document, or the
            +           * Chunk in search result.
            +           * 
            + * + * .google.protobuf.Struct struct_data = 6; + * + * @return Whether the structData field is set. + */ + @java.lang.Override + public boolean hasStructData() { + return ((bitField0_ & 0x00000001) != 0); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + /** + * + * + *
            +           * Data representation.
            +           * The structured JSON data for the document.
            +           * It's populated from the struct data from the Document, or the
            +           * Chunk in search result.
            +           * 
            + * + * .google.protobuf.Struct struct_data = 6; + * + * @return The structData. + */ + @java.lang.Override + public com.google.protobuf.Struct getStructData() { + return structData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structData_; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +           * Data representation.
            +           * The structured JSON data for the document.
            +           * It's populated from the struct data from the Document, or the
            +           * Chunk in search result.
            +           * 
            + * + * .google.protobuf.Struct struct_data = 6; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { + return structData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structData_; + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + private byte memoizedIsInitialized = -1; - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + memoizedIsInitialized = 1; + return true; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, document_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, title_); + } + for (int i = 0; i < snippetInfo_.size(); i++) { + output.writeMessage(4, snippetInfo_.get(i)); + } + for (int i = 0; i < chunkInfo_.size(); i++) { + output.writeMessage(5, chunkInfo_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getStructData()); + } + getUnknownFields().writeTo(output); + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, document_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, title_); + } + for (int i = 0; i < snippetInfo_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, snippetInfo_.get(i)); + } + for (int i = 0; i < chunkInfo_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, chunkInfo_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStructData()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + other = + (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult) + obj; - /** - * - * - *
            -     * Query understanding information.
            -     * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo) - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_descriptor; - } + if (!getDocument().equals(other.getDocument())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getSnippetInfoList().equals(other.getSnippetInfoList())) return false; + if (!getChunkInfoList().equals(other.getChunkInfoList())) return false; + if (hasStructData() != other.hasStructData()) return false; + if (hasStructData()) { + if (!getStructData().equals(other.getStructData())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.class, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.Builder - .class); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + if (getSnippetInfoCount() > 0) { + hash = (37 * hash) + SNIPPET_INFO_FIELD_NUMBER; + hash = (53 * hash) + getSnippetInfoList().hashCode(); + } + if (getChunkInfoCount() > 0) { + hash = (37 * hash) + CHUNK_INFO_FIELD_NUMBER; + hash = (53 * hash) + getChunkInfoList().hashCode(); + } + if (hasStructData()) { + hash = (37 * hash) + STRUCT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getStructData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - // Construct using - // com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.newBuilder() - private Builder() {} + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult + 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; - if (queryClassificationInfoBuilder_ == null) { - queryClassificationInfo_ = java.util.Collections.emptyList(); - } else { - queryClassificationInfo_ = null; - queryClassificationInfoBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult + 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.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_descriptor; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult + 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.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .getDefaultInstance(); - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo build() { - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult + 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.discoveryengine.v1beta.Answer.QueryUnderstandingInfo buildPartial() { - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo result = - new com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo result) { - if (queryClassificationInfoBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - queryClassificationInfo_ = - java.util.Collections.unmodifiableList(queryClassificationInfo_); - bitField0_ = (bitField0_ & ~0x00000001); + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - result.queryClassificationInfo_ = queryClassificationInfo_; - } else { - result.queryClassificationInfo_ = queryClassificationInfoBuilder_.build(); - } - } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo result) { - int from_bitField0_ = bitField0_; - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input); + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo) other); - } else { - super.mergeFrom(other); - return this; - } - } + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo other) { - if (other - == com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .getDefaultInstance()) return this; - if (queryClassificationInfoBuilder_ == null) { - if (!other.queryClassificationInfo_.isEmpty()) { - if (queryClassificationInfo_.isEmpty()) { - queryClassificationInfo_ = other.queryClassificationInfo_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureQueryClassificationInfoIsMutable(); - queryClassificationInfo_.addAll(other.queryClassificationInfo_); - } - onChanged(); + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - } else { - if (!other.queryClassificationInfo_.isEmpty()) { - if (queryClassificationInfoBuilder_.isEmpty()) { - queryClassificationInfoBuilder_.dispose(); - queryClassificationInfoBuilder_ = null; - queryClassificationInfo_ = other.queryClassificationInfo_; - bitField0_ = (bitField0_ & ~0x00000001); - queryClassificationInfoBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetQueryClassificationInfoFieldBuilder() - : null; - } else { - queryClassificationInfoBuilder_.addAllMessages(other.queryClassificationInfo_); - } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.parser(), - extensionRegistry); - if (queryClassificationInfoBuilder_ == null) { - ensureQueryClassificationInfoIsMutable(); - queryClassificationInfo_.add(m); - } else { - queryClassificationInfoBuilder_.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; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private int bitField0_; + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo> - queryClassificationInfo_ = java.util.Collections.emptyList(); + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - private void ensureQueryClassificationInfoIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - queryClassificationInfo_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo>(queryClassificationInfo_); - bitField0_ |= 0x00000001; - } - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfoOrBuilder> - queryClassificationInfoBuilder_; + /** + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult) + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_descriptor; + } - /** - * - * - *
            -       * Query classification information.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo> - getQueryClassificationInfoList() { - if (queryClassificationInfoBuilder_ == null) { - return java.util.Collections.unmodifiableList(queryClassificationInfo_); - } else { - return queryClassificationInfoBuilder_.getMessageList(); - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.class, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.Builder.class); + } - /** - * - * - *
            -       * Query classification information.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - public int getQueryClassificationInfoCount() { - if (queryClassificationInfoBuilder_ == null) { - return queryClassificationInfo_.size(); - } else { - return queryClassificationInfoBuilder_.getCount(); - } - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - /** - * - * - *
            -       * Query classification information.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - getQueryClassificationInfo(int index) { - if (queryClassificationInfoBuilder_ == null) { - return queryClassificationInfo_.get(index); - } else { - return queryClassificationInfoBuilder_.getMessage(index); - } - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - /** - * - * - *
            -       * Query classification information.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - public Builder setQueryClassificationInfo( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - value) { - if (queryClassificationInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueryClassificationInfoIsMutable(); - queryClassificationInfo_.set(index, value); - onChanged(); - } else { - queryClassificationInfoBuilder_.setMessage(index, value); - } - return this; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSnippetInfoFieldBuilder(); + internalGetChunkInfoFieldBuilder(); + internalGetStructDataFieldBuilder(); + } + } - /** - * - * - *
            -       * Query classification information.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - public Builder setQueryClassificationInfo( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Builder - builderForValue) { - if (queryClassificationInfoBuilder_ == null) { - ensureQueryClassificationInfoIsMutable(); - queryClassificationInfo_.set(index, builderForValue.build()); - onChanged(); - } else { - queryClassificationInfoBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + document_ = ""; + uri_ = ""; + title_ = ""; + if (snippetInfoBuilder_ == null) { + snippetInfo_ = java.util.Collections.emptyList(); + } else { + snippetInfo_ = null; + snippetInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (chunkInfoBuilder_ == null) { + chunkInfo_ = java.util.Collections.emptyList(); + } else { + chunkInfo_ = null; + chunkInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + structData_ = null; + if (structDataBuilder_ != null) { + structDataBuilder_.dispose(); + structDataBuilder_ = null; + } + return this; + } - /** - * - * - *
            -       * Query classification information.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - public Builder addQueryClassificationInfo( - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - value) { - if (queryClassificationInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueryClassificationInfoIsMutable(); - queryClassificationInfo_.add(value); - onChanged(); - } else { - queryClassificationInfoBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
            -       * Query classification information.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - public Builder addQueryClassificationInfo( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo - value) { - if (queryClassificationInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureQueryClassificationInfoIsMutable(); - queryClassificationInfo_.add(index, value); - onChanged(); - } else { - queryClassificationInfoBuilder_.addMessage(index, value); - } - return this; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_SearchResult_descriptor; + } - /** - * - * - *
            -       * Query classification information.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - public Builder addQueryClassificationInfo( - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Builder - builderForValue) { - if (queryClassificationInfoBuilder_ == null) { - ensureQueryClassificationInfoIsMutable(); - queryClassificationInfo_.add(builderForValue.build()); - onChanged(); - } else { - queryClassificationInfoBuilder_.addMessage(builderForValue.build()); - } - return this; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.getDefaultInstance(); + } - /** - * - * - *
            -       * Query classification information.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - public Builder addQueryClassificationInfo( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Builder - builderForValue) { - if (queryClassificationInfoBuilder_ == null) { - ensureQueryClassificationInfoIsMutable(); - queryClassificationInfo_.add(index, builderForValue.build()); - onChanged(); - } else { - queryClassificationInfoBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult + build() { + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * - * - *
            -       * Query classification information.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - public Builder addAllQueryClassificationInfo( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo> - values) { - if (queryClassificationInfoBuilder_ == null) { - ensureQueryClassificationInfoIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queryClassificationInfo_); - onChanged(); - } else { - queryClassificationInfoBuilder_.addAllMessages(values); - } - return this; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + result = + new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - /** - * - * - *
            -       * Query classification information.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - public Builder clearQueryClassificationInfo() { - if (queryClassificationInfoBuilder_ == null) { - queryClassificationInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - queryClassificationInfoBuilder_.clear(); - } - return this; - } + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + result) { + if (snippetInfoBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + snippetInfo_ = java.util.Collections.unmodifiableList(snippetInfo_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.snippetInfo_ = snippetInfo_; + } else { + result.snippetInfo_ = snippetInfoBuilder_.build(); + } + if (chunkInfoBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + chunkInfo_ = java.util.Collections.unmodifiableList(chunkInfo_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.chunkInfo_ = chunkInfo_; + } else { + result.chunkInfo_ = chunkInfoBuilder_.build(); + } + } - /** - * - * - *
            -       * Query classification information.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - public Builder removeQueryClassificationInfo(int index) { - if (queryClassificationInfoBuilder_ == null) { - ensureQueryClassificationInfoIsMutable(); - queryClassificationInfo_.remove(index); - onChanged(); - } else { - queryClassificationInfoBuilder_.remove(index); - } - return this; - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.document_ = document_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.title_ = title_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.structData_ = + structDataBuilder_ == null ? structData_ : structDataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - /** - * - * - *
            -       * Query classification information.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.getDefaultInstance()) return this; + if (!other.getDocument().isEmpty()) { + document_ = other.document_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (snippetInfoBuilder_ == null) { + if (!other.snippetInfo_.isEmpty()) { + if (snippetInfo_.isEmpty()) { + snippetInfo_ = other.snippetInfo_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureSnippetInfoIsMutable(); + snippetInfo_.addAll(other.snippetInfo_); + } + onChanged(); + } + } else { + if (!other.snippetInfo_.isEmpty()) { + if (snippetInfoBuilder_.isEmpty()) { + snippetInfoBuilder_.dispose(); + snippetInfoBuilder_ = null; + snippetInfo_ = other.snippetInfo_; + bitField0_ = (bitField0_ & ~0x00000008); + snippetInfoBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSnippetInfoFieldBuilder() + : null; + } else { + snippetInfoBuilder_.addAllMessages(other.snippetInfo_); + } + } + } + if (chunkInfoBuilder_ == null) { + if (!other.chunkInfo_.isEmpty()) { + if (chunkInfo_.isEmpty()) { + chunkInfo_ = other.chunkInfo_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureChunkInfoIsMutable(); + chunkInfo_.addAll(other.chunkInfo_); + } + onChanged(); + } + } else { + if (!other.chunkInfo_.isEmpty()) { + if (chunkInfoBuilder_.isEmpty()) { + chunkInfoBuilder_.dispose(); + chunkInfoBuilder_ = null; + chunkInfo_ = other.chunkInfo_; + bitField0_ = (bitField0_ & ~0x00000010); + chunkInfoBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetChunkInfoFieldBuilder() + : null; + } else { + chunkInfoBuilder_.addAllMessages(other.chunkInfo_); + } + } + } + if (other.hasStructData()) { + mergeStructData(other.getStructData()); + } + 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: + { + document_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action + .Observation.SearchResult.SnippetInfo.parser(), + extensionRegistry); + if (snippetInfoBuilder_ == null) { + ensureSnippetInfoIsMutable(); + snippetInfo_.add(m); + } else { + snippetInfoBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action + .Observation.SearchResult.ChunkInfo.parser(), + extensionRegistry); + if (chunkInfoBuilder_ == null) { + ensureChunkInfoIsMutable(); + chunkInfo_.add(m); + } else { + chunkInfoBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetStructDataFieldBuilder().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 java.lang.Object document_ = ""; + + /** + * + * + *
            +             * Document resource name.
            +             * 
            + * + * string document = 1; + * + * @return The document. + */ + public java.lang.String getDocument() { + java.lang.Object ref = document_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + document_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +             * Document resource name.
            +             * 
            + * + * string document = 1; + * + * @return The bytes for document. + */ + public com.google.protobuf.ByteString getDocumentBytes() { + java.lang.Object ref = document_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + document_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +             * Document resource name.
            +             * 
            + * + * string document = 1; + * + * @param value The document to set. + * @return This builder for chaining. + */ + public Builder setDocument(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + document_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +             * Document resource name.
            +             * 
            + * + * string document = 1; + * + * @return This builder for chaining. + */ + public Builder clearDocument() { + document_ = getDefaultInstance().getDocument(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +             * Document resource name.
            +             * 
            + * + * string document = 1; + * + * @param value The bytes for document to set. + * @return This builder for chaining. + */ + public Builder setDocumentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + document_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + + /** + * + * + *
            +             * URI for the document.
            +             * 
            + * + * 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 for the document.
            +             * 
            + * + * 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 for the document.
            +             * 
            + * + * 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 for the document.
            +             * 
            + * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +             * URI for the document.
            +             * 
            + * + * 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 title_ = ""; + + /** + * + * + *
            +             * Title.
            +             * 
            + * + * string title = 3; + * + * @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.
            +             * 
            + * + * string title = 3; + * + * @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.
            +             * 
            + * + * string title = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +             * Title.
            +             * 
            + * + * string title = 3; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +             * Title.
            +             * 
            + * + * string title = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo> + snippetInfo_ = java.util.Collections.emptyList(); + + private void ensureSnippetInfoIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + snippetInfo_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo>(snippetInfo_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfoOrBuilder> + snippetInfoBuilder_; + + /** + * + * + *
            +             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +             * level snippets.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo> + getSnippetInfoList() { + if (snippetInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(snippetInfo_); + } else { + return snippetInfoBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +             * level snippets.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + public int getSnippetInfoCount() { + if (snippetInfoBuilder_ == null) { + return snippetInfo_.size(); + } else { + return snippetInfoBuilder_.getCount(); + } + } + + /** + * + * + *
            +             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +             * level snippets.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo + getSnippetInfo(int index) { + if (snippetInfoBuilder_ == null) { + return snippetInfo_.get(index); + } else { + return snippetInfoBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +             * level snippets.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + public Builder setSnippetInfo( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .SnippetInfo + value) { + if (snippetInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSnippetInfoIsMutable(); + snippetInfo_.set(index, value); + onChanged(); + } else { + snippetInfoBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +             * level snippets.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + public Builder setSnippetInfo( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .SnippetInfo.Builder + builderForValue) { + if (snippetInfoBuilder_ == null) { + ensureSnippetInfoIsMutable(); + snippetInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + snippetInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +             * level snippets.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + public Builder addSnippetInfo( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .SnippetInfo + value) { + if (snippetInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSnippetInfoIsMutable(); + snippetInfo_.add(value); + onChanged(); + } else { + snippetInfoBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +             * level snippets.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + public Builder addSnippetInfo( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .SnippetInfo + value) { + if (snippetInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSnippetInfoIsMutable(); + snippetInfo_.add(index, value); + onChanged(); + } else { + snippetInfoBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +             * level snippets.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + public Builder addSnippetInfo( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .SnippetInfo.Builder + builderForValue) { + if (snippetInfoBuilder_ == null) { + ensureSnippetInfoIsMutable(); + snippetInfo_.add(builderForValue.build()); + onChanged(); + } else { + snippetInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +             * level snippets.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + public Builder addSnippetInfo( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .SnippetInfo.Builder + builderForValue) { + if (snippetInfoBuilder_ == null) { + ensureSnippetInfoIsMutable(); + snippetInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + snippetInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +             * level snippets.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + public Builder addAllSnippetInfo( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo> + values) { + if (snippetInfoBuilder_ == null) { + ensureSnippetInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snippetInfo_); + onChanged(); + } else { + snippetInfoBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +             * level snippets.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + public Builder clearSnippetInfo() { + if (snippetInfoBuilder_ == null) { + snippetInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + snippetInfoBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +             * level snippets.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + public Builder removeSnippetInfo(int index) { + if (snippetInfoBuilder_ == null) { + ensureSnippetInfoIsMutable(); + snippetInfo_.remove(index); + onChanged(); + } else { + snippetInfoBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +             * level snippets.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo.Builder + getSnippetInfoBuilder(int index) { + return internalGetSnippetInfoFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +             * level snippets.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfoOrBuilder + getSnippetInfoOrBuilder(int index) { + if (snippetInfoBuilder_ == null) { + return snippetInfo_.get(index); + } else { + return snippetInfoBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +             * level snippets.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfoOrBuilder> + getSnippetInfoOrBuilderList() { + if (snippetInfoBuilder_ != null) { + return snippetInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(snippetInfo_); + } + } + + /** + * + * + *
            +             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +             * level snippets.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo.Builder + addSnippetInfoBuilder() { + return internalGetSnippetInfoFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo.getDefaultInstance()); + } + + /** + * + * + *
            +             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +             * level snippets.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo.Builder + addSnippetInfoBuilder(int index) { + return internalGetSnippetInfoFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo.getDefaultInstance()); + } + + /** + * + * + *
            +             * If citation_type is DOCUMENT_LEVEL_CITATION, populate document
            +             * level snippets.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo.Builder> + getSnippetInfoBuilderList() { + return internalGetSnippetInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfoOrBuilder> + internalGetSnippetInfoFieldBuilder() { + if (snippetInfoBuilder_ == null) { + snippetInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.SnippetInfoOrBuilder>( + snippetInfo_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + snippetInfo_ = null; + } + return snippetInfoBuilder_; + } + + private java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo> + chunkInfo_ = java.util.Collections.emptyList(); + + private void ensureChunkInfoIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + chunkInfo_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo>(chunkInfo_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfoOrBuilder> + chunkInfoBuilder_; + + /** + * + * + *
            +             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +             * populate chunk info.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo> + getChunkInfoList() { + if (chunkInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(chunkInfo_); + } else { + return chunkInfoBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +             * populate chunk info.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + public int getChunkInfoCount() { + if (chunkInfoBuilder_ == null) { + return chunkInfo_.size(); + } else { + return chunkInfoBuilder_.getCount(); + } + } + + /** + * + * + *
            +             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +             * populate chunk info.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo + getChunkInfo(int index) { + if (chunkInfoBuilder_ == null) { + return chunkInfo_.get(index); + } else { + return chunkInfoBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +             * populate chunk info.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + public Builder setChunkInfo( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .ChunkInfo + value) { + if (chunkInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunkInfoIsMutable(); + chunkInfo_.set(index, value); + onChanged(); + } else { + chunkInfoBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +             * populate chunk info.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + public Builder setChunkInfo( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .ChunkInfo.Builder + builderForValue) { + if (chunkInfoBuilder_ == null) { + ensureChunkInfoIsMutable(); + chunkInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + chunkInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +             * populate chunk info.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + public Builder addChunkInfo( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .ChunkInfo + value) { + if (chunkInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunkInfoIsMutable(); + chunkInfo_.add(value); + onChanged(); + } else { + chunkInfoBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +             * populate chunk info.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + public Builder addChunkInfo( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .ChunkInfo + value) { + if (chunkInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunkInfoIsMutable(); + chunkInfo_.add(index, value); + onChanged(); + } else { + chunkInfoBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +             * populate chunk info.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + public Builder addChunkInfo( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .ChunkInfo.Builder + builderForValue) { + if (chunkInfoBuilder_ == null) { + ensureChunkInfoIsMutable(); + chunkInfo_.add(builderForValue.build()); + onChanged(); + } else { + chunkInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +             * populate chunk info.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + public Builder addChunkInfo( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .ChunkInfo.Builder + builderForValue) { + if (chunkInfoBuilder_ == null) { + ensureChunkInfoIsMutable(); + chunkInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + chunkInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +             * populate chunk info.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + public Builder addAllChunkInfo( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo> + values) { + if (chunkInfoBuilder_ == null) { + ensureChunkInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, chunkInfo_); + onChanged(); + } else { + chunkInfoBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +             * populate chunk info.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + public Builder clearChunkInfo() { + if (chunkInfoBuilder_ == null) { + chunkInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + chunkInfoBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +             * populate chunk info.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + public Builder removeChunkInfo(int index) { + if (chunkInfoBuilder_ == null) { + ensureChunkInfoIsMutable(); + chunkInfo_.remove(index); + onChanged(); + } else { + chunkInfoBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +             * populate chunk info.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo.Builder + getChunkInfoBuilder(int index) { + return internalGetChunkInfoFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +             * populate chunk info.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfoOrBuilder + getChunkInfoOrBuilder(int index) { + if (chunkInfoBuilder_ == null) { + return chunkInfo_.get(index); + } else { + return chunkInfoBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +             * populate chunk info.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfoOrBuilder> + getChunkInfoOrBuilderList() { + if (chunkInfoBuilder_ != null) { + return chunkInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(chunkInfo_); + } + } + + /** + * + * + *
            +             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +             * populate chunk info.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo.Builder + addChunkInfoBuilder() { + return internalGetChunkInfoFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo.getDefaultInstance()); + } + + /** + * + * + *
            +             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +             * populate chunk info.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo.Builder + addChunkInfoBuilder(int index) { + return internalGetChunkInfoFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo.getDefaultInstance()); + } + + /** + * + * + *
            +             * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
            +             * populate chunk info.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo.Builder> + getChunkInfoBuilderList() { + return internalGetChunkInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfoOrBuilder> + internalGetChunkInfoFieldBuilder() { + if (chunkInfoBuilder_ == null) { + chunkInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.ChunkInfoOrBuilder>( + chunkInfo_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + chunkInfo_ = null; + } + return chunkInfoBuilder_; + } + + private com.google.protobuf.Struct structData_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + structDataBuilder_; + + /** + * + * + *
            +             * Data representation.
            +             * The structured JSON data for the document.
            +             * It's populated from the struct data from the Document, or the
            +             * Chunk in search result.
            +             * 
            + * + * .google.protobuf.Struct struct_data = 6; + * + * @return Whether the structData field is set. + */ + public boolean hasStructData() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +             * Data representation.
            +             * The structured JSON data for the document.
            +             * It's populated from the struct data from the Document, or the
            +             * Chunk in search result.
            +             * 
            + * + * .google.protobuf.Struct struct_data = 6; + * + * @return The structData. + */ + public com.google.protobuf.Struct getStructData() { + if (structDataBuilder_ == null) { + return structData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structData_; + } else { + return structDataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +             * Data representation.
            +             * The structured JSON data for the document.
            +             * It's populated from the struct data from the Document, or the
            +             * Chunk in search result.
            +             * 
            + * + * .google.protobuf.Struct struct_data = 6; + */ + public Builder setStructData(com.google.protobuf.Struct value) { + if (structDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + structData_ = value; + } else { + structDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +             * Data representation.
            +             * The structured JSON data for the document.
            +             * It's populated from the struct data from the Document, or the
            +             * Chunk in search result.
            +             * 
            + * + * .google.protobuf.Struct struct_data = 6; + */ + public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue) { + if (structDataBuilder_ == null) { + structData_ = builderForValue.build(); + } else { + structDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +             * Data representation.
            +             * The structured JSON data for the document.
            +             * It's populated from the struct data from the Document, or the
            +             * Chunk in search result.
            +             * 
            + * + * .google.protobuf.Struct struct_data = 6; + */ + public Builder mergeStructData(com.google.protobuf.Struct value) { + if (structDataBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && structData_ != null + && structData_ != com.google.protobuf.Struct.getDefaultInstance()) { + getStructDataBuilder().mergeFrom(value); + } else { + structData_ = value; + } + } else { + structDataBuilder_.mergeFrom(value); + } + if (structData_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +             * Data representation.
            +             * The structured JSON data for the document.
            +             * It's populated from the struct data from the Document, or the
            +             * Chunk in search result.
            +             * 
            + * + * .google.protobuf.Struct struct_data = 6; + */ + public Builder clearStructData() { + bitField0_ = (bitField0_ & ~0x00000020); + structData_ = null; + if (structDataBuilder_ != null) { + structDataBuilder_.dispose(); + structDataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +             * Data representation.
            +             * The structured JSON data for the document.
            +             * It's populated from the struct data from the Document, or the
            +             * Chunk in search result.
            +             * 
            + * + * .google.protobuf.Struct struct_data = 6; + */ + public com.google.protobuf.Struct.Builder getStructDataBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetStructDataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +             * Data representation.
            +             * The structured JSON data for the document.
            +             * It's populated from the struct data from the Document, or the
            +             * Chunk in search result.
            +             * 
            + * + * .google.protobuf.Struct struct_data = 6; + */ + public com.google.protobuf.StructOrBuilder getStructDataOrBuilder() { + if (structDataBuilder_ != null) { + return structDataBuilder_.getMessageOrBuilder(); + } else { + return structData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structData_; + } + } + + /** + * + * + *
            +             * Data representation.
            +             * The structured JSON data for the document.
            +             * It's populated from the struct data from the Document, or the
            +             * Chunk in search result.
            +             * 
            + * + * .google.protobuf.Struct struct_data = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetStructDataFieldBuilder() { + if (structDataBuilder_ == null) { + structDataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getStructData(), getParentForChildren(), isClean()); + structData_ = null; + } + return structDataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult) + private static final com.google.cloud.discoveryengine.v1beta.Answer.Step.Action + .Observation.SearchResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult(); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Answer.Step.Action.Observation.SearchResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int SEARCH_RESULTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult> + searchResults_; + + /** + * + * + *
            +         * Search results observed by the search action, it can be snippets info
            +         * or chunk info, depending on the citation type set by the user.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult> + getSearchResultsList() { + return searchResults_; + } + + /** + * + * + *
            +         * Search results observed by the search action, it can be snippets info
            +         * or chunk info, depending on the citation type set by the user.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResultOrBuilder> + getSearchResultsOrBuilderList() { + return searchResults_; + } + + /** + * + * + *
            +         * Search results observed by the search action, it can be snippets info
            +         * or chunk info, depending on the citation type set by the user.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + @java.lang.Override + public int getSearchResultsCount() { + return searchResults_.size(); + } + + /** + * + * + *
            +         * Search results observed by the search action, it can be snippets info
            +         * or chunk info, depending on the citation type set by the user.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + getSearchResults(int index) { + return searchResults_.get(index); + } + + /** + * + * + *
            +         * Search results observed by the search action, it can be snippets info
            +         * or chunk info, depending on the citation type set by the user.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResultOrBuilder + getSearchResultsOrBuilder(int index) { + return searchResults_.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 < searchResults_.size(); i++) { + output.writeMessage(2, searchResults_.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 < searchResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, searchResults_.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.v1beta.Answer.Step.Action.Observation)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation other = + (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation) obj; + + if (!getSearchResultsList().equals(other.getSearchResultsList())) 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 (getSearchResultsCount() > 0) { + hash = (37 * hash) + SEARCH_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getSearchResultsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + 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.v1beta.Answer.Step.Action.Observation + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + parseFrom( + 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.v1beta.Answer.Step.Action.Observation + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +         * Observation.
            +         * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation) + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.ObservationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.class, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (searchResultsBuilder_ == null) { + searchResults_ = java.util.Collections.emptyList(); + } else { + searchResults_ = null; + searchResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_Observation_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation build() { + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation result = + new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation result) { + if (searchResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + searchResults_ = java.util.Collections.unmodifiableList(searchResults_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.searchResults_ = searchResults_; + } else { + result.searchResults_ = searchResultsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .getDefaultInstance()) return this; + if (searchResultsBuilder_ == null) { + if (!other.searchResults_.isEmpty()) { + if (searchResults_.isEmpty()) { + searchResults_ = other.searchResults_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSearchResultsIsMutable(); + searchResults_.addAll(other.searchResults_); + } + onChanged(); + } + } else { + if (!other.searchResults_.isEmpty()) { + if (searchResultsBuilder_.isEmpty()) { + searchResultsBuilder_.dispose(); + searchResultsBuilder_ = null; + searchResults_ = other.searchResults_; + bitField0_ = (bitField0_ & ~0x00000001); + searchResultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSearchResultsFieldBuilder() + : null; + } else { + searchResultsBuilder_.addAllMessages(other.searchResults_); + } + } + } + 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: + { + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action + .Observation.SearchResult.parser(), + extensionRegistry); + if (searchResultsBuilder_ == null) { + ensureSearchResultsIsMutable(); + searchResults_.add(m); + } else { + searchResultsBuilder_.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< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult> + searchResults_ = java.util.Collections.emptyList(); + + private void ensureSearchResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + searchResults_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult>(searchResults_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResultOrBuilder> + searchResultsBuilder_; + + /** + * + * + *
            +           * Search results observed by the search action, it can be snippets info
            +           * or chunk info, depending on the citation type set by the user.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult> + getSearchResultsList() { + if (searchResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(searchResults_); + } else { + return searchResultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +           * Search results observed by the search action, it can be snippets info
            +           * or chunk info, depending on the citation type set by the user.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + public int getSearchResultsCount() { + if (searchResultsBuilder_ == null) { + return searchResults_.size(); + } else { + return searchResultsBuilder_.getCount(); + } + } + + /** + * + * + *
            +           * Search results observed by the search action, it can be snippets info
            +           * or chunk info, depending on the citation type set by the user.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + getSearchResults(int index) { + if (searchResultsBuilder_ == null) { + return searchResults_.get(index); + } else { + return searchResultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +           * Search results observed by the search action, it can be snippets info
            +           * or chunk info, depending on the citation type set by the user.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + public Builder setSearchResults( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + value) { + if (searchResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchResultsIsMutable(); + searchResults_.set(index, value); + onChanged(); + } else { + searchResultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +           * Search results observed by the search action, it can be snippets info
            +           * or chunk info, depending on the citation type set by the user.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + public Builder setSearchResults( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .Builder + builderForValue) { + if (searchResultsBuilder_ == null) { + ensureSearchResultsIsMutable(); + searchResults_.set(index, builderForValue.build()); + onChanged(); + } else { + searchResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +           * Search results observed by the search action, it can be snippets info
            +           * or chunk info, depending on the citation type set by the user.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + public Builder addSearchResults( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + value) { + if (searchResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchResultsIsMutable(); + searchResults_.add(value); + onChanged(); + } else { + searchResultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +           * Search results observed by the search action, it can be snippets info
            +           * or chunk info, depending on the citation type set by the user.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + public Builder addSearchResults( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + value) { + if (searchResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchResultsIsMutable(); + searchResults_.add(index, value); + onChanged(); + } else { + searchResultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +           * Search results observed by the search action, it can be snippets info
            +           * or chunk info, depending on the citation type set by the user.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + public Builder addSearchResults( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .Builder + builderForValue) { + if (searchResultsBuilder_ == null) { + ensureSearchResultsIsMutable(); + searchResults_.add(builderForValue.build()); + onChanged(); + } else { + searchResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +           * Search results observed by the search action, it can be snippets info
            +           * or chunk info, depending on the citation type set by the user.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + public Builder addSearchResults( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .Builder + builderForValue) { + if (searchResultsBuilder_ == null) { + ensureSearchResultsIsMutable(); + searchResults_.add(index, builderForValue.build()); + onChanged(); + } else { + searchResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +           * Search results observed by the search action, it can be snippets info
            +           * or chunk info, depending on the citation type set by the user.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + public Builder addAllSearchResults( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult> + values) { + if (searchResultsBuilder_ == null) { + ensureSearchResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, searchResults_); + onChanged(); + } else { + searchResultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +           * Search results observed by the search action, it can be snippets info
            +           * or chunk info, depending on the citation type set by the user.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + public Builder clearSearchResults() { + if (searchResultsBuilder_ == null) { + searchResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + searchResultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +           * Search results observed by the search action, it can be snippets info
            +           * or chunk info, depending on the citation type set by the user.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + public Builder removeSearchResults(int index) { + if (searchResultsBuilder_ == null) { + ensureSearchResultsIsMutable(); + searchResults_.remove(index); + onChanged(); + } else { + searchResultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +           * Search results observed by the search action, it can be snippets info
            +           * or chunk info, depending on the citation type set by the user.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .Builder + getSearchResultsBuilder(int index) { + return internalGetSearchResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +           * Search results observed by the search action, it can be snippets info
            +           * or chunk info, depending on the citation type set by the user.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResultOrBuilder + getSearchResultsOrBuilder(int index) { + if (searchResultsBuilder_ == null) { + return searchResults_.get(index); + } else { + return searchResultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +           * Search results observed by the search action, it can be snippets info
            +           * or chunk info, depending on the citation type set by the user.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResultOrBuilder> + getSearchResultsOrBuilderList() { + if (searchResultsBuilder_ != null) { + return searchResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(searchResults_); + } + } + + /** + * + * + *
            +           * Search results observed by the search action, it can be snippets info
            +           * or chunk info, depending on the citation type set by the user.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .Builder + addSearchResultsBuilder() { + return internalGetSearchResultsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.getDefaultInstance()); + } + + /** + * + * + *
            +           * Search results observed by the search action, it can be snippets info
            +           * or chunk info, depending on the citation type set by the user.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult + .Builder + addSearchResultsBuilder(int index) { + return internalGetSearchResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.getDefaultInstance()); + } + + /** + * + * + *
            +           * Search results observed by the search action, it can be snippets info
            +           * or chunk info, depending on the citation type set by the user.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.SearchResult search_results = 2; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.Builder> + getSearchResultsBuilderList() { + return internalGetSearchResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResultOrBuilder> + internalGetSearchResultsFieldBuilder() { + if (searchResultsBuilder_ == null) { + searchResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResult.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .SearchResultOrBuilder>( + searchResults_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + searchResults_ = null; + } + return searchResultsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation) + private static final com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation(); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Observation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Answer.Step.Action.Observation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int actionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object action_; + + public enum ActionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SEARCH_ACTION(2), + ACTION_NOT_SET(0); + private final int value; + + private ActionCase(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 ActionCase valueOf(int value) { + return forNumber(value); + } + + public static ActionCase forNumber(int value) { + switch (value) { + case 2: + return SEARCH_ACTION; + case 0: + return ACTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); + } + + public static final int SEARCH_ACTION_FIELD_NUMBER = 2; + + /** + * + * + *
            +       * Search action.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; + * + * + * @return Whether the searchAction field is set. + */ + @java.lang.Override + public boolean hasSearchAction() { + return actionCase_ == 2; + } + + /** + * + * + *
            +       * Search action.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; + * + * + * @return The searchAction. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + getSearchAction() { + if (actionCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) action_; + } + return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + .getDefaultInstance(); + } + + /** + * + * + *
            +       * Search action.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchActionOrBuilder + getSearchActionOrBuilder() { + if (actionCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) action_; + } + return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + .getDefaultInstance(); + } + + public static final int OBSERVATION_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation_; + + /** + * + * + *
            +       * Observation.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; + * + * + * @return Whether the observation field is set. + */ + @java.lang.Override + public boolean hasObservation() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Observation.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; + * + * + * @return The observation. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + getObservation() { + return observation_ == null + ? com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .getDefaultInstance() + : observation_; + } + + /** + * + * + *
            +       * Observation.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.ObservationOrBuilder + getObservationOrBuilder() { + return observation_ == null + ? com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .getDefaultInstance() + : observation_; + } + + 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 (actionCase_ == 2) { + output.writeMessage( + 2, (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) action_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getObservation()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (actionCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) + action_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getObservation()); + } + 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.v1beta.Answer.Step.Action)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action other = + (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action) obj; + + if (hasObservation() != other.hasObservation()) return false; + if (hasObservation()) { + if (!getObservation().equals(other.getObservation())) return false; + } + if (!getActionCase().equals(other.getActionCase())) return false; + switch (actionCase_) { + case 2: + if (!getSearchAction().equals(other.getSearchAction())) 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(); + if (hasObservation()) { + hash = (37 * hash) + OBSERVATION_FIELD_NUMBER; + hash = (53 * hash) + getObservation().hashCode(); + } + switch (actionCase_) { + case 2: + hash = (37 * hash) + SEARCH_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getSearchAction().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action 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.v1beta.Answer.Step.Action parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action parseFrom( + 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.v1beta.Answer.Step.Action parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Action.
            +       * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Step.Action} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Step.Action) + com.google.cloud.discoveryengine.v1beta.Answer.Step.ActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.class, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetObservationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (searchActionBuilder_ != null) { + searchActionBuilder_.clear(); + } + observation_ = null; + if (observationBuilder_ != null) { + observationBuilder_.dispose(); + observationBuilder_ = null; + } + actionCase_ = 0; + action_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_Action_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action build() { + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action buildPartial() { + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action result = + new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.observation_ = + observationBuilder_ == null ? observation_ : observationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action result) { + result.actionCase_ = actionCase_; + result.action_ = this.action_; + if (actionCase_ == 2 && searchActionBuilder_ != null) { + result.action_ = searchActionBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Answer.Step.Action) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Answer.Step.Action) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Answer.Step.Action other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.getDefaultInstance()) + return this; + if (other.hasObservation()) { + mergeObservation(other.getObservation()); + } + switch (other.getActionCase()) { + case SEARCH_ACTION: + { + mergeSearchAction(other.getSearchAction()); + break; + } + case ACTION_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 18: + { + input.readMessage( + internalGetSearchActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetObservationFieldBuilder().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 actionCase_ = 0; + private java.lang.Object action_; + + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); + } + + public Builder clearAction() { + actionCase_ = 0; + action_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchActionOrBuilder> + searchActionBuilder_; + + /** + * + * + *
            +         * Search action.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; + * + * + * @return Whether the searchAction field is set. + */ + @java.lang.Override + public boolean hasSearchAction() { + return actionCase_ == 2; + } + + /** + * + * + *
            +         * Search action.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; + * + * + * @return The searchAction. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + getSearchAction() { + if (searchActionBuilder_ == null) { + if (actionCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) + action_; + } + return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + .getDefaultInstance(); + } else { + if (actionCase_ == 2) { + return searchActionBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + .getDefaultInstance(); + } + } + + /** + * + * + *
            +         * Search action.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; + * + */ + public Builder setSearchAction( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction value) { + if (searchActionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + searchActionBuilder_.setMessage(value); + } + actionCase_ = 2; + return this; + } + + /** + * + * + *
            +         * Search action.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; + * + */ + public Builder setSearchAction( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.Builder + builderForValue) { + if (searchActionBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + searchActionBuilder_.setMessage(builderForValue.build()); + } + actionCase_ = 2; + return this; + } + + /** + * + * + *
            +         * Search action.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; + * + */ + public Builder mergeSearchAction( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction value) { + if (searchActionBuilder_ == null) { + if (actionCase_ == 2 + && action_ + != com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + .getDefaultInstance()) { + action_ = + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + .newBuilder( + (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) + action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 2) { + searchActionBuilder_.mergeFrom(value); + } else { + searchActionBuilder_.setMessage(value); + } + } + actionCase_ = 2; + return this; + } + + /** + * + * + *
            +         * Search action.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; + * + */ + public Builder clearSearchAction() { + if (searchActionBuilder_ == null) { + if (actionCase_ == 2) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 2) { + actionCase_ = 0; + action_ = null; + } + searchActionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +         * Search action.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.Builder + getSearchActionBuilder() { + return internalGetSearchActionFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Search action.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchActionOrBuilder + getSearchActionOrBuilder() { + if ((actionCase_ == 2) && (searchActionBuilder_ != null)) { + return searchActionBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) + action_; + } + return com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + .getDefaultInstance(); + } + } + + /** + * + * + *
            +         * Search action.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction search_action = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchActionOrBuilder> + internalGetSearchActionFieldBuilder() { + if (searchActionBuilder_ == null) { + if (!(actionCase_ == 2)) { + action_ = + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction + .getDefaultInstance(); + } + searchActionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action + .SearchActionOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.SearchAction) + action_, + getParentForChildren(), + isClean()); + action_ = null; + } + actionCase_ = 2; + onChanged(); + return searchActionBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.ObservationOrBuilder> + observationBuilder_; + + /** + * + * + *
            +         * Observation.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; + * + * + * @return Whether the observation field is set. + */ + public boolean hasObservation() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +         * Observation.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; + * + * + * @return The observation. + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + getObservation() { + if (observationBuilder_ == null) { + return observation_ == null + ? com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .getDefaultInstance() + : observation_; + } else { + return observationBuilder_.getMessage(); + } + } + + /** + * + * + *
            +         * Observation.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; + * + */ + public Builder setObservation( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation value) { + if (observationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + observation_ = value; + } else { + observationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Observation.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; + * + */ + public Builder setObservation( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.Builder + builderForValue) { + if (observationBuilder_ == null) { + observation_ = builderForValue.build(); + } else { + observationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Observation.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; + * + */ + public Builder mergeObservation( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation value) { + if (observationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && observation_ != null + && observation_ + != com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .getDefaultInstance()) { + getObservationBuilder().mergeFrom(value); + } else { + observation_ = value; + } + } else { + observationBuilder_.mergeFrom(value); + } + if (observation_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * Observation.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; + * + */ + public Builder clearObservation() { + bitField0_ = (bitField0_ & ~0x00000002); + observation_ = null; + if (observationBuilder_ != null) { + observationBuilder_.dispose(); + observationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +         * Observation.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.Builder + getObservationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetObservationFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Observation.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.ObservationOrBuilder + getObservationOrBuilder() { + if (observationBuilder_ != null) { + return observationBuilder_.getMessageOrBuilder(); + } else { + return observation_ == null + ? com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation + .getDefaultInstance() + : observation_; + } + } + + /** + * + * + *
            +         * Observation.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation observation = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.ObservationOrBuilder> + internalGetObservationFieldBuilder() { + if (observationBuilder_ == null) { + observationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Observation.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action + .ObservationOrBuilder>(getObservation(), getParentForChildren(), isClean()); + observation_ = null; + } + return observationBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Step.Action) + private static final com.google.cloud.discoveryengine.v1beta.Answer.Step.Action + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Answer.Step.Action(); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step.Action + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Action parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Answer.Step.Action + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int STATE_FIELD_NUMBER = 1; + private int state_ = 0; + + /** + * + * + *
            +     * The state of the step.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.State state = 1; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +     * The state of the step.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.State state = 1; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.State getState() { + com.google.cloud.discoveryengine.v1beta.Answer.Step.State result = + com.google.cloud.discoveryengine.v1beta.Answer.Step.State.forNumber(state_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Answer.Step.State.UNRECOGNIZED + : result; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
            +     * The description of the step.
            +     * 
            + * + * string description = 2; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
            +     * The description of the step.
            +     * 
            + * + * string description = 2; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int THOUGHT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object thought_ = ""; + + /** + * + * + *
            +     * The thought of the step.
            +     * 
            + * + * string thought = 3; + * + * @return The thought. + */ + @java.lang.Override + public java.lang.String getThought() { + java.lang.Object ref = thought_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + thought_ = s; + return s; + } + } + + /** + * + * + *
            +     * The thought of the step.
            +     * 
            + * + * string thought = 3; + * + * @return The bytes for thought. + */ + @java.lang.Override + public com.google.protobuf.ByteString getThoughtBytes() { + java.lang.Object ref = thought_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + thought_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTIONS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List actions_; + + /** + * + * + *
            +     * Actions.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + @java.lang.Override + public java.util.List + getActionsList() { + return actions_; + } + + /** + * + * + *
            +     * Actions.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.Answer.Step.ActionOrBuilder> + getActionsOrBuilderList() { + return actions_; + } + + /** + * + * + *
            +     * Actions.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + @java.lang.Override + public int getActionsCount() { + return actions_.size(); + } + + /** + * + * + *
            +     * Actions.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action getActions(int index) { + return actions_.get(index); + } + + /** + * + * + *
            +     * Actions.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.ActionOrBuilder getActionsOrBuilder( + int index) { + return actions_.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 (state_ + != com.google.cloud.discoveryengine.v1beta.Answer.Step.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(thought_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, thought_); + } + for (int i = 0; i < actions_.size(); i++) { + output.writeMessage(4, actions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (state_ + != com.google.cloud.discoveryengine.v1beta.Answer.Step.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(thought_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, thought_); + } + for (int i = 0; i < actions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, actions_.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.v1beta.Answer.Step)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Answer.Step other = + (com.google.cloud.discoveryengine.v1beta.Answer.Step) obj; + + if (state_ != other.state_) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getThought().equals(other.getThought())) return false; + if (!getActionsList().equals(other.getActionsList())) 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + THOUGHT_FIELD_NUMBER; + hash = (53 * hash) + getThought().hashCode(); + if (getActionsCount() > 0) { + hash = (37 * hash) + ACTIONS_FIELD_NUMBER; + hash = (53 * hash) + getActionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step 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.v1beta.Answer.Step parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseFrom( + 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.v1beta.Answer.Step parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.Step prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Step information.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.Step} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.Step) + com.google.cloud.discoveryengine.v1beta.Answer.StepOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.Step.class, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.Answer.Step.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + state_ = 0; + description_ = ""; + thought_ = ""; + if (actionsBuilder_ == null) { + actions_ = java.util.Collections.emptyList(); + } else { + actions_ = null; + actionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Answer.Step.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step build() { + com.google.cloud.discoveryengine.v1beta.Answer.Step result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step buildPartial() { + com.google.cloud.discoveryengine.v1beta.Answer.Step result = + new com.google.cloud.discoveryengine.v1beta.Answer.Step(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.Answer.Step result) { + if (actionsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + actions_ = java.util.Collections.unmodifiableList(actions_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.actions_ = actions_; + } else { + result.actions_ = actionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Answer.Step result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.thought_ = thought_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Answer.Step) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Answer.Step) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Answer.Step other) { + if (other == com.google.cloud.discoveryengine.v1beta.Answer.Step.getDefaultInstance()) + return this; + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getThought().isEmpty()) { + thought_ = other.thought_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (actionsBuilder_ == null) { + if (!other.actions_.isEmpty()) { + if (actions_.isEmpty()) { + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureActionsIsMutable(); + actions_.addAll(other.actions_); + } + onChanged(); + } + } else { + if (!other.actions_.isEmpty()) { + if (actionsBuilder_.isEmpty()) { + actionsBuilder_.dispose(); + actionsBuilder_ = null; + actions_ = other.actions_; + bitField0_ = (bitField0_ & ~0x00000008); + actionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetActionsFieldBuilder() + : null; + } else { + actionsBuilder_.addAllMessages(other.actions_); + } + } + } + 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: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + thought_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.parser(), + extensionRegistry); + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(m); + } else { + actionsBuilder_.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 int state_ = 0; + + /** + * + * + *
            +       * The state of the step.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.State state = 1; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +       * The state of the step.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.State state = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The state of the step.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.State state = 1; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Step.State getState() { + com.google.cloud.discoveryengine.v1beta.Answer.Step.State result = + com.google.cloud.discoveryengine.v1beta.Answer.Step.State.forNumber(state_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Answer.Step.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * The state of the step.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.State state = 1; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.discoveryengine.v1beta.Answer.Step.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The state of the step.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.Step.State state = 1; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000001); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
            +       * The description of the step.
            +       * 
            + * + * string description = 2; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * The description of the step.
            +       * 
            + * + * string description = 2; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * The description of the step.
            +       * 
            + * + * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The description of the step.
            +       * 
            + * + * string description = 2; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The description of the step.
            +       * 
            + * + * string description = 2; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object thought_ = ""; + + /** + * + * + *
            +       * The thought of the step.
            +       * 
            + * + * string thought = 3; + * + * @return The thought. + */ + public java.lang.String getThought() { + java.lang.Object ref = thought_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + thought_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * The thought of the step.
            +       * 
            + * + * string thought = 3; + * + * @return The bytes for thought. + */ + public com.google.protobuf.ByteString getThoughtBytes() { + java.lang.Object ref = thought_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + thought_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * The thought of the step.
            +       * 
            + * + * string thought = 3; + * + * @param value The thought to set. + * @return This builder for chaining. + */ + public Builder setThought(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + thought_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The thought of the step.
            +       * 
            + * + * string thought = 3; + * + * @return This builder for chaining. + */ + public Builder clearThought() { + thought_ = getDefaultInstance().getThought(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The thought of the step.
            +       * 
            + * + * string thought = 3; + * + * @param value The bytes for thought to set. + * @return This builder for chaining. + */ + public Builder setThoughtBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + thought_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List actions_ = + java.util.Collections.emptyList(); + + private void ensureActionsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + actions_ = + new java.util.ArrayList( + actions_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Step.ActionOrBuilder> + actionsBuilder_; + + /** + * + * + *
            +       * Actions.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + public java.util.List + getActionsList() { + if (actionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(actions_); + } else { + return actionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +       * Actions.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + public int getActionsCount() { + if (actionsBuilder_ == null) { + return actions_.size(); + } else { + return actionsBuilder_.getCount(); + } + } + + /** + * + * + *
            +       * Actions.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action getActions(int index) { + if (actionsBuilder_ == null) { + return actions_.get(index); + } else { + return actionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +       * Actions.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + public Builder setActions( + int index, com.google.cloud.discoveryengine.v1beta.Answer.Step.Action value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.set(index, value); + onChanged(); + } else { + actionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Actions.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + public Builder setActions( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.set(index, builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Actions.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + public Builder addActions(com.google.cloud.discoveryengine.v1beta.Answer.Step.Action value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.add(value); + onChanged(); + } else { + actionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +       * Actions.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + public Builder addActions( + int index, com.google.cloud.discoveryengine.v1beta.Answer.Step.Action value) { + if (actionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionsIsMutable(); + actions_.add(index, value); + onChanged(); + } else { + actionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Actions.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + public Builder addActions( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Actions.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + public Builder addActions( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder builderForValue) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.add(index, builderForValue.build()); + onChanged(); + } else { + actionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Actions.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + public Builder addAllActions( + java.lang.Iterable + values) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, actions_); + onChanged(); + } else { + actionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * Actions.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + public Builder clearActions() { + if (actionsBuilder_ == null) { + actions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + actionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Actions.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + public Builder removeActions(int index) { + if (actionsBuilder_ == null) { + ensureActionsIsMutable(); + actions_.remove(index); + onChanged(); + } else { + actionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * Actions.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder getActionsBuilder( + int index) { + return internalGetActionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * Actions.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.ActionOrBuilder + getActionsOrBuilder(int index) { + if (actionsBuilder_ == null) { + return actions_.get(index); + } else { + return actionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * Actions.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.Answer.Step.ActionOrBuilder> + getActionsOrBuilderList() { + if (actionsBuilder_ != null) { + return actionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(actions_); + } + } + + /** + * + * + *
            +       * Actions.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder + addActionsBuilder() { + return internalGetActionsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.getDefaultInstance()); + } + + /** + * + * + *
            +       * Actions.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder addActionsBuilder( + int index) { + return internalGetActionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.getDefaultInstance()); + } + + /** + * + * + *
            +       * Actions.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step.Action actions = 4; + */ + public java.util.List + getActionsBuilderList() { + return internalGetActionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Step.ActionOrBuilder> + internalGetActionsFieldBuilder() { + if (actionsBuilder_ == null) { + actionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Action.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.Step.ActionOrBuilder>( + actions_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + actions_ = null; + } + return actionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.Step) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.Step) + private static final com.google.cloud.discoveryengine.v1beta.Answer.Step DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Answer.Step(); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.Step getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Step parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Answer.Step getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface QueryUnderstandingInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Query classification information.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo> + getQueryClassificationInfoList(); + + /** + * + * + *
            +     * Query classification information.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo + getQueryClassificationInfo(int index); + + /** + * + * + *
            +     * Query classification information.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + int getQueryClassificationInfoCount(); + + /** + * + * + *
            +     * Query classification information.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfoOrBuilder> + getQueryClassificationInfoOrBuilderList(); + + /** + * + * + *
            +     * Query classification information.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfoOrBuilder + getQueryClassificationInfoOrBuilder(int index); + } + + /** + * + * + *
            +   * Query understanding information.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo} + */ + public static final class QueryUnderstandingInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo) + QueryUnderstandingInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryUnderstandingInfo"); + } + + // Use QueryUnderstandingInfo.newBuilder() to construct. + private QueryUnderstandingInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryUnderstandingInfo() { + queryClassificationInfo_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.class, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.Builder.class); + } + + public interface QueryClassificationInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Query classification type.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type type = 1; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
            +       * Query classification type.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type type = 1; + * + * + * @return The type. + */ + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo + .Type + getType(); + + /** + * + * + *
            +       * Classification output.
            +       * 
            + * + * bool positive = 2; + * + * @return The positive. + */ + boolean getPositive(); + } + + /** + * + * + *
            +     * Query classification information.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo} + */ + public static final class QueryClassificationInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo) + QueryClassificationInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryClassificationInfo"); + } + + // Use QueryClassificationInfo.newBuilder() to construct. + private QueryClassificationInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryClassificationInfo() { + type_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_QueryClassificationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_QueryClassificationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.class, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Builder.class); + } + + /** + * + * + *
            +       * Query classification types.
            +       * 
            + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +         * Unspecified query classification type.
            +         * 
            + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
            +         * Adversarial query classification type.
            +         * 
            + * + * ADVERSARIAL_QUERY = 1; + */ + ADVERSARIAL_QUERY(1), + /** + * + * + *
            +         * Non-answer-seeking query classification type, for chit chat.
            +         * 
            + * + * NON_ANSWER_SEEKING_QUERY = 2; + */ + NON_ANSWER_SEEKING_QUERY(2), + /** + * + * + *
            +         * Jail-breaking query classification type.
            +         * 
            + * + * 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), + /** + * + * + *
            +         * User defined query classification type.
            +         * 
            + * + * USER_DEFINED_CLASSIFICATION_QUERY = 5; + */ + USER_DEFINED_CLASSIFICATION_QUERY(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
            +         * Unspecified query classification type.
            +         * 
            + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +         * Adversarial query classification type.
            +         * 
            + * + * ADVERSARIAL_QUERY = 1; + */ + public static final int ADVERSARIAL_QUERY_VALUE = 1; + + /** + * + * + *
            +         * Non-answer-seeking query classification type, for chit chat.
            +         * 
            + * + * NON_ANSWER_SEEKING_QUERY = 2; + */ + public static final int NON_ANSWER_SEEKING_QUERY_VALUE = 2; + + /** + * + * + *
            +         * Jail-breaking query classification type.
            +         * 
            + * + * 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; + + /** + * + * + *
            +         * User defined query classification type.
            +         * 
            + * + * USER_DEFINED_CLASSIFICATION_QUERY = 5; + */ + public static final int USER_DEFINED_CLASSIFICATION_QUERY_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static 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 ADVERSARIAL_QUERY; + case 2: + return NON_ANSWER_SEEKING_QUERY; + case 3: + return JAIL_BREAKING_QUERY; + case 4: + return NON_ANSWER_SEEKING_QUERY_V2; + case 5: + return USER_DEFINED_CLASSIFICATION_QUERY; + 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.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.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + + /** + * + * + *
            +       * Query classification type.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type type = 1; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
            +       * Query classification type.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type type = 1; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Type + getType() { + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Type + result = + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Type.forNumber(type_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Type.UNRECOGNIZED + : result; + } + + public static final int POSITIVE_FIELD_NUMBER = 2; + private boolean positive_ = false; + + /** + * + * + *
            +       * Classification output.
            +       * 
            + * + * bool positive = 2; + * + * @return The positive. + */ + @java.lang.Override + public boolean getPositive() { + return positive_; + } + + 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.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Type.TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + if (positive_ != false) { + output.writeBool(2, positive_); + } + 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.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (positive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, positive_); + } + 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.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + other = + (com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo) + obj; + + if (type_ != other.type_) return false; + if (getPositive() != other.getPositive()) 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) + POSITIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPositive()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + 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.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + parseFrom( + 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.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Query classification information.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo) + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_QueryClassificationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_QueryClassificationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.class, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + positive_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_QueryClassificationInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + build() { + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + result = + new com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.positive_ = positive_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.getPositive() != false) { + setPositive(other.getPositive()); + } + 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 16: + { + positive_ = 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 int type_ = 0; + + /** + * + * + *
            +         * Query classification type.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type type = 1; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
            +         * Query classification type.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.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; + } + + /** + * + * + *
            +         * Query classification type.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type type = 1; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Type + getType() { + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Type + result = + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Type.forNumber(type_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +         * Query classification type.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type type = 1; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Type + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Query classification type.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type type = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private boolean positive_; + + /** + * + * + *
            +         * Classification output.
            +         * 
            + * + * bool positive = 2; + * + * @return The positive. + */ + @java.lang.Override + public boolean getPositive() { + return positive_; + } + + /** + * + * + *
            +         * Classification output.
            +         * 
            + * + * bool positive = 2; + * + * @param value The positive to set. + * @return This builder for chaining. + */ + public Builder setPositive(boolean value) { + + positive_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Classification output.
            +         * 
            + * + * bool positive = 2; + * + * @return This builder for chaining. + */ + public Builder clearPositive() { + bitField0_ = (bitField0_ & ~0x00000002); + positive_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo) + private static final com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo(); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryClassificationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int QUERY_CLASSIFICATION_INFO_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo> + queryClassificationInfo_; + + /** + * + * + *
            +     * Query classification information.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo> + getQueryClassificationInfoList() { + return queryClassificationInfo_; + } + + /** + * + * + *
            +     * Query classification information.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfoOrBuilder> + getQueryClassificationInfoOrBuilderList() { + return queryClassificationInfo_; + } + + /** + * + * + *
            +     * Query classification information.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + @java.lang.Override + public int getQueryClassificationInfoCount() { + return queryClassificationInfo_.size(); + } + + /** + * + * + *
            +     * Query classification information.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + getQueryClassificationInfo(int index) { + return queryClassificationInfo_.get(index); + } + + /** + * + * + *
            +     * Query classification information.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfoOrBuilder + getQueryClassificationInfoOrBuilder(int index) { + return queryClassificationInfo_.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 < queryClassificationInfo_.size(); i++) { + output.writeMessage(1, queryClassificationInfo_.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 < queryClassificationInfo_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, queryClassificationInfo_.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.v1beta.Answer.QueryUnderstandingInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo other = + (com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo) obj; + + if (!getQueryClassificationInfoList().equals(other.getQueryClassificationInfoList())) + 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 (getQueryClassificationInfoCount() > 0) { + hash = (37 * hash) + QUERY_CLASSIFICATION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getQueryClassificationInfoList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo 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.v1beta.Answer.QueryUnderstandingInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo parseFrom( + 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.v1beta.Answer.QueryUnderstandingInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Query understanding information.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo) + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.class, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (queryClassificationInfoBuilder_ == null) { + queryClassificationInfo_ = java.util.Collections.emptyList(); + } else { + queryClassificationInfo_ = null; + queryClassificationInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo build() { + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo buildPartial() { + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo result = + new com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo result) { + if (queryClassificationInfoBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + queryClassificationInfo_ = + java.util.Collections.unmodifiableList(queryClassificationInfo_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.queryClassificationInfo_ = queryClassificationInfo_; + } else { + result.queryClassificationInfo_ = queryClassificationInfoBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .getDefaultInstance()) return this; + if (queryClassificationInfoBuilder_ == null) { + if (!other.queryClassificationInfo_.isEmpty()) { + if (queryClassificationInfo_.isEmpty()) { + queryClassificationInfo_ = other.queryClassificationInfo_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureQueryClassificationInfoIsMutable(); + queryClassificationInfo_.addAll(other.queryClassificationInfo_); + } + onChanged(); + } + } else { + if (!other.queryClassificationInfo_.isEmpty()) { + if (queryClassificationInfoBuilder_.isEmpty()) { + queryClassificationInfoBuilder_.dispose(); + queryClassificationInfoBuilder_ = null; + queryClassificationInfo_ = other.queryClassificationInfo_; + bitField0_ = (bitField0_ & ~0x00000001); + queryClassificationInfoBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetQueryClassificationInfoFieldBuilder() + : null; + } else { + queryClassificationInfoBuilder_.addAllMessages(other.queryClassificationInfo_); + } + } + } + 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.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.parser(), + extensionRegistry); + if (queryClassificationInfoBuilder_ == null) { + ensureQueryClassificationInfoIsMutable(); + queryClassificationInfo_.add(m); + } else { + queryClassificationInfoBuilder_.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.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo> + queryClassificationInfo_ = java.util.Collections.emptyList(); + + private void ensureQueryClassificationInfoIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + queryClassificationInfo_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo>(queryClassificationInfo_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfoOrBuilder> + queryClassificationInfoBuilder_; + + /** + * + * + *
            +       * Query classification information.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo> + getQueryClassificationInfoList() { + if (queryClassificationInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(queryClassificationInfo_); + } else { + return queryClassificationInfoBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +       * Query classification information.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + public int getQueryClassificationInfoCount() { + if (queryClassificationInfoBuilder_ == null) { + return queryClassificationInfo_.size(); + } else { + return queryClassificationInfoBuilder_.getCount(); + } + } + + /** + * + * + *
            +       * Query classification information.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + getQueryClassificationInfo(int index) { + if (queryClassificationInfoBuilder_ == null) { + return queryClassificationInfo_.get(index); + } else { + return queryClassificationInfoBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +       * Query classification information.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + public Builder setQueryClassificationInfo( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + value) { + if (queryClassificationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueryClassificationInfoIsMutable(); + queryClassificationInfo_.set(index, value); + onChanged(); + } else { + queryClassificationInfoBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Query classification information.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + public Builder setQueryClassificationInfo( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Builder + builderForValue) { + if (queryClassificationInfoBuilder_ == null) { + ensureQueryClassificationInfoIsMutable(); + queryClassificationInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + queryClassificationInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Query classification information.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + public Builder addQueryClassificationInfo( + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + value) { + if (queryClassificationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueryClassificationInfoIsMutable(); + queryClassificationInfo_.add(value); + onChanged(); + } else { + queryClassificationInfoBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +       * Query classification information.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + public Builder addQueryClassificationInfo( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo + value) { + if (queryClassificationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueryClassificationInfoIsMutable(); + queryClassificationInfo_.add(index, value); + onChanged(); + } else { + queryClassificationInfoBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Query classification information.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + public Builder addQueryClassificationInfo( + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Builder + builderForValue) { + if (queryClassificationInfoBuilder_ == null) { + ensureQueryClassificationInfoIsMutable(); + queryClassificationInfo_.add(builderForValue.build()); + onChanged(); + } else { + queryClassificationInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Query classification information.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + public Builder addQueryClassificationInfo( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Builder + builderForValue) { + if (queryClassificationInfoBuilder_ == null) { + ensureQueryClassificationInfoIsMutable(); + queryClassificationInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + queryClassificationInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Query classification information.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + public Builder addAllQueryClassificationInfo( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo> + values) { + if (queryClassificationInfoBuilder_ == null) { + ensureQueryClassificationInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queryClassificationInfo_); + onChanged(); + } else { + queryClassificationInfoBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * Query classification information.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + public Builder clearQueryClassificationInfo() { + if (queryClassificationInfoBuilder_ == null) { + queryClassificationInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + queryClassificationInfoBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Query classification information.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + public Builder removeQueryClassificationInfo(int index) { + if (queryClassificationInfoBuilder_ == null) { + ensureQueryClassificationInfoIsMutable(); + queryClassificationInfo_.remove(index); + onChanged(); + } else { + queryClassificationInfoBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * Query classification information.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo .QueryClassificationInfo.Builder getQueryClassificationInfoBuilder(int index) { return internalGetQueryClassificationInfoFieldBuilder().getBuilder(index); } - /** - * - * - *
            -       * Query classification information.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfoOrBuilder - getQueryClassificationInfoOrBuilder(int index) { - if (queryClassificationInfoBuilder_ == null) { - return queryClassificationInfo_.get(index); - } else { - return queryClassificationInfoBuilder_.getMessageOrBuilder(index); - } - } + /** + * + * + *
            +       * Query classification information.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfoOrBuilder + getQueryClassificationInfoOrBuilder(int index) { + if (queryClassificationInfoBuilder_ == null) { + return queryClassificationInfo_.get(index); + } else { + return queryClassificationInfoBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * Query classification information.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfoOrBuilder> + getQueryClassificationInfoOrBuilderList() { + if (queryClassificationInfoBuilder_ != null) { + return queryClassificationInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(queryClassificationInfo_); + } + } + + /** + * + * + *
            +       * Query classification information.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Builder + addQueryClassificationInfoBuilder() { + return internalGetQueryClassificationInfoFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.getDefaultInstance()); + } + + /** + * + * + *
            +       * Query classification information.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Builder + addQueryClassificationInfoBuilder(int index) { + return internalGetQueryClassificationInfoFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.getDefaultInstance()); + } + + /** + * + * + *
            +       * Query classification information.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Builder> + getQueryClassificationInfoBuilderList() { + return internalGetQueryClassificationInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfoOrBuilder> + internalGetQueryClassificationInfoFieldBuilder() { + if (queryClassificationInfoBuilder_ == null) { + queryClassificationInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .QueryClassificationInfoOrBuilder>( + queryClassificationInfo_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + queryClassificationInfo_ = null; + } + return queryClassificationInfoBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo) + private static final com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo(); + } + + public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryUnderstandingInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Answer.QueryUnderstandingInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Immutable. Fully qualified name
            +   * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*`
            +   * 
            + * + * 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. Fully qualified name
            +   * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*`
            +   * 
            + * + * 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 STATE_FIELD_NUMBER = 2; + private int state_ = 0; + + /** + * + * + *
            +   * The state of the answer generation.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.State state = 2; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +   * The state of the answer generation.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.State state = 2; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.State getState() { + com.google.cloud.discoveryengine.v1beta.Answer.State result = + com.google.cloud.discoveryengine.v1beta.Answer.State.forNumber(state_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Answer.State.UNRECOGNIZED + : result; + } + + public static final int ANSWER_TEXT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object answerText_ = ""; + + /** + * + * + *
            +   * The textual answer.
            +   * 
            + * + * string answer_text = 3; + * + * @return The answerText. + */ + @java.lang.Override + public java.lang.String getAnswerText() { + java.lang.Object ref = answerText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerText_ = s; + return s; + } + } + + /** + * + * + *
            +   * The textual answer.
            +   * 
            + * + * string answer_text = 3; + * + * @return The bytes for answerText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswerTextBytes() { + java.lang.Object ref = answerText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUNDING_SCORE_FIELD_NUMBER = 12; + private double groundingScore_ = 0D; + + /** + * + * + *
            +   * A score in the range of [0, 1] describing how grounded the answer is by the
            +   * reference chunks.
            +   * 
            + * + * optional double grounding_score = 12; + * + * @return Whether the groundingScore field is set. + */ + @java.lang.Override + public boolean hasGroundingScore() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * A score in the range of [0, 1] describing how grounded the answer is by the
            +   * reference chunks.
            +   * 
            + * + * optional double grounding_score = 12; + * + * @return The groundingScore. + */ + @java.lang.Override + public double getGroundingScore() { + return groundingScore_; + } + + public static final int CITATIONS_FIELD_NUMBER = 4; - /** - * - * - *
            -       * Query classification information.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfoOrBuilder> - getQueryClassificationInfoOrBuilderList() { - if (queryClassificationInfoBuilder_ != null) { - return queryClassificationInfoBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(queryClassificationInfo_); - } - } + @SuppressWarnings("serial") + private java.util.List citations_; + + /** + * + * + *
            +   * Citations.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + @java.lang.Override + public java.util.List + getCitationsList() { + return citations_; + } + + /** + * + * + *
            +   * Citations.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + @java.lang.Override + public java.util.List + getCitationsOrBuilderList() { + return citations_; + } + + /** + * + * + *
            +   * Citations.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + @java.lang.Override + public int getCitationsCount() { + return citations_.size(); + } + + /** + * + * + *
            +   * Citations.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Citation getCitations(int index) { + return citations_.get(index); + } + + /** + * + * + *
            +   * Citations.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.CitationOrBuilder getCitationsOrBuilder( + int index) { + return citations_.get(index); + } + + public static final int GROUNDING_SUPPORTS_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private java.util.List + groundingSupports_; + + /** + * + * + *
            +   * Optional. Grounding supports.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getGroundingSupportsList() { + return groundingSupports_; + } + + /** + * + * + *
            +   * Optional. Grounding supports.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupportOrBuilder> + getGroundingSupportsOrBuilderList() { + return groundingSupports_; + } + + /** + * + * + *
            +   * Optional. Grounding supports.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getGroundingSupportsCount() { + return groundingSupports_.size(); + } + + /** + * + * + *
            +   * Optional. Grounding supports.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport getGroundingSupports( + int index) { + return groundingSupports_.get(index); + } + + /** + * + * + *
            +   * Optional. Grounding supports.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupportOrBuilder + getGroundingSupportsOrBuilder(int index) { + return groundingSupports_.get(index); + } + + public static final int REFERENCES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List references_; + + /** + * + * + *
            +   * References.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + */ + @java.lang.Override + public java.util.List + getReferencesList() { + return references_; + } + + /** + * + * + *
            +   * References.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + */ + @java.lang.Override + public java.util.List + getReferencesOrBuilderList() { + return references_; + } + + /** + * + * + *
            +   * References.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + */ + @java.lang.Override + public int getReferencesCount() { + return references_.size(); + } + + /** + * + * + *
            +   * References.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.Reference getReferences(int index) { + return references_.get(index); + } + + /** + * + * + *
            +   * References.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.ReferenceOrBuilder getReferencesOrBuilder( + int index) { + return references_.get(index); + } - /** - * - * - *
            -       * Query classification information.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Builder - addQueryClassificationInfoBuilder() { - return internalGetQueryClassificationInfoFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.getDefaultInstance()); - } + public static final int BLOB_ATTACHMENTS_FIELD_NUMBER = 15; - /** - * - * - *
            -       * Query classification information.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Builder - addQueryClassificationInfoBuilder(int index) { - return internalGetQueryClassificationInfoFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.getDefaultInstance()); - } + @SuppressWarnings("serial") + private java.util.List + blobAttachments_; - /** - * - * - *
            -       * Query classification information.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * - */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Builder> - getQueryClassificationInfoBuilderList() { - return internalGetQueryClassificationInfoFieldBuilder().getBuilderList(); - } + /** + * + * + *
            +   * Output only. List of blob attachments in the answer.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getBlobAttachmentsList() { + return blobAttachments_; + } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfoOrBuilder> - internalGetQueryClassificationInfoFieldBuilder() { - if (queryClassificationInfoBuilder_ == null) { - queryClassificationInfoBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfo.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .QueryClassificationInfoOrBuilder>( - queryClassificationInfo_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - queryClassificationInfo_ = null; - } - return queryClassificationInfoBuilder_; - } + /** + * + * + *
            +   * Output only. List of blob attachments in the answer.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachmentOrBuilder> + getBlobAttachmentsOrBuilderList() { + return blobAttachments_; + } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo) - } + /** + * + * + *
            +   * Output only. List of blob attachments in the answer.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getBlobAttachmentsCount() { + return blobAttachments_.size(); + } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo) - private static final com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - DEFAULT_INSTANCE; + /** + * + * + *
            +   * Output only. List of blob attachments in the answer.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment getBlobAttachments( + int index) { + return blobAttachments_.get(index); + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo(); - } + /** + * + * + *
            +   * Output only. List of blob attachments in the answer.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachmentOrBuilder + getBlobAttachmentsOrBuilder(int index) { + return blobAttachments_.get(index); + } - public static com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static final int RELATED_QUESTIONS_FIELD_NUMBER = 6; - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryUnderstandingInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList relatedQuestions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * + * + *
            +   * Suggested related questions.
            +   * 
            + * + * repeated string related_questions = 6; + * + * @return A list containing the relatedQuestions. + */ + public com.google.protobuf.ProtocolStringList getRelatedQuestionsList() { + return relatedQuestions_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * + * + *
            +   * Suggested related questions.
            +   * 
            + * + * repeated string related_questions = 6; + * + * @return The count of relatedQuestions. + */ + public int getRelatedQuestionsCount() { + return relatedQuestions_.size(); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
            +   * Suggested related questions.
            +   * 
            + * + * repeated string related_questions = 6; + * + * @param index The index of the element to return. + * @return The relatedQuestions at the given index. + */ + public java.lang.String getRelatedQuestions(int index) { + return relatedQuestions_.get(index); + } + + /** + * + * + *
            +   * Suggested related questions.
            +   * 
            + * + * repeated string related_questions = 6; + * + * @param index The index of the value to return. + * @return The bytes of the relatedQuestions at the given index. + */ + public com.google.protobuf.ByteString getRelatedQuestionsBytes(int index) { + return relatedQuestions_.getByteString(index); } - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; + public static final int STEPS_FIELD_NUMBER = 7; @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; + private java.util.List steps_; /** * * *
            -   * Immutable. Fully qualified name
            -   * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*`
            +   * Answer generation steps.
                * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The name. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ @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 java.util.List getStepsList() { + return steps_; } /** * * *
            -   * Immutable. Fully qualified name
            -   * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*`
            +   * Answer generation steps.
                * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for name. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ @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 java.util.List + getStepsOrBuilderList() { + return steps_; } - public static final int STATE_FIELD_NUMBER = 2; - private int state_ = 0; - /** * * *
            -   * The state of the answer generation.
            +   * Answer generation steps.
                * 
            * - * .google.cloud.discoveryengine.v1beta.Answer.State state = 2; - * - * @return The enum numeric value on the wire for state. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ @java.lang.Override - public int getStateValue() { - return state_; + public int getStepsCount() { + return steps_.size(); } /** * * *
            -   * The state of the answer generation.
            +   * Answer generation steps.
                * 
            * - * .google.cloud.discoveryengine.v1beta.Answer.State state = 2; - * - * @return The state. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.State getState() { - com.google.cloud.discoveryengine.v1beta.Answer.State result = - com.google.cloud.discoveryengine.v1beta.Answer.State.forNumber(state_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.Answer.State.UNRECOGNIZED - : result; + public com.google.cloud.discoveryengine.v1beta.Answer.Step getSteps(int index) { + return steps_.get(index); } - public static final int ANSWER_TEXT_FIELD_NUMBER = 3; + /** + * + * + *
            +   * Answer generation steps.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.StepOrBuilder getStepsOrBuilder(int index) { + return steps_.get(index); + } - @SuppressWarnings("serial") - private volatile java.lang.Object answerText_ = ""; + public static final int QUERY_UNDERSTANDING_INFO_FIELD_NUMBER = 10; + private com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + queryUnderstandingInfo_; /** * * *
            -   * The textual answer.
            +   * Query understanding information.
                * 
            * - * string answer_text = 3; + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * * - * @return The answerText. + * @return Whether the queryUnderstandingInfo field is set. */ @java.lang.Override - public java.lang.String getAnswerText() { - java.lang.Object ref = answerText_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - answerText_ = s; - return s; - } + public boolean hasQueryUnderstandingInfo() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
            -   * The textual answer.
            +   * Query understanding information.
                * 
            * - * string answer_text = 3; + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * * - * @return The bytes for answerText. + * @return The queryUnderstandingInfo. */ @java.lang.Override - public com.google.protobuf.ByteString getAnswerTextBytes() { - java.lang.Object ref = answerText_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - answerText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + getQueryUnderstandingInfo() { + return queryUnderstandingInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.getDefaultInstance() + : queryUnderstandingInfo_; } - public static final int CITATIONS_FIELD_NUMBER = 4; + /** + * + * + *
            +   * Query understanding information.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfoOrBuilder + getQueryUnderstandingInfoOrBuilder() { + return queryUnderstandingInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.getDefaultInstance() + : queryUnderstandingInfo_; + } + + public static final int ANSWER_SKIPPED_REASONS_FIELD_NUMBER = 11; @SuppressWarnings("serial") - private java.util.List citations_; + private com.google.protobuf.Internal.IntList answerSkippedReasons_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason> + answerSkippedReasons_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason>() { + public com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason convert( + int from) { + com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason result = + com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason.forNumber( + from); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason.UNRECOGNIZED + : result; + } + }; /** * * *
            -   * Citations.
            +   * Additional answer-skipped reasons. This provides the reason for ignored
            +   * cases. If nothing is skipped, this field is not set.
                * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * + * + * @return A list containing the answerSkippedReasons. */ @java.lang.Override - public java.util.List - getCitationsList() { - return citations_; + public java.util.List + getAnswerSkippedReasonsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason>( + answerSkippedReasons_, answerSkippedReasons_converter_); } /** * * *
            -   * Citations.
            +   * Additional answer-skipped reasons. This provides the reason for ignored
            +   * cases. If nothing is skipped, this field is not set.
                * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * + * + * @return The count of answerSkippedReasons. */ @java.lang.Override - public java.util.List - getCitationsOrBuilderList() { - return citations_; + public int getAnswerSkippedReasonsCount() { + return answerSkippedReasons_.size(); } /** * * *
            -   * Citations.
            +   * Additional answer-skipped reasons. This provides the reason for ignored
            +   * cases. If nothing is skipped, this field is not set.
                * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * + * + * @param index The index of the element to return. + * @return The answerSkippedReasons at the given index. */ @java.lang.Override - public int getCitationsCount() { - return citations_.size(); + public com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason getAnswerSkippedReasons( + int index) { + return answerSkippedReasons_converter_.convert(answerSkippedReasons_.getInt(index)); } /** * * *
            -   * Citations.
            +   * Additional answer-skipped reasons. This provides the reason for ignored
            +   * cases. If nothing is skipped, this field is not set.
                * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * + * + * @return A list containing the enum numeric values on the wire for answerSkippedReasons. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Citation getCitations(int index) { - return citations_.get(index); + public java.util.List getAnswerSkippedReasonsValueList() { + return answerSkippedReasons_; } /** * * *
            -   * Citations.
            +   * Additional answer-skipped reasons. This provides the reason for ignored
            +   * cases. If nothing is skipped, this field is not set.
                * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of answerSkippedReasons at the given index. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.CitationOrBuilder getCitationsOrBuilder( - int index) { - return citations_.get(index); + public int getAnswerSkippedReasonsValue(int index) { + return answerSkippedReasons_.getInt(index); } - public static final int REFERENCES_FIELD_NUMBER = 5; + private int answerSkippedReasonsMemoizedSerializedSize; - @SuppressWarnings("serial") - private java.util.List references_; + public static final int CREATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp createTime_; /** * * *
            -   * References.
            +   * Output only. Answer creation timestamp.
                * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. */ @java.lang.Override - public java.util.List - getReferencesList() { - return references_; + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); } /** * * *
            -   * References.
            +   * Output only. Answer creation timestamp.
                * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. */ @java.lang.Override - public java.util.List - getReferencesOrBuilderList() { - return references_; + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** * * *
            -   * References.
            +   * Output only. Answer creation timestamp.
                * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public int getReferencesCount() { - return references_.size(); + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } + public static final int COMPLETE_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp completeTime_; + /** * * *
            -   * References.
            +   * Output only. Answer completed timestamp.
                * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the completeTime field is set. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Reference getReferences(int index) { - return references_.get(index); + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00000008) != 0); } /** * * *
            -   * References.
            +   * Output only. Answer completed timestamp.
                * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The completeTime. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.ReferenceOrBuilder getReferencesOrBuilder( - int index) { - return references_.get(index); + public com.google.protobuf.Timestamp getCompleteTime() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; } - public static final int RELATED_QUESTIONS_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList relatedQuestions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** * * *
            -   * Suggested related questions.
            +   * Output only. Answer completed timestamp.
                * 
            * - * repeated string related_questions = 6; - * - * @return A list containing the relatedQuestions. + * + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.protobuf.ProtocolStringList getRelatedQuestionsList() { - return relatedQuestions_; + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; } + public static final int SAFETY_RATINGS_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private java.util.List safetyRatings_; + /** * * *
            -   * Suggested related questions.
            +   * Optional. Safety ratings.
                * 
            * - * repeated string related_questions = 6; - * - * @return The count of relatedQuestions. + * + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public int getRelatedQuestionsCount() { - return relatedQuestions_.size(); + @java.lang.Override + public java.util.List + getSafetyRatingsList() { + return safetyRatings_; } /** * * *
            -   * Suggested related questions.
            +   * Optional. Safety ratings.
                * 
            * - * repeated string related_questions = 6; - * - * @param index The index of the element to return. - * @return The relatedQuestions at the given index. + * + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getRelatedQuestions(int index) { - return relatedQuestions_.get(index); + @java.lang.Override + public java.util.List + getSafetyRatingsOrBuilderList() { + return safetyRatings_; } /** * * *
            -   * Suggested related questions.
            +   * Optional. Safety ratings.
                * 
            * - * repeated string related_questions = 6; - * - * @param index The index of the value to return. - * @return The bytes of the relatedQuestions at the given index. + * + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getRelatedQuestionsBytes(int index) { - return relatedQuestions_.getByteString(index); + @java.lang.Override + public int getSafetyRatingsCount() { + return safetyRatings_.size(); } - public static final int STEPS_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - private java.util.List steps_; - /** * * *
            -   * Answer generation steps.
            +   * Optional. Safety ratings.
                * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List getStepsList() { - return steps_; + public com.google.cloud.discoveryengine.v1beta.SafetyRating getSafetyRatings(int index) { + return safetyRatings_.get(index); } /** * * *
            -   * Answer generation steps.
            +   * Optional. Safety ratings.
                * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public java.util.List - getStepsOrBuilderList() { - return steps_; + public com.google.cloud.discoveryengine.v1beta.SafetyRatingOrBuilder getSafetyRatingsOrBuilder( + int index) { + return safetyRatings_.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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (state_ + != com.google.cloud.discoveryengine.v1beta.Answer.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, answerText_); + } + for (int i = 0; i < citations_.size(); i++) { + output.writeMessage(4, citations_.get(i)); + } + for (int i = 0; i < references_.size(); i++) { + output.writeMessage(5, references_.get(i)); + } + for (int i = 0; i < relatedQuestions_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, relatedQuestions_.getRaw(i)); + } + for (int i = 0; i < steps_.size(); i++) { + output.writeMessage(7, steps_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(9, getCompleteTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(10, getQueryUnderstandingInfo()); + } + if (getAnswerSkippedReasonsList().size() > 0) { + output.writeUInt32NoTag(90); + output.writeUInt32NoTag(answerSkippedReasonsMemoizedSerializedSize); + } + for (int i = 0; i < answerSkippedReasons_.size(); i++) { + output.writeEnumNoTag(answerSkippedReasons_.getInt(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(12, groundingScore_); + } + for (int i = 0; i < groundingSupports_.size(); i++) { + output.writeMessage(13, groundingSupports_.get(i)); + } + for (int i = 0; i < safetyRatings_.size(); i++) { + output.writeMessage(14, safetyRatings_.get(i)); + } + for (int i = 0; i < blobAttachments_.size(); i++) { + output.writeMessage(15, blobAttachments_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (state_ + != com.google.cloud.discoveryengine.v1beta.Answer.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, answerText_); + } + for (int i = 0; i < citations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, citations_.get(i)); + } + for (int i = 0; i < references_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, references_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < relatedQuestions_.size(); i++) { + dataSize += computeStringSizeNoTag(relatedQuestions_.getRaw(i)); + } + size += dataSize; + size += 1 * getRelatedQuestionsList().size(); + } + for (int i = 0; i < steps_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, steps_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCompleteTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, getQueryUnderstandingInfo()); + } + { + int dataSize = 0; + for (int i = 0; i < answerSkippedReasons_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + answerSkippedReasons_.getInt(i)); + } + size += dataSize; + if (!getAnswerSkippedReasonsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + answerSkippedReasonsMemoizedSerializedSize = dataSize; + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(12, groundingScore_); + } + for (int i = 0; i < groundingSupports_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(13, groundingSupports_.get(i)); + } + for (int i = 0; i < safetyRatings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, safetyRatings_.get(i)); + } + for (int i = 0; i < blobAttachments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, blobAttachments_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } - /** - * - * - *
            -   * Answer generation steps.
            -   * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; - */ @java.lang.Override - public int getStepsCount() { - return steps_.size(); - } + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Answer)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Answer other = + (com.google.cloud.discoveryengine.v1beta.Answer) obj; - /** - * - * - *
            -   * Answer generation steps.
            -   * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.Step getSteps(int index) { - return steps_.get(index); + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) return false; + if (!getAnswerText().equals(other.getAnswerText())) return false; + if (hasGroundingScore() != other.hasGroundingScore()) return false; + if (hasGroundingScore()) { + if (java.lang.Double.doubleToLongBits(getGroundingScore()) + != java.lang.Double.doubleToLongBits(other.getGroundingScore())) return false; + } + if (!getCitationsList().equals(other.getCitationsList())) return false; + if (!getGroundingSupportsList().equals(other.getGroundingSupportsList())) return false; + if (!getReferencesList().equals(other.getReferencesList())) return false; + if (!getBlobAttachmentsList().equals(other.getBlobAttachmentsList())) return false; + if (!getRelatedQuestionsList().equals(other.getRelatedQuestionsList())) return false; + if (!getStepsList().equals(other.getStepsList())) return false; + if (hasQueryUnderstandingInfo() != other.hasQueryUnderstandingInfo()) return false; + if (hasQueryUnderstandingInfo()) { + if (!getQueryUnderstandingInfo().equals(other.getQueryUnderstandingInfo())) return false; + } + if (!answerSkippedReasons_.equals(other.answerSkippedReasons_)) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasCompleteTime() != other.hasCompleteTime()) return false; + if (hasCompleteTime()) { + if (!getCompleteTime().equals(other.getCompleteTime())) return false; + } + if (!getSafetyRatingsList().equals(other.getSafetyRatingsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - /** - * - * - *
            -   * Answer generation steps.
            -   * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; - */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.StepOrBuilder getStepsOrBuilder(int index) { - return steps_.get(index); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + ANSWER_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getAnswerText().hashCode(); + if (hasGroundingScore()) { + hash = (37 * hash) + GROUNDING_SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getGroundingScore())); + } + if (getCitationsCount() > 0) { + hash = (37 * hash) + CITATIONS_FIELD_NUMBER; + hash = (53 * hash) + getCitationsList().hashCode(); + } + if (getGroundingSupportsCount() > 0) { + hash = (37 * hash) + GROUNDING_SUPPORTS_FIELD_NUMBER; + hash = (53 * hash) + getGroundingSupportsList().hashCode(); + } + if (getReferencesCount() > 0) { + hash = (37 * hash) + REFERENCES_FIELD_NUMBER; + hash = (53 * hash) + getReferencesList().hashCode(); + } + if (getBlobAttachmentsCount() > 0) { + hash = (37 * hash) + BLOB_ATTACHMENTS_FIELD_NUMBER; + hash = (53 * hash) + getBlobAttachmentsList().hashCode(); + } + if (getRelatedQuestionsCount() > 0) { + hash = (37 * hash) + RELATED_QUESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getRelatedQuestionsList().hashCode(); + } + if (getStepsCount() > 0) { + hash = (37 * hash) + STEPS_FIELD_NUMBER; + hash = (53 * hash) + getStepsList().hashCode(); + } + if (hasQueryUnderstandingInfo()) { + hash = (37 * hash) + QUERY_UNDERSTANDING_INFO_FIELD_NUMBER; + hash = (53 * hash) + getQueryUnderstandingInfo().hashCode(); + } + if (getAnswerSkippedReasonsCount() > 0) { + hash = (37 * hash) + ANSWER_SKIPPED_REASONS_FIELD_NUMBER; + hash = (53 * hash) + answerSkippedReasons_.hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasCompleteTime()) { + hash = (37 * hash) + COMPLETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCompleteTime().hashCode(); + } + if (getSafetyRatingsCount() > 0) { + hash = (37 * hash) + SAFETY_RATINGS_FIELD_NUMBER; + hash = (53 * hash) + getSafetyRatingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - public static final int QUERY_UNDERSTANDING_INFO_FIELD_NUMBER = 10; - private com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - queryUnderstandingInfo_; - - /** - * - * - *
            -   * Query understanding information.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; - * - * - * @return Whether the queryUnderstandingInfo field is set. - */ - @java.lang.Override - public boolean hasQueryUnderstandingInfo() { - return ((bitField0_ & 0x00000001) != 0); + public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * - * - *
            -   * Query understanding information.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; - * - * - * @return The queryUnderstandingInfo. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - getQueryUnderstandingInfo() { - return queryUnderstandingInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.getDefaultInstance() - : queryUnderstandingInfo_; + public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - * - * - *
            -   * Query understanding information.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfoOrBuilder - getQueryUnderstandingInfoOrBuilder() { - return queryUnderstandingInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.getDefaultInstance() - : queryUnderstandingInfo_; + public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - public static final int ANSWER_SKIPPED_REASONS_FIELD_NUMBER = 11; - - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList answerSkippedReasons_ = emptyIntList(); - - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason> - answerSkippedReasons_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason>() { - public com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason convert( - int from) { - com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason result = - com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason.forNumber( - from); - return result == null - ? com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason.UNRECOGNIZED - : result; - } - }; - - /** - * - * - *
            -   * Additional answer-skipped reasons. This provides the reason for ignored
            -   * cases. If nothing is skipped, this field is not set.
            -   * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; - * - * - * @return A list containing the answerSkippedReasons. - */ - @java.lang.Override - public java.util.List - getAnswerSkippedReasonsList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason>( - answerSkippedReasons_, answerSkippedReasons_converter_); + public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - * - * - *
            -   * Additional answer-skipped reasons. This provides the reason for ignored
            -   * cases. If nothing is skipped, this field is not set.
            -   * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; - * - * - * @return The count of answerSkippedReasons. - */ - @java.lang.Override - public int getAnswerSkippedReasonsCount() { - return answerSkippedReasons_.size(); + public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * - * - *
            -   * Additional answer-skipped reasons. This provides the reason for ignored
            -   * cases. If nothing is skipped, this field is not set.
            -   * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; - * - * - * @param index The index of the element to return. - * @return The answerSkippedReasons at the given index. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason getAnswerSkippedReasons( - int index) { - return answerSkippedReasons_converter_.convert(answerSkippedReasons_.getInt(index)); + public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - * - * - *
            -   * Additional answer-skipped reasons. This provides the reason for ignored
            -   * cases. If nothing is skipped, this field is not set.
            -   * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; - * - * - * @return A list containing the enum numeric values on the wire for answerSkippedReasons. - */ - @java.lang.Override - public java.util.List getAnswerSkippedReasonsValueList() { - return answerSkippedReasons_; + public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - /** - * - * - *
            -   * Additional answer-skipped reasons. This provides the reason for ignored
            -   * cases. If nothing is skipped, this field is not set.
            -   * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of answerSkippedReasons at the given index. - */ - @java.lang.Override - public int getAnswerSkippedReasonsValue(int index) { - return answerSkippedReasons_.getInt(index); + public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - private int answerSkippedReasonsMemoizedSerializedSize; + public static com.google.cloud.discoveryengine.v1beta.Answer parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - public static final int CREATE_TIME_FIELD_NUMBER = 8; - private com.google.protobuf.Timestamp createTime_; + public static com.google.cloud.discoveryengine.v1beta.Answer parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -   * Output only. Answer creation timestamp.
            -   * 
            - * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000002) != 0); + public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - /** - * - * - *
            -   * Output only. Answer creation timestamp.
            -   * 
            - * - * .google.protobuf.Timestamp create_time = 8 [(.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_; + public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - /** - * - * - *
            -   * Output only. Answer creation timestamp.
            -   * 
            - * - * .google.protobuf.Timestamp create_time = 8 [(.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 Builder newBuilderForType() { + return newBuilder(); } - public static final int COMPLETE_TIME_FIELD_NUMBER = 9; - private com.google.protobuf.Timestamp completeTime_; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.Answer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * - * - *
            -   * Output only. Answer completed timestamp.
            -   * 
            - * - * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the completeTime field is set. - */ @java.lang.Override - public boolean hasCompleteTime() { - return ((bitField0_ & 0x00000004) != 0); + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - /** - * - * - *
            -   * Output only. Answer completed timestamp.
            -   * 
            - * - * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The completeTime. - */ @java.lang.Override - public com.google.protobuf.Timestamp getCompleteTime() { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * * *
            -   * Output only. Answer completed timestamp.
            +   * Defines an answer.
                * 
            * - * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer} */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; - } - - 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 class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer) + com.google.cloud.discoveryengine.v1beta.AnswerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_descriptor; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Answer.class, + com.google.cloud.discoveryengine.v1beta.Answer.Builder.class); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + // Construct using com.google.cloud.discoveryengine.v1beta.Answer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - if (state_ - != com.google.cloud.discoveryengine.v1beta.Answer.State.STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, state_); + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerText_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, answerText_); + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCitationsFieldBuilder(); + internalGetGroundingSupportsFieldBuilder(); + internalGetReferencesFieldBuilder(); + internalGetBlobAttachmentsFieldBuilder(); + internalGetStepsFieldBuilder(); + internalGetQueryUnderstandingInfoFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetCompleteTimeFieldBuilder(); + internalGetSafetyRatingsFieldBuilder(); + } } - for (int i = 0; i < citations_.size(); i++) { - output.writeMessage(4, citations_.get(i)); + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + state_ = 0; + answerText_ = ""; + groundingScore_ = 0D; + if (citationsBuilder_ == null) { + citations_ = java.util.Collections.emptyList(); + } else { + citations_ = null; + citationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (groundingSupportsBuilder_ == null) { + groundingSupports_ = java.util.Collections.emptyList(); + } else { + groundingSupports_ = null; + groundingSupportsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (referencesBuilder_ == null) { + references_ = java.util.Collections.emptyList(); + } else { + references_ = null; + referencesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + if (blobAttachmentsBuilder_ == null) { + blobAttachments_ = java.util.Collections.emptyList(); + } else { + blobAttachments_ = null; + blobAttachmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + relatedQuestions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (stepsBuilder_ == null) { + steps_ = java.util.Collections.emptyList(); + } else { + steps_ = null; + stepsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + queryUnderstandingInfo_ = null; + if (queryUnderstandingInfoBuilder_ != null) { + queryUnderstandingInfoBuilder_.dispose(); + queryUnderstandingInfoBuilder_ = null; + } + answerSkippedReasons_ = emptyIntList(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; + } + if (safetyRatingsBuilder_ == null) { + safetyRatings_ = java.util.Collections.emptyList(); + } else { + safetyRatings_ = null; + safetyRatingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00004000); + return this; } - for (int i = 0; i < references_.size(); i++) { - output.writeMessage(5, references_.get(i)); + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_Answer_descriptor; } - for (int i = 0; i < relatedQuestions_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 6, relatedQuestions_.getRaw(i)); + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Answer.getDefaultInstance(); } - for (int i = 0; i < steps_.size(); i++) { - output.writeMessage(7, steps_.get(i)); + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer build() { + com.google.cloud.discoveryengine.v1beta.Answer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(8, getCreateTime()); + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer buildPartial() { + com.google.cloud.discoveryengine.v1beta.Answer result = + new com.google.cloud.discoveryengine.v1beta.Answer(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(9, getCompleteTime()); + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.Answer result) { + if (citationsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + citations_ = java.util.Collections.unmodifiableList(citations_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.citations_ = citations_; + } else { + result.citations_ = citationsBuilder_.build(); + } + if (groundingSupportsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + groundingSupports_ = java.util.Collections.unmodifiableList(groundingSupports_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.groundingSupports_ = groundingSupports_; + } else { + result.groundingSupports_ = groundingSupportsBuilder_.build(); + } + if (referencesBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + references_ = java.util.Collections.unmodifiableList(references_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.references_ = references_; + } else { + result.references_ = referencesBuilder_.build(); + } + if (blobAttachmentsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + blobAttachments_ = java.util.Collections.unmodifiableList(blobAttachments_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.blobAttachments_ = blobAttachments_; + } else { + result.blobAttachments_ = blobAttachmentsBuilder_.build(); + } + if (stepsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + steps_ = java.util.Collections.unmodifiableList(steps_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.steps_ = steps_; + } else { + result.steps_ = stepsBuilder_.build(); + } + if (safetyRatingsBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0)) { + safetyRatings_ = java.util.Collections.unmodifiableList(safetyRatings_); + bitField0_ = (bitField0_ & ~0x00004000); + } + result.safetyRatings_ = safetyRatings_; + } else { + result.safetyRatings_ = safetyRatingsBuilder_.build(); + } } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(10, getQueryUnderstandingInfo()); + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Answer result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.answerText_ = answerText_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.groundingScore_ = groundingScore_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + relatedQuestions_.makeImmutable(); + result.relatedQuestions_ = relatedQuestions_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.queryUnderstandingInfo_ = + queryUnderstandingInfoBuilder_ == null + ? queryUnderstandingInfo_ + : queryUnderstandingInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + answerSkippedReasons_.makeImmutable(); + result.answerSkippedReasons_ = answerSkippedReasons_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.completeTime_ = + completeTimeBuilder_ == null ? completeTime_ : completeTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; } - if (getAnswerSkippedReasonsList().size() > 0) { - output.writeUInt32NoTag(90); - output.writeUInt32NoTag(answerSkippedReasonsMemoizedSerializedSize); + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Answer) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Answer) other); + } else { + super.mergeFrom(other); + return this; + } } - for (int i = 0; i < answerSkippedReasons_.size(); i++) { - output.writeEnumNoTag(answerSkippedReasons_.getInt(i)); + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Answer other) { + if (other == com.google.cloud.discoveryengine.v1beta.Answer.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getAnswerText().isEmpty()) { + answerText_ = other.answerText_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasGroundingScore()) { + setGroundingScore(other.getGroundingScore()); + } + if (citationsBuilder_ == null) { + if (!other.citations_.isEmpty()) { + if (citations_.isEmpty()) { + citations_ = other.citations_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureCitationsIsMutable(); + citations_.addAll(other.citations_); + } + onChanged(); + } + } else { + if (!other.citations_.isEmpty()) { + if (citationsBuilder_.isEmpty()) { + citationsBuilder_.dispose(); + citationsBuilder_ = null; + citations_ = other.citations_; + bitField0_ = (bitField0_ & ~0x00000010); + citationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCitationsFieldBuilder() + : null; + } else { + citationsBuilder_.addAllMessages(other.citations_); + } + } + } + if (groundingSupportsBuilder_ == null) { + if (!other.groundingSupports_.isEmpty()) { + if (groundingSupports_.isEmpty()) { + groundingSupports_ = other.groundingSupports_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureGroundingSupportsIsMutable(); + groundingSupports_.addAll(other.groundingSupports_); + } + onChanged(); + } + } else { + if (!other.groundingSupports_.isEmpty()) { + if (groundingSupportsBuilder_.isEmpty()) { + groundingSupportsBuilder_.dispose(); + groundingSupportsBuilder_ = null; + groundingSupports_ = other.groundingSupports_; + bitField0_ = (bitField0_ & ~0x00000020); + groundingSupportsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetGroundingSupportsFieldBuilder() + : null; + } else { + groundingSupportsBuilder_.addAllMessages(other.groundingSupports_); + } + } + } + if (referencesBuilder_ == null) { + if (!other.references_.isEmpty()) { + if (references_.isEmpty()) { + references_ = other.references_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureReferencesIsMutable(); + references_.addAll(other.references_); + } + onChanged(); + } + } else { + if (!other.references_.isEmpty()) { + if (referencesBuilder_.isEmpty()) { + referencesBuilder_.dispose(); + referencesBuilder_ = null; + references_ = other.references_; + bitField0_ = (bitField0_ & ~0x00000040); + referencesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetReferencesFieldBuilder() + : null; + } else { + referencesBuilder_.addAllMessages(other.references_); + } + } + } + if (blobAttachmentsBuilder_ == null) { + if (!other.blobAttachments_.isEmpty()) { + if (blobAttachments_.isEmpty()) { + blobAttachments_ = other.blobAttachments_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureBlobAttachmentsIsMutable(); + blobAttachments_.addAll(other.blobAttachments_); + } + onChanged(); + } + } else { + if (!other.blobAttachments_.isEmpty()) { + if (blobAttachmentsBuilder_.isEmpty()) { + blobAttachmentsBuilder_.dispose(); + blobAttachmentsBuilder_ = null; + blobAttachments_ = other.blobAttachments_; + bitField0_ = (bitField0_ & ~0x00000080); + blobAttachmentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBlobAttachmentsFieldBuilder() + : null; + } else { + blobAttachmentsBuilder_.addAllMessages(other.blobAttachments_); + } + } + } + if (!other.relatedQuestions_.isEmpty()) { + if (relatedQuestions_.isEmpty()) { + relatedQuestions_ = other.relatedQuestions_; + bitField0_ |= 0x00000100; + } else { + ensureRelatedQuestionsIsMutable(); + relatedQuestions_.addAll(other.relatedQuestions_); + } + onChanged(); + } + if (stepsBuilder_ == null) { + if (!other.steps_.isEmpty()) { + if (steps_.isEmpty()) { + steps_ = other.steps_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureStepsIsMutable(); + steps_.addAll(other.steps_); + } + onChanged(); + } + } else { + if (!other.steps_.isEmpty()) { + if (stepsBuilder_.isEmpty()) { + stepsBuilder_.dispose(); + stepsBuilder_ = null; + steps_ = other.steps_; + bitField0_ = (bitField0_ & ~0x00000200); + stepsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetStepsFieldBuilder() + : null; + } else { + stepsBuilder_.addAllMessages(other.steps_); + } + } + } + if (other.hasQueryUnderstandingInfo()) { + mergeQueryUnderstandingInfo(other.getQueryUnderstandingInfo()); + } + if (!other.answerSkippedReasons_.isEmpty()) { + if (answerSkippedReasons_.isEmpty()) { + answerSkippedReasons_ = other.answerSkippedReasons_; + answerSkippedReasons_.makeImmutable(); + bitField0_ |= 0x00000800; + } else { + ensureAnswerSkippedReasonsIsMutable(); + answerSkippedReasons_.addAll(other.answerSkippedReasons_); + } + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasCompleteTime()) { + mergeCompleteTime(other.getCompleteTime()); + } + if (safetyRatingsBuilder_ == null) { + if (!other.safetyRatings_.isEmpty()) { + if (safetyRatings_.isEmpty()) { + safetyRatings_ = other.safetyRatings_; + bitField0_ = (bitField0_ & ~0x00004000); + } else { + ensureSafetyRatingsIsMutable(); + safetyRatings_.addAll(other.safetyRatings_); + } + onChanged(); + } + } else { + if (!other.safetyRatings_.isEmpty()) { + if (safetyRatingsBuilder_.isEmpty()) { + safetyRatingsBuilder_.dispose(); + safetyRatingsBuilder_ = null; + safetyRatings_ = other.safetyRatings_; + bitField0_ = (bitField0_ & ~0x00004000); + safetyRatingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSafetyRatingsFieldBuilder() + : null; + } else { + safetyRatingsBuilder_.addAllMessages(other.safetyRatings_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); - } - if (state_ - != com.google.cloud.discoveryengine.v1beta.Answer.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerText_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, answerText_); - } - for (int i = 0; i < citations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, citations_.get(i)); + @java.lang.Override + public final boolean isInitialized() { + return true; } - for (int i = 0; i < references_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, references_.get(i)); + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + answerText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.cloud.discoveryengine.v1beta.Answer.Citation m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Answer.Citation.parser(), + extensionRegistry); + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.add(m); + } else { + citationsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.cloud.discoveryengine.v1beta.Answer.Reference m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.parser(), + extensionRegistry); + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.add(m); + } else { + referencesBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRelatedQuestionsIsMutable(); + relatedQuestions_.add(s); + break; + } // case 50 + case 58: + { + com.google.cloud.discoveryengine.v1beta.Answer.Step m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Answer.Step.parser(), + extensionRegistry); + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(m); + } else { + stepsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetCompleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetQueryUnderstandingInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 82 + case 88: + { + int tmpRaw = input.readEnum(); + ensureAnswerSkippedReasonsIsMutable(); + answerSkippedReasons_.addInt(tmpRaw); + break; + } // case 88 + case 90: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureAnswerSkippedReasonsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + answerSkippedReasons_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 90 + case 97: + { + groundingScore_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 97 + case 106: + { + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport.parser(), + extensionRegistry); + if (groundingSupportsBuilder_ == null) { + ensureGroundingSupportsIsMutable(); + groundingSupports_.add(m); + } else { + groundingSupportsBuilder_.addMessage(m); + } + break; + } // case 106 + case 114: + { + com.google.cloud.discoveryengine.v1beta.SafetyRating m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SafetyRating.parser(), + extensionRegistry); + if (safetyRatingsBuilder_ == null) { + ensureSafetyRatingsIsMutable(); + safetyRatings_.add(m); + } else { + safetyRatingsBuilder_.addMessage(m); + } + break; + } // case 114 + case 122: + { + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.parser(), + extensionRegistry); + if (blobAttachmentsBuilder_ == null) { + ensureBlobAttachmentsIsMutable(); + blobAttachments_.add(m); + } else { + blobAttachmentsBuilder_.addMessage(m); + } + break; + } // case 122 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - { - int dataSize = 0; - for (int i = 0; i < relatedQuestions_.size(); i++) { - dataSize += computeStringSizeNoTag(relatedQuestions_.getRaw(i)); + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Immutable. Fully qualified name
            +     * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*`
            +     * 
            + * + * 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; } - size += dataSize; - size += 1 * getRelatedQuestionsList().size(); - } - for (int i = 0; i < steps_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, steps_.get(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getCompleteTime()); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(10, getQueryUnderstandingInfo()); } - { - int dataSize = 0; - for (int i = 0; i < answerSkippedReasons_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( - answerSkippedReasons_.getInt(i)); - } - size += dataSize; - if (!getAnswerSkippedReasonsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + + /** + * + * + *
            +     * Immutable. Fully qualified name
            +     * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*`
            +     * 
            + * + * 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; } - answerSkippedReasonsMemoizedSerializedSize = 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.v1beta.Answer)) { - return super.equals(obj); + /** + * + * + *
            +     * Immutable. Fully qualified name
            +     * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*`
            +     * 
            + * + * 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; } - com.google.cloud.discoveryengine.v1beta.Answer other = - (com.google.cloud.discoveryengine.v1beta.Answer) obj; - if (!getName().equals(other.getName())) return false; - if (state_ != other.state_) return false; - if (!getAnswerText().equals(other.getAnswerText())) return false; - if (!getCitationsList().equals(other.getCitationsList())) return false; - if (!getReferencesList().equals(other.getReferencesList())) return false; - if (!getRelatedQuestionsList().equals(other.getRelatedQuestionsList())) return false; - if (!getStepsList().equals(other.getStepsList())) return false; - if (hasQueryUnderstandingInfo() != other.hasQueryUnderstandingInfo()) return false; - if (hasQueryUnderstandingInfo()) { - if (!getQueryUnderstandingInfo().equals(other.getQueryUnderstandingInfo())) return false; - } - if (!answerSkippedReasons_.equals(other.answerSkippedReasons_)) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasCompleteTime() != other.hasCompleteTime()) return false; - if (hasCompleteTime()) { - if (!getCompleteTime().equals(other.getCompleteTime())) return false; + /** + * + * + *
            +     * Immutable. Fully qualified name
            +     * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*`
            +     * 
            + * + * 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; } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + ANSWER_TEXT_FIELD_NUMBER; - hash = (53 * hash) + getAnswerText().hashCode(); - if (getCitationsCount() > 0) { - hash = (37 * hash) + CITATIONS_FIELD_NUMBER; - hash = (53 * hash) + getCitationsList().hashCode(); - } - if (getReferencesCount() > 0) { - hash = (37 * hash) + REFERENCES_FIELD_NUMBER; - hash = (53 * hash) + getReferencesList().hashCode(); + /** + * + * + *
            +     * Immutable. Fully qualified name
            +     * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*`
            +     * 
            + * + * 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; } - if (getRelatedQuestionsCount() > 0) { - hash = (37 * hash) + RELATED_QUESTIONS_FIELD_NUMBER; - hash = (53 * hash) + getRelatedQuestionsList().hashCode(); + + private int state_ = 0; + + /** + * + * + *
            +     * The state of the answer generation.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.State state = 2; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; } - if (getStepsCount() > 0) { - hash = (37 * hash) + STEPS_FIELD_NUMBER; - hash = (53 * hash) + getStepsList().hashCode(); + + /** + * + * + *
            +     * The state of the answer generation.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.State state = 2; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - if (hasQueryUnderstandingInfo()) { - hash = (37 * hash) + QUERY_UNDERSTANDING_INFO_FIELD_NUMBER; - hash = (53 * hash) + getQueryUnderstandingInfo().hashCode(); + + /** + * + * + *
            +     * The state of the answer generation.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.State state = 2; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Answer.State getState() { + com.google.cloud.discoveryengine.v1beta.Answer.State result = + com.google.cloud.discoveryengine.v1beta.Answer.State.forNumber(state_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Answer.State.UNRECOGNIZED + : result; } - if (getAnswerSkippedReasonsCount() > 0) { - hash = (37 * hash) + ANSWER_SKIPPED_REASONS_FIELD_NUMBER; - hash = (53 * hash) + answerSkippedReasons_.hashCode(); + + /** + * + * + *
            +     * The state of the answer generation.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.State state = 2; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.discoveryengine.v1beta.Answer.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; } - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); + + /** + * + * + *
            +     * The state of the answer generation.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Answer.State state = 2; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; } - if (hasCompleteTime()) { - hash = (37 * hash) + COMPLETE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCompleteTime().hashCode(); + + private java.lang.Object answerText_ = ""; + + /** + * + * + *
            +     * The textual answer.
            +     * 
            + * + * string answer_text = 3; + * + * @return The answerText. + */ + public java.lang.String getAnswerText() { + java.lang.Object ref = answerText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerText_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +     * The textual answer.
            +     * 
            + * + * string answer_text = 3; + * + * @return The bytes for answerText. + */ + public com.google.protobuf.ByteString getAnswerTextBytes() { + java.lang.Object ref = answerText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +     * The textual answer.
            +     * 
            + * + * string answer_text = 3; + * + * @param value The answerText to set. + * @return This builder for chaining. + */ + public Builder setAnswerText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + answerText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +     * The textual answer.
            +     * 
            + * + * string answer_text = 3; + * + * @return This builder for chaining. + */ + public Builder clearAnswerText() { + answerText_ = getDefaultInstance().getAnswerText(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +     * The textual answer.
            +     * 
            + * + * string answer_text = 3; + * + * @param value The bytes for answerText to set. + * @return This builder for chaining. + */ + public Builder setAnswerTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private double groundingScore_; - public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +     * A score in the range of [0, 1] describing how grounded the answer is by the
            +     * reference chunks.
            +     * 
            + * + * optional double grounding_score = 12; + * + * @return Whether the groundingScore field is set. + */ + @java.lang.Override + public boolean hasGroundingScore() { + return ((bitField0_ & 0x00000008) != 0); + } - public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +     * A score in the range of [0, 1] describing how grounded the answer is by the
            +     * reference chunks.
            +     * 
            + * + * optional double grounding_score = 12; + * + * @return The groundingScore. + */ + @java.lang.Override + public double getGroundingScore() { + return groundingScore_; + } - public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +     * A score in the range of [0, 1] describing how grounded the answer is by the
            +     * reference chunks.
            +     * 
            + * + * optional double grounding_score = 12; + * + * @param value The groundingScore to set. + * @return This builder for chaining. + */ + public Builder setGroundingScore(double value) { - public static com.google.cloud.discoveryengine.v1beta.Answer parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + groundingScore_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +     * A score in the range of [0, 1] describing how grounded the answer is by the
            +     * reference chunks.
            +     * 
            + * + * optional double grounding_score = 12; + * + * @return This builder for chaining. + */ + public Builder clearGroundingScore() { + bitField0_ = (bitField0_ & ~0x00000008); + groundingScore_ = 0D; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + private java.util.List citations_ = + java.util.Collections.emptyList(); - public static com.google.cloud.discoveryengine.v1beta.Answer parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + private void ensureCitationsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + citations_ = + new java.util.ArrayList( + citations_); + bitField0_ |= 0x00000010; + } + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Citation, + com.google.cloud.discoveryengine.v1beta.Answer.Citation.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.CitationOrBuilder> + citationsBuilder_; - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
            +     * Citations.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + public java.util.List + getCitationsList() { + if (citationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(citations_); + } else { + return citationsBuilder_.getMessageList(); + } + } - public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.Answer prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
            +     * Citations.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + public int getCitationsCount() { + if (citationsBuilder_ == null) { + return citations_.size(); + } else { + return citationsBuilder_.getCount(); + } + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
            +     * Citations.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Citation getCitations(int index) { + if (citationsBuilder_ == null) { + return citations_.get(index); + } else { + return citationsBuilder_.getMessage(index); + } + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
            +     * Citations.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + public Builder setCitations( + int index, com.google.cloud.discoveryengine.v1beta.Answer.Citation value) { + if (citationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitationsIsMutable(); + citations_.set(index, value); + onChanged(); + } else { + citationsBuilder_.setMessage(index, value); + } + return this; + } - /** - * - * - *
            -   * Defines an answer.
            -   * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Answer} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Answer) - com.google.cloud.discoveryengine.v1beta.AnswerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_descriptor; + /** + * + * + *
            +     * Citations.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + public Builder setCitations( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Citation.Builder builderForValue) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.set(index, builderForValue.build()); + onChanged(); + } else { + citationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Answer.class, - com.google.cloud.discoveryengine.v1beta.Answer.Builder.class); + /** + * + * + *
            +     * Citations.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + public Builder addCitations(com.google.cloud.discoveryengine.v1beta.Answer.Citation value) { + if (citationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitationsIsMutable(); + citations_.add(value); + onChanged(); + } else { + citationsBuilder_.addMessage(value); + } + return this; } - // Construct using com.google.cloud.discoveryengine.v1beta.Answer.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + * + * + *
            +     * Citations.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + public Builder addCitations( + int index, com.google.cloud.discoveryengine.v1beta.Answer.Citation value) { + if (citationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitationsIsMutable(); + citations_.add(index, value); + onChanged(); + } else { + citationsBuilder_.addMessage(index, value); + } + return this; } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * + * + *
            +     * Citations.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + public Builder addCitations( + com.google.cloud.discoveryengine.v1beta.Answer.Citation.Builder builderForValue) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.add(builderForValue.build()); + onChanged(); + } else { + citationsBuilder_.addMessage(builderForValue.build()); + } + return this; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetCitationsFieldBuilder(); - internalGetReferencesFieldBuilder(); - internalGetStepsFieldBuilder(); - internalGetQueryUnderstandingInfoFieldBuilder(); - internalGetCreateTimeFieldBuilder(); - internalGetCompleteTimeFieldBuilder(); + /** + * + * + *
            +     * Citations.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + public Builder addCitations( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Citation.Builder builderForValue) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.add(index, builderForValue.build()); + onChanged(); + } else { + citationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Citations.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + public Builder addAllCitations( + java.lang.Iterable + values) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, citations_); + onChanged(); + } else { + citationsBuilder_.addAllMessages(values); } + return this; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - state_ = 0; - answerText_ = ""; + /** + * + * + *
            +     * Citations.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + public Builder clearCitations() { if (citationsBuilder_ == null) { citations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); } else { - citations_ = null; citationsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000008); - if (referencesBuilder_ == null) { - references_ = java.util.Collections.emptyList(); + return this; + } + + /** + * + * + *
            +     * Citations.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + public Builder removeCitations(int index) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.remove(index); + onChanged(); } else { - references_ = null; - referencesBuilder_.clear(); + citationsBuilder_.remove(index); } - bitField0_ = (bitField0_ & ~0x00000010); - relatedQuestions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - if (stepsBuilder_ == null) { - steps_ = java.util.Collections.emptyList(); + return this; + } + + /** + * + * + *
            +     * Citations.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Citation.Builder getCitationsBuilder( + int index) { + return internalGetCitationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Citations.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + public com.google.cloud.discoveryengine.v1beta.Answer.CitationOrBuilder getCitationsOrBuilder( + int index) { + if (citationsBuilder_ == null) { + return citations_.get(index); } else { - steps_ = null; - stepsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - queryUnderstandingInfo_ = null; - if (queryUnderstandingInfoBuilder_ != null) { - queryUnderstandingInfoBuilder_.dispose(); - queryUnderstandingInfoBuilder_ = null; - } - answerSkippedReasons_ = emptyIntList(); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + return citationsBuilder_.getMessageOrBuilder(index); } - completeTime_ = null; - if (completeTimeBuilder_ != null) { - completeTimeBuilder_.dispose(); - completeTimeBuilder_ = null; + } + + /** + * + * + *
            +     * Citations.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.Answer.CitationOrBuilder> + getCitationsOrBuilderList() { + if (citationsBuilder_ != null) { + return citationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(citations_); } - return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerProto - .internal_static_google_cloud_discoveryengine_v1beta_Answer_descriptor; + /** + * + * + *
            +     * Citations.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Citation.Builder addCitationsBuilder() { + return internalGetCitationsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1beta.Answer.Citation.getDefaultInstance()); } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Answer.getDefaultInstance(); + /** + * + * + *
            +     * Citations.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Citation.Builder addCitationsBuilder( + int index) { + return internalGetCitationsFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1beta.Answer.Citation.getDefaultInstance()); } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer build() { - com.google.cloud.discoveryengine.v1beta.Answer result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + /** + * + * + *
            +     * Citations.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + */ + public java.util.List + getCitationsBuilderList() { + return internalGetCitationsFieldBuilder().getBuilderList(); } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer buildPartial() { - com.google.cloud.discoveryengine.v1beta.Answer result = - new com.google.cloud.discoveryengine.v1beta.Answer(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Citation, + com.google.cloud.discoveryengine.v1beta.Answer.Citation.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.CitationOrBuilder> + internalGetCitationsFieldBuilder() { + if (citationsBuilder_ == null) { + citationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Citation, + com.google.cloud.discoveryengine.v1beta.Answer.Citation.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.CitationOrBuilder>( + citations_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + citations_ = null; } - onBuilt(); - return result; + return citationsBuilder_; } - private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.Answer result) { - if (citationsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - citations_ = java.util.Collections.unmodifiableList(citations_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.citations_ = citations_; - } else { - result.citations_ = citationsBuilder_.build(); + private java.util.List + groundingSupports_ = java.util.Collections.emptyList(); + + private void ensureGroundingSupportsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + groundingSupports_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport>( + groundingSupports_); + bitField0_ |= 0x00000020; } - if (referencesBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - references_ = java.util.Collections.unmodifiableList(references_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.references_ = references_; + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport, + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupportOrBuilder> + groundingSupportsBuilder_; + + /** + * + * + *
            +     * Optional. Grounding supports.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getGroundingSupportsList() { + if (groundingSupportsBuilder_ == null) { + return java.util.Collections.unmodifiableList(groundingSupports_); } else { - result.references_ = referencesBuilder_.build(); + return groundingSupportsBuilder_.getMessageList(); } - if (stepsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { - steps_ = java.util.Collections.unmodifiableList(steps_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.steps_ = steps_; + } + + /** + * + * + *
            +     * Optional. Grounding supports.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getGroundingSupportsCount() { + if (groundingSupportsBuilder_ == null) { + return groundingSupports_.size(); } else { - result.steps_ = stepsBuilder_.build(); + return groundingSupportsBuilder_.getCount(); } } - private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Answer result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.state_ = state_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.answerText_ = answerText_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - relatedQuestions_.makeImmutable(); - result.relatedQuestions_ = relatedQuestions_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000080) != 0)) { - result.queryUnderstandingInfo_ = - queryUnderstandingInfoBuilder_ == null - ? queryUnderstandingInfo_ - : queryUnderstandingInfoBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - answerSkippedReasons_.makeImmutable(); - result.answerSkippedReasons_ = answerSkippedReasons_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.completeTime_ = - completeTimeBuilder_ == null ? completeTime_ : completeTimeBuilder_.build(); - to_bitField0_ |= 0x00000004; + /** + * + * + *
            +     * Optional. Grounding supports.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport getGroundingSupports( + int index) { + if (groundingSupportsBuilder_ == null) { + return groundingSupports_.get(index); + } else { + return groundingSupportsBuilder_.getMessage(index); } - result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.Answer) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.Answer) other); + /** + * + * + *
            +     * Optional. Grounding supports.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGroundingSupports( + int index, com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport value) { + if (groundingSupportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingSupportsIsMutable(); + groundingSupports_.set(index, value); + onChanged(); } else { - super.mergeFrom(other); - return this; + groundingSupportsBuilder_.setMessage(index, value); } + return this; } - public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Answer other) { - if (other == com.google.cloud.discoveryengine.v1beta.Answer.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; + /** + * + * + *
            +     * Optional. Grounding supports.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGroundingSupports( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport.Builder builderForValue) { + if (groundingSupportsBuilder_ == null) { + ensureGroundingSupportsIsMutable(); + groundingSupports_.set(index, builderForValue.build()); onChanged(); + } else { + groundingSupportsBuilder_.setMessage(index, builderForValue.build()); } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (!other.getAnswerText().isEmpty()) { - answerText_ = other.answerText_; - bitField0_ |= 0x00000004; + return this; + } + + /** + * + * + *
            +     * Optional. Grounding supports.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGroundingSupports( + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport value) { + if (groundingSupportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroundingSupportsIsMutable(); + groundingSupports_.add(value); onChanged(); + } else { + groundingSupportsBuilder_.addMessage(value); } - if (citationsBuilder_ == null) { - if (!other.citations_.isEmpty()) { - if (citations_.isEmpty()) { - citations_ = other.citations_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureCitationsIsMutable(); - citations_.addAll(other.citations_); - } - onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Grounding supports.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGroundingSupports( + int index, com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport value) { + if (groundingSupportsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureGroundingSupportsIsMutable(); + groundingSupports_.add(index, value); + onChanged(); } else { - if (!other.citations_.isEmpty()) { - if (citationsBuilder_.isEmpty()) { - citationsBuilder_.dispose(); - citationsBuilder_ = null; - citations_ = other.citations_; - bitField0_ = (bitField0_ & ~0x00000008); - citationsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetCitationsFieldBuilder() - : null; - } else { - citationsBuilder_.addAllMessages(other.citations_); - } - } + groundingSupportsBuilder_.addMessage(index, value); } - if (referencesBuilder_ == null) { - if (!other.references_.isEmpty()) { - if (references_.isEmpty()) { - references_ = other.references_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureReferencesIsMutable(); - references_.addAll(other.references_); - } - onChanged(); - } + return this; + } + + /** + * + * + *
            +     * Optional. Grounding supports.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGroundingSupports( + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport.Builder builderForValue) { + if (groundingSupportsBuilder_ == null) { + ensureGroundingSupportsIsMutable(); + groundingSupports_.add(builderForValue.build()); + onChanged(); } else { - if (!other.references_.isEmpty()) { - if (referencesBuilder_.isEmpty()) { - referencesBuilder_.dispose(); - referencesBuilder_ = null; - references_ = other.references_; - bitField0_ = (bitField0_ & ~0x00000010); - referencesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetReferencesFieldBuilder() - : null; - } else { - referencesBuilder_.addAllMessages(other.references_); - } - } + groundingSupportsBuilder_.addMessage(builderForValue.build()); } - if (!other.relatedQuestions_.isEmpty()) { - if (relatedQuestions_.isEmpty()) { - relatedQuestions_ = other.relatedQuestions_; - bitField0_ |= 0x00000020; - } else { - ensureRelatedQuestionsIsMutable(); - relatedQuestions_.addAll(other.relatedQuestions_); - } + return this; + } + + /** + * + * + *
            +     * Optional. Grounding supports.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addGroundingSupports( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport.Builder builderForValue) { + if (groundingSupportsBuilder_ == null) { + ensureGroundingSupportsIsMutable(); + groundingSupports_.add(index, builderForValue.build()); onChanged(); + } else { + groundingSupportsBuilder_.addMessage(index, builderForValue.build()); } - if (stepsBuilder_ == null) { - if (!other.steps_.isEmpty()) { - if (steps_.isEmpty()) { - steps_ = other.steps_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureStepsIsMutable(); - steps_.addAll(other.steps_); - } - onChanged(); - } + return this; + } + + /** + * + * + *
            +     * Optional. Grounding supports.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllGroundingSupports( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport> + values) { + if (groundingSupportsBuilder_ == null) { + ensureGroundingSupportsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingSupports_); + onChanged(); } else { - if (!other.steps_.isEmpty()) { - if (stepsBuilder_.isEmpty()) { - stepsBuilder_.dispose(); - stepsBuilder_ = null; - steps_ = other.steps_; - bitField0_ = (bitField0_ & ~0x00000040); - stepsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetStepsFieldBuilder() - : null; - } else { - stepsBuilder_.addAllMessages(other.steps_); - } - } + groundingSupportsBuilder_.addAllMessages(values); } - if (other.hasQueryUnderstandingInfo()) { - mergeQueryUnderstandingInfo(other.getQueryUnderstandingInfo()); + return this; + } + + /** + * + * + *
            +     * Optional. Grounding supports.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGroundingSupports() { + if (groundingSupportsBuilder_ == null) { + groundingSupports_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + groundingSupportsBuilder_.clear(); } - if (!other.answerSkippedReasons_.isEmpty()) { - if (answerSkippedReasons_.isEmpty()) { - answerSkippedReasons_ = other.answerSkippedReasons_; - answerSkippedReasons_.makeImmutable(); - bitField0_ |= 0x00000100; - } else { - ensureAnswerSkippedReasonsIsMutable(); - answerSkippedReasons_.addAll(other.answerSkippedReasons_); - } + return this; + } + + /** + * + * + *
            +     * Optional. Grounding supports.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeGroundingSupports(int index) { + if (groundingSupportsBuilder_ == null) { + ensureGroundingSupportsIsMutable(); + groundingSupports_.remove(index); onChanged(); + } else { + groundingSupportsBuilder_.remove(index); } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); + return this; + } + + /** + * + * + *
            +     * Optional. Grounding supports.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport.Builder + getGroundingSupportsBuilder(int index) { + return internalGetGroundingSupportsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Optional. Grounding supports.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupportOrBuilder + getGroundingSupportsOrBuilder(int index) { + if (groundingSupportsBuilder_ == null) { + return groundingSupports_.get(index); + } else { + return groundingSupportsBuilder_.getMessageOrBuilder(index); } - if (other.hasCompleteTime()) { - mergeCompleteTime(other.getCompleteTime()); + } + + /** + * + * + *
            +     * Optional. Grounding supports.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupportOrBuilder> + getGroundingSupportsOrBuilderList() { + if (groundingSupportsBuilder_ != null) { + return groundingSupportsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(groundingSupports_); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
            +     * Optional. Grounding supports.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport.Builder + addGroundingSupportsBuilder() { + return internalGetGroundingSupportsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport.getDefaultInstance()); } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
            +     * Optional. Grounding supports.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport.Builder + addGroundingSupportsBuilder(int index) { + return internalGetGroundingSupportsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport.getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. Grounding supports.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getGroundingSupportsBuilderList() { + return internalGetGroundingSupportsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport, + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupportOrBuilder> + internalGetGroundingSupportsFieldBuilder() { + if (groundingSupportsBuilder_ == null) { + groundingSupportsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport, + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupportOrBuilder>( + groundingSupports_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + groundingSupports_ = null; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - answerText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.cloud.discoveryengine.v1beta.Answer.Citation m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.Answer.Citation.parser(), - extensionRegistry); - if (citationsBuilder_ == null) { - ensureCitationsIsMutable(); - citations_.add(m); - } else { - citationsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - com.google.cloud.discoveryengine.v1beta.Answer.Reference m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.parser(), - extensionRegistry); - if (referencesBuilder_ == null) { - ensureReferencesIsMutable(); - references_.add(m); - } else { - referencesBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureRelatedQuestionsIsMutable(); - relatedQuestions_.add(s); - break; - } // case 50 - case 58: - { - com.google.cloud.discoveryengine.v1beta.Answer.Step m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.Answer.Step.parser(), - extensionRegistry); - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.add(m); - } else { - stepsBuilder_.addMessage(m); - } - break; - } // case 58 - case 66: - { - input.readMessage( - internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 66 - case 74: - { - input.readMessage( - internalGetCompleteTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 74 - case 82: - { - input.readMessage( - internalGetQueryUnderstandingInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 82 - case 88: - { - int tmpRaw = input.readEnum(); - ensureAnswerSkippedReasonsIsMutable(); - answerSkippedReasons_.addInt(tmpRaw); - break; - } // case 88 - case 90: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureAnswerSkippedReasonsIsMutable(); - while (input.getBytesUntilLimit() > 0) { - answerSkippedReasons_.addInt(input.readEnum()); - } - input.popLimit(limit); - break; - } // case 90 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + return groundingSupportsBuilder_; } - private int bitField0_; + private java.util.List references_ = + java.util.Collections.emptyList(); - private java.lang.Object name_ = ""; + private void ensureReferencesIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + references_ = + new java.util.ArrayList( + references_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Reference, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.ReferenceOrBuilder> + referencesBuilder_; /** * * *
            -     * Immutable. Fully qualified name
            -     * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*`
            +     * References.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The name. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; */ - 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 java.util.List + getReferencesList() { + if (referencesBuilder_ == null) { + return java.util.Collections.unmodifiableList(references_); } else { - return (java.lang.String) ref; + return referencesBuilder_.getMessageList(); } } @@ -25001,23 +31533,16 @@ public java.lang.String getName() { * * *
            -     * Immutable. Fully qualified name
            -     * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*`
            +     * References.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for name. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; */ - 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 int getReferencesCount() { + if (referencesBuilder_ == null) { + return references_.size(); } else { - return (com.google.protobuf.ByteString) ref; + return referencesBuilder_.getCount(); } } @@ -25025,22 +31550,40 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Immutable. Fully qualified name
            -     * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*`
            +     * References.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + */ + public com.google.cloud.discoveryengine.v1beta.Answer.Reference getReferences(int index) { + if (referencesBuilder_ == null) { + return references_.get(index); + } else { + return referencesBuilder_.getMessage(index); + } + } + + /** * - * @param value The name to set. - * @return This builder for chaining. + * + *
            +     * References.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setReferences( + int index, com.google.cloud.discoveryengine.v1beta.Answer.Reference value) { + if (referencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReferencesIsMutable(); + references_.set(index, value); + onChanged(); + } else { + referencesBuilder_.setMessage(index, value); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); return this; } @@ -25048,18 +31591,21 @@ public Builder setName(java.lang.String value) { * * *
            -     * Immutable. Fully qualified name
            -     * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*`
            +     * References.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return This builder for chaining. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + public Builder setReferences( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder builderForValue) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.set(index, builderForValue.build()); + onChanged(); + } else { + referencesBuilder_.setMessage(index, builderForValue.build()); + } return this; } @@ -25067,60 +31613,67 @@ public Builder clearName() { * * *
            -     * Immutable. Fully qualified name
            -     * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*`
            +     * References.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The bytes for name to set. - * @return This builder for chaining. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder addReferences(com.google.cloud.discoveryengine.v1beta.Answer.Reference value) { + if (referencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReferencesIsMutable(); + references_.add(value); + onChanged(); + } else { + referencesBuilder_.addMessage(value); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); return this; } - private int state_ = 0; - /** * * *
            -     * The state of the answer generation.
            +     * References.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Answer.State state = 2; - * - * @return The enum numeric value on the wire for state. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; */ - @java.lang.Override - public int getStateValue() { - return state_; + public Builder addReferences( + int index, com.google.cloud.discoveryengine.v1beta.Answer.Reference value) { + if (referencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReferencesIsMutable(); + references_.add(index, value); + onChanged(); + } else { + referencesBuilder_.addMessage(index, value); + } + return this; } /** * * *
            -     * The state of the answer generation.
            +     * References.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Answer.State state = 2; - * - * @param value The enum numeric value on the wire for state to set. - * @return This builder for chaining. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; */ - public Builder setStateValue(int value) { - state_ = value; - bitField0_ |= 0x00000002; - onChanged(); + public Builder addReferences( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder builderForValue) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.add(builderForValue.build()); + onChanged(); + } else { + referencesBuilder_.addMessage(builderForValue.build()); + } return this; } @@ -25128,41 +31681,83 @@ public Builder setStateValue(int value) { * * *
            -     * The state of the answer generation.
            +     * References.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Answer.State state = 2; + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + */ + public Builder addReferences( + int index, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder builderForValue) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.add(index, builderForValue.build()); + onChanged(); + } else { + referencesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** * - * @return The state. + * + *
            +     * References.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Answer.State getState() { - com.google.cloud.discoveryengine.v1beta.Answer.State result = - com.google.cloud.discoveryengine.v1beta.Answer.State.forNumber(state_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.Answer.State.UNRECOGNIZED - : result; + public Builder addAllReferences( + java.lang.Iterable + values) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, references_); + onChanged(); + } else { + referencesBuilder_.addAllMessages(values); + } + return this; } /** * * *
            -     * The state of the answer generation.
            +     * References.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Answer.State state = 2; + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + */ + public Builder clearReferences() { + if (referencesBuilder_ == null) { + references_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + referencesBuilder_.clear(); + } + return this; + } + + /** * - * @param value The state to set. - * @return This builder for chaining. + * + *
            +     * References.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; */ - public Builder setState(com.google.cloud.discoveryengine.v1beta.Answer.State value) { - if (value == null) { - throw new NullPointerException(); + public Builder removeReferences(int index) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.remove(index); + onChanged(); + } else { + referencesBuilder_.remove(index); } - bitField0_ |= 0x00000002; - state_ = value.getNumber(); - onChanged(); return this; } @@ -25170,42 +31765,31 @@ public Builder setState(com.google.cloud.discoveryengine.v1beta.Answer.State val * * *
            -     * The state of the answer generation.
            +     * References.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Answer.State state = 2; - * - * @return This builder for chaining. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000002); - state_ = 0; - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder getReferencesBuilder( + int index) { + return internalGetReferencesFieldBuilder().getBuilder(index); } - private java.lang.Object answerText_ = ""; - /** * * *
            -     * The textual answer.
            +     * References.
                  * 
            * - * string answer_text = 3; - * - * @return The answerText. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; */ - public java.lang.String getAnswerText() { - java.lang.Object ref = answerText_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - answerText_ = s; - return s; + public com.google.cloud.discoveryengine.v1beta.Answer.ReferenceOrBuilder getReferencesOrBuilder( + int index) { + if (referencesBuilder_ == null) { + return references_.get(index); } else { - return (java.lang.String) ref; + return referencesBuilder_.getMessageOrBuilder(index); } } @@ -25213,22 +31797,18 @@ public java.lang.String getAnswerText() { * * *
            -     * The textual answer.
            +     * References.
                  * 
            * - * string answer_text = 3; - * - * @return The bytes for answerText. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; */ - public com.google.protobuf.ByteString getAnswerTextBytes() { - java.lang.Object ref = answerText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - answerText_ = b; - return b; + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.Answer.ReferenceOrBuilder> + getReferencesOrBuilderList() { + if (referencesBuilder_ != null) { + return referencesBuilder_.getMessageOrBuilderList(); } else { - return (com.google.protobuf.ByteString) ref; + return java.util.Collections.unmodifiableList(references_); } } @@ -25236,98 +31816,99 @@ public com.google.protobuf.ByteString getAnswerTextBytes() { * * *
            -     * The textual answer.
            +     * References.
                  * 
            * - * string answer_text = 3; - * - * @param value The answerText to set. - * @return This builder for chaining. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; */ - public Builder setAnswerText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - answerText_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder addReferencesBuilder() { + return internalGetReferencesFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.Reference.getDefaultInstance()); } /** * * *
            -     * The textual answer.
            +     * References.
                  * 
            * - * string answer_text = 3; - * - * @return This builder for chaining. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; */ - public Builder clearAnswerText() { - answerText_ = getDefaultInstance().getAnswerText(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder addReferencesBuilder( + int index) { + return internalGetReferencesFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1beta.Answer.Reference.getDefaultInstance()); } /** * * *
            -     * The textual answer.
            +     * References.
                  * 
            * - * string answer_text = 3; - * - * @param value The bytes for answerText to set. - * @return This builder for chaining. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; */ - public Builder setAnswerTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List + getReferencesBuilderList() { + return internalGetReferencesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Reference, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.ReferenceOrBuilder> + internalGetReferencesFieldBuilder() { + if (referencesBuilder_ == null) { + referencesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Reference, + com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.ReferenceOrBuilder>( + references_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + references_ = null; } - checkByteStringIsUtf8(value); - answerText_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + return referencesBuilder_; } - private java.util.List citations_ = - java.util.Collections.emptyList(); + private java.util.List + blobAttachments_ = java.util.Collections.emptyList(); - private void ensureCitationsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - citations_ = - new java.util.ArrayList( - citations_); - bitField0_ |= 0x00000008; + private void ensureBlobAttachmentsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + blobAttachments_ = + new java.util.ArrayList( + blobAttachments_); + bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Citation, - com.google.cloud.discoveryengine.v1beta.Answer.Citation.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.CitationOrBuilder> - citationsBuilder_; + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment, + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachmentOrBuilder> + blobAttachmentsBuilder_; /** * * *
            -     * Citations.
            +     * Output only. List of blob attachments in the answer.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getCitationsList() { - if (citationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(citations_); + public java.util.List + getBlobAttachmentsList() { + if (blobAttachmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(blobAttachments_); } else { - return citationsBuilder_.getMessageList(); + return blobAttachmentsBuilder_.getMessageList(); } } @@ -25335,16 +31916,18 @@ private void ensureCitationsIsMutable() { * * *
            -     * Citations.
            +     * Output only. List of blob attachments in the answer.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public int getCitationsCount() { - if (citationsBuilder_ == null) { - return citations_.size(); + public int getBlobAttachmentsCount() { + if (blobAttachmentsBuilder_ == null) { + return blobAttachments_.size(); } else { - return citationsBuilder_.getCount(); + return blobAttachmentsBuilder_.getCount(); } } @@ -25352,16 +31935,19 @@ public int getCitationsCount() { * * *
            -     * Citations.
            +     * Output only. List of blob attachments in the answer.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.discoveryengine.v1beta.Answer.Citation getCitations(int index) { - if (citationsBuilder_ == null) { - return citations_.get(index); + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment getBlobAttachments( + int index) { + if (blobAttachmentsBuilder_ == null) { + return blobAttachments_.get(index); } else { - return citationsBuilder_.getMessage(index); + return blobAttachmentsBuilder_.getMessage(index); } } @@ -25369,22 +31955,24 @@ public com.google.cloud.discoveryengine.v1beta.Answer.Citation getCitations(int * * *
            -     * Citations.
            +     * Output only. List of blob attachments in the answer.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCitations( - int index, com.google.cloud.discoveryengine.v1beta.Answer.Citation value) { - if (citationsBuilder_ == null) { + public Builder setBlobAttachments( + int index, com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment value) { + if (blobAttachmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureCitationsIsMutable(); - citations_.set(index, value); + ensureBlobAttachmentsIsMutable(); + blobAttachments_.set(index, value); onChanged(); } else { - citationsBuilder_.setMessage(index, value); + blobAttachmentsBuilder_.setMessage(index, value); } return this; } @@ -25393,20 +31981,22 @@ public Builder setCitations( * * *
            -     * Citations.
            +     * Output only. List of blob attachments in the answer.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCitations( + public Builder setBlobAttachments( int index, - com.google.cloud.discoveryengine.v1beta.Answer.Citation.Builder builderForValue) { - if (citationsBuilder_ == null) { - ensureCitationsIsMutable(); - citations_.set(index, builderForValue.build()); + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Builder builderForValue) { + if (blobAttachmentsBuilder_ == null) { + ensureBlobAttachmentsIsMutable(); + blobAttachments_.set(index, builderForValue.build()); onChanged(); } else { - citationsBuilder_.setMessage(index, builderForValue.build()); + blobAttachmentsBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -25415,21 +32005,24 @@ public Builder setCitations( * * *
            -     * Citations.
            +     * Output only. List of blob attachments in the answer.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addCitations(com.google.cloud.discoveryengine.v1beta.Answer.Citation value) { - if (citationsBuilder_ == null) { + public Builder addBlobAttachments( + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment value) { + if (blobAttachmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureCitationsIsMutable(); - citations_.add(value); + ensureBlobAttachmentsIsMutable(); + blobAttachments_.add(value); onChanged(); } else { - citationsBuilder_.addMessage(value); + blobAttachmentsBuilder_.addMessage(value); } return this; } @@ -25438,22 +32031,24 @@ public Builder addCitations(com.google.cloud.discoveryengine.v1beta.Answer.Citat * * *
            -     * Citations.
            +     * Output only. List of blob attachments in the answer.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addCitations( - int index, com.google.cloud.discoveryengine.v1beta.Answer.Citation value) { - if (citationsBuilder_ == null) { + public Builder addBlobAttachments( + int index, com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment value) { + if (blobAttachmentsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureCitationsIsMutable(); - citations_.add(index, value); + ensureBlobAttachmentsIsMutable(); + blobAttachments_.add(index, value); onChanged(); } else { - citationsBuilder_.addMessage(index, value); + blobAttachmentsBuilder_.addMessage(index, value); } return this; } @@ -25462,19 +32057,21 @@ public Builder addCitations( * * *
            -     * Citations.
            +     * Output only. List of blob attachments in the answer.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addCitations( - com.google.cloud.discoveryengine.v1beta.Answer.Citation.Builder builderForValue) { - if (citationsBuilder_ == null) { - ensureCitationsIsMutable(); - citations_.add(builderForValue.build()); + public Builder addBlobAttachments( + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Builder builderForValue) { + if (blobAttachmentsBuilder_ == null) { + ensureBlobAttachmentsIsMutable(); + blobAttachments_.add(builderForValue.build()); onChanged(); } else { - citationsBuilder_.addMessage(builderForValue.build()); + blobAttachmentsBuilder_.addMessage(builderForValue.build()); } return this; } @@ -25483,20 +32080,22 @@ public Builder addCitations( * * *
            -     * Citations.
            +     * Output only. List of blob attachments in the answer.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addCitations( + public Builder addBlobAttachments( int index, - com.google.cloud.discoveryengine.v1beta.Answer.Citation.Builder builderForValue) { - if (citationsBuilder_ == null) { - ensureCitationsIsMutable(); - citations_.add(index, builderForValue.build()); + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Builder builderForValue) { + if (blobAttachmentsBuilder_ == null) { + ensureBlobAttachmentsIsMutable(); + blobAttachments_.add(index, builderForValue.build()); onChanged(); } else { - citationsBuilder_.addMessage(index, builderForValue.build()); + blobAttachmentsBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -25505,20 +32104,22 @@ public Builder addCitations( * * *
            -     * Citations.
            +     * Output only. List of blob attachments in the answer.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addAllCitations( - java.lang.Iterable + public Builder addAllBlobAttachments( + java.lang.Iterable values) { - if (citationsBuilder_ == null) { - ensureCitationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, citations_); + if (blobAttachmentsBuilder_ == null) { + ensureBlobAttachmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blobAttachments_); onChanged(); } else { - citationsBuilder_.addAllMessages(values); + blobAttachmentsBuilder_.addAllMessages(values); } return this; } @@ -25527,18 +32128,20 @@ public Builder addAllCitations( * * *
            -     * Citations.
            +     * Output only. List of blob attachments in the answer.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearCitations() { - if (citationsBuilder_ == null) { - citations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearBlobAttachments() { + if (blobAttachmentsBuilder_ == null) { + blobAttachments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { - citationsBuilder_.clear(); + blobAttachmentsBuilder_.clear(); } return this; } @@ -25547,18 +32150,20 @@ public Builder clearCitations() { * * *
            -     * Citations.
            +     * Output only. List of blob attachments in the answer.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder removeCitations(int index) { - if (citationsBuilder_ == null) { - ensureCitationsIsMutable(); - citations_.remove(index); + public Builder removeBlobAttachments(int index) { + if (blobAttachmentsBuilder_ == null) { + ensureBlobAttachmentsIsMutable(); + blobAttachments_.remove(index); onChanged(); } else { - citationsBuilder_.remove(index); + blobAttachmentsBuilder_.remove(index); } return this; } @@ -25567,31 +32172,35 @@ public Builder removeCitations(int index) { * * *
            -     * Citations.
            +     * Output only. List of blob attachments in the answer.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.discoveryengine.v1beta.Answer.Citation.Builder getCitationsBuilder( - int index) { - return internalGetCitationsFieldBuilder().getBuilder(index); + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Builder + getBlobAttachmentsBuilder(int index) { + return internalGetBlobAttachmentsFieldBuilder().getBuilder(index); } /** * * *
            -     * Citations.
            +     * Output only. List of blob attachments in the answer.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.discoveryengine.v1beta.Answer.CitationOrBuilder getCitationsOrBuilder( - int index) { - if (citationsBuilder_ == null) { - return citations_.get(index); + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachmentOrBuilder + getBlobAttachmentsOrBuilder(int index) { + if (blobAttachmentsBuilder_ == null) { + return blobAttachments_.get(index); } else { - return citationsBuilder_.getMessageOrBuilder(index); + return blobAttachmentsBuilder_.getMessageOrBuilder(index); } } @@ -25599,18 +32208,20 @@ public com.google.cloud.discoveryengine.v1beta.Answer.CitationOrBuilder getCitat * * *
            -     * Citations.
            +     * Output only. List of blob attachments in the answer.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.Answer.CitationOrBuilder> - getCitationsOrBuilderList() { - if (citationsBuilder_ != null) { - return citationsBuilder_.getMessageOrBuilderList(); + ? extends com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachmentOrBuilder> + getBlobAttachmentsOrBuilderList() { + if (blobAttachmentsBuilder_ != null) { + return blobAttachmentsBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(citations_); + return java.util.Collections.unmodifiableList(blobAttachments_); } } @@ -25618,154 +32229,169 @@ public com.google.cloud.discoveryengine.v1beta.Answer.CitationOrBuilder getCitat * * *
            -     * Citations.
            +     * Output only. List of blob attachments in the answer.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.discoveryengine.v1beta.Answer.Citation.Builder addCitationsBuilder() { - return internalGetCitationsFieldBuilder() - .addBuilder(com.google.cloud.discoveryengine.v1beta.Answer.Citation.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Builder + addBlobAttachmentsBuilder() { + return internalGetBlobAttachmentsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.getDefaultInstance()); } /** * * *
            -     * Citations.
            +     * Output only. List of blob attachments in the answer.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.discoveryengine.v1beta.Answer.Citation.Builder addCitationsBuilder( - int index) { - return internalGetCitationsFieldBuilder() + public com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Builder + addBlobAttachmentsBuilder(int index) { + return internalGetBlobAttachmentsFieldBuilder() .addBuilder( - index, com.google.cloud.discoveryengine.v1beta.Answer.Citation.getDefaultInstance()); + index, + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.getDefaultInstance()); } /** * * *
            -     * Citations.
            +     * Output only. List of blob attachments in the answer.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Citation citations = 4; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public java.util.List - getCitationsBuilderList() { - return internalGetCitationsFieldBuilder().getBuilderList(); + public java.util.List + getBlobAttachmentsBuilderList() { + return internalGetBlobAttachmentsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Citation, - com.google.cloud.discoveryengine.v1beta.Answer.Citation.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.CitationOrBuilder> - internalGetCitationsFieldBuilder() { - if (citationsBuilder_ == null) { - citationsBuilder_ = + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment, + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachmentOrBuilder> + internalGetBlobAttachmentsFieldBuilder() { + if (blobAttachmentsBuilder_ == null) { + blobAttachmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Citation, - com.google.cloud.discoveryengine.v1beta.Answer.Citation.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.CitationOrBuilder>( - citations_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - citations_ = null; + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment, + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachmentOrBuilder>( + blobAttachments_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + blobAttachments_ = null; } - return citationsBuilder_; + return blobAttachmentsBuilder_; } - private java.util.List references_ = - java.util.Collections.emptyList(); + private com.google.protobuf.LazyStringArrayList relatedQuestions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureReferencesIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - references_ = - new java.util.ArrayList( - references_); - bitField0_ |= 0x00000010; + private void ensureRelatedQuestionsIsMutable() { + if (!relatedQuestions_.isModifiable()) { + relatedQuestions_ = new com.google.protobuf.LazyStringArrayList(relatedQuestions_); } + bitField0_ |= 0x00000100; } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Reference, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.ReferenceOrBuilder> - referencesBuilder_; + /** + * + * + *
            +     * Suggested related questions.
            +     * 
            + * + * repeated string related_questions = 6; + * + * @return A list containing the relatedQuestions. + */ + public com.google.protobuf.ProtocolStringList getRelatedQuestionsList() { + relatedQuestions_.makeImmutable(); + return relatedQuestions_; + } /** * * *
            -     * References.
            +     * Suggested related questions.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * repeated string related_questions = 6; + * + * @return The count of relatedQuestions. */ - public java.util.List - getReferencesList() { - if (referencesBuilder_ == null) { - return java.util.Collections.unmodifiableList(references_); - } else { - return referencesBuilder_.getMessageList(); - } + public int getRelatedQuestionsCount() { + return relatedQuestions_.size(); } /** * * *
            -     * References.
            +     * Suggested related questions.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * repeated string related_questions = 6; + * + * @param index The index of the element to return. + * @return The relatedQuestions at the given index. */ - public int getReferencesCount() { - if (referencesBuilder_ == null) { - return references_.size(); - } else { - return referencesBuilder_.getCount(); - } + public java.lang.String getRelatedQuestions(int index) { + return relatedQuestions_.get(index); } /** * * *
            -     * References.
            +     * Suggested related questions.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * repeated string related_questions = 6; + * + * @param index The index of the value to return. + * @return The bytes of the relatedQuestions at the given index. */ - public com.google.cloud.discoveryengine.v1beta.Answer.Reference getReferences(int index) { - if (referencesBuilder_ == null) { - return references_.get(index); - } else { - return referencesBuilder_.getMessage(index); - } + public com.google.protobuf.ByteString getRelatedQuestionsBytes(int index) { + return relatedQuestions_.getByteString(index); } /** * * *
            -     * References.
            +     * Suggested related questions.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * repeated string related_questions = 6; + * + * @param index The index to set the value at. + * @param value The relatedQuestions to set. + * @return This builder for chaining. */ - public Builder setReferences( - int index, com.google.cloud.discoveryengine.v1beta.Answer.Reference value) { - if (referencesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReferencesIsMutable(); - references_.set(index, value); - onChanged(); - } else { - referencesBuilder_.setMessage(index, value); + public Builder setRelatedQuestions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureRelatedQuestionsIsMutable(); + relatedQuestions_.set(index, value); + bitField0_ |= 0x00000100; + onChanged(); return this; } @@ -25773,21 +32399,22 @@ public Builder setReferences( * * *
            -     * References.
            +     * Suggested related questions.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * repeated string related_questions = 6; + * + * @param value The relatedQuestions to add. + * @return This builder for chaining. */ - public Builder setReferences( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder builderForValue) { - if (referencesBuilder_ == null) { - ensureReferencesIsMutable(); - references_.set(index, builderForValue.build()); - onChanged(); - } else { - referencesBuilder_.setMessage(index, builderForValue.build()); + public Builder addRelatedQuestions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureRelatedQuestionsIsMutable(); + relatedQuestions_.add(value); + bitField0_ |= 0x00000100; + onChanged(); return this; } @@ -25795,22 +32422,19 @@ public Builder setReferences( * * *
            -     * References.
            +     * Suggested related questions.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * repeated string related_questions = 6; + * + * @param values The relatedQuestions to add. + * @return This builder for chaining. */ - public Builder addReferences(com.google.cloud.discoveryengine.v1beta.Answer.Reference value) { - if (referencesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReferencesIsMutable(); - references_.add(value); - onChanged(); - } else { - referencesBuilder_.addMessage(value); - } + public Builder addAllRelatedQuestions(java.lang.Iterable values) { + ensureRelatedQuestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relatedQuestions_); + bitField0_ |= 0x00000100; + onChanged(); return this; } @@ -25818,107 +32442,132 @@ public Builder addReferences(com.google.cloud.discoveryengine.v1beta.Answer.Refe * * *
            -     * References.
            +     * Suggested related questions.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * repeated string related_questions = 6; + * + * @return This builder for chaining. */ - public Builder addReferences( - int index, com.google.cloud.discoveryengine.v1beta.Answer.Reference value) { - if (referencesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureReferencesIsMutable(); - references_.add(index, value); - onChanged(); - } else { - referencesBuilder_.addMessage(index, value); + public Builder clearRelatedQuestions() { + relatedQuestions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Suggested related questions.
            +     * 
            + * + * repeated string related_questions = 6; + * + * @param value The bytes of the relatedQuestions to add. + * @return This builder for chaining. + */ + public Builder addRelatedQuestionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRelatedQuestionsIsMutable(); + relatedQuestions_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.util.List steps_ = + java.util.Collections.emptyList(); + + private void ensureStepsIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + steps_ = + new java.util.ArrayList(steps_); + bitField0_ |= 0x00000200; } - return this; } + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.StepOrBuilder> + stepsBuilder_; + /** * * *
            -     * References.
            +     * Answer generation steps.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ - public Builder addReferences( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder builderForValue) { - if (referencesBuilder_ == null) { - ensureReferencesIsMutable(); - references_.add(builderForValue.build()); - onChanged(); + public java.util.List getStepsList() { + if (stepsBuilder_ == null) { + return java.util.Collections.unmodifiableList(steps_); } else { - referencesBuilder_.addMessage(builderForValue.build()); + return stepsBuilder_.getMessageList(); } - return this; } /** * * *
            -     * References.
            +     * Answer generation steps.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ - public Builder addReferences( - int index, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder builderForValue) { - if (referencesBuilder_ == null) { - ensureReferencesIsMutable(); - references_.add(index, builderForValue.build()); - onChanged(); + public int getStepsCount() { + if (stepsBuilder_ == null) { + return steps_.size(); } else { - referencesBuilder_.addMessage(index, builderForValue.build()); + return stepsBuilder_.getCount(); } - return this; } /** * * *
            -     * References.
            +     * Answer generation steps.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ - public Builder addAllReferences( - java.lang.Iterable - values) { - if (referencesBuilder_ == null) { - ensureReferencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, references_); - onChanged(); + public com.google.cloud.discoveryengine.v1beta.Answer.Step getSteps(int index) { + if (stepsBuilder_ == null) { + return steps_.get(index); } else { - referencesBuilder_.addAllMessages(values); + return stepsBuilder_.getMessage(index); } - return this; } /** * * *
            -     * References.
            +     * Answer generation steps.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ - public Builder clearReferences() { - if (referencesBuilder_ == null) { - references_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + public Builder setSteps(int index, com.google.cloud.discoveryengine.v1beta.Answer.Step value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.set(index, value); onChanged(); } else { - referencesBuilder_.clear(); + stepsBuilder_.setMessage(index, value); } return this; } @@ -25927,18 +32576,19 @@ public Builder clearReferences() { * * *
            -     * References.
            +     * Answer generation steps.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ - public Builder removeReferences(int index) { - if (referencesBuilder_ == null) { - ensureReferencesIsMutable(); - references_.remove(index); + public Builder setSteps( + int index, com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.set(index, builderForValue.build()); onChanged(); } else { - referencesBuilder_.remove(index); + stepsBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -25947,346 +32597,307 @@ public Builder removeReferences(int index) { * * *
            -     * References.
            -     * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder getReferencesBuilder( - int index) { - return internalGetReferencesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
            -     * References.
            +     * Answer generation steps.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ - public com.google.cloud.discoveryengine.v1beta.Answer.ReferenceOrBuilder getReferencesOrBuilder( - int index) { - if (referencesBuilder_ == null) { - return references_.get(index); + public Builder addSteps(com.google.cloud.discoveryengine.v1beta.Answer.Step value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.add(value); + onChanged(); } else { - return referencesBuilder_.getMessageOrBuilder(index); + stepsBuilder_.addMessage(value); } + return this; } /** * * *
            -     * References.
            +     * Answer generation steps.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.Answer.ReferenceOrBuilder> - getReferencesOrBuilderList() { - if (referencesBuilder_ != null) { - return referencesBuilder_.getMessageOrBuilderList(); + public Builder addSteps(int index, com.google.cloud.discoveryengine.v1beta.Answer.Step value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.add(index, value); + onChanged(); } else { - return java.util.Collections.unmodifiableList(references_); + stepsBuilder_.addMessage(index, value); } + return this; } /** * * *
            -     * References.
            -     * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; - */ - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder addReferencesBuilder() { - return internalGetReferencesFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.Answer.Reference.getDefaultInstance()); - } - - /** - * - * - *
            -     * References.
            +     * Answer generation steps.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ - public com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder addReferencesBuilder( - int index) { - return internalGetReferencesFieldBuilder() - .addBuilder( - index, com.google.cloud.discoveryengine.v1beta.Answer.Reference.getDefaultInstance()); + public Builder addSteps( + com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.addMessage(builderForValue.build()); + } + return this; } /** * * *
            -     * References.
            +     * Answer generation steps.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Reference references = 5; + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ - public java.util.List - getReferencesBuilderList() { - return internalGetReferencesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Reference, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.ReferenceOrBuilder> - internalGetReferencesFieldBuilder() { - if (referencesBuilder_ == null) { - referencesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Reference, - com.google.cloud.discoveryengine.v1beta.Answer.Reference.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.ReferenceOrBuilder>( - references_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - references_ = null; - } - return referencesBuilder_; - } - - private com.google.protobuf.LazyStringArrayList relatedQuestions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureRelatedQuestionsIsMutable() { - if (!relatedQuestions_.isModifiable()) { - relatedQuestions_ = new com.google.protobuf.LazyStringArrayList(relatedQuestions_); + public Builder addSteps( + int index, com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(index, builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.addMessage(index, builderForValue.build()); } - bitField0_ |= 0x00000020; + return this; } /** * * *
            -     * Suggested related questions.
            +     * Answer generation steps.
                  * 
            * - * repeated string related_questions = 6; - * - * @return A list containing the relatedQuestions. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ - public com.google.protobuf.ProtocolStringList getRelatedQuestionsList() { - relatedQuestions_.makeImmutable(); - return relatedQuestions_; + public Builder addAllSteps( + java.lang.Iterable values) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, steps_); + onChanged(); + } else { + stepsBuilder_.addAllMessages(values); + } + return this; } /** * * *
            -     * Suggested related questions.
            +     * Answer generation steps.
                  * 
            * - * repeated string related_questions = 6; - * - * @return The count of relatedQuestions. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ - public int getRelatedQuestionsCount() { - return relatedQuestions_.size(); + public Builder clearSteps() { + if (stepsBuilder_ == null) { + steps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + stepsBuilder_.clear(); + } + return this; } /** * * *
            -     * Suggested related questions.
            -     * 
            - * - * repeated string related_questions = 6; + * Answer generation steps. + *
            * - * @param index The index of the element to return. - * @return The relatedQuestions at the given index. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ - public java.lang.String getRelatedQuestions(int index) { - return relatedQuestions_.get(index); + public Builder removeSteps(int index) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.remove(index); + onChanged(); + } else { + stepsBuilder_.remove(index); + } + return this; } /** * * *
            -     * Suggested related questions.
            +     * Answer generation steps.
                  * 
            * - * repeated string related_questions = 6; - * - * @param index The index of the value to return. - * @return The bytes of the relatedQuestions at the given index. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ - public com.google.protobuf.ByteString getRelatedQuestionsBytes(int index) { - return relatedQuestions_.getByteString(index); + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder getStepsBuilder(int index) { + return internalGetStepsFieldBuilder().getBuilder(index); } /** * * *
            -     * Suggested related questions.
            +     * Answer generation steps.
                  * 
            * - * repeated string related_questions = 6; - * - * @param index The index to set the value at. - * @param value The relatedQuestions to set. - * @return This builder for chaining. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ - public Builder setRelatedQuestions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.discoveryengine.v1beta.Answer.StepOrBuilder getStepsOrBuilder( + int index) { + if (stepsBuilder_ == null) { + return steps_.get(index); + } else { + return stepsBuilder_.getMessageOrBuilder(index); } - ensureRelatedQuestionsIsMutable(); - relatedQuestions_.set(index, value); - bitField0_ |= 0x00000020; - onChanged(); - return this; } /** * * *
            -     * Suggested related questions.
            +     * Answer generation steps.
                  * 
            * - * repeated string related_questions = 6; - * - * @param value The relatedQuestions to add. - * @return This builder for chaining. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ - public Builder addRelatedQuestions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List + getStepsOrBuilderList() { + if (stepsBuilder_ != null) { + return stepsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(steps_); } - ensureRelatedQuestionsIsMutable(); - relatedQuestions_.add(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; } /** * * *
            -     * Suggested related questions.
            +     * Answer generation steps.
                  * 
            * - * repeated string related_questions = 6; - * - * @param values The relatedQuestions to add. - * @return This builder for chaining. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ - public Builder addAllRelatedQuestions(java.lang.Iterable values) { - ensureRelatedQuestionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relatedQuestions_); - bitField0_ |= 0x00000020; - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder addStepsBuilder() { + return internalGetStepsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1beta.Answer.Step.getDefaultInstance()); } /** * * *
            -     * Suggested related questions.
            +     * Answer generation steps.
                  * 
            * - * repeated string related_questions = 6; - * - * @return This builder for chaining. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ - public Builder clearRelatedQuestions() { - relatedQuestions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - ; - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder addStepsBuilder(int index) { + return internalGetStepsFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1beta.Answer.Step.getDefaultInstance()); } /** * * *
            -     * Suggested related questions.
            +     * Answer generation steps.
                  * 
            * - * repeated string related_questions = 6; - * - * @param value The bytes of the relatedQuestions to add. - * @return This builder for chaining. + * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; */ - public Builder addRelatedQuestionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRelatedQuestionsIsMutable(); - relatedQuestions_.add(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private java.util.List steps_ = - java.util.Collections.emptyList(); - - private void ensureStepsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - steps_ = - new java.util.ArrayList(steps_); - bitField0_ |= 0x00000040; - } + public java.util.List + getStepsBuilderList() { + return internalGetStepsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1beta.Answer.Step, com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder, com.google.cloud.discoveryengine.v1beta.Answer.StepOrBuilder> - stepsBuilder_; + internalGetStepsFieldBuilder() { + if (stepsBuilder_ == null) { + stepsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.Step, + com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.StepOrBuilder>( + steps_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); + steps_ = null; + } + return stepsBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + queryUnderstandingInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfoOrBuilder> + queryUnderstandingInfoBuilder_; /** * * *
            -     * Answer generation steps.
            +     * Query understanding information.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * + * + * @return Whether the queryUnderstandingInfo field is set. */ - public java.util.List getStepsList() { - if (stepsBuilder_ == null) { - return java.util.Collections.unmodifiableList(steps_); - } else { - return stepsBuilder_.getMessageList(); - } + public boolean hasQueryUnderstandingInfo() { + return ((bitField0_ & 0x00000400) != 0); } /** * * *
            -     * Answer generation steps.
            +     * Query understanding information.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * + * + * @return The queryUnderstandingInfo. */ - public int getStepsCount() { - if (stepsBuilder_ == null) { - return steps_.size(); + public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + getQueryUnderstandingInfo() { + if (queryUnderstandingInfoBuilder_ == null) { + return queryUnderstandingInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .getDefaultInstance() + : queryUnderstandingInfo_; } else { - return stepsBuilder_.getCount(); + return queryUnderstandingInfoBuilder_.getMessage(); } } @@ -26294,39 +32905,49 @@ public int getStepsCount() { * * *
            -     * Answer generation steps.
            +     * Query understanding information.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step getSteps(int index) { - if (stepsBuilder_ == null) { - return steps_.get(index); + public Builder setQueryUnderstandingInfo( + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo value) { + if (queryUnderstandingInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryUnderstandingInfo_ = value; } else { - return stepsBuilder_.getMessage(index); + queryUnderstandingInfoBuilder_.setMessage(value); } + bitField0_ |= 0x00000400; + onChanged(); + return this; } /** * * *
            -     * Answer generation steps.
            +     * Query understanding information.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * */ - public Builder setSteps(int index, com.google.cloud.discoveryengine.v1beta.Answer.Step value) { - if (stepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStepsIsMutable(); - steps_.set(index, value); - onChanged(); + public Builder setQueryUnderstandingInfo( + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.Builder + builderForValue) { + if (queryUnderstandingInfoBuilder_ == null) { + queryUnderstandingInfo_ = builderForValue.build(); } else { - stepsBuilder_.setMessage(index, value); + queryUnderstandingInfoBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000400; + onChanged(); return this; } @@ -26334,19 +32955,31 @@ public Builder setSteps(int index, com.google.cloud.discoveryengine.v1beta.Answe * * *
            -     * Answer generation steps.
            +     * Query understanding information.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * */ - public Builder setSteps( - int index, com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder builderForValue) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.set(index, builderForValue.build()); + public Builder mergeQueryUnderstandingInfo( + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo value) { + if (queryUnderstandingInfoBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && queryUnderstandingInfo_ != null + && queryUnderstandingInfo_ + != com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .getDefaultInstance()) { + getQueryUnderstandingInfoBuilder().mergeFrom(value); + } else { + queryUnderstandingInfo_ = value; + } + } else { + queryUnderstandingInfoBuilder_.mergeFrom(value); + } + if (queryUnderstandingInfo_ != null) { + bitField0_ |= 0x00000400; onChanged(); - } else { - stepsBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -26355,22 +32988,21 @@ public Builder setSteps( * * *
            -     * Answer generation steps.
            +     * Query understanding information.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * */ - public Builder addSteps(com.google.cloud.discoveryengine.v1beta.Answer.Step value) { - if (stepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStepsIsMutable(); - steps_.add(value); - onChanged(); - } else { - stepsBuilder_.addMessage(value); + public Builder clearQueryUnderstandingInfo() { + bitField0_ = (bitField0_ & ~0x00000400); + queryUnderstandingInfo_ = null; + if (queryUnderstandingInfoBuilder_ != null) { + queryUnderstandingInfoBuilder_.dispose(); + queryUnderstandingInfoBuilder_ = null; } + onChanged(); return this; } @@ -26378,388 +33010,415 @@ public Builder addSteps(com.google.cloud.discoveryengine.v1beta.Answer.Step valu * * *
            -     * Answer generation steps.
            +     * Query understanding information.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * */ - public Builder addSteps(int index, com.google.cloud.discoveryengine.v1beta.Answer.Step value) { - if (stepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStepsIsMutable(); - steps_.add(index, value); - onChanged(); - } else { - stepsBuilder_.addMessage(index, value); - } - return this; + public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.Builder + getQueryUnderstandingInfoBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetQueryUnderstandingInfoFieldBuilder().getBuilder(); } /** * * *
            -     * Answer generation steps.
            +     * Query understanding information.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * */ - public Builder addSteps( - com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder builderForValue) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.add(builderForValue.build()); - onChanged(); + public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfoOrBuilder + getQueryUnderstandingInfoOrBuilder() { + if (queryUnderstandingInfoBuilder_ != null) { + return queryUnderstandingInfoBuilder_.getMessageOrBuilder(); } else { - stepsBuilder_.addMessage(builderForValue.build()); + return queryUnderstandingInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo + .getDefaultInstance() + : queryUnderstandingInfo_; } - return this; } /** * * *
            -     * Answer generation steps.
            +     * Query understanding information.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * */ - public Builder addSteps( - int index, com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder builderForValue) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.add(index, builderForValue.build()); - onChanged(); - } else { - stepsBuilder_.addMessage(index, builderForValue.build()); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfoOrBuilder> + internalGetQueryUnderstandingInfoFieldBuilder() { + if (queryUnderstandingInfoBuilder_ == null) { + queryUnderstandingInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfoOrBuilder>( + getQueryUnderstandingInfo(), getParentForChildren(), isClean()); + queryUnderstandingInfo_ = null; } - return this; + return queryUnderstandingInfoBuilder_; + } + + private com.google.protobuf.Internal.IntList answerSkippedReasons_ = emptyIntList(); + + private void ensureAnswerSkippedReasonsIsMutable() { + if (!answerSkippedReasons_.isModifiable()) { + answerSkippedReasons_ = makeMutableCopy(answerSkippedReasons_); + } + bitField0_ |= 0x00000800; } /** * * *
            -     * Answer generation steps.
            +     * Additional answer-skipped reasons. This provides the reason for ignored
            +     * cases. If nothing is skipped, this field is not set.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * + * + * @return A list containing the answerSkippedReasons. */ - public Builder addAllSteps( - java.lang.Iterable values) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, steps_); - onChanged(); - } else { - stepsBuilder_.addAllMessages(values); - } - return this; + public java.util.List + getAnswerSkippedReasonsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason>( + answerSkippedReasons_, answerSkippedReasons_converter_); } /** * * *
            -     * Answer generation steps.
            +     * Additional answer-skipped reasons. This provides the reason for ignored
            +     * cases. If nothing is skipped, this field is not set.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * + * + * @return The count of answerSkippedReasons. */ - public Builder clearSteps() { - if (stepsBuilder_ == null) { - steps_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - } else { - stepsBuilder_.clear(); - } - return this; + public int getAnswerSkippedReasonsCount() { + return answerSkippedReasons_.size(); } /** * * *
            -     * Answer generation steps.
            +     * Additional answer-skipped reasons. This provides the reason for ignored
            +     * cases. If nothing is skipped, this field is not set.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * + * + * @param index The index of the element to return. + * @return The answerSkippedReasons at the given index. */ - public Builder removeSteps(int index) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.remove(index); - onChanged(); - } else { - stepsBuilder_.remove(index); - } - return this; + public com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason + getAnswerSkippedReasons(int index) { + return answerSkippedReasons_converter_.convert(answerSkippedReasons_.getInt(index)); } /** * * *
            -     * Answer generation steps.
            +     * Additional answer-skipped reasons. This provides the reason for ignored
            +     * cases. If nothing is skipped, this field is not set.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * + * + * @param index The index to set the value at. + * @param value The answerSkippedReasons to set. + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder getStepsBuilder(int index) { - return internalGetStepsFieldBuilder().getBuilder(index); + public Builder setAnswerSkippedReasons( + int index, com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnswerSkippedReasonsIsMutable(); + answerSkippedReasons_.setInt(index, value.getNumber()); + onChanged(); + return this; } /** * * *
            -     * Answer generation steps.
            +     * Additional answer-skipped reasons. This provides the reason for ignored
            +     * cases. If nothing is skipped, this field is not set.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * + * + * @param value The answerSkippedReasons to add. + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1beta.Answer.StepOrBuilder getStepsOrBuilder( - int index) { - if (stepsBuilder_ == null) { - return steps_.get(index); - } else { - return stepsBuilder_.getMessageOrBuilder(index); + public Builder addAnswerSkippedReasons( + com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason value) { + if (value == null) { + throw new NullPointerException(); } + ensureAnswerSkippedReasonsIsMutable(); + answerSkippedReasons_.addInt(value.getNumber()); + onChanged(); + return this; } /** * * *
            -     * Answer generation steps.
            +     * Additional answer-skipped reasons. This provides the reason for ignored
            +     * cases. If nothing is skipped, this field is not set.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * + * + * @param values The answerSkippedReasons to add. + * @return This builder for chaining. */ - public java.util.List - getStepsOrBuilderList() { - if (stepsBuilder_ != null) { - return stepsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(steps_); + public Builder addAllAnswerSkippedReasons( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason> + values) { + ensureAnswerSkippedReasonsIsMutable(); + for (com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason value : values) { + answerSkippedReasons_.addInt(value.getNumber()); } + onChanged(); + return this; } /** * * *
            -     * Answer generation steps.
            +     * Additional answer-skipped reasons. This provides the reason for ignored
            +     * cases. If nothing is skipped, this field is not set.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * + * + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder addStepsBuilder() { - return internalGetStepsFieldBuilder() - .addBuilder(com.google.cloud.discoveryengine.v1beta.Answer.Step.getDefaultInstance()); + public Builder clearAnswerSkippedReasons() { + answerSkippedReasons_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; } /** * * *
            -     * Answer generation steps.
            +     * Additional answer-skipped reasons. This provides the reason for ignored
            +     * cases. If nothing is skipped, this field is not set.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * + * + * @return A list containing the enum numeric values on the wire for answerSkippedReasons. */ - public com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder addStepsBuilder(int index) { - return internalGetStepsFieldBuilder() - .addBuilder( - index, com.google.cloud.discoveryengine.v1beta.Answer.Step.getDefaultInstance()); + public java.util.List getAnswerSkippedReasonsValueList() { + answerSkippedReasons_.makeImmutable(); + return answerSkippedReasons_; } /** * * *
            -     * Answer generation steps.
            +     * Additional answer-skipped reasons. This provides the reason for ignored
            +     * cases. If nothing is skipped, this field is not set.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.Answer.Step steps = 7; + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of answerSkippedReasons at the given index. */ - public java.util.List - getStepsBuilderList() { - return internalGetStepsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.StepOrBuilder> - internalGetStepsFieldBuilder() { - if (stepsBuilder_ == null) { - stepsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.Step, - com.google.cloud.discoveryengine.v1beta.Answer.Step.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.StepOrBuilder>( - steps_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); - steps_ = null; - } - return stepsBuilder_; + public int getAnswerSkippedReasonsValue(int index) { + return answerSkippedReasons_.getInt(index); } - private com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - queryUnderstandingInfo_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfoOrBuilder> - queryUnderstandingInfoBuilder_; - /** * * *
            -     * Query understanding information.
            +     * Additional answer-skipped reasons. This provides the reason for ignored
            +     * cases. If nothing is skipped, this field is not set.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; * * - * @return Whether the queryUnderstandingInfo field is set. + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for answerSkippedReasons to set. + * @return This builder for chaining. */ - public boolean hasQueryUnderstandingInfo() { - return ((bitField0_ & 0x00000080) != 0); + public Builder setAnswerSkippedReasonsValue(int index, int value) { + ensureAnswerSkippedReasonsIsMutable(); + answerSkippedReasons_.setInt(index, value); + onChanged(); + return this; } /** * * *
            -     * Query understanding information.
            +     * Additional answer-skipped reasons. This provides the reason for ignored
            +     * cases. If nothing is skipped, this field is not set.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; * * - * @return The queryUnderstandingInfo. + * @param value The enum numeric value on the wire for answerSkippedReasons to add. + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - getQueryUnderstandingInfo() { - if (queryUnderstandingInfoBuilder_ == null) { - return queryUnderstandingInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .getDefaultInstance() - : queryUnderstandingInfo_; - } else { - return queryUnderstandingInfoBuilder_.getMessage(); - } + public Builder addAnswerSkippedReasonsValue(int value) { + ensureAnswerSkippedReasonsIsMutable(); + answerSkippedReasons_.addInt(value); + onChanged(); + return this; } /** * * *
            -     * Query understanding information.
            +     * Additional answer-skipped reasons. This provides the reason for ignored
            +     * cases. If nothing is skipped, this field is not set.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; * + * + * @param values The enum numeric values on the wire for answerSkippedReasons to add. + * @return This builder for chaining. */ - public Builder setQueryUnderstandingInfo( - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo value) { - if (queryUnderstandingInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queryUnderstandingInfo_ = value; - } else { - queryUnderstandingInfoBuilder_.setMessage(value); + public Builder addAllAnswerSkippedReasonsValue(java.lang.Iterable values) { + ensureAnswerSkippedReasonsIsMutable(); + for (int value : values) { + answerSkippedReasons_.addInt(value); } - bitField0_ |= 0x00000080; onChanged(); return this; } + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** * * *
            -     * Query understanding information.
            +     * Output only. Answer creation timestamp.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the createTime field is set. */ - public Builder setQueryUnderstandingInfo( - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.Builder - builderForValue) { - if (queryUnderstandingInfoBuilder_ == null) { - queryUnderstandingInfo_ = builderForValue.build(); - } else { - queryUnderstandingInfoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; + public boolean hasCreateTime() { + return ((bitField0_ & 0x00001000) != 0); } /** * * *
            -     * Query understanding information.
            +     * Output only. Answer creation timestamp.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The createTime. */ - public Builder mergeQueryUnderstandingInfo( - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo value) { - if (queryUnderstandingInfoBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && queryUnderstandingInfo_ != null - && queryUnderstandingInfo_ - != com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .getDefaultInstance()) { - getQueryUnderstandingInfoBuilder().mergeFrom(value); - } else { - queryUnderstandingInfo_ = value; - } + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { - queryUnderstandingInfoBuilder_.mergeFrom(value); - } - if (queryUnderstandingInfo_ != null) { - bitField0_ |= 0x00000080; - onChanged(); + return createTimeBuilder_.getMessage(); } - return this; } /** * * *
            -     * Query understanding information.
            +     * Output only. Answer creation timestamp.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearQueryUnderstandingInfo() { - bitField0_ = (bitField0_ & ~0x00000080); - queryUnderstandingInfo_ = null; - if (queryUnderstandingInfoBuilder_ != null) { - queryUnderstandingInfoBuilder_.dispose(); - queryUnderstandingInfoBuilder_ = null; + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); } + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -26768,188 +33427,210 @@ public Builder clearQueryUnderstandingInfo() { * * *
            -     * Query understanding information.
            +     * Output only. Answer creation timestamp.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.Builder - getQueryUnderstandingInfoBuilder() { - bitField0_ |= 0x00000080; + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; onChanged(); - return internalGetQueryUnderstandingInfoFieldBuilder().getBuilder(); + return this; } /** * * *
            -     * Query understanding information.
            +     * Output only. Answer creation timestamp.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfoOrBuilder - getQueryUnderstandingInfoOrBuilder() { - if (queryUnderstandingInfoBuilder_ != null) { - return queryUnderstandingInfoBuilder_.getMessageOrBuilder(); + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } } else { - return queryUnderstandingInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo - .getDefaultInstance() - : queryUnderstandingInfo_; + createTimeBuilder_.mergeFrom(value); } + if (createTime_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; } /** * * *
            -     * Query understanding information.
            +     * Output only. Answer creation timestamp.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo query_understanding_info = 10; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfoOrBuilder> - internalGetQueryUnderstandingInfoFieldBuilder() { - if (queryUnderstandingInfoBuilder_ == null) { - queryUnderstandingInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo.Builder, - com.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfoOrBuilder>( - getQueryUnderstandingInfo(), getParentForChildren(), isClean()); - queryUnderstandingInfo_ = null; - } - return queryUnderstandingInfoBuilder_; - } - - private com.google.protobuf.Internal.IntList answerSkippedReasons_ = emptyIntList(); - - private void ensureAnswerSkippedReasonsIsMutable() { - if (!answerSkippedReasons_.isModifiable()) { - answerSkippedReasons_ = makeMutableCopy(answerSkippedReasons_); + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00001000); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; } - bitField0_ |= 0x00000100; + onChanged(); + return this; } /** * * *
            -     * Additional answer-skipped reasons. This provides the reason for ignored
            -     * cases. If nothing is skipped, this field is not set.
            +     * Output only. Answer creation timestamp.
                  * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return A list containing the answerSkippedReasons. */ - public java.util.List - getAnswerSkippedReasonsList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason>( - answerSkippedReasons_, answerSkippedReasons_converter_); + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); } /** * * *
            -     * Additional answer-skipped reasons. This provides the reason for ignored
            -     * cases. If nothing is skipped, this field is not set.
            +     * Output only. Answer creation timestamp.
                  * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * .google.protobuf.Timestamp create_time = 8 [(.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_; + } + } + + /** * - * @return The count of answerSkippedReasons. + * + *
            +     * Output only. Answer creation timestamp.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public int getAnswerSkippedReasonsCount() { - return answerSkippedReasons_.size(); + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; } + private com.google.protobuf.Timestamp completeTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + completeTimeBuilder_; + /** * * *
            -     * Additional answer-skipped reasons. This provides the reason for ignored
            -     * cases. If nothing is skipped, this field is not set.
            +     * Output only. Answer completed timestamp.
                  * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param index The index of the element to return. - * @return The answerSkippedReasons at the given index. + * @return Whether the completeTime field is set. */ - public com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason - getAnswerSkippedReasons(int index) { - return answerSkippedReasons_converter_.convert(answerSkippedReasons_.getInt(index)); + public boolean hasCompleteTime() { + return ((bitField0_ & 0x00002000) != 0); } /** * * *
            -     * Additional answer-skipped reasons. This provides the reason for ignored
            -     * cases. If nothing is skipped, this field is not set.
            +     * Output only. Answer completed timestamp.
                  * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @param index The index to set the value at. - * @param value The answerSkippedReasons to set. - * @return This builder for chaining. + * @return The completeTime. */ - public Builder setAnswerSkippedReasons( - int index, com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason value) { - if (value == null) { - throw new NullPointerException(); + public com.google.protobuf.Timestamp getCompleteTime() { + if (completeTimeBuilder_ == null) { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } else { + return completeTimeBuilder_.getMessage(); } - ensureAnswerSkippedReasonsIsMutable(); - answerSkippedReasons_.setInt(index, value.getNumber()); - onChanged(); - return this; } /** * * *
            -     * Additional answer-skipped reasons. This provides the reason for ignored
            -     * cases. If nothing is skipped, this field is not set.
            +     * Output only. Answer completed timestamp.
                  * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The answerSkippedReasons to add. - * @return This builder for chaining. */ - public Builder addAnswerSkippedReasons( - com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason value) { - if (value == null) { - throw new NullPointerException(); + public Builder setCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + completeTime_ = value; + } else { + completeTimeBuilder_.setMessage(value); } - ensureAnswerSkippedReasonsIsMutable(); - answerSkippedReasons_.addInt(value.getNumber()); + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -26958,25 +33639,20 @@ public Builder addAnswerSkippedReasons( * * *
            -     * Additional answer-skipped reasons. This provides the reason for ignored
            -     * cases. If nothing is skipped, this field is not set.
            +     * Output only. Answer completed timestamp.
                  * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param values The answerSkippedReasons to add. - * @return This builder for chaining. */ - public Builder addAllAnswerSkippedReasons( - java.lang.Iterable< - ? extends com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason> - values) { - ensureAnswerSkippedReasonsIsMutable(); - for (com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason value : values) { - answerSkippedReasons_.addInt(value.getNumber()); + public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (completeTimeBuilder_ == null) { + completeTime_ = builderForValue.build(); + } else { + completeTimeBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -26985,20 +33661,29 @@ public Builder addAllAnswerSkippedReasons( * * *
            -     * Additional answer-skipped reasons. This provides the reason for ignored
            -     * cases. If nothing is skipped, this field is not set.
            +     * Output only. Answer completed timestamp.
                  * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return This builder for chaining. */ - public Builder clearAnswerSkippedReasons() { - answerSkippedReasons_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); + public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { + if (completeTimeBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && completeTime_ != null + && completeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCompleteTimeBuilder().mergeFrom(value); + } else { + completeTime_ = value; + } + } else { + completeTimeBuilder_.mergeFrom(value); + } + if (completeTime_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } return this; } @@ -27006,153 +33691,163 @@ public Builder clearAnswerSkippedReasons() { * * *
            -     * Additional answer-skipped reasons. This provides the reason for ignored
            -     * cases. If nothing is skipped, this field is not set.
            +     * Output only. Answer completed timestamp.
                  * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return A list containing the enum numeric values on the wire for answerSkippedReasons. */ - public java.util.List getAnswerSkippedReasonsValueList() { - answerSkippedReasons_.makeImmutable(); - return answerSkippedReasons_; + public Builder clearCompleteTime() { + bitField0_ = (bitField0_ & ~0x00002000); + completeTime_ = null; + if (completeTimeBuilder_ != null) { + completeTimeBuilder_.dispose(); + completeTimeBuilder_ = null; + } + onChanged(); + return this; } /** * * *
            -     * Additional answer-skipped reasons. This provides the reason for ignored
            -     * cases. If nothing is skipped, this field is not set.
            +     * Output only. Answer completed timestamp.
                  * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of answerSkippedReasons at the given index. */ - public int getAnswerSkippedReasonsValue(int index) { - return answerSkippedReasons_.getInt(index); + public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return internalGetCompleteTimeFieldBuilder().getBuilder(); } /** * * *
            -     * Additional answer-skipped reasons. This provides the reason for ignored
            -     * cases. If nothing is skipped, this field is not set.
            +     * Output only. Answer completed timestamp.
                  * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for answerSkippedReasons to set. - * @return This builder for chaining. */ - public Builder setAnswerSkippedReasonsValue(int index, int value) { - ensureAnswerSkippedReasonsIsMutable(); - answerSkippedReasons_.setInt(index, value); - onChanged(); - return this; + public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { + if (completeTimeBuilder_ != null) { + return completeTimeBuilder_.getMessageOrBuilder(); + } else { + return completeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : completeTime_; + } } /** * * *
            -     * Additional answer-skipped reasons. This provides the reason for ignored
            -     * cases. If nothing is skipped, this field is not set.
            +     * Output only. Answer completed timestamp.
                  * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The enum numeric value on the wire for answerSkippedReasons to add. - * @return This builder for chaining. */ - public Builder addAnswerSkippedReasonsValue(int value) { - ensureAnswerSkippedReasonsIsMutable(); - answerSkippedReasons_.addInt(value); - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCompleteTimeFieldBuilder() { + if (completeTimeBuilder_ == null) { + completeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCompleteTime(), getParentForChildren(), isClean()); + completeTime_ = null; + } + return completeTimeBuilder_; + } + + private java.util.List safetyRatings_ = + java.util.Collections.emptyList(); + + private void ensureSafetyRatingsIsMutable() { + if (!((bitField0_ & 0x00004000) != 0)) { + safetyRatings_ = + new java.util.ArrayList( + safetyRatings_); + bitField0_ |= 0x00004000; + } } + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SafetyRating, + com.google.cloud.discoveryengine.v1beta.SafetyRating.Builder, + com.google.cloud.discoveryengine.v1beta.SafetyRatingOrBuilder> + safetyRatingsBuilder_; + /** * * *
            -     * Additional answer-skipped reasons. This provides the reason for ignored
            -     * cases. If nothing is skipped, this field is not set.
            +     * Optional. Safety ratings.
                  * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason answer_skipped_reasons = 11; + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param values The enum numeric values on the wire for answerSkippedReasons to add. - * @return This builder for chaining. */ - public Builder addAllAnswerSkippedReasonsValue(java.lang.Iterable values) { - ensureAnswerSkippedReasonsIsMutable(); - for (int value : values) { - answerSkippedReasons_.addInt(value); + public java.util.List + getSafetyRatingsList() { + if (safetyRatingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(safetyRatings_); + } else { + return safetyRatingsBuilder_.getMessageList(); } - onChanged(); - return this; } - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** * * *
            -     * Output only. Answer creation timestamp.
            +     * Optional. Safety ratings.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the createTime field is set. */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000200) != 0); + public int getSafetyRatingsCount() { + if (safetyRatingsBuilder_ == null) { + return safetyRatings_.size(); + } else { + return safetyRatingsBuilder_.getCount(); + } } /** * * *
            -     * Output only. Answer creation timestamp.
            +     * Optional. Safety ratings.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The createTime. */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + public com.google.cloud.discoveryengine.v1beta.SafetyRating getSafetyRatings(int index) { + if (safetyRatingsBuilder_ == null) { + return safetyRatings_.get(index); } else { - return createTimeBuilder_.getMessage(); + return safetyRatingsBuilder_.getMessage(index); } } @@ -27160,24 +33855,25 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
            -     * Output only. Answer creation timestamp.
            +     * Optional. Safety ratings.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { + public Builder setSafetyRatings( + int index, com.google.cloud.discoveryengine.v1beta.SafetyRating value) { + if (safetyRatingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - createTime_ = value; + ensureSafetyRatingsIsMutable(); + safetyRatings_.set(index, value); + onChanged(); } else { - createTimeBuilder_.setMessage(value); + safetyRatingsBuilder_.setMessage(index, value); } - bitField0_ |= 0x00000200; - onChanged(); return this; } @@ -27185,21 +33881,22 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
            -     * Output only. Answer creation timestamp.
            +     * Optional. Safety ratings.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); + public Builder setSafetyRatings( + int index, com.google.cloud.discoveryengine.v1beta.SafetyRating.Builder builderForValue) { + if (safetyRatingsBuilder_ == null) { + ensureSafetyRatingsIsMutable(); + safetyRatings_.set(index, builderForValue.build()); + onChanged(); } else { - createTimeBuilder_.setMessage(builderForValue.build()); + safetyRatingsBuilder_.setMessage(index, builderForValue.build()); } - bitField0_ |= 0x00000200; - onChanged(); return this; } @@ -27207,28 +33904,23 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
            -     * Output only. Answer creation timestamp.
            +     * Optional. Safety ratings.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; + public Builder addSafetyRatings(com.google.cloud.discoveryengine.v1beta.SafetyRating value) { + if (safetyRatingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - } else { - createTimeBuilder_.mergeFrom(value); - } - if (createTime_ != null) { - bitField0_ |= 0x00000200; + ensureSafetyRatingsIsMutable(); + safetyRatings_.add(value); onChanged(); + } else { + safetyRatingsBuilder_.addMessage(value); } return this; } @@ -27237,21 +33929,25 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
            -     * Output only. Answer creation timestamp.
            +     * Optional. Safety ratings.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000200); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public Builder addSafetyRatings( + int index, com.google.cloud.discoveryengine.v1beta.SafetyRating value) { + if (safetyRatingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSafetyRatingsIsMutable(); + safetyRatings_.add(index, value); + onChanged(); + } else { + safetyRatingsBuilder_.addMessage(index, value); } - onChanged(); return this; } @@ -27259,137 +33955,112 @@ public Builder clearCreateTime() { * * *
            -     * Output only. Answer creation timestamp.
            -     * 
            - * - * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return internalGetCreateTimeFieldBuilder().getBuilder(); - } - - /** - * - * - *
            -     * Output only. Answer creation timestamp.
            +     * Optional. Safety ratings.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); + public Builder addSafetyRatings( + com.google.cloud.discoveryengine.v1beta.SafetyRating.Builder builderForValue) { + if (safetyRatingsBuilder_ == null) { + ensureSafetyRatingsIsMutable(); + safetyRatings_.add(builderForValue.build()); + onChanged(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + safetyRatingsBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
            -     * Output only. Answer creation timestamp.
            +     * Optional. Safety ratings.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; + public Builder addSafetyRatings( + int index, com.google.cloud.discoveryengine.v1beta.SafetyRating.Builder builderForValue) { + if (safetyRatingsBuilder_ == null) { + ensureSafetyRatingsIsMutable(); + safetyRatings_.add(index, builderForValue.build()); + onChanged(); + } else { + safetyRatingsBuilder_.addMessage(index, builderForValue.build()); } - return createTimeBuilder_; + return this; } - private com.google.protobuf.Timestamp completeTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - completeTimeBuilder_; - /** * * *
            -     * Output only. Answer completed timestamp.
            +     * Optional. Safety ratings.
                  * 
            * * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the completeTime field is set. */ - public boolean hasCompleteTime() { - return ((bitField0_ & 0x00000400) != 0); + public Builder addAllSafetyRatings( + java.lang.Iterable values) { + if (safetyRatingsBuilder_ == null) { + ensureSafetyRatingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, safetyRatings_); + onChanged(); + } else { + safetyRatingsBuilder_.addAllMessages(values); + } + return this; } /** * * *
            -     * Output only. Answer completed timestamp.
            +     * Optional. Safety ratings.
                  * 
            * * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The completeTime. */ - public com.google.protobuf.Timestamp getCompleteTime() { - if (completeTimeBuilder_ == null) { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; + public Builder clearSafetyRatings() { + if (safetyRatingsBuilder_ == null) { + safetyRatings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); } else { - return completeTimeBuilder_.getMessage(); + safetyRatingsBuilder_.clear(); } + return this; } /** * * *
            -     * Output only. Answer completed timestamp.
            +     * Optional. Safety ratings.
                  * 
            * * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCompleteTime(com.google.protobuf.Timestamp value) { - if (completeTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - completeTime_ = value; + public Builder removeSafetyRatings(int index) { + if (safetyRatingsBuilder_ == null) { + ensureSafetyRatingsIsMutable(); + safetyRatings_.remove(index); + onChanged(); } else { - completeTimeBuilder_.setMessage(value); + safetyRatingsBuilder_.remove(index); } - bitField0_ |= 0x00000400; - onChanged(); return this; } @@ -27397,140 +34068,126 @@ public Builder setCompleteTime(com.google.protobuf.Timestamp value) { * * *
            -     * Output only. Answer completed timestamp.
            +     * Optional. Safety ratings.
                  * 
            * * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCompleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (completeTimeBuilder_ == null) { - completeTime_ = builderForValue.build(); - } else { - completeTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.SafetyRating.Builder getSafetyRatingsBuilder( + int index) { + return internalGetSafetyRatingsFieldBuilder().getBuilder(index); } /** * * *
            -     * Output only. Answer completed timestamp.
            +     * Optional. Safety ratings.
                  * 
            * * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeCompleteTime(com.google.protobuf.Timestamp value) { - if (completeTimeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && completeTime_ != null - && completeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCompleteTimeBuilder().mergeFrom(value); - } else { - completeTime_ = value; - } + public com.google.cloud.discoveryengine.v1beta.SafetyRatingOrBuilder getSafetyRatingsOrBuilder( + int index) { + if (safetyRatingsBuilder_ == null) { + return safetyRatings_.get(index); } else { - completeTimeBuilder_.mergeFrom(value); - } - if (completeTime_ != null) { - bitField0_ |= 0x00000400; - onChanged(); + return safetyRatingsBuilder_.getMessageOrBuilder(index); } - return this; } /** * * *
            -     * Output only. Answer completed timestamp.
            +     * Optional. Safety ratings.
                  * 
            * * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearCompleteTime() { - bitField0_ = (bitField0_ & ~0x00000400); - completeTime_ = null; - if (completeTimeBuilder_ != null) { - completeTimeBuilder_.dispose(); - completeTimeBuilder_ = null; + public java.util.List + getSafetyRatingsOrBuilderList() { + if (safetyRatingsBuilder_ != null) { + return safetyRatingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(safetyRatings_); } - onChanged(); - return this; } /** * * *
            -     * Output only. Answer completed timestamp.
            +     * Optional. Safety ratings.
                  * 
            * * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.Timestamp.Builder getCompleteTimeBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return internalGetCompleteTimeFieldBuilder().getBuilder(); + public com.google.cloud.discoveryengine.v1beta.SafetyRating.Builder addSafetyRatingsBuilder() { + return internalGetSafetyRatingsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1beta.SafetyRating.getDefaultInstance()); } /** * * *
            -     * Output only. Answer completed timestamp.
            +     * Optional. Safety ratings.
                  * 
            * * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder() { - if (completeTimeBuilder_ != null) { - return completeTimeBuilder_.getMessageOrBuilder(); - } else { - return completeTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : completeTime_; - } + public com.google.cloud.discoveryengine.v1beta.SafetyRating.Builder addSafetyRatingsBuilder( + int index) { + return internalGetSafetyRatingsFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1beta.SafetyRating.getDefaultInstance()); } /** * * *
            -     * Output only. Answer completed timestamp.
            +     * Optional. Safety ratings.
                  * 
            * * - * .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetCompleteTimeFieldBuilder() { - if (completeTimeBuilder_ == null) { - completeTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCompleteTime(), getParentForChildren(), isClean()); - completeTime_ = null; - } - return completeTimeBuilder_; + public java.util.List + getSafetyRatingsBuilderList() { + return internalGetSafetyRatingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SafetyRating, + com.google.cloud.discoveryengine.v1beta.SafetyRating.Builder, + com.google.cloud.discoveryengine.v1beta.SafetyRatingOrBuilder> + internalGetSafetyRatingsFieldBuilder() { + if (safetyRatingsBuilder_ == null) { + safetyRatingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SafetyRating, + com.google.cloud.discoveryengine.v1beta.SafetyRating.Builder, + com.google.cloud.discoveryengine.v1beta.SafetyRatingOrBuilder>( + safetyRatings_, + ((bitField0_ & 0x00004000) != 0), + getParentForChildren(), + isClean()); + safetyRatings_ = null; + } + return safetyRatingsBuilder_; } // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Answer) diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerGenerationSpec.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerGenerationSpec.java new file mode 100644 index 000000000000..051d5b2b8b49 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerGenerationSpec.java @@ -0,0 +1,2426 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/serving_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * The specification for answer generation.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AnswerGenerationSpec} + */ +@com.google.protobuf.Generated +public final class AnswerGenerationSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerGenerationSpec) + AnswerGenerationSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AnswerGenerationSpec"); + } + + // Use AnswerGenerationSpec.newBuilder() to construct. + private AnswerGenerationSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AnswerGenerationSpec() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.Builder.class); + } + + public interface UserDefinedClassifierSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. Whether or not to enable and include user defined classifier.
            +     * 
            + * + * bool enable_user_defined_classifier = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableUserDefinedClassifier. + */ + boolean getEnableUserDefinedClassifier(); + + /** + * + * + *
            +     * Optional. The preamble to be used for the user defined classifier.
            +     * 
            + * + * string preamble = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preamble. + */ + java.lang.String getPreamble(); + + /** + * + * + *
            +     * Optional. The preamble to be used for the user defined classifier.
            +     * 
            + * + * string preamble = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for preamble. + */ + com.google.protobuf.ByteString getPreambleBytes(); + + /** + * + * + *
            +     * Optional. The model id to be used for the user defined classifier.
            +     * 
            + * + * string model_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelId. + */ + java.lang.String getModelId(); + + /** + * + * + *
            +     * Optional. The model id to be used for the user defined classifier.
            +     * 
            + * + * string model_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelId. + */ + com.google.protobuf.ByteString getModelIdBytes(); + + /** + * + * + *
            +     * Optional. The task marker to be used for the user defined classifier.
            +     * 
            + * + * string task_marker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The taskMarker. + */ + java.lang.String getTaskMarker(); + + /** + * + * + *
            +     * Optional. The task marker to be used for the user defined classifier.
            +     * 
            + * + * string task_marker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for taskMarker. + */ + com.google.protobuf.ByteString getTaskMarkerBytes(); + + /** + * + * + *
            +     * Optional. The top-p value to be used for the user defined classifier.
            +     * 
            + * + * double top_p = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The topP. + */ + double getTopP(); + + /** + * + * + *
            +     * Optional. The top-k value to be used for the user defined classifier.
            +     * 
            + * + * int64 top_k = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The topK. + */ + long getTopK(); + + /** + * + * + *
            +     * Optional. The temperature value to be used for the user defined
            +     * classifier.
            +     * 
            + * + * double temperature = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The temperature. + */ + double getTemperature(); + + /** + * + * + *
            +     * Optional. The seed value to be used for the user defined classifier.
            +     * 
            + * + * int32 seed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The seed. + */ + int getSeed(); + } + + /** + * + * + *
            +   * The specification for user defined classifier.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec} + */ + public static final class UserDefinedClassifierSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec) + UserDefinedClassifierSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UserDefinedClassifierSpec"); + } + + // Use UserDefinedClassifierSpec.newBuilder() to construct. + private UserDefinedClassifierSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UserDefinedClassifierSpec() { + preamble_ = ""; + modelId_ = ""; + taskMarker_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_UserDefinedClassifierSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_UserDefinedClassifierSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + .class, + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + .Builder.class); + } + + public static final int ENABLE_USER_DEFINED_CLASSIFIER_FIELD_NUMBER = 1; + private boolean enableUserDefinedClassifier_ = false; + + /** + * + * + *
            +     * Optional. Whether or not to enable and include user defined classifier.
            +     * 
            + * + * bool enable_user_defined_classifier = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableUserDefinedClassifier. + */ + @java.lang.Override + public boolean getEnableUserDefinedClassifier() { + return enableUserDefinedClassifier_; + } + + public static final int PREAMBLE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object preamble_ = ""; + + /** + * + * + *
            +     * Optional. The preamble to be used for the user defined classifier.
            +     * 
            + * + * string preamble = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preamble. + */ + @java.lang.Override + public java.lang.String getPreamble() { + java.lang.Object ref = preamble_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + preamble_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. The preamble to be used for the user defined classifier.
            +     * 
            + * + * string preamble = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for preamble. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreambleBytes() { + java.lang.Object ref = preamble_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + preamble_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelId_ = ""; + + /** + * + * + *
            +     * Optional. The model id to be used for the user defined classifier.
            +     * 
            + * + * string model_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +     * Optional. The model id to be used for the user defined classifier.
            +     * 
            + * + * string model_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 TASK_MARKER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object taskMarker_ = ""; + + /** + * + * + *
            +     * Optional. The task marker to be used for the user defined classifier.
            +     * 
            + * + * string task_marker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The taskMarker. + */ + @java.lang.Override + public java.lang.String getTaskMarker() { + java.lang.Object ref = taskMarker_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskMarker_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. The task marker to be used for the user defined classifier.
            +     * 
            + * + * string task_marker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for taskMarker. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTaskMarkerBytes() { + java.lang.Object ref = taskMarker_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + taskMarker_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOP_P_FIELD_NUMBER = 5; + private double topP_ = 0D; + + /** + * + * + *
            +     * Optional. The top-p value to be used for the user defined classifier.
            +     * 
            + * + * double top_p = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The topP. + */ + @java.lang.Override + public double getTopP() { + return topP_; + } + + public static final int TOP_K_FIELD_NUMBER = 6; + private long topK_ = 0L; + + /** + * + * + *
            +     * Optional. The top-k value to be used for the user defined classifier.
            +     * 
            + * + * int64 top_k = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The topK. + */ + @java.lang.Override + public long getTopK() { + return topK_; + } + + public static final int TEMPERATURE_FIELD_NUMBER = 7; + private double temperature_ = 0D; + + /** + * + * + *
            +     * Optional. The temperature value to be used for the user defined
            +     * classifier.
            +     * 
            + * + * double temperature = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + + public static final int SEED_FIELD_NUMBER = 8; + private int seed_ = 0; + + /** + * + * + *
            +     * Optional. The seed value to be used for the user defined classifier.
            +     * 
            + * + * int32 seed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The seed. + */ + @java.lang.Override + public int getSeed() { + return seed_; + } + + 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 (enableUserDefinedClassifier_ != false) { + output.writeBool(1, enableUserDefinedClassifier_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(preamble_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, preamble_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, modelId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskMarker_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, taskMarker_); + } + if (java.lang.Double.doubleToRawLongBits(topP_) != 0) { + output.writeDouble(5, topP_); + } + if (topK_ != 0L) { + output.writeInt64(6, topK_); + } + if (java.lang.Double.doubleToRawLongBits(temperature_) != 0) { + output.writeDouble(7, temperature_); + } + if (seed_ != 0) { + output.writeInt32(8, seed_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableUserDefinedClassifier_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableUserDefinedClassifier_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(preamble_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, preamble_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, modelId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskMarker_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, taskMarker_); + } + if (java.lang.Double.doubleToRawLongBits(topP_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, topP_); + } + if (topK_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, topK_); + } + if (java.lang.Double.doubleToRawLongBits(temperature_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(7, temperature_); + } + if (seed_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, seed_); + } + 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.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec other = + (com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec) + obj; + + if (getEnableUserDefinedClassifier() != other.getEnableUserDefinedClassifier()) return false; + if (!getPreamble().equals(other.getPreamble())) return false; + if (!getModelId().equals(other.getModelId())) return false; + if (!getTaskMarker().equals(other.getTaskMarker())) return false; + if (java.lang.Double.doubleToLongBits(getTopP()) + != java.lang.Double.doubleToLongBits(other.getTopP())) return false; + if (getTopK() != other.getTopK()) return false; + if (java.lang.Double.doubleToLongBits(getTemperature()) + != java.lang.Double.doubleToLongBits(other.getTemperature())) return false; + if (getSeed() != other.getSeed()) 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) + ENABLE_USER_DEFINED_CLASSIFIER_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableUserDefinedClassifier()); + hash = (37 * hash) + PREAMBLE_FIELD_NUMBER; + hash = (53 * hash) + getPreamble().hashCode(); + hash = (37 * hash) + MODEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getModelId().hashCode(); + hash = (37 * hash) + TASK_MARKER_FIELD_NUMBER; + hash = (53 * hash) + getTaskMarker().hashCode(); + hash = (37 * hash) + TOP_P_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong(java.lang.Double.doubleToLongBits(getTopP())); + hash = (37 * hash) + TOP_K_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTopK()); + hash = (37 * hash) + TEMPERATURE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getTemperature())); + hash = (37 * hash) + SEED_FIELD_NUMBER; + hash = (53 * hash) + getSeed(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec + 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.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec + parseFrom( + 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.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * The specification for user defined classifier.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec) + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_UserDefinedClassifierSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_UserDefinedClassifierSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableUserDefinedClassifier_ = false; + preamble_ = ""; + modelId_ = ""; + taskMarker_ = ""; + topP_ = 0D; + topK_ = 0L; + temperature_ = 0D; + seed_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_UserDefinedClassifierSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + build() { + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + result = + new com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableUserDefinedClassifier_ = enableUserDefinedClassifier_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.preamble_ = preamble_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.modelId_ = modelId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.taskMarker_ = taskMarker_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.topP_ = topP_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.topK_ = topK_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.temperature_ = temperature_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.seed_ = seed_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec.getDefaultInstance()) return this; + if (other.getEnableUserDefinedClassifier() != false) { + setEnableUserDefinedClassifier(other.getEnableUserDefinedClassifier()); + } + if (!other.getPreamble().isEmpty()) { + preamble_ = other.preamble_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getModelId().isEmpty()) { + modelId_ = other.modelId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTaskMarker().isEmpty()) { + taskMarker_ = other.taskMarker_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (java.lang.Double.doubleToRawLongBits(other.getTopP()) != 0) { + setTopP(other.getTopP()); + } + if (other.getTopK() != 0L) { + setTopK(other.getTopK()); + } + if (java.lang.Double.doubleToRawLongBits(other.getTemperature()) != 0) { + setTemperature(other.getTemperature()); + } + if (other.getSeed() != 0) { + setSeed(other.getSeed()); + } + 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: + { + enableUserDefinedClassifier_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + preamble_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + modelId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + taskMarker_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 41: + { + topP_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 41 + case 48: + { + topK_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 57: + { + temperature_ = input.readDouble(); + bitField0_ |= 0x00000040; + break; + } // case 57 + case 64: + { + seed_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enableUserDefinedClassifier_; + + /** + * + * + *
            +       * Optional. Whether or not to enable and include user defined classifier.
            +       * 
            + * + * bool enable_user_defined_classifier = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableUserDefinedClassifier. + */ + @java.lang.Override + public boolean getEnableUserDefinedClassifier() { + return enableUserDefinedClassifier_; + } + + /** + * + * + *
            +       * Optional. Whether or not to enable and include user defined classifier.
            +       * 
            + * + * bool enable_user_defined_classifier = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableUserDefinedClassifier to set. + * @return This builder for chaining. + */ + public Builder setEnableUserDefinedClassifier(boolean value) { + + enableUserDefinedClassifier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Whether or not to enable and include user defined classifier.
            +       * 
            + * + * bool enable_user_defined_classifier = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableUserDefinedClassifier() { + bitField0_ = (bitField0_ & ~0x00000001); + enableUserDefinedClassifier_ = false; + onChanged(); + return this; + } + + private java.lang.Object preamble_ = ""; + + /** + * + * + *
            +       * Optional. The preamble to be used for the user defined classifier.
            +       * 
            + * + * string preamble = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preamble. + */ + public java.lang.String getPreamble() { + java.lang.Object ref = preamble_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + preamble_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. The preamble to be used for the user defined classifier.
            +       * 
            + * + * string preamble = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for preamble. + */ + public com.google.protobuf.ByteString getPreambleBytes() { + java.lang.Object ref = preamble_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + preamble_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. The preamble to be used for the user defined classifier.
            +       * 
            + * + * string preamble = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The preamble to set. + * @return This builder for chaining. + */ + public Builder setPreamble(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + preamble_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The preamble to be used for the user defined classifier.
            +       * 
            + * + * string preamble = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPreamble() { + preamble_ = getDefaultInstance().getPreamble(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The preamble to be used for the user defined classifier.
            +       * 
            + * + * string preamble = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for preamble to set. + * @return This builder for chaining. + */ + public Builder setPreambleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + preamble_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object modelId_ = ""; + + /** + * + * + *
            +       * Optional. The model id to be used for the user defined classifier.
            +       * 
            + * + * string model_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +       * Optional. The model id to be used for the user defined classifier.
            +       * 
            + * + * string model_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +       * Optional. The model id to be used for the user defined classifier.
            +       * 
            + * + * string model_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The model id to be used for the user defined classifier.
            +       * 
            + * + * string model_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearModelId() { + modelId_ = getDefaultInstance().getModelId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The model id to be used for the user defined classifier.
            +       * 
            + * + * string model_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object taskMarker_ = ""; + + /** + * + * + *
            +       * Optional. The task marker to be used for the user defined classifier.
            +       * 
            + * + * string task_marker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The taskMarker. + */ + public java.lang.String getTaskMarker() { + java.lang.Object ref = taskMarker_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + taskMarker_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. The task marker to be used for the user defined classifier.
            +       * 
            + * + * string task_marker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for taskMarker. + */ + public com.google.protobuf.ByteString getTaskMarkerBytes() { + java.lang.Object ref = taskMarker_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + taskMarker_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. The task marker to be used for the user defined classifier.
            +       * 
            + * + * string task_marker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The taskMarker to set. + * @return This builder for chaining. + */ + public Builder setTaskMarker(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + taskMarker_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The task marker to be used for the user defined classifier.
            +       * 
            + * + * string task_marker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTaskMarker() { + taskMarker_ = getDefaultInstance().getTaskMarker(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The task marker to be used for the user defined classifier.
            +       * 
            + * + * string task_marker = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for taskMarker to set. + * @return This builder for chaining. + */ + public Builder setTaskMarkerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + taskMarker_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private double topP_; + + /** + * + * + *
            +       * Optional. The top-p value to be used for the user defined classifier.
            +       * 
            + * + * double top_p = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The topP. + */ + @java.lang.Override + public double getTopP() { + return topP_; + } + + /** + * + * + *
            +       * Optional. The top-p value to be used for the user defined classifier.
            +       * 
            + * + * double top_p = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The topP to set. + * @return This builder for chaining. + */ + public Builder setTopP(double value) { + + topP_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The top-p value to be used for the user defined classifier.
            +       * 
            + * + * double top_p = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTopP() { + bitField0_ = (bitField0_ & ~0x00000010); + topP_ = 0D; + onChanged(); + return this; + } + + private long topK_; + + /** + * + * + *
            +       * Optional. The top-k value to be used for the user defined classifier.
            +       * 
            + * + * int64 top_k = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The topK. + */ + @java.lang.Override + public long getTopK() { + return topK_; + } + + /** + * + * + *
            +       * Optional. The top-k value to be used for the user defined classifier.
            +       * 
            + * + * int64 top_k = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The topK to set. + * @return This builder for chaining. + */ + public Builder setTopK(long value) { + + topK_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The top-k value to be used for the user defined classifier.
            +       * 
            + * + * int64 top_k = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTopK() { + bitField0_ = (bitField0_ & ~0x00000020); + topK_ = 0L; + onChanged(); + return this; + } + + private double temperature_; + + /** + * + * + *
            +       * Optional. The temperature value to be used for the user defined
            +       * classifier.
            +       * 
            + * + * double temperature = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The temperature. + */ + @java.lang.Override + public double getTemperature() { + return temperature_; + } + + /** + * + * + *
            +       * Optional. The temperature value to be used for the user defined
            +       * classifier.
            +       * 
            + * + * double temperature = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The temperature to set. + * @return This builder for chaining. + */ + public Builder setTemperature(double value) { + + temperature_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The temperature value to be used for the user defined
            +       * classifier.
            +       * 
            + * + * double temperature = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTemperature() { + bitField0_ = (bitField0_ & ~0x00000040); + temperature_ = 0D; + onChanged(); + return this; + } + + private int seed_; + + /** + * + * + *
            +       * Optional. The seed value to be used for the user defined classifier.
            +       * 
            + * + * int32 seed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The seed. + */ + @java.lang.Override + public int getSeed() { + return seed_; + } + + /** + * + * + *
            +       * Optional. The seed value to be used for the user defined classifier.
            +       * 
            + * + * int32 seed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The seed to set. + * @return This builder for chaining. + */ + public Builder setSeed(int value) { + + seed_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The seed value to be used for the user defined classifier.
            +       * 
            + * + * int32 seed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSeed() { + bitField0_ = (bitField0_ & ~0x00000080); + seed_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec) + private static final com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserDefinedClassifierSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int USER_DEFINED_CLASSIFIER_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + userDefinedClassifierSpec_; + + /** + * + * + *
            +   * Optional. The specification for user specified classifier spec.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userDefinedClassifierSpec field is set. + */ + @java.lang.Override + public boolean hasUserDefinedClassifierSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. The specification for user specified classifier spec.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userDefinedClassifierSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + getUserDefinedClassifierSpec() { + return userDefinedClassifierSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + .getDefaultInstance() + : userDefinedClassifierSpec_; + } + + /** + * + * + *
            +   * Optional. The specification for user specified classifier spec.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpecOrBuilder + getUserDefinedClassifierSpecOrBuilder() { + return userDefinedClassifierSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + .getDefaultInstance() + : userDefinedClassifierSpec_; + } + + 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, getUserDefinedClassifierSpec()); + } + 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, getUserDefinedClassifierSpec()); + } + 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.v1beta.AnswerGenerationSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec other = + (com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec) obj; + + if (hasUserDefinedClassifierSpec() != other.hasUserDefinedClassifierSpec()) return false; + if (hasUserDefinedClassifierSpec()) { + if (!getUserDefinedClassifierSpec().equals(other.getUserDefinedClassifierSpec())) + 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 (hasUserDefinedClassifierSpec()) { + hash = (37 * hash) + USER_DEFINED_CLASSIFIER_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getUserDefinedClassifierSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec 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.v1beta.AnswerGenerationSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec parseFrom( + 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.v1beta.AnswerGenerationSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * The specification for answer generation.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AnswerGenerationSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerGenerationSpec) + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUserDefinedClassifierSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userDefinedClassifierSpec_ = null; + if (userDefinedClassifierSpecBuilder_ != null) { + userDefinedClassifierSpecBuilder_.dispose(); + userDefinedClassifierSpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ServingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec build() { + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec result = + new com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userDefinedClassifierSpec_ = + userDefinedClassifierSpecBuilder_ == null + ? userDefinedClassifierSpec_ + : userDefinedClassifierSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.getDefaultInstance()) + return this; + if (other.hasUserDefinedClassifierSpec()) { + mergeUserDefinedClassifierSpec(other.getUserDefinedClassifierSpec()); + } + 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( + internalGetUserDefinedClassifierSpecFieldBuilder().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.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + userDefinedClassifierSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec, + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpecOrBuilder> + userDefinedClassifierSpecBuilder_; + + /** + * + * + *
            +     * Optional. The specification for user specified classifier spec.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userDefinedClassifierSpec field is set. + */ + public boolean hasUserDefinedClassifierSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. The specification for user specified classifier spec.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userDefinedClassifierSpec. + */ + public com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + getUserDefinedClassifierSpec() { + if (userDefinedClassifierSpecBuilder_ == null) { + return userDefinedClassifierSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + .getDefaultInstance() + : userDefinedClassifierSpec_; + } else { + return userDefinedClassifierSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. The specification for user specified classifier spec.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserDefinedClassifierSpec( + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + value) { + if (userDefinedClassifierSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userDefinedClassifierSpec_ = value; + } else { + userDefinedClassifierSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The specification for user specified classifier spec.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserDefinedClassifierSpec( + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + .Builder + builderForValue) { + if (userDefinedClassifierSpecBuilder_ == null) { + userDefinedClassifierSpec_ = builderForValue.build(); + } else { + userDefinedClassifierSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The specification for user specified classifier spec.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUserDefinedClassifierSpec( + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + value) { + if (userDefinedClassifierSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && userDefinedClassifierSpec_ != null + && userDefinedClassifierSpec_ + != com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec.getDefaultInstance()) { + getUserDefinedClassifierSpecBuilder().mergeFrom(value); + } else { + userDefinedClassifierSpec_ = value; + } + } else { + userDefinedClassifierSpecBuilder_.mergeFrom(value); + } + if (userDefinedClassifierSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The specification for user specified classifier spec.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUserDefinedClassifierSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + userDefinedClassifierSpec_ = null; + if (userDefinedClassifierSpecBuilder_ != null) { + userDefinedClassifierSpecBuilder_.dispose(); + userDefinedClassifierSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The specification for user specified classifier spec.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + .Builder + getUserDefinedClassifierSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUserDefinedClassifierSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The specification for user specified classifier spec.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpecOrBuilder + getUserDefinedClassifierSpecOrBuilder() { + if (userDefinedClassifierSpecBuilder_ != null) { + return userDefinedClassifierSpecBuilder_.getMessageOrBuilder(); + } else { + return userDefinedClassifierSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + .getDefaultInstance() + : userDefinedClassifierSpec_; + } + } + + /** + * + * + *
            +     * Optional. The specification for user specified classifier spec.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec, + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpecOrBuilder> + internalGetUserDefinedClassifierSpecFieldBuilder() { + if (userDefinedClassifierSpecBuilder_ == null) { + userDefinedClassifierSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec, + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .UserDefinedClassifierSpecOrBuilder>( + getUserDefinedClassifierSpec(), getParentForChildren(), isClean()); + userDefinedClassifierSpec_ = null; + } + return userDefinedClassifierSpecBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerGenerationSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerGenerationSpec) + private static final com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnswerGenerationSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AnswerGenerationSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerGenerationSpecOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerGenerationSpecOrBuilder.java new file mode 100644 index 000000000000..fe3b83b45eb2 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerGenerationSpecOrBuilder.java @@ -0,0 +1,73 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/serving_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface AnswerGenerationSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerGenerationSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. The specification for user specified classifier spec.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userDefinedClassifierSpec field is set. + */ + boolean hasUserDefinedClassifierSpec(); + + /** + * + * + *
            +   * Optional. The specification for user specified classifier spec.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userDefinedClassifierSpec. + */ + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec + getUserDefinedClassifierSpec(); + + /** + * + * + *
            +   * Optional. The specification for user specified classifier spec.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpec user_defined_classifier_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.UserDefinedClassifierSpecOrBuilder + getUserDefinedClassifierSpecOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerOrBuilder.java index 32f94e0c6c08..bc816619d5f5 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerOrBuilder.java @@ -106,6 +106,34 @@ public interface AnswerOrBuilder */ com.google.protobuf.ByteString getAnswerTextBytes(); + /** + * + * + *
            +   * A score in the range of [0, 1] describing how grounded the answer is by the
            +   * reference chunks.
            +   * 
            + * + * optional double grounding_score = 12; + * + * @return Whether the groundingScore field is set. + */ + boolean hasGroundingScore(); + + /** + * + * + *
            +   * A score in the range of [0, 1] describing how grounded the answer is by the
            +   * reference chunks.
            +   * 
            + * + * optional double grounding_score = 12; + * + * @return The groundingScore. + */ + double getGroundingScore(); + /** * * @@ -162,6 +190,74 @@ public interface AnswerOrBuilder */ com.google.cloud.discoveryengine.v1beta.Answer.CitationOrBuilder getCitationsOrBuilder(int index); + /** + * + * + *
            +   * Optional. Grounding supports.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getGroundingSupportsList(); + + /** + * + * + *
            +   * Optional. Grounding supports.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupport getGroundingSupports(int index); + + /** + * + * + *
            +   * Optional. Grounding supports.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getGroundingSupportsCount(); + + /** + * + * + *
            +   * Optional. Grounding supports.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getGroundingSupportsOrBuilderList(); + + /** + * + * + *
            +   * Optional. Grounding supports.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.GroundingSupport grounding_supports = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Answer.GroundingSupportOrBuilder + getGroundingSupportsOrBuilder(int index); + /** * * @@ -219,6 +315,74 @@ public interface AnswerOrBuilder com.google.cloud.discoveryengine.v1beta.Answer.ReferenceOrBuilder getReferencesOrBuilder( int index); + /** + * + * + *
            +   * Output only. List of blob attachments in the answer.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getBlobAttachmentsList(); + + /** + * + * + *
            +   * Output only. List of blob attachments in the answer.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachment getBlobAttachments(int index); + + /** + * + * + *
            +   * Output only. List of blob attachments in the answer.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getBlobAttachmentsCount(); + + /** + * + * + *
            +   * Output only. List of blob attachments in the answer.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getBlobAttachmentsOrBuilderList(); + + /** + * + * + *
            +   * Output only. List of blob attachments in the answer.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Answer.BlobAttachment blob_attachments = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.Answer.BlobAttachmentOrBuilder + getBlobAttachmentsOrBuilder(int index); + /** * * @@ -539,4 +703,71 @@ com.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason getAnswerSkip *
            */ com.google.protobuf.TimestampOrBuilder getCompleteTimeOrBuilder(); + + /** + * + * + *
            +   * Optional. Safety ratings.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getSafetyRatingsList(); + + /** + * + * + *
            +   * Optional. Safety ratings.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.SafetyRating getSafetyRatings(int index); + + /** + * + * + *
            +   * Optional. Safety ratings.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSafetyRatingsCount(); + + /** + * + * + *
            +   * Optional. Safety ratings.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getSafetyRatingsOrBuilderList(); + + /** + * + * + *
            +   * Optional. Safety ratings.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SafetyRating safety_ratings = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.SafetyRatingOrBuilder getSafetyRatingsOrBuilder( + int index); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerProto.java index f9782fa342f6..4f28e9d107ea 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerProto.java @@ -52,6 +52,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_Answer_CitationSource_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_Answer_CitationSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Answer_GroundingSupport_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Answer_GroundingSupport_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -76,6 +80,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_StructuredDocumentInfo_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_StructuredDocumentInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_Blob_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_Blob_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -124,60 +136,80 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "0google/cloud/discoveryengine/v1beta/answer.proto\022#google.cloud.discoveryengine" + ".v1beta\032\037google/api/field_behavior.proto" - + "\032\031google/api/resource.proto\032\034google/prot" - + "obuf/struct.proto\032\037google/protobuf/timestamp.proto\"\255#\n" + + "\032\031google/api/resource.proto\0320google/clou" + + "d/discoveryengine/v1beta/safety.proto\032\034g" + + "oogle/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\273,\n" + "\006Answer\022\021\n" + "\004name\030\001 \001(\tB\003\340A\005\022@\n" + "\005state\030\002" + " \001(\01621.google.cloud.discoveryengine.v1beta.Answer.State\022\023\n" - + "\013answer_text\030\003 \001(\t\022G\n" + + "\013answer_text\030\003 \001(\t\022\034\n" + + "\017grounding_score\030\014 \001(\001H\000\210\001\001\022G\n" + "\tcitations\030\004 \003(\01324.google.clou" - + "d.discoveryengine.v1beta.Answer.Citation\022I\n\n" - + "references\030\005" - + " \003(\01325.google.cloud.discoveryengine.v1beta.Answer.Reference\022\031\n" + + "d.discoveryengine.v1beta.Answer.Citation\022]\n" + + "\022grounding_supports\030\r" + + " \003(\0132<.google.cl" + + "oud.discoveryengine.v1beta.Answer.GroundingSupportB\003\340A\001\022I\n\n" + + "references\030\005 \003(\01325.go" + + "ogle.cloud.discoveryengine.v1beta.Answer.Reference\022Y\n" + + "\020blob_attachments\030\017 \003(\0132:.g" + + "oogle.cloud.discoveryengine.v1beta.Answer.BlobAttachmentB\003\340A\003\022\031\n" + "\021related_questions\030\006 \003(\t\022?\n" + "\005steps\030\007 \003(\01320.google.cloud.discoveryengine.v1beta.Answer.Step\022d\n" + "\030query_understanding_info\030\n" + " \001(\0132B.google.cloud.discoveryengine.v1beta.Answer.QueryUnderstandingInfo\022_\n" - + "\026answer_skipped_reasons\030\013 \003(\0162?.google.cloud.dis" - + "coveryengine.v1beta.Answer.AnswerSkippedReason\0224\n" + + "\026answer_skipped_reasons\030\013" + + " \003(\0162?.google.cloud.discoveryengine.v1beta.Answer.AnswerSkippedReason\0224\n" + "\013create_time\030\010" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0226\n\r" - + "complete_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032\177\n" + + "complete_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022N\n" + + "\016safety_ratings\030\016" + + " \003(\01321.google.cloud.discoveryengine.v1beta.SafetyRatingB\003\340A\001\032\177\n" + "\010Citation\022\023\n" + "\013start_index\030\001 \001(\003\022\021\n" + "\tend_index\030\002 \001(\003\022K\n" - + "\007sources\030\003 \003(\0132:.google.cloud" - + ".discoveryengine.v1beta.Answer.CitationSource\032&\n" + + "\007sources\030\003" + + " \003(\0132:.google.cloud.discoveryengine.v1beta.Answer.CitationSource\032&\n" + "\016CitationSource\022\024\n" - + "\014reference_id\030\001 \001(\t\032\226\n\n" + + "\014reference_id\030\001 \001(\t\032\214\002\n" + + "\020GroundingSupport\022\030\n" + + "\013start_index\030\001 \001(\003B\003\340A\002\022\026\n" + + "\tend_index\030\002 \001(\003B\003\340A\002\022\034\n" + + "\017grounding_score\030\003 \001(\001H\000\210\001\001\022%\n" + + "\030grounding_check_required\030\004 \001(\010H\001\210\001\001\022P\n" + + "\007sources\030\005 \003(\0132:.google.cl" + + "oud.discoveryengine.v1beta.Answer.CitationSourceB\003\340A\001B\022\n" + + "\020_grounding_scoreB\033\n" + + "\031_grounding_check_required\032\211\013\n" + "\tReference\022t\n" - + "\032unstructured_document_info\030\001 \001(\0132N.google.cloud.discovery" - + "engine.v1beta.Answer.Reference.UnstructuredDocumentInfoH\000\022U\n\n" - + "chunk_info\030\002 \001(\0132?." - + "google.cloud.discoveryengine.v1beta.Answer.Reference.ChunkInfoH\000\022p\n" - + "\030structured_document_info\030\003 \001(\0132L.google.cloud.discov" - + "eryengine.v1beta.Answer.Reference.StructuredDocumentInfoH\000\032\205\003\n" + + "\032unstructured_document_info\030\001 \001(\0132N.googl" + + "e.cloud.discoveryengine.v1beta.Answer.Reference.UnstructuredDocumentInfoH\000\022U\n\n" + + "chunk_info\030\002 \001(\0132?.google.cloud.discoverye" + + "ngine.v1beta.Answer.Reference.ChunkInfoH\000\022p\n" + + "\030structured_document_info\030\003 \001(\0132L.go" + + "ogle.cloud.discoveryengine.v1beta.Answer.Reference.StructuredDocumentInfoH\000\032\254\003\n" + "\030UnstructuredDocumentInfo\022>\n" + "\010document\030\001 \001(\tB,\372A)\n" + "\'discoveryengine.googleapis.com/Document\022\013\n" + "\003uri\030\002 \001(\t\022\r\n" + "\005title\030\003 \001(\t\022s\n" - + "\016chunk_contents\030\004 \003(\0132[.google.cloud.discoveryengine.v1bet" - + "a.Answer.Reference.UnstructuredDocumentInfo.ChunkContent\022,\n" - + "\013struct_data\030\005 \001(\0132\027.google.protobuf.Struct\032j\n" + + "\016chunk_contents\030\004 \003(\0132[.google.cloud.disc" + + "overyengine.v1beta.Answer.Reference.UnstructuredDocumentInfo.ChunkContent\022,\n" + + "\013struct_data\030\005 \001(\0132\027.google.protobuf.Struct\032\220\001\n" + "\014ChunkContent\022\017\n" + "\007content\030\001 \001(\t\022\027\n" + "\017page_identifier\030\002 \001(\t\022\034\n" - + "\017relevance_score\030\003 \001(\002H\000\210\001\001B\022\n" - + "\020_relevance_score\032\255\003\n" + + "\017relevance_score\030\003 \001(\002H\000\210\001\001\022$\n" + + "\027blob_attachment_indexes\030\004 \003(\003B\003\340A\003B\022\n" + + "\020_relevance_score\032\323\003\n" + "\tChunkInfo\0228\n" + "\005chunk\030\001 \001(\tB)\372A&\n" + "$discoveryengine.googleapis.com/Chunk\022\017\n" + "\007content\030\002 \001(\t\022\034\n" + "\017relevance_score\030\003 \001(\002H\000\210\001\001\022k\n" - + "\021document_metadata\030\004 \001(\0132P.google.cloud.discoveryengine.v1beta.Answe" - + "r.Reference.ChunkInfo.DocumentMetadata\032\265\001\n" + + "\021document_metadata\030\004 \001(\0132P.google.cloud.discoveryeng" + + "ine.v1beta.Answer.Reference.ChunkInfo.DocumentMetadata\022$\n" + + "\027blob_attachment_indexes\030\005 \003(\003B\003\340A\003\032\265\001\n" + "\020DocumentMetadata\022>\n" + "\010document\030\001 \001(\tB,\372A)\n" + "\'discoveryengine.googleapis.com/Document\022\013\n" @@ -185,37 +217,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005title\030\003 \001(\t\022\027\n" + "\017page_identifier\030\004 \001(\t\022,\n" + "\013struct_data\030\005 \001(\0132\027.google.protobuf.StructB\022\n" - + "\020_relevance_score\032\206\001\n" + + "\020_relevance_score\032\254\001\n" + "\026StructuredDocumentInfo\022>\n" + "\010document\030\001 \001(\tB,\372A)\n" + "\'discoveryengine.googleapis.com/Document\022,\n" - + "\013struct_data\030\002 \001(\0132\027.google.protobuf.StructB\t\n" - + "\007content\032\330\010\n" + + "\013struct_data\030\002 \001(\0132\027.google.protobuf.Struct\022\022\n" + + "\005title\030\003 \001(\tB\003\340A\003\022\020\n" + + "\003uri\030\004 \001(\tB\003\340A\003B\t\n" + + "\007content\032\322\002\n" + + "\016BlobAttachment\022R\n" + + "\004data\030\001 \001(\0132?.go" + + "ogle.cloud.discoveryengine.v1beta.Answer.BlobAttachment.BlobB\003\340A\003\022i\n" + + "\020attribution_type\030\002 \001(\0162J.google.cloud.discoveryengi" + + "ne.v1beta.Answer.BlobAttachment.AttributionTypeB\003\340A\003\0321\n" + + "\004Blob\022\026\n" + + "\tmime_type\030\001 \001(\tB\003\340A\003\022\021\n" + + "\004data\030\002 \001(\014B\003\340A\003\"N\n" + + "\017AttributionType\022 \n" + + "\034ATTRIBUTION_TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006CORPUS\020\001\022\r\n" + + "\tGENERATED\020\002\032\330\010\n" + "\004Step\022E\n" + "\005state\030\001" + " \001(\01626.google.cloud.discoveryengine.v1beta.Answer.Step.State\022\023\n" + "\013description\030\002 \001(\t\022\017\n" + "\007thought\030\003 \001(\t\022H\n" - + "\007actions\030\004" - + " \003(\01327.google.cloud.discoveryengine.v1beta.Answer.Step.Action\032\314\006\n" + + "\007actions\030\004 \003(\01327" + + ".google.cloud.discoveryengine.v1beta.Answer.Step.Action\032\314\006\n" + "\006Action\022]\n\r" - + "search_action\030\002 \001(\0132D.google.cloud.discover" - + "yengine.v1beta.Answer.Step.Action.SearchActionH\000\022X\n" - + "\013observation\030\003 \001(\0132C.google.c" - + "loud.discoveryengine.v1beta.Answer.Step.Action.Observation\032\035\n" + + "search_action\030\002 \001(\0132D.google.cloud.discoveryengine" + + ".v1beta.Answer.Step.Action.SearchActionH\000\022X\n" + + "\013observation\030\003 \001(\0132C.google.cloud.di" + + "scoveryengine.v1beta.Answer.Step.Action.Observation\032\035\n" + "\014SearchAction\022\r\n" + "\005query\030\001 \001(\t\032\337\004\n" + "\013Observation\022h\n" - + "\016search_results\030\002 \003(\0132P.google.cloud.discoveryengine" - + ".v1beta.Answer.Step.Action.Observation.SearchResult\032\345\003\n" + + "\016search_results\030\002 \003(\0132P.google.cloud.discoveryengine.v1beta" + + ".Answer.Step.Action.Observation.SearchResult\032\345\003\n" + "\014SearchResult\022\020\n" + "\010document\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\r\n" + "\005title\030\003 \001(\t\022r\n" - + "\014snippet_info\030\004 \003(\0132\\.google.cloud.discover" - + "yengine.v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo\022n\n\n" - + "chunk_info\030\005 \003(\0132Z.google.cloud.discoveryengin" - + "e.v1beta.Answer.Step.Action.Observation.SearchResult.ChunkInfo\022,\n" + + "\014snippet_info\030\004 \003(\0132\\.google.cloud.discoveryengine" + + ".v1beta.Answer.Step.Action.Observation.SearchResult.SnippetInfo\022n\n\n" + + "chunk_info\030\005 \003(\0132Z.google.cloud.discoveryengine.v1bet" + + "a.Answer.Step.Action.Observation.SearchResult.ChunkInfo\022,\n" + "\013struct_data\030\006 \001(\0132\027.google.protobuf.Struct\0326\n" + "\013SnippetInfo\022\017\n" + "\007snippet\030\001 \001(\t\022\026\n" @@ -228,28 +274,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006action\"J\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\017\n" - + "\013IN_PROGRESS\020\001\022\n" - + "\n" + + "\013IN_PROGRESS\020\001\022\n\n" + "\006FAILED\020\002\022\r\n" - + "\tSUCCEEDED\020\003\032\302\003\n" + + "\tSUCCEEDED\020\003\032\351\003\n" + "\026QueryUnderstandingInfo\022}\n" - + "\031query_classification_info\030\001 \003(\0132Z.google.cloud.discoveryengine.v" - + "1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo\032\250\002\n" + + "\031query_classification_info\030\001 \003(\013" + + "2Z.google.cloud.discoveryengine.v1beta.A" + + "nswer.QueryUnderstandingInfo.QueryClassificationInfo\032\317\002\n" + "\027QueryClassificationInfo\022m\n" - + "\004type\030\001 \001(\0162_.google.cloud.discoveryengine.v1beta.Answer.QueryUndersta" - + "ndingInfo.QueryClassificationInfo.Type\022\020\n" - + "\010positive\030\002 \001(\010\"\213\001\n" + + "\004type\030\001 \001(\0162_.google.cloud.discoverye" + + "ngine.v1beta.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type\022\020\n" + + "\010positive\030\002 \001(\010\"\262\001\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\025\n" + "\021ADVERSARIAL_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" + + "\033NON_ANSWER_SEEKING_QUERY_V2\020\004\022%\n" + + "!USER_DEFINED_CLASSIFICATION_QUERY\020\005\"Y\n" + "\005State\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\"\335\002\n" + + "\tSUCCEEDED\020\003\022\r\n" + + "\tSTREAMING\020\004\"\242\003\n" + "\023AnswerSkippedReason\022%\n" + "!ANSWER_SKIPPED_REASON_UNSPECIFIED\020\000\022\035\n" + "\031ADVERSARIAL_QUERY_IGNORED\020\001\022$\n" @@ -260,18 +308,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033JAIL_BREAKING_QUERY_IGNORED\020\006\022\035\n" + "\031CUSTOMER_POLICY_VIOLATION\020\007\022\'\n" + "#NON_ANSWER_SEEKING_QUERY_IGNORED_V2\020\010\022\027\n" - + "\023LOW_GROUNDED_ANSWER\020\t:\205\003\352A\201\003\n" - + "%discoveryengine.googleapis.com/Answer\022cprojec" - + "ts/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/ans" - + "wers/{answer}\022|projects/{project}/locations/{location}/collections/{collection}/" - + "dataStores/{data_store}/sessions/{session}/answers/{answer}\022uprojects/{project}/" - + "locations/{location}/collections/{collec" - + "tion}/engines/{engine}/sessions/{session}/answers/{answer}B\222\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB\013AnswerProtoP\001ZQc" - + "loud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb" - + "\242\002\017DISCOVERYENGINE\252\002#Google.Cloud.Discov" - + "eryEngine.V1Beta\312\002#Google\\Cloud\\Discover" - + "yEngine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" + + "\023LOW_GROUNDED_ANSWER\020\t\022-\n" + + ")USER_DEFINED_CLASSIFICATION_QUERY_IGNORED\020\n" + + "\022\024\n" + + "\020UNHELPFUL_ANSWER\020\013:\205\003\352A\201\003\n" + + "%discoveryengine.googleapis.com/Answer\022cprojects/{" + + "project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers" + + "/{answer}\022|projects/{project}/locations/{location}/collections/{collection}/data" + + "Stores/{data_store}/sessions/{session}/answers/{answer}\022uprojects/{project}/loca" + + "tions/{location}/collections/{collection" + + "}/engines/{engine}/sessions/{session}/answers/{answer}B\022\n" + + "\020_grounding_scoreB\222\002\n" + + "\'com.google.cloud.discoveryengine.v1betaB\013" + + "AnswerProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;d" + + "iscoveryenginepb\242\002\017DISCOVERYENGINE\252\002#Goo" + + "gle.Cloud.DiscoveryEngine.V1Beta\312\002#Googl" + + "e\\Cloud\\DiscoveryEngine\\V1beta\352\002&Google:" + + ":Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -279,6 +332,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.cloud.discoveryengine.v1beta.SafetyProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -291,14 +345,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "State", "AnswerText", + "GroundingScore", "Citations", + "GroundingSupports", "References", + "BlobAttachments", "RelatedQuestions", "Steps", "QueryUnderstandingInfo", "AnswerSkippedReasons", "CreateTime", "CompleteTime", + "SafetyRatings", }); internal_static_google_cloud_discoveryengine_v1beta_Answer_Citation_descriptor = internal_static_google_cloud_discoveryengine_v1beta_Answer_descriptor.getNestedType(0); @@ -316,8 +374,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ReferenceId", }); - internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Answer_GroundingSupport_descriptor = internal_static_google_cloud_discoveryengine_v1beta_Answer_descriptor.getNestedType(2); + internal_static_google_cloud_discoveryengine_v1beta_Answer_GroundingSupport_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Answer_GroundingSupport_descriptor, + new java.lang.String[] { + "StartIndex", "EndIndex", "GroundingScore", "GroundingCheckRequired", "Sources", + }); + internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Answer_descriptor.getNestedType(3); internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_descriptor, @@ -340,7 +406,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_UnstructuredDocumentInfo_ChunkContent_descriptor, new java.lang.String[] { - "Content", "PageIdentifier", "RelevanceScore", + "Content", "PageIdentifier", "RelevanceScore", "BlobAttachmentIndexes", }); internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_descriptor = internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_descriptor @@ -349,7 +415,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_descriptor, new java.lang.String[] { - "Chunk", "Content", "RelevanceScore", "DocumentMetadata", + "Chunk", "Content", "RelevanceScore", "DocumentMetadata", "BlobAttachmentIndexes", }); internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_DocumentMetadata_descriptor = internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_ChunkInfo_descriptor @@ -367,10 +433,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_Answer_Reference_StructuredDocumentInfo_descriptor, new java.lang.String[] { - "Document", "StructData", + "Document", "StructData", "Title", "Uri", + }); + internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Answer_descriptor.getNestedType(4); + internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_descriptor, + new java.lang.String[] { + "Data", "AttributionType", + }); + internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_Blob_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_Blob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Answer_BlobAttachment_Blob_descriptor, + new java.lang.String[] { + "MimeType", "Data", }); internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_Answer_descriptor.getNestedType(3); + internal_static_google_cloud_discoveryengine_v1beta_Answer_descriptor.getNestedType(5); internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_Answer_Step_descriptor, @@ -431,7 +514,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Chunk", "Content", "RelevanceScore", }); internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_Answer_descriptor.getNestedType(4); + internal_static_google_cloud_discoveryengine_v1beta_Answer_descriptor.getNestedType(6); internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_Answer_QueryUnderstandingInfo_descriptor, @@ -450,6 +533,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.SafetyProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryRequest.java index eda1086306cf..3170c59efdd5 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryRequest.java @@ -104,6 +104,84 @@ public interface SafetySpecOrBuilder * @return The enable. */ boolean getEnable(); + + /** + * + * + *
            +     * Optional. Safety settings.
            +     * This settings are effective only when the safety_spec.enable is true.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting> + getSafetySettingsList(); + + /** + * + * + *
            +     * Optional. Safety settings.
            +     * This settings are effective only when the safety_spec.enable is true.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + getSafetySettings(int index); + + /** + * + * + *
            +     * Optional. Safety settings.
            +     * This settings are effective only when the safety_spec.enable is true.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSafetySettingsCount(); + + /** + * + * + *
            +     * Optional. Safety settings.
            +     * This settings are effective only when the safety_spec.enable is true.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySettingOrBuilder> + getSafetySettingsOrBuilderList(); + + /** + * + * + *
            +     * Optional. Safety settings.
            +     * This settings are effective only when the safety_spec.enable is true.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySettingOrBuilder + getSafetySettingsOrBuilder(int index); } /** @@ -111,6 +189,11 @@ public interface SafetySpecOrBuilder * *
                * Safety specification.
            +   * There are two use cases:
            +   * 1. when only safety_spec.enable is set, the BLOCK_LOW_AND_ABOVE threshold
            +   * will be applied for all categories.
            +   * 2. when safety_spec.enable is set and some safety_settings are set, only
            +   * specified safety_settings are applied.
                * 
            * * Protobuf type {@code google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec} @@ -136,7 +219,9 @@ private SafetySpec(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private SafetySpec() {} + private SafetySpec() { + safetySettings_ = java.util.Collections.emptyList(); + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto @@ -153,1562 +238,1466 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.Builder.class); } - public static final int ENABLE_FIELD_NUMBER = 1; - private boolean enable_ = false; + public interface SafetySettingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Required. Harm category.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for category. + */ + int getCategoryValue(); + + /** + * + * + *
            +       * Required. Harm category.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The category. + */ + com.google.cloud.discoveryengine.v1beta.HarmCategory getCategory(); + + /** + * + * + *
            +       * Required. The harm block threshold.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for threshold. + */ + int getThresholdValue(); + + /** + * + * + *
            +       * Required. The harm block threshold.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The threshold. + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .HarmBlockThreshold + getThreshold(); + } /** * * *
            -     * Enable the safety filtering on the answer response. It is false by
            -     * default.
            +     * Safety settings.
                  * 
            * - * bool enable = 1; - * - * @return The enable. + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting} */ - @java.lang.Override - public boolean getEnable() { - return enable_; - } - - 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 class SafetySetting extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting) + SafetySettingOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enable_ != false) { - output.writeBool(1, enable_); + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SafetySetting"); } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - size = 0; - if (enable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enable_); + // Use SafetySetting.newBuilder() to construct. + private SafetySetting(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); } - 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.v1beta.AnswerQueryRequest.SafetySpec)) { - return super.equals(obj); + private SafetySetting() { + category_ = 0; + threshold_ = 0; } - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec other = - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec) obj; - if (getEnable() != other.getEnable()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_SafetySetting_descriptor; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_SafetySetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .Builder.class); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnable()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +       * Probability based thresholds levels for blocking.
            +       * 
            + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting.HarmBlockThreshold} + */ + public enum HarmBlockThreshold implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +         * Unspecified harm block threshold.
            +         * 
            + * + * HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0; + */ + HARM_BLOCK_THRESHOLD_UNSPECIFIED(0), + /** + * + * + *
            +         * Block low threshold and above (i.e. block more).
            +         * 
            + * + * BLOCK_LOW_AND_ABOVE = 1; + */ + BLOCK_LOW_AND_ABOVE(1), + /** + * + * + *
            +         * Block medium threshold and above.
            +         * 
            + * + * BLOCK_MEDIUM_AND_ABOVE = 2; + */ + BLOCK_MEDIUM_AND_ABOVE(2), + /** + * + * + *
            +         * Block only high threshold (i.e. block less).
            +         * 
            + * + * BLOCK_ONLY_HIGH = 3; + */ + BLOCK_ONLY_HIGH(3), + /** + * + * + *
            +         * Block none.
            +         * 
            + * + * BLOCK_NONE = 4; + */ + BLOCK_NONE(4), + /** + * + * + *
            +         * Turn off the safety filter.
            +         * 
            + * + * OFF = 5; + */ + OFF(5), + UNRECOGNIZED(-1), + ; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HarmBlockThreshold"); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +         * Unspecified harm block threshold.
            +         * 
            + * + * HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0; + */ + public static final int HARM_BLOCK_THRESHOLD_UNSPECIFIED_VALUE = 0; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +         * Block low threshold and above (i.e. block more).
            +         * 
            + * + * BLOCK_LOW_AND_ABOVE = 1; + */ + public static final int BLOCK_LOW_AND_ABOVE_VALUE = 1; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +         * Block medium threshold and above.
            +         * 
            + * + * BLOCK_MEDIUM_AND_ABOVE = 2; + */ + public static final int BLOCK_MEDIUM_AND_ABOVE_VALUE = 2; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +         * Block only high threshold (i.e. block less).
            +         * 
            + * + * BLOCK_ONLY_HIGH = 3; + */ + public static final int BLOCK_ONLY_HIGH_VALUE = 3; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +         * Block none.
            +         * 
            + * + * BLOCK_NONE = 4; + */ + public static final int BLOCK_NONE_VALUE = 4; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +         * Turn off the safety filter.
            +         * 
            + * + * OFF = 5; + */ + public static final int OFF_VALUE = 5; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + 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.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, 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 HarmBlockThreshold valueOf(int value) { + return forNumber(value); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static HarmBlockThreshold forNumber(int value) { + switch (value) { + case 0: + return HARM_BLOCK_THRESHOLD_UNSPECIFIED; + case 1: + return BLOCK_LOW_AND_ABOVE; + case 2: + return BLOCK_MEDIUM_AND_ABOVE; + case 3: + return BLOCK_ONLY_HIGH; + case 4: + return BLOCK_NONE; + case 5: + return OFF; + default: + return null; + } + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HarmBlockThreshold findValueByNumber(int number) { + return HarmBlockThreshold.forNumber(number); + } + }; - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + 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 Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .getDescriptor() + .getEnumTypes() + .get(0); + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + private static final HarmBlockThreshold[] VALUES = values(); - /** - * - * - *
            -     * Safety specification.
            -     * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec) - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_descriptor; - } + public static HarmBlockThreshold 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 - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.Builder - .class); - } + private final int value; - // Construct using - // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.newBuilder() - private Builder() {} + private HarmBlockThreshold(int value) { + this.value = value; + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting.HarmBlockThreshold) } + public static final int CATEGORY_FIELD_NUMBER = 1; + private int category_ = 0; + + /** + * + * + *
            +       * Required. Harm category.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for category. + */ @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enable_ = false; - return this; + public int getCategoryValue() { + return category_; } + /** + * + * + *
            +       * Required. Harm category.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The category. + */ @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_descriptor; + public com.google.cloud.discoveryengine.v1beta.HarmCategory getCategory() { + com.google.cloud.discoveryengine.v1beta.HarmCategory result = + com.google.cloud.discoveryengine.v1beta.HarmCategory.forNumber(category_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.HarmCategory.UNRECOGNIZED + : result; } + public static final int THRESHOLD_FIELD_NUMBER = 2; + private int threshold_ = 0; + + /** + * + * + *
            +       * Required. The harm block threshold.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for threshold. + */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec - .getDefaultInstance(); + public int getThresholdValue() { + return threshold_; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec build() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + /** + * + * + *
            +       * Required. The harm block threshold.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The threshold. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .HarmBlockThreshold + getThreshold() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .HarmBlockThreshold + result = + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .HarmBlockThreshold.forNumber(threshold_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .HarmBlockThreshold.UNRECOGNIZED + : result; } + private byte memoizedIsInitialized = -1; + @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec buildPartial() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec result = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enable_ = enable_; - } + memoizedIsInitialized = 1; + return true; } @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec) other); - } else { - super.mergeFrom(other); - return this; + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (category_ + != com.google.cloud.discoveryengine.v1beta.HarmCategory.HARM_CATEGORY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, category_); } + if (threshold_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .HarmBlockThreshold.HARM_BLOCK_THRESHOLD_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, threshold_); + } + getUnknownFields().writeTo(output); } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec other) { - if (other - == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec - .getDefaultInstance()) return this; - if (other.getEnable() != false) { - setEnable(other.getEnable()); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (category_ + != com.google.cloud.discoveryengine.v1beta.HarmCategory.HARM_CATEGORY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, category_); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + if (threshold_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .HarmBlockThreshold.HARM_BLOCK_THRESHOLD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, threshold_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public final boolean isInitialized() { + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting) + obj; + + if (category_ != other.category_) return false; + if (threshold_ != other.threshold_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; 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(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - enable_ = 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; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + category_; + hash = (37 * hash) + THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + threshold_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - private int bitField0_; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private boolean enable_; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -       * Enable the safety filtering on the answer response. It is false by
            -       * default.
            -       * 
            - * - * bool enable = 1; - * - * @return The enable. - */ - @java.lang.Override - public boolean getEnable() { - return enable_; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * - * - *
            -       * Enable the safety filtering on the answer response. It is false by
            -       * default.
            -       * 
            - * - * bool enable = 1; - * - * @param value The enable to set. - * @return This builder for chaining. - */ - public Builder setEnable(boolean value) { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - enable_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * - * - *
            -       * Enable the safety filtering on the answer response. It is false by
            -       * default.
            -       * 
            - * - * bool enable = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnable() { - bitField0_ = (bitField0_ & ~0x00000001); - enable_ = false; - onChanged(); - return this; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec) - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec) - private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec - DEFAULT_INSTANCE; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec(); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SafetySpec parsePartialFrom( + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting + parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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.v1beta.AnswerQueryRequest.SafetySpec - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - public interface RelatedQuestionsSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - * - * - *
            -     * Enable related questions feature if true.
            -     * 
            - * - * bool enable = 1; - * - * @return The enable. - */ - boolean getEnable(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
            -   * Related questions specification.
            -   * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec} - */ - public static final class RelatedQuestionsSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec) - RelatedQuestionsSpecOrBuilder { - private static final long serialVersionUID = 0L; + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "RelatedQuestionsSpec"); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - // Use RelatedQuestionsSpec.newBuilder() to construct. - private RelatedQuestionsSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - private RelatedQuestionsSpec() {} + /** + * + * + *
            +       * Safety settings.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySettingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_SafetySetting_descriptor; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_RelatedQuestionsSpec_descriptor; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_SafetySetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting.Builder.class); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_RelatedQuestionsSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - .Builder.class); - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting.newBuilder() + private Builder() {} - public static final int ENABLE_FIELD_NUMBER = 1; - private boolean enable_ = false; + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - /** - * - * - *
            -     * Enable related questions feature if true.
            -     * 
            - * - * bool enable = 1; - * - * @return The enable. - */ - @java.lang.Override - public boolean getEnable() { - return enable_; - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + category_ = 0; + threshold_ = 0; + return this; + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_SafetySetting_descriptor; + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .getDefaultInstance(); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (enable_ != false) { - output.writeBool(1, enable_); - } - getUnknownFields().writeTo(output); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.category_ = category_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.threshold_ = threshold_; + } + } - size = 0; - if (enable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enable_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting) + other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec other = - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec) obj; + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .getDefaultInstance()) return this; + if (other.category_ != 0) { + setCategoryValue(other.getCategoryValue()); + } + if (other.threshold_ != 0) { + setThresholdValue(other.getThresholdValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - if (getEnable() != other.getEnable()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnable()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - 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.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - parseFrom( - com.google.protobuf.ByteString data, + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + throws java.io.IOException { + if (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: + { + category_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + threshold_ = 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; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private int bitField0_; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + private int category_ = 0; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +         * Required. Harm category.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for category. + */ + @java.lang.Override + public int getCategoryValue() { + return category_; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + /** + * + * + *
            +         * Required. Harm category.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for category to set. + * @return This builder for chaining. + */ + public Builder setCategoryValue(int value) { + category_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +         * Required. Harm category.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The category. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.HarmCategory getCategory() { + com.google.cloud.discoveryengine.v1beta.HarmCategory result = + com.google.cloud.discoveryengine.v1beta.HarmCategory.forNumber(category_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.HarmCategory.UNRECOGNIZED + : result; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +         * Required. Harm category.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The category to set. + * @return This builder for chaining. + */ + public Builder setCategory(com.google.cloud.discoveryengine.v1beta.HarmCategory value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + category_ = value.getNumber(); + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +         * Required. Harm category.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HarmCategory category = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearCategory() { + bitField0_ = (bitField0_ & ~0x00000001); + category_ = 0; + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + private int threshold_ = 0; - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
            +         * Required. The harm block threshold.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for threshold. + */ + @java.lang.Override + public int getThresholdValue() { + return threshold_; + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
            +         * Required. The harm block threshold.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for threshold to set. + * @return This builder for chaining. + */ + public Builder setThresholdValue(int value) { + threshold_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
            +         * Required. The harm block threshold.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The threshold. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .HarmBlockThreshold + getThreshold() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .HarmBlockThreshold + result = + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting.HarmBlockThreshold.forNumber(threshold_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .HarmBlockThreshold.UNRECOGNIZED + : result; + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
            +         * Required. The harm block threshold.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The threshold to set. + * @return This builder for chaining. + */ + public Builder setThreshold( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .HarmBlockThreshold + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + threshold_ = value.getNumber(); + onChanged(); + return this; + } - /** - * - * - *
            -     * Related questions specification.
            -     * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec) - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_RelatedQuestionsSpec_descriptor; - } + /** + * + * + *
            +         * Required. The harm block threshold.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting.HarmBlockThreshold threshold = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearThreshold() { + bitField0_ = (bitField0_ & ~0x00000002); + threshold_ = 0; + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_RelatedQuestionsSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - .class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - .Builder.class); + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting) } - // Construct using - // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec.newBuilder() - private Builder() {} + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting + DEFAULT_INSTANCE; - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting(); } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enable_ = false; - return this; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting + getDefaultInstance() { + return DEFAULT_INSTANCE; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_RelatedQuestionsSpec_descriptor; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafetySetting parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - .getDefaultInstance(); + public static com.google.protobuf.Parser parser() { + return PARSER; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - build() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec result = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enable_ = enable_; - } + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec) - other); - } else { - super.mergeFrom(other); - return this; - } - } + public static final int ENABLE_FIELD_NUMBER = 1; + private boolean enable_ = false; - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec other) { - if (other - == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - .getDefaultInstance()) return this; - if (other.getEnable() != false) { - setEnable(other.getEnable()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + /** + * + * + *
            +     * Enable the safety filtering on the answer response. It is false by
            +     * default.
            +     * 
            + * + * bool enable = 1; + * + * @return The enable. + */ + @java.lang.Override + public boolean getEnable() { + return enable_; + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + public static final int SAFETY_SETTINGS_FIELD_NUMBER = 2; - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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: - { - enable_ = 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; - } + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting> + safetySettings_; - private int bitField0_; + /** + * + * + *
            +     * Optional. Safety settings.
            +     * This settings are effective only when the safety_spec.enable is true.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting> + getSafetySettingsList() { + return safetySettings_; + } - private boolean enable_; - - /** - * - * - *
            -       * Enable related questions feature if true.
            -       * 
            - * - * bool enable = 1; - * - * @return The enable. - */ - @java.lang.Override - public boolean getEnable() { - return enable_; - } - - /** - * - * - *
            -       * Enable related questions feature if true.
            -       * 
            - * - * bool enable = 1; - * - * @param value The enable to set. - * @return This builder for chaining. - */ - public Builder setEnable(boolean value) { - - enable_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
            -       * Enable related questions feature if true.
            -       * 
            - * - * bool enable = 1; - * - * @return This builder for chaining. - */ - public Builder clearEnable() { - bitField0_ = (bitField0_ & ~0x00000001); - enable_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec) - private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .RelatedQuestionsSpec - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec(); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RelatedQuestionsSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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.v1beta.AnswerQueryRequest.RelatedQuestionsSpec - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface GroundingSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
            +     * Optional. Safety settings.
            +     * This settings are effective only when the safety_spec.enable is true.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySettingOrBuilder> + getSafetySettingsOrBuilderList() { + return safetySettings_; + } /** * * *
            -     * Optional. Specifies whether to include grounding_supports in the answer.
            -     * The default value is `false`.
            -     *
            -     * When this field is set to `true`, returned answer will have
            -     * `grounding_score` and will contain GroundingSupports for each claim.
            +     * Optional. Safety settings.
            +     * This settings are effective only when the safety_spec.enable is true.
                  * 
            * - * bool include_grounding_supports = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The includeGroundingSupports. + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - boolean getIncludeGroundingSupports(); + @java.lang.Override + public int getSafetySettingsCount() { + return safetySettings_.size(); + } /** * * *
            -     * Optional. Specifies whether to enable the filtering based on grounding
            -     * score and at what level.
            +     * Optional. Safety settings.
            +     * This settings are effective only when the safety_spec.enable is true.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The enum numeric value on the wire for filteringLevel. */ - int getFilteringLevelValue(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + getSafetySettings(int index) { + return safetySettings_.get(index); + } /** * * *
            -     * Optional. Specifies whether to enable the filtering based on grounding
            -     * score and at what level.
            +     * Optional. Safety settings.
            +     * This settings are effective only when the safety_spec.enable is true.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The filteringLevel. */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel - getFilteringLevel(); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySettingOrBuilder + getSafetySettingsOrBuilder(int index) { + return safetySettings_.get(index); + } - /** - * - * - *
            -   * Grounding specification.
            -   * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec} - */ - public static final class GroundingSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec) - GroundingSpecOrBuilder { - private static final long serialVersionUID = 0L; + private byte memoizedIsInitialized = -1; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "GroundingSpec"); + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - // Use GroundingSpec.newBuilder() to construct. - private GroundingSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enable_ != false) { + output.writeBool(1, enable_); + } + for (int i = 0; i < safetySettings_.size(); i++) { + output.writeMessage(2, safetySettings_.get(i)); + } + getUnknownFields().writeTo(output); } - private GroundingSpec() { - filteringLevel_ = 0; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enable_); + } + for (int i = 0; i < safetySettings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, safetySettings_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_GroundingSpec_descriptor; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec) obj; + + if (getEnable() != other.getEnable()) return false; + if (!getSafetySettingsList().equals(other.getSafetySettingsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_GroundingSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.Builder - .class); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnable()); + if (getSafetySettingsCount() > 0) { + hash = (37 * hash) + SAFETY_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getSafetySettingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - /** - * - * - *
            -     * Level to filter based on answer grounding.
            -     * 
            - * - * Protobuf enum {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel} - */ - public enum FilteringLevel implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
            -       * Default is no filter
            -       * 
            - * - * FILTERING_LEVEL_UNSPECIFIED = 0; - */ - FILTERING_LEVEL_UNSPECIFIED(0), - /** - * - * - *
            -       * Filter answers based on a low threshold.
            -       * 
            - * - * FILTERING_LEVEL_LOW = 1; - */ - FILTERING_LEVEL_LOW(1), - /** - * - * - *
            -       * Filter answers based on a high threshold.
            -       * 
            - * - * FILTERING_LEVEL_HIGH = 2; - */ - FILTERING_LEVEL_HIGH(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "FilteringLevel"); - } - - /** - * - * - *
            -       * Default is no filter
            -       * 
            - * - * FILTERING_LEVEL_UNSPECIFIED = 0; - */ - public static final int FILTERING_LEVEL_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
            -       * Filter answers based on a low threshold.
            -       * 
            - * - * FILTERING_LEVEL_LOW = 1; - */ - public static final int FILTERING_LEVEL_LOW_VALUE = 1; - - /** - * - * - *
            -       * Filter answers based on a high threshold.
            -       * 
            - * - * FILTERING_LEVEL_HIGH = 2; - */ - public static final int FILTERING_LEVEL_HIGH_VALUE = 2; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( + java.nio.ByteBuffer 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.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( + java.nio.ByteBuffer 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 FilteringLevel valueOf(int value) { - return forNumber(value); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( + com.google.protobuf.ByteString 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 FilteringLevel forNumber(int value) { - switch (value) { - case 0: - return FILTERING_LEVEL_UNSPECIFIED; - case 1: - return FILTERING_LEVEL_LOW; - case 2: - return FILTERING_LEVEL_HIGH; - default: - return null; - } - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( + com.google.protobuf.ByteString 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.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FilteringLevel findValueByNumber(int number) { - return FilteringLevel.forNumber(number); - } - }; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, 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.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec - .getDescriptor() - .getEnumTypes() - .get(0); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - private static final FilteringLevel[] VALUES = values(); + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static FilteringLevel 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.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - private final int value; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - private FilteringLevel(int value) { - this.value = value; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel) + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - public static final int INCLUDE_GROUNDING_SUPPORTS_FIELD_NUMBER = 2; - private boolean includeGroundingSupports_ = false; + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * - * - *
            -     * Optional. Specifies whether to include grounding_supports in the answer.
            -     * The default value is `false`.
            -     *
            -     * When this field is set to `true`, returned answer will have
            -     * `grounding_score` and will contain GroundingSupports for each claim.
            -     * 
            - * - * bool include_grounding_supports = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The includeGroundingSupports. - */ @java.lang.Override - public boolean getIncludeGroundingSupports() { - return includeGroundingSupports_; + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - public static final int FILTERING_LEVEL_FIELD_NUMBER = 3; - private int filteringLevel_ = 0; + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * * *
            -     * Optional. Specifies whether to enable the filtering based on grounding
            -     * score and at what level.
            +     * Safety specification.
            +     * There are two use cases:
            +     * 1. when only safety_spec.enable is set, the BLOCK_LOW_AND_ABOVE threshold
            +     * will be applied for all categories.
            +     * 2. when safety_spec.enable is set and some safety_settings are set, only
            +     * specified safety_settings are applied.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for filteringLevel. - */ - @java.lang.Override - public int getFilteringLevelValue() { - return filteringLevel_; - } - - /** - * - * - *
            -     * Optional. Specifies whether to enable the filtering based on grounding
            -     * score and at what level.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The filteringLevel. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel - getFilteringLevel() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel - result = - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec - .FilteringLevel.forNumber(filteringLevel_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel - .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 (includeGroundingSupports_ != false) { - output.writeBool(2, includeGroundingSupports_); - } - if (filteringLevel_ - != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel - .FILTERING_LEVEL_UNSPECIFIED - .getNumber()) { - output.writeEnum(3, filteringLevel_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (includeGroundingSupports_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeGroundingSupports_); - } - if (filteringLevel_ - != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel - .FILTERING_LEVEL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, filteringLevel_); - } - 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.v1beta.AnswerQueryRequest.GroundingSpec)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec other = - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec) obj; - - if (getIncludeGroundingSupports() != other.getIncludeGroundingSupports()) return false; - if (filteringLevel_ != other.filteringLevel_) 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) + INCLUDE_GROUNDING_SUPPORTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeGroundingSupports()); - hash = (37 * hash) + FILTERING_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + filteringLevel_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.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.v1beta.AnswerQueryRequest.GroundingSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.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.v1beta.AnswerQueryRequest.GroundingSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.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.v1beta.AnswerQueryRequest.GroundingSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.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.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
            -     * Grounding specification.
            -     * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec) - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpecOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_GroundingSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_GroundingSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.Builder + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.Builder .class); } // Construct using - // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.newBuilder() + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -1719,27 +1708,33 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - includeGroundingSupports_ = false; - filteringLevel_ = 0; + enable_ = false; + if (safetySettingsBuilder_ == null) { + safetySettings_ = java.util.Collections.emptyList(); + } else { + safetySettings_ = null; + safetySettingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_GroundingSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec build() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec result = + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -1748,10 +1743,10 @@ public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec result = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec(this); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -1759,23 +1754,33 @@ public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec return result; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec result) { + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec result) { + if (safetySettingsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + safetySettings_ = java.util.Collections.unmodifiableList(safetySettings_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.safetySettings_ = safetySettings_; + } else { + result.safetySettings_ = safetySettingsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.includeGroundingSupports_ = includeGroundingSupports_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.filteringLevel_ = filteringLevel_; + result.enable_ = enable_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other - instanceof com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec) { + instanceof com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec) { return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec) other); + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec) other); } else { super.mergeFrom(other); return this; @@ -1783,15 +1788,39 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec other) { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec other) { if (other - == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec .getDefaultInstance()) return this; - if (other.getIncludeGroundingSupports() != false) { - setIncludeGroundingSupports(other.getIncludeGroundingSupports()); + if (other.getEnable() != false) { + setEnable(other.getEnable()); } - if (other.filteringLevel_ != 0) { - setFilteringLevelValue(other.getFilteringLevelValue()); + if (safetySettingsBuilder_ == null) { + if (!other.safetySettings_.isEmpty()) { + if (safetySettings_.isEmpty()) { + safetySettings_ = other.safetySettings_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSafetySettingsIsMutable(); + safetySettings_.addAll(other.safetySettings_); + } + onChanged(); + } + } else { + if (!other.safetySettings_.isEmpty()) { + if (safetySettingsBuilder_.isEmpty()) { + safetySettingsBuilder_.dispose(); + safetySettingsBuilder_ = null; + safetySettings_ = other.safetySettings_; + bitField0_ = (bitField0_ & ~0x00000002); + safetySettingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSafetySettingsFieldBuilder() + : null; + } else { + safetySettingsBuilder_.addAllMessages(other.safetySettings_); + } + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -1819,18 +1848,29 @@ public Builder mergeFrom( case 0: done = true; break; - case 16: + case 8: { - includeGroundingSupports_ = input.readBool(); + enable_ = input.readBool(); bitField0_ |= 0x00000001; break; - } // case 16 - case 24: + } // case 8 + case 18: { - filteringLevel_ = input.readEnum(); - bitField0_ |= 0x00000002; + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting.parser(), + extensionRegistry); + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.add(m); + } else { + safetySettingsBuilder_.addMessage(m); + } break; - } // case 24 + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1850,47 +1890,41 @@ public Builder mergeFrom( private int bitField0_; - private boolean includeGroundingSupports_; + private boolean enable_; /** * * *
            -       * Optional. Specifies whether to include grounding_supports in the answer.
            -       * The default value is `false`.
            -       *
            -       * When this field is set to `true`, returned answer will have
            -       * `grounding_score` and will contain GroundingSupports for each claim.
            +       * Enable the safety filtering on the answer response. It is false by
            +       * default.
                    * 
            * - * bool include_grounding_supports = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable = 1; * - * @return The includeGroundingSupports. + * @return The enable. */ @java.lang.Override - public boolean getIncludeGroundingSupports() { - return includeGroundingSupports_; + public boolean getEnable() { + return enable_; } /** * * *
            -       * Optional. Specifies whether to include grounding_supports in the answer.
            -       * The default value is `false`.
            -       *
            -       * When this field is set to `true`, returned answer will have
            -       * `grounding_score` and will contain GroundingSupports for each claim.
            +       * Enable the safety filtering on the answer response. It is false by
            +       * default.
                    * 
            * - * bool include_grounding_supports = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable = 1; * - * @param value The includeGroundingSupports to set. + * @param value The enable to set. * @return This builder for chaining. */ - public Builder setIncludeGroundingSupports(boolean value) { + public Builder setEnable(boolean value) { - includeGroundingSupports_ = value; + enable_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -1900,64 +1934,132 @@ public Builder setIncludeGroundingSupports(boolean value) { * * *
            -       * Optional. Specifies whether to include grounding_supports in the answer.
            -       * The default value is `false`.
            -       *
            -       * When this field is set to `true`, returned answer will have
            -       * `grounding_score` and will contain GroundingSupports for each claim.
            +       * Enable the safety filtering on the answer response. It is false by
            +       * default.
                    * 
            * - * bool include_grounding_supports = 2 [(.google.api.field_behavior) = OPTIONAL]; + * bool enable = 1; * * @return This builder for chaining. */ - public Builder clearIncludeGroundingSupports() { + public Builder clearEnable() { bitField0_ = (bitField0_ & ~0x00000001); - includeGroundingSupports_ = false; + enable_ = false; onChanged(); return this; } - private int filteringLevel_ = 0; + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting> + safetySettings_ = java.util.Collections.emptyList(); + + private void ensureSafetySettingsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + safetySettings_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting>(safetySettings_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySettingOrBuilder> + safetySettingsBuilder_; /** * * *
            -       * Optional. Specifies whether to enable the filtering based on grounding
            -       * score and at what level.
            +       * Optional. Safety settings.
            +       * This settings are effective only when the safety_spec.enable is true.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting> + getSafetySettingsList() { + if (safetySettingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(safetySettings_); + } else { + return safetySettingsBuilder_.getMessageList(); + } + } + + /** * - * @return The enum numeric value on the wire for filteringLevel. + * + *
            +       * Optional. Safety settings.
            +       * This settings are effective only when the safety_spec.enable is true.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public int getFilteringLevelValue() { - return filteringLevel_; + public int getSafetySettingsCount() { + if (safetySettingsBuilder_ == null) { + return safetySettings_.size(); + } else { + return safetySettingsBuilder_.getCount(); + } } /** * * *
            -       * Optional. Specifies whether to enable the filtering based on grounding
            -       * score and at what level.
            +       * Optional. Safety settings.
            +       * This settings are effective only when the safety_spec.enable is true.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + getSafetySettings(int index) { + if (safetySettingsBuilder_ == null) { + return safetySettings_.get(index); + } else { + return safetySettingsBuilder_.getMessage(index); + } + } + + /** * - * @param value The enum numeric value on the wire for filteringLevel to set. - * @return This builder for chaining. + * + *
            +       * Optional. Safety settings.
            +       * This settings are effective only when the safety_spec.enable is true.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setFilteringLevelValue(int value) { - filteringLevel_ = value; - bitField0_ |= 0x00000002; - onChanged(); + public Builder setSafetySettings( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + value) { + if (safetySettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSafetySettingsIsMutable(); + safetySettings_.set(index, value); + onChanged(); + } else { + safetySettingsBuilder_.setMessage(index, value); + } return this; } @@ -1965,53 +2067,54 @@ public Builder setFilteringLevelValue(int value) { * * *
            -       * Optional. Specifies whether to enable the filtering based on grounding
            -       * score and at what level.
            +       * Optional. Safety settings.
            +       * This settings are effective only when the safety_spec.enable is true.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The filteringLevel. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel - getFilteringLevel() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel - result = - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec - .FilteringLevel.forNumber(filteringLevel_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec - .FilteringLevel.UNRECOGNIZED - : result; + public Builder setSafetySettings( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .Builder + builderForValue) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.set(index, builderForValue.build()); + onChanged(); + } else { + safetySettingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } /** * * *
            -       * Optional. Specifies whether to enable the filtering based on grounding
            -       * score and at what level.
            +       * Optional. Safety settings.
            +       * This settings are effective only when the safety_spec.enable is true.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The filteringLevel to set. - * @return This builder for chaining. */ - public Builder setFilteringLevel( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel + public Builder addSafetySettings( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting value) { - if (value == null) { - throw new NullPointerException(); + if (safetySettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSafetySettingsIsMutable(); + safetySettings_.add(value); + onChanged(); + } else { + safetySettingsBuilder_.addMessage(value); } - bitField0_ |= 0x00000002; - filteringLevel_ = value.getNumber(); - onChanged(); return this; } @@ -2019,44 +2122,330 @@ public Builder setFilteringLevel( * * *
            -       * Optional. Specifies whether to enable the filtering based on grounding
            -       * score and at what level.
            +       * Optional. Safety settings.
            +       * This settings are effective only when the safety_spec.enable is true.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearFilteringLevel() { - bitField0_ = (bitField0_ & ~0x00000002); - filteringLevel_ = 0; - onChanged(); + public Builder addSafetySettings( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + value) { + if (safetySettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSafetySettingsIsMutable(); + safetySettings_.add(index, value); + onChanged(); + } else { + safetySettingsBuilder_.addMessage(index, value); + } return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec) - private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec - DEFAULT_INSTANCE; + /** + * + * + *
            +       * Optional. Safety settings.
            +       * This settings are effective only when the safety_spec.enable is true.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSafetySettings( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .Builder + builderForValue) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.add(builderForValue.build()); + onChanged(); + } else { + safetySettingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec(); - } + /** + * + * + *
            +       * Optional. Safety settings.
            +       * This settings are effective only when the safety_spec.enable is true.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSafetySettings( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .Builder + builderForValue) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.add(index, builderForValue.build()); + onChanged(); + } else { + safetySettingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
            +       * Optional. Safety settings.
            +       * This settings are effective only when the safety_spec.enable is true.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSafetySettings( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting> + values) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, safetySettings_); + onChanged(); + } else { + safetySettingsBuilder_.addAllMessages(values); + } + return this; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + /** + * + * + *
            +       * Optional. Safety settings.
            +       * This settings are effective only when the safety_spec.enable is true.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSafetySettings() { + if (safetySettingsBuilder_ == null) { + safetySettings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + safetySettingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Safety settings.
            +       * This settings are effective only when the safety_spec.enable is true.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSafetySettings(int index) { + if (safetySettingsBuilder_ == null) { + ensureSafetySettingsIsMutable(); + safetySettings_.remove(index); + onChanged(); + } else { + safetySettingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * Optional. Safety settings.
            +       * This settings are effective only when the safety_spec.enable is true.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .Builder + getSafetySettingsBuilder(int index) { + return internalGetSafetySettingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * Optional. Safety settings.
            +       * This settings are effective only when the safety_spec.enable is true.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySettingOrBuilder + getSafetySettingsOrBuilder(int index) { + if (safetySettingsBuilder_ == null) { + return safetySettings_.get(index); + } else { + return safetySettingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * Optional. Safety settings.
            +       * This settings are effective only when the safety_spec.enable is true.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySettingOrBuilder> + getSafetySettingsOrBuilderList() { + if (safetySettingsBuilder_ != null) { + return safetySettingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(safetySettings_); + } + } + + /** + * + * + *
            +       * Optional. Safety settings.
            +       * This settings are effective only when the safety_spec.enable is true.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .Builder + addSafetySettingsBuilder() { + return internalGetSafetySettingsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .getDefaultInstance()); + } + + /** + * + * + *
            +       * Optional. Safety settings.
            +       * This settings are effective only when the safety_spec.enable is true.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .Builder + addSafetySettingsBuilder(int index) { + return internalGetSafetySettingsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .getDefaultInstance()); + } + + /** + * + * + *
            +       * Optional. Safety settings.
            +       * This settings are effective only when the safety_spec.enable is true.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting safety_settings = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .Builder> + getSafetySettingsBuilderList() { + return internalGetSafetySettingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec.SafetySetting + .Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySettingOrBuilder> + internalGetSafetySettingsFieldBuilder() { + if (safetySettingsBuilder_ == null) { + safetySettingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySetting.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + .SafetySettingOrBuilder>( + safetySettings_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + safetySettings_ = null; + } + return safetySettingsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public GroundingSpec parsePartialFrom( + public SafetySpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2076,1680 +2465,1510 @@ public GroundingSpec 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.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface AnswerGenerationSpecOrBuilder + public interface RelatedQuestionsSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec) com.google.protobuf.MessageOrBuilder { /** * * *
            -     * Answer generation model specification.
            +     * Enable related questions feature if true.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; - * + * bool enable = 1; * - * @return Whether the modelSpec field is set. + * @return The enable. */ - boolean hasModelSpec(); + boolean getEnable(); + } + + /** + * + * + *
            +   * Related questions specification.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec} + */ + public static final class RelatedQuestionsSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec) + RelatedQuestionsSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RelatedQuestionsSpec"); + } + + // Use RelatedQuestionsSpec.newBuilder() to construct. + private RelatedQuestionsSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RelatedQuestionsSpec() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_RelatedQuestionsSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_RelatedQuestionsSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + .Builder.class); + } + + public static final int ENABLE_FIELD_NUMBER = 1; + private boolean enable_ = false; /** * * *
            -     * Answer generation model specification.
            +     * Enable related questions feature if true.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; - * + * bool enable = 1; * - * @return The modelSpec. + * @return The enable. */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec - getModelSpec(); + @java.lang.Override + public boolean getEnable() { + return enable_; + } - /** - * - * - *
            -     * Answer generation model specification.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; - * - */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpecOrBuilder - getModelSpecOrBuilder(); + private byte memoizedIsInitialized = -1; - /** - * - * - *
            -     * Answer generation prompt specification.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; - * - * - * @return Whether the promptSpec field is set. - */ - boolean hasPromptSpec(); + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * - * - *
            -     * Answer generation prompt specification.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; - * - * - * @return The promptSpec. - */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec - getPromptSpec(); + memoizedIsInitialized = 1; + return true; + } - /** - * - * - *
            -     * Answer generation prompt specification.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; - * - */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpecOrBuilder - getPromptSpecOrBuilder(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enable_ != false) { + output.writeBool(1, enable_); + } + getUnknownFields().writeTo(output); + } - /** - * - * - *
            -     * Specifies whether to include citation metadata in the answer. The default
            -     * value is `false`.
            -     * 
            - * - * bool include_citations = 3; - * - * @return The includeCitations. - */ - boolean getIncludeCitations(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - * - * - *
            -     * Language code for Answer. Use language tags defined by
            -     * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            -     * Note: This is an experimental feature.
            -     * 
            - * - * string answer_language_code = 4; - * - * @return The answerLanguageCode. - */ - java.lang.String getAnswerLanguageCode(); + size = 0; + if (enable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enable_); + } + 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.v1beta.AnswerQueryRequest.RelatedQuestionsSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec) obj; + + if (getEnable() != other.getEnable()) 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) + ENABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnable()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + 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.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + parseFrom( + 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.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * * *
            -     * Language code for Answer. Use language tags defined by
            -     * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            -     * Note: This is an experimental feature.
            +     * Related questions specification.
                  * 
            * - * string answer_language_code = 4; - * - * @return The bytes for answerLanguageCode. + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec} */ - com.google.protobuf.ByteString getAnswerLanguageCodeBytes(); + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_RelatedQuestionsSpec_descriptor; + } - /** - * - * - *
            -     * Specifies whether to filter out adversarial queries. The default value
            -     * is `false`.
            -     *
            -     * Google employs search-query classification to detect adversarial
            -     * queries. No answer is returned if the search query is classified as an
            -     * adversarial query. For example, a user might ask a question regarding
            -     * negative comments about the company or submit a query designed to
            -     * generate unsafe, policy-violating output. If this field is set to
            -     * `true`, we skip generating answers for adversarial queries and return
            -     * fallback messages instead.
            -     * 
            - * - * bool ignore_adversarial_query = 5; - * - * @return The ignoreAdversarialQuery. - */ - boolean getIgnoreAdversarialQuery(); - - /** - * - * - *
            -     * Specifies whether to filter out queries that are not answer-seeking.
            -     * The default value is `false`.
            -     *
            -     * Google employs search-query classification to detect answer-seeking
            -     * queries. No answer is returned if the search query is classified as a
            -     * non-answer seeking query. If this field is set to `true`, we skip
            -     * generating answers for non-answer seeking queries and return
            -     * fallback messages instead.
            -     * 
            - * - * bool ignore_non_answer_seeking_query = 6; - * - * @return The ignoreNonAnswerSeekingQuery. - */ - boolean getIgnoreNonAnswerSeekingQuery(); - - /** - * - * - *
            -     * Specifies whether to filter out queries that have low relevance.
            -     *
            -     * If this field is set to `false`, all search results are used regardless
            -     * 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; - * - * @return Whether the ignoreLowRelevantContent field is set. - */ - boolean hasIgnoreLowRelevantContent(); - - /** - * - * - *
            -     * Specifies whether to filter out queries that have low relevance.
            -     *
            -     * If this field is set to `false`, all search results are used regardless
            -     * 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; - * - * @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(); - } - - /** - * - * - *
            -   * Answer generation specification.
            -   * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec} - */ - public static final class AnswerGenerationSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec) - AnswerGenerationSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "AnswerGenerationSpec"); - } - - // Use AnswerGenerationSpec.newBuilder() to construct. - private AnswerGenerationSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private AnswerGenerationSpec() { - answerLanguageCode_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .Builder.class); - } - - public interface ModelSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
            -       * Model version. If not set, it will use the default stable model.
            -       * Allowed values are: stable, preview.
            -       * 
            - * - * string model_version = 1; - * - * @return The modelVersion. - */ - java.lang.String getModelVersion(); - - /** - * - * - *
            -       * Model version. If not set, it will use the default stable model.
            -       * Allowed values are: stable, preview.
            -       * 
            - * - * string model_version = 1; - * - * @return The bytes for modelVersion. - */ - com.google.protobuf.ByteString getModelVersionBytes(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_RelatedQuestionsSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + .class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + .Builder.class); + } - /** - * - * - *
            -     * Answer Generation Model specification.
            -     * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec} - */ - public static final class ModelSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec) - ModelSpecOrBuilder { - private static final long serialVersionUID = 0L; + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec.newBuilder() + private Builder() {} - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "ModelSpec"); + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); } - // Use ModelSpec.newBuilder() to construct. - private ModelSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enable_ = false; + return this; } - private ModelSpec() { - modelVersion_ = ""; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_RelatedQuestionsSpec_descriptor; } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_ModelSpec_descriptor; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + .getDefaultInstance(); } @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_ModelSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec.Builder.class); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - public static final int MODEL_VERSION_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object modelVersion_ = ""; - - /** - * - * - *
            -       * Model version. If not set, it will use the default stable model.
            -       * Allowed values are: stable, preview.
            -       * 
            - * - * string model_version = 1; - * - * @return The modelVersion. - */ @java.lang.Override - public java.lang.String getModelVersion() { - java.lang.Object ref = modelVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - modelVersion_ = s; - return s; + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec( + this); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; } - /** - * - * - *
            -       * Model version. If not set, it will use the default stable model.
            -       * Allowed values are: stable, preview.
            -       * 
            - * - * string model_version = 1; - * - * @return The bytes for modelVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getModelVersionBytes() { - java.lang.Object ref = modelVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - modelVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enable_ = enable_; } } - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelVersion_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, modelVersion_); + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec) + other); + } else { + super.mergeFrom(other); + return this; } - getUnknownFields().writeTo(output); } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelVersion_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, modelVersion_); + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + .getDefaultInstance()) return this; + if (other.getEnable() != false) { + setEnable(other.getEnable()); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec - other = - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec) - obj; - - if (!getModelVersion().equals(other.getModelVersion())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; + public final boolean isInitialized() { return true; } @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MODEL_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getModelVersion().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enable_ = 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; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private int bitField0_; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private boolean enable_; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** + * + * + *
            +       * Enable related questions feature if true.
            +       * 
            + * + * bool enable = 1; + * + * @return The enable. + */ + @java.lang.Override + public boolean getEnable() { + return enable_; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +       * Enable related questions feature if true.
            +       * 
            + * + * bool enable = 1; + * + * @param value The enable to set. + * @return This builder for chaining. + */ + public Builder setEnable(boolean value) { - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + enable_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
            +       * Enable related questions feature if true.
            +       * 
            + * + * bool enable = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnable() { + bitField0_ = (bitField0_ & ~0x00000001); + enable_ = false; + onChanged(); + return this; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec) + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .RelatedQuestionsSpec + DEFAULT_INSTANCE; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec(); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - parseFrom( + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelatedQuestionsSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.RelatedQuestionsSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public interface GroundingSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
            +     * Optional. Specifies whether to include grounding_supports in the answer.
            +     * The default value is `false`.
            +     *
            +     * When this field is set to `true`, returned answer will have
            +     * `grounding_score` and will contain GroundingSupports for each claim.
            +     * 
            + * + * bool include_grounding_supports = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeGroundingSupports. + */ + boolean getIncludeGroundingSupports(); - /** - * - * - *
            -       * Answer Generation Model specification.
            -       * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec) - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_ModelSpec_descriptor; - } + /** + * + * + *
            +     * Optional. Specifies whether to enable the filtering based on grounding
            +     * score and at what level.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for filteringLevel. + */ + int getFilteringLevelValue(); - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_ModelSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec.Builder.class); - } + /** + * + * + *
            +     * Optional. Specifies whether to enable the filtering based on grounding
            +     * score and at what level.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filteringLevel. + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel + getFilteringLevel(); + } - // Construct using - // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.newBuilder() - private Builder() {} + /** + * + * + *
            +   * Grounding specification.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec} + */ + public static final class GroundingSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec) + GroundingSpecOrBuilder { + private static final long serialVersionUID = 0L; - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GroundingSpec"); + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - modelVersion_ = ""; - return this; - } + // Use GroundingSpec.newBuilder() to construct. + private GroundingSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_ModelSpec_descriptor; - } + private GroundingSpec() { + filteringLevel_ = 0; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec.getDefaultInstance(); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_GroundingSpec_descriptor; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - build() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_GroundingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.Builder + .class); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec - result = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .AnswerGenerationSpec.ModelSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + /** + * + * + *
            +     * Level to filter based on answer grounding.
            +     * 
            + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel} + */ + public enum FilteringLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Default is no filter
            +       * 
            + * + * FILTERING_LEVEL_UNSPECIFIED = 0; + */ + FILTERING_LEVEL_UNSPECIFIED(0), + /** + * + * + *
            +       * Filter answers based on a low threshold.
            +       * 
            + * + * FILTERING_LEVEL_LOW = 1; + */ + FILTERING_LEVEL_LOW(1), + /** + * + * + *
            +       * Filter answers based on a high threshold.
            +       * 
            + * + * FILTERING_LEVEL_HIGH = 2; + */ + FILTERING_LEVEL_HIGH(2), + UNRECOGNIZED(-1), + ; - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.modelVersion_ = modelVersion_; - } - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FilteringLevel"); + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec) - other); - } else { - super.mergeFrom(other); - return this; - } - } + /** + * + * + *
            +       * Default is no filter
            +       * 
            + * + * FILTERING_LEVEL_UNSPECIFIED = 0; + */ + public static final int FILTERING_LEVEL_UNSPECIFIED_VALUE = 0; - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec.getDefaultInstance()) return this; - if (!other.getModelVersion().isEmpty()) { - modelVersion_ = other.modelVersion_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + /** + * + * + *
            +       * Filter answers based on a low threshold.
            +       * 
            + * + * FILTERING_LEVEL_LOW = 1; + */ + public static final int FILTERING_LEVEL_LOW_VALUE = 1; + + /** + * + * + *
            +       * Filter answers based on a high threshold.
            +       * 
            + * + * FILTERING_LEVEL_HIGH = 2; + */ + public static final int FILTERING_LEVEL_HIGH_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; + } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * @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 FilteringLevel 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 FilteringLevel forNumber(int value) { + switch (value) { + case 0: + return FILTERING_LEVEL_UNSPECIFIED; + case 1: + return FILTERING_LEVEL_LOW; + case 2: + return FILTERING_LEVEL_HIGH; + default: + return null; } + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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: - { - modelVersion_ = 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; + 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 FilteringLevel findValueByNumber(int number) { + return FilteringLevel.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()); + } - private int bitField0_; + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - private java.lang.Object modelVersion_ = ""; + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + .getDescriptor() + .getEnumTypes() + .get(0); + } - /** - * - * - *
            -         * Model version. If not set, it will use the default stable model.
            -         * Allowed values are: stable, preview.
            -         * 
            - * - * string model_version = 1; - * - * @return The modelVersion. - */ - public java.lang.String getModelVersion() { - java.lang.Object ref = modelVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - modelVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
            -         * Model version. If not set, it will use the default stable model.
            -         * Allowed values are: stable, preview.
            -         * 
            - * - * string model_version = 1; - * - * @return The bytes for modelVersion. - */ - public com.google.protobuf.ByteString getModelVersionBytes() { - java.lang.Object ref = modelVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - modelVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
            -         * Model version. If not set, it will use the default stable model.
            -         * Allowed values are: stable, preview.
            -         * 
            - * - * string model_version = 1; - * - * @param value The modelVersion to set. - * @return This builder for chaining. - */ - public Builder setModelVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - modelVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + private static final FilteringLevel[] VALUES = values(); - /** - * - * - *
            -         * Model version. If not set, it will use the default stable model.
            -         * Allowed values are: stable, preview.
            -         * 
            - * - * string model_version = 1; - * - * @return This builder for chaining. - */ - public Builder clearModelVersion() { - modelVersion_ = getDefaultInstance().getModelVersion(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + public static FilteringLevel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } - - /** - * - * - *
            -         * Model version. If not set, it will use the default stable model.
            -         * Allowed values are: stable, preview.
            -         * 
            - * - * string model_version = 1; - * - * @param value The bytes for modelVersion to set. - * @return This builder for chaining. - */ - public Builder setModelVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - modelVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + if (desc.getIndex() == -1) { + return UNRECOGNIZED; } - - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec) + return VALUES[desc.getIndex()]; } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec) - private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .AnswerGenerationSpec.ModelSpec - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec(); - } + private final int value; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - getDefaultInstance() { - return DEFAULT_INSTANCE; + private FilteringLevel(int value) { + this.value = value; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModelSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; - } + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel) + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static final int INCLUDE_GROUNDING_SUPPORTS_FIELD_NUMBER = 2; + private boolean includeGroundingSupports_ = false; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
            +     * Optional. Specifies whether to include grounding_supports in the answer.
            +     * The default value is `false`.
            +     *
            +     * When this field is set to `true`, returned answer will have
            +     * `grounding_score` and will contain GroundingSupports for each claim.
            +     * 
            + * + * bool include_grounding_supports = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeGroundingSupports. + */ + @java.lang.Override + public boolean getIncludeGroundingSupports() { + return includeGroundingSupports_; } - public interface PromptSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
            -       * Customized preamble.
            -       * 
            - * - * string preamble = 1; - * - * @return The preamble. - */ - java.lang.String getPreamble(); + public static final int FILTERING_LEVEL_FIELD_NUMBER = 3; + private int filteringLevel_ = 0; - /** - * - * - *
            -       * Customized preamble.
            -       * 
            - * - * string preamble = 1; - * - * @return The bytes for preamble. - */ - com.google.protobuf.ByteString getPreambleBytes(); + /** + * + * + *
            +     * Optional. Specifies whether to enable the filtering based on grounding
            +     * score and at what level.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for filteringLevel. + */ + @java.lang.Override + public int getFilteringLevelValue() { + return filteringLevel_; } /** * * *
            -     * Answer generation prompt specification.
            +     * Optional. Specifies whether to enable the filtering based on grounding
            +     * score and at what level.
                  * 
            * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec} + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filteringLevel. */ - public static final class PromptSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec) - PromptSpecOrBuilder { - private static final long serialVersionUID = 0L; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel + getFilteringLevel() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel + result = + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + .FilteringLevel.forNumber(filteringLevel_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel + .UNRECOGNIZED + : result; + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "PromptSpec"); - } + private byte memoizedIsInitialized = -1; - // Use PromptSpec.newBuilder() to construct. - private PromptSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private PromptSpec() { - preamble_ = ""; - } + memoizedIsInitialized = 1; + return true; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_PromptSpec_descriptor; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (includeGroundingSupports_ != false) { + output.writeBool(2, includeGroundingSupports_); } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_PromptSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec.Builder.class); + if (filteringLevel_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel + .FILTERING_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, filteringLevel_); } + getUnknownFields().writeTo(output); + } - public static final int PREAMBLE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object preamble_ = ""; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - * - * - *
            -       * Customized preamble.
            -       * 
            - * - * string preamble = 1; - * - * @return The preamble. - */ - @java.lang.Override - public java.lang.String getPreamble() { - java.lang.Object ref = preamble_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - preamble_ = s; - return s; - } + size = 0; + if (includeGroundingSupports_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeGroundingSupports_); } - - /** - * - * - *
            -       * Customized preamble.
            -       * 
            - * - * string preamble = 1; - * - * @return The bytes for preamble. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPreambleBytes() { - java.lang.Object ref = preamble_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - preamble_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + if (filteringLevel_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel + .FILTERING_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, filteringLevel_); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - 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; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { return true; } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(preamble_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, preamble_); - } - getUnknownFields().writeTo(output); + if (!(obj + instanceof com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec)) { + return super.equals(obj); } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec) obj; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + if (getIncludeGroundingSupports() != other.getIncludeGroundingSupports()) return false; + if (filteringLevel_ != other.filteringLevel_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(preamble_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, preamble_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INCLUDE_GROUNDING_SUPPORTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeGroundingSupports()); + hash = (37 * hash) + FILTERING_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + filteringLevel_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec - other = - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec) - obj; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - if (!getPreamble().equals(other.getPreamble())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PREAMBLE_FIELD_NUMBER; - hash = (53 * hash) + getPreamble().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.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.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - 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.v1beta.AnswerQueryRequest.GroundingSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.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.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - parseFrom( - 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.v1beta.AnswerQueryRequest.GroundingSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Grounding specification.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_GroundingSpec_descriptor; } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_GroundingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.Builder + .class); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + includeGroundingSupports_ = false; + filteringLevel_ = 0; + return this; } @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_GroundingSpec_descriptor; } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + .getDefaultInstance(); } - /** - * - * - *
            -       * Answer generation prompt specification.
            -       * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec) - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_PromptSpec_descriptor; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_PromptSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec.Builder.class); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } - // Construct using - // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.includeGroundingSupports_ = includeGroundingSupports_; } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - preamble_ = ""; - return this; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filteringLevel_ = filteringLevel_; } + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_PromptSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec.getDefaultInstance(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec) other); + } else { + super.mergeFrom(other); + return this; } + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - build() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + .getDefaultInstance()) return this; + if (other.getIncludeGroundingSupports() != false) { + setIncludeGroundingSupports(other.getIncludeGroundingSupports()); } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec - result = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .AnswerGenerationSpec.PromptSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; + if (other.filteringLevel_ != 0) { + setFilteringLevelValue(other.getFilteringLevelValue()); } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.preamble_ = preamble_; - } - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec) - other); - } else { - super.mergeFrom(other); - return 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(); } - - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec.getDefaultInstance()) return this; - if (!other.getPreamble().isEmpty()) { - preamble_ = other.preamble_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: + { + includeGroundingSupports_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 16 + case 24: + { + filteringLevel_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { onChanged(); - return this; - } + } // finally + return this; + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + private int bitField0_; - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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: - { - preamble_ = 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 boolean includeGroundingSupports_; - private int bitField0_; + /** + * + * + *
            +       * Optional. Specifies whether to include grounding_supports in the answer.
            +       * The default value is `false`.
            +       *
            +       * When this field is set to `true`, returned answer will have
            +       * `grounding_score` and will contain GroundingSupports for each claim.
            +       * 
            + * + * bool include_grounding_supports = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeGroundingSupports. + */ + @java.lang.Override + public boolean getIncludeGroundingSupports() { + return includeGroundingSupports_; + } - private java.lang.Object preamble_ = ""; + /** + * + * + *
            +       * Optional. Specifies whether to include grounding_supports in the answer.
            +       * The default value is `false`.
            +       *
            +       * When this field is set to `true`, returned answer will have
            +       * `grounding_score` and will contain GroundingSupports for each claim.
            +       * 
            + * + * bool include_grounding_supports = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The includeGroundingSupports to set. + * @return This builder for chaining. + */ + public Builder setIncludeGroundingSupports(boolean value) { - /** - * - * - *
            -         * Customized preamble.
            -         * 
            - * - * string preamble = 1; - * - * @return The preamble. - */ - public java.lang.String getPreamble() { - java.lang.Object ref = preamble_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - preamble_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + includeGroundingSupports_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
            -         * Customized preamble.
            -         * 
            - * - * string preamble = 1; - * - * @return The bytes for preamble. - */ - public com.google.protobuf.ByteString getPreambleBytes() { - java.lang.Object ref = preamble_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - preamble_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
            -         * Customized preamble.
            -         * 
            - * - * string preamble = 1; - * - * @param value The preamble to set. - * @return This builder for chaining. - */ - public Builder setPreamble(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - preamble_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
            -         * Customized preamble.
            -         * 
            - * - * string preamble = 1; - * - * @return This builder for chaining. - */ - public Builder clearPreamble() { - preamble_ = getDefaultInstance().getPreamble(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
            -         * Customized preamble.
            -         * 
            - * - * string preamble = 1; - * - * @param value The bytes for preamble to set. - * @return This builder for chaining. - */ - public Builder setPreambleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - preamble_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec) + /** + * + * + *
            +       * Optional. Specifies whether to include grounding_supports in the answer.
            +       * The default value is `false`.
            +       *
            +       * When this field is set to `true`, returned answer will have
            +       * `grounding_score` and will contain GroundingSupports for each claim.
            +       * 
            + * + * bool include_grounding_supports = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIncludeGroundingSupports() { + bitField0_ = (bitField0_ & ~0x00000001); + includeGroundingSupports_ = false; + onChanged(); + return this; } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec) - private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .AnswerGenerationSpec.PromptSpec - DEFAULT_INSTANCE; + private int filteringLevel_ = 0; - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec(); + /** + * + * + *
            +       * Optional. Specifies whether to enable the filtering based on grounding
            +       * score and at what level.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for filteringLevel. + */ + @java.lang.Override + public int getFilteringLevelValue() { + return filteringLevel_; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - getDefaultInstance() { - return DEFAULT_INSTANCE; + /** + * + * + *
            +       * Optional. Specifies whether to enable the filtering based on grounding
            +       * score and at what level.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for filteringLevel to set. + * @return This builder for chaining. + */ + public Builder setFilteringLevelValue(int value) { + filteringLevel_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PromptSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; + /** + * + * + *
            +       * Optional. Specifies whether to enable the filtering based on grounding
            +       * score and at what level.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filteringLevel. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel + getFilteringLevel() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel + result = + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + .FilteringLevel.forNumber(filteringLevel_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + .FilteringLevel.UNRECOGNIZED + : result; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + /** + * + * + *
            +       * Optional. Specifies whether to enable the filtering based on grounding
            +       * score and at what level.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The filteringLevel to set. + * @return This builder for chaining. + */ + public Builder setFilteringLevel( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + filteringLevel_ = value.getNumber(); + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + /** + * + * + *
            +       * Optional. Specifies whether to enable the filtering based on grounding
            +       * score and at what level.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec.FilteringLevel filtering_level = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearFilteringLevel() { + bitField0_ = (bitField0_ & ~0x00000002); + filteringLevel_ = 0; + onChanged(); + return this; } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec) } - private int bitField0_; - public static final int MODEL_SPEC_FIELD_NUMBER = 1; - private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec - modelSpec_; + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.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.v1beta.AnswerQueryRequest.GroundingSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AnswerGenerationSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec) + com.google.protobuf.MessageOrBuilder { /** * @@ -3764,10 +3983,7 @@ public com.google.protobuf.Parser getParserForType() { * * @return Whether the modelSpec field is set. */ - @java.lang.Override - public boolean hasModelSpec() { - return ((bitField0_ & 0x00000001) != 0); - } + boolean hasModelSpec(); /** * @@ -3782,14 +3998,8 @@ public boolean hasModelSpec() { * * @return The modelSpec. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec - getModelSpec() { - return modelSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec.getDefaultInstance() - : modelSpec_; - } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec + getModelSpec(); /** * @@ -3802,20 +4012,9 @@ public boolean hasModelSpec() { * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; * */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec .ModelSpecOrBuilder - getModelSpecOrBuilder() { - return modelSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec.getDefaultInstance() - : modelSpec_; - } - - public static final int PROMPT_SPEC_FIELD_NUMBER = 2; - private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - promptSpec_; + getModelSpecOrBuilder(); /** * @@ -3830,10 +4029,7 @@ public boolean hasModelSpec() { * * @return Whether the promptSpec field is set. */ - @java.lang.Override - public boolean hasPromptSpec() { - return ((bitField0_ & 0x00000002) != 0); - } + boolean hasPromptSpec(); /** * @@ -3848,15 +4044,8 @@ public boolean hasPromptSpec() { * * @return The promptSpec. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - getPromptSpec() { - return promptSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec.getDefaultInstance() - : promptSpec_; - } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec + getPromptSpec(); /** * @@ -3869,18 +4058,9 @@ public boolean hasPromptSpec() { * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; * */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec .PromptSpecOrBuilder - getPromptSpecOrBuilder() { - return promptSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec.getDefaultInstance() - : promptSpec_; - } - - public static final int INCLUDE_CITATIONS_FIELD_NUMBER = 3; - private boolean includeCitations_ = false; + getPromptSpecOrBuilder(); /** * @@ -3894,15 +4074,7 @@ public boolean hasPromptSpec() { * * @return The includeCitations. */ - @java.lang.Override - public boolean getIncludeCitations() { - return includeCitations_; - } - - public static final int ANSWER_LANGUAGE_CODE_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object answerLanguageCode_ = ""; + boolean getIncludeCitations(); /** * @@ -3917,18 +4089,7 @@ public boolean getIncludeCitations() { * * @return The answerLanguageCode. */ - @java.lang.Override - public java.lang.String getAnswerLanguageCode() { - java.lang.Object ref = answerLanguageCode_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - answerLanguageCode_ = s; - return s; - } - } + java.lang.String getAnswerLanguageCode(); /** * @@ -3943,21 +4104,7 @@ public java.lang.String getAnswerLanguageCode() { * * @return The bytes for answerLanguageCode. */ - @java.lang.Override - public com.google.protobuf.ByteString getAnswerLanguageCodeBytes() { - java.lang.Object ref = answerLanguageCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - answerLanguageCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IGNORE_ADVERSARIAL_QUERY_FIELD_NUMBER = 5; - private boolean ignoreAdversarialQuery_ = false; + com.google.protobuf.ByteString getAnswerLanguageCodeBytes(); /** * @@ -3979,13 +4126,7 @@ public com.google.protobuf.ByteString getAnswerLanguageCodeBytes() { * * @return The ignoreAdversarialQuery. */ - @java.lang.Override - public boolean getIgnoreAdversarialQuery() { - return ignoreAdversarialQuery_; - } - - public static final int IGNORE_NON_ANSWER_SEEKING_QUERY_FIELD_NUMBER = 6; - private boolean ignoreNonAnswerSeekingQuery_ = false; + boolean getIgnoreAdversarialQuery(); /** * @@ -4005,13 +4146,7 @@ public boolean getIgnoreAdversarialQuery() { * * @return The ignoreNonAnswerSeekingQuery. */ - @java.lang.Override - public boolean getIgnoreNonAnswerSeekingQuery() { - return ignoreNonAnswerSeekingQuery_; - } - - public static final int IGNORE_LOW_RELEVANT_CONTENT_FIELD_NUMBER = 7; - private boolean ignoreLowRelevantContent_ = false; + boolean getIgnoreNonAnswerSeekingQuery(); /** * @@ -4028,10 +4163,7 @@ public boolean getIgnoreNonAnswerSeekingQuery() { * * @return Whether the ignoreLowRelevantContent field is set. */ - @java.lang.Override - public boolean hasIgnoreLowRelevantContent() { - return ((bitField0_ & 0x00000004) != 0); - } + boolean hasIgnoreLowRelevantContent(); /** * @@ -4048,13 +4180,7 @@ public boolean hasIgnoreLowRelevantContent() { * * @return The ignoreLowRelevantContent. */ - @java.lang.Override - public boolean getIgnoreLowRelevantContent() { - return ignoreLowRelevantContent_; - } - - public static final int IGNORE_JAIL_BREAKING_QUERY_FIELD_NUMBER = 8; - private boolean ignoreJailBreakingQuery_ = false; + boolean getIgnoreLowRelevantContent(); /** * @@ -4077,6408 +4203,14516 @@ public boolean getIgnoreLowRelevantContent() { * * @return The ignoreJailBreakingQuery. */ - @java.lang.Override - public boolean getIgnoreJailBreakingQuery() { - return ignoreJailBreakingQuery_; - } + boolean getIgnoreJailBreakingQuery(); - private byte memoizedIsInitialized = -1; + /** + * + * + *
            +     * Optional. Multimodal specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec multimodal_spec = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multimodalSpec field is set. + */ + boolean hasMultimodalSpec(); - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * + * + *
            +     * Optional. Multimodal specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec multimodal_spec = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multimodalSpec. + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec + getMultimodalSpec(); - memoizedIsInitialized = 1; - return true; + /** + * + * + *
            +     * Optional. Multimodal specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec multimodal_spec = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpecOrBuilder + getMultimodalSpecOrBuilder(); + } + + /** + * + * + *
            +   * Answer generation specification.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec} + */ + public static final class AnswerGenerationSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec) + AnswerGenerationSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AnswerGenerationSpec"); } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getModelSpec()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getPromptSpec()); - } - if (includeCitations_ != false) { - output.writeBool(3, includeCitations_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerLanguageCode_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, answerLanguageCode_); - } - if (ignoreAdversarialQuery_ != false) { - output.writeBool(5, ignoreAdversarialQuery_); - } - if (ignoreNonAnswerSeekingQuery_ != false) { - output.writeBool(6, ignoreNonAnswerSeekingQuery_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeBool(7, ignoreLowRelevantContent_); - } - if (ignoreJailBreakingQuery_ != false) { - output.writeBool(8, ignoreJailBreakingQuery_); - } - getUnknownFields().writeTo(output); + // Use AnswerGenerationSpec.newBuilder() to construct. + private AnswerGenerationSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); } - @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, getModelSpec()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPromptSpec()); - } - if (includeCitations_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, includeCitations_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerLanguageCode_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, answerLanguageCode_); - } - if (ignoreAdversarialQuery_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, ignoreAdversarialQuery_); - } - if (ignoreNonAnswerSeekingQuery_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(6, ignoreNonAnswerSeekingQuery_); - } - 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; + private AnswerGenerationSpec() { + answerLanguageCode_ = ""; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec other = - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec) obj; - - if (hasModelSpec() != other.hasModelSpec()) return false; - if (hasModelSpec()) { - if (!getModelSpec().equals(other.getModelSpec())) return false; - } - if (hasPromptSpec() != other.hasPromptSpec()) return false; - if (hasPromptSpec()) { - if (!getPromptSpec().equals(other.getPromptSpec())) return false; - } - if (getIncludeCitations() != other.getIncludeCitations()) return false; - if (!getAnswerLanguageCode().equals(other.getAnswerLanguageCode())) return false; - if (getIgnoreAdversarialQuery() != other.getIgnoreAdversarialQuery()) return false; - if (getIgnoreNonAnswerSeekingQuery() != other.getIgnoreNonAnswerSeekingQuery()) return false; - if (hasIgnoreLowRelevantContent() != other.hasIgnoreLowRelevantContent()) return false; - if (hasIgnoreLowRelevantContent()) { - if (getIgnoreLowRelevantContent() != other.getIgnoreLowRelevantContent()) return false; - } - if (getIgnoreJailBreakingQuery() != other.getIgnoreJailBreakingQuery()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_descriptor; } @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasModelSpec()) { - hash = (37 * hash) + MODEL_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getModelSpec().hashCode(); - } - if (hasPromptSpec()) { - hash = (37 * hash) + PROMPT_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getPromptSpec().hashCode(); - } - hash = (37 * hash) + INCLUDE_CITATIONS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeCitations()); - hash = (37 * hash) + ANSWER_LANGUAGE_CODE_FIELD_NUMBER; - hash = (53 * hash) + getAnswerLanguageCode().hashCode(); - hash = (37 * hash) + IGNORE_ADVERSARIAL_QUERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreAdversarialQuery()); - hash = (37 * hash) + IGNORE_NON_ANSWER_SEEKING_QUERY_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreNonAnswerSeekingQuery()); - if (hasIgnoreLowRelevantContent()) { - 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()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .Builder.class); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public interface ModelSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec) + com.google.protobuf.MessageOrBuilder { - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +       * Model version. If not set, it will use the default stable model.
            +       * Allowed values are: stable, preview.
            +       * 
            + * + * string model_version = 1; + * + * @return The modelVersion. + */ + java.lang.String getModelVersion(); - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
            +       * Model version. If not set, it will use the default stable model.
            +       * Allowed values are: stable, preview.
            +       * 
            + * + * string model_version = 1; + * + * @return The bytes for modelVersion. + */ + com.google.protobuf.ByteString getModelVersionBytes(); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +     * Answer Generation Model specification.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec} + */ + public static final class ModelSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec) + ModelSpecOrBuilder { + private static final long serialVersionUID = 0L; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ModelSpec"); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + // Use ModelSpec.newBuilder() to construct. + private ModelSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + private ModelSpec() { + modelVersion_ = ""; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
            -     * Answer generation specification.
            -     * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec) - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_descriptor; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_ModelSpec_descriptor; + } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_ModelSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .class, + .ModelSpec.class, com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .Builder.class); + .ModelSpec.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public static final int MODEL_VERSION_FIELD_NUMBER = 1; - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + @SuppressWarnings("serial") + private volatile java.lang.Object modelVersion_ = ""; - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetModelSpecFieldBuilder(); - internalGetPromptSpecFieldBuilder(); + /** + * + * + *
            +       * Model version. If not set, it will use the default stable model.
            +       * Allowed values are: stable, preview.
            +       * 
            + * + * string model_version = 1; + * + * @return The modelVersion. + */ + @java.lang.Override + public java.lang.String getModelVersion() { + java.lang.Object ref = modelVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersion_ = s; + return s; } } + /** + * + * + *
            +       * Model version. If not set, it will use the default stable model.
            +       * Allowed values are: stable, preview.
            +       * 
            + * + * string model_version = 1; + * + * @return The bytes for modelVersion. + */ @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - modelSpec_ = null; - if (modelSpecBuilder_ != null) { - modelSpecBuilder_.dispose(); - modelSpecBuilder_ = null; - } - promptSpec_ = null; - if (promptSpecBuilder_ != null) { - promptSpecBuilder_.dispose(); - promptSpecBuilder_ = null; + public com.google.protobuf.ByteString getModelVersionBytes() { + java.lang.Object ref = modelVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - includeCitations_ = false; - answerLanguageCode_ = ""; - ignoreAdversarialQuery_ = false; - ignoreNonAnswerSeekingQuery_ = false; - ignoreLowRelevantContent_ = false; - ignoreJailBreakingQuery_ = false; - return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_descriptor; - } + private byte memoizedIsInitialized = -1; @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .getDefaultInstance(); + 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.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - build() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, modelVersion_); } - return result; + getUnknownFields().writeTo(output); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec result = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.modelSpec_ = modelSpecBuilder_ == null ? modelSpec_ : modelSpecBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.promptSpec_ = - promptSpecBuilder_ == null ? promptSpec_ : promptSpecBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.includeCitations_ = includeCitations_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.answerLanguageCode_ = answerLanguageCode_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.ignoreAdversarialQuery_ = ignoreAdversarialQuery_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.ignoreNonAnswerSeekingQuery_ = ignoreNonAnswerSeekingQuery_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.ignoreLowRelevantContent_ = ignoreLowRelevantContent_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.ignoreJailBreakingQuery_ = ignoreJailBreakingQuery_; + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, modelVersion_); } - result.bitField0_ |= to_bitField0_; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec) - other); - } else { - super.mergeFrom(other); - return this; + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec)) { + return super.equals(obj); } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec + other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec) + obj; + + if (!getModelVersion().equals(other.getModelVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec other) { - if (other - == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .getDefaultInstance()) return this; - if (other.hasModelSpec()) { - mergeModelSpec(other.getModelSpec()); - } - if (other.hasPromptSpec()) { - mergePromptSpec(other.getPromptSpec()); - } - if (other.getIncludeCitations() != false) { - setIncludeCitations(other.getIncludeCitations()); - } - if (!other.getAnswerLanguageCode().isEmpty()) { - answerLanguageCode_ = other.answerLanguageCode_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.getIgnoreAdversarialQuery() != false) { - setIgnoreAdversarialQuery(other.getIgnoreAdversarialQuery()); - } - if (other.getIgnoreNonAnswerSeekingQuery() != false) { - setIgnoreNonAnswerSeekingQuery(other.getIgnoreNonAnswerSeekingQuery()); - } - if (other.hasIgnoreLowRelevantContent()) { - setIgnoreLowRelevantContent(other.getIgnoreLowRelevantContent()); - } - if (other.getIgnoreJailBreakingQuery() != false) { - setIgnoreJailBreakingQuery(other.getIgnoreJailBreakingQuery()); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MODEL_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getModelVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - @java.lang.Override - public final boolean isInitialized() { - return true; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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( - internalGetModelSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetPromptSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - includeCitations_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - answerLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - ignoreAdversarialQuery_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: - { - ignoreNonAnswerSeekingQuery_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: - { - ignoreLowRelevantContent_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: - { - ignoreJailBreakingQuery_ = input.readBool(); - bitField0_ |= 0x00000080; - break; - } // case 64 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - private int bitField0_; - - private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec .ModelSpec - modelSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpecOrBuilder> - modelSpecBuilder_; - - /** - * - * - *
            -       * Answer generation model specification.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; - * - * - * @return Whether the modelSpec field is set. - */ - public boolean hasModelSpec() { - return ((bitField0_ & 0x00000001) != 0); + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * - * - *
            -       * Answer generation model specification.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; - * - * - * @return The modelSpec. - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec .ModelSpec - getModelSpec() { - if (modelSpecBuilder_ == null) { - return modelSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec.getDefaultInstance() - : modelSpec_; - } else { - return modelSpecBuilder_.getMessage(); - } + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - * - * - *
            -       * Answer generation model specification.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; - * - */ - public Builder setModelSpec( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec - value) { - if (modelSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - modelSpec_ = value; - } else { - modelSpecBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * - * - *
            -       * Answer generation model specification.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; - * - */ - public Builder setModelSpec( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec - .Builder - builderForValue) { - if (modelSpecBuilder_ == null) { - modelSpec_ = builderForValue.build(); - } else { - modelSpecBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - * - * - *
            -       * Answer generation model specification.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; - * - */ - public Builder mergeModelSpec( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec - value) { - if (modelSpecBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && modelSpec_ != null - && modelSpec_ - != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec.getDefaultInstance()) { - getModelSpecBuilder().mergeFrom(value); - } else { - modelSpec_ = value; - } - } else { - modelSpecBuilder_.mergeFrom(value); - } - if (modelSpec_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - /** - * - * - *
            -       * Answer generation model specification.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; - * - */ - public Builder clearModelSpec() { - bitField0_ = (bitField0_ & ~0x00000001); - modelSpec_ = null; - if (modelSpecBuilder_ != null) { - modelSpecBuilder_.dispose(); - modelSpecBuilder_ = null; - } - onChanged(); - return this; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - /** - * - * - *
            -       * Answer generation model specification.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec.Builder - getModelSpecBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetModelSpecFieldBuilder().getBuilder(); + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - /** - * - * - *
            -       * Answer generation model specification.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpecOrBuilder - getModelSpecOrBuilder() { - if (modelSpecBuilder_ != null) { - return modelSpecBuilder_.getMessageOrBuilder(); - } else { - return modelSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec.getDefaultInstance() - : modelSpec_; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - /** - * - * - *
            -       * Answer generation model specification.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpecOrBuilder> - internalGetModelSpecFieldBuilder() { - if (modelSpecBuilder_ == null) { - modelSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpec.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .ModelSpecOrBuilder>(getModelSpec(), getParentForChildren(), isClean()); - modelSpec_ = null; - } - return modelSpecBuilder_; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - promptSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpecOrBuilder> - promptSpecBuilder_; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -       * Answer generation prompt specification.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; - * - * - * @return Whether the promptSpec field is set. - */ - public boolean hasPromptSpec() { - return ((bitField0_ & 0x00000002) != 0); + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - /** - * - * - *
            -       * Answer generation prompt specification.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; - * - * - * @return The promptSpec. - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec - getPromptSpec() { - if (promptSpecBuilder_ == null) { - return promptSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec.getDefaultInstance() - : promptSpec_; - } else { - return promptSpecBuilder_.getMessage(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - /** - * - * - *
            -       * Answer generation prompt specification.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; - * - */ - public Builder setPromptSpec( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec - value) { - if (promptSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - promptSpec_ = value; - } else { - promptSpecBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * * *
            -       * Answer generation prompt specification.
            +       * Answer Generation Model specification.
                    * 
            * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; - * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec} */ - public Builder setPromptSpec( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec - .Builder - builderForValue) { - if (promptSpecBuilder_ == null) { - promptSpec_ = builderForValue.build(); - } else { - promptSpecBuilder_.setMessage(builderForValue.build()); + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_ModelSpec_descriptor; } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
            -       * Answer generation prompt specification.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; - * - */ - public Builder mergePromptSpec( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec - value) { - if (promptSpecBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && promptSpec_ != null - && promptSpec_ - != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec.getDefaultInstance()) { - getPromptSpecBuilder().mergeFrom(value); - } else { - promptSpec_ = value; - } - } else { - promptSpecBuilder_.mergeFrom(value); - } - if (promptSpec_ != null) { - bitField0_ |= 0x00000002; - onChanged(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_ModelSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec.Builder.class); } - return this; - } - /** - * - * - *
            -       * Answer generation prompt specification.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; - * - */ - public Builder clearPromptSpec() { - bitField0_ = (bitField0_ & ~0x00000002); - promptSpec_ = null; - if (promptSpecBuilder_ != null) { - promptSpecBuilder_.dispose(); - promptSpecBuilder_ = null; - } - onChanged(); - return this; - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec.newBuilder() + private Builder() {} - /** - * - * - *
            -       * Answer generation prompt specification.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; - * - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec.Builder - getPromptSpecBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetPromptSpecFieldBuilder().getBuilder(); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - /** - * - * - *
            -       * Answer generation prompt specification.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; - * - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpecOrBuilder - getPromptSpecOrBuilder() { - if (promptSpecBuilder_ != null) { - return promptSpecBuilder_.getMessageOrBuilder(); - } else { - return promptSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec.getDefaultInstance() - : promptSpec_; + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modelVersion_ = ""; + return this; } - } - /** - * - * - *
            -       * Answer generation prompt specification.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpecOrBuilder> - internalGetPromptSpecFieldBuilder() { - if (promptSpecBuilder_ == null) { - promptSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpec.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - .PromptSpecOrBuilder>(getPromptSpec(), getParentForChildren(), isClean()); - promptSpec_ = null; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_ModelSpec_descriptor; } - return promptSpecBuilder_; - } - private boolean includeCitations_; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec.getDefaultInstance(); + } - /** - * - * - *
            -       * Specifies whether to include citation metadata in the answer. The default
            -       * value is `false`.
            -       * 
            - * - * bool include_citations = 3; - * - * @return The includeCitations. - */ - @java.lang.Override - public boolean getIncludeCitations() { - return includeCitations_; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * - * - *
            -       * Specifies whether to include citation metadata in the answer. The default
            -       * value is `false`.
            -       * 
            - * - * bool include_citations = 3; - * - * @param value The includeCitations to set. - * @return This builder for chaining. - */ - public Builder setIncludeCitations(boolean value) { + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec + result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .AnswerGenerationSpec.ModelSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - includeCitations_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelVersion_ = modelVersion_; + } + } - /** - * - * - *
            -       * Specifies whether to include citation metadata in the answer. The default
            -       * value is `false`.
            -       * 
            - * - * bool include_citations = 3; - * - * @return This builder for chaining. - */ - public Builder clearIncludeCitations() { - bitField0_ = (bitField0_ & ~0x00000004); - includeCitations_ = false; - onChanged(); - return this; - } - - private java.lang.Object answerLanguageCode_ = ""; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * - * - *
            -       * Language code for Answer. Use language tags defined by
            -       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            -       * Note: This is an experimental feature.
            -       * 
            - * - * string answer_language_code = 4; - * - * @return The answerLanguageCode. - */ - public java.lang.String getAnswerLanguageCode() { - java.lang.Object ref = answerLanguageCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - answerLanguageCode_ = s; - return s; - } else { - return (java.lang.String) ref; + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec.getDefaultInstance()) return this; + if (!other.getModelVersion().isEmpty()) { + modelVersion_ = other.modelVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } - } - /** - * - * - *
            -       * Language code for Answer. Use language tags defined by
            -       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            -       * Note: This is an experimental feature.
            -       * 
            - * - * string answer_language_code = 4; - * - * @return The bytes for answerLanguageCode. - */ - public com.google.protobuf.ByteString getAnswerLanguageCodeBytes() { - java.lang.Object ref = answerLanguageCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - answerLanguageCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + public final boolean isInitialized() { + return true; } - } - /** - * - * - *
            -       * Language code for Answer. Use language tags defined by
            -       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            -       * Note: This is an experimental feature.
            -       * 
            - * - * string answer_language_code = 4; - * - * @param value The answerLanguageCode to set. - * @return This builder for chaining. - */ - public Builder setAnswerLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + modelVersion_ = 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; } - answerLanguageCode_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - * - * - *
            -       * Language code for Answer. Use language tags defined by
            -       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            -       * Note: This is an experimental feature.
            -       * 
            - * - * string answer_language_code = 4; - * - * @return This builder for chaining. - */ - public Builder clearAnswerLanguageCode() { - answerLanguageCode_ = getDefaultInstance().getAnswerLanguageCode(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } + private int bitField0_; - /** - * - * - *
            -       * Language code for Answer. Use language tags defined by
            -       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            -       * Note: This is an experimental feature.
            -       * 
            - * - * string answer_language_code = 4; - * - * @param value The bytes for answerLanguageCode to set. - * @return This builder for chaining. - */ - public Builder setAnswerLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private java.lang.Object modelVersion_ = ""; + + /** + * + * + *
            +         * Model version. If not set, it will use the default stable model.
            +         * Allowed values are: stable, preview.
            +         * 
            + * + * string model_version = 1; + * + * @return The modelVersion. + */ + public java.lang.String getModelVersion() { + java.lang.Object ref = modelVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - checkByteStringIsUtf8(value); - answerLanguageCode_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - private boolean ignoreAdversarialQuery_; + /** + * + * + *
            +         * Model version. If not set, it will use the default stable model.
            +         * Allowed values are: stable, preview.
            +         * 
            + * + * string model_version = 1; + * + * @return The bytes for modelVersion. + */ + public com.google.protobuf.ByteString getModelVersionBytes() { + java.lang.Object ref = modelVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Model version. If not set, it will use the default stable model.
            +         * Allowed values are: stable, preview.
            +         * 
            + * + * string model_version = 1; + * + * @param value The modelVersion to set. + * @return This builder for chaining. + */ + public Builder setModelVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Model version. If not set, it will use the default stable model.
            +         * Allowed values are: stable, preview.
            +         * 
            + * + * string model_version = 1; + * + * @return This builder for chaining. + */ + public Builder clearModelVersion() { + modelVersion_ = getDefaultInstance().getModelVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Model version. If not set, it will use the default stable model.
            +         * Allowed values are: stable, preview.
            +         * 
            + * + * string model_version = 1; + * + * @param value The bytes for modelVersion to set. + * @return This builder for chaining. + */ + public Builder setModelVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .AnswerGenerationSpec.ModelSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; + } - /** - * - * - *
            -       * Specifies whether to filter out adversarial queries. The default value
            -       * is `false`.
            -       *
            -       * Google employs search-query classification to detect adversarial
            -       * queries. No answer is returned if the search query is classified as an
            -       * adversarial query. For example, a user might ask a question regarding
            -       * negative comments about the company or submit a query designed to
            -       * generate unsafe, policy-violating output. If this field is set to
            -       * `true`, we skip generating answers for adversarial queries and return
            -       * fallback messages instead.
            -       * 
            - * - * bool ignore_adversarial_query = 5; - * - * @return The ignoreAdversarialQuery. - */ @java.lang.Override - public boolean getIgnoreAdversarialQuery() { - return ignoreAdversarialQuery_; + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + + public interface PromptSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec) + com.google.protobuf.MessageOrBuilder { /** * * *
            -       * Specifies whether to filter out adversarial queries. The default value
            -       * is `false`.
            -       *
            -       * Google employs search-query classification to detect adversarial
            -       * queries. No answer is returned if the search query is classified as an
            -       * adversarial query. For example, a user might ask a question regarding
            -       * negative comments about the company or submit a query designed to
            -       * generate unsafe, policy-violating output. If this field is set to
            -       * `true`, we skip generating answers for adversarial queries and return
            -       * fallback messages instead.
            +       * Customized preamble.
                    * 
            * - * bool ignore_adversarial_query = 5; + * string preamble = 1; * - * @param value The ignoreAdversarialQuery to set. - * @return This builder for chaining. + * @return The preamble. */ - public Builder setIgnoreAdversarialQuery(boolean value) { - - ignoreAdversarialQuery_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } + java.lang.String getPreamble(); /** * * *
            -       * Specifies whether to filter out adversarial queries. The default value
            -       * is `false`.
            -       *
            -       * Google employs search-query classification to detect adversarial
            -       * queries. No answer is returned if the search query is classified as an
            -       * adversarial query. For example, a user might ask a question regarding
            -       * negative comments about the company or submit a query designed to
            -       * generate unsafe, policy-violating output. If this field is set to
            -       * `true`, we skip generating answers for adversarial queries and return
            -       * fallback messages instead.
            +       * Customized preamble.
                    * 
            * - * bool ignore_adversarial_query = 5; + * string preamble = 1; * - * @return This builder for chaining. + * @return The bytes for preamble. */ - public Builder clearIgnoreAdversarialQuery() { - bitField0_ = (bitField0_ & ~0x00000010); - ignoreAdversarialQuery_ = false; - onChanged(); - return this; + com.google.protobuf.ByteString getPreambleBytes(); + } + + /** + * + * + *
            +     * Answer generation prompt specification.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec} + */ + public static final class PromptSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec) + PromptSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PromptSpec"); } - private boolean ignoreNonAnswerSeekingQuery_; + // Use PromptSpec.newBuilder() to construct. + private PromptSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PromptSpec() { + preamble_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_PromptSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_PromptSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec.Builder.class); + } + + public static final int PREAMBLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object preamble_ = ""; /** * * *
            -       * Specifies whether to filter out queries that are not answer-seeking.
            -       * The default value is `false`.
            -       *
            -       * Google employs search-query classification to detect answer-seeking
            -       * queries. No answer is returned if the search query is classified as a
            -       * non-answer seeking query. If this field is set to `true`, we skip
            -       * generating answers for non-answer seeking queries and return
            -       * fallback messages instead.
            +       * Customized preamble.
                    * 
            * - * bool ignore_non_answer_seeking_query = 6; + * string preamble = 1; * - * @return The ignoreNonAnswerSeekingQuery. + * @return The preamble. */ @java.lang.Override - public boolean getIgnoreNonAnswerSeekingQuery() { - return ignoreNonAnswerSeekingQuery_; + public java.lang.String getPreamble() { + java.lang.Object ref = preamble_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + preamble_ = s; + return s; + } } /** * * *
            -       * Specifies whether to filter out queries that are not answer-seeking.
            -       * The default value is `false`.
            -       *
            -       * Google employs search-query classification to detect answer-seeking
            -       * queries. No answer is returned if the search query is classified as a
            -       * non-answer seeking query. If this field is set to `true`, we skip
            -       * generating answers for non-answer seeking queries and return
            -       * fallback messages instead.
            +       * Customized preamble.
                    * 
            * - * bool ignore_non_answer_seeking_query = 6; + * string preamble = 1; * - * @param value The ignoreNonAnswerSeekingQuery to set. - * @return This builder for chaining. + * @return The bytes for preamble. */ - public Builder setIgnoreNonAnswerSeekingQuery(boolean value) { + @java.lang.Override + public com.google.protobuf.ByteString getPreambleBytes() { + java.lang.Object ref = preamble_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + preamble_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - ignoreNonAnswerSeekingQuery_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return 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; } - /** - * - * - *
            -       * Specifies whether to filter out queries that are not answer-seeking.
            -       * The default value is `false`.
            -       *
            -       * Google employs search-query classification to detect answer-seeking
            -       * queries. No answer is returned if the search query is classified as a
            -       * non-answer seeking query. If this field is set to `true`, we skip
            -       * generating answers for non-answer seeking queries and return
            -       * fallback messages instead.
            -       * 
            - * - * bool ignore_non_answer_seeking_query = 6; - * - * @return This builder for chaining. - */ - public Builder clearIgnoreNonAnswerSeekingQuery() { - bitField0_ = (bitField0_ & ~0x00000020); - ignoreNonAnswerSeekingQuery_ = false; - onChanged(); - return this; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(preamble_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, preamble_); + } + getUnknownFields().writeTo(output); } - private boolean ignoreLowRelevantContent_; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(preamble_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, preamble_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
            -       * Specifies whether to filter out queries that have low relevance.
            -       *
            -       * If this field is set to `false`, all search results are used regardless
            -       * 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; - * - * @return Whether the ignoreLowRelevantContent field is set. - */ @java.lang.Override - public boolean hasIgnoreLowRelevantContent() { - return ((bitField0_ & 0x00000040) != 0); + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec + other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec) + obj; + + if (!getPreamble().equals(other.getPreamble())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - /** - * - * - *
            -       * Specifies whether to filter out queries that have low relevance.
            -       *
            -       * If this field is set to `false`, all search results are used regardless
            -       * 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; - * - * @return The ignoreLowRelevantContent. - */ @java.lang.Override - public boolean getIgnoreLowRelevantContent() { - return ignoreLowRelevantContent_; + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PREAMBLE_FIELD_NUMBER; + hash = (53 * hash) + getPreamble().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - /** - * - * - *
            -       * Specifies whether to filter out queries that have low relevance.
            -       *
            -       * If this field is set to `false`, all search results are used regardless
            -       * 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; - * - * @param value The ignoreLowRelevantContent to set. - * @return This builder for chaining. - */ - public Builder setIgnoreLowRelevantContent(boolean value) { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - ignoreLowRelevantContent_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - * - * - *
            -       * Specifies whether to filter out queries that have low relevance.
            -       *
            -       * If this field is set to `false`, all search results are used regardless
            -       * 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; - * - * @return This builder for chaining. - */ - public Builder clearIgnoreLowRelevantContent() { - bitField0_ = (bitField0_ & ~0x00000040); - ignoreLowRelevantContent_ = false; - onChanged(); - return this; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - private boolean ignoreJailBreakingQuery_; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -       * 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_; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * - * - *
            -       * 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) { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - ignoreJailBreakingQuery_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * * *
            -       * Optional. 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.
            +       * Answer generation prompt specification.
                    * 
            * - * bool ignore_jail_breaking_query = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec} */ - public Builder clearIgnoreJailBreakingQuery() { - bitField0_ = (bitField0_ & ~0x00000080); - ignoreJailBreakingQuery_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec) - } + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_PromptSpec_descriptor; + } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec) - private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .AnswerGenerationSpec - DEFAULT_INSTANCE; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_PromptSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec.Builder.class); + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec(); - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec.newBuilder() + private Builder() {} - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnswerGenerationSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + preamble_ = ""; + return this; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_PromptSpec_descriptor; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec.getDefaultInstance(); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public interface SearchSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec + result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .AnswerGenerationSpec.PromptSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - /** - * - * - *
            -     * Search parameters.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; - * - * - * @return Whether the searchParams field is set. - */ - boolean hasSearchParams(); - - /** - * - * - *
            -     * Search parameters.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; - * - * - * @return The searchParams. - */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - getSearchParams(); - - /** - * - * - *
            -     * Search parameters.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; - * - */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder - getSearchParamsOrBuilder(); - - /** - * - * - *
            -     * Search result list.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; - * - * - * @return Whether the searchResultList field is set. - */ - boolean hasSearchResultList(); - - /** - * - * - *
            -     * Search result list.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; - * - * - * @return The searchResultList. - */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - getSearchResultList(); + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.preamble_ = preamble_; + } + } - /** - * - * - *
            -     * Search result list.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; - * - */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultListOrBuilder - getSearchResultListOrBuilder(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.InputCase getInputCase(); - } + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec.getDefaultInstance()) return this; + if (!other.getPreamble().isEmpty()) { + preamble_ = other.preamble_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
            -   * Search specification.
            -   * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec} - */ - public static final class SearchSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec) - SearchSpecOrBuilder { - private static final long serialVersionUID = 0L; + @java.lang.Override + public final boolean isInitialized() { + return true; + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "SearchSpec"); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + preamble_ = 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; + } - // Use SearchSpec.newBuilder() to construct. - private SearchSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + private int bitField0_; - private SearchSpec() {} + private java.lang.Object preamble_ = ""; - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_descriptor; - } + /** + * + * + *
            +         * Customized preamble.
            +         * 
            + * + * string preamble = 1; + * + * @return The preamble. + */ + public java.lang.String getPreamble() { + java.lang.Object ref = preamble_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + preamble_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.Builder.class); - } + /** + * + * + *
            +         * Customized preamble.
            +         * 
            + * + * string preamble = 1; + * + * @return The bytes for preamble. + */ + public com.google.protobuf.ByteString getPreambleBytes() { + java.lang.Object ref = preamble_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + preamble_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public interface SearchParamsOrBuilder + /** + * + * + *
            +         * Customized preamble.
            +         * 
            + * + * string preamble = 1; + * + * @param value The preamble to set. + * @return This builder for chaining. + */ + public Builder setPreamble(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + preamble_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Customized preamble.
            +         * 
            + * + * string preamble = 1; + * + * @return This builder for chaining. + */ + public Builder clearPreamble() { + preamble_ = getDefaultInstance().getPreamble(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Customized preamble.
            +         * 
            + * + * string preamble = 1; + * + * @param value The bytes for preamble to set. + * @return This builder for chaining. + */ + public Builder setPreambleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + preamble_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .AnswerGenerationSpec.PromptSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PromptSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MultimodalSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec) com.google.protobuf.MessageOrBuilder { /** * * *
            -       * Number of search results to return.
            -       * The default value is 10.
            +       * Optional. Source of image returned in the answer.
                    * 
            * - * int32 max_return_results = 1; + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec.ImageSource image_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The maxReturnResults. + * @return The enum numeric value on the wire for imageSource. */ - int getMaxReturnResults(); + int getImageSourceValue(); /** * * *
            -       * The filter syntax consists of an expression language for constructing
            -       * a predicate from one or more fields of the documents being filtered.
            -       * Filter expression is case-sensitive. This will be used to filter
            -       * search results which may affect the Answer response.
            -       *
            -       * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            -       *
            -       * Filtering in Vertex AI Search is done by mapping the LHS filter key
            -       * to a key property defined in the Vertex AI Search backend -- this
            -       * mapping is defined by the customer in their schema. For example a
            -       * media customers might have a field 'name' in their schema. In this
            -       * case the filter would look like this: filter --> name:'ANY("king
            -       * kong")'
            -       *
            -       * For more information about filtering including syntax and filter
            -       * operators, see
            -       * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +       * Optional. Source of image returned in the answer.
                    * 
            * - * string filter = 2; + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec.ImageSource image_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The filter. + * @return The imageSource. */ - java.lang.String getFilter(); + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec + .ImageSource + getImageSource(); + } - /** - * - * - *
            -       * The filter syntax consists of an expression language for constructing
            -       * a predicate from one or more fields of the documents being filtered.
            -       * Filter expression is case-sensitive. This will be used to filter
            -       * search results which may affect the Answer response.
            -       *
            -       * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            -       *
            -       * Filtering in Vertex AI Search is done by mapping the LHS filter key
            -       * to a key property defined in the Vertex AI Search backend -- this
            -       * mapping is defined by the customer in their schema. For example a
            -       * media customers might have a field 'name' in their schema. In this
            -       * case the filter would look like this: filter --> name:'ANY("king
            -       * kong")'
            -       *
            -       * For more information about filtering including syntax and filter
            -       * operators, see
            -       * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            -       * 
            - * - * string filter = 2; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); + /** + * + * + *
            +     * Multimodal specification: Will return an image from specified source.
            +     * If multiple sources are specified, the pick is a quality based decision.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec} + */ + public static final class MultimodalSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec) + MultimodalSpecOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
            -       * Boost specification to boost certain documents in search results which
            -       * may affect the answer query response. For more information on boosting,
            -       * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; - * - * @return Whether the boostSpec field is set. - */ - boolean hasBoostSpec(); + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MultimodalSpec"); + } - /** - * - * - *
            -       * Boost specification to boost certain documents in search results which
            -       * may affect the answer query response. For more information on boosting,
            -       * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; - * - * @return The boostSpec. - */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostSpec(); + // Use MultimodalSpec.newBuilder() to construct. + private MultimodalSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MultimodalSpec() { + imageSource_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_MultimodalSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_MultimodalSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.Builder.class); + } /** * * *
            -       * Boost specification to boost certain documents in search results which
            -       * may affect the answer query response. For more information on boosting,
            -       * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            +       * Specifies the image source.
                    * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec.ImageSource} */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder - getBoostSpecOrBuilder(); - - /** - * - * - *
            -       * The order in which documents are returned. Documents can be ordered
            -       * by a field in an
            -       * [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
            -       * it unset if ordered by relevance. `order_by` expression is
            -       * case-sensitive. For more information on ordering, see
            -       * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
            -       *
            -       * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            -       * 
            - * - * string order_by = 4; - * - * @return The orderBy. - */ - java.lang.String getOrderBy(); + public enum ImageSource implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +         * Unspecified image source (multimodal feature is disabled by default).
            +         * 
            + * + * IMAGE_SOURCE_UNSPECIFIED = 0; + */ + IMAGE_SOURCE_UNSPECIFIED(0), + /** + * + * + *
            +         * Behavior when service determines the pick from all available sources.
            +         * 
            + * + * ALL_AVAILABLE_SOURCES = 1; + */ + ALL_AVAILABLE_SOURCES(1), + /** + * + * + *
            +         * Includes image from corpus in the answer.
            +         * 
            + * + * CORPUS_IMAGE_ONLY = 2; + */ + CORPUS_IMAGE_ONLY(2), + /** + * + * + *
            +         * Triggers figure generation in the answer.
            +         * 
            + * + * FIGURE_GENERATION_ONLY = 3; + */ + FIGURE_GENERATION_ONLY(3), + UNRECOGNIZED(-1), + ; - /** - * - * - *
            -       * The order in which documents are returned. Documents can be ordered
            -       * by a field in an
            -       * [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
            -       * it unset if ordered by relevance. `order_by` expression is
            -       * case-sensitive. For more information on ordering, see
            -       * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
            -       *
            -       * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            -       * 
            - * - * string order_by = 4; - * - * @return The bytes for orderBy. - */ - com.google.protobuf.ByteString getOrderByBytes(); + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ImageSource"); + } - /** - * - * - *
            -       * Specifies the search result mode. If unspecified, the
            -       * search result mode defaults to `DOCUMENTS`.
            -       * See [parse and chunk
            -       * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; - * - * - * @return The enum numeric value on the wire for searchResultMode. - */ - int getSearchResultModeValue(); + /** + * + * + *
            +         * Unspecified image source (multimodal feature is disabled by default).
            +         * 
            + * + * IMAGE_SOURCE_UNSPECIFIED = 0; + */ + public static final int IMAGE_SOURCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +         * Behavior when service determines the pick from all available sources.
            +         * 
            + * + * ALL_AVAILABLE_SOURCES = 1; + */ + public static final int ALL_AVAILABLE_SOURCES_VALUE = 1; + + /** + * + * + *
            +         * Includes image from corpus in the answer.
            +         * 
            + * + * CORPUS_IMAGE_ONLY = 2; + */ + public static final int CORPUS_IMAGE_ONLY_VALUE = 2; + + /** + * + * + *
            +         * Triggers figure generation in the answer.
            +         * 
            + * + * FIGURE_GENERATION_ONLY = 3; + */ + public static final int FIGURE_GENERATION_ONLY_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 ImageSource 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 ImageSource forNumber(int value) { + switch (value) { + case 0: + return IMAGE_SOURCE_UNSPECIFIED; + case 1: + return ALL_AVAILABLE_SOURCES; + case 2: + return CORPUS_IMAGE_ONLY; + case 3: + return FIGURE_GENERATION_ONLY; + 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 ImageSource findValueByNumber(int number) { + return ImageSource.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ImageSource[] VALUES = values(); + + public static ImageSource 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 ImageSource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec.ImageSource) + } + + public static final int IMAGE_SOURCE_FIELD_NUMBER = 3; + private int imageSource_ = 0; /** * * *
            -       * Specifies the search result mode. If unspecified, the
            -       * search result mode defaults to `DOCUMENTS`.
            -       * See [parse and chunk
            -       * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
            +       * Optional. Source of image returned in the answer.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec.ImageSource image_source = 3 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The searchResultMode. + * @return The enum numeric value on the wire for imageSource. */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode - getSearchResultMode(); + @java.lang.Override + public int getImageSourceValue() { + return imageSource_; + } /** * * *
            -       * 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 use the specs at the top level.
            +       * Optional. Source of image returned in the answer.
                    * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec.ImageSource image_source = 3 [(.google.api.field_behavior) = OPTIONAL]; * - */ - java.util.List - getDataStoreSpecsList(); - - /** - * * - *
            -       * 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 use the specs at the top level.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * + * @return The imageSource. */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec getDataStoreSpecs( - int index); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.ImageSource + getImageSource() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.ImageSource + result = + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.ImageSource.forNumber(imageSource_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.ImageSource.UNRECOGNIZED + : result; + } - /** - * - * - *
            -       * 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 use the specs at the top level.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - int getDataStoreSpecsCount(); + private byte memoizedIsInitialized = -1; - /** - * - * - *
            -       * 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 use the specs at the top level.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> - getDataStoreSpecsOrBuilderList(); + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * - * - *
            -       * 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 use the specs at the top level.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder - getDataStoreSpecsOrBuilder(int index); + memoizedIsInitialized = 1; + return true; + } - /** - * - * - *
            -       * Optional. Specification to enable natural language understanding
            -       * capabilities for search requests.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the naturalLanguageQueryUnderstandingSpec field is set. - */ - boolean hasNaturalLanguageQueryUnderstandingSpec(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (imageSource_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.ImageSource.IMAGE_SOURCE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, imageSource_); + } + getUnknownFields().writeTo(output); + } - /** - * - * - *
            -       * Optional. Specification to enable natural language understanding
            -       * capabilities for search requests.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The naturalLanguageQueryUnderstandingSpec. - */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec - getNaturalLanguageQueryUnderstandingSpec(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - * - * - *
            -       * Optional. Specification to enable natural language understanding
            -       * capabilities for search requests.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpecOrBuilder - getNaturalLanguageQueryUnderstandingSpecOrBuilder(); - } + size = 0; + if (imageSource_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.ImageSource.IMAGE_SOURCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, imageSource_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
            -     * Search parameters.
            -     * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams} - */ - public static final class SearchParams extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) - SearchParamsOrBuilder { - private static final long serialVersionUID = 0L; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec) + obj; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "SearchParams"); + if (imageSource_ != other.imageSource_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - // Use SearchParams.newBuilder() to construct. - private SearchParams(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + IMAGE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + imageSource_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - private SearchParams() { - filter_ = ""; - orderBy_ = ""; - searchResultMode_ = 0; - dataStoreSpecs_ = java.util.Collections.emptyList(); + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchParams_descriptor; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - .class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - .Builder.class); + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - private int bitField0_; - public static final int MAX_RETURN_RESULTS_FIELD_NUMBER = 1; - private int maxReturnResults_ = 0; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -       * Number of search results to return.
            -       * The default value is 10.
            -       * 
            - * - * int32 max_return_results = 1; - * - * @return The maxReturnResults. - */ - @java.lang.Override - public int getMaxReturnResults() { - return maxReturnResults_; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - public static final int FILTER_FIELD_NUMBER = 2; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @SuppressWarnings("serial") - private volatile java.lang.Object filter_ = ""; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
            -       * The filter syntax consists of an expression language for constructing
            -       * a predicate from one or more fields of the documents being filtered.
            -       * Filter expression is case-sensitive. This will be used to filter
            -       * search results which may affect the Answer response.
            -       *
            -       * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            -       *
            -       * Filtering in Vertex AI Search is done by mapping the LHS filter key
            -       * to a key property defined in the Vertex AI Search backend -- this
            -       * mapping is defined by the customer in their schema. For example a
            -       * media customers might have a field 'name' in their schema. In this
            -       * case the filter would look like this: filter --> name:'ANY("king
            -       * kong")'
            -       *
            -       * For more information about filtering including syntax and filter
            -       * operators, see
            -       * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            -       * 
            - * - * string filter = 2; - * - * @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; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - /** - * - * - *
            -       * The filter syntax consists of an expression language for constructing
            -       * a predicate from one or more fields of the documents being filtered.
            -       * Filter expression is case-sensitive. This will be used to filter
            -       * search results which may affect the Answer response.
            -       *
            -       * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            -       *
            -       * Filtering in Vertex AI Search is done by mapping the LHS filter key
            -       * to a key property defined in the Vertex AI Search backend -- this
            -       * mapping is defined by the customer in their schema. For example a
            -       * media customers might have a field 'name' in their schema. In this
            -       * case the filter would look like this: filter --> name:'ANY("king
            -       * kong")'
            -       *
            -       * For more information about filtering including syntax and filter
            -       * operators, see
            -       * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            -       * 
            - * - * string filter = 2; - * - * @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 com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static final int BOOST_SPEC_FIELD_NUMBER = 3; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boostSpec_; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -       * Boost specification to boost certain documents in search results which
            -       * may affect the answer query response. For more information on boosting,
            -       * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; - * - * @return Whether the boostSpec field is set. - */ - @java.lang.Override - public boolean hasBoostSpec() { - return ((bitField0_ & 0x00000001) != 0); + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - /** - * - * - *
            -       * Boost specification to boost certain documents in search results which
            -       * may affect the answer query response. For more information on boosting,
            -       * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; - * - * @return The boostSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostSpec() { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() - : boostSpec_; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - /** - * - * - *
            -       * Boost specification to boost certain documents in search results which
            -       * may affect the answer query response. For more information on boosting,
            -       * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; - */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder - getBoostSpecOrBuilder() { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() - : boostSpec_; + public Builder newBuilderForType() { + return newBuilder(); } - public static final int ORDER_BY_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object orderBy_ = ""; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
            -       * The order in which documents are returned. Documents can be ordered
            -       * by a field in an
            -       * [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
            -       * it unset if ordered by relevance. `order_by` expression is
            -       * case-sensitive. For more information on ordering, see
            -       * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
            -       *
            -       * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            -       * 
            - * - * string order_by = 4; - * - * @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; - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - /** - * - * - *
            -       * The order in which documents are returned. Documents can be ordered
            -       * by a field in an
            -       * [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
            -       * it unset if ordered by relevance. `order_by` expression is
            -       * case-sensitive. For more information on ordering, see
            -       * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
            -       *
            -       * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            -       * 
            - * - * string order_by = 4; - * - * @return The bytes for orderBy. - */ @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - public static final int SEARCH_RESULT_MODE_FIELD_NUMBER = 5; - private int searchResultMode_ = 0; - - /** - * - * - *
            -       * Specifies the search result mode. If unspecified, the
            -       * search result mode defaults to `DOCUMENTS`.
            -       * See [parse and chunk
            -       * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; - * - * - * @return The enum numeric value on the wire for searchResultMode. - */ @java.lang.Override - public int getSearchResultModeValue() { - return searchResultMode_; + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * * *
            -       * Specifies the search result mode. If unspecified, the
            -       * search result mode defaults to `DOCUMENTS`.
            -       * See [parse and chunk
            -       * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
            +       * Multimodal specification: Will return an image from specified source.
            +       * If multiple sources are specified, the pick is a quality based decision.
                    * 
            * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; - * - * - * @return The searchResultMode. + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec} */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SearchResultMode - getSearchResultMode() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode - result = - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SearchResultMode.forNumber(searchResultMode_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SearchResultMode.UNRECOGNIZED - : result; - } - - public static final int DATA_STORE_SPECS_FIELD_NUMBER = 7; + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_MultimodalSpec_descriptor; + } - @SuppressWarnings("serial") - private java.util.List - dataStoreSpecs_; - - /** - * - * - *
            -       * 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 use the specs at the top level.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - @java.lang.Override - public java.util.List - getDataStoreSpecsList() { - return dataStoreSpecs_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_MultimodalSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.Builder.class); + } - /** - * - * - *
            -       * 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 use the specs at the top level.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> - getDataStoreSpecsOrBuilderList() { - return dataStoreSpecs_; - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec.newBuilder() + private Builder() {} - /** - * - * - *
            -       * 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 use the specs at the top level.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - @java.lang.Override - public int getDataStoreSpecsCount() { - return dataStoreSpecs_.size(); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - /** - * - * - *
            -       * 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 use the specs at the top level.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec getDataStoreSpecs( - int index) { - return dataStoreSpecs_.get(index); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + imageSource_ = 0; + return this; + } - /** - * - * - *
            -       * 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 use the specs at the top level.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder - getDataStoreSpecsOrBuilder(int index) { - return dataStoreSpecs_.get(index); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_MultimodalSpec_descriptor; + } - public static final int NATURAL_LANGUAGE_QUERY_UNDERSTANDING_SPEC_FIELD_NUMBER = 8; - private com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - naturalLanguageQueryUnderstandingSpec_; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.getDefaultInstance(); + } - /** - * - * - *
            -       * Optional. Specification to enable natural language understanding
            -       * capabilities for search requests.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the naturalLanguageQueryUnderstandingSpec field is set. - */ - @java.lang.Override - public boolean hasNaturalLanguageQueryUnderstandingSpec() { - return ((bitField0_ & 0x00000002) != 0); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * - * - *
            -       * Optional. Specification to enable natural language understanding
            -       * capabilities for search requests.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The naturalLanguageQueryUnderstandingSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - getNaturalLanguageQueryUnderstandingSpec() { - return naturalLanguageQueryUnderstandingSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() - : naturalLanguageQueryUnderstandingSpec_; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .AnswerGenerationSpec.MultimodalSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - /** - * - * - *
            -       * Optional. Specification to enable natural language understanding
            -       * capabilities for search requests.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpecOrBuilder - getNaturalLanguageQueryUnderstandingSpecOrBuilder() { - return naturalLanguageQueryUnderstandingSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() - : naturalLanguageQueryUnderstandingSpec_; - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.imageSource_ = imageSource_; + } + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.getDefaultInstance()) return this; + if (other.imageSource_ != 0) { + setImageSourceValue(other.getImageSourceValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (maxReturnResults_ != 0) { - output.writeInt32(1, maxReturnResults_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, filter_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getBoostSpec()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); - } - if (searchResultMode_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SearchResultMode.SEARCH_RESULT_MODE_UNSPECIFIED - .getNumber()) { - output.writeEnum(5, searchResultMode_); - } - for (int i = 0; i < dataStoreSpecs_.size(); i++) { - output.writeMessage(7, dataStoreSpecs_.get(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(8, getNaturalLanguageQueryUnderstandingSpec()); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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 24: + { + imageSource_ = input.readEnum(); + bitField0_ |= 0x00000001; + 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; } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private int bitField0_; - size = 0; - if (maxReturnResults_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxReturnResults_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, filter_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBoostSpec()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orderBy_); - } - if (searchResultMode_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SearchResultMode.SEARCH_RESULT_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, searchResultMode_); - } - for (int i = 0; i < dataStoreSpecs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(7, dataStoreSpecs_.get(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, getNaturalLanguageQueryUnderstandingSpec()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + private int imageSource_ = 0; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams)) { - return super.equals(obj); + /** + * + * + *
            +         * Optional. Source of image returned in the answer.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec.ImageSource image_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for imageSource. + */ + @java.lang.Override + public int getImageSourceValue() { + return imageSource_; } - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams other = - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) - obj; - if (getMaxReturnResults() != other.getMaxReturnResults()) return false; - if (!getFilter().equals(other.getFilter())) return false; - if (hasBoostSpec() != other.hasBoostSpec()) return false; - if (hasBoostSpec()) { - if (!getBoostSpec().equals(other.getBoostSpec())) return false; - } - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (searchResultMode_ != other.searchResultMode_) return false; - if (!getDataStoreSpecsList().equals(other.getDataStoreSpecsList())) return false; - if (hasNaturalLanguageQueryUnderstandingSpec() - != other.hasNaturalLanguageQueryUnderstandingSpec()) return false; - if (hasNaturalLanguageQueryUnderstandingSpec()) { - if (!getNaturalLanguageQueryUnderstandingSpec() - .equals(other.getNaturalLanguageQueryUnderstandingSpec())) return false; + /** + * + * + *
            +         * Optional. Source of image returned in the answer.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec.ImageSource image_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for imageSource to set. + * @return This builder for chaining. + */ + public Builder setImageSourceValue(int value) { + imageSource_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - 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) + MAX_RETURN_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + getMaxReturnResults(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - if (hasBoostSpec()) { - hash = (37 * hash) + BOOST_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getBoostSpec().hashCode(); + /** + * + * + *
            +         * Optional. Source of image returned in the answer.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec.ImageSource image_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The imageSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.ImageSource + getImageSource() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.ImageSource + result = + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.ImageSource.forNumber(imageSource_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.ImageSource.UNRECOGNIZED + : result; } - hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; - hash = (53 * hash) + getOrderBy().hashCode(); - hash = (37 * hash) + SEARCH_RESULT_MODE_FIELD_NUMBER; - hash = (53 * hash) + searchResultMode_; - if (getDataStoreSpecsCount() > 0) { - hash = (37 * hash) + DATA_STORE_SPECS_FIELD_NUMBER; - hash = (53 * hash) + getDataStoreSpecsList().hashCode(); + + /** + * + * + *
            +         * Optional. Source of image returned in the answer.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec.ImageSource image_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The imageSource to set. + * @return This builder for chaining. + */ + public Builder setImageSource( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.ImageSource + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + imageSource_ = value.getNumber(); + onChanged(); + return this; } - if (hasNaturalLanguageQueryUnderstandingSpec()) { - hash = (37 * hash) + NATURAL_LANGUAGE_QUERY_UNDERSTANDING_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getNaturalLanguageQueryUnderstandingSpec().hashCode(); + + /** + * + * + *
            +         * Optional. Source of image returned in the answer.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec.ImageSource image_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearImageSource() { + bitField0_ = (bitField0_ & ~0x00000001); + imageSource_ = 0; + onChanged(); + return this; } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec) } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .AnswerGenerationSpec.MultimodalSpec + DEFAULT_INSTANCE; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec(); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams - parseFrom( - 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.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MultimodalSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + public static com.google.protobuf.Parser parser() { + return PARSER; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + private int bitField0_; + public static final int MODEL_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + modelSpec_; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +     * Answer generation model specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; + * + * + * @return Whether the modelSpec field is set. + */ + @java.lang.Override + public boolean hasModelSpec() { + return ((bitField0_ & 0x00000001) != 0); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +     * Answer generation model specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; + * + * + * @return The modelSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec + getModelSpec() { + return modelSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec.getDefaultInstance() + : modelSpec_; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +     * Answer generation model specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpecOrBuilder + getModelSpecOrBuilder() { + return modelSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec.getDefaultInstance() + : modelSpec_; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static final int PROMPT_SPEC_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + promptSpec_; - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
            +     * Answer generation prompt specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; + * + * + * @return Whether the promptSpec field is set. + */ + @java.lang.Override + public boolean hasPromptSpec() { + return ((bitField0_ & 0x00000002) != 0); + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
            +     * Answer generation prompt specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; + * + * + * @return The promptSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + getPromptSpec() { + return promptSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec.getDefaultInstance() + : promptSpec_; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
            +     * Answer generation prompt specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpecOrBuilder + getPromptSpecOrBuilder() { + return promptSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec.getDefaultInstance() + : promptSpec_; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + public static final int INCLUDE_CITATIONS_FIELD_NUMBER = 3; + private boolean includeCitations_ = false; - /** - * - * - *
            -       * Search parameters.
            -       * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParamsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchParams_descriptor; - } + /** + * + * + *
            +     * Specifies whether to include citation metadata in the answer. The default
            +     * value is `false`.
            +     * 
            + * + * bool include_citations = 3; + * + * @return The includeCitations. + */ + @java.lang.Override + public boolean getIncludeCitations() { + return includeCitations_; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchParams_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - .class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - .Builder.class); - } + public static final int ANSWER_LANGUAGE_CODE_FIELD_NUMBER = 4; - // Construct using - // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + @SuppressWarnings("serial") + private volatile java.lang.Object answerLanguageCode_ = ""; - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + /** + * + * + *
            +     * Language code for Answer. Use language tags defined by
            +     * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            +     * Note: This is an experimental feature.
            +     * 
            + * + * string answer_language_code = 4; + * + * @return The answerLanguageCode. + */ + @java.lang.Override + public java.lang.String getAnswerLanguageCode() { + java.lang.Object ref = answerLanguageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerLanguageCode_ = s; + return s; + } + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetBoostSpecFieldBuilder(); - internalGetDataStoreSpecsFieldBuilder(); - internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder(); - } - } + /** + * + * + *
            +     * Language code for Answer. Use language tags defined by
            +     * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            +     * Note: This is an experimental feature.
            +     * 
            + * + * string answer_language_code = 4; + * + * @return The bytes for answerLanguageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswerLanguageCodeBytes() { + java.lang.Object ref = answerLanguageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - maxReturnResults_ = 0; - filter_ = ""; - boostSpec_ = null; - if (boostSpecBuilder_ != null) { - boostSpecBuilder_.dispose(); - boostSpecBuilder_ = null; - } - orderBy_ = ""; - searchResultMode_ = 0; - if (dataStoreSpecsBuilder_ == null) { - dataStoreSpecs_ = java.util.Collections.emptyList(); - } else { - dataStoreSpecs_ = null; - dataStoreSpecsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - naturalLanguageQueryUnderstandingSpec_ = null; - if (naturalLanguageQueryUnderstandingSpecBuilder_ != null) { - naturalLanguageQueryUnderstandingSpecBuilder_.dispose(); - naturalLanguageQueryUnderstandingSpecBuilder_ = null; - } - return this; - } + public static final int IGNORE_ADVERSARIAL_QUERY_FIELD_NUMBER = 5; + private boolean ignoreAdversarialQuery_ = false; - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchParams_descriptor; - } + /** + * + * + *
            +     * Specifies whether to filter out adversarial queries. The default value
            +     * is `false`.
            +     *
            +     * Google employs search-query classification to detect adversarial
            +     * queries. No answer is returned if the search query is classified as an
            +     * adversarial query. For example, a user might ask a question regarding
            +     * negative comments about the company or submit a query designed to
            +     * generate unsafe, policy-violating output. If this field is set to
            +     * `true`, we skip generating answers for adversarial queries and return
            +     * fallback messages instead.
            +     * 
            + * + * bool ignore_adversarial_query = 5; + * + * @return The ignoreAdversarialQuery. + */ + @java.lang.Override + public boolean getIgnoreAdversarialQuery() { + return ignoreAdversarialQuery_; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - .getDefaultInstance(); - } + public static final int IGNORE_NON_ANSWER_SEEKING_QUERY_FIELD_NUMBER = 6; + private boolean ignoreNonAnswerSeekingQuery_ = false; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - build() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + /** + * + * + *
            +     * Specifies whether to filter out queries that are not answer-seeking.
            +     * The default value is `false`.
            +     *
            +     * Google employs search-query classification to detect answer-seeking
            +     * queries. No answer is returned if the search query is classified as a
            +     * non-answer seeking query. If this field is set to `true`, we skip
            +     * generating answers for non-answer seeking queries and return
            +     * fallback messages instead.
            +     * 
            + * + * bool ignore_non_answer_seeking_query = 6; + * + * @return The ignoreNonAnswerSeekingQuery. + */ + @java.lang.Override + public boolean getIgnoreNonAnswerSeekingQuery() { + return ignoreNonAnswerSeekingQuery_; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - buildPartial() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - result = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + public static final int IGNORE_LOW_RELEVANT_CONTENT_FIELD_NUMBER = 7; + private boolean ignoreLowRelevantContent_ = false; - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - result) { - if (dataStoreSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - dataStoreSpecs_ = java.util.Collections.unmodifiableList(dataStoreSpecs_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.dataStoreSpecs_ = dataStoreSpecs_; - } else { - result.dataStoreSpecs_ = dataStoreSpecsBuilder_.build(); - } - } + /** + * + * + *
            +     * Specifies whether to filter out queries that have low relevance.
            +     *
            +     * If this field is set to `false`, all search results are used regardless
            +     * 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; + * + * @return Whether the ignoreLowRelevantContent field is set. + */ + @java.lang.Override + public boolean hasIgnoreLowRelevantContent() { + return ((bitField0_ & 0x00000004) != 0); + } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.maxReturnResults_ = maxReturnResults_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.filter_ = filter_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.orderBy_ = orderBy_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.searchResultMode_ = searchResultMode_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.naturalLanguageQueryUnderstandingSpec_ = - naturalLanguageQueryUnderstandingSpecBuilder_ == null - ? naturalLanguageQueryUnderstandingSpec_ - : naturalLanguageQueryUnderstandingSpecBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) - other); - } else { - super.mergeFrom(other); - return this; - } - } + /** + * + * + *
            +     * Specifies whether to filter out queries that have low relevance.
            +     *
            +     * If this field is set to `false`, all search results are used regardless
            +     * 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; + * + * @return The ignoreLowRelevantContent. + */ + @java.lang.Override + public boolean getIgnoreLowRelevantContent() { + return ignoreLowRelevantContent_; + } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - .getDefaultInstance()) return this; - if (other.getMaxReturnResults() != 0) { - setMaxReturnResults(other.getMaxReturnResults()); - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasBoostSpec()) { - mergeBoostSpec(other.getBoostSpec()); - } - if (!other.getOrderBy().isEmpty()) { - orderBy_ = other.orderBy_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.searchResultMode_ != 0) { - setSearchResultModeValue(other.getSearchResultModeValue()); - } - if (dataStoreSpecsBuilder_ == null) { - if (!other.dataStoreSpecs_.isEmpty()) { - if (dataStoreSpecs_.isEmpty()) { - dataStoreSpecs_ = other.dataStoreSpecs_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureDataStoreSpecsIsMutable(); - dataStoreSpecs_.addAll(other.dataStoreSpecs_); - } - onChanged(); - } - } else { - if (!other.dataStoreSpecs_.isEmpty()) { - if (dataStoreSpecsBuilder_.isEmpty()) { - dataStoreSpecsBuilder_.dispose(); - dataStoreSpecsBuilder_ = null; - dataStoreSpecs_ = other.dataStoreSpecs_; - bitField0_ = (bitField0_ & ~0x00000020); - dataStoreSpecsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetDataStoreSpecsFieldBuilder() - : null; - } else { - dataStoreSpecsBuilder_.addAllMessages(other.dataStoreSpecs_); - } - } - } - if (other.hasNaturalLanguageQueryUnderstandingSpec()) { - mergeNaturalLanguageQueryUnderstandingSpec( - other.getNaturalLanguageQueryUnderstandingSpec()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + public static final int IGNORE_JAIL_BREAKING_QUERY_FIELD_NUMBER = 8; + private boolean ignoreJailBreakingQuery_ = false; - @java.lang.Override - public final boolean isInitialized() { - return true; - } + /** + * + * + *
            +     * 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_; + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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: - { - maxReturnResults_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetBoostSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: - { - searchResultMode_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 58: - { - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec - .parser(), - extensionRegistry); - if (dataStoreSpecsBuilder_ == null) { - ensureDataStoreSpecsIsMutable(); - dataStoreSpecs_.add(m); - } else { - dataStoreSpecsBuilder_.addMessage(m); - } - break; - } // case 58 - case 66: - { - input.readMessage( - internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } + public static final int MULTIMODAL_SPEC_FIELD_NUMBER = 9; + private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + multimodalSpec_; - private int bitField0_; + /** + * + * + *
            +     * Optional. Multimodal specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec multimodal_spec = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multimodalSpec field is set. + */ + @java.lang.Override + public boolean hasMultimodalSpec() { + return ((bitField0_ & 0x00000008) != 0); + } - private int maxReturnResults_; + /** + * + * + *
            +     * Optional. Multimodal specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec multimodal_spec = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multimodalSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + getMultimodalSpec() { + return multimodalSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.getDefaultInstance() + : multimodalSpec_; + } - /** - * - * - *
            -         * Number of search results to return.
            -         * The default value is 10.
            -         * 
            - * - * int32 max_return_results = 1; - * - * @return The maxReturnResults. - */ - @java.lang.Override - public int getMaxReturnResults() { - return maxReturnResults_; - } - - /** - * - * - *
            -         * Number of search results to return.
            -         * The default value is 10.
            -         * 
            - * - * int32 max_return_results = 1; - * - * @param value The maxReturnResults to set. - * @return This builder for chaining. - */ - public Builder setMaxReturnResults(int value) { + /** + * + * + *
            +     * Optional. Multimodal specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec multimodal_spec = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpecOrBuilder + getMultimodalSpecOrBuilder() { + return multimodalSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.getDefaultInstance() + : multimodalSpec_; + } - maxReturnResults_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + private byte memoizedIsInitialized = -1; - /** - * - * - *
            -         * Number of search results to return.
            -         * The default value is 10.
            -         * 
            - * - * int32 max_return_results = 1; - * - * @return This builder for chaining. - */ - public Builder clearMaxReturnResults() { - bitField0_ = (bitField0_ & ~0x00000001); - maxReturnResults_ = 0; - onChanged(); - return this; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private java.lang.Object filter_ = ""; + memoizedIsInitialized = 1; + return true; + } - /** - * - * - *
            -         * The filter syntax consists of an expression language for constructing
            -         * a predicate from one or more fields of the documents being filtered.
            -         * Filter expression is case-sensitive. This will be used to filter
            -         * search results which may affect the Answer response.
            -         *
            -         * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            -         *
            -         * Filtering in Vertex AI Search is done by mapping the LHS filter key
            -         * to a key property defined in the Vertex AI Search backend -- this
            -         * mapping is defined by the customer in their schema. For example a
            -         * media customers might have a field 'name' in their schema. In this
            -         * case the filter would look like this: filter --> name:'ANY("king
            -         * kong")'
            -         *
            -         * For more information about filtering including syntax and filter
            -         * operators, see
            -         * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            -         * 
            - * - * string filter = 2; - * - * @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; - } - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getModelSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getPromptSpec()); + } + if (includeCitations_ != false) { + output.writeBool(3, includeCitations_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerLanguageCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, answerLanguageCode_); + } + if (ignoreAdversarialQuery_ != false) { + output.writeBool(5, ignoreAdversarialQuery_); + } + if (ignoreNonAnswerSeekingQuery_ != false) { + output.writeBool(6, ignoreNonAnswerSeekingQuery_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeBool(7, ignoreLowRelevantContent_); + } + if (ignoreJailBreakingQuery_ != false) { + output.writeBool(8, ignoreJailBreakingQuery_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(9, getMultimodalSpec()); + } + getUnknownFields().writeTo(output); + } - /** - * - * - *
            -         * The filter syntax consists of an expression language for constructing
            -         * a predicate from one or more fields of the documents being filtered.
            -         * Filter expression is case-sensitive. This will be used to filter
            -         * search results which may affect the Answer response.
            -         *
            -         * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            -         *
            -         * Filtering in Vertex AI Search is done by mapping the LHS filter key
            -         * to a key property defined in the Vertex AI Search backend -- this
            -         * mapping is defined by the customer in their schema. For example a
            -         * media customers might have a field 'name' in their schema. In this
            -         * case the filter would look like this: filter --> name:'ANY("king
            -         * kong")'
            -         *
            -         * For more information about filtering including syntax and filter
            -         * operators, see
            -         * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            -         * 
            - * - * string filter = 2; - * - * @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; - } - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - * - * - *
            -         * The filter syntax consists of an expression language for constructing
            -         * a predicate from one or more fields of the documents being filtered.
            -         * Filter expression is case-sensitive. This will be used to filter
            -         * search results which may affect the Answer response.
            -         *
            -         * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            -         *
            -         * Filtering in Vertex AI Search is done by mapping the LHS filter key
            -         * to a key property defined in the Vertex AI Search backend -- this
            -         * mapping is defined by the customer in their schema. For example a
            -         * media customers might have a field 'name' in their schema. In this
            -         * case the filter would look like this: filter --> name:'ANY("king
            -         * kong")'
            -         *
            -         * For more information about filtering including syntax and filter
            -         * operators, see
            -         * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            -         * 
            - * - * string filter = 2; - * - * @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; - } + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getModelSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPromptSpec()); + } + if (includeCitations_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, includeCitations_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerLanguageCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, answerLanguageCode_); + } + if (ignoreAdversarialQuery_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, ignoreAdversarialQuery_); + } + if (ignoreNonAnswerSeekingQuery_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(6, ignoreNonAnswerSeekingQuery_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, ignoreLowRelevantContent_); + } + if (ignoreJailBreakingQuery_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, ignoreJailBreakingQuery_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMultimodalSpec()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
            -         * The filter syntax consists of an expression language for constructing
            -         * a predicate from one or more fields of the documents being filtered.
            -         * Filter expression is case-sensitive. This will be used to filter
            -         * search results which may affect the Answer response.
            -         *
            -         * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            -         *
            -         * Filtering in Vertex AI Search is done by mapping the LHS filter key
            -         * to a key property defined in the Vertex AI Search backend -- this
            -         * mapping is defined by the customer in their schema. For example a
            -         * media customers might have a field 'name' in their schema. In this
            -         * case the filter would look like this: filter --> name:'ANY("king
            -         * kong")'
            -         *
            -         * For more information about filtering including syntax and filter
            -         * operators, see
            -         * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            -         * 
            - * - * string filter = 2; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec) obj; - /** - * - * - *
            -         * The filter syntax consists of an expression language for constructing
            -         * a predicate from one or more fields of the documents being filtered.
            -         * Filter expression is case-sensitive. This will be used to filter
            -         * search results which may affect the Answer response.
            -         *
            -         * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            -         *
            -         * Filtering in Vertex AI Search is done by mapping the LHS filter key
            -         * to a key property defined in the Vertex AI Search backend -- this
            -         * mapping is defined by the customer in their schema. For example a
            -         * media customers might have a field 'name' in their schema. In this
            -         * case the filter would look like this: filter --> name:'ANY("king
            -         * kong")'
            -         *
            -         * For more information about filtering including syntax and filter
            -         * operators, see
            -         * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            -         * 
            - * - * string filter = 2; - * - * @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; - } + if (hasModelSpec() != other.hasModelSpec()) return false; + if (hasModelSpec()) { + if (!getModelSpec().equals(other.getModelSpec())) return false; + } + if (hasPromptSpec() != other.hasPromptSpec()) return false; + if (hasPromptSpec()) { + if (!getPromptSpec().equals(other.getPromptSpec())) return false; + } + if (getIncludeCitations() != other.getIncludeCitations()) return false; + if (!getAnswerLanguageCode().equals(other.getAnswerLanguageCode())) return false; + if (getIgnoreAdversarialQuery() != other.getIgnoreAdversarialQuery()) return false; + if (getIgnoreNonAnswerSeekingQuery() != other.getIgnoreNonAnswerSeekingQuery()) return false; + if (hasIgnoreLowRelevantContent() != other.hasIgnoreLowRelevantContent()) return false; + if (hasIgnoreLowRelevantContent()) { + if (getIgnoreLowRelevantContent() != other.getIgnoreLowRelevantContent()) return false; + } + if (getIgnoreJailBreakingQuery() != other.getIgnoreJailBreakingQuery()) return false; + if (hasMultimodalSpec() != other.hasMultimodalSpec()) return false; + if (hasMultimodalSpec()) { + if (!getMultimodalSpec().equals(other.getMultimodalSpec())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boostSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder> - boostSpecBuilder_; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasModelSpec()) { + hash = (37 * hash) + MODEL_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getModelSpec().hashCode(); + } + if (hasPromptSpec()) { + hash = (37 * hash) + PROMPT_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getPromptSpec().hashCode(); + } + hash = (37 * hash) + INCLUDE_CITATIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeCitations()); + hash = (37 * hash) + ANSWER_LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getAnswerLanguageCode().hashCode(); + hash = (37 * hash) + IGNORE_ADVERSARIAL_QUERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreAdversarialQuery()); + hash = (37 * hash) + IGNORE_NON_ANSWER_SEEKING_QUERY_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreNonAnswerSeekingQuery()); + if (hasIgnoreLowRelevantContent()) { + 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 (hasMultimodalSpec()) { + hash = (37 * hash) + MULTIMODAL_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMultimodalSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - * - * - *
            -         * Boost specification to boost certain documents in search results which
            -         * may affect the answer query response. For more information on boosting,
            -         * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            -         * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; - * - * @return Whether the boostSpec field is set. - */ - public boolean hasBoostSpec() { - return ((bitField0_ & 0x00000004) != 0); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -         * Boost specification to boost certain documents in search results which
            -         * may affect the answer query response. For more information on boosting,
            -         * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            -         * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; - * - * @return The boostSpec. - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostSpec() { - if (boostSpecBuilder_ == null) { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .getDefaultInstance() - : boostSpec_; - } else { - return boostSpecBuilder_.getMessage(); - } - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -         * Boost specification to boost certain documents in search results which
            -         * may affect the answer query response. For more information on boosting,
            -         * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            -         * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; - */ - public Builder setBoostSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec value) { - if (boostSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - boostSpec_ = value; - } else { - boostSpecBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -         * Boost specification to boost certain documents in search results which
            -         * may affect the answer query response. For more information on boosting,
            -         * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            -         * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; - */ - public Builder setBoostSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder - builderForValue) { - if (boostSpecBuilder_ == null) { - boostSpec_ = builderForValue.build(); - } else { - boostSpecBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -         * Boost specification to boost certain documents in search results which
            -         * may affect the answer query response. For more information on boosting,
            -         * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            -         * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; - */ - public Builder mergeBoostSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec value) { - if (boostSpecBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && boostSpec_ != null - && boostSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .getDefaultInstance()) { - getBoostSpecBuilder().mergeFrom(value); - } else { - boostSpec_ = value; - } - } else { - boostSpecBuilder_.mergeFrom(value); - } - if (boostSpec_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -         * Boost specification to boost certain documents in search results which
            -         * may affect the answer query response. For more information on boosting,
            -         * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            -         * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; - */ - public Builder clearBoostSpec() { - bitField0_ = (bitField0_ & ~0x00000004); - boostSpec_ = null; - if (boostSpecBuilder_ != null) { - boostSpecBuilder_.dispose(); - boostSpecBuilder_ = null; - } - onChanged(); - return this; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -         * Boost specification to boost certain documents in search results which
            -         * may affect the answer query response. For more information on boosting,
            -         * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            -         * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder - getBoostSpecBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetBoostSpecFieldBuilder().getBuilder(); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
            -         * Boost specification to boost certain documents in search results which
            -         * may affect the answer query response. For more information on boosting,
            -         * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            -         * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder - getBoostSpecOrBuilder() { - if (boostSpecBuilder_ != null) { - return boostSpecBuilder_.getMessageOrBuilder(); - } else { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec - .getDefaultInstance() - : boostSpec_; - } - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -         * Boost specification to boost certain documents in search results which
            -         * may affect the answer query response. For more information on boosting,
            -         * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            -         * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder> - internalGetBoostSpecFieldBuilder() { - if (boostSpecBuilder_ == null) { - boostSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder>( - getBoostSpec(), getParentForChildren(), isClean()); - boostSpec_ = null; - } - return boostSpecBuilder_; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - private java.lang.Object orderBy_ = ""; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -         * The order in which documents are returned. Documents can be ordered
            -         * by a field in an
            -         * [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
            -         * it unset if ordered by relevance. `order_by` expression is
            -         * case-sensitive. For more information on ordering, see
            -         * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
            -         *
            -         * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            -         * 
            - * - * string order_by = 4; - * - * @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; - } - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
            -         * The order in which documents are returned. Documents can be ordered
            -         * by a field in an
            -         * [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
            -         * it unset if ordered by relevance. `order_by` expression is
            -         * case-sensitive. For more information on ordering, see
            -         * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
            -         *
            -         * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            -         * 
            - * - * string order_by = 4; - * - * @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; - } - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -         * The order in which documents are returned. Documents can be ordered
            -         * by a field in an
            -         * [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
            -         * it unset if ordered by relevance. `order_by` expression is
            -         * case-sensitive. For more information on ordering, see
            -         * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
            -         *
            -         * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            -         * 
            - * - * string order_by = 4; - * - * @param value The orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - orderBy_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - * - * - *
            -         * The order in which documents are returned. Documents can be ordered
            -         * by a field in an
            -         * [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
            -         * it unset if ordered by relevance. `order_by` expression is
            -         * case-sensitive. For more information on ordering, see
            -         * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
            -         *
            -         * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            -         * 
            - * - * string order_by = 4; - * - * @return This builder for chaining. - */ - public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
            -         * The order in which documents are returned. Documents can be ordered
            -         * by a field in an
            -         * [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
            -         * it unset if ordered by relevance. `order_by` expression is
            -         * case-sensitive. For more information on ordering, see
            -         * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
            -         *
            -         * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            -         * 
            - * - * string order_by = 4; - * - * @param value The bytes for orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - orderBy_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private int searchResultMode_ = 0; + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * - * - *
            -         * Specifies the search result mode. If unspecified, the
            -         * search result mode defaults to `DOCUMENTS`.
            -         * See [parse and chunk
            -         * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; - * - * - * @return The enum numeric value on the wire for searchResultMode. - */ - @java.lang.Override - public int getSearchResultModeValue() { - return searchResultMode_; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * - * - *
            -         * Specifies the search result mode. If unspecified, the
            -         * search result mode defaults to `DOCUMENTS`.
            -         * See [parse and chunk
            -         * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; - * - * - * @param value The enum numeric value on the wire for searchResultMode to set. - * @return This builder for chaining. - */ - public Builder setSearchResultModeValue(int value) { - searchResultMode_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * - * - *
            -         * Specifies the search result mode. If unspecified, the
            -         * search result mode defaults to `DOCUMENTS`.
            -         * See [parse and chunk
            -         * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; - * - * - * @return The searchResultMode. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SearchResultMode - getSearchResultMode() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode - result = - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SearchResultMode.forNumber(searchResultMode_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SearchResultMode.UNRECOGNIZED - : result; - } + /** + * + * + *
            +     * Answer generation specification.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_descriptor; + } - /** - * - * - *
            -         * Specifies the search result mode. If unspecified, the
            -         * search result mode defaults to `DOCUMENTS`.
            -         * See [parse and chunk
            -         * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; - * - * - * @param value The searchResultMode to set. - * @return This builder for chaining. - */ - public Builder setSearchResultMode( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode - value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - searchResultMode_ = value.getNumber(); - onChanged(); - return this; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .Builder.class); + } - /** - * - * - *
            -         * Specifies the search result mode. If unspecified, the
            -         * search result mode defaults to `DOCUMENTS`.
            -         * See [parse and chunk
            -         * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; - * - * - * @return This builder for chaining. - */ - public Builder clearSearchResultMode() { - bitField0_ = (bitField0_ & ~0x00000010); - searchResultMode_ = 0; - onChanged(); - return this; - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - private java.util.List - dataStoreSpecs_ = java.util.Collections.emptyList(); + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - private void ensureDataStoreSpecsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - dataStoreSpecs_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec>( - dataStoreSpecs_); - bitField0_ |= 0x00000020; - } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetModelSpecFieldBuilder(); + internalGetPromptSpecFieldBuilder(); + internalGetMultimodalSpecFieldBuilder(); } + } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> - dataStoreSpecsBuilder_; - - /** - * - * - *
            -         * 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 use the specs at the top level.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - public java.util.List - getDataStoreSpecsList() { - if (dataStoreSpecsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dataStoreSpecs_); - } else { - return dataStoreSpecsBuilder_.getMessageList(); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modelSpec_ = null; + if (modelSpecBuilder_ != null) { + modelSpecBuilder_.dispose(); + modelSpecBuilder_ = null; } - - /** - * - * - *
            -         * 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 use the specs at the top level.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - public int getDataStoreSpecsCount() { - if (dataStoreSpecsBuilder_ == null) { - return dataStoreSpecs_.size(); - } else { - return dataStoreSpecsBuilder_.getCount(); - } + promptSpec_ = null; + if (promptSpecBuilder_ != null) { + promptSpecBuilder_.dispose(); + promptSpecBuilder_ = null; + } + includeCitations_ = false; + answerLanguageCode_ = ""; + ignoreAdversarialQuery_ = false; + ignoreNonAnswerSeekingQuery_ = false; + ignoreLowRelevantContent_ = false; + ignoreJailBreakingQuery_ = false; + multimodalSpec_ = null; + if (multimodalSpecBuilder_ != null) { + multimodalSpecBuilder_.dispose(); + multimodalSpecBuilder_ = null; } + return this; + } - /** - * - * - *
            -         * 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 use the specs at the top level.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec - getDataStoreSpecs(int index) { - if (dataStoreSpecsBuilder_ == null) { - return dataStoreSpecs_.get(index); - } else { - return dataStoreSpecsBuilder_.getMessage(index); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - /** - * - * - *
            -         * 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 use the specs at the top level.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - public Builder setDataStoreSpecs( - int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec value) { - if (dataStoreSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataStoreSpecsIsMutable(); - dataStoreSpecs_.set(index, value); - onChanged(); - } else { - dataStoreSpecsBuilder_.setMessage(index, value); - } - return this; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec( + this); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } - /** - * - * - *
            -         * 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 use the specs at the top level.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - public Builder setDataStoreSpecs( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder - builderForValue) { - if (dataStoreSpecsBuilder_ == null) { - ensureDataStoreSpecsIsMutable(); - dataStoreSpecs_.set(index, builderForValue.build()); - onChanged(); - } else { - dataStoreSpecsBuilder_.setMessage(index, builderForValue.build()); - } - return this; + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelSpec_ = modelSpecBuilder_ == null ? modelSpec_ : modelSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.promptSpec_ = + promptSpecBuilder_ == null ? promptSpec_ : promptSpecBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.includeCitations_ = includeCitations_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.answerLanguageCode_ = answerLanguageCode_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.ignoreAdversarialQuery_ = ignoreAdversarialQuery_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.ignoreNonAnswerSeekingQuery_ = ignoreNonAnswerSeekingQuery_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.ignoreLowRelevantContent_ = ignoreLowRelevantContent_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.ignoreJailBreakingQuery_ = ignoreJailBreakingQuery_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.multimodalSpec_ = + multimodalSpecBuilder_ == null ? multimodalSpec_ : multimodalSpecBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } - /** - * - * - *
            -         * 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 use the specs at the top level.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - public Builder addDataStoreSpecs( - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec value) { - if (dataStoreSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataStoreSpecsIsMutable(); - dataStoreSpecs_.add(value); - onChanged(); - } else { - dataStoreSpecsBuilder_.addMessage(value); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec) + other); + } else { + super.mergeFrom(other); return this; } + } - /** - * - * - *
            -         * 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 use the specs at the top level.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - public Builder addDataStoreSpecs( - int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec value) { - if (dataStoreSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataStoreSpecsIsMutable(); - dataStoreSpecs_.add(index, value); - onChanged(); - } else { - dataStoreSpecsBuilder_.addMessage(index, value); - } - return this; + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .getDefaultInstance()) return this; + if (other.hasModelSpec()) { + mergeModelSpec(other.getModelSpec()); } - - /** - * - * - *
            -         * 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 use the specs at the top level.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - public Builder addDataStoreSpecs( - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder - builderForValue) { - if (dataStoreSpecsBuilder_ == null) { - ensureDataStoreSpecsIsMutable(); - dataStoreSpecs_.add(builderForValue.build()); - onChanged(); - } else { - dataStoreSpecsBuilder_.addMessage(builderForValue.build()); - } - return this; + if (other.hasPromptSpec()) { + mergePromptSpec(other.getPromptSpec()); } - - /** - * - * - *
            -         * 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 use the specs at the top level.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - public Builder addDataStoreSpecs( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder - builderForValue) { - if (dataStoreSpecsBuilder_ == null) { - ensureDataStoreSpecsIsMutable(); - dataStoreSpecs_.add(index, builderForValue.build()); - onChanged(); - } else { - dataStoreSpecsBuilder_.addMessage(index, builderForValue.build()); - } - return this; + if (other.getIncludeCitations() != false) { + setIncludeCitations(other.getIncludeCitations()); } - - /** - * - * - *
            -         * 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 use the specs at the top level.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - public Builder addAllDataStoreSpecs( - java.lang.Iterable< - ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec> - values) { - if (dataStoreSpecsBuilder_ == null) { - ensureDataStoreSpecsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStoreSpecs_); - onChanged(); - } else { - dataStoreSpecsBuilder_.addAllMessages(values); - } - return this; + if (!other.getAnswerLanguageCode().isEmpty()) { + answerLanguageCode_ = other.answerLanguageCode_; + bitField0_ |= 0x00000008; + onChanged(); } - - /** - * - * - *
            -         * 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 use the specs at the top level.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - public Builder clearDataStoreSpecs() { - if (dataStoreSpecsBuilder_ == null) { - dataStoreSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - dataStoreSpecsBuilder_.clear(); - } - return this; + if (other.getIgnoreAdversarialQuery() != false) { + setIgnoreAdversarialQuery(other.getIgnoreAdversarialQuery()); } - - /** - * - * - *
            -         * 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 use the specs at the top level.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - public Builder removeDataStoreSpecs(int index) { - if (dataStoreSpecsBuilder_ == null) { - ensureDataStoreSpecsIsMutable(); - dataStoreSpecs_.remove(index); - onChanged(); - } else { - dataStoreSpecsBuilder_.remove(index); - } - return this; + if (other.getIgnoreNonAnswerSeekingQuery() != false) { + setIgnoreNonAnswerSeekingQuery(other.getIgnoreNonAnswerSeekingQuery()); } - - /** - * - * - *
            -         * 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 use the specs at the top level.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder - getDataStoreSpecsBuilder(int index) { - return internalGetDataStoreSpecsFieldBuilder().getBuilder(index); + if (other.hasIgnoreLowRelevantContent()) { + setIgnoreLowRelevantContent(other.getIgnoreLowRelevantContent()); } - - /** - * - * - *
            -         * 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 use the specs at the top level.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder - getDataStoreSpecsOrBuilder(int index) { - if (dataStoreSpecsBuilder_ == null) { - return dataStoreSpecs_.get(index); - } else { - return dataStoreSpecsBuilder_.getMessageOrBuilder(index); - } + if (other.getIgnoreJailBreakingQuery() != false) { + setIgnoreJailBreakingQuery(other.getIgnoreJailBreakingQuery()); } - - /** - * - * - *
            -         * 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 use the specs at the top level.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> - getDataStoreSpecsOrBuilderList() { - if (dataStoreSpecsBuilder_ != null) { - return dataStoreSpecsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dataStoreSpecs_); - } + if (other.hasMultimodalSpec()) { + mergeMultimodalSpec(other.getMultimodalSpec()); } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
            -         * 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 use the specs at the top level.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder - addDataStoreSpecsBuilder() { - return internalGetDataStoreSpecsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec - .getDefaultInstance()); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * - * - *
            -         * 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 use the specs at the top level.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder - addDataStoreSpecsBuilder(int index) { - return internalGetDataStoreSpecsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec - .getDefaultInstance()); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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( + internalGetModelSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetPromptSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + includeCitations_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + answerLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + ignoreAdversarialQuery_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + ignoreNonAnswerSeekingQuery_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + ignoreLowRelevantContent_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + ignoreJailBreakingQuery_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + input.readMessage( + internalGetMultimodalSpecFieldBuilder().getBuilder(), extensionRegistry); + 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; + } - /** - * - * - *
            -         * 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 use the specs at the top level.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; - * - */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder> - getDataStoreSpecsBuilderList() { - return internalGetDataStoreSpecsFieldBuilder().getBuilderList(); - } + private int bitField0_; - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> - internalGetDataStoreSpecsFieldBuilder() { - if (dataStoreSpecsBuilder_ == null) { - dataStoreSpecsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder>( - dataStoreSpecs_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - dataStoreSpecs_ = null; - } - return dataStoreSpecsBuilder_; - } + private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + modelSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpecOrBuilder> + modelSpecBuilder_; - private com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - naturalLanguageQueryUnderstandingSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpecOrBuilder> - naturalLanguageQueryUnderstandingSpecBuilder_; + /** + * + * + *
            +       * Answer generation model specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; + * + * + * @return Whether the modelSpec field is set. + */ + public boolean hasModelSpec() { + return ((bitField0_ & 0x00000001) != 0); + } - /** - * - * - *
            -         * Optional. Specification to enable natural language understanding
            -         * capabilities for search requests.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the naturalLanguageQueryUnderstandingSpec field is set. - */ - public boolean hasNaturalLanguageQueryUnderstandingSpec() { - return ((bitField0_ & 0x00000040) != 0); + /** + * + * + *
            +       * Answer generation model specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; + * + * + * @return The modelSpec. + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec + getModelSpec() { + if (modelSpecBuilder_ == null) { + return modelSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec.getDefaultInstance() + : modelSpec_; + } else { + return modelSpecBuilder_.getMessage(); } + } - /** - * - * - *
            -         * Optional. Specification to enable natural language understanding
            -         * capabilities for search requests.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The naturalLanguageQueryUnderstandingSpec. - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - getNaturalLanguageQueryUnderstandingSpec() { - if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { - return naturalLanguageQueryUnderstandingSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() - : naturalLanguageQueryUnderstandingSpec_; - } else { - return naturalLanguageQueryUnderstandingSpecBuilder_.getMessage(); + /** + * + * + *
            +       * Answer generation model specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; + * + */ + public Builder setModelSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec + value) { + if (modelSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + modelSpec_ = value; + } else { + modelSpecBuilder_.setMessage(value); } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
            -         * Optional. Specification to enable natural language understanding
            -         * capabilities for search requests.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setNaturalLanguageQueryUnderstandingSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - value) { - if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - naturalLanguageQueryUnderstandingSpec_ = value; - } else { - naturalLanguageQueryUnderstandingSpecBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - /** - * - * - *
            -         * Optional. Specification to enable natural language understanding
            -         * capabilities for search requests.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setNaturalLanguageQueryUnderstandingSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.Builder - builderForValue) { - if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { - naturalLanguageQueryUnderstandingSpec_ = builderForValue.build(); + /** + * + * + *
            +       * Answer generation model specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; + * + */ + public Builder setModelSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec + .Builder + builderForValue) { + if (modelSpecBuilder_ == null) { + modelSpec_ = builderForValue.build(); + } else { + modelSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Answer generation model specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; + * + */ + public Builder mergeModelSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec + value) { + if (modelSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && modelSpec_ != null + && modelSpec_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec.getDefaultInstance()) { + getModelSpecBuilder().mergeFrom(value); } else { - naturalLanguageQueryUnderstandingSpecBuilder_.setMessage(builderForValue.build()); + modelSpec_ = value; } - bitField0_ |= 0x00000040; + } else { + modelSpecBuilder_.mergeFrom(value); + } + if (modelSpec_ != null) { + bitField0_ |= 0x00000001; onChanged(); - return this; } + return this; + } - /** - * - * - *
            -         * Optional. Specification to enable natural language understanding
            -         * capabilities for search requests.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeNaturalLanguageQueryUnderstandingSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - value) { - if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && naturalLanguageQueryUnderstandingSpec_ != null - && naturalLanguageQueryUnderstandingSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance()) { - getNaturalLanguageQueryUnderstandingSpecBuilder().mergeFrom(value); - } else { - naturalLanguageQueryUnderstandingSpec_ = value; + /** + * + * + *
            +       * Answer generation model specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; + * + */ + public Builder clearModelSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + modelSpec_ = null; + if (modelSpecBuilder_ != null) { + modelSpecBuilder_.dispose(); + modelSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Answer generation model specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec.Builder + getModelSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetModelSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Answer generation model specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpecOrBuilder + getModelSpecOrBuilder() { + if (modelSpecBuilder_ != null) { + return modelSpecBuilder_.getMessageOrBuilder(); + } else { + return modelSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec.getDefaultInstance() + : modelSpec_; + } + } + + /** + * + * + *
            +       * Answer generation model specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpecOrBuilder> + internalGetModelSpecFieldBuilder() { + if (modelSpecBuilder_ == null) { + modelSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .ModelSpecOrBuilder>(getModelSpec(), getParentForChildren(), isClean()); + modelSpec_ = null; + } + return modelSpecBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + promptSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpecOrBuilder> + promptSpecBuilder_; + + /** + * + * + *
            +       * Answer generation prompt specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; + * + * + * @return Whether the promptSpec field is set. + */ + public boolean hasPromptSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +       * Answer generation prompt specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; + * + * + * @return The promptSpec. + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec + getPromptSpec() { + if (promptSpecBuilder_ == null) { + return promptSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec.getDefaultInstance() + : promptSpec_; + } else { + return promptSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Answer generation prompt specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; + * + */ + public Builder setPromptSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec + value) { + if (promptSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + promptSpec_ = value; + } else { + promptSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Answer generation prompt specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; + * + */ + public Builder setPromptSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec + .Builder + builderForValue) { + if (promptSpecBuilder_ == null) { + promptSpec_ = builderForValue.build(); + } else { + promptSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Answer generation prompt specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; + * + */ + public Builder mergePromptSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec + value) { + if (promptSpecBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && promptSpec_ != null + && promptSpec_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec.getDefaultInstance()) { + getPromptSpecBuilder().mergeFrom(value); + } else { + promptSpec_ = value; + } + } else { + promptSpecBuilder_.mergeFrom(value); + } + if (promptSpec_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Answer generation prompt specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; + * + */ + public Builder clearPromptSpec() { + bitField0_ = (bitField0_ & ~0x00000002); + promptSpec_ = null; + if (promptSpecBuilder_ != null) { + promptSpecBuilder_.dispose(); + promptSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Answer generation prompt specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec.Builder + getPromptSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetPromptSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Answer generation prompt specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpecOrBuilder + getPromptSpecOrBuilder() { + if (promptSpecBuilder_ != null) { + return promptSpecBuilder_.getMessageOrBuilder(); + } else { + return promptSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec.getDefaultInstance() + : promptSpec_; + } + } + + /** + * + * + *
            +       * Answer generation prompt specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpecOrBuilder> + internalGetPromptSpecFieldBuilder() { + if (promptSpecBuilder_ == null) { + promptSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .PromptSpecOrBuilder>(getPromptSpec(), getParentForChildren(), isClean()); + promptSpec_ = null; + } + return promptSpecBuilder_; + } + + private boolean includeCitations_; + + /** + * + * + *
            +       * Specifies whether to include citation metadata in the answer. The default
            +       * value is `false`.
            +       * 
            + * + * bool include_citations = 3; + * + * @return The includeCitations. + */ + @java.lang.Override + public boolean getIncludeCitations() { + return includeCitations_; + } + + /** + * + * + *
            +       * Specifies whether to include citation metadata in the answer. The default
            +       * value is `false`.
            +       * 
            + * + * bool include_citations = 3; + * + * @param value The includeCitations to set. + * @return This builder for chaining. + */ + public Builder setIncludeCitations(boolean value) { + + includeCitations_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Specifies whether to include citation metadata in the answer. The default
            +       * value is `false`.
            +       * 
            + * + * bool include_citations = 3; + * + * @return This builder for chaining. + */ + public Builder clearIncludeCitations() { + bitField0_ = (bitField0_ & ~0x00000004); + includeCitations_ = false; + onChanged(); + return this; + } + + private java.lang.Object answerLanguageCode_ = ""; + + /** + * + * + *
            +       * Language code for Answer. Use language tags defined by
            +       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            +       * Note: This is an experimental feature.
            +       * 
            + * + * string answer_language_code = 4; + * + * @return The answerLanguageCode. + */ + public java.lang.String getAnswerLanguageCode() { + java.lang.Object ref = answerLanguageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerLanguageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Language code for Answer. Use language tags defined by
            +       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            +       * Note: This is an experimental feature.
            +       * 
            + * + * string answer_language_code = 4; + * + * @return The bytes for answerLanguageCode. + */ + public com.google.protobuf.ByteString getAnswerLanguageCodeBytes() { + java.lang.Object ref = answerLanguageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Language code for Answer. Use language tags defined by
            +       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            +       * Note: This is an experimental feature.
            +       * 
            + * + * string answer_language_code = 4; + * + * @param value The answerLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setAnswerLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + answerLanguageCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Language code for Answer. Use language tags defined by
            +       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            +       * Note: This is an experimental feature.
            +       * 
            + * + * string answer_language_code = 4; + * + * @return This builder for chaining. + */ + public Builder clearAnswerLanguageCode() { + answerLanguageCode_ = getDefaultInstance().getAnswerLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Language code for Answer. Use language tags defined by
            +       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            +       * Note: This is an experimental feature.
            +       * 
            + * + * string answer_language_code = 4; + * + * @param value The bytes for answerLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setAnswerLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerLanguageCode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean ignoreAdversarialQuery_; + + /** + * + * + *
            +       * Specifies whether to filter out adversarial queries. The default value
            +       * is `false`.
            +       *
            +       * Google employs search-query classification to detect adversarial
            +       * queries. No answer is returned if the search query is classified as an
            +       * adversarial query. For example, a user might ask a question regarding
            +       * negative comments about the company or submit a query designed to
            +       * generate unsafe, policy-violating output. If this field is set to
            +       * `true`, we skip generating answers for adversarial queries and return
            +       * fallback messages instead.
            +       * 
            + * + * bool ignore_adversarial_query = 5; + * + * @return The ignoreAdversarialQuery. + */ + @java.lang.Override + public boolean getIgnoreAdversarialQuery() { + return ignoreAdversarialQuery_; + } + + /** + * + * + *
            +       * Specifies whether to filter out adversarial queries. The default value
            +       * is `false`.
            +       *
            +       * Google employs search-query classification to detect adversarial
            +       * queries. No answer is returned if the search query is classified as an
            +       * adversarial query. For example, a user might ask a question regarding
            +       * negative comments about the company or submit a query designed to
            +       * generate unsafe, policy-violating output. If this field is set to
            +       * `true`, we skip generating answers for adversarial queries and return
            +       * fallback messages instead.
            +       * 
            + * + * bool ignore_adversarial_query = 5; + * + * @param value The ignoreAdversarialQuery to set. + * @return This builder for chaining. + */ + public Builder setIgnoreAdversarialQuery(boolean value) { + + ignoreAdversarialQuery_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Specifies whether to filter out adversarial queries. The default value
            +       * is `false`.
            +       *
            +       * Google employs search-query classification to detect adversarial
            +       * queries. No answer is returned if the search query is classified as an
            +       * adversarial query. For example, a user might ask a question regarding
            +       * negative comments about the company or submit a query designed to
            +       * generate unsafe, policy-violating output. If this field is set to
            +       * `true`, we skip generating answers for adversarial queries and return
            +       * fallback messages instead.
            +       * 
            + * + * bool ignore_adversarial_query = 5; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreAdversarialQuery() { + bitField0_ = (bitField0_ & ~0x00000010); + ignoreAdversarialQuery_ = false; + onChanged(); + return this; + } + + private boolean ignoreNonAnswerSeekingQuery_; + + /** + * + * + *
            +       * Specifies whether to filter out queries that are not answer-seeking.
            +       * The default value is `false`.
            +       *
            +       * Google employs search-query classification to detect answer-seeking
            +       * queries. No answer is returned if the search query is classified as a
            +       * non-answer seeking query. If this field is set to `true`, we skip
            +       * generating answers for non-answer seeking queries and return
            +       * fallback messages instead.
            +       * 
            + * + * bool ignore_non_answer_seeking_query = 6; + * + * @return The ignoreNonAnswerSeekingQuery. + */ + @java.lang.Override + public boolean getIgnoreNonAnswerSeekingQuery() { + return ignoreNonAnswerSeekingQuery_; + } + + /** + * + * + *
            +       * Specifies whether to filter out queries that are not answer-seeking.
            +       * The default value is `false`.
            +       *
            +       * Google employs search-query classification to detect answer-seeking
            +       * queries. No answer is returned if the search query is classified as a
            +       * non-answer seeking query. If this field is set to `true`, we skip
            +       * generating answers for non-answer seeking queries and return
            +       * fallback messages instead.
            +       * 
            + * + * bool ignore_non_answer_seeking_query = 6; + * + * @param value The ignoreNonAnswerSeekingQuery to set. + * @return This builder for chaining. + */ + public Builder setIgnoreNonAnswerSeekingQuery(boolean value) { + + ignoreNonAnswerSeekingQuery_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Specifies whether to filter out queries that are not answer-seeking.
            +       * The default value is `false`.
            +       *
            +       * Google employs search-query classification to detect answer-seeking
            +       * queries. No answer is returned if the search query is classified as a
            +       * non-answer seeking query. If this field is set to `true`, we skip
            +       * generating answers for non-answer seeking queries and return
            +       * fallback messages instead.
            +       * 
            + * + * bool ignore_non_answer_seeking_query = 6; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreNonAnswerSeekingQuery() { + bitField0_ = (bitField0_ & ~0x00000020); + ignoreNonAnswerSeekingQuery_ = false; + onChanged(); + return this; + } + + private boolean ignoreLowRelevantContent_; + + /** + * + * + *
            +       * Specifies whether to filter out queries that have low relevance.
            +       *
            +       * If this field is set to `false`, all search results are used regardless
            +       * 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; + * + * @return Whether the ignoreLowRelevantContent field is set. + */ + @java.lang.Override + public boolean hasIgnoreLowRelevantContent() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +       * Specifies whether to filter out queries that have low relevance.
            +       *
            +       * If this field is set to `false`, all search results are used regardless
            +       * 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; + * + * @return The ignoreLowRelevantContent. + */ + @java.lang.Override + public boolean getIgnoreLowRelevantContent() { + return ignoreLowRelevantContent_; + } + + /** + * + * + *
            +       * Specifies whether to filter out queries that have low relevance.
            +       *
            +       * If this field is set to `false`, all search results are used regardless
            +       * 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; + * + * @param value The ignoreLowRelevantContent to set. + * @return This builder for chaining. + */ + public Builder setIgnoreLowRelevantContent(boolean value) { + + ignoreLowRelevantContent_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Specifies whether to filter out queries that have low relevance.
            +       *
            +       * If this field is set to `false`, all search results are used regardless
            +       * 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; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreLowRelevantContent() { + bitField0_ = (bitField0_ & ~0x00000040); + ignoreLowRelevantContent_ = false; + onChanged(); + 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; + } + + private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + multimodalSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpecOrBuilder> + multimodalSpecBuilder_; + + /** + * + * + *
            +       * Optional. Multimodal specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec multimodal_spec = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multimodalSpec field is set. + */ + public boolean hasMultimodalSpec() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
            +       * Optional. Multimodal specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec multimodal_spec = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multimodalSpec. + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + getMultimodalSpec() { + if (multimodalSpecBuilder_ == null) { + return multimodalSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.getDefaultInstance() + : multimodalSpec_; + } else { + return multimodalSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. Multimodal specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec multimodal_spec = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultimodalSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + value) { + if (multimodalSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + multimodalSpec_ = value; + } else { + multimodalSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Multimodal specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec multimodal_spec = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultimodalSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.Builder + builderForValue) { + if (multimodalSpecBuilder_ == null) { + multimodalSpec_ = builderForValue.build(); + } else { + multimodalSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Multimodal specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec multimodal_spec = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMultimodalSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec + value) { + if (multimodalSpecBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && multimodalSpec_ != null + && multimodalSpec_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.getDefaultInstance()) { + getMultimodalSpecBuilder().mergeFrom(value); + } else { + multimodalSpec_ = value; + } + } else { + multimodalSpecBuilder_.mergeFrom(value); + } + if (multimodalSpec_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Multimodal specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec multimodal_spec = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMultimodalSpec() { + bitField0_ = (bitField0_ & ~0x00000100); + multimodalSpec_ = null; + if (multimodalSpecBuilder_ != null) { + multimodalSpecBuilder_.dispose(); + multimodalSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Multimodal specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec multimodal_spec = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.Builder + getMultimodalSpecBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetMultimodalSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Multimodal specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec multimodal_spec = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpecOrBuilder + getMultimodalSpecOrBuilder() { + if (multimodalSpecBuilder_ != null) { + return multimodalSpecBuilder_.getMessageOrBuilder(); + } else { + return multimodalSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.getDefaultInstance() + : multimodalSpec_; + } + } + + /** + * + * + *
            +       * Optional. Multimodal specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.MultimodalSpec multimodal_spec = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpecOrBuilder> + internalGetMultimodalSpecFieldBuilder() { + if (multimodalSpecBuilder_ == null) { + multimodalSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + .MultimodalSpecOrBuilder>( + getMultimodalSpec(), getParentForChildren(), isClean()); + multimodalSpec_ = null; + } + return multimodalSpecBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .AnswerGenerationSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnswerGenerationSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AnswerQueryRequest.AnswerGenerationSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SearchSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Search parameters.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * + * + * @return Whether the searchParams field is set. + */ + boolean hasSearchParams(); + + /** + * + * + *
            +     * Search parameters.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * + * + * @return The searchParams. + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + getSearchParams(); + + /** + * + * + *
            +     * Search parameters.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParamsOrBuilder + getSearchParamsOrBuilder(); + + /** + * + * + *
            +     * Search result list.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * + * + * @return Whether the searchResultList field is set. + */ + boolean hasSearchResultList(); + + /** + * + * + *
            +     * Search result list.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * + * + * @return The searchResultList. + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + getSearchResultList(); + + /** + * + * + *
            +     * Search result list.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultListOrBuilder + getSearchResultListOrBuilder(); + + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.InputCase getInputCase(); + } + + /** + * + * + *
            +   * Search specification.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec} + */ + public static final class SearchSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec) + SearchSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchSpec"); + } + + // Use SearchSpec.newBuilder() to construct. + private SearchSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchSpec() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.Builder.class); + } + + public interface SearchParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Number of search results to return.
            +       * The default value is 10.
            +       * 
            + * + * int32 max_return_results = 1; + * + * @return The maxReturnResults. + */ + int getMaxReturnResults(); + + /** + * + * + *
            +       * The filter syntax consists of an expression language for constructing
            +       * a predicate from one or more fields of the documents being filtered.
            +       * Filter expression is case-sensitive. This will be used to filter
            +       * search results which may affect the Answer response.
            +       *
            +       * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +       *
            +       * Filtering in Vertex AI Search is done by mapping the LHS filter key
            +       * to a key property defined in the Vertex AI Search backend -- this
            +       * mapping is defined by the customer in their schema. For example a
            +       * media customers might have a field 'name' in their schema. In this
            +       * case the filter would look like this: filter --> name:'ANY("king
            +       * kong")'
            +       *
            +       * For more information about filtering including syntax and filter
            +       * operators, see
            +       * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +       * 
            + * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +       * The filter syntax consists of an expression language for constructing
            +       * a predicate from one or more fields of the documents being filtered.
            +       * Filter expression is case-sensitive. This will be used to filter
            +       * search results which may affect the Answer response.
            +       *
            +       * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +       *
            +       * Filtering in Vertex AI Search is done by mapping the LHS filter key
            +       * to a key property defined in the Vertex AI Search backend -- this
            +       * mapping is defined by the customer in their schema. For example a
            +       * media customers might have a field 'name' in their schema. In this
            +       * case the filter would look like this: filter --> name:'ANY("king
            +       * kong")'
            +       *
            +       * For more information about filtering including syntax and filter
            +       * operators, see
            +       * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +       * 
            + * + * string filter = 2; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
            +       * Boost specification to boost certain documents in search results which
            +       * may affect the answer query response. For more information on boosting,
            +       * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; + * + * @return Whether the boostSpec field is set. + */ + boolean hasBoostSpec(); + + /** + * + * + *
            +       * Boost specification to boost certain documents in search results which
            +       * may affect the answer query response. For more information on boosting,
            +       * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; + * + * @return The boostSpec. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostSpec(); + + /** + * + * + *
            +       * Boost specification to boost certain documents in search results which
            +       * may affect the answer query response. For more information on boosting,
            +       * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder + getBoostSpecOrBuilder(); + + /** + * + * + *
            +       * The order in which documents are returned. Documents can be ordered
            +       * by a field in an
            +       * [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
            +       * it unset if ordered by relevance. `order_by` expression is
            +       * case-sensitive. For more information on ordering, see
            +       * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
            +       *
            +       * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            +       * 
            + * + * string order_by = 4; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
            +       * The order in which documents are returned. Documents can be ordered
            +       * by a field in an
            +       * [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
            +       * it unset if ordered by relevance. `order_by` expression is
            +       * case-sensitive. For more information on ordering, see
            +       * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
            +       *
            +       * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            +       * 
            + * + * string order_by = 4; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
            +       * Specifies the search result mode. If unspecified, the
            +       * search result mode defaults to `DOCUMENTS`.
            +       * See [parse and chunk
            +       * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; + * + * + * @return The enum numeric value on the wire for searchResultMode. + */ + int getSearchResultModeValue(); + + /** + * + * + *
            +       * Specifies the search result mode. If unspecified, the
            +       * search result mode defaults to `DOCUMENTS`.
            +       * See [parse and chunk
            +       * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; + * + * + * @return The searchResultMode. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode + getSearchResultMode(); + + /** + * + * + *
            +       * 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 use the specs at the top level.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + java.util.List + getDataStoreSpecsList(); + + /** + * + * + *
            +       * 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 use the specs at the top level.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec getDataStoreSpecs( + int index); + + /** + * + * + *
            +       * 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 use the specs at the top level.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + int getDataStoreSpecsCount(); + + /** + * + * + *
            +       * 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 use the specs at the top level.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> + getDataStoreSpecsOrBuilderList(); + + /** + * + * + *
            +       * 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 use the specs at the top level.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder + getDataStoreSpecsOrBuilder(int index); + + /** + * + * + *
            +       * Optional. Specification to enable natural language understanding
            +       * capabilities for search requests.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the naturalLanguageQueryUnderstandingSpec field is set. + */ + boolean hasNaturalLanguageQueryUnderstandingSpec(); + + /** + * + * + *
            +       * Optional. Specification to enable natural language understanding
            +       * capabilities for search requests.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The naturalLanguageQueryUnderstandingSpec. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + getNaturalLanguageQueryUnderstandingSpec(); + + /** + * + * + *
            +       * Optional. Specification to enable natural language understanding
            +       * capabilities for search requests.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder + getNaturalLanguageQueryUnderstandingSpecOrBuilder(); + } + + /** + * + * + *
            +     * Search parameters.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams} + */ + public static final class SearchParams extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) + SearchParamsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchParams"); + } + + // Use SearchParams.newBuilder() to construct. + private SearchParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchParams() { + filter_ = ""; + orderBy_ = ""; + searchResultMode_ = 0; + dataStoreSpecs_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + .class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + .Builder.class); + } + + private int bitField0_; + public static final int MAX_RETURN_RESULTS_FIELD_NUMBER = 1; + private int maxReturnResults_ = 0; + + /** + * + * + *
            +       * Number of search results to return.
            +       * The default value is 10.
            +       * 
            + * + * int32 max_return_results = 1; + * + * @return The maxReturnResults. + */ + @java.lang.Override + public int getMaxReturnResults() { + return maxReturnResults_; + } + + public static final int FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
            +       * The filter syntax consists of an expression language for constructing
            +       * a predicate from one or more fields of the documents being filtered.
            +       * Filter expression is case-sensitive. This will be used to filter
            +       * search results which may affect the Answer response.
            +       *
            +       * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +       *
            +       * Filtering in Vertex AI Search is done by mapping the LHS filter key
            +       * to a key property defined in the Vertex AI Search backend -- this
            +       * mapping is defined by the customer in their schema. For example a
            +       * media customers might have a field 'name' in their schema. In this
            +       * case the filter would look like this: filter --> name:'ANY("king
            +       * kong")'
            +       *
            +       * For more information about filtering including syntax and filter
            +       * operators, see
            +       * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +       * 
            + * + * string filter = 2; + * + * @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; + } + } + + /** + * + * + *
            +       * The filter syntax consists of an expression language for constructing
            +       * a predicate from one or more fields of the documents being filtered.
            +       * Filter expression is case-sensitive. This will be used to filter
            +       * search results which may affect the Answer response.
            +       *
            +       * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +       *
            +       * Filtering in Vertex AI Search is done by mapping the LHS filter key
            +       * to a key property defined in the Vertex AI Search backend -- this
            +       * mapping is defined by the customer in their schema. For example a
            +       * media customers might have a field 'name' in their schema. In this
            +       * case the filter would look like this: filter --> name:'ANY("king
            +       * kong")'
            +       *
            +       * For more information about filtering including syntax and filter
            +       * operators, see
            +       * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +       * 
            + * + * string filter = 2; + * + * @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 BOOST_SPEC_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boostSpec_; + + /** + * + * + *
            +       * Boost specification to boost certain documents in search results which
            +       * may affect the answer query response. For more information on boosting,
            +       * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; + * + * @return Whether the boostSpec field is set. + */ + @java.lang.Override + public boolean hasBoostSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Boost specification to boost certain documents in search results which
            +       * may affect the answer query response. For more information on boosting,
            +       * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; + * + * @return The boostSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostSpec() { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } + + /** + * + * + *
            +       * Boost specification to boost certain documents in search results which
            +       * may affect the answer query response. For more information on boosting,
            +       * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder + getBoostSpecOrBuilder() { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } + + public static final int ORDER_BY_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +       * The order in which documents are returned. Documents can be ordered
            +       * by a field in an
            +       * [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
            +       * it unset if ordered by relevance. `order_by` expression is
            +       * case-sensitive. For more information on ordering, see
            +       * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
            +       *
            +       * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            +       * 
            + * + * string order_by = 4; + * + * @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; + } + } + + /** + * + * + *
            +       * The order in which documents are returned. Documents can be ordered
            +       * by a field in an
            +       * [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
            +       * it unset if ordered by relevance. `order_by` expression is
            +       * case-sensitive. For more information on ordering, see
            +       * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
            +       *
            +       * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            +       * 
            + * + * string order_by = 4; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEARCH_RESULT_MODE_FIELD_NUMBER = 5; + private int searchResultMode_ = 0; + + /** + * + * + *
            +       * Specifies the search result mode. If unspecified, the
            +       * search result mode defaults to `DOCUMENTS`.
            +       * See [parse and chunk
            +       * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; + * + * + * @return The enum numeric value on the wire for searchResultMode. + */ + @java.lang.Override + public int getSearchResultModeValue() { + return searchResultMode_; + } + + /** + * + * + *
            +       * Specifies the search result mode. If unspecified, the
            +       * search result mode defaults to `DOCUMENTS`.
            +       * See [parse and chunk
            +       * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; + * + * + * @return The searchResultMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode + getSearchResultMode() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode + result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.forNumber(searchResultMode_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.UNRECOGNIZED + : result; + } + + public static final int DATA_STORE_SPECS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List + dataStoreSpecs_; + + /** + * + * + *
            +       * 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 use the specs at the top level.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + @java.lang.Override + public java.util.List + getDataStoreSpecsList() { + return dataStoreSpecs_; + } + + /** + * + * + *
            +       * 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 use the specs at the top level.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> + getDataStoreSpecsOrBuilderList() { + return dataStoreSpecs_; + } + + /** + * + * + *
            +       * 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 use the specs at the top level.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + @java.lang.Override + public int getDataStoreSpecsCount() { + return dataStoreSpecs_.size(); + } + + /** + * + * + *
            +       * 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 use the specs at the top level.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec getDataStoreSpecs( + int index) { + return dataStoreSpecs_.get(index); + } + + /** + * + * + *
            +       * 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 use the specs at the top level.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder + getDataStoreSpecsOrBuilder(int index) { + return dataStoreSpecs_.get(index); + } + + public static final int NATURAL_LANGUAGE_QUERY_UNDERSTANDING_SPEC_FIELD_NUMBER = 8; + private com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + naturalLanguageQueryUnderstandingSpec_; + + /** + * + * + *
            +       * Optional. Specification to enable natural language understanding
            +       * capabilities for search requests.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the naturalLanguageQueryUnderstandingSpec field is set. + */ + @java.lang.Override + public boolean hasNaturalLanguageQueryUnderstandingSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +       * Optional. Specification to enable natural language understanding
            +       * capabilities for search requests.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The naturalLanguageQueryUnderstandingSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + getNaturalLanguageQueryUnderstandingSpec() { + return naturalLanguageQueryUnderstandingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() + : naturalLanguageQueryUnderstandingSpec_; + } + + /** + * + * + *
            +       * Optional. Specification to enable natural language understanding
            +       * capabilities for search requests.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder + getNaturalLanguageQueryUnderstandingSpecOrBuilder() { + return naturalLanguageQueryUnderstandingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() + : naturalLanguageQueryUnderstandingSpec_; + } + + 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 (maxReturnResults_ != 0) { + output.writeInt32(1, maxReturnResults_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, filter_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getBoostSpec()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, orderBy_); + } + if (searchResultMode_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.SEARCH_RESULT_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, searchResultMode_); + } + for (int i = 0; i < dataStoreSpecs_.size(); i++) { + output.writeMessage(7, dataStoreSpecs_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getNaturalLanguageQueryUnderstandingSpec()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxReturnResults_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxReturnResults_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, filter_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBoostSpec()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, orderBy_); + } + if (searchResultMode_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.SEARCH_RESULT_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, searchResultMode_); + } + for (int i = 0; i < dataStoreSpecs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, dataStoreSpecs_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getNaturalLanguageQueryUnderstandingSpec()); + } + 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.v1beta.AnswerQueryRequest.SearchSpec.SearchParams)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) + obj; + + if (getMaxReturnResults() != other.getMaxReturnResults()) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (hasBoostSpec() != other.hasBoostSpec()) return false; + if (hasBoostSpec()) { + if (!getBoostSpec().equals(other.getBoostSpec())) return false; + } + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (searchResultMode_ != other.searchResultMode_) return false; + if (!getDataStoreSpecsList().equals(other.getDataStoreSpecsList())) return false; + if (hasNaturalLanguageQueryUnderstandingSpec() + != other.hasNaturalLanguageQueryUnderstandingSpec()) return false; + if (hasNaturalLanguageQueryUnderstandingSpec()) { + if (!getNaturalLanguageQueryUnderstandingSpec() + .equals(other.getNaturalLanguageQueryUnderstandingSpec())) 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) + MAX_RETURN_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxReturnResults(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + if (hasBoostSpec()) { + hash = (37 * hash) + BOOST_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getBoostSpec().hashCode(); + } + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SEARCH_RESULT_MODE_FIELD_NUMBER; + hash = (53 * hash) + searchResultMode_; + if (getDataStoreSpecsCount() > 0) { + hash = (37 * hash) + DATA_STORE_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getDataStoreSpecsList().hashCode(); + } + if (hasNaturalLanguageQueryUnderstandingSpec()) { + hash = (37 * hash) + NATURAL_LANGUAGE_QUERY_UNDERSTANDING_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getNaturalLanguageQueryUnderstandingSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams + 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.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams + parseFrom( + 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.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Search parameters.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + .class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBoostSpecFieldBuilder(); + internalGetDataStoreSpecsFieldBuilder(); + internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + maxReturnResults_ = 0; + filter_ = ""; + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; + } + orderBy_ = ""; + searchResultMode_ = 0; + if (dataStoreSpecsBuilder_ == null) { + dataStoreSpecs_ = java.util.Collections.emptyList(); + } else { + dataStoreSpecs_ = null; + dataStoreSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + naturalLanguageQueryUnderstandingSpec_ = null; + if (naturalLanguageQueryUnderstandingSpecBuilder_ != null) { + naturalLanguageQueryUnderstandingSpecBuilder_.dispose(); + naturalLanguageQueryUnderstandingSpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + result) { + if (dataStoreSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + dataStoreSpecs_ = java.util.Collections.unmodifiableList(dataStoreSpecs_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.dataStoreSpecs_ = dataStoreSpecs_; + } else { + result.dataStoreSpecs_ = dataStoreSpecsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxReturnResults_ = maxReturnResults_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.searchResultMode_ = searchResultMode_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.naturalLanguageQueryUnderstandingSpec_ = + naturalLanguageQueryUnderstandingSpecBuilder_ == null + ? naturalLanguageQueryUnderstandingSpec_ + : naturalLanguageQueryUnderstandingSpecBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + .getDefaultInstance()) return this; + if (other.getMaxReturnResults() != 0) { + setMaxReturnResults(other.getMaxReturnResults()); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasBoostSpec()) { + mergeBoostSpec(other.getBoostSpec()); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.searchResultMode_ != 0) { + setSearchResultModeValue(other.getSearchResultModeValue()); + } + if (dataStoreSpecsBuilder_ == null) { + if (!other.dataStoreSpecs_.isEmpty()) { + if (dataStoreSpecs_.isEmpty()) { + dataStoreSpecs_ = other.dataStoreSpecs_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.addAll(other.dataStoreSpecs_); + } + onChanged(); + } + } else { + if (!other.dataStoreSpecs_.isEmpty()) { + if (dataStoreSpecsBuilder_.isEmpty()) { + dataStoreSpecsBuilder_.dispose(); + dataStoreSpecsBuilder_ = null; + dataStoreSpecs_ = other.dataStoreSpecs_; + bitField0_ = (bitField0_ & ~0x00000020); + dataStoreSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDataStoreSpecsFieldBuilder() + : null; + } else { + dataStoreSpecsBuilder_.addAllMessages(other.dataStoreSpecs_); + } + } + } + if (other.hasNaturalLanguageQueryUnderstandingSpec()) { + mergeNaturalLanguageQueryUnderstandingSpec( + other.getNaturalLanguageQueryUnderstandingSpec()); + } + 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: + { + maxReturnResults_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetBoostSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + searchResultMode_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 58: + { + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + .parser(), + extensionRegistry); + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(m); + } else { + dataStoreSpecsBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int maxReturnResults_; + + /** + * + * + *
            +         * Number of search results to return.
            +         * The default value is 10.
            +         * 
            + * + * int32 max_return_results = 1; + * + * @return The maxReturnResults. + */ + @java.lang.Override + public int getMaxReturnResults() { + return maxReturnResults_; + } + + /** + * + * + *
            +         * Number of search results to return.
            +         * The default value is 10.
            +         * 
            + * + * int32 max_return_results = 1; + * + * @param value The maxReturnResults to set. + * @return This builder for chaining. + */ + public Builder setMaxReturnResults(int value) { + + maxReturnResults_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Number of search results to return.
            +         * The default value is 10.
            +         * 
            + * + * int32 max_return_results = 1; + * + * @return This builder for chaining. + */ + public Builder clearMaxReturnResults() { + bitField0_ = (bitField0_ & ~0x00000001); + maxReturnResults_ = 0; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
            +         * The filter syntax consists of an expression language for constructing
            +         * a predicate from one or more fields of the documents being filtered.
            +         * Filter expression is case-sensitive. This will be used to filter
            +         * search results which may affect the Answer response.
            +         *
            +         * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +         *
            +         * Filtering in Vertex AI Search is done by mapping the LHS filter key
            +         * to a key property defined in the Vertex AI Search backend -- this
            +         * mapping is defined by the customer in their schema. For example a
            +         * media customers might have a field 'name' in their schema. In this
            +         * case the filter would look like this: filter --> name:'ANY("king
            +         * kong")'
            +         *
            +         * For more information about filtering including syntax and filter
            +         * operators, see
            +         * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +         * 
            + * + * string filter = 2; + * + * @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; + } + } + + /** + * + * + *
            +         * The filter syntax consists of an expression language for constructing
            +         * a predicate from one or more fields of the documents being filtered.
            +         * Filter expression is case-sensitive. This will be used to filter
            +         * search results which may affect the Answer response.
            +         *
            +         * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +         *
            +         * Filtering in Vertex AI Search is done by mapping the LHS filter key
            +         * to a key property defined in the Vertex AI Search backend -- this
            +         * mapping is defined by the customer in their schema. For example a
            +         * media customers might have a field 'name' in their schema. In this
            +         * case the filter would look like this: filter --> name:'ANY("king
            +         * kong")'
            +         *
            +         * For more information about filtering including syntax and filter
            +         * operators, see
            +         * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +         * 
            + * + * string filter = 2; + * + * @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; + } + } + + /** + * + * + *
            +         * The filter syntax consists of an expression language for constructing
            +         * a predicate from one or more fields of the documents being filtered.
            +         * Filter expression is case-sensitive. This will be used to filter
            +         * search results which may affect the Answer response.
            +         *
            +         * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +         *
            +         * Filtering in Vertex AI Search is done by mapping the LHS filter key
            +         * to a key property defined in the Vertex AI Search backend -- this
            +         * mapping is defined by the customer in their schema. For example a
            +         * media customers might have a field 'name' in their schema. In this
            +         * case the filter would look like this: filter --> name:'ANY("king
            +         * kong")'
            +         *
            +         * For more information about filtering including syntax and filter
            +         * operators, see
            +         * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +         * 
            + * + * string filter = 2; + * + * @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; + } + + /** + * + * + *
            +         * The filter syntax consists of an expression language for constructing
            +         * a predicate from one or more fields of the documents being filtered.
            +         * Filter expression is case-sensitive. This will be used to filter
            +         * search results which may affect the Answer response.
            +         *
            +         * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +         *
            +         * Filtering in Vertex AI Search is done by mapping the LHS filter key
            +         * to a key property defined in the Vertex AI Search backend -- this
            +         * mapping is defined by the customer in their schema. For example a
            +         * media customers might have a field 'name' in their schema. In this
            +         * case the filter would look like this: filter --> name:'ANY("king
            +         * kong")'
            +         *
            +         * For more information about filtering including syntax and filter
            +         * operators, see
            +         * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +         * 
            + * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +         * The filter syntax consists of an expression language for constructing
            +         * a predicate from one or more fields of the documents being filtered.
            +         * Filter expression is case-sensitive. This will be used to filter
            +         * search results which may affect the Answer response.
            +         *
            +         * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +         *
            +         * Filtering in Vertex AI Search is done by mapping the LHS filter key
            +         * to a key property defined in the Vertex AI Search backend -- this
            +         * mapping is defined by the customer in their schema. For example a
            +         * media customers might have a field 'name' in their schema. In this
            +         * case the filter would look like this: filter --> name:'ANY("king
            +         * kong")'
            +         *
            +         * For more information about filtering including syntax and filter
            +         * operators, see
            +         * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +         * 
            + * + * string filter = 2; + * + * @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 com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boostSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder> + boostSpecBuilder_; + + /** + * + * + *
            +         * Boost specification to boost certain documents in search results which
            +         * may affect the answer query response. For more information on boosting,
            +         * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            +         * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; + * + * @return Whether the boostSpec field is set. + */ + public boolean hasBoostSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +         * Boost specification to boost certain documents in search results which
            +         * may affect the answer query response. For more information on boosting,
            +         * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            +         * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; + * + * @return The boostSpec. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostSpec() { + if (boostSpecBuilder_ == null) { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec + .getDefaultInstance() + : boostSpec_; + } else { + return boostSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
            +         * Boost specification to boost certain documents in search results which
            +         * may affect the answer query response. For more information on boosting,
            +         * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            +         * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; + */ + public Builder setBoostSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + boostSpec_ = value; + } else { + boostSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Boost specification to boost certain documents in search results which
            +         * may affect the answer query response. For more information on boosting,
            +         * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            +         * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; + */ + public Builder setBoostSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder + builderForValue) { + if (boostSpecBuilder_ == null) { + boostSpec_ = builderForValue.build(); + } else { + boostSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Boost specification to boost certain documents in search results which
            +         * may affect the answer query response. For more information on boosting,
            +         * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            +         * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; + */ + public Builder mergeBoostSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && boostSpec_ != null + && boostSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec + .getDefaultInstance()) { + getBoostSpecBuilder().mergeFrom(value); + } else { + boostSpec_ = value; + } + } else { + boostSpecBuilder_.mergeFrom(value); + } + if (boostSpec_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * Boost specification to boost certain documents in search results which
            +         * may affect the answer query response. For more information on boosting,
            +         * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            +         * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; + */ + public Builder clearBoostSpec() { + bitField0_ = (bitField0_ & ~0x00000004); + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +         * Boost specification to boost certain documents in search results which
            +         * may affect the answer query response. For more information on boosting,
            +         * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            +         * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder + getBoostSpecBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetBoostSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Boost specification to boost certain documents in search results which
            +         * may affect the answer query response. For more information on boosting,
            +         * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            +         * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder + getBoostSpecOrBuilder() { + if (boostSpecBuilder_ != null) { + return boostSpecBuilder_.getMessageOrBuilder(); + } else { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec + .getDefaultInstance() + : boostSpec_; + } + } + + /** + * + * + *
            +         * Boost specification to boost certain documents in search results which
            +         * may affect the answer query response. For more information on boosting,
            +         * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost)
            +         * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder> + internalGetBoostSpecFieldBuilder() { + if (boostSpecBuilder_ == null) { + boostSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder>( + getBoostSpec(), getParentForChildren(), isClean()); + boostSpec_ = null; + } + return boostSpecBuilder_; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +         * The order in which documents are returned. Documents can be ordered
            +         * by a field in an
            +         * [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
            +         * it unset if ordered by relevance. `order_by` expression is
            +         * case-sensitive. For more information on ordering, see
            +         * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
            +         *
            +         * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            +         * 
            + * + * string order_by = 4; + * + * @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; + } + } + + /** + * + * + *
            +         * The order in which documents are returned. Documents can be ordered
            +         * by a field in an
            +         * [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
            +         * it unset if ordered by relevance. `order_by` expression is
            +         * case-sensitive. For more information on ordering, see
            +         * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
            +         *
            +         * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            +         * 
            + * + * string order_by = 4; + * + * @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; + } + } + + /** + * + * + *
            +         * The order in which documents are returned. Documents can be ordered
            +         * by a field in an
            +         * [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
            +         * it unset if ordered by relevance. `order_by` expression is
            +         * case-sensitive. For more information on ordering, see
            +         * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
            +         *
            +         * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            +         * 
            + * + * string order_by = 4; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +         * The order in which documents are returned. Documents can be ordered
            +         * by a field in an
            +         * [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
            +         * it unset if ordered by relevance. `order_by` expression is
            +         * case-sensitive. For more information on ordering, see
            +         * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
            +         *
            +         * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            +         * 
            + * + * string order_by = 4; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +         * The order in which documents are returned. Documents can be ordered
            +         * by a field in an
            +         * [Document][google.cloud.discoveryengine.v1beta.Document] object. Leave
            +         * it unset if ordered by relevance. `order_by` expression is
            +         * case-sensitive. For more information on ordering, see
            +         * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order)
            +         *
            +         * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            +         * 
            + * + * string order_by = 4; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int searchResultMode_ = 0; + + /** + * + * + *
            +         * Specifies the search result mode. If unspecified, the
            +         * search result mode defaults to `DOCUMENTS`.
            +         * See [parse and chunk
            +         * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; + * + * + * @return The enum numeric value on the wire for searchResultMode. + */ + @java.lang.Override + public int getSearchResultModeValue() { + return searchResultMode_; + } + + /** + * + * + *
            +         * Specifies the search result mode. If unspecified, the
            +         * search result mode defaults to `DOCUMENTS`.
            +         * See [parse and chunk
            +         * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; + * + * + * @param value The enum numeric value on the wire for searchResultMode to set. + * @return This builder for chaining. + */ + public Builder setSearchResultModeValue(int value) { + searchResultMode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Specifies the search result mode. If unspecified, the
            +         * search result mode defaults to `DOCUMENTS`.
            +         * See [parse and chunk
            +         * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; + * + * + * @return The searchResultMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode + getSearchResultMode() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode + result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.forNumber(searchResultMode_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +         * Specifies the search result mode. If unspecified, the
            +         * search result mode defaults to `DOCUMENTS`.
            +         * See [parse and chunk
            +         * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; + * + * + * @param value The searchResultMode to set. + * @return This builder for chaining. + */ + public Builder setSearchResultMode( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + searchResultMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Specifies the search result mode. If unspecified, the
            +         * search result mode defaults to `DOCUMENTS`.
            +         * See [parse and chunk
            +         * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; + * + * + * @return This builder for chaining. + */ + public Builder clearSearchResultMode() { + bitField0_ = (bitField0_ & ~0x00000010); + searchResultMode_ = 0; + onChanged(); + return this; + } + + private java.util.List + dataStoreSpecs_ = java.util.Collections.emptyList(); + + private void ensureDataStoreSpecsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + dataStoreSpecs_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec>( + dataStoreSpecs_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> + dataStoreSpecsBuilder_; + + /** + * + * + *
            +         * 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 use the specs at the top level.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + public java.util.List + getDataStoreSpecsList() { + if (dataStoreSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataStoreSpecs_); + } else { + return dataStoreSpecsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +         * 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 use the specs at the top level.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + public int getDataStoreSpecsCount() { + if (dataStoreSpecsBuilder_ == null) { + return dataStoreSpecs_.size(); + } else { + return dataStoreSpecsBuilder_.getCount(); + } + } + + /** + * + * + *
            +         * 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 use the specs at the top level.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + getDataStoreSpecs(int index) { + if (dataStoreSpecsBuilder_ == null) { + return dataStoreSpecs_.get(index); + } else { + return dataStoreSpecsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +         * 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 use the specs at the top level.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + public Builder setDataStoreSpecs( + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec value) { + if (dataStoreSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.set(index, value); + onChanged(); + } else { + dataStoreSpecsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * 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 use the specs at the top level.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + public Builder setDataStoreSpecs( + int index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + builderForValue) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + dataStoreSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * 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 use the specs at the top level.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + public Builder addDataStoreSpecs( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec value) { + if (dataStoreSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(value); + onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +         * 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 use the specs at the top level.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + public Builder addDataStoreSpecs( + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec value) { + if (dataStoreSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(index, value); + onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * 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 use the specs at the top level.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + public Builder addDataStoreSpecs( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + builderForValue) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(builderForValue.build()); + onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * 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 use the specs at the top level.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + public Builder addDataStoreSpecs( + int index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + builderForValue) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * 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 use the specs at the top level.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + public Builder addAllDataStoreSpecs( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec> + values) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStoreSpecs_); + onChanged(); + } else { + dataStoreSpecsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +         * 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 use the specs at the top level.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + public Builder clearDataStoreSpecs() { + if (dataStoreSpecsBuilder_ == null) { + dataStoreSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + dataStoreSpecsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +         * 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 use the specs at the top level.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + public Builder removeDataStoreSpecs(int index) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.remove(index); + onChanged(); + } else { + dataStoreSpecsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +         * 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 use the specs at the top level.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + getDataStoreSpecsBuilder(int index) { + return internalGetDataStoreSpecsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +         * 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 use the specs at the top level.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder + getDataStoreSpecsOrBuilder(int index) { + if (dataStoreSpecsBuilder_ == null) { + return dataStoreSpecs_.get(index); + } else { + return dataStoreSpecsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +         * 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 use the specs at the top level.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> + getDataStoreSpecsOrBuilderList() { + if (dataStoreSpecsBuilder_ != null) { + return dataStoreSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataStoreSpecs_); + } + } + + /** + * + * + *
            +         * 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 use the specs at the top level.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + addDataStoreSpecsBuilder() { + return internalGetDataStoreSpecsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + .getDefaultInstance()); + } + + /** + * + * + *
            +         * 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 use the specs at the top level.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + addDataStoreSpecsBuilder(int index) { + return internalGetDataStoreSpecsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + .getDefaultInstance()); + } + + /** + * + * + *
            +         * 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 use the specs at the top level.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 7; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder> + getDataStoreSpecsBuilderList() { + return internalGetDataStoreSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> + internalGetDataStoreSpecsFieldBuilder() { + if (dataStoreSpecsBuilder_ == null) { + dataStoreSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder>( + dataStoreSpecs_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + dataStoreSpecs_ = null; + } + return dataStoreSpecsBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + naturalLanguageQueryUnderstandingSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder> + naturalLanguageQueryUnderstandingSpecBuilder_; + + /** + * + * + *
            +         * Optional. Specification to enable natural language understanding
            +         * capabilities for search requests.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the naturalLanguageQueryUnderstandingSpec field is set. + */ + public boolean hasNaturalLanguageQueryUnderstandingSpec() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +         * Optional. Specification to enable natural language understanding
            +         * capabilities for search requests.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The naturalLanguageQueryUnderstandingSpec. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + getNaturalLanguageQueryUnderstandingSpec() { + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { + return naturalLanguageQueryUnderstandingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() + : naturalLanguageQueryUnderstandingSpec_; + } else { + return naturalLanguageQueryUnderstandingSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
            +         * Optional. Specification to enable natural language understanding
            +         * capabilities for search requests.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNaturalLanguageQueryUnderstandingSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + value) { + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + naturalLanguageQueryUnderstandingSpec_ = value; + } else { + naturalLanguageQueryUnderstandingSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Specification to enable natural language understanding
            +         * capabilities for search requests.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNaturalLanguageQueryUnderstandingSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder + builderForValue) { + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { + naturalLanguageQueryUnderstandingSpec_ = builderForValue.build(); + } else { + naturalLanguageQueryUnderstandingSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Specification to enable natural language understanding
            +         * capabilities for search requests.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeNaturalLanguageQueryUnderstandingSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + value) { + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && naturalLanguageQueryUnderstandingSpec_ != null + && naturalLanguageQueryUnderstandingSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance()) { + getNaturalLanguageQueryUnderstandingSpecBuilder().mergeFrom(value); + } else { + naturalLanguageQueryUnderstandingSpec_ = value; + } + } else { + naturalLanguageQueryUnderstandingSpecBuilder_.mergeFrom(value); + } + if (naturalLanguageQueryUnderstandingSpec_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * Optional. Specification to enable natural language understanding
            +         * capabilities for search requests.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNaturalLanguageQueryUnderstandingSpec() { + bitField0_ = (bitField0_ & ~0x00000040); + naturalLanguageQueryUnderstandingSpec_ = null; + if (naturalLanguageQueryUnderstandingSpecBuilder_ != null) { + naturalLanguageQueryUnderstandingSpecBuilder_.dispose(); + naturalLanguageQueryUnderstandingSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Specification to enable natural language understanding
            +         * capabilities for search requests.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder + getNaturalLanguageQueryUnderstandingSpecBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Optional. Specification to enable natural language understanding
            +         * capabilities for search requests.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder + getNaturalLanguageQueryUnderstandingSpecOrBuilder() { + if (naturalLanguageQueryUnderstandingSpecBuilder_ != null) { + return naturalLanguageQueryUnderstandingSpecBuilder_.getMessageOrBuilder(); + } else { + return naturalLanguageQueryUnderstandingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() + : naturalLanguageQueryUnderstandingSpec_; + } + } + + /** + * + * + *
            +         * Optional. Specification to enable natural language understanding
            +         * capabilities for search requests.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder> + internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder() { + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { + naturalLanguageQueryUnderstandingSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder>( + getNaturalLanguageQueryUnderstandingSpec(), getParentForChildren(), isClean()); + naturalLanguageQueryUnderstandingSpec_ = null; + } + return naturalLanguageQueryUnderstandingSpecBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams(); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SearchResultListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Search results.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult> + getSearchResultsList(); + + /** + * + * + *
            +       * Search results.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult + getSearchResults(int index); + + /** + * + * + *
            +       * Search results.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + int getSearchResultsCount(); + + /** + * + * + *
            +       * Search results.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResultOrBuilder> + getSearchResultsOrBuilderList(); + + /** + * + * + *
            +       * Search results.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResultOrBuilder + getSearchResultsOrBuilder(int index); + } + + /** + * + * + *
            +     * Search result list.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList} + */ + public static final class SearchResultList extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList) + SearchResultListOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchResultList"); + } + + // Use SearchResultList.newBuilder() to construct. + private SearchResultList(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchResultList() { + searchResults_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.Builder.class); + } + + public interface SearchResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +         * Unstructured document information.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; + * + * + * @return Whether the unstructuredDocumentInfo field is set. + */ + boolean hasUnstructuredDocumentInfo(); + + /** + * + * + *
            +         * Unstructured document information.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; + * + * + * @return The unstructuredDocumentInfo. + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.UnstructuredDocumentInfo + getUnstructuredDocumentInfo(); + + /** + * + * + *
            +         * Unstructured document information.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.UnstructuredDocumentInfoOrBuilder + getUnstructuredDocumentInfoOrBuilder(); + + /** + * + * + *
            +         * Chunk information.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * + * + * @return Whether the chunkInfo field is set. + */ + boolean hasChunkInfo(); + + /** + * + * + *
            +         * Chunk information.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * + * + * @return The chunkInfo. + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo + getChunkInfo(); + + /** + * + * + *
            +         * Chunk information.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfoOrBuilder + getChunkInfoOrBuilder(); + + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ContentCase + getContentCase(); + } + + /** + * + * + *
            +       * Search result.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult} + */ + public static final class SearchResult extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult) + SearchResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchResult"); + } + + // Use SearchResult.newBuilder() to construct. + private SearchResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchResult() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.Builder.class); + } + + public interface UnstructuredDocumentInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +           * Document resource name.
            +           * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The document. + */ + java.lang.String getDocument(); + + /** + * + * + *
            +           * Document resource name.
            +           * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for document. + */ + com.google.protobuf.ByteString getDocumentBytes(); + + /** + * + * + *
            +           * URI for the document.
            +           * 
            + * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
            +           * URI for the document.
            +           * 
            + * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
            +           * Title.
            +           * 
            + * + * string title = 3; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
            +           * Title.
            +           * 
            + * + * string title = 3; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
            +           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext> + getDocumentContextsList(); + + /** + * + * + *
            +           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.UnstructuredDocumentInfo.DocumentContext + getDocumentContexts(int index); + + /** + * + * + *
            +           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + int getDocumentContextsCount(); + + /** + * + * + *
            +           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .DocumentContextOrBuilder> + getDocumentContextsOrBuilderList(); + + /** + * + * + *
            +           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.UnstructuredDocumentInfo.DocumentContextOrBuilder + getDocumentContextsOrBuilder(int index); + + /** + * + * + *
            +           * List of extractive segments.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment> + getExtractiveSegmentsList(); + + /** + * + * + *
            +           * List of extractive segments.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + getExtractiveSegments(int index); + + /** + * + * + *
            +           * List of extractive segments.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + int getExtractiveSegmentsCount(); + + /** + * + * + *
            +           * List of extractive segments.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveSegmentOrBuilder> + getExtractiveSegmentsOrBuilderList(); + + /** + * + * + *
            +           * List of extractive segments.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.UnstructuredDocumentInfo.ExtractiveSegmentOrBuilder + getExtractiveSegmentsOrBuilder(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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * + */ + @java.lang.Deprecated + java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer> + getExtractiveAnswersList(); + + /** + * + * + *
            +           * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + getExtractiveAnswers(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.v1beta.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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * + */ + @java.lang.Deprecated + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveAnswerOrBuilder> + getExtractiveAnswersOrBuilderList(); + + /** + * + * + *
            +           * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.UnstructuredDocumentInfo.ExtractiveAnswerOrBuilder + getExtractiveAnswersOrBuilder(int index); + } + + /** + * + * + *
            +         * Unstructured document information.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo} + */ + public static final class UnstructuredDocumentInfo + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo) + UnstructuredDocumentInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UnstructuredDocumentInfo"); + } + + // Use UnstructuredDocumentInfo.newBuilder() to construct. + private UnstructuredDocumentInfo( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UnstructuredDocumentInfo() { + document_ = ""; + uri_ = ""; + title_ = ""; + documentContexts_ = java.util.Collections.emptyList(); + extractiveSegments_ = java.util.Collections.emptyList(); + extractiveAnswers_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.Builder.class); + } + + public interface DocumentContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +             * Page identifier.
            +             * 
            + * + * string page_identifier = 1; + * + * @return The pageIdentifier. + */ + java.lang.String getPageIdentifier(); + + /** + * + * + *
            +             * Page identifier.
            +             * 
            + * + * string page_identifier = 1; + * + * @return The bytes for pageIdentifier. + */ + com.google.protobuf.ByteString getPageIdentifierBytes(); + + /** + * + * + *
            +             * Document content to be used for answer generation.
            +             * 
            + * + * string content = 2; + * + * @return The content. + */ + java.lang.String getContent(); + + /** + * + * + *
            +             * Document content to be used for answer generation.
            +             * 
            + * + * string content = 2; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); + } + + /** + * + * + *
            +           * Document context.
            +           * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext} + */ + public static final class DocumentContext extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext) + DocumentContextOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DocumentContext"); + } + + // Use DocumentContext.newBuilder() to construct. + private DocumentContext(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DocumentContext() { + pageIdentifier_ = ""; + content_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_DocumentContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_DocumentContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + .class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + .Builder.class); + } + + public static final int PAGE_IDENTIFIER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageIdentifier_ = ""; + + /** + * + * + *
            +             * Page identifier.
            +             * 
            + * + * string page_identifier = 1; + * + * @return The pageIdentifier. + */ + @java.lang.Override + public java.lang.String getPageIdentifier() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageIdentifier_ = s; + return s; + } + } + + /** + * + * + *
            +             * Page identifier.
            +             * 
            + * + * string page_identifier = 1; + * + * @return The bytes for pageIdentifier. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageIdentifierBytes() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageIdentifier_ = 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_ = ""; + + /** + * + * + *
            +             * Document content to be used for answer generation.
            +             * 
            + * + * 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; + } + } + + /** + * + * + *
            +             * Document content to be used for answer generation.
            +             * 
            + * + * 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, pageIdentifier_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, content_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, pageIdentifier_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, content_); + } + 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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.UnstructuredDocumentInfo.DocumentContext + other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .DocumentContext) + obj; + + if (!getPageIdentifier().equals(other.getPageIdentifier())) return false; + if (!getContent().equals(other.getContent())) 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) + PAGE_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getPageIdentifier().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + 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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + parseFrom( + 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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +             * Document context.
            +             * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .DocumentContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_DocumentContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_DocumentContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + .class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pageIdentifier_ = ""; + content_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_DocumentContext_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pageIdentifier_ = pageIdentifier_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = content_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .DocumentContext) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + .getDefaultInstance()) return this; + if (!other.getPageIdentifier().isEmpty()) { + pageIdentifier_ = other.pageIdentifier_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getContent().isEmpty()) { + content_ = other.content_; + 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: + { + pageIdentifier_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + content_ = 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 pageIdentifier_ = ""; + + /** + * + * + *
            +               * Page identifier.
            +               * 
            + * + * string page_identifier = 1; + * + * @return The pageIdentifier. + */ + public java.lang.String getPageIdentifier() { + java.lang.Object ref = pageIdentifier_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageIdentifier_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +               * Page identifier.
            +               * 
            + * + * string page_identifier = 1; + * + * @return The bytes for pageIdentifier. + */ + public com.google.protobuf.ByteString getPageIdentifierBytes() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageIdentifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +               * Page identifier.
            +               * 
            + * + * string page_identifier = 1; + * + * @param value The pageIdentifier to set. + * @return This builder for chaining. + */ + public Builder setPageIdentifier(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageIdentifier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +               * Page identifier.
            +               * 
            + * + * string page_identifier = 1; + * + * @return This builder for chaining. + */ + public Builder clearPageIdentifier() { + pageIdentifier_ = getDefaultInstance().getPageIdentifier(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +               * Page identifier.
            +               * 
            + * + * string page_identifier = 1; + * + * @param value The bytes for pageIdentifier to set. + * @return This builder for chaining. + */ + public Builder setPageIdentifierBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageIdentifier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object content_ = ""; + + /** + * + * + *
            +               * Document content to be used for answer generation.
            +               * 
            + * + * string content = 2; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +               * Document content to be used for answer generation.
            +               * 
            + * + * string content = 2; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof 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; + } + } + + /** + * + * + *
            +               * Document content to be used for answer generation.
            +               * 
            + * + * string content = 2; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +               * Document content to be used for answer generation.
            +               * 
            + * + * string content = 2; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +               * Document content to be used for answer generation.
            +               * 
            + * + * string content = 2; + * + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo + .DocumentContext + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext(); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DocumentContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ExtractiveSegmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +             * Page identifier.
            +             * 
            + * + * string page_identifier = 1; + * + * @return The pageIdentifier. + */ + java.lang.String getPageIdentifier(); + + /** + * + * + *
            +             * Page identifier.
            +             * 
            + * + * string page_identifier = 1; + * + * @return The bytes for pageIdentifier. + */ + com.google.protobuf.ByteString getPageIdentifierBytes(); + + /** + * + * + *
            +             * Extractive segment content.
            +             * 
            + * + * string content = 2; + * + * @return The content. + */ + java.lang.String getContent(); + + /** + * + * + *
            +             * Extractive segment content.
            +             * 
            + * + * string content = 2; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); + } + + /** + * + * + *
            +           * 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 + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment} + */ + public static final class ExtractiveSegment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment) + ExtractiveSegmentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExtractiveSegment"); + } + + // Use ExtractiveSegment.newBuilder() to construct. + private ExtractiveSegment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExtractiveSegment() { + pageIdentifier_ = ""; + content_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .Builder.class); + } + + public static final int PAGE_IDENTIFIER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageIdentifier_ = ""; + + /** + * + * + *
            +             * Page identifier.
            +             * 
            + * + * string page_identifier = 1; + * + * @return The pageIdentifier. + */ + @java.lang.Override + public java.lang.String getPageIdentifier() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageIdentifier_ = s; + return s; + } + } + + /** + * + * + *
            +             * Page identifier.
            +             * 
            + * + * string page_identifier = 1; + * + * @return The bytes for pageIdentifier. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageIdentifierBytes() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageIdentifier_ = 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_ = ""; + + /** + * + * + *
            +             * Extractive segment 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; + } + } + + /** + * + * + *
            +             * Extractive segment 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, pageIdentifier_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, content_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, pageIdentifier_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, content_); + } + 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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveSegment) + obj; + + if (!getPageIdentifier().equals(other.getPageIdentifier())) return false; + if (!getContent().equals(other.getContent())) 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) + PAGE_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getPageIdentifier().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + 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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + parseFrom( + 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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +             * 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 + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveSegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveSegment.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveSegment.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pageIdentifier_ = ""; + content_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveSegment_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveSegment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pageIdentifier_ = pageIdentifier_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = content_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveSegment) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .getDefaultInstance()) return this; + if (!other.getPageIdentifier().isEmpty()) { + pageIdentifier_ = other.pageIdentifier_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getContent().isEmpty()) { + content_ = other.content_; + 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: + { + pageIdentifier_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + content_ = 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 pageIdentifier_ = ""; + + /** + * + * + *
            +               * Page identifier.
            +               * 
            + * + * string page_identifier = 1; + * + * @return The pageIdentifier. + */ + public java.lang.String getPageIdentifier() { + java.lang.Object ref = pageIdentifier_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageIdentifier_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +               * Page identifier.
            +               * 
            + * + * string page_identifier = 1; + * + * @return The bytes for pageIdentifier. + */ + public com.google.protobuf.ByteString getPageIdentifierBytes() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageIdentifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +               * Page identifier.
            +               * 
            + * + * string page_identifier = 1; + * + * @param value The pageIdentifier to set. + * @return This builder for chaining. + */ + public Builder setPageIdentifier(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageIdentifier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +               * Page identifier.
            +               * 
            + * + * string page_identifier = 1; + * + * @return This builder for chaining. + */ + public Builder clearPageIdentifier() { + pageIdentifier_ = getDefaultInstance().getPageIdentifier(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +               * Page identifier.
            +               * 
            + * + * string page_identifier = 1; + * + * @param value The bytes for pageIdentifier to set. + * @return This builder for chaining. + */ + public Builder setPageIdentifierBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageIdentifier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object content_ = ""; + + /** + * + * + *
            +               * Extractive segment content.
            +               * 
            + * + * string content = 2; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +               * Extractive segment content.
            +               * 
            + * + * string content = 2; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof 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; + } + } + + /** + * + * + *
            +               * Extractive segment content.
            +               * 
            + * + * string content = 2; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +               * Extractive segment content.
            +               * 
            + * + * string content = 2; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +               * Extractive segment content.
            +               * 
            + * + * string content = 2; + * + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveSegment + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment(); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExtractiveSegment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ExtractiveAnswerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +             * Page identifier.
            +             * 
            + * + * string page_identifier = 1; + * + * @return The pageIdentifier. + */ + java.lang.String getPageIdentifier(); + + /** + * + * + *
            +             * Page identifier.
            +             * 
            + * + * string page_identifier = 1; + * + * @return The bytes for pageIdentifier. + */ + com.google.protobuf.ByteString getPageIdentifierBytes(); + + /** + * + * + *
            +             * Extractive answer content.
            +             * 
            + * + * string content = 2; + * + * @return The content. + */ + java.lang.String getContent(); + + /** + * + * + *
            +             * Extractive answer content.
            +             * 
            + * + * string content = 2; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); + } + + /** + * + * + *
            +           * Extractive answer.
            +           * [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#get-answers)
            +           * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer} + */ + public static final class ExtractiveAnswer extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer) + ExtractiveAnswerOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExtractiveAnswer"); + } + + // Use ExtractiveAnswer.newBuilder() to construct. + private ExtractiveAnswer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExtractiveAnswer() { + pageIdentifier_ = ""; + content_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + .class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + .Builder.class); + } + + public static final int PAGE_IDENTIFIER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageIdentifier_ = ""; + + /** + * + * + *
            +             * Page identifier.
            +             * 
            + * + * string page_identifier = 1; + * + * @return The pageIdentifier. + */ + @java.lang.Override + public java.lang.String getPageIdentifier() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageIdentifier_ = s; + return s; + } + } + + /** + * + * + *
            +             * Page identifier.
            +             * 
            + * + * string page_identifier = 1; + * + * @return The bytes for pageIdentifier. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageIdentifierBytes() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageIdentifier_ = 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_ = ""; + + /** + * + * + *
            +             * Extractive answer 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; + } + } + + /** + * + * + *
            +             * Extractive answer 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, pageIdentifier_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, content_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, pageIdentifier_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, content_); + } + 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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveAnswer) + obj; + + if (!getPageIdentifier().equals(other.getPageIdentifier())) return false; + if (!getContent().equals(other.getContent())) 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) + PAGE_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getPageIdentifier().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + 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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + parseFrom( + 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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +             * Extractive answer.
            +             * [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#get-answers)
            +             * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveAnswerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + .class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pageIdentifier_ = ""; + content_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveAnswer_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveAnswer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pageIdentifier_ = pageIdentifier_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = content_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveAnswer) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + .getDefaultInstance()) return this; + if (!other.getPageIdentifier().isEmpty()) { + pageIdentifier_ = other.pageIdentifier_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getContent().isEmpty()) { + content_ = other.content_; + 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: + { + pageIdentifier_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + content_ = 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 pageIdentifier_ = ""; + + /** + * + * + *
            +               * Page identifier.
            +               * 
            + * + * string page_identifier = 1; + * + * @return The pageIdentifier. + */ + public java.lang.String getPageIdentifier() { + java.lang.Object ref = pageIdentifier_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageIdentifier_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +               * Page identifier.
            +               * 
            + * + * string page_identifier = 1; + * + * @return The bytes for pageIdentifier. + */ + public com.google.protobuf.ByteString getPageIdentifierBytes() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageIdentifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +               * Page identifier.
            +               * 
            + * + * string page_identifier = 1; + * + * @param value The pageIdentifier to set. + * @return This builder for chaining. + */ + public Builder setPageIdentifier(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageIdentifier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +               * Page identifier.
            +               * 
            + * + * string page_identifier = 1; + * + * @return This builder for chaining. + */ + public Builder clearPageIdentifier() { + pageIdentifier_ = getDefaultInstance().getPageIdentifier(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +               * Page identifier.
            +               * 
            + * + * string page_identifier = 1; + * + * @param value The bytes for pageIdentifier to set. + * @return This builder for chaining. + */ + public Builder setPageIdentifierBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageIdentifier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object content_ = ""; + + /** + * + * + *
            +               * Extractive answer content.
            +               * 
            + * + * string content = 2; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +               * Extractive answer content.
            +               * 
            + * + * string content = 2; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof 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; + } + } + + /** + * + * + *
            +               * Extractive answer content.
            +               * 
            + * + * string content = 2; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +               * Extractive answer content.
            +               * 
            + * + * string content = 2; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +               * Extractive answer content.
            +               * 
            + * + * string content = 2; + * + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveAnswer + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer(); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExtractiveAnswer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int DOCUMENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object document_ = ""; + + /** + * + * + *
            +           * Document resource name.
            +           * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The document. + */ + @java.lang.Override + public java.lang.String getDocument() { + java.lang.Object ref = document_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + document_ = s; + return s; + } + } + + /** + * + * + *
            +           * Document resource name.
            +           * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for document. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDocumentBytes() { + java.lang.Object ref = document_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + document_ = 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 for the document.
            +           * 
            + * + * 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 for the document.
            +           * 
            + * + * 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 TITLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
            +           * Title.
            +           * 
            + * + * string title = 3; + * + * @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.
            +           * 
            + * + * string title = 3; + * + * @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; + } + } + + public static final int DOCUMENT_CONTEXTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext> + documentContexts_; + + /** + * + * + *
            +           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext> + getDocumentContextsList() { + return documentContexts_; + } + + /** + * + * + *
            +           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .DocumentContextOrBuilder> + getDocumentContextsOrBuilderList() { + return documentContexts_; + } + + /** + * + * + *
            +           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + @java.lang.Override + public int getDocumentContextsCount() { + return documentContexts_.size(); + } + + /** + * + * + *
            +           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + getDocumentContexts(int index) { + return documentContexts_.get(index); + } + + /** + * + * + *
            +           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContextOrBuilder + getDocumentContextsOrBuilder(int index) { + return documentContexts_.get(index); + } + + public static final int EXTRACTIVE_SEGMENTS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment> + extractiveSegments_; + + /** + * + * + *
            +           * List of extractive segments.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment> + getExtractiveSegmentsList() { + return extractiveSegments_; + } + + /** + * + * + *
            +           * List of extractive segments.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveSegmentOrBuilder> + getExtractiveSegmentsOrBuilderList() { + return extractiveSegments_; + } + + /** + * + * + *
            +           * List of extractive segments.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + @java.lang.Override + public int getExtractiveSegmentsCount() { + return extractiveSegments_.size(); + } + + /** + * + * + *
            +           * List of extractive segments.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + getExtractiveSegments(int index) { + return extractiveSegments_.get(index); + } + + /** + * + * + *
            +           * List of extractive segments.
            +           * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegmentOrBuilder + getExtractiveSegmentsOrBuilder(int index) { + return extractiveSegments_.get(index); + } + + public static final int EXTRACTIVE_ANSWERS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer> + extractiveAnswers_; + + /** + * + * + *
            +           * 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.v1beta.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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer> + getExtractiveAnswersList() { + return extractiveAnswers_; + } + + /** + * + * + *
            +           * 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.v1beta.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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveAnswerOrBuilder> + getExtractiveAnswersOrBuilderList() { + return extractiveAnswers_; + } + + /** + * + * + *
            +           * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public int getExtractiveAnswersCount() { + return extractiveAnswers_.size(); + } + + /** + * + * + *
            +           * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + getExtractiveAnswers(int index) { + return extractiveAnswers_.get(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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswerOrBuilder + getExtractiveAnswersOrBuilder(int index) { + return extractiveAnswers_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, document_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, title_); + } + for (int i = 0; i < documentContexts_.size(); i++) { + output.writeMessage(4, documentContexts_.get(i)); + } + for (int i = 0; i < extractiveSegments_.size(); i++) { + output.writeMessage(5, extractiveSegments_.get(i)); + } + for (int i = 0; i < extractiveAnswers_.size(); i++) { + output.writeMessage(6, extractiveAnswers_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, document_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, title_); + } + for (int i = 0; i < documentContexts_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, documentContexts_.get(i)); + } + for (int i = 0; i < extractiveSegments_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, extractiveSegments_.get(i)); + } + for (int i = 0; i < extractiveAnswers_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, extractiveAnswers_.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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.UnstructuredDocumentInfo + other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo) + obj; + + if (!getDocument().equals(other.getDocument())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getDocumentContextsList().equals(other.getDocumentContextsList())) return false; + if (!getExtractiveSegmentsList().equals(other.getExtractiveSegmentsList())) + return false; + if (!getExtractiveAnswersList().equals(other.getExtractiveAnswersList())) 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) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + if (getDocumentContextsCount() > 0) { + hash = (37 * hash) + DOCUMENT_CONTEXTS_FIELD_NUMBER; + hash = (53 * hash) + getDocumentContextsList().hashCode(); + } + if (getExtractiveSegmentsCount() > 0) { + hash = (37 * hash) + EXTRACTIVE_SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getExtractiveSegmentsList().hashCode(); + } + if (getExtractiveAnswersCount() > 0) { + hash = (37 * hash) + EXTRACTIVE_ANSWERS_FIELD_NUMBER; + hash = (53 * hash) + getExtractiveAnswersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + 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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + parseFrom( + 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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.UnstructuredDocumentInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +           * Unstructured document information.
            +           * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.UnstructuredDocumentInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + document_ = ""; + uri_ = ""; + title_ = ""; + if (documentContextsBuilder_ == null) { + documentContexts_ = java.util.Collections.emptyList(); + } else { + documentContexts_ = null; + documentContextsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + if (extractiveSegmentsBuilder_ == null) { + extractiveSegments_ = java.util.Collections.emptyList(); + } else { + extractiveSegments_ = null; + extractiveSegmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (extractiveAnswersBuilder_ == null) { + extractiveAnswers_ = java.util.Collections.emptyList(); + } else { + extractiveAnswers_ = null; + extractiveAnswersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.UnstructuredDocumentInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.UnstructuredDocumentInfo + result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + result) { + if (documentContextsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + documentContexts_ = java.util.Collections.unmodifiableList(documentContexts_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.documentContexts_ = documentContexts_; + } else { + result.documentContexts_ = documentContextsBuilder_.build(); + } + if (extractiveSegmentsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + extractiveSegments_ = java.util.Collections.unmodifiableList(extractiveSegments_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.extractiveSegments_ = extractiveSegments_; + } else { + result.extractiveSegments_ = extractiveSegmentsBuilder_.build(); + } + if (extractiveAnswersBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + extractiveAnswers_ = java.util.Collections.unmodifiableList(extractiveAnswers_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.extractiveAnswers_ = extractiveAnswers_; + } else { + result.extractiveAnswers_ = extractiveAnswersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.document_ = document_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.title_ = title_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.getDefaultInstance()) + return this; + if (!other.getDocument().isEmpty()) { + document_ = other.document_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (documentContextsBuilder_ == null) { + if (!other.documentContexts_.isEmpty()) { + if (documentContexts_.isEmpty()) { + documentContexts_ = other.documentContexts_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureDocumentContextsIsMutable(); + documentContexts_.addAll(other.documentContexts_); + } + onChanged(); + } + } else { + if (!other.documentContexts_.isEmpty()) { + if (documentContextsBuilder_.isEmpty()) { + documentContextsBuilder_.dispose(); + documentContextsBuilder_ = null; + documentContexts_ = other.documentContexts_; + bitField0_ = (bitField0_ & ~0x00000008); + documentContextsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDocumentContextsFieldBuilder() + : null; + } else { + documentContextsBuilder_.addAllMessages(other.documentContexts_); + } + } + } + if (extractiveSegmentsBuilder_ == null) { + if (!other.extractiveSegments_.isEmpty()) { + if (extractiveSegments_.isEmpty()) { + extractiveSegments_ = other.extractiveSegments_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureExtractiveSegmentsIsMutable(); + extractiveSegments_.addAll(other.extractiveSegments_); + } + onChanged(); + } + } else { + if (!other.extractiveSegments_.isEmpty()) { + if (extractiveSegmentsBuilder_.isEmpty()) { + extractiveSegmentsBuilder_.dispose(); + extractiveSegmentsBuilder_ = null; + extractiveSegments_ = other.extractiveSegments_; + bitField0_ = (bitField0_ & ~0x00000010); + extractiveSegmentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetExtractiveSegmentsFieldBuilder() + : null; + } else { + extractiveSegmentsBuilder_.addAllMessages(other.extractiveSegments_); + } + } + } + if (extractiveAnswersBuilder_ == null) { + if (!other.extractiveAnswers_.isEmpty()) { + if (extractiveAnswers_.isEmpty()) { + extractiveAnswers_ = other.extractiveAnswers_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureExtractiveAnswersIsMutable(); + extractiveAnswers_.addAll(other.extractiveAnswers_); + } + onChanged(); + } + } else { + if (!other.extractiveAnswers_.isEmpty()) { + if (extractiveAnswersBuilder_.isEmpty()) { + extractiveAnswersBuilder_.dispose(); + extractiveAnswersBuilder_ = null; + extractiveAnswers_ = other.extractiveAnswers_; + bitField0_ = (bitField0_ & ~0x00000020); + extractiveAnswersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetExtractiveAnswersFieldBuilder() + : null; + } else { + extractiveAnswersBuilder_.addAllMessages(other.extractiveAnswers_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } - } else { - naturalLanguageQueryUnderstandingSpecBuilder_.mergeFrom(value); - } - if (naturalLanguageQueryUnderstandingSpec_ != null) { - bitField0_ |= 0x00000040; - onChanged(); - } - return this; - } - /** - * - * - *
            -         * Optional. Specification to enable natural language understanding
            -         * capabilities for search requests.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearNaturalLanguageQueryUnderstandingSpec() { - bitField0_ = (bitField0_ & ~0x00000040); - naturalLanguageQueryUnderstandingSpec_ = null; - if (naturalLanguageQueryUnderstandingSpecBuilder_ != null) { - naturalLanguageQueryUnderstandingSpecBuilder_.dispose(); - naturalLanguageQueryUnderstandingSpecBuilder_ = null; - } - onChanged(); - return this; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * - * - *
            -         * Optional. Specification to enable natural language understanding
            -         * capabilities for search requests.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.Builder - getNaturalLanguageQueryUnderstandingSpecBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder().getBuilder(); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + document_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .DocumentContext + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .SearchSpec.SearchResultList.SearchResult + .UnstructuredDocumentInfo.DocumentContext.parser(), + extensionRegistry); + if (documentContextsBuilder_ == null) { + ensureDocumentContextsIsMutable(); + documentContexts_.add(m); + } else { + documentContextsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveSegment + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .SearchSpec.SearchResultList.SearchResult + .UnstructuredDocumentInfo.ExtractiveSegment.parser(), + extensionRegistry); + if (extractiveSegmentsBuilder_ == null) { + ensureExtractiveSegmentsIsMutable(); + extractiveSegments_.add(m); + } else { + extractiveSegmentsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveAnswer + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .SearchSpec.SearchResultList.SearchResult + .UnstructuredDocumentInfo.ExtractiveAnswer.parser(), + extensionRegistry); + if (extractiveAnswersBuilder_ == null) { + ensureExtractiveAnswersIsMutable(); + extractiveAnswers_.add(m); + } else { + extractiveAnswersBuilder_.addMessage(m); + } + 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; + } - /** - * - * - *
            -         * Optional. Specification to enable natural language understanding
            -         * capabilities for search requests.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpecOrBuilder - getNaturalLanguageQueryUnderstandingSpecOrBuilder() { - if (naturalLanguageQueryUnderstandingSpecBuilder_ != null) { - return naturalLanguageQueryUnderstandingSpecBuilder_.getMessageOrBuilder(); - } else { - return naturalLanguageQueryUnderstandingSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() - : naturalLanguageQueryUnderstandingSpec_; - } - } + private int bitField0_; - /** - * - * - *
            -         * Optional. Specification to enable natural language understanding
            -         * capabilities for search requests.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpecOrBuilder> - internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder() { - if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { - naturalLanguageQueryUnderstandingSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpecOrBuilder>( - getNaturalLanguageQueryUnderstandingSpec(), getParentForChildren(), isClean()); - naturalLanguageQueryUnderstandingSpec_ = null; - } - return naturalLanguageQueryUnderstandingSpecBuilder_; - } + private java.lang.Object document_ = ""; - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) - } + /** + * + * + *
            +             * Document resource name.
            +             * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The document. + */ + public java.lang.String getDocument() { + java.lang.Object ref = document_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + document_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) - private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams - DEFAULT_INSTANCE; + /** + * + * + *
            +             * Document resource name.
            +             * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for document. + */ + public com.google.protobuf.ByteString getDocumentBytes() { + java.lang.Object ref = document_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + document_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams(); - } + /** + * + * + *
            +             * Document resource name.
            +             * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The document to set. + * @return This builder for chaining. + */ + public Builder setDocument(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + document_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
            +             * Document resource name.
            +             * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearDocument() { + document_ = getDefaultInstance().getDocument(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchParams parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); + /** + * + * + *
            +             * Document resource name.
            +             * 
            + * + * string document = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for document to set. + * @return This builder for chaining. + */ + public Builder setDocumentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return builder.buildPartial(); + checkByteStringIsUtf8(value); + document_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - }; - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private java.lang.Object uri_ = ""; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + /** + * + * + *
            +             * URI for the document.
            +             * 
            + * + * 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; + } + } - public interface SearchResultListOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
            +             * URI for the document.
            +             * 
            + * + * 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; + } + } - /** - * - * - *
            -       * Search results.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; - * - */ - java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult> - getSearchResultsList(); + /** + * + * + *
            +             * URI for the document.
            +             * 
            + * + * 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; + } - /** - * - * - *
            -       * Search results.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; - * - */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult - getSearchResults(int index); + /** + * + * + *
            +             * URI for the document.
            +             * 
            + * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } - /** - * - * - *
            -       * Search results.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; - * - */ - int getSearchResultsCount(); + /** + * + * + *
            +             * URI for the document.
            +             * 
            + * + * 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; + } - /** - * - * - *
            -       * Search results.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; - * - */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResultOrBuilder> - getSearchResultsOrBuilderList(); + private java.lang.Object title_ = ""; - /** - * - * - *
            -       * Search results.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; - * - */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResultOrBuilder - getSearchResultsOrBuilder(int index); - } + /** + * + * + *
            +             * Title.
            +             * 
            + * + * string title = 3; + * + * @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; + } + } - /** - * - * - *
            -     * Search result list.
            -     * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList} - */ - public static final class SearchResultList extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList) - SearchResultListOrBuilder { - private static final long serialVersionUID = 0L; + /** + * + * + *
            +             * Title.
            +             * 
            + * + * string title = 3; + * + * @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; + } + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "SearchResultList"); - } + /** + * + * + *
            +             * Title.
            +             * 
            + * + * string title = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } - // Use SearchResultList.newBuilder() to construct. - private SearchResultList(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + /** + * + * + *
            +             * Title.
            +             * 
            + * + * string title = 3; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } - private SearchResultList() { - searchResults_ = java.util.Collections.emptyList(); - } + /** + * + * + *
            +             * Title.
            +             * 
            + * + * string title = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_descriptor; - } + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext> + documentContexts_ = java.util.Collections.emptyList(); - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.Builder.class); - } + private void ensureDocumentContextsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + documentContexts_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .DocumentContext>(documentContexts_); + bitField0_ |= 0x00000008; + } + } - public interface SearchResultOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult) - com.google.protobuf.MessageOrBuilder { + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + .Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .DocumentContextOrBuilder> + documentContextsBuilder_; - /** - * - * - *
            -         * Unstructured document information.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; - * - * - * @return Whether the unstructuredDocumentInfo field is set. - */ - boolean hasUnstructuredDocumentInfo(); + /** + * + * + *
            +             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext> + getDocumentContextsList() { + if (documentContextsBuilder_ == null) { + return java.util.Collections.unmodifiableList(documentContexts_); + } else { + return documentContextsBuilder_.getMessageList(); + } + } - /** - * - * - *
            -         * Unstructured document information.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; - * - * - * @return The unstructuredDocumentInfo. - */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.UnstructuredDocumentInfo - getUnstructuredDocumentInfo(); + /** + * + * + *
            +             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + public int getDocumentContextsCount() { + if (documentContextsBuilder_ == null) { + return documentContexts_.size(); + } else { + return documentContextsBuilder_.getCount(); + } + } - /** - * - * - *
            -         * Unstructured document information.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; - * - */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.UnstructuredDocumentInfoOrBuilder - getUnstructuredDocumentInfoOrBuilder(); + /** + * + * + *
            +             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + getDocumentContexts(int index) { + if (documentContextsBuilder_ == null) { + return documentContexts_.get(index); + } else { + return documentContextsBuilder_.getMessage(index); + } + } - /** - * - * - *
            -         * Chunk information.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; - * - * - * @return Whether the chunkInfo field is set. - */ - boolean hasChunkInfo(); + /** + * + * + *
            +             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + public Builder setDocumentContexts( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + value) { + if (documentContextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDocumentContextsIsMutable(); + documentContexts_.set(index, value); + onChanged(); + } else { + documentContextsBuilder_.setMessage(index, value); + } + return this; + } - /** - * - * - *
            -         * Chunk information.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; - * - * - * @return The chunkInfo. - */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.ChunkInfo - getChunkInfo(); + /** + * + * + *
            +             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + public Builder setDocumentContexts( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + .Builder + builderForValue) { + if (documentContextsBuilder_ == null) { + ensureDocumentContextsIsMutable(); + documentContexts_.set(index, builderForValue.build()); + onChanged(); + } else { + documentContextsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } - /** - * - * - *
            -         * Chunk information.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; - * - */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.ChunkInfoOrBuilder - getChunkInfoOrBuilder(); + /** + * + * + *
            +             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + public Builder addDocumentContexts( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + value) { + if (documentContextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDocumentContextsIsMutable(); + documentContexts_.add(value); + onChanged(); + } else { + documentContextsBuilder_.addMessage(value); + } + return this; + } - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.ContentCase - getContentCase(); - } + /** + * + * + *
            +             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + public Builder addDocumentContexts( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + value) { + if (documentContextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDocumentContextsIsMutable(); + documentContexts_.add(index, value); + onChanged(); + } else { + documentContextsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + public Builder addDocumentContexts( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + .Builder + builderForValue) { + if (documentContextsBuilder_ == null) { + ensureDocumentContextsIsMutable(); + documentContexts_.add(builderForValue.build()); + onChanged(); + } else { + documentContextsBuilder_.addMessage(builderForValue.build()); + } + return this; + } - /** - * - * - *
            -       * Search result.
            -       * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult} - */ - public static final class SearchResult extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult) - SearchResultOrBuilder { - private static final long serialVersionUID = 0L; + /** + * + * + *
            +             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + public Builder addDocumentContexts( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + .Builder + builderForValue) { + if (documentContextsBuilder_ == null) { + ensureDocumentContextsIsMutable(); + documentContexts_.add(index, builderForValue.build()); + onChanged(); + } else { + documentContextsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "SearchResult"); - } + /** + * + * + *
            +             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + public Builder addAllDocumentContexts( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .DocumentContext> + values) { + if (documentContextsBuilder_ == null) { + ensureDocumentContextsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentContexts_); + onChanged(); + } else { + documentContextsBuilder_.addAllMessages(values); + } + return this; + } - // Use SearchResult.newBuilder() to construct. - private SearchResult(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + /** + * + * + *
            +             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + public Builder clearDocumentContexts() { + if (documentContextsBuilder_ == null) { + documentContexts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + documentContextsBuilder_.clear(); + } + return this; + } - private SearchResult() {} + /** + * + * + *
            +             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + public Builder removeDocumentContexts(int index) { + if (documentContextsBuilder_ == null) { + ensureDocumentContextsIsMutable(); + documentContexts_.remove(index); + onChanged(); + } else { + documentContextsBuilder_.remove(index); + } + return this; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_descriptor; - } + /** + * + * + *
            +             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext.Builder + getDocumentContextsBuilder(int index) { + return internalGetDocumentContextsFieldBuilder().getBuilder(index); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.Builder.class); - } + /** + * + * + *
            +             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContextOrBuilder + getDocumentContextsOrBuilder(int index) { + if (documentContextsBuilder_ == null) { + return documentContexts_.get(index); + } else { + return documentContextsBuilder_.getMessageOrBuilder(index); + } + } - public interface UnstructuredDocumentInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
            +             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .DocumentContextOrBuilder> + getDocumentContextsOrBuilderList() { + if (documentContextsBuilder_ != null) { + return documentContextsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(documentContexts_); + } + } - /** - * - * - *
            -           * Document resource name.
            -           * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The document. - */ - java.lang.String getDocument(); + /** + * + * + *
            +             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext.Builder + addDocumentContextsBuilder() { + return internalGetDocumentContextsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + .getDefaultInstance()); + } - /** - * - * - *
            -           * Document resource name.
            -           * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for document. - */ - com.google.protobuf.ByteString getDocumentBytes(); + /** + * + * + *
            +             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext.Builder + addDocumentContextsBuilder(int index) { + return internalGetDocumentContextsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + .getDefaultInstance()); + } - /** - * - * - *
            -           * URI for the document.
            -           * 
            - * - * string uri = 2; - * - * @return The uri. - */ - java.lang.String getUri(); + /** + * + * + *
            +             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + .Builder> + getDocumentContextsBuilderList() { + return internalGetDocumentContextsFieldBuilder().getBuilderList(); + } - /** - * - * - *
            -           * URI for the document.
            -           * 
            - * - * string uri = 2; - * - * @return The bytes for uri. - */ - com.google.protobuf.ByteString getUriBytes(); + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + .Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .DocumentContextOrBuilder> + internalGetDocumentContextsFieldBuilder() { + if (documentContextsBuilder_ == null) { + documentContextsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext + .Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .DocumentContextOrBuilder>( + documentContexts_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + documentContexts_ = null; + } + return documentContextsBuilder_; + } - /** - * - * - *
            -           * Title.
            -           * 
            - * - * string title = 3; - * - * @return The title. - */ - java.lang.String getTitle(); + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment> + extractiveSegments_ = java.util.Collections.emptyList(); - /** - * - * - *
            -           * Title.
            -           * 
            - * - * string title = 3; - * - * @return The bytes for title. - */ - com.google.protobuf.ByteString getTitleBytes(); + private void ensureExtractiveSegmentsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + extractiveSegments_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveSegment>(extractiveSegments_); + bitField0_ |= 0x00000010; + } + } - /** - * - * - *
            -           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext> - getDocumentContextsList(); + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveSegmentOrBuilder> + extractiveSegmentsBuilder_; - /** - * - * - *
            -           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.UnstructuredDocumentInfo.DocumentContext - getDocumentContexts(int index); + /** + * + * + *
            +             * List of extractive segments.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment> + getExtractiveSegmentsList() { + if (extractiveSegmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(extractiveSegments_); + } else { + return extractiveSegmentsBuilder_.getMessageList(); + } + } - /** - * - * - *
            -           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - int getDocumentContextsCount(); + /** + * + * + *
            +             * List of extractive segments.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + public int getExtractiveSegmentsCount() { + if (extractiveSegmentsBuilder_ == null) { + return extractiveSegments_.size(); + } else { + return extractiveSegmentsBuilder_.getCount(); + } + } + + /** + * + * + *
            +             * List of extractive segments.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + getExtractiveSegments(int index) { + if (extractiveSegmentsBuilder_ == null) { + return extractiveSegments_.get(index); + } else { + return extractiveSegmentsBuilder_.getMessage(index); + } + } - /** - * - * - *
            -           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .DocumentContextOrBuilder> - getDocumentContextsOrBuilderList(); + /** + * + * + *
            +             * List of extractive segments.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + public Builder setExtractiveSegments( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + value) { + if (extractiveSegmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExtractiveSegmentsIsMutable(); + extractiveSegments_.set(index, value); + onChanged(); + } else { + extractiveSegmentsBuilder_.setMessage(index, value); + } + return this; + } - /** - * - * - *
            -           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.UnstructuredDocumentInfo.DocumentContextOrBuilder - getDocumentContextsOrBuilder(int index); + /** + * + * + *
            +             * List of extractive segments.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + public Builder setExtractiveSegments( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .Builder + builderForValue) { + if (extractiveSegmentsBuilder_ == null) { + ensureExtractiveSegmentsIsMutable(); + extractiveSegments_.set(index, builderForValue.build()); + onChanged(); + } else { + extractiveSegmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } - /** - * - * - *
            -           * List of extractive segments.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment> - getExtractiveSegmentsList(); + /** + * + * + *
            +             * List of extractive segments.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + public Builder addExtractiveSegments( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + value) { + if (extractiveSegmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExtractiveSegmentsIsMutable(); + extractiveSegments_.add(value); + onChanged(); + } else { + extractiveSegmentsBuilder_.addMessage(value); + } + return this; + } - /** - * - * - *
            -           * List of extractive segments.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - getExtractiveSegments(int index); + /** + * + * + *
            +             * List of extractive segments.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + public Builder addExtractiveSegments( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + value) { + if (extractiveSegmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExtractiveSegmentsIsMutable(); + extractiveSegments_.add(index, value); + onChanged(); + } else { + extractiveSegmentsBuilder_.addMessage(index, value); + } + return this; + } - /** - * - * - *
            -           * List of extractive segments.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - int getExtractiveSegmentsCount(); + /** + * + * + *
            +             * List of extractive segments.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + public Builder addExtractiveSegments( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .Builder + builderForValue) { + if (extractiveSegmentsBuilder_ == null) { + ensureExtractiveSegmentsIsMutable(); + extractiveSegments_.add(builderForValue.build()); + onChanged(); + } else { + extractiveSegmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } - /** - * - * - *
            -           * List of extractive segments.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveSegmentOrBuilder> - getExtractiveSegmentsOrBuilderList(); + /** + * + * + *
            +             * List of extractive segments.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + public Builder addExtractiveSegments( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .Builder + builderForValue) { + if (extractiveSegmentsBuilder_ == null) { + ensureExtractiveSegmentsIsMutable(); + extractiveSegments_.add(index, builderForValue.build()); + onChanged(); + } else { + extractiveSegmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } - /** - * - * - *
            -           * List of extractive segments.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.UnstructuredDocumentInfo.ExtractiveSegmentOrBuilder - getExtractiveSegmentsOrBuilder(int index); + /** + * + * + *
            +             * List of extractive segments.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + public Builder addAllExtractiveSegments( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveSegment> + values) { + if (extractiveSegmentsBuilder_ == null) { + ensureExtractiveSegmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, extractiveSegments_); + onChanged(); + } else { + extractiveSegmentsBuilder_.addAllMessages(values); + } + return this; + } - /** - * - * - *
            -           * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer> - getExtractiveAnswersList(); + /** + * + * + *
            +             * List of extractive segments.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + public Builder clearExtractiveSegments() { + if (extractiveSegmentsBuilder_ == null) { + extractiveSegments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + extractiveSegmentsBuilder_.clear(); + } + return this; + } - /** - * - * - *
            -           * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - getExtractiveAnswers(int index); + /** + * + * + *
            +             * List of extractive segments.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + public Builder removeExtractiveSegments(int index) { + if (extractiveSegmentsBuilder_ == null) { + ensureExtractiveSegmentsIsMutable(); + extractiveSegments_.remove(index); + onChanged(); + } else { + extractiveSegmentsBuilder_.remove(index); + } + return this; + } - /** - * - * - *
            -           * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - int getExtractiveAnswersCount(); + /** + * + * + *
            +             * List of extractive segments.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .Builder + getExtractiveSegmentsBuilder(int index) { + return internalGetExtractiveSegmentsFieldBuilder().getBuilder(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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveAnswerOrBuilder> - getExtractiveAnswersOrBuilderList(); + /** + * + * + *
            +             * List of extractive segments.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveSegmentOrBuilder + getExtractiveSegmentsOrBuilder(int index) { + if (extractiveSegmentsBuilder_ == null) { + return extractiveSegments_.get(index); + } else { + return extractiveSegmentsBuilder_.getMessageOrBuilder(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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.UnstructuredDocumentInfo.ExtractiveAnswerOrBuilder - getExtractiveAnswersOrBuilder(int index); - } + /** + * + * + *
            +             * List of extractive segments.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveSegmentOrBuilder> + getExtractiveSegmentsOrBuilderList() { + if (extractiveSegmentsBuilder_ != null) { + return extractiveSegmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(extractiveSegments_); + } + } + + /** + * + * + *
            +             * List of extractive segments.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .Builder + addExtractiveSegmentsBuilder() { + return internalGetExtractiveSegmentsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .getDefaultInstance()); + } - /** - * - * - *
            -         * Unstructured document information.
            -         * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo} - */ - public static final class UnstructuredDocumentInfo - extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo) - UnstructuredDocumentInfoOrBuilder { - private static final long serialVersionUID = 0L; + /** + * + * + *
            +             * List of extractive segments.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .Builder + addExtractiveSegmentsBuilder(int index) { + return internalGetExtractiveSegmentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .getDefaultInstance()); + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "UnstructuredDocumentInfo"); - } + /** + * + * + *
            +             * List of extractive segments.
            +             * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .Builder> + getExtractiveSegmentsBuilderList() { + return internalGetExtractiveSegmentsFieldBuilder().getBuilderList(); + } - // Use UnstructuredDocumentInfo.newBuilder() to construct. - private UnstructuredDocumentInfo( - com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveSegmentOrBuilder> + internalGetExtractiveSegmentsFieldBuilder() { + if (extractiveSegmentsBuilder_ == null) { + extractiveSegmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveSegment, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveSegment.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveSegmentOrBuilder>( + extractiveSegments_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + extractiveSegments_ = null; + } + return extractiveSegmentsBuilder_; + } - private UnstructuredDocumentInfo() { - document_ = ""; - uri_ = ""; - title_ = ""; - documentContexts_ = java.util.Collections.emptyList(); - extractiveSegments_ = java.util.Collections.emptyList(); - extractiveAnswers_ = java.util.Collections.emptyList(); - } + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer> + extractiveAnswers_ = java.util.Collections.emptyList(); - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_descriptor; - } + private void ensureExtractiveAnswersIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + extractiveAnswers_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveAnswer>(extractiveAnswers_); + bitField0_ |= 0x00000020; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( + private com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.class, + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer, com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.Builder.class); - } + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + .Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveAnswerOrBuilder> + extractiveAnswersBuilder_; - public interface DocumentContextOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
            +             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer> + getExtractiveAnswersList() { + if (extractiveAnswersBuilder_ == null) { + return java.util.Collections.unmodifiableList(extractiveAnswers_); + } else { + return extractiveAnswersBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * + */ + @java.lang.Deprecated + public int getExtractiveAnswersCount() { + if (extractiveAnswersBuilder_ == null) { + return extractiveAnswers_.size(); + } else { + return extractiveAnswersBuilder_.getCount(); + } + } + + /** + * + * + *
            +             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + getExtractiveAnswers(int index) { + if (extractiveAnswersBuilder_ == null) { + return extractiveAnswers_.get(index); + } else { + return extractiveAnswersBuilder_.getMessage(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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setExtractiveAnswers( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + value) { + if (extractiveAnswersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExtractiveAnswersIsMutable(); + extractiveAnswers_.set(index, value); + onChanged(); + } else { + extractiveAnswersBuilder_.setMessage(index, value); + } + return this; + } /** * * *
            -             * Page identifier.
            +             * 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.
                          * 
            * - * string page_identifier = 1; - * - * @return The pageIdentifier. + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * */ - java.lang.String getPageIdentifier(); + @java.lang.Deprecated + public Builder setExtractiveAnswers( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + .Builder + builderForValue) { + if (extractiveAnswersBuilder_ == null) { + ensureExtractiveAnswersIsMutable(); + extractiveAnswers_.set(index, builderForValue.build()); + onChanged(); + } else { + extractiveAnswersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } /** * * *
            -             * Page identifier.
            +             * 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.
                          * 
            * - * string page_identifier = 1; - * - * @return The bytes for pageIdentifier. + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * */ - com.google.protobuf.ByteString getPageIdentifierBytes(); + @java.lang.Deprecated + public Builder addExtractiveAnswers( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + value) { + if (extractiveAnswersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExtractiveAnswersIsMutable(); + extractiveAnswers_.add(value); + onChanged(); + } else { + extractiveAnswersBuilder_.addMessage(value); + } + return this; + } /** * * *
            -             * Document content to be used for answer generation.
            +             * 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.
                          * 
            * - * string content = 2; - * - * @return The content. + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * */ - java.lang.String getContent(); + @java.lang.Deprecated + public Builder addExtractiveAnswers( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + value) { + if (extractiveAnswersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExtractiveAnswersIsMutable(); + extractiveAnswers_.add(index, value); + onChanged(); + } else { + extractiveAnswersBuilder_.addMessage(index, value); + } + return this; + } /** * * *
            -             * Document content to be used for answer generation.
            +             * 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.
                          * 
            * - * string content = 2; - * - * @return The bytes for content. + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * */ - com.google.protobuf.ByteString getContentBytes(); - } - - /** - * - * - *
            -           * Document context.
            -           * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext} - */ - public static final class DocumentContext extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext) - DocumentContextOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "DocumentContext"); - } - - // Use DocumentContext.newBuilder() to construct. - private DocumentContext(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DocumentContext() { - pageIdentifier_ = ""; - content_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_DocumentContext_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_DocumentContext_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - .class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - .Builder.class); + @java.lang.Deprecated + public Builder addExtractiveAnswers( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + .Builder + builderForValue) { + if (extractiveAnswersBuilder_ == null) { + ensureExtractiveAnswersIsMutable(); + extractiveAnswers_.add(builderForValue.build()); + onChanged(); + } else { + extractiveAnswersBuilder_.addMessage(builderForValue.build()); + } + return this; } - public static final int PAGE_IDENTIFIER_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object pageIdentifier_ = ""; - /** * * *
            -             * Page identifier.
            +             * 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.
                          * 
            * - * string page_identifier = 1; - * - * @return The pageIdentifier. + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * */ - @java.lang.Override - public java.lang.String getPageIdentifier() { - java.lang.Object ref = pageIdentifier_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; + @java.lang.Deprecated + public Builder addExtractiveAnswers( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + .Builder + builderForValue) { + if (extractiveAnswersBuilder_ == null) { + ensureExtractiveAnswersIsMutable(); + extractiveAnswers_.add(index, builderForValue.build()); + onChanged(); } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageIdentifier_ = s; - return s; + extractiveAnswersBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** * * *
            -             * Page identifier.
            +             * 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.
                          * 
            * - * string page_identifier = 1; - * - * @return The bytes for pageIdentifier. + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * */ - @java.lang.Override - public com.google.protobuf.ByteString getPageIdentifierBytes() { - java.lang.Object ref = pageIdentifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageIdentifier_ = b; - return b; + @java.lang.Deprecated + public Builder addAllExtractiveAnswers( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveAnswer> + values) { + if (extractiveAnswersBuilder_ == null) { + ensureExtractiveAnswersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, extractiveAnswers_); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONTENT_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object content_ = ""; + extractiveAnswersBuilder_.addAllMessages(values); + } + return this; + } /** * * *
            -             * Document content to be used for answer generation.
            +             * 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.
                          * 
            * - * string content = 2; - * - * @return The content. + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * */ - @java.lang.Override - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; + @java.lang.Deprecated + public Builder clearExtractiveAnswers() { + if (extractiveAnswersBuilder_ == null) { + extractiveAnswers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; + extractiveAnswersBuilder_.clear(); } + return this; } /** * * *
            -             * Document content to be used for answer generation.
            +             * 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.
                          * 
            * - * string content = 2; - * - * @return The bytes for content. + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * */ - @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; + @java.lang.Deprecated + public Builder removeExtractiveAnswers(int index) { + if (extractiveAnswersBuilder_ == null) { + ensureExtractiveAnswersIsMutable(); + extractiveAnswers_.remove(index); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, pageIdentifier_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, content_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, pageIdentifier_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, content_); - } - 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.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.UnstructuredDocumentInfo.DocumentContext - other = - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .DocumentContext) - obj; - - if (!getPageIdentifier().equals(other.getPageIdentifier())) return false; - if (!getContent().equals(other.getContent())) 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) + PAGE_IDENTIFIER_FIELD_NUMBER; - hash = (53 * hash) + getPageIdentifier().hashCode(); - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - 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.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - parseFrom( - 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.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + extractiveAnswersBuilder_.remove(index); + } + return this; } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * + * + *
            +             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer.Builder + getExtractiveAnswersBuilder(int index) { + return internalGetExtractiveAnswersFieldBuilder().getBuilder(index); } /** * * *
            -             * Document context.
            +             * 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.
                          * 
            * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext} + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext) - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + @java.lang.Deprecated + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec .SearchResultList.SearchResult.UnstructuredDocumentInfo - .DocumentContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_DocumentContext_descriptor; + .ExtractiveAnswerOrBuilder + getExtractiveAnswersOrBuilder(int index) { + if (extractiveAnswersBuilder_ == null) { + return extractiveAnswers_.get(index); + } else { + return extractiveAnswersBuilder_.getMessageOrBuilder(index); } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_DocumentContext_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - .class, + /** + * + * + *
            +             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - .Builder.class); - } - - // Construct using - // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - pageIdentifier_ = ""; - content_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_DocumentContext_descriptor; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - build() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - buildPartial() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - result = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.pageIdentifier_ = pageIdentifier_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.content_ = content_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .DocumentContext) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - .getDefaultInstance()) return this; - if (!other.getPageIdentifier().isEmpty()) { - pageIdentifier_ = other.pageIdentifier_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getContent().isEmpty()) { - content_ = other.content_; - 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: - { - pageIdentifier_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - content_ = 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; + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveAnswerOrBuilder> + getExtractiveAnswersOrBuilderList() { + if (extractiveAnswersBuilder_ != null) { + return extractiveAnswersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(extractiveAnswers_); } + } - private int bitField0_; + /** + * + * + *
            +             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer.Builder + addExtractiveAnswersBuilder() { + return internalGetExtractiveAnswersFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + .getDefaultInstance()); + } - private java.lang.Object pageIdentifier_ = ""; + /** + * + * + *
            +             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer.Builder + addExtractiveAnswersBuilder(int index) { + return internalGetExtractiveAnswersFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + .getDefaultInstance()); + } - /** - * - * - *
            -               * Page identifier.
            -               * 
            - * - * string page_identifier = 1; - * - * @return The pageIdentifier. - */ - public java.lang.String getPageIdentifier() { - java.lang.Object ref = pageIdentifier_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageIdentifier_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + /** + * + * + *
            +             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; + * + */ + @java.lang.Deprecated + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + .Builder> + getExtractiveAnswersBuilderList() { + return internalGetExtractiveAnswersFieldBuilder().getBuilderList(); + } - /** - * - * - *
            -               * Page identifier.
            -               * 
            - * - * string page_identifier = 1; - * - * @return The bytes for pageIdentifier. - */ - public com.google.protobuf.ByteString getPageIdentifierBytes() { - java.lang.Object ref = pageIdentifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageIdentifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + .Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveAnswerOrBuilder> + internalGetExtractiveAnswersFieldBuilder() { + if (extractiveAnswersBuilder_ == null) { + extractiveAnswersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveAnswer, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer + .Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .ExtractiveAnswerOrBuilder>( + extractiveAnswers_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + extractiveAnswers_ = null; } + return extractiveAnswersBuilder_; + } - /** - * - * - *
            -               * Page identifier.
            -               * 
            - * - * string page_identifier = 1; - * - * @param value The pageIdentifier to set. - * @return This builder for chaining. - */ - public Builder setPageIdentifier(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - pageIdentifier_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo) + } - /** - * - * - *
            -               * Page identifier.
            -               * 
            - * - * string page_identifier = 1; - * - * @return This builder for chaining. - */ - public Builder clearPageIdentifier() { - pageIdentifier_ = getDefaultInstance().getPageIdentifier(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + DEFAULT_INSTANCE; - /** - * - * - *
            -               * Page identifier.
            -               * 
            - * - * string page_identifier = 1; - * - * @param value The bytes for pageIdentifier to set. - * @return This builder for chaining. - */ - public Builder setPageIdentifierBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - pageIdentifier_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo(); + } - private java.lang.Object content_ = ""; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - * - * - *
            -               * Document content to be used for answer generation.
            -               * 
            - * - * string content = 2; - * - * @return The content. - */ - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } else { - return (java.lang.String) ref; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnstructuredDocumentInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } - } + }; - /** - * - * - *
            -               * Document content to be used for answer generation.
            -               * 
            - * - * string content = 2; - * - * @return The bytes for content. - */ - public com.google.protobuf.ByteString getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof 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 com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
            -               * Document content to be used for answer generation.
            -               * 
            - * - * string content = 2; - * - * @param value The content to set. - * @return This builder for chaining. - */ - public Builder setContent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * - * - *
            -               * Document content to be used for answer generation.
            -               * 
            - * - * string content = 2; - * - * @return This builder for chaining. - */ - public Builder clearContent() { - content_ = getDefaultInstance().getContent(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - /** - * - * - *
            -               * Document content to be used for answer generation.
            -               * 
            - * - * string content = 2; - * - * @param value The bytes for content to set. - * @return This builder for chaining. - */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - content_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + public interface ChunkInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo) + com.google.protobuf.MessageOrBuilder { - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext) - } + /** + * + * + *
            +           * Chunk resource name.
            +           * 
            + * + * string chunk = 1 [(.google.api.resource_reference) = { ... } + * + * @return The chunk. + */ + java.lang.String getChunk(); - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext) - private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo - .DocumentContext - DEFAULT_INSTANCE; + /** + * + * + *
            +           * Chunk resource name.
            +           * 
            + * + * string chunk = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for chunk. + */ + com.google.protobuf.ByteString getChunkBytes(); - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext(); - } + /** + * + * + *
            +           * Chunk textual content.
            +           * 
            + * + * string content = 2; + * + * @return The content. + */ + java.lang.String getContent(); - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
            +           * Chunk textual content.
            +           * 
            + * + * string content = 2; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DocumentContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + /** + * + * + *
            +           * Metadata of the document from the current chunk.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + * + * @return The documentMetadata. + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadata + getDocumentMetadata(); + + /** + * + * + *
            +           * Metadata of the document from the current chunk.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder(); + } + + /** + * + * + *
            +         * Chunk information.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo} + */ + public static final class ChunkInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo) + ChunkInfoOrBuilder { + private static final long serialVersionUID = 0L; - public static com.google.protobuf.Parser parser() { - return PARSER; - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ChunkInfo"); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // Use ChunkInfo.newBuilder() to construct. + private ChunkInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private ChunkInfo() { + chunk_ = ""; + content_ = ""; } - public interface ExtractiveSegmentOrBuilder + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.Builder.class); + } + + public interface DocumentMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) com.google.protobuf.MessageOrBuilder { /** * * *
            -             * Page identifier.
            +             * Uri of the document.
                          * 
            * - * string page_identifier = 1; + * string uri = 1; * - * @return The pageIdentifier. + * @return The uri. */ - java.lang.String getPageIdentifier(); + java.lang.String getUri(); /** * * *
            -             * Page identifier.
            +             * Uri of the document.
                          * 
            * - * string page_identifier = 1; + * string uri = 1; * - * @return The bytes for pageIdentifier. + * @return The bytes for uri. */ - com.google.protobuf.ByteString getPageIdentifierBytes(); + com.google.protobuf.ByteString getUriBytes(); /** * * *
            -             * Extractive segment content.
            +             * Title of the document.
                          * 
            * - * string content = 2; + * string title = 2; * - * @return The content. + * @return The title. */ - java.lang.String getContent(); + java.lang.String getTitle(); /** * * *
            -             * Extractive segment content.
            +             * Title of the document.
                          * 
            * - * string content = 2; + * string title = 2; * - * @return The bytes for content. + * @return The bytes for title. */ - com.google.protobuf.ByteString getContentBytes(); + com.google.protobuf.ByteString getTitleBytes(); } /** * * *
            -           * 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.
            +           * Document metadata contains the information of the document of the
            +           * current chunk.
                        * 
            * * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment} + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata} */ - public static final class ExtractiveSegment extends com.google.protobuf.GeneratedMessage + public static final class DocumentMetadata extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment) - ExtractiveSegmentOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) + DocumentMetadataOrBuilder { private static final long serialVersionUID = 0L; static { @@ -10488,63 +18722,61 @@ public static final class ExtractiveSegment extends com.google.protobuf.Generate /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "ExtractiveSegment"); + "DocumentMetadata"); } - // Use ExtractiveSegment.newBuilder() to construct. - private ExtractiveSegment(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use DocumentMetadata.newBuilder() to construct. + private DocumentMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private ExtractiveSegment() { - pageIdentifier_ = ""; - content_ = ""; + private DocumentMetadata() { + uri_ = ""; + title_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveSegment_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveSegment_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - .class, + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.class, com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - .Builder.class); + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder.class); } - public static final int PAGE_IDENTIFIER_FIELD_NUMBER = 1; + public static final int URI_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object pageIdentifier_ = ""; + private volatile java.lang.Object uri_ = ""; /** * * *
            -             * Page identifier.
            +             * Uri of the document.
                          * 
            * - * string page_identifier = 1; + * string uri = 1; * - * @return The pageIdentifier. + * @return The uri. */ @java.lang.Override - public java.lang.String getPageIdentifier() { - java.lang.Object ref = pageIdentifier_; + 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(); - pageIdentifier_ = s; + uri_ = s; return s; } } @@ -10553,51 +18785,51 @@ public java.lang.String getPageIdentifier() { * * *
            -             * Page identifier.
            +             * Uri of the document.
                          * 
            * - * string page_identifier = 1; + * string uri = 1; * - * @return The bytes for pageIdentifier. + * @return The bytes for uri. */ @java.lang.Override - public com.google.protobuf.ByteString getPageIdentifierBytes() { - java.lang.Object ref = pageIdentifier_; + 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); - pageIdentifier_ = b; + uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int CONTENT_FIELD_NUMBER = 2; + public static final int TITLE_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object content_ = ""; + private volatile java.lang.Object title_ = ""; /** * * *
            -             * Extractive segment content.
            +             * Title of the document.
                          * 
            * - * string content = 2; + * string title = 2; * - * @return The content. + * @return The title. */ @java.lang.Override - public java.lang.String getContent() { - java.lang.Object ref = content_; + 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(); - content_ = s; + title_ = s; return s; } } @@ -10606,20 +18838,20 @@ public java.lang.String getContent() { * * *
            -             * Extractive segment content.
            +             * Title of the document.
                          * 
            * - * string content = 2; + * string title = 2; * - * @return The bytes for content. + * @return The bytes for title. */ @java.lang.Override - public com.google.protobuf.ByteString getContentBytes() { - java.lang.Object ref = content_; + 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); - content_ = b; + title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -10641,11 +18873,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, pageIdentifier_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, uri_); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, content_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, title_); } getUnknownFields().writeTo(output); } @@ -10656,11 +18888,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, pageIdentifier_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uri_); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, content_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, title_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -10675,19 +18907,18 @@ public boolean equals(final java.lang.Object obj) { if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment)) { + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata)) { return super.equals(obj); } com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResult.ChunkInfo.DocumentMetadata other = (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveSegment) + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) obj; - if (!getPageIdentifier().equals(other.getPageIdentifier())) return false; - if (!getContent().equals(other.getContent())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getTitle().equals(other.getTitle())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -10699,24 +18930,24 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PAGE_IDENTIFIER_FIELD_NUMBER; - hash = (53 * hash) + getPageIdentifier().hashCode(); - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().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.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -10725,14 +18956,14 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .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.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -10741,26 +18972,26 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .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.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -10770,14 +19001,14 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -10787,13 +19018,13 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -10813,7 +19044,7 @@ public static Builder newBuilder() { public static Builder newBuilder( com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -10834,43 +19065,39 @@ 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.
            +             * Document metadata contains the information of the document of the
            +             * current chunk.
                          * 
            * * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment} + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment) + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveSegmentOrBuilder { + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveSegment_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveSegment_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveSegment.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveSegment.Builder.class); + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder + .class); } // Construct using - // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment.newBuilder() + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -10881,32 +19108,31 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - pageIdentifier_ = ""; - content_ = ""; + uri_ = ""; + title_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveSegment_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_descriptor; } @java.lang.Override public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - .getDefaultInstance(); + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.getDefaultInstance(); } @java.lang.Override public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata build() { com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -10916,14 +19142,13 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata buildPartial() { com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata result = new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveSegment(this); + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -10933,14 +19158,14 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { private void buildPartial0( com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.pageIdentifier_ = pageIdentifier_; + result.uri_ = uri_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.content_ = content_; + result.title_ = title_; } } @@ -10949,11 +19174,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment) { + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) { return mergeFrom( (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveSegment) + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) other); } else { super.mergeFrom(other); @@ -10963,19 +19187,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom( com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata other) { if (other == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata .getDefaultInstance()) return this; - if (!other.getPageIdentifier().isEmpty()) { - pageIdentifier_ = other.pageIdentifier_; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getContent().isEmpty()) { - content_ = other.content_; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; bitField0_ |= 0x00000002; onChanged(); } @@ -11007,13 +19231,13 @@ public Builder mergeFrom( break; case 10: { - pageIdentifier_ = input.readStringRequireUtf8(); + uri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - content_ = input.readStringRequireUtf8(); + title_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 @@ -11036,25 +19260,25 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object pageIdentifier_ = ""; + private java.lang.Object uri_ = ""; /** * * *
            -               * Page identifier.
            +               * Uri of the document.
                            * 
            * - * string page_identifier = 1; + * string uri = 1; * - * @return The pageIdentifier. + * @return The uri. */ - public java.lang.String getPageIdentifier() { - java.lang.Object ref = pageIdentifier_; + 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(); - pageIdentifier_ = s; + uri_ = s; return s; } else { return (java.lang.String) ref; @@ -11065,19 +19289,19 @@ public java.lang.String getPageIdentifier() { * * *
            -               * Page identifier.
            +               * Uri of the document.
                            * 
            * - * string page_identifier = 1; + * string uri = 1; * - * @return The bytes for pageIdentifier. + * @return The bytes for uri. */ - public com.google.protobuf.ByteString getPageIdentifierBytes() { - java.lang.Object ref = pageIdentifier_; + 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); - pageIdentifier_ = b; + uri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -11088,19 +19312,19 @@ public com.google.protobuf.ByteString getPageIdentifierBytes() { * * *
            -               * Page identifier.
            +               * Uri of the document.
                            * 
            * - * string page_identifier = 1; + * string uri = 1; * - * @param value The pageIdentifier to set. + * @param value The uri to set. * @return This builder for chaining. */ - public Builder setPageIdentifier(java.lang.String value) { + public Builder setUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageIdentifier_ = value; + uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -11110,15 +19334,15 @@ public Builder setPageIdentifier(java.lang.String value) { * * *
            -               * Page identifier.
            +               * Uri of the document.
                            * 
            * - * string page_identifier = 1; + * string uri = 1; * * @return This builder for chaining. */ - public Builder clearPageIdentifier() { - pageIdentifier_ = getDefaultInstance().getPageIdentifier(); + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -11128,44 +19352,44 @@ public Builder clearPageIdentifier() { * * *
            -               * Page identifier.
            +               * Uri of the document.
                            * 
            * - * string page_identifier = 1; + * string uri = 1; * - * @param value The bytes for pageIdentifier to set. + * @param value The bytes for uri to set. * @return This builder for chaining. */ - public Builder setPageIdentifierBytes(com.google.protobuf.ByteString value) { + public Builder setUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageIdentifier_ = value; + uri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object content_ = ""; + private java.lang.Object title_ = ""; /** * * *
            -               * Extractive segment content.
            +               * Title of the document.
                            * 
            * - * string content = 2; + * string title = 2; * - * @return The content. + * @return The title. */ - public java.lang.String getContent() { - java.lang.Object ref = content_; + 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(); - content_ = s; + title_ = s; return s; } else { return (java.lang.String) ref; @@ -11176,19 +19400,19 @@ public java.lang.String getContent() { * * *
            -               * Extractive segment content.
            +               * Title of the document.
                            * 
            * - * string content = 2; + * string title = 2; * - * @return The bytes for content. + * @return The bytes for title. */ - public com.google.protobuf.ByteString getContentBytes() { - java.lang.Object ref = content_; + 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); - content_ = b; + title_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -11199,19 +19423,19 @@ public com.google.protobuf.ByteString getContentBytes() { * * *
            -               * Extractive segment content.
            +               * Title of the document.
                            * 
            * - * string content = 2; + * string title = 2; * - * @param value The content to set. + * @param value The title to set. * @return This builder for chaining. */ - public Builder setContent(java.lang.String value) { + public Builder setTitle(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - content_ = value; + title_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -11221,15 +19445,15 @@ public Builder setContent(java.lang.String value) { * * *
            -               * Extractive segment content.
            +               * Title of the document.
                            * 
            * - * string content = 2; + * string title = 2; * * @return This builder for chaining. */ - public Builder clearContent() { - content_ = getDefaultInstance().getContent(); + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; @@ -11239,50 +19463,49 @@ public Builder clearContent() { * * *
            -               * Extractive segment content.
            +               * Title of the document.
                            * 
            * - * string content = 2; + * string title = 2; * - * @param value The bytes for content to set. + * @param value The bytes for title to set. * @return This builder for chaining. */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { + public Builder setTitleBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - content_ = value; + title_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment) + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveSegment + .SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment(); + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata(); } public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata 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 ExtractiveSegment parsePartialFrom( + public DocumentMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -11302,1673 +19525,1947 @@ public ExtractiveSegment 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.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.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 interface ExtractiveAnswerOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
            -             * Page identifier.
            -             * 
            - * - * string page_identifier = 1; - * - * @return The pageIdentifier. - */ - java.lang.String getPageIdentifier(); - - /** - * - * - *
            -             * Page identifier.
            -             * 
            - * - * string page_identifier = 1; - * - * @return The bytes for pageIdentifier. - */ - com.google.protobuf.ByteString getPageIdentifierBytes(); + public static final int DOCUMENT_METADATA_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + documentMetadata_; - /** - * - * - *
            -             * Extractive answer content.
            -             * 
            - * - * string content = 2; - * - * @return The content. - */ - java.lang.String getContent(); + /** + * + * + *
            +           * Metadata of the document from the current chunk.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.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); + } - /** - * - * - *
            -             * Extractive answer content.
            -             * 
            - * - * string content = 2; - * - * @return The bytes for content. - */ - com.google.protobuf.ByteString getContentBytes(); + /** + * + * + *
            +           * Metadata of the document from the current chunk.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + * + * @return The documentMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + getDocumentMetadata() { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.getDefaultInstance() + : documentMetadata_; } /** * * *
            -           * Extractive answer.
            -           * [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#get-answers)
            +           * Metadata of the document from the current chunk.
                        * 
            * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer} + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * */ - public static final class ExtractiveAnswer extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer) - ExtractiveAnswerOrBuilder { - private static final long serialVersionUID = 0L; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder() { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "ExtractiveAnswer"); - } + private byte memoizedIsInitialized = -1; - // Use ExtractiveAnswer.newBuilder() to construct. - private ExtractiveAnswer(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private ExtractiveAnswer() { - pageIdentifier_ = ""; - content_ = ""; - } + memoizedIsInitialized = 1; + return true; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveAnswer_descriptor; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(chunk_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, chunk_); } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveAnswer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - .class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - .Builder.class); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, content_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getDocumentMetadata()); } + getUnknownFields().writeTo(output); + } - public static final int PAGE_IDENTIFIER_FIELD_NUMBER = 1; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @SuppressWarnings("serial") - private volatile java.lang.Object pageIdentifier_ = ""; + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(chunk_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, chunk_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, content_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getDocumentMetadata()); + } + 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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo + other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo) + obj; - /** - * - * - *
            -             * Page identifier.
            -             * 
            - * - * string page_identifier = 1; - * - * @return The pageIdentifier. - */ - @java.lang.Override - public java.lang.String getPageIdentifier() { - java.lang.Object ref = pageIdentifier_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageIdentifier_ = s; - return s; - } + 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; + } - /** - * - * - *
            -             * Page identifier.
            -             * 
            - * - * string page_identifier = 1; - * - * @return The bytes for pageIdentifier. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageIdentifierBytes() { - java.lang.Object ref = pageIdentifier_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageIdentifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CHUNK_FIELD_NUMBER; + 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; + } - public static final int CONTENT_FIELD_NUMBER = 2; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @SuppressWarnings("serial") - private volatile java.lang.Object content_ = ""; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -             * Extractive answer 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; - } - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -             * Extractive answer 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 com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, pageIdentifier_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, content_); - } - getUnknownFields().writeTo(output); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input); + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, pageIdentifier_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, content_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer)) { - return super.equals(obj); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - other = - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveAnswer) - obj; + .SearchResult.ChunkInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - if (!getPageIdentifier().equals(other.getPageIdentifier())) return false; - if (!getContent().equals(other.getContent())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PAGE_IDENTIFIER_FIELD_NUMBER; - hash = (53 * hash) + getPageIdentifier().hashCode(); - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +           * Chunk information.
            +           * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_descriptor; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.Builder.class); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDocumentMetadataFieldBuilder(); + } } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + chunk_ = ""; + content_ = ""; + documentMetadata_ = null; + if (documentMetadataBuilder_ != null) { + documentMetadataBuilder_.dispose(); + documentMetadataBuilder_ = null; + } + return this; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_descriptor; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.getDefaultInstance(); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo + result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.chunk_ = chunk_; + } + 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_; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo) + other); + } else { + super.mergeFrom(other); + return this; + } } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.getDefaultInstance()) return this; + if (!other.getChunk().isEmpty()) { + chunk_ = other.chunk_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getContent().isEmpty()) { + content_ = other.content_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDocumentMetadata()) { + mergeDocumentMetadata(other.getDocumentMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + public final boolean isInitialized() { + return true; } @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + chunk_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + input.readMessage( + internalGetDocumentMetadataFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + 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; } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + private int bitField0_; + + private java.lang.Object chunk_ = ""; /** * * *
            -             * Extractive answer.
            -             * [Guide](https://cloud.google.com/generative-ai-app-builder/docs/snippets#get-answers)
            +             * Chunk resource name.
                          * 
            * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer} + * string chunk = 1 [(.google.api.resource_reference) = { ... } + * + * @return The chunk. */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer) - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveAnswerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveAnswer_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveAnswer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - .class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - .Builder.class); - } - - // Construct using - // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - pageIdentifier_ = ""; - content_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveAnswer_descriptor; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - build() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - buildPartial() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - result = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveAnswer(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.pageIdentifier_ = pageIdentifier_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.content_ = content_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveAnswer) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - .getDefaultInstance()) return this; - if (!other.getPageIdentifier().isEmpty()) { - pageIdentifier_ = other.pageIdentifier_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getContent().isEmpty()) { - content_ = other.content_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + public java.lang.String getChunk() { + java.lang.Object ref = chunk_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + chunk_ = s; + return s; + } else { + return (java.lang.String) ref; } + } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
            +             * Chunk resource name.
            +             * 
            + * + * string chunk = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for chunk. + */ + public com.google.protobuf.ByteString getChunkBytes() { + java.lang.Object ref = chunk_; + if (ref instanceof 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; } + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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: - { - pageIdentifier_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - content_ = 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; + /** + * + * + *
            +             * Chunk resource name.
            +             * 
            + * + * string chunk = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The chunk to set. + * @return This builder for chaining. + */ + public Builder setChunk(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + chunk_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - private int bitField0_; - - private java.lang.Object pageIdentifier_ = ""; + /** + * + * + *
            +             * Chunk resource name.
            +             * 
            + * + * string chunk = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearChunk() { + chunk_ = getDefaultInstance().getChunk(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - /** - * - * - *
            -               * Page identifier.
            -               * 
            - * - * string page_identifier = 1; - * - * @return The pageIdentifier. - */ - public java.lang.String getPageIdentifier() { - java.lang.Object ref = pageIdentifier_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageIdentifier_ = s; - return s; - } else { - return (java.lang.String) ref; - } + /** + * + * + *
            +             * Chunk resource name.
            +             * 
            + * + * string chunk = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for chunk to set. + * @return This builder for chaining. + */ + public Builder setChunkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + chunk_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
            -               * Page identifier.
            -               * 
            - * - * string page_identifier = 1; - * - * @return The bytes for pageIdentifier. - */ - public com.google.protobuf.ByteString getPageIdentifierBytes() { - java.lang.Object ref = pageIdentifier_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageIdentifier_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private java.lang.Object content_ = ""; - /** - * - * - *
            -               * Page identifier.
            -               * 
            - * - * string page_identifier = 1; - * - * @param value The pageIdentifier to set. - * @return This builder for chaining. - */ - public Builder setPageIdentifier(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - pageIdentifier_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + /** + * + * + *
            +             * Chunk textual content.
            +             * 
            + * + * string content = 2; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; } + } - /** - * - * - *
            -               * Page identifier.
            -               * 
            - * - * string page_identifier = 1; - * - * @return This builder for chaining. - */ - public Builder clearPageIdentifier() { - pageIdentifier_ = getDefaultInstance().getPageIdentifier(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + /** + * + * + *
            +             * Chunk textual content.
            +             * 
            + * + * string content = 2; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof 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; } + } - /** - * - * - *
            -               * Page identifier.
            -               * 
            - * - * string page_identifier = 1; - * - * @param value The bytes for pageIdentifier to set. - * @return This builder for chaining. - */ - public Builder setPageIdentifierBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - pageIdentifier_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + /** + * + * + *
            +             * Chunk textual content.
            +             * 
            + * + * string content = 2; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + content_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - private java.lang.Object content_ = ""; + /** + * + * + *
            +             * Chunk textual content.
            +             * 
            + * + * string content = 2; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } - /** - * - * - *
            -               * Extractive answer content.
            -               * 
            - * - * string content = 2; - * - * @return The content. - */ - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } else { - return (java.lang.String) ref; - } + /** + * + * + *
            +             * Chunk textual content.
            +             * 
            + * + * string content = 2; + * + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + content_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - /** - * - * - *
            -               * Extractive answer content.
            -               * 
            - * - * string content = 2; - * - * @return The bytes for content. - */ - public com.google.protobuf.ByteString getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof 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; - } + private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + documentMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadataOrBuilder> + documentMetadataBuilder_; + + /** + * + * + *
            +             * Metadata of the document from the current chunk.
            +             * 
            + * + * + * .google.cloud.discoveryengine.v1beta.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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + * + * @return The documentMetadata. + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + getDocumentMetadata() { + if (documentMetadataBuilder_ == null) { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + .getDefaultInstance() + : documentMetadata_; + } else { + return documentMetadataBuilder_.getMessage(); } + } - /** - * - * - *
            -               * Extractive answer content.
            -               * 
            - * - * string content = 2; - * - * @param value The content to set. - * @return This builder for chaining. - */ - public Builder setContent(java.lang.String value) { + /** + * + * + *
            +             * Metadata of the document from the current chunk.
            +             * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + public Builder setDocumentMetadata( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + value) { + if (documentMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - content_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + documentMetadata_ = value; + } else { + documentMetadataBuilder_.setMessage(value); } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - /** - * - * - *
            -               * Extractive answer content.
            -               * 
            - * - * string content = 2; - * - * @return This builder for chaining. - */ - public Builder clearContent() { - content_ = getDefaultInstance().getContent(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; + /** + * + * + *
            +             * Metadata of the document from the current chunk.
            +             * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + public Builder setDocumentMetadata( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder + builderForValue) { + if (documentMetadataBuilder_ == null) { + documentMetadata_ = builderForValue.build(); + } else { + documentMetadataBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - /** - * - * - *
            -               * Extractive answer content.
            -               * 
            - * - * string content = 2; - * - * @param value The bytes for content to set. - * @return This builder for chaining. - */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + /** + * + * + *
            +             * Metadata of the document from the current chunk.
            +             * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + public Builder mergeDocumentMetadata( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + value) { + if (documentMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && documentMetadata_ != null + && documentMetadata_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + .getDefaultInstance()) { + getDocumentMetadataBuilder().mergeFrom(value); + } else { + documentMetadata_ = value; } - checkByteStringIsUtf8(value); - content_ = value; - bitField0_ |= 0x00000002; + } else { + documentMetadataBuilder_.mergeFrom(value); + } + if (documentMetadata_ != null) { + bitField0_ |= 0x00000004; onChanged(); - return this; } + return this; + } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer) + /** + * + * + *
            +             * Metadata of the document from the current chunk.
            +             * 
            + * + * + * .google.cloud.discoveryengine.v1beta.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; } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer) - private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveAnswer - DEFAULT_INSTANCE; + /** + * + * + *
            +             * Metadata of the document from the current chunk.
            +             * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder + getDocumentMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetDocumentMetadataFieldBuilder().getBuilder(); + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer(); + /** + * + * + *
            +             * Metadata of the document from the current chunk.
            +             * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder() { + if (documentMetadataBuilder_ != null) { + return documentMetadataBuilder_.getMessageOrBuilder(); + } else { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata + .getDefaultInstance() + : documentMetadata_; + } } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - getDefaultInstance() { - return DEFAULT_INSTANCE; + /** + * + * + *
            +             * Metadata of the document from the current chunk.
            +             * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadataOrBuilder> + internalGetDocumentMetadataFieldBuilder() { + if (documentMetadataBuilder_ == null) { + documentMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.DocumentMetadataOrBuilder>( + getDocumentMetadata(), getParentForChildren(), isClean()); + documentMetadata_ = null; + } + return documentMetadataBuilder_; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExtractiveAnswer parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo) + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + DEFAULT_INSTANCE; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo(); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; } - public static final int DOCUMENT_FIELD_NUMBER = 1; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChunkInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @SuppressWarnings("serial") - private volatile java.lang.Object document_ = ""; + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
            -           * Document resource name.
            -           * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The document. - */ @java.lang.Override - public java.lang.String getDocument() { - java.lang.Object ref = document_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - document_ = s; - return s; - } + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int contentCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object content_; + + public enum ContentCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + UNSTRUCTURED_DOCUMENT_INFO(1), + CHUNK_INFO(2), + CONTENT_NOT_SET(0); + private final int value; + + private ContentCase(int value) { + this.value = value; } /** - * - * - *
            -           * Document resource name.
            -           * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for document. + * @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.Override - public com.google.protobuf.ByteString getDocumentBytes() { - java.lang.Object ref = document_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - document_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Deprecated + public static ContentCase valueOf(int value) { + return forNumber(value); + } + + public static ContentCase forNumber(int value) { + switch (value) { + case 1: + return UNSTRUCTURED_DOCUMENT_INFO; + case 2: + return CHUNK_INFO; + case 0: + return CONTENT_NOT_SET; + default: + return null; } } - public static final int URI_FIELD_NUMBER = 2; + public int getNumber() { + return this.value; + } + }; - @SuppressWarnings("serial") - private volatile java.lang.Object uri_ = ""; + public ContentCase getContentCase() { + return ContentCase.forNumber(contentCase_); + } - /** - * - * - *
            -           * URI for the document.
            -           * 
            - * - * 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; - } + public static final int UNSTRUCTURED_DOCUMENT_INFO_FIELD_NUMBER = 1; + + /** + * + * + *
            +         * Unstructured document information.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; + * + * + * @return Whether the unstructuredDocumentInfo field is set. + */ + @java.lang.Override + public boolean hasUnstructuredDocumentInfo() { + return contentCase_ == 1; + } + + /** + * + * + *
            +         * Unstructured document information.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; + * + * + * @return The unstructuredDocumentInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + getUnstructuredDocumentInfo() { + if (contentCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo) + content_; } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.getDefaultInstance(); + } - /** - * - * - *
            -           * URI for the document.
            -           * 
            - * - * 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; - } + /** + * + * + *
            +         * Unstructured document information.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfoOrBuilder + getUnstructuredDocumentInfoOrBuilder() { + if (contentCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo) + content_; } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.getDefaultInstance(); + } - public static final int TITLE_FIELD_NUMBER = 3; + public static final int CHUNK_INFO_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object title_ = ""; + /** + * + * + *
            +         * Chunk information.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * + * + * @return Whether the chunkInfo field is set. + */ + @java.lang.Override + public boolean hasChunkInfo() { + return contentCase_ == 2; + } - /** - * - * - *
            -           * Title.
            -           * 
            - * - * string title = 3; - * - * @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; - } + /** + * + * + *
            +         * Chunk information.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * + * + * @return The chunkInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + getChunkInfo() { + if (contentCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo) + content_; } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.getDefaultInstance(); + } - /** - * - * - *
            -           * Title.
            -           * 
            - * - * string title = 3; - * - * @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; - } + /** + * + * + *
            +         * Chunk information.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfoOrBuilder + getChunkInfoOrBuilder() { + if (contentCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo) + content_; } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.getDefaultInstance(); + } - public static final int DOCUMENT_CONTEXTS_FIELD_NUMBER = 4; + private byte memoizedIsInitialized = -1; - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext> - documentContexts_; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * - * - *
            -           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext> - getDocumentContextsList() { - return documentContexts_; + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (contentCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo) + content_); + } + if (contentCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo) + content_); } + getUnknownFields().writeTo(output); + } - /** - * - * - *
            -           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .DocumentContextOrBuilder> - getDocumentContextsOrBuilderList() { - return documentContexts_; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (contentCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo) + content_); + } + if (contentCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo) + content_); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
            -           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - @java.lang.Override - public int getDocumentContextsCount() { - return documentContexts_.size(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult)) { + return super.equals(obj); } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult + other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult) + obj; - /** - * - * - *
            -           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - getDocumentContexts(int index) { - return documentContexts_.get(index); + if (!getContentCase().equals(other.getContentCase())) return false; + switch (contentCase_) { + case 1: + if (!getUnstructuredDocumentInfo().equals(other.getUnstructuredDocumentInfo())) + return false; + break; + case 2: + if (!getChunkInfo().equals(other.getChunkInfo())) return false; + break; + case 0: + default: } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - /** - * - * - *
            -           * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContextOrBuilder - getDocumentContextsOrBuilder(int index) { - return documentContexts_.get(index); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (contentCase_) { + case 1: + hash = (37 * hash) + UNSTRUCTURED_DOCUMENT_INFO_FIELD_NUMBER; + hash = (53 * hash) + getUnstructuredDocumentInfo().hashCode(); + break; + case 2: + hash = (37 * hash) + CHUNK_INFO_FIELD_NUMBER; + hash = (53 * hash) + getChunkInfo().hashCode(); + break; + case 0: + default: } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + 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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + parseFrom( + 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.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int EXTRACTIVE_SEGMENTS_FIELD_NUMBER = 5; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment> - extractiveSegments_; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
            -           * List of extractive segments.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment> - getExtractiveSegmentsList() { - return extractiveSegments_; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -           * List of extractive segments.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveSegmentOrBuilder> - getExtractiveSegmentsOrBuilderList() { - return extractiveSegments_; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - /** - * - * - *
            -           * List of extractive segments.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - @java.lang.Override - public int getExtractiveSegmentsCount() { - return extractiveSegments_.size(); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -           * List of extractive segments.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - getExtractiveSegments(int index) { - return extractiveSegments_.get(index); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
            -           * List of extractive segments.
            -           * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegmentOrBuilder - getExtractiveSegmentsOrBuilder(int index) { - return extractiveSegments_.get(index); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static final int EXTRACTIVE_ANSWERS_FIELD_NUMBER = 6; + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer> - extractiveAnswers_; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
            -           * 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.v1beta.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.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer> - getExtractiveAnswersList() { - return extractiveAnswers_; - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * - * - *
            -           * 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.v1beta.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.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveAnswerOrBuilder> - getExtractiveAnswersOrBuilderList() { - return extractiveAnswers_; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * - * - *
            -           * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Override - @java.lang.Deprecated - public int getExtractiveAnswersCount() { - return extractiveAnswers_.size(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * - * - *
            -           * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - getExtractiveAnswers(int index) { - return extractiveAnswers_.get(index); + /** + * + * + *
            +         * Search result.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_descriptor; } - /** - * - * - *
            -           * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswerOrBuilder - getExtractiveAnswersOrBuilder(int index) { - return extractiveAnswers_.get(index); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.Builder.class); } - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.newBuilder() + private Builder() {} - memoizedIsInitialized = 1; - return true; + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, document_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, title_); - } - for (int i = 0; i < documentContexts_.size(); i++) { - output.writeMessage(4, documentContexts_.get(i)); - } - for (int i = 0; i < extractiveSegments_.size(); i++) { - output.writeMessage(5, extractiveSegments_.get(i)); + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (unstructuredDocumentInfoBuilder_ != null) { + unstructuredDocumentInfoBuilder_.clear(); } - for (int i = 0; i < extractiveAnswers_.size(); i++) { - output.writeMessage(6, extractiveAnswers_.get(i)); + if (chunkInfoBuilder_ != null) { + chunkInfoBuilder_.clear(); } - getUnknownFields().writeTo(output); + contentCase_ = 0; + content_ = null; + return this; } @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, document_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, title_); - } - for (int i = 0; i < documentContexts_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, documentContexts_.get(i)); - } - for (int i = 0; i < extractiveSegments_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, extractiveSegments_.get(i)); - } - for (int i = 0; i < extractiveAnswers_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, extractiveAnswers_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_descriptor; } @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.UnstructuredDocumentInfo - other = - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo) - obj; - - if (!getDocument().equals(other.getDocument())) return false; - if (!getUri().equals(other.getUri())) return false; - if (!getTitle().equals(other.getTitle())) return false; - if (!getDocumentContextsList().equals(other.getDocumentContextsList())) return false; - if (!getExtractiveSegmentsList().equals(other.getExtractiveSegmentsList())) - return false; - if (!getExtractiveAnswersList().equals(other.getExtractiveAnswersList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.getDefaultInstance(); } @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; - hash = (53 * hash) + getDocument().hashCode(); - hash = (37 * hash) + URI_FIELD_NUMBER; - hash = (53 * hash) + getUri().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - if (getDocumentContextsCount() > 0) { - hash = (37 * hash) + DOCUMENT_CONTEXTS_FIELD_NUMBER; - hash = (53 * hash) + getDocumentContextsList().hashCode(); - } - if (getExtractiveSegmentsCount() > 0) { - hash = (37 * hash) + EXTRACTIVE_SEGMENTS_FIELD_NUMBER; - hash = (53 * hash) + getExtractiveSegmentsList().hashCode(); - } - if (getExtractiveAnswersCount() > 0) { - hash = (37 * hash) + EXTRACTIVE_ANSWERS_FIELD_NUMBER; - hash = (53 * hash) + getExtractiveAnswersList().hashCode(); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + return result; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult + result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult + result) { + int from_bitField0_ = bitField0_; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult + result) { + result.contentCase_ = contentCase_; + result.content_ = this.content_; + if (contentCase_ == 1 && unstructuredDocumentInfoBuilder_ != null) { + result.content_ = unstructuredDocumentInfoBuilder_.build(); + } + if (contentCase_ == 2 && chunkInfoBuilder_ != null) { + result.content_ = chunkInfoBuilder_.build(); + } } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - 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 mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult) + other); + } else { + super.mergeFrom(other); + return this; + } } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.getDefaultInstance()) return this; + switch (other.getContentCase()) { + case UNSTRUCTURED_DOCUMENT_INFO: + { + mergeUnstructuredDocumentInfo(other.getUnstructuredDocumentInfo()); + break; + } + case CHUNK_INFO: + { + mergeChunkInfo(other.getChunkInfo()); + break; + } + case CONTENT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + @java.lang.Override + public final boolean isInitialized() { + return true; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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( + internalGetUnstructuredDocumentInfoFieldBuilder().getBuilder(), + extensionRegistry); + contentCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetChunkInfoFieldBuilder().getBuilder(), extensionRegistry); + contentCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + private int contentCase_ = 0; + private java.lang.Object content_; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input); + public ContentCase getContentCase() { + return ContentCase.forNumber(contentCase_); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public Builder clearContent() { + contentCase_ = 0; + content_ = null; + onChanged(); + return this; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + private int bitField0_; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfoOrBuilder> + unstructuredDocumentInfoBuilder_; + /** + * + * + *
            +           * Unstructured document information.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; + * + * + * @return Whether the unstructuredDocumentInfo field is set. + */ @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + public boolean hasUnstructuredDocumentInfo() { + return contentCase_ == 1; } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + /** + * + * + *
            +           * Unstructured document information.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; + * + * + * @return The unstructuredDocumentInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + getUnstructuredDocumentInfo() { + if (unstructuredDocumentInfoBuilder_ == null) { + if (contentCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo) + content_; + } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.getDefaultInstance(); + } else { + if (contentCase_ == 1) { + return unstructuredDocumentInfoBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.getDefaultInstance(); + } } - public static Builder newBuilder( + /** + * + * + *
            +           * Unstructured document information.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; + * + */ + public Builder setUnstructuredDocumentInfo( com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList .SearchResult.UnstructuredDocumentInfo - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + value) { + if (unstructuredDocumentInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + unstructuredDocumentInfoBuilder_.setMessage(value); + } + contentCase_ = 1; + return this; } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * + * + *
            +           * Unstructured document information.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; + * + */ + public Builder setUnstructuredDocumentInfo( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.UnstructuredDocumentInfo.Builder + builderForValue) { + if (unstructuredDocumentInfoBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + unstructuredDocumentInfoBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 1; + return this; } /** @@ -12978,4753 +21475,4606 @@ protected Builder newBuilderForType( * Unstructured document information. *
            * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo} + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; + * */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo) + public Builder mergeUnstructuredDocumentInfo( com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.UnstructuredDocumentInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.Builder.class); - } - - // Construct using - // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - document_ = ""; - uri_ = ""; - title_ = ""; - if (documentContextsBuilder_ == null) { - documentContexts_ = java.util.Collections.emptyList(); - } else { - documentContexts_ = null; - documentContextsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - if (extractiveSegmentsBuilder_ == null) { - extractiveSegments_ = java.util.Collections.emptyList(); + .SearchResult.UnstructuredDocumentInfo + value) { + if (unstructuredDocumentInfoBuilder_ == null) { + if (contentCase_ == 1 + && content_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .getDefaultInstance()) { + content_ = + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.newBuilder( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo) + content_) + .mergeFrom(value) + .buildPartial(); } else { - extractiveSegments_ = null; - extractiveSegmentsBuilder_.clear(); + content_ = value; } - bitField0_ = (bitField0_ & ~0x00000010); - if (extractiveAnswersBuilder_ == null) { - extractiveAnswers_ = java.util.Collections.emptyList(); + onChanged(); + } else { + if (contentCase_ == 1) { + unstructuredDocumentInfoBuilder_.mergeFrom(value); } else { - extractiveAnswers_ = null; - extractiveAnswersBuilder_.clear(); + unstructuredDocumentInfoBuilder_.setMessage(value); } - bitField0_ = (bitField0_ & ~0x00000020); - return this; } + contentCase_ = 1; + return this; + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_descriptor; + /** + * + * + *
            +           * Unstructured document information.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; + * + */ + public Builder clearUnstructuredDocumentInfo() { + if (unstructuredDocumentInfoBuilder_ == null) { + if (contentCase_ == 1) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 1) { + contentCase_ = 0; + content_ = null; + } + unstructuredDocumentInfoBuilder_.clear(); } + return this; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - getDefaultInstanceForType() { + /** + * + * + *
            +           * Unstructured document information.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.Builder + getUnstructuredDocumentInfoBuilder() { + return internalGetUnstructuredDocumentInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +           * Unstructured document information.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfoOrBuilder + getUnstructuredDocumentInfoOrBuilder() { + if ((contentCase_ == 1) && (unstructuredDocumentInfoBuilder_ != null)) { + return unstructuredDocumentInfoBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo) + content_; + } return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec .SearchResultList.SearchResult.UnstructuredDocumentInfo.getDefaultInstance(); } + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - build() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.UnstructuredDocumentInfo - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
            +           * Unstructured document information.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfoOrBuilder> + internalGetUnstructuredDocumentInfoFieldBuilder() { + if (unstructuredDocumentInfoBuilder_ == null) { + if (!(contentCase_ == 1)) { + content_ = + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo + .getDefaultInstance(); } - return result; + unstructuredDocumentInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfoOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.UnstructuredDocumentInfo) + content_, + getParentForChildren(), + isClean()); + content_ = null; } + contentCase_ = 1; + onChanged(); + return unstructuredDocumentInfoBuilder_; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - buildPartial() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.UnstructuredDocumentInfo - result = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfoOrBuilder> + chunkInfoBuilder_; + + /** + * + * + *
            +           * Chunk information.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * + * + * @return Whether the chunkInfo field is set. + */ + @java.lang.Override + public boolean hasChunkInfo() { + return contentCase_ == 2; + } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - result) { - if (documentContextsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - documentContexts_ = java.util.Collections.unmodifiableList(documentContexts_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.documentContexts_ = documentContexts_; - } else { - result.documentContexts_ = documentContextsBuilder_.build(); - } - if (extractiveSegmentsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - extractiveSegments_ = java.util.Collections.unmodifiableList(extractiveSegments_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.extractiveSegments_ = extractiveSegments_; - } else { - result.extractiveSegments_ = extractiveSegmentsBuilder_.build(); + /** + * + * + *
            +           * Chunk information.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * + * + * @return The chunkInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo + getChunkInfo() { + if (chunkInfoBuilder_ == null) { + if (contentCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo) + content_; } - if (extractiveAnswersBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - extractiveAnswers_ = java.util.Collections.unmodifiableList(extractiveAnswers_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.extractiveAnswers_ = extractiveAnswers_; - } else { - result.extractiveAnswers_ = extractiveAnswersBuilder_.build(); + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.getDefaultInstance(); + } else { + if (contentCase_ == 2) { + return chunkInfoBuilder_.getMessage(); } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.getDefaultInstance(); } + } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.document_ = document_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.uri_ = uri_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.title_ = title_; + /** + * + * + *
            +           * Chunk information.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * + */ + public Builder setChunkInfo( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo + value) { + if (chunkInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + content_ = value; + onChanged(); + } else { + chunkInfoBuilder_.setMessage(value); } + contentCase_ = 2; + return this; + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo) - other); - } else { - super.mergeFrom(other); - return this; - } + /** + * + * + *
            +           * Chunk information.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * + */ + public Builder setChunkInfo( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo.Builder + builderForValue) { + if (chunkInfoBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + chunkInfoBuilder_.setMessage(builderForValue.build()); } + contentCase_ = 2; + return this; + } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.getDefaultInstance()) - return this; - if (!other.getDocument().isEmpty()) { - document_ = other.document_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (documentContextsBuilder_ == null) { - if (!other.documentContexts_.isEmpty()) { - if (documentContexts_.isEmpty()) { - documentContexts_ = other.documentContexts_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureDocumentContextsIsMutable(); - documentContexts_.addAll(other.documentContexts_); - } - onChanged(); - } - } else { - if (!other.documentContexts_.isEmpty()) { - if (documentContextsBuilder_.isEmpty()) { - documentContextsBuilder_.dispose(); - documentContextsBuilder_ = null; - documentContexts_ = other.documentContexts_; - bitField0_ = (bitField0_ & ~0x00000008); - documentContextsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetDocumentContextsFieldBuilder() - : null; - } else { - documentContextsBuilder_.addAllMessages(other.documentContexts_); - } - } - } - if (extractiveSegmentsBuilder_ == null) { - if (!other.extractiveSegments_.isEmpty()) { - if (extractiveSegments_.isEmpty()) { - extractiveSegments_ = other.extractiveSegments_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureExtractiveSegmentsIsMutable(); - extractiveSegments_.addAll(other.extractiveSegments_); - } - onChanged(); - } - } else { - if (!other.extractiveSegments_.isEmpty()) { - if (extractiveSegmentsBuilder_.isEmpty()) { - extractiveSegmentsBuilder_.dispose(); - extractiveSegmentsBuilder_ = null; - extractiveSegments_ = other.extractiveSegments_; - bitField0_ = (bitField0_ & ~0x00000010); - extractiveSegmentsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetExtractiveSegmentsFieldBuilder() - : null; - } else { - extractiveSegmentsBuilder_.addAllMessages(other.extractiveSegments_); - } - } - } - if (extractiveAnswersBuilder_ == null) { - if (!other.extractiveAnswers_.isEmpty()) { - if (extractiveAnswers_.isEmpty()) { - extractiveAnswers_ = other.extractiveAnswers_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureExtractiveAnswersIsMutable(); - extractiveAnswers_.addAll(other.extractiveAnswers_); - } - onChanged(); - } - } else { - if (!other.extractiveAnswers_.isEmpty()) { - if (extractiveAnswersBuilder_.isEmpty()) { - extractiveAnswersBuilder_.dispose(); - extractiveAnswersBuilder_ = null; - extractiveAnswers_ = other.extractiveAnswers_; - bitField0_ = (bitField0_ & ~0x00000020); - extractiveAnswersBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetExtractiveAnswersFieldBuilder() - : null; - } else { - extractiveAnswersBuilder_.addAllMessages(other.extractiveAnswers_); - } - } + /** + * + * + *
            +           * Chunk information.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * + */ + public Builder mergeChunkInfo( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.ChunkInfo + value) { + if (chunkInfoBuilder_ == null) { + if (contentCase_ == 2 + && content_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.getDefaultInstance()) { + content_ = + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.newBuilder( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo) + content_) + .mergeFrom(value) + .buildPartial(); + } else { + content_ = value; } - this.mergeUnknownFields(other.getUnknownFields()); onChanged(); - return this; + } else { + if (contentCase_ == 2) { + chunkInfoBuilder_.mergeFrom(value); + } else { + chunkInfoBuilder_.setMessage(value); + } } + contentCase_ = 2; + return this; + } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
            +           * Chunk information.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * + */ + public Builder clearChunkInfo() { + if (chunkInfoBuilder_ == null) { + if (contentCase_ == 2) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 2) { + contentCase_ = 0; + content_ = null; + } + chunkInfoBuilder_.clear(); } + return 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(); + /** + * + * + *
            +           * Chunk information.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.Builder + getChunkInfoBuilder() { + return internalGetChunkInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +           * Chunk information.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfoOrBuilder + getChunkInfoOrBuilder() { + if ((contentCase_ == 2) && (chunkInfoBuilder_ != null)) { + return chunkInfoBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo) + content_; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - document_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .DocumentContext - m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .SearchSpec.SearchResultList.SearchResult - .UnstructuredDocumentInfo.DocumentContext.parser(), - extensionRegistry); - if (documentContextsBuilder_ == null) { - ensureDocumentContextsIsMutable(); - documentContexts_.add(m); - } else { - documentContextsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveSegment - m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .SearchSpec.SearchResultList.SearchResult - .UnstructuredDocumentInfo.ExtractiveSegment.parser(), - extensionRegistry); - if (extractiveSegmentsBuilder_ == null) { - ensureExtractiveSegmentsIsMutable(); - extractiveSegments_.add(m); - } else { - extractiveSegmentsBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: - { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveAnswer - m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .SearchSpec.SearchResultList.SearchResult - .UnstructuredDocumentInfo.ExtractiveAnswer.parser(), - extensionRegistry); - if (extractiveAnswersBuilder_ == null) { - ensureExtractiveAnswersIsMutable(); - extractiveAnswers_.add(m); - } else { - extractiveAnswersBuilder_.addMessage(m); - } - 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; + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.getDefaultInstance(); } + } - private int bitField0_; + /** + * + * + *
            +           * Chunk information.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfoOrBuilder> + internalGetChunkInfoFieldBuilder() { + if (chunkInfoBuilder_ == null) { + if (!(contentCase_ == 2)) { + content_ = + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.getDefaultInstance(); + } + chunkInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfoOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.ChunkInfo) + content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 2; + onChanged(); + return chunkInfoBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult(); + } - private java.lang.Object document_ = ""; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - * - * - *
            -             * Document resource name.
            -             * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The document. - */ - public java.lang.String getDocument() { - java.lang.Object ref = document_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - document_ = s; - return s; - } else { - return (java.lang.String) ref; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } - } + }; - /** - * - * - *
            -             * Document resource name.
            -             * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for document. - */ - public com.google.protobuf.ByteString getDocumentBytes() { - java.lang.Object ref = document_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - document_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
            -             * Document resource name.
            -             * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @param value The document to set. - * @return This builder for chaining. - */ - public Builder setDocument(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - document_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * - * - *
            -             * Document resource name.
            -             * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @return This builder for chaining. - */ - public Builder clearDocument() { - document_ = getDefaultInstance().getDocument(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - /** - * - * - *
            -             * Document resource name.
            -             * 
            - * - * string document = 1 [(.google.api.resource_reference) = { ... } - * - * @param value The bytes for document to set. - * @return This builder for chaining. - */ - public Builder setDocumentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - document_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + public static final int SEARCH_RESULTS_FIELD_NUMBER = 1; - private java.lang.Object uri_ = ""; + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult> + searchResults_; - /** - * - * - *
            -             * URI for the document.
            -             * 
            - * - * 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; - } - } + /** + * + * + *
            +       * Search results.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult> + getSearchResultsList() { + return searchResults_; + } - /** - * - * - *
            -             * URI for the document.
            -             * 
            - * - * 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; - } - } + /** + * + * + *
            +       * Search results.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResultOrBuilder> + getSearchResultsOrBuilderList() { + return searchResults_; + } - /** - * - * - *
            -             * URI for the document.
            -             * 
            - * - * 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; - } + /** + * + * + *
            +       * Search results.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + @java.lang.Override + public int getSearchResultsCount() { + return searchResults_.size(); + } - /** - * - * - *
            -             * URI for the document.
            -             * 
            - * - * string uri = 2; - * - * @return This builder for chaining. - */ - public Builder clearUri() { - uri_ = getDefaultInstance().getUri(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } + /** + * + * + *
            +       * Search results.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult + getSearchResults(int index) { + return searchResults_.get(index); + } - /** - * - * - *
            -             * URI for the document.
            -             * 
            - * - * 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; - } + /** + * + * + *
            +       * Search results.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResultOrBuilder + getSearchResultsOrBuilder(int index) { + return searchResults_.get(index); + } - private java.lang.Object title_ = ""; + private byte memoizedIsInitialized = -1; - /** - * - * - *
            -             * Title.
            -             * 
            - * - * string title = 3; - * - * @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; - } - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * - * - *
            -             * Title.
            -             * 
            - * - * string title = 3; - * - * @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; - } - } + memoizedIsInitialized = 1; + return true; + } - /** - * - * - *
            -             * Title.
            -             * 
            - * - * string title = 3; - * - * @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_ |= 0x00000004; - onChanged(); - return this; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < searchResults_.size(); i++) { + output.writeMessage(1, searchResults_.get(i)); + } + getUnknownFields().writeTo(output); + } - /** - * - * - *
            -             * Title.
            -             * 
            - * - * string title = 3; - * - * @return This builder for chaining. - */ - public Builder clearTitle() { - title_ = getDefaultInstance().getTitle(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - * - * - *
            -             * Title.
            -             * 
            - * - * string title = 3; - * - * @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_ |= 0x00000004; - onChanged(); - return this; - } + size = 0; + for (int i = 0; i < searchResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, searchResults_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - private java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext> - documentContexts_ = java.util.Collections.emptyList(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList) + obj; - private void ensureDocumentContextsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - documentContexts_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .DocumentContext>(documentContexts_); - bitField0_ |= 0x00000008; - } - } + if (!getSearchResultsList().equals(other.getSearchResultsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - .Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .DocumentContextOrBuilder> - documentContextsBuilder_; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSearchResultsCount() > 0) { + hash = (37 * hash) + SEARCH_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getSearchResultsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - * - * - *
            -             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext> - getDocumentContextsList() { - if (documentContextsBuilder_ == null) { - return java.util.Collections.unmodifiableList(documentContexts_); - } else { - return documentContextsBuilder_.getMessageList(); - } - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - public int getDocumentContextsCount() { - if (documentContextsBuilder_ == null) { - return documentContexts_.size(); - } else { - return documentContextsBuilder_.getCount(); - } - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - getDocumentContexts(int index) { - if (documentContextsBuilder_ == null) { - return documentContexts_.get(index); - } else { - return documentContextsBuilder_.getMessage(index); - } - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - public Builder setDocumentContexts( - int index, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - value) { - if (documentContextsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDocumentContextsIsMutable(); - documentContexts_.set(index, value); - onChanged(); - } else { - documentContextsBuilder_.setMessage(index, value); - } - return this; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - public Builder setDocumentContexts( - int index, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - .Builder - builderForValue) { - if (documentContextsBuilder_ == null) { - ensureDocumentContextsIsMutable(); - documentContexts_.set(index, builderForValue.build()); - onChanged(); - } else { - documentContextsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - public Builder addDocumentContexts( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - value) { - if (documentContextsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDocumentContextsIsMutable(); - documentContexts_.add(value); - onChanged(); - } else { - documentContextsBuilder_.addMessage(value); - } - return this; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - public Builder addDocumentContexts( - int index, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - value) { - if (documentContextsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDocumentContextsIsMutable(); - documentContexts_.add(index, value); - onChanged(); - } else { - documentContextsBuilder_.addMessage(index, value); - } - return this; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - public Builder addDocumentContexts( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - .Builder - builderForValue) { - if (documentContextsBuilder_ == null) { - ensureDocumentContextsIsMutable(); - documentContexts_.add(builderForValue.build()); - onChanged(); - } else { - documentContextsBuilder_.addMessage(builderForValue.build()); - } - return this; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - /** - * - * - *
            -             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - public Builder addDocumentContexts( - int index, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - .Builder - builderForValue) { - if (documentContextsBuilder_ == null) { - ensureDocumentContextsIsMutable(); - documentContexts_.add(index, builderForValue.build()); - onChanged(); - } else { - documentContextsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - public Builder addAllDocumentContexts( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .DocumentContext> - values) { - if (documentContextsBuilder_ == null) { - ensureDocumentContextsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, documentContexts_); - onChanged(); - } else { - documentContextsBuilder_.addAllMessages(values); - } - return this; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
            -             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - public Builder clearDocumentContexts() { - if (documentContextsBuilder_ == null) { - documentContexts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - documentContextsBuilder_.clear(); - } - return this; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - public Builder removeDocumentContexts(int index) { - if (documentContextsBuilder_ == null) { - ensureDocumentContextsIsMutable(); - documentContexts_.remove(index); - onChanged(); - } else { - documentContextsBuilder_.remove(index); - } - return this; - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - * - * - *
            -             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext.Builder - getDocumentContextsBuilder(int index) { - return internalGetDocumentContextsFieldBuilder().getBuilder(index); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
            -             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContextOrBuilder - getDocumentContextsOrBuilder(int index) { - if (documentContextsBuilder_ == null) { - return documentContexts_.get(index); - } else { - return documentContextsBuilder_.getMessageOrBuilder(index); - } - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Search result list.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.Builder.class); + } - /** - * - * - *
            -             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .DocumentContextOrBuilder> - getDocumentContextsOrBuilderList() { - if (documentContextsBuilder_ != null) { - return documentContextsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(documentContexts_); - } - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.newBuilder() + private Builder() {} - /** - * - * - *
            -             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext.Builder - addDocumentContextsBuilder() { - return internalGetDocumentContextsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - .getDefaultInstance()); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - /** - * - * - *
            -             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext.Builder - addDocumentContextsBuilder(int index) { - return internalGetDocumentContextsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - .getDefaultInstance()); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (searchResultsBuilder_ == null) { + searchResults_ = java.util.Collections.emptyList(); + } else { + searchResults_ = null; + searchResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } - /** - * - * - *
            -             * 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 .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * - */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - .Builder> - getDocumentContextsBuilderList() { - return internalGetDocumentContextsFieldBuilder().getBuilderList(); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_descriptor; + } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - .Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .DocumentContextOrBuilder> - internalGetDocumentContextsFieldBuilder() { - if (documentContextsBuilder_ == null) { - documentContextsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - .Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .DocumentContextOrBuilder>( - documentContexts_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - documentContexts_ = null; - } - return documentContextsBuilder_; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.getDefaultInstance(); + } - private java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment> - extractiveSegments_ = java.util.Collections.emptyList(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList + build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - private void ensureExtractiveSegmentsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - extractiveSegments_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveSegment>(extractiveSegments_); - bitField0_ |= 0x00000010; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + result) { + if (searchResultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + searchResults_ = java.util.Collections.unmodifiableList(searchResults_); + bitField0_ = (bitField0_ & ~0x00000001); } + result.searchResults_ = searchResults_; + } else { + result.searchResults_ = searchResultsBuilder_.build(); + } + } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - .Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveSegmentOrBuilder> - extractiveSegmentsBuilder_; + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + result) { + int from_bitField0_ = bitField0_; + } - /** - * - * - *
            -             * List of extractive segments.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment> - getExtractiveSegmentsList() { - if (extractiveSegmentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(extractiveSegments_); - } else { - return extractiveSegmentsBuilder_.getMessageList(); - } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList) + other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * - * - *
            -             * List of extractive segments.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - public int getExtractiveSegmentsCount() { - if (extractiveSegmentsBuilder_ == null) { - return extractiveSegments_.size(); + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.getDefaultInstance()) return this; + if (searchResultsBuilder_ == null) { + if (!other.searchResults_.isEmpty()) { + if (searchResults_.isEmpty()) { + searchResults_ = other.searchResults_; + bitField0_ = (bitField0_ & ~0x00000001); } else { - return extractiveSegmentsBuilder_.getCount(); + ensureSearchResultsIsMutable(); + searchResults_.addAll(other.searchResults_); } + onChanged(); } - - /** - * - * - *
            -             * List of extractive segments.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - getExtractiveSegments(int index) { - if (extractiveSegmentsBuilder_ == null) { - return extractiveSegments_.get(index); + } else { + if (!other.searchResults_.isEmpty()) { + if (searchResultsBuilder_.isEmpty()) { + searchResultsBuilder_.dispose(); + searchResultsBuilder_ = null; + searchResults_ = other.searchResults_; + bitField0_ = (bitField0_ & ~0x00000001); + searchResultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSearchResultsFieldBuilder() + : null; } else { - return extractiveSegmentsBuilder_.getMessage(index); + searchResultsBuilder_.addAllMessages(other.searchResults_); } } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
            -             * List of extractive segments.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - public Builder setExtractiveSegments( - int index, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - value) { - if (extractiveSegmentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtractiveSegmentsIsMutable(); - extractiveSegments_.set(index, value); - onChanged(); - } else { - extractiveSegmentsBuilder_.setMessage(index, value); - } - return this; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * - * - *
            -             * List of extractive segments.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - public Builder setExtractiveSegments( - int index, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - .Builder - builderForValue) { - if (extractiveSegmentsBuilder_ == null) { - ensureExtractiveSegmentsIsMutable(); - extractiveSegments_.set(index, builderForValue.build()); - onChanged(); - } else { - extractiveSegmentsBuilder_.setMessage(index, builderForValue.build()); - } - return 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 10: + { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .SearchSpec.SearchResultList.SearchResult.parser(), + extensionRegistry); + if (searchResultsBuilder_ == null) { + ensureSearchResultsIsMutable(); + searchResults_.add(m); + } else { + searchResultsBuilder_.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; + } - /** - * - * - *
            -             * List of extractive segments.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - public Builder addExtractiveSegments( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - value) { - if (extractiveSegmentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtractiveSegmentsIsMutable(); - extractiveSegments_.add(value); - onChanged(); - } else { - extractiveSegmentsBuilder_.addMessage(value); - } - return this; - } + private int bitField0_; - /** - * - * - *
            -             * List of extractive segments.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - public Builder addExtractiveSegments( - int index, + private java.util.List< com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - value) { - if (extractiveSegmentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtractiveSegmentsIsMutable(); - extractiveSegments_.add(index, value); - onChanged(); - } else { - extractiveSegmentsBuilder_.addMessage(index, value); - } - return this; - } + .SearchResultList.SearchResult> + searchResults_ = java.util.Collections.emptyList(); - /** - * - * - *
            -             * List of extractive segments.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - public Builder addExtractiveSegments( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - .Builder - builderForValue) { - if (extractiveSegmentsBuilder_ == null) { - ensureExtractiveSegmentsIsMutable(); - extractiveSegments_.add(builderForValue.build()); - onChanged(); - } else { - extractiveSegmentsBuilder_.addMessage(builderForValue.build()); - } - return this; - } + private void ensureSearchResultsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + searchResults_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult>(searchResults_); + bitField0_ |= 0x00000001; + } + } - /** - * - * - *
            -             * List of extractive segments.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - public Builder addExtractiveSegments( - int index, + private com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - .Builder - builderForValue) { - if (extractiveSegmentsBuilder_ == null) { - ensureExtractiveSegmentsIsMutable(); - extractiveSegments_.add(index, builderForValue.build()); - onChanged(); - } else { - extractiveSegmentsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } + .SearchResultList.SearchResult, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResultOrBuilder> + searchResultsBuilder_; - /** - * - * - *
            -             * List of extractive segments.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - public Builder addAllExtractiveSegments( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveSegment> - values) { - if (extractiveSegmentsBuilder_ == null) { - ensureExtractiveSegmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, extractiveSegments_); - onChanged(); - } else { - extractiveSegmentsBuilder_.addAllMessages(values); - } - return this; - } + /** + * + * + *
            +         * Search results.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult> + getSearchResultsList() { + if (searchResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(searchResults_); + } else { + return searchResultsBuilder_.getMessageList(); + } + } - /** - * - * - *
            -             * List of extractive segments.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - public Builder clearExtractiveSegments() { - if (extractiveSegmentsBuilder_ == null) { - extractiveSegments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - extractiveSegmentsBuilder_.clear(); - } - return this; - } + /** + * + * + *
            +         * Search results.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + public int getSearchResultsCount() { + if (searchResultsBuilder_ == null) { + return searchResults_.size(); + } else { + return searchResultsBuilder_.getCount(); + } + } - /** - * - * - *
            -             * List of extractive segments.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - public Builder removeExtractiveSegments(int index) { - if (extractiveSegmentsBuilder_ == null) { - ensureExtractiveSegmentsIsMutable(); - extractiveSegments_.remove(index); - onChanged(); - } else { - extractiveSegmentsBuilder_.remove(index); - } - return this; - } + /** + * + * + *
            +         * Search results.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult + getSearchResults(int index) { + if (searchResultsBuilder_ == null) { + return searchResults_.get(index); + } else { + return searchResultsBuilder_.getMessage(index); + } + } - /** - * - * - *
            -             * List of extractive segments.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - .Builder - getExtractiveSegmentsBuilder(int index) { - return internalGetExtractiveSegmentsFieldBuilder().getBuilder(index); + /** + * + * + *
            +         * Search results.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + public Builder setSearchResults( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult + value) { + if (searchResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureSearchResultsIsMutable(); + searchResults_.set(index, value); + onChanged(); + } else { + searchResultsBuilder_.setMessage(index, value); + } + return this; + } - /** - * - * - *
            -             * List of extractive segments.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveSegmentOrBuilder - getExtractiveSegmentsOrBuilder(int index) { - if (extractiveSegmentsBuilder_ == null) { - return extractiveSegments_.get(index); - } else { - return extractiveSegmentsBuilder_.getMessageOrBuilder(index); - } - } + /** + * + * + *
            +         * Search results.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + public Builder setSearchResults( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.Builder + builderForValue) { + if (searchResultsBuilder_ == null) { + ensureSearchResultsIsMutable(); + searchResults_.set(index, builderForValue.build()); + onChanged(); + } else { + searchResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } - /** - * - * - *
            -             * List of extractive segments.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveSegmentOrBuilder> - getExtractiveSegmentsOrBuilderList() { - if (extractiveSegmentsBuilder_ != null) { - return extractiveSegmentsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(extractiveSegments_); - } + /** + * + * + *
            +         * Search results.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + public Builder addSearchResults( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult + value) { + if (searchResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureSearchResultsIsMutable(); + searchResults_.add(value); + onChanged(); + } else { + searchResultsBuilder_.addMessage(value); + } + return this; + } - /** - * - * - *
            -             * List of extractive segments.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - .Builder - addExtractiveSegmentsBuilder() { - return internalGetExtractiveSegmentsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - .getDefaultInstance()); + /** + * + * + *
            +         * Search results.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + public Builder addSearchResults( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult + value) { + if (searchResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureSearchResultsIsMutable(); + searchResults_.add(index, value); + onChanged(); + } else { + searchResultsBuilder_.addMessage(index, value); + } + return this; + } - /** - * - * - *
            -             * List of extractive segments.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - .Builder - addExtractiveSegmentsBuilder(int index) { - return internalGetExtractiveSegmentsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - .getDefaultInstance()); - } + /** + * + * + *
            +         * Search results.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + public Builder addSearchResults( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.Builder + builderForValue) { + if (searchResultsBuilder_ == null) { + ensureSearchResultsIsMutable(); + searchResults_.add(builderForValue.build()); + onChanged(); + } else { + searchResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } - /** - * - * - *
            -             * List of extractive segments.
            -             * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * - */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - .Builder> - getExtractiveSegmentsBuilderList() { - return internalGetExtractiveSegmentsFieldBuilder().getBuilderList(); - } + /** + * + * + *
            +         * Search results.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + public Builder addSearchResults( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .SearchResult.Builder + builderForValue) { + if (searchResultsBuilder_ == null) { + ensureSearchResultsIsMutable(); + searchResults_.add(index, builderForValue.build()); + onChanged(); + } else { + searchResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - .Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveSegmentOrBuilder> - internalGetExtractiveSegmentsFieldBuilder() { - if (extractiveSegmentsBuilder_ == null) { - extractiveSegmentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveSegment, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveSegment.Builder, + /** + * + * + *
            +         * Search results.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + public Builder addAllSearchResults( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveSegmentOrBuilder>( - extractiveSegments_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - extractiveSegments_ = null; - } - return extractiveSegmentsBuilder_; - } + .SearchResultList.SearchResult> + values) { + if (searchResultsBuilder_ == null) { + ensureSearchResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, searchResults_); + onChanged(); + } else { + searchResultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +         * Search results.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + public Builder clearSearchResults() { + if (searchResultsBuilder_ == null) { + searchResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + searchResultsBuilder_.clear(); + } + return this; + } - private java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer> - extractiveAnswers_ = java.util.Collections.emptyList(); + /** + * + * + *
            +         * Search results.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + public Builder removeSearchResults(int index) { + if (searchResultsBuilder_ == null) { + ensureSearchResultsIsMutable(); + searchResults_.remove(index); + onChanged(); + } else { + searchResultsBuilder_.remove(index); + } + return this; + } - private void ensureExtractiveAnswersIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - extractiveAnswers_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveAnswer>(extractiveAnswers_); - bitField0_ |= 0x00000020; - } - } + /** + * + * + *
            +         * Search results.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.Builder + getSearchResultsBuilder(int index) { + return internalGetSearchResultsFieldBuilder().getBuilder(index); + } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - .Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveAnswerOrBuilder> - extractiveAnswersBuilder_; + /** + * + * + *
            +         * Search results.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResultOrBuilder + getSearchResultsOrBuilder(int index) { + if (searchResultsBuilder_ == null) { + return searchResults_.get(index); + } else { + return searchResultsBuilder_.getMessageOrBuilder(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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - public java.util.List< + /** + * + * + *
            +         * Search results.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer> - getExtractiveAnswersList() { - if (extractiveAnswersBuilder_ == null) { - return java.util.Collections.unmodifiableList(extractiveAnswers_); - } else { - return extractiveAnswersBuilder_.getMessageList(); - } - } - - /** - * - * - *
            -             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - public int getExtractiveAnswersCount() { - if (extractiveAnswersBuilder_ == null) { - return extractiveAnswers_.size(); - } else { - return extractiveAnswersBuilder_.getCount(); - } - } - - /** - * - * - *
            -             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - getExtractiveAnswers(int index) { - if (extractiveAnswersBuilder_ == null) { - return extractiveAnswers_.get(index); - } else { - return extractiveAnswersBuilder_.getMessage(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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setExtractiveAnswers( - int index, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - value) { - if (extractiveAnswersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtractiveAnswersIsMutable(); - extractiveAnswers_.set(index, value); - onChanged(); - } else { - extractiveAnswersBuilder_.setMessage(index, value); - } - return this; - } + .SearchResultList.SearchResultOrBuilder> + getSearchResultsOrBuilderList() { + if (searchResultsBuilder_ != null) { + return searchResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(searchResults_); + } + } - /** - * - * - *
            -             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder setExtractiveAnswers( - int index, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - .Builder - builderForValue) { - if (extractiveAnswersBuilder_ == null) { - ensureExtractiveAnswersIsMutable(); - extractiveAnswers_.set(index, builderForValue.build()); - onChanged(); - } else { - extractiveAnswersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } + /** + * + * + *
            +         * Search results.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.Builder + addSearchResultsBuilder() { + return internalGetSearchResultsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.getDefaultInstance()); + } - /** - * - * - *
            -             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder addExtractiveAnswers( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - value) { - if (extractiveAnswersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtractiveAnswersIsMutable(); - extractiveAnswers_.add(value); - onChanged(); - } else { - extractiveAnswersBuilder_.addMessage(value); - } - return this; - } + /** + * + * + *
            +         * Search results.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.Builder + addSearchResultsBuilder(int index) { + return internalGetSearchResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.getDefaultInstance()); + } - /** - * - * - *
            -             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder addExtractiveAnswers( - int index, + /** + * + * + *
            +         * Search results.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * + */ + public java.util.List< com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - value) { - if (extractiveAnswersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtractiveAnswersIsMutable(); - extractiveAnswers_.add(index, value); - onChanged(); - } else { - extractiveAnswersBuilder_.addMessage(index, value); - } - return this; - } + .SearchResultList.SearchResult.Builder> + getSearchResultsBuilderList() { + return internalGetSearchResultsFieldBuilder().getBuilderList(); + } - /** - * - * - *
            -             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder addExtractiveAnswers( + private com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - .Builder - builderForValue) { - if (extractiveAnswersBuilder_ == null) { - ensureExtractiveAnswersIsMutable(); - extractiveAnswers_.add(builderForValue.build()); - onChanged(); - } else { - extractiveAnswersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
            -             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder addExtractiveAnswers( - int index, + .SearchResultList.SearchResult, com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - .Builder - builderForValue) { - if (extractiveAnswersBuilder_ == null) { - ensureExtractiveAnswersIsMutable(); - extractiveAnswers_.add(index, builderForValue.build()); - onChanged(); - } else { - extractiveAnswersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } + .SearchResultList.SearchResult.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResultOrBuilder> + internalGetSearchResultsFieldBuilder() { + if (searchResultsBuilder_ == null) { + searchResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResult.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.SearchResultOrBuilder>( + searchResults_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + searchResults_ = null; + } + return searchResultsBuilder_; + } - /** - * - * - *
            -             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder addAllExtractiveAnswers( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveAnswer> - values) { - if (extractiveAnswersBuilder_ == null) { - ensureExtractiveAnswersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, extractiveAnswers_); - onChanged(); - } else { - extractiveAnswersBuilder_.addAllMessages(values); - } - return this; - } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList) + } - /** - * - * - *
            -             * 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.v1beta.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(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - extractiveAnswersBuilder_.clear(); - } - return this; - } + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList(); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - * - * - *
            -             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - public Builder removeExtractiveAnswers(int index) { - if (extractiveAnswersBuilder_ == null) { - ensureExtractiveAnswersIsMutable(); - extractiveAnswers_.remove(index); - onChanged(); - } else { - extractiveAnswersBuilder_.remove(index); + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchResultList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); } - return this; + return builder.buildPartial(); } + }; - /** - * - * - *
            -             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer.Builder - getExtractiveAnswersBuilder(int index) { - return internalGetExtractiveAnswersFieldBuilder().getBuilder(index); - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
            -             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveAnswerOrBuilder - getExtractiveAnswersOrBuilder(int index) { - if (extractiveAnswersBuilder_ == null) { - return extractiveAnswers_.get(index); - } else { - return extractiveAnswersBuilder_.getMessageOrBuilder(index); - } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * - * - *
            -             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveAnswerOrBuilder> - getExtractiveAnswersOrBuilderList() { - if (extractiveAnswersBuilder_ != null) { - return extractiveAnswersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(extractiveAnswers_); - } - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - /** - * - * - *
            -             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer.Builder - addExtractiveAnswersBuilder() { - return internalGetExtractiveAnswersFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - .getDefaultInstance()); - } + private int inputCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object input_; + + public enum InputCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SEARCH_PARAMS(1), + SEARCH_RESULT_LIST(2), + INPUT_NOT_SET(0); + private final int value; + + private InputCase(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 InputCase valueOf(int value) { + return forNumber(value); + } + + public static InputCase forNumber(int value) { + switch (value) { + case 1: + return SEARCH_PARAMS; + case 2: + return SEARCH_RESULT_LIST; + case 0: + return INPUT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public InputCase getInputCase() { + return InputCase.forNumber(inputCase_); + } + + public static final int SEARCH_PARAMS_FIELD_NUMBER = 1; + + /** + * + * + *
            +     * Search parameters.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * + * + * @return Whether the searchParams field is set. + */ + @java.lang.Override + public boolean hasSearchParams() { + return inputCase_ == 1; + } + + /** + * + * + *
            +     * Search parameters.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * + * + * @return The searchParams. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + getSearchParams() { + if (inputCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) + input_; + } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + .getDefaultInstance(); + } + + /** + * + * + *
            +     * Search parameters.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParamsOrBuilder + getSearchParamsOrBuilder() { + if (inputCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) + input_; + } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + .getDefaultInstance(); + } - /** - * - * - *
            -             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer.Builder - addExtractiveAnswersBuilder(int index) { - return internalGetExtractiveAnswersFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - .getDefaultInstance()); - } + public static final int SEARCH_RESULT_LIST_FIELD_NUMBER = 2; - /** - * - * - *
            -             * 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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * - */ - @java.lang.Deprecated - public java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - .Builder> - getExtractiveAnswersBuilderList() { - return internalGetExtractiveAnswersFieldBuilder().getBuilderList(); - } + /** + * + * + *
            +     * Search result list.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * + * + * @return Whether the searchResultList field is set. + */ + @java.lang.Override + public boolean hasSearchResultList() { + return inputCase_ == 2; + } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - .Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveAnswerOrBuilder> - internalGetExtractiveAnswersFieldBuilder() { - if (extractiveAnswersBuilder_ == null) { - extractiveAnswersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveAnswer, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - .Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .ExtractiveAnswerOrBuilder>( - extractiveAnswers_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - extractiveAnswers_ = null; - } - return extractiveAnswersBuilder_; - } + /** + * + * + *
            +     * Search result list.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * + * + * @return The searchResultList. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + getSearchResultList() { + if (inputCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList) + input_; + } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .getDefaultInstance(); + } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo) - } + /** + * + * + *
            +     * Search result list.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultListOrBuilder + getSearchResultListOrBuilder() { + if (inputCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList) + input_; + } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .getDefaultInstance(); + } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo) - private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - DEFAULT_INSTANCE; + private byte memoizedIsInitialized = -1; - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo(); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + memoizedIsInitialized = 1; + return true; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnstructuredDocumentInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (inputCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) + input_); + } + if (inputCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList) + input_); + } + getUnknownFields().writeTo(output); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + size = 0; + if (inputCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) + input_); + } + if (inputCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList) + input_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec) obj; - public interface ChunkInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo) - com.google.protobuf.MessageOrBuilder { + if (!getInputCase().equals(other.getInputCase())) return false; + switch (inputCase_) { + case 1: + if (!getSearchParams().equals(other.getSearchParams())) return false; + break; + case 2: + if (!getSearchResultList().equals(other.getSearchResultList())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - /** - * - * - *
            -           * Chunk resource name.
            -           * 
            - * - * string chunk = 1 [(.google.api.resource_reference) = { ... } - * - * @return The chunk. - */ - java.lang.String getChunk(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (inputCase_) { + case 1: + hash = (37 * hash) + SEARCH_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getSearchParams().hashCode(); + break; + case 2: + hash = (37 * hash) + SEARCH_RESULT_LIST_FIELD_NUMBER; + hash = (53 * hash) + getSearchResultList().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - * - * - *
            -           * Chunk resource name.
            -           * 
            - * - * string chunk = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for chunk. - */ - com.google.protobuf.ByteString getChunkBytes(); + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -           * Chunk textual content.
            -           * 
            - * - * string content = 2; - * - * @return The content. - */ - java.lang.String getContent(); + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -           * Chunk textual content.
            -           * 
            - * - * string content = 2; - * - * @return The bytes for content. - */ - com.google.protobuf.ByteString getContentBytes(); + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -           * Metadata of the document from the current chunk.
            -           * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; - * - * - * @return Whether the documentMetadata field is set. - */ - boolean hasDocumentMetadata(); + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -           * Metadata of the document from the current chunk.
            -           * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; - * - * - * @return The documentMetadata. - */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.ChunkInfo.DocumentMetadata - getDocumentMetadata(); + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -           * Metadata of the document from the current chunk.
            -           * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; - * - */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.ChunkInfo.DocumentMetadataOrBuilder - getDocumentMetadataOrBuilder(); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -         * Chunk information.
            -         * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo} - */ - public static final class ChunkInfo extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo) - ChunkInfoOrBuilder { - private static final long serialVersionUID = 0L; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "ChunkInfo"); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - // Use ChunkInfo.newBuilder() to construct. - private ChunkInfo(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - private ChunkInfo() { - chunk_ = ""; - content_ = ""; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_descriptor; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.Builder.class); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - public interface DocumentMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - * - * - *
            -             * Uri of the document.
            -             * 
            - * - * string uri = 1; - * - * @return The uri. - */ - java.lang.String getUri(); + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
            -             * Uri of the document.
            -             * 
            - * - * string uri = 1; - * - * @return The bytes for uri. - */ - com.google.protobuf.ByteString getUriBytes(); + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * - * - *
            -             * Title of the document.
            -             * 
            - * - * string title = 2; - * - * @return The title. - */ - java.lang.String getTitle(); + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * - * - *
            -             * Title of the document.
            -             * 
            - * - * string title = 2; - * - * @return The bytes for title. - */ - com.google.protobuf.ByteString getTitleBytes(); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.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.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata} - */ - public static final class DocumentMetadata extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) - DocumentMetadataOrBuilder { - private static final long serialVersionUID = 0L; + /** + * + * + *
            +     * Search specification.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_descriptor; + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "DocumentMetadata"); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.Builder + .class); + } - // Use DocumentMetadata.newBuilder() to construct. - private DocumentMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.newBuilder() + private Builder() {} - private DocumentMetadata() { - uri_ = ""; - title_ = ""; - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_descriptor; - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (searchParamsBuilder_ != null) { + searchParamsBuilder_.clear(); + } + if (searchResultListBuilder_ != null) { + searchResultListBuilder_.clear(); + } + inputCase_ = 0; + input_ = null; + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder.class); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_descriptor; + } - public static final int URI_FIELD_NUMBER = 1; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .getDefaultInstance(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object uri_ = ""; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - /** - * - * - *
            -             * 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; - } - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } - /** - * - * - *
            -             * 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; - } - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec result) { + int from_bitField0_ = bitField0_; + } - public static final int TITLE_FIELD_NUMBER = 2; + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec result) { + result.inputCase_ = inputCase_; + result.input_ = this.input_; + if (inputCase_ == 1 && searchParamsBuilder_ != null) { + result.input_ = searchParamsBuilder_.build(); + } + if (inputCase_ == 2 && searchResultListBuilder_ != null) { + result.input_ = searchResultListBuilder_.build(); + } + } - @SuppressWarnings("serial") - private volatile java.lang.Object title_ = ""; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * - * - *
            -             * 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; - } + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .getDefaultInstance()) return this; + switch (other.getInputCase()) { + case SEARCH_PARAMS: + { + mergeSearchParams(other.getSearchParams()); + break; } - - /** - * - * - *
            -             * 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; - } + case SEARCH_RESULT_LIST: + { + mergeSearchResultList(other.getSearchResultList()); + break; + } + case INPUT_NOT_SET: + { + break; } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @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 mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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( + internalGetSearchParamsFieldBuilder().getBuilder(), extensionRegistry); + inputCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetSearchResultListFieldBuilder().getBuilder(), extensionRegistry); + inputCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } - memoizedIsInitialized = 1; - return true; - } + private int inputCase_ = 0; + private java.lang.Object input_; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, title_); - } - getUnknownFields().writeTo(output); - } + public InputCase getInputCase() { + return InputCase.forNumber(inputCase_); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public Builder clearInput() { + inputCase_ = 0; + input_ = null; + onChanged(); + return this; + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, title_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + private int bitField0_; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.ChunkInfo.DocumentMetadata - other = - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) - obj; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + .Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParamsOrBuilder> + searchParamsBuilder_; + + /** + * + * + *
            +       * Search parameters.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * + * + * @return Whether the searchParams field is set. + */ + @java.lang.Override + public boolean hasSearchParams() { + return inputCase_ == 1; + } + + /** + * + * + *
            +       * Search parameters.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * + * + * @return The searchParams. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + getSearchParams() { + if (searchParamsBuilder_ == null) { + if (inputCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams) + input_; + } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + .getDefaultInstance(); + } else { + if (inputCase_ == 1) { + return searchParamsBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + .getDefaultInstance(); + } + } - if (!getUri().equals(other.getUri())) return false; - if (!getTitle().equals(other.getTitle())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + /** + * + * + *
            +       * Search parameters.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * + */ + public Builder setSearchParams( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + value) { + if (searchParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + input_ = value; + onChanged(); + } else { + searchParamsBuilder_.setMessage(value); + } + inputCase_ = 1; + return this; + } - @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; - } + /** + * + * + *
            +       * Search parameters.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * + */ + public Builder setSearchParams( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams.Builder + builderForValue) { + if (searchParamsBuilder_ == null) { + input_ = builderForValue.build(); + onChanged(); + } else { + searchParamsBuilder_.setMessage(builderForValue.build()); + } + inputCase_ = 1; + return this; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +       * Search parameters.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * + */ + public Builder mergeSearchParams( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + value) { + if (searchParamsBuilder_ == null) { + if (inputCase_ == 1 + && input_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams.getDefaultInstance()) { + input_ = + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + .newBuilder( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams) + input_) + .mergeFrom(value) + .buildPartial(); + } else { + input_ = value; + } + onChanged(); + } else { + if (inputCase_ == 1) { + searchParamsBuilder_.mergeFrom(value); + } else { + searchParamsBuilder_.setMessage(value); + } + } + inputCase_ = 1; + return this; + } - public static com.google.cloud.discoveryengine.v1beta.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); - } + /** + * + * + *
            +       * Search parameters.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * + */ + public Builder clearSearchParams() { + if (searchParamsBuilder_ == null) { + if (inputCase_ == 1) { + inputCase_ = 0; + input_ = null; + onChanged(); + } + } else { + if (inputCase_ == 1) { + inputCase_ = 0; + input_ = null; + } + searchParamsBuilder_.clear(); + } + return this; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +       * Search parameters.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + .Builder + getSearchParamsBuilder() { + return internalGetSearchParamsFieldBuilder().getBuilder(); + } - public static com.google.cloud.discoveryengine.v1beta.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); - } + /** + * + * + *
            +       * Search parameters.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParamsOrBuilder + getSearchParamsOrBuilder() { + if ((inputCase_ == 1) && (searchParamsBuilder_ != null)) { + return searchParamsBuilder_.getMessageOrBuilder(); + } else { + if (inputCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams) + input_; + } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + .getDefaultInstance(); + } + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +       * Search parameters.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + .Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParamsOrBuilder> + internalGetSearchParamsFieldBuilder() { + if (searchParamsBuilder_ == null) { + if (!(inputCase_ == 1)) { + input_ = + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + .getDefaultInstance(); + } + searchParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + .Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParamsOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchParams) + input_, + getParentForChildren(), + isClean()); + input_ = null; + } + inputCase_ = 1; + onChanged(); + return searchParamsBuilder_; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultListOrBuilder> + searchResultListBuilder_; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +       * Search result list.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * + * + * @return Whether the searchResultList field is set. + */ + @java.lang.Override + public boolean hasSearchResultList() { + return inputCase_ == 2; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +       * Search result list.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * + * + * @return The searchResultList. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + getSearchResultList() { + if (searchResultListBuilder_ == null) { + if (inputCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList) + input_; + } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.getDefaultInstance(); + } else { + if (inputCase_ == 2) { + return searchResultListBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.getDefaultInstance(); + } + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input); - } + /** + * + * + *
            +       * Search result list.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * + */ + public Builder setSearchResultList( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + value) { + if (searchResultListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + input_ = value; + onChanged(); + } else { + searchResultListBuilder_.setMessage(value); + } + inputCase_ = 2; + return this; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +       * Search result list.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * + */ + public Builder setSearchResultList( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .Builder + builderForValue) { + if (searchResultListBuilder_ == null) { + input_ = builderForValue.build(); + onChanged(); + } else { + searchResultListBuilder_.setMessage(builderForValue.build()); + } + inputCase_ = 2; + return this; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +       * Search result list.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * + */ + public Builder mergeSearchResultList( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + value) { + if (searchResultListBuilder_ == null) { + if (inputCase_ == 2 + && input_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.getDefaultInstance()) { + input_ = + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.newBuilder( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList) + input_) + .mergeFrom(value) + .buildPartial(); + } else { + input_ = value; + } + onChanged(); + } else { + if (inputCase_ == 2) { + searchResultListBuilder_.mergeFrom(value); + } else { + searchResultListBuilder_.setMessage(value); + } + } + inputCase_ = 2; + return this; + } - public static com.google.cloud.discoveryengine.v1beta.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.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +       * Search result list.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * + */ + public Builder clearSearchResultList() { + if (searchResultListBuilder_ == null) { + if (inputCase_ == 2) { + inputCase_ = 0; + input_ = null; + onChanged(); + } + } else { + if (inputCase_ == 2) { + inputCase_ = 0; + input_ = null; + } + searchResultListBuilder_.clear(); + } + return this; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + /** + * + * + *
            +       * Search result list.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .Builder + getSearchResultListBuilder() { + return internalGetSearchResultListFieldBuilder().getBuilder(); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
            +       * Search result list.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultListOrBuilder + getSearchResultListOrBuilder() { + if ((inputCase_ == 2) && (searchResultListBuilder_ != null)) { + return searchResultListBuilder_.getMessageOrBuilder(); + } else { + if (inputCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList) + input_; + } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.getDefaultInstance(); + } + } - public static Builder newBuilder( + /** + * + * + *
            +       * Search result list.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + .Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultListOrBuilder> + internalGetSearchResultListFieldBuilder() { + if (searchResultListBuilder_ == null) { + if (!(inputCase_ == 2)) { + input_ = com.google.cloud.discoveryengine.v1beta.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); - } + .SearchResultList.getDefaultInstance(); + } + searchResultListBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultListOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + .SearchResultList) + input_, + getParentForChildren(), + isClean()); + input_ = null; + } + inputCase_ = 2; + onChanged(); + return searchResultListBuilder_; + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec) + } - /** - * - * - *
            -             * Document metadata contains the information of the document of the
            -             * current chunk.
            -             * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_descriptor; - } + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + DEFAULT_INSTANCE; - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder - .class); - } + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec(); + } - // Construct using - // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.newBuilder() - private Builder() {} + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - uri_ = ""; - title_ = ""; - return this; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata_descriptor; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.getDefaultInstance(); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - build() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + public interface QueryUnderstandingSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - buildPartial() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - result = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + /** + * + * + *
            +     * Query classification specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; + * + * + * @return Whether the queryClassificationSpec field is set. + */ + boolean hasQueryClassificationSpec(); - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.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_; - } - } + /** + * + * + *
            +     * Query classification specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; + * + * + * @return The queryClassificationSpec. + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec + getQueryClassificationSpec(); - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) - other); - } else { - super.mergeFrom(other); - return this; - } - } + /** + * + * + *
            +     * Query classification specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpecOrBuilder + getQueryClassificationSpecOrBuilder(); - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.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; - } + /** + * + * + *
            +     * Query rephraser specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; + * + * + * @return Whether the queryRephraserSpec field is set. + */ + boolean hasQueryRephraserSpec(); - @java.lang.Override - public final boolean isInitialized() { - return true; - } + /** + * + * + *
            +     * Query rephraser specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; + * + * + * @return The queryRephraserSpec. + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec + getQueryRephraserSpec(); - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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; - } + /** + * + * + *
            +     * Query rephraser specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpecOrBuilder + getQueryRephraserSpecOrBuilder(); - private int bitField0_; + /** + * + * + *
            +     * Optional. Whether to disable spell correction.
            +     * The default value is `false`.
            +     * 
            + * + * bool disable_spell_correction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableSpellCorrection. + */ + boolean getDisableSpellCorrection(); + } - private java.lang.Object uri_ = ""; + /** + * + * + *
            +   * Query understanding specification.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec} + */ + public static final class QueryUnderstandingSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec) + QueryUnderstandingSpecOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
            -               * 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; - } - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryUnderstandingSpec"); + } - /** - * - * - *
            -               * 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; - } - } + // Use QueryUnderstandingSpec.newBuilder() to construct. + private QueryUnderstandingSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - /** - * - * - *
            -               * 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; - } + private QueryUnderstandingSpec() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_descriptor; + } - /** - * - * - *
            -               * Uri of the document.
            -               * 
            - * - * string uri = 1; - * - * @return This builder for chaining. - */ - public Builder clearUri() { - uri_ = getDefaultInstance().getUri(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .Builder.class); + } - /** - * - * - *
            -               * 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; - } + public interface QueryClassificationSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec) + com.google.protobuf.MessageOrBuilder { - private java.lang.Object title_ = ""; + /** + * + * + *
            +       * Enabled query classification types.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @return A list containing the types. + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Type> + getTypesList(); - /** - * - * - *
            -               * 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; - } - } + /** + * + * + *
            +       * Enabled query classification types.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @return The count of types. + */ + int getTypesCount(); - /** - * - * - *
            -               * 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; - } - } + /** + * + * + *
            +       * Enabled query classification types.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @param index The index of the element to return. + * @return The types at the given index. + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Type + getTypes(int index); - /** - * - * - *
            -               * 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; - } + /** + * + * + *
            +       * Enabled query classification types.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @return A list containing the enum numeric values on the wire for types. + */ + java.util.List getTypesValueList(); - /** - * - * - *
            -               * Title of the document.
            -               * 
            - * - * string title = 2; - * - * @return This builder for chaining. - */ - public Builder clearTitle() { - title_ = getDefaultInstance().getTitle(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } + /** + * + * + *
            +       * Enabled query classification types.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of types at the given index. + */ + int getTypesValue(int index); + } - /** - * - * - *
            -               * 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; - } + /** + * + * + *
            +     * Query classification specification.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec} + */ + public static final class QueryClassificationSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec) + QueryClassificationSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryClassificationSpec"); + } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) - } + // Use QueryClassificationSpec.newBuilder() to construct. + private QueryClassificationSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata) - private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - DEFAULT_INSTANCE; + private QueryClassificationSpec() { + types_ = emptyIntList(); + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata(); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryClassificationSpec_descriptor; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryClassificationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Builder.class); + } - 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(); - } - }; + /** + * + * + *
            +       * Query classification types.
            +       * 
            + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +         * Unspecified query classification type.
            +         * 
            + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
            +         * Adversarial query classification type.
            +         * 
            + * + * ADVERSARIAL_QUERY = 1; + */ + ADVERSARIAL_QUERY(1), + /** + * + * + *
            +         * Non-answer-seeking query classification type, for chit chat.
            +         * 
            + * + * NON_ANSWER_SEEKING_QUERY = 2; + */ + NON_ANSWER_SEEKING_QUERY(2), + /** + * + * + *
            +         * Jail-breaking query classification type.
            +         * 
            + * + * 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), + /** + * + * + *
            +         * User defined query classification type.
            +         * 
            + * + * USER_DEFINED_CLASSIFICATION_QUERY = 5; + */ + USER_DEFINED_CLASSIFICATION_QUERY(5), + UNRECOGNIZED(-1), + ; - public static com.google.protobuf.Parser parser() { - return PARSER; - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Type"); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * + * + *
            +         * Unspecified query classification type.
            +         * 
            + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + /** + * + * + *
            +         * Adversarial query classification type.
            +         * 
            + * + * ADVERSARIAL_QUERY = 1; + */ + public static final int ADVERSARIAL_QUERY_VALUE = 1; - private int bitField0_; - public static final int CHUNK_FIELD_NUMBER = 1; + /** + * + * + *
            +         * Non-answer-seeking query classification type, for chit chat.
            +         * 
            + * + * NON_ANSWER_SEEKING_QUERY = 2; + */ + public static final int NON_ANSWER_SEEKING_QUERY_VALUE = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object chunk_ = ""; + /** + * + * + *
            +         * Jail-breaking query classification type.
            +         * 
            + * + * JAIL_BREAKING_QUERY = 3; + */ + public static final int JAIL_BREAKING_QUERY_VALUE = 3; - /** - * - * - *
            -           * 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; - } + /** + * + * + *
            +         * 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; + + /** + * + * + *
            +         * User defined query classification type.
            +         * 
            + * + * USER_DEFINED_CLASSIFICATION_QUERY = 5; + */ + public static final int USER_DEFINED_CLASSIFICATION_QUERY_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Type valueOf(int value) { + return forNumber(value); + } - /** - * - * - *
            -           * 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; - } + /** + * @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 ADVERSARIAL_QUERY; + case 2: + return NON_ANSWER_SEEKING_QUERY; + case 3: + return JAIL_BREAKING_QUERY; + case 4: + return NON_ANSWER_SEEKING_QUERY_V2; + case 5: + return USER_DEFINED_CLASSIFICATION_QUERY; + default: + return null; } + } - public static final int CONTENT_FIELD_NUMBER = 2; + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } - @SuppressWarnings("serial") - private volatile java.lang.Object content_ = ""; + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Type findValueByNumber(int number) { + return Type.forNumber(number); + } + }; - /** - * - * - *
            -           * 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; - } + 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()); + } - /** - * - * - *
            -           * 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - public static final int DOCUMENT_METADATA_FIELD_NUMBER = 4; - private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - documentMetadata_; + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.getDescriptor() + .getEnumTypes() + .get(0); + } - /** - * - * - *
            -           * Metadata of the document from the current chunk.
            -           * 
            - * - * - * .google.cloud.discoveryengine.v1beta.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); - } + private static final Type[] VALUES = values(); - /** - * - * - *
            -           * Metadata of the document from the current chunk.
            -           * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; - * - * - * @return The documentMetadata. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - getDocumentMetadata() { - return documentMetadata_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.getDefaultInstance() - : documentMetadata_; + 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."); } - - /** - * - * - *
            -           * Metadata of the document from the current chunk.
            -           * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadataOrBuilder - getDocumentMetadataOrBuilder() { - return documentMetadata_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.getDefaultInstance() - : documentMetadata_; + if (desc.getIndex() == -1) { + return UNRECOGNIZED; } + return VALUES[desc.getIndex()]; + } - private byte memoizedIsInitialized = -1; + private final int value; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private Type(int value) { + this.value = value; + } - memoizedIsInitialized = 1; - return true; - } + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type) + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(chunk_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, chunk_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, content_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getDocumentMetadata()); - } - getUnknownFields().writeTo(output); - } + public static final int TYPES_FIELD_NUMBER = 1; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList types_ = emptyIntList(); - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(chunk_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, chunk_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, content_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, getDocumentMetadata()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Type> + types_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Type>() { + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec.Type + convert(int from) { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Type + result = + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec.Type.forNumber(from); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec.Type.UNRECOGNIZED + : result; + } + }; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.ChunkInfo - other = - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo) - obj; + /** + * + * + *
            +       * Enabled query classification types.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @return A list containing the types. + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Type> + getTypesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Type>(types_, types_converter_); + } - 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; - } + /** + * + * + *
            +       * Enabled query classification types.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @return The count of types. + */ + @java.lang.Override + public int getTypesCount() { + return types_.size(); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CHUNK_FIELD_NUMBER; - 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; - } + /** + * + * + *
            +       * Enabled query classification types.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @param index The index of the element to return. + * @return The types at the given index. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Type + getTypes(int index) { + return types_converter_.convert(types_.getInt(index)); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +       * Enabled query classification types.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @return A list containing the enum numeric values on the wire for types. + */ + @java.lang.Override + public java.util.List getTypesValueList() { + return types_; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +       * Enabled query classification types.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of types at the given index. + */ + @java.lang.Override + public int getTypesValue(int index) { + return types_.getInt(index); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private int typesMemoizedSerializedSize; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private byte memoizedIsInitialized = -1; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + memoizedIsInitialized = 1; + return true; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (getTypesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(typesMemoizedSerializedSize); + } + for (int i = 0; i < types_.size(); i++) { + output.writeEnumNoTag(types_.getInt(i)); + } + getUnknownFields().writeTo(output); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input); + size = 0; + { + int dataSize = 0; + for (int i = 0; i < types_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(types_.getInt(i)); } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + size += dataSize; + if (!getTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); } + typesMemoizedSerializedSize = 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.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec + other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec) + obj; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + if (!types_.equals(other.types_)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getTypesCount() > 0) { + hash = (37 * hash) + TYPES_FIELD_NUMBER; + hash = (53 * hash) + types_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.ChunkInfo - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -           * Chunk information.
            -           * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo) - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.ChunkInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_descriptor; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.Builder.class); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - // Construct using - // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetDocumentMetadataFieldBuilder(); - } - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - chunk_ = ""; - content_ = ""; - documentMetadata_ = null; - if (documentMetadataBuilder_ != null) { - documentMetadataBuilder_.dispose(); - documentMetadataBuilder_ = null; - } - return this; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_descriptor; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.getDefaultInstance(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - build() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.ChunkInfo - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - buildPartial() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.ChunkInfo - result = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.chunk_ = chunk_; - } - 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 + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo) - other); - } else { - super.mergeFrom(other); - return this; - } - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.getDefaultInstance()) return this; - if (!other.getChunk().isEmpty()) { - chunk_ = other.chunk_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getContent().isEmpty()) { - content_ = other.content_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasDocumentMetadata()) { - mergeDocumentMetadata(other.getDocumentMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + /** + * + * + *
            +       * Query classification specification.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryClassificationSpec_descriptor; + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryClassificationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.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: - { - chunk_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - content_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 34: - { - input.readMessage( - internalGetDocumentMetadataFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - 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; - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.newBuilder() + private Builder() {} - private int bitField0_; + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - private java.lang.Object chunk_ = ""; + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + types_ = emptyIntList(); + return this; + } - /** - * - * - *
            -             * Chunk resource name.
            -             * 
            - * - * string chunk = 1 [(.google.api.resource_reference) = { ... } - * - * @return The chunk. - */ - public java.lang.String getChunk() { - java.lang.Object ref = chunk_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - chunk_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryClassificationSpec_descriptor; + } - /** - * - * - *
            -             * Chunk resource name.
            -             * 
            - * - * string chunk = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for chunk. - */ - public com.google.protobuf.ByteString getChunkBytes() { - java.lang.Object ref = chunk_; - if (ref instanceof 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; - } - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec + build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec + result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - /** - * - * - *
            -             * Chunk resource name.
            -             * 
            - * - * string chunk = 1 [(.google.api.resource_reference) = { ... } - * - * @param value The chunk to set. - * @return This builder for chaining. - */ - public Builder setChunk(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - chunk_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + types_.makeImmutable(); + result.types_ = types_; + } + } - /** - * - * - *
            -             * Chunk resource name.
            -             * 
            - * - * string chunk = 1 [(.google.api.resource_reference) = { ... } - * - * @return This builder for chaining. - */ - public Builder clearChunk() { - chunk_ = getDefaultInstance().getChunk(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * - * - *
            -             * Chunk resource name.
            -             * 
            - * - * string chunk = 1 [(.google.api.resource_reference) = { ... } - * - * @param value The bytes for chunk to set. - * @return This builder for chaining. - */ - public Builder setChunkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - chunk_ = value; + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.getDefaultInstance()) return this; + if (!other.types_.isEmpty()) { + if (types_.isEmpty()) { + types_ = other.types_; + types_.makeImmutable(); bitField0_ |= 0x00000001; - onChanged(); - return this; + } else { + ensureTypesIsMutable(); + types_.addAll(other.types_); } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - private java.lang.Object content_ = ""; + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * - * - *
            -             * Chunk textual content.
            -             * 
            - * - * string content = 2; - * - * @return The content. - */ - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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 tmpRaw = input.readEnum(); + ensureTypesIsMutable(); + types_.addInt(tmpRaw); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureTypesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + types_.addInt(input.readEnum()); + } + input.popLimit(limit); + 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; + } - /** - * - * - *
            -             * Chunk textual content.
            -             * 
            - * - * string content = 2; - * - * @return The bytes for content. - */ - public com.google.protobuf.ByteString getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof 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; - } - } + private int bitField0_; - /** - * - * - *
            -             * Chunk textual content.
            -             * 
            - * - * string content = 2; - * - * @param value The content to set. - * @return This builder for chaining. - */ - public Builder setContent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + private com.google.protobuf.Internal.IntList types_ = emptyIntList(); + + private void ensureTypesIsMutable() { + if (!types_.isModifiable()) { + types_ = makeMutableCopy(types_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
            +         * Enabled query classification types.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @return A list containing the types. + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Type> + getTypesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Type>(types_, types_converter_); + } - /** - * - * - *
            -             * Chunk textual content.
            -             * 
            - * - * string content = 2; - * - * @return This builder for chaining. - */ - public Builder clearContent() { - content_ = getDefaultInstance().getContent(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } + /** + * + * + *
            +         * Enabled query classification types.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @return The count of types. + */ + public int getTypesCount() { + return types_.size(); + } - /** - * - * - *
            -             * Chunk textual content.
            -             * 
            - * - * string content = 2; - * - * @param value The bytes for content to set. - * @return This builder for chaining. - */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - content_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + /** + * + * + *
            +         * Enabled query classification types.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @param index The index of the element to return. + * @return The types at the given index. + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Type + getTypes(int index) { + return types_converter_.convert(types_.getInt(index)); + } - private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - documentMetadata_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadataOrBuilder> - documentMetadataBuilder_; + /** + * + * + *
            +         * Enabled query classification types.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @param index The index to set the value at. + * @param value The types to set. + * @return This builder for chaining. + */ + public Builder setTypes( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Type + value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypesIsMutable(); + types_.setInt(index, value.getNumber()); + onChanged(); + return this; + } - /** - * - * - *
            -             * Metadata of the document from the current chunk.
            -             * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; - * - * - * @return Whether the documentMetadata field is set. - */ - public boolean hasDocumentMetadata() { - return ((bitField0_ & 0x00000004) != 0); - } + /** + * + * + *
            +         * Enabled query classification types.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @param value The types to add. + * @return This builder for chaining. + */ + public Builder addTypes( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Type + value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTypesIsMutable(); + types_.addInt(value.getNumber()); + onChanged(); + return this; + } - /** - * - * - *
            -             * Metadata of the document from the current chunk.
            -             * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; - * - * - * @return The documentMetadata. - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - getDocumentMetadata() { - if (documentMetadataBuilder_ == null) { - return documentMetadata_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - .getDefaultInstance() - : documentMetadata_; - } else { - return documentMetadataBuilder_.getMessage(); - } - } + /** + * + * + *
            +         * Enabled query classification types.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @param values The types to add. + * @return This builder for chaining. + */ + public Builder addAllTypes( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec.Type> + values) { + ensureTypesIsMutable(); + for (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Type + value : values) { + types_.addInt(value.getNumber()); + } + onChanged(); + return this; + } - /** - * - * - *
            -             * Metadata of the document from the current chunk.
            -             * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; - * - */ - public Builder setDocumentMetadata( - com.google.cloud.discoveryengine.v1beta.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; - } + /** + * + * + *
            +         * Enabled query classification types.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearTypes() { + types_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - /** - * - * - *
            -             * Metadata of the document from the current chunk.
            -             * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; - * - */ - public Builder setDocumentMetadata( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder - builderForValue) { - if (documentMetadataBuilder_ == null) { - documentMetadata_ = builderForValue.build(); - } else { - documentMetadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } + /** + * + * + *
            +         * Enabled query classification types.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @return A list containing the enum numeric values on the wire for types. + */ + public java.util.List getTypesValueList() { + types_.makeImmutable(); + return types_; + } - /** - * - * - *
            -             * Metadata of the document from the current chunk.
            -             * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; - * - */ - public Builder mergeDocumentMetadata( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - value) { - if (documentMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && documentMetadata_ != null - && documentMetadata_ - != com.google.cloud.discoveryengine.v1beta.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; - } + /** + * + * + *
            +         * Enabled query classification types.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of types at the given index. + */ + public int getTypesValue(int index) { + return types_.getInt(index); + } - /** - * - * - *
            -             * Metadata of the document from the current chunk.
            -             * 
            - * - * - * .google.cloud.discoveryengine.v1beta.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; - } + /** + * + * + *
            +         * Enabled query classification types.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for types to set. + * @return This builder for chaining. + */ + public Builder setTypesValue(int index, int value) { + ensureTypesIsMutable(); + types_.setInt(index, value); + onChanged(); + return this; + } - /** - * - * - *
            -             * Metadata of the document from the current chunk.
            -             * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; - * - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder - getDocumentMetadataBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetDocumentMetadataFieldBuilder().getBuilder(); - } + /** + * + * + *
            +         * Enabled query classification types.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @param value The enum numeric value on the wire for types to add. + * @return This builder for chaining. + */ + public Builder addTypesValue(int value) { + ensureTypesIsMutable(); + types_.addInt(value); + onChanged(); + return this; + } - /** - * - * - *
            -             * Metadata of the document from the current chunk.
            -             * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; - * - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadataOrBuilder - getDocumentMetadataOrBuilder() { - if (documentMetadataBuilder_ != null) { - return documentMetadataBuilder_.getMessageOrBuilder(); - } else { - return documentMetadata_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - .getDefaultInstance() - : documentMetadata_; - } - } + /** + * + * + *
            +         * Enabled query classification types.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * + * + * @param values The enum numeric values on the wire for types to add. + * @return This builder for chaining. + */ + public Builder addAllTypesValue(java.lang.Iterable values) { + ensureTypesIsMutable(); + for (int value : values) { + types_.addInt(value); + } + onChanged(); + return this; + } - /** - * - * - *
            -             * Metadata of the document from the current chunk.
            -             * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadataOrBuilder> - internalGetDocumentMetadataFieldBuilder() { - if (documentMetadataBuilder_ == null) { - documentMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadata.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.DocumentMetadataOrBuilder>( - getDocumentMetadata(), getParentForChildren(), isClean()); - documentMetadata_ = null; + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryClassificationSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); } - return documentMetadataBuilder_; + return builder.buildPartial(); } + }; - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo) - } - - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo) - private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - DEFAULT_INSTANCE; + public static com.google.protobuf.Parser parser() { + return PARSER; + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChunkInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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 interface QueryRephraserSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec) + com.google.protobuf.MessageOrBuilder { - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * + * + *
            +       * Disable query rephraser.
            +       * 
            + * + * bool disable = 1; + * + * @return The disable. + */ + boolean getDisable(); - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * + * + *
            +       * Max rephrase steps.
            +       * The max number is 5 steps.
            +       * If not set or set to < 1, it will be set to 1 by default.
            +       * 
            + * + * int32 max_rephrase_steps = 2; + * + * @return The maxRephraseSteps. + */ + int getMaxRephraseSteps(); - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + /** + * + * + *
            +       * Optional. Query Rephraser Model specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec model_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSpec field is set. + */ + boolean hasModelSpec(); - private int contentCase_ = 0; + /** + * + * + *
            +       * Optional. Query Rephraser Model specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec model_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSpec. + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec + getModelSpec(); - @SuppressWarnings("serial") - private java.lang.Object content_; + /** + * + * + *
            +       * Optional. Query Rephraser Model specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec model_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpecOrBuilder + getModelSpecOrBuilder(); + } - public enum ContentCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - UNSTRUCTURED_DOCUMENT_INFO(1), - CHUNK_INFO(2), - CONTENT_NOT_SET(0); - private final int value; + /** + * + * + *
            +     * Query rephraser specification.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec} + */ + public static final class QueryRephraserSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec) + QueryRephraserSpecOrBuilder { + private static final long serialVersionUID = 0L; - private ContentCase(int value) { - this.value = value; - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryRephraserSpec"); + } - /** - * @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 ContentCase valueOf(int value) { - return forNumber(value); - } + // Use QueryRephraserSpec.newBuilder() to construct. + private QueryRephraserSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - public static ContentCase forNumber(int value) { - switch (value) { - case 1: - return UNSTRUCTURED_DOCUMENT_INFO; - case 2: - return CHUNK_INFO; - case 0: - return CONTENT_NOT_SET; - default: - return null; - } - } + private QueryRephraserSpec() {} - public int getNumber() { - return this.value; - } - }; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_descriptor; + } - public ContentCase getContentCase() { - return ContentCase.forNumber(contentCase_); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.Builder.class); + } - public static final int UNSTRUCTURED_DOCUMENT_INFO_FIELD_NUMBER = 1; + public interface ModelSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec) + com.google.protobuf.MessageOrBuilder { /** * * *
            -         * Unstructured document information.
            +         * Optional. Enabled query rephraser model type. If not set, it will use
            +         * LARGE by default.
                      * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType model_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the unstructuredDocumentInfo field is set. + * @return The enum numeric value on the wire for modelType. */ - @java.lang.Override - public boolean hasUnstructuredDocumentInfo() { - return contentCase_ == 1; - } + int getModelTypeValue(); /** * * *
            -         * Unstructured document information.
            +         * Optional. Enabled query rephraser model type. If not set, it will use
            +         * LARGE by default.
                      * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType model_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The unstructuredDocumentInfo. + * @return The modelType. */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.ModelType + getModelType(); + } + + /** + * + * + *
            +       * Query Rephraser Model specification.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec} + */ + public static final class ModelSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec) + ModelSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ModelSpec"); + } + + // Use ModelSpec.newBuilder() to construct. + private ModelSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ModelSpec() { + modelType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_ModelSpec_descriptor; + } + @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - getUnstructuredDocumentInfo() { - if (contentCase_ == 1) { - return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo) - content_; - } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.getDefaultInstance(); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_ModelSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.Builder.class); } /** * * *
            -         * Unstructured document information.
            +         * Query rephraser types. Currently only supports single-hop
            +         * (max_rephrase_steps = 1) model selections. For multi-hop
            +         * (max_rephrase_steps > 1), there is only one default model.
                      * 
            * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; - * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType} */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfoOrBuilder - getUnstructuredDocumentInfoOrBuilder() { - if (contentCase_ == 1) { - return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo) - content_; + public enum ModelType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +           * Unspecified model type.
            +           * 
            + * + * MODEL_TYPE_UNSPECIFIED = 0; + */ + MODEL_TYPE_UNSPECIFIED(0), + /** + * + * + *
            +           * Small query rephraser model. Gemini 1.0 XS model.
            +           * 
            + * + * SMALL = 1; + */ + SMALL(1), + /** + * + * + *
            +           * Large query rephraser model. Gemini 1.0 Pro model.
            +           * 
            + * + * LARGE = 2; + */ + LARGE(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ModelType"); } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.getDefaultInstance(); - } - public static final int CHUNK_INFO_FIELD_NUMBER = 2; + /** + * + * + *
            +           * Unspecified model type.
            +           * 
            + * + * MODEL_TYPE_UNSPECIFIED = 0; + */ + public static final int MODEL_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
            -         * Chunk information.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; - * - * - * @return Whether the chunkInfo field is set. - */ - @java.lang.Override - public boolean hasChunkInfo() { - return contentCase_ == 2; + /** + * + * + *
            +           * Small query rephraser model. Gemini 1.0 XS model.
            +           * 
            + * + * SMALL = 1; + */ + public static final int SMALL_VALUE = 1; + + /** + * + * + *
            +           * Large query rephraser model. Gemini 1.0 Pro model.
            +           * 
            + * + * LARGE = 2; + */ + public static final int LARGE_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 ModelType 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 ModelType forNumber(int value) { + switch (value) { + case 0: + return MODEL_TYPE_UNSPECIFIED; + case 1: + return SMALL; + case 2: + return LARGE; + 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 ModelType findValueByNumber(int number) { + return ModelType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ModelType[] VALUES = values(); + + public static ModelType 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 ModelType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType) } + public static final int MODEL_TYPE_FIELD_NUMBER = 1; + private int modelType_ = 0; + /** * * *
            -         * Chunk information.
            +         * Optional. Enabled query rephraser model type. If not set, it will use
            +         * LARGE by default.
                      * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType model_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The chunkInfo. + * @return The enum numeric value on the wire for modelType. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - getChunkInfo() { - if (contentCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo) - content_; - } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.getDefaultInstance(); + public int getModelTypeValue() { + return modelType_; } /** * * *
            -         * Chunk information.
            +         * Optional. Enabled query rephraser model type. If not set, it will use
            +         * LARGE by default.
                      * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType model_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The modelType. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfoOrBuilder - getChunkInfoOrBuilder() { - if (contentCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo) - content_; - } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.ModelType + getModelType() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.ModelType + result = + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.ModelType.forNumber(modelType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.ModelType.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; @@ -17742,44 +26092,26 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (contentCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo) - content_); - } - if (contentCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo) - content_); + if (modelType_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.ModelType.MODEL_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, modelType_); } getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (contentCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo) - content_); - } - if (contentCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo) - content_); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (modelType_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.ModelType.MODEL_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, modelType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -17793,29 +26125,18 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult)) { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec other = - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult) + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec) obj; - if (!getContentCase().equals(other.getContentCase())) return false; - switch (contentCase_) { - case 1: - if (!getUnstructuredDocumentInfo().equals(other.getUnstructuredDocumentInfo())) - return false; - break; - case 2: - if (!getChunkInfo().equals(other.getChunkInfo())) return false; - break; - case 0: - default: - } + if (modelType_ != other.modelType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -17827,32 +26148,22 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - switch (contentCase_) { - case 1: - hash = (37 * hash) + UNSTRUCTURED_DOCUMENT_INFO_FIELD_NUMBER; - hash = (53 * hash) + getUnstructuredDocumentInfo().hashCode(); - break; - case 2: - hash = (37 * hash) + CHUNK_INFO_FIELD_NUMBER; - hash = (53 * hash) + getChunkInfo().hashCode(); - break; - case 0: - default: - } + hash = (37 * hash) + MODEL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + modelType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -17860,15 +26171,15 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -17876,788 +26187,314 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
            -         * Search result.
            -         * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult) - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.Builder.class); - } - - // Construct using - // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (unstructuredDocumentInfoBuilder_ != null) { - unstructuredDocumentInfoBuilder_.clear(); - } - if (chunkInfoBuilder_ != null) { - chunkInfoBuilder_.clear(); - } - contentCase_ = 0; - content_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_descriptor; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult - build() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult - buildPartial() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult - result = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult - result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult - result) { - result.contentCase_ = contentCase_; - result.content_ = this.content_; - if (contentCase_ == 1 && unstructuredDocumentInfoBuilder_ != null) { - result.content_ = unstructuredDocumentInfoBuilder_.build(); - } - if (contentCase_ == 2 && chunkInfoBuilder_ != null) { - result.content_ = chunkInfoBuilder_.build(); - } - } + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult) - other); - } else { - super.mergeFrom(other); - return this; - } - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.getDefaultInstance()) return this; - switch (other.getContentCase()) { - case UNSTRUCTURED_DOCUMENT_INFO: - { - mergeUnstructuredDocumentInfo(other.getUnstructuredDocumentInfo()); - break; - } - case CHUNK_INFO: - { - mergeChunkInfo(other.getChunkInfo()); - break; - } - case CONTENT_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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( - internalGetUnstructuredDocumentInfoFieldBuilder().getBuilder(), - extensionRegistry); - contentCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetChunkInfoFieldBuilder().getBuilder(), extensionRegistry); - contentCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - private int contentCase_ = 0; - private java.lang.Object content_; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public ContentCase getContentCase() { - return ContentCase.forNumber(contentCase_); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public Builder clearContent() { - contentCase_ = 0; - content_ = null; - onChanged(); - return this; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - private int bitField0_; + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfoOrBuilder> - unstructuredDocumentInfoBuilder_; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
            -           * Unstructured document information.
            -           * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; - * - * - * @return Whether the unstructuredDocumentInfo field is set. - */ - @java.lang.Override - public boolean hasUnstructuredDocumentInfo() { - return contentCase_ == 1; - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * - * - *
            -           * Unstructured document information.
            -           * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; - * - * - * @return The unstructuredDocumentInfo. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - getUnstructuredDocumentInfo() { - if (unstructuredDocumentInfoBuilder_ == null) { - if (contentCase_ == 1) { - return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo) - content_; - } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.getDefaultInstance(); - } else { - if (contentCase_ == 1) { - return unstructuredDocumentInfoBuilder_.getMessage(); - } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.getDefaultInstance(); - } - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * - * - *
            -           * Unstructured document information.
            -           * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; - * - */ - public Builder setUnstructuredDocumentInfo( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.UnstructuredDocumentInfo - value) { - if (unstructuredDocumentInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - onChanged(); - } else { - unstructuredDocumentInfoBuilder_.setMessage(value); - } - contentCase_ = 1; - return this; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +         * Query Rephraser Model specification.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_ModelSpec_descriptor; } - /** - * - * - *
            -           * Unstructured document information.
            -           * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; - * - */ - public Builder setUnstructuredDocumentInfo( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.UnstructuredDocumentInfo.Builder - builderForValue) { - if (unstructuredDocumentInfoBuilder_ == null) { - content_ = builderForValue.build(); - onChanged(); - } else { - unstructuredDocumentInfoBuilder_.setMessage(builderForValue.build()); - } - contentCase_ = 1; - return this; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_ModelSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.Builder.class); } - /** - * - * - *
            -           * Unstructured document information.
            -           * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; - * - */ - public Builder mergeUnstructuredDocumentInfo( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.UnstructuredDocumentInfo - value) { - if (unstructuredDocumentInfoBuilder_ == null) { - if (contentCase_ == 1 - && content_ - != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .getDefaultInstance()) { - content_ = - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.newBuilder( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo) - content_) - .mergeFrom(value) - .buildPartial(); - } else { - content_ = value; - } - onChanged(); - } else { - if (contentCase_ == 1) { - unstructuredDocumentInfoBuilder_.mergeFrom(value); - } else { - unstructuredDocumentInfoBuilder_.setMessage(value); - } - } - contentCase_ = 1; - return this; + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); } - /** - * - * - *
            -           * Unstructured document information.
            -           * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; - * - */ - public Builder clearUnstructuredDocumentInfo() { - if (unstructuredDocumentInfoBuilder_ == null) { - if (contentCase_ == 1) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - } else { - if (contentCase_ == 1) { - contentCase_ = 0; - content_ = null; - } - unstructuredDocumentInfoBuilder_.clear(); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modelType_ = 0; return this; } - /** - * - * - *
            -           * Unstructured document information.
            -           * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.Builder - getUnstructuredDocumentInfoBuilder() { - return internalGetUnstructuredDocumentInfoFieldBuilder().getBuilder(); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_ModelSpec_descriptor; } - /** - * - * - *
            -           * Unstructured document information.
            -           * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; - * - */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfoOrBuilder - getUnstructuredDocumentInfoOrBuilder() { - if ((contentCase_ == 1) && (unstructuredDocumentInfoBuilder_ != null)) { - return unstructuredDocumentInfoBuilder_.getMessageOrBuilder(); - } else { - if (contentCase_ == 1) { - return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo) - content_; - } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.getDefaultInstance(); - } + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.getDefaultInstance(); } - /** - * - * - *
            -           * Unstructured document information.
            -           * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfoOrBuilder> - internalGetUnstructuredDocumentInfoFieldBuilder() { - if (unstructuredDocumentInfoBuilder_ == null) { - if (!(contentCase_ == 1)) { - content_ = - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo - .getDefaultInstance(); - } - unstructuredDocumentInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfoOrBuilder>( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.UnstructuredDocumentInfo) - content_, - getParentForChildren(), - isClean()); - content_ = null; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec + build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - contentCase_ = 1; - onChanged(); - return unstructuredDocumentInfoBuilder_; + return result; } - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfoOrBuilder> - chunkInfoBuilder_; - - /** - * - * - *
            -           * Chunk information.
            -           * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; - * - * - * @return Whether the chunkInfo field is set. - */ @java.lang.Override - public boolean hasChunkInfo() { - return contentCase_ == 2; + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec + result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelType_ = modelType_; + } } - /** - * - * - *
            -           * Chunk information.
            -           * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; - * - * - * @return The chunkInfo. - */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo - getChunkInfo() { - if (chunkInfoBuilder_ == null) { - if (contentCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo) - content_; - } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.getDefaultInstance(); + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec) + other); } else { - if (contentCase_ == 2) { - return chunkInfoBuilder_.getMessage(); - } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.getDefaultInstance(); + super.mergeFrom(other); + return this; } } - /** - * - * - *
            -           * Chunk information.
            -           * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; - * - */ - public Builder setChunkInfo( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.ChunkInfo - value) { - if (chunkInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - content_ = value; - onChanged(); - } else { - chunkInfoBuilder_.setMessage(value); + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.getDefaultInstance()) return this; + if (other.modelType_ != 0) { + setModelTypeValue(other.getModelTypeValue()); } - contentCase_ = 2; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } - /** - * - * - *
            -           * Chunk information.
            -           * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; - * - */ - public Builder setChunkInfo( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.ChunkInfo.Builder - builderForValue) { - if (chunkInfoBuilder_ == null) { - content_ = builderForValue.build(); - onChanged(); - } else { - chunkInfoBuilder_.setMessage(builderForValue.build()); + @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(); } - contentCase_ = 2; + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + modelType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally return this; } + private int bitField0_; + + private int modelType_ = 0; + /** * * *
            -           * Chunk information.
            +           * Optional. Enabled query rephraser model type. If not set, it will use
            +           * LARGE by default.
                        * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType model_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The enum numeric value on the wire for modelType. */ - public Builder mergeChunkInfo( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.ChunkInfo - value) { - if (chunkInfoBuilder_ == null) { - if (contentCase_ == 2 - && content_ - != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.getDefaultInstance()) { - content_ = - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.newBuilder( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo) - content_) - .mergeFrom(value) - .buildPartial(); - } else { - content_ = value; - } - onChanged(); - } else { - if (contentCase_ == 2) { - chunkInfoBuilder_.mergeFrom(value); - } else { - chunkInfoBuilder_.setMessage(value); - } - } - contentCase_ = 2; - return this; + @java.lang.Override + public int getModelTypeValue() { + return modelType_; } /** * * *
            -           * Chunk information.
            +           * Optional. Enabled query rephraser model type. If not set, it will use
            +           * LARGE by default.
                        * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType model_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The enum numeric value on the wire for modelType to set. + * @return This builder for chaining. */ - public Builder clearChunkInfo() { - if (chunkInfoBuilder_ == null) { - if (contentCase_ == 2) { - contentCase_ = 0; - content_ = null; - onChanged(); - } - } else { - if (contentCase_ == 2) { - contentCase_ = 0; - content_ = null; - } - chunkInfoBuilder_.clear(); - } + public Builder setModelTypeValue(int value) { + modelType_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } @@ -18665,116 +26502,105 @@ public Builder clearChunkInfo() { * * *
            -           * Chunk information.
            +           * Optional. Enabled query rephraser model type. If not set, it will use
            +           * LARGE by default.
                        * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType model_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The modelType. */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.Builder - getChunkInfoBuilder() { - return internalGetChunkInfoFieldBuilder().getBuilder(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.ModelType + getModelType() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.ModelType + result = + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType.forNumber( + modelType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.ModelType.UNRECOGNIZED + : result; } /** * * *
            -           * Chunk information.
            +           * Optional. Enabled query rephraser model type. If not set, it will use
            +           * LARGE by default.
                        * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType model_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The modelType to set. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfoOrBuilder - getChunkInfoOrBuilder() { - if ((contentCase_ == 2) && (chunkInfoBuilder_ != null)) { - return chunkInfoBuilder_.getMessageOrBuilder(); - } else { - if (contentCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo) - content_; - } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.getDefaultInstance(); + public Builder setModelType( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.ModelType + value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000001; + modelType_ = value.getNumber(); + onChanged(); + return this; } /** * * *
            -           * Chunk information.
            +           * Optional. Enabled query rephraser model type. If not set, it will use
            +           * LARGE by default.
                        * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelType model_type = 1 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfoOrBuilder> - internalGetChunkInfoFieldBuilder() { - if (chunkInfoBuilder_ == null) { - if (!(contentCase_ == 2)) { - content_ = - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.getDefaultInstance(); - } - chunkInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfoOrBuilder>( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.ChunkInfo) - content_, - getParentForChildren(), - isClean()); - content_ = null; - } - contentCase_ = 2; + public Builder clearModelType() { + bitField0_ = (bitField0_ & ~0x00000001); + modelType_ = 0; onChanged(); - return chunkInfoBuilder_; + return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult) - private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult(); + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec(); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec 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 SearchResult parsePartialFrom( + public ModelSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -18794,120 +26620,129 @@ public SearchResult 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.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - - public static final int SEARCH_RESULTS_FIELD_NUMBER = 1; + } - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult> - searchResults_; + private int bitField0_; + public static final int DISABLE_FIELD_NUMBER = 1; + private boolean disable_ = false; /** * * *
            -       * Search results.
            +       * Disable query rephraser.
                    * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; - * + * bool disable = 1; + * + * @return The disable. */ @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult> - getSearchResultsList() { - return searchResults_; + public boolean getDisable() { + return disable_; } + public static final int MAX_REPHRASE_STEPS_FIELD_NUMBER = 2; + private int maxRephraseSteps_ = 0; + /** * * *
            -       * Search results.
            +       * Max rephrase steps.
            +       * The max number is 5 steps.
            +       * If not set or set to < 1, it will be set to 1 by default.
                    * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; - * + * int32 max_rephrase_steps = 2; + * + * @return The maxRephraseSteps. */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResultOrBuilder> - getSearchResultsOrBuilderList() { - return searchResults_; + public int getMaxRephraseSteps() { + return maxRephraseSteps_; } + public static final int MODEL_SPEC_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec + modelSpec_; + /** * * *
            -       * Search results.
            +       * Optional. Query Rephraser Model specification.
                    * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec model_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the modelSpec field is set. */ @java.lang.Override - public int getSearchResultsCount() { - return searchResults_.size(); + public boolean hasModelSpec() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
            -       * Search results.
            +       * Optional. Query Rephraser Model specification.
                    * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec model_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The modelSpec. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult - getSearchResults(int index) { - return searchResults_.get(index); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec + getModelSpec() { + return modelSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.getDefaultInstance() + : modelSpec_; } /** * * *
            -       * Search results.
            +       * Optional. Query Rephraser Model specification.
                    * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec model_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResultOrBuilder - getSearchResultsOrBuilder(int index) { - return searchResults_.get(index); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpecOrBuilder + getModelSpecOrBuilder() { + return modelSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.getDefaultInstance() + : modelSpec_; } private byte memoizedIsInitialized = -1; @@ -18924,8 +26759,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < searchResults_.size(); i++) { - output.writeMessage(1, searchResults_.get(i)); + if (disable_ != false) { + output.writeBool(1, disable_); + } + if (maxRephraseSteps_ != 0) { + output.writeInt32(2, maxRephraseSteps_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getModelSpec()); } getUnknownFields().writeTo(output); } @@ -18936,9 +26777,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (int i = 0; i < searchResults_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, searchResults_.get(i)); + if (disable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disable_); + } + if (maxRephraseSteps_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxRephraseSteps_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getModelSpec()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -18952,17 +26798,23 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList)) { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec other = - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList) + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec) obj; - if (!getSearchResultsList().equals(other.getSearchResultsList())) return false; + if (getDisable() != other.getDisable()) return false; + if (getMaxRephraseSteps() != other.getMaxRephraseSteps()) return false; + if (hasModelSpec() != other.hasModelSpec()) return false; + if (hasModelSpec()) { + if (!getModelSpec().equals(other.getModelSpec())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -18974,39 +26826,43 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getSearchResultsCount() > 0) { - hash = (37 * hash) + SEARCH_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + getSearchResultsList().hashCode(); + hash = (37 * hash) + DISABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisable()); + hash = (37 * hash) + MAX_REPHRASE_STEPS_FIELD_NUMBER; + hash = (53 * hash) + getMaxRephraseSteps(); + if (hasModelSpec()) { + hash = (37 * hash) + MODEL_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getModelSpec().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec 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.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -19014,27 +26870,27 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -19043,14 +26899,14 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -19059,14 +26915,14 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -19085,7 +26941,8 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -19106,76 +26963,86 @@ protected Builder newBuilderForType( * * *
            -       * Search result list.
            +       * Query rephraser specification.
                    * 
            * * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList} + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList) - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultListOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.Builder.class); + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.Builder.class); } // Construct using - // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.newBuilder() - private Builder() {} + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetModelSpecFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - if (searchResultsBuilder_ == null) { - searchResults_ = java.util.Collections.emptyList(); - } else { - searchResults_ = null; - searchResultsBuilder_.clear(); + disable_ = false; + maxRephraseSteps_ = 0; + modelSpec_ = null; + if (modelSpecBuilder_ != null) { + modelSpecBuilder_.dispose(); + modelSpecBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_SearchResultList_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec build() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -19184,50 +27051,49 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec buildPartial() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - result = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - result) { - if (searchResultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - searchResults_ = java.util.Collections.unmodifiableList(searchResults_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.searchResults_ = searchResults_; - } else { - result.searchResults_ = searchResultsBuilder_.build(); + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec + result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; } private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disable_ = disable_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxRephraseSteps_ = maxRephraseSteps_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.modelSpec_ = modelSpecBuilder_ == null ? modelSpec_ : modelSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList) { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec) { return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList) + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec) other); } else { super.mergeFrom(other); @@ -19236,37 +27102,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec other) { if (other - == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.getDefaultInstance()) return this; - if (searchResultsBuilder_ == null) { - if (!other.searchResults_.isEmpty()) { - if (searchResults_.isEmpty()) { - searchResults_ = other.searchResults_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSearchResultsIsMutable(); - searchResults_.addAll(other.searchResults_); - } - onChanged(); - } - } else { - if (!other.searchResults_.isEmpty()) { - if (searchResultsBuilder_.isEmpty()) { - searchResultsBuilder_.dispose(); - searchResultsBuilder_ = null; - searchResults_ = other.searchResults_; - bitField0_ = (bitField0_ & ~0x00000001); - searchResultsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetSearchResultsFieldBuilder() - : null; - } else { - searchResultsBuilder_.addAllMessages(other.searchResults_); - } - } + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.getDefaultInstance()) return this; + if (other.getDisable() != false) { + setDisable(other.getDisable()); + } + if (other.getMaxRephraseSteps() != 0) { + setMaxRephraseSteps(other.getMaxRephraseSteps()); + } + if (other.hasModelSpec()) { + mergeModelSpec(other.getModelSpec()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -19294,23 +27143,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: + case 8: { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult - m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .SearchSpec.SearchResultList.SearchResult.parser(), - extensionRegistry); - if (searchResultsBuilder_ == null) { - ensureSearchResultsIsMutable(); - searchResults_.add(m); - } else { - searchResultsBuilder_.addMessage(m); - } + disable_ = input.readBool(); + bitField0_ |= 0x00000001; break; - } // case 10 + } // case 8 + case 16: + { + maxRephraseSteps_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + internalGetModelSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -19330,226 +27181,101 @@ public Builder mergeFrom( private int bitField0_; - private java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult> - searchResults_ = java.util.Collections.emptyList(); - - private void ensureSearchResultsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - searchResults_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult>(searchResults_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResultOrBuilder> - searchResultsBuilder_; + private boolean disable_; /** * * *
            -         * Search results.
            +         * Disable query rephraser.
                      * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; - * - */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult> - getSearchResultsList() { - if (searchResultsBuilder_ == null) { - return java.util.Collections.unmodifiableList(searchResults_); - } else { - return searchResultsBuilder_.getMessageList(); - } - } - - /** - * - * - *
            -         * Search results.
            -         * 
            + * bool disable = 1; * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; - * + * @return The disable. */ - public int getSearchResultsCount() { - if (searchResultsBuilder_ == null) { - return searchResults_.size(); - } else { - return searchResultsBuilder_.getCount(); - } + @java.lang.Override + public boolean getDisable() { + return disable_; } /** * * *
            -         * Search results.
            +         * Disable query rephraser.
                      * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult - getSearchResults(int index) { - if (searchResultsBuilder_ == null) { - return searchResults_.get(index); - } else { - return searchResultsBuilder_.getMessage(index); - } - } - - /** - * - * - *
            -         * Search results.
            -         * 
            + * bool disable = 1; * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; - * + * @param value The disable to set. + * @return This builder for chaining. */ - public Builder setSearchResults( - int index, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult - value) { - if (searchResultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSearchResultsIsMutable(); - searchResults_.set(index, value); - onChanged(); - } else { - searchResultsBuilder_.setMessage(index, value); - } - return this; - } + public Builder setDisable(boolean value) { - /** - * - * - *
            -         * Search results.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; - * - */ - public Builder setSearchResults( - int index, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.Builder - builderForValue) { - if (searchResultsBuilder_ == null) { - ensureSearchResultsIsMutable(); - searchResults_.set(index, builderForValue.build()); - onChanged(); - } else { - searchResultsBuilder_.setMessage(index, builderForValue.build()); - } + disable_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } /** * - * - *
            -         * Search results.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; - * - */ - public Builder addSearchResults( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult - value) { - if (searchResultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSearchResultsIsMutable(); - searchResults_.add(value); - onChanged(); - } else { - searchResultsBuilder_.addMessage(value); - } + * + *
            +         * Disable query rephraser.
            +         * 
            + * + * bool disable = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisable() { + bitField0_ = (bitField0_ & ~0x00000001); + disable_ = false; + onChanged(); return this; } + private int maxRephraseSteps_; + /** * * *
            -         * Search results.
            +         * Max rephrase steps.
            +         * The max number is 5 steps.
            +         * If not set or set to < 1, it will be set to 1 by default.
                      * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; - * + * int32 max_rephrase_steps = 2; + * + * @return The maxRephraseSteps. */ - public Builder addSearchResults( - int index, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult - value) { - if (searchResultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSearchResultsIsMutable(); - searchResults_.add(index, value); - onChanged(); - } else { - searchResultsBuilder_.addMessage(index, value); - } - return this; + @java.lang.Override + public int getMaxRephraseSteps() { + return maxRephraseSteps_; } /** * * *
            -         * Search results.
            +         * Max rephrase steps.
            +         * The max number is 5 steps.
            +         * If not set or set to < 1, it will be set to 1 by default.
                      * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; - * + * int32 max_rephrase_steps = 2; + * + * @param value The maxRephraseSteps to set. + * @return This builder for chaining. */ - public Builder addSearchResults( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.Builder - builderForValue) { - if (searchResultsBuilder_ == null) { - ensureSearchResultsIsMutable(); - searchResults_.add(builderForValue.build()); - onChanged(); - } else { - searchResultsBuilder_.addMessage(builderForValue.build()); - } + public Builder setMaxRephraseSteps(int value) { + + maxRephraseSteps_ = value; + bitField0_ |= 0x00000002; + onChanged(); return this; } @@ -19557,96 +27283,102 @@ public Builder addSearchResults( * * *
            -         * Search results.
            +         * Max rephrase steps.
            +         * The max number is 5 steps.
            +         * If not set or set to < 1, it will be set to 1 by default.
                      * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; - * + * int32 max_rephrase_steps = 2; + * + * @return This builder for chaining. */ - public Builder addSearchResults( - int index, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .SearchResult.Builder - builderForValue) { - if (searchResultsBuilder_ == null) { - ensureSearchResultsIsMutable(); - searchResults_.add(index, builderForValue.build()); - onChanged(); - } else { - searchResultsBuilder_.addMessage(index, builderForValue.build()); - } + public Builder clearMaxRephraseSteps() { + bitField0_ = (bitField0_ & ~0x00000002); + maxRephraseSteps_ = 0; + onChanged(); return this; } + private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec + modelSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpecOrBuilder> + modelSpecBuilder_; + /** * * *
            -         * Search results.
            +         * Optional. Query Rephraser Model specification.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec model_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the modelSpec field is set. */ - public Builder addAllSearchResults( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult> - values) { - if (searchResultsBuilder_ == null) { - ensureSearchResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, searchResults_); - onChanged(); - } else { - searchResultsBuilder_.addAllMessages(values); - } - return this; + public boolean hasModelSpec() { + return ((bitField0_ & 0x00000004) != 0); } /** * * *
            -         * Search results.
            +         * Optional. Query Rephraser Model specification.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec model_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The modelSpec. */ - public Builder clearSearchResults() { - if (searchResultsBuilder_ == null) { - searchResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec + getModelSpec() { + if (modelSpecBuilder_ == null) { + return modelSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.getDefaultInstance() + : modelSpec_; } else { - searchResultsBuilder_.clear(); + return modelSpecBuilder_.getMessage(); } - return this; } /** * * *
            -         * Search results.
            +         * Optional. Query Rephraser Model specification.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec model_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder removeSearchResults(int index) { - if (searchResultsBuilder_ == null) { - ensureSearchResultsIsMutable(); - searchResults_.remove(index); - onChanged(); + public Builder setModelSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec + value) { + if (modelSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelSpec_ = value; } else { - searchResultsBuilder_.remove(index); + modelSpecBuilder_.setMessage(value); } + bitField0_ |= 0x00000004; + onChanged(); return this; } @@ -19654,172 +27386,185 @@ public Builder removeSearchResults(int index) { * * *
            -         * Search results.
            +         * Optional. Query Rephraser Model specification.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec model_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.Builder - getSearchResultsBuilder(int index) { - return internalGetSearchResultsFieldBuilder().getBuilder(index); + public Builder setModelSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.Builder + builderForValue) { + if (modelSpecBuilder_ == null) { + modelSpec_ = builderForValue.build(); + } else { + modelSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; } /** * * *
            -         * Search results.
            +         * Optional. Query Rephraser Model specification.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec model_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResultOrBuilder - getSearchResultsOrBuilder(int index) { - if (searchResultsBuilder_ == null) { - return searchResults_.get(index); + public Builder mergeModelSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec + value) { + if (modelSpecBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && modelSpec_ != null + && modelSpec_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.getDefaultInstance()) { + getModelSpecBuilder().mergeFrom(value); + } else { + modelSpec_ = value; + } } else { - return searchResultsBuilder_.getMessageOrBuilder(index); + modelSpecBuilder_.mergeFrom(value); + } + if (modelSpec_ != null) { + bitField0_ |= 0x00000004; + onChanged(); } + return this; } /** * * *
            -         * Search results.
            +         * Optional. Query Rephraser Model specification.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec model_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResultOrBuilder> - getSearchResultsOrBuilderList() { - if (searchResultsBuilder_ != null) { - return searchResultsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(searchResults_); + public Builder clearModelSpec() { + bitField0_ = (bitField0_ & ~0x00000004); + modelSpec_ = null; + if (modelSpecBuilder_ != null) { + modelSpecBuilder_.dispose(); + modelSpecBuilder_ = null; } + onChanged(); + return this; } /** * * *
            -         * Search results.
            +         * Optional. Query Rephraser Model specification.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec model_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.Builder - addSearchResultsBuilder() { - return internalGetSearchResultsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.Builder + getModelSpecBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetModelSpecFieldBuilder().getBuilder(); } /** * * *
            -         * Search results.
            +         * Optional. Query Rephraser Model specification.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec model_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.Builder - addSearchResultsBuilder(int index) { - return internalGetSearchResultsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpecOrBuilder + getModelSpecOrBuilder() { + if (modelSpecBuilder_ != null) { + return modelSpecBuilder_.getMessageOrBuilder(); + } else { + return modelSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.getDefaultInstance() + : modelSpec_; + } } /** * * *
            -         * Search results.
            +         * Optional. Query Rephraser Model specification.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec model_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; * */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.Builder> - getSearchResultsBuilderList() { - return internalGetSearchResultsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResultOrBuilder> - internalGetSearchResultsFieldBuilder() { - if (searchResultsBuilder_ == null) { - searchResultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResult.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.SearchResultOrBuilder>( - searchResults_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - searchResults_ = null; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.ModelSpecOrBuilder> + internalGetModelSpecFieldBuilder() { + if (modelSpecBuilder_ == null) { + modelSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.ModelSpecOrBuilder>( + getModelSpec(), getParentForChildren(), isClean()); + modelSpec_ = null; } - return searchResultsBuilder_; + return modelSpecBuilder_; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList) - private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList(); + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec(); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec 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 SearchResultList parsePartialFrom( + public QueryRephraserSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -19839,206 +27584,176 @@ public SearchResultList 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.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - private int inputCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object input_; - - public enum InputCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - SEARCH_PARAMS(1), - SEARCH_RESULT_LIST(2), - INPUT_NOT_SET(0); - private final int value; - - private InputCase(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 InputCase valueOf(int value) { - return forNumber(value); - } - - public static InputCase forNumber(int value) { - switch (value) { - case 1: - return SEARCH_PARAMS; - case 2: - return SEARCH_RESULT_LIST; - case 0: - return INPUT_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public InputCase getInputCase() { - return InputCase.forNumber(inputCase_); - } - - public static final int SEARCH_PARAMS_FIELD_NUMBER = 1; + private int bitField0_; + public static final int QUERY_CLASSIFICATION_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec + queryClassificationSpec_; /** * * *
            -     * Search parameters.
            +     * Query classification specification.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; * * - * @return Whether the searchParams field is set. + * @return Whether the queryClassificationSpec field is set. */ @java.lang.Override - public boolean hasSearchParams() { - return inputCase_ == 1; + public boolean hasQueryClassificationSpec() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
            -     * Search parameters.
            +     * Query classification specification.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; * * - * @return The searchParams. + * @return The queryClassificationSpec. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - getSearchParams() { - if (inputCase_ == 1) { - return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) - input_; - } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec + getQueryClassificationSpec() { + return queryClassificationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.getDefaultInstance() + : queryClassificationSpec_; } /** * * *
            -     * Search parameters.
            +     * Query classification specification.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; * */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParamsOrBuilder - getSearchParamsOrBuilder() { - if (inputCase_ == 1) { - return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) - input_; - } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpecOrBuilder + getQueryClassificationSpecOrBuilder() { + return queryClassificationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.getDefaultInstance() + : queryClassificationSpec_; } - public static final int SEARCH_RESULT_LIST_FIELD_NUMBER = 2; + public static final int QUERY_REPHRASER_SPEC_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec + queryRephraserSpec_; /** * * *
            -     * Search result list.
            +     * Query rephraser specification.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; * * - * @return Whether the searchResultList field is set. + * @return Whether the queryRephraserSpec field is set. */ @java.lang.Override - public boolean hasSearchResultList() { - return inputCase_ == 2; + public boolean hasQueryRephraserSpec() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
            -     * Search result list.
            +     * Query rephraser specification.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; * * - * @return The searchResultList. + * @return The queryRephraserSpec. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - getSearchResultList() { - if (inputCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList) - input_; - } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec + getQueryRephraserSpec() { + return queryRephraserSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.getDefaultInstance() + : queryRephraserSpec_; } /** * * *
            -     * Search result list.
            +     * Query rephraser specification.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; * */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultListOrBuilder - getSearchResultListOrBuilder() { - if (inputCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList) - input_; - } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpecOrBuilder + getQueryRephraserSpecOrBuilder() { + return queryRephraserSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.getDefaultInstance() + : queryRephraserSpec_; + } + + public static final int DISABLE_SPELL_CORRECTION_FIELD_NUMBER = 3; + private boolean disableSpellCorrection_ = false; + + /** + * + * + *
            +     * Optional. Whether to disable spell correction.
            +     * The default value is `false`.
            +     * 
            + * + * bool disable_spell_correction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableSpellCorrection. + */ + @java.lang.Override + public boolean getDisableSpellCorrection() { + return disableSpellCorrection_; } private byte memoizedIsInitialized = -1; @@ -20055,17 +27770,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (inputCase_ == 1) { - output.writeMessage( - 1, - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) - input_); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getQueryClassificationSpec()); } - if (inputCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList) - input_); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getQueryRephraserSpec()); + } + if (disableSpellCorrection_ != false) { + output.writeBool(3, disableSpellCorrection_); } getUnknownFields().writeTo(output); } @@ -20076,20 +27788,17 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (inputCase_ == 1) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams) - input_); + 1, getQueryClassificationSpec()); } - if (inputCase_ == 2) { + if (((bitField0_ & 0x00000002) != 0)) { size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList) - input_); + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQueryRephraserSpec()); + } + if (disableSpellCorrection_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, disableSpellCorrection_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -20101,23 +27810,23 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec)) { + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec other = - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec) obj; + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec) obj; - if (!getInputCase().equals(other.getInputCase())) return false; - switch (inputCase_) { - case 1: - if (!getSearchParams().equals(other.getSearchParams())) return false; - break; - case 2: - if (!getSearchResultList().equals(other.getSearchResultList())) return false; - break; - case 0: - default: + if (hasQueryClassificationSpec() != other.hasQueryClassificationSpec()) return false; + if (hasQueryClassificationSpec()) { + if (!getQueryClassificationSpec().equals(other.getQueryClassificationSpec())) return false; } + if (hasQueryRephraserSpec() != other.hasQueryRephraserSpec()) return false; + if (hasQueryRephraserSpec()) { + if (!getQueryRephraserSpec().equals(other.getQueryRephraserSpec())) return false; + } + if (getDisableSpellCorrection() != other.getDisableSpellCorrection()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -20129,76 +27838,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - switch (inputCase_) { - case 1: - hash = (37 * hash) + SEARCH_PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getSearchParams().hashCode(); - break; - case 2: - hash = (37 * hash) + SEARCH_RESULT_LIST_FIELD_NUMBER; - hash = (53 * hash) + getSearchResultList().hashCode(); - break; - case 0: - default: + if (hasQueryClassificationSpec()) { + hash = (37 * hash) + QUERY_CLASSIFICATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getQueryClassificationSpec().hashCode(); + } + if (hasQueryRephraserSpec()) { + hash = (37 * hash) + QUERY_REPHRASER_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getQueryRephraserSpec().hashCode(); } + hash = (37 * hash) + DISABLE_SPELL_CORRECTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableSpellCorrection()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + 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.v1beta.AnswerQueryRequest.SearchSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + parseFrom( + 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.v1beta.AnswerQueryRequest.SearchSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -20206,15 +27917,16 @@ public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchS PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -20229,7 +27941,8 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec prototype) { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -20248,70 +27961,86 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
            -     * Search specification.
            +     * Query understanding specification.
                  * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec} + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec) - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpecOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.Builder - .class); + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .Builder.class); } // Construct using - // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.newBuilder() - private Builder() {} + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetQueryClassificationSpecFieldBuilder(); + internalGetQueryRephraserSpecFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - if (searchParamsBuilder_ != null) { - searchParamsBuilder_.clear(); + queryClassificationSpec_ = null; + if (queryClassificationSpecBuilder_ != null) { + queryClassificationSpecBuilder_.dispose(); + queryClassificationSpecBuilder_ = null; } - if (searchResultListBuilder_ != null) { - searchResultListBuilder_.clear(); + queryRephraserSpec_ = null; + if (queryRephraserSpecBuilder_ != null) { + queryRephraserSpecBuilder_.dispose(); + queryRephraserSpecBuilder_ = null; } - inputCase_ = 0; - input_ = null; + disableSpellCorrection_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec build() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec result = + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -20320,40 +28049,51 @@ public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec bui } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec buildPartial() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec result = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec(this); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec( + this); if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec result) { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + result) { int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec result) { - result.inputCase_ = inputCase_; - result.input_ = this.input_; - if (inputCase_ == 1 && searchParamsBuilder_ != null) { - result.input_ = searchParamsBuilder_.build(); + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.queryClassificationSpec_ = + queryClassificationSpecBuilder_ == null + ? queryClassificationSpec_ + : queryClassificationSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; } - if (inputCase_ == 2 && searchResultListBuilder_ != null) { - result.input_ = searchResultListBuilder_.build(); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryRephraserSpec_ = + queryRephraserSpecBuilder_ == null + ? queryRephraserSpec_ + : queryRephraserSpecBuilder_.build(); + to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.disableSpellCorrection_ = disableSpellCorrection_; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other - instanceof com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec) { + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec) { return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec) other); + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec) + other); } else { super.mergeFrom(other); return this; @@ -20361,25 +28101,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec other) { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec other) { if (other - == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec .getDefaultInstance()) return this; - switch (other.getInputCase()) { - case SEARCH_PARAMS: - { - mergeSearchParams(other.getSearchParams()); - break; - } - case SEARCH_RESULT_LIST: - { - mergeSearchResultList(other.getSearchResultList()); - break; - } - case INPUT_NOT_SET: - { - break; - } + if (other.hasQueryClassificationSpec()) { + mergeQueryClassificationSpec(other.getQueryClassificationSpec()); + } + if (other.hasQueryRephraserSpec()) { + mergeQueryRephraserSpec(other.getQueryRephraserSpec()); + } + if (other.getDisableSpellCorrection() != false) { + setDisableSpellCorrection(other.getDisableSpellCorrection()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -20410,17 +28143,24 @@ public Builder mergeFrom( case 10: { input.readMessage( - internalGetSearchParamsFieldBuilder().getBuilder(), extensionRegistry); - inputCase_ = 1; + internalGetQueryClassificationSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( - internalGetSearchResultListFieldBuilder().getBuilder(), extensionRegistry); - inputCase_ = 2; + internalGetQueryRephraserSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; break; } // case 18 + case 24: + { + disableSpellCorrection_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -20438,78 +28178,60 @@ public Builder mergeFrom( return this; } - private int inputCase_ = 0; - private java.lang.Object input_; - - public InputCase getInputCase() { - return InputCase.forNumber(inputCase_); - } - - public Builder clearInput() { - inputCase_ = 0; - input_ = null; - onChanged(); - return this; - } - private int bitField0_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - .Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParamsOrBuilder> - searchParamsBuilder_; + private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec + queryClassificationSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpecOrBuilder> + queryClassificationSpecBuilder_; /** * * *
            -       * Search parameters.
            +       * Query classification specification.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; * * - * @return Whether the searchParams field is set. + * @return Whether the queryClassificationSpec field is set. */ - @java.lang.Override - public boolean hasSearchParams() { - return inputCase_ == 1; + public boolean hasQueryClassificationSpec() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
            -       * Search parameters.
            +       * Query classification specification.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; * * - * @return The searchParams. + * @return The queryClassificationSpec. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - getSearchParams() { - if (searchParamsBuilder_ == null) { - if (inputCase_ == 1) { - return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams) - input_; - } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - .getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec + getQueryClassificationSpec() { + if (queryClassificationSpecBuilder_ == null) { + return queryClassificationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.getDefaultInstance() + : queryClassificationSpec_; } else { - if (inputCase_ == 1) { - return searchParamsBuilder_.getMessage(); - } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - .getDefaultInstance(); + return queryClassificationSpecBuilder_.getMessage(); } } @@ -20517,26 +28239,27 @@ public boolean hasSearchParams() { * * *
            -       * Search parameters.
            +       * Query classification specification.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; * */ - public Builder setSearchParams( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + public Builder setQueryClassificationSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec value) { - if (searchParamsBuilder_ == null) { + if (queryClassificationSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - input_ = value; - onChanged(); + queryClassificationSpec_ = value; } else { - searchParamsBuilder_.setMessage(value); + queryClassificationSpecBuilder_.setMessage(value); } - inputCase_ = 1; + bitField0_ |= 0x00000001; + onChanged(); return this; } @@ -20544,23 +28267,24 @@ public Builder setSearchParams( * * *
            -       * Search parameters.
            +       * Query classification specification.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; * */ - public Builder setSearchParams( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams.Builder + public Builder setQueryClassificationSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Builder builderForValue) { - if (searchParamsBuilder_ == null) { - input_ = builderForValue.build(); - onChanged(); + if (queryClassificationSpecBuilder_ == null) { + queryClassificationSpec_ = builderForValue.build(); } else { - searchParamsBuilder_.setMessage(builderForValue.build()); + queryClassificationSpecBuilder_.setMessage(builderForValue.build()); } - inputCase_ = 1; + bitField0_ |= 0x00000001; + onChanged(); return this; } @@ -20568,41 +28292,34 @@ public Builder setSearchParams( * * *
            -       * Search parameters.
            +       * Query classification specification.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; * */ - public Builder mergeSearchParams( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams + public Builder mergeQueryClassificationSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec value) { - if (searchParamsBuilder_ == null) { - if (inputCase_ == 1 - && input_ - != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams.getDefaultInstance()) { - input_ = - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - .newBuilder( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams) - input_) - .mergeFrom(value) - .buildPartial(); + if (queryClassificationSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && queryClassificationSpec_ != null + && queryClassificationSpec_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryClassificationSpec.getDefaultInstance()) { + getQueryClassificationSpecBuilder().mergeFrom(value); } else { - input_ = value; + queryClassificationSpec_ = value; } - onChanged(); } else { - if (inputCase_ == 1) { - searchParamsBuilder_.mergeFrom(value); - } else { - searchParamsBuilder_.setMessage(value); - } + queryClassificationSpecBuilder_.mergeFrom(value); + } + if (queryClassificationSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); } - inputCase_ = 1; return this; } @@ -20610,27 +28327,21 @@ public Builder mergeSearchParams( * * *
            -       * Search parameters.
            +       * Query classification specification.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; * */ - public Builder clearSearchParams() { - if (searchParamsBuilder_ == null) { - if (inputCase_ == 1) { - inputCase_ = 0; - input_ = null; - onChanged(); - } - } else { - if (inputCase_ == 1) { - inputCase_ = 0; - input_ = null; - } - searchParamsBuilder_.clear(); + public Builder clearQueryClassificationSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + queryClassificationSpec_ = null; + if (queryClassificationSpecBuilder_ != null) { + queryClassificationSpecBuilder_.dispose(); + queryClassificationSpecBuilder_ = null; } + onChanged(); return this; } @@ -20638,44 +28349,131 @@ public Builder clearSearchParams() { * * *
            -       * Search parameters.
            +       * Query classification specification.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; * */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - .Builder - getSearchParamsBuilder() { - return internalGetSearchParamsFieldBuilder().getBuilder(); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Builder + getQueryClassificationSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetQueryClassificationSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Query classification specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpecOrBuilder + getQueryClassificationSpecOrBuilder() { + if (queryClassificationSpecBuilder_ != null) { + return queryClassificationSpecBuilder_.getMessageOrBuilder(); + } else { + return queryClassificationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.getDefaultInstance() + : queryClassificationSpec_; + } + } + + /** + * + * + *
            +       * Query classification specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpecOrBuilder> + internalGetQueryClassificationSpecFieldBuilder() { + if (queryClassificationSpecBuilder_ == null) { + queryClassificationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryClassificationSpecOrBuilder>( + getQueryClassificationSpec(), getParentForChildren(), isClean()); + queryClassificationSpec_ = null; + } + return queryClassificationSpecBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec + queryRephraserSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpecOrBuilder> + queryRephraserSpecBuilder_; + + /** + * + * + *
            +       * Query rephraser specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; + * + * + * @return Whether the queryRephraserSpec field is set. + */ + public boolean hasQueryRephraserSpec() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
            -       * Search parameters.
            +       * Query rephraser specification.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; * + * + * @return The queryRephraserSpec. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParamsOrBuilder - getSearchParamsOrBuilder() { - if ((inputCase_ == 1) && (searchParamsBuilder_ != null)) { - return searchParamsBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec + getQueryRephraserSpec() { + if (queryRephraserSpecBuilder_ == null) { + return queryRephraserSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.getDefaultInstance() + : queryRephraserSpec_; } else { - if (inputCase_ == 1) { - return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams) - input_; - } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - .getDefaultInstance(); + return queryRephraserSpecBuilder_.getMessage(); } } @@ -20683,130 +28481,109 @@ public Builder clearSearchParams() { * * *
            -       * Search parameters.
            +       * Query rephraser specification.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - .Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParamsOrBuilder> - internalGetSearchParamsFieldBuilder() { - if (searchParamsBuilder_ == null) { - if (!(inputCase_ == 1)) { - input_ = - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - .getDefaultInstance(); + public Builder setQueryRephraserSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec + value) { + if (queryRephraserSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - searchParamsBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParams - .Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParamsOrBuilder>( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchParams) - input_, - getParentForChildren(), - isClean()); - input_ = null; + queryRephraserSpec_ = value; + } else { + queryRephraserSpecBuilder_.setMessage(value); } - inputCase_ = 1; + bitField0_ |= 0x00000002; onChanged(); - return searchParamsBuilder_; + return this; } - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultListOrBuilder> - searchResultListBuilder_; - /** * * *
            -       * Search result list.
            +       * Query rephraser specification.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; * - * - * @return Whether the searchResultList field is set. */ - @java.lang.Override - public boolean hasSearchResultList() { - return inputCase_ == 2; + public Builder setQueryRephraserSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.Builder + builderForValue) { + if (queryRephraserSpecBuilder_ == null) { + queryRephraserSpec_ = builderForValue.build(); + } else { + queryRephraserSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; } /** * * *
            -       * Search result list.
            +       * Query rephraser specification.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; * - * - * @return The searchResultList. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - getSearchResultList() { - if (searchResultListBuilder_ == null) { - if (inputCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList) - input_; + public Builder mergeQueryRephraserSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec + value) { + if (queryRephraserSpecBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && queryRephraserSpec_ != null + && queryRephraserSpec_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec.QueryRephraserSpec.getDefaultInstance()) { + getQueryRephraserSpecBuilder().mergeFrom(value); + } else { + queryRephraserSpec_ = value; } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.getDefaultInstance(); } else { - if (inputCase_ == 2) { - return searchResultListBuilder_.getMessage(); - } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.getDefaultInstance(); + queryRephraserSpecBuilder_.mergeFrom(value); + } + if (queryRephraserSpec_ != null) { + bitField0_ |= 0x00000002; + onChanged(); } + return this; } /** * * *
            -       * Search result list.
            +       * Query rephraser specification.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; * */ - public Builder setSearchResultList( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - value) { - if (searchResultListBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - input_ = value; - onChanged(); - } else { - searchResultListBuilder_.setMessage(value); + public Builder clearQueryRephraserSpec() { + bitField0_ = (bitField0_ & ~0x00000002); + queryRephraserSpec_ = null; + if (queryRephraserSpecBuilder_ != null) { + queryRephraserSpecBuilder_.dispose(); + queryRephraserSpecBuilder_ = null; } - inputCase_ = 2; + onChanged(); return this; } @@ -20814,208 +28591,160 @@ public Builder setSearchResultList( * * *
            -       * Search result list.
            +       * Query rephraser specification.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; * */ - public Builder setSearchResultList( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .Builder - builderForValue) { - if (searchResultListBuilder_ == null) { - input_ = builderForValue.build(); - onChanged(); - } else { - searchResultListBuilder_.setMessage(builderForValue.build()); - } - inputCase_ = 2; - return this; + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.Builder + getQueryRephraserSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetQueryRephraserSpecFieldBuilder().getBuilder(); } /** * * *
            -       * Search result list.
            +       * Query rephraser specification.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; * */ - public Builder mergeSearchResultList( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - value) { - if (searchResultListBuilder_ == null) { - if (inputCase_ == 2 - && input_ - != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.getDefaultInstance()) { - input_ = - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.newBuilder( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList) - input_) - .mergeFrom(value) - .buildPartial(); - } else { - input_ = value; - } - onChanged(); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpecOrBuilder + getQueryRephraserSpecOrBuilder() { + if (queryRephraserSpecBuilder_ != null) { + return queryRephraserSpecBuilder_.getMessageOrBuilder(); } else { - if (inputCase_ == 2) { - searchResultListBuilder_.mergeFrom(value); - } else { - searchResultListBuilder_.setMessage(value); - } + return queryRephraserSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.getDefaultInstance() + : queryRephraserSpec_; } - inputCase_ = 2; - return this; } /** * * *
            -       * Search result list.
            +       * Query rephraser specification.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; * */ - public Builder clearSearchResultList() { - if (searchResultListBuilder_ == null) { - if (inputCase_ == 2) { - inputCase_ = 0; - input_ = null; - onChanged(); - } - } else { - if (inputCase_ == 2) { - inputCase_ = 0; - input_ = null; - } - searchResultListBuilder_.clear(); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpecOrBuilder> + internalGetQueryRephraserSpecFieldBuilder() { + if (queryRephraserSpecBuilder_ == null) { + queryRephraserSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + .QueryRephraserSpecOrBuilder>( + getQueryRephraserSpec(), getParentForChildren(), isClean()); + queryRephraserSpec_ = null; } - return this; + return queryRephraserSpecBuilder_; } + private boolean disableSpellCorrection_; + /** * * *
            -       * Search result list.
            +       * Optional. Whether to disable spell correction.
            +       * The default value is `false`.
                    * 
            * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; - * + * bool disable_spell_correction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableSpellCorrection. */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .Builder - getSearchResultListBuilder() { - return internalGetSearchResultListFieldBuilder().getBuilder(); + @java.lang.Override + public boolean getDisableSpellCorrection() { + return disableSpellCorrection_; } /** * * *
            -       * Search result list.
            +       * Optional. Whether to disable spell correction.
            +       * The default value is `false`.
                    * 
            * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; - * + * bool disable_spell_correction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disableSpellCorrection to set. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultListOrBuilder - getSearchResultListOrBuilder() { - if ((inputCase_ == 2) && (searchResultListBuilder_ != null)) { - return searchResultListBuilder_.getMessageOrBuilder(); - } else { - if (inputCase_ == 2) { - return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList) - input_; - } - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.getDefaultInstance(); - } + public Builder setDisableSpellCorrection(boolean value) { + + disableSpellCorrection_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } /** * * *
            -       * Search result list.
            +       * Optional. Whether to disable spell correction.
            +       * The default value is `false`.
                    * 
            * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; - * + * bool disable_spell_correction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList - .Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultListOrBuilder> - internalGetSearchResultListFieldBuilder() { - if (searchResultListBuilder_ == null) { - if (!(inputCase_ == 2)) { - input_ = - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.getDefaultInstance(); - } - searchResultListBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultListOrBuilder>( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec - .SearchResultList) - input_, - getParentForChildren(), - isClean()); - input_ = null; - } - inputCase_ = 2; + public Builder clearDisableSpellCorrection() { + bitField0_ = (bitField0_ & ~0x00000004); + disableSpellCorrection_ = false; onChanged(); - return searchResultListBuilder_; + return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec) - private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .QueryUnderstandingSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec(); + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec(); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec 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 SearchSpec parsePartialFrom( + public QueryUnderstandingSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -21035,136 +28764,114 @@ public SearchSpec 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.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface QueryUnderstandingSpecOrBuilder + public interface EndUserSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec) com.google.protobuf.MessageOrBuilder { /** * * *
            -     * Query classification specification.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; - * - * - * @return Whether the queryClassificationSpec field is set. - */ - boolean hasQueryClassificationSpec(); - - /** - * - * - *
            -     * Query classification specification.
            +     * Optional. End user metadata.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The queryClassificationSpec. */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec - getQueryClassificationSpec(); + java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData> + getEndUserMetadataList(); /** * * *
            -     * Query classification specification.
            +     * Optional. End user metadata.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpecOrBuilder - getQueryClassificationSpecOrBuilder(); + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + getEndUserMetadata(int index); /** * * *
            -     * Query rephraser specification.
            +     * Optional. End user metadata.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the queryRephraserSpec field is set. */ - boolean hasQueryRephraserSpec(); + int getEndUserMetadataCount(); /** * * *
            -     * Query rephraser specification.
            +     * Optional. End user metadata.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The queryRephraserSpec. */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec - getQueryRephraserSpec(); + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaDataOrBuilder> + getEndUserMetadataOrBuilderList(); /** * * *
            -     * Query rephraser specification.
            +     * Optional. End user metadata.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpecOrBuilder - getQueryRephraserSpecOrBuilder(); + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaDataOrBuilder + getEndUserMetadataOrBuilder(int index); } /** * * *
            -   * Query understanding specification.
            +   * End user specification.
                * 
            * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec} */ - public static final class QueryUnderstandingSpec extends com.google.protobuf.GeneratedMessage + public static final class EndUserSpec extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec) - QueryUnderstandingSpecOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec) + EndUserSpecOrBuilder { private static final long serialVersionUID = 0L; static { @@ -21174,135 +28881,104 @@ public static final class QueryUnderstandingSpec extends com.google.protobuf.Gen /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "QueryUnderstandingSpec"); + "EndUserSpec"); } - // Use QueryUnderstandingSpec.newBuilder() to construct. - private QueryUnderstandingSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use EndUserSpec.newBuilder() to construct. + private EndUserSpec(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private QueryUnderstandingSpec() {} + private EndUserSpec() { + endUserMetadata_ = java.util.Collections.emptyList(); + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .Builder.class); + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.Builder.class); } - public interface QueryClassificationSpecOrBuilder + public interface EndUserMetaDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData) com.google.protobuf.MessageOrBuilder { /** * * *
            -       * Enabled query classification types.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * - * - * @return A list containing the types. - */ - java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Type> - getTypesList(); - - /** - * - * - *
            -       * Enabled query classification types.
            +       * Chunk information.
                    * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo chunk_info = 1; * * - * @return The count of types. + * @return Whether the chunkInfo field is set. */ - int getTypesCount(); + boolean hasChunkInfo(); /** * * *
            -       * Enabled query classification types.
            +       * Chunk information.
                    * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo chunk_info = 1; * * - * @param index The index of the element to return. - * @return The types at the given index. + * @return The chunkInfo. */ - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Type - getTypes(int index); + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo + getChunkInfo(); /** * * *
            -       * Enabled query classification types.
            +       * Chunk information.
                    * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo chunk_info = 1; * - * - * @return A list containing the enum numeric values on the wire for types. */ - java.util.List getTypesValueList(); + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfoOrBuilder + getChunkInfoOrBuilder(); - /** - * - * - *
            -       * Enabled query classification types.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of types at the given index. - */ - int getTypesValue(int index); + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ContentCase + getContentCase(); } /** * * *
            -     * Query classification specification.
            +     * End user metadata.
                  * 
            * * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec} + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData} */ - public static final class QueryClassificationSpec extends com.google.protobuf.GeneratedMessage + public static final class EndUserMetaData extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec) - QueryClassificationSpecOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData) + EndUserMetaDataOrBuilder { private static final long serialVersionUID = 0L; static { @@ -21312,98 +28988,127 @@ public static final class QueryClassificationSpec extends com.google.protobuf.Ge /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "QueryClassificationSpec"); + "EndUserMetaData"); } - // Use QueryClassificationSpec.newBuilder() to construct. - private QueryClassificationSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use EndUserMetaData.newBuilder() to construct. + private EndUserMetaData(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private QueryClassificationSpec() { - types_ = emptyIntList(); - } + private EndUserMetaData() {} public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryClassificationSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryClassificationSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Builder.class); + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.Builder.class); } - /** - * - * - *
            -       * Query classification types.
            -       * 
            - * - * Protobuf enum {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type} - */ - public enum Type implements com.google.protobuf.ProtocolMessageEnum { + public interface ChunkInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo) + com.google.protobuf.MessageOrBuilder { + /** * * *
            -         * Unspecified query classification type.
            +         * Chunk textual content. It is limited to 8000 characters.
                      * 
            * - * TYPE_UNSPECIFIED = 0; + * string content = 1; + * + * @return The content. */ - TYPE_UNSPECIFIED(0), + java.lang.String getContent(); + /** * * *
            -         * Adversarial query classification type.
            +         * Chunk textual content. It is limited to 8000 characters.
                      * 
            * - * ADVERSARIAL_QUERY = 1; + * string content = 1; + * + * @return The bytes for content. */ - ADVERSARIAL_QUERY(1), + com.google.protobuf.ByteString getContentBytes(); + /** * * *
            -         * Non-answer-seeking query classification type, for chit chat.
            +         * Metadata of the document from the current chunk.
                      * 
            * - * NON_ANSWER_SEEKING_QUERY = 2; + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata document_metadata = 2; + * + * + * @return Whether the documentMetadata field is set. */ - NON_ANSWER_SEEKING_QUERY(2), + boolean hasDocumentMetadata(); + /** * * *
            -         * Jail-breaking query classification type.
            +         * Metadata of the document from the current chunk.
                      * 
            * - * JAIL_BREAKING_QUERY = 3; + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata document_metadata = 2; + * + * + * @return The documentMetadata. */ - JAIL_BREAKING_QUERY(3), + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo.DocumentMetadata + getDocumentMetadata(); + /** * * *
            -         * Non-answer-seeking query classification type, for no clear intent.
            +         * Metadata of the document from the current chunk.
                      * 
            * - * NON_ANSWER_SEEKING_QUERY_V2 = 4; + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata document_metadata = 2; + * */ - NON_ANSWER_SEEKING_QUERY_V2(4), - UNRECOGNIZED(-1), - ; + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder(); + } + + /** + * + * + *
            +       * Chunk information.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo} + */ + public static final class ChunkInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo) + ChunkInfoOrBuilder { + private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( @@ -21412,1149 +29117,1792 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "Type"); + "ChunkInfo"); } - /** - * - * - *
            -         * Unspecified query classification type.
            -         * 
            - * - * TYPE_UNSPECIFIED = 0; - */ - public static final int TYPE_UNSPECIFIED_VALUE = 0; + // Use ChunkInfo.newBuilder() to construct. + private ChunkInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - /** - * - * - *
            -         * Adversarial query classification type.
            -         * 
            - * - * ADVERSARIAL_QUERY = 1; - */ - public static final int ADVERSARIAL_QUERY_VALUE = 1; + private ChunkInfo() { + content_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.Builder.class); + } + + public interface DocumentMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +           * Title of the document.
            +           * 
            + * + * string title = 1; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
            +           * Title of the document.
            +           * 
            + * + * string title = 1; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + } /** * * *
            -         * Non-answer-seeking query classification type, for chit chat.
            +         * Document metadata contains the information of the document of
            +         * the current chunk.
                      * 
            * - * NON_ANSWER_SEEKING_QUERY = 2; + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata} */ - public static final int NON_ANSWER_SEEKING_QUERY_VALUE = 2; + public static final class DocumentMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata) + DocumentMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DocumentMetadata"); + } + + // Use DocumentMetadata.newBuilder() to construct. + private DocumentMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DocumentMetadata() { + title_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_DocumentMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_DocumentMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata.Builder.class); + } + + public static final int TITLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
            +           * Title of the document.
            +           * 
            + * + * string title = 1; + * + * @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 = 1; + * + * @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.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, title_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, 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.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo.DocumentMetadata + other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata) + obj; + + 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) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -         * Jail-breaking query classification type.
            -         * 
            - * - * JAIL_BREAKING_QUERY = 3; - */ - public static final int JAIL_BREAKING_QUERY_VALUE = 3; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -         * 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 static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - 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); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + parseFrom(byte[] 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. - */ - public static Type forNumber(int value) { - switch (value) { - case 0: - return TYPE_UNSPECIFIED; - case 1: - return ADVERSARIAL_QUERY; - case 2: - return NON_ANSWER_SEEKING_QUERY; - case 3: - return JAIL_BREAKING_QUERY; - case 4: - return NON_ANSWER_SEEKING_QUERY_V2; - default: - return null; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - 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 static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input); + } - 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."); + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.getDescriptor() - .getEnumTypes() - .get(0); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - private static final Type[] VALUES = values(); + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - 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."); + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo.DocumentMetadata + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - return VALUES[desc.getIndex()]; - } - private final int value; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - private Type(int value) { - this.value = value; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.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.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo.DocumentMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_DocumentMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_DocumentMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + title_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_DocumentMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo.DocumentMetadata + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo.DocumentMetadata + result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.title_ = title_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata.getDefaultInstance()) return this; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type) - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static final int TYPES_FIELD_NUMBER = 1; + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + title_ = 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; + } - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList types_ = emptyIntList(); + private int bitField0_; - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Type> - types_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Type>() { - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec.Type - convert(int from) { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Type - result = - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec.Type.forNumber(from); - return result == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec.Type.UNRECOGNIZED - : result; - } - }; + private java.lang.Object title_ = ""; - /** - * - * - *
            -       * Enabled query classification types.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * - * - * @return A list containing the types. - */ - @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Type> - getTypesList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Type>(types_, types_converter_); - } + /** + * + * + *
            +             * Title of the document.
            +             * 
            + * + * string title = 1; + * + * @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; + } + } - /** - * - * - *
            -       * Enabled query classification types.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * - * - * @return The count of types. - */ - @java.lang.Override - public int getTypesCount() { - return types_.size(); - } + /** + * + * + *
            +             * Title of the document.
            +             * 
            + * + * string title = 1; + * + * @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; + } + } - /** - * - * - *
            -       * Enabled query classification types.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * - * - * @param index The index of the element to return. - * @return The types at the given index. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Type - getTypes(int index) { - return types_converter_.convert(types_.getInt(index)); - } + /** + * + * + *
            +             * Title of the document.
            +             * 
            + * + * string title = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
            -       * Enabled query classification types.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * - * - * @return A list containing the enum numeric values on the wire for types. - */ - @java.lang.Override - public java.util.List getTypesValueList() { - return types_; - } + /** + * + * + *
            +             * Title of the document.
            +             * 
            + * + * string title = 1; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - /** - * - * - *
            -       * Enabled query classification types.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of types at the given index. - */ - @java.lang.Override - public int getTypesValue(int index) { - return types_.getInt(index); - } + /** + * + * + *
            +             * Title of the document.
            +             * 
            + * + * string title = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } - private int typesMemoizedSerializedSize; + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata) + } - private byte memoizedIsInitialized = -1; + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest + .EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata + DEFAULT_INSTANCE; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata(); + } - memoizedIsInitialized = 1; - return true; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (getTypesList().size() > 0) { - output.writeUInt32NoTag(10); - output.writeUInt32NoTag(typesMemoizedSerializedSize); - } - for (int i = 0; i < types_.size(); i++) { - output.writeEnumNoTag(types_.getInt(i)); - } - getUnknownFields().writeTo(output); - } + 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(); + } + }; - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static com.google.protobuf.Parser parser() { + return PARSER; + } - size = 0; - { - int dataSize = 0; - for (int i = 0; i < types_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(types_.getInt(i)); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - size += dataSize; - if (!getTypesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - typesMemoizedSerializedSize = dataSize; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + private int bitField0_; + public static final int CONTENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; + + /** + * + * + *
            +         * Chunk textual content. It is limited to 8000 characters.
            +         * 
            + * + * string content = 1; + * + * @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; + } } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec)) { - return super.equals(obj); + + /** + * + * + *
            +         * Chunk textual content. It is limited to 8000 characters.
            +         * 
            + * + * string content = 1; + * + * @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; + } } - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec - other = - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec) - obj; - if (!types_.equals(other.types_)) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static final int DOCUMENT_METADATA_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + documentMetadata_; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + /** + * + * + *
            +         * Metadata of the document from the current chunk.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata document_metadata = 2; + * + * + * @return Whether the documentMetadata field is set. + */ + @java.lang.Override + public boolean hasDocumentMetadata() { + return ((bitField0_ & 0x00000001) != 0); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getTypesCount() > 0) { - hash = (37 * hash) + TYPES_FIELD_NUMBER; - hash = (53 * hash) + types_.hashCode(); + + /** + * + * + *
            +         * Metadata of the document from the current chunk.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata document_metadata = 2; + * + * + * @return The documentMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + getDocumentMetadata() { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata.getDefaultInstance() + : documentMetadata_; } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +         * Metadata of the document from the current chunk.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata document_metadata = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder() { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private byte memoizedIsInitialized = -1; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + memoizedIsInitialized = 1; + return true; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, content_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getDocumentMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, content_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocumentMetadata()); + } + 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.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo + other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo) + obj; - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + 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; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().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; + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo + 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.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo + parseFrom( + 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.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -       * Query classification specification.
            -       * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec) - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryClassificationSpec_descriptor; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryClassificationSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Builder.class); + public Builder newBuilderForType() { + return newBuilder(); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.newBuilder() - private Builder() {} + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - types_ = emptyIntList(); - return this; + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryClassificationSpec_descriptor; - } + /** + * + * + *
            +         * Chunk information.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDocumentMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + content_ = ""; + documentMetadata_ = null; + if (documentMetadataBuilder_ != null) { + documentMetadataBuilder_.dispose(); + documentMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo + build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo + result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.getDefaultInstance(); - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.documentMetadata_ = + documentMetadataBuilder_ == null + ? documentMetadata_ + : documentMetadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec - build() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo) + other); + } else { + super.mergeFrom(other); + return this; + } } - return result; - } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec - result = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.getDefaultInstance()) return this; + if (!other.getContent().isEmpty()) { + content_ = other.content_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDocumentMetadata()) { + mergeDocumentMetadata(other.getDocumentMetadata()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } - onBuilt(); - return result; - } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - types_.makeImmutable(); - result.types_ = types_; + @java.lang.Override + public final boolean isInitialized() { + return true; } - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec) - other); - } else { - super.mergeFrom(other); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetDocumentMetadataFieldBuilder().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; } - } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.getDefaultInstance()) return this; - if (!other.types_.isEmpty()) { - if (types_.isEmpty()) { - types_ = other.types_; - types_.makeImmutable(); - bitField0_ |= 0x00000001; + private int bitField0_; + + private java.lang.Object content_ = ""; + + /** + * + * + *
            +           * Chunk textual content. It is limited to 8000 characters.
            +           * 
            + * + * string content = 1; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; } else { - ensureTypesIsMutable(); - types_.addAll(other.types_); + return (java.lang.String) ref; } - 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(); + /** + * + * + *
            +           * Chunk textual content. It is limited to 8000 characters.
            +           * 
            + * + * string content = 1; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof 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; + } } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int tmpRaw = input.readEnum(); - ensureTypesIsMutable(); - types_.addInt(tmpRaw); - break; - } // case 8 - case 10: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureTypesIsMutable(); - while (input.getBytesUntilLimit() > 0) { - types_.addInt(input.readEnum()); - } - input.popLimit(limit); - 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 { + + /** + * + * + *
            +           * Chunk textual content. It is limited to 8000 characters.
            +           * 
            + * + * string content = 1; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + bitField0_ |= 0x00000001; onChanged(); - } // finally - return this; - } - - private int bitField0_; + return this; + } - private com.google.protobuf.Internal.IntList types_ = emptyIntList(); + /** + * + * + *
            +           * Chunk textual content. It is limited to 8000 characters.
            +           * 
            + * + * string content = 1; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - private void ensureTypesIsMutable() { - if (!types_.isModifiable()) { - types_ = makeMutableCopy(types_); + /** + * + * + *
            +           * Chunk textual content. It is limited to 8000 characters.
            +           * 
            + * + * string content = 1; + * + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - bitField0_ |= 0x00000001; - } - /** - * - * - *
            -         * Enabled query classification types.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * - * - * @return A list containing the types. - */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Type> - getTypesList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Type>(types_, types_converter_); - } + private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + documentMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadataOrBuilder> + documentMetadataBuilder_; - /** - * - * - *
            -         * Enabled query classification types.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * - * - * @return The count of types. - */ - public int getTypesCount() { - return types_.size(); - } + /** + * + * + *
            +           * Metadata of the document from the current chunk.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata document_metadata = 2; + * + * + * @return Whether the documentMetadata field is set. + */ + public boolean hasDocumentMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } - /** - * - * - *
            -         * Enabled query classification types.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * - * - * @param index The index of the element to return. - * @return The types at the given index. - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Type - getTypes(int index) { - return types_converter_.convert(types_.getInt(index)); - } + /** + * + * + *
            +           * Metadata of the document from the current chunk.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata document_metadata = 2; + * + * + * @return The documentMetadata. + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata + getDocumentMetadata() { + if (documentMetadataBuilder_ == null) { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } else { + return documentMetadataBuilder_.getMessage(); + } + } - /** - * - * - *
            -         * Enabled query classification types.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * - * - * @param index The index to set the value at. - * @param value The types to set. - * @return This builder for chaining. - */ - public Builder setTypes( - int index, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Type - value) { - if (value == null) { - throw new NullPointerException(); + /** + * + * + *
            +           * Metadata of the document from the current chunk.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata document_metadata = 2; + * + */ + public Builder setDocumentMetadata( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo.DocumentMetadata + value) { + if (documentMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + documentMetadata_ = value; + } else { + documentMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; } - ensureTypesIsMutable(); - types_.setInt(index, value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
            -         * Enabled query classification types.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * - * - * @param value The types to add. - * @return This builder for chaining. - */ - public Builder addTypes( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Type - value) { - if (value == null) { - throw new NullPointerException(); + /** + * + * + *
            +           * Metadata of the document from the current chunk.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata document_metadata = 2; + * + */ + public Builder setDocumentMetadata( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo.DocumentMetadata.Builder + builderForValue) { + if (documentMetadataBuilder_ == null) { + documentMetadata_ = builderForValue.build(); + } else { + documentMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Metadata of the document from the current chunk.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata document_metadata = 2; + * + */ + public Builder mergeDocumentMetadata( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo.DocumentMetadata + value) { + if (documentMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && documentMetadata_ != null + && documentMetadata_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata.getDefaultInstance()) { + getDocumentMetadataBuilder().mergeFrom(value); + } else { + documentMetadata_ = value; + } + } else { + documentMetadataBuilder_.mergeFrom(value); + } + if (documentMetadata_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +           * Metadata of the document from the current chunk.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata document_metadata = 2; + * + */ + public Builder clearDocumentMetadata() { + bitField0_ = (bitField0_ & ~0x00000002); + documentMetadata_ = null; + if (documentMetadataBuilder_ != null) { + documentMetadataBuilder_.dispose(); + documentMetadataBuilder_ = null; + } + onChanged(); + return this; } - ensureTypesIsMutable(); - types_.addInt(value.getNumber()); - onChanged(); - return this; - } - /** - * - * - *
            -         * Enabled query classification types.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * - * - * @param values The types to add. - * @return This builder for chaining. - */ - public Builder addAllTypes( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec.Type> - values) { - ensureTypesIsMutable(); - for (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Type - value : values) { - types_.addInt(value.getNumber()); + /** + * + * + *
            +           * Metadata of the document from the current chunk.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata document_metadata = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata.Builder + getDocumentMetadataBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetDocumentMetadataFieldBuilder().getBuilder(); } - onChanged(); - return this; - } - /** - * - * - *
            -         * Enabled query classification types.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearTypes() { - types_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } + /** + * + * + *
            +           * Metadata of the document from the current chunk.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata document_metadata = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder() { + if (documentMetadataBuilder_ != null) { + return documentMetadataBuilder_.getMessageOrBuilder(); + } else { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } + } - /** - * - * - *
            -         * Enabled query classification types.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * - * - * @return A list containing the enum numeric values on the wire for types. - */ - public java.util.List getTypesValueList() { - types_.makeImmutable(); - return types_; - } + /** + * + * + *
            +           * Metadata of the document from the current chunk.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo.DocumentMetadata document_metadata = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadataOrBuilder> + internalGetDocumentMetadataFieldBuilder() { + if (documentMetadataBuilder_ == null) { + documentMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.DocumentMetadataOrBuilder>( + getDocumentMetadata(), getParentForChildren(), isClean()); + documentMetadata_ = null; + } + return documentMetadataBuilder_; + } - /** - * - * - *
            -         * Enabled query classification types.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of types at the given index. - */ - public int getTypesValue(int index) { - return types_.getInt(index); + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo) } - /** - * - * - *
            -         * Enabled query classification types.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for types to set. - * @return This builder for chaining. - */ - public Builder setTypesValue(int index, int value) { - ensureTypesIsMutable(); - types_.setInt(index, value); - onChanged(); - return this; - } + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo + DEFAULT_INSTANCE; - /** - * - * - *
            -         * Enabled query classification types.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * - * - * @param value The enum numeric value on the wire for types to add. - * @return This builder for chaining. - */ - public Builder addTypesValue(int value) { - ensureTypesIsMutable(); - types_.addInt(value); - onChanged(); - return this; + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo(); } - /** - * - * - *
            -         * Enabled query classification types.
            -         * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * - * - * @param values The enum numeric values on the wire for types to add. - * @return This builder for chaining. - */ - public Builder addAllTypesValue(java.lang.Iterable values) { - ensureTypesIsMutable(); - for (int value : values) { - types_.addInt(value); - } - onChanged(); - return this; + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec) - private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec(); - } - - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryClassificationSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChunkInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } - return builder.buildPartial(); - } - }; + }; - public static com.google.protobuf.Parser parser() { - return PARSER; - } + 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.protobuf.Parser getParserForType() { - return PARSER; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + private int contentCase_ = 0; - public interface QueryRephraserSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec) - com.google.protobuf.MessageOrBuilder { + @SuppressWarnings("serial") + private java.lang.Object content_; - /** - * - * - *
            -       * Disable query rephraser.
            -       * 
            - * - * bool disable = 1; - * - * @return The disable. - */ - boolean getDisable(); + public enum ContentCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CHUNK_INFO(1), + CONTENT_NOT_SET(0); + private final int value; + + private ContentCase(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 ContentCase valueOf(int value) { + return forNumber(value); + } + + public static ContentCase forNumber(int value) { + switch (value) { + case 1: + return CHUNK_INFO; + case 0: + return CONTENT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ContentCase getContentCase() { + return ContentCase.forNumber(contentCase_); + } + + public static final int CHUNK_INFO_FIELD_NUMBER = 1; /** * * *
            -       * Max rephrase steps.
            -       * The max number is 5 steps.
            -       * If not set or set to < 1, it will be set to 1 by default.
            +       * Chunk information.
                    * 
            * - * int32 max_rephrase_steps = 2; + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo chunk_info = 1; + * * - * @return The maxRephraseSteps. + * @return Whether the chunkInfo field is set. */ - int getMaxRephraseSteps(); - } - - /** - * - * - *
            -     * Query rephraser specification.
            -     * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec} - */ - public static final class QueryRephraserSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec) - QueryRephraserSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "QueryRephraserSpec"); - } - - // Use QueryRephraserSpec.newBuilder() to construct. - private QueryRephraserSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private QueryRephraserSpec() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_descriptor; - } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec.Builder.class); + public boolean hasChunkInfo() { + return contentCase_ == 1; } - public static final int DISABLE_FIELD_NUMBER = 1; - private boolean disable_ = false; - /** * * *
            -       * Disable query rephraser.
            +       * Chunk information.
                    * 
            * - * bool disable = 1; + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo chunk_info = 1; + * * - * @return The disable. + * @return The chunkInfo. */ @java.lang.Override - public boolean getDisable() { - return disable_; + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo + getChunkInfo() { + if (contentCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo) + content_; + } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.getDefaultInstance(); } - public static final int MAX_REPHRASE_STEPS_FIELD_NUMBER = 2; - private int maxRephraseSteps_ = 0; - /** * * *
            -       * Max rephrase steps.
            -       * The max number is 5 steps.
            -       * If not set or set to < 1, it will be set to 1 by default.
            +       * Chunk information.
                    * 
            * - * int32 max_rephrase_steps = 2; - * - * @return The maxRephraseSteps. + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo chunk_info = 1; + * */ @java.lang.Override - public int getMaxRephraseSteps() { - return maxRephraseSteps_; + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfoOrBuilder + getChunkInfoOrBuilder() { + if (contentCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo) + content_; + } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -22571,11 +30919,12 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (disable_ != false) { - output.writeBool(1, disable_); - } - if (maxRephraseSteps_ != 0) { - output.writeInt32(2, maxRephraseSteps_); + if (contentCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo) + content_); } getUnknownFields().writeTo(output); } @@ -22586,11 +30935,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (disable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disable_); - } - if (maxRephraseSteps_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxRephraseSteps_); + if (contentCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo) + content_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -22604,19 +30955,24 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec)) { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData other = - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec) + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData) obj; - if (getDisable() != other.getDisable()) return false; - if (getMaxRephraseSteps() != other.getMaxRephraseSteps()) return false; + if (!getContentCase().equals(other.getContentCase())) return false; + switch (contentCase_) { + case 1: + if (!getChunkInfo().equals(other.getChunkInfo())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -22628,39 +30984,43 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DISABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisable()); - hash = (37 * hash) + MAX_REPHRASE_STEPS_FIELD_NUMBER; - hash = (53 * hash) + getMaxRephraseSteps(); + switch (contentCase_) { + case 1: + hash = (37 * hash) + CHUNK_INFO_FIELD_NUMBER; + hash = (53 * hash) + getChunkInfo().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryRephraserSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryRephraserSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData 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.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryRephraserSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryRephraserSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -22668,27 +31028,27 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryRephraserSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryRephraserSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryRephraserSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryRephraserSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -22697,14 +31057,14 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryRephraserSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryRephraserSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -22713,14 +31073,14 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryRephraserSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryRephraserSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -22739,8 +31099,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -22761,37 +31120,37 @@ protected Builder newBuilderForType( * * *
            -       * Query rephraser specification.
            +       * End user metadata.
                    * 
            * * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec} + * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec) - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpecOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec.class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec.Builder.class); + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.Builder.class); } // Construct using - // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.newBuilder() + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -22802,31 +31161,33 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - disable_ = false; - maxRephraseSteps_ = 0; + if (chunkInfoBuilder_ != null) { + chunkInfoBuilder_.clear(); + } + contentCase_ = 0; + content_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec.getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData build() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -22835,31 +31196,34 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData buildPartial() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData result = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryRephraserSpec(this); + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData(this); if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.disable_ = disable_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.maxRephraseSteps_ = maxRephraseSteps_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + result) { + result.contentCase_ = contentCase_; + result.content_ = this.content_; + if (contentCase_ == 1 && chunkInfoBuilder_ != null) { + result.content_ = chunkInfoBuilder_.build(); } } @@ -22867,11 +31231,11 @@ private void buildPartial0( public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec) { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData) { return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec) + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData) other); } else { super.mergeFrom(other); @@ -22880,17 +31244,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData other) { if (other - == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec.getDefaultInstance()) return this; - if (other.getDisable() != false) { - setDisable(other.getDisable()); - } - if (other.getMaxRephraseSteps() != 0) { - setMaxRephraseSteps(other.getMaxRephraseSteps()); + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.getDefaultInstance()) return this; + switch (other.getContentCase()) { + case CHUNK_INFO: + { + mergeChunkInfo(other.getChunkInfo()); + break; + } + case CONTENT_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -22918,18 +31286,13 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - disable_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: + case 10: { - maxRephraseSteps_ = input.readInt32(); - bitField0_ |= 0x00000002; + input.readMessage( + internalGetChunkInfoFieldBuilder().getBuilder(), extensionRegistry); + contentCase_ = 1; break; - } // case 16 + } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -22947,43 +31310,108 @@ public Builder mergeFrom( return this; } + private int contentCase_ = 0; + private java.lang.Object content_; + + public ContentCase getContentCase() { + return ContentCase.forNumber(contentCase_); + } + + public Builder clearContent() { + contentCase_ = 0; + content_ = null; + onChanged(); + return this; + } + private int bitField0_; - private boolean disable_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfoOrBuilder> + chunkInfoBuilder_; /** * * *
            -         * Disable query rephraser.
            +         * Chunk information.
                      * 
            * - * bool disable = 1; + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo chunk_info = 1; + * * - * @return The disable. + * @return Whether the chunkInfo field is set. */ @java.lang.Override - public boolean getDisable() { - return disable_; + public boolean hasChunkInfo() { + return contentCase_ == 1; } /** * * *
            -         * Disable query rephraser.
            +         * Chunk information.
                      * 
            * - * bool disable = 1; + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo chunk_info = 1; + * * - * @param value The disable to set. - * @return This builder for chaining. + * @return The chunkInfo. */ - public Builder setDisable(boolean value) { + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo + getChunkInfo() { + if (chunkInfoBuilder_ == null) { + if (contentCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo) + content_; + } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.getDefaultInstance(); + } else { + if (contentCase_ == 1) { + return chunkInfoBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.getDefaultInstance(); + } + } - disable_ = value; - bitField0_ |= 0x00000001; - onChanged(); + /** + * + * + *
            +         * Chunk information.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo chunk_info = 1; + * + */ + public Builder setChunkInfo( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo + value) { + if (chunkInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + onChanged(); + } else { + chunkInfoBuilder_.setMessage(value); + } + contentCase_ = 1; return this; } @@ -22991,59 +31419,95 @@ public Builder setDisable(boolean value) { * * *
            -         * Disable query rephraser.
            +         * Chunk information.
                      * 
            * - * bool disable = 1; - * - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo chunk_info = 1; + * */ - public Builder clearDisable() { - bitField0_ = (bitField0_ & ~0x00000001); - disable_ = false; - onChanged(); + public Builder setChunkInfo( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo.Builder + builderForValue) { + if (chunkInfoBuilder_ == null) { + content_ = builderForValue.build(); + onChanged(); + } else { + chunkInfoBuilder_.setMessage(builderForValue.build()); + } + contentCase_ = 1; return this; } - private int maxRephraseSteps_; - /** * * *
            -         * Max rephrase steps.
            -         * The max number is 5 steps.
            -         * If not set or set to < 1, it will be set to 1 by default.
            +         * Chunk information.
                      * 
            * - * int32 max_rephrase_steps = 2; - * - * @return The maxRephraseSteps. + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo chunk_info = 1; + * */ - @java.lang.Override - public int getMaxRephraseSteps() { - return maxRephraseSteps_; + public Builder mergeChunkInfo( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .ChunkInfo + value) { + if (chunkInfoBuilder_ == null) { + if (contentCase_ == 1 + && content_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.getDefaultInstance()) { + content_ = + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.newBuilder( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo) + content_) + .mergeFrom(value) + .buildPartial(); + } else { + content_ = value; + } + onChanged(); + } else { + if (contentCase_ == 1) { + chunkInfoBuilder_.mergeFrom(value); + } else { + chunkInfoBuilder_.setMessage(value); + } + } + contentCase_ = 1; + return this; } /** * * *
            -         * Max rephrase steps.
            -         * The max number is 5 steps.
            -         * If not set or set to < 1, it will be set to 1 by default.
            +         * Chunk information.
                      * 
            * - * int32 max_rephrase_steps = 2; - * - * @param value The maxRephraseSteps to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo chunk_info = 1; + * */ - public Builder setMaxRephraseSteps(int value) { - - maxRephraseSteps_ = value; - bitField0_ |= 0x00000002; - onChanged(); + public Builder clearChunkInfo() { + if (chunkInfoBuilder_ == null) { + if (contentCase_ == 1) { + contentCase_ = 0; + content_ = null; + onChanged(); + } + } else { + if (contentCase_ == 1) { + contentCase_ = 0; + content_ = null; + } + chunkInfoBuilder_.clear(); + } return this; } @@ -23051,46 +31515,116 @@ public Builder setMaxRephraseSteps(int value) { * * *
            -         * Max rephrase steps.
            -         * The max number is 5 steps.
            -         * If not set or set to < 1, it will be set to 1 by default.
            +         * Chunk information.
                      * 
            * - * int32 max_rephrase_steps = 2; + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo chunk_info = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.Builder + getChunkInfoBuilder() { + return internalGetChunkInfoFieldBuilder().getBuilder(); + } + + /** * - * @return This builder for chaining. + * + *
            +         * Chunk information.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo chunk_info = 1; + * */ - public Builder clearMaxRephraseSteps() { - bitField0_ = (bitField0_ & ~0x00000002); - maxRephraseSteps_ = 0; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfoOrBuilder + getChunkInfoOrBuilder() { + if ((contentCase_ == 1) && (chunkInfoBuilder_ != null)) { + return chunkInfoBuilder_.getMessageOrBuilder(); + } else { + if (contentCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo) + content_; + } + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.getDefaultInstance(); + } + } + + /** + * + * + *
            +         * Chunk information.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData.ChunkInfo chunk_info = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfoOrBuilder> + internalGetChunkInfoFieldBuilder() { + if (chunkInfoBuilder_ == null) { + if (!(contentCase_ == 1)) { + content_ = + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.getDefaultInstance(); + } + chunkInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfoOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.ChunkInfo) + content_, + getParentForChildren(), + isClean()); + content_ = null; + } + contentCase_ = 1; onChanged(); - return this; + return chunkInfoBuilder_; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec) - private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryRephraserSpec + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec(); + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData(); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryRephraserSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData 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 QueryRephraserSpec parsePartialFrom( + public EndUserMetaData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -23110,156 +31644,116 @@ public QueryRephraserSpec 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.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - private int bitField0_; - public static final int QUERY_CLASSIFICATION_SPEC_FIELD_NUMBER = 1; - private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec - queryClassificationSpec_; - - /** - * - * - *
            -     * Query classification specification.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; - * - * - * @return Whether the queryClassificationSpec field is set. - */ - @java.lang.Override - public boolean hasQueryClassificationSpec() { - return ((bitField0_ & 0x00000001) != 0); - } + public static final int END_USER_METADATA_FIELD_NUMBER = 1; - /** - * - * - *
            -     * Query classification specification.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; - * - * - * @return The queryClassificationSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec - getQueryClassificationSpec() { - return queryClassificationSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.getDefaultInstance() - : queryClassificationSpec_; - } + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData> + endUserMetadata_; /** * * *
            -     * Query classification specification.
            +     * Optional. End user metadata.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpecOrBuilder - getQueryClassificationSpecOrBuilder() { - return queryClassificationSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.getDefaultInstance() - : queryClassificationSpec_; + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData> + getEndUserMetadataList() { + return endUserMetadata_; } - public static final int QUERY_REPHRASER_SPEC_FIELD_NUMBER = 2; - private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec - queryRephraserSpec_; - /** * * *
            -     * Query rephraser specification.
            +     * Optional. End user metadata.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the queryRephraserSpec field is set. */ @java.lang.Override - public boolean hasQueryRephraserSpec() { - return ((bitField0_ & 0x00000002) != 0); + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaDataOrBuilder> + getEndUserMetadataOrBuilderList() { + return endUserMetadata_; } /** * * *
            -     * Query rephraser specification.
            +     * Optional. End user metadata.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * + */ + @java.lang.Override + public int getEndUserMetadataCount() { + return endUserMetadata_.size(); + } + + /** * - * @return The queryRephraserSpec. + * + *
            +     * Optional. End user metadata.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec - getQueryRephraserSpec() { - return queryRephraserSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec.getDefaultInstance() - : queryRephraserSpec_; + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + getEndUserMetadata(int index) { + return endUserMetadata_.get(index); } /** * * *
            -     * Query rephraser specification.
            +     * Optional. End user metadata.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpecOrBuilder - getQueryRephraserSpecOrBuilder() { - return queryRephraserSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec.getDefaultInstance() - : queryRephraserSpec_; + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaDataOrBuilder + getEndUserMetadataOrBuilder(int index) { + return endUserMetadata_.get(index); } private byte memoizedIsInitialized = -1; @@ -23276,11 +31770,8 @@ 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, getQueryClassificationSpec()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getQueryRephraserSpec()); + for (int i = 0; i < endUserMetadata_.size(); i++) { + output.writeMessage(1, endUserMetadata_.get(i)); } getUnknownFields().writeTo(output); } @@ -23291,14 +31782,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, getQueryClassificationSpec()); - } - if (((bitField0_ & 0x00000002) != 0)) { + for (int i = 0; i < endUserMetadata_.size(); i++) { size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQueryRephraserSpec()); + com.google.protobuf.CodedOutputStream.computeMessageSize(1, endUserMetadata_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -23311,21 +31797,13 @@ public boolean equals(final java.lang.Object obj) { return true; } if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec)) { + instanceof com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec other = - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec) obj; + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec other = + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec) obj; - if (hasQueryClassificationSpec() != other.hasQueryClassificationSpec()) return false; - if (hasQueryClassificationSpec()) { - if (!getQueryClassificationSpec().equals(other.getQueryClassificationSpec())) return false; - } - if (hasQueryRephraserSpec() != other.hasQueryRephraserSpec()) return false; - if (hasQueryRephraserSpec()) { - if (!getQueryRephraserSpec().equals(other.getQueryRephraserSpec())) return false; - } + if (!getEndUserMetadataList().equals(other.getEndUserMetadataList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -23337,76 +31815,68 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasQueryClassificationSpec()) { - hash = (37 * hash) + QUERY_CLASSIFICATION_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getQueryClassificationSpec().hashCode(); - } - if (hasQueryRephraserSpec()) { - hash = (37 * hash) + QUERY_REPHRASER_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getQueryRephraserSpec().hashCode(); + if (getEndUserMetadataCount() > 0) { + hash = (37 * hash) + END_USER_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getEndUserMetadataList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec 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.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec parseFrom( + 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.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -23414,16 +31884,15 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -23438,8 +31907,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - prototype) { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -23458,85 +31926,69 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
            -     * Query understanding specification.
            +     * End user specification.
                  * 
            * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec) - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpecOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec) + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .class, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .Builder.class); + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.class, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.Builder + .class); } // Construct using - // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + // com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.newBuilder() + private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetQueryClassificationSpecFieldBuilder(); - internalGetQueryRephraserSpecFieldBuilder(); - } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - queryClassificationSpec_ = null; - if (queryClassificationSpecBuilder_ != null) { - queryClassificationSpecBuilder_.dispose(); - queryClassificationSpecBuilder_ = null; - } - queryRephraserSpec_ = null; - if (queryRephraserSpecBuilder_ != null) { - queryRephraserSpecBuilder_.dispose(); - queryRephraserSpecBuilder_ = null; + if (endUserMetadataBuilder_ == null) { + endUserMetadata_ = java.util.Collections.emptyList(); + } else { + endUserMetadata_ = null; + endUserMetadataBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + return com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - build() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec result = + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec build() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -23545,11 +31997,10 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec result = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec( - this); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec result = + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -23557,36 +32008,30 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return result; } + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec result) { + if (endUserMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + endUserMetadata_ = java.util.Collections.unmodifiableList(endUserMetadata_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.endUserMetadata_ = endUserMetadata_; + } else { + result.endUserMetadata_ = endUserMetadataBuilder_.build(); + } + } + private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - result) { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec result) { int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.queryClassificationSpec_ = - queryClassificationSpecBuilder_ == null - ? queryClassificationSpec_ - : queryClassificationSpecBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.queryRephraserSpec_ = - queryRephraserSpecBuilder_ == null - ? queryRephraserSpec_ - : queryRephraserSpecBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other - instanceof - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec) { + instanceof com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec) { return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec) - other); + (com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec) other); } else { super.mergeFrom(other); return this; @@ -23594,15 +32039,36 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec other) { + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec other) { if (other - == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + == com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec .getDefaultInstance()) return this; - if (other.hasQueryClassificationSpec()) { - mergeQueryClassificationSpec(other.getQueryClassificationSpec()); - } - if (other.hasQueryRephraserSpec()) { - mergeQueryRephraserSpec(other.getQueryRephraserSpec()); + if (endUserMetadataBuilder_ == null) { + if (!other.endUserMetadata_.isEmpty()) { + if (endUserMetadata_.isEmpty()) { + endUserMetadata_ = other.endUserMetadata_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEndUserMetadataIsMutable(); + endUserMetadata_.addAll(other.endUserMetadata_); + } + onChanged(); + } + } else { + if (!other.endUserMetadata_.isEmpty()) { + if (endUserMetadataBuilder_.isEmpty()) { + endUserMetadataBuilder_.dispose(); + endUserMetadataBuilder_ = null; + endUserMetadata_ = other.endUserMetadata_; + bitField0_ = (bitField0_ & ~0x00000001); + endUserMetadataBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEndUserMetadataFieldBuilder() + : null; + } else { + endUserMetadataBuilder_.addAllMessages(other.endUserMetadata_); + } + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -23632,19 +32098,21 @@ public Builder mergeFrom( break; case 10: { - input.readMessage( - internalGetQueryClassificationSpecFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.parser(), + extensionRegistry); + if (endUserMetadataBuilder_ == null) { + ensureEndUserMetadataIsMutable(); + endUserMetadata_.add(m); + } else { + endUserMetadataBuilder_.addMessage(m); + } break; } // case 10 - case 18: - { - input.readMessage( - internalGetQueryRephraserSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -23664,58 +32132,88 @@ public Builder mergeFrom( private int bitField0_; - private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec - queryClassificationSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpecOrBuilder> - queryClassificationSpecBuilder_; + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData> + endUserMetadata_ = java.util.Collections.emptyList(); + + private void ensureEndUserMetadataIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + endUserMetadata_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData>(endUserMetadata_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaDataOrBuilder> + endUserMetadataBuilder_; + + /** + * + * + *
            +       * Optional. End user metadata.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData> + getEndUserMetadataList() { + if (endUserMetadataBuilder_ == null) { + return java.util.Collections.unmodifiableList(endUserMetadata_); + } else { + return endUserMetadataBuilder_.getMessageList(); + } + } /** * * *
            -       * Query classification specification.
            +       * Optional. End user metadata.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the queryClassificationSpec field is set. */ - public boolean hasQueryClassificationSpec() { - return ((bitField0_ & 0x00000001) != 0); + public int getEndUserMetadataCount() { + if (endUserMetadataBuilder_ == null) { + return endUserMetadata_.size(); + } else { + return endUserMetadataBuilder_.getCount(); + } } /** * * *
            -       * Query classification specification.
            +       * Optional. End user metadata.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The queryClassificationSpec. */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec - getQueryClassificationSpec() { - if (queryClassificationSpecBuilder_ == null) { - return queryClassificationSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.getDefaultInstance() - : queryClassificationSpec_; + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + getEndUserMetadata(int index) { + if (endUserMetadataBuilder_ == null) { + return endUserMetadata_.get(index); } else { - return queryClassificationSpecBuilder_.getMessage(); + return endUserMetadataBuilder_.getMessage(index); } } @@ -23723,27 +32221,27 @@ public boolean hasQueryClassificationSpec() { * * *
            -       * Query classification specification.
            +       * Optional. End user metadata.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setQueryClassificationSpec( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec + public Builder setEndUserMetadata( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData value) { - if (queryClassificationSpecBuilder_ == null) { + if (endUserMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - queryClassificationSpec_ = value; + ensureEndUserMetadataIsMutable(); + endUserMetadata_.set(index, value); + onChanged(); } else { - queryClassificationSpecBuilder_.setMessage(value); + endUserMetadataBuilder_.setMessage(index, value); } - bitField0_ |= 0x00000001; - onChanged(); return this; } @@ -23751,24 +32249,25 @@ public Builder setQueryClassificationSpec( * * *
            -       * Query classification specification.
            +       * Optional. End user metadata.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setQueryClassificationSpec( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Builder + public Builder setEndUserMetadata( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .Builder builderForValue) { - if (queryClassificationSpecBuilder_ == null) { - queryClassificationSpec_ = builderForValue.build(); + if (endUserMetadataBuilder_ == null) { + ensureEndUserMetadataIsMutable(); + endUserMetadata_.set(index, builderForValue.build()); + onChanged(); } else { - queryClassificationSpecBuilder_.setMessage(builderForValue.build()); + endUserMetadataBuilder_.setMessage(index, builderForValue.build()); } - bitField0_ |= 0x00000001; - onChanged(); return this; } @@ -23776,33 +32275,25 @@ public Builder setQueryClassificationSpec( * * *
            -       * Query classification specification.
            +       * Optional. End user metadata.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeQueryClassificationSpec( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec + public Builder addEndUserMetadata( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData value) { - if (queryClassificationSpecBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && queryClassificationSpec_ != null - && queryClassificationSpec_ - != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryClassificationSpec.getDefaultInstance()) { - getQueryClassificationSpecBuilder().mergeFrom(value); - } else { - queryClassificationSpec_ = value; + if (endUserMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - } else { - queryClassificationSpecBuilder_.mergeFrom(value); - } - if (queryClassificationSpec_ != null) { - bitField0_ |= 0x00000001; + ensureEndUserMetadataIsMutable(); + endUserMetadata_.add(value); onChanged(); + } else { + endUserMetadataBuilder_.addMessage(value); } return this; } @@ -23811,21 +32302,27 @@ public Builder mergeQueryClassificationSpec( * * *
            -       * Query classification specification.
            +       * Optional. End user metadata.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearQueryClassificationSpec() { - bitField0_ = (bitField0_ & ~0x00000001); - queryClassificationSpec_ = null; - if (queryClassificationSpecBuilder_ != null) { - queryClassificationSpecBuilder_.dispose(); - queryClassificationSpecBuilder_ = null; + public Builder addEndUserMetadata( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + value) { + if (endUserMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEndUserMetadataIsMutable(); + endUserMetadata_.add(index, value); + onChanged(); + } else { + endUserMetadataBuilder_.addMessage(index, value); } - onChanged(); return this; } @@ -23833,159 +32330,121 @@ public Builder clearQueryClassificationSpec() { * * *
            -       * Query classification specification.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Builder - getQueryClassificationSpecBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetQueryClassificationSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
            -       * Query classification specification.
            +       * Optional. End user metadata.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpecOrBuilder - getQueryClassificationSpecOrBuilder() { - if (queryClassificationSpecBuilder_ != null) { - return queryClassificationSpecBuilder_.getMessageOrBuilder(); + public Builder addEndUserMetadata( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .Builder + builderForValue) { + if (endUserMetadataBuilder_ == null) { + ensureEndUserMetadataIsMutable(); + endUserMetadata_.add(builderForValue.build()); + onChanged(); } else { - return queryClassificationSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.getDefaultInstance() - : queryClassificationSpec_; + endUserMetadataBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
            -       * Query classification specification.
            +       * Optional. End user metadata.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpecOrBuilder> - internalGetQueryClassificationSpecFieldBuilder() { - if (queryClassificationSpecBuilder_ == null) { - queryClassificationSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpec.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryClassificationSpecOrBuilder>( - getQueryClassificationSpec(), getParentForChildren(), isClean()); - queryClassificationSpec_ = null; + public Builder addEndUserMetadata( + int index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .Builder + builderForValue) { + if (endUserMetadataBuilder_ == null) { + ensureEndUserMetadataIsMutable(); + endUserMetadata_.add(index, builderForValue.build()); + onChanged(); + } else { + endUserMetadataBuilder_.addMessage(index, builderForValue.build()); } - return queryClassificationSpecBuilder_; + return this; } - private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec - queryRephraserSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpecOrBuilder> - queryRephraserSpecBuilder_; - /** * * *
            -       * Query rephraser specification.
            +       * Optional. End user metadata.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the queryRephraserSpec field is set. */ - public boolean hasQueryRephraserSpec() { - return ((bitField0_ & 0x00000002) != 0); + public Builder addAllEndUserMetadata( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData> + values) { + if (endUserMetadataBuilder_ == null) { + ensureEndUserMetadataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endUserMetadata_); + onChanged(); + } else { + endUserMetadataBuilder_.addAllMessages(values); + } + return this; } /** * * *
            -       * Query rephraser specification.
            +       * Optional. End user metadata.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The queryRephraserSpec. */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec - getQueryRephraserSpec() { - if (queryRephraserSpecBuilder_ == null) { - return queryRephraserSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec.getDefaultInstance() - : queryRephraserSpec_; + public Builder clearEndUserMetadata() { + if (endUserMetadataBuilder_ == null) { + endUserMetadata_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); } else { - return queryRephraserSpecBuilder_.getMessage(); + endUserMetadataBuilder_.clear(); } + return this; } /** * * *
            -       * Query rephraser specification.
            +       * Optional. End user metadata.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setQueryRephraserSpec( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec - value) { - if (queryRephraserSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queryRephraserSpec_ = value; + public Builder removeEndUserMetadata(int index) { + if (endUserMetadataBuilder_ == null) { + ensureEndUserMetadataIsMutable(); + endUserMetadata_.remove(index); + onChanged(); } else { - queryRephraserSpecBuilder_.setMessage(value); + endUserMetadataBuilder_.remove(index); } - bitField0_ |= 0x00000002; - onChanged(); return this; } @@ -23993,183 +32452,169 @@ public Builder setQueryRephraserSpec( * * *
            -       * Query rephraser specification.
            +       * Optional. End user metadata.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setQueryRephraserSpec( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec.Builder - builderForValue) { - if (queryRephraserSpecBuilder_ == null) { - queryRephraserSpec_ = builderForValue.build(); - } else { - queryRephraserSpecBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .Builder + getEndUserMetadataBuilder(int index) { + return internalGetEndUserMetadataFieldBuilder().getBuilder(index); } /** * * *
            -       * Query rephraser specification.
            +       * Optional. End user metadata.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeQueryRephraserSpec( - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec - value) { - if (queryRephraserSpecBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && queryRephraserSpec_ != null - && queryRephraserSpec_ - != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec.QueryRephraserSpec.getDefaultInstance()) { - getQueryRephraserSpecBuilder().mergeFrom(value); - } else { - queryRephraserSpec_ = value; - } + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaDataOrBuilder + getEndUserMetadataOrBuilder(int index) { + if (endUserMetadataBuilder_ == null) { + return endUserMetadata_.get(index); } else { - queryRephraserSpecBuilder_.mergeFrom(value); - } - if (queryRephraserSpec_ != null) { - bitField0_ |= 0x00000002; - onChanged(); + return endUserMetadataBuilder_.getMessageOrBuilder(index); } - return this; } /** * * *
            -       * Query rephraser specification.
            +       * Optional. End user metadata.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearQueryRephraserSpec() { - bitField0_ = (bitField0_ & ~0x00000002); - queryRephraserSpec_ = null; - if (queryRephraserSpecBuilder_ != null) { - queryRephraserSpecBuilder_.dispose(); - queryRephraserSpecBuilder_ = null; + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaDataOrBuilder> + getEndUserMetadataOrBuilderList() { + if (endUserMetadataBuilder_ != null) { + return endUserMetadataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(endUserMetadata_); } - onChanged(); - return this; } /** * * *
            -       * Query rephraser specification.
            +       * Optional. End user metadata.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec.Builder - getQueryRephraserSpecBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetQueryRephraserSpecFieldBuilder().getBuilder(); + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .Builder + addEndUserMetadataBuilder() { + return internalGetEndUserMetadataFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.getDefaultInstance()); } /** * * *
            -       * Query rephraser specification.
            +       * Optional. End user metadata.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpecOrBuilder - getQueryRephraserSpecOrBuilder() { - if (queryRephraserSpecBuilder_ != null) { - return queryRephraserSpecBuilder_.getMessageOrBuilder(); - } else { - return queryRephraserSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec.getDefaultInstance() - : queryRephraserSpec_; - } + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .Builder + addEndUserMetadataBuilder(int index) { + return internalGetEndUserMetadataFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.getDefaultInstance()); } /** * * *
            -       * Query rephraser specification.
            +       * Optional. End user metadata.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; + * repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData end_user_metadata = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpecOrBuilder> - internalGetQueryRephraserSpecFieldBuilder() { - if (queryRephraserSpecBuilder_ == null) { - queryRephraserSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpec.Builder, - com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec - .QueryRephraserSpecOrBuilder>( - getQueryRephraserSpec(), getParentForChildren(), isClean()); - queryRephraserSpec_ = null; + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .Builder> + getEndUserMetadataBuilderList() { + return internalGetEndUserMetadataFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaData + .Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaDataOrBuilder> + internalGetEndUserMetadataFieldBuilder() { + if (endUserMetadataBuilder_ == null) { + endUserMetadataBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaData.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .EndUserMetaDataOrBuilder>( + endUserMetadata_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + endUserMetadata_ = null; } - return queryRephraserSpecBuilder_; + return endUserMetadataBuilder_; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec) - private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest - .QueryUnderstandingSpec + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec) + private static final com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec(); + new com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec(); } - public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + public static com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec 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 QueryUnderstandingSpec parsePartialFrom( + public EndUserSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -24189,17 +32634,17 @@ public QueryUnderstandingSpec 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.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -24219,6 +32664,12 @@ public com.google.protobuf.Parser getParserForType() { * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, * or * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + * + * Or the resource name of the agent engine serving config, such as: + * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + * (use when `enable_agent_invocation` set to true, and you have custom + * `AI_MODE` agent engine configured) + * * This field is used to identify the serving configuration name, set * of models used to make the search. *
            @@ -24250,6 +32701,12 @@ public java.lang.String getServingConfig() { * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, * or * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + * + * Or the resource name of the agent engine serving config, such as: + * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + * (use when `enable_agent_invocation` set to true, and you have custom + * `AI_MODE` agent engine configured) + * * This field is used to identify the serving configuration name, set * of models used to make the search. *
            @@ -24789,7 +33246,7 @@ public boolean hasQueryUnderstandingSpec() { * * @deprecated google.cloud.discoveryengine.v1beta.AnswerQueryRequest.asynchronous_mode is * deprecated. See - * google/cloud/discoveryengine/v1beta/conversational_search_service.proto;l=861 + * google/cloud/discoveryengine/v1beta/conversational_search_service.proto;l=1021 * @return The asynchronousMode. */ @java.lang.Override @@ -25038,6 +33495,68 @@ public java.lang.String getUserLabelsOrThrow(java.lang.String key) { return map.get(key); } + public static final int END_USER_SPEC_FIELD_NUMBER = 14; + private com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec endUserSpec_; + + /** + * + * + *
            +   * Optional. End user specification.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec end_user_spec = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endUserSpec field is set. + */ + @java.lang.Override + public boolean hasEndUserSpec() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
            +   * Optional. End user specification.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec end_user_spec = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endUserSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec getEndUserSpec() { + return endUserSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .getDefaultInstance() + : endUserSpec_; + } + + /** + * + * + *
            +   * Optional. End user specification.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec end_user_spec = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpecOrBuilder + getEndUserSpecOrBuilder() { + return endUserSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .getDefaultInstance() + : endUserSpec_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -25087,6 +33606,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 13); + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(14, getEndUserSpec()); + } getUnknownFields().writeTo(output); } @@ -25142,6 +33664,9 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, userLabels__); } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getEndUserSpec()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -25191,6 +33716,10 @@ public boolean equals(final java.lang.Object obj) { if (getAsynchronousMode() != other.getAsynchronousMode()) return false; if (!getUserPseudoId().equals(other.getUserPseudoId())) return false; if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false; + if (hasEndUserSpec() != other.hasEndUserSpec()) return false; + if (hasEndUserSpec()) { + if (!getEndUserSpec().equals(other.getEndUserSpec())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -25242,6 +33771,10 @@ public int hashCode() { hash = (37 * hash) + USER_LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetUserLabels().hashCode(); } + if (hasEndUserSpec()) { + hash = (37 * hash) + END_USER_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getEndUserSpec().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -25415,6 +33948,7 @@ private void maybeForceBuilderInitialization() { internalGetAnswerGenerationSpecFieldBuilder(); internalGetSearchSpecFieldBuilder(); internalGetQueryUnderstandingSpecFieldBuilder(); + internalGetEndUserSpecFieldBuilder(); } } @@ -25462,6 +33996,11 @@ public Builder clear() { asynchronousMode_ = false; userPseudoId_ = ""; internalGetMutableUserLabels().clear(); + endUserSpec_ = null; + if (endUserSpecBuilder_ != null) { + endUserSpecBuilder_.dispose(); + endUserSpecBuilder_ = null; + } return this; } @@ -25553,6 +34092,11 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.AnswerQueryRe result.userLabels_ = internalGetUserLabels(); result.userLabels_.makeImmutable(); } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.endUserSpec_ = + endUserSpecBuilder_ == null ? endUserSpec_ : endUserSpecBuilder_.build(); + to_bitField0_ |= 0x00000080; + } result.bitField0_ |= to_bitField0_; } @@ -25610,6 +34154,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.AnswerQueryRequ } internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels()); bitField0_ |= 0x00000800; + if (other.hasEndUserSpec()) { + mergeEndUserSpec(other.getEndUserSpec()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -25721,6 +34268,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000800; break; } // case 106 + case 114: + { + input.readMessage( + internalGetEndUserSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -25750,6 +34304,12 @@ public Builder mergeFrom( * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, * or * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + * + * Or the resource name of the agent engine serving config, such as: + * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + * (use when `enable_agent_invocation` set to true, and you have custom + * `AI_MODE` agent engine configured) + * * This field is used to identify the serving configuration name, set * of models used to make the search. *
            @@ -25780,6 +34340,12 @@ public java.lang.String getServingConfig() { * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, * or * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + * + * Or the resource name of the agent engine serving config, such as: + * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + * (use when `enable_agent_invocation` set to true, and you have custom + * `AI_MODE` agent engine configured) + * * This field is used to identify the serving configuration name, set * of models used to make the search. *
            @@ -25810,6 +34376,12 @@ public com.google.protobuf.ByteString getServingConfigBytes() { * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, * or * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + * + * Or the resource name of the agent engine serving config, such as: + * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + * (use when `enable_agent_invocation` set to true, and you have custom + * `AI_MODE` agent engine configured) + * * This field is used to identify the serving configuration name, set * of models used to make the search. *
            @@ -25839,6 +34411,12 @@ public Builder setServingConfig(java.lang.String value) { * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, * or * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + * + * Or the resource name of the agent engine serving config, such as: + * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + * (use when `enable_agent_invocation` set to true, and you have custom + * `AI_MODE` agent engine configured) + * * This field is used to identify the serving configuration name, set * of models used to make the search. *
            @@ -25864,6 +34442,12 @@ public Builder clearServingConfig() { * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, * or * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + * + * Or the resource name of the agent engine serving config, such as: + * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + * (use when `enable_agent_invocation` set to true, and you have custom + * `AI_MODE` agent engine configured) + * * This field is used to identify the serving configuration name, set * of models used to make the search. *
            @@ -27594,7 +36178,7 @@ public Builder clearQueryUnderstandingSpec() { * * @deprecated google.cloud.discoveryengine.v1beta.AnswerQueryRequest.asynchronous_mode is * deprecated. See - * google/cloud/discoveryengine/v1beta/conversational_search_service.proto;l=861 + * google/cloud/discoveryengine/v1beta/conversational_search_service.proto;l=1021 * @return The asynchronousMode. */ @java.lang.Override @@ -27625,7 +36209,7 @@ public boolean getAsynchronousMode() { * * @deprecated google.cloud.discoveryengine.v1beta.AnswerQueryRequest.asynchronous_mode is * deprecated. See - * google/cloud/discoveryengine/v1beta/conversational_search_service.proto;l=861 + * google/cloud/discoveryengine/v1beta/conversational_search_service.proto;l=1021 * @param value The asynchronousMode to set. * @return This builder for chaining. */ @@ -27660,7 +36244,7 @@ public Builder setAsynchronousMode(boolean value) { * * @deprecated google.cloud.discoveryengine.v1beta.AnswerQueryRequest.asynchronous_mode is * deprecated. See - * google/cloud/discoveryengine/v1beta/conversational_search_service.proto;l=861 + * google/cloud/discoveryengine/v1beta/conversational_search_service.proto;l=1021 * @return This builder for chaining. */ @java.lang.Deprecated @@ -28109,6 +36693,228 @@ public Builder putAllUserLabels(java.util.Map + endUserSpecBuilder_; + + /** + * + * + *
            +     * Optional. End user specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec end_user_spec = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endUserSpec field is set. + */ + public boolean hasEndUserSpec() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
            +     * Optional. End user specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec end_user_spec = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endUserSpec. + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec getEndUserSpec() { + if (endUserSpecBuilder_ == null) { + return endUserSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .getDefaultInstance() + : endUserSpec_; + } else { + return endUserSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. End user specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec end_user_spec = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndUserSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec value) { + if (endUserSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endUserSpec_ = value; + } else { + endUserSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. End user specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec end_user_spec = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndUserSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.Builder + builderForValue) { + if (endUserSpecBuilder_ == null) { + endUserSpec_ = builderForValue.build(); + } else { + endUserSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. End user specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec end_user_spec = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEndUserSpec( + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec value) { + if (endUserSpecBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && endUserSpec_ != null + && endUserSpec_ + != com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .getDefaultInstance()) { + getEndUserSpecBuilder().mergeFrom(value); + } else { + endUserSpec_ = value; + } + } else { + endUserSpecBuilder_.mergeFrom(value); + } + if (endUserSpec_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. End user specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec end_user_spec = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEndUserSpec() { + bitField0_ = (bitField0_ & ~0x00001000); + endUserSpec_ = null; + if (endUserSpecBuilder_ != null) { + endUserSpecBuilder_.dispose(); + endUserSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. End user specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec end_user_spec = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.Builder + getEndUserSpecBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return internalGetEndUserSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. End user specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec end_user_spec = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpecOrBuilder + getEndUserSpecOrBuilder() { + if (endUserSpecBuilder_ != null) { + return endUserSpecBuilder_.getMessageOrBuilder(); + } else { + return endUserSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec + .getDefaultInstance() + : endUserSpec_; + } + } + + /** + * + * + *
            +     * Optional. End user specification.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec end_user_spec = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpecOrBuilder> + internalGetEndUserSpecFieldBuilder() { + if (endUserSpecBuilder_ == null) { + endUserSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpecOrBuilder>( + getEndUserSpec(), getParentForChildren(), isClean()); + endUserSpec_ = null; + } + return endUserSpecBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AnswerQueryRequest) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryRequestOrBuilder.java index c2e5b5ec95f8..ea6689e21f4c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AnswerQueryRequestOrBuilder.java @@ -34,6 +34,12 @@ public interface AnswerQueryRequestOrBuilder * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, * or * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + * + * Or the resource name of the agent engine serving config, such as: + * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + * (use when `enable_agent_invocation` set to true, and you have custom + * `AI_MODE` agent engine configured) + * * This field is used to identify the serving configuration name, set * of models used to make the search. *
            @@ -54,6 +60,12 @@ public interface AnswerQueryRequestOrBuilder * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, * or * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + * + * Or the resource name of the agent engine serving config, such as: + * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + * (use when `enable_agent_invocation` set to true, and you have custom + * `AI_MODE` agent engine configured) + * * This field is used to identify the serving configuration name, set * of models used to make the search. *
            @@ -428,7 +440,7 @@ public interface AnswerQueryRequestOrBuilder * * @deprecated google.cloud.discoveryengine.v1beta.AnswerQueryRequest.asynchronous_mode is * deprecated. See - * google/cloud/discoveryengine/v1beta/conversational_search_service.proto;l=861 + * google/cloud/discoveryengine/v1beta/conversational_search_service.proto;l=1021 * @return The asynchronousMode. */ @java.lang.Deprecated @@ -618,4 +630,48 @@ java.lang.String getUserLabelsOrDefault( * map<string, string> user_labels = 13; */ java.lang.String getUserLabelsOrThrow(java.lang.String key); + + /** + * + * + *
            +   * Optional. End user specification.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec end_user_spec = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endUserSpec field is set. + */ + boolean hasEndUserSpec(); + + /** + * + * + *
            +   * Optional. End user specification.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec end_user_spec = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endUserSpec. + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec getEndUserSpec(); + + /** + * + * + *
            +   * Optional. End user specification.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpec end_user_spec = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpecOrBuilder + getEndUserSpecOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistAnswer.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistAnswer.java new file mode 100644 index 000000000000..cf01919066a5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistAnswer.java @@ -0,0 +1,8864 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assist_answer.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * AssistAnswer resource, main part of
            + * [AssistResponse][google.cloud.discoveryengine.v1beta.AssistResponse].
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AssistAnswer} + */ +@com.google.protobuf.Generated +public final class AssistAnswer extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AssistAnswer) + AssistAnswerOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AssistAnswer"); + } + + // Use AssistAnswer.newBuilder() to construct. + private AssistAnswer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistAnswer() { + name_ = ""; + state_ = 0; + replies_ = java.util.Collections.emptyList(); + assistSkippedReasons_ = emptyIntList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.class, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Builder.class); + } + + /** + * + * + *
            +   * State of the answer generation.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.AssistAnswer.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Unknown.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
            +     * Assist operation is currently in progress.
            +     * 
            + * + * IN_PROGRESS = 1; + */ + IN_PROGRESS(1), + /** + * + * + *
            +     * Assist operation has failed.
            +     * 
            + * + * FAILED = 2; + */ + FAILED(2), + /** + * + * + *
            +     * Assist operation has succeeded.
            +     * 
            + * + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * + * + *
            +     * Assist operation has been skipped.
            +     * 
            + * + * SKIPPED = 4; + */ + SKIPPED(4), + /** + * + * + *
            +     * Assist operation has been cancelled (e.g. client closed the stream).
            +     * May contain a partial response.
            +     * 
            + * + * CANCELLED = 5; + */ + CANCELLED(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
            +     * Unknown.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Assist operation is currently in progress.
            +     * 
            + * + * IN_PROGRESS = 1; + */ + public static final int IN_PROGRESS_VALUE = 1; + + /** + * + * + *
            +     * Assist operation has failed.
            +     * 
            + * + * FAILED = 2; + */ + public static final int FAILED_VALUE = 2; + + /** + * + * + *
            +     * Assist operation has succeeded.
            +     * 
            + * + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + + /** + * + * + *
            +     * Assist operation has been skipped.
            +     * 
            + * + * SKIPPED = 4; + */ + public static final int SKIPPED_VALUE = 4; + + /** + * + * + *
            +     * Assist operation has been cancelled (e.g. client closed the stream).
            +     * May contain a partial response.
            +     * 
            + * + * CANCELLED = 5; + */ + public static final int CANCELLED_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return IN_PROGRESS; + case 2: + return FAILED; + case 3: + return SUCCEEDED; + case 4: + return SKIPPED; + case 5: + return CANCELLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswer.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.AssistAnswer.State) + } + + /** + * + * + *
            +   * Possible reasons for not answering an assist call.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason} + */ + public enum AssistSkippedReason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Default value. Skip reason is not specified.
            +     * 
            + * + * ASSIST_SKIPPED_REASON_UNSPECIFIED = 0; + */ + ASSIST_SKIPPED_REASON_UNSPECIFIED(0), + /** + * + * + *
            +     * The assistant ignored the query, because it did not appear to be
            +     * answer-seeking.
            +     * 
            + * + * NON_ASSIST_SEEKING_QUERY_IGNORED = 1; + */ + NON_ASSIST_SEEKING_QUERY_IGNORED(1), + /** + * + * + *
            +     * The assistant ignored the query or refused to answer because of a
            +     * customer policy violation (e.g., the query or the answer contained a
            +     * banned phrase).
            +     * 
            + * + * CUSTOMER_POLICY_VIOLATION = 2; + */ + CUSTOMER_POLICY_VIOLATION(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AssistSkippedReason"); + } + + /** + * + * + *
            +     * Default value. Skip reason is not specified.
            +     * 
            + * + * ASSIST_SKIPPED_REASON_UNSPECIFIED = 0; + */ + public static final int ASSIST_SKIPPED_REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * The assistant ignored the query, because it did not appear to be
            +     * answer-seeking.
            +     * 
            + * + * NON_ASSIST_SEEKING_QUERY_IGNORED = 1; + */ + public static final int NON_ASSIST_SEEKING_QUERY_IGNORED_VALUE = 1; + + /** + * + * + *
            +     * The assistant ignored the query or refused to answer because of a
            +     * customer policy violation (e.g., the query or the answer contained a
            +     * banned phrase).
            +     * 
            + * + * CUSTOMER_POLICY_VIOLATION = 2; + */ + public static final int CUSTOMER_POLICY_VIOLATION_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 AssistSkippedReason 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 AssistSkippedReason forNumber(int value) { + switch (value) { + case 0: + return ASSIST_SKIPPED_REASON_UNSPECIFIED; + case 1: + return NON_ASSIST_SEEKING_QUERY_IGNORED; + case 2: + return CUSTOMER_POLICY_VIOLATION; + 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 AssistSkippedReason findValueByNumber(int number) { + return AssistSkippedReason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswer.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final AssistSkippedReason[] VALUES = values(); + + public static AssistSkippedReason 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 AssistSkippedReason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason) + } + + public interface ReplyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AssistAnswer.Reply) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Possibly grounded response text or media from the assistant.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent grounded_content = 1; + * + * + * @return Whether the groundedContent field is set. + */ + boolean hasGroundedContent(); + + /** + * + * + *
            +     * Possibly grounded response text or media from the assistant.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent grounded_content = 1; + * + * + * @return The groundedContent. + */ + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent getGroundedContent(); + + /** + * + * + *
            +     * Possibly grounded response text or media from the assistant.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent grounded_content = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContentOrBuilder + getGroundedContentOrBuilder(); + + /** + * + * + *
            +     * The time when the reply was created.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 14; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +     * The time when the reply was created.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 14; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +     * The time when the reply was created.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 14; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.ReplyCase getReplyCase(); + } + + /** + * + * + *
            +   * One part of the multi-part response of the assist call.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AssistAnswer.Reply} + */ + public static final class Reply extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AssistAnswer.Reply) + ReplyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Reply"); + } + + // Use Reply.newBuilder() to construct. + private Reply(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Reply() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_Reply_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_Reply_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.class, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.Builder.class); + } + + private int bitField0_; + private int replyCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object reply_; + + public enum ReplyCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GROUNDED_CONTENT(1), + REPLY_NOT_SET(0); + private final int value; + + private ReplyCase(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 ReplyCase valueOf(int value) { + return forNumber(value); + } + + public static ReplyCase forNumber(int value) { + switch (value) { + case 1: + return GROUNDED_CONTENT; + case 0: + return REPLY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ReplyCase getReplyCase() { + return ReplyCase.forNumber(replyCase_); + } + + public static final int GROUNDED_CONTENT_FIELD_NUMBER = 1; + + /** + * + * + *
            +     * Possibly grounded response text or media from the assistant.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent grounded_content = 1; + * + * + * @return Whether the groundedContent field is set. + */ + @java.lang.Override + public boolean hasGroundedContent() { + return replyCase_ == 1; + } + + /** + * + * + *
            +     * Possibly grounded response text or media from the assistant.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent grounded_content = 1; + * + * + * @return The groundedContent. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent getGroundedContent() { + if (replyCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent) reply_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.getDefaultInstance(); + } + + /** + * + * + *
            +     * Possibly grounded response text or media from the assistant.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent grounded_content = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContentOrBuilder + getGroundedContentOrBuilder() { + if (replyCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent) reply_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.getDefaultInstance(); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 14; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +     * The time when the reply was created.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 14; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * The time when the reply was created.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 14; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +     * The time when the reply was created.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 14; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + 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 (replyCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent) reply_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(14, getCreateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (replyCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent) reply_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getCreateTime()); + } + 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.v1beta.AssistAnswer.Reply)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply other = + (com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getReplyCase().equals(other.getReplyCase())) return false; + switch (replyCase_) { + case 1: + if (!getGroundedContent().equals(other.getGroundedContent())) 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(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + switch (replyCase_) { + case 1: + hash = (37 * hash) + GROUNDED_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getGroundedContent().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply 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.v1beta.AssistAnswer.Reply parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply parseFrom( + 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.v1beta.AssistAnswer.Reply parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * One part of the multi-part response of the assist call.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AssistAnswer.Reply} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AssistAnswer.Reply) + com.google.cloud.discoveryengine.v1beta.AssistAnswer.ReplyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_Reply_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_Reply_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.class, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (groundedContentBuilder_ != null) { + groundedContentBuilder_.clear(); + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + replyCase_ = 0; + reply_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_Reply_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply build() { + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply buildPartial() { + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply result = + new com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = + createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply result) { + result.replyCase_ = replyCase_; + result.reply_ = this.reply_; + if (replyCase_ == 1 && groundedContentBuilder_ != null) { + result.reply_ = groundedContentBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + switch (other.getReplyCase()) { + case GROUNDED_CONTENT: + { + mergeGroundedContent(other.getGroundedContent()); + break; + } + case REPLY_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( + internalGetGroundedContentFieldBuilder().getBuilder(), extensionRegistry); + replyCase_ = 1; + break; + } // case 10 + case 114: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 114 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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 replyCase_ = 0; + private java.lang.Object reply_; + + public ReplyCase getReplyCase() { + return ReplyCase.forNumber(replyCase_); + } + + public Builder clearReply() { + replyCase_ = 0; + reply_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContentOrBuilder> + groundedContentBuilder_; + + /** + * + * + *
            +       * Possibly grounded response text or media from the assistant.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent grounded_content = 1; + * + * + * @return Whether the groundedContent field is set. + */ + @java.lang.Override + public boolean hasGroundedContent() { + return replyCase_ == 1; + } + + /** + * + * + *
            +       * Possibly grounded response text or media from the assistant.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent grounded_content = 1; + * + * + * @return The groundedContent. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent getGroundedContent() { + if (groundedContentBuilder_ == null) { + if (replyCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent) reply_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .getDefaultInstance(); + } else { + if (replyCase_ == 1) { + return groundedContentBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .getDefaultInstance(); + } + } + + /** + * + * + *
            +       * Possibly grounded response text or media from the assistant.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent grounded_content = 1; + * + */ + public Builder setGroundedContent( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent value) { + if (groundedContentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reply_ = value; + onChanged(); + } else { + groundedContentBuilder_.setMessage(value); + } + replyCase_ = 1; + return this; + } + + /** + * + * + *
            +       * Possibly grounded response text or media from the assistant.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent grounded_content = 1; + * + */ + public Builder setGroundedContent( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.Builder + builderForValue) { + if (groundedContentBuilder_ == null) { + reply_ = builderForValue.build(); + onChanged(); + } else { + groundedContentBuilder_.setMessage(builderForValue.build()); + } + replyCase_ = 1; + return this; + } + + /** + * + * + *
            +       * Possibly grounded response text or media from the assistant.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent grounded_content = 1; + * + */ + public Builder mergeGroundedContent( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent value) { + if (groundedContentBuilder_ == null) { + if (replyCase_ == 1 + && reply_ + != com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .getDefaultInstance()) { + reply_ = + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.newBuilder( + (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent) reply_) + .mergeFrom(value) + .buildPartial(); + } else { + reply_ = value; + } + onChanged(); + } else { + if (replyCase_ == 1) { + groundedContentBuilder_.mergeFrom(value); + } else { + groundedContentBuilder_.setMessage(value); + } + } + replyCase_ = 1; + return this; + } + + /** + * + * + *
            +       * Possibly grounded response text or media from the assistant.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent grounded_content = 1; + * + */ + public Builder clearGroundedContent() { + if (groundedContentBuilder_ == null) { + if (replyCase_ == 1) { + replyCase_ = 0; + reply_ = null; + onChanged(); + } + } else { + if (replyCase_ == 1) { + replyCase_ = 0; + reply_ = null; + } + groundedContentBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Possibly grounded response text or media from the assistant.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent grounded_content = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.Builder + getGroundedContentBuilder() { + return internalGetGroundedContentFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Possibly grounded response text or media from the assistant.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent grounded_content = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContentOrBuilder + getGroundedContentOrBuilder() { + if ((replyCase_ == 1) && (groundedContentBuilder_ != null)) { + return groundedContentBuilder_.getMessageOrBuilder(); + } else { + if (replyCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent) reply_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .getDefaultInstance(); + } + } + + /** + * + * + *
            +       * Possibly grounded response text or media from the assistant.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent grounded_content = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContentOrBuilder> + internalGetGroundedContentFieldBuilder() { + if (groundedContentBuilder_ == null) { + if (!(replyCase_ == 1)) { + reply_ = + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .getDefaultInstance(); + } + groundedContentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContentOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent) reply_, + getParentForChildren(), + isClean()); + reply_ = null; + } + replyCase_ = 1; + onChanged(); + return groundedContentBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +       * The time when the reply was created.
            +       * 
            + * + * .google.protobuf.Timestamp create_time = 14; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +       * The time when the reply was created.
            +       * 
            + * + * .google.protobuf.Timestamp create_time = 14; + * + * @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(); + } + } + + /** + * + * + *
            +       * The time when the reply was created.
            +       * 
            + * + * .google.protobuf.Timestamp create_time = 14; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The time when the reply was created.
            +       * 
            + * + * .google.protobuf.Timestamp create_time = 14; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The time when the reply was created.
            +       * 
            + * + * .google.protobuf.Timestamp create_time = 14; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * The time when the reply was created.
            +       * 
            + * + * .google.protobuf.Timestamp create_time = 14; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * The time when the reply was created.
            +       * 
            + * + * .google.protobuf.Timestamp create_time = 14; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * The time when the reply was created.
            +       * 
            + * + * .google.protobuf.Timestamp create_time = 14; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +       * The time when the reply was created.
            +       * 
            + * + * .google.protobuf.Timestamp create_time = 14; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AssistAnswer.Reply) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AssistAnswer.Reply) + private static final com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply(); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Reply parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AssistAnswer.Reply getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CustomerPolicyEnforcementResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Final verdict of the customer policy enforcement. If only one policy
            +     * blocked the processing, the verdict is BLOCK.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1; + * + * + * @return The enum numeric value on the wire for verdict. + */ + int getVerdictValue(); + + /** + * + * + *
            +     * Final verdict of the customer policy enforcement. If only one policy
            +     * blocked the processing, the verdict is BLOCK.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1; + * + * + * @return The verdict. + */ + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.Verdict + getVerdict(); + + /** + * + * + *
            +     * Customer policy enforcement results.
            +     * Populated only if the assist call was skipped due to a policy
            +     * violation. It contains results from those filters that blocked the
            +     * processing of the query.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult> + getPolicyResultsList(); + + /** + * + * + *
            +     * Customer policy enforcement results.
            +     * Populated only if the assist call was skipped due to a policy
            +     * violation. It contains results from those filters that blocked the
            +     * processing of the query.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + getPolicyResults(int index); + + /** + * + * + *
            +     * Customer policy enforcement results.
            +     * Populated only if the assist call was skipped due to a policy
            +     * violation. It contains results from those filters that blocked the
            +     * processing of the query.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + int getPolicyResultsCount(); + + /** + * + * + *
            +     * Customer policy enforcement results.
            +     * Populated only if the assist call was skipped due to a policy
            +     * violation. It contains results from those filters that blocked the
            +     * processing of the query.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResultOrBuilder> + getPolicyResultsOrBuilderList(); + + /** + * + * + *
            +     * Customer policy enforcement results.
            +     * Populated only if the assist call was skipped due to a policy
            +     * violation. It contains results from those filters that blocked the
            +     * processing of the query.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResultOrBuilder + getPolicyResultsOrBuilder(int index); + } + + /** + * + * + *
            +   * Customer policy enforcement results. Contains the results of the various
            +   * policy checks, like the banned phrases or the Model Armor checks.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult} + */ + public static final class CustomerPolicyEnforcementResult + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult) + CustomerPolicyEnforcementResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CustomerPolicyEnforcementResult"); + } + + // Use CustomerPolicyEnforcementResult.newBuilder() to construct. + private CustomerPolicyEnforcementResult( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomerPolicyEnforcementResult() { + verdict_ = 0; + policyResults_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .class, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .Builder.class); + } + + /** + * + * + *
            +     * The verdict of the customer policy enforcement.
            +     * 
            + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.Verdict} + */ + public enum Verdict implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Unknown value.
            +       * 
            + * + * UNSPECIFIED = 0; + */ + UNSPECIFIED(0), + /** + * + * + *
            +       * There was no policy violation.
            +       * 
            + * + * ALLOW = 1; + */ + ALLOW(1), + /** + * + * + *
            +       * Processing was blocked by the customer policy.
            +       * 
            + * + * BLOCK = 2; + */ + BLOCK(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Verdict"); + } + + /** + * + * + *
            +       * Unknown value.
            +       * 
            + * + * UNSPECIFIED = 0; + */ + public static final int UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +       * There was no policy violation.
            +       * 
            + * + * ALLOW = 1; + */ + public static final int ALLOW_VALUE = 1; + + /** + * + * + *
            +       * Processing was blocked by the customer policy.
            +       * 
            + * + * BLOCK = 2; + */ + public static final int BLOCK_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 Verdict 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 Verdict forNumber(int value) { + switch (value) { + case 0: + return UNSPECIFIED; + case 1: + return ALLOW; + case 2: + return BLOCK; + 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 Verdict findValueByNumber(int number) { + return Verdict.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Verdict[] VALUES = values(); + + public static Verdict 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 Verdict(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.Verdict) + } + + public interface BannedPhraseEnforcementResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * The banned phrases that were found in the query or the answer.
            +       * 
            + * + * repeated string banned_phrases = 1; + * + * @return A list containing the bannedPhrases. + */ + java.util.List getBannedPhrasesList(); + + /** + * + * + *
            +       * The banned phrases that were found in the query or the answer.
            +       * 
            + * + * repeated string banned_phrases = 1; + * + * @return The count of bannedPhrases. + */ + int getBannedPhrasesCount(); + + /** + * + * + *
            +       * The banned phrases that were found in the query or the answer.
            +       * 
            + * + * repeated string banned_phrases = 1; + * + * @param index The index of the element to return. + * @return The bannedPhrases at the given index. + */ + java.lang.String getBannedPhrases(int index); + + /** + * + * + *
            +       * The banned phrases that were found in the query or the answer.
            +       * 
            + * + * repeated string banned_phrases = 1; + * + * @param index The index of the value to return. + * @return The bytes of the bannedPhrases at the given index. + */ + com.google.protobuf.ByteString getBannedPhrasesBytes(int index); + } + + /** + * + * + *
            +     * Customer policy enforcement result for the banned phrase policy.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult} + */ + public static final class BannedPhraseEnforcementResult + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + BannedPhraseEnforcementResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BannedPhraseEnforcementResult"); + } + + // Use BannedPhraseEnforcementResult.newBuilder() to construct. + private BannedPhraseEnforcementResult( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BannedPhraseEnforcementResult() { + bannedPhrases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.class, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.Builder.class); + } + + public static final int BANNED_PHRASES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList bannedPhrases_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +       * The banned phrases that were found in the query or the answer.
            +       * 
            + * + * repeated string banned_phrases = 1; + * + * @return A list containing the bannedPhrases. + */ + public com.google.protobuf.ProtocolStringList getBannedPhrasesList() { + return bannedPhrases_; + } + + /** + * + * + *
            +       * The banned phrases that were found in the query or the answer.
            +       * 
            + * + * repeated string banned_phrases = 1; + * + * @return The count of bannedPhrases. + */ + public int getBannedPhrasesCount() { + return bannedPhrases_.size(); + } + + /** + * + * + *
            +       * The banned phrases that were found in the query or the answer.
            +       * 
            + * + * repeated string banned_phrases = 1; + * + * @param index The index of the element to return. + * @return The bannedPhrases at the given index. + */ + public java.lang.String getBannedPhrases(int index) { + return bannedPhrases_.get(index); + } + + /** + * + * + *
            +       * The banned phrases that were found in the query or the answer.
            +       * 
            + * + * repeated string banned_phrases = 1; + * + * @param index The index of the value to return. + * @return The bytes of the bannedPhrases at the given index. + */ + public com.google.protobuf.ByteString getBannedPhrasesBytes(int index) { + return bannedPhrases_.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 < bannedPhrases_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, bannedPhrases_.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 < bannedPhrases_.size(); i++) { + dataSize += computeStringSizeNoTag(bannedPhrases_.getRaw(i)); + } + size += dataSize; + size += 1 * getBannedPhrasesList().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.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + other = + (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + obj; + + if (!getBannedPhrasesList().equals(other.getBannedPhrasesList())) 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 (getBannedPhrasesCount() > 0) { + hash = (37 * hash) + BANNED_PHRASES_FIELD_NUMBER; + hash = (53 * hash) + getBannedPhrasesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult + 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.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult + parseFrom( + 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.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Customer policy enforcement result for the banned phrase policy.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.class, + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bannedPhrases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + build() { + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + result = + new com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + bannedPhrases_.makeImmutable(); + result.bannedPhrases_ = bannedPhrases_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult + .getDefaultInstance()) return this; + if (!other.bannedPhrases_.isEmpty()) { + if (bannedPhrases_.isEmpty()) { + bannedPhrases_ = other.bannedPhrases_; + bitField0_ |= 0x00000001; + } else { + ensureBannedPhrasesIsMutable(); + bannedPhrases_.addAll(other.bannedPhrases_); + } + 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(); + ensureBannedPhrasesIsMutable(); + bannedPhrases_.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 bannedPhrases_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureBannedPhrasesIsMutable() { + if (!bannedPhrases_.isModifiable()) { + bannedPhrases_ = new com.google.protobuf.LazyStringArrayList(bannedPhrases_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
            +         * The banned phrases that were found in the query or the answer.
            +         * 
            + * + * repeated string banned_phrases = 1; + * + * @return A list containing the bannedPhrases. + */ + public com.google.protobuf.ProtocolStringList getBannedPhrasesList() { + bannedPhrases_.makeImmutable(); + return bannedPhrases_; + } + + /** + * + * + *
            +         * The banned phrases that were found in the query or the answer.
            +         * 
            + * + * repeated string banned_phrases = 1; + * + * @return The count of bannedPhrases. + */ + public int getBannedPhrasesCount() { + return bannedPhrases_.size(); + } + + /** + * + * + *
            +         * The banned phrases that were found in the query or the answer.
            +         * 
            + * + * repeated string banned_phrases = 1; + * + * @param index The index of the element to return. + * @return The bannedPhrases at the given index. + */ + public java.lang.String getBannedPhrases(int index) { + return bannedPhrases_.get(index); + } + + /** + * + * + *
            +         * The banned phrases that were found in the query or the answer.
            +         * 
            + * + * repeated string banned_phrases = 1; + * + * @param index The index of the value to return. + * @return The bytes of the bannedPhrases at the given index. + */ + public com.google.protobuf.ByteString getBannedPhrasesBytes(int index) { + return bannedPhrases_.getByteString(index); + } + + /** + * + * + *
            +         * The banned phrases that were found in the query or the answer.
            +         * 
            + * + * repeated string banned_phrases = 1; + * + * @param index The index to set the value at. + * @param value The bannedPhrases to set. + * @return This builder for chaining. + */ + public Builder setBannedPhrases(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBannedPhrasesIsMutable(); + bannedPhrases_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * The banned phrases that were found in the query or the answer.
            +         * 
            + * + * repeated string banned_phrases = 1; + * + * @param value The bannedPhrases to add. + * @return This builder for chaining. + */ + public Builder addBannedPhrases(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBannedPhrasesIsMutable(); + bannedPhrases_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * The banned phrases that were found in the query or the answer.
            +         * 
            + * + * repeated string banned_phrases = 1; + * + * @param values The bannedPhrases to add. + * @return This builder for chaining. + */ + public Builder addAllBannedPhrases(java.lang.Iterable values) { + ensureBannedPhrasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bannedPhrases_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * The banned phrases that were found in the query or the answer.
            +         * 
            + * + * repeated string banned_phrases = 1; + * + * @return This builder for chaining. + */ + public Builder clearBannedPhrases() { + bannedPhrases_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +         * The banned phrases that were found in the query or the answer.
            +         * 
            + * + * repeated string banned_phrases = 1; + * + * @param value The bytes of the bannedPhrases to add. + * @return This builder for chaining. + */ + public Builder addBannedPhrasesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureBannedPhrasesIsMutable(); + bannedPhrases_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + private static final com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult(); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BannedPhraseEnforcementResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ModelArmorEnforcementResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * The Model Armor violation that was found.
            +       * 
            + * + * string model_armor_violation = 1; + * + * @return Whether the modelArmorViolation field is set. + */ + boolean hasModelArmorViolation(); + + /** + * + * + *
            +       * The Model Armor violation that was found.
            +       * 
            + * + * string model_armor_violation = 1; + * + * @return The modelArmorViolation. + */ + java.lang.String getModelArmorViolation(); + + /** + * + * + *
            +       * The Model Armor violation that was found.
            +       * 
            + * + * string model_armor_violation = 1; + * + * @return The bytes for modelArmorViolation. + */ + com.google.protobuf.ByteString getModelArmorViolationBytes(); + + /** + * + * + *
            +       * The error returned by Model Armor if the policy enforcement failed
            +       * for some reason.
            +       * 
            + * + * .google.rpc.Status error = 2; + * + * @return Whether the error field is set. + */ + boolean hasError(); + + /** + * + * + *
            +       * The error returned by Model Armor if the policy enforcement failed
            +       * for some reason.
            +       * 
            + * + * .google.rpc.Status error = 2; + * + * @return The error. + */ + com.google.rpc.Status getError(); + + /** + * + * + *
            +       * The error returned by Model Armor if the policy enforcement failed
            +       * for some reason.
            +       * 
            + * + * .google.rpc.Status error = 2; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.ResultCase + getResultCase(); + } + + /** + * + * + *
            +     * Customer policy enforcement result for the Model Armor policy.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult} + */ + public static final class ModelArmorEnforcementResult + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + ModelArmorEnforcementResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ModelArmorEnforcementResult"); + } + + // Use ModelArmorEnforcementResult.newBuilder() to construct. + private ModelArmorEnforcementResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ModelArmorEnforcementResult() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.class, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.Builder.class); + } + + private int resultCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object result_; + + public enum ResultCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + MODEL_ARMOR_VIOLATION(1), + ERROR(2), + RESULT_NOT_SET(0); + private final int value; + + private ResultCase(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 ResultCase valueOf(int value) { + return forNumber(value); + } + + public static ResultCase forNumber(int value) { + switch (value) { + case 1: + return MODEL_ARMOR_VIOLATION; + case 2: + return ERROR; + case 0: + return RESULT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public static final int MODEL_ARMOR_VIOLATION_FIELD_NUMBER = 1; + + /** + * + * + *
            +       * The Model Armor violation that was found.
            +       * 
            + * + * string model_armor_violation = 1; + * + * @return Whether the modelArmorViolation field is set. + */ + public boolean hasModelArmorViolation() { + return resultCase_ == 1; + } + + /** + * + * + *
            +       * The Model Armor violation that was found.
            +       * 
            + * + * string model_armor_violation = 1; + * + * @return The modelArmorViolation. + */ + public java.lang.String getModelArmorViolation() { + java.lang.Object ref = ""; + if (resultCase_ == 1) { + ref = result_; + } + if (ref instanceof java.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 (resultCase_ == 1) { + result_ = s; + } + return s; + } + } + + /** + * + * + *
            +       * The Model Armor violation that was found.
            +       * 
            + * + * string model_armor_violation = 1; + * + * @return The bytes for modelArmorViolation. + */ + public com.google.protobuf.ByteString getModelArmorViolationBytes() { + java.lang.Object ref = ""; + if (resultCase_ == 1) { + ref = result_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (resultCase_ == 1) { + result_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 2; + + /** + * + * + *
            +       * The error returned by Model Armor if the policy enforcement failed
            +       * for some reason.
            +       * 
            + * + * .google.rpc.Status error = 2; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return resultCase_ == 2; + } + + /** + * + * + *
            +       * The error returned by Model Armor if the policy enforcement failed
            +       * for some reason.
            +       * 
            + * + * .google.rpc.Status error = 2; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + if (resultCase_ == 2) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + + /** + * + * + *
            +       * The error returned by Model Armor if the policy enforcement failed
            +       * for some reason.
            +       * 
            + * + * .google.rpc.Status error = 2; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (resultCase_ == 2) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.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 (resultCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, result_); + } + if (resultCase_ == 2) { + output.writeMessage(2, (com.google.rpc.Status) result_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resultCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, result_); + } + if (resultCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.rpc.Status) result_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + other = + (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + obj; + + if (!getResultCase().equals(other.getResultCase())) return false; + switch (resultCase_) { + case 1: + if (!getModelArmorViolation().equals(other.getModelArmorViolation())) return false; + break; + case 2: + if (!getError().equals(other.getError())) 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 (resultCase_) { + case 1: + hash = (37 * hash) + MODEL_ARMOR_VIOLATION_FIELD_NUMBER; + hash = (53 * hash) + getModelArmorViolation().hashCode(); + break; + case 2: + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult + 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.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult + parseFrom( + 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.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Customer policy enforcement result for the Model Armor policy.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult.class, + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (errorBuilder_ != null) { + errorBuilder_.clear(); + } + resultCase_ = 0; + result_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + build() { + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + result = + new com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + result) { + result.resultCase_ = resultCase_; + result.result_ = this.result_; + if (resultCase_ == 2 && errorBuilder_ != null) { + result.result_ = errorBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult.getDefaultInstance()) + return this; + switch (other.getResultCase()) { + case MODEL_ARMOR_VIOLATION: + { + resultCase_ = 1; + result_ = other.result_; + onChanged(); + break; + } + case ERROR: + { + mergeError(other.getError()); + break; + } + case RESULT_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(); + resultCase_ = 1; + result_ = s; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetErrorFieldBuilder().getBuilder(), extensionRegistry); + resultCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int resultCase_ = 0; + private java.lang.Object result_; + + public ResultCase getResultCase() { + return ResultCase.forNumber(resultCase_); + } + + public Builder clearResult() { + resultCase_ = 0; + result_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
            +         * The Model Armor violation that was found.
            +         * 
            + * + * string model_armor_violation = 1; + * + * @return Whether the modelArmorViolation field is set. + */ + @java.lang.Override + public boolean hasModelArmorViolation() { + return resultCase_ == 1; + } + + /** + * + * + *
            +         * The Model Armor violation that was found.
            +         * 
            + * + * string model_armor_violation = 1; + * + * @return The modelArmorViolation. + */ + @java.lang.Override + public java.lang.String getModelArmorViolation() { + java.lang.Object ref = ""; + if (resultCase_ == 1) { + ref = result_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (resultCase_ == 1) { + result_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * The Model Armor violation that was found.
            +         * 
            + * + * string model_armor_violation = 1; + * + * @return The bytes for modelArmorViolation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelArmorViolationBytes() { + java.lang.Object ref = ""; + if (resultCase_ == 1) { + ref = result_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (resultCase_ == 1) { + result_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * The Model Armor violation that was found.
            +         * 
            + * + * string model_armor_violation = 1; + * + * @param value The modelArmorViolation to set. + * @return This builder for chaining. + */ + public Builder setModelArmorViolation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resultCase_ = 1; + result_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +         * The Model Armor violation that was found.
            +         * 
            + * + * string model_armor_violation = 1; + * + * @return This builder for chaining. + */ + public Builder clearModelArmorViolation() { + if (resultCase_ == 1) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * The Model Armor violation that was found.
            +         * 
            + * + * string model_armor_violation = 1; + * + * @param value The bytes for modelArmorViolation to set. + * @return This builder for chaining. + */ + public Builder setModelArmorViolationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resultCase_ = 1; + result_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder> + errorBuilder_; + + /** + * + * + *
            +         * The error returned by Model Armor if the policy enforcement failed
            +         * for some reason.
            +         * 
            + * + * .google.rpc.Status error = 2; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return resultCase_ == 2; + } + + /** + * + * + *
            +         * The error returned by Model Armor if the policy enforcement failed
            +         * for some reason.
            +         * 
            + * + * .google.rpc.Status error = 2; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + if (resultCase_ == 2) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.getDefaultInstance(); + } else { + if (resultCase_ == 2) { + return errorBuilder_.getMessage(); + } + return com.google.rpc.Status.getDefaultInstance(); + } + } + + /** + * + * + *
            +         * The error returned by Model Armor if the policy enforcement failed
            +         * for some reason.
            +         * 
            + * + * .google.rpc.Status error = 2; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + result_ = value; + onChanged(); + } else { + errorBuilder_.setMessage(value); + } + resultCase_ = 2; + return this; + } + + /** + * + * + *
            +         * The error returned by Model Armor if the policy enforcement failed
            +         * for some reason.
            +         * 
            + * + * .google.rpc.Status error = 2; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + result_ = builderForValue.build(); + onChanged(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + resultCase_ = 2; + return this; + } + + /** + * + * + *
            +         * The error returned by Model Armor if the policy enforcement failed
            +         * for some reason.
            +         * 
            + * + * .google.rpc.Status error = 2; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (resultCase_ == 2 && result_ != com.google.rpc.Status.getDefaultInstance()) { + result_ = + com.google.rpc.Status.newBuilder((com.google.rpc.Status) result_) + .mergeFrom(value) + .buildPartial(); + } else { + result_ = value; + } + onChanged(); + } else { + if (resultCase_ == 2) { + errorBuilder_.mergeFrom(value); + } else { + errorBuilder_.setMessage(value); + } + } + resultCase_ = 2; + return this; + } + + /** + * + * + *
            +         * The error returned by Model Armor if the policy enforcement failed
            +         * for some reason.
            +         * 
            + * + * .google.rpc.Status error = 2; + */ + public Builder clearError() { + if (errorBuilder_ == null) { + if (resultCase_ == 2) { + resultCase_ = 0; + result_ = null; + onChanged(); + } + } else { + if (resultCase_ == 2) { + resultCase_ = 0; + result_ = null; + } + errorBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +         * The error returned by Model Armor if the policy enforcement failed
            +         * for some reason.
            +         * 
            + * + * .google.rpc.Status error = 2; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + return internalGetErrorFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * The error returned by Model Armor if the policy enforcement failed
            +         * for some reason.
            +         * 
            + * + * .google.rpc.Status error = 2; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if ((resultCase_ == 2) && (errorBuilder_ != null)) { + return errorBuilder_.getMessageOrBuilder(); + } else { + if (resultCase_ == 2) { + return (com.google.rpc.Status) result_; + } + return com.google.rpc.Status.getDefaultInstance(); + } + } + + /** + * + * + *
            +         * The error returned by Model Armor if the policy enforcement failed
            +         * for some reason.
            +         * 
            + * + * .google.rpc.Status error = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder> + internalGetErrorFieldBuilder() { + if (errorBuilder_ == null) { + if (!(resultCase_ == 2)) { + result_ = com.google.rpc.Status.getDefaultInstance(); + } + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + (com.google.rpc.Status) result_, getParentForChildren(), isClean()); + result_ = null; + } + resultCase_ = 2; + onChanged(); + return errorBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + private static final com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult(); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelArmorEnforcementResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PolicyEnforcementResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * The policy enforcement result for the banned phrase policy.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + * + * @return Whether the bannedPhraseEnforcementResult field is set. + */ + boolean hasBannedPhraseEnforcementResult(); + + /** + * + * + *
            +       * The policy enforcement result for the banned phrase policy.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + * + * @return The bannedPhraseEnforcementResult. + */ + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + getBannedPhraseEnforcementResult(); + + /** + * + * + *
            +       * The policy enforcement result for the banned phrase policy.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResultOrBuilder + getBannedPhraseEnforcementResultOrBuilder(); + + /** + * + * + *
            +       * The policy enforcement result for the Model Armor policy.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + * + * @return Whether the modelArmorEnforcementResult field is set. + */ + boolean hasModelArmorEnforcementResult(); + + /** + * + * + *
            +       * The policy enforcement result for the Model Armor policy.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + * + * @return The modelArmorEnforcementResult. + */ + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + getModelArmorEnforcementResult(); + + /** + * + * + *
            +       * The policy enforcement result for the Model Armor policy.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResultOrBuilder + getModelArmorEnforcementResultOrBuilder(); + + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.EnforcementResultCase + getEnforcementResultCase(); + } + + /** + * + * + *
            +     * Customer policy enforcement result for a single policy type.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult} + */ + public static final class PolicyEnforcementResult extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult) + PolicyEnforcementResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PolicyEnforcementResult"); + } + + // Use PolicyEnforcementResult.newBuilder() to construct. + private PolicyEnforcementResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PolicyEnforcementResult() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.class, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder.class); + } + + private int enforcementResultCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object enforcementResult_; + + public enum EnforcementResultCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + BANNED_PHRASE_ENFORCEMENT_RESULT(3), + MODEL_ARMOR_ENFORCEMENT_RESULT(4), + ENFORCEMENTRESULT_NOT_SET(0); + private final int value; + + private EnforcementResultCase(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 EnforcementResultCase valueOf(int value) { + return forNumber(value); + } + + public static EnforcementResultCase forNumber(int value) { + switch (value) { + case 3: + return BANNED_PHRASE_ENFORCEMENT_RESULT; + case 4: + return MODEL_ARMOR_ENFORCEMENT_RESULT; + case 0: + return ENFORCEMENTRESULT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EnforcementResultCase getEnforcementResultCase() { + return EnforcementResultCase.forNumber(enforcementResultCase_); + } + + public static final int BANNED_PHRASE_ENFORCEMENT_RESULT_FIELD_NUMBER = 3; + + /** + * + * + *
            +       * The policy enforcement result for the banned phrase policy.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + * + * @return Whether the bannedPhraseEnforcementResult field is set. + */ + @java.lang.Override + public boolean hasBannedPhraseEnforcementResult() { + return enforcementResultCase_ == 3; + } + + /** + * + * + *
            +       * The policy enforcement result for the banned phrase policy.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + * + * @return The bannedPhraseEnforcementResult. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + getBannedPhraseEnforcementResult() { + if (enforcementResultCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + enforcementResult_; + } + return com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.getDefaultInstance(); + } + + /** + * + * + *
            +       * The policy enforcement result for the banned phrase policy.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResultOrBuilder + getBannedPhraseEnforcementResultOrBuilder() { + if (enforcementResultCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + enforcementResult_; + } + return com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.getDefaultInstance(); + } + + public static final int MODEL_ARMOR_ENFORCEMENT_RESULT_FIELD_NUMBER = 4; + + /** + * + * + *
            +       * The policy enforcement result for the Model Armor policy.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + * + * @return Whether the modelArmorEnforcementResult field is set. + */ + @java.lang.Override + public boolean hasModelArmorEnforcementResult() { + return enforcementResultCase_ == 4; + } + + /** + * + * + *
            +       * The policy enforcement result for the Model Armor policy.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + * + * @return The modelArmorEnforcementResult. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + getModelArmorEnforcementResult() { + if (enforcementResultCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + enforcementResult_; + } + return com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.getDefaultInstance(); + } + + /** + * + * + *
            +       * The policy enforcement result for the Model Armor policy.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResultOrBuilder + getModelArmorEnforcementResultOrBuilder() { + if (enforcementResultCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + enforcementResult_; + } + return com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.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 (enforcementResultCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult) + enforcementResult_); + } + if (enforcementResultCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult) + enforcementResult_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enforcementResultCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + enforcementResult_); + } + if (enforcementResultCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + enforcementResult_); + } + 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.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + other = + (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult) + obj; + + if (!getEnforcementResultCase().equals(other.getEnforcementResultCase())) return false; + switch (enforcementResultCase_) { + case 3: + if (!getBannedPhraseEnforcementResult() + .equals(other.getBannedPhraseEnforcementResult())) return false; + break; + case 4: + if (!getModelArmorEnforcementResult().equals(other.getModelArmorEnforcementResult())) + 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 (enforcementResultCase_) { + case 3: + hash = (37 * hash) + BANNED_PHRASE_ENFORCEMENT_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getBannedPhraseEnforcementResult().hashCode(); + break; + case 4: + hash = (37 * hash) + MODEL_ARMOR_ENFORCEMENT_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getModelArmorEnforcementResult().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult + 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.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult + parseFrom( + 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.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Customer policy enforcement result for a single policy type.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult) + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult.class, + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (bannedPhraseEnforcementResultBuilder_ != null) { + bannedPhraseEnforcementResultBuilder_.clear(); + } + if (modelArmorEnforcementResultBuilder_ != null) { + modelArmorEnforcementResultBuilder_.clear(); + } + enforcementResultCase_ = 0; + enforcementResult_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + build() { + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + result = + new com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + result) { + result.enforcementResultCase_ = enforcementResultCase_; + result.enforcementResult_ = this.enforcementResult_; + if (enforcementResultCase_ == 3 && bannedPhraseEnforcementResultBuilder_ != null) { + result.enforcementResult_ = bannedPhraseEnforcementResultBuilder_.build(); + } + if (enforcementResultCase_ == 4 && modelArmorEnforcementResultBuilder_ != null) { + result.enforcementResult_ = modelArmorEnforcementResultBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult.getDefaultInstance()) + return this; + switch (other.getEnforcementResultCase()) { + case BANNED_PHRASE_ENFORCEMENT_RESULT: + { + mergeBannedPhraseEnforcementResult(other.getBannedPhraseEnforcementResult()); + break; + } + case MODEL_ARMOR_ENFORCEMENT_RESULT: + { + mergeModelArmorEnforcementResult(other.getModelArmorEnforcementResult()); + break; + } + case ENFORCEMENTRESULT_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 26: + { + input.readMessage( + internalGetBannedPhraseEnforcementResultFieldBuilder().getBuilder(), + extensionRegistry); + enforcementResultCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetModelArmorEnforcementResultFieldBuilder().getBuilder(), + extensionRegistry); + enforcementResultCase_ = 4; + 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 enforcementResultCase_ = 0; + private java.lang.Object enforcementResult_; + + public EnforcementResultCase getEnforcementResultCase() { + return EnforcementResultCase.forNumber(enforcementResultCase_); + } + + public Builder clearEnforcementResult() { + enforcementResultCase_ = 0; + enforcementResult_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResultOrBuilder> + bannedPhraseEnforcementResultBuilder_; + + /** + * + * + *
            +         * The policy enforcement result for the banned phrase policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + * + * @return Whether the bannedPhraseEnforcementResult field is set. + */ + @java.lang.Override + public boolean hasBannedPhraseEnforcementResult() { + return enforcementResultCase_ == 3; + } + + /** + * + * + *
            +         * The policy enforcement result for the banned phrase policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + * + * @return The bannedPhraseEnforcementResult. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + getBannedPhraseEnforcementResult() { + if (bannedPhraseEnforcementResultBuilder_ == null) { + if (enforcementResultCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + enforcementResult_; + } + return com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.getDefaultInstance(); + } else { + if (enforcementResultCase_ == 3) { + return bannedPhraseEnforcementResultBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.getDefaultInstance(); + } + } + + /** + * + * + *
            +         * The policy enforcement result for the banned phrase policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + */ + public Builder setBannedPhraseEnforcementResult( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + value) { + if (bannedPhraseEnforcementResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enforcementResult_ = value; + onChanged(); + } else { + bannedPhraseEnforcementResultBuilder_.setMessage(value); + } + enforcementResultCase_ = 3; + return this; + } + + /** + * + * + *
            +         * The policy enforcement result for the banned phrase policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + */ + public Builder setBannedPhraseEnforcementResult( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.Builder + builderForValue) { + if (bannedPhraseEnforcementResultBuilder_ == null) { + enforcementResult_ = builderForValue.build(); + onChanged(); + } else { + bannedPhraseEnforcementResultBuilder_.setMessage(builderForValue.build()); + } + enforcementResultCase_ = 3; + return this; + } + + /** + * + * + *
            +         * The policy enforcement result for the banned phrase policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + */ + public Builder mergeBannedPhraseEnforcementResult( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult + value) { + if (bannedPhraseEnforcementResultBuilder_ == null) { + if (enforcementResultCase_ == 3 + && enforcementResult_ + != com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult + .getDefaultInstance()) { + enforcementResult_ = + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.newBuilder( + (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + enforcementResult_) + .mergeFrom(value) + .buildPartial(); + } else { + enforcementResult_ = value; + } + onChanged(); + } else { + if (enforcementResultCase_ == 3) { + bannedPhraseEnforcementResultBuilder_.mergeFrom(value); + } else { + bannedPhraseEnforcementResultBuilder_.setMessage(value); + } + } + enforcementResultCase_ = 3; + return this; + } + + /** + * + * + *
            +         * The policy enforcement result for the banned phrase policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + */ + public Builder clearBannedPhraseEnforcementResult() { + if (bannedPhraseEnforcementResultBuilder_ == null) { + if (enforcementResultCase_ == 3) { + enforcementResultCase_ = 0; + enforcementResult_ = null; + onChanged(); + } + } else { + if (enforcementResultCase_ == 3) { + enforcementResultCase_ = 0; + enforcementResult_ = null; + } + bannedPhraseEnforcementResultBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +         * The policy enforcement result for the banned phrase policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.Builder + getBannedPhraseEnforcementResultBuilder() { + return internalGetBannedPhraseEnforcementResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * The policy enforcement result for the banned phrase policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResultOrBuilder + getBannedPhraseEnforcementResultOrBuilder() { + if ((enforcementResultCase_ == 3) && (bannedPhraseEnforcementResultBuilder_ != null)) { + return bannedPhraseEnforcementResultBuilder_.getMessageOrBuilder(); + } else { + if (enforcementResultCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + enforcementResult_; + } + return com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.getDefaultInstance(); + } + } + + /** + * + * + *
            +         * The policy enforcement result for the banned phrase policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResult.Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .BannedPhraseEnforcementResultOrBuilder> + internalGetBannedPhraseEnforcementResultFieldBuilder() { + if (bannedPhraseEnforcementResultBuilder_ == null) { + if (!(enforcementResultCase_ == 3)) { + enforcementResult_ = + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult + .getDefaultInstance(); + } + bannedPhraseEnforcementResultBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult, + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult.Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResultOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.BannedPhraseEnforcementResult) + enforcementResult_, + getParentForChildren(), + isClean()); + enforcementResult_ = null; + } + enforcementResultCase_ = 3; + onChanged(); + return bannedPhraseEnforcementResultBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResultOrBuilder> + modelArmorEnforcementResultBuilder_; + + /** + * + * + *
            +         * The policy enforcement result for the Model Armor policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + * + * @return Whether the modelArmorEnforcementResult field is set. + */ + @java.lang.Override + public boolean hasModelArmorEnforcementResult() { + return enforcementResultCase_ == 4; + } + + /** + * + * + *
            +         * The policy enforcement result for the Model Armor policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + * + * @return The modelArmorEnforcementResult. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + getModelArmorEnforcementResult() { + if (modelArmorEnforcementResultBuilder_ == null) { + if (enforcementResultCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + enforcementResult_; + } + return com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult.getDefaultInstance(); + } else { + if (enforcementResultCase_ == 4) { + return modelArmorEnforcementResultBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult.getDefaultInstance(); + } + } + + /** + * + * + *
            +         * The policy enforcement result for the Model Armor policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + */ + public Builder setModelArmorEnforcementResult( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + value) { + if (modelArmorEnforcementResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enforcementResult_ = value; + onChanged(); + } else { + modelArmorEnforcementResultBuilder_.setMessage(value); + } + enforcementResultCase_ = 4; + return this; + } + + /** + * + * + *
            +         * The policy enforcement result for the Model Armor policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + */ + public Builder setModelArmorEnforcementResult( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.Builder + builderForValue) { + if (modelArmorEnforcementResultBuilder_ == null) { + enforcementResult_ = builderForValue.build(); + onChanged(); + } else { + modelArmorEnforcementResultBuilder_.setMessage(builderForValue.build()); + } + enforcementResultCase_ = 4; + return this; + } + + /** + * + * + *
            +         * The policy enforcement result for the Model Armor policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + */ + public Builder mergeModelArmorEnforcementResult( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult + value) { + if (modelArmorEnforcementResultBuilder_ == null) { + if (enforcementResultCase_ == 4 + && enforcementResult_ + != com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult + .getDefaultInstance()) { + enforcementResult_ = + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult.newBuilder( + (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + enforcementResult_) + .mergeFrom(value) + .buildPartial(); + } else { + enforcementResult_ = value; + } + onChanged(); + } else { + if (enforcementResultCase_ == 4) { + modelArmorEnforcementResultBuilder_.mergeFrom(value); + } else { + modelArmorEnforcementResultBuilder_.setMessage(value); + } + } + enforcementResultCase_ = 4; + return this; + } + + /** + * + * + *
            +         * The policy enforcement result for the Model Armor policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + */ + public Builder clearModelArmorEnforcementResult() { + if (modelArmorEnforcementResultBuilder_ == null) { + if (enforcementResultCase_ == 4) { + enforcementResultCase_ = 0; + enforcementResult_ = null; + onChanged(); + } + } else { + if (enforcementResultCase_ == 4) { + enforcementResultCase_ = 0; + enforcementResult_ = null; + } + modelArmorEnforcementResultBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +         * The policy enforcement result for the Model Armor policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.Builder + getModelArmorEnforcementResultBuilder() { + return internalGetModelArmorEnforcementResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * The policy enforcement result for the Model Armor policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResultOrBuilder + getModelArmorEnforcementResultOrBuilder() { + if ((enforcementResultCase_ == 4) && (modelArmorEnforcementResultBuilder_ != null)) { + return modelArmorEnforcementResultBuilder_.getMessageOrBuilder(); + } else { + if (enforcementResultCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + enforcementResult_; + } + return com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult.getDefaultInstance(); + } + } + + /** + * + * + *
            +         * The policy enforcement result for the Model Armor policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.ModelArmorEnforcementResult model_armor_enforcement_result = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResult.Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .ModelArmorEnforcementResultOrBuilder> + internalGetModelArmorEnforcementResultFieldBuilder() { + if (modelArmorEnforcementResultBuilder_ == null) { + if (!(enforcementResultCase_ == 4)) { + enforcementResult_ = + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult + .getDefaultInstance(); + } + modelArmorEnforcementResultBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult, + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult.Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResultOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.ModelArmorEnforcementResult) + enforcementResult_, + getParentForChildren(), + isClean()); + enforcementResult_ = null; + } + enforcementResultCase_ = 4; + onChanged(); + return modelArmorEnforcementResultBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult) + private static final com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult(); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyEnforcementResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int VERDICT_FIELD_NUMBER = 1; + private int verdict_ = 0; + + /** + * + * + *
            +     * Final verdict of the customer policy enforcement. If only one policy
            +     * blocked the processing, the verdict is BLOCK.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1; + * + * + * @return The enum numeric value on the wire for verdict. + */ + @java.lang.Override + public int getVerdictValue() { + return verdict_; + } + + /** + * + * + *
            +     * Final verdict of the customer policy enforcement. If only one policy
            +     * blocked the processing, the verdict is BLOCK.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1; + * + * + * @return The verdict. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .Verdict + getVerdict() { + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.Verdict + result = + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .Verdict.forNumber(verdict_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .Verdict.UNRECOGNIZED + : result; + } + + public static final int POLICY_RESULTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult> + policyResults_; + + /** + * + * + *
            +     * Customer policy enforcement results.
            +     * Populated only if the assist call was skipped due to a policy
            +     * violation. It contains results from those filters that blocked the
            +     * processing of the query.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult> + getPolicyResultsList() { + return policyResults_; + } + + /** + * + * + *
            +     * Customer policy enforcement results.
            +     * Populated only if the assist call was skipped due to a policy
            +     * violation. It contains results from those filters that blocked the
            +     * processing of the query.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResultOrBuilder> + getPolicyResultsOrBuilderList() { + return policyResults_; + } + + /** + * + * + *
            +     * Customer policy enforcement results.
            +     * Populated only if the assist call was skipped due to a policy
            +     * violation. It contains results from those filters that blocked the
            +     * processing of the query.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + @java.lang.Override + public int getPolicyResultsCount() { + return policyResults_.size(); + } + + /** + * + * + *
            +     * Customer policy enforcement results.
            +     * Populated only if the assist call was skipped due to a policy
            +     * violation. It contains results from those filters that blocked the
            +     * processing of the query.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + getPolicyResults(int index) { + return policyResults_.get(index); + } + + /** + * + * + *
            +     * Customer policy enforcement results.
            +     * Populated only if the assist call was skipped due to a policy
            +     * violation. It contains results from those filters that blocked the
            +     * processing of the query.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResultOrBuilder + getPolicyResultsOrBuilder(int index) { + return policyResults_.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 (verdict_ + != com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .Verdict.UNSPECIFIED + .getNumber()) { + output.writeEnum(1, verdict_); + } + for (int i = 0; i < policyResults_.size(); i++) { + output.writeMessage(3, policyResults_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (verdict_ + != com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .Verdict.UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, verdict_); + } + for (int i = 0; i < policyResults_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, policyResults_.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.v1beta.AssistAnswer.CustomerPolicyEnforcementResult)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult other = + (com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult) + obj; + + if (verdict_ != other.verdict_) return false; + if (!getPolicyResultsList().equals(other.getPolicyResultsList())) 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) + VERDICT_FIELD_NUMBER; + hash = (53 * hash) + verdict_; + if (getPolicyResultsCount() > 0) { + hash = (37 * hash) + POLICY_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getPolicyResultsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult + 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.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult + parseFrom( + 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.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Customer policy enforcement results. Contains the results of the various
            +     * policy checks, like the banned phrases or the Model Armor checks.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult) + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .class, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + verdict_ = 0; + if (policyResultsBuilder_ == null) { + policyResults_ = java.util.Collections.emptyList(); + } else { + policyResults_ = null; + policyResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + build() { + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + result = + new com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + result) { + if (policyResultsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + policyResults_ = java.util.Collections.unmodifiableList(policyResults_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.policyResults_ = policyResults_; + } else { + result.policyResults_ = policyResultsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.verdict_ = verdict_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .getDefaultInstance()) return this; + if (other.verdict_ != 0) { + setVerdictValue(other.getVerdictValue()); + } + if (policyResultsBuilder_ == null) { + if (!other.policyResults_.isEmpty()) { + if (policyResults_.isEmpty()) { + policyResults_ = other.policyResults_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensurePolicyResultsIsMutable(); + policyResults_.addAll(other.policyResults_); + } + onChanged(); + } + } else { + if (!other.policyResults_.isEmpty()) { + if (policyResultsBuilder_.isEmpty()) { + policyResultsBuilder_.dispose(); + policyResultsBuilder_ = null; + policyResults_ = other.policyResults_; + bitField0_ = (bitField0_ & ~0x00000002); + policyResultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetPolicyResultsFieldBuilder() + : null; + } else { + policyResultsBuilder_.addAllMessages(other.policyResults_); + } + } + } + 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: + { + verdict_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 26: + { + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult.parser(), + extensionRegistry); + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + policyResults_.add(m); + } else { + policyResultsBuilder_.addMessage(m); + } + 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 verdict_ = 0; + + /** + * + * + *
            +       * Final verdict of the customer policy enforcement. If only one policy
            +       * blocked the processing, the verdict is BLOCK.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1; + * + * + * @return The enum numeric value on the wire for verdict. + */ + @java.lang.Override + public int getVerdictValue() { + return verdict_; + } + + /** + * + * + *
            +       * Final verdict of the customer policy enforcement. If only one policy
            +       * blocked the processing, the verdict is BLOCK.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1; + * + * + * @param value The enum numeric value on the wire for verdict to set. + * @return This builder for chaining. + */ + public Builder setVerdictValue(int value) { + verdict_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Final verdict of the customer policy enforcement. If only one policy
            +       * blocked the processing, the verdict is BLOCK.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1; + * + * + * @return The verdict. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .Verdict + getVerdict() { + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.Verdict + result = + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .Verdict.forNumber(verdict_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .Verdict.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Final verdict of the customer policy enforcement. If only one policy
            +       * blocked the processing, the verdict is BLOCK.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1; + * + * + * @param value The verdict to set. + * @return This builder for chaining. + */ + public Builder setVerdict( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .Verdict + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + verdict_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Final verdict of the customer policy enforcement. If only one policy
            +       * blocked the processing, the verdict is BLOCK.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.Verdict verdict = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearVerdict() { + bitField0_ = (bitField0_ & ~0x00000001); + verdict_ = 0; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult> + policyResults_ = java.util.Collections.emptyList(); + + private void ensurePolicyResultsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + policyResults_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult>(policyResults_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResultOrBuilder> + policyResultsBuilder_; + + /** + * + * + *
            +       * Customer policy enforcement results.
            +       * Populated only if the assist call was skipped due to a policy
            +       * violation. It contains results from those filters that blocked the
            +       * processing of the query.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult> + getPolicyResultsList() { + if (policyResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(policyResults_); + } else { + return policyResultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +       * Customer policy enforcement results.
            +       * Populated only if the assist call was skipped due to a policy
            +       * violation. It contains results from those filters that blocked the
            +       * processing of the query.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public int getPolicyResultsCount() { + if (policyResultsBuilder_ == null) { + return policyResults_.size(); + } else { + return policyResultsBuilder_.getCount(); + } + } + + /** + * + * + *
            +       * Customer policy enforcement results.
            +       * Populated only if the assist call was skipped due to a policy
            +       * violation. It contains results from those filters that blocked the
            +       * processing of the query.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + getPolicyResults(int index) { + if (policyResultsBuilder_ == null) { + return policyResults_.get(index); + } else { + return policyResultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +       * Customer policy enforcement results.
            +       * Populated only if the assist call was skipped due to a policy
            +       * violation. It contains results from those filters that blocked the
            +       * processing of the query.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public Builder setPolicyResults( + int index, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + value) { + if (policyResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyResultsIsMutable(); + policyResults_.set(index, value); + onChanged(); + } else { + policyResultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Customer policy enforcement results.
            +       * Populated only if the assist call was skipped due to a policy
            +       * violation. It contains results from those filters that blocked the
            +       * processing of the query.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public Builder setPolicyResults( + int index, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder + builderForValue) { + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + policyResults_.set(index, builderForValue.build()); + onChanged(); + } else { + policyResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Customer policy enforcement results.
            +       * Populated only if the assist call was skipped due to a policy
            +       * violation. It contains results from those filters that blocked the
            +       * processing of the query.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public Builder addPolicyResults( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + value) { + if (policyResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyResultsIsMutable(); + policyResults_.add(value); + onChanged(); + } else { + policyResultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +       * Customer policy enforcement results.
            +       * Populated only if the assist call was skipped due to a policy
            +       * violation. It contains results from those filters that blocked the
            +       * processing of the query.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public Builder addPolicyResults( + int index, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult + value) { + if (policyResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyResultsIsMutable(); + policyResults_.add(index, value); + onChanged(); + } else { + policyResultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Customer policy enforcement results.
            +       * Populated only if the assist call was skipped due to a policy
            +       * violation. It contains results from those filters that blocked the
            +       * processing of the query.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public Builder addPolicyResults( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder + builderForValue) { + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + policyResults_.add(builderForValue.build()); + onChanged(); + } else { + policyResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Customer policy enforcement results.
            +       * Populated only if the assist call was skipped due to a policy
            +       * violation. It contains results from those filters that blocked the
            +       * processing of the query.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public Builder addPolicyResults( + int index, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder + builderForValue) { + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + policyResults_.add(index, builderForValue.build()); + onChanged(); + } else { + policyResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Customer policy enforcement results.
            +       * Populated only if the assist call was skipped due to a policy
            +       * violation. It contains results from those filters that blocked the
            +       * processing of the query.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public Builder addAllPolicyResults( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult> + values) { + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyResults_); + onChanged(); + } else { + policyResultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * Customer policy enforcement results.
            +       * Populated only if the assist call was skipped due to a policy
            +       * violation. It contains results from those filters that blocked the
            +       * processing of the query.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public Builder clearPolicyResults() { + if (policyResultsBuilder_ == null) { + policyResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + policyResultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Customer policy enforcement results.
            +       * Populated only if the assist call was skipped due to a policy
            +       * violation. It contains results from those filters that blocked the
            +       * processing of the query.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public Builder removePolicyResults(int index) { + if (policyResultsBuilder_ == null) { + ensurePolicyResultsIsMutable(); + policyResults_.remove(index); + onChanged(); + } else { + policyResultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * Customer policy enforcement results.
            +       * Populated only if the assist call was skipped due to a policy
            +       * violation. It contains results from those filters that blocked the
            +       * processing of the query.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder + getPolicyResultsBuilder(int index) { + return internalGetPolicyResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * Customer policy enforcement results.
            +       * Populated only if the assist call was skipped due to a policy
            +       * violation. It contains results from those filters that blocked the
            +       * processing of the query.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResultOrBuilder + getPolicyResultsOrBuilder(int index) { + if (policyResultsBuilder_ == null) { + return policyResults_.get(index); + } else { + return policyResultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * Customer policy enforcement results.
            +       * Populated only if the assist call was skipped due to a policy
            +       * violation. It contains results from those filters that blocked the
            +       * processing of the query.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResultOrBuilder> + getPolicyResultsOrBuilderList() { + if (policyResultsBuilder_ != null) { + return policyResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(policyResults_); + } + } + + /** + * + * + *
            +       * Customer policy enforcement results.
            +       * Populated only if the assist call was skipped due to a policy
            +       * violation. It contains results from those filters that blocked the
            +       * processing of the query.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder + addPolicyResultsBuilder() { + return internalGetPolicyResultsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.getDefaultInstance()); + } + + /** + * + * + *
            +       * Customer policy enforcement results.
            +       * Populated only if the assist call was skipped due to a policy
            +       * violation. It contains results from those filters that blocked the
            +       * processing of the query.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder + addPolicyResultsBuilder(int index) { + return internalGetPolicyResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.getDefaultInstance()); + } + + /** + * + * + *
            +       * Customer policy enforcement results.
            +       * Populated only if the assist call was skipped due to a policy
            +       * violation. It contains results from those filters that blocked the
            +       * processing of the query.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.PolicyEnforcementResult policy_results = 3; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder> + getPolicyResultsBuilderList() { + return internalGetPolicyResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResult.Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .PolicyEnforcementResultOrBuilder> + internalGetPolicyResultsFieldBuilder() { + if (policyResultsBuilder_ == null) { + policyResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult, + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResult.Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.PolicyEnforcementResultOrBuilder>( + policyResults_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + policyResults_ = null; + } + return policyResultsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult) + private static final com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult(); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerPolicyEnforcementResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Immutable. Identifier. Resource name of the `AssistAnswer`.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
            +   *
            +   * This field must be a UTF-8 encoded string with a length limit of 1024
            +   * characters.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.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; + } + } + + /** + * + * + *
            +   * Immutable. Identifier. Resource name of the `AssistAnswer`.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
            +   *
            +   * This field must be a UTF-8 encoded string with a length limit of 1024
            +   * characters.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 2; + private int state_ = 0; + + /** + * + * + *
            +   * State of the answer generation.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.State state = 2; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +   * State of the answer generation.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.State state = 2; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.State getState() { + com.google.cloud.discoveryengine.v1beta.AssistAnswer.State result = + com.google.cloud.discoveryengine.v1beta.AssistAnswer.State.forNumber(state_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AssistAnswer.State.UNRECOGNIZED + : result; + } + + public static final int REPLIES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List replies_; + + /** + * + * + *
            +   * Replies of the assistant.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + @java.lang.Override + public java.util.List + getRepliesList() { + return replies_; + } + + /** + * + * + *
            +   * Replies of the assistant.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.AssistAnswer.ReplyOrBuilder> + getRepliesOrBuilderList() { + return replies_; + } + + /** + * + * + *
            +   * Replies of the assistant.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + @java.lang.Override + public int getRepliesCount() { + return replies_.size(); + } + + /** + * + * + *
            +   * Replies of the assistant.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply getReplies(int index) { + return replies_.get(index); + } + + /** + * + * + *
            +   * Replies of the assistant.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.ReplyOrBuilder getRepliesOrBuilder( + int index) { + return replies_.get(index); + } + + public static final int ASSIST_SKIPPED_REASONS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList assistSkippedReasons_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason> + assistSkippedReasons_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason>() { + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason convert( + int from) { + com.google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason result = + com.google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason + .forNumber(from); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason + .UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
            +   * Reasons for not answering the assist call.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @return A list containing the assistSkippedReasons. + */ + @java.lang.Override + public java.util.List + getAssistSkippedReasonsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason>( + assistSkippedReasons_, assistSkippedReasons_converter_); + } + + /** + * + * + *
            +   * Reasons for not answering the assist call.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @return The count of assistSkippedReasons. + */ + @java.lang.Override + public int getAssistSkippedReasonsCount() { + return assistSkippedReasons_.size(); + } + + /** + * + * + *
            +   * Reasons for not answering the assist call.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @param index The index of the element to return. + * @return The assistSkippedReasons at the given index. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason + getAssistSkippedReasons(int index) { + return assistSkippedReasons_converter_.convert(assistSkippedReasons_.getInt(index)); + } + + /** + * + * + *
            +   * Reasons for not answering the assist call.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @return A list containing the enum numeric values on the wire for assistSkippedReasons. + */ + @java.lang.Override + public java.util.List getAssistSkippedReasonsValueList() { + return assistSkippedReasons_; + } + + /** + * + * + *
            +   * Reasons for not answering the assist call.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of assistSkippedReasons at the given index. + */ + @java.lang.Override + public int getAssistSkippedReasonsValue(int index) { + return assistSkippedReasons_.getInt(index); + } + + private int assistSkippedReasonsMemoizedSerializedSize; + + public static final int CUSTOMER_POLICY_ENFORCEMENT_RESULT_FIELD_NUMBER = 8; + private com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + customerPolicyEnforcementResult_; + + /** + * + * + *
            +   * Optional. The field contains information about the various policy checks'
            +   * results like the banned phrases or the Model Armor checks. This field is
            +   * populated only if the assist call was skipped due to a policy violation.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customerPolicyEnforcementResult field is set. + */ + @java.lang.Override + public boolean hasCustomerPolicyEnforcementResult() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. The field contains information about the various policy checks'
            +   * results like the banned phrases or the Model Armor checks. This field is
            +   * populated only if the assist call was skipped due to a policy violation.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customerPolicyEnforcementResult. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + getCustomerPolicyEnforcementResult() { + return customerPolicyEnforcementResult_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .getDefaultInstance() + : customerPolicyEnforcementResult_; + } + + /** + * + * + *
            +   * Optional. The field contains information about the various policy checks'
            +   * results like the banned phrases or the Model Armor checks. This field is
            +   * populated only if the assist call was skipped due to a policy violation.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResultOrBuilder + getCustomerPolicyEnforcementResultOrBuilder() { + return customerPolicyEnforcementResult_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .getDefaultInstance() + : customerPolicyEnforcementResult_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (state_ + != com.google.cloud.discoveryengine.v1beta.AssistAnswer.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, state_); + } + for (int i = 0; i < replies_.size(); i++) { + output.writeMessage(3, replies_.get(i)); + } + if (getAssistSkippedReasonsList().size() > 0) { + output.writeUInt32NoTag(42); + output.writeUInt32NoTag(assistSkippedReasonsMemoizedSerializedSize); + } + for (int i = 0; i < assistSkippedReasons_.size(); i++) { + output.writeEnumNoTag(assistSkippedReasons_.getInt(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getCustomerPolicyEnforcementResult()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (state_ + != com.google.cloud.discoveryengine.v1beta.AssistAnswer.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + for (int i = 0; i < replies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, replies_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < assistSkippedReasons_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + assistSkippedReasons_.getInt(i)); + } + size += dataSize; + if (!getAssistSkippedReasonsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + assistSkippedReasonsMemoizedSerializedSize = dataSize; + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, getCustomerPolicyEnforcementResult()); + } + 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.v1beta.AssistAnswer)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AssistAnswer other = + (com.google.cloud.discoveryengine.v1beta.AssistAnswer) obj; + + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) return false; + if (!getRepliesList().equals(other.getRepliesList())) return false; + if (!assistSkippedReasons_.equals(other.assistSkippedReasons_)) return false; + if (hasCustomerPolicyEnforcementResult() != other.hasCustomerPolicyEnforcementResult()) + return false; + if (hasCustomerPolicyEnforcementResult()) { + if (!getCustomerPolicyEnforcementResult().equals(other.getCustomerPolicyEnforcementResult())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (getRepliesCount() > 0) { + hash = (37 * hash) + REPLIES_FIELD_NUMBER; + hash = (53 * hash) + getRepliesList().hashCode(); + } + if (getAssistSkippedReasonsCount() > 0) { + hash = (37 * hash) + ASSIST_SKIPPED_REASONS_FIELD_NUMBER; + hash = (53 * hash) + assistSkippedReasons_.hashCode(); + } + if (hasCustomerPolicyEnforcementResult()) { + hash = (37 * hash) + CUSTOMER_POLICY_ENFORCEMENT_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getCustomerPolicyEnforcementResult().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer 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.v1beta.AssistAnswer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer parseFrom( + 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.v1beta.AssistAnswer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.AssistAnswer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * AssistAnswer resource, main part of
            +   * [AssistResponse][google.cloud.discoveryengine.v1beta.AssistResponse].
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AssistAnswer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AssistAnswer) + com.google.cloud.discoveryengine.v1beta.AssistAnswerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.class, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.AssistAnswer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRepliesFieldBuilder(); + internalGetCustomerPolicyEnforcementResultFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + state_ = 0; + if (repliesBuilder_ == null) { + replies_ = java.util.Collections.emptyList(); + } else { + replies_ = null; + repliesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + assistSkippedReasons_ = emptyIntList(); + customerPolicyEnforcementResult_ = null; + if (customerPolicyEnforcementResultBuilder_ != null) { + customerPolicyEnforcementResultBuilder_.dispose(); + customerPolicyEnforcementResultBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswer.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer build() { + com.google.cloud.discoveryengine.v1beta.AssistAnswer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer buildPartial() { + com.google.cloud.discoveryengine.v1beta.AssistAnswer result = + new com.google.cloud.discoveryengine.v1beta.AssistAnswer(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.AssistAnswer result) { + if (repliesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + replies_ = java.util.Collections.unmodifiableList(replies_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.replies_ = replies_; + } else { + result.replies_ = repliesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.AssistAnswer result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + assistSkippedReasons_.makeImmutable(); + result.assistSkippedReasons_ = assistSkippedReasons_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.customerPolicyEnforcementResult_ = + customerPolicyEnforcementResultBuilder_ == null + ? customerPolicyEnforcementResult_ + : customerPolicyEnforcementResultBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.AssistAnswer) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.AssistAnswer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.AssistAnswer other) { + if (other == com.google.cloud.discoveryengine.v1beta.AssistAnswer.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (repliesBuilder_ == null) { + if (!other.replies_.isEmpty()) { + if (replies_.isEmpty()) { + replies_ = other.replies_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureRepliesIsMutable(); + replies_.addAll(other.replies_); + } + onChanged(); + } + } else { + if (!other.replies_.isEmpty()) { + if (repliesBuilder_.isEmpty()) { + repliesBuilder_.dispose(); + repliesBuilder_ = null; + replies_ = other.replies_; + bitField0_ = (bitField0_ & ~0x00000004); + repliesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRepliesFieldBuilder() + : null; + } else { + repliesBuilder_.addAllMessages(other.replies_); + } + } + } + if (!other.assistSkippedReasons_.isEmpty()) { + if (assistSkippedReasons_.isEmpty()) { + assistSkippedReasons_ = other.assistSkippedReasons_; + assistSkippedReasons_.makeImmutable(); + bitField0_ |= 0x00000008; + } else { + ensureAssistSkippedReasonsIsMutable(); + assistSkippedReasons_.addAll(other.assistSkippedReasons_); + } + onChanged(); + } + if (other.hasCustomerPolicyEnforcementResult()) { + mergeCustomerPolicyEnforcementResult(other.getCustomerPolicyEnforcementResult()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.parser(), + extensionRegistry); + if (repliesBuilder_ == null) { + ensureRepliesIsMutable(); + replies_.add(m); + } else { + repliesBuilder_.addMessage(m); + } + break; + } // case 26 + case 40: + { + int tmpRaw = input.readEnum(); + ensureAssistSkippedReasonsIsMutable(); + assistSkippedReasons_.addInt(tmpRaw); + break; + } // case 40 + case 42: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureAssistSkippedReasonsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + assistSkippedReasons_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 42 + case 66: + { + input.readMessage( + internalGetCustomerPolicyEnforcementResultFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Immutable. Identifier. Resource name of the `AssistAnswer`.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
            +     *
            +     * This field must be a UTF-8 encoded string with a length limit of 1024
            +     * characters.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.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; + } + } + + /** + * + * + *
            +     * Immutable. Identifier. Resource name of the `AssistAnswer`.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
            +     *
            +     * This field must be a UTF-8 encoded string with a length limit of 1024
            +     * characters.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.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; + } + } + + /** + * + * + *
            +     * Immutable. Identifier. Resource name of the `AssistAnswer`.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
            +     *
            +     * This field must be a UTF-8 encoded string with a length limit of 1024
            +     * characters.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.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; + } + + /** + * + * + *
            +     * Immutable. Identifier. Resource name of the `AssistAnswer`.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
            +     *
            +     * This field must be a UTF-8 encoded string with a length limit of 1024
            +     * characters.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Immutable. Identifier. Resource name of the `AssistAnswer`.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
            +     *
            +     * This field must be a UTF-8 encoded string with a length limit of 1024
            +     * characters.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
            +     * State of the answer generation.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.State state = 2; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +     * State of the answer generation.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.State state = 2; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * State of the answer generation.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.State state = 2; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.State getState() { + com.google.cloud.discoveryengine.v1beta.AssistAnswer.State result = + com.google.cloud.discoveryengine.v1beta.AssistAnswer.State.forNumber(state_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AssistAnswer.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * State of the answer generation.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.State state = 2; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.discoveryengine.v1beta.AssistAnswer.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * State of the answer generation.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.State state = 2; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + private java.util.List replies_ = + java.util.Collections.emptyList(); + + private void ensureRepliesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + replies_ = + new java.util.ArrayList( + replies_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.ReplyOrBuilder> + repliesBuilder_; + + /** + * + * + *
            +     * Replies of the assistant.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + public java.util.List + getRepliesList() { + if (repliesBuilder_ == null) { + return java.util.Collections.unmodifiableList(replies_); + } else { + return repliesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Replies of the assistant.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + public int getRepliesCount() { + if (repliesBuilder_ == null) { + return replies_.size(); + } else { + return repliesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Replies of the assistant.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply getReplies(int index) { + if (repliesBuilder_ == null) { + return replies_.get(index); + } else { + return repliesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Replies of the assistant.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + public Builder setReplies( + int index, com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply value) { + if (repliesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRepliesIsMutable(); + replies_.set(index, value); + onChanged(); + } else { + repliesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Replies of the assistant.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + public Builder setReplies( + int index, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.Builder builderForValue) { + if (repliesBuilder_ == null) { + ensureRepliesIsMutable(); + replies_.set(index, builderForValue.build()); + onChanged(); + } else { + repliesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Replies of the assistant.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + public Builder addReplies(com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply value) { + if (repliesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRepliesIsMutable(); + replies_.add(value); + onChanged(); + } else { + repliesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Replies of the assistant.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + public Builder addReplies( + int index, com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply value) { + if (repliesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRepliesIsMutable(); + replies_.add(index, value); + onChanged(); + } else { + repliesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Replies of the assistant.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + public Builder addReplies( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.Builder builderForValue) { + if (repliesBuilder_ == null) { + ensureRepliesIsMutable(); + replies_.add(builderForValue.build()); + onChanged(); + } else { + repliesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Replies of the assistant.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + public Builder addReplies( + int index, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.Builder builderForValue) { + if (repliesBuilder_ == null) { + ensureRepliesIsMutable(); + replies_.add(index, builderForValue.build()); + onChanged(); + } else { + repliesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Replies of the assistant.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + public Builder addAllReplies( + java.lang.Iterable + values) { + if (repliesBuilder_ == null) { + ensureRepliesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, replies_); + onChanged(); + } else { + repliesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Replies of the assistant.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + public Builder clearReplies() { + if (repliesBuilder_ == null) { + replies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + repliesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Replies of the assistant.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + public Builder removeReplies(int index) { + if (repliesBuilder_ == null) { + ensureRepliesIsMutable(); + replies_.remove(index); + onChanged(); + } else { + repliesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Replies of the assistant.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.Builder getRepliesBuilder( + int index) { + return internalGetRepliesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Replies of the assistant.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.ReplyOrBuilder getRepliesOrBuilder( + int index) { + if (repliesBuilder_ == null) { + return replies_.get(index); + } else { + return repliesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Replies of the assistant.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.AssistAnswer.ReplyOrBuilder> + getRepliesOrBuilderList() { + if (repliesBuilder_ != null) { + return repliesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(replies_); + } + } + + /** + * + * + *
            +     * Replies of the assistant.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.Builder addRepliesBuilder() { + return internalGetRepliesFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.getDefaultInstance()); + } + + /** + * + * + *
            +     * Replies of the assistant.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.Builder addRepliesBuilder( + int index) { + return internalGetRepliesFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.getDefaultInstance()); + } + + /** + * + * + *
            +     * Replies of the assistant.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + public java.util.List + getRepliesBuilderList() { + return internalGetRepliesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.ReplyOrBuilder> + internalGetRepliesFieldBuilder() { + if (repliesBuilder_ == null) { + repliesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply.Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.ReplyOrBuilder>( + replies_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + replies_ = null; + } + return repliesBuilder_; + } + + private com.google.protobuf.Internal.IntList assistSkippedReasons_ = emptyIntList(); + + private void ensureAssistSkippedReasonsIsMutable() { + if (!assistSkippedReasons_.isModifiable()) { + assistSkippedReasons_ = makeMutableCopy(assistSkippedReasons_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
            +     * Reasons for not answering the assist call.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @return A list containing the assistSkippedReasons. + */ + public java.util.List + getAssistSkippedReasonsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason>( + assistSkippedReasons_, assistSkippedReasons_converter_); + } + + /** + * + * + *
            +     * Reasons for not answering the assist call.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @return The count of assistSkippedReasons. + */ + public int getAssistSkippedReasonsCount() { + return assistSkippedReasons_.size(); + } + + /** + * + * + *
            +     * Reasons for not answering the assist call.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @param index The index of the element to return. + * @return The assistSkippedReasons at the given index. + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason + getAssistSkippedReasons(int index) { + return assistSkippedReasons_converter_.convert(assistSkippedReasons_.getInt(index)); + } + + /** + * + * + *
            +     * Reasons for not answering the assist call.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @param index The index to set the value at. + * @param value The assistSkippedReasons to set. + * @return This builder for chaining. + */ + public Builder setAssistSkippedReasons( + int index, com.google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistSkippedReasonsIsMutable(); + assistSkippedReasons_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Reasons for not answering the assist call.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @param value The assistSkippedReasons to add. + * @return This builder for chaining. + */ + public Builder addAssistSkippedReasons( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistSkippedReasonsIsMutable(); + assistSkippedReasons_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Reasons for not answering the assist call.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @param values The assistSkippedReasons to add. + * @return This builder for chaining. + */ + public Builder addAllAssistSkippedReasons( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason> + values) { + ensureAssistSkippedReasonsIsMutable(); + for (com.google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason value : + values) { + assistSkippedReasons_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Reasons for not answering the assist call.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @return This builder for chaining. + */ + public Builder clearAssistSkippedReasons() { + assistSkippedReasons_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Reasons for not answering the assist call.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @return A list containing the enum numeric values on the wire for assistSkippedReasons. + */ + public java.util.List getAssistSkippedReasonsValueList() { + assistSkippedReasons_.makeImmutable(); + return assistSkippedReasons_; + } + + /** + * + * + *
            +     * Reasons for not answering the assist call.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of assistSkippedReasons at the given index. + */ + public int getAssistSkippedReasonsValue(int index) { + return assistSkippedReasons_.getInt(index); + } + + /** + * + * + *
            +     * Reasons for not answering the assist call.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for assistSkippedReasons to set. + * @return This builder for chaining. + */ + public Builder setAssistSkippedReasonsValue(int index, int value) { + ensureAssistSkippedReasonsIsMutable(); + assistSkippedReasons_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Reasons for not answering the assist call.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @param value The enum numeric value on the wire for assistSkippedReasons to add. + * @return This builder for chaining. + */ + public Builder addAssistSkippedReasonsValue(int value) { + ensureAssistSkippedReasonsIsMutable(); + assistSkippedReasons_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Reasons for not answering the assist call.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @param values The enum numeric values on the wire for assistSkippedReasons to add. + * @return This builder for chaining. + */ + public Builder addAllAssistSkippedReasonsValue(java.lang.Iterable values) { + ensureAssistSkippedReasonsIsMutable(); + for (int value : values) { + assistSkippedReasons_.addInt(value); + } + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + customerPolicyEnforcementResult_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResultOrBuilder> + customerPolicyEnforcementResultBuilder_; + + /** + * + * + *
            +     * Optional. The field contains information about the various policy checks'
            +     * results like the banned phrases or the Model Armor checks. This field is
            +     * populated only if the assist call was skipped due to a policy violation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customerPolicyEnforcementResult field is set. + */ + public boolean hasCustomerPolicyEnforcementResult() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Optional. The field contains information about the various policy checks'
            +     * results like the banned phrases or the Model Armor checks. This field is
            +     * populated only if the assist call was skipped due to a policy violation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customerPolicyEnforcementResult. + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + getCustomerPolicyEnforcementResult() { + if (customerPolicyEnforcementResultBuilder_ == null) { + return customerPolicyEnforcementResult_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .getDefaultInstance() + : customerPolicyEnforcementResult_; + } else { + return customerPolicyEnforcementResultBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. The field contains information about the various policy checks'
            +     * results like the banned phrases or the Model Armor checks. This field is
            +     * populated only if the assist call was skipped due to a policy violation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomerPolicyEnforcementResult( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + value) { + if (customerPolicyEnforcementResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customerPolicyEnforcementResult_ = value; + } else { + customerPolicyEnforcementResultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The field contains information about the various policy checks'
            +     * results like the banned phrases or the Model Armor checks. This field is
            +     * populated only if the assist call was skipped due to a policy violation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomerPolicyEnforcementResult( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult.Builder + builderForValue) { + if (customerPolicyEnforcementResultBuilder_ == null) { + customerPolicyEnforcementResult_ = builderForValue.build(); + } else { + customerPolicyEnforcementResultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The field contains information about the various policy checks'
            +     * results like the banned phrases or the Model Armor checks. This field is
            +     * populated only if the assist call was skipped due to a policy violation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCustomerPolicyEnforcementResult( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + value) { + if (customerPolicyEnforcementResultBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && customerPolicyEnforcementResult_ != null + && customerPolicyEnforcementResult_ + != com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult.getDefaultInstance()) { + getCustomerPolicyEnforcementResultBuilder().mergeFrom(value); + } else { + customerPolicyEnforcementResult_ = value; + } + } else { + customerPolicyEnforcementResultBuilder_.mergeFrom(value); + } + if (customerPolicyEnforcementResult_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The field contains information about the various policy checks'
            +     * results like the banned phrases or the Model Armor checks. This field is
            +     * populated only if the assist call was skipped due to a policy violation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomerPolicyEnforcementResult() { + bitField0_ = (bitField0_ & ~0x00000010); + customerPolicyEnforcementResult_ = null; + if (customerPolicyEnforcementResultBuilder_ != null) { + customerPolicyEnforcementResultBuilder_.dispose(); + customerPolicyEnforcementResultBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The field contains information about the various policy checks'
            +     * results like the banned phrases or the Model Armor checks. This field is
            +     * populated only if the assist call was skipped due to a policy violation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .Builder + getCustomerPolicyEnforcementResultBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCustomerPolicyEnforcementResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The field contains information about the various policy checks'
            +     * results like the banned phrases or the Model Armor checks. This field is
            +     * populated only if the assist call was skipped due to a policy violation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResultOrBuilder + getCustomerPolicyEnforcementResultOrBuilder() { + if (customerPolicyEnforcementResultBuilder_ != null) { + return customerPolicyEnforcementResultBuilder_.getMessageOrBuilder(); + } else { + return customerPolicyEnforcementResult_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .getDefaultInstance() + : customerPolicyEnforcementResult_; + } + } + + /** + * + * + *
            +     * Optional. The field contains information about the various policy checks'
            +     * results like the banned phrases or the Model Armor checks. This field is
            +     * populated only if the assist call was skipped due to a policy violation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResultOrBuilder> + internalGetCustomerPolicyEnforcementResultFieldBuilder() { + if (customerPolicyEnforcementResultBuilder_ == null) { + customerPolicyEnforcementResultBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResult, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + .Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswer + .CustomerPolicyEnforcementResultOrBuilder>( + getCustomerPolicyEnforcementResult(), getParentForChildren(), isClean()); + customerPolicyEnforcementResult_ = null; + } + return customerPolicyEnforcementResultBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AssistAnswer) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AssistAnswer) + private static final com.google.cloud.discoveryengine.v1beta.AssistAnswer DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.AssistAnswer(); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistAnswer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistAnswer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AssistAnswer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistAnswerOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistAnswerOrBuilder.java new file mode 100644 index 000000000000..897b72f2054b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistAnswerOrBuilder.java @@ -0,0 +1,281 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assist_answer.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface AssistAnswerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AssistAnswer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Immutable. Identifier. Resource name of the `AssistAnswer`.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
            +   *
            +   * This field must be a UTF-8 encoded string with a length limit of 1024
            +   * characters.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Immutable. Identifier. Resource name of the `AssistAnswer`.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}`
            +   *
            +   * This field must be a UTF-8 encoded string with a length limit of 1024
            +   * characters.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * State of the answer generation.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.State state = 2; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
            +   * State of the answer generation.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.State state = 2; + * + * @return The state. + */ + com.google.cloud.discoveryengine.v1beta.AssistAnswer.State getState(); + + /** + * + * + *
            +   * Replies of the assistant.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + java.util.List getRepliesList(); + + /** + * + * + *
            +   * Replies of the assistant.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply getReplies(int index); + + /** + * + * + *
            +   * Replies of the assistant.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + int getRepliesCount(); + + /** + * + * + *
            +   * Replies of the assistant.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + java.util.List + getRepliesOrBuilderList(); + + /** + * + * + *
            +   * Replies of the assistant.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.Reply replies = 3; + */ + com.google.cloud.discoveryengine.v1beta.AssistAnswer.ReplyOrBuilder getRepliesOrBuilder( + int index); + + /** + * + * + *
            +   * Reasons for not answering the assist call.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @return A list containing the assistSkippedReasons. + */ + java.util.List + getAssistSkippedReasonsList(); + + /** + * + * + *
            +   * Reasons for not answering the assist call.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @return The count of assistSkippedReasons. + */ + int getAssistSkippedReasonsCount(); + + /** + * + * + *
            +   * Reasons for not answering the assist call.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @param index The index of the element to return. + * @return The assistSkippedReasons at the given index. + */ + com.google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason getAssistSkippedReasons( + int index); + + /** + * + * + *
            +   * Reasons for not answering the assist call.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @return A list containing the enum numeric values on the wire for assistSkippedReasons. + */ + java.util.List getAssistSkippedReasonsValueList(); + + /** + * + * + *
            +   * Reasons for not answering the assist call.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistAnswer.AssistSkippedReason assist_skipped_reasons = 5; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of assistSkippedReasons at the given index. + */ + int getAssistSkippedReasonsValue(int index); + + /** + * + * + *
            +   * Optional. The field contains information about the various policy checks'
            +   * results like the banned phrases or the Model Armor checks. This field is
            +   * populated only if the assist call was skipped due to a policy violation.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customerPolicyEnforcementResult field is set. + */ + boolean hasCustomerPolicyEnforcementResult(); + + /** + * + * + *
            +   * Optional. The field contains information about the various policy checks'
            +   * results like the banned phrases or the Model Armor checks. This field is
            +   * populated only if the assist call was skipped due to a policy violation.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customerPolicyEnforcementResult. + */ + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult + getCustomerPolicyEnforcementResult(); + + /** + * + * + *
            +   * Optional. The field contains information about the various policy checks'
            +   * results like the banned phrases or the Model Armor checks. This field is
            +   * populated only if the assist call was skipped due to a policy violation.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResultOrBuilder + getCustomerPolicyEnforcementResultOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistAnswerProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistAnswerProto.java new file mode 100644 index 000000000000..1708704ecaec --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistAnswerProto.java @@ -0,0 +1,448 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assist_answer.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public final class AssistAnswerProto extends com.google.protobuf.GeneratedFile { + private AssistAnswerProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AssistAnswerProto"); + } + + 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_discoveryengine_v1beta_AssistAnswer_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_Reply_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_Reply_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_Blob_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_Blob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_File_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_File_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_ExecutableCode_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_ExecutableCode_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_CodeExecutionResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_CodeExecutionResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Segment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Segment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_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" + + "7google/cloud/discoveryengine/v1beta/assist_answer.proto\022#google.cloud.discover" + + "yengine.v1beta\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\032Egoog" + + "le/cloud/discoveryengine/v1beta/grounded_generation_service.proto\032\037google/protob" + + "uf/timestamp.proto\032\027google/rpc/status.proto\"\276\016\n" + + "\014AssistAnswer\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\005\340A\010\022F\n" + + "\005state\030\002" + + " \001(\01627.google.cloud.discoveryengine.v1beta.AssistAnswer.State\022H\n" + + "\007replies\030\003" + + " \003(\01327.google.cloud.discoveryengine.v1beta.AssistAnswer.Reply\022e\n" + + "\026assist_skipped_reasons\030\005 \003(\0162E.google.cloud.disc" + + "overyengine.v1beta.AssistAnswer.AssistSkippedReason\022\202\001\n" + + "\"customer_policy_enforcement_result\030\010 \001(\0132Q.google.cloud.discover" + + "yengine.v1beta.AssistAnswer.CustomerPolicyEnforcementResultB\003\340A\001\032\234\001\n" + + "\005Reply\022Y\n" + + "\020grounded_content\030\001 \001(\0132=.google.cloud.disc" + + "overyengine.v1beta.AssistantGroundedContentH\000\022/\n" + + "\013create_time\030\016 \001(\0132\032.google.protobuf.TimestampB\007\n" + + "\005reply\032\325\006\n" + + "\037CustomerPolicyEnforcementResult\022j\n" + + "\007verdict\030\001 \001(\0162Y.google.cloud.discoveryengine.v1beta.Assis" + + "tAnswer.CustomerPolicyEnforcementResult.Verdict\022\201\001\n" + + "\016policy_results\030\003 \003(\0132i.google.cloud.discoveryengine.v1beta.AssistAns" + + "wer.CustomerPolicyEnforcementResult.PolicyEnforcementResult\0327\n" + + "\035BannedPhraseEnforcementResult\022\026\n" + + "\016banned_phrases\030\001 \003(\t\032m\n" + + "\033ModelArmorEnforcementResult\022\037\n" + + "\025model_armor_violation\030\001 \001(\tH\000\022#\n" + + "\005error\030\002 \001(\0132\022.google.rpc.StatusH\000B\010\n" + + "\006result\032\347\002\n" + + "\027PolicyEnforcementResult\022\233\001\n" + + " banned_phrase_enforcement_result\030\003 \001(\0132o.google.cloud.discov" + + "eryengine.v1beta.AssistAnswer.CustomerPo" + + "licyEnforcementResult.BannedPhraseEnforcementResultH\000\022\227\001\n" + + "\036model_armor_enforcement_result\030\004 \001(\0132m.google.cloud.discoverye" + + "ngine.v1beta.AssistAnswer.CustomerPolicy" + + "EnforcementResult.ModelArmorEnforcementResultH\000B\024\n" + + "\022enforcement_result\"0\n" + + "\007Verdict\022\017\n" + + "\013UNSPECIFIED\020\000\022\t\n" + + "\005ALLOW\020\001\022\t\n" + + "\005BLOCK\020\002\"f\n" + + "\005State\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\022\013\n" + + "\007SKIPPED\020\004\022\r\n" + + "\tCANCELLED\020\005\"\201\001\n" + + "\023AssistSkippedReason\022%\n" + + "!ASSIST_SKIPPED_REASON_UNSPECIFIED\020\000\022$\n" + + " NON_ASSIST_SEEKING_QUERY_IGNORED\020\001\022\035\n" + + "\031CUSTOMER_POLICY_VIOLATION\020\002:\266\001\352A\262\001\n" + + "+discoveryengine.googleapis.com/AssistAnswer\022\202\001projects/{project}/locations/{" + + "location}/collections/{collection}/engin" + + "es/{engine}/sessions/{session}/assistAnswers/{assist_answer}\"\305\006\n" + + "\020AssistantContent\022\016\n" + + "\004text\030\002 \001(\tH\000\022Q\n" + + "\013inline_data\030\003 \001(\0132:" + + ".google.cloud.discoveryengine.v1beta.AssistantContent.BlobH\000\022J\n" + + "\004file\030\004 \001(\0132:.goo" + + "gle.cloud.discoveryengine.v1beta.AssistantContent.FileH\000\022_\n" + + "\017executable_code\030\007 \001(" + + "\0132D.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCodeH\000\022j\n" + + "\025code_execution_result\030\010 \001(\0132I.google.cloud." + + "discoveryengine.v1beta.AssistantContent.CodeExecutionResultH\000\022\014\n" + + "\004role\030\001 \001(\t\022\024\n" + + "\007thought\030\006 \001(\010B\003\340A\001\0321\n" + + "\004Blob\022\026\n" + + "\tmime_type\030\001 \001(\tB\003\340A\002\022\021\n" + + "\004data\030\002 \001(\014B\003\340A\002\0324\n" + + "\004File\022\026\n" + + "\tmime_type\030\001 \001(\tB\003\340A\002\022\024\n" + + "\007file_id\030\002 \001(\tB\003\340A\002\032#\n" + + "\016ExecutableCode\022\021\n" + + "\004code\030\002 \001(\tB\003\340A\002\032\372\001\n" + + "\023CodeExecutionResult\022g\n" + + "\007outcome\030\001 \001(\0162Q.google.cloud.discoveryengine.v1beta.A" + + "ssistantContent.CodeExecutionResult.OutcomeB\003\340A\002\022\023\n" + + "\006output\030\002 \001(\tB\003\340A\001\"e\n" + + "\007Outcome\022\027\n" + + "\023OUTCOME_UNSPECIFIED\020\000\022\016\n\n" + + "OUTCOME_OK\020\001\022\022\n" + + "\016OUTCOME_FAILED\020\002\022\035\n" + + "\031OUTCOME_DEADLINE_EXCEEDED\020\003B\006\n" + + "\004data\"\204\014\n" + + "\030AssistantGroundedContent\022v\n" + + "\027text_grounding_metadata\030\003 \001(\0132S.google.cloud.discoveryengine.v1beta" + + ".AssistantGroundedContent.TextGroundingMetadataH\000\022F\n" + + "\007content\030\001 \001(\01325.google.clou" + + "d.discoveryengine.v1beta.AssistantContent\022P\n" + + "\021citation_metadata\030\005 \001(\01325.google.cl" + + "oud.discoveryengine.v1beta.CitationMetadata\032\311\t\n" + + "\025TextGroundingMetadata\022m\n" + + "\010segments\030\004 \003(\0132[.google.cloud.discoveryengine.v" + + "1beta.AssistantGroundedContent.TextGroundingMetadata.Segment\022z\n" + + "\017visual_segments\030\006 \003(\0132a.google.cloud.discoveryengine.v1b" + + "eta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment\022q\n\n" + + "references\030\002 \003(\0132].google.cloud.discoveryengine.v1be" + + "ta.AssistantGroundedContent.TextGroundingMetadata.Reference\032s\n" + + "\007Segment\022\023\n" + + "\013start_index\030\001 \001(\003\022\021\n" + + "\tend_index\030\002 \001(\003\022\031\n" + + "\021reference_indices\030\004 \003(\005\022\027\n" + + "\017grounding_score\030\005 \001(\002\022\014\n" + + "\004text\030\006 \001(\t\032>\n\r" + + "VisualSegment\022\031\n" + + "\021reference_indices\030\001 \003(\005\022\022\n\n" + + "content_id\030\002 \001(\t\032\234\005\n" + + "\tReference\022\017\n" + + "\007content\030\001 \001(\t\022\024\n" + + "\014code_snippet\030\004 \001(\t\022\211\001\n" + + "\021document_metadata\030\002 \001(\0132n.google.cloud.discoveryengine.v1beta." + + "AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata\032\333\003\n" + + "\020DocumentMetadata\022\211\001\n" + + "\010language\030\010 \001(\0162w.google.cloud.discoveryengine.v1beta.Assistan" + + "tGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language\022C\n" + + "\010document\030\001 \001(\tB,\372A)\n" + + "\'discoveryengine.googleapis.com/DocumentH\000\210\001\001\022\020\n" + + "\003uri\030\002 \001(\tH\001\210\001\001\022\022\n" + + "\005title\030\003 \001(\tH\002\210\001\001\022\034\n" + + "\017page_identifier\030\004 \001(\tH\003\210\001\001\022\023\n" + + "\006domain\030\005 \001(\tH\004\210\001\001\022\026\n" + + "\tmime_type\030\007 \001(\tH\005\210\001\001\"9\n" + + "\010Language\022\030\n" + + "\024LANGUAGE_UNSPECIFIED\020\000\022\n\n" + + "\006PYTHON\020\001\022\007\n" + + "\003SQL\020\002B\013\n" + + "\t_documentB\006\n" + + "\004_uriB\010\n" + + "\006_titleB\022\n" + + "\020_page_identifierB\t\n" + + "\007_domainB\014\n\n" + + "_mime_typeB\n\n" + + "\010metadataB\230\002\n" + + "\'com.google.cloud.discoveryengine.v1betaB\021AssistAnswerProtoP\001ZQcloud.goog" + + "le.com/go/discoveryengine/apiv1beta/disc" + + "overyenginepb;discoveryenginepb\242\002\017DISCOV" + + "ERYENGINE\252\002#Google.Cloud.DiscoveryEngine" + + ".V1Beta\312\002#Google\\Cloud\\DiscoveryEngine\\V" + + "1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\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.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_descriptor, + new java.lang.String[] { + "Name", "State", "Replies", "AssistSkippedReasons", "CustomerPolicyEnforcementResult", + }); + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_Reply_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_descriptor.getNestedType( + 0); + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_Reply_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_Reply_descriptor, + new java.lang.String[] { + "GroundedContent", "CreateTime", "Reply", + }); + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_descriptor.getNestedType( + 1); + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_descriptor, + new java.lang.String[] { + "Verdict", "PolicyResults", + }); + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_BannedPhraseEnforcementResult_descriptor, + new java.lang.String[] { + "BannedPhrases", + }); + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_ModelArmorEnforcementResult_descriptor, + new java.lang.String[] { + "ModelArmorViolation", "Error", "Result", + }); + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_descriptor + .getNestedType(2); + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AssistAnswer_CustomerPolicyEnforcementResult_PolicyEnforcementResult_descriptor, + new java.lang.String[] { + "BannedPhraseEnforcementResult", "ModelArmorEnforcementResult", "EnforcementResult", + }); + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_descriptor, + new java.lang.String[] { + "Text", + "InlineData", + "File", + "ExecutableCode", + "CodeExecutionResult", + "Role", + "Thought", + "Data", + }); + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_Blob_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_Blob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_Blob_descriptor, + new java.lang.String[] { + "MimeType", "Data", + }); + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_File_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_File_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_File_descriptor, + new java.lang.String[] { + "MimeType", "FileId", + }); + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_ExecutableCode_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_descriptor + .getNestedType(2); + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_ExecutableCode_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_ExecutableCode_descriptor, + new java.lang.String[] { + "Code", + }); + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_CodeExecutionResult_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_descriptor + .getNestedType(3); + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_CodeExecutionResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_CodeExecutionResult_descriptor, + new java.lang.String[] { + "Outcome", "Output", + }); + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_descriptor, + new java.lang.String[] { + "TextGroundingMetadata", "Content", "CitationMetadata", "Metadata", + }); + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_descriptor, + new java.lang.String[] { + "Segments", "VisualSegments", "References", + }); + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Segment_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Segment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Segment_descriptor, + new java.lang.String[] { + "StartIndex", "EndIndex", "ReferenceIndices", "GroundingScore", "Text", + }); + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_descriptor, + new java.lang.String[] { + "ReferenceIndices", "ContentId", + }); + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_descriptor + .getNestedType(2); + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_descriptor, + new java.lang.String[] { + "Content", "CodeSnippet", "DocumentMetadata", + }); + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_descriptor, + new java.lang.String[] { + "Language", "Document", "Uri", "Title", "PageIdentifier", "Domain", "MimeType", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + 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); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistUserMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistUserMetadata.java new file mode 100644 index 000000000000..57bc5f21f766 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistUserMetadata.java @@ -0,0 +1,800 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * User metadata of the request.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AssistUserMetadata} + */ +@com.google.protobuf.Generated +public final class AssistUserMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AssistUserMetadata) + AssistUserMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AssistUserMetadata"); + } + + // Use AssistUserMetadata.newBuilder() to construct. + private AssistUserMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistUserMetadata() { + timeZone_ = ""; + preferredLanguageCode_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistUserMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistUserMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistUserMetadata.class, + com.google.cloud.discoveryengine.v1beta.AssistUserMetadata.Builder.class); + } + + public static final int TIME_ZONE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeZone_ = ""; + + /** + * + * + *
            +   * Optional. IANA time zone, e.g. Europe/Budapest.
            +   * 
            + * + * string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + @java.lang.Override + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. IANA time zone, e.g. Europe/Budapest.
            +   * 
            + * + * string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for timeZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREFERRED_LANGUAGE_CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object preferredLanguageCode_ = ""; + + /** + * + * + *
            +   * Optional. Preferred language to be used for answering if language detection
            +   * fails. Also used as the language of error messages created by actions,
            +   * regardless of language detection results.
            +   * 
            + * + * string preferred_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preferredLanguageCode. + */ + @java.lang.Override + public java.lang.String getPreferredLanguageCode() { + java.lang.Object ref = preferredLanguageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + preferredLanguageCode_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Preferred language to be used for answering if language detection
            +   * fails. Also used as the language of error messages created by actions,
            +   * regardless of language detection results.
            +   * 
            + * + * string preferred_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for preferredLanguageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreferredLanguageCodeBytes() { + java.lang.Object ref = preferredLanguageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + preferredLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeZone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, timeZone_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(preferredLanguageCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, preferredLanguageCode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeZone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, timeZone_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(preferredLanguageCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, preferredLanguageCode_); + } + 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.v1beta.AssistUserMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AssistUserMetadata other = + (com.google.cloud.discoveryengine.v1beta.AssistUserMetadata) obj; + + if (!getTimeZone().equals(other.getTimeZone())) return false; + if (!getPreferredLanguageCode().equals(other.getPreferredLanguageCode())) 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) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + hash = (37 * hash) + PREFERRED_LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getPreferredLanguageCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AssistUserMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistUserMetadata 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.v1beta.AssistUserMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistUserMetadata parseFrom( + 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.v1beta.AssistUserMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistUserMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistUserMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistUserMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistUserMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistUserMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistUserMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistUserMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AssistUserMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * User metadata of the request.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AssistUserMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AssistUserMetadata) + com.google.cloud.discoveryengine.v1beta.AssistUserMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistUserMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistUserMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistUserMetadata.class, + com.google.cloud.discoveryengine.v1beta.AssistUserMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.AssistUserMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + timeZone_ = ""; + preferredLanguageCode_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistUserMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistUserMetadata getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AssistUserMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistUserMetadata build() { + com.google.cloud.discoveryengine.v1beta.AssistUserMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistUserMetadata buildPartial() { + com.google.cloud.discoveryengine.v1beta.AssistUserMetadata result = + new com.google.cloud.discoveryengine.v1beta.AssistUserMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.AssistUserMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeZone_ = timeZone_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.preferredLanguageCode_ = preferredLanguageCode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.AssistUserMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.AssistUserMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.AssistUserMetadata other) { + if (other == com.google.cloud.discoveryengine.v1beta.AssistUserMetadata.getDefaultInstance()) + return this; + if (!other.getTimeZone().isEmpty()) { + timeZone_ = other.timeZone_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPreferredLanguageCode().isEmpty()) { + preferredLanguageCode_ = other.preferredLanguageCode_; + 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: + { + timeZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + preferredLanguageCode_ = 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 timeZone_ = ""; + + /** + * + * + *
            +     * Optional. IANA time zone, e.g. Europe/Budapest.
            +     * 
            + * + * string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. IANA time zone, e.g. Europe/Budapest.
            +     * 
            + * + * string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for timeZone. + */ + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. IANA time zone, e.g. Europe/Budapest.
            +     * 
            + * + * string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + timeZone_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. IANA time zone, e.g. Europe/Budapest.
            +     * 
            + * + * string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTimeZone() { + timeZone_ = getDefaultInstance().getTimeZone(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. IANA time zone, e.g. Europe/Budapest.
            +     * 
            + * + * string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + timeZone_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object preferredLanguageCode_ = ""; + + /** + * + * + *
            +     * Optional. Preferred language to be used for answering if language detection
            +     * fails. Also used as the language of error messages created by actions,
            +     * regardless of language detection results.
            +     * 
            + * + * string preferred_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preferredLanguageCode. + */ + public java.lang.String getPreferredLanguageCode() { + java.lang.Object ref = preferredLanguageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + preferredLanguageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Preferred language to be used for answering if language detection
            +     * fails. Also used as the language of error messages created by actions,
            +     * regardless of language detection results.
            +     * 
            + * + * string preferred_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for preferredLanguageCode. + */ + public com.google.protobuf.ByteString getPreferredLanguageCodeBytes() { + java.lang.Object ref = preferredLanguageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + preferredLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Preferred language to be used for answering if language detection
            +     * fails. Also used as the language of error messages created by actions,
            +     * regardless of language detection results.
            +     * 
            + * + * string preferred_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The preferredLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setPreferredLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + preferredLanguageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Preferred language to be used for answering if language detection
            +     * fails. Also used as the language of error messages created by actions,
            +     * regardless of language detection results.
            +     * 
            + * + * string preferred_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPreferredLanguageCode() { + preferredLanguageCode_ = getDefaultInstance().getPreferredLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Preferred language to be used for answering if language detection
            +     * fails. Also used as the language of error messages created by actions,
            +     * regardless of language detection results.
            +     * 
            + * + * string preferred_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for preferredLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setPreferredLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + preferredLanguageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AssistUserMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AssistUserMetadata) + private static final com.google.cloud.discoveryengine.v1beta.AssistUserMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.AssistUserMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistUserMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistUserMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AssistUserMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistUserMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistUserMetadataOrBuilder.java new file mode 100644 index 000000000000..1b4e0159da02 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistUserMetadataOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface AssistUserMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AssistUserMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. IANA time zone, e.g. Europe/Budapest.
            +   * 
            + * + * string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + java.lang.String getTimeZone(); + + /** + * + * + *
            +   * Optional. IANA time zone, e.g. Europe/Budapest.
            +   * 
            + * + * string time_zone = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for timeZone. + */ + com.google.protobuf.ByteString getTimeZoneBytes(); + + /** + * + * + *
            +   * Optional. Preferred language to be used for answering if language detection
            +   * fails. Also used as the language of error messages created by actions,
            +   * regardless of language detection results.
            +   * 
            + * + * string preferred_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The preferredLanguageCode. + */ + java.lang.String getPreferredLanguageCode(); + + /** + * + * + *
            +   * Optional. Preferred language to be used for answering if language detection
            +   * fails. Also used as the language of error messages created by actions,
            +   * regardless of language detection results.
            +   * 
            + * + * string preferred_language_code = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for preferredLanguageCode. + */ + com.google.protobuf.ByteString getPreferredLanguageCodeBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Assistant.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Assistant.java new file mode 100644 index 000000000000..f64c1506def6 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Assistant.java @@ -0,0 +1,11643 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Discovery Engine Assistant resource.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Assistant} + */ +@com.google.protobuf.Generated +public final class Assistant extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Assistant) + AssistantOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Assistant"); + } + + // Use Assistant.newBuilder() to construct. + private Assistant(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Assistant() { + name_ = ""; + displayName_ = ""; + description_ = ""; + webGroundingType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 18: + return internalGetEnabledTools(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Assistant.class, + com.google.cloud.discoveryengine.v1beta.Assistant.Builder.class); + } + + /** + * + * + *
            +   * The type of web grounding to use.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType} + */ + public enum WebGroundingType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Default, unspecified setting. This is the same as disabled.
            +     * 
            + * + * WEB_GROUNDING_TYPE_UNSPECIFIED = 0; + */ + WEB_GROUNDING_TYPE_UNSPECIFIED(0), + /** + * + * + *
            +     * Web grounding is disabled.
            +     * 
            + * + * WEB_GROUNDING_TYPE_DISABLED = 1; + */ + WEB_GROUNDING_TYPE_DISABLED(1), + /** + * + * + *
            +     * Grounding with Google Search is enabled.
            +     * 
            + * + * WEB_GROUNDING_TYPE_GOOGLE_SEARCH = 2; + */ + WEB_GROUNDING_TYPE_GOOGLE_SEARCH(2), + /** + * + * + *
            +     * Grounding with Enterprise Web Search is enabled.
            +     * 
            + * + * WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH = 3; + */ + WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "WebGroundingType"); + } + + /** + * + * + *
            +     * Default, unspecified setting. This is the same as disabled.
            +     * 
            + * + * WEB_GROUNDING_TYPE_UNSPECIFIED = 0; + */ + public static final int WEB_GROUNDING_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Web grounding is disabled.
            +     * 
            + * + * WEB_GROUNDING_TYPE_DISABLED = 1; + */ + public static final int WEB_GROUNDING_TYPE_DISABLED_VALUE = 1; + + /** + * + * + *
            +     * Grounding with Google Search is enabled.
            +     * 
            + * + * WEB_GROUNDING_TYPE_GOOGLE_SEARCH = 2; + */ + public static final int WEB_GROUNDING_TYPE_GOOGLE_SEARCH_VALUE = 2; + + /** + * + * + *
            +     * Grounding with Enterprise Web Search is enabled.
            +     * 
            + * + * WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH = 3; + */ + public static final int WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH_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 WebGroundingType 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 WebGroundingType forNumber(int value) { + switch (value) { + case 0: + return WEB_GROUNDING_TYPE_UNSPECIFIED; + case 1: + return WEB_GROUNDING_TYPE_DISABLED; + case 2: + return WEB_GROUNDING_TYPE_GOOGLE_SEARCH; + case 3: + return WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH; + 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 WebGroundingType findValueByNumber(int number) { + return WebGroundingType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Assistant.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final WebGroundingType[] VALUES = values(); + + public static WebGroundingType 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 WebGroundingType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType) + } + + public interface GenerationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. The default model to use for assistant.
            +     * 
            + * + * string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultModelId. + */ + java.lang.String getDefaultModelId(); + + /** + * + * + *
            +     * Optional. The default model to use for assistant.
            +     * 
            + * + * string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultModelId. + */ + com.google.protobuf.ByteString getDefaultModelIdBytes(); + + /** + * + * + *
            +     * Optional. The list of models that are allowed to be used for assistant.
            +     * 
            + * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedModelIds. + */ + java.util.List getAllowedModelIdsList(); + + /** + * + * + *
            +     * Optional. The list of models that are allowed to be used for assistant.
            +     * 
            + * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedModelIds. + */ + int getAllowedModelIdsCount(); + + /** + * + * + *
            +     * Optional. The list of models that are allowed to be used for assistant.
            +     * 
            + * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedModelIds at the given index. + */ + java.lang.String getAllowedModelIds(int index); + + /** + * + * + *
            +     * Optional. The list of models that are allowed to be used for assistant.
            +     * 
            + * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedModelIds at the given index. + */ + com.google.protobuf.ByteString getAllowedModelIdsBytes(int index); + + /** + * + * + *
            +     * System instruction, also known as the prompt preamble for LLM calls.
            +     * See also
            +     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + * + * @return Whether the systemInstruction field is set. + */ + boolean hasSystemInstruction(); + + /** + * + * + *
            +     * System instruction, also known as the prompt preamble for LLM calls.
            +     * See also
            +     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + * + * @return The systemInstruction. + */ + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + getSystemInstruction(); + + /** + * + * + *
            +     * System instruction, also known as the prompt preamble for LLM calls.
            +     * See also
            +     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + */ + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstructionOrBuilder + getSystemInstructionOrBuilder(); + + /** + * + * + *
            +     * The default language to use for the generation of the assistant
            +     * response.
            +     * Use an ISO 639-1 language code such as `en`.
            +     * If not specified, the language will be automatically detected.
            +     * 
            + * + * string default_language = 4; + * + * @return The defaultLanguage. + */ + java.lang.String getDefaultLanguage(); + + /** + * + * + *
            +     * The default language to use for the generation of the assistant
            +     * response.
            +     * Use an ISO 639-1 language code such as `en`.
            +     * If not specified, the language will be automatically detected.
            +     * 
            + * + * string default_language = 4; + * + * @return The bytes for defaultLanguage. + */ + com.google.protobuf.ByteString getDefaultLanguageBytes(); + } + + /** + * + * + *
            +   * Configuration for the generation of the assistant response.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig} + */ + public static final class GenerationConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig) + GenerationConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GenerationConfig"); + } + + // Use GenerationConfig.newBuilder() to construct. + private GenerationConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerationConfig() { + defaultModelId_ = ""; + allowedModelIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + defaultLanguage_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.class, + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.Builder.class); + } + + public interface SystemInstructionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Optional. Additional system instruction that will be added to the
            +       * default system instruction.
            +       * 
            + * + * string additional_system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalSystemInstruction. + */ + java.lang.String getAdditionalSystemInstruction(); + + /** + * + * + *
            +       * Optional. Additional system instruction that will be added to the
            +       * default system instruction.
            +       * 
            + * + * string additional_system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for additionalSystemInstruction. + */ + com.google.protobuf.ByteString getAdditionalSystemInstructionBytes(); + } + + /** + * + * + *
            +     * System instruction, also known as the prompt preamble for LLM calls.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction} + */ + public static final class SystemInstruction extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction) + SystemInstructionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SystemInstruction"); + } + + // Use SystemInstruction.newBuilder() to construct. + private SystemInstruction(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SystemInstruction() { + additionalSystemInstruction_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_SystemInstruction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_SystemInstruction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + .class, + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + .Builder.class); + } + + public static final int ADDITIONAL_SYSTEM_INSTRUCTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object additionalSystemInstruction_ = ""; + + /** + * + * + *
            +       * Optional. Additional system instruction that will be added to the
            +       * default system instruction.
            +       * 
            + * + * string additional_system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalSystemInstruction. + */ + @java.lang.Override + public java.lang.String getAdditionalSystemInstruction() { + java.lang.Object ref = additionalSystemInstruction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additionalSystemInstruction_ = s; + return s; + } + } + + /** + * + * + *
            +       * Optional. Additional system instruction that will be added to the
            +       * default system instruction.
            +       * 
            + * + * string additional_system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for additionalSystemInstruction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdditionalSystemInstructionBytes() { + java.lang.Object ref = additionalSystemInstruction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + additionalSystemInstruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(additionalSystemInstruction_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, additionalSystemInstruction_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(additionalSystemInstruction_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 2, additionalSystemInstruction_); + } + 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.v1beta.Assistant.GenerationConfig.SystemInstruction)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction other = + (com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction) + obj; + + if (!getAdditionalSystemInstruction().equals(other.getAdditionalSystemInstruction())) + 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) + ADDITIONAL_SYSTEM_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalSystemInstruction().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction + 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.v1beta.Assistant.GenerationConfig + .SystemInstruction + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction + parseFrom( + 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.v1beta.Assistant.GenerationConfig + .SystemInstruction + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * System instruction, also known as the prompt preamble for LLM calls.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction) + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstructionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_SystemInstruction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_SystemInstruction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction.class, + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + additionalSystemInstruction_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_SystemInstruction_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + build() { + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + result = + new com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.additionalSystemInstruction_ = additionalSystemInstruction_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction.getDefaultInstance()) return this; + if (!other.getAdditionalSystemInstruction().isEmpty()) { + additionalSystemInstruction_ = other.additionalSystemInstruction_; + 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 18: + { + additionalSystemInstruction_ = input.readStringRequireUtf8(); + 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 java.lang.Object additionalSystemInstruction_ = ""; + + /** + * + * + *
            +         * Optional. Additional system instruction that will be added to the
            +         * default system instruction.
            +         * 
            + * + * string additional_system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The additionalSystemInstruction. + */ + public java.lang.String getAdditionalSystemInstruction() { + java.lang.Object ref = additionalSystemInstruction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additionalSystemInstruction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Optional. Additional system instruction that will be added to the
            +         * default system instruction.
            +         * 
            + * + * string additional_system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bytes for additionalSystemInstruction. + */ + public com.google.protobuf.ByteString getAdditionalSystemInstructionBytes() { + java.lang.Object ref = additionalSystemInstruction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + additionalSystemInstruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Optional. Additional system instruction that will be added to the
            +         * default system instruction.
            +         * 
            + * + * string additional_system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The additionalSystemInstruction to set. + * @return This builder for chaining. + */ + public Builder setAdditionalSystemInstruction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + additionalSystemInstruction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Additional system instruction that will be added to the
            +         * default system instruction.
            +         * 
            + * + * string additional_system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdditionalSystemInstruction() { + additionalSystemInstruction_ = getDefaultInstance().getAdditionalSystemInstruction(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Additional system instruction that will be added to the
            +         * default system instruction.
            +         * 
            + * + * string additional_system_instruction = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes for additionalSystemInstruction to set. + * @return This builder for chaining. + */ + public Builder setAdditionalSystemInstructionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + additionalSystemInstruction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction) + private static final com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction(); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SystemInstruction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Assistant.GenerationConfig.SystemInstruction + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int DEFAULT_MODEL_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultModelId_ = ""; + + /** + * + * + *
            +     * Optional. The default model to use for assistant.
            +     * 
            + * + * string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultModelId. + */ + @java.lang.Override + public java.lang.String getDefaultModelId() { + java.lang.Object ref = defaultModelId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultModelId_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. The default model to use for assistant.
            +     * 
            + * + * string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultModelId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultModelIdBytes() { + java.lang.Object ref = defaultModelId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultModelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOWED_MODEL_IDS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedModelIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +     * Optional. The list of models that are allowed to be used for assistant.
            +     * 
            + * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedModelIds. + */ + public com.google.protobuf.ProtocolStringList getAllowedModelIdsList() { + return allowedModelIds_; + } + + /** + * + * + *
            +     * Optional. The list of models that are allowed to be used for assistant.
            +     * 
            + * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedModelIds. + */ + public int getAllowedModelIdsCount() { + return allowedModelIds_.size(); + } + + /** + * + * + *
            +     * Optional. The list of models that are allowed to be used for assistant.
            +     * 
            + * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedModelIds at the given index. + */ + public java.lang.String getAllowedModelIds(int index) { + return allowedModelIds_.get(index); + } + + /** + * + * + *
            +     * Optional. The list of models that are allowed to be used for assistant.
            +     * 
            + * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedModelIds at the given index. + */ + public com.google.protobuf.ByteString getAllowedModelIdsBytes(int index) { + return allowedModelIds_.getByteString(index); + } + + public static final int SYSTEM_INSTRUCTION_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + systemInstruction_; + + /** + * + * + *
            +     * System instruction, also known as the prompt preamble for LLM calls.
            +     * See also
            +     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + * + * @return Whether the systemInstruction field is set. + */ + @java.lang.Override + public boolean hasSystemInstruction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * System instruction, also known as the prompt preamble for LLM calls.
            +     * See also
            +     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + * + * @return The systemInstruction. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + getSystemInstruction() { + return systemInstruction_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + .getDefaultInstance() + : systemInstruction_; + } + + /** + * + * + *
            +     * System instruction, also known as the prompt preamble for LLM calls.
            +     * See also
            +     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstructionOrBuilder + getSystemInstructionOrBuilder() { + return systemInstruction_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + .getDefaultInstance() + : systemInstruction_; + } + + public static final int DEFAULT_LANGUAGE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultLanguage_ = ""; + + /** + * + * + *
            +     * The default language to use for the generation of the assistant
            +     * response.
            +     * Use an ISO 639-1 language code such as `en`.
            +     * If not specified, the language will be automatically detected.
            +     * 
            + * + * string default_language = 4; + * + * @return The defaultLanguage. + */ + @java.lang.Override + public java.lang.String getDefaultLanguage() { + java.lang.Object ref = defaultLanguage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultLanguage_ = s; + return s; + } + } + + /** + * + * + *
            +     * The default language to use for the generation of the assistant
            +     * response.
            +     * Use an ISO 639-1 language code such as `en`.
            +     * If not specified, the language will be automatically detected.
            +     * 
            + * + * string default_language = 4; + * + * @return The bytes for defaultLanguage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultLanguageBytes() { + java.lang.Object ref = defaultLanguage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultLanguage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultModelId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, defaultModelId_); + } + for (int i = 0; i < allowedModelIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, allowedModelIds_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSystemInstruction()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLanguage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, defaultLanguage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultModelId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, defaultModelId_); + } + { + int dataSize = 0; + for (int i = 0; i < allowedModelIds_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedModelIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedModelIdsList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSystemInstruction()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLanguage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, defaultLanguage_); + } + 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.v1beta.Assistant.GenerationConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig other = + (com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig) obj; + + if (!getDefaultModelId().equals(other.getDefaultModelId())) return false; + if (!getAllowedModelIdsList().equals(other.getAllowedModelIdsList())) return false; + if (hasSystemInstruction() != other.hasSystemInstruction()) return false; + if (hasSystemInstruction()) { + if (!getSystemInstruction().equals(other.getSystemInstruction())) return false; + } + if (!getDefaultLanguage().equals(other.getDefaultLanguage())) 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) + DEFAULT_MODEL_ID_FIELD_NUMBER; + hash = (53 * hash) + getDefaultModelId().hashCode(); + if (getAllowedModelIdsCount() > 0) { + hash = (37 * hash) + ALLOWED_MODEL_IDS_FIELD_NUMBER; + hash = (53 * hash) + getAllowedModelIdsList().hashCode(); + } + if (hasSystemInstruction()) { + hash = (37 * hash) + SYSTEM_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getSystemInstruction().hashCode(); + } + hash = (37 * hash) + DEFAULT_LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultLanguage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig 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.v1beta.Assistant.GenerationConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig parseFrom( + 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.v1beta.Assistant.GenerationConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Configuration for the generation of the assistant response.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig) + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.class, + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSystemInstructionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultModelId_ = ""; + allowedModelIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + systemInstruction_ = null; + if (systemInstructionBuilder_ != null) { + systemInstructionBuilder_.dispose(); + systemInstructionBuilder_ = null; + } + defaultLanguage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig build() { + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig buildPartial() { + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig result = + new com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultModelId_ = defaultModelId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + allowedModelIds_.makeImmutable(); + result.allowedModelIds_ = allowedModelIds_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.systemInstruction_ = + systemInstructionBuilder_ == null + ? systemInstruction_ + : systemInstructionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.defaultLanguage_ = defaultLanguage_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .getDefaultInstance()) return this; + if (!other.getDefaultModelId().isEmpty()) { + defaultModelId_ = other.defaultModelId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.allowedModelIds_.isEmpty()) { + if (allowedModelIds_.isEmpty()) { + allowedModelIds_ = other.allowedModelIds_; + bitField0_ |= 0x00000002; + } else { + ensureAllowedModelIdsIsMutable(); + allowedModelIds_.addAll(other.allowedModelIds_); + } + onChanged(); + } + if (other.hasSystemInstruction()) { + mergeSystemInstruction(other.getSystemInstruction()); + } + if (!other.getDefaultLanguage().isEmpty()) { + defaultLanguage_ = other.defaultLanguage_; + 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: + { + defaultModelId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedModelIdsIsMutable(); + allowedModelIds_.add(s); + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetSystemInstructionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + defaultLanguage_ = 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 defaultModelId_ = ""; + + /** + * + * + *
            +       * Optional. The default model to use for assistant.
            +       * 
            + * + * string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultModelId. + */ + public java.lang.String getDefaultModelId() { + java.lang.Object ref = defaultModelId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultModelId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. The default model to use for assistant.
            +       * 
            + * + * string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultModelId. + */ + public com.google.protobuf.ByteString getDefaultModelIdBytes() { + java.lang.Object ref = defaultModelId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultModelId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. The default model to use for assistant.
            +       * 
            + * + * string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The defaultModelId to set. + * @return This builder for chaining. + */ + public Builder setDefaultModelId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultModelId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The default model to use for assistant.
            +       * 
            + * + * string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDefaultModelId() { + defaultModelId_ = getDefaultInstance().getDefaultModelId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The default model to use for assistant.
            +       * 
            + * + * string default_model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for defaultModelId to set. + * @return This builder for chaining. + */ + public Builder setDefaultModelIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultModelId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList allowedModelIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedModelIdsIsMutable() { + if (!allowedModelIds_.isModifiable()) { + allowedModelIds_ = new com.google.protobuf.LazyStringArrayList(allowedModelIds_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
            +       * Optional. The list of models that are allowed to be used for assistant.
            +       * 
            + * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedModelIds. + */ + public com.google.protobuf.ProtocolStringList getAllowedModelIdsList() { + allowedModelIds_.makeImmutable(); + return allowedModelIds_; + } + + /** + * + * + *
            +       * Optional. The list of models that are allowed to be used for assistant.
            +       * 
            + * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedModelIds. + */ + public int getAllowedModelIdsCount() { + return allowedModelIds_.size(); + } + + /** + * + * + *
            +       * Optional. The list of models that are allowed to be used for assistant.
            +       * 
            + * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedModelIds at the given index. + */ + public java.lang.String getAllowedModelIds(int index) { + return allowedModelIds_.get(index); + } + + /** + * + * + *
            +       * Optional. The list of models that are allowed to be used for assistant.
            +       * 
            + * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedModelIds at the given index. + */ + public com.google.protobuf.ByteString getAllowedModelIdsBytes(int index) { + return allowedModelIds_.getByteString(index); + } + + /** + * + * + *
            +       * Optional. The list of models that are allowed to be used for assistant.
            +       * 
            + * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The allowedModelIds to set. + * @return This builder for chaining. + */ + public Builder setAllowedModelIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedModelIdsIsMutable(); + allowedModelIds_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The list of models that are allowed to be used for assistant.
            +       * 
            + * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The allowedModelIds to add. + * @return This builder for chaining. + */ + public Builder addAllowedModelIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedModelIdsIsMutable(); + allowedModelIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The list of models that are allowed to be used for assistant.
            +       * 
            + * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The allowedModelIds to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedModelIds(java.lang.Iterable values) { + ensureAllowedModelIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedModelIds_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The list of models that are allowed to be used for assistant.
            +       * 
            + * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAllowedModelIds() { + allowedModelIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The list of models that are allowed to be used for assistant.
            +       * 
            + * + * repeated string allowed_model_ids = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the allowedModelIds to add. + * @return This builder for chaining. + */ + public Builder addAllowedModelIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedModelIdsIsMutable(); + allowedModelIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + systemInstruction_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction, + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + .Builder, + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstructionOrBuilder> + systemInstructionBuilder_; + + /** + * + * + *
            +       * System instruction, also known as the prompt preamble for LLM calls.
            +       * See also
            +       * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + * + * @return Whether the systemInstruction field is set. + */ + public boolean hasSystemInstruction() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +       * System instruction, also known as the prompt preamble for LLM calls.
            +       * See also
            +       * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + * + * @return The systemInstruction. + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + getSystemInstruction() { + if (systemInstructionBuilder_ == null) { + return systemInstruction_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + .getDefaultInstance() + : systemInstruction_; + } else { + return systemInstructionBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * System instruction, also known as the prompt preamble for LLM calls.
            +       * See also
            +       * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + */ + public Builder setSystemInstruction( + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + value) { + if (systemInstructionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + systemInstruction_ = value; + } else { + systemInstructionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * System instruction, also known as the prompt preamble for LLM calls.
            +       * See also
            +       * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + */ + public Builder setSystemInstruction( + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + .Builder + builderForValue) { + if (systemInstructionBuilder_ == null) { + systemInstruction_ = builderForValue.build(); + } else { + systemInstructionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * System instruction, also known as the prompt preamble for LLM calls.
            +       * See also
            +       * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + */ + public Builder mergeSystemInstruction( + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + value) { + if (systemInstructionBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && systemInstruction_ != null + && systemInstruction_ + != com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction.getDefaultInstance()) { + getSystemInstructionBuilder().mergeFrom(value); + } else { + systemInstruction_ = value; + } + } else { + systemInstructionBuilder_.mergeFrom(value); + } + if (systemInstruction_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * System instruction, also known as the prompt preamble for LLM calls.
            +       * See also
            +       * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + */ + public Builder clearSystemInstruction() { + bitField0_ = (bitField0_ & ~0x00000004); + systemInstruction_ = null; + if (systemInstructionBuilder_ != null) { + systemInstructionBuilder_.dispose(); + systemInstructionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * System instruction, also known as the prompt preamble for LLM calls.
            +       * See also
            +       * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + .Builder + getSystemInstructionBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSystemInstructionFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * System instruction, also known as the prompt preamble for LLM calls.
            +       * See also
            +       * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstructionOrBuilder + getSystemInstructionOrBuilder() { + if (systemInstructionBuilder_ != null) { + return systemInstructionBuilder_.getMessageOrBuilder(); + } else { + return systemInstruction_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + .getDefaultInstance() + : systemInstruction_; + } + } + + /** + * + * + *
            +       * System instruction, also known as the prompt preamble for LLM calls.
            +       * See also
            +       * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction system_instruction = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction, + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.SystemInstruction + .Builder, + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstructionOrBuilder> + internalGetSystemInstructionFieldBuilder() { + if (systemInstructionBuilder_ == null) { + systemInstructionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction, + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstruction.Builder, + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .SystemInstructionOrBuilder>( + getSystemInstruction(), getParentForChildren(), isClean()); + systemInstruction_ = null; + } + return systemInstructionBuilder_; + } + + private java.lang.Object defaultLanguage_ = ""; + + /** + * + * + *
            +       * The default language to use for the generation of the assistant
            +       * response.
            +       * Use an ISO 639-1 language code such as `en`.
            +       * If not specified, the language will be automatically detected.
            +       * 
            + * + * string default_language = 4; + * + * @return The defaultLanguage. + */ + public java.lang.String getDefaultLanguage() { + java.lang.Object ref = defaultLanguage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultLanguage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * The default language to use for the generation of the assistant
            +       * response.
            +       * Use an ISO 639-1 language code such as `en`.
            +       * If not specified, the language will be automatically detected.
            +       * 
            + * + * string default_language = 4; + * + * @return The bytes for defaultLanguage. + */ + public com.google.protobuf.ByteString getDefaultLanguageBytes() { + java.lang.Object ref = defaultLanguage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultLanguage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * The default language to use for the generation of the assistant
            +       * response.
            +       * Use an ISO 639-1 language code such as `en`.
            +       * If not specified, the language will be automatically detected.
            +       * 
            + * + * string default_language = 4; + * + * @param value The defaultLanguage to set. + * @return This builder for chaining. + */ + public Builder setDefaultLanguage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultLanguage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The default language to use for the generation of the assistant
            +       * response.
            +       * Use an ISO 639-1 language code such as `en`.
            +       * If not specified, the language will be automatically detected.
            +       * 
            + * + * string default_language = 4; + * + * @return This builder for chaining. + */ + public Builder clearDefaultLanguage() { + defaultLanguage_ = getDefaultInstance().getDefaultLanguage(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The default language to use for the generation of the assistant
            +       * response.
            +       * Use an ISO 639-1 language code such as `en`.
            +       * If not specified, the language will be automatically detected.
            +       * 
            + * + * string default_language = 4; + * + * @param value The bytes for defaultLanguage to set. + * @return This builder for chaining. + */ + public Builder setDefaultLanguageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultLanguage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig) + private static final com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Assistant.GenerationConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ToolInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Assistant.ToolInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * The name of the tool as defined by
            +     * DataConnectorService.QueryAvailableActions.
            +     * Note: it's using `action` in the DataConnectorService apis, but they are
            +     * the same as the `tool` here.
            +     * 
            + * + * string tool_name = 1; + * + * @return The toolName. + */ + java.lang.String getToolName(); + + /** + * + * + *
            +     * The name of the tool as defined by
            +     * DataConnectorService.QueryAvailableActions.
            +     * Note: it's using `action` in the DataConnectorService apis, but they are
            +     * the same as the `tool` here.
            +     * 
            + * + * string tool_name = 1; + * + * @return The bytes for toolName. + */ + com.google.protobuf.ByteString getToolNameBytes(); + + /** + * + * + *
            +     * The display name of the tool.
            +     * 
            + * + * string tool_display_name = 2; + * + * @return The toolDisplayName. + */ + java.lang.String getToolDisplayName(); + + /** + * + * + *
            +     * The display name of the tool.
            +     * 
            + * + * string tool_display_name = 2; + * + * @return The bytes for toolDisplayName. + */ + com.google.protobuf.ByteString getToolDisplayNameBytes(); + } + + /** + * + * + *
            +   * Information to identify a tool.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Assistant.ToolInfo} + */ + public static final class ToolInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Assistant.ToolInfo) + ToolInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolInfo"); + } + + // Use ToolInfo.newBuilder() to construct. + private ToolInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolInfo() { + toolName_ = ""; + toolDisplayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo.class, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo.Builder.class); + } + + public static final int TOOL_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolName_ = ""; + + /** + * + * + *
            +     * The name of the tool as defined by
            +     * DataConnectorService.QueryAvailableActions.
            +     * Note: it's using `action` in the DataConnectorService apis, but they are
            +     * the same as the `tool` here.
            +     * 
            + * + * string tool_name = 1; + * + * @return The toolName. + */ + @java.lang.Override + public java.lang.String getToolName() { + java.lang.Object ref = toolName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolName_ = s; + return s; + } + } + + /** + * + * + *
            +     * The name of the tool as defined by
            +     * DataConnectorService.QueryAvailableActions.
            +     * Note: it's using `action` in the DataConnectorService apis, but they are
            +     * the same as the `tool` here.
            +     * 
            + * + * string tool_name = 1; + * + * @return The bytes for toolName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolNameBytes() { + java.lang.Object ref = toolName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOL_DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolDisplayName_ = ""; + + /** + * + * + *
            +     * The display name of the tool.
            +     * 
            + * + * string tool_display_name = 2; + * + * @return The toolDisplayName. + */ + @java.lang.Override + public java.lang.String getToolDisplayName() { + java.lang.Object ref = toolDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolDisplayName_ = s; + return s; + } + } + + /** + * + * + *
            +     * The display name of the tool.
            +     * 
            + * + * string tool_display_name = 2; + * + * @return The bytes for toolDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolDisplayNameBytes() { + java.lang.Object ref = toolDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, toolName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, toolDisplayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolDisplayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, toolDisplayName_); + } + 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.v1beta.Assistant.ToolInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo other = + (com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo) obj; + + if (!getToolName().equals(other.getToolName())) return false; + if (!getToolDisplayName().equals(other.getToolDisplayName())) 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) + TOOL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getToolName().hashCode(); + hash = (37 * hash) + TOOL_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getToolDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo 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.v1beta.Assistant.ToolInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo parseFrom( + 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.v1beta.Assistant.ToolInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Information to identify a tool.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Assistant.ToolInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Assistant.ToolInfo) + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo.class, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + toolName_ = ""; + toolDisplayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo build() { + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo buildPartial() { + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo result = + new com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.toolName_ = toolName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.toolDisplayName_ = toolDisplayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo.getDefaultInstance()) + return this; + if (!other.getToolName().isEmpty()) { + toolName_ = other.toolName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getToolDisplayName().isEmpty()) { + toolDisplayName_ = other.toolDisplayName_; + 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: + { + toolName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + toolDisplayName_ = 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 toolName_ = ""; + + /** + * + * + *
            +       * The name of the tool as defined by
            +       * DataConnectorService.QueryAvailableActions.
            +       * Note: it's using `action` in the DataConnectorService apis, but they are
            +       * the same as the `tool` here.
            +       * 
            + * + * string tool_name = 1; + * + * @return The toolName. + */ + public java.lang.String getToolName() { + java.lang.Object ref = toolName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * The name of the tool as defined by
            +       * DataConnectorService.QueryAvailableActions.
            +       * Note: it's using `action` in the DataConnectorService apis, but they are
            +       * the same as the `tool` here.
            +       * 
            + * + * string tool_name = 1; + * + * @return The bytes for toolName. + */ + public com.google.protobuf.ByteString getToolNameBytes() { + java.lang.Object ref = toolName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * The name of the tool as defined by
            +       * DataConnectorService.QueryAvailableActions.
            +       * Note: it's using `action` in the DataConnectorService apis, but they are
            +       * the same as the `tool` here.
            +       * 
            + * + * string tool_name = 1; + * + * @param value The toolName to set. + * @return This builder for chaining. + */ + public Builder setToolName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The name of the tool as defined by
            +       * DataConnectorService.QueryAvailableActions.
            +       * Note: it's using `action` in the DataConnectorService apis, but they are
            +       * the same as the `tool` here.
            +       * 
            + * + * string tool_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearToolName() { + toolName_ = getDefaultInstance().getToolName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The name of the tool as defined by
            +       * DataConnectorService.QueryAvailableActions.
            +       * Note: it's using `action` in the DataConnectorService apis, but they are
            +       * the same as the `tool` here.
            +       * 
            + * + * string tool_name = 1; + * + * @param value The bytes for toolName to set. + * @return This builder for chaining. + */ + public Builder setToolNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object toolDisplayName_ = ""; + + /** + * + * + *
            +       * The display name of the tool.
            +       * 
            + * + * string tool_display_name = 2; + * + * @return The toolDisplayName. + */ + public java.lang.String getToolDisplayName() { + java.lang.Object ref = toolDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * The display name of the tool.
            +       * 
            + * + * string tool_display_name = 2; + * + * @return The bytes for toolDisplayName. + */ + public com.google.protobuf.ByteString getToolDisplayNameBytes() { + java.lang.Object ref = toolDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * The display name of the tool.
            +       * 
            + * + * string tool_display_name = 2; + * + * @param value The toolDisplayName to set. + * @return This builder for chaining. + */ + public Builder setToolDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolDisplayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The display name of the tool.
            +       * 
            + * + * string tool_display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearToolDisplayName() { + toolDisplayName_ = getDefaultInstance().getToolDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The display name of the tool.
            +       * 
            + * + * string tool_display_name = 2; + * + * @param value The bytes for toolDisplayName to set. + * @return This builder for chaining. + */ + public Builder setToolDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolDisplayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Assistant.ToolInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Assistant.ToolInfo) + private static final com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo(); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Assistant.ToolInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ToolListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Assistant.ToolList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * The list of tools with corresponding tool information.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + */ + java.util.List getToolInfoList(); + + /** + * + * + *
            +     * The list of tools with corresponding tool information.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + */ + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo getToolInfo(int index); + + /** + * + * + *
            +     * The list of tools with corresponding tool information.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + */ + int getToolInfoCount(); + + /** + * + * + *
            +     * The list of tools with corresponding tool information.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + */ + java.util.List + getToolInfoOrBuilderList(); + + /** + * + * + *
            +     * The list of tools with corresponding tool information.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + */ + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfoOrBuilder getToolInfoOrBuilder( + int index); + } + + /** + * + * + *
            +   * The enabled tools on a connector
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Assistant.ToolList} + */ + public static final class ToolList extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Assistant.ToolList) + ToolListOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolList"); + } + + // Use ToolList.newBuilder() to construct. + private ToolList(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolList() { + toolInfo_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList.class, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList.Builder.class); + } + + public static final int TOOL_INFO_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List toolInfo_; + + /** + * + * + *
            +     * The list of tools with corresponding tool information.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + */ + @java.lang.Override + public java.util.List + getToolInfoList() { + return toolInfo_; + } + + /** + * + * + *
            +     * The list of tools with corresponding tool information.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfoOrBuilder> + getToolInfoOrBuilderList() { + return toolInfo_; + } + + /** + * + * + *
            +     * The list of tools with corresponding tool information.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + */ + @java.lang.Override + public int getToolInfoCount() { + return toolInfo_.size(); + } + + /** + * + * + *
            +     * The list of tools with corresponding tool information.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo getToolInfo(int index) { + return toolInfo_.get(index); + } + + /** + * + * + *
            +     * The list of tools with corresponding tool information.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfoOrBuilder getToolInfoOrBuilder( + int index) { + return toolInfo_.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 < toolInfo_.size(); i++) { + output.writeMessage(1, toolInfo_.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 < toolInfo_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, toolInfo_.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.v1beta.Assistant.ToolList)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList other = + (com.google.cloud.discoveryengine.v1beta.Assistant.ToolList) obj; + + if (!getToolInfoList().equals(other.getToolInfoList())) 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 (getToolInfoCount() > 0) { + hash = (37 * hash) + TOOL_INFO_FIELD_NUMBER; + hash = (53 * hash) + getToolInfoList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolList 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.v1beta.Assistant.ToolList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolList parseFrom( + 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.v1beta.Assistant.ToolList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * The enabled tools on a connector
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Assistant.ToolList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Assistant.ToolList) + com.google.cloud.discoveryengine.v1beta.Assistant.ToolListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList.class, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.Assistant.ToolList.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolInfoBuilder_ == null) { + toolInfo_ = java.util.Collections.emptyList(); + } else { + toolInfo_ = null; + toolInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolList_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.ToolList + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Assistant.ToolList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.ToolList build() { + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.ToolList buildPartial() { + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList result = + new com.google.cloud.discoveryengine.v1beta.Assistant.ToolList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList result) { + if (toolInfoBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + toolInfo_ = java.util.Collections.unmodifiableList(toolInfo_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.toolInfo_ = toolInfo_; + } else { + result.toolInfo_ = toolInfoBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Assistant.ToolList) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Assistant.ToolList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Assistant.ToolList other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Assistant.ToolList.getDefaultInstance()) + return this; + if (toolInfoBuilder_ == null) { + if (!other.toolInfo_.isEmpty()) { + if (toolInfo_.isEmpty()) { + toolInfo_ = other.toolInfo_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolInfoIsMutable(); + toolInfo_.addAll(other.toolInfo_); + } + onChanged(); + } + } else { + if (!other.toolInfo_.isEmpty()) { + if (toolInfoBuilder_.isEmpty()) { + toolInfoBuilder_.dispose(); + toolInfoBuilder_ = null; + toolInfo_ = other.toolInfo_; + bitField0_ = (bitField0_ & ~0x00000001); + toolInfoBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolInfoFieldBuilder() + : null; + } else { + toolInfoBuilder_.addAllMessages(other.toolInfo_); + } + } + } + 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.v1beta.Assistant.ToolInfo m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo.parser(), + extensionRegistry); + if (toolInfoBuilder_ == null) { + ensureToolInfoIsMutable(); + toolInfo_.add(m); + } else { + toolInfoBuilder_.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 toolInfo_ = + java.util.Collections.emptyList(); + + private void ensureToolInfoIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + toolInfo_ = + new java.util.ArrayList( + toolInfo_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfoOrBuilder> + toolInfoBuilder_; + + /** + * + * + *
            +       * The list of tools with corresponding tool information.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + * + */ + public java.util.List + getToolInfoList() { + if (toolInfoBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolInfo_); + } else { + return toolInfoBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +       * The list of tools with corresponding tool information.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + * + */ + public int getToolInfoCount() { + if (toolInfoBuilder_ == null) { + return toolInfo_.size(); + } else { + return toolInfoBuilder_.getCount(); + } + } + + /** + * + * + *
            +       * The list of tools with corresponding tool information.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo getToolInfo(int index) { + if (toolInfoBuilder_ == null) { + return toolInfo_.get(index); + } else { + return toolInfoBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +       * The list of tools with corresponding tool information.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + * + */ + public Builder setToolInfo( + int index, com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo value) { + if (toolInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolInfoIsMutable(); + toolInfo_.set(index, value); + onChanged(); + } else { + toolInfoBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * The list of tools with corresponding tool information.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + * + */ + public Builder setToolInfo( + int index, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo.Builder builderForValue) { + if (toolInfoBuilder_ == null) { + ensureToolInfoIsMutable(); + toolInfo_.set(index, builderForValue.build()); + onChanged(); + } else { + toolInfoBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * The list of tools with corresponding tool information.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + * + */ + public Builder addToolInfo(com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo value) { + if (toolInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolInfoIsMutable(); + toolInfo_.add(value); + onChanged(); + } else { + toolInfoBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +       * The list of tools with corresponding tool information.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + * + */ + public Builder addToolInfo( + int index, com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo value) { + if (toolInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolInfoIsMutable(); + toolInfo_.add(index, value); + onChanged(); + } else { + toolInfoBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * The list of tools with corresponding tool information.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + * + */ + public Builder addToolInfo( + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo.Builder builderForValue) { + if (toolInfoBuilder_ == null) { + ensureToolInfoIsMutable(); + toolInfo_.add(builderForValue.build()); + onChanged(); + } else { + toolInfoBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * The list of tools with corresponding tool information.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + * + */ + public Builder addToolInfo( + int index, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo.Builder builderForValue) { + if (toolInfoBuilder_ == null) { + ensureToolInfoIsMutable(); + toolInfo_.add(index, builderForValue.build()); + onChanged(); + } else { + toolInfoBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * The list of tools with corresponding tool information.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + * + */ + public Builder addAllToolInfo( + java.lang.Iterable + values) { + if (toolInfoBuilder_ == null) { + ensureToolInfoIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolInfo_); + onChanged(); + } else { + toolInfoBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * The list of tools with corresponding tool information.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + * + */ + public Builder clearToolInfo() { + if (toolInfoBuilder_ == null) { + toolInfo_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolInfoBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * The list of tools with corresponding tool information.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + * + */ + public Builder removeToolInfo(int index) { + if (toolInfoBuilder_ == null) { + ensureToolInfoIsMutable(); + toolInfo_.remove(index); + onChanged(); + } else { + toolInfoBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * The list of tools with corresponding tool information.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo.Builder getToolInfoBuilder( + int index) { + return internalGetToolInfoFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * The list of tools with corresponding tool information.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfoOrBuilder + getToolInfoOrBuilder(int index) { + if (toolInfoBuilder_ == null) { + return toolInfo_.get(index); + } else { + return toolInfoBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * The list of tools with corresponding tool information.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfoOrBuilder> + getToolInfoOrBuilderList() { + if (toolInfoBuilder_ != null) { + return toolInfoBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolInfo_); + } + } + + /** + * + * + *
            +       * The list of tools with corresponding tool information.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo.Builder + addToolInfoBuilder() { + return internalGetToolInfoFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo.getDefaultInstance()); + } + + /** + * + * + *
            +       * The list of tools with corresponding tool information.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo.Builder addToolInfoBuilder( + int index) { + return internalGetToolInfoFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo.getDefaultInstance()); + } + + /** + * + * + *
            +       * The list of tools with corresponding tool information.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.ToolInfo tool_info = 1; + * + */ + public java.util.List + getToolInfoBuilderList() { + return internalGetToolInfoFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfoOrBuilder> + internalGetToolInfoFieldBuilder() { + if (toolInfoBuilder_ == null) { + toolInfoBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolInfoOrBuilder>( + toolInfo_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + toolInfo_ = null; + } + return toolInfoBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Assistant.ToolList) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Assistant.ToolList) + private static final com.google.cloud.discoveryengine.v1beta.Assistant.ToolList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Assistant.ToolList(); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.ToolList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Assistant.ToolList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CustomerPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. List of banned phrases.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getBannedPhrasesList(); + + /** + * + * + *
            +     * Optional. List of banned phrases.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase getBannedPhrases( + int index); + + /** + * + * + *
            +     * Optional. List of banned phrases.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getBannedPhrasesCount(); + + /** + * + * + *
            +     * Optional. List of banned phrases.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .BannedPhraseOrBuilder> + getBannedPhrasesOrBuilderList(); + + /** + * + * + *
            +     * Optional. List of banned phrases.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhraseOrBuilder + getBannedPhrasesOrBuilder(int index); + + /** + * + * + *
            +     * Optional. Model Armor configuration to be used for sanitizing user
            +     * prompts and assistant responses.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelArmorConfig field is set. + */ + boolean hasModelArmorConfig(); + + /** + * + * + *
            +     * Optional. Model Armor configuration to be used for sanitizing user
            +     * prompts and assistant responses.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelArmorConfig. + */ + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + getModelArmorConfig(); + + /** + * + * + *
            +     * Optional. Model Armor configuration to be used for sanitizing user
            +     * prompts and assistant responses.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfigOrBuilder + getModelArmorConfigOrBuilder(); + } + + /** + * + * + *
            +   * Customer-defined policy for the assistant.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy} + */ + public static final class CustomerPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy) + CustomerPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CustomerPolicy"); + } + + // Use CustomerPolicy.newBuilder() to construct. + private CustomerPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomerPolicy() { + bannedPhrases_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.class, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.Builder.class); + } + + public interface BannedPhraseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Required. The raw string content to be banned.
            +       * 
            + * + * string phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The phrase. + */ + java.lang.String getPhrase(); + + /** + * + * + *
            +       * Required. The raw string content to be banned.
            +       * 
            + * + * string phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for phrase. + */ + com.google.protobuf.ByteString getPhraseBytes(); + + /** + * + * + *
            +       * Optional. Match type for the banned phrase.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + int getMatchTypeValue(); + + /** + * + * + *
            +       * Optional. Match type for the banned phrase.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The matchType. + */ + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType + getMatchType(); + + /** + * + * + *
            +       * Optional. If true, diacritical marks (e.g., accents, umlauts) are
            +       * ignored when matching banned phrases. For example, "cafe" would match
            +       * "café".
            +       * 
            + * + * bool ignore_diacritics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreDiacritics. + */ + boolean getIgnoreDiacritics(); + } + + /** + * + * + *
            +     * Definition of a customer-defined banned phrase. A banned phrase is not
            +     * allowed to appear in the user query or the LLM response, or else the
            +     * answer will be refused.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase} + */ + public static final class BannedPhrase extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase) + BannedPhraseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BannedPhrase"); + } + + // Use BannedPhrase.newBuilder() to construct. + private BannedPhrase(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BannedPhrase() { + phrase_ = ""; + matchType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_BannedPhrase_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_BannedPhrase_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.class, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .Builder.class); + } + + /** + * + * + *
            +       * The matching method for the banned phrase.
            +       * 
            + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType} + */ + public enum BannedPhraseMatchType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +         * Defaults to SIMPLE_STRING_MATCH.
            +         * 
            + * + * BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED = 0; + */ + BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED(0), + /** + * + * + *
            +         * The banned phrase matches if it is found anywhere in the text as an
            +         * exact substring.
            +         * 
            + * + * SIMPLE_STRING_MATCH = 1; + */ + SIMPLE_STRING_MATCH(1), + /** + * + * + *
            +         * Banned phrase only matches if the pattern found in the text is
            +         * surrounded by word delimiters. The phrase itself may still contain
            +         * word delimiters.
            +         * 
            + * + * WORD_BOUNDARY_STRING_MATCH = 2; + */ + WORD_BOUNDARY_STRING_MATCH(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BannedPhraseMatchType"); + } + + /** + * + * + *
            +         * Defaults to SIMPLE_STRING_MATCH.
            +         * 
            + * + * BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED = 0; + */ + public static final int BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +         * The banned phrase matches if it is found anywhere in the text as an
            +         * exact substring.
            +         * 
            + * + * SIMPLE_STRING_MATCH = 1; + */ + public static final int SIMPLE_STRING_MATCH_VALUE = 1; + + /** + * + * + *
            +         * Banned phrase only matches if the pattern found in the text is
            +         * surrounded by word delimiters. The phrase itself may still contain
            +         * word delimiters.
            +         * 
            + * + * WORD_BOUNDARY_STRING_MATCH = 2; + */ + public static final int WORD_BOUNDARY_STRING_MATCH_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 BannedPhraseMatchType 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 BannedPhraseMatchType forNumber(int value) { + switch (value) { + case 0: + return BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED; + case 1: + return SIMPLE_STRING_MATCH; + case 2: + return WORD_BOUNDARY_STRING_MATCH; + 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 BannedPhraseMatchType findValueByNumber(int number) { + return BannedPhraseMatchType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final BannedPhraseMatchType[] VALUES = values(); + + public static BannedPhraseMatchType 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 BannedPhraseMatchType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType) + } + + public static final int PHRASE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object phrase_ = ""; + + /** + * + * + *
            +       * Required. The raw string content to be banned.
            +       * 
            + * + * string phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
            +       * Required. The raw string content to be banned.
            +       * 
            + * + * string phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 MATCH_TYPE_FIELD_NUMBER = 2; + private int matchType_ = 0; + + /** + * + * + *
            +       * Optional. Match type for the banned phrase.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + + /** + * + * + *
            +       * Optional. Match type for the banned phrase.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The matchType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType + getMatchType() { + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType + result = + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType.forNumber(matchType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType.UNRECOGNIZED + : result; + } + + public static final int IGNORE_DIACRITICS_FIELD_NUMBER = 3; + private boolean ignoreDiacritics_ = false; + + /** + * + * + *
            +       * Optional. If true, diacritical marks (e.g., accents, umlauts) are
            +       * ignored when matching banned phrases. For example, "cafe" would match
            +       * "café".
            +       * 
            + * + * bool ignore_diacritics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreDiacritics. + */ + @java.lang.Override + public boolean getIgnoreDiacritics() { + return ignoreDiacritics_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(phrase_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, phrase_); + } + if (matchType_ + != com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType.BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, matchType_); + } + if (ignoreDiacritics_ != false) { + output.writeBool(3, ignoreDiacritics_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(phrase_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, phrase_); + } + if (matchType_ + != com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType.BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, matchType_); + } + if (ignoreDiacritics_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, ignoreDiacritics_); + } + 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.v1beta.Assistant.CustomerPolicy.BannedPhrase)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase other = + (com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase) obj; + + if (!getPhrase().equals(other.getPhrase())) return false; + if (matchType_ != other.matchType_) return false; + if (getIgnoreDiacritics() != other.getIgnoreDiacritics()) 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) + PHRASE_FIELD_NUMBER; + hash = (53 * hash) + getPhrase().hashCode(); + hash = (37 * hash) + MATCH_TYPE_FIELD_NUMBER; + hash = (53 * hash) + matchType_; + hash = (37 * hash) + IGNORE_DIACRITICS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreDiacritics()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + 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.v1beta.Assistant.CustomerPolicy.BannedPhrase + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + parseFrom( + 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.v1beta.Assistant.CustomerPolicy.BannedPhrase + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Definition of a customer-defined banned phrase. A banned phrase is not
            +       * allowed to appear in the user query or the LLM response, or else the
            +       * answer will be refused.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase) + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhraseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_BannedPhrase_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_BannedPhrase_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .class, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + phrase_ = ""; + matchType_ = 0; + ignoreDiacritics_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_BannedPhrase_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + build() { + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase result = + new com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.phrase_ = phrase_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.matchType_ = matchType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ignoreDiacritics_ = ignoreDiacritics_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .getDefaultInstance()) return this; + if (!other.getPhrase().isEmpty()) { + phrase_ = other.phrase_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.matchType_ != 0) { + setMatchTypeValue(other.getMatchTypeValue()); + } + if (other.getIgnoreDiacritics() != false) { + setIgnoreDiacritics(other.getIgnoreDiacritics()); + } + 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: + { + matchType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + ignoreDiacritics_ = 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 phrase_ = ""; + + /** + * + * + *
            +         * Required. The raw string content to be banned.
            +         * 
            + * + * string phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
            +         * Required. The raw string content to be banned.
            +         * 
            + * + * string phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
            +         * Required. The raw string content to be banned.
            +         * 
            + * + * string phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + + /** + * + * + *
            +         * Required. The raw string content to be banned.
            +         * 
            + * + * string phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPhrase() { + phrase_ = getDefaultInstance().getPhrase(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The raw string content to be banned.
            +         * 
            + * + * string phrase = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 matchType_ = 0; + + /** + * + * + *
            +         * Optional. Match type for the banned phrase.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + + /** + * + * + *
            +         * Optional. Match type for the banned phrase.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchTypeValue(int value) { + matchType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Match type for the banned phrase.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The matchType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType + getMatchType() { + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType + result = + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType.forNumber(matchType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +         * Optional. Match type for the banned phrase.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchType( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .BannedPhraseMatchType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + matchType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Match type for the banned phrase.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.BannedPhraseMatchType match_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMatchType() { + bitField0_ = (bitField0_ & ~0x00000002); + matchType_ = 0; + onChanged(); + return this; + } + + private boolean ignoreDiacritics_; + + /** + * + * + *
            +         * Optional. If true, diacritical marks (e.g., accents, umlauts) are
            +         * ignored when matching banned phrases. For example, "cafe" would match
            +         * "café".
            +         * 
            + * + * bool ignore_diacritics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The ignoreDiacritics. + */ + @java.lang.Override + public boolean getIgnoreDiacritics() { + return ignoreDiacritics_; + } + + /** + * + * + *
            +         * Optional. If true, diacritical marks (e.g., accents, umlauts) are
            +         * ignored when matching banned phrases. For example, "cafe" would match
            +         * "café".
            +         * 
            + * + * bool ignore_diacritics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The ignoreDiacritics to set. + * @return This builder for chaining. + */ + public Builder setIgnoreDiacritics(boolean value) { + + ignoreDiacritics_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. If true, diacritical marks (e.g., accents, umlauts) are
            +         * ignored when matching banned phrases. For example, "cafe" would match
            +         * "café".
            +         * 
            + * + * bool ignore_diacritics = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreDiacritics() { + bitField0_ = (bitField0_ & ~0x00000004); + ignoreDiacritics_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase) + private static final com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .BannedPhrase + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase(); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BannedPhrase parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Assistant.CustomerPolicy.BannedPhrase + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ModelArmorConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Optional. The resource name of the Model Armor template for sanitizing
            +       * user prompts. Format:
            +       * `projects/{project}/locations/{location}/templates/{template_id}`
            +       *
            +       * If not specified, no sanitization will be applied to the user prompt.
            +       * 
            + * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The userPromptTemplate. + */ + java.lang.String getUserPromptTemplate(); + + /** + * + * + *
            +       * Optional. The resource name of the Model Armor template for sanitizing
            +       * user prompts. Format:
            +       * `projects/{project}/locations/{location}/templates/{template_id}`
            +       *
            +       * If not specified, no sanitization will be applied to the user prompt.
            +       * 
            + * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for userPromptTemplate. + */ + com.google.protobuf.ByteString getUserPromptTemplateBytes(); + + /** + * + * + *
            +       * Optional. The resource name of the Model Armor template for sanitizing
            +       * assistant responses. Format:
            +       * `projects/{project}/locations/{location}/templates/{template_id}`
            +       *
            +       * If not specified, no sanitization will be applied to the assistant
            +       * response.
            +       * 
            + * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The responseTemplate. + */ + java.lang.String getResponseTemplate(); + + /** + * + * + *
            +       * Optional. The resource name of the Model Armor template for sanitizing
            +       * assistant responses. Format:
            +       * `projects/{project}/locations/{location}/templates/{template_id}`
            +       *
            +       * If not specified, no sanitization will be applied to the assistant
            +       * response.
            +       * 
            + * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for responseTemplate. + */ + com.google.protobuf.ByteString getResponseTemplateBytes(); + + /** + * + * + *
            +       * Optional. Defines the failure mode for Model Armor sanitization.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for failureMode. + */ + int getFailureModeValue(); + + /** + * + * + *
            +       * Optional. Defines the failure mode for Model Armor sanitization.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The failureMode. + */ + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode + getFailureMode(); + } + + /** + * + * + *
            +     * Configuration for customer defined Model Armor templates to be used for
            +     * sanitizing user prompts and assistant responses.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig} + */ + public static final class ModelArmorConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig) + ModelArmorConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ModelArmorConfig"); + } + + // Use ModelArmorConfig.newBuilder() to construct. + private ModelArmorConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ModelArmorConfig() { + userPromptTemplate_ = ""; + responseTemplate_ = ""; + failureMode_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_ModelArmorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_ModelArmorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .class, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .Builder.class); + } + + /** + * + * + *
            +       * Determines the behavior when Model Armor fails to process a request.
            +       * 
            + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode} + */ + public enum FailureMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +         * Unspecified failure mode, default behavior is `FAIL_CLOSED`.
            +         * 
            + * + * FAILURE_MODE_UNSPECIFIED = 0; + */ + FAILURE_MODE_UNSPECIFIED(0), + /** + * + * + *
            +         * In case of a Model Armor processing failure, the request is allowed
            +         * to proceed without any changes.
            +         * 
            + * + * FAIL_OPEN = 1; + */ + FAIL_OPEN(1), + /** + * + * + *
            +         * In case of a Model Armor processing failure, the request is rejected.
            +         * 
            + * + * FAIL_CLOSED = 2; + */ + FAIL_CLOSED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FailureMode"); + } + + /** + * + * + *
            +         * Unspecified failure mode, default behavior is `FAIL_CLOSED`.
            +         * 
            + * + * FAILURE_MODE_UNSPECIFIED = 0; + */ + public static final int FAILURE_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +         * In case of a Model Armor processing failure, the request is allowed
            +         * to proceed without any changes.
            +         * 
            + * + * FAIL_OPEN = 1; + */ + public static final int FAIL_OPEN_VALUE = 1; + + /** + * + * + *
            +         * In case of a Model Armor processing failure, the request is rejected.
            +         * 
            + * + * FAIL_CLOSED = 2; + */ + public static final int FAIL_CLOSED_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 FailureMode 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 FailureMode forNumber(int value) { + switch (value) { + case 0: + return FAILURE_MODE_UNSPECIFIED; + case 1: + return FAIL_OPEN; + case 2: + return FAIL_CLOSED; + 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 FailureMode findValueByNumber(int number) { + return FailureMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final FailureMode[] VALUES = values(); + + public static FailureMode 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 FailureMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode) + } + + public static final int USER_PROMPT_TEMPLATE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object userPromptTemplate_ = ""; + + /** + * + * + *
            +       * Optional. The resource name of the Model Armor template for sanitizing
            +       * user prompts. Format:
            +       * `projects/{project}/locations/{location}/templates/{template_id}`
            +       *
            +       * If not specified, no sanitization will be applied to the user prompt.
            +       * 
            + * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The userPromptTemplate. + */ + @java.lang.Override + public java.lang.String getUserPromptTemplate() { + java.lang.Object ref = userPromptTemplate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPromptTemplate_ = s; + return s; + } + } + + /** + * + * + *
            +       * Optional. The resource name of the Model Armor template for sanitizing
            +       * user prompts. Format:
            +       * `projects/{project}/locations/{location}/templates/{template_id}`
            +       *
            +       * If not specified, no sanitization will be applied to the user prompt.
            +       * 
            + * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for userPromptTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserPromptTemplateBytes() { + java.lang.Object ref = userPromptTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPromptTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESPONSE_TEMPLATE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object responseTemplate_ = ""; + + /** + * + * + *
            +       * Optional. The resource name of the Model Armor template for sanitizing
            +       * assistant responses. Format:
            +       * `projects/{project}/locations/{location}/templates/{template_id}`
            +       *
            +       * If not specified, no sanitization will be applied to the assistant
            +       * response.
            +       * 
            + * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The responseTemplate. + */ + @java.lang.Override + public java.lang.String getResponseTemplate() { + java.lang.Object ref = responseTemplate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + responseTemplate_ = s; + return s; + } + } + + /** + * + * + *
            +       * Optional. The resource name of the Model Armor template for sanitizing
            +       * assistant responses. Format:
            +       * `projects/{project}/locations/{location}/templates/{template_id}`
            +       *
            +       * If not specified, no sanitization will be applied to the assistant
            +       * response.
            +       * 
            + * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for responseTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResponseTemplateBytes() { + java.lang.Object ref = responseTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + responseTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FAILURE_MODE_FIELD_NUMBER = 3; + private int failureMode_ = 0; + + /** + * + * + *
            +       * Optional. Defines the failure mode for Model Armor sanitization.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for failureMode. + */ + @java.lang.Override + public int getFailureModeValue() { + return failureMode_; + } + + /** + * + * + *
            +       * Optional. Defines the failure mode for Model Armor sanitization.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The failureMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode + getFailureMode() { + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode + result = + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode.forNumber(failureMode_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPromptTemplate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, userPromptTemplate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(responseTemplate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, responseTemplate_); + } + if (failureMode_ + != com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode.FAILURE_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, failureMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPromptTemplate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, userPromptTemplate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(responseTemplate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, responseTemplate_); + } + if (failureMode_ + != com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode.FAILURE_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, failureMode_); + } + 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.v1beta.Assistant.CustomerPolicy.ModelArmorConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig other = + (com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig) obj; + + if (!getUserPromptTemplate().equals(other.getUserPromptTemplate())) return false; + if (!getResponseTemplate().equals(other.getResponseTemplate())) return false; + if (failureMode_ != other.failureMode_) 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) + USER_PROMPT_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getUserPromptTemplate().hashCode(); + hash = (37 * hash) + RESPONSE_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getResponseTemplate().hashCode(); + hash = (37 * hash) + FAILURE_MODE_FIELD_NUMBER; + hash = (53 * hash) + failureMode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .ModelArmorConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .ModelArmorConfig + 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.v1beta.Assistant.CustomerPolicy + .ModelArmorConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .ModelArmorConfig + parseFrom( + 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.v1beta.Assistant.CustomerPolicy + .ModelArmorConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .ModelArmorConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .ModelArmorConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .ModelArmorConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .ModelArmorConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .ModelArmorConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .ModelArmorConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .ModelArmorConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Configuration for customer defined Model Armor templates to be used for
            +       * sanitizing user prompts and assistant responses.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig) + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .ModelArmorConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_ModelArmorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_ModelArmorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .class, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userPromptTemplate_ = ""; + responseTemplate_ = ""; + failureMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_ModelArmorConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + build() { + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig result = + new com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userPromptTemplate_ = userPromptTemplate_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.responseTemplate_ = responseTemplate_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.failureMode_ = failureMode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .getDefaultInstance()) return this; + if (!other.getUserPromptTemplate().isEmpty()) { + userPromptTemplate_ = other.userPromptTemplate_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getResponseTemplate().isEmpty()) { + responseTemplate_ = other.responseTemplate_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.failureMode_ != 0) { + setFailureModeValue(other.getFailureModeValue()); + } + 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: + { + userPromptTemplate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + responseTemplate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + failureMode_ = 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 userPromptTemplate_ = ""; + + /** + * + * + *
            +         * Optional. The resource name of the Model Armor template for sanitizing
            +         * user prompts. Format:
            +         * `projects/{project}/locations/{location}/templates/{template_id}`
            +         *
            +         * If not specified, no sanitization will be applied to the user prompt.
            +         * 
            + * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The userPromptTemplate. + */ + public java.lang.String getUserPromptTemplate() { + java.lang.Object ref = userPromptTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPromptTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Optional. The resource name of the Model Armor template for sanitizing
            +         * user prompts. Format:
            +         * `projects/{project}/locations/{location}/templates/{template_id}`
            +         *
            +         * If not specified, no sanitization will be applied to the user prompt.
            +         * 
            + * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for userPromptTemplate. + */ + public com.google.protobuf.ByteString getUserPromptTemplateBytes() { + java.lang.Object ref = userPromptTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPromptTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Optional. The resource name of the Model Armor template for sanitizing
            +         * user prompts. Format:
            +         * `projects/{project}/locations/{location}/templates/{template_id}`
            +         *
            +         * If not specified, no sanitization will be applied to the user prompt.
            +         * 
            + * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The userPromptTemplate to set. + * @return This builder for chaining. + */ + public Builder setUserPromptTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userPromptTemplate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The resource name of the Model Armor template for sanitizing
            +         * user prompts. Format:
            +         * `projects/{project}/locations/{location}/templates/{template_id}`
            +         *
            +         * If not specified, no sanitization will be applied to the user prompt.
            +         * 
            + * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUserPromptTemplate() { + userPromptTemplate_ = getDefaultInstance().getUserPromptTemplate(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The resource name of the Model Armor template for sanitizing
            +         * user prompts. Format:
            +         * `projects/{project}/locations/{location}/templates/{template_id}`
            +         *
            +         * If not specified, no sanitization will be applied to the user prompt.
            +         * 
            + * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for userPromptTemplate to set. + * @return This builder for chaining. + */ + public Builder setUserPromptTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userPromptTemplate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object responseTemplate_ = ""; + + /** + * + * + *
            +         * Optional. The resource name of the Model Armor template for sanitizing
            +         * assistant responses. Format:
            +         * `projects/{project}/locations/{location}/templates/{template_id}`
            +         *
            +         * If not specified, no sanitization will be applied to the assistant
            +         * response.
            +         * 
            + * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The responseTemplate. + */ + public java.lang.String getResponseTemplate() { + java.lang.Object ref = responseTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + responseTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Optional. The resource name of the Model Armor template for sanitizing
            +         * assistant responses. Format:
            +         * `projects/{project}/locations/{location}/templates/{template_id}`
            +         *
            +         * If not specified, no sanitization will be applied to the assistant
            +         * response.
            +         * 
            + * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for responseTemplate. + */ + public com.google.protobuf.ByteString getResponseTemplateBytes() { + java.lang.Object ref = responseTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + responseTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Optional. The resource name of the Model Armor template for sanitizing
            +         * assistant responses. Format:
            +         * `projects/{project}/locations/{location}/templates/{template_id}`
            +         *
            +         * If not specified, no sanitization will be applied to the assistant
            +         * response.
            +         * 
            + * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The responseTemplate to set. + * @return This builder for chaining. + */ + public Builder setResponseTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + responseTemplate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The resource name of the Model Armor template for sanitizing
            +         * assistant responses. Format:
            +         * `projects/{project}/locations/{location}/templates/{template_id}`
            +         *
            +         * If not specified, no sanitization will be applied to the assistant
            +         * response.
            +         * 
            + * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearResponseTemplate() { + responseTemplate_ = getDefaultInstance().getResponseTemplate(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The resource name of the Model Armor template for sanitizing
            +         * assistant responses. Format:
            +         * `projects/{project}/locations/{location}/templates/{template_id}`
            +         *
            +         * If not specified, no sanitization will be applied to the assistant
            +         * response.
            +         * 
            + * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for responseTemplate to set. + * @return This builder for chaining. + */ + public Builder setResponseTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + responseTemplate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int failureMode_ = 0; + + /** + * + * + *
            +         * Optional. Defines the failure mode for Model Armor sanitization.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for failureMode. + */ + @java.lang.Override + public int getFailureModeValue() { + return failureMode_; + } + + /** + * + * + *
            +         * Optional. Defines the failure mode for Model Armor sanitization.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for failureMode to set. + * @return This builder for chaining. + */ + public Builder setFailureModeValue(int value) { + failureMode_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Defines the failure mode for Model Armor sanitization.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The failureMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode + getFailureMode() { + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode + result = + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode.forNumber(failureMode_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +         * Optional. Defines the failure mode for Model Armor sanitization.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The failureMode to set. + * @return This builder for chaining. + */ + public Builder setFailureMode( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .FailureMode + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + failureMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Defines the failure mode for Model Armor sanitization.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig.FailureMode failure_mode = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearFailureMode() { + bitField0_ = (bitField0_ & ~0x00000004); + failureMode_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig) + private static final com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .ModelArmorConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .ModelArmorConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelArmorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int BANNED_PHRASES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase> + bannedPhrases_; + + /** + * + * + *
            +     * Optional. List of banned phrases.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase> + getBannedPhrasesList() { + return bannedPhrases_; + } + + /** + * + * + *
            +     * Optional. List of banned phrases.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .BannedPhraseOrBuilder> + getBannedPhrasesOrBuilderList() { + return bannedPhrases_; + } + + /** + * + * + *
            +     * Optional. List of banned phrases.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getBannedPhrasesCount() { + return bannedPhrases_.size(); + } + + /** + * + * + *
            +     * Optional. List of banned phrases.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + getBannedPhrases(int index) { + return bannedPhrases_.get(index); + } + + /** + * + * + *
            +     * Optional. List of banned phrases.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhraseOrBuilder + getBannedPhrasesOrBuilder(int index) { + return bannedPhrases_.get(index); + } + + public static final int MODEL_ARMOR_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + modelArmorConfig_; + + /** + * + * + *
            +     * Optional. Model Armor configuration to be used for sanitizing user
            +     * prompts and assistant responses.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelArmorConfig field is set. + */ + @java.lang.Override + public boolean hasModelArmorConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. Model Armor configuration to be used for sanitizing user
            +     * prompts and assistant responses.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelArmorConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + getModelArmorConfig() { + return modelArmorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .getDefaultInstance() + : modelArmorConfig_; + } + + /** + * + * + *
            +     * Optional. Model Armor configuration to be used for sanitizing user
            +     * prompts and assistant responses.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .ModelArmorConfigOrBuilder + getModelArmorConfigOrBuilder() { + return modelArmorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .getDefaultInstance() + : modelArmorConfig_; + } + + 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 < bannedPhrases_.size(); i++) { + output.writeMessage(1, bannedPhrases_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getModelArmorConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < bannedPhrases_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, bannedPhrases_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getModelArmorConfig()); + } + 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.v1beta.Assistant.CustomerPolicy)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy other = + (com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy) obj; + + if (!getBannedPhrasesList().equals(other.getBannedPhrasesList())) return false; + if (hasModelArmorConfig() != other.hasModelArmorConfig()) return false; + if (hasModelArmorConfig()) { + if (!getModelArmorConfig().equals(other.getModelArmorConfig())) 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 (getBannedPhrasesCount() > 0) { + hash = (37 * hash) + BANNED_PHRASES_FIELD_NUMBER; + hash = (53 * hash) + getBannedPhrasesList().hashCode(); + } + if (hasModelArmorConfig()) { + hash = (37 * hash) + MODEL_ARMOR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getModelArmorConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy 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.v1beta.Assistant.CustomerPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy parseFrom( + 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.v1beta.Assistant.CustomerPolicy parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Customer-defined policy for the assistant.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy) + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.class, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBannedPhrasesFieldBuilder(); + internalGetModelArmorConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (bannedPhrasesBuilder_ == null) { + bannedPhrases_ = java.util.Collections.emptyList(); + } else { + bannedPhrases_ = null; + bannedPhrasesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + modelArmorConfig_ = null; + if (modelArmorConfigBuilder_ != null) { + modelArmorConfigBuilder_.dispose(); + modelArmorConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy build() { + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy buildPartial() { + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy result = + new com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy result) { + if (bannedPhrasesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + bannedPhrases_ = java.util.Collections.unmodifiableList(bannedPhrases_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.bannedPhrases_ = bannedPhrases_; + } else { + result.bannedPhrases_ = bannedPhrasesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelArmorConfig_ = + modelArmorConfigBuilder_ == null + ? modelArmorConfig_ + : modelArmorConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .getDefaultInstance()) return this; + if (bannedPhrasesBuilder_ == null) { + if (!other.bannedPhrases_.isEmpty()) { + if (bannedPhrases_.isEmpty()) { + bannedPhrases_ = other.bannedPhrases_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBannedPhrasesIsMutable(); + bannedPhrases_.addAll(other.bannedPhrases_); + } + onChanged(); + } + } else { + if (!other.bannedPhrases_.isEmpty()) { + if (bannedPhrasesBuilder_.isEmpty()) { + bannedPhrasesBuilder_.dispose(); + bannedPhrasesBuilder_ = null; + bannedPhrases_ = other.bannedPhrases_; + bitField0_ = (bitField0_ & ~0x00000001); + bannedPhrasesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBannedPhrasesFieldBuilder() + : null; + } else { + bannedPhrasesBuilder_.addAllMessages(other.bannedPhrases_); + } + } + } + if (other.hasModelArmorConfig()) { + mergeModelArmorConfig(other.getModelArmorConfig()); + } + 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.v1beta.Assistant.CustomerPolicy.BannedPhrase m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .BannedPhrase.parser(), + extensionRegistry); + if (bannedPhrasesBuilder_ == null) { + ensureBannedPhrasesIsMutable(); + bannedPhrases_.add(m); + } else { + bannedPhrasesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetModelArmorConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List< + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase> + bannedPhrases_ = java.util.Collections.emptyList(); + + private void ensureBannedPhrasesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + bannedPhrases_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase>( + bannedPhrases_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.Builder, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .BannedPhraseOrBuilder> + bannedPhrasesBuilder_; + + /** + * + * + *
            +       * Optional. List of banned phrases.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase> + getBannedPhrasesList() { + if (bannedPhrasesBuilder_ == null) { + return java.util.Collections.unmodifiableList(bannedPhrases_); + } else { + return bannedPhrasesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +       * Optional. List of banned phrases.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getBannedPhrasesCount() { + if (bannedPhrasesBuilder_ == null) { + return bannedPhrases_.size(); + } else { + return bannedPhrasesBuilder_.getCount(); + } + } + + /** + * + * + *
            +       * Optional. List of banned phrases.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + getBannedPhrases(int index) { + if (bannedPhrasesBuilder_ == null) { + return bannedPhrases_.get(index); + } else { + return bannedPhrasesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +       * Optional. List of banned phrases.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBannedPhrases( + int index, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase value) { + if (bannedPhrasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBannedPhrasesIsMutable(); + bannedPhrases_.set(index, value); + onChanged(); + } else { + bannedPhrasesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Optional. List of banned phrases.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setBannedPhrases( + int index, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.Builder + builderForValue) { + if (bannedPhrasesBuilder_ == null) { + ensureBannedPhrasesIsMutable(); + bannedPhrases_.set(index, builderForValue.build()); + onChanged(); + } else { + bannedPhrasesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Optional. List of banned phrases.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBannedPhrases( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase value) { + if (bannedPhrasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBannedPhrasesIsMutable(); + bannedPhrases_.add(value); + onChanged(); + } else { + bannedPhrasesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +       * Optional. List of banned phrases.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBannedPhrases( + int index, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase value) { + if (bannedPhrasesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBannedPhrasesIsMutable(); + bannedPhrases_.add(index, value); + onChanged(); + } else { + bannedPhrasesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Optional. List of banned phrases.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBannedPhrases( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.Builder + builderForValue) { + if (bannedPhrasesBuilder_ == null) { + ensureBannedPhrasesIsMutable(); + bannedPhrases_.add(builderForValue.build()); + onChanged(); + } else { + bannedPhrasesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Optional. List of banned phrases.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addBannedPhrases( + int index, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.Builder + builderForValue) { + if (bannedPhrasesBuilder_ == null) { + ensureBannedPhrasesIsMutable(); + bannedPhrases_.add(index, builderForValue.build()); + onChanged(); + } else { + bannedPhrasesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Optional. List of banned phrases.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllBannedPhrases( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase> + values) { + if (bannedPhrasesBuilder_ == null) { + ensureBannedPhrasesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bannedPhrases_); + onChanged(); + } else { + bannedPhrasesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * Optional. List of banned phrases.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearBannedPhrases() { + if (bannedPhrasesBuilder_ == null) { + bannedPhrases_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + bannedPhrasesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Optional. List of banned phrases.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeBannedPhrases(int index) { + if (bannedPhrasesBuilder_ == null) { + ensureBannedPhrasesIsMutable(); + bannedPhrases_.remove(index); + onChanged(); + } else { + bannedPhrasesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * Optional. List of banned phrases.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.Builder + getBannedPhrasesBuilder(int index) { + return internalGetBannedPhrasesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * Optional. List of banned phrases.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhraseOrBuilder + getBannedPhrasesOrBuilder(int index) { + if (bannedPhrasesBuilder_ == null) { + return bannedPhrases_.get(index); + } else { + return bannedPhrasesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * Optional. List of banned phrases.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .BannedPhraseOrBuilder> + getBannedPhrasesOrBuilderList() { + if (bannedPhrasesBuilder_ != null) { + return bannedPhrasesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bannedPhrases_); + } + } + + /** + * + * + *
            +       * Optional. List of banned phrases.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.Builder + addBannedPhrasesBuilder() { + return internalGetBannedPhrasesFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .getDefaultInstance()); + } + + /** + * + * + *
            +       * Optional. List of banned phrases.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.Builder + addBannedPhrasesBuilder(int index) { + return internalGetBannedPhrasesFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .getDefaultInstance()); + } + + /** + * + * + *
            +       * Optional. List of banned phrases.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase banned_phrases = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.Builder> + getBannedPhrasesBuilderList() { + return internalGetBannedPhrasesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase.Builder, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .BannedPhraseOrBuilder> + internalGetBannedPhrasesFieldBuilder() { + if (bannedPhrasesBuilder_ == null) { + bannedPhrasesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.BannedPhrase + .Builder, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .BannedPhraseOrBuilder>( + bannedPhrases_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + bannedPhrases_ = null; + } + return bannedPhrasesBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + modelArmorConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .Builder, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .ModelArmorConfigOrBuilder> + modelArmorConfigBuilder_; + + /** + * + * + *
            +       * Optional. Model Armor configuration to be used for sanitizing user
            +       * prompts and assistant responses.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelArmorConfig field is set. + */ + public boolean hasModelArmorConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +       * Optional. Model Armor configuration to be used for sanitizing user
            +       * prompts and assistant responses.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelArmorConfig. + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + getModelArmorConfig() { + if (modelArmorConfigBuilder_ == null) { + return modelArmorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .getDefaultInstance() + : modelArmorConfig_; + } else { + return modelArmorConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. Model Armor configuration to be used for sanitizing user
            +       * prompts and assistant responses.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelArmorConfig( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig value) { + if (modelArmorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelArmorConfig_ = value; + } else { + modelArmorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Model Armor configuration to be used for sanitizing user
            +       * prompts and assistant responses.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelArmorConfig( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig.Builder + builderForValue) { + if (modelArmorConfigBuilder_ == null) { + modelArmorConfig_ = builderForValue.build(); + } else { + modelArmorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Model Armor configuration to be used for sanitizing user
            +       * prompts and assistant responses.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeModelArmorConfig( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig value) { + if (modelArmorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && modelArmorConfig_ != null + && modelArmorConfig_ + != com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .ModelArmorConfig.getDefaultInstance()) { + getModelArmorConfigBuilder().mergeFrom(value); + } else { + modelArmorConfig_ = value; + } + } else { + modelArmorConfigBuilder_.mergeFrom(value); + } + if (modelArmorConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Model Armor configuration to be used for sanitizing user
            +       * prompts and assistant responses.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearModelArmorConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + modelArmorConfig_ = null; + if (modelArmorConfigBuilder_ != null) { + modelArmorConfigBuilder_.dispose(); + modelArmorConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Model Armor configuration to be used for sanitizing user
            +       * prompts and assistant responses.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .Builder + getModelArmorConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetModelArmorConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Model Armor configuration to be used for sanitizing user
            +       * prompts and assistant responses.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .ModelArmorConfigOrBuilder + getModelArmorConfigOrBuilder() { + if (modelArmorConfigBuilder_ != null) { + return modelArmorConfigBuilder_.getMessageOrBuilder(); + } else { + return modelArmorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .getDefaultInstance() + : modelArmorConfig_; + } + } + + /** + * + * + *
            +       * Optional. Model Armor configuration to be used for sanitizing user
            +       * prompts and assistant responses.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig model_armor_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .Builder, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .ModelArmorConfigOrBuilder> + internalGetModelArmorConfigFieldBuilder() { + if (modelArmorConfigBuilder_ == null) { + modelArmorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.ModelArmorConfig + .Builder, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .ModelArmorConfigOrBuilder>( + getModelArmorConfig(), getParentForChildren(), isClean()); + modelArmorConfig_ = null; + } + return modelArmorConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy) + private static final com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy(); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Assistant.CustomerPolicy + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Immutable. Resource name of the assistant.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   *
            +   * It 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. Resource name of the assistant.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   *
            +   * It 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 assistant display name.
            +   *
            +   * It must be a UTF-8 encoded string with a length limit of 128 characters.
            +   * 
            + * + * 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 assistant display name.
            +   *
            +   * It must be a UTF-8 encoded string with a length limit of 128 characters.
            +   * 
            + * + * 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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
            +   * Optional. Description for additional information. Expected to be shown on
            +   * the configuration UI, not to the users of the assistant.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Description for additional information. Expected to be shown on
            +   * the configuration UI, not to the users of the assistant.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GENERATION_CONFIG_FIELD_NUMBER = 19; + private com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generationConfig_; + + /** + * + * + *
            +   * Optional. Configuration for the generation of the assistant response.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationConfig field is set. + */ + @java.lang.Override + public boolean hasGenerationConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Configuration for the generation of the assistant response.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig getGenerationConfig() { + return generationConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.getDefaultInstance() + : generationConfig_; + } + + /** + * + * + *
            +   * Optional. Configuration for the generation of the assistant response.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfigOrBuilder + getGenerationConfigOrBuilder() { + return generationConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.getDefaultInstance() + : generationConfig_; + } + + public static final int WEB_GROUNDING_TYPE_FIELD_NUMBER = 4; + private int webGroundingType_ = 0; + + /** + * + * + *
            +   * Optional. The type of web grounding to use.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for webGroundingType. + */ + @java.lang.Override + public int getWebGroundingTypeValue() { + return webGroundingType_; + } + + /** + * + * + *
            +   * Optional. The type of web grounding to use.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The webGroundingType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType getWebGroundingType() { + com.google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType result = + com.google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.forNumber( + webGroundingType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.UNRECOGNIZED + : result; + } + + public static final int DEFAULT_WEB_GROUNDING_TOGGLE_OFF_FIELD_NUMBER = 22; + private boolean defaultWebGroundingToggleOff_ = false; + + /** + * + * + *
            +   * Optional. This field controls the default web grounding toggle for end
            +   * users if `web_grounding_type` is set to `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
            +   * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`. By default, this field is
            +   * set to false. If `web_grounding_type` is `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
            +   * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web
            +   * grounding enabled by default on UI. If true, grounding toggle will be
            +   * disabled by default on UI. End users can still enable web grounding in
            +   * the UI if web grounding is enabled.
            +   * 
            + * + * bool default_web_grounding_toggle_off = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultWebGroundingToggleOff. + */ + @java.lang.Override + public boolean getDefaultWebGroundingToggleOff() { + return defaultWebGroundingToggleOff_; + } + + public static final int ENABLED_TOOLS_FIELD_NUMBER = 18; + + private static final class EnabledToolsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Assistant.ToolList> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_EnabledToolsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Assistant.ToolList> + enabledTools_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Assistant.ToolList> + internalGetEnabledTools() { + if (enabledTools_ == null) { + return com.google.protobuf.MapField.emptyMapField( + EnabledToolsDefaultEntryHolder.defaultEntry); + } + return enabledTools_; + } + + public int getEnabledToolsCount() { + return internalGetEnabledTools().getMap().size(); + } + + /** + * + * + *
            +   * Optional. Note: not implemented yet. Use
            +   * [enabled_actions][google.cloud.discoveryengine.v1beta.Assistant.enabled_actions]
            +   * instead. The enabled tools on this assistant. The keys are connector name,
            +   * for example
            +   * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
            +   * The values consist of admin enabled tools towards the connector
            +   * instance. Admin can selectively enable multiple tools on any of the
            +   * connector instances that they created in the project. For example
            +   * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
            +   * "transferTicket")],
            +   * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsEnabledTools(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetEnabledTools().getMap().containsKey(key); + } + + /** Use {@link #getEnabledToolsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getEnabledTools() { + return getEnabledToolsMap(); + } + + /** + * + * + *
            +   * Optional. Note: not implemented yet. Use
            +   * [enabled_actions][google.cloud.discoveryengine.v1beta.Assistant.enabled_actions]
            +   * instead. The enabled tools on this assistant. The keys are connector name,
            +   * for example
            +   * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
            +   * The values consist of admin enabled tools towards the connector
            +   * instance. Admin can selectively enable multiple tools on any of the
            +   * connector instances that they created in the project. For example
            +   * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
            +   * "transferTicket")],
            +   * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getEnabledToolsMap() { + return internalGetEnabledTools().getMap(); + } + + /** + * + * + *
            +   * Optional. Note: not implemented yet. Use
            +   * [enabled_actions][google.cloud.discoveryengine.v1beta.Assistant.enabled_actions]
            +   * instead. The enabled tools on this assistant. The keys are connector name,
            +   * for example
            +   * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
            +   * The values consist of admin enabled tools towards the connector
            +   * instance. Admin can selectively enable multiple tools on any of the
            +   * connector instances that they created in the project. For example
            +   * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
            +   * "transferTicket")],
            +   * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1beta.Assistant.ToolList + getEnabledToolsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetEnabledTools().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Optional. Note: not implemented yet. Use
            +   * [enabled_actions][google.cloud.discoveryengine.v1beta.Assistant.enabled_actions]
            +   * instead. The enabled tools on this assistant. The keys are connector name,
            +   * for example
            +   * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
            +   * The values consist of admin enabled tools towards the connector
            +   * instance. Admin can selectively enable multiple tools on any of the
            +   * connector instances that they created in the project. For example
            +   * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
            +   * "transferTicket")],
            +   * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.ToolList getEnabledToolsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetEnabledTools().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CUSTOMER_POLICY_FIELD_NUMBER = 12; + private com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customerPolicy_; + + /** + * + * + *
            +   * Optional. Customer policy for the assistant.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customerPolicy field is set. + */ + @java.lang.Override + public boolean hasCustomerPolicy() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. Customer policy for the assistant.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customerPolicy. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy getCustomerPolicy() { + return customerPolicy_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.getDefaultInstance() + : customerPolicy_; + } + + /** + * + * + *
            +   * Optional. Customer policy for the assistant.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicyOrBuilder + getCustomerPolicyOrBuilder() { + return customerPolicy_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.getDefaultInstance() + : customerPolicy_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 24; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. Represents the time when this Assistant was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Output only. Represents the time when this Assistant was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 24 [(.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. Represents the time when this Assistant was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 24 [(.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 = 25; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. Represents the time when this Assistant was most recently
            +   * updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Output only. Represents the time when this Assistant was most recently
            +   * updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 25 [(.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. Represents the time when this Assistant was most recently
            +   * updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (webGroundingType_ + != com.google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType + .WEB_GROUNDING_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, webGroundingType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(12, getCustomerPolicy()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetEnabledTools(), EnabledToolsDefaultEntryHolder.defaultEntry, 18); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(19, getGenerationConfig()); + } + if (defaultWebGroundingToggleOff_ != false) { + output.writeBool(22, defaultWebGroundingToggleOff_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(24, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(25, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (webGroundingType_ + != com.google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType + .WEB_GROUNDING_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, webGroundingType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getCustomerPolicy()); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Assistant.ToolList> + entry : internalGetEnabledTools().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Assistant.ToolList> + enabledTools__ = + EnabledToolsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, enabledTools__); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getGenerationConfig()); + } + if (defaultWebGroundingToggleOff_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(22, defaultWebGroundingToggleOff_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Assistant)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Assistant other = + (com.google.cloud.discoveryengine.v1beta.Assistant) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasGenerationConfig() != other.hasGenerationConfig()) return false; + if (hasGenerationConfig()) { + if (!getGenerationConfig().equals(other.getGenerationConfig())) return false; + } + if (webGroundingType_ != other.webGroundingType_) return false; + if (getDefaultWebGroundingToggleOff() != other.getDefaultWebGroundingToggleOff()) return false; + if (!internalGetEnabledTools().equals(other.internalGetEnabledTools())) return false; + if (hasCustomerPolicy() != other.hasCustomerPolicy()) return false; + if (hasCustomerPolicy()) { + if (!getCustomerPolicy().equals(other.getCustomerPolicy())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasGenerationConfig()) { + hash = (37 * hash) + GENERATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGenerationConfig().hashCode(); + } + hash = (37 * hash) + WEB_GROUNDING_TYPE_FIELD_NUMBER; + hash = (53 * hash) + webGroundingType_; + hash = (37 * hash) + DEFAULT_WEB_GROUNDING_TOGGLE_OFF_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDefaultWebGroundingToggleOff()); + if (!internalGetEnabledTools().getMap().isEmpty()) { + hash = (37 * hash) + ENABLED_TOOLS_FIELD_NUMBER; + hash = (53 * hash) + internalGetEnabledTools().hashCode(); + } + if (hasCustomerPolicy()) { + hash = (37 * hash) + CUSTOMER_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getCustomerPolicy().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant 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.v1beta.Assistant parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant parseFrom( + 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.v1beta.Assistant parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.Assistant prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Discovery Engine Assistant resource.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Assistant} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Assistant) + com.google.cloud.discoveryengine.v1beta.AssistantOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 18: + return internalGetEnabledTools(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 18: + return internalGetMutableEnabledTools(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Assistant.class, + com.google.cloud.discoveryengine.v1beta.Assistant.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.Assistant.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGenerationConfigFieldBuilder(); + internalGetCustomerPolicyFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + generationConfig_ = null; + if (generationConfigBuilder_ != null) { + generationConfigBuilder_.dispose(); + generationConfigBuilder_ = null; + } + webGroundingType_ = 0; + defaultWebGroundingToggleOff_ = false; + internalGetMutableEnabledTools().clear(); + customerPolicy_ = null; + if (customerPolicyBuilder_ != null) { + customerPolicyBuilder_.dispose(); + customerPolicyBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantProto + .internal_static_google_cloud_discoveryengine_v1beta_Assistant_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Assistant.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant build() { + com.google.cloud.discoveryengine.v1beta.Assistant result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant buildPartial() { + com.google.cloud.discoveryengine.v1beta.Assistant result = + new com.google.cloud.discoveryengine.v1beta.Assistant(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Assistant 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.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.generationConfig_ = + generationConfigBuilder_ == null ? generationConfig_ : generationConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.webGroundingType_ = webGroundingType_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.defaultWebGroundingToggleOff_ = defaultWebGroundingToggleOff_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.enabledTools_ = + internalGetEnabledTools().build(EnabledToolsDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.customerPolicy_ = + customerPolicyBuilder_ == null ? customerPolicy_ : customerPolicyBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Assistant) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Assistant) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Assistant other) { + if (other == com.google.cloud.discoveryengine.v1beta.Assistant.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.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasGenerationConfig()) { + mergeGenerationConfig(other.getGenerationConfig()); + } + if (other.webGroundingType_ != 0) { + setWebGroundingTypeValue(other.getWebGroundingTypeValue()); + } + if (other.getDefaultWebGroundingToggleOff() != false) { + setDefaultWebGroundingToggleOff(other.getDefaultWebGroundingToggleOff()); + } + internalGetMutableEnabledTools().mergeFrom(other.internalGetEnabledTools()); + bitField0_ |= 0x00000040; + if (other.hasCustomerPolicy()) { + mergeCustomerPolicy(other.getCustomerPolicy()); + } + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + webGroundingType_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 98: + { + input.readMessage( + internalGetCustomerPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 98 + case 146: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList> + enabledTools__ = + input.readMessage( + EnabledToolsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableEnabledTools() + .ensureBuilderMap() + .put(enabledTools__.getKey(), enabledTools__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 146 + case 154: + { + input.readMessage( + internalGetGenerationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 154 + case 176: + { + defaultWebGroundingToggleOff_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 176 + case 194: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 194 + case 202: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 202 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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_ = ""; + + /** + * + * + *
            +     * Immutable. Resource name of the assistant.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     *
            +     * It 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; + } + } + + /** + * + * + *
            +     * Immutable. Resource name of the assistant.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     *
            +     * It 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; + } + } + + /** + * + * + *
            +     * Immutable. Resource name of the assistant.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     *
            +     * It 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; + } + + /** + * + * + *
            +     * Immutable. Resource name of the assistant.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     *
            +     * It 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; + } + + /** + * + * + *
            +     * Immutable. Resource name of the assistant.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     *
            +     * It 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; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
            +     * Required. The assistant display name.
            +     *
            +     * It must be a UTF-8 encoded string with a length limit of 128 characters.
            +     * 
            + * + * 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 { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The assistant display name.
            +     *
            +     * It must be a UTF-8 encoded string with a length limit of 128 characters.
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * Required. The assistant display name.
            +     *
            +     * It must be a UTF-8 encoded string with a length limit of 128 characters.
            +     * 
            + * + * 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(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The assistant display name.
            +     *
            +     * It must be a UTF-8 encoded string with a length limit of 128 characters.
            +     * 
            + * + * 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 assistant display name.
            +     *
            +     * It must be a UTF-8 encoded string with a length limit of 128 characters.
            +     * 
            + * + * 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(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
            +     * Optional. Description for additional information. Expected to be shown on
            +     * the configuration UI, not to the users of the assistant.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Description for additional information. Expected to be shown on
            +     * the configuration UI, not to the users of the assistant.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Description for additional information. Expected to be shown on
            +     * the configuration UI, not to the users of the assistant.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Description for additional information. Expected to be shown on
            +     * the configuration UI, not to the users of the assistant.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Description for additional information. Expected to be shown on
            +     * the configuration UI, not to the users of the assistant.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generationConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig, + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfigOrBuilder> + generationConfigBuilder_; + + /** + * + * + *
            +     * Optional. Configuration for the generation of the assistant response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationConfig field is set. + */ + public boolean hasGenerationConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Optional. Configuration for the generation of the assistant response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationConfig. + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + getGenerationConfig() { + if (generationConfigBuilder_ == null) { + return generationConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .getDefaultInstance() + : generationConfig_; + } else { + return generationConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Configuration for the generation of the assistant response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGenerationConfig( + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig value) { + if (generationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generationConfig_ = value; + } else { + generationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for the generation of the assistant response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGenerationConfig( + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.Builder + builderForValue) { + if (generationConfigBuilder_ == null) { + generationConfig_ = builderForValue.build(); + } else { + generationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for the generation of the assistant response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGenerationConfig( + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig value) { + if (generationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && generationConfig_ != null + && generationConfig_ + != com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .getDefaultInstance()) { + getGenerationConfigBuilder().mergeFrom(value); + } else { + generationConfig_ = value; + } + } else { + generationConfigBuilder_.mergeFrom(value); + } + if (generationConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for the generation of the assistant response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGenerationConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + generationConfig_ = null; + if (generationConfigBuilder_ != null) { + generationConfigBuilder_.dispose(); + generationConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for the generation of the assistant response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.Builder + getGenerationConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetGenerationConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Configuration for the generation of the assistant response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfigOrBuilder + getGenerationConfigOrBuilder() { + if (generationConfigBuilder_ != null) { + return generationConfigBuilder_.getMessageOrBuilder(); + } else { + return generationConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig + .getDefaultInstance() + : generationConfig_; + } + } + + /** + * + * + *
            +     * Optional. Configuration for the generation of the assistant response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig, + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfigOrBuilder> + internalGetGenerationConfigFieldBuilder() { + if (generationConfigBuilder_ == null) { + generationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig, + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfigOrBuilder>( + getGenerationConfig(), getParentForChildren(), isClean()); + generationConfig_ = null; + } + return generationConfigBuilder_; + } + + private int webGroundingType_ = 0; + + /** + * + * + *
            +     * Optional. The type of web grounding to use.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for webGroundingType. + */ + @java.lang.Override + public int getWebGroundingTypeValue() { + return webGroundingType_; + } + + /** + * + * + *
            +     * Optional. The type of web grounding to use.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for webGroundingType to set. + * @return This builder for chaining. + */ + public Builder setWebGroundingTypeValue(int value) { + webGroundingType_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The type of web grounding to use.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The webGroundingType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType + getWebGroundingType() { + com.google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType result = + com.google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.forNumber( + webGroundingType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Optional. The type of web grounding to use.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The webGroundingType to set. + * @return This builder for chaining. + */ + public Builder setWebGroundingType( + com.google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + webGroundingType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The type of web grounding to use.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearWebGroundingType() { + bitField0_ = (bitField0_ & ~0x00000010); + webGroundingType_ = 0; + onChanged(); + return this; + } + + private boolean defaultWebGroundingToggleOff_; + + /** + * + * + *
            +     * Optional. This field controls the default web grounding toggle for end
            +     * users if `web_grounding_type` is set to `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
            +     * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`. By default, this field is
            +     * set to false. If `web_grounding_type` is `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
            +     * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web
            +     * grounding enabled by default on UI. If true, grounding toggle will be
            +     * disabled by default on UI. End users can still enable web grounding in
            +     * the UI if web grounding is enabled.
            +     * 
            + * + * bool default_web_grounding_toggle_off = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultWebGroundingToggleOff. + */ + @java.lang.Override + public boolean getDefaultWebGroundingToggleOff() { + return defaultWebGroundingToggleOff_; + } + + /** + * + * + *
            +     * Optional. This field controls the default web grounding toggle for end
            +     * users if `web_grounding_type` is set to `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
            +     * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`. By default, this field is
            +     * set to false. If `web_grounding_type` is `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
            +     * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web
            +     * grounding enabled by default on UI. If true, grounding toggle will be
            +     * disabled by default on UI. End users can still enable web grounding in
            +     * the UI if web grounding is enabled.
            +     * 
            + * + * bool default_web_grounding_toggle_off = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The defaultWebGroundingToggleOff to set. + * @return This builder for chaining. + */ + public Builder setDefaultWebGroundingToggleOff(boolean value) { + + defaultWebGroundingToggleOff_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. This field controls the default web grounding toggle for end
            +     * users if `web_grounding_type` is set to `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
            +     * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`. By default, this field is
            +     * set to false. If `web_grounding_type` is `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
            +     * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web
            +     * grounding enabled by default on UI. If true, grounding toggle will be
            +     * disabled by default on UI. End users can still enable web grounding in
            +     * the UI if web grounding is enabled.
            +     * 
            + * + * bool default_web_grounding_toggle_off = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDefaultWebGroundingToggleOff() { + bitField0_ = (bitField0_ & ~0x00000020); + defaultWebGroundingToggleOff_ = false; + onChanged(); + return this; + } + + private static final class EnabledToolsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolListOrBuilder, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList> { + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.ToolList build( + com.google.cloud.discoveryengine.v1beta.Assistant.ToolListOrBuilder val) { + if (val instanceof com.google.cloud.discoveryengine.v1beta.Assistant.ToolList) { + return (com.google.cloud.discoveryengine.v1beta.Assistant.ToolList) val; + } + return ((com.google.cloud.discoveryengine.v1beta.Assistant.ToolList.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Assistant.ToolList> + defaultEntry() { + return EnabledToolsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final EnabledToolsConverter enabledToolsConverter = new EnabledToolsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolListOrBuilder, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList.Builder> + enabledTools_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolListOrBuilder, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList.Builder> + internalGetEnabledTools() { + if (enabledTools_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(enabledToolsConverter); + } + return enabledTools_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolListOrBuilder, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList, + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList.Builder> + internalGetMutableEnabledTools() { + if (enabledTools_ == null) { + enabledTools_ = new com.google.protobuf.MapFieldBuilder<>(enabledToolsConverter); + } + bitField0_ |= 0x00000040; + onChanged(); + return enabledTools_; + } + + public int getEnabledToolsCount() { + return internalGetEnabledTools().ensureBuilderMap().size(); + } + + /** + * + * + *
            +     * Optional. Note: not implemented yet. Use
            +     * [enabled_actions][google.cloud.discoveryengine.v1beta.Assistant.enabled_actions]
            +     * instead. The enabled tools on this assistant. The keys are connector name,
            +     * for example
            +     * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
            +     * The values consist of admin enabled tools towards the connector
            +     * instance. Admin can selectively enable multiple tools on any of the
            +     * connector instances that they created in the project. For example
            +     * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
            +     * "transferTicket")],
            +     * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
            +     * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsEnabledTools(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetEnabledTools().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getEnabledToolsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Assistant.ToolList> + getEnabledTools() { + return getEnabledToolsMap(); + } + + /** + * + * + *
            +     * Optional. Note: not implemented yet. Use
            +     * [enabled_actions][google.cloud.discoveryengine.v1beta.Assistant.enabled_actions]
            +     * instead. The enabled tools on this assistant. The keys are connector name,
            +     * for example
            +     * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
            +     * The values consist of admin enabled tools towards the connector
            +     * instance. Admin can selectively enable multiple tools on any of the
            +     * connector instances that they created in the project. For example
            +     * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
            +     * "transferTicket")],
            +     * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
            +     * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Assistant.ToolList> + getEnabledToolsMap() { + return internalGetEnabledTools().getImmutableMap(); + } + + /** + * + * + *
            +     * Optional. Note: not implemented yet. Use
            +     * [enabled_actions][google.cloud.discoveryengine.v1beta.Assistant.enabled_actions]
            +     * instead. The enabled tools on this assistant. The keys are connector name,
            +     * for example
            +     * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
            +     * The values consist of admin enabled tools towards the connector
            +     * instance. Admin can selectively enable multiple tools on any of the
            +     * connector instances that they created in the project. For example
            +     * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
            +     * "transferTicket")],
            +     * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
            +     * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1beta.Assistant.ToolList + getEnabledToolsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Assistant.ToolListOrBuilder> + map = internalGetMutableEnabledTools().ensureBuilderMap(); + return map.containsKey(key) ? enabledToolsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
            +     * Optional. Note: not implemented yet. Use
            +     * [enabled_actions][google.cloud.discoveryengine.v1beta.Assistant.enabled_actions]
            +     * instead. The enabled tools on this assistant. The keys are connector name,
            +     * for example
            +     * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
            +     * The values consist of admin enabled tools towards the connector
            +     * instance. Admin can selectively enable multiple tools on any of the
            +     * connector instances that they created in the project. For example
            +     * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
            +     * "transferTicket")],
            +     * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
            +     * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant.ToolList getEnabledToolsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Assistant.ToolListOrBuilder> + map = internalGetMutableEnabledTools().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return enabledToolsConverter.build(map.get(key)); + } + + public Builder clearEnabledTools() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableEnabledTools().clear(); + return this; + } + + /** + * + * + *
            +     * Optional. Note: not implemented yet. Use
            +     * [enabled_actions][google.cloud.discoveryengine.v1beta.Assistant.enabled_actions]
            +     * instead. The enabled tools on this assistant. The keys are connector name,
            +     * for example
            +     * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
            +     * The values consist of admin enabled tools towards the connector
            +     * instance. Admin can selectively enable multiple tools on any of the
            +     * connector instances that they created in the project. For example
            +     * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
            +     * "transferTicket")],
            +     * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
            +     * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeEnabledTools(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableEnabledTools().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Assistant.ToolList> + getMutableEnabledTools() { + bitField0_ |= 0x00000040; + return internalGetMutableEnabledTools().ensureMessageMap(); + } + + /** + * + * + *
            +     * Optional. Note: not implemented yet. Use
            +     * [enabled_actions][google.cloud.discoveryengine.v1beta.Assistant.enabled_actions]
            +     * instead. The enabled tools on this assistant. The keys are connector name,
            +     * for example
            +     * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
            +     * The values consist of admin enabled tools towards the connector
            +     * instance. Admin can selectively enable multiple tools on any of the
            +     * connector instances that they created in the project. For example
            +     * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
            +     * "transferTicket")],
            +     * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
            +     * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putEnabledTools( + java.lang.String key, com.google.cloud.discoveryengine.v1beta.Assistant.ToolList value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableEnabledTools().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000040; + return this; + } + + /** + * + * + *
            +     * Optional. Note: not implemented yet. Use
            +     * [enabled_actions][google.cloud.discoveryengine.v1beta.Assistant.enabled_actions]
            +     * instead. The enabled tools on this assistant. The keys are connector name,
            +     * for example
            +     * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
            +     * The values consist of admin enabled tools towards the connector
            +     * instance. Admin can selectively enable multiple tools on any of the
            +     * connector instances that they created in the project. For example
            +     * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
            +     * "transferTicket")],
            +     * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
            +     * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllEnabledTools( + java.util.Map + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Assistant.ToolList> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableEnabledTools().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000040; + return this; + } + + /** + * + * + *
            +     * Optional. Note: not implemented yet. Use
            +     * [enabled_actions][google.cloud.discoveryengine.v1beta.Assistant.enabled_actions]
            +     * instead. The enabled tools on this assistant. The keys are connector name,
            +     * for example
            +     * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
            +     * The values consist of admin enabled tools towards the connector
            +     * instance. Admin can selectively enable multiple tools on any of the
            +     * connector instances that they created in the project. For example
            +     * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
            +     * "transferTicket")],
            +     * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
            +     * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.ToolList.Builder + putEnabledToolsBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Assistant.ToolListOrBuilder> + builderMap = internalGetMutableEnabledTools().ensureBuilderMap(); + com.google.cloud.discoveryengine.v1beta.Assistant.ToolListOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.discoveryengine.v1beta.Assistant.ToolList.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.discoveryengine.v1beta.Assistant.ToolList) { + entry = ((com.google.cloud.discoveryengine.v1beta.Assistant.ToolList) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.discoveryengine.v1beta.Assistant.ToolList.Builder) entry; + } + + private com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customerPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.Builder, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicyOrBuilder> + customerPolicyBuilder_; + + /** + * + * + *
            +     * Optional. Customer policy for the assistant.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customerPolicy field is set. + */ + public boolean hasCustomerPolicy() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
            +     * Optional. Customer policy for the assistant.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customerPolicy. + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy getCustomerPolicy() { + if (customerPolicyBuilder_ == null) { + return customerPolicy_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.getDefaultInstance() + : customerPolicy_; + } else { + return customerPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Customer policy for the assistant.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomerPolicy( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy value) { + if (customerPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customerPolicy_ = value; + } else { + customerPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Customer policy for the assistant.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomerPolicy( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.Builder builderForValue) { + if (customerPolicyBuilder_ == null) { + customerPolicy_ = builderForValue.build(); + } else { + customerPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Customer policy for the assistant.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCustomerPolicy( + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy value) { + if (customerPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && customerPolicy_ != null + && customerPolicy_ + != com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy + .getDefaultInstance()) { + getCustomerPolicyBuilder().mergeFrom(value); + } else { + customerPolicy_ = value; + } + } else { + customerPolicyBuilder_.mergeFrom(value); + } + if (customerPolicy_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Customer policy for the assistant.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomerPolicy() { + bitField0_ = (bitField0_ & ~0x00000080); + customerPolicy_ = null; + if (customerPolicyBuilder_ != null) { + customerPolicyBuilder_.dispose(); + customerPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Customer policy for the assistant.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.Builder + getCustomerPolicyBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetCustomerPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Customer policy for the assistant.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicyOrBuilder + getCustomerPolicyOrBuilder() { + if (customerPolicyBuilder_ != null) { + return customerPolicyBuilder_.getMessageOrBuilder(); + } else { + return customerPolicy_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.getDefaultInstance() + : customerPolicy_; + } + } + + /** + * + * + *
            +     * Optional. Customer policy for the assistant.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.Builder, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicyOrBuilder> + internalGetCustomerPolicyFieldBuilder() { + if (customerPolicyBuilder_ == null) { + customerPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy.Builder, + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicyOrBuilder>( + getCustomerPolicy(), getParentForChildren(), isClean()); + customerPolicy_ = null; + } + return customerPolicyBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. Represents the time when this Assistant was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
            +     * Output only. Represents the time when this Assistant was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 24 [(.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. Represents the time when this Assistant was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 24 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Represents the time when this Assistant was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 24 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Represents the time when this Assistant was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Represents the time when this Assistant was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Represents the time when this Assistant was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Represents the time when this Assistant was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 24 [(.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. Represents the time when this Assistant was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. Represents the time when this Assistant was most recently
            +     * updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
            +     * Output only. Represents the time when this Assistant was most recently
            +     * updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 25 [(.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. Represents the time when this Assistant was most recently
            +     * updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 25 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Represents the time when this Assistant was most recently
            +     * updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 25 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Represents the time when this Assistant was most recently
            +     * updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Represents the time when this Assistant was most recently
            +     * updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000200); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Represents the time when this Assistant was most recently
            +     * updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Represents the time when this Assistant was most recently
            +     * updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 25 [(.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. Represents the time when this Assistant was most recently
            +     * updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Assistant) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Assistant) + private static final com.google.cloud.discoveryengine.v1beta.Assistant DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Assistant(); + } + + public static com.google.cloud.discoveryengine.v1beta.Assistant getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Assistant parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Assistant getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantContent.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantContent.java new file mode 100644 index 000000000000..a9a6c2d3fc58 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantContent.java @@ -0,0 +1,5598 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assist_answer.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Multi-modal content.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AssistantContent} + */ +@com.google.protobuf.Generated +public final class AssistantContent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AssistantContent) + AssistantContentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AssistantContent"); + } + + // Use AssistantContent.newBuilder() to construct. + private AssistantContent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistantContent() { + role_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantContent.class, + com.google.cloud.discoveryengine.v1beta.AssistantContent.Builder.class); + } + + public interface BlobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AssistantContent.Blob) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Required. The media type (MIME type) of the generated data.
            +     * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mimeType. + */ + java.lang.String getMimeType(); + + /** + * + * + *
            +     * Required. The media type (MIME type) of the generated data.
            +     * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mimeType. + */ + com.google.protobuf.ByteString getMimeTypeBytes(); + + /** + * + * + *
            +     * Required. Raw bytes.
            +     * 
            + * + * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The data. + */ + com.google.protobuf.ByteString getData(); + } + + /** + * + * + *
            +   * Inline blob.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AssistantContent.Blob} + */ + public static final class Blob extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AssistantContent.Blob) + BlobOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Blob"); + } + + // Use Blob.newBuilder() to construct. + private Blob(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Blob() { + mimeType_ = ""; + data_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_Blob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_Blob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob.class, + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob.Builder.class); + } + + public static final int MIME_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; + + /** + * + * + *
            +     * Required. The media type (MIME type) of the generated data.
            +     * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mimeType. + */ + @java.lang.Override + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } + } + + /** + * + * + *
            +     * Required. The media type (MIME type) of the generated data.
            +     * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mimeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
            +     * Required. Raw bytes.
            +     * 
            + * + * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, mimeType_); + } + if (!data_.isEmpty()) { + output.writeBytes(2, data_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, mimeType_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, 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.v1beta.AssistantContent.Blob)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob other = + (com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob) obj; + + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getData().equals(other.getData())) 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) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob 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.v1beta.AssistantContent.Blob parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob parseFrom( + 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.v1beta.AssistantContent.Blob parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Inline blob.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AssistantContent.Blob} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AssistantContent.Blob) + com.google.cloud.discoveryengine.v1beta.AssistantContent.BlobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_Blob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_Blob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob.class, + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mimeType_ = ""; + data_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_Blob_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob build() { + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob buildPartial() { + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob result = + new com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mimeType_ = mimeType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.data_ = data_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob.getDefaultInstance()) + return this; + if (!other.getMimeType().isEmpty()) { + mimeType_ = other.mimeType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getData().isEmpty()) { + setData(other.getData()); + } + 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: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + data_ = 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 mimeType_ = ""; + + /** + * + * + *
            +       * Required. The media type (MIME type) of the generated data.
            +       * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mimeType. + */ + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Required. The media type (MIME type) of the generated data.
            +       * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mimeType. + */ + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Required. The media type (MIME type) of the generated data.
            +       * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mimeType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The media type (MIME type) of the generated data.
            +       * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The media type (MIME type) of the generated data.
            +       * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
            +       * Required. Raw bytes.
            +       * 
            + * + * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } + + /** + * + * + *
            +       * Required. Raw bytes.
            +       * 
            + * + * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The data to set. + * @return This builder for chaining. + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. Raw bytes.
            +       * 
            + * + * bytes data = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearData() { + bitField0_ = (bitField0_ & ~0x00000002); + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AssistantContent.Blob) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AssistantContent.Blob) + private static final com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob(); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Blob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AssistantContent.Blob + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FileOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AssistantContent.File) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Required. The media type (MIME type) of the file.
            +     * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mimeType. + */ + java.lang.String getMimeType(); + + /** + * + * + *
            +     * Required. The media type (MIME type) of the file.
            +     * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mimeType. + */ + com.google.protobuf.ByteString getMimeTypeBytes(); + + /** + * + * + *
            +     * Required. The file ID.
            +     * 
            + * + * string file_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fileId. + */ + java.lang.String getFileId(); + + /** + * + * + *
            +     * Required. The file ID.
            +     * 
            + * + * string file_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fileId. + */ + com.google.protobuf.ByteString getFileIdBytes(); + } + + /** + * + * + *
            +   * A file, e.g., an audio summary.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AssistantContent.File} + */ + public static final class File extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AssistantContent.File) + FileOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "File"); + } + + // Use File.newBuilder() to construct. + private File(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private File() { + mimeType_ = ""; + fileId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_File_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_File_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantContent.File.class, + com.google.cloud.discoveryengine.v1beta.AssistantContent.File.Builder.class); + } + + public static final int MIME_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; + + /** + * + * + *
            +     * Required. The media type (MIME type) of the file.
            +     * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mimeType. + */ + @java.lang.Override + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } + } + + /** + * + * + *
            +     * Required. The media type (MIME type) of the file.
            +     * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mimeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object fileId_ = ""; + + /** + * + * + *
            +     * Required. The file ID.
            +     * 
            + * + * string file_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fileId. + */ + @java.lang.Override + public java.lang.String getFileId() { + java.lang.Object ref = fileId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileId_ = s; + return s; + } + } + + /** + * + * + *
            +     * Required. The file ID.
            +     * 
            + * + * string file_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fileId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFileIdBytes() { + java.lang.Object ref = fileId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, mimeType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fileId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, fileId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, mimeType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fileId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, fileId_); + } + 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.v1beta.AssistantContent.File)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AssistantContent.File other = + (com.google.cloud.discoveryengine.v1beta.AssistantContent.File) obj; + + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getFileId().equals(other.getFileId())) 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) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); + hash = (37 * hash) + FILE_ID_FIELD_NUMBER; + hash = (53 * hash) + getFileId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.File parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.File 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.v1beta.AssistantContent.File parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.File parseFrom( + 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.v1beta.AssistantContent.File parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.File parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.File parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.File parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.File parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.File parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.File parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.File parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AssistantContent.File prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * A file, e.g., an audio summary.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AssistantContent.File} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AssistantContent.File) + com.google.cloud.discoveryengine.v1beta.AssistantContent.FileOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_File_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_File_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantContent.File.class, + com.google.cloud.discoveryengine.v1beta.AssistantContent.File.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.AssistantContent.File.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mimeType_ = ""; + fileId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_File_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.File + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantContent.File.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.File build() { + com.google.cloud.discoveryengine.v1beta.AssistantContent.File result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.File buildPartial() { + com.google.cloud.discoveryengine.v1beta.AssistantContent.File result = + new com.google.cloud.discoveryengine.v1beta.AssistantContent.File(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AssistantContent.File result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mimeType_ = mimeType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fileId_ = fileId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.AssistantContent.File) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.AssistantContent.File) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AssistantContent.File other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AssistantContent.File.getDefaultInstance()) + return this; + if (!other.getMimeType().isEmpty()) { + mimeType_ = other.mimeType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFileId().isEmpty()) { + fileId_ = other.fileId_; + 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: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + fileId_ = 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 mimeType_ = ""; + + /** + * + * + *
            +       * Required. The media type (MIME type) of the file.
            +       * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The mimeType. + */ + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Required. The media type (MIME type) of the file.
            +       * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for mimeType. + */ + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Required. The media type (MIME type) of the file.
            +       * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mimeType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The media type (MIME type) of the file.
            +       * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The media type (MIME type) of the file.
            +       * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object fileId_ = ""; + + /** + * + * + *
            +       * Required. The file ID.
            +       * 
            + * + * string file_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fileId. + */ + public java.lang.String getFileId() { + java.lang.Object ref = fileId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Required. The file ID.
            +       * 
            + * + * string file_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fileId. + */ + public com.google.protobuf.ByteString getFileIdBytes() { + java.lang.Object ref = fileId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fileId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Required. The file ID.
            +       * 
            + * + * string file_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The fileId to set. + * @return This builder for chaining. + */ + public Builder setFileId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fileId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The file ID.
            +       * 
            + * + * string file_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFileId() { + fileId_ = getDefaultInstance().getFileId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The file ID.
            +       * 
            + * + * string file_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for fileId to set. + * @return This builder for chaining. + */ + public Builder setFileIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fileId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AssistantContent.File) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AssistantContent.File) + private static final com.google.cloud.discoveryengine.v1beta.AssistantContent.File + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.AssistantContent.File(); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.File + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public File parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AssistantContent.File + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ExecutableCodeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Required. The code content. Currently only supports Python.
            +     * 
            + * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The code. + */ + java.lang.String getCode(); + + /** + * + * + *
            +     * Required. The code content. Currently only supports Python.
            +     * 
            + * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for code. + */ + com.google.protobuf.ByteString getCodeBytes(); + } + + /** + * + * + *
            +   * Code generated by the model that is meant to be executed by the model.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode} + */ + public static final class ExecutableCode extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode) + ExecutableCodeOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExecutableCode"); + } + + // Use ExecutableCode.newBuilder() to construct. + private ExecutableCode(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExecutableCode() { + code_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_ExecutableCode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_ExecutableCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode.class, + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode.Builder + .class); + } + + public static final int CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object code_ = ""; + + /** + * + * + *
            +     * Required. The code content. Currently only supports Python.
            +     * 
            + * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The code. + */ + @java.lang.Override + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } + } + + /** + * + * + *
            +     * Required. The code content. Currently only supports Python.
            +     * 
            + * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for code. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(code_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, code_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(code_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, code_); + } + 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.v1beta.AssistantContent.ExecutableCode)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode other = + (com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode) obj; + + if (!getCode().equals(other.getCode())) 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) + CODE_FIELD_NUMBER; + hash = (53 * hash) + getCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode 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.v1beta.AssistantContent.ExecutableCode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode parseFrom( + 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.v1beta.AssistantContent.ExecutableCode parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Code generated by the model that is meant to be executed by the model.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode) + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_ExecutableCode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_ExecutableCode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode.class, + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + code_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_ExecutableCode_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode build() { + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode result = + new com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.code_ = code_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode + .getDefaultInstance()) return this; + if (!other.getCode().isEmpty()) { + code_ = other.code_; + 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 18: + { + code_ = input.readStringRequireUtf8(); + 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 java.lang.Object code_ = ""; + + /** + * + * + *
            +       * Required. The code content. Currently only supports Python.
            +       * 
            + * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The code. + */ + public java.lang.String getCode() { + java.lang.Object ref = code_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + code_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Required. The code content. Currently only supports Python.
            +       * 
            + * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for code. + */ + public com.google.protobuf.ByteString getCodeBytes() { + java.lang.Object ref = code_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + code_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Required. The code content. Currently only supports Python.
            +       * 
            + * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The code to set. + * @return This builder for chaining. + */ + public Builder setCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The code content. Currently only supports Python.
            +       * 
            + * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearCode() { + code_ = getDefaultInstance().getCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The code content. Currently only supports Python.
            +       * 
            + * + * string code = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for code to set. + * @return This builder for chaining. + */ + public Builder setCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + code_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode) + private static final com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode(); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutableCode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AssistantContent.ExecutableCode + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CodeExecutionResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Required. Outcome of the code execution.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for outcome. + */ + int getOutcomeValue(); + + /** + * + * + *
            +     * Required. Outcome of the code execution.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outcome. + */ + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome + getOutcome(); + + /** + * + * + *
            +     * Optional. Contains stdout when code execution is successful, stderr or
            +     * other description otherwise.
            +     * 
            + * + * string output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The output. + */ + java.lang.String getOutput(); + + /** + * + * + *
            +     * Optional. Contains stdout when code execution is successful, stderr or
            +     * other description otherwise.
            +     * 
            + * + * string output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for output. + */ + com.google.protobuf.ByteString getOutputBytes(); + } + + /** + * + * + *
            +   * Result of executing ExecutableCode.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult} + */ + public static final class CodeExecutionResult extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult) + CodeExecutionResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CodeExecutionResult"); + } + + // Use CodeExecutionResult.newBuilder() to construct. + private CodeExecutionResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CodeExecutionResult() { + outcome_ = 0; + output_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_CodeExecutionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_CodeExecutionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.class, + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Builder + .class); + } + + /** + * + * + *
            +     * Enumeration of possible outcomes of the code execution.
            +     * 
            + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome} + */ + public enum Outcome implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Unspecified status. This value should not be used.
            +       * 
            + * + * OUTCOME_UNSPECIFIED = 0; + */ + OUTCOME_UNSPECIFIED(0), + /** + * + * + *
            +       * Code execution completed successfully.
            +       * 
            + * + * OUTCOME_OK = 1; + */ + OUTCOME_OK(1), + /** + * + * + *
            +       * Code execution finished but with a failure. `stderr` should contain the
            +       * reason.
            +       * 
            + * + * OUTCOME_FAILED = 2; + */ + OUTCOME_FAILED(2), + /** + * + * + *
            +       * Code execution ran for too long, and was cancelled. There may or may
            +       * not be a partial output present.
            +       * 
            + * + * OUTCOME_DEADLINE_EXCEEDED = 3; + */ + OUTCOME_DEADLINE_EXCEEDED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Outcome"); + } + + /** + * + * + *
            +       * Unspecified status. This value should not be used.
            +       * 
            + * + * OUTCOME_UNSPECIFIED = 0; + */ + public static final int OUTCOME_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +       * Code execution completed successfully.
            +       * 
            + * + * OUTCOME_OK = 1; + */ + public static final int OUTCOME_OK_VALUE = 1; + + /** + * + * + *
            +       * Code execution finished but with a failure. `stderr` should contain the
            +       * reason.
            +       * 
            + * + * OUTCOME_FAILED = 2; + */ + public static final int OUTCOME_FAILED_VALUE = 2; + + /** + * + * + *
            +       * Code execution ran for too long, and was cancelled. There may or may
            +       * not be a partial output present.
            +       * 
            + * + * OUTCOME_DEADLINE_EXCEEDED = 3; + */ + public static final int OUTCOME_DEADLINE_EXCEEDED_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 Outcome 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 Outcome forNumber(int value) { + switch (value) { + case 0: + return OUTCOME_UNSPECIFIED; + case 1: + return OUTCOME_OK; + case 2: + return OUTCOME_FAILED; + case 3: + return OUTCOME_DEADLINE_EXCEEDED; + 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 Outcome findValueByNumber(int number) { + return Outcome.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Outcome[] VALUES = values(); + + public static Outcome 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 Outcome(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome) + } + + public static final int OUTCOME_FIELD_NUMBER = 1; + private int outcome_ = 0; + + /** + * + * + *
            +     * Required. Outcome of the code execution.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for outcome. + */ + @java.lang.Override + public int getOutcomeValue() { + return outcome_; + } + + /** + * + * + *
            +     * Required. Outcome of the code execution.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outcome. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome + getOutcome() { + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome result = + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome + .forNumber(outcome_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome + .UNRECOGNIZED + : result; + } + + public static final int OUTPUT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object output_ = ""; + + /** + * + * + *
            +     * Optional. Contains stdout when code execution is successful, stderr or
            +     * other description otherwise.
            +     * 
            + * + * string output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The output. + */ + @java.lang.Override + public java.lang.String getOutput() { + java.lang.Object ref = output_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + output_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. Contains stdout when code execution is successful, stderr or
            +     * other description otherwise.
            +     * 
            + * + * string output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for output. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputBytes() { + java.lang.Object ref = output_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + output_ = 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 (outcome_ + != com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome + .OUTCOME_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, outcome_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(output_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, output_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (outcome_ + != com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome + .OUTCOME_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, outcome_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(output_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, output_); + } + 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.v1beta.AssistantContent.CodeExecutionResult)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult other = + (com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult) obj; + + if (outcome_ != other.outcome_) return false; + if (!getOutput().equals(other.getOutput())) 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) + OUTCOME_FIELD_NUMBER; + hash = (53 * hash) + outcome_; + hash = (37 * hash) + OUTPUT_FIELD_NUMBER; + hash = (53 * hash) + getOutput().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + 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.v1beta.AssistantContent.CodeExecutionResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + parseFrom( + 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.v1beta.AssistantContent.CodeExecutionResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Result of executing ExecutableCode.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult) + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_CodeExecutionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_CodeExecutionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.class, + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + outcome_ = 0; + output_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_CodeExecutionResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult build() { + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult result = + new com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.outcome_ = outcome_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.output_ = output_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + .getDefaultInstance()) return this; + if (other.outcome_ != 0) { + setOutcomeValue(other.getOutcomeValue()); + } + if (!other.getOutput().isEmpty()) { + output_ = other.output_; + 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: + { + outcome_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + output_ = 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 outcome_ = 0; + + /** + * + * + *
            +       * Required. Outcome of the code execution.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for outcome. + */ + @java.lang.Override + public int getOutcomeValue() { + return outcome_; + } + + /** + * + * + *
            +       * Required. Outcome of the code execution.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for outcome to set. + * @return This builder for chaining. + */ + public Builder setOutcomeValue(int value) { + outcome_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. Outcome of the code execution.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The outcome. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome + getOutcome() { + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome + result = + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome + .forNumber(outcome_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome + .UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Required. Outcome of the code execution.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The outcome to set. + * @return This builder for chaining. + */ + public Builder setOutcome( + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + outcome_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. Outcome of the code execution.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Outcome outcome = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearOutcome() { + bitField0_ = (bitField0_ & ~0x00000001); + outcome_ = 0; + onChanged(); + return this; + } + + private java.lang.Object output_ = ""; + + /** + * + * + *
            +       * Optional. Contains stdout when code execution is successful, stderr or
            +       * other description otherwise.
            +       * 
            + * + * string output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The output. + */ + public java.lang.String getOutput() { + java.lang.Object ref = output_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + output_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. Contains stdout when code execution is successful, stderr or
            +       * other description otherwise.
            +       * 
            + * + * string output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for output. + */ + public com.google.protobuf.ByteString getOutputBytes() { + java.lang.Object ref = output_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + output_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. Contains stdout when code execution is successful, stderr or
            +       * other description otherwise.
            +       * 
            + * + * string output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The output to set. + * @return This builder for chaining. + */ + public Builder setOutput(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + output_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Contains stdout when code execution is successful, stderr or
            +       * other description otherwise.
            +       * 
            + * + * string output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOutput() { + output_ = getDefaultInstance().getOutput(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Contains stdout when code execution is successful, stderr or
            +       * other description otherwise.
            +       * 
            + * + * string output = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for output to set. + * @return This builder for chaining. + */ + public Builder setOutputBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + output_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult) + private static final com.google.cloud.discoveryengine.v1beta.AssistantContent + .CodeExecutionResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult(); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CodeExecutionResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AssistantContent.CodeExecutionResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + 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(2), + INLINE_DATA(3), + FILE(4), + EXECUTABLE_CODE(7), + CODE_EXECUTION_RESULT(8), + 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 2: + return TEXT; + case 3: + return INLINE_DATA; + case 4: + return FILE; + case 7: + return EXECUTABLE_CODE; + case 8: + return CODE_EXECUTION_RESULT; + 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 = 2; + + /** + * + * + *
            +   * Inline text.
            +   * 
            + * + * string text = 2; + * + * @return Whether the text field is set. + */ + public boolean hasText() { + return dataCase_ == 2; + } + + /** + * + * + *
            +   * Inline text.
            +   * 
            + * + * string text = 2; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + 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_ == 2) { + data_ = s; + } + return s; + } + } + + /** + * + * + *
            +   * Inline text.
            +   * 
            + * + * string text = 2; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 2) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INLINE_DATA_FIELD_NUMBER = 3; + + /** + * + * + *
            +   * Inline binary data.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.Blob inline_data = 3; + * + * @return Whether the inlineData field is set. + */ + @java.lang.Override + public boolean hasInlineData() { + return dataCase_ == 3; + } + + /** + * + * + *
            +   * Inline binary data.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.Blob inline_data = 3; + * + * @return The inlineData. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob getInlineData() { + if (dataCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob) data_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob.getDefaultInstance(); + } + + /** + * + * + *
            +   * Inline binary data.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.Blob inline_data = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.BlobOrBuilder + getInlineDataOrBuilder() { + if (dataCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob) data_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob.getDefaultInstance(); + } + + public static final int FILE_FIELD_NUMBER = 4; + + /** + * + * + *
            +   * A file, e.g., an audio summary.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.File file = 4; + * + * @return Whether the file field is set. + */ + @java.lang.Override + public boolean hasFile() { + return dataCase_ == 4; + } + + /** + * + * + *
            +   * A file, e.g., an audio summary.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.File file = 4; + * + * @return The file. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.File getFile() { + if (dataCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.AssistantContent.File) data_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.File.getDefaultInstance(); + } + + /** + * + * + *
            +   * A file, e.g., an audio summary.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.File file = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.FileOrBuilder getFileOrBuilder() { + if (dataCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.AssistantContent.File) data_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.File.getDefaultInstance(); + } + + public static final int EXECUTABLE_CODE_FIELD_NUMBER = 7; + + /** + * + * + *
            +   * Code generated by the model that is meant to be executed.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode executable_code = 7; + * + * + * @return Whether the executableCode field is set. + */ + @java.lang.Override + public boolean hasExecutableCode() { + return dataCase_ == 7; + } + + /** + * + * + *
            +   * Code generated by the model that is meant to be executed.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode executable_code = 7; + * + * + * @return The executableCode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode + getExecutableCode() { + if (dataCase_ == 7) { + return (com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode) data_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode + .getDefaultInstance(); + } + + /** + * + * + *
            +   * Code generated by the model that is meant to be executed.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode executable_code = 7; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCodeOrBuilder + getExecutableCodeOrBuilder() { + if (dataCase_ == 7) { + return (com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode) data_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode + .getDefaultInstance(); + } + + public static final int CODE_EXECUTION_RESULT_FIELD_NUMBER = 8; + + /** + * + * + *
            +   * Result of executing an ExecutableCode.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult code_execution_result = 8; + * + * + * @return Whether the codeExecutionResult field is set. + */ + @java.lang.Override + public boolean hasCodeExecutionResult() { + return dataCase_ == 8; + } + + /** + * + * + *
            +   * Result of executing an ExecutableCode.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult code_execution_result = 8; + * + * + * @return The codeExecutionResult. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + getCodeExecutionResult() { + if (dataCase_ == 8) { + return (com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult) data_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + .getDefaultInstance(); + } + + /** + * + * + *
            +   * Result of executing an ExecutableCode.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult code_execution_result = 8; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResultOrBuilder + getCodeExecutionResultOrBuilder() { + if (dataCase_ == 8) { + return (com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult) data_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + .getDefaultInstance(); + } + + public static final int ROLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object role_ = ""; + + /** + * + * + *
            +   * The producer of the content. Can be "model" or "user".
            +   * 
            + * + * 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; + } + } + + /** + * + * + *
            +   * The producer of the content. Can be "model" or "user".
            +   * 
            + * + * 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 THOUGHT_FIELD_NUMBER = 6; + private boolean thought_ = false; + + /** + * + * + *
            +   * Optional. Indicates if the part is thought from the model.
            +   * 
            + * + * bool thought = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The thought. + */ + @java.lang.Override + public boolean getThought() { + return thought_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(role_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, role_); + } + if (dataCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, data_); + } + if (dataCase_ == 3) { + output.writeMessage(3, (com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob) data_); + } + if (dataCase_ == 4) { + output.writeMessage(4, (com.google.cloud.discoveryengine.v1beta.AssistantContent.File) data_); + } + if (thought_ != false) { + output.writeBool(6, thought_); + } + if (dataCase_ == 7) { + output.writeMessage( + 7, (com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode) data_); + } + if (dataCase_ == 8) { + output.writeMessage( + 8, (com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult) data_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(role_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, role_); + } + if (dataCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, data_); + } + if (dataCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob) data_); + } + if (dataCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.discoveryengine.v1beta.AssistantContent.File) data_); + } + if (thought_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, thought_); + } + if (dataCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode) data_); + } + if (dataCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult) 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.v1beta.AssistantContent)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AssistantContent other = + (com.google.cloud.discoveryengine.v1beta.AssistantContent) obj; + + if (!getRole().equals(other.getRole())) return false; + if (getThought() != other.getThought()) return false; + if (!getDataCase().equals(other.getDataCase())) return false; + switch (dataCase_) { + case 2: + if (!getText().equals(other.getText())) return false; + break; + case 3: + if (!getInlineData().equals(other.getInlineData())) return false; + break; + case 4: + if (!getFile().equals(other.getFile())) return false; + break; + case 7: + if (!getExecutableCode().equals(other.getExecutableCode())) return false; + break; + case 8: + if (!getCodeExecutionResult().equals(other.getCodeExecutionResult())) 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) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + getRole().hashCode(); + hash = (37 * hash) + THOUGHT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getThought()); + switch (dataCase_) { + case 2: + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + break; + case 3: + hash = (37 * hash) + INLINE_DATA_FIELD_NUMBER; + hash = (53 * hash) + getInlineData().hashCode(); + break; + case 4: + hash = (37 * hash) + FILE_FIELD_NUMBER; + hash = (53 * hash) + getFile().hashCode(); + break; + case 7: + hash = (37 * hash) + EXECUTABLE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getExecutableCode().hashCode(); + break; + case 8: + hash = (37 * hash) + CODE_EXECUTION_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getCodeExecutionResult().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent 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.v1beta.AssistantContent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent parseFrom( + 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.v1beta.AssistantContent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AssistantContent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Multi-modal content.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AssistantContent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AssistantContent) + com.google.cloud.discoveryengine.v1beta.AssistantContentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantContent.class, + com.google.cloud.discoveryengine.v1beta.AssistantContent.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.AssistantContent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (inlineDataBuilder_ != null) { + inlineDataBuilder_.clear(); + } + if (fileBuilder_ != null) { + fileBuilder_.clear(); + } + if (executableCodeBuilder_ != null) { + executableCodeBuilder_.clear(); + } + if (codeExecutionResultBuilder_ != null) { + codeExecutionResultBuilder_.clear(); + } + role_ = ""; + thought_ = false; + dataCase_ = 0; + data_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantContent_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantContent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent build() { + com.google.cloud.discoveryengine.v1beta.AssistantContent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent buildPartial() { + com.google.cloud.discoveryengine.v1beta.AssistantContent result = + new com.google.cloud.discoveryengine.v1beta.AssistantContent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.AssistantContent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.role_ = role_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.thought_ = thought_; + } + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.AssistantContent result) { + result.dataCase_ = dataCase_; + result.data_ = this.data_; + if (dataCase_ == 3 && inlineDataBuilder_ != null) { + result.data_ = inlineDataBuilder_.build(); + } + if (dataCase_ == 4 && fileBuilder_ != null) { + result.data_ = fileBuilder_.build(); + } + if (dataCase_ == 7 && executableCodeBuilder_ != null) { + result.data_ = executableCodeBuilder_.build(); + } + if (dataCase_ == 8 && codeExecutionResultBuilder_ != null) { + result.data_ = codeExecutionResultBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.AssistantContent) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.AssistantContent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.AssistantContent other) { + if (other == com.google.cloud.discoveryengine.v1beta.AssistantContent.getDefaultInstance()) + return this; + if (!other.getRole().isEmpty()) { + role_ = other.role_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.getThought() != false) { + setThought(other.getThought()); + } + switch (other.getDataCase()) { + case TEXT: + { + dataCase_ = 2; + data_ = other.data_; + onChanged(); + break; + } + case INLINE_DATA: + { + mergeInlineData(other.getInlineData()); + break; + } + case FILE: + { + mergeFile(other.getFile()); + break; + } + case EXECUTABLE_CODE: + { + mergeExecutableCode(other.getExecutableCode()); + break; + } + case CODE_EXECUTION_RESULT: + { + mergeCodeExecutionResult(other.getCodeExecutionResult()); + 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: + { + role_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + dataCase_ = 2; + data_ = s; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetInlineDataFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(internalGetFileFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 4; + break; + } // case 34 + case 48: + { + thought_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 58: + { + input.readMessage( + internalGetExecutableCodeFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetCodeExecutionResultFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 8; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int 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 = 2; + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return dataCase_ == 2; + } + + /** + * + * + *
            +     * Inline text.
            +     * 
            + * + * string text = 2; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + 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_ == 2) { + data_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Inline text.
            +     * 
            + * + * string text = 2; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 2) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Inline text.
            +     * 
            + * + * string text = 2; + * + * @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_ = 2; + data_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Inline text.
            +     * 
            + * + * string text = 2; + * + * @return This builder for chaining. + */ + public Builder clearText() { + if (dataCase_ == 2) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Inline text.
            +     * 
            + * + * string text = 2; + * + * @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_ = 2; + data_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob, + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantContent.BlobOrBuilder> + inlineDataBuilder_; + + /** + * + * + *
            +     * Inline binary data.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.Blob inline_data = 3; + * + * @return Whether the inlineData field is set. + */ + @java.lang.Override + public boolean hasInlineData() { + return dataCase_ == 3; + } + + /** + * + * + *
            +     * Inline binary data.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.Blob inline_data = 3; + * + * @return The inlineData. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob getInlineData() { + if (inlineDataBuilder_ == null) { + if (dataCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob) data_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob.getDefaultInstance(); + } else { + if (dataCase_ == 3) { + return inlineDataBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Inline binary data.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.Blob inline_data = 3; + */ + public Builder setInlineData( + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob value) { + if (inlineDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + inlineDataBuilder_.setMessage(value); + } + dataCase_ = 3; + return this; + } + + /** + * + * + *
            +     * Inline binary data.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.Blob inline_data = 3; + */ + public Builder setInlineData( + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob.Builder builderForValue) { + if (inlineDataBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + inlineDataBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 3; + return this; + } + + /** + * + * + *
            +     * Inline binary data.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.Blob inline_data = 3; + */ + public Builder mergeInlineData( + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob value) { + if (inlineDataBuilder_ == null) { + if (dataCase_ == 3 + && data_ + != com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob + .getDefaultInstance()) { + data_ = + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob.newBuilder( + (com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 3) { + inlineDataBuilder_.mergeFrom(value); + } else { + inlineDataBuilder_.setMessage(value); + } + } + dataCase_ = 3; + return this; + } + + /** + * + * + *
            +     * Inline binary data.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.Blob inline_data = 3; + */ + public Builder clearInlineData() { + if (inlineDataBuilder_ == null) { + if (dataCase_ == 3) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 3) { + dataCase_ = 0; + data_ = null; + } + inlineDataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Inline binary data.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.Blob inline_data = 3; + */ + public com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob.Builder + getInlineDataBuilder() { + return internalGetInlineDataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Inline binary data.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.Blob inline_data = 3; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.BlobOrBuilder + getInlineDataOrBuilder() { + if ((dataCase_ == 3) && (inlineDataBuilder_ != null)) { + return inlineDataBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob) data_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Inline binary data.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.Blob inline_data = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob, + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantContent.BlobOrBuilder> + internalGetInlineDataFieldBuilder() { + if (inlineDataBuilder_ == null) { + if (!(dataCase_ == 3)) { + data_ = + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob.getDefaultInstance(); + } + inlineDataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob, + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantContent.BlobOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 3; + onChanged(); + return inlineDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantContent.File, + com.google.cloud.discoveryengine.v1beta.AssistantContent.File.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantContent.FileOrBuilder> + fileBuilder_; + + /** + * + * + *
            +     * A file, e.g., an audio summary.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.File file = 4; + * + * @return Whether the file field is set. + */ + @java.lang.Override + public boolean hasFile() { + return dataCase_ == 4; + } + + /** + * + * + *
            +     * A file, e.g., an audio summary.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.File file = 4; + * + * @return The file. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.File getFile() { + if (fileBuilder_ == null) { + if (dataCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.AssistantContent.File) data_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.File.getDefaultInstance(); + } else { + if (dataCase_ == 4) { + return fileBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.File.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * A file, e.g., an audio summary.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.File file = 4; + */ + public Builder setFile(com.google.cloud.discoveryengine.v1beta.AssistantContent.File value) { + if (fileBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + fileBuilder_.setMessage(value); + } + dataCase_ = 4; + return this; + } + + /** + * + * + *
            +     * A file, e.g., an audio summary.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.File file = 4; + */ + public Builder setFile( + com.google.cloud.discoveryengine.v1beta.AssistantContent.File.Builder builderForValue) { + if (fileBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + fileBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 4; + return this; + } + + /** + * + * + *
            +     * A file, e.g., an audio summary.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.File file = 4; + */ + public Builder mergeFile(com.google.cloud.discoveryengine.v1beta.AssistantContent.File value) { + if (fileBuilder_ == null) { + if (dataCase_ == 4 + && data_ + != com.google.cloud.discoveryengine.v1beta.AssistantContent.File + .getDefaultInstance()) { + data_ = + com.google.cloud.discoveryengine.v1beta.AssistantContent.File.newBuilder( + (com.google.cloud.discoveryengine.v1beta.AssistantContent.File) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 4) { + fileBuilder_.mergeFrom(value); + } else { + fileBuilder_.setMessage(value); + } + } + dataCase_ = 4; + return this; + } + + /** + * + * + *
            +     * A file, e.g., an audio summary.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.File file = 4; + */ + public Builder clearFile() { + if (fileBuilder_ == null) { + if (dataCase_ == 4) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 4) { + dataCase_ = 0; + data_ = null; + } + fileBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * A file, e.g., an audio summary.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.File file = 4; + */ + public com.google.cloud.discoveryengine.v1beta.AssistantContent.File.Builder getFileBuilder() { + return internalGetFileFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * A file, e.g., an audio summary.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.File file = 4; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.FileOrBuilder + getFileOrBuilder() { + if ((dataCase_ == 4) && (fileBuilder_ != null)) { + return fileBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 4) { + return (com.google.cloud.discoveryengine.v1beta.AssistantContent.File) data_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.File.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * A file, e.g., an audio summary.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.File file = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantContent.File, + com.google.cloud.discoveryengine.v1beta.AssistantContent.File.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantContent.FileOrBuilder> + internalGetFileFieldBuilder() { + if (fileBuilder_ == null) { + if (!(dataCase_ == 4)) { + data_ = + com.google.cloud.discoveryengine.v1beta.AssistantContent.File.getDefaultInstance(); + } + fileBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantContent.File, + com.google.cloud.discoveryengine.v1beta.AssistantContent.File.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantContent.FileOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.AssistantContent.File) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 4; + onChanged(); + return fileBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode, + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCodeOrBuilder> + executableCodeBuilder_; + + /** + * + * + *
            +     * Code generated by the model that is meant to be executed.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode executable_code = 7; + * + * + * @return Whether the executableCode field is set. + */ + @java.lang.Override + public boolean hasExecutableCode() { + return dataCase_ == 7; + } + + /** + * + * + *
            +     * Code generated by the model that is meant to be executed.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode executable_code = 7; + * + * + * @return The executableCode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode + getExecutableCode() { + if (executableCodeBuilder_ == null) { + if (dataCase_ == 7) { + return (com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode) data_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode + .getDefaultInstance(); + } else { + if (dataCase_ == 7) { + return executableCodeBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Code generated by the model that is meant to be executed.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode executable_code = 7; + * + */ + public Builder setExecutableCode( + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode value) { + if (executableCodeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + executableCodeBuilder_.setMessage(value); + } + dataCase_ = 7; + return this; + } + + /** + * + * + *
            +     * Code generated by the model that is meant to be executed.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode executable_code = 7; + * + */ + public Builder setExecutableCode( + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode.Builder + builderForValue) { + if (executableCodeBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + executableCodeBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 7; + return this; + } + + /** + * + * + *
            +     * Code generated by the model that is meant to be executed.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode executable_code = 7; + * + */ + public Builder mergeExecutableCode( + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode value) { + if (executableCodeBuilder_ == null) { + if (dataCase_ == 7 + && data_ + != com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode + .getDefaultInstance()) { + data_ = + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode.newBuilder( + (com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode) + data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 7) { + executableCodeBuilder_.mergeFrom(value); + } else { + executableCodeBuilder_.setMessage(value); + } + } + dataCase_ = 7; + return this; + } + + /** + * + * + *
            +     * Code generated by the model that is meant to be executed.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode executable_code = 7; + * + */ + public Builder clearExecutableCode() { + if (executableCodeBuilder_ == null) { + if (dataCase_ == 7) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 7) { + dataCase_ = 0; + data_ = null; + } + executableCodeBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Code generated by the model that is meant to be executed.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode executable_code = 7; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode.Builder + getExecutableCodeBuilder() { + return internalGetExecutableCodeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Code generated by the model that is meant to be executed.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode executable_code = 7; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCodeOrBuilder + getExecutableCodeOrBuilder() { + if ((dataCase_ == 7) && (executableCodeBuilder_ != null)) { + return executableCodeBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 7) { + return (com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode) data_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Code generated by the model that is meant to be executed.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode executable_code = 7; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode, + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCodeOrBuilder> + internalGetExecutableCodeFieldBuilder() { + if (executableCodeBuilder_ == null) { + if (!(dataCase_ == 7)) { + data_ = + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode + .getDefaultInstance(); + } + executableCodeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode, + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCodeOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 7; + onChanged(); + return executableCodeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult, + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResultOrBuilder> + codeExecutionResultBuilder_; + + /** + * + * + *
            +     * Result of executing an ExecutableCode.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult code_execution_result = 8; + * + * + * @return Whether the codeExecutionResult field is set. + */ + @java.lang.Override + public boolean hasCodeExecutionResult() { + return dataCase_ == 8; + } + + /** + * + * + *
            +     * Result of executing an ExecutableCode.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult code_execution_result = 8; + * + * + * @return The codeExecutionResult. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + getCodeExecutionResult() { + if (codeExecutionResultBuilder_ == null) { + if (dataCase_ == 8) { + return (com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult) + data_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + .getDefaultInstance(); + } else { + if (dataCase_ == 8) { + return codeExecutionResultBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Result of executing an ExecutableCode.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult code_execution_result = 8; + * + */ + public Builder setCodeExecutionResult( + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult value) { + if (codeExecutionResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + codeExecutionResultBuilder_.setMessage(value); + } + dataCase_ = 8; + return this; + } + + /** + * + * + *
            +     * Result of executing an ExecutableCode.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult code_execution_result = 8; + * + */ + public Builder setCodeExecutionResult( + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Builder + builderForValue) { + if (codeExecutionResultBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + codeExecutionResultBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 8; + return this; + } + + /** + * + * + *
            +     * Result of executing an ExecutableCode.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult code_execution_result = 8; + * + */ + public Builder mergeCodeExecutionResult( + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult value) { + if (codeExecutionResultBuilder_ == null) { + if (dataCase_ == 8 + && data_ + != com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + .getDefaultInstance()) { + data_ = + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + .newBuilder( + (com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult) + data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 8) { + codeExecutionResultBuilder_.mergeFrom(value); + } else { + codeExecutionResultBuilder_.setMessage(value); + } + } + dataCase_ = 8; + return this; + } + + /** + * + * + *
            +     * Result of executing an ExecutableCode.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult code_execution_result = 8; + * + */ + public Builder clearCodeExecutionResult() { + if (codeExecutionResultBuilder_ == null) { + if (dataCase_ == 8) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 8) { + dataCase_ = 0; + data_ = null; + } + codeExecutionResultBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Result of executing an ExecutableCode.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult code_execution_result = 8; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Builder + getCodeExecutionResultBuilder() { + return internalGetCodeExecutionResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Result of executing an ExecutableCode.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult code_execution_result = 8; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResultOrBuilder + getCodeExecutionResultOrBuilder() { + if ((dataCase_ == 8) && (codeExecutionResultBuilder_ != null)) { + return codeExecutionResultBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 8) { + return (com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult) + data_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Result of executing an ExecutableCode.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult code_execution_result = 8; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult, + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResultOrBuilder> + internalGetCodeExecutionResultFieldBuilder() { + if (codeExecutionResultBuilder_ == null) { + if (!(dataCase_ == 8)) { + data_ = + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + .getDefaultInstance(); + } + codeExecutionResultBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult, + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + .Builder, + com.google.cloud.discoveryengine.v1beta.AssistantContent + .CodeExecutionResultOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult) + data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 8; + onChanged(); + return codeExecutionResultBuilder_; + } + + private java.lang.Object role_ = ""; + + /** + * + * + *
            +     * The producer of the content. Can be "model" or "user".
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * The producer of the content. Can be "model" or "user".
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * The producer of the content. Can be "model" or "user".
            +     * 
            + * + * 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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The producer of the content. Can be "model" or "user".
            +     * 
            + * + * string role = 1; + * + * @return This builder for chaining. + */ + public Builder clearRole() { + role_ = getDefaultInstance().getRole(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
            +     * The producer of the content. Can be "model" or "user".
            +     * 
            + * + * 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_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean thought_; + + /** + * + * + *
            +     * Optional. Indicates if the part is thought from the model.
            +     * 
            + * + * bool thought = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The thought. + */ + @java.lang.Override + public boolean getThought() { + return thought_; + } + + /** + * + * + *
            +     * Optional. Indicates if the part is thought from the model.
            +     * 
            + * + * bool thought = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The thought to set. + * @return This builder for chaining. + */ + public Builder setThought(boolean value) { + + thought_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Indicates if the part is thought from the model.
            +     * 
            + * + * bool thought = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearThought() { + bitField0_ = (bitField0_ & ~0x00000040); + thought_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AssistantContent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AssistantContent) + private static final com.google.cloud.discoveryengine.v1beta.AssistantContent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.AssistantContent(); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantContent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistantContent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AssistantContent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantContentOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantContentOrBuilder.java new file mode 100644 index 000000000000..c3c76f0600c8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantContentOrBuilder.java @@ -0,0 +1,268 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assist_answer.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface AssistantContentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AssistantContent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Inline text.
            +   * 
            + * + * string text = 2; + * + * @return Whether the text field is set. + */ + boolean hasText(); + + /** + * + * + *
            +   * Inline text.
            +   * 
            + * + * string text = 2; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
            +   * Inline text.
            +   * 
            + * + * string text = 2; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
            +   * Inline binary data.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.Blob inline_data = 3; + * + * @return Whether the inlineData field is set. + */ + boolean hasInlineData(); + + /** + * + * + *
            +   * Inline binary data.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.Blob inline_data = 3; + * + * @return The inlineData. + */ + com.google.cloud.discoveryengine.v1beta.AssistantContent.Blob getInlineData(); + + /** + * + * + *
            +   * Inline binary data.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.Blob inline_data = 3; + */ + com.google.cloud.discoveryengine.v1beta.AssistantContent.BlobOrBuilder getInlineDataOrBuilder(); + + /** + * + * + *
            +   * A file, e.g., an audio summary.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.File file = 4; + * + * @return Whether the file field is set. + */ + boolean hasFile(); + + /** + * + * + *
            +   * A file, e.g., an audio summary.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.File file = 4; + * + * @return The file. + */ + com.google.cloud.discoveryengine.v1beta.AssistantContent.File getFile(); + + /** + * + * + *
            +   * A file, e.g., an audio summary.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.File file = 4; + */ + com.google.cloud.discoveryengine.v1beta.AssistantContent.FileOrBuilder getFileOrBuilder(); + + /** + * + * + *
            +   * Code generated by the model that is meant to be executed.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode executable_code = 7; + * + * + * @return Whether the executableCode field is set. + */ + boolean hasExecutableCode(); + + /** + * + * + *
            +   * Code generated by the model that is meant to be executed.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode executable_code = 7; + * + * + * @return The executableCode. + */ + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode getExecutableCode(); + + /** + * + * + *
            +   * Code generated by the model that is meant to be executed.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCode executable_code = 7; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistantContent.ExecutableCodeOrBuilder + getExecutableCodeOrBuilder(); + + /** + * + * + *
            +   * Result of executing an ExecutableCode.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult code_execution_result = 8; + * + * + * @return Whether the codeExecutionResult field is set. + */ + boolean hasCodeExecutionResult(); + + /** + * + * + *
            +   * Result of executing an ExecutableCode.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult code_execution_result = 8; + * + * + * @return The codeExecutionResult. + */ + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult + getCodeExecutionResult(); + + /** + * + * + *
            +   * Result of executing an ExecutableCode.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResult code_execution_result = 8; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistantContent.CodeExecutionResultOrBuilder + getCodeExecutionResultOrBuilder(); + + /** + * + * + *
            +   * The producer of the content. Can be "model" or "user".
            +   * 
            + * + * string role = 1; + * + * @return The role. + */ + java.lang.String getRole(); + + /** + * + * + *
            +   * The producer of the content. Can be "model" or "user".
            +   * 
            + * + * string role = 1; + * + * @return The bytes for role. + */ + com.google.protobuf.ByteString getRoleBytes(); + + /** + * + * + *
            +   * Optional. Indicates if the part is thought from the model.
            +   * 
            + * + * bool thought = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The thought. + */ + boolean getThought(); + + com.google.cloud.discoveryengine.v1beta.AssistantContent.DataCase getDataCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantGroundedContent.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantGroundedContent.java new file mode 100644 index 000000000000..2df035042496 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantGroundedContent.java @@ -0,0 +1,10079 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assist_answer.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * A piece of content and possibly its grounding information.
            + *
            + * Not all content needs grounding. Phrases like "Of course, I will gladly
            + * search it for you." do not need grounding.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AssistantGroundedContent} + */ +@com.google.protobuf.Generated +public final class AssistantGroundedContent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AssistantGroundedContent) + AssistantGroundedContentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AssistantGroundedContent"); + } + + // Use AssistantGroundedContent.newBuilder() to construct. + private AssistantGroundedContent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistantGroundedContent() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.class, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.Builder.class); + } + + public interface TextGroundingMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Grounding information for parts of the text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment> + getSegmentsList(); + + /** + * + * + *
            +     * Grounding information for parts of the text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment + getSegments(int index); + + /** + * + * + *
            +     * Grounding information for parts of the text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + int getSegmentsCount(); + + /** + * + * + *
            +     * Grounding information for parts of the text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.SegmentOrBuilder> + getSegmentsOrBuilderList(); + + /** + * + * + *
            +     * Grounding information for parts of the text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .SegmentOrBuilder + getSegmentsOrBuilder(int index); + + /** + * + * + *
            +     * Grounding information for parts of the visual content.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment> + getVisualSegmentsList(); + + /** + * + * + *
            +     * Grounding information for parts of the visual content.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + getVisualSegments(int index); + + /** + * + * + *
            +     * Grounding information for parts of the visual content.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + int getVisualSegmentsCount(); + + /** + * + * + *
            +     * Grounding information for parts of the visual content.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegmentOrBuilder> + getVisualSegmentsOrBuilderList(); + + /** + * + * + *
            +     * Grounding information for parts of the visual content.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegmentOrBuilder + getVisualSegmentsOrBuilder(int index); + + /** + * + * + *
            +     * References for the grounded text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference> + getReferencesList(); + + /** + * + * + *
            +     * References for the grounded text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference + getReferences(int index); + + /** + * + * + *
            +     * References for the grounded text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + int getReferencesCount(); + + /** + * + * + *
            +     * References for the grounded text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.ReferenceOrBuilder> + getReferencesOrBuilderList(); + + /** + * + * + *
            +     * References for the grounded text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .ReferenceOrBuilder + getReferencesOrBuilder(int index); + } + + /** + * + * + *
            +   * Grounding details for text sources.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata} + */ + public static final class TextGroundingMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata) + TextGroundingMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TextGroundingMetadata"); + } + + // Use TextGroundingMetadata.newBuilder() to construct. + private TextGroundingMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TextGroundingMetadata() { + segments_ = java.util.Collections.emptyList(); + visualSegments_ = java.util.Collections.emptyList(); + references_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .class, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Builder.class); + } + + public interface SegmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Zero-based index indicating the start of the segment, measured in bytes
            +       * of a UTF-8 string (i.e. characters encoded on multiple bytes have a
            +       * length of more than one).
            +       * 
            + * + * int64 start_index = 1; + * + * @return The startIndex. + */ + long getStartIndex(); + + /** + * + * + *
            +       * End of the segment, exclusive.
            +       * 
            + * + * int64 end_index = 2; + * + * @return The endIndex. + */ + long getEndIndex(); + + /** + * + * + *
            +       * References for the segment.
            +       * 
            + * + * repeated int32 reference_indices = 4; + * + * @return A list containing the referenceIndices. + */ + java.util.List getReferenceIndicesList(); + + /** + * + * + *
            +       * References for the segment.
            +       * 
            + * + * repeated int32 reference_indices = 4; + * + * @return The count of referenceIndices. + */ + int getReferenceIndicesCount(); + + /** + * + * + *
            +       * References for the segment.
            +       * 
            + * + * repeated int32 reference_indices = 4; + * + * @param index The index of the element to return. + * @return The referenceIndices at the given index. + */ + int getReferenceIndices(int index); + + /** + * + * + *
            +       * Score for the segment.
            +       * 
            + * + * float grounding_score = 5; + * + * @return The groundingScore. + */ + float getGroundingScore(); + + /** + * + * + *
            +       * The text segment itself.
            +       * 
            + * + * string text = 6; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
            +       * The text segment itself.
            +       * 
            + * + * string text = 6; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + } + + /** + * + * + *
            +     * Grounding information for a segment of the text.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment} + */ + public static final class Segment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment) + SegmentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Segment"); + } + + // Use Segment.newBuilder() to construct. + private Segment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Segment() { + referenceIndices_ = emptyIntList(); + text_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Segment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Segment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment.class, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment.Builder.class); + } + + public static final int START_INDEX_FIELD_NUMBER = 1; + private long startIndex_ = 0L; + + /** + * + * + *
            +       * Zero-based index indicating the start of the segment, measured in bytes
            +       * of a UTF-8 string (i.e. characters encoded on multiple bytes have a
            +       * length of more than one).
            +       * 
            + * + * int64 start_index = 1; + * + * @return The startIndex. + */ + @java.lang.Override + public long getStartIndex() { + return startIndex_; + } + + public static final int END_INDEX_FIELD_NUMBER = 2; + private long endIndex_ = 0L; + + /** + * + * + *
            +       * End of the segment, exclusive.
            +       * 
            + * + * int64 end_index = 2; + * + * @return The endIndex. + */ + @java.lang.Override + public long getEndIndex() { + return endIndex_; + } + + public static final int REFERENCE_INDICES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList referenceIndices_ = emptyIntList(); + + /** + * + * + *
            +       * References for the segment.
            +       * 
            + * + * repeated int32 reference_indices = 4; + * + * @return A list containing the referenceIndices. + */ + @java.lang.Override + public java.util.List getReferenceIndicesList() { + return referenceIndices_; + } + + /** + * + * + *
            +       * References for the segment.
            +       * 
            + * + * repeated int32 reference_indices = 4; + * + * @return The count of referenceIndices. + */ + public int getReferenceIndicesCount() { + return referenceIndices_.size(); + } + + /** + * + * + *
            +       * References for the segment.
            +       * 
            + * + * repeated int32 reference_indices = 4; + * + * @param index The index of the element to return. + * @return The referenceIndices at the given index. + */ + public int getReferenceIndices(int index) { + return referenceIndices_.getInt(index); + } + + private int referenceIndicesMemoizedSerializedSize = -1; + + public static final int GROUNDING_SCORE_FIELD_NUMBER = 5; + private float groundingScore_ = 0F; + + /** + * + * + *
            +       * Score for the segment.
            +       * 
            + * + * float grounding_score = 5; + * + * @return The groundingScore. + */ + @java.lang.Override + public float getGroundingScore() { + return groundingScore_; + } + + public static final int TEXT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + + /** + * + * + *
            +       * The text segment itself.
            +       * 
            + * + * string text = 6; + * + * @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; + } + } + + /** + * + * + *
            +       * The text segment itself.
            +       * 
            + * + * string text = 6; + * + * @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 { + getSerializedSize(); + if (startIndex_ != 0L) { + output.writeInt64(1, startIndex_); + } + if (endIndex_ != 0L) { + output.writeInt64(2, endIndex_); + } + if (getReferenceIndicesList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(referenceIndicesMemoizedSerializedSize); + } + for (int i = 0; i < referenceIndices_.size(); i++) { + output.writeInt32NoTag(referenceIndices_.getInt(i)); + } + if (java.lang.Float.floatToRawIntBits(groundingScore_) != 0) { + output.writeFloat(5, groundingScore_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, text_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startIndex_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, startIndex_); + } + if (endIndex_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, endIndex_); + } + { + int dataSize = 0; + for (int i = 0; i < referenceIndices_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + referenceIndices_.getInt(i)); + } + size += dataSize; + if (!getReferenceIndicesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + referenceIndicesMemoizedSerializedSize = dataSize; + } + if (java.lang.Float.floatToRawIntBits(groundingScore_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, groundingScore_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, 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.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment + other = + (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment) + obj; + + if (getStartIndex() != other.getStartIndex()) return false; + if (getEndIndex() != other.getEndIndex()) return false; + if (!getReferenceIndicesList().equals(other.getReferenceIndicesList())) return false; + if (java.lang.Float.floatToIntBits(getGroundingScore()) + != java.lang.Float.floatToIntBits(other.getGroundingScore())) 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) + START_INDEX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getStartIndex()); + hash = (37 * hash) + END_INDEX_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEndIndex()); + if (getReferenceIndicesCount() > 0) { + hash = (37 * hash) + REFERENCE_INDICES_FIELD_NUMBER; + hash = (53 * hash) + getReferenceIndicesList().hashCode(); + } + hash = (37 * hash) + GROUNDING_SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getGroundingScore()); + 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.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment + 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.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment + parseFrom( + 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.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Grounding information for a segment of the text.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment) + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .SegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Segment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Segment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment.class, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startIndex_ = 0L; + endIndex_ = 0L; + referenceIndices_ = emptyIntList(); + groundingScore_ = 0F; + text_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Segment_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment + build() { + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment + result = + new com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startIndex_ = startIndex_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endIndex_ = endIndex_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + referenceIndices_.makeImmutable(); + result.referenceIndices_ = referenceIndices_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.groundingScore_ = groundingScore_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.text_ = text_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment.getDefaultInstance()) return this; + if (other.getStartIndex() != 0L) { + setStartIndex(other.getStartIndex()); + } + if (other.getEndIndex() != 0L) { + setEndIndex(other.getEndIndex()); + } + if (!other.referenceIndices_.isEmpty()) { + if (referenceIndices_.isEmpty()) { + referenceIndices_ = other.referenceIndices_; + referenceIndices_.makeImmutable(); + bitField0_ |= 0x00000004; + } else { + ensureReferenceIndicesIsMutable(); + referenceIndices_.addAll(other.referenceIndices_); + } + onChanged(); + } + if (java.lang.Float.floatToRawIntBits(other.getGroundingScore()) != 0) { + setGroundingScore(other.getGroundingScore()); + } + if (!other.getText().isEmpty()) { + text_ = other.text_; + 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 8: + { + startIndex_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endIndex_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 32: + { + int v = input.readInt32(); + ensureReferenceIndicesIsMutable(); + referenceIndices_.addInt(v); + break; + } // case 32 + case 34: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureReferenceIndicesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + referenceIndices_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 34 + case 45: + { + groundingScore_ = input.readFloat(); + bitField0_ |= 0x00000008; + break; + } // case 45 + case 50: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + 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 startIndex_; + + /** + * + * + *
            +         * Zero-based index indicating the start of the segment, measured in bytes
            +         * of a UTF-8 string (i.e. characters encoded on multiple bytes have a
            +         * length of more than one).
            +         * 
            + * + * int64 start_index = 1; + * + * @return The startIndex. + */ + @java.lang.Override + public long getStartIndex() { + return startIndex_; + } + + /** + * + * + *
            +         * Zero-based index indicating the start of the segment, measured in bytes
            +         * of a UTF-8 string (i.e. characters encoded on multiple bytes have a
            +         * length of more than one).
            +         * 
            + * + * int64 start_index = 1; + * + * @param value The startIndex to set. + * @return This builder for chaining. + */ + public Builder setStartIndex(long value) { + + startIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Zero-based index indicating the start of the segment, measured in bytes
            +         * of a UTF-8 string (i.e. characters encoded on multiple bytes have a
            +         * length of more than one).
            +         * 
            + * + * int64 start_index = 1; + * + * @return This builder for chaining. + */ + public Builder clearStartIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + startIndex_ = 0L; + onChanged(); + return this; + } + + private long endIndex_; + + /** + * + * + *
            +         * End of the segment, exclusive.
            +         * 
            + * + * int64 end_index = 2; + * + * @return The endIndex. + */ + @java.lang.Override + public long getEndIndex() { + return endIndex_; + } + + /** + * + * + *
            +         * End of the segment, exclusive.
            +         * 
            + * + * int64 end_index = 2; + * + * @param value The endIndex to set. + * @return This builder for chaining. + */ + public Builder setEndIndex(long value) { + + endIndex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * End of the segment, exclusive.
            +         * 
            + * + * int64 end_index = 2; + * + * @return This builder for chaining. + */ + public Builder clearEndIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + endIndex_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList referenceIndices_ = emptyIntList(); + + private void ensureReferenceIndicesIsMutable() { + if (!referenceIndices_.isModifiable()) { + referenceIndices_ = makeMutableCopy(referenceIndices_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
            +         * References for the segment.
            +         * 
            + * + * repeated int32 reference_indices = 4; + * + * @return A list containing the referenceIndices. + */ + public java.util.List getReferenceIndicesList() { + referenceIndices_.makeImmutable(); + return referenceIndices_; + } + + /** + * + * + *
            +         * References for the segment.
            +         * 
            + * + * repeated int32 reference_indices = 4; + * + * @return The count of referenceIndices. + */ + public int getReferenceIndicesCount() { + return referenceIndices_.size(); + } + + /** + * + * + *
            +         * References for the segment.
            +         * 
            + * + * repeated int32 reference_indices = 4; + * + * @param index The index of the element to return. + * @return The referenceIndices at the given index. + */ + public int getReferenceIndices(int index) { + return referenceIndices_.getInt(index); + } + + /** + * + * + *
            +         * References for the segment.
            +         * 
            + * + * repeated int32 reference_indices = 4; + * + * @param index The index to set the value at. + * @param value The referenceIndices to set. + * @return This builder for chaining. + */ + public Builder setReferenceIndices(int index, int value) { + + ensureReferenceIndicesIsMutable(); + referenceIndices_.setInt(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * References for the segment.
            +         * 
            + * + * repeated int32 reference_indices = 4; + * + * @param value The referenceIndices to add. + * @return This builder for chaining. + */ + public Builder addReferenceIndices(int value) { + + ensureReferenceIndicesIsMutable(); + referenceIndices_.addInt(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * References for the segment.
            +         * 
            + * + * repeated int32 reference_indices = 4; + * + * @param values The referenceIndices to add. + * @return This builder for chaining. + */ + public Builder addAllReferenceIndices( + java.lang.Iterable values) { + ensureReferenceIndicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referenceIndices_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * References for the segment.
            +         * 
            + * + * repeated int32 reference_indices = 4; + * + * @return This builder for chaining. + */ + public Builder clearReferenceIndices() { + referenceIndices_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + private float groundingScore_; + + /** + * + * + *
            +         * Score for the segment.
            +         * 
            + * + * float grounding_score = 5; + * + * @return The groundingScore. + */ + @java.lang.Override + public float getGroundingScore() { + return groundingScore_; + } + + /** + * + * + *
            +         * Score for the segment.
            +         * 
            + * + * float grounding_score = 5; + * + * @param value The groundingScore to set. + * @return This builder for chaining. + */ + public Builder setGroundingScore(float value) { + + groundingScore_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Score for the segment.
            +         * 
            + * + * float grounding_score = 5; + * + * @return This builder for chaining. + */ + public Builder clearGroundingScore() { + bitField0_ = (bitField0_ & ~0x00000008); + groundingScore_ = 0F; + onChanged(); + return this; + } + + private java.lang.Object text_ = ""; + + /** + * + * + *
            +         * The text segment itself.
            +         * 
            + * + * string text = 6; + * + * @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; + } + } + + /** + * + * + *
            +         * The text segment itself.
            +         * 
            + * + * string text = 6; + * + * @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; + } + } + + /** + * + * + *
            +         * The text segment itself.
            +         * 
            + * + * string text = 6; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +         * The text segment itself.
            +         * 
            + * + * string text = 6; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +         * The text segment itself.
            +         * 
            + * + * string text = 6; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment) + private static final com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment(); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Segment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface VisualSegmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * References for the visual segment.
            +       * 
            + * + * repeated int32 reference_indices = 1; + * + * @return A list containing the referenceIndices. + */ + java.util.List getReferenceIndicesList(); + + /** + * + * + *
            +       * References for the visual segment.
            +       * 
            + * + * repeated int32 reference_indices = 1; + * + * @return The count of referenceIndices. + */ + int getReferenceIndicesCount(); + + /** + * + * + *
            +       * References for the visual segment.
            +       * 
            + * + * repeated int32 reference_indices = 1; + * + * @param index The index of the element to return. + * @return The referenceIndices at the given index. + */ + int getReferenceIndices(int index); + + /** + * + * + *
            +       * The content id of the visual segment. In order to display the citation
            +       * of the visual element, this content_id needs to match with the
            +       * `grounded_content.content_metadata.content_id` field.
            +       * 
            + * + * string content_id = 2; + * + * @return The contentId. + */ + java.lang.String getContentId(); + + /** + * + * + *
            +       * The content id of the visual segment. In order to display the citation
            +       * of the visual element, this content_id needs to match with the
            +       * `grounded_content.content_metadata.content_id` field.
            +       * 
            + * + * string content_id = 2; + * + * @return The bytes for contentId. + */ + com.google.protobuf.ByteString getContentIdBytes(); + } + + /** + * + * + *
            +     * Grounding information for a visual segment.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment} + */ + public static final class VisualSegment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment) + VisualSegmentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VisualSegment"); + } + + // Use VisualSegment.newBuilder() to construct. + private VisualSegment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VisualSegment() { + referenceIndices_ = emptyIntList(); + contentId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment.class, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment.Builder.class); + } + + public static final int REFERENCE_INDICES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList referenceIndices_ = emptyIntList(); + + /** + * + * + *
            +       * References for the visual segment.
            +       * 
            + * + * repeated int32 reference_indices = 1; + * + * @return A list containing the referenceIndices. + */ + @java.lang.Override + public java.util.List getReferenceIndicesList() { + return referenceIndices_; + } + + /** + * + * + *
            +       * References for the visual segment.
            +       * 
            + * + * repeated int32 reference_indices = 1; + * + * @return The count of referenceIndices. + */ + public int getReferenceIndicesCount() { + return referenceIndices_.size(); + } + + /** + * + * + *
            +       * References for the visual segment.
            +       * 
            + * + * repeated int32 reference_indices = 1; + * + * @param index The index of the element to return. + * @return The referenceIndices at the given index. + */ + public int getReferenceIndices(int index) { + return referenceIndices_.getInt(index); + } + + private int referenceIndicesMemoizedSerializedSize = -1; + + public static final int CONTENT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object contentId_ = ""; + + /** + * + * + *
            +       * The content id of the visual segment. In order to display the citation
            +       * of the visual element, this content_id needs to match with the
            +       * `grounded_content.content_metadata.content_id` field.
            +       * 
            + * + * string content_id = 2; + * + * @return The contentId. + */ + @java.lang.Override + public java.lang.String getContentId() { + java.lang.Object ref = contentId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contentId_ = s; + return s; + } + } + + /** + * + * + *
            +       * The content id of the visual segment. In order to display the citation
            +       * of the visual element, this content_id needs to match with the
            +       * `grounded_content.content_metadata.content_id` field.
            +       * 
            + * + * string content_id = 2; + * + * @return The bytes for contentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContentIdBytes() { + java.lang.Object ref = contentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contentId_ = 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 { + getSerializedSize(); + if (getReferenceIndicesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(referenceIndicesMemoizedSerializedSize); + } + for (int i = 0; i < referenceIndices_.size(); i++) { + output.writeInt32NoTag(referenceIndices_.getInt(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contentId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, contentId_); + } + 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 < referenceIndices_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + referenceIndices_.getInt(i)); + } + size += dataSize; + if (!getReferenceIndicesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + referenceIndicesMemoizedSerializedSize = dataSize; + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contentId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, contentId_); + } + 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.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + other = + (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment) + obj; + + if (!getReferenceIndicesList().equals(other.getReferenceIndicesList())) return false; + if (!getContentId().equals(other.getContentId())) 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 (getReferenceIndicesCount() > 0) { + hash = (37 * hash) + REFERENCE_INDICES_FIELD_NUMBER; + hash = (53 * hash) + getReferenceIndicesList().hashCode(); + } + hash = (37 * hash) + CONTENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getContentId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + 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.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseFrom( + 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.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Grounding information for a visual segment.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment) + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment.class, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + referenceIndices_ = emptyIntList(); + contentId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_VisualSegment_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + build() { + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + result = + new com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + referenceIndices_.makeImmutable(); + result.referenceIndices_ = referenceIndices_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.contentId_ = contentId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment.getDefaultInstance()) return this; + if (!other.referenceIndices_.isEmpty()) { + if (referenceIndices_.isEmpty()) { + referenceIndices_ = other.referenceIndices_; + referenceIndices_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureReferenceIndicesIsMutable(); + referenceIndices_.addAll(other.referenceIndices_); + } + onChanged(); + } + if (!other.getContentId().isEmpty()) { + contentId_ = other.contentId_; + 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: + { + int v = input.readInt32(); + ensureReferenceIndicesIsMutable(); + referenceIndices_.addInt(v); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureReferenceIndicesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + referenceIndices_.addInt(input.readInt32()); + } + input.popLimit(limit); + break; + } // case 10 + case 18: + { + contentId_ = 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 com.google.protobuf.Internal.IntList referenceIndices_ = emptyIntList(); + + private void ensureReferenceIndicesIsMutable() { + if (!referenceIndices_.isModifiable()) { + referenceIndices_ = makeMutableCopy(referenceIndices_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
            +         * References for the visual segment.
            +         * 
            + * + * repeated int32 reference_indices = 1; + * + * @return A list containing the referenceIndices. + */ + public java.util.List getReferenceIndicesList() { + referenceIndices_.makeImmutable(); + return referenceIndices_; + } + + /** + * + * + *
            +         * References for the visual segment.
            +         * 
            + * + * repeated int32 reference_indices = 1; + * + * @return The count of referenceIndices. + */ + public int getReferenceIndicesCount() { + return referenceIndices_.size(); + } + + /** + * + * + *
            +         * References for the visual segment.
            +         * 
            + * + * repeated int32 reference_indices = 1; + * + * @param index The index of the element to return. + * @return The referenceIndices at the given index. + */ + public int getReferenceIndices(int index) { + return referenceIndices_.getInt(index); + } + + /** + * + * + *
            +         * References for the visual segment.
            +         * 
            + * + * repeated int32 reference_indices = 1; + * + * @param index The index to set the value at. + * @param value The referenceIndices to set. + * @return This builder for chaining. + */ + public Builder setReferenceIndices(int index, int value) { + + ensureReferenceIndicesIsMutable(); + referenceIndices_.setInt(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * References for the visual segment.
            +         * 
            + * + * repeated int32 reference_indices = 1; + * + * @param value The referenceIndices to add. + * @return This builder for chaining. + */ + public Builder addReferenceIndices(int value) { + + ensureReferenceIndicesIsMutable(); + referenceIndices_.addInt(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * References for the visual segment.
            +         * 
            + * + * repeated int32 reference_indices = 1; + * + * @param values The referenceIndices to add. + * @return This builder for chaining. + */ + public Builder addAllReferenceIndices( + java.lang.Iterable values) { + ensureReferenceIndicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, referenceIndices_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * References for the visual segment.
            +         * 
            + * + * repeated int32 reference_indices = 1; + * + * @return This builder for chaining. + */ + public Builder clearReferenceIndices() { + referenceIndices_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + private java.lang.Object contentId_ = ""; + + /** + * + * + *
            +         * The content id of the visual segment. In order to display the citation
            +         * of the visual element, this content_id needs to match with the
            +         * `grounded_content.content_metadata.content_id` field.
            +         * 
            + * + * string content_id = 2; + * + * @return The contentId. + */ + public java.lang.String getContentId() { + java.lang.Object ref = contentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * The content id of the visual segment. In order to display the citation
            +         * of the visual element, this content_id needs to match with the
            +         * `grounded_content.content_metadata.content_id` field.
            +         * 
            + * + * string content_id = 2; + * + * @return The bytes for contentId. + */ + public com.google.protobuf.ByteString getContentIdBytes() { + java.lang.Object ref = contentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * The content id of the visual segment. In order to display the citation
            +         * of the visual element, this content_id needs to match with the
            +         * `grounded_content.content_metadata.content_id` field.
            +         * 
            + * + * string content_id = 2; + * + * @param value The contentId to set. + * @return This builder for chaining. + */ + public Builder setContentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + contentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * The content id of the visual segment. In order to display the citation
            +         * of the visual element, this content_id needs to match with the
            +         * `grounded_content.content_metadata.content_id` field.
            +         * 
            + * + * string content_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearContentId() { + contentId_ = getDefaultInstance().getContentId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +         * The content id of the visual segment. In order to display the citation
            +         * of the visual element, this content_id needs to match with the
            +         * `grounded_content.content_metadata.content_id` field.
            +         * 
            + * + * string content_id = 2; + * + * @param value The bytes for contentId to set. + * @return This builder for chaining. + */ + public Builder setContentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment) + private static final com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment(); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VisualSegment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Referenced text content.
            +       * 
            + * + * string content = 1; + * + * @return The content. + */ + java.lang.String getContent(); + + /** + * + * + *
            +       * Referenced text content.
            +       * 
            + * + * string content = 1; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); + + /** + * + * + *
            +       * Chunk of code snippet from the referenced document.
            +       * 
            + * + * string code_snippet = 4; + * + * @return The codeSnippet. + */ + java.lang.String getCodeSnippet(); + + /** + * + * + *
            +       * Chunk of code snippet from the referenced document.
            +       * 
            + * + * string code_snippet = 4; + * + * @return The bytes for codeSnippet. + */ + com.google.protobuf.ByteString getCodeSnippetBytes(); + + /** + * + * + *
            +       * Document metadata.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + * + * @return Whether the documentMetadata field is set. + */ + boolean hasDocumentMetadata(); + + /** + * + * + *
            +       * Document metadata.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + * + * @return The documentMetadata. + */ + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata + getDocumentMetadata(); + + /** + * + * + *
            +       * Document metadata.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder(); + } + + /** + * + * + *
            +     * Referenced content and related document metadata.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference} + */ + public static final class Reference extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference) + ReferenceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Reference"); + } + + // Use Reference.newBuilder() to construct. + private Reference(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Reference() { + content_ = ""; + codeSnippet_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.class, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.Builder.class); + } + + public interface DocumentMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language language = 8; + * + * + * @return The enum numeric value on the wire for language. + */ + int getLanguageValue(); + + /** + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language language = 8; + * + * + * @return The language. + */ + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.Language + getLanguage(); + + /** + * + * + *
            +         * Document resource name.
            +         * 
            + * + * optional string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the document field is set. + */ + boolean hasDocument(); + + /** + * + * + *
            +         * Document resource name.
            +         * 
            + * + * optional string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The document. + */ + java.lang.String getDocument(); + + /** + * + * + *
            +         * Document resource name.
            +         * 
            + * + * optional string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for document. + */ + com.google.protobuf.ByteString getDocumentBytes(); + + /** + * + * + *
            +         * URI for the document. It may contain a URL that redirects to the
            +         * actual website.
            +         * 
            + * + * optional string uri = 2; + * + * @return Whether the uri field is set. + */ + boolean hasUri(); + + /** + * + * + *
            +         * URI for the document. It may contain a URL that redirects to the
            +         * actual website.
            +         * 
            + * + * optional string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
            +         * URI for the document. It may contain a URL that redirects to the
            +         * actual website.
            +         * 
            + * + * optional string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
            +         * Title.
            +         * 
            + * + * optional string title = 3; + * + * @return Whether the title field is set. + */ + boolean hasTitle(); + + /** + * + * + *
            +         * Title.
            +         * 
            + * + * optional string title = 3; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
            +         * Title.
            +         * 
            + * + * optional string title = 3; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
            +         * Page identifier.
            +         * 
            + * + * optional string page_identifier = 4; + * + * @return Whether the pageIdentifier field is set. + */ + boolean hasPageIdentifier(); + + /** + * + * + *
            +         * Page identifier.
            +         * 
            + * + * optional string page_identifier = 4; + * + * @return The pageIdentifier. + */ + java.lang.String getPageIdentifier(); + + /** + * + * + *
            +         * Page identifier.
            +         * 
            + * + * optional string page_identifier = 4; + * + * @return The bytes for pageIdentifier. + */ + com.google.protobuf.ByteString getPageIdentifierBytes(); + + /** + * + * + *
            +         * Domain name from the document URI. Note that the `uri` field may
            +         * contain a URL that redirects to the actual website, in which case
            +         * this will contain the domain name of the target site.
            +         * 
            + * + * optional string domain = 5; + * + * @return Whether the domain field is set. + */ + boolean hasDomain(); + + /** + * + * + *
            +         * Domain name from the document URI. Note that the `uri` field may
            +         * contain a URL that redirects to the actual website, in which case
            +         * this will contain the domain name of the target site.
            +         * 
            + * + * optional string domain = 5; + * + * @return The domain. + */ + java.lang.String getDomain(); + + /** + * + * + *
            +         * Domain name from the document URI. Note that the `uri` field may
            +         * contain a URL that redirects to the actual website, in which case
            +         * this will contain the domain name of the target site.
            +         * 
            + * + * optional string domain = 5; + * + * @return The bytes for domain. + */ + com.google.protobuf.ByteString getDomainBytes(); + + /** + * + * + *
            +         * The mime type of the document.
            +         * https://www.iana.org/assignments/media-types/media-types.xhtml.
            +         * 
            + * + * optional string mime_type = 7; + * + * @return Whether the mimeType field is set. + */ + boolean hasMimeType(); + + /** + * + * + *
            +         * The mime type of the document.
            +         * https://www.iana.org/assignments/media-types/media-types.xhtml.
            +         * 
            + * + * optional string mime_type = 7; + * + * @return The mimeType. + */ + java.lang.String getMimeType(); + + /** + * + * + *
            +         * The mime type of the document.
            +         * https://www.iana.org/assignments/media-types/media-types.xhtml.
            +         * 
            + * + * optional string mime_type = 7; + * + * @return The bytes for mimeType. + */ + com.google.protobuf.ByteString getMimeTypeBytes(); + } + + /** + * + * + *
            +       * Document metadata.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata} + */ + public static final class DocumentMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata) + DocumentMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DocumentMetadata"); + } + + // Use DocumentMetadata.newBuilder() to construct. + private DocumentMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DocumentMetadata() { + language_ = 0; + document_ = ""; + uri_ = ""; + title_ = ""; + pageIdentifier_ = ""; + domain_ = ""; + mimeType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.class, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.Builder.class); + } + + /** + * + * + *
            +         * Language of the referenced content. For now, it is only used for
            +         * code.
            +         * 
            + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language} + */ + public enum Language implements com.google.protobuf.ProtocolMessageEnum { + /** LANGUAGE_UNSPECIFIED = 0; */ + LANGUAGE_UNSPECIFIED(0), + /** PYTHON = 1; */ + PYTHON(1), + /** SQL = 2; */ + SQL(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Language"); + } + + /** LANGUAGE_UNSPECIFIED = 0; */ + public static final int LANGUAGE_UNSPECIFIED_VALUE = 0; + + /** PYTHON = 1; */ + public static final int PYTHON_VALUE = 1; + + /** SQL = 2; */ + public static final int SQL_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 Language 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 Language forNumber(int value) { + switch (value) { + case 0: + return LANGUAGE_UNSPECIFIED; + case 1: + return PYTHON; + case 2: + return SQL; + 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 Language findValueByNumber(int number) { + return Language.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Language[] VALUES = values(); + + public static Language 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 Language(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language) + } + + private int bitField0_; + public static final int LANGUAGE_FIELD_NUMBER = 8; + private int language_ = 0; + + /** + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language language = 8; + * + * + * @return The enum numeric value on the wire for language. + */ + @java.lang.Override + public int getLanguageValue() { + return language_; + } + + /** + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language language = 8; + * + * + * @return The language. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.Language + getLanguage() { + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.Language + result = + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.Language.forNumber( + language_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.Language.UNRECOGNIZED + : result; + } + + public static final int DOCUMENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object document_ = ""; + + /** + * + * + *
            +         * Document resource name.
            +         * 
            + * + * optional string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the document field is set. + */ + @java.lang.Override + public boolean hasDocument() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +         * Document resource name.
            +         * 
            + * + * optional string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The document. + */ + @java.lang.Override + public java.lang.String getDocument() { + java.lang.Object ref = document_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + document_ = s; + return s; + } + } + + /** + * + * + *
            +         * Document resource name.
            +         * 
            + * + * optional string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for document. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDocumentBytes() { + java.lang.Object ref = document_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + document_ = 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 for the document. It may contain a URL that redirects to the
            +         * actual website.
            +         * 
            + * + * optional string uri = 2; + * + * @return Whether the uri field is set. + */ + @java.lang.Override + public boolean hasUri() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +         * URI for the document. It may contain a URL that redirects to the
            +         * actual website.
            +         * 
            + * + * optional 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 for the document. It may contain a URL that redirects to the
            +         * actual website.
            +         * 
            + * + * optional 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 TITLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
            +         * Title.
            +         * 
            + * + * optional string title = 3; + * + * @return Whether the title field is set. + */ + @java.lang.Override + public boolean hasTitle() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +         * Title.
            +         * 
            + * + * optional string title = 3; + * + * @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.
            +         * 
            + * + * optional string title = 3; + * + * @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; + } + } + + public static final int PAGE_IDENTIFIER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageIdentifier_ = ""; + + /** + * + * + *
            +         * Page identifier.
            +         * 
            + * + * optional string page_identifier = 4; + * + * @return Whether the pageIdentifier field is set. + */ + @java.lang.Override + public boolean hasPageIdentifier() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +         * Page identifier.
            +         * 
            + * + * optional string page_identifier = 4; + * + * @return The pageIdentifier. + */ + @java.lang.Override + public java.lang.String getPageIdentifier() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageIdentifier_ = s; + return s; + } + } + + /** + * + * + *
            +         * Page identifier.
            +         * 
            + * + * optional string page_identifier = 4; + * + * @return The bytes for pageIdentifier. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageIdentifierBytes() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageIdentifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object domain_ = ""; + + /** + * + * + *
            +         * Domain name from the document URI. Note that the `uri` field may
            +         * contain a URL that redirects to the actual website, in which case
            +         * this will contain the domain name of the target site.
            +         * 
            + * + * optional string domain = 5; + * + * @return Whether the domain field is set. + */ + @java.lang.Override + public boolean hasDomain() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +         * Domain name from the document URI. Note that the `uri` field may
            +         * contain a URL that redirects to the actual website, in which case
            +         * this will contain the domain name of the target site.
            +         * 
            + * + * optional string domain = 5; + * + * @return The domain. + */ + @java.lang.Override + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + + /** + * + * + *
            +         * Domain name from the document URI. Note that the `uri` field may
            +         * contain a URL that redirects to the actual website, in which case
            +         * this will contain the domain name of the target site.
            +         * 
            + * + * optional string domain = 5; + * + * @return The bytes for domain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIME_TYPE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; + + /** + * + * + *
            +         * The mime type of the document.
            +         * https://www.iana.org/assignments/media-types/media-types.xhtml.
            +         * 
            + * + * optional string mime_type = 7; + * + * @return Whether the mimeType field is set. + */ + @java.lang.Override + public boolean hasMimeType() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +         * The mime type of the document.
            +         * https://www.iana.org/assignments/media-types/media-types.xhtml.
            +         * 
            + * + * optional string mime_type = 7; + * + * @return The mimeType. + */ + @java.lang.Override + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } + } + + /** + * + * + *
            +         * The mime type of the document.
            +         * https://www.iana.org/assignments/media-types/media-types.xhtml.
            +         * 
            + * + * optional string mime_type = 7; + * + * @return The bytes for mimeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, document_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, title_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, pageIdentifier_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, domain_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, mimeType_); + } + if (language_ + != com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.Language.LANGUAGE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, language_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, document_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, title_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pageIdentifier_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, domain_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, mimeType_); + } + if (language_ + != com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.Language.LANGUAGE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, language_); + } + 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.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata + other = + (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata) + obj; + + if (language_ != other.language_) return false; + if (hasDocument() != other.hasDocument()) return false; + if (hasDocument()) { + if (!getDocument().equals(other.getDocument())) return false; + } + if (hasUri() != other.hasUri()) return false; + if (hasUri()) { + if (!getUri().equals(other.getUri())) return false; + } + if (hasTitle() != other.hasTitle()) return false; + if (hasTitle()) { + if (!getTitle().equals(other.getTitle())) return false; + } + if (hasPageIdentifier() != other.hasPageIdentifier()) return false; + if (hasPageIdentifier()) { + if (!getPageIdentifier().equals(other.getPageIdentifier())) return false; + } + if (hasDomain() != other.hasDomain()) return false; + if (hasDomain()) { + if (!getDomain().equals(other.getDomain())) return false; + } + if (hasMimeType() != other.hasMimeType()) return false; + if (hasMimeType()) { + if (!getMimeType().equals(other.getMimeType())) 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) + LANGUAGE_FIELD_NUMBER; + hash = (53 * hash) + language_; + if (hasDocument()) { + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + } + if (hasUri()) { + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + } + if (hasTitle()) { + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + } + if (hasPageIdentifier()) { + hash = (37 * hash) + PAGE_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getPageIdentifier().hashCode(); + } + if (hasDomain()) { + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + } + if (hasMimeType()) { + hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.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.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.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.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.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.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +         * Document metadata.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata) + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.class, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + language_ = 0; + document_ = ""; + uri_ = ""; + title_ = ""; + pageIdentifier_ = ""; + domain_ = ""; + mimeType_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_DocumentMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + build() { + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata + result = + new com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.language_ = language_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.document_ = document_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uri_ = uri_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.title_ = title_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pageIdentifier_ = pageIdentifier_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.domain_ = domain_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.mimeType_ = mimeType_; + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.getDefaultInstance()) + return this; + if (other.language_ != 0) { + setLanguageValue(other.getLanguageValue()); + } + if (other.hasDocument()) { + document_ = other.document_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasUri()) { + uri_ = other.uri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasTitle()) { + title_ = other.title_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasPageIdentifier()) { + pageIdentifier_ = other.pageIdentifier_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasDomain()) { + domain_ = other.domain_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasMimeType()) { + mimeType_ = other.mimeType_; + 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 10: + { + document_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + pageIdentifier_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + domain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 58: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + language_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 64 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int language_ = 0; + + /** + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language language = 8; + * + * + * @return The enum numeric value on the wire for language. + */ + @java.lang.Override + public int getLanguageValue() { + return language_; + } + + /** + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language language = 8; + * + * + * @param value The enum numeric value on the wire for language to set. + * @return This builder for chaining. + */ + public Builder setLanguageValue(int value) { + language_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language language = 8; + * + * + * @return The language. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.Language + getLanguage() { + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.Language + result = + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.Language.forNumber( + language_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.Language.UNRECOGNIZED + : result; + } + + /** + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language language = 8; + * + * + * @param value The language to set. + * @return This builder for chaining. + */ + public Builder setLanguage( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.Language + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + language_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata.Language language = 8; + * + * + * @return This builder for chaining. + */ + public Builder clearLanguage() { + bitField0_ = (bitField0_ & ~0x00000001); + language_ = 0; + onChanged(); + return this; + } + + private java.lang.Object document_ = ""; + + /** + * + * + *
            +           * Document resource name.
            +           * 
            + * + * optional string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return Whether the document field is set. + */ + public boolean hasDocument() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +           * Document resource name.
            +           * 
            + * + * optional string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The document. + */ + public java.lang.String getDocument() { + java.lang.Object ref = document_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + document_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +           * Document resource name.
            +           * 
            + * + * optional string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for document. + */ + public com.google.protobuf.ByteString getDocumentBytes() { + java.lang.Object ref = document_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + document_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +           * Document resource name.
            +           * 
            + * + * optional string document = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The document to set. + * @return This builder for chaining. + */ + public Builder setDocument(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + document_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Document resource name.
            +           * 
            + * + * optional string document = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearDocument() { + document_ = getDefaultInstance().getDocument(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +           * Document resource name.
            +           * 
            + * + * optional string document = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for document to set. + * @return This builder for chaining. + */ + public Builder setDocumentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + document_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + + /** + * + * + *
            +           * URI for the document. It may contain a URL that redirects to the
            +           * actual website.
            +           * 
            + * + * optional string uri = 2; + * + * @return Whether the uri field is set. + */ + public boolean hasUri() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +           * URI for the document. It may contain a URL that redirects to the
            +           * actual website.
            +           * 
            + * + * optional 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 for the document. It may contain a URL that redirects to the
            +           * actual website.
            +           * 
            + * + * optional 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 for the document. It may contain a URL that redirects to the
            +           * actual website.
            +           * 
            + * + * optional 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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +           * URI for the document. It may contain a URL that redirects to the
            +           * actual website.
            +           * 
            + * + * optional string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +           * URI for the document. It may contain a URL that redirects to the
            +           * actual website.
            +           * 
            + * + * optional 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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
            +           * Title.
            +           * 
            + * + * optional string title = 3; + * + * @return Whether the title field is set. + */ + public boolean hasTitle() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +           * Title.
            +           * 
            + * + * optional string title = 3; + * + * @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.
            +           * 
            + * + * optional string title = 3; + * + * @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.
            +           * 
            + * + * optional string title = 3; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Title.
            +           * 
            + * + * optional string title = 3; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +           * Title.
            +           * 
            + * + * optional string title = 3; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object pageIdentifier_ = ""; + + /** + * + * + *
            +           * Page identifier.
            +           * 
            + * + * optional string page_identifier = 4; + * + * @return Whether the pageIdentifier field is set. + */ + public boolean hasPageIdentifier() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +           * Page identifier.
            +           * 
            + * + * optional string page_identifier = 4; + * + * @return The pageIdentifier. + */ + public java.lang.String getPageIdentifier() { + java.lang.Object ref = pageIdentifier_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageIdentifier_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +           * Page identifier.
            +           * 
            + * + * optional string page_identifier = 4; + * + * @return The bytes for pageIdentifier. + */ + public com.google.protobuf.ByteString getPageIdentifierBytes() { + java.lang.Object ref = pageIdentifier_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageIdentifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +           * Page identifier.
            +           * 
            + * + * optional string page_identifier = 4; + * + * @param value The pageIdentifier to set. + * @return This builder for chaining. + */ + public Builder setPageIdentifier(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageIdentifier_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Page identifier.
            +           * 
            + * + * optional string page_identifier = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageIdentifier() { + pageIdentifier_ = getDefaultInstance().getPageIdentifier(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +           * Page identifier.
            +           * 
            + * + * optional string page_identifier = 4; + * + * @param value The bytes for pageIdentifier to set. + * @return This builder for chaining. + */ + public Builder setPageIdentifierBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageIdentifier_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + + /** + * + * + *
            +           * Domain name from the document URI. Note that the `uri` field may
            +           * contain a URL that redirects to the actual website, in which case
            +           * this will contain the domain name of the target site.
            +           * 
            + * + * optional string domain = 5; + * + * @return Whether the domain field is set. + */ + public boolean hasDomain() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +           * Domain name from the document URI. Note that the `uri` field may
            +           * contain a URL that redirects to the actual website, in which case
            +           * this will contain the domain name of the target site.
            +           * 
            + * + * optional string domain = 5; + * + * @return The domain. + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +           * Domain name from the document URI. Note that the `uri` field may
            +           * contain a URL that redirects to the actual website, in which case
            +           * this will contain the domain name of the target site.
            +           * 
            + * + * optional string domain = 5; + * + * @return The bytes for domain. + */ + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +           * Domain name from the document URI. Note that the `uri` field may
            +           * contain a URL that redirects to the actual website, in which case
            +           * this will contain the domain name of the target site.
            +           * 
            + * + * optional string domain = 5; + * + * @param value The domain to set. + * @return This builder for chaining. + */ + public Builder setDomain(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + domain_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Domain name from the document URI. Note that the `uri` field may
            +           * contain a URL that redirects to the actual website, in which case
            +           * this will contain the domain name of the target site.
            +           * 
            + * + * optional string domain = 5; + * + * @return This builder for chaining. + */ + public Builder clearDomain() { + domain_ = getDefaultInstance().getDomain(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
            +           * Domain name from the document URI. Note that the `uri` field may
            +           * contain a URL that redirects to the actual website, in which case
            +           * this will contain the domain name of the target site.
            +           * 
            + * + * optional string domain = 5; + * + * @param value The bytes for domain to set. + * @return This builder for chaining. + */ + public Builder setDomainBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + domain_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object mimeType_ = ""; + + /** + * + * + *
            +           * The mime type of the document.
            +           * https://www.iana.org/assignments/media-types/media-types.xhtml.
            +           * 
            + * + * optional string mime_type = 7; + * + * @return Whether the mimeType field is set. + */ + public boolean hasMimeType() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +           * The mime type of the document.
            +           * https://www.iana.org/assignments/media-types/media-types.xhtml.
            +           * 
            + * + * optional string mime_type = 7; + * + * @return The mimeType. + */ + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +           * The mime type of the document.
            +           * https://www.iana.org/assignments/media-types/media-types.xhtml.
            +           * 
            + * + * optional string mime_type = 7; + * + * @return The bytes for mimeType. + */ + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +           * The mime type of the document.
            +           * https://www.iana.org/assignments/media-types/media-types.xhtml.
            +           * 
            + * + * optional string mime_type = 7; + * + * @param value The mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mimeType_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +           * The mime type of the document.
            +           * https://www.iana.org/assignments/media-types/media-types.xhtml.
            +           * 
            + * + * optional string mime_type = 7; + * + * @return This builder for chaining. + */ + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
            +           * The mime type of the document.
            +           * https://www.iana.org/assignments/media-types/media-types.xhtml.
            +           * 
            + * + * optional string mime_type = 7; + * + * @param value The bytes for mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata) + private static final com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.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.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int CONTENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; + + /** + * + * + *
            +       * Referenced text content.
            +       * 
            + * + * string content = 1; + * + * @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; + } + } + + /** + * + * + *
            +       * Referenced text content.
            +       * 
            + * + * string content = 1; + * + * @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 CODE_SNIPPET_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object codeSnippet_ = ""; + + /** + * + * + *
            +       * Chunk of code snippet from the referenced document.
            +       * 
            + * + * string code_snippet = 4; + * + * @return The codeSnippet. + */ + @java.lang.Override + public java.lang.String getCodeSnippet() { + java.lang.Object ref = codeSnippet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + codeSnippet_ = s; + return s; + } + } + + /** + * + * + *
            +       * Chunk of code snippet from the referenced document.
            +       * 
            + * + * string code_snippet = 4; + * + * @return The bytes for codeSnippet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCodeSnippetBytes() { + java.lang.Object ref = codeSnippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + codeSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DOCUMENT_METADATA_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata + documentMetadata_; + + /** + * + * + *
            +       * Document metadata.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + * + * @return Whether the documentMetadata field is set. + */ + @java.lang.Override + public boolean hasDocumentMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Document metadata.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + * + * @return The documentMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata + getDocumentMetadata() { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } + + /** + * + * + *
            +       * Document metadata.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder() { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.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; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, content_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getDocumentMetadata()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(codeSnippet_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, codeSnippet_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, content_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDocumentMetadata()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(codeSnippet_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, codeSnippet_); + } + 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.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference + other = + (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference) + obj; + + if (!getContent().equals(other.getContent())) return false; + if (!getCodeSnippet().equals(other.getCodeSnippet())) 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (37 * hash) + CODE_SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getCodeSnippet().hashCode(); + if (hasDocumentMetadata()) { + hash = (37 * hash) + DOCUMENT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getDocumentMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference + 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.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference + parseFrom( + 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.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Referenced content and related document metadata.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference) + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .ReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.class, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDocumentMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + content_ = ""; + codeSnippet_ = ""; + documentMetadata_ = null; + if (documentMetadataBuilder_ != null) { + documentMetadataBuilder_.dispose(); + documentMetadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_Reference_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference + build() { + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference + result = + new com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.content_ = content_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.codeSnippet_ = codeSnippet_; + } + 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 + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.getDefaultInstance()) return this; + if (!other.getContent().isEmpty()) { + content_ = other.content_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCodeSnippet().isEmpty()) { + codeSnippet_ = other.codeSnippet_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDocumentMetadata()) { + mergeDocumentMetadata(other.getDocumentMetadata()); + } + 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: + { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetDocumentMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 34: + { + codeSnippet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object content_ = ""; + + /** + * + * + *
            +         * Referenced text content.
            +         * 
            + * + * string content = 1; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Referenced text content.
            +         * 
            + * + * string content = 1; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof 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; + } + } + + /** + * + * + *
            +         * Referenced text content.
            +         * 
            + * + * string content = 1; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Referenced text content.
            +         * 
            + * + * string content = 1; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Referenced text content.
            +         * 
            + * + * string content = 1; + * + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object codeSnippet_ = ""; + + /** + * + * + *
            +         * Chunk of code snippet from the referenced document.
            +         * 
            + * + * string code_snippet = 4; + * + * @return The codeSnippet. + */ + public java.lang.String getCodeSnippet() { + java.lang.Object ref = codeSnippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + codeSnippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Chunk of code snippet from the referenced document.
            +         * 
            + * + * string code_snippet = 4; + * + * @return The bytes for codeSnippet. + */ + public com.google.protobuf.ByteString getCodeSnippetBytes() { + java.lang.Object ref = codeSnippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + codeSnippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Chunk of code snippet from the referenced document.
            +         * 
            + * + * string code_snippet = 4; + * + * @param value The codeSnippet to set. + * @return This builder for chaining. + */ + public Builder setCodeSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + codeSnippet_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Chunk of code snippet from the referenced document.
            +         * 
            + * + * string code_snippet = 4; + * + * @return This builder for chaining. + */ + public Builder clearCodeSnippet() { + codeSnippet_ = getDefaultInstance().getCodeSnippet(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Chunk of code snippet from the referenced document.
            +         * 
            + * + * string code_snippet = 4; + * + * @param value The bytes for codeSnippet to set. + * @return This builder for chaining. + */ + public Builder setCodeSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + codeSnippet_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + documentMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadataOrBuilder> + documentMetadataBuilder_; + + /** + * + * + *
            +         * Document metadata.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + * + * @return Whether the documentMetadata field is set. + */ + public boolean hasDocumentMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +         * Document metadata.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + * + * @return The documentMetadata. + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata + getDocumentMetadata() { + if (documentMetadataBuilder_ == null) { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } else { + return documentMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +         * Document metadata.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + */ + public Builder setDocumentMetadata( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata + value) { + if (documentMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + documentMetadata_ = value; + } else { + documentMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Document metadata.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + */ + public Builder setDocumentMetadata( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata.Builder + builderForValue) { + if (documentMetadataBuilder_ == null) { + documentMetadata_ = builderForValue.build(); + } else { + documentMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Document metadata.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + */ + public Builder mergeDocumentMetadata( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.DocumentMetadata + value) { + if (documentMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && documentMetadata_ != null + && documentMetadata_ + != com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.getDefaultInstance()) { + getDocumentMetadataBuilder().mergeFrom(value); + } else { + documentMetadata_ = value; + } + } else { + documentMetadataBuilder_.mergeFrom(value); + } + if (documentMetadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * Document metadata.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + */ + public Builder clearDocumentMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + documentMetadata_ = null; + if (documentMetadataBuilder_ != null) { + documentMetadataBuilder_.dispose(); + documentMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +         * Document metadata.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.Builder + getDocumentMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetDocumentMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Document metadata.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder() { + if (documentMetadataBuilder_ != null) { + return documentMetadataBuilder_.getMessageOrBuilder(); + } else { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } + } + + /** + * + * + *
            +         * Document metadata.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference.DocumentMetadata document_metadata = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadataOrBuilder> + internalGetDocumentMetadataFieldBuilder() { + if (documentMetadataBuilder_ == null) { + documentMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.DocumentMetadataOrBuilder>( + getDocumentMetadata(), getParentForChildren(), isClean()); + documentMetadata_ = null; + } + return documentMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference) + private static final com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference(); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Reference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int SEGMENTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment> + segments_; + + /** + * + * + *
            +     * Grounding information for parts of the text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment> + getSegmentsList() { + return segments_; + } + + /** + * + * + *
            +     * Grounding information for parts of the text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.SegmentOrBuilder> + getSegmentsOrBuilderList() { + return segments_; + } + + /** + * + * + *
            +     * Grounding information for parts of the text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + @java.lang.Override + public int getSegmentsCount() { + return segments_.size(); + } + + /** + * + * + *
            +     * Grounding information for parts of the text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment + getSegments(int index) { + return segments_.get(index); + } + + /** + * + * + *
            +     * Grounding information for parts of the text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .SegmentOrBuilder + getSegmentsOrBuilder(int index) { + return segments_.get(index); + } + + public static final int VISUAL_SEGMENTS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment> + visualSegments_; + + /** + * + * + *
            +     * Grounding information for parts of the visual content.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment> + getVisualSegmentsList() { + return visualSegments_; + } + + /** + * + * + *
            +     * Grounding information for parts of the visual content.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegmentOrBuilder> + getVisualSegmentsOrBuilderList() { + return visualSegments_; + } + + /** + * + * + *
            +     * Grounding information for parts of the visual content.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + @java.lang.Override + public int getVisualSegmentsCount() { + return visualSegments_.size(); + } + + /** + * + * + *
            +     * Grounding information for parts of the visual content.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + getVisualSegments(int index) { + return visualSegments_.get(index); + } + + /** + * + * + *
            +     * Grounding information for parts of the visual content.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegmentOrBuilder + getVisualSegmentsOrBuilder(int index) { + return visualSegments_.get(index); + } + + public static final int REFERENCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference> + references_; + + /** + * + * + *
            +     * References for the grounded text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference> + getReferencesList() { + return references_; + } + + /** + * + * + *
            +     * References for the grounded text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.ReferenceOrBuilder> + getReferencesOrBuilderList() { + return references_; + } + + /** + * + * + *
            +     * References for the grounded text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + @java.lang.Override + public int getReferencesCount() { + return references_.size(); + } + + /** + * + * + *
            +     * References for the grounded text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference + getReferences(int index) { + return references_.get(index); + } + + /** + * + * + *
            +     * References for the grounded text.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .ReferenceOrBuilder + getReferencesOrBuilder(int index) { + return references_.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 < references_.size(); i++) { + output.writeMessage(2, references_.get(i)); + } + for (int i = 0; i < segments_.size(); i++) { + output.writeMessage(4, segments_.get(i)); + } + for (int i = 0; i < visualSegments_.size(); i++) { + output.writeMessage(6, visualSegments_.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 < references_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, references_.get(i)); + } + for (int i = 0; i < segments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, segments_.get(i)); + } + for (int i = 0; i < visualSegments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, visualSegments_.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.v1beta.AssistantGroundedContent.TextGroundingMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata other = + (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata) + obj; + + if (!getSegmentsList().equals(other.getSegmentsList())) return false; + if (!getVisualSegmentsList().equals(other.getVisualSegmentsList())) return false; + if (!getReferencesList().equals(other.getReferencesList())) 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 (getSegmentsCount() > 0) { + hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getSegmentsList().hashCode(); + } + if (getVisualSegmentsCount() > 0) { + hash = (37 * hash) + VISUAL_SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getVisualSegmentsList().hashCode(); + } + if (getReferencesCount() > 0) { + hash = (37 * hash) + REFERENCES_FIELD_NUMBER; + hash = (53 * hash) + getReferencesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata + 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.v1beta.AssistantGroundedContent + .TextGroundingMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata + parseFrom( + 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.v1beta.AssistantGroundedContent + .TextGroundingMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Grounding details for text sources.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata) + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.class, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + } else { + segments_ = null; + segmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (visualSegmentsBuilder_ == null) { + visualSegments_ = java.util.Collections.emptyList(); + } else { + visualSegments_ = null; + visualSegmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (referencesBuilder_ == null) { + references_ = java.util.Collections.emptyList(); + } else { + references_ = null; + referencesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_TextGroundingMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + build() { + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + result = + new com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + result) { + if (segmentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.segments_ = segments_; + } else { + result.segments_ = segmentsBuilder_.build(); + } + if (visualSegmentsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + visualSegments_ = java.util.Collections.unmodifiableList(visualSegments_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.visualSegments_ = visualSegments_; + } else { + result.visualSegments_ = visualSegmentsBuilder_.build(); + } + if (referencesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + references_ = java.util.Collections.unmodifiableList(references_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.references_ = references_; + } else { + result.references_ = referencesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.getDefaultInstance()) return this; + if (segmentsBuilder_ == null) { + if (!other.segments_.isEmpty()) { + if (segments_.isEmpty()) { + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSegmentsIsMutable(); + segments_.addAll(other.segments_); + } + onChanged(); + } + } else { + if (!other.segments_.isEmpty()) { + if (segmentsBuilder_.isEmpty()) { + segmentsBuilder_.dispose(); + segmentsBuilder_ = null; + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000001); + segmentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSegmentsFieldBuilder() + : null; + } else { + segmentsBuilder_.addAllMessages(other.segments_); + } + } + } + if (visualSegmentsBuilder_ == null) { + if (!other.visualSegments_.isEmpty()) { + if (visualSegments_.isEmpty()) { + visualSegments_ = other.visualSegments_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureVisualSegmentsIsMutable(); + visualSegments_.addAll(other.visualSegments_); + } + onChanged(); + } + } else { + if (!other.visualSegments_.isEmpty()) { + if (visualSegmentsBuilder_.isEmpty()) { + visualSegmentsBuilder_.dispose(); + visualSegmentsBuilder_ = null; + visualSegments_ = other.visualSegments_; + bitField0_ = (bitField0_ & ~0x00000002); + visualSegmentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetVisualSegmentsFieldBuilder() + : null; + } else { + visualSegmentsBuilder_.addAllMessages(other.visualSegments_); + } + } + } + if (referencesBuilder_ == null) { + if (!other.references_.isEmpty()) { + if (references_.isEmpty()) { + references_ = other.references_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureReferencesIsMutable(); + references_.addAll(other.references_); + } + onChanged(); + } + } else { + if (!other.references_.isEmpty()) { + if (referencesBuilder_.isEmpty()) { + referencesBuilder_.dispose(); + referencesBuilder_ = null; + references_ = other.references_; + bitField0_ = (bitField0_ & ~0x00000004); + referencesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetReferencesFieldBuilder() + : null; + } else { + referencesBuilder_.addAllMessages(other.references_); + } + } + } + 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: + { + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.parser(), + extensionRegistry); + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.add(m); + } else { + referencesBuilder_.addMessage(m); + } + break; + } // case 18 + case 34: + { + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment.parser(), + extensionRegistry); + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(m); + } else { + segmentsBuilder_.addMessage(m); + } + break; + } // case 34 + case 50: + { + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment.parser(), + extensionRegistry); + if (visualSegmentsBuilder_ == null) { + ensureVisualSegmentsIsMutable(); + visualSegments_.add(m); + } else { + visualSegmentsBuilder_.addMessage(m); + } + 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.util.List< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment> + segments_ = java.util.Collections.emptyList(); + + private void ensureSegmentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + segments_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment>(segments_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .SegmentOrBuilder> + segmentsBuilder_; + + /** + * + * + *
            +       * Grounding information for parts of the text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment> + getSegmentsList() { + if (segmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(segments_); + } else { + return segmentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +       * Grounding information for parts of the text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public int getSegmentsCount() { + if (segmentsBuilder_ == null) { + return segments_.size(); + } else { + return segmentsBuilder_.getCount(); + } + } + + /** + * + * + *
            +       * Grounding information for parts of the text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment + getSegments(int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); + } else { + return segmentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +       * Grounding information for parts of the text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public Builder setSegments( + int index, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment + value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.set(index, value); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Grounding information for parts of the text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public Builder setSegments( + int index, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment.Builder + builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.set(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Grounding information for parts of the text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public Builder addSegments( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment + value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(value); + onChanged(); + } else { + segmentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +       * Grounding information for parts of the text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public Builder addSegments( + int index, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment + value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(index, value); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Grounding information for parts of the text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public Builder addSegments( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment.Builder + builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Grounding information for parts of the text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public Builder addSegments( + int index, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment.Builder + builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Grounding information for parts of the text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public Builder addAllSegments( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment> + values) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, segments_); + onChanged(); + } else { + segmentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * Grounding information for parts of the text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public Builder clearSegments() { + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + segmentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Grounding information for parts of the text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public Builder removeSegments(int index) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.remove(index); + onChanged(); + } else { + segmentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * Grounding information for parts of the text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment.Builder + getSegmentsBuilder(int index) { + return internalGetSegmentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * Grounding information for parts of the text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .SegmentOrBuilder + getSegmentsOrBuilder(int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); + } else { + return segmentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * Grounding information for parts of the text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.SegmentOrBuilder> + getSegmentsOrBuilderList() { + if (segmentsBuilder_ != null) { + return segmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(segments_); + } + } + + /** + * + * + *
            +       * Grounding information for parts of the text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment.Builder + addSegmentsBuilder() { + return internalGetSegmentsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment.getDefaultInstance()); + } + + /** + * + * + *
            +       * Grounding information for parts of the text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment.Builder + addSegmentsBuilder(int index) { + return internalGetSegmentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment.getDefaultInstance()); + } + + /** + * + * + *
            +       * Grounding information for parts of the text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Segment segments = 4; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment.Builder> + getSegmentsBuilderList() { + return internalGetSegmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Segment.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .SegmentOrBuilder> + internalGetSegmentsFieldBuilder() { + if (segmentsBuilder_ == null) { + segmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Segment.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.SegmentOrBuilder>( + segments_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + segments_ = null; + } + return segmentsBuilder_; + } + + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment> + visualSegments_ = java.util.Collections.emptyList(); + + private void ensureVisualSegmentsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + visualSegments_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment>(visualSegments_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegmentOrBuilder> + visualSegmentsBuilder_; + + /** + * + * + *
            +       * Grounding information for parts of the visual content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment> + getVisualSegmentsList() { + if (visualSegmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(visualSegments_); + } else { + return visualSegmentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +       * Grounding information for parts of the visual content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + public int getVisualSegmentsCount() { + if (visualSegmentsBuilder_ == null) { + return visualSegments_.size(); + } else { + return visualSegmentsBuilder_.getCount(); + } + } + + /** + * + * + *
            +       * Grounding information for parts of the visual content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + getVisualSegments(int index) { + if (visualSegmentsBuilder_ == null) { + return visualSegments_.get(index); + } else { + return visualSegmentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +       * Grounding information for parts of the visual content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + public Builder setVisualSegments( + int index, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + value) { + if (visualSegmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVisualSegmentsIsMutable(); + visualSegments_.set(index, value); + onChanged(); + } else { + visualSegmentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Grounding information for parts of the visual content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + public Builder setVisualSegments( + int index, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment.Builder + builderForValue) { + if (visualSegmentsBuilder_ == null) { + ensureVisualSegmentsIsMutable(); + visualSegments_.set(index, builderForValue.build()); + onChanged(); + } else { + visualSegmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Grounding information for parts of the visual content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + public Builder addVisualSegments( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + value) { + if (visualSegmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVisualSegmentsIsMutable(); + visualSegments_.add(value); + onChanged(); + } else { + visualSegmentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +       * Grounding information for parts of the visual content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + public Builder addVisualSegments( + int index, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment + value) { + if (visualSegmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVisualSegmentsIsMutable(); + visualSegments_.add(index, value); + onChanged(); + } else { + visualSegmentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Grounding information for parts of the visual content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + public Builder addVisualSegments( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment.Builder + builderForValue) { + if (visualSegmentsBuilder_ == null) { + ensureVisualSegmentsIsMutable(); + visualSegments_.add(builderForValue.build()); + onChanged(); + } else { + visualSegmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Grounding information for parts of the visual content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + public Builder addVisualSegments( + int index, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment.Builder + builderForValue) { + if (visualSegmentsBuilder_ == null) { + ensureVisualSegmentsIsMutable(); + visualSegments_.add(index, builderForValue.build()); + onChanged(); + } else { + visualSegmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Grounding information for parts of the visual content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + public Builder addAllVisualSegments( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment> + values) { + if (visualSegmentsBuilder_ == null) { + ensureVisualSegmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, visualSegments_); + onChanged(); + } else { + visualSegmentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * Grounding information for parts of the visual content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + public Builder clearVisualSegments() { + if (visualSegmentsBuilder_ == null) { + visualSegments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + visualSegmentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Grounding information for parts of the visual content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + public Builder removeVisualSegments(int index) { + if (visualSegmentsBuilder_ == null) { + ensureVisualSegmentsIsMutable(); + visualSegments_.remove(index); + onChanged(); + } else { + visualSegmentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * Grounding information for parts of the visual content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment.Builder + getVisualSegmentsBuilder(int index) { + return internalGetVisualSegmentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * Grounding information for parts of the visual content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegmentOrBuilder + getVisualSegmentsOrBuilder(int index) { + if (visualSegmentsBuilder_ == null) { + return visualSegments_.get(index); + } else { + return visualSegmentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * Grounding information for parts of the visual content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegmentOrBuilder> + getVisualSegmentsOrBuilderList() { + if (visualSegmentsBuilder_ != null) { + return visualSegmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(visualSegments_); + } + } + + /** + * + * + *
            +       * Grounding information for parts of the visual content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment.Builder + addVisualSegmentsBuilder() { + return internalGetVisualSegmentsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment.getDefaultInstance()); + } + + /** + * + * + *
            +       * Grounding information for parts of the visual content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment.Builder + addVisualSegmentsBuilder(int index) { + return internalGetVisualSegmentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment.getDefaultInstance()); + } + + /** + * + * + *
            +       * Grounding information for parts of the visual content.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.VisualSegment visual_segments = 6; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment.Builder> + getVisualSegmentsBuilderList() { + return internalGetVisualSegmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegment.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .VisualSegmentOrBuilder> + internalGetVisualSegmentsFieldBuilder() { + if (visualSegmentsBuilder_ == null) { + visualSegmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegment.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.VisualSegmentOrBuilder>( + visualSegments_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + visualSegments_ = null; + } + return visualSegmentsBuilder_; + } + + private java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference> + references_ = java.util.Collections.emptyList(); + + private void ensureReferencesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + references_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference>(references_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .ReferenceOrBuilder> + referencesBuilder_; + + /** + * + * + *
            +       * References for the grounded text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference> + getReferencesList() { + if (referencesBuilder_ == null) { + return java.util.Collections.unmodifiableList(references_); + } else { + return referencesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +       * References for the grounded text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + public int getReferencesCount() { + if (referencesBuilder_ == null) { + return references_.size(); + } else { + return referencesBuilder_.getCount(); + } + } + + /** + * + * + *
            +       * References for the grounded text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference + getReferences(int index) { + if (referencesBuilder_ == null) { + return references_.get(index); + } else { + return referencesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +       * References for the grounded text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + public Builder setReferences( + int index, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference + value) { + if (referencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReferencesIsMutable(); + references_.set(index, value); + onChanged(); + } else { + referencesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * References for the grounded text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + public Builder setReferences( + int index, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.Builder + builderForValue) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.set(index, builderForValue.build()); + onChanged(); + } else { + referencesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * References for the grounded text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + public Builder addReferences( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference + value) { + if (referencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReferencesIsMutable(); + references_.add(value); + onChanged(); + } else { + referencesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +       * References for the grounded text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + public Builder addReferences( + int index, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference + value) { + if (referencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReferencesIsMutable(); + references_.add(index, value); + onChanged(); + } else { + referencesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * References for the grounded text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + public Builder addReferences( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.Builder + builderForValue) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.add(builderForValue.build()); + onChanged(); + } else { + referencesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * References for the grounded text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + public Builder addReferences( + int index, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.Builder + builderForValue) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.add(index, builderForValue.build()); + onChanged(); + } else { + referencesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * References for the grounded text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + public Builder addAllReferences( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference> + values) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, references_); + onChanged(); + } else { + referencesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * References for the grounded text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + public Builder clearReferences() { + if (referencesBuilder_ == null) { + references_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + referencesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * References for the grounded text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + public Builder removeReferences(int index) { + if (referencesBuilder_ == null) { + ensureReferencesIsMutable(); + references_.remove(index); + onChanged(); + } else { + referencesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * References for the grounded text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.Builder + getReferencesBuilder(int index) { + return internalGetReferencesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * References for the grounded text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .ReferenceOrBuilder + getReferencesOrBuilder(int index) { + if (referencesBuilder_ == null) { + return references_.get(index); + } else { + return referencesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * References for the grounded text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.ReferenceOrBuilder> + getReferencesOrBuilderList() { + if (referencesBuilder_ != null) { + return referencesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(references_); + } + } + + /** + * + * + *
            +       * References for the grounded text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.Builder + addReferencesBuilder() { + return internalGetReferencesFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.getDefaultInstance()); + } + + /** + * + * + *
            +       * References for the grounded text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.Builder + addReferencesBuilder(int index) { + return internalGetReferencesFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.getDefaultInstance()); + } + + /** + * + * + *
            +       * References for the grounded text.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata.Reference references = 2; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.Builder> + getReferencesBuilderList() { + return internalGetReferencesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Reference.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .ReferenceOrBuilder> + internalGetReferencesFieldBuilder() { + if (referencesBuilder_ == null) { + referencesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Reference.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.ReferenceOrBuilder>( + references_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + references_ = null; + } + return referencesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata) + private static final com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextGroundingMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AssistantGroundedContent.TextGroundingMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int metadataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object metadata_; + + public enum MetadataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT_GROUNDING_METADATA(3), + METADATA_NOT_SET(0); + private final int value; + + private MetadataCase(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 MetadataCase valueOf(int value) { + return forNumber(value); + } + + public static MetadataCase forNumber(int value) { + switch (value) { + case 3: + return TEXT_GROUNDING_METADATA; + case 0: + return METADATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public MetadataCase getMetadataCase() { + return MetadataCase.forNumber(metadataCase_); + } + + public static final int TEXT_GROUNDING_METADATA_FIELD_NUMBER = 3; + + /** + * + * + *
            +   * Metadata for grounding based on text sources.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata text_grounding_metadata = 3; + * + * + * @return Whether the textGroundingMetadata field is set. + */ + @java.lang.Override + public boolean hasTextGroundingMetadata() { + return metadataCase_ == 3; + } + + /** + * + * + *
            +   * Metadata for grounding based on text sources.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata text_grounding_metadata = 3; + * + * + * @return The textGroundingMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + getTextGroundingMetadata() { + if (metadataCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata) + metadata_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .getDefaultInstance(); + } + + /** + * + * + *
            +   * Metadata for grounding based on text sources.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata text_grounding_metadata = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadataOrBuilder + getTextGroundingMetadataOrBuilder() { + if (metadataCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata) + metadata_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .getDefaultInstance(); + } + + public static final int CONTENT_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.AssistantContent content_; + + /** + * + * + *
            +   * The content.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent content = 1; + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * The content.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent content = 1; + * + * @return The content. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContent getContent() { + return content_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistantContent.getDefaultInstance() + : content_; + } + + /** + * + * + *
            +   * The content.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent content = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantContentOrBuilder getContentOrBuilder() { + return content_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistantContent.getDefaultInstance() + : content_; + } + + public static final int CITATION_METADATA_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1beta.CitationMetadata citationMetadata_; + + /** + * + * + *
            +   * Source attribution of the generated content. See also
            +   * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.CitationMetadata citation_metadata = 5; + * + * @return Whether the citationMetadata field is set. + */ + @java.lang.Override + public boolean hasCitationMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Source attribution of the generated content. See also
            +   * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.CitationMetadata citation_metadata = 5; + * + * @return The citationMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CitationMetadata getCitationMetadata() { + return citationMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.CitationMetadata.getDefaultInstance() + : citationMetadata_; + } + + /** + * + * + *
            +   * Source attribution of the generated content. See also
            +   * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.CitationMetadata citation_metadata = 5; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CitationMetadataOrBuilder + getCitationMetadataOrBuilder() { + return citationMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.CitationMetadata.getDefaultInstance() + : citationMetadata_; + } + + 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, getContent()); + } + if (metadataCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata) + metadata_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getCitationMetadata()); + } + 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, getContent()); + } + if (metadataCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata) + metadata_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCitationMetadata()); + } + 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.v1beta.AssistantGroundedContent)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent other = + (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent) obj; + + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent().equals(other.getContent())) return false; + } + if (hasCitationMetadata() != other.hasCitationMetadata()) return false; + if (hasCitationMetadata()) { + if (!getCitationMetadata().equals(other.getCitationMetadata())) return false; + } + if (!getMetadataCase().equals(other.getMetadataCase())) return false; + switch (metadataCase_) { + case 3: + if (!getTextGroundingMetadata().equals(other.getTextGroundingMetadata())) 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(); + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + if (hasCitationMetadata()) { + hash = (37 * hash) + CITATION_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getCitationMetadata().hashCode(); + } + switch (metadataCase_) { + case 3: + hash = (37 * hash) + TEXT_GROUNDING_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getTextGroundingMetadata().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent 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.v1beta.AssistantGroundedContent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent parseFrom( + 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.v1beta.AssistantGroundedContent parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * A piece of content and possibly its grounding information.
            +   *
            +   * Not all content needs grounding. Phrases like "Of course, I will gladly
            +   * search it for you." do not need grounding.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.AssistantGroundedContent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.AssistantGroundedContent) + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.class, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetContentFieldBuilder(); + internalGetCitationMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (textGroundingMetadataBuilder_ != null) { + textGroundingMetadataBuilder_.clear(); + } + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + citationMetadata_ = null; + if (citationMetadataBuilder_ != null) { + citationMetadataBuilder_.dispose(); + citationMetadataBuilder_ = null; + } + metadataCase_ = 0; + metadata_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistAnswerProto + .internal_static_google_cloud_discoveryengine_v1beta_AssistantGroundedContent_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent build() { + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent buildPartial() { + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent result = + new com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent result) { + int from_bitField0_ = bitField0_; + 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.citationMetadata_ = + citationMetadataBuilder_ == null ? citationMetadata_ : citationMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent result) { + result.metadataCase_ = metadataCase_; + result.metadata_ = this.metadata_; + if (metadataCase_ == 3 && textGroundingMetadataBuilder_ != null) { + result.metadata_ = textGroundingMetadataBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent other) { + if (other + == com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.getDefaultInstance()) + return this; + if (other.hasContent()) { + mergeContent(other.getContent()); + } + if (other.hasCitationMetadata()) { + mergeCitationMetadata(other.getCitationMetadata()); + } + switch (other.getMetadataCase()) { + case TEXT_GROUNDING_METADATA: + { + mergeTextGroundingMetadata(other.getTextGroundingMetadata()); + break; + } + case METADATA_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(internalGetContentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 26: + { + input.readMessage( + internalGetTextGroundingMetadataFieldBuilder().getBuilder(), extensionRegistry); + metadataCase_ = 3; + break; + } // case 26 + case 42: + { + input.readMessage( + internalGetCitationMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + 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 metadataCase_ = 0; + private java.lang.Object metadata_; + + public MetadataCase getMetadataCase() { + return MetadataCase.forNumber(metadataCase_); + } + + public Builder clearMetadata() { + metadataCase_ = 0; + metadata_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Builder, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadataOrBuilder> + textGroundingMetadataBuilder_; + + /** + * + * + *
            +     * Metadata for grounding based on text sources.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata text_grounding_metadata = 3; + * + * + * @return Whether the textGroundingMetadata field is set. + */ + @java.lang.Override + public boolean hasTextGroundingMetadata() { + return metadataCase_ == 3; + } + + /** + * + * + *
            +     * Metadata for grounding based on text sources.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata text_grounding_metadata = 3; + * + * + * @return The textGroundingMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + getTextGroundingMetadata() { + if (textGroundingMetadataBuilder_ == null) { + if (metadataCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata) + metadata_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.getDefaultInstance(); + } else { + if (metadataCase_ == 3) { + return textGroundingMetadataBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Metadata for grounding based on text sources.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata text_grounding_metadata = 3; + * + */ + public Builder setTextGroundingMetadata( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + value) { + if (textGroundingMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + textGroundingMetadataBuilder_.setMessage(value); + } + metadataCase_ = 3; + return this; + } + + /** + * + * + *
            +     * Metadata for grounding based on text sources.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata text_grounding_metadata = 3; + * + */ + public Builder setTextGroundingMetadata( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Builder + builderForValue) { + if (textGroundingMetadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + textGroundingMetadataBuilder_.setMessage(builderForValue.build()); + } + metadataCase_ = 3; + return this; + } + + /** + * + * + *
            +     * Metadata for grounding based on text sources.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata text_grounding_metadata = 3; + * + */ + public Builder mergeTextGroundingMetadata( + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + value) { + if (textGroundingMetadataBuilder_ == null) { + if (metadataCase_ == 3 + && metadata_ + != com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.getDefaultInstance()) { + metadata_ = + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .newBuilder( + (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata) + metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + if (metadataCase_ == 3) { + textGroundingMetadataBuilder_.mergeFrom(value); + } else { + textGroundingMetadataBuilder_.setMessage(value); + } + } + metadataCase_ = 3; + return this; + } + + /** + * + * + *
            +     * Metadata for grounding based on text sources.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata text_grounding_metadata = 3; + * + */ + public Builder clearTextGroundingMetadata() { + if (textGroundingMetadataBuilder_ == null) { + if (metadataCase_ == 3) { + metadataCase_ = 0; + metadata_ = null; + onChanged(); + } + } else { + if (metadataCase_ == 3) { + metadataCase_ = 0; + metadata_ = null; + } + textGroundingMetadataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Metadata for grounding based on text sources.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata text_grounding_metadata = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Builder + getTextGroundingMetadataBuilder() { + return internalGetTextGroundingMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Metadata for grounding based on text sources.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata text_grounding_metadata = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadataOrBuilder + getTextGroundingMetadataOrBuilder() { + if ((metadataCase_ == 3) && (textGroundingMetadataBuilder_ != null)) { + return textGroundingMetadataBuilder_.getMessageOrBuilder(); + } else { + if (metadataCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata) + metadata_; + } + return com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Metadata for grounding based on text sources.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata text_grounding_metadata = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .Builder, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadataOrBuilder> + internalGetTextGroundingMetadataFieldBuilder() { + if (textGroundingMetadataBuilder_ == null) { + if (!(metadataCase_ == 3)) { + metadata_ = + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + .getDefaultInstance(); + } + textGroundingMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadataOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + .TextGroundingMetadata) + metadata_, + getParentForChildren(), + isClean()); + metadata_ = null; + } + metadataCase_ = 3; + onChanged(); + return textGroundingMetadataBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.AssistantContent content_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantContent, + com.google.cloud.discoveryengine.v1beta.AssistantContent.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantContentOrBuilder> + contentBuilder_; + + /** + * + * + *
            +     * The content.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent content = 1; + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * The content.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent content = 1; + * + * @return The content. + */ + public com.google.cloud.discoveryengine.v1beta.AssistantContent getContent() { + if (contentBuilder_ == null) { + return content_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistantContent.getDefaultInstance() + : content_; + } else { + return contentBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * The content.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent content = 1; + */ + public Builder setContent(com.google.cloud.discoveryengine.v1beta.AssistantContent value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + } else { + contentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The content.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent content = 1; + */ + public Builder setContent( + com.google.cloud.discoveryengine.v1beta.AssistantContent.Builder builderForValue) { + if (contentBuilder_ == null) { + content_ = builderForValue.build(); + } else { + contentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The content.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent content = 1; + */ + public Builder mergeContent(com.google.cloud.discoveryengine.v1beta.AssistantContent value) { + if (contentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && content_ != null + && content_ + != com.google.cloud.discoveryengine.v1beta.AssistantContent.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); + } else { + content_ = value; + } + } else { + contentBuilder_.mergeFrom(value); + } + if (content_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * The content.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent content = 1; + */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000002); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * The content.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent content = 1; + */ + public com.google.cloud.discoveryengine.v1beta.AssistantContent.Builder getContentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetContentFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * The content.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent content = 1; + */ + public com.google.cloud.discoveryengine.v1beta.AssistantContentOrBuilder getContentOrBuilder() { + if (contentBuilder_ != null) { + return contentBuilder_.getMessageOrBuilder(); + } else { + return content_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistantContent.getDefaultInstance() + : content_; + } + } + + /** + * + * + *
            +     * The content.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent content = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantContent, + com.google.cloud.discoveryengine.v1beta.AssistantContent.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantContentOrBuilder> + internalGetContentFieldBuilder() { + if (contentBuilder_ == null) { + contentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistantContent, + com.google.cloud.discoveryengine.v1beta.AssistantContent.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantContentOrBuilder>( + getContent(), getParentForChildren(), isClean()); + content_ = null; + } + return contentBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.CitationMetadata citationMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.CitationMetadata, + com.google.cloud.discoveryengine.v1beta.CitationMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.CitationMetadataOrBuilder> + citationMetadataBuilder_; + + /** + * + * + *
            +     * Source attribution of the generated content. See also
            +     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.CitationMetadata citation_metadata = 5; + * + * @return Whether the citationMetadata field is set. + */ + public boolean hasCitationMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Source attribution of the generated content. See also
            +     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.CitationMetadata citation_metadata = 5; + * + * @return The citationMetadata. + */ + public com.google.cloud.discoveryengine.v1beta.CitationMetadata getCitationMetadata() { + if (citationMetadataBuilder_ == null) { + return citationMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.CitationMetadata.getDefaultInstance() + : citationMetadata_; + } else { + return citationMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Source attribution of the generated content. See also
            +     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.CitationMetadata citation_metadata = 5; + */ + public Builder setCitationMetadata( + com.google.cloud.discoveryengine.v1beta.CitationMetadata value) { + if (citationMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + citationMetadata_ = value; + } else { + citationMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Source attribution of the generated content. See also
            +     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.CitationMetadata citation_metadata = 5; + */ + public Builder setCitationMetadata( + com.google.cloud.discoveryengine.v1beta.CitationMetadata.Builder builderForValue) { + if (citationMetadataBuilder_ == null) { + citationMetadata_ = builderForValue.build(); + } else { + citationMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Source attribution of the generated content. See also
            +     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.CitationMetadata citation_metadata = 5; + */ + public Builder mergeCitationMetadata( + com.google.cloud.discoveryengine.v1beta.CitationMetadata value) { + if (citationMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && citationMetadata_ != null + && citationMetadata_ + != com.google.cloud.discoveryengine.v1beta.CitationMetadata.getDefaultInstance()) { + getCitationMetadataBuilder().mergeFrom(value); + } else { + citationMetadata_ = value; + } + } else { + citationMetadataBuilder_.mergeFrom(value); + } + if (citationMetadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Source attribution of the generated content. See also
            +     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.CitationMetadata citation_metadata = 5; + */ + public Builder clearCitationMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + citationMetadata_ = null; + if (citationMetadataBuilder_ != null) { + citationMetadataBuilder_.dispose(); + citationMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Source attribution of the generated content. See also
            +     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.CitationMetadata citation_metadata = 5; + */ + public com.google.cloud.discoveryengine.v1beta.CitationMetadata.Builder + getCitationMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCitationMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Source attribution of the generated content. See also
            +     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.CitationMetadata citation_metadata = 5; + */ + public com.google.cloud.discoveryengine.v1beta.CitationMetadataOrBuilder + getCitationMetadataOrBuilder() { + if (citationMetadataBuilder_ != null) { + return citationMetadataBuilder_.getMessageOrBuilder(); + } else { + return citationMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.CitationMetadata.getDefaultInstance() + : citationMetadata_; + } + } + + /** + * + * + *
            +     * Source attribution of the generated content. See also
            +     * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.CitationMetadata citation_metadata = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.CitationMetadata, + com.google.cloud.discoveryengine.v1beta.CitationMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.CitationMetadataOrBuilder> + internalGetCitationMetadataFieldBuilder() { + if (citationMetadataBuilder_ == null) { + citationMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.CitationMetadata, + com.google.cloud.discoveryengine.v1beta.CitationMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.CitationMetadataOrBuilder>( + getCitationMetadata(), getParentForChildren(), isClean()); + citationMetadata_ = null; + } + return citationMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.AssistantGroundedContent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.AssistantGroundedContent) + private static final com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent(); + } + + public static com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistantGroundedContent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.AssistantGroundedContent + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantGroundedContentOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantGroundedContentOrBuilder.java new file mode 100644 index 000000000000..54f2d0cd51e2 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantGroundedContentOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assist_answer.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface AssistantGroundedContentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.AssistantGroundedContent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Metadata for grounding based on text sources.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata text_grounding_metadata = 3; + * + * + * @return Whether the textGroundingMetadata field is set. + */ + boolean hasTextGroundingMetadata(); + + /** + * + * + *
            +   * Metadata for grounding based on text sources.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata text_grounding_metadata = 3; + * + * + * @return The textGroundingMetadata. + */ + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata + getTextGroundingMetadata(); + + /** + * + * + *
            +   * Metadata for grounding based on text sources.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadata text_grounding_metadata = 3; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.TextGroundingMetadataOrBuilder + getTextGroundingMetadataOrBuilder(); + + /** + * + * + *
            +   * The content.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent content = 1; + * + * @return Whether the content field is set. + */ + boolean hasContent(); + + /** + * + * + *
            +   * The content.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent content = 1; + * + * @return The content. + */ + com.google.cloud.discoveryengine.v1beta.AssistantContent getContent(); + + /** + * + * + *
            +   * The content.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistantContent content = 1; + */ + com.google.cloud.discoveryengine.v1beta.AssistantContentOrBuilder getContentOrBuilder(); + + /** + * + * + *
            +   * Source attribution of the generated content. See also
            +   * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.CitationMetadata citation_metadata = 5; + * + * @return Whether the citationMetadata field is set. + */ + boolean hasCitationMetadata(); + + /** + * + * + *
            +   * Source attribution of the generated content. See also
            +   * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.CitationMetadata citation_metadata = 5; + * + * @return The citationMetadata. + */ + com.google.cloud.discoveryengine.v1beta.CitationMetadata getCitationMetadata(); + + /** + * + * + *
            +   * Source attribution of the generated content. See also
            +   * https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.CitationMetadata citation_metadata = 5; + */ + com.google.cloud.discoveryengine.v1beta.CitationMetadataOrBuilder getCitationMetadataOrBuilder(); + + com.google.cloud.discoveryengine.v1beta.AssistantGroundedContent.MetadataCase getMetadataCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantName.java new file mode 100644 index 000000000000..b44addd41341 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantName.java @@ -0,0 +1,298 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +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 AssistantName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_COLLECTION_ENGINE_ASSISTANT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String collection; + private final String engine; + private final String assistant; + + @Deprecated + protected AssistantName() { + project = null; + location = null; + collection = null; + engine = null; + assistant = null; + } + + private AssistantName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + collection = Preconditions.checkNotNull(builder.getCollection()); + engine = Preconditions.checkNotNull(builder.getEngine()); + assistant = Preconditions.checkNotNull(builder.getAssistant()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public String getEngine() { + return engine; + } + + public String getAssistant() { + return assistant; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AssistantName of( + String project, String location, String collection, String engine, String assistant) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setEngine(engine) + .setAssistant(assistant) + .build(); + } + + public static String format( + String project, String location, String collection, String engine, String assistant) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setEngine(engine) + .setAssistant(assistant) + .build() + .toString(); + } + + public static AssistantName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_COLLECTION_ENGINE_ASSISTANT.validatedMatch( + formattedString, "AssistantName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("collection"), + matchMap.get("engine"), + matchMap.get("assistant")); + } + + 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 (AssistantName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_COLLECTION_ENGINE_ASSISTANT.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 (collection != null) { + fieldMapBuilder.put("collection", collection); + } + if (engine != null) { + fieldMapBuilder.put("engine", engine); + } + if (assistant != null) { + fieldMapBuilder.put("assistant", assistant); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_COLLECTION_ENGINE_ASSISTANT.instantiate( + "project", + project, + "location", + location, + "collection", + collection, + "engine", + engine, + "assistant", + assistant); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AssistantName that = ((AssistantName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.collection, that.collection) + && Objects.equals(this.engine, that.engine) + && Objects.equals(this.assistant, that.assistant); + } + 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(collection); + h *= 1000003; + h ^= Objects.hashCode(engine); + h *= 1000003; + h ^= Objects.hashCode(assistant); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}. + */ + public static class Builder { + private String project; + private String location; + private String collection; + private String engine; + private String assistant; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public String getEngine() { + return engine; + } + + public String getAssistant() { + return assistant; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setCollection(String collection) { + this.collection = collection; + return this; + } + + public Builder setEngine(String engine) { + this.engine = engine; + return this; + } + + public Builder setAssistant(String assistant) { + this.assistant = assistant; + return this; + } + + private Builder(AssistantName assistantName) { + this.project = assistantName.project; + this.location = assistantName.location; + this.collection = assistantName.collection; + this.engine = assistantName.engine; + this.assistant = assistantName.assistant; + } + + public AssistantName build() { + return new AssistantName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantOrBuilder.java new file mode 100644 index 000000000000..075156a13347 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantOrBuilder.java @@ -0,0 +1,468 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface AssistantOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Assistant) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Immutable. Resource name of the assistant.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   *
            +   * It 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.String getName(); + + /** + * + * + *
            +   * Immutable. Resource name of the assistant.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   *
            +   * It 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. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Required. The assistant display name.
            +   *
            +   * It must be a UTF-8 encoded string with a length limit of 128 characters.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
            +   * Required. The assistant display name.
            +   *
            +   * It must be a UTF-8 encoded string with a length limit of 128 characters.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
            +   * Optional. Description for additional information. Expected to be shown on
            +   * the configuration UI, not to the users of the assistant.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
            +   * Optional. Description for additional information. Expected to be shown on
            +   * the configuration UI, not to the users of the assistant.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
            +   * Optional. Configuration for the generation of the assistant response.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationConfig field is set. + */ + boolean hasGenerationConfig(); + + /** + * + * + *
            +   * Optional. Configuration for the generation of the assistant response.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationConfig. + */ + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig getGenerationConfig(); + + /** + * + * + *
            +   * Optional. Configuration for the generation of the assistant response.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.GenerationConfig generation_config = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Assistant.GenerationConfigOrBuilder + getGenerationConfigOrBuilder(); + + /** + * + * + *
            +   * Optional. The type of web grounding to use.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for webGroundingType. + */ + int getWebGroundingTypeValue(); + + /** + * + * + *
            +   * Optional. The type of web grounding to use.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType web_grounding_type = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The webGroundingType. + */ + com.google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType getWebGroundingType(); + + /** + * + * + *
            +   * Optional. This field controls the default web grounding toggle for end
            +   * users if `web_grounding_type` is set to `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
            +   * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`. By default, this field is
            +   * set to false. If `web_grounding_type` is `WEB_GROUNDING_TYPE_GOOGLE_SEARCH`
            +   * or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web
            +   * grounding enabled by default on UI. If true, grounding toggle will be
            +   * disabled by default on UI. End users can still enable web grounding in
            +   * the UI if web grounding is enabled.
            +   * 
            + * + * bool default_web_grounding_toggle_off = 22 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The defaultWebGroundingToggleOff. + */ + boolean getDefaultWebGroundingToggleOff(); + + /** + * + * + *
            +   * Optional. Note: not implemented yet. Use
            +   * [enabled_actions][google.cloud.discoveryengine.v1beta.Assistant.enabled_actions]
            +   * instead. The enabled tools on this assistant. The keys are connector name,
            +   * for example
            +   * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
            +   * The values consist of admin enabled tools towards the connector
            +   * instance. Admin can selectively enable multiple tools on any of the
            +   * connector instances that they created in the project. For example
            +   * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
            +   * "transferTicket")],
            +   * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getEnabledToolsCount(); + + /** + * + * + *
            +   * Optional. Note: not implemented yet. Use
            +   * [enabled_actions][google.cloud.discoveryengine.v1beta.Assistant.enabled_actions]
            +   * instead. The enabled tools on this assistant. The keys are connector name,
            +   * for example
            +   * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
            +   * The values consist of admin enabled tools towards the connector
            +   * instance. Admin can selectively enable multiple tools on any of the
            +   * connector instances that they created in the project. For example
            +   * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
            +   * "transferTicket")],
            +   * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsEnabledTools(java.lang.String key); + + /** Use {@link #getEnabledToolsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getEnabledTools(); + + /** + * + * + *
            +   * Optional. Note: not implemented yet. Use
            +   * [enabled_actions][google.cloud.discoveryengine.v1beta.Assistant.enabled_actions]
            +   * instead. The enabled tools on this assistant. The keys are connector name,
            +   * for example
            +   * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
            +   * The values consist of admin enabled tools towards the connector
            +   * instance. Admin can selectively enable multiple tools on any of the
            +   * connector instances that they created in the project. For example
            +   * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
            +   * "transferTicket")],
            +   * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map + getEnabledToolsMap(); + + /** + * + * + *
            +   * Optional. Note: not implemented yet. Use
            +   * [enabled_actions][google.cloud.discoveryengine.v1beta.Assistant.enabled_actions]
            +   * instead. The enabled tools on this assistant. The keys are connector name,
            +   * for example
            +   * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
            +   * The values consist of admin enabled tools towards the connector
            +   * instance. Admin can selectively enable multiple tools on any of the
            +   * connector instances that they created in the project. For example
            +   * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
            +   * "transferTicket")],
            +   * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList getEnabledToolsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList defaultValue); + + /** + * + * + *
            +   * Optional. Note: not implemented yet. Use
            +   * [enabled_actions][google.cloud.discoveryengine.v1beta.Assistant.enabled_actions]
            +   * instead. The enabled tools on this assistant. The keys are connector name,
            +   * for example
            +   * "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector
            +   * The values consist of admin enabled tools towards the connector
            +   * instance. Admin can selectively enable multiple tools on any of the
            +   * connector instances that they created in the project. For example
            +   * {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2,
            +   * "transferTicket")],
            +   * "gmail1ConnectorName": [(toolId3, "sendEmail"),..] }
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Assistant.ToolList> enabled_tools = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Assistant.ToolList getEnabledToolsOrThrow( + java.lang.String key); + + /** + * + * + *
            +   * Optional. Customer policy for the assistant.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customerPolicy field is set. + */ + boolean hasCustomerPolicy(); + + /** + * + * + *
            +   * Optional. Customer policy for the assistant.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customerPolicy. + */ + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy getCustomerPolicy(); + + /** + * + * + *
            +   * Optional. Customer policy for the assistant.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicy customer_policy = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Assistant.CustomerPolicyOrBuilder + getCustomerPolicyOrBuilder(); + + /** + * + * + *
            +   * Output only. Represents the time when this Assistant was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. Represents the time when this Assistant was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. Represents the time when this Assistant was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Represents the time when this Assistant was most recently
            +   * updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. Represents the time when this Assistant was most recently
            +   * updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. Represents the time when this Assistant was most recently
            +   * updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantProto.java new file mode 100644 index 000000000000..6cf6d5cc4e3e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantProto.java @@ -0,0 +1,268 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public final class AssistantProto extends com.google.protobuf.GeneratedFile { + private AssistantProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AssistantProto"); + } + + 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_discoveryengine_v1beta_Assistant_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Assistant_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_SystemInstruction_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_SystemInstruction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolList_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_BannedPhrase_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_BannedPhrase_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_ModelArmorConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_ModelArmorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Assistant_EnabledToolsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Assistant_EnabledToolsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/discoveryengine/v1beta/as" + + "sistant.proto\022#google.cloud.discoveryeng" + + "ine.v1beta\032\037google/api/field_behavior.pr" + + "oto\032\031google/api/resource.proto\032\037google/p" + + "rotobuf/timestamp.proto\"\347\022\n\tAssistant\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\005\022\031\n\014display_name\030\002 \001(\tB\003" + + "\340A\002\022\030\n\013description\030\003 \001(\tB\003\340A\001\022_\n\021generat" + + "ion_config\030\023 \001(\0132?.google.cloud.discover" + + "yengine.v1beta.Assistant.GenerationConfi" + + "gB\003\340A\001\022`\n\022web_grounding_type\030\004 \001(\0162?.goo" + + "gle.cloud.discoveryengine.v1beta.Assista" + + "nt.WebGroundingTypeB\003\340A\001\022-\n default_web_" + + "grounding_toggle_off\030\026 \001(\010B\003\340A\001\022\\\n\renabl" + + "ed_tools\030\022 \003(\0132@.google.cloud.discoverye" + + "ngine.v1beta.Assistant.EnabledToolsEntry" + + "B\003\340A\001\022[\n\017customer_policy\030\014 \001(\0132=.google." + + "cloud.discoveryengine.v1beta.Assistant.C" + + "ustomerPolicyB\003\340A\001\0224\n\013create_time\030\030 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upda" + + "te_time\030\031 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\032\233\002\n\020GenerationConfig\022\035\n\020default_m" + + "odel_id\030\001 \001(\tB\003\340A\001\022\036\n\021allowed_model_ids\030" + + "\002 \003(\tB\003\340A\001\022m\n\022system_instruction\030\003 \001(\0132Q" + + ".google.cloud.discoveryengine.v1beta.Ass" + + "istant.GenerationConfig.SystemInstructio" + + "n\022\030\n\020default_language\030\004 \001(\t\032?\n\021SystemIns" + + "truction\022*\n\035additional_system_instructio" + + "n\030\002 \001(\tB\003\340A\001\0328\n\010ToolInfo\022\021\n\ttool_name\030\001 " + + "\001(\t\022\031\n\021tool_display_name\030\002 \001(\t\032V\n\010ToolLi" + + "st\022J\n\ttool_info\030\001 \003(\01327.google.cloud.dis" + + "coveryengine.v1beta.Assistant.ToolInfo\032\221" + + "\007\n\016CustomerPolicy\022g\n\016banned_phrases\030\001 \003(" + + "\0132J.google.cloud.discoveryengine.v1beta." + + "Assistant.CustomerPolicy.BannedPhraseB\003\340" + + "A\001\022o\n\022model_armor_config\030\002 \001(\0132N.google." + + "cloud.discoveryengine.v1beta.Assistant.C" + + "ustomerPolicy.ModelArmorConfigB\003\340A\001\032\272\002\n\014" + + "BannedPhrase\022\023\n\006phrase\030\001 \001(\tB\003\340A\002\022y\n\nmat" + + "ch_type\030\002 \001(\0162`.google.cloud.discoveryen" + + "gine.v1beta.Assistant.CustomerPolicy.Ban" + + "nedPhrase.BannedPhraseMatchTypeB\003\340A\001\022\036\n\021" + + "ignore_diacritics\030\003 \001(\010B\003\340A\001\"z\n\025BannedPh" + + "raseMatchType\022(\n$BANNED_PHRASE_MATCH_TYP" + + "E_UNSPECIFIED\020\000\022\027\n\023SIMPLE_STRING_MATCH\020\001" + + "\022\036\n\032WORD_BOUNDARY_STRING_MATCH\020\002\032\347\002\n\020Mod" + + "elArmorConfig\022H\n\024user_prompt_template\030\001 " + + "\001(\tB*\340A\001\372A$\n\"modelarmor.googleapis.com/T" + + "emplate\022E\n\021response_template\030\002 \001(\tB*\340A\001\372" + + "A$\n\"modelarmor.googleapis.com/Template\022u" + + "\n\014failure_mode\030\003 \001(\0162Z.google.cloud.disc" + + "overyengine.v1beta.Assistant.CustomerPol" + + "icy.ModelArmorConfig.FailureModeB\003\340A\001\"K\n" + + "\013FailureMode\022\034\n\030FAILURE_MODE_UNSPECIFIED" + + "\020\000\022\r\n\tFAIL_OPEN\020\001\022\017\n\013FAIL_CLOSED\020\002\032l\n\021En" + + "abledToolsEntry\022\013\n\003key\030\001 \001(\t\022F\n\005value\030\002 " + + "\001(\01327.google.cloud.discoveryengine.v1bet" + + "a.Assistant.ToolList:\0028\001\"\253\001\n\020WebGroundin" + + "gType\022\"\n\036WEB_GROUNDING_TYPE_UNSPECIFIED\020" + + "\000\022\037\n\033WEB_GROUNDING_TYPE_DISABLED\020\001\022$\n WE" + + "B_GROUNDING_TYPE_GOOGLE_SEARCH\020\002\022,\n(WEB_" + + "GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH\020\003:\230" + + "\001\352A\224\001\n(discoveryengine.googleapis.com/As" + + "sistant\022hprojects/{project}/locations/{l" + + "ocation}/collections/{collection}/engine" + + "s/{engine}/assistants/{assistant}B\225\002\n\'co" + + "m.google.cloud.discoveryengine.v1betaB\016A" + + "ssistantProtoP\001ZQcloud.google.com/go/dis" + + "coveryengine/apiv1beta/discoveryenginepb" + + ";discoveryenginepb\242\002\017DISCOVERYENGINE\252\002#G" + + "oogle.Cloud.DiscoveryEngine.V1Beta\312\002#Goo" + + "gle\\Cloud\\DiscoveryEngine\\V1beta\352\002&Googl" + + "e::Cloud::DiscoveryEngine::V1betab\006proto" + + "3" + }; + 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_cloud_discoveryengine_v1beta_Assistant_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1beta_Assistant_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Assistant_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "GenerationConfig", + "WebGroundingType", + "DefaultWebGroundingToggleOff", + "EnabledTools", + "CustomerPolicy", + "CreateTime", + "UpdateTime", + }); + internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Assistant_descriptor.getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_descriptor, + new java.lang.String[] { + "DefaultModelId", "AllowedModelIds", "SystemInstruction", "DefaultLanguage", + }); + internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_SystemInstruction_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_SystemInstruction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Assistant_GenerationConfig_SystemInstruction_descriptor, + new java.lang.String[] { + "AdditionalSystemInstruction", + }); + internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolInfo_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Assistant_descriptor.getNestedType(1); + internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolInfo_descriptor, + new java.lang.String[] { + "ToolName", "ToolDisplayName", + }); + internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolList_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Assistant_descriptor.getNestedType(2); + internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Assistant_ToolList_descriptor, + new java.lang.String[] { + "ToolInfo", + }); + internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Assistant_descriptor.getNestedType(3); + internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_descriptor, + new java.lang.String[] { + "BannedPhrases", "ModelArmorConfig", + }); + internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_BannedPhrase_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_BannedPhrase_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_BannedPhrase_descriptor, + new java.lang.String[] { + "Phrase", "MatchType", "IgnoreDiacritics", + }); + internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_ModelArmorConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_ModelArmorConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Assistant_CustomerPolicy_ModelArmorConfig_descriptor, + new java.lang.String[] { + "UserPromptTemplate", "ResponseTemplate", "FailureMode", + }); + internal_static_google_cloud_discoveryengine_v1beta_Assistant_EnabledToolsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Assistant_descriptor.getNestedType(4); + internal_static_google_cloud_discoveryengine_v1beta_Assistant_EnabledToolsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Assistant_EnabledToolsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + 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); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceProto.java new file mode 100644 index 000000000000..733f75423d4f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/AssistantServiceProto.java @@ -0,0 +1,426 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public final class AssistantServiceProto extends com.google.protobuf.GeneratedFile { + private AssistantServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AssistantServiceProto"); + } + + 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_discoveryengine_v1beta_AssistUserMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AssistUserMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VertexAiSearchSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VertexAiSearchSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_WebGroundingSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_WebGroundingSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_ImageGenerationSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_ImageGenerationSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VideoGenerationSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VideoGenerationSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_GenerationSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_GenerationSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_SessionInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_SessionInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_InvokedSkill_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_InvokedSkill_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_CreateAssistantRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CreateAssistantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DeleteAssistantRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DeleteAssistantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_GetAssistantRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_GetAssistantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_UpdateAssistantRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_UpdateAssistantRequest_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/discoveryengine/v1beta/as" + + "sistant_service.proto\022#google.cloud.disc" + + "overyengine.v1beta\032\034google/api/annotatio" + + "ns.proto\032\027google/api/client.proto\032\037googl" + + "e/api/field_behavior.proto\032\031google/api/r" + + "esource.proto\0327google/cloud/discoveryeng" + + "ine/v1beta/assist_answer.proto\0323google/c" + + "loud/discoveryengine/v1beta/assistant.pr" + + "oto\0328google/cloud/discoveryengine/v1beta" + + "/search_service.proto\0321google/cloud/disc" + + "overyengine/v1beta/session.proto\032\033google" + + "/protobuf/empty.proto\032 google/protobuf/f" + + "ield_mask.proto\"R\n\022AssistUserMetadata\022\026\n" + + "\ttime_zone\030\001 \001(\tB\003\340A\001\022$\n\027preferred_langu" + + "age_code\030\002 \001(\tB\003\340A\001\"\336\t\n\023StreamAssistRequ" + + "est\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(discoveryengi" + + "ne.googleapis.com/Assistant\022>\n\005query\030\002 \001" + + "(\0132*.google.cloud.discoveryengine.v1beta" + + ".QueryB\003\340A\001\022?\n\007session\030\003 \001(\tB.\340A\001\372A(\n&di" + + "scoveryengine.googleapis.com/Session\022S\n\r" + + "user_metadata\030\006 \001(\01327.google.cloud.disco" + + "veryengine.v1beta.AssistUserMetadataB\003\340A" + + "\001\022[\n\ntools_spec\030\022 \001(\0132B.google.cloud.dis" + + "coveryengine.v1beta.StreamAssistRequest." + + "ToolsSpecB\003\340A\001\022e\n\017generation_spec\030\023 \001(\0132" + + "G.google.cloud.discoveryengine.v1beta.St" + + "reamAssistRequest.GenerationSpecB\003\340A\001\032\303\005" + + "\n\tToolsSpec\022y\n\025vertex_ai_search_spec\030\001 \001" + + "(\0132U.google.cloud.discoveryengine.v1beta" + + ".StreamAssistRequest.ToolsSpec.VertexAiS" + + "earchSpecB\003\340A\001\022t\n\022web_grounding_spec\030\002 \001" + + "(\0132S.google.cloud.discoveryengine.v1beta" + + ".StreamAssistRequest.ToolsSpec.WebGround" + + "ingSpecB\003\340A\001\022z\n\025image_generation_spec\030\003 " + + "\001(\0132V.google.cloud.discoveryengine.v1bet" + + "a.StreamAssistRequest.ToolsSpec.ImageGen" + + "erationSpecB\003\340A\001\022z\n\025video_generation_spe" + + "c\030\004 \001(\0132V.google.cloud.discoveryengine.v" + + "1beta.StreamAssistRequest.ToolsSpec.Vide" + + "oGenerationSpecB\003\340A\001\032\212\001\n\022VertexAiSearchS" + + "pec\022_\n\020data_store_specs\030\002 \003(\0132@.google.c" + + "loud.discoveryengine.v1beta.SearchReques" + + "t.DataStoreSpecB\003\340A\001\022\023\n\006filter\030\004 \001(\tB\003\340A" + + "\001\032\022\n\020WebGroundingSpec\032\025\n\023ImageGeneration" + + "Spec\032\025\n\023VideoGenerationSpec\032\'\n\016Generatio" + + "nSpec\022\025\n\010model_id\030\001 \001(\tB\003\340A\001\"\307\003\n\024StreamA" + + "ssistResponse\022A\n\006answer\030\001 \001(\01321.google.c" + + "loud.discoveryengine.v1beta.AssistAnswer" + + "\022[\n\014session_info\030\002 \001(\0132E.google.cloud.di" + + "scoveryengine.v1beta.StreamAssistRespons" + + "e.SessionInfo\022\024\n\014assist_token\030\004 \001(\t\022\030\n\020i" + + "nvocation_tools\030\010 \003(\t\022^\n\016invoked_skills\030" + + "\n \003(\0132F.google.cloud.discoveryengine.v1b" + + "eta.StreamAssistResponse.InvokedSkill\032K\n" + + "\013SessionInfo\022<\n\007session\030\001 \001(\tB+\372A(\n&disc" + + "overyengine.googleapis.com/Session\0322\n\014In" + + "vokedSkill\022\014\n\004name\030\001 \001(\t\022\024\n\014display_name" + + "\030\002 \001(\t\"\272\001\n\026CreateAssistantRequest\022=\n\006par" + + "ent\030\001 \001(\tB-\340A\002\372A\'\n%discoveryengine.googl" + + "eapis.com/Engine\022F\n\tassistant\030\002 \001(\0132..go" + + "ogle.cloud.discoveryengine.v1beta.Assist" + + "antB\003\340A\002\022\031\n\014assistant_id\030\003 \001(\tB\003\340A\002\"X\n\026D" + + "eleteAssistantRequest\022>\n\004name\030\001 \001(\tB0\340A\002" + + "\372A*\n(discoveryengine.googleapis.com/Assi" + + "stant\"U\n\023GetAssistantRequest\022>\n\004name\030\001 \001" + + "(\tB0\340A\002\372A*\n(discoveryengine.googleapis.c" + + "om/Assistant\"}\n\025ListAssistantsRequest\022=\n" + + "\006parent\030\001 \001(\tB-\340A\002\372A\'\n%discoveryengine.g" + + "oogleapis.com/Engine\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\"u\n\026ListAssistantsRes" + + "ponse\022B\n\nassistants\030\001 \003(\0132..google.cloud" + + ".discoveryengine.v1beta.Assistant\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"\221\001\n\026UpdateAssistantRe" + + "quest\022F\n\tassistant\030\001 \001(\0132..google.cloud." + + "discoveryengine.v1beta.AssistantB\003\340A\002\022/\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMask2\366\014\n\020AssistantService\022\351\001\n\014StreamAs" + + "sist\0228.google.cloud.discoveryengine.v1be" + + "ta.StreamAssistRequest\0329.google.cloud.di" + + "scoveryengine.v1beta.StreamAssistRespons" + + "e\"b\202\323\344\223\002\\\"W/v1beta/{name=projects/*/loca" + + "tions/*/collections/*/engines/*/assistan" + + "ts/*}:streamAssist:\001*0\001\022\335\001\n\017CreateAssist" + + "ant\022;.google.cloud.discoveryengine.v1bet" + + "a.CreateAssistantRequest\032..google.cloud." + + "discoveryengine.v1beta.Assistant\"]\202\323\344\223\002W" + + "\"J/v1beta/{parent=projects/*/locations/*" + + "/collections/*/engines/*}/assistants:\tas" + + "sistant\022\301\001\n\017DeleteAssistant\022;.google.clo" + + "ud.discoveryengine.v1beta.DeleteAssistan" + + "tRequest\032\026.google.protobuf.Empty\"Y\332A\004nam" + + "e\202\323\344\223\002L*J/v1beta/{name=projects/*/locati" + + "ons/*/collections/*/engines/*/assistants" + + "/*}\022\377\001\n\017UpdateAssistant\022;.google.cloud.d" + + "iscoveryengine.v1beta.UpdateAssistantReq" + + "uest\032..google.cloud.discoveryengine.v1be" + + "ta.Assistant\"\177\332A\025assistant,update_mask\202\323" + + "\344\223\002a2T/v1beta/{assistant.name=projects/*" + + "/locations/*/collections/*/engines/*/ass" + + "istants/*}:\tassistant\022\323\001\n\014GetAssistant\0228" + + ".google.cloud.discoveryengine.v1beta.Get" + + "AssistantRequest\032..google.cloud.discover" + + "yengine.v1beta.Assistant\"Y\332A\004name\202\323\344\223\002L\022" + + "J/v1beta/{name=projects/*/locations/*/co" + + "llections/*/engines/*/assistants/*}\022\346\001\n\016" + + "ListAssistants\022:.google.cloud.discoverye" + + "ngine.v1beta.ListAssistantsRequest\032;.goo" + + "gle.cloud.discoveryengine.v1beta.ListAss" + + "istantsResponse\"[\332A\006parent\202\323\344\223\002L\022J/v1bet" + + "a/{parent=projects/*/locations/*/collect" + + "ions/*/engines/*}/assistants\032\220\002\312A\036discov" + + "eryengine.googleapis.com\322A\353\001https://www." + + "googleapis.com/auth/cloud-platform,https" + + "://www.googleapis.com/auth/discoveryengi" + + "ne.assist.readwrite,https://www.googleap" + + "is.com/auth/discoveryengine.readwrite,ht" + + "tps://www.googleapis.com/auth/discoverye" + + "ngine.serving.readwriteB\234\002\n\'com.google.c" + + "loud.discoveryengine.v1betaB\025AssistantSe" + + "rviceProtoP\001ZQcloud.google.com/go/discov" + + "eryengine/apiv1beta/discoveryenginepb;di" + + "scoveryenginepb\242\002\017DISCOVERYENGINE\252\002#Goog" + + "le.Cloud.DiscoveryEngine.V1Beta\312\002#Google" + + "\\Cloud\\DiscoveryEngine\\V1beta\352\002&Google::" + + "Cloud::DiscoveryEngine::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.AssistAnswerProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.AssistantProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.SearchServiceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.SessionProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_AssistUserMetadata_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1beta_AssistUserMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AssistUserMetadata_descriptor, + new java.lang.String[] { + "TimeZone", "PreferredLanguageCode", + }); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_descriptor, + new java.lang.String[] { + "Name", "Query", "Session", "UserMetadata", "ToolsSpec", "GenerationSpec", + }); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_descriptor, + new java.lang.String[] { + "VertexAiSearchSpec", + "WebGroundingSpec", + "ImageGenerationSpec", + "VideoGenerationSpec", + }); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VertexAiSearchSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VertexAiSearchSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VertexAiSearchSpec_descriptor, + new java.lang.String[] { + "DataStoreSpecs", "Filter", + }); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_WebGroundingSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_WebGroundingSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_WebGroundingSpec_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_ImageGenerationSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_descriptor + .getNestedType(2); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_ImageGenerationSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_ImageGenerationSpec_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VideoGenerationSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_descriptor + .getNestedType(3); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VideoGenerationSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VideoGenerationSpec_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_GenerationSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_GenerationSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_GenerationSpec_descriptor, + new java.lang.String[] { + "ModelId", + }); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_descriptor, + new java.lang.String[] { + "Answer", "SessionInfo", "AssistToken", "InvocationTools", "InvokedSkills", + }); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_SessionInfo_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_SessionInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_SessionInfo_descriptor, + new java.lang.String[] { + "Session", + }); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_InvokedSkill_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_InvokedSkill_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_InvokedSkill_descriptor, + new java.lang.String[] { + "Name", "DisplayName", + }); + internal_static_google_cloud_discoveryengine_v1beta_CreateAssistantRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_discoveryengine_v1beta_CreateAssistantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_CreateAssistantRequest_descriptor, + new java.lang.String[] { + "Parent", "Assistant", "AssistantId", + }); + internal_static_google_cloud_discoveryengine_v1beta_DeleteAssistantRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_discoveryengine_v1beta_DeleteAssistantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DeleteAssistantRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1beta_GetAssistantRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_discoveryengine_v1beta_GetAssistantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_GetAssistantRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsResponse_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsResponse_descriptor, + new java.lang.String[] { + "Assistants", "NextPageToken", + }); + internal_static_google_cloud_discoveryengine_v1beta_UpdateAssistantRequest_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_discoveryengine_v1beta_UpdateAssistantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_UpdateAssistantRequest_descriptor, + new java.lang.String[] { + "Assistant", "UpdateMask", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.AssistAnswerProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.AssistantProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.SearchServiceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.SessionProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + 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); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesMetadata.java new file mode 100644 index 000000000000..8f8c130bcb84 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesMetadata.java @@ -0,0 +1,1199 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Metadata related to the progress of the
            + * [UserLicenseService.BatchUpdateUserLicenses][google.cloud.discoveryengine.v1beta.UserLicenseService.BatchUpdateUserLicenses]
            + * operation. This will be returned by the google.longrunning.Operation.metadata
            + * field.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata} + */ +@com.google.protobuf.Generated +public final class BatchUpdateUserLicensesMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata) + BatchUpdateUserLicensesMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BatchUpdateUserLicensesMetadata"); + } + + // Use BatchUpdateUserLicensesMetadata.newBuilder() to construct. + private BatchUpdateUserLicensesMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BatchUpdateUserLicensesMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata.class, + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + @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 = 2; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int SUCCESS_COUNT_FIELD_NUMBER = 3; + private long successCount_ = 0L; + + /** + * + * + *
            +   * Count of user licenses successfully updated.
            +   * 
            + * + * int64 success_count = 3; + * + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + + public static final int FAILURE_COUNT_FIELD_NUMBER = 4; + private long failureCount_ = 0L; + + /** + * + * + *
            +   * Count of user licenses that failed to be updated.
            +   * 
            + * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + if (successCount_ != 0L) { + output.writeInt64(3, successCount_); + } + if (failureCount_ != 0L) { + output.writeInt64(4, failureCount_); + } + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + if (successCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, successCount_); + } + if (failureCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, failureCount_); + } + 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.v1beta.BatchUpdateUserLicensesMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata other = + (com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata) obj; + + 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 (getSuccessCount() != other.getSuccessCount()) return false; + if (getFailureCount() != other.getFailureCount()) 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 (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 = (37 * hash) + SUCCESS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSuccessCount()); + hash = (37 * hash) + FAILURE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailureCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata 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.v1beta.BatchUpdateUserLicensesMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata parseFrom( + 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.v1beta.BatchUpdateUserLicensesMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Metadata related to the progress of the
            +   * [UserLicenseService.BatchUpdateUserLicenses][google.cloud.discoveryengine.v1beta.UserLicenseService.BatchUpdateUserLicenses]
            +   * operation. This will be returned by the google.longrunning.Operation.metadata
            +   * field.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata) + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata.class, + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + successCount_ = 0L; + failureCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata build() { + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata buildPartial() { + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata result = + new com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.successCount_ = successCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.failureCount_ = failureCount_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata + .getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.getSuccessCount() != 0L) { + setSuccessCount(other.getSuccessCount()); + } + if (other.getFailureCount() != 0L) { + setFailureCount(other.getFailureCount()); + } + 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( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + successCount_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + failureCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @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(); + } + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @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(); + } + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private long successCount_; + + /** + * + * + *
            +     * Count of user licenses successfully updated.
            +     * 
            + * + * int64 success_count = 3; + * + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + + /** + * + * + *
            +     * Count of user licenses successfully updated.
            +     * 
            + * + * int64 success_count = 3; + * + * @param value The successCount to set. + * @return This builder for chaining. + */ + public Builder setSuccessCount(long value) { + + successCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Count of user licenses successfully updated.
            +     * 
            + * + * int64 success_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearSuccessCount() { + bitField0_ = (bitField0_ & ~0x00000004); + successCount_ = 0L; + onChanged(); + return this; + } + + private long failureCount_; + + /** + * + * + *
            +     * Count of user licenses that failed to be updated.
            +     * 
            + * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + + /** + * + * + *
            +     * Count of user licenses that failed to be updated.
            +     * 
            + * + * int64 failure_count = 4; + * + * @param value The failureCount to set. + * @return This builder for chaining. + */ + public Builder setFailureCount(long value) { + + failureCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Count of user licenses that failed to be updated.
            +     * 
            + * + * int64 failure_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearFailureCount() { + bitField0_ = (bitField0_ & ~0x00000008); + failureCount_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata) + private static final com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateUserLicensesMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.BatchUpdateUserLicensesMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesMetadataOrBuilder.java new file mode 100644 index 000000000000..f98680f7bfde --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesMetadataOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface BatchUpdateUserLicensesMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
            +   * Count of user licenses successfully updated.
            +   * 
            + * + * int64 success_count = 3; + * + * @return The successCount. + */ + long getSuccessCount(); + + /** + * + * + *
            +   * Count of user licenses that failed to be updated.
            +   * 
            + * + * int64 failure_count = 4; + * + * @return The failureCount. + */ + long getFailureCount(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesRequest.java new file mode 100644 index 000000000000..83e87e764824 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesRequest.java @@ -0,0 +1,2704 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for
            + * [UserLicenseService.BatchUpdateUserLicenses][google.cloud.discoveryengine.v1beta.UserLicenseService.BatchUpdateUserLicenses]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest} + */ +@com.google.protobuf.Generated +public final class BatchUpdateUserLicensesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest) + BatchUpdateUserLicensesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BatchUpdateUserLicensesRequest"); + } + + // Use BatchUpdateUserLicensesRequest.newBuilder() to construct. + private BatchUpdateUserLicensesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BatchUpdateUserLicensesRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.class, + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.Builder.class); + } + + public interface InlineSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Required. A list of user licenses to update. Each user license
            +     * must have a valid
            +     * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getUserLicensesList(); + + /** + * + * + *
            +     * Required. A list of user licenses to update. Each user license
            +     * must have a valid
            +     * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.UserLicense getUserLicenses(int index); + + /** + * + * + *
            +     * Required. A list of user licenses to update. Each user license
            +     * must have a valid
            +     * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getUserLicensesCount(); + + /** + * + * + *
            +     * Required. A list of user licenses to update. Each user license
            +     * must have a valid
            +     * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getUserLicensesOrBuilderList(); + + /** + * + * + *
            +     * Required. A list of user licenses to update. Each user license
            +     * must have a valid
            +     * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.UserLicenseOrBuilder getUserLicensesOrBuilder( + int index); + + /** + * + * + *
            +     * Optional. The list of fields to update.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
            +     * Optional. The list of fields to update.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
            +     * Optional. The list of fields to update.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + } + + /** + * + * + *
            +   * The inline source for the input config for BatchUpdateUserLicenses
            +   * method.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource} + */ + public static final class InlineSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource) + InlineSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InlineSource"); + } + + // Use InlineSource.newBuilder() to construct. + private InlineSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InlineSource() { + userLicenses_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_InlineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + .class, + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + .Builder.class); + } + + private int bitField0_; + public static final int USER_LICENSES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List userLicenses_; + + /** + * + * + *
            +     * Required. A list of user licenses to update. Each user license
            +     * must have a valid
            +     * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getUserLicensesList() { + return userLicenses_; + } + + /** + * + * + *
            +     * Required. A list of user licenses to update. Each user license
            +     * must have a valid
            +     * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getUserLicensesOrBuilderList() { + return userLicenses_; + } + + /** + * + * + *
            +     * Required. A list of user licenses to update. Each user license
            +     * must have a valid
            +     * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getUserLicensesCount() { + return userLicenses_.size(); + } + + /** + * + * + *
            +     * Required. A list of user licenses to update. Each user license
            +     * must have a valid
            +     * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserLicense getUserLicenses(int index) { + return userLicenses_.get(index); + } + + /** + * + * + *
            +     * Required. A list of user licenses to update. Each user license
            +     * must have a valid
            +     * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserLicenseOrBuilder getUserLicensesOrBuilder( + int index) { + return userLicenses_.get(index); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
            +     * Optional. The list of fields to update.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. The list of fields to update.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
            +     * Optional. The list of fields to update.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 < userLicenses_.size(); i++) { + output.writeMessage(1, userLicenses_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < userLicenses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userLicenses_.get(i)); + } + if (((bitField0_ & 0x00000001) != 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.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource other = + (com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource) obj; + + if (!getUserLicensesList().equals(other.getUserLicensesList())) 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 (getUserLicensesCount() > 0) { + hash = (37 * hash) + USER_LICENSES_FIELD_NUMBER; + hash = (53 * hash) + getUserLicensesList().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .InlineSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .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.v1beta.BatchUpdateUserLicensesRequest + .InlineSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .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.v1beta.BatchUpdateUserLicensesRequest + .InlineSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .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.v1beta.BatchUpdateUserLicensesRequest + .InlineSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .InlineSource + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .InlineSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .InlineSource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .InlineSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .InlineSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * The inline source for the input config for BatchUpdateUserLicenses
            +     * method.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource) + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .InlineSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_InlineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + .class, + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUserLicensesFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (userLicensesBuilder_ == null) { + userLicenses_ = java.util.Collections.emptyList(); + } else { + userLicenses_ = null; + userLicensesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_InlineSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + build() { + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + buildPartial() { + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource result = + new com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + result) { + if (userLicensesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + userLicenses_ = java.util.Collections.unmodifiableList(userLicenses_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.userLicenses_ = userLicenses_; + } else { + result.userLicenses_ = userLicensesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = + updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + .getDefaultInstance()) return this; + if (userLicensesBuilder_ == null) { + if (!other.userLicenses_.isEmpty()) { + if (userLicenses_.isEmpty()) { + userLicenses_ = other.userLicenses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUserLicensesIsMutable(); + userLicenses_.addAll(other.userLicenses_); + } + onChanged(); + } + } else { + if (!other.userLicenses_.isEmpty()) { + if (userLicensesBuilder_.isEmpty()) { + userLicensesBuilder_.dispose(); + userLicensesBuilder_ = null; + userLicenses_ = other.userLicenses_; + bitField0_ = (bitField0_ & ~0x00000001); + userLicensesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetUserLicensesFieldBuilder() + : null; + } else { + userLicensesBuilder_.addAllMessages(other.userLicenses_); + } + } + } + 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: + { + com.google.cloud.discoveryengine.v1beta.UserLicense m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.UserLicense.parser(), + extensionRegistry); + if (userLicensesBuilder_ == null) { + ensureUserLicensesIsMutable(); + userLicenses_.add(m); + } else { + userLicensesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List userLicenses_ = + java.util.Collections.emptyList(); + + private void ensureUserLicensesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + userLicenses_ = + new java.util.ArrayList( + userLicenses_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserLicense, + com.google.cloud.discoveryengine.v1beta.UserLicense.Builder, + com.google.cloud.discoveryengine.v1beta.UserLicenseOrBuilder> + userLicensesBuilder_; + + /** + * + * + *
            +       * Required. A list of user licenses to update. Each user license
            +       * must have a valid
            +       * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getUserLicensesList() { + if (userLicensesBuilder_ == null) { + return java.util.Collections.unmodifiableList(userLicenses_); + } else { + return userLicensesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +       * Required. A list of user licenses to update. Each user license
            +       * must have a valid
            +       * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getUserLicensesCount() { + if (userLicensesBuilder_ == null) { + return userLicenses_.size(); + } else { + return userLicensesBuilder_.getCount(); + } + } + + /** + * + * + *
            +       * Required. A list of user licenses to update. Each user license
            +       * must have a valid
            +       * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.UserLicense getUserLicenses(int index) { + if (userLicensesBuilder_ == null) { + return userLicenses_.get(index); + } else { + return userLicensesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +       * Required. A list of user licenses to update. Each user license
            +       * must have a valid
            +       * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUserLicenses( + int index, com.google.cloud.discoveryengine.v1beta.UserLicense value) { + if (userLicensesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserLicensesIsMutable(); + userLicenses_.set(index, value); + onChanged(); + } else { + userLicensesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Required. A list of user licenses to update. Each user license
            +       * must have a valid
            +       * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUserLicenses( + int index, com.google.cloud.discoveryengine.v1beta.UserLicense.Builder builderForValue) { + if (userLicensesBuilder_ == null) { + ensureUserLicensesIsMutable(); + userLicenses_.set(index, builderForValue.build()); + onChanged(); + } else { + userLicensesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Required. A list of user licenses to update. Each user license
            +       * must have a valid
            +       * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addUserLicenses(com.google.cloud.discoveryengine.v1beta.UserLicense value) { + if (userLicensesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserLicensesIsMutable(); + userLicenses_.add(value); + onChanged(); + } else { + userLicensesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +       * Required. A list of user licenses to update. Each user license
            +       * must have a valid
            +       * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addUserLicenses( + int index, com.google.cloud.discoveryengine.v1beta.UserLicense value) { + if (userLicensesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserLicensesIsMutable(); + userLicenses_.add(index, value); + onChanged(); + } else { + userLicensesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Required. A list of user licenses to update. Each user license
            +       * must have a valid
            +       * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addUserLicenses( + com.google.cloud.discoveryengine.v1beta.UserLicense.Builder builderForValue) { + if (userLicensesBuilder_ == null) { + ensureUserLicensesIsMutable(); + userLicenses_.add(builderForValue.build()); + onChanged(); + } else { + userLicensesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Required. A list of user licenses to update. Each user license
            +       * must have a valid
            +       * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addUserLicenses( + int index, com.google.cloud.discoveryengine.v1beta.UserLicense.Builder builderForValue) { + if (userLicensesBuilder_ == null) { + ensureUserLicensesIsMutable(); + userLicenses_.add(index, builderForValue.build()); + onChanged(); + } else { + userLicensesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Required. A list of user licenses to update. Each user license
            +       * must have a valid
            +       * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllUserLicenses( + java.lang.Iterable + values) { + if (userLicensesBuilder_ == null) { + ensureUserLicensesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userLicenses_); + onChanged(); + } else { + userLicensesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * Required. A list of user licenses to update. Each user license
            +       * must have a valid
            +       * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUserLicenses() { + if (userLicensesBuilder_ == null) { + userLicenses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + userLicensesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Required. A list of user licenses to update. Each user license
            +       * must have a valid
            +       * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeUserLicenses(int index) { + if (userLicensesBuilder_ == null) { + ensureUserLicensesIsMutable(); + userLicenses_.remove(index); + onChanged(); + } else { + userLicensesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * Required. A list of user licenses to update. Each user license
            +       * must have a valid
            +       * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.UserLicense.Builder getUserLicensesBuilder( + int index) { + return internalGetUserLicensesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * Required. A list of user licenses to update. Each user license
            +       * must have a valid
            +       * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.UserLicenseOrBuilder getUserLicensesOrBuilder( + int index) { + if (userLicensesBuilder_ == null) { + return userLicenses_.get(index); + } else { + return userLicensesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * Required. A list of user licenses to update. Each user license
            +       * must have a valid
            +       * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getUserLicensesOrBuilderList() { + if (userLicensesBuilder_ != null) { + return userLicensesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(userLicenses_); + } + } + + /** + * + * + *
            +       * Required. A list of user licenses to update. Each user license
            +       * must have a valid
            +       * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.UserLicense.Builder addUserLicensesBuilder() { + return internalGetUserLicensesFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1beta.UserLicense.getDefaultInstance()); + } + + /** + * + * + *
            +       * Required. A list of user licenses to update. Each user license
            +       * must have a valid
            +       * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.UserLicense.Builder addUserLicensesBuilder( + int index) { + return internalGetUserLicensesFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1beta.UserLicense.getDefaultInstance()); + } + + /** + * + * + *
            +       * Required. A list of user licenses to update. Each user license
            +       * must have a valid
            +       * [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal].
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getUserLicensesBuilderList() { + return internalGetUserLicensesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserLicense, + com.google.cloud.discoveryengine.v1beta.UserLicense.Builder, + com.google.cloud.discoveryengine.v1beta.UserLicenseOrBuilder> + internalGetUserLicensesFieldBuilder() { + if (userLicensesBuilder_ == null) { + userLicensesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserLicense, + com.google.cloud.discoveryengine.v1beta.UserLicense.Builder, + com.google.cloud.discoveryengine.v1beta.UserLicenseOrBuilder>( + userLicenses_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + userLicenses_ = null; + } + return userLicensesBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
            +       * Optional. The list of fields to update.
            +       * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +       * Optional. The list of fields to update.
            +       * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. The list of fields to update.
            +       * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The list of fields to update.
            +       * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The list of fields to update.
            +       * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. The list of fields to update.
            +       * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The list of fields to update.
            +       * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. The list of fields to update.
            +       * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
            +       * Optional. The list of fields to update.
            +       * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource) + private static final com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .InlineSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource(); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .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.v1beta.BatchUpdateUserLicensesRequest.InlineSource + 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(2), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: + return INLINE_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 = 2; + + /** + * + * + *
            +   * The inline source for the input content for document embeddings.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 2; + } + + /** + * + * + *
            +   * The inline source for the input content for document embeddings.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + getInlineSource() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + .getDefaultInstance(); + } + + /** + * + * + *
            +   * The inline source for the input content for document embeddings.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource inline_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .InlineSourceOrBuilder + getInlineSourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + .getDefaultInstance(); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent
            +   * [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name,
            +   * format:
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent
            +   * [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name,
            +   * format:
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DELETE_UNASSIGNED_USER_LICENSES_FIELD_NUMBER = 4; + private boolean deleteUnassignedUserLicenses_ = false; + + /** + * + * + *
            +   * Optional. If true, if user licenses removed associated license config, the
            +   * user license will be deleted. By default which is false, the user license
            +   * will be updated to unassigned state.
            +   * 
            + * + * bool delete_unassigned_user_licenses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deleteUnassignedUserLicenses. + */ + @java.lang.Override + public boolean getDeleteUnassignedUserLicenses() { + return deleteUnassignedUserLicenses_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (sourceCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource) + source_); + } + if (deleteUnassignedUserLicenses_ != false) { + output.writeBool(4, deleteUnassignedUserLicenses_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource) + source_); + } + if (deleteUnassignedUserLicenses_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(4, deleteUnassignedUserLicenses_); + } + 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.v1beta.BatchUpdateUserLicensesRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest other = + (com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getDeleteUnassignedUserLicenses() != other.getDeleteUnassignedUserLicenses()) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getInlineSource().equals(other.getInlineSource())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + DELETE_UNASSIGNED_USER_LICENSES_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleteUnassignedUserLicenses()); + switch (sourceCase_) { + case 2: + hash = (37 * hash) + INLINE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getInlineSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest 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.v1beta.BatchUpdateUserLicensesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest parseFrom( + 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.v1beta.BatchUpdateUserLicensesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [UserLicenseService.BatchUpdateUserLicenses][google.cloud.discoveryengine.v1beta.UserLicenseService.BatchUpdateUserLicenses]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest) + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.class, + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (inlineSourceBuilder_ != null) { + inlineSourceBuilder_.clear(); + } + parent_ = ""; + deleteUnassignedUserLicenses_ = false; + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest build() { + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest result = + new com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.deleteUnassignedUserLicenses_ = deleteUnassignedUserLicenses_; + } + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 2 && inlineSourceBuilder_ != null) { + result.source_ = inlineSourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getDeleteUnassignedUserLicenses() != false) { + setDeleteUnassignedUserLicenses(other.getDeleteUnassignedUserLicenses()); + } + switch (other.getSourceCase()) { + case INLINE_SOURCE: + { + mergeInlineSource(other.getInlineSource()); + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetInlineSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 32: + { + deleteUnassignedUserLicenses_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int 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.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource, + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + .Builder, + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .InlineSourceOrBuilder> + inlineSourceBuilder_; + + /** + * + * + *
            +     * The inline source for the input content for document embeddings.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 2; + } + + /** + * + * + *
            +     * The inline source for the input content for document embeddings.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + getInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + .getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return inlineSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * The inline source for the input content for document embeddings.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource inline_source = 2; + * + */ + public Builder setInlineSource( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource value) { + if (inlineSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + inlineSourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
            +     * The inline source for the input content for document embeddings.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource inline_source = 2; + * + */ + public Builder setInlineSource( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource.Builder + builderForValue) { + if (inlineSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + inlineSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
            +     * The inline source for the input content for document embeddings.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource inline_source = 2; + * + */ + public Builder mergeInlineSource( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource value) { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2 + && source_ + != com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .InlineSource.getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + .newBuilder( + (com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .InlineSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + inlineSourceBuilder_.mergeFrom(value); + } else { + inlineSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
            +     * The inline source for the input content for document embeddings.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource inline_source = 2; + * + */ + public Builder clearInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + inlineSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The inline source for the input content for document embeddings.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource inline_source = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + .Builder + getInlineSourceBuilder() { + return internalGetInlineSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * The inline source for the input content for document embeddings.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource inline_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .InlineSourceOrBuilder + getInlineSourceOrBuilder() { + if ((sourceCase_ == 2) && (inlineSourceBuilder_ != null)) { + return inlineSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * The inline source for the input content for document embeddings.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource inline_source = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource, + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + .Builder, + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .InlineSourceOrBuilder> + internalGetInlineSourceFieldBuilder() { + if (inlineSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + .getDefaultInstance(); + } + inlineSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource, + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + .Builder, + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .InlineSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + .InlineSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return inlineSourceBuilder_; + } + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The parent
            +     * [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name,
            +     * format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent
            +     * [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name,
            +     * format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent
            +     * [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name,
            +     * format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent
            +     * [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name,
            +     * format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent
            +     * [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name,
            +     * format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean deleteUnassignedUserLicenses_; + + /** + * + * + *
            +     * Optional. If true, if user licenses removed associated license config, the
            +     * user license will be deleted. By default which is false, the user license
            +     * will be updated to unassigned state.
            +     * 
            + * + * bool delete_unassigned_user_licenses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deleteUnassignedUserLicenses. + */ + @java.lang.Override + public boolean getDeleteUnassignedUserLicenses() { + return deleteUnassignedUserLicenses_; + } + + /** + * + * + *
            +     * Optional. If true, if user licenses removed associated license config, the
            +     * user license will be deleted. By default which is false, the user license
            +     * will be updated to unassigned state.
            +     * 
            + * + * bool delete_unassigned_user_licenses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The deleteUnassignedUserLicenses to set. + * @return This builder for chaining. + */ + public Builder setDeleteUnassignedUserLicenses(boolean value) { + + deleteUnassignedUserLicenses_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If true, if user licenses removed associated license config, the
            +     * user license will be deleted. By default which is false, the user license
            +     * will be updated to unassigned state.
            +     * 
            + * + * bool delete_unassigned_user_licenses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDeleteUnassignedUserLicenses() { + bitField0_ = (bitField0_ & ~0x00000004); + deleteUnassignedUserLicenses_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest) + private static final com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateUserLicensesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.BatchUpdateUserLicensesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesRequestOrBuilder.java new file mode 100644 index 000000000000..0dd51f53330e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface BatchUpdateUserLicensesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The inline source for the input content for document embeddings.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + boolean hasInlineSource(); + + /** + * + * + *
            +   * The inline source for the input content for document embeddings.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource + getInlineSource(); + + /** + * + * + *
            +   * The inline source for the input content for document embeddings.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSource inline_source = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.InlineSourceOrBuilder + getInlineSourceOrBuilder(); + + /** + * + * + *
            +   * Required. The parent
            +   * [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name,
            +   * format:
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent
            +   * [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name,
            +   * format:
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. If true, if user licenses removed associated license config, the
            +   * user license will be deleted. By default which is false, the user license
            +   * will be updated to unassigned state.
            +   * 
            + * + * bool delete_unassigned_user_licenses = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The deleteUnassignedUserLicenses. + */ + boolean getDeleteUnassignedUserLicenses(); + + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest.SourceCase getSourceCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesResponse.java new file mode 100644 index 000000000000..b2ee53804304 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesResponse.java @@ -0,0 +1,1452 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Response message for
            + * [UserLicenseService.BatchUpdateUserLicenses][google.cloud.discoveryengine.v1beta.UserLicenseService.BatchUpdateUserLicenses]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse} + */ +@com.google.protobuf.Generated +public final class BatchUpdateUserLicensesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse) + BatchUpdateUserLicensesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BatchUpdateUserLicensesResponse"); + } + + // Use BatchUpdateUserLicensesResponse.newBuilder() to construct. + private BatchUpdateUserLicensesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BatchUpdateUserLicensesResponse() { + userLicenses_ = java.util.Collections.emptyList(); + errorSamples_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse.class, + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse.Builder.class); + } + + public static final int USER_LICENSES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List userLicenses_; + + /** + * + * + *
            +   * UserLicenses successfully updated.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + @java.lang.Override + public java.util.List getUserLicensesList() { + return userLicenses_; + } + + /** + * + * + *
            +   * UserLicenses successfully updated.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + @java.lang.Override + public java.util.List + getUserLicensesOrBuilderList() { + return userLicenses_; + } + + /** + * + * + *
            +   * UserLicenses successfully updated.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + @java.lang.Override + public int getUserLicensesCount() { + return userLicenses_.size(); + } + + /** + * + * + *
            +   * UserLicenses successfully updated.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserLicense getUserLicenses(int index) { + return userLicenses_.get(index); + } + + /** + * + * + *
            +   * UserLicenses successfully updated.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserLicenseOrBuilder getUserLicensesOrBuilder( + int index) { + return userLicenses_.get(index); + } + + public static final int ERROR_SAMPLES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List errorSamples_; + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + @java.lang.Override + public java.util.List getErrorSamplesList() { + return errorSamples_; + } + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + @java.lang.Override + public java.util.List getErrorSamplesOrBuilderList() { + return errorSamples_; + } + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + @java.lang.Override + public int getErrorSamplesCount() { + return errorSamples_.size(); + } + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + @java.lang.Override + public com.google.rpc.Status getErrorSamples(int index) { + return errorSamples_.get(index); + } + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + return errorSamples_.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 < userLicenses_.size(); i++) { + output.writeMessage(1, userLicenses_.get(i)); + } + for (int i = 0; i < errorSamples_.size(); i++) { + output.writeMessage(2, errorSamples_.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 < userLicenses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userLicenses_.get(i)); + } + for (int i = 0; i < errorSamples_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, errorSamples_.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.v1beta.BatchUpdateUserLicensesResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse other = + (com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse) obj; + + if (!getUserLicensesList().equals(other.getUserLicensesList())) return false; + if (!getErrorSamplesList().equals(other.getErrorSamplesList())) 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 (getUserLicensesCount() > 0) { + hash = (37 * hash) + USER_LICENSES_FIELD_NUMBER; + hash = (53 * hash) + getUserLicensesList().hashCode(); + } + if (getErrorSamplesCount() > 0) { + hash = (37 * hash) + ERROR_SAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getErrorSamplesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse 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.v1beta.BatchUpdateUserLicensesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse parseFrom( + 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.v1beta.BatchUpdateUserLicensesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response message for
            +   * [UserLicenseService.BatchUpdateUserLicenses][google.cloud.discoveryengine.v1beta.UserLicenseService.BatchUpdateUserLicenses]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse) + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse.class, + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (userLicensesBuilder_ == null) { + userLicenses_ = java.util.Collections.emptyList(); + } else { + userLicenses_ = null; + userLicensesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + } else { + errorSamples_ = null; + errorSamplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse build() { + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse buildPartial() { + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse result = + new com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse result) { + if (userLicensesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + userLicenses_ = java.util.Collections.unmodifiableList(userLicenses_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.userLicenses_ = userLicenses_; + } else { + result.userLicenses_ = userLicensesBuilder_.build(); + } + if (errorSamplesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.errorSamples_ = errorSamples_; + } else { + result.errorSamples_ = errorSamplesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse + .getDefaultInstance()) return this; + if (userLicensesBuilder_ == null) { + if (!other.userLicenses_.isEmpty()) { + if (userLicenses_.isEmpty()) { + userLicenses_ = other.userLicenses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUserLicensesIsMutable(); + userLicenses_.addAll(other.userLicenses_); + } + onChanged(); + } + } else { + if (!other.userLicenses_.isEmpty()) { + if (userLicensesBuilder_.isEmpty()) { + userLicensesBuilder_.dispose(); + userLicensesBuilder_ = null; + userLicenses_ = other.userLicenses_; + bitField0_ = (bitField0_ & ~0x00000001); + userLicensesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetUserLicensesFieldBuilder() + : null; + } else { + userLicensesBuilder_.addAllMessages(other.userLicenses_); + } + } + } + if (errorSamplesBuilder_ == null) { + if (!other.errorSamples_.isEmpty()) { + if (errorSamples_.isEmpty()) { + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureErrorSamplesIsMutable(); + errorSamples_.addAll(other.errorSamples_); + } + onChanged(); + } + } else { + if (!other.errorSamples_.isEmpty()) { + if (errorSamplesBuilder_.isEmpty()) { + errorSamplesBuilder_.dispose(); + errorSamplesBuilder_ = null; + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000002); + errorSamplesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetErrorSamplesFieldBuilder() + : null; + } else { + errorSamplesBuilder_.addAllMessages(other.errorSamples_); + } + } + } + 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.v1beta.UserLicense m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.UserLicense.parser(), + extensionRegistry); + if (userLicensesBuilder_ == null) { + ensureUserLicensesIsMutable(); + userLicenses_.add(m); + } else { + userLicensesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(m); + } else { + errorSamplesBuilder_.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 userLicenses_ = + java.util.Collections.emptyList(); + + private void ensureUserLicensesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + userLicenses_ = + new java.util.ArrayList( + userLicenses_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserLicense, + com.google.cloud.discoveryengine.v1beta.UserLicense.Builder, + com.google.cloud.discoveryengine.v1beta.UserLicenseOrBuilder> + userLicensesBuilder_; + + /** + * + * + *
            +     * UserLicenses successfully updated.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public java.util.List + getUserLicensesList() { + if (userLicensesBuilder_ == null) { + return java.util.Collections.unmodifiableList(userLicenses_); + } else { + return userLicensesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * UserLicenses successfully updated.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public int getUserLicensesCount() { + if (userLicensesBuilder_ == null) { + return userLicenses_.size(); + } else { + return userLicensesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * UserLicenses successfully updated.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public com.google.cloud.discoveryengine.v1beta.UserLicense getUserLicenses(int index) { + if (userLicensesBuilder_ == null) { + return userLicenses_.get(index); + } else { + return userLicensesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * UserLicenses successfully updated.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public Builder setUserLicenses( + int index, com.google.cloud.discoveryengine.v1beta.UserLicense value) { + if (userLicensesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserLicensesIsMutable(); + userLicenses_.set(index, value); + onChanged(); + } else { + userLicensesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * UserLicenses successfully updated.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public Builder setUserLicenses( + int index, com.google.cloud.discoveryengine.v1beta.UserLicense.Builder builderForValue) { + if (userLicensesBuilder_ == null) { + ensureUserLicensesIsMutable(); + userLicenses_.set(index, builderForValue.build()); + onChanged(); + } else { + userLicensesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * UserLicenses successfully updated.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public Builder addUserLicenses(com.google.cloud.discoveryengine.v1beta.UserLicense value) { + if (userLicensesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserLicensesIsMutable(); + userLicenses_.add(value); + onChanged(); + } else { + userLicensesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * UserLicenses successfully updated.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public Builder addUserLicenses( + int index, com.google.cloud.discoveryengine.v1beta.UserLicense value) { + if (userLicensesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserLicensesIsMutable(); + userLicenses_.add(index, value); + onChanged(); + } else { + userLicensesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * UserLicenses successfully updated.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public Builder addUserLicenses( + com.google.cloud.discoveryengine.v1beta.UserLicense.Builder builderForValue) { + if (userLicensesBuilder_ == null) { + ensureUserLicensesIsMutable(); + userLicenses_.add(builderForValue.build()); + onChanged(); + } else { + userLicensesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * UserLicenses successfully updated.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public Builder addUserLicenses( + int index, com.google.cloud.discoveryengine.v1beta.UserLicense.Builder builderForValue) { + if (userLicensesBuilder_ == null) { + ensureUserLicensesIsMutable(); + userLicenses_.add(index, builderForValue.build()); + onChanged(); + } else { + userLicensesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * UserLicenses successfully updated.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public Builder addAllUserLicenses( + java.lang.Iterable values) { + if (userLicensesBuilder_ == null) { + ensureUserLicensesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userLicenses_); + onChanged(); + } else { + userLicensesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * UserLicenses successfully updated.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public Builder clearUserLicenses() { + if (userLicensesBuilder_ == null) { + userLicenses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + userLicensesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * UserLicenses successfully updated.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public Builder removeUserLicenses(int index) { + if (userLicensesBuilder_ == null) { + ensureUserLicensesIsMutable(); + userLicenses_.remove(index); + onChanged(); + } else { + userLicensesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * UserLicenses successfully updated.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public com.google.cloud.discoveryengine.v1beta.UserLicense.Builder getUserLicensesBuilder( + int index) { + return internalGetUserLicensesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * UserLicenses successfully updated.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public com.google.cloud.discoveryengine.v1beta.UserLicenseOrBuilder getUserLicensesOrBuilder( + int index) { + if (userLicensesBuilder_ == null) { + return userLicenses_.get(index); + } else { + return userLicensesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * UserLicenses successfully updated.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public java.util.List + getUserLicensesOrBuilderList() { + if (userLicensesBuilder_ != null) { + return userLicensesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(userLicenses_); + } + } + + /** + * + * + *
            +     * UserLicenses successfully updated.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public com.google.cloud.discoveryengine.v1beta.UserLicense.Builder addUserLicensesBuilder() { + return internalGetUserLicensesFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1beta.UserLicense.getDefaultInstance()); + } + + /** + * + * + *
            +     * UserLicenses successfully updated.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public com.google.cloud.discoveryengine.v1beta.UserLicense.Builder addUserLicensesBuilder( + int index) { + return internalGetUserLicensesFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1beta.UserLicense.getDefaultInstance()); + } + + /** + * + * + *
            +     * UserLicenses successfully updated.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public java.util.List + getUserLicensesBuilderList() { + return internalGetUserLicensesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserLicense, + com.google.cloud.discoveryengine.v1beta.UserLicense.Builder, + com.google.cloud.discoveryengine.v1beta.UserLicenseOrBuilder> + internalGetUserLicensesFieldBuilder() { + if (userLicensesBuilder_ == null) { + userLicensesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserLicense, + com.google.cloud.discoveryengine.v1beta.UserLicense.Builder, + com.google.cloud.discoveryengine.v1beta.UserLicenseOrBuilder>( + userLicenses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + userLicenses_ = null; + } + return userLicensesBuilder_; + } + + private java.util.List errorSamples_ = java.util.Collections.emptyList(); + + private void ensureErrorSamplesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + errorSamples_ = new java.util.ArrayList(errorSamples_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorSamplesBuilder_; + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + public java.util.List getErrorSamplesList() { + if (errorSamplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(errorSamples_); + } else { + return errorSamplesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + public int getErrorSamplesCount() { + if (errorSamplesBuilder_ == null) { + return errorSamples_.size(); + } else { + return errorSamplesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + public com.google.rpc.Status getErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder setErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, value); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder addErrorSamples(com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder addErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder addErrorSamples(com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder addErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder addAllErrorSamples(java.lang.Iterable values) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorSamples_); + onChanged(); + } else { + errorSamplesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder clearErrorSamples() { + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + errorSamplesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + public Builder removeErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.remove(index); + onChanged(); + } else { + errorSamplesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + public com.google.rpc.Status.Builder getErrorSamplesBuilder(int index) { + return internalGetErrorSamplesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + public java.util.List getErrorSamplesOrBuilderList() { + if (errorSamplesBuilder_ != null) { + return errorSamplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errorSamples_); + } + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder() { + return internalGetErrorSamplesFieldBuilder() + .addBuilder(com.google.rpc.Status.getDefaultInstance()); + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder(int index) { + return internalGetErrorSamplesFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + public java.util.List getErrorSamplesBuilderList() { + return internalGetErrorSamplesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + internalGetErrorSamplesFieldBuilder() { + if (errorSamplesBuilder_ == null) { + errorSamplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + errorSamples_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + errorSamples_ = null; + } + return errorSamplesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse) + private static final com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateUserLicensesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.BatchUpdateUserLicensesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesResponseOrBuilder.java new file mode 100644 index 000000000000..710a568f6438 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BatchUpdateUserLicensesResponseOrBuilder.java @@ -0,0 +1,139 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface BatchUpdateUserLicensesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * UserLicenses successfully updated.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + java.util.List getUserLicensesList(); + + /** + * + * + *
            +   * UserLicenses successfully updated.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + com.google.cloud.discoveryengine.v1beta.UserLicense getUserLicenses(int index); + + /** + * + * + *
            +   * UserLicenses successfully updated.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + int getUserLicensesCount(); + + /** + * + * + *
            +   * UserLicenses successfully updated.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + java.util.List + getUserLicensesOrBuilderList(); + + /** + * + * + *
            +   * UserLicenses successfully updated.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + com.google.cloud.discoveryengine.v1beta.UserLicenseOrBuilder getUserLicensesOrBuilder(int index); + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + java.util.List getErrorSamplesList(); + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + com.google.rpc.Status getErrorSamples(int index); + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + int getErrorSamplesCount(); + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + java.util.List getErrorSamplesOrBuilderList(); + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 2; + */ + com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BigtableOptions.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BigtableOptions.java index 403f0d3f5448..af6ebbff9142 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BigtableOptions.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BigtableOptions.java @@ -90,7 +90,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * The type of values in a Bigtable column or column family. * The values are expected to be encoded using * [HBase - * Bytes.toBytes](https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/util/Bytes.html) + * Bytes.toBytes](https://hbase.apache.org/1.4/apidocs/org/apache/hadoop/hbase/util/Bytes.html) * function when the encoding value is set to `BINARY`. *
            * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BillingAccountLicenseConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BillingAccountLicenseConfigName.java new file mode 100644 index 000000000000..0a8d3f4953dc --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/BillingAccountLicenseConfigName.java @@ -0,0 +1,211 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +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 BillingAccountLicenseConfigName implements ResourceName { + private static final PathTemplate BILLING_ACCOUNT_BILLING_ACCOUNT_LICENSE_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config}"); + private volatile Map fieldValuesMap; + private final String billingAccount; + private final String billingAccountLicenseConfig; + + @Deprecated + protected BillingAccountLicenseConfigName() { + billingAccount = null; + billingAccountLicenseConfig = null; + } + + private BillingAccountLicenseConfigName(Builder builder) { + billingAccount = Preconditions.checkNotNull(builder.getBillingAccount()); + billingAccountLicenseConfig = + Preconditions.checkNotNull(builder.getBillingAccountLicenseConfig()); + } + + public String getBillingAccount() { + return billingAccount; + } + + public String getBillingAccountLicenseConfig() { + return billingAccountLicenseConfig; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BillingAccountLicenseConfigName of( + String billingAccount, String billingAccountLicenseConfig) { + return newBuilder() + .setBillingAccount(billingAccount) + .setBillingAccountLicenseConfig(billingAccountLicenseConfig) + .build(); + } + + public static String format(String billingAccount, String billingAccountLicenseConfig) { + return newBuilder() + .setBillingAccount(billingAccount) + .setBillingAccountLicenseConfig(billingAccountLicenseConfig) + .build() + .toString(); + } + + public static BillingAccountLicenseConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + BILLING_ACCOUNT_BILLING_ACCOUNT_LICENSE_CONFIG.validatedMatch( + formattedString, + "BillingAccountLicenseConfigName.parse: formattedString not in valid format"); + return of(matchMap.get("billing_account"), matchMap.get("billing_account_license_config")); + } + + 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 (BillingAccountLicenseConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return BILLING_ACCOUNT_BILLING_ACCOUNT_LICENSE_CONFIG.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (billingAccount != null) { + fieldMapBuilder.put("billing_account", billingAccount); + } + if (billingAccountLicenseConfig != null) { + fieldMapBuilder.put("billing_account_license_config", billingAccountLicenseConfig); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return BILLING_ACCOUNT_BILLING_ACCOUNT_LICENSE_CONFIG.instantiate( + "billing_account", + billingAccount, + "billing_account_license_config", + billingAccountLicenseConfig); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BillingAccountLicenseConfigName that = ((BillingAccountLicenseConfigName) o); + return Objects.equals(this.billingAccount, that.billingAccount) + && Objects.equals(this.billingAccountLicenseConfig, that.billingAccountLicenseConfig); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(billingAccount); + h *= 1000003; + h ^= Objects.hashCode(billingAccountLicenseConfig); + return h; + } + + /** + * Builder for + * billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config}. + */ + public static class Builder { + private String billingAccount; + private String billingAccountLicenseConfig; + + protected Builder() {} + + public String getBillingAccount() { + return billingAccount; + } + + public String getBillingAccountLicenseConfig() { + return billingAccountLicenseConfig; + } + + public Builder setBillingAccount(String billingAccount) { + this.billingAccount = billingAccount; + return this; + } + + public Builder setBillingAccountLicenseConfig(String billingAccountLicenseConfig) { + this.billingAccountLicenseConfig = billingAccountLicenseConfig; + return this; + } + + private Builder(BillingAccountLicenseConfigName billingAccountLicenseConfigName) { + this.billingAccount = billingAccountLicenseConfigName.billingAccount; + this.billingAccountLicenseConfig = + billingAccountLicenseConfigName.billingAccountLicenseConfig; + } + + public BillingAccountLicenseConfigName build() { + return new BillingAccountLicenseConfigName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CheckGroundingResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CheckGroundingResponse.java index cf303d2ac699..390f949e1a01 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CheckGroundingResponse.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CheckGroundingResponse.java @@ -747,7 +747,13 @@ public interface ClaimOrBuilder * *
                  * Position indicating the start of the claim in the answer candidate,
            -     * measured in bytes.
            +     * measured in bytes. Note that this is not measured in characters and,
            +     * therefore, must be rendered in the user interface keeping in mind that
            +     * some characters may take more than one byte. For example,
            +     * if the claim text contains non-ASCII characters, the start and end
            +     * positions vary when measured in characters
            +     * (programming-language-dependent) and when measured in bytes
            +     * (programming-language-independent).
                  * 
            * * optional int32 start_pos = 1; @@ -761,7 +767,13 @@ public interface ClaimOrBuilder * *
                  * Position indicating the start of the claim in the answer candidate,
            -     * measured in bytes.
            +     * measured in bytes. Note that this is not measured in characters and,
            +     * therefore, must be rendered in the user interface keeping in mind that
            +     * some characters may take more than one byte. For example,
            +     * if the claim text contains non-ASCII characters, the start and end
            +     * positions vary when measured in characters
            +     * (programming-language-dependent) and when measured in bytes
            +     * (programming-language-independent).
                  * 
            * * optional int32 start_pos = 1; @@ -775,7 +787,11 @@ public interface ClaimOrBuilder * *
                  * Position indicating the end of the claim in the answer candidate,
            -     * exclusive.
            +     * exclusive, in bytes. Note that this is not measured in characters and,
            +     * therefore, must be rendered as such. For example, if the claim text
            +     * contains non-ASCII characters, the start and end positions vary when
            +     * measured in characters (programming-language-dependent) and when measured
            +     * in bytes (programming-language-independent).
                  * 
            * * optional int32 end_pos = 2; @@ -789,7 +805,11 @@ public interface ClaimOrBuilder * *
                  * Position indicating the end of the claim in the answer candidate,
            -     * exclusive.
            +     * exclusive, in bytes. Note that this is not measured in characters and,
            +     * therefore, must be rendered as such. For example, if the claim text
            +     * contains non-ASCII characters, the start and end positions vary when
            +     * measured in characters (programming-language-dependent) and when measured
            +     * in bytes (programming-language-independent).
                  * 
            * * optional int32 end_pos = 2; @@ -886,10 +906,7 @@ public interface ClaimOrBuilder * decided this claim doesn't require attribution/grounding check, this * field will be set to false. In that case, no grounding check was done for * the claim and therefore - * [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices], - * [anti_citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.anti_citation_indices], - * and - * [score][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.score] + * [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices] * should not be returned. *
            * @@ -907,10 +924,7 @@ public interface ClaimOrBuilder * decided this claim doesn't require attribution/grounding check, this * field will be set to false. In that case, no grounding check was done for * the claim and therefore - * [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices], - * [anti_citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.anti_citation_indices], - * and - * [score][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.score] + * [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices] * should not be returned. *
            * @@ -919,6 +933,36 @@ public interface ClaimOrBuilder * @return The groundingCheckRequired. */ boolean getGroundingCheckRequired(); + + /** + * + * + *
            +     * Confidence score for the claim in the answer candidate, in the range of
            +     * [0, 1]. This is set only when
            +     * `CheckGroundingRequest.grounding_spec.enable_claim_level_score` is true.
            +     * 
            + * + * optional double score = 7; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + + /** + * + * + *
            +     * Confidence score for the claim in the answer candidate, in the range of
            +     * [0, 1]. This is set only when
            +     * `CheckGroundingRequest.grounding_spec.enable_claim_level_score` is true.
            +     * 
            + * + * optional double score = 7; + * + * @return The score. + */ + double getScore(); } /** @@ -980,7 +1024,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                  * Position indicating the start of the claim in the answer candidate,
            -     * measured in bytes.
            +     * measured in bytes. Note that this is not measured in characters and,
            +     * therefore, must be rendered in the user interface keeping in mind that
            +     * some characters may take more than one byte. For example,
            +     * if the claim text contains non-ASCII characters, the start and end
            +     * positions vary when measured in characters
            +     * (programming-language-dependent) and when measured in bytes
            +     * (programming-language-independent).
                  * 
            * * optional int32 start_pos = 1; @@ -997,7 +1047,13 @@ public boolean hasStartPos() { * *
                  * Position indicating the start of the claim in the answer candidate,
            -     * measured in bytes.
            +     * measured in bytes. Note that this is not measured in characters and,
            +     * therefore, must be rendered in the user interface keeping in mind that
            +     * some characters may take more than one byte. For example,
            +     * if the claim text contains non-ASCII characters, the start and end
            +     * positions vary when measured in characters
            +     * (programming-language-dependent) and when measured in bytes
            +     * (programming-language-independent).
                  * 
            * * optional int32 start_pos = 1; @@ -1017,7 +1073,11 @@ public int getStartPos() { * *
                  * Position indicating the end of the claim in the answer candidate,
            -     * exclusive.
            +     * exclusive, in bytes. Note that this is not measured in characters and,
            +     * therefore, must be rendered as such. For example, if the claim text
            +     * contains non-ASCII characters, the start and end positions vary when
            +     * measured in characters (programming-language-dependent) and when measured
            +     * in bytes (programming-language-independent).
                  * 
            * * optional int32 end_pos = 2; @@ -1034,7 +1094,11 @@ public boolean hasEndPos() { * *
                  * Position indicating the end of the claim in the answer candidate,
            -     * exclusive.
            +     * exclusive, in bytes. Note that this is not measured in characters and,
            +     * therefore, must be rendered as such. For example, if the claim text
            +     * contains non-ASCII characters, the start and end positions vary when
            +     * measured in characters (programming-language-dependent) and when measured
            +     * in bytes (programming-language-independent).
                  * 
            * * optional int32 end_pos = 2; @@ -1178,10 +1242,7 @@ public int getCitationIndices(int index) { * decided this claim doesn't require attribution/grounding check, this * field will be set to false. In that case, no grounding check was done for * the claim and therefore - * [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices], - * [anti_citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.anti_citation_indices], - * and - * [score][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.score] + * [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices] * should not be returned. *
            * @@ -1202,10 +1263,7 @@ public boolean hasGroundingCheckRequired() { * decided this claim doesn't require attribution/grounding check, this * field will be set to false. In that case, no grounding check was done for * the claim and therefore - * [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices], - * [anti_citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.anti_citation_indices], - * and - * [score][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.score] + * [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices] * should not be returned. *
            * @@ -1218,6 +1276,45 @@ public boolean getGroundingCheckRequired() { return groundingCheckRequired_; } + public static final int SCORE_FIELD_NUMBER = 7; + private double score_ = 0D; + + /** + * + * + *
            +     * Confidence score for the claim in the answer candidate, in the range of
            +     * [0, 1]. This is set only when
            +     * `CheckGroundingRequest.grounding_spec.enable_claim_level_score` is true.
            +     * 
            + * + * optional double score = 7; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Confidence score for the claim in the answer candidate, in the range of
            +     * [0, 1]. This is set only when
            +     * `CheckGroundingRequest.grounding_spec.enable_claim_level_score` is true.
            +     * 
            + * + * optional double score = 7; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1252,6 +1349,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(6, groundingCheckRequired_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeDouble(7, score_); + } getUnknownFields().writeTo(output); } @@ -1287,6 +1387,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, groundingCheckRequired_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(7, score_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1317,6 +1420,11 @@ public boolean equals(final java.lang.Object obj) { if (hasGroundingCheckRequired()) { if (getGroundingCheckRequired() != other.getGroundingCheckRequired()) return false; } + if (hasScore() != other.hasScore()) return false; + if (hasScore()) { + if (java.lang.Double.doubleToLongBits(getScore()) + != java.lang.Double.doubleToLongBits(other.getScore())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1346,6 +1454,13 @@ public int hashCode() { hash = (37 * hash) + GROUNDING_CHECK_REQUIRED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGroundingCheckRequired()); } + if (hasScore()) { + hash = (37 * hash) + SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getScore())); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1494,6 +1609,7 @@ public Builder clear() { claimText_ = ""; citationIndices_ = emptyIntList(); groundingCheckRequired_ = false; + score_ = 0D; return this; } @@ -1554,6 +1670,10 @@ private void buildPartial0( result.groundingCheckRequired_ = groundingCheckRequired_; to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.score_ = score_; + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -1598,6 +1718,9 @@ public Builder mergeFrom( if (other.hasGroundingCheckRequired()) { setGroundingCheckRequired(other.getGroundingCheckRequired()); } + if (other.hasScore()) { + setScore(other.getScore()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1666,6 +1789,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 48 + case 57: + { + score_ = input.readDouble(); + bitField0_ |= 0x00000020; + break; + } // case 57 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1692,7 +1821,13 @@ public Builder mergeFrom( * *
                    * Position indicating the start of the claim in the answer candidate,
            -       * measured in bytes.
            +       * measured in bytes. Note that this is not measured in characters and,
            +       * therefore, must be rendered in the user interface keeping in mind that
            +       * some characters may take more than one byte. For example,
            +       * if the claim text contains non-ASCII characters, the start and end
            +       * positions vary when measured in characters
            +       * (programming-language-dependent) and when measured in bytes
            +       * (programming-language-independent).
                    * 
            * * optional int32 start_pos = 1; @@ -1709,7 +1844,13 @@ public boolean hasStartPos() { * *
                    * Position indicating the start of the claim in the answer candidate,
            -       * measured in bytes.
            +       * measured in bytes. Note that this is not measured in characters and,
            +       * therefore, must be rendered in the user interface keeping in mind that
            +       * some characters may take more than one byte. For example,
            +       * if the claim text contains non-ASCII characters, the start and end
            +       * positions vary when measured in characters
            +       * (programming-language-dependent) and when measured in bytes
            +       * (programming-language-independent).
                    * 
            * * optional int32 start_pos = 1; @@ -1726,7 +1867,13 @@ public int getStartPos() { * *
                    * Position indicating the start of the claim in the answer candidate,
            -       * measured in bytes.
            +       * measured in bytes. Note that this is not measured in characters and,
            +       * therefore, must be rendered in the user interface keeping in mind that
            +       * some characters may take more than one byte. For example,
            +       * if the claim text contains non-ASCII characters, the start and end
            +       * positions vary when measured in characters
            +       * (programming-language-dependent) and when measured in bytes
            +       * (programming-language-independent).
                    * 
            * * optional int32 start_pos = 1; @@ -1747,7 +1894,13 @@ public Builder setStartPos(int value) { * *
                    * Position indicating the start of the claim in the answer candidate,
            -       * measured in bytes.
            +       * measured in bytes. Note that this is not measured in characters and,
            +       * therefore, must be rendered in the user interface keeping in mind that
            +       * some characters may take more than one byte. For example,
            +       * if the claim text contains non-ASCII characters, the start and end
            +       * positions vary when measured in characters
            +       * (programming-language-dependent) and when measured in bytes
            +       * (programming-language-independent).
                    * 
            * * optional int32 start_pos = 1; @@ -1768,7 +1921,11 @@ public Builder clearStartPos() { * *
                    * Position indicating the end of the claim in the answer candidate,
            -       * exclusive.
            +       * exclusive, in bytes. Note that this is not measured in characters and,
            +       * therefore, must be rendered as such. For example, if the claim text
            +       * contains non-ASCII characters, the start and end positions vary when
            +       * measured in characters (programming-language-dependent) and when measured
            +       * in bytes (programming-language-independent).
                    * 
            * * optional int32 end_pos = 2; @@ -1785,7 +1942,11 @@ public boolean hasEndPos() { * *
                    * Position indicating the end of the claim in the answer candidate,
            -       * exclusive.
            +       * exclusive, in bytes. Note that this is not measured in characters and,
            +       * therefore, must be rendered as such. For example, if the claim text
            +       * contains non-ASCII characters, the start and end positions vary when
            +       * measured in characters (programming-language-dependent) and when measured
            +       * in bytes (programming-language-independent).
                    * 
            * * optional int32 end_pos = 2; @@ -1802,7 +1963,11 @@ public int getEndPos() { * *
                    * Position indicating the end of the claim in the answer candidate,
            -       * exclusive.
            +       * exclusive, in bytes. Note that this is not measured in characters and,
            +       * therefore, must be rendered as such. For example, if the claim text
            +       * contains non-ASCII characters, the start and end positions vary when
            +       * measured in characters (programming-language-dependent) and when measured
            +       * in bytes (programming-language-independent).
                    * 
            * * optional int32 end_pos = 2; @@ -1823,7 +1988,11 @@ public Builder setEndPos(int value) { * *
                    * Position indicating the end of the claim in the answer candidate,
            -       * exclusive.
            +       * exclusive, in bytes. Note that this is not measured in characters and,
            +       * therefore, must be rendered as such. For example, if the claim text
            +       * contains non-ASCII characters, the start and end positions vary when
            +       * measured in characters (programming-language-dependent) and when measured
            +       * in bytes (programming-language-independent).
                    * 
            * * optional int32 end_pos = 2; @@ -2128,10 +2297,7 @@ public Builder clearCitationIndices() { * decided this claim doesn't require attribution/grounding check, this * field will be set to false. In that case, no grounding check was done for * the claim and therefore - * [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices], - * [anti_citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.anti_citation_indices], - * and - * [score][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.score] + * [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices] * should not be returned. *
            * @@ -2152,10 +2318,7 @@ public boolean hasGroundingCheckRequired() { * decided this claim doesn't require attribution/grounding check, this * field will be set to false. In that case, no grounding check was done for * the claim and therefore - * [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices], - * [anti_citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.anti_citation_indices], - * and - * [score][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.score] + * [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices] * should not be returned. *
            * @@ -2176,10 +2339,7 @@ public boolean getGroundingCheckRequired() { * decided this claim doesn't require attribution/grounding check, this * field will be set to false. In that case, no grounding check was done for * the claim and therefore - * [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices], - * [anti_citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.anti_citation_indices], - * and - * [score][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.score] + * [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices] * should not be returned. *
            * @@ -2204,10 +2364,7 @@ public Builder setGroundingCheckRequired(boolean value) { * decided this claim doesn't require attribution/grounding check, this * field will be set to false. In that case, no grounding check was done for * the claim and therefore - * [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices], - * [anti_citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.anti_citation_indices], - * and - * [score][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.score] + * [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices] * should not be returned. *
            * @@ -2222,6 +2379,86 @@ public Builder clearGroundingCheckRequired() { return this; } + private double score_; + + /** + * + * + *
            +       * Confidence score for the claim in the answer candidate, in the range of
            +       * [0, 1]. This is set only when
            +       * `CheckGroundingRequest.grounding_spec.enable_claim_level_score` is true.
            +       * 
            + * + * optional double score = 7; + * + * @return Whether the score field is set. + */ + @java.lang.Override + public boolean hasScore() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +       * Confidence score for the claim in the answer candidate, in the range of
            +       * [0, 1]. This is set only when
            +       * `CheckGroundingRequest.grounding_spec.enable_claim_level_score` is true.
            +       * 
            + * + * optional double score = 7; + * + * @return The score. + */ + @java.lang.Override + public double getScore() { + return score_; + } + + /** + * + * + *
            +       * Confidence score for the claim in the answer candidate, in the range of
            +       * [0, 1]. This is set only when
            +       * `CheckGroundingRequest.grounding_spec.enable_claim_level_score` is true.
            +       * 
            + * + * optional double score = 7; + * + * @param value The score to set. + * @return This builder for chaining. + */ + public Builder setScore(double value) { + + score_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Confidence score for the claim in the answer candidate, in the range of
            +       * [0, 1]. This is set only when
            +       * `CheckGroundingRequest.grounding_spec.enable_claim_level_score` is true.
            +       * 
            + * + * optional double score = 7; + * + * @return This builder for chaining. + */ + public Builder clearScore() { + bitField0_ = (bitField0_ & ~0x00000020); + score_ = 0D; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CheckGroundingSpec.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CheckGroundingSpec.java index 56c2a78589ca..0742307eedb1 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CheckGroundingSpec.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CheckGroundingSpec.java @@ -112,6 +112,41 @@ public double getCitationThreshold() { return citationThreshold_; } + public static final int ENABLE_CLAIM_LEVEL_SCORE_FIELD_NUMBER = 4; + private boolean enableClaimLevelScore_ = false; + + /** + * + * + *
            +   * The control flag that enables claim-level grounding score in the response.
            +   * 
            + * + * optional bool enable_claim_level_score = 4; + * + * @return Whether the enableClaimLevelScore field is set. + */ + @java.lang.Override + public boolean hasEnableClaimLevelScore() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * The control flag that enables claim-level grounding score in the response.
            +   * 
            + * + * optional bool enable_claim_level_score = 4; + * + * @return The enableClaimLevelScore. + */ + @java.lang.Override + public boolean getEnableClaimLevelScore() { + return enableClaimLevelScore_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -129,6 +164,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeDouble(1, citationThreshold_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(4, enableClaimLevelScore_); + } getUnknownFields().writeTo(output); } @@ -141,6 +179,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(1, citationThreshold_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, enableClaimLevelScore_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -162,6 +203,10 @@ public boolean equals(final java.lang.Object obj) { if (java.lang.Double.doubleToLongBits(getCitationThreshold()) != java.lang.Double.doubleToLongBits(other.getCitationThreshold())) return false; } + if (hasEnableClaimLevelScore() != other.hasEnableClaimLevelScore()) return false; + if (hasEnableClaimLevelScore()) { + if (getEnableClaimLevelScore() != other.getEnableClaimLevelScore()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -180,6 +225,10 @@ public int hashCode() { + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getCitationThreshold())); } + if (hasEnableClaimLevelScore()) { + hash = (37 * hash) + ENABLE_CLAIM_LEVEL_SCORE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableClaimLevelScore()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -322,6 +371,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; citationThreshold_ = 0D; + enableClaimLevelScore_ = false; return this; } @@ -363,6 +413,10 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.CheckGroundin result.citationThreshold_ = citationThreshold_; to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableClaimLevelScore_ = enableClaimLevelScore_; + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -382,6 +436,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CheckGroundingS if (other.hasCitationThreshold()) { setCitationThreshold(other.getCitationThreshold()); } + if (other.hasEnableClaimLevelScore()) { + setEnableClaimLevelScore(other.getEnableClaimLevelScore()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -414,6 +471,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 9 + case 32: + { + enableClaimLevelScore_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -521,6 +584,78 @@ public Builder clearCitationThreshold() { return this; } + private boolean enableClaimLevelScore_; + + /** + * + * + *
            +     * The control flag that enables claim-level grounding score in the response.
            +     * 
            + * + * optional bool enable_claim_level_score = 4; + * + * @return Whether the enableClaimLevelScore field is set. + */ + @java.lang.Override + public boolean hasEnableClaimLevelScore() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * The control flag that enables claim-level grounding score in the response.
            +     * 
            + * + * optional bool enable_claim_level_score = 4; + * + * @return The enableClaimLevelScore. + */ + @java.lang.Override + public boolean getEnableClaimLevelScore() { + return enableClaimLevelScore_; + } + + /** + * + * + *
            +     * The control flag that enables claim-level grounding score in the response.
            +     * 
            + * + * optional bool enable_claim_level_score = 4; + * + * @param value The enableClaimLevelScore to set. + * @return This builder for chaining. + */ + public Builder setEnableClaimLevelScore(boolean value) { + + enableClaimLevelScore_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The control flag that enables claim-level grounding score in the response.
            +     * 
            + * + * optional bool enable_claim_level_score = 4; + * + * @return This builder for chaining. + */ + public Builder clearEnableClaimLevelScore() { + bitField0_ = (bitField0_ & ~0x00000002); + enableClaimLevelScore_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CheckGroundingSpec) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CheckGroundingSpecOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CheckGroundingSpecOrBuilder.java index 7d9ef07aa8a0..0c365cf99430 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CheckGroundingSpecOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CheckGroundingSpecOrBuilder.java @@ -59,4 +59,30 @@ public interface CheckGroundingSpecOrBuilder * @return The citationThreshold. */ double getCitationThreshold(); + + /** + * + * + *
            +   * The control flag that enables claim-level grounding score in the response.
            +   * 
            + * + * optional bool enable_claim_level_score = 4; + * + * @return Whether the enableClaimLevelScore field is set. + */ + boolean hasEnableClaimLevelScore(); + + /** + * + * + *
            +   * The control flag that enables claim-level grounding score in the response.
            +   * 
            + * + * optional bool enable_claim_level_score = 4; + * + * @return The enableClaimLevelScore. + */ + boolean getEnableClaimLevelScore(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Chunk.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Chunk.java index 2b4ef81a64f4..86112c4138c7 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Chunk.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Chunk.java @@ -56,6 +56,9 @@ private Chunk() { name_ = ""; id_ = ""; content_ = ""; + dataUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + annotationContents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + annotationMetadata_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -73,6 +76,198 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.discoveryengine.v1beta.Chunk.Builder.class); } + /** + * + * + *
            +   * Defines the types of the structured content that can be extracted.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.Chunk.StructureType} + */ + public enum StructureType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Default value.
            +     * 
            + * + * STRUCTURE_TYPE_UNSPECIFIED = 0; + */ + STRUCTURE_TYPE_UNSPECIFIED(0), + /** + * + * + *
            +     * Shareholder structure.
            +     * 
            + * + * SHAREHOLDER_STRUCTURE = 1; + */ + SHAREHOLDER_STRUCTURE(1), + /** + * + * + *
            +     * Signature structure.
            +     * 
            + * + * SIGNATURE_STRUCTURE = 2; + */ + SIGNATURE_STRUCTURE(2), + /** + * + * + *
            +     * Checkbox structure.
            +     * 
            + * + * CHECKBOX_STRUCTURE = 3; + */ + CHECKBOX_STRUCTURE(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "StructureType"); + } + + /** + * + * + *
            +     * Default value.
            +     * 
            + * + * STRUCTURE_TYPE_UNSPECIFIED = 0; + */ + public static final int STRUCTURE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Shareholder structure.
            +     * 
            + * + * SHAREHOLDER_STRUCTURE = 1; + */ + public static final int SHAREHOLDER_STRUCTURE_VALUE = 1; + + /** + * + * + *
            +     * Signature structure.
            +     * 
            + * + * SIGNATURE_STRUCTURE = 2; + */ + public static final int SIGNATURE_STRUCTURE_VALUE = 2; + + /** + * + * + *
            +     * Checkbox structure.
            +     * 
            + * + * CHECKBOX_STRUCTURE = 3; + */ + public static final int CHECKBOX_STRUCTURE_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 StructureType 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 StructureType forNumber(int value) { + switch (value) { + case 0: + return STRUCTURE_TYPE_UNSPECIFIED; + case 1: + return SHAREHOLDER_STRUCTURE; + case 2: + return SIGNATURE_STRUCTURE; + case 3: + return CHECKBOX_STRUCTURE; + 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 StructureType findValueByNumber(int number) { + return StructureType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Chunk.getDescriptor().getEnumTypes().get(0); + } + + private static final StructureType[] VALUES = values(); + + public static StructureType 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 StructureType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Chunk.StructureType) + } + public interface DocumentMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata) @@ -130,6 +325,34 @@ public interface DocumentMetadataOrBuilder */ com.google.protobuf.ByteString getTitleBytes(); + /** + * + * + *
            +     * The mime type of the document.
            +     * https://www.iana.org/assignments/media-types/media-types.xhtml.
            +     * 
            + * + * string mime_type = 4; + * + * @return The mimeType. + */ + java.lang.String getMimeType(); + + /** + * + * + *
            +     * The mime type of the document.
            +     * https://www.iana.org/assignments/media-types/media-types.xhtml.
            +     * 
            + * + * string mime_type = 4; + * + * @return The bytes for mimeType. + */ + com.google.protobuf.ByteString getMimeTypeBytes(); + /** * * @@ -211,6 +434,7 @@ private DocumentMetadata(com.google.protobuf.GeneratedMessage.Builder builder private DocumentMetadata() { uri_ = ""; title_ = ""; + mimeType_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -335,6 +559,61 @@ public com.google.protobuf.ByteString getTitleBytes() { } } + public static final int MIME_TYPE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; + + /** + * + * + *
            +     * The mime type of the document.
            +     * https://www.iana.org/assignments/media-types/media-types.xhtml.
            +     * 
            + * + * string mime_type = 4; + * + * @return The mimeType. + */ + @java.lang.Override + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } + } + + /** + * + * + *
            +     * The mime type of the document.
            +     * https://www.iana.org/assignments/media-types/media-types.xhtml.
            +     * 
            + * + * string mime_type = 4; + * + * @return The bytes for mimeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int STRUCT_DATA_FIELD_NUMBER = 3; private com.google.protobuf.Struct structData_; @@ -416,6 +695,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getStructData()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, mimeType_); + } getUnknownFields().writeTo(output); } @@ -434,6 +716,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStructData()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, mimeType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -452,6 +737,7 @@ public boolean equals(final java.lang.Object obj) { if (!getUri().equals(other.getUri())) return false; if (!getTitle().equals(other.getTitle())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; if (hasStructData() != other.hasStructData()) return false; if (hasStructData()) { if (!getStructData().equals(other.getStructData())) return false; @@ -471,6 +757,8 @@ public int hashCode() { hash = (53 * hash) + getUri().hashCode(); hash = (37 * hash) + TITLE_FIELD_NUMBER; hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); if (hasStructData()) { hash = (37 * hash) + STRUCT_DATA_FIELD_NUMBER; hash = (53 * hash) + getStructData().hashCode(); @@ -628,6 +916,7 @@ public Builder clear() { bitField0_ = 0; uri_ = ""; title_ = ""; + mimeType_ = ""; structData_ = null; if (structDataBuilder_ != null) { structDataBuilder_.dispose(); @@ -677,8 +966,11 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.title_ = title_; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { + result.mimeType_ = mimeType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { result.structData_ = structDataBuilder_ == null ? structData_ : structDataBuilder_.build(); to_bitField0_ |= 0x00000001; @@ -711,6 +1003,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; onChanged(); } + if (!other.getMimeType().isEmpty()) { + mimeType_ = other.mimeType_; + bitField0_ |= 0x00000004; + onChanged(); + } if (other.hasStructData()) { mergeStructData(other.getStructData()); } @@ -756,9 +1053,15 @@ public Builder mergeFrom( { input.readMessage( internalGetStructDataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 + case 34: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1000,52 +1303,53 @@ public Builder setTitleBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.Struct structData_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - structDataBuilder_; + private java.lang.Object mimeType_ = ""; /** * * *
            -       * Data representation.
            -       * The structured JSON data for the document. It should conform to the
            -       * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
            -       * `INVALID_ARGUMENT` error is thrown.
            +       * The mime type of the document.
            +       * https://www.iana.org/assignments/media-types/media-types.xhtml.
                    * 
            * - * .google.protobuf.Struct struct_data = 3; + * string mime_type = 4; * - * @return Whether the structData field is set. + * @return The mimeType. */ - public boolean hasStructData() { - return ((bitField0_ & 0x00000004) != 0); + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
            -       * Data representation.
            -       * The structured JSON data for the document. It should conform to the
            -       * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
            -       * `INVALID_ARGUMENT` error is thrown.
            +       * The mime type of the document.
            +       * https://www.iana.org/assignments/media-types/media-types.xhtml.
                    * 
            * - * .google.protobuf.Struct struct_data = 3; + * string mime_type = 4; * - * @return The structData. + * @return The bytes for mimeType. */ - public com.google.protobuf.Struct getStructData() { - if (structDataBuilder_ == null) { - return structData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : structData_; + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; } else { - return structDataBuilder_.getMessage(); + return (com.google.protobuf.ByteString) ref; } } @@ -1053,23 +1357,20 @@ public com.google.protobuf.Struct getStructData() { * * *
            -       * Data representation.
            -       * The structured JSON data for the document. It should conform to the
            -       * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
            -       * `INVALID_ARGUMENT` error is thrown.
            +       * The mime type of the document.
            +       * https://www.iana.org/assignments/media-types/media-types.xhtml.
                    * 
            * - * .google.protobuf.Struct struct_data = 3; + * string mime_type = 4; + * + * @param value The mimeType to set. + * @return This builder for chaining. */ - public Builder setStructData(com.google.protobuf.Struct value) { - if (structDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - structData_ = value; - } else { - structDataBuilder_.setMessage(value); + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + mimeType_ = value; bitField0_ |= 0x00000004; onChanged(); return this; @@ -1079,21 +1380,17 @@ public Builder setStructData(com.google.protobuf.Struct value) { * * *
            -       * Data representation.
            -       * The structured JSON data for the document. It should conform to the
            -       * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
            -       * `INVALID_ARGUMENT` error is thrown.
            +       * The mime type of the document.
            +       * https://www.iana.org/assignments/media-types/media-types.xhtml.
                    * 
            * - * .google.protobuf.Struct struct_data = 3; + * string mime_type = 4; + * + * @return This builder for chaining. */ - public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue) { - if (structDataBuilder_ == null) { - structData_ = builderForValue.build(); - } else { - structDataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1102,17 +1399,139 @@ public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue) * * *
            -       * Data representation.
            -       * The structured JSON data for the document. It should conform to the
            -       * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
            -       * `INVALID_ARGUMENT` error is thrown.
            +       * The mime type of the document.
            +       * https://www.iana.org/assignments/media-types/media-types.xhtml.
                    * 
            * - * .google.protobuf.Struct struct_data = 3; + * string mime_type = 4; + * + * @param value The bytes for mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Struct structData_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + structDataBuilder_; + + /** + * + * + *
            +       * Data representation.
            +       * The structured JSON data for the document. It should conform to the
            +       * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
            +       * `INVALID_ARGUMENT` error is thrown.
            +       * 
            + * + * .google.protobuf.Struct struct_data = 3; + * + * @return Whether the structData field is set. + */ + public boolean hasStructData() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +       * Data representation.
            +       * The structured JSON data for the document. It should conform to the
            +       * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
            +       * `INVALID_ARGUMENT` error is thrown.
            +       * 
            + * + * .google.protobuf.Struct struct_data = 3; + * + * @return The structData. + */ + public com.google.protobuf.Struct getStructData() { + if (structDataBuilder_ == null) { + return structData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : structData_; + } else { + return structDataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Data representation.
            +       * The structured JSON data for the document. It should conform to the
            +       * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
            +       * `INVALID_ARGUMENT` error is thrown.
            +       * 
            + * + * .google.protobuf.Struct struct_data = 3; + */ + public Builder setStructData(com.google.protobuf.Struct value) { + if (structDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + structData_ = value; + } else { + structDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Data representation.
            +       * The structured JSON data for the document. It should conform to the
            +       * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
            +       * `INVALID_ARGUMENT` error is thrown.
            +       * 
            + * + * .google.protobuf.Struct struct_data = 3; + */ + public Builder setStructData(com.google.protobuf.Struct.Builder builderForValue) { + if (structDataBuilder_ == null) { + structData_ = builderForValue.build(); + } else { + structDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Data representation.
            +       * The structured JSON data for the document. It should conform to the
            +       * registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an
            +       * `INVALID_ARGUMENT` error is thrown.
            +       * 
            + * + * .google.protobuf.Struct struct_data = 3; */ public Builder mergeStructData(com.google.protobuf.Struct value) { if (structDataBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && structData_ != null && structData_ != com.google.protobuf.Struct.getDefaultInstance()) { getStructDataBuilder().mergeFrom(value); @@ -1123,7 +1542,7 @@ public Builder mergeStructData(com.google.protobuf.Struct value) { structDataBuilder_.mergeFrom(value); } if (structData_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -1142,7 +1561,7 @@ public Builder mergeStructData(com.google.protobuf.Struct value) { * .google.protobuf.Struct struct_data = 3; */ public Builder clearStructData() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); structData_ = null; if (structDataBuilder_ != null) { structDataBuilder_.dispose(); @@ -1165,7 +1584,7 @@ public Builder clearStructData() { * .google.protobuf.Struct struct_data = 3; */ public com.google.protobuf.Struct.Builder getStructDataBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return internalGetStructDataFieldBuilder().getBuilder(); } @@ -3668,1014 +4087,4065 @@ public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata getDefaultIns } } - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; + public interface StructuredContentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Chunk.StructuredContent) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; + /** + * + * + *
            +     * Output only. The structure type of the structured content.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructureType structure_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for structureType. + */ + int getStructureTypeValue(); - /** - * - * - *
            -   * The full resource name of the chunk.
            -   * Format:
            -   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
            -   *
            -   * This field must be a UTF-8 encoded string with a length limit of 1024
            -   * characters.
            -   * 
            - * - * 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; - } + /** + * + * + *
            +     * Output only. The structure type of the structured content.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructureType structure_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The structureType. + */ + com.google.cloud.discoveryengine.v1beta.Chunk.StructureType getStructureType(); + + /** + * + * + *
            +     * Output only. The content of the structured content.
            +     * 
            + * + * string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The content. + */ + java.lang.String getContent(); + + /** + * + * + *
            +     * Output only. The content of the structured content.
            +     * 
            + * + * string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for content. + */ + com.google.protobuf.ByteString getContentBytes(); } /** * * *
            -   * The full resource name of the chunk.
            -   * Format:
            -   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
            -   *
            -   * This field must be a UTF-8 encoded string with a length limit of 1024
            -   * characters.
            +   * The structured content information.
                * 
            * - * string name = 1; - * - * @return The bytes for name. + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Chunk.StructuredContent} */ - @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 StructuredContent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Chunk.StructuredContent) + StructuredContentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "StructuredContent"); } - } - public static final int ID_FIELD_NUMBER = 2; + // Use StructuredContent.newBuilder() to construct. + private StructuredContent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; + private StructuredContent() { + structureType_ = 0; + content_ = ""; + } - /** - * - * - *
            -   * Unique chunk ID of the current chunk.
            -   * 
            - * - * string id = 2; - * - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_StructuredContent_descriptor; } - } - /** - * - * - *
            -   * Unique chunk ID of the current chunk.
            -   * 
            - * - * string id = 2; - * - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_StructuredContent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent.class, + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent.Builder.class); } - } - public static final int CONTENT_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object content_ = ""; + public static final int STRUCTURE_TYPE_FIELD_NUMBER = 1; + private int structureType_ = 0; - /** - * - * - *
            -   * Content is a string from a document (parsed content).
            -   * 
            - * - * string content = 3; - * - * @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; + /** + * + * + *
            +     * Output only. The structure type of the structured content.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructureType structure_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for structureType. + */ + @java.lang.Override + public int getStructureTypeValue() { + return structureType_; } - } - /** - * - * - *
            -   * Content is a string from a document (parsed content).
            -   * 
            - * - * string content = 3; - * - * @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; + /** + * + * + *
            +     * Output only. The structure type of the structured content.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructureType structure_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The structureType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.StructureType getStructureType() { + com.google.cloud.discoveryengine.v1beta.Chunk.StructureType result = + com.google.cloud.discoveryengine.v1beta.Chunk.StructureType.forNumber(structureType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.StructureType.UNRECOGNIZED + : result; } - } - public static final int RELEVANCE_SCORE_FIELD_NUMBER = 8; - private double relevanceScore_ = 0D; + public static final int CONTENT_FIELD_NUMBER = 2; - /** - * - * - *
            -   * Output only. Represents the relevance score based on similarity.
            -   * Higher score indicates higher chunk relevance.
            -   * The score is in range [-1.0, 1.0].
            -   * Only populated on [SearchService.SearchResponse][].
            -   * 
            - * - * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return Whether the relevanceScore field is set. - */ - @java.lang.Override - public boolean hasRelevanceScore() { - return ((bitField0_ & 0x00000001) != 0); - } + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; - /** - * - * - *
            -   * Output only. Represents the relevance score based on similarity.
            -   * Higher score indicates higher chunk relevance.
            -   * The score is in range [-1.0, 1.0].
            -   * Only populated on [SearchService.SearchResponse][].
            -   * 
            - * - * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The relevanceScore. - */ - @java.lang.Override - public double getRelevanceScore() { - return relevanceScore_; - } + /** + * + * + *
            +     * Output only. The content of the structured content.
            +     * 
            + * + * string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } - public static final int DOCUMENT_METADATA_FIELD_NUMBER = 5; - private com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata documentMetadata_; + /** + * + * + *
            +     * Output only. The content of the structured content.
            +     * 
            + * + * string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } - /** - * - * - *
            -   * Metadata of the document from the current chunk.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; - * - * @return Whether the documentMetadata field is set. - */ - @java.lang.Override - public boolean hasDocumentMetadata() { - return ((bitField0_ & 0x00000002) != 0); - } + private byte memoizedIsInitialized = -1; - /** - * - * - *
            -   * Metadata of the document from the current chunk.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; - * - * @return The documentMetadata. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata getDocumentMetadata() { - return documentMetadata_ == null - ? com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.getDefaultInstance() - : documentMetadata_; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * - * - *
            -   * Metadata of the document from the current chunk.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadataOrBuilder - getDocumentMetadataOrBuilder() { - return documentMetadata_ == null - ? com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.getDefaultInstance() - : documentMetadata_; - } + memoizedIsInitialized = 1; + return true; + } - public static final int DERIVED_STRUCT_DATA_FIELD_NUMBER = 4; - private com.google.protobuf.Struct derivedStructData_; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (structureType_ + != com.google.cloud.discoveryengine.v1beta.Chunk.StructureType.STRUCTURE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, structureType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, content_); + } + getUnknownFields().writeTo(output); + } - /** - * - * - *
            -   * Output only. This field is OUTPUT_ONLY.
            -   * It contains derived data that are not in the original input document.
            -   * 
            - * - * - * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the derivedStructData field is set. - */ - @java.lang.Override - public boolean hasDerivedStructData() { - return ((bitField0_ & 0x00000004) != 0); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - * - * - *
            -   * Output only. This field is OUTPUT_ONLY.
            -   * It contains derived data that are not in the original input document.
            -   * 
            - * - * - * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The derivedStructData. - */ - @java.lang.Override - public com.google.protobuf.Struct getDerivedStructData() { - return derivedStructData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : derivedStructData_; - } + size = 0; + if (structureType_ + != com.google.cloud.discoveryengine.v1beta.Chunk.StructureType.STRUCTURE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, structureType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, content_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
            -   * Output only. This field is OUTPUT_ONLY.
            -   * It contains derived data that are not in the original input document.
            -   * 
            - * - * - * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { - return derivedStructData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : derivedStructData_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent other = + (com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent) obj; - public static final int PAGE_SPAN_FIELD_NUMBER = 6; - private com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan pageSpan_; + if (structureType_ != other.structureType_) return false; + if (!getContent().equals(other.getContent())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - /** - * - * - *
            -   * Page span of the chunk.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; - * - * @return Whether the pageSpan field is set. - */ - @java.lang.Override - public boolean hasPageSpan() { - return ((bitField0_ & 0x00000008) != 0); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STRUCTURE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + structureType_; + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - * - * - *
            -   * Page span of the chunk.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; - * - * @return The pageSpan. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan getPageSpan() { - return pageSpan_ == null - ? com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.getDefaultInstance() - : pageSpan_; - } + public static com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -   * Page span of the chunk.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpanOrBuilder getPageSpanOrBuilder() { - return pageSpan_ == null - ? com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.getDefaultInstance() - : pageSpan_; - } + public static com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int CHUNK_METADATA_FIELD_NUMBER = 7; - private com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunkMetadata_; + public static com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -   * Output only. Metadata of the current chunk.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the chunkMetadata field is set. - */ - @java.lang.Override - public boolean hasChunkMetadata() { - return ((bitField0_ & 0x00000010) != 0); - } + public static com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -   * Output only. Metadata of the current chunk.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The chunkMetadata. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata getChunkMetadata() { - return chunkMetadata_ == null - ? com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.getDefaultInstance() - : chunkMetadata_; - } + public static com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -   * Output only. Metadata of the current chunk.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadataOrBuilder - getChunkMetadataOrBuilder() { - return chunkMetadata_ == null - ? com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.getDefaultInstance() - : chunkMetadata_; - } + public static com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private byte memoizedIsInitialized = -1; + public static com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + public static com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, id_); + + public static com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, content_); + + public static com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(4, getDerivedStructData()); + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(5, getDocumentMetadata()); + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(6, getPageSpan()); + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(7, getChunkMetadata()); + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeDouble(8, relevanceScore_); + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * + * + *
            +     * The structured content information.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Chunk.StructuredContent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Chunk.StructuredContent) + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_StructuredContent_descriptor; + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, id_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, content_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDerivedStructData()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDocumentMetadata()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPageSpan()); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getChunkMetadata()); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(8, relevanceScore_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_StructuredContent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent.class, + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent.Builder.class); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Chunk)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.Chunk other = - (com.google.cloud.discoveryengine.v1beta.Chunk) obj; + // Construct using + // com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent.newBuilder() + private Builder() {} - if (!getName().equals(other.getName())) return false; - if (!getId().equals(other.getId())) return false; - if (!getContent().equals(other.getContent())) return false; - if (hasRelevanceScore() != other.hasRelevanceScore()) return false; - if (hasRelevanceScore()) { - if (java.lang.Double.doubleToLongBits(getRelevanceScore()) - != java.lang.Double.doubleToLongBits(other.getRelevanceScore())) return false; - } - if (hasDocumentMetadata() != other.hasDocumentMetadata()) return false; - if (hasDocumentMetadata()) { - if (!getDocumentMetadata().equals(other.getDocumentMetadata())) return false; - } - if (hasDerivedStructData() != other.hasDerivedStructData()) return false; - if (hasDerivedStructData()) { - if (!getDerivedStructData().equals(other.getDerivedStructData())) return false; - } - if (hasPageSpan() != other.hasPageSpan()) return false; - if (hasPageSpan()) { - if (!getPageSpan().equals(other.getPageSpan())) return false; - } - if (hasChunkMetadata() != other.hasChunkMetadata()) return false; - if (hasChunkMetadata()) { - if (!getChunkMetadata().equals(other.getChunkMetadata())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - @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) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContent().hashCode(); - if (hasRelevanceScore()) { - hash = (37 * hash) + RELEVANCE_SCORE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getRelevanceScore())); - } - if (hasDocumentMetadata()) { - hash = (37 * hash) + DOCUMENT_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getDocumentMetadata().hashCode(); - } - if (hasDerivedStructData()) { - hash = (37 * hash) + DERIVED_STRUCT_DATA_FIELD_NUMBER; - hash = (53 * hash) + getDerivedStructData().hashCode(); - } - if (hasPageSpan()) { - hash = (37 * hash) + PAGE_SPAN_FIELD_NUMBER; - hash = (53 * hash) + getPageSpan().hashCode(); - } - if (hasChunkMetadata()) { - hash = (37 * hash) + CHUNK_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getChunkMetadata().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + structureType_ = 0; + content_ = ""; + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_StructuredContent_descriptor; + } - public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent.getDefaultInstance(); + } - public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent build() { + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static com.google.cloud.discoveryengine.v1beta.Chunk 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.discoveryengine.v1beta.Chunk.StructuredContent buildPartial() { + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent result = + new com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.structureType_ = structureType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = content_; + } + } - public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent) other); + } else { + super.mergeFrom(other); + return this; + } + } - public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent.getDefaultInstance()) + return this; + if (other.structureType_ != 0) { + setStructureTypeValue(other.getStructureTypeValue()); + } + if (!other.getContent().isEmpty()) { + content_ = other.content_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static com.google.cloud.discoveryengine.v1beta.Chunk parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + structureType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + content_ = 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 structureType_ = 0; + + /** + * + * + *
            +       * Output only. The structure type of the structured content.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructureType structure_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for structureType. + */ + @java.lang.Override + public int getStructureTypeValue() { + return structureType_; + } + + /** + * + * + *
            +       * Output only. The structure type of the structured content.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructureType structure_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for structureType to set. + * @return This builder for chaining. + */ + public Builder setStructureTypeValue(int value) { + structureType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The structure type of the structured content.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructureType structure_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The structureType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.StructureType getStructureType() { + com.google.cloud.discoveryengine.v1beta.Chunk.StructureType result = + com.google.cloud.discoveryengine.v1beta.Chunk.StructureType.forNumber(structureType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.StructureType.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Output only. The structure type of the structured content.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructureType structure_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The structureType to set. + * @return This builder for chaining. + */ + public Builder setStructureType( + com.google.cloud.discoveryengine.v1beta.Chunk.StructureType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + structureType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The structure type of the structured content.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructureType structure_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearStructureType() { + bitField0_ = (bitField0_ & ~0x00000001); + structureType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object content_ = ""; + + /** + * + * + *
            +       * Output only. The content of the structured content.
            +       * 
            + * + * string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Output only. The content of the structured content.
            +       * 
            + * + * string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof 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; + } + } + + /** + * + * + *
            +       * Output only. The content of the structured content.
            +       * 
            + * + * string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The content of the structured content.
            +       * 
            + * + * string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The content of the structured content.
            +       * 
            + * + * string content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Chunk.StructuredContent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Chunk.StructuredContent) + private static final com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent(); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StructuredContent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Chunk.StructuredContent + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AnnotationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Output only. The structured content information.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the structuredContent field is set. + */ + boolean hasStructuredContent(); + + /** + * + * + *
            +     * Output only. The structured content information.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The structuredContent. + */ + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent getStructuredContent(); + + /** + * + * + *
            +     * Output only. The structured content information.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContentOrBuilder + getStructuredContentOrBuilder(); + + /** + * + * + *
            +     * Output only. Image id is provided if the structured content is based on
            +     * an image.
            +     * 
            + * + * string image_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The imageId. + */ + java.lang.String getImageId(); + + /** + * + * + *
            +     * Output only. Image id is provided if the structured content is based on
            +     * an image.
            +     * 
            + * + * string image_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for imageId. + */ + com.google.protobuf.ByteString getImageIdBytes(); + } + + /** + * + * + *
            +   * The annotation metadata includes structured content in the current chunk.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata} + */ + public static final class AnnotationMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata) + AnnotationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AnnotationMetadata"); + } + + // Use AnnotationMetadata.newBuilder() to construct. + private AnnotationMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AnnotationMetadata() { + imageId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_AnnotationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_AnnotationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata.class, + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata.Builder.class); + } + + private int bitField0_; + public static final int STRUCTURED_CONTENT_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent structuredContent_; + + /** + * + * + *
            +     * Output only. The structured content information.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the structuredContent field is set. + */ + @java.lang.Override + public boolean hasStructuredContent() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Output only. The structured content information.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The structuredContent. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent getStructuredContent() { + return structuredContent_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent.getDefaultInstance() + : structuredContent_; + } + + /** + * + * + *
            +     * Output only. The structured content information.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContentOrBuilder + getStructuredContentOrBuilder() { + return structuredContent_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent.getDefaultInstance() + : structuredContent_; + } + + public static final int IMAGE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object imageId_ = ""; + + /** + * + * + *
            +     * Output only. Image id is provided if the structured content is based on
            +     * an image.
            +     * 
            + * + * string image_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The imageId. + */ + @java.lang.Override + public java.lang.String getImageId() { + java.lang.Object ref = imageId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageId_ = s; + return s; + } + } + + /** + * + * + *
            +     * Output only. Image id is provided if the structured content is based on
            +     * an image.
            +     * 
            + * + * string image_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for imageId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImageIdBytes() { + java.lang.Object ref = imageId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getStructuredContent()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(imageId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, imageId_); + } + 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, getStructuredContent()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(imageId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, imageId_); + } + 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.v1beta.Chunk.AnnotationMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata other = + (com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata) obj; + + if (hasStructuredContent() != other.hasStructuredContent()) return false; + if (hasStructuredContent()) { + if (!getStructuredContent().equals(other.getStructuredContent())) return false; + } + if (!getImageId().equals(other.getImageId())) 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 (hasStructuredContent()) { + hash = (37 * hash) + STRUCTURED_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getStructuredContent().hashCode(); + } + hash = (37 * hash) + IMAGE_ID_FIELD_NUMBER; + hash = (53 * hash) + getImageId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata 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.v1beta.Chunk.AnnotationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata parseFrom( + 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.v1beta.Chunk.AnnotationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * The annotation metadata includes structured content in the current chunk.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata) + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_AnnotationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_AnnotationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata.class, + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStructuredContentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + structuredContent_ = null; + if (structuredContentBuilder_ != null) { + structuredContentBuilder_.dispose(); + structuredContentBuilder_ = null; + } + imageId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_AnnotationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata build() { + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata buildPartial() { + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata result = + new com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.structuredContent_ = + structuredContentBuilder_ == null + ? structuredContent_ + : structuredContentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.imageId_ = imageId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata + .getDefaultInstance()) return this; + if (other.hasStructuredContent()) { + mergeStructuredContent(other.getStructuredContent()); + } + if (!other.getImageId().isEmpty()) { + imageId_ = other.imageId_; + 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: + { + input.readMessage( + internalGetStructuredContentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + imageId_ = 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 com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent structuredContent_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent, + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContentOrBuilder> + structuredContentBuilder_; + + /** + * + * + *
            +       * Output only. The structured content information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the structuredContent field is set. + */ + public boolean hasStructuredContent() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Output only. The structured content information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The structuredContent. + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent + getStructuredContent() { + if (structuredContentBuilder_ == null) { + return structuredContent_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent.getDefaultInstance() + : structuredContent_; + } else { + return structuredContentBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Output only. The structured content information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStructuredContent( + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent value) { + if (structuredContentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + structuredContent_ = value; + } else { + structuredContentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The structured content information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStructuredContent( + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent.Builder builderForValue) { + if (structuredContentBuilder_ == null) { + structuredContent_ = builderForValue.build(); + } else { + structuredContentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The structured content information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStructuredContent( + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent value) { + if (structuredContentBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && structuredContent_ != null + && structuredContent_ + != com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent + .getDefaultInstance()) { + getStructuredContentBuilder().mergeFrom(value); + } else { + structuredContent_ = value; + } + } else { + structuredContentBuilder_.mergeFrom(value); + } + if (structuredContent_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Output only. The structured content information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStructuredContent() { + bitField0_ = (bitField0_ & ~0x00000001); + structuredContent_ = null; + if (structuredContentBuilder_ != null) { + structuredContentBuilder_.dispose(); + structuredContentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The structured content information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent.Builder + getStructuredContentBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetStructuredContentFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Output only. The structured content information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContentOrBuilder + getStructuredContentOrBuilder() { + if (structuredContentBuilder_ != null) { + return structuredContentBuilder_.getMessageOrBuilder(); + } else { + return structuredContent_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent.getDefaultInstance() + : structuredContent_; + } + } + + /** + * + * + *
            +       * Output only. The structured content information.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.StructuredContent structured_content = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent, + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContentOrBuilder> + internalGetStructuredContentFieldBuilder() { + if (structuredContentBuilder_ == null) { + structuredContentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent, + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContent.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.StructuredContentOrBuilder>( + getStructuredContent(), getParentForChildren(), isClean()); + structuredContent_ = null; + } + return structuredContentBuilder_; + } + + private java.lang.Object imageId_ = ""; + + /** + * + * + *
            +       * Output only. Image id is provided if the structured content is based on
            +       * an image.
            +       * 
            + * + * string image_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The imageId. + */ + public java.lang.String getImageId() { + java.lang.Object ref = imageId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Output only. Image id is provided if the structured content is based on
            +       * an image.
            +       * 
            + * + * string image_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for imageId. + */ + public com.google.protobuf.ByteString getImageIdBytes() { + java.lang.Object ref = imageId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Output only. Image id is provided if the structured content is based on
            +       * an image.
            +       * 
            + * + * string image_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The imageId to set. + * @return This builder for chaining. + */ + public Builder setImageId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + imageId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Image id is provided if the structured content is based on
            +       * an image.
            +       * 
            + * + * string image_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearImageId() { + imageId_ = getDefaultInstance().getImageId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Image id is provided if the structured content is based on
            +       * an image.
            +       * 
            + * + * string image_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for imageId to set. + * @return This builder for chaining. + */ + public Builder setImageIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata) + private static final com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Chunk.AnnotationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * The full resource name of the chunk.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
            +   *
            +   * This field must be a UTF-8 encoded string with a length limit of 1024
            +   * characters.
            +   * 
            + * + * 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 full resource name of the chunk.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
            +   *
            +   * This field must be a UTF-8 encoded string with a length limit of 1024
            +   * characters.
            +   * 
            + * + * 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 ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
            +   * Unique chunk ID of the current chunk.
            +   * 
            + * + * string id = 2; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + + /** + * + * + *
            +   * Unique chunk ID of the current chunk.
            +   * 
            + * + * string id = 2; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object content_ = ""; + + /** + * + * + *
            +   * Content is a string from a document (parsed content).
            +   * 
            + * + * string content = 3; + * + * @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; + } + } + + /** + * + * + *
            +   * Content is a string from a document (parsed content).
            +   * 
            + * + * string content = 3; + * + * @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 RELEVANCE_SCORE_FIELD_NUMBER = 8; + private double relevanceScore_ = 0D; + + /** + * + * + *
            +   * Output only. Represents the relevance score based on similarity.
            +   * Higher score indicates higher chunk relevance.
            +   * The score is in range [-1.0, 1.0].
            +   * Only populated on
            +   * [SearchResponse][google.cloud.discoveryengine.v1beta.SearchResponse].
            +   * 
            + * + * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the relevanceScore field is set. + */ + @java.lang.Override + public boolean hasRelevanceScore() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. Represents the relevance score based on similarity.
            +   * Higher score indicates higher chunk relevance.
            +   * The score is in range [-1.0, 1.0].
            +   * Only populated on
            +   * [SearchResponse][google.cloud.discoveryengine.v1beta.SearchResponse].
            +   * 
            + * + * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The relevanceScore. + */ + @java.lang.Override + public double getRelevanceScore() { + return relevanceScore_; + } + + public static final int DOCUMENT_METADATA_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata documentMetadata_; + + /** + * + * + *
            +   * Metadata of the document from the current chunk.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + * @return Whether the documentMetadata field is set. + */ + @java.lang.Override + public boolean hasDocumentMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Metadata of the document from the current chunk.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + * @return The documentMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata getDocumentMetadata() { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } + + /** + * + * + *
            +   * Metadata of the document from the current chunk.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder() { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } + + public static final int DERIVED_STRUCT_DATA_FIELD_NUMBER = 4; + private com.google.protobuf.Struct derivedStructData_; + + /** + * + * + *
            +   * Output only. This field is OUTPUT_ONLY.
            +   * It contains derived data that are not in the original input document.
            +   * 
            + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the derivedStructData field is set. + */ + @java.lang.Override + public boolean hasDerivedStructData() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Output only. This field is OUTPUT_ONLY.
            +   * It contains derived data that are not in the original input document.
            +   * 
            + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The derivedStructData. + */ + @java.lang.Override + public com.google.protobuf.Struct getDerivedStructData() { + return derivedStructData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : derivedStructData_; + } + + /** + * + * + *
            +   * Output only. This field is OUTPUT_ONLY.
            +   * It contains derived data that are not in the original input document.
            +   * 
            + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { + return derivedStructData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : derivedStructData_; + } + + public static final int PAGE_SPAN_FIELD_NUMBER = 6; + private com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan pageSpan_; + + /** + * + * + *
            +   * Page span of the chunk.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + * + * @return Whether the pageSpan field is set. + */ + @java.lang.Override + public boolean hasPageSpan() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Page span of the chunk.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + * + * @return The pageSpan. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan getPageSpan() { + return pageSpan_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.getDefaultInstance() + : pageSpan_; + } + + /** + * + * + *
            +   * Page span of the chunk.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpanOrBuilder getPageSpanOrBuilder() { + return pageSpan_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.getDefaultInstance() + : pageSpan_; + } + + public static final int CHUNK_METADATA_FIELD_NUMBER = 7; + private com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunkMetadata_; + + /** + * + * + *
            +   * Output only. Metadata of the current chunk.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the chunkMetadata field is set. + */ + @java.lang.Override + public boolean hasChunkMetadata() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +   * Output only. Metadata of the current chunk.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The chunkMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata getChunkMetadata() { + return chunkMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.getDefaultInstance() + : chunkMetadata_; + } + + /** + * + * + *
            +   * Output only. Metadata of the current chunk.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadataOrBuilder + getChunkMetadataOrBuilder() { + return chunkMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.getDefaultInstance() + : chunkMetadata_; + } + + public static final int DATA_URLS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList dataUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * Output only. Image Data URLs if the current chunk contains images.
            +   * Data URLs are composed of four parts: a prefix (data:), a MIME type
            +   * indicating the type of data, an optional base64 token if non-textual,
            +   * and the data itself:
            +   * data:[<mediatype>][;base64],<data>
            +   * 
            + * + * repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the dataUrls. + */ + public com.google.protobuf.ProtocolStringList getDataUrlsList() { + return dataUrls_; + } + + /** + * + * + *
            +   * Output only. Image Data URLs if the current chunk contains images.
            +   * Data URLs are composed of four parts: a prefix (data:), a MIME type
            +   * indicating the type of data, an optional base64 token if non-textual,
            +   * and the data itself:
            +   * data:[<mediatype>][;base64],<data>
            +   * 
            + * + * repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of dataUrls. + */ + public int getDataUrlsCount() { + return dataUrls_.size(); + } + + /** + * + * + *
            +   * Output only. Image Data URLs if the current chunk contains images.
            +   * Data URLs are composed of four parts: a prefix (data:), a MIME type
            +   * indicating the type of data, an optional base64 token if non-textual,
            +   * and the data itself:
            +   * data:[<mediatype>][;base64],<data>
            +   * 
            + * + * repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The dataUrls at the given index. + */ + public java.lang.String getDataUrls(int index) { + return dataUrls_.get(index); + } + + /** + * + * + *
            +   * Output only. Image Data URLs if the current chunk contains images.
            +   * Data URLs are composed of four parts: a prefix (data:), a MIME type
            +   * indicating the type of data, an optional base64 token if non-textual,
            +   * and the data itself:
            +   * data:[<mediatype>][;base64],<data>
            +   * 
            + * + * repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the dataUrls at the given index. + */ + public com.google.protobuf.ByteString getDataUrlsBytes(int index) { + return dataUrls_.getByteString(index); + } + + public static final int ANNOTATION_CONTENTS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList annotationContents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * Output only. Annotation contents if the current chunk contains annotations.
            +   * 
            + * + * repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the annotationContents. + */ + public com.google.protobuf.ProtocolStringList getAnnotationContentsList() { + return annotationContents_; + } + + /** + * + * + *
            +   * Output only. Annotation contents if the current chunk contains annotations.
            +   * 
            + * + * repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of annotationContents. + */ + public int getAnnotationContentsCount() { + return annotationContents_.size(); + } + + /** + * + * + *
            +   * Output only. Annotation contents if the current chunk contains annotations.
            +   * 
            + * + * repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The annotationContents at the given index. + */ + public java.lang.String getAnnotationContents(int index) { + return annotationContents_.get(index); + } + + /** + * + * + *
            +   * Output only. Annotation contents if the current chunk contains annotations.
            +   * 
            + * + * repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the annotationContents at the given index. + */ + public com.google.protobuf.ByteString getAnnotationContentsBytes(int index) { + return annotationContents_.getByteString(index); + } + + public static final int ANNOTATION_METADATA_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private java.util.List + annotationMetadata_; + + /** + * + * + *
            +   * Output only. The annotation metadata includes structured content in the
            +   * current chunk.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getAnnotationMetadataList() { + return annotationMetadata_; + } + + /** + * + * + *
            +   * Output only. The annotation metadata includes structured content in the
            +   * current chunk.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadataOrBuilder> + getAnnotationMetadataOrBuilderList() { + return annotationMetadata_; + } + + /** + * + * + *
            +   * Output only. The annotation metadata includes structured content in the
            +   * current chunk.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getAnnotationMetadataCount() { + return annotationMetadata_.size(); + } + + /** + * + * + *
            +   * Output only. The annotation metadata includes structured content in the
            +   * current chunk.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata getAnnotationMetadata( + int index) { + return annotationMetadata_.get(index); + } + + /** + * + * + *
            +   * Output only. The annotation metadata includes structured content in the
            +   * current chunk.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadataOrBuilder + getAnnotationMetadataOrBuilder(int index) { + return annotationMetadata_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, content_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getDerivedStructData()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getDocumentMetadata()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getPageSpan()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(7, getChunkMetadata()); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(8, relevanceScore_); + } + for (int i = 0; i < dataUrls_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, dataUrls_.getRaw(i)); + } + for (int i = 0; i < annotationContents_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, annotationContents_.getRaw(i)); + } + for (int i = 0; i < annotationMetadata_.size(); i++) { + output.writeMessage(12, annotationMetadata_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, content_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDerivedStructData()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDocumentMetadata()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPageSpan()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getChunkMetadata()); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(8, relevanceScore_); + } + { + int dataSize = 0; + for (int i = 0; i < dataUrls_.size(); i++) { + dataSize += computeStringSizeNoTag(dataUrls_.getRaw(i)); + } + size += dataSize; + size += 1 * getDataUrlsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < annotationContents_.size(); i++) { + dataSize += computeStringSizeNoTag(annotationContents_.getRaw(i)); + } + size += dataSize; + size += 1 * getAnnotationContentsList().size(); + } + for (int i = 0; i < annotationMetadata_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, annotationMetadata_.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.v1beta.Chunk)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Chunk other = + (com.google.cloud.discoveryengine.v1beta.Chunk) obj; + + if (!getName().equals(other.getName())) return false; + if (!getId().equals(other.getId())) return false; + if (!getContent().equals(other.getContent())) return false; + if (hasRelevanceScore() != other.hasRelevanceScore()) return false; + if (hasRelevanceScore()) { + if (java.lang.Double.doubleToLongBits(getRelevanceScore()) + != java.lang.Double.doubleToLongBits(other.getRelevanceScore())) return false; + } + if (hasDocumentMetadata() != other.hasDocumentMetadata()) return false; + if (hasDocumentMetadata()) { + if (!getDocumentMetadata().equals(other.getDocumentMetadata())) return false; + } + if (hasDerivedStructData() != other.hasDerivedStructData()) return false; + if (hasDerivedStructData()) { + if (!getDerivedStructData().equals(other.getDerivedStructData())) return false; + } + if (hasPageSpan() != other.hasPageSpan()) return false; + if (hasPageSpan()) { + if (!getPageSpan().equals(other.getPageSpan())) return false; + } + if (hasChunkMetadata() != other.hasChunkMetadata()) return false; + if (hasChunkMetadata()) { + if (!getChunkMetadata().equals(other.getChunkMetadata())) return false; + } + if (!getDataUrlsList().equals(other.getDataUrlsList())) return false; + if (!getAnnotationContentsList().equals(other.getAnnotationContentsList())) return false; + if (!getAnnotationMetadataList().equals(other.getAnnotationMetadataList())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + if (hasRelevanceScore()) { + hash = (37 * hash) + RELEVANCE_SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getRelevanceScore())); + } + if (hasDocumentMetadata()) { + hash = (37 * hash) + DOCUMENT_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getDocumentMetadata().hashCode(); + } + if (hasDerivedStructData()) { + hash = (37 * hash) + DERIVED_STRUCT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getDerivedStructData().hashCode(); + } + if (hasPageSpan()) { + hash = (37 * hash) + PAGE_SPAN_FIELD_NUMBER; + hash = (53 * hash) + getPageSpan().hashCode(); + } + if (hasChunkMetadata()) { + hash = (37 * hash) + CHUNK_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getChunkMetadata().hashCode(); + } + if (getDataUrlsCount() > 0) { + hash = (37 * hash) + DATA_URLS_FIELD_NUMBER; + hash = (53 * hash) + getDataUrlsList().hashCode(); + } + if (getAnnotationContentsCount() > 0) { + hash = (37 * hash) + ANNOTATION_CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationContentsList().hashCode(); + } + if (getAnnotationMetadataCount() > 0) { + hash = (37 * hash) + ANNOTATION_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getAnnotationMetadataList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk 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.v1beta.Chunk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom( + 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.v1beta.Chunk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.Chunk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Chunk captures all raw metadata information of items to be recommended or
            +   * searched in the chunk mode.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Chunk} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Chunk) + com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Chunk.class, + com.google.cloud.discoveryengine.v1beta.Chunk.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.Chunk.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDocumentMetadataFieldBuilder(); + internalGetDerivedStructDataFieldBuilder(); + internalGetPageSpanFieldBuilder(); + internalGetChunkMetadataFieldBuilder(); + internalGetAnnotationMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + id_ = ""; + content_ = ""; + relevanceScore_ = 0D; + documentMetadata_ = null; + if (documentMetadataBuilder_ != null) { + documentMetadataBuilder_.dispose(); + documentMetadataBuilder_ = null; + } + derivedStructData_ = null; + if (derivedStructDataBuilder_ != null) { + derivedStructDataBuilder_.dispose(); + derivedStructDataBuilder_ = null; + } + pageSpan_ = null; + if (pageSpanBuilder_ != null) { + pageSpanBuilder_.dispose(); + pageSpanBuilder_ = null; + } + chunkMetadata_ = null; + if (chunkMetadataBuilder_ != null) { + chunkMetadataBuilder_.dispose(); + chunkMetadataBuilder_ = null; + } + dataUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + annotationContents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (annotationMetadataBuilder_ == null) { + annotationMetadata_ = java.util.Collections.emptyList(); + } else { + annotationMetadata_ = null; + annotationMetadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000400); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ChunkProto + .internal_static_google_cloud_discoveryengine_v1beta_Chunk_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Chunk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk build() { + com.google.cloud.discoveryengine.v1beta.Chunk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Chunk buildPartial() { + com.google.cloud.discoveryengine.v1beta.Chunk result = + new com.google.cloud.discoveryengine.v1beta.Chunk(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.discoveryengine.v1beta.Chunk result) { + if (annotationMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0)) { + annotationMetadata_ = java.util.Collections.unmodifiableList(annotationMetadata_); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.annotationMetadata_ = annotationMetadata_; + } else { + result.annotationMetadata_ = annotationMetadataBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Chunk result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.content_ = content_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.relevanceScore_ = relevanceScore_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.documentMetadata_ = + documentMetadataBuilder_ == null ? documentMetadata_ : documentMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.derivedStructData_ = + derivedStructDataBuilder_ == null + ? derivedStructData_ + : derivedStructDataBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pageSpan_ = pageSpanBuilder_ == null ? pageSpan_ : pageSpanBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.chunkMetadata_ = + chunkMetadataBuilder_ == null ? chunkMetadata_ : chunkMetadataBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + dataUrls_.makeImmutable(); + result.dataUrls_ = dataUrls_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + annotationContents_.makeImmutable(); + result.annotationContents_ = annotationContents_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Chunk) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Chunk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Chunk other) { + if (other == com.google.cloud.discoveryengine.v1beta.Chunk.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getContent().isEmpty()) { + content_ = other.content_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRelevanceScore()) { + setRelevanceScore(other.getRelevanceScore()); + } + if (other.hasDocumentMetadata()) { + mergeDocumentMetadata(other.getDocumentMetadata()); + } + if (other.hasDerivedStructData()) { + mergeDerivedStructData(other.getDerivedStructData()); + } + if (other.hasPageSpan()) { + mergePageSpan(other.getPageSpan()); + } + if (other.hasChunkMetadata()) { + mergeChunkMetadata(other.getChunkMetadata()); + } + if (!other.dataUrls_.isEmpty()) { + if (dataUrls_.isEmpty()) { + dataUrls_ = other.dataUrls_; + bitField0_ |= 0x00000100; + } else { + ensureDataUrlsIsMutable(); + dataUrls_.addAll(other.dataUrls_); + } + onChanged(); + } + if (!other.annotationContents_.isEmpty()) { + if (annotationContents_.isEmpty()) { + annotationContents_ = other.annotationContents_; + bitField0_ |= 0x00000200; + } else { + ensureAnnotationContentsIsMutable(); + annotationContents_.addAll(other.annotationContents_); + } + onChanged(); + } + if (annotationMetadataBuilder_ == null) { + if (!other.annotationMetadata_.isEmpty()) { + if (annotationMetadata_.isEmpty()) { + annotationMetadata_ = other.annotationMetadata_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureAnnotationMetadataIsMutable(); + annotationMetadata_.addAll(other.annotationMetadata_); + } + onChanged(); + } + } else { + if (!other.annotationMetadata_.isEmpty()) { + if (annotationMetadataBuilder_.isEmpty()) { + annotationMetadataBuilder_.dispose(); + annotationMetadataBuilder_ = null; + annotationMetadata_ = other.annotationMetadata_; + bitField0_ = (bitField0_ & ~0x00000400); + annotationMetadataBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAnnotationMetadataFieldBuilder() + : null; + } else { + annotationMetadataBuilder_.addAllMessages(other.annotationMetadata_); + } + } + } + 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: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + content_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetDerivedStructDataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetDocumentMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetPageSpanFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetChunkMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 65: + { + relevanceScore_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 65 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDataUrlsIsMutable(); + dataUrls_.add(s); + break; + } // case 74 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAnnotationContentsIsMutable(); + annotationContents_.add(s); + break; + } // case 90 + case 98: + { + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata.parser(), + extensionRegistry); + if (annotationMetadataBuilder_ == null) { + ensureAnnotationMetadataIsMutable(); + annotationMetadata_.add(m); + } else { + annotationMetadataBuilder_.addMessage(m); + } + break; + } // case 98 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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 full resource name of the chunk.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
            +     *
            +     * This field must be a UTF-8 encoded string with a length limit of 1024
            +     * characters.
            +     * 
            + * + * 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 full resource name of the chunk.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
            +     *
            +     * This field must be a UTF-8 encoded string with a length limit of 1024
            +     * characters.
            +     * 
            + * + * 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 full resource name of the chunk.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
            +     *
            +     * This field must be a UTF-8 encoded string with a length limit of 1024
            +     * characters.
            +     * 
            + * + * 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 full resource name of the chunk.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
            +     *
            +     * This field must be a UTF-8 encoded string with a length limit of 1024
            +     * characters.
            +     * 
            + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * The full resource name of the chunk.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
            +     *
            +     * This field must be a UTF-8 encoded string with a length limit of 1024
            +     * characters.
            +     * 
            + * + * 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 id_ = ""; + + /** + * + * + *
            +     * Unique chunk ID of the current chunk.
            +     * 
            + * + * string id = 2; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Unique chunk ID of the current chunk.
            +     * 
            + * + * string id = 2; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Unique chunk ID of the current chunk.
            +     * 
            + * + * string id = 2; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Unique chunk ID of the current chunk.
            +     * 
            + * + * string id = 2; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Unique chunk ID of the current chunk.
            +     * 
            + * + * string id = 2; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object content_ = ""; + + /** + * + * + *
            +     * Content is a string from a document (parsed content).
            +     * 
            + * + * string content = 3; + * + * @return The content. + */ + public java.lang.String getContent() { + java.lang.Object ref = content_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + content_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Content is a string from a document (parsed content).
            +     * 
            + * + * string content = 3; + * + * @return The bytes for content. + */ + public com.google.protobuf.ByteString getContentBytes() { + java.lang.Object ref = content_; + if (ref instanceof 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; + } + } + + /** + * + * + *
            +     * Content is a string from a document (parsed content).
            +     * 
            + * + * string content = 3; + * + * @param value The content to set. + * @return This builder for chaining. + */ + public Builder setContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Content is a string from a document (parsed content).
            +     * 
            + * + * string content = 3; + * + * @return This builder for chaining. + */ + public Builder clearContent() { + content_ = getDefaultInstance().getContent(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Chunk parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +     * Content is a string from a document (parsed content).
            +     * 
            + * + * string content = 3; + * + * @param value The bytes for content to set. + * @return This builder for chaining. + */ + public Builder setContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + content_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + private double relevanceScore_; - public static com.google.cloud.discoveryengine.v1beta.Chunk parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +     * Output only. Represents the relevance score based on similarity.
            +     * Higher score indicates higher chunk relevance.
            +     * The score is in range [-1.0, 1.0].
            +     * Only populated on
            +     * [SearchResponse][google.cloud.discoveryengine.v1beta.SearchResponse].
            +     * 
            + * + * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the relevanceScore field is set. + */ + @java.lang.Override + public boolean hasRelevanceScore() { + return ((bitField0_ & 0x00000008) != 0); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + /** + * + * + *
            +     * Output only. Represents the relevance score based on similarity.
            +     * Higher score indicates higher chunk relevance.
            +     * The score is in range [-1.0, 1.0].
            +     * Only populated on
            +     * [SearchResponse][google.cloud.discoveryengine.v1beta.SearchResponse].
            +     * 
            + * + * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The relevanceScore. + */ + @java.lang.Override + public double getRelevanceScore() { + return relevanceScore_; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
            +     * Output only. Represents the relevance score based on similarity.
            +     * Higher score indicates higher chunk relevance.
            +     * The score is in range [-1.0, 1.0].
            +     * Only populated on
            +     * [SearchResponse][google.cloud.discoveryengine.v1beta.SearchResponse].
            +     * 
            + * + * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The relevanceScore to set. + * @return This builder for chaining. + */ + public Builder setRelevanceScore(double value) { - public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.Chunk prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + relevanceScore_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
            +     * Output only. Represents the relevance score based on similarity.
            +     * Higher score indicates higher chunk relevance.
            +     * The score is in range [-1.0, 1.0].
            +     * Only populated on
            +     * [SearchResponse][google.cloud.discoveryengine.v1beta.SearchResponse].
            +     * 
            + * + * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearRelevanceScore() { + bitField0_ = (bitField0_ & ~0x00000008); + relevanceScore_ = 0D; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + private com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata documentMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata, + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadataOrBuilder> + documentMetadataBuilder_; - /** - * - * - *
            -   * Chunk captures all raw metadata information of items to be recommended or
            -   * searched in the chunk mode.
            -   * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Chunk} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Chunk) - com.google.cloud.discoveryengine.v1beta.ChunkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ChunkProto - .internal_static_google_cloud_discoveryengine_v1beta_Chunk_descriptor; + /** + * + * + *
            +     * Metadata of the document from the current chunk.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + * + * @return Whether the documentMetadata field is set. + */ + public boolean hasDocumentMetadata() { + return ((bitField0_ & 0x00000010) != 0); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ChunkProto - .internal_static_google_cloud_discoveryengine_v1beta_Chunk_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Chunk.class, - com.google.cloud.discoveryengine.v1beta.Chunk.Builder.class); + /** + * + * + *
            +     * Metadata of the document from the current chunk.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + * + * @return The documentMetadata. + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata getDocumentMetadata() { + if (documentMetadataBuilder_ == null) { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } else { + return documentMetadataBuilder_.getMessage(); + } } - // Construct using com.google.cloud.discoveryengine.v1beta.Chunk.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + * + * + *
            +     * Metadata of the document from the current chunk.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + */ + public Builder setDocumentMetadata( + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata value) { + if (documentMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + documentMetadata_ = value; + } else { + documentMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * + * + *
            +     * Metadata of the document from the current chunk.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + */ + public Builder setDocumentMetadata( + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.Builder builderForValue) { + if (documentMetadataBuilder_ == null) { + documentMetadata_ = builderForValue.build(); + } else { + documentMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetDocumentMetadataFieldBuilder(); - internalGetDerivedStructDataFieldBuilder(); - internalGetPageSpanFieldBuilder(); - internalGetChunkMetadataFieldBuilder(); + /** + * + * + *
            +     * Metadata of the document from the current chunk.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + */ + public Builder mergeDocumentMetadata( + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata value) { + if (documentMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && documentMetadata_ != null + && documentMetadata_ + != com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata + .getDefaultInstance()) { + getDocumentMetadataBuilder().mergeFrom(value); + } else { + documentMetadata_ = value; + } + } else { + documentMetadataBuilder_.mergeFrom(value); + } + if (documentMetadata_ != null) { + bitField0_ |= 0x00000010; + onChanged(); } + return this; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - id_ = ""; - content_ = ""; - relevanceScore_ = 0D; + /** + * + * + *
            +     * Metadata of the document from the current chunk.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + */ + public Builder clearDocumentMetadata() { + bitField0_ = (bitField0_ & ~0x00000010); documentMetadata_ = null; if (documentMetadataBuilder_ != null) { documentMetadataBuilder_.dispose(); documentMetadataBuilder_ = null; } - derivedStructData_ = null; - if (derivedStructDataBuilder_ != null) { - derivedStructDataBuilder_.dispose(); - derivedStructDataBuilder_ = null; - } - pageSpan_ = null; - if (pageSpanBuilder_ != null) { - pageSpanBuilder_.dispose(); - pageSpanBuilder_ = null; - } - chunkMetadata_ = null; - if (chunkMetadataBuilder_ != null) { - chunkMetadataBuilder_.dispose(); - chunkMetadataBuilder_ = null; - } + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ChunkProto - .internal_static_google_cloud_discoveryengine_v1beta_Chunk_descriptor; + /** + * + * + *
            +     * Metadata of the document from the current chunk.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.Builder + getDocumentMetadataBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetDocumentMetadataFieldBuilder().getBuilder(); } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Chunk getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Chunk.getDefaultInstance(); + /** + * + * + *
            +     * Metadata of the document from the current chunk.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadataOrBuilder + getDocumentMetadataOrBuilder() { + if (documentMetadataBuilder_ != null) { + return documentMetadataBuilder_.getMessageOrBuilder(); + } else { + return documentMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.getDefaultInstance() + : documentMetadata_; + } } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Chunk build() { - com.google.cloud.discoveryengine.v1beta.Chunk result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
            +     * Metadata of the document from the current chunk.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata, + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadataOrBuilder> + internalGetDocumentMetadataFieldBuilder() { + if (documentMetadataBuilder_ == null) { + documentMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata, + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadataOrBuilder>( + getDocumentMetadata(), getParentForChildren(), isClean()); + documentMetadata_ = null; } - return result; + return documentMetadataBuilder_; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Chunk buildPartial() { - com.google.cloud.discoveryengine.v1beta.Chunk result = - new com.google.cloud.discoveryengine.v1beta.Chunk(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; + private com.google.protobuf.Struct derivedStructData_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + derivedStructDataBuilder_; + + /** + * + * + *
            +     * Output only. This field is OUTPUT_ONLY.
            +     * It contains derived data that are not in the original input document.
            +     * 
            + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the derivedStructData field is set. + */ + public boolean hasDerivedStructData() { + return ((bitField0_ & 0x00000020) != 0); } - private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Chunk result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.content_ = content_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.relevanceScore_ = relevanceScore_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.documentMetadata_ = - documentMetadataBuilder_ == null ? documentMetadata_ : documentMetadataBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.derivedStructData_ = - derivedStructDataBuilder_ == null - ? derivedStructData_ - : derivedStructDataBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.pageSpan_ = pageSpanBuilder_ == null ? pageSpan_ : pageSpanBuilder_.build(); - to_bitField0_ |= 0x00000008; + /** + * + * + *
            +     * Output only. This field is OUTPUT_ONLY.
            +     * It contains derived data that are not in the original input document.
            +     * 
            + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The derivedStructData. + */ + public com.google.protobuf.Struct getDerivedStructData() { + if (derivedStructDataBuilder_ == null) { + return derivedStructData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : derivedStructData_; + } else { + return derivedStructDataBuilder_.getMessage(); } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.chunkMetadata_ = - chunkMetadataBuilder_ == null ? chunkMetadata_ : chunkMetadataBuilder_.build(); - to_bitField0_ |= 0x00000010; + } + + /** + * + * + *
            +     * Output only. This field is OUTPUT_ONLY.
            +     * It contains derived data that are not in the original input document.
            +     * 
            + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDerivedStructData(com.google.protobuf.Struct value) { + if (derivedStructDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + derivedStructData_ = value; + } else { + derivedStructDataBuilder_.setMessage(value); } - result.bitField0_ |= to_bitField0_; + bitField0_ |= 0x00000020; + onChanged(); + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.Chunk) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.Chunk) other); + /** + * + * + *
            +     * Output only. This field is OUTPUT_ONLY.
            +     * It contains derived data that are not in the original input document.
            +     * 
            + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDerivedStructData(com.google.protobuf.Struct.Builder builderForValue) { + if (derivedStructDataBuilder_ == null) { + derivedStructData_ = builderForValue.build(); } else { - super.mergeFrom(other); - return this; + derivedStructDataBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000020; + onChanged(); + return this; } - public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Chunk other) { - if (other == com.google.cloud.discoveryengine.v1beta.Chunk.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000002; - onChanged(); + /** + * + * + *
            +     * Output only. This field is OUTPUT_ONLY.
            +     * It contains derived data that are not in the original input document.
            +     * 
            + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDerivedStructData(com.google.protobuf.Struct value) { + if (derivedStructDataBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && derivedStructData_ != null + && derivedStructData_ != com.google.protobuf.Struct.getDefaultInstance()) { + getDerivedStructDataBuilder().mergeFrom(value); + } else { + derivedStructData_ = value; + } + } else { + derivedStructDataBuilder_.mergeFrom(value); } - if (!other.getContent().isEmpty()) { - content_ = other.content_; - bitField0_ |= 0x00000004; + if (derivedStructData_ != null) { + bitField0_ |= 0x00000020; onChanged(); } - if (other.hasRelevanceScore()) { - setRelevanceScore(other.getRelevanceScore()); - } - if (other.hasDocumentMetadata()) { - mergeDocumentMetadata(other.getDocumentMetadata()); - } - if (other.hasDerivedStructData()) { - mergeDerivedStructData(other.getDerivedStructData()); - } - if (other.hasPageSpan()) { - mergePageSpan(other.getPageSpan()); - } - if (other.hasChunkMetadata()) { - mergeChunkMetadata(other.getChunkMetadata()); - } - 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. This field is OUTPUT_ONLY.
            +     * It contains derived data that are not in the original input document.
            +     * 
            + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDerivedStructData() { + bitField0_ = (bitField0_ & ~0x00000020); + derivedStructData_ = null; + if (derivedStructDataBuilder_ != null) { + derivedStructDataBuilder_.dispose(); + derivedStructDataBuilder_ = null; } - 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: - { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - content_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetDerivedStructDataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 34 - case 42: - { - input.readMessage( - internalGetDocumentMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage( - internalGetPageSpanFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 50 - case 58: - { - input.readMessage( - internalGetChunkMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 65: - { - relevanceScore_ = input.readDouble(); - bitField0_ |= 0x00000008; - break; - } // case 65 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - 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 bitField0_; - - private java.lang.Object name_ = ""; - /** * * *
            -     * The full resource name of the chunk.
            -     * Format:
            -     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
            -     *
            -     * This field must be a UTF-8 encoded string with a length limit of 1024
            -     * characters.
            +     * Output only. This field is OUTPUT_ONLY.
            +     * It contains derived data that are not in the original input document.
                  * 
            * - * string name = 1; + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Struct.Builder getDerivedStructDataBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetDerivedStructDataFieldBuilder().getBuilder(); + } + + /** * - * @return The name. + * + *
            +     * Output only. This field is OUTPUT_ONLY.
            +     * It contains derived data that are not in the original input document.
            +     * 
            + * + * + * .google.protobuf.Struct derived_struct_data = 4 [(.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.StructOrBuilder getDerivedStructDataOrBuilder() { + if (derivedStructDataBuilder_ != null) { + return derivedStructDataBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + return derivedStructData_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : derivedStructData_; } } @@ -4683,174 +8153,163 @@ public java.lang.String getName() { * * *
            -     * The full resource name of the chunk.
            -     * Format:
            -     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
            -     *
            -     * This field must be a UTF-8 encoded string with a length limit of 1024
            -     * characters.
            +     * Output only. This field is OUTPUT_ONLY.
            +     * It contains derived data that are not in the original input document.
                  * 
            * - * string name = 1; - * - * @return The bytes for name. + * + * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetDerivedStructDataFieldBuilder() { + if (derivedStructDataBuilder_ == null) { + derivedStructDataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getDerivedStructData(), getParentForChildren(), isClean()); + derivedStructData_ = null; } + return derivedStructDataBuilder_; } + private com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan pageSpan_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan, + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpanOrBuilder> + pageSpanBuilder_; + /** * * *
            -     * The full resource name of the chunk.
            -     * Format:
            -     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
            -     *
            -     * This field must be a UTF-8 encoded string with a length limit of 1024
            -     * characters.
            +     * Page span of the chunk.
                  * 
            * - * string name = 1; + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; * - * @param value The name to set. - * @return This builder for chaining. + * @return Whether the pageSpan field is set. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + public boolean hasPageSpan() { + return ((bitField0_ & 0x00000040) != 0); } /** * * *
            -     * The full resource name of the chunk.
            -     * Format:
            -     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
            -     *
            -     * This field must be a UTF-8 encoded string with a length limit of 1024
            -     * characters.
            +     * Page span of the chunk.
                  * 
            * - * string name = 1; + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; * - * @return This builder for chaining. + * @return The pageSpan. */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan getPageSpan() { + if (pageSpanBuilder_ == null) { + return pageSpan_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.getDefaultInstance() + : pageSpan_; + } else { + return pageSpanBuilder_.getMessage(); + } } /** * * *
            -     * The full resource name of the chunk.
            -     * Format:
            -     * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
            -     *
            -     * This field must be a UTF-8 encoded string with a length limit of 1024
            -     * characters.
            +     * Page span of the chunk.
                  * 
            * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setPageSpan(com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan value) { + if (pageSpanBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pageSpan_ = value; + } else { + pageSpanBuilder_.setMessage(value); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000040; onChanged(); return this; } - private java.lang.Object id_ = ""; - /** * * *
            -     * Unique chunk ID of the current chunk.
            +     * Page span of the chunk.
                  * 
            * - * string id = 2; - * - * @return The id. + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; + public Builder setPageSpan( + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.Builder builderForValue) { + if (pageSpanBuilder_ == null) { + pageSpan_ = builderForValue.build(); } else { - return (java.lang.String) ref; + pageSpanBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000040; + onChanged(); + return this; } /** * * *
            -     * Unique chunk ID of the current chunk.
            +     * Page span of the chunk.
                  * 
            * - * string id = 2; - * - * @return The bytes for id. + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; */ - public com.google.protobuf.ByteString getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - id_ = b; - return b; + public Builder mergePageSpan(com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan value) { + if (pageSpanBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && pageSpan_ != null + && pageSpan_ + != com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.getDefaultInstance()) { + getPageSpanBuilder().mergeFrom(value); + } else { + pageSpan_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + pageSpanBuilder_.mergeFrom(value); } + if (pageSpan_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; } /** * * *
            -     * Unique chunk ID of the current chunk.
            +     * Page span of the chunk.
                  * 
            * - * string id = 2; - * - * @param value The id to set. - * @return This builder for chaining. + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; */ - public Builder setId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearPageSpan() { + bitField0_ = (bitField0_ & ~0x00000040); + pageSpan_ = null; + if (pageSpanBuilder_ != null) { + pageSpanBuilder_.dispose(); + pageSpanBuilder_ = null; } - id_ = value; - bitField0_ |= 0x00000002; onChanged(); return this; } @@ -4859,127 +8318,131 @@ public Builder setId(java.lang.String value) { * * *
            -     * Unique chunk ID of the current chunk.
            +     * Page span of the chunk.
                  * 
            * - * string id = 2; - * - * @return This builder for chaining. + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000002); + public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.Builder getPageSpanBuilder() { + bitField0_ |= 0x00000040; onChanged(); - return this; + return internalGetPageSpanFieldBuilder().getBuilder(); } /** * * *
            -     * Unique chunk ID of the current chunk.
            +     * Page span of the chunk.
                  * 
            * - * string id = 2; - * - * @param value The bytes for id to set. - * @return This builder for chaining. + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpanOrBuilder getPageSpanOrBuilder() { + if (pageSpanBuilder_ != null) { + return pageSpanBuilder_.getMessageOrBuilder(); + } else { + return pageSpan_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.getDefaultInstance() + : pageSpan_; } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; } - private java.lang.Object content_ = ""; - /** * * *
            -     * Content is a string from a document (parsed content).
            +     * Page span of the chunk.
                  * 
            * - * string content = 3; - * - * @return The content. + * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; */ - public java.lang.String getContent() { - java.lang.Object ref = content_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - content_ = s; - return s; - } else { - return (java.lang.String) ref; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan, + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpanOrBuilder> + internalGetPageSpanFieldBuilder() { + if (pageSpanBuilder_ == null) { + pageSpanBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan, + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.PageSpanOrBuilder>( + getPageSpan(), getParentForChildren(), isClean()); + pageSpan_ = null; } + return pageSpanBuilder_; } + private com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunkMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata, + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadataOrBuilder> + chunkMetadataBuilder_; + /** * * *
            -     * Content is a string from a document (parsed content).
            +     * Output only. Metadata of the current chunk.
                  * 
            * - * string content = 3; + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The bytes for content. + * @return Whether the chunkMetadata field is set. */ - public com.google.protobuf.ByteString getContentBytes() { - java.lang.Object ref = content_; - if (ref instanceof 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 boolean hasChunkMetadata() { + return ((bitField0_ & 0x00000080) != 0); } /** * * *
            -     * Content is a string from a document (parsed content).
            +     * Output only. Metadata of the current chunk.
                  * 
            * - * string content = 3; + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The content to set. - * @return This builder for chaining. + * @return The chunkMetadata. */ - public Builder setContent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata getChunkMetadata() { + if (chunkMetadataBuilder_ == null) { + return chunkMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.getDefaultInstance() + : chunkMetadata_; + } else { + return chunkMetadataBuilder_.getMessage(); } - content_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; } /** * * *
            -     * Content is a string from a document (parsed content).
            +     * Output only. Metadata of the current chunk.
                  * 
            * - * string content = 3; - * - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearContent() { - content_ = getDefaultInstance().getContent(); - bitField0_ = (bitField0_ & ~0x00000004); + public Builder setChunkMetadata( + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata value) { + if (chunkMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chunkMetadata_ = value; + } else { + chunkMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4988,234 +8451,262 @@ public Builder clearContent() { * * *
            -     * Content is a string from a document (parsed content).
            +     * Output only. Metadata of the current chunk.
                  * 
            * - * string content = 3; - * - * @param value The bytes for content to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setContentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setChunkMetadata( + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.Builder builderForValue) { + if (chunkMetadataBuilder_ == null) { + chunkMetadata_ = builderForValue.build(); + } else { + chunkMetadataBuilder_.setMessage(builderForValue.build()); } - checkByteStringIsUtf8(value); - content_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000080; onChanged(); return this; } - private double relevanceScore_; - /** * * *
            -     * Output only. Represents the relevance score based on similarity.
            -     * Higher score indicates higher chunk relevance.
            -     * The score is in range [-1.0, 1.0].
            -     * Only populated on [SearchService.SearchResponse][].
            +     * Output only. Metadata of the current chunk.
                  * 
            * - * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the relevanceScore field is set. */ - @java.lang.Override - public boolean hasRelevanceScore() { - return ((bitField0_ & 0x00000008) != 0); + public Builder mergeChunkMetadata( + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata value) { + if (chunkMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && chunkMetadata_ != null + && chunkMetadata_ + != com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata + .getDefaultInstance()) { + getChunkMetadataBuilder().mergeFrom(value); + } else { + chunkMetadata_ = value; + } + } else { + chunkMetadataBuilder_.mergeFrom(value); + } + if (chunkMetadata_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; } /** * * *
            -     * Output only. Represents the relevance score based on similarity.
            -     * Higher score indicates higher chunk relevance.
            -     * The score is in range [-1.0, 1.0].
            -     * Only populated on [SearchService.SearchResponse][].
            +     * Output only. Metadata of the current chunk.
                  * 
            * - * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The relevanceScore. */ - @java.lang.Override - public double getRelevanceScore() { - return relevanceScore_; + public Builder clearChunkMetadata() { + bitField0_ = (bitField0_ & ~0x00000080); + chunkMetadata_ = null; + if (chunkMetadataBuilder_ != null) { + chunkMetadataBuilder_.dispose(); + chunkMetadataBuilder_ = null; + } + onChanged(); + return this; } /** * * *
            -     * Output only. Represents the relevance score based on similarity.
            -     * Higher score indicates higher chunk relevance.
            -     * The score is in range [-1.0, 1.0].
            -     * Only populated on [SearchService.SearchResponse][].
            +     * Output only. Metadata of the current chunk.
                  * 
            * - * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @param value The relevanceScore to set. - * @return This builder for chaining. */ - public Builder setRelevanceScore(double value) { - - relevanceScore_ = value; - bitField0_ |= 0x00000008; + public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.Builder + getChunkMetadataBuilder() { + bitField0_ |= 0x00000080; onChanged(); - return this; + return internalGetChunkMetadataFieldBuilder().getBuilder(); } /** * * *
            -     * Output only. Represents the relevance score based on similarity.
            -     * Higher score indicates higher chunk relevance.
            -     * The score is in range [-1.0, 1.0].
            -     * Only populated on [SearchService.SearchResponse][].
            +     * Output only. Metadata of the current chunk.
                  * 
            * - * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return This builder for chaining. */ - public Builder clearRelevanceScore() { - bitField0_ = (bitField0_ & ~0x00000008); - relevanceScore_ = 0D; - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadataOrBuilder + getChunkMetadataOrBuilder() { + if (chunkMetadataBuilder_ != null) { + return chunkMetadataBuilder_.getMessageOrBuilder(); + } else { + return chunkMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.getDefaultInstance() + : chunkMetadata_; + } } - private com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata documentMetadata_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata, - com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.Builder, - com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadataOrBuilder> - documentMetadataBuilder_; - /** * * *
            -     * Metadata of the document from the current chunk.
            +     * Output only. Metadata of the current chunk.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; + * + * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the documentMetadata field is set. */ - public boolean hasDocumentMetadata() { - return ((bitField0_ & 0x00000010) != 0); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata, + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadataOrBuilder> + internalGetChunkMetadataFieldBuilder() { + if (chunkMetadataBuilder_ == null) { + chunkMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata, + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadataOrBuilder>( + getChunkMetadata(), getParentForChildren(), isClean()); + chunkMetadata_ = null; + } + return chunkMetadataBuilder_; + } + + private com.google.protobuf.LazyStringArrayList dataUrls_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDataUrlsIsMutable() { + if (!dataUrls_.isModifiable()) { + dataUrls_ = new com.google.protobuf.LazyStringArrayList(dataUrls_); + } + bitField0_ |= 0x00000100; } /** * * *
            -     * Metadata of the document from the current chunk.
            +     * Output only. Image Data URLs if the current chunk contains images.
            +     * Data URLs are composed of four parts: a prefix (data:), a MIME type
            +     * indicating the type of data, an optional base64 token if non-textual,
            +     * and the data itself:
            +     * data:[<mediatype>][;base64],<data>
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; - * + * repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The documentMetadata. + * @return A list containing the dataUrls. */ - public com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata getDocumentMetadata() { - if (documentMetadataBuilder_ == null) { - return documentMetadata_ == null - ? com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.getDefaultInstance() - : documentMetadata_; - } else { - return documentMetadataBuilder_.getMessage(); - } + public com.google.protobuf.ProtocolStringList getDataUrlsList() { + dataUrls_.makeImmutable(); + return dataUrls_; } /** * * *
            -     * Metadata of the document from the current chunk.
            +     * Output only. Image Data URLs if the current chunk contains images.
            +     * Data URLs are composed of four parts: a prefix (data:), a MIME type
            +     * indicating the type of data, an optional base64 token if non-textual,
            +     * and the data itself:
            +     * data:[<mediatype>][;base64],<data>
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; - * + * repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of dataUrls. */ - public Builder setDocumentMetadata( - com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata value) { - if (documentMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - documentMetadata_ = value; - } else { - documentMetadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; + public int getDataUrlsCount() { + return dataUrls_.size(); } /** * * *
            -     * Metadata of the document from the current chunk.
            +     * Output only. Image Data URLs if the current chunk contains images.
            +     * Data URLs are composed of four parts: a prefix (data:), a MIME type
            +     * indicating the type of data, an optional base64 token if non-textual,
            +     * and the data itself:
            +     * data:[<mediatype>][;base64],<data>
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; - * + * repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The dataUrls at the given index. */ - public Builder setDocumentMetadata( - com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.Builder builderForValue) { - if (documentMetadataBuilder_ == null) { - documentMetadata_ = builderForValue.build(); - } else { - documentMetadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; + public java.lang.String getDataUrls(int index) { + return dataUrls_.get(index); + } + + /** + * + * + *
            +     * Output only. Image Data URLs if the current chunk contains images.
            +     * Data URLs are composed of four parts: a prefix (data:), a MIME type
            +     * indicating the type of data, an optional base64 token if non-textual,
            +     * and the data itself:
            +     * data:[<mediatype>][;base64],<data>
            +     * 
            + * + * repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the dataUrls at the given index. + */ + public com.google.protobuf.ByteString getDataUrlsBytes(int index) { + return dataUrls_.getByteString(index); } /** * * *
            -     * Metadata of the document from the current chunk.
            +     * Output only. Image Data URLs if the current chunk contains images.
            +     * Data URLs are composed of four parts: a prefix (data:), a MIME type
            +     * indicating the type of data, an optional base64 token if non-textual,
            +     * and the data itself:
            +     * data:[<mediatype>][;base64],<data>
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; - * + * repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The dataUrls to set. + * @return This builder for chaining. */ - public Builder mergeDocumentMetadata( - com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata value) { - if (documentMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && documentMetadata_ != null - && documentMetadata_ - != com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata - .getDefaultInstance()) { - getDocumentMetadataBuilder().mergeFrom(value); - } else { - documentMetadata_ = value; - } - } else { - documentMetadataBuilder_.mergeFrom(value); - } - if (documentMetadata_ != null) { - bitField0_ |= 0x00000010; - onChanged(); + public Builder setDataUrls(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureDataUrlsIsMutable(); + dataUrls_.set(index, value); + bitField0_ |= 0x00000100; + onChanged(); return this; } @@ -5223,19 +8714,25 @@ public Builder mergeDocumentMetadata( * * *
            -     * Metadata of the document from the current chunk.
            +     * Output only. Image Data URLs if the current chunk contains images.
            +     * Data URLs are composed of four parts: a prefix (data:), a MIME type
            +     * indicating the type of data, an optional base64 token if non-textual,
            +     * and the data itself:
            +     * data:[<mediatype>][;base64],<data>
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; - * + * repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The dataUrls to add. + * @return This builder for chaining. */ - public Builder clearDocumentMetadata() { - bitField0_ = (bitField0_ & ~0x00000010); - documentMetadata_ = null; - if (documentMetadataBuilder_ != null) { - documentMetadataBuilder_.dispose(); - documentMetadataBuilder_ = null; + public Builder addDataUrls(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureDataUrlsIsMutable(); + dataUrls_.add(value); + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -5244,193 +8741,176 @@ public Builder clearDocumentMetadata() { * * *
            -     * Metadata of the document from the current chunk.
            +     * Output only. Image Data URLs if the current chunk contains images.
            +     * Data URLs are composed of four parts: a prefix (data:), a MIME type
            +     * indicating the type of data, an optional base64 token if non-textual,
            +     * and the data itself:
            +     * data:[<mediatype>][;base64],<data>
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; - * + * repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The dataUrls to add. + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.Builder - getDocumentMetadataBuilder() { - bitField0_ |= 0x00000010; + public Builder addAllDataUrls(java.lang.Iterable values) { + ensureDataUrlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataUrls_); + bitField0_ |= 0x00000100; onChanged(); - return internalGetDocumentMetadataFieldBuilder().getBuilder(); + return this; } /** * * *
            -     * Metadata of the document from the current chunk.
            +     * Output only. Image Data URLs if the current chunk contains images.
            +     * Data URLs are composed of four parts: a prefix (data:), a MIME type
            +     * indicating the type of data, an optional base64 token if non-textual,
            +     * and the data itself:
            +     * data:[<mediatype>][;base64],<data>
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; - * + * repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadataOrBuilder - getDocumentMetadataOrBuilder() { - if (documentMetadataBuilder_ != null) { - return documentMetadataBuilder_.getMessageOrBuilder(); - } else { - return documentMetadata_ == null - ? com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.getDefaultInstance() - : documentMetadata_; - } + public Builder clearDataUrls() { + dataUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + ; + onChanged(); + return this; } /** * * *
            -     * Metadata of the document from the current chunk.
            +     * Output only. Image Data URLs if the current chunk contains images.
            +     * Data URLs are composed of four parts: a prefix (data:), a MIME type
            +     * indicating the type of data, an optional base64 token if non-textual,
            +     * and the data itself:
            +     * data:[<mediatype>][;base64],<data>
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata document_metadata = 5; - * + * repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the dataUrls to add. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata, - com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.Builder, - com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadataOrBuilder> - internalGetDocumentMetadataFieldBuilder() { - if (documentMetadataBuilder_ == null) { - documentMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata, - com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadata.Builder, - com.google.cloud.discoveryengine.v1beta.Chunk.DocumentMetadataOrBuilder>( - getDocumentMetadata(), getParentForChildren(), isClean()); - documentMetadata_ = null; + public Builder addDataUrlsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return documentMetadataBuilder_; + checkByteStringIsUtf8(value); + ensureDataUrlsIsMutable(); + dataUrls_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; } - private com.google.protobuf.Struct derivedStructData_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - derivedStructDataBuilder_; + private com.google.protobuf.LazyStringArrayList annotationContents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAnnotationContentsIsMutable() { + if (!annotationContents_.isModifiable()) { + annotationContents_ = new com.google.protobuf.LazyStringArrayList(annotationContents_); + } + bitField0_ |= 0x00000200; + } /** * * *
            -     * Output only. This field is OUTPUT_ONLY.
            -     * It contains derived data that are not in the original input document.
            +     * Output only. Annotation contents if the current chunk contains annotations.
                  * 
            * - * - * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the derivedStructData field is set. + * @return A list containing the annotationContents. */ - public boolean hasDerivedStructData() { - return ((bitField0_ & 0x00000020) != 0); + public com.google.protobuf.ProtocolStringList getAnnotationContentsList() { + annotationContents_.makeImmutable(); + return annotationContents_; } /** * * *
            -     * Output only. This field is OUTPUT_ONLY.
            -     * It contains derived data that are not in the original input document.
            +     * Output only. Annotation contents if the current chunk contains annotations.
                  * 
            * - * - * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The derivedStructData. + * @return The count of annotationContents. */ - public com.google.protobuf.Struct getDerivedStructData() { - if (derivedStructDataBuilder_ == null) { - return derivedStructData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : derivedStructData_; - } else { - return derivedStructDataBuilder_.getMessage(); - } + public int getAnnotationContentsCount() { + return annotationContents_.size(); } /** * * *
            -     * Output only. This field is OUTPUT_ONLY.
            -     * It contains derived data that are not in the original input document.
            +     * Output only. Annotation contents if the current chunk contains annotations.
                  * 
            * - * - * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param index The index of the element to return. + * @return The annotationContents at the given index. */ - public Builder setDerivedStructData(com.google.protobuf.Struct value) { - if (derivedStructDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - derivedStructData_ = value; - } else { - derivedStructDataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; + public java.lang.String getAnnotationContents(int index) { + return annotationContents_.get(index); } /** * * *
            -     * Output only. This field is OUTPUT_ONLY.
            -     * It contains derived data that are not in the original input document.
            +     * Output only. Annotation contents if the current chunk contains annotations.
                  * 
            * - * - * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param index The index of the value to return. + * @return The bytes of the annotationContents at the given index. */ - public Builder setDerivedStructData(com.google.protobuf.Struct.Builder builderForValue) { - if (derivedStructDataBuilder_ == null) { - derivedStructData_ = builderForValue.build(); - } else { - derivedStructDataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; + public com.google.protobuf.ByteString getAnnotationContentsBytes(int index) { + return annotationContents_.getByteString(index); } /** * * *
            -     * Output only. This field is OUTPUT_ONLY.
            -     * It contains derived data that are not in the original input document.
            +     * Output only. Annotation contents if the current chunk contains annotations.
                  * 
            * - * - * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param index The index to set the value at. + * @param value The annotationContents to set. + * @return This builder for chaining. */ - public Builder mergeDerivedStructData(com.google.protobuf.Struct value) { - if (derivedStructDataBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && derivedStructData_ != null - && derivedStructData_ != com.google.protobuf.Struct.getDefaultInstance()) { - getDerivedStructDataBuilder().mergeFrom(value); - } else { - derivedStructData_ = value; - } - } else { - derivedStructDataBuilder_.mergeFrom(value); - } - if (derivedStructData_ != null) { - bitField0_ |= 0x00000020; - onChanged(); + public Builder setAnnotationContents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureAnnotationContentsIsMutable(); + annotationContents_.set(index, value); + bitField0_ |= 0x00000200; + onChanged(); return this; } @@ -5438,21 +8918,22 @@ public Builder mergeDerivedStructData(com.google.protobuf.Struct value) { * * *
            -     * Output only. This field is OUTPUT_ONLY.
            -     * It contains derived data that are not in the original input document.
            +     * Output only. Annotation contents if the current chunk contains annotations.
                  * 
            * - * - * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The annotationContents to add. + * @return This builder for chaining. */ - public Builder clearDerivedStructData() { - bitField0_ = (bitField0_ & ~0x00000020); - derivedStructData_ = null; - if (derivedStructDataBuilder_ != null) { - derivedStructDataBuilder_.dispose(); - derivedStructDataBuilder_ = null; + public Builder addAnnotationContents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureAnnotationContentsIsMutable(); + annotationContents_.add(value); + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -5461,111 +8942,125 @@ public Builder clearDerivedStructData() { * * *
            -     * Output only. This field is OUTPUT_ONLY.
            -     * It contains derived data that are not in the original input document.
            +     * Output only. Annotation contents if the current chunk contains annotations.
                  * 
            * - * - * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param values The annotationContents to add. + * @return This builder for chaining. */ - public com.google.protobuf.Struct.Builder getDerivedStructDataBuilder() { - bitField0_ |= 0x00000020; + public Builder addAllAnnotationContents(java.lang.Iterable values) { + ensureAnnotationContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationContents_); + bitField0_ |= 0x00000200; onChanged(); - return internalGetDerivedStructDataFieldBuilder().getBuilder(); + return this; } /** * * *
            -     * Output only. This field is OUTPUT_ONLY.
            -     * It contains derived data that are not in the original input document.
            +     * Output only. Annotation contents if the current chunk contains annotations.
                  * 
            * - * - * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return This builder for chaining. */ - public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { - if (derivedStructDataBuilder_ != null) { - return derivedStructDataBuilder_.getMessageOrBuilder(); - } else { - return derivedStructData_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : derivedStructData_; - } + public Builder clearAnnotationContents() { + annotationContents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + ; + onChanged(); + return this; } /** * * *
            -     * Output only. This field is OUTPUT_ONLY.
            -     * It contains derived data that are not in the original input document.
            +     * Output only. Annotation contents if the current chunk contains annotations.
                  * 
            * - * - * .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @param value The bytes of the annotationContents to add. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - internalGetDerivedStructDataFieldBuilder() { - if (derivedStructDataBuilder_ == null) { - derivedStructDataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getDerivedStructData(), getParentForChildren(), isClean()); - derivedStructData_ = null; + public Builder addAnnotationContentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return derivedStructDataBuilder_; + checkByteStringIsUtf8(value); + ensureAnnotationContentsIsMutable(); + annotationContents_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; } - private com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan pageSpan_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan, - com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.Builder, - com.google.cloud.discoveryengine.v1beta.Chunk.PageSpanOrBuilder> - pageSpanBuilder_; + private java.util.List + annotationMetadata_ = java.util.Collections.emptyList(); + + private void ensureAnnotationMetadataIsMutable() { + if (!((bitField0_ & 0x00000400) != 0)) { + annotationMetadata_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata>( + annotationMetadata_); + bitField0_ |= 0x00000400; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata, + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadataOrBuilder> + annotationMetadataBuilder_; /** * * *
            -     * Page span of the chunk.
            +     * Output only. The annotation metadata includes structured content in the
            +     * current chunk.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; - * - * @return Whether the pageSpan field is set. + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public boolean hasPageSpan() { - return ((bitField0_ & 0x00000040) != 0); + public java.util.List + getAnnotationMetadataList() { + if (annotationMetadataBuilder_ == null) { + return java.util.Collections.unmodifiableList(annotationMetadata_); + } else { + return annotationMetadataBuilder_.getMessageList(); + } } /** * * *
            -     * Page span of the chunk.
            +     * Output only. The annotation metadata includes structured content in the
            +     * current chunk.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; - * - * @return The pageSpan. + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan getPageSpan() { - if (pageSpanBuilder_ == null) { - return pageSpan_ == null - ? com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.getDefaultInstance() - : pageSpan_; + public int getAnnotationMetadataCount() { + if (annotationMetadataBuilder_ == null) { + return annotationMetadata_.size(); } else { - return pageSpanBuilder_.getMessage(); + return annotationMetadataBuilder_.getCount(); } } @@ -5573,43 +9068,47 @@ public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan getPageSpan() { * * *
            -     * Page span of the chunk.
            +     * Output only. The annotation metadata includes structured content in the
            +     * current chunk.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setPageSpan(com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan value) { - if (pageSpanBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pageSpan_ = value; + public com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata getAnnotationMetadata( + int index) { + if (annotationMetadataBuilder_ == null) { + return annotationMetadata_.get(index); } else { - pageSpanBuilder_.setMessage(value); + return annotationMetadataBuilder_.getMessage(index); } - bitField0_ |= 0x00000040; - onChanged(); - return this; } /** * * *
            -     * Page span of the chunk.
            +     * Output only. The annotation metadata includes structured content in the
            +     * current chunk.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setPageSpan( - com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.Builder builderForValue) { - if (pageSpanBuilder_ == null) { - pageSpan_ = builderForValue.build(); + public Builder setAnnotationMetadata( + int index, com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata value) { + if (annotationMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationMetadataIsMutable(); + annotationMetadata_.set(index, value); + onChanged(); } else { - pageSpanBuilder_.setMessage(builderForValue.build()); + annotationMetadataBuilder_.setMessage(index, value); } - bitField0_ |= 0x00000040; - onChanged(); return this; } @@ -5617,27 +9116,23 @@ public Builder setPageSpan( * * *
            -     * Page span of the chunk.
            +     * Output only. The annotation metadata includes structured content in the
            +     * current chunk.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder mergePageSpan(com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan value) { - if (pageSpanBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && pageSpan_ != null - && pageSpan_ - != com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.getDefaultInstance()) { - getPageSpanBuilder().mergeFrom(value); - } else { - pageSpan_ = value; - } - } else { - pageSpanBuilder_.mergeFrom(value); - } - if (pageSpan_ != null) { - bitField0_ |= 0x00000040; + public Builder setAnnotationMetadata( + int index, + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata.Builder builderForValue) { + if (annotationMetadataBuilder_ == null) { + ensureAnnotationMetadataIsMutable(); + annotationMetadata_.set(index, builderForValue.build()); onChanged(); + } else { + annotationMetadataBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -5646,19 +9141,26 @@ public Builder mergePageSpan(com.google.cloud.discoveryengine.v1beta.Chunk.PageS * * *
            -     * Page span of the chunk.
            +     * Output only. The annotation metadata includes structured content in the
            +     * current chunk.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearPageSpan() { - bitField0_ = (bitField0_ & ~0x00000040); - pageSpan_ = null; - if (pageSpanBuilder_ != null) { - pageSpanBuilder_.dispose(); - pageSpanBuilder_ = null; + public Builder addAnnotationMetadata( + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata value) { + if (annotationMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationMetadataIsMutable(); + annotationMetadata_.add(value); + onChanged(); + } else { + annotationMetadataBuilder_.addMessage(value); } - onChanged(); return this; } @@ -5666,132 +9168,147 @@ public Builder clearPageSpan() { * * *
            -     * Page span of the chunk.
            +     * Output only. The annotation metadata includes structured content in the
            +     * current chunk.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.Builder getPageSpanBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return internalGetPageSpanFieldBuilder().getBuilder(); + public Builder addAnnotationMetadata( + int index, com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata value) { + if (annotationMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAnnotationMetadataIsMutable(); + annotationMetadata_.add(index, value); + onChanged(); + } else { + annotationMetadataBuilder_.addMessage(index, value); + } + return this; } /** * * *
            -     * Page span of the chunk.
            +     * Output only. The annotation metadata includes structured content in the
            +     * current chunk.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public com.google.cloud.discoveryengine.v1beta.Chunk.PageSpanOrBuilder getPageSpanOrBuilder() { - if (pageSpanBuilder_ != null) { - return pageSpanBuilder_.getMessageOrBuilder(); + public Builder addAnnotationMetadata( + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata.Builder builderForValue) { + if (annotationMetadataBuilder_ == null) { + ensureAnnotationMetadataIsMutable(); + annotationMetadata_.add(builderForValue.build()); + onChanged(); } else { - return pageSpan_ == null - ? com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.getDefaultInstance() - : pageSpan_; + annotationMetadataBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
            -     * Page span of the chunk.
            +     * Output only. The annotation metadata includes structured content in the
            +     * current chunk.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Chunk.PageSpan page_span = 6; + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan, - com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.Builder, - com.google.cloud.discoveryengine.v1beta.Chunk.PageSpanOrBuilder> - internalGetPageSpanFieldBuilder() { - if (pageSpanBuilder_ == null) { - pageSpanBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan, - com.google.cloud.discoveryengine.v1beta.Chunk.PageSpan.Builder, - com.google.cloud.discoveryengine.v1beta.Chunk.PageSpanOrBuilder>( - getPageSpan(), getParentForChildren(), isClean()); - pageSpan_ = null; + public Builder addAnnotationMetadata( + int index, + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata.Builder builderForValue) { + if (annotationMetadataBuilder_ == null) { + ensureAnnotationMetadataIsMutable(); + annotationMetadata_.add(index, builderForValue.build()); + onChanged(); + } else { + annotationMetadataBuilder_.addMessage(index, builderForValue.build()); } - return pageSpanBuilder_; + return this; } - private com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunkMetadata_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata, - com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.Builder, - com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadataOrBuilder> - chunkMetadataBuilder_; - /** * * *
            -     * Output only. Metadata of the current chunk.
            +     * Output only. The annotation metadata includes structured content in the
            +     * current chunk.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the chunkMetadata field is set. */ - public boolean hasChunkMetadata() { - return ((bitField0_ & 0x00000080) != 0); + public Builder addAllAnnotationMetadata( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata> + values) { + if (annotationMetadataBuilder_ == null) { + ensureAnnotationMetadataIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationMetadata_); + onChanged(); + } else { + annotationMetadataBuilder_.addAllMessages(values); + } + return this; } /** * * *
            -     * Output only. Metadata of the current chunk.
            +     * Output only. The annotation metadata includes structured content in the
            +     * current chunk.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return The chunkMetadata. */ - public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata getChunkMetadata() { - if (chunkMetadataBuilder_ == null) { - return chunkMetadata_ == null - ? com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.getDefaultInstance() - : chunkMetadata_; + public Builder clearAnnotationMetadata() { + if (annotationMetadataBuilder_ == null) { + annotationMetadata_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); } else { - return chunkMetadataBuilder_.getMessage(); + annotationMetadataBuilder_.clear(); } + return this; } /** * * *
            -     * Output only. Metadata of the current chunk.
            +     * Output only. The annotation metadata includes structured content in the
            +     * current chunk.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setChunkMetadata( - com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata value) { - if (chunkMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - chunkMetadata_ = value; + public Builder removeAnnotationMetadata(int index) { + if (annotationMetadataBuilder_ == null) { + ensureAnnotationMetadataIsMutable(); + annotationMetadata_.remove(index); + onChanged(); } else { - chunkMetadataBuilder_.setMessage(value); + annotationMetadataBuilder_.remove(index); } - bitField0_ |= 0x00000080; - onChanged(); return this; } @@ -5799,146 +9316,138 @@ public Builder setChunkMetadata( * * *
            -     * Output only. Metadata of the current chunk.
            +     * Output only. The annotation metadata includes structured content in the
            +     * current chunk.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setChunkMetadata( - com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.Builder builderForValue) { - if (chunkMetadataBuilder_ == null) { - chunkMetadata_ = builderForValue.build(); - } else { - chunkMetadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata.Builder + getAnnotationMetadataBuilder(int index) { + return internalGetAnnotationMetadataFieldBuilder().getBuilder(index); } /** * * *
            -     * Output only. Metadata of the current chunk.
            +     * Output only. The annotation metadata includes structured content in the
            +     * current chunk.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeChunkMetadata( - com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata value) { - if (chunkMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && chunkMetadata_ != null - && chunkMetadata_ - != com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata - .getDefaultInstance()) { - getChunkMetadataBuilder().mergeFrom(value); - } else { - chunkMetadata_ = value; - } + public com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadataOrBuilder + getAnnotationMetadataOrBuilder(int index) { + if (annotationMetadataBuilder_ == null) { + return annotationMetadata_.get(index); } else { - chunkMetadataBuilder_.mergeFrom(value); - } - if (chunkMetadata_ != null) { - bitField0_ |= 0x00000080; - onChanged(); + return annotationMetadataBuilder_.getMessageOrBuilder(index); } - return this; } /** * * *
            -     * Output only. Metadata of the current chunk.
            +     * Output only. The annotation metadata includes structured content in the
            +     * current chunk.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearChunkMetadata() { - bitField0_ = (bitField0_ & ~0x00000080); - chunkMetadata_ = null; - if (chunkMetadataBuilder_ != null) { - chunkMetadataBuilder_.dispose(); - chunkMetadataBuilder_ = null; + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadataOrBuilder> + getAnnotationMetadataOrBuilderList() { + if (annotationMetadataBuilder_ != null) { + return annotationMetadataBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(annotationMetadata_); } - onChanged(); - return this; } /** * * *
            -     * Output only. Metadata of the current chunk.
            +     * Output only. The annotation metadata includes structured content in the
            +     * current chunk.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.Builder - getChunkMetadataBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return internalGetChunkMetadataFieldBuilder().getBuilder(); + public com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata.Builder + addAnnotationMetadataBuilder() { + return internalGetAnnotationMetadataFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata + .getDefaultInstance()); } /** * * *
            -     * Output only. Metadata of the current chunk.
            +     * Output only. The annotation metadata includes structured content in the
            +     * current chunk.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadataOrBuilder - getChunkMetadataOrBuilder() { - if (chunkMetadataBuilder_ != null) { - return chunkMetadataBuilder_.getMessageOrBuilder(); - } else { - return chunkMetadata_ == null - ? com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.getDefaultInstance() - : chunkMetadata_; - } + public com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata.Builder + addAnnotationMetadataBuilder(int index) { + return internalGetAnnotationMetadataFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata + .getDefaultInstance()); } /** * * *
            -     * Output only. Metadata of the current chunk.
            +     * Output only. The annotation metadata includes structured content in the
            +     * current chunk.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata, - com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.Builder, - com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadataOrBuilder> - internalGetChunkMetadataFieldBuilder() { - if (chunkMetadataBuilder_ == null) { - chunkMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata, - com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadata.Builder, - com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadataOrBuilder>( - getChunkMetadata(), getParentForChildren(), isClean()); - chunkMetadata_ = null; - } - return chunkMetadataBuilder_; + public java.util.List + getAnnotationMetadataBuilderList() { + return internalGetAnnotationMetadataFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata, + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadataOrBuilder> + internalGetAnnotationMetadataFieldBuilder() { + if (annotationMetadataBuilder_ == null) { + annotationMetadataBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata, + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadataOrBuilder>( + annotationMetadata_, + ((bitField0_ & 0x00000400) != 0), + getParentForChildren(), + isClean()); + annotationMetadata_ = null; + } + return annotationMetadataBuilder_; } // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Chunk) diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ChunkOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ChunkOrBuilder.java index 725e84d29525..e86a600e1aa7 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ChunkOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ChunkOrBuilder.java @@ -121,7 +121,8 @@ public interface ChunkOrBuilder * Output only. Represents the relevance score based on similarity. * Higher score indicates higher chunk relevance. * The score is in range [-1.0, 1.0]. - * Only populated on [SearchService.SearchResponse][]. + * Only populated on + * [SearchResponse][google.cloud.discoveryengine.v1beta.SearchResponse]. *
            * * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -137,7 +138,8 @@ public interface ChunkOrBuilder * Output only. Represents the relevance score based on similarity. * Higher score indicates higher chunk relevance. * The score is in range [-1.0, 1.0]. - * Only populated on [SearchService.SearchResponse][]. + * Only populated on + * [SearchResponse][google.cloud.discoveryengine.v1beta.SearchResponse]. *
            * * optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -309,4 +311,206 @@ public interface ChunkOrBuilder * */ com.google.cloud.discoveryengine.v1beta.Chunk.ChunkMetadataOrBuilder getChunkMetadataOrBuilder(); + + /** + * + * + *
            +   * Output only. Image Data URLs if the current chunk contains images.
            +   * Data URLs are composed of four parts: a prefix (data:), a MIME type
            +   * indicating the type of data, an optional base64 token if non-textual,
            +   * and the data itself:
            +   * data:[<mediatype>][;base64],<data>
            +   * 
            + * + * repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the dataUrls. + */ + java.util.List getDataUrlsList(); + + /** + * + * + *
            +   * Output only. Image Data URLs if the current chunk contains images.
            +   * Data URLs are composed of four parts: a prefix (data:), a MIME type
            +   * indicating the type of data, an optional base64 token if non-textual,
            +   * and the data itself:
            +   * data:[<mediatype>][;base64],<data>
            +   * 
            + * + * repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of dataUrls. + */ + int getDataUrlsCount(); + + /** + * + * + *
            +   * Output only. Image Data URLs if the current chunk contains images.
            +   * Data URLs are composed of four parts: a prefix (data:), a MIME type
            +   * indicating the type of data, an optional base64 token if non-textual,
            +   * and the data itself:
            +   * data:[<mediatype>][;base64],<data>
            +   * 
            + * + * repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The dataUrls at the given index. + */ + java.lang.String getDataUrls(int index); + + /** + * + * + *
            +   * Output only. Image Data URLs if the current chunk contains images.
            +   * Data URLs are composed of four parts: a prefix (data:), a MIME type
            +   * indicating the type of data, an optional base64 token if non-textual,
            +   * and the data itself:
            +   * data:[<mediatype>][;base64],<data>
            +   * 
            + * + * repeated string data_urls = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the dataUrls at the given index. + */ + com.google.protobuf.ByteString getDataUrlsBytes(int index); + + /** + * + * + *
            +   * Output only. Annotation contents if the current chunk contains annotations.
            +   * 
            + * + * repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the annotationContents. + */ + java.util.List getAnnotationContentsList(); + + /** + * + * + *
            +   * Output only. Annotation contents if the current chunk contains annotations.
            +   * 
            + * + * repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of annotationContents. + */ + int getAnnotationContentsCount(); + + /** + * + * + *
            +   * Output only. Annotation contents if the current chunk contains annotations.
            +   * 
            + * + * repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The annotationContents at the given index. + */ + java.lang.String getAnnotationContents(int index); + + /** + * + * + *
            +   * Output only. Annotation contents if the current chunk contains annotations.
            +   * 
            + * + * repeated string annotation_contents = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the annotationContents at the given index. + */ + com.google.protobuf.ByteString getAnnotationContentsBytes(int index); + + /** + * + * + *
            +   * Output only. The annotation metadata includes structured content in the
            +   * current chunk.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAnnotationMetadataList(); + + /** + * + * + *
            +   * Output only. The annotation metadata includes structured content in the
            +   * current chunk.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata getAnnotationMetadata(int index); + + /** + * + * + *
            +   * Output only. The annotation metadata includes structured content in the
            +   * current chunk.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAnnotationMetadataCount(); + + /** + * + * + *
            +   * Output only. The annotation metadata includes structured content in the
            +   * current chunk.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadataOrBuilder> + getAnnotationMetadataOrBuilderList(); + + /** + * + * + *
            +   * Output only. The annotation metadata includes structured content in the
            +   * current chunk.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadata annotation_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.Chunk.AnnotationMetadataOrBuilder + getAnnotationMetadataOrBuilder(int index); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ChunkProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ChunkProto.java index 18d05d955ae4..2cb2433a472c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ChunkProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ChunkProto.java @@ -56,6 +56,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_Chunk_ChunkMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_Chunk_ChunkMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Chunk_StructuredContent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Chunk_StructuredContent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Chunk_AnnotationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Chunk_AnnotationMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -69,7 +77,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "unk.proto\022#google.cloud.discoveryengine." + "v1beta\032\037google/api/field_behavior.proto\032" + "\031google/api/resource.proto\032\034google/proto" - + "buf/struct.proto\"\370\007\n\005Chunk\022\014\n\004name\030\001 \001(\t" + + "buf/struct.proto\"\263\014\n\005Chunk\022\014\n\004name\030\001 \001(\t" + "\022\n\n\002id\030\002 \001(\t\022\017\n\007content\030\003 \001(\t\022!\n\017relevan" + "ce_score\030\010 \001(\001B\003\340A\003H\000\210\001\001\022V\n\021document_met" + "adata\030\005 \001(\0132;.google.cloud.discoveryengi" @@ -79,29 +87,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cloud.discoveryengine.v1beta.Chunk.PageS" + "pan\022U\n\016chunk_metadata\030\007 \001(\01328.google.clo" + "ud.discoveryengine.v1beta.Chunk.ChunkMet" - + "adataB\003\340A\003\032\\\n\020DocumentMetadata\022\013\n\003uri\030\001 " - + "\001(\t\022\r\n\005title\030\002 \001(\t\022,\n\013struct_data\030\003 \001(\0132" - + "\027.google.protobuf.Struct\0320\n\010PageSpan\022\022\n\n" - + "page_start\030\001 \001(\005\022\020\n\010page_end\030\002 \001(\005\032\225\001\n\rC" - + "hunkMetadata\022C\n\017previous_chunks\030\001 \003(\0132*." - + "google.cloud.discoveryengine.v1beta.Chun" - + "k\022?\n\013next_chunks\030\002 \003(\0132*.google.cloud.di" - + "scoveryengine.v1beta.Chunk:\262\002\352A\256\002\n$disco" - + "veryengine.googleapis.com/Chunk\022uproject" - + "s/{project}/locations/{location}/dataSto" - + "res/{data_store}/branches/{branch}/docum" - + "ents/{document}/chunks/{chunk}\022\216\001project" - + "s/{project}/locations/{location}/collect" - + "ions/{collection}/dataStores/{data_store" - + "}/branches/{branch}/documents/{document}" - + "/chunks/{chunk}B\022\n\020_relevance_scoreB\221\002\n\'" - + "com.google.cloud.discoveryengine.v1betaB" - + "\nChunkProtoP\001ZQcloud.google.com/go/disco" - + "veryengine/apiv1beta/discoveryenginepb;d" - + "iscoveryenginepb\242\002\017DISCOVERYENGINE\252\002#Goo" - + "gle.Cloud.DiscoveryEngine.V1Beta\312\002#Googl" - + "e\\Cloud\\DiscoveryEngine\\V1beta\352\002&Google:" - + ":Cloud::DiscoveryEngine::V1betab\006proto3" + + "adataB\003\340A\003\022\026\n\tdata_urls\030\t \003(\tB\003\340A\003\022 \n\023an" + + "notation_contents\030\013 \003(\tB\003\340A\003\022_\n\023annotati" + + "on_metadata\030\014 \003(\0132=.google.cloud.discove" + + "ryengine.v1beta.Chunk.AnnotationMetadata" + + "B\003\340A\003\032o\n\020DocumentMetadata\022\013\n\003uri\030\001 \001(\t\022\r" + + "\n\005title\030\002 \001(\t\022\021\n\tmime_type\030\004 \001(\t\022,\n\013stru" + + "ct_data\030\003 \001(\0132\027.google.protobuf.Struct\0320" + + "\n\010PageSpan\022\022\n\npage_start\030\001 \001(\005\022\020\n\010page_e" + + "nd\030\002 \001(\005\032\225\001\n\rChunkMetadata\022C\n\017previous_c" + + "hunks\030\001 \003(\0132*.google.cloud.discoveryengi" + + "ne.v1beta.Chunk\022?\n\013next_chunks\030\002 \003(\0132*.g" + + "oogle.cloud.discoveryengine.v1beta.Chunk" + + "\032\200\001\n\021StructuredContent\022U\n\016structure_type" + + "\030\001 \001(\01628.google.cloud.discoveryengine.v1" + + "beta.Chunk.StructureTypeB\003\340A\003\022\024\n\007content" + + "\030\002 \001(\tB\003\340A\003\032\212\001\n\022AnnotationMetadata\022]\n\022st" + + "ructured_content\030\001 \001(\0132<.google.cloud.di" + + "scoveryengine.v1beta.Chunk.StructuredCon" + + "tentB\003\340A\003\022\025\n\010image_id\030\002 \001(\tB\003\340A\003\"{\n\rStru" + + "ctureType\022\036\n\032STRUCTURE_TYPE_UNSPECIFIED\020" + + "\000\022\031\n\025SHAREHOLDER_STRUCTURE\020\001\022\027\n\023SIGNATUR" + + "E_STRUCTURE\020\002\022\026\n\022CHECKBOX_STRUCTURE\020\003:\262\002" + + "\352A\256\002\n$discoveryengine.googleapis.com/Chu" + + "nk\022uprojects/{project}/locations/{locati" + + "on}/dataStores/{data_store}/branches/{br" + + "anch}/documents/{document}/chunks/{chunk" + + "}\022\216\001projects/{project}/locations/{locati" + + "on}/collections/{collection}/dataStores/" + + "{data_store}/branches/{branch}/documents" + + "/{document}/chunks/{chunk}B\022\n\020_relevance" + + "_scoreB\221\002\n\'com.google.cloud.discoveryeng" + + "ine.v1betaB\nChunkProtoP\001ZQcloud.google.c" + + "om/go/discoveryengine/apiv1beta/discover" + + "yenginepb;discoveryenginepb\242\002\017DISCOVERYE" + + "NGINE\252\002#Google.Cloud.DiscoveryEngine.V1B" + + "eta\312\002#Google\\Cloud\\DiscoveryEngine\\V1bet" + + "a\352\002&Google::Cloud::DiscoveryEngine::V1be" + + "tab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -125,6 +148,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DerivedStructData", "PageSpan", "ChunkMetadata", + "DataUrls", + "AnnotationContents", + "AnnotationMetadata", }); internal_static_google_cloud_discoveryengine_v1beta_Chunk_DocumentMetadata_descriptor = internal_static_google_cloud_discoveryengine_v1beta_Chunk_descriptor.getNestedType(0); @@ -132,7 +158,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_Chunk_DocumentMetadata_descriptor, new java.lang.String[] { - "Uri", "Title", "StructData", + "Uri", "Title", "MimeType", "StructData", }); internal_static_google_cloud_discoveryengine_v1beta_Chunk_PageSpan_descriptor = internal_static_google_cloud_discoveryengine_v1beta_Chunk_descriptor.getNestedType(1); @@ -150,6 +176,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "PreviousChunks", "NextChunks", }); + internal_static_google_cloud_discoveryengine_v1beta_Chunk_StructuredContent_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Chunk_descriptor.getNestedType(3); + internal_static_google_cloud_discoveryengine_v1beta_Chunk_StructuredContent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Chunk_StructuredContent_descriptor, + new java.lang.String[] { + "StructureType", "Content", + }); + internal_static_google_cloud_discoveryengine_v1beta_Chunk_AnnotationMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Chunk_descriptor.getNestedType(4); + internal_static_google_cloud_discoveryengine_v1beta_Chunk_AnnotationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Chunk_AnnotationMetadata_descriptor, + new java.lang.String[] { + "StructuredContent", "ImageId", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Citation.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Citation.java new file mode 100644 index 000000000000..cc575d78c1f2 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Citation.java @@ -0,0 +1,1730 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Source attributions for content.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Citation} + */ +@com.google.protobuf.Generated +public final class Citation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Citation) + CitationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Citation"); + } + + // Use Citation.newBuilder() to construct. + private Citation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Citation() { + uri_ = ""; + title_ = ""; + license_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_Citation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_Citation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Citation.class, + com.google.cloud.discoveryengine.v1beta.Citation.Builder.class); + } + + /** + * + * + *
            +   * These are available confidence level user can set to block malicious urls
            +   * with chosen confidence and above. For understanding different confidence of
            +   * webrisk, please refer to
            +   * https://cloud.google.com/web-risk/docs/reference/rpc/google.cloud.webrisk.v1eap1#confidencelevel
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold} + */ + public enum PhishBlockThreshold implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Defaults to unspecified.
            +     * 
            + * + * PHISH_BLOCK_THRESHOLD_UNSPECIFIED = 0; + */ + PHISH_BLOCK_THRESHOLD_UNSPECIFIED(0), + /** + * + * + *
            +     * Blocks Low and above confidence URL that is risky.
            +     * 
            + * + * BLOCK_LOW_AND_ABOVE = 30; + */ + BLOCK_LOW_AND_ABOVE(30), + /** + * + * + *
            +     * Blocks Medium and above confidence URL that is risky.
            +     * 
            + * + * BLOCK_MEDIUM_AND_ABOVE = 40; + */ + BLOCK_MEDIUM_AND_ABOVE(40), + /** + * + * + *
            +     * Blocks High and above confidence URL that is risky.
            +     * 
            + * + * BLOCK_HIGH_AND_ABOVE = 50; + */ + BLOCK_HIGH_AND_ABOVE(50), + /** + * + * + *
            +     * Blocks Higher and above confidence URL that is risky.
            +     * 
            + * + * BLOCK_HIGHER_AND_ABOVE = 55; + */ + BLOCK_HIGHER_AND_ABOVE(55), + /** + * + * + *
            +     * Blocks Very high and above confidence URL that is risky.
            +     * 
            + * + * BLOCK_VERY_HIGH_AND_ABOVE = 60; + */ + BLOCK_VERY_HIGH_AND_ABOVE(60), + /** + * + * + *
            +     * Blocks Extremely high confidence URL that is risky.
            +     * 
            + * + * BLOCK_ONLY_EXTREMELY_HIGH = 100; + */ + BLOCK_ONLY_EXTREMELY_HIGH(100), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PhishBlockThreshold"); + } + + /** + * + * + *
            +     * Defaults to unspecified.
            +     * 
            + * + * PHISH_BLOCK_THRESHOLD_UNSPECIFIED = 0; + */ + public static final int PHISH_BLOCK_THRESHOLD_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Blocks Low and above confidence URL that is risky.
            +     * 
            + * + * BLOCK_LOW_AND_ABOVE = 30; + */ + public static final int BLOCK_LOW_AND_ABOVE_VALUE = 30; + + /** + * + * + *
            +     * Blocks Medium and above confidence URL that is risky.
            +     * 
            + * + * BLOCK_MEDIUM_AND_ABOVE = 40; + */ + public static final int BLOCK_MEDIUM_AND_ABOVE_VALUE = 40; + + /** + * + * + *
            +     * Blocks High and above confidence URL that is risky.
            +     * 
            + * + * BLOCK_HIGH_AND_ABOVE = 50; + */ + public static final int BLOCK_HIGH_AND_ABOVE_VALUE = 50; + + /** + * + * + *
            +     * Blocks Higher and above confidence URL that is risky.
            +     * 
            + * + * BLOCK_HIGHER_AND_ABOVE = 55; + */ + public static final int BLOCK_HIGHER_AND_ABOVE_VALUE = 55; + + /** + * + * + *
            +     * Blocks Very high and above confidence URL that is risky.
            +     * 
            + * + * BLOCK_VERY_HIGH_AND_ABOVE = 60; + */ + public static final int BLOCK_VERY_HIGH_AND_ABOVE_VALUE = 60; + + /** + * + * + *
            +     * Blocks Extremely high confidence URL that is risky.
            +     * 
            + * + * BLOCK_ONLY_EXTREMELY_HIGH = 100; + */ + public static final int BLOCK_ONLY_EXTREMELY_HIGH_VALUE = 100; + + 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 PhishBlockThreshold 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 PhishBlockThreshold forNumber(int value) { + switch (value) { + case 0: + return PHISH_BLOCK_THRESHOLD_UNSPECIFIED; + case 30: + return BLOCK_LOW_AND_ABOVE; + case 40: + return BLOCK_MEDIUM_AND_ABOVE; + case 50: + return BLOCK_HIGH_AND_ABOVE; + case 55: + return BLOCK_HIGHER_AND_ABOVE; + case 60: + return BLOCK_VERY_HIGH_AND_ABOVE; + case 100: + return BLOCK_ONLY_EXTREMELY_HIGH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PhishBlockThreshold findValueByNumber(int number) { + return PhishBlockThreshold.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Citation.getDescriptor().getEnumTypes().get(0); + } + + private static final PhishBlockThreshold[] VALUES = values(); + + public static PhishBlockThreshold 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 PhishBlockThreshold(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold) + } + + private int bitField0_; + public static final int START_INDEX_FIELD_NUMBER = 1; + private int startIndex_ = 0; + + /** + * + * + *
            +   * Output only. Start index into the content.
            +   * 
            + * + * int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + + public static final int END_INDEX_FIELD_NUMBER = 2; + private int endIndex_ = 0; + + /** + * + * + *
            +   * Output only. End index into the content.
            +   * 
            + * + * int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The endIndex. + */ + @java.lang.Override + public int getEndIndex() { + return endIndex_; + } + + public static final int URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
            +   * Output only. Url reference of the attribution.
            +   * 
            + * + * string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +   * Output only. Url reference of the attribution.
            +   * 
            + * + * string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
            +   * Output only. Title of the attribution.
            +   * 
            + * + * string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +   * Output only. Title of the attribution.
            +   * 
            + * + * string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + public static final int LICENSE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object license_ = ""; + + /** + * + * + *
            +   * Output only. License of the attribution.
            +   * 
            + * + * string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The license. + */ + @java.lang.Override + public java.lang.String getLicense() { + java.lang.Object ref = license_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + license_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. License of the attribution.
            +   * 
            + * + * string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for license. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLicenseBytes() { + java.lang.Object ref = license_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + license_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PUBLICATION_DATE_FIELD_NUMBER = 6; + private com.google.type.Date publicationDate_; + + /** + * + * + *
            +   * Output only. Publication date of the attribution.
            +   * 
            + * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the publicationDate field is set. + */ + @java.lang.Override + public boolean hasPublicationDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. Publication date of the attribution.
            +   * 
            + * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The publicationDate. + */ + @java.lang.Override + public com.google.type.Date getPublicationDate() { + return publicationDate_ == null ? com.google.type.Date.getDefaultInstance() : publicationDate_; + } + + /** + * + * + *
            +   * Output only. Publication date of the attribution.
            +   * 
            + * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.type.DateOrBuilder getPublicationDateOrBuilder() { + return publicationDate_ == null ? com.google.type.Date.getDefaultInstance() : publicationDate_; + } + + 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 (startIndex_ != 0) { + output.writeInt32(1, startIndex_); + } + if (endIndex_ != 0) { + output.writeInt32(2, endIndex_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(license_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, license_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getPublicationDate()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, startIndex_); + } + if (endIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, endIndex_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(license_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, license_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPublicationDate()); + } + 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.v1beta.Citation)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Citation other = + (com.google.cloud.discoveryengine.v1beta.Citation) obj; + + if (getStartIndex() != other.getStartIndex()) return false; + if (getEndIndex() != other.getEndIndex()) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getLicense().equals(other.getLicense())) return false; + if (hasPublicationDate() != other.hasPublicationDate()) return false; + if (hasPublicationDate()) { + if (!getPublicationDate().equals(other.getPublicationDate())) 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) + START_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getStartIndex(); + hash = (37 * hash) + END_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getEndIndex(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + LICENSE_FIELD_NUMBER; + hash = (53 * hash) + getLicense().hashCode(); + if (hasPublicationDate()) { + hash = (37 * hash) + PUBLICATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getPublicationDate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Citation parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Citation 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.v1beta.Citation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Citation parseFrom( + 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.v1beta.Citation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Citation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Citation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Citation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Citation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Citation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Citation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Citation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.Citation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Source attributions for content.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Citation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Citation) + com.google.cloud.discoveryengine.v1beta.CitationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_Citation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_Citation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Citation.class, + com.google.cloud.discoveryengine.v1beta.Citation.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.Citation.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPublicationDateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startIndex_ = 0; + endIndex_ = 0; + uri_ = ""; + title_ = ""; + license_ = ""; + publicationDate_ = null; + if (publicationDateBuilder_ != null) { + publicationDateBuilder_.dispose(); + publicationDateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_Citation_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Citation getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Citation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Citation build() { + com.google.cloud.discoveryengine.v1beta.Citation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Citation buildPartial() { + com.google.cloud.discoveryengine.v1beta.Citation result = + new com.google.cloud.discoveryengine.v1beta.Citation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Citation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startIndex_ = startIndex_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endIndex_ = endIndex_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.license_ = license_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.publicationDate_ = + publicationDateBuilder_ == null ? publicationDate_ : publicationDateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Citation) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Citation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Citation other) { + if (other == com.google.cloud.discoveryengine.v1beta.Citation.getDefaultInstance()) + return this; + if (other.getStartIndex() != 0) { + setStartIndex(other.getStartIndex()); + } + if (other.getEndIndex() != 0) { + setEndIndex(other.getEndIndex()); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getLicense().isEmpty()) { + license_ = other.license_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasPublicationDate()) { + mergePublicationDate(other.getPublicationDate()); + } + 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: + { + startIndex_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endIndex_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + license_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetPublicationDateFieldBuilder().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 int startIndex_; + + /** + * + * + *
            +     * Output only. Start index into the content.
            +     * 
            + * + * int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + + /** + * + * + *
            +     * Output only. Start index into the content.
            +     * 
            + * + * int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The startIndex to set. + * @return This builder for chaining. + */ + public Builder setStartIndex(int value) { + + startIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Start index into the content.
            +     * 
            + * + * int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStartIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + startIndex_ = 0; + onChanged(); + return this; + } + + private int endIndex_; + + /** + * + * + *
            +     * Output only. End index into the content.
            +     * 
            + * + * int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The endIndex. + */ + @java.lang.Override + public int getEndIndex() { + return endIndex_; + } + + /** + * + * + *
            +     * Output only. End index into the content.
            +     * 
            + * + * int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The endIndex to set. + * @return This builder for chaining. + */ + public Builder setEndIndex(int value) { + + endIndex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. End index into the content.
            +     * 
            + * + * int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEndIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + endIndex_ = 0; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + + /** + * + * + *
            +     * Output only. Url reference of the attribution.
            +     * 
            + * + * string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +     * Output only. Url reference of the attribution.
            +     * 
            + * + * string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +     * Output only. Url reference of the attribution.
            +     * 
            + * + * string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Url reference of the attribution.
            +     * 
            + * + * string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Url reference of the attribution.
            +     * 
            + * + * string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
            +     * Output only. Title of the attribution.
            +     * 
            + * + * string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +     * Output only. Title of the attribution.
            +     * 
            + * + * string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +     * Output only. Title of the attribution.
            +     * 
            + * + * string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Title of the attribution.
            +     * 
            + * + * string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Title of the attribution.
            +     * 
            + * + * string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object license_ = ""; + + /** + * + * + *
            +     * Output only. License of the attribution.
            +     * 
            + * + * string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The license. + */ + public java.lang.String getLicense() { + java.lang.Object ref = license_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + license_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. License of the attribution.
            +     * 
            + * + * string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for license. + */ + public com.google.protobuf.ByteString getLicenseBytes() { + java.lang.Object ref = license_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + license_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. License of the attribution.
            +     * 
            + * + * string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The license to set. + * @return This builder for chaining. + */ + public Builder setLicense(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + license_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. License of the attribution.
            +     * 
            + * + * string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLicense() { + license_ = getDefaultInstance().getLicense(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. License of the attribution.
            +     * 
            + * + * string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for license to set. + * @return This builder for chaining. + */ + public Builder setLicenseBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + license_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.type.Date publicationDate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + publicationDateBuilder_; + + /** + * + * + *
            +     * Output only. Publication date of the attribution.
            +     * 
            + * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the publicationDate field is set. + */ + public boolean hasPublicationDate() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Output only. Publication date of the attribution.
            +     * 
            + * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The publicationDate. + */ + public com.google.type.Date getPublicationDate() { + if (publicationDateBuilder_ == null) { + return publicationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : publicationDate_; + } else { + return publicationDateBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Publication date of the attribution.
            +     * 
            + * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPublicationDate(com.google.type.Date value) { + if (publicationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + publicationDate_ = value; + } else { + publicationDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Publication date of the attribution.
            +     * 
            + * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPublicationDate(com.google.type.Date.Builder builderForValue) { + if (publicationDateBuilder_ == null) { + publicationDate_ = builderForValue.build(); + } else { + publicationDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Publication date of the attribution.
            +     * 
            + * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePublicationDate(com.google.type.Date value) { + if (publicationDateBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && publicationDate_ != null + && publicationDate_ != com.google.type.Date.getDefaultInstance()) { + getPublicationDateBuilder().mergeFrom(value); + } else { + publicationDate_ = value; + } + } else { + publicationDateBuilder_.mergeFrom(value); + } + if (publicationDate_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Publication date of the attribution.
            +     * 
            + * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPublicationDate() { + bitField0_ = (bitField0_ & ~0x00000020); + publicationDate_ = null; + if (publicationDateBuilder_ != null) { + publicationDateBuilder_.dispose(); + publicationDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Publication date of the attribution.
            +     * 
            + * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.Date.Builder getPublicationDateBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetPublicationDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Publication date of the attribution.
            +     * 
            + * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.DateOrBuilder getPublicationDateOrBuilder() { + if (publicationDateBuilder_ != null) { + return publicationDateBuilder_.getMessageOrBuilder(); + } else { + return publicationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : publicationDate_; + } + } + + /** + * + * + *
            +     * Output only. Publication date of the attribution.
            +     * 
            + * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + internalGetPublicationDateFieldBuilder() { + if (publicationDateBuilder_ == null) { + publicationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getPublicationDate(), getParentForChildren(), isClean()); + publicationDate_ = null; + } + return publicationDateBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Citation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Citation) + private static final com.google.cloud.discoveryengine.v1beta.Citation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Citation(); + } + + public static com.google.cloud.discoveryengine.v1beta.Citation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Citation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Citation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CitationMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CitationMetadata.java new file mode 100644 index 000000000000..29b060383927 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CitationMetadata.java @@ -0,0 +1,974 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * A collection of source attributions for a piece of content.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CitationMetadata} + */ +@com.google.protobuf.Generated +public final class CitationMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CitationMetadata) + CitationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CitationMetadata"); + } + + // Use CitationMetadata.newBuilder() to construct. + private CitationMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CitationMetadata() { + citations_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CitationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CitationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CitationMetadata.class, + com.google.cloud.discoveryengine.v1beta.CitationMetadata.Builder.class); + } + + public static final int CITATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List citations_; + + /** + * + * + *
            +   * Output only. List of citations.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getCitationsList() { + return citations_; + } + + /** + * + * + *
            +   * Output only. List of citations.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getCitationsOrBuilderList() { + return citations_; + } + + /** + * + * + *
            +   * Output only. List of citations.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getCitationsCount() { + return citations_.size(); + } + + /** + * + * + *
            +   * Output only. List of citations.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Citation getCitations(int index) { + return citations_.get(index); + } + + /** + * + * + *
            +   * Output only. List of citations.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CitationOrBuilder getCitationsOrBuilder( + int index) { + return citations_.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 < citations_.size(); i++) { + output.writeMessage(1, citations_.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 < citations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, citations_.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.v1beta.CitationMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.CitationMetadata other = + (com.google.cloud.discoveryengine.v1beta.CitationMetadata) obj; + + if (!getCitationsList().equals(other.getCitationsList())) 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 (getCitationsCount() > 0) { + hash = (37 * hash) + CITATIONS_FIELD_NUMBER; + hash = (53 * hash) + getCitationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.CitationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CitationMetadata 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.v1beta.CitationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CitationMetadata parseFrom( + 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.v1beta.CitationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CitationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CitationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CitationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CitationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CitationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CitationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CitationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.CitationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * A collection of source attributions for a piece of content.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CitationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.CitationMetadata) + com.google.cloud.discoveryengine.v1beta.CitationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CitationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CitationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CitationMetadata.class, + com.google.cloud.discoveryengine.v1beta.CitationMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.CitationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (citationsBuilder_ == null) { + citations_ = java.util.Collections.emptyList(); + } else { + citations_ = null; + citationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CitationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CitationMetadata getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.CitationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CitationMetadata build() { + com.google.cloud.discoveryengine.v1beta.CitationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CitationMetadata buildPartial() { + com.google.cloud.discoveryengine.v1beta.CitationMetadata result = + new com.google.cloud.discoveryengine.v1beta.CitationMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.CitationMetadata result) { + if (citationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + citations_ = java.util.Collections.unmodifiableList(citations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.citations_ = citations_; + } else { + result.citations_ = citationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.CitationMetadata result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.CitationMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.CitationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CitationMetadata other) { + if (other == com.google.cloud.discoveryengine.v1beta.CitationMetadata.getDefaultInstance()) + return this; + if (citationsBuilder_ == null) { + if (!other.citations_.isEmpty()) { + if (citations_.isEmpty()) { + citations_ = other.citations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCitationsIsMutable(); + citations_.addAll(other.citations_); + } + onChanged(); + } + } else { + if (!other.citations_.isEmpty()) { + if (citationsBuilder_.isEmpty()) { + citationsBuilder_.dispose(); + citationsBuilder_ = null; + citations_ = other.citations_; + bitField0_ = (bitField0_ & ~0x00000001); + citationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCitationsFieldBuilder() + : null; + } else { + citationsBuilder_.addAllMessages(other.citations_); + } + } + } + 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.v1beta.Citation m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Citation.parser(), + extensionRegistry); + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.add(m); + } else { + citationsBuilder_.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 citations_ = + java.util.Collections.emptyList(); + + private void ensureCitationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + citations_ = + new java.util.ArrayList(citations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Citation, + com.google.cloud.discoveryengine.v1beta.Citation.Builder, + com.google.cloud.discoveryengine.v1beta.CitationOrBuilder> + citationsBuilder_; + + /** + * + * + *
            +     * Output only. List of citations.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getCitationsList() { + if (citationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(citations_); + } else { + return citationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Output only. List of citations.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getCitationsCount() { + if (citationsBuilder_ == null) { + return citations_.size(); + } else { + return citationsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Output only. List of citations.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Citation getCitations(int index) { + if (citationsBuilder_ == null) { + return citations_.get(index); + } else { + return citationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Output only. List of citations.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCitations(int index, com.google.cloud.discoveryengine.v1beta.Citation value) { + if (citationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitationsIsMutable(); + citations_.set(index, value); + onChanged(); + } else { + citationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Output only. List of citations.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCitations( + int index, com.google.cloud.discoveryengine.v1beta.Citation.Builder builderForValue) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.set(index, builderForValue.build()); + onChanged(); + } else { + citationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. List of citations.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCitations(com.google.cloud.discoveryengine.v1beta.Citation value) { + if (citationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitationsIsMutable(); + citations_.add(value); + onChanged(); + } else { + citationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Output only. List of citations.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCitations(int index, com.google.cloud.discoveryengine.v1beta.Citation value) { + if (citationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCitationsIsMutable(); + citations_.add(index, value); + onChanged(); + } else { + citationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Output only. List of citations.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCitations( + com.google.cloud.discoveryengine.v1beta.Citation.Builder builderForValue) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.add(builderForValue.build()); + onChanged(); + } else { + citationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. List of citations.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addCitations( + int index, com.google.cloud.discoveryengine.v1beta.Citation.Builder builderForValue) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.add(index, builderForValue.build()); + onChanged(); + } else { + citationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. List of citations.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllCitations( + java.lang.Iterable values) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, citations_); + onChanged(); + } else { + citationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Output only. List of citations.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCitations() { + if (citationsBuilder_ == null) { + citations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + citationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Output only. List of citations.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeCitations(int index) { + if (citationsBuilder_ == null) { + ensureCitationsIsMutable(); + citations_.remove(index); + onChanged(); + } else { + citationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Output only. List of citations.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Citation.Builder getCitationsBuilder(int index) { + return internalGetCitationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Output only. List of citations.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.CitationOrBuilder getCitationsOrBuilder( + int index) { + if (citationsBuilder_ == null) { + return citations_.get(index); + } else { + return citationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Output only. List of citations.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCitationsOrBuilderList() { + if (citationsBuilder_ != null) { + return citationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(citations_); + } + } + + /** + * + * + *
            +     * Output only. List of citations.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Citation.Builder addCitationsBuilder() { + return internalGetCitationsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1beta.Citation.getDefaultInstance()); + } + + /** + * + * + *
            +     * Output only. List of citations.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Citation.Builder addCitationsBuilder(int index) { + return internalGetCitationsFieldBuilder() + .addBuilder(index, com.google.cloud.discoveryengine.v1beta.Citation.getDefaultInstance()); + } + + /** + * + * + *
            +     * Output only. List of citations.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getCitationsBuilderList() { + return internalGetCitationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Citation, + com.google.cloud.discoveryengine.v1beta.Citation.Builder, + com.google.cloud.discoveryengine.v1beta.CitationOrBuilder> + internalGetCitationsFieldBuilder() { + if (citationsBuilder_ == null) { + citationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Citation, + com.google.cloud.discoveryengine.v1beta.Citation.Builder, + com.google.cloud.discoveryengine.v1beta.CitationOrBuilder>( + citations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + citations_ = null; + } + return citationsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CitationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CitationMetadata) + private static final com.google.cloud.discoveryengine.v1beta.CitationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CitationMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.CitationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CitationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.CitationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CitationMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CitationMetadataOrBuilder.java new file mode 100644 index 000000000000..c56a2b975de7 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CitationMetadataOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface CitationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CitationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. List of citations.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getCitationsList(); + + /** + * + * + *
            +   * Output only. List of citations.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.Citation getCitations(int index); + + /** + * + * + *
            +   * Output only. List of citations.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getCitationsCount(); + + /** + * + * + *
            +   * Output only. List of citations.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getCitationsOrBuilderList(); + + /** + * + * + *
            +   * Output only. List of citations.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Citation citations = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.CitationOrBuilder getCitationsOrBuilder(int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CitationOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CitationOrBuilder.java new file mode 100644 index 000000000000..49646f704f6f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CitationOrBuilder.java @@ -0,0 +1,172 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface CitationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Citation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. Start index into the content.
            +   * 
            + * + * int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The startIndex. + */ + int getStartIndex(); + + /** + * + * + *
            +   * Output only. End index into the content.
            +   * 
            + * + * int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The endIndex. + */ + int getEndIndex(); + + /** + * + * + *
            +   * Output only. Url reference of the attribution.
            +   * 
            + * + * string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
            +   * Output only. Url reference of the attribution.
            +   * 
            + * + * string uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
            +   * Output only. Title of the attribution.
            +   * 
            + * + * string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
            +   * Output only. Title of the attribution.
            +   * 
            + * + * string title = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
            +   * Output only. License of the attribution.
            +   * 
            + * + * string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The license. + */ + java.lang.String getLicense(); + + /** + * + * + *
            +   * Output only. License of the attribution.
            +   * 
            + * + * string license = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for license. + */ + com.google.protobuf.ByteString getLicenseBytes(); + + /** + * + * + *
            +   * Output only. Publication date of the attribution.
            +   * 
            + * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the publicationDate field is set. + */ + boolean hasPublicationDate(); + + /** + * + * + *
            +   * Output only. Publication date of the attribution.
            +   * 
            + * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The publicationDate. + */ + com.google.type.Date getPublicationDate(); + + /** + * + * + *
            +   * Output only. Publication date of the attribution.
            +   * 
            + * + * .google.type.Date publication_date = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.type.DateOrBuilder getPublicationDateOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfig.java new file mode 100644 index 000000000000..6224ba29d87b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfig.java @@ -0,0 +1,2710 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/cmek_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Configurations used to enable CMEK data encryption with Cloud KMS keys.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CmekConfig} + */ +@com.google.protobuf.Generated +public final class CmekConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CmekConfig) + CmekConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CmekConfig"); + } + + // Use CmekConfig.newBuilder() to construct. + private CmekConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CmekConfig() { + name_ = ""; + kmsKey_ = ""; + kmsKeyVersion_ = ""; + state_ = 0; + singleRegionKeys_ = java.util.Collections.emptyList(); + notebooklmState_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CmekConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CmekConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CmekConfig.class, + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder.class); + } + + /** + * + * + *
            +   * States of the CmekConfig.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.CmekConfig.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * The CmekConfig state is unknown.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
            +     * The CmekConfig is creating.
            +     * 
            + * + * CREATING = 1; + */ + CREATING(1), + /** + * + * + *
            +     * The CmekConfig can be used with DataStores.
            +     * 
            + * + * ACTIVE = 2; + */ + ACTIVE(2), + /** + * + * + *
            +     * The CmekConfig is unavailable, most likely due to the KMS Key being
            +     * revoked.
            +     * 
            + * + * KEY_ISSUE = 3; + */ + KEY_ISSUE(3), + /** + * + * + *
            +     * The CmekConfig is deleting.
            +     * 
            + * + * DELETING = 4; + */ + DELETING(4), + /** + * + * + *
            +     * The CmekConfig deletion process failed.
            +     * 
            + * + * DELETE_FAILED = 7; + */ + DELETE_FAILED(7), + /** + * + * + *
            +     * The CmekConfig is not usable, most likely due to some internal issue.
            +     * 
            + * + * UNUSABLE = 5; + */ + UNUSABLE(5), + /** + * + * + *
            +     * The KMS key version is being rotated.
            +     * 
            + * + * ACTIVE_ROTATING = 6; + */ + ACTIVE_ROTATING(6), + /** + * + * + *
            +     * The KMS key is soft deleted. Some cleanup policy will eventually be
            +     * applied.
            +     * 
            + * + * DELETED = 8; + */ + DELETED(8), + /** + * + * + *
            +     * The KMS key is expired, meaning the key has been disabled for 30+ days.
            +     * The customer can call DeleteCmekConfig to change the state to DELETED.
            +     * 
            + * + * EXPIRED = 9; + */ + EXPIRED(9), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
            +     * The CmekConfig state is unknown.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * The CmekConfig is creating.
            +     * 
            + * + * CREATING = 1; + */ + public static final int CREATING_VALUE = 1; + + /** + * + * + *
            +     * The CmekConfig can be used with DataStores.
            +     * 
            + * + * ACTIVE = 2; + */ + public static final int ACTIVE_VALUE = 2; + + /** + * + * + *
            +     * The CmekConfig is unavailable, most likely due to the KMS Key being
            +     * revoked.
            +     * 
            + * + * KEY_ISSUE = 3; + */ + public static final int KEY_ISSUE_VALUE = 3; + + /** + * + * + *
            +     * The CmekConfig is deleting.
            +     * 
            + * + * DELETING = 4; + */ + public static final int DELETING_VALUE = 4; + + /** + * + * + *
            +     * The CmekConfig deletion process failed.
            +     * 
            + * + * DELETE_FAILED = 7; + */ + public static final int DELETE_FAILED_VALUE = 7; + + /** + * + * + *
            +     * The CmekConfig is not usable, most likely due to some internal issue.
            +     * 
            + * + * UNUSABLE = 5; + */ + public static final int UNUSABLE_VALUE = 5; + + /** + * + * + *
            +     * The KMS key version is being rotated.
            +     * 
            + * + * ACTIVE_ROTATING = 6; + */ + public static final int ACTIVE_ROTATING_VALUE = 6; + + /** + * + * + *
            +     * The KMS key is soft deleted. Some cleanup policy will eventually be
            +     * applied.
            +     * 
            + * + * DELETED = 8; + */ + public static final int DELETED_VALUE = 8; + + /** + * + * + *
            +     * The KMS key is expired, meaning the key has been disabled for 30+ days.
            +     * The customer can call DeleteCmekConfig to change the state to DELETED.
            +     * 
            + * + * EXPIRED = 9; + */ + public static final int EXPIRED_VALUE = 9; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return CREATING; + case 2: + return ACTIVE; + case 3: + return KEY_ISSUE; + case 4: + return DELETING; + case 7: + return DELETE_FAILED; + case 5: + return UNUSABLE; + case 6: + return ACTIVE_ROTATING; + case 8: + return DELETED; + case 9: + return EXPIRED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CmekConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.CmekConfig.State) + } + + /** + * + * + *
            +   * States of NotebookLM.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState} + */ + public enum NotebookLMState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * The NotebookLM state is unknown.
            +     * 
            + * + * NOTEBOOK_LM_STATE_UNSPECIFIED = 0; + */ + NOTEBOOK_LM_STATE_UNSPECIFIED(0), + /** + * + * + *
            +     * The NotebookLM is not ready.
            +     * 
            + * + * NOTEBOOK_LM_NOT_READY = 1; + */ + NOTEBOOK_LM_NOT_READY(1), + /** + * + * + *
            +     * The NotebookLM is ready to be used.
            +     * 
            + * + * NOTEBOOK_LM_READY = 2; + */ + NOTEBOOK_LM_READY(2), + /** + * + * + *
            +     * The NotebookLM is not enabled.
            +     * 
            + * + * NOTEBOOK_LM_NOT_ENABLED = 3; + */ + NOTEBOOK_LM_NOT_ENABLED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "NotebookLMState"); + } + + /** + * + * + *
            +     * The NotebookLM state is unknown.
            +     * 
            + * + * NOTEBOOK_LM_STATE_UNSPECIFIED = 0; + */ + public static final int NOTEBOOK_LM_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * The NotebookLM is not ready.
            +     * 
            + * + * NOTEBOOK_LM_NOT_READY = 1; + */ + public static final int NOTEBOOK_LM_NOT_READY_VALUE = 1; + + /** + * + * + *
            +     * The NotebookLM is ready to be used.
            +     * 
            + * + * NOTEBOOK_LM_READY = 2; + */ + public static final int NOTEBOOK_LM_READY_VALUE = 2; + + /** + * + * + *
            +     * The NotebookLM is not enabled.
            +     * 
            + * + * NOTEBOOK_LM_NOT_ENABLED = 3; + */ + public static final int NOTEBOOK_LM_NOT_ENABLED_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 NotebookLMState 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 NotebookLMState forNumber(int value) { + switch (value) { + case 0: + return NOTEBOOK_LM_STATE_UNSPECIFIED; + case 1: + return NOTEBOOK_LM_NOT_READY; + case 2: + return NOTEBOOK_LM_READY; + case 3: + return NOTEBOOK_LM_NOT_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 NotebookLMState findValueByNumber(int number) { + return NotebookLMState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CmekConfig.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final NotebookLMState[] VALUES = values(); + + public static NotebookLMState 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 NotebookLMState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The name of the CmekConfig of the form
            +   * `projects/{project}/locations/{location}/cmekConfig` or
            +   * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The name of the CmekConfig of the form
            +   * `projects/{project}/locations/{location}/cmekConfig` or
            +   * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KMS_KEY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKey_ = ""; + + /** + * + * + *
            +   * Required. KMS key resource name which will be used to encrypt resources
            +   * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
            +   * 
            + * + * + * string kms_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + @java.lang.Override + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. KMS key resource name which will be used to encrypt resources
            +   * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
            +   * 
            + * + * + * string kms_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KMS_KEY_VERSION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyVersion_ = ""; + + /** + * + * + *
            +   * Output only. KMS key version resource name which will be used to encrypt
            +   * resources
            +   * `<kms_key>/cryptoKeyVersions/{keyVersion}`.
            +   * 
            + * + * + * string kms_key_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKeyVersion. + */ + @java.lang.Override + public java.lang.String getKmsKeyVersion() { + java.lang.Object ref = kmsKeyVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyVersion_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. KMS key version resource name which will be used to encrypt
            +   * resources
            +   * `<kms_key>/cryptoKeyVersions/{keyVersion}`.
            +   * 
            + * + * + * string kms_key_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKeyVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyVersionBytes() { + java.lang.Object ref = kmsKeyVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
            +   * Output only. The states of the CmekConfig.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +   * Output only. The states of the CmekConfig.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CmekConfig.State getState() { + com.google.cloud.discoveryengine.v1beta.CmekConfig.State result = + com.google.cloud.discoveryengine.v1beta.CmekConfig.State.forNumber(state_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.State.UNRECOGNIZED + : result; + } + + public static final int IS_DEFAULT_FIELD_NUMBER = 4; + private boolean isDefault_ = false; + + /** + * + * + *
            +   * Output only. The default CmekConfig for the Customer.
            +   * 
            + * + * bool is_default = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isDefault. + */ + @java.lang.Override + public boolean getIsDefault() { + return isDefault_; + } + + public static final int LAST_ROTATION_TIMESTAMP_MICROS_FIELD_NUMBER = 5; + private long lastRotationTimestampMicros_ = 0L; + + /** + * + * + *
            +   * Output only. The timestamp of the last key rotation.
            +   * 
            + * + * int64 last_rotation_timestamp_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastRotationTimestampMicros. + */ + @java.lang.Override + public long getLastRotationTimestampMicros() { + return lastRotationTimestampMicros_; + } + + public static final int SINGLE_REGION_KEYS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List singleRegionKeys_; + + /** + * + * + *
            +   * Optional. Single-regional CMEKs that are required for some VAIS features.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSingleRegionKeysList() { + return singleRegionKeys_; + } + + /** + * + * + *
            +   * Optional. Single-regional CMEKs that are required for some VAIS features.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getSingleRegionKeysOrBuilderList() { + return singleRegionKeys_; + } + + /** + * + * + *
            +   * Optional. Single-regional CMEKs that are required for some VAIS features.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSingleRegionKeysCount() { + return singleRegionKeys_.size(); + } + + /** + * + * + *
            +   * Optional. Single-regional CMEKs that are required for some VAIS features.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SingleRegionKey getSingleRegionKeys(int index) { + return singleRegionKeys_.get(index); + } + + /** + * + * + *
            +   * Optional. Single-regional CMEKs that are required for some VAIS features.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SingleRegionKeyOrBuilder + getSingleRegionKeysOrBuilder(int index) { + return singleRegionKeys_.get(index); + } + + public static final int NOTEBOOKLM_STATE_FIELD_NUMBER = 8; + private int notebooklmState_ = 0; + + /** + * + * + *
            +   * Output only. Whether the NotebookLM Corpus is ready to be used.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState notebooklm_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for notebooklmState. + */ + @java.lang.Override + public int getNotebooklmStateValue() { + return notebooklmState_; + } + + /** + * + * + *
            +   * Output only. Whether the NotebookLM Corpus is ready to be used.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState notebooklm_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The notebooklmState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState getNotebooklmState() { + com.google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState result = + com.google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState.forNumber( + notebooklmState_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKey_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, kmsKey_); + } + if (state_ + != com.google.cloud.discoveryengine.v1beta.CmekConfig.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, state_); + } + if (isDefault_ != false) { + output.writeBool(4, isDefault_); + } + if (lastRotationTimestampMicros_ != 0L) { + output.writeInt64(5, lastRotationTimestampMicros_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, kmsKeyVersion_); + } + for (int i = 0; i < singleRegionKeys_.size(); i++) { + output.writeMessage(7, singleRegionKeys_.get(i)); + } + if (notebooklmState_ + != com.google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState + .NOTEBOOK_LM_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, notebooklmState_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKey_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, kmsKey_); + } + if (state_ + != com.google.cloud.discoveryengine.v1beta.CmekConfig.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (isDefault_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, isDefault_); + } + if (lastRotationTimestampMicros_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(5, lastRotationTimestampMicros_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, kmsKeyVersion_); + } + for (int i = 0; i < singleRegionKeys_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, singleRegionKeys_.get(i)); + } + if (notebooklmState_ + != com.google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState + .NOTEBOOK_LM_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, notebooklmState_); + } + 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.v1beta.CmekConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.CmekConfig other = + (com.google.cloud.discoveryengine.v1beta.CmekConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (!getKmsKey().equals(other.getKmsKey())) return false; + if (!getKmsKeyVersion().equals(other.getKmsKeyVersion())) return false; + if (state_ != other.state_) return false; + if (getIsDefault() != other.getIsDefault()) return false; + if (getLastRotationTimestampMicros() != other.getLastRotationTimestampMicros()) return false; + if (!getSingleRegionKeysList().equals(other.getSingleRegionKeysList())) return false; + if (notebooklmState_ != other.notebooklmState_) 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) + KMS_KEY_FIELD_NUMBER; + hash = (53 * hash) + getKmsKey().hashCode(); + hash = (37 * hash) + KMS_KEY_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyVersion().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + IS_DEFAULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsDefault()); + hash = (37 * hash) + LAST_ROTATION_TIMESTAMP_MICROS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLastRotationTimestampMicros()); + if (getSingleRegionKeysCount() > 0) { + hash = (37 * hash) + SINGLE_REGION_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getSingleRegionKeysList().hashCode(); + } + hash = (37 * hash) + NOTEBOOKLM_STATE_FIELD_NUMBER; + hash = (53 * hash) + notebooklmState_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.CmekConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CmekConfig 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.v1beta.CmekConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CmekConfig parseFrom( + 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.v1beta.CmekConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CmekConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CmekConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CmekConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CmekConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CmekConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CmekConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CmekConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.CmekConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Configurations used to enable CMEK data encryption with Cloud KMS keys.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CmekConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.CmekConfig) + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CmekConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CmekConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CmekConfig.class, + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.CmekConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + kmsKey_ = ""; + kmsKeyVersion_ = ""; + state_ = 0; + isDefault_ = false; + lastRotationTimestampMicros_ = 0L; + if (singleRegionKeysBuilder_ == null) { + singleRegionKeys_ = java.util.Collections.emptyList(); + } else { + singleRegionKeys_ = null; + singleRegionKeysBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + notebooklmState_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CmekConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CmekConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CmekConfig build() { + com.google.cloud.discoveryengine.v1beta.CmekConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CmekConfig buildPartial() { + com.google.cloud.discoveryengine.v1beta.CmekConfig result = + new com.google.cloud.discoveryengine.v1beta.CmekConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.CmekConfig result) { + if (singleRegionKeysBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + singleRegionKeys_ = java.util.Collections.unmodifiableList(singleRegionKeys_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.singleRegionKeys_ = singleRegionKeys_; + } else { + result.singleRegionKeys_ = singleRegionKeysBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.CmekConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.kmsKey_ = kmsKey_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.kmsKeyVersion_ = kmsKeyVersion_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.isDefault_ = isDefault_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.lastRotationTimestampMicros_ = lastRotationTimestampMicros_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.notebooklmState_ = notebooklmState_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.CmekConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.CmekConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CmekConfig other) { + if (other == com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getKmsKey().isEmpty()) { + kmsKey_ = other.kmsKey_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getKmsKeyVersion().isEmpty()) { + kmsKeyVersion_ = other.kmsKeyVersion_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getIsDefault() != false) { + setIsDefault(other.getIsDefault()); + } + if (other.getLastRotationTimestampMicros() != 0L) { + setLastRotationTimestampMicros(other.getLastRotationTimestampMicros()); + } + if (singleRegionKeysBuilder_ == null) { + if (!other.singleRegionKeys_.isEmpty()) { + if (singleRegionKeys_.isEmpty()) { + singleRegionKeys_ = other.singleRegionKeys_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureSingleRegionKeysIsMutable(); + singleRegionKeys_.addAll(other.singleRegionKeys_); + } + onChanged(); + } + } else { + if (!other.singleRegionKeys_.isEmpty()) { + if (singleRegionKeysBuilder_.isEmpty()) { + singleRegionKeysBuilder_.dispose(); + singleRegionKeysBuilder_ = null; + singleRegionKeys_ = other.singleRegionKeys_; + bitField0_ = (bitField0_ & ~0x00000040); + singleRegionKeysBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSingleRegionKeysFieldBuilder() + : null; + } else { + singleRegionKeysBuilder_.addAllMessages(other.singleRegionKeys_); + } + } + } + if (other.notebooklmState_ != 0) { + setNotebooklmStateValue(other.getNotebooklmStateValue()); + } + 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: + { + kmsKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 24 + case 32: + { + isDefault_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 32 + case 40: + { + lastRotationTimestampMicros_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 50: + { + kmsKeyVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 50 + case 58: + { + com.google.cloud.discoveryengine.v1beta.SingleRegionKey m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SingleRegionKey.parser(), + extensionRegistry); + if (singleRegionKeysBuilder_ == null) { + ensureSingleRegionKeysIsMutable(); + singleRegionKeys_.add(m); + } else { + singleRegionKeysBuilder_.addMessage(m); + } + break; + } // case 58 + case 64: + { + notebooklmState_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The name of the CmekConfig of the form
            +     * `projects/{project}/locations/{location}/cmekConfig` or
            +     * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the CmekConfig of the form
            +     * `projects/{project}/locations/{location}/cmekConfig` or
            +     * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the CmekConfig of the form
            +     * `projects/{project}/locations/{location}/cmekConfig` or
            +     * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the CmekConfig of the form
            +     * `projects/{project}/locations/{location}/cmekConfig` or
            +     * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the CmekConfig of the form
            +     * `projects/{project}/locations/{location}/cmekConfig` or
            +     * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object kmsKey_ = ""; + + /** + * + * + *
            +     * Required. KMS key resource name which will be used to encrypt resources
            +     * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
            +     * 
            + * + * + * string kms_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. KMS key resource name which will be used to encrypt resources
            +     * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
            +     * 
            + * + * + * string kms_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. KMS key resource name which will be used to encrypt resources
            +     * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
            +     * 
            + * + * + * string kms_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The kmsKey to set. + * @return This builder for chaining. + */ + public Builder setKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. KMS key resource name which will be used to encrypt resources
            +     * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
            +     * 
            + * + * + * string kms_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearKmsKey() { + kmsKey_ = getDefaultInstance().getKmsKey(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. KMS key resource name which will be used to encrypt resources
            +     * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
            +     * 
            + * + * + * string kms_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for kmsKey to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKey_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object kmsKeyVersion_ = ""; + + /** + * + * + *
            +     * Output only. KMS key version resource name which will be used to encrypt
            +     * resources
            +     * `<kms_key>/cryptoKeyVersions/{keyVersion}`.
            +     * 
            + * + * + * string kms_key_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKeyVersion. + */ + public java.lang.String getKmsKeyVersion() { + java.lang.Object ref = kmsKeyVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. KMS key version resource name which will be used to encrypt
            +     * resources
            +     * `<kms_key>/cryptoKeyVersions/{keyVersion}`.
            +     * 
            + * + * + * string kms_key_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKeyVersion. + */ + public com.google.protobuf.ByteString getKmsKeyVersionBytes() { + java.lang.Object ref = kmsKeyVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. KMS key version resource name which will be used to encrypt
            +     * resources
            +     * `<kms_key>/cryptoKeyVersions/{keyVersion}`.
            +     * 
            + * + * + * string kms_key_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The kmsKeyVersion to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKeyVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. KMS key version resource name which will be used to encrypt
            +     * resources
            +     * `<kms_key>/cryptoKeyVersions/{keyVersion}`.
            +     * 
            + * + * + * string kms_key_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyVersion() { + kmsKeyVersion_ = getDefaultInstance().getKmsKeyVersion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. KMS key version resource name which will be used to encrypt
            +     * resources
            +     * `<kms_key>/cryptoKeyVersions/{keyVersion}`.
            +     * 
            + * + * + * string kms_key_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for kmsKeyVersion to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
            +     * Output only. The states of the CmekConfig.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +     * Output only. The states of the CmekConfig.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The states of the CmekConfig.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CmekConfig.State getState() { + com.google.cloud.discoveryengine.v1beta.CmekConfig.State result = + com.google.cloud.discoveryengine.v1beta.CmekConfig.State.forNumber(state_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Output only. The states of the CmekConfig.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.discoveryengine.v1beta.CmekConfig.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The states of the CmekConfig.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private boolean isDefault_; + + /** + * + * + *
            +     * Output only. The default CmekConfig for the Customer.
            +     * 
            + * + * bool is_default = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isDefault. + */ + @java.lang.Override + public boolean getIsDefault() { + return isDefault_; + } + + /** + * + * + *
            +     * Output only. The default CmekConfig for the Customer.
            +     * 
            + * + * bool is_default = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isDefault to set. + * @return This builder for chaining. + */ + public Builder setIsDefault(boolean value) { + + isDefault_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The default CmekConfig for the Customer.
            +     * 
            + * + * bool is_default = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsDefault() { + bitField0_ = (bitField0_ & ~0x00000010); + isDefault_ = false; + onChanged(); + return this; + } + + private long lastRotationTimestampMicros_; + + /** + * + * + *
            +     * Output only. The timestamp of the last key rotation.
            +     * 
            + * + * int64 last_rotation_timestamp_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastRotationTimestampMicros. + */ + @java.lang.Override + public long getLastRotationTimestampMicros() { + return lastRotationTimestampMicros_; + } + + /** + * + * + *
            +     * Output only. The timestamp of the last key rotation.
            +     * 
            + * + * int64 last_rotation_timestamp_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The lastRotationTimestampMicros to set. + * @return This builder for chaining. + */ + public Builder setLastRotationTimestampMicros(long value) { + + lastRotationTimestampMicros_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp of the last key rotation.
            +     * 
            + * + * int64 last_rotation_timestamp_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearLastRotationTimestampMicros() { + bitField0_ = (bitField0_ & ~0x00000020); + lastRotationTimestampMicros_ = 0L; + onChanged(); + return this; + } + + private java.util.List + singleRegionKeys_ = java.util.Collections.emptyList(); + + private void ensureSingleRegionKeysIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + singleRegionKeys_ = + new java.util.ArrayList( + singleRegionKeys_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SingleRegionKey, + com.google.cloud.discoveryengine.v1beta.SingleRegionKey.Builder, + com.google.cloud.discoveryengine.v1beta.SingleRegionKeyOrBuilder> + singleRegionKeysBuilder_; + + /** + * + * + *
            +     * Optional. Single-regional CMEKs that are required for some VAIS features.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSingleRegionKeysList() { + if (singleRegionKeysBuilder_ == null) { + return java.util.Collections.unmodifiableList(singleRegionKeys_); + } else { + return singleRegionKeysBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Optional. Single-regional CMEKs that are required for some VAIS features.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSingleRegionKeysCount() { + if (singleRegionKeysBuilder_ == null) { + return singleRegionKeys_.size(); + } else { + return singleRegionKeysBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Optional. Single-regional CMEKs that are required for some VAIS features.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SingleRegionKey getSingleRegionKeys(int index) { + if (singleRegionKeysBuilder_ == null) { + return singleRegionKeys_.get(index); + } else { + return singleRegionKeysBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Optional. Single-regional CMEKs that are required for some VAIS features.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSingleRegionKeys( + int index, com.google.cloud.discoveryengine.v1beta.SingleRegionKey value) { + if (singleRegionKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSingleRegionKeysIsMutable(); + singleRegionKeys_.set(index, value); + onChanged(); + } else { + singleRegionKeysBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. Single-regional CMEKs that are required for some VAIS features.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSingleRegionKeys( + int index, + com.google.cloud.discoveryengine.v1beta.SingleRegionKey.Builder builderForValue) { + if (singleRegionKeysBuilder_ == null) { + ensureSingleRegionKeysIsMutable(); + singleRegionKeys_.set(index, builderForValue.build()); + onChanged(); + } else { + singleRegionKeysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. Single-regional CMEKs that are required for some VAIS features.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSingleRegionKeys( + com.google.cloud.discoveryengine.v1beta.SingleRegionKey value) { + if (singleRegionKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSingleRegionKeysIsMutable(); + singleRegionKeys_.add(value); + onChanged(); + } else { + singleRegionKeysBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Optional. Single-regional CMEKs that are required for some VAIS features.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSingleRegionKeys( + int index, com.google.cloud.discoveryengine.v1beta.SingleRegionKey value) { + if (singleRegionKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSingleRegionKeysIsMutable(); + singleRegionKeys_.add(index, value); + onChanged(); + } else { + singleRegionKeysBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. Single-regional CMEKs that are required for some VAIS features.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSingleRegionKeys( + com.google.cloud.discoveryengine.v1beta.SingleRegionKey.Builder builderForValue) { + if (singleRegionKeysBuilder_ == null) { + ensureSingleRegionKeysIsMutable(); + singleRegionKeys_.add(builderForValue.build()); + onChanged(); + } else { + singleRegionKeysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. Single-regional CMEKs that are required for some VAIS features.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSingleRegionKeys( + int index, + com.google.cloud.discoveryengine.v1beta.SingleRegionKey.Builder builderForValue) { + if (singleRegionKeysBuilder_ == null) { + ensureSingleRegionKeysIsMutable(); + singleRegionKeys_.add(index, builderForValue.build()); + onChanged(); + } else { + singleRegionKeysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. Single-regional CMEKs that are required for some VAIS features.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSingleRegionKeys( + java.lang.Iterable + values) { + if (singleRegionKeysBuilder_ == null) { + ensureSingleRegionKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, singleRegionKeys_); + onChanged(); + } else { + singleRegionKeysBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Optional. Single-regional CMEKs that are required for some VAIS features.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSingleRegionKeys() { + if (singleRegionKeysBuilder_ == null) { + singleRegionKeys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + singleRegionKeysBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Single-regional CMEKs that are required for some VAIS features.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSingleRegionKeys(int index) { + if (singleRegionKeysBuilder_ == null) { + ensureSingleRegionKeysIsMutable(); + singleRegionKeys_.remove(index); + onChanged(); + } else { + singleRegionKeysBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Optional. Single-regional CMEKs that are required for some VAIS features.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SingleRegionKey.Builder + getSingleRegionKeysBuilder(int index) { + return internalGetSingleRegionKeysFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Optional. Single-regional CMEKs that are required for some VAIS features.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SingleRegionKeyOrBuilder + getSingleRegionKeysOrBuilder(int index) { + if (singleRegionKeysBuilder_ == null) { + return singleRegionKeys_.get(index); + } else { + return singleRegionKeysBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Optional. Single-regional CMEKs that are required for some VAIS features.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.SingleRegionKeyOrBuilder> + getSingleRegionKeysOrBuilderList() { + if (singleRegionKeysBuilder_ != null) { + return singleRegionKeysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(singleRegionKeys_); + } + } + + /** + * + * + *
            +     * Optional. Single-regional CMEKs that are required for some VAIS features.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SingleRegionKey.Builder + addSingleRegionKeysBuilder() { + return internalGetSingleRegionKeysFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1beta.SingleRegionKey.getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. Single-regional CMEKs that are required for some VAIS features.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SingleRegionKey.Builder + addSingleRegionKeysBuilder(int index) { + return internalGetSingleRegionKeysFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1beta.SingleRegionKey.getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. Single-regional CMEKs that are required for some VAIS features.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getSingleRegionKeysBuilderList() { + return internalGetSingleRegionKeysFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SingleRegionKey, + com.google.cloud.discoveryengine.v1beta.SingleRegionKey.Builder, + com.google.cloud.discoveryengine.v1beta.SingleRegionKeyOrBuilder> + internalGetSingleRegionKeysFieldBuilder() { + if (singleRegionKeysBuilder_ == null) { + singleRegionKeysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SingleRegionKey, + com.google.cloud.discoveryengine.v1beta.SingleRegionKey.Builder, + com.google.cloud.discoveryengine.v1beta.SingleRegionKeyOrBuilder>( + singleRegionKeys_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + singleRegionKeys_ = null; + } + return singleRegionKeysBuilder_; + } + + private int notebooklmState_ = 0; + + /** + * + * + *
            +     * Output only. Whether the NotebookLM Corpus is ready to be used.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState notebooklm_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for notebooklmState. + */ + @java.lang.Override + public int getNotebooklmStateValue() { + return notebooklmState_; + } + + /** + * + * + *
            +     * Output only. Whether the NotebookLM Corpus is ready to be used.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState notebooklm_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for notebooklmState to set. + * @return This builder for chaining. + */ + public Builder setNotebooklmStateValue(int value) { + notebooklmState_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Whether the NotebookLM Corpus is ready to be used.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState notebooklm_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The notebooklmState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState getNotebooklmState() { + com.google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState result = + com.google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState.forNumber( + notebooklmState_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Output only. Whether the NotebookLM Corpus is ready to be used.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState notebooklm_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The notebooklmState to set. + * @return This builder for chaining. + */ + public Builder setNotebooklmState( + com.google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + notebooklmState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Whether the NotebookLM Corpus is ready to be used.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState notebooklm_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearNotebooklmState() { + bitField0_ = (bitField0_ & ~0x00000080); + notebooklmState_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CmekConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CmekConfig) + private static final com.google.cloud.discoveryengine.v1beta.CmekConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CmekConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.CmekConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CmekConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.CmekConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigName.java new file mode 100644 index 000000000000..b436e35bc99e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigName.java @@ -0,0 +1,306 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +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 CmekConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}/cmekConfig"); + private static final PathTemplate PROJECT_LOCATION_CMEK_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/cmekConfigs/{cmek_config}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String project; + private final String location; + private final String cmekConfig; + + @Deprecated + protected CmekConfigName() { + project = null; + location = null; + cmekConfig = null; + } + + private CmekConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cmekConfig = null; + pathTemplate = PROJECT_LOCATION; + } + + private CmekConfigName(ProjectLocationCmekConfigBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cmekConfig = Preconditions.checkNotNull(builder.getCmekConfig()); + pathTemplate = PROJECT_LOCATION_CMEK_CONFIG; + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCmekConfig() { + return cmekConfig; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newProjectLocationBuilder() { + return new Builder(); + } + + public static ProjectLocationCmekConfigBuilder newProjectLocationCmekConfigBuilder() { + return new ProjectLocationCmekConfigBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static CmekConfigName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static CmekConfigName ofProjectLocationName(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static CmekConfigName ofProjectLocationCmekConfigName( + String project, String location, String cmekConfig) { + return newProjectLocationCmekConfigBuilder() + .setProject(project) + .setLocation(location) + .setCmekConfig(cmekConfig) + .build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static String formatProjectLocationName(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static String formatProjectLocationCmekConfigName( + String project, String location, String cmekConfig) { + return newProjectLocationCmekConfigBuilder() + .setProject(project) + .setLocation(location) + .setCmekConfig(cmekConfig) + .build() + .toString(); + } + + public static CmekConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (PROJECT_LOCATION.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION.match(formattedString); + return ofProjectLocationName(matchMap.get("project"), matchMap.get("location")); + } else if (PROJECT_LOCATION_CMEK_CONFIG.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_CMEK_CONFIG.match(formattedString); + return ofProjectLocationCmekConfigName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("cmek_config")); + } + throw new ValidationException("CmekConfigName.parse: formattedString not in valid format"); + } + + 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 (CmekConfigName 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) + || PROJECT_LOCATION_CMEK_CONFIG.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 (cmekConfig != null) { + fieldMapBuilder.put("cmek_config", cmekConfig); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + CmekConfigName that = ((CmekConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.cmekConfig, that.cmekConfig); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(cmekConfig); + return h; + } + + /** Builder for projects/{project}/locations/{location}/cmekConfig. */ + 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(CmekConfigName cmekConfigName) { + Preconditions.checkArgument( + Objects.equals(cmekConfigName.pathTemplate, PROJECT_LOCATION), + "toBuilder is only supported when CmekConfigName has the pattern of" + + " projects/{project}/locations/{location}/cmekConfig"); + this.project = cmekConfigName.project; + this.location = cmekConfigName.location; + } + + public CmekConfigName build() { + return new CmekConfigName(this); + } + } + + /** Builder for projects/{project}/locations/{location}/cmekConfigs/{cmek_config}. */ + public static class ProjectLocationCmekConfigBuilder { + private String project; + private String location; + private String cmekConfig; + + protected ProjectLocationCmekConfigBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCmekConfig() { + return cmekConfig; + } + + public ProjectLocationCmekConfigBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationCmekConfigBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationCmekConfigBuilder setCmekConfig(String cmekConfig) { + this.cmekConfig = cmekConfig; + return this; + } + + public CmekConfigName build() { + return new CmekConfigName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigOrBuilder.java new file mode 100644 index 000000000000..ac2599875711 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigOrBuilder.java @@ -0,0 +1,278 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/cmek_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface CmekConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CmekConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The name of the CmekConfig of the form
            +   * `projects/{project}/locations/{location}/cmekConfig` or
            +   * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The name of the CmekConfig of the form
            +   * `projects/{project}/locations/{location}/cmekConfig` or
            +   * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Required. KMS key resource name which will be used to encrypt resources
            +   * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
            +   * 
            + * + * + * string kms_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + java.lang.String getKmsKey(); + + /** + * + * + *
            +   * Required. KMS key resource name which will be used to encrypt resources
            +   * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
            +   * 
            + * + * + * string kms_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + com.google.protobuf.ByteString getKmsKeyBytes(); + + /** + * + * + *
            +   * Output only. KMS key version resource name which will be used to encrypt
            +   * resources
            +   * `<kms_key>/cryptoKeyVersions/{keyVersion}`.
            +   * 
            + * + * + * string kms_key_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKeyVersion. + */ + java.lang.String getKmsKeyVersion(); + + /** + * + * + *
            +   * Output only. KMS key version resource name which will be used to encrypt
            +   * resources
            +   * `<kms_key>/cryptoKeyVersions/{keyVersion}`.
            +   * 
            + * + * + * string kms_key_version = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKeyVersion. + */ + com.google.protobuf.ByteString getKmsKeyVersionBytes(); + + /** + * + * + *
            +   * Output only. The states of the CmekConfig.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
            +   * Output only. The states of the CmekConfig.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.discoveryengine.v1beta.CmekConfig.State getState(); + + /** + * + * + *
            +   * Output only. The default CmekConfig for the Customer.
            +   * 
            + * + * bool is_default = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isDefault. + */ + boolean getIsDefault(); + + /** + * + * + *
            +   * Output only. The timestamp of the last key rotation.
            +   * 
            + * + * int64 last_rotation_timestamp_micros = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastRotationTimestampMicros. + */ + long getLastRotationTimestampMicros(); + + /** + * + * + *
            +   * Optional. Single-regional CMEKs that are required for some VAIS features.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getSingleRegionKeysList(); + + /** + * + * + *
            +   * Optional. Single-regional CMEKs that are required for some VAIS features.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.SingleRegionKey getSingleRegionKeys(int index); + + /** + * + * + *
            +   * Optional. Single-regional CMEKs that are required for some VAIS features.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSingleRegionKeysCount(); + + /** + * + * + *
            +   * Optional. Single-regional CMEKs that are required for some VAIS features.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getSingleRegionKeysOrBuilderList(); + + /** + * + * + *
            +   * Optional. Single-regional CMEKs that are required for some VAIS features.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SingleRegionKey single_region_keys = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.SingleRegionKeyOrBuilder getSingleRegionKeysOrBuilder( + int index); + + /** + * + * + *
            +   * Output only. Whether the NotebookLM Corpus is ready to be used.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState notebooklm_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for notebooklmState. + */ + int getNotebooklmStateValue(); + + /** + * + * + *
            +   * Output only. Whether the NotebookLM Corpus is ready to be used.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState notebooklm_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The notebooklmState. + */ + com.google.cloud.discoveryengine.v1beta.CmekConfig.NotebookLMState getNotebooklmState(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceProto.java new file mode 100644 index 000000000000..cc4158501b53 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CmekConfigServiceProto.java @@ -0,0 +1,300 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/cmek_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public final class CmekConfigServiceProto extends com.google.protobuf.GeneratedFile { + private CmekConfigServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CmekConfigServiceProto"); + } + + 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_discoveryengine_v1beta_UpdateCmekConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_UpdateCmekConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_GetCmekConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_GetCmekConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SingleRegionKey_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SingleRegionKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_CmekConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CmekConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_UpdateCmekConfigMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_UpdateCmekConfigMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListCmekConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListCmekConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListCmekConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListCmekConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DeleteCmekConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DeleteCmekConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DeleteCmekConfigMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DeleteCmekConfigMetadata_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/discoveryengine/v1beta/cmek_config_service.proto\022#google.cloud.di" + + "scoveryengine.v1beta\032\034google/api/annotat" + + "ions.proto\032\027google/api/client.proto\032\037goo" + + "gle/api/field_behavior.proto\032\031google/api" + + "/resource.proto\032#google/longrunning/oper" + + "ations.proto\032\033google/protobuf/empty.proto\032\037google/protobuf/timestamp.proto\"t\n" + + "\027UpdateCmekConfigRequest\022D\n" + + "\006config\030\001 \001(\0132/." + + "google.cloud.discoveryengine.v1beta.CmekConfigB\003\340A\002\022\023\n" + + "\013set_default\030\002 \001(\010\"W\n" + + "\024GetCmekConfigRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")discoveryengine.googleapis.com/CmekConfig\"N\n" + + "\017SingleRegionKey\022;\n" + + "\007kms_key\030\001 \001(\tB*\340A\002\372A$\n" + + "\"cloudkms.googleapis.com/CryptoKeys\"\340\007\n\n" + + "CmekConfig\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\002\022;\n" + + "\007kms_key\030\002 \001(\tB*\340A\002\372A$\n" + + "\"cloudkms.googleapis.com/CryptoKeys\022J\n" + + "\017kms_key_version\030\006 \001(\tB1\340A\003\372A+\n" + + ")cloudkms.googleapis.com/CryptoKeyVersions\022I\n" + + "\005state\030\003 \001(\01625.google.clo" + + "ud.discoveryengine.v1beta.CmekConfig.StateB\003\340A\003\022\027\n\n" + + "is_default\030\004 \001(\010B\003\340A\003\022+\n" + + "\036last_rotation_timestamp_micros\030\005 \001(\003B\003\340A\003\022U\n" + + "\022single_region_keys\030\007 \003(\01324.google.cloud" + + ".discoveryengine.v1beta.SingleRegionKeyB\003\340A\001\022^\n" + + "\020notebooklm_state\030\010 \001(\0162?.google." + + "cloud.discoveryengine.v1beta.CmekConfig.NotebookLMStateB\003\340A\003\"\245\001\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010CREATING\020\001\022\n\n" + + "\006ACTIVE\020\002\022\r\n" + + "\tKEY_ISSUE\020\003\022\014\n" + + "\010DELETING\020\004\022\021\n\r" + + "DELETE_FAILED\020\007\022\014\n" + + "\010UNUSABLE\020\005\022\023\n" + + "\017ACTIVE_ROTATING\020\006\022\013\n" + + "\007DELETED\020\010\022\013\n" + + "\007EXPIRED\020\t\"\203\001\n" + + "\017NotebookLMState\022!\n" + + "\035NOTEBOOK_LM_STATE_UNSPECIFIED\020\000\022\031\n" + + "\025NOTEBOOK_LM_NOT_READY\020\001\022\025\n" + + "\021NOTEBOOK_LM_READY\020\002\022\033\n" + + "\027NOTEBOOK_LM_NOT_ENABLED\020\003:\277\001\352A\273\001\n" + + ")discoveryengine.googleapis.com/CmekConfig\0222projects/{project}/locatio" + + "ns/{location}/cmekConfig\022Aprojects/{proj" + + "ect}/locations/{location}/cmekConfigs/{cmek_config}*\013cmekConfigs2\n" + + "cmekConfig\"|\n" + + "\030UpdateCmekConfigMetadata\022/\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n" + + "\013update_time\030\002 \001(\0132\032.google.protobuf.Timestamp\"Y\n" + + "\026ListCmekConfigsRequest\022?\n" + + "\006parent\030\001 \001(\tB/\340A\002\372A)\n" + + "\'discoveryengine.googleapis.com/Location\"`\n" + + "\027ListCmekConfigsResponse\022E\n" + + "\014cmek_configs\030\001" + + " \003(\0132/.google.cloud.discoveryengine.v1beta.CmekConfig\"Z\n" + + "\027DeleteCmekConfigRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")discoveryengine.googleapis.com/CmekConfig\"|\n" + + "\030DeleteCmekConfigMetadata\022/\n" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n" + + "\013update_time\030\002 \001(\0132\032.google.protobuf.Timestamp2\274\n\n" + + "\021CmekConfigService\022\372\002\n" + + "\020UpdateCmekConfig\022<.google.cloud.discoveryeng" + + "ine.v1beta.UpdateCmekConfigRequest\032\035.google.longrunning.Operation\"\210\002\312An\n" + + ".google.cloud.discoveryengine.v1beta.CmekConfig\022" + + " - * Required. The parent DataStore resource name, such as + * Required. The parent resource name. + * If the collect user event action is applied in + * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the + * format is: * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. + * If the collect user event action is applied in + * [Location][google.cloud.location.Location] level, for example, the event + * with [Document][google.cloud.discoveryengine.v1beta.Document] across + * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the + * format is: `projects/{project}/locations/{location}`. *
            * * @@ -109,8 +117,16 @@ public java.lang.String getParent() { * * *
            -   * Required. The parent DataStore resource name, such as
            +   * Required. The parent resource name.
            +   * If the collect user event action is applied in
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the
            +   * format is:
                * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
            +   * If the collect user event action is applied in
            +   * [Location][google.cloud.location.Location] level, for example, the event
            +   * with [Document][google.cloud.discoveryengine.v1beta.Document] across
            +   * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the
            +   * format is: `projects/{project}/locations/{location}`.
                * 
            * * @@ -709,8 +725,16 @@ public Builder mergeFrom( * * *
            -     * Required. The parent DataStore resource name, such as
            +     * Required. The parent resource name.
            +     * If the collect user event action is applied in
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the
            +     * format is:
                  * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
            +     * If the collect user event action is applied in
            +     * [Location][google.cloud.location.Location] level, for example, the event
            +     * with [Document][google.cloud.discoveryengine.v1beta.Document] across
            +     * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the
            +     * format is: `projects/{project}/locations/{location}`.
                  * 
            * * @@ -735,8 +759,16 @@ public java.lang.String getParent() { * * *
            -     * Required. The parent DataStore resource name, such as
            +     * Required. The parent resource name.
            +     * If the collect user event action is applied in
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the
            +     * format is:
                  * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
            +     * If the collect user event action is applied in
            +     * [Location][google.cloud.location.Location] level, for example, the event
            +     * with [Document][google.cloud.discoveryengine.v1beta.Document] across
            +     * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the
            +     * format is: `projects/{project}/locations/{location}`.
                  * 
            * * @@ -761,8 +793,16 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
            -     * Required. The parent DataStore resource name, such as
            +     * Required. The parent resource name.
            +     * If the collect user event action is applied in
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the
            +     * format is:
                  * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
            +     * If the collect user event action is applied in
            +     * [Location][google.cloud.location.Location] level, for example, the event
            +     * with [Document][google.cloud.discoveryengine.v1beta.Document] across
            +     * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the
            +     * format is: `projects/{project}/locations/{location}`.
                  * 
            * * @@ -786,8 +826,16 @@ public Builder setParent(java.lang.String value) { * * *
            -     * Required. The parent DataStore resource name, such as
            +     * Required. The parent resource name.
            +     * If the collect user event action is applied in
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the
            +     * format is:
                  * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
            +     * If the collect user event action is applied in
            +     * [Location][google.cloud.location.Location] level, for example, the event
            +     * with [Document][google.cloud.discoveryengine.v1beta.Document] across
            +     * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the
            +     * format is: `projects/{project}/locations/{location}`.
                  * 
            * * @@ -807,8 +855,16 @@ public Builder clearParent() { * * *
            -     * Required. The parent DataStore resource name, such as
            +     * Required. The parent resource name.
            +     * If the collect user event action is applied in
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the
            +     * format is:
                  * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
            +     * If the collect user event action is applied in
            +     * [Location][google.cloud.location.Location] level, for example, the event
            +     * with [Document][google.cloud.discoveryengine.v1beta.Document] across
            +     * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the
            +     * format is: `projects/{project}/locations/{location}`.
                  * 
            * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectUserEventRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectUserEventRequestOrBuilder.java index c8da8eb54f66..8a5def05821a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectUserEventRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CollectUserEventRequestOrBuilder.java @@ -30,8 +30,16 @@ public interface CollectUserEventRequestOrBuilder * * *
            -   * Required. The parent DataStore resource name, such as
            +   * Required. The parent resource name.
            +   * If the collect user event action is applied in
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the
            +   * format is:
                * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
            +   * If the collect user event action is applied in
            +   * [Location][google.cloud.location.Location] level, for example, the event
            +   * with [Document][google.cloud.discoveryengine.v1beta.Document] across
            +   * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the
            +   * format is: `projects/{project}/locations/{location}`.
                * 
            * * @@ -46,8 +54,16 @@ public interface CollectUserEventRequestOrBuilder * * *
            -   * Required. The parent DataStore resource name, such as
            +   * Required. The parent resource name.
            +   * If the collect user event action is applied in
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the
            +   * format is:
                * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`.
            +   * If the collect user event action is applied in
            +   * [Location][google.cloud.location.Location] level, for example, the event
            +   * with [Document][google.cloud.discoveryengine.v1beta.Document] across
            +   * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the
            +   * format is: `projects/{project}/locations/{location}`.
                * 
            * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CommonProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CommonProto.java index 768c866f719f..19e01811fa6d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CommonProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CommonProto.java @@ -52,6 +52,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_UserInfo_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_UserInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_UserInfo_PreciseLocation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_UserInfo_PreciseLocation_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_EmbeddingConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -60,6 +64,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_DoubleList_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_DoubleList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_IdpConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_IdpConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_IdpConfig_ExternalIdpConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_IdpConfig_ExternalIdpConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Principal_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Principal_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_HealthcareFhirConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_HealthcareFhirConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchLinkPromotion_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchLinkPromotion_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -70,8 +94,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { "\n" - + "0google/cloud/discoveryengine/v1beta/co" - + "mmon.proto\022#google.cloud.discoveryengine.v1beta\032\031google/api/resource.proto\"x\n" + + "0google/cloud/discoveryengine/v1beta/common.proto\022#google.cloud.discoveryengine" + + ".v1beta\032\037google/api/field_behavior.proto" + + "\032\031google/api/resource.proto\032\030google/type/latlng.proto\"x\n" + "\010Interval\022\021\n" + "\007minimum\030\001 \001(\001H\000\022\033\n" + "\021exclusive_minimum\030\002 \001(\001H\000\022\021\n" @@ -81,25 +106,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003max\"0\n" + "\017CustomAttribute\022\014\n" + "\004text\030\001 \003(\t\022\017\n" - + "\007numbers\030\002 \003(\001\"/\n" + + "\007numbers\030\002 \003(\001\"\212\002\n" + "\010UserInfo\022\017\n" + "\007user_id\030\001 \001(\t\022\022\n\n" - + "user_agent\030\002 \001(\t\"%\n" + + "user_agent\030\002 \001(\t\022\026\n" + + "\ttime_zone\030\003 \001(\tB\003\340A\001\022_\n" + + "\020precise_location\030\004" + + " \001(\0132=.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocationB\006\340A\004\340A\001\032`\n" + + "\017PreciseLocation\022)\n" + + "\005point\030\001 \001(\0132\023.google.type.LatLngB\003\340A\001H\000\022\026\n" + + "\007address\030\002 \001(\tB\003\340A\001H\000B\n\n" + + "\010location\"%\n" + "\017EmbeddingConfig\022\022\n\n" + "field_path\030\001 \001(\t\"\034\n\n" + "DoubleList\022\016\n" - + "\006values\030\001 \003(\001*b\n" + + "\006values\030\001 \003(\001\"\250\002\n" + + "\tIdpConfig\022H\n" + + "\010idp_type\030\001 \001(\01626.go" + + "ogle.cloud.discoveryengine.v1beta.IdpConfig.IdpType\022]\n" + + "\023external_idp_config\030\002 \001(\013" + + "2@.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig\0320\n" + + "\021ExternalIdpConfig\022\033\n" + + "\023workforce_pool_name\030\001 \001(\t\"@\n" + + "\007IdpType\022\030\n" + + "\024IDP_TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006GSUITE\020\001\022\017\n" + + "\013THIRD_PARTY\020\002\"]\n" + + "\tPrincipal\022\021\n" + + "\007user_id\030\001 \001(\tH\000\022\022\n" + + "\010group_id\030\002 \001(\tH\000\022\034\n" + + "\022external_entity_id\030\003 \001(\tH\000B\013\n" + + "\tprincipal\"\222\001\n" + + "\024HealthcareFhirConfig\022\"\n" + + "\032enable_configurable_schema\030\001 \001(\010\0222\n" + + "*enable_static_indexing_for_batch_ingestion\030\002 \001(\010\022\"\n" + + "\025initial_filter_groups\030\004 \003(\tB\003\340A\001\"\306\001\n" + + "\023SearchLinkPromotion\022\022\n" + + "\005title\030\001 \001(\tB\003\340A\002\022\020\n" + + "\003uri\030\002 \001(\tB\003\340A\001\022A\n" + + "\010document\030\006 \001(\tB/\340A\001\372A)\n" + + "\'discoveryengine.googleapis.com/Document\022\026\n" + + "\timage_uri\030\003 \001(\tB\003\340A\001\022\030\n" + + "\013description\030\004 \001(\tB\003\340A\001\022\024\n" + + "\007enabled\030\005 \001(\010B\003\340A\001*b\n" + "\020IndustryVertical\022!\n" + "\035INDUSTRY_VERTICAL_UNSPECIFIED\020\000\022\013\n" + "\007GENERIC\020\001\022\t\n" + "\005MEDIA\020\002\022\023\n" - + "\017HEALTHCARE_FHIR\020\007*\244\001\n" + + "\017HEALTHCARE_FHIR\020\007*\277\001\n" + "\014SolutionType\022\035\n" + "\031SOLUTION_TYPE_UNSPECIFIED\020\000\022 \n" + "\034SOLUTION_TYPE_RECOMMENDATION\020\001\022\030\n" + "\024SOLUTION_TYPE_SEARCH\020\002\022\026\n" + "\022SOLUTION_TYPE_CHAT\020\003\022!\n" - + "\035SOLUTION_TYPE_GENERATIVE_CHAT\020\004*h\n\r" + + "\035SOLUTION_TYPE_GENERATIVE_CHAT\020\004\022\031\n" + + "\025SOLUTION_TYPE_AI_MODE\020\005*h\n\r" + "SearchUseCase\022\037\n" + "\033SEARCH_USE_CASE_UNSPECIFIED\020\000\022\032\n" + "\026SEARCH_USE_CASE_SEARCH\020\001\022\032\n" @@ -110,38 +171,78 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026SEARCH_TIER_ENTERPRISE\020\002*C\n" + "\013SearchAddOn\022\035\n" + "\031SEARCH_ADD_ON_UNSPECIFIED\020\000\022\025\n" - + "\021SEARCH_ADD_ON_LLM\020\001B\265\013\n" - + "\'com.google.cloud.discoveryengine.v1betaB\013CommonProto" - + "P\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryeng" - + "inepb\242\002\017DISCOVERYENGINE\252\002#Google.Cloud.D" - + "iscoveryEngine.V1Beta\312\002#Google\\Cloud\\Dis" - + "coveryEngine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1beta\352A\346\001\n" - + "%discoveryengine.googleapis.com/Branch\022Qprojects/{proje" - + "ct}/locations/{location}/dataStores/{data_store}/branches/{branch}\022jprojects/{pr" - + "oject}/locations/{location}/collections/" - + "{collection}/dataStores/{data_store}/branches/{branch}\352Am\n" - + ")discoveryengine.googleapis.com/Collection\022@projects/{project}" - + "/locations/{location}/collections/{collection}\352AR\n" - + "\'discoveryengine.googleapis.co" - + "m/Location\022\'projects/{project}/locations/{location}\352Aw\n" - + ",discoveryengine.googleapis.com/RankingConfig\022Gprojects/{project}" - + "/locations/{location}/rankingConfigs/{ranking_config}\352A\322\002\n" - + "/discoveryengine.googleapis.com/CompletionConfig\022Pprojects/{pr" - + "oject}/locations/{location}/dataStores/{data_store}/completionConfig\022iprojects/{" - + "project}/locations/{location}/collections/{collection}/dataStores/{data_store}/c" - + "ompletionConfig\022bprojects/{project}/loca" - + "tions/{location}/collections/{collection}/engines/{engine}/completionConfig\352Ay\n" - + "#healthcare.googleapis.com/FhirStore\022Rprojects/{project}/locations/{location}/dat" - + "asets/{dataset}/fhirStores/{fhir_store}\352A\244\001\n" - + "&healthcare.googleapis.com/FhirResource\022zprojects/{project}/locations/{locat" - + "ion}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resou" - + "rce_id}b\006proto3" + + "\021SEARCH_ADD_ON_LLM\020\001*\233\004\n" + + "\020SubscriptionTier\022!\n" + + "\035SUBSCRIPTION_TIER_UNSPECIFIED\020\000\022\034\n" + + "\030SUBSCRIPTION_TIER_SEARCH\020\001\022*\n" + + "&SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT\020\002\022!\n" + + "\035SUBSCRIPTION_TIER_NOTEBOOK_LM\020\003\022&\n" + + "\"SUBSCRIPTION_TIER_FRONTLINE_WORKER\020\004\022(\n" + + "$SUBSCRIPTION_TIER_AGENTSPACE_STARTER\020\n" + + "\022)\n" + + "%SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS\020\006\022 \n" + + "\034SUBSCRIPTION_TIER_ENTERPRISE\020\007\022)\n" + + "%SUBSCRIPTION_TIER_ENTERPRISE_EMERGING\020\017\022\031\n" + + "\025SUBSCRIPTION_TIER_EDU\020\010\022\035\n" + + "\031SUBSCRIPTION_TIER_EDU_PRO\020\t\022\"\n" + + "\036SUBSCRIPTION_TIER_EDU_EMERGING\020\013\022&\n" + + "\"SUBSCRIPTION_TIER_EDU_PRO_EMERGING\020\014\022\'\n" + + "#SUBSCRIPTION_TIER_FRONTLINE_STARTER\020\r" + + "*\267\001\n" + + "\020SubscriptionTerm\022!\n" + + "\035SUBSCRIPTION_TERM_UNSPECIFIED\020\000\022\037\n" + + "\033SUBSCRIPTION_TERM_ONE_MONTH\020\001\022\036\n" + + "\032SUBSCRIPTION_TERM_ONE_YEAR\020\002\022!\n" + + "\035SUBSCRIPTION_TERM_THREE_YEARS\020\003\022\034\n" + + "\030SUBSCRIPTION_TERM_CUSTOM\020\006B\235\022\n" + + "\'com.google.cloud.discoveryengine.v1betaB\013CommonProtoP\001ZQcloud.google.com/g" + + "o/discoveryengine/apiv1beta/discoveryeng" + + "inepb;discoveryenginepb\242\002\017DISCOVERYENGIN" + + "E\252\002#Google.Cloud.DiscoveryEngine.V1Beta\312" + + "\002#Google\\Cloud\\DiscoveryEngine\\V1beta\352\002&" + + "Google::Cloud::DiscoveryEngine::V1beta\352A\346\001\n" + + "%discoveryengine.googleapis.com/Branch\022Qprojects/{project}/locations/{locatio" + + "n}/dataStores/{data_store}/branches/{branch}\022jprojects/{project}/locations/{loca" + + "tion}/collections/{collection}/dataStores/{data_store}/branches/{branch}\352Am\n" + + ")discoveryengine.googleapis.com/Collection\022@" + + "projects/{project}/locations/{location}/collections/{collection}\352AR\n" + + "\'discoveryen" + + "gine.googleapis.com/Location\022\'projects/{project}/locations/{location}\352Aw\n" + + ",discoveryengine.googleapis.com/RankingConfig\022G" + + "projects/{project}/locations/{location}/rankingConfigs/{ranking_config}\352A\322\002\n" + + "/discoveryengine.googleapis.com/CompletionCo" + + "nfig\022Pprojects/{project}/locations/{location}/dataStores/{data_store}/completion" + + "Config\022iprojects/{project}/locations/{location}/collections/{collection}/dataSto" + + "res/{data_store}/completionConfig\022bprojects/{project}/locations/{location}/colle" + + "ctions/{collection}/engines/{engine}/completionConfig\352A\235\001\n" + + ":discoveryengine.googleapis.com/BillingAccountLicenseConfig\022_b" + + "illingAccounts/{billing_account}/billing" + + "AccountLicenseConfigs/{billing_account_license_config}\352At\n" + + "+networkservices.googleapis.com/AgentGateway\022Eprojects/{projec" + + "t}/locations/{location}/agentGateways/{agent_gateway}\352Ab\n" + + "\"modelarmor.googleapis." + + "com/Template\022 - * A unique identifier for tracking visitors. For example, this could be - * implemented with an HTTP cookie, which should be able to uniquely identify - * a visitor on a single device. This unique identifier should not change if - * the visitor logs in or out of the website. + * Optional. A unique identifier for tracking visitors. For example, this + * could be implemented with an HTTP cookie, which should be able to uniquely + * identify a visitor on a single device. This unique identifier should not + * change if the visitor logs in or out of the website. * * This field should NOT have a fixed value such as `unknown_visitor`. * @@ -301,7 +301,7 @@ public com.google.protobuf.ByteString getQueryModelBytes() { * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. *
            * - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The userPseudoId. */ @@ -322,10 +322,10 @@ public java.lang.String getUserPseudoId() { * * *
            -   * A unique identifier for tracking visitors. For example, this could be
            -   * implemented with an HTTP cookie, which should be able to uniquely identify
            -   * a visitor on a single device. This unique identifier should not change if
            -   * the visitor logs in or out of the website.
            +   * Optional. A unique identifier for tracking visitors. For example, this
            +   * could be implemented with an HTTP cookie, which should be able to uniquely
            +   * identify a visitor on a single device. This unique identifier should not
            +   * change if the visitor logs in or out of the website.
                *
                * This field should NOT have a fixed value such as `unknown_visitor`.
                *
            @@ -338,7 +338,7 @@ public java.lang.String getUserPseudoId() {
                * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
                * 
            * - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for userPseudoId. */ @@ -1231,10 +1231,10 @@ public Builder setQueryModelBytes(com.google.protobuf.ByteString value) { * * *
            -     * A unique identifier for tracking visitors. For example, this could be
            -     * implemented with an HTTP cookie, which should be able to uniquely identify
            -     * a visitor on a single device. This unique identifier should not change if
            -     * the visitor logs in or out of the website.
            +     * Optional. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
                  *
                  * This field should NOT have a fixed value such as `unknown_visitor`.
                  *
            @@ -1247,7 +1247,7 @@ public Builder setQueryModelBytes(com.google.protobuf.ByteString value) {
                  * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The userPseudoId. */ @@ -1267,10 +1267,10 @@ public java.lang.String getUserPseudoId() { * * *
            -     * A unique identifier for tracking visitors. For example, this could be
            -     * implemented with an HTTP cookie, which should be able to uniquely identify
            -     * a visitor on a single device. This unique identifier should not change if
            -     * the visitor logs in or out of the website.
            +     * Optional. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
                  *
                  * This field should NOT have a fixed value such as `unknown_visitor`.
                  *
            @@ -1283,7 +1283,7 @@ public java.lang.String getUserPseudoId() {
                  * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for userPseudoId. */ @@ -1303,10 +1303,10 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() { * * *
            -     * A unique identifier for tracking visitors. For example, this could be
            -     * implemented with an HTTP cookie, which should be able to uniquely identify
            -     * a visitor on a single device. This unique identifier should not change if
            -     * the visitor logs in or out of the website.
            +     * Optional. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
                  *
                  * This field should NOT have a fixed value such as `unknown_visitor`.
                  *
            @@ -1319,7 +1319,7 @@ public com.google.protobuf.ByteString getUserPseudoIdBytes() {
                  * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The userPseudoId to set. * @return This builder for chaining. @@ -1338,10 +1338,10 @@ public Builder setUserPseudoId(java.lang.String value) { * * *
            -     * A unique identifier for tracking visitors. For example, this could be
            -     * implemented with an HTTP cookie, which should be able to uniquely identify
            -     * a visitor on a single device. This unique identifier should not change if
            -     * the visitor logs in or out of the website.
            +     * Optional. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
                  *
                  * This field should NOT have a fixed value such as `unknown_visitor`.
                  *
            @@ -1354,7 +1354,7 @@ public Builder setUserPseudoId(java.lang.String value) {
                  * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1369,10 +1369,10 @@ public Builder clearUserPseudoId() { * * *
            -     * A unique identifier for tracking visitors. For example, this could be
            -     * implemented with an HTTP cookie, which should be able to uniquely identify
            -     * a visitor on a single device. This unique identifier should not change if
            -     * the visitor logs in or out of the website.
            +     * Optional. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
                  *
                  * This field should NOT have a fixed value such as `unknown_visitor`.
                  *
            @@ -1385,7 +1385,7 @@ public Builder clearUserPseudoId() {
                  * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for userPseudoId to set. * @return This builder for chaining. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryRequestOrBuilder.java index 42848abf0ae3..29bc48e7bb1c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompleteQueryRequestOrBuilder.java @@ -150,10 +150,10 @@ public interface CompleteQueryRequestOrBuilder * * *
            -   * A unique identifier for tracking visitors. For example, this could be
            -   * implemented with an HTTP cookie, which should be able to uniquely identify
            -   * a visitor on a single device. This unique identifier should not change if
            -   * the visitor logs in or out of the website.
            +   * Optional. A unique identifier for tracking visitors. For example, this
            +   * could be implemented with an HTTP cookie, which should be able to uniquely
            +   * identify a visitor on a single device. This unique identifier should not
            +   * change if the visitor logs in or out of the website.
                *
                * This field should NOT have a fixed value such as `unknown_visitor`.
                *
            @@ -166,7 +166,7 @@ public interface CompleteQueryRequestOrBuilder
                * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
                * 
            * - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The userPseudoId. */ @@ -176,10 +176,10 @@ public interface CompleteQueryRequestOrBuilder * * *
            -   * A unique identifier for tracking visitors. For example, this could be
            -   * implemented with an HTTP cookie, which should be able to uniquely identify
            -   * a visitor on a single device. This unique identifier should not change if
            -   * the visitor logs in or out of the website.
            +   * Optional. A unique identifier for tracking visitors. For example, this
            +   * could be implemented with an HTTP cookie, which should be able to uniquely
            +   * identify a visitor on a single device. This unique identifier should not
            +   * change if the visitor logs in or out of the website.
                *
                * This field should NOT have a fixed value such as `unknown_visitor`.
                *
            @@ -192,7 +192,7 @@ public interface CompleteQueryRequestOrBuilder
                * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
                * 
            * - * string user_pseudo_id = 4; + * string user_pseudo_id = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for userPseudoId. */ diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceProto.java index 86f61a030cee..d8c74ab8ef15 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CompletionServiceProto.java @@ -64,6 +64,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_BoostSpec_ConditionBoostSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_BoostSpec_ConditionBoostSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_SuggestionTypeSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_SuggestionTypeSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -84,6 +88,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryResponse_RecentSearchSuggestion_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryResponse_RecentSearchSuggestion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -101,145 +113,183 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "resource.proto\0320google/cloud/discoveryengine/v1beta/common.proto\0322google/cloud/d" + "iscoveryengine/v1beta/document.proto\0327google/cloud/discoveryengine/v1beta/import" + "_config.proto\0326google/cloud/discoveryengine/v1beta/purge_config.proto\032#google/lo" - + "ngrunning/operations.proto\032\037google/protobuf/timestamp.proto\"\277\001\n" + + "ngrunning/operations.proto\032\037google/protobuf/timestamp.proto\"\304\001\n" + "\024CompleteQueryRequest\022D\n\n" + "data_store\030\001 \001(\tB0\340A\002\372A*\n" + "(discoveryengine.googleapis.com/DataStore\022\022\n" + "\005query\030\002 \001(\tB\003\340A\002\022\023\n" - + "\013query_model\030\003 \001(\t\022\026\n" - + "\016user_pseudo_id\030\004 \001(\t\022 \n" + + "\013query_model\030\003 \001(\t\022\033\n" + + "\016user_pseudo_id\030\004 \001(\tB\003\340A\001\022 \n" + "\030include_tail_suggestions\030\005 \001(\010\"\344\001\n" + "\025CompleteQueryResponse\022e\n" - + "\021query_suggestions\030\001 \003(\0132J.google.clou" - + "d.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion\022\034\n" + + "\021query_suggestions\030\001 \003(\0132J.google" + + ".cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion\022\034\n" + "\024tail_match_triggered\030\002 \001(\010\032F\n" + "\017QuerySuggestion\022\022\n\n" + "suggestion\030\001 \001(\t\022\037\n" - + "\027completable_field_paths\030\002 \003(\t\"\270\006\n" + + "\027completable_field_paths\030\002 \003(\t\"\371\010\n" + "\034AdvancedCompleteQueryRequest\022R\n" + "\021completion_config\030\001 \001(\tB7\340A\002\372A1\n" + "/discoveryengine.googleapis.com/CompletionConfig\022\022\n" + "\005query\030\002 \001(\tB\003\340A\002\022\023\n" - + "\013query_model\030\003 \001(\t\022\026\n" - + "\016user_pseudo_id\030\004 \001(\t\022E\n" + + "\013query_model\030\003 \001(\t\022\033\n" + + "\016user_pseudo_id\030\004 \001(\tB\003\340A\001\022E\n" + "\tuser_info\030\t" + " \001(\0132-.google.cloud.discoveryengine.v1beta.UserInfoB\003\340A\001\022 \n" + "\030include_tail_suggestions\030\005 \001(\010\022d\n\n" - + "boost_spec\030\006 \001(\0132K.google" - + ".cloud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.BoostSpecB\003\340A\001\022o\n" - + "\020suggestion_types\030\007 \003(\0162P.google.cloud.disco" - + "veryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeB\003\340A\001\032\302\001\n" + + "boost_spec\030\006 \001(\0132K.google.cloud.discoveryengine.v1beta." + + "AdvancedCompleteQueryRequest.BoostSpecB\003\340A\001\022o\n" + + "\020suggestion_types\030\007 \003(\0162P.google.c" + + "loud.discoveryengine.v1beta.AdvancedCompleteQueryRequest.SuggestionTypeB\003\340A\001\022x\n" + + "\025suggestion_type_specs\030\n" + + " \003(\0132T.google.cloud.discoveryengine.v1beta.AdvancedComple" + + "teQueryRequest.SuggestionTypeSpecB\003\340A\001\022\033\n" + + "\016experiment_ids\030\016 \003(\tB\003\340A\001\032\302\001\n" + "\tBoostSpec\022}\n" - + "\025condition_boost_specs\030\001 \003(\0132^.google" - + ".cloud.discoveryengine.v1beta.AdvancedCo" - + "mpleteQueryRequest.BoostSpec.ConditionBoostSpec\0326\n" + + "\025condition_boost_specs\030\001 \003(\0132^.googl" + + "e.cloud.discoveryengine.v1beta.AdvancedC" + + "ompleteQueryRequest.BoostSpec.ConditionBoostSpec\0326\n" + "\022ConditionBoostSpec\022\021\n" + "\tcondition\030\001 \001(\t\022\r\n" - + "\005boost\030\002 \001(\002\"~\n" + + "\005boost\030\002 \001(\002\032\242\001\n" + + "\022SuggestionTypeSpec\022n\n" + + "\017suggestion_type\030\001 \001(\0162P.google.cloud.discoveryengine.v1beta.AdvancedC" + + "ompleteQueryRequest.SuggestionTypeB\003\340A\001\022\034\n" + + "\017max_suggestions\030\002 \001(\005B\003\340A\001\"~\n" + "\016SuggestionType\022\037\n" + "\033SUGGESTION_TYPE_UNSPECIFIED\020\000\022\t\n" + "\005QUERY\020\001\022\n\n" + "\006PEOPLE\020\002\022\013\n" + "\007CONTENT\020\003\022\021\n\r" + "RECENT_SEARCH\020\004\022\024\n" - + "\020GOOGLE_WORKSPACE\020\005\"\305\013\n" + + "\020GOOGLE_WORKSPACE\020\005\"\340\014\n" + "\035AdvancedCompleteQueryResponse\022m\n" - + "\021query_suggestions\030\001 \003(\0132R.google.cloud.discoveryeng" - + "ine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion\022\034\n" + + "\021query_suggestions\030\001 \003(\0132R.google.cloud.discov" + + "eryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion\022\034\n" + "\024tail_match_triggered\030\002 \001(\010\022o\n" - + "\022people_suggestions\030\003 \003(\0132S.google.cloud.discoveryengine.v1beta.Advance" - + "dCompleteQueryResponse.PersonSuggestion\022q\n" - + "\023content_suggestions\030\004 \003(\0132T.google.cl" - + "oud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion\022|\n" - + "\031recent_search_suggestions\030\005 \003(\0132Y.google.c" - + "loud.discoveryengine.v1beta.AdvancedComp" - + "leteQueryResponse.RecentSearchSuggestion\032Z\n" + + "\022people_suggestions\030\003 \003(\0132S.google.cloud.discoveryengine.v1beta.A" + + "dvancedCompleteQueryResponse.PersonSuggestion\022q\n" + + "\023content_suggestions\030\004 \003(\0132T.goo" + + "gle.cloud.discoveryengine.v1beta.Advance" + + "dCompleteQueryResponse.ContentSuggestion\022|\n" + + "\031recent_search_suggestions\030\005 \003(\0132Y.go" + + "ogle.cloud.discoveryengine.v1beta.Advanc" + + "edCompleteQueryResponse.RecentSearchSuggestion\032i\n" + "\017QuerySuggestion\022\022\n\n" + "suggestion\030\001 \001(\t\022\037\n" + "\027completable_field_paths\030\002 \003(\t\022\022\n\n" - + "data_store\030\003 \003(\t\032\370\002\n" + + "data_store\030\003 \003(\t\022\r\n" + + "\005score\030\004 \001(\001\032\273\003\n" + "\020PersonSuggestion\022\022\n\n" + "suggestion\030\001 \001(\t\022s\n" - + "\013person_type\030\002 \001(\0162^.google.cloud.discoveryengine.v1beta.Advance" - + "dCompleteQueryResponse.PersonSuggestion.PersonType\022?\n" + + "\013person_type\030\002 \001(\0162^.google.cloud.discovery" + + "engine.v1beta.AdvancedCompleteQueryResponse.PersonSuggestion.PersonType\022?\n" + "\010document\030\004 \001(\0132-.google.cloud.discoveryengine.v1beta.Document\022A\n\n" + "data_store\030\005 \001(\tB-\372A*\n" - + "(discoveryengine.googleapis.com/DataStore\"W\n\n" + + "(discoveryengine.googleapis.com/DataStore\022\r\n" + + "\005score\030\006 \001(\001\022\031\n" + + "\021display_photo_uri\030\007 \001(\t\022\027\n" + + "\017destination_uri\030\010 \001(\t\"W\n\n" + "PersonType\022\033\n" + "\027PERSON_TYPE_UNSPECIFIED\020\000\022\022\n" + "\016CLOUD_IDENTITY\020\001\022\030\n" - + "\024THIRD_PARTY_IDENTITY\020\002\032\367\002\n" + + "\024THIRD_PARTY_IDENTITY\020\002\032\261\003\n" + "\021ContentSuggestion\022\022\n\n" + "suggestion\030\001 \001(\t\022v\n" - + "\014content_type\030\002 \001(\0162`.google.cloud.discovery" - + "engine.v1beta.AdvancedCompleteQueryResponse.ContentSuggestion.ContentType\022?\n" + + "\014content_type\030\002 \001(\0162`.google.cloud.d" + + "iscoveryengine.v1beta.AdvancedCompleteQu" + + "eryResponse.ContentSuggestion.ContentType\022?\n" + "\010document\030\004 \001(\0132-.google.cloud.discoveryengine.v1beta.Document\022A\n\n" + "data_store\030\005 \001(\tB-\372A*\n" - + "(discoveryengine.googleapis.com/DataStore\"R\n" + + "(discoveryengine.googleapis.com/DataStore\022\r\n" + + "\005score\030\006 \001(\001\022\020\n" + + "\010icon_uri\030\007 \001(\t\022\027\n" + + "\017destination_uri\030\010 \001(\t\"R\n" + "\013ContentType\022\034\n" + "\030CONTENT_TYPE_UNSPECIFIED\020\000\022\024\n" + "\020GOOGLE_WORKSPACE\020\001\022\017\n" - + "\013THIRD_PARTY\020\002\032d\n" + + "\013THIRD_PARTY\020\002\032s\n" + "\026RecentSearchSuggestion\022\022\n\n" + "suggestion\030\001 \001(\t\0226\n" - + "\022recent_search_time\030\002 \001(\0132\032.google.protobuf.Timestamp2\300\026\n" + + "\022recent_search_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\r\n" + + "\005score\030\003 \001(\001\"\353\002\n" + + "\027RemoveSuggestionRequest\022#\n" + + "\031search_history_suggestion\030\002 \001(\tH\000\022/\n" + + "%remove_all_search_history_suggestions\030\006 \001(\010H\000\022R\n" + + "\021completion_config\030\001 \001(\tB7\340A\002\372A1\n" + + "/discoveryengine.googleapis.com/CompletionConfig\022\033\n" + + "\016user_pseudo_id\030\003 \001(\tB\003\340A\002\022E\n" + + "\tuser_info\030\004 \001(\0132-" + + ".google.cloud.discoveryengine.v1beta.UserInfoB\003\340A\001\0224\n" + + "\013remove_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002B\014\n\n" + + "suggestion\"\032\n" + + "\030RemoveSuggestionResponse2\275\032\n" + "\021CompletionService\022\260\002\n\r" - + "CompleteQuery\0229.google.cloud.discoveryengine.v1beta.CompleteQu" - + "eryRequest\032:.google.cloud.discoveryengin" - + "e.v1beta.CompleteQueryResponse\"\247\001\202\323\344\223\002\240\001" - + "\022F/v1beta/{data_store=projects/*/locations/*/dataStores/*}:completeQueryZV\022T/v1b" - + "eta/{data_store=projects/*/locations/*/c" - + "ollections/*/dataStores/*}:completeQuery\022\356\003\n" - + "\025AdvancedCompleteQuery\022A.google.cloud.discoveryengine.v1beta.AdvancedComplet" - + "eQueryRequest\032B.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryRespons" - + "e\"\315\002\202\323\344\223\002\306\002\"^/v1beta/{completion_config=" - + "projects/*/locations/*/dataStores/*/completionConfig}:completeQuery:\001*Zq\"l/v1bet" - + "a/{completion_config=projects/*/locations/*/collections/*/dataStores/*/completio" - + "nConfig}:completeQuery:\001*Zn\"i/v1beta/{completion_config=projects/*/locations/*/c" - + "ollections/*/engines/*/completionConfig}:completeQuery:\001*\022\371\003\n" - + "\037ImportSuggestionDenyListEntries\022K.google.cloud.discoveryen" - + "gine.v1beta.ImportSuggestionDenyListEntr" - + "iesRequest\032\035.google.longrunning.Operation\"\351\002\312A\232\001\n" - + "Kgoogle.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesRes" - + "ponse\022Kgoogle.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesMetada" - + "ta\202\323\344\223\002\304\001\"c/v1beta/{parent=projects/*/lo" - + "cations/*/collections/*/dataStores/*}/suggestionDenyListEntries:import:\001*ZZ\"U/v1" - + "beta/{parent=projects/*/locations/*/data" - + "Stores/*}/suggestionDenyListEntries:import:\001*\022\364\003\n" - + "\036PurgeSuggestionDenyListEntries\022J.google.cloud.discoveryengine.v1beta.P" - + "urgeSuggestionDenyListEntriesRequest\032\035.google.longrunning.Operation\"\346\002\312A\230\001\n" - + "Jgoogle.cloud.discoveryengine.v1beta.PurgeSug" - + "gestionDenyListEntriesResponse\022Jgoogle.cloud.discoveryengine.v1beta.PurgeSuggest" - + "ionDenyListEntriesMetadata\202\323\344\223\002\303\001\"b/v1be" - + "ta/{parent=projects/*/locations/*/collections/*/dataStores/*}/suggestionDenyList" - + "Entries:purge:\001*ZZ\"U/v1beta/{parent=proj" - + "ects/*/locations/*/dataStores/**}/suggestionDenyListEntries:purge:\001*\022\341\003\n" - + "\033ImportCompletionSuggestions\022G.google.cloud.disc" - + "overyengine.v1beta.ImportCompletionSugge" - + "stionsRequest\032\035.google.longrunning.Operation\"\331\002\312A\222\001\n" - + "Ggoogle.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResp" - + "onse\022Ggoogle.cloud.discoveryengine.v1bet" - + "a.ImportCompletionSuggestionsMetadata\202\323\344" - + "\223\002\274\001\"_/v1beta/{parent=projects/*/locatio" - + "ns/*/collections/*/dataStores/*}/completionSuggestions:import:\001*ZV\"Q/v1beta/{par" - + "ent=projects/*/locations/*/dataStores/*}/completionSuggestions:import:\001*\022\333\003\n" - + "\032PurgeCompletionSuggestions\022F.google.cloud.d" - + "iscoveryengine.v1beta.PurgeCompletionSug" - + "gestionsRequest\032\035.google.longrunning.Operation\"\325\002\312A\220\001\n" - + "Fgoogle.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsRes" - + "ponse\022Fgoogle.cloud.discoveryengine.v1be" - + "ta.PurgeCompletionSuggestionsMetadata\202\323\344" - + "\223\002\272\001\"^/v1beta/{parent=projects/*/locatio" - + "ns/*/collections/*/dataStores/*}/completionSuggestions:purge:\001*ZU\"P/v1beta/{pare" - + "nt=projects/*/locations/*/dataStores/*}/" - + "completionSuggestions:purge:\001*\032R\312A\036disco" - + "veryengine.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\235\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB\026" - + "CompletionServiceProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discover" - + "yenginepb;discoveryenginepb\242\002\017DISCOVERYE" - + "NGINE\252\002#Google.Cloud.DiscoveryEngine.V1B" - + "eta\312\002#Google\\Cloud\\DiscoveryEngine\\V1bet" - + "a\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" + + "CompleteQuery\0229.google.cloud.discoveryengine.v1beta.CompleteQueryRe" + + "quest\032:.google.cloud.discoveryengine.v1b" + + "eta.CompleteQueryResponse\"\247\001\202\323\344\223\002\240\001\022F/v1" + + "beta/{data_store=projects/*/locations/*/dataStores/*}:completeQueryZV\022T/v1beta/{" + + "data_store=projects/*/locations/*/collections/*/dataStores/*}:completeQuery\022\356\003\n" + + "\025AdvancedCompleteQuery\022A.google.cloud.dis" + + "coveryengine.v1beta.AdvancedCompleteQueryRequest\032B.google.cloud.discoveryengine." + + "v1beta.AdvancedCompleteQueryResponse\"\315\002\202" + + "\323\344\223\002\306\002\"^/v1beta/{completion_config=proje" + + "cts/*/locations/*/dataStores/*/completionConfig}:completeQuery:\001*Zq\"l/v1beta/{co" + + "mpletion_config=projects/*/locations/*/collections/*/dataStores/*/completionConf" + + "ig}:completeQuery:\001*Zn\"i/v1beta/{completion_config=projects/*/locations/*/collec" + + "tions/*/engines/*/completionConfig}:completeQuery:\001*\022\371\003\n" + + "\037ImportSuggestionDenyListEntries\022K.google.cloud.discoveryengine." + + "v1beta.ImportSuggestionDenyListEntriesRe" + + "quest\032\035.google.longrunning.Operation\"\351\002\312A\232\001\n" + + "Kgoogle.cloud.discoveryengine.v1beta.ImportSuggestionDenyListEntriesResponse" + + "\022Kgoogle.cloud.discoveryengine.v1beta.Im" + + "portSuggestionDenyListEntriesMetadata\202\323\344" + + "\223\002\304\001\"c/v1beta/{parent=projects/*/locatio" + + "ns/*/collections/*/dataStores/*}/suggestionDenyListEntries:import:\001*ZZ\"U/v1beta/" + + "{parent=projects/*/locations/*/dataStore" + + "s/*}/suggestionDenyListEntries:import:\001*\022\364\003\n" + + "\036PurgeSuggestionDenyListEntries\022J.google.cloud.discoveryengine.v1beta.PurgeS" + + "uggestionDenyListEntriesRequest\032\035.google.longrunning.Operation\"\346\002\312A\230\001\n" + + "Jgoogle.cloud.discoveryengine.v1beta.PurgeSuggesti" + + "onDenyListEntriesResponse\022Jgoogle.cloud.discoveryengine.v1beta.PurgeSuggestionDe" + + "nyListEntriesMetadata\202\323\344\223\002\303\001\"b/v1beta/{p" + + "arent=projects/*/locations/*/collections/*/dataStores/*}/suggestionDenyListEntri" + + "es:purge:\001*ZZ\"U/v1beta/{parent=projects/" + + "*/locations/*/dataStores/**}/suggestionDenyListEntries:purge:\001*\022\341\003\n" + + "\033ImportCompletionSuggestions\022G.google.cloud.discovery" + + "engine.v1beta.ImportCompletionSuggestion" + + "sRequest\032\035.google.longrunning.Operation\"\331\002\312A\222\001\n" + + "Ggoogle.cloud.discoveryengine.v1beta.ImportCompletionSuggestionsResponse\022" + + "Ggoogle.cloud.discoveryengine.v1beta.Imp" + + "ortCompletionSuggestionsMetadata\202\323\344\223\002\274\001\"" + + "_/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/completionSu" + + "ggestions:import:\001*ZV\"Q/v1beta/{parent=p" + + "rojects/*/locations/*/dataStores/*}/completionSuggestions:import:\001*\022\333\003\n" + + "\032PurgeCompletionSuggestions\022F.google.cloud.discov" + + "eryengine.v1beta.PurgeCompletionSuggesti" + + "onsRequest\032\035.google.longrunning.Operation\"\325\002\312A\220\001\n" + + "Fgoogle.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsResponse" + + "\022Fgoogle.cloud.discoveryengine.v1beta.Pu" + + "rgeCompletionSuggestionsMetadata\202\323\344\223\002\272\001\"" + + "^/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/completionSu" + + "ggestions:purge:\001*ZU\"P/v1beta/{parent=pr" + + "ojects/*/locations/*/dataStores/*}/completionSuggestions:purge:\001*\022\210\002\n" + + "\020RemoveSuggestion\022<.google.cloud.discoveryengine.v1" + + "beta.RemoveSuggestionRequest\032=.google.cloud.discoveryengine.v1beta.RemoveSuggest" + + "ionResponse\"w\202\323\344\223\002q\"l/v1beta/{completion" + + "_config=projects/*/locations/*/collections/*/engines/*/completionConfig}:removeS" + + "uggestion:\001*\032\303\002\312A\036discoveryengine.google" + + "apis.com\322A\236\002https://www.googleapis.com/a" + + "uth/cloud-platform,https://www.googleapis.com/auth/cloud_search.query,https://ww" + + "w.googleapis.com/auth/discoveryengine.assist.readwrite,https://www.googleapis.co" + + "m/auth/discoveryengine.readwrite,https:/" + + "/www.googleapis.com/auth/discoveryengine.serving.readwriteB\235\002\n" + + "\'com.google.cloud.discoveryengine.v1betaB\026CompletionServic" + + "eProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discov" + + "eryenginepb\242\002\017DISCOVERYENGINE\252\002#Google.C" + + "loud.DiscoveryEngine.V1Beta\312\002#Google\\Clo" + + "ud\\DiscoveryEngine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -295,6 +345,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IncludeTailSuggestions", "BoostSpec", "SuggestionTypes", + "SuggestionTypeSpecs", + "ExperimentIds", }); internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_BoostSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_descriptor @@ -314,6 +366,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Condition", "Boost", }); + internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_SuggestionTypeSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_SuggestionTypeSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryRequest_SuggestionTypeSpec_descriptor, + new java.lang.String[] { + "SuggestionType", "MaxSuggestions", + }); internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryResponse_descriptor = getDescriptor().getMessageType(3); internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryResponse_fieldAccessorTable = @@ -333,7 +394,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryResponse_QuerySuggestion_descriptor, new java.lang.String[] { - "Suggestion", "CompletableFieldPaths", "DataStore", + "Suggestion", "CompletableFieldPaths", "DataStore", "Score", }); internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryResponse_PersonSuggestion_descriptor = internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryResponse_descriptor @@ -342,7 +403,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryResponse_PersonSuggestion_descriptor, new java.lang.String[] { - "Suggestion", "PersonType", "Document", "DataStore", + "Suggestion", + "PersonType", + "Document", + "DataStore", + "Score", + "DisplayPhotoUri", + "DestinationUri", }); internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryResponse_ContentSuggestion_descriptor = internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryResponse_descriptor @@ -351,7 +418,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryResponse_ContentSuggestion_descriptor, new java.lang.String[] { - "Suggestion", "ContentType", "Document", "DataStore", + "Suggestion", + "ContentType", + "Document", + "DataStore", + "Score", + "IconUri", + "DestinationUri", }); internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryResponse_RecentSearchSuggestion_descriptor = internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryResponse_descriptor @@ -360,8 +433,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_AdvancedCompleteQueryResponse_RecentSearchSuggestion_descriptor, new java.lang.String[] { - "Suggestion", "RecentSearchTime", + "Suggestion", "RecentSearchTime", "Score", }); + internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionRequest_descriptor, + new java.lang.String[] { + "SearchHistorySuggestion", + "RemoveAllSearchHistorySuggestions", + "CompletionConfig", + "UserPseudoId", + "UserInfo", + "RemoveTime", + "Suggestion", + }); + internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionResponse_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionResponse_descriptor, + new java.lang.String[] {}); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Condition.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Condition.java index b930f2336d03..3a5cb8da194e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Condition.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Condition.java @@ -2161,7 +2161,7 @@ public com.google.cloud.discoveryengine.v1beta.Condition.TimeRange getActiveTime * Optional. Query regex to match the whole search query. * Cannot be set when * [Condition.query_terms][google.cloud.discoveryengine.v1beta.Condition.query_terms] - * is set. This is currently supporting promotion use case. + * is set. Only supported for Basic Site Search promotion serving controls. *
            * * string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2188,7 +2188,7 @@ public java.lang.String getQueryRegex() { * Optional. Query regex to match the whole search query. * Cannot be set when * [Condition.query_terms][google.cloud.discoveryengine.v1beta.Condition.query_terms] - * is set. This is currently supporting promotion use case. + * is set. Only supported for Basic Site Search promotion serving controls. *
            * * string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -3638,7 +3638,7 @@ public Builder removeActiveTimeRange(int index) { * Optional. Query regex to match the whole search query. * Cannot be set when * [Condition.query_terms][google.cloud.discoveryengine.v1beta.Condition.query_terms] - * is set. This is currently supporting promotion use case. + * is set. Only supported for Basic Site Search promotion serving controls. *
            * * string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -3664,7 +3664,7 @@ public java.lang.String getQueryRegex() { * Optional. Query regex to match the whole search query. * Cannot be set when * [Condition.query_terms][google.cloud.discoveryengine.v1beta.Condition.query_terms] - * is set. This is currently supporting promotion use case. + * is set. Only supported for Basic Site Search promotion serving controls. *
            * * string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -3690,7 +3690,7 @@ public com.google.protobuf.ByteString getQueryRegexBytes() { * Optional. Query regex to match the whole search query. * Cannot be set when * [Condition.query_terms][google.cloud.discoveryengine.v1beta.Condition.query_terms] - * is set. This is currently supporting promotion use case. + * is set. Only supported for Basic Site Search promotion serving controls. *
            * * string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -3715,7 +3715,7 @@ public Builder setQueryRegex(java.lang.String value) { * Optional. Query regex to match the whole search query. * Cannot be set when * [Condition.query_terms][google.cloud.discoveryengine.v1beta.Condition.query_terms] - * is set. This is currently supporting promotion use case. + * is set. Only supported for Basic Site Search promotion serving controls. *
            * * string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -3736,7 +3736,7 @@ public Builder clearQueryRegex() { * Optional. Query regex to match the whole search query. * Cannot be set when * [Condition.query_terms][google.cloud.discoveryengine.v1beta.Condition.query_terms] - * is set. This is currently supporting promotion use case. + * is set. Only supported for Basic Site Search promotion serving controls. * * * string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConditionOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConditionOrBuilder.java index e79ccc043e7b..090d50ef3328 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConditionOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConditionOrBuilder.java @@ -193,7 +193,7 @@ com.google.cloud.discoveryengine.v1beta.Condition.TimeRangeOrBuilder getActiveTi * Optional. Query regex to match the whole search query. * Cannot be set when * [Condition.query_terms][google.cloud.discoveryengine.v1beta.Condition.query_terms] - * is set. This is currently supporting promotion use case. + * is set. Only supported for Basic Site Search promotion serving controls. * * * string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -209,7 +209,7 @@ com.google.cloud.discoveryengine.v1beta.Condition.TimeRangeOrBuilder getActiveTi * Optional. Query regex to match the whole search query. * Cannot be set when * [Condition.query_terms][google.cloud.discoveryengine.v1beta.Condition.query_terms] - * is set. This is currently supporting promotion use case. + * is set. Only supported for Basic Site Search promotion serving controls. * * * string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Control.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Control.java index 6ca3fe5eb708..eee5e4047c08 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Control.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Control.java @@ -87,30 +87,4909 @@ public interface BoostActionOrBuilder * * *
            -     * Required. Strength of the boost, which should be in [-1, 1]. Negative
            +     * Optional. Strength of the boost, which should be in [-1, 1]. Negative
                  * boost means demotion. Default is 0.0 (No-op).
                  * 
            * - * float boost = 1 [(.google.api.field_behavior) = REQUIRED]; + * float fixed_boost = 4 [(.google.api.field_behavior) = OPTIONAL]; * + * @return Whether the fixedBoost field is set. + */ + boolean hasFixedBoost(); + + /** + * + * + *
            +     * Optional. Strength of the boost, which should be in [-1, 1]. Negative
            +     * boost means demotion. Default is 0.0 (No-op).
            +     * 
            + * + * float fixed_boost = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fixedBoost. + */ + float getFixedBoost(); + + /** + * + * + *
            +     * Optional. Complex specification for custom ranking based on customer
            +     * defined attribute value.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the interpolationBoostSpec field is set. + */ + boolean hasInterpolationBoostSpec(); + + /** + * + * + *
            +     * Optional. Complex specification for custom ranking based on customer
            +     * defined attribute value.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interpolationBoostSpec. + */ + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + getInterpolationBoostSpec(); + + /** + * + * + *
            +     * Optional. Complex specification for custom ranking based on customer
            +     * defined attribute value.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpecOrBuilder + getInterpolationBoostSpecOrBuilder(); + + /** + * + * + *
            +     * Strength of the boost, which should be in [-1, 1]. Negative
            +     * boost means demotion. Default is 0.0 (No-op).
            +     * 
            + * + * float boost = 1 [deprecated = true]; + * + * @deprecated google.cloud.discoveryengine.v1beta.Control.BoostAction.boost is deprecated. See + * google/cloud/discoveryengine/v1beta/control.proto;l=187 * @return The boost. */ + @java.lang.Deprecated float getBoost(); /** * * *
            -     * Required. Specifies which products to apply the boost to.
            +     * Required. Specifies which products to apply the boost to.
            +     *
            +     * If no filter is provided all products will be boosted (No-op).
            +     * Syntax documentation:
            +     * https://cloud.google.com/retail/docs/filter-and-order
            +     * Maximum length is 5000 characters.
            +     * Otherwise an INVALID ARGUMENT error is thrown.
            +     * 
            + * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +     * Required. Specifies which products to apply the boost to.
            +     *
            +     * If no filter is provided all products will be boosted (No-op).
            +     * Syntax documentation:
            +     * https://cloud.google.com/retail/docs/filter-and-order
            +     * Maximum length is 5000 characters.
            +     * Otherwise an INVALID ARGUMENT error is thrown.
            +     * 
            + * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
            +     * Required. Specifies which data store's documents can be boosted by this
            +     * control. Full data store name e.g.
            +     * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
            +     * 
            + * + * + * string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataStore. + */ + java.lang.String getDataStore(); + + /** + * + * + *
            +     * Required. Specifies which data store's documents can be boosted by this
            +     * control. Full data store name e.g.
            +     * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
            +     * 
            + * + * + * string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataStore. + */ + com.google.protobuf.ByteString getDataStoreBytes(); + + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.BoostSpecCase getBoostSpecCase(); + } + + /** + * + * + *
            +   * Adjusts order of products in returned list.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Control.BoostAction} + */ + public static final class BoostAction extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Control.BoostAction) + BoostActionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BoostAction"); + } + + // Use BoostAction.newBuilder() to construct. + private BoostAction(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private BoostAction() { + filter_ = ""; + dataStore_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ControlProto + .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ControlProto + .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.class, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.Builder.class); + } + + public interface InterpolationBoostSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Optional. The name of the field whose value will be used to determine
            +       * the boost amount.
            +       * 
            + * + * string field_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + + /** + * + * + *
            +       * Optional. The name of the field whose value will be used to determine
            +       * the boost amount.
            +       * 
            + * + * string field_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + /** + * + * + *
            +       * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for attributeType. + */ + int getAttributeTypeValue(); + + /** + * + * + *
            +       * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributeType. + */ + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .AttributeType + getAttributeType(); + + /** + * + * + *
            +       * Optional. The interpolation type to be applied to connect the control
            +       * points listed below.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for interpolationType. + */ + int getInterpolationTypeValue(); + + /** + * + * + *
            +       * Optional. The interpolation type to be applied to connect the control
            +       * points listed below.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interpolationType. + */ + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .InterpolationType + getInterpolationType(); + + /** + * + * + *
            +       * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint> + getControlPointsList(); + + /** + * + * + *
            +       * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint + getControlPoints(int index); + + /** + * + * + *
            +       * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getControlPointsCount(); + + /** + * + * + *
            +       * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPointOrBuilder> + getControlPointsOrBuilderList(); + + /** + * + * + *
            +       * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .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.v1beta.Control.BoostAction.InterpolationBoostSpec} + */ + public static final class InterpolationBoostSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec) + InterpolationBoostSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InterpolationBoostSpec"); + } + + // Use InterpolationBoostSpec.newBuilder() to construct. + private InterpolationBoostSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InterpolationBoostSpec() { + fieldName_ = ""; + attributeType_ = 0; + interpolationType_ = 0; + controlPoints_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ControlProto + .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ControlProto + .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .class, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .Builder.class); + } + + /** + * + * + *
            +       * The attribute(or function) for which the custom ranking is to be
            +       * applied.
            +       * 
            + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec.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), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AttributeType"); + } + + /** + * + * + *
            +         * 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .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.v1beta.Control.BoostAction.InterpolationBoostSpec.AttributeType) + } + + /** + * + * + *
            +       * The interpolation type to be applied. Default will be linear
            +       * (Piecewise Linear).
            +       * 
            + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec.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), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InterpolationType"); + } + + /** + * + * + *
            +         * 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .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.v1beta.Control.BoostAction.InterpolationBoostSpec.InterpolationType) + } + + public interface ControlPointOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +         * Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The attributeValue. + */ + java.lang.String getAttributeValue(); + + /** + * + * + *
            +         * Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for attributeValue. + */ + com.google.protobuf.ByteString getAttributeValueBytes(); + + /** + * + * + *
            +         * Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint} + */ + public static final class ControlPoint extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint) + ControlPointOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ControlPoint"); + } + + // Use ControlPoint.newBuilder() to construct. + private ControlPoint(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ControlPoint() { + attributeValue_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ControlProto + .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_ControlPoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ControlProto + .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_ControlPoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint.class, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint.Builder.class); + } + + public static final int ATTRIBUTE_VALUE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object attributeValue_ = ""; + + /** + * + * + *
            +         * Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +         * Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + + /** + * + * + *
            +         * Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(attributeValue_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(attributeValue_)) { + size += com.google.protobuf.GeneratedMessage.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.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint + other = + (com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.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.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.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.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.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.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.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.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .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.GeneratedMessage.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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint) + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ControlProto + .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_ControlPoint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ControlProto + .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_ControlPoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint.class, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.v1beta.ControlProto + .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_ControlPoint_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint + build() { + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint + result = + new com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .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 mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint.getDefaultInstance()) return this; + if (!other.getAttributeValue().isEmpty()) { + attributeValue_ = other.attributeValue_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (java.lang.Float.floatToRawIntBits(other.getBoostAmount()) != 0) { + 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_ = ""; + + /** + * + * + *
            +           * Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +           * Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +           * Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
            +           * Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAttributeValue() { + attributeValue_ = getDefaultInstance().getAttributeValue(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +           * Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_; + + /** + * + * + *
            +           * Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The boostAmount. + */ + @java.lang.Override + public float getBoostAmount() { + return boostAmount_; + } + + /** + * + * + *
            +           * Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The boostAmount to set. + * @return This builder for chaining. + */ + public Builder setBoostAmount(float value) { + + boostAmount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Optional. 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 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBoostAmount() { + bitField0_ = (bitField0_ & ~0x00000002); + boostAmount_ = 0F; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint) + private static final com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint(); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.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.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; + + /** + * + * + *
            +       * Optional. The name of the field whose value will be used to determine
            +       * the boost amount.
            +       * 
            + * + * string field_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +       * Optional. The name of the field whose value will be used to determine
            +       * the boost amount.
            +       * 
            + * + * string field_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + + /** + * + * + *
            +       * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for attributeType. + */ + @java.lang.Override + public int getAttributeTypeValue() { + return attributeType_; + } + + /** + * + * + *
            +       * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributeType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .AttributeType + getAttributeType() { + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .AttributeType + result = + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .AttributeType.forNumber(attributeType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .AttributeType.UNRECOGNIZED + : result; + } + + public static final int INTERPOLATION_TYPE_FIELD_NUMBER = 3; + private int interpolationType_ = 0; + + /** + * + * + *
            +       * Optional. The interpolation type to be applied to connect the control
            +       * points listed below.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for interpolationType. + */ + @java.lang.Override + public int getInterpolationTypeValue() { + return interpolationType_; + } + + /** + * + * + *
            +       * Optional. The interpolation type to be applied to connect the control
            +       * points listed below.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interpolationType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .InterpolationType + getInterpolationType() { + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .InterpolationType + result = + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .InterpolationType.forNumber(interpolationType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .InterpolationType.UNRECOGNIZED + : result; + } + + public static final int CONTROL_POINTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint> + controlPoints_; + + /** + * + * + *
            +       * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint> + getControlPointsList() { + return controlPoints_; + } + + /** + * + * + *
            +       * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPointOrBuilder> + getControlPointsOrBuilderList() { + return controlPoints_; + } + + /** + * + * + *
            +       * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getControlPointsCount() { + return controlPoints_.size(); + } + + /** + * + * + *
            +       * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint + getControlPoints(int index) { + return controlPoints_.get(index); + } + + /** + * + * + *
            +       * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .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.GeneratedMessage.isStringEmpty(fieldName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, fieldName_); + } + if (attributeType_ + != com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .AttributeType.ATTRIBUTE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, attributeType_); + } + if (interpolationType_ + != com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .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.GeneratedMessage.isStringEmpty(fieldName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, fieldName_); + } + if (attributeType_ + != com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .AttributeType.ATTRIBUTE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, attributeType_); + } + if (interpolationType_ + != com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .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.v1beta.Control.BoostAction.InterpolationBoostSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec other = + (com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec) + 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.v1beta.Control.BoostAction + .InterpolationBoostSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec + 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.v1beta.Control.BoostAction + .InterpolationBoostSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec + parseFrom( + 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.v1beta.Control.BoostAction + .InterpolationBoostSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * 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.v1beta.Control.BoostAction.InterpolationBoostSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec) + com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ControlProto + .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ControlProto + .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .class, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.v1beta.ControlProto + .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + build() { + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + result = + new com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + 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.v1beta.Control.BoostAction.InterpolationBoostSpec + 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 mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .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.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetControlPointsFieldBuilder() + : 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.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.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_ = ""; + + /** + * + * + *
            +         * Optional. The name of the field whose value will be used to determine
            +         * the boost amount.
            +         * 
            + * + * string field_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +         * Optional. The name of the field whose value will be used to determine
            +         * the boost amount.
            +         * 
            + * + * string field_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +         * Optional. The name of the field whose value will be used to determine
            +         * the boost amount.
            +         * 
            + * + * string field_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
            +         * Optional. The name of the field whose value will be used to determine
            +         * the boost amount.
            +         * 
            + * + * string field_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The name of the field whose value will be used to determine
            +         * the boost amount.
            +         * 
            + * + * string field_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for attributeType. + */ + @java.lang.Override + public int getAttributeTypeValue() { + return attributeType_; + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @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; + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The attributeType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .AttributeType + getAttributeType() { + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .AttributeType + result = + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .AttributeType.forNumber(attributeType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .AttributeType.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The attributeType to set. + * @return This builder for chaining. + */ + public Builder setAttributeType( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .AttributeType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + attributeType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.AttributeType attribute_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAttributeType() { + bitField0_ = (bitField0_ & ~0x00000002); + attributeType_ = 0; + onChanged(); + return this; + } + + private int interpolationType_ = 0; + + /** + * + * + *
            +         * Optional. The interpolation type to be applied to connect the control
            +         * points listed below.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for interpolationType. + */ + @java.lang.Override + public int getInterpolationTypeValue() { + return interpolationType_; + } + + /** + * + * + *
            +         * Optional. The interpolation type to be applied to connect the control
            +         * points listed below.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @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; + } + + /** + * + * + *
            +         * Optional. The interpolation type to be applied to connect the control
            +         * points listed below.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interpolationType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .InterpolationType + getInterpolationType() { + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .InterpolationType + result = + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .InterpolationType.forNumber(interpolationType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .InterpolationType.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +         * Optional. The interpolation type to be applied to connect the control
            +         * points listed below.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The interpolationType to set. + * @return This builder for chaining. + */ + public Builder setInterpolationType( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .InterpolationType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + interpolationType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The interpolation type to be applied to connect the control
            +         * points listed below.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec.InterpolationType interpolation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearInterpolationType() { + bitField0_ = (bitField0_ & ~0x00000004); + interpolationType_ = 0; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint> + controlPoints_ = java.util.Collections.emptyList(); + + private void ensureControlPointsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + controlPoints_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint>(controlPoints_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint.Builder, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPointOrBuilder> + controlPointsBuilder_; + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint> + getControlPointsList() { + if (controlPointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(controlPoints_); + } else { + return controlPointsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getControlPointsCount() { + if (controlPointsBuilder_ == null) { + return controlPoints_.size(); + } else { + return controlPointsBuilder_.getCount(); + } + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint + getControlPoints(int index) { + if (controlPointsBuilder_ == null) { + return controlPoints_.get(index); + } else { + return controlPointsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setControlPoints( + int index, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint + value) { + if (controlPointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureControlPointsIsMutable(); + controlPoints_.set(index, value); + onChanged(); + } else { + controlPointsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setControlPoints( + int index, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint.Builder + builderForValue) { + if (controlPointsBuilder_ == null) { + ensureControlPointsIsMutable(); + controlPoints_.set(index, builderForValue.build()); + onChanged(); + } else { + controlPointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addControlPoints( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint + value) { + if (controlPointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureControlPointsIsMutable(); + controlPoints_.add(value); + onChanged(); + } else { + controlPointsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addControlPoints( + int index, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint + value) { + if (controlPointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureControlPointsIsMutable(); + controlPoints_.add(index, value); + onChanged(); + } else { + controlPointsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addControlPoints( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint.Builder + builderForValue) { + if (controlPointsBuilder_ == null) { + ensureControlPointsIsMutable(); + controlPoints_.add(builderForValue.build()); + onChanged(); + } else { + controlPointsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addControlPoints( + int index, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint.Builder + builderForValue) { + if (controlPointsBuilder_ == null) { + ensureControlPointsIsMutable(); + controlPoints_.add(index, builderForValue.build()); + onChanged(); + } else { + controlPointsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllControlPoints( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint> + values) { + if (controlPointsBuilder_ == null) { + ensureControlPointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, controlPoints_); + onChanged(); + } else { + controlPointsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearControlPoints() { + if (controlPointsBuilder_ == null) { + controlPoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + controlPointsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeControlPoints(int index) { + if (controlPointsBuilder_ == null) { + ensureControlPointsIsMutable(); + controlPoints_.remove(index); + onChanged(); + } else { + controlPointsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint.Builder + getControlPointsBuilder(int index) { + return internalGetControlPointsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPointOrBuilder + getControlPointsOrBuilder(int index) { + if (controlPointsBuilder_ == null) { + return controlPoints_.get(index); + } else { + return controlPointsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPointOrBuilder> + getControlPointsOrBuilderList() { + if (controlPointsBuilder_ != null) { + return controlPointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(controlPoints_); + } + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint.Builder + addControlPointsBuilder() { + return internalGetControlPointsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint.getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint.Builder + addControlPointsBuilder(int index) { + return internalGetControlPointsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint.getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. 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.v1beta.Control.BoostAction.InterpolationBoostSpec.ControlPoint control_points = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint.Builder> + getControlPointsBuilderList() { + return internalGetControlPointsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPoint.Builder, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .ControlPointOrBuilder> + internalGetControlPointsFieldBuilder() { + if (controlPointsBuilder_ == null) { + controlPointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPoint.Builder, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.ControlPointOrBuilder>( + controlPoints_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + controlPoints_ = null; + } + return controlPointsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec) + private static final com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InterpolationBoostSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Control.BoostAction.InterpolationBoostSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int boostSpecCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object boostSpec_; + + public enum BoostSpecCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + FIXED_BOOST(4), + INTERPOLATION_BOOST_SPEC(5), + BOOSTSPEC_NOT_SET(0); + private final int value; + + private BoostSpecCase(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 BoostSpecCase valueOf(int value) { + return forNumber(value); + } + + public static BoostSpecCase forNumber(int value) { + switch (value) { + case 4: + return FIXED_BOOST; + case 5: + return INTERPOLATION_BOOST_SPEC; + case 0: + return BOOSTSPEC_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public BoostSpecCase getBoostSpecCase() { + return BoostSpecCase.forNumber(boostSpecCase_); + } + + public static final int FIXED_BOOST_FIELD_NUMBER = 4; + + /** + * + * + *
            +     * Optional. Strength of the boost, which should be in [-1, 1]. Negative
            +     * boost means demotion. Default is 0.0 (No-op).
            +     * 
            + * + * float fixed_boost = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the fixedBoost field is set. + */ + @java.lang.Override + public boolean hasFixedBoost() { + return boostSpecCase_ == 4; + } + + /** + * + * + *
            +     * Optional. Strength of the boost, which should be in [-1, 1]. Negative
            +     * boost means demotion. Default is 0.0 (No-op).
            +     * 
            + * + * float fixed_boost = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fixedBoost. + */ + @java.lang.Override + public float getFixedBoost() { + if (boostSpecCase_ == 4) { + return (java.lang.Float) boostSpec_; + } + return 0F; + } + + public static final int INTERPOLATION_BOOST_SPEC_FIELD_NUMBER = 5; + + /** + * + * + *
            +     * Optional. Complex specification for custom ranking based on customer
            +     * defined attribute value.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the interpolationBoostSpec field is set. + */ + @java.lang.Override + public boolean hasInterpolationBoostSpec() { + return boostSpecCase_ == 5; + } + + /** + * + * + *
            +     * Optional. Complex specification for custom ranking based on customer
            +     * defined attribute value.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interpolationBoostSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + getInterpolationBoostSpec() { + if (boostSpecCase_ == 5) { + return (com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec) + boostSpec_; + } + return com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .getDefaultInstance(); + } + + /** + * + * + *
            +     * Optional. Complex specification for custom ranking based on customer
            +     * defined attribute value.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpecOrBuilder + getInterpolationBoostSpecOrBuilder() { + if (boostSpecCase_ == 5) { + return (com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec) + boostSpec_; + } + return com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .getDefaultInstance(); + } + + public static final int BOOST_FIELD_NUMBER = 1; + private float boost_ = 0F; + + /** + * + * + *
            +     * Strength of the boost, which should be in [-1, 1]. Negative
            +     * boost means demotion. Default is 0.0 (No-op).
            +     * 
            + * + * float boost = 1 [deprecated = true]; + * + * @deprecated google.cloud.discoveryengine.v1beta.Control.BoostAction.boost is deprecated. See + * google/cloud/discoveryengine/v1beta/control.proto;l=187 + * @return The boost. + */ + @java.lang.Override + @java.lang.Deprecated + public float getBoost() { + return boost_; + } + + public static final int FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
            +     * Required. Specifies which products to apply the boost to.
            +     *
            +     * If no filter is provided all products will be boosted (No-op).
            +     * Syntax documentation:
            +     * https://cloud.google.com/retail/docs/filter-and-order
            +     * Maximum length is 5000 characters.
            +     * Otherwise an INVALID ARGUMENT error is thrown.
            +     * 
            + * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
            +     * Required. Specifies which products to apply the boost to.
            +     *
            +     * If no filter is provided all products will be boosted (No-op).
            +     * Syntax documentation:
            +     * https://cloud.google.com/retail/docs/filter-and-order
            +     * Maximum length is 5000 characters.
            +     * Otherwise an INVALID ARGUMENT error is thrown.
            +     * 
            + * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 DATA_STORE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object dataStore_ = ""; + + /** + * + * + *
            +     * Required. Specifies which data store's documents can be boosted by this
            +     * control. Full data store name e.g.
            +     * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
            +     * 
            + * + * + * string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataStore. + */ + @java.lang.Override + public java.lang.String getDataStore() { + java.lang.Object ref = dataStore_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataStore_ = s; + return s; + } + } + + /** + * + * + *
            +     * Required. Specifies which data store's documents can be boosted by this
            +     * control. Full data store name e.g.
            +     * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
            +     * 
            + * + * + * string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataStore. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDataStoreBytes() { + java.lang.Object ref = dataStore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataStore_ = 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 (java.lang.Float.floatToRawIntBits(boost_) != 0) { + output.writeFloat(1, boost_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, dataStore_); + } + if (boostSpecCase_ == 4) { + output.writeFloat(4, (float) ((java.lang.Float) boostSpec_)); + } + if (boostSpecCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec) + boostSpec_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (java.lang.Float.floatToRawIntBits(boost_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, boost_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, dataStore_); + } + if (boostSpecCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeFloatSize( + 4, (float) ((java.lang.Float) boostSpec_)); + } + if (boostSpecCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec) + boostSpec_); + } + 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.v1beta.Control.BoostAction)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Control.BoostAction other = + (com.google.cloud.discoveryengine.v1beta.Control.BoostAction) obj; + + if (java.lang.Float.floatToIntBits(getBoost()) + != java.lang.Float.floatToIntBits(other.getBoost())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getDataStore().equals(other.getDataStore())) return false; + if (!getBoostSpecCase().equals(other.getBoostSpecCase())) return false; + switch (boostSpecCase_) { + case 4: + if (java.lang.Float.floatToIntBits(getFixedBoost()) + != java.lang.Float.floatToIntBits(other.getFixedBoost())) return false; + break; + case 5: + if (!getInterpolationBoostSpec().equals(other.getInterpolationBoostSpec())) 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) + BOOST_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + DATA_STORE_FIELD_NUMBER; + hash = (53 * hash) + getDataStore().hashCode(); + switch (boostSpecCase_) { + case 4: + hash = (37 * hash) + FIXED_BOOST_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getFixedBoost()); + break; + case 5: + hash = (37 * hash) + INTERPOLATION_BOOST_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getInterpolationBoostSpec().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction 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.v1beta.Control.BoostAction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction parseFrom( + 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.v1beta.Control.BoostAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Adjusts order of products in returned list.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Control.BoostAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Control.BoostAction) + com.google.cloud.discoveryengine.v1beta.Control.BoostActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ControlProto + .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ControlProto + .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.class, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.Control.BoostAction.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (interpolationBoostSpecBuilder_ != null) { + interpolationBoostSpecBuilder_.clear(); + } + boost_ = 0F; + filter_ = ""; + dataStore_ = ""; + boostSpecCase_ = 0; + boostSpec_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ControlProto + .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Control.BoostAction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction build() { + com.google.cloud.discoveryengine.v1beta.Control.BoostAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction buildPartial() { + com.google.cloud.discoveryengine.v1beta.Control.BoostAction result = + new com.google.cloud.discoveryengine.v1beta.Control.BoostAction(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.boost_ = boost_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dataStore_ = dataStore_; + } + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction result) { + result.boostSpecCase_ = boostSpecCase_; + result.boostSpec_ = this.boostSpec_; + if (boostSpecCase_ == 5 && interpolationBoostSpecBuilder_ != null) { + result.boostSpec_ = interpolationBoostSpecBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Control.BoostAction) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Control.BoostAction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Control.BoostAction other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Control.BoostAction.getDefaultInstance()) + return this; + if (java.lang.Float.floatToRawIntBits(other.getBoost()) != 0) { + setBoost(other.getBoost()); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDataStore().isEmpty()) { + dataStore_ = other.dataStore_; + bitField0_ |= 0x00000010; + onChanged(); + } + switch (other.getBoostSpecCase()) { + case FIXED_BOOST: + { + setFixedBoost(other.getFixedBoost()); + break; + } + case INTERPOLATION_BOOST_SPEC: + { + mergeInterpolationBoostSpec(other.getInterpolationBoostSpec()); + break; + } + case BOOSTSPEC_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 13: + { + boost_ = input.readFloat(); + bitField0_ |= 0x00000004; + break; + } // case 13 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + dataStore_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 37: + { + boostSpec_ = input.readFloat(); + boostSpecCase_ = 4; + break; + } // case 37 + case 42: + { + input.readMessage( + internalGetInterpolationBoostSpecFieldBuilder().getBuilder(), + extensionRegistry); + boostSpecCase_ = 5; + 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 boostSpecCase_ = 0; + private java.lang.Object boostSpec_; + + public BoostSpecCase getBoostSpecCase() { + return BoostSpecCase.forNumber(boostSpecCase_); + } + + public Builder clearBoostSpec() { + boostSpecCase_ = 0; + boostSpec_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
            +       * Optional. Strength of the boost, which should be in [-1, 1]. Negative
            +       * boost means demotion. Default is 0.0 (No-op).
            +       * 
            + * + * float fixed_boost = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the fixedBoost field is set. + */ + public boolean hasFixedBoost() { + return boostSpecCase_ == 4; + } + + /** + * + * + *
            +       * Optional. Strength of the boost, which should be in [-1, 1]. Negative
            +       * boost means demotion. Default is 0.0 (No-op).
            +       * 
            + * + * float fixed_boost = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fixedBoost. + */ + public float getFixedBoost() { + if (boostSpecCase_ == 4) { + return (java.lang.Float) boostSpec_; + } + return 0F; + } + + /** + * + * + *
            +       * Optional. Strength of the boost, which should be in [-1, 1]. Negative
            +       * boost means demotion. Default is 0.0 (No-op).
            +       * 
            + * + * float fixed_boost = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fixedBoost to set. + * @return This builder for chaining. + */ + public Builder setFixedBoost(float value) { + + boostSpecCase_ = 4; + boostSpec_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Strength of the boost, which should be in [-1, 1]. Negative
            +       * boost means demotion. Default is 0.0 (No-op).
            +       * 
            + * + * float fixed_boost = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFixedBoost() { + if (boostSpecCase_ == 4) { + boostSpecCase_ = 0; + boostSpec_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpecOrBuilder> + interpolationBoostSpecBuilder_; + + /** + * + * + *
            +       * Optional. Complex specification for custom ranking based on customer
            +       * defined attribute value.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the interpolationBoostSpec field is set. + */ + @java.lang.Override + public boolean hasInterpolationBoostSpec() { + return boostSpecCase_ == 5; + } + + /** + * + * + *
            +       * Optional. Complex specification for custom ranking based on customer
            +       * defined attribute value.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The interpolationBoostSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + getInterpolationBoostSpec() { + if (interpolationBoostSpecBuilder_ == null) { + if (boostSpecCase_ == 5) { + return (com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec) + boostSpec_; + } + return com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .getDefaultInstance(); + } else { + if (boostSpecCase_ == 5) { + return interpolationBoostSpecBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .getDefaultInstance(); + } + } + + /** + * + * + *
            +       * Optional. Complex specification for custom ranking based on customer
            +       * defined attribute value.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInterpolationBoostSpec( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + value) { + if (interpolationBoostSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + boostSpec_ = value; + onChanged(); + } else { + interpolationBoostSpecBuilder_.setMessage(value); + } + boostSpecCase_ = 5; + return this; + } + + /** + * + * + *
            +       * Optional. Complex specification for custom ranking based on customer
            +       * defined attribute value.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInterpolationBoostSpec( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec.Builder + builderForValue) { + if (interpolationBoostSpecBuilder_ == null) { + boostSpec_ = builderForValue.build(); + onChanged(); + } else { + interpolationBoostSpecBuilder_.setMessage(builderForValue.build()); + } + boostSpecCase_ = 5; + return this; + } + + /** + * + * + *
            +       * Optional. Complex specification for custom ranking based on customer
            +       * defined attribute value.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeInterpolationBoostSpec( + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + value) { + if (interpolationBoostSpecBuilder_ == null) { + if (boostSpecCase_ == 5 + && boostSpec_ + != com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec.getDefaultInstance()) { + boostSpec_ = + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .newBuilder( + (com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec) + boostSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + boostSpec_ = value; + } + onChanged(); + } else { + if (boostSpecCase_ == 5) { + interpolationBoostSpecBuilder_.mergeFrom(value); + } else { + interpolationBoostSpecBuilder_.setMessage(value); + } + } + boostSpecCase_ = 5; + return this; + } + + /** + * + * + *
            +       * Optional. Complex specification for custom ranking based on customer
            +       * defined attribute value.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInterpolationBoostSpec() { + if (interpolationBoostSpecBuilder_ == null) { + if (boostSpecCase_ == 5) { + boostSpecCase_ = 0; + boostSpec_ = null; + onChanged(); + } + } else { + if (boostSpecCase_ == 5) { + boostSpecCase_ = 0; + boostSpec_ = null; + } + interpolationBoostSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Complex specification for custom ranking based on customer
            +       * defined attribute value.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .Builder + getInterpolationBoostSpecBuilder() { + return internalGetInterpolationBoostSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Complex specification for custom ranking based on customer
            +       * defined attribute value.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpecOrBuilder + getInterpolationBoostSpecOrBuilder() { + if ((boostSpecCase_ == 5) && (interpolationBoostSpecBuilder_ != null)) { + return interpolationBoostSpecBuilder_.getMessageOrBuilder(); + } else { + if (boostSpecCase_ == 5) { + return (com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec) + boostSpec_; + } + return com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .getDefaultInstance(); + } + } + + /** + * + * + *
            +       * Optional. Complex specification for custom ranking based on customer
            +       * defined attribute value.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec interpolation_boost_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpecOrBuilder> + internalGetInterpolationBoostSpecFieldBuilder() { + if (interpolationBoostSpecBuilder_ == null) { + if (!(boostSpecCase_ == 5)) { + boostSpec_ = + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .getDefaultInstance(); + } + interpolationBoostSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction.InterpolationBoostSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpecOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.Control.BoostAction + .InterpolationBoostSpec) + boostSpec_, + getParentForChildren(), + isClean()); + boostSpec_ = null; + } + boostSpecCase_ = 5; + onChanged(); + return interpolationBoostSpecBuilder_; + } + + private float boost_; + + /** + * + * + *
            +       * Strength of the boost, which should be in [-1, 1]. Negative
            +       * boost means demotion. Default is 0.0 (No-op).
            +       * 
            + * + * float boost = 1 [deprecated = true]; + * + * @deprecated google.cloud.discoveryengine.v1beta.Control.BoostAction.boost is deprecated. + * See google/cloud/discoveryengine/v1beta/control.proto;l=187 + * @return The boost. + */ + @java.lang.Override + @java.lang.Deprecated + public float getBoost() { + return boost_; + } + + /** + * + * + *
            +       * Strength of the boost, which should be in [-1, 1]. Negative
            +       * boost means demotion. Default is 0.0 (No-op).
            +       * 
            + * + * float boost = 1 [deprecated = true]; + * + * @deprecated google.cloud.discoveryengine.v1beta.Control.BoostAction.boost is deprecated. + * See google/cloud/discoveryengine/v1beta/control.proto;l=187 + * @param value The boost to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setBoost(float value) { + + boost_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Strength of the boost, which should be in [-1, 1]. Negative
            +       * boost means demotion. Default is 0.0 (No-op).
            +       * 
            + * + * float boost = 1 [deprecated = true]; + * + * @deprecated google.cloud.discoveryengine.v1beta.Control.BoostAction.boost is deprecated. + * See google/cloud/discoveryengine/v1beta/control.proto;l=187 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearBoost() { + bitField0_ = (bitField0_ & ~0x00000004); + boost_ = 0F; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
            +       * Required. Specifies which products to apply the boost to.
            +       *
            +       * If no filter is provided all products will be boosted (No-op).
            +       * Syntax documentation:
            +       * https://cloud.google.com/retail/docs/filter-and-order
            +       * Maximum length is 5000 characters.
            +       * Otherwise an INVALID ARGUMENT error is thrown.
            +       * 
            + * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
            +       * Required. Specifies which products to apply the boost to.
            +       *
            +       * If no filter is provided all products will be boosted (No-op).
            +       * Syntax documentation:
            +       * https://cloud.google.com/retail/docs/filter-and-order
            +       * Maximum length is 5000 characters.
            +       * Otherwise an INVALID ARGUMENT error is thrown.
            +       * 
            + * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
            +       * Required. Specifies which products to apply the boost to.
            +       *
            +       * If no filter is provided all products will be boosted (No-op).
            +       * Syntax documentation:
            +       * https://cloud.google.com/retail/docs/filter-and-order
            +       * Maximum length is 5000 characters.
            +       * Otherwise an INVALID ARGUMENT error is thrown.
            +       * 
            + * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + + /** + * + * + *
            +       * Required. Specifies which products to apply the boost to.
            +       *
            +       * If no filter is provided all products will be boosted (No-op).
            +       * Syntax documentation:
            +       * https://cloud.google.com/retail/docs/filter-and-order
            +       * Maximum length is 5000 characters.
            +       * Otherwise an INVALID ARGUMENT error is thrown.
            +       * 
            + * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. Specifies which products to apply the boost to.
            +       *
            +       * If no filter is provided all products will be boosted (No-op).
            +       * Syntax documentation:
            +       * https://cloud.google.com/retail/docs/filter-and-order
            +       * Maximum length is 5000 characters.
            +       * Otherwise an INVALID ARGUMENT error is thrown.
            +       * 
            + * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 dataStore_ = ""; + + /** + * + * + *
            +       * Required. Specifies which data store's documents can be boosted by this
            +       * control. Full data store name e.g.
            +       * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
            +       * 
            + * + * + * string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The dataStore. + */ + public java.lang.String getDataStore() { + java.lang.Object ref = dataStore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataStore_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Required. Specifies which data store's documents can be boosted by this
            +       * control. Full data store name e.g.
            +       * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
            +       * 
            + * + * + * string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for dataStore. + */ + public com.google.protobuf.ByteString getDataStoreBytes() { + java.lang.Object ref = dataStore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Required. Specifies which data store's documents can be boosted by this
            +       * control. Full data store name e.g.
            +       * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
            +       * 
            + * + * + * string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The dataStore to set. + * @return This builder for chaining. + */ + public Builder setDataStore(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataStore_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. Specifies which data store's documents can be boosted by this
            +       * control. Full data store name e.g.
            +       * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
            +       * 
            + * + * + * string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDataStore() { + dataStore_ = getDefaultInstance().getDataStore(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. Specifies which data store's documents can be boosted by this
            +       * control. Full data store name e.g.
            +       * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
            +       * 
            + * + * + * string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for dataStore to set. + * @return This builder for chaining. + */ + public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataStore_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Control.BoostAction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Control.BoostAction) + private static final com.google.cloud.discoveryengine.v1beta.Control.BoostAction + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Control.BoostAction(); + } + + public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoostAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Control.BoostAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface FilterActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Control.FilterAction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Required. A filter to apply on the matching condition results.
                  *
            -     * If no filter is provided all products will be boosted (No-op).
            +     * Required
                  * Syntax documentation:
                  * https://cloud.google.com/retail/docs/filter-and-order
            -     * Maximum length is 5000 characters.
            -     * Otherwise an INVALID ARGUMENT error is thrown.
            +     * Maximum length is 5000 characters. Otherwise an INVALID
            +     * ARGUMENT error is thrown.
                  * 
            * - * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The filter. */ @@ -120,16 +4999,16 @@ public interface BoostActionOrBuilder * * *
            -     * Required. Specifies which products to apply the boost to.
            +     * Required. A filter to apply on the matching condition results.
                  *
            -     * If no filter is provided all products will be boosted (No-op).
            +     * Required
                  * Syntax documentation:
                  * https://cloud.google.com/retail/docs/filter-and-order
            -     * Maximum length is 5000 characters.
            -     * Otherwise an INVALID ARGUMENT error is thrown.
            +     * Maximum length is 5000 characters. Otherwise an INVALID
            +     * ARGUMENT error is thrown.
                  * 
            * - * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for filter. */ @@ -139,13 +5018,13 @@ public interface BoostActionOrBuilder * * *
            -     * Required. Specifies which data store's documents can be boosted by this
            +     * Required. Specifies which data store's documents can be filtered by this
                  * control. Full data store name e.g.
                  * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
                  * 
            * * - * string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The dataStore. @@ -156,13 +5035,13 @@ public interface BoostActionOrBuilder * * *
            -     * Required. Specifies which data store's documents can be boosted by this
            +     * Required. Specifies which data store's documents can be filtered by this
                  * control. Full data store name e.g.
                  * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
                  * 
            * * - * string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for dataStore. @@ -174,15 +5053,16 @@ public interface BoostActionOrBuilder * * *
            -   * Adjusts order of products in returned list.
            +   * Specified which products may be included in results.
            +   * Uses same filter as boost.
                * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Control.BoostAction} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Control.FilterAction} */ - public static final class BoostAction extends com.google.protobuf.GeneratedMessage + public static final class FilterAction extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Control.BoostAction) - BoostActionOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Control.FilterAction) + FilterActionOrBuilder { private static final long serialVersionUID = 0L; static { @@ -192,55 +5072,35 @@ public static final class BoostAction extends com.google.protobuf.GeneratedMessa /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "BoostAction"); + "FilterAction"); } - // Use BoostAction.newBuilder() to construct. - private BoostAction(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use FilterAction.newBuilder() to construct. + private FilterAction(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private BoostAction() { + private FilterAction() { filter_ = ""; dataStore_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_Control_FilterAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_Control_FilterAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Control.BoostAction.class, - com.google.cloud.discoveryengine.v1beta.Control.BoostAction.Builder.class); - } - - public static final int BOOST_FIELD_NUMBER = 1; - private float boost_ = 0F; - - /** - * - * - *
            -     * Required. Strength of the boost, which should be in [-1, 1]. Negative
            -     * boost means demotion. Default is 0.0 (No-op).
            -     * 
            - * - * float boost = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The boost. - */ - @java.lang.Override - public float getBoost() { - return boost_; + com.google.cloud.discoveryengine.v1beta.Control.FilterAction.class, + com.google.cloud.discoveryengine.v1beta.Control.FilterAction.Builder.class); } - public static final int FILTER_FIELD_NUMBER = 2; + public static final int FILTER_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object filter_ = ""; @@ -249,16 +5109,16 @@ public float getBoost() { * * *
            -     * Required. Specifies which products to apply the boost to.
            +     * Required. A filter to apply on the matching condition results.
                  *
            -     * If no filter is provided all products will be boosted (No-op).
            +     * Required
                  * Syntax documentation:
                  * https://cloud.google.com/retail/docs/filter-and-order
            -     * Maximum length is 5000 characters.
            -     * Otherwise an INVALID ARGUMENT error is thrown.
            +     * Maximum length is 5000 characters. Otherwise an INVALID
            +     * ARGUMENT error is thrown.
                  * 
            * - * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The filter. */ @@ -279,16 +5139,16 @@ public java.lang.String getFilter() { * * *
            -     * Required. Specifies which products to apply the boost to.
            +     * Required. A filter to apply on the matching condition results.
                  *
            -     * If no filter is provided all products will be boosted (No-op).
            +     * Required
                  * Syntax documentation:
                  * https://cloud.google.com/retail/docs/filter-and-order
            -     * Maximum length is 5000 characters.
            -     * Otherwise an INVALID ARGUMENT error is thrown.
            +     * Maximum length is 5000 characters. Otherwise an INVALID
            +     * ARGUMENT error is thrown.
                  * 
            * - * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for filter. */ @@ -305,7 +5165,7 @@ public com.google.protobuf.ByteString getFilterBytes() { } } - public static final int DATA_STORE_FIELD_NUMBER = 3; + public static final int DATA_STORE_FIELD_NUMBER = 2; @SuppressWarnings("serial") private volatile java.lang.Object dataStore_ = ""; @@ -314,13 +5174,13 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
            -     * Required. Specifies which data store's documents can be boosted by this
            +     * Required. Specifies which data store's documents can be filtered by this
                  * control. Full data store name e.g.
                  * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
                  * 
            * * - * string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The dataStore. @@ -342,13 +5202,13 @@ public java.lang.String getDataStore() { * * *
            -     * Required. Specifies which data store's documents can be boosted by this
            +     * Required. Specifies which data store's documents can be filtered by this
                  * control. Full data store name e.g.
                  * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
                  * 
            * * - * string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for dataStore. @@ -380,14 +5240,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (java.lang.Float.floatToRawIntBits(boost_) != 0) { - output.writeFloat(1, boost_); - } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, filter_); + com.google.protobuf.GeneratedMessage.writeString(output, 1, filter_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, dataStore_); + com.google.protobuf.GeneratedMessage.writeString(output, 2, dataStore_); } getUnknownFields().writeTo(output); } @@ -398,14 +5255,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (java.lang.Float.floatToRawIntBits(boost_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, boost_); - } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, filter_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, filter_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, dataStore_); + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, dataStore_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -417,14 +5271,12 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Control.BoostAction)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Control.FilterAction)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.Control.BoostAction other = - (com.google.cloud.discoveryengine.v1beta.Control.BoostAction) obj; + com.google.cloud.discoveryengine.v1beta.Control.FilterAction other = + (com.google.cloud.discoveryengine.v1beta.Control.FilterAction) obj; - if (java.lang.Float.floatToIntBits(getBoost()) - != java.lang.Float.floatToIntBits(other.getBoost())) return false; if (!getFilter().equals(other.getFilter())) return false; if (!getDataStore().equals(other.getDataStore())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -438,8 +5290,6 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BOOST_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getBoost()); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); hash = (37 * hash) + DATA_STORE_FIELD_NUMBER; @@ -449,71 +5299,71 @@ public int hashCode() { return hash; } - public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction 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.v1beta.Control.BoostAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseFrom( 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.v1beta.Control.BoostAction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction parseDelimitedFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction parseDelimitedFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -531,7 +5381,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Control.BoostAction prototype) { + com.google.cloud.discoveryengine.v1beta.Control.FilterAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -550,31 +5400,32 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
            -     * Adjusts order of products in returned list.
            +     * Specified which products may be included in results.
            +     * Uses same filter as boost.
                  * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Control.BoostAction} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Control.FilterAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Control.BoostAction) - com.google.cloud.discoveryengine.v1beta.Control.BoostActionOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Control.FilterAction) + com.google.cloud.discoveryengine.v1beta.Control.FilterActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_Control_FilterAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_Control_FilterAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Control.BoostAction.class, - com.google.cloud.discoveryengine.v1beta.Control.BoostAction.Builder.class); + com.google.cloud.discoveryengine.v1beta.Control.FilterAction.class, + com.google.cloud.discoveryengine.v1beta.Control.FilterAction.Builder.class); } - // Construct using com.google.cloud.discoveryengine.v1beta.Control.BoostAction.newBuilder() + // Construct using com.google.cloud.discoveryengine.v1beta.Control.FilterAction.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -585,7 +5436,6 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - boost_ = 0F; filter_ = ""; dataStore_ = ""; return this; @@ -594,18 +5444,18 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_Control_FilterAction_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Control.BoostAction + public com.google.cloud.discoveryengine.v1beta.Control.FilterAction getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Control.BoostAction.getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.Control.FilterAction.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Control.BoostAction build() { - com.google.cloud.discoveryengine.v1beta.Control.BoostAction result = buildPartial(); + public com.google.cloud.discoveryengine.v1beta.Control.FilterAction build() { + com.google.cloud.discoveryengine.v1beta.Control.FilterAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -613,9 +5463,9 @@ public com.google.cloud.discoveryengine.v1beta.Control.BoostAction build() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Control.BoostAction buildPartial() { - com.google.cloud.discoveryengine.v1beta.Control.BoostAction result = - new com.google.cloud.discoveryengine.v1beta.Control.BoostAction(this); + public com.google.cloud.discoveryengine.v1beta.Control.FilterAction buildPartial() { + com.google.cloud.discoveryengine.v1beta.Control.FilterAction result = + new com.google.cloud.discoveryengine.v1beta.Control.FilterAction(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -624,44 +5474,38 @@ public com.google.cloud.discoveryengine.v1beta.Control.BoostAction buildPartial( } private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Control.BoostAction result) { + com.google.cloud.discoveryengine.v1beta.Control.FilterAction result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.boost_ = boost_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { result.filter_ = filter_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000002) != 0)) { result.dataStore_ = dataStore_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.Control.BoostAction) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.Control.BoostAction) other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.Control.FilterAction) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Control.FilterAction) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Control.BoostAction other) { + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Control.FilterAction other) { if (other - == com.google.cloud.discoveryengine.v1beta.Control.BoostAction.getDefaultInstance()) + == com.google.cloud.discoveryengine.v1beta.Control.FilterAction.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getBoost()) != 0) { - setBoost(other.getBoost()); - } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; onChanged(); } if (!other.getDataStore().isEmpty()) { dataStore_ = other.dataStore_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -690,24 +5534,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 13: + case 10: { - boost_ = input.readFloat(); + filter_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; - } // case 13 + } // case 10 case 18: { - filter_ = input.readStringRequireUtf8(); + dataStore_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 - case 26: - { - dataStore_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -727,81 +5565,22 @@ public Builder mergeFrom( private int bitField0_; - private float boost_; - - /** - * - * - *
            -       * Required. Strength of the boost, which should be in [-1, 1]. Negative
            -       * boost means demotion. Default is 0.0 (No-op).
            -       * 
            - * - * float boost = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The boost. - */ - @java.lang.Override - public float getBoost() { - return boost_; - } - - /** - * - * - *
            -       * Required. Strength of the boost, which should be in [-1, 1]. Negative
            -       * boost means demotion. Default is 0.0 (No-op).
            -       * 
            - * - * float boost = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The boost to set. - * @return This builder for chaining. - */ - public Builder setBoost(float value) { - - boost_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
            -       * Required. Strength of the boost, which should be in [-1, 1]. Negative
            -       * boost means demotion. Default is 0.0 (No-op).
            -       * 
            - * - * float boost = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearBoost() { - bitField0_ = (bitField0_ & ~0x00000001); - boost_ = 0F; - onChanged(); - return this; - } - private java.lang.Object filter_ = ""; /** * * *
            -       * Required. Specifies which products to apply the boost to.
            +       * Required. A filter to apply on the matching condition results.
                    *
            -       * If no filter is provided all products will be boosted (No-op).
            +       * Required
                    * Syntax documentation:
                    * https://cloud.google.com/retail/docs/filter-and-order
            -       * Maximum length is 5000 characters.
            -       * Otherwise an INVALID ARGUMENT error is thrown.
            +       * Maximum length is 5000 characters. Otherwise an INVALID
            +       * ARGUMENT error is thrown.
                    * 
            * - * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The filter. */ @@ -821,16 +5600,16 @@ public java.lang.String getFilter() { * * *
            -       * Required. Specifies which products to apply the boost to.
            +       * Required. A filter to apply on the matching condition results.
                    *
            -       * If no filter is provided all products will be boosted (No-op).
            +       * Required
                    * Syntax documentation:
                    * https://cloud.google.com/retail/docs/filter-and-order
            -       * Maximum length is 5000 characters.
            -       * Otherwise an INVALID ARGUMENT error is thrown.
            +       * Maximum length is 5000 characters. Otherwise an INVALID
            +       * ARGUMENT error is thrown.
                    * 
            * - * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for filter. */ @@ -850,16 +5629,16 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
            -       * Required. Specifies which products to apply the boost to.
            +       * Required. A filter to apply on the matching condition results.
                    *
            -       * If no filter is provided all products will be boosted (No-op).
            +       * Required
                    * Syntax documentation:
                    * https://cloud.google.com/retail/docs/filter-and-order
            -       * Maximum length is 5000 characters.
            -       * Otherwise an INVALID ARGUMENT error is thrown.
            +       * Maximum length is 5000 characters. Otherwise an INVALID
            +       * ARGUMENT error is thrown.
                    * 
            * - * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The filter to set. * @return This builder for chaining. @@ -869,7 +5648,7 @@ public Builder setFilter(java.lang.String value) { throw new NullPointerException(); } filter_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -878,22 +5657,22 @@ public Builder setFilter(java.lang.String value) { * * *
            -       * Required. Specifies which products to apply the boost to.
            +       * Required. A filter to apply on the matching condition results.
                    *
            -       * If no filter is provided all products will be boosted (No-op).
            +       * Required
                    * Syntax documentation:
                    * https://cloud.google.com/retail/docs/filter-and-order
            -       * Maximum length is 5000 characters.
            -       * Otherwise an INVALID ARGUMENT error is thrown.
            +       * Maximum length is 5000 characters. Otherwise an INVALID
            +       * ARGUMENT error is thrown.
                    * 
            * - * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -902,16 +5681,16 @@ public Builder clearFilter() { * * *
            -       * Required. Specifies which products to apply the boost to.
            +       * Required. A filter to apply on the matching condition results.
                    *
            -       * If no filter is provided all products will be boosted (No-op).
            +       * Required
                    * Syntax documentation:
                    * https://cloud.google.com/retail/docs/filter-and-order
            -       * Maximum length is 5000 characters.
            -       * Otherwise an INVALID ARGUMENT error is thrown.
            +       * Maximum length is 5000 characters. Otherwise an INVALID
            +       * ARGUMENT error is thrown.
                    * 
            * - * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -922,7 +5701,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); filter_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -933,13 +5712,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
            -       * Required. Specifies which data store's documents can be boosted by this
            +       * Required. Specifies which data store's documents can be filtered by this
                    * control. Full data store name e.g.
                    * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
                    * 
            * * - * string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The dataStore. @@ -960,13 +5739,13 @@ public java.lang.String getDataStore() { * * *
            -       * Required. Specifies which data store's documents can be boosted by this
            +       * Required. Specifies which data store's documents can be filtered by this
                    * control. Full data store name e.g.
                    * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
                    * 
            * * - * string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return The bytes for dataStore. @@ -987,13 +5766,13 @@ public com.google.protobuf.ByteString getDataStoreBytes() { * * *
            -       * Required. Specifies which data store's documents can be boosted by this
            +       * Required. Specifies which data store's documents can be filtered by this
                    * control. Full data store name e.g.
                    * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
                    * 
            * * - * string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The dataStore to set. @@ -1004,7 +5783,7 @@ public Builder setDataStore(java.lang.String value) { throw new NullPointerException(); } dataStore_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1013,20 +5792,20 @@ public Builder setDataStore(java.lang.String value) { * * *
            -       * Required. Specifies which data store's documents can be boosted by this
            +       * Required. Specifies which data store's documents can be filtered by this
                    * control. Full data store name e.g.
                    * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
                    * 
            * * - * string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. */ public Builder clearDataStore() { dataStore_ = getDefaultInstance().getDataStore(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1035,13 +5814,13 @@ public Builder clearDataStore() { * * *
            -       * Required. Specifies which data store's documents can be boosted by this
            +       * Required. Specifies which data store's documents can be filtered by this
                    * control. Full data store name e.g.
                    * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
                    * 
            * * - * string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * * * @param value The bytes for dataStore to set. @@ -1053,30 +5832,31 @@ public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); dataStore_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Control.BoostAction) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Control.FilterAction) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Control.BoostAction) - private static final com.google.cloud.discoveryengine.v1beta.Control.BoostAction + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Control.FilterAction) + private static final com.google.cloud.discoveryengine.v1beta.Control.FilterAction DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Control.BoostAction(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Control.FilterAction(); } - public static com.google.cloud.discoveryengine.v1beta.Control.BoostAction getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction + 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 BoostAction parsePartialFrom( + public FilterAction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1096,113 +5876,75 @@ public BoostAction 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.discoveryengine.v1beta.Control.BoostAction getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.Control.FilterAction + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface FilterActionOrBuilder + public interface RedirectActionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Control.FilterAction) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Control.RedirectAction) com.google.protobuf.MessageOrBuilder { /** * * *
            -     * Required. A filter to apply on the matching condition results.
            -     *
            -     * Required
            -     * Syntax documentation:
            -     * https://cloud.google.com/retail/docs/filter-and-order
            -     * Maximum length is 5000 characters. Otherwise an INVALID
            -     * ARGUMENT error is thrown.
            -     * 
            - * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The filter. - */ - java.lang.String getFilter(); - - /** - * - * - *
            -     * Required. A filter to apply on the matching condition results.
            -     *
            -     * Required
            -     * Syntax documentation:
            -     * https://cloud.google.com/retail/docs/filter-and-order
            -     * Maximum length is 5000 characters. Otherwise an INVALID
            -     * ARGUMENT error is thrown.
            -     * 
            - * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); - - /** - * + * Required. The URI to which the shopper will be redirected. * - *
            -     * Required. Specifies which data store's documents can be filtered by this
            -     * control. Full data store name e.g.
            -     * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
            +     * Required.
            +     * URI must have length equal or less than 2000 characters.
            +     * Otherwise an INVALID ARGUMENT error is thrown.
                  * 
            * - * - * string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The dataStore. + * @return The redirectUri. */ - java.lang.String getDataStore(); + java.lang.String getRedirectUri(); /** * * *
            -     * Required. Specifies which data store's documents can be filtered by this
            -     * control. Full data store name e.g.
            -     * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
            +     * Required. The URI to which the shopper will be redirected.
            +     *
            +     * Required.
            +     * URI must have length equal or less than 2000 characters.
            +     * Otherwise an INVALID ARGUMENT error is thrown.
                  * 
            * - * - * string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for dataStore. + * @return The bytes for redirectUri. */ - com.google.protobuf.ByteString getDataStoreBytes(); + com.google.protobuf.ByteString getRedirectUriBytes(); } /** * * *
            -   * Specified which products may be included in results.
            -   * Uses same filter as boost.
            +   * Redirects a shopper to the provided URI.
                * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Control.FilterAction} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Control.RedirectAction} */ - public static final class FilterAction extends com.google.protobuf.GeneratedMessage + public static final class RedirectAction extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Control.FilterAction) - FilterActionOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Control.RedirectAction) + RedirectActionOrBuilder { private static final long serialVersionUID = 0L; static { @@ -1212,65 +5954,62 @@ public static final class FilterAction extends com.google.protobuf.GeneratedMess /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "FilterAction"); + "RedirectAction"); } - // Use FilterAction.newBuilder() to construct. - private FilterAction(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use RedirectAction.newBuilder() to construct. + private RedirectAction(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private FilterAction() { - filter_ = ""; - dataStore_ = ""; + private RedirectAction() { + redirectUri_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_FilterAction_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_Control_RedirectAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_FilterAction_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_Control_RedirectAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Control.FilterAction.class, - com.google.cloud.discoveryengine.v1beta.Control.FilterAction.Builder.class); + com.google.cloud.discoveryengine.v1beta.Control.RedirectAction.class, + com.google.cloud.discoveryengine.v1beta.Control.RedirectAction.Builder.class); } - public static final int FILTER_FIELD_NUMBER = 1; + public static final int REDIRECT_URI_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object filter_ = ""; + private volatile java.lang.Object redirectUri_ = ""; /** * * *
            -     * Required. A filter to apply on the matching condition results.
            +     * Required. The URI to which the shopper will be redirected.
                  *
            -     * Required
            -     * Syntax documentation:
            -     * https://cloud.google.com/retail/docs/filter-and-order
            -     * Maximum length is 5000 characters. Otherwise an INVALID
            -     * ARGUMENT error is thrown.
            +     * Required.
            +     * URI must have length equal or less than 2000 characters.
            +     * Otherwise an INVALID ARGUMENT error is thrown.
                  * 
            * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The filter. + * @return The redirectUri. */ @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; + public java.lang.String getRedirectUri() { + java.lang.Object ref = redirectUri_; if (ref instanceof java.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; + redirectUri_ = s; return s; } } @@ -1279,87 +6018,24 @@ public java.lang.String getFilter() { * * *
            -     * Required. A filter to apply on the matching condition results.
            -     *
            -     * Required
            -     * Syntax documentation:
            -     * https://cloud.google.com/retail/docs/filter-and-order
            -     * Maximum length is 5000 characters. Otherwise an INVALID
            -     * ARGUMENT error is thrown.
            -     * 
            - * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 DATA_STORE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object dataStore_ = ""; - - /** - * - * - *
            -     * Required. Specifies which data store's documents can be filtered by this
            -     * control. Full data store name e.g.
            -     * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
            -     * 
            - * - * - * string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The dataStore. - */ - @java.lang.Override - public java.lang.String getDataStore() { - java.lang.Object ref = dataStore_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dataStore_ = s; - return s; - } - } - - /** - * + * Required. The URI to which the shopper will be redirected. * - *
            -     * Required. Specifies which data store's documents can be filtered by this
            -     * control. Full data store name e.g.
            -     * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
            +     * Required.
            +     * URI must have length equal or less than 2000 characters.
            +     * Otherwise an INVALID ARGUMENT error is thrown.
                  * 
            * - * - * string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for dataStore. + * @return The bytes for redirectUri. */ @java.lang.Override - public com.google.protobuf.ByteString getDataStoreBytes() { - java.lang.Object ref = dataStore_; + public com.google.protobuf.ByteString getRedirectUriBytes() { + java.lang.Object ref = redirectUri_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dataStore_ = b; + redirectUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -1380,11 +6056,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, filter_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, dataStore_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(redirectUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, redirectUri_); } getUnknownFields().writeTo(output); } @@ -1395,11 +6068,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, filter_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, dataStore_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(redirectUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, redirectUri_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1411,14 +6081,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Control.FilterAction)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Control.RedirectAction)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.Control.FilterAction other = - (com.google.cloud.discoveryengine.v1beta.Control.FilterAction) obj; + com.google.cloud.discoveryengine.v1beta.Control.RedirectAction other = + (com.google.cloud.discoveryengine.v1beta.Control.RedirectAction) obj; - if (!getFilter().equals(other.getFilter())) return false; - if (!getDataStore().equals(other.getDataStore())) return false; + if (!getRedirectUri().equals(other.getRedirectUri())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1430,80 +6099,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + DATA_STORE_FIELD_NUMBER; - hash = (53 * hash) + getDataStore().hashCode(); + hash = (37 * hash) + REDIRECT_URI_FIELD_NUMBER; + hash = (53 * hash) + getRedirectUri().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction 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.v1beta.Control.FilterAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseFrom( 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.v1beta.Control.FilterAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseDelimitedFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseDelimitedFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1521,7 +6188,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Control.FilterAction prototype) { + com.google.cloud.discoveryengine.v1beta.Control.RedirectAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -1540,32 +6207,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
            -     * Specified which products may be included in results.
            -     * Uses same filter as boost.
            +     * Redirects a shopper to the provided URI.
                  * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Control.FilterAction} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Control.RedirectAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Control.FilterAction) - com.google.cloud.discoveryengine.v1beta.Control.FilterActionOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Control.RedirectAction) + com.google.cloud.discoveryengine.v1beta.Control.RedirectActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_FilterAction_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_Control_RedirectAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_FilterAction_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_Control_RedirectAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Control.FilterAction.class, - com.google.cloud.discoveryengine.v1beta.Control.FilterAction.Builder.class); + com.google.cloud.discoveryengine.v1beta.Control.RedirectAction.class, + com.google.cloud.discoveryengine.v1beta.Control.RedirectAction.Builder.class); } - // Construct using com.google.cloud.discoveryengine.v1beta.Control.FilterAction.newBuilder() + // Construct using com.google.cloud.discoveryengine.v1beta.Control.RedirectAction.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -1576,26 +6242,25 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - filter_ = ""; - dataStore_ = ""; + redirectUri_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_FilterAction_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_Control_RedirectAction_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Control.FilterAction + public com.google.cloud.discoveryengine.v1beta.Control.RedirectAction getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Control.FilterAction.getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.Control.RedirectAction.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Control.FilterAction build() { - com.google.cloud.discoveryengine.v1beta.Control.FilterAction result = buildPartial(); + public com.google.cloud.discoveryengine.v1beta.Control.RedirectAction build() { + com.google.cloud.discoveryengine.v1beta.Control.RedirectAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1603,9 +6268,9 @@ public com.google.cloud.discoveryengine.v1beta.Control.FilterAction build() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Control.FilterAction buildPartial() { - com.google.cloud.discoveryengine.v1beta.Control.FilterAction result = - new com.google.cloud.discoveryengine.v1beta.Control.FilterAction(this); + public com.google.cloud.discoveryengine.v1beta.Control.RedirectAction buildPartial() { + com.google.cloud.discoveryengine.v1beta.Control.RedirectAction result = + new com.google.cloud.discoveryengine.v1beta.Control.RedirectAction(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -1614,40 +6279,33 @@ public com.google.cloud.discoveryengine.v1beta.Control.FilterAction buildPartial } private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Control.FilterAction result) { + com.google.cloud.discoveryengine.v1beta.Control.RedirectAction result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.filter_ = filter_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.dataStore_ = dataStore_; + result.redirectUri_ = redirectUri_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.Control.FilterAction) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.Control.FilterAction) other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.Control.RedirectAction) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Control.RedirectAction) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Control.FilterAction other) { + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Control.RedirectAction other) { if (other - == com.google.cloud.discoveryengine.v1beta.Control.FilterAction.getDefaultInstance()) + == com.google.cloud.discoveryengine.v1beta.Control.RedirectAction.getDefaultInstance()) return this; - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; + if (!other.getRedirectUri().isEmpty()) { + redirectUri_ = other.redirectUri_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getDataStore().isEmpty()) { - dataStore_ = other.dataStore_; - bitField0_ |= 0x00000002; - onChanged(); - } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1676,16 +6334,10 @@ public Builder mergeFrom( break; case 10: { - filter_ = input.readStringRequireUtf8(); + redirectUri_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 - case 18: - { - dataStore_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1705,31 +6357,29 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object filter_ = ""; + private java.lang.Object redirectUri_ = ""; /** * * *
            -       * Required. A filter to apply on the matching condition results.
            +       * Required. The URI to which the shopper will be redirected.
                    *
            -       * Required
            -       * Syntax documentation:
            -       * https://cloud.google.com/retail/docs/filter-and-order
            -       * Maximum length is 5000 characters. Otherwise an INVALID
            -       * ARGUMENT error is thrown.
            +       * Required.
            +       * URI must have length equal or less than 2000 characters.
            +       * Otherwise an INVALID ARGUMENT error is thrown.
                    * 
            * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The filter. + * @return The redirectUri. */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; + public java.lang.String getRedirectUri() { + java.lang.Object ref = redirectUri_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - filter_ = s; + redirectUri_ = s; return s; } else { return (java.lang.String) ref; @@ -1740,25 +6390,23 @@ public java.lang.String getFilter() { * * *
            -       * Required. A filter to apply on the matching condition results.
            +       * Required. The URI to which the shopper will be redirected.
                    *
            -       * Required
            -       * Syntax documentation:
            -       * https://cloud.google.com/retail/docs/filter-and-order
            -       * Maximum length is 5000 characters. Otherwise an INVALID
            -       * ARGUMENT error is thrown.
            +       * Required.
            +       * URI must have length equal or less than 2000 characters.
            +       * Otherwise an INVALID ARGUMENT error is thrown.
                    * 
            * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for filter. + * @return The bytes for redirectUri. */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; + public com.google.protobuf.ByteString getRedirectUriBytes() { + java.lang.Object ref = redirectUri_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; + redirectUri_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -1769,25 +6417,23 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
            -       * Required. A filter to apply on the matching condition results.
            +       * Required. The URI to which the shopper will be redirected.
                    *
            -       * Required
            -       * Syntax documentation:
            -       * https://cloud.google.com/retail/docs/filter-and-order
            -       * Maximum length is 5000 characters. Otherwise an INVALID
            -       * ARGUMENT error is thrown.
            +       * Required.
            +       * URI must have length equal or less than 2000 characters.
            +       * Otherwise an INVALID ARGUMENT error is thrown.
                    * 
            * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The filter to set. + * @param value The redirectUri to set. * @return This builder for chaining. */ - public Builder setFilter(java.lang.String value) { + public Builder setRedirectUri(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - filter_ = value; + redirectUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -1797,21 +6443,19 @@ public Builder setFilter(java.lang.String value) { * * *
            -       * Required. A filter to apply on the matching condition results.
            +       * Required. The URI to which the shopper will be redirected.
                    *
            -       * Required
            -       * Syntax documentation:
            -       * https://cloud.google.com/retail/docs/filter-and-order
            -       * Maximum length is 5000 characters. Otherwise an INVALID
            -       * ARGUMENT error is thrown.
            +       * Required.
            +       * URI must have length equal or less than 2000 characters.
            +       * Otherwise an INVALID ARGUMENT error is thrown.
                    * 
            * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ - public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); + public Builder clearRedirectUri() { + redirectUri_ = getDefaultInstance().getRedirectUri(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -1821,182 +6465,49 @@ public Builder clearFilter() { * * *
            -       * Required. A filter to apply on the matching condition results.
            +       * Required. The URI to which the shopper will be redirected.
                    *
            -       * Required
            -       * Syntax documentation:
            -       * https://cloud.google.com/retail/docs/filter-and-order
            -       * Maximum length is 5000 characters. Otherwise an INVALID
            -       * ARGUMENT error is thrown.
            +       * Required.
            +       * URI must have length equal or less than 2000 characters.
            +       * Otherwise an INVALID ARGUMENT error is thrown.
                    * 
            * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The bytes for filter to set. + * @param value The bytes for redirectUri to set. * @return This builder for chaining. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { + public Builder setRedirectUriBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - filter_ = value; + redirectUri_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object dataStore_ = ""; - - /** - * - * - *
            -       * Required. Specifies which data store's documents can be filtered by this
            -       * control. Full data store name e.g.
            -       * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
            -       * 
            - * - * - * string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The dataStore. - */ - public java.lang.String getDataStore() { - java.lang.Object ref = dataStore_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dataStore_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
            -       * Required. Specifies which data store's documents can be filtered by this
            -       * control. Full data store name e.g.
            -       * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
            -       * 
            - * - * - * string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for dataStore. - */ - public com.google.protobuf.ByteString getDataStoreBytes() { - java.lang.Object ref = dataStore_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dataStore_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
            -       * Required. Specifies which data store's documents can be filtered by this
            -       * control. Full data store name e.g.
            -       * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
            -       * 
            - * - * - * string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The dataStore to set. - * @return This builder for chaining. - */ - public Builder setDataStore(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - dataStore_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
            -       * Required. Specifies which data store's documents can be filtered by this
            -       * control. Full data store name e.g.
            -       * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
            -       * 
            - * - * - * string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearDataStore() { - dataStore_ = getDefaultInstance().getDataStore(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
            -       * Required. Specifies which data store's documents can be filtered by this
            -       * control. Full data store name e.g.
            -       * projects/123/locations/global/collections/default_collection/dataStores/default_data_store
            -       * 
            - * - * - * string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for dataStore to set. - * @return This builder for chaining. - */ - public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - dataStore_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Control.FilterAction) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Control.RedirectAction) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Control.FilterAction) - private static final com.google.cloud.discoveryengine.v1beta.Control.FilterAction + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Control.RedirectAction) + private static final com.google.cloud.discoveryengine.v1beta.Control.RedirectAction DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Control.FilterAction(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Control.RedirectAction(); } - public static com.google.cloud.discoveryengine.v1beta.Control.FilterAction + public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction 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 FilterAction parsePartialFrom( + public RedirectAction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2016,75 +6527,110 @@ public FilterAction 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.discoveryengine.v1beta.Control.FilterAction + public com.google.cloud.discoveryengine.v1beta.Control.RedirectAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface RedirectActionOrBuilder + public interface SynonymsActionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Control.RedirectAction) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Control.SynonymsAction) com.google.protobuf.MessageOrBuilder { /** * * *
            -     * Required. The URI to which the shopper will be redirected.
            +     * Defines a set of synonyms.
            +     * Can specify up to 100 synonyms.
            +     * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            +     * thrown.
            +     * 
            * - * Required. - * URI must have length equal or less than 2000 characters. - * Otherwise an INVALID ARGUMENT error is thrown. + * repeated string synonyms = 1; + * + * @return A list containing the synonyms. + */ + java.util.List getSynonymsList(); + + /** + * + * + *
            +     * Defines a set of synonyms.
            +     * Can specify up to 100 synonyms.
            +     * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            +     * thrown.
                  * 
            * - * string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string synonyms = 1; * - * @return The redirectUri. + * @return The count of synonyms. */ - java.lang.String getRedirectUri(); + int getSynonymsCount(); /** * * *
            -     * Required. The URI to which the shopper will be redirected.
            +     * Defines a set of synonyms.
            +     * Can specify up to 100 synonyms.
            +     * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            +     * thrown.
            +     * 
            * - * Required. - * URI must have length equal or less than 2000 characters. - * Otherwise an INVALID ARGUMENT error is thrown. + * repeated string synonyms = 1; + * + * @param index The index of the element to return. + * @return The synonyms at the given index. + */ + java.lang.String getSynonyms(int index); + + /** + * + * + *
            +     * Defines a set of synonyms.
            +     * Can specify up to 100 synonyms.
            +     * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            +     * thrown.
                  * 
            * - * string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string synonyms = 1; * - * @return The bytes for redirectUri. + * @param index The index of the value to return. + * @return The bytes of the synonyms at the given index. */ - com.google.protobuf.ByteString getRedirectUriBytes(); + com.google.protobuf.ByteString getSynonymsBytes(int index); } /** * * *
            -   * Redirects a shopper to the provided URI.
            +   * Creates a set of terms that will act as synonyms of one another.
            +   *
            +   * Example: "happy" will also be considered as "glad", "glad" will also be
            +   * considered as "happy".
                * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Control.RedirectAction} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Control.SynonymsAction} */ - public static final class RedirectAction extends com.google.protobuf.GeneratedMessage + public static final class SynonymsAction extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Control.RedirectAction) - RedirectActionOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Control.SynonymsAction) + SynonymsActionOrBuilder { private static final long serialVersionUID = 0L; static { @@ -2094,92 +6640,111 @@ public static final class RedirectAction extends com.google.protobuf.GeneratedMe /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "RedirectAction"); + "SynonymsAction"); } - // Use RedirectAction.newBuilder() to construct. - private RedirectAction(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use SynonymsAction.newBuilder() to construct. + private SynonymsAction(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private RedirectAction() { - redirectUri_ = ""; + private SynonymsAction() { + synonyms_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_RedirectAction_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_Control_SynonymsAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_RedirectAction_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_Control_SynonymsAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Control.RedirectAction.class, - com.google.cloud.discoveryengine.v1beta.Control.RedirectAction.Builder.class); + com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction.class, + com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction.Builder.class); } - public static final int REDIRECT_URI_FIELD_NUMBER = 1; + public static final int SYNONYMS_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object redirectUri_ = ""; + private com.google.protobuf.LazyStringArrayList synonyms_ = + com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
            -     * Required. The URI to which the shopper will be redirected.
            +     * Defines a set of synonyms.
            +     * Can specify up to 100 synonyms.
            +     * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            +     * thrown.
            +     * 
            * - * Required. - * URI must have length equal or less than 2000 characters. - * Otherwise an INVALID ARGUMENT error is thrown. + * repeated string synonyms = 1; + * + * @return A list containing the synonyms. + */ + public com.google.protobuf.ProtocolStringList getSynonymsList() { + return synonyms_; + } + + /** + * + * + *
            +     * Defines a set of synonyms.
            +     * Can specify up to 100 synonyms.
            +     * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            +     * thrown.
                  * 
            * - * string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string synonyms = 1; * - * @return The redirectUri. + * @return The count of synonyms. */ - @java.lang.Override - public java.lang.String getRedirectUri() { - java.lang.Object ref = redirectUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - redirectUri_ = s; - return s; - } + public int getSynonymsCount() { + return synonyms_.size(); } /** * * *
            -     * Required. The URI to which the shopper will be redirected.
            +     * Defines a set of synonyms.
            +     * Can specify up to 100 synonyms.
            +     * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            +     * thrown.
            +     * 
            * - * Required. - * URI must have length equal or less than 2000 characters. - * Otherwise an INVALID ARGUMENT error is thrown. + * repeated string synonyms = 1; + * + * @param index The index of the element to return. + * @return The synonyms at the given index. + */ + public java.lang.String getSynonyms(int index) { + return synonyms_.get(index); + } + + /** + * + * + *
            +     * Defines a set of synonyms.
            +     * Can specify up to 100 synonyms.
            +     * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            +     * thrown.
                  * 
            * - * string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string synonyms = 1; * - * @return The bytes for redirectUri. + * @param index The index of the value to return. + * @return The bytes of the synonyms at the given index. */ - @java.lang.Override - public com.google.protobuf.ByteString getRedirectUriBytes() { - java.lang.Object ref = redirectUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - redirectUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getSynonymsBytes(int index) { + return synonyms_.getByteString(index); } private byte memoizedIsInitialized = -1; @@ -2196,8 +6761,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(redirectUri_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, redirectUri_); + for (int i = 0; i < synonyms_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, synonyms_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -2208,8 +6773,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(redirectUri_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, redirectUri_); + { + int dataSize = 0; + for (int i = 0; i < synonyms_.size(); i++) { + dataSize += computeStringSizeNoTag(synonyms_.getRaw(i)); + } + size += dataSize; + size += 1 * getSynonymsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2221,13 +6791,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Control.RedirectAction)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.Control.RedirectAction other = - (com.google.cloud.discoveryengine.v1beta.Control.RedirectAction) obj; + com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction other = + (com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction) obj; - if (!getRedirectUri().equals(other.getRedirectUri())) return false; + if (!getSynonymsList().equals(other.getSynonymsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2239,78 +6809,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + REDIRECT_URI_FIELD_NUMBER; - hash = (53 * hash) + getRedirectUri().hashCode(); + if (getSynonymsCount() > 0) { + hash = (37 * hash) + SYNONYMS_FIELD_NUMBER; + hash = (53 * hash) + getSynonymsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction 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.v1beta.Control.RedirectAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseFrom( 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.v1beta.Control.RedirectAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseDelimitedFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseDelimitedFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2328,7 +6900,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Control.RedirectAction prototype) { + com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -2346,32 +6918,35 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder /** * * - *
            -     * Redirects a shopper to the provided URI.
            +     * 
            +     * Creates a set of terms that will act as synonyms of one another.
            +     *
            +     * Example: "happy" will also be considered as "glad", "glad" will also be
            +     * considered as "happy".
                  * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Control.RedirectAction} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Control.SynonymsAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Control.RedirectAction) - com.google.cloud.discoveryengine.v1beta.Control.RedirectActionOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Control.SynonymsAction) + com.google.cloud.discoveryengine.v1beta.Control.SynonymsActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_RedirectAction_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_Control_SynonymsAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_RedirectAction_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_Control_SynonymsAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Control.RedirectAction.class, - com.google.cloud.discoveryengine.v1beta.Control.RedirectAction.Builder.class); + com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction.class, + com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction.Builder.class); } - // Construct using com.google.cloud.discoveryengine.v1beta.Control.RedirectAction.newBuilder() + // Construct using com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -2382,25 +6957,25 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - redirectUri_ = ""; + synonyms_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_RedirectAction_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_Control_SynonymsAction_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Control.RedirectAction + public com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Control.RedirectAction.getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Control.RedirectAction build() { - com.google.cloud.discoveryengine.v1beta.Control.RedirectAction result = buildPartial(); + public com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction build() { + com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2408,9 +6983,9 @@ public com.google.cloud.discoveryengine.v1beta.Control.RedirectAction build() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Control.RedirectAction buildPartial() { - com.google.cloud.discoveryengine.v1beta.Control.RedirectAction result = - new com.google.cloud.discoveryengine.v1beta.Control.RedirectAction(this); + public com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction buildPartial() { + com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction result = + new com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -2419,17 +6994,18 @@ public com.google.cloud.discoveryengine.v1beta.Control.RedirectAction buildParti } private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Control.RedirectAction result) { + com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.redirectUri_ = redirectUri_; + synonyms_.makeImmutable(); + result.synonyms_ = synonyms_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.Control.RedirectAction) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.Control.RedirectAction) other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction) other); } else { super.mergeFrom(other); return this; @@ -2437,13 +7013,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.Control.RedirectAction other) { + com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction other) { if (other - == com.google.cloud.discoveryengine.v1beta.Control.RedirectAction.getDefaultInstance()) + == com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction.getDefaultInstance()) return this; - if (!other.getRedirectUri().isEmpty()) { - redirectUri_ = other.redirectUri_; - bitField0_ |= 0x00000001; + if (!other.synonyms_.isEmpty()) { + if (synonyms_.isEmpty()) { + synonyms_ = other.synonyms_; + bitField0_ |= 0x00000001; + } else { + ensureSynonymsIsMutable(); + synonyms_.addAll(other.synonyms_); + } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -2474,8 +7055,9 @@ public Builder mergeFrom( break; case 10: { - redirectUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; + java.lang.String s = input.readStringRequireUtf8(); + ensureSynonymsIsMutable(); + synonyms_.add(s); break; } // case 10 default: @@ -2497,83 +7079,139 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object redirectUri_ = ""; + private com.google.protobuf.LazyStringArrayList synonyms_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSynonymsIsMutable() { + if (!synonyms_.isModifiable()) { + synonyms_ = new com.google.protobuf.LazyStringArrayList(synonyms_); + } + bitField0_ |= 0x00000001; + } /** * * *
            -       * Required. The URI to which the shopper will be redirected.
            +       * Defines a set of synonyms.
            +       * Can specify up to 100 synonyms.
            +       * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            +       * thrown.
            +       * 
            * - * Required. - * URI must have length equal or less than 2000 characters. - * Otherwise an INVALID ARGUMENT error is thrown. + * repeated string synonyms = 1; + * + * @return A list containing the synonyms. + */ + public com.google.protobuf.ProtocolStringList getSynonymsList() { + synonyms_.makeImmutable(); + return synonyms_; + } + + /** + * + * + *
            +       * Defines a set of synonyms.
            +       * Can specify up to 100 synonyms.
            +       * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            +       * thrown.
                    * 
            * - * string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string synonyms = 1; * - * @return The redirectUri. + * @return The count of synonyms. */ - public java.lang.String getRedirectUri() { - java.lang.Object ref = redirectUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - redirectUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public int getSynonymsCount() { + return synonyms_.size(); } /** * * *
            -       * Required. The URI to which the shopper will be redirected.
            +       * Defines a set of synonyms.
            +       * Can specify up to 100 synonyms.
            +       * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            +       * thrown.
            +       * 
            * - * Required. - * URI must have length equal or less than 2000 characters. - * Otherwise an INVALID ARGUMENT error is thrown. + * repeated string synonyms = 1; + * + * @param index The index of the element to return. + * @return The synonyms at the given index. + */ + public java.lang.String getSynonyms(int index) { + return synonyms_.get(index); + } + + /** + * + * + *
            +       * Defines a set of synonyms.
            +       * Can specify up to 100 synonyms.
            +       * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            +       * thrown.
                    * 
            * - * string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string synonyms = 1; * - * @return The bytes for redirectUri. + * @param index The index of the value to return. + * @return The bytes of the synonyms at the given index. */ - public com.google.protobuf.ByteString getRedirectUriBytes() { - java.lang.Object ref = redirectUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - redirectUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.protobuf.ByteString getSynonymsBytes(int index) { + return synonyms_.getByteString(index); } /** * * *
            -       * Required. The URI to which the shopper will be redirected.
            +       * Defines a set of synonyms.
            +       * Can specify up to 100 synonyms.
            +       * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            +       * thrown.
            +       * 
            * - * Required. - * URI must have length equal or less than 2000 characters. - * Otherwise an INVALID ARGUMENT error is thrown. + * repeated string synonyms = 1; + * + * @param index The index to set the value at. + * @param value The synonyms to set. + * @return This builder for chaining. + */ + public Builder setSynonyms(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSynonymsIsMutable(); + synonyms_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Defines a set of synonyms.
            +       * Can specify up to 100 synonyms.
            +       * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            +       * thrown.
                    * 
            * - * string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string synonyms = 1; * - * @param value The redirectUri to set. + * @param value The synonyms to add. * @return This builder for chaining. */ - public Builder setRedirectUri(java.lang.String value) { + public Builder addSynonyms(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - redirectUri_ = value; + ensureSynonymsIsMutable(); + synonyms_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; @@ -2583,20 +7221,43 @@ public Builder setRedirectUri(java.lang.String value) { * * *
            -       * Required. The URI to which the shopper will be redirected.
            +       * Defines a set of synonyms.
            +       * Can specify up to 100 synonyms.
            +       * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            +       * thrown.
            +       * 
            * - * Required. - * URI must have length equal or less than 2000 characters. - * Otherwise an INVALID ARGUMENT error is thrown. + * repeated string synonyms = 1; + * + * @param values The synonyms to add. + * @return This builder for chaining. + */ + public Builder addAllSynonyms(java.lang.Iterable values) { + ensureSynonymsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, synonyms_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Defines a set of synonyms.
            +       * Can specify up to 100 synonyms.
            +       * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            +       * thrown.
                    * 
            * - * string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string synonyms = 1; * * @return This builder for chaining. */ - public Builder clearRedirectUri() { - redirectUri_ = getDefaultInstance().getRedirectUri(); + public Builder clearSynonyms() { + synonyms_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); return this; } @@ -2605,49 +7266,49 @@ public Builder clearRedirectUri() { * * *
            -       * Required. The URI to which the shopper will be redirected.
            -       *
            -       * Required.
            -       * URI must have length equal or less than 2000 characters.
            -       * Otherwise an INVALID ARGUMENT error is thrown.
            +       * Defines a set of synonyms.
            +       * Can specify up to 100 synonyms.
            +       * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            +       * thrown.
                    * 
            * - * string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string synonyms = 1; * - * @param value The bytes for redirectUri to set. + * @param value The bytes of the synonyms to add. * @return This builder for chaining. */ - public Builder setRedirectUriBytes(com.google.protobuf.ByteString value) { + public Builder addSynonymsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - redirectUri_ = value; + ensureSynonymsIsMutable(); + synonyms_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Control.RedirectAction) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Control.SynonymsAction) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Control.RedirectAction) - private static final com.google.cloud.discoveryengine.v1beta.Control.RedirectAction + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Control.SynonymsAction) + private static final com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Control.RedirectAction(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction(); } - public static com.google.cloud.discoveryengine.v1beta.Control.RedirectAction + public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction 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 RedirectAction parsePartialFrom( + public SynonymsAction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2667,110 +7328,118 @@ public RedirectAction 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.discoveryengine.v1beta.Control.RedirectAction + public com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface SynonymsActionOrBuilder + public interface PromoteActionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Control.SynonymsAction) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Control.PromoteAction) com.google.protobuf.MessageOrBuilder { /** * * *
            -     * Defines a set of synonyms.
            -     * Can specify up to 100 synonyms.
            -     * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            -     * thrown.
            +     * Required. Data store with which this promotion is attached to.
                  * 
            * - * repeated string synonyms = 1; + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return A list containing the synonyms. + * @return The dataStore. */ - java.util.List getSynonymsList(); + java.lang.String getDataStore(); /** * * *
            -     * Defines a set of synonyms.
            -     * Can specify up to 100 synonyms.
            -     * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            -     * thrown.
            +     * Required. Data store with which this promotion is attached to.
                  * 
            * - * repeated string synonyms = 1; + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The count of synonyms. + * @return The bytes for dataStore. */ - int getSynonymsCount(); + com.google.protobuf.ByteString getDataStoreBytes(); /** * * *
            -     * Defines a set of synonyms.
            -     * Can specify up to 100 synonyms.
            -     * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            -     * thrown.
            +     * Required. Promotion attached to this action.
                  * 
            * - * repeated string synonyms = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED]; + * * - * @param index The index of the element to return. - * @return The synonyms at the given index. + * @return Whether the searchLinkPromotion field is set. */ - java.lang.String getSynonyms(int index); + boolean hasSearchLinkPromotion(); /** * * *
            -     * Defines a set of synonyms.
            -     * Can specify up to 100 synonyms.
            -     * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            -     * thrown.
            +     * Required. Promotion attached to this action.
                  * 
            * - * repeated string synonyms = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED]; + * * - * @param index The index of the value to return. - * @return The bytes of the synonyms at the given index. + * @return The searchLinkPromotion. */ - com.google.protobuf.ByteString getSynonymsBytes(int index); + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion getSearchLinkPromotion(); + + /** + * + * + *
            +     * Required. Promotion attached to this action.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotionOrBuilder + getSearchLinkPromotionOrBuilder(); } /** * * *
            -   * Creates a set of terms that will act as synonyms of one another.
            +   * Promote certain links based on some trigger queries.
                *
            -   * Example: "happy" will also be considered as "glad", "glad" will also be
            -   * considered as "happy".
            +   * Example: Promote shoe store link when searching for `shoe` keyword.
            +   * The link can be outside of associated data store.
                * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Control.SynonymsAction} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Control.PromoteAction} */ - public static final class SynonymsAction extends com.google.protobuf.GeneratedMessage + public static final class PromoteAction extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Control.SynonymsAction) - SynonymsActionOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Control.PromoteAction) + PromoteActionOrBuilder { private static final long serialVersionUID = 0L; static { @@ -2780,111 +7449,149 @@ public static final class SynonymsAction extends com.google.protobuf.GeneratedMe /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "SynonymsAction"); + "PromoteAction"); } - // Use SynonymsAction.newBuilder() to construct. - private SynonymsAction(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use PromoteAction.newBuilder() to construct. + private PromoteAction(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private SynonymsAction() { - synonyms_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private PromoteAction() { + dataStore_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_SynonymsAction_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_Control_PromoteAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_SynonymsAction_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_Control_PromoteAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction.class, - com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction.Builder.class); + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction.class, + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction.Builder.class); } - public static final int SYNONYMS_FIELD_NUMBER = 1; + private int bitField0_; + public static final int DATA_STORE_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList synonyms_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + private volatile java.lang.Object dataStore_ = ""; /** * * *
            -     * Defines a set of synonyms.
            -     * Can specify up to 100 synonyms.
            -     * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            -     * thrown.
            +     * Required. Data store with which this promotion is attached to.
                  * 
            * - * repeated string synonyms = 1; + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return A list containing the synonyms. + * @return The dataStore. */ - public com.google.protobuf.ProtocolStringList getSynonymsList() { - return synonyms_; + @java.lang.Override + public java.lang.String getDataStore() { + java.lang.Object ref = dataStore_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataStore_ = s; + return s; + } } /** * * *
            -     * Defines a set of synonyms.
            -     * Can specify up to 100 synonyms.
            -     * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            -     * thrown.
            +     * Required. Data store with which this promotion is attached to.
                  * 
            * - * repeated string synonyms = 1; + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The count of synonyms. + * @return The bytes for dataStore. */ - public int getSynonymsCount() { - return synonyms_.size(); + @java.lang.Override + public com.google.protobuf.ByteString getDataStoreBytes() { + java.lang.Object ref = dataStore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + public static final int SEARCH_LINK_PROMOTION_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion searchLinkPromotion_; + /** * * *
            -     * Defines a set of synonyms.
            -     * Can specify up to 100 synonyms.
            -     * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            -     * thrown.
            +     * Required. Promotion attached to this action.
                  * 
            * - * repeated string synonyms = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED]; + * * - * @param index The index of the element to return. - * @return The synonyms at the given index. + * @return Whether the searchLinkPromotion field is set. */ - public java.lang.String getSynonyms(int index) { - return synonyms_.get(index); + @java.lang.Override + public boolean hasSearchLinkPromotion() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
            -     * Defines a set of synonyms.
            -     * Can specify up to 100 synonyms.
            -     * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            -     * thrown.
            +     * Required. Promotion attached to this action.
                  * 
            * - * repeated string synonyms = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED]; + * * - * @param index The index of the value to return. - * @return The bytes of the synonyms at the given index. + * @return The searchLinkPromotion. */ - public com.google.protobuf.ByteString getSynonymsBytes(int index) { - return synonyms_.getByteString(index); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion getSearchLinkPromotion() { + return searchLinkPromotion_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.getDefaultInstance() + : searchLinkPromotion_; + } + + /** + * + * + *
            +     * Required. Promotion attached to this action.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchLinkPromotionOrBuilder + getSearchLinkPromotionOrBuilder() { + return searchLinkPromotion_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.getDefaultInstance() + : searchLinkPromotion_; } private byte memoizedIsInitialized = -1; @@ -2901,8 +7608,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < synonyms_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, synonyms_.getRaw(i)); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, dataStore_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSearchLinkPromotion()); } getUnknownFields().writeTo(output); } @@ -2913,13 +7623,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - { - int dataSize = 0; - for (int i = 0; i < synonyms_.size(); i++) { - dataSize += computeStringSizeNoTag(synonyms_.getRaw(i)); - } - size += dataSize; - size += 1 * getSynonymsList().size(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, dataStore_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSearchLinkPromotion()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -2931,13 +7640,17 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Control.PromoteAction)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction other = - (com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction) obj; + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction other = + (com.google.cloud.discoveryengine.v1beta.Control.PromoteAction) obj; - if (!getSynonymsList().equals(other.getSynonymsList())) return false; + if (!getDataStore().equals(other.getDataStore())) return false; + if (hasSearchLinkPromotion() != other.hasSearchLinkPromotion()) return false; + if (hasSearchLinkPromotion()) { + if (!getSearchLinkPromotion().equals(other.getSearchLinkPromotion())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2949,80 +7662,82 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getSynonymsCount() > 0) { - hash = (37 * hash) + SYNONYMS_FIELD_NUMBER; - hash = (53 * hash) + getSynonymsList().hashCode(); + hash = (37 * hash) + DATA_STORE_FIELD_NUMBER; + hash = (53 * hash) + getDataStore().hashCode(); + if (hasSearchLinkPromotion()) { + hash = (37 * hash) + SEARCH_LINK_PROMOTION_FIELD_NUMBER; + hash = (53 * hash) + getSearchLinkPromotion().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.PromoteAction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.PromoteAction 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.v1beta.Control.SynonymsAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.PromoteAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.PromoteAction parseFrom( 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.v1beta.Control.SynonymsAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.PromoteAction parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.PromoteAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.PromoteAction parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.PromoteAction parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseDelimitedFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.PromoteAction parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseDelimitedFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.PromoteAction parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.PromoteAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction parseFrom( + public static com.google.cloud.discoveryengine.v1beta.Control.PromoteAction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3040,7 +7755,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction prototype) { + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -3059,63 +7774,77 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
            -     * Creates a set of terms that will act as synonyms of one another.
            +     * Promote certain links based on some trigger queries.
                  *
            -     * Example: "happy" will also be considered as "glad", "glad" will also be
            -     * considered as "happy".
            +     * Example: Promote shoe store link when searching for `shoe` keyword.
            +     * The link can be outside of associated data store.
                  * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Control.SynonymsAction} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Control.PromoteAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Control.SynonymsAction) - com.google.cloud.discoveryengine.v1beta.Control.SynonymsActionOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Control.PromoteAction) + com.google.cloud.discoveryengine.v1beta.Control.PromoteActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_SynonymsAction_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_Control_PromoteAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_SynonymsAction_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_Control_PromoteAction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction.class, - com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction.Builder.class); + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction.class, + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction.Builder.class); } - // Construct using com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction.newBuilder() - private Builder() {} + // Construct using com.google.cloud.discoveryengine.v1beta.Control.PromoteAction.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSearchLinkPromotionFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - synonyms_ = com.google.protobuf.LazyStringArrayList.emptyList(); + dataStore_ = ""; + searchLinkPromotion_ = null; + if (searchLinkPromotionBuilder_ != null) { + searchLinkPromotionBuilder_.dispose(); + searchLinkPromotionBuilder_ = null; + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1beta.ControlProto - .internal_static_google_cloud_discoveryengine_v1beta_Control_SynonymsAction_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_Control_PromoteAction_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction + public com.google.cloud.discoveryengine.v1beta.Control.PromoteAction getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction.getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.Control.PromoteAction.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction build() { - com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction result = buildPartial(); + public com.google.cloud.discoveryengine.v1beta.Control.PromoteAction build() { + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3123,9 +7852,9 @@ public com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction build() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction buildPartial() { - com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction result = - new com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction(this); + public com.google.cloud.discoveryengine.v1beta.Control.PromoteAction buildPartial() { + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction result = + new com.google.cloud.discoveryengine.v1beta.Control.PromoteAction(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -3134,18 +7863,26 @@ public com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction buildParti } private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction result) { + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - synonyms_.makeImmutable(); - result.synonyms_ = synonyms_; + result.dataStore_ = dataStore_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.searchLinkPromotion_ = + searchLinkPromotionBuilder_ == null + ? searchLinkPromotion_ + : searchLinkPromotionBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction) other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.Control.PromoteAction) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Control.PromoteAction) other); } else { super.mergeFrom(other); return this; @@ -3153,20 +7890,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction other) { + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction other) { if (other - == com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction.getDefaultInstance()) + == com.google.cloud.discoveryengine.v1beta.Control.PromoteAction.getDefaultInstance()) return this; - if (!other.synonyms_.isEmpty()) { - if (synonyms_.isEmpty()) { - synonyms_ = other.synonyms_; - bitField0_ |= 0x00000001; - } else { - ensureSynonymsIsMutable(); - synonyms_.addAll(other.synonyms_); - } + if (!other.getDataStore().isEmpty()) { + dataStore_ = other.dataStore_; + bitField0_ |= 0x00000001; onChanged(); } + if (other.hasSearchLinkPromotion()) { + mergeSearchLinkPromotion(other.getSearchLinkPromotion()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3195,11 +7930,17 @@ public Builder mergeFrom( break; case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureSynonymsIsMutable(); - synonyms_.add(s); + dataStore_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + input.readMessage( + internalGetSearchLinkPromotionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3219,140 +7960,196 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.LazyStringArrayList synonyms_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureSynonymsIsMutable() { - if (!synonyms_.isModifiable()) { - synonyms_ = new com.google.protobuf.LazyStringArrayList(synonyms_); - } - bitField0_ |= 0x00000001; - } + private java.lang.Object dataStore_ = ""; /** * * *
            -       * Defines a set of synonyms.
            -       * Can specify up to 100 synonyms.
            -       * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            -       * thrown.
            +       * Required. Data store with which this promotion is attached to.
                    * 
            * - * repeated string synonyms = 1; + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return A list containing the synonyms. + * @return The dataStore. */ - public com.google.protobuf.ProtocolStringList getSynonymsList() { - synonyms_.makeImmutable(); - return synonyms_; + public java.lang.String getDataStore() { + java.lang.Object ref = dataStore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dataStore_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
            -       * Defines a set of synonyms.
            -       * Can specify up to 100 synonyms.
            -       * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            -       * thrown.
            +       * Required. Data store with which this promotion is attached to.
                    * 
            * - * repeated string synonyms = 1; + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The count of synonyms. + * @return The bytes for dataStore. */ - public int getSynonymsCount() { - return synonyms_.size(); + public com.google.protobuf.ByteString getDataStoreBytes() { + java.lang.Object ref = dataStore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dataStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
            -       * Defines a set of synonyms.
            -       * Can specify up to 100 synonyms.
            -       * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            -       * thrown.
            +       * Required. Data store with which this promotion is attached to.
                    * 
            * - * repeated string synonyms = 1; + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @param index The index of the element to return. - * @return The synonyms at the given index. + * @param value The dataStore to set. + * @return This builder for chaining. */ - public java.lang.String getSynonyms(int index) { - return synonyms_.get(index); + public Builder setDataStore(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataStore_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } /** * * *
            -       * Defines a set of synonyms.
            -       * Can specify up to 100 synonyms.
            -       * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            -       * thrown.
            +       * Required. Data store with which this promotion is attached to.
                    * 
            * - * repeated string synonyms = 1; + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @param index The index of the value to return. - * @return The bytes of the synonyms at the given index. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString getSynonymsBytes(int index) { - return synonyms_.getByteString(index); + public Builder clearDataStore() { + dataStore_ = getDefaultInstance().getDataStore(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } /** * * *
            -       * Defines a set of synonyms.
            -       * Can specify up to 100 synonyms.
            -       * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            -       * thrown.
            +       * Required. Data store with which this promotion is attached to.
                    * 
            * - * repeated string synonyms = 1; + * + * string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @param index The index to set the value at. - * @param value The synonyms to set. + * @param value The bytes for dataStore to set. * @return This builder for chaining. */ - public Builder setSynonyms(int index, java.lang.String value) { + public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - ensureSynonymsIsMutable(); - synonyms_.set(index, value); + checkByteStringIsUtf8(value); + dataStore_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } + private com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion searchLinkPromotion_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion, + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.Builder, + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotionOrBuilder> + searchLinkPromotionBuilder_; + /** * * *
            -       * Defines a set of synonyms.
            -       * Can specify up to 100 synonyms.
            -       * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            -       * thrown.
            +       * Required. Promotion attached to this action.
                    * 
            * - * repeated string synonyms = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED]; + * * - * @param value The synonyms to add. - * @return This builder for chaining. + * @return Whether the searchLinkPromotion field is set. */ - public Builder addSynonyms(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public boolean hasSearchLinkPromotion() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +       * Required. Promotion attached to this action.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The searchLinkPromotion. + */ + public com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion getSearchLinkPromotion() { + if (searchLinkPromotionBuilder_ == null) { + return searchLinkPromotion_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.getDefaultInstance() + : searchLinkPromotion_; + } else { + return searchLinkPromotionBuilder_.getMessage(); } - ensureSynonymsIsMutable(); - synonyms_.add(value); - bitField0_ |= 0x00000001; + } + + /** + * + * + *
            +       * Required. Promotion attached to this action.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSearchLinkPromotion( + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion value) { + if (searchLinkPromotionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchLinkPromotion_ = value; + } else { + searchLinkPromotionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3361,21 +8158,21 @@ public Builder addSynonyms(java.lang.String value) { * * *
            -       * Defines a set of synonyms.
            -       * Can specify up to 100 synonyms.
            -       * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            -       * thrown.
            +       * Required. Promotion attached to this action.
                    * 
            * - * repeated string synonyms = 1; - * - * @param values The synonyms to add. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addAllSynonyms(java.lang.Iterable values) { - ensureSynonymsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, synonyms_); - bitField0_ |= 0x00000001; + public Builder setSearchLinkPromotion( + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.Builder builderForValue) { + if (searchLinkPromotionBuilder_ == null) { + searchLinkPromotion_ = builderForValue.build(); + } else { + searchLinkPromotionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3384,20 +8181,53 @@ public Builder addAllSynonyms(java.lang.Iterable values) { * * *
            -       * Defines a set of synonyms.
            -       * Can specify up to 100 synonyms.
            -       * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            -       * thrown.
            +       * Required. Promotion attached to this action.
                    * 
            * - * repeated string synonyms = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSearchLinkPromotion( + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion value) { + if (searchLinkPromotionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && searchLinkPromotion_ != null + && searchLinkPromotion_ + != com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion + .getDefaultInstance()) { + getSearchLinkPromotionBuilder().mergeFrom(value); + } else { + searchLinkPromotion_ = value; + } + } else { + searchLinkPromotionBuilder_.mergeFrom(value); + } + if (searchLinkPromotion_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** * - * @return This builder for chaining. + * + *
            +       * Required. Promotion attached to this action.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder clearSynonyms() { - synonyms_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + public Builder clearSearchLinkPromotion() { + bitField0_ = (bitField0_ & ~0x00000002); + searchLinkPromotion_ = null; + if (searchLinkPromotionBuilder_ != null) { + searchLinkPromotionBuilder_.dispose(); + searchLinkPromotionBuilder_ = null; + } onChanged(); return this; } @@ -3406,49 +8236,90 @@ public Builder clearSynonyms() { * * *
            -       * Defines a set of synonyms.
            -       * Can specify up to 100 synonyms.
            -       * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
            -       * thrown.
            +       * Required. Promotion attached to this action.
                    * 
            * - * repeated string synonyms = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.Builder + getSearchLinkPromotionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSearchLinkPromotionFieldBuilder().getBuilder(); + } + + /** * - * @param value The bytes of the synonyms to add. - * @return This builder for chaining. + * + *
            +       * Required. Promotion attached to this action.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchLinkPromotionOrBuilder + getSearchLinkPromotionOrBuilder() { + if (searchLinkPromotionBuilder_ != null) { + return searchLinkPromotionBuilder_.getMessageOrBuilder(); + } else { + return searchLinkPromotion_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.getDefaultInstance() + : searchLinkPromotion_; + } + } + + /** + * + * + *
            +       * Required. Promotion attached to this action.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotion = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addSynonymsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion, + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.Builder, + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotionOrBuilder> + internalGetSearchLinkPromotionFieldBuilder() { + if (searchLinkPromotionBuilder_ == null) { + searchLinkPromotionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion, + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.Builder, + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotionOrBuilder>( + getSearchLinkPromotion(), getParentForChildren(), isClean()); + searchLinkPromotion_ = null; } - checkByteStringIsUtf8(value); - ensureSynonymsIsMutable(); - synonyms_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; + return searchLinkPromotionBuilder_; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Control.SynonymsAction) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Control.PromoteAction) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Control.SynonymsAction) - private static final com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Control.PromoteAction) + private static final com.google.cloud.discoveryengine.v1beta.Control.PromoteAction DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Control.PromoteAction(); } - public static com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction + public static com.google.cloud.discoveryengine.v1beta.Control.PromoteAction 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 SynonymsAction parsePartialFrom( + public PromoteAction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3468,17 +8339,17 @@ public SynonymsAction 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.discoveryengine.v1beta.Control.SynonymsAction + public com.google.cloud.discoveryengine.v1beta.Control.PromoteAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -3497,6 +8368,7 @@ public enum ActionCase FILTER_ACTION(7), REDIRECT_ACTION(9), SYNONYMS_ACTION(10), + PROMOTE_ACTION(15), ACTION_NOT_SET(0); private final int value; @@ -3524,6 +8396,8 @@ public static ActionCase forNumber(int value) { return REDIRECT_ACTION; case 10: return SYNONYMS_ACTION; + case 15: + return PROMOTE_ACTION; case 0: return ACTION_NOT_SET; default: @@ -3763,6 +8637,61 @@ public com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction getSynonym return com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction.getDefaultInstance(); } + public static final int PROMOTE_ACTION_FIELD_NUMBER = 15; + + /** + * + * + *
            +   * Promote certain links based on predefined trigger queries.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Control.PromoteAction promote_action = 15; + * + * @return Whether the promoteAction field is set. + */ + @java.lang.Override + public boolean hasPromoteAction() { + return actionCase_ == 15; + } + + /** + * + * + *
            +   * Promote certain links based on predefined trigger queries.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Control.PromoteAction promote_action = 15; + * + * @return The promoteAction. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.PromoteAction getPromoteAction() { + if (actionCase_ == 15) { + return (com.google.cloud.discoveryengine.v1beta.Control.PromoteAction) action_; + } + return com.google.cloud.discoveryengine.v1beta.Control.PromoteAction.getDefaultInstance(); + } + + /** + * + * + *
            +   * Promote certain links based on predefined trigger queries.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Control.PromoteAction promote_action = 15; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.PromoteActionOrBuilder + getPromoteActionOrBuilder() { + if (actionCase_ == 15) { + return (com.google.cloud.discoveryengine.v1beta.Control.PromoteAction) action_; + } + return com.google.cloud.discoveryengine.v1beta.Control.PromoteAction.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -4296,6 +9225,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 10, (com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction) action_); } + if (actionCase_ == 15) { + output.writeMessage( + 15, (com.google.cloud.discoveryengine.v1beta.Control.PromoteAction) action_); + } getUnknownFields().writeTo(output); } @@ -4359,6 +9292,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 10, (com.google.cloud.discoveryengine.v1beta.Control.SynonymsAction) action_); } + if (actionCase_ == 15) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, (com.google.cloud.discoveryengine.v1beta.Control.PromoteAction) action_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4396,6 +9334,9 @@ public boolean equals(final java.lang.Object obj) { case 10: if (!getSynonymsAction().equals(other.getSynonymsAction())) return false; break; + case 15: + if (!getPromoteAction().equals(other.getPromoteAction())) return false; + break; case 0: default: } @@ -4445,6 +9386,10 @@ public int hashCode() { hash = (37 * hash) + SYNONYMS_ACTION_FIELD_NUMBER; hash = (53 * hash) + getSynonymsAction().hashCode(); break; + case 15: + hash = (37 * hash) + PROMOTE_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getPromoteAction().hashCode(); + break; case 0: default: } @@ -4603,6 +9548,9 @@ public Builder clear() { if (synonymsActionBuilder_ != null) { synonymsActionBuilder_.clear(); } + if (promoteActionBuilder_ != null) { + promoteActionBuilder_.clear(); + } name_ = ""; displayName_ = ""; associatedServingConfigIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); @@ -4614,7 +9562,7 @@ public Builder clear() { conditions_ = null; conditionsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); actionCase_ = 0; action_ = null; return this; @@ -4656,9 +9604,9 @@ public com.google.cloud.discoveryengine.v1beta.Control buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.discoveryengine.v1beta.Control result) { if (conditionsBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { conditions_ = java.util.Collections.unmodifiableList(conditions_); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); } result.conditions_ = conditions_; } else { @@ -4668,20 +9616,20 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Control result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.displayName_ = displayName_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { associatedServingConfigIds_.makeImmutable(); result.associatedServingConfigIds_ = associatedServingConfigIds_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.solutionType_ = solutionType_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { useCases_.makeImmutable(); result.useCases_ = useCases_; } @@ -4702,6 +9650,9 @@ private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.Control if (actionCase_ == 10 && synonymsActionBuilder_ != null) { result.action_ = synonymsActionBuilder_.build(); } + if (actionCase_ == 15 && promoteActionBuilder_ != null) { + result.action_ = promoteActionBuilder_.build(); + } } @java.lang.Override @@ -4719,18 +9670,18 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Control other) return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (!other.associatedServingConfigIds_.isEmpty()) { if (associatedServingConfigIds_.isEmpty()) { associatedServingConfigIds_ = other.associatedServingConfigIds_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } else { ensureAssociatedServingConfigIdsIsMutable(); associatedServingConfigIds_.addAll(other.associatedServingConfigIds_); @@ -4744,7 +9695,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Control other) if (useCases_.isEmpty()) { useCases_ = other.useCases_; useCases_.makeImmutable(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } else { ensureUseCasesIsMutable(); useCases_.addAll(other.useCases_); @@ -4755,7 +9706,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Control other) if (!other.conditions_.isEmpty()) { if (conditions_.isEmpty()) { conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensureConditionsIsMutable(); conditions_.addAll(other.conditions_); @@ -4768,7 +9719,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Control other) conditionsBuilder_.dispose(); conditionsBuilder_ = null; conditions_ = other.conditions_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); conditionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetConditionsFieldBuilder() @@ -4799,6 +9750,11 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Control other) mergeSynonymsAction(other.getSynonymsAction()); break; } + case PROMOTE_ACTION: + { + mergePromoteAction(other.getPromoteAction()); + break; + } case ACTION_NOT_SET: { break; @@ -4833,13 +9789,13 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 18 case 26: @@ -4852,7 +9808,7 @@ public Builder mergeFrom( case 32: { solutionType_ = input.readEnum(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 32 case 42: @@ -4915,6 +9871,13 @@ public Builder mergeFrom( actionCase_ = 10; break; } // case 82 + case 122: + { + input.readMessage( + internalGetPromoteActionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 15; + break; + } // case 122 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5866,6 +10829,231 @@ public Builder clearSynonymsAction() { return synonymsActionBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction, + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction.Builder, + com.google.cloud.discoveryengine.v1beta.Control.PromoteActionOrBuilder> + promoteActionBuilder_; + + /** + * + * + *
            +     * Promote certain links based on predefined trigger queries.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Control.PromoteAction promote_action = 15; + * + * @return Whether the promoteAction field is set. + */ + @java.lang.Override + public boolean hasPromoteAction() { + return actionCase_ == 15; + } + + /** + * + * + *
            +     * Promote certain links based on predefined trigger queries.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Control.PromoteAction promote_action = 15; + * + * @return The promoteAction. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.PromoteAction getPromoteAction() { + if (promoteActionBuilder_ == null) { + if (actionCase_ == 15) { + return (com.google.cloud.discoveryengine.v1beta.Control.PromoteAction) action_; + } + return com.google.cloud.discoveryengine.v1beta.Control.PromoteAction.getDefaultInstance(); + } else { + if (actionCase_ == 15) { + return promoteActionBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.Control.PromoteAction.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Promote certain links based on predefined trigger queries.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Control.PromoteAction promote_action = 15; + */ + public Builder setPromoteAction( + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction value) { + if (promoteActionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + promoteActionBuilder_.setMessage(value); + } + actionCase_ = 15; + return this; + } + + /** + * + * + *
            +     * Promote certain links based on predefined trigger queries.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Control.PromoteAction promote_action = 15; + */ + public Builder setPromoteAction( + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction.Builder builderForValue) { + if (promoteActionBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + promoteActionBuilder_.setMessage(builderForValue.build()); + } + actionCase_ = 15; + return this; + } + + /** + * + * + *
            +     * Promote certain links based on predefined trigger queries.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Control.PromoteAction promote_action = 15; + */ + public Builder mergePromoteAction( + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction value) { + if (promoteActionBuilder_ == null) { + if (actionCase_ == 15 + && action_ + != com.google.cloud.discoveryengine.v1beta.Control.PromoteAction + .getDefaultInstance()) { + action_ = + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction.newBuilder( + (com.google.cloud.discoveryengine.v1beta.Control.PromoteAction) action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 15) { + promoteActionBuilder_.mergeFrom(value); + } else { + promoteActionBuilder_.setMessage(value); + } + } + actionCase_ = 15; + return this; + } + + /** + * + * + *
            +     * Promote certain links based on predefined trigger queries.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Control.PromoteAction promote_action = 15; + */ + public Builder clearPromoteAction() { + if (promoteActionBuilder_ == null) { + if (actionCase_ == 15) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 15) { + actionCase_ = 0; + action_ = null; + } + promoteActionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Promote certain links based on predefined trigger queries.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Control.PromoteAction promote_action = 15; + */ + public com.google.cloud.discoveryengine.v1beta.Control.PromoteAction.Builder + getPromoteActionBuilder() { + return internalGetPromoteActionFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Promote certain links based on predefined trigger queries.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Control.PromoteAction promote_action = 15; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Control.PromoteActionOrBuilder + getPromoteActionOrBuilder() { + if ((actionCase_ == 15) && (promoteActionBuilder_ != null)) { + return promoteActionBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 15) { + return (com.google.cloud.discoveryengine.v1beta.Control.PromoteAction) action_; + } + return com.google.cloud.discoveryengine.v1beta.Control.PromoteAction.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Promote certain links based on predefined trigger queries.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Control.PromoteAction promote_action = 15; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction, + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction.Builder, + com.google.cloud.discoveryengine.v1beta.Control.PromoteActionOrBuilder> + internalGetPromoteActionFieldBuilder() { + if (promoteActionBuilder_ == null) { + if (!(actionCase_ == 15)) { + action_ = + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction.getDefaultInstance(); + } + promoteActionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction, + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction.Builder, + com.google.cloud.discoveryengine.v1beta.Control.PromoteActionOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.Control.PromoteAction) action_, + getParentForChildren(), + isClean()); + action_ = null; + } + actionCase_ = 15; + onChanged(); + return promoteActionBuilder_; + } + private java.lang.Object name_ = ""; /** @@ -5934,7 +11122,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -5953,7 +11141,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -5977,7 +11165,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -6056,7 +11244,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -6077,7 +11265,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -6103,7 +11291,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -6116,7 +11304,7 @@ private void ensureAssociatedServingConfigIdsIsMutable() { associatedServingConfigIds_ = new com.google.protobuf.LazyStringArrayList(associatedServingConfigIds_); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; } /** @@ -6221,7 +11409,7 @@ public Builder setAssociatedServingConfigIds(int index, java.lang.String value) } ensureAssociatedServingConfigIdsIsMutable(); associatedServingConfigIds_.set(index, value); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6248,7 +11436,7 @@ public Builder addAssociatedServingConfigIds(java.lang.String value) { } ensureAssociatedServingConfigIdsIsMutable(); associatedServingConfigIds_.add(value); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6272,7 +11460,7 @@ public Builder addAssociatedServingConfigIds(java.lang.String value) { public Builder addAllAssociatedServingConfigIds(java.lang.Iterable values) { ensureAssociatedServingConfigIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, associatedServingConfigIds_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -6294,7 +11482,7 @@ public Builder addAllAssociatedServingConfigIds(java.lang.Iterable values) java.util.Collections.emptyList(); private void ensureConditionsIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { + if (!((bitField0_ & 0x00000400) != 0)) { conditions_ = new java.util.ArrayList(conditions_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } } @@ -7036,7 +12224,7 @@ public Builder addAllConditions( public Builder clearConditions() { if (conditionsBuilder_ == null) { conditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { conditionsBuilder_.clear(); @@ -7197,7 +12385,7 @@ public com.google.cloud.discoveryengine.v1beta.Condition.Builder addConditionsBu com.google.cloud.discoveryengine.v1beta.Condition, com.google.cloud.discoveryengine.v1beta.Condition.Builder, com.google.cloud.discoveryengine.v1beta.ConditionOrBuilder>( - conditions_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); + conditions_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); conditions_ = null; } return conditionsBuilder_; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlOrBuilder.java index 25fbeb9460c3..b0460e565881 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlOrBuilder.java @@ -179,6 +179,44 @@ public interface ControlOrBuilder com.google.cloud.discoveryengine.v1beta.Control.SynonymsActionOrBuilder getSynonymsActionOrBuilder(); + /** + * + * + *
            +   * Promote certain links based on predefined trigger queries.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Control.PromoteAction promote_action = 15; + * + * @return Whether the promoteAction field is set. + */ + boolean hasPromoteAction(); + + /** + * + * + *
            +   * Promote certain links based on predefined trigger queries.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Control.PromoteAction promote_action = 15; + * + * @return The promoteAction. + */ + com.google.cloud.discoveryengine.v1beta.Control.PromoteAction getPromoteAction(); + + /** + * + * + *
            +   * Promote certain links based on predefined trigger queries.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Control.PromoteAction promote_action = 15; + */ + com.google.cloud.discoveryengine.v1beta.Control.PromoteActionOrBuilder + getPromoteActionOrBuilder(); + /** * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlProto.java index f9c873a9355c..703495a5abbe 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlProto.java @@ -60,6 +60,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_ControlPoint_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_ControlPoint_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_Control_FilterAction_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -72,6 +80,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_Control_SynonymsAction_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_Control_SynonymsAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Control_PromoteAction_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Control_PromoteAction_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -97,7 +109,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "full_match\030\002 \001(\010\032i\n" + "\tTimeRange\022.\n\n" + "start_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022,\n" - + "\010end_time\030\002 \001(\0132\032.google.protobuf.Timestamp\"\260\n\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.Timestamp\"\355\022\n" + "\007Control\022P\n" + "\014boost_action\030\006 \001(\01328.google.cloud." + "discoveryengine.v1beta.Control.BoostActionH\000\022R\n\r" @@ -106,20 +118,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017redirect_action\030\t \001(\0132;.goog" + "le.cloud.discoveryengine.v1beta.Control.RedirectActionH\000\022V\n" + "\017synonyms_action\030\n" - + " \001(\0132;.google.cloud.discoveryengine.v1beta.Control.SynonymsActionH\000\022\021\n" + + " \001(\0132;.google.cloud.discoveryengine.v1beta.Control.SynonymsActionH\000\022T\n" + + "\016promote_action\030\017" + + " \001(\0132:.google.cloud.discoveryengine.v1beta.Control.PromoteActionH\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_ids\030\003 \003(\tB\003\340A\003\022P\n\r" - + "solution_type\030\004" - + " \001(\01621.google.cloud.discoveryengine.v1beta.SolutionTypeB\006\340A\002\340A\005\022E\n" + + "solution_type\030\004 \001(\01621.google.cloud.d" + + "iscoveryengine.v1beta.SolutionTypeB\006\340A\002\340A\005\022E\n" + "\tuse_cases\030\010" + " \003(\01622.google.cloud.discoveryengine.v1beta.SearchUseCase\022B\n\n" - + "conditions\030\005 \003(\0132..google.cloud.discoveryengine.v1beta.Condition\032|\n" - + "\013BoostAction\022\022\n" - + "\005boost\030\001 \001(\002B\003\340A\002\022\023\n" + + "conditions\030\005" + + " \003(\0132..google.cloud.discoveryengine.v1beta.Condition\032\254\007\n" + + "\013BoostAction\022\032\n" + + "\013fixed_boost\030\004 \001(\002B\003\340A\001H\000\022x\n" + + "\030interpolation_boost_spec\030\005 \001(\0132O.google.cloud.disco" + + "veryengine.v1beta.Control.BoostAction.InterpolationBoostSpecB\003\340A\001H\000\022\021\n" + + "\005boost\030\001 \001(\002B\002\030\001\022\023\n" + "\006filter\030\002 \001(\tB\003\340A\002\022D\n\n" + "data_store\030\003 \001(\tB0\340A\002\372A*\n" - + "(discoveryengine.googleapis.com/DataStore\032i\n" + + "(discoveryengine.googleapis.com/DataStore\032\212\005\n" + + "\026InterpolationBoostSpec\022\027\n\n" + + "field_name\030\001 \001(\tB\003\340A\001\022z\n" + + "\016attribute_type\030\002 \001(\0162].google.cloud.discoveryen" + + "gine.v1beta.Control.BoostAction.InterpolationBoostSpec.AttributeTypeB\003\340A\001\022\202\001\n" + + "\022interpolation_type\030\003 \001(\0162a.google.cloud.di" + + "scoveryengine.v1beta.Control.BoostAction" + + ".InterpolationBoostSpec.InterpolationTypeB\003\340A\001\022y\n" + + "\016control_points\030\004 \003(\0132\\.google." + + "cloud.discoveryengine.v1beta.Control.Boo" + + "stAction.InterpolationBoostSpec.ControlPointB\003\340A\001\032G\n" + + "\014ControlPoint\022\034\n" + + "\017attribute_value\030\001 \001(\tB\003\340A\001\022\031\n" + + "\014boost_amount\030\002 \001(\002B\003\340A\001\"M\n\r" + + "AttributeType\022\036\n" + + "\032ATTRIBUTE_TYPE_UNSPECIFIED\020\000\022\r\n" + + "\tNUMERICAL\020\001\022\r\n" + + "\tFRESHNESS\020\002\"C\n" + + "\021InterpolationType\022\"\n" + + "\036INTERPOLATION_TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006LINEAR\020\001B\014\n\n" + + "boost_spec\032i\n" + "\014FilterAction\022\023\n" + "\006filter\030\001 \001(\tB\003\340A\002\022D\n\n" + "data_store\030\002 \001(\tB0\340A\002\372A*\n" @@ -127,19 +166,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016RedirectAction\022\031\n" + "\014redirect_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/{project}/loc" - + "ations/{location}/dataStores/{data_store}/controls/{control}\022kprojects/{project}" - + "/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/" - + "{control}\022dprojects/{project}/locations/" - + "{location}/collections/{collection}/engines/{engine}/controls/{control}B\010\n" + + "\010synonyms\030\001 \003(\t\032\263\001\n\r" + + "PromoteAction\022D\n\n" + + "data_store\030\001 \001(\tB0\340A\002\372A*\n" + + "(discoveryengine.googleapis.com/DataStore\022\\\n" + + "\025search_link_promotion\030\002 \001(\01328.google" + + ".cloud.discoveryengine.v1beta.SearchLinkPromotionB\003\340A\002:\323\002\352A\317\002\n" + + "&discoveryengine.googleapis.com/Control\022Rprojects/{project" + + "}/locations/{location}/dataStores/{data_store}/controls/{control}\022kprojects/{pro" + + "ject}/locations/{location}/collections/{collection}/dataStores/{data_store}/cont" + + "rols/{control}\022dprojects/{project}/locat" + + "ions/{location}/collections/{collection}/engines/{engine}/controls/{control}B\010\n" + "\006actionB\223\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB\014ControlProtoP\001ZQcloud.google.com/" - + "go/discoveryengine/apiv1beta/discoveryen" - + "ginepb;discoveryenginepb\242\002\017DISCOVERYENGI" - + "NE\252\002#Google.Cloud.DiscoveryEngine.V1Beta" - + "\312\002#Google\\Cloud\\DiscoveryEngine\\V1beta\352\002" - + "&Google::Cloud::DiscoveryEngine::V1betab\006proto3" + + "\'com.google.cloud.discoveryengine.v1betaB\014ControlProtoP\001ZQcloud.google" + + ".com/go/discoveryengine/apiv1beta/discov" + + "eryenginepb;discoveryenginepb\242\002\017DISCOVER" + + "YENGINE\252\002#Google.Cloud.DiscoveryEngine.V" + + "1Beta\312\002#Google\\Cloud\\DiscoveryEngine\\V1b" + + "eta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -184,6 +228,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FilterAction", "RedirectAction", "SynonymsAction", + "PromoteAction", "Name", "DisplayName", "AssociatedServingConfigIds", @@ -198,7 +243,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_descriptor, new java.lang.String[] { - "Boost", "Filter", "DataStore", + "FixedBoost", "InterpolationBoostSpec", "Boost", "Filter", "DataStore", "BoostSpec", + }); + internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_descriptor, + new java.lang.String[] { + "FieldName", "AttributeType", "InterpolationType", "ControlPoints", + }); + internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_ControlPoint_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_ControlPoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Control_BoostAction_InterpolationBoostSpec_ControlPoint_descriptor, + new java.lang.String[] { + "AttributeValue", "BoostAmount", }); internal_static_google_cloud_discoveryengine_v1beta_Control_FilterAction_descriptor = internal_static_google_cloud_discoveryengine_v1beta_Control_descriptor.getNestedType(1); @@ -224,6 +287,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Synonyms", }); + internal_static_google_cloud_discoveryengine_v1beta_Control_PromoteAction_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Control_descriptor.getNestedType(4); + internal_static_google_cloud_discoveryengine_v1beta_Control_PromoteAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Control_PromoteAction_descriptor, + new java.lang.String[] { + "DataStore", "SearchLinkPromotion", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlServiceProto.java index 477083127ae2..1b9bdc62c0ea 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ControlServiceProto.java @@ -105,7 +105,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\003\340A\001\"o\n" + "\024ListControlsResponse\022>\n" + "\010controls\030\001 \003(\0132,.google.cloud.discoveryengine.v1beta.Control\022\027\n" - + "\017next_page_token\030\002 \001(\t2\305\017\n" + + "\017next_page_token\030\002 \001(\t2\303\020\n" + "\016ControlService\022\223\003\n\r" + "CreateControl\0229.google.cloud.discoveryengi" + "ne.v1beta.CreateControlRequest\032,.google." @@ -140,14 +140,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "t=projects/*/locations/*/dataStores/*}/controlsZM\022K/v1beta/{parent=projects/*/lo" + "cations/*/collections/*/dataStores/*}/controlsZJ\022H/v1beta/{parent=projects/*/loc" + "ations/*/collections/*/engines/*}/contro" - + "ls\032R\312A\036discoveryengine.googleapis.com\322A." - + "https://www.googleapis.com/auth/cloud-platformB\232\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB\023ControlServiceProtoP\001ZQcloud" - + ".google.com/go/discoveryengine/apiv1beta" - + "/discoveryenginepb;discoveryenginepb\242\002\017D" - + "ISCOVERYENGINE\252\002#Google.Cloud.DiscoveryE" - + "ngine.V1Beta\312\002#Google\\Cloud\\DiscoveryEng" - + "ine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" + + "ls\032\317\001\312A\036discoveryengine.googleapis.com\322A" + + "\252\001https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth" + + "/discoveryengine.readwrite,https://www.g" + + "oogleapis.com/auth/discoveryengine.serving.readwriteB\232\002\n" + + "\'com.google.cloud.discoveryengine.v1betaB\023ControlServiceProtoP\001Z" + + "Qcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryengine" + + "pb\242\002\017DISCOVERYENGINE\252\002#Google.Cloud.Disc" + + "overyEngine.V1Beta\312\002#Google\\Cloud\\Discov" + + "eryEngine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java index c52fe958bd5e..f4a74b4fec85 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ConversationalSearchServiceProto.java @@ -84,6 +84,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_SafetySetting_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_SafetySetting_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_RelatedQuestionsSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -104,6 +108,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_PromptSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_PromptSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_MultimodalSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_MultimodalSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -156,6 +164,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_ModelSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_ModelSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_DocumentMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_DocumentMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_UserLabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -207,24 +235,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pi/annotations.proto\032\027google/api/client." + "proto\032\037google/api/field_behavior.proto\032\031" + "google/api/resource.proto\0320google/cloud/discoveryengine/v1beta/answer.proto\0326goo" - + "gle/cloud/discoveryengine/v1beta/conversation.proto\0328google/cloud/discoveryengin" - + "e/v1beta/search_service.proto\0321google/cl" - + "oud/discoveryengine/v1beta/session.proto\032\033google/protobuf/empty.proto\032" + + "gle/cloud/discoveryengine/v1beta/conversation.proto\0320google/cloud/discoveryengin" + + "e/v1beta/safety.proto\0328google/cloud/discoveryengine/v1beta/search_service.proto\032" + + "1google/cloud/discoveryengine/v1beta/ses" + + "sion.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\"\261\005\n" + "\033ConverseConversationRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + "+discoveryengine.googleapis.com/Conversation\022B\n" - + "\005query\030\002" - + " \001(\0132..google.cloud.discoveryengine.v1beta.TextInputB\003\340A\002\022I\n" + + "\005query\030\002 \001(\0132..google.clo" + + "ud.discoveryengine.v1beta.TextInputB\003\340A\002\022I\n" + "\016serving_config\030\003 \001(\tB1\372A.\n" + ",discoveryengine.googleapis.com/ServingConfig\022G\n" + "\014conversation\030\005" + " \001(\01321.google.cloud.discoveryengine.v1beta.Conversation\022\023\n" + "\013safe_search\030\006 \001(\010\022e\n" - + "\013user_labels\030\007 \003(\0132P.google.cloud.disc" - + "overyengine.v1beta.ConverseConversationRequest.UserLabelsEntry\022f\n" - + "\014summary_spec\030\010 \001(\0132P.google.cloud.discoveryengine.v1be" - + "ta.SearchRequest.ContentSearchSpec.SummarySpec\022\016\n" + + "\013user_labels\030\007 \003(\0132P.google." + + "cloud.discoveryengine.v1beta.ConverseConversationRequest.UserLabelsEntry\022f\n" + + "\014summary_spec\030\010 \001(\0132P.google.cloud.discoverye" + + "ngine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec\022\016\n" + "\006filter\030\t \001(\t\022P\n\n" + "boost_spec\030\n" + " \001(\0132<.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec\0321\n" @@ -233,19 +262,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001\"\227\002\n" + "\034ConverseConversationResponse\0229\n" + "\005reply\030\001 \001(\0132*.google.cloud.discoveryengine.v1beta.Reply\022G\n" - + "\014conversation\030\002 \001(\01321.google.c" - + "loud.discoveryengine.v1beta.Conversation\022\031\n" + + "\014conversation\030\002 \001(\0132" + + "1.google.cloud.discoveryengine.v1beta.Conversation\022\031\n" + "\021related_questions\030\006 \003(\t\022X\n" - + "\016search_results\030\003 \003(\0132@.google.cloud.discoveryengi" - + "ne.v1beta.SearchResponse.SearchResult\"\253\001\n" + + "\016search_results\030\003 \003(\0132@.google.cloud.dis" + + "coveryengine.v1beta.SearchResponse.SearchResult\"\253\001\n" + "\031CreateConversationRequest\022@\n" + "\006parent\030\001 \001(\tB0\340A\002\372A*\n" + "(discoveryengine.googleapis.com/DataStore\022L\n" - + "\014conversation\030\002 \001(\01321.go" - + "ogle.cloud.discoveryengine.v1beta.ConversationB\003\340A\002\"\232\001\n" + + "\014conversation\030\002" + + " \001(\01321.google.cloud.discoveryengine.v1beta.ConversationB\003\340A\002\"\232\001\n" + "\031UpdateConversationRequest\022L\n" - + "\014conversation\030\001 \001(\01321.google.cloud.d" - + "iscoveryengine.v1beta.ConversationB\003\340A\002\022/\n" + + "\014conversation\030\001 \001(\01321.goog" + + "le.cloud.discoveryengine.v1beta.ConversationB\003\340A\002\022/\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"^\n" + "\031DeleteConversationRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" @@ -261,9 +290,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\t\022\020\n" + "\010order_by\030\005 \001(\t\"~\n" + "\031ListConversationsResponse\022H\n\r" - + "conversations\030\001" - + " \003(\01321.google.cloud.discoveryengine.v1beta.Conversation\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\305&\n" + + "conversations\030\001 \003(\01321.google.clo" + + "ud.discoveryengine.v1beta.Conversation\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\2715\n" + "\022AnswerQueryRequest\022L\n" + "\016serving_config\030\001 \001(\tB4\340A\002\372A.\n" + ",discoveryengine.googleapis.com/ServingConfig\022>\n" @@ -271,94 +300,120 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132*.google.cloud.discoveryengine.v1beta.QueryB\003\340A\002\022<\n" + "\007session\030\003 \001(\tB+\372A(\n" + "&discoveryengine.googleapis.com/Session\022W\n" - + "\013safety_spec\030\004 \001(\0132B.google.cloud.dis" - + "coveryengine.v1beta.AnswerQueryRequest.SafetySpec\022l\n" - + "\026related_questions_spec\030\005 \001(\0132L.google.cloud.discoveryengine.v1beta." - + "AnswerQueryRequest.RelatedQuestionsSpec\022b\n" - + "\016grounding_spec\030\006 \001(\0132E.google.cloud.d" - + "iscoveryengine.v1beta.AnswerQueryRequest.GroundingSpecB\003\340A\001\022l\n" - + "\026answer_generation_spec\030\007 \001(\0132L.google.cloud.discoveryengi" - + "ne.v1beta.AnswerQueryRequest.AnswerGenerationSpec\022W\n" - + "\013search_spec\030\010 \001(\0132B.google." - + "cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec\022p\n" - + "\030query_understanding_spec\030\t \001(\0132N.google.cloud.discoveryeng" - + "ine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec\022\035\n" + + "\013safety_spec\030\004 \001(\0132B.google" + + ".cloud.discoveryengine.v1beta.AnswerQueryRequest.SafetySpec\022l\n" + + "\026related_questions_spec\030\005 \001(\0132L.google.cloud.discoveryengi" + + "ne.v1beta.AnswerQueryRequest.RelatedQuestionsSpec\022b\n" + + "\016grounding_spec\030\006 \001(\0132E.goog" + + "le.cloud.discoveryengine.v1beta.AnswerQueryRequest.GroundingSpecB\003\340A\001\022l\n" + + "\026answer_generation_spec\030\007 \001(\0132L.google.cloud.dis" + + "coveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec\022W\n" + + "\013search_spec\030\010 \001(\013" + + "2B.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec\022p\n" + + "\030query_understanding_spec\030\t \001(\0132N.google.cloud.di" + + "scoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec\022\035\n" + "\021asynchronous_mode\030\n" + " \001(\010B\002\030\001\022\026\n" + "\016user_pseudo_id\030\014 \001(\t\022\\\n" + "\013user_labels\030\r" - + " \003(\0132G.google.cloud.discoveryengine." - + "v1beta.AnswerQueryRequest.UserLabelsEntry\032\034\n\n" + + " \003(\0132G.google.cloud.discov" + + "eryengine.v1beta.AnswerQueryRequest.UserLabelsEntry\022_\n\r" + + "end_user_spec\030\016 \001(\0132C.goo" + + "gle.cloud.discoveryengine.v1beta.AnswerQueryRequest.EndUserSpecB\003\340A\001\032\205\004\n\n" + "SafetySpec\022\016\n" - + "\006enable\030\001 \001(\010\032&\n" + + "\006enable\030\001 \001(\010\022n\n" + + "\017safety_settings\030\002 \003(\0132P.google.cloud.discoveryengine.v1be" + + "ta.AnswerQueryRequest.SafetySpec.SafetySettingB\003\340A\001\032\366\002\n\r" + + "SafetySetting\022H\n" + + "\010category\030\001" + + " \001(\01621.google.cloud.discoveryengine.v1beta.HarmCategoryB\003\340A\002\022{\n" + + "\tthreshold\030\002 \001(\0162c.google.cloud.discoveryengine.v1beta" + + ".AnswerQueryRequest.SafetySpec.SafetySetting.HarmBlockThresholdB\003\340A\002\"\235\001\n" + + "\022HarmBlockThreshold\022$\n" + + " HARM_BLOCK_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\n" + + "BLOCK_NONE\020\004\022\007\n" + + "\003OFF\020\005\032&\n" + "\024RelatedQuestionsSpec\022\016\n" + "\006enable\030\001 \001(\010\032\222\002\n\r" + "GroundingSpec\022\'\n" + "\032include_grounding_supports\030\002 \001(\010B\003\340A\001\022r\n" - + "\017filtering_level\030\003 \001(\0162T.google.cloud.discoveryengine.v1beta.Answer" - + "QueryRequest.GroundingSpec.FilteringLevelB\003\340A\001\"d\n" + + "\017filtering_level\030\003 \001(\0162T.google.cloud.discoveryengine.v1beta.AnswerQue" + + "ryRequest.GroundingSpec.FilteringLevelB\003\340A\001\"d\n" + "\016FilteringLevel\022\037\n" + "\033FILTERING_LEVEL_UNSPECIFIED\020\000\022\027\n" + "\023FILTERING_LEVEL_LOW\020\001\022\030\n" - + "\024FILTERING_LEVEL_HIGH\020\002\032\253\004\n" + + "\024FILTERING_LEVEL_HIGH\020\002\032\271\007\n" + "\024AnswerGenerationSpec\022j\n\n" - + "model_spec\030\001 \001(\0132V.google.cloud.discoveryengine.v1beta.AnswerQu" - + "eryRequest.AnswerGenerationSpec.ModelSpec\022l\n" - + "\013prompt_spec\030\002 \001(\0132W.google.cloud.di" - + "scoveryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec\022\031\n" + + "model_spec\030\001 \001(\0132V.google.cloud.discoveryengine.v1beta.AnswerQuery" + + "Request.AnswerGenerationSpec.ModelSpec\022l\n" + + "\013prompt_spec\030\002 \001(\0132W.google.cloud.disco" + + "veryengine.v1beta.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec\022\031\n" + "\021include_citations\030\003 \001(\010\022\034\n" + "\024answer_language_code\030\004 \001(\t\022 \n" + "\030ignore_adversarial_query\030\005 \001(\010\022\'\n" + "\037ignore_non_answer_seeking_query\030\006 \001(\010\022(\n" + "\033ignore_low_relevant_content\030\007 \001(\010H\000\210\001\001\022\'\n" - + "\032ignore_jail_breaking_query\030\010 \001(\010B\003\340A\001\032\"\n" + + "\032ignore_jail_breaking_query\030\010 \001(\010B\003\340A\001\022y\n" + + "\017multimodal_spec\030\t \001(\0132[.google.cl" + + "oud.discoveryengine.v1beta.AnswerQueryRe" + + "quest.AnswerGenerationSpec.MultimodalSpecB\003\340A\001\032\"\n" + "\tModelSpec\022\025\n\r" + "model_version\030\001 \001(\t\032\036\n\n" + "PromptSpec\022\020\n" - + "\010preamble\030\001 \001(\tB\036\n" + + "\010preamble\030\001 \001(\t\032\220\002\n" + + "\016MultimodalSpec\022\202\001\n" + + "\014image_source\030\003 \001(\0162g.google.cloud.discoveryengine.v1beta.Answe" + + "rQueryRequest.AnswerGenerationSpec.MultimodalSpec.ImageSourceB\003\340A\001\"y\n" + + "\013ImageSource\022\034\n" + + "\030IMAGE_SOURCE_UNSPECIFIED\020\000\022\031\n" + + "\025ALL_AVAILABLE_SOURCES\020\001\022\025\n" + + "\021CORPUS_IMAGE_ONLY\020\002\022\032\n" + + "\026FIGURE_GENERATION_ONLY\020\003B\036\n" + "\034_ignore_low_relevant_content\032\234\022\n\n" + "SearchSpec\022h\n\r" - + "search_params\030\001 \001(\0132O.google.cloud." - + "discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParamsH\000\022q\n" - + "\022search_result_list\030\002 \001(\0132S.google.cloud.discovery" - + "engine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultListH\000\032\200\004\n" + + "search_params\030\001 \001(\0132O.google.cloud.disco" + + "veryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchParamsH\000\022q\n" + + "\022search_result_list\030\002 \001(\0132S.google.cloud.discoveryengin" + + "e.v1beta.AnswerQueryRequest.SearchSpec.SearchResultListH\000\032\200\004\n" + "\014SearchParams\022\032\n" + "\022max_return_results\030\001 \001(\005\022\016\n" + "\006filter\030\002 \001(\t\022P\n\n" - + "boost_spec\030\003 \001(\0132<.google.cloud.d" - + "iscoveryengine.v1beta.SearchRequest.BoostSpec\022\020\n" + + "boost_spec\030\003 \001(\0132<.google.cloud.discov" + + "eryengine.v1beta.SearchRequest.BoostSpec\022\020\n" + "\010order_by\030\004 \001(\t\022q\n" - + "\022search_result_mode\030\005 \001(\0162U.google.cloud.discoveryengi" - + "ne.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode\022Z\n" - + "\020data_store_specs\030\007" - + " \003(\0132@.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec\022\220\001\n" - + ")natural_language_query_understanding_spec\030\010 \001" - + "(\0132X.google.cloud.discoveryengine.v1beta" - + ".SearchRequest.NaturalLanguageQueryUnderstandingSpecB\003\340A\001\032\244\014\n" + + "\022search_result_mode\030\005 \001(\0162U.google.cloud.discoveryengine.v1" + + "beta.SearchRequest.ContentSearchSpec.SearchResultMode\022Z\n" + + "\020data_store_specs\030\007 \003(\0132" + + "@.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec\022\220\001\n" + + ")natural_language_query_understanding_spec\030\010 \001(\0132X." + + "google.cloud.discoveryengine.v1beta.Sear" + + "chRequest.NaturalLanguageQueryUnderstandingSpecB\003\340A\001\032\244\014\n" + "\020SearchResultList\022x\n" - + "\016search_results\030\001 \003(\0132`.google.cloud.di" - + "scoveryengine.v1beta.AnswerQueryRequest." - + "SearchSpec.SearchResultList.SearchResult\032\225\013\n" + + "\016search_results\030\001 \003(\0132`.google.cloud.discove" + + "ryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult\032\225\013\n" + "\014SearchResult\022\237\001\n" - + "\032unstructured_document_info\030\001 \001(\0132y.google.cloud.discoverye" - + "ngine.v1beta.AnswerQueryRequest.SearchSp" - + "ec.SearchResultList.SearchResult.UnstructuredDocumentInfoH\000\022\200\001\n\n" - + "chunk_info\030\002 \001(\0132j.google.cloud.discoveryengine.v1beta.A" - + "nswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfoH\000\032\262\006\n" + + "\032unstructured_document_info\030\001 \001(\0132y.google.cloud.discoveryengine" + + ".v1beta.AnswerQueryRequest.SearchSpec.Se" + + "archResultList.SearchResult.UnstructuredDocumentInfoH\000\022\200\001\n\n" + + "chunk_info\030\002 \001(\0132j.google.cloud.discoveryengine.v1beta.Answer" + + "QueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfoH\000\032\262\006\n" + "\030UnstructuredDocumentInfo\022>\n" + "\010document\030\001 \001(\tB,\372A)\n" + "\'discoveryengine.googleapis.com/Document\022\013\n" + "\003uri\030\002 \001(\t\022\r\n" + "\005title\030\003 \001(\t\022\245\001\n" - + "\021document_contexts\030\004 \003(\0132\211\001.google.cloud.disc" - + "overyengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.U" - + "nstructuredDocumentInfo.DocumentContext\022\251\001\n" - + "\023extractive_segments\030\005 \003(\0132\213\001.google." - + "cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.Sear" - + "chResult.UnstructuredDocumentInfo.ExtractiveSegment\022\253\001\n" - + "\022extractive_answers\030\006 \003(\0132\212\001.google.cloud.discoveryengine.v1beta." - + "AnswerQueryRequest.SearchSpec.SearchResu" - + "ltList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswerB\002\030\001\032;\n" + + "\021document_contexts\030\004 \003(\0132\211\001.google.cloud.discovery" + + "engine.v1beta.AnswerQueryRequest.SearchS" + + "pec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext\022\251\001\n" + + "\023extractive_segments\030\005 \003(\0132\213\001.google.cloud" + + ".discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultList.SearchRes" + + "ult.UnstructuredDocumentInfo.ExtractiveSegment\022\253\001\n" + + "\022extractive_answers\030\006 \003(\0132\212\001.g" + + "oogle.cloud.discoveryengine.v1beta.AnswerQueryRequest.SearchSpec.SearchResultLis" + + "t.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswerB\002\030\001\032;\n" + "\017DocumentContext\022\027\n" + "\017page_identifier\030\001 \001(\t\022\017\n" + "\007content\030\002 \001(\t\032=\n" @@ -372,33 +427,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005chunk\030\001 \001(\tB)\372A&\n" + "$discoveryengine.googleapis.com/Chunk\022\017\n" + "\007content\030\002 \001(\t\022\226\001\n" - + "\021document_metadata\030\004 \001(\0132{.google.cloud.discoveryengine." - + "v1beta.AnswerQueryRequest.SearchSpec.Sea" - + "rchResultList.SearchResult.ChunkInfo.DocumentMetadata\032.\n" + + "\021document_metadata\030\004 \001(\0132{.google.cloud.discoveryengine.v1bet" + + "a.AnswerQueryRequest.SearchSpec.SearchRe" + + "sultList.SearchResult.ChunkInfo.DocumentMetadata\032.\n" + "\020DocumentMetadata\022\013\n" + "\003uri\030\001 \001(\t\022\r\n" + "\005title\030\002 \001(\tB\t\n" + "\007contentB\007\n" - + "\005input\032\216\005\n" + + "\005input\032\302\010\n" + "\026QueryUnderstandingSpec\022\211\001\n" - + "\031query_classification_spec\030\001 \001(\0132f.google.cloud." - + "discoveryengine.v1beta.AnswerQueryReques" - + "t.QueryUnderstandingSpec.QueryClassificationSpec\022\177\n" - + "\024query_rephraser_spec\030\002 \001(\0132a.google.cloud.discoveryengine.v1beta.Ans" - + "werQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec\032\243\002\n" + + "\031query_classification_spec\030\001 \001(\0132f.google.cloud.disco" + + "veryengine.v1beta.AnswerQueryRequest.Que" + + "ryUnderstandingSpec.QueryClassificationSpec\022\177\n" + + "\024query_rephraser_spec\030\002 \001(\0132a.goog" + + "le.cloud.discoveryengine.v1beta.AnswerQu" + + "eryRequest.QueryUnderstandingSpec.QueryRephraserSpec\022%\n" + + "\030disable_spell_correction\030\003 \001(\010B\003\340A\001\032\312\002\n" + "\027QueryClassificationSpec\022z\n" - + "\005types\030\001 \003(\0162k.google.cloud.disc" - + "overyengine.v1beta.AnswerQueryRequest.Qu" - + "eryUnderstandingSpec.QueryClassificationSpec.Type\"\213\001\n" + + "\005types\030\001 \003(\0162k.google.cloud.discoverye" + + "ngine.v1beta.AnswerQueryRequest.QueryUnd" + + "erstandingSpec.QueryClassificationSpec.Type\"\262\001\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\025\n" + "\021ADVERSARIAL_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\032A\n" + + "\033NON_ANSWER_SEEKING_QUERY_V2\020\004\022%\n" + + "!USER_DEFINED_CLASSIFICATION_QUERY\020\005\032\246\003\n" + "\022QueryRephraserSpec\022\017\n" + "\007disable\030\001 \001(\010\022\032\n" - + "\022max_rephrase_steps\030\002 \001(\005\0321\n" + + "\022max_rephrase_steps\030\002 \001(\005\022\204\001\n\n" + + "model_spec\030\003 \001(\0132k.google.cloud.discoveryengine.v1beta.AnswerQu" + + "eryRequest.QueryUnderstandingSpec.QueryRephraserSpec.ModelSpecB\003\340A\001\032\333\001\n" + + "\tModelSpec\022\216\001\n\n" + + "model_type\030\001 \001(\0162u.google.cloud.discoveryengine.v1beta.AnswerQueryRequest." + + "QueryUnderstandingSpec.QueryRephraserSpec.ModelSpec.ModelTypeB\003\340A\001\"=\n" + + "\tModelType\022\032\n" + + "\026MODEL_TYPE_UNSPECIFIED\020\000\022\t\n" + + "\005SMALL\020\001\022\t\n" + + "\005LARGE\020\002\032\344\003\n" + + "\013EndUserSpec\022s\n" + + "\021end_user_metadata\030\001 \003(\0132S.google.cloud.discoveryeng" + + "ine.v1beta.AnswerQueryRequest.EndUserSpec.EndUserMetaDataB\003\340A\001\032\337\002\n" + + "\017EndUserMetaData\022s\n\n" + + "chunk_info\030\001 \001(\0132].google.cloud.discoveryengine.v1beta.AnswerQueryRequest." + + "EndUserSpec.EndUserMetaData.ChunkInfoH\000\032\313\001\n" + + "\tChunkInfo\022\017\n" + + "\007content\030\001 \001(\t\022\211\001\n" + + "\021document_metadata\030\002 \001(\0132n.google.cloud.discov" + + "eryengine.v1beta.AnswerQueryRequest.EndU" + + "serSpec.EndUserMetaData.ChunkInfo.DocumentMetadata\032!\n" + + "\020DocumentMetadata\022\r\n" + + "\005title\030\001 \001(\tB\t\n" + + "\007content\0321\n" + "\017UserLabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\255\001\n" @@ -408,15 +489,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022answer_query_token\030\003 \001(\t\"O\n" + "\020GetAnswerRequest\022;\n" + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" - + "%discoveryengine.googleapis.com/Answer\"\234\001\n" + + "%discoveryengine.googleapis.com/Answer\"\265\001\n" + "\024CreateSessionRequest\022@\n" + "\006parent\030\001 \001(\tB0\340A\002\372A*\n" + "(discoveryengine.googleapis.com/DataStore\022B\n" - + "\007session\030\002 \001(\0132,.goo" - + "gle.cloud.discoveryengine.v1beta.SessionB\003\340A\002\"\213\001\n" + + "\007session\030\002 \001(\0132,.googl" + + "e.cloud.discoveryengine.v1beta.SessionB\003\340A\002\022\027\n\n" + + "session_id\030\003 \001(\tB\003\340A\001\"\213\001\n" + "\024UpdateSessionRequest\022B\n" - + "\007session\030\001" - + " \001(\0132,.google.cloud.discoveryengine.v1beta.SessionB\003\340A\002\022/\n" + + "\007session\030\001 \001(\0132,.google." + + "cloud.discoveryengine.v1beta.SessionB\003\340A\002\022/\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"T\n" + "\024DeleteSessionRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" @@ -434,101 +516,118 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\005 \001(\t\"o\n" + "\024ListSessionsResponse\022>\n" + "\010sessions\030\001 \003(\0132,.google.cloud.discoveryengine.v1beta.Session\022\027\n" - + "\017next_page_token\030\002 \001(\t2\327)\n" + + "\017next_page_token\030\002 \001(\t2\244.\n" + "\033ConversationalSearchService\022\277\003\n" - + "\024ConverseConversation\022@.google.cloud.discoveryengine.v1" - + "beta.ConverseConversationRequest\032A.googl" - + "e.cloud.discoveryengine.v1beta.ConverseConversationResponse\"\241\002\332A\n" - + "name,query\202\323\344\223\002\215\002\"K/v1beta/{name=projects/*/locations/*" - + "/dataStores/*/conversations/*}:converse:\001*Z^\"Y/v1beta/{name=projects/*/locations" - + "/*/collections/*/dataStores/*/conversations/*}:converse:\001*Z[\"V/v1beta/{name=proj" - + "ects/*/locations/*/collections/*/engines/*/conversations/*}:converse:\001*\022\272\003\n" - + "\022CreateConversation\022>.google.cloud.discoverye" - + "ngine.v1beta.CreateConversationRequest\0321.google.cloud.discoveryengine.v1beta.Con" - + "versation\"\260\002\332A\023parent,conversation\202\323\344\223\002\223" - + "\002\"B/v1beta/{parent=projects/*/locations/" - + "*/dataStores/*}/conversations:\014conversationZ`\"P/v1beta/{parent=projects/*/locati" - + "ons/*/collections/*/dataStores/*}/conversations:\014conversationZ]\"M/v1beta/{parent" - + "=projects/*/locations/*/collections/*/engines/*}/conversations:\014conversation\022\346\002\n" - + "\022DeleteConversation\022>.google.cloud.discoveryengine.v1beta.DeleteConversationRequ" - + "est\032\026.google.protobuf.Empty\"\367\001\332A\004name\202\323\344" - + "\223\002\351\001*B/v1beta/{name=projects/*/locations" - + "/*/dataStores/*/conversations/*}ZR*P/v1beta/{name=projects/*/locations/*/collect" - + "ions/*/dataStores/*/conversations/*}ZO*M/v1beta/{name=projects/*/locations/*/col" - + "lections/*/engines/*/conversations/*}\022\346\003\n" - + "\022UpdateConversation\022>.google.cloud.discoveryengine.v1beta.UpdateConversationReq" - + "uest\0321.google.cloud.discoveryengine.v1be" - + "ta.Conversation\"\334\002\332A\030conversation,update" - + "_mask\202\323\344\223\002\272\0022O/v1beta/{conversation.name" - + "=projects/*/locations/*/dataStores/*/conversations/*}:\014conversationZm2]/v1beta/{" - + "conversation.name=projects/*/locations/*/collections/*/dataStores/*/conversation" - + "s/*}:\014conversationZj2Z/v1beta/{conversation.name=projects/*/locations/*/collecti" - + "ons/*/engines/*/conversations/*}:\014conversation\022\373\002\n" - + "\017GetConversation\022;.google.cloud.discoveryengine.v1beta.GetConversation" - + "Request\0321.google.cloud.discoveryengine.v" - + "1beta.Conversation\"\367\001\332A\004name\202\323\344\223\002\351\001\022B/v1" - + "beta/{name=projects/*/locations/*/dataStores/*/conversations/*}ZR\022P/v1beta/{name" - + "=projects/*/locations/*/collections/*/dataStores/*/conversations/*}ZO\022M/v1beta/{" - + "name=projects/*/locations/*/collections/*/engines/*/conversations/*}\022\216\003\n" - + "\021ListConversations\022=.google.cloud.discoveryengin" - + "e.v1beta.ListConversationsRequest\032>.google.cloud.discoveryengine.v1beta.ListConv" - + "ersationsResponse\"\371\001\332A\006parent\202\323\344\223\002\351\001\022B/v" - + "1beta/{parent=projects/*/locations/*/dataStores/*}/conversationsZR\022P/v1beta/{par" - + "ent=projects/*/locations/*/collections/*/dataStores/*}/conversationsZO\022M/v1beta/" - + "{parent=projects/*/locations/*/collections/*/engines/*}/conversations\022\262\003\n" - + "\013AnswerQuery\0227.google.cloud.discoveryengine.v1b" - + "eta.AnswerQueryRequest\0328.google.cloud.discoveryengine.v1beta.AnswerQueryResponse" - + "\"\257\002\202\323\344\223\002\250\002\"T/v1beta/{serving_config=proj" - + "ects/*/locations/*/dataStores/*/servingConfigs/*}:answer:\001*Zg\"b/v1beta/{serving_" - + "config=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:answe" - + "r:\001*Zd\"_/v1beta/{serving_config=projects" - + "/*/locations/*/collections/*/engines/*/servingConfigs/*}:answer:\001*\022\370\002\n" - + "\tGetAnswer\0225.google.cloud.discoveryengine.v1beta.G" - + "etAnswerRequest\032+.google.cloud.discovery" - + "engine.v1beta.Answer\"\206\002\332A\004name\202\323\344\223\002\370\001\022G/" - + "v1beta/{name=projects/*/locations/*/dataStores/*/sessions/*/answers/*}ZW\022U/v1bet" - + "a/{name=projects/*/locations/*/collections/*/dataStores/*/sessions/*/answers/*}Z" - + "T\022R/v1beta/{name=projects/*/locations/*/" - + "collections/*/engines/*/sessions/*/answers/*}\022\210\003\n\r" - + "CreateSession\0229.google.cloud.discoveryengine.v1beta.CreateSessionReque" - + "st\032,.google.cloud.discoveryengine.v1beta" - + ".Session\"\215\002\332A\016parent,session\202\323\344\223\002\365\001\"=/v1" - + "beta/{parent=projects/*/locations/*/dataStores/*}/sessions:\007sessionZV\"K/v1beta/{" - + "parent=projects/*/locations/*/collections/*/dataStores/*}/sessions:\007sessionZS\"H/" - + "v1beta/{parent=projects/*/locations/*/co" - + "llections/*/engines/*}/sessions:\007session\022\315\002\n\r" - + "DeleteSession\0229.google.cloud.discoveryengine.v1beta.DeleteSessionRequest\032\026." - + "google.protobuf.Empty\"\350\001\332A\004name\202\323\344\223\002\332\001*=" - + "/v1beta/{name=projects/*/locations/*/dataStores/*/sessions/*}ZM*K/v1beta/{name=p" - + "rojects/*/locations/*/collections/*/dataStores/*/sessions/*}ZJ*H/v1beta/{name=pr" - + "ojects/*/locations/*/collections/*/engines/*/sessions/*}\022\245\003\n\r" - + "UpdateSession\0229.google.cloud.discoveryengine.v1beta.UpdateS" - + "essionRequest\032,.google.cloud.discoveryen" - + "gine.v1beta.Session\"\252\002\332A\023session,update_" - + "mask\202\323\344\223\002\215\0022E/v1beta/{session.name=proje" - + "cts/*/locations/*/dataStores/*/sessions/*}:\007sessionZ^2S/v1beta/{session.name=pro" - + "jects/*/locations/*/collections/*/dataStores/*/sessions/*}:\007sessionZ[2P/v1beta/{" - + "session.name=projects/*/locations/*/coll" - + "ections/*/engines/*/sessions/*}:\007session\022\335\002\n\n" - + "GetSession\0226.google.cloud.discoveryengine.v1beta.GetSessionRequest\032,.google" - + ".cloud.discoveryengine.v1beta.Session\"\350\001" - + "\332A\004name\202\323\344\223\002\332\001\022=/v1beta/{name=projects/*" - + "/locations/*/dataStores/*/sessions/*}ZM\022K/v1beta/{name=projects/*/locations/*/co" - + "llections/*/dataStores/*/sessions/*}ZJ\022H" - + "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/sessions/*}\022\360\002\n" - + "\014ListSessions\0228.google.cloud.discoveryengine" - + ".v1beta.ListSessionsRequest\0329.google.cloud.discoveryengine.v1beta.ListSessionsRe" - + "sponse\"\352\001\332A\006parent\202\323\344\223\002\332\001\022=/v1beta/{pare" - + "nt=projects/*/locations/*/dataStores/*}/sessionsZM\022K/v1beta/{parent=projects/*/l" - + "ocations/*/collections/*/dataStores/*}/sessionsZJ\022H/v1beta/{parent=projects/*/lo" - + "cations/*/collections/*/engines/*}/sessi" - + "ons\032R\312A\036discoveryengine.googleapis.com\322A" - + ".https://www.googleapis.com/auth/cloud-platformB\247\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB ConversationalSearchService" - + "ProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discove" - + "ryenginepb\242\002\017DISCOVERYENGINE\252\002#Google.Cl" - + "oud.DiscoveryEngine.V1Beta\312\002#Google\\Clou" - + "d\\DiscoveryEngine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" + + "\024ConverseConversation\022@.google.cloud.discoveryengine.v1beta.ConverseConv" + + "ersationRequest\032A.google.cloud.discovery" + + "engine.v1beta.ConverseConversationResponse\"\241\002\332A\n" + + "name,query\202\323\344\223\002\215\002\"K/v1beta/{name" + + "=projects/*/locations/*/dataStores/*/conversations/*}:converse:\001*Z^\"Y/v1beta/{na" + + "me=projects/*/locations/*/collections/*/dataStores/*/conversations/*}:converse:\001" + + "*Z[\"V/v1beta/{name=projects/*/locations/" + + "*/collections/*/engines/*/conversations/*}:converse:\001*\022\272\003\n" + + "\022CreateConversation\022>.google.cloud.discoveryengine.v1beta.Crea" + + "teConversationRequest\0321.google.cloud.dis" + + "coveryengine.v1beta.Conversation\"\260\002\332A\023pa" + + "rent,conversation\202\323\344\223\002\223\002\"B/v1beta/{paren" + + "t=projects/*/locations/*/dataStores/*}/conversations:\014conversationZ`\"P/v1beta/{p" + + "arent=projects/*/locations/*/collections/*/dataStores/*}/conversations:\014conversa" + + "tionZ]\"M/v1beta/{parent=projects/*/locat" + + "ions/*/collections/*/engines/*}/conversations:\014conversation\022\346\002\n" + + "\022DeleteConversation\022>.google.cloud.discoveryengine.v1beta" + + ".DeleteConversationRequest\032\026.google.prot" + + "obuf.Empty\"\367\001\332A\004name\202\323\344\223\002\351\001*B/v1beta/{na" + + "me=projects/*/locations/*/dataStores/*/conversations/*}ZR*P/v1beta/{name=project" + + "s/*/locations/*/collections/*/dataStores/*/conversations/*}ZO*M/v1beta/{name=pro" + + "jects/*/locations/*/collections/*/engines/*/conversations/*}\022\346\003\n" + + "\022UpdateConversation\022>.google.cloud.discoveryengine.v1bet" + + "a.UpdateConversationRequest\0321.google.clo" + + "ud.discoveryengine.v1beta.Conversation\"\334" + + "\002\332A\030conversation,update_mask\202\323\344\223\002\272\0022O/v1" + + "beta/{conversation.name=projects/*/locations/*/dataStores/*/conversations/*}:\014co" + + "nversationZm2]/v1beta/{conversation.name=projects/*/locations/*/collections/*/da" + + "taStores/*/conversations/*}:\014conversationZj2Z/v1beta/{conversation.name=projects" + + "/*/locations/*/collections/*/engines/*/conversations/*}:\014conversation\022\373\002\n" + + "\017GetConversation\022;.google.cloud.discoveryengine" + + ".v1beta.GetConversationRequest\0321.google.cloud.discoveryengine.v1beta.Conversatio" + + "n\"\367\001\332A\004name\202\323\344\223\002\351\001\022B/v1beta/{name=projec" + + "ts/*/locations/*/dataStores/*/conversations/*}ZR\022P/v1beta/{name=projects/*/locat" + + "ions/*/collections/*/dataStores/*/conversations/*}ZO\022M/v1beta/{name=projects/*/l" + + "ocations/*/collections/*/engines/*/conversations/*}\022\216\003\n" + + "\021ListConversations\022=.google.cloud.discoveryengine.v1beta.ListConv" + + "ersationsRequest\032>.google.cloud.discoveryengine.v1beta.ListConversationsResponse" + + "\"\371\001\332A\006parent\202\323\344\223\002\351\001\022B/v1beta/{parent=pro" + + "jects/*/locations/*/dataStores/*}/conversationsZR\022P/v1beta/{parent=projects/*/lo" + + "cations/*/collections/*/dataStores/*}/conversationsZO\022M/v1beta/{parent=projects/" + + "*/locations/*/collections/*/engines/*}/conversations\022\262\003\n" + + "\013AnswerQuery\0227.google.cloud.discoveryengine.v1beta.AnswerQueryRe" + + "quest\0328.google.cloud.discoveryengine.v1b" + + "eta.AnswerQueryResponse\"\257\002\202\323\344\223\002\250\002\"T/v1be" + + "ta/{serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:answer:" + + "\001*Zg\"b/v1beta/{serving_config=projects/*/locations/*/collections/*/dataStores/*/" + + "servingConfigs/*}:answer:\001*Zd\"_/v1beta/{serving_config=projects/*/locations/*/co" + + "llections/*/engines/*/servingConfigs/*}:answer:\001*\022\314\003\n" + + "\021StreamAnswerQuery\0227.google.cloud.discoveryengine.v1beta.AnswerQuer" + + "yRequest\0328.google.cloud.discoveryengine." + + "v1beta.AnswerQueryResponse\"\301\002\202\323\344\223\002\272\002\"Z/v" + + "1beta/{serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:stre" + + "amAnswer:\001*Zm\"h/v1beta/{serving_config=projects/*/locations/*/collections/*/data" + + "Stores/*/servingConfigs/*}:streamAnswer:\001*Zj\"e/v1beta/{serving_config=projects/*" + + "/locations/*/collections/*/engines/*/servingConfigs/*}:streamAnswer:\001*0\001\022\370\002\n" + + "\tGetAnswer\0225.google.cloud.discoveryengine.v1" + + "beta.GetAnswerRequest\032+.google.cloud.dis" + + "coveryengine.v1beta.Answer\"\206\002\332A\004name\202\323\344\223" + + "\002\370\001\022G/v1beta/{name=projects/*/locations/" + + "*/dataStores/*/sessions/*/answers/*}ZW\022U/v1beta/{name=projects/*/locations/*/col" + + "lections/*/dataStores/*/sessions/*/answers/*}ZT\022R/v1beta/{name=projects/*/locati" + + "ons/*/collections/*/engines/*/sessions/*/answers/*}\022\210\003\n\r" + + "CreateSession\0229.google.cloud.discoveryengine.v1beta.CreateSessio" + + "nRequest\032,.google.cloud.discoveryengine." + + "v1beta.Session\"\215\002\332A\016parent,session\202\323\344\223\002\365" + + "\001\"=/v1beta/{parent=projects/*/locations/" + + "*/dataStores/*}/sessions:\007sessionZV\"K/v1beta/{parent=projects/*/locations/*/coll" + + "ections/*/dataStores/*}/sessions:\007sessionZS\"H/v1beta/{parent=projects/*/location" + + "s/*/collections/*/engines/*}/sessions:\007session\022\315\002\n\r" + + "DeleteSession\0229.google.cloud.discoveryengine.v1beta.DeleteSessionRequ" + + "est\032\026.google.protobuf.Empty\"\350\001\332A\004name\202\323\344" + + "\223\002\332\001*=/v1beta/{name=projects/*/locations" + + "/*/dataStores/*/sessions/*}ZM*K/v1beta/{name=projects/*/locations/*/collections/" + + "*/dataStores/*/sessions/*}ZJ*H/v1beta/{n" + + "ame=projects/*/locations/*/collections/*/engines/*/sessions/*}\022\245\003\n\r" + + "UpdateSession\0229.google.cloud.discoveryengine.v1beta.U" + + "pdateSessionRequest\032,.google.cloud.disco" + + "veryengine.v1beta.Session\"\252\002\332A\023session,u" + + "pdate_mask\202\323\344\223\002\215\0022E/v1beta/{session.name" + + "=projects/*/locations/*/dataStores/*/sessions/*}:\007sessionZ^2S/v1beta/{session.na" + + "me=projects/*/locations/*/collections/*/dataStores/*/sessions/*}:\007sessionZ[2P/v1" + + "beta/{session.name=projects/*/locations/" + + "*/collections/*/engines/*/sessions/*}:\007session\022\335\002\n\n" + + "GetSession\0226.google.cloud.discoveryengine.v1beta.GetSessionRequest\032,." + + "google.cloud.discoveryengine.v1beta.Sess" + + "ion\"\350\001\332A\004name\202\323\344\223\002\332\001\022=/v1beta/{name=proj" + + "ects/*/locations/*/dataStores/*/sessions/*}ZM\022K/v1beta/{name=projects/*/location" + + "s/*/collections/*/dataStores/*/sessions/*}ZJ\022H/v1beta/{name=projects/*/locations" + + "/*/collections/*/engines/*/sessions/*}\022\360\002\n" + + "\014ListSessions\0228.google.cloud.discovery" + + "engine.v1beta.ListSessionsRequest\0329.google.cloud.discoveryengine.v1beta.ListSess" + + "ionsResponse\"\352\001\332A\006parent\202\323\344\223\002\332\001\022=/v1beta" + + "/{parent=projects/*/locations/*/dataStores/*}/sessionsZM\022K/v1beta/{parent=projec" + + "ts/*/locations/*/collections/*/dataStores/*}/sessionsZJ\022H/v1beta/{parent=project" + + "s/*/locations/*/collections/*/engines/*}" + + "/sessions\032\317\001\312A\036discoveryengine.googleapi", + "s.com\322A\252\001https://www.googleapis.com/auth" + + "/cloud-platform,https://www.googleapis.c" + + "om/auth/discoveryengine.readwrite,https:" + + "//www.googleapis.com/auth/discoveryengin" + + "e.serving.readwriteB\247\002\n\'com.google.cloud" + + ".discoveryengine.v1betaB ConversationalS" + + "earchServiceProtoP\001ZQcloud.google.com/go" + + "/discoveryengine/apiv1beta/discoveryengi" + + "nepb;discoveryenginepb\242\002\017DISCOVERYENGINE" + + "\252\002#Google.Cloud.DiscoveryEngine.V1Beta\312\002" + + "#Google\\Cloud\\DiscoveryEngine\\V1beta\352\002&G" + + "oogle::Cloud::DiscoveryEngine::V1betab\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -540,6 +639,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.discoveryengine.v1beta.AnswerProto.getDescriptor(), com.google.cloud.discoveryengine.v1beta.ConversationProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.SafetyProto.getDescriptor(), com.google.cloud.discoveryengine.v1beta.SearchServiceProto.getDescriptor(), com.google.cloud.discoveryengine.v1beta.SessionProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), @@ -644,6 +744,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AsynchronousMode", "UserPseudoId", "UserLabels", + "EndUserSpec", }); internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_descriptor @@ -652,7 +753,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_descriptor, new java.lang.String[] { - "Enable", + "Enable", "SafetySettings", + }); + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_SafetySetting_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_SafetySetting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SafetySpec_SafetySetting_descriptor, + new java.lang.String[] { + "Category", "Threshold", }); internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_RelatedQuestionsSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_descriptor @@ -687,6 +797,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IgnoreNonAnswerSeekingQuery", "IgnoreLowRelevantContent", "IgnoreJailBreakingQuery", + "MultimodalSpec", }); internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_ModelSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_descriptor @@ -706,6 +817,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Preamble", }); + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_MultimodalSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_descriptor + .getNestedType(2); + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_MultimodalSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_AnswerGenerationSpec_MultimodalSpec_descriptor, + new java.lang.String[] { + "ImageSource", + }); internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_SearchSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_descriptor .getNestedType(4); @@ -814,7 +934,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_descriptor, new java.lang.String[] { - "QueryClassificationSpec", "QueryRephraserSpec", + "QueryClassificationSpec", "QueryRephraserSpec", "DisableSpellCorrection", }); internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryClassificationSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_descriptor @@ -832,11 +952,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_descriptor, new java.lang.String[] { - "Disable", "MaxRephraseSteps", + "Disable", "MaxRephraseSteps", "ModelSpec", }); - internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_UserLabelsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_ModelSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_ModelSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec_ModelSpec_descriptor, + new java.lang.String[] { + "ModelType", + }); + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_descriptor .getNestedType(6); + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_descriptor, + new java.lang.String[] { + "EndUserMetadata", + }); + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_descriptor, + new java.lang.String[] { + "ChunkInfo", "Content", + }); + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_descriptor, + new java.lang.String[] { + "Content", "DocumentMetadata", + }); + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_DocumentMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_DocumentMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_EndUserSpec_EndUserMetaData_ChunkInfo_DocumentMetadata_descriptor, + new java.lang.String[] { + "Title", + }); + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_UserLabelsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_descriptor + .getNestedType(7); internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_UserLabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_AnswerQueryRequest_UserLabelsEntry_descriptor, @@ -865,7 +1030,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_CreateSessionRequest_descriptor, new java.lang.String[] { - "Parent", "Session", + "Parent", "Session", "SessionId", }); internal_static_google_cloud_discoveryengine_v1beta_UpdateSessionRequest_descriptor = getDescriptor().getMessageType(12); @@ -914,6 +1079,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.discoveryengine.v1beta.AnswerProto.getDescriptor(); com.google.cloud.discoveryengine.v1beta.ConversationProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.SafetyProto.getDescriptor(); com.google.cloud.discoveryengine.v1beta.SearchServiceProto.getDescriptor(); com.google.cloud.discoveryengine.v1beta.SessionProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateAssistantRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateAssistantRequest.java new file mode 100644 index 000000000000..79d262421254 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateAssistantRequest.java @@ -0,0 +1,1196 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request for the
            + * [AssistantService.CreateAssistant][google.cloud.discoveryengine.v1beta.AssistantService.CreateAssistant]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateAssistantRequest} + */ +@com.google.protobuf.Generated +public final class CreateAssistantRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CreateAssistantRequest) + CreateAssistantRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateAssistantRequest"); + } + + // Use CreateAssistantRequest.newBuilder() to construct. + private CreateAssistantRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAssistantRequest() { + parent_ = ""; + assistantId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest.class, + com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent resource name.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent resource name.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +   * 
            + * + * + * 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 ASSISTANT_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.Assistant assistant_; + + /** + * + * + *
            +   * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +   * create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the assistant field is set. + */ + @java.lang.Override + public boolean hasAssistant() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +   * create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The assistant. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant getAssistant() { + return assistant_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.getDefaultInstance() + : assistant_; + } + + /** + * + * + *
            +   * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +   * create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantOrBuilder getAssistantOrBuilder() { + return assistant_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.getDefaultInstance() + : assistant_; + } + + public static final int ASSISTANT_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object assistantId_ = ""; + + /** + * + * + *
            +   * Required. The ID to use for the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], which will
            +   * become the final component of the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s resource name.
            +   *
            +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
            +   * with a length limit of 63 characters.
            +   * 
            + * + * string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The assistantId. + */ + @java.lang.Override + public java.lang.String getAssistantId() { + java.lang.Object ref = assistantId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistantId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The ID to use for the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], which will
            +   * become the final component of the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s resource name.
            +   *
            +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
            +   * with a length limit of 63 characters.
            +   * 
            + * + * string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for assistantId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssistantIdBytes() { + java.lang.Object ref = assistantId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getAssistant()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistantId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, assistantId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAssistant()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistantId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, assistantId_); + } + 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.v1beta.CreateAssistantRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest other = + (com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasAssistant() != other.hasAssistant()) return false; + if (hasAssistant()) { + if (!getAssistant().equals(other.getAssistant())) return false; + } + if (!getAssistantId().equals(other.getAssistantId())) 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 (hasAssistant()) { + hash = (37 * hash) + ASSISTANT_FIELD_NUMBER; + hash = (53 * hash) + getAssistant().hashCode(); + } + hash = (37 * hash) + ASSISTANT_ID_FIELD_NUMBER; + hash = (53 * hash) + getAssistantId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest 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.v1beta.CreateAssistantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest parseFrom( + 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.v1beta.CreateAssistantRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request for the
            +   * [AssistantService.CreateAssistant][google.cloud.discoveryengine.v1beta.AssistantService.CreateAssistant]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateAssistantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.CreateAssistantRequest) + com.google.cloud.discoveryengine.v1beta.CreateAssistantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest.class, + com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAssistantFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + assistant_ = null; + if (assistantBuilder_ != null) { + assistantBuilder_.dispose(); + assistantBuilder_ = null; + } + assistantId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateAssistantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest build() { + com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest result = + new com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.assistant_ = assistantBuilder_ == null ? assistant_ : assistantBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.assistantId_ = assistantId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasAssistant()) { + mergeAssistant(other.getAssistant()); + } + if (!other.getAssistantId().isEmpty()) { + assistantId_ = other.assistantId_; + 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( + internalGetAssistantFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + assistantId_ = 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 parent resource name.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent resource name.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent resource name.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent resource name.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent resource name.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +     * 
            + * + * + * 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.discoveryengine.v1beta.Assistant assistant_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant, + com.google.cloud.discoveryengine.v1beta.Assistant.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantOrBuilder> + assistantBuilder_; + + /** + * + * + *
            +     * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +     * create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the assistant field is set. + */ + public boolean hasAssistant() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +     * create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The assistant. + */ + public com.google.cloud.discoveryengine.v1beta.Assistant getAssistant() { + if (assistantBuilder_ == null) { + return assistant_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.getDefaultInstance() + : assistant_; + } else { + return assistantBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +     * create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAssistant(com.google.cloud.discoveryengine.v1beta.Assistant value) { + if (assistantBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assistant_ = value; + } else { + assistantBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +     * create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAssistant( + com.google.cloud.discoveryengine.v1beta.Assistant.Builder builderForValue) { + if (assistantBuilder_ == null) { + assistant_ = builderForValue.build(); + } else { + assistantBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +     * create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAssistant(com.google.cloud.discoveryengine.v1beta.Assistant value) { + if (assistantBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && assistant_ != null + && assistant_ + != com.google.cloud.discoveryengine.v1beta.Assistant.getDefaultInstance()) { + getAssistantBuilder().mergeFrom(value); + } else { + assistant_ = value; + } + } else { + assistantBuilder_.mergeFrom(value); + } + if (assistant_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +     * create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAssistant() { + bitField0_ = (bitField0_ & ~0x00000002); + assistant_ = null; + if (assistantBuilder_ != null) { + assistantBuilder_.dispose(); + assistantBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +     * create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.Builder getAssistantBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetAssistantFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +     * create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantOrBuilder getAssistantOrBuilder() { + if (assistantBuilder_ != null) { + return assistantBuilder_.getMessageOrBuilder(); + } else { + return assistant_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.getDefaultInstance() + : assistant_; + } + } + + /** + * + * + *
            +     * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +     * create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant, + com.google.cloud.discoveryengine.v1beta.Assistant.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantOrBuilder> + internalGetAssistantFieldBuilder() { + if (assistantBuilder_ == null) { + assistantBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant, + com.google.cloud.discoveryengine.v1beta.Assistant.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantOrBuilder>( + getAssistant(), getParentForChildren(), isClean()); + assistant_ = null; + } + return assistantBuilder_; + } + + private java.lang.Object assistantId_ = ""; + + /** + * + * + *
            +     * Required. The ID to use for the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], which will
            +     * become the final component of the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s resource name.
            +     *
            +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
            +     * with a length limit of 63 characters.
            +     * 
            + * + * string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The assistantId. + */ + public java.lang.String getAssistantId() { + java.lang.Object ref = assistantId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistantId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The ID to use for the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], which will
            +     * become the final component of the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s resource name.
            +     *
            +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
            +     * with a length limit of 63 characters.
            +     * 
            + * + * string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for assistantId. + */ + public com.google.protobuf.ByteString getAssistantIdBytes() { + java.lang.Object ref = assistantId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistantId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The ID to use for the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], which will
            +     * become the final component of the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s resource name.
            +     *
            +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
            +     * with a length limit of 63 characters.
            +     * 
            + * + * string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The assistantId to set. + * @return This builder for chaining. + */ + public Builder setAssistantId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assistantId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The ID to use for the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], which will
            +     * become the final component of the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s resource name.
            +     *
            +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
            +     * with a length limit of 63 characters.
            +     * 
            + * + * string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAssistantId() { + assistantId_ = getDefaultInstance().getAssistantId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The ID to use for the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], which will
            +     * become the final component of the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s resource name.
            +     *
            +     * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
            +     * with a length limit of 63 characters.
            +     * 
            + * + * string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for assistantId to set. + * @return This builder for chaining. + */ + public Builder setAssistantIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assistantId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CreateAssistantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CreateAssistantRequest) + private static final com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAssistantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.CreateAssistantRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateAssistantRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateAssistantRequestOrBuilder.java new file mode 100644 index 000000000000..3c0ff41c790a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateAssistantRequestOrBuilder.java @@ -0,0 +1,146 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface CreateAssistantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CreateAssistantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent resource name.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent resource name.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +   * create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the assistant field is set. + */ + boolean hasAssistant(); + + /** + * + * + *
            +   * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +   * create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The assistant. + */ + com.google.cloud.discoveryengine.v1beta.Assistant getAssistant(); + + /** + * + * + *
            +   * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +   * create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistantOrBuilder getAssistantOrBuilder(); + + /** + * + * + *
            +   * Required. The ID to use for the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], which will
            +   * become the final component of the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s resource name.
            +   *
            +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
            +   * with a length limit of 63 characters.
            +   * 
            + * + * string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The assistantId. + */ + java.lang.String getAssistantId(); + + /** + * + * + *
            +   * Required. The ID to use for the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], which will
            +   * become the final component of the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s resource name.
            +   *
            +   * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034)
            +   * with a length limit of 63 characters.
            +   * 
            + * + * string assistant_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for assistantId. + */ + com.google.protobuf.ByteString getAssistantIdBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDataStoreRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDataStoreRequest.java index 60cbd662106a..3d1eceb89efa 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDataStoreRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDataStoreRequest.java @@ -74,6 +74,170 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } private int bitField0_; + private int cmekOptionsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object cmekOptions_; + + public enum CmekOptionsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CMEK_CONFIG_NAME(5), + DISABLE_CMEK(6), + CMEKOPTIONS_NOT_SET(0); + private final int value; + + private CmekOptionsCase(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 CmekOptionsCase valueOf(int value) { + return forNumber(value); + } + + public static CmekOptionsCase forNumber(int value) { + switch (value) { + case 5: + return CMEK_CONFIG_NAME; + case 6: + return DISABLE_CMEK; + case 0: + return CMEKOPTIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public CmekOptionsCase getCmekOptionsCase() { + return CmekOptionsCase.forNumber(cmekOptionsCase_); + } + + public static final int CMEK_CONFIG_NAME_FIELD_NUMBER = 5; + + /** + * + * + *
            +   * Resource name of the CmekConfig to use for protecting this DataStore.
            +   * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return Whether the cmekConfigName field is set. + */ + public boolean hasCmekConfigName() { + return cmekOptionsCase_ == 5; + } + + /** + * + * + *
            +   * Resource name of the CmekConfig to use for protecting this DataStore.
            +   * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return The cmekConfigName. + */ + public java.lang.String getCmekConfigName() { + java.lang.Object ref = ""; + if (cmekOptionsCase_ == 5) { + ref = cmekOptions_; + } + if (ref instanceof java.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 (cmekOptionsCase_ == 5) { + cmekOptions_ = s; + } + return s; + } + } + + /** + * + * + *
            +   * Resource name of the CmekConfig to use for protecting this DataStore.
            +   * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for cmekConfigName. + */ + public com.google.protobuf.ByteString getCmekConfigNameBytes() { + java.lang.Object ref = ""; + if (cmekOptionsCase_ == 5) { + ref = cmekOptions_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (cmekOptionsCase_ == 5) { + cmekOptions_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISABLE_CMEK_FIELD_NUMBER = 6; + + /** + * + * + *
            +   * DataStore without CMEK protections. If a default CmekConfig is set for
            +   * the project, setting this field will override the default CmekConfig as
            +   * well.
            +   * 
            + * + * bool disable_cmek = 6; + * + * @return Whether the disableCmek field is set. + */ + @java.lang.Override + public boolean hasDisableCmek() { + return cmekOptionsCase_ == 6; + } + + /** + * + * + *
            +   * DataStore without CMEK protections. If a default CmekConfig is set for
            +   * the project, setting this field will override the default CmekConfig as
            +   * well.
            +   * 
            + * + * bool disable_cmek = 6; + * + * @return The disableCmek. + */ + @java.lang.Override + public boolean getDisableCmek() { + if (cmekOptionsCase_ == 6) { + return (java.lang.Boolean) cmekOptions_; + } + return false; + } + public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -337,6 +501,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createAdvancedSiteSearch_ != false) { output.writeBool(4, createAdvancedSiteSearch_); } + if (cmekOptionsCase_ == 5) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, cmekOptions_); + } + if (cmekOptionsCase_ == 6) { + output.writeBool(6, (boolean) ((java.lang.Boolean) cmekOptions_)); + } if (skipDefaultSchemaCreation_ != false) { output.writeBool(7, skipDefaultSchemaCreation_); } @@ -361,6 +531,14 @@ public int getSerializedSize() { if (createAdvancedSiteSearch_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, createAdvancedSiteSearch_); } + if (cmekOptionsCase_ == 5) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, cmekOptions_); + } + if (cmekOptionsCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 6, (boolean) ((java.lang.Boolean) cmekOptions_)); + } if (skipDefaultSchemaCreation_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, skipDefaultSchemaCreation_); } @@ -388,6 +566,17 @@ public boolean equals(final java.lang.Object obj) { if (!getDataStoreId().equals(other.getDataStoreId())) return false; if (getCreateAdvancedSiteSearch() != other.getCreateAdvancedSiteSearch()) return false; if (getSkipDefaultSchemaCreation() != other.getSkipDefaultSchemaCreation()) return false; + if (!getCmekOptionsCase().equals(other.getCmekOptionsCase())) return false; + switch (cmekOptionsCase_) { + case 5: + if (!getCmekConfigName().equals(other.getCmekConfigName())) return false; + break; + case 6: + if (getDisableCmek() != other.getDisableCmek()) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -411,6 +600,18 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCreateAdvancedSiteSearch()); hash = (37 * hash) + SKIP_DEFAULT_SCHEMA_CREATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSkipDefaultSchemaCreation()); + switch (cmekOptionsCase_) { + case 5: + hash = (37 * hash) + CMEK_CONFIG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCmekConfigName().hashCode(); + break; + case 6: + hash = (37 * hash) + DISABLE_CMEK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableCmek()); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -572,6 +773,8 @@ public Builder clear() { dataStoreId_ = ""; createAdvancedSiteSearch_ = false; skipDefaultSchemaCreation_ = false; + cmekOptionsCase_ = 0; + cmekOptions_ = null; return this; } @@ -603,6 +806,7 @@ public com.google.cloud.discoveryengine.v1beta.CreateDataStoreRequest buildParti if (bitField0_ != 0) { buildPartial0(result); } + buildPartialOneofs(result); onBuilt(); return result; } @@ -610,26 +814,32 @@ public com.google.cloud.discoveryengine.v1beta.CreateDataStoreRequest buildParti private void buildPartial0( com.google.cloud.discoveryengine.v1beta.CreateDataStoreRequest result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.parent_ = parent_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.dataStore_ = dataStoreBuilder_ == null ? dataStore_ : dataStoreBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.dataStoreId_ = dataStoreId_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.createAdvancedSiteSearch_ = createAdvancedSiteSearch_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.skipDefaultSchemaCreation_ = skipDefaultSchemaCreation_; } result.bitField0_ |= to_bitField0_; } + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.CreateDataStoreRequest result) { + result.cmekOptionsCase_ = cmekOptionsCase_; + result.cmekOptions_ = this.cmekOptions_; + } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.CreateDataStoreRequest) { @@ -646,7 +856,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CreateDataStore return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasDataStore()) { @@ -654,7 +864,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CreateDataStore } if (!other.getDataStoreId().isEmpty()) { dataStoreId_ = other.dataStoreId_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); } if (other.getCreateAdvancedSiteSearch() != false) { @@ -663,6 +873,24 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CreateDataStore if (other.getSkipDefaultSchemaCreation() != false) { setSkipDefaultSchemaCreation(other.getSkipDefaultSchemaCreation()); } + switch (other.getCmekOptionsCase()) { + case CMEK_CONFIG_NAME: + { + cmekOptionsCase_ = 5; + cmekOptions_ = other.cmekOptions_; + onChanged(); + break; + } + case DISABLE_CMEK: + { + setDisableCmek(other.getDisableCmek()); + break; + } + case CMEKOPTIONS_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -692,32 +920,45 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; break; } // case 10 case 18: { input.readMessage( internalGetDataStoreFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; break; } // case 18 case 26: { dataStoreId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; break; } // case 26 case 32: { createAdvancedSiteSearch_ = input.readBool(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; break; } // case 32 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + cmekOptionsCase_ = 5; + cmekOptions_ = s; + break; + } // case 42 + case 48: + { + cmekOptions_ = input.readBool(); + cmekOptionsCase_ = 6; + break; + } // case 48 case 56: { skipDefaultSchemaCreation_ = input.readBool(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; break; } // case 56 default: @@ -737,8 +978,242 @@ public Builder mergeFrom( return this; } + private int cmekOptionsCase_ = 0; + private java.lang.Object cmekOptions_; + + public CmekOptionsCase getCmekOptionsCase() { + return CmekOptionsCase.forNumber(cmekOptionsCase_); + } + + public Builder clearCmekOptions() { + cmekOptionsCase_ = 0; + cmekOptions_ = null; + onChanged(); + return this; + } + private int bitField0_; + /** + * + * + *
            +     * Resource name of the CmekConfig to use for protecting this DataStore.
            +     * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return Whether the cmekConfigName field is set. + */ + @java.lang.Override + public boolean hasCmekConfigName() { + return cmekOptionsCase_ == 5; + } + + /** + * + * + *
            +     * Resource name of the CmekConfig to use for protecting this DataStore.
            +     * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return The cmekConfigName. + */ + @java.lang.Override + public java.lang.String getCmekConfigName() { + java.lang.Object ref = ""; + if (cmekOptionsCase_ == 5) { + ref = cmekOptions_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (cmekOptionsCase_ == 5) { + cmekOptions_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Resource name of the CmekConfig to use for protecting this DataStore.
            +     * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for cmekConfigName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCmekConfigNameBytes() { + java.lang.Object ref = ""; + if (cmekOptionsCase_ == 5) { + ref = cmekOptions_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (cmekOptionsCase_ == 5) { + cmekOptions_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Resource name of the CmekConfig to use for protecting this DataStore.
            +     * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @param value The cmekConfigName to set. + * @return This builder for chaining. + */ + public Builder setCmekConfigName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cmekOptionsCase_ = 5; + cmekOptions_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Resource name of the CmekConfig to use for protecting this DataStore.
            +     * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearCmekConfigName() { + if (cmekOptionsCase_ == 5) { + cmekOptionsCase_ = 0; + cmekOptions_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Resource name of the CmekConfig to use for protecting this DataStore.
            +     * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for cmekConfigName to set. + * @return This builder for chaining. + */ + public Builder setCmekConfigNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cmekOptionsCase_ = 5; + cmekOptions_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * DataStore without CMEK protections. If a default CmekConfig is set for
            +     * the project, setting this field will override the default CmekConfig as
            +     * well.
            +     * 
            + * + * bool disable_cmek = 6; + * + * @return Whether the disableCmek field is set. + */ + public boolean hasDisableCmek() { + return cmekOptionsCase_ == 6; + } + + /** + * + * + *
            +     * DataStore without CMEK protections. If a default CmekConfig is set for
            +     * the project, setting this field will override the default CmekConfig as
            +     * well.
            +     * 
            + * + * bool disable_cmek = 6; + * + * @return The disableCmek. + */ + public boolean getDisableCmek() { + if (cmekOptionsCase_ == 6) { + return (java.lang.Boolean) cmekOptions_; + } + return false; + } + + /** + * + * + *
            +     * DataStore without CMEK protections. If a default CmekConfig is set for
            +     * the project, setting this field will override the default CmekConfig as
            +     * well.
            +     * 
            + * + * bool disable_cmek = 6; + * + * @param value The disableCmek to set. + * @return This builder for chaining. + */ + public Builder setDisableCmek(boolean value) { + + cmekOptionsCase_ = 6; + cmekOptions_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * DataStore without CMEK protections. If a default CmekConfig is set for
            +     * the project, setting this field will override the default CmekConfig as
            +     * well.
            +     * 
            + * + * bool disable_cmek = 6; + * + * @return This builder for chaining. + */ + public Builder clearDisableCmek() { + if (cmekOptionsCase_ == 6) { + cmekOptionsCase_ = 0; + cmekOptions_ = null; + onChanged(); + } + return this; + } + private java.lang.Object parent_ = ""; /** @@ -813,7 +1288,7 @@ public Builder setParent(java.lang.String value) { throw new NullPointerException(); } parent_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -834,7 +1309,7 @@ public Builder setParent(java.lang.String value) { */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -860,7 +1335,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); parent_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -887,7 +1362,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * @return Whether the dataStore field is set. */ public boolean hasDataStore() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -935,7 +1410,7 @@ public Builder setDataStore(com.google.cloud.discoveryengine.v1beta.DataStore va } else { dataStoreBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -959,7 +1434,7 @@ public Builder setDataStore( } else { dataStoreBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -978,7 +1453,7 @@ public Builder setDataStore( */ public Builder mergeDataStore(com.google.cloud.discoveryengine.v1beta.DataStore value) { if (dataStoreBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) + if (((bitField0_ & 0x00000008) != 0) && dataStore_ != null && dataStore_ != com.google.cloud.discoveryengine.v1beta.DataStore.getDefaultInstance()) { @@ -990,7 +1465,7 @@ public Builder mergeDataStore(com.google.cloud.discoveryengine.v1beta.DataStore dataStoreBuilder_.mergeFrom(value); } if (dataStore_ != null) { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -1009,7 +1484,7 @@ public Builder mergeDataStore(com.google.cloud.discoveryengine.v1beta.DataStore *
            */ public Builder clearDataStore() { - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); dataStore_ = null; if (dataStoreBuilder_ != null) { dataStoreBuilder_.dispose(); @@ -1032,7 +1507,7 @@ public Builder clearDataStore() { *
            */ public com.google.cloud.discoveryengine.v1beta.DataStore.Builder getDataStoreBuilder() { - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return internalGetDataStoreFieldBuilder().getBuilder(); } @@ -1174,7 +1649,7 @@ public Builder setDataStoreId(java.lang.String value) { throw new NullPointerException(); } dataStoreId_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1199,7 +1674,7 @@ public Builder setDataStoreId(java.lang.String value) { */ public Builder clearDataStoreId() { dataStoreId_ = getDefaultInstance().getDataStoreId(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1229,7 +1704,7 @@ public Builder setDataStoreIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); dataStoreId_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1275,7 +1750,7 @@ public boolean getCreateAdvancedSiteSearch() { public Builder setCreateAdvancedSiteSearch(boolean value) { createAdvancedSiteSearch_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1296,7 +1771,7 @@ public Builder setCreateAdvancedSiteSearch(boolean value) { * @return This builder for chaining. */ public Builder clearCreateAdvancedSiteSearch() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000020); createAdvancedSiteSearch_ = false; onChanged(); return this; @@ -1349,7 +1824,7 @@ public boolean getSkipDefaultSchemaCreation() { public Builder setSkipDefaultSchemaCreation(boolean value) { skipDefaultSchemaCreation_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1373,7 +1848,7 @@ public Builder setSkipDefaultSchemaCreation(boolean value) { * @return This builder for chaining. */ public Builder clearSkipDefaultSchemaCreation() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); skipDefaultSchemaCreation_ = false; onChanged(); return this; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDataStoreRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDataStoreRequestOrBuilder.java index 58e2f37a9764..0ed027ae83c9 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDataStoreRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDataStoreRequestOrBuilder.java @@ -26,6 +26,75 @@ public interface CreateDataStoreRequestOrBuilder // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CreateDataStoreRequest) com.google.protobuf.MessageOrBuilder { + /** + * + * + *
            +   * Resource name of the CmekConfig to use for protecting this DataStore.
            +   * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return Whether the cmekConfigName field is set. + */ + boolean hasCmekConfigName(); + + /** + * + * + *
            +   * Resource name of the CmekConfig to use for protecting this DataStore.
            +   * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return The cmekConfigName. + */ + java.lang.String getCmekConfigName(); + + /** + * + * + *
            +   * Resource name of the CmekConfig to use for protecting this DataStore.
            +   * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for cmekConfigName. + */ + com.google.protobuf.ByteString getCmekConfigNameBytes(); + + /** + * + * + *
            +   * DataStore without CMEK protections. If a default CmekConfig is set for
            +   * the project, setting this field will override the default CmekConfig as
            +   * well.
            +   * 
            + * + * bool disable_cmek = 6; + * + * @return Whether the disableCmek field is set. + */ + boolean hasDisableCmek(); + + /** + * + * + *
            +   * DataStore without CMEK protections. If a default CmekConfig is set for
            +   * the project, setting this field will override the default CmekConfig as
            +   * well.
            +   * 
            + * + * bool disable_cmek = 6; + * + * @return The disableCmek. + */ + boolean getDisableCmek(); + /** * * @@ -180,4 +249,7 @@ public interface CreateDataStoreRequestOrBuilder * @return The skipDefaultSchemaCreation. */ boolean getSkipDefaultSchemaCreation(); + + com.google.cloud.discoveryengine.v1beta.CreateDataStoreRequest.CmekOptionsCase + getCmekOptionsCase(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequest.java index 61ccebf83da9..a9f2b9d48872 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequest.java @@ -219,7 +219,7 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBu * Otherwise, an `ALREADY_EXISTS` error is returned. * * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an + * standard with a length limit of 128 characters. Otherwise, an * `INVALID_ARGUMENT` error is returned. *
            * @@ -259,7 +259,7 @@ public java.lang.String getDocumentId() { * Otherwise, an `ALREADY_EXISTS` error is returned. * * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an + * standard with a length limit of 128 characters. Otherwise, an * `INVALID_ARGUMENT` error is returned. * * @@ -1033,7 +1033,7 @@ public com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder getDocumentOrBu * Otherwise, an `ALREADY_EXISTS` error is returned. * * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an + * standard with a length limit of 128 characters. Otherwise, an * `INVALID_ARGUMENT` error is returned. * * @@ -1072,7 +1072,7 @@ public java.lang.String getDocumentId() { * Otherwise, an `ALREADY_EXISTS` error is returned. * * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an + * standard with a length limit of 128 characters. Otherwise, an * `INVALID_ARGUMENT` error is returned. * * @@ -1111,7 +1111,7 @@ public com.google.protobuf.ByteString getDocumentIdBytes() { * Otherwise, an `ALREADY_EXISTS` error is returned. * * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an + * standard with a length limit of 128 characters. Otherwise, an * `INVALID_ARGUMENT` error is returned. * * @@ -1149,7 +1149,7 @@ public Builder setDocumentId(java.lang.String value) { * Otherwise, an `ALREADY_EXISTS` error is returned. * * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an + * standard with a length limit of 128 characters. Otherwise, an * `INVALID_ARGUMENT` error is returned. * * @@ -1183,7 +1183,7 @@ public Builder clearDocumentId() { * Otherwise, an `ALREADY_EXISTS` error is returned. * * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an + * standard with a length limit of 128 characters. Otherwise, an * `INVALID_ARGUMENT` error is returned. * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequestOrBuilder.java index 2981351094c5..11f63fea130c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateDocumentRequestOrBuilder.java @@ -123,7 +123,7 @@ public interface CreateDocumentRequestOrBuilder * Otherwise, an `ALREADY_EXISTS` error is returned. * * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an + * standard with a length limit of 128 characters. Otherwise, an * `INVALID_ARGUMENT` error is returned. * * @@ -152,7 +152,7 @@ public interface CreateDocumentRequestOrBuilder * Otherwise, an `ALREADY_EXISTS` error is returned. * * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an + * standard with a length limit of 128 characters. Otherwise, an * `INVALID_ARGUMENT` error is returned. * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateIdentityMappingStoreRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateIdentityMappingStoreRequest.java new file mode 100644 index 000000000000..fe59dbbd1abc --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateIdentityMappingStoreRequest.java @@ -0,0 +1,1661 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for
            + * [IdentityMappingStoreService.CreateIdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.CreateIdentityMappingStore]
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest} + */ +@com.google.protobuf.Generated +public final class CreateIdentityMappingStoreRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest) + CreateIdentityMappingStoreRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateIdentityMappingStoreRequest"); + } + + // Use CreateIdentityMappingStoreRequest.newBuilder() to construct. + private CreateIdentityMappingStoreRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateIdentityMappingStoreRequest() { + parent_ = ""; + identityMappingStoreId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateIdentityMappingStoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateIdentityMappingStoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest.class, + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest.Builder + .class); + } + + private int bitField0_; + private int cmekOptionsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object cmekOptions_; + + public enum CmekOptionsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CMEK_CONFIG_NAME(5), + DISABLE_CMEK(6), + CMEKOPTIONS_NOT_SET(0); + private final int value; + + private CmekOptionsCase(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 CmekOptionsCase valueOf(int value) { + return forNumber(value); + } + + public static CmekOptionsCase forNumber(int value) { + switch (value) { + case 5: + return CMEK_CONFIG_NAME; + case 6: + return DISABLE_CMEK; + case 0: + return CMEKOPTIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public CmekOptionsCase getCmekOptionsCase() { + return CmekOptionsCase.forNumber(cmekOptionsCase_); + } + + public static final int CMEK_CONFIG_NAME_FIELD_NUMBER = 5; + + /** + * + * + *
            +   * Resource name of the CmekConfig to use for protecting this Identity
            +   * Mapping Store.
            +   * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return Whether the cmekConfigName field is set. + */ + public boolean hasCmekConfigName() { + return cmekOptionsCase_ == 5; + } + + /** + * + * + *
            +   * Resource name of the CmekConfig to use for protecting this Identity
            +   * Mapping Store.
            +   * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return The cmekConfigName. + */ + public java.lang.String getCmekConfigName() { + java.lang.Object ref = ""; + if (cmekOptionsCase_ == 5) { + ref = cmekOptions_; + } + if (ref instanceof java.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 (cmekOptionsCase_ == 5) { + cmekOptions_ = s; + } + return s; + } + } + + /** + * + * + *
            +   * Resource name of the CmekConfig to use for protecting this Identity
            +   * Mapping Store.
            +   * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for cmekConfigName. + */ + public com.google.protobuf.ByteString getCmekConfigNameBytes() { + java.lang.Object ref = ""; + if (cmekOptionsCase_ == 5) { + ref = cmekOptions_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (cmekOptionsCase_ == 5) { + cmekOptions_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISABLE_CMEK_FIELD_NUMBER = 6; + + /** + * + * + *
            +   * Identity Mapping Store without CMEK protections. If a default CmekConfig
            +   * is set for the project, setting this field will override the default
            +   * CmekConfig as well.
            +   * 
            + * + * bool disable_cmek = 6; + * + * @return Whether the disableCmek field is set. + */ + @java.lang.Override + public boolean hasDisableCmek() { + return cmekOptionsCase_ == 6; + } + + /** + * + * + *
            +   * Identity Mapping Store without CMEK protections. If a default CmekConfig
            +   * is set for the project, setting this field will override the default
            +   * CmekConfig as well.
            +   * 
            + * + * bool disable_cmek = 6; + * + * @return The disableCmek. + */ + @java.lang.Override + public boolean getDisableCmek() { + if (cmekOptionsCase_ == 6) { + return (java.lang.Boolean) cmekOptions_; + } + return false; + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent collection resource name, such as
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent collection resource name, such as
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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 IDENTITY_MAPPING_STORE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object identityMappingStoreId_ = ""; + + /** + * + * + *
            +   * Required. The ID of the Identity Mapping Store to create.
            +   *
            +   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
            +   * (_), and hyphens (-). The maximum length is 63 characters.
            +   * 
            + * + * string identity_mapping_store_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The identityMappingStoreId. + */ + @java.lang.Override + public java.lang.String getIdentityMappingStoreId() { + java.lang.Object ref = identityMappingStoreId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityMappingStoreId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The ID of the Identity Mapping Store to create.
            +   *
            +   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
            +   * (_), and hyphens (-). The maximum length is 63 characters.
            +   * 
            + * + * string identity_mapping_store_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for identityMappingStoreId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentityMappingStoreIdBytes() { + java.lang.Object ref = identityMappingStoreId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityMappingStoreId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IDENTITY_MAPPING_STORE_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1beta.IdentityMappingStore identityMappingStore_; + + /** + * + * + *
            +   * Required. The Identity Mapping Store to create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_store = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the identityMappingStore field is set. + */ + @java.lang.Override + public boolean hasIdentityMappingStore() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The Identity Mapping Store to create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_store = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The identityMappingStore. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdentityMappingStore getIdentityMappingStore() { + return identityMappingStore_ == null + ? com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.getDefaultInstance() + : identityMappingStore_; + } + + /** + * + * + *
            +   * Required. The Identity Mapping Store to create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_store = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreOrBuilder + getIdentityMappingStoreOrBuilder() { + return identityMappingStore_ == null + ? com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.getDefaultInstance() + : identityMappingStore_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identityMappingStoreId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, identityMappingStoreId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getIdentityMappingStore()); + } + if (cmekOptionsCase_ == 5) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, cmekOptions_); + } + if (cmekOptionsCase_ == 6) { + output.writeBool(6, (boolean) ((java.lang.Boolean) cmekOptions_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identityMappingStoreId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, identityMappingStoreId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getIdentityMappingStore()); + } + if (cmekOptionsCase_ == 5) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, cmekOptions_); + } + if (cmekOptionsCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 6, (boolean) ((java.lang.Boolean) cmekOptions_)); + } + 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.v1beta.CreateIdentityMappingStoreRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest other = + (com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getIdentityMappingStoreId().equals(other.getIdentityMappingStoreId())) return false; + if (hasIdentityMappingStore() != other.hasIdentityMappingStore()) return false; + if (hasIdentityMappingStore()) { + if (!getIdentityMappingStore().equals(other.getIdentityMappingStore())) return false; + } + if (!getCmekOptionsCase().equals(other.getCmekOptionsCase())) return false; + switch (cmekOptionsCase_) { + case 5: + if (!getCmekConfigName().equals(other.getCmekConfigName())) return false; + break; + case 6: + if (getDisableCmek() != other.getDisableCmek()) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + IDENTITY_MAPPING_STORE_ID_FIELD_NUMBER; + hash = (53 * hash) + getIdentityMappingStoreId().hashCode(); + if (hasIdentityMappingStore()) { + hash = (37 * hash) + IDENTITY_MAPPING_STORE_FIELD_NUMBER; + hash = (53 * hash) + getIdentityMappingStore().hashCode(); + } + switch (cmekOptionsCase_) { + case 5: + hash = (37 * hash) + CMEK_CONFIG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCmekConfigName().hashCode(); + break; + case 6: + hash = (37 * hash) + DISABLE_CMEK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableCmek()); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest 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.v1beta.CreateIdentityMappingStoreRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest parseFrom( + 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.v1beta.CreateIdentityMappingStoreRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [IdentityMappingStoreService.CreateIdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.CreateIdentityMappingStore]
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest) + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateIdentityMappingStoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateIdentityMappingStoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest.class, + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetIdentityMappingStoreFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + identityMappingStoreId_ = ""; + identityMappingStore_ = null; + if (identityMappingStoreBuilder_ != null) { + identityMappingStoreBuilder_.dispose(); + identityMappingStoreBuilder_ = null; + } + cmekOptionsCase_ = 0; + cmekOptions_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateIdentityMappingStoreRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest build() { + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest + buildPartial() { + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest result = + new com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.identityMappingStoreId_ = identityMappingStoreId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.identityMappingStore_ = + identityMappingStoreBuilder_ == null + ? identityMappingStore_ + : identityMappingStoreBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest result) { + result.cmekOptionsCase_ = cmekOptionsCase_; + result.cmekOptions_ = this.cmekOptions_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getIdentityMappingStoreId().isEmpty()) { + identityMappingStoreId_ = other.identityMappingStoreId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasIdentityMappingStore()) { + mergeIdentityMappingStore(other.getIdentityMappingStore()); + } + switch (other.getCmekOptionsCase()) { + case CMEK_CONFIG_NAME: + { + cmekOptionsCase_ = 5; + cmekOptions_ = other.cmekOptions_; + onChanged(); + break; + } + case DISABLE_CMEK: + { + setDisableCmek(other.getDisableCmek()); + break; + } + case CMEKOPTIONS_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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + identityMappingStoreId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetIdentityMappingStoreFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + cmekOptionsCase_ = 5; + cmekOptions_ = s; + break; + } // case 42 + case 48: + { + cmekOptions_ = input.readBool(); + cmekOptionsCase_ = 6; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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 cmekOptionsCase_ = 0; + private java.lang.Object cmekOptions_; + + public CmekOptionsCase getCmekOptionsCase() { + return CmekOptionsCase.forNumber(cmekOptionsCase_); + } + + public Builder clearCmekOptions() { + cmekOptionsCase_ = 0; + cmekOptions_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
            +     * Resource name of the CmekConfig to use for protecting this Identity
            +     * Mapping Store.
            +     * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return Whether the cmekConfigName field is set. + */ + @java.lang.Override + public boolean hasCmekConfigName() { + return cmekOptionsCase_ == 5; + } + + /** + * + * + *
            +     * Resource name of the CmekConfig to use for protecting this Identity
            +     * Mapping Store.
            +     * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return The cmekConfigName. + */ + @java.lang.Override + public java.lang.String getCmekConfigName() { + java.lang.Object ref = ""; + if (cmekOptionsCase_ == 5) { + ref = cmekOptions_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (cmekOptionsCase_ == 5) { + cmekOptions_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Resource name of the CmekConfig to use for protecting this Identity
            +     * Mapping Store.
            +     * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for cmekConfigName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCmekConfigNameBytes() { + java.lang.Object ref = ""; + if (cmekOptionsCase_ == 5) { + ref = cmekOptions_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (cmekOptionsCase_ == 5) { + cmekOptions_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Resource name of the CmekConfig to use for protecting this Identity
            +     * Mapping Store.
            +     * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @param value The cmekConfigName to set. + * @return This builder for chaining. + */ + public Builder setCmekConfigName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cmekOptionsCase_ = 5; + cmekOptions_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Resource name of the CmekConfig to use for protecting this Identity
            +     * Mapping Store.
            +     * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearCmekConfigName() { + if (cmekOptionsCase_ == 5) { + cmekOptionsCase_ = 0; + cmekOptions_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Resource name of the CmekConfig to use for protecting this Identity
            +     * Mapping Store.
            +     * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for cmekConfigName to set. + * @return This builder for chaining. + */ + public Builder setCmekConfigNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cmekOptionsCase_ = 5; + cmekOptions_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identity Mapping Store without CMEK protections. If a default CmekConfig
            +     * is set for the project, setting this field will override the default
            +     * CmekConfig as well.
            +     * 
            + * + * bool disable_cmek = 6; + * + * @return Whether the disableCmek field is set. + */ + public boolean hasDisableCmek() { + return cmekOptionsCase_ == 6; + } + + /** + * + * + *
            +     * Identity Mapping Store without CMEK protections. If a default CmekConfig
            +     * is set for the project, setting this field will override the default
            +     * CmekConfig as well.
            +     * 
            + * + * bool disable_cmek = 6; + * + * @return The disableCmek. + */ + public boolean getDisableCmek() { + if (cmekOptionsCase_ == 6) { + return (java.lang.Boolean) cmekOptions_; + } + return false; + } + + /** + * + * + *
            +     * Identity Mapping Store without CMEK protections. If a default CmekConfig
            +     * is set for the project, setting this field will override the default
            +     * CmekConfig as well.
            +     * 
            + * + * bool disable_cmek = 6; + * + * @param value The disableCmek to set. + * @return This builder for chaining. + */ + public Builder setDisableCmek(boolean value) { + + cmekOptionsCase_ = 6; + cmekOptions_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identity Mapping Store without CMEK protections. If a default CmekConfig
            +     * is set for the project, setting this field will override the default
            +     * CmekConfig as well.
            +     * 
            + * + * bool disable_cmek = 6; + * + * @return This builder for chaining. + */ + public Builder clearDisableCmek() { + if (cmekOptionsCase_ == 6) { + cmekOptionsCase_ = 0; + cmekOptions_ = null; + onChanged(); + } + return this; + } + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The parent collection resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent collection resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent collection resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent collection resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent collection resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object identityMappingStoreId_ = ""; + + /** + * + * + *
            +     * Required. The ID of the Identity Mapping Store to create.
            +     *
            +     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
            +     * (_), and hyphens (-). The maximum length is 63 characters.
            +     * 
            + * + * string identity_mapping_store_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The identityMappingStoreId. + */ + public java.lang.String getIdentityMappingStoreId() { + java.lang.Object ref = identityMappingStoreId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityMappingStoreId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The ID of the Identity Mapping Store to create.
            +     *
            +     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
            +     * (_), and hyphens (-). The maximum length is 63 characters.
            +     * 
            + * + * string identity_mapping_store_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for identityMappingStoreId. + */ + public com.google.protobuf.ByteString getIdentityMappingStoreIdBytes() { + java.lang.Object ref = identityMappingStoreId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityMappingStoreId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The ID of the Identity Mapping Store to create.
            +     *
            +     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
            +     * (_), and hyphens (-). The maximum length is 63 characters.
            +     * 
            + * + * string identity_mapping_store_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The identityMappingStoreId to set. + * @return This builder for chaining. + */ + public Builder setIdentityMappingStoreId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + identityMappingStoreId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The ID of the Identity Mapping Store to create.
            +     *
            +     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
            +     * (_), and hyphens (-). The maximum length is 63 characters.
            +     * 
            + * + * string identity_mapping_store_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearIdentityMappingStoreId() { + identityMappingStoreId_ = getDefaultInstance().getIdentityMappingStoreId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The ID of the Identity Mapping Store to create.
            +     *
            +     * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
            +     * (_), and hyphens (-). The maximum length is 63 characters.
            +     * 
            + * + * string identity_mapping_store_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for identityMappingStoreId to set. + * @return This builder for chaining. + */ + public Builder setIdentityMappingStoreIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + identityMappingStoreId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.IdentityMappingStore identityMappingStore_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.Builder, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreOrBuilder> + identityMappingStoreBuilder_; + + /** + * + * + *
            +     * Required. The Identity Mapping Store to create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_store = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the identityMappingStore field is set. + */ + public boolean hasIdentityMappingStore() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Required. The Identity Mapping Store to create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_store = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The identityMappingStore. + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingStore getIdentityMappingStore() { + if (identityMappingStoreBuilder_ == null) { + return identityMappingStore_ == null + ? com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.getDefaultInstance() + : identityMappingStore_; + } else { + return identityMappingStoreBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The Identity Mapping Store to create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_store = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIdentityMappingStore( + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore value) { + if (identityMappingStoreBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + identityMappingStore_ = value; + } else { + identityMappingStoreBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Identity Mapping Store to create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_store = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setIdentityMappingStore( + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.Builder builderForValue) { + if (identityMappingStoreBuilder_ == null) { + identityMappingStore_ = builderForValue.build(); + } else { + identityMappingStoreBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Identity Mapping Store to create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_store = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeIdentityMappingStore( + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore value) { + if (identityMappingStoreBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && identityMappingStore_ != null + && identityMappingStore_ + != com.google.cloud.discoveryengine.v1beta.IdentityMappingStore + .getDefaultInstance()) { + getIdentityMappingStoreBuilder().mergeFrom(value); + } else { + identityMappingStore_ = value; + } + } else { + identityMappingStoreBuilder_.mergeFrom(value); + } + if (identityMappingStore_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The Identity Mapping Store to create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_store = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearIdentityMappingStore() { + bitField0_ = (bitField0_ & ~0x00000010); + identityMappingStore_ = null; + if (identityMappingStoreBuilder_ != null) { + identityMappingStoreBuilder_.dispose(); + identityMappingStoreBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Identity Mapping Store to create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_store = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.Builder + getIdentityMappingStoreBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetIdentityMappingStoreFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The Identity Mapping Store to create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_store = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreOrBuilder + getIdentityMappingStoreOrBuilder() { + if (identityMappingStoreBuilder_ != null) { + return identityMappingStoreBuilder_.getMessageOrBuilder(); + } else { + return identityMappingStore_ == null + ? com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.getDefaultInstance() + : identityMappingStore_; + } + } + + /** + * + * + *
            +     * Required. The Identity Mapping Store to create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_store = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.Builder, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreOrBuilder> + internalGetIdentityMappingStoreFieldBuilder() { + if (identityMappingStoreBuilder_ == null) { + identityMappingStoreBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.Builder, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreOrBuilder>( + getIdentityMappingStore(), getParentForChildren(), isClean()); + identityMappingStore_ = null; + } + return identityMappingStoreBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest) + private static final com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateIdentityMappingStoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.CreateIdentityMappingStoreRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateIdentityMappingStoreRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateIdentityMappingStoreRequestOrBuilder.java new file mode 100644 index 000000000000..2809f6903791 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateIdentityMappingStoreRequestOrBuilder.java @@ -0,0 +1,211 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface CreateIdentityMappingStoreRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Resource name of the CmekConfig to use for protecting this Identity
            +   * Mapping Store.
            +   * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return Whether the cmekConfigName field is set. + */ + boolean hasCmekConfigName(); + + /** + * + * + *
            +   * Resource name of the CmekConfig to use for protecting this Identity
            +   * Mapping Store.
            +   * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return The cmekConfigName. + */ + java.lang.String getCmekConfigName(); + + /** + * + * + *
            +   * Resource name of the CmekConfig to use for protecting this Identity
            +   * Mapping Store.
            +   * 
            + * + * string cmek_config_name = 5 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for cmekConfigName. + */ + com.google.protobuf.ByteString getCmekConfigNameBytes(); + + /** + * + * + *
            +   * Identity Mapping Store without CMEK protections. If a default CmekConfig
            +   * is set for the project, setting this field will override the default
            +   * CmekConfig as well.
            +   * 
            + * + * bool disable_cmek = 6; + * + * @return Whether the disableCmek field is set. + */ + boolean hasDisableCmek(); + + /** + * + * + *
            +   * Identity Mapping Store without CMEK protections. If a default CmekConfig
            +   * is set for the project, setting this field will override the default
            +   * CmekConfig as well.
            +   * 
            + * + * bool disable_cmek = 6; + * + * @return The disableCmek. + */ + boolean getDisableCmek(); + + /** + * + * + *
            +   * Required. The parent collection resource name, such as
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent collection resource name, such as
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. The ID of the Identity Mapping Store to create.
            +   *
            +   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
            +   * (_), and hyphens (-). The maximum length is 63 characters.
            +   * 
            + * + * string identity_mapping_store_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The identityMappingStoreId. + */ + java.lang.String getIdentityMappingStoreId(); + + /** + * + * + *
            +   * Required. The ID of the Identity Mapping Store to create.
            +   *
            +   * The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores
            +   * (_), and hyphens (-). The maximum length is 63 characters.
            +   * 
            + * + * string identity_mapping_store_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for identityMappingStoreId. + */ + com.google.protobuf.ByteString getIdentityMappingStoreIdBytes(); + + /** + * + * + *
            +   * Required. The Identity Mapping Store to create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_store = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the identityMappingStore field is set. + */ + boolean hasIdentityMappingStore(); + + /** + * + * + *
            +   * Required. The Identity Mapping Store to create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_store = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The identityMappingStore. + */ + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore getIdentityMappingStore(); + + /** + * + * + *
            +   * Required. The Identity Mapping Store to create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_store = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreOrBuilder + getIdentityMappingStoreOrBuilder(); + + com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest.CmekOptionsCase + getCmekOptionsCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateLicenseConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateLicenseConfigRequest.java new file mode 100644 index 000000000000..dec148c17fa3 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateLicenseConfigRequest.java @@ -0,0 +1,1202 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for
            + * [LicenseConfigService.CreateLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.CreateLicenseConfig]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest} + */ +@com.google.protobuf.Generated +public final class CreateLicenseConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest) + CreateLicenseConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateLicenseConfigRequest"); + } + + // Use CreateLicenseConfigRequest.newBuilder() to construct. + private CreateLicenseConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateLicenseConfigRequest() { + parent_ = ""; + licenseConfigId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent resource name, such as
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent resource name, such as
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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 LICENSE_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.LicenseConfig licenseConfig_; + + /** + * + * + *
            +   * Required. The
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +   * create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the licenseConfig field is set. + */ + @java.lang.Override + public boolean hasLicenseConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +   * create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfig getLicenseConfig() { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + + /** + * + * + *
            +   * Required. The
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +   * create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder + getLicenseConfigOrBuilder() { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + + public static final int LICENSE_CONFIG_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object licenseConfigId_ = ""; + + /** + * + * + *
            +   * Optional. The ID to use for the
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which
            +   * will become the final component of the
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s
            +   * resource name. We are using the tier (product edition) name as the license
            +   * config id such as `search` or `search_and_assistant`.
            +   * 
            + * + * string license_config_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The licenseConfigId. + */ + @java.lang.Override + public java.lang.String getLicenseConfigId() { + java.lang.Object ref = licenseConfigId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseConfigId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The ID to use for the
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which
            +   * will become the final component of the
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s
            +   * resource name. We are using the tier (product edition) name as the license
            +   * config id such as `search` or `search_and_assistant`.
            +   * 
            + * + * string license_config_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for licenseConfigId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLicenseConfigIdBytes() { + java.lang.Object ref = licenseConfigId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getLicenseConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseConfigId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, licenseConfigId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getLicenseConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseConfigId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, licenseConfigId_); + } + 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.v1beta.CreateLicenseConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest other = + (com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasLicenseConfig() != other.hasLicenseConfig()) return false; + if (hasLicenseConfig()) { + if (!getLicenseConfig().equals(other.getLicenseConfig())) return false; + } + if (!getLicenseConfigId().equals(other.getLicenseConfigId())) 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 (hasLicenseConfig()) { + hash = (37 * hash) + LICENSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfig().hashCode(); + } + hash = (37 * hash) + LICENSE_CONFIG_ID_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfigId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest 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.v1beta.CreateLicenseConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest parseFrom( + 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.v1beta.CreateLicenseConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [LicenseConfigService.CreateLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.CreateLicenseConfig]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest) + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetLicenseConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + licenseConfig_ = null; + if (licenseConfigBuilder_ != null) { + licenseConfigBuilder_.dispose(); + licenseConfigBuilder_ = null; + } + licenseConfigId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateLicenseConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest build() { + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest result = + new com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.licenseConfig_ = + licenseConfigBuilder_ == null ? licenseConfig_ : licenseConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.licenseConfigId_ = licenseConfigId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasLicenseConfig()) { + mergeLicenseConfig(other.getLicenseConfig()); + } + if (!other.getLicenseConfigId().isEmpty()) { + licenseConfigId_ = other.licenseConfigId_; + 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( + internalGetLicenseConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + licenseConfigId_ = 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 parent resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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.discoveryengine.v1beta.LicenseConfig licenseConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LicenseConfig, + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder> + licenseConfigBuilder_; + + /** + * + * + *
            +     * Required. The
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the licenseConfig field is set. + */ + public boolean hasLicenseConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseConfig. + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfig getLicenseConfig() { + if (licenseConfigBuilder_ == null) { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } else { + return licenseConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLicenseConfig(com.google.cloud.discoveryengine.v1beta.LicenseConfig value) { + if (licenseConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + licenseConfig_ = value; + } else { + licenseConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLicenseConfig( + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder builderForValue) { + if (licenseConfigBuilder_ == null) { + licenseConfig_ = builderForValue.build(); + } else { + licenseConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeLicenseConfig(com.google.cloud.discoveryengine.v1beta.LicenseConfig value) { + if (licenseConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && licenseConfig_ != null + && licenseConfig_ + != com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance()) { + getLicenseConfigBuilder().mergeFrom(value); + } else { + licenseConfig_ = value; + } + } else { + licenseConfigBuilder_.mergeFrom(value); + } + if (licenseConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearLicenseConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + licenseConfig_ = null; + if (licenseConfigBuilder_ != null) { + licenseConfigBuilder_.dispose(); + licenseConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder getLicenseConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetLicenseConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder + getLicenseConfigOrBuilder() { + if (licenseConfigBuilder_ != null) { + return licenseConfigBuilder_.getMessageOrBuilder(); + } else { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + } + + /** + * + * + *
            +     * Required. The
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LicenseConfig, + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder> + internalGetLicenseConfigFieldBuilder() { + if (licenseConfigBuilder_ == null) { + licenseConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LicenseConfig, + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder>( + getLicenseConfig(), getParentForChildren(), isClean()); + licenseConfig_ = null; + } + return licenseConfigBuilder_; + } + + private java.lang.Object licenseConfigId_ = ""; + + /** + * + * + *
            +     * Optional. The ID to use for the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which
            +     * will become the final component of the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s
            +     * resource name. We are using the tier (product edition) name as the license
            +     * config id such as `search` or `search_and_assistant`.
            +     * 
            + * + * string license_config_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The licenseConfigId. + */ + public java.lang.String getLicenseConfigId() { + java.lang.Object ref = licenseConfigId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseConfigId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The ID to use for the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which
            +     * will become the final component of the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s
            +     * resource name. We are using the tier (product edition) name as the license
            +     * config id such as `search` or `search_and_assistant`.
            +     * 
            + * + * string license_config_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for licenseConfigId. + */ + public com.google.protobuf.ByteString getLicenseConfigIdBytes() { + java.lang.Object ref = licenseConfigId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The ID to use for the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which
            +     * will become the final component of the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s
            +     * resource name. We are using the tier (product edition) name as the license
            +     * config id such as `search` or `search_and_assistant`.
            +     * 
            + * + * string license_config_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The licenseConfigId to set. + * @return This builder for chaining. + */ + public Builder setLicenseConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + licenseConfigId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The ID to use for the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which
            +     * will become the final component of the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s
            +     * resource name. We are using the tier (product edition) name as the license
            +     * config id such as `search` or `search_and_assistant`.
            +     * 
            + * + * string license_config_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLicenseConfigId() { + licenseConfigId_ = getDefaultInstance().getLicenseConfigId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The ID to use for the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which
            +     * will become the final component of the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s
            +     * resource name. We are using the tier (product edition) name as the license
            +     * config id such as `search` or `search_and_assistant`.
            +     * 
            + * + * string license_config_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for licenseConfigId to set. + * @return This builder for chaining. + */ + public Builder setLicenseConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + licenseConfigId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest) + private static final com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateLicenseConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.CreateLicenseConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateLicenseConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateLicenseConfigRequestOrBuilder.java new file mode 100644 index 000000000000..58cbf1b5595e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateLicenseConfigRequestOrBuilder.java @@ -0,0 +1,145 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface CreateLicenseConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent resource name, such as
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent resource name, such as
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. The
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +   * create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the licenseConfig field is set. + */ + boolean hasLicenseConfig(); + + /** + * + * + *
            +   * Required. The
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +   * create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseConfig. + */ + com.google.cloud.discoveryengine.v1beta.LicenseConfig getLicenseConfig(); + + /** + * + * + *
            +   * Required. The
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +   * create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder getLicenseConfigOrBuilder(); + + /** + * + * + *
            +   * Optional. The ID to use for the
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which
            +   * will become the final component of the
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s
            +   * resource name. We are using the tier (product edition) name as the license
            +   * config id such as `search` or `search_and_assistant`.
            +   * 
            + * + * string license_config_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The licenseConfigId. + */ + java.lang.String getLicenseConfigId(); + + /** + * + * + *
            +   * Optional. The ID to use for the
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which
            +   * will become the final component of the
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s
            +   * resource name. We are using the tier (product edition) name as the license
            +   * config id such as `search` or `search_and_assistant`.
            +   * 
            + * + * string license_config_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for licenseConfigId. + */ + com.google.protobuf.ByteString getLicenseConfigIdBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateServingConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateServingConfigRequest.java new file mode 100644 index 000000000000..a886223e99cd --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateServingConfigRequest.java @@ -0,0 +1,1167 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/serving_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request for CreateServingConfig method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateServingConfigRequest} + */ +@com.google.protobuf.Generated +public final class CreateServingConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.CreateServingConfigRequest) + CreateServingConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateServingConfigRequest"); + } + + // Use CreateServingConfigRequest.newBuilder() to construct. + private CreateServingConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateServingConfigRequest() { + parent_ = ""; + servingConfigId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateServingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateServingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. Full resource name of parent. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +   * 
            + * + * + * 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. Full resource name of parent. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +   * 
            + * + * + * 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 SERVING_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.ServingConfig servingConfig_; + + /** + * + * + *
            +   * Required. The ServingConfig to create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the servingConfig field is set. + */ + @java.lang.Override + public boolean hasServingConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The ServingConfig to create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The servingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ServingConfig getServingConfig() { + return servingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ServingConfig.getDefaultInstance() + : servingConfig_; + } + + /** + * + * + *
            +   * Required. The ServingConfig to create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ServingConfigOrBuilder + getServingConfigOrBuilder() { + return servingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ServingConfig.getDefaultInstance() + : servingConfig_; + } + + public static final int SERVING_CONFIG_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object servingConfigId_ = ""; + + /** + * + * + *
            +   * Required. The ID to use for the ServingConfig, which will become the final
            +   * component of the ServingConfig's resource name.
            +   *
            +   * This value should be 4-63 characters, and valid characters
            +   * are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
            +   * 
            + * + * string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The servingConfigId. + */ + @java.lang.Override + public java.lang.String getServingConfigId() { + java.lang.Object ref = servingConfigId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servingConfigId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The ID to use for the ServingConfig, which will become the final
            +   * component of the ServingConfig's resource name.
            +   *
            +   * This value should be 4-63 characters, and valid characters
            +   * are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
            +   * 
            + * + * string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for servingConfigId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServingConfigIdBytes() { + java.lang.Object ref = servingConfigId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servingConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getServingConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(servingConfigId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, servingConfigId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getServingConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(servingConfigId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, servingConfigId_); + } + 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.v1beta.CreateServingConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest other = + (com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasServingConfig() != other.hasServingConfig()) return false; + if (hasServingConfig()) { + if (!getServingConfig().equals(other.getServingConfig())) return false; + } + if (!getServingConfigId().equals(other.getServingConfigId())) 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 (hasServingConfig()) { + hash = (37 * hash) + SERVING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getServingConfig().hashCode(); + } + hash = (37 * hash) + SERVING_CONFIG_ID_FIELD_NUMBER; + hash = (53 * hash) + getServingConfigId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest 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.v1beta.CreateServingConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest parseFrom( + 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.v1beta.CreateServingConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request for CreateServingConfig method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.CreateServingConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.CreateServingConfigRequest) + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateServingConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateServingConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetServingConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + servingConfig_ = null; + if (servingConfigBuilder_ != null) { + servingConfigBuilder_.dispose(); + servingConfigBuilder_ = null; + } + servingConfigId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_CreateServingConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest build() { + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest result = + new com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.servingConfig_ = + servingConfigBuilder_ == null ? servingConfig_ : servingConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.servingConfigId_ = servingConfigId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasServingConfig()) { + mergeServingConfig(other.getServingConfig()); + } + if (!other.getServingConfigId().isEmpty()) { + servingConfigId_ = other.servingConfigId_; + 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( + internalGetServingConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + servingConfigId_ = 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. Full resource name of parent. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +     * 
            + * + * + * 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. Full resource name of parent. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +     * 
            + * + * + * 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. Full resource name of parent. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +     * 
            + * + * + * 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. Full resource name of parent. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +     * 
            + * + * + * 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. Full resource name of parent. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +     * 
            + * + * + * 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.discoveryengine.v1beta.ServingConfig servingConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.ServingConfig, + com.google.cloud.discoveryengine.v1beta.ServingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ServingConfigOrBuilder> + servingConfigBuilder_; + + /** + * + * + *
            +     * Required. The ServingConfig to create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the servingConfig field is set. + */ + public boolean hasServingConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The ServingConfig to create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The servingConfig. + */ + public com.google.cloud.discoveryengine.v1beta.ServingConfig getServingConfig() { + if (servingConfigBuilder_ == null) { + return servingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ServingConfig.getDefaultInstance() + : servingConfig_; + } else { + return servingConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The ServingConfig to create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setServingConfig(com.google.cloud.discoveryengine.v1beta.ServingConfig value) { + if (servingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + servingConfig_ = value; + } else { + servingConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The ServingConfig to create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setServingConfig( + com.google.cloud.discoveryengine.v1beta.ServingConfig.Builder builderForValue) { + if (servingConfigBuilder_ == null) { + servingConfig_ = builderForValue.build(); + } else { + servingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The ServingConfig to create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeServingConfig(com.google.cloud.discoveryengine.v1beta.ServingConfig value) { + if (servingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && servingConfig_ != null + && servingConfig_ + != com.google.cloud.discoveryengine.v1beta.ServingConfig.getDefaultInstance()) { + getServingConfigBuilder().mergeFrom(value); + } else { + servingConfig_ = value; + } + } else { + servingConfigBuilder_.mergeFrom(value); + } + if (servingConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The ServingConfig to create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearServingConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + servingConfig_ = null; + if (servingConfigBuilder_ != null) { + servingConfigBuilder_.dispose(); + servingConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The ServingConfig to create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.ServingConfig.Builder getServingConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetServingConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The ServingConfig to create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.ServingConfigOrBuilder + getServingConfigOrBuilder() { + if (servingConfigBuilder_ != null) { + return servingConfigBuilder_.getMessageOrBuilder(); + } else { + return servingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ServingConfig.getDefaultInstance() + : servingConfig_; + } + } + + /** + * + * + *
            +     * Required. The ServingConfig to create.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.ServingConfig, + com.google.cloud.discoveryengine.v1beta.ServingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ServingConfigOrBuilder> + internalGetServingConfigFieldBuilder() { + if (servingConfigBuilder_ == null) { + servingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.ServingConfig, + com.google.cloud.discoveryengine.v1beta.ServingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ServingConfigOrBuilder>( + getServingConfig(), getParentForChildren(), isClean()); + servingConfig_ = null; + } + return servingConfigBuilder_; + } + + private java.lang.Object servingConfigId_ = ""; + + /** + * + * + *
            +     * Required. The ID to use for the ServingConfig, which will become the final
            +     * component of the ServingConfig's resource name.
            +     *
            +     * This value should be 4-63 characters, and valid characters
            +     * are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
            +     * 
            + * + * string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The servingConfigId. + */ + public java.lang.String getServingConfigId() { + java.lang.Object ref = servingConfigId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + servingConfigId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The ID to use for the ServingConfig, which will become the final
            +     * component of the ServingConfig's resource name.
            +     *
            +     * This value should be 4-63 characters, and valid characters
            +     * are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
            +     * 
            + * + * string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for servingConfigId. + */ + public com.google.protobuf.ByteString getServingConfigIdBytes() { + java.lang.Object ref = servingConfigId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + servingConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The ID to use for the ServingConfig, which will become the final
            +     * component of the ServingConfig's resource name.
            +     *
            +     * This value should be 4-63 characters, and valid characters
            +     * are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
            +     * 
            + * + * string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The servingConfigId to set. + * @return This builder for chaining. + */ + public Builder setServingConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + servingConfigId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The ID to use for the ServingConfig, which will become the final
            +     * component of the ServingConfig's resource name.
            +     *
            +     * This value should be 4-63 characters, and valid characters
            +     * are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
            +     * 
            + * + * string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearServingConfigId() { + servingConfigId_ = getDefaultInstance().getServingConfigId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The ID to use for the ServingConfig, which will become the final
            +     * component of the ServingConfig's resource name.
            +     *
            +     * This value should be 4-63 characters, and valid characters
            +     * are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
            +     * 
            + * + * string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for servingConfigId to set. + * @return This builder for chaining. + */ + public Builder setServingConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + servingConfigId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CreateServingConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.CreateServingConfigRequest) + private static final com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateServingConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.CreateServingConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateServingConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateServingConfigRequestOrBuilder.java new file mode 100644 index 000000000000..743b200485fd --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateServingConfigRequestOrBuilder.java @@ -0,0 +1,137 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/serving_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface CreateServingConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.CreateServingConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Full resource name of parent. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. Full resource name of parent. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. The ServingConfig to create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the servingConfig field is set. + */ + boolean hasServingConfig(); + + /** + * + * + *
            +   * Required. The ServingConfig to create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The servingConfig. + */ + com.google.cloud.discoveryengine.v1beta.ServingConfig getServingConfig(); + + /** + * + * + *
            +   * Required. The ServingConfig to create.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ServingConfig serving_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.ServingConfigOrBuilder getServingConfigOrBuilder(); + + /** + * + * + *
            +   * Required. The ID to use for the ServingConfig, which will become the final
            +   * component of the ServingConfig's resource name.
            +   *
            +   * This value should be 4-63 characters, and valid characters
            +   * are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
            +   * 
            + * + * string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The servingConfigId. + */ + java.lang.String getServingConfigId(); + + /** + * + * + *
            +   * Required. The ID to use for the ServingConfig, which will become the final
            +   * component of the ServingConfig's resource name.
            +   *
            +   * This value should be 4-63 characters, and valid characters
            +   * are /[a-zA-Z0-9][a-zA-Z0-9_-]+/.
            +   * 
            + * + * string serving_config_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for servingConfigId. + */ + com.google.protobuf.ByteString getServingConfigIdBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSessionRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSessionRequest.java index 3b84d95c3598..d52e211f39e6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSessionRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSessionRequest.java @@ -53,6 +53,7 @@ private CreateSessionRequest(com.google.protobuf.GeneratedMessage.Builder bui private CreateSessionRequest() { parent_ = ""; + sessionId_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -189,6 +190,69 @@ public com.google.cloud.discoveryengine.v1beta.SessionOrBuilder getSessionOrBuil : session_; } + public static final int SESSION_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object sessionId_ = ""; + + /** + * + * + *
            +   * Optional. The ID to use for the session, which will become the final
            +   * component of the session's resource name.
            +   *
            +   * This value should be 1-63 characters, and valid characters
            +   * are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will
            +   * be generated.
            +   * 
            + * + * string session_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sessionId. + */ + @java.lang.Override + public java.lang.String getSessionId() { + java.lang.Object ref = sessionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sessionId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The ID to use for the session, which will become the final
            +   * component of the session's resource name.
            +   *
            +   * This value should be 1-63 characters, and valid characters
            +   * are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will
            +   * be generated.
            +   * 
            + * + * string session_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sessionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSessionIdBytes() { + java.lang.Object ref = sessionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -209,6 +273,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getSession()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sessionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, sessionId_); + } getUnknownFields().writeTo(output); } @@ -224,6 +291,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSession()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sessionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, sessionId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -245,6 +315,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSession()) { if (!getSession().equals(other.getSession())) return false; } + if (!getSessionId().equals(other.getSessionId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -262,6 +333,8 @@ public int hashCode() { hash = (37 * hash) + SESSION_FIELD_NUMBER; hash = (53 * hash) + getSession().hashCode(); } + hash = (37 * hash) + SESSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getSessionId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -418,6 +491,7 @@ public Builder clear() { sessionBuilder_.dispose(); sessionBuilder_ = null; } + sessionId_ = ""; return this; } @@ -464,6 +538,9 @@ private void buildPartial0( result.session_ = sessionBuilder_ == null ? session_ : sessionBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sessionId_ = sessionId_; + } result.bitField0_ |= to_bitField0_; } @@ -489,6 +566,11 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.CreateSessionRe if (other.hasSession()) { mergeSession(other.getSession()); } + if (!other.getSessionId().isEmpty()) { + sessionId_ = other.sessionId_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -527,6 +609,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + sessionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -885,6 +973,142 @@ public com.google.cloud.discoveryengine.v1beta.SessionOrBuilder getSessionOrBuil return sessionBuilder_; } + private java.lang.Object sessionId_ = ""; + + /** + * + * + *
            +     * Optional. The ID to use for the session, which will become the final
            +     * component of the session's resource name.
            +     *
            +     * This value should be 1-63 characters, and valid characters
            +     * are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will
            +     * be generated.
            +     * 
            + * + * string session_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sessionId. + */ + public java.lang.String getSessionId() { + java.lang.Object ref = sessionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sessionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The ID to use for the session, which will become the final
            +     * component of the session's resource name.
            +     *
            +     * This value should be 1-63 characters, and valid characters
            +     * are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will
            +     * be generated.
            +     * 
            + * + * string session_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sessionId. + */ + public com.google.protobuf.ByteString getSessionIdBytes() { + java.lang.Object ref = sessionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The ID to use for the session, which will become the final
            +     * component of the session's resource name.
            +     *
            +     * This value should be 1-63 characters, and valid characters
            +     * are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will
            +     * be generated.
            +     * 
            + * + * string session_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sessionId to set. + * @return This builder for chaining. + */ + public Builder setSessionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sessionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The ID to use for the session, which will become the final
            +     * component of the session's resource name.
            +     *
            +     * This value should be 1-63 characters, and valid characters
            +     * are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will
            +     * be generated.
            +     * 
            + * + * string session_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSessionId() { + sessionId_ = getDefaultInstance().getSessionId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The ID to use for the session, which will become the final
            +     * component of the session's resource name.
            +     *
            +     * This value should be 1-63 characters, and valid characters
            +     * are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will
            +     * be generated.
            +     * 
            + * + * string session_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for sessionId to set. + * @return This builder for chaining. + */ + public Builder setSessionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sessionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.CreateSessionRequest) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSessionRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSessionRequestOrBuilder.java index 1377ad9d00a3..33dd71033231 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSessionRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/CreateSessionRequestOrBuilder.java @@ -100,4 +100,40 @@ public interface CreateSessionRequestOrBuilder * */ com.google.cloud.discoveryengine.v1beta.SessionOrBuilder getSessionOrBuilder(); + + /** + * + * + *
            +   * Optional. The ID to use for the session, which will become the final
            +   * component of the session's resource name.
            +   *
            +   * This value should be 1-63 characters, and valid characters
            +   * are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will
            +   * be generated.
            +   * 
            + * + * string session_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sessionId. + */ + java.lang.String getSessionId(); + + /** + * + * + *
            +   * Optional. The ID to use for the session, which will become the final
            +   * component of the session's resource name.
            +   *
            +   * This value should be 1-63 characters, and valid characters
            +   * are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will
            +   * be generated.
            +   * 
            + * + * string session_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for sessionId. + */ + com.google.protobuf.ByteString getSessionIdBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStore.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStore.java index 0c0e9f51bf82..9057d7c88ec0 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStore.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStore.java @@ -58,6 +58,9 @@ private DataStore() { solutionTypes_ = emptyIntList(); defaultSchemaId_ = ""; contentConfig_ = 0; + kmsKeyName_ = ""; + identityMappingStore_ = ""; + configurableBillingApproach_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -300,6 +303,182 @@ private ContentConfig(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.DataStore.ContentConfig) } + /** + * + * + *
            +   * Configuration for configurable billing approach.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach} + */ + public enum ConfigurableBillingApproach implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Default value. For Spark and non-Spark non-configurable billing approach.
            +     * 
            + * + * CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED = 0; + */ + CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED(0), + /** + * + * + *
            +     * Use the subscription base + overage billing for indexing core for non
            +     * embedding storage.
            +     * 
            + * + * CONFIGURABLE_SUBSCRIPTION_INDEXING_CORE = 1; + */ + CONFIGURABLE_SUBSCRIPTION_INDEXING_CORE(1), + /** + * + * + *
            +     * Use the consumption pay-as-you-go billing for embedding storage add-on.
            +     * 
            + * + * CONFIGURABLE_CONSUMPTION_EMBEDDING = 2; + */ + CONFIGURABLE_CONSUMPTION_EMBEDDING(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConfigurableBillingApproach"); + } + + /** + * + * + *
            +     * Default value. For Spark and non-Spark non-configurable billing approach.
            +     * 
            + * + * CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED = 0; + */ + public static final int CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Use the subscription base + overage billing for indexing core for non
            +     * embedding storage.
            +     * 
            + * + * CONFIGURABLE_SUBSCRIPTION_INDEXING_CORE = 1; + */ + public static final int CONFIGURABLE_SUBSCRIPTION_INDEXING_CORE_VALUE = 1; + + /** + * + * + *
            +     * Use the consumption pay-as-you-go billing for embedding storage add-on.
            +     * 
            + * + * CONFIGURABLE_CONSUMPTION_EMBEDDING = 2; + */ + public static final int CONFIGURABLE_CONSUMPTION_EMBEDDING_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 ConfigurableBillingApproach 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 ConfigurableBillingApproach forNumber(int value) { + switch (value) { + case 0: + return CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED; + case 1: + return CONFIGURABLE_SUBSCRIPTION_INDEXING_CORE; + case 2: + return CONFIGURABLE_CONSUMPTION_EMBEDDING; + 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 ConfigurableBillingApproach findValueByNumber(int number) { + return ConfigurableBillingApproach.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DataStore.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final ConfigurableBillingApproach[] VALUES = values(); + + public static ConfigurableBillingApproach 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 ConfigurableBillingApproach(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach) + } + public interface BillingEstimationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation) @@ -2030,11 +2209,11 @@ public interface ServingConfigDataStoreOrBuilder * * *
            -     * If set true, the DataStore will not be available for serving search
            -     * requests.
            +     * Optional. If set true, the DataStore will not be available for serving
            +     * search requests.
                  * 
            * - * bool disabled_for_serving = 1; + * bool disabled_for_serving = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The disabledForServing. */ @@ -2096,11 +2275,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -     * If set true, the DataStore will not be available for serving search
            -     * requests.
            +     * Optional. If set true, the DataStore will not be available for serving
            +     * search requests.
                  * 
            * - * bool disabled_for_serving = 1; + * bool disabled_for_serving = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The disabledForServing. */ @@ -2442,11 +2621,11 @@ public Builder mergeFrom( * * *
            -       * If set true, the DataStore will not be available for serving search
            -       * requests.
            +       * Optional. If set true, the DataStore will not be available for serving
            +       * search requests.
                    * 
            * - * bool disabled_for_serving = 1; + * bool disabled_for_serving = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The disabledForServing. */ @@ -2459,11 +2638,11 @@ public boolean getDisabledForServing() { * * *
            -       * If set true, the DataStore will not be available for serving search
            -       * requests.
            +       * Optional. If set true, the DataStore will not be available for serving
            +       * search requests.
                    * 
            * - * bool disabled_for_serving = 1; + * bool disabled_for_serving = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The disabledForServing to set. * @return This builder for chaining. @@ -2480,11 +2659,11 @@ public Builder setDisabledForServing(boolean value) { * * *
            -       * If set true, the DataStore will not be available for serving search
            -       * requests.
            +       * Optional. If set true, the DataStore will not be available for serving
            +       * search requests.
                    * 
            * - * bool disabled_for_serving = 1; + * bool disabled_for_serving = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2551,1734 +2730,11543 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; + public interface FederatedSearchConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; + /** + * + * + *
            +     * AlloyDB config. If set, this DataStore is connected to AlloyDB.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + * + * @return Whether the alloyDbConfig field is set. + */ + boolean hasAlloyDbConfig(); + + /** + * + * + *
            +     * AlloyDB config. If set, this DataStore is connected to AlloyDB.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + * + * @return The alloyDbConfig. + */ + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + getAlloyDbConfig(); + + /** + * + * + *
            +     * AlloyDB config. If set, this DataStore is connected to AlloyDB.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfigOrBuilder + getAlloyDbConfigOrBuilder(); + + /** + * + * + *
            +     * Third Party OAuth config. If set, this DataStore is connected to a
            +     * third party application.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + * + * @return Whether the thirdPartyOauthConfig field is set. + */ + boolean hasThirdPartyOauthConfig(); + + /** + * + * + *
            +     * Third Party OAuth config. If set, this DataStore is connected to a
            +     * third party application.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + * + * @return The thirdPartyOauthConfig. + */ + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig + getThirdPartyOauthConfig(); + + /** + * + * + *
            +     * Third Party OAuth config. If set, this DataStore is connected to a
            +     * third party application.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfigOrBuilder + getThirdPartyOauthConfigOrBuilder(); + + /** + * + * + *
            +     * NotebookLM config. If set, this DataStore is connected to
            +     * NotebookLM Enterprise.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + * + * @return Whether the notebooklmConfig field is set. + */ + boolean hasNotebooklmConfig(); + + /** + * + * + *
            +     * NotebookLM config. If set, this DataStore is connected to
            +     * NotebookLM Enterprise.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + * + * @return The notebooklmConfig. + */ + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig + getNotebooklmConfig(); + + /** + * + * + *
            +     * NotebookLM config. If set, this DataStore is connected to
            +     * NotebookLM Enterprise.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + */ + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfigOrBuilder + getNotebooklmConfigOrBuilder(); + + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.DataSourceConfigCase + getDataSourceConfigCase(); + } /** * * *
            -   * 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.
            +   * Stores information for federated search.
                * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The name. + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig} */ - @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 class FederatedSearchConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig) + FederatedSearchConfigOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
            -   * 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; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FederatedSearchConfig"); } - } - public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + // Use FederatedSearchConfig.newBuilder() to construct. + private FederatedSearchConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; + private FederatedSearchConfig() {} - /** - * - * - *
            -   * 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; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_descriptor; } - } - /** - * - * - *
            -   * 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; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.class, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.Builder + .class); } - } - public static final int INDUSTRY_VERTICAL_FIELD_NUMBER = 3; - private int industryVertical_ = 0; + public interface AlloyDbConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
            -   * Immutable. The industry vertical that the data store registers.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.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_; - } + /** + * + * + *
            +       * Required. Configuration for connecting to AlloyDB.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the alloydbConnectionConfig field is set. + */ + boolean hasAlloydbConnectionConfig(); - /** - * - * - *
            -   * Immutable. The industry vertical that the data store registers.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The industryVertical. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.IndustryVertical getIndustryVertical() { - com.google.cloud.discoveryengine.v1beta.IndustryVertical result = - com.google.cloud.discoveryengine.v1beta.IndustryVertical.forNumber(industryVertical_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.IndustryVertical.UNRECOGNIZED - : result; - } + /** + * + * + *
            +       * Required. Configuration for connecting to AlloyDB.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The alloydbConnectionConfig. + */ + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + getAlloydbConnectionConfig(); - public static final int SOLUTION_TYPES_FIELD_NUMBER = 5; + /** + * + * + *
            +       * Required. Configuration for connecting to AlloyDB.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfigOrBuilder + getAlloydbConnectionConfigOrBuilder(); - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList solutionTypes_ = emptyIntList(); + /** + * + * + *
            +       * Optional. Configuration for Magic.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the alloydbAiNlConfig field is set. + */ + boolean hasAlloydbAiNlConfig(); - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.discoveryengine.v1beta.SolutionType> - solutionTypes_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.discoveryengine.v1beta.SolutionType>() { - public com.google.cloud.discoveryengine.v1beta.SolutionType convert(int from) { - com.google.cloud.discoveryengine.v1beta.SolutionType result = - com.google.cloud.discoveryengine.v1beta.SolutionType.forNumber(from); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SolutionType.UNRECOGNIZED - : result; - } - }; + /** + * + * + *
            +       * Optional. Configuration for Magic.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The alloydbAiNlConfig. + */ + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + getAlloydbAiNlConfig(); - /** - * - * - *
            -   * The solutions that the data store enrolls. Available solutions for each
            -   * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.SolutionType solution_types = 5; - * - * @return A list containing the solutionTypes. - */ - @java.lang.Override - public java.util.List - getSolutionTypesList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.discoveryengine.v1beta.SolutionType>( - solutionTypes_, solutionTypes_converter_); - } + /** + * + * + *
            +       * Optional. Configuration for Magic.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfigOrBuilder + getAlloydbAiNlConfigOrBuilder(); - /** - * - * - *
            -   * The solutions that the data store enrolls. Available solutions for each
            -   * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.SolutionType solution_types = 5; - * - * @return The count of solutionTypes. - */ - @java.lang.Override - public int getSolutionTypesCount() { - return solutionTypes_.size(); - } + /** + * + * + *
            +       * Optional. Fields to be returned in the search results. If empty, all
            +       * fields will be returned.
            +       * 
            + * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the returnedFields. + */ + java.util.List getReturnedFieldsList(); - /** - * - * - *
            -   * The solutions that the data store enrolls. Available solutions for each
            -   * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.SolutionType solution_types = 5; - * - * @param index The index of the element to return. - * @return The solutionTypes at the given index. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SolutionType getSolutionTypes(int index) { - return solutionTypes_converter_.convert(solutionTypes_.getInt(index)); - } + /** + * + * + *
            +       * Optional. Fields to be returned in the search results. If empty, all
            +       * fields will be returned.
            +       * 
            + * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of returnedFields. + */ + int getReturnedFieldsCount(); - /** - * - * - *
            -   * The solutions that the data store enrolls. Available solutions for each
            -   * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.SolutionType solution_types = 5; - * - * @return A list containing the enum numeric values on the wire for solutionTypes. - */ - @java.lang.Override - public java.util.List getSolutionTypesValueList() { - return solutionTypes_; - } + /** + * + * + *
            +       * Optional. Fields to be returned in the search results. If empty, all
            +       * fields will be returned.
            +       * 
            + * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The returnedFields at the given index. + */ + java.lang.String getReturnedFields(int index); - /** - * - * - *
            -   * The solutions that the data store enrolls. Available solutions for each
            -   * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.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. - */ - @java.lang.Override - public int getSolutionTypesValue(int index) { - return solutionTypes_.getInt(index); - } + /** + * + * + *
            +       * Optional. Fields to be returned in the search results. If empty, all
            +       * fields will be returned.
            +       * 
            + * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the returnedFields at the given index. + */ + com.google.protobuf.ByteString getReturnedFieldsBytes(int index); + } - private int solutionTypesMemoizedSerializedSize; + /** + * + * + *
            +     * Stores information for connecting to AlloyDB.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig} + */ + public static final class AlloyDbConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig) + AlloyDbConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AlloyDbConfig"); + } - public static final int DEFAULT_SCHEMA_ID_FIELD_NUMBER = 7; + // Use AlloyDbConfig.newBuilder() to construct. + private AlloyDbConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @SuppressWarnings("serial") - private volatile java.lang.Object defaultSchemaId_ = ""; + private AlloyDbConfig() { + returnedFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } - /** - * - * - *
            -   * Output only. The id of the default
            -   * [Schema][google.cloud.discoveryengine.v1beta.Schema] asscociated to this
            -   * data store.
            -   * 
            - * - * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The defaultSchemaId. - */ - @java.lang.Override - public java.lang.String getDefaultSchemaId() { - java.lang.Object ref = defaultSchemaId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultSchemaId_ = s; - return s; - } - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_descriptor; + } - /** - * - * - *
            -   * Output only. The id of the default
            -   * [Schema][google.cloud.discoveryengine.v1beta.Schema] asscociated to this
            -   * data store.
            -   * 
            - * - * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for defaultSchemaId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDefaultSchemaIdBytes() { - java.lang.Object ref = defaultSchemaId_; - if (ref instanceof java.lang.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; - } - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.class, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.Builder.class); + } - public static final int CONTENT_CONFIG_FIELD_NUMBER = 6; - private int contentConfig_ = 0; + public interface AlloyDbConnectionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +         * Required. The AlloyDB instance to connect to.
            +         * 
            + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instance. + */ + java.lang.String getInstance(); + + /** + * + * + *
            +         * Required. The AlloyDB instance to connect to.
            +         * 
            + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instance. + */ + com.google.protobuf.ByteString getInstanceBytes(); + + /** + * + * + *
            +         * Required. The AlloyDB database to connect to.
            +         * 
            + * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The database. + */ + java.lang.String getDatabase(); + + /** + * + * + *
            +         * Required. The AlloyDB database to connect to.
            +         * 
            + * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for database. + */ + com.google.protobuf.ByteString getDatabaseBytes(); + + /** + * + * + *
            +         * Required. Database user.
            +         *
            +         * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
            +         * the user will be inferred on the AlloyDB side, based on the
            +         * authenticated user.
            +         * 
            + * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The user. + */ + java.lang.String getUser(); + + /** + * + * + *
            +         * Required. Database user.
            +         *
            +         * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
            +         * the user will be inferred on the AlloyDB side, based on the
            +         * authenticated user.
            +         * 
            + * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for user. + */ + com.google.protobuf.ByteString getUserBytes(); + + /** + * + * + *
            +         * Required. Database password.
            +         *
            +         * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
            +         * the password will be inferred on the AlloyDB side, based on the
            +         * authenticated user.
            +         * 
            + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The password. + */ + java.lang.String getPassword(); + + /** + * + * + *
            +         * Required. Database password.
            +         *
            +         * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
            +         * the password will be inferred on the AlloyDB side, based on the
            +         * authenticated user.
            +         * 
            + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for password. + */ + com.google.protobuf.ByteString getPasswordBytes(); + + /** + * + * + *
            +         * Optional. Auth mode.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode auth_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for authMode. + */ + int getAuthModeValue(); + + /** + * + * + *
            +         * Optional. Auth mode.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode auth_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authMode. + */ + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.AuthMode + getAuthMode(); + + /** + * + * + *
            +         * Optional. If true, enable PSVS for AlloyDB.
            +         * 
            + * + * bool enable_psvs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePsvs. + */ + boolean getEnablePsvs(); + } - /** - * - * - *
            -   * Immutable. The content config of the data store. If this field is unset,
            -   * the server behavior defaults to
            -   * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.NO_CONTENT].
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.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_; - } + /** + * + * + *
            +       * Configuration for connecting to AlloyDB.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig} + */ + public static final class AlloyDbConnectionConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig) + AlloyDbConnectionConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AlloyDbConnectionConfig"); + } - /** - * - * - *
            -   * Immutable. The content config of the data store. If this field is unset,
            -   * the server behavior defaults to
            -   * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.NO_CONTENT].
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * - * - * @return The contentConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig getContentConfig() { - com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig result = - com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.forNumber(contentConfig_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.UNRECOGNIZED - : result; - } + // Use AlloyDbConnectionConfig.newBuilder() to construct. + private AlloyDbConnectionConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - public static final int CREATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp createTime_; + private AlloyDbConnectionConfig() { + instance_ = ""; + database_ = ""; + user_ = ""; + password_ = ""; + authMode_ = 0; + } - /** - * - * - *
            -   * Output only. Timestamp the
            -   * [DataStore][google.cloud.discoveryengine.v1beta.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); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_descriptor; + } - /** - * - * - *
            -   * Output only. Timestamp the
            -   * [DataStore][google.cloud.discoveryengine.v1beta.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_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.class, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.Builder.class); + } - /** - * - * - *
            -   * Output only. Timestamp the
            -   * [DataStore][google.cloud.discoveryengine.v1beta.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_; - } + /** + * + * + *
            +         * Auth mode.
            +         * 
            + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode} + */ + public enum AuthMode implements com.google.protobuf.ProtocolMessageEnum { + /** AUTH_MODE_UNSPECIFIED = 0; */ + AUTH_MODE_UNSPECIFIED(0), + /** + * + * + *
            +           * Uses P4SA when VAIS talks to AlloyDB.
            +           * 
            + * + * AUTH_MODE_SERVICE_ACCOUNT = 1; + */ + AUTH_MODE_SERVICE_ACCOUNT(1), + /** + * + * + *
            +           * Uses EUC when VAIS talks to AlloyDB.
            +           * 
            + * + * AUTH_MODE_END_USER_ACCOUNT = 2; + */ + AUTH_MODE_END_USER_ACCOUNT(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AuthMode"); + } - public static final int LANGUAGE_INFO_FIELD_NUMBER = 14; - private com.google.cloud.discoveryengine.v1beta.LanguageInfo languageInfo_; + /** AUTH_MODE_UNSPECIFIED = 0; */ + public static final int AUTH_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +           * Uses P4SA when VAIS talks to AlloyDB.
            +           * 
            + * + * AUTH_MODE_SERVICE_ACCOUNT = 1; + */ + public static final int AUTH_MODE_SERVICE_ACCOUNT_VALUE = 1; + + /** + * + * + *
            +           * Uses EUC when VAIS talks to AlloyDB.
            +           * 
            + * + * AUTH_MODE_END_USER_ACCOUNT = 2; + */ + public static final int AUTH_MODE_END_USER_ACCOUNT_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; + } - /** - * - * - *
            -   * Language info for DataStore.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; - * - * @return Whether the languageInfo field is set. - */ - @java.lang.Override - public boolean hasLanguageInfo() { - return ((bitField0_ & 0x00000002) != 0); - } + /** + * @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 AuthMode valueOf(int value) { + return forNumber(value); + } - /** - * - * - *
            -   * Language info for DataStore.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; - * - * @return The languageInfo. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.LanguageInfo getLanguageInfo() { - return languageInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.LanguageInfo.getDefaultInstance() - : languageInfo_; - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AuthMode forNumber(int value) { + switch (value) { + case 0: + return AUTH_MODE_UNSPECIFIED; + case 1: + return AUTH_MODE_SERVICE_ACCOUNT; + case 2: + return AUTH_MODE_END_USER_ACCOUNT; + default: + return null; + } + } - /** - * - * - *
            -   * Language info for DataStore.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.LanguageInfoOrBuilder getLanguageInfoOrBuilder() { - return languageInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.LanguageInfo.getDefaultInstance() - : languageInfo_; - } + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } - public static final int NATURAL_LANGUAGE_QUERY_UNDERSTANDING_CONFIG_FIELD_NUMBER = 34; - private com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig - naturalLanguageQueryUnderstandingConfig_; + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AuthMode findValueByNumber(int number) { + return AuthMode.forNumber(number); + } + }; - /** - * - * - *
            -   * Optional. Configuration for Natural Language Query Understanding.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the naturalLanguageQueryUnderstandingConfig field is set. - */ - @java.lang.Override - public boolean hasNaturalLanguageQueryUnderstandingConfig() { - return ((bitField0_ & 0x00000004) != 0); - } + 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()); + } - /** - * - * - *
            -   * Optional. Configuration for Natural Language Query Understanding.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The naturalLanguageQueryUnderstandingConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig - getNaturalLanguageQueryUnderstandingConfig() { - return naturalLanguageQueryUnderstandingConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig - .getDefaultInstance() - : naturalLanguageQueryUnderstandingConfig_; - } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - /** - * - * - *
            -   * Optional. Configuration for Natural Language Query Understanding.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfigOrBuilder - getNaturalLanguageQueryUnderstandingConfigOrBuilder() { - return naturalLanguageQueryUnderstandingConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig - .getDefaultInstance() - : naturalLanguageQueryUnderstandingConfig_; - } + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.getDescriptor() + .getEnumTypes() + .get(0); + } - public static final int BILLING_ESTIMATION_FIELD_NUMBER = 23; - private com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billingEstimation_; + private static final AuthMode[] VALUES = values(); - /** - * - * - *
            -   * Output only. Data size estimation for billing.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the billingEstimation field is set. - */ - @java.lang.Override - public boolean hasBillingEstimation() { - return ((bitField0_ & 0x00000008) != 0); - } + public static AuthMode 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()]; + } - /** - * - * - *
            -   * Output only. Data size estimation for billing.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The billingEstimation. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation - getBillingEstimation() { - return billingEstimation_ == null - ? com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation.getDefaultInstance() - : billingEstimation_; - } + private final int value; - /** - * - * - *
            -   * Output only. Data size estimation for billing.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimationOrBuilder - getBillingEstimationOrBuilder() { - return billingEstimation_ == null - ? com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation.getDefaultInstance() - : billingEstimation_; - } + private AuthMode(int value) { + this.value = value; + } - public static final int WORKSPACE_CONFIG_FIELD_NUMBER = 25; - private com.google.cloud.discoveryengine.v1beta.WorkspaceConfig workspaceConfig_; + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode) + } - /** - * - * - *
            -   * Config to store data store type configuration for workspace data. This
            -   * must be set when
            -   * [DataStore.content_config][google.cloud.discoveryengine.v1beta.DataStore.content_config]
            -   * is set as
            -   * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; - * - * @return Whether the workspaceConfig field is set. - */ - @java.lang.Override - public boolean hasWorkspaceConfig() { - return ((bitField0_ & 0x00000010) != 0); - } + public static final int INSTANCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object instance_ = ""; + + /** + * + * + *
            +         * Required. The AlloyDB instance to connect to.
            +         * 
            + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instance. + */ + @java.lang.Override + public java.lang.String getInstance() { + java.lang.Object ref = instance_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instance_ = s; + return s; + } + } - /** - * - * - *
            -   * Config to store data store type configuration for workspace data. This
            -   * must be set when
            -   * [DataStore.content_config][google.cloud.discoveryengine.v1beta.DataStore.content_config]
            -   * is set as
            -   * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; - * - * @return The workspaceConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.WorkspaceConfig getWorkspaceConfig() { - return workspaceConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.WorkspaceConfig.getDefaultInstance() - : workspaceConfig_; - } + /** + * + * + *
            +         * Required. The AlloyDB instance to connect to.
            +         * 
            + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instance. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceBytes() { + java.lang.Object ref = instance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * - * - *
            -   * Config to store data store type configuration for workspace data. This
            -   * must be set when
            -   * [DataStore.content_config][google.cloud.discoveryengine.v1beta.DataStore.content_config]
            -   * is set as
            -   * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.WorkspaceConfigOrBuilder - getWorkspaceConfigOrBuilder() { - return workspaceConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.WorkspaceConfig.getDefaultInstance() - : workspaceConfig_; - } - - public static final int DOCUMENT_PROCESSING_CONFIG_FIELD_NUMBER = 27; - private com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig - documentProcessingConfig_; - - /** - * - * - *
            -   * Configuration for Document understanding and enrichment.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; - * - * - * @return Whether the documentProcessingConfig field is set. - */ - @java.lang.Override - public boolean hasDocumentProcessingConfig() { - return ((bitField0_ & 0x00000020) != 0); - } + public static final int DATABASE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object database_ = ""; + + /** + * + * + *
            +         * Required. The AlloyDB database to connect to.
            +         * 
            + * + * 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; + } + } - /** - * - * - *
            -   * Configuration for Document understanding and enrichment.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; - * - * - * @return The documentProcessingConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig - getDocumentProcessingConfig() { - return documentProcessingConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.getDefaultInstance() - : documentProcessingConfig_; - } + /** + * + * + *
            +         * Required. The AlloyDB database to connect to.
            +         * 
            + * + * 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; + } + } - /** - * - * - *
            -   * Configuration for Document understanding and enrichment.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigOrBuilder - getDocumentProcessingConfigOrBuilder() { - return documentProcessingConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.getDefaultInstance() - : documentProcessingConfig_; - } + public static final int USER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object user_ = ""; + + /** + * + * + *
            +         * Required. Database user.
            +         *
            +         * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
            +         * the user will be inferred on the AlloyDB side, based on the
            +         * authenticated user.
            +         * 
            + * + * 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; + } + } - public static final int STARTING_SCHEMA_FIELD_NUMBER = 28; - private com.google.cloud.discoveryengine.v1beta.Schema startingSchema_; + /** + * + * + *
            +         * Required. Database user.
            +         *
            +         * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
            +         * the user will be inferred on the AlloyDB side, based on the
            +         * authenticated user.
            +         * 
            + * + * 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; + } + } - /** - * - * - *
            -   * The start schema to use for this
            -   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            -   * provisioning it. If unset, a default vertical specialized schema will be
            -   * used.
            -   *
            -   * This field is only used by [CreateDataStore][] API, and will be ignored if
            -   * used in other APIs. This field will be omitted from all API responses
            -   * including [CreateDataStore][] API. To retrieve a schema of a
            -   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            -   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            -   * API instead.
            -   *
            -   * The provided schema will be validated against certain rules on schema.
            -   * Learn more from [this
            -   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; - * - * @return Whether the startingSchema field is set. - */ - @java.lang.Override - public boolean hasStartingSchema() { - return ((bitField0_ & 0x00000040) != 0); - } + public static final int PASSWORD_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object password_ = ""; + + /** + * + * + *
            +         * Required. Database password.
            +         *
            +         * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
            +         * the password will be inferred on the AlloyDB side, based on the
            +         * authenticated user.
            +         * 
            + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The password. + */ + @java.lang.Override + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } + } - /** - * - * - *
            -   * The start schema to use for this
            -   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            -   * provisioning it. If unset, a default vertical specialized schema will be
            -   * used.
            -   *
            -   * This field is only used by [CreateDataStore][] API, and will be ignored if
            -   * used in other APIs. This field will be omitted from all API responses
            -   * including [CreateDataStore][] API. To retrieve a schema of a
            -   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            -   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            -   * API instead.
            -   *
            -   * The provided schema will be validated against certain rules on schema.
            -   * Learn more from [this
            -   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; - * - * @return The startingSchema. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Schema getStartingSchema() { - return startingSchema_ == null - ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() - : startingSchema_; - } + /** + * + * + *
            +         * Required. Database password.
            +         *
            +         * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
            +         * the password will be inferred on the AlloyDB side, based on the
            +         * authenticated user.
            +         * 
            + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for password. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * - * - *
            -   * The start schema to use for this
            -   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            -   * provisioning it. If unset, a default vertical specialized schema will be
            -   * used.
            -   *
            -   * This field is only used by [CreateDataStore][] API, and will be ignored if
            -   * used in other APIs. This field will be omitted from all API responses
            -   * including [CreateDataStore][] API. To retrieve a schema of a
            -   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            -   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            -   * API instead.
            -   *
            -   * The provided schema will be validated against certain rules on schema.
            -   * Learn more from [this
            -   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getStartingSchemaOrBuilder() { - return startingSchema_ == null - ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() - : startingSchema_; - } + public static final int AUTH_MODE_FIELD_NUMBER = 5; + private int authMode_ = 0; + + /** + * + * + *
            +         * Optional. Auth mode.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode auth_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for authMode. + */ + @java.lang.Override + public int getAuthModeValue() { + return authMode_; + } - public static final int SERVING_CONFIG_DATA_STORE_FIELD_NUMBER = 30; - private com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore - servingConfigDataStore_; + /** + * + * + *
            +         * Optional. Auth mode.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode auth_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.AuthMode + getAuthMode() { + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.AuthMode + result = + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.AuthMode.forNumber(authMode_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.AuthMode.UNRECOGNIZED + : result; + } - /** - * - * - *
            -   * Optional. Stores serving config at DataStore level.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the servingConfigDataStore field is set. - */ - @java.lang.Override - public boolean hasServingConfigDataStore() { - return ((bitField0_ & 0x00000080) != 0); - } + public static final int ENABLE_PSVS_FIELD_NUMBER = 6; + private boolean enablePsvs_ = false; + + /** + * + * + *
            +         * Optional. If true, enable PSVS for AlloyDB.
            +         * 
            + * + * bool enable_psvs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePsvs. + */ + @java.lang.Override + public boolean getEnablePsvs() { + return enablePsvs_; + } - /** - * - * - *
            -   * Optional. Stores serving config at DataStore level.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The servingConfigDataStore. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore - getServingConfigDataStore() { - return servingConfigDataStore_ == null - ? com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore - .getDefaultInstance() - : servingConfigDataStore_; - } + private byte memoizedIsInitialized = -1; - /** - * - * - *
            -   * Optional. Stores serving config at DataStore level.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStoreOrBuilder - getServingConfigDataStoreOrBuilder() { - return servingConfigDataStore_ == null - ? com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore - .getDefaultInstance() - : servingConfigDataStore_; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private byte memoizedIsInitialized = -1; + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instance_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, instance_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(database_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, database_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(user_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, user_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(password_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, password_); + } + if (authMode_ + != com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.AuthMode.AUTH_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, authMode_); + } + if (enablePsvs_ != false) { + output.writeBool(6, enablePsvs_); + } + getUnknownFields().writeTo(output); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instance_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, instance_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(database_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, database_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(user_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, user_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(password_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, password_); + } + if (authMode_ + != com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.AuthMode.AUTH_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, authMode_); + } + if (enablePsvs_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, enablePsvs_); + } + 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.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + other = + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig) + obj; + + if (!getInstance().equals(other.getInstance())) return false; + if (!getDatabase().equals(other.getDatabase())) return false; + if (!getUser().equals(other.getUser())) return false; + if (!getPassword().equals(other.getPassword())) return false; + if (authMode_ != other.authMode_) return false; + if (getEnablePsvs() != other.getEnablePsvs()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); + 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) + PASSWORD_FIELD_NUMBER; + hash = (53 * hash) + getPassword().hashCode(); + hash = (37 * hash) + AUTH_MODE_FIELD_NUMBER; + hash = (53 * hash) + authMode_; + hash = (37 * hash) + ENABLE_PSVS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePsvs()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + 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.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseFrom( + 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.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +         * Configuration for connecting to AlloyDB.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig) + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.class, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instance_ = ""; + database_ = ""; + user_ = ""; + password_ = ""; + authMode_ = 0; + enablePsvs_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + build() { + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + result = + new com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instance_ = instance_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.database_ = database_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.user_ = user_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.password_ = password_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.authMode_ = authMode_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.enablePsvs_ = enablePsvs_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.getDefaultInstance()) return this; + if (!other.getInstance().isEmpty()) { + instance_ = other.instance_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDatabase().isEmpty()) { + database_ = other.database_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getUser().isEmpty()) { + user_ = other.user_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getPassword().isEmpty()) { + password_ = other.password_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.authMode_ != 0) { + setAuthModeValue(other.getAuthModeValue()); + } + if (other.getEnablePsvs() != false) { + setEnablePsvs(other.getEnablePsvs()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + instance_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + database_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + user_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + password_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + authMode_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + enablePsvs_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object instance_ = ""; + + /** + * + * + *
            +           * Required. The AlloyDB instance to connect to.
            +           * 
            + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instance. + */ + public java.lang.String getInstance() { + java.lang.Object ref = instance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +           * Required. The AlloyDB instance to connect to.
            +           * 
            + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instance. + */ + public com.google.protobuf.ByteString getInstanceBytes() { + java.lang.Object ref = instance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +           * Required. The AlloyDB instance to connect to.
            +           * 
            + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The instance to set. + * @return This builder for chaining. + */ + public Builder setInstance(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instance_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Required. The AlloyDB instance to connect to.
            +           * 
            + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearInstance() { + instance_ = getDefaultInstance().getInstance(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +           * Required. The AlloyDB instance to connect to.
            +           * 
            + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for instance to set. + * @return This builder for chaining. + */ + public Builder setInstanceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instance_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object database_ = ""; + + /** + * + * + *
            +           * Required. The AlloyDB database to connect to.
            +           * 
            + * + * 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. The AlloyDB database to connect to.
            +           * 
            + * + * 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. The AlloyDB database to connect to.
            +           * 
            + * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Required. The AlloyDB database to connect to.
            +           * 
            + * + * string database = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDatabase() { + database_ = getDefaultInstance().getDatabase(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +           * Required. The AlloyDB database to connect to.
            +           * 
            + * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object user_ = ""; + + /** + * + * + *
            +           * Required. Database user.
            +           *
            +           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
            +           * the user will be inferred on the AlloyDB side, based on the
            +           * authenticated user.
            +           * 
            + * + * 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.
            +           *
            +           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
            +           * the user will be inferred on the AlloyDB side, based on the
            +           * authenticated user.
            +           * 
            + * + * 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.
            +           *
            +           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
            +           * the user will be inferred on the AlloyDB side, based on the
            +           * authenticated user.
            +           * 
            + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Required. Database user.
            +           *
            +           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
            +           * the user will be inferred on the AlloyDB side, based on the
            +           * authenticated user.
            +           * 
            + * + * string user = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUser() { + user_ = getDefaultInstance().getUser(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +           * Required. Database user.
            +           *
            +           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
            +           * the user will be inferred on the AlloyDB side, based on the
            +           * authenticated user.
            +           * 
            + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object password_ = ""; + + /** + * + * + *
            +           * Required. Database password.
            +           *
            +           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
            +           * the password will be inferred on the AlloyDB side, based on the
            +           * authenticated user.
            +           * 
            + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The password. + */ + public java.lang.String getPassword() { + java.lang.Object ref = password_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + password_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +           * Required. Database password.
            +           *
            +           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
            +           * the password will be inferred on the AlloyDB side, based on the
            +           * authenticated user.
            +           * 
            + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for password. + */ + public com.google.protobuf.ByteString getPasswordBytes() { + java.lang.Object ref = password_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + password_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +           * Required. Database password.
            +           *
            +           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
            +           * the password will be inferred on the AlloyDB side, based on the
            +           * authenticated user.
            +           * 
            + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The password to set. + * @return This builder for chaining. + */ + public Builder setPassword(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + password_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Required. Database password.
            +           *
            +           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
            +           * the password will be inferred on the AlloyDB side, based on the
            +           * authenticated user.
            +           * 
            + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPassword() { + password_ = getDefaultInstance().getPassword(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +           * Required. Database password.
            +           *
            +           * If auth_mode = END_USER_ACCOUNT, it can be unset. In that case,
            +           * the password will be inferred on the AlloyDB side, based on the
            +           * authenticated user.
            +           * 
            + * + * string password = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @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); + password_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int authMode_ = 0; + + /** + * + * + *
            +           * Optional. Auth mode.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode auth_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for authMode. + */ + @java.lang.Override + public int getAuthModeValue() { + return authMode_; + } + + /** + * + * + *
            +           * Optional. Auth mode.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode auth_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for authMode to set. + * @return This builder for chaining. + */ + public Builder setAuthModeValue(int value) { + authMode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Optional. Auth mode.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode auth_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The authMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.AuthMode + getAuthMode() { + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.AuthMode + result = + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.AuthMode.forNumber(authMode_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.AuthMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +           * Optional. Auth mode.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode auth_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The authMode to set. + * @return This builder for chaining. + */ + public Builder setAuthMode( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.AuthMode + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + authMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +           * Optional. Auth mode.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthMode auth_mode = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAuthMode() { + bitField0_ = (bitField0_ & ~0x00000010); + authMode_ = 0; + onChanged(); + return this; + } + + private boolean enablePsvs_; + + /** + * + * + *
            +           * Optional. If true, enable PSVS for AlloyDB.
            +           * 
            + * + * bool enable_psvs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePsvs. + */ + @java.lang.Override + public boolean getEnablePsvs() { + return enablePsvs_; + } + + /** + * + * + *
            +           * Optional. If true, enable PSVS for AlloyDB.
            +           * 
            + * + * bool enable_psvs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enablePsvs to set. + * @return This builder for chaining. + */ + public Builder setEnablePsvs(boolean value) { + + enablePsvs_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Optional. If true, enable PSVS for AlloyDB.
            +           * 
            + * + * bool enable_psvs = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnablePsvs() { + bitField0_ = (bitField0_ & ~0x00000020); + enablePsvs_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig) + private static final com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlloyDbConnectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AlloyDbAiNaturalLanguageConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +         * Optional. AlloyDb AI NL config id, i.e. the value that was used for
            +         * calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be
            +         * empty.
            +         * 
            + * + * string nl_config_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nlConfigId. + */ + java.lang.String getNlConfigId(); + + /** + * + * + *
            +         * Optional. AlloyDb AI NL config id, i.e. the value that was used for
            +         * calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be
            +         * empty.
            +         * 
            + * + * string nl_config_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nlConfigId. + */ + com.google.protobuf.ByteString getNlConfigIdBytes(); + } + + /** + * + * + *
            +       * Configuration for AlloyDB AI Natural Language.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig} + */ + public static final class AlloyDbAiNaturalLanguageConfig + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig) + AlloyDbAiNaturalLanguageConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AlloyDbAiNaturalLanguageConfig"); + } + + // Use AlloyDbAiNaturalLanguageConfig.newBuilder() to construct. + private AlloyDbAiNaturalLanguageConfig( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AlloyDbAiNaturalLanguageConfig() { + nlConfigId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig.class, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig.Builder.class); + } + + public static final int NL_CONFIG_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object nlConfigId_ = ""; + + /** + * + * + *
            +         * Optional. AlloyDb AI NL config id, i.e. the value that was used for
            +         * calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be
            +         * empty.
            +         * 
            + * + * string nl_config_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nlConfigId. + */ + @java.lang.Override + public java.lang.String getNlConfigId() { + java.lang.Object ref = nlConfigId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nlConfigId_ = s; + return s; + } + } + + /** + * + * + *
            +         * Optional. AlloyDb AI NL config id, i.e. the value that was used for
            +         * calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be
            +         * empty.
            +         * 
            + * + * string nl_config_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nlConfigId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNlConfigIdBytes() { + java.lang.Object ref = nlConfigId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nlConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nlConfigId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, nlConfigId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nlConfigId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, nlConfigId_); + } + 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.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + other = + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig) + obj; + + if (!getNlConfigId().equals(other.getNlConfigId())) 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) + NL_CONFIG_ID_FIELD_NUMBER; + hash = (53 * hash) + getNlConfigId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + 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.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseFrom( + 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.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +         * Configuration for AlloyDB AI Natural Language.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig) + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig.class, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + nlConfigId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + build() { + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + result = + new com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.nlConfigId_ = nlConfigId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig.getDefaultInstance()) return this; + if (!other.getNlConfigId().isEmpty()) { + nlConfigId_ = other.nlConfigId_; + 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: + { + nlConfigId_ = 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 nlConfigId_ = ""; + + /** + * + * + *
            +           * Optional. AlloyDb AI NL config id, i.e. the value that was used for
            +           * calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be
            +           * empty.
            +           * 
            + * + * string nl_config_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nlConfigId. + */ + public java.lang.String getNlConfigId() { + java.lang.Object ref = nlConfigId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nlConfigId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +           * Optional. AlloyDb AI NL config id, i.e. the value that was used for
            +           * calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be
            +           * empty.
            +           * 
            + * + * string nl_config_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nlConfigId. + */ + public com.google.protobuf.ByteString getNlConfigIdBytes() { + java.lang.Object ref = nlConfigId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nlConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +           * Optional. AlloyDb AI NL config id, i.e. the value that was used for
            +           * calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be
            +           * empty.
            +           * 
            + * + * string nl_config_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The nlConfigId to set. + * @return This builder for chaining. + */ + public Builder setNlConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nlConfigId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Optional. AlloyDb AI NL config id, i.e. the value that was used for
            +           * calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be
            +           * empty.
            +           * 
            + * + * string nl_config_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNlConfigId() { + nlConfigId_ = getDefaultInstance().getNlConfigId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +           * Optional. AlloyDb AI NL config id, i.e. the value that was used for
            +           * calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be
            +           * empty.
            +           * 
            + * + * string nl_config_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for nlConfigId to set. + * @return This builder for chaining. + */ + public Builder setNlConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nlConfigId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig) + private static final com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlloyDbAiNaturalLanguageConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int ALLOYDB_CONNECTION_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + alloydbConnectionConfig_; + + /** + * + * + *
            +       * Required. Configuration for connecting to AlloyDB.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the alloydbConnectionConfig field is set. + */ + @java.lang.Override + public boolean hasAlloydbConnectionConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Required. Configuration for connecting to AlloyDB.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The alloydbConnectionConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + getAlloydbConnectionConfig() { + return alloydbConnectionConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.getDefaultInstance() + : alloydbConnectionConfig_; + } + + /** + * + * + *
            +       * Required. Configuration for connecting to AlloyDB.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfigOrBuilder + getAlloydbConnectionConfigOrBuilder() { + return alloydbConnectionConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.getDefaultInstance() + : alloydbConnectionConfig_; + } + + public static final int ALLOYDB_AI_NL_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + alloydbAiNlConfig_; + + /** + * + * + *
            +       * Optional. Configuration for Magic.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the alloydbAiNlConfig field is set. + */ + @java.lang.Override + public boolean hasAlloydbAiNlConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +       * Optional. Configuration for Magic.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The alloydbAiNlConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + getAlloydbAiNlConfig() { + return alloydbAiNlConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig.getDefaultInstance() + : alloydbAiNlConfig_; + } + + /** + * + * + *
            +       * Optional. Configuration for Magic.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfigOrBuilder + getAlloydbAiNlConfigOrBuilder() { + return alloydbAiNlConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig.getDefaultInstance() + : alloydbAiNlConfig_; + } + + public static final int RETURNED_FIELDS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList returnedFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +       * Optional. Fields to be returned in the search results. If empty, all
            +       * fields will be returned.
            +       * 
            + * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the returnedFields. + */ + public com.google.protobuf.ProtocolStringList getReturnedFieldsList() { + return returnedFields_; + } + + /** + * + * + *
            +       * Optional. Fields to be returned in the search results. If empty, all
            +       * fields will be returned.
            +       * 
            + * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of returnedFields. + */ + public int getReturnedFieldsCount() { + return returnedFields_.size(); + } + + /** + * + * + *
            +       * Optional. Fields to be returned in the search results. If empty, all
            +       * fields will be returned.
            +       * 
            + * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The returnedFields at the given index. + */ + public java.lang.String getReturnedFields(int index) { + return returnedFields_.get(index); + } + + /** + * + * + *
            +       * Optional. Fields to be returned in the search results. If empty, all
            +       * fields will be returned.
            +       * 
            + * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the returnedFields at the given index. + */ + public com.google.protobuf.ByteString getReturnedFieldsBytes(int index) { + return returnedFields_.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAlloydbConnectionConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAlloydbAiNlConfig()); + } + for (int i = 0; i < returnedFields_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, returnedFields_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getAlloydbConnectionConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAlloydbAiNlConfig()); + } + { + int dataSize = 0; + for (int i = 0; i < returnedFields_.size(); i++) { + dataSize += computeStringSizeNoTag(returnedFields_.getRaw(i)); + } + size += dataSize; + size += 1 * getReturnedFieldsList().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.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + other = + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig) + obj; + + if (hasAlloydbConnectionConfig() != other.hasAlloydbConnectionConfig()) return false; + if (hasAlloydbConnectionConfig()) { + if (!getAlloydbConnectionConfig().equals(other.getAlloydbConnectionConfig())) + return false; + } + if (hasAlloydbAiNlConfig() != other.hasAlloydbAiNlConfig()) return false; + if (hasAlloydbAiNlConfig()) { + if (!getAlloydbAiNlConfig().equals(other.getAlloydbAiNlConfig())) return false; + } + if (!getReturnedFieldsList().equals(other.getReturnedFieldsList())) 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 (hasAlloydbConnectionConfig()) { + hash = (37 * hash) + ALLOYDB_CONNECTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAlloydbConnectionConfig().hashCode(); + } + if (hasAlloydbAiNlConfig()) { + hash = (37 * hash) + ALLOYDB_AI_NL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAlloydbAiNlConfig().hashCode(); + } + if (getReturnedFieldsCount() > 0) { + hash = (37 * hash) + RETURNED_FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getReturnedFieldsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig + 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.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseFrom( + 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.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Stores information for connecting to AlloyDB.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig) + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.class, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAlloydbConnectionConfigFieldBuilder(); + internalGetAlloydbAiNlConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + alloydbConnectionConfig_ = null; + if (alloydbConnectionConfigBuilder_ != null) { + alloydbConnectionConfigBuilder_.dispose(); + alloydbConnectionConfigBuilder_ = null; + } + alloydbAiNlConfig_ = null; + if (alloydbAiNlConfigBuilder_ != null) { + alloydbAiNlConfigBuilder_.dispose(); + alloydbAiNlConfigBuilder_ = null; + } + returnedFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + build() { + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + result = + new com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.alloydbConnectionConfig_ = + alloydbConnectionConfigBuilder_ == null + ? alloydbConnectionConfig_ + : alloydbConnectionConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.alloydbAiNlConfig_ = + alloydbAiNlConfigBuilder_ == null + ? alloydbAiNlConfig_ + : alloydbAiNlConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + returnedFields_.makeImmutable(); + result.returnedFields_ = returnedFields_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.getDefaultInstance()) return this; + if (other.hasAlloydbConnectionConfig()) { + mergeAlloydbConnectionConfig(other.getAlloydbConnectionConfig()); + } + if (other.hasAlloydbAiNlConfig()) { + mergeAlloydbAiNlConfig(other.getAlloydbAiNlConfig()); + } + if (!other.returnedFields_.isEmpty()) { + if (returnedFields_.isEmpty()) { + returnedFields_ = other.returnedFields_; + bitField0_ |= 0x00000004; + } else { + ensureReturnedFieldsIsMutable(); + returnedFields_.addAll(other.returnedFields_); + } + 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( + internalGetAlloydbConnectionConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetAlloydbAiNlConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureReturnedFieldsIsMutable(); + returnedFields_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig + alloydbConnectionConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfigOrBuilder> + alloydbConnectionConfigBuilder_; + + /** + * + * + *
            +         * Required. Configuration for connecting to AlloyDB.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the alloydbConnectionConfig field is set. + */ + public boolean hasAlloydbConnectionConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +         * Required. Configuration for connecting to AlloyDB.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The alloydbConnectionConfig. + */ + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + getAlloydbConnectionConfig() { + if (alloydbConnectionConfigBuilder_ == null) { + return alloydbConnectionConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.getDefaultInstance() + : alloydbConnectionConfig_; + } else { + return alloydbConnectionConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +         * Required. Configuration for connecting to AlloyDB.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAlloydbConnectionConfig( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + value) { + if (alloydbConnectionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + alloydbConnectionConfig_ = value; + } else { + alloydbConnectionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. Configuration for connecting to AlloyDB.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAlloydbConnectionConfig( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.Builder + builderForValue) { + if (alloydbConnectionConfigBuilder_ == null) { + alloydbConnectionConfig_ = builderForValue.build(); + } else { + alloydbConnectionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. Configuration for connecting to AlloyDB.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAlloydbConnectionConfig( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig + value) { + if (alloydbConnectionConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && alloydbConnectionConfig_ != null + && alloydbConnectionConfig_ + != com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.getDefaultInstance()) { + getAlloydbConnectionConfigBuilder().mergeFrom(value); + } else { + alloydbConnectionConfig_ = value; + } + } else { + alloydbConnectionConfigBuilder_.mergeFrom(value); + } + if (alloydbConnectionConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * Required. Configuration for connecting to AlloyDB.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAlloydbConnectionConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + alloydbConnectionConfig_ = null; + if (alloydbConnectionConfigBuilder_ != null) { + alloydbConnectionConfigBuilder_.dispose(); + alloydbConnectionConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. Configuration for connecting to AlloyDB.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfig.Builder + getAlloydbConnectionConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAlloydbConnectionConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Required. Configuration for connecting to AlloyDB.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbConnectionConfigOrBuilder + getAlloydbConnectionConfigOrBuilder() { + if (alloydbConnectionConfigBuilder_ != null) { + return alloydbConnectionConfigBuilder_.getMessageOrBuilder(); + } else { + return alloydbConnectionConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.getDefaultInstance() + : alloydbConnectionConfig_; + } + } + + /** + * + * + *
            +         * Required. Configuration for connecting to AlloyDB.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbConnectionConfig alloydb_connection_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfigOrBuilder> + internalGetAlloydbConnectionConfigFieldBuilder() { + if (alloydbConnectionConfigBuilder_ == null) { + alloydbConnectionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbConnectionConfigOrBuilder>( + getAlloydbConnectionConfig(), getParentForChildren(), isClean()); + alloydbConnectionConfig_ = null; + } + return alloydbConnectionConfigBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig + alloydbAiNlConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfigOrBuilder> + alloydbAiNlConfigBuilder_; + + /** + * + * + *
            +         * Optional. Configuration for Magic.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the alloydbAiNlConfig field is set. + */ + public boolean hasAlloydbAiNlConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +         * Optional. Configuration for Magic.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The alloydbAiNlConfig. + */ + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + getAlloydbAiNlConfig() { + if (alloydbAiNlConfigBuilder_ == null) { + return alloydbAiNlConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig.getDefaultInstance() + : alloydbAiNlConfig_; + } else { + return alloydbAiNlConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +         * Optional. Configuration for Magic.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAlloydbAiNlConfig( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + value) { + if (alloydbAiNlConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + alloydbAiNlConfig_ = value; + } else { + alloydbAiNlConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Configuration for Magic.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAlloydbAiNlConfig( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig.Builder + builderForValue) { + if (alloydbAiNlConfigBuilder_ == null) { + alloydbAiNlConfig_ = builderForValue.build(); + } else { + alloydbAiNlConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Configuration for Magic.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAlloydbAiNlConfig( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig + value) { + if (alloydbAiNlConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && alloydbAiNlConfig_ != null + && alloydbAiNlConfig_ + != com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig.getDefaultInstance()) { + getAlloydbAiNlConfigBuilder().mergeFrom(value); + } else { + alloydbAiNlConfig_ = value; + } + } else { + alloydbAiNlConfigBuilder_.mergeFrom(value); + } + if (alloydbAiNlConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * Optional. Configuration for Magic.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAlloydbAiNlConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + alloydbAiNlConfig_ = null; + if (alloydbAiNlConfigBuilder_ != null) { + alloydbAiNlConfigBuilder_.dispose(); + alloydbAiNlConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Configuration for Magic.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfig.Builder + getAlloydbAiNlConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetAlloydbAiNlConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Optional. Configuration for Magic.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .AlloyDbAiNaturalLanguageConfigOrBuilder + getAlloydbAiNlConfigOrBuilder() { + if (alloydbAiNlConfigBuilder_ != null) { + return alloydbAiNlConfigBuilder_.getMessageOrBuilder(); + } else { + return alloydbAiNlConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig.getDefaultInstance() + : alloydbAiNlConfig_; + } + } + + /** + * + * + *
            +         * Optional. Configuration for Magic.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig.AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfigOrBuilder> + internalGetAlloydbAiNlConfigFieldBuilder() { + if (alloydbAiNlConfigBuilder_ == null) { + alloydbAiNlConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.AlloyDbAiNaturalLanguageConfigOrBuilder>( + getAlloydbAiNlConfig(), getParentForChildren(), isClean()); + alloydbAiNlConfig_ = null; + } + return alloydbAiNlConfigBuilder_; + } + + private com.google.protobuf.LazyStringArrayList returnedFields_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureReturnedFieldsIsMutable() { + if (!returnedFields_.isModifiable()) { + returnedFields_ = new com.google.protobuf.LazyStringArrayList(returnedFields_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
            +         * Optional. Fields to be returned in the search results. If empty, all
            +         * fields will be returned.
            +         * 
            + * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the returnedFields. + */ + public com.google.protobuf.ProtocolStringList getReturnedFieldsList() { + returnedFields_.makeImmutable(); + return returnedFields_; + } + + /** + * + * + *
            +         * Optional. Fields to be returned in the search results. If empty, all
            +         * fields will be returned.
            +         * 
            + * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of returnedFields. + */ + public int getReturnedFieldsCount() { + return returnedFields_.size(); + } + + /** + * + * + *
            +         * Optional. Fields to be returned in the search results. If empty, all
            +         * fields will be returned.
            +         * 
            + * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The returnedFields at the given index. + */ + public java.lang.String getReturnedFields(int index) { + return returnedFields_.get(index); + } + + /** + * + * + *
            +         * Optional. Fields to be returned in the search results. If empty, all
            +         * fields will be returned.
            +         * 
            + * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the returnedFields at the given index. + */ + public com.google.protobuf.ByteString getReturnedFieldsBytes(int index) { + return returnedFields_.getByteString(index); + } + + /** + * + * + *
            +         * Optional. Fields to be returned in the search results. If empty, all
            +         * fields will be returned.
            +         * 
            + * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The returnedFields to set. + * @return This builder for chaining. + */ + public Builder setReturnedFields(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReturnedFieldsIsMutable(); + returnedFields_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Fields to be returned in the search results. If empty, all
            +         * fields will be returned.
            +         * 
            + * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The returnedFields to add. + * @return This builder for chaining. + */ + public Builder addReturnedFields(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReturnedFieldsIsMutable(); + returnedFields_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Fields to be returned in the search results. If empty, all
            +         * fields will be returned.
            +         * 
            + * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The returnedFields to add. + * @return This builder for chaining. + */ + public Builder addAllReturnedFields(java.lang.Iterable values) { + ensureReturnedFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, returnedFields_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Fields to be returned in the search results. If empty, all
            +         * fields will be returned.
            +         * 
            + * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearReturnedFields() { + returnedFields_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Fields to be returned in the search results. If empty, all
            +         * fields will be returned.
            +         * 
            + * + * repeated string returned_fields = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the returnedFields to add. + * @return This builder for chaining. + */ + public Builder addReturnedFieldsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureReturnedFieldsIsMutable(); + returnedFields_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig) + private static final com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlloyDbConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ThirdPartyOauthConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Optional. The type of the application. E.g., "jira", "box", etc.
            +       * 
            + * + * string app_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appName. + */ + java.lang.String getAppName(); + + /** + * + * + *
            +       * Optional. The type of the application. E.g., "jira", "box", etc.
            +       * 
            + * + * string app_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appName. + */ + com.google.protobuf.ByteString getAppNameBytes(); + + /** + * + * + *
            +       * Optional. The instance name identifying the 3P app, e.g.,
            +       * "vaissptbots-my". This is different from the instance_uri which is the
            +       * full URL of the 3P app e.g., "https://vaissptbots-my.sharepoint.com".
            +       * 
            + * + * string instance_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The instanceName. + */ + java.lang.String getInstanceName(); + + /** + * + * + *
            +       * Optional. The instance name identifying the 3P app, e.g.,
            +       * "vaissptbots-my". This is different from the instance_uri which is the
            +       * full URL of the 3P app e.g., "https://vaissptbots-my.sharepoint.com".
            +       * 
            + * + * string instance_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for instanceName. + */ + com.google.protobuf.ByteString getInstanceNameBytes(); + } + + /** + * + * + *
            +     * Stores information for third party applicationOAuth.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig} + */ + public static final class ThirdPartyOauthConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig) + ThirdPartyOauthConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ThirdPartyOauthConfig"); + } + + // Use ThirdPartyOauthConfig.newBuilder() to construct. + private ThirdPartyOauthConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ThirdPartyOauthConfig() { + appName_ = ""; + instanceName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.class, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.Builder.class); + } + + public static final int APP_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object appName_ = ""; + + /** + * + * + *
            +       * Optional. The type of the application. E.g., "jira", "box", etc.
            +       * 
            + * + * string app_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appName. + */ + @java.lang.Override + public java.lang.String getAppName() { + java.lang.Object ref = appName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appName_ = s; + return s; + } + } + + /** + * + * + *
            +       * Optional. The type of the application. E.g., "jira", "box", etc.
            +       * 
            + * + * string app_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppNameBytes() { + java.lang.Object ref = appName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceName_ = ""; + + /** + * + * + *
            +       * Optional. The instance name identifying the 3P app, e.g.,
            +       * "vaissptbots-my". This is different from the instance_uri which is the
            +       * full URL of the 3P app e.g., "https://vaissptbots-my.sharepoint.com".
            +       * 
            + * + * string instance_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The instanceName. + */ + @java.lang.Override + public java.lang.String getInstanceName() { + java.lang.Object ref = instanceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceName_ = s; + return s; + } + } + + /** + * + * + *
            +       * Optional. The instance name identifying the 3P app, e.g.,
            +       * "vaissptbots-my". This is different from the instance_uri which is the
            +       * full URL of the 3P app e.g., "https://vaissptbots-my.sharepoint.com".
            +       * 
            + * + * string instance_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for instanceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceNameBytes() { + java.lang.Object ref = instanceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, appName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, instanceName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, appName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, instanceName_); + } + 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.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + other = + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + obj; + + if (!getAppName().equals(other.getAppName())) return false; + if (!getInstanceName().equals(other.getInstanceName())) 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) + APP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAppName().hashCode(); + hash = (37 * hash) + INSTANCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getInstanceName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + 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.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseFrom( + 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.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Stores information for third party applicationOAuth.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig) + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.class, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + appName_ = ""; + instanceName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + build() { + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + result = + new com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.appName_ = appName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.instanceName_ = instanceName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.getDefaultInstance()) return this; + if (!other.getAppName().isEmpty()) { + appName_ = other.appName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getInstanceName().isEmpty()) { + instanceName_ = other.instanceName_; + 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: + { + appName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + instanceName_ = 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 appName_ = ""; + + /** + * + * + *
            +         * Optional. The type of the application. E.g., "jira", "box", etc.
            +         * 
            + * + * string app_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The appName. + */ + public java.lang.String getAppName() { + java.lang.Object ref = appName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Optional. The type of the application. E.g., "jira", "box", etc.
            +         * 
            + * + * string app_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for appName. + */ + public com.google.protobuf.ByteString getAppNameBytes() { + java.lang.Object ref = appName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Optional. The type of the application. E.g., "jira", "box", etc.
            +         * 
            + * + * string app_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The appName to set. + * @return This builder for chaining. + */ + public Builder setAppName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The type of the application. E.g., "jira", "box", etc.
            +         * 
            + * + * string app_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAppName() { + appName_ = getDefaultInstance().getAppName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The type of the application. E.g., "jira", "box", etc.
            +         * 
            + * + * string app_name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for appName to set. + * @return This builder for chaining. + */ + public Builder setAppNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object instanceName_ = ""; + + /** + * + * + *
            +         * Optional. The instance name identifying the 3P app, e.g.,
            +         * "vaissptbots-my". This is different from the instance_uri which is the
            +         * full URL of the 3P app e.g., "https://vaissptbots-my.sharepoint.com".
            +         * 
            + * + * string instance_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The instanceName. + */ + public java.lang.String getInstanceName() { + java.lang.Object ref = instanceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Optional. The instance name identifying the 3P app, e.g.,
            +         * "vaissptbots-my". This is different from the instance_uri which is the
            +         * full URL of the 3P app e.g., "https://vaissptbots-my.sharepoint.com".
            +         * 
            + * + * string instance_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for instanceName. + */ + public com.google.protobuf.ByteString getInstanceNameBytes() { + java.lang.Object ref = instanceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Optional. The instance name identifying the 3P app, e.g.,
            +         * "vaissptbots-my". This is different from the instance_uri which is the
            +         * full URL of the 3P app e.g., "https://vaissptbots-my.sharepoint.com".
            +         * 
            + * + * string instance_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The instanceName to set. + * @return This builder for chaining. + */ + public Builder setInstanceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The instance name identifying the 3P app, e.g.,
            +         * "vaissptbots-my". This is different from the instance_uri which is the
            +         * full URL of the 3P app e.g., "https://vaissptbots-my.sharepoint.com".
            +         * 
            + * + * string instance_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInstanceName() { + instanceName_ = getDefaultInstance().getInstanceName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The instance name identifying the 3P app, e.g.,
            +         * "vaissptbots-my". This is different from the instance_uri which is the
            +         * full URL of the 3P app e.g., "https://vaissptbots-my.sharepoint.com".
            +         * 
            + * + * string instance_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for instanceName to set. + * @return This builder for chaining. + */ + public Builder setInstanceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig) + private static final com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThirdPartyOauthConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface NotebooklmConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Required. Search config name.
            +       *
            +       * Format: projects/*/locations/global/notebookLmSearchConfigs/*
            +       * 
            + * + * string search_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The searchConfig. + */ + java.lang.String getSearchConfig(); + + /** + * + * + *
            +       * Required. Search config name.
            +       *
            +       * Format: projects/*/locations/global/notebookLmSearchConfigs/*
            +       * 
            + * + * string search_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for searchConfig. + */ + com.google.protobuf.ByteString getSearchConfigBytes(); + } + + /** + * + * + *
            +     * Config for connecting to NotebookLM Enterprise.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig} + */ + public static final class NotebooklmConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig) + NotebooklmConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "NotebooklmConfig"); + } + + // Use NotebooklmConfig.newBuilder() to construct. + private NotebooklmConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private NotebooklmConfig() { + searchConfig_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_NotebooklmConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_NotebooklmConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig.class, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig.Builder.class); + } + + public static final int SEARCH_CONFIG_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object searchConfig_ = ""; + + /** + * + * + *
            +       * Required. Search config name.
            +       *
            +       * Format: projects/*/locations/global/notebookLmSearchConfigs/*
            +       * 
            + * + * string search_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The searchConfig. + */ + @java.lang.Override + public java.lang.String getSearchConfig() { + java.lang.Object ref = searchConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchConfig_ = s; + return s; + } + } + + /** + * + * + *
            +       * Required. Search config name.
            +       *
            +       * Format: projects/*/locations/global/notebookLmSearchConfigs/*
            +       * 
            + * + * string search_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for searchConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSearchConfigBytes() { + java.lang.Object ref = searchConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + searchConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, searchConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchConfig_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, searchConfig_); + } + 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.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig + other = + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig) + obj; + + if (!getSearchConfig().equals(other.getSearchConfig())) 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) + SEARCH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSearchConfig().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig + 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.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseFrom( + 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.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Config for connecting to NotebookLM Enterprise.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig) + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_NotebooklmConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_NotebooklmConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig.class, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + searchConfig_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_NotebooklmConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig + build() { + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig + result = + new com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.searchConfig_ = searchConfig_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig.getDefaultInstance()) return this; + if (!other.getSearchConfig().isEmpty()) { + searchConfig_ = other.searchConfig_; + 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: + { + searchConfig_ = 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 searchConfig_ = ""; + + /** + * + * + *
            +         * Required. Search config name.
            +         *
            +         * Format: projects/*/locations/global/notebookLmSearchConfigs/*
            +         * 
            + * + * string search_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The searchConfig. + */ + public java.lang.String getSearchConfig() { + java.lang.Object ref = searchConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Required. Search config name.
            +         *
            +         * Format: projects/*/locations/global/notebookLmSearchConfigs/*
            +         * 
            + * + * string search_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for searchConfig. + */ + public com.google.protobuf.ByteString getSearchConfigBytes() { + java.lang.Object ref = searchConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + searchConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Required. Search config name.
            +         *
            +         * Format: projects/*/locations/global/notebookLmSearchConfigs/*
            +         * 
            + * + * string search_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The searchConfig to set. + * @return This builder for chaining. + */ + public Builder setSearchConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + searchConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. Search config name.
            +         *
            +         * Format: projects/*/locations/global/notebookLmSearchConfigs/*
            +         * 
            + * + * string search_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSearchConfig() { + searchConfig_ = getDefaultInstance().getSearchConfig(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. Search config name.
            +         *
            +         * Format: projects/*/locations/global/notebookLmSearchConfigs/*
            +         * 
            + * + * string search_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for searchConfig to set. + * @return This builder for chaining. + */ + public Builder setSearchConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + searchConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig) + private static final com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotebooklmConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int dataSourceConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object dataSourceConfig_; + + public enum DataSourceConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ALLOY_DB_CONFIG(1), + THIRD_PARTY_OAUTH_CONFIG(2), + NOTEBOOKLM_CONFIG(3), + DATASOURCECONFIG_NOT_SET(0); + private final int value; + + private DataSourceConfigCase(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 DataSourceConfigCase valueOf(int value) { + return forNumber(value); + } + + public static DataSourceConfigCase forNumber(int value) { + switch (value) { + case 1: + return ALLOY_DB_CONFIG; + case 2: + return THIRD_PARTY_OAUTH_CONFIG; + case 3: + return NOTEBOOKLM_CONFIG; + case 0: + return DATASOURCECONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DataSourceConfigCase getDataSourceConfigCase() { + return DataSourceConfigCase.forNumber(dataSourceConfigCase_); + } + + public static final int ALLOY_DB_CONFIG_FIELD_NUMBER = 1; + + /** + * + * + *
            +     * AlloyDB config. If set, this DataStore is connected to AlloyDB.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + * + * @return Whether the alloyDbConfig field is set. + */ + @java.lang.Override + public boolean hasAlloyDbConfig() { + return dataSourceConfigCase_ == 1; + } + + /** + * + * + *
            +     * AlloyDB config. If set, this DataStore is connected to AlloyDB.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + * + * @return The alloyDbConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + getAlloyDbConfig() { + if (dataSourceConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .getDefaultInstance(); + } + + /** + * + * + *
            +     * AlloyDB config. If set, this DataStore is connected to AlloyDB.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfigOrBuilder + getAlloyDbConfigOrBuilder() { + if (dataSourceConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .getDefaultInstance(); + } + + public static final int THIRD_PARTY_OAUTH_CONFIG_FIELD_NUMBER = 2; + + /** + * + * + *
            +     * Third Party OAuth config. If set, this DataStore is connected to a
            +     * third party application.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + * + * @return Whether the thirdPartyOauthConfig field is set. + */ + @java.lang.Override + public boolean hasThirdPartyOauthConfig() { + return dataSourceConfigCase_ == 2; + } + + /** + * + * + *
            +     * Third Party OAuth config. If set, this DataStore is connected to a
            +     * third party application.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + * + * @return The thirdPartyOauthConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + getThirdPartyOauthConfig() { + if (dataSourceConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.getDefaultInstance(); + } + + /** + * + * + *
            +     * Third Party OAuth config. If set, this DataStore is connected to a
            +     * third party application.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfigOrBuilder + getThirdPartyOauthConfigOrBuilder() { + if (dataSourceConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.getDefaultInstance(); + } + + public static final int NOTEBOOKLM_CONFIG_FIELD_NUMBER = 3; + + /** + * + * + *
            +     * NotebookLM config. If set, this DataStore is connected to
            +     * NotebookLM Enterprise.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + * + * @return Whether the notebooklmConfig field is set. + */ + @java.lang.Override + public boolean hasNotebooklmConfig() { + return dataSourceConfigCase_ == 3; + } + + /** + * + * + *
            +     * NotebookLM config. If set, this DataStore is connected to
            +     * NotebookLM Enterprise.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + * + * @return The notebooklmConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig + getNotebooklmConfig() { + if (dataSourceConfigCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig.getDefaultInstance(); + } + + /** + * + * + *
            +     * NotebookLM config. If set, this DataStore is connected to
            +     * NotebookLM Enterprise.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfigOrBuilder + getNotebooklmConfigOrBuilder() { + if (dataSourceConfigCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig.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 (dataSourceConfigCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig) + dataSourceConfig_); + } + if (dataSourceConfigCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + dataSourceConfig_); + } + if (dataSourceConfigCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig) + dataSourceConfig_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataSourceConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig) + dataSourceConfig_); + } + if (dataSourceConfigCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + dataSourceConfig_); + } + if (dataSourceConfigCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig) + dataSourceConfig_); + } + 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.v1beta.DataStore.FederatedSearchConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig other = + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig) obj; + + if (!getDataSourceConfigCase().equals(other.getDataSourceConfigCase())) return false; + switch (dataSourceConfigCase_) { + case 1: + if (!getAlloyDbConfig().equals(other.getAlloyDbConfig())) return false; + break; + case 2: + if (!getThirdPartyOauthConfig().equals(other.getThirdPartyOauthConfig())) return false; + break; + case 3: + if (!getNotebooklmConfig().equals(other.getNotebooklmConfig())) 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 (dataSourceConfigCase_) { + case 1: + hash = (37 * hash) + ALLOY_DB_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAlloyDbConfig().hashCode(); + break; + case 2: + hash = (37 * hash) + THIRD_PARTY_OAUTH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getThirdPartyOauthConfig().hashCode(); + break; + case 3: + hash = (37 * hash) + NOTEBOOKLM_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNotebooklmConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig 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.v1beta.DataStore.FederatedSearchConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig parseFrom( + 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.v1beta.DataStore.FederatedSearchConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Stores information for federated search.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig) + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.class, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (alloyDbConfigBuilder_ != null) { + alloyDbConfigBuilder_.clear(); + } + if (thirdPartyOauthConfigBuilder_ != null) { + thirdPartyOauthConfigBuilder_.clear(); + } + if (notebooklmConfigBuilder_ != null) { + notebooklmConfigBuilder_.clear(); + } + dataSourceConfigCase_ = 0; + dataSourceConfig_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig build() { + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig result = + new com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig result) { + result.dataSourceConfigCase_ = dataSourceConfigCase_; + result.dataSourceConfig_ = this.dataSourceConfig_; + if (dataSourceConfigCase_ == 1 && alloyDbConfigBuilder_ != null) { + result.dataSourceConfig_ = alloyDbConfigBuilder_.build(); + } + if (dataSourceConfigCase_ == 2 && thirdPartyOauthConfigBuilder_ != null) { + result.dataSourceConfig_ = thirdPartyOauthConfigBuilder_.build(); + } + if (dataSourceConfigCase_ == 3 && notebooklmConfigBuilder_ != null) { + result.dataSourceConfig_ = notebooklmConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .getDefaultInstance()) return this; + switch (other.getDataSourceConfigCase()) { + case ALLOY_DB_CONFIG: + { + mergeAlloyDbConfig(other.getAlloyDbConfig()); + break; + } + case THIRD_PARTY_OAUTH_CONFIG: + { + mergeThirdPartyOauthConfig(other.getThirdPartyOauthConfig()); + break; + } + case NOTEBOOKLM_CONFIG: + { + mergeNotebooklmConfig(other.getNotebooklmConfig()); + break; + } + case DATASOURCECONFIG_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( + internalGetAlloyDbConfigFieldBuilder().getBuilder(), extensionRegistry); + dataSourceConfigCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetThirdPartyOauthConfigFieldBuilder().getBuilder(), + extensionRegistry); + dataSourceConfigCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetNotebooklmConfigFieldBuilder().getBuilder(), extensionRegistry); + dataSourceConfigCase_ = 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 dataSourceConfigCase_ = 0; + private java.lang.Object dataSourceConfig_; + + public DataSourceConfigCase getDataSourceConfigCase() { + return DataSourceConfigCase.forNumber(dataSourceConfigCase_); + } + + public Builder clearDataSourceConfig() { + dataSourceConfigCase_ = 0; + dataSourceConfig_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfigOrBuilder> + alloyDbConfigBuilder_; + + /** + * + * + *
            +       * AlloyDB config. If set, this DataStore is connected to AlloyDB.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + * + * @return Whether the alloyDbConfig field is set. + */ + @java.lang.Override + public boolean hasAlloyDbConfig() { + return dataSourceConfigCase_ == 1; + } + + /** + * + * + *
            +       * AlloyDB config. If set, this DataStore is connected to AlloyDB.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + * + * @return The alloyDbConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + getAlloyDbConfig() { + if (alloyDbConfigBuilder_ == null) { + if (dataSourceConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.getDefaultInstance(); + } else { + if (dataSourceConfigCase_ == 1) { + return alloyDbConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * AlloyDB config. If set, this DataStore is connected to AlloyDB.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + */ + public Builder setAlloyDbConfig( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + value) { + if (alloyDbConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataSourceConfig_ = value; + onChanged(); + } else { + alloyDbConfigBuilder_.setMessage(value); + } + dataSourceConfigCase_ = 1; + return this; + } + + /** + * + * + *
            +       * AlloyDB config. If set, this DataStore is connected to AlloyDB.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + */ + public Builder setAlloyDbConfig( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .Builder + builderForValue) { + if (alloyDbConfigBuilder_ == null) { + dataSourceConfig_ = builderForValue.build(); + onChanged(); + } else { + alloyDbConfigBuilder_.setMessage(builderForValue.build()); + } + dataSourceConfigCase_ = 1; + return this; + } + + /** + * + * + *
            +       * AlloyDB config. If set, this DataStore is connected to AlloyDB.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + */ + public Builder mergeAlloyDbConfig( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + value) { + if (alloyDbConfigBuilder_ == null) { + if (dataSourceConfigCase_ == 1 + && dataSourceConfig_ + != com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.getDefaultInstance()) { + dataSourceConfig_ = + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.newBuilder( + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig) + dataSourceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + dataSourceConfig_ = value; + } + onChanged(); + } else { + if (dataSourceConfigCase_ == 1) { + alloyDbConfigBuilder_.mergeFrom(value); + } else { + alloyDbConfigBuilder_.setMessage(value); + } + } + dataSourceConfigCase_ = 1; + return this; + } + + /** + * + * + *
            +       * AlloyDB config. If set, this DataStore is connected to AlloyDB.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + */ + public Builder clearAlloyDbConfig() { + if (alloyDbConfigBuilder_ == null) { + if (dataSourceConfigCase_ == 1) { + dataSourceConfigCase_ = 0; + dataSourceConfig_ = null; + onChanged(); + } + } else { + if (dataSourceConfigCase_ == 1) { + dataSourceConfigCase_ = 0; + dataSourceConfig_ = null; + } + alloyDbConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * AlloyDB config. If set, this DataStore is connected to AlloyDB.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .Builder + getAlloyDbConfigBuilder() { + return internalGetAlloyDbConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * AlloyDB config. If set, this DataStore is connected to AlloyDB.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfigOrBuilder + getAlloyDbConfigOrBuilder() { + if ((dataSourceConfigCase_ == 1) && (alloyDbConfigBuilder_ != null)) { + return alloyDbConfigBuilder_.getMessageOrBuilder(); + } else { + if (dataSourceConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * AlloyDB config. If set, this DataStore is connected to AlloyDB.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig alloy_db_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.AlloyDbConfig + .Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfigOrBuilder> + internalGetAlloyDbConfigFieldBuilder() { + if (alloyDbConfigBuilder_ == null) { + if (!(dataSourceConfigCase_ == 1)) { + dataSourceConfig_ = + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.getDefaultInstance(); + } + alloyDbConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .AlloyDbConfig) + dataSourceConfig_, + getParentForChildren(), + isClean()); + dataSourceConfig_ = null; + } + dataSourceConfigCase_ = 1; + onChanged(); + return alloyDbConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfigOrBuilder> + thirdPartyOauthConfigBuilder_; + + /** + * + * + *
            +       * Third Party OAuth config. If set, this DataStore is connected to a
            +       * third party application.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + * + * @return Whether the thirdPartyOauthConfig field is set. + */ + @java.lang.Override + public boolean hasThirdPartyOauthConfig() { + return dataSourceConfigCase_ == 2; + } + + /** + * + * + *
            +       * Third Party OAuth config. If set, this DataStore is connected to a
            +       * third party application.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + * + * @return The thirdPartyOauthConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + getThirdPartyOauthConfig() { + if (thirdPartyOauthConfigBuilder_ == null) { + if (dataSourceConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.getDefaultInstance(); + } else { + if (dataSourceConfigCase_ == 2) { + return thirdPartyOauthConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * Third Party OAuth config. If set, this DataStore is connected to a
            +       * third party application.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + */ + public Builder setThirdPartyOauthConfig( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + value) { + if (thirdPartyOauthConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataSourceConfig_ = value; + onChanged(); + } else { + thirdPartyOauthConfigBuilder_.setMessage(value); + } + dataSourceConfigCase_ = 2; + return this; + } + + /** + * + * + *
            +       * Third Party OAuth config. If set, this DataStore is connected to a
            +       * third party application.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + */ + public Builder setThirdPartyOauthConfig( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.Builder + builderForValue) { + if (thirdPartyOauthConfigBuilder_ == null) { + dataSourceConfig_ = builderForValue.build(); + onChanged(); + } else { + thirdPartyOauthConfigBuilder_.setMessage(builderForValue.build()); + } + dataSourceConfigCase_ = 2; + return this; + } + + /** + * + * + *
            +       * Third Party OAuth config. If set, this DataStore is connected to a
            +       * third party application.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + */ + public Builder mergeThirdPartyOauthConfig( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig + value) { + if (thirdPartyOauthConfigBuilder_ == null) { + if (dataSourceConfigCase_ == 2 + && dataSourceConfig_ + != com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.getDefaultInstance()) { + dataSourceConfig_ = + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.newBuilder( + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + dataSourceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + dataSourceConfig_ = value; + } + onChanged(); + } else { + if (dataSourceConfigCase_ == 2) { + thirdPartyOauthConfigBuilder_.mergeFrom(value); + } else { + thirdPartyOauthConfigBuilder_.setMessage(value); + } + } + dataSourceConfigCase_ = 2; + return this; + } + + /** + * + * + *
            +       * Third Party OAuth config. If set, this DataStore is connected to a
            +       * third party application.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + */ + public Builder clearThirdPartyOauthConfig() { + if (thirdPartyOauthConfigBuilder_ == null) { + if (dataSourceConfigCase_ == 2) { + dataSourceConfigCase_ = 0; + dataSourceConfig_ = null; + onChanged(); + } + } else { + if (dataSourceConfigCase_ == 2) { + dataSourceConfigCase_ = 0; + dataSourceConfig_ = null; + } + thirdPartyOauthConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Third Party OAuth config. If set, this DataStore is connected to a
            +       * third party application.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.Builder + getThirdPartyOauthConfigBuilder() { + return internalGetThirdPartyOauthConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Third Party OAuth config. If set, this DataStore is connected to a
            +       * third party application.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfigOrBuilder + getThirdPartyOauthConfigOrBuilder() { + if ((dataSourceConfigCase_ == 2) && (thirdPartyOauthConfigBuilder_ != null)) { + return thirdPartyOauthConfigBuilder_.getMessageOrBuilder(); + } else { + if (dataSourceConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * Third Party OAuth config. If set, this DataStore is connected to a
            +       * third party application.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.ThirdPartyOauthConfig third_party_oauth_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfigOrBuilder> + internalGetThirdPartyOauthConfigFieldBuilder() { + if (thirdPartyOauthConfigBuilder_ == null) { + if (!(dataSourceConfigCase_ == 2)) { + dataSourceConfig_ = + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.getDefaultInstance(); + } + thirdPartyOauthConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .ThirdPartyOauthConfig) + dataSourceConfig_, + getParentForChildren(), + isClean()); + dataSourceConfig_ = null; + } + dataSourceConfigCase_ = 2; + onChanged(); + return thirdPartyOauthConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfigOrBuilder> + notebooklmConfigBuilder_; + + /** + * + * + *
            +       * NotebookLM config. If set, this DataStore is connected to
            +       * NotebookLM Enterprise.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + * + * @return Whether the notebooklmConfig field is set. + */ + @java.lang.Override + public boolean hasNotebooklmConfig() { + return dataSourceConfigCase_ == 3; + } + + /** + * + * + *
            +       * NotebookLM config. If set, this DataStore is connected to
            +       * NotebookLM Enterprise.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + * + * @return The notebooklmConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig + getNotebooklmConfig() { + if (notebooklmConfigBuilder_ == null) { + if (dataSourceConfigCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig.getDefaultInstance(); + } else { + if (dataSourceConfigCase_ == 3) { + return notebooklmConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * NotebookLM config. If set, this DataStore is connected to
            +       * NotebookLM Enterprise.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + */ + public Builder setNotebooklmConfig( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig + value) { + if (notebooklmConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataSourceConfig_ = value; + onChanged(); + } else { + notebooklmConfigBuilder_.setMessage(value); + } + dataSourceConfigCase_ = 3; + return this; + } + + /** + * + * + *
            +       * NotebookLM config. If set, this DataStore is connected to
            +       * NotebookLM Enterprise.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + */ + public Builder setNotebooklmConfig( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig + .Builder + builderForValue) { + if (notebooklmConfigBuilder_ == null) { + dataSourceConfig_ = builderForValue.build(); + onChanged(); + } else { + notebooklmConfigBuilder_.setMessage(builderForValue.build()); + } + dataSourceConfigCase_ = 3; + return this; + } + + /** + * + * + *
            +       * NotebookLM config. If set, this DataStore is connected to
            +       * NotebookLM Enterprise.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + */ + public Builder mergeNotebooklmConfig( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig + value) { + if (notebooklmConfigBuilder_ == null) { + if (dataSourceConfigCase_ == 3 + && dataSourceConfig_ + != com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig.getDefaultInstance()) { + dataSourceConfig_ = + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig.newBuilder( + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig) + dataSourceConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + dataSourceConfig_ = value; + } + onChanged(); + } else { + if (dataSourceConfigCase_ == 3) { + notebooklmConfigBuilder_.mergeFrom(value); + } else { + notebooklmConfigBuilder_.setMessage(value); + } + } + dataSourceConfigCase_ = 3; + return this; + } + + /** + * + * + *
            +       * NotebookLM config. If set, this DataStore is connected to
            +       * NotebookLM Enterprise.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + */ + public Builder clearNotebooklmConfig() { + if (notebooklmConfigBuilder_ == null) { + if (dataSourceConfigCase_ == 3) { + dataSourceConfigCase_ = 0; + dataSourceConfig_ = null; + onChanged(); + } + } else { + if (dataSourceConfigCase_ == 3) { + dataSourceConfigCase_ = 0; + dataSourceConfig_ = null; + } + notebooklmConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * NotebookLM config. If set, this DataStore is connected to
            +       * NotebookLM Enterprise.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig.Builder + getNotebooklmConfigBuilder() { + return internalGetNotebooklmConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * NotebookLM config. If set, this DataStore is connected to
            +       * NotebookLM Enterprise.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfigOrBuilder + getNotebooklmConfigOrBuilder() { + if ((dataSourceConfigCase_ == 3) && (notebooklmConfigBuilder_ != null)) { + return notebooklmConfigBuilder_.getMessageOrBuilder(); + } else { + if (dataSourceConfigCase_ == 3) { + return (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig) + dataSourceConfig_; + } + return com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * NotebookLM config. If set, this DataStore is connected to
            +       * NotebookLM Enterprise.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.NotebooklmConfig notebooklm_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfigOrBuilder> + internalGetNotebooklmConfigFieldBuilder() { + if (notebooklmConfigBuilder_ == null) { + if (!(dataSourceConfigCase_ == 3)) { + dataSourceConfig_ = + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig.getDefaultInstance(); + } + notebooklmConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .NotebooklmConfig) + dataSourceConfig_, + getParentForChildren(), + isClean()); + dataSourceConfig_ = null; + } + dataSourceConfigCase_ = 3; + onChanged(); + return notebooklmConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig) + private static final com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FederatedSearchConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.DataStore.FederatedSearchConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Immutable. Identifier. 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, (.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; + } + } + + /** + * + * + *
            +   * Immutable. Identifier. 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, (.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 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.v1beta.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.v1beta.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The industryVertical. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IndustryVertical getIndustryVertical() { + com.google.cloud.discoveryengine.v1beta.IndustryVertical result = + com.google.cloud.discoveryengine.v1beta.IndustryVertical.forNumber(industryVertical_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.IndustryVertical.UNRECOGNIZED + : result; + } + + public static final int SOLUTION_TYPES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList solutionTypes_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1beta.SolutionType> + solutionTypes_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1beta.SolutionType>() { + public com.google.cloud.discoveryengine.v1beta.SolutionType convert(int from) { + com.google.cloud.discoveryengine.v1beta.SolutionType result = + com.google.cloud.discoveryengine.v1beta.SolutionType.forNumber(from); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SolutionType.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
            +   * The solutions that the data store enrolls. Available solutions for each
            +   * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.SolutionType solution_types = 5; + * + * @return A list containing the solutionTypes. + */ + @java.lang.Override + public java.util.List + getSolutionTypesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1beta.SolutionType>( + solutionTypes_, solutionTypes_converter_); + } + + /** + * + * + *
            +   * The solutions that the data store enrolls. Available solutions for each
            +   * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.SolutionType solution_types = 5; + * + * @return The count of solutionTypes. + */ + @java.lang.Override + public int getSolutionTypesCount() { + return solutionTypes_.size(); + } + + /** + * + * + *
            +   * The solutions that the data store enrolls. Available solutions for each
            +   * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.SolutionType solution_types = 5; + * + * @param index The index of the element to return. + * @return The solutionTypes at the given index. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SolutionType getSolutionTypes(int index) { + return solutionTypes_converter_.convert(solutionTypes_.getInt(index)); + } + + /** + * + * + *
            +   * The solutions that the data store enrolls. Available solutions for each
            +   * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.SolutionType solution_types = 5; + * + * @return A list containing the enum numeric values on the wire for solutionTypes. + */ + @java.lang.Override + public java.util.List getSolutionTypesValueList() { + return solutionTypes_; + } + + /** + * + * + *
            +   * The solutions that the data store enrolls. Available solutions for each
            +   * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.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. + */ + @java.lang.Override + public int getSolutionTypesValue(int index) { + return solutionTypes_.getInt(index); + } + + private int solutionTypesMemoizedSerializedSize; + + public static final int DEFAULT_SCHEMA_ID_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultSchemaId_ = ""; + + /** + * + * + *
            +   * Output only. The id of the default
            +   * [Schema][google.cloud.discoveryengine.v1beta.Schema] associated to this
            +   * data store.
            +   * 
            + * + * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The defaultSchemaId. + */ + @java.lang.Override + public java.lang.String getDefaultSchemaId() { + java.lang.Object ref = defaultSchemaId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultSchemaId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. The id of the default
            +   * [Schema][google.cloud.discoveryengine.v1beta.Schema] associated to this
            +   * data store.
            +   * 
            + * + * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for defaultSchemaId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultSchemaIdBytes() { + java.lang.Object ref = defaultSchemaId_; + if (ref instanceof java.lang.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 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.v1beta.DataStore.ContentConfig.NO_CONTENT].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.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.v1beta.DataStore.ContentConfig.NO_CONTENT].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The contentConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig getContentConfig() { + com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig result = + com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.forNumber(contentConfig_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.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.v1beta.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.v1beta.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.v1beta.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 ADVANCED_SITE_SEARCH_CONFIG_FIELD_NUMBER = 12; + private com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig + advancedSiteSearchConfig_; + + /** + * + * + *
            +   * Optional. Configuration for advanced site search.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the advancedSiteSearchConfig field is set. + */ + @java.lang.Override + public boolean hasAdvancedSiteSearchConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. Configuration for advanced site search.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The advancedSiteSearchConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig + getAdvancedSiteSearchConfig() { + return advancedSiteSearchConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig.getDefaultInstance() + : advancedSiteSearchConfig_; + } + + /** + * + * + *
            +   * Optional. Configuration for advanced site search.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfigOrBuilder + getAdvancedSiteSearchConfigOrBuilder() { + return advancedSiteSearchConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig.getDefaultInstance() + : advancedSiteSearchConfig_; + } + + public static final int LANGUAGE_INFO_FIELD_NUMBER = 14; + private com.google.cloud.discoveryengine.v1beta.LanguageInfo languageInfo_; + + /** + * + * + *
            +   * Language info for DataStore.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + * + * @return Whether the languageInfo field is set. + */ + @java.lang.Override + public boolean hasLanguageInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Language info for DataStore.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + * + * @return The languageInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LanguageInfo getLanguageInfo() { + return languageInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.LanguageInfo.getDefaultInstance() + : languageInfo_; + } + + /** + * + * + *
            +   * Language info for DataStore.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LanguageInfoOrBuilder getLanguageInfoOrBuilder() { + return languageInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.LanguageInfo.getDefaultInstance() + : languageInfo_; + } + + public static final int NATURAL_LANGUAGE_QUERY_UNDERSTANDING_CONFIG_FIELD_NUMBER = 34; + private com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig + naturalLanguageQueryUnderstandingConfig_; + + /** + * + * + *
            +   * Optional. Configuration for Natural Language Query Understanding.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the naturalLanguageQueryUnderstandingConfig field is set. + */ + @java.lang.Override + public boolean hasNaturalLanguageQueryUnderstandingConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Optional. Configuration for Natural Language Query Understanding.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The naturalLanguageQueryUnderstandingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig + getNaturalLanguageQueryUnderstandingConfig() { + return naturalLanguageQueryUnderstandingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig + .getDefaultInstance() + : naturalLanguageQueryUnderstandingConfig_; + } + + /** + * + * + *
            +   * Optional. Configuration for Natural Language Query Understanding.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfigOrBuilder + getNaturalLanguageQueryUnderstandingConfigOrBuilder() { + return naturalLanguageQueryUnderstandingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig + .getDefaultInstance() + : naturalLanguageQueryUnderstandingConfig_; + } + + public static final int KMS_KEY_NAME_FIELD_NUMBER = 32; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyName_ = ""; + + /** + * + * + *
            +   * Input only. The KMS key to be used to protect this DataStore at creation
            +   * time.
            +   *
            +   * Must be set for requests that need to comply with CMEK Org Policy
            +   * protections.
            +   *
            +   * If this field is set and processed successfully, the DataStore will be
            +   * protected by the KMS key, as indicated in the cmek_config field.
            +   * 
            + * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The kmsKeyName. + */ + @java.lang.Override + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } + } + + /** + * + * + *
            +   * Input only. The KMS key to be used to protect this DataStore at creation
            +   * time.
            +   *
            +   * Must be set for requests that need to comply with CMEK Org Policy
            +   * protections.
            +   *
            +   * If this field is set and processed successfully, the DataStore will be
            +   * protected by the KMS key, as indicated in the cmek_config field.
            +   * 
            + * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for kmsKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CMEK_CONFIG_FIELD_NUMBER = 18; + private com.google.cloud.discoveryengine.v1beta.CmekConfig cmekConfig_; + + /** + * + * + *
            +   * Output only. CMEK-related information for the DataStore.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cmekConfig field is set. + */ + @java.lang.Override + public boolean hasCmekConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +   * Output only. CMEK-related information for the DataStore.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cmekConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CmekConfig getCmekConfig() { + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance() + : cmekConfig_; + } + + /** + * + * + *
            +   * Output only. CMEK-related information for the DataStore.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder getCmekConfigOrBuilder() { + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance() + : cmekConfig_; + } + + public static final int BILLING_ESTIMATION_FIELD_NUMBER = 23; + private com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billingEstimation_; + + /** + * + * + *
            +   * Output only. Data size estimation for billing.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the billingEstimation field is set. + */ + @java.lang.Override + public boolean hasBillingEstimation() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +   * Output only. Data size estimation for billing.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The billingEstimation. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation + getBillingEstimation() { + return billingEstimation_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation.getDefaultInstance() + : billingEstimation_; + } + + /** + * + * + *
            +   * Output only. Data size estimation for billing.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimationOrBuilder + getBillingEstimationOrBuilder() { + return billingEstimation_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation.getDefaultInstance() + : billingEstimation_; + } + + public static final int ACL_ENABLED_FIELD_NUMBER = 24; + private boolean aclEnabled_ = false; + + /** + * + * + *
            +   * Immutable. Whether data in the
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] has ACL
            +   * information. If set to `true`, the source data must have ACL. ACL will be
            +   * ingested when data is ingested by
            +   * [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ImportDocuments]
            +   * methods.
            +   *
            +   * When ACL is enabled for the
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore],
            +   * [Document][google.cloud.discoveryengine.v1beta.Document] can't be accessed
            +   * by calling
            +   * [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument]
            +   * or
            +   * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments].
            +   *
            +   * Currently ACL is only supported in `GENERIC` industry vertical with
            +   * non-`PUBLIC_WEBSITE` content config.
            +   * 
            + * + * bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The aclEnabled. + */ + @java.lang.Override + public boolean getAclEnabled() { + return aclEnabled_; + } + + public static final int WORKSPACE_CONFIG_FIELD_NUMBER = 25; + private com.google.cloud.discoveryengine.v1beta.WorkspaceConfig workspaceConfig_; + + /** + * + * + *
            +   * Config to store data store type configuration for workspace data. This
            +   * must be set when
            +   * [DataStore.content_config][google.cloud.discoveryengine.v1beta.DataStore.content_config]
            +   * is set as
            +   * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; + * + * @return Whether the workspaceConfig field is set. + */ + @java.lang.Override + public boolean hasWorkspaceConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +   * Config to store data store type configuration for workspace data. This
            +   * must be set when
            +   * [DataStore.content_config][google.cloud.discoveryengine.v1beta.DataStore.content_config]
            +   * is set as
            +   * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; + * + * @return The workspaceConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.WorkspaceConfig getWorkspaceConfig() { + return workspaceConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.WorkspaceConfig.getDefaultInstance() + : workspaceConfig_; + } + + /** + * + * + *
            +   * Config to store data store type configuration for workspace data. This
            +   * must be set when
            +   * [DataStore.content_config][google.cloud.discoveryengine.v1beta.DataStore.content_config]
            +   * is set as
            +   * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.WorkspaceConfigOrBuilder + getWorkspaceConfigOrBuilder() { + return workspaceConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.WorkspaceConfig.getDefaultInstance() + : workspaceConfig_; + } + + public static final int DOCUMENT_PROCESSING_CONFIG_FIELD_NUMBER = 27; + private com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + documentProcessingConfig_; + + /** + * + * + *
            +   * Configuration for Document understanding and enrichment.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * + * + * @return Whether the documentProcessingConfig field is set. + */ + @java.lang.Override + public boolean hasDocumentProcessingConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
            +   * Configuration for Document understanding and enrichment.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * + * + * @return The documentProcessingConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + getDocumentProcessingConfig() { + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; + } + + /** + * + * + *
            +   * Configuration for Document understanding and enrichment.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigOrBuilder + getDocumentProcessingConfigOrBuilder() { + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; + } + + public static final int STARTING_SCHEMA_FIELD_NUMBER = 28; + private com.google.cloud.discoveryengine.v1beta.Schema startingSchema_; + + /** + * + * + *
            +   * The start schema to use for this
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            +   * provisioning it. If unset, a default vertical specialized schema will be
            +   * used.
            +   *
            +   * This field is only used by
            +   * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +   * API, and will be ignored if used in other APIs. This field will be omitted
            +   * from all API responses including
            +   * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +   * API. To retrieve a schema of a
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            +   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            +   * API instead.
            +   *
            +   * The provided schema will be validated against certain rules on schema.
            +   * Learn more from [this
            +   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + * + * @return Whether the startingSchema field is set. + */ + @java.lang.Override + public boolean hasStartingSchema() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
            +   * The start schema to use for this
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            +   * provisioning it. If unset, a default vertical specialized schema will be
            +   * used.
            +   *
            +   * This field is only used by
            +   * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +   * API, and will be ignored if used in other APIs. This field will be omitted
            +   * from all API responses including
            +   * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +   * API. To retrieve a schema of a
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            +   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            +   * API instead.
            +   *
            +   * The provided schema will be validated against certain rules on schema.
            +   * Learn more from [this
            +   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + * + * @return The startingSchema. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Schema getStartingSchema() { + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() + : startingSchema_; + } + + /** + * + * + *
            +   * The start schema to use for this
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            +   * provisioning it. If unset, a default vertical specialized schema will be
            +   * used.
            +   *
            +   * This field is only used by
            +   * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +   * API, and will be ignored if used in other APIs. This field will be omitted
            +   * from all API responses including
            +   * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +   * API. To retrieve a schema of a
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            +   * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            +   * API instead.
            +   *
            +   * The provided schema will be validated against certain rules on schema.
            +   * Learn more from [this
            +   * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getStartingSchemaOrBuilder() { + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() + : startingSchema_; + } + + public static final int HEALTHCARE_FHIR_CONFIG_FIELD_NUMBER = 29; + private com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig healthcareFhirConfig_; + + /** + * + * + *
            +   * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the healthcareFhirConfig field is set. + */ + @java.lang.Override + public boolean hasHealthcareFhirConfig() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
            +   * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The healthcareFhirConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig getHealthcareFhirConfig() { + return healthcareFhirConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig.getDefaultInstance() + : healthcareFhirConfig_; + } + + /** + * + * + *
            +   * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfigOrBuilder + getHealthcareFhirConfigOrBuilder() { + return healthcareFhirConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig.getDefaultInstance() + : healthcareFhirConfig_; + } + + public static final int SERVING_CONFIG_DATA_STORE_FIELD_NUMBER = 30; + private com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore + servingConfigDataStore_; + + /** + * + * + *
            +   * Optional. Stores serving config at DataStore level.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the servingConfigDataStore field is set. + */ + @java.lang.Override + public boolean hasServingConfigDataStore() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
            +   * Optional. Stores serving config at DataStore level.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The servingConfigDataStore. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore + getServingConfigDataStore() { + return servingConfigDataStore_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore + .getDefaultInstance() + : servingConfigDataStore_; + } + + /** + * + * + *
            +   * Optional. Stores serving config at DataStore level.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStoreOrBuilder + getServingConfigDataStoreOrBuilder() { + return servingConfigDataStore_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore + .getDefaultInstance() + : servingConfigDataStore_; + } + + public static final int IDENTITY_MAPPING_STORE_FIELD_NUMBER = 31; + + @SuppressWarnings("serial") + private volatile java.lang.Object identityMappingStore_ = ""; + + /** + * + * + *
            +   * Immutable. The fully qualified resource name of the associated
            +   * [IdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStore].
            +   * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
            +   * `GSUITE` IdP. Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
            +   * 
            + * + * + * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The identityMappingStore. + */ + @java.lang.Override + public java.lang.String getIdentityMappingStore() { + java.lang.Object ref = identityMappingStore_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityMappingStore_ = s; + return s; + } + } + + /** + * + * + *
            +   * Immutable. The fully qualified resource name of the associated
            +   * [IdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStore].
            +   * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
            +   * `GSUITE` IdP. Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
            +   * 
            + * + * + * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for identityMappingStore. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentityMappingStoreBytes() { + java.lang.Object ref = identityMappingStore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityMappingStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IS_INFOBOT_FAQ_DATA_STORE_FIELD_NUMBER = 37; + private boolean isInfobotFaqDataStore_ = false; + + /** + * + * + *
            +   * Optional. If set, this DataStore is an Infobot FAQ DataStore.
            +   * 
            + * + * bool is_infobot_faq_data_store = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isInfobotFaqDataStore. + */ + @java.lang.Override + public boolean getIsInfobotFaqDataStore() { + return isInfobotFaqDataStore_; + } + + public static final int FEDERATED_SEARCH_CONFIG_FIELD_NUMBER = 38; + private com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + federatedSearchConfig_; + + /** + * + * + *
            +   * Optional. If set, this DataStore is a federated search DataStore.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the federatedSearchConfig field is set. + */ + @java.lang.Override + public boolean hasFederatedSearchConfig() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
            +   * Optional. If set, this DataStore is a federated search DataStore.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The federatedSearchConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + getFederatedSearchConfig() { + return federatedSearchConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .getDefaultInstance() + : federatedSearchConfig_; + } + + /** + * + * + *
            +   * Optional. If set, this DataStore is a federated search DataStore.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfigOrBuilder + getFederatedSearchConfigOrBuilder() { + return federatedSearchConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .getDefaultInstance() + : federatedSearchConfig_; + } + + public static final int CONFIGURABLE_BILLING_APPROACH_FIELD_NUMBER = 45; + private int configurableBillingApproach_ = 0; + + /** + * + * + *
            +   * Optional. Configuration for configurable billing approach. See
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach configurable_billing_approach = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for configurableBillingApproach. + */ + @java.lang.Override + public int getConfigurableBillingApproachValue() { + return configurableBillingApproach_; + } + + /** + * + * + *
            +   * Optional. Configuration for configurable billing approach. See
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach configurable_billing_approach = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The configurableBillingApproach. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach + getConfigurableBillingApproach() { + com.google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach result = + com.google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach.forNumber( + configurableBillingApproach_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach.UNRECOGNIZED + : result; + } + + public static final int CONFIGURABLE_BILLING_APPROACH_UPDATE_TIME_FIELD_NUMBER = 46; + private com.google.protobuf.Timestamp configurableBillingApproachUpdateTime_; + + /** + * + * + *
            +   * Output only. The timestamp when configurable_billing_approach was last
            +   * updated.
            +   * 
            + * + * + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the configurableBillingApproachUpdateTime field is set. + */ + @java.lang.Override + public boolean hasConfigurableBillingApproachUpdateTime() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
            +   * Output only. The timestamp when configurable_billing_approach was last
            +   * updated.
            +   * 
            + * + * + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The configurableBillingApproachUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getConfigurableBillingApproachUpdateTime() { + return configurableBillingApproachUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : configurableBillingApproachUpdateTime_; + } + + /** + * + * + *
            +   * Output only. The timestamp when configurable_billing_approach was last
            +   * updated.
            +   * 
            + * + * + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder + getConfigurableBillingApproachUpdateTimeOrBuilder() { + return configurableBillingApproachUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : configurableBillingApproachUpdateTime_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (industryVertical_ + != com.google.cloud.discoveryengine.v1beta.IndustryVertical.INDUSTRY_VERTICAL_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, industryVertical_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCreateTime()); + } + if (getSolutionTypesList().size() > 0) { + output.writeUInt32NoTag(42); + output.writeUInt32NoTag(solutionTypesMemoizedSerializedSize); + } + for (int i = 0; i < solutionTypes_.size(); i++) { + output.writeEnumNoTag(solutionTypes_.getInt(i)); + } + if (contentConfig_ + != com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig + .CONTENT_CONFIG_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, contentConfig_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultSchemaId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, defaultSchemaId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(12, getAdvancedSiteSearchConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(14, getLanguageInfo()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(18, getCmekConfig()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(23, getBillingEstimation()); + } + if (aclEnabled_ != false) { + output.writeBool(24, aclEnabled_); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(25, getWorkspaceConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(27, getDocumentProcessingConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(28, getStartingSchema()); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(29, getHealthcareFhirConfig()); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(30, getServingConfigDataStore()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identityMappingStore_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 31, identityMappingStore_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 32, kmsKeyName_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(34, getNaturalLanguageQueryUnderstandingConfig()); + } + if (isInfobotFaqDataStore_ != false) { + output.writeBool(37, isInfobotFaqDataStore_); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(38, getFederatedSearchConfig()); + } + if (configurableBillingApproach_ + != com.google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach + .CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED + .getNumber()) { + output.writeEnum(45, configurableBillingApproach_); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(46, getConfigurableBillingApproachUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (industryVertical_ + != com.google.cloud.discoveryengine.v1beta.IndustryVertical.INDUSTRY_VERTICAL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, industryVertical_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + { + int dataSize = 0; + for (int i = 0; i < solutionTypes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(solutionTypes_.getInt(i)); + } + size += dataSize; + if (!getSolutionTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + solutionTypesMemoizedSerializedSize = dataSize; + } + if (contentConfig_ + != com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig + .CONTENT_CONFIG_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, contentConfig_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultSchemaId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, defaultSchemaId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, getAdvancedSiteSearchConfig()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getLanguageInfo()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getCmekConfig()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getBillingEstimation()); + } + if (aclEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(24, aclEnabled_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getWorkspaceConfig()); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 27, getDocumentProcessingConfig()); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getStartingSchema()); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(29, getHealthcareFhirConfig()); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(30, getServingConfigDataStore()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identityMappingStore_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(31, identityMappingStore_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(32, kmsKeyName_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 34, getNaturalLanguageQueryUnderstandingConfig()); + } + if (isInfobotFaqDataStore_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(37, isInfobotFaqDataStore_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(38, getFederatedSearchConfig()); + } + if (configurableBillingApproach_ + != com.google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach + .CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(45, configurableBillingApproach_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 46, getConfigurableBillingApproachUpdateTime()); + } + 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.v1beta.DataStore)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DataStore other = + (com.google.cloud.discoveryengine.v1beta.DataStore) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (industryVertical_ != other.industryVertical_) return false; + if (!solutionTypes_.equals(other.solutionTypes_)) return false; + if (!getDefaultSchemaId().equals(other.getDefaultSchemaId())) return false; + if (contentConfig_ != other.contentConfig_) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasAdvancedSiteSearchConfig() != other.hasAdvancedSiteSearchConfig()) return false; + if (hasAdvancedSiteSearchConfig()) { + if (!getAdvancedSiteSearchConfig().equals(other.getAdvancedSiteSearchConfig())) return false; + } + if (hasLanguageInfo() != other.hasLanguageInfo()) return false; + if (hasLanguageInfo()) { + if (!getLanguageInfo().equals(other.getLanguageInfo())) return false; + } + if (hasNaturalLanguageQueryUnderstandingConfig() + != other.hasNaturalLanguageQueryUnderstandingConfig()) return false; + if (hasNaturalLanguageQueryUnderstandingConfig()) { + if (!getNaturalLanguageQueryUnderstandingConfig() + .equals(other.getNaturalLanguageQueryUnderstandingConfig())) return false; + } + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (hasCmekConfig() != other.hasCmekConfig()) return false; + if (hasCmekConfig()) { + if (!getCmekConfig().equals(other.getCmekConfig())) return false; + } + if (hasBillingEstimation() != other.hasBillingEstimation()) return false; + if (hasBillingEstimation()) { + if (!getBillingEstimation().equals(other.getBillingEstimation())) return false; + } + if (getAclEnabled() != other.getAclEnabled()) 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; + } + if (hasStartingSchema() != other.hasStartingSchema()) return false; + if (hasStartingSchema()) { + if (!getStartingSchema().equals(other.getStartingSchema())) return false; + } + if (hasHealthcareFhirConfig() != other.hasHealthcareFhirConfig()) return false; + if (hasHealthcareFhirConfig()) { + if (!getHealthcareFhirConfig().equals(other.getHealthcareFhirConfig())) return false; + } + if (hasServingConfigDataStore() != other.hasServingConfigDataStore()) return false; + if (hasServingConfigDataStore()) { + if (!getServingConfigDataStore().equals(other.getServingConfigDataStore())) return false; + } + if (!getIdentityMappingStore().equals(other.getIdentityMappingStore())) return false; + if (getIsInfobotFaqDataStore() != other.getIsInfobotFaqDataStore()) return false; + if (hasFederatedSearchConfig() != other.hasFederatedSearchConfig()) return false; + if (hasFederatedSearchConfig()) { + if (!getFederatedSearchConfig().equals(other.getFederatedSearchConfig())) return false; + } + if (configurableBillingApproach_ != other.configurableBillingApproach_) return false; + if (hasConfigurableBillingApproachUpdateTime() + != other.hasConfigurableBillingApproachUpdateTime()) return false; + if (hasConfigurableBillingApproachUpdateTime()) { + if (!getConfigurableBillingApproachUpdateTime() + .equals(other.getConfigurableBillingApproachUpdateTime())) 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) + INDUSTRY_VERTICAL_FIELD_NUMBER; + hash = (53 * hash) + industryVertical_; + if (getSolutionTypesCount() > 0) { + hash = (37 * hash) + SOLUTION_TYPES_FIELD_NUMBER; + hash = (53 * hash) + solutionTypes_.hashCode(); + } + hash = (37 * hash) + DEFAULT_SCHEMA_ID_FIELD_NUMBER; + hash = (53 * hash) + getDefaultSchemaId().hashCode(); + hash = (37 * hash) + CONTENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + contentConfig_; + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasAdvancedSiteSearchConfig()) { + hash = (37 * hash) + ADVANCED_SITE_SEARCH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAdvancedSiteSearchConfig().hashCode(); + } + if (hasLanguageInfo()) { + hash = (37 * hash) + LANGUAGE_INFO_FIELD_NUMBER; + hash = (53 * hash) + getLanguageInfo().hashCode(); + } + if (hasNaturalLanguageQueryUnderstandingConfig()) { + hash = (37 * hash) + NATURAL_LANGUAGE_QUERY_UNDERSTANDING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNaturalLanguageQueryUnderstandingConfig().hashCode(); + } + hash = (37 * hash) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); + if (hasCmekConfig()) { + hash = (37 * hash) + CMEK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCmekConfig().hashCode(); + } + if (hasBillingEstimation()) { + hash = (37 * hash) + BILLING_ESTIMATION_FIELD_NUMBER; + hash = (53 * hash) + getBillingEstimation().hashCode(); + } + hash = (37 * hash) + ACL_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAclEnabled()); + 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(); + } + if (hasStartingSchema()) { + hash = (37 * hash) + STARTING_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getStartingSchema().hashCode(); + } + if (hasHealthcareFhirConfig()) { + hash = (37 * hash) + HEALTHCARE_FHIR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getHealthcareFhirConfig().hashCode(); + } + if (hasServingConfigDataStore()) { + hash = (37 * hash) + SERVING_CONFIG_DATA_STORE_FIELD_NUMBER; + hash = (53 * hash) + getServingConfigDataStore().hashCode(); + } + hash = (37 * hash) + IDENTITY_MAPPING_STORE_FIELD_NUMBER; + hash = (53 * hash) + getIdentityMappingStore().hashCode(); + hash = (37 * hash) + IS_INFOBOT_FAQ_DATA_STORE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsInfobotFaqDataStore()); + if (hasFederatedSearchConfig()) { + hash = (37 * hash) + FEDERATED_SEARCH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getFederatedSearchConfig().hashCode(); + } + hash = (37 * hash) + CONFIGURABLE_BILLING_APPROACH_FIELD_NUMBER; + hash = (53 * hash) + configurableBillingApproach_; + if (hasConfigurableBillingApproachUpdateTime()) { + hash = (37 * hash) + CONFIGURABLE_BILLING_APPROACH_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getConfigurableBillingApproachUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore 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.v1beta.DataStore parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore parseFrom( + 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.v1beta.DataStore parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DataStore parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.DataStore prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * DataStore captures global settings and configs at the DataStore level.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DataStore} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DataStore) + com.google.cloud.discoveryengine.v1beta.DataStoreOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_descriptor; } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DataStore.class, + com.google.cloud.discoveryengine.v1beta.DataStore.Builder.class); } - if (industryVertical_ - != com.google.cloud.discoveryengine.v1beta.IndustryVertical.INDUSTRY_VERTICAL_UNSPECIFIED - .getNumber()) { - output.writeEnum(3, industryVertical_); + + // Construct using com.google.cloud.discoveryengine.v1beta.DataStore.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getCreateTime()); + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - if (getSolutionTypesList().size() > 0) { - output.writeUInt32NoTag(42); - output.writeUInt32NoTag(solutionTypesMemoizedSerializedSize); + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetAdvancedSiteSearchConfigFieldBuilder(); + internalGetLanguageInfoFieldBuilder(); + internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder(); + internalGetCmekConfigFieldBuilder(); + internalGetBillingEstimationFieldBuilder(); + internalGetWorkspaceConfigFieldBuilder(); + internalGetDocumentProcessingConfigFieldBuilder(); + internalGetStartingSchemaFieldBuilder(); + internalGetHealthcareFhirConfigFieldBuilder(); + internalGetServingConfigDataStoreFieldBuilder(); + internalGetFederatedSearchConfigFieldBuilder(); + internalGetConfigurableBillingApproachUpdateTimeFieldBuilder(); + } } - for (int i = 0; i < solutionTypes_.size(); i++) { - output.writeEnumNoTag(solutionTypes_.getInt(i)); + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + industryVertical_ = 0; + solutionTypes_ = emptyIntList(); + defaultSchemaId_ = ""; + contentConfig_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + advancedSiteSearchConfig_ = null; + if (advancedSiteSearchConfigBuilder_ != null) { + advancedSiteSearchConfigBuilder_.dispose(); + advancedSiteSearchConfigBuilder_ = null; + } + languageInfo_ = null; + if (languageInfoBuilder_ != null) { + languageInfoBuilder_.dispose(); + languageInfoBuilder_ = null; + } + naturalLanguageQueryUnderstandingConfig_ = null; + if (naturalLanguageQueryUnderstandingConfigBuilder_ != null) { + naturalLanguageQueryUnderstandingConfigBuilder_.dispose(); + naturalLanguageQueryUnderstandingConfigBuilder_ = null; + } + kmsKeyName_ = ""; + cmekConfig_ = null; + if (cmekConfigBuilder_ != null) { + cmekConfigBuilder_.dispose(); + cmekConfigBuilder_ = null; + } + billingEstimation_ = null; + if (billingEstimationBuilder_ != null) { + billingEstimationBuilder_.dispose(); + billingEstimationBuilder_ = null; + } + aclEnabled_ = false; + 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; + } + healthcareFhirConfig_ = null; + if (healthcareFhirConfigBuilder_ != null) { + healthcareFhirConfigBuilder_.dispose(); + healthcareFhirConfigBuilder_ = null; + } + servingConfigDataStore_ = null; + if (servingConfigDataStoreBuilder_ != null) { + servingConfigDataStoreBuilder_.dispose(); + servingConfigDataStoreBuilder_ = null; + } + identityMappingStore_ = ""; + isInfobotFaqDataStore_ = false; + federatedSearchConfig_ = null; + if (federatedSearchConfigBuilder_ != null) { + federatedSearchConfigBuilder_.dispose(); + federatedSearchConfigBuilder_ = null; + } + configurableBillingApproach_ = 0; + configurableBillingApproachUpdateTime_ = null; + if (configurableBillingApproachUpdateTimeBuilder_ != null) { + configurableBillingApproachUpdateTimeBuilder_.dispose(); + configurableBillingApproachUpdateTimeBuilder_ = null; + } + return this; } - if (contentConfig_ - != com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig - .CONTENT_CONFIG_UNSPECIFIED - .getNumber()) { - output.writeEnum(6, contentConfig_); + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DataStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_DataStore_descriptor; } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultSchemaId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 7, defaultSchemaId_); + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DataStore.getDefaultInstance(); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(14, getLanguageInfo()); + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore build() { + com.google.cloud.discoveryengine.v1beta.DataStore result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(23, getBillingEstimation()); + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore buildPartial() { + com.google.cloud.discoveryengine.v1beta.DataStore result = + new com.google.cloud.discoveryengine.v1beta.DataStore(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(25, getWorkspaceConfig()); + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.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_ & 0x00000008) != 0)) { + solutionTypes_.makeImmutable(); + result.solutionTypes_ = solutionTypes_; + } + 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.advancedSiteSearchConfig_ = + advancedSiteSearchConfigBuilder_ == null + ? advancedSiteSearchConfig_ + : advancedSiteSearchConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.languageInfo_ = + languageInfoBuilder_ == null ? languageInfo_ : languageInfoBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.naturalLanguageQueryUnderstandingConfig_ = + naturalLanguageQueryUnderstandingConfigBuilder_ == null + ? naturalLanguageQueryUnderstandingConfig_ + : naturalLanguageQueryUnderstandingConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.kmsKeyName_ = kmsKeyName_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.cmekConfig_ = cmekConfigBuilder_ == null ? cmekConfig_ : cmekConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.billingEstimation_ = + billingEstimationBuilder_ == null + ? billingEstimation_ + : billingEstimationBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.aclEnabled_ = aclEnabled_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.workspaceConfig_ = + workspaceConfigBuilder_ == null ? workspaceConfig_ : workspaceConfigBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.documentProcessingConfig_ = + documentProcessingConfigBuilder_ == null + ? documentProcessingConfig_ + : documentProcessingConfigBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.startingSchema_ = + startingSchemaBuilder_ == null ? startingSchema_ : startingSchemaBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.healthcareFhirConfig_ = + healthcareFhirConfigBuilder_ == null + ? healthcareFhirConfig_ + : healthcareFhirConfigBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.servingConfigDataStore_ = + servingConfigDataStoreBuilder_ == null + ? servingConfigDataStore_ + : servingConfigDataStoreBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.identityMappingStore_ = identityMappingStore_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.isInfobotFaqDataStore_ = isInfobotFaqDataStore_; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.federatedSearchConfig_ = + federatedSearchConfigBuilder_ == null + ? federatedSearchConfig_ + : federatedSearchConfigBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.configurableBillingApproach_ = configurableBillingApproach_; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.configurableBillingApproachUpdateTime_ = + configurableBillingApproachUpdateTimeBuilder_ == null + ? configurableBillingApproachUpdateTime_ + : configurableBillingApproachUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + result.bitField0_ |= to_bitField0_; } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(27, getDocumentProcessingConfig()); + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.DataStore) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.DataStore) other); + } else { + super.mergeFrom(other); + return this; + } } - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(28, getStartingSchema()); + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.DataStore other) { + if (other == com.google.cloud.discoveryengine.v1beta.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_; + solutionTypes_.makeImmutable(); + 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()); + } + if (other.hasAdvancedSiteSearchConfig()) { + mergeAdvancedSiteSearchConfig(other.getAdvancedSiteSearchConfig()); + } + if (other.hasLanguageInfo()) { + mergeLanguageInfo(other.getLanguageInfo()); + } + if (other.hasNaturalLanguageQueryUnderstandingConfig()) { + mergeNaturalLanguageQueryUnderstandingConfig( + other.getNaturalLanguageQueryUnderstandingConfig()); + } + if (!other.getKmsKeyName().isEmpty()) { + kmsKeyName_ = other.kmsKeyName_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasCmekConfig()) { + mergeCmekConfig(other.getCmekConfig()); + } + if (other.hasBillingEstimation()) { + mergeBillingEstimation(other.getBillingEstimation()); + } + if (other.getAclEnabled() != false) { + setAclEnabled(other.getAclEnabled()); + } + if (other.hasWorkspaceConfig()) { + mergeWorkspaceConfig(other.getWorkspaceConfig()); + } + if (other.hasDocumentProcessingConfig()) { + mergeDocumentProcessingConfig(other.getDocumentProcessingConfig()); + } + if (other.hasStartingSchema()) { + mergeStartingSchema(other.getStartingSchema()); + } + if (other.hasHealthcareFhirConfig()) { + mergeHealthcareFhirConfig(other.getHealthcareFhirConfig()); + } + if (other.hasServingConfigDataStore()) { + mergeServingConfigDataStore(other.getServingConfigDataStore()); + } + if (!other.getIdentityMappingStore().isEmpty()) { + identityMappingStore_ = other.identityMappingStore_; + bitField0_ |= 0x00080000; + onChanged(); + } + if (other.getIsInfobotFaqDataStore() != false) { + setIsInfobotFaqDataStore(other.getIsInfobotFaqDataStore()); + } + if (other.hasFederatedSearchConfig()) { + mergeFederatedSearchConfig(other.getFederatedSearchConfig()); + } + if (other.configurableBillingApproach_ != 0) { + setConfigurableBillingApproachValue(other.getConfigurableBillingApproachValue()); + } + if (other.hasConfigurableBillingApproachUpdateTime()) { + mergeConfigurableBillingApproachUpdateTime( + other.getConfigurableBillingApproachUpdateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(30, getServingConfigDataStore()); + + @java.lang.Override + public final boolean isInitialized() { + return true; } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(34, getNaturalLanguageQueryUnderstandingConfig()); + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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 24: + { + industryVertical_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 34 + case 40: + { + int tmpRaw = input.readEnum(); + ensureSolutionTypesIsMutable(); + solutionTypes_.addInt(tmpRaw); + break; + } // case 40 + case 42: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSolutionTypesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + solutionTypes_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 42 + case 48: + { + contentConfig_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + defaultSchemaId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 58 + case 98: + { + input.readMessage( + internalGetAdvancedSiteSearchConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 98 + case 114: + { + input.readMessage( + internalGetLanguageInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 114 + case 146: + { + input.readMessage( + internalGetCmekConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 146 + case 186: + { + input.readMessage( + internalGetBillingEstimationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 186 + case 192: + { + aclEnabled_ = input.readBool(); + bitField0_ |= 0x00002000; + break; + } // case 192 + case 202: + { + input.readMessage( + internalGetWorkspaceConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 202 + case 218: + { + input.readMessage( + internalGetDocumentProcessingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 218 + case 226: + { + input.readMessage( + internalGetStartingSchemaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 226 + case 234: + { + input.readMessage( + internalGetHealthcareFhirConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 234 + case 242: + { + input.readMessage( + internalGetServingConfigDataStoreFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 242 + case 250: + { + identityMappingStore_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00080000; + break; + } // case 250 + case 258: + { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 258 + case 274: + { + input.readMessage( + internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 274 + case 296: + { + isInfobotFaqDataStore_ = input.readBool(); + bitField0_ |= 0x00100000; + break; + } // case 296 + case 306: + { + input.readMessage( + internalGetFederatedSearchConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 306 + case 360: + { + configurableBillingApproach_ = input.readEnum(); + bitField0_ |= 0x00400000; + break; + } // case 360 + case 370: + { + input.readMessage( + internalGetConfigurableBillingApproachUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 370 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private int bitField0_; - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); - } - if (industryVertical_ - != com.google.cloud.discoveryengine.v1beta.IndustryVertical.INDUSTRY_VERTICAL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, industryVertical_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); - } - { - int dataSize = 0; - for (int i = 0; i < solutionTypes_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(solutionTypes_.getInt(i)); - } - size += dataSize; - if (!getSolutionTypesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Immutable. Identifier. 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, (.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; } - solutionTypesMemoizedSerializedSize = dataSize; - } - if (contentConfig_ - != com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig - .CONTENT_CONFIG_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, contentConfig_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultSchemaId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(7, defaultSchemaId_); } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getLanguageInfo()); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getBillingEstimation()); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getWorkspaceConfig()); + + /** + * + * + *
            +     * Immutable. Identifier. 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, (.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; + } } - if (((bitField0_ & 0x00000020) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 27, getDocumentProcessingConfig()); + + /** + * + * + *
            +     * Immutable. Identifier. 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, (.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; } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(28, getStartingSchema()); + + /** + * + * + *
            +     * Immutable. Identifier. 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, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } - if (((bitField0_ & 0x00000080) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(30, getServingConfigDataStore()); + + /** + * + * + *
            +     * Immutable. Identifier. 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, (.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; } - if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 34, getNaturalLanguageQueryUnderstandingConfig()); + + 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 { + return (java.lang.String) ref; + } } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + /** + * + * + *
            +     * 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 (!(obj instanceof com.google.cloud.discoveryengine.v1beta.DataStore)) { - return super.equals(obj); + + /** + * + * + *
            +     * 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(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - com.google.cloud.discoveryengine.v1beta.DataStore other = - (com.google.cloud.discoveryengine.v1beta.DataStore) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (industryVertical_ != other.industryVertical_) return false; - if (!solutionTypes_.equals(other.solutionTypes_)) return false; - if (!getDefaultSchemaId().equals(other.getDefaultSchemaId())) return false; - if (contentConfig_ != other.contentConfig_) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + /** + * + * + *
            +     * 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; } - if (hasLanguageInfo() != other.hasLanguageInfo()) return false; - if (hasLanguageInfo()) { - if (!getLanguageInfo().equals(other.getLanguageInfo())) return false; + + /** + * + * + *
            +     * 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(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - if (hasNaturalLanguageQueryUnderstandingConfig() - != other.hasNaturalLanguageQueryUnderstandingConfig()) return false; - if (hasNaturalLanguageQueryUnderstandingConfig()) { - if (!getNaturalLanguageQueryUnderstandingConfig() - .equals(other.getNaturalLanguageQueryUnderstandingConfig())) return false; + + private int industryVertical_ = 0; + + /** + * + * + *
            +     * Immutable. The industry vertical that the data store registers.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.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_; } - if (hasBillingEstimation() != other.hasBillingEstimation()) return false; - if (hasBillingEstimation()) { - if (!getBillingEstimation().equals(other.getBillingEstimation())) return false; + + /** + * + * + *
            +     * Immutable. The industry vertical that the data store registers.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.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; } - if (hasWorkspaceConfig() != other.hasWorkspaceConfig()) return false; - if (hasWorkspaceConfig()) { - if (!getWorkspaceConfig().equals(other.getWorkspaceConfig())) return false; + + /** + * + * + *
            +     * Immutable. The industry vertical that the data store registers.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The industryVertical. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IndustryVertical getIndustryVertical() { + com.google.cloud.discoveryengine.v1beta.IndustryVertical result = + com.google.cloud.discoveryengine.v1beta.IndustryVertical.forNumber(industryVertical_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.IndustryVertical.UNRECOGNIZED + : result; } - if (hasDocumentProcessingConfig() != other.hasDocumentProcessingConfig()) return false; - if (hasDocumentProcessingConfig()) { - if (!getDocumentProcessingConfig().equals(other.getDocumentProcessingConfig())) return false; + + /** + * + * + *
            +     * Immutable. The industry vertical that the data store registers.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.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.v1beta.IndustryVertical value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + industryVertical_ = value.getNumber(); + onChanged(); + return this; } - if (hasStartingSchema() != other.hasStartingSchema()) return false; - if (hasStartingSchema()) { - if (!getStartingSchema().equals(other.getStartingSchema())) return false; + + /** + * + * + *
            +     * Immutable. The industry vertical that the data store registers.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.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; } - if (hasServingConfigDataStore() != other.hasServingConfigDataStore()) return false; - if (hasServingConfigDataStore()) { - if (!getServingConfigDataStore().equals(other.getServingConfigDataStore())) return false; + + private com.google.protobuf.Internal.IntList solutionTypes_ = emptyIntList(); + + private void ensureSolutionTypesIsMutable() { + if (!solutionTypes_.isModifiable()) { + solutionTypes_ = makeMutableCopy(solutionTypes_); + } + bitField0_ |= 0x00000008; } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + /** + * + * + *
            +     * The solutions that the data store enrolls. Available solutions for each
            +     * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.SolutionType solution_types = 5; + * + * @return A list containing the solutionTypes. + */ + public java.util.List + getSolutionTypesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1beta.SolutionType>( + solutionTypes_, solutionTypes_converter_); } - 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) + INDUSTRY_VERTICAL_FIELD_NUMBER; - hash = (53 * hash) + industryVertical_; - if (getSolutionTypesCount() > 0) { - hash = (37 * hash) + SOLUTION_TYPES_FIELD_NUMBER; - hash = (53 * hash) + solutionTypes_.hashCode(); + + /** + * + * + *
            +     * The solutions that the data store enrolls. Available solutions for each
            +     * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.SolutionType solution_types = 5; + * + * @return The count of solutionTypes. + */ + public int getSolutionTypesCount() { + return solutionTypes_.size(); } - hash = (37 * hash) + DEFAULT_SCHEMA_ID_FIELD_NUMBER; - hash = (53 * hash) + getDefaultSchemaId().hashCode(); - hash = (37 * hash) + CONTENT_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + contentConfig_; - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); + + /** + * + * + *
            +     * The solutions that the data store enrolls. Available solutions for each
            +     * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.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.v1beta.SolutionType getSolutionTypes(int index) { + return solutionTypes_converter_.convert(solutionTypes_.getInt(index)); } - if (hasLanguageInfo()) { - hash = (37 * hash) + LANGUAGE_INFO_FIELD_NUMBER; - hash = (53 * hash) + getLanguageInfo().hashCode(); + + /** + * + * + *
            +     * The solutions that the data store enrolls. Available solutions for each
            +     * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.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.v1beta.SolutionType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSolutionTypesIsMutable(); + solutionTypes_.setInt(index, value.getNumber()); + onChanged(); + return this; } - if (hasNaturalLanguageQueryUnderstandingConfig()) { - hash = (37 * hash) + NATURAL_LANGUAGE_QUERY_UNDERSTANDING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getNaturalLanguageQueryUnderstandingConfig().hashCode(); + + /** + * + * + *
            +     * The solutions that the data store enrolls. Available solutions for each
            +     * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.SolutionType solution_types = 5; + * + * @param value The solutionTypes to add. + * @return This builder for chaining. + */ + public Builder addSolutionTypes(com.google.cloud.discoveryengine.v1beta.SolutionType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSolutionTypesIsMutable(); + solutionTypes_.addInt(value.getNumber()); + onChanged(); + return this; } - if (hasBillingEstimation()) { - hash = (37 * hash) + BILLING_ESTIMATION_FIELD_NUMBER; - hash = (53 * hash) + getBillingEstimation().hashCode(); + + /** + * + * + *
            +     * The solutions that the data store enrolls. Available solutions for each
            +     * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.SolutionType solution_types = 5; + * + * @param values The solutionTypes to add. + * @return This builder for chaining. + */ + public Builder addAllSolutionTypes( + java.lang.Iterable values) { + ensureSolutionTypesIsMutable(); + for (com.google.cloud.discoveryengine.v1beta.SolutionType value : values) { + solutionTypes_.addInt(value.getNumber()); + } + onChanged(); + return this; } - if (hasWorkspaceConfig()) { - hash = (37 * hash) + WORKSPACE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getWorkspaceConfig().hashCode(); + + /** + * + * + *
            +     * The solutions that the data store enrolls. Available solutions for each
            +     * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.SolutionType solution_types = 5; + * + * @return This builder for chaining. + */ + public Builder clearSolutionTypes() { + solutionTypes_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; } - if (hasDocumentProcessingConfig()) { - hash = (37 * hash) + DOCUMENT_PROCESSING_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getDocumentProcessingConfig().hashCode(); + + /** + * + * + *
            +     * The solutions that the data store enrolls. Available solutions for each
            +     * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.SolutionType solution_types = 5; + * + * @return A list containing the enum numeric values on the wire for solutionTypes. + */ + public java.util.List getSolutionTypesValueList() { + solutionTypes_.makeImmutable(); + return solutionTypes_; } - if (hasStartingSchema()) { - hash = (37 * hash) + STARTING_SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getStartingSchema().hashCode(); + + /** + * + * + *
            +     * The solutions that the data store enrolls. Available solutions for each
            +     * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.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_.getInt(index); } - if (hasServingConfigDataStore()) { - hash = (37 * hash) + SERVING_CONFIG_DATA_STORE_FIELD_NUMBER; - hash = (53 * hash) + getServingConfigDataStore().hashCode(); + + /** + * + * + *
            +     * The solutions that the data store enrolls. Available solutions for each
            +     * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.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 setSolutionTypesValue(int index, int value) { + ensureSolutionTypesIsMutable(); + solutionTypes_.setInt(index, value); + onChanged(); + return this; } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.discoveryengine.v1beta.DataStore parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.DataStore 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.v1beta.DataStore parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +     * The solutions that the data store enrolls. Available solutions for each
            +     * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.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_.addInt(value); + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.DataStore parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +     * The solutions that the data store enrolls. Available solutions for each
            +     * [industry_vertical][google.cloud.discoveryengine.v1beta.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.v1beta.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_.addInt(value); + } + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.DataStore parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private java.lang.Object defaultSchemaId_ = ""; - public static com.google.cloud.discoveryengine.v1beta.DataStore parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +     * Output only. The id of the default
            +     * [Schema][google.cloud.discoveryengine.v1beta.Schema] associated to this
            +     * data store.
            +     * 
            + * + * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The defaultSchemaId. + */ + 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; + } + } - public static com.google.cloud.discoveryengine.v1beta.DataStore parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +     * Output only. The id of the default
            +     * [Schema][google.cloud.discoveryengine.v1beta.Schema] associated to this
            +     * data store.
            +     * 
            + * + * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for defaultSchemaId. + */ + 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 static com.google.cloud.discoveryengine.v1beta.DataStore parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +     * Output only. The id of the default
            +     * [Schema][google.cloud.discoveryengine.v1beta.Schema] associated to this
            +     * data store.
            +     * 
            + * + * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The defaultSchemaId to set. + * @return This builder for chaining. + */ + public Builder setDefaultSchemaId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultSchemaId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.DataStore parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + /** + * + * + *
            +     * Output only. The id of the default
            +     * [Schema][google.cloud.discoveryengine.v1beta.Schema] associated to this
            +     * data store.
            +     * 
            + * + * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDefaultSchemaId() { + defaultSchemaId_ = getDefaultInstance().getDefaultSchemaId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.DataStore parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +     * Output only. The id of the default
            +     * [Schema][google.cloud.discoveryengine.v1beta.Schema] associated to this
            +     * data store.
            +     * 
            + * + * string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for defaultSchemaId to set. + * @return This builder for chaining. + */ + public Builder setDefaultSchemaIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultSchemaId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.DataStore parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + private int contentConfig_ = 0; - public static com.google.cloud.discoveryengine.v1beta.DataStore parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +     * Immutable. The content config of the data store. If this field is unset,
            +     * the server behavior defaults to
            +     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.NO_CONTENT].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.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_; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + /** + * + * + *
            +     * Immutable. The content config of the data store. If this field is unset,
            +     * the server behavior defaults to
            +     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.NO_CONTENT].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @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; + onChanged(); + return this; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
            +     * Immutable. The content config of the data store. If this field is unset,
            +     * the server behavior defaults to
            +     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.NO_CONTENT].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The contentConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig getContentConfig() { + com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig result = + com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.forNumber(contentConfig_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.UNRECOGNIZED + : result; + } - public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.DataStore prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
            +     * Immutable. The content config of the data store. If this field is unset,
            +     * the server behavior defaults to
            +     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.NO_CONTENT].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The contentConfig to set. + * @return This builder for chaining. + */ + public Builder setContentConfig( + com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + contentConfig_ = value.getNumber(); + onChanged(); + return this; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(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.v1beta.DataStore.ContentConfig.NO_CONTENT].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearContentConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + contentConfig_ = 0; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; - /** - * - * - *
            -   * DataStore captures global settings and configs at the DataStore level.
            -   * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.DataStore} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DataStore) - com.google.cloud.discoveryengine.v1beta.DataStoreOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.DataStoreProto - .internal_static_google_cloud_discoveryengine_v1beta_DataStore_descriptor; + /** + * + * + *
            +     * Output only. Timestamp the
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] was created at.
            +     * 
            + * + * + * .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); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.DataStoreProto - .internal_static_google_cloud_discoveryengine_v1beta_DataStore_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.DataStore.class, - com.google.cloud.discoveryengine.v1beta.DataStore.Builder.class); + /** + * + * + *
            +     * Output only. Timestamp the
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] was created at.
            +     * 
            + * + * + * .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(); + } } - // Construct using com.google.cloud.discoveryengine.v1beta.DataStore.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + * + * + *
            +     * Output only. Timestamp the
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] was created at.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * + * + *
            +     * Output only. Timestamp the
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] was created at.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetCreateTimeFieldBuilder(); - internalGetLanguageInfoFieldBuilder(); - internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder(); - internalGetBillingEstimationFieldBuilder(); - internalGetWorkspaceConfigFieldBuilder(); - internalGetDocumentProcessingConfigFieldBuilder(); - internalGetStartingSchemaFieldBuilder(); - internalGetServingConfigDataStoreFieldBuilder(); + /** + * + * + *
            +     * Output only. Timestamp the
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] was created at.
            +     * 
            + * + * + * .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_ & 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; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - industryVertical_ = 0; - solutionTypes_ = emptyIntList(); - defaultSchemaId_ = ""; - contentConfig_ = 0; + /** + * + * + *
            +     * Output only. Timestamp the
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] was created at.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - languageInfo_ = null; - if (languageInfoBuilder_ != null) { - languageInfoBuilder_.dispose(); - languageInfoBuilder_ = null; - } - naturalLanguageQueryUnderstandingConfig_ = null; - if (naturalLanguageQueryUnderstandingConfigBuilder_ != null) { - naturalLanguageQueryUnderstandingConfigBuilder_.dispose(); - naturalLanguageQueryUnderstandingConfigBuilder_ = 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; - } - servingConfigDataStore_ = null; - if (servingConfigDataStoreBuilder_ != null) { - servingConfigDataStoreBuilder_.dispose(); - servingConfigDataStoreBuilder_ = null; - } + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.DataStoreProto - .internal_static_google_cloud_discoveryengine_v1beta_DataStore_descriptor; + /** + * + * + *
            +     * Output only. Timestamp the
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] was created at.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DataStore getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.DataStore.getDefaultInstance(); + /** + * + * + *
            +     * Output only. Timestamp the
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] was created at.
            +     * 
            + * + * + * .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 com.google.cloud.discoveryengine.v1beta.DataStore build() { - com.google.cloud.discoveryengine.v1beta.DataStore result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
            +     * Output only. Timestamp the
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] was created at.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; } - return result; + return createTimeBuilder_; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DataStore buildPartial() { - com.google.cloud.discoveryengine.v1beta.DataStore result = - new com.google.cloud.discoveryengine.v1beta.DataStore(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; + private com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig + advancedSiteSearchConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig, + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig.Builder, + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfigOrBuilder> + advancedSiteSearchConfigBuilder_; + + /** + * + * + *
            +     * Optional. Configuration for advanced site search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the advancedSiteSearchConfig field is set. + */ + public boolean hasAdvancedSiteSearchConfig() { + return ((bitField0_ & 0x00000080) != 0); } - private void buildPartial0(com.google.cloud.discoveryengine.v1beta.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_ & 0x00000008) != 0)) { - solutionTypes_.makeImmutable(); - result.solutionTypes_ = solutionTypes_; - } - 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.languageInfo_ = - languageInfoBuilder_ == null ? languageInfo_ : languageInfoBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.naturalLanguageQueryUnderstandingConfig_ = - naturalLanguageQueryUnderstandingConfigBuilder_ == null - ? naturalLanguageQueryUnderstandingConfig_ - : naturalLanguageQueryUnderstandingConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.billingEstimation_ = - billingEstimationBuilder_ == null - ? billingEstimation_ - : billingEstimationBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.workspaceConfig_ = - workspaceConfigBuilder_ == null ? workspaceConfig_ : workspaceConfigBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.documentProcessingConfig_ = - documentProcessingConfigBuilder_ == null - ? documentProcessingConfig_ - : documentProcessingConfigBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.startingSchema_ = - startingSchemaBuilder_ == null ? startingSchema_ : startingSchemaBuilder_.build(); - to_bitField0_ |= 0x00000040; + /** + * + * + *
            +     * Optional. Configuration for advanced site search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The advancedSiteSearchConfig. + */ + public com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig + getAdvancedSiteSearchConfig() { + if (advancedSiteSearchConfigBuilder_ == null) { + return advancedSiteSearchConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig.getDefaultInstance() + : advancedSiteSearchConfig_; + } else { + return advancedSiteSearchConfigBuilder_.getMessage(); } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.servingConfigDataStore_ = - servingConfigDataStoreBuilder_ == null - ? servingConfigDataStore_ - : servingConfigDataStoreBuilder_.build(); - to_bitField0_ |= 0x00000080; + } + + /** + * + * + *
            +     * Optional. Configuration for advanced site search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdvancedSiteSearchConfig( + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig value) { + if (advancedSiteSearchConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + advancedSiteSearchConfig_ = value; + } else { + advancedSiteSearchConfigBuilder_.setMessage(value); } - result.bitField0_ |= to_bitField0_; + bitField0_ |= 0x00000080; + onChanged(); + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.DataStore) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.DataStore) other); + /** + * + * + *
            +     * Optional. Configuration for advanced site search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdvancedSiteSearchConfig( + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig.Builder builderForValue) { + if (advancedSiteSearchConfigBuilder_ == null) { + advancedSiteSearchConfig_ = builderForValue.build(); } else { - super.mergeFrom(other); - return this; + advancedSiteSearchConfigBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000080; + onChanged(); + return this; } - public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.DataStore other) { - if (other == com.google.cloud.discoveryengine.v1beta.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_; - solutionTypes_.makeImmutable(); - bitField0_ |= 0x00000008; + /** + * + * + *
            +     * Optional. Configuration for advanced site search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAdvancedSiteSearchConfig( + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig value) { + if (advancedSiteSearchConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && advancedSiteSearchConfig_ != null + && advancedSiteSearchConfig_ + != com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig + .getDefaultInstance()) { + getAdvancedSiteSearchConfigBuilder().mergeFrom(value); } else { - ensureSolutionTypesIsMutable(); - solutionTypes_.addAll(other.solutionTypes_); + advancedSiteSearchConfig_ = value; } - onChanged(); + } else { + advancedSiteSearchConfigBuilder_.mergeFrom(value); } - if (!other.getDefaultSchemaId().isEmpty()) { - defaultSchemaId_ = other.defaultSchemaId_; - bitField0_ |= 0x00000010; + if (advancedSiteSearchConfig_ != null) { + bitField0_ |= 0x00000080; onChanged(); } - if (other.contentConfig_ != 0) { - setContentConfigValue(other.getContentConfigValue()); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasLanguageInfo()) { - mergeLanguageInfo(other.getLanguageInfo()); - } - if (other.hasNaturalLanguageQueryUnderstandingConfig()) { - mergeNaturalLanguageQueryUnderstandingConfig( - other.getNaturalLanguageQueryUnderstandingConfig()); - } - if (other.hasBillingEstimation()) { - mergeBillingEstimation(other.getBillingEstimation()); - } - if (other.hasWorkspaceConfig()) { - mergeWorkspaceConfig(other.getWorkspaceConfig()); - } - if (other.hasDocumentProcessingConfig()) { - mergeDocumentProcessingConfig(other.getDocumentProcessingConfig()); - } - if (other.hasStartingSchema()) { - mergeStartingSchema(other.getStartingSchema()); - } - if (other.hasServingConfigDataStore()) { - mergeServingConfigDataStore(other.getServingConfigDataStore()); - } - 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(); + /** + * + * + *
            +     * Optional. Configuration for advanced site search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAdvancedSiteSearchConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + advancedSiteSearchConfig_ = null; + if (advancedSiteSearchConfigBuilder_ != null) { + advancedSiteSearchConfigBuilder_.dispose(); + advancedSiteSearchConfigBuilder_ = null; } - 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( - internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 34 - case 40: - { - int tmpRaw = input.readEnum(); - ensureSolutionTypesIsMutable(); - solutionTypes_.addInt(tmpRaw); - break; - } // case 40 - case 42: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureSolutionTypesIsMutable(); - while (input.getBytesUntilLimit() > 0) { - solutionTypes_.addInt(input.readEnum()); - } - input.popLimit(limit); - break; - } // case 42 - case 48: - { - contentConfig_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 58: - { - defaultSchemaId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 58 - case 114: - { - input.readMessage( - internalGetLanguageInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 114 - case 186: - { - input.readMessage( - internalGetBillingEstimationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 186 - case 202: - { - input.readMessage( - internalGetWorkspaceConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 202 - case 218: - { - input.readMessage( - internalGetDocumentProcessingConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 218 - case 226: - { - input.readMessage( - internalGetStartingSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 226 - case 242: - { - input.readMessage( - internalGetServingConfigDataStoreFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 242 - case 274: - { - input.readMessage( - internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000100; - 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 + onChanged(); return this; - } - - private int bitField0_; - - 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.
            +     * Optional. Configuration for advanced site search.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig.Builder + getAdvancedSiteSearchConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetAdvancedSiteSearchConfigFieldBuilder().getBuilder(); + } + + /** + * * - * @return The name. + *
            +     * Optional. Configuration for advanced site search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * */ - 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.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfigOrBuilder + getAdvancedSiteSearchConfigOrBuilder() { + if (advancedSiteSearchConfigBuilder_ != null) { + return advancedSiteSearchConfigBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + return advancedSiteSearchConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig.getDefaultInstance() + : advancedSiteSearchConfig_; } } @@ -4286,27 +14274,70 @@ public java.lang.String getName() { * * *
            -     * Immutable. The full resource name of the data store.
            -     * Format:
            -     * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
            +     * Optional. Configuration for advanced site search.
            +     * 
            * - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. + * + * .google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig, + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig.Builder, + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfigOrBuilder> + internalGetAdvancedSiteSearchConfigFieldBuilder() { + if (advancedSiteSearchConfigBuilder_ == null) { + advancedSiteSearchConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig, + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig.Builder, + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfigOrBuilder>( + getAdvancedSiteSearchConfig(), getParentForChildren(), isClean()); + advancedSiteSearchConfig_ = null; + } + return advancedSiteSearchConfigBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.LanguageInfo languageInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LanguageInfo, + com.google.cloud.discoveryengine.v1beta.LanguageInfo.Builder, + com.google.cloud.discoveryengine.v1beta.LanguageInfoOrBuilder> + languageInfoBuilder_; + + /** + * + * + *
            +     * Language info for DataStore.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; * - * @return The bytes for name. + * @return Whether the languageInfo 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 hasLanguageInfo() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
            +     * Language info for DataStore.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + * + * @return The languageInfo. + */ + public com.google.cloud.discoveryengine.v1beta.LanguageInfo getLanguageInfo() { + if (languageInfoBuilder_ == null) { + return languageInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.LanguageInfo.getDefaultInstance() + : languageInfo_; } else { - return (com.google.protobuf.ByteString) ref; + return languageInfoBuilder_.getMessage(); } } @@ -4314,25 +14345,21 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * 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.
            +     * Language info for DataStore.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The name to set. - * @return This builder for chaining. + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setLanguageInfo(com.google.cloud.discoveryengine.v1beta.LanguageInfo value) { + if (languageInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + languageInfo_ = value; + } else { + languageInfoBuilder_.setMessage(value); } - name_ = value; - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4341,21 +14368,19 @@ 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}`.
            -     *
            -     * This field must be a UTF-8 encoded string with a length limit of 1024
            -     * characters.
            +     * Language info for DataStore.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return This builder for chaining. + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder setLanguageInfo( + com.google.cloud.discoveryengine.v1beta.LanguageInfo.Builder builderForValue) { + if (languageInfoBuilder_ == null) { + languageInfo_ = builderForValue.build(); + } else { + languageInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4364,55 +14389,83 @@ public Builder clearName() { * * *
            -     * 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.
            +     * Language info for DataStore.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + */ + public Builder mergeLanguageInfo(com.google.cloud.discoveryengine.v1beta.LanguageInfo value) { + if (languageInfoBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && languageInfo_ != null + && languageInfo_ + != com.google.cloud.discoveryengine.v1beta.LanguageInfo.getDefaultInstance()) { + getLanguageInfoBuilder().mergeFrom(value); + } else { + languageInfo_ = value; + } + } else { + languageInfoBuilder_.mergeFrom(value); + } + if (languageInfo_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** * - * @param value The bytes for name to set. - * @return This builder for chaining. + * + *
            +     * Language info for DataStore.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearLanguageInfo() { + bitField0_ = (bitField0_ & ~0x00000100); + languageInfo_ = null; + if (languageInfoBuilder_ != null) { + languageInfoBuilder_.dispose(); + languageInfoBuilder_ = null; } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; onChanged(); return this; } - 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.
            +     * Language info for DataStore.
                  * 
            * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + */ + public com.google.cloud.discoveryengine.v1beta.LanguageInfo.Builder getLanguageInfoBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetLanguageInfoFieldBuilder().getBuilder(); + } + + /** * - * @return The displayName. + * + *
            +     * Language info for DataStore.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; */ - 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.cloud.discoveryengine.v1beta.LanguageInfoOrBuilder + getLanguageInfoOrBuilder() { + if (languageInfoBuilder_ != null) { + return languageInfoBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + return languageInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.LanguageInfo.getDefaultInstance() + : languageInfo_; } } @@ -4420,138 +14473,159 @@ 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.
            +     * Language info for DataStore.
                  * 
            * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for displayName. + * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; */ - 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.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LanguageInfo, + com.google.cloud.discoveryengine.v1beta.LanguageInfo.Builder, + com.google.cloud.discoveryengine.v1beta.LanguageInfoOrBuilder> + internalGetLanguageInfoFieldBuilder() { + if (languageInfoBuilder_ == null) { + languageInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LanguageInfo, + com.google.cloud.discoveryengine.v1beta.LanguageInfo.Builder, + com.google.cloud.discoveryengine.v1beta.LanguageInfoOrBuilder>( + getLanguageInfo(), getParentForChildren(), isClean()); + languageInfo_ = null; } + return languageInfoBuilder_; } + private com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig + naturalLanguageQueryUnderstandingConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig, + com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig.Builder, + com.google.cloud.discoveryengine.v1beta + .NaturalLanguageQueryUnderstandingConfigOrBuilder> + naturalLanguageQueryUnderstandingConfigBuilder_; + /** * * *
            -     * 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.
            +     * Optional. Configuration for Natural Language Query Understanding.
                  * 
            * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The displayName to set. - * @return This builder for chaining. + * @return Whether the naturalLanguageQueryUnderstandingConfig field is set. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + public boolean hasNaturalLanguageQueryUnderstandingConfig() { + return ((bitField0_ & 0x00000200) != 0); } /** * * *
            -     * 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.
            +     * Optional. Configuration for Natural Language Query Understanding.
                  * 
            * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return This builder for chaining. + * @return The naturalLanguageQueryUnderstandingConfig. */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig + getNaturalLanguageQueryUnderstandingConfig() { + if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { + return naturalLanguageQueryUnderstandingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig + .getDefaultInstance() + : naturalLanguageQueryUnderstandingConfig_; + } else { + return naturalLanguageQueryUnderstandingConfigBuilder_.getMessage(); + } } /** * * *
            -     * 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.
            +     * Optional. Configuration for Natural Language Query Understanding.
                  * 
            * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setNaturalLanguageQueryUnderstandingConfig( + com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig value) { + if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + naturalLanguageQueryUnderstandingConfig_ = value; + } else { + naturalLanguageQueryUnderstandingConfigBuilder_.setMessage(value); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000200; onChanged(); return this; } - private int industryVertical_ = 0; - /** * * *
            -     * Immutable. The industry vertical that the data store registers.
            +     * Optional. Configuration for Natural Language Query Understanding.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The enum numeric value on the wire for industryVertical. */ - @java.lang.Override - public int getIndustryVerticalValue() { - return industryVertical_; + public Builder setNaturalLanguageQueryUnderstandingConfig( + com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig.Builder + builderForValue) { + if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { + naturalLanguageQueryUnderstandingConfig_ = builderForValue.build(); + } else { + naturalLanguageQueryUnderstandingConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; } /** * * *
            -     * Immutable. The industry vertical that the data store registers.
            +     * Optional. Configuration for Natural Language Query Understanding.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @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(); + public Builder mergeNaturalLanguageQueryUnderstandingConfig( + com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig value) { + if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && naturalLanguageQueryUnderstandingConfig_ != null + && naturalLanguageQueryUnderstandingConfig_ + != com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig + .getDefaultInstance()) { + getNaturalLanguageQueryUnderstandingConfigBuilder().mergeFrom(value); + } else { + naturalLanguageQueryUnderstandingConfig_ = value; + } + } else { + naturalLanguageQueryUnderstandingConfigBuilder_.mergeFrom(value); + } + if (naturalLanguageQueryUnderstandingConfig_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } return this; } @@ -4559,167 +14633,183 @@ public Builder setIndustryVerticalValue(int value) { * * *
            -     * Immutable. The industry vertical that the data store registers.
            +     * Optional. Configuration for Natural Language Query Understanding.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The industryVertical. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.IndustryVertical getIndustryVertical() { - com.google.cloud.discoveryengine.v1beta.IndustryVertical result = - com.google.cloud.discoveryengine.v1beta.IndustryVertical.forNumber(industryVertical_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.IndustryVertical.UNRECOGNIZED - : result; + public Builder clearNaturalLanguageQueryUnderstandingConfig() { + bitField0_ = (bitField0_ & ~0x00000200); + naturalLanguageQueryUnderstandingConfig_ = null; + if (naturalLanguageQueryUnderstandingConfigBuilder_ != null) { + naturalLanguageQueryUnderstandingConfigBuilder_.dispose(); + naturalLanguageQueryUnderstandingConfigBuilder_ = null; + } + onChanged(); + return this; } /** * * *
            -     * Immutable. The industry vertical that the data store registers.
            +     * Optional. Configuration for Natural Language Query Understanding.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The industryVertical to set. - * @return This builder for chaining. */ - public Builder setIndustryVertical( - com.google.cloud.discoveryengine.v1beta.IndustryVertical value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - industryVertical_ = value.getNumber(); + public com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig.Builder + getNaturalLanguageQueryUnderstandingConfigBuilder() { + bitField0_ |= 0x00000200; onChanged(); - return this; + return internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder().getBuilder(); } /** * * *
            -     * Immutable. The industry vertical that the data store registers.
            +     * Optional. Configuration for Natural Language Query Understanding.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearIndustryVertical() { - bitField0_ = (bitField0_ & ~0x00000004); - industryVertical_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.IntList solutionTypes_ = emptyIntList(); - - private void ensureSolutionTypesIsMutable() { - if (!solutionTypes_.isModifiable()) { - solutionTypes_ = makeMutableCopy(solutionTypes_); + public com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfigOrBuilder + getNaturalLanguageQueryUnderstandingConfigOrBuilder() { + if (naturalLanguageQueryUnderstandingConfigBuilder_ != null) { + return naturalLanguageQueryUnderstandingConfigBuilder_.getMessageOrBuilder(); + } else { + return naturalLanguageQueryUnderstandingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig + .getDefaultInstance() + : naturalLanguageQueryUnderstandingConfig_; } - bitField0_ |= 0x00000008; } /** * * *
            -     * The solutions that the data store enrolls. Available solutions for each
            -     * [industry_vertical][google.cloud.discoveryengine.v1beta.DataStore.industry_vertical]:
            -     *
            -     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
            -     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
            -     * solutions cannot be enrolled.
            +     * Optional. Configuration for Natural Language Query Understanding.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SolutionType solution_types = 5; - * - * @return A list containing the solutionTypes. + * + * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.util.List - getSolutionTypesList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.discoveryengine.v1beta.SolutionType>( - solutionTypes_, solutionTypes_converter_); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig, + com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig.Builder, + com.google.cloud.discoveryengine.v1beta + .NaturalLanguageQueryUnderstandingConfigOrBuilder> + internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder() { + if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { + naturalLanguageQueryUnderstandingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig, + com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig + .Builder, + com.google.cloud.discoveryengine.v1beta + .NaturalLanguageQueryUnderstandingConfigOrBuilder>( + getNaturalLanguageQueryUnderstandingConfig(), getParentForChildren(), isClean()); + naturalLanguageQueryUnderstandingConfig_ = null; + } + return naturalLanguageQueryUnderstandingConfigBuilder_; } + private java.lang.Object kmsKeyName_ = ""; + /** * * *
            -     * The solutions that the data store enrolls. Available solutions for each
            -     * [industry_vertical][google.cloud.discoveryengine.v1beta.DataStore.industry_vertical]:
            +     * Input only. The KMS key to be used to protect this DataStore at creation
            +     * time.
                  *
            -     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
            -     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
            -     * solutions cannot be enrolled.
            +     * Must be set for requests that need to comply with CMEK Org Policy
            +     * protections.
            +     *
            +     * If this field is set and processed successfully, the DataStore will be
            +     * protected by the KMS key, as indicated in the cmek_config field.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SolutionType solution_types = 5; + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; * - * @return The count of solutionTypes. + * @return The kmsKeyName. */ - public int getSolutionTypesCount() { - return solutionTypes_.size(); + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
            -     * The solutions that the data store enrolls. Available solutions for each
            -     * [industry_vertical][google.cloud.discoveryengine.v1beta.DataStore.industry_vertical]:
            +     * Input only. The KMS key to be used to protect this DataStore at creation
            +     * time.
                  *
            -     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
            -     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
            -     * solutions cannot be enrolled.
            +     * Must be set for requests that need to comply with CMEK Org Policy
            +     * protections.
            +     *
            +     * If this field is set and processed successfully, the DataStore will be
            +     * protected by the KMS key, as indicated in the cmek_config field.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SolutionType solution_types = 5; + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; * - * @param index The index of the element to return. - * @return The solutionTypes at the given index. + * @return The bytes for kmsKeyName. */ - public com.google.cloud.discoveryengine.v1beta.SolutionType getSolutionTypes(int index) { - return solutionTypes_converter_.convert(solutionTypes_.getInt(index)); + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
            -     * The solutions that the data store enrolls. Available solutions for each
            -     * [industry_vertical][google.cloud.discoveryengine.v1beta.DataStore.industry_vertical]:
            +     * Input only. The KMS key to be used to protect this DataStore at creation
            +     * time.
                  *
            -     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
            -     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
            -     * solutions cannot be enrolled.
            +     * Must be set for requests that need to comply with CMEK Org Policy
            +     * protections.
            +     *
            +     * If this field is set and processed successfully, the DataStore will be
            +     * protected by the KMS key, as indicated in the cmek_config field.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SolutionType solution_types = 5; + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; * - * @param index The index to set the value at. - * @param value The solutionTypes to set. + * @param value The kmsKeyName to set. * @return This builder for chaining. */ - public Builder setSolutionTypes( - int index, com.google.cloud.discoveryengine.v1beta.SolutionType value) { + public Builder setKmsKeyName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureSolutionTypesIsMutable(); - solutionTypes_.setInt(index, value.getNumber()); + kmsKeyName_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4728,25 +14818,23 @@ public Builder setSolutionTypes( * * *
            -     * The solutions that the data store enrolls. Available solutions for each
            -     * [industry_vertical][google.cloud.discoveryengine.v1beta.DataStore.industry_vertical]:
            +     * Input only. The KMS key to be used to protect this DataStore at creation
            +     * time.
                  *
            -     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
            -     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
            -     * solutions cannot be enrolled.
            +     * Must be set for requests that need to comply with CMEK Org Policy
            +     * protections.
            +     *
            +     * If this field is set and processed successfully, the DataStore will be
            +     * protected by the KMS key, as indicated in the cmek_config field.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SolutionType solution_types = 5; + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; * - * @param value The solutionTypes to add. * @return This builder for chaining. */ - public Builder addSolutionTypes(com.google.cloud.discoveryengine.v1beta.SolutionType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSolutionTypesIsMutable(); - solutionTypes_.addInt(value.getNumber()); + public Builder clearKmsKeyName() { + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -4755,115 +14843,123 @@ public Builder addSolutionTypes(com.google.cloud.discoveryengine.v1beta.Solution * * *
            -     * The solutions that the data store enrolls. Available solutions for each
            -     * [industry_vertical][google.cloud.discoveryengine.v1beta.DataStore.industry_vertical]:
            +     * Input only. The KMS key to be used to protect this DataStore at creation
            +     * time.
                  *
            -     * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`.
            -     * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other
            -     * solutions cannot be enrolled.
            +     * Must be set for requests that need to comply with CMEK Org Policy
            +     * protections.
            +     *
            +     * If this field is set and processed successfully, the DataStore will be
            +     * protected by the KMS key, as indicated in the cmek_config field.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SolutionType solution_types = 5; + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; * - * @param values The solutionTypes to add. + * @param value The bytes for kmsKeyName to set. * @return This builder for chaining. */ - public Builder addAllSolutionTypes( - java.lang.Iterable values) { - ensureSolutionTypesIsMutable(); - for (com.google.cloud.discoveryengine.v1beta.SolutionType value : values) { - solutionTypes_.addInt(value.getNumber()); + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; + bitField0_ |= 0x00000400; onChanged(); return this; } + private com.google.cloud.discoveryengine.v1beta.CmekConfig cmekConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.CmekConfig, + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder> + cmekConfigBuilder_; + /** * * *
            -     * The solutions that the data store enrolls. Available solutions for each
            -     * [industry_vertical][google.cloud.discoveryengine.v1beta.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. CMEK-related information for the DataStore.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SolutionType solution_types = 5; + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return This builder for chaining. + * @return Whether the cmekConfig field is set. */ - public Builder clearSolutionTypes() { - solutionTypes_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; + public boolean hasCmekConfig() { + return ((bitField0_ & 0x00000800) != 0); } /** * * *
            -     * The solutions that the data store enrolls. Available solutions for each
            -     * [industry_vertical][google.cloud.discoveryengine.v1beta.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. CMEK-related information for the DataStore.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SolutionType solution_types = 5; + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return A list containing the enum numeric values on the wire for solutionTypes. + * @return The cmekConfig. */ - public java.util.List getSolutionTypesValueList() { - solutionTypes_.makeImmutable(); - return solutionTypes_; + public com.google.cloud.discoveryengine.v1beta.CmekConfig getCmekConfig() { + if (cmekConfigBuilder_ == null) { + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance() + : cmekConfig_; + } else { + return cmekConfigBuilder_.getMessage(); + } } /** * * *
            -     * The solutions that the data store enrolls. Available solutions for each
            -     * [industry_vertical][google.cloud.discoveryengine.v1beta.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. CMEK-related information for the DataStore.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.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.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public int getSolutionTypesValue(int index) { - return solutionTypes_.getInt(index); + public Builder setCmekConfig(com.google.cloud.discoveryengine.v1beta.CmekConfig value) { + if (cmekConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cmekConfig_ = value; + } else { + cmekConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; } /** * * *
            -     * The solutions that the data store enrolls. Available solutions for each
            -     * [industry_vertical][google.cloud.discoveryengine.v1beta.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. CMEK-related information for the DataStore.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.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.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setSolutionTypesValue(int index, int value) { - ensureSolutionTypesIsMutable(); - solutionTypes_.setInt(index, value); + public Builder setCmekConfig( + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder builderForValue) { + if (cmekConfigBuilder_ == null) { + cmekConfig_ = builderForValue.build(); + } else { + cmekConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4872,22 +14968,51 @@ public Builder setSolutionTypesValue(int index, int value) { * * *
            -     * The solutions that the data store enrolls. Available solutions for each
            -     * [industry_vertical][google.cloud.discoveryengine.v1beta.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. CMEK-related information for the DataStore.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SolutionType solution_types = 5; + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCmekConfig(com.google.cloud.discoveryengine.v1beta.CmekConfig value) { + if (cmekConfigBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && cmekConfig_ != null + && cmekConfig_ + != com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance()) { + getCmekConfigBuilder().mergeFrom(value); + } else { + cmekConfig_ = value; + } + } else { + cmekConfigBuilder_.mergeFrom(value); + } + if (cmekConfig_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** * - * @param value The enum numeric value on the wire for solutionTypes to add. - * @return This builder for chaining. + * + *
            +     * Output only. CMEK-related information for the DataStore.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addSolutionTypesValue(int value) { - ensureSolutionTypesIsMutable(); - solutionTypes_.addInt(value); + public Builder clearCmekConfig() { + bitField0_ = (bitField0_ & ~0x00000800); + cmekConfig_ = null; + if (cmekConfigBuilder_ != null) { + cmekConfigBuilder_.dispose(); + cmekConfigBuilder_ = null; + } onChanged(); return this; } @@ -4896,52 +15021,114 @@ public Builder addSolutionTypesValue(int value) { * * *
            -     * The solutions that the data store enrolls. Available solutions for each
            -     * [industry_vertical][google.cloud.discoveryengine.v1beta.DataStore.industry_vertical]:
            +     * Output only. CMEK-related information for the DataStore.
            +     * 
            * - * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. - * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other - * solutions cannot be enrolled. + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder getCmekConfigBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetCmekConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. CMEK-related information for the DataStore.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SolutionType solution_types = 5; + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder getCmekConfigOrBuilder() { + if (cmekConfigBuilder_ != null) { + return cmekConfigBuilder_.getMessageOrBuilder(); + } else { + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance() + : cmekConfig_; + } + } + + /** * - * @param values The enum numeric values on the wire for solutionTypes to add. - * @return This builder for chaining. + * + *
            +     * Output only. CMEK-related information for the DataStore.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder addAllSolutionTypesValue(java.lang.Iterable values) { - ensureSolutionTypesIsMutable(); - for (int value : values) { - solutionTypes_.addInt(value); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.CmekConfig, + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder> + internalGetCmekConfigFieldBuilder() { + if (cmekConfigBuilder_ == null) { + cmekConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.CmekConfig, + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder>( + getCmekConfig(), getParentForChildren(), isClean()); + cmekConfig_ = null; } - onChanged(); - return this; + return cmekConfigBuilder_; } - private java.lang.Object defaultSchemaId_ = ""; + private com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billingEstimation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation, + com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimationOrBuilder> + billingEstimationBuilder_; /** * * *
            -     * Output only. The id of the default
            -     * [Schema][google.cloud.discoveryengine.v1beta.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.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The defaultSchemaId. + * @return Whether the billingEstimation field is set. */ - 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; + public boolean hasBillingEstimation() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
            +     * Output only. Data size estimation for billing.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The billingEstimation. + */ + public com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation + getBillingEstimation() { + if (billingEstimationBuilder_ == null) { + return billingEstimation_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation + .getDefaultInstance() + : billingEstimation_; } else { - return (java.lang.String) ref; + return billingEstimationBuilder_.getMessage(); } } @@ -4949,47 +15136,48 @@ public java.lang.String getDefaultSchemaId() { * * *
            -     * Output only. The id of the default
            -     * [Schema][google.cloud.discoveryengine.v1beta.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 The bytes for defaultSchemaId. + * + * .google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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; + public Builder setBillingEstimation( + com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation value) { + if (billingEstimationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + billingEstimation_ = value; } else { - return (com.google.protobuf.ByteString) ref; + billingEstimationBuilder_.setMessage(value); } + bitField0_ |= 0x00001000; + onChanged(); + return this; } /** * * *
            -     * Output only. The id of the default
            -     * [Schema][google.cloud.discoveryengine.v1beta.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 defaultSchemaId to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setDefaultSchemaId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setBillingEstimation( + com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation.Builder + builderForValue) { + if (billingEstimationBuilder_ == null) { + billingEstimation_ = builderForValue.build(); + } else { + billingEstimationBuilder_.setMessage(builderForValue.build()); } - defaultSchemaId_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4998,19 +15186,32 @@ public Builder setDefaultSchemaId(java.lang.String value) { * * *
            -     * Output only. The id of the default
            -     * [Schema][google.cloud.discoveryengine.v1beta.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.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearDefaultSchemaId() { - defaultSchemaId_ = getDefaultInstance().getDefaultSchemaId(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); + public Builder mergeBillingEstimation( + com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation value) { + if (billingEstimationBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && billingEstimation_ != null + && billingEstimation_ + != com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation + .getDefaultInstance()) { + getBillingEstimationBuilder().mergeFrom(value); + } else { + billingEstimation_ = value; + } + } else { + billingEstimationBuilder_.mergeFrom(value); + } + if (billingEstimation_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } return this; } @@ -5018,119 +15219,159 @@ public Builder clearDefaultSchemaId() { * * *
            -     * Output only. The id of the default
            -     * [Schema][google.cloud.discoveryengine.v1beta.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.v1beta.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 clearBillingEstimation() { + bitField0_ = (bitField0_ & ~0x00001000); + billingEstimation_ = null; + if (billingEstimationBuilder_ != null) { + billingEstimationBuilder_.dispose(); + billingEstimationBuilder_ = null; } - checkByteStringIsUtf8(value); - defaultSchemaId_ = value; - bitField0_ |= 0x00000010; 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.v1beta.DataStore.ContentConfig.NO_CONTENT].
            +     * Output only. Data size estimation for billing.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1beta.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 com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation.Builder + getBillingEstimationBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return internalGetBillingEstimationFieldBuilder().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.v1beta.DataStore.ContentConfig.NO_CONTENT].
            +     * Output only. Data size estimation for billing.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1beta.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; - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimationOrBuilder + getBillingEstimationOrBuilder() { + if (billingEstimationBuilder_ != null) { + return billingEstimationBuilder_.getMessageOrBuilder(); + } else { + return billingEstimation_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation + .getDefaultInstance() + : 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.v1beta.DataStore.ContentConfig.NO_CONTENT].
            +     * Output only. Data size estimation for billing.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * .google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation, + com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimationOrBuilder> + internalGetBillingEstimationFieldBuilder() { + if (billingEstimationBuilder_ == null) { + billingEstimationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation, + com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimationOrBuilder>( + getBillingEstimation(), getParentForChildren(), isClean()); + billingEstimation_ = null; + } + return billingEstimationBuilder_; + } + + private boolean aclEnabled_; + + /** * - * @return The contentConfig. + * + *
            +     * Immutable. Whether data in the
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] has ACL
            +     * information. If set to `true`, the source data must have ACL. ACL will be
            +     * ingested when data is ingested by
            +     * [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ImportDocuments]
            +     * methods.
            +     *
            +     * When ACL is enabled for the
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore],
            +     * [Document][google.cloud.discoveryengine.v1beta.Document] can't be accessed
            +     * by calling
            +     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument]
            +     * or
            +     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments].
            +     *
            +     * Currently ACL is only supported in `GENERIC` industry vertical with
            +     * non-`PUBLIC_WEBSITE` content config.
            +     * 
            + * + * bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The aclEnabled. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig getContentConfig() { - com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig result = - com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.forNumber(contentConfig_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.UNRECOGNIZED - : result; + public boolean getAclEnabled() { + return aclEnabled_; } /** * * *
            -     * Immutable. The content config of the data store. If this field is unset,
            -     * the server behavior defaults to
            -     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.NO_CONTENT].
            +     * Immutable. Whether data in the
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] has ACL
            +     * information. If set to `true`, the source data must have ACL. ACL will be
            +     * ingested when data is ingested by
            +     * [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ImportDocuments]
            +     * methods.
            +     *
            +     * When ACL is enabled for the
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore],
            +     * [Document][google.cloud.discoveryengine.v1beta.Document] can't be accessed
            +     * by calling
            +     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument]
            +     * or
            +     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments].
            +     *
            +     * Currently ACL is only supported in `GENERIC` industry vertical with
            +     * non-`PUBLIC_WEBSITE` content config.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * + * bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE]; * - * @param value The contentConfig to set. + * @param value The aclEnabled to set. * @return This builder for chaining. */ - public Builder setContentConfig( - com.google.cloud.discoveryengine.v1beta.DataStore.ContentConfig value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - contentConfig_ = value.getNumber(); + public Builder setAclEnabled(boolean value) { + + aclEnabled_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5139,70 +15380,84 @@ public Builder setContentConfig( * * *
            -     * Immutable. The content config of the data store. If this field is unset,
            -     * the server behavior defaults to
            -     * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.NO_CONTENT].
            +     * Immutable. Whether data in the
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] has ACL
            +     * information. If set to `true`, the source data must have ACL. ACL will be
            +     * ingested when data is ingested by
            +     * [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ImportDocuments]
            +     * methods.
            +     *
            +     * When ACL is enabled for the
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore],
            +     * [Document][google.cloud.discoveryengine.v1beta.Document] can't be accessed
            +     * by calling
            +     * [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument]
            +     * or
            +     * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments].
            +     *
            +     * Currently ACL is only supported in `GENERIC` industry vertical with
            +     * non-`PUBLIC_WEBSITE` content config.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * + * bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE]; * * @return This builder for chaining. */ - public Builder clearContentConfig() { - bitField0_ = (bitField0_ & ~0x00000020); - contentConfig_ = 0; + public Builder clearAclEnabled() { + bitField0_ = (bitField0_ & ~0x00002000); + aclEnabled_ = false; onChanged(); return this; } - private com.google.protobuf.Timestamp createTime_; + private com.google.cloud.discoveryengine.v1beta.WorkspaceConfig workspaceConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.cloud.discoveryengine.v1beta.WorkspaceConfig, + com.google.cloud.discoveryengine.v1beta.WorkspaceConfig.Builder, + com.google.cloud.discoveryengine.v1beta.WorkspaceConfigOrBuilder> + workspaceConfigBuilder_; /** * * *
            -     * Output only. Timestamp the
            -     * [DataStore][google.cloud.discoveryengine.v1beta.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.v1beta.DataStore.content_config]
            +     * is set as
            +     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1beta.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_ & 0x00004000) != 0); } /** * * *
            -     * Output only. Timestamp the
            -     * [DataStore][google.cloud.discoveryengine.v1beta.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.v1beta.DataStore.content_config]
            +     * is set as
            +     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1beta.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.v1beta.WorkspaceConfig getWorkspaceConfig() { + if (workspaceConfigBuilder_ == null) { + return workspaceConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.WorkspaceConfig.getDefaultInstance() + : workspaceConfig_; } else { - return createTimeBuilder_.getMessage(); + return workspaceConfigBuilder_.getMessage(); } } @@ -5210,24 +15465,26 @@ public com.google.protobuf.Timestamp getCreateTime() { * * *
            -     * Output only. Timestamp the
            -     * [DataStore][google.cloud.discoveryengine.v1beta.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.v1beta.DataStore.content_config]
            +     * is set as
            +     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { + public Builder setWorkspaceConfig( + com.google.cloud.discoveryengine.v1beta.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_ |= 0x00004000; onChanged(); return this; } @@ -5236,21 +15493,23 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * * *
            -     * Output only. Timestamp the
            -     * [DataStore][google.cloud.discoveryengine.v1beta.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.v1beta.DataStore.content_config]
            +     * is set as
            +     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1beta.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.v1beta.WorkspaceConfig.Builder builderForValue) { + if (workspaceConfigBuilder_ == null) { + workspaceConfig_ = builderForValue.build(); } else { - createTimeBuilder_.setMessage(builderForValue.build()); + workspaceConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5259,28 +15518,31 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
            -     * Output only. Timestamp the
            -     * [DataStore][google.cloud.discoveryengine.v1beta.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.v1beta.DataStore.content_config]
            +     * is set as
            +     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1beta.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.v1beta.WorkspaceConfig value) { + if (workspaceConfigBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && workspaceConfig_ != null + && workspaceConfig_ + != com.google.cloud.discoveryengine.v1beta.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_ |= 0x00004000; onChanged(); } return this; @@ -5290,20 +15552,21 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
            -     * Output only. Timestamp the
            -     * [DataStore][google.cloud.discoveryengine.v1beta.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.v1beta.DataStore.content_config]
            +     * is set as
            +     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000040); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public Builder clearWorkspaceConfig() { + bitField0_ = (bitField0_ & ~0x00004000); + workspaceConfig_ = null; + if (workspaceConfigBuilder_ != null) { + workspaceConfigBuilder_.dispose(); + workspaceConfigBuilder_ = null; } onChanged(); return this; @@ -5313,39 +15576,43 @@ public Builder clearCreateTime() { * * *
            -     * Output only. Timestamp the
            -     * [DataStore][google.cloud.discoveryengine.v1beta.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.v1beta.DataStore.content_config]
            +     * is set as
            +     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000040; + public com.google.cloud.discoveryengine.v1beta.WorkspaceConfig.Builder + getWorkspaceConfigBuilder() { + bitField0_ |= 0x00004000; onChanged(); - return internalGetCreateTimeFieldBuilder().getBuilder(); + return internalGetWorkspaceConfigFieldBuilder().getBuilder(); } /** * * *
            -     * Output only. Timestamp the
            -     * [DataStore][google.cloud.discoveryengine.v1beta.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.v1beta.DataStore.content_config]
            +     * is set as
            +     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.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.v1beta.WorkspaceConfig.getDefaultInstance() + : workspaceConfig_; } } @@ -5353,71 +15620,78 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
            -     * Output only. Timestamp the
            -     * [DataStore][google.cloud.discoveryengine.v1beta.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.v1beta.DataStore.content_config]
            +     * is set as
            +     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
                  * 
            * - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; */ private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = + com.google.cloud.discoveryengine.v1beta.WorkspaceConfig, + com.google.cloud.discoveryengine.v1beta.WorkspaceConfig.Builder, + com.google.cloud.discoveryengine.v1beta.WorkspaceConfigOrBuilder> + internalGetWorkspaceConfigFieldBuilder() { + if (workspaceConfigBuilder_ == null) { + workspaceConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; + com.google.cloud.discoveryengine.v1beta.WorkspaceConfig, + com.google.cloud.discoveryengine.v1beta.WorkspaceConfig.Builder, + com.google.cloud.discoveryengine.v1beta.WorkspaceConfigOrBuilder>( + getWorkspaceConfig(), getParentForChildren(), isClean()); + workspaceConfig_ = null; } - return createTimeBuilder_; + return workspaceConfigBuilder_; } - private com.google.cloud.discoveryengine.v1beta.LanguageInfo languageInfo_; + private com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + documentProcessingConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.LanguageInfo, - com.google.cloud.discoveryengine.v1beta.LanguageInfo.Builder, - com.google.cloud.discoveryengine.v1beta.LanguageInfoOrBuilder> - languageInfoBuilder_; + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigOrBuilder> + documentProcessingConfigBuilder_; /** * * *
            -     * Language info for DataStore.
            +     * Configuration for Document understanding and enrichment.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * * - * @return Whether the languageInfo field is set. + * @return Whether the documentProcessingConfig field is set. */ - public boolean hasLanguageInfo() { - return ((bitField0_ & 0x00000080) != 0); + public boolean hasDocumentProcessingConfig() { + return ((bitField0_ & 0x00008000) != 0); } /** * * *
            -     * Language info for DataStore.
            +     * Configuration for Document understanding and enrichment.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * * - * @return The languageInfo. + * @return The documentProcessingConfig. */ - public com.google.cloud.discoveryengine.v1beta.LanguageInfo getLanguageInfo() { - if (languageInfoBuilder_ == null) { - return languageInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.LanguageInfo.getDefaultInstance() - : languageInfo_; + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + getDocumentProcessingConfig() { + if (documentProcessingConfigBuilder_ == null) { + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; } else { - return languageInfoBuilder_.getMessage(); + return documentProcessingConfigBuilder_.getMessage(); } } @@ -5425,21 +15699,24 @@ public com.google.cloud.discoveryengine.v1beta.LanguageInfo getLanguageInfo() { * * *
            -     * Language info for DataStore.
            +     * Configuration for Document understanding and enrichment.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * */ - public Builder setLanguageInfo(com.google.cloud.discoveryengine.v1beta.LanguageInfo value) { - if (languageInfoBuilder_ == null) { + public Builder setDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig value) { + if (documentProcessingConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - languageInfo_ = value; + documentProcessingConfig_ = value; } else { - languageInfoBuilder_.setMessage(value); + documentProcessingConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5448,19 +15725,21 @@ public Builder setLanguageInfo(com.google.cloud.discoveryengine.v1beta.LanguageI * * *
            -     * Language info for DataStore.
            +     * Configuration for Document understanding and enrichment.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * */ - public Builder setLanguageInfo( - com.google.cloud.discoveryengine.v1beta.LanguageInfo.Builder builderForValue) { - if (languageInfoBuilder_ == null) { - languageInfo_ = builderForValue.build(); + public Builder setDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.Builder builderForValue) { + if (documentProcessingConfigBuilder_ == null) { + documentProcessingConfig_ = builderForValue.build(); } else { - languageInfoBuilder_.setMessage(builderForValue.build()); + documentProcessingConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5469,26 +15748,30 @@ public Builder setLanguageInfo( * * *
            -     * Language info for DataStore.
            +     * Configuration for Document understanding and enrichment.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * */ - public Builder mergeLanguageInfo(com.google.cloud.discoveryengine.v1beta.LanguageInfo value) { - if (languageInfoBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) - && languageInfo_ != null - && languageInfo_ - != com.google.cloud.discoveryengine.v1beta.LanguageInfo.getDefaultInstance()) { - getLanguageInfoBuilder().mergeFrom(value); + public Builder mergeDocumentProcessingConfig( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig value) { + if (documentProcessingConfigBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) + && documentProcessingConfig_ != null + && documentProcessingConfig_ + != com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig + .getDefaultInstance()) { + getDocumentProcessingConfigBuilder().mergeFrom(value); } else { - languageInfo_ = value; + documentProcessingConfig_ = value; } } else { - languageInfoBuilder_.mergeFrom(value); + documentProcessingConfigBuilder_.mergeFrom(value); } - if (languageInfo_ != null) { - bitField0_ |= 0x00000080; + if (documentProcessingConfig_ != null) { + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -5498,17 +15781,19 @@ public Builder mergeLanguageInfo(com.google.cloud.discoveryengine.v1beta.Languag * * *
            -     * Language info for DataStore.
            +     * Configuration for Document understanding and enrichment.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * */ - public Builder clearLanguageInfo() { - bitField0_ = (bitField0_ & ~0x00000080); - languageInfo_ = null; - if (languageInfoBuilder_ != null) { - languageInfoBuilder_.dispose(); - languageInfoBuilder_ = null; + public Builder clearDocumentProcessingConfig() { + bitField0_ = (bitField0_ & ~0x00008000); + documentProcessingConfig_ = null; + if (documentProcessingConfigBuilder_ != null) { + documentProcessingConfigBuilder_.dispose(); + documentProcessingConfigBuilder_ = null; } onChanged(); return this; @@ -5518,34 +15803,39 @@ public Builder clearLanguageInfo() { * * *
            -     * Language info for DataStore.
            +     * Configuration for Document understanding and enrichment.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * */ - public com.google.cloud.discoveryengine.v1beta.LanguageInfo.Builder getLanguageInfoBuilder() { - bitField0_ |= 0x00000080; + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.Builder + getDocumentProcessingConfigBuilder() { + bitField0_ |= 0x00008000; onChanged(); - return internalGetLanguageInfoFieldBuilder().getBuilder(); + return internalGetDocumentProcessingConfigFieldBuilder().getBuilder(); } /** * * *
            -     * Language info for DataStore.
            +     * Configuration for Document understanding and enrichment.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * */ - public com.google.cloud.discoveryengine.v1beta.LanguageInfoOrBuilder - getLanguageInfoOrBuilder() { - if (languageInfoBuilder_ != null) { - return languageInfoBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigOrBuilder + getDocumentProcessingConfigOrBuilder() { + if (documentProcessingConfigBuilder_ != null) { + return documentProcessingConfigBuilder_.getMessageOrBuilder(); } else { - return languageInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.LanguageInfo.getDefaultInstance() - : languageInfo_; + return documentProcessingConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.getDefaultInstance() + : documentProcessingConfig_; } } @@ -5553,76 +15843,104 @@ public com.google.cloud.discoveryengine.v1beta.LanguageInfo.Builder getLanguageI * * *
            -     * Language info for DataStore.
            +     * Configuration for Document understanding and enrichment.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.LanguageInfo language_info = 14; + * + * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.LanguageInfo, - com.google.cloud.discoveryengine.v1beta.LanguageInfo.Builder, - com.google.cloud.discoveryengine.v1beta.LanguageInfoOrBuilder> - internalGetLanguageInfoFieldBuilder() { - if (languageInfoBuilder_ == null) { - languageInfoBuilder_ = + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigOrBuilder> + internalGetDocumentProcessingConfigFieldBuilder() { + if (documentProcessingConfigBuilder_ == null) { + documentProcessingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.LanguageInfo, - com.google.cloud.discoveryengine.v1beta.LanguageInfo.Builder, - com.google.cloud.discoveryengine.v1beta.LanguageInfoOrBuilder>( - getLanguageInfo(), getParentForChildren(), isClean()); - languageInfo_ = null; + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigOrBuilder>( + getDocumentProcessingConfig(), getParentForChildren(), isClean()); + documentProcessingConfig_ = null; } - return languageInfoBuilder_; + return documentProcessingConfigBuilder_; } - private com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig - naturalLanguageQueryUnderstandingConfig_; + private com.google.cloud.discoveryengine.v1beta.Schema startingSchema_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig, - com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig.Builder, - com.google.cloud.discoveryengine.v1beta - .NaturalLanguageQueryUnderstandingConfigOrBuilder> - naturalLanguageQueryUnderstandingConfigBuilder_; + com.google.cloud.discoveryengine.v1beta.Schema, + com.google.cloud.discoveryengine.v1beta.Schema.Builder, + com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder> + startingSchemaBuilder_; /** * * *
            -     * Optional. Configuration for Natural Language Query Understanding.
            +     * The start schema to use for this
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            +     * provisioning it. If unset, a default vertical specialized schema will be
            +     * used.
            +     *
            +     * This field is only used by
            +     * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +     * API, and will be ignored if used in other APIs. This field will be omitted
            +     * from all API responses including
            +     * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +     * API. To retrieve a schema of a
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            +     * API instead.
            +     *
            +     * The provided schema will be validated against certain rules on schema.
            +     * Learn more from [this
            +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; * - * @return Whether the naturalLanguageQueryUnderstandingConfig field is set. + * @return Whether the startingSchema field is set. */ - public boolean hasNaturalLanguageQueryUnderstandingConfig() { - return ((bitField0_ & 0x00000100) != 0); + public boolean hasStartingSchema() { + return ((bitField0_ & 0x00010000) != 0); } /** * * *
            -     * Optional. Configuration for Natural Language Query Understanding.
            +     * The start schema to use for this
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            +     * provisioning it. If unset, a default vertical specialized schema will be
            +     * used.
            +     *
            +     * This field is only used by
            +     * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +     * API, and will be ignored if used in other APIs. This field will be omitted
            +     * from all API responses including
            +     * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +     * API. To retrieve a schema of a
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            +     * API instead.
            +     *
            +     * The provided schema will be validated against certain rules on schema.
            +     * Learn more from [this
            +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; * - * @return The naturalLanguageQueryUnderstandingConfig. + * @return The startingSchema. */ - public com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig - getNaturalLanguageQueryUnderstandingConfig() { - if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { - return naturalLanguageQueryUnderstandingConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig - .getDefaultInstance() - : naturalLanguageQueryUnderstandingConfig_; + public com.google.cloud.discoveryengine.v1beta.Schema getStartingSchema() { + if (startingSchemaBuilder_ == null) { + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() + : startingSchema_; } else { - return naturalLanguageQueryUnderstandingConfigBuilder_.getMessage(); + return startingSchemaBuilder_.getMessage(); } } @@ -5630,24 +15948,38 @@ public boolean hasNaturalLanguageQueryUnderstandingConfig() { * * *
            -     * Optional. Configuration for Natural Language Query Understanding.
            +     * The start schema to use for this
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            +     * provisioning it. If unset, a default vertical specialized schema will be
            +     * used.
            +     *
            +     * This field is only used by
            +     * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +     * API, and will be ignored if used in other APIs. This field will be omitted
            +     * from all API responses including
            +     * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +     * API. To retrieve a schema of a
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            +     * API instead.
            +     *
            +     * The provided schema will be validated against certain rules on schema.
            +     * Learn more from [this
            +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; */ - public Builder setNaturalLanguageQueryUnderstandingConfig( - com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig value) { - if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { + public Builder setStartingSchema(com.google.cloud.discoveryengine.v1beta.Schema value) { + if (startingSchemaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - naturalLanguageQueryUnderstandingConfig_ = value; + startingSchema_ = value; } else { - naturalLanguageQueryUnderstandingConfigBuilder_.setMessage(value); + startingSchemaBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5656,22 +15988,36 @@ public Builder setNaturalLanguageQueryUnderstandingConfig( * * *
            -     * Optional. Configuration for Natural Language Query Understanding.
            +     * The start schema to use for this
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            +     * provisioning it. If unset, a default vertical specialized schema will be
            +     * used.
            +     *
            +     * This field is only used by
            +     * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +     * API, and will be ignored if used in other APIs. This field will be omitted
            +     * from all API responses including
            +     * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +     * API. To retrieve a schema of a
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            +     * API instead.
            +     *
            +     * The provided schema will be validated against certain rules on schema.
            +     * Learn more from [this
            +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; */ - public Builder setNaturalLanguageQueryUnderstandingConfig( - com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig.Builder - builderForValue) { - if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { - naturalLanguageQueryUnderstandingConfig_ = builderForValue.build(); + public Builder setStartingSchema( + com.google.cloud.discoveryengine.v1beta.Schema.Builder builderForValue) { + if (startingSchemaBuilder_ == null) { + startingSchema_ = builderForValue.build(); } else { - naturalLanguageQueryUnderstandingConfigBuilder_.setMessage(builderForValue.build()); + startingSchemaBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5680,30 +16026,43 @@ public Builder setNaturalLanguageQueryUnderstandingConfig( * * *
            -     * Optional. Configuration for Natural Language Query Understanding.
            -     * 
            + * The start schema to use for this + * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when + * provisioning it. If unset, a default vertical specialized schema will be + * used. * - * - * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeNaturalLanguageQueryUnderstandingConfig( - com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig value) { - if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && naturalLanguageQueryUnderstandingConfig_ != null - && naturalLanguageQueryUnderstandingConfig_ - != com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig - .getDefaultInstance()) { - getNaturalLanguageQueryUnderstandingConfigBuilder().mergeFrom(value); + * This field is only used by + * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore] + * API, and will be ignored if used in other APIs. This field will be omitted + * from all API responses including + * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore] + * API. To retrieve a schema of a + * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use + * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema] + * API instead. + * + * The provided schema will be validated against certain rules on schema. + * Learn more from [this + * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). + * + * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + */ + public Builder mergeStartingSchema(com.google.cloud.discoveryengine.v1beta.Schema value) { + if (startingSchemaBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && startingSchema_ != null + && startingSchema_ + != com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance()) { + getStartingSchemaBuilder().mergeFrom(value); } else { - naturalLanguageQueryUnderstandingConfig_ = value; + startingSchema_ = value; } } else { - naturalLanguageQueryUnderstandingConfigBuilder_.mergeFrom(value); + startingSchemaBuilder_.mergeFrom(value); } - if (naturalLanguageQueryUnderstandingConfig_ != null) { - bitField0_ |= 0x00000100; + if (startingSchema_ != null) { + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -5713,19 +16072,34 @@ public Builder mergeNaturalLanguageQueryUnderstandingConfig( * * *
            -     * Optional. Configuration for Natural Language Query Understanding.
            +     * The start schema to use for this
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            +     * provisioning it. If unset, a default vertical specialized schema will be
            +     * used.
            +     *
            +     * This field is only used by
            +     * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +     * API, and will be ignored if used in other APIs. This field will be omitted
            +     * from all API responses including
            +     * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +     * API. To retrieve a schema of a
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            +     * API instead.
            +     *
            +     * The provided schema will be validated against certain rules on schema.
            +     * Learn more from [this
            +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; */ - public Builder clearNaturalLanguageQueryUnderstandingConfig() { - bitField0_ = (bitField0_ & ~0x00000100); - naturalLanguageQueryUnderstandingConfig_ = null; - if (naturalLanguageQueryUnderstandingConfigBuilder_ != null) { - naturalLanguageQueryUnderstandingConfigBuilder_.dispose(); - naturalLanguageQueryUnderstandingConfigBuilder_ = null; + public Builder clearStartingSchema() { + bitField0_ = (bitField0_ & ~0x00010000); + startingSchema_ = null; + if (startingSchemaBuilder_ != null) { + startingSchemaBuilder_.dispose(); + startingSchemaBuilder_ = null; } onChanged(); return this; @@ -5735,40 +16109,67 @@ public Builder clearNaturalLanguageQueryUnderstandingConfig() { * * *
            -     * Optional. Configuration for Natural Language Query Understanding.
            +     * The start schema to use for this
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            +     * provisioning it. If unset, a default vertical specialized schema will be
            +     * used.
            +     *
            +     * This field is only used by
            +     * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +     * API, and will be ignored if used in other APIs. This field will be omitted
            +     * from all API responses including
            +     * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +     * API. To retrieve a schema of a
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            +     * API instead.
            +     *
            +     * The provided schema will be validated against certain rules on schema.
            +     * Learn more from [this
            +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; */ - public com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig.Builder - getNaturalLanguageQueryUnderstandingConfigBuilder() { - bitField0_ |= 0x00000100; + public com.google.cloud.discoveryengine.v1beta.Schema.Builder getStartingSchemaBuilder() { + bitField0_ |= 0x00010000; onChanged(); - return internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder().getBuilder(); + return internalGetStartingSchemaFieldBuilder().getBuilder(); } /** * * *
            -     * Optional. Configuration for Natural Language Query Understanding.
            +     * The start schema to use for this
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            +     * provisioning it. If unset, a default vertical specialized schema will be
            +     * used.
            +     *
            +     * This field is only used by
            +     * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +     * API, and will be ignored if used in other APIs. This field will be omitted
            +     * from all API responses including
            +     * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +     * API. To retrieve a schema of a
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            +     * API instead.
            +     *
            +     * The provided schema will be validated against certain rules on schema.
            +     * Learn more from [this
            +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; */ - public com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfigOrBuilder - getNaturalLanguageQueryUnderstandingConfigOrBuilder() { - if (naturalLanguageQueryUnderstandingConfigBuilder_ != null) { - return naturalLanguageQueryUnderstandingConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getStartingSchemaOrBuilder() { + if (startingSchemaBuilder_ != null) { + return startingSchemaBuilder_.getMessageOrBuilder(); } else { - return naturalLanguageQueryUnderstandingConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig - .getDefaultInstance() - : naturalLanguageQueryUnderstandingConfig_; + return startingSchema_ == null + ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() + : startingSchema_; } } @@ -5776,79 +16177,89 @@ public Builder clearNaturalLanguageQueryUnderstandingConfig() { * * *
            -     * Optional. Configuration for Natural Language Query Understanding.
            +     * The start schema to use for this
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            +     * provisioning it. If unset, a default vertical specialized schema will be
            +     * used.
            +     *
            +     * This field is only used by
            +     * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +     * API, and will be ignored if used in other APIs. This field will be omitted
            +     * from all API responses including
            +     * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore]
            +     * API. To retrieve a schema of a
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            +     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            +     * API instead.
            +     *
            +     * The provided schema will be validated against certain rules on schema.
            +     * Learn more from [this
            +     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig natural_language_query_understanding_config = 34 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig, - com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig.Builder, - com.google.cloud.discoveryengine.v1beta - .NaturalLanguageQueryUnderstandingConfigOrBuilder> - internalGetNaturalLanguageQueryUnderstandingConfigFieldBuilder() { - if (naturalLanguageQueryUnderstandingConfigBuilder_ == null) { - naturalLanguageQueryUnderstandingConfigBuilder_ = + com.google.cloud.discoveryengine.v1beta.Schema, + com.google.cloud.discoveryengine.v1beta.Schema.Builder, + com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder> + internalGetStartingSchemaFieldBuilder() { + if (startingSchemaBuilder_ == null) { + startingSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig, - com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig - .Builder, - com.google.cloud.discoveryengine.v1beta - .NaturalLanguageQueryUnderstandingConfigOrBuilder>( - getNaturalLanguageQueryUnderstandingConfig(), getParentForChildren(), isClean()); - naturalLanguageQueryUnderstandingConfig_ = null; + com.google.cloud.discoveryengine.v1beta.Schema, + com.google.cloud.discoveryengine.v1beta.Schema.Builder, + com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder>( + getStartingSchema(), getParentForChildren(), isClean()); + startingSchema_ = null; } - return naturalLanguageQueryUnderstandingConfigBuilder_; + return startingSchemaBuilder_; } - private com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billingEstimation_; + private com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig healthcareFhirConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation, - com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation.Builder, - com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimationOrBuilder> - billingEstimationBuilder_; + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig, + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig.Builder, + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfigOrBuilder> + healthcareFhirConfigBuilder_; /** * * *
            -     * Output only. Data size estimation for billing.
            +     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the billingEstimation field is set. + * @return Whether the healthcareFhirConfig field is set. */ - public boolean hasBillingEstimation() { - return ((bitField0_ & 0x00000200) != 0); + public boolean hasHealthcareFhirConfig() { + return ((bitField0_ & 0x00020000) != 0); } /** * * *
            -     * Output only. Data size estimation for billing.
            +     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The billingEstimation. + * @return The healthcareFhirConfig. */ - public com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation - getBillingEstimation() { - if (billingEstimationBuilder_ == null) { - return billingEstimation_ == null - ? com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation - .getDefaultInstance() - : billingEstimation_; + public com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig getHealthcareFhirConfig() { + if (healthcareFhirConfigBuilder_ == null) { + return healthcareFhirConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig.getDefaultInstance() + : healthcareFhirConfig_; } else { - return billingEstimationBuilder_.getMessage(); + return healthcareFhirConfigBuilder_.getMessage(); } } @@ -5856,24 +16267,24 @@ public boolean hasBillingEstimation() { * * *
            -     * Output only. Data size estimation for billing.
            +     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setBillingEstimation( - com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation value) { - if (billingEstimationBuilder_ == null) { + public Builder setHealthcareFhirConfig( + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig value) { + if (healthcareFhirConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - billingEstimation_ = value; + healthcareFhirConfig_ = value; } else { - billingEstimationBuilder_.setMessage(value); + healthcareFhirConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5882,22 +16293,21 @@ public Builder setBillingEstimation( * * *
            -     * Output only. Data size estimation for billing.
            +     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setBillingEstimation( - com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation.Builder - builderForValue) { - if (billingEstimationBuilder_ == null) { - billingEstimation_ = builderForValue.build(); + public Builder setHealthcareFhirConfig( + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig.Builder builderForValue) { + if (healthcareFhirConfigBuilder_ == null) { + healthcareFhirConfig_ = builderForValue.build(); } else { - billingEstimationBuilder_.setMessage(builderForValue.build()); + healthcareFhirConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5906,30 +16316,30 @@ public Builder setBillingEstimation( * * *
            -     * Output only. Data size estimation for billing.
            +     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeBillingEstimation( - com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation value) { - if (billingEstimationBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && billingEstimation_ != null - && billingEstimation_ - != com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation + public Builder mergeHealthcareFhirConfig( + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig value) { + if (healthcareFhirConfigBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) + && healthcareFhirConfig_ != null + && healthcareFhirConfig_ + != com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig .getDefaultInstance()) { - getBillingEstimationBuilder().mergeFrom(value); + getHealthcareFhirConfigBuilder().mergeFrom(value); } else { - billingEstimation_ = value; + healthcareFhirConfig_ = value; } } else { - billingEstimationBuilder_.mergeFrom(value); + healthcareFhirConfigBuilder_.mergeFrom(value); } - if (billingEstimation_ != null) { - bitField0_ |= 0x00000200; + if (healthcareFhirConfig_ != null) { + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -5939,19 +16349,19 @@ public Builder mergeBillingEstimation( * * *
            -     * Output only. Data size estimation for billing.
            +     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearBillingEstimation() { - bitField0_ = (bitField0_ & ~0x00000200); - billingEstimation_ = null; - if (billingEstimationBuilder_ != null) { - billingEstimationBuilder_.dispose(); - billingEstimationBuilder_ = null; + public Builder clearHealthcareFhirConfig() { + bitField0_ = (bitField0_ & ~0x00020000); + healthcareFhirConfig_ = null; + if (healthcareFhirConfigBuilder_ != null) { + healthcareFhirConfigBuilder_.dispose(); + healthcareFhirConfigBuilder_ = null; } onChanged(); return this; @@ -5961,40 +16371,39 @@ public Builder clearBillingEstimation() { * * *
            -     * Output only. Data size estimation for billing.
            +     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation.Builder - getBillingEstimationBuilder() { - bitField0_ |= 0x00000200; + public com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig.Builder + getHealthcareFhirConfigBuilder() { + bitField0_ |= 0x00020000; onChanged(); - return internalGetBillingEstimationFieldBuilder().getBuilder(); + return internalGetHealthcareFhirConfigFieldBuilder().getBuilder(); } /** * * *
            -     * Output only. Data size estimation for billing.
            +     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimationOrBuilder - getBillingEstimationOrBuilder() { - if (billingEstimationBuilder_ != null) { - return billingEstimationBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfigOrBuilder + getHealthcareFhirConfigOrBuilder() { + if (healthcareFhirConfigBuilder_ != null) { + return healthcareFhirConfigBuilder_.getMessageOrBuilder(); } else { - return billingEstimation_ == null - ? com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation - .getDefaultInstance() - : billingEstimation_; + return healthcareFhirConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig.getDefaultInstance() + : healthcareFhirConfig_; } } @@ -6002,78 +16411,77 @@ public Builder clearBillingEstimation() { * * *
            -     * Output only. Data size estimation for billing.
            +     * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation, - com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation.Builder, - com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimationOrBuilder> - internalGetBillingEstimationFieldBuilder() { - if (billingEstimationBuilder_ == null) { - billingEstimationBuilder_ = + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig, + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig.Builder, + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfigOrBuilder> + internalGetHealthcareFhirConfigFieldBuilder() { + if (healthcareFhirConfigBuilder_ == null) { + healthcareFhirConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation, - com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimation.Builder, - com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimationOrBuilder>( - getBillingEstimation(), getParentForChildren(), isClean()); - billingEstimation_ = null; + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig, + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig.Builder, + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfigOrBuilder>( + getHealthcareFhirConfig(), getParentForChildren(), isClean()); + healthcareFhirConfig_ = null; } - return billingEstimationBuilder_; + return healthcareFhirConfigBuilder_; } - private com.google.cloud.discoveryengine.v1beta.WorkspaceConfig workspaceConfig_; + private com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore + servingConfigDataStore_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.WorkspaceConfig, - com.google.cloud.discoveryengine.v1beta.WorkspaceConfig.Builder, - com.google.cloud.discoveryengine.v1beta.WorkspaceConfigOrBuilder> - workspaceConfigBuilder_; + com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore, + com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStoreOrBuilder> + servingConfigDataStoreBuilder_; - /** - * - * - *
            -     * Config to store data store type configuration for workspace data. This
            -     * must be set when
            -     * [DataStore.content_config][google.cloud.discoveryengine.v1beta.DataStore.content_config]
            -     * is set as
            -     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
            +    /**
            +     *
            +     *
            +     * 
            +     * Optional. Stores serving config at DataStore level.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; + * + * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return Whether the workspaceConfig field is set. + * @return Whether the servingConfigDataStore field is set. */ - public boolean hasWorkspaceConfig() { - return ((bitField0_ & 0x00000400) != 0); + public boolean hasServingConfigDataStore() { + return ((bitField0_ & 0x00040000) != 0); } /** * * *
            -     * Config to store data store type configuration for workspace data. This
            -     * must be set when
            -     * [DataStore.content_config][google.cloud.discoveryengine.v1beta.DataStore.content_config]
            -     * is set as
            -     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
            +     * Optional. Stores serving config at DataStore level.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; + * + * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The workspaceConfig. + * @return The servingConfigDataStore. */ - public com.google.cloud.discoveryengine.v1beta.WorkspaceConfig getWorkspaceConfig() { - if (workspaceConfigBuilder_ == null) { - return workspaceConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.WorkspaceConfig.getDefaultInstance() - : workspaceConfig_; + public com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore + getServingConfigDataStore() { + if (servingConfigDataStoreBuilder_ == null) { + return servingConfigDataStore_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore + .getDefaultInstance() + : servingConfigDataStore_; } else { - return workspaceConfigBuilder_.getMessage(); + return servingConfigDataStoreBuilder_.getMessage(); } } @@ -6081,26 +16489,24 @@ public com.google.cloud.discoveryengine.v1beta.WorkspaceConfig getWorkspaceConfi * * *
            -     * Config to store data store type configuration for workspace data. This
            -     * must be set when
            -     * [DataStore.content_config][google.cloud.discoveryengine.v1beta.DataStore.content_config]
            -     * is set as
            -     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
            +     * Optional. Stores serving config at DataStore level.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; + * + * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setWorkspaceConfig( - com.google.cloud.discoveryengine.v1beta.WorkspaceConfig value) { - if (workspaceConfigBuilder_ == null) { + public Builder setServingConfigDataStore( + com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore value) { + if (servingConfigDataStoreBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - workspaceConfig_ = value; + servingConfigDataStore_ = value; } else { - workspaceConfigBuilder_.setMessage(value); + servingConfigDataStoreBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6109,23 +16515,22 @@ public Builder setWorkspaceConfig( * * *
            -     * Config to store data store type configuration for workspace data. This
            -     * must be set when
            -     * [DataStore.content_config][google.cloud.discoveryengine.v1beta.DataStore.content_config]
            -     * is set as
            -     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
            +     * Optional. Stores serving config at DataStore level.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; + * + * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setWorkspaceConfig( - com.google.cloud.discoveryengine.v1beta.WorkspaceConfig.Builder builderForValue) { - if (workspaceConfigBuilder_ == null) { - workspaceConfig_ = builderForValue.build(); + public Builder setServingConfigDataStore( + com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore.Builder + builderForValue) { + if (servingConfigDataStoreBuilder_ == null) { + servingConfigDataStore_ = builderForValue.build(); } else { - workspaceConfigBuilder_.setMessage(builderForValue.build()); + servingConfigDataStoreBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6134,31 +16539,30 @@ public Builder setWorkspaceConfig( * * *
            -     * Config to store data store type configuration for workspace data. This
            -     * must be set when
            -     * [DataStore.content_config][google.cloud.discoveryengine.v1beta.DataStore.content_config]
            -     * is set as
            -     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
            +     * Optional. Stores serving config at DataStore level.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; + * + * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeWorkspaceConfig( - com.google.cloud.discoveryengine.v1beta.WorkspaceConfig value) { - if (workspaceConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && workspaceConfig_ != null - && workspaceConfig_ - != com.google.cloud.discoveryengine.v1beta.WorkspaceConfig.getDefaultInstance()) { - getWorkspaceConfigBuilder().mergeFrom(value); + public Builder mergeServingConfigDataStore( + com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore value) { + if (servingConfigDataStoreBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) + && servingConfigDataStore_ != null + && servingConfigDataStore_ + != com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore + .getDefaultInstance()) { + getServingConfigDataStoreBuilder().mergeFrom(value); } else { - workspaceConfig_ = value; + servingConfigDataStore_ = value; } } else { - workspaceConfigBuilder_.mergeFrom(value); + servingConfigDataStoreBuilder_.mergeFrom(value); } - if (workspaceConfig_ != null) { - bitField0_ |= 0x00000400; + if (servingConfigDataStore_ != null) { + bitField0_ |= 0x00040000; onChanged(); } return this; @@ -6168,21 +16572,19 @@ public Builder mergeWorkspaceConfig( * * *
            -     * Config to store data store type configuration for workspace data. This
            -     * must be set when
            -     * [DataStore.content_config][google.cloud.discoveryengine.v1beta.DataStore.content_config]
            -     * is set as
            -     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
            +     * Optional. Stores serving config at DataStore level.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; + * + * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearWorkspaceConfig() { - bitField0_ = (bitField0_ & ~0x00000400); - workspaceConfig_ = null; - if (workspaceConfigBuilder_ != null) { - workspaceConfigBuilder_.dispose(); - workspaceConfigBuilder_ = null; + public Builder clearServingConfigDataStore() { + bitField0_ = (bitField0_ & ~0x00040000); + servingConfigDataStore_ = null; + if (servingConfigDataStoreBuilder_ != null) { + servingConfigDataStoreBuilder_.dispose(); + servingConfigDataStoreBuilder_ = null; } onChanged(); return this; @@ -6192,43 +16594,40 @@ public Builder clearWorkspaceConfig() { * * *
            -     * Config to store data store type configuration for workspace data. This
            -     * must be set when
            -     * [DataStore.content_config][google.cloud.discoveryengine.v1beta.DataStore.content_config]
            -     * is set as
            -     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
            +     * Optional. Stores serving config at DataStore level.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; + * + * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.discoveryengine.v1beta.WorkspaceConfig.Builder - getWorkspaceConfigBuilder() { - bitField0_ |= 0x00000400; + public com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore.Builder + getServingConfigDataStoreBuilder() { + bitField0_ |= 0x00040000; onChanged(); - return internalGetWorkspaceConfigFieldBuilder().getBuilder(); + return internalGetServingConfigDataStoreFieldBuilder().getBuilder(); } /** * * *
            -     * Config to store data store type configuration for workspace data. This
            -     * must be set when
            -     * [DataStore.content_config][google.cloud.discoveryengine.v1beta.DataStore.content_config]
            -     * is set as
            -     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
            +     * Optional. Stores serving config at DataStore level.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; + * + * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.discoveryengine.v1beta.WorkspaceConfigOrBuilder - getWorkspaceConfigOrBuilder() { - if (workspaceConfigBuilder_ != null) { - return workspaceConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStoreOrBuilder + getServingConfigDataStoreOrBuilder() { + if (servingConfigDataStoreBuilder_ != null) { + return servingConfigDataStoreBuilder_.getMessageOrBuilder(); } else { - return workspaceConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.WorkspaceConfig.getDefaultInstance() - : workspaceConfig_; + return servingConfigDataStore_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore + .getDefaultInstance() + : servingConfigDataStore_; } } @@ -6236,160 +16635,206 @@ public Builder clearWorkspaceConfig() { * * *
            -     * Config to store data store type configuration for workspace data. This
            -     * must be set when
            -     * [DataStore.content_config][google.cloud.discoveryengine.v1beta.DataStore.content_config]
            -     * is set as
            -     * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.GOOGLE_WORKSPACE].
            +     * Optional. Stores serving config at DataStore level.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.WorkspaceConfig workspace_config = 25; + * + * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.WorkspaceConfig, - com.google.cloud.discoveryengine.v1beta.WorkspaceConfig.Builder, - com.google.cloud.discoveryengine.v1beta.WorkspaceConfigOrBuilder> - internalGetWorkspaceConfigFieldBuilder() { - if (workspaceConfigBuilder_ == null) { - workspaceConfigBuilder_ = + com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore, + com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStoreOrBuilder> + internalGetServingConfigDataStoreFieldBuilder() { + if (servingConfigDataStoreBuilder_ == null) { + servingConfigDataStoreBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.WorkspaceConfig, - com.google.cloud.discoveryengine.v1beta.WorkspaceConfig.Builder, - com.google.cloud.discoveryengine.v1beta.WorkspaceConfigOrBuilder>( - getWorkspaceConfig(), getParentForChildren(), isClean()); - workspaceConfig_ = null; + com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore, + com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStoreOrBuilder>( + getServingConfigDataStore(), getParentForChildren(), isClean()); + servingConfigDataStore_ = null; } - return workspaceConfigBuilder_; + return servingConfigDataStoreBuilder_; } - private com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig - documentProcessingConfig_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig, - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.Builder, - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigOrBuilder> - documentProcessingConfigBuilder_; + private java.lang.Object identityMappingStore_ = ""; + + /** + * + * + *
            +     * Immutable. The fully qualified resource name of the associated
            +     * [IdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStore].
            +     * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
            +     * `GSUITE` IdP. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
            +     * 
            + * + * + * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The identityMappingStore. + */ + public java.lang.String getIdentityMappingStore() { + java.lang.Object ref = identityMappingStore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityMappingStore_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Immutable. The fully qualified resource name of the associated
            +     * [IdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStore].
            +     * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
            +     * `GSUITE` IdP. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
            +     * 
            + * + * + * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for identityMappingStore. + */ + public com.google.protobuf.ByteString getIdentityMappingStoreBytes() { + java.lang.Object ref = identityMappingStore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityMappingStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } /** * * *
            -     * Configuration for Document understanding and enrichment.
            +     * Immutable. The fully qualified resource name of the associated
            +     * [IdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStore].
            +     * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
            +     * `GSUITE` IdP. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * - * @return Whether the documentProcessingConfig field is set. + * @param value The identityMappingStore to set. + * @return This builder for chaining. */ - public boolean hasDocumentProcessingConfig() { - return ((bitField0_ & 0x00000800) != 0); + public Builder setIdentityMappingStore(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + identityMappingStore_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; } /** * * *
            -     * Configuration for Document understanding and enrichment.
            +     * Immutable. The fully qualified resource name of the associated
            +     * [IdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStore].
            +     * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
            +     * `GSUITE` IdP. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * * - * @return The documentProcessingConfig. + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig - getDocumentProcessingConfig() { - if (documentProcessingConfigBuilder_ == null) { - return documentProcessingConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.getDefaultInstance() - : documentProcessingConfig_; - } else { - return documentProcessingConfigBuilder_.getMessage(); - } + public Builder clearIdentityMappingStore() { + identityMappingStore_ = getDefaultInstance().getIdentityMappingStore(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + return this; } /** * * *
            -     * Configuration for Document understanding and enrichment.
            +     * Immutable. The fully qualified resource name of the associated
            +     * [IdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStore].
            +     * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
            +     * `GSUITE` IdP. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } * + * + * @param value The bytes for identityMappingStore to set. + * @return This builder for chaining. */ - public Builder setDocumentProcessingConfig( - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig value) { - if (documentProcessingConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - documentProcessingConfig_ = value; - } else { - documentProcessingConfigBuilder_.setMessage(value); + public Builder setIdentityMappingStoreBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00000800; + checkByteStringIsUtf8(value); + identityMappingStore_ = value; + bitField0_ |= 0x00080000; onChanged(); return this; } + private boolean isInfobotFaqDataStore_; + /** * * *
            -     * Configuration for Document understanding and enrichment.
            +     * Optional. If set, this DataStore is an Infobot FAQ DataStore.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; - * + * bool is_infobot_faq_data_store = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isInfobotFaqDataStore. */ - public Builder setDocumentProcessingConfig( - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.Builder builderForValue) { - if (documentProcessingConfigBuilder_ == null) { - documentProcessingConfig_ = builderForValue.build(); - } else { - documentProcessingConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; + @java.lang.Override + public boolean getIsInfobotFaqDataStore() { + return isInfobotFaqDataStore_; } /** * * *
            -     * Configuration for Document understanding and enrichment.
            +     * Optional. If set, this DataStore is an Infobot FAQ DataStore.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; - * + * bool is_infobot_faq_data_store = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The isInfobotFaqDataStore to set. + * @return This builder for chaining. */ - public Builder mergeDocumentProcessingConfig( - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig value) { - if (documentProcessingConfigBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && documentProcessingConfig_ != null - && documentProcessingConfig_ - != com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig - .getDefaultInstance()) { - getDocumentProcessingConfigBuilder().mergeFrom(value); - } else { - documentProcessingConfig_ = value; - } - } else { - documentProcessingConfigBuilder_.mergeFrom(value); - } - if (documentProcessingConfig_ != null) { - bitField0_ |= 0x00000800; - onChanged(); - } + public Builder setIsInfobotFaqDataStore(boolean value) { + + isInfobotFaqDataStore_ = value; + bitField0_ |= 0x00100000; + onChanged(); return this; } @@ -6397,61 +16842,67 @@ public Builder mergeDocumentProcessingConfig( * * *
            -     * Configuration for Document understanding and enrichment.
            +     * Optional. If set, this DataStore is an Infobot FAQ DataStore.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; - * + * bool is_infobot_faq_data_store = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ - public Builder clearDocumentProcessingConfig() { - bitField0_ = (bitField0_ & ~0x00000800); - documentProcessingConfig_ = null; - if (documentProcessingConfigBuilder_ != null) { - documentProcessingConfigBuilder_.dispose(); - documentProcessingConfigBuilder_ = null; - } + public Builder clearIsInfobotFaqDataStore() { + bitField0_ = (bitField0_ & ~0x00100000); + isInfobotFaqDataStore_ = false; onChanged(); return this; } + private com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + federatedSearchConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfigOrBuilder> + federatedSearchConfigBuilder_; + /** * * *
            -     * Configuration for Document understanding and enrichment.
            +     * Optional. If set, this DataStore is a federated search DataStore.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return Whether the federatedSearchConfig field is set. */ - public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.Builder - getDocumentProcessingConfigBuilder() { - bitField0_ |= 0x00000800; - onChanged(); - return internalGetDocumentProcessingConfigFieldBuilder().getBuilder(); + public boolean hasFederatedSearchConfig() { + return ((bitField0_ & 0x00200000) != 0); } /** * * *
            -     * Configuration for Document understanding and enrichment.
            +     * Optional. If set, this DataStore is a federated search DataStore.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The federatedSearchConfig. */ - public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigOrBuilder - getDocumentProcessingConfigOrBuilder() { - if (documentProcessingConfigBuilder_ != null) { - return documentProcessingConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + getFederatedSearchConfig() { + if (federatedSearchConfigBuilder_ == null) { + return federatedSearchConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .getDefaultInstance() + : federatedSearchConfig_; } else { - return documentProcessingConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.getDefaultInstance() - : documentProcessingConfig_; + return federatedSearchConfigBuilder_.getMessage(); } } @@ -6459,134 +16910,103 @@ public Builder clearDocumentProcessingConfig() { * * *
            -     * Configuration for Document understanding and enrichment.
            +     * Optional. If set, this DataStore is a federated search DataStore.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DocumentProcessingConfig document_processing_config = 27; + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig, - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.Builder, - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigOrBuilder> - internalGetDocumentProcessingConfigFieldBuilder() { - if (documentProcessingConfigBuilder_ == null) { - documentProcessingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig, - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.Builder, - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigOrBuilder>( - getDocumentProcessingConfig(), getParentForChildren(), isClean()); - documentProcessingConfig_ = null; + public Builder setFederatedSearchConfig( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig value) { + if (federatedSearchConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + federatedSearchConfig_ = value; + } else { + federatedSearchConfigBuilder_.setMessage(value); } - return documentProcessingConfigBuilder_; + bitField0_ |= 0x00200000; + onChanged(); + return this; } - private com.google.cloud.discoveryengine.v1beta.Schema startingSchema_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Schema, - com.google.cloud.discoveryengine.v1beta.Schema.Builder, - com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder> - startingSchemaBuilder_; - /** * * *
            -     * The start schema to use for this
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            -     * provisioning it. If unset, a default vertical specialized schema will be
            -     * used.
            -     *
            -     * This field is only used by [CreateDataStore][] API, and will be ignored if
            -     * used in other APIs. This field will be omitted from all API responses
            -     * including [CreateDataStore][] API. To retrieve a schema of a
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            -     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            -     * API instead.
            -     *
            -     * The provided schema will be validated against certain rules on schema.
            -     * Learn more from [this
            -     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
            +     * Optional. If set, this DataStore is a federated search DataStore.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; - * - * @return Whether the startingSchema field is set. + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public boolean hasStartingSchema() { - return ((bitField0_ & 0x00001000) != 0); + public Builder setFederatedSearchConfig( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.Builder + builderForValue) { + if (federatedSearchConfigBuilder_ == null) { + federatedSearchConfig_ = builderForValue.build(); + } else { + federatedSearchConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; } /** * * *
            -     * The start schema to use for this
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            -     * provisioning it. If unset, a default vertical specialized schema will be
            -     * used.
            -     *
            -     * This field is only used by [CreateDataStore][] API, and will be ignored if
            -     * used in other APIs. This field will be omitted from all API responses
            -     * including [CreateDataStore][] API. To retrieve a schema of a
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            -     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            -     * API instead.
            -     *
            -     * The provided schema will be validated against certain rules on schema.
            -     * Learn more from [this
            -     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
            +     * Optional. If set, this DataStore is a federated search DataStore.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; - * - * @return The startingSchema. + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.discoveryengine.v1beta.Schema getStartingSchema() { - if (startingSchemaBuilder_ == null) { - return startingSchema_ == null - ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() - : startingSchema_; + public Builder mergeFederatedSearchConfig( + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig value) { + if (federatedSearchConfigBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0) + && federatedSearchConfig_ != null + && federatedSearchConfig_ + != com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .getDefaultInstance()) { + getFederatedSearchConfigBuilder().mergeFrom(value); + } else { + federatedSearchConfig_ = value; + } } else { - return startingSchemaBuilder_.getMessage(); + federatedSearchConfigBuilder_.mergeFrom(value); } + if (federatedSearchConfig_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } + return this; } /** * * *
            -     * The start schema to use for this
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            -     * provisioning it. If unset, a default vertical specialized schema will be
            -     * used.
            -     *
            -     * This field is only used by [CreateDataStore][] API, and will be ignored if
            -     * used in other APIs. This field will be omitted from all API responses
            -     * including [CreateDataStore][] API. To retrieve a schema of a
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            -     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            -     * API instead.
            -     *
            -     * The provided schema will be validated against certain rules on schema.
            -     * Learn more from [this
            -     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
            +     * Optional. If set, this DataStore is a federated search DataStore.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setStartingSchema(com.google.cloud.discoveryengine.v1beta.Schema value) { - if (startingSchemaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - startingSchema_ = value; - } else { - startingSchemaBuilder_.setMessage(value); + public Builder clearFederatedSearchConfig() { + bitField0_ = (bitField0_ & ~0x00200000); + federatedSearchConfig_ = null; + if (federatedSearchConfigBuilder_ != null) { + federatedSearchConfigBuilder_.dispose(); + federatedSearchConfigBuilder_ = null; } - bitField0_ |= 0x00001000; onChanged(); return this; } @@ -6595,110 +17015,108 @@ public Builder setStartingSchema(com.google.cloud.discoveryengine.v1beta.Schema * * *
            -     * The start schema to use for this
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            -     * provisioning it. If unset, a default vertical specialized schema will be
            -     * used.
            +     * Optional. If set, this DataStore is a federated search DataStore.
            +     * 
            * - * This field is only used by [CreateDataStore][] API, and will be ignored if - * used in other APIs. This field will be omitted from all API responses - * including [CreateDataStore][] API. To retrieve a schema of a - * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use - * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema] - * API instead. + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.Builder + getFederatedSearchConfigBuilder() { + bitField0_ |= 0x00200000; + onChanged(); + return internalGetFederatedSearchConfigFieldBuilder().getBuilder(); + } + + /** * - * The provided schema will be validated against certain rules on schema. - * Learn more from [this - * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). + * + *
            +     * Optional. If set, this DataStore is a federated search DataStore.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setStartingSchema( - com.google.cloud.discoveryengine.v1beta.Schema.Builder builderForValue) { - if (startingSchemaBuilder_ == null) { - startingSchema_ = builderForValue.build(); + public com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfigOrBuilder + getFederatedSearchConfigOrBuilder() { + if (federatedSearchConfigBuilder_ != null) { + return federatedSearchConfigBuilder_.getMessageOrBuilder(); } else { - startingSchemaBuilder_.setMessage(builderForValue.build()); + return federatedSearchConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + .getDefaultInstance() + : federatedSearchConfig_; } - bitField0_ |= 0x00001000; - onChanged(); - return this; } /** * * *
            -     * The start schema to use for this
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            -     * provisioning it. If unset, a default vertical specialized schema will be
            -     * used.
            -     *
            -     * This field is only used by [CreateDataStore][] API, and will be ignored if
            -     * used in other APIs. This field will be omitted from all API responses
            -     * including [CreateDataStore][] API. To retrieve a schema of a
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            -     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            -     * API instead.
            -     *
            -     * The provided schema will be validated against certain rules on schema.
            -     * Learn more from [this
            -     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
            +     * Optional. If set, this DataStore is a federated search DataStore.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeStartingSchema(com.google.cloud.discoveryengine.v1beta.Schema value) { - if (startingSchemaBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && startingSchema_ != null - && startingSchema_ - != com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance()) { - getStartingSchemaBuilder().mergeFrom(value); - } else { - startingSchema_ = value; - } - } else { - startingSchemaBuilder_.mergeFrom(value); - } - if (startingSchema_ != null) { - bitField0_ |= 0x00001000; - onChanged(); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfigOrBuilder> + internalGetFederatedSearchConfigFieldBuilder() { + if (federatedSearchConfigBuilder_ == null) { + federatedSearchConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig.Builder, + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfigOrBuilder>( + getFederatedSearchConfig(), getParentForChildren(), isClean()); + federatedSearchConfig_ = null; } - return this; + return federatedSearchConfigBuilder_; } + private int configurableBillingApproach_ = 0; + /** * * *
            -     * The start schema to use for this
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            -     * provisioning it. If unset, a default vertical specialized schema will be
            -     * used.
            +     * Optional. Configuration for configurable billing approach. See
            +     * 
            * - * This field is only used by [CreateDataStore][] API, and will be ignored if - * used in other APIs. This field will be omitted from all API responses - * including [CreateDataStore][] API. To retrieve a schema of a - * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use - * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema] - * API instead. + * + * .google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach configurable_billing_approach = 45 [(.google.api.field_behavior) = OPTIONAL]; + * * - * The provided schema will be validated against certain rules on schema. - * Learn more from [this - * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). + * @return The enum numeric value on the wire for configurableBillingApproach. + */ + @java.lang.Override + public int getConfigurableBillingApproachValue() { + return configurableBillingApproach_; + } + + /** + * + * + *
            +     * Optional. Configuration for configurable billing approach. See
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + * + * .google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach configurable_billing_approach = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for configurableBillingApproach to set. + * @return This builder for chaining. */ - public Builder clearStartingSchema() { - bitField0_ = (bitField0_ & ~0x00001000); - startingSchema_ = null; - if (startingSchemaBuilder_ != null) { - startingSchemaBuilder_.dispose(); - startingSchemaBuilder_ = null; - } + public Builder setConfigurableBillingApproachValue(int value) { + configurableBillingApproach_ = value; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -6707,151 +17125,118 @@ public Builder clearStartingSchema() { * * *
            -     * The start schema to use for this
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            -     * provisioning it. If unset, a default vertical specialized schema will be
            -     * used.
            -     *
            -     * This field is only used by [CreateDataStore][] API, and will be ignored if
            -     * used in other APIs. This field will be omitted from all API responses
            -     * including [CreateDataStore][] API. To retrieve a schema of a
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            -     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            -     * API instead.
            -     *
            -     * The provided schema will be validated against certain rules on schema.
            -     * Learn more from [this
            -     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
            +     * Optional. Configuration for configurable billing approach. See
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + * + * .google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach configurable_billing_approach = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The configurableBillingApproach. */ - public com.google.cloud.discoveryengine.v1beta.Schema.Builder getStartingSchemaBuilder() { - bitField0_ |= 0x00001000; - onChanged(); - return internalGetStartingSchemaFieldBuilder().getBuilder(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach + getConfigurableBillingApproach() { + com.google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach result = + com.google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach.forNumber( + configurableBillingApproach_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach + .UNRECOGNIZED + : result; } /** * * *
            -     * The start schema to use for this
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            -     * provisioning it. If unset, a default vertical specialized schema will be
            -     * used.
            -     *
            -     * This field is only used by [CreateDataStore][] API, and will be ignored if
            -     * used in other APIs. This field will be omitted from all API responses
            -     * including [CreateDataStore][] API. To retrieve a schema of a
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            -     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            -     * API instead.
            -     *
            -     * The provided schema will be validated against certain rules on schema.
            -     * Learn more from [this
            -     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
            +     * Optional. Configuration for configurable billing approach. See
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + * + * .google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach configurable_billing_approach = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The configurableBillingApproach to set. + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getStartingSchemaOrBuilder() { - if (startingSchemaBuilder_ != null) { - return startingSchemaBuilder_.getMessageOrBuilder(); - } else { - return startingSchema_ == null - ? com.google.cloud.discoveryengine.v1beta.Schema.getDefaultInstance() - : startingSchema_; + public Builder setConfigurableBillingApproach( + com.google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00400000; + configurableBillingApproach_ = value.getNumber(); + onChanged(); + return this; } /** * * *
            -     * The start schema to use for this
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] when
            -     * provisioning it. If unset, a default vertical specialized schema will be
            -     * used.
            -     *
            -     * This field is only used by [CreateDataStore][] API, and will be ignored if
            -     * used in other APIs. This field will be omitted from all API responses
            -     * including [CreateDataStore][] API. To retrieve a schema of a
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use
            -     * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema]
            -     * API instead.
            -     *
            -     * The provided schema will be validated against certain rules on schema.
            -     * Learn more from [this
            -     * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
            +     * Optional. Configuration for configurable billing approach. See
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Schema starting_schema = 28; + * + * .google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach configurable_billing_approach = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Schema, - com.google.cloud.discoveryengine.v1beta.Schema.Builder, - com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder> - internalGetStartingSchemaFieldBuilder() { - if (startingSchemaBuilder_ == null) { - startingSchemaBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Schema, - com.google.cloud.discoveryengine.v1beta.Schema.Builder, - com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder>( - getStartingSchema(), getParentForChildren(), isClean()); - startingSchema_ = null; - } - return startingSchemaBuilder_; + public Builder clearConfigurableBillingApproach() { + bitField0_ = (bitField0_ & ~0x00400000); + configurableBillingApproach_ = 0; + onChanged(); + return this; } - private com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore - servingConfigDataStore_; + private com.google.protobuf.Timestamp configurableBillingApproachUpdateTime_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore, - com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore.Builder, - com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStoreOrBuilder> - servingConfigDataStoreBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + configurableBillingApproachUpdateTimeBuilder_; /** * * *
            -     * Optional. Stores serving config at DataStore level.
            +     * Output only. The timestamp when configurable_billing_approach was last
            +     * updated.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the servingConfigDataStore field is set. + * @return Whether the configurableBillingApproachUpdateTime field is set. */ - public boolean hasServingConfigDataStore() { - return ((bitField0_ & 0x00002000) != 0); + public boolean hasConfigurableBillingApproachUpdateTime() { + return ((bitField0_ & 0x00800000) != 0); } /** * * *
            -     * Optional. Stores serving config at DataStore level.
            +     * Output only. The timestamp when configurable_billing_approach was last
            +     * updated.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The servingConfigDataStore. + * @return The configurableBillingApproachUpdateTime. */ - public com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore - getServingConfigDataStore() { - if (servingConfigDataStoreBuilder_ == null) { - return servingConfigDataStore_ == null - ? com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore - .getDefaultInstance() - : servingConfigDataStore_; + public com.google.protobuf.Timestamp getConfigurableBillingApproachUpdateTime() { + if (configurableBillingApproachUpdateTimeBuilder_ == null) { + return configurableBillingApproachUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : configurableBillingApproachUpdateTime_; } else { - return servingConfigDataStoreBuilder_.getMessage(); + return configurableBillingApproachUpdateTimeBuilder_.getMessage(); } } @@ -6859,24 +17244,24 @@ public boolean hasServingConfigDataStore() { * * *
            -     * Optional. Stores serving config at DataStore level.
            +     * Output only. The timestamp when configurable_billing_approach was last
            +     * updated.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setServingConfigDataStore( - com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore value) { - if (servingConfigDataStoreBuilder_ == null) { + public Builder setConfigurableBillingApproachUpdateTime(com.google.protobuf.Timestamp value) { + if (configurableBillingApproachUpdateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - servingConfigDataStore_ = value; + configurableBillingApproachUpdateTime_ = value; } else { - servingConfigDataStoreBuilder_.setMessage(value); + configurableBillingApproachUpdateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -6885,22 +17270,22 @@ public Builder setServingConfigDataStore( * * *
            -     * Optional. Stores serving config at DataStore level.
            +     * Output only. The timestamp when configurable_billing_approach was last
            +     * updated.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setServingConfigDataStore( - com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore.Builder - builderForValue) { - if (servingConfigDataStoreBuilder_ == null) { - servingConfigDataStore_ = builderForValue.build(); + public Builder setConfigurableBillingApproachUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (configurableBillingApproachUpdateTimeBuilder_ == null) { + configurableBillingApproachUpdateTime_ = builderForValue.build(); } else { - servingConfigDataStoreBuilder_.setMessage(builderForValue.build()); + configurableBillingApproachUpdateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -6909,30 +17294,29 @@ public Builder setServingConfigDataStore( * * *
            -     * Optional. Stores serving config at DataStore level.
            +     * Output only. The timestamp when configurable_billing_approach was last
            +     * updated.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeServingConfigDataStore( - com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore value) { - if (servingConfigDataStoreBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && servingConfigDataStore_ != null - && servingConfigDataStore_ - != com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore - .getDefaultInstance()) { - getServingConfigDataStoreBuilder().mergeFrom(value); + public Builder mergeConfigurableBillingApproachUpdateTime(com.google.protobuf.Timestamp value) { + if (configurableBillingApproachUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) + && configurableBillingApproachUpdateTime_ != null + && configurableBillingApproachUpdateTime_ + != com.google.protobuf.Timestamp.getDefaultInstance()) { + getConfigurableBillingApproachUpdateTimeBuilder().mergeFrom(value); } else { - servingConfigDataStore_ = value; + configurableBillingApproachUpdateTime_ = value; } } else { - servingConfigDataStoreBuilder_.mergeFrom(value); + configurableBillingApproachUpdateTimeBuilder_.mergeFrom(value); } - if (servingConfigDataStore_ != null) { - bitField0_ |= 0x00002000; + if (configurableBillingApproachUpdateTime_ != null) { + bitField0_ |= 0x00800000; onChanged(); } return this; @@ -6942,19 +17326,20 @@ public Builder mergeServingConfigDataStore( * * *
            -     * Optional. Stores serving config at DataStore level.
            +     * Output only. The timestamp when configurable_billing_approach was last
            +     * updated.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearServingConfigDataStore() { - bitField0_ = (bitField0_ & ~0x00002000); - servingConfigDataStore_ = null; - if (servingConfigDataStoreBuilder_ != null) { - servingConfigDataStoreBuilder_.dispose(); - servingConfigDataStoreBuilder_ = null; + public Builder clearConfigurableBillingApproachUpdateTime() { + bitField0_ = (bitField0_ & ~0x00800000); + configurableBillingApproachUpdateTime_ = null; + if (configurableBillingApproachUpdateTimeBuilder_ != null) { + configurableBillingApproachUpdateTimeBuilder_.dispose(); + configurableBillingApproachUpdateTimeBuilder_ = null; } onChanged(); return this; @@ -6964,40 +17349,40 @@ public Builder clearServingConfigDataStore() { * * *
            -     * Optional. Stores serving config at DataStore level.
            +     * Output only. The timestamp when configurable_billing_approach was last
            +     * updated.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore.Builder - getServingConfigDataStoreBuilder() { - bitField0_ |= 0x00002000; + public com.google.protobuf.Timestamp.Builder getConfigurableBillingApproachUpdateTimeBuilder() { + bitField0_ |= 0x00800000; onChanged(); - return internalGetServingConfigDataStoreFieldBuilder().getBuilder(); + return internalGetConfigurableBillingApproachUpdateTimeFieldBuilder().getBuilder(); } /** * * *
            -     * Optional. Stores serving config at DataStore level.
            +     * Output only. The timestamp when configurable_billing_approach was last
            +     * updated.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStoreOrBuilder - getServingConfigDataStoreOrBuilder() { - if (servingConfigDataStoreBuilder_ != null) { - return servingConfigDataStoreBuilder_.getMessageOrBuilder(); + public com.google.protobuf.TimestampOrBuilder + getConfigurableBillingApproachUpdateTimeOrBuilder() { + if (configurableBillingApproachUpdateTimeBuilder_ != null) { + return configurableBillingApproachUpdateTimeBuilder_.getMessageOrBuilder(); } else { - return servingConfigDataStore_ == null - ? com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore - .getDefaultInstance() - : servingConfigDataStore_; + return configurableBillingApproachUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : configurableBillingApproachUpdateTime_; } } @@ -7005,28 +17390,29 @@ public Builder clearServingConfigDataStore() { * * *
            -     * Optional. Stores serving config at DataStore level.
            +     * Output only. The timestamp when configurable_billing_approach was last
            +     * updated.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore serving_config_data_store = 30 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore, - com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore.Builder, - com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStoreOrBuilder> - internalGetServingConfigDataStoreFieldBuilder() { - if (servingConfigDataStoreBuilder_ == null) { - servingConfigDataStoreBuilder_ = + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetConfigurableBillingApproachUpdateTimeFieldBuilder() { + if (configurableBillingApproachUpdateTimeBuilder_ == null) { + configurableBillingApproachUpdateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore, - com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStore.Builder, - com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStoreOrBuilder>( - getServingConfigDataStore(), getParentForChildren(), isClean()); - servingConfigDataStore_ = null; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getConfigurableBillingApproachUpdateTime(), getParentForChildren(), isClean()); + configurableBillingApproachUpdateTime_ = null; } - return servingConfigDataStoreBuilder_; + return configurableBillingApproachUpdateTimeBuilder_; } // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DataStore) diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreOrBuilder.java index b6dd141a9c05..b7d6db279180 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreOrBuilder.java @@ -30,7 +30,7 @@ public interface DataStoreOrBuilder * * *
            -   * Immutable. The full resource name of the data store.
            +   * Immutable. Identifier. The full resource name of the data store.
                * Format:
                * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                *
            @@ -38,7 +38,9 @@ public interface DataStoreOrBuilder
                * characters.
                * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -48,7 +50,7 @@ public interface DataStoreOrBuilder * * *
            -   * Immutable. The full resource name of the data store.
            +   * Immutable. Identifier. The full resource name of the data store.
                * Format:
                * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`.
                *
            @@ -56,7 +58,9 @@ public interface DataStoreOrBuilder
                * characters.
                * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -221,7 +225,7 @@ public interface DataStoreOrBuilder * *
                * Output only. The id of the default
            -   * [Schema][google.cloud.discoveryengine.v1beta.Schema] asscociated to this
            +   * [Schema][google.cloud.discoveryengine.v1beta.Schema] associated to this
                * data store.
                * 
            * @@ -236,7 +240,7 @@ public interface DataStoreOrBuilder * *
                * Output only. The id of the default
            -   * [Schema][google.cloud.discoveryengine.v1beta.Schema] asscociated to this
            +   * [Schema][google.cloud.discoveryengine.v1beta.Schema] associated to this
                * data store.
                * 
            * @@ -323,6 +327,50 @@ public interface DataStoreOrBuilder */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + /** + * + * + *
            +   * Optional. Configuration for advanced site search.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the advancedSiteSearchConfig field is set. + */ + boolean hasAdvancedSiteSearchConfig(); + + /** + * + * + *
            +   * Optional. Configuration for advanced site search.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The advancedSiteSearchConfig. + */ + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig getAdvancedSiteSearchConfig(); + + /** + * + * + *
            +   * Optional. Configuration for advanced site search.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfig advanced_site_search_config = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.AdvancedSiteSearchConfigOrBuilder + getAdvancedSiteSearchConfigOrBuilder(); + /** * * @@ -405,6 +453,89 @@ public interface DataStoreOrBuilder com.google.cloud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfigOrBuilder getNaturalLanguageQueryUnderstandingConfigOrBuilder(); + /** + * + * + *
            +   * Input only. The KMS key to be used to protect this DataStore at creation
            +   * time.
            +   *
            +   * Must be set for requests that need to comply with CMEK Org Policy
            +   * protections.
            +   *
            +   * If this field is set and processed successfully, the DataStore will be
            +   * protected by the KMS key, as indicated in the cmek_config field.
            +   * 
            + * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + + /** + * + * + *
            +   * Input only. The KMS key to be used to protect this DataStore at creation
            +   * time.
            +   *
            +   * Must be set for requests that need to comply with CMEK Org Policy
            +   * protections.
            +   *
            +   * If this field is set and processed successfully, the DataStore will be
            +   * protected by the KMS key, as indicated in the cmek_config field.
            +   * 
            + * + * string kms_key_name = 32 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString getKmsKeyNameBytes(); + + /** + * + * + *
            +   * Output only. CMEK-related information for the DataStore.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cmekConfig field is set. + */ + boolean hasCmekConfig(); + + /** + * + * + *
            +   * Output only. CMEK-related information for the DataStore.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cmekConfig. + */ + com.google.cloud.discoveryengine.v1beta.CmekConfig getCmekConfig(); + + /** + * + * + *
            +   * Output only. CMEK-related information for the DataStore.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder getCmekConfigOrBuilder(); + /** * * @@ -449,6 +580,35 @@ public interface DataStoreOrBuilder com.google.cloud.discoveryengine.v1beta.DataStore.BillingEstimationOrBuilder getBillingEstimationOrBuilder(); + /** + * + * + *
            +   * Immutable. Whether data in the
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] has ACL
            +   * information. If set to `true`, the source data must have ACL. ACL will be
            +   * ingested when data is ingested by
            +   * [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ImportDocuments]
            +   * methods.
            +   *
            +   * When ACL is enabled for the
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore],
            +   * [Document][google.cloud.discoveryengine.v1beta.Document] can't be accessed
            +   * by calling
            +   * [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument]
            +   * or
            +   * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments].
            +   *
            +   * Currently ACL is only supported in `GENERIC` industry vertical with
            +   * non-`PUBLIC_WEBSITE` content config.
            +   * 
            + * + * bool acl_enabled = 24 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The aclEnabled. + */ + boolean getAclEnabled(); + /** * * @@ -551,9 +711,12 @@ public interface DataStoreOrBuilder * provisioning it. If unset, a default vertical specialized schema will be * used. * - * This field is only used by [CreateDataStore][] API, and will be ignored if - * used in other APIs. This field will be omitted from all API responses - * including [CreateDataStore][] API. To retrieve a schema of a + * This field is only used by + * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore] + * API, and will be ignored if used in other APIs. This field will be omitted + * from all API responses including + * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore] + * API. To retrieve a schema of a * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema] * API instead. @@ -578,9 +741,12 @@ public interface DataStoreOrBuilder * provisioning it. If unset, a default vertical specialized schema will be * used. * - * This field is only used by [CreateDataStore][] API, and will be ignored if - * used in other APIs. This field will be omitted from all API responses - * including [CreateDataStore][] API. To retrieve a schema of a + * This field is only used by + * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore] + * API, and will be ignored if used in other APIs. This field will be omitted + * from all API responses including + * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore] + * API. To retrieve a schema of a * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema] * API instead. @@ -605,9 +771,12 @@ public interface DataStoreOrBuilder * provisioning it. If unset, a default vertical specialized schema will be * used. * - * This field is only used by [CreateDataStore][] API, and will be ignored if - * used in other APIs. This field will be omitted from all API responses - * including [CreateDataStore][] API. To retrieve a schema of a + * This field is only used by + * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore] + * API, and will be ignored if used in other APIs. This field will be omitted + * from all API responses including + * [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore] + * API. To retrieve a schema of a * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use * [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema] * API instead. @@ -621,6 +790,50 @@ public interface DataStoreOrBuilder */ com.google.cloud.discoveryengine.v1beta.SchemaOrBuilder getStartingSchemaOrBuilder(); + /** + * + * + *
            +   * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the healthcareFhirConfig field is set. + */ + boolean hasHealthcareFhirConfig(); + + /** + * + * + *
            +   * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The healthcareFhirConfig. + */ + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig getHealthcareFhirConfig(); + + /** + * + * + *
            +   * Optional. Configuration for `HEALTHCARE_FHIR` vertical.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HealthcareFhirConfig healthcare_fhir_config = 29 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfigOrBuilder + getHealthcareFhirConfigOrBuilder(); + /** * * @@ -665,4 +878,177 @@ public interface DataStoreOrBuilder */ com.google.cloud.discoveryengine.v1beta.DataStore.ServingConfigDataStoreOrBuilder getServingConfigDataStoreOrBuilder(); + + /** + * + * + *
            +   * Immutable. The fully qualified resource name of the associated
            +   * [IdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStore].
            +   * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
            +   * `GSUITE` IdP. Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
            +   * 
            + * + * + * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The identityMappingStore. + */ + java.lang.String getIdentityMappingStore(); + + /** + * + * + *
            +   * Immutable. The fully qualified resource name of the associated
            +   * [IdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStore].
            +   * This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or
            +   * `GSUITE` IdP. Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
            +   * 
            + * + * + * string identity_mapping_store = 31 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for identityMappingStore. + */ + com.google.protobuf.ByteString getIdentityMappingStoreBytes(); + + /** + * + * + *
            +   * Optional. If set, this DataStore is an Infobot FAQ DataStore.
            +   * 
            + * + * bool is_infobot_faq_data_store = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isInfobotFaqDataStore. + */ + boolean getIsInfobotFaqDataStore(); + + /** + * + * + *
            +   * Optional. If set, this DataStore is a federated search DataStore.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the federatedSearchConfig field is set. + */ + boolean hasFederatedSearchConfig(); + + /** + * + * + *
            +   * Optional. If set, this DataStore is a federated search DataStore.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The federatedSearchConfig. + */ + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig + getFederatedSearchConfig(); + + /** + * + * + *
            +   * Optional. If set, this DataStore is a federated search DataStore.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfig federated_search_config = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.DataStore.FederatedSearchConfigOrBuilder + getFederatedSearchConfigOrBuilder(); + + /** + * + * + *
            +   * Optional. Configuration for configurable billing approach. See
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach configurable_billing_approach = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for configurableBillingApproach. + */ + int getConfigurableBillingApproachValue(); + + /** + * + * + *
            +   * Optional. Configuration for configurable billing approach. See
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach configurable_billing_approach = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The configurableBillingApproach. + */ + com.google.cloud.discoveryengine.v1beta.DataStore.ConfigurableBillingApproach + getConfigurableBillingApproach(); + + /** + * + * + *
            +   * Output only. The timestamp when configurable_billing_approach was last
            +   * updated.
            +   * 
            + * + * + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the configurableBillingApproachUpdateTime field is set. + */ + boolean hasConfigurableBillingApproachUpdateTime(); + + /** + * + * + *
            +   * Output only. The timestamp when configurable_billing_approach was last
            +   * updated.
            +   * 
            + * + * + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The configurableBillingApproachUpdateTime. + */ + com.google.protobuf.Timestamp getConfigurableBillingApproachUpdateTime(); + + /** + * + * + *
            +   * Output only. The timestamp when configurable_billing_approach was last
            +   * updated.
            +   * 
            + * + * + * .google.protobuf.Timestamp configurable_billing_approach_update_time = 46 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getConfigurableBillingApproachUpdateTimeOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreProto.java index 70274815eaa1..236d04475f2e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreProto.java @@ -52,6 +52,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_DataStore_ServingConfigDataStore_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_DataStore_ServingConfigDataStore_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_NotebooklmConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_NotebooklmConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AdvancedSiteSearchConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AdvancedSiteSearchConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_LanguageInfo_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -76,37 +104,54 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "4google/cloud/discoveryengine/v1beta/data_store.proto\022#google.cloud.discoveryen" + "gine.v1beta\032\037google/api/field_behavior.p" - + "roto\032\031google/api/resource.proto\0320google/" - + "cloud/discoveryengine/v1beta/common.proto\032Dgoogle/cloud/discoveryengine/v1beta/d" - + "ocument_processing_config.proto\0320google/" - + "cloud/discoveryengine/v1beta/schema.proto\032\037google/protobuf/timestamp.proto\"\340\r\n" - + "\tDataStore\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\005\022\031\n" + + "roto\032\031google/api/resource.proto\032=google/" + + "cloud/discoveryengine/v1beta/cmek_config_service.proto\0320google/cloud/discoveryen" + + "gine/v1beta/common.proto\032Dgoogle/cloud/discoveryengine/v1beta/document_processin" + + "g_config.proto\0320google/cloud/discoveryen" + + "gine/v1beta/schema.proto\032\037google/protobuf/timestamp.proto\"\274\037\n" + + "\tDataStore\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\005\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022U\n" - + "\021industry_vertical\030\003 \001(" - + "\01625.google.cloud.discoveryengine.v1beta.IndustryVerticalB\003\340A\005\022I\n" - + "\016solution_types\030\005" - + " \003(\01621.google.cloud.discoveryengine.v1beta.SolutionType\022\036\n" + + "\021industry_vertical\030\003 \001(\01625.google.clo" + + "ud.discoveryengine.v1beta.IndustryVerticalB\003\340A\005\022I\n" + + "\016solution_types\030\005 \003(\01621.google" + + ".cloud.discoveryengine.v1beta.SolutionType\022\036\n" + "\021default_schema_id\030\007 \001(\tB\003\340A\003\022Y\n" - + "\016content_config\030\006 \001(\0162<.googl" - + "e.cloud.discoveryengine.v1beta.DataStore.ContentConfigB\003\340A\005\0224\n" - + "\013create_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022H\n\r" - + "language_info\030\016" - + " \001(\01321.google.cloud.discoveryengine.v1beta.LanguageInfo\022\206\001\n" - + "+natural_language_query_understanding_config\030\" \001(" - + "\0132L.google.cloud.discoveryengine.v1beta." - + "NaturalLanguageQueryUnderstandingConfigB\003\340A\001\022a\n" - + "\022billing_estimation\030\027 \001(\0132@.googl" - + "e.cloud.discoveryengine.v1beta.DataStore.BillingEstimationB\003\340A\003\022N\n" - + "\020workspace_config\030\031" - + " \001(\01324.google.cloud.discoveryengine.v1beta.WorkspaceConfig\022a\n" - + "\032document_processing_config\030\033 \001(\0132=.google.cloud.disco" - + "veryengine.v1beta.DocumentProcessingConfig\022D\n" + + "\016content_config\030\006 \001(\0162<.google.cloud.discov" + + "eryengine.v1beta.DataStore.ContentConfigB\003\340A\005\0224\n" + + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022g\n" + + "\033advanced_site_search_config\030\014 \001(\0132=.google.cloud.discover" + + "yengine.v1beta.AdvancedSiteSearchConfigB\003\340A\001\022H\n\r" + + "language_info\030\016 \001(\01321.google.clo" + + "ud.discoveryengine.v1beta.LanguageInfo\022\206\001\n" + + "+natural_language_query_understanding_config\030\"" + + " \001(\0132L.google.cloud.discoveryeng" + + "ine.v1beta.NaturalLanguageQueryUnderstandingConfigB\003\340A\001\022\031\n" + + "\014kms_key_name\030 \001(\tB\003\340A\004\022I\n" + + "\013cmek_config\030\022" + + " \001(\0132/.google.cloud.discoveryengine.v1beta.CmekConfigB\003\340A\003\022a\n" + + "\022billing_estimation\030\027 \001(\0132@.google.cloud" + + ".discoveryengine.v1beta.DataStore.BillingEstimationB\003\340A\003\022\030\n" + + "\013acl_enabled\030\030 \001(\010B\003\340A\005\022N\n" + + "\020workspace_config\030\031 \001(\01324.google.cl" + + "oud.discoveryengine.v1beta.WorkspaceConfig\022a\n" + + "\032document_processing_config\030\033 \001(\0132=" + + ".google.cloud.discoveryengine.v1beta.DocumentProcessingConfig\022D\n" + "\017starting_schema\030\034" - + " \001(\0132+.google.cloud.discoveryengine.v1beta.Schema\022m\n" - + "\031serving_config_data_store\030\036 \001(\0132E.google.clo" - + "ud.discoveryengine.v1beta.DataStore.ServingConfigDataStoreB\003\340A\001\032\256\002\n" + + " \001(\0132+.google.cloud.discoveryengine.v1beta.Schema\022^\n" + + "\026healthcare_fhir_config\030\035 " + + "\001(\01329.google.cloud.discoveryengine.v1beta.HealthcareFhirConfigB\003\340A\001\022m\n" + + "\031serving_config_data_store\030\036 \001(\0132E.google.cloud.di" + + "scoveryengine.v1beta.DataStore.ServingConfigDataStoreB\003\340A\001\022[\n" + + "\026identity_mapping_store\030\037 \001(\tB;\340A\005\372A5\n" + + "3discoveryengine.googleapis.com/IdentityMappingStore\022&\n" + + "\031is_infobot_faq_data_store\030% \001(\010B\003\340A\001\022j\n" + + "\027federated_search_config\030& \001(\0132D.google.cloud." + + "discoveryengine.v1beta.DataStore.FederatedSearchConfigB\003\340A\001\022v\n" + + "\035configurable_billing_approach\030- \001(\0162J.google.cloud.discov" + + "eryengine.v1beta.DataStore.ConfigurableBillingApproachB\003\340A\001\022R\n" + + ")configurable_billing_approach_update_time\030." + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032\256\002\n" + "\021BillingEstimation\022\034\n" + "\024structured_data_size\030\001 \001(\003\022\036\n" + "\026unstructured_data_size\030\002 \001(\003\022\031\n" @@ -115,36 +160,81 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.Timestamp\022A\n" + "\035unstructured_data_update_time\030\005" + " \001(\0132\032.google.protobuf.Timestamp\022<\n" - + "\030website_data_update_time\030\006 \001(\0132\032.google.protobuf.Timestamp\0326\n" - + "\026ServingConfigDataStore\022\034\n" - + "\024disabled_for_serving\030\001 \001(\010\"\177\n\r" + + "\030website_data_update_time\030\006 \001(\0132\032.google.protobuf.Timestamp\032;\n" + + "\026ServingConfigDataStore\022!\n" + + "\024disabled_for_serving\030\001 \001(\010B\003\340A\001\032\247\n\n" + + "\025FederatedSearchConfig\022m\n" + + "\017alloy_db_config\030\001 \001(\0132R.google.cloud.discoveryengine.v1beta.D" + + "ataStore.FederatedSearchConfig.AlloyDbConfigH\000\022~\n" + + "\030third_party_oauth_config\030\002 \001(\0132Z.google.cloud.discoveryengine.v1beta.D" + + "ataStore.FederatedSearchConfig.ThirdPartyOauthConfigH\000\022r\n" + + "\021notebooklm_config\030\003 \001(\0132U.google.cloud.discoveryengine.v1beta." + + "DataStore.FederatedSearchConfig.NotebooklmConfigH\000\032\230\006\n\r" + + "AlloyDbConfig\022\222\001\n" + + "\031alloydb_connection_config\030\001 \001(\0132j.google.cloud." + + "discoveryengine.v1beta.DataStore.Federat" + + "edSearchConfig.AlloyDbConfig.AlloyDbConnectionConfigB\003\340A\002\022\224\001\n" + + "\024alloydb_ai_nl_config\030\002 \001(\0132q.google.cloud.discoveryengine." + + "v1beta.DataStore.FederatedSearchConfig.A" + + "lloyDbConfig.AlloyDbAiNaturalLanguageConfigB\003\340A\001\022\034\n" + + "\017returned_fields\030\003 \003(\tB\003\340A\001\032\377\002\n" + + "\027AlloyDbConnectionConfig\022\025\n" + + "\010instance\030\001 \001(\tB\003\340A\002\022\025\n" + + "\010database\030\002 \001(\tB\003\340A\002\022\021\n" + + "\004user\030\003 \001(\tB\003\340A\002\022\025\n" + + "\010password\030\004 \001(\tB\003\340A\002\022\213\001\n" + + "\tauth_mode\030\005 \001(\0162s.google.cloud.discoverye" + + "ngine.v1beta.DataStore.FederatedSearchCo" + + "nfig.AlloyDbConfig.AlloyDbConnectionConfig.AuthModeB\003\340A\001\022\030\n" + + "\013enable_psvs\030\006 \001(\010B\003\340A\001\"d\n" + + "\010AuthMode\022\031\n" + + "\025AUTH_MODE_UNSPECIFIED\020\000\022\035\n" + + "\031AUTH_MODE_SERVICE_ACCOUNT\020\001\022\036\n" + + "\032AUTH_MODE_END_USER_ACCOUNT\020\002\032;\n" + + "\036AlloyDbAiNaturalLanguageConfig\022\031\n" + + "\014nl_config_id\030\001 \001(\tB\003\340A\001\032J\n" + + "\025ThirdPartyOauthConfig\022\025\n" + + "\010app_name\030\001 \001(\tB\003\340A\001\022\032\n\r" + + "instance_name\030\002 \001(\tB\003\340A\001\032.\n" + + "\020NotebooklmConfig\022\032\n\r" + + "search_config\030\001 \001(\tB\003\340A\002B\024\n" + + "\022data_source_config\"\177\n\r" + "ContentConfig\022\036\n" + "\032CONTENT_CONFIG_UNSPECIFIED\020\000\022\016\n\n" + "NO_CONTENT\020\001\022\024\n" + "\020CONTENT_REQUIRED\020\002\022\022\n" + "\016PUBLIC_WEBSITE\020\003\022\024\n" - + "\020GOOGLE_WORKSPACE\020\004:\311\001\352A\305\001\n" - + "(discoveryengine.googleapis.com/DataStore\022?projects/{project}/locations/{locati" - + "on}/dataStores/{data_store}\022Xprojects/{p" - + "roject}/locations/{location}/collections/{collection}/dataStores/{data_store}\"x\n" + + "\020GOOGLE_WORKSPACE\020\004\"\241\001\n" + + "\033ConfigurableBillingApproach\022-\n" + + ")CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED\020\000\022+\n" + + "\'CONFIGURABLE_SUBSCRIPTION_INDEXING_CORE\020\001\022&\n" + + "\"CONFIGURABLE_CONSUMPTION_EMBEDDING\020\002:\311\001\352A\305\001\n" + + "(discoveryengine.googleapis.com/DataStore\022?projects/{project}/locati" + + "ons/{location}/dataStores/{data_store}\022Xprojects/{project}/locations/{location}/" + + "collections/{collection}/dataStores/{data_store}\"\236\001\n" + + "\030AdvancedSiteSearchConfig\022\"\n" + + "\025disable_initial_index\030\003 \001(\010H\000\210\001\001\022&\n" + + "\031disable_automatic_refresh\030\004 \001(\010H\001\210\001\001B\030\n" + + "\026_disable_initial_indexB\034\n" + + "\032_disable_automatic_refresh\"x\n" + "\014LanguageInfo\022\025\n\r" + "language_code\030\001 \001(\t\022%\n" + "\030normalized_language_code\030\002 \001(\tB\003\340A\003\022\025\n" + "\010language\030\003 \001(\tB\003\340A\003\022\023\n" + "\006region\030\004 \001(\tB\003\340A\003\"\303\001\n" + "\'NaturalLanguageQueryUnderstandingConfig\022_\n" - + "\004mode\030\001 \001(\0162Q.google.cloud.discove" - + "ryengine.v1beta.NaturalLanguageQueryUnderstandingConfig.Mode\"7\n" + + "\004mode\030\001 \001(\0162Q.google.c" + + "loud.discoveryengine.v1beta.NaturalLanguageQueryUnderstandingConfig.Mode\"7\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\014\n" + "\010DISABLED\020\001\022\013\n" - + "\007ENABLED\020\002\"\346\002\n" + + "\007ENABLED\020\002\"\376\002\n" + "\017WorkspaceConfig\022G\n" - + "\004type\030\001 \001(\01629.google" - + ".cloud.discoveryengine.v1beta.WorkspaceConfig.Type\022\032\n" - + "\022dasher_customer_id\030\002 \001(\t\022(\n" + + "\004type\030\001 " + + "\001(\01629.google.cloud.discoveryengine.v1beta.WorkspaceConfig.Type\022\037\n" + + "\022dasher_customer_id\030\002 \001(\tB\003\340A\003\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" + + "\031super_admin_email_address\030\005 \001(\tB\003\340A\001\"\256\001\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\020\n" + "\014GOOGLE_DRIVE\020\001\022\017\n" @@ -153,13 +243,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017GOOGLE_CALENDAR\020\004\022\017\n" + "\013GOOGLE_CHAT\020\005\022\021\n\r" + "GOOGLE_GROUPS\020\006\022\017\n" - + "\013GOOGLE_KEEP\020\007B\225\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB\016DataStoreProtoP\001ZQcloud.google.com/g" - + "o/discoveryengine/apiv1beta/discoveryeng" - + "inepb;discoveryenginepb\242\002\017DISCOVERYENGIN" - + "E\252\002#Google.Cloud.DiscoveryEngine.V1Beta\312" - + "\002#Google\\Cloud\\DiscoveryEngine\\V1beta\352\002&" - + "Google::Cloud::DiscoveryEngine::V1betab\006proto3" + + "\013GOOGLE_KEEP\020\007\022\021\n\r" + + "GOOGLE_PEOPLE\020\010B\225\002\n" + + "\'com.google.cloud.discoveryengine.v1betaB\016" + + "DataStoreProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginep" + + "b;discoveryenginepb\242\002\017DISCOVERYENGINE\252\002#" + + "Google.Cloud.DiscoveryEngine.V1Beta\312\002#Go" + + "ogle\\Cloud\\DiscoveryEngine\\V1beta\352\002&Goog" + + "le::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -167,6 +258,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.cloud.discoveryengine.v1beta.CmekConfigServiceProto.getDescriptor(), com.google.cloud.discoveryengine.v1beta.CommonProto.getDescriptor(), com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto.getDescriptor(), com.google.cloud.discoveryengine.v1beta.SchemaProto.getDescriptor(), @@ -185,13 +277,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DefaultSchemaId", "ContentConfig", "CreateTime", + "AdvancedSiteSearchConfig", "LanguageInfo", "NaturalLanguageQueryUnderstandingConfig", + "KmsKeyName", + "CmekConfig", "BillingEstimation", + "AclEnabled", "WorkspaceConfig", "DocumentProcessingConfig", "StartingSchema", + "HealthcareFhirConfig", "ServingConfigDataStore", + "IdentityMappingStore", + "IsInfobotFaqDataStore", + "FederatedSearchConfig", + "ConfigurableBillingApproach", + "ConfigurableBillingApproachUpdateTime", }); internal_static_google_cloud_discoveryengine_v1beta_DataStore_BillingEstimation_descriptor = internal_static_google_cloud_discoveryengine_v1beta_DataStore_descriptor.getNestedType(0); @@ -214,8 +316,69 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DisabledForServing", }); - internal_static_google_cloud_discoveryengine_v1beta_LanguageInfo_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_DataStore_descriptor.getNestedType(2); + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_descriptor, + new java.lang.String[] { + "AlloyDbConfig", "ThirdPartyOauthConfig", "NotebooklmConfig", "DataSourceConfig", + }); + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_descriptor, + new java.lang.String[] { + "AlloydbConnectionConfig", "AlloydbAiNlConfig", "ReturnedFields", + }); + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbConnectionConfig_descriptor, + new java.lang.String[] { + "Instance", "Database", "User", "Password", "AuthMode", "EnablePsvs", + }); + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_AlloyDbConfig_AlloyDbAiNaturalLanguageConfig_descriptor, + new java.lang.String[] { + "NlConfigId", + }); + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_ThirdPartyOauthConfig_descriptor, + new java.lang.String[] { + "AppName", "InstanceName", + }); + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_NotebooklmConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_descriptor + .getNestedType(2); + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_NotebooklmConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DataStore_FederatedSearchConfig_NotebooklmConfig_descriptor, + new java.lang.String[] { + "SearchConfig", + }); + internal_static_google_cloud_discoveryengine_v1beta_AdvancedSiteSearchConfig_descriptor = getDescriptor().getMessageType(1); + internal_static_google_cloud_discoveryengine_v1beta_AdvancedSiteSearchConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AdvancedSiteSearchConfig_descriptor, + new java.lang.String[] { + "DisableInitialIndex", "DisableAutomaticRefresh", + }); + internal_static_google_cloud_discoveryengine_v1beta_LanguageInfo_descriptor = + getDescriptor().getMessageType(2); internal_static_google_cloud_discoveryengine_v1beta_LanguageInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_LanguageInfo_descriptor, @@ -223,7 +386,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LanguageCode", "NormalizedLanguageCode", "Language", "Region", }); internal_static_google_cloud_discoveryengine_v1beta_NaturalLanguageQueryUnderstandingConfig_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(3); internal_static_google_cloud_discoveryengine_v1beta_NaturalLanguageQueryUnderstandingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_NaturalLanguageQueryUnderstandingConfig_descriptor, @@ -231,7 +394,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Mode", }); internal_static_google_cloud_discoveryengine_v1beta_WorkspaceConfig_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(4); internal_static_google_cloud_discoveryengine_v1beta_WorkspaceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_WorkspaceConfig_descriptor, @@ -241,6 +404,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto.getDescriptor(); com.google.cloud.discoveryengine.v1beta.CommonProto.getDescriptor(); com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto.getDescriptor(); com.google.cloud.discoveryengine.v1beta.SchemaProto.getDescriptor(); @@ -249,6 +413,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceProto.java index 5589a114850c..1d0018a75ec6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DataStoreServiceProto.java @@ -91,85 +91,91 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "grunning/operations.proto\032\033google/protob" + "uf/empty.proto\032 google/protobuf/field_ma" + "sk.proto\032\037google/protobuf/timestamp.prot" - + "o\"\213\002\n\026CreateDataStoreRequest\022A\n\006parent\030\001" - + " \001(\tB1\340A\002\372A+\n)discoveryengine.googleapis" - + ".com/Collection\022G\n\ndata_store\030\002 \001(\0132..go" - + "ogle.cloud.discoveryengine.v1beta.DataSt" - + "oreB\003\340A\002\022\032\n\rdata_store_id\030\003 \001(\tB\003\340A\002\022#\n\033" - + "create_advanced_site_search\030\004 \001(\010\022$\n\034ski" - + "p_default_schema_creation\030\007 \001(\010\"U\n\023GetDa" - + "taStoreRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(di" - + "scoveryengine.googleapis.com/DataStore\"{" - + "\n\027CreateDataStoreMetadata\022/\n\013create_time" - + "\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n\013up" - + "date_time\030\002 \001(\0132\032.google.protobuf.Timest" - + "amp\"\221\001\n\025ListDataStoresRequest\022A\n\006parent\030" - + "\001 \001(\tB1\340A\002\372A+\n)discoveryengine.googleapi" - + "s.com/Collection\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" - + "age_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"v\n\026ListD" - + "ataStoresResponse\022C\n\013data_stores\030\001 \003(\0132." - + ".google.cloud.discoveryengine.v1beta.Dat" - + "aStore\022\027\n\017next_page_token\030\002 \001(\t\"X\n\026Delet" - + "eDataStoreRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n" - + "(discoveryengine.googleapis.com/DataStor" - + "e\"\222\001\n\026UpdateDataStoreRequest\022G\n\ndata_sto" - + "re\030\001 \001(\0132..google.cloud.discoveryengine." - + "v1beta.DataStoreB\003\340A\002\022/\n\013update_mask\030\002 \001" - + "(\0132\032.google.protobuf.FieldMask\"{\n\027Delete" - + "DataStoreMetadata\022/\n\013create_time\030\001 \001(\0132\032" - + ".google.protobuf.Timestamp\022/\n\013update_tim" - + "e\030\002 \001(\0132\032.google.protobuf.Timestamp2\263\r\n\020" - + "DataStoreService\022\230\003\n\017CreateDataStore\022;.g" - + "oogle.cloud.discoveryengine.v1beta.Creat" - + "eDataStoreRequest\032\035.google.longrunning.O" - + "peration\"\250\002\312Al\n-google.cloud.discoveryen" - + "gine.v1beta.DataStore\022;google.cloud.disc" - + "overyengine.v1beta.CreateDataStoreMetada" - + "ta\332A\037parent,data_store,data_store_id\202\323\344\223" - + "\002\220\001\"2/v1beta/{parent=projects/*/location" - + "s/*}/dataStores:\ndata_storeZN\"@/v1beta/{" - + "parent=projects/*/locations/*/collection" - + "s/*}/dataStores:\ndata_store\022\200\002\n\014GetDataS" - + "tore\0228.google.cloud.discoveryengine.v1be" - + "ta.GetDataStoreRequest\032..google.cloud.di" - + "scoveryengine.v1beta.DataStore\"\205\001\332A\004name" - + "\202\323\344\223\002x\0222/v1beta/{name=projects/*/locatio" - + "ns/*/dataStores/*}ZB\022@/v1beta/{name=proj" - + "ects/*/locations/*/collections/*/dataSto" - + "res/*}\022\223\002\n\016ListDataStores\022:.google.cloud" - + ".discoveryengine.v1beta.ListDataStoresRe" - + "quest\032;.google.cloud.discoveryengine.v1b" - + "eta.ListDataStoresResponse\"\207\001\332A\006parent\202\323" - + "\344\223\002x\0222/v1beta/{parent=projects/*/locatio" - + "ns/*}/dataStoresZB\022@/v1beta/{parent=proj" - + "ects/*/locations/*/collections/*}/dataSt" - + "ores\022\314\002\n\017DeleteDataStore\022;.google.cloud." - + "discoveryengine.v1beta.DeleteDataStoreRe" - + "quest\032\035.google.longrunning.Operation\"\334\001\312" - + "AT\n\025google.protobuf.Empty\022;google.cloud." - + "discoveryengine.v1beta.DeleteDataStoreMe" - + "tadata\332A\004name\202\323\344\223\002x*2/v1beta/{name=proje" - + "cts/*/locations/*/dataStores/*}ZB*@/v1be" - + "ta/{name=projects/*/locations/*/collecti" - + "ons/*/dataStores/*}\022\307\002\n\017UpdateDataStore\022" - + ";.google.cloud.discoveryengine.v1beta.Up" - + "dateDataStoreRequest\032..google.cloud.disc" - + "overyengine.v1beta.DataStore\"\306\001\332A\026data_s" - + "tore,update_mask\202\323\344\223\002\246\0012=/v1beta/{data_s" - + "tore.name=projects/*/locations/*/dataSto" - + "res/*}:\ndata_storeZY2K/v1beta/{data_stor" - + "e.name=projects/*/locations/*/collection" - + "s/*/dataStores/*}:\ndata_store\032R\312A\036discov" - + "eryengine.googleapis.com\322A.https://www.g" - + "oogleapis.com/auth/cloud-platformB\234\002\n\'co" - + "m.google.cloud.discoveryengine.v1betaB\025D" - + "ataStoreServiceProtoP\001ZQcloud.google.com" - + "/go/discoveryengine/apiv1beta/discoverye" - + "nginepb;discoveryenginepb\242\002\017DISCOVERYENG" - + "INE\252\002#Google.Cloud.DiscoveryEngine.V1Bet" - + "a\312\002#Google\\Cloud\\DiscoveryEngine\\V1beta\352" - + "\002&Google::Cloud::DiscoveryEngine::V1beta" - + "b\006proto3" + + "o\"\377\002\n\026CreateDataStoreRequest\022J\n\020cmek_con" + + "fig_name\030\005 \001(\tB.\372A+\n)discoveryengine.goo" + + "gleapis.com/CmekConfigH\000\022\026\n\014disable_cmek" + + "\030\006 \001(\010H\000\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)discov" + + "eryengine.googleapis.com/Collection\022G\n\nd" + + "ata_store\030\002 \001(\0132..google.cloud.discovery" + + "engine.v1beta.DataStoreB\003\340A\002\022\032\n\rdata_sto" + + "re_id\030\003 \001(\tB\003\340A\002\022#\n\033create_advanced_site" + + "_search\030\004 \001(\010\022$\n\034skip_default_schema_cre" + + "ation\030\007 \001(\010B\016\n\014cmek_options\"U\n\023GetDataSt" + + "oreRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(discov" + + "eryengine.googleapis.com/DataStore\"{\n\027Cr" + + "eateDataStoreMetadata\022/\n\013create_time\030\001 \001" + + "(\0132\032.google.protobuf.Timestamp\022/\n\013update" + + "_time\030\002 \001(\0132\032.google.protobuf.Timestamp\"" + + "\221\001\n\025ListDataStoresRequest\022A\n\006parent\030\001 \001(" + + "\tB1\340A\002\372A+\n)discoveryengine.googleapis.co" + + "m/Collection\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\"v\n\026ListDataS" + + "toresResponse\022C\n\013data_stores\030\001 \003(\0132..goo" + + "gle.cloud.discoveryengine.v1beta.DataSto" + + "re\022\027\n\017next_page_token\030\002 \001(\t\"X\n\026DeleteDat" + + "aStoreRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(dis" + + "coveryengine.googleapis.com/DataStore\"\222\001" + + "\n\026UpdateDataStoreRequest\022G\n\ndata_store\030\001" + + " \001(\0132..google.cloud.discoveryengine.v1be" + + "ta.DataStoreB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032" + + ".google.protobuf.FieldMask\"{\n\027DeleteData" + + "StoreMetadata\022/\n\013create_time\030\001 \001(\0132\032.goo" + + "gle.protobuf.Timestamp\022/\n\013update_time\030\002 " + + "\001(\0132\032.google.protobuf.Timestamp2\261\016\n\020Data" + + "StoreService\022\230\003\n\017CreateDataStore\022;.googl" + + "e.cloud.discoveryengine.v1beta.CreateDat" + + "aStoreRequest\032\035.google.longrunning.Opera" + + "tion\"\250\002\312Al\n-google.cloud.discoveryengine" + + ".v1beta.DataStore\022;google.cloud.discover" + + "yengine.v1beta.CreateDataStoreMetadata\332A" + + "\037parent,data_store,data_store_id\202\323\344\223\002\220\001\"" + + "2/v1beta/{parent=projects/*/locations/*}" + + "/dataStores:\ndata_storeZN\"@/v1beta/{pare" + + "nt=projects/*/locations/*/collections/*}" + + "/dataStores:\ndata_store\022\200\002\n\014GetDataStore" + + "\0228.google.cloud.discoveryengine.v1beta.G" + + "etDataStoreRequest\032..google.cloud.discov" + + "eryengine.v1beta.DataStore\"\205\001\332A\004name\202\323\344\223" + + "\002x\0222/v1beta/{name=projects/*/locations/*" + + "/dataStores/*}ZB\022@/v1beta/{name=projects" + + "/*/locations/*/collections/*/dataStores/" + + "*}\022\223\002\n\016ListDataStores\022:.google.cloud.dis" + + "coveryengine.v1beta.ListDataStoresReques" + + "t\032;.google.cloud.discoveryengine.v1beta." + + "ListDataStoresResponse\"\207\001\332A\006parent\202\323\344\223\002x" + + "\0222/v1beta/{parent=projects/*/locations/*" + + "}/dataStoresZB\022@/v1beta/{parent=projects" + + "/*/locations/*/collections/*}/dataStores" + + "\022\314\002\n\017DeleteDataStore\022;.google.cloud.disc" + + "overyengine.v1beta.DeleteDataStoreReques" + + "t\032\035.google.longrunning.Operation\"\334\001\312AT\n\025" + + "google.protobuf.Empty\022;google.cloud.disc" + + "overyengine.v1beta.DeleteDataStoreMetada" + + "ta\332A\004name\202\323\344\223\002x*2/v1beta/{name=projects/" + + "*/locations/*/dataStores/*}ZB*@/v1beta/{" + + "name=projects/*/locations/*/collections/" + + "*/dataStores/*}\022\307\002\n\017UpdateDataStore\022;.go" + + "ogle.cloud.discoveryengine.v1beta.Update" + + "DataStoreRequest\032..google.cloud.discover" + + "yengine.v1beta.DataStore\"\306\001\332A\026data_store" + + ",update_mask\202\323\344\223\002\246\0012=/v1beta/{data_store" + + ".name=projects/*/locations/*/dataStores/" + + "*}:\ndata_storeZY2K/v1beta/{data_store.na" + + "me=projects/*/locations/*/collections/*/" + + "dataStores/*}:\ndata_store\032\317\001\312A\036discovery" + + "engine.googleapis.com\322A\252\001https://www.goo" + + "gleapis.com/auth/cloud-platform,https://" + + "www.googleapis.com/auth/discoveryengine." + + "readwrite,https://www.googleapis.com/aut" + + "h/discoveryengine.serving.readwriteB\234\002\n\'" + + "com.google.cloud.discoveryengine.v1betaB" + + "\025DataStoreServiceProtoP\001ZQcloud.google.c" + + "om/go/discoveryengine/apiv1beta/discover" + + "yenginepb;discoveryenginepb\242\002\017DISCOVERYE" + + "NGINE\252\002#Google.Cloud.DiscoveryEngine.V1B" + + "eta\312\002#Google\\Cloud\\DiscoveryEngine\\V1bet" + + "a\352\002&Google::Cloud::DiscoveryEngine::V1be" + + "tab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -191,11 +197,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_CreateDataStoreRequest_descriptor, new java.lang.String[] { + "CmekConfigName", + "DisableCmek", "Parent", "DataStore", "DataStoreId", "CreateAdvancedSiteSearch", "SkipDefaultSchemaCreation", + "CmekOptions", }); internal_static_google_cloud_discoveryengine_v1beta_GetDataStoreRequest_descriptor = getDescriptor().getMessageType(1); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteAssistantRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteAssistantRequest.java new file mode 100644 index 000000000000..51fe42ce2468 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteAssistantRequest.java @@ -0,0 +1,684 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for the
            + * [AssistantService.DeleteAssistant][google.cloud.discoveryengine.v1beta.AssistantService.DeleteAssistant]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteAssistantRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAssistantRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DeleteAssistantRequest) + DeleteAssistantRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteAssistantRequest"); + } + + // Use DeleteAssistantRequest.newBuilder() to construct. + private DeleteAssistantRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAssistantRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest.class, + com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. Resource name of
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   *
            +   * If the caller does not have permission to delete the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +   * whether or not it exists, a PERMISSION_DENIED error is returned.
            +   *
            +   * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to delete
            +   * does not exist, a NOT_FOUND error is returned.
            +   * 
            + * + * + * 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. Resource name of
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   *
            +   * If the caller does not have permission to delete the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +   * whether or not it exists, a PERMISSION_DENIED error is returned.
            +   *
            +   * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to delete
            +   * does not exist, a NOT_FOUND error is returned.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest other = + (com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest) 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.discoveryengine.v1beta.DeleteAssistantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest 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.v1beta.DeleteAssistantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest parseFrom( + 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.v1beta.DeleteAssistantRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for the
            +   * [AssistantService.DeleteAssistant][google.cloud.discoveryengine.v1beta.AssistantService.DeleteAssistant]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteAssistantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DeleteAssistantRequest) + com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest.class, + com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteAssistantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest build() { + com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest result = + new com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest.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. Resource name of
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     *
            +     * If the caller does not have permission to delete the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     *
            +     * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to delete
            +     * does not exist, a NOT_FOUND error is returned.
            +     * 
            + * + * + * 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. Resource name of
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     *
            +     * If the caller does not have permission to delete the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     *
            +     * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to delete
            +     * does not exist, a NOT_FOUND error is returned.
            +     * 
            + * + * + * 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. Resource name of
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     *
            +     * If the caller does not have permission to delete the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     *
            +     * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to delete
            +     * does not exist, a NOT_FOUND error is returned.
            +     * 
            + * + * + * 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. Resource name of
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     *
            +     * If the caller does not have permission to delete the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     *
            +     * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to delete
            +     * does not exist, a NOT_FOUND error is returned.
            +     * 
            + * + * + * 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. Resource name of
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     *
            +     * If the caller does not have permission to delete the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     *
            +     * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to delete
            +     * does not exist, a NOT_FOUND error is returned.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DeleteAssistantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DeleteAssistantRequest) + private static final com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAssistantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.DeleteAssistantRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteAssistantRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteAssistantRequestOrBuilder.java new file mode 100644 index 000000000000..3e265d6554e5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteAssistantRequestOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface DeleteAssistantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DeleteAssistantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Resource name of
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   *
            +   * If the caller does not have permission to delete the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +   * whether or not it exists, a PERMISSION_DENIED error is returned.
            +   *
            +   * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to delete
            +   * does not exist, a NOT_FOUND error is returned.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. Resource name of
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   *
            +   * If the caller does not have permission to delete the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +   * whether or not it exists, a PERMISSION_DENIED error is returned.
            +   *
            +   * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to delete
            +   * does not exist, a NOT_FOUND error is returned.
            +   * 
            + * + * + * 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-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteCmekConfigMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteCmekConfigMetadata.java new file mode 100644 index 000000000000..d48f9aa31ae7 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteCmekConfigMetadata.java @@ -0,0 +1,997 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/cmek_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Metadata related to the progress of the
            + * [CmekConfigService.DeleteCmekConfig][google.cloud.discoveryengine.v1beta.CmekConfigService.DeleteCmekConfig]
            + * operation. This will be returned by the google.longrunning.Operation.metadata
            + * field.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata} + */ +@com.google.protobuf.Generated +public final class DeleteCmekConfigMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata) + DeleteCmekConfigMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteCmekConfigMetadata"); + } + + // Use DeleteCmekConfigMetadata.newBuilder() to construct. + private DeleteCmekConfigMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteCmekConfigMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteCmekConfigMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteCmekConfigMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata.class, + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + @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 = 2; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + @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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata other = + (com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata) obj; + + 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(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata 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.v1beta.DeleteCmekConfigMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata parseFrom( + 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.v1beta.DeleteCmekConfigMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Metadata related to the progress of the
            +   * [CmekConfigService.DeleteCmekConfig][google.cloud.discoveryengine.v1beta.CmekConfigService.DeleteCmekConfig]
            +   * operation. This will be returned by the google.longrunning.Operation.metadata
            +   * field.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata) + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteCmekConfigMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteCmekConfigMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata.class, + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteCmekConfigMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata build() { + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata buildPartial() { + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata result = + new com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata.getDefaultInstance()) + return this; + 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: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().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.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @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(); + } + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @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(); + } + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata) + private static final com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCmekConfigMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.DeleteCmekConfigMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteCmekConfigMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteCmekConfigMetadataOrBuilder.java new file mode 100644 index 000000000000..dec2ddb091c8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteCmekConfigMetadataOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/cmek_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface DeleteCmekConfigMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentEnvironmentRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteCmekConfigRequest.java similarity index 54% rename from java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentEnvironmentRequest.java rename to java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteCmekConfigRequest.java index 4e0464121b18..524f6c27ba2d 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentEnvironmentRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteCmekConfigRequest.java @@ -15,26 +15,27 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/oracledatabase/v1/goldengate_deployment_environment.proto +// source: google/cloud/discoveryengine/v1beta/cmek_config_service.proto // Protobuf Java Version: 4.33.2 -package com.google.cloud.oracledatabase.v1; +package com.google.cloud.discoveryengine.v1beta; /** * * *
            - * Message for getting a GoldengateDeploymentEnvironment.
            + * Request message for
            + * [CmekConfigService.DeleteCmekConfig][google.cloud.discoveryengine.v1beta.CmekConfigService.DeleteCmekConfig]
            + * method.
              * 
            * - * Protobuf type {@code google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest} */ @com.google.protobuf.Generated -public final class GetGoldengateDeploymentEnvironmentRequest - extends com.google.protobuf.GeneratedMessage +public final class DeleteCmekConfigRequest extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest) - GetGoldengateDeploymentEnvironmentRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest) + DeleteCmekConfigRequestOrBuilder { private static final long serialVersionUID = 0L; static { @@ -44,33 +45,31 @@ public final class GetGoldengateDeploymentEnvironmentRequest /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "GetGoldengateDeploymentEnvironmentRequest"); + "DeleteCmekConfigRequest"); } - // Use GetGoldengateDeploymentEnvironmentRequest.newBuilder() to construct. - private GetGoldengateDeploymentEnvironmentRequest( - com.google.protobuf.GeneratedMessage.Builder builder) { + // Use DeleteCmekConfigRequest.newBuilder() to construct. + private DeleteCmekConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private GetGoldengateDeploymentEnvironmentRequest() { + private DeleteCmekConfigRequest() { name_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironmentProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentEnvironmentRequest_descriptor; + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteCmekConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironmentProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentEnvironmentRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteCmekConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest.class, - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest.Builder - .class); + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -82,8 +81,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Required. Name of the resource with the format:
            -   * projects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment}
            +   * Required. The resource name of the
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig] to delete,
            +   * such as
            +   * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
                * 
            * * @@ -109,8 +110,10 @@ public java.lang.String getName() { * * *
            -   * Required. Name of the resource with the format:
            -   * projects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment}
            +   * Required. The resource name of the
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig] to delete,
            +   * such as
            +   * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
                * 
            * * @@ -171,12 +174,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj - instanceof com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest)) { return super.equals(obj); } - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest other = - (com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest) obj; + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest other = + (com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest) obj; if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -197,80 +199,74 @@ public int hashCode() { return hash; } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest 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.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest parseFrom( + 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.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -285,7 +281,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest prototype) { + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -304,33 +300,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
            -   * Message for getting a GoldengateDeploymentEnvironment.
            +   * Request message for
            +   * [CmekConfigService.DeleteCmekConfig][google.cloud.discoveryengine.v1beta.CmekConfigService.DeleteCmekConfig]
            +   * method.
                * 
            * - * Protobuf type {@code google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest) - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest) + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironmentProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentEnvironmentRequest_descriptor; + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteCmekConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironmentProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentEnvironmentRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteCmekConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest.class, - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest.Builder - .class); + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest.Builder.class); } - // Construct using - // com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest.newBuilder() + // Construct using com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -347,21 +343,19 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironmentProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentEnvironmentRequest_descriptor; + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteCmekConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest + public com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest getDefaultInstanceForType() { - return com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest build() { - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest result = - buildPartial(); + public com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest build() { + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -369,10 +363,9 @@ public com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequ } @java.lang.Override - public com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest - buildPartial() { - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest result = - new com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest(this); + public com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest result = + new com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -381,7 +374,7 @@ public com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequ } private void buildPartial0( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest result) { + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -390,10 +383,8 @@ private void buildPartial0( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest) { - return mergeFrom( - (com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest) other); + if (other instanceof com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -401,10 +392,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest other) { + com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest other) { if (other - == com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest - .getDefaultInstance()) return this; + == com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -467,8 +458,10 @@ public Builder mergeFrom( * * *
            -     * Required. Name of the resource with the format:
            -     * projects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment}
            +     * Required. The resource name of the
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig] to delete,
            +     * such as
            +     * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
                  * 
            * * @@ -493,8 +486,10 @@ public java.lang.String getName() { * * *
            -     * Required. Name of the resource with the format:
            -     * projects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment}
            +     * Required. The resource name of the
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig] to delete,
            +     * such as
            +     * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
                  * 
            * * @@ -519,8 +514,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Required. Name of the resource with the format:
            -     * projects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment}
            +     * Required. The resource name of the
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig] to delete,
            +     * such as
            +     * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
                  * 
            * * @@ -544,8 +541,10 @@ public Builder setName(java.lang.String value) { * * *
            -     * Required. Name of the resource with the format:
            -     * projects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment}
            +     * Required. The resource name of the
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig] to delete,
            +     * such as
            +     * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
                  * 
            * * @@ -565,8 +564,10 @@ public Builder clearName() { * * *
            -     * Required. Name of the resource with the format:
            -     * projects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment}
            +     * Required. The resource name of the
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig] to delete,
            +     * such as
            +     * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
                  * 
            * * @@ -587,58 +588,55 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest) - private static final com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest) + private static final com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest(); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest + public static com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGoldengateDeploymentEnvironmentRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteCmekConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest + public com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteCmekConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteCmekConfigRequestOrBuilder.java new file mode 100644 index 000000000000..b6e00960ced1 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteCmekConfigRequestOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/cmek_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface DeleteCmekConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The resource name of the
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig] to delete,
            +   * such as
            +   * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The resource name of the
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig] to delete,
            +   * such as
            +   * `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`.
            +   * 
            + * + * + * 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-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteIdentityMappingStoreMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteIdentityMappingStoreMetadata.java new file mode 100644 index 000000000000..7ece36f0a86d --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteIdentityMappingStoreMetadata.java @@ -0,0 +1,1014 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Metadata related to the progress of the
            + * [IdentityMappingStoreService.DeleteIdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.DeleteIdentityMappingStore]
            + * operation. This will be returned by the google.longrunning.Operation.metadata
            + * field.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata} + */ +@com.google.protobuf.Generated +public final class DeleteIdentityMappingStoreMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata) + DeleteIdentityMappingStoreMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteIdentityMappingStoreMetadata"); + } + + // Use DeleteIdentityMappingStoreMetadata.newBuilder() to construct. + private DeleteIdentityMappingStoreMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteIdentityMappingStoreMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata.class, + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata.Builder + .class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + @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 = 2; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + @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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata other = + (com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata) obj; + + 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(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata + 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.v1beta.DeleteIdentityMappingStoreMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata + parseFrom( + 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.v1beta.DeleteIdentityMappingStoreMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Metadata related to the progress of the
            +   * [IdentityMappingStoreService.DeleteIdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.DeleteIdentityMappingStore]
            +   * operation. This will be returned by the google.longrunning.Operation.metadata
            +   * field.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata) + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata.class, + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata build() { + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata result = + new com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata + .getDefaultInstance()) return this; + 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: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().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.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @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(); + } + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @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(); + } + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata) + private static final com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteIdentityMappingStoreMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.DeleteIdentityMappingStoreMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteIdentityMappingStoreMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteIdentityMappingStoreMetadataOrBuilder.java new file mode 100644 index 000000000000..8c1b496f06f9 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteIdentityMappingStoreMetadataOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface DeleteIdentityMappingStoreMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentVersionRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteIdentityMappingStoreRequest.java similarity index 66% rename from java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentVersionRequest.java rename to java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteIdentityMappingStoreRequest.java index 5208c44c40fb..3c83ce26df68 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentVersionRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteIdentityMappingStoreRequest.java @@ -15,26 +15,26 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/oracledatabase/v1/goldengate_deployment_version.proto +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto // Protobuf Java Version: 4.33.2 -package com.google.cloud.oracledatabase.v1; +package com.google.cloud.discoveryengine.v1beta; /** * * *
            - * Message for getting a GoldengateDeploymentVersion.
            + * Request message for
            + * [IdentityMappingStoreService.DeleteIdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.DeleteIdentityMappingStore]
              * 
            * - * Protobuf type {@code google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest} */ @com.google.protobuf.Generated -public final class GetGoldengateDeploymentVersionRequest - extends com.google.protobuf.GeneratedMessage +public final class DeleteIdentityMappingStoreRequest extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest) - GetGoldengateDeploymentVersionRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest) + DeleteIdentityMappingStoreRequestOrBuilder { private static final long serialVersionUID = 0L; static { @@ -44,32 +44,33 @@ public final class GetGoldengateDeploymentVersionRequest /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "GetGoldengateDeploymentVersionRequest"); + "DeleteIdentityMappingStoreRequest"); } - // Use GetGoldengateDeploymentVersionRequest.newBuilder() to construct. - private GetGoldengateDeploymentVersionRequest( + // Use DeleteIdentityMappingStoreRequest.newBuilder() to construct. + private DeleteIdentityMappingStoreRequest( com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private GetGoldengateDeploymentVersionRequest() { + private DeleteIdentityMappingStoreRequest() { name_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersionProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentVersionRequest_descriptor; + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersionProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentVersionRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest.class, - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest.class, + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest.Builder + .class); } public static final int NAME_FIELD_NUMBER = 1; @@ -81,9 +82,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Required. The name of the GoldengateDeploymentVersion to retrieve.
            +   * Required. The name of the Identity Mapping Store to delete.
                * Format:
            -   * projects/{project}/locations/{location}/goldengateDeploymentVersions/{goldengate_deployment_version}
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
                * 
            * * @@ -109,9 +110,9 @@ public java.lang.String getName() { * * *
            -   * Required. The name of the GoldengateDeploymentVersion to retrieve.
            +   * Required. The name of the Identity Mapping Store to delete.
                * Format:
            -   * projects/{project}/locations/{location}/goldengateDeploymentVersions/{goldengate_deployment_version}
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
                * 
            * * @@ -173,11 +174,11 @@ public boolean equals(final java.lang.Object obj) { return true; } if (!(obj - instanceof com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest)) { + instanceof com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest)) { return super.equals(obj); } - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest other = - (com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest) obj; + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest other = + (com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest) obj; if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -198,59 +199,59 @@ public int hashCode() { return hash; } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest 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.oracledatabase.v1.GetGoldengateDeploymentVersionRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest parseFrom( 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.oracledatabase.v1.GetGoldengateDeploymentVersionRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -258,12 +259,12 @@ public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionR PARSER, input, extensionRegistry); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -281,7 +282,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest prototype) { + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -300,33 +301,34 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
            -   * Message for getting a GoldengateDeploymentVersion.
            +   * Request message for
            +   * [IdentityMappingStoreService.DeleteIdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.DeleteIdentityMappingStore]
                * 
            * - * Protobuf type {@code google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest) - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest) + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersionProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentVersionRequest_descriptor; + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersionProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentVersionRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest.class, - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest.Builder + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest.class, + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest.Builder .class); } // Construct using - // com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest.newBuilder() + // com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -343,20 +345,20 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersionProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentVersionRequest_descriptor; + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreRequest_descriptor; } @java.lang.Override - public com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest + public com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest getDefaultInstanceForType() { - return com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest + return com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest build() { - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest result = + public com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest build() { + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -365,9 +367,10 @@ public com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest } @java.lang.Override - public com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest buildPartial() { - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest result = - new com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest(this); + public com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest + buildPartial() { + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest result = + new com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -376,7 +379,7 @@ public com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest } private void buildPartial0( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest result) { + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -386,9 +389,9 @@ private void buildPartial0( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other - instanceof com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest) { + instanceof com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest) { return mergeFrom( - (com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest) other); + (com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest) other); } else { super.mergeFrom(other); return this; @@ -396,9 +399,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest other) { + com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest other) { if (other - == com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest + == com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; @@ -462,9 +465,9 @@ public Builder mergeFrom( * * *
            -     * Required. The name of the GoldengateDeploymentVersion to retrieve.
            +     * Required. The name of the Identity Mapping Store to delete.
                  * Format:
            -     * projects/{project}/locations/{location}/goldengateDeploymentVersions/{goldengate_deployment_version}
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
                  * 
            * * @@ -489,9 +492,9 @@ public java.lang.String getName() { * * *
            -     * Required. The name of the GoldengateDeploymentVersion to retrieve.
            +     * Required. The name of the Identity Mapping Store to delete.
                  * Format:
            -     * projects/{project}/locations/{location}/goldengateDeploymentVersions/{goldengate_deployment_version}
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
                  * 
            * * @@ -516,9 +519,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Required. The name of the GoldengateDeploymentVersion to retrieve.
            +     * Required. The name of the Identity Mapping Store to delete.
                  * Format:
            -     * projects/{project}/locations/{location}/goldengateDeploymentVersions/{goldengate_deployment_version}
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
                  * 
            * * @@ -542,9 +545,9 @@ public Builder setName(java.lang.String value) { * * *
            -     * Required. The name of the GoldengateDeploymentVersion to retrieve.
            +     * Required. The name of the Identity Mapping Store to delete.
                  * Format:
            -     * projects/{project}/locations/{location}/goldengateDeploymentVersions/{goldengate_deployment_version}
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
                  * 
            * * @@ -564,9 +567,9 @@ public Builder clearName() { * * *
            -     * Required. The name of the GoldengateDeploymentVersion to retrieve.
            +     * Required. The name of the Identity Mapping Store to delete.
                  * Format:
            -     * projects/{project}/locations/{location}/goldengateDeploymentVersions/{goldengate_deployment_version}
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
                  * 
            * * @@ -587,27 +590,27 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest) - private static final com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest) + private static final com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest(); + new com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest(); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest + public static com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest 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 GetGoldengateDeploymentVersionRequest parsePartialFrom( + public DeleteIdentityMappingStoreRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -626,17 +629,17 @@ public GetGoldengateDeploymentVersionRequest 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.oracledatabase.v1.GetGoldengateDeploymentVersionRequest + public com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentTypeRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteIdentityMappingStoreRequestOrBuilder.java similarity index 67% rename from java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentTypeRequestOrBuilder.java rename to java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteIdentityMappingStoreRequestOrBuilder.java index 38802753b66e..280f91ae6b91 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentTypeRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteIdentityMappingStoreRequestOrBuilder.java @@ -15,24 +15,24 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/oracledatabase/v1/goldengate_deployment_type.proto +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto // Protobuf Java Version: 4.33.2 -package com.google.cloud.oracledatabase.v1; +package com.google.cloud.discoveryengine.v1beta; @com.google.protobuf.Generated -public interface GetGoldengateDeploymentTypeRequestOrBuilder +public interface DeleteIdentityMappingStoreRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest) com.google.protobuf.MessageOrBuilder { /** * * *
            -   * Required. The name of the GoldengateDeploymentType to retrieve.
            +   * Required. The name of the Identity Mapping Store to delete.
                * Format:
            -   * projects/{project}/locations/{location}/goldengateDeploymentTypes/{goldengate_deployment_type}
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
                * 
            * * @@ -47,9 +47,9 @@ public interface GetGoldengateDeploymentTypeRequestOrBuilder * * *
            -   * Required. The name of the GoldengateDeploymentType to retrieve.
            +   * Required. The name of the Identity Mapping Store to delete.
                * Format:
            -   * projects/{project}/locations/{location}/goldengateDeploymentTypes/{goldengate_deployment_type}
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
                * 
            * * diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateConnectionTypeRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteServingConfigRequest.java similarity index 67% rename from java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateConnectionTypeRequest.java rename to java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteServingConfigRequest.java index 784c019a90c3..f846af5a7b5e 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateConnectionTypeRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteServingConfigRequest.java @@ -15,25 +15,25 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/oracledatabase/v1/goldengate_connection_type.proto +// source: google/cloud/discoveryengine/v1beta/serving_config_service.proto // Protobuf Java Version: 4.33.2 -package com.google.cloud.oracledatabase.v1; +package com.google.cloud.discoveryengine.v1beta; /** * * *
            - * Message for getting a GoldengateConnectionType.
            + * Request for DeleteServingConfig method.
              * 
            * - * Protobuf type {@code google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest} */ @com.google.protobuf.Generated -public final class GetGoldengateConnectionTypeRequest extends com.google.protobuf.GeneratedMessage +public final class DeleteServingConfigRequest extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest) - GetGoldengateConnectionTypeRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest) + DeleteServingConfigRequestOrBuilder { private static final long serialVersionUID = 0L; static { @@ -43,32 +43,31 @@ public final class GetGoldengateConnectionTypeRequest extends com.google.protobu /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "GetGoldengateConnectionTypeRequest"); + "DeleteServingConfigRequest"); } - // Use GetGoldengateConnectionTypeRequest.newBuilder() to construct. - private GetGoldengateConnectionTypeRequest( - com.google.protobuf.GeneratedMessage.Builder builder) { + // Use DeleteServingConfigRequest.newBuilder() to construct. + private DeleteServingConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private GetGoldengateConnectionTypeRequest() { + private DeleteServingConfigRequest() { name_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oracledatabase.v1.GoldengateConnectionTypeProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateConnectionTypeRequest_descriptor; + return com.google.cloud.discoveryengine.v1beta.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteServingConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oracledatabase.v1.GoldengateConnectionTypeProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateConnectionTypeRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteServingConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest.class, - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -80,8 +79,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Required. Name of the resource in the format:
            -   * projects/{project}/locations/{location}/goldengateConnectionTypes/{goldengate_connection_type}
            +   * Required. The resource name of the ServingConfig to delete. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                * 
            * * @@ -107,8 +106,8 @@ public java.lang.String getName() { * * *
            -   * Required. Name of the resource in the format:
            -   * projects/{project}/locations/{location}/goldengateConnectionTypes/{goldengate_connection_type}
            +   * Required. The resource name of the ServingConfig to delete. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                * 
            * * @@ -169,11 +168,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest)) { return super.equals(obj); } - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest other = - (com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest) obj; + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest other = + (com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest) obj; if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -194,59 +193,59 @@ public int hashCode() { return hash; } - public static com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest 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.oracledatabase.v1.GetGoldengateConnectionTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest parseFrom( 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.oracledatabase.v1.GetGoldengateConnectionTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest + public static com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest + public static com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -254,12 +253,12 @@ public static com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequ PARSER, input, extensionRegistry); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -277,7 +276,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest prototype) { + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -296,32 +295,32 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
            -   * Message for getting a GoldengateConnectionType.
            +   * Request for DeleteServingConfig method.
                * 
            * - * Protobuf type {@code google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest) - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest) + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oracledatabase.v1.GoldengateConnectionTypeProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateConnectionTypeRequest_descriptor; + return com.google.cloud.discoveryengine.v1beta.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteServingConfigRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oracledatabase.v1.GoldengateConnectionTypeProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateConnectionTypeRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteServingConfigRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest.class, - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest.Builder.class); } // Construct using - // com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest.newBuilder() + // com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -338,20 +337,20 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.oracledatabase.v1.GoldengateConnectionTypeProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateConnectionTypeRequest_descriptor; + return com.google.cloud.discoveryengine.v1beta.ServingConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DeleteServingConfigRequest_descriptor; } @java.lang.Override - public com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest + public com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest getDefaultInstanceForType() { - return com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest + return com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest build() { - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest result = buildPartial(); + public com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest build() { + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -359,9 +358,9 @@ public com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest bui } @java.lang.Override - public com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest buildPartial() { - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest result = - new com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest(this); + public com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest result = + new com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -370,7 +369,7 @@ public com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest bui } private void buildPartial0( - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest result) { + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -379,9 +378,9 @@ private void buildPartial0( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest) { return mergeFrom( - (com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest) other); + (com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest) other); } else { super.mergeFrom(other); return this; @@ -389,9 +388,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest other) { + com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest other) { if (other - == com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest + == com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; @@ -455,8 +454,8 @@ public Builder mergeFrom( * * *
            -     * Required. Name of the resource in the format:
            -     * projects/{project}/locations/{location}/goldengateConnectionTypes/{goldengate_connection_type}
            +     * Required. The resource name of the ServingConfig to delete. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                  * 
            * * @@ -481,8 +480,8 @@ public java.lang.String getName() { * * *
            -     * Required. Name of the resource in the format:
            -     * projects/{project}/locations/{location}/goldengateConnectionTypes/{goldengate_connection_type}
            +     * Required. The resource name of the ServingConfig to delete. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                  * 
            * * @@ -507,8 +506,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Required. Name of the resource in the format:
            -     * projects/{project}/locations/{location}/goldengateConnectionTypes/{goldengate_connection_type}
            +     * Required. The resource name of the ServingConfig to delete. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                  * 
            * * @@ -532,8 +531,8 @@ public Builder setName(java.lang.String value) { * * *
            -     * Required. Name of the resource in the format:
            -     * projects/{project}/locations/{location}/goldengateConnectionTypes/{goldengate_connection_type}
            +     * Required. The resource name of the ServingConfig to delete. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                  * 
            * * @@ -553,8 +552,8 @@ public Builder clearName() { * * *
            -     * Required. Name of the resource in the format:
            -     * projects/{project}/locations/{location}/goldengateConnectionTypes/{goldengate_connection_type}
            +     * Required. The resource name of the ServingConfig to delete. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
                  * 
            * * @@ -575,26 +574,26 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest) - private static final com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest) + private static final com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest(); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest + public static com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest 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 GetGoldengateConnectionTypeRequest parsePartialFrom( + public DeleteServingConfigRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -613,17 +612,17 @@ public GetGoldengateConnectionTypeRequest 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.oracledatabase.v1.GetGoldengateConnectionTypeRequest + public com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteServingConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteServingConfigRequestOrBuilder.java new file mode 100644 index 000000000000..b3ead06c9850 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DeleteServingConfigRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/serving_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface DeleteServingConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The resource name of the ServingConfig to delete. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The resource name of the ServingConfig to delete. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DistributeLicenseConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DistributeLicenseConfigRequest.java new file mode 100644 index 000000000000..e400764cc6fb --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DistributeLicenseConfigRequest.java @@ -0,0 +1,1247 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for
            + * [LicenseConfigService.DistributeLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.DistributeLicenseConfig]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest} + */ +@com.google.protobuf.Generated +public final class DistributeLicenseConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest) + DistributeLicenseConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DistributeLicenseConfigRequest"); + } + + // Use DistributeLicenseConfigRequest.newBuilder() to construct. + private DistributeLicenseConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DistributeLicenseConfigRequest() { + billingAccountLicenseConfig_ = ""; + location_ = ""; + licenseConfigId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest.Builder.class); + } + + public static final int BILLING_ACCOUNT_LICENSE_CONFIG_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object billingAccountLicenseConfig_ = ""; + + /** + * + * + *
            +   * Required. Full resource name of [BillingAccountLicenseConfig][].
            +   *
            +   * Format:
            +   * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
            +   * 
            + * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The billingAccountLicenseConfig. + */ + @java.lang.Override + public java.lang.String getBillingAccountLicenseConfig() { + java.lang.Object ref = billingAccountLicenseConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billingAccountLicenseConfig_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Full resource name of [BillingAccountLicenseConfig][].
            +   *
            +   * Format:
            +   * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
            +   * 
            + * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for billingAccountLicenseConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBillingAccountLicenseConfigBytes() { + java.lang.Object ref = billingAccountLicenseConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + billingAccountLicenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_NUMBER_FIELD_NUMBER = 2; + private long projectNumber_ = 0L; + + /** + * + * + *
            +   * Required. The target GCP project number to distribute the license config
            +   * to.
            +   * 
            + * + * int64 project_number = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectNumber. + */ + @java.lang.Override + public long getProjectNumber() { + return projectNumber_; + } + + public static final int LOCATION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
            +   * Required. The target GCP project region to distribute the license config
            +   * to.
            +   * 
            + * + * string location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. The target GCP project region to distribute the license config
            +   * to.
            +   * 
            + * + * string location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 LICENSE_COUNT_FIELD_NUMBER = 4; + private long licenseCount_ = 0L; + + /** + * + * + *
            +   * Required. The number of licenses to distribute.
            +   * 
            + * + * int64 license_count = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The licenseCount. + */ + @java.lang.Override + public long getLicenseCount() { + return licenseCount_; + } + + public static final int LICENSE_CONFIG_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object licenseConfigId_ = ""; + + /** + * + * + *
            +   * Optional. Distribute seats to this license config instead of creating a new
            +   * one. If not specified, a new license config will be created from the
            +   * billing account license config.
            +   * 
            + * + * string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The licenseConfigId. + */ + @java.lang.Override + public java.lang.String getLicenseConfigId() { + java.lang.Object ref = licenseConfigId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseConfigId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Distribute seats to this license config instead of creating a new
            +   * one. If not specified, a new license config will be created from the
            +   * billing account license config.
            +   * 
            + * + * string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for licenseConfigId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLicenseConfigIdBytes() { + java.lang.Object ref = licenseConfigId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(billingAccountLicenseConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, billingAccountLicenseConfig_); + } + if (projectNumber_ != 0L) { + output.writeInt64(2, projectNumber_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, location_); + } + if (licenseCount_ != 0L) { + output.writeInt64(4, licenseCount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseConfigId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, licenseConfigId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(billingAccountLicenseConfig_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(1, billingAccountLicenseConfig_); + } + if (projectNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, projectNumber_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, location_); + } + if (licenseCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, licenseCount_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseConfigId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, licenseConfigId_); + } + 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.v1beta.DistributeLicenseConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest other = + (com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest) obj; + + if (!getBillingAccountLicenseConfig().equals(other.getBillingAccountLicenseConfig())) + return false; + if (getProjectNumber() != other.getProjectNumber()) return false; + if (!getLocation().equals(other.getLocation())) return false; + if (getLicenseCount() != other.getLicenseCount()) return false; + if (!getLicenseConfigId().equals(other.getLicenseConfigId())) 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) + BILLING_ACCOUNT_LICENSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBillingAccountLicenseConfig().hashCode(); + hash = (37 * hash) + PROJECT_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getProjectNumber()); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + LICENSE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLicenseCount()); + hash = (37 * hash) + LICENSE_CONFIG_ID_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfigId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest 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.v1beta.DistributeLicenseConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest parseFrom( + 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.v1beta.DistributeLicenseConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [LicenseConfigService.DistributeLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.DistributeLicenseConfig]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest) + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + billingAccountLicenseConfig_ = ""; + projectNumber_ = 0L; + location_ = ""; + licenseCount_ = 0L; + licenseConfigId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest build() { + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest result = + new com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.billingAccountLicenseConfig_ = billingAccountLicenseConfig_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.projectNumber_ = projectNumber_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.licenseCount_ = licenseCount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.licenseConfigId_ = licenseConfigId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest + .getDefaultInstance()) return this; + if (!other.getBillingAccountLicenseConfig().isEmpty()) { + billingAccountLicenseConfig_ = other.billingAccountLicenseConfig_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getProjectNumber() != 0L) { + setProjectNumber(other.getProjectNumber()); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getLicenseCount() != 0L) { + setLicenseCount(other.getLicenseCount()); + } + if (!other.getLicenseConfigId().isEmpty()) { + licenseConfigId_ = other.licenseConfigId_; + 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: + { + billingAccountLicenseConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + projectNumber_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + licenseCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + licenseConfigId_ = 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 billingAccountLicenseConfig_ = ""; + + /** + * + * + *
            +     * Required. Full resource name of [BillingAccountLicenseConfig][].
            +     *
            +     * Format:
            +     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
            +     * 
            + * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The billingAccountLicenseConfig. + */ + public java.lang.String getBillingAccountLicenseConfig() { + java.lang.Object ref = billingAccountLicenseConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billingAccountLicenseConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Full resource name of [BillingAccountLicenseConfig][].
            +     *
            +     * Format:
            +     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
            +     * 
            + * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for billingAccountLicenseConfig. + */ + public com.google.protobuf.ByteString getBillingAccountLicenseConfigBytes() { + java.lang.Object ref = billingAccountLicenseConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + billingAccountLicenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Full resource name of [BillingAccountLicenseConfig][].
            +     *
            +     * Format:
            +     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
            +     * 
            + * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The billingAccountLicenseConfig to set. + * @return This builder for chaining. + */ + public Builder setBillingAccountLicenseConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + billingAccountLicenseConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Full resource name of [BillingAccountLicenseConfig][].
            +     *
            +     * Format:
            +     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
            +     * 
            + * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearBillingAccountLicenseConfig() { + billingAccountLicenseConfig_ = getDefaultInstance().getBillingAccountLicenseConfig(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Full resource name of [BillingAccountLicenseConfig][].
            +     *
            +     * Format:
            +     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
            +     * 
            + * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for billingAccountLicenseConfig to set. + * @return This builder for chaining. + */ + public Builder setBillingAccountLicenseConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + billingAccountLicenseConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long projectNumber_; + + /** + * + * + *
            +     * Required. The target GCP project number to distribute the license config
            +     * to.
            +     * 
            + * + * int64 project_number = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectNumber. + */ + @java.lang.Override + public long getProjectNumber() { + return projectNumber_; + } + + /** + * + * + *
            +     * Required. The target GCP project number to distribute the license config
            +     * to.
            +     * 
            + * + * int64 project_number = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The projectNumber to set. + * @return This builder for chaining. + */ + public Builder setProjectNumber(long value) { + + projectNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The target GCP project number to distribute the license config
            +     * to.
            +     * 
            + * + * int64 project_number = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProjectNumber() { + bitField0_ = (bitField0_ & ~0x00000002); + projectNumber_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + + /** + * + * + *
            +     * Required. The target GCP project region to distribute the license config
            +     * to.
            +     * 
            + * + * string location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. The target GCP project region to distribute the license config
            +     * to.
            +     * 
            + * + * string location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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. The target GCP project region to distribute the license config
            +     * to.
            +     * 
            + * + * string location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The target GCP project region to distribute the license config
            +     * to.
            +     * 
            + * + * string location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The target GCP project region to distribute the license config
            +     * to.
            +     * 
            + * + * string location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private long licenseCount_; + + /** + * + * + *
            +     * Required. The number of licenses to distribute.
            +     * 
            + * + * int64 license_count = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The licenseCount. + */ + @java.lang.Override + public long getLicenseCount() { + return licenseCount_; + } + + /** + * + * + *
            +     * Required. The number of licenses to distribute.
            +     * 
            + * + * int64 license_count = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The licenseCount to set. + * @return This builder for chaining. + */ + public Builder setLicenseCount(long value) { + + licenseCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The number of licenses to distribute.
            +     * 
            + * + * int64 license_count = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLicenseCount() { + bitField0_ = (bitField0_ & ~0x00000008); + licenseCount_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object licenseConfigId_ = ""; + + /** + * + * + *
            +     * Optional. Distribute seats to this license config instead of creating a new
            +     * one. If not specified, a new license config will be created from the
            +     * billing account license config.
            +     * 
            + * + * string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The licenseConfigId. + */ + public java.lang.String getLicenseConfigId() { + java.lang.Object ref = licenseConfigId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseConfigId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Distribute seats to this license config instead of creating a new
            +     * one. If not specified, a new license config will be created from the
            +     * billing account license config.
            +     * 
            + * + * string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for licenseConfigId. + */ + public com.google.protobuf.ByteString getLicenseConfigIdBytes() { + java.lang.Object ref = licenseConfigId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseConfigId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Distribute seats to this license config instead of creating a new
            +     * one. If not specified, a new license config will be created from the
            +     * billing account license config.
            +     * 
            + * + * string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The licenseConfigId to set. + * @return This builder for chaining. + */ + public Builder setLicenseConfigId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + licenseConfigId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Distribute seats to this license config instead of creating a new
            +     * one. If not specified, a new license config will be created from the
            +     * billing account license config.
            +     * 
            + * + * string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLicenseConfigId() { + licenseConfigId_ = getDefaultInstance().getLicenseConfigId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Distribute seats to this license config instead of creating a new
            +     * one. If not specified, a new license config will be created from the
            +     * billing account license config.
            +     * 
            + * + * string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for licenseConfigId to set. + * @return This builder for chaining. + */ + public Builder setLicenseConfigIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + licenseConfigId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest) + private static final com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributeLicenseConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.DistributeLicenseConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DistributeLicenseConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DistributeLicenseConfigRequestOrBuilder.java new file mode 100644 index 000000000000..169d36092196 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DistributeLicenseConfigRequestOrBuilder.java @@ -0,0 +1,149 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface DistributeLicenseConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Full resource name of [BillingAccountLicenseConfig][].
            +   *
            +   * Format:
            +   * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
            +   * 
            + * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The billingAccountLicenseConfig. + */ + java.lang.String getBillingAccountLicenseConfig(); + + /** + * + * + *
            +   * Required. Full resource name of [BillingAccountLicenseConfig][].
            +   *
            +   * Format:
            +   * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
            +   * 
            + * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for billingAccountLicenseConfig. + */ + com.google.protobuf.ByteString getBillingAccountLicenseConfigBytes(); + + /** + * + * + *
            +   * Required. The target GCP project number to distribute the license config
            +   * to.
            +   * 
            + * + * int64 project_number = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectNumber. + */ + long getProjectNumber(); + + /** + * + * + *
            +   * Required. The target GCP project region to distribute the license config
            +   * to.
            +   * 
            + * + * string location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
            +   * Required. The target GCP project region to distribute the license config
            +   * to.
            +   * 
            + * + * string location = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
            +   * Required. The number of licenses to distribute.
            +   * 
            + * + * int64 license_count = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The licenseCount. + */ + long getLicenseCount(); + + /** + * + * + *
            +   * Optional. Distribute seats to this license config instead of creating a new
            +   * one. If not specified, a new license config will be created from the
            +   * billing account license config.
            +   * 
            + * + * string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The licenseConfigId. + */ + java.lang.String getLicenseConfigId(); + + /** + * + * + *
            +   * Optional. Distribute seats to this license config instead of creating a new
            +   * one. If not specified, a new license config will be created from the
            +   * billing account license config.
            +   * 
            + * + * string license_config_id = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for licenseConfigId. + */ + com.google.protobuf.ByteString getLicenseConfigIdBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DistributeLicenseConfigResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DistributeLicenseConfigResponse.java new file mode 100644 index 000000000000..98be4a30068a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DistributeLicenseConfigResponse.java @@ -0,0 +1,723 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Response message for
            + * [LicenseConfigService.DistributeLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.DistributeLicenseConfig]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse} + */ +@com.google.protobuf.Generated +public final class DistributeLicenseConfigResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse) + DistributeLicenseConfigResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DistributeLicenseConfigResponse"); + } + + // Use DistributeLicenseConfigResponse.newBuilder() to construct. + private DistributeLicenseConfigResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DistributeLicenseConfigResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse.class, + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse.Builder.class); + } + + private int bitField0_; + public static final int LICENSE_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.LicenseConfig licenseConfig_; + + /** + * + * + *
            +   * The updated or created LicenseConfig.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + * + * @return Whether the licenseConfig field is set. + */ + @java.lang.Override + public boolean hasLicenseConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * The updated or created LicenseConfig.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + * + * @return The licenseConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfig getLicenseConfig() { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + + /** + * + * + *
            +   * The updated or created LicenseConfig.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder + getLicenseConfigOrBuilder() { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + + 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, getLicenseConfig()); + } + 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, getLicenseConfig()); + } + 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.v1beta.DistributeLicenseConfigResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse other = + (com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse) obj; + + if (hasLicenseConfig() != other.hasLicenseConfig()) return false; + if (hasLicenseConfig()) { + if (!getLicenseConfig().equals(other.getLicenseConfig())) 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 (hasLicenseConfig()) { + hash = (37 * hash) + LICENSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse 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.v1beta.DistributeLicenseConfigResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse parseFrom( + 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.v1beta.DistributeLicenseConfigResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response message for
            +   * [LicenseConfigService.DistributeLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.DistributeLicenseConfig]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse) + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse.class, + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetLicenseConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + licenseConfig_ = null; + if (licenseConfigBuilder_ != null) { + licenseConfigBuilder_.dispose(); + licenseConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse build() { + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse buildPartial() { + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse result = + new com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.licenseConfig_ = + licenseConfigBuilder_ == null ? licenseConfig_ : licenseConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse + .getDefaultInstance()) return this; + if (other.hasLicenseConfig()) { + mergeLicenseConfig(other.getLicenseConfig()); + } + 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( + internalGetLicenseConfigFieldBuilder().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.v1beta.LicenseConfig licenseConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LicenseConfig, + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder> + licenseConfigBuilder_; + + /** + * + * + *
            +     * The updated or created LicenseConfig.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + * + * @return Whether the licenseConfig field is set. + */ + public boolean hasLicenseConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * The updated or created LicenseConfig.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + * + * @return The licenseConfig. + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfig getLicenseConfig() { + if (licenseConfigBuilder_ == null) { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } else { + return licenseConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * The updated or created LicenseConfig.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + */ + public Builder setLicenseConfig(com.google.cloud.discoveryengine.v1beta.LicenseConfig value) { + if (licenseConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + licenseConfig_ = value; + } else { + licenseConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The updated or created LicenseConfig.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + */ + public Builder setLicenseConfig( + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder builderForValue) { + if (licenseConfigBuilder_ == null) { + licenseConfig_ = builderForValue.build(); + } else { + licenseConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The updated or created LicenseConfig.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + */ + public Builder mergeLicenseConfig(com.google.cloud.discoveryengine.v1beta.LicenseConfig value) { + if (licenseConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && licenseConfig_ != null + && licenseConfig_ + != com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance()) { + getLicenseConfigBuilder().mergeFrom(value); + } else { + licenseConfig_ = value; + } + } else { + licenseConfigBuilder_.mergeFrom(value); + } + if (licenseConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * The updated or created LicenseConfig.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + */ + public Builder clearLicenseConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + licenseConfig_ = null; + if (licenseConfigBuilder_ != null) { + licenseConfigBuilder_.dispose(); + licenseConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * The updated or created LicenseConfig.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder getLicenseConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetLicenseConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * The updated or created LicenseConfig.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder + getLicenseConfigOrBuilder() { + if (licenseConfigBuilder_ != null) { + return licenseConfigBuilder_.getMessageOrBuilder(); + } else { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + } + + /** + * + * + *
            +     * The updated or created LicenseConfig.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LicenseConfig, + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder> + internalGetLicenseConfigFieldBuilder() { + if (licenseConfigBuilder_ == null) { + licenseConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LicenseConfig, + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder>( + getLicenseConfig(), getParentForChildren(), isClean()); + licenseConfig_ = null; + } + return licenseConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse) + private static final com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DistributeLicenseConfigResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.DistributeLicenseConfigResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DistributeLicenseConfigResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DistributeLicenseConfigResponseOrBuilder.java new file mode 100644 index 000000000000..6e6d3dc06133 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DistributeLicenseConfigResponseOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface DistributeLicenseConfigResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The updated or created LicenseConfig.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + * + * @return Whether the licenseConfig field is set. + */ + boolean hasLicenseConfig(); + + /** + * + * + *
            +   * The updated or created LicenseConfig.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + * + * @return The licenseConfig. + */ + com.google.cloud.discoveryengine.v1beta.LicenseConfig getLicenseConfig(); + + /** + * + * + *
            +   * The updated or created LicenseConfig.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + */ + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder getLicenseConfigOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Document.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Document.java index c7976d7c43f4..b333e4000b70 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Document.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Document.java @@ -172,9 +172,23 @@ public interface ContentOrBuilder * * * `application/pdf` (PDF, only native PDFs are supported for now) * * `text/html` (HTML) + * * `text/plain` (TXT) + * * `application/xml` or `text/xml` (XML) + * * `application/json` (JSON) * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) - * * `text/plain` (TXT) + * * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` + * (XLSX) + * * `application/vnd.ms-excel.sheet.macroenabled.12` (XLSM) + * + * The following types are supported only if layout parser is enabled in the + * data store: + * + * * `image/bmp` (BMP) + * * `image/gif` (GIF) + * * `image/jpeg` (JPEG) + * * `image/png` (PNG) + * * `image/tiff` (TIFF) * * See https://www.iana.org/assignments/media-types/media-types.xhtml. *
            @@ -193,9 +207,23 @@ public interface ContentOrBuilder * * * `application/pdf` (PDF, only native PDFs are supported for now) * * `text/html` (HTML) + * * `text/plain` (TXT) + * * `application/xml` or `text/xml` (XML) + * * `application/json` (JSON) * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) - * * `text/plain` (TXT) + * * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` + * (XLSX) + * * `application/vnd.ms-excel.sheet.macroenabled.12` (XLSM) + * + * The following types are supported only if layout parser is enabled in the + * data store: + * + * * `image/bmp` (BMP) + * * `image/gif` (GIF) + * * `image/jpeg` (JPEG) + * * `image/png` (PNG) + * * `image/tiff` (TIFF) * * See https://www.iana.org/assignments/media-types/media-types.xhtml. * @@ -451,9 +479,23 @@ public com.google.protobuf.ByteString getUriBytes() { * * * `application/pdf` (PDF, only native PDFs are supported for now) * * `text/html` (HTML) + * * `text/plain` (TXT) + * * `application/xml` or `text/xml` (XML) + * * `application/json` (JSON) * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) - * * `text/plain` (TXT) + * * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` + * (XLSX) + * * `application/vnd.ms-excel.sheet.macroenabled.12` (XLSM) + * + * The following types are supported only if layout parser is enabled in the + * data store: + * + * * `image/bmp` (BMP) + * * `image/gif` (GIF) + * * `image/jpeg` (JPEG) + * * `image/png` (PNG) + * * `image/tiff` (TIFF) * * See https://www.iana.org/assignments/media-types/media-types.xhtml. * @@ -483,9 +525,23 @@ public java.lang.String getMimeType() { * * * `application/pdf` (PDF, only native PDFs are supported for now) * * `text/html` (HTML) + * * `text/plain` (TXT) + * * `application/xml` or `text/xml` (XML) + * * `application/json` (JSON) * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) - * * `text/plain` (TXT) + * * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` + * (XLSX) + * * `application/vnd.ms-excel.sheet.macroenabled.12` (XLSM) + * + * The following types are supported only if layout parser is enabled in the + * data store: + * + * * `image/bmp` (BMP) + * * `image/gif` (GIF) + * * `image/jpeg` (JPEG) + * * `image/png` (PNG) + * * `image/tiff` (TIFF) * * See https://www.iana.org/assignments/media-types/media-types.xhtml. * @@ -1173,9 +1229,23 @@ public Builder setUriBytes(com.google.protobuf.ByteString value) { * * * `application/pdf` (PDF, only native PDFs are supported for now) * * `text/html` (HTML) + * * `text/plain` (TXT) + * * `application/xml` or `text/xml` (XML) + * * `application/json` (JSON) * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) - * * `text/plain` (TXT) + * * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` + * (XLSX) + * * `application/vnd.ms-excel.sheet.macroenabled.12` (XLSM) + * + * The following types are supported only if layout parser is enabled in the + * data store: + * + * * `image/bmp` (BMP) + * * `image/gif` (GIF) + * * `image/jpeg` (JPEG) + * * `image/png` (PNG) + * * `image/tiff` (TIFF) * * See https://www.iana.org/assignments/media-types/media-types.xhtml. * @@ -1204,26 +1274,2379 @@ public java.lang.String getMimeType() { * * * `application/pdf` (PDF, only native PDFs are supported for now) * * `text/html` (HTML) + * * `text/plain` (TXT) + * * `application/xml` or `text/xml` (XML) + * * `application/json` (JSON) + * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) + * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) + * * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` + * (XLSX) + * * `application/vnd.ms-excel.sheet.macroenabled.12` (XLSM) + * + * The following types are supported only if layout parser is enabled in the + * data store: + * + * * `image/bmp` (BMP) + * * `image/gif` (GIF) + * * `image/jpeg` (JPEG) + * * `image/png` (PNG) + * * `image/tiff` (TIFF) + * + * See https://www.iana.org/assignments/media-types/media-types.xhtml. + * + * + * string mime_type = 1; + * + * @return The bytes for mimeType. + */ + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * The MIME type of the content. Supported types:
            +       *
            +       * * `application/pdf` (PDF, only native PDFs are supported for now)
            +       * * `text/html` (HTML)
            +       * * `text/plain` (TXT)
            +       * * `application/xml` or `text/xml` (XML)
            +       * * `application/json` (JSON)
            +       * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
            +       * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
            +       * * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`
            +       * (XLSX)
            +       * * `application/vnd.ms-excel.sheet.macroenabled.12` (XLSM)
            +       *
            +       * The following types are supported only if layout parser is enabled in the
            +       * data store:
            +       *
            +       * * `image/bmp` (BMP)
            +       * * `image/gif` (GIF)
            +       * * `image/jpeg` (JPEG)
            +       * * `image/png` (PNG)
            +       * * `image/tiff` (TIFF)
            +       *
            +       * See https://www.iana.org/assignments/media-types/media-types.xhtml.
            +       * 
            + * + * string mime_type = 1; + * + * @param value The mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mimeType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The MIME type of the content. Supported types:
            +       *
            +       * * `application/pdf` (PDF, only native PDFs are supported for now)
            +       * * `text/html` (HTML)
            +       * * `text/plain` (TXT)
            +       * * `application/xml` or `text/xml` (XML)
            +       * * `application/json` (JSON)
                    * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
                    * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
            +       * * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`
            +       * (XLSX)
            +       * * `application/vnd.ms-excel.sheet.macroenabled.12` (XLSM)
            +       *
            +       * The following types are supported only if layout parser is enabled in the
            +       * data store:
            +       *
            +       * * `image/bmp` (BMP)
            +       * * `image/gif` (GIF)
            +       * * `image/jpeg` (JPEG)
            +       * * `image/png` (PNG)
            +       * * `image/tiff` (TIFF)
            +       *
            +       * See https://www.iana.org/assignments/media-types/media-types.xhtml.
            +       * 
            + * + * string mime_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The MIME type of the content. Supported types:
            +       *
            +       * * `application/pdf` (PDF, only native PDFs are supported for now)
            +       * * `text/html` (HTML)
                    * * `text/plain` (TXT)
            +       * * `application/xml` or `text/xml` (XML)
            +       * * `application/json` (JSON)
            +       * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
            +       * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
            +       * * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`
            +       * (XLSX)
            +       * * `application/vnd.ms-excel.sheet.macroenabled.12` (XLSM)
            +       *
            +       * The following types are supported only if layout parser is enabled in the
            +       * data store:
            +       *
            +       * * `image/bmp` (BMP)
            +       * * `image/gif` (GIF)
            +       * * `image/jpeg` (JPEG)
            +       * * `image/png` (PNG)
            +       * * `image/tiff` (TIFF)
                    *
                    * See https://www.iana.org/assignments/media-types/media-types.xhtml.
                    * 
            * - * string mime_type = 1; + * string mime_type = 1; + * + * @param value The bytes for mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Document.Content) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Document.Content) + private static final com.google.cloud.discoveryengine.v1beta.Document.Content DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Document.Content(); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.Content getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Content parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Document.Content getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AclInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Document.AclInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Readers of the document.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + java.util.List + getReadersList(); + + /** + * + * + *
            +     * Readers of the document.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction getReaders( + int index); + + /** + * + * + *
            +     * Readers of the document.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + int getReadersCount(); + + /** + * + * + *
            +     * Readers of the document.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestrictionOrBuilder> + getReadersOrBuilderList(); + + /** + * + * + *
            +     * Readers of the document.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestrictionOrBuilder + getReadersOrBuilder(int index); + } + + /** + * + * + *
            +   * ACL Information of the Document.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Document.AclInfo} + */ + public static final class AclInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Document.AclInfo) + AclInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AclInfo"); + } + + // Use AclInfo.newBuilder() to construct. + private AclInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclInfo() { + readers_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProto + .internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProto + .internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.class, + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.Builder.class); + } + + public interface AccessRestrictionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * List of principals.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + java.util.List getPrincipalsList(); + + /** + * + * + *
            +       * List of principals.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + com.google.cloud.discoveryengine.v1beta.Principal getPrincipals(int index); + + /** + * + * + *
            +       * List of principals.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + int getPrincipalsCount(); + + /** + * + * + *
            +       * List of principals.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + java.util.List + getPrincipalsOrBuilderList(); + + /** + * + * + *
            +       * List of principals.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + com.google.cloud.discoveryengine.v1beta.PrincipalOrBuilder getPrincipalsOrBuilder(int index); + + /** + * + * + *
            +       * All users within the Identity Provider.
            +       * 
            + * + * bool idp_wide = 2; + * + * @return The idpWide. + */ + boolean getIdpWide(); + } + + /** + * + * + *
            +     * AclRestriction to model complex inheritance restrictions.
            +     *
            +     * Example: Modeling a "Both Permit" inheritance, where to access a
            +     * child document, user needs to have access to parent document.
            +     *
            +     * Document Hierarchy - Space_S --> Page_P.
            +     *
            +     * Readers:
            +     * Space_S: group_1, user_1
            +     * Page_P: group_2, group_3, user_2
            +     *
            +     * Space_S ACL Restriction -
            +     * {
            +     * "acl_info": {
            +     * "readers": [
            +     * {
            +     * "principals": [
            +     * {
            +     * "group_id": "group_1"
            +     * },
            +     * {
            +     * "user_id": "user_1"
            +     * }
            +     * ]
            +     * }
            +     * ]
            +     * }
            +     * }
            +     *
            +     * Page_P ACL Restriction.
            +     * {
            +     * "acl_info": {
            +     * "readers": [
            +     * {
            +     * "principals": [
            +     * {
            +     * "group_id": "group_2"
            +     * },
            +     * {
            +     * "group_id": "group_3"
            +     * },
            +     * {
            +     * "user_id": "user_2"
            +     * }
            +     * ],
            +     * },
            +     * {
            +     * "principals": [
            +     * {
            +     * "group_id": "group_1"
            +     * },
            +     * {
            +     * "user_id": "user_1"
            +     * }
            +     * ],
            +     * }
            +     * ]
            +     * }
            +     * }
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction} + */ + public static final class AccessRestriction extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction) + AccessRestrictionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AccessRestriction"); + } + + // Use AccessRestriction.newBuilder() to construct. + private AccessRestriction(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AccessRestriction() { + principals_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProto + .internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_AccessRestriction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProto + .internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_AccessRestriction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction.class, + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction.Builder + .class); + } + + public static final int PRINCIPALS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List principals_; + + /** + * + * + *
            +       * List of principals.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + @java.lang.Override + public java.util.List getPrincipalsList() { + return principals_; + } + + /** + * + * + *
            +       * List of principals.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + @java.lang.Override + public java.util.List + getPrincipalsOrBuilderList() { + return principals_; + } + + /** + * + * + *
            +       * List of principals.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + @java.lang.Override + public int getPrincipalsCount() { + return principals_.size(); + } + + /** + * + * + *
            +       * List of principals.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Principal getPrincipals(int index) { + return principals_.get(index); + } + + /** + * + * + *
            +       * List of principals.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PrincipalOrBuilder getPrincipalsOrBuilder( + int index) { + return principals_.get(index); + } + + public static final int IDP_WIDE_FIELD_NUMBER = 2; + private boolean idpWide_ = false; + + /** + * + * + *
            +       * All users within the Identity Provider.
            +       * 
            + * + * bool idp_wide = 2; + * + * @return The idpWide. + */ + @java.lang.Override + public boolean getIdpWide() { + return idpWide_; + } + + 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 < principals_.size(); i++) { + output.writeMessage(1, principals_.get(i)); + } + if (idpWide_ != false) { + output.writeBool(2, idpWide_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < principals_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, principals_.get(i)); + } + if (idpWide_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, idpWide_); + } + 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.v1beta.Document.AclInfo.AccessRestriction)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction other = + (com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction) obj; + + if (!getPrincipalsList().equals(other.getPrincipalsList())) return false; + if (getIdpWide() != other.getIdpWide()) 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 (getPrincipalsCount() > 0) { + hash = (37 * hash) + PRINCIPALS_FIELD_NUMBER; + hash = (53 * hash) + getPrincipalsList().hashCode(); + } + hash = (37 * hash) + IDP_WIDE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIdpWide()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction + 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.v1beta.Document.AclInfo.AccessRestriction + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction + parseFrom( + 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.v1beta.Document.AclInfo.AccessRestriction + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * AclRestriction to model complex inheritance restrictions.
            +       *
            +       * Example: Modeling a "Both Permit" inheritance, where to access a
            +       * child document, user needs to have access to parent document.
            +       *
            +       * Document Hierarchy - Space_S --> Page_P.
            +       *
            +       * Readers:
            +       * Space_S: group_1, user_1
            +       * Page_P: group_2, group_3, user_2
            +       *
            +       * Space_S ACL Restriction -
            +       * {
            +       * "acl_info": {
            +       * "readers": [
            +       * {
            +       * "principals": [
            +       * {
            +       * "group_id": "group_1"
            +       * },
            +       * {
            +       * "user_id": "user_1"
            +       * }
            +       * ]
            +       * }
            +       * ]
            +       * }
            +       * }
            +       *
            +       * Page_P ACL Restriction.
            +       * {
            +       * "acl_info": {
            +       * "readers": [
            +       * {
            +       * "principals": [
            +       * {
            +       * "group_id": "group_2"
            +       * },
            +       * {
            +       * "group_id": "group_3"
            +       * },
            +       * {
            +       * "user_id": "user_2"
            +       * }
            +       * ],
            +       * },
            +       * {
            +       * "principals": [
            +       * {
            +       * "group_id": "group_1"
            +       * },
            +       * {
            +       * "user_id": "user_1"
            +       * }
            +       * ],
            +       * }
            +       * ]
            +       * }
            +       * }
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction) + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestrictionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProto + .internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_AccessRestriction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProto + .internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_AccessRestriction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction.class, + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (principalsBuilder_ == null) { + principals_ = java.util.Collections.emptyList(); + } else { + principals_ = null; + principalsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + idpWide_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProto + .internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_AccessRestriction_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction build() { + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction result = + new com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction result) { + if (principalsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + principals_ = java.util.Collections.unmodifiableList(principals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.principals_ = principals_; + } else { + result.principals_ = principalsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.idpWide_ = idpWide_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction + .getDefaultInstance()) return this; + if (principalsBuilder_ == null) { + if (!other.principals_.isEmpty()) { + if (principals_.isEmpty()) { + principals_ = other.principals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePrincipalsIsMutable(); + principals_.addAll(other.principals_); + } + onChanged(); + } + } else { + if (!other.principals_.isEmpty()) { + if (principalsBuilder_.isEmpty()) { + principalsBuilder_.dispose(); + principalsBuilder_ = null; + principals_ = other.principals_; + bitField0_ = (bitField0_ & ~0x00000001); + principalsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetPrincipalsFieldBuilder() + : null; + } else { + principalsBuilder_.addAllMessages(other.principals_); + } + } + } + if (other.getIdpWide() != false) { + setIdpWide(other.getIdpWide()); + } + 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.v1beta.Principal m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Principal.parser(), + extensionRegistry); + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.add(m); + } else { + principalsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + idpWide_ = 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.util.List principals_ = + java.util.Collections.emptyList(); + + private void ensurePrincipalsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + principals_ = + new java.util.ArrayList( + principals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Principal, + com.google.cloud.discoveryengine.v1beta.Principal.Builder, + com.google.cloud.discoveryengine.v1beta.PrincipalOrBuilder> + principalsBuilder_; + + /** + * + * + *
            +         * List of principals.
            +         * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + public java.util.List + getPrincipalsList() { + if (principalsBuilder_ == null) { + return java.util.Collections.unmodifiableList(principals_); + } else { + return principalsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +         * List of principals.
            +         * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + public int getPrincipalsCount() { + if (principalsBuilder_ == null) { + return principals_.size(); + } else { + return principalsBuilder_.getCount(); + } + } + + /** + * + * + *
            +         * List of principals.
            +         * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + public com.google.cloud.discoveryengine.v1beta.Principal getPrincipals(int index) { + if (principalsBuilder_ == null) { + return principals_.get(index); + } else { + return principalsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +         * List of principals.
            +         * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + public Builder setPrincipals( + int index, com.google.cloud.discoveryengine.v1beta.Principal value) { + if (principalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); + principals_.set(index, value); + onChanged(); + } else { + principalsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * List of principals.
            +         * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + public Builder setPrincipals( + int index, com.google.cloud.discoveryengine.v1beta.Principal.Builder builderForValue) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.set(index, builderForValue.build()); + onChanged(); + } else { + principalsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * List of principals.
            +         * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + public Builder addPrincipals(com.google.cloud.discoveryengine.v1beta.Principal value) { + if (principalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); + principals_.add(value); + onChanged(); + } else { + principalsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +         * List of principals.
            +         * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + public Builder addPrincipals( + int index, com.google.cloud.discoveryengine.v1beta.Principal value) { + if (principalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); + principals_.add(index, value); + onChanged(); + } else { + principalsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * List of principals.
            +         * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + public Builder addPrincipals( + com.google.cloud.discoveryengine.v1beta.Principal.Builder builderForValue) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.add(builderForValue.build()); + onChanged(); + } else { + principalsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * List of principals.
            +         * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + public Builder addPrincipals( + int index, com.google.cloud.discoveryengine.v1beta.Principal.Builder builderForValue) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.add(index, builderForValue.build()); + onChanged(); + } else { + principalsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * List of principals.
            +         * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + public Builder addAllPrincipals( + java.lang.Iterable + values) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, principals_); + onChanged(); + } else { + principalsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +         * List of principals.
            +         * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + public Builder clearPrincipals() { + if (principalsBuilder_ == null) { + principals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + principalsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +         * List of principals.
            +         * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + public Builder removePrincipals(int index) { + if (principalsBuilder_ == null) { + ensurePrincipalsIsMutable(); + principals_.remove(index); + onChanged(); + } else { + principalsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +         * List of principals.
            +         * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + public com.google.cloud.discoveryengine.v1beta.Principal.Builder getPrincipalsBuilder( + int index) { + return internalGetPrincipalsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +         * List of principals.
            +         * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + public com.google.cloud.discoveryengine.v1beta.PrincipalOrBuilder getPrincipalsOrBuilder( + int index) { + if (principalsBuilder_ == null) { + return principals_.get(index); + } else { + return principalsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +         * List of principals.
            +         * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + public java.util.List + getPrincipalsOrBuilderList() { + if (principalsBuilder_ != null) { + return principalsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(principals_); + } + } + + /** + * + * + *
            +         * List of principals.
            +         * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + public com.google.cloud.discoveryengine.v1beta.Principal.Builder addPrincipalsBuilder() { + return internalGetPrincipalsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1beta.Principal.getDefaultInstance()); + } + + /** + * + * + *
            +         * List of principals.
            +         * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + public com.google.cloud.discoveryengine.v1beta.Principal.Builder addPrincipalsBuilder( + int index) { + return internalGetPrincipalsFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1beta.Principal.getDefaultInstance()); + } + + /** + * + * + *
            +         * List of principals.
            +         * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Principal principals = 1; + */ + public java.util.List + getPrincipalsBuilderList() { + return internalGetPrincipalsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Principal, + com.google.cloud.discoveryengine.v1beta.Principal.Builder, + com.google.cloud.discoveryengine.v1beta.PrincipalOrBuilder> + internalGetPrincipalsFieldBuilder() { + if (principalsBuilder_ == null) { + principalsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Principal, + com.google.cloud.discoveryengine.v1beta.Principal.Builder, + com.google.cloud.discoveryengine.v1beta.PrincipalOrBuilder>( + principals_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + principals_ = null; + } + return principalsBuilder_; + } + + private boolean idpWide_; + + /** + * + * + *
            +         * All users within the Identity Provider.
            +         * 
            + * + * bool idp_wide = 2; + * + * @return The idpWide. + */ + @java.lang.Override + public boolean getIdpWide() { + return idpWide_; + } + + /** + * + * + *
            +         * All users within the Identity Provider.
            +         * 
            + * + * bool idp_wide = 2; + * + * @param value The idpWide to set. + * @return This builder for chaining. + */ + public Builder setIdpWide(boolean value) { + + idpWide_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * All users within the Identity Provider.
            +         * 
            + * + * bool idp_wide = 2; + * + * @return This builder for chaining. + */ + public Builder clearIdpWide() { + bitField0_ = (bitField0_ & ~0x00000002); + idpWide_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction) + private static final com.google.cloud.discoveryengine.v1beta.Document.AclInfo + .AccessRestriction + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction(); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessRestriction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Document.AclInfo.AccessRestriction + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int READERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction> + readers_; + + /** + * + * + *
            +     * Readers of the document.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction> + getReadersList() { + return readers_; + } + + /** + * + * + *
            +     * Readers of the document.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestrictionOrBuilder> + getReadersOrBuilderList() { + return readers_; + } + + /** + * + * + *
            +     * Readers of the document.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + @java.lang.Override + public int getReadersCount() { + return readers_.size(); + } + + /** + * + * + *
            +     * Readers of the document.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction getReaders( + int index) { + return readers_.get(index); + } + + /** + * + * + *
            +     * Readers of the document.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestrictionOrBuilder + getReadersOrBuilder(int index) { + return readers_.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 < readers_.size(); i++) { + output.writeMessage(1, readers_.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 < readers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, readers_.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.v1beta.Document.AclInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Document.AclInfo other = + (com.google.cloud.discoveryengine.v1beta.Document.AclInfo) obj; + + if (!getReadersList().equals(other.getReadersList())) 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 (getReadersCount() > 0) { + hash = (37 * hash) + READERS_FIELD_NUMBER; + hash = (53 * hash) + getReadersList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo 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.v1beta.Document.AclInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo parseFrom( + 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.v1beta.Document.AclInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Document.AclInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * ACL Information of the Document.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Document.AclInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Document.AclInfo) + com.google.cloud.discoveryengine.v1beta.Document.AclInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.DocumentProto + .internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProto + .internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.class, + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.Document.AclInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (readersBuilder_ == null) { + readers_ = java.util.Collections.emptyList(); + } else { + readers_ = null; + readersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProto + .internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Document.AclInfo getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Document.AclInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Document.AclInfo build() { + com.google.cloud.discoveryengine.v1beta.Document.AclInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Document.AclInfo buildPartial() { + com.google.cloud.discoveryengine.v1beta.Document.AclInfo result = + new com.google.cloud.discoveryengine.v1beta.Document.AclInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.Document.AclInfo result) { + if (readersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + readers_ = java.util.Collections.unmodifiableList(readers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.readers_ = readers_; + } else { + result.readers_ = readersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Document.AclInfo result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Document.AclInfo) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Document.AclInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Document.AclInfo other) { + if (other == com.google.cloud.discoveryengine.v1beta.Document.AclInfo.getDefaultInstance()) + return this; + if (readersBuilder_ == null) { + if (!other.readers_.isEmpty()) { + if (readers_.isEmpty()) { + readers_ = other.readers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureReadersIsMutable(); + readers_.addAll(other.readers_); + } + onChanged(); + } + } else { + if (!other.readers_.isEmpty()) { + if (readersBuilder_.isEmpty()) { + readersBuilder_.dispose(); + readersBuilder_ = null; + readers_ = other.readers_; + bitField0_ = (bitField0_ & ~0x00000001); + readersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetReadersFieldBuilder() + : null; + } else { + readersBuilder_.addAllMessages(other.readers_); + } + } + } + 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.v1beta.Document.AclInfo.AccessRestriction m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction + .parser(), + extensionRegistry); + if (readersBuilder_ == null) { + ensureReadersIsMutable(); + readers_.add(m); + } else { + readersBuilder_.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.v1beta.Document.AclInfo.AccessRestriction> + readers_ = java.util.Collections.emptyList(); + + private void ensureReadersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + readers_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction>( + readers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction, + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction.Builder, + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestrictionOrBuilder> + readersBuilder_; + + /** + * + * + *
            +       * Readers of the document.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction> + getReadersList() { + if (readersBuilder_ == null) { + return java.util.Collections.unmodifiableList(readers_); + } else { + return readersBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +       * Readers of the document.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public int getReadersCount() { + if (readersBuilder_ == null) { + return readers_.size(); + } else { + return readersBuilder_.getCount(); + } + } + + /** + * + * + *
            +       * Readers of the document.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction getReaders( + int index) { + if (readersBuilder_ == null) { + return readers_.get(index); + } else { + return readersBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +       * Readers of the document.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public Builder setReaders( + int index, + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction value) { + if (readersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReadersIsMutable(); + readers_.set(index, value); + onChanged(); + } else { + readersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Readers of the document.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public Builder setReaders( + int index, + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction.Builder + builderForValue) { + if (readersBuilder_ == null) { + ensureReadersIsMutable(); + readers_.set(index, builderForValue.build()); + onChanged(); + } else { + readersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Readers of the document.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public Builder addReaders( + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction value) { + if (readersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReadersIsMutable(); + readers_.add(value); + onChanged(); + } else { + readersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +       * Readers of the document.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public Builder addReaders( + int index, + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction value) { + if (readersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReadersIsMutable(); + readers_.add(index, value); + onChanged(); + } else { + readersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Readers of the document.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public Builder addReaders( + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction.Builder + builderForValue) { + if (readersBuilder_ == null) { + ensureReadersIsMutable(); + readers_.add(builderForValue.build()); + onChanged(); + } else { + readersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Readers of the document.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public Builder addReaders( + int index, + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction.Builder + builderForValue) { + if (readersBuilder_ == null) { + ensureReadersIsMutable(); + readers_.add(index, builderForValue.build()); + onChanged(); + } else { + readersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Readers of the document.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public Builder addAllReaders( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction> + values) { + if (readersBuilder_ == null) { + ensureReadersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, readers_); + onChanged(); + } else { + readersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * Readers of the document.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public Builder clearReaders() { + if (readersBuilder_ == null) { + readers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + readersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Readers of the document.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public Builder removeReaders(int index) { + if (readersBuilder_ == null) { + ensureReadersIsMutable(); + readers_.remove(index); + onChanged(); + } else { + readersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * Readers of the document.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction.Builder + getReadersBuilder(int index) { + return internalGetReadersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * Readers of the document.
            +       * 
            * - * @return The bytes for mimeType. + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * */ - public com.google.protobuf.ByteString getMimeTypeBytes() { - java.lang.Object ref = mimeType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mimeType_ = b; - return b; + public com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestrictionOrBuilder + getReadersOrBuilder(int index) { + if (readersBuilder_ == null) { + return readers_.get(index); } else { - return (com.google.protobuf.ByteString) ref; + return readersBuilder_.getMessageOrBuilder(index); } } @@ -1231,107 +3654,118 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { * * *
            -       * The MIME type of the content. Supported types:
            -       *
            -       * * `application/pdf` (PDF, only native PDFs are supported for now)
            -       * * `text/html` (HTML)
            -       * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
            -       * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
            -       * * `text/plain` (TXT)
            -       *
            -       * See https://www.iana.org/assignments/media-types/media-types.xhtml.
            +       * Readers of the document.
                    * 
            * - * string mime_type = 1; - * - * @param value The mimeType to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Document.AclInfo + .AccessRestrictionOrBuilder> + getReadersOrBuilderList() { + if (readersBuilder_ != null) { + return readersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(readers_); } - mimeType_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; } /** * * *
            -       * The MIME type of the content. Supported types:
            -       *
            -       * * `application/pdf` (PDF, only native PDFs are supported for now)
            -       * * `text/html` (HTML)
            -       * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX)
            -       * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX)
            -       * * `text/plain` (TXT)
            -       *
            -       * See https://www.iana.org/assignments/media-types/media-types.xhtml.
            +       * Readers of the document.
                    * 
            * - * string mime_type = 1; - * - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * */ - public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction.Builder + addReadersBuilder() { + return internalGetReadersFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction + .getDefaultInstance()); } /** * * *
            -       * The MIME type of the content. Supported types:
            +       * Readers of the document.
            +       * 
            * - * * `application/pdf` (PDF, only native PDFs are supported for now) - * * `text/html` (HTML) - * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) - * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) - * * `text/plain` (TXT) + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction.Builder + addReadersBuilder(int index) { + return internalGetReadersFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction + .getDefaultInstance()); + } + + /** * - * See https://www.iana.org/assignments/media-types/media-types.xhtml. - * * - * string mime_type = 1; + *
            +       * Readers of the document.
            +       * 
            * - * @param value The bytes for mimeType to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction readers = 1; + * */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction.Builder> + getReadersBuilderList() { + return internalGetReadersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction, + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction.Builder, + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestrictionOrBuilder> + internalGetReadersFieldBuilder() { + if (readersBuilder_ == null) { + readersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction, + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.AccessRestriction + .Builder, + com.google.cloud.discoveryengine.v1beta.Document.AclInfo + .AccessRestrictionOrBuilder>( + readers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + readers_ = null; } - checkByteStringIsUtf8(value); - mimeType_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; + return readersBuilder_; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Document.Content) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Document.AclInfo) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Document.Content) - private static final com.google.cloud.discoveryengine.v1beta.Document.Content DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Document.AclInfo) + private static final com.google.cloud.discoveryengine.v1beta.Document.AclInfo DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Document.Content(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Document.AclInfo(); } - public static com.google.cloud.discoveryengine.v1beta.Document.Content getDefaultInstance() { + public static com.google.cloud.discoveryengine.v1beta.Document.AclInfo 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 Content parsePartialFrom( + public AclInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1351,17 +3785,17 @@ public Content 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.discoveryengine.v1beta.Document.Content getDefaultInstanceForType() { + public com.google.cloud.discoveryengine.v1beta.Document.AclInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -1377,6 +3811,8 @@ public interface IndexStatusOrBuilder *
                  * The time when the document was indexed.
                  * If this field is populated, it means the document has been indexed.
            +     * While documents typically become searchable within seconds of indexing,
            +     * it can sometimes take up to a few hours.
                  * 
            * * .google.protobuf.Timestamp index_time = 1; @@ -1391,6 +3827,8 @@ public interface IndexStatusOrBuilder *
                  * The time when the document was indexed.
                  * If this field is populated, it means the document has been indexed.
            +     * While documents typically become searchable within seconds of indexing,
            +     * it can sometimes take up to a few hours.
                  * 
            * * .google.protobuf.Timestamp index_time = 1; @@ -1405,6 +3843,8 @@ public interface IndexStatusOrBuilder *
                  * The time when the document was indexed.
                  * If this field is populated, it means the document has been indexed.
            +     * While documents typically become searchable within seconds of indexing,
            +     * it can sometimes take up to a few hours.
                  * 
            * * .google.protobuf.Timestamp index_time = 1; @@ -1470,6 +3910,34 @@ public interface IndexStatusOrBuilder * repeated .google.rpc.Status error_samples = 2; */ com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index); + + /** + * + * + *
            +     * Immutable. The message indicates the document index is in progress.
            +     * If this field is populated, the document index is pending.
            +     * 
            + * + * string pending_message = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The pendingMessage. + */ + java.lang.String getPendingMessage(); + + /** + * + * + *
            +     * Immutable. The message indicates the document index is in progress.
            +     * If this field is populated, the document index is pending.
            +     * 
            + * + * string pending_message = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for pendingMessage. + */ + com.google.protobuf.ByteString getPendingMessageBytes(); } /** @@ -1504,6 +3972,7 @@ private IndexStatus(com.google.protobuf.GeneratedMessage.Builder builder) { private IndexStatus() { errorSamples_ = java.util.Collections.emptyList(); + pendingMessage_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1531,6 +4000,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
                  * The time when the document was indexed.
                  * If this field is populated, it means the document has been indexed.
            +     * While documents typically become searchable within seconds of indexing,
            +     * it can sometimes take up to a few hours.
                  * 
            * * .google.protobuf.Timestamp index_time = 1; @@ -1548,6 +4019,8 @@ public boolean hasIndexTime() { *
                  * The time when the document was indexed.
                  * If this field is populated, it means the document has been indexed.
            +     * While documents typically become searchable within seconds of indexing,
            +     * it can sometimes take up to a few hours.
                  * 
            * * .google.protobuf.Timestamp index_time = 1; @@ -1565,6 +4038,8 @@ public com.google.protobuf.Timestamp getIndexTime() { *
                  * The time when the document was indexed.
                  * If this field is populated, it means the document has been indexed.
            +     * While documents typically become searchable within seconds of indexing,
            +     * it can sometimes take up to a few hours.
                  * 
            * * .google.protobuf.Timestamp index_time = 1; @@ -1654,6 +4129,61 @@ public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { return errorSamples_.get(index); } + public static final int PENDING_MESSAGE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pendingMessage_ = ""; + + /** + * + * + *
            +     * Immutable. The message indicates the document index is in progress.
            +     * If this field is populated, the document index is pending.
            +     * 
            + * + * string pending_message = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The pendingMessage. + */ + @java.lang.Override + public java.lang.String getPendingMessage() { + java.lang.Object ref = pendingMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pendingMessage_ = s; + return s; + } + } + + /** + * + * + *
            +     * Immutable. The message indicates the document index is in progress.
            +     * If this field is populated, the document index is pending.
            +     * 
            + * + * string pending_message = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for pendingMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPendingMessageBytes() { + java.lang.Object ref = pendingMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pendingMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1674,6 +4204,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < errorSamples_.size(); i++) { output.writeMessage(2, errorSamples_.get(i)); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pendingMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pendingMessage_); + } getUnknownFields().writeTo(output); } @@ -1689,6 +4222,9 @@ public int getSerializedSize() { for (int i = 0; i < errorSamples_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, errorSamples_.get(i)); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pendingMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pendingMessage_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1710,6 +4246,7 @@ public boolean equals(final java.lang.Object obj) { if (!getIndexTime().equals(other.getIndexTime())) return false; } if (!getErrorSamplesList().equals(other.getErrorSamplesList())) return false; + if (!getPendingMessage().equals(other.getPendingMessage())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1729,6 +4266,8 @@ public int hashCode() { hash = (37 * hash) + ERROR_SAMPLES_FIELD_NUMBER; hash = (53 * hash) + getErrorSamplesList().hashCode(); } + hash = (37 * hash) + PENDING_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getPendingMessage().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1892,6 +4431,7 @@ public Builder clear() { errorSamplesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); + pendingMessage_ = ""; return this; } @@ -1949,6 +4489,9 @@ private void buildPartial0( result.indexTime_ = indexTimeBuilder_ == null ? indexTime_ : indexTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pendingMessage_ = pendingMessage_; + } result.bitField0_ |= to_bitField0_; } @@ -1996,6 +4539,11 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Document.IndexS } } } + if (!other.getPendingMessage().isEmpty()) { + pendingMessage_ = other.pendingMessage_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2041,6 +4589,12 @@ public Builder mergeFrom( } break; } // case 18 + case 26: + { + pendingMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2073,6 +4627,8 @@ public Builder mergeFrom( *
                    * The time when the document was indexed.
                    * If this field is populated, it means the document has been indexed.
            +       * While documents typically become searchable within seconds of indexing,
            +       * it can sometimes take up to a few hours.
                    * 
            * * .google.protobuf.Timestamp index_time = 1; @@ -2089,6 +4645,8 @@ public boolean hasIndexTime() { *
                    * The time when the document was indexed.
                    * If this field is populated, it means the document has been indexed.
            +       * While documents typically become searchable within seconds of indexing,
            +       * it can sometimes take up to a few hours.
                    * 
            * * .google.protobuf.Timestamp index_time = 1; @@ -2111,6 +4669,8 @@ public com.google.protobuf.Timestamp getIndexTime() { *
                    * The time when the document was indexed.
                    * If this field is populated, it means the document has been indexed.
            +       * While documents typically become searchable within seconds of indexing,
            +       * it can sometimes take up to a few hours.
                    * 
            * * .google.protobuf.Timestamp index_time = 1; @@ -2135,6 +4695,8 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) { *
                    * The time when the document was indexed.
                    * If this field is populated, it means the document has been indexed.
            +       * While documents typically become searchable within seconds of indexing,
            +       * it can sometimes take up to a few hours.
                    * 
            * * .google.protobuf.Timestamp index_time = 1; @@ -2156,6 +4718,8 @@ public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValu *
                    * The time when the document was indexed.
                    * If this field is populated, it means the document has been indexed.
            +       * While documents typically become searchable within seconds of indexing,
            +       * it can sometimes take up to a few hours.
                    * 
            * * .google.protobuf.Timestamp index_time = 1; @@ -2185,6 +4749,8 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { *
                    * The time when the document was indexed.
                    * If this field is populated, it means the document has been indexed.
            +       * While documents typically become searchable within seconds of indexing,
            +       * it can sometimes take up to a few hours.
                    * 
            * * .google.protobuf.Timestamp index_time = 1; @@ -2206,6 +4772,8 @@ public Builder clearIndexTime() { *
                    * The time when the document was indexed.
                    * If this field is populated, it means the document has been indexed.
            +       * While documents typically become searchable within seconds of indexing,
            +       * it can sometimes take up to a few hours.
                    * 
            * * .google.protobuf.Timestamp index_time = 1; @@ -2222,6 +4790,8 @@ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() { *
                    * The time when the document was indexed.
                    * If this field is populated, it means the document has been indexed.
            +       * While documents typically become searchable within seconds of indexing,
            +       * it can sometimes take up to a few hours.
                    * 
            * * .google.protobuf.Timestamp index_time = 1; @@ -2242,6 +4812,8 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { *
                    * The time when the document was indexed.
                    * If this field is populated, it means the document has been indexed.
            +       * While documents typically become searchable within seconds of indexing,
            +       * it can sometimes take up to a few hours.
                    * 
            * * .google.protobuf.Timestamp index_time = 1; @@ -2619,28 +5191,144 @@ public com.google.rpc.Status.Builder addErrorSamplesBuilder(int index) { * If this field is populated, the document is not indexed due to errors. * * - * repeated .google.rpc.Status error_samples = 2; + * repeated .google.rpc.Status error_samples = 2; + */ + public java.util.List getErrorSamplesBuilderList() { + return internalGetErrorSamplesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + internalGetErrorSamplesFieldBuilder() { + if (errorSamplesBuilder_ == null) { + errorSamplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + errorSamples_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + errorSamples_ = null; + } + return errorSamplesBuilder_; + } + + private java.lang.Object pendingMessage_ = ""; + + /** + * + * + *
            +       * Immutable. The message indicates the document index is in progress.
            +       * If this field is populated, the document index is pending.
            +       * 
            + * + * string pending_message = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The pendingMessage. + */ + public java.lang.String getPendingMessage() { + java.lang.Object ref = pendingMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pendingMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Immutable. The message indicates the document index is in progress.
            +       * If this field is populated, the document index is pending.
            +       * 
            + * + * string pending_message = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for pendingMessage. + */ + public com.google.protobuf.ByteString getPendingMessageBytes() { + java.lang.Object ref = pendingMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pendingMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Immutable. The message indicates the document index is in progress.
            +       * If this field is populated, the document index is pending.
            +       * 
            + * + * string pending_message = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The pendingMessage to set. + * @return This builder for chaining. + */ + public Builder setPendingMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pendingMessage_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Immutable. The message indicates the document index is in progress.
            +       * If this field is populated, the document index is pending.
            +       * 
            + * + * string pending_message = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearPendingMessage() { + pendingMessage_ = getDefaultInstance().getPendingMessage(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Immutable. The message indicates the document index is in progress.
            +       * If this field is populated, the document index is pending.
            +       * 
            + * + * string pending_message = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for pendingMessage to set. + * @return This builder for chaining. */ - public java.util.List getErrorSamplesBuilderList() { - return internalGetErrorSamplesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - internalGetErrorSamplesFieldBuilder() { - if (errorSamplesBuilder_ == null) { - errorSamplesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - errorSamples_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - errorSamples_ = null; + public Builder setPendingMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return errorSamplesBuilder_; + checkByteStringIsUtf8(value); + pendingMessage_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Document.IndexStatus) @@ -2963,7 +5651,7 @@ public com.google.protobuf.ByteString getNameBytes() { * Immutable. The identifier of the document. * * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. + * standard with a length limit of 128 characters. * * * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -2990,7 +5678,7 @@ public java.lang.String getId() { * Immutable. The identifier of the document. * * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. + * standard with a length limit of 128 characters. * * * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -3070,9 +5758,8 @@ public com.google.protobuf.ByteString getSchemaIdBytes() { * * *
            -   * The unstructured data linked to this document. Content must be set if this
            -   * document is under a
            -   * `CONTENT_REQUIRED` data store.
            +   * The unstructured data linked to this document. Content can only be set
            +   * and must be set if this document is under a `CONTENT_REQUIRED` data store.
                * 
            * * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; @@ -3088,9 +5775,8 @@ public boolean hasContent() { * * *
            -   * The unstructured data linked to this document. Content must be set if this
            -   * document is under a
            -   * `CONTENT_REQUIRED` data store.
            +   * The unstructured data linked to this document. Content can only be set
            +   * and must be set if this document is under a `CONTENT_REQUIRED` data store.
                * 
            * * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; @@ -3108,9 +5794,8 @@ public com.google.cloud.discoveryengine.v1beta.Document.Content getContent() { * * *
            -   * The unstructured data linked to this document. Content must be set if this
            -   * document is under a
            -   * `CONTENT_REQUIRED` data store.
            +   * The unstructured data linked to this document. Content can only be set
            +   * and must be set if this document is under a `CONTENT_REQUIRED` data store.
                * 
            * * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; @@ -3245,6 +5930,59 @@ public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { : derivedStructData_; } + public static final int ACL_INFO_FIELD_NUMBER = 11; + private com.google.cloud.discoveryengine.v1beta.Document.AclInfo aclInfo_; + + /** + * + * + *
            +   * Access control information for the document.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Document.AclInfo acl_info = 11; + * + * @return Whether the aclInfo field is set. + */ + @java.lang.Override + public boolean hasAclInfo() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Access control information for the document.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Document.AclInfo acl_info = 11; + * + * @return The aclInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Document.AclInfo getAclInfo() { + return aclInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.Document.AclInfo.getDefaultInstance() + : aclInfo_; + } + + /** + * + * + *
            +   * Access control information for the document.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Document.AclInfo acl_info = 11; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Document.AclInfoOrBuilder getAclInfoOrBuilder() { + return aclInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.Document.AclInfo.getDefaultInstance() + : aclInfo_; + } + public static final int INDEX_TIME_FIELD_NUMBER = 13; private com.google.protobuf.Timestamp indexTime_; @@ -3252,11 +5990,14 @@ public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { * * *
            -   * Output only. The last time the document was indexed. If this field is set,
            -   * the document could be returned in search results.
            +   * Output only. The time when the document was last indexed.
                *
            -   * This field is OUTPUT_ONLY. If this field is not populated, it means the
            -   * document has never been indexed.
            +   * If this field is populated, it means the document has been indexed.
            +   * While documents typically become searchable within seconds of indexing,
            +   * it can sometimes take up to a few hours.
            +   *
            +   * If this field is not populated, it means the document has never been
            +   * indexed.
                * 
            * * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3266,18 +6007,21 @@ public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { */ @java.lang.Override public boolean hasIndexTime() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * * *
            -   * Output only. The last time the document was indexed. If this field is set,
            -   * the document could be returned in search results.
            +   * Output only. The time when the document was last indexed.
            +   *
            +   * If this field is populated, it means the document has been indexed.
            +   * While documents typically become searchable within seconds of indexing,
            +   * it can sometimes take up to a few hours.
                *
            -   * This field is OUTPUT_ONLY. If this field is not populated, it means the
            -   * document has never been indexed.
            +   * If this field is not populated, it means the document has never been
            +   * indexed.
                * 
            * * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3294,11 +6038,14 @@ public com.google.protobuf.Timestamp getIndexTime() { * * *
            -   * Output only. The last time the document was indexed. If this field is set,
            -   * the document could be returned in search results.
            +   * Output only. The time when the document was last indexed.
                *
            -   * This field is OUTPUT_ONLY. If this field is not populated, it means the
            -   * document has never been indexed.
            +   * If this field is populated, it means the document has been indexed.
            +   * While documents typically become searchable within seconds of indexing,
            +   * it can sometimes take up to a few hours.
            +   *
            +   * If this field is not populated, it means the document has never been
            +   * indexed.
                * 
            * * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3321,7 +6068,8 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { * * If document is indexed successfully, the index_time field is populated. * * Otherwise, if document is not indexed due to errors, the error_samples * field is populated. - * * Otherwise, index_status is unset. + * * Otherwise, if document's index is in progress, the pending_message field + * is populated. * * * @@ -3332,7 +6080,7 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { */ @java.lang.Override public boolean hasIndexStatus() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -3344,7 +6092,8 @@ public boolean hasIndexStatus() { * * If document is indexed successfully, the index_time field is populated. * * Otherwise, if document is not indexed due to errors, the error_samples * field is populated. - * * Otherwise, index_status is unset. + * * Otherwise, if document's index is in progress, the pending_message field + * is populated. * * * @@ -3369,7 +6118,8 @@ public com.google.cloud.discoveryengine.v1beta.Document.IndexStatus getIndexStat * * If document is indexed successfully, the index_time field is populated. * * Otherwise, if document is not indexed due to errors, the error_samples * field is populated. - * * Otherwise, index_status is unset. + * * Otherwise, if document's index is in progress, the pending_message field + * is populated. * * * @@ -3423,9 +6173,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(10, getContent()); } if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(13, getIndexTime()); + output.writeMessage(11, getAclInfo()); } if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(13, getIndexTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(15, getIndexStatus()); } getUnknownFields().writeTo(output); @@ -3464,9 +6217,12 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getContent()); } if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getIndexTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getAclInfo()); } if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getIndexTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getIndexStatus()); } size += getUnknownFields().getSerializedSize(); @@ -3497,6 +6253,10 @@ public boolean equals(final java.lang.Object obj) { if (hasDerivedStructData()) { if (!getDerivedStructData().equals(other.getDerivedStructData())) return false; } + if (hasAclInfo() != other.hasAclInfo()) return false; + if (hasAclInfo()) { + if (!getAclInfo().equals(other.getAclInfo())) return false; + } if (hasIndexTime() != other.hasIndexTime()) return false; if (hasIndexTime()) { if (!getIndexTime().equals(other.getIndexTime())) return false; @@ -3543,6 +6303,10 @@ public int hashCode() { hash = (37 * hash) + DERIVED_STRUCT_DATA_FIELD_NUMBER; hash = (53 * hash) + getDerivedStructData().hashCode(); } + if (hasAclInfo()) { + hash = (37 * hash) + ACL_INFO_FIELD_NUMBER; + hash = (53 * hash) + getAclInfo().hashCode(); + } if (hasIndexTime()) { hash = (37 * hash) + INDEX_TIME_FIELD_NUMBER; hash = (53 * hash) + getIndexTime().hashCode(); @@ -3707,6 +6471,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetContentFieldBuilder(); internalGetDerivedStructDataFieldBuilder(); + internalGetAclInfoFieldBuilder(); internalGetIndexTimeFieldBuilder(); internalGetIndexStatusFieldBuilder(); } @@ -3733,6 +6498,11 @@ public Builder clear() { derivedStructDataBuilder_.dispose(); derivedStructDataBuilder_ = null; } + aclInfo_ = null; + if (aclInfoBuilder_ != null) { + aclInfoBuilder_.dispose(); + aclInfoBuilder_ = null; + } indexTime_ = null; if (indexTimeBuilder_ != null) { indexTimeBuilder_.dispose(); @@ -3807,13 +6577,17 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Document resu to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000100) != 0)) { - result.indexTime_ = indexTimeBuilder_ == null ? indexTime_ : indexTimeBuilder_.build(); + result.aclInfo_ = aclInfoBuilder_ == null ? aclInfo_ : aclInfoBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000200) != 0)) { + result.indexTime_ = indexTimeBuilder_ == null ? indexTime_ : indexTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000400) != 0)) { result.indexStatus_ = indexStatusBuilder_ == null ? indexStatus_ : indexStatusBuilder_.build(); - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; } @@ -3865,6 +6639,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Document other) if (other.hasDerivedStructData()) { mergeDerivedStructData(other.getDerivedStructData()); } + if (other.hasAclInfo()) { + mergeAclInfo(other.getAclInfo()); + } if (other.hasIndexTime()) { mergeIndexTime(other.getIndexTime()); } @@ -3966,18 +6743,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 82 + case 90: + { + input.readMessage(internalGetAclInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 90 case 106: { input.readMessage( internalGetIndexTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 106 case 122: { input.readMessage( internalGetIndexStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 122 default: @@ -4540,7 +7323,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Immutable. The identifier of the document. * * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. + * standard with a length limit of 128 characters. * * * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4566,7 +7349,7 @@ public java.lang.String getId() { * Immutable. The identifier of the document. * * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. + * standard with a length limit of 128 characters. * * * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4592,7 +7375,7 @@ public com.google.protobuf.ByteString getIdBytes() { * Immutable. The identifier of the document. * * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. + * standard with a length limit of 128 characters. * * * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4617,7 +7400,7 @@ public Builder setId(java.lang.String value) { * Immutable. The identifier of the document. * * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. + * standard with a length limit of 128 characters. * * * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4638,7 +7421,7 @@ public Builder clearId() { * Immutable. The identifier of the document. * * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. + * standard with a length limit of 128 characters. * * * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -4779,9 +7562,8 @@ public Builder setSchemaIdBytes(com.google.protobuf.ByteString value) { * * *
            -     * The unstructured data linked to this document. Content must be set if this
            -     * document is under a
            -     * `CONTENT_REQUIRED` data store.
            +     * The unstructured data linked to this document. Content can only be set
            +     * and must be set if this document is under a `CONTENT_REQUIRED` data store.
                  * 
            * * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; @@ -4796,9 +7578,8 @@ public boolean hasContent() { * * *
            -     * The unstructured data linked to this document. Content must be set if this
            -     * document is under a
            -     * `CONTENT_REQUIRED` data store.
            +     * The unstructured data linked to this document. Content can only be set
            +     * and must be set if this document is under a `CONTENT_REQUIRED` data store.
                  * 
            * * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; @@ -4819,9 +7600,8 @@ public com.google.cloud.discoveryengine.v1beta.Document.Content getContent() { * * *
            -     * The unstructured data linked to this document. Content must be set if this
            -     * document is under a
            -     * `CONTENT_REQUIRED` data store.
            +     * The unstructured data linked to this document. Content can only be set
            +     * and must be set if this document is under a `CONTENT_REQUIRED` data store.
                  * 
            * * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; @@ -4844,9 +7624,8 @@ public Builder setContent(com.google.cloud.discoveryengine.v1beta.Document.Conte * * *
            -     * The unstructured data linked to this document. Content must be set if this
            -     * document is under a
            -     * `CONTENT_REQUIRED` data store.
            +     * The unstructured data linked to this document. Content can only be set
            +     * and must be set if this document is under a `CONTENT_REQUIRED` data store.
                  * 
            * * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; @@ -4867,9 +7646,8 @@ public Builder setContent( * * *
            -     * The unstructured data linked to this document. Content must be set if this
            -     * document is under a
            -     * `CONTENT_REQUIRED` data store.
            +     * The unstructured data linked to this document. Content can only be set
            +     * and must be set if this document is under a `CONTENT_REQUIRED` data store.
                  * 
            * * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; @@ -4898,9 +7676,8 @@ public Builder mergeContent(com.google.cloud.discoveryengine.v1beta.Document.Con * * *
            -     * The unstructured data linked to this document. Content must be set if this
            -     * document is under a
            -     * `CONTENT_REQUIRED` data store.
            +     * The unstructured data linked to this document. Content can only be set
            +     * and must be set if this document is under a `CONTENT_REQUIRED` data store.
                  * 
            * * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; @@ -4920,9 +7697,8 @@ public Builder clearContent() { * * *
            -     * The unstructured data linked to this document. Content must be set if this
            -     * document is under a
            -     * `CONTENT_REQUIRED` data store.
            +     * The unstructured data linked to this document. Content can only be set
            +     * and must be set if this document is under a `CONTENT_REQUIRED` data store.
                  * 
            * * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; @@ -4937,9 +7713,8 @@ public com.google.cloud.discoveryengine.v1beta.Document.Content.Builder getConte * * *
            -     * The unstructured data linked to this document. Content must be set if this
            -     * document is under a
            -     * `CONTENT_REQUIRED` data store.
            +     * The unstructured data linked to this document. Content can only be set
            +     * and must be set if this document is under a `CONTENT_REQUIRED` data store.
                  * 
            * * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; @@ -4958,9 +7733,8 @@ public com.google.cloud.discoveryengine.v1beta.Document.ContentOrBuilder getCont * * *
            -     * The unstructured data linked to this document. Content must be set if this
            -     * document is under a
            -     * `CONTENT_REQUIRED` data store.
            +     * The unstructured data linked to this document. Content can only be set
            +     * and must be set if this document is under a `CONTENT_REQUIRED` data store.
                  * 
            * * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; @@ -5334,6 +8108,202 @@ public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { return derivedStructDataBuilder_; } + private com.google.cloud.discoveryengine.v1beta.Document.AclInfo aclInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Document.AclInfo, + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Document.AclInfoOrBuilder> + aclInfoBuilder_; + + /** + * + * + *
            +     * Access control information for the document.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Document.AclInfo acl_info = 11; + * + * @return Whether the aclInfo field is set. + */ + public boolean hasAclInfo() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
            +     * Access control information for the document.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Document.AclInfo acl_info = 11; + * + * @return The aclInfo. + */ + public com.google.cloud.discoveryengine.v1beta.Document.AclInfo getAclInfo() { + if (aclInfoBuilder_ == null) { + return aclInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.Document.AclInfo.getDefaultInstance() + : aclInfo_; + } else { + return aclInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Access control information for the document.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Document.AclInfo acl_info = 11; + */ + public Builder setAclInfo(com.google.cloud.discoveryengine.v1beta.Document.AclInfo value) { + if (aclInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aclInfo_ = value; + } else { + aclInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Access control information for the document.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Document.AclInfo acl_info = 11; + */ + public Builder setAclInfo( + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.Builder builderForValue) { + if (aclInfoBuilder_ == null) { + aclInfo_ = builderForValue.build(); + } else { + aclInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Access control information for the document.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Document.AclInfo acl_info = 11; + */ + public Builder mergeAclInfo(com.google.cloud.discoveryengine.v1beta.Document.AclInfo value) { + if (aclInfoBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && aclInfo_ != null + && aclInfo_ + != com.google.cloud.discoveryengine.v1beta.Document.AclInfo.getDefaultInstance()) { + getAclInfoBuilder().mergeFrom(value); + } else { + aclInfo_ = value; + } + } else { + aclInfoBuilder_.mergeFrom(value); + } + if (aclInfo_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Access control information for the document.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Document.AclInfo acl_info = 11; + */ + public Builder clearAclInfo() { + bitField0_ = (bitField0_ & ~0x00000100); + aclInfo_ = null; + if (aclInfoBuilder_ != null) { + aclInfoBuilder_.dispose(); + aclInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Access control information for the document.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Document.AclInfo acl_info = 11; + */ + public com.google.cloud.discoveryengine.v1beta.Document.AclInfo.Builder getAclInfoBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetAclInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Access control information for the document.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Document.AclInfo acl_info = 11; + */ + public com.google.cloud.discoveryengine.v1beta.Document.AclInfoOrBuilder getAclInfoOrBuilder() { + if (aclInfoBuilder_ != null) { + return aclInfoBuilder_.getMessageOrBuilder(); + } else { + return aclInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.Document.AclInfo.getDefaultInstance() + : aclInfo_; + } + } + + /** + * + * + *
            +     * Access control information for the document.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Document.AclInfo acl_info = 11; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Document.AclInfo, + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Document.AclInfoOrBuilder> + internalGetAclInfoFieldBuilder() { + if (aclInfoBuilder_ == null) { + aclInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Document.AclInfo, + com.google.cloud.discoveryengine.v1beta.Document.AclInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Document.AclInfoOrBuilder>( + getAclInfo(), getParentForChildren(), isClean()); + aclInfo_ = null; + } + return aclInfoBuilder_; + } + private com.google.protobuf.Timestamp indexTime_; private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, @@ -5345,11 +8315,14 @@ public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { * * *
            -     * Output only. The last time the document was indexed. If this field is set,
            -     * the document could be returned in search results.
            +     * Output only. The time when the document was last indexed.
            +     *
            +     * If this field is populated, it means the document has been indexed.
            +     * While documents typically become searchable within seconds of indexing,
            +     * it can sometimes take up to a few hours.
                  *
            -     * This field is OUTPUT_ONLY. If this field is not populated, it means the
            -     * document has never been indexed.
            +     * If this field is not populated, it means the document has never been
            +     * indexed.
                  * 
            * * @@ -5359,18 +8332,21 @@ public com.google.protobuf.StructOrBuilder getDerivedStructDataOrBuilder() { * @return Whether the indexTime field is set. */ public boolean hasIndexTime() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** * * *
            -     * Output only. The last time the document was indexed. If this field is set,
            -     * the document could be returned in search results.
            +     * Output only. The time when the document was last indexed.
            +     *
            +     * If this field is populated, it means the document has been indexed.
            +     * While documents typically become searchable within seconds of indexing,
            +     * it can sometimes take up to a few hours.
                  *
            -     * This field is OUTPUT_ONLY. If this field is not populated, it means the
            -     * document has never been indexed.
            +     * If this field is not populated, it means the document has never been
            +     * indexed.
                  * 
            * * @@ -5391,11 +8367,14 @@ public com.google.protobuf.Timestamp getIndexTime() { * * *
            -     * Output only. The last time the document was indexed. If this field is set,
            -     * the document could be returned in search results.
            +     * Output only. The time when the document was last indexed.
            +     *
            +     * If this field is populated, it means the document has been indexed.
            +     * While documents typically become searchable within seconds of indexing,
            +     * it can sometimes take up to a few hours.
                  *
            -     * This field is OUTPUT_ONLY. If this field is not populated, it means the
            -     * document has never been indexed.
            +     * If this field is not populated, it means the document has never been
            +     * indexed.
                  * 
            * * @@ -5411,7 +8390,7 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) { } else { indexTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -5420,11 +8399,14 @@ public Builder setIndexTime(com.google.protobuf.Timestamp value) { * * *
            -     * Output only. The last time the document was indexed. If this field is set,
            -     * the document could be returned in search results.
            +     * Output only. The time when the document was last indexed.
            +     *
            +     * If this field is populated, it means the document has been indexed.
            +     * While documents typically become searchable within seconds of indexing,
            +     * it can sometimes take up to a few hours.
                  *
            -     * This field is OUTPUT_ONLY. If this field is not populated, it means the
            -     * document has never been indexed.
            +     * If this field is not populated, it means the document has never been
            +     * indexed.
                  * 
            * * @@ -5437,7 +8419,7 @@ public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValu } else { indexTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -5446,11 +8428,14 @@ public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValu * * *
            -     * Output only. The last time the document was indexed. If this field is set,
            -     * the document could be returned in search results.
            +     * Output only. The time when the document was last indexed.
            +     *
            +     * If this field is populated, it means the document has been indexed.
            +     * While documents typically become searchable within seconds of indexing,
            +     * it can sometimes take up to a few hours.
                  *
            -     * This field is OUTPUT_ONLY. If this field is not populated, it means the
            -     * document has never been indexed.
            +     * If this field is not populated, it means the document has never been
            +     * indexed.
                  * 
            * * @@ -5459,7 +8444,7 @@ public Builder setIndexTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { if (indexTimeBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && indexTime_ != null && indexTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getIndexTimeBuilder().mergeFrom(value); @@ -5470,7 +8455,7 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { indexTimeBuilder_.mergeFrom(value); } if (indexTime_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -5480,11 +8465,14 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { * * *
            -     * Output only. The last time the document was indexed. If this field is set,
            -     * the document could be returned in search results.
            +     * Output only. The time when the document was last indexed.
            +     *
            +     * If this field is populated, it means the document has been indexed.
            +     * While documents typically become searchable within seconds of indexing,
            +     * it can sometimes take up to a few hours.
                  *
            -     * This field is OUTPUT_ONLY. If this field is not populated, it means the
            -     * document has never been indexed.
            +     * If this field is not populated, it means the document has never been
            +     * indexed.
                  * 
            * * @@ -5492,7 +8480,7 @@ public Builder mergeIndexTime(com.google.protobuf.Timestamp value) { * */ public Builder clearIndexTime() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); indexTime_ = null; if (indexTimeBuilder_ != null) { indexTimeBuilder_.dispose(); @@ -5506,11 +8494,14 @@ public Builder clearIndexTime() { * * *
            -     * Output only. The last time the document was indexed. If this field is set,
            -     * the document could be returned in search results.
            +     * Output only. The time when the document was last indexed.
            +     *
            +     * If this field is populated, it means the document has been indexed.
            +     * While documents typically become searchable within seconds of indexing,
            +     * it can sometimes take up to a few hours.
                  *
            -     * This field is OUTPUT_ONLY. If this field is not populated, it means the
            -     * document has never been indexed.
            +     * If this field is not populated, it means the document has never been
            +     * indexed.
                  * 
            * * @@ -5518,7 +8509,7 @@ public Builder clearIndexTime() { * */ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return internalGetIndexTimeFieldBuilder().getBuilder(); } @@ -5527,11 +8518,14 @@ public com.google.protobuf.Timestamp.Builder getIndexTimeBuilder() { * * *
            -     * Output only. The last time the document was indexed. If this field is set,
            -     * the document could be returned in search results.
            +     * Output only. The time when the document was last indexed.
            +     *
            +     * If this field is populated, it means the document has been indexed.
            +     * While documents typically become searchable within seconds of indexing,
            +     * it can sometimes take up to a few hours.
                  *
            -     * This field is OUTPUT_ONLY. If this field is not populated, it means the
            -     * document has never been indexed.
            +     * If this field is not populated, it means the document has never been
            +     * indexed.
                  * 
            * * @@ -5550,11 +8544,14 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { * * *
            -     * Output only. The last time the document was indexed. If this field is set,
            -     * the document could be returned in search results.
            +     * Output only. The time when the document was last indexed.
            +     *
            +     * If this field is populated, it means the document has been indexed.
            +     * While documents typically become searchable within seconds of indexing,
            +     * it can sometimes take up to a few hours.
                  *
            -     * This field is OUTPUT_ONLY. If this field is not populated, it means the
            -     * document has never been indexed.
            +     * If this field is not populated, it means the document has never been
            +     * indexed.
                  * 
            * * @@ -5594,7 +8591,8 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { * * If document is indexed successfully, the index_time field is populated. * * Otherwise, if document is not indexed due to errors, the error_samples * field is populated. - * * Otherwise, index_status is unset. + * * Otherwise, if document's index is in progress, the pending_message field + * is populated. * * * @@ -5604,7 +8602,7 @@ public com.google.protobuf.TimestampOrBuilder getIndexTimeOrBuilder() { * @return Whether the indexStatus field is set. */ public boolean hasIndexStatus() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -5616,7 +8614,8 @@ public boolean hasIndexStatus() { * * If document is indexed successfully, the index_time field is populated. * * Otherwise, if document is not indexed due to errors, the error_samples * field is populated. - * * Otherwise, index_status is unset. + * * Otherwise, if document's index is in progress, the pending_message field + * is populated. * * * @@ -5644,7 +8643,8 @@ public com.google.cloud.discoveryengine.v1beta.Document.IndexStatus getIndexStat * * If document is indexed successfully, the index_time field is populated. * * Otherwise, if document is not indexed due to errors, the error_samples * field is populated. - * * Otherwise, index_status is unset. + * * Otherwise, if document's index is in progress, the pending_message field + * is populated. * * * @@ -5661,7 +8661,7 @@ public Builder setIndexStatus( } else { indexStatusBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5675,7 +8675,8 @@ public Builder setIndexStatus( * * If document is indexed successfully, the index_time field is populated. * * Otherwise, if document is not indexed due to errors, the error_samples * field is populated. - * * Otherwise, index_status is unset. + * * Otherwise, if document's index is in progress, the pending_message field + * is populated. * * * @@ -5689,7 +8690,7 @@ public Builder setIndexStatus( } else { indexStatusBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -5703,7 +8704,8 @@ public Builder setIndexStatus( * * If document is indexed successfully, the index_time field is populated. * * Otherwise, if document is not indexed due to errors, the error_samples * field is populated. - * * Otherwise, index_status is unset. + * * Otherwise, if document's index is in progress, the pending_message field + * is populated. * * * @@ -5713,7 +8715,7 @@ public Builder setIndexStatus( public Builder mergeIndexStatus( com.google.cloud.discoveryengine.v1beta.Document.IndexStatus value) { if (indexStatusBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && indexStatus_ != null && indexStatus_ != com.google.cloud.discoveryengine.v1beta.Document.IndexStatus @@ -5726,7 +8728,7 @@ public Builder mergeIndexStatus( indexStatusBuilder_.mergeFrom(value); } if (indexStatus_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -5741,7 +8743,8 @@ public Builder mergeIndexStatus( * * If document is indexed successfully, the index_time field is populated. * * Otherwise, if document is not indexed due to errors, the error_samples * field is populated. - * * Otherwise, index_status is unset. + * * Otherwise, if document's index is in progress, the pending_message field + * is populated. * * * @@ -5749,7 +8752,7 @@ public Builder mergeIndexStatus( * */ public Builder clearIndexStatus() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); indexStatus_ = null; if (indexStatusBuilder_ != null) { indexStatusBuilder_.dispose(); @@ -5768,7 +8771,8 @@ public Builder clearIndexStatus() { * * If document is indexed successfully, the index_time field is populated. * * Otherwise, if document is not indexed due to errors, the error_samples * field is populated. - * * Otherwise, index_status is unset. + * * Otherwise, if document's index is in progress, the pending_message field + * is populated. * * * @@ -5777,7 +8781,7 @@ public Builder clearIndexStatus() { */ public com.google.cloud.discoveryengine.v1beta.Document.IndexStatus.Builder getIndexStatusBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return internalGetIndexStatusFieldBuilder().getBuilder(); } @@ -5791,7 +8795,8 @@ public Builder clearIndexStatus() { * * If document is indexed successfully, the index_time field is populated. * * Otherwise, if document is not indexed due to errors, the error_samples * field is populated. - * * Otherwise, index_status is unset. + * * Otherwise, if document's index is in progress, the pending_message field + * is populated. * * * @@ -5818,7 +8823,8 @@ public Builder clearIndexStatus() { * * If document is indexed successfully, the index_time field is populated. * * Otherwise, if document is not indexed due to errors, the error_samples * field is populated. - * * Otherwise, index_status is unset. + * * Otherwise, if document's index is in progress, the pending_message field + * is populated. * * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfo.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfo.java index b74c90eb54d2..264bf5e13a65 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfo.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfo.java @@ -495,6 +495,53 @@ public boolean getJoined() { return joined_; } + public static final int CONVERSION_VALUE_FIELD_NUMBER = 7; + private float conversionValue_ = 0F; + + /** + * + * + *
            +   * Optional. The conversion value associated with this Document.
            +   * Must be set if
            +   * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +   * is "conversion".
            +   *
            +   * For example, a value of 1000 signifies that 1000 seconds were spent viewing
            +   * a Document for the `watch` conversion type.
            +   * 
            + * + * optional float conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the conversionValue field is set. + */ + @java.lang.Override + public boolean hasConversionValue() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. The conversion value associated with this Document.
            +   * Must be set if
            +   * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +   * is "conversion".
            +   *
            +   * For example, a value of 1000 signifies that 1000 seconds were spent viewing
            +   * a Document for the `watch` conversion type.
            +   * 
            + * + * optional float conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The conversionValue. + */ + @java.lang.Override + public float getConversionValue() { + return conversionValue_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -527,6 +574,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (documentDescriptorCase_ == 6) { com.google.protobuf.GeneratedMessage.writeString(output, 6, documentDescriptor_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeFloat(7, conversionValue_); + } getUnknownFields().writeTo(output); } @@ -559,6 +609,9 @@ public int getSerializedSize() { if (documentDescriptorCase_ == 6) { size += com.google.protobuf.GeneratedMessage.computeStringSize(6, documentDescriptor_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, conversionValue_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -581,6 +634,11 @@ public boolean equals(final java.lang.Object obj) { } if (!getPromotionIdsList().equals(other.getPromotionIdsList())) return false; if (getJoined() != other.getJoined()) return false; + if (hasConversionValue() != other.hasConversionValue()) return false; + if (hasConversionValue()) { + if (java.lang.Float.floatToIntBits(getConversionValue()) + != java.lang.Float.floatToIntBits(other.getConversionValue())) return false; + } if (!getDocumentDescriptorCase().equals(other.getDocumentDescriptorCase())) return false; switch (documentDescriptorCase_) { case 1: @@ -616,6 +674,10 @@ public int hashCode() { } hash = (37 * hash) + JOINED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getJoined()); + if (hasConversionValue()) { + hash = (37 * hash) + CONVERSION_VALUE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getConversionValue()); + } switch (documentDescriptorCase_) { case 1: hash = (37 * hash) + ID_FIELD_NUMBER; @@ -775,6 +837,7 @@ public Builder clear() { quantity_ = 0; promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); joined_ = false; + conversionValue_ = 0F; documentDescriptorCase_ = 0; documentDescriptor_ = null; return this; @@ -826,6 +889,10 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.DocumentInfo if (((from_bitField0_ & 0x00000020) != 0)) { result.joined_ = joined_; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.conversionValue_ = conversionValue_; + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -863,6 +930,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.DocumentInfo ot if (other.getJoined() != false) { setJoined(other.getJoined()); } + if (other.hasConversionValue()) { + setConversionValue(other.getConversionValue()); + } switch (other.getDocumentDescriptorCase()) { case ID: { @@ -956,6 +1026,12 @@ public Builder mergeFrom( documentDescriptor_ = s; break; } // case 50 + case 61: + { + conversionValue_ = input.readFloat(); + bitField0_ |= 0x00000040; + break; + } // case 61 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1779,6 +1855,102 @@ public Builder clearJoined() { return this; } + private float conversionValue_; + + /** + * + * + *
            +     * Optional. The conversion value associated with this Document.
            +     * Must be set if
            +     * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +     * is "conversion".
            +     *
            +     * For example, a value of 1000 signifies that 1000 seconds were spent viewing
            +     * a Document for the `watch` conversion type.
            +     * 
            + * + * optional float conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the conversionValue field is set. + */ + @java.lang.Override + public boolean hasConversionValue() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +     * Optional. The conversion value associated with this Document.
            +     * Must be set if
            +     * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +     * is "conversion".
            +     *
            +     * For example, a value of 1000 signifies that 1000 seconds were spent viewing
            +     * a Document for the `watch` conversion type.
            +     * 
            + * + * optional float conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The conversionValue. + */ + @java.lang.Override + public float getConversionValue() { + return conversionValue_; + } + + /** + * + * + *
            +     * Optional. The conversion value associated with this Document.
            +     * Must be set if
            +     * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +     * is "conversion".
            +     *
            +     * For example, a value of 1000 signifies that 1000 seconds were spent viewing
            +     * a Document for the `watch` conversion type.
            +     * 
            + * + * optional float conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The conversionValue to set. + * @return This builder for chaining. + */ + public Builder setConversionValue(float value) { + + conversionValue_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The conversion value associated with this Document.
            +     * Must be set if
            +     * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +     * is "conversion".
            +     *
            +     * For example, a value of 1000 signifies that 1000 seconds were spent viewing
            +     * a Document for the `watch` conversion type.
            +     * 
            + * + * optional float conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearConversionValue() { + bitField0_ = (bitField0_ & ~0x00000040); + conversionValue_ = 0F; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.DocumentInfo) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfoOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfoOrBuilder.java index 7f50b38a9222..eb9baabf7823 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfoOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentInfoOrBuilder.java @@ -266,6 +266,44 @@ public interface DocumentInfoOrBuilder */ boolean getJoined(); + /** + * + * + *
            +   * Optional. The conversion value associated with this Document.
            +   * Must be set if
            +   * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +   * is "conversion".
            +   *
            +   * For example, a value of 1000 signifies that 1000 seconds were spent viewing
            +   * a Document for the `watch` conversion type.
            +   * 
            + * + * optional float conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the conversionValue field is set. + */ + boolean hasConversionValue(); + + /** + * + * + *
            +   * Optional. The conversion value associated with this Document.
            +   * Must be set if
            +   * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +   * is "conversion".
            +   *
            +   * For example, a value of 1000 signifies that 1000 seconds were spent viewing
            +   * a Document for the `watch` conversion type.
            +   * 
            + * + * optional float conversion_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The conversionValue. + */ + float getConversionValue(); + com.google.cloud.discoveryengine.v1beta.DocumentInfo.DocumentDescriptorCase getDocumentDescriptorCase(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentOrBuilder.java index 0b3e0020d8aa..3032ebd1ab63 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentOrBuilder.java @@ -157,7 +157,7 @@ public interface DocumentOrBuilder * Immutable. The identifier of the document. * * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. + * standard with a length limit of 128 characters. * * * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -173,7 +173,7 @@ public interface DocumentOrBuilder * Immutable. The identifier of the document. * * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. + * standard with a length limit of 128 characters. * * * string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; @@ -212,9 +212,8 @@ public interface DocumentOrBuilder * * *
            -   * The unstructured data linked to this document. Content must be set if this
            -   * document is under a
            -   * `CONTENT_REQUIRED` data store.
            +   * The unstructured data linked to this document. Content can only be set
            +   * and must be set if this document is under a `CONTENT_REQUIRED` data store.
                * 
            * * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; @@ -227,9 +226,8 @@ public interface DocumentOrBuilder * * *
            -   * The unstructured data linked to this document. Content must be set if this
            -   * document is under a
            -   * `CONTENT_REQUIRED` data store.
            +   * The unstructured data linked to this document. Content can only be set
            +   * and must be set if this document is under a `CONTENT_REQUIRED` data store.
                * 
            * * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; @@ -242,9 +240,8 @@ public interface DocumentOrBuilder * * *
            -   * The unstructured data linked to this document. Content must be set if this
            -   * document is under a
            -   * `CONTENT_REQUIRED` data store.
            +   * The unstructured data linked to this document. Content can only be set
            +   * and must be set if this document is under a `CONTENT_REQUIRED` data store.
                * 
            * * .google.cloud.discoveryengine.v1beta.Document.Content content = 10; @@ -335,11 +332,51 @@ public interface DocumentOrBuilder * * *
            -   * Output only. The last time the document was indexed. If this field is set,
            -   * the document could be returned in search results.
            +   * Access control information for the document.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Document.AclInfo acl_info = 11; + * + * @return Whether the aclInfo field is set. + */ + boolean hasAclInfo(); + + /** * - * This field is OUTPUT_ONLY. If this field is not populated, it means the - * document has never been indexed. + * + *
            +   * Access control information for the document.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Document.AclInfo acl_info = 11; + * + * @return The aclInfo. + */ + com.google.cloud.discoveryengine.v1beta.Document.AclInfo getAclInfo(); + + /** + * + * + *
            +   * Access control information for the document.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Document.AclInfo acl_info = 11; + */ + com.google.cloud.discoveryengine.v1beta.Document.AclInfoOrBuilder getAclInfoOrBuilder(); + + /** + * + * + *
            +   * Output only. The time when the document was last indexed.
            +   *
            +   * If this field is populated, it means the document has been indexed.
            +   * While documents typically become searchable within seconds of indexing,
            +   * it can sometimes take up to a few hours.
            +   *
            +   * If this field is not populated, it means the document has never been
            +   * indexed.
                * 
            * * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -353,11 +390,14 @@ public interface DocumentOrBuilder * * *
            -   * Output only. The last time the document was indexed. If this field is set,
            -   * the document could be returned in search results.
            +   * Output only. The time when the document was last indexed.
            +   *
            +   * If this field is populated, it means the document has been indexed.
            +   * While documents typically become searchable within seconds of indexing,
            +   * it can sometimes take up to a few hours.
                *
            -   * This field is OUTPUT_ONLY. If this field is not populated, it means the
            -   * document has never been indexed.
            +   * If this field is not populated, it means the document has never been
            +   * indexed.
                * 
            * * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -371,11 +411,14 @@ public interface DocumentOrBuilder * * *
            -   * Output only. The last time the document was indexed. If this field is set,
            -   * the document could be returned in search results.
            +   * Output only. The time when the document was last indexed.
            +   *
            +   * If this field is populated, it means the document has been indexed.
            +   * While documents typically become searchable within seconds of indexing,
            +   * it can sometimes take up to a few hours.
                *
            -   * This field is OUTPUT_ONLY. If this field is not populated, it means the
            -   * document has never been indexed.
            +   * If this field is not populated, it means the document has never been
            +   * indexed.
                * 
            * * .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -392,7 +435,8 @@ public interface DocumentOrBuilder * * If document is indexed successfully, the index_time field is populated. * * Otherwise, if document is not indexed due to errors, the error_samples * field is populated. - * * Otherwise, index_status is unset. + * * Otherwise, if document's index is in progress, the pending_message field + * is populated. * * * @@ -412,7 +456,8 @@ public interface DocumentOrBuilder * * If document is indexed successfully, the index_time field is populated. * * Otherwise, if document is not indexed due to errors, the error_samples * field is populated. - * * Otherwise, index_status is unset. + * * Otherwise, if document's index is in progress, the pending_message field + * is populated. * * * @@ -432,7 +477,8 @@ public interface DocumentOrBuilder * * If document is indexed successfully, the index_time field is populated. * * Otherwise, if document is not indexed due to errors, the error_samples * field is populated. - * * Otherwise, index_status is unset. + * * Otherwise, if document's index is in progress, the pending_message field + * is populated. * * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfig.java index 5f692594d674..adb85f006a8f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfig.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfig.java @@ -3432,7 +3432,312 @@ public com.google.protobuf.Parser getParserForType() { public interface LayoutParsingConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig) - com.google.protobuf.MessageOrBuilder {} + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Optional. If true, the LLM based annotation is added to the table
            +       * during parsing.
            +       * 
            + * + * bool enable_table_annotation = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableTableAnnotation. + */ + boolean getEnableTableAnnotation(); + + /** + * + * + *
            +       * Optional. If true, the LLM based annotation is added to the image
            +       * during parsing.
            +       * 
            + * + * bool enable_image_annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableImageAnnotation. + */ + boolean getEnableImageAnnotation(); + + /** + * + * + *
            +       * Optional. If true, the pdf layout will be refined using an LLM.
            +       * 
            + * + * bool enable_llm_layout_parsing = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableLlmLayoutParsing. + */ + boolean getEnableLlmLayoutParsing(); + + /** + * + * + *
            +       * Optional. Contains the required structure types to extract from the
            +       * document. Supported values:
            +       *
            +       * * `shareholder-structure`
            +       * 
            + * + * + * repeated string structured_content_types = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the structuredContentTypes. + */ + java.util.List getStructuredContentTypesList(); + + /** + * + * + *
            +       * Optional. Contains the required structure types to extract from the
            +       * document. Supported values:
            +       *
            +       * * `shareholder-structure`
            +       * 
            + * + * + * repeated string structured_content_types = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of structuredContentTypes. + */ + int getStructuredContentTypesCount(); + + /** + * + * + *
            +       * Optional. Contains the required structure types to extract from the
            +       * document. Supported values:
            +       *
            +       * * `shareholder-structure`
            +       * 
            + * + * + * repeated string structured_content_types = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The structuredContentTypes at the given index. + */ + java.lang.String getStructuredContentTypes(int index); + + /** + * + * + *
            +       * Optional. Contains the required structure types to extract from the
            +       * document. Supported values:
            +       *
            +       * * `shareholder-structure`
            +       * 
            + * + * + * repeated string structured_content_types = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the structuredContentTypes at the given index. + */ + com.google.protobuf.ByteString getStructuredContentTypesBytes(int index); + + /** + * + * + *
            +       * Optional. List of HTML elements to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_elements = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeHtmlElements. + */ + java.util.List getExcludeHtmlElementsList(); + + /** + * + * + *
            +       * Optional. List of HTML elements to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_elements = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeHtmlElements. + */ + int getExcludeHtmlElementsCount(); + + /** + * + * + *
            +       * Optional. List of HTML elements to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_elements = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeHtmlElements at the given index. + */ + java.lang.String getExcludeHtmlElements(int index); + + /** + * + * + *
            +       * Optional. List of HTML elements to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_elements = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeHtmlElements at the given index. + */ + com.google.protobuf.ByteString getExcludeHtmlElementsBytes(int index); + + /** + * + * + *
            +       * Optional. List of HTML classes to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_classes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeHtmlClasses. + */ + java.util.List getExcludeHtmlClassesList(); + + /** + * + * + *
            +       * Optional. List of HTML classes to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_classes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeHtmlClasses. + */ + int getExcludeHtmlClassesCount(); + + /** + * + * + *
            +       * Optional. List of HTML classes to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_classes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeHtmlClasses at the given index. + */ + java.lang.String getExcludeHtmlClasses(int index); + + /** + * + * + *
            +       * Optional. List of HTML classes to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_classes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeHtmlClasses at the given index. + */ + com.google.protobuf.ByteString getExcludeHtmlClassesBytes(int index); + + /** + * + * + *
            +       * Optional. List of HTML ids to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeHtmlIds. + */ + java.util.List getExcludeHtmlIdsList(); + + /** + * + * + *
            +       * Optional. List of HTML ids to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeHtmlIds. + */ + int getExcludeHtmlIdsCount(); + + /** + * + * + *
            +       * Optional. List of HTML ids to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeHtmlIds at the given index. + */ + java.lang.String getExcludeHtmlIds(int index); + + /** + * + * + *
            +       * Optional. List of HTML ids to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeHtmlIds at the given index. + */ + com.google.protobuf.ByteString getExcludeHtmlIdsBytes(int index); + + /** + * + * + *
            +       * Optional. If true, the processed document will be made available for
            +       * the GetProcessedDocument API.
            +       * 
            + * + * bool enable_get_processed_document = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableGetProcessedDocument. + */ + boolean getEnableGetProcessedDocument(); + } /** * @@ -3465,7 +3770,12 @@ private LayoutParsingConfig(com.google.protobuf.GeneratedMessage.Builder buil super(builder); } - private LayoutParsingConfig() {} + private LayoutParsingConfig() { + structuredContentTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeHtmlElements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeHtmlClasses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeHtmlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto @@ -3484,338 +3794,2045 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .LayoutParsingConfig.Builder.class); } - private byte memoizedIsInitialized = -1; + public static final int ENABLE_TABLE_ANNOTATION_FIELD_NUMBER = 1; + private boolean enableTableAnnotation_ = false; + /** + * + * + *
            +       * Optional. If true, the LLM based annotation is added to the table
            +       * during parsing.
            +       * 
            + * + * bool enable_table_annotation = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableTableAnnotation. + */ @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 boolean getEnableTableAnnotation() { + return enableTableAnnotation_; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getUnknownFields().writeTo(output); - } + public static final int ENABLE_IMAGE_ANNOTATION_FIELD_NUMBER = 2; + private boolean enableImageAnnotation_ = false; + /** + * + * + *
            +       * Optional. If true, the LLM based annotation is added to the image
            +       * during parsing.
            +       * 
            + * + * bool enable_image_annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableImageAnnotation. + */ @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + public boolean getEnableImageAnnotation() { + return enableImageAnnotation_; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - other = - (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig) - obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static final int ENABLE_LLM_LAYOUT_PARSING_FIELD_NUMBER = 5; + private boolean enableLlmLayoutParsing_ = false; + /** + * + * + *
            +       * Optional. If true, the pdf layout will be refined using an LLM.
            +       * 
            + * + * bool enable_llm_layout_parsing = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableLlmLayoutParsing. + */ @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + public boolean getEnableLlmLayoutParsing() { + return enableLlmLayoutParsing_; } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static final int STRUCTURED_CONTENT_TYPES_FIELD_NUMBER = 9; - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList structuredContentTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** + * + * + *
            +       * Optional. Contains the required structure types to extract from the
            +       * document. Supported values:
            +       *
            +       * * `shareholder-structure`
            +       * 
            + * + * + * repeated string structured_content_types = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the structuredContentTypes. + */ + public com.google.protobuf.ProtocolStringList getStructuredContentTypesList() { + return structuredContentTypes_; } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
            +       * Optional. Contains the required structure types to extract from the
            +       * document. Supported values:
            +       *
            +       * * `shareholder-structure`
            +       * 
            + * + * + * repeated string structured_content_types = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of structuredContentTypes. + */ + public int getStructuredContentTypesCount() { + return structuredContentTypes_.size(); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + /** + * + * + *
            +       * Optional. Contains the required structure types to extract from the
            +       * document. Supported values:
            +       *
            +       * * `shareholder-structure`
            +       * 
            + * + * + * repeated string structured_content_types = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The structuredContentTypes at the given index. + */ + public java.lang.String getStructuredContentTypes(int index) { + return structuredContentTypes_.get(index); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
            +       * Optional. Contains the required structure types to extract from the
            +       * document. Supported values:
            +       *
            +       * * `shareholder-structure`
            +       * 
            + * + * + * repeated string structured_content_types = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the structuredContentTypes at the given index. + */ + public com.google.protobuf.ByteString getStructuredContentTypesBytes(int index) { + return structuredContentTypes_.getByteString(index); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static final int EXCLUDE_HTML_ELEMENTS_FIELD_NUMBER = 10; - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludeHtmlElements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + /** + * + * + *
            +       * Optional. List of HTML elements to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_elements = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeHtmlElements. + */ + public com.google.protobuf.ProtocolStringList getExcludeHtmlElementsList() { + return excludeHtmlElements_; } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
            +       * Optional. List of HTML elements to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_elements = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeHtmlElements. + */ + public int getExcludeHtmlElementsCount() { + return excludeHtmlElements_.size(); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + /** + * + * + *
            +       * Optional. List of HTML elements to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_elements = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeHtmlElements at the given index. + */ + public java.lang.String getExcludeHtmlElements(int index) { + return excludeHtmlElements_.get(index); } - public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
            +       * Optional. List of HTML elements to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_elements = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeHtmlElements at the given index. + */ + public com.google.protobuf.ByteString getExcludeHtmlElementsBytes(int index) { + return excludeHtmlElements_.getByteString(index); } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static final int EXCLUDE_HTML_CLASSES_FIELD_NUMBER = 11; - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludeHtmlClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + /** + * + * + *
            +       * Optional. List of HTML classes to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_classes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeHtmlClasses. + */ + public com.google.protobuf.ProtocolStringList getExcludeHtmlClassesList() { + return excludeHtmlClasses_; } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + /** + * + * + *
            +       * Optional. List of HTML classes to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_classes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeHtmlClasses. + */ + public int getExcludeHtmlClassesCount() { + return excludeHtmlClasses_.size(); } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * + * + *
            +       * Optional. List of HTML classes to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_classes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeHtmlClasses at the given index. + */ + public java.lang.String getExcludeHtmlClasses(int index) { + return excludeHtmlClasses_.get(index); } /** * * *
            -       * The layout parsing configurations for documents.
            +       * Optional. List of HTML classes to exclude from the parsed content.
                    * 
            * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig} + * repeated string exclude_html_classes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeHtmlClasses at the given index. */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig) - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + public com.google.protobuf.ByteString getExcludeHtmlClassesBytes(int index) { + return excludeHtmlClasses_.getByteString(index); + } + + public static final int EXCLUDE_HTML_IDS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludeHtmlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +       * Optional. List of HTML ids to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeHtmlIds. + */ + public com.google.protobuf.ProtocolStringList getExcludeHtmlIdsList() { + return excludeHtmlIds_; + } + + /** + * + * + *
            +       * Optional. List of HTML ids to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeHtmlIds. + */ + public int getExcludeHtmlIdsCount() { + return excludeHtmlIds_.size(); + } + + /** + * + * + *
            +       * Optional. List of HTML ids to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeHtmlIds at the given index. + */ + public java.lang.String getExcludeHtmlIds(int index) { + return excludeHtmlIds_.get(index); + } + + /** + * + * + *
            +       * Optional. List of HTML ids to exclude from the parsed content.
            +       * 
            + * + * repeated string exclude_html_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeHtmlIds at the given index. + */ + public com.google.protobuf.ByteString getExcludeHtmlIdsBytes(int index) { + return excludeHtmlIds_.getByteString(index); + } + + public static final int ENABLE_GET_PROCESSED_DOCUMENT_FIELD_NUMBER = 14; + private boolean enableGetProcessedDocument_ = false; + + /** + * + * + *
            +       * Optional. If true, the processed document will be made available for
            +       * the GetProcessedDocument API.
            +       * 
            + * + * bool enable_get_processed_document = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableGetProcessedDocument. + */ + @java.lang.Override + public boolean getEnableGetProcessedDocument() { + return enableGetProcessedDocument_; + } + + 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 (enableTableAnnotation_ != false) { + output.writeBool(1, enableTableAnnotation_); + } + if (enableImageAnnotation_ != false) { + output.writeBool(2, enableImageAnnotation_); + } + if (enableLlmLayoutParsing_ != false) { + output.writeBool(5, enableLlmLayoutParsing_); + } + for (int i = 0; i < structuredContentTypes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 9, structuredContentTypes_.getRaw(i)); + } + for (int i = 0; i < excludeHtmlElements_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 10, excludeHtmlElements_.getRaw(i)); + } + for (int i = 0; i < excludeHtmlClasses_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 11, excludeHtmlClasses_.getRaw(i)); + } + for (int i = 0; i < excludeHtmlIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, excludeHtmlIds_.getRaw(i)); + } + if (enableGetProcessedDocument_ != false) { + output.writeBool(14, enableGetProcessedDocument_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableTableAnnotation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableTableAnnotation_); + } + if (enableImageAnnotation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableImageAnnotation_); + } + if (enableLlmLayoutParsing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableLlmLayoutParsing_); + } + { + int dataSize = 0; + for (int i = 0; i < structuredContentTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(structuredContentTypes_.getRaw(i)); + } + size += dataSize; + size += 1 * getStructuredContentTypesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludeHtmlElements_.size(); i++) { + dataSize += computeStringSizeNoTag(excludeHtmlElements_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludeHtmlElementsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludeHtmlClasses_.size(); i++) { + dataSize += computeStringSizeNoTag(excludeHtmlClasses_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludeHtmlClassesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludeHtmlIds_.size(); i++) { + dataSize += computeStringSizeNoTag(excludeHtmlIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludeHtmlIdsList().size(); + } + if (enableGetProcessedDocument_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 14, enableGetProcessedDocument_); + } + 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.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + other = + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) + obj; + + if (getEnableTableAnnotation() != other.getEnableTableAnnotation()) return false; + if (getEnableImageAnnotation() != other.getEnableImageAnnotation()) return false; + if (getEnableLlmLayoutParsing() != other.getEnableLlmLayoutParsing()) return false; + if (!getStructuredContentTypesList().equals(other.getStructuredContentTypesList())) + return false; + if (!getExcludeHtmlElementsList().equals(other.getExcludeHtmlElementsList())) return false; + if (!getExcludeHtmlClassesList().equals(other.getExcludeHtmlClassesList())) return false; + if (!getExcludeHtmlIdsList().equals(other.getExcludeHtmlIdsList())) return false; + if (getEnableGetProcessedDocument() != other.getEnableGetProcessedDocument()) 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) + ENABLE_TABLE_ANNOTATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableTableAnnotation()); + hash = (37 * hash) + ENABLE_IMAGE_ANNOTATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableImageAnnotation()); + hash = (37 * hash) + ENABLE_LLM_LAYOUT_PARSING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableLlmLayoutParsing()); + if (getStructuredContentTypesCount() > 0) { + hash = (37 * hash) + STRUCTURED_CONTENT_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getStructuredContentTypesList().hashCode(); + } + if (getExcludeHtmlElementsCount() > 0) { + hash = (37 * hash) + EXCLUDE_HTML_ELEMENTS_FIELD_NUMBER; + hash = (53 * hash) + getExcludeHtmlElementsList().hashCode(); + } + if (getExcludeHtmlClassesCount() > 0) { + hash = (37 * hash) + EXCLUDE_HTML_CLASSES_FIELD_NUMBER; + hash = (53 * hash) + getExcludeHtmlClassesList().hashCode(); + } + if (getExcludeHtmlIdsCount() > 0) { + hash = (37 * hash) + EXCLUDE_HTML_IDS_FIELD_NUMBER; + hash = (53 * hash) + getExcludeHtmlIdsList().hashCode(); + } + hash = (37 * hash) + ENABLE_GET_PROCESSED_DOCUMENT_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableGetProcessedDocument()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + 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.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom( + 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.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * The layout parsing configurations for documents.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig) + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig .LayoutParsingConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_descriptor; } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig.class, - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig.Builder.class); + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.class, + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableTableAnnotation_ = false; + enableImageAnnotation_ = false; + enableLlmLayoutParsing_ = false; + structuredContentTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeHtmlElements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeHtmlClasses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludeHtmlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + enableGetProcessedDocument_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + build() { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + result = + new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableTableAnnotation_ = enableTableAnnotation_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableImageAnnotation_ = enableImageAnnotation_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableLlmLayoutParsing_ = enableLlmLayoutParsing_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + structuredContentTypes_.makeImmutable(); + result.structuredContentTypes_ = structuredContentTypes_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + excludeHtmlElements_.makeImmutable(); + result.excludeHtmlElements_ = excludeHtmlElements_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + excludeHtmlClasses_.makeImmutable(); + result.excludeHtmlClasses_ = excludeHtmlClasses_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + excludeHtmlIds_.makeImmutable(); + result.excludeHtmlIds_ = excludeHtmlIds_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.enableGetProcessedDocument_ = enableGetProcessedDocument_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig + .LayoutParsingConfig.getDefaultInstance()) return this; + if (other.getEnableTableAnnotation() != false) { + setEnableTableAnnotation(other.getEnableTableAnnotation()); + } + if (other.getEnableImageAnnotation() != false) { + setEnableImageAnnotation(other.getEnableImageAnnotation()); + } + if (other.getEnableLlmLayoutParsing() != false) { + setEnableLlmLayoutParsing(other.getEnableLlmLayoutParsing()); + } + if (!other.structuredContentTypes_.isEmpty()) { + if (structuredContentTypes_.isEmpty()) { + structuredContentTypes_ = other.structuredContentTypes_; + bitField0_ |= 0x00000008; + } else { + ensureStructuredContentTypesIsMutable(); + structuredContentTypes_.addAll(other.structuredContentTypes_); + } + onChanged(); + } + if (!other.excludeHtmlElements_.isEmpty()) { + if (excludeHtmlElements_.isEmpty()) { + excludeHtmlElements_ = other.excludeHtmlElements_; + bitField0_ |= 0x00000010; + } else { + ensureExcludeHtmlElementsIsMutable(); + excludeHtmlElements_.addAll(other.excludeHtmlElements_); + } + onChanged(); + } + if (!other.excludeHtmlClasses_.isEmpty()) { + if (excludeHtmlClasses_.isEmpty()) { + excludeHtmlClasses_ = other.excludeHtmlClasses_; + bitField0_ |= 0x00000020; + } else { + ensureExcludeHtmlClassesIsMutable(); + excludeHtmlClasses_.addAll(other.excludeHtmlClasses_); + } + onChanged(); + } + if (!other.excludeHtmlIds_.isEmpty()) { + if (excludeHtmlIds_.isEmpty()) { + excludeHtmlIds_ = other.excludeHtmlIds_; + bitField0_ |= 0x00000040; + } else { + ensureExcludeHtmlIdsIsMutable(); + excludeHtmlIds_.addAll(other.excludeHtmlIds_); + } + onChanged(); + } + if (other.getEnableGetProcessedDocument() != false) { + setEnableGetProcessedDocument(other.getEnableGetProcessedDocument()); + } + 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: + { + enableTableAnnotation_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + enableImageAnnotation_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 40: + { + enableLlmLayoutParsing_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 40 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureStructuredContentTypesIsMutable(); + structuredContentTypes_.add(s); + break; + } // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludeHtmlElementsIsMutable(); + excludeHtmlElements_.add(s); + break; + } // case 82 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludeHtmlClassesIsMutable(); + excludeHtmlClasses_.add(s); + break; + } // case 90 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludeHtmlIdsIsMutable(); + excludeHtmlIds_.add(s); + break; + } // case 98 + case 112: + { + enableGetProcessedDocument_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 112 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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 enableTableAnnotation_; + + /** + * + * + *
            +         * Optional. If true, the LLM based annotation is added to the table
            +         * during parsing.
            +         * 
            + * + * bool enable_table_annotation = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableTableAnnotation. + */ + @java.lang.Override + public boolean getEnableTableAnnotation() { + return enableTableAnnotation_; + } + + /** + * + * + *
            +         * Optional. If true, the LLM based annotation is added to the table
            +         * during parsing.
            +         * 
            + * + * bool enable_table_annotation = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableTableAnnotation to set. + * @return This builder for chaining. + */ + public Builder setEnableTableAnnotation(boolean value) { + + enableTableAnnotation_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. If true, the LLM based annotation is added to the table
            +         * during parsing.
            +         * 
            + * + * bool enable_table_annotation = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableTableAnnotation() { + bitField0_ = (bitField0_ & ~0x00000001); + enableTableAnnotation_ = false; + onChanged(); + return this; + } + + private boolean enableImageAnnotation_; + + /** + * + * + *
            +         * Optional. If true, the LLM based annotation is added to the image
            +         * during parsing.
            +         * 
            + * + * bool enable_image_annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableImageAnnotation. + */ + @java.lang.Override + public boolean getEnableImageAnnotation() { + return enableImageAnnotation_; + } + + /** + * + * + *
            +         * Optional. If true, the LLM based annotation is added to the image
            +         * during parsing.
            +         * 
            + * + * bool enable_image_annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableImageAnnotation to set. + * @return This builder for chaining. + */ + public Builder setEnableImageAnnotation(boolean value) { + + enableImageAnnotation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. If true, the LLM based annotation is added to the image
            +         * during parsing.
            +         * 
            + * + * bool enable_image_annotation = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableImageAnnotation() { + bitField0_ = (bitField0_ & ~0x00000002); + enableImageAnnotation_ = false; + onChanged(); + return this; + } + + private boolean enableLlmLayoutParsing_; + + /** + * + * + *
            +         * Optional. If true, the pdf layout will be refined using an LLM.
            +         * 
            + * + * bool enable_llm_layout_parsing = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableLlmLayoutParsing. + */ + @java.lang.Override + public boolean getEnableLlmLayoutParsing() { + return enableLlmLayoutParsing_; + } + + /** + * + * + *
            +         * Optional. If true, the pdf layout will be refined using an LLM.
            +         * 
            + * + * bool enable_llm_layout_parsing = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableLlmLayoutParsing to set. + * @return This builder for chaining. + */ + public Builder setEnableLlmLayoutParsing(boolean value) { + + enableLlmLayoutParsing_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. If true, the pdf layout will be refined using an LLM.
            +         * 
            + * + * bool enable_llm_layout_parsing = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableLlmLayoutParsing() { + bitField0_ = (bitField0_ & ~0x00000004); + enableLlmLayoutParsing_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList structuredContentTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureStructuredContentTypesIsMutable() { + if (!structuredContentTypes_.isModifiable()) { + structuredContentTypes_ = + new com.google.protobuf.LazyStringArrayList(structuredContentTypes_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
            +         * Optional. Contains the required structure types to extract from the
            +         * document. Supported values:
            +         *
            +         * * `shareholder-structure`
            +         * 
            + * + * + * repeated string structured_content_types = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the structuredContentTypes. + */ + public com.google.protobuf.ProtocolStringList getStructuredContentTypesList() { + structuredContentTypes_.makeImmutable(); + return structuredContentTypes_; + } + + /** + * + * + *
            +         * Optional. Contains the required structure types to extract from the
            +         * document. Supported values:
            +         *
            +         * * `shareholder-structure`
            +         * 
            + * + * + * repeated string structured_content_types = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of structuredContentTypes. + */ + public int getStructuredContentTypesCount() { + return structuredContentTypes_.size(); + } + + /** + * + * + *
            +         * Optional. Contains the required structure types to extract from the
            +         * document. Supported values:
            +         *
            +         * * `shareholder-structure`
            +         * 
            + * + * + * repeated string structured_content_types = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The structuredContentTypes at the given index. + */ + public java.lang.String getStructuredContentTypes(int index) { + return structuredContentTypes_.get(index); + } + + /** + * + * + *
            +         * Optional. Contains the required structure types to extract from the
            +         * document. Supported values:
            +         *
            +         * * `shareholder-structure`
            +         * 
            + * + * + * repeated string structured_content_types = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the structuredContentTypes at the given index. + */ + public com.google.protobuf.ByteString getStructuredContentTypesBytes(int index) { + return structuredContentTypes_.getByteString(index); + } + + /** + * + * + *
            +         * Optional. Contains the required structure types to extract from the
            +         * document. Supported values:
            +         *
            +         * * `shareholder-structure`
            +         * 
            + * + * + * repeated string structured_content_types = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The structuredContentTypes to set. + * @return This builder for chaining. + */ + public Builder setStructuredContentTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStructuredContentTypesIsMutable(); + structuredContentTypes_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Contains the required structure types to extract from the
            +         * document. Supported values:
            +         *
            +         * * `shareholder-structure`
            +         * 
            + * + * + * repeated string structured_content_types = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The structuredContentTypes to add. + * @return This builder for chaining. + */ + public Builder addStructuredContentTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStructuredContentTypesIsMutable(); + structuredContentTypes_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Contains the required structure types to extract from the
            +         * document. Supported values:
            +         *
            +         * * `shareholder-structure`
            +         * 
            + * + * + * repeated string structured_content_types = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The structuredContentTypes to add. + * @return This builder for chaining. + */ + public Builder addAllStructuredContentTypes(java.lang.Iterable values) { + ensureStructuredContentTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, structuredContentTypes_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Contains the required structure types to extract from the
            +         * document. Supported values:
            +         *
            +         * * `shareholder-structure`
            +         * 
            + * + * + * repeated string structured_content_types = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearStructuredContentTypes() { + structuredContentTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Contains the required structure types to extract from the
            +         * document. Supported values:
            +         *
            +         * * `shareholder-structure`
            +         * 
            + * + * + * repeated string structured_content_types = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the structuredContentTypes to add. + * @return This builder for chaining. + */ + public Builder addStructuredContentTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureStructuredContentTypesIsMutable(); + structuredContentTypes_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludeHtmlElements_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludeHtmlElementsIsMutable() { + if (!excludeHtmlElements_.isModifiable()) { + excludeHtmlElements_ = + new com.google.protobuf.LazyStringArrayList(excludeHtmlElements_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
            +         * Optional. List of HTML elements to exclude from the parsed content.
            +         * 
            + * + * + * repeated string exclude_html_elements = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeHtmlElements. + */ + public com.google.protobuf.ProtocolStringList getExcludeHtmlElementsList() { + excludeHtmlElements_.makeImmutable(); + return excludeHtmlElements_; + } + + /** + * + * + *
            +         * Optional. List of HTML elements to exclude from the parsed content.
            +         * 
            + * + * + * repeated string exclude_html_elements = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeHtmlElements. + */ + public int getExcludeHtmlElementsCount() { + return excludeHtmlElements_.size(); + } + + /** + * + * + *
            +         * Optional. List of HTML elements to exclude from the parsed content.
            +         * 
            + * + * + * repeated string exclude_html_elements = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeHtmlElements at the given index. + */ + public java.lang.String getExcludeHtmlElements(int index) { + return excludeHtmlElements_.get(index); + } + + /** + * + * + *
            +         * Optional. List of HTML elements to exclude from the parsed content.
            +         * 
            + * + * + * repeated string exclude_html_elements = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeHtmlElements at the given index. + */ + public com.google.protobuf.ByteString getExcludeHtmlElementsBytes(int index) { + return excludeHtmlElements_.getByteString(index); + } + + /** + * + * + *
            +         * Optional. List of HTML elements to exclude from the parsed content.
            +         * 
            + * + * + * repeated string exclude_html_elements = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The excludeHtmlElements to set. + * @return This builder for chaining. + */ + public Builder setExcludeHtmlElements(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeHtmlElementsIsMutable(); + excludeHtmlElements_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. List of HTML elements to exclude from the parsed content.
            +         * 
            + * + * + * repeated string exclude_html_elements = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The excludeHtmlElements to add. + * @return This builder for chaining. + */ + public Builder addExcludeHtmlElements(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeHtmlElementsIsMutable(); + excludeHtmlElements_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. List of HTML elements to exclude from the parsed content.
            +         * 
            + * + * + * repeated string exclude_html_elements = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The excludeHtmlElements to add. + * @return This builder for chaining. + */ + public Builder addAllExcludeHtmlElements(java.lang.Iterable values) { + ensureExcludeHtmlElementsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludeHtmlElements_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. List of HTML elements to exclude from the parsed content.
            +         * 
            + * + * + * repeated string exclude_html_elements = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExcludeHtmlElements() { + excludeHtmlElements_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. List of HTML elements to exclude from the parsed content.
            +         * 
            + * + * + * repeated string exclude_html_elements = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the excludeHtmlElements to add. + * @return This builder for chaining. + */ + public Builder addExcludeHtmlElementsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludeHtmlElementsIsMutable(); + excludeHtmlElements_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludeHtmlClasses_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludeHtmlClassesIsMutable() { + if (!excludeHtmlClasses_.isModifiable()) { + excludeHtmlClasses_ = new com.google.protobuf.LazyStringArrayList(excludeHtmlClasses_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
            +         * Optional. List of HTML classes to exclude from the parsed content.
            +         * 
            + * + * + * repeated string exclude_html_classes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeHtmlClasses. + */ + public com.google.protobuf.ProtocolStringList getExcludeHtmlClassesList() { + excludeHtmlClasses_.makeImmutable(); + return excludeHtmlClasses_; + } + + /** + * + * + *
            +         * Optional. List of HTML classes to exclude from the parsed content.
            +         * 
            + * + * + * repeated string exclude_html_classes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeHtmlClasses. + */ + public int getExcludeHtmlClassesCount() { + return excludeHtmlClasses_.size(); + } + + /** + * + * + *
            +         * Optional. List of HTML classes to exclude from the parsed content.
            +         * 
            + * + * + * repeated string exclude_html_classes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeHtmlClasses at the given index. + */ + public java.lang.String getExcludeHtmlClasses(int index) { + return excludeHtmlClasses_.get(index); + } + + /** + * + * + *
            +         * Optional. List of HTML classes to exclude from the parsed content.
            +         * 
            + * + * + * repeated string exclude_html_classes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeHtmlClasses at the given index. + */ + public com.google.protobuf.ByteString getExcludeHtmlClassesBytes(int index) { + return excludeHtmlClasses_.getByteString(index); + } + + /** + * + * + *
            +         * Optional. List of HTML classes to exclude from the parsed content.
            +         * 
            + * + * + * repeated string exclude_html_classes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The excludeHtmlClasses to set. + * @return This builder for chaining. + */ + public Builder setExcludeHtmlClasses(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeHtmlClassesIsMutable(); + excludeHtmlClasses_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. List of HTML classes to exclude from the parsed content.
            +         * 
            + * + * + * repeated string exclude_html_classes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The excludeHtmlClasses to add. + * @return This builder for chaining. + */ + public Builder addExcludeHtmlClasses(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeHtmlClassesIsMutable(); + excludeHtmlClasses_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. List of HTML classes to exclude from the parsed content.
            +         * 
            + * + * + * repeated string exclude_html_classes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The excludeHtmlClasses to add. + * @return This builder for chaining. + */ + public Builder addAllExcludeHtmlClasses(java.lang.Iterable values) { + ensureExcludeHtmlClassesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludeHtmlClasses_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. List of HTML classes to exclude from the parsed content.
            +         * 
            + * + * + * repeated string exclude_html_classes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExcludeHtmlClasses() { + excludeHtmlClasses_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. List of HTML classes to exclude from the parsed content.
            +         * 
            + * + * + * repeated string exclude_html_classes = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the excludeHtmlClasses to add. + * @return This builder for chaining. + */ + public Builder addExcludeHtmlClassesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludeHtmlClassesIsMutable(); + excludeHtmlClasses_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; } - // Construct using - // com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig.newBuilder() - private Builder() {} + private com.google.protobuf.LazyStringArrayList excludeHtmlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + private void ensureExcludeHtmlIdsIsMutable() { + if (!excludeHtmlIds_.isModifiable()) { + excludeHtmlIds_ = new com.google.protobuf.LazyStringArrayList(excludeHtmlIds_); + } + bitField0_ |= 0x00000040; } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; + /** + * + * + *
            +         * Optional. List of HTML ids to exclude from the parsed content.
            +         * 
            + * + * repeated string exclude_html_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeHtmlIds. + */ + public com.google.protobuf.ProtocolStringList getExcludeHtmlIdsList() { + excludeHtmlIds_.makeImmutable(); + return excludeHtmlIds_; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfigProto - .internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_descriptor; + /** + * + * + *
            +         * Optional. List of HTML ids to exclude from the parsed content.
            +         * 
            + * + * repeated string exclude_html_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeHtmlIds. + */ + public int getExcludeHtmlIdsCount() { + return excludeHtmlIds_.size(); } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig.getDefaultInstance(); + /** + * + * + *
            +         * Optional. List of HTML ids to exclude from the parsed content.
            +         * 
            + * + * repeated string exclude_html_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeHtmlIds at the given index. + */ + public java.lang.String getExcludeHtmlIds(int index) { + return excludeHtmlIds_.get(index); } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - build() { - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + /** + * + * + *
            +         * Optional. List of HTML ids to exclude from the parsed content.
            +         * 
            + * + * repeated string exclude_html_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeHtmlIds at the given index. + */ + public com.google.protobuf.ByteString getExcludeHtmlIdsBytes(int index) { + return excludeHtmlIds_.getByteString(index); } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - buildPartial() { - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - result = - new com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig(this); - onBuilt(); - return result; + /** + * + * + *
            +         * Optional. List of HTML ids to exclude from the parsed content.
            +         * 
            + * + * repeated string exclude_html_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The excludeHtmlIds to set. + * @return This builder for chaining. + */ + public Builder setExcludeHtmlIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeHtmlIdsIsMutable(); + excludeHtmlIds_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig) - other); - } else { - super.mergeFrom(other); - return this; + /** + * + * + *
            +         * Optional. List of HTML ids to exclude from the parsed content.
            +         * 
            + * + * repeated string exclude_html_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The excludeHtmlIds to add. + * @return This builder for chaining. + */ + public Builder addExcludeHtmlIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureExcludeHtmlIdsIsMutable(); + excludeHtmlIds_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.ParsingConfig - .LayoutParsingConfig.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); + /** + * + * + *
            +         * Optional. List of HTML ids to exclude from the parsed content.
            +         * 
            + * + * repeated string exclude_html_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The excludeHtmlIds to add. + * @return This builder for chaining. + */ + public Builder addAllExcludeHtmlIds(java.lang.Iterable values) { + ensureExcludeHtmlIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludeHtmlIds_); + bitField0_ |= 0x00000040; onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
            +         * Optional. List of HTML ids to exclude from the parsed content.
            +         * 
            + * + * repeated string exclude_html_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExcludeHtmlIds() { + excludeHtmlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return 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(); + /** + * + * + *
            +         * Optional. List of HTML ids to exclude from the parsed content.
            +         * 
            + * + * repeated string exclude_html_ids = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the excludeHtmlIds to add. + * @return This builder for chaining. + */ + public Builder addExcludeHtmlIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally + checkByteStringIsUtf8(value); + ensureExcludeHtmlIdsIsMutable(); + excludeHtmlIds_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private boolean enableGetProcessedDocument_; + + /** + * + * + *
            +         * Optional. If true, the processed document will be made available for
            +         * the GetProcessedDocument API.
            +         * 
            + * + * bool enable_get_processed_document = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableGetProcessedDocument. + */ + @java.lang.Override + public boolean getEnableGetProcessedDocument() { + return enableGetProcessedDocument_; + } + + /** + * + * + *
            +         * Optional. If true, the processed document will be made available for
            +         * the GetProcessedDocument API.
            +         * 
            + * + * bool enable_get_processed_document = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableGetProcessedDocument to set. + * @return This builder for chaining. + */ + public Builder setEnableGetProcessedDocument(boolean value) { + + enableGetProcessedDocument_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. If true, the processed document will be made available for
            +         * the GetProcessedDocument API.
            +         * 
            + * + * bool enable_get_processed_document = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableGetProcessedDocument() { + bitField0_ = (bitField0_ & ~0x00000080); + enableGetProcessedDocument_ = false; + onChanged(); return this; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfigProto.java index b3a186665277..053e5db65ef1 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfigProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProcessingConfigProto.java @@ -85,7 +85,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cument_processing_config.proto\022#google.c" + "loud.discoveryengine.v1beta\032\037google/api/" + "field_behavior.proto\032\031google/api/resourc" - + "e.proto\"\314\014\n\030DocumentProcessingConfig\022\014\n\004" + + "e.proto\"\372\016\n\030DocumentProcessingConfig\022\014\n\004" + "name\030\001 \001(\t\022e\n\017chunking_config\030\003 \001(\0132L.go" + "ogle.cloud.discoveryengine.v1beta.Docume" + "ntProcessingConfig.ChunkingConfig\022k\n\026def" @@ -101,7 +101,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "fig.LayoutBasedChunkingConfigH\000\032R\n\031Layou" + "tBasedChunkingConfig\022\022\n\nchunk_size\030\001 \001(\005" + "\022!\n\031include_ancestor_headings\030\002 \001(\010B\014\n\nc" - + "hunk_mode\032\260\004\n\rParsingConfig\022\202\001\n\026digital_" + + "hunk_mode\032\336\006\n\rParsingConfig\022\202\001\n\026digital_" + "parsing_config\030\001 \001(\0132`.google.cloud.disc" + "overyengine.v1beta.DocumentProcessingCon" + "fig.ParsingConfig.DigitalParsingConfigH\000" @@ -114,26 +114,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ParsingConfigH\000\032\026\n\024DigitalParsingConfig\032" + "S\n\020OcrParsingConfig\022&\n\032enhanced_document" + "_elements\030\001 \003(\tB\002\030\001\022\027\n\017use_native_text\030\002" - + " \001(\010\032\025\n\023LayoutParsingConfigB\027\n\025type_dedi" - + "cated_config\032\212\001\n\033ParsingConfigOverridesE" - + "ntry\022\013\n\003key\030\001 \001(\t\022Z\n\005value\030\002 \001(\0132K.googl" - + "e.cloud.discoveryengine.v1beta.DocumentP" - + "rocessingConfig.ParsingConfig:\0028\001:\212\002\352A\206\002" - + "\n7discoveryengine.googleapis.com/Documen" - + "tProcessingConfig\022Xprojects/{project}/lo" - + "cations/{location}/dataStores/{data_stor" - + "e}/documentProcessingConfig\022qprojects/{p" - + "roject}/locations/{location}/collections" - + "/{collection}/dataStores/{data_store}/do" - + "cumentProcessingConfigB\244\002\n\'com.google.cl" - + "oud.discoveryengine.v1betaB\035DocumentProc" - + "essingConfigProtoP\001ZQcloud.google.com/go" - + "/discoveryengine/apiv1beta/discoveryengi" - + "nepb;discoveryenginepb\242\002\017DISCOVERYENGINE" - + "\252\002#Google.Cloud.DiscoveryEngine.V1Beta\312\002" - + "#Google\\Cloud\\DiscoveryEngine\\V1beta\352\002&G" - + "oogle::Cloud::DiscoveryEngine::V1betab\006p" - + "roto3" + + " \001(\010\032\302\002\n\023LayoutParsingConfig\022$\n\027enable_t" + + "able_annotation\030\001 \001(\010B\003\340A\001\022$\n\027enable_ima" + + "ge_annotation\030\002 \001(\010B\003\340A\001\022&\n\031enable_llm_l" + + "ayout_parsing\030\005 \001(\010B\003\340A\001\022%\n\030structured_c" + + "ontent_types\030\t \003(\tB\003\340A\001\022\"\n\025exclude_html_" + + "elements\030\n \003(\tB\003\340A\001\022!\n\024exclude_html_clas" + + "ses\030\013 \003(\tB\003\340A\001\022\035\n\020exclude_html_ids\030\014 \003(\t" + + "B\003\340A\001\022*\n\035enable_get_processed_document\030\016" + + " \001(\010B\003\340A\001B\027\n\025type_dedicated_config\032\212\001\n\033P" + + "arsingConfigOverridesEntry\022\013\n\003key\030\001 \001(\t\022" + + "Z\n\005value\030\002 \001(\0132K.google.cloud.discoverye" + + "ngine.v1beta.DocumentProcessingConfig.Pa" + + "rsingConfig:\0028\001:\212\002\352A\206\002\n7discoveryengine." + + "googleapis.com/DocumentProcessingConfig\022" + + "Xprojects/{project}/locations/{location}" + + "/dataStores/{data_store}/documentProcess" + + "ingConfig\022qprojects/{project}/locations/" + + "{location}/collections/{collection}/data" + + "Stores/{data_store}/documentProcessingCo" + + "nfigB\244\002\n\'com.google.cloud.discoveryengin" + + "e.v1betaB\035DocumentProcessingConfigProtoP" + + "\001ZQcloud.google.com/go/discoveryengine/a" + + "piv1beta/discoveryenginepb;discoveryengi" + + "nepb\242\002\017DISCOVERYENGINE\252\002#Google.Cloud.Di" + + "scoveryEngine.V1Beta\312\002#Google\\Cloud\\Disc" + + "overyEngine\\V1beta\352\002&Google::Cloud::Disc" + + "overyEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -202,7 +209,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig_descriptor, - new java.lang.String[] {}); + new java.lang.String[] { + "EnableTableAnnotation", + "EnableImageAnnotation", + "EnableLlmLayoutParsing", + "StructuredContentTypes", + "ExcludeHtmlElements", + "ExcludeHtmlClasses", + "ExcludeHtmlIds", + "EnableGetProcessedDocument", + }); internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_ParsingConfigOverridesEntry_descriptor = internal_static_google_cloud_discoveryengine_v1beta_DocumentProcessingConfig_descriptor .getNestedType(2); @@ -217,6 +233,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); 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); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProto.java index 23dbeba69894..52a5d73a01fe 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentProto.java @@ -48,6 +48,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_Document_Content_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_Document_Content_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_AccessRestriction_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_AccessRestriction_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_Document_IndexStatus_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -64,9 +72,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "2google/cloud/discoveryengine/v1beta/document.proto\022#google.cloud.discoveryengi" + "ne.v1beta\032\037google/api/field_behavior.pro" - + "to\032\031google/api/resource.proto\032\034google/pr" - + "otobuf/struct.proto\032\037google/protobuf/tim" - + "estamp.proto\032\027google/rpc/status.proto\"\210\007\n" + + "to\032\031google/api/resource.proto\0320google/cl" + + "oud/discoveryengine/v1beta/common.proto\032" + + "\034google/protobuf/struct.proto\032\037google/pr" + + "otobuf/timestamp.proto\032\027google/rpc/status.proto\"\301\t\n" + "\010Document\022.\n" + "\013struct_data\030\004 \001(\0132\027.google.protobuf.StructH\000\022\023\n" + "\tjson_data\030\005 \001(\tH\000\022\021\n" @@ -77,7 +86,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01325.google.cloud.discoveryengine.v1beta.Document.Content\022\032\n" + "\022parent_document_id\030\007 \001(\t\0229\n" + "\023derived_struct_data\030\006" - + " \001(\0132\027.google.protobuf.StructB\003\340A\003\0223\n\n" + + " \001(\0132\027.google.protobuf.StructB\003\340A\003\022G\n" + + "\010acl_info\030\013 \001(" + + "\01325.google.cloud.discoveryengine.v1beta.Document.AclInfo\0223\n\n" + "index_time\030\r" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022T\n" + "\014index_status\030\017" @@ -86,21 +97,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\traw_bytes\030\002 \001(\014H\000\022\r\n" + "\003uri\030\003 \001(\tH\000\022\021\n" + "\tmime_type\030\001 \001(\tB\t\n" - + "\007content\032h\n" + + "\007content\032\316\001\n" + + "\007AclInfo\022X\n" + + "\007readers\030\001 \003(\0132G.google.cloud.dis" + + "coveryengine.v1beta.Document.AclInfo.AccessRestriction\032i\n" + + "\021AccessRestriction\022B\n\n" + + "principals\030\001 \003(\0132..google.cloud.discoveryengine.v1beta.Principal\022\020\n" + + "\010idp_wide\030\002 \001(\010\032\206\001\n" + "\013IndexStatus\022.\n\n" + "index_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022)\n\r" - + "error_samples\030\002 \003(\0132\022.google.rpc.Status:\226\002\352A\222\002\n" - + "\'discoveryengine.googleapis.com/Document\022fprojects/{proje" - + "ct}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{do" - + "cument}\022\177projects/{project}/locations/{location}/collections/{collection}/dataSt" - + "ores/{data_store}/branches/{branch}/documents/{document}B\006\n" + + "error_samples\030\002 \003(\0132\022.google.rpc.Status\022\034\n" + + "\017pending_message\030\003 \001(\tB\003\340A\005:\226\002\352A\222\002\n" + + "\'discoveryengine.googleapis.com/Document\022fprojects/{pr" + + "oject}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/" + + "{document}\022\177projects/{project}/locations/{location}/collections/{collection}/dat" + + "aStores/{data_store}/branches/{branch}/documents/{document}B\006\n" + "\004dataB\224\002\n" + "\'com.google.cloud.discoveryengine.v1betaB\r" - + "DocumentProtoP\001ZQcloud.google.com/go/discoveryengi" - + "ne/apiv1beta/discoveryenginepb;discovery" - + "enginepb\242\002\017DISCOVERYENGINE\252\002#Google.Clou" - + "d.DiscoveryEngine.V1Beta\312\002#Google\\Cloud\\" - + "DiscoveryEngine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" + + "DocumentProtoP\001ZQcloud.google.com/go/discoverye" + + "ngine/apiv1beta/discoveryenginepb;discov" + + "eryenginepb\242\002\017DISCOVERYENGINE\252\002#Google.C" + + "loud.DiscoveryEngine.V1Beta\312\002#Google\\Clo" + + "ud\\DiscoveryEngine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -108,6 +126,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.cloud.discoveryengine.v1beta.CommonProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.rpc.StatusProto.getDescriptor(), @@ -126,6 +145,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Content", "ParentDocumentId", "DerivedStructData", + "AclInfo", "IndexTime", "IndexStatus", "Data", @@ -138,17 +158,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "RawBytes", "Uri", "MimeType", "Content", }); - internal_static_google_cloud_discoveryengine_v1beta_Document_IndexStatus_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_descriptor = internal_static_google_cloud_discoveryengine_v1beta_Document_descriptor.getNestedType(1); + internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_descriptor, + new java.lang.String[] { + "Readers", + }); + internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_AccessRestriction_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_AccessRestriction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Document_AclInfo_AccessRestriction_descriptor, + new java.lang.String[] { + "Principals", "IdpWide", + }); + internal_static_google_cloud_discoveryengine_v1beta_Document_IndexStatus_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Document_descriptor.getNestedType(2); internal_static_google_cloud_discoveryengine_v1beta_Document_IndexStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_Document_IndexStatus_descriptor, new java.lang.String[] { - "IndexTime", "ErrorSamples", + "IndexTime", "ErrorSamples", "PendingMessage", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.CommonProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.rpc.StatusProto.getDescriptor(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceProto.java index 8a39911cab8a..c9d3cb045646 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/DocumentServiceProto.java @@ -164,7 +164,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/FhirResourceH\000B\017\n\rmatcher_value\"U\n\005Stat" + "e\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" - + "\241\027\n\017DocumentService\022\254\002\n\013GetDocument\0227.go" + + "\237\030\n\017DocumentService\022\254\002\n\013GetDocument\0227.go" + "ogle.cloud.discoveryengine.v1beta.GetDoc" + "umentRequest\032-.google.cloud.discoveryeng" + "ine.v1beta.Document\"\264\001\332A\004name\202\323\344\223\002\246\001\022I/v" @@ -236,16 +236,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*}/batchGetDocumentsMetadataZi\022g/v1beta/" + "{parent=projects/*/locations/*/collectio" + "ns/*/dataStores/*/branches/*}/batchGetDo" - + "cumentsMetadata\032R\312A\036discoveryengine.goog" - + "leapis.com\322A.https://www.googleapis.com/" - + "auth/cloud-platformB\233\002\n\'com.google.cloud" - + ".discoveryengine.v1betaB\024DocumentService" - + "ProtoP\001ZQcloud.google.com/go/discoveryen" - + "gine/apiv1beta/discoveryenginepb;discove" - + "ryenginepb\242\002\017DISCOVERYENGINE\252\002#Google.Cl" - + "oud.DiscoveryEngine.V1Beta\312\002#Google\\Clou" - + "d\\DiscoveryEngine\\V1beta\352\002&Google::Cloud" - + "::DiscoveryEngine::V1betab\006proto3" + + "cumentsMetadata\032\317\001\312A\036discoveryengine.goo" + + "gleapis.com\322A\252\001https://www.googleapis.co" + + "m/auth/cloud-platform,https://www.google" + + "apis.com/auth/discoveryengine.readwrite," + + "https://www.googleapis.com/auth/discover" + + "yengine.serving.readwriteB\233\002\n\'com.google" + + ".cloud.discoveryengine.v1betaB\024DocumentS" + + "erviceProtoP\001ZQcloud.google.com/go/disco" + + "veryengine/apiv1beta/discoveryenginepb;d" + + "iscoveryenginepb\242\002\017DISCOVERYENGINE\252\002#Goo" + + "gle.Cloud.DiscoveryEngine.V1Beta\312\002#Googl" + + "e\\Cloud\\DiscoveryEngine\\V1beta\352\002&Google:" + + ":Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Engine.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Engine.java index ef87970d3e0e..7d2bb00a2e52 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Engine.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Engine.java @@ -58,6 +58,10 @@ private Engine() { dataStoreIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); solutionType_ = 0; industryVertical_ = 0; + appType_ = 0; + configurableBillingApproach_ = 0; + marketplaceAgentVisibility_ = 0; + procurementContactEmails_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -65,6 +69,22 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .internal_static_google_cloud_discoveryengine_v1beta_Engine_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 30: + return internalGetFeatures(); + case 37: + return internalGetModelConfigs(); + case 42: + return internalGetConnectorTenantInfo(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { @@ -75,133 +95,194 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.discoveryengine.v1beta.Engine.Builder.class); } - public interface SearchEngineConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) - com.google.protobuf.MessageOrBuilder { - + /** + * + * + *
            +   * The app of the engine.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.Engine.AppType} + */ + public enum AppType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
            -     * The search feature tier of this engine.
            -     *
            -     * Different tiers might have different
            -     * pricing. To learn more, check the pricing documentation.
            -     *
            -     * Defaults to
            -     * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_STANDARD]
            -     * if not specified.
            +     * All non specified apps.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchTier search_tier = 1; - * - * @return The enum numeric value on the wire for searchTier. + * APP_TYPE_UNSPECIFIED = 0; */ - int getSearchTierValue(); - + APP_TYPE_UNSPECIFIED(0), /** * * *
            -     * The search feature tier of this engine.
            -     *
            -     * Different tiers might have different
            -     * pricing. To learn more, check the pricing documentation.
            -     *
            -     * Defaults to
            -     * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_STANDARD]
            -     * if not specified.
            +     * App type for intranet search and Agentspace.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchTier search_tier = 1; - * - * @return The searchTier. + * APP_TYPE_INTRANET = 1; */ - com.google.cloud.discoveryengine.v1beta.SearchTier getSearchTier(); + APP_TYPE_INTRANET(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AppType"); + } /** * * *
            -     * The add-on that this search engine enables.
            +     * All non specified apps.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @return A list containing the searchAddOns. + * APP_TYPE_UNSPECIFIED = 0; */ - java.util.List getSearchAddOnsList(); + public static final int APP_TYPE_UNSPECIFIED_VALUE = 0; /** * * *
            -     * The add-on that this search engine enables.
            +     * App type for intranet search and Agentspace.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @return The count of searchAddOns. + * APP_TYPE_INTRANET = 1; */ - int getSearchAddOnsCount(); + public static final int APP_TYPE_INTRANET_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 AppType 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 AppType forNumber(int value) { + switch (value) { + case 0: + return APP_TYPE_UNSPECIFIED; + case 1: + return APP_TYPE_INTRANET; + 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 AppType findValueByNumber(int number) { + return AppType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Engine.getDescriptor().getEnumTypes().get(0); + } + + private static final AppType[] VALUES = values(); + + public static AppType 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 AppType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Engine.AppType) + } + + /** + * + * + *
            +   * The state of the feature for the engine.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.Engine.FeatureState} + */ + public enum FeatureState implements com.google.protobuf.ProtocolMessageEnum { /** * * *
            -     * The add-on that this search engine enables.
            +     * The feature state is unspecified.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @param index The index of the element to return. - * @return The searchAddOns at the given index. + * FEATURE_STATE_UNSPECIFIED = 0; */ - com.google.cloud.discoveryengine.v1beta.SearchAddOn getSearchAddOns(int index); - + FEATURE_STATE_UNSPECIFIED(0), /** * * *
            -     * The add-on that this search engine enables.
            +     * The feature is turned on to be accessible.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @return A list containing the enum numeric values on the wire for searchAddOns. + * FEATURE_STATE_ON = 1; */ - java.util.List getSearchAddOnsValueList(); - + FEATURE_STATE_ON(1), /** * * *
            -     * The add-on that this search engine enables.
            +     * The feature is turned off to be inaccessible.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of searchAddOns at the given index. + * FEATURE_STATE_OFF = 2; */ - int getSearchAddOnsValue(int index); - } - - /** - * - * - *
            -   * Configurations for a Search Engine.
            -   * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig} - */ - public static final class SearchEngineConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) - SearchEngineConfigOrBuilder { - private static final long serialVersionUID = 0L; + FEATURE_STATE_OFF(2), + UNRECOGNIZED(-1), + ; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( @@ -210,6567 +291,20848 @@ public static final class SearchEngineConfig extends com.google.protobuf.Generat /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "SearchEngineConfig"); - } - - // Use SearchEngineConfig.newBuilder() to construct. - private SearchEngineConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SearchEngineConfig() { - searchTier_ = 0; - searchAddOns_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_SearchEngineConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_SearchEngineConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.class, - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.Builder.class); + "FeatureState"); } - public static final int SEARCH_TIER_FIELD_NUMBER = 1; - private int searchTier_ = 0; - /** * * *
            -     * The search feature tier of this engine.
            -     *
            -     * Different tiers might have different
            -     * pricing. To learn more, check the pricing documentation.
            -     *
            -     * Defaults to
            -     * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_STANDARD]
            -     * if not specified.
            +     * The feature state is unspecified.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchTier search_tier = 1; - * - * @return The enum numeric value on the wire for searchTier. + * FEATURE_STATE_UNSPECIFIED = 0; */ - @java.lang.Override - public int getSearchTierValue() { - return searchTier_; - } + public static final int FEATURE_STATE_UNSPECIFIED_VALUE = 0; /** * * *
            -     * The search feature tier of this engine.
            -     *
            -     * Different tiers might have different
            -     * pricing. To learn more, check the pricing documentation.
            -     *
            -     * Defaults to
            -     * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_STANDARD]
            -     * if not specified.
            +     * The feature is turned on to be accessible.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchTier search_tier = 1; - * - * @return The searchTier. + * FEATURE_STATE_ON = 1; */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchTier getSearchTier() { - com.google.cloud.discoveryengine.v1beta.SearchTier result = - com.google.cloud.discoveryengine.v1beta.SearchTier.forNumber(searchTier_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchTier.UNRECOGNIZED - : result; - } - - public static final int SEARCH_ADD_ONS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList searchAddOns_ = emptyIntList(); - - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.discoveryengine.v1beta.SearchAddOn> - searchAddOns_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.discoveryengine.v1beta.SearchAddOn>() { - public com.google.cloud.discoveryengine.v1beta.SearchAddOn convert(int from) { - com.google.cloud.discoveryengine.v1beta.SearchAddOn result = - com.google.cloud.discoveryengine.v1beta.SearchAddOn.forNumber(from); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchAddOn.UNRECOGNIZED - : result; - } - }; + public static final int FEATURE_STATE_ON_VALUE = 1; /** * * *
            -     * The add-on that this search engine enables.
            +     * The feature is turned off to be inaccessible.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @return A list containing the searchAddOns. + * FEATURE_STATE_OFF = 2; */ - @java.lang.Override - public java.util.List - getSearchAddOnsList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.discoveryengine.v1beta.SearchAddOn>( - searchAddOns_, searchAddOns_converter_); + public static final int FEATURE_STATE_OFF_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; } /** - * - * - *
            -     * The add-on that this search engine enables.
            -     * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @return The count of searchAddOns. + * @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.Override - public int getSearchAddOnsCount() { - return searchAddOns_.size(); + @java.lang.Deprecated + public static FeatureState 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 FeatureState forNumber(int value) { + switch (value) { + case 0: + return FEATURE_STATE_UNSPECIFIED; + case 1: + return FEATURE_STATE_ON; + case 2: + return FEATURE_STATE_OFF; + 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 FeatureState findValueByNumber(int number) { + return FeatureState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Engine.getDescriptor().getEnumTypes().get(1); + } + + private static final FeatureState[] VALUES = values(); + + public static FeatureState 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 FeatureState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Engine.FeatureState) + } + + /** + * + * + *
            +   * Configuration for configurable billing approach.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach} + */ + public enum ConfigurableBillingApproach implements com.google.protobuf.ProtocolMessageEnum { /** * - * + * *
            -     * The add-on that this search engine enables.
            +     * Default value. For Spark and non-Spark non-configurable billing approach.
            +     * General pricing model.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED = 0; + */ + CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED(0), + /** * - * @param index The index of the element to return. - * @return The searchAddOns at the given index. + * + *
            +     * The billing approach follows configurations specified by customer.
            +     * 
            + * + * CONFIGURABLE_BILLING_APPROACH_ENABLED = 1; */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchAddOn getSearchAddOns(int index) { - return searchAddOns_converter_.convert(searchAddOns_.getInt(index)); + CONFIGURABLE_BILLING_APPROACH_ENABLED(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConfigurableBillingApproach"); } /** * * *
            -     * The add-on that this search engine enables.
            +     * Default value. For Spark and non-Spark non-configurable billing approach.
            +     * General pricing model.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @return A list containing the enum numeric values on the wire for searchAddOns. + * CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED = 0; */ - @java.lang.Override - public java.util.List getSearchAddOnsValueList() { - return searchAddOns_; - } + public static final int CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED_VALUE = 0; /** * * *
            -     * The add-on that this search engine enables.
            +     * The billing approach follows configurations specified by customer.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of searchAddOns at the given index. + * CONFIGURABLE_BILLING_APPROACH_ENABLED = 1; */ - @java.lang.Override - public int getSearchAddOnsValue(int index) { - return searchAddOns_.getInt(index); - } - - private int searchAddOnsMemoizedSerializedSize; - - 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 CONFIGURABLE_BILLING_APPROACH_ENABLED_VALUE = 1; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (searchTier_ - != com.google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, searchTier_); - } - if (getSearchAddOnsList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(searchAddOnsMemoizedSerializedSize); + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); } - for (int i = 0; i < searchAddOns_.size(); i++) { - output.writeEnumNoTag(searchAddOns_.getInt(i)); - } - getUnknownFields().writeTo(output); + return value; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (searchTier_ - != com.google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, searchTier_); - } - { - int dataSize = 0; - for (int i = 0; i < searchAddOns_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(searchAddOns_.getInt(i)); - } - size += dataSize; - if (!getSearchAddOnsList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - searchAddOnsMemoizedSerializedSize = dataSize; - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + /** + * @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 ConfigurableBillingApproach valueOf(int value) { + return forNumber(value); } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig)) { - return super.equals(obj); + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ConfigurableBillingApproach forNumber(int value) { + switch (value) { + case 0: + return CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED; + case 1: + return CONFIGURABLE_BILLING_APPROACH_ENABLED; + default: + return null; } - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig other = - (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) obj; + } - if (searchTier_ != other.searchTier_) return false; - if (!searchAddOns_.equals(other.searchAddOns_)) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SEARCH_TIER_FIELD_NUMBER; - hash = (53 * hash) + searchTier_; - if (getSearchAddOnsCount() > 0) { - hash = (37 * hash) + SEARCH_ADD_ONS_FIELD_NUMBER; - hash = (53 * hash) + searchAddOns_.hashCode(); + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ConfigurableBillingApproach findValueByNumber(int number) { + return ConfigurableBillingApproach.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."); } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + return getDescriptor().getValues().get(ordinal()); } - public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); } - public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Engine.getDescriptor().getEnumTypes().get(2); } - public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private static final ConfigurableBillingApproach[] VALUES = values(); - public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + public static ConfigurableBillingApproach 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.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private final int value; - public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + private ConfigurableBillingApproach(int value) { + this.value = value; } - public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach) + } - public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +   * The status of the model for the engine.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.Engine.ModelState} + */ + public enum ModelState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * The model state is unspecified.
            +     * 
            + * + * MODEL_STATE_UNSPECIFIED = 0; + */ + MODEL_STATE_UNSPECIFIED(0), + /** + * + * + *
            +     * The model is enabled by admin.
            +     * 
            + * + * MODEL_ENABLED = 1; + */ + MODEL_ENABLED(1), + /** + * + * + *
            +     * The model is disabled by admin.
            +     * 
            + * + * MODEL_DISABLED = 2; + */ + MODEL_DISABLED(2), + UNRECOGNIZED(-1), + ; - public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ModelState"); } - public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
            +     * The model state is unspecified.
            +     * 
            + * + * MODEL_STATE_UNSPECIFIED = 0; + */ + public static final int MODEL_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * The model is enabled by admin.
            +     * 
            + * + * MODEL_ENABLED = 1; + */ + public static final int MODEL_ENABLED_VALUE = 1; + + /** + * + * + *
            +     * The model is disabled by admin.
            +     * 
            + * + * MODEL_DISABLED = 2; + */ + public static final int MODEL_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; } - public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + /** + * @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 ModelState valueOf(int value) { + return forNumber(value); } - public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ModelState forNumber(int value) { + switch (value) { + case 0: + return MODEL_STATE_UNSPECIFIED; + case 1: + return MODEL_ENABLED; + case 2: + return MODEL_DISABLED; + default: + return null; + } } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ModelState findValueByNumber(int number) { + return ModelState.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 static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Engine.getDescriptor().getEnumTypes().get(3); } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + private static final ModelState[] VALUES = values(); + + public static ModelState 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 ModelState(int value) { + this.value = value; } + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Engine.ModelState) + } + + /** + * + * + *
            +   * Represents which marketplace agents are visible to any users in agent
            +   * gallery.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility} + */ + public enum MarketplaceAgentVisibility implements com.google.protobuf.ProtocolMessageEnum { /** * * *
            -     * Configurations for a Search Engine.
            +     * Defaults to `MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED`.
                  * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig} + * MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED = 0; */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_SearchEngineConfig_descriptor; - } + MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED(0), + /** + * + * + *
            +     * Only agents that are currently available for use by the user are visible.
            +     * 
            + * + * SHOW_AVAILABLE_AGENTS_ONLY = 1; + */ + SHOW_AVAILABLE_AGENTS_ONLY(1), + /** + * + * + *
            +     * Show marketplace agents that the user does not yet have access to but
            +     * are integrated into the engine. This level also includes all agents
            +     * visible with `SHOW_AVAILABLE_AGENTS_ONLY`.
            +     * 
            + * + * SHOW_AGENTS_ALREADY_INTEGRATED = 2; + */ + SHOW_AGENTS_ALREADY_INTEGRATED(2), + /** + * + * + *
            +     * Show all agents visible with `SHOW_AGENTS_ALREADY_INTEGRATED`, plus
            +     * agents that have already been purchased by the project/organization, even
            +     * if they are not currently integrated into the engine.
            +     * 
            + * + * SHOW_AGENTS_ALREADY_PURCHASED = 3; + */ + SHOW_AGENTS_ALREADY_PURCHASED(3), + /** + * + * + *
            +     * All agents in the marketplace are visible, regardless of access or
            +     * purchase status. This level encompasses all agents shown in the previous
            +     * levels.
            +     * 
            + * + * SHOW_ALL_AGENTS = 4; + */ + SHOW_ALL_AGENTS(4), + UNRECOGNIZED(-1), + ; - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_SearchEngineConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.class, - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.Builder.class); - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MarketplaceAgentVisibility"); + } - // Construct using - // com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.newBuilder() - private Builder() {} + /** + * + * + *
            +     * Defaults to `MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED`.
            +     * 
            + * + * MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED = 0; + */ + public static final int MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED_VALUE = 0; - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + /** + * + * + *
            +     * Only agents that are currently available for use by the user are visible.
            +     * 
            + * + * SHOW_AVAILABLE_AGENTS_ONLY = 1; + */ + public static final int SHOW_AVAILABLE_AGENTS_ONLY_VALUE = 1; - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - searchTier_ = 0; - searchAddOns_ = emptyIntList(); - return this; - } + /** + * + * + *
            +     * Show marketplace agents that the user does not yet have access to but
            +     * are integrated into the engine. This level also includes all agents
            +     * visible with `SHOW_AVAILABLE_AGENTS_ONLY`.
            +     * 
            + * + * SHOW_AGENTS_ALREADY_INTEGRATED = 2; + */ + public static final int SHOW_AGENTS_ALREADY_INTEGRATED_VALUE = 2; - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_SearchEngineConfig_descriptor; - } + /** + * + * + *
            +     * Show all agents visible with `SHOW_AGENTS_ALREADY_INTEGRATED`, plus
            +     * agents that have already been purchased by the project/organization, even
            +     * if they are not currently integrated into the engine.
            +     * 
            + * + * SHOW_AGENTS_ALREADY_PURCHASED = 3; + */ + public static final int SHOW_AGENTS_ALREADY_PURCHASED_VALUE = 3; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig - .getDefaultInstance(); - } + /** + * + * + *
            +     * All agents in the marketplace are visible, regardless of access or
            +     * purchase status. This level encompasses all agents shown in the previous
            +     * levels.
            +     * 
            + * + * SHOW_ALL_AGENTS = 4; + */ + public static final int SHOW_ALL_AGENTS_VALUE = 4; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig build() { - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); } + return value; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig buildPartial() { - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig result = - new com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + /** + * @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 MarketplaceAgentVisibility valueOf(int value) { + return forNumber(value); + } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.searchTier_ = searchTier_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - searchAddOns_.makeImmutable(); - result.searchAddOns_ = searchAddOns_; - } + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MarketplaceAgentVisibility forNumber(int value) { + switch (value) { + case 0: + return MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED; + case 1: + return SHOW_AVAILABLE_AGENTS_ONLY; + case 2: + return SHOW_AGENTS_ALREADY_INTEGRATED; + case 3: + return SHOW_AGENTS_ALREADY_PURCHASED; + case 4: + return SHOW_ALL_AGENTS; + default: + return null; } + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig other) { - if (other - == com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig - .getDefaultInstance()) return this; - if (other.searchTier_ != 0) { - setSearchTierValue(other.getSearchTierValue()); - } - if (!other.searchAddOns_.isEmpty()) { - if (searchAddOns_.isEmpty()) { - searchAddOns_ = other.searchAddOns_; - searchAddOns_.makeImmutable(); - bitField0_ |= 0x00000002; - } else { - ensureSearchAddOnsIsMutable(); - searchAddOns_.addAll(other.searchAddOns_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MarketplaceAgentVisibility findValueByNumber(int number) { + return MarketplaceAgentVisibility.forNumber(number); + } + }; - @java.lang.Override - public final boolean isInitialized() { - return true; + 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 Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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: - { - searchTier_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - int tmpRaw = input.readEnum(); - ensureSearchAddOnsIsMutable(); - searchAddOns_.addInt(tmpRaw); - break; - } // case 16 - case 18: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureSearchAddOnsIsMutable(); - while (input.getBytesUntilLimit() > 0) { - searchAddOns_.addInt(input.readEnum()); - } - input.popLimit(limit); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - private int bitField0_; + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Engine.getDescriptor().getEnumTypes().get(4); + } - private int searchTier_ = 0; + private static final MarketplaceAgentVisibility[] VALUES = values(); - /** - * - * - *
            -       * The search feature tier of this engine.
            -       *
            -       * Different tiers might have different
            -       * pricing. To learn more, check the pricing documentation.
            -       *
            -       * Defaults to
            -       * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_STANDARD]
            -       * if not specified.
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchTier search_tier = 1; - * - * @return The enum numeric value on the wire for searchTier. - */ - @java.lang.Override - public int getSearchTierValue() { - return searchTier_; + public static MarketplaceAgentVisibility valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } - - /** - * - * - *
            -       * The search feature tier of this engine.
            -       *
            -       * Different tiers might have different
            -       * pricing. To learn more, check the pricing documentation.
            -       *
            -       * Defaults to
            -       * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_STANDARD]
            -       * if not specified.
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchTier search_tier = 1; - * - * @param value The enum numeric value on the wire for searchTier to set. - * @return This builder for chaining. - */ - public Builder setSearchTierValue(int value) { - searchTier_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + if (desc.getIndex() == -1) { + return UNRECOGNIZED; } + return VALUES[desc.getIndex()]; + } - /** - * - * - *
            -       * The search feature tier of this engine.
            -       *
            -       * Different tiers might have different
            -       * pricing. To learn more, check the pricing documentation.
            -       *
            -       * Defaults to
            -       * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_STANDARD]
            -       * if not specified.
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchTier search_tier = 1; - * - * @return The searchTier. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchTier getSearchTier() { - com.google.cloud.discoveryengine.v1beta.SearchTier result = - com.google.cloud.discoveryengine.v1beta.SearchTier.forNumber(searchTier_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchTier.UNRECOGNIZED - : result; - } + private final int value; - /** - * - * - *
            -       * The search feature tier of this engine.
            -       *
            -       * Different tiers might have different
            -       * pricing. To learn more, check the pricing documentation.
            -       *
            -       * Defaults to
            -       * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_STANDARD]
            -       * if not specified.
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchTier search_tier = 1; - * - * @param value The searchTier to set. - * @return This builder for chaining. - */ - public Builder setSearchTier(com.google.cloud.discoveryengine.v1beta.SearchTier value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - searchTier_ = value.getNumber(); - onChanged(); - return this; - } + private MarketplaceAgentVisibility(int value) { + this.value = value; + } - /** - * - * - *
            -       * The search feature tier of this engine.
            -       *
            -       * Different tiers might have different
            -       * pricing. To learn more, check the pricing documentation.
            -       *
            -       * Defaults to
            -       * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_STANDARD]
            -       * if not specified.
            -       * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchTier search_tier = 1; - * - * @return This builder for chaining. - */ - public Builder clearSearchTier() { - bitField0_ = (bitField0_ & ~0x00000001); - searchTier_ = 0; - onChanged(); - return this; - } + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility) + } - private com.google.protobuf.Internal.IntList searchAddOns_ = emptyIntList(); + public interface SearchEngineConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) + com.google.protobuf.MessageOrBuilder { - private void ensureSearchAddOnsIsMutable() { - if (!searchAddOns_.isModifiable()) { - searchAddOns_ = makeMutableCopy(searchAddOns_); - } - bitField0_ |= 0x00000002; - } + /** + * + * + *
            +     * The search feature tier of this engine.
            +     *
            +     * Different tiers might have different
            +     * pricing. To learn more, check the pricing documentation.
            +     *
            +     * Defaults to
            +     * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_STANDARD]
            +     * if not specified.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchTier search_tier = 1; + * + * @return The enum numeric value on the wire for searchTier. + */ + int getSearchTierValue(); - /** - * - * - *
            -       * The add-on that this search engine enables.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @return A list containing the searchAddOns. - */ - public java.util.List - getSearchAddOnsList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.discoveryengine.v1beta.SearchAddOn>( - searchAddOns_, searchAddOns_converter_); - } - - /** - * - * - *
            -       * The add-on that this search engine enables.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @return The count of searchAddOns. - */ - public int getSearchAddOnsCount() { - return searchAddOns_.size(); - } + /** + * + * + *
            +     * The search feature tier of this engine.
            +     *
            +     * Different tiers might have different
            +     * pricing. To learn more, check the pricing documentation.
            +     *
            +     * Defaults to
            +     * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_STANDARD]
            +     * if not specified.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchTier search_tier = 1; + * + * @return The searchTier. + */ + com.google.cloud.discoveryengine.v1beta.SearchTier getSearchTier(); - /** - * - * - *
            -       * The add-on that this search engine enables.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @param index The index of the element to return. - * @return The searchAddOns at the given index. - */ - public com.google.cloud.discoveryengine.v1beta.SearchAddOn getSearchAddOns(int index) { - return searchAddOns_converter_.convert(searchAddOns_.getInt(index)); - } + /** + * + * + *
            +     * Optional. The required subscription tier of this engine.
            +     *
            +     * They cannot be modified after engine creation. If the required
            +     * subscription tier is search, user with higher license tier like assist
            +     * can still access the standalone app associated with this engine.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTier required_subscription_tier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for requiredSubscriptionTier. + */ + int getRequiredSubscriptionTierValue(); - /** - * - * - *
            -       * The add-on that this search engine enables.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @param index The index to set the value at. - * @param value The searchAddOns to set. - * @return This builder for chaining. - */ - public Builder setSearchAddOns( - int index, com.google.cloud.discoveryengine.v1beta.SearchAddOn value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSearchAddOnsIsMutable(); - searchAddOns_.setInt(index, value.getNumber()); - onChanged(); - return this; - } + /** + * + * + *
            +     * Optional. The required subscription tier of this engine.
            +     *
            +     * They cannot be modified after engine creation. If the required
            +     * subscription tier is search, user with higher license tier like assist
            +     * can still access the standalone app associated with this engine.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTier required_subscription_tier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requiredSubscriptionTier. + */ + com.google.cloud.discoveryengine.v1beta.SubscriptionTier getRequiredSubscriptionTier(); - /** - * - * - *
            -       * The add-on that this search engine enables.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @param value The searchAddOns to add. - * @return This builder for chaining. - */ - public Builder addSearchAddOns(com.google.cloud.discoveryengine.v1beta.SearchAddOn value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSearchAddOnsIsMutable(); - searchAddOns_.addInt(value.getNumber()); - onChanged(); - return this; - } + /** + * + * + *
            +     * The add-on that this search engine enables.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @return A list containing the searchAddOns. + */ + java.util.List getSearchAddOnsList(); - /** - * - * - *
            -       * The add-on that this search engine enables.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @param values The searchAddOns to add. - * @return This builder for chaining. - */ - public Builder addAllSearchAddOns( - java.lang.Iterable - values) { - ensureSearchAddOnsIsMutable(); - for (com.google.cloud.discoveryengine.v1beta.SearchAddOn value : values) { - searchAddOns_.addInt(value.getNumber()); - } - onChanged(); - return this; - } + /** + * + * + *
            +     * The add-on that this search engine enables.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @return The count of searchAddOns. + */ + int getSearchAddOnsCount(); - /** - * - * - *
            -       * The add-on that this search engine enables.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @return This builder for chaining. - */ - public Builder clearSearchAddOns() { - searchAddOns_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } + /** + * + * + *
            +     * The add-on that this search engine enables.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @param index The index of the element to return. + * @return The searchAddOns at the given index. + */ + com.google.cloud.discoveryengine.v1beta.SearchAddOn getSearchAddOns(int index); - /** - * - * - *
            -       * The add-on that this search engine enables.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @return A list containing the enum numeric values on the wire for searchAddOns. - */ - public java.util.List getSearchAddOnsValueList() { - searchAddOns_.makeImmutable(); - return searchAddOns_; - } + /** + * + * + *
            +     * The add-on that this search engine enables.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @return A list containing the enum numeric values on the wire for searchAddOns. + */ + java.util.List getSearchAddOnsValueList(); - /** - * - * - *
            -       * The add-on that this search engine enables.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of searchAddOns at the given index. - */ - public int getSearchAddOnsValue(int index) { - return searchAddOns_.getInt(index); - } + /** + * + * + *
            +     * The add-on that this search engine enables.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of searchAddOns at the given index. + */ + int getSearchAddOnsValue(int index); + } - /** - * - * - *
            -       * The add-on that this search engine enables.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for searchAddOns to set. - * @return This builder for chaining. - */ - public Builder setSearchAddOnsValue(int index, int value) { - ensureSearchAddOnsIsMutable(); - searchAddOns_.setInt(index, value); - onChanged(); - return this; - } - - /** - * - * - *
            -       * The add-on that this search engine enables.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @param value The enum numeric value on the wire for searchAddOns to add. - * @return This builder for chaining. - */ - public Builder addSearchAddOnsValue(int value) { - ensureSearchAddOnsIsMutable(); - searchAddOns_.addInt(value); - onChanged(); - return this; - } - - /** - * - * - *
            -       * The add-on that this search engine enables.
            -       * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; - * - * @param values The enum numeric values on the wire for searchAddOns to add. - * @return This builder for chaining. - */ - public Builder addAllSearchAddOnsValue(java.lang.Iterable values) { - ensureSearchAddOnsIsMutable(); - for (int value : values) { - searchAddOns_.addInt(value); - } - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) - private static final com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig - DEFAULT_INSTANCE; + /** + * + * + *
            +   * Configurations for a Search Engine.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig} + */ + public static final class SearchEngineConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) + SearchEngineConfigOrBuilder { + private static final long serialVersionUID = 0L; static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig(); + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchEngineConfig"); } - public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; + // Use SearchEngineConfig.newBuilder() to construct. + private SearchEngineConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchEngineConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; + private SearchEngineConfig() { + searchTier_ = 0; + requiredSubscriptionTier_ = 0; + searchAddOns_ = emptyIntList(); } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_SearchEngineConfig_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_SearchEngineConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.class, + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.Builder.class); } - } - public interface ChatEngineConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) - com.google.protobuf.MessageOrBuilder { + public static final int SEARCH_TIER_FIELD_NUMBER = 1; + private int searchTier_ = 0; /** * * *
            -     * The configurationt generate the Dialogflow agent that is associated to
            -     * this Engine.
            +     * The search feature tier of this engine.
                  *
            -     * Note that these configurations are one-time consumed by
            -     * and passed to Dialogflow service. It means they cannot be retrieved using
            -     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -     * or
            -     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -     * API after engine creation.
            +     * Different tiers might have different
            +     * pricing. To learn more, check the pricing documentation.
            +     *
            +     * Defaults to
            +     * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_STANDARD]
            +     * if not specified.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * + * .google.cloud.discoveryengine.v1beta.SearchTier search_tier = 1; * - * @return Whether the agentCreationConfig field is set. + * @return The enum numeric value on the wire for searchTier. */ - boolean hasAgentCreationConfig(); + @java.lang.Override + public int getSearchTierValue() { + return searchTier_; + } /** * * *
            -     * The configurationt generate the Dialogflow agent that is associated to
            -     * this Engine.
            +     * The search feature tier of this engine.
                  *
            -     * Note that these configurations are one-time consumed by
            -     * and passed to Dialogflow service. It means they cannot be retrieved using
            -     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -     * or
            -     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -     * API after engine creation.
            +     * Different tiers might have different
            +     * pricing. To learn more, check the pricing documentation.
            +     *
            +     * Defaults to
            +     * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_STANDARD]
            +     * if not specified.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * + * .google.cloud.discoveryengine.v1beta.SearchTier search_tier = 1; * - * @return The agentCreationConfig. + * @return The searchTier. */ - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - getAgentCreationConfig(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchTier getSearchTier() { + com.google.cloud.discoveryengine.v1beta.SearchTier result = + com.google.cloud.discoveryengine.v1beta.SearchTier.forNumber(searchTier_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchTier.UNRECOGNIZED + : result; + } + + public static final int REQUIRED_SUBSCRIPTION_TIER_FIELD_NUMBER = 3; + private int requiredSubscriptionTier_ = 0; /** * * *
            -     * The configurationt generate the Dialogflow agent that is associated to
            -     * this Engine.
            +     * Optional. The required subscription tier of this engine.
                  *
            -     * Note that these configurations are one-time consumed by
            -     * and passed to Dialogflow service. It means they cannot be retrieved using
            -     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -     * or
            -     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -     * API after engine creation.
            +     * They cannot be modified after engine creation. If the required
            +     * subscription tier is search, user with higher license tier like assist
            +     * can still access the standalone app associated with this engine.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * .google.cloud.discoveryengine.v1beta.SubscriptionTier required_subscription_tier = 3 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The enum numeric value on the wire for requiredSubscriptionTier. */ - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfigOrBuilder - getAgentCreationConfigOrBuilder(); + @java.lang.Override + public int getRequiredSubscriptionTierValue() { + return requiredSubscriptionTier_; + } /** * * *
            -     * The resource name of an exist Dialogflow agent to link to this Chat
            -     * Engine. Customers can either provide `agent_creation_config` to create
            -     * agent or provide an agent name that links the agent with the Chat engine.
            -     *
            -     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            -     * ID>`.
            +     * Optional. The required subscription tier of this engine.
                  *
            -     * Note that the `dialogflow_agent_to_link` are one-time consumed by and
            -     * passed to Dialogflow service. It means they cannot be retrieved using
            -     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -     * or
            -     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -     * API after engine creation. Use
            -     * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
            -     * for actual agent association after Engine is created.
            +     * They cannot be modified after engine creation. If the required
            +     * subscription tier is search, user with higher license tier like assist
            +     * can still access the standalone app associated with this engine.
                  * 
            * - * string dialogflow_agent_to_link = 2; + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTier required_subscription_tier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The dialogflowAgentToLink. + * @return The requiredSubscriptionTier. */ - java.lang.String getDialogflowAgentToLink(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SubscriptionTier getRequiredSubscriptionTier() { + com.google.cloud.discoveryengine.v1beta.SubscriptionTier result = + com.google.cloud.discoveryengine.v1beta.SubscriptionTier.forNumber( + requiredSubscriptionTier_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SubscriptionTier.UNRECOGNIZED + : result; + } - /** - * - * - *
            -     * The resource name of an exist Dialogflow agent to link to this Chat
            -     * Engine. Customers can either provide `agent_creation_config` to create
            -     * agent or provide an agent name that links the agent with the Chat engine.
            -     *
            -     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            -     * ID>`.
            -     *
            -     * Note that the `dialogflow_agent_to_link` are one-time consumed by and
            -     * passed to Dialogflow service. It means they cannot be retrieved using
            -     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -     * or
            -     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -     * API after engine creation. Use
            -     * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
            -     * for actual agent association after Engine is created.
            +    public static final int SEARCH_ADD_ONS_FIELD_NUMBER = 2;
            +
            +    @SuppressWarnings("serial")
            +    private com.google.protobuf.Internal.IntList searchAddOns_ = emptyIntList();
            +
            +    private static final com.google.protobuf.Internal.IntListAdapter.IntConverter<
            +            com.google.cloud.discoveryengine.v1beta.SearchAddOn>
            +        searchAddOns_converter_ =
            +            new com.google.protobuf.Internal.IntListAdapter.IntConverter<
            +                com.google.cloud.discoveryengine.v1beta.SearchAddOn>() {
            +              public com.google.cloud.discoveryengine.v1beta.SearchAddOn convert(int from) {
            +                com.google.cloud.discoveryengine.v1beta.SearchAddOn result =
            +                    com.google.cloud.discoveryengine.v1beta.SearchAddOn.forNumber(from);
            +                return result == null
            +                    ? com.google.cloud.discoveryengine.v1beta.SearchAddOn.UNRECOGNIZED
            +                    : result;
            +              }
            +            };
            +
            +    /**
            +     *
            +     *
            +     * 
            +     * The add-on that this search engine enables.
                  * 
            * - * string dialogflow_agent_to_link = 2; + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; * - * @return The bytes for dialogflowAgentToLink. + * @return A list containing the searchAddOns. */ - com.google.protobuf.ByteString getDialogflowAgentToLinkBytes(); - } - - /** - * - * - *
            -   * Configurations for a Chat Engine.
            -   * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig} - */ - public static final class ChatEngineConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) - ChatEngineConfigOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "ChatEngineConfig"); + @java.lang.Override + public java.util.List + getSearchAddOnsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1beta.SearchAddOn>( + searchAddOns_, searchAddOns_converter_); } - // Use ChatEngineConfig.newBuilder() to construct. - private ChatEngineConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + /** + * + * + *
            +     * The add-on that this search engine enables.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @return The count of searchAddOns. + */ + @java.lang.Override + public int getSearchAddOnsCount() { + return searchAddOns_.size(); } - private ChatEngineConfig() { - dialogflowAgentToLink_ = ""; + /** + * + * + *
            +     * The add-on that this search engine enables.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @param index The index of the element to return. + * @return The searchAddOns at the given index. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchAddOn getSearchAddOns(int index) { + return searchAddOns_converter_.convert(searchAddOns_.getInt(index)); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_descriptor; + /** + * + * + *
            +     * The add-on that this search engine enables.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @return A list containing the enum numeric values on the wire for searchAddOns. + */ + @java.lang.Override + public java.util.List getSearchAddOnsValueList() { + return searchAddOns_; } + /** + * + * + *
            +     * The add-on that this search engine enables.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of searchAddOns at the given index. + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.class, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.Builder.class); + public int getSearchAddOnsValue(int index) { + return searchAddOns_.getInt(index); } - public interface AgentCreationConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig) - com.google.protobuf.MessageOrBuilder { + private int searchAddOnsMemoizedSerializedSize; - /** - * - * - *
            -       * Name of the company, organization or other entity that the agent
            -       * represents. Used for knowledge connector LLM prompt and for knowledge
            -       * search.
            -       * 
            - * - * string business = 1; - * - * @return The business. - */ - java.lang.String getBusiness(); + private byte memoizedIsInitialized = -1; - /** - * - * - *
            -       * Name of the company, organization or other entity that the agent
            -       * represents. Used for knowledge connector LLM prompt and for knowledge
            -       * search.
            -       * 
            - * - * string business = 1; - * - * @return The bytes for business. - */ - com.google.protobuf.ByteString getBusinessBytes(); + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * - * - *
            -       * Required. The default language of the agent as a language tag.
            -       * See [Language
            -       * Support](https://cloud.google.com/dialogflow/docs/reference/language)
            -       * for a list of the currently supported language codes.
            -       * 
            - * - * string default_language_code = 2; - * - * @return The defaultLanguageCode. - */ - java.lang.String getDefaultLanguageCode(); + memoizedIsInitialized = 1; + return true; + } - /** - * - * - *
            -       * Required. The default language of the agent as a language tag.
            -       * See [Language
            -       * Support](https://cloud.google.com/dialogflow/docs/reference/language)
            -       * for a list of the currently supported language codes.
            -       * 
            - * - * string default_language_code = 2; - * - * @return The bytes for defaultLanguageCode. - */ - com.google.protobuf.ByteString getDefaultLanguageCodeBytes(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (searchTier_ + != com.google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, searchTier_); + } + if (getSearchAddOnsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(searchAddOnsMemoizedSerializedSize); + } + for (int i = 0; i < searchAddOns_.size(); i++) { + output.writeEnumNoTag(searchAddOns_.getInt(i)); + } + if (requiredSubscriptionTier_ + != com.google.cloud.discoveryengine.v1beta.SubscriptionTier.SUBSCRIPTION_TIER_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, requiredSubscriptionTier_); + } + getUnknownFields().writeTo(output); + } - /** - * - * - *
            -       * Required. The time zone of the agent from the [time zone
            -       * database](https://www.iana.org/time-zones), e.g., America/New_York,
            -       * Europe/Paris.
            -       * 
            - * - * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The timeZone. - */ - java.lang.String getTimeZone(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - * - * - *
            -       * Required. The time zone of the agent from the [time zone
            -       * database](https://www.iana.org/time-zones), e.g., America/New_York,
            -       * Europe/Paris.
            -       * 
            - * - * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for timeZone. - */ - com.google.protobuf.ByteString getTimeZoneBytes(); + size = 0; + if (searchTier_ + != com.google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, searchTier_); + } + { + int dataSize = 0; + for (int i = 0; i < searchAddOns_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(searchAddOns_.getInt(i)); + } + size += dataSize; + if (!getSearchAddOnsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + searchAddOnsMemoizedSerializedSize = dataSize; + } + if (requiredSubscriptionTier_ + != com.google.cloud.discoveryengine.v1beta.SubscriptionTier.SUBSCRIPTION_TIER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, requiredSubscriptionTier_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
            -       * Agent location for Agent creation, supported values: global/us/eu.
            -       * If not provided, us Engine will create Agent using us-central-1 by
            -       * default; eu Engine will create Agent using eu-west-1 by default.
            -       * 
            - * - * string location = 4; - * - * @return The location. - */ - java.lang.String getLocation(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig other = + (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) obj; - /** - * - * - *
            -       * Agent location for Agent creation, supported values: global/us/eu.
            -       * If not provided, us Engine will create Agent using us-central-1 by
            -       * default; eu Engine will create Agent using eu-west-1 by default.
            -       * 
            - * - * string location = 4; - * - * @return The bytes for location. - */ - com.google.protobuf.ByteString getLocationBytes(); + if (searchTier_ != other.searchTier_) return false; + if (requiredSubscriptionTier_ != other.requiredSubscriptionTier_) return false; + if (!searchAddOns_.equals(other.searchAddOns_)) 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) + SEARCH_TIER_FIELD_NUMBER; + hash = (53 * hash) + searchTier_; + hash = (37 * hash) + REQUIRED_SUBSCRIPTION_TIER_FIELD_NUMBER; + hash = (53 * hash) + requiredSubscriptionTier_; + if (getSearchAddOnsCount() > 0) { + hash = (37 * hash) + SEARCH_ADD_ONS_FIELD_NUMBER; + hash = (53 * hash) + searchAddOns_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig 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.v1beta.Engine.SearchEngineConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig parseFrom( + 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.v1beta.Engine.SearchEngineConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * * *
            -     * Configurations for generating a Dialogflow agent.
            -     *
            -     * Note that these configurations are one-time consumed by
            -     * and passed to Dialogflow service. It means they cannot be retrieved using
            -     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -     * or
            -     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -     * API after engine creation.
            +     * Configurations for a Search Engine.
                  * 
            * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig} */ - public static final class AgentCreationConfig extends com.google.protobuf.GeneratedMessage + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig) - AgentCreationConfigOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "AgentCreationConfig"); - } - - // Use AgentCreationConfig.newBuilder() to construct. - private AgentCreationConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private AgentCreationConfig() { - business_ = ""; - defaultLanguageCode_ = ""; - timeZone_ = ""; - location_ = ""; - } - + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_AgentCreationConfig_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_Engine_SearchEngineConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_AgentCreationConfig_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_Engine_SearchEngineConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - .class, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - .Builder.class); + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.class, + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.Builder.class); } - public static final int BUSINESS_FIELD_NUMBER = 1; + // Construct using + // com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.newBuilder() + private Builder() {} - @SuppressWarnings("serial") - private volatile java.lang.Object business_ = ""; + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - /** - * - * - *
            -       * Name of the company, organization or other entity that the agent
            -       * represents. Used for knowledge connector LLM prompt and for knowledge
            -       * search.
            -       * 
            - * - * string business = 1; - * - * @return The business. - */ @java.lang.Override - public java.lang.String getBusiness() { - java.lang.Object ref = business_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - business_ = s; - return s; + public Builder clear() { + super.clear(); + bitField0_ = 0; + searchTier_ = 0; + requiredSubscriptionTier_ = 0; + searchAddOns_ = emptyIntList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_SearchEngineConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig build() { + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; } - /** - * - * - *
            -       * Name of the company, organization or other entity that the agent
            -       * represents. Used for knowledge connector LLM prompt and for knowledge
            -       * search.
            -       * 
            - * - * string business = 1; - * - * @return The bytes for business. - */ @java.lang.Override - public com.google.protobuf.ByteString getBusinessBytes() { - java.lang.Object ref = business_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - business_ = b; - return b; + public com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig buildPartial() { + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig result = + new com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.searchTier_ = searchTier_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requiredSubscriptionTier_ = requiredSubscriptionTier_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + searchAddOns_.makeImmutable(); + result.searchAddOns_ = searchAddOns_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) other); } else { - return (com.google.protobuf.ByteString) ref; + super.mergeFrom(other); + return this; } } - public static final int DEFAULT_LANGUAGE_CODE_FIELD_NUMBER = 2; + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig + .getDefaultInstance()) return this; + if (other.searchTier_ != 0) { + setSearchTierValue(other.getSearchTierValue()); + } + if (other.requiredSubscriptionTier_ != 0) { + setRequiredSubscriptionTierValue(other.getRequiredSubscriptionTierValue()); + } + if (!other.searchAddOns_.isEmpty()) { + if (searchAddOns_.isEmpty()) { + searchAddOns_ = other.searchAddOns_; + searchAddOns_.makeImmutable(); + bitField0_ |= 0x00000004; + } else { + ensureSearchAddOnsIsMutable(); + searchAddOns_.addAll(other.searchAddOns_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @SuppressWarnings("serial") - private volatile java.lang.Object defaultLanguageCode_ = ""; + @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: + { + searchTier_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + int tmpRaw = input.readEnum(); + ensureSearchAddOnsIsMutable(); + searchAddOns_.addInt(tmpRaw); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureSearchAddOnsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + searchAddOns_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 18 + case 24: + { + requiredSubscriptionTier_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int searchTier_ = 0; /** * * *
            -       * Required. The default language of the agent as a language tag.
            -       * See [Language
            -       * Support](https://cloud.google.com/dialogflow/docs/reference/language)
            -       * for a list of the currently supported language codes.
            +       * The search feature tier of this engine.
            +       *
            +       * Different tiers might have different
            +       * pricing. To learn more, check the pricing documentation.
            +       *
            +       * Defaults to
            +       * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_STANDARD]
            +       * if not specified.
                    * 
            * - * string default_language_code = 2; + * .google.cloud.discoveryengine.v1beta.SearchTier search_tier = 1; * - * @return The defaultLanguageCode. + * @return The enum numeric value on the wire for searchTier. */ @java.lang.Override - public java.lang.String getDefaultLanguageCode() { - java.lang.Object ref = defaultLanguageCode_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultLanguageCode_ = s; - return s; - } + public int getSearchTierValue() { + return searchTier_; } /** * * *
            -       * Required. The default language of the agent as a language tag.
            -       * See [Language
            -       * Support](https://cloud.google.com/dialogflow/docs/reference/language)
            -       * for a list of the currently supported language codes.
            +       * The search feature tier of this engine.
            +       *
            +       * Different tiers might have different
            +       * pricing. To learn more, check the pricing documentation.
            +       *
            +       * Defaults to
            +       * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_STANDARD]
            +       * if not specified.
                    * 
            * - * string default_language_code = 2; + * .google.cloud.discoveryengine.v1beta.SearchTier search_tier = 1; * - * @return The bytes for defaultLanguageCode. + * @param value The enum numeric value on the wire for searchTier to set. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { - java.lang.Object ref = defaultLanguageCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultLanguageCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder setSearchTierValue(int value) { + searchTier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - public static final int TIME_ZONE_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object timeZone_ = ""; - /** * * *
            -       * Required. The time zone of the agent from the [time zone
            -       * database](https://www.iana.org/time-zones), e.g., America/New_York,
            -       * Europe/Paris.
            -       * 
            + * The search feature tier of this engine. * - * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * Different tiers might have different + * pricing. To learn more, check the pricing documentation. * - * @return The timeZone. + * Defaults to + * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_STANDARD] + * if not specified. + *
            + * + * .google.cloud.discoveryengine.v1beta.SearchTier search_tier = 1; + * + * @return The searchTier. */ @java.lang.Override - public java.lang.String getTimeZone() { - java.lang.Object ref = timeZone_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeZone_ = s; - return s; - } + public com.google.cloud.discoveryengine.v1beta.SearchTier getSearchTier() { + com.google.cloud.discoveryengine.v1beta.SearchTier result = + com.google.cloud.discoveryengine.v1beta.SearchTier.forNumber(searchTier_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchTier.UNRECOGNIZED + : result; } /** * * *
            -       * Required. The time zone of the agent from the [time zone
            -       * database](https://www.iana.org/time-zones), e.g., America/New_York,
            -       * Europe/Paris.
            +       * The search feature tier of this engine.
            +       *
            +       * Different tiers might have different
            +       * pricing. To learn more, check the pricing documentation.
            +       *
            +       * Defaults to
            +       * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_STANDARD]
            +       * if not specified.
                    * 
            * - * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.SearchTier search_tier = 1; * - * @return The bytes for timeZone. + * @param value The searchTier to set. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.protobuf.ByteString getTimeZoneBytes() { - java.lang.Object ref = timeZone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - timeZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public Builder setSearchTier(com.google.cloud.discoveryengine.v1beta.SearchTier value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000001; + searchTier_ = value.getNumber(); + onChanged(); + return this; } - public static final int LOCATION_FIELD_NUMBER = 4; + /** + * + * + *
            +       * The search feature tier of this engine.
            +       *
            +       * Different tiers might have different
            +       * pricing. To learn more, check the pricing documentation.
            +       *
            +       * Defaults to
            +       * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1beta.SearchTier.SEARCH_TIER_STANDARD]
            +       * if not specified.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchTier search_tier = 1; + * + * @return This builder for chaining. + */ + public Builder clearSearchTier() { + bitField0_ = (bitField0_ & ~0x00000001); + searchTier_ = 0; + onChanged(); + return this; + } - @SuppressWarnings("serial") - private volatile java.lang.Object location_ = ""; + private int requiredSubscriptionTier_ = 0; /** * * *
            -       * Agent location for Agent creation, supported values: global/us/eu.
            -       * If not provided, us Engine will create Agent using us-central-1 by
            -       * default; eu Engine will create Agent using eu-west-1 by default.
            +       * Optional. The required subscription tier of this engine.
            +       *
            +       * They cannot be modified after engine creation. If the required
            +       * subscription tier is search, user with higher license tier like assist
            +       * can still access the standalone app associated with this engine.
                    * 
            * - * string location = 4; + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTier required_subscription_tier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The location. + * @return The enum numeric value on the wire for requiredSubscriptionTier. */ @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; - } + public int getRequiredSubscriptionTierValue() { + return requiredSubscriptionTier_; } /** * * *
            -       * Agent location for Agent creation, supported values: global/us/eu.
            -       * If not provided, us Engine will create Agent using us-central-1 by
            -       * default; eu Engine will create Agent using eu-west-1 by default.
            +       * Optional. The required subscription tier of this engine.
            +       *
            +       * They cannot be modified after engine creation. If the required
            +       * subscription tier is search, user with higher license tier like assist
            +       * can still access the standalone app associated with this engine.
                    * 
            * - * string location = 4; + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTier required_subscription_tier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The bytes for location. + * @param value The enum numeric value on the wire for requiredSubscriptionTier to set. + * @return This builder for chaining. */ - @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 Builder setRequiredSubscriptionTierValue(int value) { + requiredSubscriptionTier_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - private byte memoizedIsInitialized = -1; - + /** + * + * + *
            +       * Optional. The required subscription tier of this engine.
            +       *
            +       * They cannot be modified after engine creation. If the required
            +       * subscription tier is search, user with higher license tier like assist
            +       * can still access the standalone app associated with this engine.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTier required_subscription_tier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requiredSubscriptionTier. + */ @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 com.google.cloud.discoveryengine.v1beta.SubscriptionTier + getRequiredSubscriptionTier() { + com.google.cloud.discoveryengine.v1beta.SubscriptionTier result = + com.google.cloud.discoveryengine.v1beta.SubscriptionTier.forNumber( + requiredSubscriptionTier_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SubscriptionTier.UNRECOGNIZED + : result; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(business_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, business_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLanguageCode_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, defaultLanguageCode_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeZone_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, timeZone_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, location_); + /** + * + * + *
            +       * Optional. The required subscription tier of this engine.
            +       *
            +       * They cannot be modified after engine creation. If the required
            +       * subscription tier is search, user with higher license tier like assist
            +       * can still access the standalone app associated with this engine.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTier required_subscription_tier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The requiredSubscriptionTier to set. + * @return This builder for chaining. + */ + public Builder setRequiredSubscriptionTier( + com.google.cloud.discoveryengine.v1beta.SubscriptionTier value) { + if (value == null) { + throw new NullPointerException(); } - getUnknownFields().writeTo(output); + bitField0_ |= 0x00000002; + requiredSubscriptionTier_ = value.getNumber(); + onChanged(); + return this; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(business_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, business_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLanguageCode_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, defaultLanguageCode_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeZone_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, timeZone_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, location_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + /** + * + * + *
            +       * Optional. The required subscription tier of this engine.
            +       *
            +       * They cannot be modified after engine creation. If the required
            +       * subscription tier is search, user with higher license tier like assist
            +       * can still access the standalone app associated with this engine.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTier required_subscription_tier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRequiredSubscriptionTier() { + bitField0_ = (bitField0_ & ~0x00000002); + requiredSubscriptionTier_ = 0; + onChanged(); + return this; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig other = - (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig) - obj; + private com.google.protobuf.Internal.IntList searchAddOns_ = emptyIntList(); - if (!getBusiness().equals(other.getBusiness())) return false; - if (!getDefaultLanguageCode().equals(other.getDefaultLanguageCode())) return false; - if (!getTimeZone().equals(other.getTimeZone())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + private void ensureSearchAddOnsIsMutable() { + if (!searchAddOns_.isModifiable()) { + searchAddOns_ = makeMutableCopy(searchAddOns_); + } + bitField0_ |= 0x00000004; } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + BUSINESS_FIELD_NUMBER; - hash = (53 * hash) + getBusiness().hashCode(); - hash = (37 * hash) + DEFAULT_LANGUAGE_CODE_FIELD_NUMBER; - hash = (53 * hash) + getDefaultLanguageCode().hashCode(); - hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; - hash = (53 * hash) + getTimeZone().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.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig - 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.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig - parseFrom( - 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.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
            +       * The add-on that this search engine enables.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @return A list containing the searchAddOns. + */ + public java.util.List + getSearchAddOnsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1beta.SearchAddOn>( + searchAddOns_, searchAddOns_converter_); } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + /** + * + * + *
            +       * The add-on that this search engine enables.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @return The count of searchAddOns. + */ + public int getSearchAddOnsCount() { + return searchAddOns_.size(); } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
            +       * The add-on that this search engine enables.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @param index The index of the element to return. + * @return The searchAddOns at the given index. + */ + public com.google.cloud.discoveryengine.v1beta.SearchAddOn getSearchAddOns(int index) { + return searchAddOns_converter_.convert(searchAddOns_.getInt(index)); } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + /** + * + * + *
            +       * The add-on that this search engine enables.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @param index The index to set the value at. + * @param value The searchAddOns to set. + * @return This builder for chaining. + */ + public Builder setSearchAddOns( + int index, com.google.cloud.discoveryengine.v1beta.SearchAddOn value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchAddOnsIsMutable(); + searchAddOns_.setInt(index, value.getNumber()); + onChanged(); + return this; } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + /** + * + * + *
            +       * The add-on that this search engine enables.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @param value The searchAddOns to add. + * @return This builder for chaining. + */ + public Builder addSearchAddOns(com.google.cloud.discoveryengine.v1beta.SearchAddOn value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchAddOnsIsMutable(); + searchAddOns_.addInt(value.getNumber()); + onChanged(); + return this; } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + /** + * + * + *
            +       * The add-on that this search engine enables.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @param values The searchAddOns to add. + * @return This builder for chaining. + */ + public Builder addAllSearchAddOns( + java.lang.Iterable + values) { + ensureSearchAddOnsIsMutable(); + for (com.google.cloud.discoveryengine.v1beta.SearchAddOn value : values) { + searchAddOns_.addInt(value.getNumber()); + } + onChanged(); + return this; } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + /** + * + * + *
            +       * The add-on that this search engine enables.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @return This builder for chaining. + */ + public Builder clearSearchAddOns() { + searchAddOns_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * + * + *
            +       * The add-on that this search engine enables.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @return A list containing the enum numeric values on the wire for searchAddOns. + */ + public java.util.List getSearchAddOnsValueList() { + searchAddOns_.makeImmutable(); + return searchAddOns_; } /** * * *
            -       * Configurations for generating a Dialogflow agent.
            -       *
            -       * Note that these configurations are one-time consumed by
            -       * and passed to Dialogflow service. It means they cannot be retrieved using
            -       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -       * or
            -       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -       * API after engine creation.
            +       * The add-on that this search engine enables.
                    * 
            * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig) - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_AgentCreationConfig_descriptor; - } + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of searchAddOns at the given index. + */ + public int getSearchAddOnsValue(int index) { + return searchAddOns_.getInt(index); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_AgentCreationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig.class, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig.Builder.class); - } + /** + * + * + *
            +       * The add-on that this search engine enables.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for searchAddOns to set. + * @return This builder for chaining. + */ + public Builder setSearchAddOnsValue(int index, int value) { + ensureSearchAddOnsIsMutable(); + searchAddOns_.setInt(index, value); + onChanged(); + return this; + } - // Construct using - // com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig.newBuilder() - private Builder() {} + /** + * + * + *
            +       * The add-on that this search engine enables.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @param value The enum numeric value on the wire for searchAddOns to add. + * @return This builder for chaining. + */ + public Builder addSearchAddOnsValue(int value) { + ensureSearchAddOnsIsMutable(); + searchAddOns_.addInt(value); + onChanged(); + return this; + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + /** + * + * + *
            +       * The add-on that this search engine enables.
            +       * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchAddOn search_add_ons = 2; + * + * @param values The enum numeric values on the wire for searchAddOns to add. + * @return This builder for chaining. + */ + public Builder addAllSearchAddOnsValue(java.lang.Iterable values) { + ensureSearchAddOnsIsMutable(); + for (int value : values) { + searchAddOns_.addInt(value); } + onChanged(); + return this; + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - business_ = ""; - defaultLanguageCode_ = ""; - timeZone_ = ""; - location_ = ""; - return this; - } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_AgentCreationConfig_descriptor; - } + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) + private static final com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig + DEFAULT_INSTANCE; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - .getDefaultInstance(); - } + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig(); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - build() { - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + public static com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - buildPartial() { - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - result = - new com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchEngineConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } - onBuilt(); - return result; - } + }; - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.business_ = business_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.defaultLanguageCode_ = defaultLanguageCode_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.timeZone_ = timeZone_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.location_ = location_; - } - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig) - other); - } else { - super.mergeFrom(other); - return this; - } - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - .getDefaultInstance()) return this; - if (!other.getBusiness().isEmpty()) { - business_ = other.business_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDefaultLanguageCode().isEmpty()) { - defaultLanguageCode_ = other.defaultLanguageCode_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getTimeZone().isEmpty()) { - timeZone_ = other.timeZone_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + public interface MediaRecommendationEngineConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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: - { - business_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - defaultLanguageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - timeZone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - location_ = 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_; + /** + * + * + *
            +     * Required. The type of engine. e.g., `recommended-for-you`.
            +     *
            +     * This field together with
            +     * [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.optimization_objective]
            +     * describe engine metadata to use to control engine training and serving.
            +     *
            +     * Currently supported values: `recommended-for-you`, `others-you-may-like`,
            +     * `more-like-this`, `most-popular-items`.
            +     * 
            + * + * string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The type. + */ + java.lang.String getType(); - private java.lang.Object business_ = ""; + /** + * + * + *
            +     * Required. The type of engine. e.g., `recommended-for-you`.
            +     *
            +     * This field together with
            +     * [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.optimization_objective]
            +     * describe engine metadata to use to control engine training and serving.
            +     *
            +     * Currently supported values: `recommended-for-you`, `others-you-may-like`,
            +     * `more-like-this`, `most-popular-items`.
            +     * 
            + * + * string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); - /** - * - * - *
            -         * Name of the company, organization or other entity that the agent
            -         * represents. Used for knowledge connector LLM prompt and for knowledge
            -         * search.
            -         * 
            - * - * string business = 1; - * - * @return The business. - */ - public java.lang.String getBusiness() { - java.lang.Object ref = business_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - business_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + /** + * + * + *
            +     * The optimization objective. e.g., `cvr`.
            +     *
            +     * This field together with
            +     * [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.type]
            +     * describe engine metadata to use to control engine training and serving.
            +     *
            +     * Currently supported
            +     * values: `ctr`, `cvr`.
            +     *
            +     * If not specified, we choose default based on engine type.
            +     * Default depends on type of recommendation:
            +     *
            +     * `recommended-for-you` => `ctr`
            +     *
            +     * `others-you-may-like` => `ctr`
            +     * 
            + * + * string optimization_objective = 2; + * + * @return The optimizationObjective. + */ + java.lang.String getOptimizationObjective(); - /** - * - * - *
            -         * Name of the company, organization or other entity that the agent
            -         * represents. Used for knowledge connector LLM prompt and for knowledge
            -         * search.
            -         * 
            - * - * string business = 1; - * - * @return The bytes for business. - */ - public com.google.protobuf.ByteString getBusinessBytes() { - java.lang.Object ref = business_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - business_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
            +     * The optimization objective. e.g., `cvr`.
            +     *
            +     * This field together with
            +     * [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.type]
            +     * describe engine metadata to use to control engine training and serving.
            +     *
            +     * Currently supported
            +     * values: `ctr`, `cvr`.
            +     *
            +     * If not specified, we choose default based on engine type.
            +     * Default depends on type of recommendation:
            +     *
            +     * `recommended-for-you` => `ctr`
            +     *
            +     * `others-you-may-like` => `ctr`
            +     * 
            + * + * string optimization_objective = 2; + * + * @return The bytes for optimizationObjective. + */ + com.google.protobuf.ByteString getOptimizationObjectiveBytes(); - /** - * - * - *
            -         * Name of the company, organization or other entity that the agent
            -         * represents. Used for knowledge connector LLM prompt and for knowledge
            -         * search.
            -         * 
            - * - * string business = 1; - * - * @param value The business to set. - * @return This builder for chaining. - */ - public Builder setBusiness(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - business_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + /** + * + * + *
            +     * Name and value of the custom threshold for cvr optimization_objective.
            +     * For target_field `watch-time`, target_field_value must be an integer
            +     * value indicating the media progress time in seconds between (0, 86400]
            +     * (excludes 0, includes 86400) (e.g., 90).
            +     * For target_field `watch-percentage`, the target_field_value must be a
            +     * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
            +     * 0.5).
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + * + * @return Whether the optimizationObjectiveConfig field is set. + */ + boolean hasOptimizationObjectiveConfig(); - /** - * - * - *
            -         * Name of the company, organization or other entity that the agent
            -         * represents. Used for knowledge connector LLM prompt and for knowledge
            -         * search.
            -         * 
            - * - * string business = 1; - * - * @return This builder for chaining. - */ - public Builder clearBusiness() { - business_ = getDefaultInstance().getBusiness(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } + /** + * + * + *
            +     * Name and value of the custom threshold for cvr optimization_objective.
            +     * For target_field `watch-time`, target_field_value must be an integer
            +     * value indicating the media progress time in seconds between (0, 86400]
            +     * (excludes 0, includes 86400) (e.g., 90).
            +     * For target_field `watch-percentage`, the target_field_value must be a
            +     * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
            +     * 0.5).
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + * + * @return The optimizationObjectiveConfig. + */ + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + getOptimizationObjectiveConfig(); - /** - * - * - *
            -         * Name of the company, organization or other entity that the agent
            -         * represents. Used for knowledge connector LLM prompt and for knowledge
            -         * search.
            -         * 
            - * - * string business = 1; - * - * @param value The bytes for business to set. - * @return This builder for chaining. - */ - public Builder setBusinessBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - business_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + /** + * + * + *
            +     * Name and value of the custom threshold for cvr optimization_objective.
            +     * For target_field `watch-time`, target_field_value must be an integer
            +     * value indicating the media progress time in seconds between (0, 86400]
            +     * (excludes 0, includes 86400) (e.g., 90).
            +     * For target_field `watch-percentage`, the target_field_value must be a
            +     * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
            +     * 0.5).
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + */ + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfigOrBuilder + getOptimizationObjectiveConfigOrBuilder(); - private java.lang.Object defaultLanguageCode_ = ""; + /** + * + * + *
            +     * The training state that the engine is in (e.g.
            +     * `TRAINING` or `PAUSED`).
            +     *
            +     * Since part of the cost of running the service
            +     * is frequency of training - this can be used to determine when to train
            +     * engine in order to control cost. If not specified: the default value for
            +     * `CreateEngine` method is `TRAINING`. The default value for
            +     * `UpdateEngine` method is to keep the state the same as before.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; + * + * + * @return The enum numeric value on the wire for trainingState. + */ + int getTrainingStateValue(); - /** - * - * - *
            -         * Required. The default language of the agent as a language tag.
            -         * See [Language
            -         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
            -         * for a list of the currently supported language codes.
            -         * 
            - * - * string default_language_code = 2; - * - * @return The defaultLanguageCode. - */ - public java.lang.String getDefaultLanguageCode() { - java.lang.Object ref = defaultLanguageCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultLanguageCode_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + /** + * + * + *
            +     * The training state that the engine is in (e.g.
            +     * `TRAINING` or `PAUSED`).
            +     *
            +     * Since part of the cost of running the service
            +     * is frequency of training - this can be used to determine when to train
            +     * engine in order to control cost. If not specified: the default value for
            +     * `CreateEngine` method is `TRAINING`. The default value for
            +     * `UpdateEngine` method is to keep the state the same as before.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; + * + * + * @return The trainingState. + */ + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.TrainingState + getTrainingState(); - /** - * - * - *
            -         * Required. The default language of the agent as a language tag.
            -         * See [Language
            -         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
            -         * for a list of the currently supported language codes.
            -         * 
            - * - * string default_language_code = 2; - * - * @return The bytes for defaultLanguageCode. - */ - public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { - java.lang.Object ref = defaultLanguageCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultLanguageCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
            +     * Optional. Additional engine features config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the engineFeaturesConfig field is set. + */ + boolean hasEngineFeaturesConfig(); - /** - * - * - *
            -         * Required. The default language of the agent as a language tag.
            -         * See [Language
            -         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
            -         * for a list of the currently supported language codes.
            -         * 
            - * - * string default_language_code = 2; - * - * @param value The defaultLanguageCode to set. - * @return This builder for chaining. - */ - public Builder setDefaultLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - defaultLanguageCode_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + /** + * + * + *
            +     * Optional. Additional engine features config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The engineFeaturesConfig. + */ + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + getEngineFeaturesConfig(); - /** - * - * - *
            -         * Required. The default language of the agent as a language tag.
            -         * See [Language
            -         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
            -         * for a list of the currently supported language codes.
            -         * 
            - * - * string default_language_code = 2; - * - * @return This builder for chaining. - */ - public Builder clearDefaultLanguageCode() { - defaultLanguageCode_ = getDefaultInstance().getDefaultLanguageCode(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } + /** + * + * + *
            +     * Optional. Additional engine features config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfigOrBuilder + getEngineFeaturesConfigOrBuilder(); + } - /** - * - * - *
            -         * Required. The default language of the agent as a language tag.
            -         * See [Language
            -         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
            -         * for a list of the currently supported language codes.
            -         * 
            - * - * string default_language_code = 2; - * - * @param value The bytes for defaultLanguageCode to set. - * @return This builder for chaining. - */ - public Builder setDefaultLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - defaultLanguageCode_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + /** + * + * + *
            +   * Additional config specs for a Media Recommendation engine.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig} + */ + public static final class MediaRecommendationEngineConfig + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig) + MediaRecommendationEngineConfigOrBuilder { + private static final long serialVersionUID = 0L; - private java.lang.Object timeZone_ = ""; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MediaRecommendationEngineConfig"); + } - /** - * - * - *
            -         * Required. The time zone of the agent from the [time zone
            -         * database](https://www.iana.org/time-zones), e.g., America/New_York,
            -         * Europe/Paris.
            -         * 
            - * - * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The timeZone. - */ - public java.lang.String getTimeZone() { - java.lang.Object ref = timeZone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeZone_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } + // Use MediaRecommendationEngineConfig.newBuilder() to construct. + private MediaRecommendationEngineConfig( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - /** - * - * - *
            -         * Required. The time zone of the agent from the [time zone
            -         * database](https://www.iana.org/time-zones), e.g., America/New_York,
            -         * Europe/Paris.
            -         * 
            - * - * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for timeZone. - */ - public com.google.protobuf.ByteString getTimeZoneBytes() { - java.lang.Object ref = timeZone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - timeZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private MediaRecommendationEngineConfig() { + type_ = ""; + optimizationObjective_ = ""; + trainingState_ = 0; + } - /** - * - * - *
            -         * Required. The time zone of the agent from the [time zone
            -         * database](https://www.iana.org/time-zones), e.g., America/New_York,
            -         * Europe/Paris.
            -         * 
            - * - * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The timeZone to set. - * @return This builder for chaining. - */ - public Builder setTimeZone(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - timeZone_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_descriptor; + } - /** - * - * - *
            -         * Required. The time zone of the agent from the [time zone
            -         * database](https://www.iana.org/time-zones), e.g., America/New_York,
            -         * Europe/Paris.
            -         * 
            - * - * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearTimeZone() { - timeZone_ = getDefaultInstance().getTimeZone(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.class, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.Builder + .class); + } - /** - * - * - *
            -         * Required. The time zone of the agent from the [time zone
            -         * database](https://www.iana.org/time-zones), e.g., America/New_York,
            -         * Europe/Paris.
            -         * 
            - * - * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for timeZone to set. - * @return This builder for chaining. - */ - public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - timeZone_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } + /** + * + * + *
            +     * The training state of the engine.
            +     * 
            + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.TrainingState} + */ + public enum TrainingState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Unspecified training state.
            +       * 
            + * + * TRAINING_STATE_UNSPECIFIED = 0; + */ + TRAINING_STATE_UNSPECIFIED(0), + /** + * + * + *
            +       * The engine training is paused.
            +       * 
            + * + * PAUSED = 1; + */ + PAUSED(1), + /** + * + * + *
            +       * The engine is training.
            +       * 
            + * + * TRAINING = 2; + */ + TRAINING(2), + UNRECOGNIZED(-1), + ; - private java.lang.Object location_ = ""; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TrainingState"); + } - /** - * - * - *
            -         * Agent location for Agent creation, supported values: global/us/eu.
            -         * If not provided, us Engine will create Agent using us-central-1 by
            -         * default; eu Engine will create Agent using eu-west-1 by default.
            -         * 
            - * - * string location = 4; - * - * @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; - } - } + /** + * + * + *
            +       * Unspecified training state.
            +       * 
            + * + * TRAINING_STATE_UNSPECIFIED = 0; + */ + public static final int TRAINING_STATE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
            -         * Agent location for Agent creation, supported values: global/us/eu.
            -         * If not provided, us Engine will create Agent using us-central-1 by
            -         * default; eu Engine will create Agent using eu-west-1 by default.
            -         * 
            - * - * string location = 4; - * - * @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; - } - } + /** + * + * + *
            +       * The engine training is paused.
            +       * 
            + * + * PAUSED = 1; + */ + public static final int PAUSED_VALUE = 1; - /** - * - * - *
            -         * Agent location for Agent creation, supported values: global/us/eu.
            -         * If not provided, us Engine will create Agent using us-central-1 by
            -         * default; eu Engine will create Agent using eu-west-1 by default.
            -         * 
            - * - * string location = 4; - * - * @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_ |= 0x00000008; - onChanged(); - return this; - } + /** + * + * + *
            +       * The engine is training.
            +       * 
            + * + * TRAINING = 2; + */ + public static final int TRAINING_VALUE = 2; - /** - * - * - *
            -         * Agent location for Agent creation, supported values: global/us/eu.
            -         * If not provided, us Engine will create Agent using us-central-1 by
            -         * default; eu Engine will create Agent using eu-west-1 by default.
            -         * 
            - * - * string location = 4; - * - * @return This builder for chaining. - */ - public Builder clearLocation() { - location_ = getDefaultInstance().getLocation(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); } + return value; + } - /** - * - * - *
            -         * Agent location for Agent creation, supported values: global/us/eu.
            -         * If not provided, us Engine will create Agent using us-central-1 by
            -         * default; eu Engine will create Agent using eu-west-1 by default.
            -         * 
            - * - * string location = 4; - * - * @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_ |= 0x00000008; - onChanged(); - return this; + /** + * @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 TrainingState 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 TrainingState forNumber(int value) { + switch (value) { + case 0: + return TRAINING_STATE_UNSPECIFIED; + case 1: + return PAUSED; + case 2: + return TRAINING; + default: + return null; } + } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig) + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig) - private static final com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig - DEFAULT_INSTANCE; + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TrainingState findValueByNumber(int number) { + return TrainingState.forNumber(number); + } + }; - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig(); + 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.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AgentCreationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .getDescriptor() + .getEnumTypes() + .get(0); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private static final TrainingState[] VALUES = values(); - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + public static TrainingState 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 com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + private final int value; + + private TrainingState(int value) { + this.value = value; } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.TrainingState) } - private int bitField0_; - public static final int AGENT_CREATION_CONFIG_FIELD_NUMBER = 1; - private com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - agentCreationConfig_; + public interface OptimizationObjectiveConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
            -     * The configurationt generate the Dialogflow agent that is associated to
            -     * this Engine.
            -     *
            -     * Note that these configurations are one-time consumed by
            -     * and passed to Dialogflow service. It means they cannot be retrieved using
            -     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -     * or
            -     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -     * API after engine creation.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * - * - * @return Whether the agentCreationConfig field is set. - */ - @java.lang.Override - public boolean hasAgentCreationConfig() { - return ((bitField0_ & 0x00000001) != 0); - } + /** + * + * + *
            +       * Required. The name of the field to target. Currently supported
            +       * values: `watch-percentage`, `watch-time`.
            +       * 
            + * + * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetField. + */ + java.lang.String getTargetField(); - /** - * - * - *
            -     * The configurationt generate the Dialogflow agent that is associated to
            -     * this Engine.
            -     *
            -     * Note that these configurations are one-time consumed by
            -     * and passed to Dialogflow service. It means they cannot be retrieved using
            -     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -     * or
            -     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -     * API after engine creation.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * - * - * @return The agentCreationConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - getAgentCreationConfig() { - return agentCreationConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - .getDefaultInstance() - : agentCreationConfig_; + /** + * + * + *
            +       * Required. The name of the field to target. Currently supported
            +       * values: `watch-percentage`, `watch-time`.
            +       * 
            + * + * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for targetField. + */ + com.google.protobuf.ByteString getTargetFieldBytes(); + + /** + * + * + *
            +       * Required. The threshold to be applied to the target (e.g., 0.5).
            +       * 
            + * + * float target_field_value_float = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetFieldValueFloat. + */ + float getTargetFieldValueFloat(); } /** * * *
            -     * The configurationt generate the Dialogflow agent that is associated to
            -     * this Engine.
            -     *
            -     * Note that these configurations are one-time consumed by
            -     * and passed to Dialogflow service. It means they cannot be retrieved using
            -     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -     * or
            -     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -     * API after engine creation.
            +     * Custom threshold for `cvr` optimization_objective.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig} */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfigOrBuilder - getAgentCreationConfigOrBuilder() { - return agentCreationConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - .getDefaultInstance() - : agentCreationConfig_; - } + public static final class OptimizationObjectiveConfig + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig) + OptimizationObjectiveConfigOrBuilder { + private static final long serialVersionUID = 0L; - public static final int DIALOGFLOW_AGENT_TO_LINK_FIELD_NUMBER = 2; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OptimizationObjectiveConfig"); + } - @SuppressWarnings("serial") - private volatile java.lang.Object dialogflowAgentToLink_ = ""; + // Use OptimizationObjectiveConfig.newBuilder() to construct. + private OptimizationObjectiveConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - /** - * - * - *
            -     * The resource name of an exist Dialogflow agent to link to this Chat
            -     * Engine. Customers can either provide `agent_creation_config` to create
            -     * agent or provide an agent name that links the agent with the Chat engine.
            -     *
            -     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            -     * ID>`.
            -     *
            -     * Note that the `dialogflow_agent_to_link` are one-time consumed by and
            -     * passed to Dialogflow service. It means they cannot be retrieved using
            -     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -     * or
            -     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -     * API after engine creation. Use
            -     * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
            -     * for actual agent association after Engine is created.
            -     * 
            - * - * string dialogflow_agent_to_link = 2; - * - * @return The dialogflowAgentToLink. - */ - @java.lang.Override - public java.lang.String getDialogflowAgentToLink() { - java.lang.Object ref = dialogflowAgentToLink_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dialogflowAgentToLink_ = s; - return s; + private OptimizationObjectiveConfig() { + targetField_ = ""; } - } - /** - * - * - *
            -     * The resource name of an exist Dialogflow agent to link to this Chat
            -     * Engine. Customers can either provide `agent_creation_config` to create
            -     * agent or provide an agent name that links the agent with the Chat engine.
            -     *
            -     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            -     * ID>`.
            -     *
            -     * Note that the `dialogflow_agent_to_link` are one-time consumed by and
            -     * passed to Dialogflow service. It means they cannot be retrieved using
            -     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -     * or
            -     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -     * API after engine creation. Use
            -     * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
            -     * for actual agent association after Engine is created.
            -     * 
            - * - * string dialogflow_agent_to_link = 2; - * - * @return The bytes for dialogflowAgentToLink. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDialogflowAgentToLinkBytes() { - java.lang.Object ref = dialogflowAgentToLink_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dialogflowAgentToLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_descriptor; } - } - private byte memoizedIsInitialized = -1; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.class, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.Builder.class); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static final int TARGET_FIELD_FIELD_NUMBER = 1; - memoizedIsInitialized = 1; - return true; - } + @SuppressWarnings("serial") + private volatile java.lang.Object targetField_ = ""; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getAgentCreationConfig()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dialogflowAgentToLink_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, dialogflowAgentToLink_); + /** + * + * + *
            +       * Required. The name of the field to target. Currently supported
            +       * values: `watch-percentage`, `watch-time`.
            +       * 
            + * + * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetField. + */ + @java.lang.Override + public java.lang.String getTargetField() { + java.lang.Object ref = targetField_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetField_ = s; + return s; + } } - 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, getAgentCreationConfig()); + /** + * + * + *
            +       * Required. The name of the field to target. Currently supported
            +       * values: `watch-percentage`, `watch-time`.
            +       * 
            + * + * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for targetField. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetFieldBytes() { + java.lang.Object ref = targetField_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetField_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dialogflowAgentToLink_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, dialogflowAgentToLink_); + + public static final int TARGET_FIELD_VALUE_FLOAT_FIELD_NUMBER = 2; + private float targetFieldValueFloat_ = 0F; + + /** + * + * + *
            +       * Required. The threshold to be applied to the target (e.g., 0.5).
            +       * 
            + * + * float target_field_value_float = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetFieldValueFloat. + */ + @java.lang.Override + public float getTargetFieldValueFloat() { + return targetFieldValueFloat_; } - 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.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig)) { - return super.equals(obj); + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetField_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, targetField_); + } + if (java.lang.Float.floatToRawIntBits(targetFieldValueFloat_) != 0) { + output.writeFloat(2, targetFieldValueFloat_); + } + getUnknownFields().writeTo(output); } - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig other = - (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) obj; - if (hasAgentCreationConfig() != other.hasAgentCreationConfig()) return false; - if (hasAgentCreationConfig()) { - if (!getAgentCreationConfig().equals(other.getAgentCreationConfig())) return false; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetField_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, targetField_); + } + if (java.lang.Float.floatToRawIntBits(targetFieldValueFloat_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, targetFieldValueFloat_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } - if (!getDialogflowAgentToLink().equals(other.getDialogflowAgentToLink())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + other = + (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig) + obj; + + if (!getTargetField().equals(other.getTargetField())) return false; + if (java.lang.Float.floatToIntBits(getTargetFieldValueFloat()) + != java.lang.Float.floatToIntBits(other.getTargetFieldValueFloat())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAgentCreationConfig()) { - hash = (37 * hash) + AGENT_CREATION_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getAgentCreationConfig().hashCode(); + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TARGET_FIELD_FIELD_NUMBER; + hash = (53 * hash) + getTargetField().hashCode(); + hash = (37 * hash) + TARGET_FIELD_VALUE_FLOAT_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getTargetFieldValueFloat()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - hash = (37 * hash) + DIALOGFLOW_AGENT_TO_LINK_FIELD_NUMBER; - hash = (53 * hash) + getDialogflowAgentToLink().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig 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.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + 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.v1beta.Engine.ChatEngineConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig parseFrom( - 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.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseFrom( + 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.v1beta.Engine.ChatEngineConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
            -     * Configurations for a Chat Engine.
            -     * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_descriptor; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.class, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.Builder.class); + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - // Construct using - // com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + /** + * + * + *
            +       * Custom threshold for `cvr` optimization_objective.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig) + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_descriptor; + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.class, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.Builder.class); + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetAgentCreationConfigFieldBuilder(); + // Construct using + // com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - agentCreationConfig_ = null; - if (agentCreationConfigBuilder_ != null) { - agentCreationConfigBuilder_.dispose(); - agentCreationConfigBuilder_ = null; + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + targetField_ = ""; + targetFieldValueFloat_ = 0F; + return this; } - dialogflowAgentToLink_ = ""; - return this; - } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_descriptor; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_descriptor; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.getDefaultInstance(); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.getDefaultInstance(); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig build() { - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + build() { + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - return result; - } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig buildPartial() { - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig result = - new com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + result = + new com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; } - onBuilt(); - return result; - } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.agentCreationConfig_ = - agentCreationConfigBuilder_ == null - ? agentCreationConfig_ - : agentCreationConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.targetField_ = targetField_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.targetFieldValueFloat_ = targetFieldValueFloat_; + } } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.dialogflowAgentToLink_ = dialogflowAgentToLink_; + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig) + other); + } else { + super.mergeFrom(other); + return this; + } } - result.bitField0_ |= to_bitField0_; - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) other); - } else { - super.mergeFrom(other); + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.getDefaultInstance()) return this; + if (!other.getTargetField().isEmpty()) { + targetField_ = other.targetField_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (java.lang.Float.floatToRawIntBits(other.getTargetFieldValueFloat()) != 0) { + setTargetFieldValueFloat(other.getTargetFieldValueFloat()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); return this; } - } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig other) { - if (other - == com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.getDefaultInstance()) - return this; - if (other.hasAgentCreationConfig()) { - mergeAgentCreationConfig(other.getAgentCreationConfig()); + @java.lang.Override + public final boolean isInitialized() { + return true; } - if (!other.getDialogflowAgentToLink().isEmpty()) { - dialogflowAgentToLink_ = other.dialogflowAgentToLink_; - bitField0_ |= 0x00000002; - onChanged(); + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + targetField_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + targetFieldValueFloat_ = 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; } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + private int bitField0_; - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + private java.lang.Object targetField_ = ""; + + /** + * + * + *
            +         * Required. The name of the field to target. Currently supported
            +         * values: `watch-percentage`, `watch-time`.
            +         * 
            + * + * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetField. + */ + public java.lang.String getTargetField() { + java.lang.Object ref = targetField_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetField_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - internalGetAgentCreationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - dialogflowAgentToLink_ = 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 { + + /** + * + * + *
            +         * Required. The name of the field to target. Currently supported
            +         * values: `watch-percentage`, `watch-time`.
            +         * 
            + * + * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for targetField. + */ + public com.google.protobuf.ByteString getTargetFieldBytes() { + java.lang.Object ref = targetField_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetField_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Required. The name of the field to target. Currently supported
            +         * values: `watch-percentage`, `watch-time`.
            +         * 
            + * + * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The targetField to set. + * @return This builder for chaining. + */ + public Builder setTargetField(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetField_ = value; + bitField0_ |= 0x00000001; onChanged(); - } // finally - return this; + return this; + } + + /** + * + * + *
            +         * Required. The name of the field to target. Currently supported
            +         * values: `watch-percentage`, `watch-time`.
            +         * 
            + * + * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTargetField() { + targetField_ = getDefaultInstance().getTargetField(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The name of the field to target. Currently supported
            +         * values: `watch-percentage`, `watch-time`.
            +         * 
            + * + * string target_field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for targetField to set. + * @return This builder for chaining. + */ + public Builder setTargetFieldBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetField_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private float targetFieldValueFloat_; + + /** + * + * + *
            +         * Required. The threshold to be applied to the target (e.g., 0.5).
            +         * 
            + * + * float target_field_value_float = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The targetFieldValueFloat. + */ + @java.lang.Override + public float getTargetFieldValueFloat() { + return targetFieldValueFloat_; + } + + /** + * + * + *
            +         * Required. The threshold to be applied to the target (e.g., 0.5).
            +         * 
            + * + * float target_field_value_float = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The targetFieldValueFloat to set. + * @return This builder for chaining. + */ + public Builder setTargetFieldValueFloat(float value) { + + targetFieldValueFloat_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The threshold to be applied to the target (e.g., 0.5).
            +         * 
            + * + * float target_field_value_float = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearTargetFieldValueFloat() { + bitField0_ = (bitField0_ & ~0x00000002); + targetFieldValueFloat_ = 0F; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig) } - private int bitField0_; + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig) + private static final com.google.cloud.discoveryengine.v1beta.Engine + .MediaRecommendationEngineConfig.OptimizationObjectiveConfig + DEFAULT_INSTANCE; - private com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - agentCreationConfig_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - .Builder, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfigOrBuilder> - agentCreationConfigBuilder_; + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OptimizationObjectiveConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EngineFeaturesConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig) + com.google.protobuf.MessageOrBuilder { /** * * *
            -       * The configurationt generate the Dialogflow agent that is associated to
            -       * this Engine.
            -       *
            -       * Note that these configurations are one-time consumed by
            -       * and passed to Dialogflow service. It means they cannot be retrieved using
            -       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -       * or
            -       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -       * API after engine creation.
            +       * Recommended for you engine feature config.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; * * - * @return Whether the agentCreationConfig field is set. + * @return Whether the recommendedForYouConfig field is set. */ - public boolean hasAgentCreationConfig() { - return ((bitField0_ & 0x00000001) != 0); - } + boolean hasRecommendedForYouConfig(); /** * * *
            -       * The configurationt generate the Dialogflow agent that is associated to
            -       * this Engine.
            -       *
            -       * Note that these configurations are one-time consumed by
            -       * and passed to Dialogflow service. It means they cannot be retrieved using
            -       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -       * or
            -       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -       * API after engine creation.
            +       * Recommended for you engine feature config.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; * * - * @return The agentCreationConfig. + * @return The recommendedForYouConfig. */ - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - getAgentCreationConfig() { - if (agentCreationConfigBuilder_ == null) { - return agentCreationConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - .getDefaultInstance() - : agentCreationConfig_; - } else { - return agentCreationConfigBuilder_.getMessage(); - } - } + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + getRecommendedForYouConfig(); /** * * *
            -       * The configurationt generate the Dialogflow agent that is associated to
            -       * this Engine.
            -       *
            -       * Note that these configurations are one-time consumed by
            -       * and passed to Dialogflow service. It means they cannot be retrieved using
            -       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -       * or
            -       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -       * API after engine creation.
            -       * 
            + * Recommended for you engine feature config. + * * * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; * */ - public Builder setAgentCreationConfig( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - value) { - if (agentCreationConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - agentCreationConfig_ = value; - } else { - agentCreationConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfigOrBuilder + getRecommendedForYouConfigOrBuilder(); /** * * *
            -       * The configurationt generate the Dialogflow agent that is associated to
            -       * this Engine.
            -       *
            -       * Note that these configurations are one-time consumed by
            -       * and passed to Dialogflow service. It means they cannot be retrieved using
            -       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -       * or
            -       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -       * API after engine creation.
            +       * Most popular engine feature config.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; * + * + * @return Whether the mostPopularConfig field is set. */ - public Builder setAgentCreationConfig( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - .Builder - builderForValue) { - if (agentCreationConfigBuilder_ == null) { - agentCreationConfig_ = builderForValue.build(); - } else { - agentCreationConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + boolean hasMostPopularConfig(); /** * * *
            -       * The configurationt generate the Dialogflow agent that is associated to
            -       * this Engine.
            -       *
            -       * Note that these configurations are one-time consumed by
            -       * and passed to Dialogflow service. It means they cannot be retrieved using
            -       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -       * or
            -       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -       * API after engine creation.
            +       * Most popular engine feature config.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; * + * + * @return The mostPopularConfig. */ - public Builder mergeAgentCreationConfig( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - value) { - if (agentCreationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && agentCreationConfig_ != null - && agentCreationConfig_ - != com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig.getDefaultInstance()) { - getAgentCreationConfigBuilder().mergeFrom(value); - } else { - agentCreationConfig_ = value; - } - } else { - agentCreationConfigBuilder_.mergeFrom(value); - } - if (agentCreationConfig_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + getMostPopularConfig(); /** * * *
            -       * The configurationt generate the Dialogflow agent that is associated to
            -       * this Engine.
            -       *
            -       * Note that these configurations are one-time consumed by
            -       * and passed to Dialogflow service. It means they cannot be retrieved using
            -       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -       * or
            -       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -       * API after engine creation.
            +       * Most popular engine feature config.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; * */ - public Builder clearAgentCreationConfig() { - bitField0_ = (bitField0_ & ~0x00000001); - agentCreationConfig_ = null; - if (agentCreationConfigBuilder_ != null) { - agentCreationConfigBuilder_.dispose(); - agentCreationConfigBuilder_ = null; + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfigOrBuilder + getMostPopularConfigOrBuilder(); + + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.TypeDedicatedConfigCase + getTypeDedicatedConfigCase(); + } + + /** + * + * + *
            +     * More feature configs of the selected engine type.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig} + */ + public static final class EngineFeaturesConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig) + EngineFeaturesConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EngineFeaturesConfig"); + } + + // Use EngineFeaturesConfig.newBuilder() to construct. + private EngineFeaturesConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EngineFeaturesConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.class, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.Builder.class); + } + + private int typeDedicatedConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object typeDedicatedConfig_; + + public enum TypeDedicatedConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RECOMMENDED_FOR_YOU_CONFIG(1), + MOST_POPULAR_CONFIG(2), + TYPEDEDICATEDCONFIG_NOT_SET(0); + private final int value; + + private TypeDedicatedConfigCase(int value) { + this.value = value; } - onChanged(); - return this; + + /** + * @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 TypeDedicatedConfigCase valueOf(int value) { + return forNumber(value); + } + + public static TypeDedicatedConfigCase forNumber(int value) { + switch (value) { + case 1: + return RECOMMENDED_FOR_YOU_CONFIG; + case 2: + return MOST_POPULAR_CONFIG; + case 0: + return TYPEDEDICATEDCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TypeDedicatedConfigCase getTypeDedicatedConfigCase() { + return TypeDedicatedConfigCase.forNumber(typeDedicatedConfigCase_); } + public static final int RECOMMENDED_FOR_YOU_CONFIG_FIELD_NUMBER = 1; + /** * * *
            -       * The configurationt generate the Dialogflow agent that is associated to
            -       * this Engine.
            -       *
            -       * Note that these configurations are one-time consumed by
            -       * and passed to Dialogflow service. It means they cannot be retrieved using
            -       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -       * or
            -       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -       * API after engine creation.
            +       * Recommended for you engine feature config.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; * + * + * @return Whether the recommendedForYouConfig field is set. */ - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - .Builder - getAgentCreationConfigBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetAgentCreationConfigFieldBuilder().getBuilder(); + @java.lang.Override + public boolean hasRecommendedForYouConfig() { + return typeDedicatedConfigCase_ == 1; } /** * * *
            -       * The configurationt generate the Dialogflow agent that is associated to
            -       * this Engine.
            -       *
            -       * Note that these configurations are one-time consumed by
            -       * and passed to Dialogflow service. It means they cannot be retrieved using
            -       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -       * or
            -       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -       * API after engine creation.
            +       * Recommended for you engine feature config.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; * + * + * @return The recommendedForYouConfig. */ - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfigOrBuilder - getAgentCreationConfigOrBuilder() { - if (agentCreationConfigBuilder_ != null) { - return agentCreationConfigBuilder_.getMessageOrBuilder(); - } else { - return agentCreationConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - .getDefaultInstance() - : agentCreationConfig_; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + getRecommendedForYouConfig() { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) + typeDedicatedConfig_; } + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.getDefaultInstance(); } /** * * *
            -       * The configurationt generate the Dialogflow agent that is associated to
            -       * this Engine.
            -       *
            -       * Note that these configurations are one-time consumed by
            -       * and passed to Dialogflow service. It means they cannot be retrieved using
            -       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -       * or
            -       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -       * API after engine creation.
            +       * Recommended for you engine feature config.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig - .Builder, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfigOrBuilder> - internalGetAgentCreationConfigFieldBuilder() { - if (agentCreationConfigBuilder_ == null) { - agentCreationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfig.Builder, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - .AgentCreationConfigOrBuilder>( - getAgentCreationConfig(), getParentForChildren(), isClean()); - agentCreationConfig_ = null; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfigOrBuilder + getRecommendedForYouConfigOrBuilder() { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) + typeDedicatedConfig_; } - return agentCreationConfigBuilder_; + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.getDefaultInstance(); } - private java.lang.Object dialogflowAgentToLink_ = ""; + public static final int MOST_POPULAR_CONFIG_FIELD_NUMBER = 2; /** * * *
            -       * The resource name of an exist Dialogflow agent to link to this Chat
            -       * Engine. Customers can either provide `agent_creation_config` to create
            -       * agent or provide an agent name that links the agent with the Chat engine.
            -       *
            -       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            -       * ID>`.
            -       *
            -       * Note that the `dialogflow_agent_to_link` are one-time consumed by and
            -       * passed to Dialogflow service. It means they cannot be retrieved using
            -       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -       * or
            -       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -       * API after engine creation. Use
            -       * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
            -       * for actual agent association after Engine is created.
            +       * Most popular engine feature config.
                    * 
            * - * string dialogflow_agent_to_link = 2; + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * * - * @return The dialogflowAgentToLink. + * @return Whether the mostPopularConfig field is set. */ - public java.lang.String getDialogflowAgentToLink() { - java.lang.Object ref = dialogflowAgentToLink_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dialogflowAgentToLink_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public boolean hasMostPopularConfig() { + return typeDedicatedConfigCase_ == 2; } /** * * *
            -       * The resource name of an exist Dialogflow agent to link to this Chat
            -       * Engine. Customers can either provide `agent_creation_config` to create
            -       * agent or provide an agent name that links the agent with the Chat engine.
            +       * Most popular engine feature config.
            +       * 
            * - * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent - * ID>`. - * - * Note that the `dialogflow_agent_to_link` are one-time consumed by and - * passed to Dialogflow service. It means they cannot be retrieved using - * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine] - * or - * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines] - * API after engine creation. Use - * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent] - * for actual agent association after Engine is created. - * - * - * string dialogflow_agent_to_link = 2; + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * * - * @return The bytes for dialogflowAgentToLink. + * @return The mostPopularConfig. */ - public com.google.protobuf.ByteString getDialogflowAgentToLinkBytes() { - java.lang.Object ref = dialogflowAgentToLink_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dialogflowAgentToLink_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + getMostPopularConfig() { + if (typeDedicatedConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) + typeDedicatedConfig_; } + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.getDefaultInstance(); } /** * * *
            -       * The resource name of an exist Dialogflow agent to link to this Chat
            -       * Engine. Customers can either provide `agent_creation_config` to create
            -       * agent or provide an agent name that links the agent with the Chat engine.
            -       *
            -       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            -       * ID>`.
            -       *
            -       * Note that the `dialogflow_agent_to_link` are one-time consumed by and
            -       * passed to Dialogflow service. It means they cannot be retrieved using
            -       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -       * or
            -       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -       * API after engine creation. Use
            -       * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
            -       * for actual agent association after Engine is created.
            +       * Most popular engine feature config.
                    * 
            * - * string dialogflow_agent_to_link = 2; - * - * @param value The dialogflowAgentToLink to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * */ - public Builder setDialogflowAgentToLink(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfigOrBuilder + getMostPopularConfigOrBuilder() { + if (typeDedicatedConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) + typeDedicatedConfig_; } - dialogflowAgentToLink_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.getDefaultInstance(); } - /** - * - * - *
            -       * The resource name of an exist Dialogflow agent to link to this Chat
            -       * Engine. Customers can either provide `agent_creation_config` to create
            -       * agent or provide an agent name that links the agent with the Chat engine.
            -       *
            -       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            -       * ID>`.
            -       *
            -       * Note that the `dialogflow_agent_to_link` are one-time consumed by and
            -       * passed to Dialogflow service. It means they cannot be retrieved using
            -       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -       * or
            -       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -       * API after engine creation. Use
            -       * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
            -       * for actual agent association after Engine is created.
            -       * 
            - * - * string dialogflow_agent_to_link = 2; - * - * @return This builder for chaining. - */ - public Builder clearDialogflowAgentToLink() { - dialogflowAgentToLink_ = getDefaultInstance().getDialogflowAgentToLink(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return 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; } - /** - * - * - *
            -       * The resource name of an exist Dialogflow agent to link to this Chat
            -       * Engine. Customers can either provide `agent_creation_config` to create
            -       * agent or provide an agent name that links the agent with the Chat engine.
            -       *
            -       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            -       * ID>`.
            -       *
            -       * Note that the `dialogflow_agent_to_link` are one-time consumed by and
            -       * passed to Dialogflow service. It means they cannot be retrieved using
            -       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            -       * or
            -       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            -       * API after engine creation. Use
            -       * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
            -       * for actual agent association after Engine is created.
            -       * 
            - * - * string dialogflow_agent_to_link = 2; - * - * @param value The bytes for dialogflowAgentToLink to set. - * @return This builder for chaining. - */ - public Builder setDialogflowAgentToLinkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (typeDedicatedConfigCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) + typeDedicatedConfig_); } - checkByteStringIsUtf8(value); - dialogflowAgentToLink_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + if (typeDedicatedConfigCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) + typeDedicatedConfig_); + } + getUnknownFields().writeTo(output); } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) - private static final com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - DEFAULT_INSTANCE; + size = 0; + if (typeDedicatedConfigCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) + typeDedicatedConfig_); + } + if (typeDedicatedConfigCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) + typeDedicatedConfig_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + other = + (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig) + obj; + + if (!getTypeDedicatedConfigCase().equals(other.getTypeDedicatedConfigCase())) return false; + switch (typeDedicatedConfigCase_) { + case 1: + if (!getRecommendedForYouConfig().equals(other.getRecommendedForYouConfig())) + return false; + break; + case 2: + if (!getMostPopularConfig().equals(other.getMostPopularConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (typeDedicatedConfigCase_) { + case 1: + hash = (37 * hash) + RECOMMENDED_FOR_YOU_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRecommendedForYouConfig().hashCode(); + break; + case 2: + hash = (37 * hash) + MOST_POPULAR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMostPopularConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChatEngineConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + return PARSER.parseFrom(data); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public interface CommonConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Engine.CommonConfig) - com.google.protobuf.MessageOrBuilder { + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -     * The name of the company, business or entity that is associated with the
            -     * engine. Setting this may help improve LLM related features.
            -     * 
            - * - * string company_name = 1; - * - * @return The companyName. - */ - java.lang.String getCompanyName(); + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -     * The name of the company, business or entity that is associated with the
            -     * engine. Setting this may help improve LLM related features.
            -     * 
            - * - * string company_name = 1; - * - * @return The bytes for companyName. - */ - com.google.protobuf.ByteString getCompanyNameBytes(); - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
            -   * Common configurations for an Engine.
            -   * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine.CommonConfig} - */ - public static final class CommonConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Engine.CommonConfig) - CommonConfigOrBuilder { - private static final long serialVersionUID = 0L; + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "CommonConfig"); - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - // Use CommonConfig.newBuilder() to construct. - private CommonConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - private CommonConfig() { - companyName_ = ""; - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_CommonConfig_descriptor; - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_CommonConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.class, - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.Builder.class); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static final int COMPANY_NAME_FIELD_NUMBER = 1; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object companyName_ = ""; + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * - * - *
            -     * The name of the company, business or entity that is associated with the
            -     * engine. Setting this may help improve LLM related features.
            -     * 
            - * - * string company_name = 1; - * - * @return The companyName. - */ - @java.lang.Override - public java.lang.String getCompanyName() { - java.lang.Object ref = companyName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - companyName_ = s; - return s; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - } - /** - * - * - *
            -     * The name of the company, business or entity that is associated with the
            -     * engine. Setting this may help improve LLM related features.
            -     * 
            - * - * string company_name = 1; - * - * @return The bytes for companyName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCompanyNameBytes() { - java.lang.Object ref = companyName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - companyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - } - private byte memoizedIsInitialized = -1; + /** + * + * + *
            +       * More feature configs of the selected engine type.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig) + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_descriptor; + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.class, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.Builder.class); + } - memoizedIsInitialized = 1; - return true; - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig.newBuilder() + private Builder() {} - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(companyName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, companyName_); - } - getUnknownFields().writeTo(output); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (recommendedForYouConfigBuilder_ != null) { + recommendedForYouConfigBuilder_.clear(); + } + if (mostPopularConfigBuilder_ != null) { + mostPopularConfigBuilder_.clear(); + } + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + return this; + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(companyName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, companyName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig other = - (com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig) obj; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.getDefaultInstance(); + } - if (!getCompanyName().equals(other.getCompanyName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + build() { + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COMPANY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getCompanyName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + result = + new com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } - public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + result) { + int from_bitField0_ = bitField0_; + } - public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + result) { + result.typeDedicatedConfigCase_ = typeDedicatedConfigCase_; + result.typeDedicatedConfig_ = this.typeDedicatedConfig_; + if (typeDedicatedConfigCase_ == 1 && recommendedForYouConfigBuilder_ != null) { + result.typeDedicatedConfig_ = recommendedForYouConfigBuilder_.build(); + } + if (typeDedicatedConfigCase_ == 2 && mostPopularConfigBuilder_ != null) { + result.typeDedicatedConfig_ = mostPopularConfigBuilder_.build(); + } + } - public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig 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 mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } - public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.getDefaultInstance()) return this; + switch (other.getTypeDedicatedConfigCase()) { + case RECOMMENDED_FOR_YOU_CONFIG: + { + mergeRecommendedForYouConfig(other.getRecommendedForYouConfig()); + break; + } + case MOST_POPULAR_CONFIG: + { + mergeMostPopularConfig(other.getMostPopularConfig()); + break; + } + case TYPEDEDICATEDCONFIG_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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( + internalGetRecommendedForYouConfigFieldBuilder().getBuilder(), + extensionRegistry); + typeDedicatedConfigCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetMostPopularConfigFieldBuilder().getBuilder(), extensionRegistry); + typeDedicatedConfigCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + private int typeDedicatedConfigCase_ = 0; + private java.lang.Object typeDedicatedConfig_; - public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + public TypeDedicatedConfigCase getTypeDedicatedConfigCase() { + return TypeDedicatedConfigCase.forNumber(typeDedicatedConfigCase_); + } - public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public Builder clearTypeDedicatedConfig() { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + private int bitField0_; - public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfigOrBuilder> + recommendedForYouConfigBuilder_; - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + /** + * + * + *
            +         * Recommended for you engine feature config.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + * + * @return Whether the recommendedForYouConfig field is set. + */ + @java.lang.Override + public boolean hasRecommendedForYouConfig() { + return typeDedicatedConfigCase_ == 1; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
            +         * Recommended for you engine feature config.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + * + * @return The recommendedForYouConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + getRecommendedForYouConfig() { + if (recommendedForYouConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.getDefaultInstance(); + } else { + if (typeDedicatedConfigCase_ == 1) { + return recommendedForYouConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.getDefaultInstance(); + } + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
            +         * Recommended for you engine feature config.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + */ + public Builder setRecommendedForYouConfig( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + value) { + if (recommendedForYouConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + typeDedicatedConfig_ = value; + onChanged(); + } else { + recommendedForYouConfigBuilder_.setMessage(value); + } + typeDedicatedConfigCase_ = 1; + return this; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
            +         * Recommended for you engine feature config.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + */ + public Builder setRecommendedForYouConfig( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.Builder + builderForValue) { + if (recommendedForYouConfigBuilder_ == null) { + typeDedicatedConfig_ = builderForValue.build(); + onChanged(); + } else { + recommendedForYouConfigBuilder_.setMessage(builderForValue.build()); + } + typeDedicatedConfigCase_ = 1; + return this; + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
            +         * Recommended for you engine feature config.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + */ + public Builder mergeRecommendedForYouConfig( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + value) { + if (recommendedForYouConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1 + && typeDedicatedConfig_ + != com.google.cloud.discoveryengine.v1beta.Engine + .MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig + .getDefaultInstance()) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.newBuilder( + (com.google.cloud.discoveryengine.v1beta.Engine + .MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig) + typeDedicatedConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + typeDedicatedConfig_ = value; + } + onChanged(); + } else { + if (typeDedicatedConfigCase_ == 1) { + recommendedForYouConfigBuilder_.mergeFrom(value); + } else { + recommendedForYouConfigBuilder_.setMessage(value); + } + } + typeDedicatedConfigCase_ = 1; + return this; + } - /** - * - * - *
            -     * Common configurations for an Engine.
            -     * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine.CommonConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Engine.CommonConfig) - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_CommonConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_CommonConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.class, - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.Builder.class); - } + /** + * + * + *
            +         * Recommended for you engine feature config.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + */ + public Builder clearRecommendedForYouConfig() { + if (recommendedForYouConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 1) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + } + } else { + if (typeDedicatedConfigCase_ == 1) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + } + recommendedForYouConfigBuilder_.clear(); + } + return this; + } - // Construct using com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.newBuilder() - private Builder() {} + /** + * + * + *
            +         * Recommended for you engine feature config.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.Builder + getRecommendedForYouConfigBuilder() { + return internalGetRecommendedForYouConfigFieldBuilder().getBuilder(); + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + /** + * + * + *
            +         * Recommended for you engine feature config.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfigOrBuilder + getRecommendedForYouConfigOrBuilder() { + if ((typeDedicatedConfigCase_ == 1) && (recommendedForYouConfigBuilder_ != null)) { + return recommendedForYouConfigBuilder_.getMessageOrBuilder(); + } else { + if (typeDedicatedConfigCase_ == 1) { + return (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.getDefaultInstance(); + } + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - companyName_ = ""; - return this; - } + /** + * + * + *
            +         * Recommended for you engine feature config.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig recommended_for_you_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfigOrBuilder> + internalGetRecommendedForYouConfigFieldBuilder() { + if (recommendedForYouConfigBuilder_ == null) { + if (!(typeDedicatedConfigCase_ == 1)) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.getDefaultInstance(); + } + recommendedForYouConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) + typeDedicatedConfig_, + getParentForChildren(), + isClean()); + typeDedicatedConfig_ = null; + } + typeDedicatedConfigCase_ = 1; + onChanged(); + return recommendedForYouConfigBuilder_; + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_CommonConfig_descriptor; - } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfigOrBuilder> + mostPopularConfigBuilder_; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.getDefaultInstance(); - } + /** + * + * + *
            +         * Most popular engine feature config.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + * + * @return Whether the mostPopularConfig field is set. + */ + @java.lang.Override + public boolean hasMostPopularConfig() { + return typeDedicatedConfigCase_ == 2; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig build() { - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
            +         * Most popular engine feature config.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + * + * @return The mostPopularConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + getMostPopularConfig() { + if (mostPopularConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.getDefaultInstance(); + } else { + if (typeDedicatedConfigCase_ == 2) { + return mostPopularConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.getDefaultInstance(); + } } - return result; - } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig buildPartial() { - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig result = - new com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
            +         * Most popular engine feature config.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + */ + public Builder setMostPopularConfig( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + value) { + if (mostPopularConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + typeDedicatedConfig_ = value; + onChanged(); + } else { + mostPopularConfigBuilder_.setMessage(value); + } + typeDedicatedConfigCase_ = 2; + return this; } - onBuilt(); - return result; - } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.companyName_ = companyName_; + /** + * + * + *
            +         * Most popular engine feature config.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + */ + public Builder setMostPopularConfig( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.Builder + builderForValue) { + if (mostPopularConfigBuilder_ == null) { + typeDedicatedConfig_ = builderForValue.build(); + onChanged(); + } else { + mostPopularConfigBuilder_.setMessage(builderForValue.build()); + } + typeDedicatedConfigCase_ = 2; + return this; } - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig) other); - } else { - super.mergeFrom(other); + /** + * + * + *
            +         * Most popular engine feature config.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + */ + public Builder mergeMostPopularConfig( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + value) { + if (mostPopularConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 2 + && typeDedicatedConfig_ + != com.google.cloud.discoveryengine.v1beta.Engine + .MediaRecommendationEngineConfig.MostPopularFeatureConfig + .getDefaultInstance()) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.newBuilder( + (com.google.cloud.discoveryengine.v1beta.Engine + .MediaRecommendationEngineConfig.MostPopularFeatureConfig) + typeDedicatedConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + typeDedicatedConfig_ = value; + } + onChanged(); + } else { + if (typeDedicatedConfigCase_ == 2) { + mostPopularConfigBuilder_.mergeFrom(value); + } else { + mostPopularConfigBuilder_.setMessage(value); + } + } + typeDedicatedConfigCase_ = 2; return this; } - } - public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig other) { - if (other - == com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.getDefaultInstance()) + /** + * + * + *
            +         * Most popular engine feature config.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + */ + public Builder clearMostPopularConfig() { + if (mostPopularConfigBuilder_ == null) { + if (typeDedicatedConfigCase_ == 2) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + onChanged(); + } + } else { + if (typeDedicatedConfigCase_ == 2) { + typeDedicatedConfigCase_ = 0; + typeDedicatedConfig_ = null; + } + mostPopularConfigBuilder_.clear(); + } return this; - if (!other.getCompanyName().isEmpty()) { - companyName_ = other.companyName_; - bitField0_ |= 0x00000001; + } + + /** + * + * + *
            +         * Most popular engine feature config.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.Builder + getMostPopularConfigBuilder() { + return internalGetMostPopularConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Most popular engine feature config.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfigOrBuilder + getMostPopularConfigOrBuilder() { + if ((typeDedicatedConfigCase_ == 2) && (mostPopularConfigBuilder_ != null)) { + return mostPopularConfigBuilder_.getMessageOrBuilder(); + } else { + if (typeDedicatedConfigCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) + typeDedicatedConfig_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.getDefaultInstance(); + } + } + + /** + * + * + *
            +         * Most popular engine feature config.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig most_popular_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfigOrBuilder> + internalGetMostPopularConfigFieldBuilder() { + if (mostPopularConfigBuilder_ == null) { + if (!(typeDedicatedConfigCase_ == 2)) { + typeDedicatedConfig_ = + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.getDefaultInstance(); + } + mostPopularConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) + typeDedicatedConfig_, + getParentForChildren(), + isClean()); + typeDedicatedConfig_ = null; + } + typeDedicatedConfigCase_ = 2; onChanged(); + return mostPopularConfigBuilder_; } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig) } - @java.lang.Override - public final boolean isInitialized() { - return true; + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig) + private static final com.google.cloud.discoveryengine.v1beta.Engine + .MediaRecommendationEngineConfig.EngineFeaturesConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig(); } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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: - { - companyName_ = 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; + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; } - private int bitField0_; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EngineFeaturesConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - private java.lang.Object companyName_ = ""; + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
            -       * The name of the company, business or entity that is associated with the
            -       * engine. Setting this may help improve LLM related features.
            -       * 
            - * - * string company_name = 1; - * - * @return The companyName. - */ - public java.lang.String getCompanyName() { - java.lang.Object ref = companyName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - companyName_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + + public interface RecommendedForYouFeatureConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig) + com.google.protobuf.MessageOrBuilder { /** * * *
            -       * The name of the company, business or entity that is associated with the
            -       * engine. Setting this may help improve LLM related features.
            +       * The type of event with which the engine is queried at prediction time.
            +       * If set to `generic`, only `view-item`, `media-play`,and
            +       * `media-complete` will be used as `context-event` in engine training. If
            +       * set to `view-home-page`, `view-home-page` will also be used as
            +       * `context-events` in addition to `view-item`, `media-play`, and
            +       * `media-complete`. Currently supported for the `recommended-for-you`
            +       * engine. Currently supported values: `view-home-page`, `generic`.
                    * 
            * - * string company_name = 1; + * string context_event_type = 1; * - * @return The bytes for companyName. + * @return The contextEventType. */ - public com.google.protobuf.ByteString getCompanyNameBytes() { - java.lang.Object ref = companyName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - companyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + java.lang.String getContextEventType(); /** * * *
            -       * The name of the company, business or entity that is associated with the
            -       * engine. Setting this may help improve LLM related features.
            +       * The type of event with which the engine is queried at prediction time.
            +       * If set to `generic`, only `view-item`, `media-play`,and
            +       * `media-complete` will be used as `context-event` in engine training. If
            +       * set to `view-home-page`, `view-home-page` will also be used as
            +       * `context-events` in addition to `view-item`, `media-play`, and
            +       * `media-complete`. Currently supported for the `recommended-for-you`
            +       * engine. Currently supported values: `view-home-page`, `generic`.
                    * 
            * - * string company_name = 1; + * string context_event_type = 1; * - * @param value The companyName to set. - * @return This builder for chaining. + * @return The bytes for contextEventType. */ - public Builder setCompanyName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - companyName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + com.google.protobuf.ByteString getContextEventTypeBytes(); + } + + /** + * + * + *
            +     * Additional feature configurations for creating a `recommended-for-you`
            +     * engine.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig} + */ + public static final class RecommendedForYouFeatureConfig + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig) + RecommendedForYouFeatureConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RecommendedForYouFeatureConfig"); + } + + // Use RecommendedForYouFeatureConfig.newBuilder() to construct. + private RecommendedForYouFeatureConfig( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RecommendedForYouFeatureConfig() { + contextEventType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_descriptor; } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.class, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.Builder.class); + } + + public static final int CONTEXT_EVENT_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object contextEventType_ = ""; + /** * * *
            -       * The name of the company, business or entity that is associated with the
            -       * engine. Setting this may help improve LLM related features.
            +       * The type of event with which the engine is queried at prediction time.
            +       * If set to `generic`, only `view-item`, `media-play`,and
            +       * `media-complete` will be used as `context-event` in engine training. If
            +       * set to `view-home-page`, `view-home-page` will also be used as
            +       * `context-events` in addition to `view-item`, `media-play`, and
            +       * `media-complete`. Currently supported for the `recommended-for-you`
            +       * engine. Currently supported values: `view-home-page`, `generic`.
                    * 
            * - * string company_name = 1; + * string context_event_type = 1; * - * @return This builder for chaining. + * @return The contextEventType. */ - public Builder clearCompanyName() { - companyName_ = getDefaultInstance().getCompanyName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + @java.lang.Override + public java.lang.String getContextEventType() { + java.lang.Object ref = contextEventType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextEventType_ = s; + return s; + } } /** * * *
            -       * The name of the company, business or entity that is associated with the
            -       * engine. Setting this may help improve LLM related features.
            +       * The type of event with which the engine is queried at prediction time.
            +       * If set to `generic`, only `view-item`, `media-play`,and
            +       * `media-complete` will be used as `context-event` in engine training. If
            +       * set to `view-home-page`, `view-home-page` will also be used as
            +       * `context-events` in addition to `view-item`, `media-play`, and
            +       * `media-complete`. Currently supported for the `recommended-for-you`
            +       * engine. Currently supported values: `view-home-page`, `generic`.
                    * 
            * - * string company_name = 1; + * string context_event_type = 1; * - * @param value The bytes for companyName to set. - * @return This builder for chaining. + * @return The bytes for contextEventType. */ - public Builder setCompanyNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public com.google.protobuf.ByteString getContextEventTypeBytes() { + java.lang.Object ref = contextEventType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contextEventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - checkByteStringIsUtf8(value); - companyName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Engine.CommonConfig) - } + private byte memoizedIsInitialized = -1; - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Engine.CommonConfig) - private static final com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig - DEFAULT_INSTANCE; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig(); - } + memoizedIsInitialized = 1; + return true; + } - public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextEventType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, contextEventType_); + } + getUnknownFields().writeTo(output); + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.protobuf.Parser parser() { - return PARSER; - } + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextEventType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, contextEventType_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + other = + (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) + obj; + + if (!getContextEventType().equals(other.getContextEventType())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface ChatEngineMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
            -     * The resource name of a Dialogflow agent, that this Chat Engine refers
            -     * to.
            -     *
            -     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            -     * ID>`.
            -     * 
            - * - * string dialogflow_agent = 1; - * - * @return The dialogflowAgent. - */ - java.lang.String getDialogflowAgent(); - - /** - * - * - *
            -     * The resource name of a Dialogflow agent, that this Chat Engine refers
            -     * to.
            -     *
            -     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            -     * ID>`.
            -     * 
            - * - * string dialogflow_agent = 1; - * - * @return The bytes for dialogflowAgent. - */ - com.google.protobuf.ByteString getDialogflowAgentBytes(); - } - - /** - * - * - *
            -   * Additional information of a Chat Engine.
            -   * Fields in this message are output only.
            -   * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata} - */ - public static final class ChatEngineMetadata extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) - ChatEngineMetadataOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "ChatEngineMetadata"); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CONTEXT_EVENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getContextEventType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - // Use ChatEngineMetadata.newBuilder() to construct. - private ChatEngineMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private ChatEngineMetadata() { - dialogflowAgent_ = ""; - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineMetadata_descriptor; - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.class, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.Builder.class); - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + 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 DIALOGFLOW_AGENT_FIELD_NUMBER = 1; + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @SuppressWarnings("serial") - private volatile java.lang.Object dialogflowAgent_ = ""; + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -     * The resource name of a Dialogflow agent, that this Chat Engine refers
            -     * to.
            -     *
            -     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            -     * ID>`.
            -     * 
            - * - * string dialogflow_agent = 1; - * - * @return The dialogflowAgent. - */ - @java.lang.Override - public java.lang.String getDialogflowAgent() { - java.lang.Object ref = dialogflowAgent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dialogflowAgent_ = s; - return s; + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - } - /** - * - * - *
            -     * The resource name of a Dialogflow agent, that this Chat Engine refers
            -     * to.
            -     *
            -     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            -     * ID>`.
            -     * 
            - * - * string dialogflow_agent = 1; - * - * @return The bytes for dialogflowAgent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDialogflowAgentBytes() { - java.lang.Object ref = dialogflowAgent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dialogflowAgent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - } - private byte memoizedIsInitialized = -1; + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dialogflowAgent_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, dialogflowAgent_); + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dialogflowAgent_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, dialogflowAgent_); + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata)) { - return super.equals(obj); + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata other = - (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) obj; - if (!getDialogflowAgent().equals(other.getDialogflowAgent())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DIALOGFLOW_AGENT_FIELD_NUMBER; - hash = (53 * hash) + getDialogflowAgent().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +       * Additional feature configurations for creating a `recommended-for-you`
            +       * engine.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig) + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_descriptor; + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.class, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.Builder.class); + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig.newBuilder() + private Builder() {} - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + contextEventType_ = ""; + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_descriptor; + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.getDefaultInstance(); + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + build() { + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + result = + new com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.contextEventType_ = contextEventType_; + } + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig.getDefaultInstance()) return this; + if (!other.getContextEventType().isEmpty()) { + contextEventType_ = other.contextEventType_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + contextEventType_ = 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; + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + private int bitField0_; - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + private java.lang.Object contextEventType_ = ""; - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
            +         * The type of event with which the engine is queried at prediction time.
            +         * If set to `generic`, only `view-item`, `media-play`,and
            +         * `media-complete` will be used as `context-event` in engine training. If
            +         * set to `view-home-page`, `view-home-page` will also be used as
            +         * `context-events` in addition to `view-item`, `media-play`, and
            +         * `media-complete`. Currently supported for the `recommended-for-you`
            +         * engine. Currently supported values: `view-home-page`, `generic`.
            +         * 
            + * + * string context_event_type = 1; + * + * @return The contextEventType. + */ + public java.lang.String getContextEventType() { + java.lang.Object ref = contextEventType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextEventType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * - * - *
            -     * Additional information of a Chat Engine.
            -     * Fields in this message are output only.
            -     * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineMetadata_descriptor; + /** + * + * + *
            +         * The type of event with which the engine is queried at prediction time.
            +         * If set to `generic`, only `view-item`, `media-play`,and
            +         * `media-complete` will be used as `context-event` in engine training. If
            +         * set to `view-home-page`, `view-home-page` will also be used as
            +         * `context-events` in addition to `view-item`, `media-play`, and
            +         * `media-complete`. Currently supported for the `recommended-for-you`
            +         * engine. Currently supported values: `view-home-page`, `generic`.
            +         * 
            + * + * string context_event_type = 1; + * + * @return The bytes for contextEventType. + */ + public com.google.protobuf.ByteString getContextEventTypeBytes() { + java.lang.Object ref = contextEventType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contextEventType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * The type of event with which the engine is queried at prediction time.
            +         * If set to `generic`, only `view-item`, `media-play`,and
            +         * `media-complete` will be used as `context-event` in engine training. If
            +         * set to `view-home-page`, `view-home-page` will also be used as
            +         * `context-events` in addition to `view-item`, `media-play`, and
            +         * `media-complete`. Currently supported for the `recommended-for-you`
            +         * engine. Currently supported values: `view-home-page`, `generic`.
            +         * 
            + * + * string context_event_type = 1; + * + * @param value The contextEventType to set. + * @return This builder for chaining. + */ + public Builder setContextEventType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + contextEventType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * The type of event with which the engine is queried at prediction time.
            +         * If set to `generic`, only `view-item`, `media-play`,and
            +         * `media-complete` will be used as `context-event` in engine training. If
            +         * set to `view-home-page`, `view-home-page` will also be used as
            +         * `context-events` in addition to `view-item`, `media-play`, and
            +         * `media-complete`. Currently supported for the `recommended-for-you`
            +         * engine. Currently supported values: `view-home-page`, `generic`.
            +         * 
            + * + * string context_event_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearContextEventType() { + contextEventType_ = getDefaultInstance().getContextEventType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * The type of event with which the engine is queried at prediction time.
            +         * If set to `generic`, only `view-item`, `media-play`,and
            +         * `media-complete` will be used as `context-event` in engine training. If
            +         * set to `view-home-page`, `view-home-page` will also be used as
            +         * `context-events` in addition to `view-item`, `media-play`, and
            +         * `media-complete`. Currently supported for the `recommended-for-you`
            +         * engine. Currently supported values: `view-home-page`, `generic`.
            +         * 
            + * + * string context_event_type = 1; + * + * @param value The bytes for contextEventType to set. + * @return This builder for chaining. + */ + public Builder setContextEventTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contextEventType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig) } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.class, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.Builder.class); + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig) + private static final com.google.cloud.discoveryengine.v1beta.Engine + .MediaRecommendationEngineConfig.RecommendedForYouFeatureConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig(); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.newBuilder() - private Builder() {} + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RecommendedForYouFeatureConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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 clear() { - super.clear(); - bitField0_ = 0; - dialogflowAgent_ = ""; - return this; + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .RecommendedForYouFeatureConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MostPopularFeatureConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * The time window of which the engine is queried at training and
            +       * prediction time. Positive integers only. The value translates to the
            +       * last X days of events. Currently required for the `most-popular-items`
            +       * engine.
            +       * 
            + * + * int64 time_window_days = 1; + * + * @return The timeWindowDays. + */ + long getTimeWindowDays(); + } + + /** + * + * + *
            +     * Feature configurations that are required for creating a Most Popular
            +     * engine.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig} + */ + public static final class MostPopularFeatureConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig) + MostPopularFeatureConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MostPopularFeatureConfig"); + } + + // Use MostPopularFeatureConfig.newBuilder() to construct. + private MostPopularFeatureConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MostPopularFeatureConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineMetadata_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata - .getDefaultInstance(); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.class, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.Builder.class); } + public static final int TIME_WINDOW_DAYS_FIELD_NUMBER = 1; + private long timeWindowDays_ = 0L; + + /** + * + * + *
            +       * The time window of which the engine is queried at training and
            +       * prediction time. Positive integers only. The value translates to the
            +       * last X days of events. Currently required for the `most-popular-items`
            +       * engine.
            +       * 
            + * + * int64 time_window_days = 1; + * + * @return The timeWindowDays. + */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata build() { - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public long getTimeWindowDays() { + return timeWindowDays_; } + private byte memoizedIsInitialized = -1; + @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata buildPartial() { - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata result = - new com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dialogflowAgent_ = dialogflowAgent_; - } + memoizedIsInitialized = 1; + return true; } @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) other); - } else { - super.mergeFrom(other); - return this; + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (timeWindowDays_ != 0L) { + output.writeInt64(1, timeWindowDays_); } + getUnknownFields().writeTo(output); } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata other) { - if (other - == com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata - .getDefaultInstance()) return this; - if (!other.getDialogflowAgent().isEmpty()) { - dialogflowAgent_ = other.dialogflowAgent_; - bitField0_ |= 0x00000001; - onChanged(); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (timeWindowDays_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, timeWindowDays_); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public final boolean isInitialized() { + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + other = + (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) + obj; + + if (getTimeWindowDays() != other.getTimeWindowDays()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; 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(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - dialogflowAgent_ = 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; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TIME_WINDOW_DAYS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTimeWindowDays()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - private int bitField0_; + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private java.lang.Object dialogflowAgent_ = ""; + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -       * The resource name of a Dialogflow agent, that this Chat Engine refers
            -       * to.
            -       *
            -       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            -       * ID>`.
            -       * 
            - * - * string dialogflow_agent = 1; - * - * @return The dialogflowAgent. - */ - public java.lang.String getDialogflowAgent() { - java.lang.Object ref = dialogflowAgent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dialogflowAgent_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * - * - *
            -       * The resource name of a Dialogflow agent, that this Chat Engine refers
            -       * to.
            -       *
            -       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            -       * ID>`.
            -       * 
            - * - * string dialogflow_agent = 1; - * - * @return The bytes for dialogflowAgent. - */ - public com.google.protobuf.ByteString getDialogflowAgentBytes() { - java.lang.Object ref = dialogflowAgent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dialogflowAgent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - * - * - *
            -       * The resource name of a Dialogflow agent, that this Chat Engine refers
            -       * to.
            -       *
            -       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            -       * ID>`.
            -       * 
            - * - * string dialogflow_agent = 1; - * - * @param value The dialogflowAgent to set. - * @return This builder for chaining. - */ - public Builder setDialogflowAgent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - dialogflowAgent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * - * - *
            -       * The resource name of a Dialogflow agent, that this Chat Engine refers
            -       * to.
            -       *
            -       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            -       * ID>`.
            -       * 
            - * - * string dialogflow_agent = 1; - * - * @return This builder for chaining. - */ - public Builder clearDialogflowAgent() { - dialogflowAgent_ = getDefaultInstance().getDialogflowAgent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * * *
            -       * The resource name of a Dialogflow agent, that this Chat Engine refers
            -       * to.
            -       *
            -       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            -       * ID>`.
            +       * Feature configurations that are required for creating a Most Popular
            +       * engine.
                    * 
            * - * string dialogflow_agent = 1; - * - * @param value The bytes for dialogflowAgent to set. - * @return This builder for chaining. + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig} */ - public Builder setDialogflowAgentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig) + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_descriptor; } - checkByteStringIsUtf8(value); - dialogflowAgent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.class, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.Builder.class); + } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) - private static final com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata - DEFAULT_INSTANCE; + // Construct using + // com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig.newBuilder() + private Builder() {} - static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata(); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + timeWindowDays_ = 0L; + return this; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChatEngineMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_descriptor; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.getDefaultInstance(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + build() { + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + result = + new com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - private int bitField0_; - private int engineConfigCase_ = 0; + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.timeWindowDays_ = timeWindowDays_; + } + } - @SuppressWarnings("serial") - private java.lang.Object engineConfig_; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } - public enum EngineConfigCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CHAT_ENGINE_CONFIG(11), - SEARCH_ENGINE_CONFIG(13), - ENGINECONFIG_NOT_SET(0); - private final int value; + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig.getDefaultInstance()) return this; + if (other.getTimeWindowDays() != 0L) { + setTimeWindowDays(other.getTimeWindowDays()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - private EngineConfigCase(int value) { - this.value = value; - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * @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 EngineConfigCase valueOf(int value) { - return forNumber(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(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + timeWindowDays_ = input.readInt64(); + 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; + } - public static EngineConfigCase forNumber(int value) { - switch (value) { - case 11: - return CHAT_ENGINE_CONFIG; - case 13: - return SEARCH_ENGINE_CONFIG; - case 0: - return ENGINECONFIG_NOT_SET; - default: - return null; - } - } + private int bitField0_; - public int getNumber() { - return this.value; - } - }; + private long timeWindowDays_; - public EngineConfigCase getEngineConfigCase() { - return EngineConfigCase.forNumber(engineConfigCase_); - } + /** + * + * + *
            +         * The time window of which the engine is queried at training and
            +         * prediction time. Positive integers only. The value translates to the
            +         * last X days of events. Currently required for the `most-popular-items`
            +         * engine.
            +         * 
            + * + * int64 time_window_days = 1; + * + * @return The timeWindowDays. + */ + @java.lang.Override + public long getTimeWindowDays() { + return timeWindowDays_; + } - private int engineMetadataCase_ = 0; + /** + * + * + *
            +         * The time window of which the engine is queried at training and
            +         * prediction time. Positive integers only. The value translates to the
            +         * last X days of events. Currently required for the `most-popular-items`
            +         * engine.
            +         * 
            + * + * int64 time_window_days = 1; + * + * @param value The timeWindowDays to set. + * @return This builder for chaining. + */ + public Builder setTimeWindowDays(long value) { - @SuppressWarnings("serial") - private java.lang.Object engineMetadata_; + timeWindowDays_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - public enum EngineMetadataCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CHAT_ENGINE_METADATA(12), - ENGINEMETADATA_NOT_SET(0); - private final int value; + /** + * + * + *
            +         * The time window of which the engine is queried at training and
            +         * prediction time. Positive integers only. The value translates to the
            +         * last X days of events. Currently required for the `most-popular-items`
            +         * engine.
            +         * 
            + * + * int64 time_window_days = 1; + * + * @return This builder for chaining. + */ + public Builder clearTimeWindowDays() { + bitField0_ = (bitField0_ & ~0x00000001); + timeWindowDays_ = 0L; + onChanged(); + return this; + } - private EngineMetadataCase(int value) { - this.value = value; - } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig) + } - /** - * @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 EngineMetadataCase valueOf(int value) { - return forNumber(value); - } + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.MostPopularFeatureConfig) + private static final com.google.cloud.discoveryengine.v1beta.Engine + .MediaRecommendationEngineConfig.MostPopularFeatureConfig + DEFAULT_INSTANCE; - public static EngineMetadataCase forNumber(int value) { - switch (value) { - case 12: - return CHAT_ENGINE_METADATA; - case 0: - return ENGINEMETADATA_NOT_SET; - default: - return null; + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig(); } - } - public int getNumber() { - return this.value; - } - }; + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - public EngineMetadataCase getEngineMetadataCase() { - return EngineMetadataCase.forNumber(engineMetadataCase_); - } - - public static final int CHAT_ENGINE_CONFIG_FIELD_NUMBER = 11; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MostPopularFeatureConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - /** - * - * - *
            -   * Configurations for the Chat Engine. Only applicable if
            -   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -   * is
            -   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; - * - * - * @return Whether the chatEngineConfig field is set. - */ - @java.lang.Override - public boolean hasChatEngineConfig() { - return engineConfigCase_ == 11; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
            -   * Configurations for the Chat Engine. Only applicable if
            -   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -   * is
            -   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; - * - * - * @return The chatEngineConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig getChatEngineConfig() { - if (engineConfigCase_ == 11) { - return (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) engineConfig_; - } - return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.getDefaultInstance(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * - * - *
            -   * Configurations for the Chat Engine. Only applicable if
            -   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -   * is
            -   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfigOrBuilder - getChatEngineConfigOrBuilder() { - if (engineConfigCase_ == 11) { - return (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) engineConfig_; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .MostPopularFeatureConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.getDefaultInstance(); - } - public static final int SEARCH_ENGINE_CONFIG_FIELD_NUMBER = 13; + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; - /** - * - * - *
            -   * Configurations for the Search Engine. Only applicable if
            -   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -   * is
            -   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; - * - * - * @return Whether the searchEngineConfig field is set. - */ - @java.lang.Override - public boolean hasSearchEngineConfig() { - return engineConfigCase_ == 13; - } + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; - /** - * - * - *
            -   * Configurations for the Search Engine. Only applicable if
            -   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -   * is
            -   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; - * - * - * @return The searchEngineConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig getSearchEngineConfig() { - if (engineConfigCase_ == 13) { - return (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) engineConfig_; + /** + * + * + *
            +     * Required. The type of engine. e.g., `recommended-for-you`.
            +     *
            +     * This field together with
            +     * [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.optimization_objective]
            +     * describe engine metadata to use to control engine training and serving.
            +     *
            +     * Currently supported values: `recommended-for-you`, `others-you-may-like`,
            +     * `more-like-this`, `most-popular-items`.
            +     * 
            + * + * string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } } - return com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.getDefaultInstance(); - } - /** - * - * - *
            -   * Configurations for the Search Engine. Only applicable if
            -   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -   * is
            -   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfigOrBuilder - getSearchEngineConfigOrBuilder() { - if (engineConfigCase_ == 13) { - return (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) engineConfig_; + /** + * + * + *
            +     * Required. The type of engine. e.g., `recommended-for-you`.
            +     *
            +     * This field together with
            +     * [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.optimization_objective]
            +     * describe engine metadata to use to control engine training and serving.
            +     *
            +     * Currently supported values: `recommended-for-you`, `others-you-may-like`,
            +     * `more-like-this`, `most-popular-items`.
            +     * 
            + * + * string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } } - return com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.getDefaultInstance(); - } - public static final int CHAT_ENGINE_METADATA_FIELD_NUMBER = 12; + public static final int OPTIMIZATION_OBJECTIVE_FIELD_NUMBER = 2; - /** - * - * - *
            -   * Output only. Additional information of the Chat Engine. Only applicable
            -   * if
            -   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -   * is
            -   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the chatEngineMetadata field is set. - */ - @java.lang.Override - public boolean hasChatEngineMetadata() { - return engineMetadataCase_ == 12; - } + @SuppressWarnings("serial") + private volatile java.lang.Object optimizationObjective_ = ""; - /** - * - * - *
            -   * Output only. Additional information of the Chat Engine. Only applicable
            -   * if
            -   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -   * is
            -   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The chatEngineMetadata. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata getChatEngineMetadata() { - if (engineMetadataCase_ == 12) { - return (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) engineMetadata_; + /** + * + * + *
            +     * The optimization objective. e.g., `cvr`.
            +     *
            +     * This field together with
            +     * [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.type]
            +     * describe engine metadata to use to control engine training and serving.
            +     *
            +     * Currently supported
            +     * values: `ctr`, `cvr`.
            +     *
            +     * If not specified, we choose default based on engine type.
            +     * Default depends on type of recommendation:
            +     *
            +     * `recommended-for-you` => `ctr`
            +     *
            +     * `others-you-may-like` => `ctr`
            +     * 
            + * + * string optimization_objective = 2; + * + * @return The optimizationObjective. + */ + @java.lang.Override + public java.lang.String getOptimizationObjective() { + java.lang.Object ref = optimizationObjective_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + optimizationObjective_ = s; + return s; + } } - return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.getDefaultInstance(); - } - /** - * - * - *
            -   * Output only. Additional information of the Chat Engine. Only applicable
            -   * if
            -   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -   * is
            -   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadataOrBuilder - getChatEngineMetadataOrBuilder() { - if (engineMetadataCase_ == 12) { - return (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) engineMetadata_; + /** + * + * + *
            +     * The optimization objective. e.g., `cvr`.
            +     *
            +     * This field together with
            +     * [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.type]
            +     * describe engine metadata to use to control engine training and serving.
            +     *
            +     * Currently supported
            +     * values: `ctr`, `cvr`.
            +     *
            +     * If not specified, we choose default based on engine type.
            +     * Default depends on type of recommendation:
            +     *
            +     * `recommended-for-you` => `ctr`
            +     *
            +     * `others-you-may-like` => `ctr`
            +     * 
            + * + * string optimization_objective = 2; + * + * @return The bytes for optimizationObjective. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOptimizationObjectiveBytes() { + java.lang.Object ref = optimizationObjective_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + optimizationObjective_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.getDefaultInstance(); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; + public static final int OPTIMIZATION_OBJECTIVE_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + optimizationObjectiveConfig_; - /** - * - * - *
            -   * Immutable. The fully qualified resource name of the engine.
            -   *
            -   * This field must be a UTF-8 encoded string with a length limit of 1024
            -   * characters.
            -   *
            -   * Format:
            -   * `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]; - * - * @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 and value of the custom threshold for cvr optimization_objective.
            +     * For target_field `watch-time`, target_field_value must be an integer
            +     * value indicating the media progress time in seconds between (0, 86400]
            +     * (excludes 0, includes 86400) (e.g., 90).
            +     * For target_field `watch-percentage`, the target_field_value must be a
            +     * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
            +     * 0.5).
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + * + * @return Whether the optimizationObjectiveConfig field is set. + */ + @java.lang.Override + public boolean hasOptimizationObjectiveConfig() { + return ((bitField0_ & 0x00000001) != 0); } - } - /** - * - * - *
            -   * Immutable. The fully qualified resource name of the engine.
            -   *
            -   * This field must be a UTF-8 encoded string with a length limit of 1024
            -   * characters.
            -   *
            -   * Format:
            -   * `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]; - * - * @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; + /** + * + * + *
            +     * Name and value of the custom threshold for cvr optimization_objective.
            +     * For target_field `watch-time`, target_field_value must be an integer
            +     * value indicating the media progress time in seconds between (0, 86400]
            +     * (excludes 0, includes 86400) (e.g., 90).
            +     * For target_field `watch-percentage`, the target_field_value must be a
            +     * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
            +     * 0.5).
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + * + * @return The optimizationObjectiveConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + getOptimizationObjectiveConfig() { + return optimizationObjectiveConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.getDefaultInstance() + : optimizationObjectiveConfig_; } - } - public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + /** + * + * + *
            +     * Name and value of the custom threshold for cvr optimization_objective.
            +     * For target_field `watch-time`, target_field_value must be an integer
            +     * value indicating the media progress time in seconds between (0, 86400]
            +     * (excludes 0, includes 86400) (e.g., 90).
            +     * For target_field `watch-percentage`, the target_field_value must be a
            +     * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
            +     * 0.5).
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfigOrBuilder + getOptimizationObjectiveConfigOrBuilder() { + return optimizationObjectiveConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.getDefaultInstance() + : optimizationObjectiveConfig_; + } - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; + public static final int TRAINING_STATE_FIELD_NUMBER = 4; + private int trainingState_ = 0; - /** - * - * - *
            -   * Required. The display name of the engine. Should be human readable. UTF-8
            -   * encoded string with limit of 1024 characters.
            -   * 
            - * - * 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; + /** + * + * + *
            +     * The training state that the engine is in (e.g.
            +     * `TRAINING` or `PAUSED`).
            +     *
            +     * Since part of the cost of running the service
            +     * is frequency of training - this can be used to determine when to train
            +     * engine in order to control cost. If not specified: the default value for
            +     * `CreateEngine` method is `TRAINING`. The default value for
            +     * `UpdateEngine` method is to keep the state the same as before.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; + * + * + * @return The enum numeric value on the wire for trainingState. + */ + @java.lang.Override + public int getTrainingStateValue() { + return trainingState_; } - } - /** - * - * - *
            -   * Required. The display name of the engine. Should be human readable. UTF-8
            -   * encoded string with limit of 1024 characters.
            -   * 
            - * - * 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; + /** + * + * + *
            +     * The training state that the engine is in (e.g.
            +     * `TRAINING` or `PAUSED`).
            +     *
            +     * Since part of the cost of running the service
            +     * is frequency of training - this can be used to determine when to train
            +     * engine in order to control cost. If not specified: the default value for
            +     * `CreateEngine` method is `TRAINING`. The default value for
            +     * `UpdateEngine` method is to keep the state the same as before.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; + * + * + * @return The trainingState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .TrainingState + getTrainingState() { + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.TrainingState + result = + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .TrainingState.forNumber(trainingState_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .TrainingState.UNRECOGNIZED + : result; } - } - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; + public static final int ENGINE_FEATURES_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + engineFeaturesConfig_; - /** - * - * - *
            -   * Output only. Timestamp the Recommendation Engine was created at.
            -   * 
            - * - * .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); - } + /** + * + * + *
            +     * Optional. Additional engine features config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the engineFeaturesConfig field is set. + */ + @java.lang.Override + public boolean hasEngineFeaturesConfig() { + return ((bitField0_ & 0x00000002) != 0); + } - /** - * - * - *
            -   * Output only. Timestamp the Recommendation Engine was created at.
            -   * 
            - * - * .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_; - } + /** + * + * + *
            +     * Optional. Additional engine features config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The engineFeaturesConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + getEngineFeaturesConfig() { + return engineFeaturesConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.getDefaultInstance() + : engineFeaturesConfig_; + } - /** - * - * - *
            -   * Output only. Timestamp the Recommendation Engine was created at.
            -   * 
            - * - * .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_; - } + /** + * + * + *
            +     * Optional. Additional engine features config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfigOrBuilder + getEngineFeaturesConfigOrBuilder() { + return engineFeaturesConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.getDefaultInstance() + : engineFeaturesConfig_; + } - public static final int UPDATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp updateTime_; + private byte memoizedIsInitialized = -1; - /** - * - * - *
            -   * Output only. Timestamp the Recommendation Engine was last 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); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * - * - *
            -   * Output only. Timestamp the Recommendation Engine was last 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_; - } + memoizedIsInitialized = 1; + return true; + } - /** - * - * - *
            -   * Output only. Timestamp the Recommendation Engine was last 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_; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(optimizationObjective_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, optimizationObjective_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getOptimizationObjectiveConfig()); + } + if (trainingState_ + != com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .TrainingState.TRAINING_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, trainingState_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getEngineFeaturesConfig()); + } + getUnknownFields().writeTo(output); + } - public static final int DATA_STORE_IDS_FIELD_NUMBER = 5; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList dataStoreIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(optimizationObjective_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, optimizationObjective_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getOptimizationObjectiveConfig()); + } + if (trainingState_ + != com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .TrainingState.TRAINING_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, trainingState_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEngineFeaturesConfig()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
            -   * The data stores associated with this engine.
            -   *
            -   * For
            -   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            -   * and
            -   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            -   * type of engines, they can only associate with at most one data store.
            -   *
            -   * If
            -   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -   * is
            -   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            -   * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            -   * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            -   * associated here.
            -   *
            -   * Note that when used in
            -   * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            -   * one DataStore id must be provided as the system will use it for necessary
            -   * initializations.
            -   * 
            - * - * repeated string data_store_ids = 5; - * - * @return A list containing the dataStoreIds. - */ - public com.google.protobuf.ProtocolStringList getDataStoreIdsList() { - return dataStoreIds_; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig other = + (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig) obj; - /** - * - * - *
            -   * The data stores associated with this engine.
            -   *
            -   * For
            -   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            -   * and
            -   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            -   * type of engines, they can only associate with at most one data store.
            -   *
            -   * If
            -   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -   * is
            -   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            -   * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            -   * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            -   * associated here.
            -   *
            -   * Note that when used in
            -   * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            -   * one DataStore id must be provided as the system will use it for necessary
            -   * initializations.
            -   * 
            - * - * repeated string data_store_ids = 5; - * - * @return The count of dataStoreIds. - */ - public int getDataStoreIdsCount() { - return dataStoreIds_.size(); - } + if (!getType().equals(other.getType())) return false; + if (!getOptimizationObjective().equals(other.getOptimizationObjective())) return false; + if (hasOptimizationObjectiveConfig() != other.hasOptimizationObjectiveConfig()) return false; + if (hasOptimizationObjectiveConfig()) { + if (!getOptimizationObjectiveConfig().equals(other.getOptimizationObjectiveConfig())) + return false; + } + if (trainingState_ != other.trainingState_) return false; + if (hasEngineFeaturesConfig() != other.hasEngineFeaturesConfig()) return false; + if (hasEngineFeaturesConfig()) { + if (!getEngineFeaturesConfig().equals(other.getEngineFeaturesConfig())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - /** - * - * - *
            -   * The data stores associated with this engine.
            -   *
            -   * For
            -   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            -   * and
            -   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            -   * type of engines, they can only associate with at most one data store.
            -   *
            -   * If
            -   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -   * is
            -   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            -   * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            -   * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            -   * associated here.
            -   *
            -   * Note that when used in
            -   * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            -   * one DataStore id must be provided as the system will use it for necessary
            -   * initializations.
            -   * 
            - * - * repeated string data_store_ids = 5; - * - * @param index The index of the element to return. - * @return The dataStoreIds at the given index. - */ - public java.lang.String getDataStoreIds(int index) { - return dataStoreIds_.get(index); - } + @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) + getType().hashCode(); + hash = (37 * hash) + OPTIMIZATION_OBJECTIVE_FIELD_NUMBER; + hash = (53 * hash) + getOptimizationObjective().hashCode(); + if (hasOptimizationObjectiveConfig()) { + hash = (37 * hash) + OPTIMIZATION_OBJECTIVE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getOptimizationObjectiveConfig().hashCode(); + } + hash = (37 * hash) + TRAINING_STATE_FIELD_NUMBER; + hash = (53 * hash) + trainingState_; + if (hasEngineFeaturesConfig()) { + hash = (37 * hash) + ENGINE_FEATURES_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEngineFeaturesConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - /** - * - * - *
            -   * The data stores associated with this engine.
            -   *
            -   * For
            -   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            -   * and
            -   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            -   * type of engines, they can only associate with at most one data store.
            -   *
            -   * If
            -   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -   * is
            -   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            -   * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            -   * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            -   * associated here.
            -   *
            -   * Note that when used in
            -   * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            -   * one DataStore id must be provided as the system will use it for necessary
            -   * initializations.
            -   * 
            - * - * repeated string data_store_ids = 5; - * - * @param index The index of the value to return. - * @return The bytes of the dataStoreIds at the given index. - */ - public com.google.protobuf.ByteString getDataStoreIdsBytes(int index) { - return dataStoreIds_.getByteString(index); - } - - public static final int SOLUTION_TYPE_FIELD_NUMBER = 6; - private int solutionType_ = 0; - - /** - * - * - *
            -   * Required. The solutions of the engine.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The enum numeric value on the wire for solutionType. - */ - @java.lang.Override - public int getSolutionTypeValue() { - return solutionType_; - } - - /** - * - * - *
            -   * Required. The solutions of the engine.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The solutionType. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SolutionType getSolutionType() { - com.google.cloud.discoveryengine.v1beta.SolutionType result = - com.google.cloud.discoveryengine.v1beta.SolutionType.forNumber(solutionType_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SolutionType.UNRECOGNIZED - : result; - } - - public static final int INDUSTRY_VERTICAL_FIELD_NUMBER = 16; - private int industryVertical_ = 0; - - /** - * - * - *
            -   * The industry vertical that the engine registers.
            -   * The restriction of the Engine industry vertical is based on
            -   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: If unspecified,
            -   * default to `GENERIC`. Vertical on Engine has to match vertical of the
            -   * DataStore linked to the engine.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 16; - * - * @return The enum numeric value on the wire for industryVertical. - */ - @java.lang.Override - public int getIndustryVerticalValue() { - return industryVertical_; - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -   * The industry vertical that the engine registers.
            -   * The restriction of the Engine industry vertical is based on
            -   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: If unspecified,
            -   * default to `GENERIC`. Vertical on Engine has to match vertical of the
            -   * DataStore linked to the engine.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 16; - * - * @return The industryVertical. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.IndustryVertical getIndustryVertical() { - com.google.cloud.discoveryengine.v1beta.IndustryVertical result = - com.google.cloud.discoveryengine.v1beta.IndustryVertical.forNumber(industryVertical_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.IndustryVertical.UNRECOGNIZED - : result; - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int COMMON_CONFIG_FIELD_NUMBER = 15; - private com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig commonConfig_; + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -   * Common config spec that specifies the metadata of the engine.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; - * - * @return Whether the commonConfig field is set. - */ - @java.lang.Override - public boolean hasCommonConfig() { - return ((bitField0_ & 0x00000004) != 0); - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -   * Common config spec that specifies the metadata of the engine.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; - * - * @return The commonConfig. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig getCommonConfig() { - return commonConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.getDefaultInstance() - : commonConfig_; - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -   * Common config spec that specifies the metadata of the engine.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.CommonConfigOrBuilder - getCommonConfigOrBuilder() { - return commonConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.getDefaultInstance() - : commonConfig_; - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static final int DISABLE_ANALYTICS_FIELD_NUMBER = 26; - private boolean disableAnalytics_ = false; + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
            -   * 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_; - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - private byte memoizedIsInitialized = -1; + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - memoizedIsInitialized = 1; - return true; - } + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getCreateTime()); + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(4, getUpdateTime()); + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - for (int i = 0; i < dataStoreIds_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, dataStoreIds_.getRaw(i)); + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - if (solutionType_ - != com.google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(6, solutionType_); + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - if (engineConfigCase_ == 11) { + + /** + * + * + *
            +     * Additional config specs for a Media Recommendation engine.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig) + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .class, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetOptimizationObjectiveConfigFieldBuilder(); + internalGetEngineFeaturesConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = ""; + optimizationObjective_ = ""; + optimizationObjectiveConfig_ = null; + if (optimizationObjectiveConfigBuilder_ != null) { + optimizationObjectiveConfigBuilder_.dispose(); + optimizationObjectiveConfigBuilder_ = null; + } + trainingState_ = 0; + engineFeaturesConfig_ = null; + if (engineFeaturesConfigBuilder_ != null) { + engineFeaturesConfigBuilder_.dispose(); + engineFeaturesConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + build() { + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig result = + new com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.optimizationObjective_ = optimizationObjective_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.optimizationObjectiveConfig_ = + optimizationObjectiveConfigBuilder_ == null + ? optimizationObjectiveConfig_ + : optimizationObjectiveConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.trainingState_ = trainingState_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.engineFeaturesConfig_ = + engineFeaturesConfigBuilder_ == null + ? engineFeaturesConfig_ + : engineFeaturesConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .getDefaultInstance()) return this; + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOptimizationObjective().isEmpty()) { + optimizationObjective_ = other.optimizationObjective_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasOptimizationObjectiveConfig()) { + mergeOptimizationObjectiveConfig(other.getOptimizationObjectiveConfig()); + } + if (other.trainingState_ != 0) { + setTrainingStateValue(other.getTrainingStateValue()); + } + if (other.hasEngineFeaturesConfig()) { + mergeEngineFeaturesConfig(other.getEngineFeaturesConfig()); + } + 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: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + optimizationObjective_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetOptimizationObjectiveConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + trainingState_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage( + internalGetEngineFeaturesConfigFieldBuilder().getBuilder(), + extensionRegistry); + 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 type_ = ""; + + /** + * + * + *
            +       * Required. The type of engine. e.g., `recommended-for-you`.
            +       *
            +       * This field together with
            +       * [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.optimization_objective]
            +       * describe engine metadata to use to control engine training and serving.
            +       *
            +       * Currently supported values: `recommended-for-you`, `others-you-may-like`,
            +       * `more-like-this`, `most-popular-items`.
            +       * 
            + * + * string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
            +       * Required. The type of engine. e.g., `recommended-for-you`.
            +       *
            +       * This field together with
            +       * [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.optimization_objective]
            +       * describe engine metadata to use to control engine training and serving.
            +       *
            +       * Currently supported values: `recommended-for-you`, `others-you-may-like`,
            +       * `more-like-this`, `most-popular-items`.
            +       * 
            + * + * string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
            +       * Required. The type of engine. e.g., `recommended-for-you`.
            +       *
            +       * This field together with
            +       * [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.optimization_objective]
            +       * describe engine metadata to use to control engine training and serving.
            +       *
            +       * Currently supported values: `recommended-for-you`, `others-you-may-like`,
            +       * `more-like-this`, `most-popular-items`.
            +       * 
            + * + * string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The type of engine. e.g., `recommended-for-you`.
            +       *
            +       * This field together with
            +       * [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.optimization_objective]
            +       * describe engine metadata to use to control engine training and serving.
            +       *
            +       * Currently supported values: `recommended-for-you`, `others-you-may-like`,
            +       * `more-like-this`, `most-popular-items`.
            +       * 
            + * + * string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The type of engine. e.g., `recommended-for-you`.
            +       *
            +       * This field together with
            +       * [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.optimization_objective]
            +       * describe engine metadata to use to control engine training and serving.
            +       *
            +       * Currently supported values: `recommended-for-you`, `others-you-may-like`,
            +       * `more-like-this`, `most-popular-items`.
            +       * 
            + * + * string type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object optimizationObjective_ = ""; + + /** + * + * + *
            +       * The optimization objective. e.g., `cvr`.
            +       *
            +       * This field together with
            +       * [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.type]
            +       * describe engine metadata to use to control engine training and serving.
            +       *
            +       * Currently supported
            +       * values: `ctr`, `cvr`.
            +       *
            +       * If not specified, we choose default based on engine type.
            +       * Default depends on type of recommendation:
            +       *
            +       * `recommended-for-you` => `ctr`
            +       *
            +       * `others-you-may-like` => `ctr`
            +       * 
            + * + * string optimization_objective = 2; + * + * @return The optimizationObjective. + */ + public java.lang.String getOptimizationObjective() { + java.lang.Object ref = optimizationObjective_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + optimizationObjective_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * The optimization objective. e.g., `cvr`.
            +       *
            +       * This field together with
            +       * [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.type]
            +       * describe engine metadata to use to control engine training and serving.
            +       *
            +       * Currently supported
            +       * values: `ctr`, `cvr`.
            +       *
            +       * If not specified, we choose default based on engine type.
            +       * Default depends on type of recommendation:
            +       *
            +       * `recommended-for-you` => `ctr`
            +       *
            +       * `others-you-may-like` => `ctr`
            +       * 
            + * + * string optimization_objective = 2; + * + * @return The bytes for optimizationObjective. + */ + public com.google.protobuf.ByteString getOptimizationObjectiveBytes() { + java.lang.Object ref = optimizationObjective_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + optimizationObjective_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * The optimization objective. e.g., `cvr`.
            +       *
            +       * This field together with
            +       * [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.type]
            +       * describe engine metadata to use to control engine training and serving.
            +       *
            +       * Currently supported
            +       * values: `ctr`, `cvr`.
            +       *
            +       * If not specified, we choose default based on engine type.
            +       * Default depends on type of recommendation:
            +       *
            +       * `recommended-for-you` => `ctr`
            +       *
            +       * `others-you-may-like` => `ctr`
            +       * 
            + * + * string optimization_objective = 2; + * + * @param value The optimizationObjective to set. + * @return This builder for chaining. + */ + public Builder setOptimizationObjective(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + optimizationObjective_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The optimization objective. e.g., `cvr`.
            +       *
            +       * This field together with
            +       * [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.type]
            +       * describe engine metadata to use to control engine training and serving.
            +       *
            +       * Currently supported
            +       * values: `ctr`, `cvr`.
            +       *
            +       * If not specified, we choose default based on engine type.
            +       * Default depends on type of recommendation:
            +       *
            +       * `recommended-for-you` => `ctr`
            +       *
            +       * `others-you-may-like` => `ctr`
            +       * 
            + * + * string optimization_objective = 2; + * + * @return This builder for chaining. + */ + public Builder clearOptimizationObjective() { + optimizationObjective_ = getDefaultInstance().getOptimizationObjective(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The optimization objective. e.g., `cvr`.
            +       *
            +       * This field together with
            +       * [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.type]
            +       * describe engine metadata to use to control engine training and serving.
            +       *
            +       * Currently supported
            +       * values: `ctr`, `cvr`.
            +       *
            +       * If not specified, we choose default based on engine type.
            +       * Default depends on type of recommendation:
            +       *
            +       * `recommended-for-you` => `ctr`
            +       *
            +       * `others-you-may-like` => `ctr`
            +       * 
            + * + * string optimization_objective = 2; + * + * @param value The bytes for optimizationObjective to set. + * @return This builder for chaining. + */ + public Builder setOptimizationObjectiveBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + optimizationObjective_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + optimizationObjectiveConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfigOrBuilder> + optimizationObjectiveConfigBuilder_; + + /** + * + * + *
            +       * Name and value of the custom threshold for cvr optimization_objective.
            +       * For target_field `watch-time`, target_field_value must be an integer
            +       * value indicating the media progress time in seconds between (0, 86400]
            +       * (excludes 0, includes 86400) (e.g., 90).
            +       * For target_field `watch-percentage`, the target_field_value must be a
            +       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
            +       * 0.5).
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + * + * @return Whether the optimizationObjectiveConfig field is set. + */ + public boolean hasOptimizationObjectiveConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +       * Name and value of the custom threshold for cvr optimization_objective.
            +       * For target_field `watch-time`, target_field_value must be an integer
            +       * value indicating the media progress time in seconds between (0, 86400]
            +       * (excludes 0, includes 86400) (e.g., 90).
            +       * For target_field `watch-percentage`, the target_field_value must be a
            +       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
            +       * 0.5).
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + * + * @return The optimizationObjectiveConfig. + */ + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + getOptimizationObjectiveConfig() { + if (optimizationObjectiveConfigBuilder_ == null) { + return optimizationObjectiveConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.getDefaultInstance() + : optimizationObjectiveConfig_; + } else { + return optimizationObjectiveConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Name and value of the custom threshold for cvr optimization_objective.
            +       * For target_field `watch-time`, target_field_value must be an integer
            +       * value indicating the media progress time in seconds between (0, 86400]
            +       * (excludes 0, includes 86400) (e.g., 90).
            +       * For target_field `watch-percentage`, the target_field_value must be a
            +       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
            +       * 0.5).
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + */ + public Builder setOptimizationObjectiveConfig( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + value) { + if (optimizationObjectiveConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + optimizationObjectiveConfig_ = value; + } else { + optimizationObjectiveConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Name and value of the custom threshold for cvr optimization_objective.
            +       * For target_field `watch-time`, target_field_value must be an integer
            +       * value indicating the media progress time in seconds between (0, 86400]
            +       * (excludes 0, includes 86400) (e.g., 90).
            +       * For target_field `watch-percentage`, the target_field_value must be a
            +       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
            +       * 0.5).
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + */ + public Builder setOptimizationObjectiveConfig( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.Builder + builderForValue) { + if (optimizationObjectiveConfigBuilder_ == null) { + optimizationObjectiveConfig_ = builderForValue.build(); + } else { + optimizationObjectiveConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Name and value of the custom threshold for cvr optimization_objective.
            +       * For target_field `watch-time`, target_field_value must be an integer
            +       * value indicating the media progress time in seconds between (0, 86400]
            +       * (excludes 0, includes 86400) (e.g., 90).
            +       * For target_field `watch-percentage`, the target_field_value must be a
            +       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
            +       * 0.5).
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + */ + public Builder mergeOptimizationObjectiveConfig( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig + value) { + if (optimizationObjectiveConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && optimizationObjectiveConfig_ != null + && optimizationObjectiveConfig_ + != com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.getDefaultInstance()) { + getOptimizationObjectiveConfigBuilder().mergeFrom(value); + } else { + optimizationObjectiveConfig_ = value; + } + } else { + optimizationObjectiveConfigBuilder_.mergeFrom(value); + } + if (optimizationObjectiveConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Name and value of the custom threshold for cvr optimization_objective.
            +       * For target_field `watch-time`, target_field_value must be an integer
            +       * value indicating the media progress time in seconds between (0, 86400]
            +       * (excludes 0, includes 86400) (e.g., 90).
            +       * For target_field `watch-percentage`, the target_field_value must be a
            +       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
            +       * 0.5).
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + */ + public Builder clearOptimizationObjectiveConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + optimizationObjectiveConfig_ = null; + if (optimizationObjectiveConfigBuilder_ != null) { + optimizationObjectiveConfigBuilder_.dispose(); + optimizationObjectiveConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Name and value of the custom threshold for cvr optimization_objective.
            +       * For target_field `watch-time`, target_field_value must be an integer
            +       * value indicating the media progress time in seconds between (0, 86400]
            +       * (excludes 0, includes 86400) (e.g., 90).
            +       * For target_field `watch-percentage`, the target_field_value must be a
            +       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
            +       * 0.5).
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.Builder + getOptimizationObjectiveConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetOptimizationObjectiveConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Name and value of the custom threshold for cvr optimization_objective.
            +       * For target_field `watch-time`, target_field_value must be an integer
            +       * value indicating the media progress time in seconds between (0, 86400]
            +       * (excludes 0, includes 86400) (e.g., 90).
            +       * For target_field `watch-percentage`, the target_field_value must be a
            +       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
            +       * 0.5).
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfigOrBuilder + getOptimizationObjectiveConfigOrBuilder() { + if (optimizationObjectiveConfigBuilder_ != null) { + return optimizationObjectiveConfigBuilder_.getMessageOrBuilder(); + } else { + return optimizationObjectiveConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.getDefaultInstance() + : optimizationObjectiveConfig_; + } + } + + /** + * + * + *
            +       * Name and value of the custom threshold for cvr optimization_objective.
            +       * For target_field `watch-time`, target_field_value must be an integer
            +       * value indicating the media progress time in seconds between (0, 86400]
            +       * (excludes 0, includes 86400) (e.g., 90).
            +       * For target_field `watch-percentage`, the target_field_value must be a
            +       * valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g.,
            +       * 0.5).
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig optimization_objective_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfigOrBuilder> + internalGetOptimizationObjectiveConfigFieldBuilder() { + if (optimizationObjectiveConfigBuilder_ == null) { + optimizationObjectiveConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .OptimizationObjectiveConfigOrBuilder>( + getOptimizationObjectiveConfig(), getParentForChildren(), isClean()); + optimizationObjectiveConfig_ = null; + } + return optimizationObjectiveConfigBuilder_; + } + + private int trainingState_ = 0; + + /** + * + * + *
            +       * The training state that the engine is in (e.g.
            +       * `TRAINING` or `PAUSED`).
            +       *
            +       * Since part of the cost of running the service
            +       * is frequency of training - this can be used to determine when to train
            +       * engine in order to control cost. If not specified: the default value for
            +       * `CreateEngine` method is `TRAINING`. The default value for
            +       * `UpdateEngine` method is to keep the state the same as before.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; + * + * + * @return The enum numeric value on the wire for trainingState. + */ + @java.lang.Override + public int getTrainingStateValue() { + return trainingState_; + } + + /** + * + * + *
            +       * The training state that the engine is in (e.g.
            +       * `TRAINING` or `PAUSED`).
            +       *
            +       * Since part of the cost of running the service
            +       * is frequency of training - this can be used to determine when to train
            +       * engine in order to control cost. If not specified: the default value for
            +       * `CreateEngine` method is `TRAINING`. The default value for
            +       * `UpdateEngine` method is to keep the state the same as before.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; + * + * + * @param value The enum numeric value on the wire for trainingState to set. + * @return This builder for chaining. + */ + public Builder setTrainingStateValue(int value) { + trainingState_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The training state that the engine is in (e.g.
            +       * `TRAINING` or `PAUSED`).
            +       *
            +       * Since part of the cost of running the service
            +       * is frequency of training - this can be used to determine when to train
            +       * engine in order to control cost. If not specified: the default value for
            +       * `CreateEngine` method is `TRAINING`. The default value for
            +       * `UpdateEngine` method is to keep the state the same as before.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; + * + * + * @return The trainingState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .TrainingState + getTrainingState() { + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.TrainingState + result = + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .TrainingState.forNumber(trainingState_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .TrainingState.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * The training state that the engine is in (e.g.
            +       * `TRAINING` or `PAUSED`).
            +       *
            +       * Since part of the cost of running the service
            +       * is frequency of training - this can be used to determine when to train
            +       * engine in order to control cost. If not specified: the default value for
            +       * `CreateEngine` method is `TRAINING`. The default value for
            +       * `UpdateEngine` method is to keep the state the same as before.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; + * + * + * @param value The trainingState to set. + * @return This builder for chaining. + */ + public Builder setTrainingState( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .TrainingState + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + trainingState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The training state that the engine is in (e.g.
            +       * `TRAINING` or `PAUSED`).
            +       *
            +       * Since part of the cost of running the service
            +       * is frequency of training - this can be used to determine when to train
            +       * engine in order to control cost. If not specified: the default value for
            +       * `CreateEngine` method is `TRAINING`. The default value for
            +       * `UpdateEngine` method is to keep the state the same as before.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.TrainingState training_state = 4; + * + * + * @return This builder for chaining. + */ + public Builder clearTrainingState() { + bitField0_ = (bitField0_ & ~0x00000008); + trainingState_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + engineFeaturesConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfigOrBuilder> + engineFeaturesConfigBuilder_; + + /** + * + * + *
            +       * Optional. Additional engine features config.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the engineFeaturesConfig field is set. + */ + public boolean hasEngineFeaturesConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +       * Optional. Additional engine features config.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The engineFeaturesConfig. + */ + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + getEngineFeaturesConfig() { + if (engineFeaturesConfigBuilder_ == null) { + return engineFeaturesConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.getDefaultInstance() + : engineFeaturesConfig_; + } else { + return engineFeaturesConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. Additional engine features config.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEngineFeaturesConfig( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + value) { + if (engineFeaturesConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + engineFeaturesConfig_ = value; + } else { + engineFeaturesConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Additional engine features config.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEngineFeaturesConfig( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.Builder + builderForValue) { + if (engineFeaturesConfigBuilder_ == null) { + engineFeaturesConfig_ = builderForValue.build(); + } else { + engineFeaturesConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Additional engine features config.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEngineFeaturesConfig( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig + value) { + if (engineFeaturesConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && engineFeaturesConfig_ != null + && engineFeaturesConfig_ + != com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.getDefaultInstance()) { + getEngineFeaturesConfigBuilder().mergeFrom(value); + } else { + engineFeaturesConfig_ = value; + } + } else { + engineFeaturesConfigBuilder_.mergeFrom(value); + } + if (engineFeaturesConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Additional engine features config.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEngineFeaturesConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + engineFeaturesConfig_ = null; + if (engineFeaturesConfigBuilder_ != null) { + engineFeaturesConfigBuilder_.dispose(); + engineFeaturesConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Additional engine features config.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.Builder + getEngineFeaturesConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetEngineFeaturesConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Additional engine features config.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfigOrBuilder + getEngineFeaturesConfigOrBuilder() { + if (engineFeaturesConfigBuilder_ != null) { + return engineFeaturesConfigBuilder_.getMessageOrBuilder(); + } else { + return engineFeaturesConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.getDefaultInstance() + : engineFeaturesConfig_; + } + } + + /** + * + * + *
            +       * Optional. Additional engine features config.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.EngineFeaturesConfig engine_features_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfigOrBuilder> + internalGetEngineFeaturesConfigFieldBuilder() { + if (engineFeaturesConfigBuilder_ == null) { + engineFeaturesConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .EngineFeaturesConfigOrBuilder>( + getEngineFeaturesConfig(), getParentForChildren(), isClean()); + engineFeaturesConfig_ = null; + } + return engineFeaturesConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig) + private static final com.google.cloud.discoveryengine.v1beta.Engine + .MediaRecommendationEngineConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MediaRecommendationEngineConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Engine.MediaRecommendationEngineConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ChatEngineConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * The configurationt generate the Dialogflow agent that is associated to
            +     * this Engine.
            +     *
            +     * Note that these configurations are one-time consumed by
            +     * and passed to Dialogflow service. It means they cannot be retrieved using
            +     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +     * or
            +     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +     * API after engine creation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + * + * @return Whether the agentCreationConfig field is set. + */ + boolean hasAgentCreationConfig(); + + /** + * + * + *
            +     * The configurationt generate the Dialogflow agent that is associated to
            +     * this Engine.
            +     *
            +     * Note that these configurations are one-time consumed by
            +     * and passed to Dialogflow service. It means they cannot be retrieved using
            +     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +     * or
            +     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +     * API after engine creation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + * + * @return The agentCreationConfig. + */ + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + getAgentCreationConfig(); + + /** + * + * + *
            +     * The configurationt generate the Dialogflow agent that is associated to
            +     * this Engine.
            +     *
            +     * Note that these configurations are one-time consumed by
            +     * and passed to Dialogflow service. It means they cannot be retrieved using
            +     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +     * or
            +     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +     * API after engine creation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfigOrBuilder + getAgentCreationConfigOrBuilder(); + + /** + * + * + *
            +     * The resource name of an exist Dialogflow agent to link to this Chat
            +     * Engine. Customers can either provide `agent_creation_config` to create
            +     * agent or provide an agent name that links the agent with the Chat engine.
            +     *
            +     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            +     * ID>`.
            +     *
            +     * Note that the `dialogflow_agent_to_link` are one-time consumed by and
            +     * passed to Dialogflow service. It means they cannot be retrieved using
            +     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +     * or
            +     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +     * API after engine creation. Use
            +     * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
            +     * for actual agent association after Engine is created.
            +     * 
            + * + * string dialogflow_agent_to_link = 2; + * + * @return The dialogflowAgentToLink. + */ + java.lang.String getDialogflowAgentToLink(); + + /** + * + * + *
            +     * The resource name of an exist Dialogflow agent to link to this Chat
            +     * Engine. Customers can either provide `agent_creation_config` to create
            +     * agent or provide an agent name that links the agent with the Chat engine.
            +     *
            +     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            +     * ID>`.
            +     *
            +     * Note that the `dialogflow_agent_to_link` are one-time consumed by and
            +     * passed to Dialogflow service. It means they cannot be retrieved using
            +     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +     * or
            +     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +     * API after engine creation. Use
            +     * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
            +     * for actual agent association after Engine is created.
            +     * 
            + * + * string dialogflow_agent_to_link = 2; + * + * @return The bytes for dialogflowAgentToLink. + */ + com.google.protobuf.ByteString getDialogflowAgentToLinkBytes(); + + /** + * + * + *
            +     * Optional. If the flag set to true, we allow the agent and engine are in
            +     * different locations, otherwise the agent and engine are required to be in
            +     * the same location. The flag is set to false by default.
            +     *
            +     * Note that the `allow_cross_region` are one-time consumed by and
            +     * passed to
            +     * [EngineService.CreateEngine][google.cloud.discoveryengine.v1beta.EngineService.CreateEngine].
            +     * It means they cannot be retrieved using
            +     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +     * or
            +     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +     * API after engine creation.
            +     * 
            + * + * bool allow_cross_region = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowCrossRegion. + */ + boolean getAllowCrossRegion(); + } + + /** + * + * + *
            +   * Configurations for a Chat Engine.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig} + */ + public static final class ChatEngineConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) + ChatEngineConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ChatEngineConfig"); + } + + // Use ChatEngineConfig.newBuilder() to construct. + private ChatEngineConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ChatEngineConfig() { + dialogflowAgentToLink_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.class, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.Builder.class); + } + + public interface AgentCreationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Name of the company, organization or other entity that the agent
            +       * represents. Used for knowledge connector LLM prompt and for knowledge
            +       * search.
            +       * 
            + * + * string business = 1; + * + * @return The business. + */ + java.lang.String getBusiness(); + + /** + * + * + *
            +       * Name of the company, organization or other entity that the agent
            +       * represents. Used for knowledge connector LLM prompt and for knowledge
            +       * search.
            +       * 
            + * + * string business = 1; + * + * @return The bytes for business. + */ + com.google.protobuf.ByteString getBusinessBytes(); + + /** + * + * + *
            +       * Required. The default language of the agent as a language tag.
            +       * See [Language
            +       * Support](https://cloud.google.com/dialogflow/docs/reference/language)
            +       * for a list of the currently supported language codes.
            +       * 
            + * + * string default_language_code = 2; + * + * @return The defaultLanguageCode. + */ + java.lang.String getDefaultLanguageCode(); + + /** + * + * + *
            +       * Required. The default language of the agent as a language tag.
            +       * See [Language
            +       * Support](https://cloud.google.com/dialogflow/docs/reference/language)
            +       * for a list of the currently supported language codes.
            +       * 
            + * + * string default_language_code = 2; + * + * @return The bytes for defaultLanguageCode. + */ + com.google.protobuf.ByteString getDefaultLanguageCodeBytes(); + + /** + * + * + *
            +       * Required. The time zone of the agent from the [time zone
            +       * database](https://www.iana.org/time-zones), e.g., America/New_York,
            +       * Europe/Paris.
            +       * 
            + * + * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The timeZone. + */ + java.lang.String getTimeZone(); + + /** + * + * + *
            +       * Required. The time zone of the agent from the [time zone
            +       * database](https://www.iana.org/time-zones), e.g., America/New_York,
            +       * Europe/Paris.
            +       * 
            + * + * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for timeZone. + */ + com.google.protobuf.ByteString getTimeZoneBytes(); + + /** + * + * + *
            +       * Agent location for Agent creation, supported values: global/us/eu.
            +       * If not provided, us Engine will create Agent using us-central-1 by
            +       * default; eu Engine will create Agent using eu-west-1 by default.
            +       * 
            + * + * string location = 4; + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
            +       * Agent location for Agent creation, supported values: global/us/eu.
            +       * If not provided, us Engine will create Agent using us-central-1 by
            +       * default; eu Engine will create Agent using eu-west-1 by default.
            +       * 
            + * + * string location = 4; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + } + + /** + * + * + *
            +     * Configurations for generating a Dialogflow agent.
            +     *
            +     * Note that these configurations are one-time consumed by
            +     * and passed to Dialogflow service. It means they cannot be retrieved using
            +     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +     * or
            +     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +     * API after engine creation.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig} + */ + public static final class AgentCreationConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig) + AgentCreationConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentCreationConfig"); + } + + // Use AgentCreationConfig.newBuilder() to construct. + private AgentCreationConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentCreationConfig() { + business_ = ""; + defaultLanguageCode_ = ""; + timeZone_ = ""; + location_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_AgentCreationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_AgentCreationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + .class, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + .Builder.class); + } + + public static final int BUSINESS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object business_ = ""; + + /** + * + * + *
            +       * Name of the company, organization or other entity that the agent
            +       * represents. Used for knowledge connector LLM prompt and for knowledge
            +       * search.
            +       * 
            + * + * string business = 1; + * + * @return The business. + */ + @java.lang.Override + public java.lang.String getBusiness() { + java.lang.Object ref = business_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + business_ = s; + return s; + } + } + + /** + * + * + *
            +       * Name of the company, organization or other entity that the agent
            +       * represents. Used for knowledge connector LLM prompt and for knowledge
            +       * search.
            +       * 
            + * + * string business = 1; + * + * @return The bytes for business. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBusinessBytes() { + java.lang.Object ref = business_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + business_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_LANGUAGE_CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultLanguageCode_ = ""; + + /** + * + * + *
            +       * Required. The default language of the agent as a language tag.
            +       * See [Language
            +       * Support](https://cloud.google.com/dialogflow/docs/reference/language)
            +       * for a list of the currently supported language codes.
            +       * 
            + * + * string default_language_code = 2; + * + * @return The defaultLanguageCode. + */ + @java.lang.Override + public java.lang.String getDefaultLanguageCode() { + java.lang.Object ref = defaultLanguageCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultLanguageCode_ = s; + return s; + } + } + + /** + * + * + *
            +       * Required. The default language of the agent as a language tag.
            +       * See [Language
            +       * Support](https://cloud.google.com/dialogflow/docs/reference/language)
            +       * for a list of the currently supported language codes.
            +       * 
            + * + * string default_language_code = 2; + * + * @return The bytes for defaultLanguageCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { + java.lang.Object ref = defaultLanguageCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIME_ZONE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeZone_ = ""; + + /** + * + * + *
            +       * Required. The time zone of the agent from the [time zone
            +       * database](https://www.iana.org/time-zones), e.g., America/New_York,
            +       * Europe/Paris.
            +       * 
            + * + * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The timeZone. + */ + @java.lang.Override + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } + } + + /** + * + * + *
            +       * Required. The time zone of the agent from the [time zone
            +       * database](https://www.iana.org/time-zones), e.g., America/New_York,
            +       * Europe/Paris.
            +       * 
            + * + * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for timeZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
            +       * Agent location for Agent creation, supported values: global/us/eu.
            +       * If not provided, us Engine will create Agent using us-central-1 by
            +       * default; eu Engine will create Agent using eu-west-1 by default.
            +       * 
            + * + * string location = 4; + * + * @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; + } + } + + /** + * + * + *
            +       * Agent location for Agent creation, supported values: global/us/eu.
            +       * If not provided, us Engine will create Agent using us-central-1 by
            +       * default; eu Engine will create Agent using eu-west-1 by default.
            +       * 
            + * + * string location = 4; + * + * @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.GeneratedMessage.isStringEmpty(business_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, business_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLanguageCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, defaultLanguageCode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeZone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, timeZone_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, location_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(business_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, business_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLanguageCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, defaultLanguageCode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeZone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, timeZone_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, 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.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig other = + (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig) + obj; + + if (!getBusiness().equals(other.getBusiness())) return false; + if (!getDefaultLanguageCode().equals(other.getDefaultLanguageCode())) return false; + if (!getTimeZone().equals(other.getTimeZone())) 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) + BUSINESS_FIELD_NUMBER; + hash = (53 * hash) + getBusiness().hashCode(); + hash = (37 * hash) + DEFAULT_LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getDefaultLanguageCode().hashCode(); + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().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.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig + 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.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig + parseFrom( + 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.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Configurations for generating a Dialogflow agent.
            +       *
            +       * Note that these configurations are one-time consumed by
            +       * and passed to Dialogflow service. It means they cannot be retrieved using
            +       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +       * or
            +       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +       * API after engine creation.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig) + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_AgentCreationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_AgentCreationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig.class, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + business_ = ""; + defaultLanguageCode_ = ""; + timeZone_ = ""; + location_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_AgentCreationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + build() { + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + result = + new com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.business_ = business_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.defaultLanguageCode_ = defaultLanguageCode_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.timeZone_ = timeZone_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.location_ = location_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + .getDefaultInstance()) return this; + if (!other.getBusiness().isEmpty()) { + business_ = other.business_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDefaultLanguageCode().isEmpty()) { + defaultLanguageCode_ = other.defaultLanguageCode_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTimeZone().isEmpty()) { + timeZone_ = other.timeZone_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + 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: + { + business_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + defaultLanguageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + timeZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + location_ = 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 business_ = ""; + + /** + * + * + *
            +         * Name of the company, organization or other entity that the agent
            +         * represents. Used for knowledge connector LLM prompt and for knowledge
            +         * search.
            +         * 
            + * + * string business = 1; + * + * @return The business. + */ + public java.lang.String getBusiness() { + java.lang.Object ref = business_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + business_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Name of the company, organization or other entity that the agent
            +         * represents. Used for knowledge connector LLM prompt and for knowledge
            +         * search.
            +         * 
            + * + * string business = 1; + * + * @return The bytes for business. + */ + public com.google.protobuf.ByteString getBusinessBytes() { + java.lang.Object ref = business_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + business_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Name of the company, organization or other entity that the agent
            +         * represents. Used for knowledge connector LLM prompt and for knowledge
            +         * search.
            +         * 
            + * + * string business = 1; + * + * @param value The business to set. + * @return This builder for chaining. + */ + public Builder setBusiness(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + business_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Name of the company, organization or other entity that the agent
            +         * represents. Used for knowledge connector LLM prompt and for knowledge
            +         * search.
            +         * 
            + * + * string business = 1; + * + * @return This builder for chaining. + */ + public Builder clearBusiness() { + business_ = getDefaultInstance().getBusiness(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Name of the company, organization or other entity that the agent
            +         * represents. Used for knowledge connector LLM prompt and for knowledge
            +         * search.
            +         * 
            + * + * string business = 1; + * + * @param value The bytes for business to set. + * @return This builder for chaining. + */ + public Builder setBusinessBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + business_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object defaultLanguageCode_ = ""; + + /** + * + * + *
            +         * Required. The default language of the agent as a language tag.
            +         * See [Language
            +         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
            +         * for a list of the currently supported language codes.
            +         * 
            + * + * string default_language_code = 2; + * + * @return The defaultLanguageCode. + */ + public java.lang.String getDefaultLanguageCode() { + java.lang.Object ref = defaultLanguageCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultLanguageCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Required. The default language of the agent as a language tag.
            +         * See [Language
            +         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
            +         * for a list of the currently supported language codes.
            +         * 
            + * + * string default_language_code = 2; + * + * @return The bytes for defaultLanguageCode. + */ + public com.google.protobuf.ByteString getDefaultLanguageCodeBytes() { + java.lang.Object ref = defaultLanguageCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultLanguageCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Required. The default language of the agent as a language tag.
            +         * See [Language
            +         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
            +         * for a list of the currently supported language codes.
            +         * 
            + * + * string default_language_code = 2; + * + * @param value The defaultLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setDefaultLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultLanguageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The default language of the agent as a language tag.
            +         * See [Language
            +         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
            +         * for a list of the currently supported language codes.
            +         * 
            + * + * string default_language_code = 2; + * + * @return This builder for chaining. + */ + public Builder clearDefaultLanguageCode() { + defaultLanguageCode_ = getDefaultInstance().getDefaultLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The default language of the agent as a language tag.
            +         * See [Language
            +         * Support](https://cloud.google.com/dialogflow/docs/reference/language)
            +         * for a list of the currently supported language codes.
            +         * 
            + * + * string default_language_code = 2; + * + * @param value The bytes for defaultLanguageCode to set. + * @return This builder for chaining. + */ + public Builder setDefaultLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultLanguageCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object timeZone_ = ""; + + /** + * + * + *
            +         * Required. The time zone of the agent from the [time zone
            +         * database](https://www.iana.org/time-zones), e.g., America/New_York,
            +         * Europe/Paris.
            +         * 
            + * + * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The timeZone. + */ + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Required. The time zone of the agent from the [time zone
            +         * database](https://www.iana.org/time-zones), e.g., America/New_York,
            +         * Europe/Paris.
            +         * 
            + * + * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for timeZone. + */ + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Required. The time zone of the agent from the [time zone
            +         * database](https://www.iana.org/time-zones), e.g., America/New_York,
            +         * Europe/Paris.
            +         * 
            + * + * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + timeZone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The time zone of the agent from the [time zone
            +         * database](https://www.iana.org/time-zones), e.g., America/New_York,
            +         * Europe/Paris.
            +         * 
            + * + * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTimeZone() { + timeZone_ = getDefaultInstance().getTimeZone(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The time zone of the agent from the [time zone
            +         * database](https://www.iana.org/time-zones), e.g., America/New_York,
            +         * Europe/Paris.
            +         * 
            + * + * string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + timeZone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + + /** + * + * + *
            +         * Agent location for Agent creation, supported values: global/us/eu.
            +         * If not provided, us Engine will create Agent using us-central-1 by
            +         * default; eu Engine will create Agent using eu-west-1 by default.
            +         * 
            + * + * string location = 4; + * + * @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; + } + } + + /** + * + * + *
            +         * Agent location for Agent creation, supported values: global/us/eu.
            +         * If not provided, us Engine will create Agent using us-central-1 by
            +         * default; eu Engine will create Agent using eu-west-1 by default.
            +         * 
            + * + * string location = 4; + * + * @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; + } + } + + /** + * + * + *
            +         * Agent location for Agent creation, supported values: global/us/eu.
            +         * If not provided, us Engine will create Agent using us-central-1 by
            +         * default; eu Engine will create Agent using eu-west-1 by default.
            +         * 
            + * + * string location = 4; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Agent location for Agent creation, supported values: global/us/eu.
            +         * If not provided, us Engine will create Agent using us-central-1 by
            +         * default; eu Engine will create Agent using eu-west-1 by default.
            +         * 
            + * + * string location = 4; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Agent location for Agent creation, supported values: global/us/eu.
            +         * If not provided, us Engine will create Agent using us-central-1 by
            +         * default; eu Engine will create Agent using eu-west-1 by default.
            +         * 
            + * + * string location = 4; + * + * @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_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig) + private static final com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentCreationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int AGENT_CREATION_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + agentCreationConfig_; + + /** + * + * + *
            +     * The configurationt generate the Dialogflow agent that is associated to
            +     * this Engine.
            +     *
            +     * Note that these configurations are one-time consumed by
            +     * and passed to Dialogflow service. It means they cannot be retrieved using
            +     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +     * or
            +     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +     * API after engine creation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + * + * @return Whether the agentCreationConfig field is set. + */ + @java.lang.Override + public boolean hasAgentCreationConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * The configurationt generate the Dialogflow agent that is associated to
            +     * this Engine.
            +     *
            +     * Note that these configurations are one-time consumed by
            +     * and passed to Dialogflow service. It means they cannot be retrieved using
            +     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +     * or
            +     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +     * API after engine creation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + * + * @return The agentCreationConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + getAgentCreationConfig() { + return agentCreationConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + .getDefaultInstance() + : agentCreationConfig_; + } + + /** + * + * + *
            +     * The configurationt generate the Dialogflow agent that is associated to
            +     * this Engine.
            +     *
            +     * Note that these configurations are one-time consumed by
            +     * and passed to Dialogflow service. It means they cannot be retrieved using
            +     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +     * or
            +     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +     * API after engine creation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfigOrBuilder + getAgentCreationConfigOrBuilder() { + return agentCreationConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + .getDefaultInstance() + : agentCreationConfig_; + } + + public static final int DIALOGFLOW_AGENT_TO_LINK_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object dialogflowAgentToLink_ = ""; + + /** + * + * + *
            +     * The resource name of an exist Dialogflow agent to link to this Chat
            +     * Engine. Customers can either provide `agent_creation_config` to create
            +     * agent or provide an agent name that links the agent with the Chat engine.
            +     *
            +     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            +     * ID>`.
            +     *
            +     * Note that the `dialogflow_agent_to_link` are one-time consumed by and
            +     * passed to Dialogflow service. It means they cannot be retrieved using
            +     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +     * or
            +     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +     * API after engine creation. Use
            +     * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
            +     * for actual agent association after Engine is created.
            +     * 
            + * + * string dialogflow_agent_to_link = 2; + * + * @return The dialogflowAgentToLink. + */ + @java.lang.Override + public java.lang.String getDialogflowAgentToLink() { + java.lang.Object ref = dialogflowAgentToLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dialogflowAgentToLink_ = s; + return s; + } + } + + /** + * + * + *
            +     * The resource name of an exist Dialogflow agent to link to this Chat
            +     * Engine. Customers can either provide `agent_creation_config` to create
            +     * agent or provide an agent name that links the agent with the Chat engine.
            +     *
            +     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            +     * ID>`.
            +     *
            +     * Note that the `dialogflow_agent_to_link` are one-time consumed by and
            +     * passed to Dialogflow service. It means they cannot be retrieved using
            +     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +     * or
            +     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +     * API after engine creation. Use
            +     * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
            +     * for actual agent association after Engine is created.
            +     * 
            + * + * string dialogflow_agent_to_link = 2; + * + * @return The bytes for dialogflowAgentToLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDialogflowAgentToLinkBytes() { + java.lang.Object ref = dialogflowAgentToLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dialogflowAgentToLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOW_CROSS_REGION_FIELD_NUMBER = 3; + private boolean allowCrossRegion_ = false; + + /** + * + * + *
            +     * Optional. If the flag set to true, we allow the agent and engine are in
            +     * different locations, otherwise the agent and engine are required to be in
            +     * the same location. The flag is set to false by default.
            +     *
            +     * Note that the `allow_cross_region` are one-time consumed by and
            +     * passed to
            +     * [EngineService.CreateEngine][google.cloud.discoveryengine.v1beta.EngineService.CreateEngine].
            +     * It means they cannot be retrieved using
            +     * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +     * or
            +     * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +     * API after engine creation.
            +     * 
            + * + * bool allow_cross_region = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowCrossRegion. + */ + @java.lang.Override + public boolean getAllowCrossRegion() { + return allowCrossRegion_; + } + + 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, getAgentCreationConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dialogflowAgentToLink_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, dialogflowAgentToLink_); + } + if (allowCrossRegion_ != false) { + output.writeBool(3, allowCrossRegion_); + } + 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, getAgentCreationConfig()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dialogflowAgentToLink_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, dialogflowAgentToLink_); + } + if (allowCrossRegion_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, allowCrossRegion_); + } + 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.v1beta.Engine.ChatEngineConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig other = + (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) obj; + + if (hasAgentCreationConfig() != other.hasAgentCreationConfig()) return false; + if (hasAgentCreationConfig()) { + if (!getAgentCreationConfig().equals(other.getAgentCreationConfig())) return false; + } + if (!getDialogflowAgentToLink().equals(other.getDialogflowAgentToLink())) return false; + if (getAllowCrossRegion() != other.getAllowCrossRegion()) 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 (hasAgentCreationConfig()) { + hash = (37 * hash) + AGENT_CREATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAgentCreationConfig().hashCode(); + } + hash = (37 * hash) + DIALOGFLOW_AGENT_TO_LINK_FIELD_NUMBER; + hash = (53 * hash) + getDialogflowAgentToLink().hashCode(); + hash = (37 * hash) + ALLOW_CROSS_REGION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowCrossRegion()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig 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.v1beta.Engine.ChatEngineConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig parseFrom( + 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.v1beta.Engine.ChatEngineConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Configurations for a Chat Engine.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.class, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAgentCreationConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + agentCreationConfig_ = null; + if (agentCreationConfigBuilder_ != null) { + agentCreationConfigBuilder_.dispose(); + agentCreationConfigBuilder_ = null; + } + dialogflowAgentToLink_ = ""; + allowCrossRegion_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig build() { + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig buildPartial() { + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig result = + new com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agentCreationConfig_ = + agentCreationConfigBuilder_ == null + ? agentCreationConfig_ + : agentCreationConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dialogflowAgentToLink_ = dialogflowAgentToLink_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.allowCrossRegion_ = allowCrossRegion_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.getDefaultInstance()) + return this; + if (other.hasAgentCreationConfig()) { + mergeAgentCreationConfig(other.getAgentCreationConfig()); + } + if (!other.getDialogflowAgentToLink().isEmpty()) { + dialogflowAgentToLink_ = other.dialogflowAgentToLink_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getAllowCrossRegion() != false) { + setAllowCrossRegion(other.getAllowCrossRegion()); + } + 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( + internalGetAgentCreationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + dialogflowAgentToLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + allowCrossRegion_ = 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 com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + agentCreationConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + .Builder, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfigOrBuilder> + agentCreationConfigBuilder_; + + /** + * + * + *
            +       * The configurationt generate the Dialogflow agent that is associated to
            +       * this Engine.
            +       *
            +       * Note that these configurations are one-time consumed by
            +       * and passed to Dialogflow service. It means they cannot be retrieved using
            +       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +       * or
            +       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +       * API after engine creation.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + * + * @return Whether the agentCreationConfig field is set. + */ + public boolean hasAgentCreationConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * The configurationt generate the Dialogflow agent that is associated to
            +       * this Engine.
            +       *
            +       * Note that these configurations are one-time consumed by
            +       * and passed to Dialogflow service. It means they cannot be retrieved using
            +       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +       * or
            +       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +       * API after engine creation.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + * + * @return The agentCreationConfig. + */ + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + getAgentCreationConfig() { + if (agentCreationConfigBuilder_ == null) { + return agentCreationConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + .getDefaultInstance() + : agentCreationConfig_; + } else { + return agentCreationConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * The configurationt generate the Dialogflow agent that is associated to
            +       * this Engine.
            +       *
            +       * Note that these configurations are one-time consumed by
            +       * and passed to Dialogflow service. It means they cannot be retrieved using
            +       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +       * or
            +       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +       * API after engine creation.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + */ + public Builder setAgentCreationConfig( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + value) { + if (agentCreationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentCreationConfig_ = value; + } else { + agentCreationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The configurationt generate the Dialogflow agent that is associated to
            +       * this Engine.
            +       *
            +       * Note that these configurations are one-time consumed by
            +       * and passed to Dialogflow service. It means they cannot be retrieved using
            +       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +       * or
            +       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +       * API after engine creation.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + */ + public Builder setAgentCreationConfig( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + .Builder + builderForValue) { + if (agentCreationConfigBuilder_ == null) { + agentCreationConfig_ = builderForValue.build(); + } else { + agentCreationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The configurationt generate the Dialogflow agent that is associated to
            +       * this Engine.
            +       *
            +       * Note that these configurations are one-time consumed by
            +       * and passed to Dialogflow service. It means they cannot be retrieved using
            +       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +       * or
            +       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +       * API after engine creation.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + */ + public Builder mergeAgentCreationConfig( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + value) { + if (agentCreationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && agentCreationConfig_ != null + && agentCreationConfig_ + != com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig.getDefaultInstance()) { + getAgentCreationConfigBuilder().mergeFrom(value); + } else { + agentCreationConfig_ = value; + } + } else { + agentCreationConfigBuilder_.mergeFrom(value); + } + if (agentCreationConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * The configurationt generate the Dialogflow agent that is associated to
            +       * this Engine.
            +       *
            +       * Note that these configurations are one-time consumed by
            +       * and passed to Dialogflow service. It means they cannot be retrieved using
            +       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +       * or
            +       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +       * API after engine creation.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + */ + public Builder clearAgentCreationConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + agentCreationConfig_ = null; + if (agentCreationConfigBuilder_ != null) { + agentCreationConfigBuilder_.dispose(); + agentCreationConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * The configurationt generate the Dialogflow agent that is associated to
            +       * this Engine.
            +       *
            +       * Note that these configurations are one-time consumed by
            +       * and passed to Dialogflow service. It means they cannot be retrieved using
            +       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +       * or
            +       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +       * API after engine creation.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + .Builder + getAgentCreationConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAgentCreationConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * The configurationt generate the Dialogflow agent that is associated to
            +       * this Engine.
            +       *
            +       * Note that these configurations are one-time consumed by
            +       * and passed to Dialogflow service. It means they cannot be retrieved using
            +       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +       * or
            +       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +       * API after engine creation.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfigOrBuilder + getAgentCreationConfigOrBuilder() { + if (agentCreationConfigBuilder_ != null) { + return agentCreationConfigBuilder_.getMessageOrBuilder(); + } else { + return agentCreationConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + .getDefaultInstance() + : agentCreationConfig_; + } + } + + /** + * + * + *
            +       * The configurationt generate the Dialogflow agent that is associated to
            +       * this Engine.
            +       *
            +       * Note that these configurations are one-time consumed by
            +       * and passed to Dialogflow service. It means they cannot be retrieved using
            +       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +       * or
            +       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +       * API after engine creation.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig + .Builder, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfigOrBuilder> + internalGetAgentCreationConfigFieldBuilder() { + if (agentCreationConfigBuilder_ == null) { + agentCreationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .AgentCreationConfigOrBuilder>( + getAgentCreationConfig(), getParentForChildren(), isClean()); + agentCreationConfig_ = null; + } + return agentCreationConfigBuilder_; + } + + private java.lang.Object dialogflowAgentToLink_ = ""; + + /** + * + * + *
            +       * The resource name of an exist Dialogflow agent to link to this Chat
            +       * Engine. Customers can either provide `agent_creation_config` to create
            +       * agent or provide an agent name that links the agent with the Chat engine.
            +       *
            +       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            +       * ID>`.
            +       *
            +       * Note that the `dialogflow_agent_to_link` are one-time consumed by and
            +       * passed to Dialogflow service. It means they cannot be retrieved using
            +       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +       * or
            +       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +       * API after engine creation. Use
            +       * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
            +       * for actual agent association after Engine is created.
            +       * 
            + * + * string dialogflow_agent_to_link = 2; + * + * @return The dialogflowAgentToLink. + */ + public java.lang.String getDialogflowAgentToLink() { + java.lang.Object ref = dialogflowAgentToLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dialogflowAgentToLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * The resource name of an exist Dialogflow agent to link to this Chat
            +       * Engine. Customers can either provide `agent_creation_config` to create
            +       * agent or provide an agent name that links the agent with the Chat engine.
            +       *
            +       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            +       * ID>`.
            +       *
            +       * Note that the `dialogflow_agent_to_link` are one-time consumed by and
            +       * passed to Dialogflow service. It means they cannot be retrieved using
            +       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +       * or
            +       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +       * API after engine creation. Use
            +       * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
            +       * for actual agent association after Engine is created.
            +       * 
            + * + * string dialogflow_agent_to_link = 2; + * + * @return The bytes for dialogflowAgentToLink. + */ + public com.google.protobuf.ByteString getDialogflowAgentToLinkBytes() { + java.lang.Object ref = dialogflowAgentToLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dialogflowAgentToLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * The resource name of an exist Dialogflow agent to link to this Chat
            +       * Engine. Customers can either provide `agent_creation_config` to create
            +       * agent or provide an agent name that links the agent with the Chat engine.
            +       *
            +       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            +       * ID>`.
            +       *
            +       * Note that the `dialogflow_agent_to_link` are one-time consumed by and
            +       * passed to Dialogflow service. It means they cannot be retrieved using
            +       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +       * or
            +       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +       * API after engine creation. Use
            +       * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
            +       * for actual agent association after Engine is created.
            +       * 
            + * + * string dialogflow_agent_to_link = 2; + * + * @param value The dialogflowAgentToLink to set. + * @return This builder for chaining. + */ + public Builder setDialogflowAgentToLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dialogflowAgentToLink_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The resource name of an exist Dialogflow agent to link to this Chat
            +       * Engine. Customers can either provide `agent_creation_config` to create
            +       * agent or provide an agent name that links the agent with the Chat engine.
            +       *
            +       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            +       * ID>`.
            +       *
            +       * Note that the `dialogflow_agent_to_link` are one-time consumed by and
            +       * passed to Dialogflow service. It means they cannot be retrieved using
            +       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +       * or
            +       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +       * API after engine creation. Use
            +       * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
            +       * for actual agent association after Engine is created.
            +       * 
            + * + * string dialogflow_agent_to_link = 2; + * + * @return This builder for chaining. + */ + public Builder clearDialogflowAgentToLink() { + dialogflowAgentToLink_ = getDefaultInstance().getDialogflowAgentToLink(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The resource name of an exist Dialogflow agent to link to this Chat
            +       * Engine. Customers can either provide `agent_creation_config` to create
            +       * agent or provide an agent name that links the agent with the Chat engine.
            +       *
            +       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            +       * ID>`.
            +       *
            +       * Note that the `dialogflow_agent_to_link` are one-time consumed by and
            +       * passed to Dialogflow service. It means they cannot be retrieved using
            +       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +       * or
            +       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +       * API after engine creation. Use
            +       * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent]
            +       * for actual agent association after Engine is created.
            +       * 
            + * + * string dialogflow_agent_to_link = 2; + * + * @param value The bytes for dialogflowAgentToLink to set. + * @return This builder for chaining. + */ + public Builder setDialogflowAgentToLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dialogflowAgentToLink_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean allowCrossRegion_; + + /** + * + * + *
            +       * Optional. If the flag set to true, we allow the agent and engine are in
            +       * different locations, otherwise the agent and engine are required to be in
            +       * the same location. The flag is set to false by default.
            +       *
            +       * Note that the `allow_cross_region` are one-time consumed by and
            +       * passed to
            +       * [EngineService.CreateEngine][google.cloud.discoveryengine.v1beta.EngineService.CreateEngine].
            +       * It means they cannot be retrieved using
            +       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +       * or
            +       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +       * API after engine creation.
            +       * 
            + * + * bool allow_cross_region = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowCrossRegion. + */ + @java.lang.Override + public boolean getAllowCrossRegion() { + return allowCrossRegion_; + } + + /** + * + * + *
            +       * Optional. If the flag set to true, we allow the agent and engine are in
            +       * different locations, otherwise the agent and engine are required to be in
            +       * the same location. The flag is set to false by default.
            +       *
            +       * Note that the `allow_cross_region` are one-time consumed by and
            +       * passed to
            +       * [EngineService.CreateEngine][google.cloud.discoveryengine.v1beta.EngineService.CreateEngine].
            +       * It means they cannot be retrieved using
            +       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +       * or
            +       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +       * API after engine creation.
            +       * 
            + * + * bool allow_cross_region = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowCrossRegion to set. + * @return This builder for chaining. + */ + public Builder setAllowCrossRegion(boolean value) { + + allowCrossRegion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. If the flag set to true, we allow the agent and engine are in
            +       * different locations, otherwise the agent and engine are required to be in
            +       * the same location. The flag is set to false by default.
            +       *
            +       * Note that the `allow_cross_region` are one-time consumed by and
            +       * passed to
            +       * [EngineService.CreateEngine][google.cloud.discoveryengine.v1beta.EngineService.CreateEngine].
            +       * It means they cannot be retrieved using
            +       * [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine]
            +       * or
            +       * [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines]
            +       * API after engine creation.
            +       * 
            + * + * bool allow_cross_region = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowCrossRegion() { + bitField0_ = (bitField0_ & ~0x00000004); + allowCrossRegion_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) + private static final com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatEngineConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Engine.ChatEngineConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CommonConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Engine.CommonConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * The name of the company, business or entity that is associated with the
            +     * engine. Setting this may help improve LLM related features.
            +     * 
            + * + * string company_name = 1; + * + * @return The companyName. + */ + java.lang.String getCompanyName(); + + /** + * + * + *
            +     * The name of the company, business or entity that is associated with the
            +     * engine. Setting this may help improve LLM related features.
            +     * 
            + * + * string company_name = 1; + * + * @return The bytes for companyName. + */ + com.google.protobuf.ByteString getCompanyNameBytes(); + } + + /** + * + * + *
            +   * Common configurations for an Engine.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine.CommonConfig} + */ + public static final class CommonConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Engine.CommonConfig) + CommonConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CommonConfig"); + } + + // Use CommonConfig.newBuilder() to construct. + private CommonConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CommonConfig() { + companyName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_CommonConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_CommonConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.class, + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.Builder.class); + } + + public static final int COMPANY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object companyName_ = ""; + + /** + * + * + *
            +     * The name of the company, business or entity that is associated with the
            +     * engine. Setting this may help improve LLM related features.
            +     * 
            + * + * string company_name = 1; + * + * @return The companyName. + */ + @java.lang.Override + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyName_ = s; + return s; + } + } + + /** + * + * + *
            +     * The name of the company, business or entity that is associated with the
            +     * engine. Setting this may help improve LLM related features.
            +     * 
            + * + * string company_name = 1; + * + * @return The bytes for companyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCompanyNameBytes() { + java.lang.Object ref = companyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(companyName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, companyName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(companyName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, companyName_); + } + 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.v1beta.Engine.CommonConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig other = + (com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig) obj; + + if (!getCompanyName().equals(other.getCompanyName())) 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) + COMPANY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCompanyName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig 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.v1beta.Engine.CommonConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseFrom( + 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.v1beta.Engine.CommonConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Common configurations for an Engine.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine.CommonConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Engine.CommonConfig) + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_CommonConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_CommonConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.class, + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + companyName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_CommonConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig build() { + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig buildPartial() { + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig result = + new com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.companyName_ = companyName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.getDefaultInstance()) + return this; + if (!other.getCompanyName().isEmpty()) { + companyName_ = other.companyName_; + 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: + { + companyName_ = 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 companyName_ = ""; + + /** + * + * + *
            +       * The name of the company, business or entity that is associated with the
            +       * engine. Setting this may help improve LLM related features.
            +       * 
            + * + * string company_name = 1; + * + * @return The companyName. + */ + public java.lang.String getCompanyName() { + java.lang.Object ref = companyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + companyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * The name of the company, business or entity that is associated with the
            +       * engine. Setting this may help improve LLM related features.
            +       * 
            + * + * string company_name = 1; + * + * @return The bytes for companyName. + */ + public com.google.protobuf.ByteString getCompanyNameBytes() { + java.lang.Object ref = companyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + companyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * The name of the company, business or entity that is associated with the
            +       * engine. Setting this may help improve LLM related features.
            +       * 
            + * + * string company_name = 1; + * + * @param value The companyName to set. + * @return This builder for chaining. + */ + public Builder setCompanyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + companyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The name of the company, business or entity that is associated with the
            +       * engine. Setting this may help improve LLM related features.
            +       * 
            + * + * string company_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearCompanyName() { + companyName_ = getDefaultInstance().getCompanyName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The name of the company, business or entity that is associated with the
            +       * engine. Setting this may help improve LLM related features.
            +       * 
            + * + * string company_name = 1; + * + * @param value The bytes for companyName to set. + * @return This builder for chaining. + */ + public Builder setCompanyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + companyName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Engine.CommonConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Engine.CommonConfig) + private static final com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CommonConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Engine.CommonConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface KnowledgeGraphConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Whether to enable the Cloud Knowledge Graph for the engine.
            +     *
            +     * Defaults to false if not specified.
            +     * 
            + * + * bool enable_cloud_knowledge_graph = 1; + * + * @return The enableCloudKnowledgeGraph. + */ + boolean getEnableCloudKnowledgeGraph(); + + /** + * + * + *
            +     * Specify entity types to support.
            +     * 
            + * + * repeated string cloud_knowledge_graph_types = 2; + * + * @return A list containing the cloudKnowledgeGraphTypes. + */ + java.util.List getCloudKnowledgeGraphTypesList(); + + /** + * + * + *
            +     * Specify entity types to support.
            +     * 
            + * + * repeated string cloud_knowledge_graph_types = 2; + * + * @return The count of cloudKnowledgeGraphTypes. + */ + int getCloudKnowledgeGraphTypesCount(); + + /** + * + * + *
            +     * Specify entity types to support.
            +     * 
            + * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param index The index of the element to return. + * @return The cloudKnowledgeGraphTypes at the given index. + */ + java.lang.String getCloudKnowledgeGraphTypes(int index); + + /** + * + * + *
            +     * Specify entity types to support.
            +     * 
            + * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param index The index of the value to return. + * @return The bytes of the cloudKnowledgeGraphTypes at the given index. + */ + com.google.protobuf.ByteString getCloudKnowledgeGraphTypesBytes(int index); + + /** + * + * + *
            +     * Whether to enable the Private Knowledge Graph for the engine.
            +     *
            +     * Defaults to false if not specified.
            +     * 
            + * + * bool enable_private_knowledge_graph = 3; + * + * @return The enablePrivateKnowledgeGraph. + */ + boolean getEnablePrivateKnowledgeGraph(); + + /** + * + * + *
            +     * Specify entity types to support.
            +     * 
            + * + * repeated string private_knowledge_graph_types = 4; + * + * @return A list containing the privateKnowledgeGraphTypes. + */ + java.util.List getPrivateKnowledgeGraphTypesList(); + + /** + * + * + *
            +     * Specify entity types to support.
            +     * 
            + * + * repeated string private_knowledge_graph_types = 4; + * + * @return The count of privateKnowledgeGraphTypes. + */ + int getPrivateKnowledgeGraphTypesCount(); + + /** + * + * + *
            +     * Specify entity types to support.
            +     * 
            + * + * repeated string private_knowledge_graph_types = 4; + * + * @param index The index of the element to return. + * @return The privateKnowledgeGraphTypes at the given index. + */ + java.lang.String getPrivateKnowledgeGraphTypes(int index); + + /** + * + * + *
            +     * Specify entity types to support.
            +     * 
            + * + * repeated string private_knowledge_graph_types = 4; + * + * @param index The index of the value to return. + * @return The bytes of the privateKnowledgeGraphTypes at the given index. + */ + com.google.protobuf.ByteString getPrivateKnowledgeGraphTypesBytes(int index); + + /** + * + * + *
            +     * Optional. Feature config for the Knowledge Graph.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the featureConfig field is set. + */ + boolean hasFeatureConfig(); + + /** + * + * + *
            +     * Optional. Feature config for the Knowledge Graph.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The featureConfig. + */ + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + getFeatureConfig(); + + /** + * + * + *
            +     * Optional. Feature config for the Knowledge Graph.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfigOrBuilder + getFeatureConfigOrBuilder(); + } + + /** + * + * + *
            +   * Configuration message for the Knowledge Graph.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig} + */ + public static final class KnowledgeGraphConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig) + KnowledgeGraphConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "KnowledgeGraphConfig"); + } + + // Use KnowledgeGraphConfig.newBuilder() to construct. + private KnowledgeGraphConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private KnowledgeGraphConfig() { + cloudKnowledgeGraphTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + privateKnowledgeGraphTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.class, + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.Builder.class); + } + + public interface FeatureConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Whether to disable the private KG query understanding for the engine.
            +       *
            +       * Defaults to false if not specified.
            +       * 
            + * + * bool disable_private_kg_query_understanding = 1; + * + * @return The disablePrivateKgQueryUnderstanding. + */ + boolean getDisablePrivateKgQueryUnderstanding(); + + /** + * + * + *
            +       * Whether to disable the private KG enrichment for the engine.
            +       *
            +       * Defaults to false if not specified.
            +       * 
            + * + * bool disable_private_kg_enrichment = 2; + * + * @return The disablePrivateKgEnrichment. + */ + boolean getDisablePrivateKgEnrichment(); + + /** + * + * + *
            +       * Whether to disable the private KG auto complete for the engine.
            +       *
            +       * Defaults to false if not specified.
            +       * 
            + * + * bool disable_private_kg_auto_complete = 3; + * + * @return The disablePrivateKgAutoComplete. + */ + boolean getDisablePrivateKgAutoComplete(); + + /** + * + * + *
            +       * Whether to disable the private KG for query UI chips.
            +       *
            +       * Defaults to false if not specified.
            +       * 
            + * + * bool disable_private_kg_query_ui_chips = 4; + * + * @return The disablePrivateKgQueryUiChips. + */ + boolean getDisablePrivateKgQueryUiChips(); + } + + /** + * + * + *
            +     * Feature config for the Knowledge Graph.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig} + */ + public static final class FeatureConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig) + FeatureConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FeatureConfig"); + } + + // Use FeatureConfig.newBuilder() to construct. + private FeatureConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FeatureConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_FeatureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_FeatureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + .class, + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + .Builder.class); + } + + public static final int DISABLE_PRIVATE_KG_QUERY_UNDERSTANDING_FIELD_NUMBER = 1; + private boolean disablePrivateKgQueryUnderstanding_ = false; + + /** + * + * + *
            +       * Whether to disable the private KG query understanding for the engine.
            +       *
            +       * Defaults to false if not specified.
            +       * 
            + * + * bool disable_private_kg_query_understanding = 1; + * + * @return The disablePrivateKgQueryUnderstanding. + */ + @java.lang.Override + public boolean getDisablePrivateKgQueryUnderstanding() { + return disablePrivateKgQueryUnderstanding_; + } + + public static final int DISABLE_PRIVATE_KG_ENRICHMENT_FIELD_NUMBER = 2; + private boolean disablePrivateKgEnrichment_ = false; + + /** + * + * + *
            +       * Whether to disable the private KG enrichment for the engine.
            +       *
            +       * Defaults to false if not specified.
            +       * 
            + * + * bool disable_private_kg_enrichment = 2; + * + * @return The disablePrivateKgEnrichment. + */ + @java.lang.Override + public boolean getDisablePrivateKgEnrichment() { + return disablePrivateKgEnrichment_; + } + + public static final int DISABLE_PRIVATE_KG_AUTO_COMPLETE_FIELD_NUMBER = 3; + private boolean disablePrivateKgAutoComplete_ = false; + + /** + * + * + *
            +       * Whether to disable the private KG auto complete for the engine.
            +       *
            +       * Defaults to false if not specified.
            +       * 
            + * + * bool disable_private_kg_auto_complete = 3; + * + * @return The disablePrivateKgAutoComplete. + */ + @java.lang.Override + public boolean getDisablePrivateKgAutoComplete() { + return disablePrivateKgAutoComplete_; + } + + public static final int DISABLE_PRIVATE_KG_QUERY_UI_CHIPS_FIELD_NUMBER = 4; + private boolean disablePrivateKgQueryUiChips_ = false; + + /** + * + * + *
            +       * Whether to disable the private KG for query UI chips.
            +       *
            +       * Defaults to false if not specified.
            +       * 
            + * + * bool disable_private_kg_query_ui_chips = 4; + * + * @return The disablePrivateKgQueryUiChips. + */ + @java.lang.Override + public boolean getDisablePrivateKgQueryUiChips() { + return disablePrivateKgQueryUiChips_; + } + + 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 (disablePrivateKgQueryUnderstanding_ != false) { + output.writeBool(1, disablePrivateKgQueryUnderstanding_); + } + if (disablePrivateKgEnrichment_ != false) { + output.writeBool(2, disablePrivateKgEnrichment_); + } + if (disablePrivateKgAutoComplete_ != false) { + output.writeBool(3, disablePrivateKgAutoComplete_); + } + if (disablePrivateKgQueryUiChips_ != false) { + output.writeBool(4, disablePrivateKgQueryUiChips_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disablePrivateKgQueryUnderstanding_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, disablePrivateKgQueryUnderstanding_); + } + if (disablePrivateKgEnrichment_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(2, disablePrivateKgEnrichment_); + } + if (disablePrivateKgAutoComplete_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, disablePrivateKgAutoComplete_); + } + if (disablePrivateKgQueryUiChips_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 4, disablePrivateKgQueryUiChips_); + } + 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.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig other = + (com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig) obj; + + if (getDisablePrivateKgQueryUnderstanding() + != other.getDisablePrivateKgQueryUnderstanding()) return false; + if (getDisablePrivateKgEnrichment() != other.getDisablePrivateKgEnrichment()) return false; + if (getDisablePrivateKgAutoComplete() != other.getDisablePrivateKgAutoComplete()) + return false; + if (getDisablePrivateKgQueryUiChips() != other.getDisablePrivateKgQueryUiChips()) + 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) + DISABLE_PRIVATE_KG_QUERY_UNDERSTANDING_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getDisablePrivateKgQueryUnderstanding()); + hash = (37 * hash) + DISABLE_PRIVATE_KG_ENRICHMENT_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisablePrivateKgEnrichment()); + hash = (37 * hash) + DISABLE_PRIVATE_KG_AUTO_COMPLETE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getDisablePrivateKgAutoComplete()); + hash = (37 * hash) + DISABLE_PRIVATE_KG_QUERY_UI_CHIPS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getDisablePrivateKgQueryUiChips()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfig + 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.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfig + parseFrom( + 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.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Feature config for the Knowledge Graph.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig) + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_FeatureConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_FeatureConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + .class, + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + disablePrivateKgQueryUnderstanding_ = false; + disablePrivateKgEnrichment_ = false; + disablePrivateKgAutoComplete_ = false; + disablePrivateKgQueryUiChips_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_FeatureConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + build() { + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig result = + new com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disablePrivateKgQueryUnderstanding_ = disablePrivateKgQueryUnderstanding_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.disablePrivateKgEnrichment_ = disablePrivateKgEnrichment_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.disablePrivateKgAutoComplete_ = disablePrivateKgAutoComplete_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.disablePrivateKgQueryUiChips_ = disablePrivateKgQueryUiChips_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + .getDefaultInstance()) return this; + if (other.getDisablePrivateKgQueryUnderstanding() != false) { + setDisablePrivateKgQueryUnderstanding(other.getDisablePrivateKgQueryUnderstanding()); + } + if (other.getDisablePrivateKgEnrichment() != false) { + setDisablePrivateKgEnrichment(other.getDisablePrivateKgEnrichment()); + } + if (other.getDisablePrivateKgAutoComplete() != false) { + setDisablePrivateKgAutoComplete(other.getDisablePrivateKgAutoComplete()); + } + if (other.getDisablePrivateKgQueryUiChips() != false) { + setDisablePrivateKgQueryUiChips(other.getDisablePrivateKgQueryUiChips()); + } + 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: + { + disablePrivateKgQueryUnderstanding_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + disablePrivateKgEnrichment_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + disablePrivateKgAutoComplete_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + disablePrivateKgQueryUiChips_ = input.readBool(); + 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 boolean disablePrivateKgQueryUnderstanding_; + + /** + * + * + *
            +         * Whether to disable the private KG query understanding for the engine.
            +         *
            +         * Defaults to false if not specified.
            +         * 
            + * + * bool disable_private_kg_query_understanding = 1; + * + * @return The disablePrivateKgQueryUnderstanding. + */ + @java.lang.Override + public boolean getDisablePrivateKgQueryUnderstanding() { + return disablePrivateKgQueryUnderstanding_; + } + + /** + * + * + *
            +         * Whether to disable the private KG query understanding for the engine.
            +         *
            +         * Defaults to false if not specified.
            +         * 
            + * + * bool disable_private_kg_query_understanding = 1; + * + * @param value The disablePrivateKgQueryUnderstanding to set. + * @return This builder for chaining. + */ + public Builder setDisablePrivateKgQueryUnderstanding(boolean value) { + + disablePrivateKgQueryUnderstanding_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Whether to disable the private KG query understanding for the engine.
            +         *
            +         * Defaults to false if not specified.
            +         * 
            + * + * bool disable_private_kg_query_understanding = 1; + * + * @return This builder for chaining. + */ + public Builder clearDisablePrivateKgQueryUnderstanding() { + bitField0_ = (bitField0_ & ~0x00000001); + disablePrivateKgQueryUnderstanding_ = false; + onChanged(); + return this; + } + + private boolean disablePrivateKgEnrichment_; + + /** + * + * + *
            +         * Whether to disable the private KG enrichment for the engine.
            +         *
            +         * Defaults to false if not specified.
            +         * 
            + * + * bool disable_private_kg_enrichment = 2; + * + * @return The disablePrivateKgEnrichment. + */ + @java.lang.Override + public boolean getDisablePrivateKgEnrichment() { + return disablePrivateKgEnrichment_; + } + + /** + * + * + *
            +         * Whether to disable the private KG enrichment for the engine.
            +         *
            +         * Defaults to false if not specified.
            +         * 
            + * + * bool disable_private_kg_enrichment = 2; + * + * @param value The disablePrivateKgEnrichment to set. + * @return This builder for chaining. + */ + public Builder setDisablePrivateKgEnrichment(boolean value) { + + disablePrivateKgEnrichment_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Whether to disable the private KG enrichment for the engine.
            +         *
            +         * Defaults to false if not specified.
            +         * 
            + * + * bool disable_private_kg_enrichment = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisablePrivateKgEnrichment() { + bitField0_ = (bitField0_ & ~0x00000002); + disablePrivateKgEnrichment_ = false; + onChanged(); + return this; + } + + private boolean disablePrivateKgAutoComplete_; + + /** + * + * + *
            +         * Whether to disable the private KG auto complete for the engine.
            +         *
            +         * Defaults to false if not specified.
            +         * 
            + * + * bool disable_private_kg_auto_complete = 3; + * + * @return The disablePrivateKgAutoComplete. + */ + @java.lang.Override + public boolean getDisablePrivateKgAutoComplete() { + return disablePrivateKgAutoComplete_; + } + + /** + * + * + *
            +         * Whether to disable the private KG auto complete for the engine.
            +         *
            +         * Defaults to false if not specified.
            +         * 
            + * + * bool disable_private_kg_auto_complete = 3; + * + * @param value The disablePrivateKgAutoComplete to set. + * @return This builder for chaining. + */ + public Builder setDisablePrivateKgAutoComplete(boolean value) { + + disablePrivateKgAutoComplete_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Whether to disable the private KG auto complete for the engine.
            +         *
            +         * Defaults to false if not specified.
            +         * 
            + * + * bool disable_private_kg_auto_complete = 3; + * + * @return This builder for chaining. + */ + public Builder clearDisablePrivateKgAutoComplete() { + bitField0_ = (bitField0_ & ~0x00000004); + disablePrivateKgAutoComplete_ = false; + onChanged(); + return this; + } + + private boolean disablePrivateKgQueryUiChips_; + + /** + * + * + *
            +         * Whether to disable the private KG for query UI chips.
            +         *
            +         * Defaults to false if not specified.
            +         * 
            + * + * bool disable_private_kg_query_ui_chips = 4; + * + * @return The disablePrivateKgQueryUiChips. + */ + @java.lang.Override + public boolean getDisablePrivateKgQueryUiChips() { + return disablePrivateKgQueryUiChips_; + } + + /** + * + * + *
            +         * Whether to disable the private KG for query UI chips.
            +         *
            +         * Defaults to false if not specified.
            +         * 
            + * + * bool disable_private_kg_query_ui_chips = 4; + * + * @param value The disablePrivateKgQueryUiChips to set. + * @return This builder for chaining. + */ + public Builder setDisablePrivateKgQueryUiChips(boolean value) { + + disablePrivateKgQueryUiChips_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Whether to disable the private KG for query UI chips.
            +         *
            +         * Defaults to false if not specified.
            +         * 
            + * + * bool disable_private_kg_query_ui_chips = 4; + * + * @return This builder for chaining. + */ + public Builder clearDisablePrivateKgQueryUiChips() { + bitField0_ = (bitField0_ & ~0x00000008); + disablePrivateKgQueryUiChips_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig) + private static final com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FeatureConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int ENABLE_CLOUD_KNOWLEDGE_GRAPH_FIELD_NUMBER = 1; + private boolean enableCloudKnowledgeGraph_ = false; + + /** + * + * + *
            +     * Whether to enable the Cloud Knowledge Graph for the engine.
            +     *
            +     * Defaults to false if not specified.
            +     * 
            + * + * bool enable_cloud_knowledge_graph = 1; + * + * @return The enableCloudKnowledgeGraph. + */ + @java.lang.Override + public boolean getEnableCloudKnowledgeGraph() { + return enableCloudKnowledgeGraph_; + } + + public static final int CLOUD_KNOWLEDGE_GRAPH_TYPES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList cloudKnowledgeGraphTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +     * Specify entity types to support.
            +     * 
            + * + * repeated string cloud_knowledge_graph_types = 2; + * + * @return A list containing the cloudKnowledgeGraphTypes. + */ + public com.google.protobuf.ProtocolStringList getCloudKnowledgeGraphTypesList() { + return cloudKnowledgeGraphTypes_; + } + + /** + * + * + *
            +     * Specify entity types to support.
            +     * 
            + * + * repeated string cloud_knowledge_graph_types = 2; + * + * @return The count of cloudKnowledgeGraphTypes. + */ + public int getCloudKnowledgeGraphTypesCount() { + return cloudKnowledgeGraphTypes_.size(); + } + + /** + * + * + *
            +     * Specify entity types to support.
            +     * 
            + * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param index The index of the element to return. + * @return The cloudKnowledgeGraphTypes at the given index. + */ + public java.lang.String getCloudKnowledgeGraphTypes(int index) { + return cloudKnowledgeGraphTypes_.get(index); + } + + /** + * + * + *
            +     * Specify entity types to support.
            +     * 
            + * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param index The index of the value to return. + * @return The bytes of the cloudKnowledgeGraphTypes at the given index. + */ + public com.google.protobuf.ByteString getCloudKnowledgeGraphTypesBytes(int index) { + return cloudKnowledgeGraphTypes_.getByteString(index); + } + + public static final int ENABLE_PRIVATE_KNOWLEDGE_GRAPH_FIELD_NUMBER = 3; + private boolean enablePrivateKnowledgeGraph_ = false; + + /** + * + * + *
            +     * Whether to enable the Private Knowledge Graph for the engine.
            +     *
            +     * Defaults to false if not specified.
            +     * 
            + * + * bool enable_private_knowledge_graph = 3; + * + * @return The enablePrivateKnowledgeGraph. + */ + @java.lang.Override + public boolean getEnablePrivateKnowledgeGraph() { + return enablePrivateKnowledgeGraph_; + } + + public static final int PRIVATE_KNOWLEDGE_GRAPH_TYPES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList privateKnowledgeGraphTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +     * Specify entity types to support.
            +     * 
            + * + * repeated string private_knowledge_graph_types = 4; + * + * @return A list containing the privateKnowledgeGraphTypes. + */ + public com.google.protobuf.ProtocolStringList getPrivateKnowledgeGraphTypesList() { + return privateKnowledgeGraphTypes_; + } + + /** + * + * + *
            +     * Specify entity types to support.
            +     * 
            + * + * repeated string private_knowledge_graph_types = 4; + * + * @return The count of privateKnowledgeGraphTypes. + */ + public int getPrivateKnowledgeGraphTypesCount() { + return privateKnowledgeGraphTypes_.size(); + } + + /** + * + * + *
            +     * Specify entity types to support.
            +     * 
            + * + * repeated string private_knowledge_graph_types = 4; + * + * @param index The index of the element to return. + * @return The privateKnowledgeGraphTypes at the given index. + */ + public java.lang.String getPrivateKnowledgeGraphTypes(int index) { + return privateKnowledgeGraphTypes_.get(index); + } + + /** + * + * + *
            +     * Specify entity types to support.
            +     * 
            + * + * repeated string private_knowledge_graph_types = 4; + * + * @param index The index of the value to return. + * @return The bytes of the privateKnowledgeGraphTypes at the given index. + */ + public com.google.protobuf.ByteString getPrivateKnowledgeGraphTypesBytes(int index) { + return privateKnowledgeGraphTypes_.getByteString(index); + } + + public static final int FEATURE_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + featureConfig_; + + /** + * + * + *
            +     * Optional. Feature config for the Knowledge Graph.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the featureConfig field is set. + */ + @java.lang.Override + public boolean hasFeatureConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. Feature config for the Knowledge Graph.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The featureConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + getFeatureConfig() { + return featureConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + .getDefaultInstance() + : featureConfig_; + } + + /** + * + * + *
            +     * Optional. Feature config for the Knowledge Graph.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfigOrBuilder + getFeatureConfigOrBuilder() { + return featureConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + .getDefaultInstance() + : featureConfig_; + } + + 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 (enableCloudKnowledgeGraph_ != false) { + output.writeBool(1, enableCloudKnowledgeGraph_); + } + for (int i = 0; i < cloudKnowledgeGraphTypes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 2, cloudKnowledgeGraphTypes_.getRaw(i)); + } + if (enablePrivateKnowledgeGraph_ != false) { + output.writeBool(3, enablePrivateKnowledgeGraph_); + } + for (int i = 0; i < privateKnowledgeGraphTypes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 4, privateKnowledgeGraphTypes_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getFeatureConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableCloudKnowledgeGraph_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableCloudKnowledgeGraph_); + } + { + int dataSize = 0; + for (int i = 0; i < cloudKnowledgeGraphTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(cloudKnowledgeGraphTypes_.getRaw(i)); + } + size += dataSize; + size += 1 * getCloudKnowledgeGraphTypesList().size(); + } + if (enablePrivateKnowledgeGraph_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(3, enablePrivateKnowledgeGraph_); + } + { + int dataSize = 0; + for (int i = 0; i < privateKnowledgeGraphTypes_.size(); i++) { + dataSize += computeStringSizeNoTag(privateKnowledgeGraphTypes_.getRaw(i)); + } + size += dataSize; + size += 1 * getPrivateKnowledgeGraphTypesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFeatureConfig()); + } + 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.v1beta.Engine.KnowledgeGraphConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig other = + (com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig) obj; + + if (getEnableCloudKnowledgeGraph() != other.getEnableCloudKnowledgeGraph()) return false; + if (!getCloudKnowledgeGraphTypesList().equals(other.getCloudKnowledgeGraphTypesList())) + return false; + if (getEnablePrivateKnowledgeGraph() != other.getEnablePrivateKnowledgeGraph()) return false; + if (!getPrivateKnowledgeGraphTypesList().equals(other.getPrivateKnowledgeGraphTypesList())) + return false; + if (hasFeatureConfig() != other.hasFeatureConfig()) return false; + if (hasFeatureConfig()) { + if (!getFeatureConfig().equals(other.getFeatureConfig())) 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) + ENABLE_CLOUD_KNOWLEDGE_GRAPH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableCloudKnowledgeGraph()); + if (getCloudKnowledgeGraphTypesCount() > 0) { + hash = (37 * hash) + CLOUD_KNOWLEDGE_GRAPH_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getCloudKnowledgeGraphTypesList().hashCode(); + } + hash = (37 * hash) + ENABLE_PRIVATE_KNOWLEDGE_GRAPH_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePrivateKnowledgeGraph()); + if (getPrivateKnowledgeGraphTypesCount() > 0) { + hash = (37 * hash) + PRIVATE_KNOWLEDGE_GRAPH_TYPES_FIELD_NUMBER; + hash = (53 * hash) + getPrivateKnowledgeGraphTypesList().hashCode(); + } + if (hasFeatureConfig()) { + hash = (37 * hash) + FEATURE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getFeatureConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig 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.v1beta.Engine.KnowledgeGraphConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig parseFrom( + 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.v1beta.Engine.KnowledgeGraphConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Configuration message for the Knowledge Graph.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig) + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.class, + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFeatureConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableCloudKnowledgeGraph_ = false; + cloudKnowledgeGraphTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + enablePrivateKnowledgeGraph_ = false; + privateKnowledgeGraphTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + featureConfig_ = null; + if (featureConfigBuilder_ != null) { + featureConfigBuilder_.dispose(); + featureConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig build() { + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig buildPartial() { + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig result = + new com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableCloudKnowledgeGraph_ = enableCloudKnowledgeGraph_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + cloudKnowledgeGraphTypes_.makeImmutable(); + result.cloudKnowledgeGraphTypes_ = cloudKnowledgeGraphTypes_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enablePrivateKnowledgeGraph_ = enablePrivateKnowledgeGraph_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + privateKnowledgeGraphTypes_.makeImmutable(); + result.privateKnowledgeGraphTypes_ = privateKnowledgeGraphTypes_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.featureConfig_ = + featureConfigBuilder_ == null ? featureConfig_ : featureConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .getDefaultInstance()) return this; + if (other.getEnableCloudKnowledgeGraph() != false) { + setEnableCloudKnowledgeGraph(other.getEnableCloudKnowledgeGraph()); + } + if (!other.cloudKnowledgeGraphTypes_.isEmpty()) { + if (cloudKnowledgeGraphTypes_.isEmpty()) { + cloudKnowledgeGraphTypes_ = other.cloudKnowledgeGraphTypes_; + bitField0_ |= 0x00000002; + } else { + ensureCloudKnowledgeGraphTypesIsMutable(); + cloudKnowledgeGraphTypes_.addAll(other.cloudKnowledgeGraphTypes_); + } + onChanged(); + } + if (other.getEnablePrivateKnowledgeGraph() != false) { + setEnablePrivateKnowledgeGraph(other.getEnablePrivateKnowledgeGraph()); + } + if (!other.privateKnowledgeGraphTypes_.isEmpty()) { + if (privateKnowledgeGraphTypes_.isEmpty()) { + privateKnowledgeGraphTypes_ = other.privateKnowledgeGraphTypes_; + bitField0_ |= 0x00000008; + } else { + ensurePrivateKnowledgeGraphTypesIsMutable(); + privateKnowledgeGraphTypes_.addAll(other.privateKnowledgeGraphTypes_); + } + onChanged(); + } + if (other.hasFeatureConfig()) { + mergeFeatureConfig(other.getFeatureConfig()); + } + 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: + { + enableCloudKnowledgeGraph_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCloudKnowledgeGraphTypesIsMutable(); + cloudKnowledgeGraphTypes_.add(s); + break; + } // case 18 + case 24: + { + enablePrivateKnowledgeGraph_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePrivateKnowledgeGraphTypesIsMutable(); + privateKnowledgeGraphTypes_.add(s); + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetFeatureConfigFieldBuilder().getBuilder(), extensionRegistry); + 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 boolean enableCloudKnowledgeGraph_; + + /** + * + * + *
            +       * Whether to enable the Cloud Knowledge Graph for the engine.
            +       *
            +       * Defaults to false if not specified.
            +       * 
            + * + * bool enable_cloud_knowledge_graph = 1; + * + * @return The enableCloudKnowledgeGraph. + */ + @java.lang.Override + public boolean getEnableCloudKnowledgeGraph() { + return enableCloudKnowledgeGraph_; + } + + /** + * + * + *
            +       * Whether to enable the Cloud Knowledge Graph for the engine.
            +       *
            +       * Defaults to false if not specified.
            +       * 
            + * + * bool enable_cloud_knowledge_graph = 1; + * + * @param value The enableCloudKnowledgeGraph to set. + * @return This builder for chaining. + */ + public Builder setEnableCloudKnowledgeGraph(boolean value) { + + enableCloudKnowledgeGraph_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Whether to enable the Cloud Knowledge Graph for the engine.
            +       *
            +       * Defaults to false if not specified.
            +       * 
            + * + * bool enable_cloud_knowledge_graph = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnableCloudKnowledgeGraph() { + bitField0_ = (bitField0_ & ~0x00000001); + enableCloudKnowledgeGraph_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList cloudKnowledgeGraphTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCloudKnowledgeGraphTypesIsMutable() { + if (!cloudKnowledgeGraphTypes_.isModifiable()) { + cloudKnowledgeGraphTypes_ = + new com.google.protobuf.LazyStringArrayList(cloudKnowledgeGraphTypes_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
            +       * Specify entity types to support.
            +       * 
            + * + * repeated string cloud_knowledge_graph_types = 2; + * + * @return A list containing the cloudKnowledgeGraphTypes. + */ + public com.google.protobuf.ProtocolStringList getCloudKnowledgeGraphTypesList() { + cloudKnowledgeGraphTypes_.makeImmutable(); + return cloudKnowledgeGraphTypes_; + } + + /** + * + * + *
            +       * Specify entity types to support.
            +       * 
            + * + * repeated string cloud_knowledge_graph_types = 2; + * + * @return The count of cloudKnowledgeGraphTypes. + */ + public int getCloudKnowledgeGraphTypesCount() { + return cloudKnowledgeGraphTypes_.size(); + } + + /** + * + * + *
            +       * Specify entity types to support.
            +       * 
            + * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param index The index of the element to return. + * @return The cloudKnowledgeGraphTypes at the given index. + */ + public java.lang.String getCloudKnowledgeGraphTypes(int index) { + return cloudKnowledgeGraphTypes_.get(index); + } + + /** + * + * + *
            +       * Specify entity types to support.
            +       * 
            + * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param index The index of the value to return. + * @return The bytes of the cloudKnowledgeGraphTypes at the given index. + */ + public com.google.protobuf.ByteString getCloudKnowledgeGraphTypesBytes(int index) { + return cloudKnowledgeGraphTypes_.getByteString(index); + } + + /** + * + * + *
            +       * Specify entity types to support.
            +       * 
            + * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param index The index to set the value at. + * @param value The cloudKnowledgeGraphTypes to set. + * @return This builder for chaining. + */ + public Builder setCloudKnowledgeGraphTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudKnowledgeGraphTypesIsMutable(); + cloudKnowledgeGraphTypes_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Specify entity types to support.
            +       * 
            + * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param value The cloudKnowledgeGraphTypes to add. + * @return This builder for chaining. + */ + public Builder addCloudKnowledgeGraphTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCloudKnowledgeGraphTypesIsMutable(); + cloudKnowledgeGraphTypes_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Specify entity types to support.
            +       * 
            + * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param values The cloudKnowledgeGraphTypes to add. + * @return This builder for chaining. + */ + public Builder addAllCloudKnowledgeGraphTypes(java.lang.Iterable values) { + ensureCloudKnowledgeGraphTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cloudKnowledgeGraphTypes_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Specify entity types to support.
            +       * 
            + * + * repeated string cloud_knowledge_graph_types = 2; + * + * @return This builder for chaining. + */ + public Builder clearCloudKnowledgeGraphTypes() { + cloudKnowledgeGraphTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Specify entity types to support.
            +       * 
            + * + * repeated string cloud_knowledge_graph_types = 2; + * + * @param value The bytes of the cloudKnowledgeGraphTypes to add. + * @return This builder for chaining. + */ + public Builder addCloudKnowledgeGraphTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCloudKnowledgeGraphTypesIsMutable(); + cloudKnowledgeGraphTypes_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean enablePrivateKnowledgeGraph_; + + /** + * + * + *
            +       * Whether to enable the Private Knowledge Graph for the engine.
            +       *
            +       * Defaults to false if not specified.
            +       * 
            + * + * bool enable_private_knowledge_graph = 3; + * + * @return The enablePrivateKnowledgeGraph. + */ + @java.lang.Override + public boolean getEnablePrivateKnowledgeGraph() { + return enablePrivateKnowledgeGraph_; + } + + /** + * + * + *
            +       * Whether to enable the Private Knowledge Graph for the engine.
            +       *
            +       * Defaults to false if not specified.
            +       * 
            + * + * bool enable_private_knowledge_graph = 3; + * + * @param value The enablePrivateKnowledgeGraph to set. + * @return This builder for chaining. + */ + public Builder setEnablePrivateKnowledgeGraph(boolean value) { + + enablePrivateKnowledgeGraph_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Whether to enable the Private Knowledge Graph for the engine.
            +       *
            +       * Defaults to false if not specified.
            +       * 
            + * + * bool enable_private_knowledge_graph = 3; + * + * @return This builder for chaining. + */ + public Builder clearEnablePrivateKnowledgeGraph() { + bitField0_ = (bitField0_ & ~0x00000004); + enablePrivateKnowledgeGraph_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList privateKnowledgeGraphTypes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePrivateKnowledgeGraphTypesIsMutable() { + if (!privateKnowledgeGraphTypes_.isModifiable()) { + privateKnowledgeGraphTypes_ = + new com.google.protobuf.LazyStringArrayList(privateKnowledgeGraphTypes_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
            +       * Specify entity types to support.
            +       * 
            + * + * repeated string private_knowledge_graph_types = 4; + * + * @return A list containing the privateKnowledgeGraphTypes. + */ + public com.google.protobuf.ProtocolStringList getPrivateKnowledgeGraphTypesList() { + privateKnowledgeGraphTypes_.makeImmutable(); + return privateKnowledgeGraphTypes_; + } + + /** + * + * + *
            +       * Specify entity types to support.
            +       * 
            + * + * repeated string private_knowledge_graph_types = 4; + * + * @return The count of privateKnowledgeGraphTypes. + */ + public int getPrivateKnowledgeGraphTypesCount() { + return privateKnowledgeGraphTypes_.size(); + } + + /** + * + * + *
            +       * Specify entity types to support.
            +       * 
            + * + * repeated string private_knowledge_graph_types = 4; + * + * @param index The index of the element to return. + * @return The privateKnowledgeGraphTypes at the given index. + */ + public java.lang.String getPrivateKnowledgeGraphTypes(int index) { + return privateKnowledgeGraphTypes_.get(index); + } + + /** + * + * + *
            +       * Specify entity types to support.
            +       * 
            + * + * repeated string private_knowledge_graph_types = 4; + * + * @param index The index of the value to return. + * @return The bytes of the privateKnowledgeGraphTypes at the given index. + */ + public com.google.protobuf.ByteString getPrivateKnowledgeGraphTypesBytes(int index) { + return privateKnowledgeGraphTypes_.getByteString(index); + } + + /** + * + * + *
            +       * Specify entity types to support.
            +       * 
            + * + * repeated string private_knowledge_graph_types = 4; + * + * @param index The index to set the value at. + * @param value The privateKnowledgeGraphTypes to set. + * @return This builder for chaining. + */ + public Builder setPrivateKnowledgeGraphTypes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateKnowledgeGraphTypesIsMutable(); + privateKnowledgeGraphTypes_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Specify entity types to support.
            +       * 
            + * + * repeated string private_knowledge_graph_types = 4; + * + * @param value The privateKnowledgeGraphTypes to add. + * @return This builder for chaining. + */ + public Builder addPrivateKnowledgeGraphTypes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrivateKnowledgeGraphTypesIsMutable(); + privateKnowledgeGraphTypes_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Specify entity types to support.
            +       * 
            + * + * repeated string private_knowledge_graph_types = 4; + * + * @param values The privateKnowledgeGraphTypes to add. + * @return This builder for chaining. + */ + public Builder addAllPrivateKnowledgeGraphTypes(java.lang.Iterable values) { + ensurePrivateKnowledgeGraphTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, privateKnowledgeGraphTypes_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Specify entity types to support.
            +       * 
            + * + * repeated string private_knowledge_graph_types = 4; + * + * @return This builder for chaining. + */ + public Builder clearPrivateKnowledgeGraphTypes() { + privateKnowledgeGraphTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Specify entity types to support.
            +       * 
            + * + * repeated string private_knowledge_graph_types = 4; + * + * @param value The bytes of the privateKnowledgeGraphTypes to add. + * @return This builder for chaining. + */ + public Builder addPrivateKnowledgeGraphTypesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePrivateKnowledgeGraphTypesIsMutable(); + privateKnowledgeGraphTypes_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + featureConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig, + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + .Builder, + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfigOrBuilder> + featureConfigBuilder_; + + /** + * + * + *
            +       * Optional. Feature config for the Knowledge Graph.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the featureConfig field is set. + */ + public boolean hasFeatureConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +       * Optional. Feature config for the Knowledge Graph.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The featureConfig. + */ + public com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + getFeatureConfig() { + if (featureConfigBuilder_ == null) { + return featureConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + .getDefaultInstance() + : featureConfig_; + } else { + return featureConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. Feature config for the Knowledge Graph.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFeatureConfig( + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig value) { + if (featureConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + featureConfig_ = value; + } else { + featureConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Feature config for the Knowledge Graph.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFeatureConfig( + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig.Builder + builderForValue) { + if (featureConfigBuilder_ == null) { + featureConfig_ = builderForValue.build(); + } else { + featureConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Feature config for the Knowledge Graph.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFeatureConfig( + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig value) { + if (featureConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && featureConfig_ != null + && featureConfig_ + != com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfig.getDefaultInstance()) { + getFeatureConfigBuilder().mergeFrom(value); + } else { + featureConfig_ = value; + } + } else { + featureConfigBuilder_.mergeFrom(value); + } + if (featureConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Feature config for the Knowledge Graph.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFeatureConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + featureConfig_ = null; + if (featureConfigBuilder_ != null) { + featureConfigBuilder_.dispose(); + featureConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Feature config for the Knowledge Graph.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + .Builder + getFeatureConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetFeatureConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Feature config for the Knowledge Graph.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfigOrBuilder + getFeatureConfigOrBuilder() { + if (featureConfigBuilder_ != null) { + return featureConfigBuilder_.getMessageOrBuilder(); + } else { + return featureConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + .getDefaultInstance() + : featureConfig_; + } + } + + /** + * + * + *
            +       * Optional. Feature config for the Knowledge Graph.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig feature_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig, + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + .Builder, + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfigOrBuilder> + internalGetFeatureConfigFieldBuilder() { + if (featureConfigBuilder_ == null) { + featureConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig, + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfig + .Builder, + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .FeatureConfigOrBuilder>( + getFeatureConfig(), getParentForChildren(), isClean()); + featureConfig_ = null; + } + return featureConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig) + private static final com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public KnowledgeGraphConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Engine.KnowledgeGraphConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ChatEngineMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * The resource name of a Dialogflow agent, that this Chat Engine refers
            +     * to.
            +     *
            +     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            +     * ID>`.
            +     * 
            + * + * string dialogflow_agent = 1; + * + * @return The dialogflowAgent. + */ + java.lang.String getDialogflowAgent(); + + /** + * + * + *
            +     * The resource name of a Dialogflow agent, that this Chat Engine refers
            +     * to.
            +     *
            +     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            +     * ID>`.
            +     * 
            + * + * string dialogflow_agent = 1; + * + * @return The bytes for dialogflowAgent. + */ + com.google.protobuf.ByteString getDialogflowAgentBytes(); + } + + /** + * + * + *
            +   * Additional information of a Chat Engine.
            +   * Fields in this message are output only.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata} + */ + public static final class ChatEngineMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) + ChatEngineMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ChatEngineMetadata"); + } + + // Use ChatEngineMetadata.newBuilder() to construct. + private ChatEngineMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ChatEngineMetadata() { + dialogflowAgent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.class, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.Builder.class); + } + + public static final int DIALOGFLOW_AGENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dialogflowAgent_ = ""; + + /** + * + * + *
            +     * The resource name of a Dialogflow agent, that this Chat Engine refers
            +     * to.
            +     *
            +     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            +     * ID>`.
            +     * 
            + * + * string dialogflow_agent = 1; + * + * @return The dialogflowAgent. + */ + @java.lang.Override + public java.lang.String getDialogflowAgent() { + java.lang.Object ref = dialogflowAgent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dialogflowAgent_ = s; + return s; + } + } + + /** + * + * + *
            +     * The resource name of a Dialogflow agent, that this Chat Engine refers
            +     * to.
            +     *
            +     * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            +     * ID>`.
            +     * 
            + * + * string dialogflow_agent = 1; + * + * @return The bytes for dialogflowAgent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDialogflowAgentBytes() { + java.lang.Object ref = dialogflowAgent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dialogflowAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dialogflowAgent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, dialogflowAgent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dialogflowAgent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, dialogflowAgent_); + } + 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.v1beta.Engine.ChatEngineMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata other = + (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) obj; + + if (!getDialogflowAgent().equals(other.getDialogflowAgent())) 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) + DIALOGFLOW_AGENT_FIELD_NUMBER; + hash = (53 * hash) + getDialogflowAgent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata 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.v1beta.Engine.ChatEngineMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata parseFrom( + 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.v1beta.Engine.ChatEngineMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Additional information of a Chat Engine.
            +     * Fields in this message are output only.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.class, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dialogflowAgent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata build() { + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata buildPartial() { + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata result = + new com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dialogflowAgent_ = dialogflowAgent_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata + .getDefaultInstance()) return this; + if (!other.getDialogflowAgent().isEmpty()) { + dialogflowAgent_ = other.dialogflowAgent_; + 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: + { + dialogflowAgent_ = 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 dialogflowAgent_ = ""; + + /** + * + * + *
            +       * The resource name of a Dialogflow agent, that this Chat Engine refers
            +       * to.
            +       *
            +       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            +       * ID>`.
            +       * 
            + * + * string dialogflow_agent = 1; + * + * @return The dialogflowAgent. + */ + public java.lang.String getDialogflowAgent() { + java.lang.Object ref = dialogflowAgent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dialogflowAgent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * The resource name of a Dialogflow agent, that this Chat Engine refers
            +       * to.
            +       *
            +       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            +       * ID>`.
            +       * 
            + * + * string dialogflow_agent = 1; + * + * @return The bytes for dialogflowAgent. + */ + public com.google.protobuf.ByteString getDialogflowAgentBytes() { + java.lang.Object ref = dialogflowAgent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dialogflowAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * The resource name of a Dialogflow agent, that this Chat Engine refers
            +       * to.
            +       *
            +       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            +       * ID>`.
            +       * 
            + * + * string dialogflow_agent = 1; + * + * @param value The dialogflowAgent to set. + * @return This builder for chaining. + */ + public Builder setDialogflowAgent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dialogflowAgent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The resource name of a Dialogflow agent, that this Chat Engine refers
            +       * to.
            +       *
            +       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            +       * ID>`.
            +       * 
            + * + * string dialogflow_agent = 1; + * + * @return This builder for chaining. + */ + public Builder clearDialogflowAgent() { + dialogflowAgent_ = getDefaultInstance().getDialogflowAgent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The resource name of a Dialogflow agent, that this Chat Engine refers
            +       * to.
            +       *
            +       * Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
            +       * ID>`.
            +       * 
            + * + * string dialogflow_agent = 1; + * + * @param value The bytes for dialogflowAgent to set. + * @return This builder for chaining. + */ + public Builder setDialogflowAgentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dialogflowAgent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) + private static final com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatEngineMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Engine.ChatEngineMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int engineConfigCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object engineConfig_; + + public enum EngineConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CHAT_ENGINE_CONFIG(11), + SEARCH_ENGINE_CONFIG(13), + MEDIA_RECOMMENDATION_ENGINE_CONFIG(14), + ENGINECONFIG_NOT_SET(0); + private final int value; + + private EngineConfigCase(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 EngineConfigCase valueOf(int value) { + return forNumber(value); + } + + public static EngineConfigCase forNumber(int value) { + switch (value) { + case 11: + return CHAT_ENGINE_CONFIG; + case 13: + return SEARCH_ENGINE_CONFIG; + case 14: + return MEDIA_RECOMMENDATION_ENGINE_CONFIG; + case 0: + return ENGINECONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EngineConfigCase getEngineConfigCase() { + return EngineConfigCase.forNumber(engineConfigCase_); + } + + private int engineMetadataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object engineMetadata_; + + public enum EngineMetadataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CHAT_ENGINE_METADATA(12), + ENGINEMETADATA_NOT_SET(0); + private final int value; + + private EngineMetadataCase(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 EngineMetadataCase valueOf(int value) { + return forNumber(value); + } + + public static EngineMetadataCase forNumber(int value) { + switch (value) { + case 12: + return CHAT_ENGINE_METADATA; + case 0: + return ENGINEMETADATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EngineMetadataCase getEngineMetadataCase() { + return EngineMetadataCase.forNumber(engineMetadataCase_); + } + + public static final int CHAT_ENGINE_CONFIG_FIELD_NUMBER = 11; + + /** + * + * + *
            +   * Configurations for the Chat Engine. Only applicable if
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * is
            +   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + * + * @return Whether the chatEngineConfig field is set. + */ + @java.lang.Override + public boolean hasChatEngineConfig() { + return engineConfigCase_ == 11; + } + + /** + * + * + *
            +   * Configurations for the Chat Engine. Only applicable if
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * is
            +   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + * + * @return The chatEngineConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig getChatEngineConfig() { + if (engineConfigCase_ == 11) { + return (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) engineConfig_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.getDefaultInstance(); + } + + /** + * + * + *
            +   * Configurations for the Chat Engine. Only applicable if
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * is
            +   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfigOrBuilder + getChatEngineConfigOrBuilder() { + if (engineConfigCase_ == 11) { + return (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) engineConfig_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.getDefaultInstance(); + } + + public static final int SEARCH_ENGINE_CONFIG_FIELD_NUMBER = 13; + + /** + * + * + *
            +   * Configurations for the Search Engine. Only applicable if
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * is
            +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * + * + * @return Whether the searchEngineConfig field is set. + */ + @java.lang.Override + public boolean hasSearchEngineConfig() { + return engineConfigCase_ == 13; + } + + /** + * + * + *
            +   * Configurations for the Search Engine. Only applicable if
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * is
            +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * + * + * @return The searchEngineConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig getSearchEngineConfig() { + if (engineConfigCase_ == 13) { + return (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) engineConfig_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.getDefaultInstance(); + } + + /** + * + * + *
            +   * Configurations for the Search Engine. Only applicable if
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * is
            +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfigOrBuilder + getSearchEngineConfigOrBuilder() { + if (engineConfigCase_ == 13) { + return (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) engineConfig_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.getDefaultInstance(); + } + + public static final int MEDIA_RECOMMENDATION_ENGINE_CONFIG_FIELD_NUMBER = 14; + + /** + * + * + *
            +   * Configurations for the Media Engine. Only applicable on the data
            +   * stores with
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +   * and
            +   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +   * vertical.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + * + * @return Whether the mediaRecommendationEngineConfig field is set. + */ + @java.lang.Override + public boolean hasMediaRecommendationEngineConfig() { + return engineConfigCase_ == 14; + } + + /** + * + * + *
            +   * Configurations for the Media Engine. Only applicable on the data
            +   * stores with
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +   * and
            +   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +   * vertical.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + * + * @return The mediaRecommendationEngineConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + getMediaRecommendationEngineConfig() { + if (engineConfigCase_ == 14) { + return (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig) + engineConfig_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .getDefaultInstance(); + } + + /** + * + * + *
            +   * Configurations for the Media Engine. Only applicable on the data
            +   * stores with
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +   * and
            +   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +   * vertical.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfigOrBuilder + getMediaRecommendationEngineConfigOrBuilder() { + if (engineConfigCase_ == 14) { + return (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig) + engineConfig_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .getDefaultInstance(); + } + + public static final int CHAT_ENGINE_METADATA_FIELD_NUMBER = 12; + + /** + * + * + *
            +   * Output only. Additional information of the Chat Engine. Only applicable
            +   * if
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * is
            +   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the chatEngineMetadata field is set. + */ + @java.lang.Override + public boolean hasChatEngineMetadata() { + return engineMetadataCase_ == 12; + } + + /** + * + * + *
            +   * Output only. Additional information of the Chat Engine. Only applicable
            +   * if
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * is
            +   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The chatEngineMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata getChatEngineMetadata() { + if (engineMetadataCase_ == 12) { + return (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) engineMetadata_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.getDefaultInstance(); + } + + /** + * + * + *
            +   * Output only. Additional information of the Chat Engine. Only applicable
            +   * if
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * is
            +   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadataOrBuilder + getChatEngineMetadataOrBuilder() { + if (engineMetadataCase_ == 12) { + return (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) engineMetadata_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Immutable. Identifier. The fully qualified resource name of the engine.
            +   *
            +   * This field must be a UTF-8 encoded string with a length limit of 1024
            +   * characters.
            +   *
            +   * Format:
            +   * `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, (.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; + } + } + + /** + * + * + *
            +   * Immutable. Identifier. The fully qualified resource name of the engine.
            +   *
            +   * This field must be a UTF-8 encoded string with a length limit of 1024
            +   * characters.
            +   *
            +   * Format:
            +   * `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, (.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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
            +   * Required. The display name of the engine. Should be human readable. UTF-8
            +   * encoded string with limit of 1024 characters.
            +   * 
            + * + * 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 display name of the engine. Should be human readable. UTF-8
            +   * encoded string with limit of 1024 characters.
            +   * 
            + * + * 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 CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. Timestamp the Recommendation Engine was created at.
            +   * 
            + * + * .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. Timestamp the Recommendation Engine was created at.
            +   * 
            + * + * .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. Timestamp the Recommendation Engine was created at.
            +   * 
            + * + * .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. Timestamp the Recommendation Engine was last 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. Timestamp the Recommendation Engine was last 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. Timestamp the Recommendation Engine was last 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_; + } + + public static final int DATA_STORE_IDS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList dataStoreIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * Optional. The data stores associated with this engine.
            +   *
            +   * For
            +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            +   * and
            +   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +   * type of engines, they can only associate with at most one data store.
            +   *
            +   * If
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * is
            +   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            +   * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            +   * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            +   * associated here.
            +   *
            +   * Note that when used in
            +   * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            +   * one DataStore id must be provided as the system will use it for necessary
            +   * initializations.
            +   * 
            + * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the dataStoreIds. + */ + public com.google.protobuf.ProtocolStringList getDataStoreIdsList() { + return dataStoreIds_; + } + + /** + * + * + *
            +   * Optional. The data stores associated with this engine.
            +   *
            +   * For
            +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            +   * and
            +   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +   * type of engines, they can only associate with at most one data store.
            +   *
            +   * If
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * is
            +   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            +   * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            +   * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            +   * associated here.
            +   *
            +   * Note that when used in
            +   * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            +   * one DataStore id must be provided as the system will use it for necessary
            +   * initializations.
            +   * 
            + * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of dataStoreIds. + */ + public int getDataStoreIdsCount() { + return dataStoreIds_.size(); + } + + /** + * + * + *
            +   * Optional. The data stores associated with this engine.
            +   *
            +   * For
            +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            +   * and
            +   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +   * type of engines, they can only associate with at most one data store.
            +   *
            +   * If
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * is
            +   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            +   * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            +   * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            +   * associated here.
            +   *
            +   * Note that when used in
            +   * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            +   * one DataStore id must be provided as the system will use it for necessary
            +   * initializations.
            +   * 
            + * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The dataStoreIds at the given index. + */ + public java.lang.String getDataStoreIds(int index) { + return dataStoreIds_.get(index); + } + + /** + * + * + *
            +   * Optional. The data stores associated with this engine.
            +   *
            +   * For
            +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            +   * and
            +   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +   * type of engines, they can only associate with at most one data store.
            +   *
            +   * If
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * is
            +   * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            +   * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            +   * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            +   * associated here.
            +   *
            +   * Note that when used in
            +   * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            +   * one DataStore id must be provided as the system will use it for necessary
            +   * initializations.
            +   * 
            + * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the dataStoreIds at the given index. + */ + public com.google.protobuf.ByteString getDataStoreIdsBytes(int index) { + return dataStoreIds_.getByteString(index); + } + + public static final int SOLUTION_TYPE_FIELD_NUMBER = 6; + private int solutionType_ = 0; + + /** + * + * + *
            +   * Required. The solutions of the engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for solutionType. + */ + @java.lang.Override + public int getSolutionTypeValue() { + return solutionType_; + } + + /** + * + * + *
            +   * Required. The solutions of the engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The solutionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SolutionType getSolutionType() { + com.google.cloud.discoveryengine.v1beta.SolutionType result = + com.google.cloud.discoveryengine.v1beta.SolutionType.forNumber(solutionType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SolutionType.UNRECOGNIZED + : result; + } + + public static final int INDUSTRY_VERTICAL_FIELD_NUMBER = 16; + private int industryVertical_ = 0; + + /** + * + * + *
            +   * Optional. The industry vertical that the engine registers.
            +   * The restriction of the Engine industry vertical is based on
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: Vertical on
            +   * Engine has to match vertical of the DataStore linked to the engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for industryVertical. + */ + @java.lang.Override + public int getIndustryVerticalValue() { + return industryVertical_; + } + + /** + * + * + *
            +   * Optional. The industry vertical that the engine registers.
            +   * The restriction of the Engine industry vertical is based on
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: Vertical on
            +   * Engine has to match vertical of the DataStore linked to the engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The industryVertical. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IndustryVertical getIndustryVertical() { + com.google.cloud.discoveryengine.v1beta.IndustryVertical result = + com.google.cloud.discoveryengine.v1beta.IndustryVertical.forNumber(industryVertical_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.IndustryVertical.UNRECOGNIZED + : result; + } + + public static final int COMMON_CONFIG_FIELD_NUMBER = 15; + private com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig commonConfig_; + + /** + * + * + *
            +   * Common config spec that specifies the metadata of the engine.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; + * + * @return Whether the commonConfig field is set. + */ + @java.lang.Override + public boolean hasCommonConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Common config spec that specifies the metadata of the engine.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; + * + * @return The commonConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig getCommonConfig() { + return commonConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.getDefaultInstance() + : commonConfig_; + } + + /** + * + * + *
            +   * Common config spec that specifies the metadata of the engine.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.CommonConfigOrBuilder + getCommonConfigOrBuilder() { + return commonConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.getDefaultInstance() + : commonConfig_; + } + + public static final int KNOWLEDGE_GRAPH_CONFIG_FIELD_NUMBER = 23; + private com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig knowledgeGraphConfig_; + + /** + * + * + *
            +   * Optional. Configurations for the Knowledge Graph. Only applicable if
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * is
            +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the knowledgeGraphConfig field is set. + */ + @java.lang.Override + public boolean hasKnowledgeGraphConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Optional. Configurations for the Knowledge Graph. Only applicable if
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * is
            +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The knowledgeGraphConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + getKnowledgeGraphConfig() { + return knowledgeGraphConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.getDefaultInstance() + : knowledgeGraphConfig_; + } + + /** + * + * + *
            +   * Optional. Configurations for the Knowledge Graph. Only applicable if
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * is
            +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfigOrBuilder + getKnowledgeGraphConfigOrBuilder() { + return knowledgeGraphConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.getDefaultInstance() + : knowledgeGraphConfig_; + } + + public static final int APP_TYPE_FIELD_NUMBER = 24; + private int appType_ = 0; + + /** + * + * + *
            +   * Optional. Immutable. This the application type which this engine resource
            +   * represents. NOTE: this is a new concept independ of existing industry
            +   * vertical or solution type.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.AppType app_type = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for appType. + */ + @java.lang.Override + public int getAppTypeValue() { + return appType_; + } + + /** + * + * + *
            +   * Optional. Immutable. This the application type which this engine resource
            +   * represents. NOTE: this is a new concept independ of existing industry
            +   * vertical or solution type.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.AppType app_type = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The appType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.AppType getAppType() { + com.google.cloud.discoveryengine.v1beta.Engine.AppType result = + com.google.cloud.discoveryengine.v1beta.Engine.AppType.forNumber(appType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Engine.AppType.UNRECOGNIZED + : result; + } + + 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_; + } + + public static final int FEATURES_FIELD_NUMBER = 30; + + private static final class FeaturesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_FeaturesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.ENUM, + com.google.cloud.discoveryengine.v1beta.Engine.FeatureState.FEATURE_STATE_UNSPECIFIED + .getNumber()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField features_; + + private com.google.protobuf.MapField internalGetFeatures() { + if (features_ == null) { + return com.google.protobuf.MapField.emptyMapField(FeaturesDefaultEntryHolder.defaultEntry); + } + return features_; + } + + private static final com.google.protobuf.Internal.MapAdapter.Converter< + java.lang.Integer, com.google.cloud.discoveryengine.v1beta.Engine.FeatureState> + featuresValueConverter = + com.google.protobuf.Internal.MapAdapter.newEnumConverter( + com.google.cloud.discoveryengine.v1beta.Engine.FeatureState.internalGetValueMap(), + com.google.cloud.discoveryengine.v1beta.Engine.FeatureState.UNRECOGNIZED); + + private static final java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Engine.FeatureState> + internalGetAdaptedFeaturesMap(java.util.Map map) { + return new com.google.protobuf.Internal.MapAdapter< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.Engine.FeatureState, + java.lang.Integer>(map, featuresValueConverter); + } + + public int getFeaturesCount() { + return internalGetFeatures().getMap().size(); + } + + /** + * + * + *
            +   * Optional. Feature config for the engine to opt in or opt out of features.
            +   * Supported keys:
            +   *
            +   * * `*`: all features, if it's present, all other feature state settings are
            +   * ignored.
            +   * * `agent-gallery`
            +   * * `no-code-agent-builder`
            +   * * `prompt-gallery`
            +   * * `model-selector`
            +   * * `notebook-lm`
            +   * * `people-search`
            +   * * `people-search-org-chart`
            +   * * `bi-directional-audio`
            +   * * `feedback`
            +   * * `session-sharing`
            +   * * `personalization-memory`
            +   * * `personalization-suggested-highlights`
            +   * * `mobile-app-access`
            +   * * `disable-agent-sharing`
            +   * * `disable-image-generation`
            +   * * `disable-video-generation`
            +   * * `disable-onedrive-upload`
            +   * * `disable-talk-to-content`
            +   * * `disable-google-drive-upload`
            +   * * `disable-welcome-emails`
            +   * * `disable-canvas`
            +   * * `disable-canvas-workspace`
            +   * * `disable-skills`
            +   * * `enable-end-user-sharing-with-groups`
            +   * * `single-agent-orchestration`
            +   * * `multi-agent-orchestration`
            +   * * `cross-product-intelligence`
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsFeatures(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFeatures().getMap().containsKey(key); + } + + /** Use {@link #getFeaturesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Engine.FeatureState> + getFeatures() { + return getFeaturesMap(); + } + + /** + * + * + *
            +   * Optional. Feature config for the engine to opt in or opt out of features.
            +   * Supported keys:
            +   *
            +   * * `*`: all features, if it's present, all other feature state settings are
            +   * ignored.
            +   * * `agent-gallery`
            +   * * `no-code-agent-builder`
            +   * * `prompt-gallery`
            +   * * `model-selector`
            +   * * `notebook-lm`
            +   * * `people-search`
            +   * * `people-search-org-chart`
            +   * * `bi-directional-audio`
            +   * * `feedback`
            +   * * `session-sharing`
            +   * * `personalization-memory`
            +   * * `personalization-suggested-highlights`
            +   * * `mobile-app-access`
            +   * * `disable-agent-sharing`
            +   * * `disable-image-generation`
            +   * * `disable-video-generation`
            +   * * `disable-onedrive-upload`
            +   * * `disable-talk-to-content`
            +   * * `disable-google-drive-upload`
            +   * * `disable-welcome-emails`
            +   * * `disable-canvas`
            +   * * `disable-canvas-workspace`
            +   * * `disable-skills`
            +   * * `enable-end-user-sharing-with-groups`
            +   * * `single-agent-orchestration`
            +   * * `multi-agent-orchestration`
            +   * * `cross-product-intelligence`
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Engine.FeatureState> + getFeaturesMap() { + return internalGetAdaptedFeaturesMap(internalGetFeatures().getMap()); + } + + /** + * + * + *
            +   * Optional. Feature config for the engine to opt in or opt out of features.
            +   * Supported keys:
            +   *
            +   * * `*`: all features, if it's present, all other feature state settings are
            +   * ignored.
            +   * * `agent-gallery`
            +   * * `no-code-agent-builder`
            +   * * `prompt-gallery`
            +   * * `model-selector`
            +   * * `notebook-lm`
            +   * * `people-search`
            +   * * `people-search-org-chart`
            +   * * `bi-directional-audio`
            +   * * `feedback`
            +   * * `session-sharing`
            +   * * `personalization-memory`
            +   * * `personalization-suggested-highlights`
            +   * * `mobile-app-access`
            +   * * `disable-agent-sharing`
            +   * * `disable-image-generation`
            +   * * `disable-video-generation`
            +   * * `disable-onedrive-upload`
            +   * * `disable-talk-to-content`
            +   * * `disable-google-drive-upload`
            +   * * `disable-welcome-emails`
            +   * * `disable-canvas`
            +   * * `disable-canvas-workspace`
            +   * * `disable-skills`
            +   * * `enable-end-user-sharing-with-groups`
            +   * * `single-agent-orchestration`
            +   * * `multi-agent-orchestration`
            +   * * `cross-product-intelligence`
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1beta.Engine.FeatureState + getFeaturesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1beta.Engine.FeatureState defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFeatures().getMap(); + return map.containsKey(key) ? featuresValueConverter.doForward(map.get(key)) : defaultValue; + } + + /** + * + * + *
            +   * Optional. Feature config for the engine to opt in or opt out of features.
            +   * Supported keys:
            +   *
            +   * * `*`: all features, if it's present, all other feature state settings are
            +   * ignored.
            +   * * `agent-gallery`
            +   * * `no-code-agent-builder`
            +   * * `prompt-gallery`
            +   * * `model-selector`
            +   * * `notebook-lm`
            +   * * `people-search`
            +   * * `people-search-org-chart`
            +   * * `bi-directional-audio`
            +   * * `feedback`
            +   * * `session-sharing`
            +   * * `personalization-memory`
            +   * * `personalization-suggested-highlights`
            +   * * `mobile-app-access`
            +   * * `disable-agent-sharing`
            +   * * `disable-image-generation`
            +   * * `disable-video-generation`
            +   * * `disable-onedrive-upload`
            +   * * `disable-talk-to-content`
            +   * * `disable-google-drive-upload`
            +   * * `disable-welcome-emails`
            +   * * `disable-canvas`
            +   * * `disable-canvas-workspace`
            +   * * `disable-skills`
            +   * * `enable-end-user-sharing-with-groups`
            +   * * `single-agent-orchestration`
            +   * * `multi-agent-orchestration`
            +   * * `cross-product-intelligence`
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.FeatureState getFeaturesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFeatures().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return featuresValueConverter.doForward(map.get(key)); + } + + /** Use {@link #getFeaturesValueMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFeaturesValue() { + return getFeaturesValueMap(); + } + + /** + * + * + *
            +   * Optional. Feature config for the engine to opt in or opt out of features.
            +   * Supported keys:
            +   *
            +   * * `*`: all features, if it's present, all other feature state settings are
            +   * ignored.
            +   * * `agent-gallery`
            +   * * `no-code-agent-builder`
            +   * * `prompt-gallery`
            +   * * `model-selector`
            +   * * `notebook-lm`
            +   * * `people-search`
            +   * * `people-search-org-chart`
            +   * * `bi-directional-audio`
            +   * * `feedback`
            +   * * `session-sharing`
            +   * * `personalization-memory`
            +   * * `personalization-suggested-highlights`
            +   * * `mobile-app-access`
            +   * * `disable-agent-sharing`
            +   * * `disable-image-generation`
            +   * * `disable-video-generation`
            +   * * `disable-onedrive-upload`
            +   * * `disable-talk-to-content`
            +   * * `disable-google-drive-upload`
            +   * * `disable-welcome-emails`
            +   * * `disable-canvas`
            +   * * `disable-canvas-workspace`
            +   * * `disable-skills`
            +   * * `enable-end-user-sharing-with-groups`
            +   * * `single-agent-orchestration`
            +   * * `multi-agent-orchestration`
            +   * * `cross-product-intelligence`
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getFeaturesValueMap() { + return internalGetFeatures().getMap(); + } + + /** + * + * + *
            +   * Optional. Feature config for the engine to opt in or opt out of features.
            +   * Supported keys:
            +   *
            +   * * `*`: all features, if it's present, all other feature state settings are
            +   * ignored.
            +   * * `agent-gallery`
            +   * * `no-code-agent-builder`
            +   * * `prompt-gallery`
            +   * * `model-selector`
            +   * * `notebook-lm`
            +   * * `people-search`
            +   * * `people-search-org-chart`
            +   * * `bi-directional-audio`
            +   * * `feedback`
            +   * * `session-sharing`
            +   * * `personalization-memory`
            +   * * `personalization-suggested-highlights`
            +   * * `mobile-app-access`
            +   * * `disable-agent-sharing`
            +   * * `disable-image-generation`
            +   * * `disable-video-generation`
            +   * * `disable-onedrive-upload`
            +   * * `disable-talk-to-content`
            +   * * `disable-google-drive-upload`
            +   * * `disable-welcome-emails`
            +   * * `disable-canvas`
            +   * * `disable-canvas-workspace`
            +   * * `disable-skills`
            +   * * `enable-end-user-sharing-with-groups`
            +   * * `single-agent-orchestration`
            +   * * `multi-agent-orchestration`
            +   * * `cross-product-intelligence`
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getFeaturesValueOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFeatures().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Optional. Feature config for the engine to opt in or opt out of features.
            +   * Supported keys:
            +   *
            +   * * `*`: all features, if it's present, all other feature state settings are
            +   * ignored.
            +   * * `agent-gallery`
            +   * * `no-code-agent-builder`
            +   * * `prompt-gallery`
            +   * * `model-selector`
            +   * * `notebook-lm`
            +   * * `people-search`
            +   * * `people-search-org-chart`
            +   * * `bi-directional-audio`
            +   * * `feedback`
            +   * * `session-sharing`
            +   * * `personalization-memory`
            +   * * `personalization-suggested-highlights`
            +   * * `mobile-app-access`
            +   * * `disable-agent-sharing`
            +   * * `disable-image-generation`
            +   * * `disable-video-generation`
            +   * * `disable-onedrive-upload`
            +   * * `disable-talk-to-content`
            +   * * `disable-google-drive-upload`
            +   * * `disable-welcome-emails`
            +   * * `disable-canvas`
            +   * * `disable-canvas-workspace`
            +   * * `disable-skills`
            +   * * `enable-end-user-sharing-with-groups`
            +   * * `single-agent-orchestration`
            +   * * `multi-agent-orchestration`
            +   * * `cross-product-intelligence`
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getFeaturesValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFeatures().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CMEK_CONFIG_FIELD_NUMBER = 32; + private com.google.cloud.discoveryengine.v1beta.CmekConfig cmekConfig_; + + /** + * + * + *
            +   * Output only. CMEK-related information for the Engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cmekConfig field is set. + */ + @java.lang.Override + public boolean hasCmekConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +   * Output only. CMEK-related information for the Engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cmekConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CmekConfig getCmekConfig() { + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance() + : cmekConfig_; + } + + /** + * + * + *
            +   * Output only. CMEK-related information for the Engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder getCmekConfigOrBuilder() { + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance() + : cmekConfig_; + } + + public static final int CONFIGURABLE_BILLING_APPROACH_FIELD_NUMBER = 36; + private int configurableBillingApproach_ = 0; + + /** + * + * + *
            +   * Optional. Configuration for configurable billing approach.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach configurable_billing_approach = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for configurableBillingApproach. + */ + @java.lang.Override + public int getConfigurableBillingApproachValue() { + return configurableBillingApproach_; + } + + /** + * + * + *
            +   * Optional. Configuration for configurable billing approach.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach configurable_billing_approach = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The configurableBillingApproach. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach + getConfigurableBillingApproach() { + com.google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach result = + com.google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach.forNumber( + configurableBillingApproach_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach.UNRECOGNIZED + : result; + } + + public static final int MODEL_CONFIGS_FIELD_NUMBER = 37; + + private static final class ModelConfigsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_ModelConfigsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.ENUM, + com.google.cloud.discoveryengine.v1beta.Engine.ModelState.MODEL_STATE_UNSPECIFIED + .getNumber()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField modelConfigs_; + + private com.google.protobuf.MapField + internalGetModelConfigs() { + if (modelConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ModelConfigsDefaultEntryHolder.defaultEntry); + } + return modelConfigs_; + } + + private static final com.google.protobuf.Internal.MapAdapter.Converter< + java.lang.Integer, com.google.cloud.discoveryengine.v1beta.Engine.ModelState> + modelConfigsValueConverter = + com.google.protobuf.Internal.MapAdapter.newEnumConverter( + com.google.cloud.discoveryengine.v1beta.Engine.ModelState.internalGetValueMap(), + com.google.cloud.discoveryengine.v1beta.Engine.ModelState.UNRECOGNIZED); + + private static final java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Engine.ModelState> + internalGetAdaptedModelConfigsMap(java.util.Map map) { + return new com.google.protobuf.Internal.MapAdapter< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.Engine.ModelState, + java.lang.Integer>(map, modelConfigsValueConverter); + } + + public int getModelConfigsCount() { + return internalGetModelConfigs().getMap().size(); + } + + /** + * + * + *
            +   * Optional. Maps a model name to its specific configuration for this engine.
            +   * This allows admin users to turn on/off individual models. This only stores
            +   * models whose states are overridden by the admin.
            +   *
            +   * When the state is unspecified, or model_configs is empty for this
            +   * model, the system will decide if this model should be available or not
            +   * based on the default configuration. For example, a preview model
            +   * should be disabled by default if the admin has not chosen to enable it.
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsModelConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetModelConfigs().getMap().containsKey(key); + } + + /** Use {@link #getModelConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getModelConfigs() { + return getModelConfigsMap(); + } + + /** + * + * + *
            +   * Optional. Maps a model name to its specific configuration for this engine.
            +   * This allows admin users to turn on/off individual models. This only stores
            +   * models whose states are overridden by the admin.
            +   *
            +   * When the state is unspecified, or model_configs is empty for this
            +   * model, the system will decide if this model should be available or not
            +   * based on the default configuration. For example, a preview model
            +   * should be disabled by default if the admin has not chosen to enable it.
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getModelConfigsMap() { + return internalGetAdaptedModelConfigsMap(internalGetModelConfigs().getMap()); + } + + /** + * + * + *
            +   * Optional. Maps a model name to its specific configuration for this engine.
            +   * This allows admin users to turn on/off individual models. This only stores
            +   * models whose states are overridden by the admin.
            +   *
            +   * When the state is unspecified, or model_configs is empty for this
            +   * model, the system will decide if this model should be available or not
            +   * based on the default configuration. For example, a preview model
            +   * should be disabled by default if the admin has not chosen to enable it.
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1beta.Engine.ModelState + getModelConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1beta.Engine.ModelState defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetModelConfigs().getMap(); + return map.containsKey(key) ? modelConfigsValueConverter.doForward(map.get(key)) : defaultValue; + } + + /** + * + * + *
            +   * Optional. Maps a model name to its specific configuration for this engine.
            +   * This allows admin users to turn on/off individual models. This only stores
            +   * models whose states are overridden by the admin.
            +   *
            +   * When the state is unspecified, or model_configs is empty for this
            +   * model, the system will decide if this model should be available or not
            +   * based on the default configuration. For example, a preview model
            +   * should be disabled by default if the admin has not chosen to enable it.
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ModelState getModelConfigsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetModelConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return modelConfigsValueConverter.doForward(map.get(key)); + } + + /** Use {@link #getModelConfigsValueMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getModelConfigsValue() { + return getModelConfigsValueMap(); + } + + /** + * + * + *
            +   * Optional. Maps a model name to its specific configuration for this engine.
            +   * This allows admin users to turn on/off individual models. This only stores
            +   * models whose states are overridden by the admin.
            +   *
            +   * When the state is unspecified, or model_configs is empty for this
            +   * model, the system will decide if this model should be available or not
            +   * based on the default configuration. For example, a preview model
            +   * should be disabled by default if the admin has not chosen to enable it.
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getModelConfigsValueMap() { + return internalGetModelConfigs().getMap(); + } + + /** + * + * + *
            +   * Optional. Maps a model name to its specific configuration for this engine.
            +   * This allows admin users to turn on/off individual models. This only stores
            +   * models whose states are overridden by the admin.
            +   *
            +   * When the state is unspecified, or model_configs is empty for this
            +   * model, the system will decide if this model should be available or not
            +   * based on the default configuration. For example, a preview model
            +   * should be disabled by default if the admin has not chosen to enable it.
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getModelConfigsValueOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetModelConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Optional. Maps a model name to its specific configuration for this engine.
            +   * This allows admin users to turn on/off individual models. This only stores
            +   * models whose states are overridden by the admin.
            +   *
            +   * When the state is unspecified, or model_configs is empty for this
            +   * model, the system will decide if this model should be available or not
            +   * based on the default configuration. For example, a preview model
            +   * should be disabled by default if the admin has not chosen to enable it.
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getModelConfigsValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetModelConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int OBSERVABILITY_CONFIG_FIELD_NUMBER = 39; + private com.google.cloud.discoveryengine.v1beta.ObservabilityConfig observabilityConfig_; + + /** + * + * + *
            +   * Optional. Observability config for the engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the observabilityConfig field is set. + */ + @java.lang.Override + public boolean hasObservabilityConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +   * Optional. Observability config for the engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The observabilityConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ObservabilityConfig getObservabilityConfig() { + return observabilityConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.getDefaultInstance() + : observabilityConfig_; + } + + /** + * + * + *
            +   * Optional. Observability config for the engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ObservabilityConfigOrBuilder + getObservabilityConfigOrBuilder() { + return observabilityConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.getDefaultInstance() + : observabilityConfig_; + } + + public static final int CONNECTOR_TENANT_INFO_FIELD_NUMBER = 42; + + private static final class ConnectorTenantInfoDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_ConnectorTenantInfoEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField connectorTenantInfo_; + + private com.google.protobuf.MapField + internalGetConnectorTenantInfo() { + if (connectorTenantInfo_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConnectorTenantInfoDefaultEntryHolder.defaultEntry); + } + return connectorTenantInfo_; + } + + public int getConnectorTenantInfoCount() { + return internalGetConnectorTenantInfo().getMap().size(); + } + + /** + * + * + *
            +   * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
            +   * tenant-specific information required for that connector. The structure of
            +   * the tenant information string is connector-dependent.
            +   * 
            + * + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsConnectorTenantInfo(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetConnectorTenantInfo().getMap().containsKey(key); + } + + /** Use {@link #getConnectorTenantInfoMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConnectorTenantInfo() { + return getConnectorTenantInfoMap(); + } + + /** + * + * + *
            +   * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
            +   * tenant-specific information required for that connector. The structure of
            +   * the tenant information string is connector-dependent.
            +   * 
            + * + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getConnectorTenantInfoMap() { + return internalGetConnectorTenantInfo().getMap(); + } + + /** + * + * + *
            +   * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
            +   * tenant-specific information required for that connector. The structure of
            +   * the tenant information string is connector-dependent.
            +   * 
            + * + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getConnectorTenantInfoOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetConnectorTenantInfo().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
            +   * tenant-specific information required for that connector. The structure of
            +   * the tenant information string is connector-dependent.
            +   * 
            + * + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getConnectorTenantInfoOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetConnectorTenantInfo().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int AGENT_GATEWAY_SETTING_FIELD_NUMBER = 43; + private com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting agentGatewaySetting_; + + /** + * + * + *
            +   * Optional. The agent gateway setting for the engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentGatewaySetting field is set. + */ + @java.lang.Override + public boolean hasAgentGatewaySetting() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +   * Optional. The agent gateway setting for the engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentGatewaySetting. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting getAgentGatewaySetting() { + return agentGatewaySetting_ == null + ? com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.getDefaultInstance() + : agentGatewaySetting_; + } + + /** + * + * + *
            +   * Optional. The agent gateway setting for the engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AgentGatewaySettingOrBuilder + getAgentGatewaySettingOrBuilder() { + return agentGatewaySetting_ == null + ? com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.getDefaultInstance() + : agentGatewaySetting_; + } + + public static final int MARKETPLACE_AGENT_VISIBILITY_FIELD_NUMBER = 44; + private int marketplaceAgentVisibility_ = 0; + + /** + * + * + *
            +   * Optional. The visibility of marketplace agents in the agent gallery.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility marketplace_agent_visibility = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for marketplaceAgentVisibility. + */ + @java.lang.Override + public int getMarketplaceAgentVisibilityValue() { + return marketplaceAgentVisibility_; + } + + /** + * + * + *
            +   * Optional. The visibility of marketplace agents in the agent gallery.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility marketplace_agent_visibility = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The marketplaceAgentVisibility. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility + getMarketplaceAgentVisibility() { + com.google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility result = + com.google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility.forNumber( + marketplaceAgentVisibility_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility.UNRECOGNIZED + : result; + } + + public static final int PROCUREMENT_CONTACT_EMAILS_FIELD_NUMBER = 45; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList procurementContactEmails_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * Optional. The emails of the procurement contacts.
            +   * 
            + * + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the procurementContactEmails. + */ + public com.google.protobuf.ProtocolStringList getProcurementContactEmailsList() { + return procurementContactEmails_; + } + + /** + * + * + *
            +   * Optional. The emails of the procurement contacts.
            +   * 
            + * + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of procurementContactEmails. + */ + public int getProcurementContactEmailsCount() { + return procurementContactEmails_.size(); + } + + /** + * + * + *
            +   * Optional. The emails of the procurement contacts.
            +   * 
            + * + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The procurementContactEmails at the given index. + */ + public java.lang.String getProcurementContactEmails(int index) { + return procurementContactEmails_.get(index); + } + + /** + * + * + *
            +   * Optional. The emails of the procurement contacts.
            +   * 
            + * + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the procurementContactEmails at the given index. + */ + public com.google.protobuf.ByteString getProcurementContactEmailsBytes(int index) { + return procurementContactEmails_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getUpdateTime()); + } + for (int i = 0; i < dataStoreIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, dataStoreIds_.getRaw(i)); + } + if (solutionType_ + != com.google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, solutionType_); + } + if (engineConfigCase_ == 11) { output.writeMessage( 11, (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) engineConfig_); } - if (engineMetadataCase_ == 12) { - output.writeMessage( - 12, (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) engineMetadata_); + if (engineMetadataCase_ == 12) { + output.writeMessage( + 12, (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) engineMetadata_); + } + if (engineConfigCase_ == 13) { + output.writeMessage( + 13, (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) engineConfig_); + } + if (engineConfigCase_ == 14) { + output.writeMessage( + 14, + (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig) + engineConfig_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(15, getCommonConfig()); + } + if (industryVertical_ + != com.google.cloud.discoveryengine.v1beta.IndustryVertical.INDUSTRY_VERTICAL_UNSPECIFIED + .getNumber()) { + output.writeEnum(16, industryVertical_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(23, getKnowledgeGraphConfig()); + } + if (appType_ + != com.google.cloud.discoveryengine.v1beta.Engine.AppType.APP_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(24, appType_); + } + if (disableAnalytics_ != false) { + output.writeBool(26, disableAnalytics_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetFeatures(), FeaturesDefaultEntryHolder.defaultEntry, 30); + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(32, getCmekConfig()); + } + if (configurableBillingApproach_ + != com.google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach + .CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED + .getNumber()) { + output.writeEnum(36, configurableBillingApproach_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetModelConfigs(), ModelConfigsDefaultEntryHolder.defaultEntry, 37); + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(39, getObservabilityConfig()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetConnectorTenantInfo(), + ConnectorTenantInfoDefaultEntryHolder.defaultEntry, + 42); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(43, getAgentGatewaySetting()); + } + if (marketplaceAgentVisibility_ + != com.google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility + .MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(44, marketplaceAgentVisibility_); + } + for (int i = 0; i < procurementContactEmails_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 45, procurementContactEmails_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + { + int dataSize = 0; + for (int i = 0; i < dataStoreIds_.size(); i++) { + dataSize += computeStringSizeNoTag(dataStoreIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getDataStoreIdsList().size(); + } + if (solutionType_ + != com.google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, solutionType_); + } + if (engineConfigCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) engineConfig_); + } + if (engineMetadataCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, + (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) engineMetadata_); + } + if (engineConfigCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, + (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) engineConfig_); + } + if (engineConfigCase_ == 14) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, + (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig) + engineConfig_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getCommonConfig()); + } + if (industryVertical_ + != com.google.cloud.discoveryengine.v1beta.IndustryVertical.INDUSTRY_VERTICAL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, industryVertical_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(23, getKnowledgeGraphConfig()); + } + if (appType_ + != com.google.cloud.discoveryengine.v1beta.Engine.AppType.APP_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(24, appType_); + } + if (disableAnalytics_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(26, disableAnalytics_); + } + for (java.util.Map.Entry entry : + internalGetFeatures().getMap().entrySet()) { + com.google.protobuf.MapEntry features__ = + FeaturesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, features__); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, getCmekConfig()); + } + if (configurableBillingApproach_ + != com.google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach + .CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(36, configurableBillingApproach_); + } + for (java.util.Map.Entry entry : + internalGetModelConfigs().getMap().entrySet()) { + com.google.protobuf.MapEntry modelConfigs__ = + ModelConfigsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, modelConfigs__); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(39, getObservabilityConfig()); + } + for (java.util.Map.Entry entry : + internalGetConnectorTenantInfo().getMap().entrySet()) { + com.google.protobuf.MapEntry connectorTenantInfo__ = + ConnectorTenantInfoDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(42, connectorTenantInfo__); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(43, getAgentGatewaySetting()); + } + if (marketplaceAgentVisibility_ + != com.google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility + .MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(44, marketplaceAgentVisibility_); + } + { + int dataSize = 0; + for (int i = 0; i < procurementContactEmails_.size(); i++) { + dataSize += computeStringSizeNoTag(procurementContactEmails_.getRaw(i)); + } + size += dataSize; + size += 2 * getProcurementContactEmailsList().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.v1beta.Engine)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Engine other = + (com.google.cloud.discoveryengine.v1beta.Engine) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) 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 (!getDataStoreIdsList().equals(other.getDataStoreIdsList())) return false; + if (solutionType_ != other.solutionType_) return false; + if (industryVertical_ != other.industryVertical_) return false; + if (hasCommonConfig() != other.hasCommonConfig()) return false; + if (hasCommonConfig()) { + if (!getCommonConfig().equals(other.getCommonConfig())) return false; + } + if (hasKnowledgeGraphConfig() != other.hasKnowledgeGraphConfig()) return false; + if (hasKnowledgeGraphConfig()) { + if (!getKnowledgeGraphConfig().equals(other.getKnowledgeGraphConfig())) return false; + } + if (appType_ != other.appType_) return false; + if (getDisableAnalytics() != other.getDisableAnalytics()) return false; + if (!internalGetFeatures().equals(other.internalGetFeatures())) return false; + if (hasCmekConfig() != other.hasCmekConfig()) return false; + if (hasCmekConfig()) { + if (!getCmekConfig().equals(other.getCmekConfig())) return false; + } + if (configurableBillingApproach_ != other.configurableBillingApproach_) return false; + if (!internalGetModelConfigs().equals(other.internalGetModelConfigs())) return false; + if (hasObservabilityConfig() != other.hasObservabilityConfig()) return false; + if (hasObservabilityConfig()) { + if (!getObservabilityConfig().equals(other.getObservabilityConfig())) return false; + } + if (!internalGetConnectorTenantInfo().equals(other.internalGetConnectorTenantInfo())) + return false; + if (hasAgentGatewaySetting() != other.hasAgentGatewaySetting()) return false; + if (hasAgentGatewaySetting()) { + if (!getAgentGatewaySetting().equals(other.getAgentGatewaySetting())) return false; + } + if (marketplaceAgentVisibility_ != other.marketplaceAgentVisibility_) return false; + if (!getProcurementContactEmailsList().equals(other.getProcurementContactEmailsList())) + return false; + if (!getEngineConfigCase().equals(other.getEngineConfigCase())) return false; + switch (engineConfigCase_) { + case 11: + if (!getChatEngineConfig().equals(other.getChatEngineConfig())) return false; + break; + case 13: + if (!getSearchEngineConfig().equals(other.getSearchEngineConfig())) return false; + break; + case 14: + if (!getMediaRecommendationEngineConfig() + .equals(other.getMediaRecommendationEngineConfig())) return false; + break; + case 0: + default: + } + if (!getEngineMetadataCase().equals(other.getEngineMetadataCase())) return false; + switch (engineMetadataCase_) { + case 12: + if (!getChatEngineMetadata().equals(other.getChatEngineMetadata())) 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(); + 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 (getDataStoreIdsCount() > 0) { + hash = (37 * hash) + DATA_STORE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getDataStoreIdsList().hashCode(); + } + hash = (37 * hash) + SOLUTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + solutionType_; + hash = (37 * hash) + INDUSTRY_VERTICAL_FIELD_NUMBER; + hash = (53 * hash) + industryVertical_; + if (hasCommonConfig()) { + hash = (37 * hash) + COMMON_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCommonConfig().hashCode(); + } + if (hasKnowledgeGraphConfig()) { + hash = (37 * hash) + KNOWLEDGE_GRAPH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getKnowledgeGraphConfig().hashCode(); + } + hash = (37 * hash) + APP_TYPE_FIELD_NUMBER; + hash = (53 * hash) + appType_; + hash = (37 * hash) + DISABLE_ANALYTICS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableAnalytics()); + if (!internalGetFeatures().getMap().isEmpty()) { + hash = (37 * hash) + FEATURES_FIELD_NUMBER; + hash = (53 * hash) + internalGetFeatures().hashCode(); + } + if (hasCmekConfig()) { + hash = (37 * hash) + CMEK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCmekConfig().hashCode(); + } + hash = (37 * hash) + CONFIGURABLE_BILLING_APPROACH_FIELD_NUMBER; + hash = (53 * hash) + configurableBillingApproach_; + if (!internalGetModelConfigs().getMap().isEmpty()) { + hash = (37 * hash) + MODEL_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetModelConfigs().hashCode(); + } + if (hasObservabilityConfig()) { + hash = (37 * hash) + OBSERVABILITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getObservabilityConfig().hashCode(); + } + if (!internalGetConnectorTenantInfo().getMap().isEmpty()) { + hash = (37 * hash) + CONNECTOR_TENANT_INFO_FIELD_NUMBER; + hash = (53 * hash) + internalGetConnectorTenantInfo().hashCode(); + } + if (hasAgentGatewaySetting()) { + hash = (37 * hash) + AGENT_GATEWAY_SETTING_FIELD_NUMBER; + hash = (53 * hash) + getAgentGatewaySetting().hashCode(); + } + hash = (37 * hash) + MARKETPLACE_AGENT_VISIBILITY_FIELD_NUMBER; + hash = (53 * hash) + marketplaceAgentVisibility_; + if (getProcurementContactEmailsCount() > 0) { + hash = (37 * hash) + PROCUREMENT_CONTACT_EMAILS_FIELD_NUMBER; + hash = (53 * hash) + getProcurementContactEmailsList().hashCode(); + } + switch (engineConfigCase_) { + case 11: + hash = (37 * hash) + CHAT_ENGINE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getChatEngineConfig().hashCode(); + break; + case 13: + hash = (37 * hash) + SEARCH_ENGINE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSearchEngineConfig().hashCode(); + break; + case 14: + hash = (37 * hash) + MEDIA_RECOMMENDATION_ENGINE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMediaRecommendationEngineConfig().hashCode(); + break; + case 0: + default: + } + switch (engineMetadataCase_) { + case 12: + hash = (37 * hash) + CHAT_ENGINE_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getChatEngineMetadata().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Engine parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine 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.v1beta.Engine parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine parseFrom( + 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.v1beta.Engine parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Engine parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.Engine prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Metadata that describes the training and serving parameters of an
            +   * [Engine][google.cloud.discoveryengine.v1beta.Engine].
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Engine) + com.google.cloud.discoveryengine.v1beta.EngineOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 30: + return internalGetFeatures(); + case 37: + return internalGetModelConfigs(); + case 42: + return internalGetConnectorTenantInfo(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 30: + return internalGetMutableFeatures(); + case 37: + return internalGetMutableModelConfigs(); + case 42: + return internalGetMutableConnectorTenantInfo(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Engine.class, + com.google.cloud.discoveryengine.v1beta.Engine.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.Engine.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetCommonConfigFieldBuilder(); + internalGetKnowledgeGraphConfigFieldBuilder(); + internalGetCmekConfigFieldBuilder(); + internalGetObservabilityConfigFieldBuilder(); + internalGetAgentGatewaySettingFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (chatEngineConfigBuilder_ != null) { + chatEngineConfigBuilder_.clear(); + } + if (searchEngineConfigBuilder_ != null) { + searchEngineConfigBuilder_.clear(); + } + if (mediaRecommendationEngineConfigBuilder_ != null) { + mediaRecommendationEngineConfigBuilder_.clear(); + } + if (chatEngineMetadataBuilder_ != null) { + chatEngineMetadataBuilder_.clear(); + } + name_ = ""; + displayName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + dataStoreIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + solutionType_ = 0; + industryVertical_ = 0; + commonConfig_ = null; + if (commonConfigBuilder_ != null) { + commonConfigBuilder_.dispose(); + commonConfigBuilder_ = null; + } + knowledgeGraphConfig_ = null; + if (knowledgeGraphConfigBuilder_ != null) { + knowledgeGraphConfigBuilder_.dispose(); + knowledgeGraphConfigBuilder_ = null; + } + appType_ = 0; + disableAnalytics_ = false; + internalGetMutableFeatures().clear(); + cmekConfig_ = null; + if (cmekConfigBuilder_ != null) { + cmekConfigBuilder_.dispose(); + cmekConfigBuilder_ = null; + } + configurableBillingApproach_ = 0; + internalGetMutableModelConfigs().clear(); + observabilityConfig_ = null; + if (observabilityConfigBuilder_ != null) { + observabilityConfigBuilder_.dispose(); + observabilityConfigBuilder_ = null; + } + internalGetMutableConnectorTenantInfo().clear(); + agentGatewaySetting_ = null; + if (agentGatewaySettingBuilder_ != null) { + agentGatewaySettingBuilder_.dispose(); + agentGatewaySettingBuilder_ = null; + } + marketplaceAgentVisibility_ = 0; + procurementContactEmails_ = com.google.protobuf.LazyStringArrayList.emptyList(); + engineConfigCase_ = 0; + engineConfig_ = null; + engineMetadataCase_ = 0; + engineMetadata_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.EngineProto + .internal_static_google_cloud_discoveryengine_v1beta_Engine_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Engine.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine build() { + com.google.cloud.discoveryengine.v1beta.Engine result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine buildPartial() { + com.google.cloud.discoveryengine.v1beta.Engine result = + new com.google.cloud.discoveryengine.v1beta.Engine(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Engine result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.displayName_ = displayName_; + } + 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.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + dataStoreIds_.makeImmutable(); + result.dataStoreIds_ = dataStoreIds_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.solutionType_ = solutionType_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.industryVertical_ = industryVertical_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.commonConfig_ = + commonConfigBuilder_ == null ? commonConfig_ : commonConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.knowledgeGraphConfig_ = + knowledgeGraphConfigBuilder_ == null + ? knowledgeGraphConfig_ + : knowledgeGraphConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.appType_ = appType_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.disableAnalytics_ = disableAnalytics_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.features_ = internalGetFeatures(); + result.features_.makeImmutable(); + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.cmekConfig_ = cmekConfigBuilder_ == null ? cmekConfig_ : cmekConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.configurableBillingApproach_ = configurableBillingApproach_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.modelConfigs_ = internalGetModelConfigs(); + result.modelConfigs_.makeImmutable(); + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.observabilityConfig_ = + observabilityConfigBuilder_ == null + ? observabilityConfig_ + : observabilityConfigBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.connectorTenantInfo_ = internalGetConnectorTenantInfo(); + result.connectorTenantInfo_.makeImmutable(); + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.agentGatewaySetting_ = + agentGatewaySettingBuilder_ == null + ? agentGatewaySetting_ + : agentGatewaySettingBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.marketplaceAgentVisibility_ = marketplaceAgentVisibility_; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + procurementContactEmails_.makeImmutable(); + result.procurementContactEmails_ = procurementContactEmails_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.Engine result) { + result.engineConfigCase_ = engineConfigCase_; + result.engineConfig_ = this.engineConfig_; + if (engineConfigCase_ == 11 && chatEngineConfigBuilder_ != null) { + result.engineConfig_ = chatEngineConfigBuilder_.build(); + } + if (engineConfigCase_ == 13 && searchEngineConfigBuilder_ != null) { + result.engineConfig_ = searchEngineConfigBuilder_.build(); + } + if (engineConfigCase_ == 14 && mediaRecommendationEngineConfigBuilder_ != null) { + result.engineConfig_ = mediaRecommendationEngineConfigBuilder_.build(); + } + result.engineMetadataCase_ = engineMetadataCase_; + result.engineMetadata_ = this.engineMetadata_; + if (engineMetadataCase_ == 12 && chatEngineMetadataBuilder_ != null) { + result.engineMetadata_ = chatEngineMetadataBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Engine) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Engine) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Engine other) { + if (other == com.google.cloud.discoveryengine.v1beta.Engine.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.dataStoreIds_.isEmpty()) { + if (dataStoreIds_.isEmpty()) { + dataStoreIds_ = other.dataStoreIds_; + bitField0_ |= 0x00000100; + } else { + ensureDataStoreIdsIsMutable(); + dataStoreIds_.addAll(other.dataStoreIds_); + } + onChanged(); + } + if (other.solutionType_ != 0) { + setSolutionTypeValue(other.getSolutionTypeValue()); + } + if (other.industryVertical_ != 0) { + setIndustryVerticalValue(other.getIndustryVerticalValue()); + } + if (other.hasCommonConfig()) { + mergeCommonConfig(other.getCommonConfig()); + } + if (other.hasKnowledgeGraphConfig()) { + mergeKnowledgeGraphConfig(other.getKnowledgeGraphConfig()); + } + if (other.appType_ != 0) { + setAppTypeValue(other.getAppTypeValue()); + } + if (other.getDisableAnalytics() != false) { + setDisableAnalytics(other.getDisableAnalytics()); + } + internalGetMutableFeatures().mergeFrom(other.internalGetFeatures()); + bitField0_ |= 0x00008000; + if (other.hasCmekConfig()) { + mergeCmekConfig(other.getCmekConfig()); + } + if (other.configurableBillingApproach_ != 0) { + setConfigurableBillingApproachValue(other.getConfigurableBillingApproachValue()); + } + internalGetMutableModelConfigs().mergeFrom(other.internalGetModelConfigs()); + bitField0_ |= 0x00040000; + if (other.hasObservabilityConfig()) { + mergeObservabilityConfig(other.getObservabilityConfig()); + } + internalGetMutableConnectorTenantInfo().mergeFrom(other.internalGetConnectorTenantInfo()); + bitField0_ |= 0x00100000; + if (other.hasAgentGatewaySetting()) { + mergeAgentGatewaySetting(other.getAgentGatewaySetting()); + } + if (other.marketplaceAgentVisibility_ != 0) { + setMarketplaceAgentVisibilityValue(other.getMarketplaceAgentVisibilityValue()); + } + if (!other.procurementContactEmails_.isEmpty()) { + if (procurementContactEmails_.isEmpty()) { + procurementContactEmails_ = other.procurementContactEmails_; + bitField0_ |= 0x00800000; + } else { + ensureProcurementContactEmailsIsMutable(); + procurementContactEmails_.addAll(other.procurementContactEmails_); + } + onChanged(); + } + switch (other.getEngineConfigCase()) { + case CHAT_ENGINE_CONFIG: + { + mergeChatEngineConfig(other.getChatEngineConfig()); + break; + } + case SEARCH_ENGINE_CONFIG: + { + mergeSearchEngineConfig(other.getSearchEngineConfig()); + break; + } + case MEDIA_RECOMMENDATION_ENGINE_CONFIG: + { + mergeMediaRecommendationEngineConfig(other.getMediaRecommendationEngineConfig()); + break; + } + case ENGINECONFIG_NOT_SET: + { + break; + } + } + switch (other.getEngineMetadataCase()) { + case CHAT_ENGINE_METADATA: + { + mergeChatEngineMetadata(other.getChatEngineMetadata()); + break; + } + case ENGINEMETADATA_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_ |= 0x00000010; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDataStoreIdsIsMutable(); + dataStoreIds_.add(s); + break; + } // case 42 + case 48: + { + solutionType_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 48 + case 90: + { + input.readMessage( + internalGetChatEngineConfigFieldBuilder().getBuilder(), extensionRegistry); + engineConfigCase_ = 11; + break; + } // case 90 + case 98: + { + input.readMessage( + internalGetChatEngineMetadataFieldBuilder().getBuilder(), extensionRegistry); + engineMetadataCase_ = 12; + break; + } // case 98 + case 106: + { + input.readMessage( + internalGetSearchEngineConfigFieldBuilder().getBuilder(), extensionRegistry); + engineConfigCase_ = 13; + break; + } // case 106 + case 114: + { + input.readMessage( + internalGetMediaRecommendationEngineConfigFieldBuilder().getBuilder(), + extensionRegistry); + engineConfigCase_ = 14; + break; + } // case 114 + case 122: + { + input.readMessage( + internalGetCommonConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 122 + case 128: + { + industryVertical_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 128 + case 186: + { + input.readMessage( + internalGetKnowledgeGraphConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 186 + case 192: + { + appType_ = input.readEnum(); + bitField0_ |= 0x00002000; + break; + } // case 192 + case 208: + { + disableAnalytics_ = input.readBool(); + bitField0_ |= 0x00004000; + break; + } // case 208 + case 242: + { + com.google.protobuf.MapEntry features__ = + input.readMessage( + FeaturesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableFeatures() + .getMutableMap() + .put(features__.getKey(), features__.getValue()); + bitField0_ |= 0x00008000; + break; + } // case 242 + case 258: + { + input.readMessage( + internalGetCmekConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 258 + case 288: + { + configurableBillingApproach_ = input.readEnum(); + bitField0_ |= 0x00020000; + break; + } // case 288 + case 298: + { + com.google.protobuf.MapEntry modelConfigs__ = + input.readMessage( + ModelConfigsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableModelConfigs() + .getMutableMap() + .put(modelConfigs__.getKey(), modelConfigs__.getValue()); + bitField0_ |= 0x00040000; + break; + } // case 298 + case 314: + { + input.readMessage( + internalGetObservabilityConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 314 + case 338: + { + com.google.protobuf.MapEntry + connectorTenantInfo__ = + input.readMessage( + ConnectorTenantInfoDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableConnectorTenantInfo() + .getMutableMap() + .put(connectorTenantInfo__.getKey(), connectorTenantInfo__.getValue()); + bitField0_ |= 0x00100000; + break; + } // case 338 + case 346: + { + input.readMessage( + internalGetAgentGatewaySettingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 346 + case 352: + { + marketplaceAgentVisibility_ = input.readEnum(); + bitField0_ |= 0x00400000; + break; + } // case 352 + case 362: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureProcurementContactEmailsIsMutable(); + procurementContactEmails_.add(s); + break; + } // case 362 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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 engineConfigCase_ = 0; + private java.lang.Object engineConfig_; + + public EngineConfigCase getEngineConfigCase() { + return EngineConfigCase.forNumber(engineConfigCase_); + } + + public Builder clearEngineConfig() { + engineConfigCase_ = 0; + engineConfig_ = null; + onChanged(); + return this; + } + + private int engineMetadataCase_ = 0; + private java.lang.Object engineMetadata_; + + public EngineMetadataCase getEngineMetadataCase() { + return EngineMetadataCase.forNumber(engineMetadataCase_); + } + + public Builder clearEngineMetadata() { + engineMetadataCase_ = 0; + engineMetadata_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfigOrBuilder> + chatEngineConfigBuilder_; + + /** + * + * + *
            +     * Configurations for the Chat Engine. Only applicable if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + * + * @return Whether the chatEngineConfig field is set. + */ + @java.lang.Override + public boolean hasChatEngineConfig() { + return engineConfigCase_ == 11; + } + + /** + * + * + *
            +     * Configurations for the Chat Engine. Only applicable if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + * + * @return The chatEngineConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig getChatEngineConfig() { + if (chatEngineConfigBuilder_ == null) { + if (engineConfigCase_ == 11) { + return (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) engineConfig_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.getDefaultInstance(); + } else { + if (engineConfigCase_ == 11) { + return chatEngineConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Configurations for the Chat Engine. Only applicable if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + */ + public Builder setChatEngineConfig( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig value) { + if (chatEngineConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + engineConfig_ = value; + onChanged(); + } else { + chatEngineConfigBuilder_.setMessage(value); + } + engineConfigCase_ = 11; + return this; + } + + /** + * + * + *
            +     * Configurations for the Chat Engine. Only applicable if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + */ + public Builder setChatEngineConfig( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.Builder builderForValue) { + if (chatEngineConfigBuilder_ == null) { + engineConfig_ = builderForValue.build(); + onChanged(); + } else { + chatEngineConfigBuilder_.setMessage(builderForValue.build()); + } + engineConfigCase_ = 11; + return this; + } + + /** + * + * + *
            +     * Configurations for the Chat Engine. Only applicable if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + */ + public Builder mergeChatEngineConfig( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig value) { + if (chatEngineConfigBuilder_ == null) { + if (engineConfigCase_ == 11 + && engineConfig_ + != com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + .getDefaultInstance()) { + engineConfig_ = + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.newBuilder( + (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) + engineConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + engineConfig_ = value; + } + onChanged(); + } else { + if (engineConfigCase_ == 11) { + chatEngineConfigBuilder_.mergeFrom(value); + } else { + chatEngineConfigBuilder_.setMessage(value); + } + } + engineConfigCase_ = 11; + return this; + } + + /** + * + * + *
            +     * Configurations for the Chat Engine. Only applicable if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + */ + public Builder clearChatEngineConfig() { + if (chatEngineConfigBuilder_ == null) { + if (engineConfigCase_ == 11) { + engineConfigCase_ = 0; + engineConfig_ = null; + onChanged(); + } + } else { + if (engineConfigCase_ == 11) { + engineConfigCase_ = 0; + engineConfig_ = null; + } + chatEngineConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Configurations for the Chat Engine. Only applicable if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + */ + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.Builder + getChatEngineConfigBuilder() { + return internalGetChatEngineConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Configurations for the Chat Engine. Only applicable if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfigOrBuilder + getChatEngineConfigOrBuilder() { + if ((engineConfigCase_ == 11) && (chatEngineConfigBuilder_ != null)) { + return chatEngineConfigBuilder_.getMessageOrBuilder(); + } else { + if (engineConfigCase_ == 11) { + return (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) engineConfig_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Configurations for the Chat Engine. Only applicable if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfigOrBuilder> + internalGetChatEngineConfigFieldBuilder() { + if (chatEngineConfigBuilder_ == null) { + if (!(engineConfigCase_ == 11)) { + engineConfig_ = + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.getDefaultInstance(); + } + chatEngineConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) engineConfig_, + getParentForChildren(), + isClean()); + engineConfig_ = null; + } + engineConfigCase_ = 11; + onChanged(); + return chatEngineConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig, + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfigOrBuilder> + searchEngineConfigBuilder_; + + /** + * + * + *
            +     * Configurations for the Search Engine. Only applicable if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * + * + * @return Whether the searchEngineConfig field is set. + */ + @java.lang.Override + public boolean hasSearchEngineConfig() { + return engineConfigCase_ == 13; + } + + /** + * + * + *
            +     * Configurations for the Search Engine. Only applicable if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * + * + * @return The searchEngineConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig + getSearchEngineConfig() { + if (searchEngineConfigBuilder_ == null) { + if (engineConfigCase_ == 13) { + return (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) engineConfig_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig + .getDefaultInstance(); + } else { + if (engineConfigCase_ == 13) { + return searchEngineConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Configurations for the Search Engine. Only applicable if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * + */ + public Builder setSearchEngineConfig( + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig value) { + if (searchEngineConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + engineConfig_ = value; + onChanged(); + } else { + searchEngineConfigBuilder_.setMessage(value); + } + engineConfigCase_ = 13; + return this; + } + + /** + * + * + *
            +     * Configurations for the Search Engine. Only applicable if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * + */ + public Builder setSearchEngineConfig( + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.Builder builderForValue) { + if (searchEngineConfigBuilder_ == null) { + engineConfig_ = builderForValue.build(); + onChanged(); + } else { + searchEngineConfigBuilder_.setMessage(builderForValue.build()); + } + engineConfigCase_ = 13; + return this; + } + + /** + * + * + *
            +     * Configurations for the Search Engine. Only applicable if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * + */ + public Builder mergeSearchEngineConfig( + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig value) { + if (searchEngineConfigBuilder_ == null) { + if (engineConfigCase_ == 13 + && engineConfig_ + != com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig + .getDefaultInstance()) { + engineConfig_ = + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.newBuilder( + (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) + engineConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + engineConfig_ = value; + } + onChanged(); + } else { + if (engineConfigCase_ == 13) { + searchEngineConfigBuilder_.mergeFrom(value); + } else { + searchEngineConfigBuilder_.setMessage(value); + } + } + engineConfigCase_ = 13; + return this; + } + + /** + * + * + *
            +     * Configurations for the Search Engine. Only applicable if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * + */ + public Builder clearSearchEngineConfig() { + if (searchEngineConfigBuilder_ == null) { + if (engineConfigCase_ == 13) { + engineConfigCase_ = 0; + engineConfig_ = null; + onChanged(); + } + } else { + if (engineConfigCase_ == 13) { + engineConfigCase_ = 0; + engineConfig_ = null; + } + searchEngineConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Configurations for the Search Engine. Only applicable if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * + */ + public com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.Builder + getSearchEngineConfigBuilder() { + return internalGetSearchEngineConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Configurations for the Search Engine. Only applicable if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfigOrBuilder + getSearchEngineConfigOrBuilder() { + if ((engineConfigCase_ == 13) && (searchEngineConfigBuilder_ != null)) { + return searchEngineConfigBuilder_.getMessageOrBuilder(); + } else { + if (engineConfigCase_ == 13) { + return (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) engineConfig_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Configurations for the Search Engine. Only applicable if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig, + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfigOrBuilder> + internalGetSearchEngineConfigFieldBuilder() { + if (searchEngineConfigBuilder_ == null) { + if (!(engineConfigCase_ == 13)) { + engineConfig_ = + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig + .getDefaultInstance(); + } + searchEngineConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig, + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) engineConfig_, + getParentForChildren(), + isClean()); + engineConfig_ = null; + } + engineConfigCase_ = 13; + onChanged(); + return searchEngineConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfigOrBuilder> + mediaRecommendationEngineConfigBuilder_; + + /** + * + * + *
            +     * Configurations for the Media Engine. Only applicable on the data
            +     * stores with
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +     * and
            +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +     * vertical.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + * + * @return Whether the mediaRecommendationEngineConfig field is set. + */ + @java.lang.Override + public boolean hasMediaRecommendationEngineConfig() { + return engineConfigCase_ == 14; + } + + /** + * + * + *
            +     * Configurations for the Media Engine. Only applicable on the data
            +     * stores with
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +     * and
            +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +     * vertical.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + * + * @return The mediaRecommendationEngineConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + getMediaRecommendationEngineConfig() { + if (mediaRecommendationEngineConfigBuilder_ == null) { + if (engineConfigCase_ == 14) { + return (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig) + engineConfig_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .getDefaultInstance(); + } else { + if (engineConfigCase_ == 14) { + return mediaRecommendationEngineConfigBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Configurations for the Media Engine. Only applicable on the data
            +     * stores with
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +     * and
            +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +     * vertical.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + */ + public Builder setMediaRecommendationEngineConfig( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig value) { + if (mediaRecommendationEngineConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + engineConfig_ = value; + onChanged(); + } else { + mediaRecommendationEngineConfigBuilder_.setMessage(value); + } + engineConfigCase_ = 14; + return this; + } + + /** + * + * + *
            +     * Configurations for the Media Engine. Only applicable on the data
            +     * stores with
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +     * and
            +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +     * vertical.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + */ + public Builder setMediaRecommendationEngineConfig( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.Builder + builderForValue) { + if (mediaRecommendationEngineConfigBuilder_ == null) { + engineConfig_ = builderForValue.build(); + onChanged(); + } else { + mediaRecommendationEngineConfigBuilder_.setMessage(builderForValue.build()); + } + engineConfigCase_ = 14; + return this; + } + + /** + * + * + *
            +     * Configurations for the Media Engine. Only applicable on the data
            +     * stores with
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +     * and
            +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +     * vertical.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + */ + public Builder mergeMediaRecommendationEngineConfig( + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig value) { + if (mediaRecommendationEngineConfigBuilder_ == null) { + if (engineConfigCase_ == 14 + && engineConfig_ + != com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .getDefaultInstance()) { + engineConfig_ = + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .newBuilder( + (com.google.cloud.discoveryengine.v1beta.Engine + .MediaRecommendationEngineConfig) + engineConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + engineConfig_ = value; + } + onChanged(); + } else { + if (engineConfigCase_ == 14) { + mediaRecommendationEngineConfigBuilder_.mergeFrom(value); + } else { + mediaRecommendationEngineConfigBuilder_.setMessage(value); + } + } + engineConfigCase_ = 14; + return this; + } + + /** + * + * + *
            +     * Configurations for the Media Engine. Only applicable on the data
            +     * stores with
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +     * and
            +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +     * vertical.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + */ + public Builder clearMediaRecommendationEngineConfig() { + if (mediaRecommendationEngineConfigBuilder_ == null) { + if (engineConfigCase_ == 14) { + engineConfigCase_ = 0; + engineConfig_ = null; + onChanged(); + } + } else { + if (engineConfigCase_ == 14) { + engineConfigCase_ = 0; + engineConfig_ = null; + } + mediaRecommendationEngineConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Configurations for the Media Engine. Only applicable on the data
            +     * stores with
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +     * and
            +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +     * vertical.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + */ + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.Builder + getMediaRecommendationEngineConfigBuilder() { + return internalGetMediaRecommendationEngineConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Configurations for the Media Engine. Only applicable on the data
            +     * stores with
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +     * and
            +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +     * vertical.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfigOrBuilder + getMediaRecommendationEngineConfigOrBuilder() { + if ((engineConfigCase_ == 14) && (mediaRecommendationEngineConfigBuilder_ != null)) { + return mediaRecommendationEngineConfigBuilder_.getMessageOrBuilder(); + } else { + if (engineConfigCase_ == 14) { + return (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig) + engineConfig_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Configurations for the Media Engine. Only applicable on the data
            +     * stores with
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +     * and
            +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +     * vertical.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfigOrBuilder> + internalGetMediaRecommendationEngineConfigFieldBuilder() { + if (mediaRecommendationEngineConfigBuilder_ == null) { + if (!(engineConfigCase_ == 14)) { + engineConfig_ = + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .getDefaultInstance(); + } + mediaRecommendationEngineConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig, + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + .Builder, + com.google.cloud.discoveryengine.v1beta.Engine + .MediaRecommendationEngineConfigOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig) + engineConfig_, + getParentForChildren(), + isClean()); + engineConfig_ = null; + } + engineConfigCase_ = 14; + onChanged(); + return mediaRecommendationEngineConfigBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadataOrBuilder> + chatEngineMetadataBuilder_; + + /** + * + * + *
            +     * Output only. Additional information of the Chat Engine. Only applicable
            +     * if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the chatEngineMetadata field is set. + */ + @java.lang.Override + public boolean hasChatEngineMetadata() { + return engineMetadataCase_ == 12; + } + + /** + * + * + *
            +     * Output only. Additional information of the Chat Engine. Only applicable
            +     * if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The chatEngineMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata + getChatEngineMetadata() { + if (chatEngineMetadataBuilder_ == null) { + if (engineMetadataCase_ == 12) { + return (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) + engineMetadata_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata + .getDefaultInstance(); + } else { + if (engineMetadataCase_ == 12) { + return chatEngineMetadataBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Output only. Additional information of the Chat Engine. Only applicable
            +     * if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setChatEngineMetadata( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata value) { + if (chatEngineMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + engineMetadata_ = value; + onChanged(); + } else { + chatEngineMetadataBuilder_.setMessage(value); + } + engineMetadataCase_ = 12; + return this; + } + + /** + * + * + *
            +     * Output only. Additional information of the Chat Engine. Only applicable
            +     * if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setChatEngineMetadata( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.Builder builderForValue) { + if (chatEngineMetadataBuilder_ == null) { + engineMetadata_ = builderForValue.build(); + onChanged(); + } else { + chatEngineMetadataBuilder_.setMessage(builderForValue.build()); + } + engineMetadataCase_ = 12; + return this; } - if (engineConfigCase_ == 13) { - output.writeMessage( - 13, (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) engineConfig_); + + /** + * + * + *
            +     * Output only. Additional information of the Chat Engine. Only applicable
            +     * if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeChatEngineMetadata( + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata value) { + if (chatEngineMetadataBuilder_ == null) { + if (engineMetadataCase_ == 12 + && engineMetadata_ + != com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata + .getDefaultInstance()) { + engineMetadata_ = + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.newBuilder( + (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) + engineMetadata_) + .mergeFrom(value) + .buildPartial(); + } else { + engineMetadata_ = value; + } + onChanged(); + } else { + if (engineMetadataCase_ == 12) { + chatEngineMetadataBuilder_.mergeFrom(value); + } else { + chatEngineMetadataBuilder_.setMessage(value); + } + } + engineMetadataCase_ = 12; + return this; + } + + /** + * + * + *
            +     * Output only. Additional information of the Chat Engine. Only applicable
            +     * if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearChatEngineMetadata() { + if (chatEngineMetadataBuilder_ == null) { + if (engineMetadataCase_ == 12) { + engineMetadataCase_ = 0; + engineMetadata_ = null; + onChanged(); + } + } else { + if (engineMetadataCase_ == 12) { + engineMetadataCase_ = 0; + engineMetadata_ = null; + } + chatEngineMetadataBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Additional information of the Chat Engine. Only applicable
            +     * if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.Builder + getChatEngineMetadataBuilder() { + return internalGetChatEngineMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Additional information of the Chat Engine. Only applicable
            +     * if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadataOrBuilder + getChatEngineMetadataOrBuilder() { + if ((engineMetadataCase_ == 12) && (chatEngineMetadataBuilder_ != null)) { + return chatEngineMetadataBuilder_.getMessageOrBuilder(); + } else { + if (engineMetadataCase_ == 12) { + return (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) + engineMetadata_; + } + return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Output only. Additional information of the Chat Engine. Only applicable
            +     * if
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadataOrBuilder> + internalGetChatEngineMetadataFieldBuilder() { + if (chatEngineMetadataBuilder_ == null) { + if (!(engineMetadataCase_ == 12)) { + engineMetadata_ = + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata + .getDefaultInstance(); + } + chatEngineMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadataOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) engineMetadata_, + getParentForChildren(), + isClean()); + engineMetadata_ = null; + } + engineMetadataCase_ = 12; + onChanged(); + return chatEngineMetadataBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Immutable. Identifier. The fully qualified resource name of the engine.
            +     *
            +     * This field must be a UTF-8 encoded string with a length limit of 1024
            +     * characters.
            +     *
            +     * Format:
            +     * `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, (.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; + } + } + + /** + * + * + *
            +     * Immutable. Identifier. The fully qualified resource name of the engine.
            +     *
            +     * This field must be a UTF-8 encoded string with a length limit of 1024
            +     * characters.
            +     *
            +     * Format:
            +     * `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, (.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; + } } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(15, getCommonConfig()); + + /** + * + * + *
            +     * Immutable. Identifier. The fully qualified resource name of the engine.
            +     *
            +     * This field must be a UTF-8 encoded string with a length limit of 1024
            +     * characters.
            +     *
            +     * Format:
            +     * `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, (.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_ |= 0x00000010; + onChanged(); + return this; } - if (industryVertical_ - != com.google.cloud.discoveryengine.v1beta.IndustryVertical.INDUSTRY_VERTICAL_UNSPECIFIED - .getNumber()) { - output.writeEnum(16, industryVertical_); + + /** + * + * + *
            +     * Immutable. Identifier. The fully qualified resource name of the engine.
            +     *
            +     * This field must be a UTF-8 encoded string with a length limit of 1024
            +     * characters.
            +     *
            +     * Format:
            +     * `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, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; } - if (disableAnalytics_ != false) { - output.writeBool(26, disableAnalytics_); + + /** + * + * + *
            +     * Immutable. Identifier. The fully qualified resource name of the engine.
            +     *
            +     * This field must be a UTF-8 encoded string with a length limit of 1024
            +     * characters.
            +     *
            +     * Format:
            +     * `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, (.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_ |= 0x00000010; + onChanged(); + return this; } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private java.lang.Object displayName_ = ""; - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); - } - { - int dataSize = 0; - for (int i = 0; i < dataStoreIds_.size(); i++) { - dataSize += computeStringSizeNoTag(dataStoreIds_.getRaw(i)); + /** + * + * + *
            +     * Required. The display name of the engine. Should be human readable. UTF-8
            +     * encoded string with limit of 1024 characters.
            +     * 
            + * + * 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 { + return (java.lang.String) ref; } - size += dataSize; - size += 1 * getDataStoreIdsList().size(); - } - if (solutionType_ - != com.google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, solutionType_); - } - if (engineConfigCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) engineConfig_); } - if (engineMetadataCase_ == 12) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, - (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) engineMetadata_); - } - if (engineConfigCase_ == 13) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 13, - (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) engineConfig_); + + /** + * + * + *
            +     * Required. The display name of the engine. Should be human readable. UTF-8
            +     * encoded string with limit of 1024 characters.
            +     * 
            + * + * 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 (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, getCommonConfig()); + + /** + * + * + *
            +     * Required. The display name of the engine. Should be human readable. UTF-8
            +     * encoded string with limit of 1024 characters.
            +     * 
            + * + * 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(); + } + displayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; } - if (industryVertical_ - != com.google.cloud.discoveryengine.v1beta.IndustryVertical.INDUSTRY_VERTICAL_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(16, industryVertical_); + + /** + * + * + *
            +     * Required. The display name of the engine. Should be human readable. UTF-8
            +     * encoded string with limit of 1024 characters.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; } - if (disableAnalytics_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(26, disableAnalytics_); + + /** + * + * + *
            +     * Required. The display name of the engine. Should be human readable. UTF-8
            +     * encoded string with limit of 1024 characters.
            +     * 
            + * + * 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(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; } - 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.v1beta.Engine)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.Engine other = - (com.google.cloud.discoveryengine.v1beta.Engine) obj; + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) 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 (!getDataStoreIdsList().equals(other.getDataStoreIdsList())) return false; - if (solutionType_ != other.solutionType_) return false; - if (industryVertical_ != other.industryVertical_) return false; - if (hasCommonConfig() != other.hasCommonConfig()) return false; - if (hasCommonConfig()) { - if (!getCommonConfig().equals(other.getCommonConfig())) return false; + /** + * + * + *
            +     * Output only. Timestamp the Recommendation Engine was created at.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); } - if (getDisableAnalytics() != other.getDisableAnalytics()) return false; - if (!getEngineConfigCase().equals(other.getEngineConfigCase())) return false; - switch (engineConfigCase_) { - case 11: - if (!getChatEngineConfig().equals(other.getChatEngineConfig())) return false; - break; - case 13: - if (!getSearchEngineConfig().equals(other.getSearchEngineConfig())) return false; - break; - case 0: - default: + + /** + * + * + *
            +     * Output only. Timestamp the Recommendation Engine was created at.
            +     * 
            + * + * + * .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(); + } } - if (!getEngineMetadataCase().equals(other.getEngineMetadataCase())) return false; - switch (engineMetadataCase_) { - case 12: - if (!getChatEngineMetadata().equals(other.getChatEngineMetadata())) return false; - break; - case 0: - default: + + /** + * + * + *
            +     * Output only. Timestamp the Recommendation Engine was created at.
            +     * 
            + * + * + * .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_ |= 0x00000040; + onChanged(); + return this; } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + /** + * + * + *
            +     * Output only. Timestamp the Recommendation Engine was created at.
            +     * 
            + * + * + * .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_ |= 0x00000040; + onChanged(); + return this; } - 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(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); + + /** + * + * + *
            +     * Output only. Timestamp the Recommendation Engine was created at.
            +     * 
            + * + * + * .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_ & 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; } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); + + /** + * + * + *
            +     * Output only. Timestamp the Recommendation Engine was created at.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; } - if (getDataStoreIdsCount() > 0) { - hash = (37 * hash) + DATA_STORE_IDS_FIELD_NUMBER; - hash = (53 * hash) + getDataStoreIdsList().hashCode(); + + /** + * + * + *
            +     * Output only. Timestamp the Recommendation Engine was created at.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); } - hash = (37 * hash) + SOLUTION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + solutionType_; - hash = (37 * hash) + INDUSTRY_VERTICAL_FIELD_NUMBER; - hash = (53 * hash) + industryVertical_; - if (hasCommonConfig()) { - hash = (37 * hash) + COMMON_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getCommonConfig().hashCode(); + + /** + * + * + *
            +     * Output only. Timestamp the Recommendation Engine was created at.
            +     * 
            + * + * + * .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_; + } } - 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; - hash = (53 * hash) + getChatEngineConfig().hashCode(); - break; - case 13: - hash = (37 * hash) + SEARCH_ENGINE_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getSearchEngineConfig().hashCode(); - break; - case 0: - default: + + /** + * + * + *
            +     * Output only. Timestamp the Recommendation Engine was created at.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; } - switch (engineMetadataCase_) { - case 12: - hash = (37 * hash) + CHAT_ENGINE_METADATA_FIELD_NUMBER; - hash = (53 * hash) + getChatEngineMetadata().hashCode(); - break; - case 0: - default: + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. Timestamp the Recommendation Engine was last 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_ & 0x00000080) != 0); } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.discoveryengine.v1beta.Engine parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +     * Output only. Timestamp the Recommendation Engine was last 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(); + } + } - public static com.google.cloud.discoveryengine.v1beta.Engine parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +     * Output only. Timestamp the Recommendation Engine was last 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_ |= 0x00000080; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Engine parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +     * Output only. Timestamp the Recommendation Engine was last 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_ |= 0x00000080; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Engine parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +     * Output only. Timestamp the Recommendation Engine was last 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_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Engine parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +     * Output only. Timestamp the Recommendation Engine was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.Engine parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +     * Output only. Timestamp the Recommendation Engine was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Timestamp the Recommendation Engine was last 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_; + } + } - public static com.google.cloud.discoveryengine.v1beta.Engine parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +     * Output only. Timestamp the Recommendation Engine was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } - public static com.google.cloud.discoveryengine.v1beta.Engine parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + private com.google.protobuf.LazyStringArrayList dataStoreIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - public static com.google.cloud.discoveryengine.v1beta.Engine parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + private void ensureDataStoreIdsIsMutable() { + if (!dataStoreIds_.isModifiable()) { + dataStoreIds_ = new com.google.protobuf.LazyStringArrayList(dataStoreIds_); + } + bitField0_ |= 0x00000100; + } - public static com.google.cloud.discoveryengine.v1beta.Engine parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +     * Optional. The data stores associated with this engine.
            +     *
            +     * For
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            +     * and
            +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +     * type of engines, they can only associate with at most one data store.
            +     *
            +     * If
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            +     * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            +     * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            +     * associated here.
            +     *
            +     * Note that when used in
            +     * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            +     * one DataStore id must be provided as the system will use it for necessary
            +     * initializations.
            +     * 
            + * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the dataStoreIds. + */ + public com.google.protobuf.ProtocolStringList getDataStoreIdsList() { + dataStoreIds_.makeImmutable(); + return dataStoreIds_; + } - public static com.google.cloud.discoveryengine.v1beta.Engine parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +     * Optional. The data stores associated with this engine.
            +     *
            +     * For
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            +     * and
            +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +     * type of engines, they can only associate with at most one data store.
            +     *
            +     * If
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            +     * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            +     * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            +     * associated here.
            +     *
            +     * Note that when used in
            +     * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            +     * one DataStore id must be provided as the system will use it for necessary
            +     * initializations.
            +     * 
            + * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of dataStoreIds. + */ + public int getDataStoreIdsCount() { + return dataStoreIds_.size(); + } - public static com.google.cloud.discoveryengine.v1beta.Engine parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +     * Optional. The data stores associated with this engine.
            +     *
            +     * For
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            +     * and
            +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +     * type of engines, they can only associate with at most one data store.
            +     *
            +     * If
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            +     * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            +     * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            +     * associated here.
            +     *
            +     * Note that when used in
            +     * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            +     * one DataStore id must be provided as the system will use it for necessary
            +     * initializations.
            +     * 
            + * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The dataStoreIds at the given index. + */ + public java.lang.String getDataStoreIds(int index) { + return dataStoreIds_.get(index); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + /** + * + * + *
            +     * Optional. The data stores associated with this engine.
            +     *
            +     * For
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            +     * and
            +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +     * type of engines, they can only associate with at most one data store.
            +     *
            +     * If
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            +     * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            +     * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            +     * associated here.
            +     *
            +     * Note that when used in
            +     * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            +     * one DataStore id must be provided as the system will use it for necessary
            +     * initializations.
            +     * 
            + * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the dataStoreIds at the given index. + */ + public com.google.protobuf.ByteString getDataStoreIdsBytes(int index) { + return dataStoreIds_.getByteString(index); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
            +     * Optional. The data stores associated with this engine.
            +     *
            +     * For
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            +     * and
            +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +     * type of engines, they can only associate with at most one data store.
            +     *
            +     * If
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            +     * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            +     * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            +     * associated here.
            +     *
            +     * Note that when used in
            +     * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            +     * one DataStore id must be provided as the system will use it for necessary
            +     * initializations.
            +     * 
            + * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The dataStoreIds to set. + * @return This builder for chaining. + */ + public Builder setDataStoreIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreIdsIsMutable(); + dataStoreIds_.set(index, value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } - public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.Engine prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
            +     * Optional. The data stores associated with this engine.
            +     *
            +     * For
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            +     * and
            +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +     * type of engines, they can only associate with at most one data store.
            +     *
            +     * If
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            +     * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            +     * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            +     * associated here.
            +     *
            +     * Note that when used in
            +     * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            +     * one DataStore id must be provided as the system will use it for necessary
            +     * initializations.
            +     * 
            + * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dataStoreIds to add. + * @return This builder for chaining. + */ + public Builder addDataStoreIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreIdsIsMutable(); + dataStoreIds_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
            +     * Optional. The data stores associated with this engine.
            +     *
            +     * For
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            +     * and
            +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +     * type of engines, they can only associate with at most one data store.
            +     *
            +     * If
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            +     * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            +     * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            +     * associated here.
            +     *
            +     * Note that when used in
            +     * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            +     * one DataStore id must be provided as the system will use it for necessary
            +     * initializations.
            +     * 
            + * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The dataStoreIds to add. + * @return This builder for chaining. + */ + public Builder addAllDataStoreIds(java.lang.Iterable values) { + ensureDataStoreIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStoreIds_); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
            +     * Optional. The data stores associated with this engine.
            +     *
            +     * For
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            +     * and
            +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +     * type of engines, they can only associate with at most one data store.
            +     *
            +     * If
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            +     * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            +     * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            +     * associated here.
            +     *
            +     * Note that when used in
            +     * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            +     * one DataStore id must be provided as the system will use it for necessary
            +     * initializations.
            +     * 
            + * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDataStoreIds() { + dataStoreIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + ; + onChanged(); + return this; + } - /** - * - * - *
            -   * Metadata that describes the training and serving parameters of an
            -   * [Engine][google.cloud.discoveryengine.v1beta.Engine].
            -   * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Engine} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Engine) - com.google.cloud.discoveryengine.v1beta.EngineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_descriptor; + /** + * + * + *
            +     * Optional. The data stores associated with this engine.
            +     *
            +     * For
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            +     * and
            +     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +     * type of engines, they can only associate with at most one data store.
            +     *
            +     * If
            +     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +     * is
            +     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            +     * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            +     * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            +     * associated here.
            +     *
            +     * Note that when used in
            +     * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            +     * one DataStore id must be provided as the system will use it for necessary
            +     * initializations.
            +     * 
            + * + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the dataStoreIds to add. + * @return This builder for chaining. + */ + public Builder addDataStoreIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDataStoreIdsIsMutable(); + dataStoreIds_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; } + private int solutionType_ = 0; + + /** + * + * + *
            +     * Required. The solutions of the engine.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for solutionType. + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Engine.class, - com.google.cloud.discoveryengine.v1beta.Engine.Builder.class); + public int getSolutionTypeValue() { + return solutionType_; } - // Construct using com.google.cloud.discoveryengine.v1beta.Engine.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + * + * + *
            +     * Required. The solutions of the engine.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for solutionType to set. + * @return This builder for chaining. + */ + public Builder setSolutionTypeValue(int value) { + solutionType_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * + * + *
            +     * Required. The solutions of the engine.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The solutionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SolutionType getSolutionType() { + com.google.cloud.discoveryengine.v1beta.SolutionType result = + com.google.cloud.discoveryengine.v1beta.SolutionType.forNumber(solutionType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SolutionType.UNRECOGNIZED + : result; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetCreateTimeFieldBuilder(); - internalGetUpdateTimeFieldBuilder(); - internalGetCommonConfigFieldBuilder(); + /** + * + * + *
            +     * Required. The solutions of the engine.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The solutionType to set. + * @return This builder for chaining. + */ + public Builder setSolutionType(com.google.cloud.discoveryengine.v1beta.SolutionType value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00000200; + solutionType_ = value.getNumber(); + onChanged(); + return this; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (chatEngineConfigBuilder_ != null) { - chatEngineConfigBuilder_.clear(); - } - if (searchEngineConfigBuilder_ != null) { - searchEngineConfigBuilder_.clear(); - } - if (chatEngineMetadataBuilder_ != null) { - chatEngineMetadataBuilder_.clear(); - } - name_ = ""; - displayName_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - dataStoreIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
            +     * Required. The solutions of the engine.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearSolutionType() { + bitField0_ = (bitField0_ & ~0x00000200); solutionType_ = 0; - industryVertical_ = 0; - commonConfig_ = null; - if (commonConfigBuilder_ != null) { - commonConfigBuilder_.dispose(); - commonConfigBuilder_ = null; - } - disableAnalytics_ = false; - engineConfigCase_ = 0; - engineConfig_ = null; - engineMetadataCase_ = 0; - engineMetadata_ = null; + onChanged(); return this; } + private int industryVertical_ = 0; + + /** + * + * + *
            +     * Optional. The industry vertical that the engine registers.
            +     * The restriction of the Engine industry vertical is based on
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: Vertical on
            +     * Engine has to match vertical of the DataStore linked to the engine.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for industryVertical. + */ @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.EngineProto - .internal_static_google_cloud_discoveryengine_v1beta_Engine_descriptor; + public int getIndustryVerticalValue() { + return industryVertical_; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Engine.getDefaultInstance(); + /** + * + * + *
            +     * Optional. The industry vertical that the engine registers.
            +     * The restriction of the Engine industry vertical is based on
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: Vertical on
            +     * Engine has to match vertical of the DataStore linked to the engine.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @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_ |= 0x00000400; + onChanged(); + return this; } + /** + * + * + *
            +     * Optional. The industry vertical that the engine registers.
            +     * The restriction of the Engine industry vertical is based on
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: Vertical on
            +     * Engine has to match vertical of the DataStore linked to the engine.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The industryVertical. + */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine build() { - com.google.cloud.discoveryengine.v1beta.Engine result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public com.google.cloud.discoveryengine.v1beta.IndustryVertical getIndustryVertical() { + com.google.cloud.discoveryengine.v1beta.IndustryVertical result = + com.google.cloud.discoveryengine.v1beta.IndustryVertical.forNumber(industryVertical_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.IndustryVertical.UNRECOGNIZED + : result; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine buildPartial() { - com.google.cloud.discoveryengine.v1beta.Engine result = - new com.google.cloud.discoveryengine.v1beta.Engine(this); - if (bitField0_ != 0) { - buildPartial0(result); + /** + * + * + *
            +     * Optional. The industry vertical that the engine registers.
            +     * The restriction of the Engine industry vertical is based on
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: Vertical on
            +     * Engine has to match vertical of the DataStore linked to the engine.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The industryVertical to set. + * @return This builder for chaining. + */ + public Builder setIndustryVertical( + com.google.cloud.discoveryengine.v1beta.IndustryVertical value) { + if (value == null) { + throw new NullPointerException(); } - buildPartialOneofs(result); - onBuilt(); - return result; + bitField0_ |= 0x00000400; + industryVertical_ = value.getNumber(); + onChanged(); + return this; } - private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Engine result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.displayName_ = displayName_; - } - 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)) { - dataStoreIds_.makeImmutable(); - result.dataStoreIds_ = dataStoreIds_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.solutionType_ = solutionType_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.industryVertical_ = industryVertical_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.commonConfig_ = - commonConfigBuilder_ == null ? commonConfig_ : commonConfigBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.disableAnalytics_ = disableAnalytics_; - } - result.bitField0_ |= to_bitField0_; + /** + * + * + *
            +     * Optional. The industry vertical that the engine registers.
            +     * The restriction of the Engine industry vertical is based on
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: Vertical on
            +     * Engine has to match vertical of the DataStore linked to the engine.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIndustryVertical() { + bitField0_ = (bitField0_ & ~0x00000400); + industryVertical_ = 0; + onChanged(); + return this; } - private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.Engine result) { - result.engineConfigCase_ = engineConfigCase_; - result.engineConfig_ = this.engineConfig_; - if (engineConfigCase_ == 11 && chatEngineConfigBuilder_ != null) { - result.engineConfig_ = chatEngineConfigBuilder_.build(); - } - if (engineConfigCase_ == 13 && searchEngineConfigBuilder_ != null) { - result.engineConfig_ = searchEngineConfigBuilder_.build(); - } - result.engineMetadataCase_ = engineMetadataCase_; - result.engineMetadata_ = this.engineMetadata_; - if (engineMetadataCase_ == 12 && chatEngineMetadataBuilder_ != null) { - result.engineMetadata_ = chatEngineMetadataBuilder_.build(); - } + private com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig commonConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig, + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfigOrBuilder> + commonConfigBuilder_; + + /** + * + * + *
            +     * Common config spec that specifies the metadata of the engine.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; + * + * @return Whether the commonConfig field is set. + */ + public boolean hasCommonConfig() { + return ((bitField0_ & 0x00000800) != 0); } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.Engine) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.Engine) other); + /** + * + * + *
            +     * Common config spec that specifies the metadata of the engine.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; + * + * @return The commonConfig. + */ + public com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig getCommonConfig() { + if (commonConfigBuilder_ == null) { + return commonConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.getDefaultInstance() + : commonConfig_; } else { - super.mergeFrom(other); - return this; + return commonConfigBuilder_.getMessage(); } } - public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Engine other) { - if (other == com.google.cloud.discoveryengine.v1beta.Engine.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (!other.dataStoreIds_.isEmpty()) { - if (dataStoreIds_.isEmpty()) { - dataStoreIds_ = other.dataStoreIds_; - bitField0_ |= 0x00000080; - } else { - ensureDataStoreIdsIsMutable(); - dataStoreIds_.addAll(other.dataStoreIds_); + /** + * + * + *
            +     * Common config spec that specifies the metadata of the engine.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; + */ + public Builder setCommonConfig( + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig value) { + if (commonConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - onChanged(); - } - if (other.solutionType_ != 0) { - setSolutionTypeValue(other.getSolutionTypeValue()); - } - if (other.industryVertical_ != 0) { - setIndustryVerticalValue(other.getIndustryVerticalValue()); - } - if (other.hasCommonConfig()) { - mergeCommonConfig(other.getCommonConfig()); - } - if (other.getDisableAnalytics() != false) { - setDisableAnalytics(other.getDisableAnalytics()); - } - switch (other.getEngineConfigCase()) { - case CHAT_ENGINE_CONFIG: - { - mergeChatEngineConfig(other.getChatEngineConfig()); - break; - } - case SEARCH_ENGINE_CONFIG: - { - mergeSearchEngineConfig(other.getSearchEngineConfig()); - break; - } - case ENGINECONFIG_NOT_SET: - { - break; - } - } - switch (other.getEngineMetadataCase()) { - case CHAT_ENGINE_METADATA: - { - mergeChatEngineMetadata(other.getChatEngineMetadata()); - break; - } - case ENGINEMETADATA_NOT_SET: - { - break; - } + commonConfig_ = value; + } else { + commonConfigBuilder_.setMessage(value); } - this.mergeUnknownFields(other.getUnknownFields()); + bitField0_ |= 0x00000800; onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
            +     * Common config spec that specifies the metadata of the engine.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; + */ + public Builder setCommonConfig( + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.Builder builderForValue) { + if (commonConfigBuilder_ == null) { + commonConfig_ = builderForValue.build(); + } else { + commonConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return 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(); + /** + * + * + *
            +     * Common config spec that specifies the metadata of the engine.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; + */ + public Builder mergeCommonConfig( + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig value) { + if (commonConfigBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && commonConfig_ != null + && commonConfig_ + != com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig + .getDefaultInstance()) { + getCommonConfigBuilder().mergeFrom(value); + } else { + commonConfig_ = value; + } + } else { + commonConfigBuilder_.mergeFrom(value); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDataStoreIdsIsMutable(); - dataStoreIds_.add(s); - break; - } // case 42 - case 48: - { - solutionType_ = input.readEnum(); - bitField0_ |= 0x00000100; - break; - } // case 48 - case 90: - { - input.readMessage( - internalGetChatEngineConfigFieldBuilder().getBuilder(), extensionRegistry); - engineConfigCase_ = 11; - break; - } // case 90 - case 98: - { - input.readMessage( - internalGetChatEngineMetadataFieldBuilder().getBuilder(), extensionRegistry); - engineMetadataCase_ = 12; - break; - } // case 98 - case 106: - { - input.readMessage( - internalGetSearchEngineConfigFieldBuilder().getBuilder(), extensionRegistry); - engineConfigCase_ = 13; - break; - } // case 106 - case 122: - { - input.readMessage( - internalGetCommonConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 122 - case 128: - { - industryVertical_ = input.readEnum(); - bitField0_ |= 0x00000200; - break; - } // case 128 - case 208: - { - disableAnalytics_ = input.readBool(); - bitField0_ |= 0x00000800; - break; - } // case 208 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { + if (commonConfig_ != null) { + bitField0_ |= 0x00000800; onChanged(); - } // finally + } return this; } - private int engineConfigCase_ = 0; - private java.lang.Object engineConfig_; - - public EngineConfigCase getEngineConfigCase() { - return EngineConfigCase.forNumber(engineConfigCase_); - } - - public Builder clearEngineConfig() { - engineConfigCase_ = 0; - engineConfig_ = null; + /** + * + * + *
            +     * Common config spec that specifies the metadata of the engine.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; + */ + public Builder clearCommonConfig() { + bitField0_ = (bitField0_ & ~0x00000800); + commonConfig_ = null; + if (commonConfigBuilder_ != null) { + commonConfigBuilder_.dispose(); + commonConfigBuilder_ = null; + } onChanged(); return this; } - private int engineMetadataCase_ = 0; - private java.lang.Object engineMetadata_; - - public EngineMetadataCase getEngineMetadataCase() { - return EngineMetadataCase.forNumber(engineMetadataCase_); + /** + * + * + *
            +     * Common config spec that specifies the metadata of the engine.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; + */ + public com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.Builder + getCommonConfigBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetCommonConfigFieldBuilder().getBuilder(); } - public Builder clearEngineMetadata() { - engineMetadataCase_ = 0; - engineMetadata_ = null; - onChanged(); - return this; + /** + * + * + *
            +     * Common config spec that specifies the metadata of the engine.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; + */ + public com.google.cloud.discoveryengine.v1beta.Engine.CommonConfigOrBuilder + getCommonConfigOrBuilder() { + if (commonConfigBuilder_ != null) { + return commonConfigBuilder_.getMessageOrBuilder(); + } else { + return commonConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.getDefaultInstance() + : commonConfig_; + } } - private int bitField0_; + /** + * + * + *
            +     * Common config spec that specifies the metadata of the engine.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig, + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfigOrBuilder> + internalGetCommonConfigFieldBuilder() { + if (commonConfigBuilder_ == null) { + commonConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig, + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.CommonConfigOrBuilder>( + getCommonConfig(), getParentForChildren(), isClean()); + commonConfig_ = null; + } + return commonConfigBuilder_; + } + private com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + knowledgeGraphConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.Builder, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfigOrBuilder> - chatEngineConfigBuilder_; + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig, + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfigOrBuilder> + knowledgeGraphConfigBuilder_; /** * * *
            -     * Configurations for the Chat Engine. Only applicable if
            +     * Optional. Configurations for the Knowledge Graph. Only applicable if
                  * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
                  * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the chatEngineConfig field is set. + * @return Whether the knowledgeGraphConfig field is set. */ - @java.lang.Override - public boolean hasChatEngineConfig() { - return engineConfigCase_ == 11; + public boolean hasKnowledgeGraphConfig() { + return ((bitField0_ & 0x00001000) != 0); } /** * * *
            -     * Configurations for the Chat Engine. Only applicable if
            +     * Optional. Configurations for the Knowledge Graph. Only applicable if
                  * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
                  * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The chatEngineConfig. + * @return The knowledgeGraphConfig. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig getChatEngineConfig() { - if (chatEngineConfigBuilder_ == null) { - if (engineConfigCase_ == 11) { - return (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) engineConfig_; - } - return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.getDefaultInstance(); + public com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + getKnowledgeGraphConfig() { + if (knowledgeGraphConfigBuilder_ == null) { + return knowledgeGraphConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .getDefaultInstance() + : knowledgeGraphConfig_; } else { - if (engineConfigCase_ == 11) { - return chatEngineConfigBuilder_.getMessage(); - } - return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.getDefaultInstance(); + return knowledgeGraphConfigBuilder_.getMessage(); } } @@ -6778,27 +21140,28 @@ public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig getChatEn * * *
            -     * Configurations for the Chat Engine. Only applicable if
            +     * Optional. Configurations for the Knowledge Graph. Only applicable if
                  * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
                  * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setChatEngineConfig( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig value) { - if (chatEngineConfigBuilder_ == null) { + public Builder setKnowledgeGraphConfig( + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig value) { + if (knowledgeGraphConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - engineConfig_ = value; - onChanged(); + knowledgeGraphConfig_ = value; } else { - chatEngineConfigBuilder_.setMessage(value); + knowledgeGraphConfigBuilder_.setMessage(value); } - engineConfigCase_ = 11; + bitField0_ |= 0x00001000; + onChanged(); return this; } @@ -6806,24 +21169,26 @@ public Builder setChatEngineConfig( * * *
            -     * Configurations for the Chat Engine. Only applicable if
            +     * Optional. Configurations for the Knowledge Graph. Only applicable if
                  * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
                  * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setChatEngineConfig( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.Builder builderForValue) { - if (chatEngineConfigBuilder_ == null) { - engineConfig_ = builderForValue.build(); - onChanged(); + public Builder setKnowledgeGraphConfig( + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.Builder + builderForValue) { + if (knowledgeGraphConfigBuilder_ == null) { + knowledgeGraphConfig_ = builderForValue.build(); } else { - chatEngineConfigBuilder_.setMessage(builderForValue.build()); + knowledgeGraphConfigBuilder_.setMessage(builderForValue.build()); } - engineConfigCase_ = 11; + bitField0_ |= 0x00001000; + onChanged(); return this; } @@ -6831,40 +21196,35 @@ public Builder setChatEngineConfig( * * *
            -     * Configurations for the Chat Engine. Only applicable if
            +     * Optional. Configurations for the Knowledge Graph. Only applicable if
                  * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
                  * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeChatEngineConfig( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig value) { - if (chatEngineConfigBuilder_ == null) { - if (engineConfigCase_ == 11 - && engineConfig_ - != com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig + public Builder mergeKnowledgeGraphConfig( + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig value) { + if (knowledgeGraphConfigBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && knowledgeGraphConfig_ != null + && knowledgeGraphConfig_ + != com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig .getDefaultInstance()) { - engineConfig_ = - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.newBuilder( - (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) - engineConfig_) - .mergeFrom(value) - .buildPartial(); + getKnowledgeGraphConfigBuilder().mergeFrom(value); } else { - engineConfig_ = value; + knowledgeGraphConfig_ = value; } - onChanged(); } else { - if (engineConfigCase_ == 11) { - chatEngineConfigBuilder_.mergeFrom(value); - } else { - chatEngineConfigBuilder_.setMessage(value); - } + knowledgeGraphConfigBuilder_.mergeFrom(value); + } + if (knowledgeGraphConfig_ != null) { + bitField0_ |= 0x00001000; + onChanged(); } - engineConfigCase_ = 11; return this; } @@ -6872,29 +21232,24 @@ public Builder mergeChatEngineConfig( * * *
            -     * Configurations for the Chat Engine. Only applicable if
            +     * Optional. Configurations for the Knowledge Graph. Only applicable if
                  * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
                  * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearChatEngineConfig() { - if (chatEngineConfigBuilder_ == null) { - if (engineConfigCase_ == 11) { - engineConfigCase_ = 0; - engineConfig_ = null; - onChanged(); - } - } else { - if (engineConfigCase_ == 11) { - engineConfigCase_ = 0; - engineConfig_ = null; - } - chatEngineConfigBuilder_.clear(); + public Builder clearKnowledgeGraphConfig() { + bitField0_ = (bitField0_ & ~0x00001000); + knowledgeGraphConfig_ = null; + if (knowledgeGraphConfigBuilder_ != null) { + knowledgeGraphConfigBuilder_.dispose(); + knowledgeGraphConfigBuilder_ = null; } + onChanged(); return this; } @@ -6902,43 +21257,46 @@ public Builder clearChatEngineConfig() { * * *
            -     * Configurations for the Chat Engine. Only applicable if
            +     * Optional. Configurations for the Knowledge Graph. Only applicable if
                  * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
                  * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.Builder - getChatEngineConfigBuilder() { - return internalGetChatEngineConfigFieldBuilder().getBuilder(); + public com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.Builder + getKnowledgeGraphConfigBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return internalGetKnowledgeGraphConfigFieldBuilder().getBuilder(); } /** * * *
            -     * Configurations for the Chat Engine. Only applicable if
            +     * Optional. Configurations for the Knowledge Graph. Only applicable if
                  * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
                  * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfigOrBuilder - getChatEngineConfigOrBuilder() { - if ((engineConfigCase_ == 11) && (chatEngineConfigBuilder_ != null)) { - return chatEngineConfigBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfigOrBuilder + getKnowledgeGraphConfigOrBuilder() { + if (knowledgeGraphConfigBuilder_ != null) { + return knowledgeGraphConfigBuilder_.getMessageOrBuilder(); } else { - if (engineConfigCase_ == 11) { - return (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) engineConfig_; - } - return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.getDefaultInstance(); + return knowledgeGraphConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig + .getDefaultInstance() + : knowledgeGraphConfig_; } } @@ -6946,407 +21304,731 @@ public Builder clearChatEngineConfig() { * * *
            -     * Configurations for the Chat Engine. Only applicable if
            +     * Optional. Configurations for the Knowledge Graph. Only applicable if
                  * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
                  * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig chat_engine_config = 11; + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.Builder, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfigOrBuilder> - internalGetChatEngineConfigFieldBuilder() { - if (chatEngineConfigBuilder_ == null) { - if (!(engineConfigCase_ == 11)) { - engineConfig_ = - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.getDefaultInstance(); - } - chatEngineConfigBuilder_ = + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig, + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfigOrBuilder> + internalGetKnowledgeGraphConfigFieldBuilder() { + if (knowledgeGraphConfigBuilder_ == null) { + knowledgeGraphConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.Builder, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfigOrBuilder>( - (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfig) engineConfig_, - getParentForChildren(), - isClean()); - engineConfig_ = null; + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig, + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfigOrBuilder>( + getKnowledgeGraphConfig(), getParentForChildren(), isClean()); + knowledgeGraphConfig_ = null; } - engineConfigCase_ = 11; - onChanged(); - return chatEngineConfigBuilder_; + return knowledgeGraphConfigBuilder_; } - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig, - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.Builder, - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfigOrBuilder> - searchEngineConfigBuilder_; + private int appType_ = 0; + + /** + * + * + *
            +     * Optional. Immutable. This the application type which this engine resource
            +     * represents. NOTE: this is a new concept independ of existing industry
            +     * vertical or solution type.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.AppType app_type = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for appType. + */ + @java.lang.Override + public int getAppTypeValue() { + return appType_; + } + + /** + * + * + *
            +     * Optional. Immutable. This the application type which this engine resource
            +     * represents. NOTE: this is a new concept independ of existing industry
            +     * vertical or solution type.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.AppType app_type = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for appType to set. + * @return This builder for chaining. + */ + public Builder setAppTypeValue(int value) { + appType_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } /** * * *
            -     * Configurations for the Search Engine. Only applicable if
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +     * Optional. Immutable. This the application type which this engine resource
            +     * represents. NOTE: this is a new concept independ of existing industry
            +     * vertical or solution type.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * .google.cloud.discoveryengine.v1beta.Engine.AppType app_type = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * - * @return Whether the searchEngineConfig field is set. + * @return The appType. */ @java.lang.Override - public boolean hasSearchEngineConfig() { - return engineConfigCase_ == 13; + public com.google.cloud.discoveryengine.v1beta.Engine.AppType getAppType() { + com.google.cloud.discoveryengine.v1beta.Engine.AppType result = + com.google.cloud.discoveryengine.v1beta.Engine.AppType.forNumber(appType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Engine.AppType.UNRECOGNIZED + : result; } /** * * *
            -     * Configurations for the Search Engine. Only applicable if
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +     * Optional. Immutable. This the application type which this engine resource
            +     * represents. NOTE: this is a new concept independ of existing industry
            +     * vertical or solution type.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * .google.cloud.discoveryengine.v1beta.Engine.AppType app_type = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * * - * @return The searchEngineConfig. + * @param value The appType to set. + * @return This builder for chaining. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig - getSearchEngineConfig() { - if (searchEngineConfigBuilder_ == null) { - if (engineConfigCase_ == 13) { - return (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) engineConfig_; - } - return com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig - .getDefaultInstance(); - } else { - if (engineConfigCase_ == 13) { - return searchEngineConfigBuilder_.getMessage(); - } - return com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig - .getDefaultInstance(); + public Builder setAppType(com.google.cloud.discoveryengine.v1beta.Engine.AppType value) { + if (value == null) { + throw new NullPointerException(); } + bitField0_ |= 0x00002000; + appType_ = value.getNumber(); + onChanged(); + return this; } /** * * *
            -     * Configurations for the Search Engine. Only applicable if
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +     * Optional. Immutable. This the application type which this engine resource
            +     * represents. NOTE: this is a new concept independ of existing industry
            +     * vertical or solution type.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * .google.cloud.discoveryengine.v1beta.Engine.AppType app_type = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; * + * + * @return This builder for chaining. */ - public Builder setSearchEngineConfig( - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig value) { - if (searchEngineConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - engineConfig_ = value; - onChanged(); - } else { - searchEngineConfigBuilder_.setMessage(value); - } - engineConfigCase_ = 13; + public Builder clearAppType() { + bitField0_ = (bitField0_ & ~0x00002000); + appType_ = 0; + onChanged(); return this; } + private boolean disableAnalytics_; + /** * * *
            -     * Configurations for the Search Engine. Only applicable if
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +     * 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_ |= 0x00004000; + 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_ & ~0x00004000); + disableAnalytics_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField features_; + + private com.google.protobuf.MapField + internalGetFeatures() { + if (features_ == null) { + return com.google.protobuf.MapField.emptyMapField(FeaturesDefaultEntryHolder.defaultEntry); + } + return features_; + } + + private com.google.protobuf.MapField + internalGetMutableFeatures() { + if (features_ == null) { + features_ = + com.google.protobuf.MapField.newMapField(FeaturesDefaultEntryHolder.defaultEntry); + } + if (!features_.isMutable()) { + features_ = features_.copy(); + } + bitField0_ |= 0x00008000; + onChanged(); + return features_; + } + + public int getFeaturesCount() { + return internalGetFeatures().getMap().size(); + } + + /** + * + * + *
            +     * Optional. Feature config for the engine to opt in or opt out of features.
            +     * Supported keys:
            +     *
            +     * * `*`: all features, if it's present, all other feature state settings are
            +     * ignored.
            +     * * `agent-gallery`
            +     * * `no-code-agent-builder`
            +     * * `prompt-gallery`
            +     * * `model-selector`
            +     * * `notebook-lm`
            +     * * `people-search`
            +     * * `people-search-org-chart`
            +     * * `bi-directional-audio`
            +     * * `feedback`
            +     * * `session-sharing`
            +     * * `personalization-memory`
            +     * * `personalization-suggested-highlights`
            +     * * `mobile-app-access`
            +     * * `disable-agent-sharing`
            +     * * `disable-image-generation`
            +     * * `disable-video-generation`
            +     * * `disable-onedrive-upload`
            +     * * `disable-talk-to-content`
            +     * * `disable-google-drive-upload`
            +     * * `disable-welcome-emails`
            +     * * `disable-canvas`
            +     * * `disable-canvas-workspace`
            +     * * `disable-skills`
            +     * * `enable-end-user-sharing-with-groups`
            +     * * `single-agent-orchestration`
            +     * * `multi-agent-orchestration`
            +     * * `cross-product-intelligence`
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSearchEngineConfig( - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.Builder builderForValue) { - if (searchEngineConfigBuilder_ == null) { - engineConfig_ = builderForValue.build(); - onChanged(); - } else { - searchEngineConfigBuilder_.setMessage(builderForValue.build()); + @java.lang.Override + public boolean containsFeatures(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - engineConfigCase_ = 13; - return this; + return internalGetFeatures().getMap().containsKey(key); + } + + /** Use {@link #getFeaturesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Engine.FeatureState> + getFeatures() { + return getFeaturesMap(); } /** * * *
            -     * Configurations for the Search Engine. Only applicable if
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +     * Optional. Feature config for the engine to opt in or opt out of features.
            +     * Supported keys:
            +     *
            +     * * `*`: all features, if it's present, all other feature state settings are
            +     * ignored.
            +     * * `agent-gallery`
            +     * * `no-code-agent-builder`
            +     * * `prompt-gallery`
            +     * * `model-selector`
            +     * * `notebook-lm`
            +     * * `people-search`
            +     * * `people-search-org-chart`
            +     * * `bi-directional-audio`
            +     * * `feedback`
            +     * * `session-sharing`
            +     * * `personalization-memory`
            +     * * `personalization-suggested-highlights`
            +     * * `mobile-app-access`
            +     * * `disable-agent-sharing`
            +     * * `disable-image-generation`
            +     * * `disable-video-generation`
            +     * * `disable-onedrive-upload`
            +     * * `disable-talk-to-content`
            +     * * `disable-google-drive-upload`
            +     * * `disable-welcome-emails`
            +     * * `disable-canvas`
            +     * * `disable-canvas-workspace`
            +     * * `disable-skills`
            +     * * `enable-end-user-sharing-with-groups`
            +     * * `single-agent-orchestration`
            +     * * `multi-agent-orchestration`
            +     * * `cross-product-intelligence`
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeSearchEngineConfig( - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig value) { - if (searchEngineConfigBuilder_ == null) { - if (engineConfigCase_ == 13 - && engineConfig_ - != com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig - .getDefaultInstance()) { - engineConfig_ = - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.newBuilder( - (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) - engineConfig_) - .mergeFrom(value) - .buildPartial(); - } else { - engineConfig_ = value; - } - onChanged(); - } else { - if (engineConfigCase_ == 13) { - searchEngineConfigBuilder_.mergeFrom(value); - } else { - searchEngineConfigBuilder_.setMessage(value); - } - } - engineConfigCase_ = 13; - return this; + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Engine.FeatureState> + getFeaturesMap() { + return internalGetAdaptedFeaturesMap(internalGetFeatures().getMap()); } /** * * *
            -     * Configurations for the Search Engine. Only applicable if
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +     * Optional. Feature config for the engine to opt in or opt out of features.
            +     * Supported keys:
            +     *
            +     * * `*`: all features, if it's present, all other feature state settings are
            +     * ignored.
            +     * * `agent-gallery`
            +     * * `no-code-agent-builder`
            +     * * `prompt-gallery`
            +     * * `model-selector`
            +     * * `notebook-lm`
            +     * * `people-search`
            +     * * `people-search-org-chart`
            +     * * `bi-directional-audio`
            +     * * `feedback`
            +     * * `session-sharing`
            +     * * `personalization-memory`
            +     * * `personalization-suggested-highlights`
            +     * * `mobile-app-access`
            +     * * `disable-agent-sharing`
            +     * * `disable-image-generation`
            +     * * `disable-video-generation`
            +     * * `disable-onedrive-upload`
            +     * * `disable-talk-to-content`
            +     * * `disable-google-drive-upload`
            +     * * `disable-welcome-emails`
            +     * * `disable-canvas`
            +     * * `disable-canvas-workspace`
            +     * * `disable-skills`
            +     * * `enable-end-user-sharing-with-groups`
            +     * * `single-agent-orchestration`
            +     * * `multi-agent-orchestration`
            +     * * `cross-product-intelligence`
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearSearchEngineConfig() { - if (searchEngineConfigBuilder_ == null) { - if (engineConfigCase_ == 13) { - engineConfigCase_ = 0; - engineConfig_ = null; - onChanged(); - } - } else { - if (engineConfigCase_ == 13) { - engineConfigCase_ = 0; - engineConfig_ = null; - } - searchEngineConfigBuilder_.clear(); + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1beta.Engine.FeatureState + getFeaturesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1beta.Engine.FeatureState defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - return this; + java.util.Map map = internalGetFeatures().getMap(); + return map.containsKey(key) ? featuresValueConverter.doForward(map.get(key)) : defaultValue; } /** * * *
            -     * Configurations for the Search Engine. Only applicable if
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +     * Optional. Feature config for the engine to opt in or opt out of features.
            +     * Supported keys:
            +     *
            +     * * `*`: all features, if it's present, all other feature state settings are
            +     * ignored.
            +     * * `agent-gallery`
            +     * * `no-code-agent-builder`
            +     * * `prompt-gallery`
            +     * * `model-selector`
            +     * * `notebook-lm`
            +     * * `people-search`
            +     * * `people-search-org-chart`
            +     * * `bi-directional-audio`
            +     * * `feedback`
            +     * * `session-sharing`
            +     * * `personalization-memory`
            +     * * `personalization-suggested-highlights`
            +     * * `mobile-app-access`
            +     * * `disable-agent-sharing`
            +     * * `disable-image-generation`
            +     * * `disable-video-generation`
            +     * * `disable-onedrive-upload`
            +     * * `disable-talk-to-content`
            +     * * `disable-google-drive-upload`
            +     * * `disable-welcome-emails`
            +     * * `disable-canvas`
            +     * * `disable-canvas-workspace`
            +     * * `disable-skills`
            +     * * `enable-end-user-sharing-with-groups`
            +     * * `single-agent-orchestration`
            +     * * `multi-agent-orchestration`
            +     * * `cross-product-intelligence`
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.Builder - getSearchEngineConfigBuilder() { - return internalGetSearchEngineConfigFieldBuilder().getBuilder(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.FeatureState getFeaturesOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFeatures().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return featuresValueConverter.doForward(map.get(key)); + } + + /** Use {@link #getFeaturesValueMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFeaturesValue() { + return getFeaturesValueMap(); } /** * * *
            -     * Configurations for the Search Engine. Only applicable if
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +     * Optional. Feature config for the engine to opt in or opt out of features.
            +     * Supported keys:
            +     *
            +     * * `*`: all features, if it's present, all other feature state settings are
            +     * ignored.
            +     * * `agent-gallery`
            +     * * `no-code-agent-builder`
            +     * * `prompt-gallery`
            +     * * `model-selector`
            +     * * `notebook-lm`
            +     * * `people-search`
            +     * * `people-search-org-chart`
            +     * * `bi-directional-audio`
            +     * * `feedback`
            +     * * `session-sharing`
            +     * * `personalization-memory`
            +     * * `personalization-suggested-highlights`
            +     * * `mobile-app-access`
            +     * * `disable-agent-sharing`
            +     * * `disable-image-generation`
            +     * * `disable-video-generation`
            +     * * `disable-onedrive-upload`
            +     * * `disable-talk-to-content`
            +     * * `disable-google-drive-upload`
            +     * * `disable-welcome-emails`
            +     * * `disable-canvas`
            +     * * `disable-canvas-workspace`
            +     * * `disable-skills`
            +     * * `enable-end-user-sharing-with-groups`
            +     * * `single-agent-orchestration`
            +     * * `multi-agent-orchestration`
            +     * * `cross-product-intelligence`
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfigOrBuilder - getSearchEngineConfigOrBuilder() { - if ((engineConfigCase_ == 13) && (searchEngineConfigBuilder_ != null)) { - return searchEngineConfigBuilder_.getMessageOrBuilder(); - } else { - if (engineConfigCase_ == 13) { - return (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) engineConfig_; - } - return com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig - .getDefaultInstance(); - } + public java.util.Map getFeaturesValueMap() { + return internalGetFeatures().getMap(); } /** * * *
            -     * Configurations for the Search Engine. Only applicable if
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +     * Optional. Feature config for the engine to opt in or opt out of features.
            +     * Supported keys:
            +     *
            +     * * `*`: all features, if it's present, all other feature state settings are
            +     * ignored.
            +     * * `agent-gallery`
            +     * * `no-code-agent-builder`
            +     * * `prompt-gallery`
            +     * * `model-selector`
            +     * * `notebook-lm`
            +     * * `people-search`
            +     * * `people-search-org-chart`
            +     * * `bi-directional-audio`
            +     * * `feedback`
            +     * * `session-sharing`
            +     * * `personalization-memory`
            +     * * `personalization-suggested-highlights`
            +     * * `mobile-app-access`
            +     * * `disable-agent-sharing`
            +     * * `disable-image-generation`
            +     * * `disable-video-generation`
            +     * * `disable-onedrive-upload`
            +     * * `disable-talk-to-content`
            +     * * `disable-google-drive-upload`
            +     * * `disable-welcome-emails`
            +     * * `disable-canvas`
            +     * * `disable-canvas-workspace`
            +     * * `disable-skills`
            +     * * `enable-end-user-sharing-with-groups`
            +     * * `single-agent-orchestration`
            +     * * `multi-agent-orchestration`
            +     * * `cross-product-intelligence`
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig search_engine_config = 13; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig, - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.Builder, - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfigOrBuilder> - internalGetSearchEngineConfigFieldBuilder() { - if (searchEngineConfigBuilder_ == null) { - if (!(engineConfigCase_ == 13)) { - engineConfig_ = - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig - .getDefaultInstance(); - } - searchEngineConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig, - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig.Builder, - com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfigOrBuilder>( - (com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfig) engineConfig_, - getParentForChildren(), - isClean()); - engineConfig_ = null; - } - engineConfigCase_ = 13; - onChanged(); - return searchEngineConfigBuilder_; + @java.lang.Override + public int getFeaturesValueOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFeatures().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.Builder, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadataOrBuilder> - chatEngineMetadataBuilder_; - /** * * *
            -     * Output only. Additional information of the Chat Engine. Only applicable
            -     * if
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * Optional. Feature config for the engine to opt in or opt out of features.
            +     * Supported keys:
            +     *
            +     * * `*`: all features, if it's present, all other feature state settings are
            +     * ignored.
            +     * * `agent-gallery`
            +     * * `no-code-agent-builder`
            +     * * `prompt-gallery`
            +     * * `model-selector`
            +     * * `notebook-lm`
            +     * * `people-search`
            +     * * `people-search-org-chart`
            +     * * `bi-directional-audio`
            +     * * `feedback`
            +     * * `session-sharing`
            +     * * `personalization-memory`
            +     * * `personalization-suggested-highlights`
            +     * * `mobile-app-access`
            +     * * `disable-agent-sharing`
            +     * * `disable-image-generation`
            +     * * `disable-video-generation`
            +     * * `disable-onedrive-upload`
            +     * * `disable-talk-to-content`
            +     * * `disable-google-drive-upload`
            +     * * `disable-welcome-emails`
            +     * * `disable-canvas`
            +     * * `disable-canvas-workspace`
            +     * * `disable-skills`
            +     * * `enable-end-user-sharing-with-groups`
            +     * * `single-agent-orchestration`
            +     * * `multi-agent-orchestration`
            +     * * `cross-product-intelligence`
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the chatEngineMetadata field is set. */ @java.lang.Override - public boolean hasChatEngineMetadata() { - return engineMetadataCase_ == 12; + public int getFeaturesValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFeatures().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFeatures() { + bitField0_ = (bitField0_ & ~0x00008000); + internalGetMutableFeatures().getMutableMap().clear(); + return this; } /** * * *
            -     * Output only. Additional information of the Chat Engine. Only applicable
            -     * if
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * Optional. Feature config for the engine to opt in or opt out of features.
            +     * Supported keys:
            +     *
            +     * * `*`: all features, if it's present, all other feature state settings are
            +     * ignored.
            +     * * `agent-gallery`
            +     * * `no-code-agent-builder`
            +     * * `prompt-gallery`
            +     * * `model-selector`
            +     * * `notebook-lm`
            +     * * `people-search`
            +     * * `people-search-org-chart`
            +     * * `bi-directional-audio`
            +     * * `feedback`
            +     * * `session-sharing`
            +     * * `personalization-memory`
            +     * * `personalization-suggested-highlights`
            +     * * `mobile-app-access`
            +     * * `disable-agent-sharing`
            +     * * `disable-image-generation`
            +     * * `disable-video-generation`
            +     * * `disable-onedrive-upload`
            +     * * `disable-talk-to-content`
            +     * * `disable-google-drive-upload`
            +     * * `disable-welcome-emails`
            +     * * `disable-canvas`
            +     * * `disable-canvas-workspace`
            +     * * `disable-skills`
            +     * * `enable-end-user-sharing-with-groups`
            +     * * `single-agent-orchestration`
            +     * * `multi-agent-orchestration`
            +     * * `cross-product-intelligence`
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The chatEngineMetadata. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata - getChatEngineMetadata() { - if (chatEngineMetadataBuilder_ == null) { - if (engineMetadataCase_ == 12) { - return (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) - engineMetadata_; - } - return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata - .getDefaultInstance(); - } else { - if (engineMetadataCase_ == 12) { - return chatEngineMetadataBuilder_.getMessage(); - } - return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata - .getDefaultInstance(); + public Builder removeFeatures(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } + internalGetMutableFeatures().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Engine.FeatureState> + getMutableFeatures() { + bitField0_ |= 0x00008000; + return internalGetAdaptedFeaturesMap(internalGetMutableFeatures().getMutableMap()); } /** * * *
            -     * Output only. Additional information of the Chat Engine. Only applicable
            -     * if
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * Optional. Feature config for the engine to opt in or opt out of features.
            +     * Supported keys:
            +     *
            +     * * `*`: all features, if it's present, all other feature state settings are
            +     * ignored.
            +     * * `agent-gallery`
            +     * * `no-code-agent-builder`
            +     * * `prompt-gallery`
            +     * * `model-selector`
            +     * * `notebook-lm`
            +     * * `people-search`
            +     * * `people-search-org-chart`
            +     * * `bi-directional-audio`
            +     * * `feedback`
            +     * * `session-sharing`
            +     * * `personalization-memory`
            +     * * `personalization-suggested-highlights`
            +     * * `mobile-app-access`
            +     * * `disable-agent-sharing`
            +     * * `disable-image-generation`
            +     * * `disable-video-generation`
            +     * * `disable-onedrive-upload`
            +     * * `disable-talk-to-content`
            +     * * `disable-google-drive-upload`
            +     * * `disable-welcome-emails`
            +     * * `disable-canvas`
            +     * * `disable-canvas-workspace`
            +     * * `disable-skills`
            +     * * `enable-end-user-sharing-with-groups`
            +     * * `single-agent-orchestration`
            +     * * `multi-agent-orchestration`
            +     * * `cross-product-intelligence`
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setChatEngineMetadata( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata value) { - if (chatEngineMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - engineMetadata_ = value; - onChanged(); - } else { - chatEngineMetadataBuilder_.setMessage(value); + public Builder putFeatures( + java.lang.String key, com.google.cloud.discoveryengine.v1beta.Engine.FeatureState value) { + if (key == null) { + throw new NullPointerException("map key"); } - engineMetadataCase_ = 12; + + internalGetMutableFeatures() + .getMutableMap() + .put(key, featuresValueConverter.doBackward(value)); + bitField0_ |= 0x00008000; return this; } @@ -7354,69 +22036,108 @@ public Builder setChatEngineMetadata( * * *
            -     * Output only. Additional information of the Chat Engine. Only applicable
            -     * if
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * Optional. Feature config for the engine to opt in or opt out of features.
            +     * Supported keys:
            +     *
            +     * * `*`: all features, if it's present, all other feature state settings are
            +     * ignored.
            +     * * `agent-gallery`
            +     * * `no-code-agent-builder`
            +     * * `prompt-gallery`
            +     * * `model-selector`
            +     * * `notebook-lm`
            +     * * `people-search`
            +     * * `people-search-org-chart`
            +     * * `bi-directional-audio`
            +     * * `feedback`
            +     * * `session-sharing`
            +     * * `personalization-memory`
            +     * * `personalization-suggested-highlights`
            +     * * `mobile-app-access`
            +     * * `disable-agent-sharing`
            +     * * `disable-image-generation`
            +     * * `disable-video-generation`
            +     * * `disable-onedrive-upload`
            +     * * `disable-talk-to-content`
            +     * * `disable-google-drive-upload`
            +     * * `disable-welcome-emails`
            +     * * `disable-canvas`
            +     * * `disable-canvas-workspace`
            +     * * `disable-skills`
            +     * * `enable-end-user-sharing-with-groups`
            +     * * `single-agent-orchestration`
            +     * * `multi-agent-orchestration`
            +     * * `cross-product-intelligence`
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setChatEngineMetadata( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.Builder builderForValue) { - if (chatEngineMetadataBuilder_ == null) { - engineMetadata_ = builderForValue.build(); - onChanged(); - } else { - chatEngineMetadataBuilder_.setMessage(builderForValue.build()); - } - engineMetadataCase_ = 12; + public Builder putAllFeatures( + java.util.Map + values) { + internalGetAdaptedFeaturesMap(internalGetMutableFeatures().getMutableMap()).putAll(values); + bitField0_ |= 0x00008000; return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableFeaturesValue() { + bitField0_ |= 0x00008000; + return internalGetMutableFeatures().getMutableMap(); + } + /** * * *
            -     * Output only. Additional information of the Chat Engine. Only applicable
            -     * if
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * Optional. Feature config for the engine to opt in or opt out of features.
            +     * Supported keys:
            +     *
            +     * * `*`: all features, if it's present, all other feature state settings are
            +     * ignored.
            +     * * `agent-gallery`
            +     * * `no-code-agent-builder`
            +     * * `prompt-gallery`
            +     * * `model-selector`
            +     * * `notebook-lm`
            +     * * `people-search`
            +     * * `people-search-org-chart`
            +     * * `bi-directional-audio`
            +     * * `feedback`
            +     * * `session-sharing`
            +     * * `personalization-memory`
            +     * * `personalization-suggested-highlights`
            +     * * `mobile-app-access`
            +     * * `disable-agent-sharing`
            +     * * `disable-image-generation`
            +     * * `disable-video-generation`
            +     * * `disable-onedrive-upload`
            +     * * `disable-talk-to-content`
            +     * * `disable-google-drive-upload`
            +     * * `disable-welcome-emails`
            +     * * `disable-canvas`
            +     * * `disable-canvas-workspace`
            +     * * `disable-skills`
            +     * * `enable-end-user-sharing-with-groups`
            +     * * `single-agent-orchestration`
            +     * * `multi-agent-orchestration`
            +     * * `cross-product-intelligence`
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeChatEngineMetadata( - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata value) { - if (chatEngineMetadataBuilder_ == null) { - if (engineMetadataCase_ == 12 - && engineMetadata_ - != com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata - .getDefaultInstance()) { - engineMetadata_ = - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.newBuilder( - (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) - engineMetadata_) - .mergeFrom(value) - .buildPartial(); - } else { - engineMetadata_ = value; - } - onChanged(); - } else { - if (engineMetadataCase_ == 12) { - chatEngineMetadataBuilder_.mergeFrom(value); - } else { - chatEngineMetadataBuilder_.setMessage(value); - } + public Builder putFeaturesValue(java.lang.String key, int value) { + if (key == null) { + throw new NullPointerException("map key"); } - engineMetadataCase_ = 12; + + internalGetMutableFeatures().getMutableMap().put(key, value); + bitField0_ |= 0x00008000; return this; } @@ -7424,81 +22145,94 @@ public Builder mergeChatEngineMetadata( * * *
            -     * Output only. Additional information of the Chat Engine. Only applicable
            -     * if
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * Optional. Feature config for the engine to opt in or opt out of features.
            +     * Supported keys:
            +     *
            +     * * `*`: all features, if it's present, all other feature state settings are
            +     * ignored.
            +     * * `agent-gallery`
            +     * * `no-code-agent-builder`
            +     * * `prompt-gallery`
            +     * * `model-selector`
            +     * * `notebook-lm`
            +     * * `people-search`
            +     * * `people-search-org-chart`
            +     * * `bi-directional-audio`
            +     * * `feedback`
            +     * * `session-sharing`
            +     * * `personalization-memory`
            +     * * `personalization-suggested-highlights`
            +     * * `mobile-app-access`
            +     * * `disable-agent-sharing`
            +     * * `disable-image-generation`
            +     * * `disable-video-generation`
            +     * * `disable-onedrive-upload`
            +     * * `disable-talk-to-content`
            +     * * `disable-google-drive-upload`
            +     * * `disable-welcome-emails`
            +     * * `disable-canvas`
            +     * * `disable-canvas-workspace`
            +     * * `disable-skills`
            +     * * `enable-end-user-sharing-with-groups`
            +     * * `single-agent-orchestration`
            +     * * `multi-agent-orchestration`
            +     * * `cross-product-intelligence`
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearChatEngineMetadata() { - if (chatEngineMetadataBuilder_ == null) { - if (engineMetadataCase_ == 12) { - engineMetadataCase_ = 0; - engineMetadata_ = null; - onChanged(); - } - } else { - if (engineMetadataCase_ == 12) { - engineMetadataCase_ = 0; - engineMetadata_ = null; - } - chatEngineMetadataBuilder_.clear(); - } + public Builder putAllFeaturesValue(java.util.Map values) { + internalGetMutableFeatures().getMutableMap().putAll(values); + bitField0_ |= 0x00008000; return this; } + private com.google.cloud.discoveryengine.v1beta.CmekConfig cmekConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.CmekConfig, + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder> + cmekConfigBuilder_; + /** * * *
            -     * Output only. Additional information of the Chat Engine. Only applicable
            -     * if
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * Output only. CMEK-related information for the Engine.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the cmekConfig field is set. */ - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.Builder - getChatEngineMetadataBuilder() { - return internalGetChatEngineMetadataFieldBuilder().getBuilder(); + public boolean hasCmekConfig() { + return ((bitField0_ & 0x00010000) != 0); } /** * * *
            -     * Output only. Additional information of the Chat Engine. Only applicable
            -     * if
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * Output only. CMEK-related information for the Engine.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The cmekConfig. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadataOrBuilder - getChatEngineMetadataOrBuilder() { - if ((engineMetadataCase_ == 12) && (chatEngineMetadataBuilder_ != null)) { - return chatEngineMetadataBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.CmekConfig getCmekConfig() { + if (cmekConfigBuilder_ == null) { + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance() + : cmekConfig_; } else { - if (engineMetadataCase_ == 12) { - return (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) - engineMetadata_; - } - return com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata - .getDefaultInstance(); + return cmekConfigBuilder_.getMessage(); } } @@ -7506,263 +22240,255 @@ public Builder clearChatEngineMetadata() { * * *
            -     * Output only. Additional information of the Chat Engine. Only applicable
            -     * if
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +     * Output only. CMEK-related information for the Engine.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.Builder, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadataOrBuilder> - internalGetChatEngineMetadataFieldBuilder() { - if (chatEngineMetadataBuilder_ == null) { - if (!(engineMetadataCase_ == 12)) { - engineMetadata_ = - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata - .getDefaultInstance(); + public Builder setCmekConfig(com.google.cloud.discoveryengine.v1beta.CmekConfig value) { + if (cmekConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - chatEngineMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.Builder, - com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadataOrBuilder>( - (com.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata) engineMetadata_, - getParentForChildren(), - isClean()); - engineMetadata_ = null; + cmekConfig_ = value; + } else { + cmekConfigBuilder_.setMessage(value); } - engineMetadataCase_ = 12; + bitField0_ |= 0x00010000; onChanged(); - return chatEngineMetadataBuilder_; + return this; } - private java.lang.Object name_ = ""; - /** * * *
            -     * Immutable. The fully qualified resource name of the engine.
            -     *
            -     * This field must be a UTF-8 encoded string with a length limit of 1024
            -     * characters.
            -     *
            -     * Format:
            -     * `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.
            +     * Output only. CMEK-related information for the Engine.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The name. + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 32 [(.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 Builder setCmekConfig( + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder builderForValue) { + if (cmekConfigBuilder_ == null) { + cmekConfig_ = builderForValue.build(); } else { - return (java.lang.String) ref; + cmekConfigBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00010000; + onChanged(); + return this; } /** * * *
            -     * Immutable. The fully qualified resource name of the engine.
            -     *
            -     * This field must be a UTF-8 encoded string with a length limit of 1024
            -     * characters.
            -     *
            -     * Format:
            -     * `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.
            +     * Output only. CMEK-related information for the Engine.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return The bytes for name. + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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 Builder mergeCmekConfig(com.google.cloud.discoveryengine.v1beta.CmekConfig value) { + if (cmekConfigBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) + && cmekConfig_ != null + && cmekConfig_ + != com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance()) { + getCmekConfigBuilder().mergeFrom(value); + } else { + cmekConfig_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + cmekConfigBuilder_.mergeFrom(value); + } + if (cmekConfig_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. CMEK-related information for the Engine.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCmekConfig() { + bitField0_ = (bitField0_ & ~0x00010000); + cmekConfig_ = null; + if (cmekConfigBuilder_ != null) { + cmekConfigBuilder_.dispose(); + cmekConfigBuilder_ = null; } + onChanged(); + return this; } /** * * *
            -     * Immutable. The fully qualified resource name of the engine.
            -     *
            -     * This field must be a UTF-8 encoded string with a length limit of 1024
            -     * characters.
            -     *
            -     * Format:
            -     * `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.
            +     * Output only. CMEK-related information for the Engine.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @param value The name to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000008; + public com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder getCmekConfigBuilder() { + bitField0_ |= 0x00010000; onChanged(); - return this; + return internalGetCmekConfigFieldBuilder().getBuilder(); } /** * * *
            -     * Immutable. The fully qualified resource name of the engine.
            -     *
            -     * This field must be a UTF-8 encoded string with a length limit of 1024
            -     * characters.
            -     *
            -     * Format:
            -     * `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.
            +     * Output only. CMEK-related information for the Engine.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder getCmekConfigOrBuilder() { + if (cmekConfigBuilder_ != null) { + return cmekConfigBuilder_.getMessageOrBuilder(); + } else { + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance() + : cmekConfig_; + } } /** * * *
            -     * Immutable. The fully qualified resource name of the engine.
            +     * Output only. CMEK-related information for the Engine.
            +     * 
            * - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.CmekConfig, + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder> + internalGetCmekConfigFieldBuilder() { + if (cmekConfigBuilder_ == null) { + cmekConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.CmekConfig, + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder>( + getCmekConfig(), getParentForChildren(), isClean()); + cmekConfig_ = null; + } + return cmekConfigBuilder_; + } + + private int configurableBillingApproach_ = 0; + + /** * - * Format: - * `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. + * + *
            +     * Optional. Configuration for configurable billing approach.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach configurable_billing_approach = 36 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The bytes for name to set. - * @return This builder for chaining. + * @return The enum numeric value on the wire for configurableBillingApproach. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; + @java.lang.Override + public int getConfigurableBillingApproachValue() { + return configurableBillingApproach_; } - private java.lang.Object displayName_ = ""; - /** * * *
            -     * Required. The display name of the engine. Should be human readable. UTF-8
            -     * encoded string with limit of 1024 characters.
            +     * Optional. Configuration for configurable billing approach.
                  * 
            * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach configurable_billing_approach = 36 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The displayName. + * @param value The enum numeric value on the wire for configurableBillingApproach 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 setConfigurableBillingApproachValue(int value) { + configurableBillingApproach_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; } /** * * *
            -     * Required. The display name of the engine. Should be human readable. UTF-8
            -     * encoded string with limit of 1024 characters.
            +     * Optional. Configuration for configurable billing approach.
                  * 
            * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach configurable_billing_approach = 36 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The bytes for displayName. + * @return The configurableBillingApproach. */ - 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.discoveryengine.v1beta.Engine.ConfigurableBillingApproach + getConfigurableBillingApproach() { + com.google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach result = + com.google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach.forNumber( + configurableBillingApproach_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach.UNRECOGNIZED + : result; } /** * * *
            -     * Required. The display name of the engine. Should be human readable. UTF-8
            -     * encoded string with limit of 1024 characters.
            +     * Optional. Configuration for configurable billing approach.
                  * 
            * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach configurable_billing_approach = 36 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The displayName to set. + * @param value The configurableBillingApproach to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { + public Builder setConfigurableBillingApproach( + com.google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach value) { if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00020000; + configurableBillingApproach_ = value.getNumber(); onChanged(); return this; } @@ -7771,188 +22497,331 @@ public Builder setDisplayName(java.lang.String value) { * * *
            -     * Required. The display name of the engine. Should be human readable. UTF-8
            -     * encoded string with limit of 1024 characters.
            +     * Optional. Configuration for configurable billing approach.
                  * 
            * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach configurable_billing_approach = 36 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000010); + public Builder clearConfigurableBillingApproach() { + bitField0_ = (bitField0_ & ~0x00020000); + configurableBillingApproach_ = 0; onChanged(); return this; } + private com.google.protobuf.MapField modelConfigs_; + + private com.google.protobuf.MapField + internalGetModelConfigs() { + if (modelConfigs_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ModelConfigsDefaultEntryHolder.defaultEntry); + } + return modelConfigs_; + } + + private com.google.protobuf.MapField + internalGetMutableModelConfigs() { + if (modelConfigs_ == null) { + modelConfigs_ = + com.google.protobuf.MapField.newMapField(ModelConfigsDefaultEntryHolder.defaultEntry); + } + if (!modelConfigs_.isMutable()) { + modelConfigs_ = modelConfigs_.copy(); + } + bitField0_ |= 0x00040000; + onChanged(); + return modelConfigs_; + } + + public int getModelConfigsCount() { + return internalGetModelConfigs().getMap().size(); + } + /** * * *
            -     * Required. The display name of the engine. Should be human readable. UTF-8
            -     * encoded string with limit of 1024 characters.
            +     * Optional. Maps a model name to its specific configuration for this engine.
            +     * This allows admin users to turn on/off individual models. This only stores
            +     * models whose states are overridden by the admin.
            +     *
            +     * When the state is unspecified, or model_configs is empty for this
            +     * model, the system will decide if this model should be available or not
            +     * based on the default configuration. For example, a preview model
            +     * should be disabled by default if the admin has not chosen to enable it.
                  * 
            * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public boolean containsModelConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; + return internalGetModelConfigs().getMap().containsKey(key); } - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + /** Use {@link #getModelConfigsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Engine.ModelState> + getModelConfigs() { + return getModelConfigsMap(); + } /** * * *
            -     * Output only. Timestamp the Recommendation Engine was created at.
            +     * Optional. Maps a model name to its specific configuration for this engine.
            +     * This allows admin users to turn on/off individual models. This only stores
            +     * models whose states are overridden by the admin.
            +     *
            +     * When the state is unspecified, or model_configs is empty for this
            +     * model, the system will decide if this model should be available or not
            +     * based on the default configuration. For example, a preview model
            +     * should be disabled by default if the admin has not chosen to enable it.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return Whether the createTime field is set. */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000020) != 0); + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Engine.ModelState> + getModelConfigsMap() { + return internalGetAdaptedModelConfigsMap(internalGetModelConfigs().getMap()); } /** * * *
            -     * Output only. Timestamp the Recommendation Engine was created at.
            +     * Optional. Maps a model name to its specific configuration for this engine.
            +     * This allows admin users to turn on/off individual models. This only stores
            +     * models whose states are overridden by the admin.
            +     *
            +     * When the state is unspecified, or model_configs is empty for this
            +     * model, the system will decide if this model should be available or not
            +     * based on the default configuration. For example, a preview model
            +     * should be disabled by default if the admin has not chosen to enable it.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @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(); + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1beta.Engine.ModelState + getModelConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1beta.Engine.ModelState defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } + java.util.Map map = internalGetModelConfigs().getMap(); + return map.containsKey(key) + ? modelConfigsValueConverter.doForward(map.get(key)) + : defaultValue; } /** * * *
            -     * Output only. Timestamp the Recommendation Engine was created at.
            +     * Optional. Maps a model name to its specific configuration for this engine.
            +     * This allows admin users to turn on/off individual models. This only stores
            +     * models whose states are overridden by the admin.
            +     *
            +     * When the state is unspecified, or model_configs is empty for this
            +     * model, the system will decide if this model should be available or not
            +     * based on the default configuration. For example, a preview model
            +     * should be disabled by default if the admin has not chosen to enable it.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Engine.ModelState getModelConfigsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000020; - onChanged(); - return this; + java.util.Map map = internalGetModelConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return modelConfigsValueConverter.doForward(map.get(key)); + } + + /** Use {@link #getModelConfigsValueMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getModelConfigsValue() { + return getModelConfigsValueMap(); } /** * * *
            -     * Output only. Timestamp the Recommendation Engine was created at.
            +     * Optional. Maps a model name to its specific configuration for this engine.
            +     * This allows admin users to turn on/off individual models. This only stores
            +     * models whose states are overridden by the admin.
            +     *
            +     * When the state is unspecified, or model_configs is empty for this
            +     * model, the system will decide if this model should be available or not
            +     * based on the default configuration. For example, a preview model
            +     * should be disabled by default if the admin has not chosen to enable it.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); + @java.lang.Override + public java.util.Map getModelConfigsValueMap() { + return internalGetModelConfigs().getMap(); + } + + /** + * + * + *
            +     * Optional. Maps a model name to its specific configuration for this engine.
            +     * This allows admin users to turn on/off individual models. This only stores
            +     * models whose states are overridden by the admin.
            +     *
            +     * When the state is unspecified, or model_configs is empty for this
            +     * model, the system will decide if this model should be available or not
            +     * based on the default configuration. For example, a preview model
            +     * should be disabled by default if the admin has not chosen to enable it.
            +     * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getModelConfigsValueOrDefault(java.lang.String key, int defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000020; - onChanged(); - return this; + java.util.Map map = internalGetModelConfigs().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** * * *
            -     * Output only. Timestamp the Recommendation Engine was created at.
            +     * Optional. Maps a model name to its specific configuration for this engine.
            +     * This allows admin users to turn on/off individual models. This only stores
            +     * models whose states are overridden by the admin.
            +     *
            +     * When the state is unspecified, or model_configs is empty for this
            +     * model, the system will decide if this model should be available or not
            +     * based on the default configuration. For example, a preview model
            +     * should be disabled by default if the admin has not chosen to enable it.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.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); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); + @java.lang.Override + public int getModelConfigsValueOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - if (createTime_ != null) { - bitField0_ |= 0x00000020; - onChanged(); + java.util.Map map = internalGetModelConfigs().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearModelConfigs() { + bitField0_ = (bitField0_ & ~0x00040000); + internalGetMutableModelConfigs().getMutableMap().clear(); + return this; + } + + /** + * + * + *
            +     * Optional. Maps a model name to its specific configuration for this engine.
            +     * This allows admin users to turn on/off individual models. This only stores
            +     * models whose states are overridden by the admin.
            +     *
            +     * When the state is unspecified, or model_configs is empty for this
            +     * model, the system will decide if this model should be available or not
            +     * based on the default configuration. For example, a preview model
            +     * should be disabled by default if the admin has not chosen to enable it.
            +     * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeModelConfigs(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } + internalGetMutableModelConfigs().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Engine.ModelState> + getMutableModelConfigs() { + bitField0_ |= 0x00040000; + return internalGetAdaptedModelConfigsMap(internalGetMutableModelConfigs().getMutableMap()); + } + /** * * *
            -     * Output only. Timestamp the Recommendation Engine was created at.
            +     * Optional. Maps a model name to its specific configuration for this engine.
            +     * This allows admin users to turn on/off individual models. This only stores
            +     * models whose states are overridden by the admin.
            +     *
            +     * When the state is unspecified, or model_configs is empty for this
            +     * model, the system will decide if this model should be available or not
            +     * based on the default configuration. For example, a preview model
            +     * should be disabled by default if the admin has not chosen to enable it.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000020); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public Builder putModelConfigs( + java.lang.String key, com.google.cloud.discoveryengine.v1beta.Engine.ModelState value) { + if (key == null) { + throw new NullPointerException("map key"); } - onChanged(); + + internalGetMutableModelConfigs() + .getMutableMap() + .put(key, modelConfigsValueConverter.doBackward(value)); + bitField0_ |= 0x00040000; return this; } @@ -7960,112 +22829,133 @@ public Builder clearCreateTime() { * * *
            -     * Output only. Timestamp the Recommendation Engine was created at.
            +     * Optional. Maps a model name to its specific configuration for this engine.
            +     * This allows admin users to turn on/off individual models. This only stores
            +     * models whose states are overridden by the admin.
            +     *
            +     * When the state is unspecified, or model_configs is empty for this
            +     * model, the system will decide if this model should be available or not
            +     * based on the default configuration. For example, a preview model
            +     * should be disabled by default if the admin has not chosen to enable it.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return internalGetCreateTimeFieldBuilder().getBuilder(); + public Builder putAllModelConfigs( + java.util.Map + values) { + internalGetAdaptedModelConfigsMap(internalGetMutableModelConfigs().getMutableMap()) + .putAll(values); + bitField0_ |= 0x00040000; + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableModelConfigsValue() { + bitField0_ |= 0x00040000; + return internalGetMutableModelConfigs().getMutableMap(); } /** * * *
            -     * Output only. Timestamp the Recommendation Engine was created at.
            +     * Optional. Maps a model name to its specific configuration for this engine.
            +     * This allows admin users to turn on/off individual models. This only stores
            +     * models whose states are overridden by the admin.
            +     *
            +     * When the state is unspecified, or model_configs is empty for this
            +     * model, the system will decide if this model should be available or not
            +     * based on the default configuration. For example, a preview model
            +     * should be disabled by default if the admin has not chosen to enable it.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + public Builder putModelConfigsValue(java.lang.String key, int value) { + if (key == null) { + throw new NullPointerException("map key"); } + + internalGetMutableModelConfigs().getMutableMap().put(key, value); + bitField0_ |= 0x00040000; + return this; } /** * * *
            -     * Output only. Timestamp the Recommendation Engine was created at.
            +     * Optional. Maps a model name to its specific configuration for this engine.
            +     * This allows admin users to turn on/off individual models. This only stores
            +     * models whose states are overridden by the admin.
            +     *
            +     * When the state is unspecified, or model_configs is empty for this
            +     * model, the system will decide if this model should be available or not
            +     * based on the default configuration. For example, a preview model
            +     * should be disabled by default if the admin has not chosen to enable it.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; - } - return createTimeBuilder_; + public Builder putAllModelConfigsValue( + java.util.Map values) { + internalGetMutableModelConfigs().getMutableMap().putAll(values); + bitField0_ |= 0x00040000; + return this; } - private com.google.protobuf.Timestamp updateTime_; + private com.google.cloud.discoveryengine.v1beta.ObservabilityConfig observabilityConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig, + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ObservabilityConfigOrBuilder> + observabilityConfigBuilder_; /** * * *
            -     * Output only. Timestamp the Recommendation Engine was last updated.
            +     * Optional. Observability config for the engine.
                  * 
            * * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the updateTime field is set. + * @return Whether the observabilityConfig field is set. */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000040) != 0); + public boolean hasObservabilityConfig() { + return ((bitField0_ & 0x00080000) != 0); } /** * * *
            -     * Output only. Timestamp the Recommendation Engine was last updated.
            +     * Optional. Observability config for the engine.
                  * 
            * * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The updateTime. + * @return The observabilityConfig. */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + public com.google.cloud.discoveryengine.v1beta.ObservabilityConfig getObservabilityConfig() { + if (observabilityConfigBuilder_ == null) { + return observabilityConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.getDefaultInstance() + : observabilityConfig_; } else { - return updateTimeBuilder_.getMessage(); + return observabilityConfigBuilder_.getMessage(); } } @@ -8073,23 +22963,24 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * *
            -     * Output only. Timestamp the Recommendation Engine was last updated.
            +     * Optional. Observability config for the engine.
                  * 
            * * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { + public Builder setObservabilityConfig( + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig value) { + if (observabilityConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - updateTime_ = value; + observabilityConfig_ = value; } else { - updateTimeBuilder_.setMessage(value); + observabilityConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -8098,20 +22989,21 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * *
            -     * Output only. Timestamp the Recommendation Engine was last updated.
            +     * Optional. Observability config for the engine.
                  * 
            * * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); + public Builder setObservabilityConfig( + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.Builder builderForValue) { + if (observabilityConfigBuilder_ == null) { + observabilityConfig_ = builderForValue.build(); } else { - updateTimeBuilder_.setMessage(builderForValue.build()); + observabilityConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -8120,27 +23012,30 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
            -     * Output only. Timestamp the Recommendation Engine was last updated.
            +     * Optional. Observability config for the engine.
                  * 
            * * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ - 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); + public Builder mergeObservabilityConfig( + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig value) { + if (observabilityConfigBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && observabilityConfig_ != null + && observabilityConfig_ + != com.google.cloud.discoveryengine.v1beta.ObservabilityConfig + .getDefaultInstance()) { + getObservabilityConfigBuilder().mergeFrom(value); } else { - updateTime_ = value; + observabilityConfig_ = value; } } else { - updateTimeBuilder_.mergeFrom(value); + observabilityConfigBuilder_.mergeFrom(value); } - if (updateTime_ != null) { - bitField0_ |= 0x00000040; + if (observabilityConfig_ != null) { + bitField0_ |= 0x00080000; onChanged(); } return this; @@ -8150,19 +23045,19 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * *
            -     * Output only. Timestamp the Recommendation Engine was last updated.
            +     * Optional. Observability config for the engine.
                  * 
            * * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000040); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; + public Builder clearObservabilityConfig() { + bitField0_ = (bitField0_ & ~0x00080000); + observabilityConfig_ = null; + if (observabilityConfigBuilder_ != null) { + observabilityConfigBuilder_.dispose(); + observabilityConfigBuilder_ = null; } onChanged(); return this; @@ -8172,37 +23067,39 @@ public Builder clearUpdateTime() { * * *
            -     * Output only. Timestamp the Recommendation Engine was last updated.
            +     * Optional. Observability config for the engine.
                  * 
            * * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000040; + public com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.Builder + getObservabilityConfigBuilder() { + bitField0_ |= 0x00080000; onChanged(); - return internalGetUpdateTimeFieldBuilder().getBuilder(); + return internalGetObservabilityConfigFieldBuilder().getBuilder(); } /** * * *
            -     * Output only. Timestamp the Recommendation Engine was last updated.
            +     * Optional. Observability config for the engine.
                  * 
            * * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.ObservabilityConfigOrBuilder + getObservabilityConfigOrBuilder() { + if (observabilityConfigBuilder_ != null) { + return observabilityConfigBuilder_.getMessageOrBuilder(); } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; + return observabilityConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.getDefaultInstance() + : observabilityConfig_; } } @@ -8210,219 +23107,161 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
            -     * Output only. Timestamp the Recommendation Engine was last updated.
            +     * Optional. Observability config for the engine.
                  * 
            * * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig, + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ObservabilityConfigOrBuilder> + internalGetObservabilityConfigFieldBuilder() { + if (observabilityConfigBuilder_ == null) { + observabilityConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), getParentForChildren(), isClean()); - updateTime_ = null; + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig, + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ObservabilityConfigOrBuilder>( + getObservabilityConfig(), getParentForChildren(), isClean()); + observabilityConfig_ = null; } - return updateTimeBuilder_; + return observabilityConfigBuilder_; } - private com.google.protobuf.LazyStringArrayList dataStoreIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + private com.google.protobuf.MapField connectorTenantInfo_; - private void ensureDataStoreIdsIsMutable() { - if (!dataStoreIds_.isModifiable()) { - dataStoreIds_ = new com.google.protobuf.LazyStringArrayList(dataStoreIds_); + private com.google.protobuf.MapField + internalGetConnectorTenantInfo() { + if (connectorTenantInfo_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConnectorTenantInfoDefaultEntryHolder.defaultEntry); } - bitField0_ |= 0x00000080; + return connectorTenantInfo_; } - /** - * - * - *
            -     * The data stores associated with this engine.
            -     *
            -     * For
            -     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            -     * and
            -     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            -     * type of engines, they can only associate with at most one data store.
            -     *
            -     * If
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            -     * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            -     * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            -     * associated here.
            -     *
            -     * Note that when used in
            -     * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            -     * one DataStore id must be provided as the system will use it for necessary
            -     * initializations.
            -     * 
            - * - * repeated string data_store_ids = 5; - * - * @return A list containing the dataStoreIds. - */ - public com.google.protobuf.ProtocolStringList getDataStoreIdsList() { - dataStoreIds_.makeImmutable(); - return dataStoreIds_; + private com.google.protobuf.MapField + internalGetMutableConnectorTenantInfo() { + if (connectorTenantInfo_ == null) { + connectorTenantInfo_ = + com.google.protobuf.MapField.newMapField( + ConnectorTenantInfoDefaultEntryHolder.defaultEntry); + } + if (!connectorTenantInfo_.isMutable()) { + connectorTenantInfo_ = connectorTenantInfo_.copy(); + } + bitField0_ |= 0x00100000; + onChanged(); + return connectorTenantInfo_; } - /** - * - * - *
            -     * The data stores associated with this engine.
            -     *
            -     * For
            -     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            -     * and
            -     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            -     * type of engines, they can only associate with at most one data store.
            -     *
            -     * If
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            -     * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            -     * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            -     * associated here.
            -     *
            -     * Note that when used in
            -     * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            -     * one DataStore id must be provided as the system will use it for necessary
            -     * initializations.
            -     * 
            - * - * repeated string data_store_ids = 5; - * - * @return The count of dataStoreIds. - */ - public int getDataStoreIdsCount() { - return dataStoreIds_.size(); + public int getConnectorTenantInfoCount() { + return internalGetConnectorTenantInfo().getMap().size(); } /** * * *
            -     * The data stores associated with this engine.
            -     *
            -     * For
            -     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            -     * and
            -     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            -     * type of engines, they can only associate with at most one data store.
            -     *
            -     * If
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            -     * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            -     * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            -     * associated here.
            -     *
            -     * Note that when used in
            -     * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            -     * one DataStore id must be provided as the system will use it for necessary
            -     * initializations.
            +     * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
            +     * tenant-specific information required for that connector. The structure of
            +     * the tenant information string is connector-dependent.
                  * 
            * - * repeated string data_store_ids = 5; - * - * @param index The index of the element to return. - * @return The dataStoreIds at the given index. + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public java.lang.String getDataStoreIds(int index) { - return dataStoreIds_.get(index); + @java.lang.Override + public boolean containsConnectorTenantInfo(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetConnectorTenantInfo().getMap().containsKey(key); } - /** - * - * - *
            -     * The data stores associated with this engine.
            -     *
            -     * For
            -     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            -     * and
            -     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            -     * type of engines, they can only associate with at most one data store.
            -     *
            -     * If
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            -     * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            -     * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            -     * associated here.
            +    /** Use {@link #getConnectorTenantInfoMap()} instead. */
            +    @java.lang.Override
            +    @java.lang.Deprecated
            +    public java.util.Map getConnectorTenantInfo() {
            +      return getConnectorTenantInfoMap();
            +    }
            +
            +    /**
                  *
            -     * Note that when used in
            -     * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            -     * one DataStore id must be provided as the system will use it for necessary
            -     * initializations.
            -     * 
            * - * repeated string data_store_ids = 5; + *
            +     * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
            +     * tenant-specific information required for that connector. The structure of
            +     * the tenant information string is connector-dependent.
            +     * 
            * - * @param index The index of the value to return. - * @return The bytes of the dataStoreIds at the given index. + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getDataStoreIdsBytes(int index) { - return dataStoreIds_.getByteString(index); + @java.lang.Override + public java.util.Map getConnectorTenantInfoMap() { + return internalGetConnectorTenantInfo().getMap(); } /** * * *
            -     * The data stores associated with this engine.
            +     * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
            +     * tenant-specific information required for that connector. The structure of
            +     * the tenant information string is connector-dependent.
            +     * 
            * - * For - * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH] - * and - * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION] - * type of engines, they can only associate with at most one data store. + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getConnectorTenantInfoOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetConnectorTenantInfo().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** * - * If - * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type] - * is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT], - * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the - * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be - * associated here. * - * Note that when used in - * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest], - * one DataStore id must be provided as the system will use it for necessary - * initializations. + *
            +     * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
            +     * tenant-specific information required for that connector. The structure of
            +     * the tenant information string is connector-dependent.
                  * 
            * - * repeated string data_store_ids = 5; - * - * @param index The index to set the value at. - * @param value The dataStoreIds to set. - * @return This builder for chaining. + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setDataStoreIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public java.lang.String getConnectorTenantInfoOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - ensureDataStoreIdsIsMutable(); - dataStoreIds_.set(index, value); - bitField0_ |= 0x00000080; - onChanged(); + java.util.Map map = + internalGetConnectorTenantInfo().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearConnectorTenantInfo() { + bitField0_ = (bitField0_ & ~0x00100000); + internalGetMutableConnectorTenantInfo().getMutableMap().clear(); return this; } @@ -8430,41 +23269,52 @@ public Builder setDataStoreIds(int index, java.lang.String value) { * * *
            -     * The data stores associated with this engine.
            +     * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
            +     * tenant-specific information required for that connector. The structure of
            +     * the tenant information string is connector-dependent.
            +     * 
            * - * For - * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH] - * and - * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION] - * type of engines, they can only associate with at most one data store. + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeConnectorTenantInfo(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableConnectorTenantInfo().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableConnectorTenantInfo() { + bitField0_ |= 0x00100000; + return internalGetMutableConnectorTenantInfo().getMutableMap(); + } + + /** * - * If - * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type] - * is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT], - * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the - * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be - * associated here. * - * Note that when used in - * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest], - * one DataStore id must be provided as the system will use it for necessary - * initializations. + *
            +     * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
            +     * tenant-specific information required for that connector. The structure of
            +     * the tenant information string is connector-dependent.
                  * 
            * - * repeated string data_store_ids = 5; - * - * @param value The dataStoreIds to add. - * @return This builder for chaining. + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addDataStoreIds(java.lang.String value) { + public Builder putConnectorTenantInfo(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"); } - ensureDataStoreIdsIsMutable(); - dataStoreIds_.add(value); - bitField0_ |= 0x00000080; - onChanged(); + internalGetMutableConnectorTenantInfo().getMutableMap().put(key, value); + bitField0_ |= 0x00100000; return this; } @@ -8472,75 +23322,91 @@ public Builder addDataStoreIds(java.lang.String value) { * * *
            -     * The data stores associated with this engine.
            +     * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
            +     * tenant-specific information required for that connector. The structure of
            +     * the tenant information string is connector-dependent.
            +     * 
            * - * For - * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH] - * and - * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION] - * type of engines, they can only associate with at most one data store. + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllConnectorTenantInfo( + java.util.Map values) { + internalGetMutableConnectorTenantInfo().getMutableMap().putAll(values); + bitField0_ |= 0x00100000; + return this; + } + + private com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting agentGatewaySetting_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting, + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.Builder, + com.google.cloud.discoveryengine.v1beta.AgentGatewaySettingOrBuilder> + agentGatewaySettingBuilder_; + + /** * - * If - * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type] - * is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT], - * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the - * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be - * associated here. * - * Note that when used in - * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest], - * one DataStore id must be provided as the system will use it for necessary - * initializations. + *
            +     * Optional. The agent gateway setting for the engine.
                  * 
            * - * repeated string data_store_ids = 5; + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param values The dataStoreIds to add. - * @return This builder for chaining. + * @return Whether the agentGatewaySetting field is set. */ - public Builder addAllDataStoreIds(java.lang.Iterable values) { - ensureDataStoreIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStoreIds_); - bitField0_ |= 0x00000080; - onChanged(); - return this; + public boolean hasAgentGatewaySetting() { + return ((bitField0_ & 0x00200000) != 0); } /** * * *
            -     * The data stores associated with this engine.
            +     * Optional. The agent gateway setting for the engine.
            +     * 
            * - * For - * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH] - * and - * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION] - * type of engines, they can only associate with at most one data store. + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * * - * If - * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type] - * is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT], - * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the - * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be - * associated here. + * @return The agentGatewaySetting. + */ + public com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting getAgentGatewaySetting() { + if (agentGatewaySettingBuilder_ == null) { + return agentGatewaySetting_ == null + ? com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.getDefaultInstance() + : agentGatewaySetting_; + } else { + return agentGatewaySettingBuilder_.getMessage(); + } + } + + /** * - * Note that when used in - * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest], - * one DataStore id must be provided as the system will use it for necessary - * initializations. - * * - * repeated string data_store_ids = 5; + *
            +     * Optional. The agent gateway setting for the engine.
            +     * 
            * - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearDataStoreIds() { - dataStoreIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - ; + public Builder setAgentGatewaySetting( + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting value) { + if (agentGatewaySettingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentGatewaySetting_ = value; + } else { + agentGatewaySettingBuilder_.setMessage(value); + } + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -8549,82 +23415,76 @@ public Builder clearDataStoreIds() { * * *
            -     * The data stores associated with this engine.
            -     *
            -     * For
            -     * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            -     * and
            -     * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            -     * type of engines, they can only associate with at most one data store.
            -     *
            -     * If
            -     * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            -     * is
            -     * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT],
            -     * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s in the
            -     * same [Collection][google.cloud.discoveryengine.v1beta.Collection] can be
            -     * associated here.
            -     *
            -     * Note that when used in
            -     * [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest],
            -     * one DataStore id must be provided as the system will use it for necessary
            -     * initializations.
            +     * Optional. The agent gateway setting for the engine.
                  * 
            * - * repeated string data_store_ids = 5; - * - * @param value The bytes of the dataStoreIds to add. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder addDataStoreIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setAgentGatewaySetting( + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.Builder builderForValue) { + if (agentGatewaySettingBuilder_ == null) { + agentGatewaySetting_ = builderForValue.build(); + } else { + agentGatewaySettingBuilder_.setMessage(builderForValue.build()); } - checkByteStringIsUtf8(value); - ensureDataStoreIdsIsMutable(); - dataStoreIds_.add(value); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00200000; onChanged(); return this; } - private int solutionType_ = 0; - /** * * *
            -     * Required. The solutions of the engine.
            +     * Optional. The agent gateway setting for the engine.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The enum numeric value on the wire for solutionType. */ - @java.lang.Override - public int getSolutionTypeValue() { - return solutionType_; + public Builder mergeAgentGatewaySetting( + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting value) { + if (agentGatewaySettingBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0) + && agentGatewaySetting_ != null + && agentGatewaySetting_ + != com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting + .getDefaultInstance()) { + getAgentGatewaySettingBuilder().mergeFrom(value); + } else { + agentGatewaySetting_ = value; + } + } else { + agentGatewaySettingBuilder_.mergeFrom(value); + } + if (agentGatewaySetting_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } + return this; } /** * * *
            -     * Required. The solutions of the engine.
            +     * Optional. The agent gateway setting for the engine.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The enum numeric value on the wire for solutionType to set. - * @return This builder for chaining. */ - public Builder setSolutionTypeValue(int value) { - solutionType_ = value; - bitField0_ |= 0x00000100; + public Builder clearAgentGatewaySetting() { + bitField0_ = (bitField0_ & ~0x00200000); + agentGatewaySetting_ = null; + if (agentGatewaySettingBuilder_ != null) { + agentGatewaySettingBuilder_.dispose(); + agentGatewaySettingBuilder_ = null; + } onChanged(); return this; } @@ -8633,109 +23493,107 @@ public Builder setSolutionTypeValue(int value) { * * *
            -     * Required. The solutions of the engine.
            +     * Optional. The agent gateway setting for the engine.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The solutionType. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SolutionType getSolutionType() { - com.google.cloud.discoveryengine.v1beta.SolutionType result = - com.google.cloud.discoveryengine.v1beta.SolutionType.forNumber(solutionType_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SolutionType.UNRECOGNIZED - : result; + public com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.Builder + getAgentGatewaySettingBuilder() { + bitField0_ |= 0x00200000; + onChanged(); + return internalGetAgentGatewaySettingFieldBuilder().getBuilder(); } /** * * *
            -     * Required. The solutions of the engine.
            +     * Optional. The agent gateway setting for the engine.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The solutionType to set. - * @return This builder for chaining. - */ - public Builder setSolutionType(com.google.cloud.discoveryengine.v1beta.SolutionType value) { - if (value == null) { - throw new NullPointerException(); + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + *
            + */ + public com.google.cloud.discoveryengine.v1beta.AgentGatewaySettingOrBuilder + getAgentGatewaySettingOrBuilder() { + if (agentGatewaySettingBuilder_ != null) { + return agentGatewaySettingBuilder_.getMessageOrBuilder(); + } else { + return agentGatewaySetting_ == null + ? com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.getDefaultInstance() + : agentGatewaySetting_; } - bitField0_ |= 0x00000100; - solutionType_ = value.getNumber(); - onChanged(); - return this; } /** * * *
            -     * Required. The solutions of the engine.
            +     * Optional. The agent gateway setting for the engine.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return This builder for chaining. */ - public Builder clearSolutionType() { - bitField0_ = (bitField0_ & ~0x00000100); - solutionType_ = 0; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting, + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.Builder, + com.google.cloud.discoveryengine.v1beta.AgentGatewaySettingOrBuilder> + internalGetAgentGatewaySettingFieldBuilder() { + if (agentGatewaySettingBuilder_ == null) { + agentGatewaySettingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting, + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting.Builder, + com.google.cloud.discoveryengine.v1beta.AgentGatewaySettingOrBuilder>( + getAgentGatewaySetting(), getParentForChildren(), isClean()); + agentGatewaySetting_ = null; + } + return agentGatewaySettingBuilder_; } - private int industryVertical_ = 0; + private int marketplaceAgentVisibility_ = 0; /** * * *
            -     * The industry vertical that the engine registers.
            -     * The restriction of the Engine industry vertical is based on
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: If unspecified,
            -     * default to `GENERIC`. Vertical on Engine has to match vertical of the
            -     * DataStore linked to the engine.
            +     * Optional. The visibility of marketplace agents in the agent gallery.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 16; + * + * .google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility marketplace_agent_visibility = 44 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The enum numeric value on the wire for industryVertical. + * @return The enum numeric value on the wire for marketplaceAgentVisibility. */ @java.lang.Override - public int getIndustryVerticalValue() { - return industryVertical_; + public int getMarketplaceAgentVisibilityValue() { + return marketplaceAgentVisibility_; } /** * * *
            -     * The industry vertical that the engine registers.
            -     * The restriction of the Engine industry vertical is based on
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: If unspecified,
            -     * default to `GENERIC`. Vertical on Engine has to match vertical of the
            -     * DataStore linked to the engine.
            +     * Optional. The visibility of marketplace agents in the agent gallery.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 16; + * + * .google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility marketplace_agent_visibility = 44 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The enum numeric value on the wire for industryVertical to set. + * @param value The enum numeric value on the wire for marketplaceAgentVisibility to set. * @return This builder for chaining. */ - public Builder setIndustryVerticalValue(int value) { - industryVertical_ = value; - bitField0_ |= 0x00000200; + public Builder setMarketplaceAgentVisibilityValue(int value) { + marketplaceAgentVisibility_ = value; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -8744,23 +23602,23 @@ public Builder setIndustryVerticalValue(int value) { * * *
            -     * The industry vertical that the engine registers.
            -     * The restriction of the Engine industry vertical is based on
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: If unspecified,
            -     * default to `GENERIC`. Vertical on Engine has to match vertical of the
            -     * DataStore linked to the engine.
            +     * Optional. The visibility of marketplace agents in the agent gallery.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 16; + * + * .google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility marketplace_agent_visibility = 44 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The industryVertical. + * @return The marketplaceAgentVisibility. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.IndustryVertical getIndustryVertical() { - com.google.cloud.discoveryengine.v1beta.IndustryVertical result = - com.google.cloud.discoveryengine.v1beta.IndustryVertical.forNumber(industryVertical_); + public com.google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility + getMarketplaceAgentVisibility() { + com.google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility result = + com.google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility.forNumber( + marketplaceAgentVisibility_); return result == null - ? com.google.cloud.discoveryengine.v1beta.IndustryVertical.UNRECOGNIZED + ? com.google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility.UNRECOGNIZED : result; } @@ -8768,25 +23626,23 @@ public com.google.cloud.discoveryengine.v1beta.IndustryVertical getIndustryVerti * * *
            -     * The industry vertical that the engine registers.
            -     * The restriction of the Engine industry vertical is based on
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: If unspecified,
            -     * default to `GENERIC`. Vertical on Engine has to match vertical of the
            -     * DataStore linked to the engine.
            +     * Optional. The visibility of marketplace agents in the agent gallery.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 16; + * + * .google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility marketplace_agent_visibility = 44 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The industryVertical to set. + * @param value The marketplaceAgentVisibility to set. * @return This builder for chaining. */ - public Builder setIndustryVertical( - com.google.cloud.discoveryengine.v1beta.IndustryVertical value) { + public Builder setMarketplaceAgentVisibility( + com.google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000200; - industryVertical_ = value.getNumber(); + bitField0_ |= 0x00400000; + marketplaceAgentVisibility_ = value.getNumber(); onChanged(); return this; } @@ -8795,159 +23651,126 @@ public Builder setIndustryVertical( * * *
            -     * The industry vertical that the engine registers.
            -     * The restriction of the Engine industry vertical is based on
            -     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: If unspecified,
            -     * default to `GENERIC`. Vertical on Engine has to match vertical of the
            -     * DataStore linked to the engine.
            +     * Optional. The visibility of marketplace agents in the agent gallery.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 16; + * + * .google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility marketplace_agent_visibility = 44 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ - public Builder clearIndustryVertical() { - bitField0_ = (bitField0_ & ~0x00000200); - industryVertical_ = 0; + public Builder clearMarketplaceAgentVisibility() { + bitField0_ = (bitField0_ & ~0x00400000); + marketplaceAgentVisibility_ = 0; onChanged(); return this; } - private com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig commonConfig_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig, - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.Builder, - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfigOrBuilder> - commonConfigBuilder_; + private com.google.protobuf.LazyStringArrayList procurementContactEmails_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * - * - *
            -     * Common config spec that specifies the metadata of the engine.
            -     * 
            - * - * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; - * - * @return Whether the commonConfig field is set. - */ - public boolean hasCommonConfig() { - return ((bitField0_ & 0x00000400) != 0); + private void ensureProcurementContactEmailsIsMutable() { + if (!procurementContactEmails_.isModifiable()) { + procurementContactEmails_ = + new com.google.protobuf.LazyStringArrayList(procurementContactEmails_); + } + bitField0_ |= 0x00800000; } /** * * *
            -     * Common config spec that specifies the metadata of the engine.
            +     * Optional. The emails of the procurement contacts.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The commonConfig. + * @return A list containing the procurementContactEmails. */ - public com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig getCommonConfig() { - if (commonConfigBuilder_ == null) { - return commonConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.getDefaultInstance() - : commonConfig_; - } else { - return commonConfigBuilder_.getMessage(); - } + public com.google.protobuf.ProtocolStringList getProcurementContactEmailsList() { + procurementContactEmails_.makeImmutable(); + return procurementContactEmails_; } /** * * *
            -     * Common config spec that specifies the metadata of the engine.
            +     * Optional. The emails of the procurement contacts.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of procurementContactEmails. */ - public Builder setCommonConfig( - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig value) { - if (commonConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - commonConfig_ = value; - } else { - commonConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; + public int getProcurementContactEmailsCount() { + return procurementContactEmails_.size(); } /** * * *
            -     * Common config spec that specifies the metadata of the engine.
            +     * Optional. The emails of the procurement contacts.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The procurementContactEmails at the given index. */ - public Builder setCommonConfig( - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.Builder builderForValue) { - if (commonConfigBuilder_ == null) { - commonConfig_ = builderForValue.build(); - } else { - commonConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; + public java.lang.String getProcurementContactEmails(int index) { + return procurementContactEmails_.get(index); } /** * * *
            -     * Common config spec that specifies the metadata of the engine.
            +     * Optional. The emails of the procurement contacts.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the procurementContactEmails at the given index. */ - public Builder mergeCommonConfig( - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig value) { - if (commonConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && commonConfig_ != null - && commonConfig_ - != com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig - .getDefaultInstance()) { - getCommonConfigBuilder().mergeFrom(value); - } else { - commonConfig_ = value; - } - } else { - commonConfigBuilder_.mergeFrom(value); - } - if (commonConfig_ != null) { - bitField0_ |= 0x00000400; - onChanged(); - } - return this; + public com.google.protobuf.ByteString getProcurementContactEmailsBytes(int index) { + return procurementContactEmails_.getByteString(index); } /** * * *
            -     * Common config spec that specifies the metadata of the engine.
            +     * Optional. The emails of the procurement contacts.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The procurementContactEmails to set. + * @return This builder for chaining. */ - public Builder clearCommonConfig() { - bitField0_ = (bitField0_ & ~0x00000400); - commonConfig_ = null; - if (commonConfigBuilder_ != null) { - commonConfigBuilder_.dispose(); - commonConfigBuilder_ = null; + public Builder setProcurementContactEmails(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureProcurementContactEmailsIsMutable(); + procurementContactEmails_.set(index, value); + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -8956,100 +23779,66 @@ public Builder clearCommonConfig() { * * *
            -     * Common config spec that specifies the metadata of the engine.
            -     * 
            - * - * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; - */ - public com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.Builder - getCommonConfigBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return internalGetCommonConfigFieldBuilder().getBuilder(); - } - - /** - * - * - *
            -     * Common config spec that specifies the metadata of the engine.
            +     * Optional. The emails of the procurement contacts.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; - */ - public com.google.cloud.discoveryengine.v1beta.Engine.CommonConfigOrBuilder - getCommonConfigOrBuilder() { - if (commonConfigBuilder_ != null) { - return commonConfigBuilder_.getMessageOrBuilder(); - } else { - return commonConfig_ == null - ? com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.getDefaultInstance() - : commonConfig_; - } - } - - /** - * - * - *
            -     * Common config spec that specifies the metadata of the engine.
            -     * 
            + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * * - * .google.cloud.discoveryengine.v1beta.Engine.CommonConfig common_config = 15; + * @param value The procurementContactEmails to add. + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig, - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.Builder, - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfigOrBuilder> - internalGetCommonConfigFieldBuilder() { - if (commonConfigBuilder_ == null) { - commonConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig, - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfig.Builder, - com.google.cloud.discoveryengine.v1beta.Engine.CommonConfigOrBuilder>( - getCommonConfig(), getParentForChildren(), isClean()); - commonConfig_ = null; + public Builder addProcurementContactEmails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - return commonConfigBuilder_; + ensureProcurementContactEmailsIsMutable(); + procurementContactEmails_.add(value); + bitField0_ |= 0x00800000; + onChanged(); + return this; } - private boolean disableAnalytics_; - /** * * *
            -     * Optional. Whether to disable analytics for searches performed on this
            -     * engine.
            +     * Optional. The emails of the procurement contacts.
                  * 
            * - * bool disable_analytics = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The disableAnalytics. + * @param values The procurementContactEmails to add. + * @return This builder for chaining. */ - @java.lang.Override - public boolean getDisableAnalytics() { - return disableAnalytics_; + public Builder addAllProcurementContactEmails(java.lang.Iterable values) { + ensureProcurementContactEmailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, procurementContactEmails_); + bitField0_ |= 0x00800000; + onChanged(); + return this; } /** * * *
            -     * Optional. Whether to disable analytics for searches performed on this
            -     * engine.
            +     * Optional. The emails of the procurement contacts.
                  * 
            * - * bool disable_analytics = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string procurement_contact_emails = 45 [(.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; + public Builder clearProcurementContactEmails() { + procurementContactEmails_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00800000); + ; onChanged(); return this; } @@ -9058,17 +23847,24 @@ public Builder setDisableAnalytics(boolean value) { * * *
            -     * Optional. Whether to disable analytics for searches performed on this
            -     * engine.
            +     * Optional. The emails of the procurement contacts.
                  * 
            * - * bool disable_analytics = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * * + * @param value The bytes of the procurementContactEmails to add. * @return This builder for chaining. */ - public Builder clearDisableAnalytics() { - bitField0_ = (bitField0_ & ~0x00000800); - disableAnalytics_ = false; + public Builder addProcurementContactEmailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureProcurementContactEmailsIsMutable(); + procurementContactEmails_.add(value); + bitField0_ |= 0x00800000; onChanged(); return this; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineOrBuilder.java index 6c431e8bcb0e..450cc83399b9 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineOrBuilder.java @@ -126,6 +126,69 @@ public interface EngineOrBuilder com.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfigOrBuilder getSearchEngineConfigOrBuilder(); + /** + * + * + *
            +   * Configurations for the Media Engine. Only applicable on the data
            +   * stores with
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +   * and
            +   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +   * vertical.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + * + * @return Whether the mediaRecommendationEngineConfig field is set. + */ + boolean hasMediaRecommendationEngineConfig(); + + /** + * + * + *
            +   * Configurations for the Media Engine. Only applicable on the data
            +   * stores with
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +   * and
            +   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +   * vertical.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + * + * @return The mediaRecommendationEngineConfig. + */ + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig + getMediaRecommendationEngineConfig(); + + /** + * + * + *
            +   * Configurations for the Media Engine. Only applicable on the data
            +   * stores with
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]
            +   * and
            +   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +   * vertical.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig media_recommendation_engine_config = 14; + * + */ + com.google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfigOrBuilder + getMediaRecommendationEngineConfigOrBuilder(); + /** * * @@ -186,7 +249,7 @@ public interface EngineOrBuilder * * *
            -   * Immutable. The fully qualified resource name of the engine.
            +   * Immutable. Identifier. The fully qualified resource name of the engine.
                *
                * This field must be a UTF-8 encoded string with a length limit of 1024
                * characters.
            @@ -197,7 +260,9 @@ public interface EngineOrBuilder
                * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned.
                * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The name. */ @@ -207,7 +272,7 @@ public interface EngineOrBuilder * * *
            -   * Immutable. The fully qualified resource name of the engine.
            +   * Immutable. Identifier. The fully qualified resource name of the engine.
                *
                * This field must be a UTF-8 encoded string with a length limit of 1024
                * characters.
            @@ -218,7 +283,9 @@ public interface EngineOrBuilder
                * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned.
                * 
            * - * string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * * * @return The bytes for name. */ @@ -336,7 +403,7 @@ public interface EngineOrBuilder * * *
            -   * The data stores associated with this engine.
            +   * Optional. The data stores associated with this engine.
                *
                * For
                * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            @@ -358,7 +425,7 @@ public interface EngineOrBuilder
                * initializations.
                * 
            * - * repeated string data_store_ids = 5; + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return A list containing the dataStoreIds. */ @@ -368,7 +435,7 @@ public interface EngineOrBuilder * * *
            -   * The data stores associated with this engine.
            +   * Optional. The data stores associated with this engine.
                *
                * For
                * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            @@ -390,7 +457,7 @@ public interface EngineOrBuilder
                * initializations.
                * 
            * - * repeated string data_store_ids = 5; + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @return The count of dataStoreIds. */ @@ -400,7 +467,7 @@ public interface EngineOrBuilder * * *
            -   * The data stores associated with this engine.
            +   * Optional. The data stores associated with this engine.
                *
                * For
                * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            @@ -422,7 +489,7 @@ public interface EngineOrBuilder
                * initializations.
                * 
            * - * repeated string data_store_ids = 5; + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the element to return. * @return The dataStoreIds at the given index. @@ -433,7 +500,7 @@ public interface EngineOrBuilder * * *
            -   * The data stores associated with this engine.
            +   * Optional. The data stores associated with this engine.
                *
                * For
                * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]
            @@ -455,7 +522,7 @@ public interface EngineOrBuilder
                * initializations.
                * 
            * - * repeated string data_store_ids = 5; + * repeated string data_store_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; * * @param index The index of the value to return. * @return The bytes of the dataStoreIds at the given index. @@ -496,14 +563,15 @@ public interface EngineOrBuilder * * *
            -   * The industry vertical that the engine registers.
            +   * Optional. The industry vertical that the engine registers.
                * The restriction of the Engine industry vertical is based on
            -   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: If unspecified,
            -   * default to `GENERIC`. Vertical on Engine has to match vertical of the
            -   * DataStore linked to the engine.
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: Vertical on
            +   * Engine has to match vertical of the DataStore linked to the engine.
                * 
            * - * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 16; + * + * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for industryVertical. */ @@ -513,14 +581,15 @@ public interface EngineOrBuilder * * *
            -   * The industry vertical that the engine registers.
            +   * Optional. The industry vertical that the engine registers.
                * The restriction of the Engine industry vertical is based on
            -   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: If unspecified,
            -   * default to `GENERIC`. Vertical on Engine has to match vertical of the
            -   * DataStore linked to the engine.
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: Vertical on
            +   * Engine has to match vertical of the DataStore linked to the engine.
                * 
            * - * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 16; + * + * .google.cloud.discoveryengine.v1beta.IndustryVertical industry_vertical = 16 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The industryVertical. */ @@ -563,6 +632,93 @@ public interface EngineOrBuilder */ com.google.cloud.discoveryengine.v1beta.Engine.CommonConfigOrBuilder getCommonConfigOrBuilder(); + /** + * + * + *
            +   * Optional. Configurations for the Knowledge Graph. Only applicable if
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * is
            +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the knowledgeGraphConfig field is set. + */ + boolean hasKnowledgeGraphConfig(); + + /** + * + * + *
            +   * Optional. Configurations for the Knowledge Graph. Only applicable if
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * is
            +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The knowledgeGraphConfig. + */ + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig getKnowledgeGraphConfig(); + + /** + * + * + *
            +   * Optional. Configurations for the Knowledge Graph. Only applicable if
            +   * [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type]
            +   * is
            +   * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfig knowledge_graph_config = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Engine.KnowledgeGraphConfigOrBuilder + getKnowledgeGraphConfigOrBuilder(); + + /** + * + * + *
            +   * Optional. Immutable. This the application type which this engine resource
            +   * represents. NOTE: this is a new concept independ of existing industry
            +   * vertical or solution type.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.AppType app_type = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for appType. + */ + int getAppTypeValue(); + + /** + * + * + *
            +   * Optional. Immutable. This the application type which this engine resource
            +   * represents. NOTE: this is a new concept independ of existing industry
            +   * vertical or solution type.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.AppType app_type = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The appType. + */ + com.google.cloud.discoveryengine.v1beta.Engine.AppType getAppType(); + /** * * @@ -577,6 +733,886 @@ public interface EngineOrBuilder */ boolean getDisableAnalytics(); + /** + * + * + *
            +   * Optional. Feature config for the engine to opt in or opt out of features.
            +   * Supported keys:
            +   *
            +   * * `*`: all features, if it's present, all other feature state settings are
            +   * ignored.
            +   * * `agent-gallery`
            +   * * `no-code-agent-builder`
            +   * * `prompt-gallery`
            +   * * `model-selector`
            +   * * `notebook-lm`
            +   * * `people-search`
            +   * * `people-search-org-chart`
            +   * * `bi-directional-audio`
            +   * * `feedback`
            +   * * `session-sharing`
            +   * * `personalization-memory`
            +   * * `personalization-suggested-highlights`
            +   * * `mobile-app-access`
            +   * * `disable-agent-sharing`
            +   * * `disable-image-generation`
            +   * * `disable-video-generation`
            +   * * `disable-onedrive-upload`
            +   * * `disable-talk-to-content`
            +   * * `disable-google-drive-upload`
            +   * * `disable-welcome-emails`
            +   * * `disable-canvas`
            +   * * `disable-canvas-workspace`
            +   * * `disable-skills`
            +   * * `enable-end-user-sharing-with-groups`
            +   * * `single-agent-orchestration`
            +   * * `multi-agent-orchestration`
            +   * * `cross-product-intelligence`
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFeaturesCount(); + + /** + * + * + *
            +   * Optional. Feature config for the engine to opt in or opt out of features.
            +   * Supported keys:
            +   *
            +   * * `*`: all features, if it's present, all other feature state settings are
            +   * ignored.
            +   * * `agent-gallery`
            +   * * `no-code-agent-builder`
            +   * * `prompt-gallery`
            +   * * `model-selector`
            +   * * `notebook-lm`
            +   * * `people-search`
            +   * * `people-search-org-chart`
            +   * * `bi-directional-audio`
            +   * * `feedback`
            +   * * `session-sharing`
            +   * * `personalization-memory`
            +   * * `personalization-suggested-highlights`
            +   * * `mobile-app-access`
            +   * * `disable-agent-sharing`
            +   * * `disable-image-generation`
            +   * * `disable-video-generation`
            +   * * `disable-onedrive-upload`
            +   * * `disable-talk-to-content`
            +   * * `disable-google-drive-upload`
            +   * * `disable-welcome-emails`
            +   * * `disable-canvas`
            +   * * `disable-canvas-workspace`
            +   * * `disable-skills`
            +   * * `enable-end-user-sharing-with-groups`
            +   * * `single-agent-orchestration`
            +   * * `multi-agent-orchestration`
            +   * * `cross-product-intelligence`
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsFeatures(java.lang.String key); + + /** Use {@link #getFeaturesMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getFeatures(); + + /** + * + * + *
            +   * Optional. Feature config for the engine to opt in or opt out of features.
            +   * Supported keys:
            +   *
            +   * * `*`: all features, if it's present, all other feature state settings are
            +   * ignored.
            +   * * `agent-gallery`
            +   * * `no-code-agent-builder`
            +   * * `prompt-gallery`
            +   * * `model-selector`
            +   * * `notebook-lm`
            +   * * `people-search`
            +   * * `people-search-org-chart`
            +   * * `bi-directional-audio`
            +   * * `feedback`
            +   * * `session-sharing`
            +   * * `personalization-memory`
            +   * * `personalization-suggested-highlights`
            +   * * `mobile-app-access`
            +   * * `disable-agent-sharing`
            +   * * `disable-image-generation`
            +   * * `disable-video-generation`
            +   * * `disable-onedrive-upload`
            +   * * `disable-talk-to-content`
            +   * * `disable-google-drive-upload`
            +   * * `disable-welcome-emails`
            +   * * `disable-canvas`
            +   * * `disable-canvas-workspace`
            +   * * `disable-skills`
            +   * * `enable-end-user-sharing-with-groups`
            +   * * `single-agent-orchestration`
            +   * * `multi-agent-orchestration`
            +   * * `cross-product-intelligence`
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map + getFeaturesMap(); + + /** + * + * + *
            +   * Optional. Feature config for the engine to opt in or opt out of features.
            +   * Supported keys:
            +   *
            +   * * `*`: all features, if it's present, all other feature state settings are
            +   * ignored.
            +   * * `agent-gallery`
            +   * * `no-code-agent-builder`
            +   * * `prompt-gallery`
            +   * * `model-selector`
            +   * * `notebook-lm`
            +   * * `people-search`
            +   * * `people-search-org-chart`
            +   * * `bi-directional-audio`
            +   * * `feedback`
            +   * * `session-sharing`
            +   * * `personalization-memory`
            +   * * `personalization-suggested-highlights`
            +   * * `mobile-app-access`
            +   * * `disable-agent-sharing`
            +   * * `disable-image-generation`
            +   * * `disable-video-generation`
            +   * * `disable-onedrive-upload`
            +   * * `disable-talk-to-content`
            +   * * `disable-google-drive-upload`
            +   * * `disable-welcome-emails`
            +   * * `disable-canvas`
            +   * * `disable-canvas-workspace`
            +   * * `disable-skills`
            +   * * `enable-end-user-sharing-with-groups`
            +   * * `single-agent-orchestration`
            +   * * `multi-agent-orchestration`
            +   * * `cross-product-intelligence`
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.discoveryengine.v1beta.Engine.FeatureState getFeaturesOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1beta.Engine.FeatureState defaultValue); + + /** + * + * + *
            +   * Optional. Feature config for the engine to opt in or opt out of features.
            +   * Supported keys:
            +   *
            +   * * `*`: all features, if it's present, all other feature state settings are
            +   * ignored.
            +   * * `agent-gallery`
            +   * * `no-code-agent-builder`
            +   * * `prompt-gallery`
            +   * * `model-selector`
            +   * * `notebook-lm`
            +   * * `people-search`
            +   * * `people-search-org-chart`
            +   * * `bi-directional-audio`
            +   * * `feedback`
            +   * * `session-sharing`
            +   * * `personalization-memory`
            +   * * `personalization-suggested-highlights`
            +   * * `mobile-app-access`
            +   * * `disable-agent-sharing`
            +   * * `disable-image-generation`
            +   * * `disable-video-generation`
            +   * * `disable-onedrive-upload`
            +   * * `disable-talk-to-content`
            +   * * `disable-google-drive-upload`
            +   * * `disable-welcome-emails`
            +   * * `disable-canvas`
            +   * * `disable-canvas-workspace`
            +   * * `disable-skills`
            +   * * `enable-end-user-sharing-with-groups`
            +   * * `single-agent-orchestration`
            +   * * `multi-agent-orchestration`
            +   * * `cross-product-intelligence`
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Engine.FeatureState getFeaturesOrThrow( + java.lang.String key); + + /** Use {@link #getFeaturesValueMap()} instead. */ + @java.lang.Deprecated + java.util.Map getFeaturesValue(); + + /** + * + * + *
            +   * Optional. Feature config for the engine to opt in or opt out of features.
            +   * Supported keys:
            +   *
            +   * * `*`: all features, if it's present, all other feature state settings are
            +   * ignored.
            +   * * `agent-gallery`
            +   * * `no-code-agent-builder`
            +   * * `prompt-gallery`
            +   * * `model-selector`
            +   * * `notebook-lm`
            +   * * `people-search`
            +   * * `people-search-org-chart`
            +   * * `bi-directional-audio`
            +   * * `feedback`
            +   * * `session-sharing`
            +   * * `personalization-memory`
            +   * * `personalization-suggested-highlights`
            +   * * `mobile-app-access`
            +   * * `disable-agent-sharing`
            +   * * `disable-image-generation`
            +   * * `disable-video-generation`
            +   * * `disable-onedrive-upload`
            +   * * `disable-talk-to-content`
            +   * * `disable-google-drive-upload`
            +   * * `disable-welcome-emails`
            +   * * `disable-canvas`
            +   * * `disable-canvas-workspace`
            +   * * `disable-skills`
            +   * * `enable-end-user-sharing-with-groups`
            +   * * `single-agent-orchestration`
            +   * * `multi-agent-orchestration`
            +   * * `cross-product-intelligence`
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getFeaturesValueMap(); + + /** + * + * + *
            +   * Optional. Feature config for the engine to opt in or opt out of features.
            +   * Supported keys:
            +   *
            +   * * `*`: all features, if it's present, all other feature state settings are
            +   * ignored.
            +   * * `agent-gallery`
            +   * * `no-code-agent-builder`
            +   * * `prompt-gallery`
            +   * * `model-selector`
            +   * * `notebook-lm`
            +   * * `people-search`
            +   * * `people-search-org-chart`
            +   * * `bi-directional-audio`
            +   * * `feedback`
            +   * * `session-sharing`
            +   * * `personalization-memory`
            +   * * `personalization-suggested-highlights`
            +   * * `mobile-app-access`
            +   * * `disable-agent-sharing`
            +   * * `disable-image-generation`
            +   * * `disable-video-generation`
            +   * * `disable-onedrive-upload`
            +   * * `disable-talk-to-content`
            +   * * `disable-google-drive-upload`
            +   * * `disable-welcome-emails`
            +   * * `disable-canvas`
            +   * * `disable-canvas-workspace`
            +   * * `disable-skills`
            +   * * `enable-end-user-sharing-with-groups`
            +   * * `single-agent-orchestration`
            +   * * `multi-agent-orchestration`
            +   * * `cross-product-intelligence`
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFeaturesValueOrDefault(java.lang.String key, int defaultValue); + + /** + * + * + *
            +   * Optional. Feature config for the engine to opt in or opt out of features.
            +   * Supported keys:
            +   *
            +   * * `*`: all features, if it's present, all other feature state settings are
            +   * ignored.
            +   * * `agent-gallery`
            +   * * `no-code-agent-builder`
            +   * * `prompt-gallery`
            +   * * `model-selector`
            +   * * `notebook-lm`
            +   * * `people-search`
            +   * * `people-search-org-chart`
            +   * * `bi-directional-audio`
            +   * * `feedback`
            +   * * `session-sharing`
            +   * * `personalization-memory`
            +   * * `personalization-suggested-highlights`
            +   * * `mobile-app-access`
            +   * * `disable-agent-sharing`
            +   * * `disable-image-generation`
            +   * * `disable-video-generation`
            +   * * `disable-onedrive-upload`
            +   * * `disable-talk-to-content`
            +   * * `disable-google-drive-upload`
            +   * * `disable-welcome-emails`
            +   * * `disable-canvas`
            +   * * `disable-canvas-workspace`
            +   * * `disable-skills`
            +   * * `enable-end-user-sharing-with-groups`
            +   * * `single-agent-orchestration`
            +   * * `multi-agent-orchestration`
            +   * * `cross-product-intelligence`
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.FeatureState> features = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFeaturesValueOrThrow(java.lang.String key); + + /** + * + * + *
            +   * Output only. CMEK-related information for the Engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cmekConfig field is set. + */ + boolean hasCmekConfig(); + + /** + * + * + *
            +   * Output only. CMEK-related information for the Engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cmekConfig. + */ + com.google.cloud.discoveryengine.v1beta.CmekConfig getCmekConfig(); + + /** + * + * + *
            +   * Output only. CMEK-related information for the Engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 32 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder getCmekConfigOrBuilder(); + + /** + * + * + *
            +   * Optional. Configuration for configurable billing approach.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach configurable_billing_approach = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for configurableBillingApproach. + */ + int getConfigurableBillingApproachValue(); + + /** + * + * + *
            +   * Optional. Configuration for configurable billing approach.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach configurable_billing_approach = 36 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The configurableBillingApproach. + */ + com.google.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproach + getConfigurableBillingApproach(); + + /** + * + * + *
            +   * Optional. Maps a model name to its specific configuration for this engine.
            +   * This allows admin users to turn on/off individual models. This only stores
            +   * models whose states are overridden by the admin.
            +   *
            +   * When the state is unspecified, or model_configs is empty for this
            +   * model, the system will decide if this model should be available or not
            +   * based on the default configuration. For example, a preview model
            +   * should be disabled by default if the admin has not chosen to enable it.
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getModelConfigsCount(); + + /** + * + * + *
            +   * Optional. Maps a model name to its specific configuration for this engine.
            +   * This allows admin users to turn on/off individual models. This only stores
            +   * models whose states are overridden by the admin.
            +   *
            +   * When the state is unspecified, or model_configs is empty for this
            +   * model, the system will decide if this model should be available or not
            +   * based on the default configuration. For example, a preview model
            +   * should be disabled by default if the admin has not chosen to enable it.
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsModelConfigs(java.lang.String key); + + /** Use {@link #getModelConfigsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getModelConfigs(); + + /** + * + * + *
            +   * Optional. Maps a model name to its specific configuration for this engine.
            +   * This allows admin users to turn on/off individual models. This only stores
            +   * models whose states are overridden by the admin.
            +   *
            +   * When the state is unspecified, or model_configs is empty for this
            +   * model, the system will decide if this model should be available or not
            +   * based on the default configuration. For example, a preview model
            +   * should be disabled by default if the admin has not chosen to enable it.
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map + getModelConfigsMap(); + + /** + * + * + *
            +   * Optional. Maps a model name to its specific configuration for this engine.
            +   * This allows admin users to turn on/off individual models. This only stores
            +   * models whose states are overridden by the admin.
            +   *
            +   * When the state is unspecified, or model_configs is empty for this
            +   * model, the system will decide if this model should be available or not
            +   * based on the default configuration. For example, a preview model
            +   * should be disabled by default if the admin has not chosen to enable it.
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.discoveryengine.v1beta.Engine.ModelState getModelConfigsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1beta.Engine.ModelState defaultValue); + + /** + * + * + *
            +   * Optional. Maps a model name to its specific configuration for this engine.
            +   * This allows admin users to turn on/off individual models. This only stores
            +   * models whose states are overridden by the admin.
            +   *
            +   * When the state is unspecified, or model_configs is empty for this
            +   * model, the system will decide if this model should be available or not
            +   * based on the default configuration. For example, a preview model
            +   * should be disabled by default if the admin has not chosen to enable it.
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Engine.ModelState getModelConfigsOrThrow( + java.lang.String key); + + /** Use {@link #getModelConfigsValueMap()} instead. */ + @java.lang.Deprecated + java.util.Map getModelConfigsValue(); + + /** + * + * + *
            +   * Optional. Maps a model name to its specific configuration for this engine.
            +   * This allows admin users to turn on/off individual models. This only stores
            +   * models whose states are overridden by the admin.
            +   *
            +   * When the state is unspecified, or model_configs is empty for this
            +   * model, the system will decide if this model should be available or not
            +   * based on the default configuration. For example, a preview model
            +   * should be disabled by default if the admin has not chosen to enable it.
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getModelConfigsValueMap(); + + /** + * + * + *
            +   * Optional. Maps a model name to its specific configuration for this engine.
            +   * This allows admin users to turn on/off individual models. This only stores
            +   * models whose states are overridden by the admin.
            +   *
            +   * When the state is unspecified, or model_configs is empty for this
            +   * model, the system will decide if this model should be available or not
            +   * based on the default configuration. For example, a preview model
            +   * should be disabled by default if the admin has not chosen to enable it.
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getModelConfigsValueOrDefault(java.lang.String key, int defaultValue); + + /** + * + * + *
            +   * Optional. Maps a model name to its specific configuration for this engine.
            +   * This allows admin users to turn on/off individual models. This only stores
            +   * models whose states are overridden by the admin.
            +   *
            +   * When the state is unspecified, or model_configs is empty for this
            +   * model, the system will decide if this model should be available or not
            +   * based on the default configuration. For example, a preview model
            +   * should be disabled by default if the admin has not chosen to enable it.
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Engine.ModelState> model_configs = 37 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getModelConfigsValueOrThrow(java.lang.String key); + + /** + * + * + *
            +   * Optional. Observability config for the engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the observabilityConfig field is set. + */ + boolean hasObservabilityConfig(); + + /** + * + * + *
            +   * Optional. Observability config for the engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The observabilityConfig. + */ + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig getObservabilityConfig(); + + /** + * + * + *
            +   * Optional. Observability config for the engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 39 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.ObservabilityConfigOrBuilder + getObservabilityConfigOrBuilder(); + + /** + * + * + *
            +   * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
            +   * tenant-specific information required for that connector. The structure of
            +   * the tenant information string is connector-dependent.
            +   * 
            + * + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getConnectorTenantInfoCount(); + + /** + * + * + *
            +   * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
            +   * tenant-specific information required for that connector. The structure of
            +   * the tenant information string is connector-dependent.
            +   * 
            + * + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsConnectorTenantInfo(java.lang.String key); + + /** Use {@link #getConnectorTenantInfoMap()} instead. */ + @java.lang.Deprecated + java.util.Map getConnectorTenantInfo(); + + /** + * + * + *
            +   * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
            +   * tenant-specific information required for that connector. The structure of
            +   * the tenant information string is connector-dependent.
            +   * 
            + * + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getConnectorTenantInfoMap(); + + /** + * + * + *
            +   * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
            +   * tenant-specific information required for that connector. The structure of
            +   * the tenant information string is connector-dependent.
            +   * 
            + * + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getConnectorTenantInfoOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
            +   * Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to
            +   * tenant-specific information required for that connector. The structure of
            +   * the tenant information string is connector-dependent.
            +   * 
            + * + * + * map<string, string> connector_tenant_info = 42 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getConnectorTenantInfoOrThrow(java.lang.String key); + + /** + * + * + *
            +   * Optional. The agent gateway setting for the engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentGatewaySetting field is set. + */ + boolean hasAgentGatewaySetting(); + + /** + * + * + *
            +   * Optional. The agent gateway setting for the engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentGatewaySetting. + */ + com.google.cloud.discoveryengine.v1beta.AgentGatewaySetting getAgentGatewaySetting(); + + /** + * + * + *
            +   * Optional. The agent gateway setting for the engine.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AgentGatewaySetting agent_gateway_setting = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.AgentGatewaySettingOrBuilder + getAgentGatewaySettingOrBuilder(); + + /** + * + * + *
            +   * Optional. The visibility of marketplace agents in the agent gallery.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility marketplace_agent_visibility = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for marketplaceAgentVisibility. + */ + int getMarketplaceAgentVisibilityValue(); + + /** + * + * + *
            +   * Optional. The visibility of marketplace agents in the agent gallery.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility marketplace_agent_visibility = 44 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The marketplaceAgentVisibility. + */ + com.google.cloud.discoveryengine.v1beta.Engine.MarketplaceAgentVisibility + getMarketplaceAgentVisibility(); + + /** + * + * + *
            +   * Optional. The emails of the procurement contacts.
            +   * 
            + * + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the procurementContactEmails. + */ + java.util.List getProcurementContactEmailsList(); + + /** + * + * + *
            +   * Optional. The emails of the procurement contacts.
            +   * 
            + * + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of procurementContactEmails. + */ + int getProcurementContactEmailsCount(); + + /** + * + * + *
            +   * Optional. The emails of the procurement contacts.
            +   * 
            + * + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The procurementContactEmails at the given index. + */ + java.lang.String getProcurementContactEmails(int index); + + /** + * + * + *
            +   * Optional. The emails of the procurement contacts.
            +   * 
            + * + * + * repeated string procurement_contact_emails = 45 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the procurementContactEmails at the given index. + */ + com.google.protobuf.ByteString getProcurementContactEmailsBytes(int index); + com.google.cloud.discoveryengine.v1beta.Engine.EngineConfigCase getEngineConfigCase(); com.google.cloud.discoveryengine.v1beta.Engine.EngineMetadataCase getEngineMetadataCase(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineProto.java index 0172425ee3c0..f590b225db54 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineProto.java @@ -48,6 +48,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_Engine_SearchEngineConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_Engine_SearchEngineConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -60,10 +80,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_Engine_CommonConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_Engine_CommonConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_FeatureConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_FeatureConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Engine_FeaturesEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Engine_FeaturesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Engine_ModelConfigsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Engine_ModelConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Engine_ConnectorTenantInfoEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Engine_ConnectorTenantInfoEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -76,56 +116,158 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "0google/cloud/discoveryengine/v1beta/engine.proto\022#google.cloud.discoveryengine" + ".v1beta\032\037google/api/field_behavior.proto" - + "\032\031google/api/resource.proto\0320google/clou" - + "d/discoveryengine/v1beta/common.proto\032\037google/protobuf/timestamp.proto\"\247\013\n" + + "\032\031google/api/resource.proto\032?google/clou" + + "d/discoveryengine/v1beta/agent_gateway_setting.proto\032=google/cloud/discoveryengi" + + "ne/v1beta/cmek_config_service.proto\0320google/cloud/discoveryengine/v1beta/common." + + "proto\0321google/cloud/discoveryengine/v1be" + + "ta/logging.proto\032\037google/protobuf/timestamp.proto\"\200(\n" + "\006Engine\022Z\n" - + "\022chat_engine_config\030\013 \001(\0132<.google.c" - + "loud.discoveryengine.v1beta.Engine.ChatEngineConfigH\000\022^\n" + + "\022chat_engine_config\030\013" + + " \001(\0132<.google.cloud.discoveryengine.v1beta.Engine.ChatEngineConfigH\000\022^\n" + "\024search_engine_config\030\r" - + " \001(\0132>.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfigH\000\022c\n" - + "\024chat_engine_metadata\030\014 \001(\0132>.google.cloud.disco" - + "veryengine.v1beta.Engine.ChatEngineMetadataB\003\340A\003H\001\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\005\022\031\n" + + " \001(\0132>.google.cloud.discoveryengine.v1beta.Engine.SearchEngineConfigH\000\022y\n" + + "\"media_recommendation_engine_config\030\016 \001(\0132K.google.cloud.discoveryeng" + + "ine.v1beta.Engine.MediaRecommendationEngineConfigH\000\022c\n" + + "\024chat_engine_metadata\030\014 \001(" + + "\0132>.google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadataB\003\340A\003H\001\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\005\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\0224\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\004" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\026\n" - + "\016data_store_ids\030\005 \003(\t\022M\n\r" - + "solution_type\030\006" - + " \001(\01621.google.cloud.discoveryengine.v1beta.SolutionTypeB\003\340A\002\022P\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\033\n" + + "\016data_store_ids\030\005 \003(\tB\003\340A\001\022M\n\r" + + "solution_type\030\006 \001(" + + "\01621.google.cloud.discoveryengine.v1beta.SolutionTypeB\003\340A\002\022U\n" + "\021industry_vertical\030\020" - + " \001(\01625.google.cloud.discoveryengine.v1beta.IndustryVertical\022O\n\r" + + " \001(\01625.google.cloud.discoveryengine.v1beta.IndustryVerticalB\003\340A\001\022O\n\r" + "common_config\030\017" - + " \001(\01328.google.cloud.discoveryengine.v1beta.Engine.CommonConfig\022\036\n" - + "\021disable_analytics\030\032 \001(\010B\003\340A\001\032\244\001\n" + + " \001(\01328.google.cloud.discoveryengine.v1beta.Engine.CommonConfig\022e\n" + + "\026knowledge_graph_config\030\027 \001(\0132@.google.cloud.discove" + + "ryengine.v1beta.Engine.KnowledgeGraphConfigB\003\340A\001\022M\n" + + "\010app_type\030\030 \001(\01623.google.clou" + + "d.discoveryengine.v1beta.Engine.AppTypeB\006\340A\001\340A\005\022\036\n" + + "\021disable_analytics\030\032 \001(\010B\003\340A\001\022P\n" + + "\010features\030\036 \003(\01329.google.cloud.discove" + + "ryengine.v1beta.Engine.FeaturesEntryB\003\340A\001\022I\n" + + "\013cmek_config\030 " + + " \001(\0132/.google.cloud.discoveryengine.v1beta.CmekConfigB\003\340A\003\022s\n" + + "\035configurable_billing_approach\030$ \001(\0162G.go" + + "ogle.cloud.discoveryengine.v1beta.Engine.ConfigurableBillingApproachB\003\340A\001\022Y\n\r" + + "model_configs\030% \003(\0132=.google.cloud.discover" + + "yengine.v1beta.Engine.ModelConfigsEntryB\003\340A\001\022[\n" + + "\024observability_config\030\' \001(\01328.goo" + + "gle.cloud.discoveryengine.v1beta.ObservabilityConfigB\003\340A\001\022h\n" + + "\025connector_tenant_info\030* \003(\0132D.google.cloud.discoveryengine." + + "v1beta.Engine.ConnectorTenantInfoEntryB\003\340A\001\022\\\n" + + "\025agent_gateway_setting\030+ \001(\01328.goo" + + "gle.cloud.discoveryengine.v1beta.AgentGatewaySettingB\003\340A\001\022q\n" + + "\034marketplace_agent_visibility\030, \001(\0162F.google.cloud.discovery" + + "engine.v1beta.Engine.MarketplaceAgentVisibilityB\003\340A\001\022\'\n" + + "\032procurement_contact_emails\030- \003(\tB\003\340A\001\032\204\002\n" + "\022SearchEngineConfig\022D\n" + "\013search_tier\030\001" - + " \001(\0162/.google.cloud.discoveryengine.v1beta.SearchTier\022H\n" + + " \001(\0162/.google.cloud.discoveryengine.v1beta.SearchTier\022^\n" + + "\032required_subscription_tier\030\003 \001(\01625.google.cloud.di" + + "scoveryengine.v1beta.SubscriptionTierB\003\340A\001\022H\n" + "\016search_add_ons\030\002" - + " \003(\01620.google.cloud.discoveryengine.v1beta.SearchAddOn\032\227\002\n" + + " \003(\01620.google.cloud.discoveryengine.v1beta.SearchAddOn\032\313\010\n" + + "\037MediaRecommendationEngineConfig\022\021\n" + + "\004type\030\001 \001(\tB\003\340A\002\022\036\n" + + "\026optimization_objective\030\002 \001(\t\022\216\001\n" + + "\035optimization_objective_config\030\003 " + + "\001(\0132g.google.cloud.discoveryengine.v1bet" + + "a.Engine.MediaRecommendationEngineConfig.OptimizationObjectiveConfig\022q\n" + + "\016training_state\030\004 \001(\0162Y.google.cloud.discoveryeng" + + "ine.v1beta.Engine.MediaRecommendationEngineConfig.TrainingState\022\205\001\n" + + "\026engine_features_config\030\005 \001(\0132`.google.cloud.discover" + + "yengine.v1beta.Engine.MediaRecommendatio" + + "nEngineConfig.EngineFeaturesConfigB\003\340A\001\032_\n" + + "\033OptimizationObjectiveConfig\022\031\n" + + "\014target_field\030\001 \001(\tB\003\340A\002\022%\n" + + "\030target_field_value_float\030\002 \001(\002B\003\340A\002\032\310\002\n" + + "\024EngineFeaturesConfig\022\220\001\n" + + "\032recommended_for_you_config\030\001 \001(\0132j" + + ".google.cloud.discoveryengine.v1beta.Eng" + + "ine.MediaRecommendationEngineConfig.RecommendedForYouFeatureConfigH\000\022\203\001\n" + + "\023most_popular_config\030\002 \001(\0132d.google.cloud.discov" + + "eryengine.v1beta.Engine.MediaRecommendat" + + "ionEngineConfig.MostPopularFeatureConfigH\000B\027\n" + + "\025type_dedicated_config\032<\n" + + "\036RecommendedForYouFeatureConfig\022\032\n" + + "\022context_event_type\030\001 \001(\t\0324\n" + + "\030MostPopularFeatureConfig\022\030\n" + + "\020time_window_days\030\001 \001(\003\"I\n\r" + + "TrainingState\022\036\n" + + "\032TRAINING_STATE_UNSPECIFIED\020\000\022\n\n" + + "\006PAUSED\020\001\022\014\n" + + "\010TRAINING\020\002\032\270\002\n" + "\020ChatEngineConfig\022o\n" - + "\025agent_creation_config\030\001 \001(\0132P.google.cloud.discoveryengine.v1beta." - + "Engine.ChatEngineConfig.AgentCreationConfig\022 \n" - + "\030dialogflow_agent_to_link\030\002 \001(\t\032p\n" + + "\025agent_creation_config\030\001 \001(\0132P.google." + + "cloud.discoveryengine.v1beta.Engine.ChatEngineConfig.AgentCreationConfig\022 \n" + + "\030dialogflow_agent_to_link\030\002 \001(\t\022\037\n" + + "\022allow_cross_region\030\003 \001(\010B\003\340A\001\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_zone\030\003 \001(\tB\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" + + "\014company_name\030\001 \001(\t\032\333\003\n" + + "\024KnowledgeGraphConfig\022$\n" + + "\034enable_cloud_knowledge_graph\030\001 \001(\010\022#\n" + + "\033cloud_knowledge_graph_types\030\002 \003(\t\022&\n" + + "\036enable_private_knowledge_graph\030\003 \001(\010\022%\n" + + "\035private_knowledge_graph_types\030\004 \003(\t\022k\n" + + "\016feature_config\030\005 \001(\0132N.google.cloud.discoverye" + + "ngine.v1beta.Engine.KnowledgeGraphConfig.FeatureConfigB\003\340A\001\032\273\001\n\r" + + "FeatureConfig\022.\n" + + "&disable_private_kg_query_understanding\030\001 \001(\010\022%\n" + + "\035disable_private_kg_enrichment\030\002 \001(\010\022(\n" + + " disable_private_kg_auto_complete\030\003 \001(\010\022)\n" + + "!disable_private_kg_query_ui_chips\030\004 \001(\010\032.\n" + "\022ChatEngineMetadata\022\030\n" - + "\020dialogflow_agent\030\001 \001(\t:}\352Az\n" - + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/locations/{locatio" - + "n}/collections/{collection}/engines/{engine}B\017\n\r" + + "\020dialogflow_agent\030\001 \001(\t\032i\n\r" + + "FeaturesEntry\022\013\n" + + "\003key\030\001 \001(\t\022G\n" + + "\005value\030\002 \001(\01628.google.cloud.di" + + "scoveryengine.v1beta.Engine.FeatureState:\0028\001\032k\n" + + "\021ModelConfigsEntry\022\013\n" + + "\003key\030\001 \001(\t\022E\n" + + "\005value\030\002" + + " \001(\01626.google.cloud.discoveryengine.v1beta.Engine.ModelState:\0028\001\032:\n" + + "\030ConnectorTenantInfoEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\":\n" + + "\007AppType\022\030\n" + + "\024APP_TYPE_UNSPECIFIED\020\000\022\025\n" + + "\021APP_TYPE_INTRANET\020\001\"Z\n" + + "\014FeatureState\022\035\n" + + "\031FEATURE_STATE_UNSPECIFIED\020\000\022\024\n" + + "\020FEATURE_STATE_ON\020\001\022\025\n" + + "\021FEATURE_STATE_OFF\020\002\"w\n" + + "\033ConfigurableBillingApproach\022-\n" + + ")CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED\020\000\022)\n" + + "%CONFIGURABLE_BILLING_APPROACH_ENABLED\020\001\"P\n\n" + + "ModelState\022\033\n" + + "\027MODEL_STATE_UNSPECIFIED\020\000\022\021\n\r" + + "MODEL_ENABLED\020\001\022\022\n" + + "\016MODEL_DISABLED\020\002\"\306\001\n" + + "\032MarketplaceAgentVisibility\022,\n" + + "(MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED\020\000\022\036\n" + + "\032SHOW_AVAILABLE_AGENTS_ONLY\020\001\022\"\n" + + "\036SHOW_AGENTS_ALREADY_INTEGRATED\020\002\022!\n" + + "\035SHOW_AGENTS_ALREADY_PURCHASED\020\003\022\023\n" + + "\017SHOW_ALL_AGENTS\020\004:}\352Az\n" + + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/locati" + + "ons/{location}/collections/{collection}/engines/{engine}B\017\n\r" + "engine_configB\021\n" + "\017engine_metadataB\222\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB\013EngineProtoP\001ZQcloud.google.com/go" - + "/discoveryengine/apiv1beta/discoveryengi" - + "nepb;discoveryenginepb\242\002\017DISCOVERYENGINE" - + "\252\002#Google.Cloud.DiscoveryEngine.V1Beta\312\002" - + "#Google\\Cloud\\DiscoveryEngine\\V1beta\352\002&G" - + "oogle::Cloud::DiscoveryEngine::V1betab\006proto3" + + "\'com.google.cloud.discoveryengine.v1betaB\013EngineProtoP\001ZQcloud.g" + + "oogle.com/go/discoveryengine/apiv1beta/d" + + "iscoveryenginepb;discoveryenginepb\242\002\017DIS" + + "COVERYENGINE\252\002#Google.Cloud.DiscoveryEng" + + "ine.V1Beta\312\002#Google\\Cloud\\DiscoveryEngin" + + "e\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -133,7 +275,10 @@ 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.cloud.discoveryengine.v1beta.AgentGatewaySettingProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto.getDescriptor(), com.google.cloud.discoveryengine.v1beta.CommonProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.LoggingProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_discoveryengine_v1beta_Engine_descriptor = @@ -144,6 +289,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ChatEngineConfig", "SearchEngineConfig", + "MediaRecommendationEngineConfig", "ChatEngineMetadata", "Name", "DisplayName", @@ -153,7 +299,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SolutionType", "IndustryVertical", "CommonConfig", + "KnowledgeGraphConfig", + "AppType", "DisableAnalytics", + "Features", + "CmekConfig", + "ConfigurableBillingApproach", + "ModelConfigs", + "ObservabilityConfig", + "ConnectorTenantInfo", + "AgentGatewaySetting", + "MarketplaceAgentVisibility", + "ProcurementContactEmails", "EngineConfig", "EngineMetadata", }); @@ -163,15 +320,63 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_Engine_SearchEngineConfig_descriptor, new java.lang.String[] { - "SearchTier", "SearchAddOns", + "SearchTier", "RequiredSubscriptionTier", "SearchAddOns", }); - internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_descriptor = internal_static_google_cloud_discoveryengine_v1beta_Engine_descriptor.getNestedType(1); + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_descriptor, + new java.lang.String[] { + "Type", + "OptimizationObjective", + "OptimizationObjectiveConfig", + "TrainingState", + "EngineFeaturesConfig", + }); + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_OptimizationObjectiveConfig_descriptor, + new java.lang.String[] { + "TargetField", "TargetFieldValueFloat", + }); + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_EngineFeaturesConfig_descriptor, + new java.lang.String[] { + "RecommendedForYouConfig", "MostPopularConfig", "TypeDedicatedConfig", + }); + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_descriptor + .getNestedType(2); + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_RecommendedForYouFeatureConfig_descriptor, + new java.lang.String[] { + "ContextEventType", + }); + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_descriptor + .getNestedType(3); + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Engine_MediaRecommendationEngineConfig_MostPopularFeatureConfig_descriptor, + new java.lang.String[] { + "TimeWindowDays", + }); + internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Engine_descriptor.getNestedType(2); internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_descriptor, new java.lang.String[] { - "AgentCreationConfig", "DialogflowAgentToLink", + "AgentCreationConfig", "DialogflowAgentToLink", "AllowCrossRegion", }); internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_AgentCreationConfig_descriptor = internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineConfig_descriptor @@ -183,25 +388,76 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Business", "DefaultLanguageCode", "TimeZone", "Location", }); internal_static_google_cloud_discoveryengine_v1beta_Engine_CommonConfig_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_Engine_descriptor.getNestedType(2); + internal_static_google_cloud_discoveryengine_v1beta_Engine_descriptor.getNestedType(3); internal_static_google_cloud_discoveryengine_v1beta_Engine_CommonConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_Engine_CommonConfig_descriptor, new java.lang.String[] { "CompanyName", }); + internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Engine_descriptor.getNestedType(4); + internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_descriptor, + new java.lang.String[] { + "EnableCloudKnowledgeGraph", + "CloudKnowledgeGraphTypes", + "EnablePrivateKnowledgeGraph", + "PrivateKnowledgeGraphTypes", + "FeatureConfig", + }); + internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_FeatureConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_FeatureConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Engine_KnowledgeGraphConfig_FeatureConfig_descriptor, + new java.lang.String[] { + "DisablePrivateKgQueryUnderstanding", + "DisablePrivateKgEnrichment", + "DisablePrivateKgAutoComplete", + "DisablePrivateKgQueryUiChips", + }); internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineMetadata_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_Engine_descriptor.getNestedType(3); + internal_static_google_cloud_discoveryengine_v1beta_Engine_descriptor.getNestedType(5); internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_Engine_ChatEngineMetadata_descriptor, new java.lang.String[] { "DialogflowAgent", }); + internal_static_google_cloud_discoveryengine_v1beta_Engine_FeaturesEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Engine_descriptor.getNestedType(6); + internal_static_google_cloud_discoveryengine_v1beta_Engine_FeaturesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Engine_FeaturesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_discoveryengine_v1beta_Engine_ModelConfigsEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Engine_descriptor.getNestedType(7); + internal_static_google_cloud_discoveryengine_v1beta_Engine_ModelConfigsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Engine_ModelConfigsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_discoveryengine_v1beta_Engine_ConnectorTenantInfoEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Engine_descriptor.getNestedType(8); + internal_static_google_cloud_discoveryengine_v1beta_Engine_ConnectorTenantInfoEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Engine_ConnectorTenantInfoEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.AgentGatewaySettingProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto.getDescriptor(); com.google.cloud.discoveryengine.v1beta.CommonProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.LoggingProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceProto.java index 348ff077ee2b..76e170ece978 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EngineServiceProto.java @@ -107,101 +107,114 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\032\027google/api/client.proto\032\037google/a" + "pi/field_behavior.proto\032\031google/api/reso" + "urce.proto\0320google/cloud/discoveryengine" - + "/v1beta/engine.proto\032#google/longrunning" - + "/operations.proto\032\033google/protobuf/empty" - + ".proto\032 google/protobuf/field_mask.proto" - + "\032\037google/protobuf/timestamp.proto\"\262\001\n\023Cr" - + "eateEngineRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A" - + "+\n)discoveryengine.googleapis.com/Collec" - + "tion\022@\n\006engine\030\002 \001(\0132+.google.cloud.disc" - + "overyengine.v1beta.EngineB\003\340A\002\022\026\n\tengine" - + "_id\030\003 \001(\tB\003\340A\002\"x\n\024CreateEngineMetadata\022/" - + "\n\013create_time\030\001 \001(\0132\032.google.protobuf.Ti" - + "mestamp\022/\n\013update_time\030\002 \001(\0132\032.google.pr" - + "otobuf.Timestamp\"R\n\023DeleteEngineRequest\022" - + ";\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%discoveryengine.g" - + "oogleapis.com/Engine\"x\n\024DeleteEngineMeta" - + "data\022/\n\013create_time\030\001 \001(\0132\032.google.proto" - + "buf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\"O\n\020GetEngineReque" - + "st\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%discoveryengin" - + "e.googleapis.com/Engine\"\235\001\n\022ListEnginesR" - + "equest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\n)discover" - + "yengine.googleapis.com/Collection\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\022\023\n\006filter\030\004 \001(\tB\003\340A\001\"l\n\023ListEnginesRe" - + "sponse\022<\n\007engines\030\001 \003(\0132+.google.cloud.d" - + "iscoveryengine.v1beta.Engine\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\"\210\001\n\023UpdateEngineRequest\022@\n" - + "\006engine\030\001 \001(\0132+.google.cloud.discoveryen" - + "gine.v1beta.EngineB\003\340A\002\022/\n\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMask\"Q\n\022Paus" - + "eEngineRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%di" - + "scoveryengine.googleapis.com/Engine\"R\n\023R" - + "esumeEngineRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'" - + "\n%discoveryengine.googleapis.com/Engine\"" - + "P\n\021TuneEngineRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372" - + "A\'\n%discoveryengine.googleapis.com/Engin" - + "e\"S\n\022TuneEngineMetadata\022=\n\006engine\030\001 \001(\tB" - + "-\340A\002\372A\'\n%discoveryengine.googleapis.com/" - + "Engine\"\024\n\022TuneEngineResponse2\247\017\n\rEngineS" - + "ervice\022\272\002\n\014CreateEngine\0228.google.cloud.d" - + "iscoveryengine.v1beta.CreateEngineReques" - + "t\032\035.google.longrunning.Operation\"\320\001\312Af\n*" - + "google.cloud.discoveryengine.v1beta.Engi" - + "ne\0228google.cloud.discoveryengine.v1beta." - + "CreateEngineMetadata\332A\027parent,engine,eng" - + "ine_id\202\323\344\223\002G\"=/v1beta/{parent=projects/*" - + "/locations/*/collections/*}/engines:\006eng" - + "ine\022\212\002\n\014DeleteEngine\0228.google.cloud.disc" - + "overyengine.v1beta.DeleteEngineRequest\032\035" - + ".google.longrunning.Operation\"\240\001\312AQ\n\025goo" - + "gle.protobuf.Empty\0228google.cloud.discove" - + "ryengine.v1beta.DeleteEngineMetadata\332A\004n" - + "ame\202\323\344\223\002?*=/v1beta/{name=projects/*/loca" - + "tions/*/collections/*/engines/*}\022\340\001\n\014Upd" - + "ateEngine\0228.google.cloud.discoveryengine" - + ".v1beta.UpdateEngineRequest\032+.google.clo" - + "ud.discoveryengine.v1beta.Engine\"i\332A\022eng" - + "ine,update_mask\202\323\344\223\002N2D/v1beta/{engine.n" - + "ame=projects/*/locations/*/collections/*" - + "/engines/*}:\006engine\022\275\001\n\tGetEngine\0225.goog" - + "le.cloud.discoveryengine.v1beta.GetEngin" - + "eRequest\032+.google.cloud.discoveryengine." - + "v1beta.Engine\"L\332A\004name\202\323\344\223\002?\022=/v1beta/{n" - + "ame=projects/*/locations/*/collections/*" - + "/engines/*}\022\320\001\n\013ListEngines\0227.google.clo" - + "ud.discoveryengine.v1beta.ListEnginesReq" - + "uest\0328.google.cloud.discoveryengine.v1be" - + "ta.ListEnginesResponse\"N\332A\006parent\202\323\344\223\002?\022" - + "=/v1beta/{parent=projects/*/locations/*/" - + "collections/*}/engines\022\312\001\n\013PauseEngine\0227" - + ".google.cloud.discoveryengine.v1beta.Pau" - + "seEngineRequest\032+.google.cloud.discovery" - + "engine.v1beta.Engine\"U\332A\004name\202\323\344\223\002H\"C/v1" - + "beta/{name=projects/*/locations/*/collec" - + "tions/*/engines/*}:pause:\001*\022\315\001\n\014ResumeEn" - + "gine\0228.google.cloud.discoveryengine.v1be" - + "ta.ResumeEngineRequest\032+.google.cloud.di" - + "scoveryengine.v1beta.Engine\"V\332A\004name\202\323\344\223" - + "\002I\"D/v1beta/{name=projects/*/locations/*" - + "/collections/*/engines/*}:resume:\001*\022\344\001\n\n" - + "TuneEngine\0226.google.cloud.discoveryengin" - + "e.v1beta.TuneEngineRequest\032\035.google.long" - + "running.Operation\"\177\312A(\n\022TuneEngineRespon" - + "se\022\022TuneEngineMetadata\332A\004name\202\323\344\223\002G\"B/v1" - + "beta/{name=projects/*/locations/*/collec" - + "tions/*/engines/*}:tune:\001*\032R\312A\036discovery" - + "engine.googleapis.com\322A.https://www.goog" - + "leapis.com/auth/cloud-platformB\231\002\n\'com.g" - + "oogle.cloud.discoveryengine.v1betaB\022Engi" - + "neServiceProtoP\001ZQcloud.google.com/go/di" - + "scoveryengine/apiv1beta/discoveryenginep" - + "b;discoveryenginepb\242\002\017DISCOVERYENGINE\252\002#" - + "Google.Cloud.DiscoveryEngine.V1Beta\312\002#Go" - + "ogle\\Cloud\\DiscoveryEngine\\V1beta\352\002&Goog" - + "le::Cloud::DiscoveryEngine::V1betab\006prot" - + "o3" + + "/v1beta/engine.proto\032\036google/iam/v1/iam_" + + "policy.proto\032\032google/iam/v1/policy.proto" + + "\032#google/longrunning/operations.proto\032\033g" + + "oogle/protobuf/empty.proto\032 google/proto" + + "buf/field_mask.proto\032\037google/protobuf/ti" + + "mestamp.proto\"\262\001\n\023CreateEngineRequest\022A\n" + + "\006parent\030\001 \001(\tB1\340A\002\372A+\n)discoveryengine.g" + + "oogleapis.com/Collection\022@\n\006engine\030\002 \001(\013" + + "2+.google.cloud.discoveryengine.v1beta.E" + + "ngineB\003\340A\002\022\026\n\tengine_id\030\003 \001(\tB\003\340A\002\"x\n\024Cr" + + "eateEngineMetadata\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\"R\n\023" + + "DeleteEngineRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A" + + "\'\n%discoveryengine.googleapis.com/Engine" + + "\"x\n\024DeleteEngineMetadata\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\"O\n\020GetEngineRequest\022;\n\004name\030\001 \001(\tB-\340A" + + "\002\372A\'\n%discoveryengine.googleapis.com/Eng" + + "ine\"\235\001\n\022ListEnginesRequest\022A\n\006parent\030\001 \001" + + "(\tB1\340A\002\372A+\n)discoveryengine.googleapis.c" + + "om/Collection\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\"l\n\023ListEnginesResponse\022<\n\007engines\030\001 " + + "\003(\0132+.google.cloud.discoveryengine.v1bet" + + "a.Engine\022\027\n\017next_page_token\030\002 \001(\t\"\210\001\n\023Up" + + "dateEngineRequest\022@\n\006engine\030\001 \001(\0132+.goog" + + "le.cloud.discoveryengine.v1beta.EngineB\003" + + "\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMask\"Q\n\022PauseEngineRequest\022;\n\004na" + + "me\030\001 \001(\tB-\340A\002\372A\'\n%discoveryengine.google" + + "apis.com/Engine\"R\n\023ResumeEngineRequest\022;" + + "\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%discoveryengine.go" + + "ogleapis.com/Engine\"P\n\021TuneEngineRequest" + + "\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%discoveryengine." + + "googleapis.com/Engine\"S\n\022TuneEngineMetad" + + "ata\022=\n\006engine\030\001 \001(\tB-\340A\002\372A\'\n%discoveryen" + + "gine.googleapis.com/Engine\"\024\n\022TuneEngine" + + "Response2\215\023\n\rEngineService\022\272\002\n\014CreateEng" + + "ine\0228.google.cloud.discoveryengine.v1bet" + + "a.CreateEngineRequest\032\035.google.longrunni" + + "ng.Operation\"\320\001\312Af\n*google.cloud.discove" + + "ryengine.v1beta.Engine\0228google.cloud.dis" + + "coveryengine.v1beta.CreateEngineMetadata" + + "\332A\027parent,engine,engine_id\202\323\344\223\002G\"=/v1bet" + + "a/{parent=projects/*/locations/*/collect" + + "ions/*}/engines:\006engine\022\212\002\n\014DeleteEngine" + + "\0228.google.cloud.discoveryengine.v1beta.D" + + "eleteEngineRequest\032\035.google.longrunning." + + "Operation\"\240\001\312AQ\n\025google.protobuf.Empty\0228" + + "google.cloud.discoveryengine.v1beta.Dele" + + "teEngineMetadata\332A\004name\202\323\344\223\002?*=/v1beta/{" + + "name=projects/*/locations/*/collections/" + + "*/engines/*}\022\340\001\n\014UpdateEngine\0228.google.c" + + "loud.discoveryengine.v1beta.UpdateEngine" + + "Request\032+.google.cloud.discoveryengine.v" + + "1beta.Engine\"i\332A\022engine,update_mask\202\323\344\223\002" + + "N2D/v1beta/{engine.name=projects/*/locat" + + "ions/*/collections/*/engines/*}:\006engine\022" + + "\275\001\n\tGetEngine\0225.google.cloud.discoveryen" + + "gine.v1beta.GetEngineRequest\032+.google.cl" + + "oud.discoveryengine.v1beta.Engine\"L\332A\004na" + + "me\202\323\344\223\002?\022=/v1beta/{name=projects/*/locat" + + "ions/*/collections/*/engines/*}\022\320\001\n\013List" + + "Engines\0227.google.cloud.discoveryengine.v" + + "1beta.ListEnginesRequest\0328.google.cloud." + + "discoveryengine.v1beta.ListEnginesRespon" + + "se\"N\332A\006parent\202\323\344\223\002?\022=/v1beta/{parent=pro" + + "jects/*/locations/*/collections/*}/engin" + + "es\022\312\001\n\013PauseEngine\0227.google.cloud.discov" + + "eryengine.v1beta.PauseEngineRequest\032+.go" + + "ogle.cloud.discoveryengine.v1beta.Engine" + + "\"U\332A\004name\202\323\344\223\002H\"C/v1beta/{name=projects/" + + "*/locations/*/collections/*/engines/*}:p" + + "ause:\001*\022\315\001\n\014ResumeEngine\0228.google.cloud." + + "discoveryengine.v1beta.ResumeEngineReque" + + "st\032+.google.cloud.discoveryengine.v1beta" + + ".Engine\"V\332A\004name\202\323\344\223\002I\"D/v1beta/{name=pr" + + "ojects/*/locations/*/collections/*/engin" + + "es/*}:resume:\001*\022\344\001\n\nTuneEngine\0226.google." + + "cloud.discoveryengine.v1beta.TuneEngineR" + + "equest\032\035.google.longrunning.Operation\"\177\312" + + "A(\n\022TuneEngineResponse\022\022TuneEngineMetada" + + "ta\332A\004name\202\323\344\223\002G\"B/v1beta/{name=projects/" + + "*/locations/*/collections/*/engines/*}:t" + + "une:\001*\022\254\001\n\014GetIamPolicy\022\".google.iam.v1." + + "GetIamPolicyRequest\032\025.google.iam.v1.Poli" + + "cy\"a\332A\010resource\202\323\344\223\002P\022N/v1beta/{resource" + + "=projects/*/locations/*/collections/*/en" + + "gines/*}:getIamPolicy\022\266\001\n\014SetIamPolicy\022\"" + + ".google.iam.v1.SetIamPolicyRequest\032\025.goo" + + "gle.iam.v1.Policy\"k\332A\017resource,policy\202\323\344" + + "\223\002S\"N/v1beta/{resource=projects/*/locati" + + "ons/*/collections/*/engines/*}:setIamPol" + + "icy:\001*\032\317\001\312A\036discoveryengine.googleapis.c" + + "om\322A\252\001https://www.googleapis.com/auth/cl" + + "oud-platform,https://www.googleapis.com/" + + "auth/discoveryengine.readwrite,https://w" + + "ww.googleapis.com/auth/discoveryengine.s" + + "erving.readwriteB\231\002\n\'com.google.cloud.di" + + "scoveryengine.v1betaB\022EngineServiceProto" + + "P\001ZQcloud.google.com/go/discoveryengine/" + + "apiv1beta/discoveryenginepb;discoveryeng" + + "inepb\242\002\017DISCOVERYENGINE\252\002#Google.Cloud.D" + + "iscoveryEngine.V1Beta\312\002#Google\\Cloud\\Dis" + + "coveryEngine\\V1beta\352\002&Google::Cloud::Dis" + + "coveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -212,6 +225,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.discoveryengine.v1beta.EngineProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), @@ -325,6 +340,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.discoveryengine.v1beta.EngineProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Evaluation.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Evaluation.java index ea5393115989..5813c8c75df8 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Evaluation.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Evaluation.java @@ -375,11 +375,11 @@ public interface EvaluationSpecOrBuilder * * *
            -     * Required. The specification of the query set.
            +     * Optional. The specification of the query set.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the querySetSpec field is set. @@ -390,11 +390,11 @@ public interface EvaluationSpecOrBuilder * * *
            -     * Required. The specification of the query set.
            +     * Optional. The specification of the query set.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The querySetSpec. @@ -406,11 +406,11 @@ public interface EvaluationSpecOrBuilder * * *
            -     * Required. The specification of the query set.
            +     * Optional. The specification of the query set.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpecOrBuilder @@ -476,14 +476,14 @@ public interface QuerySetSpecOrBuilder * * *
            -       * Required. The full resource name of the
            +       * Optional. The full resource name of the
                    * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
                    * used for the evaluation, in the format of
                    * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
                    * 
            * * - * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string sample_query_set = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The sampleQuerySet. @@ -494,14 +494,14 @@ public interface QuerySetSpecOrBuilder * * *
            -       * Required. The full resource name of the
            +       * Optional. The full resource name of the
                    * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
                    * used for the evaluation, in the format of
                    * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
                    * 
            * * - * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string sample_query_set = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for sampleQuerySet. @@ -570,14 +570,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -       * Required. The full resource name of the
            +       * Optional. The full resource name of the
                    * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
                    * used for the evaluation, in the format of
                    * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
                    * 
            * * - * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string sample_query_set = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The sampleQuerySet. @@ -599,14 +599,14 @@ public java.lang.String getSampleQuerySet() { * * *
            -       * Required. The full resource name of the
            +       * Optional. The full resource name of the
                    * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
                    * used for the evaluation, in the format of
                    * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
                    * 
            * * - * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string sample_query_set = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for sampleQuerySet. @@ -971,14 +971,14 @@ public Builder mergeFrom( * * *
            -         * Required. The full resource name of the
            +         * Optional. The full resource name of the
                      * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
                      * used for the evaluation, in the format of
                      * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
                      * 
            * * - * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string sample_query_set = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The sampleQuerySet. @@ -999,14 +999,14 @@ public java.lang.String getSampleQuerySet() { * * *
            -         * Required. The full resource name of the
            +         * Optional. The full resource name of the
                      * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
                      * used for the evaluation, in the format of
                      * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
                      * 
            * * - * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string sample_query_set = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return The bytes for sampleQuerySet. @@ -1027,14 +1027,14 @@ public com.google.protobuf.ByteString getSampleQuerySetBytes() { * * *
            -         * Required. The full resource name of the
            +         * Optional. The full resource name of the
                      * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
                      * used for the evaluation, in the format of
                      * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
                      * 
            * * - * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string sample_query_set = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The sampleQuerySet to set. @@ -1054,14 +1054,14 @@ public Builder setSampleQuerySet(java.lang.String value) { * * *
            -         * Required. The full resource name of the
            +         * Optional. The full resource name of the
                      * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
                      * used for the evaluation, in the format of
                      * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
                      * 
            * * - * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string sample_query_set = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -1077,14 +1077,14 @@ public Builder clearSampleQuerySet() { * * *
            -         * Required. The full resource name of the
            +         * Optional. The full resource name of the
                      * [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]
                      * used for the evaluation, in the format of
                      * `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`.
                      * 
            * * - * string sample_query_set = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * string sample_query_set = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } * * * @param value The bytes for sampleQuerySet to set. @@ -1308,11 +1308,11 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest getSearchRequest() * * *
            -     * Required. The specification of the query set.
            +     * Optional. The specification of the query set.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the querySetSpec field is set. @@ -1326,11 +1326,11 @@ public boolean hasQuerySetSpec() { * * *
            -     * Required. The specification of the query set.
            +     * Optional. The specification of the query set.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The querySetSpec. @@ -1348,11 +1348,11 @@ public boolean hasQuerySetSpec() { * * *
            -     * Required. The specification of the query set.
            +     * Optional. The specification of the query set.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override @@ -2129,11 +2129,11 @@ public Builder clearSearchRequest() { * * *
            -       * Required. The specification of the query set.
            +       * Optional. The specification of the query set.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the querySetSpec field is set. @@ -2146,11 +2146,11 @@ public boolean hasQuerySetSpec() { * * *
            -       * Required. The specification of the query set.
            +       * Optional. The specification of the query set.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The querySetSpec. @@ -2171,11 +2171,11 @@ public boolean hasQuerySetSpec() { * * *
            -       * Required. The specification of the query set.
            +       * Optional. The specification of the query set.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setQuerySetSpec( @@ -2197,11 +2197,11 @@ public Builder setQuerySetSpec( * * *
            -       * Required. The specification of the query set.
            +       * Optional. The specification of the query set.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder setQuerySetSpec( @@ -2221,11 +2221,11 @@ public Builder setQuerySetSpec( * * *
            -       * Required. The specification of the query set.
            +       * Optional. The specification of the query set.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder mergeQuerySetSpec( @@ -2254,11 +2254,11 @@ public Builder mergeQuerySetSpec( * * *
            -       * Required. The specification of the query set.
            +       * Optional. The specification of the query set.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public Builder clearQuerySetSpec() { @@ -2276,11 +2276,11 @@ public Builder clearQuerySetSpec() { * * *
            -       * Required. The specification of the query set.
            +       * Optional. The specification of the query set.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec.Builder @@ -2294,11 +2294,11 @@ public Builder clearQuerySetSpec() { * * *
            -       * Required. The specification of the query set.
            +       * Optional. The specification of the query set.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ public com.google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpecOrBuilder @@ -2317,11 +2317,11 @@ public Builder clearQuerySetSpec() { * * *
            -       * Required. The specification of the query set.
            +       * Optional. The specification of the query set.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpec query_set_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationProto.java index d24a6e5bc2bb..746bfd76cf6b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationProto.java @@ -91,9 +91,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016search_request\030\002 \001(\01322.google.c" + "loud.discoveryengine.v1beta.SearchRequestB\003\340A\002H\000\022h\n" + "\016query_set_spec\030\001 \001(\0132K.googl" - + "e.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpecB\003\340A\002\032_\n" + + "e.cloud.discoveryengine.v1beta.Evaluation.EvaluationSpec.QuerySetSpecB\003\340A\001\032_\n" + "\014QuerySetSpec\022O\n" - + "\020sample_query_set\030\001 \001(\tB5\340A\002\372A/\n" + + "\020sample_query_set\030\001 \001(\tB5\340A\001\372A/\n" + "-discoveryengine.googleapis.com/SampleQuerySetB\r\n" + "\013search_spec\"S\n" + "\005State\022\025\n" diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceProto.java index a699e8f0e6fb..7736103d4cff 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/EvaluationServiceProto.java @@ -92,65 +92,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "roto\032#google/longrunning/operations.prot" + "o\"W\n\024GetEvaluationRequest\022?\n\004name\030\001 \001(\tB" + "1\340A\002\372A+\n)discoveryengine.googleapis.com/" - + "Evaluation\"\200\001\n\026ListEvaluationsRequest\022?\n" + + "Evaluation\"\212\001\n\026ListEvaluationsRequest\022?\n" + "\006parent\030\001 \001(\tB/\340A\002\372A)\n\'discoveryengine.g" - + "oogleapis.com/Location\022\021\n\tpage_size\030\002 \001(" - + "\005\022\022\n\npage_token\030\003 \001(\t\"x\n\027ListEvaluations" - + "Response\022D\n\013evaluations\030\001 \003(\0132/.google.c" - + "loud.discoveryengine.v1beta.Evaluation\022\027" - + "\n\017next_page_token\030\002 \001(\t\"\244\001\n\027CreateEvalua" - + "tionRequest\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'dis" - + "coveryengine.googleapis.com/Location\022H\n\n" - + "evaluation\030\002 \001(\0132/.google.cloud.discover" - + "yengine.v1beta.EvaluationB\003\340A\002\"\032\n\030Create" - + "EvaluationMetadata\"\214\001\n\034ListEvaluationRes" - + "ultsRequest\022E\n\nevaluation\030\001 \001(\tB1\340A\002\372A+\n" - + ")discoveryengine.googleapis.com/Evaluati" - + "on\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" - + "\t\"\336\002\n\035ListEvaluationResultsResponse\022o\n\022e" - + "valuation_results\030\001 \003(\0132S.google.cloud.d" - + "iscoveryengine.v1beta.ListEvaluationResu" - + "ltsResponse.EvaluationResult\022\027\n\017next_pag" - + "e_token\030\002 \001(\t\032\262\001\n\020EvaluationResult\022K\n\014sa" - + "mple_query\030\001 \001(\01320.google.cloud.discover" - + "yengine.v1beta.SampleQueryB\003\340A\003\022Q\n\017quali" - + "ty_metrics\030\002 \001(\01323.google.cloud.discover" - + "yengine.v1beta.QualityMetricsB\003\340A\0032\274\010\n\021E" - + "valuationService\022\277\001\n\rGetEvaluation\0229.goo" - + "gle.cloud.discoveryengine.v1beta.GetEval" - + "uationRequest\032/.google.cloud.discoveryen" - + "gine.v1beta.Evaluation\"B\332A\004name\202\323\344\223\0025\0223/" - + "v1beta/{name=projects/*/locations/*/eval" - + "uations/*}\022\322\001\n\017ListEvaluations\022;.google." + + "oogleapis.com/Location\022\026\n\tpage_size\030\002 \001(" + + "\005B\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"x\n\027ListE" + + "valuationsResponse\022D\n\013evaluations\030\001 \003(\0132" + + "/.google.cloud.discoveryengine.v1beta.Ev" + + "aluation\022\027\n\017next_page_token\030\002 \001(\t\"\244\001\n\027Cr" + + "eateEvaluationRequest\022?\n\006parent\030\001 \001(\tB/\340" + + "A\002\372A)\n\'discoveryengine.googleapis.com/Lo" + + "cation\022H\n\nevaluation\030\002 \001(\0132/.google.clou" + + "d.discoveryengine.v1beta.EvaluationB\003\340A\002" + + "\"\032\n\030CreateEvaluationMetadata\"\226\001\n\034ListEva" + + "luationResultsRequest\022E\n\nevaluation\030\001 \001(" + + "\tB1\340A\002\372A+\n)discoveryengine.googleapis.co" + + "m/Evaluation\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\336\002\n\035ListEvaluation" + + "ResultsResponse\022o\n\022evaluation_results\030\001 " + + "\003(\0132S.google.cloud.discoveryengine.v1bet" + + "a.ListEvaluationResultsResponse.Evaluati" + + "onResult\022\027\n\017next_page_token\030\002 \001(\t\032\262\001\n\020Ev" + + "aluationResult\022K\n\014sample_query\030\001 \001(\01320.g" + + "oogle.cloud.discoveryengine.v1beta.Sampl" + + "eQueryB\003\340A\003\022Q\n\017quality_metrics\030\002 \001(\01323.g" + + "oogle.cloud.discoveryengine.v1beta.Quali" + + "tyMetricsB\003\340A\0032\373\t\n\021EvaluationService\022\277\001\n" + + "\rGetEvaluation\0229.google.cloud.discoverye" + + "ngine.v1beta.GetEvaluationRequest\032/.goog" + + "le.cloud.discoveryengine.v1beta.Evaluati" + + "on\"B\332A\004name\202\323\344\223\0025\0223/v1beta/{name=project" + + "s/*/locations/*/evaluations/*}\022\322\001\n\017ListE" + + "valuations\022;.google.cloud.discoveryengin" + + "e.v1beta.ListEvaluationsRequest\032<.google" + + ".cloud.discoveryengine.v1beta.ListEvalua" + + "tionsResponse\"D\332A\006parent\202\323\344\223\0025\0223/v1beta/" + + "{parent=projects/*/locations/*}/evaluati" + + "ons\022\276\002\n\020CreateEvaluation\022<.google.cloud." + + "discoveryengine.v1beta.CreateEvaluationR" + + "equest\032\035.google.longrunning.Operation\"\314\001" + + "\312An\n.google.cloud.discoveryengine.v1beta" + + ".Evaluation\022 builder) { private FactChunk() { chunkText_ = ""; source_ = ""; + uri_ = ""; + title_ = ""; + domain_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -323,6 +326,165 @@ public java.lang.String getSourceMetadataOrThrow(java.lang.String key) { return map.get(key); } + public static final int URI_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
            +   * The URI of the source.
            +   * 
            + * + * string uri = 5; + * + * @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; + } + } + + /** + * + * + *
            +   * The URI of the source.
            +   * 
            + * + * string uri = 5; + * + * @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 = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
            +   * The title of the source.
            +   * 
            + * + * string title = 6; + * + * @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; + } + } + + /** + * + * + *
            +   * The title of the source.
            +   * 
            + * + * string title = 6; + * + * @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; + } + } + + public static final int DOMAIN_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object domain_ = ""; + + /** + * + * + *
            +   * The domain of the source.
            +   * 
            + * + * string domain = 7; + * + * @return The domain. + */ + @java.lang.Override + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } + } + + /** + * + * + *
            +   * The domain of the source.
            +   * 
            + * + * string domain = 7; + * + * @return The bytes for domain. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -348,6 +510,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (index_ != 0) { output.writeInt32(4, index_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(domain_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, domain_); + } getUnknownFields().writeTo(output); } @@ -376,6 +547,15 @@ public int getSerializedSize() { if (index_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, index_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(domain_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, domain_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -396,6 +576,9 @@ public boolean equals(final java.lang.Object obj) { if (!getSource().equals(other.getSource())) return false; if (getIndex() != other.getIndex()) return false; if (!internalGetSourceMetadata().equals(other.internalGetSourceMetadata())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getDomain().equals(other.getDomain())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -417,6 +600,12 @@ public int hashCode() { hash = (37 * hash) + SOURCE_METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetSourceMetadata().hashCode(); } + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -583,6 +772,9 @@ public Builder clear() { source_ = ""; index_ = 0; internalGetMutableSourceMetadata().clear(); + uri_ = ""; + title_ = ""; + domain_ = ""; return this; } @@ -632,6 +824,15 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.FactChunk res result.sourceMetadata_ = internalGetSourceMetadata(); result.sourceMetadata_.makeImmutable(); } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.domain_ = domain_; + } } @java.lang.Override @@ -662,6 +863,21 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.FactChunk other } internalGetMutableSourceMetadata().mergeFrom(other.internalGetSourceMetadata()); bitField0_ |= 0x00000008; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getDomain().isEmpty()) { + domain_ = other.domain_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -718,6 +934,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 32 + case 42: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + domain_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1205,6 +1439,339 @@ public Builder putAllSourceMetadata(java.util.Map + * The URI of the source. + * + * + * string uri = 5; + * + * @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; + } + } + + /** + * + * + *
            +     * The URI of the source.
            +     * 
            + * + * string uri = 5; + * + * @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; + } + } + + /** + * + * + *
            +     * The URI of the source.
            +     * 
            + * + * string uri = 5; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The URI of the source.
            +     * 
            + * + * string uri = 5; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * The URI of the source.
            +     * 
            + * + * string uri = 5; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
            +     * The title of the source.
            +     * 
            + * + * string title = 6; + * + * @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; + } + } + + /** + * + * + *
            +     * The title of the source.
            +     * 
            + * + * string title = 6; + * + * @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; + } + } + + /** + * + * + *
            +     * The title of the source.
            +     * 
            + * + * string title = 6; + * + * @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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The title of the source.
            +     * 
            + * + * string title = 6; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
            +     * The title of the source.
            +     * 
            + * + * string title = 6; + * + * @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_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object domain_ = ""; + + /** + * + * + *
            +     * The domain of the source.
            +     * 
            + * + * string domain = 7; + * + * @return The domain. + */ + public java.lang.String getDomain() { + java.lang.Object ref = domain_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + domain_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * The domain of the source.
            +     * 
            + * + * string domain = 7; + * + * @return The bytes for domain. + */ + public com.google.protobuf.ByteString getDomainBytes() { + java.lang.Object ref = domain_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + domain_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * The domain of the source.
            +     * 
            + * + * string domain = 7; + * + * @param value The domain to set. + * @return This builder for chaining. + */ + public Builder setDomain(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + domain_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The domain of the source.
            +     * 
            + * + * string domain = 7; + * + * @return This builder for chaining. + */ + public Builder clearDomain() { + domain_ = getDefaultInstance().getDomain(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
            +     * The domain of the source.
            +     * 
            + * + * string domain = 7; + * + * @param value The bytes for domain to set. + * @return This builder for chaining. + */ + public Builder setDomainBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + domain_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.FactChunk) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FactChunkOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FactChunkOrBuilder.java index 362e12d37cad..783af1e040a2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FactChunkOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FactChunkOrBuilder.java @@ -159,4 +159,82 @@ java.lang.String getSourceMetadataOrDefault( * map<string, string> source_metadata = 3; */ java.lang.String getSourceMetadataOrThrow(java.lang.String key); + + /** + * + * + *
            +   * The URI of the source.
            +   * 
            + * + * string uri = 5; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
            +   * The URI of the source.
            +   * 
            + * + * string uri = 5; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
            +   * The title of the source.
            +   * 
            + * + * string title = 6; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
            +   * The title of the source.
            +   * 
            + * + * string title = 6; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
            +   * The domain of the source.
            +   * 
            + * + * string domain = 7; + * + * @return The domain. + */ + java.lang.String getDomain(); + + /** + * + * + *
            +   * The domain of the source.
            +   * 
            + * + * string domain = 7; + * + * @return The bytes for domain. + */ + com.google.protobuf.ByteString getDomainBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Feedback.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Feedback.java new file mode 100644 index 000000000000..35dcdb26b3bf --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Feedback.java @@ -0,0 +1,4443 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/feedback.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Information about the user feedback. This information will be used for
            + * logging and metrics purpose.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Feedback} + */ +@com.google.protobuf.Generated +public final class Feedback extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Feedback) + FeedbackOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Feedback"); + } + + // Use Feedback.newBuilder() to construct. + private Feedback(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Feedback() { + feedbackType_ = 0; + reasons_ = emptyIntList(); + comment_ = ""; + llmModelVersion_ = ""; + feedbackSource_ = 0; + componentVersion_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1beta_Feedback_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1beta_Feedback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Feedback.class, + com.google.cloud.discoveryengine.v1beta.Feedback.Builder.class); + } + + /** + * + * + *
            +   * The type of the feedback user gives.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.Feedback.FeedbackType} + */ + public enum FeedbackType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Unspecified feedback type.
            +     * 
            + * + * FEEDBACK_TYPE_UNSPECIFIED = 0; + */ + FEEDBACK_TYPE_UNSPECIFIED(0), + /** + * + * + *
            +     * The user gives a positive feedback.
            +     * 
            + * + * LIKE = 1; + */ + LIKE(1), + /** + * + * + *
            +     * The user gives a negative feedback.
            +     * 
            + * + * DISLIKE = 2; + */ + DISLIKE(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FeedbackType"); + } + + /** + * + * + *
            +     * Unspecified feedback type.
            +     * 
            + * + * FEEDBACK_TYPE_UNSPECIFIED = 0; + */ + public static final int FEEDBACK_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * The user gives a positive feedback.
            +     * 
            + * + * LIKE = 1; + */ + public static final int LIKE_VALUE = 1; + + /** + * + * + *
            +     * The user gives a negative feedback.
            +     * 
            + * + * DISLIKE = 2; + */ + public static final int DISLIKE_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 FeedbackType 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 FeedbackType forNumber(int value) { + switch (value) { + case 0: + return FEEDBACK_TYPE_UNSPECIFIED; + case 1: + return LIKE; + case 2: + return DISLIKE; + 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 FeedbackType findValueByNumber(int number) { + return FeedbackType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Feedback.getDescriptor().getEnumTypes().get(0); + } + + private static final FeedbackType[] VALUES = values(); + + public static FeedbackType 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 FeedbackType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Feedback.FeedbackType) + } + + /** + * + * + *
            +   * The reason why user gives a negative feedback.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.Feedback.Reason} + */ + public enum Reason implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Unspecified reason.
            +     * 
            + * + * REASON_UNSPECIFIED = 0; + */ + REASON_UNSPECIFIED(0), + /** + * + * + *
            +     * The response is inaccurate.
            +     * 
            + * + * INACCURATE_RESPONSE = 1; + */ + INACCURATE_RESPONSE(1), + /** + * + * + *
            +     * The response is not relevant.
            +     * 
            + * + * NOT_RELEVANT = 2; + */ + NOT_RELEVANT(2), + /** + * + * + *
            +     * The response is incomprehensive.
            +     * 
            + * + * INCOMPREHENSIVE = 3; + */ + INCOMPREHENSIVE(3), + /** + * + * + *
            +     * The response is offensive or unsafe.
            +     * 
            + * + * OFFENSIVE_OR_UNSAFE = 4; + */ + OFFENSIVE_OR_UNSAFE(4), + /** + * + * + *
            +     * The response is not well-formatted.
            +     * 
            + * + * FORMAT_AND_STYLES = 6; + */ + FORMAT_AND_STYLES(6), + /** + * + * + *
            +     * The response is not well-associated with the query.
            +     * 
            + * + * BAD_CITATION = 7; + */ + BAD_CITATION(7), + /** + * + * + *
            +     * The expected canvas was not generated for the response.
            +     * 
            + * + * CANVAS_NOT_GENERATED = 8; + */ + CANVAS_NOT_GENERATED(8), + /** + * + * + *
            +     * The generated canvas is of bad quality (e.g. inaccurate, incomplete,
            +     * poorly formatted).
            +     * 
            + * + * CANVAS_QUALITY_BAD = 9; + */ + CANVAS_QUALITY_BAD(9), + /** + * + * + *
            +     * Exporting the generated canvas failed (e.g. download or external
            +     * export action did not complete successfully).
            +     * 
            + * + * CANVAS_EXPORT_FAILED = 10; + */ + CANVAS_EXPORT_FAILED(10), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Reason"); + } + + /** + * + * + *
            +     * Unspecified reason.
            +     * 
            + * + * REASON_UNSPECIFIED = 0; + */ + public static final int REASON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * The response is inaccurate.
            +     * 
            + * + * INACCURATE_RESPONSE = 1; + */ + public static final int INACCURATE_RESPONSE_VALUE = 1; + + /** + * + * + *
            +     * The response is not relevant.
            +     * 
            + * + * NOT_RELEVANT = 2; + */ + public static final int NOT_RELEVANT_VALUE = 2; + + /** + * + * + *
            +     * The response is incomprehensive.
            +     * 
            + * + * INCOMPREHENSIVE = 3; + */ + public static final int INCOMPREHENSIVE_VALUE = 3; + + /** + * + * + *
            +     * The response is offensive or unsafe.
            +     * 
            + * + * OFFENSIVE_OR_UNSAFE = 4; + */ + public static final int OFFENSIVE_OR_UNSAFE_VALUE = 4; + + /** + * + * + *
            +     * The response is not well-formatted.
            +     * 
            + * + * FORMAT_AND_STYLES = 6; + */ + public static final int FORMAT_AND_STYLES_VALUE = 6; + + /** + * + * + *
            +     * The response is not well-associated with the query.
            +     * 
            + * + * BAD_CITATION = 7; + */ + public static final int BAD_CITATION_VALUE = 7; + + /** + * + * + *
            +     * The expected canvas was not generated for the response.
            +     * 
            + * + * CANVAS_NOT_GENERATED = 8; + */ + public static final int CANVAS_NOT_GENERATED_VALUE = 8; + + /** + * + * + *
            +     * The generated canvas is of bad quality (e.g. inaccurate, incomplete,
            +     * poorly formatted).
            +     * 
            + * + * CANVAS_QUALITY_BAD = 9; + */ + public static final int CANVAS_QUALITY_BAD_VALUE = 9; + + /** + * + * + *
            +     * Exporting the generated canvas failed (e.g. download or external
            +     * export action did not complete successfully).
            +     * 
            + * + * CANVAS_EXPORT_FAILED = 10; + */ + public static final int CANVAS_EXPORT_FAILED_VALUE = 10; + + 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 Reason 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 Reason forNumber(int value) { + switch (value) { + case 0: + return REASON_UNSPECIFIED; + case 1: + return INACCURATE_RESPONSE; + case 2: + return NOT_RELEVANT; + case 3: + return INCOMPREHENSIVE; + case 4: + return OFFENSIVE_OR_UNSAFE; + case 6: + return FORMAT_AND_STYLES; + case 7: + return BAD_CITATION; + case 8: + return CANVAS_NOT_GENERATED; + case 9: + return CANVAS_QUALITY_BAD; + case 10: + return CANVAS_EXPORT_FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Reason findValueByNumber(int number) { + return Reason.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Feedback.getDescriptor().getEnumTypes().get(1); + } + + private static final Reason[] VALUES = values(); + + public static Reason 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 Reason(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Feedback.Reason) + } + + /** + * + * + *
            +   * Source of the feedback as per integration.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource} + */ + public enum FeedbackSource implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Unspecified feedback source.
            +     * 
            + * + * FEEDBACK_SOURCE_UNSPECIFIED = 0; + */ + FEEDBACK_SOURCE_UNSPECIFIED(0), + /** + * + * + *
            +     * Feedback source is Google Console.
            +     * 
            + * + * GOOGLE_CONSOLE = 1; + */ + GOOGLE_CONSOLE(1), + /** + * + * + *
            +     * Feedback source is Google Widget.
            +     * 
            + * + * GOOGLE_WIDGET = 2; + */ + GOOGLE_WIDGET(2), + /** + * + * + *
            +     * Feedback source is Google Webapp.
            +     * 
            + * + * GOOGLE_WEBAPP = 3; + */ + GOOGLE_WEBAPP(3), + /** + * + * + *
            +     * Feedback source is Google AgentSpace Mobile app.
            +     * 
            + * + * GOOGLE_AGENTSPACE_MOBILE = 4; + */ + GOOGLE_AGENTSPACE_MOBILE(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FeedbackSource"); + } + + /** + * + * + *
            +     * Unspecified feedback source.
            +     * 
            + * + * FEEDBACK_SOURCE_UNSPECIFIED = 0; + */ + public static final int FEEDBACK_SOURCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Feedback source is Google Console.
            +     * 
            + * + * GOOGLE_CONSOLE = 1; + */ + public static final int GOOGLE_CONSOLE_VALUE = 1; + + /** + * + * + *
            +     * Feedback source is Google Widget.
            +     * 
            + * + * GOOGLE_WIDGET = 2; + */ + public static final int GOOGLE_WIDGET_VALUE = 2; + + /** + * + * + *
            +     * Feedback source is Google Webapp.
            +     * 
            + * + * GOOGLE_WEBAPP = 3; + */ + public static final int GOOGLE_WEBAPP_VALUE = 3; + + /** + * + * + *
            +     * Feedback source is Google AgentSpace Mobile app.
            +     * 
            + * + * GOOGLE_AGENTSPACE_MOBILE = 4; + */ + public static final int GOOGLE_AGENTSPACE_MOBILE_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 FeedbackSource 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 FeedbackSource forNumber(int value) { + switch (value) { + case 0: + return FEEDBACK_SOURCE_UNSPECIFIED; + case 1: + return GOOGLE_CONSOLE; + case 2: + return GOOGLE_WIDGET; + case 3: + return GOOGLE_WEBAPP; + case 4: + return GOOGLE_AGENTSPACE_MOBILE; + 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 FeedbackSource findValueByNumber(int number) { + return FeedbackSource.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Feedback.getDescriptor().getEnumTypes().get(2); + } + + private static final FeedbackSource[] VALUES = values(); + + public static FeedbackSource 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 FeedbackSource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource) + } + + public interface ConversationInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * The index of the user input within the conversation messages.
            +     * 
            + * + * int32 question_index = 1; + * + * @return The questionIndex. + */ + int getQuestionIndex(); + + /** + * + * + *
            +     * Name of the newly generated or continued session.
            +     * 
            + * + * string session = 2; + * + * @return The session. + */ + java.lang.String getSession(); + + /** + * + * + *
            +     * Name of the newly generated or continued session.
            +     * 
            + * + * string session = 2; + * + * @return The bytes for session. + */ + com.google.protobuf.ByteString getSessionBytes(); + + /** + * + * + *
            +     * Required. The user's search query.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the query field is set. + */ + boolean hasQuery(); + + /** + * + * + *
            +     * Required. The user's search query.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The query. + */ + com.google.cloud.discoveryengine.v1beta.Query getQuery(); + + /** + * + * + *
            +     * Required. The user's search query.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.QueryOrBuilder getQueryOrBuilder(); + + /** + * + * + *
            +     * Optional. The token which could be used to fetch the assistant log.
            +     * 
            + * + * string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assistToken. + */ + java.lang.String getAssistToken(); + + /** + * + * + *
            +     * Optional. The token which could be used to fetch the assistant log.
            +     * 
            + * + * string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assistToken. + */ + com.google.protobuf.ByteString getAssistTokenBytes(); + + /** + * + * + *
            +     * Optional. The token which could be used to fetch the answer log.
            +     * 
            + * + * string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The answerQueryToken. + */ + java.lang.String getAnswerQueryToken(); + + /** + * + * + *
            +     * Optional. The token which could be used to fetch the answer log.
            +     * 
            + * + * string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for answerQueryToken. + */ + com.google.protobuf.ByteString getAnswerQueryTokenBytes(); + } + + /** + * + * + *
            +   * The conversation information such as the question index and session name.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo} + */ + public static final class ConversationInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo) + ConversationInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConversationInfo"); + } + + // Use ConversationInfo.newBuilder() to construct. + private ConversationInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConversationInfo() { + session_ = ""; + assistToken_ = ""; + answerQueryToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1beta_Feedback_ConversationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1beta_Feedback_ConversationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo.class, + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo.Builder.class); + } + + private int bitField0_; + public static final int QUESTION_INDEX_FIELD_NUMBER = 1; + private int questionIndex_ = 0; + + /** + * + * + *
            +     * The index of the user input within the conversation messages.
            +     * 
            + * + * int32 question_index = 1; + * + * @return The questionIndex. + */ + @java.lang.Override + public int getQuestionIndex() { + return questionIndex_; + } + + public static final int SESSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object session_ = ""; + + /** + * + * + *
            +     * Name of the newly generated or continued session.
            +     * 
            + * + * string session = 2; + * + * @return The session. + */ + @java.lang.Override + public java.lang.String getSession() { + java.lang.Object ref = session_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + session_ = s; + return s; + } + } + + /** + * + * + *
            +     * Name of the newly generated or continued session.
            +     * 
            + * + * string session = 2; + * + * @return The bytes for session. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSessionBytes() { + java.lang.Object ref = session_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + session_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1beta.Query query_; + + /** + * + * + *
            +     * Required. The user's search query.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the query field is set. + */ + @java.lang.Override + public boolean hasQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. The user's search query.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The query. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Query getQuery() { + return query_ == null + ? com.google.cloud.discoveryengine.v1beta.Query.getDefaultInstance() + : query_; + } + + /** + * + * + *
            +     * Required. The user's search query.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QueryOrBuilder getQueryOrBuilder() { + return query_ == null + ? com.google.cloud.discoveryengine.v1beta.Query.getDefaultInstance() + : query_; + } + + public static final int ASSIST_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object assistToken_ = ""; + + /** + * + * + *
            +     * Optional. The token which could be used to fetch the assistant log.
            +     * 
            + * + * string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assistToken. + */ + @java.lang.Override + public java.lang.String getAssistToken() { + java.lang.Object ref = assistToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistToken_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. The token which could be used to fetch the assistant log.
            +     * 
            + * + * string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assistToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssistTokenBytes() { + java.lang.Object ref = assistToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANSWER_QUERY_TOKEN_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object answerQueryToken_ = ""; + + /** + * + * + *
            +     * Optional. The token which could be used to fetch the answer log.
            +     * 
            + * + * string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The answerQueryToken. + */ + @java.lang.Override + public java.lang.String getAnswerQueryToken() { + java.lang.Object ref = answerQueryToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerQueryToken_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. The token which could be used to fetch the answer log.
            +     * 
            + * + * string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for answerQueryToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswerQueryTokenBytes() { + java.lang.Object ref = answerQueryToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerQueryToken_ = 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 (questionIndex_ != 0) { + output.writeInt32(1, questionIndex_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(session_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, session_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getQuery()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, assistToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerQueryToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, answerQueryToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (questionIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, questionIndex_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(session_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, session_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getQuery()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, assistToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerQueryToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, answerQueryToken_); + } + 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.v1beta.Feedback.ConversationInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo other = + (com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo) obj; + + if (getQuestionIndex() != other.getQuestionIndex()) return false; + if (!getSession().equals(other.getSession())) return false; + if (hasQuery() != other.hasQuery()) return false; + if (hasQuery()) { + if (!getQuery().equals(other.getQuery())) return false; + } + if (!getAssistToken().equals(other.getAssistToken())) return false; + if (!getAnswerQueryToken().equals(other.getAnswerQueryToken())) 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) + QUESTION_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getQuestionIndex(); + hash = (37 * hash) + SESSION_FIELD_NUMBER; + hash = (53 * hash) + getSession().hashCode(); + if (hasQuery()) { + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + } + hash = (37 * hash) + ASSIST_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAssistToken().hashCode(); + hash = (37 * hash) + ANSWER_QUERY_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAnswerQueryToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo 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.v1beta.Feedback.ConversationInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo parseFrom( + 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.v1beta.Feedback.ConversationInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * The conversation information such as the question index and session name.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo) + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1beta_Feedback_ConversationInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1beta_Feedback_ConversationInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo.class, + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetQueryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + questionIndex_ = 0; + session_ = ""; + query_ = null; + if (queryBuilder_ != null) { + queryBuilder_.dispose(); + queryBuilder_ = null; + } + assistToken_ = ""; + answerQueryToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1beta_Feedback_ConversationInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo build() { + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo buildPartial() { + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo result = + new com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.questionIndex_ = questionIndex_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.session_ = session_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.query_ = queryBuilder_ == null ? query_ : queryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.assistToken_ = assistToken_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.answerQueryToken_ = answerQueryToken_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo + .getDefaultInstance()) return this; + if (other.getQuestionIndex() != 0) { + setQuestionIndex(other.getQuestionIndex()); + } + if (!other.getSession().isEmpty()) { + session_ = other.session_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasQuery()) { + mergeQuery(other.getQuery()); + } + if (!other.getAssistToken().isEmpty()) { + assistToken_ = other.assistToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getAnswerQueryToken().isEmpty()) { + answerQueryToken_ = other.answerQueryToken_; + 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 8: + { + questionIndex_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + session_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + assistToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + answerQueryToken_ = 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 int questionIndex_; + + /** + * + * + *
            +       * The index of the user input within the conversation messages.
            +       * 
            + * + * int32 question_index = 1; + * + * @return The questionIndex. + */ + @java.lang.Override + public int getQuestionIndex() { + return questionIndex_; + } + + /** + * + * + *
            +       * The index of the user input within the conversation messages.
            +       * 
            + * + * int32 question_index = 1; + * + * @param value The questionIndex to set. + * @return This builder for chaining. + */ + public Builder setQuestionIndex(int value) { + + questionIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The index of the user input within the conversation messages.
            +       * 
            + * + * int32 question_index = 1; + * + * @return This builder for chaining. + */ + public Builder clearQuestionIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + questionIndex_ = 0; + onChanged(); + return this; + } + + private java.lang.Object session_ = ""; + + /** + * + * + *
            +       * Name of the newly generated or continued session.
            +       * 
            + * + * string session = 2; + * + * @return The session. + */ + public java.lang.String getSession() { + java.lang.Object ref = session_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + session_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Name of the newly generated or continued session.
            +       * 
            + * + * string session = 2; + * + * @return The bytes for session. + */ + public com.google.protobuf.ByteString getSessionBytes() { + java.lang.Object ref = session_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + session_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Name of the newly generated or continued session.
            +       * 
            + * + * string session = 2; + * + * @param value The session to set. + * @return This builder for chaining. + */ + public Builder setSession(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + session_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Name of the newly generated or continued session.
            +       * 
            + * + * string session = 2; + * + * @return This builder for chaining. + */ + public Builder clearSession() { + session_ = getDefaultInstance().getSession(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Name of the newly generated or continued session.
            +       * 
            + * + * string session = 2; + * + * @param value The bytes for session to set. + * @return This builder for chaining. + */ + public Builder setSessionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + session_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.Query query_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Query, + com.google.cloud.discoveryengine.v1beta.Query.Builder, + com.google.cloud.discoveryengine.v1beta.QueryOrBuilder> + queryBuilder_; + + /** + * + * + *
            +       * Required. The user's search query.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the query field is set. + */ + public boolean hasQuery() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +       * Required. The user's search query.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The query. + */ + public com.google.cloud.discoveryengine.v1beta.Query getQuery() { + if (queryBuilder_ == null) { + return query_ == null + ? com.google.cloud.discoveryengine.v1beta.Query.getDefaultInstance() + : query_; + } else { + return queryBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Required. The user's search query.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQuery(com.google.cloud.discoveryengine.v1beta.Query value) { + if (queryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + } else { + queryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The user's search query.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setQuery( + com.google.cloud.discoveryengine.v1beta.Query.Builder builderForValue) { + if (queryBuilder_ == null) { + query_ = builderForValue.build(); + } else { + queryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The user's search query.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeQuery(com.google.cloud.discoveryengine.v1beta.Query value) { + if (queryBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && query_ != null + && query_ != com.google.cloud.discoveryengine.v1beta.Query.getDefaultInstance()) { + getQueryBuilder().mergeFrom(value); + } else { + query_ = value; + } + } else { + queryBuilder_.mergeFrom(value); + } + if (query_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Required. The user's search query.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearQuery() { + bitField0_ = (bitField0_ & ~0x00000004); + query_ = null; + if (queryBuilder_ != null) { + queryBuilder_.dispose(); + queryBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The user's search query.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Query.Builder getQueryBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetQueryFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Required. The user's search query.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.QueryOrBuilder getQueryOrBuilder() { + if (queryBuilder_ != null) { + return queryBuilder_.getMessageOrBuilder(); + } else { + return query_ == null + ? com.google.cloud.discoveryengine.v1beta.Query.getDefaultInstance() + : query_; + } + } + + /** + * + * + *
            +       * Required. The user's search query.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Query, + com.google.cloud.discoveryengine.v1beta.Query.Builder, + com.google.cloud.discoveryengine.v1beta.QueryOrBuilder> + internalGetQueryFieldBuilder() { + if (queryBuilder_ == null) { + queryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Query, + com.google.cloud.discoveryengine.v1beta.Query.Builder, + com.google.cloud.discoveryengine.v1beta.QueryOrBuilder>( + getQuery(), getParentForChildren(), isClean()); + query_ = null; + } + return queryBuilder_; + } + + private java.lang.Object assistToken_ = ""; + + /** + * + * + *
            +       * Optional. The token which could be used to fetch the assistant log.
            +       * 
            + * + * string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assistToken. + */ + public java.lang.String getAssistToken() { + java.lang.Object ref = assistToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. The token which could be used to fetch the assistant log.
            +       * 
            + * + * string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assistToken. + */ + public com.google.protobuf.ByteString getAssistTokenBytes() { + java.lang.Object ref = assistToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. The token which could be used to fetch the assistant log.
            +       * 
            + * + * string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The assistToken to set. + * @return This builder for chaining. + */ + public Builder setAssistToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assistToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The token which could be used to fetch the assistant log.
            +       * 
            + * + * string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAssistToken() { + assistToken_ = getDefaultInstance().getAssistToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The token which could be used to fetch the assistant log.
            +       * 
            + * + * string assist_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for assistToken to set. + * @return This builder for chaining. + */ + public Builder setAssistTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assistToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object answerQueryToken_ = ""; + + /** + * + * + *
            +       * Optional. The token which could be used to fetch the answer log.
            +       * 
            + * + * string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The answerQueryToken. + */ + public java.lang.String getAnswerQueryToken() { + java.lang.Object ref = answerQueryToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerQueryToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. The token which could be used to fetch the answer log.
            +       * 
            + * + * string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for answerQueryToken. + */ + public com.google.protobuf.ByteString getAnswerQueryTokenBytes() { + java.lang.Object ref = answerQueryToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerQueryToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. The token which could be used to fetch the answer log.
            +       * 
            + * + * string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The answerQueryToken to set. + * @return This builder for chaining. + */ + public Builder setAnswerQueryToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + answerQueryToken_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The token which could be used to fetch the answer log.
            +       * 
            + * + * string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAnswerQueryToken() { + answerQueryToken_ = getDefaultInstance().getAnswerQueryToken(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The token which could be used to fetch the answer log.
            +       * 
            + * + * string answer_query_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for answerQueryToken to set. + * @return This builder for chaining. + */ + public Builder setAnswerQueryTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerQueryToken_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo) + private static final com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo(); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Feedback.ConversationInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int FEEDBACK_TYPE_FIELD_NUMBER = 1; + private int feedbackType_ = 0; + + /** + * + * + *
            +   * Required. Indicate whether the user gives a positive or negative feedback.
            +   * If the user gives a negative feedback, there might be more feedback
            +   * details.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for feedbackType. + */ + @java.lang.Override + public int getFeedbackTypeValue() { + return feedbackType_; + } + + /** + * + * + *
            +   * Required. Indicate whether the user gives a positive or negative feedback.
            +   * If the user gives a negative feedback, there might be more feedback
            +   * details.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The feedbackType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackType getFeedbackType() { + com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackType result = + com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackType.forNumber(feedbackType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackType.UNRECOGNIZED + : result; + } + + public static final int REASONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList reasons_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1beta.Feedback.Reason> + reasons_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.discoveryengine.v1beta.Feedback.Reason>() { + public com.google.cloud.discoveryengine.v1beta.Feedback.Reason convert(int from) { + com.google.cloud.discoveryengine.v1beta.Feedback.Reason result = + com.google.cloud.discoveryengine.v1beta.Feedback.Reason.forNumber(from); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Feedback.Reason.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
            +   * Optional. The reason if user gives a thumb down.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the reasons. + */ + @java.lang.Override + public java.util.List getReasonsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1beta.Feedback.Reason>(reasons_, reasons_converter_); + } + + /** + * + * + *
            +   * Optional. The reason if user gives a thumb down.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of reasons. + */ + @java.lang.Override + public int getReasonsCount() { + return reasons_.size(); + } + + /** + * + * + *
            +   * Optional. The reason if user gives a thumb down.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The reasons at the given index. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Feedback.Reason getReasons(int index) { + return reasons_converter_.convert(reasons_.getInt(index)); + } + + /** + * + * + *
            +   * Optional. The reason if user gives a thumb down.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for reasons. + */ + @java.lang.Override + public java.util.List getReasonsValueList() { + return reasons_; + } + + /** + * + * + *
            +   * Optional. The reason if user gives a thumb down.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of reasons at the given index. + */ + @java.lang.Override + public int getReasonsValue(int index) { + return reasons_.getInt(index); + } + + private int reasonsMemoizedSerializedSize; + + public static final int COMMENT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object comment_ = ""; + + /** + * + * + *
            +   * Optional. The additional user comment of the feedback if user gives a thumb
            +   * down.
            +   * 
            + * + * string comment = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The comment. + */ + @java.lang.Override + public java.lang.String getComment() { + java.lang.Object ref = comment_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comment_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The additional user comment of the feedback if user gives a thumb
            +   * down.
            +   * 
            + * + * string comment = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for comment. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCommentBytes() { + java.lang.Object ref = comment_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + comment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONVERSATION_INFO_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversationInfo_; + + /** + * + * + *
            +   * The related conversation information when user gives feedback.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4; + * + * + * @return Whether the conversationInfo field is set. + */ + @java.lang.Override + public boolean hasConversationInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * The related conversation information when user gives feedback.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4; + * + * + * @return The conversationInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo getConversationInfo() { + return conversationInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo.getDefaultInstance() + : conversationInfo_; + } + + /** + * + * + *
            +   * The related conversation information when user gives feedback.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfoOrBuilder + getConversationInfoOrBuilder() { + return conversationInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo.getDefaultInstance() + : conversationInfo_; + } + + public static final int LLM_MODEL_VERSION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object llmModelVersion_ = ""; + + /** + * + * + *
            +   * The version of the LLM model that was used to generate the response.
            +   * 
            + * + * string llm_model_version = 5; + * + * @return The llmModelVersion. + */ + @java.lang.Override + public java.lang.String getLlmModelVersion() { + java.lang.Object ref = llmModelVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + llmModelVersion_ = s; + return s; + } + } + + /** + * + * + *
            +   * The version of the LLM model that was used to generate the response.
            +   * 
            + * + * string llm_model_version = 5; + * + * @return The bytes for llmModelVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLlmModelVersionBytes() { + java.lang.Object ref = llmModelVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + llmModelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FEEDBACK_SOURCE_FIELD_NUMBER = 6; + private int feedbackSource_ = 0; + + /** + * + * + *
            +   * Optional. The UI component the user feedback comes from, which could be
            +   * GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for feedbackSource. + */ + @java.lang.Override + public int getFeedbackSourceValue() { + return feedbackSource_; + } + + /** + * + * + *
            +   * Optional. The UI component the user feedback comes from, which could be
            +   * GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The feedbackSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource getFeedbackSource() { + com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource result = + com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource.forNumber(feedbackSource_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource.UNRECOGNIZED + : result; + } + + public static final int COMPONENT_VERSION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object componentVersion_ = ""; + + /** + * + * + *
            +   * Optional. The version of the component that this report is being sent from.
            +   * 
            + * + * string component_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The componentVersion. + */ + @java.lang.Override + public java.lang.String getComponentVersion() { + java.lang.Object ref = componentVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + componentVersion_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The version of the component that this report is being sent from.
            +   * 
            + * + * string component_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for componentVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getComponentVersionBytes() { + java.lang.Object ref = componentVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + componentVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_TERMS_ACCEPTED_FIELD_NUMBER = 8; + private boolean dataTermsAccepted_ = false; + + /** + * + * + *
            +   * Optional. Whether the customer accepted data use terms.
            +   * 
            + * + * bool data_terms_accepted = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataTermsAccepted. + */ + @java.lang.Override + public boolean getDataTermsAccepted() { + return dataTermsAccepted_; + } + + 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 (feedbackType_ + != com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackType.FEEDBACK_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, feedbackType_); + } + if (getReasonsList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(reasonsMemoizedSerializedSize); + } + for (int i = 0; i < reasons_.size(); i++) { + output.writeEnumNoTag(reasons_.getInt(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(comment_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, comment_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getConversationInfo()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(llmModelVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, llmModelVersion_); + } + if (feedbackSource_ + != com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource + .FEEDBACK_SOURCE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, feedbackSource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(componentVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, componentVersion_); + } + if (dataTermsAccepted_ != false) { + output.writeBool(8, dataTermsAccepted_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (feedbackType_ + != com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackType.FEEDBACK_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, feedbackType_); + } + { + int dataSize = 0; + for (int i = 0; i < reasons_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(reasons_.getInt(i)); + } + size += dataSize; + if (!getReasonsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + reasonsMemoizedSerializedSize = dataSize; + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(comment_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, comment_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConversationInfo()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(llmModelVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, llmModelVersion_); + } + if (feedbackSource_ + != com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource + .FEEDBACK_SOURCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, feedbackSource_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(componentVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, componentVersion_); + } + if (dataTermsAccepted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, dataTermsAccepted_); + } + 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.v1beta.Feedback)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Feedback other = + (com.google.cloud.discoveryengine.v1beta.Feedback) obj; + + if (feedbackType_ != other.feedbackType_) return false; + if (!reasons_.equals(other.reasons_)) return false; + if (!getComment().equals(other.getComment())) return false; + if (hasConversationInfo() != other.hasConversationInfo()) return false; + if (hasConversationInfo()) { + if (!getConversationInfo().equals(other.getConversationInfo())) return false; + } + if (!getLlmModelVersion().equals(other.getLlmModelVersion())) return false; + if (feedbackSource_ != other.feedbackSource_) return false; + if (!getComponentVersion().equals(other.getComponentVersion())) return false; + if (getDataTermsAccepted() != other.getDataTermsAccepted()) 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) + FEEDBACK_TYPE_FIELD_NUMBER; + hash = (53 * hash) + feedbackType_; + if (getReasonsCount() > 0) { + hash = (37 * hash) + REASONS_FIELD_NUMBER; + hash = (53 * hash) + reasons_.hashCode(); + } + hash = (37 * hash) + COMMENT_FIELD_NUMBER; + hash = (53 * hash) + getComment().hashCode(); + if (hasConversationInfo()) { + hash = (37 * hash) + CONVERSATION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getConversationInfo().hashCode(); + } + hash = (37 * hash) + LLM_MODEL_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getLlmModelVersion().hashCode(); + hash = (37 * hash) + FEEDBACK_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + feedbackSource_; + hash = (37 * hash) + COMPONENT_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getComponentVersion().hashCode(); + hash = (37 * hash) + DATA_TERMS_ACCEPTED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDataTermsAccepted()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback 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.v1beta.Feedback parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback parseFrom( + 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.v1beta.Feedback parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.Feedback prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Information about the user feedback. This information will be used for
            +   * logging and metrics purpose.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Feedback} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Feedback) + com.google.cloud.discoveryengine.v1beta.FeedbackOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1beta_Feedback_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1beta_Feedback_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Feedback.class, + com.google.cloud.discoveryengine.v1beta.Feedback.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.Feedback.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetConversationInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + feedbackType_ = 0; + reasons_ = emptyIntList(); + comment_ = ""; + conversationInfo_ = null; + if (conversationInfoBuilder_ != null) { + conversationInfoBuilder_.dispose(); + conversationInfoBuilder_ = null; + } + llmModelVersion_ = ""; + feedbackSource_ = 0; + componentVersion_ = ""; + dataTermsAccepted_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.FeedbackProto + .internal_static_google_cloud_discoveryengine_v1beta_Feedback_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Feedback getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Feedback.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Feedback build() { + com.google.cloud.discoveryengine.v1beta.Feedback result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Feedback buildPartial() { + com.google.cloud.discoveryengine.v1beta.Feedback result = + new com.google.cloud.discoveryengine.v1beta.Feedback(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Feedback result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.feedbackType_ = feedbackType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + reasons_.makeImmutable(); + result.reasons_ = reasons_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.comment_ = comment_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.conversationInfo_ = + conversationInfoBuilder_ == null ? conversationInfo_ : conversationInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.llmModelVersion_ = llmModelVersion_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.feedbackSource_ = feedbackSource_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.componentVersion_ = componentVersion_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.dataTermsAccepted_ = dataTermsAccepted_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Feedback) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Feedback) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Feedback other) { + if (other == com.google.cloud.discoveryengine.v1beta.Feedback.getDefaultInstance()) + return this; + if (other.feedbackType_ != 0) { + setFeedbackTypeValue(other.getFeedbackTypeValue()); + } + if (!other.reasons_.isEmpty()) { + if (reasons_.isEmpty()) { + reasons_ = other.reasons_; + reasons_.makeImmutable(); + bitField0_ |= 0x00000002; + } else { + ensureReasonsIsMutable(); + reasons_.addAll(other.reasons_); + } + onChanged(); + } + if (!other.getComment().isEmpty()) { + comment_ = other.comment_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasConversationInfo()) { + mergeConversationInfo(other.getConversationInfo()); + } + if (!other.getLlmModelVersion().isEmpty()) { + llmModelVersion_ = other.llmModelVersion_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.feedbackSource_ != 0) { + setFeedbackSourceValue(other.getFeedbackSourceValue()); + } + if (!other.getComponentVersion().isEmpty()) { + componentVersion_ = other.componentVersion_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.getDataTermsAccepted() != false) { + setDataTermsAccepted(other.getDataTermsAccepted()); + } + 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: + { + feedbackType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + int tmpRaw = input.readEnum(); + ensureReasonsIsMutable(); + reasons_.addInt(tmpRaw); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureReasonsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + reasons_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 18 + case 26: + { + comment_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetConversationInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + llmModelVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + feedbackSource_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + componentVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + dataTermsAccepted_ = input.readBool(); + bitField0_ |= 0x00000080; + break; + } // case 64 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int feedbackType_ = 0; + + /** + * + * + *
            +     * Required. Indicate whether the user gives a positive or negative feedback.
            +     * If the user gives a negative feedback, there might be more feedback
            +     * details.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for feedbackType. + */ + @java.lang.Override + public int getFeedbackTypeValue() { + return feedbackType_; + } + + /** + * + * + *
            +     * Required. Indicate whether the user gives a positive or negative feedback.
            +     * If the user gives a negative feedback, there might be more feedback
            +     * details.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for feedbackType to set. + * @return This builder for chaining. + */ + public Builder setFeedbackTypeValue(int value) { + feedbackType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Indicate whether the user gives a positive or negative feedback.
            +     * If the user gives a negative feedback, there might be more feedback
            +     * details.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The feedbackType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackType getFeedbackType() { + com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackType result = + com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackType.forNumber(feedbackType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackType.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Required. Indicate whether the user gives a positive or negative feedback.
            +     * If the user gives a negative feedback, there might be more feedback
            +     * details.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The feedbackType to set. + * @return This builder for chaining. + */ + public Builder setFeedbackType( + com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + feedbackType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Indicate whether the user gives a positive or negative feedback.
            +     * If the user gives a negative feedback, there might be more feedback
            +     * details.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearFeedbackType() { + bitField0_ = (bitField0_ & ~0x00000001); + feedbackType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList reasons_ = emptyIntList(); + + private void ensureReasonsIsMutable() { + if (!reasons_.isModifiable()) { + reasons_ = makeMutableCopy(reasons_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
            +     * Optional. The reason if user gives a thumb down.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the reasons. + */ + public java.util.List + getReasonsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.discoveryengine.v1beta.Feedback.Reason>(reasons_, reasons_converter_); + } + + /** + * + * + *
            +     * Optional. The reason if user gives a thumb down.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of reasons. + */ + public int getReasonsCount() { + return reasons_.size(); + } + + /** + * + * + *
            +     * Optional. The reason if user gives a thumb down.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The reasons at the given index. + */ + public com.google.cloud.discoveryengine.v1beta.Feedback.Reason getReasons(int index) { + return reasons_converter_.convert(reasons_.getInt(index)); + } + + /** + * + * + *
            +     * Optional. The reason if user gives a thumb down.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The reasons to set. + * @return This builder for chaining. + */ + public Builder setReasons( + int index, com.google.cloud.discoveryengine.v1beta.Feedback.Reason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReasonsIsMutable(); + reasons_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The reason if user gives a thumb down.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The reasons to add. + * @return This builder for chaining. + */ + public Builder addReasons(com.google.cloud.discoveryengine.v1beta.Feedback.Reason value) { + if (value == null) { + throw new NullPointerException(); + } + ensureReasonsIsMutable(); + reasons_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The reason if user gives a thumb down.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The reasons to add. + * @return This builder for chaining. + */ + public Builder addAllReasons( + java.lang.Iterable + values) { + ensureReasonsIsMutable(); + for (com.google.cloud.discoveryengine.v1beta.Feedback.Reason value : values) { + reasons_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The reason if user gives a thumb down.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearReasons() { + reasons_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The reason if user gives a thumb down.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for reasons. + */ + public java.util.List getReasonsValueList() { + reasons_.makeImmutable(); + return reasons_; + } + + /** + * + * + *
            +     * Optional. The reason if user gives a thumb down.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of reasons at the given index. + */ + public int getReasonsValue(int index) { + return reasons_.getInt(index); + } + + /** + * + * + *
            +     * Optional. The reason if user gives a thumb down.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for reasons to set. + * @return This builder for chaining. + */ + public Builder setReasonsValue(int index, int value) { + ensureReasonsIsMutable(); + reasons_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The reason if user gives a thumb down.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for reasons to add. + * @return This builder for chaining. + */ + public Builder addReasonsValue(int value) { + ensureReasonsIsMutable(); + reasons_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The reason if user gives a thumb down.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for reasons to add. + * @return This builder for chaining. + */ + public Builder addAllReasonsValue(java.lang.Iterable values) { + ensureReasonsIsMutable(); + for (int value : values) { + reasons_.addInt(value); + } + onChanged(); + return this; + } + + private java.lang.Object comment_ = ""; + + /** + * + * + *
            +     * Optional. The additional user comment of the feedback if user gives a thumb
            +     * down.
            +     * 
            + * + * string comment = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The comment. + */ + public java.lang.String getComment() { + java.lang.Object ref = comment_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + comment_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The additional user comment of the feedback if user gives a thumb
            +     * down.
            +     * 
            + * + * string comment = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for comment. + */ + public com.google.protobuf.ByteString getCommentBytes() { + java.lang.Object ref = comment_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + comment_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The additional user comment of the feedback if user gives a thumb
            +     * down.
            +     * 
            + * + * string comment = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The comment to set. + * @return This builder for chaining. + */ + public Builder setComment(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + comment_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The additional user comment of the feedback if user gives a thumb
            +     * down.
            +     * 
            + * + * string comment = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearComment() { + comment_ = getDefaultInstance().getComment(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The additional user comment of the feedback if user gives a thumb
            +     * down.
            +     * 
            + * + * string comment = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for comment to set. + * @return This builder for chaining. + */ + public Builder setCommentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + comment_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversationInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo, + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfoOrBuilder> + conversationInfoBuilder_; + + /** + * + * + *
            +     * The related conversation information when user gives feedback.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4; + * + * + * @return Whether the conversationInfo field is set. + */ + public boolean hasConversationInfo() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * The related conversation information when user gives feedback.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4; + * + * + * @return The conversationInfo. + */ + public com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo getConversationInfo() { + if (conversationInfoBuilder_ == null) { + return conversationInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo.getDefaultInstance() + : conversationInfo_; + } else { + return conversationInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * The related conversation information when user gives feedback.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4; + * + */ + public Builder setConversationInfo( + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo value) { + if (conversationInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversationInfo_ = value; + } else { + conversationInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The related conversation information when user gives feedback.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4; + * + */ + public Builder setConversationInfo( + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo.Builder builderForValue) { + if (conversationInfoBuilder_ == null) { + conversationInfo_ = builderForValue.build(); + } else { + conversationInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The related conversation information when user gives feedback.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4; + * + */ + public Builder mergeConversationInfo( + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo value) { + if (conversationInfoBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && conversationInfo_ != null + && conversationInfo_ + != com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo + .getDefaultInstance()) { + getConversationInfoBuilder().mergeFrom(value); + } else { + conversationInfo_ = value; + } + } else { + conversationInfoBuilder_.mergeFrom(value); + } + if (conversationInfo_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * The related conversation information when user gives feedback.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4; + * + */ + public Builder clearConversationInfo() { + bitField0_ = (bitField0_ & ~0x00000008); + conversationInfo_ = null; + if (conversationInfoBuilder_ != null) { + conversationInfoBuilder_.dispose(); + conversationInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * The related conversation information when user gives feedback.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo.Builder + getConversationInfoBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetConversationInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * The related conversation information when user gives feedback.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfoOrBuilder + getConversationInfoOrBuilder() { + if (conversationInfoBuilder_ != null) { + return conversationInfoBuilder_.getMessageOrBuilder(); + } else { + return conversationInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo.getDefaultInstance() + : conversationInfo_; + } + } + + /** + * + * + *
            +     * The related conversation information when user gives feedback.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo, + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfoOrBuilder> + internalGetConversationInfoFieldBuilder() { + if (conversationInfoBuilder_ == null) { + conversationInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo, + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo.Builder, + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfoOrBuilder>( + getConversationInfo(), getParentForChildren(), isClean()); + conversationInfo_ = null; + } + return conversationInfoBuilder_; + } + + private java.lang.Object llmModelVersion_ = ""; + + /** + * + * + *
            +     * The version of the LLM model that was used to generate the response.
            +     * 
            + * + * string llm_model_version = 5; + * + * @return The llmModelVersion. + */ + public java.lang.String getLlmModelVersion() { + java.lang.Object ref = llmModelVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + llmModelVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * The version of the LLM model that was used to generate the response.
            +     * 
            + * + * string llm_model_version = 5; + * + * @return The bytes for llmModelVersion. + */ + public com.google.protobuf.ByteString getLlmModelVersionBytes() { + java.lang.Object ref = llmModelVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + llmModelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * The version of the LLM model that was used to generate the response.
            +     * 
            + * + * string llm_model_version = 5; + * + * @param value The llmModelVersion to set. + * @return This builder for chaining. + */ + public Builder setLlmModelVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + llmModelVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The version of the LLM model that was used to generate the response.
            +     * 
            + * + * string llm_model_version = 5; + * + * @return This builder for chaining. + */ + public Builder clearLlmModelVersion() { + llmModelVersion_ = getDefaultInstance().getLlmModelVersion(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * The version of the LLM model that was used to generate the response.
            +     * 
            + * + * string llm_model_version = 5; + * + * @param value The bytes for llmModelVersion to set. + * @return This builder for chaining. + */ + public Builder setLlmModelVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + llmModelVersion_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int feedbackSource_ = 0; + + /** + * + * + *
            +     * Optional. The UI component the user feedback comes from, which could be
            +     * GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for feedbackSource. + */ + @java.lang.Override + public int getFeedbackSourceValue() { + return feedbackSource_; + } + + /** + * + * + *
            +     * Optional. The UI component the user feedback comes from, which could be
            +     * GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for feedbackSource to set. + * @return This builder for chaining. + */ + public Builder setFeedbackSourceValue(int value) { + feedbackSource_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The UI component the user feedback comes from, which could be
            +     * GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The feedbackSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource getFeedbackSource() { + com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource result = + com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource.forNumber( + feedbackSource_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Optional. The UI component the user feedback comes from, which could be
            +     * GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The feedbackSource to set. + * @return This builder for chaining. + */ + public Builder setFeedbackSource( + com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + feedbackSource_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The UI component the user feedback comes from, which could be
            +     * GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearFeedbackSource() { + bitField0_ = (bitField0_ & ~0x00000020); + feedbackSource_ = 0; + onChanged(); + return this; + } + + private java.lang.Object componentVersion_ = ""; + + /** + * + * + *
            +     * Optional. The version of the component that this report is being sent from.
            +     * 
            + * + * string component_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The componentVersion. + */ + public java.lang.String getComponentVersion() { + java.lang.Object ref = componentVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + componentVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The version of the component that this report is being sent from.
            +     * 
            + * + * string component_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for componentVersion. + */ + public com.google.protobuf.ByteString getComponentVersionBytes() { + java.lang.Object ref = componentVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + componentVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The version of the component that this report is being sent from.
            +     * 
            + * + * string component_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The componentVersion to set. + * @return This builder for chaining. + */ + public Builder setComponentVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + componentVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The version of the component that this report is being sent from.
            +     * 
            + * + * string component_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearComponentVersion() { + componentVersion_ = getDefaultInstance().getComponentVersion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The version of the component that this report is being sent from.
            +     * 
            + * + * string component_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for componentVersion to set. + * @return This builder for chaining. + */ + public Builder setComponentVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + componentVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private boolean dataTermsAccepted_; + + /** + * + * + *
            +     * Optional. Whether the customer accepted data use terms.
            +     * 
            + * + * bool data_terms_accepted = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataTermsAccepted. + */ + @java.lang.Override + public boolean getDataTermsAccepted() { + return dataTermsAccepted_; + } + + /** + * + * + *
            +     * Optional. Whether the customer accepted data use terms.
            +     * 
            + * + * bool data_terms_accepted = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The dataTermsAccepted to set. + * @return This builder for chaining. + */ + public Builder setDataTermsAccepted(boolean value) { + + dataTermsAccepted_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Whether the customer accepted data use terms.
            +     * 
            + * + * bool data_terms_accepted = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDataTermsAccepted() { + bitField0_ = (bitField0_ & ~0x00000080); + dataTermsAccepted_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Feedback) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Feedback) + private static final com.google.cloud.discoveryengine.v1beta.Feedback DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Feedback(); + } + + public static com.google.cloud.discoveryengine.v1beta.Feedback getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Feedback parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Feedback getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FeedbackOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FeedbackOrBuilder.java new file mode 100644 index 000000000000..70901dd346e0 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FeedbackOrBuilder.java @@ -0,0 +1,305 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/feedback.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface FeedbackOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Feedback) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Indicate whether the user gives a positive or negative feedback.
            +   * If the user gives a negative feedback, there might be more feedback
            +   * details.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for feedbackType. + */ + int getFeedbackTypeValue(); + + /** + * + * + *
            +   * Required. Indicate whether the user gives a positive or negative feedback.
            +   * If the user gives a negative feedback, there might be more feedback
            +   * details.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback.FeedbackType feedback_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The feedbackType. + */ + com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackType getFeedbackType(); + + /** + * + * + *
            +   * Optional. The reason if user gives a thumb down.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the reasons. + */ + java.util.List getReasonsList(); + + /** + * + * + *
            +   * Optional. The reason if user gives a thumb down.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of reasons. + */ + int getReasonsCount(); + + /** + * + * + *
            +   * Optional. The reason if user gives a thumb down.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The reasons at the given index. + */ + com.google.cloud.discoveryengine.v1beta.Feedback.Reason getReasons(int index); + + /** + * + * + *
            +   * Optional. The reason if user gives a thumb down.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for reasons. + */ + java.util.List getReasonsValueList(); + + /** + * + * + *
            +   * Optional. The reason if user gives a thumb down.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Feedback.Reason reasons = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of reasons at the given index. + */ + int getReasonsValue(int index); + + /** + * + * + *
            +   * Optional. The additional user comment of the feedback if user gives a thumb
            +   * down.
            +   * 
            + * + * string comment = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The comment. + */ + java.lang.String getComment(); + + /** + * + * + *
            +   * Optional. The additional user comment of the feedback if user gives a thumb
            +   * down.
            +   * 
            + * + * string comment = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for comment. + */ + com.google.protobuf.ByteString getCommentBytes(); + + /** + * + * + *
            +   * The related conversation information when user gives feedback.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4; + * + * + * @return Whether the conversationInfo field is set. + */ + boolean hasConversationInfo(); + + /** + * + * + *
            +   * The related conversation information when user gives feedback.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4; + * + * + * @return The conversationInfo. + */ + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo getConversationInfo(); + + /** + * + * + *
            +   * The related conversation information when user gives feedback.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo conversation_info = 4; + * + */ + com.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfoOrBuilder + getConversationInfoOrBuilder(); + + /** + * + * + *
            +   * The version of the LLM model that was used to generate the response.
            +   * 
            + * + * string llm_model_version = 5; + * + * @return The llmModelVersion. + */ + java.lang.String getLlmModelVersion(); + + /** + * + * + *
            +   * The version of the LLM model that was used to generate the response.
            +   * 
            + * + * string llm_model_version = 5; + * + * @return The bytes for llmModelVersion. + */ + com.google.protobuf.ByteString getLlmModelVersionBytes(); + + /** + * + * + *
            +   * Optional. The UI component the user feedback comes from, which could be
            +   * GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for feedbackSource. + */ + int getFeedbackSourceValue(); + + /** + * + * + *
            +   * Optional. The UI component the user feedback comes from, which could be
            +   * GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource feedback_source = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The feedbackSource. + */ + com.google.cloud.discoveryengine.v1beta.Feedback.FeedbackSource getFeedbackSource(); + + /** + * + * + *
            +   * Optional. The version of the component that this report is being sent from.
            +   * 
            + * + * string component_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The componentVersion. + */ + java.lang.String getComponentVersion(); + + /** + * + * + *
            +   * Optional. The version of the component that this report is being sent from.
            +   * 
            + * + * string component_version = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for componentVersion. + */ + com.google.protobuf.ByteString getComponentVersionBytes(); + + /** + * + * + *
            +   * Optional. Whether the customer accepted data use terms.
            +   * 
            + * + * bool data_terms_accepted = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The dataTermsAccepted. + */ + boolean getDataTermsAccepted(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FeedbackProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FeedbackProto.java new file mode 100644 index 000000000000..85e892c96b40 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FeedbackProto.java @@ -0,0 +1,154 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/feedback.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public final class FeedbackProto extends com.google.protobuf.GeneratedFile { + private FeedbackProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FeedbackProto"); + } + + 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_discoveryengine_v1beta_Feedback_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Feedback_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Feedback_ConversationInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Feedback_ConversationInfo_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" + + "2google/cloud/discoveryengine/v1beta/feedback.proto\022#google.cloud.discoveryengi" + + "ne.v1beta\032\037google/api/field_behavior.pro" + + "to\0321google/cloud/discoveryengine/v1beta/session.proto\"\325\010\n" + + "\010Feedback\022V\n\r" + + "feedback_type\030\001" + + " \001(\0162:.google.cloud.discoveryengine.v1beta.Feedback.FeedbackTypeB\003\340A\002\022J\n" + + "\007reasons\030\002" + + " \003(\01624.google.cloud.discoveryengine.v1beta.Feedback.ReasonB\003\340A\001\022\024\n" + + "\007comment\030\003 \001(\tB\003\340A\001\022Y\n" + + "\021conversation_info\030\004 \001(\0132" + + ">.google.cloud.discoveryengine.v1beta.Feedback.ConversationInfo\022\031\n" + + "\021llm_model_version\030\005 \001(\t\022Z\n" + + "\017feedback_source\030\006 \001(\0162<.go" + + "ogle.cloud.discoveryengine.v1beta.Feedback.FeedbackSourceB\003\340A\001\022\036\n" + + "\021component_version\030\007 \001(\tB\003\340A\001\022 \n" + + "\023data_terms_accepted\030\010 \001(\010B\003\340A\001\032\267\001\n" + + "\020ConversationInfo\022\026\n" + + "\016question_index\030\001 \001(\005\022\017\n" + + "\007session\030\002 \001(\t\022>\n" + + "\005query\030\003" + + " \001(\0132*.google.cloud.discoveryengine.v1beta.QueryB\003\340A\002\022\031\n" + + "\014assist_token\030\004 \001(\tB\003\340A\001\022\037\n" + + "\022answer_query_token\030\005 \001(\tB\003\340A\001\"D\n" + + "\014FeedbackType\022\035\n" + + "\031FEEDBACK_TYPE_UNSPECIFIED\020\000\022\010\n" + + "\004LIKE\020\001\022\013\n" + + "\007DISLIKE\020\002\"\356\001\n" + + "\006Reason\022\026\n" + + "\022REASON_UNSPECIFIED\020\000\022\027\n" + + "\023INACCURATE_RESPONSE\020\001\022\020\n" + + "\014NOT_RELEVANT\020\002\022\023\n" + + "\017INCOMPREHENSIVE\020\003\022\027\n" + + "\023OFFENSIVE_OR_UNSAFE\020\004\022\025\n" + + "\021FORMAT_AND_STYLES\020\006\022\020\n" + + "\014BAD_CITATION\020\007\022\030\n" + + "\024CANVAS_NOT_GENERATED\020\010\022\026\n" + + "\022CANVAS_QUALITY_BAD\020\t\022\030\n" + + "\024CANVAS_EXPORT_FAILED\020\n" + + "\"\211\001\n" + + "\016FeedbackSource\022\037\n" + + "\033FEEDBACK_SOURCE_UNSPECIFIED\020\000\022\022\n" + + "\016GOOGLE_CONSOLE\020\001\022\021\n\r" + + "GOOGLE_WIDGET\020\002\022\021\n\r" + + "GOOGLE_WEBAPP\020\003\022\034\n" + + "\030GOOGLE_AGENTSPACE_MOBILE\020\004B\224\002\n" + + "\'com.google.cloud.discoveryengine.v1betaB\r" + + "FeedbackProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discov" + + "eryenginepb;discoveryenginepb\242\002\017DISCOVER" + + "YENGINE\252\002#Google.Cloud.DiscoveryEngine.V" + + "1Beta\312\002#Google\\Cloud\\DiscoveryEngine\\V1b" + + "eta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.SessionProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_Feedback_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1beta_Feedback_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Feedback_descriptor, + new java.lang.String[] { + "FeedbackType", + "Reasons", + "Comment", + "ConversationInfo", + "LlmModelVersion", + "FeedbackSource", + "ComponentVersion", + "DataTermsAccepted", + }); + internal_static_google_cloud_discoveryengine_v1beta_Feedback_ConversationInfo_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Feedback_descriptor.getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_Feedback_ConversationInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Feedback_ConversationInfo_descriptor, + new java.lang.String[] { + "QuestionIndex", "Session", "Query", "AssistToken", "AnswerQueryToken", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.SessionProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FhirStoreSource.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FhirStoreSource.java index 3c949c2675dd..62d4d7071b3d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FhirStoreSource.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FhirStoreSource.java @@ -270,6 +270,34 @@ public com.google.protobuf.ByteString getResourceTypesBytes(int index) { return resourceTypes_.getByteString(index); } + public static final int UPDATE_FROM_LATEST_PREDEFINED_SCHEMA_FIELD_NUMBER = 4; + private boolean updateFromLatestPredefinedSchema_ = false; + + /** + * + * + *
            +   * Optional. Whether to update the DataStore schema to the latest predefined
            +   * schema.
            +   *
            +   * If true, the DataStore schema will be updated to include any FHIR fields
            +   * or resource types that have been added since the last import and
            +   * corresponding FHIR resources will be imported from the FHIR store.
            +   *
            +   * Note this field cannot be used in conjunction with `resource_types`. It
            +   * should be used after initial import.
            +   * 
            + * + * bool update_from_latest_predefined_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateFromLatestPredefinedSchema. + */ + @java.lang.Override + public boolean getUpdateFromLatestPredefinedSchema() { + return updateFromLatestPredefinedSchema_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -293,6 +321,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < resourceTypes_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 3, resourceTypes_.getRaw(i)); } + if (updateFromLatestPredefinedSchema_ != false) { + output.writeBool(4, updateFromLatestPredefinedSchema_); + } getUnknownFields().writeTo(output); } @@ -316,6 +347,11 @@ public int getSerializedSize() { size += dataSize; size += 1 * getResourceTypesList().size(); } + if (updateFromLatestPredefinedSchema_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 4, updateFromLatestPredefinedSchema_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -335,6 +371,8 @@ public boolean equals(final java.lang.Object obj) { if (!getFhirStore().equals(other.getFhirStore())) return false; if (!getGcsStagingDir().equals(other.getGcsStagingDir())) return false; if (!getResourceTypesList().equals(other.getResourceTypesList())) return false; + if (getUpdateFromLatestPredefinedSchema() != other.getUpdateFromLatestPredefinedSchema()) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -354,6 +392,10 @@ public int hashCode() { hash = (37 * hash) + RESOURCE_TYPES_FIELD_NUMBER; hash = (53 * hash) + getResourceTypesList().hashCode(); } + hash = (37 * hash) + UPDATE_FROM_LATEST_PREDEFINED_SCHEMA_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getUpdateFromLatestPredefinedSchema()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -498,6 +540,7 @@ public Builder clear() { fhirStore_ = ""; gcsStagingDir_ = ""; resourceTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + updateFromLatestPredefinedSchema_ = false; return this; } @@ -544,6 +587,9 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.FhirStoreSour resourceTypes_.makeImmutable(); result.resourceTypes_ = resourceTypes_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateFromLatestPredefinedSchema_ = updateFromLatestPredefinedSchema_; + } } @java.lang.Override @@ -579,6 +625,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.FhirStoreSource } onChanged(); } + if (other.getUpdateFromLatestPredefinedSchema() != false) { + setUpdateFromLatestPredefinedSchema(other.getUpdateFromLatestPredefinedSchema()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -624,6 +673,12 @@ public Builder mergeFrom( resourceTypes_.add(s); break; } // case 26 + case 32: + { + updateFromLatestPredefinedSchema_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1105,6 +1160,92 @@ public Builder addResourceTypesBytes(com.google.protobuf.ByteString value) { return this; } + private boolean updateFromLatestPredefinedSchema_; + + /** + * + * + *
            +     * Optional. Whether to update the DataStore schema to the latest predefined
            +     * schema.
            +     *
            +     * If true, the DataStore schema will be updated to include any FHIR fields
            +     * or resource types that have been added since the last import and
            +     * corresponding FHIR resources will be imported from the FHIR store.
            +     *
            +     * Note this field cannot be used in conjunction with `resource_types`. It
            +     * should be used after initial import.
            +     * 
            + * + * + * bool update_from_latest_predefined_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateFromLatestPredefinedSchema. + */ + @java.lang.Override + public boolean getUpdateFromLatestPredefinedSchema() { + return updateFromLatestPredefinedSchema_; + } + + /** + * + * + *
            +     * Optional. Whether to update the DataStore schema to the latest predefined
            +     * schema.
            +     *
            +     * If true, the DataStore schema will be updated to include any FHIR fields
            +     * or resource types that have been added since the last import and
            +     * corresponding FHIR resources will be imported from the FHIR store.
            +     *
            +     * Note this field cannot be used in conjunction with `resource_types`. It
            +     * should be used after initial import.
            +     * 
            + * + * + * bool update_from_latest_predefined_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The updateFromLatestPredefinedSchema to set. + * @return This builder for chaining. + */ + public Builder setUpdateFromLatestPredefinedSchema(boolean value) { + + updateFromLatestPredefinedSchema_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Whether to update the DataStore schema to the latest predefined
            +     * schema.
            +     *
            +     * If true, the DataStore schema will be updated to include any FHIR fields
            +     * or resource types that have been added since the last import and
            +     * corresponding FHIR resources will be imported from the FHIR store.
            +     *
            +     * Note this field cannot be used in conjunction with `resource_types`. It
            +     * should be used after initial import.
            +     * 
            + * + * + * bool update_from_latest_predefined_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearUpdateFromLatestPredefinedSchema() { + bitField0_ = (bitField0_ & ~0x00000008); + updateFromLatestPredefinedSchema_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.FhirStoreSource) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FhirStoreSourceOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FhirStoreSourceOrBuilder.java index bbe40e1d6261..0199c59b2b02 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FhirStoreSourceOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/FhirStoreSourceOrBuilder.java @@ -155,4 +155,26 @@ public interface FhirStoreSourceOrBuilder * @return The bytes of the resourceTypes at the given index. */ com.google.protobuf.ByteString getResourceTypesBytes(int index); + + /** + * + * + *
            +   * Optional. Whether to update the DataStore schema to the latest predefined
            +   * schema.
            +   *
            +   * If true, the DataStore schema will be updated to include any FHIR fields
            +   * or resource types that have been added since the last import and
            +   * corresponding FHIR resources will be imported from the FHIR store.
            +   *
            +   * Note this field cannot be used in conjunction with `resource_types`. It
            +   * should be used after initial import.
            +   * 
            + * + * bool update_from_latest_predefined_schema = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateFromLatestPredefinedSchema. + */ + boolean getUpdateFromLatestPredefinedSchema(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GenerateGroundedContentRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GenerateGroundedContentRequest.java index 90eba0b012a4..22f1f15b596c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GenerateGroundedContentRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GenerateGroundedContentRequest.java @@ -247,6 +247,32 @@ public interface GenerationSpecOrBuilder */ float getFrequencyPenalty(); + /** + * + * + *
            +     * If specified, custom value for the seed will be used.
            +     * 
            + * + * optional int32 seed = 12; + * + * @return Whether the seed field is set. + */ + boolean hasSeed(); + + /** + * + * + *
            +     * If specified, custom value for the seed will be used.
            +     * 
            + * + * optional int32 seed = 12; + * + * @return The seed. + */ + int getSeed(); + /** * * @@ -298,6 +324,38 @@ public interface GenerationSpecOrBuilder * @return The maxOutputTokens. */ int getMaxOutputTokens(); + + /** + * + * + *
            +     * Optional. Setting for provisioned throughput.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting provisioned_throughput_setting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provisionedThroughputSetting. + */ + int getProvisionedThroughputSettingValue(); + + /** + * + * + *
            +     * Optional. Setting for provisioned throughput.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting provisioned_throughput_setting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionedThroughputSetting. + */ + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting + getProvisionedThroughputSetting(); } /** @@ -334,6 +392,7 @@ private GenerationSpec(com.google.protobuf.GeneratedMessage.Builder builder) private GenerationSpec() { modelId_ = ""; languageCode_ = ""; + provisionedThroughputSetting_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -353,6 +412,188 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .Builder.class); } + /** + * + * + *
            +     * Setting for provisioned throughput.
            +     * 
            + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting} + */ + public enum ProvisionedThroughputSetting implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Default value. If the user has remaining provisioned throughput,
            +       * provisioned throughput will be used. Otherwise, pay as you go will be
            +       * used.
            +       * 
            + * + * PROVISIONED_THROUGHPUT_SETTING_UNSPECIFIED = 0; + */ + PROVISIONED_THROUGHPUT_SETTING_UNSPECIFIED(0), + /** + * + * + *
            +       * Only use provisioned throughput. If the user has no remaining
            +       * provisioned throughput, an error will be returned.
            +       * 
            + * + * PROVISIONED_THROUGHPUT_ONLY = 1; + */ + PROVISIONED_THROUGHPUT_ONLY(1), + /** + * + * + *
            +       * Disables provisioned throughput.
            +       * 
            + * + * PAY_AS_YOU_GO_ONLY = 2; + */ + PAY_AS_YOU_GO_ONLY(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ProvisionedThroughputSetting"); + } + + /** + * + * + *
            +       * Default value. If the user has remaining provisioned throughput,
            +       * provisioned throughput will be used. Otherwise, pay as you go will be
            +       * used.
            +       * 
            + * + * PROVISIONED_THROUGHPUT_SETTING_UNSPECIFIED = 0; + */ + public static final int PROVISIONED_THROUGHPUT_SETTING_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +       * Only use provisioned throughput. If the user has no remaining
            +       * provisioned throughput, an error will be returned.
            +       * 
            + * + * PROVISIONED_THROUGHPUT_ONLY = 1; + */ + public static final int PROVISIONED_THROUGHPUT_ONLY_VALUE = 1; + + /** + * + * + *
            +       * Disables provisioned throughput.
            +       * 
            + * + * PAY_AS_YOU_GO_ONLY = 2; + */ + public static final int PAY_AS_YOU_GO_ONLY_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 ProvisionedThroughputSetting 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 ProvisionedThroughputSetting forNumber(int value) { + switch (value) { + case 0: + return PROVISIONED_THROUGHPUT_SETTING_UNSPECIFIED; + case 1: + return PROVISIONED_THROUGHPUT_ONLY; + case 2: + return PAY_AS_YOU_GO_ONLY; + 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 ProvisionedThroughputSetting findValueByNumber(int number) { + return ProvisionedThroughputSetting.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ProvisionedThroughputSetting[] VALUES = values(); + + public static ProvisionedThroughputSetting 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 ProvisionedThroughputSetting(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting) + } + private int bitField0_; public static final int MODEL_ID_FIELD_NUMBER = 3; @@ -602,6 +843,41 @@ public float getFrequencyPenalty() { return frequencyPenalty_; } + public static final int SEED_FIELD_NUMBER = 12; + private int seed_ = 0; + + /** + * + * + *
            +     * If specified, custom value for the seed will be used.
            +     * 
            + * + * optional int32 seed = 12; + * + * @return Whether the seed field is set. + */ + @java.lang.Override + public boolean hasSeed() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * If specified, custom value for the seed will be used.
            +     * 
            + * + * optional int32 seed = 12; + * + * @return The seed. + */ + @java.lang.Override + public int getSeed() { + return seed_; + } + public static final int PRESENCE_PENALTY_FIELD_NUMBER = 9; private float presencePenalty_ = 0F; @@ -618,7 +894,7 @@ public float getFrequencyPenalty() { */ @java.lang.Override public boolean hasPresencePenalty() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -653,7 +929,7 @@ public float getPresencePenalty() { */ @java.lang.Override public boolean hasMaxOutputTokens() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -672,6 +948,55 @@ public int getMaxOutputTokens() { return maxOutputTokens_; } + public static final int PROVISIONED_THROUGHPUT_SETTING_FIELD_NUMBER = 13; + private int provisionedThroughputSetting_ = 0; + + /** + * + * + *
            +     * Optional. Setting for provisioned throughput.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting provisioned_throughput_setting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provisionedThroughputSetting. + */ + @java.lang.Override + public int getProvisionedThroughputSettingValue() { + return provisionedThroughputSetting_; + } + + /** + * + * + *
            +     * Optional. Setting for provisioned throughput.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting provisioned_throughput_setting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionedThroughputSetting. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting + getProvisionedThroughputSetting() { + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting + result = + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting.forNumber(provisionedThroughputSetting_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -704,12 +1029,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeFloat(8, frequencyPenalty_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { output.writeFloat(9, presencePenalty_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeInt32(10, maxOutputTokens_); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeInt32(12, seed_); + } + if (provisionedThroughputSetting_ + != com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting.PROVISIONED_THROUGHPUT_SETTING_UNSPECIFIED + .getNumber()) { + output.writeEnum(13, provisionedThroughputSetting_); + } getUnknownFields().writeTo(output); } @@ -737,12 +1071,23 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, frequencyPenalty_); } - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(9, presencePenalty_); } - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, maxOutputTokens_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, seed_); + } + if (provisionedThroughputSetting_ + != com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting.PROVISIONED_THROUGHPUT_SETTING_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 13, provisionedThroughputSetting_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -783,6 +1128,10 @@ public boolean equals(final java.lang.Object obj) { if (java.lang.Float.floatToIntBits(getFrequencyPenalty()) != java.lang.Float.floatToIntBits(other.getFrequencyPenalty())) return false; } + if (hasSeed() != other.hasSeed()) return false; + if (hasSeed()) { + if (getSeed() != other.getSeed()) return false; + } if (hasPresencePenalty() != other.hasPresencePenalty()) return false; if (hasPresencePenalty()) { if (java.lang.Float.floatToIntBits(getPresencePenalty()) @@ -792,6 +1141,7 @@ public boolean equals(final java.lang.Object obj) { if (hasMaxOutputTokens()) { if (getMaxOutputTokens() != other.getMaxOutputTokens()) return false; } + if (provisionedThroughputSetting_ != other.provisionedThroughputSetting_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -823,6 +1173,10 @@ public int hashCode() { hash = (37 * hash) + FREQUENCY_PENALTY_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getFrequencyPenalty()); } + if (hasSeed()) { + hash = (37 * hash) + SEED_FIELD_NUMBER; + hash = (53 * hash) + getSeed(); + } if (hasPresencePenalty()) { hash = (37 * hash) + PRESENCE_PENALTY_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getPresencePenalty()); @@ -831,6 +1185,8 @@ public int hashCode() { hash = (37 * hash) + MAX_OUTPUT_TOKENS_FIELD_NUMBER; hash = (53 * hash) + getMaxOutputTokens(); } + hash = (37 * hash) + PROVISIONED_THROUGHPUT_SETTING_FIELD_NUMBER; + hash = (53 * hash) + provisionedThroughputSetting_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1002,8 +1358,10 @@ public Builder clear() { topP_ = 0F; topK_ = 0; frequencyPenalty_ = 0F; + seed_ = 0; presencePenalty_ = 0F; maxOutputTokens_ = 0; + provisionedThroughputSetting_ = 0; return this; } @@ -1073,13 +1431,20 @@ private void buildPartial0( to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { - result.presencePenalty_ = presencePenalty_; + result.seed_ = seed_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000080) != 0)) { - result.maxOutputTokens_ = maxOutputTokens_; + result.presencePenalty_ = presencePenalty_; to_bitField0_ |= 0x00000020; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.maxOutputTokens_ = maxOutputTokens_; + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.provisionedThroughputSetting_ = provisionedThroughputSetting_; + } result.bitField0_ |= to_bitField0_; } @@ -1126,12 +1491,18 @@ public Builder mergeFrom( if (other.hasFrequencyPenalty()) { setFrequencyPenalty(other.getFrequencyPenalty()); } + if (other.hasSeed()) { + setSeed(other.getSeed()); + } if (other.hasPresencePenalty()) { setPresencePenalty(other.getPresencePenalty()); } if (other.hasMaxOutputTokens()) { setMaxOutputTokens(other.getMaxOutputTokens()); } + if (other.provisionedThroughputSetting_ != 0) { + setProvisionedThroughputSettingValue(other.getProvisionedThroughputSettingValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1197,15 +1568,27 @@ public Builder mergeFrom( case 77: { presencePenalty_ = input.readFloat(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 77 case 80: { maxOutputTokens_ = input.readInt32(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 80 + case 96: + { + seed_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 96 + case 104: + { + provisionedThroughputSetting_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1740,21 +2123,21 @@ public Builder clearFrequencyPenalty() { return this; } - private float presencePenalty_; + private int seed_; /** * * *
            -       * If specified, custom value for presence penalty will be used.
            +       * If specified, custom value for the seed will be used.
                    * 
            * - * optional float presence_penalty = 9; + * optional int32 seed = 12; * - * @return Whether the presencePenalty field is set. + * @return Whether the seed field is set. */ @java.lang.Override - public boolean hasPresencePenalty() { + public boolean hasSeed() { return ((bitField0_ & 0x00000040) != 0); } @@ -1762,33 +2145,33 @@ public boolean hasPresencePenalty() { * * *
            -       * If specified, custom value for presence penalty will be used.
            +       * If specified, custom value for the seed will be used.
                    * 
            * - * optional float presence_penalty = 9; + * optional int32 seed = 12; * - * @return The presencePenalty. + * @return The seed. */ @java.lang.Override - public float getPresencePenalty() { - return presencePenalty_; + public int getSeed() { + return seed_; } /** * * *
            -       * If specified, custom value for presence penalty will be used.
            +       * If specified, custom value for the seed will be used.
                    * 
            * - * optional float presence_penalty = 9; + * optional int32 seed = 12; * - * @param value The presencePenalty to set. + * @param value The seed to set. * @return This builder for chaining. */ - public Builder setPresencePenalty(float value) { + public Builder setSeed(int value) { - presencePenalty_ = value; + seed_ = value; bitField0_ |= 0x00000040; onChanged(); return this; @@ -1798,27 +2181,99 @@ public Builder setPresencePenalty(float value) { * * *
            -       * If specified, custom value for presence penalty will be used.
            +       * If specified, custom value for the seed will be used.
                    * 
            * - * optional float presence_penalty = 9; + * optional int32 seed = 12; * * @return This builder for chaining. */ - public Builder clearPresencePenalty() { + public Builder clearSeed() { bitField0_ = (bitField0_ & ~0x00000040); - presencePenalty_ = 0F; + seed_ = 0; onChanged(); return this; } - private int maxOutputTokens_; + private float presencePenalty_; /** * * *
            -       * If specified, custom value for max output tokens will be used.
            +       * 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_ & 0x00000080) != 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_ |= 0x00000080; + 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_ & ~0x00000080); + 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; @@ -1827,7 +2282,7 @@ public Builder clearPresencePenalty() { */ @java.lang.Override public boolean hasMaxOutputTokens() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** @@ -1861,7 +2316,7 @@ public int getMaxOutputTokens() { public Builder setMaxOutputTokens(int value) { maxOutputTokens_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -1878,12 +2333,129 @@ public Builder setMaxOutputTokens(int value) { * @return This builder for chaining. */ public Builder clearMaxOutputTokens() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); maxOutputTokens_ = 0; onChanged(); return this; } + private int provisionedThroughputSetting_ = 0; + + /** + * + * + *
            +       * Optional. Setting for provisioned throughput.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting provisioned_throughput_setting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for provisionedThroughputSetting. + */ + @java.lang.Override + public int getProvisionedThroughputSettingValue() { + return provisionedThroughputSetting_; + } + + /** + * + * + *
            +       * Optional. Setting for provisioned throughput.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting provisioned_throughput_setting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for provisionedThroughputSetting to set. + * @return This builder for chaining. + */ + public Builder setProvisionedThroughputSettingValue(int value) { + provisionedThroughputSetting_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Setting for provisioned throughput.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting provisioned_throughput_setting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The provisionedThroughputSetting. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting + getProvisionedThroughputSetting() { + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting + result = + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GenerationSpec.ProvisionedThroughputSetting.forNumber( + provisionedThroughputSetting_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Optional. Setting for provisioned throughput.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting provisioned_throughput_setting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The provisionedThroughputSetting to set. + * @return This builder for chaining. + */ + public Builder setProvisionedThroughputSetting( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec + .ProvisionedThroughputSetting + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + provisionedThroughputSetting_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Setting for provisioned throughput.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec.ProvisionedThroughputSetting provisioned_throughput_setting = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearProvisionedThroughputSetting() { + bitField0_ = (bitField0_ & ~0x00000200); + provisionedThroughputSetting_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec) } @@ -3970,6 +4542,53 @@ public interface GroundingSourceOrBuilder .GoogleSearchSourceOrBuilder getGoogleSearchSourceOrBuilder(); + /** + * + * + *
            +     * If set, grounding is performed with enterprise web retrieval.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource enterprise_web_retrieval_source = 8; + * + * + * @return Whether the enterpriseWebRetrievalSource field is set. + */ + boolean hasEnterpriseWebRetrievalSource(); + + /** + * + * + *
            +     * If set, grounding is performed with enterprise web retrieval.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource enterprise_web_retrieval_source = 8; + * + * + * @return The enterpriseWebRetrievalSource. + */ + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource + getEnterpriseWebRetrievalSource(); + + /** + * + * + *
            +     * If set, grounding is performed with enterprise web retrieval.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource enterprise_web_retrieval_source = 8; + * + */ + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSourceOrBuilder + getEnterpriseWebRetrievalSourceOrBuilder(); + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource .SourceCase getSourceCase(); @@ -6816,6 +7435,92 @@ public interface GoogleSearchSourceOrBuilder com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest .DynamicRetrievalConfigurationOrBuilder getDynamicRetrievalConfigOrBuilder(); + + /** + * + * + *
            +       * Optional. List of domains to be excluded from the search results.
            +       * 
            + * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the excludeDomains. + */ + java.util.List getExcludeDomainsList(); + + /** + * + * + *
            +       * Optional. List of domains to be excluded from the search results.
            +       * 
            + * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of excludeDomains. + */ + int getExcludeDomainsCount(); + + /** + * + * + *
            +       * Optional. List of domains to be excluded from the search results.
            +       * 
            + * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The excludeDomains at the given index. + */ + java.lang.String getExcludeDomains(int index); + + /** + * + * + *
            +       * Optional. List of domains to be excluded from the search results.
            +       * 
            + * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the excludeDomains at the given index. + */ + com.google.protobuf.ByteString getExcludeDomainsBytes(int index); + + /** + * + * + *
            +       * Optional. Sites with confidence level chosen & above this value will be
            +       * blocked from the search results.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for blockingConfidence. + */ + int getBlockingConfidenceValue(); + + /** + * + * + *
            +       * Optional. Sites with confidence level chosen & above this value will be
            +       * blocked from the search results.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The blockingConfidence. + */ + com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold getBlockingConfidence(); } /** @@ -6849,7 +7554,10 @@ private GoogleSearchSource(com.google.protobuf.GeneratedMessage.Builder build super(builder); } - private GoogleSearchSource() {} + private GoogleSearchSource() { + excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + blockingConfidence_ = 0; + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto @@ -6939,10 +7647,125 @@ public boolean hasDynamicRetrievalConfig() { : dynamicRetrievalConfig_; } - private byte memoizedIsInitialized = -1; + public static final int EXCLUDE_DOMAINS_FIELD_NUMBER = 5; - @java.lang.Override - public final boolean isInitialized() { + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludeDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +       * Optional. List of domains to be excluded from the search results.
            +       * 
            + * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the excludeDomains. + */ + public com.google.protobuf.ProtocolStringList getExcludeDomainsList() { + return excludeDomains_; + } + + /** + * + * + *
            +       * Optional. List of domains to be excluded from the search results.
            +       * 
            + * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of excludeDomains. + */ + public int getExcludeDomainsCount() { + return excludeDomains_.size(); + } + + /** + * + * + *
            +       * Optional. List of domains to be excluded from the search results.
            +       * 
            + * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The excludeDomains at the given index. + */ + public java.lang.String getExcludeDomains(int index) { + return excludeDomains_.get(index); + } + + /** + * + * + *
            +       * Optional. List of domains to be excluded from the search results.
            +       * 
            + * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the excludeDomains at the given index. + */ + public com.google.protobuf.ByteString getExcludeDomainsBytes(int index) { + return excludeDomains_.getByteString(index); + } + + public static final int BLOCKING_CONFIDENCE_FIELD_NUMBER = 6; + private int blockingConfidence_ = 0; + + /** + * + * + *
            +       * Optional. Sites with confidence level chosen & above this value will be
            +       * blocked from the search results.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for blockingConfidence. + */ + @java.lang.Override + public int getBlockingConfidenceValue() { + return blockingConfidence_; + } + + /** + * + * + *
            +       * Optional. Sites with confidence level chosen & above this value will be
            +       * blocked from the search results.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The blockingConfidence. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold + getBlockingConfidence() { + com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold result = + com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold.forNumber( + blockingConfidence_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold.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; @@ -6956,6 +7779,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getDynamicRetrievalConfig()); } + for (int i = 0; i < excludeDomains_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, excludeDomains_.getRaw(i)); + } + if (blockingConfidence_ + != com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold + .PHISH_BLOCK_THRESHOLD_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, blockingConfidence_); + } getUnknownFields().writeTo(output); } @@ -6970,6 +7802,20 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, getDynamicRetrievalConfig()); } + { + int dataSize = 0; + for (int i = 0; i < excludeDomains_.size(); i++) { + dataSize += computeStringSizeNoTag(excludeDomains_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludeDomainsList().size(); + } + if (blockingConfidence_ + != com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold + .PHISH_BLOCK_THRESHOLD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, blockingConfidence_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -6997,6 +7843,8 @@ public boolean equals(final java.lang.Object obj) { if (hasDynamicRetrievalConfig()) { if (!getDynamicRetrievalConfig().equals(other.getDynamicRetrievalConfig())) return false; } + if (!getExcludeDomainsList().equals(other.getExcludeDomainsList())) return false; + if (blockingConfidence_ != other.blockingConfidence_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -7012,6 +7860,12 @@ public int hashCode() { hash = (37 * hash) + DYNAMIC_RETRIEVAL_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getDynamicRetrievalConfig().hashCode(); } + if (getExcludeDomainsCount() > 0) { + hash = (37 * hash) + EXCLUDE_DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getExcludeDomainsList().hashCode(); + } + hash = (37 * hash) + BLOCKING_CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + blockingConfidence_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -7196,6 +8050,8 @@ public Builder clear() { dynamicRetrievalConfigBuilder_.dispose(); dynamicRetrievalConfigBuilder_ = null; } + excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + blockingConfidence_ = 0; return this; } @@ -7255,6 +8111,13 @@ private void buildPartial0( : dynamicRetrievalConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000002) != 0)) { + excludeDomains_.makeImmutable(); + result.excludeDomains_ = excludeDomains_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.blockingConfidence_ = blockingConfidence_; + } result.bitField0_ |= to_bitField0_; } @@ -7284,6 +8147,19 @@ public Builder mergeFrom( if (other.hasDynamicRetrievalConfig()) { mergeDynamicRetrievalConfig(other.getDynamicRetrievalConfig()); } + if (!other.excludeDomains_.isEmpty()) { + if (excludeDomains_.isEmpty()) { + excludeDomains_ = other.excludeDomains_; + bitField0_ |= 0x00000002; + } else { + ensureExcludeDomainsIsMutable(); + excludeDomains_.addAll(other.excludeDomains_); + } + onChanged(); + } + if (other.blockingConfidence_ != 0) { + setBlockingConfidenceValue(other.getBlockingConfidenceValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -7318,6 +8194,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 18 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludeDomainsIsMutable(); + excludeDomains_.add(s); + break; + } // case 42 + case 48: + { + blockingConfidence_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7588,83 +8477,1434 @@ public Builder clearDynamicRetrievalConfig() { return dynamicRetrievalConfigBuilder_; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource) - } - - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource) - private static final com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest - .GroundingSource.GoogleSearchSource - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest - .GroundingSource.GoogleSearchSource(); - } + private com.google.protobuf.LazyStringArrayList excludeDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest - .GroundingSource.GoogleSearchSource - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private void ensureExcludeDomainsIsMutable() { + if (!excludeDomains_.isModifiable()) { + excludeDomains_ = new com.google.protobuf.LazyStringArrayList(excludeDomains_); + } + bitField0_ |= 0x00000002; + } - 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(); - } - }; + /** + * + * + *
            +         * Optional. List of domains to be excluded from the search results.
            +         * 
            + * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeDomains. + */ + public com.google.protobuf.ProtocolStringList getExcludeDomainsList() { + excludeDomains_.makeImmutable(); + return excludeDomains_; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * + * + *
            +         * Optional. List of domains to be excluded from the search results.
            +         * 
            + * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeDomains. + */ + public int getExcludeDomainsCount() { + return excludeDomains_.size(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * + * + *
            +         * Optional. List of domains to be excluded from the search results.
            +         * 
            + * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeDomains at the given index. + */ + public java.lang.String getExcludeDomains(int index) { + return excludeDomains_.get(index); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource - .GoogleSearchSource - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + /** + * + * + *
            +         * Optional. List of domains to be excluded from the search results.
            +         * 
            + * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeDomains at the given index. + */ + public com.google.protobuf.ByteString getExcludeDomainsBytes(int index) { + return excludeDomains_.getByteString(index); + } - private int sourceCase_ = 0; + /** + * + * + *
            +         * Optional. List of domains to be excluded from the search results.
            +         * 
            + * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The excludeDomains to set. + * @return This builder for chaining. + */ + public Builder setExcludeDomains(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeDomainsIsMutable(); + excludeDomains_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - @SuppressWarnings("serial") - private java.lang.Object source_; + /** + * + * + *
            +         * Optional. List of domains to be excluded from the search results.
            +         * 
            + * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The excludeDomains to add. + * @return This builder for chaining. + */ + public Builder addExcludeDomains(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeDomainsIsMutable(); + excludeDomains_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - 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; + /** + * + * + *
            +         * Optional. List of domains to be excluded from the search results.
            +         * 
            + * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The excludeDomains to add. + * @return This builder for chaining. + */ + public Builder addAllExcludeDomains(java.lang.Iterable values) { + ensureExcludeDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludeDomains_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - private SourceCase(int value) { - this.value = value; + /** + * + * + *
            +         * Optional. List of domains to be excluded from the search results.
            +         * 
            + * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExcludeDomains() { + excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. List of domains to be excluded from the search results.
            +         * 
            + * + * repeated string exclude_domains = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the excludeDomains to add. + * @return This builder for chaining. + */ + public Builder addExcludeDomainsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludeDomainsIsMutable(); + excludeDomains_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int blockingConfidence_ = 0; + + /** + * + * + *
            +         * Optional. Sites with confidence level chosen & above this value will be
            +         * blocked from the search results.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for blockingConfidence. + */ + @java.lang.Override + public int getBlockingConfidenceValue() { + return blockingConfidence_; + } + + /** + * + * + *
            +         * Optional. Sites with confidence level chosen & above this value will be
            +         * blocked from the search results.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for blockingConfidence to set. + * @return This builder for chaining. + */ + public Builder setBlockingConfidenceValue(int value) { + blockingConfidence_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Sites with confidence level chosen & above this value will be
            +         * blocked from the search results.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The blockingConfidence. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold + getBlockingConfidence() { + com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold result = + com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold.forNumber( + blockingConfidence_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +         * Optional. Sites with confidence level chosen & above this value will be
            +         * blocked from the search results.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The blockingConfidence to set. + * @return This builder for chaining. + */ + public Builder setBlockingConfidence( + com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + blockingConfidence_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Sites with confidence level chosen & above this value will be
            +         * blocked from the search results.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBlockingConfidence() { + bitField0_ = (bitField0_ & ~0x00000004); + blockingConfidence_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource) + private static final com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.GoogleSearchSource(); + } + + public static com.google.cloud.discoveryengine.v1beta.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.v1beta.GenerateGroundedContentRequest.GroundingSource + .GoogleSearchSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EnterpriseWebRetrievalSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Optional. List of domains to be excluded from the search results.
            +       * 
            + * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the excludeDomains. + */ + java.util.List getExcludeDomainsList(); + + /** + * + * + *
            +       * Optional. List of domains to be excluded from the search results.
            +       * 
            + * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of excludeDomains. + */ + int getExcludeDomainsCount(); + + /** + * + * + *
            +       * Optional. List of domains to be excluded from the search results.
            +       * 
            + * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The excludeDomains at the given index. + */ + java.lang.String getExcludeDomains(int index); + + /** + * + * + *
            +       * Optional. List of domains to be excluded from the search results.
            +       * 
            + * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the excludeDomains at the given index. + */ + com.google.protobuf.ByteString getExcludeDomainsBytes(int index); + + /** + * + * + *
            +       * Optional. Sites with confidence level chosen & above this value will be
            +       * blocked from the search results.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for blockingConfidence. + */ + int getBlockingConfidenceValue(); + + /** + * + * + *
            +       * Optional. Sites with confidence level chosen & above this value will be
            +       * blocked from the search results.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The blockingConfidence. + */ + com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold getBlockingConfidence(); + } + + /** + * + * + *
            +     * Params for using enterprise web retrieval as grounding source.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource} + */ + public static final class EnterpriseWebRetrievalSource + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource) + EnterpriseWebRetrievalSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EnterpriseWebRetrievalSource"); + } + + // Use EnterpriseWebRetrievalSource.newBuilder() to construct. + private EnterpriseWebRetrievalSource( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EnterpriseWebRetrievalSource() { + excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + blockingConfidence_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_GroundingSource_EnterpriseWebRetrievalSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_GroundingSource_EnterpriseWebRetrievalSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource.class, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource.Builder.class); + } + + public static final int EXCLUDE_DOMAINS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludeDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +       * Optional. List of domains to be excluded from the search results.
            +       * 
            + * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the excludeDomains. + */ + public com.google.protobuf.ProtocolStringList getExcludeDomainsList() { + return excludeDomains_; + } + + /** + * + * + *
            +       * Optional. List of domains to be excluded from the search results.
            +       * 
            + * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of excludeDomains. + */ + public int getExcludeDomainsCount() { + return excludeDomains_.size(); + } + + /** + * + * + *
            +       * Optional. List of domains to be excluded from the search results.
            +       * 
            + * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The excludeDomains at the given index. + */ + public java.lang.String getExcludeDomains(int index) { + return excludeDomains_.get(index); + } + + /** + * + * + *
            +       * Optional. List of domains to be excluded from the search results.
            +       * 
            + * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the excludeDomains at the given index. + */ + public com.google.protobuf.ByteString getExcludeDomainsBytes(int index) { + return excludeDomains_.getByteString(index); + } + + public static final int BLOCKING_CONFIDENCE_FIELD_NUMBER = 2; + private int blockingConfidence_ = 0; + + /** + * + * + *
            +       * Optional. Sites with confidence level chosen & above this value will be
            +       * blocked from the search results.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for blockingConfidence. + */ + @java.lang.Override + public int getBlockingConfidenceValue() { + return blockingConfidence_; + } + + /** + * + * + *
            +       * Optional. Sites with confidence level chosen & above this value will be
            +       * blocked from the search results.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The blockingConfidence. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold + getBlockingConfidence() { + com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold result = + com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold.forNumber( + blockingConfidence_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold.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 { + for (int i = 0; i < excludeDomains_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, excludeDomains_.getRaw(i)); + } + if (blockingConfidence_ + != com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold + .PHISH_BLOCK_THRESHOLD_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, blockingConfidence_); + } + 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 < excludeDomains_.size(); i++) { + dataSize += computeStringSizeNoTag(excludeDomains_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludeDomainsList().size(); + } + if (blockingConfidence_ + != com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold + .PHISH_BLOCK_THRESHOLD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, blockingConfidence_); + } + 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.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource + other = + (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource) + obj; + + if (!getExcludeDomainsList().equals(other.getExcludeDomainsList())) return false; + if (blockingConfidence_ != other.blockingConfidence_) 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 (getExcludeDomainsCount() > 0) { + hash = (37 * hash) + EXCLUDE_DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getExcludeDomainsList().hashCode(); + } + hash = (37 * hash) + BLOCKING_CONFIDENCE_FIELD_NUMBER; + hash = (53 * hash) + blockingConfidence_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource + 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.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource + parseFrom( + 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.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Params for using enterprise web retrieval as grounding source.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource) + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_GroundingSource_EnterpriseWebRetrievalSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_GroundingSource_EnterpriseWebRetrievalSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource.class, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + blockingConfidence_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_GroundingSource_EnterpriseWebRetrievalSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource + build() { + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource + buildPartial() { + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource + result = + new com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + excludeDomains_.makeImmutable(); + result.excludeDomains_ = excludeDomains_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.blockingConfidence_ = blockingConfidence_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource.getDefaultInstance()) return this; + if (!other.excludeDomains_.isEmpty()) { + if (excludeDomains_.isEmpty()) { + excludeDomains_ = other.excludeDomains_; + bitField0_ |= 0x00000001; + } else { + ensureExcludeDomainsIsMutable(); + excludeDomains_.addAll(other.excludeDomains_); + } + onChanged(); + } + if (other.blockingConfidence_ != 0) { + setBlockingConfidenceValue(other.getBlockingConfidenceValue()); + } + 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(); + ensureExcludeDomainsIsMutable(); + excludeDomains_.add(s); + break; + } // case 10 + case 16: + { + blockingConfidence_ = 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 com.google.protobuf.LazyStringArrayList excludeDomains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludeDomainsIsMutable() { + if (!excludeDomains_.isModifiable()) { + excludeDomains_ = new com.google.protobuf.LazyStringArrayList(excludeDomains_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
            +         * Optional. List of domains to be excluded from the search results.
            +         * 
            + * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludeDomains. + */ + public com.google.protobuf.ProtocolStringList getExcludeDomainsList() { + excludeDomains_.makeImmutable(); + return excludeDomains_; + } + + /** + * + * + *
            +         * Optional. List of domains to be excluded from the search results.
            +         * 
            + * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludeDomains. + */ + public int getExcludeDomainsCount() { + return excludeDomains_.size(); + } + + /** + * + * + *
            +         * Optional. List of domains to be excluded from the search results.
            +         * 
            + * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludeDomains at the given index. + */ + public java.lang.String getExcludeDomains(int index) { + return excludeDomains_.get(index); + } + + /** + * + * + *
            +         * Optional. List of domains to be excluded from the search results.
            +         * 
            + * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludeDomains at the given index. + */ + public com.google.protobuf.ByteString getExcludeDomainsBytes(int index) { + return excludeDomains_.getByteString(index); + } + + /** + * + * + *
            +         * Optional. List of domains to be excluded from the search results.
            +         * 
            + * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The excludeDomains to set. + * @return This builder for chaining. + */ + public Builder setExcludeDomains(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeDomainsIsMutable(); + excludeDomains_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. List of domains to be excluded from the search results.
            +         * 
            + * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The excludeDomains to add. + * @return This builder for chaining. + */ + public Builder addExcludeDomains(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeDomainsIsMutable(); + excludeDomains_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. List of domains to be excluded from the search results.
            +         * 
            + * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The excludeDomains to add. + * @return This builder for chaining. + */ + public Builder addAllExcludeDomains(java.lang.Iterable values) { + ensureExcludeDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludeDomains_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. List of domains to be excluded from the search results.
            +         * 
            + * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExcludeDomains() { + excludeDomains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. List of domains to be excluded from the search results.
            +         * 
            + * + * repeated string exclude_domains = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the excludeDomains to add. + * @return This builder for chaining. + */ + public Builder addExcludeDomainsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludeDomainsIsMutable(); + excludeDomains_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int blockingConfidence_ = 0; + + /** + * + * + *
            +         * Optional. Sites with confidence level chosen & above this value will be
            +         * blocked from the search results.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for blockingConfidence. + */ + @java.lang.Override + public int getBlockingConfidenceValue() { + return blockingConfidence_; + } + + /** + * + * + *
            +         * Optional. Sites with confidence level chosen & above this value will be
            +         * blocked from the search results.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for blockingConfidence to set. + * @return This builder for chaining. + */ + public Builder setBlockingConfidenceValue(int value) { + blockingConfidence_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Sites with confidence level chosen & above this value will be
            +         * blocked from the search results.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The blockingConfidence. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold + getBlockingConfidence() { + com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold result = + com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold.forNumber( + blockingConfidence_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +         * Optional. Sites with confidence level chosen & above this value will be
            +         * blocked from the search results.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The blockingConfidence to set. + * @return This builder for chaining. + */ + public Builder setBlockingConfidence( + com.google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + blockingConfidence_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Sites with confidence level chosen & above this value will be
            +         * blocked from the search results.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Citation.PhishBlockThreshold blocking_confidence = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBlockingConfidence() { + bitField0_ = (bitField0_ & ~0x00000002); + blockingConfidence_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource) + private static final com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource(); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnterpriseWebRetrievalSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource + 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), + ENTERPRISE_WEB_RETRIEVAL_SOURCE(8), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; } /** @@ -7685,6 +9925,8 @@ public static SourceCase forNumber(int value) { return SEARCH_SOURCE; case 3: return GOOGLE_SEARCH_SOURCE; + case 8: + return ENTERPRISE_WEB_RETRIEVAL_SOURCE; case 0: return SOURCE_NOT_SET; default: @@ -7802,113 +10044,183 @@ public boolean hasSearchSource() { * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; *
            * - * @return The searchSource. + * @return The searchSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .SearchSource + getSearchSource() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.SearchSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .SearchSource.getDefaultInstance(); + } + + /** + * + * + *
            +     * If set, grounding is performed with Vertex AI Search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .SearchSourceOrBuilder + getSearchSourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.SearchSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.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.v1beta.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.v1beta.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; + * + * + * @return The googleSearchSource. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource - .SearchSource - getSearchSource() { - if (sourceCase_ == 2) { + .GoogleSearchSource + getGoogleSearchSource() { + if (sourceCase_ == 3) { return (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest - .GroundingSource.SearchSource) + .GroundingSource.GoogleSearchSource) source_; } return com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource - .SearchSource.getDefaultInstance(); + .GoogleSearchSource.getDefaultInstance(); } /** * * *
            -     * If set, grounding is performed with Vertex AI Search.
            +     * If set, grounding is performed with Google Search.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; * */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource - .SearchSourceOrBuilder - getSearchSourceOrBuilder() { - if (sourceCase_ == 2) { + .GoogleSearchSourceOrBuilder + getGoogleSearchSourceOrBuilder() { + if (sourceCase_ == 3) { return (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest - .GroundingSource.SearchSource) + .GroundingSource.GoogleSearchSource) source_; } return com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource - .SearchSource.getDefaultInstance(); + .GoogleSearchSource.getDefaultInstance(); } - public static final int GOOGLE_SEARCH_SOURCE_FIELD_NUMBER = 3; + public static final int ENTERPRISE_WEB_RETRIEVAL_SOURCE_FIELD_NUMBER = 8; /** * * *
            -     * If set, grounding is performed with Google Search.
            +     * If set, grounding is performed with enterprise web retrieval.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource enterprise_web_retrieval_source = 8; * * - * @return Whether the googleSearchSource field is set. + * @return Whether the enterpriseWebRetrievalSource field is set. */ @java.lang.Override - public boolean hasGoogleSearchSource() { - return sourceCase_ == 3; + public boolean hasEnterpriseWebRetrievalSource() { + return sourceCase_ == 8; } /** * * *
            -     * If set, grounding is performed with Google Search.
            +     * If set, grounding is performed with enterprise web retrieval.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource enterprise_web_retrieval_source = 8; * * - * @return The googleSearchSource. + * @return The enterpriseWebRetrievalSource. */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource - .GoogleSearchSource - getGoogleSearchSource() { - if (sourceCase_ == 3) { + .EnterpriseWebRetrievalSource + getEnterpriseWebRetrievalSource() { + if (sourceCase_ == 8) { return (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest - .GroundingSource.GoogleSearchSource) + .GroundingSource.EnterpriseWebRetrievalSource) source_; } return com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource - .GoogleSearchSource.getDefaultInstance(); + .EnterpriseWebRetrievalSource.getDefaultInstance(); } /** * * *
            -     * If set, grounding is performed with Google Search.
            +     * If set, grounding is performed with enterprise web retrieval.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource enterprise_web_retrieval_source = 8; * */ @java.lang.Override public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource - .GoogleSearchSourceOrBuilder - getGoogleSearchSourceOrBuilder() { - if (sourceCase_ == 3) { + .EnterpriseWebRetrievalSourceOrBuilder + getEnterpriseWebRetrievalSourceOrBuilder() { + if (sourceCase_ == 8) { return (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest - .GroundingSource.GoogleSearchSource) + .GroundingSource.EnterpriseWebRetrievalSource) source_; } return com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource - .GoogleSearchSource.getDefaultInstance(); + .EnterpriseWebRetrievalSource.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -7946,6 +10258,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .GoogleSearchSource) source_); } + if (sourceCase_ == 8) { + output.writeMessage( + 8, + (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource) + source_); + } getUnknownFields().writeTo(output); } @@ -7979,6 +10298,14 @@ public int getSerializedSize() { .GroundingSource.GoogleSearchSource) source_); } + if (sourceCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource) + source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -8009,6 +10336,10 @@ public boolean equals(final java.lang.Object obj) { case 3: if (!getGoogleSearchSource().equals(other.getGoogleSearchSource())) return false; break; + case 8: + if (!getEnterpriseWebRetrievalSource().equals(other.getEnterpriseWebRetrievalSource())) + return false; + break; case 0: default: } @@ -8036,6 +10367,10 @@ public int hashCode() { hash = (37 * hash) + GOOGLE_SEARCH_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getGoogleSearchSource().hashCode(); break; + case 8: + hash = (37 * hash) + ENTERPRISE_WEB_RETRIEVAL_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getEnterpriseWebRetrievalSource().hashCode(); + break; case 0: default: } @@ -8213,6 +10548,9 @@ public Builder clear() { if (googleSearchSourceBuilder_ != null) { googleSearchSourceBuilder_.clear(); } + if (enterpriseWebRetrievalSourceBuilder_ != null) { + enterpriseWebRetrievalSourceBuilder_.clear(); + } sourceCase_ = 0; source_ = null; return this; @@ -8277,6 +10615,9 @@ private void buildPartialOneofs( if (sourceCase_ == 3 && googleSearchSourceBuilder_ != null) { result.source_ = googleSearchSourceBuilder_.build(); } + if (sourceCase_ == 8 && enterpriseWebRetrievalSourceBuilder_ != null) { + result.source_ = enterpriseWebRetrievalSourceBuilder_.build(); + } } @java.lang.Override @@ -8317,6 +10658,11 @@ public Builder mergeFrom( mergeGoogleSearchSource(other.getGoogleSearchSource()); break; } + case ENTERPRISE_WEB_RETRIEVAL_SOURCE: + { + mergeEnterpriseWebRetrievalSource(other.getEnterpriseWebRetrievalSource()); + break; + } case SOURCE_NOT_SET: { break; @@ -8369,6 +10715,14 @@ public Builder mergeFrom( sourceCase_ = 3; break; } // case 26 + case 66: + { + input.readMessage( + internalGetEnterpriseWebRetrievalSourceFieldBuilder().getBuilder(), + extensionRegistry); + sourceCase_ = 8; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -9227,6 +11581,281 @@ public Builder clearGoogleSearchSource() { return googleSearchSourceBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSourceOrBuilder> + enterpriseWebRetrievalSourceBuilder_; + + /** + * + * + *
            +       * If set, grounding is performed with enterprise web retrieval.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource enterprise_web_retrieval_source = 8; + * + * + * @return Whether the enterpriseWebRetrievalSource field is set. + */ + @java.lang.Override + public boolean hasEnterpriseWebRetrievalSource() { + return sourceCase_ == 8; + } + + /** + * + * + *
            +       * If set, grounding is performed with enterprise web retrieval.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource enterprise_web_retrieval_source = 8; + * + * + * @return The enterpriseWebRetrievalSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource + getEnterpriseWebRetrievalSource() { + if (enterpriseWebRetrievalSourceBuilder_ == null) { + if (sourceCase_ == 8) { + return (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource.getDefaultInstance(); + } else { + if (sourceCase_ == 8) { + return enterpriseWebRetrievalSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * If set, grounding is performed with enterprise web retrieval.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource enterprise_web_retrieval_source = 8; + * + */ + public Builder setEnterpriseWebRetrievalSource( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource + value) { + if (enterpriseWebRetrievalSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + enterpriseWebRetrievalSourceBuilder_.setMessage(value); + } + sourceCase_ = 8; + return this; + } + + /** + * + * + *
            +       * If set, grounding is performed with enterprise web retrieval.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource enterprise_web_retrieval_source = 8; + * + */ + public Builder setEnterpriseWebRetrievalSource( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource.Builder + builderForValue) { + if (enterpriseWebRetrievalSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + enterpriseWebRetrievalSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 8; + return this; + } + + /** + * + * + *
            +       * If set, grounding is performed with enterprise web retrieval.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource enterprise_web_retrieval_source = 8; + * + */ + public Builder mergeEnterpriseWebRetrievalSource( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource + value) { + if (enterpriseWebRetrievalSourceBuilder_ == null) { + if (sourceCase_ == 8 + && source_ + != com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource.getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource.newBuilder( + (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 8) { + enterpriseWebRetrievalSourceBuilder_.mergeFrom(value); + } else { + enterpriseWebRetrievalSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 8; + return this; + } + + /** + * + * + *
            +       * If set, grounding is performed with enterprise web retrieval.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource enterprise_web_retrieval_source = 8; + * + */ + public Builder clearEnterpriseWebRetrievalSource() { + if (enterpriseWebRetrievalSourceBuilder_ == null) { + if (sourceCase_ == 8) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 8) { + sourceCase_ = 0; + source_ = null; + } + enterpriseWebRetrievalSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * If set, grounding is performed with enterprise web retrieval.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource enterprise_web_retrieval_source = 8; + * + */ + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource.Builder + getEnterpriseWebRetrievalSourceBuilder() { + return internalGetEnterpriseWebRetrievalSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * If set, grounding is performed with enterprise web retrieval.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource enterprise_web_retrieval_source = 8; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSourceOrBuilder + getEnterpriseWebRetrievalSourceOrBuilder() { + if ((sourceCase_ == 8) && (enterpriseWebRetrievalSourceBuilder_ != null)) { + return enterpriseWebRetrievalSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 8) { + return (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * If set, grounding is performed with enterprise web retrieval.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource.EnterpriseWebRetrievalSource enterprise_web_retrieval_source = 8; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSource.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource + .EnterpriseWebRetrievalSourceOrBuilder> + internalGetEnterpriseWebRetrievalSourceFieldBuilder() { + if (enterpriseWebRetrievalSourceBuilder_ == null) { + if (!(sourceCase_ == 8)) { + source_ = + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource.getDefaultInstance(); + } + enterpriseWebRetrievalSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest + .GroundingSource.EnterpriseWebRetrievalSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 8; + onChanged(); + return enterpriseWebRetrievalSourceBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GenerateGroundedContentResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GenerateGroundedContentResponse.java index 191121ba3ecc..7134574c7d59 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GenerateGroundedContentResponse.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GenerateGroundedContentResponse.java @@ -594,6 +594,158 @@ com.google.cloud.discoveryengine.v1beta.FactChunkOrBuilder getSupportChunksOrBui com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate .GroundingMetadata.GroundingSupportOrBuilder getGroundingSupportOrBuilder(int index); + + /** + * + * + *
            +       * Images from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata> + getImagesList(); + + /** + * + * + *
            +       * Images from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * + */ + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata + getImages(int index); + + /** + * + * + *
            +       * Images from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * + */ + int getImagesCount(); + + /** + * + * + *
            +       * Images from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadataOrBuilder> + getImagesOrBuilderList(); + + /** + * + * + *
            +       * Images from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * + */ + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadataOrBuilder + getImagesOrBuilder(int index); + + /** + * + * + *
            +       * Videos from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata> + getVideosList(); + + /** + * + * + *
            +       * Videos from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + getVideos(int index); + + /** + * + * + *
            +       * Videos from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + int getVideosCount(); + + /** + * + * + *
            +       * Videos from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadataOrBuilder> + getVideosOrBuilderList(); + + /** + * + * + *
            +       * Videos from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadataOrBuilder + getVideosOrBuilder(int index); } /** @@ -632,6 +784,8 @@ private GroundingMetadata() { supportChunks_ = java.util.Collections.emptyList(); webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); groundingSupport_ = java.util.Collections.emptyList(); + images_ = java.util.Collections.emptyList(); + videos_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -5911,1292 +6065,6814 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - public static final int RETRIEVAL_METADATA_FIELD_NUMBER = 5; + public interface ImageMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata> - retrievalMetadata_; + /** + * + * + *
            +         * Metadata about the full size image.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image image = 1; + * + * + * @return Whether the image field is set. + */ + boolean hasImage(); - /** - * - * - *
            -       * 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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata> - getRetrievalMetadataList() { - return retrievalMetadata_; + /** + * + * + *
            +         * Metadata about the full size image.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image image = 1; + * + * + * @return The image. + */ + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + getImage(); + + /** + * + * + *
            +         * Metadata about the full size image.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image image = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.ImageOrBuilder + getImageOrBuilder(); + + /** + * + * + *
            +         * Metadata about the thumbnail.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image thumbnail = 2; + * + * + * @return Whether the thumbnail field is set. + */ + boolean hasThumbnail(); + + /** + * + * + *
            +         * Metadata about the thumbnail.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image thumbnail = 2; + * + * + * @return The thumbnail. + */ + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + getThumbnail(); + + /** + * + * + *
            +         * Metadata about the thumbnail.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image thumbnail = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.ImageOrBuilder + getThumbnailOrBuilder(); + + /** + * + * + *
            +         * The details about the website that the image is from.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo source = 3; + * + * + * @return Whether the source field is set. + */ + boolean hasSource(); + + /** + * + * + *
            +         * The details about the website that the image is from.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo source = 3; + * + * + * @return The source. + */ + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo + getSource(); + + /** + * + * + *
            +         * The details about the website that the image is from.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo source = 3; + * + */ + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfoOrBuilder + getSourceOrBuilder(); } /** * * *
            -       * 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.
            +       * Metadata about an image from the web search.
                    * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata} */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * - */ - @java.lang.Override - public int getRetrievalMetadataCount() { - return retrievalMetadata_.size(); - } + public static final class ImageMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata) + ImageMetadataOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
            -       * 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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata - getRetrievalMetadata(int index) { - return retrievalMetadata_.get(index); - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ImageMetadata"); + } - /** - * - * - *
            -       * 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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadataOrBuilder - getRetrievalMetadataOrBuilder(int index) { - return retrievalMetadata_.get(index); - } + // Use ImageMetadata.newBuilder() to construct. + private ImageMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - public static final int SUPPORT_CHUNKS_FIELD_NUMBER = 1; + private ImageMetadata() {} - @SuppressWarnings("serial") - private java.util.List supportChunks_; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_descriptor; + } - /** - * - * - *
            -       * 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.v1beta.FactChunk support_chunks = 1; - */ - @java.lang.Override - public java.util.List - getSupportChunksList() { - return supportChunks_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.class, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Builder.class); + } - /** - * - * - *
            -       * 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.v1beta.FactChunk support_chunks = 1; - */ - @java.lang.Override - public java.util.List - getSupportChunksOrBuilderList() { - return supportChunks_; - } + public interface WebsiteInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
            -       * 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.v1beta.FactChunk support_chunks = 1; - */ - @java.lang.Override - public int getSupportChunksCount() { - return supportChunks_.size(); - } + /** + * + * + *
            +           * The url of the website.
            +           * 
            + * + * string uri = 1; + * + * @return The uri. + */ + java.lang.String getUri(); - /** - * - * - *
            -       * 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.v1beta.FactChunk support_chunks = 1; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.FactChunk getSupportChunks(int index) { - return supportChunks_.get(index); - } + /** + * + * + *
            +           * The url of the website.
            +           * 
            + * + * string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); - /** - * - * - *
            -       * 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.v1beta.FactChunk support_chunks = 1; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.FactChunkOrBuilder getSupportChunksOrBuilder( - int index) { - return supportChunks_.get(index); - } + /** + * + * + *
            +           * The title of the website.
            +           * 
            + * + * string title = 2; + * + * @return The title. + */ + java.lang.String getTitle(); - public static final int WEB_SEARCH_QUERIES_FIELD_NUMBER = 3; + /** + * + * + *
            +           * The title of the website.
            +           * 
            + * + * string title = 2; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList webSearchQueries_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
            +           * The display name of the website.
            +           * 
            + * + * string site_display_name = 3; + * + * @return The siteDisplayName. + */ + java.lang.String getSiteDisplayName(); - /** - * - * - *
            -       * 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_; - } + /** + * + * + *
            +           * The display name of the website.
            +           * 
            + * + * string site_display_name = 3; + * + * @return The bytes for siteDisplayName. + */ + com.google.protobuf.ByteString getSiteDisplayNameBytes(); + } - /** - * - * - *
            -       * 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(); - } + /** + * + * + *
            +         * Metadata about the website that the image is from.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo} + */ + public static final class WebsiteInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo) + WebsiteInfoOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
            -       * 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); - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "WebsiteInfo"); + } - /** - * - * - *
            -       * 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); - } + // Use WebsiteInfo.newBuilder() to construct. + private WebsiteInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - public static final int SEARCH_ENTRY_POINT_FIELD_NUMBER = 4; - private com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint - searchEntryPoint_; + private WebsiteInfo() { + uri_ = ""; + title_ = ""; + siteDisplayName_ = ""; + } - /** - * - * - *
            -       * Google search entry for the following-up web searches.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.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); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_WebsiteInfo_descriptor; + } - /** - * - * - *
            -       * Google search entry for the following-up web searches.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; - * - * - * @return The searchEntryPoint. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint - getSearchEntryPoint() { - return searchEntryPoint_ == null - ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint.getDefaultInstance() - : searchEntryPoint_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_WebsiteInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo.class, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo.Builder.class); + } - /** - * - * - *
            -       * Google search entry for the following-up web searches.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPointOrBuilder - getSearchEntryPointOrBuilder() { - return searchEntryPoint_ == null - ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint.getDefaultInstance() - : searchEntryPoint_; - } + public static final int URI_FIELD_NUMBER = 1; - public static final int GROUNDING_SUPPORT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport> - groundingSupport_; + /** + * + * + *
            +           * The url of the website.
            +           * 
            + * + * 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; + } + } - /** - * - * - *
            -       * 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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport> - getGroundingSupportList() { - return groundingSupport_; - } + /** + * + * + *
            +           * The url of the website.
            +           * 
            + * + * 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; + } + } - /** - * - * - *
            -       * 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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupportOrBuilder> - getGroundingSupportOrBuilderList() { - return groundingSupport_; - } + public static final int TITLE_FIELD_NUMBER = 2; - /** - * - * - *
            -       * 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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; - * - */ - @java.lang.Override - public int getGroundingSupportCount() { - return groundingSupport_.size(); - } + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; - /** - * - * - *
            -       * 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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport - getGroundingSupport(int index) { - return groundingSupport_.get(index); - } + /** + * + * + *
            +           * The title of the website.
            +           * 
            + * + * 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; + } + } - /** - * - * - *
            -       * 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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupportOrBuilder - getGroundingSupportOrBuilder(int index) { - return groundingSupport_.get(index); - } + /** + * + * + *
            +           * The title of the website.
            +           * 
            + * + * 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; + public static final int SITE_DISPLAY_NAME_FIELD_NUMBER = 3; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @SuppressWarnings("serial") + private volatile java.lang.Object siteDisplayName_ = ""; - memoizedIsInitialized = 1; - return true; - } + /** + * + * + *
            +           * The display name of the website.
            +           * 
            + * + * string site_display_name = 3; + * + * @return The siteDisplayName. + */ + @java.lang.Override + public java.lang.String getSiteDisplayName() { + java.lang.Object ref = siteDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + siteDisplayName_ = s; + return s; + } + } - @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.GeneratedMessage.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); - } + /** + * + * + *
            +           * The display name of the website.
            +           * 
            + * + * string site_display_name = 3; + * + * @return The bytes for siteDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSiteDisplayNameBytes() { + java.lang.Object ref = siteDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + siteDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private byte memoizedIsInitialized = -1; - 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)); + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - 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.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata - other = - (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata) - obj; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(siteDisplayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, siteDisplayName_); + } + getUnknownFields().writeTo(output); + } - 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 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(); - 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; - } + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(siteDisplayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, siteDisplayName_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata - parseFrom(java.nio.ByteBuffer 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.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo + other = + (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo) + obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getTitle().equals(other.getTitle())) return false; + if (!getSiteDisplayName().equals(other.getSiteDisplayName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @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 = (37 * hash) + SITE_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSiteDisplayName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo + 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.v1beta.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.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo + parseFrom( + 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.v1beta.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.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input); + } - public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * - * - *
            -       * Citation for the generated content.
            -       * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata) - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor; - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.class, + /** + * + * + *
            +           * Metadata about the website that the image is from.
            +           * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo) + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_WebsiteInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_WebsiteInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo.class, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + title_ = ""; + siteDisplayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_WebsiteInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo + build() { + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo + buildPartial() { + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo + result = + new com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.siteDisplayName_ = siteDisplayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.Builder.class); - } + .GroundingMetadata.ImageMetadata.WebsiteInfo) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } - // Construct using - // com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo.getDefaultInstance()) + return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSiteDisplayName().isEmpty()) { + siteDisplayName_ = other.siteDisplayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + @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 + case 26: + { + siteDisplayName_ = 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 uri_ = ""; + + /** + * + * + *
            +             * The url of the website.
            +             * 
            + * + * 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; + } + } + + /** + * + * + *
            +             * The url of the website.
            +             * 
            + * + * 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; + } + } + + /** + * + * + *
            +             * The url of the website.
            +             * 
            + * + * 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; + } + + /** + * + * + *
            +             * The url of the website.
            +             * 
            + * + * string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +             * The url of the website.
            +             * 
            + * + * 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_ = ""; + + /** + * + * + *
            +             * The title of the website.
            +             * 
            + * + * 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; + } + } + + /** + * + * + *
            +             * The title of the website.
            +             * 
            + * + * 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; + } + } + + /** + * + * + *
            +             * The title of the website.
            +             * 
            + * + * 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; + } + + /** + * + * + *
            +             * The title of the website.
            +             * 
            + * + * string title = 2; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +             * The title of the website.
            +             * 
            + * + * 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; + } + + private java.lang.Object siteDisplayName_ = ""; + + /** + * + * + *
            +             * The display name of the website.
            +             * 
            + * + * string site_display_name = 3; + * + * @return The siteDisplayName. + */ + public java.lang.String getSiteDisplayName() { + java.lang.Object ref = siteDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + siteDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +             * The display name of the website.
            +             * 
            + * + * string site_display_name = 3; + * + * @return The bytes for siteDisplayName. + */ + public com.google.protobuf.ByteString getSiteDisplayNameBytes() { + java.lang.Object ref = siteDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + siteDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +             * The display name of the website.
            +             * 
            + * + * string site_display_name = 3; + * + * @param value The siteDisplayName to set. + * @return This builder for chaining. + */ + public Builder setSiteDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + siteDisplayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +             * The display name of the website.
            +             * 
            + * + * string site_display_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearSiteDisplayName() { + siteDisplayName_ = getDefaultInstance().getSiteDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +             * The display name of the website.
            +             * 
            + * + * string site_display_name = 3; + * + * @param value The bytes for siteDisplayName to set. + * @return This builder for chaining. + */ + public Builder setSiteDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + siteDisplayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo) + private static final com.google.cloud.discoveryengine.v1beta + .GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata + .WebsiteInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo(); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebsiteInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ImageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +           * The url of the image.
            +           * 
            + * + * string uri = 1; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
            +           * The url of the image.
            +           * 
            + * + * string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
            +           * The width of the image in pixels.
            +           * 
            + * + * int32 width = 2; + * + * @return The width. + */ + int getWidth(); + + /** + * + * + *
            +           * The height of the image in pixels.
            +           * 
            + * + * int32 height = 3; + * + * @return The height. + */ + int getHeight(); + } + + /** + * + * + *
            +         * Metadata about the image.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image} + */ + public static final class Image extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image) + ImageOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Image"); + } + + // Use Image.newBuilder() to construct. + private Image(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Image() { + uri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_Image_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_Image_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image.class, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
            +           * The url of the image.
            +           * 
            + * + * 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; + } + } + + /** + * + * + *
            +           * The url of the image.
            +           * 
            + * + * 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 WIDTH_FIELD_NUMBER = 2; + private int width_ = 0; + + /** + * + * + *
            +           * The width of the image in pixels.
            +           * 
            + * + * int32 width = 2; + * + * @return The width. + */ + @java.lang.Override + public int getWidth() { + return width_; + } + + public static final int HEIGHT_FIELD_NUMBER = 3; + private int height_ = 0; + + /** + * + * + *
            +           * The height of the image in pixels.
            +           * 
            + * + * int32 height = 3; + * + * @return The height. + */ + @java.lang.Override + public int getHeight() { + return height_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, uri_); + } + if (width_ != 0) { + output.writeInt32(2, width_); + } + if (height_ != 0) { + output.writeInt32(3, height_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uri_); + } + if (width_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, width_); + } + if (height_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, height_); + } + 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.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + other = + (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image) + obj; + + if (!getUri().equals(other.getUri())) return false; + if (getWidth() != other.getWidth()) return false; + if (getHeight() != other.getHeight()) 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) + WIDTH_FIELD_NUMBER; + hash = (53 * hash) + getWidth(); + hash = (37 * hash) + HEIGHT_FIELD_NUMBER; + hash = (53 * hash) + getHeight(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image + 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.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image + parseFrom( + 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.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +           * Metadata about the image.
            +           * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image) + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.ImageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_Image_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_Image_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image.class, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + width_ = 0; + height_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_Image_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + build() { + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + buildPartial() { + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + result = + new com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.width_ = width_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.height_ = height_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image.getDefaultInstance()) + return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getWidth() != 0) { + setWidth(other.getWidth()); + } + if (other.getHeight() != 0) { + setHeight(other.getHeight()); + } + 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 16: + { + width_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + height_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object uri_ = ""; + + /** + * + * + *
            +             * The url of the image.
            +             * 
            + * + * 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; + } + } + + /** + * + * + *
            +             * The url of the image.
            +             * 
            + * + * 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; + } + } + + /** + * + * + *
            +             * The url of the image.
            +             * 
            + * + * 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; + } + + /** + * + * + *
            +             * The url of the image.
            +             * 
            + * + * string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +             * The url of the image.
            +             * 
            + * + * 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 int width_; + + /** + * + * + *
            +             * The width of the image in pixels.
            +             * 
            + * + * int32 width = 2; + * + * @return The width. + */ + @java.lang.Override + public int getWidth() { + return width_; + } + + /** + * + * + *
            +             * The width of the image in pixels.
            +             * 
            + * + * int32 width = 2; + * + * @param value The width to set. + * @return This builder for chaining. + */ + public Builder setWidth(int value) { + + width_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +             * The width of the image in pixels.
            +             * 
            + * + * int32 width = 2; + * + * @return This builder for chaining. + */ + public Builder clearWidth() { + bitField0_ = (bitField0_ & ~0x00000002); + width_ = 0; + onChanged(); + return this; + } + + private int height_; + + /** + * + * + *
            +             * The height of the image in pixels.
            +             * 
            + * + * int32 height = 3; + * + * @return The height. + */ + @java.lang.Override + public int getHeight() { + return height_; + } + + /** + * + * + *
            +             * The height of the image in pixels.
            +             * 
            + * + * int32 height = 3; + * + * @param value The height to set. + * @return This builder for chaining. + */ + public Builder setHeight(int value) { + + height_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +             * The height of the image in pixels.
            +             * 
            + * + * int32 height = 3; + * + * @return This builder for chaining. + */ + public Builder clearHeight() { + bitField0_ = (bitField0_ & ~0x00000004); + height_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image) + private static final com.google.cloud.discoveryengine.v1beta + .GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image(); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Image parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int IMAGE_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + image_; + + /** + * + * + *
            +         * Metadata about the full size image.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image image = 1; + * + * + * @return Whether the image field is set. + */ + @java.lang.Override + public boolean hasImage() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +         * Metadata about the full size image.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image image = 1; + * + * + * @return The image. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + getImage() { + return image_ == null + ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image.getDefaultInstance() + : image_; + } + + /** + * + * + *
            +         * Metadata about the full size image.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image image = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.ImageOrBuilder + getImageOrBuilder() { + return image_ == null + ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image.getDefaultInstance() + : image_; + } + + public static final int THUMBNAIL_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + thumbnail_; + + /** + * + * + *
            +         * Metadata about the thumbnail.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image thumbnail = 2; + * + * + * @return Whether the thumbnail field is set. + */ + @java.lang.Override + public boolean hasThumbnail() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +         * Metadata about the thumbnail.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image thumbnail = 2; + * + * + * @return The thumbnail. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + getThumbnail() { + return thumbnail_ == null + ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image.getDefaultInstance() + : thumbnail_; + } + + /** + * + * + *
            +         * Metadata about the thumbnail.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image thumbnail = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.ImageOrBuilder + getThumbnailOrBuilder() { + return thumbnail_ == null + ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image.getDefaultInstance() + : thumbnail_; + } + + public static final int SOURCE_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo + source_; + + /** + * + * + *
            +         * The details about the website that the image is from.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo source = 3; + * + * + * @return Whether the source field is set. + */ + @java.lang.Override + public boolean hasSource() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +         * The details about the website that the image is from.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo source = 3; + * + * + * @return The source. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo + getSource() { + return source_ == null + ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo.getDefaultInstance() + : source_; + } + + /** + * + * + *
            +         * The details about the website that the image is from.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo source = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfoOrBuilder + getSourceOrBuilder() { + return source_ == null + ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo.getDefaultInstance() + : source_; + } + + 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, getImage()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getThumbnail()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getSource()); + } + 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, getImage()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getThumbnail()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSource()); + } + 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.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata + other = + (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata) + obj; + + if (hasImage() != other.hasImage()) return false; + if (hasImage()) { + if (!getImage().equals(other.getImage())) return false; + } + if (hasThumbnail() != other.hasThumbnail()) return false; + if (hasThumbnail()) { + if (!getThumbnail().equals(other.getThumbnail())) return false; + } + if (hasSource() != other.hasSource()) return false; + if (hasSource()) { + if (!getSource().equals(other.getSource())) 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 (hasImage()) { + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); + } + if (hasThumbnail()) { + hash = (37 * hash) + THUMBNAIL_FIELD_NUMBER; + hash = (53 * hash) + getThumbnail().hashCode(); + } + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata + 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.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata + parseFrom( + 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.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +         * Metadata about an image from the web search.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata) + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.class, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetImageFieldBuilder(); + internalGetThumbnailFieldBuilder(); + internalGetSourceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + image_ = null; + if (imageBuilder_ != null) { + imageBuilder_.dispose(); + imageBuilder_ = null; + } + thumbnail_ = null; + if (thumbnailBuilder_ != null) { + thumbnailBuilder_.dispose(); + thumbnailBuilder_ = null; + } + source_ = null; + if (sourceBuilder_ != null) { + sourceBuilder_.dispose(); + sourceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata + build() { + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata + result = + new com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.image_ = imageBuilder_ == null ? image_ : imageBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.thumbnail_ = + thumbnailBuilder_ == null ? thumbnail_ : thumbnailBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.source_ = sourceBuilder_ == null ? source_ : sourceBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.getDefaultInstance()) return this; + if (other.hasImage()) { + mergeImage(other.getImage()); + } + if (other.hasThumbnail()) { + mergeThumbnail(other.getThumbnail()); + } + if (other.hasSource()) { + mergeSource(other.getSource()); + } + 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( + internalGetImageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetThumbnailFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetSourceFieldBuilder().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.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + image_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.ImageOrBuilder> + imageBuilder_; + + /** + * + * + *
            +           * Metadata about the full size image.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image image = 1; + * + * + * @return Whether the image field is set. + */ + public boolean hasImage() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +           * Metadata about the full size image.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image image = 1; + * + * + * @return The image. + */ + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + getImage() { + if (imageBuilder_ == null) { + return image_ == null + ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image.getDefaultInstance() + : image_; + } else { + return imageBuilder_.getMessage(); + } + } + + /** + * + * + *
            +           * Metadata about the full size image.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image image = 1; + * + */ + public Builder setImage( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + value) { + if (imageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + image_ = value; + } else { + imageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Metadata about the full size image.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image image = 1; + * + */ + public Builder setImage( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image.Builder + builderForValue) { + if (imageBuilder_ == null) { + image_ = builderForValue.build(); + } else { + imageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Metadata about the full size image.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image image = 1; + * + */ + public Builder mergeImage( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + value) { + if (imageBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && image_ != null + && image_ + != com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image.getDefaultInstance()) { + getImageBuilder().mergeFrom(value); + } else { + image_ = value; + } + } else { + imageBuilder_.mergeFrom(value); + } + if (image_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +           * Metadata about the full size image.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image image = 1; + * + */ + public Builder clearImage() { + bitField0_ = (bitField0_ & ~0x00000001); + image_ = null; + if (imageBuilder_ != null) { + imageBuilder_.dispose(); + imageBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +           * Metadata about the full size image.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image image = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image.Builder + getImageBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetImageFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +           * Metadata about the full size image.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image image = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.ImageOrBuilder + getImageOrBuilder() { + if (imageBuilder_ != null) { + return imageBuilder_.getMessageOrBuilder(); + } else { + return image_ == null + ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image.getDefaultInstance() + : image_; + } + } + + /** + * + * + *
            +           * Metadata about the full size image.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image image = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.ImageOrBuilder> + internalGetImageFieldBuilder() { + if (imageBuilder_ == null) { + imageBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.ImageOrBuilder>( + getImage(), getParentForChildren(), isClean()); + image_ = null; + } + return imageBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + thumbnail_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.ImageOrBuilder> + thumbnailBuilder_; + + /** + * + * + *
            +           * Metadata about the thumbnail.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image thumbnail = 2; + * + * + * @return Whether the thumbnail field is set. + */ + public boolean hasThumbnail() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +           * Metadata about the thumbnail.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image thumbnail = 2; + * + * + * @return The thumbnail. + */ + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + getThumbnail() { + if (thumbnailBuilder_ == null) { + return thumbnail_ == null + ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image.getDefaultInstance() + : thumbnail_; + } else { + return thumbnailBuilder_.getMessage(); + } + } + + /** + * + * + *
            +           * Metadata about the thumbnail.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image thumbnail = 2; + * + */ + public Builder setThumbnail( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + value) { + if (thumbnailBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + thumbnail_ = value; + } else { + thumbnailBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Metadata about the thumbnail.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image thumbnail = 2; + * + */ + public Builder setThumbnail( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image.Builder + builderForValue) { + if (thumbnailBuilder_ == null) { + thumbnail_ = builderForValue.build(); + } else { + thumbnailBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Metadata about the thumbnail.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image thumbnail = 2; + * + */ + public Builder mergeThumbnail( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image + value) { + if (thumbnailBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && thumbnail_ != null + && thumbnail_ + != com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image.getDefaultInstance()) { + getThumbnailBuilder().mergeFrom(value); + } else { + thumbnail_ = value; + } + } else { + thumbnailBuilder_.mergeFrom(value); + } + if (thumbnail_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +           * Metadata about the thumbnail.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image thumbnail = 2; + * + */ + public Builder clearThumbnail() { + bitField0_ = (bitField0_ & ~0x00000002); + thumbnail_ = null; + if (thumbnailBuilder_ != null) { + thumbnailBuilder_.dispose(); + thumbnailBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +           * Metadata about the thumbnail.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image thumbnail = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image.Builder + getThumbnailBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetThumbnailFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +           * Metadata about the thumbnail.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image thumbnail = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.ImageOrBuilder + getThumbnailOrBuilder() { + if (thumbnailBuilder_ != null) { + return thumbnailBuilder_.getMessageOrBuilder(); + } else { + return thumbnail_ == null + ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image.getDefaultInstance() + : thumbnail_; + } + } + + /** + * + * + *
            +           * Metadata about the thumbnail.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image thumbnail = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Image.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.ImageOrBuilder> + internalGetThumbnailFieldBuilder() { + if (thumbnailBuilder_ == null) { + thumbnailBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.Image.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.ImageOrBuilder>( + getThumbnail(), getParentForChildren(), isClean()); + thumbnail_ = null; + } + return thumbnailBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo + source_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfoOrBuilder> + sourceBuilder_; + + /** + * + * + *
            +           * The details about the website that the image is from.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo source = 3; + * + * + * @return Whether the source field is set. + */ + public boolean hasSource() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +           * The details about the website that the image is from.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo source = 3; + * + * + * @return The source. + */ + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo + getSource() { + if (sourceBuilder_ == null) { + return source_ == null + ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo.getDefaultInstance() + : source_; + } else { + return sourceBuilder_.getMessage(); + } + } + + /** + * + * + *
            +           * The details about the website that the image is from.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo source = 3; + * + */ + public Builder setSource( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo + value) { + if (sourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + } else { + sourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +           * The details about the website that the image is from.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo source = 3; + * + */ + public Builder setSource( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo.Builder + builderForValue) { + if (sourceBuilder_ == null) { + source_ = builderForValue.build(); + } else { + sourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +           * The details about the website that the image is from.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo source = 3; + * + */ + public Builder mergeSource( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo + value) { + if (sourceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && source_ != null + && source_ + != com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo + .getDefaultInstance()) { + getSourceBuilder().mergeFrom(value); + } else { + source_ = value; + } + } else { + sourceBuilder_.mergeFrom(value); + } + if (source_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +           * The details about the website that the image is from.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo source = 3; + * + */ + public Builder clearSource() { + bitField0_ = (bitField0_ & ~0x00000004); + source_ = null; + if (sourceBuilder_ != null) { + sourceBuilder_.dispose(); + sourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +           * The details about the website that the image is from.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo source = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo.Builder + getSourceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +           * The details about the website that the image is from.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo source = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfoOrBuilder + getSourceOrBuilder() { + if (sourceBuilder_ != null) { + return sourceBuilder_.getMessageOrBuilder(); + } else { + return source_ == null + ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo.getDefaultInstance() + : source_; + } + } + + /** + * + * + *
            +           * The details about the website that the image is from.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo source = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfo.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.WebsiteInfoOrBuilder> + internalGetSourceFieldBuilder() { + if (sourceBuilder_ == null) { + sourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata.WebsiteInfoOrBuilder>( + getSource(), getParentForChildren(), isClean()); + source_ = null; + } + return sourceBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata) + private static final com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface VideoMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +         * The external id of the video.
            +         * 
            + * + * string youtube_external_id = 1; + * + * @return The youtubeExternalId. + */ + java.lang.String getYoutubeExternalId(); + + /** + * + * + *
            +         * The external id of the video.
            +         * 
            + * + * string youtube_external_id = 1; + * + * @return The bytes for youtubeExternalId. + */ + com.google.protobuf.ByteString getYoutubeExternalIdBytes(); + } + + /** + * + * + *
            +       * Metadata about a video from the web search.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata} + */ + public static final class VideoMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata) + VideoMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VideoMetadata"); + } + + // Use VideoMetadata.newBuilder() to construct. + private VideoMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VideoMetadata() { + youtubeExternalId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata.class, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata.Builder.class); + } + + public static final int YOUTUBE_EXTERNAL_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object youtubeExternalId_ = ""; + + /** + * + * + *
            +         * The external id of the video.
            +         * 
            + * + * string youtube_external_id = 1; + * + * @return The youtubeExternalId. + */ + @java.lang.Override + public java.lang.String getYoutubeExternalId() { + java.lang.Object ref = youtubeExternalId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + youtubeExternalId_ = s; + return s; + } + } + + /** + * + * + *
            +         * The external id of the video.
            +         * 
            + * + * string youtube_external_id = 1; + * + * @return The bytes for youtubeExternalId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getYoutubeExternalIdBytes() { + java.lang.Object ref = youtubeExternalId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + youtubeExternalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(youtubeExternalId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, youtubeExternalId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(youtubeExternalId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, youtubeExternalId_); + } + 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.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + other = + (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata) + obj; + + if (!getYoutubeExternalId().equals(other.getYoutubeExternalId())) 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) + YOUTUBE_EXTERNAL_ID_FIELD_NUMBER; + hash = (53 * hash) + getYoutubeExternalId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata + 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.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata + parseFrom( + 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.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +         * Metadata about a video from the web search.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata) + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata.class, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + youtubeExternalId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + build() { + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + result = + new com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.youtubeExternalId_ = youtubeExternalId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata.getDefaultInstance()) return this; + if (!other.getYoutubeExternalId().isEmpty()) { + youtubeExternalId_ = other.youtubeExternalId_; + 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: + { + youtubeExternalId_ = 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 youtubeExternalId_ = ""; + + /** + * + * + *
            +           * The external id of the video.
            +           * 
            + * + * string youtube_external_id = 1; + * + * @return The youtubeExternalId. + */ + public java.lang.String getYoutubeExternalId() { + java.lang.Object ref = youtubeExternalId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + youtubeExternalId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +           * The external id of the video.
            +           * 
            + * + * string youtube_external_id = 1; + * + * @return The bytes for youtubeExternalId. + */ + public com.google.protobuf.ByteString getYoutubeExternalIdBytes() { + java.lang.Object ref = youtubeExternalId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + youtubeExternalId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +           * The external id of the video.
            +           * 
            + * + * string youtube_external_id = 1; + * + * @param value The youtubeExternalId to set. + * @return This builder for chaining. + */ + public Builder setYoutubeExternalId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + youtubeExternalId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +           * The external id of the video.
            +           * 
            + * + * string youtube_external_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearYoutubeExternalId() { + youtubeExternalId_ = getDefaultInstance().getYoutubeExternalId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +           * The external id of the video.
            +           * 
            + * + * string youtube_external_id = 1; + * + * @param value The bytes for youtubeExternalId to set. + * @return This builder for chaining. + */ + public Builder setYoutubeExternalIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + youtubeExternalId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata) + private static final com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + 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.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.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.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.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.v1beta.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.v1beta.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.v1beta.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.v1beta.FactChunk support_chunks = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.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.v1beta.FactChunk support_chunks = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + searchEntryPoint_; + + /** + * + * + *
            +       * Google search entry for the following-up web searches.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + * + * @return The searchEntryPoint. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + getSearchEntryPoint() { + return searchEntryPoint_ == null + ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.getDefaultInstance() + : searchEntryPoint_; + } + + /** + * + * + *
            +       * Google search entry for the following-up web searches.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPointOrBuilder + getSearchEntryPointOrBuilder() { + return searchEntryPoint_ == null + ? com.google.cloud.discoveryengine.v1beta.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.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.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.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupportOrBuilder + getGroundingSupportOrBuilder(int index) { + return groundingSupport_.get(index); + } + + public static final int IMAGES_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata> + images_; + + /** + * + * + *
            +       * Images from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata> + getImagesList() { + return images_; + } + + /** + * + * + *
            +       * Images from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadataOrBuilder> + getImagesOrBuilderList() { + return images_; + } + + /** + * + * + *
            +       * Images from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * + */ + @java.lang.Override + public int getImagesCount() { + return images_.size(); + } + + /** + * + * + *
            +       * Images from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata + getImages(int index) { + return images_.get(index); + } + + /** + * + * + *
            +       * Images from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadataOrBuilder + getImagesOrBuilder(int index) { + return images_.get(index); + } + + public static final int VIDEOS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata> + videos_; + + /** + * + * + *
            +       * Videos from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata> + getVideosList() { + return videos_; + } + + /** + * + * + *
            +       * Videos from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadataOrBuilder> + getVideosOrBuilderList() { + return videos_; + } + + /** + * + * + *
            +       * Videos from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + @java.lang.Override + public int getVideosCount() { + return videos_.size(); + } + + /** + * + * + *
            +       * Videos from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadata + getVideos(int index) { + return videos_.get(index); + } + + /** + * + * + *
            +       * Videos from the web search.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.VideoMetadataOrBuilder + getVideosOrBuilder(int index) { + return videos_.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.GeneratedMessage.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)); + } + for (int i = 0; i < images_.size(); i++) { + output.writeMessage(9, images_.get(i)); + } + for (int i = 0; i < videos_.size(); i++) { + output.writeMessage(11, videos_.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)); + } + for (int i = 0; i < images_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, images_.get(i)); + } + for (int i = 0; i < videos_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, videos_.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.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + other = + (com.google.cloud.discoveryengine.v1beta.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 (!getImagesList().equals(other.getImagesList())) return false; + if (!getVideosList().equals(other.getVideosList())) 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(); + } + if (getImagesCount() > 0) { + hash = (37 * hash) + IMAGES_FIELD_NUMBER; + hash = (53 * hash) + getImagesList().hashCode(); + } + if (getVideosCount() > 0) { + hash = (37 * hash) + VIDEOS_FIELD_NUMBER; + hash = (53 * hash) + getVideosList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.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.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.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.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.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.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Citation for the generated content.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata) + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.class, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRetrievalMetadataFieldBuilder(); + internalGetSupportChunksFieldBuilder(); + internalGetSearchEntryPointFieldBuilder(); + internalGetGroundingSupportFieldBuilder(); + internalGetImagesFieldBuilder(); + internalGetVideosFieldBuilder(); + } + } + + @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); + if (imagesBuilder_ == null) { + images_ = java.util.Collections.emptyList(); + } else { + images_ = null; + imagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (videosBuilder_ == null) { + videos_ = java.util.Collections.emptyList(); + } else { + videos_ = null; + videosBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + build() { + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + result = + new com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.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(); + } + if (imagesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + images_ = java.util.Collections.unmodifiableList(images_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.images_ = images_; + } else { + result.images_ = imagesBuilder_.build(); + } + if (videosBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + videos_ = java.util.Collections.unmodifiableList(videos_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.videos_ = videos_; + } else { + result.videos_ = videosBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.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 mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.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.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRetrievalMetadataFieldBuilder() + : 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.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSupportChunksFieldBuilder() + : 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.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetGroundingSupportFieldBuilder() + : null; + } else { + groundingSupportBuilder_.addAllMessages(other.groundingSupport_); + } + } + } + if (imagesBuilder_ == null) { + if (!other.images_.isEmpty()) { + if (images_.isEmpty()) { + images_ = other.images_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureImagesIsMutable(); + images_.addAll(other.images_); + } + onChanged(); + } + } else { + if (!other.images_.isEmpty()) { + if (imagesBuilder_.isEmpty()) { + imagesBuilder_.dispose(); + imagesBuilder_ = null; + images_ = other.images_; + bitField0_ = (bitField0_ & ~0x00000020); + imagesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetImagesFieldBuilder() + : null; + } else { + imagesBuilder_.addAllMessages(other.images_); + } + } + } + if (videosBuilder_ == null) { + if (!other.videos_.isEmpty()) { + if (videos_.isEmpty()) { + videos_ = other.videos_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureVideosIsMutable(); + videos_.addAll(other.videos_); + } + onChanged(); + } + } else { + if (!other.videos_.isEmpty()) { + if (videosBuilder_.isEmpty()) { + videosBuilder_.dispose(); + videosBuilder_ = null; + videos_ = other.videos_; + bitField0_ = (bitField0_ & ~0x00000040); + videosBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetVideosFieldBuilder() + : null; + } else { + videosBuilder_.addAllMessages(other.videos_); + } + } + } + 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.v1beta.FactChunk m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.FactChunk.parser(), + extensionRegistry); + if (supportChunksBuilder_ == null) { + ensureSupportChunksIsMutable(); + supportChunks_.add(m); + } else { + supportChunksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.GroundingSupport + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta + .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( + internalGetSearchEntryPointFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.RetrievalMetadata + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta + .GenerateGroundedContentResponse.Candidate.GroundingMetadata + .RetrievalMetadata.parser(), + extensionRegistry); + if (retrievalMetadataBuilder_ == null) { + ensureRetrievalMetadataIsMutable(); + retrievalMetadata_.add(m); + } else { + retrievalMetadataBuilder_.addMessage(m); + } + break; + } // case 42 + case 74: + { + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta + .GenerateGroundedContentResponse.Candidate.GroundingMetadata + .ImageMetadata.parser(), + extensionRegistry); + if (imagesBuilder_ == null) { + ensureImagesIsMutable(); + images_.add(m); + } else { + imagesBuilder_.addMessage(m); + } + break; + } // case 74 + case 90: + { + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.VideoMetadata + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta + .GenerateGroundedContentResponse.Candidate.GroundingMetadata + .VideoMetadata.parser(), + extensionRegistry); + if (videosBuilder_ == null) { + ensureVideosIsMutable(); + videos_.add(m); + } else { + videosBuilder_.addMessage(m); + } + break; + } // case 90 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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.v1beta.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.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.RetrievalMetadata>(retrievalMetadata_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.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.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder setRetrievalMetadata( + int index, + com.google.cloud.discoveryengine.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder setRetrievalMetadata( + int index, + com.google.cloud.discoveryengine.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder addRetrievalMetadata( + com.google.cloud.discoveryengine.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder addRetrievalMetadata( + int index, + com.google.cloud.discoveryengine.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder addRetrievalMetadata( + com.google.cloud.discoveryengine.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder addRetrievalMetadata( + int index, + com.google.cloud.discoveryengine.v1beta.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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public Builder addAllRetrievalMetadata( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.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.v1beta.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.v1beta.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; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetRetrievalMetadataFieldBuilder(); - internalGetSupportChunksFieldBuilder(); - internalGetSearchEntryPointFieldBuilder(); - internalGetGroundingSupportFieldBuilder(); - } + /** + * + * + *
            +         * 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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder + getRetrievalMetadataBuilder(int index) { + return internalGetRetrievalMetadataFieldBuilder().getBuilder(index); } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; + /** + * + * + *
            +         * 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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadataOrBuilder + getRetrievalMetadataOrBuilder(int index) { if (retrievalMetadataBuilder_ == null) { - retrievalMetadata_ = java.util.Collections.emptyList(); - } else { - retrievalMetadata_ = null; - retrievalMetadataBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (supportChunksBuilder_ == null) { - supportChunks_ = java.util.Collections.emptyList(); + return retrievalMetadata_.get(index); } else { - supportChunks_ = null; - supportChunksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); - searchEntryPoint_ = null; - if (searchEntryPointBuilder_ != null) { - searchEntryPointBuilder_.dispose(); - searchEntryPointBuilder_ = null; + return retrievalMetadataBuilder_.getMessageOrBuilder(index); } - if (groundingSupportBuilder_ == null) { - groundingSupport_ = java.util.Collections.emptyList(); + } + + /** + * + * + *
            +         * 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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.RetrievalMetadataOrBuilder> + getRetrievalMetadataOrBuilderList() { + if (retrievalMetadataBuilder_ != null) { + return retrievalMetadataBuilder_.getMessageOrBuilderList(); } else { - groundingSupport_ = null; - groundingSupportBuilder_.clear(); + return java.util.Collections.unmodifiableList(retrievalMetadata_); } - bitField0_ = (bitField0_ & ~0x00000010); - return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.GroundedGenerationServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor; + /** + * + * + *
            +         * 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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder + addRetrievalMetadataBuilder() { + return internalGetRetrievalMetadataFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.getDefaultInstance()); } - @java.lang.Override + /** + * + * + *
            +         * 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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.getDefaultInstance(); + .GroundingMetadata.RetrievalMetadata.Builder + addRetrievalMetadataBuilder(int index) { + return internalGetRetrievalMetadataFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.getDefaultInstance()); } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata - build() { - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
            +         * 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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder> + getRetrievalMetadataBuilderList() { + return internalGetRetrievalMetadataFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.RetrievalMetadataOrBuilder> + internalGetRetrievalMetadataFieldBuilder() { + if (retrievalMetadataBuilder_ == null) { + retrievalMetadataBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.RetrievalMetadata, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.RetrievalMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.RetrievalMetadataOrBuilder>( + retrievalMetadata_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + retrievalMetadata_ = null; } - return result; + return retrievalMetadataBuilder_; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata - buildPartial() { - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata - result = - new com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); + 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.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.FactChunk, + com.google.cloud.discoveryengine.v1beta.FactChunk.Builder, + com.google.cloud.discoveryengine.v1beta.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.v1beta.FactChunk support_chunks = 1; + */ + public java.util.List + getSupportChunksList() { + if (supportChunksBuilder_ == null) { + return java.util.Collections.unmodifiableList(supportChunks_); + } else { + return supportChunksBuilder_.getMessageList(); } - onBuilt(); - return result; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata - result) { - if (retrievalMetadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - retrievalMetadata_ = java.util.Collections.unmodifiableList(retrievalMetadata_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.retrievalMetadata_ = retrievalMetadata_; + /** + * + * + *
            +         * 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.v1beta.FactChunk support_chunks = 1; + */ + public int getSupportChunksCount() { + if (supportChunksBuilder_ == null) { + return supportChunks_.size(); } else { - result.retrievalMetadata_ = retrievalMetadataBuilder_.build(); + 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.v1beta.FactChunk support_chunks = 1; + */ + public com.google.cloud.discoveryengine.v1beta.FactChunk getSupportChunks(int index) { if (supportChunksBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - supportChunks_ = java.util.Collections.unmodifiableList(supportChunks_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.supportChunks_ = supportChunks_; + return supportChunks_.get(index); } else { - result.supportChunks_ = supportChunksBuilder_.build(); + return supportChunksBuilder_.getMessage(index); } - if (groundingSupportBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - groundingSupport_ = java.util.Collections.unmodifiableList(groundingSupport_); - bitField0_ = (bitField0_ & ~0x00000010); + } + + /** + * + * + *
            +         * 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.v1beta.FactChunk support_chunks = 1; + */ + public Builder setSupportChunks( + int index, com.google.cloud.discoveryengine.v1beta.FactChunk value) { + if (supportChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - result.groundingSupport_ = groundingSupport_; + ensureSupportChunksIsMutable(); + supportChunks_.set(index, value); + onChanged(); } else { - result.groundingSupport_ = groundingSupportBuilder_.build(); + supportChunksBuilder_.setMessage(index, value); } + return this; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.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; + /** + * + * + *
            +         * 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.v1beta.FactChunk support_chunks = 1; + */ + public Builder setSupportChunks( + int index, com.google.cloud.discoveryengine.v1beta.FactChunk.Builder builderForValue) { + if (supportChunksBuilder_ == null) { + ensureSupportChunksIsMutable(); + supportChunks_.set(index, builderForValue.build()); + onChanged(); + } else { + supportChunksBuilder_.setMessage(index, builderForValue.build()); } - result.bitField0_ |= to_bitField0_; + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata) - other); + /** + * + * + *
            +         * 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.v1beta.FactChunk support_chunks = 1; + */ + public Builder addSupportChunks(com.google.cloud.discoveryengine.v1beta.FactChunk value) { + if (supportChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSupportChunksIsMutable(); + supportChunks_.add(value); + onChanged(); } else { - super.mergeFrom(other); - return this; + supportChunksBuilder_.addMessage(value); } + return this; } - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.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(); + /** + * + * + *
            +         * 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.v1beta.FactChunk support_chunks = 1; + */ + public Builder addSupportChunks( + int index, com.google.cloud.discoveryengine.v1beta.FactChunk value) { + if (supportChunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureSupportChunksIsMutable(); + supportChunks_.add(index, value); + onChanged(); } else { - if (!other.retrievalMetadata_.isEmpty()) { - if (retrievalMetadataBuilder_.isEmpty()) { - retrievalMetadataBuilder_.dispose(); - retrievalMetadataBuilder_ = null; - retrievalMetadata_ = other.retrievalMetadata_; - bitField0_ = (bitField0_ & ~0x00000001); - retrievalMetadataBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetRetrievalMetadataFieldBuilder() - : null; - } else { - retrievalMetadataBuilder_.addAllMessages(other.retrievalMetadata_); - } - } + 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.v1beta.FactChunk support_chunks = 1; + */ + public Builder addSupportChunks( + com.google.cloud.discoveryengine.v1beta.FactChunk.Builder builderForValue) { if (supportChunksBuilder_ == null) { - if (!other.supportChunks_.isEmpty()) { - if (supportChunks_.isEmpty()) { - supportChunks_ = other.supportChunks_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSupportChunksIsMutable(); - supportChunks_.addAll(other.supportChunks_); - } - onChanged(); - } + ensureSupportChunksIsMutable(); + supportChunks_.add(builderForValue.build()); + onChanged(); } else { - if (!other.supportChunks_.isEmpty()) { - if (supportChunksBuilder_.isEmpty()) { - supportChunksBuilder_.dispose(); - supportChunksBuilder_ = null; - supportChunks_ = other.supportChunks_; - bitField0_ = (bitField0_ & ~0x00000002); - supportChunksBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetSupportChunksFieldBuilder() - : null; - } else { - supportChunksBuilder_.addAllMessages(other.supportChunks_); - } - } + supportChunksBuilder_.addMessage(builderForValue.build()); } - if (!other.webSearchQueries_.isEmpty()) { - if (webSearchQueries_.isEmpty()) { - webSearchQueries_ = other.webSearchQueries_; - bitField0_ |= 0x00000004; - } else { - ensureWebSearchQueriesIsMutable(); - webSearchQueries_.addAll(other.webSearchQueries_); - } + 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.v1beta.FactChunk support_chunks = 1; + */ + public Builder addSupportChunks( + int index, com.google.cloud.discoveryengine.v1beta.FactChunk.Builder builderForValue) { + if (supportChunksBuilder_ == null) { + ensureSupportChunksIsMutable(); + supportChunks_.add(index, builderForValue.build()); 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.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetGroundingSupportFieldBuilder() - : null; - } else { - groundingSupportBuilder_.addAllMessages(other.groundingSupport_); - } - } + supportChunksBuilder_.addMessage(index, builderForValue.build()); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
            +         * 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.v1beta.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; } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
            +         * 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.v1beta.FactChunk support_chunks = 1; + */ + public Builder clearSupportChunks() { + if (supportChunksBuilder_ == null) { + supportChunks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + supportChunksBuilder_.clear(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.cloud.discoveryengine.v1beta.FactChunk m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.FactChunk.parser(), - extensionRegistry); - if (supportChunksBuilder_ == null) { - ensureSupportChunksIsMutable(); - supportChunks_.add(m); - } else { - supportChunksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.GroundingSupport - m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta - .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( - internalGetSearchEntryPointFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.RetrievalMetadata - m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta - .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 { + 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.v1beta.FactChunk support_chunks = 1; + */ + public Builder removeSupportChunks(int index) { + if (supportChunksBuilder_ == null) { + ensureSupportChunksIsMutable(); + supportChunks_.remove(index); onChanged(); - } // finally + } else { + supportChunksBuilder_.remove(index); + } return this; } - private int bitField0_; + /** + * + * + *
            +         * 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.v1beta.FactChunk support_chunks = 1; + */ + public com.google.cloud.discoveryengine.v1beta.FactChunk.Builder getSupportChunksBuilder( + int index) { + return internalGetSupportChunksFieldBuilder().getBuilder(index); + } - private java.util.List< - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata> - retrievalMetadata_ = java.util.Collections.emptyList(); + /** + * + * + *
            +         * 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.v1beta.FactChunk support_chunks = 1; + */ + public com.google.cloud.discoveryengine.v1beta.FactChunkOrBuilder getSupportChunksOrBuilder( + int index) { + if (supportChunksBuilder_ == null) { + return supportChunks_.get(index); + } else { + return supportChunksBuilder_.getMessageOrBuilder(index); + } + } - private void ensureRetrievalMetadataIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - retrievalMetadata_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.RetrievalMetadata>(retrievalMetadata_); - bitField0_ |= 0x00000001; + /** + * + * + *
            +         * 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.v1beta.FactChunk support_chunks = 1; + */ + public java.util.List + getSupportChunksOrBuilderList() { + if (supportChunksBuilder_ != null) { + return supportChunksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(supportChunks_); } } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata, - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.Builder, - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadataOrBuilder> - retrievalMetadataBuilder_; + /** + * + * + *
            +         * 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.v1beta.FactChunk support_chunks = 1; + */ + public com.google.cloud.discoveryengine.v1beta.FactChunk.Builder addSupportChunksBuilder() { + return internalGetSupportChunksFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1beta.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.v1beta.FactChunk support_chunks = 1; + */ + public com.google.cloud.discoveryengine.v1beta.FactChunk.Builder addSupportChunksBuilder( + int index) { + return internalGetSupportChunksFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1beta.FactChunk.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.
            +         * 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.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * repeated .google.cloud.discoveryengine.v1beta.FactChunk support_chunks = 1; */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata> - getRetrievalMetadataList() { - if (retrievalMetadataBuilder_ == null) { - return java.util.Collections.unmodifiableList(retrievalMetadata_); - } else { - return retrievalMetadataBuilder_.getMessageList(); + public java.util.List + getSupportChunksBuilderList() { + return internalGetSupportChunksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.FactChunk, + com.google.cloud.discoveryengine.v1beta.FactChunk.Builder, + com.google.cloud.discoveryengine.v1beta.FactChunkOrBuilder> + internalGetSupportChunksFieldBuilder() { + if (supportChunksBuilder_ == null) { + supportChunksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.FactChunk, + com.google.cloud.discoveryengine.v1beta.FactChunk.Builder, + com.google.cloud.discoveryengine.v1beta.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; } /** * * *
            -         * 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.
            +         * Web search queries for the following-up web search.
                      * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * repeated string web_search_queries = 3; + * + * @return A list containing the webSearchQueries. */ - public int getRetrievalMetadataCount() { - if (retrievalMetadataBuilder_ == null) { - return retrievalMetadata_.size(); - } else { - return retrievalMetadataBuilder_.getCount(); - } + public com.google.protobuf.ProtocolStringList getWebSearchQueriesList() { + webSearchQueries_.makeImmutable(); + return webSearchQueries_; } /** * * *
            -         * 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.
            +         * Web search queries for the following-up web search.
                      * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * repeated string web_search_queries = 3; + * + * @return The count of webSearchQueries. */ - public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata - getRetrievalMetadata(int index) { - if (retrievalMetadataBuilder_ == null) { - return retrievalMetadata_.get(index); - } else { - return retrievalMetadataBuilder_.getMessage(index); - } + public int getWebSearchQueriesCount() { + return webSearchQueries_.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.
            +         * Web search queries for the following-up web search.
                      * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * repeated string web_search_queries = 3; + * + * @param index The index of the element to return. + * @return The webSearchQueries at the given index. */ - public Builder setRetrievalMetadata( - int index, - com.google.cloud.discoveryengine.v1beta.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; + public java.lang.String getWebSearchQueries(int index) { + return webSearchQueries_.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.
            +         * Web search queries for the following-up web search.
                      * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * 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 Builder setRetrievalMetadata( - int index, - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.Builder - builderForValue) { - if (retrievalMetadataBuilder_ == null) { - ensureRetrievalMetadataIsMutable(); - retrievalMetadata_.set(index, builderForValue.build()); - onChanged(); - } else { - retrievalMetadataBuilder_.setMessage(index, builderForValue.build()); - } - return this; + public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) { + return webSearchQueries_.getByteString(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.
            +         * Web search queries for the following-up web search.
                      * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * 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 addRetrievalMetadata( - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata - value) { - if (retrievalMetadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRetrievalMetadataIsMutable(); - retrievalMetadata_.add(value); - onChanged(); - } else { - retrievalMetadataBuilder_.addMessage(value); + 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; } @@ -7204,31 +12880,42 @@ public Builder addRetrievalMetadata( * * *
            -         * 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.
            +         * Web search queries for the following-up web search.
                      * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * repeated string web_search_queries = 3; + * + * @param value The webSearchQueries to add. + * @return This builder for chaining. */ - public Builder addRetrievalMetadata( - int index, - com.google.cloud.discoveryengine.v1beta.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); + 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; } @@ -7236,27 +12923,18 @@ public Builder addRetrievalMetadata( * * *
            -         * 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.
            +         * Web search queries for the following-up web search.
                      * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * repeated string web_search_queries = 3; + * + * @return This builder for chaining. */ - public Builder addRetrievalMetadata( - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.Builder - builderForValue) { - if (retrievalMetadataBuilder_ == null) { - ensureRetrievalMetadataIsMutable(); - retrievalMetadata_.add(builderForValue.build()); - onChanged(); - } else { - retrievalMetadataBuilder_.addMessage(builderForValue.build()); - } + public Builder clearWebSearchQueries() { + webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); return this; } @@ -7264,108 +12942,106 @@ public Builder addRetrievalMetadata( * * *
            -         * 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.
            +         * Web search queries for the following-up web search.
                      * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * + * repeated string web_search_queries = 3; + * + * @param value The bytes of the webSearchQueries to add. + * @return This builder for chaining. */ - public Builder addRetrievalMetadata( - int index, - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.Builder - builderForValue) { - if (retrievalMetadataBuilder_ == null) { - ensureRetrievalMetadataIsMutable(); - retrievalMetadata_.add(index, builderForValue.build()); - onChanged(); - } else { - retrievalMetadataBuilder_.addMessage(index, builderForValue.build()); + 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.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + searchEntryPoint_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPointOrBuilder> + searchEntryPointBuilder_; + /** * * *
            -         * 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.
            +         * Google search entry for the following-up web searches.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; * + * + * @return Whether the searchEntryPoint field is set. */ - public Builder addAllRetrievalMetadata( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.RetrievalMetadata> - values) { - if (retrievalMetadataBuilder_ == null) { - ensureRetrievalMetadataIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, retrievalMetadata_); - onChanged(); - } else { - retrievalMetadataBuilder_.addAllMessages(values); - } - return this; + public boolean hasSearchEntryPoint() { + return ((bitField0_ & 0x00000008) != 0); } /** * * *
            -         * 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.
            +         * Google search entry for the following-up web searches.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; * + * + * @return The searchEntryPoint. */ - public Builder clearRetrievalMetadata() { - if (retrievalMetadataBuilder_ == null) { - retrievalMetadata_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + getSearchEntryPoint() { + if (searchEntryPointBuilder_ == null) { + return searchEntryPoint_ == null + ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.getDefaultInstance() + : searchEntryPoint_; } else { - retrievalMetadataBuilder_.clear(); + return searchEntryPointBuilder_.getMessage(); } - 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.
            +         * Google search entry for the following-up web searches.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; * */ - public Builder removeRetrievalMetadata(int index) { - if (retrievalMetadataBuilder_ == null) { - ensureRetrievalMetadataIsMutable(); - retrievalMetadata_.remove(index); - onChanged(); + public Builder setSearchEntryPoint( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + value) { + if (searchEntryPointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchEntryPoint_ = value; } else { - retrievalMetadataBuilder_.remove(index); + searchEntryPointBuilder_.setMessage(value); } + bitField0_ |= 0x00000008; + onChanged(); return this; } @@ -7373,200 +13049,206 @@ public Builder removeRetrievalMetadata(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.
            +         * Google search entry for the following-up web searches.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; * */ - public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.Builder - getRetrievalMetadataBuilder(int index) { - return internalGetRetrievalMetadataFieldBuilder().getBuilder(index); + public Builder setSearchEntryPoint( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.Builder + builderForValue) { + if (searchEntryPointBuilder_ == null) { + searchEntryPoint_ = builderForValue.build(); + } else { + searchEntryPointBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + 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.
            +         * Google search entry for the following-up web searches.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; * */ - public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadataOrBuilder - getRetrievalMetadataOrBuilder(int index) { - if (retrievalMetadataBuilder_ == null) { - return retrievalMetadata_.get(index); + public Builder mergeSearchEntryPoint( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint + value) { + if (searchEntryPointBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && searchEntryPoint_ != null + && searchEntryPoint_ + != com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.SearchEntryPoint.getDefaultInstance()) { + getSearchEntryPointBuilder().mergeFrom(value); + } else { + searchEntryPoint_ = value; + } } else { - return retrievalMetadataBuilder_.getMessageOrBuilder(index); + searchEntryPointBuilder_.mergeFrom(value); + } + if (searchEntryPoint_ != null) { + bitField0_ |= 0x00000008; + onChanged(); } + 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.
            +         * Google search entry for the following-up web searches.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; * */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.RetrievalMetadataOrBuilder> - getRetrievalMetadataOrBuilderList() { - if (retrievalMetadataBuilder_ != null) { - return retrievalMetadataBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(retrievalMetadata_); + public Builder clearSearchEntryPoint() { + bitField0_ = (bitField0_ & ~0x00000008); + searchEntryPoint_ = null; + if (searchEntryPointBuilder_ != null) { + searchEntryPointBuilder_.dispose(); + searchEntryPointBuilder_ = null; } + onChanged(); + 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.
            +         * Google search entry for the following-up web searches.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * - */ - public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.Builder - addRetrievalMetadataBuilder() { - return internalGetRetrievalMetadataFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.getDefaultInstance()); + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * + */ + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.Builder + getSearchEntryPointBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetSearchEntryPointFieldBuilder().getBuilder(); } /** * * *
            -         * 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.
            +         * Google search entry for the following-up web searches.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; * */ public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.Builder - addRetrievalMetadataBuilder(int index) { - return internalGetRetrievalMetadataFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.getDefaultInstance()); + .GroundingMetadata.SearchEntryPointOrBuilder + getSearchEntryPointOrBuilder() { + if (searchEntryPointBuilder_ != null) { + return searchEntryPointBuilder_.getMessageOrBuilder(); + } else { + return searchEntryPoint_ == null + ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.SearchEntryPoint.getDefaultInstance() + : searchEntryPoint_; + } } /** * * *
            -         * 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.
            +         * Google search entry for the following-up web searches.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; + * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; * */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.Builder> - getRetrievalMetadataBuilderList() { - return internalGetRetrievalMetadataFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.SingleFieldBuilder< com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata, + .GroundingMetadata.SearchEntryPoint, com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadata.Builder, + .GroundingMetadata.SearchEntryPoint.Builder, com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.RetrievalMetadataOrBuilder> - internalGetRetrievalMetadataFieldBuilder() { - if (retrievalMetadataBuilder_ == null) { - retrievalMetadataBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< + .GroundingMetadata.SearchEntryPointOrBuilder> + internalGetSearchEntryPointFieldBuilder() { + if (searchEntryPointBuilder_ == null) { + searchEntryPointBuilder_ = + new com.google.protobuf.SingleFieldBuilder< com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.RetrievalMetadata, + .Candidate.GroundingMetadata.SearchEntryPoint, com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.RetrievalMetadata.Builder, + .Candidate.GroundingMetadata.SearchEntryPoint.Builder, com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.RetrievalMetadataOrBuilder>( - retrievalMetadata_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - retrievalMetadata_ = null; + .Candidate.GroundingMetadata.SearchEntryPointOrBuilder>( + getSearchEntryPoint(), getParentForChildren(), isClean()); + searchEntryPoint_ = null; } - return retrievalMetadataBuilder_; + return searchEntryPointBuilder_; } - private java.util.List supportChunks_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport> + groundingSupport_ = java.util.Collections.emptyList(); - private void ensureSupportChunksIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - supportChunks_ = - new java.util.ArrayList( - supportChunks_); - bitField0_ |= 0x00000002; + private void ensureGroundingSupportIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + groundingSupport_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.GroundingSupport>(groundingSupport_); + bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.FactChunk, - com.google.cloud.discoveryengine.v1beta.FactChunk.Builder, - com.google.cloud.discoveryengine.v1beta.FactChunkOrBuilder> - supportChunksBuilder_; + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupportOrBuilder> + groundingSupportBuilder_; /** * * *
            -         * List of chunks to be attributed across all claims in the candidate.
            -         * These are derived from the grounding sources supplied in the request.
            +         * 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.v1beta.FactChunk support_chunks = 1; + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public java.util.List - getSupportChunksList() { - if (supportChunksBuilder_ == null) { - return java.util.Collections.unmodifiableList(supportChunks_); + public java.util.List< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport> + getGroundingSupportList() { + if (groundingSupportBuilder_ == null) { + return java.util.Collections.unmodifiableList(groundingSupport_); } else { - return supportChunksBuilder_.getMessageList(); + return groundingSupportBuilder_.getMessageList(); } } @@ -7574,17 +13256,20 @@ private void ensureSupportChunksIsMutable() { * * *
            -         * List of chunks to be attributed across all claims in the candidate.
            -         * These are derived from the grounding sources supplied in the request.
            +         * 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.v1beta.FactChunk support_chunks = 1; + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public int getSupportChunksCount() { - if (supportChunksBuilder_ == null) { - return supportChunks_.size(); + public int getGroundingSupportCount() { + if (groundingSupportBuilder_ == null) { + return groundingSupport_.size(); } else { - return supportChunksBuilder_.getCount(); + return groundingSupportBuilder_.getCount(); } } @@ -7592,17 +13277,22 @@ public 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.
            +         * 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.v1beta.FactChunk support_chunks = 1; + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public com.google.cloud.discoveryengine.v1beta.FactChunk getSupportChunks(int index) { - if (supportChunksBuilder_ == null) { - return supportChunks_.get(index); + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + getGroundingSupport(int index) { + if (groundingSupportBuilder_ == null) { + return groundingSupport_.get(index); } else { - return supportChunksBuilder_.getMessage(index); + return groundingSupportBuilder_.getMessage(index); } } @@ -7610,23 +13300,29 @@ public com.google.cloud.discoveryengine.v1beta.FactChunk getSupportChunks(int in * * *
            -         * List of chunks to be attributed across all claims in the candidate.
            -         * These are derived from the grounding sources supplied in the request.
            +         * 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.v1beta.FactChunk support_chunks = 1; + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public Builder setSupportChunks( - int index, com.google.cloud.discoveryengine.v1beta.FactChunk value) { - if (supportChunksBuilder_ == null) { + public Builder setGroundingSupport( + int index, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + value) { + if (groundingSupportBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureSupportChunksIsMutable(); - supportChunks_.set(index, value); + ensureGroundingSupportIsMutable(); + groundingSupport_.set(index, value); onChanged(); } else { - supportChunksBuilder_.setMessage(index, value); + groundingSupportBuilder_.setMessage(index, value); } return this; } @@ -7635,20 +13331,26 @@ public Builder setSupportChunks( * * *
            -         * List of chunks to be attributed across all claims in the candidate.
            -         * These are derived from the grounding sources supplied in the request.
            +         * 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.v1beta.FactChunk support_chunks = 1; + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public Builder setSupportChunks( - int index, com.google.cloud.discoveryengine.v1beta.FactChunk.Builder builderForValue) { - if (supportChunksBuilder_ == null) { - ensureSupportChunksIsMutable(); - supportChunks_.set(index, builderForValue.build()); + public Builder setGroundingSupport( + int index, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder + builderForValue) { + if (groundingSupportBuilder_ == null) { + ensureGroundingSupportIsMutable(); + groundingSupport_.set(index, builderForValue.build()); onChanged(); } else { - supportChunksBuilder_.setMessage(index, builderForValue.build()); + groundingSupportBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -7657,22 +13359,28 @@ public Builder setSupportChunks( * * *
            -         * List of chunks to be attributed across all claims in the candidate.
            -         * These are derived from the grounding sources supplied in the request.
            +         * 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.v1beta.FactChunk support_chunks = 1; + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public Builder addSupportChunks(com.google.cloud.discoveryengine.v1beta.FactChunk value) { - if (supportChunksBuilder_ == null) { + public Builder addGroundingSupport( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + value) { + if (groundingSupportBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureSupportChunksIsMutable(); - supportChunks_.add(value); + ensureGroundingSupportIsMutable(); + groundingSupport_.add(value); onChanged(); } else { - supportChunksBuilder_.addMessage(value); + groundingSupportBuilder_.addMessage(value); } return this; } @@ -7681,23 +13389,29 @@ public Builder addSupportChunks(com.google.cloud.discoveryengine.v1beta.FactChun * * *
            -         * List of chunks to be attributed across all claims in the candidate.
            -         * These are derived from the grounding sources supplied in the request.
            +         * 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.v1beta.FactChunk support_chunks = 1; + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public Builder addSupportChunks( - int index, com.google.cloud.discoveryengine.v1beta.FactChunk value) { - if (supportChunksBuilder_ == null) { + public Builder addGroundingSupport( + int index, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport + value) { + if (groundingSupportBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureSupportChunksIsMutable(); - supportChunks_.add(index, value); + ensureGroundingSupportIsMutable(); + groundingSupport_.add(index, value); onChanged(); } else { - supportChunksBuilder_.addMessage(index, value); + groundingSupportBuilder_.addMessage(index, value); } return this; } @@ -7706,20 +13420,25 @@ public Builder addSupportChunks( * * *
            -         * List of chunks to be attributed across all claims in the candidate.
            -         * These are derived from the grounding sources supplied in the request.
            +         * 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.v1beta.FactChunk support_chunks = 1; + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public Builder addSupportChunks( - com.google.cloud.discoveryengine.v1beta.FactChunk.Builder builderForValue) { - if (supportChunksBuilder_ == null) { - ensureSupportChunksIsMutable(); - supportChunks_.add(builderForValue.build()); + public Builder addGroundingSupport( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder + builderForValue) { + if (groundingSupportBuilder_ == null) { + ensureGroundingSupportIsMutable(); + groundingSupport_.add(builderForValue.build()); onChanged(); } else { - supportChunksBuilder_.addMessage(builderForValue.build()); + groundingSupportBuilder_.addMessage(builderForValue.build()); } return this; } @@ -7728,20 +13447,26 @@ public Builder addSupportChunks( * * *
            -         * List of chunks to be attributed across all claims in the candidate.
            -         * These are derived from the grounding sources supplied in the request.
            +         * 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.v1beta.FactChunk support_chunks = 1; + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public Builder addSupportChunks( - int index, com.google.cloud.discoveryengine.v1beta.FactChunk.Builder builderForValue) { - if (supportChunksBuilder_ == null) { - ensureSupportChunksIsMutable(); - supportChunks_.add(index, builderForValue.build()); + public Builder addGroundingSupport( + int index, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder + builderForValue) { + if (groundingSupportBuilder_ == null) { + ensureGroundingSupportIsMutable(); + groundingSupport_.add(index, builderForValue.build()); onChanged(); } else { - supportChunksBuilder_.addMessage(index, builderForValue.build()); + groundingSupportBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -7750,21 +13475,27 @@ public Builder addSupportChunks( * * *
            -         * List of chunks to be attributed across all claims in the candidate.
            -         * These are derived from the grounding sources supplied in the request.
            +         * 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.v1beta.FactChunk support_chunks = 1; + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public Builder addAllSupportChunks( - java.lang.Iterable + public Builder addAllGroundingSupport( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.GroundingSupport> values) { - if (supportChunksBuilder_ == null) { - ensureSupportChunksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, supportChunks_); + if (groundingSupportBuilder_ == null) { + ensureGroundingSupportIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingSupport_); onChanged(); } else { - supportChunksBuilder_.addAllMessages(values); + groundingSupportBuilder_.addAllMessages(values); } return this; } @@ -7773,19 +13504,22 @@ public Builder addAllSupportChunks( * * *
            -         * List of chunks to be attributed across all claims in the candidate.
            -         * These are derived from the grounding sources supplied in the request.
            +         * 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.v1beta.FactChunk support_chunks = 1; + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public Builder clearSupportChunks() { - if (supportChunksBuilder_ == null) { - supportChunks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + public Builder clearGroundingSupport() { + if (groundingSupportBuilder_ == null) { + groundingSupport_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { - supportChunksBuilder_.clear(); + groundingSupportBuilder_.clear(); } return this; } @@ -7794,19 +13528,22 @@ public Builder clearSupportChunks() { * * *
            -         * List of chunks to be attributed across all claims in the candidate.
            -         * These are derived from the grounding sources supplied in the request.
            +         * 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.v1beta.FactChunk support_chunks = 1; + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public Builder removeSupportChunks(int index) { - if (supportChunksBuilder_ == null) { - ensureSupportChunksIsMutable(); - supportChunks_.remove(index); + public Builder removeGroundingSupport(int index) { + if (groundingSupportBuilder_ == null) { + ensureGroundingSupportIsMutable(); + groundingSupport_.remove(index); onChanged(); } else { - supportChunksBuilder_.remove(index); + groundingSupportBuilder_.remove(index); } return this; } @@ -7815,33 +13552,41 @@ public Builder removeSupportChunks(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.
            +         * 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.v1beta.FactChunk support_chunks = 1; + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public com.google.cloud.discoveryengine.v1beta.FactChunk.Builder getSupportChunksBuilder( - int index) { - return internalGetSupportChunksFieldBuilder().getBuilder(index); + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder + getGroundingSupportBuilder(int index) { + return internalGetGroundingSupportFieldBuilder().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.
            +         * 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.v1beta.FactChunk support_chunks = 1; + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public com.google.cloud.discoveryengine.v1beta.FactChunkOrBuilder getSupportChunksOrBuilder( - int index) { - if (supportChunksBuilder_ == null) { - return supportChunks_.get(index); + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupportOrBuilder + getGroundingSupportOrBuilder(int index) { + if (groundingSupportBuilder_ == null) { + return groundingSupport_.get(index); } else { - return supportChunksBuilder_.getMessageOrBuilder(index); + return groundingSupportBuilder_.getMessageOrBuilder(index); } } @@ -7849,18 +13594,24 @@ public com.google.cloud.discoveryengine.v1beta.FactChunkOrBuilder getSupportChun * * *
            -         * List of chunks to be attributed across all claims in the candidate.
            -         * These are derived from the grounding sources supplied in the request.
            +         * 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.v1beta.FactChunk support_chunks = 1; + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public java.util.List - getSupportChunksOrBuilderList() { - if (supportChunksBuilder_ != null) { - return supportChunksBuilder_.getMessageOrBuilderList(); + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.GroundingSupportOrBuilder> + getGroundingSupportOrBuilderList() { + if (groundingSupportBuilder_ != null) { + return groundingSupportBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(supportChunks_); + return java.util.Collections.unmodifiableList(groundingSupport_); } } @@ -7868,163 +13619,231 @@ public com.google.cloud.discoveryengine.v1beta.FactChunkOrBuilder getSupportChun * * *
            -         * List of chunks to be attributed across all claims in the candidate.
            -         * These are derived from the grounding sources supplied in the request.
            +         * 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.v1beta.FactChunk support_chunks = 1; + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public com.google.cloud.discoveryengine.v1beta.FactChunk.Builder addSupportChunksBuilder() { - return internalGetSupportChunksFieldBuilder() - .addBuilder(com.google.cloud.discoveryengine.v1beta.FactChunk.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder + addGroundingSupportBuilder() { + return internalGetGroundingSupportFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.getDefaultInstance()); } /** * * *
            -         * List of chunks to be attributed across all claims in the candidate.
            -         * These are derived from the grounding sources supplied in the request.
            +         * 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.v1beta.FactChunk support_chunks = 1; + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public com.google.cloud.discoveryengine.v1beta.FactChunk.Builder addSupportChunksBuilder( - int index) { - return internalGetSupportChunksFieldBuilder() + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder + addGroundingSupportBuilder(int index) { + return internalGetGroundingSupportFieldBuilder() .addBuilder( - index, com.google.cloud.discoveryengine.v1beta.FactChunk.getDefaultInstance()); + index, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.getDefaultInstance()); } /** * * *
            -         * List of chunks to be attributed across all claims in the candidate.
            -         * These are derived from the grounding sources supplied in the request.
            +         * 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.v1beta.FactChunk support_chunks = 1; + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * */ - public java.util.List - getSupportChunksBuilderList() { - return internalGetSupportChunksFieldBuilder().getBuilderList(); + public java.util.List< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder> + getGroundingSupportBuilderList() { + return internalGetGroundingSupportFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.FactChunk, - com.google.cloud.discoveryengine.v1beta.FactChunk.Builder, - com.google.cloud.discoveryengine.v1beta.FactChunkOrBuilder> - internalGetSupportChunksFieldBuilder() { - if (supportChunksBuilder_ == null) { - supportChunksBuilder_ = + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupport.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.GroundingSupportOrBuilder> + internalGetGroundingSupportFieldBuilder() { + if (groundingSupportBuilder_ == null) { + groundingSupportBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.FactChunk, - com.google.cloud.discoveryengine.v1beta.FactChunk.Builder, - com.google.cloud.discoveryengine.v1beta.FactChunkOrBuilder>( - supportChunks_, - ((bitField0_ & 0x00000002) != 0), + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.GroundingSupport, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.GroundingSupport.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.GroundingSupportOrBuilder>( + groundingSupport_, + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - supportChunks_ = null; + groundingSupport_ = null; } - return supportChunksBuilder_; + return groundingSupportBuilder_; } - private com.google.protobuf.LazyStringArrayList webSearchQueries_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + private java.util.List< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata> + images_ = java.util.Collections.emptyList(); - private void ensureWebSearchQueriesIsMutable() { - if (!webSearchQueries_.isModifiable()) { - webSearchQueries_ = new com.google.protobuf.LazyStringArrayList(webSearchQueries_); + private void ensureImagesIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + images_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata>(images_); + bitField0_ |= 0x00000020; } - bitField0_ |= 0x00000004; } + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadataOrBuilder> + imagesBuilder_; + /** * * *
            -         * Web search queries for the following-up web search.
            +         * Images from the web search.
                      * 
            * - * repeated string web_search_queries = 3; - * - * @return A list containing the webSearchQueries. + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * */ - public com.google.protobuf.ProtocolStringList getWebSearchQueriesList() { - webSearchQueries_.makeImmutable(); - return webSearchQueries_; + public java.util.List< + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata> + getImagesList() { + if (imagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(images_); + } else { + return imagesBuilder_.getMessageList(); + } } /** * * *
            -         * Web search queries for the following-up web search.
            +         * Images from the web search.
                      * 
            * - * repeated string web_search_queries = 3; - * - * @return The count of webSearchQueries. + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * */ - public int getWebSearchQueriesCount() { - return webSearchQueries_.size(); + public int getImagesCount() { + if (imagesBuilder_ == null) { + return images_.size(); + } else { + return imagesBuilder_.getCount(); + } } /** * * *
            -         * Web search queries for the following-up web search.
            +         * Images from the web search.
                      * 
            * - * repeated string web_search_queries = 3; - * - * @param index The index of the element to return. - * @return The webSearchQueries at the given index. + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * */ - public java.lang.String getWebSearchQueries(int index) { - return webSearchQueries_.get(index); + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata + getImages(int index) { + if (imagesBuilder_ == null) { + return images_.get(index); + } else { + return imagesBuilder_.getMessage(index); + } } /** * * *
            -         * Web search queries for the following-up web search.
            +         * Images from the 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. + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * */ - public com.google.protobuf.ByteString getWebSearchQueriesBytes(int index) { - return webSearchQueries_.getByteString(index); + public Builder setImages( + int index, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata + value) { + if (imagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureImagesIsMutable(); + images_.set(index, value); + onChanged(); + } else { + imagesBuilder_.setMessage(index, value); + } + return this; } /** * * *
            -         * Web search queries for the following-up web search.
            +         * Images from the 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. + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * */ - public Builder setWebSearchQueries(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setImages( + int index, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Builder + builderForValue) { + if (imagesBuilder_ == null) { + ensureImagesIsMutable(); + images_.set(index, builderForValue.build()); + onChanged(); + } else { + imagesBuilder_.setMessage(index, builderForValue.build()); } - ensureWebSearchQueriesIsMutable(); - webSearchQueries_.set(index, value); - bitField0_ |= 0x00000004; - onChanged(); return this; } @@ -8032,22 +13851,27 @@ public Builder setWebSearchQueries(int index, java.lang.String value) { * * *
            -         * Web search queries for the following-up web search.
            +         * Images from the web search.
                      * 
            * - * repeated string web_search_queries = 3; - * - * @param value The webSearchQueries to add. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * */ - public Builder addWebSearchQueries(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder addImages( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata + value) { + if (imagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureImagesIsMutable(); + images_.add(value); + onChanged(); + } else { + imagesBuilder_.addMessage(value); } - ensureWebSearchQueriesIsMutable(); - webSearchQueries_.add(value); - bitField0_ |= 0x00000004; - onChanged(); return this; } @@ -8055,19 +13879,28 @@ public Builder addWebSearchQueries(java.lang.String value) { * * *
            -         * Web search queries for the following-up web search.
            +         * Images from the web search.
                      * 
            * - * repeated string web_search_queries = 3; - * - * @param values The webSearchQueries to add. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * */ - public Builder addAllWebSearchQueries(java.lang.Iterable values) { - ensureWebSearchQueriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, webSearchQueries_); - bitField0_ |= 0x00000004; - onChanged(); + public Builder addImages( + int index, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata + value) { + if (imagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureImagesIsMutable(); + images_.add(index, value); + onChanged(); + } else { + imagesBuilder_.addMessage(index, value); + } return this; } @@ -8075,18 +13908,24 @@ public Builder addAllWebSearchQueries(java.lang.Iterable value * * *
            -         * Web search queries for the following-up web search.
            +         * Images from the web search.
                      * 
            * - * repeated string web_search_queries = 3; - * - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * */ - public Builder clearWebSearchQueries() { - webSearchQueries_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - ; - onChanged(); + public Builder addImages( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Builder + builderForValue) { + if (imagesBuilder_ == null) { + ensureImagesIsMutable(); + images_.add(builderForValue.build()); + onChanged(); + } else { + imagesBuilder_.addMessage(builderForValue.build()); + } return this; } @@ -8094,106 +13933,96 @@ public Builder clearWebSearchQueries() { * * *
            -         * Web search queries for the following-up web search.
            +         * Images from the web search.
                      * 
            * - * repeated string web_search_queries = 3; - * - * @param value The bytes of the webSearchQueries to add. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; + * */ - public Builder addWebSearchQueriesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder addImages( + int index, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Builder + builderForValue) { + if (imagesBuilder_ == null) { + ensureImagesIsMutable(); + images_.add(index, builderForValue.build()); + onChanged(); + } else { + imagesBuilder_.addMessage(index, builderForValue.build()); } - checkByteStringIsUtf8(value); - ensureWebSearchQueriesIsMutable(); - webSearchQueries_.add(value); - bitField0_ |= 0x00000004; - onChanged(); return this; } - private com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint - searchEntryPoint_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint, - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint.Builder, - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPointOrBuilder> - searchEntryPointBuilder_; - /** * * *
            -         * Google search entry for the following-up web searches.
            +         * Images from the web search.
                      * 
            * * - * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * - * - * @return Whether the searchEntryPoint field is set. */ - public boolean hasSearchEntryPoint() { - return ((bitField0_ & 0x00000008) != 0); + public Builder addAllImages( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadata> + values) { + if (imagesBuilder_ == null) { + ensureImagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, images_); + onChanged(); + } else { + imagesBuilder_.addAllMessages(values); + } + return this; } /** * * *
            -         * Google search entry for the following-up web searches.
            +         * Images from the web search.
                      * 
            * * - * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * - * - * @return The searchEntryPoint. */ - public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint - getSearchEntryPoint() { - if (searchEntryPointBuilder_ == null) { - return searchEntryPoint_ == null - ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint.getDefaultInstance() - : searchEntryPoint_; + public Builder clearImages() { + if (imagesBuilder_ == null) { + images_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); } else { - return searchEntryPointBuilder_.getMessage(); + imagesBuilder_.clear(); } + return this; } /** * * *
            -         * Google search entry for the following-up web searches.
            +         * Images from the web search.
                      * 
            * * - * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ - public Builder setSearchEntryPoint( - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint - value) { - if (searchEntryPointBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - searchEntryPoint_ = value; + public Builder removeImages(int index) { + if (imagesBuilder_ == null) { + ensureImagesIsMutable(); + images_.remove(index); + onChanged(); } else { - searchEntryPointBuilder_.setMessage(value); + imagesBuilder_.remove(index); } - bitField0_ |= 0x00000008; - onChanged(); return this; } @@ -8201,206 +14030,188 @@ public Builder setSearchEntryPoint( * * *
            -         * Google search entry for the following-up web searches.
            +         * Images from the web search.
                      * 
            * * - * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ - public Builder setSearchEntryPoint( - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint.Builder - builderForValue) { - if (searchEntryPointBuilder_ == null) { - searchEntryPoint_ = builderForValue.build(); - } else { - searchEntryPointBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.Builder + getImagesBuilder(int index) { + return internalGetImagesFieldBuilder().getBuilder(index); } /** * * *
            -         * Google search entry for the following-up web searches.
            +         * Images from the web search.
                      * 
            * * - * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * - */ - public Builder mergeSearchEntryPoint( - com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint - value) { - if (searchEntryPointBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && searchEntryPoint_ != null - && searchEntryPoint_ - != com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.SearchEntryPoint.getDefaultInstance()) { - getSearchEntryPointBuilder().mergeFrom(value); - } else { - searchEntryPoint_ = value; - } + */ + public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadataOrBuilder + getImagesOrBuilder(int index) { + if (imagesBuilder_ == null) { + return images_.get(index); } else { - searchEntryPointBuilder_.mergeFrom(value); - } - if (searchEntryPoint_ != null) { - bitField0_ |= 0x00000008; - onChanged(); + return imagesBuilder_.getMessageOrBuilder(index); } - return this; } /** * * *
            -         * Google search entry for the following-up web searches.
            +         * Images from the web search.
                      * 
            * * - * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ - public Builder clearSearchEntryPoint() { - bitField0_ = (bitField0_ & ~0x00000008); - searchEntryPoint_ = null; - if (searchEntryPointBuilder_ != null) { - searchEntryPointBuilder_.dispose(); - searchEntryPointBuilder_ = null; + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse + .Candidate.GroundingMetadata.ImageMetadataOrBuilder> + getImagesOrBuilderList() { + if (imagesBuilder_ != null) { + return imagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(images_); } - onChanged(); - return this; } /** * * *
            -         * Google search entry for the following-up web searches.
            +         * Images from the web search.
                      * 
            * * - * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint.Builder - getSearchEntryPointBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetSearchEntryPointFieldBuilder().getBuilder(); + .GroundingMetadata.ImageMetadata.Builder + addImagesBuilder() { + return internalGetImagesFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.getDefaultInstance()); } /** * * *
            -         * Google search entry for the following-up web searches.
            +         * Images from the web search.
                      * 
            * * - * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPointOrBuilder - getSearchEntryPointOrBuilder() { - if (searchEntryPointBuilder_ != null) { - return searchEntryPointBuilder_.getMessageOrBuilder(); - } else { - return searchEntryPoint_ == null - ? com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint.getDefaultInstance() - : searchEntryPoint_; - } + .GroundingMetadata.ImageMetadata.Builder + addImagesBuilder(int index) { + return internalGetImagesFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadata.getDefaultInstance()); } /** * * *
            -         * Google search entry for the following-up web searches.
            +         * Images from the web search.
                      * 
            * * - * .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.ImageMetadata images = 9; * */ - private com.google.protobuf.SingleFieldBuilder< + public java.util.List< com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint, + .GroundingMetadata.ImageMetadata.Builder> + getImagesBuilderList() { + return internalGetImagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPoint.Builder, + .GroundingMetadata.ImageMetadata, com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.SearchEntryPointOrBuilder> - internalGetSearchEntryPointFieldBuilder() { - if (searchEntryPointBuilder_ == null) { - searchEntryPointBuilder_ = - new com.google.protobuf.SingleFieldBuilder< + .GroundingMetadata.ImageMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate + .GroundingMetadata.ImageMetadataOrBuilder> + internalGetImagesFieldBuilder() { + if (imagesBuilder_ == null) { + imagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.SearchEntryPoint, + .Candidate.GroundingMetadata.ImageMetadata, com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.SearchEntryPoint.Builder, + .Candidate.GroundingMetadata.ImageMetadata.Builder, com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.SearchEntryPointOrBuilder>( - getSearchEntryPoint(), getParentForChildren(), isClean()); - searchEntryPoint_ = null; + .Candidate.GroundingMetadata.ImageMetadataOrBuilder>( + images_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + images_ = null; } - return searchEntryPointBuilder_; + return imagesBuilder_; } private java.util.List< com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport> - groundingSupport_ = java.util.Collections.emptyList(); + .GroundingMetadata.VideoMetadata> + videos_ = java.util.Collections.emptyList(); - private void ensureGroundingSupportIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - groundingSupport_ = + private void ensureVideosIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + videos_ = new java.util.ArrayList< com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.GroundingSupport>(groundingSupport_); - bitField0_ |= 0x00000010; + .Candidate.GroundingMetadata.VideoMetadata>(videos_); + bitField0_ |= 0x00000040; } } private com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport, + .GroundingMetadata.VideoMetadata, com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.Builder, + .GroundingMetadata.VideoMetadata.Builder, com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupportOrBuilder> - groundingSupportBuilder_; + .GroundingMetadata.VideoMetadataOrBuilder> + videosBuilder_; /** * * *
            -         * GroundingSupport across all claims in the answer candidate.
            -         * An support to a fact indicates that the claim is supported by
            -         * the fact.
            +         * Videos from the web search.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ public java.util.List< com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport> - getGroundingSupportList() { - if (groundingSupportBuilder_ == null) { - return java.util.Collections.unmodifiableList(groundingSupport_); + .GroundingMetadata.VideoMetadata> + getVideosList() { + if (videosBuilder_ == null) { + return java.util.Collections.unmodifiableList(videos_); } else { - return groundingSupportBuilder_.getMessageList(); + return videosBuilder_.getMessageList(); } } @@ -8408,20 +14219,18 @@ private void ensureGroundingSupportIsMutable() { * * *
            -         * GroundingSupport across all claims in the answer candidate.
            -         * An support to a fact indicates that the claim is supported by
            -         * the fact.
            +         * Videos from the web search.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public int getGroundingSupportCount() { - if (groundingSupportBuilder_ == null) { - return groundingSupport_.size(); + public int getVideosCount() { + if (videosBuilder_ == null) { + return videos_.size(); } else { - return groundingSupportBuilder_.getCount(); + return videosBuilder_.getCount(); } } @@ -8429,22 +14238,20 @@ public int getGroundingSupportCount() { * * *
            -         * GroundingSupport across all claims in the answer candidate.
            -         * An support to a fact indicates that the claim is supported by
            -         * the fact.
            +         * Videos from the web search.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport - getGroundingSupport(int index) { - if (groundingSupportBuilder_ == null) { - return groundingSupport_.get(index); + .GroundingMetadata.VideoMetadata + getVideos(int index) { + if (videosBuilder_ == null) { + return videos_.get(index); } else { - return groundingSupportBuilder_.getMessage(index); + return videosBuilder_.getMessage(index); } } @@ -8452,29 +14259,27 @@ public int getGroundingSupportCount() { * * *
            -         * GroundingSupport across all claims in the answer candidate.
            -         * An support to a fact indicates that the claim is supported by
            -         * the fact.
            +         * Videos from the web search.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public Builder setGroundingSupport( + public Builder setVideos( int index, com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport + .GroundingMetadata.VideoMetadata value) { - if (groundingSupportBuilder_ == null) { + if (videosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureGroundingSupportIsMutable(); - groundingSupport_.set(index, value); + ensureVideosIsMutable(); + videos_.set(index, value); onChanged(); } else { - groundingSupportBuilder_.setMessage(index, value); + videosBuilder_.setMessage(index, value); } return this; } @@ -8483,26 +14288,24 @@ public Builder setGroundingSupport( * * *
            -         * GroundingSupport across all claims in the answer candidate.
            -         * An support to a fact indicates that the claim is supported by
            -         * the fact.
            +         * Videos from the web search.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public Builder setGroundingSupport( + public Builder setVideos( int index, com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.Builder + .GroundingMetadata.VideoMetadata.Builder builderForValue) { - if (groundingSupportBuilder_ == null) { - ensureGroundingSupportIsMutable(); - groundingSupport_.set(index, builderForValue.build()); + if (videosBuilder_ == null) { + ensureVideosIsMutable(); + videos_.set(index, builderForValue.build()); onChanged(); } else { - groundingSupportBuilder_.setMessage(index, builderForValue.build()); + videosBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -8511,28 +14314,26 @@ public Builder setGroundingSupport( * * *
            -         * GroundingSupport across all claims in the answer candidate.
            -         * An support to a fact indicates that the claim is supported by
            -         * the fact.
            +         * Videos from the web search.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public Builder addGroundingSupport( + public Builder addVideos( com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport + .GroundingMetadata.VideoMetadata value) { - if (groundingSupportBuilder_ == null) { + if (videosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureGroundingSupportIsMutable(); - groundingSupport_.add(value); + ensureVideosIsMutable(); + videos_.add(value); onChanged(); } else { - groundingSupportBuilder_.addMessage(value); + videosBuilder_.addMessage(value); } return this; } @@ -8541,29 +14342,27 @@ public Builder addGroundingSupport( * * *
            -         * GroundingSupport across all claims in the answer candidate.
            -         * An support to a fact indicates that the claim is supported by
            -         * the fact.
            +         * Videos from the web search.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public Builder addGroundingSupport( + public Builder addVideos( int index, com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport + .GroundingMetadata.VideoMetadata value) { - if (groundingSupportBuilder_ == null) { + if (videosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureGroundingSupportIsMutable(); - groundingSupport_.add(index, value); + ensureVideosIsMutable(); + videos_.add(index, value); onChanged(); } else { - groundingSupportBuilder_.addMessage(index, value); + videosBuilder_.addMessage(index, value); } return this; } @@ -8572,25 +14371,23 @@ public Builder addGroundingSupport( * * *
            -         * GroundingSupport across all claims in the answer candidate.
            -         * An support to a fact indicates that the claim is supported by
            -         * the fact.
            +         * Videos from the web search.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public Builder addGroundingSupport( + public Builder addVideos( com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.Builder + .GroundingMetadata.VideoMetadata.Builder builderForValue) { - if (groundingSupportBuilder_ == null) { - ensureGroundingSupportIsMutable(); - groundingSupport_.add(builderForValue.build()); + if (videosBuilder_ == null) { + ensureVideosIsMutable(); + videos_.add(builderForValue.build()); onChanged(); } else { - groundingSupportBuilder_.addMessage(builderForValue.build()); + videosBuilder_.addMessage(builderForValue.build()); } return this; } @@ -8599,26 +14396,24 @@ public Builder addGroundingSupport( * * *
            -         * GroundingSupport across all claims in the answer candidate.
            -         * An support to a fact indicates that the claim is supported by
            -         * the fact.
            +         * Videos from the web search.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public Builder addGroundingSupport( + public Builder addVideos( int index, com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.Builder + .GroundingMetadata.VideoMetadata.Builder builderForValue) { - if (groundingSupportBuilder_ == null) { - ensureGroundingSupportIsMutable(); - groundingSupport_.add(index, builderForValue.build()); + if (videosBuilder_ == null) { + ensureVideosIsMutable(); + videos_.add(index, builderForValue.build()); onChanged(); } else { - groundingSupportBuilder_.addMessage(index, builderForValue.build()); + videosBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -8627,27 +14422,25 @@ public Builder addGroundingSupport( * * *
            -         * GroundingSupport across all claims in the answer candidate.
            -         * An support to a fact indicates that the claim is supported by
            -         * the fact.
            +         * Videos from the web search.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public Builder addAllGroundingSupport( + public Builder addAllVideos( java.lang.Iterable< ? extends com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.GroundingSupport> + .Candidate.GroundingMetadata.VideoMetadata> values) { - if (groundingSupportBuilder_ == null) { - ensureGroundingSupportIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groundingSupport_); + if (videosBuilder_ == null) { + ensureVideosIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, videos_); onChanged(); } else { - groundingSupportBuilder_.addAllMessages(values); + videosBuilder_.addAllMessages(values); } return this; } @@ -8656,22 +14449,20 @@ public Builder addAllGroundingSupport( * * *
            -         * GroundingSupport across all claims in the answer candidate.
            -         * An support to a fact indicates that the claim is supported by
            -         * the fact.
            +         * Videos from the web search.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public Builder clearGroundingSupport() { - if (groundingSupportBuilder_ == null) { - groundingSupport_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); + public Builder clearVideos() { + if (videosBuilder_ == null) { + videos_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); } else { - groundingSupportBuilder_.clear(); + videosBuilder_.clear(); } return this; } @@ -8680,22 +14471,20 @@ public Builder clearGroundingSupport() { * * *
            -         * GroundingSupport across all claims in the answer candidate.
            -         * An support to a fact indicates that the claim is supported by
            -         * the fact.
            +         * Videos from the web search.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ - public Builder removeGroundingSupport(int index) { - if (groundingSupportBuilder_ == null) { - ensureGroundingSupportIsMutable(); - groundingSupport_.remove(index); + public Builder removeVideos(int index) { + if (videosBuilder_ == null) { + ensureVideosIsMutable(); + videos_.remove(index); onChanged(); } else { - groundingSupportBuilder_.remove(index); + videosBuilder_.remove(index); } return this; } @@ -8704,41 +14493,37 @@ public Builder removeGroundingSupport(int index) { * * *
            -         * GroundingSupport across all claims in the answer candidate.
            -         * An support to a fact indicates that the claim is supported by
            -         * the fact.
            +         * Videos from the web search.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.Builder - getGroundingSupportBuilder(int index) { - return internalGetGroundingSupportFieldBuilder().getBuilder(index); + .GroundingMetadata.VideoMetadata.Builder + getVideosBuilder(int index) { + return internalGetVideosFieldBuilder().getBuilder(index); } /** * * *
            -         * GroundingSupport across all claims in the answer candidate.
            -         * An support to a fact indicates that the claim is supported by
            -         * the fact.
            +         * Videos from the web search.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupportOrBuilder - getGroundingSupportOrBuilder(int index) { - if (groundingSupportBuilder_ == null) { - return groundingSupport_.get(index); + .GroundingMetadata.VideoMetadataOrBuilder + getVideosOrBuilder(int index) { + if (videosBuilder_ == null) { + return videos_.get(index); } else { - return groundingSupportBuilder_.getMessageOrBuilder(index); + return videosBuilder_.getMessageOrBuilder(index); } } @@ -8746,24 +14531,22 @@ public Builder removeGroundingSupport(int index) { * * *
            -         * GroundingSupport across all claims in the answer candidate.
            -         * An support to a fact indicates that the claim is supported by
            -         * the fact.
            +         * Videos from the web search.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ public java.util.List< ? extends com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.GroundingSupportOrBuilder> - getGroundingSupportOrBuilderList() { - if (groundingSupportBuilder_ != null) { - return groundingSupportBuilder_.getMessageOrBuilderList(); + .Candidate.GroundingMetadata.VideoMetadataOrBuilder> + getVideosOrBuilderList() { + if (videosBuilder_ != null) { + return videosBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(groundingSupport_); + return java.util.Collections.unmodifiableList(videos_); } } @@ -8771,91 +14554,82 @@ public Builder removeGroundingSupport(int index) { * * *
            -         * GroundingSupport across all claims in the answer candidate.
            -         * An support to a fact indicates that the claim is supported by
            -         * the fact.
            +         * Videos from the web search.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.Builder - addGroundingSupportBuilder() { - return internalGetGroundingSupportFieldBuilder() + .GroundingMetadata.VideoMetadata.Builder + addVideosBuilder() { + return internalGetVideosFieldBuilder() .addBuilder( com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.getDefaultInstance()); + .GroundingMetadata.VideoMetadata.getDefaultInstance()); } /** * * *
            -         * GroundingSupport across all claims in the answer candidate.
            -         * An support to a fact indicates that the claim is supported by
            -         * the fact.
            +         * Videos from the web search.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ public com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.Builder - addGroundingSupportBuilder(int index) { - return internalGetGroundingSupportFieldBuilder() + .GroundingMetadata.VideoMetadata.Builder + addVideosBuilder(int index) { + return internalGetVideosFieldBuilder() .addBuilder( index, com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.getDefaultInstance()); + .GroundingMetadata.VideoMetadata.getDefaultInstance()); } /** * * *
            -         * GroundingSupport across all claims in the answer candidate.
            -         * An support to a fact indicates that the claim is supported by
            -         * the fact.
            +         * Videos from the web search.
                      * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; + * repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.VideoMetadata videos = 11; * */ public java.util.List< com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.Builder> - getGroundingSupportBuilderList() { - return internalGetGroundingSupportFieldBuilder().getBuilderList(); + .GroundingMetadata.VideoMetadata.Builder> + getVideosBuilderList() { + return internalGetVideosFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport, + .GroundingMetadata.VideoMetadata, com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupport.Builder, + .GroundingMetadata.VideoMetadata.Builder, com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate - .GroundingMetadata.GroundingSupportOrBuilder> - internalGetGroundingSupportFieldBuilder() { - if (groundingSupportBuilder_ == null) { - groundingSupportBuilder_ = + .GroundingMetadata.VideoMetadataOrBuilder> + internalGetVideosFieldBuilder() { + if (videosBuilder_ == null) { + videosBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.GroundingSupport, + .Candidate.GroundingMetadata.VideoMetadata, com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.GroundingSupport.Builder, + .Candidate.GroundingMetadata.VideoMetadata.Builder, com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse - .Candidate.GroundingMetadata.GroundingSupportOrBuilder>( - groundingSupport_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - groundingSupport_ = null; + .Candidate.GroundingMetadata.VideoMetadataOrBuilder>( + videos_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + videos_ = null; } - return groundingSupportBuilder_; + return videosBuilder_; } // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMetadata) diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetAclConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetAclConfigRequest.java new file mode 100644 index 000000000000..4dbdadf1bd91 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetAclConfigRequest.java @@ -0,0 +1,653 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/acl_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for GetAclConfigRequest method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetAclConfigRequest} + */ +@com.google.protobuf.Generated +public final class GetAclConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.GetAclConfigRequest) + GetAclConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetAclConfigRequest"); + } + + // Use GetAclConfigRequest.newBuilder() to construct. + private GetAclConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAclConfigRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetAclConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetAclConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. Resource name of
            +   * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], such as
            +   * `projects/*/locations/*/aclConfig`.
            +   *
            +   * If the caller does not have permission to access the
            +   * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], regardless of
            +   * whether or not it exists, a PERMISSION_DENIED error is returned.
            +   * 
            + * + * + * 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. Resource name of
            +   * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], such as
            +   * `projects/*/locations/*/aclConfig`.
            +   *
            +   * If the caller does not have permission to access the
            +   * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], regardless of
            +   * whether or not it exists, a PERMISSION_DENIED error is returned.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest other = + (com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest) 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.discoveryengine.v1beta.GetAclConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest 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.v1beta.GetAclConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest parseFrom( + 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.v1beta.GetAclConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for GetAclConfigRequest method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetAclConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.GetAclConfigRequest) + com.google.cloud.discoveryengine.v1beta.GetAclConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetAclConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetAclConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetAclConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest build() { + com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest result = + new com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest other) { + if (other == com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest.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. Resource name of
            +     * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], such as
            +     * `projects/*/locations/*/aclConfig`.
            +     *
            +     * If the caller does not have permission to access the
            +     * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     * 
            + * + * + * 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. Resource name of
            +     * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], such as
            +     * `projects/*/locations/*/aclConfig`.
            +     *
            +     * If the caller does not have permission to access the
            +     * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     * 
            + * + * + * 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. Resource name of
            +     * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], such as
            +     * `projects/*/locations/*/aclConfig`.
            +     *
            +     * If the caller does not have permission to access the
            +     * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     * 
            + * + * + * 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. Resource name of
            +     * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], such as
            +     * `projects/*/locations/*/aclConfig`.
            +     *
            +     * If the caller does not have permission to access the
            +     * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     * 
            + * + * + * 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. Resource name of
            +     * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], such as
            +     * `projects/*/locations/*/aclConfig`.
            +     *
            +     * If the caller does not have permission to access the
            +     * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GetAclConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GetAclConfigRequest) + private static final com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAclConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.GetAclConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetAclConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetAclConfigRequestOrBuilder.java new file mode 100644 index 000000000000..8d52edb0e8b9 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetAclConfigRequestOrBuilder.java @@ -0,0 +1,70 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/acl_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface GetAclConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GetAclConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Resource name of
            +   * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], such as
            +   * `projects/*/locations/*/aclConfig`.
            +   *
            +   * If the caller does not have permission to access the
            +   * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], regardless of
            +   * whether or not it exists, a PERMISSION_DENIED error is returned.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. Resource name of
            +   * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], such as
            +   * `projects/*/locations/*/aclConfig`.
            +   *
            +   * If the caller does not have permission to access the
            +   * [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], regardless of
            +   * whether or not it exists, a PERMISSION_DENIED error is returned.
            +   * 
            + * + * + * 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-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetAssistantRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetAssistantRequest.java new file mode 100644 index 000000000000..0d3761709804 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetAssistantRequest.java @@ -0,0 +1,629 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for the
            + * [AssistantService.GetAssistant][google.cloud.discoveryengine.v1beta.AssistantService.GetAssistant]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetAssistantRequest} + */ +@com.google.protobuf.Generated +public final class GetAssistantRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.GetAssistantRequest) + GetAssistantRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetAssistantRequest"); + } + + // Use GetAssistantRequest.newBuilder() to construct. + private GetAssistantRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAssistantRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GetAssistantRequest.class, + com.google.cloud.discoveryengine.v1beta.GetAssistantRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. Resource name of
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   * 
            + * + * + * 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. Resource name of
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.GetAssistantRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.GetAssistantRequest other = + (com.google.cloud.discoveryengine.v1beta.GetAssistantRequest) 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.discoveryengine.v1beta.GetAssistantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAssistantRequest 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.v1beta.GetAssistantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAssistantRequest parseFrom( + 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.v1beta.GetAssistantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAssistantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAssistantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAssistantRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAssistantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAssistantRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAssistantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAssistantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.GetAssistantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for the
            +   * [AssistantService.GetAssistant][google.cloud.discoveryengine.v1beta.AssistantService.GetAssistant]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetAssistantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.GetAssistantRequest) + com.google.cloud.discoveryengine.v1beta.GetAssistantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GetAssistantRequest.class, + com.google.cloud.discoveryengine.v1beta.GetAssistantRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.GetAssistantRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetAssistantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetAssistantRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.GetAssistantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetAssistantRequest build() { + com.google.cloud.discoveryengine.v1beta.GetAssistantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetAssistantRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.GetAssistantRequest result = + new com.google.cloud.discoveryengine.v1beta.GetAssistantRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.GetAssistantRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.GetAssistantRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.GetAssistantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.GetAssistantRequest other) { + if (other == com.google.cloud.discoveryengine.v1beta.GetAssistantRequest.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. Resource name of
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     * 
            + * + * + * 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. Resource name of
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     * 
            + * + * + * 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. Resource name of
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     * 
            + * + * + * 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. Resource name of
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     * 
            + * + * + * 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. Resource name of
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GetAssistantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GetAssistantRequest) + private static final com.google.cloud.discoveryengine.v1beta.GetAssistantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.GetAssistantRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.GetAssistantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAssistantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.GetAssistantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetAssistantRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetAssistantRequestOrBuilder.java new file mode 100644 index 000000000000..f71249cdee10 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetAssistantRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface GetAssistantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GetAssistantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Resource name of
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. Resource name of
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   * 
            + * + * + * 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-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetCmekConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetCmekConfigRequest.java new file mode 100644 index 000000000000..91eb2d6359a6 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetCmekConfigRequest.java @@ -0,0 +1,664 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/cmek_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for GetCmekConfigRequest method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetCmekConfigRequest} + */ +@com.google.protobuf.Generated +public final class GetCmekConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.GetCmekConfigRequest) + GetCmekConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetCmekConfigRequest"); + } + + // Use GetCmekConfigRequest.newBuilder() to construct. + private GetCmekConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetCmekConfigRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetCmekConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetCmekConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. Resource name of
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], such as
            +   * `projects/*/locations/*/cmekConfig` or
            +   * `projects/*/locations/*/cmekConfigs/*`.
            +   *
            +   * If the caller does not have permission to access the
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], regardless of
            +   * whether or not it exists, a PERMISSION_DENIED error is returned.
            +   * 
            + * + * + * 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. Resource name of
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], such as
            +   * `projects/*/locations/*/cmekConfig` or
            +   * `projects/*/locations/*/cmekConfigs/*`.
            +   *
            +   * If the caller does not have permission to access the
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], regardless of
            +   * whether or not it exists, a PERMISSION_DENIED error is returned.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest other = + (com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest) 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.discoveryengine.v1beta.GetCmekConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest 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.v1beta.GetCmekConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest parseFrom( + 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.v1beta.GetCmekConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for GetCmekConfigRequest method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetCmekConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.GetCmekConfigRequest) + com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetCmekConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetCmekConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetCmekConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest build() { + com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest result = + new com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest.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. Resource name of
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], such as
            +     * `projects/*/locations/*/cmekConfig` or
            +     * `projects/*/locations/*/cmekConfigs/*`.
            +     *
            +     * If the caller does not have permission to access the
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     * 
            + * + * + * 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. Resource name of
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], such as
            +     * `projects/*/locations/*/cmekConfig` or
            +     * `projects/*/locations/*/cmekConfigs/*`.
            +     *
            +     * If the caller does not have permission to access the
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     * 
            + * + * + * 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. Resource name of
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], such as
            +     * `projects/*/locations/*/cmekConfig` or
            +     * `projects/*/locations/*/cmekConfigs/*`.
            +     *
            +     * If the caller does not have permission to access the
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     * 
            + * + * + * 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. Resource name of
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], such as
            +     * `projects/*/locations/*/cmekConfig` or
            +     * `projects/*/locations/*/cmekConfigs/*`.
            +     *
            +     * If the caller does not have permission to access the
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     * 
            + * + * + * 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. Resource name of
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], such as
            +     * `projects/*/locations/*/cmekConfig` or
            +     * `projects/*/locations/*/cmekConfigs/*`.
            +     *
            +     * If the caller does not have permission to access the
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GetCmekConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GetCmekConfigRequest) + private static final com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCmekConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.GetCmekConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetCmekConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetCmekConfigRequestOrBuilder.java new file mode 100644 index 000000000000..0d27186d28bb --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetCmekConfigRequestOrBuilder.java @@ -0,0 +1,72 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/cmek_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface GetCmekConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GetCmekConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Resource name of
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], such as
            +   * `projects/*/locations/*/cmekConfig` or
            +   * `projects/*/locations/*/cmekConfigs/*`.
            +   *
            +   * If the caller does not have permission to access the
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], regardless of
            +   * whether or not it exists, a PERMISSION_DENIED error is returned.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. Resource name of
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], such as
            +   * `projects/*/locations/*/cmekConfig` or
            +   * `projects/*/locations/*/cmekConfigs/*`.
            +   *
            +   * If the caller does not have permission to access the
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], regardless of
            +   * whether or not it exists, a PERMISSION_DENIED error is returned.
            +   * 
            + * + * + * 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-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentTypeRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetIdentityMappingStoreRequest.java similarity index 66% rename from java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentTypeRequest.java rename to java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetIdentityMappingStoreRequest.java index d4f34d5b82d1..ed95d9d94d09 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentTypeRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetIdentityMappingStoreRequest.java @@ -15,25 +15,26 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/oracledatabase/v1/goldengate_deployment_type.proto +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto // Protobuf Java Version: 4.33.2 -package com.google.cloud.oracledatabase.v1; +package com.google.cloud.discoveryengine.v1beta; /** * * *
            - * Message for getting a GoldengateDeploymentType.
            + * Request message for
            + * [IdentityMappingStoreService.GetIdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.GetIdentityMappingStore]
              * 
            * - * Protobuf type {@code google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest} */ @com.google.protobuf.Generated -public final class GetGoldengateDeploymentTypeRequest extends com.google.protobuf.GeneratedMessage +public final class GetIdentityMappingStoreRequest extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest) - GetGoldengateDeploymentTypeRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest) + GetIdentityMappingStoreRequestOrBuilder { private static final long serialVersionUID = 0L; static { @@ -43,32 +44,31 @@ public final class GetGoldengateDeploymentTypeRequest extends com.google.protobu /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "GetGoldengateDeploymentTypeRequest"); + "GetIdentityMappingStoreRequest"); } - // Use GetGoldengateDeploymentTypeRequest.newBuilder() to construct. - private GetGoldengateDeploymentTypeRequest( - com.google.protobuf.GeneratedMessage.Builder builder) { + // Use GetIdentityMappingStoreRequest.newBuilder() to construct. + private GetIdentityMappingStoreRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private GetGoldengateDeploymentTypeRequest() { + private GetIdentityMappingStoreRequest() { name_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oracledatabase.v1.GoldengateDeploymentTypeProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentTypeRequest_descriptor; + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetIdentityMappingStoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oracledatabase.v1.GoldengateDeploymentTypeProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentTypeRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetIdentityMappingStoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest.class, - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest.class, + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; @@ -80,9 +80,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Required. The name of the GoldengateDeploymentType to retrieve.
            +   * Required. The name of the Identity Mapping Store to get.
                * Format:
            -   * projects/{project}/locations/{location}/goldengateDeploymentTypes/{goldengate_deployment_type}
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
                * 
            * * @@ -108,9 +108,9 @@ public java.lang.String getName() { * * *
            -   * Required. The name of the GoldengateDeploymentType to retrieve.
            +   * Required. The name of the Identity Mapping Store to get.
                * Format:
            -   * projects/{project}/locations/{location}/goldengateDeploymentTypes/{goldengate_deployment_type}
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
                * 
            * * @@ -171,11 +171,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest)) { return super.equals(obj); } - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest other = - (com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest) obj; + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest other = + (com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest) obj; if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -196,59 +196,59 @@ public int hashCode() { return hash; } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest 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.oracledatabase.v1.GetGoldengateDeploymentTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest parseFrom( 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.oracledatabase.v1.GetGoldengateDeploymentTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest + public static com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest + public static com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -256,12 +256,12 @@ public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequ PARSER, input, extensionRegistry); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest parseFrom( + public static com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -279,7 +279,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest prototype) { + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -298,32 +298,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
            -   * Message for getting a GoldengateDeploymentType.
            +   * Request message for
            +   * [IdentityMappingStoreService.GetIdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.GetIdentityMappingStore]
                * 
            * - * Protobuf type {@code google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest) - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest) + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.oracledatabase.v1.GoldengateDeploymentTypeProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentTypeRequest_descriptor; + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetIdentityMappingStoreRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.oracledatabase.v1.GoldengateDeploymentTypeProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentTypeRequest_fieldAccessorTable + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetIdentityMappingStoreRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest.class, - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest.Builder.class); + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest.class, + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest.Builder.class); } // Construct using - // com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest.newBuilder() + // com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -340,20 +341,21 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.oracledatabase.v1.GoldengateDeploymentTypeProto - .internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentTypeRequest_descriptor; + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetIdentityMappingStoreRequest_descriptor; } @java.lang.Override - public com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest + public com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest getDefaultInstanceForType() { - return com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest + return com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest build() { - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest result = buildPartial(); + public com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest build() { + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -361,9 +363,9 @@ public com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest bui } @java.lang.Override - public com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest buildPartial() { - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest result = - new com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest(this); + public com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest result = + new com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -372,7 +374,7 @@ public com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest bui } private void buildPartial0( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest result) { + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -381,9 +383,9 @@ private void buildPartial0( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest) { return mergeFrom( - (com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest) other); + (com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest) other); } else { super.mergeFrom(other); return this; @@ -391,9 +393,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest other) { + com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest other) { if (other - == com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest + == com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; @@ -457,9 +459,9 @@ public Builder mergeFrom( * * *
            -     * Required. The name of the GoldengateDeploymentType to retrieve.
            +     * Required. The name of the Identity Mapping Store to get.
                  * Format:
            -     * projects/{project}/locations/{location}/goldengateDeploymentTypes/{goldengate_deployment_type}
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
                  * 
            * * @@ -484,9 +486,9 @@ public java.lang.String getName() { * * *
            -     * Required. The name of the GoldengateDeploymentType to retrieve.
            +     * Required. The name of the Identity Mapping Store to get.
                  * Format:
            -     * projects/{project}/locations/{location}/goldengateDeploymentTypes/{goldengate_deployment_type}
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
                  * 
            * * @@ -511,9 +513,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Required. The name of the GoldengateDeploymentType to retrieve.
            +     * Required. The name of the Identity Mapping Store to get.
                  * Format:
            -     * projects/{project}/locations/{location}/goldengateDeploymentTypes/{goldengate_deployment_type}
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
                  * 
            * * @@ -537,9 +539,9 @@ public Builder setName(java.lang.String value) { * * *
            -     * Required. The name of the GoldengateDeploymentType to retrieve.
            +     * Required. The name of the Identity Mapping Store to get.
                  * Format:
            -     * projects/{project}/locations/{location}/goldengateDeploymentTypes/{goldengate_deployment_type}
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
                  * 
            * * @@ -559,9 +561,9 @@ public Builder clearName() { * * *
            -     * Required. The name of the GoldengateDeploymentType to retrieve.
            +     * Required. The name of the Identity Mapping Store to get.
                  * Format:
            -     * projects/{project}/locations/{location}/goldengateDeploymentTypes/{goldengate_deployment_type}
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
                  * 
            * * @@ -582,26 +584,26 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest) - private static final com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest) + private static final com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest(); } - public static com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest + public static com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest 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 GetGoldengateDeploymentTypeRequest parsePartialFrom( + public GetIdentityMappingStoreRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -620,17 +622,17 @@ public GetGoldengateDeploymentTypeRequest 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.oracledatabase.v1.GetGoldengateDeploymentTypeRequest + public com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentVersionRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetIdentityMappingStoreRequestOrBuilder.java similarity index 67% rename from java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentVersionRequestOrBuilder.java rename to java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetIdentityMappingStoreRequestOrBuilder.java index 0386e61bfb46..81d40b1a640e 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentVersionRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetIdentityMappingStoreRequestOrBuilder.java @@ -15,24 +15,24 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/oracledatabase/v1/goldengate_deployment_version.proto +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto // Protobuf Java Version: 4.33.2 -package com.google.cloud.oracledatabase.v1; +package com.google.cloud.discoveryengine.v1beta; @com.google.protobuf.Generated -public interface GetGoldengateDeploymentVersionRequestOrBuilder +public interface GetIdentityMappingStoreRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest) com.google.protobuf.MessageOrBuilder { /** * * *
            -   * Required. The name of the GoldengateDeploymentVersion to retrieve.
            +   * Required. The name of the Identity Mapping Store to get.
                * Format:
            -   * projects/{project}/locations/{location}/goldengateDeploymentVersions/{goldengate_deployment_version}
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
                * 
            * * @@ -47,9 +47,9 @@ public interface GetGoldengateDeploymentVersionRequestOrBuilder * * *
            -   * Required. The name of the GoldengateDeploymentVersion to retrieve.
            +   * Required. The name of the Identity Mapping Store to get.
                * Format:
            -   * projects/{project}/locations/{location}/goldengateDeploymentVersions/{goldengate_deployment_version}
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
                * 
            * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetLicenseConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetLicenseConfigRequest.java new file mode 100644 index 000000000000..3a61a34b0bec --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetLicenseConfigRequest.java @@ -0,0 +1,699 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for
            + * [LicenseConfigService.GetLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.GetLicenseConfig]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest} + */ +@com.google.protobuf.Generated +public final class GetLicenseConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest) + GetLicenseConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetLicenseConfigRequest"); + } + + // Use GetLicenseConfigRequest.newBuilder() to construct. + private GetLicenseConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetLicenseConfigRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. Full resource name of
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as
            +   * `projects/{project}/locations/{location}/licenseConfigs/*`.
            +   *
            +   * If the caller does not have permission to access the
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig],
            +   * regardless of whether or not it exists, a PERMISSION_DENIED error is
            +   * returned.
            +   *
            +   * If the requested
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does not
            +   * exist, a NOT_FOUND error is returned.
            +   * 
            + * + * + * 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. Full resource name of
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as
            +   * `projects/{project}/locations/{location}/licenseConfigs/*`.
            +   *
            +   * If the caller does not have permission to access the
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig],
            +   * regardless of whether or not it exists, a PERMISSION_DENIED error is
            +   * returned.
            +   *
            +   * If the requested
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does not
            +   * exist, a NOT_FOUND error is returned.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest other = + (com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest) 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.discoveryengine.v1beta.GetLicenseConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest 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.v1beta.GetLicenseConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest parseFrom( + 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.v1beta.GetLicenseConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [LicenseConfigService.GetLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.GetLicenseConfig]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest) + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetLicenseConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest build() { + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest result = + new com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest.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. Full resource name of
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as
            +     * `projects/{project}/locations/{location}/licenseConfigs/*`.
            +     *
            +     * If the caller does not have permission to access the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig],
            +     * regardless of whether or not it exists, a PERMISSION_DENIED error is
            +     * returned.
            +     *
            +     * If the requested
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does not
            +     * exist, a NOT_FOUND error is returned.
            +     * 
            + * + * + * 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. Full resource name of
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as
            +     * `projects/{project}/locations/{location}/licenseConfigs/*`.
            +     *
            +     * If the caller does not have permission to access the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig],
            +     * regardless of whether or not it exists, a PERMISSION_DENIED error is
            +     * returned.
            +     *
            +     * If the requested
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does not
            +     * exist, a NOT_FOUND error is returned.
            +     * 
            + * + * + * 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. Full resource name of
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as
            +     * `projects/{project}/locations/{location}/licenseConfigs/*`.
            +     *
            +     * If the caller does not have permission to access the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig],
            +     * regardless of whether or not it exists, a PERMISSION_DENIED error is
            +     * returned.
            +     *
            +     * If the requested
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does not
            +     * exist, a NOT_FOUND error is returned.
            +     * 
            + * + * + * 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. Full resource name of
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as
            +     * `projects/{project}/locations/{location}/licenseConfigs/*`.
            +     *
            +     * If the caller does not have permission to access the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig],
            +     * regardless of whether or not it exists, a PERMISSION_DENIED error is
            +     * returned.
            +     *
            +     * If the requested
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does not
            +     * exist, a NOT_FOUND error is returned.
            +     * 
            + * + * + * 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. Full resource name of
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as
            +     * `projects/{project}/locations/{location}/licenseConfigs/*`.
            +     *
            +     * If the caller does not have permission to access the
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig],
            +     * regardless of whether or not it exists, a PERMISSION_DENIED error is
            +     * returned.
            +     *
            +     * If the requested
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does not
            +     * exist, a NOT_FOUND error is returned.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest) + private static final com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLicenseConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.GetLicenseConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetLicenseConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetLicenseConfigRequestOrBuilder.java new file mode 100644 index 000000000000..a46c42a3901c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetLicenseConfigRequestOrBuilder.java @@ -0,0 +1,80 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface GetLicenseConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Full resource name of
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as
            +   * `projects/{project}/locations/{location}/licenseConfigs/*`.
            +   *
            +   * If the caller does not have permission to access the
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig],
            +   * regardless of whether or not it exists, a PERMISSION_DENIED error is
            +   * returned.
            +   *
            +   * If the requested
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does not
            +   * exist, a NOT_FOUND error is returned.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. Full resource name of
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as
            +   * `projects/{project}/locations/{location}/licenseConfigs/*`.
            +   *
            +   * If the caller does not have permission to access the
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig],
            +   * regardless of whether or not it exists, a PERMISSION_DENIED error is
            +   * returned.
            +   *
            +   * If the requested
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does not
            +   * exist, a NOT_FOUND error is returned.
            +   * 
            + * + * + * 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-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetUserStoreRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetUserStoreRequest.java new file mode 100644 index 000000000000..5864f59ec1cc --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetUserStoreRequest.java @@ -0,0 +1,627 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for
            + * [UserStoreService.GetUserStore][google.cloud.discoveryengine.v1beta.UserStoreService.GetUserStore]
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetUserStoreRequest} + */ +@com.google.protobuf.Generated +public final class GetUserStoreRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.GetUserStoreRequest) + GetUserStoreRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetUserStoreRequest"); + } + + // Use GetUserStoreRequest.newBuilder() to construct. + private GetUserStoreRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetUserStoreRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetUserStoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetUserStoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest.class, + com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The name of the User Store to get.
            +   * Format:
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The name of the User Store to get.
            +   * Format:
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest other = + (com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest) 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.discoveryengine.v1beta.GetUserStoreRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest 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.v1beta.GetUserStoreRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest parseFrom( + 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.v1beta.GetUserStoreRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [UserStoreService.GetUserStore][google.cloud.discoveryengine.v1beta.UserStoreService.GetUserStore]
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.GetUserStoreRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.GetUserStoreRequest) + com.google.cloud.discoveryengine.v1beta.GetUserStoreRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetUserStoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetUserStoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest.class, + com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_GetUserStoreRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest build() { + com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest result = + new com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest other) { + if (other == com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest.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 User Store to get.
            +     * Format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the User Store to get.
            +     * Format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the User Store to get.
            +     * Format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the User Store to get.
            +     * Format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the User Store to get.
            +     * Format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.GetUserStoreRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.GetUserStoreRequest) + private static final com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetUserStoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.GetUserStoreRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateConnectionTypeRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetUserStoreRequestOrBuilder.java similarity index 68% rename from java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateConnectionTypeRequestOrBuilder.java rename to java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetUserStoreRequestOrBuilder.java index 6deb871d525f..3f2e01ff2561 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateConnectionTypeRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GetUserStoreRequestOrBuilder.java @@ -15,23 +15,24 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/oracledatabase/v1/goldengate_connection_type.proto +// source: google/cloud/discoveryengine/v1beta/user_store_service.proto // Protobuf Java Version: 4.33.2 -package com.google.cloud.oracledatabase.v1; +package com.google.cloud.discoveryengine.v1beta; @com.google.protobuf.Generated -public interface GetGoldengateConnectionTypeRequestOrBuilder +public interface GetUserStoreRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.GetUserStoreRequest) com.google.protobuf.MessageOrBuilder { /** * * *
            -   * Required. Name of the resource in the format:
            -   * projects/{project}/locations/{location}/goldengateConnectionTypes/{goldengate_connection_type}
            +   * Required. The name of the User Store to get.
            +   * Format:
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
                * 
            * * @@ -46,8 +47,9 @@ public interface GetGoldengateConnectionTypeRequestOrBuilder * * *
            -   * Required. Name of the resource in the format:
            -   * projects/{project}/locations/{location}/goldengateConnectionTypes/{goldengate_connection_type}
            +   * Required. The name of the User Store to get.
            +   * Format:
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
                * 
            * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundedGenerationServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundedGenerationServiceProto.java index 0a7c03e1f318..55e9e0f60880 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundedGenerationServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundedGenerationServiceProto.java @@ -84,6 +84,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_GroundingSource_GoogleSearchSource_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_GroundingSource_GoogleSearchSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_GroundingSource_EnterpriseWebRetrievalSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_GroundingSource_EnterpriseWebRetrievalSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_GroundingSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -124,6 +128,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_GroundingSupport_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_GroundingSupport_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_WebsiteInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_WebsiteInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_Image_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_Image_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_CheckGroundingSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -148,6 +168,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_CheckGroundingResponse_Claim_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_CheckGroundingResponse_Claim_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_CitationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CitationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Citation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Citation_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -162,72 +190,82 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cloud.discoveryengine.v1beta\032\034google/api" + "/annotations.proto\032\027google/api/client.pr" + "oto\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\0323google/cloud/discoveryengine/v1beta/grounding.proto\"\235\001\n" + + "ogle/api/resource.proto\0323google/cloud/di" + + "scoveryengine/v1beta/grounding.proto\032\026google/type/date.proto\"\235\001\n" + "\031GroundedGenerationContent\022\014\n" + "\004role\030\001 \001(\t\022R\n" - + "\005parts\030\002 \003(\0132C.google.cloud.discovery" - + "engine.v1beta.GroundedGenerationContent.Part\032\036\n" + + "\005parts\030\002 \003(\0132" + + "C.google.cloud.discoveryengine.v1beta.GroundedGenerationContent.Part\032\036\n" + "\004Part\022\016\n" + "\004text\030\001 \001(\tH\000B\006\n" - + "\004data\"\202\024\n" + + "\004data\"\214\032\n" + "\036GenerateGroundedContentRequest\022A\n" + "\010location\030\001 \001(\tB/\340A\002\372A)\n" + "\'discoveryengine.googleapis.com/Location\022Z\n" - + "\022system_instruction\030\005" - + " \001(\0132>.google.cloud.discoveryengine.v1beta.GroundedGenerationContent\022P\n" - + "\010contents\030\002" - + " \003(\0132>.google.cloud.discoveryengine.v1beta.GroundedGenerationContent\022k\n" - + "\017generation_spec\030\003 \001(\0132R.google.cloud.discove" - + "ryengine.v1beta.GenerateGroundedContentRequest.GenerationSpec\022i\n" - + "\016grounding_spec\030\004 \001(\0132Q.google.cloud.discoveryengine.v1b" - + "eta.GenerateGroundedContentRequest.GroundingSpec\022h\n" - + "\013user_labels\030\006 \003(\0132S.google.c" - + "loud.discoveryengine.v1beta.GenerateGroundedContentRequest.UserLabelsEntry\032\277\002\n" + + "\022system_instruction\030\005 \001(\0132>.google." + + "cloud.discoveryengine.v1beta.GroundedGenerationContent\022P\n" + + "\010contents\030\002 \003(\0132>.googl" + + "e.cloud.discoveryengine.v1beta.GroundedGenerationContent\022k\n" + + "\017generation_spec\030\003 \001(\0132R.google.cloud.discoveryengine.v1beta." + + "GenerateGroundedContentRequest.GenerationSpec\022i\n" + + "\016grounding_spec\030\004 \001(\0132Q.google.c" + + "loud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSpec\022h\n" + + "\013user_labels\030\006 \003(\0132S.google.cloud.discoveryen" + + "gine.v1beta.GenerateGroundedContentRequest.UserLabelsEntry\032\204\005\n" + "\016GenerationSpec\022\020\n" + "\010model_id\030\003 \001(\t\022\025\n\r" + "language_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" - + "\020presence_penalty\030\t \001(\002H\004\210\001\001\022\036\n" + + "\021frequency_penalty\030\010 \001(\002H\003\210\001\001\022\021\n" + + "\004seed\030\014 \001(\005H\004\210\001\001\022\035\n" + + "\020presence_penalty\030\t \001(\002H\005\210\001\001\022\036\n" + "\021max_output_tokens\030\n" - + " \001(\005H\005\210\001\001B\016\n" + + " \001(\005H\006\210\001\001\022\234\001\n" + + "\036provisioned_throughput_setting\030\r" + + " \001(\0162o.google.cloud.discoveryengine.v1beta.GenerateGroundedConten" + + "tRequest.GenerationSpec.ProvisionedThroughputSettingB\003\340A\001\"\207\001\n" + + "\034ProvisionedThroughputSetting\022.\n" + + "*PROVISIONED_THROUGHPUT_SETTING_UNSPECIFIED\020\000\022\037\n" + + "\033PROVISIONED_THROUGHPUT_ONLY\020\001\022\026\n" + + "\022PAY_AS_YOU_GO_ONLY\020\002B\016\n" + "\014_temperatureB\010\n" + "\006_top_pB\010\n" + "\006_top_kB\024\n" - + "\022_frequency_penaltyB\023\n" + + "\022_frequency_penaltyB\007\n" + + "\005_seedB\023\n" + "\021_presence_penaltyB\024\n" + "\022_max_output_tokens\032\304\003\n" + "\035DynamicRetrievalConfiguration\022\216\001\n" - + "\tpredictor\030\001 \001(\0132{.google.cloud.discoveryengin" - + "e.v1beta.GenerateGroundedContentRequest." - + "DynamicRetrievalConfiguration.DynamicRetrievalPredictor\032\221\002\n" + + "\tpredictor\030\001 \001(\0132{.google.cloud.discoveryengine.v1beta.Ge" + + "nerateGroundedContentRequest.DynamicRetr" + + "ievalConfiguration.DynamicRetrievalPredictor\032\221\002\n" + "\031DynamicRetrievalPredictor\022\225\001\n" - + "\007version\030\001 \001(\0162\203\001.google.cloud." - + "discoveryengine.v1beta.GenerateGroundedC" - + "ontentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version\022\026\n" + + "\007version\030\001 \001(\0162\203\001.google.cloud.discoveryen" + + "gine.v1beta.GenerateGroundedContentReque" + + "st.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version\022\026\n" + "\tthreshold\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\014\n" - + "\n" - + "_threshold\032\357\007\n" + + "\016V1_INDEPENDENT\020\001B\014\n\n" + + "_threshold\032\264\013\n" + "\017GroundingSource\022y\n\r" - + "inline_source\030\001 \001(\0132`.google.cloud.discoverye" - + "ngine.v1beta.GenerateGroundedContentRequest.GroundingSource.InlineSourceH\000\022y\n\r" - + "search_source\030\002 \001(\0132`.google.cloud.discove" + + "inline_source\030\001 \001(\0132`.google.cloud.discoveryengine.v1bet" + + "a.GenerateGroundedContentRequest.GroundingSource.InlineSourceH\000\022y\n\r" + + "search_source\030\002 \001(\0132`.google.cloud.discoveryengine.v1" + + "beta.GenerateGroundedContentRequest.GroundingSource.SearchSourceH\000\022\206\001\n" + + "\024google_search_source\030\003 \001(\0132f.google.cloud.discove" + "ryengine.v1beta.GenerateGroundedContentR" - + "equest.GroundingSource.SearchSourceH\000\022\206\001\n" - + "\024google_search_source\030\003 \001(\0132f.google.cl" - + "oud.discoveryengine.v1beta.GenerateGroun" - + "dedContentRequest.GroundingSource.GoogleSearchSourceH\000\032\225\002\n" + + "equest.GroundingSource.GoogleSearchSourceH\000\022\233\001\n" + + "\037enterprise_web_retrieval_source\030\010" + + " \001(\0132p.google.cloud.discoveryengine.v1beta.GenerateGroundedContentRequest.Groun" + + "dingSource.EnterpriseWebRetrievalSourceH\000\032\225\002\n" + "\014InlineSource\022K\n" - + "\017grounding_facts\030\001" - + " \003(\01322.google.cloud.discoveryengine.v1beta.GroundingFact\022\204\001\n\n" - + "attributes\030\002 \003(\0132p.google.cloud.discoveryengine" - + ".v1beta.GenerateGroundedContentRequest.G" - + "roundingSource.InlineSource.AttributesEntry\0321\n" + + "\017grounding_facts\030\001 " + + "\003(\01322.google.cloud.discoveryengine.v1beta.GroundingFact\022\204\001\n\n" + + "attributes\030\002 \003(\0132p.google.cloud.discoveryengine.v1beta.Gener" + + "ateGroundedContentRequest.GroundingSource.InlineSource.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" @@ -236,50 +274,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ",discoveryengine.googleapis.com/ServingConfig\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\237\001\n" + + "\013safe_search\030\005 \001(\010\032\242\002\n" + "\022GoogleSearchSource\022\210\001\n" - + "\030dynamic_retrieval_config\030\002 \001(\0132a.google.clo" - + "ud.discoveryengine.v1beta.GenerateGround" - + "edContentRequest.DynamicRetrievalConfigurationB\003\340A\001B\010\n" + + "\030dynamic_retrieval_config\030\002 \001(\0132a.google.cloud.discoverye" + + "ngine.v1beta.GenerateGroundedContentRequ" + + "est.DynamicRetrievalConfigurationB\003\340A\001\022\034\n" + + "\017exclude_domains\030\005 \003(\tB\003\340A\001\022c\n" + + "\023blocking_confidence\030\006 \001(\0162A.google.cloud.discove" + + "ryengine.v1beta.Citation.PhishBlockThresholdB\003\340A\001\032\241\001\n" + + "\034EnterpriseWebRetrievalSource\022\034\n" + + "\017exclude_domains\030\001 \003(\tB\003\340A\001\022c\n" + + "\023blocking_confidence\030\002 \001(\0162A.google.cloud.dis" + + "coveryengine.v1beta.Citation.PhishBlockThresholdB\003\340A\001B\010\n" + "\006source\032\177\n\r" + "GroundingSpec\022n\n" - + "\021grounding_sources\030\001 \003(\0132S.google.cloud" - + ".discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource\0321\n" + + "\021grounding_sources\030\001 \003(\0132S.google.clo" + + "ud.discoveryengine.v1beta.GenerateGroundedContentRequest.GroundingSource\0321\n" + "\017UserLabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\230\020\n" - + "\037GenerateGroundedContentResponse\022b\n" - + "\n" - + "candidates\030\001 \003(\0132N.google.cloud.discove" - + "ryengine.v1beta.GenerateGroundedContentResponse.Candidate\032\220\017\n" + + "\005value\030\002 \001(\t:\0028\001\"\360\026\n" + + "\037GenerateGroundedContentResponse\022b\n\n" + + "candidates\030\001 \003(\0132N.google.cloud.disco" + + "veryengine.v1beta.GenerateGroundedContentResponse.Candidate\032\350\025\n" + "\tCandidate\022\r\n" + "\005index\030\001 \001(\005\022O\n" - + "\007content\030\002 \001(\0132>.google.cloud.d" - + "iscoveryengine.v1beta.GroundedGenerationContent\022\034\n" + + "\007content\030\002 \001(\0132>.google.cloud" + + ".discoveryengine.v1beta.GroundedGenerationContent\022\034\n" + "\017grounding_score\030\003 \001(\002H\000\210\001\001\022|\n" - + "\022grounding_metadata\030\004 \001(\0132`.google.cloud" - + ".discoveryengine.v1beta.GenerateGrounded" - + "ContentResponse.Candidate.GroundingMetadata\032\362\014\n" + + "\022grounding_metadata\030\004 \001(\0132`.google.clo" + + "ud.discoveryengine.v1beta.GenerateGround" + + "edContentResponse.Candidate.GroundingMetadata\032\312\023\n" + "\021GroundingMetadata\022\216\001\n" - + "\022retrieval_metadata\030\005 \003(\0132r.google.cloud.discoverye" - + "ngine.v1beta.GenerateGroundedContentResp" - + "onse.Candidate.GroundingMetadata.RetrievalMetadata\022F\n" - + "\016support_chunks\030\001 \003(\0132..goo" - + "gle.cloud.discoveryengine.v1beta.FactChunk\022\032\n" + + "\022retrieval_metadata\030\005 \003(\0132r.google.cloud.discover" + + "yengine.v1beta.GenerateGroundedContentRe" + + "sponse.Candidate.GroundingMetadata.RetrievalMetadata\022F\n" + + "\016support_chunks\030\001 \003(\0132..g" + + "oogle.cloud.discoveryengine.v1beta.FactChunk\022\032\n" + "\022web_search_queries\030\003 \003(\t\022\215\001\n" - + "\022search_entry_point\030\004 \001(\0132q.google.cloud.disco" - + "veryengine.v1beta.GenerateGroundedConten" - + "tResponse.Candidate.GroundingMetadata.SearchEntryPoint\022\214\001\n" - + "\021grounding_support\030\002 \003(\0132q.google.cloud.discoveryengine.v1beta" - + ".GenerateGroundedContentResponse.Candida" - + "te.GroundingMetadata.GroundingSupport\032\257\003\n" + + "\022search_entry_point\030\004 \001(\0132q.google.cloud.dis" + + "coveryengine.v1beta.GenerateGroundedCont" + + "entResponse.Candidate.GroundingMetadata.SearchEntryPoint\022\214\001\n" + + "\021grounding_support\030\002 \003(\0132q.google.cloud.discoveryengine.v1be" + + "ta.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport\022~\n" + + "\006images\030\t \003(\0132n.google.cloud.discovery" + + "engine.v1beta.GenerateGroundedContentRes" + + "ponse.Candidate.GroundingMetadata.ImageMetadata\022~\n" + + "\006videos\030\013 \003(\0132n.google.cloud.discoveryengine.v1beta.GenerateGroundedCo" + + "ntentResponse.Candidate.GroundingMetadata.VideoMetadata\032\257\003\n" + "\021RetrievalMetadata\022\211\001\n" - + "\006source\030\001 \001(\0162y.google.cloud.discoveryengine.v1beta.Gener" - + "ateGroundedContentResponse.Candidate.Gro" - + "undingMetadata.RetrievalMetadata.Source\022\235\001\n" - + "\032dynamic_retrieval_metadata\030\002 \001(\0132y.g" - + "oogle.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.Gro" - + "undingMetadata.DynamicRetrievalMetadata\"n\n" + + "\006source\030\001 \001(\0162y.google.cloud.discoverye" + + "ngine.v1beta.GenerateGroundedContentResp" + + "onse.Candidate.GroundingMetadata.RetrievalMetadata.Source\022\235\001\n" + + "\032dynamic_retrieval_metadata\030\002 \001(\0132y.google.cloud.discoverye" + + "ngine.v1beta.GenerateGroundedContentResp" + + "onse.Candidate.GroundingMetadata.DynamicRetrievalMetadata\"n\n" + "\006Source\022\026\n" + "\022SOURCE_UNSPECIFIED\020\000\022\024\n" + "\020VERTEX_AI_SEARCH\020\001\022\021\n\r" @@ -287,17 +335,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016INLINE_CONTENT\020\002\022\017\n" + "\013GOOGLE_MAPS\020\004\032\274\001\n" + "\030DynamicRetrievalMetadata\022\237\001\n" - + "\022predictor_metadata\030\001 \001(\0132\202\001.google.cloud.discoveryengin" - + "e.v1beta.GenerateGroundedContentResponse" - + ".Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata\032\242\002\n" + + "\022predictor_metadata\030\001 \001(\0132\202\001.google.cl" + + "oud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate.GroundingMe" + + "tadata.DynamicRetrievalPredictorMetadata\032\242\002\n" + "!DynamicRetrievalPredictorMetadata\022\234\001\n" - + "\007version\030\001 \001(\0162\212\001.google.cloud.discoveryengine.v1beta.Ge" - + "nerateGroundedContentResponse.Candidate." - + "GroundingMetadata.DynamicRetrievalPredictorMetadata.Version\022\027\n\n" + + "\007version\030\001 \001(\0162\212\001.google.cloud.discove" + + "ryengine.v1beta.GenerateGroundedContentR" + + "esponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version\022\027\n" + + "\n" + "prediction\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" + + "\016V1_INDEPENDENT\020\001B\r" + + "\n" + "\013_prediction\032>\n" + "\020SearchEntryPoint\022\030\n" + "\020rendered_content\030\001 \001(\t\022\020\n" @@ -306,65 +356,107 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "claim_text\030\001 \001(\t\022\035\n" + "\025support_chunk_indices\030\003 \003(\005\022\032\n\r" + "support_score\030\002 \001(\002H\000\210\001\001B\020\n" - + "\016_support_scoreB\022\n" - + "\020_grounding_score\"L\n" + + "\016_support_score\032\247\004\n\r" + + "ImageMetadata\022\203\001\n" + + "\005image\030\001 \001(\0132t.google.cloud.discoveryengine.v1beta.GenerateGroun" + + "dedContentResponse.Candidate.GroundingMetadata.ImageMetadata.Image\022\207\001\n" + + "\tthumbnail\030\002 \001(\0132t.google.cloud.discoveryengine.v1" + + "beta.GenerateGroundedContentResponse.Can" + + "didate.GroundingMetadata.ImageMetadata.Image\022\212\001\n" + + "\006source\030\003 \001(\0132z.google.cloud.dis" + + "coveryengine.v1beta.GenerateGroundedCont" + + "entResponse.Candidate.GroundingMetadata.ImageMetadata.WebsiteInfo\032D\n" + + "\013WebsiteInfo\022\013\n" + + "\003uri\030\001 \001(\t\022\r\n" + + "\005title\030\002 \001(\t\022\031\n" + + "\021site_display_name\030\003 \001(\t\0323\n" + + "\005Image\022\013\n" + + "\003uri\030\001 \001(\t\022\r\n" + + "\005width\030\002 \001(\005\022\016\n" + + "\006height\030\003 \001(\005\032,\n\r" + + "VideoMetadata\022\033\n" + + "\023youtube_external_id\030\001 \001(\tB\022\n" + + "\020_grounding_score\"\220\001\n" + "\022CheckGroundingSpec\022\037\n" - + "\022citation_threshold\030\001 \001(\001H\000\210\001\001B\025\n" - + "\023_citation_threshold\"\253\003\n" + + "\022citation_threshold\030\001 \001(\001H\000\210\001\001\022%\n" + + "\030enable_claim_level_score\030\004 \001(\010H\001\210\001\001B\025\n" + + "\023_citation_thresholdB\033\n" + + "\031_enable_claim_level_score\"\253\003\n" + "\025CheckGroundingRequest\022P\n" + "\020grounding_config\030\001 \001(\tB6\340A\002\372A0\n" + ".discoveryengine.googleapis.com/GroundingConfig\022\030\n" + "\020answer_candidate\030\002 \001(\t\022A\n" + "\005facts\030\003 \003(\01322.google.cloud.discoveryengine.v1beta.GroundingFact\022O\n" - + "\016grounding_spec\030\004" - + " \001(\01327.google.cloud.discoveryengine.v1beta.CheckGroundingSpec\022_\n" - + "\013user_labels\030\005 \003(\0132J.google.cloud.discove" - + "ryengine.v1beta.CheckGroundingRequest.UserLabelsEntry\0321\n" + + "\016grounding_spec\030\004 \001(\01327.google.clou" + + "d.discoveryengine.v1beta.CheckGroundingSpec\022_\n" + + "\013user_labels\030\005 \003(\0132J.google.cloud." + + "discoveryengine.v1beta.CheckGroundingRequest.UserLabelsEntry\0321\n" + "\017UserLabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\274\004\n" + + "\005value\030\002 \001(\t:\0028\001\"\332\004\n" + "\026CheckGroundingResponse\022\032\n\r" + "support_score\030\001 \001(\002H\000\210\001\001\022D\n" + "\014cited_chunks\030\003" + " \003(\0132..google.cloud.discoveryengine.v1beta.FactChunk\022h\n" - + "\013cited_facts\030\006 \003(\0132S.google.cloud.discoveryengin" - + "e.v1beta.CheckGroundingResponse.CheckGroundingFactChunk\022Q\n" - + "\006claims\030\004 \003(\0132A.google" - + ".cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim\032-\n" + + "\013cited_facts\030\006 \003(\0132S.google.cloud.discove" + + "ryengine.v1beta.CheckGroundingResponse.CheckGroundingFactChunk\022Q\n" + + "\006claims\030\004 \003(\0132A" + + ".google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim\032-\n" + "\027CheckGroundingFactChunk\022\022\n\n" - + "chunk_text\030\001 \001(\t\032\301\001\n" + + "chunk_text\030\001 \001(\t\032\337\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\n" + "claim_text\030\003 \001(\t\022\030\n" + "\020citation_indices\030\004 \003(\005\022%\n" - + "\030grounding_check_required\030\006 \001(\010H\002\210\001\001B\014\n\n" + + "\030grounding_check_required\030\006 \001(\010H\002\210\001\001\022\022\n" + + "\005score\030\007 \001(\001H\003\210\001\001B\014\n\n" + "_start_posB\n\n" + "\010_end_posB\033\n" - + "\031_grounding_check_requiredB\020\n" - + "\016_support_score2\314\006\n" + + "\031_grounding_check_requiredB\010\n" + + "\006_scoreB\020\n" + + "\016_support_score\"Y\n" + + "\020CitationMetadata\022E\n" + + "\tcitations\030\001 \003(\0132-.go" + + "ogle.cloud.discoveryengine.v1beta.CitationB\003\340A\003\"\222\003\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" + + "\020publication_date\030\006 \001(\0132\021.google.type.DateB\003\340A\003\"\345\001\n" + + "\023PhishBlockThreshold\022%\n" + + "!PHISH_BLOCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n" + + "\023BLOCK_LOW_AND_ABOVE\020\036\022\032\n" + + "\026BLOCK_MEDIUM_AND_ABOVE\020(\022\030\n" + + "\024BLOCK_HIGH_AND_ABOVE\0202\022\032\n" + + "\026BLOCK_HIGHER_AND_ABOVE\0207\022\035\n" + + "\031BLOCK_VERY_HIGH_AND_ABOVE\020<\022\035\n" + + "\031BLOCK_ONLY_EXTREMELY_HIGH\020d2\312\007\n" + "\031GroundedGenerationService\022\202\002\n" - + "\035StreamGenerateGroundedContent\022C.google.cloud.d" - + "iscoveryengine.v1beta.GenerateGroundedContentRequest\032D.google.cloud.discoveryeng" - + "ine.v1beta.GenerateGroundedContentRespon" - + "se\"R\202\323\344\223\002L\"G/v1beta/{location=projects/*" - + "/locations/*}:streamGenerateGroundedContent:\001*(\0010\001\022\362\001\n" - + "\027GenerateGroundedContent\022C.google.cloud.discoveryengine.v1beta.Gen" - + "erateGroundedContentRequest\032D.google.cloud.discoveryengine.v1beta.GenerateGround" - + "edContentResponse\"L\202\323\344\223\002F\"A/v1beta/{loca" - + "tion=projects/*/locations/*}:generateGroundedContent:\001*\022\340\001\n" - + "\016CheckGrounding\022:.google.cloud.discoveryengine.v1beta.CheckGr" - + "oundingRequest\032;.google.cloud.discoverye" - + "ngine.v1beta.CheckGroundingResponse\"U\202\323\344" - + "\223\002O\"J/v1beta/{grounding_config=projects/" - + "*/locations/*/groundingConfigs/*}:check:" - + "\001*\032R\312A\036discoveryengine.googleapis.com\322A." - + "https://www.googleapis.com/auth/cloud-platformB\245\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB\036GroundedGenerationServicePro" - + "toP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoverye" - + "nginepb\242\002\017DISCOVERYENGINE\252\002#Google.Cloud" - + ".DiscoveryEngine.V1Beta\312\002#Google\\Cloud\\D" - + "iscoveryEngine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" + + "\035StreamGenerateGroundedContent\022C.google.cloud.discoveryengine.v1beta.Gener" + + "ateGroundedContentRequest\032D.google.cloud.discoveryengine.v1beta.GenerateGrounded" + + "ContentResponse\"R\202\323\344\223\002L\"G/v1beta/{locati" + + "on=projects/*/locations/*}:streamGenerateGroundedContent:\001*(\0010\001\022\362\001\n" + + "\027GenerateGroundedContent\022C.google.cloud.discoveryengi" + + "ne.v1beta.GenerateGroundedContentRequest\032D.google.cloud.discoveryengine.v1beta.G" + + "enerateGroundedContentResponse\"L\202\323\344\223\002F\"A" + + "/v1beta/{location=projects/*/locations/*}:generateGroundedContent:\001*\022\340\001\n" + + "\016CheckGrounding\022:.google.cloud.discoveryengine.v" + + "1beta.CheckGroundingRequest\032;.google.cloud.discoveryengine.v1beta.CheckGrounding" + + "Response\"U\202\323\344\223\002O\"J/v1beta/{grounding_con" + + "fig=projects/*/locations/*/groundingConf" + + "igs/*}:check:\001*\032\317\001\312A\036discoveryengine.goo" + + "gleapis.com\322A\252\001https://www.googleapis.co" + + "m/auth/cloud-platform,https://www.googleapis.com/auth/discoveryengine.readwrite," + + "https://www.googleapis.com/auth/discoveryengine.serving.readwriteB\245\002\n" + + "\'com.google.cloud.discoveryengine.v1betaB\036GroundedG" + + "enerationServiceProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discovery" + + "enginepb;discoveryenginepb\242\002\017DISCOVERYEN" + + "GINE\252\002#Google.Cloud.DiscoveryEngine.V1Be" + + "ta\312\002#Google\\Cloud\\DiscoveryEngine\\V1beta" + + "\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -375,6 +467,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.discoveryengine.v1beta.GroundingProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), }); internal_static_google_cloud_discoveryengine_v1beta_GroundedGenerationContent_descriptor = getDescriptor().getMessageType(0); @@ -419,8 +512,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TopP", "TopK", "FrequencyPenalty", + "Seed", "PresencePenalty", "MaxOutputTokens", + "ProvisionedThroughputSetting", }); internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_DynamicRetrievalConfiguration_descriptor = internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_descriptor @@ -447,7 +542,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_GroundingSource_descriptor, new java.lang.String[] { - "InlineSource", "SearchSource", "GoogleSearchSource", "Source", + "InlineSource", + "SearchSource", + "GoogleSearchSource", + "EnterpriseWebRetrievalSource", + "Source", }); internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_GroundingSource_InlineSource_descriptor = internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_GroundingSource_descriptor @@ -483,7 +582,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_GroundingSource_GoogleSearchSource_descriptor, new java.lang.String[] { - "DynamicRetrievalConfig", + "DynamicRetrievalConfig", "ExcludeDomains", "BlockingConfidence", + }); + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_GroundingSource_EnterpriseWebRetrievalSource_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_GroundingSource_descriptor + .getNestedType(3); + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_GroundingSource_EnterpriseWebRetrievalSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_GroundingSource_EnterpriseWebRetrievalSource_descriptor, + new java.lang.String[] { + "ExcludeDomains", "BlockingConfidence", }); internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_GroundingSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentRequest_descriptor @@ -532,6 +640,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WebSearchQueries", "SearchEntryPoint", "GroundingSupport", + "Images", + "Videos", }); internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_RetrievalMetadata_descriptor = internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor @@ -578,13 +688,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ClaimText", "SupportChunkIndices", "SupportScore", }); + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor + .getNestedType(5); + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_descriptor, + new java.lang.String[] { + "Image", "Thumbnail", "Source", + }); + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_WebsiteInfo_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_WebsiteInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_WebsiteInfo_descriptor, + new java.lang.String[] { + "Uri", "Title", "SiteDisplayName", + }); + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_Image_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_Image_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_ImageMetadata_Image_descriptor, + new java.lang.String[] { + "Uri", "Width", "Height", + }); + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_descriptor + .getNestedType(6); + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_GenerateGroundedContentResponse_Candidate_GroundingMetadata_VideoMetadata_descriptor, + new java.lang.String[] { + "YoutubeExternalId", + }); internal_static_google_cloud_discoveryengine_v1beta_CheckGroundingSpec_descriptor = getDescriptor().getMessageType(3); internal_static_google_cloud_discoveryengine_v1beta_CheckGroundingSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_CheckGroundingSpec_descriptor, new java.lang.String[] { - "CitationThreshold", + "CitationThreshold", "EnableClaimLevelScore", }); internal_static_google_cloud_discoveryengine_v1beta_CheckGroundingRequest_descriptor = getDescriptor().getMessageType(4); @@ -627,7 +773,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_CheckGroundingResponse_Claim_descriptor, new java.lang.String[] { - "StartPos", "EndPos", "ClaimText", "CitationIndices", "GroundingCheckRequired", + "StartPos", + "EndPos", + "ClaimText", + "CitationIndices", + "GroundingCheckRequired", + "Score", + }); + internal_static_google_cloud_discoveryengine_v1beta_CitationMetadata_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_discoveryengine_v1beta_CitationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_CitationMetadata_descriptor, + new java.lang.String[] { + "Citations", + }); + internal_static_google_cloud_discoveryengine_v1beta_Citation_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_discoveryengine_v1beta_Citation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Citation_descriptor, + new java.lang.String[] { + "StartIndex", "EndIndex", "Uri", "Title", "License", "PublicationDate", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); @@ -635,6 +802,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.discoveryengine.v1beta.GroundingProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundingProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundingProto.java index 1511fc6b9861..d8874823097a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundingProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/GroundingProto.java @@ -84,22 +84,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ryengine.v1beta.GroundingFact.AttributesEntry\0321\n" + "\017AttributesEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\322\001\n" + + "\005value\030\002 \001(\t:\0028\001\"\376\001\n" + "\tFactChunk\022\022\n\n" + "chunk_text\030\001 \001(\t\022\016\n" + "\006source\030\002 \001(\t\022\r\n" + "\005index\030\004 \001(\005\022[\n" + "\017source_metadata\030\003 \003(\0132B.google.clou" - + "d.discoveryengine.v1beta.FactChunk.SourceMetadataEntry\0325\n" + + "d.discoveryengine.v1beta.FactChunk.SourceMetadataEntry\022\013\n" + + "\003uri\030\005 \001(\t\022\r\n" + + "\005title\030\006 \001(\t\022\016\n" + + "\006domain\030\007 \001(\t\0325\n" + "\023SourceMetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001B\225\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB\016Groun" - + "dingProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;dis" - + "coveryenginepb\242\002\017DISCOVERYENGINE\252\002#Googl" - + "e.Cloud.DiscoveryEngine.V1Beta\312\002#Google\\" - + "Cloud\\DiscoveryEngine\\V1beta\352\002&Google::C" - + "loud::DiscoveryEngine::V1betab\006proto3" + + "\'com.google.cloud.discoveryengine.v1betaB\016G" + + "roundingProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb" + + ";discoveryenginepb\242\002\017DISCOVERYENGINE\252\002#G" + + "oogle.Cloud.DiscoveryEngine.V1Beta\312\002#Goo" + + "gle\\Cloud\\DiscoveryEngine\\V1beta\352\002&Googl" + + "e::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -139,7 +142,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_FactChunk_descriptor, new java.lang.String[] { - "ChunkText", "Source", "Index", "SourceMetadata", + "ChunkText", "Source", "Index", "SourceMetadata", "Uri", "Title", "Domain", }); internal_static_google_cloud_discoveryengine_v1beta_FactChunk_SourceMetadataEntry_descriptor = internal_static_google_cloud_discoveryengine_v1beta_FactChunk_descriptor.getNestedType(0); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/HarmCategory.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/HarmCategory.java new file mode 100644 index 000000000000..e9ee6e7914e4 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/HarmCategory.java @@ -0,0 +1,262 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/safety.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Harm categories that will block the content.
            + * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.HarmCategory} + */ +@com.google.protobuf.Generated +public enum HarmCategory implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +   * The harm category is unspecified.
            +   * 
            + * + * HARM_CATEGORY_UNSPECIFIED = 0; + */ + HARM_CATEGORY_UNSPECIFIED(0), + /** + * + * + *
            +   * The harm category is hate speech.
            +   * 
            + * + * HARM_CATEGORY_HATE_SPEECH = 1; + */ + HARM_CATEGORY_HATE_SPEECH(1), + /** + * + * + *
            +   * The harm category is dangerous content.
            +   * 
            + * + * HARM_CATEGORY_DANGEROUS_CONTENT = 2; + */ + HARM_CATEGORY_DANGEROUS_CONTENT(2), + /** + * + * + *
            +   * The harm category is harassment.
            +   * 
            + * + * HARM_CATEGORY_HARASSMENT = 3; + */ + HARM_CATEGORY_HARASSMENT(3), + /** + * + * + *
            +   * The harm category is sexually explicit content.
            +   * 
            + * + * HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; + */ + HARM_CATEGORY_SEXUALLY_EXPLICIT(4), + /** + * + * + *
            +   * The harm category is civic integrity.
            +   * 
            + * + * HARM_CATEGORY_CIVIC_INTEGRITY = 5; + */ + HARM_CATEGORY_CIVIC_INTEGRITY(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HarmCategory"); + } + + /** + * + * + *
            +   * The harm category is unspecified.
            +   * 
            + * + * HARM_CATEGORY_UNSPECIFIED = 0; + */ + public static final int HARM_CATEGORY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +   * The harm category is hate speech.
            +   * 
            + * + * HARM_CATEGORY_HATE_SPEECH = 1; + */ + public static final int HARM_CATEGORY_HATE_SPEECH_VALUE = 1; + + /** + * + * + *
            +   * The harm category is dangerous content.
            +   * 
            + * + * HARM_CATEGORY_DANGEROUS_CONTENT = 2; + */ + public static final int HARM_CATEGORY_DANGEROUS_CONTENT_VALUE = 2; + + /** + * + * + *
            +   * The harm category is harassment.
            +   * 
            + * + * HARM_CATEGORY_HARASSMENT = 3; + */ + public static final int HARM_CATEGORY_HARASSMENT_VALUE = 3; + + /** + * + * + *
            +   * The harm category is sexually explicit content.
            +   * 
            + * + * HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; + */ + public static final int HARM_CATEGORY_SEXUALLY_EXPLICIT_VALUE = 4; + + /** + * + * + *
            +   * The harm category is civic integrity.
            +   * 
            + * + * HARM_CATEGORY_CIVIC_INTEGRITY = 5; + */ + public static final int HARM_CATEGORY_CIVIC_INTEGRITY_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static HarmCategory 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 HarmCategory forNumber(int value) { + switch (value) { + case 0: + return HARM_CATEGORY_UNSPECIFIED; + case 1: + return HARM_CATEGORY_HATE_SPEECH; + case 2: + return HARM_CATEGORY_DANGEROUS_CONTENT; + case 3: + return HARM_CATEGORY_HARASSMENT; + case 4: + return HARM_CATEGORY_SEXUALLY_EXPLICIT; + case 5: + return HARM_CATEGORY_CIVIC_INTEGRITY; + 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 HarmCategory findValueByNumber(int number) { + return HarmCategory.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SafetyProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final HarmCategory[] VALUES = values(); + + public static HarmCategory 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 HarmCategory(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.HarmCategory) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/HealthcareFhirConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/HealthcareFhirConfig.java new file mode 100644 index 000000000000..6313cc97e21a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/HealthcareFhirConfig.java @@ -0,0 +1,1011 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Config to data store for `HEALTHCARE_FHIR` vertical.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.HealthcareFhirConfig} + */ +@com.google.protobuf.Generated +public final class HealthcareFhirConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.HealthcareFhirConfig) + HealthcareFhirConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HealthcareFhirConfig"); + } + + // Use HealthcareFhirConfig.newBuilder() to construct. + private HealthcareFhirConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private HealthcareFhirConfig() { + initialFilterGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_HealthcareFhirConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_HealthcareFhirConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig.class, + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig.Builder.class); + } + + public static final int ENABLE_CONFIGURABLE_SCHEMA_FIELD_NUMBER = 1; + private boolean enableConfigurableSchema_ = false; + + /** + * + * + *
            +   * Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical.
            +   *
            +   * If set to `true`, the predefined healthcare fhir schema can be extended
            +   * for more customized searching and filtering.
            +   * 
            + * + * bool enable_configurable_schema = 1; + * + * @return The enableConfigurableSchema. + */ + @java.lang.Override + public boolean getEnableConfigurableSchema() { + return enableConfigurableSchema_; + } + + public static final int ENABLE_STATIC_INDEXING_FOR_BATCH_INGESTION_FIELD_NUMBER = 2; + private boolean enableStaticIndexingForBatchIngestion_ = false; + + /** + * + * + *
            +   * Whether to enable static indexing for `HEALTHCARE_FHIR` batch
            +   * ingestion.
            +   *
            +   * If set to `true`, the batch ingestion will be processed in a static
            +   * indexing mode which is slower but more capable of handling larger
            +   * volume.
            +   * 
            + * + * bool enable_static_indexing_for_batch_ingestion = 2; + * + * @return The enableStaticIndexingForBatchIngestion. + */ + @java.lang.Override + public boolean getEnableStaticIndexingForBatchIngestion() { + return enableStaticIndexingForBatchIngestion_; + } + + public static final int INITIAL_FILTER_GROUPS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList initialFilterGroups_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * Optional. Names of the Group resources to use as a basis for the initial
            +   * patient filter, in format
            +   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
            +   * The filter group must be a FHIR resource name of
            +   * type Group, and the filter will be constructed from the direct members of
            +   * the group which are Patient resources.
            +   * 
            + * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the initialFilterGroups. + */ + public com.google.protobuf.ProtocolStringList getInitialFilterGroupsList() { + return initialFilterGroups_; + } + + /** + * + * + *
            +   * Optional. Names of the Group resources to use as a basis for the initial
            +   * patient filter, in format
            +   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
            +   * The filter group must be a FHIR resource name of
            +   * type Group, and the filter will be constructed from the direct members of
            +   * the group which are Patient resources.
            +   * 
            + * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of initialFilterGroups. + */ + public int getInitialFilterGroupsCount() { + return initialFilterGroups_.size(); + } + + /** + * + * + *
            +   * Optional. Names of the Group resources to use as a basis for the initial
            +   * patient filter, in format
            +   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
            +   * The filter group must be a FHIR resource name of
            +   * type Group, and the filter will be constructed from the direct members of
            +   * the group which are Patient resources.
            +   * 
            + * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The initialFilterGroups at the given index. + */ + public java.lang.String getInitialFilterGroups(int index) { + return initialFilterGroups_.get(index); + } + + /** + * + * + *
            +   * Optional. Names of the Group resources to use as a basis for the initial
            +   * patient filter, in format
            +   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
            +   * The filter group must be a FHIR resource name of
            +   * type Group, and the filter will be constructed from the direct members of
            +   * the group which are Patient resources.
            +   * 
            + * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the initialFilterGroups at the given index. + */ + public com.google.protobuf.ByteString getInitialFilterGroupsBytes(int index) { + return initialFilterGroups_.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 (enableConfigurableSchema_ != false) { + output.writeBool(1, enableConfigurableSchema_); + } + if (enableStaticIndexingForBatchIngestion_ != false) { + output.writeBool(2, enableStaticIndexingForBatchIngestion_); + } + for (int i = 0; i < initialFilterGroups_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, initialFilterGroups_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableConfigurableSchema_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableConfigurableSchema_); + } + if (enableStaticIndexingForBatchIngestion_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 2, enableStaticIndexingForBatchIngestion_); + } + { + int dataSize = 0; + for (int i = 0; i < initialFilterGroups_.size(); i++) { + dataSize += computeStringSizeNoTag(initialFilterGroups_.getRaw(i)); + } + size += dataSize; + size += 1 * getInitialFilterGroupsList().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.v1beta.HealthcareFhirConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig other = + (com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig) obj; + + if (getEnableConfigurableSchema() != other.getEnableConfigurableSchema()) return false; + if (getEnableStaticIndexingForBatchIngestion() + != other.getEnableStaticIndexingForBatchIngestion()) return false; + if (!getInitialFilterGroupsList().equals(other.getInitialFilterGroupsList())) 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) + ENABLE_CONFIGURABLE_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableConfigurableSchema()); + hash = (37 * hash) + ENABLE_STATIC_INDEXING_FOR_BATCH_INGESTION_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getEnableStaticIndexingForBatchIngestion()); + if (getInitialFilterGroupsCount() > 0) { + hash = (37 * hash) + INITIAL_FILTER_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getInitialFilterGroupsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig 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.v1beta.HealthcareFhirConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig parseFrom( + 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.v1beta.HealthcareFhirConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Config to data store for `HEALTHCARE_FHIR` vertical.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.HealthcareFhirConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.HealthcareFhirConfig) + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_HealthcareFhirConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_HealthcareFhirConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig.class, + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableConfigurableSchema_ = false; + enableStaticIndexingForBatchIngestion_ = false; + initialFilterGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_HealthcareFhirConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig build() { + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig buildPartial() { + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig result = + new com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableConfigurableSchema_ = enableConfigurableSchema_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.enableStaticIndexingForBatchIngestion_ = enableStaticIndexingForBatchIngestion_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + initialFilterGroups_.makeImmutable(); + result.initialFilterGroups_ = initialFilterGroups_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig other) { + if (other + == com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig.getDefaultInstance()) + return this; + if (other.getEnableConfigurableSchema() != false) { + setEnableConfigurableSchema(other.getEnableConfigurableSchema()); + } + if (other.getEnableStaticIndexingForBatchIngestion() != false) { + setEnableStaticIndexingForBatchIngestion(other.getEnableStaticIndexingForBatchIngestion()); + } + if (!other.initialFilterGroups_.isEmpty()) { + if (initialFilterGroups_.isEmpty()) { + initialFilterGroups_ = other.initialFilterGroups_; + bitField0_ |= 0x00000004; + } else { + ensureInitialFilterGroupsIsMutable(); + initialFilterGroups_.addAll(other.initialFilterGroups_); + } + 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: + { + enableConfigurableSchema_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + enableStaticIndexingForBatchIngestion_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInitialFilterGroupsIsMutable(); + initialFilterGroups_.add(s); + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean enableConfigurableSchema_; + + /** + * + * + *
            +     * Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical.
            +     *
            +     * If set to `true`, the predefined healthcare fhir schema can be extended
            +     * for more customized searching and filtering.
            +     * 
            + * + * bool enable_configurable_schema = 1; + * + * @return The enableConfigurableSchema. + */ + @java.lang.Override + public boolean getEnableConfigurableSchema() { + return enableConfigurableSchema_; + } + + /** + * + * + *
            +     * Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical.
            +     *
            +     * If set to `true`, the predefined healthcare fhir schema can be extended
            +     * for more customized searching and filtering.
            +     * 
            + * + * bool enable_configurable_schema = 1; + * + * @param value The enableConfigurableSchema to set. + * @return This builder for chaining. + */ + public Builder setEnableConfigurableSchema(boolean value) { + + enableConfigurableSchema_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical.
            +     *
            +     * If set to `true`, the predefined healthcare fhir schema can be extended
            +     * for more customized searching and filtering.
            +     * 
            + * + * bool enable_configurable_schema = 1; + * + * @return This builder for chaining. + */ + public Builder clearEnableConfigurableSchema() { + bitField0_ = (bitField0_ & ~0x00000001); + enableConfigurableSchema_ = false; + onChanged(); + return this; + } + + private boolean enableStaticIndexingForBatchIngestion_; + + /** + * + * + *
            +     * Whether to enable static indexing for `HEALTHCARE_FHIR` batch
            +     * ingestion.
            +     *
            +     * If set to `true`, the batch ingestion will be processed in a static
            +     * indexing mode which is slower but more capable of handling larger
            +     * volume.
            +     * 
            + * + * bool enable_static_indexing_for_batch_ingestion = 2; + * + * @return The enableStaticIndexingForBatchIngestion. + */ + @java.lang.Override + public boolean getEnableStaticIndexingForBatchIngestion() { + return enableStaticIndexingForBatchIngestion_; + } + + /** + * + * + *
            +     * Whether to enable static indexing for `HEALTHCARE_FHIR` batch
            +     * ingestion.
            +     *
            +     * If set to `true`, the batch ingestion will be processed in a static
            +     * indexing mode which is slower but more capable of handling larger
            +     * volume.
            +     * 
            + * + * bool enable_static_indexing_for_batch_ingestion = 2; + * + * @param value The enableStaticIndexingForBatchIngestion to set. + * @return This builder for chaining. + */ + public Builder setEnableStaticIndexingForBatchIngestion(boolean value) { + + enableStaticIndexingForBatchIngestion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Whether to enable static indexing for `HEALTHCARE_FHIR` batch
            +     * ingestion.
            +     *
            +     * If set to `true`, the batch ingestion will be processed in a static
            +     * indexing mode which is slower but more capable of handling larger
            +     * volume.
            +     * 
            + * + * bool enable_static_indexing_for_batch_ingestion = 2; + * + * @return This builder for chaining. + */ + public Builder clearEnableStaticIndexingForBatchIngestion() { + bitField0_ = (bitField0_ & ~0x00000002); + enableStaticIndexingForBatchIngestion_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList initialFilterGroups_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureInitialFilterGroupsIsMutable() { + if (!initialFilterGroups_.isModifiable()) { + initialFilterGroups_ = new com.google.protobuf.LazyStringArrayList(initialFilterGroups_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
            +     * Optional. Names of the Group resources to use as a basis for the initial
            +     * patient filter, in format
            +     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
            +     * The filter group must be a FHIR resource name of
            +     * type Group, and the filter will be constructed from the direct members of
            +     * the group which are Patient resources.
            +     * 
            + * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the initialFilterGroups. + */ + public com.google.protobuf.ProtocolStringList getInitialFilterGroupsList() { + initialFilterGroups_.makeImmutable(); + return initialFilterGroups_; + } + + /** + * + * + *
            +     * Optional. Names of the Group resources to use as a basis for the initial
            +     * patient filter, in format
            +     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
            +     * The filter group must be a FHIR resource name of
            +     * type Group, and the filter will be constructed from the direct members of
            +     * the group which are Patient resources.
            +     * 
            + * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of initialFilterGroups. + */ + public int getInitialFilterGroupsCount() { + return initialFilterGroups_.size(); + } + + /** + * + * + *
            +     * Optional. Names of the Group resources to use as a basis for the initial
            +     * patient filter, in format
            +     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
            +     * The filter group must be a FHIR resource name of
            +     * type Group, and the filter will be constructed from the direct members of
            +     * the group which are Patient resources.
            +     * 
            + * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The initialFilterGroups at the given index. + */ + public java.lang.String getInitialFilterGroups(int index) { + return initialFilterGroups_.get(index); + } + + /** + * + * + *
            +     * Optional. Names of the Group resources to use as a basis for the initial
            +     * patient filter, in format
            +     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
            +     * The filter group must be a FHIR resource name of
            +     * type Group, and the filter will be constructed from the direct members of
            +     * the group which are Patient resources.
            +     * 
            + * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the initialFilterGroups at the given index. + */ + public com.google.protobuf.ByteString getInitialFilterGroupsBytes(int index) { + return initialFilterGroups_.getByteString(index); + } + + /** + * + * + *
            +     * Optional. Names of the Group resources to use as a basis for the initial
            +     * patient filter, in format
            +     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
            +     * The filter group must be a FHIR resource name of
            +     * type Group, and the filter will be constructed from the direct members of
            +     * the group which are Patient resources.
            +     * 
            + * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The initialFilterGroups to set. + * @return This builder for chaining. + */ + public Builder setInitialFilterGroups(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInitialFilterGroupsIsMutable(); + initialFilterGroups_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Names of the Group resources to use as a basis for the initial
            +     * patient filter, in format
            +     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
            +     * The filter group must be a FHIR resource name of
            +     * type Group, and the filter will be constructed from the direct members of
            +     * the group which are Patient resources.
            +     * 
            + * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The initialFilterGroups to add. + * @return This builder for chaining. + */ + public Builder addInitialFilterGroups(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInitialFilterGroupsIsMutable(); + initialFilterGroups_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Names of the Group resources to use as a basis for the initial
            +     * patient filter, in format
            +     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
            +     * The filter group must be a FHIR resource name of
            +     * type Group, and the filter will be constructed from the direct members of
            +     * the group which are Patient resources.
            +     * 
            + * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The initialFilterGroups to add. + * @return This builder for chaining. + */ + public Builder addAllInitialFilterGroups(java.lang.Iterable values) { + ensureInitialFilterGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, initialFilterGroups_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Names of the Group resources to use as a basis for the initial
            +     * patient filter, in format
            +     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
            +     * The filter group must be a FHIR resource name of
            +     * type Group, and the filter will be constructed from the direct members of
            +     * the group which are Patient resources.
            +     * 
            + * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearInitialFilterGroups() { + initialFilterGroups_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Names of the Group resources to use as a basis for the initial
            +     * patient filter, in format
            +     * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
            +     * The filter group must be a FHIR resource name of
            +     * type Group, and the filter will be constructed from the direct members of
            +     * the group which are Patient resources.
            +     * 
            + * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the initialFilterGroups to add. + * @return This builder for chaining. + */ + public Builder addInitialFilterGroupsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInitialFilterGroupsIsMutable(); + initialFilterGroups_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.HealthcareFhirConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.HealthcareFhirConfig) + private static final com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.HealthcareFhirConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HealthcareFhirConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.HealthcareFhirConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/HealthcareFhirConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/HealthcareFhirConfigOrBuilder.java new file mode 100644 index 000000000000..d87c5016a867 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/HealthcareFhirConfigOrBuilder.java @@ -0,0 +1,140 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface HealthcareFhirConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.HealthcareFhirConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical.
            +   *
            +   * If set to `true`, the predefined healthcare fhir schema can be extended
            +   * for more customized searching and filtering.
            +   * 
            + * + * bool enable_configurable_schema = 1; + * + * @return The enableConfigurableSchema. + */ + boolean getEnableConfigurableSchema(); + + /** + * + * + *
            +   * Whether to enable static indexing for `HEALTHCARE_FHIR` batch
            +   * ingestion.
            +   *
            +   * If set to `true`, the batch ingestion will be processed in a static
            +   * indexing mode which is slower but more capable of handling larger
            +   * volume.
            +   * 
            + * + * bool enable_static_indexing_for_batch_ingestion = 2; + * + * @return The enableStaticIndexingForBatchIngestion. + */ + boolean getEnableStaticIndexingForBatchIngestion(); + + /** + * + * + *
            +   * Optional. Names of the Group resources to use as a basis for the initial
            +   * patient filter, in format
            +   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
            +   * The filter group must be a FHIR resource name of
            +   * type Group, and the filter will be constructed from the direct members of
            +   * the group which are Patient resources.
            +   * 
            + * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the initialFilterGroups. + */ + java.util.List getInitialFilterGroupsList(); + + /** + * + * + *
            +   * Optional. Names of the Group resources to use as a basis for the initial
            +   * patient filter, in format
            +   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
            +   * The filter group must be a FHIR resource name of
            +   * type Group, and the filter will be constructed from the direct members of
            +   * the group which are Patient resources.
            +   * 
            + * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of initialFilterGroups. + */ + int getInitialFilterGroupsCount(); + + /** + * + * + *
            +   * Optional. Names of the Group resources to use as a basis for the initial
            +   * patient filter, in format
            +   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
            +   * The filter group must be a FHIR resource name of
            +   * type Group, and the filter will be constructed from the direct members of
            +   * the group which are Patient resources.
            +   * 
            + * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The initialFilterGroups at the given index. + */ + java.lang.String getInitialFilterGroups(int index); + + /** + * + * + *
            +   * Optional. Names of the Group resources to use as a basis for the initial
            +   * patient filter, in format
            +   * `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`.
            +   * The filter group must be a FHIR resource name of
            +   * type Group, and the filter will be constructed from the direct members of
            +   * the group which are Patient resources.
            +   * 
            + * + * repeated string initial_filter_groups = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the initialFilterGroups at the given index. + */ + com.google.protobuf.ByteString getInitialFilterGroupsBytes(int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingEntry.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingEntry.java new file mode 100644 index 000000000000..eed3200db99f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingEntry.java @@ -0,0 +1,1437 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Identity Mapping Entry that maps an external identity to an internal
            + * identity.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.IdentityMappingEntry} + */ +@com.google.protobuf.Generated +public final class IdentityMappingEntry extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.IdentityMappingEntry) + IdentityMappingEntryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IdentityMappingEntry"); + } + + // Use IdentityMappingEntry.newBuilder() to construct. + private IdentityMappingEntry(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IdentityMappingEntry() { + externalIdentity_ = ""; + externalIdentityName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.class, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder.class); + } + + private int identityProviderIdCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object identityProviderId_; + + public enum IdentityProviderIdCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + USER_ID(2), + GROUP_ID(3), + IDENTITYPROVIDERID_NOT_SET(0); + private final int value; + + private IdentityProviderIdCase(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 IdentityProviderIdCase valueOf(int value) { + return forNumber(value); + } + + public static IdentityProviderIdCase forNumber(int value) { + switch (value) { + case 2: + return USER_ID; + case 3: + return GROUP_ID; + case 0: + return IDENTITYPROVIDERID_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public IdentityProviderIdCase getIdentityProviderIdCase() { + return IdentityProviderIdCase.forNumber(identityProviderIdCase_); + } + + public static final int USER_ID_FIELD_NUMBER = 2; + + /** + * + * + *
            +   * User identifier.
            +   * For Google Workspace user account, user_id should be the google workspace
            +   * user email.
            +   * For non-google identity provider, user_id is the mapped user identifier
            +   * configured during the workforcepool config.
            +   * 
            + * + * string user_id = 2; + * + * @return Whether the userId field is set. + */ + public boolean hasUserId() { + return identityProviderIdCase_ == 2; + } + + /** + * + * + *
            +   * User identifier.
            +   * For Google Workspace user account, user_id should be the google workspace
            +   * user email.
            +   * For non-google identity provider, user_id is the mapped user identifier
            +   * configured during the workforcepool config.
            +   * 
            + * + * string user_id = 2; + * + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = ""; + if (identityProviderIdCase_ == 2) { + ref = identityProviderId_; + } + if (ref instanceof java.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 (identityProviderIdCase_ == 2) { + identityProviderId_ = s; + } + return s; + } + } + + /** + * + * + *
            +   * User identifier.
            +   * For Google Workspace user account, user_id should be the google workspace
            +   * user email.
            +   * For non-google identity provider, user_id is the mapped user identifier
            +   * configured during the workforcepool config.
            +   * 
            + * + * string user_id = 2; + * + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = ""; + if (identityProviderIdCase_ == 2) { + ref = identityProviderId_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (identityProviderIdCase_ == 2) { + identityProviderId_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUP_ID_FIELD_NUMBER = 3; + + /** + * + * + *
            +   * Group identifier.
            +   * For Google Workspace user account, group_id should be the google
            +   * workspace group email.
            +   * For non-google identity provider, group_id is the mapped group identifier
            +   * configured during the workforcepool config.
            +   * 
            + * + * string group_id = 3; + * + * @return Whether the groupId field is set. + */ + public boolean hasGroupId() { + return identityProviderIdCase_ == 3; + } + + /** + * + * + *
            +   * Group identifier.
            +   * For Google Workspace user account, group_id should be the google
            +   * workspace group email.
            +   * For non-google identity provider, group_id is the mapped group identifier
            +   * configured during the workforcepool config.
            +   * 
            + * + * string group_id = 3; + * + * @return The groupId. + */ + public java.lang.String getGroupId() { + java.lang.Object ref = ""; + if (identityProviderIdCase_ == 3) { + ref = identityProviderId_; + } + if (ref instanceof java.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 (identityProviderIdCase_ == 3) { + identityProviderId_ = s; + } + return s; + } + } + + /** + * + * + *
            +   * Group identifier.
            +   * For Google Workspace user account, group_id should be the google
            +   * workspace group email.
            +   * For non-google identity provider, group_id is the mapped group identifier
            +   * configured during the workforcepool config.
            +   * 
            + * + * string group_id = 3; + * + * @return The bytes for groupId. + */ + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = ""; + if (identityProviderIdCase_ == 3) { + ref = identityProviderId_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (identityProviderIdCase_ == 3) { + identityProviderId_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTERNAL_IDENTITY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object externalIdentity_ = ""; + + /** + * + * + *
            +   * Required. Identity outside the customer identity provider.
            +   * The length limit of external identity will be of 100 characters.
            +   * 
            + * + * string external_identity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The externalIdentity. + */ + @java.lang.Override + public java.lang.String getExternalIdentity() { + java.lang.Object ref = externalIdentity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalIdentity_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Identity outside the customer identity provider.
            +   * The length limit of external identity will be of 100 characters.
            +   * 
            + * + * string external_identity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for externalIdentity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExternalIdentityBytes() { + java.lang.Object ref = externalIdentity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalIdentity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTERNAL_IDENTITY_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object externalIdentityName_ = ""; + + /** + * + * + *
            +   * Optional. The name of the external identity.
            +   * 
            + * + * string external_identity_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The externalIdentityName. + */ + @java.lang.Override + public java.lang.String getExternalIdentityName() { + java.lang.Object ref = externalIdentityName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalIdentityName_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The name of the external identity.
            +   * 
            + * + * string external_identity_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for externalIdentityName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExternalIdentityNameBytes() { + java.lang.Object ref = externalIdentityName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalIdentityName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(externalIdentity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, externalIdentity_); + } + if (identityProviderIdCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, identityProviderId_); + } + if (identityProviderIdCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, identityProviderId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(externalIdentityName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, externalIdentityName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(externalIdentity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, externalIdentity_); + } + if (identityProviderIdCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, identityProviderId_); + } + if (identityProviderIdCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, identityProviderId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(externalIdentityName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, externalIdentityName_); + } + 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.v1beta.IdentityMappingEntry)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry other = + (com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry) obj; + + if (!getExternalIdentity().equals(other.getExternalIdentity())) return false; + if (!getExternalIdentityName().equals(other.getExternalIdentityName())) return false; + if (!getIdentityProviderIdCase().equals(other.getIdentityProviderIdCase())) return false; + switch (identityProviderIdCase_) { + case 2: + if (!getUserId().equals(other.getUserId())) return false; + break; + case 3: + if (!getGroupId().equals(other.getGroupId())) 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) + EXTERNAL_IDENTITY_FIELD_NUMBER; + hash = (53 * hash) + getExternalIdentity().hashCode(); + hash = (37 * hash) + EXTERNAL_IDENTITY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getExternalIdentityName().hashCode(); + switch (identityProviderIdCase_) { + case 2: + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + break; + case 3: + hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getGroupId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry 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.v1beta.IdentityMappingEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry parseFrom( + 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.v1beta.IdentityMappingEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Identity Mapping Entry that maps an external identity to an internal
            +   * identity.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.IdentityMappingEntry} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.IdentityMappingEntry) + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.class, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + externalIdentity_ = ""; + externalIdentityName_ = ""; + identityProviderIdCase_ = 0; + identityProviderId_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntry_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry build() { + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry buildPartial() { + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry result = + new com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.externalIdentity_ = externalIdentity_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.externalIdentityName_ = externalIdentityName_; + } + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry result) { + result.identityProviderIdCase_ = identityProviderIdCase_; + result.identityProviderId_ = this.identityProviderId_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry other) { + if (other + == com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.getDefaultInstance()) + return this; + if (!other.getExternalIdentity().isEmpty()) { + externalIdentity_ = other.externalIdentity_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getExternalIdentityName().isEmpty()) { + externalIdentityName_ = other.externalIdentityName_; + bitField0_ |= 0x00000008; + onChanged(); + } + switch (other.getIdentityProviderIdCase()) { + case USER_ID: + { + identityProviderIdCase_ = 2; + identityProviderId_ = other.identityProviderId_; + onChanged(); + break; + } + case GROUP_ID: + { + identityProviderIdCase_ = 3; + identityProviderId_ = other.identityProviderId_; + onChanged(); + break; + } + case IDENTITYPROVIDERID_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: + { + externalIdentity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + identityProviderIdCase_ = 2; + identityProviderId_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + identityProviderIdCase_ = 3; + identityProviderId_ = s; + break; + } // case 26 + case 34: + { + externalIdentityName_ = 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 identityProviderIdCase_ = 0; + private java.lang.Object identityProviderId_; + + public IdentityProviderIdCase getIdentityProviderIdCase() { + return IdentityProviderIdCase.forNumber(identityProviderIdCase_); + } + + public Builder clearIdentityProviderId() { + identityProviderIdCase_ = 0; + identityProviderId_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
            +     * User identifier.
            +     * For Google Workspace user account, user_id should be the google workspace
            +     * user email.
            +     * For non-google identity provider, user_id is the mapped user identifier
            +     * configured during the workforcepool config.
            +     * 
            + * + * string user_id = 2; + * + * @return Whether the userId field is set. + */ + @java.lang.Override + public boolean hasUserId() { + return identityProviderIdCase_ == 2; + } + + /** + * + * + *
            +     * User identifier.
            +     * For Google Workspace user account, user_id should be the google workspace
            +     * user email.
            +     * For non-google identity provider, user_id is the mapped user identifier
            +     * configured during the workforcepool config.
            +     * 
            + * + * string user_id = 2; + * + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = ""; + if (identityProviderIdCase_ == 2) { + ref = identityProviderId_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (identityProviderIdCase_ == 2) { + identityProviderId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * User identifier.
            +     * For Google Workspace user account, user_id should be the google workspace
            +     * user email.
            +     * For non-google identity provider, user_id is the mapped user identifier
            +     * configured during the workforcepool config.
            +     * 
            + * + * string user_id = 2; + * + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = ""; + if (identityProviderIdCase_ == 2) { + ref = identityProviderId_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (identityProviderIdCase_ == 2) { + identityProviderId_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * User identifier.
            +     * For Google Workspace user account, user_id should be the google workspace
            +     * user email.
            +     * For non-google identity provider, user_id is the mapped user identifier
            +     * configured during the workforcepool config.
            +     * 
            + * + * string user_id = 2; + * + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + identityProviderIdCase_ = 2; + identityProviderId_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * User identifier.
            +     * For Google Workspace user account, user_id should be the google workspace
            +     * user email.
            +     * For non-google identity provider, user_id is the mapped user identifier
            +     * configured during the workforcepool config.
            +     * 
            + * + * string user_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearUserId() { + if (identityProviderIdCase_ == 2) { + identityProviderIdCase_ = 0; + identityProviderId_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * User identifier.
            +     * For Google Workspace user account, user_id should be the google workspace
            +     * user email.
            +     * For non-google identity provider, user_id is the mapped user identifier
            +     * configured during the workforcepool config.
            +     * 
            + * + * string user_id = 2; + * + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + identityProviderIdCase_ = 2; + identityProviderId_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Group identifier.
            +     * For Google Workspace user account, group_id should be the google
            +     * workspace group email.
            +     * For non-google identity provider, group_id is the mapped group identifier
            +     * configured during the workforcepool config.
            +     * 
            + * + * string group_id = 3; + * + * @return Whether the groupId field is set. + */ + @java.lang.Override + public boolean hasGroupId() { + return identityProviderIdCase_ == 3; + } + + /** + * + * + *
            +     * Group identifier.
            +     * For Google Workspace user account, group_id should be the google
            +     * workspace group email.
            +     * For non-google identity provider, group_id is the mapped group identifier
            +     * configured during the workforcepool config.
            +     * 
            + * + * string group_id = 3; + * + * @return The groupId. + */ + @java.lang.Override + public java.lang.String getGroupId() { + java.lang.Object ref = ""; + if (identityProviderIdCase_ == 3) { + ref = identityProviderId_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (identityProviderIdCase_ == 3) { + identityProviderId_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Group identifier.
            +     * For Google Workspace user account, group_id should be the google
            +     * workspace group email.
            +     * For non-google identity provider, group_id is the mapped group identifier
            +     * configured during the workforcepool config.
            +     * 
            + * + * string group_id = 3; + * + * @return The bytes for groupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = ""; + if (identityProviderIdCase_ == 3) { + ref = identityProviderId_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (identityProviderIdCase_ == 3) { + identityProviderId_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Group identifier.
            +     * For Google Workspace user account, group_id should be the google
            +     * workspace group email.
            +     * For non-google identity provider, group_id is the mapped group identifier
            +     * configured during the workforcepool config.
            +     * 
            + * + * string group_id = 3; + * + * @param value The groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + identityProviderIdCase_ = 3; + identityProviderId_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Group identifier.
            +     * For Google Workspace user account, group_id should be the google
            +     * workspace group email.
            +     * For non-google identity provider, group_id is the mapped group identifier
            +     * configured during the workforcepool config.
            +     * 
            + * + * string group_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearGroupId() { + if (identityProviderIdCase_ == 3) { + identityProviderIdCase_ = 0; + identityProviderId_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Group identifier.
            +     * For Google Workspace user account, group_id should be the google
            +     * workspace group email.
            +     * For non-google identity provider, group_id is the mapped group identifier
            +     * configured during the workforcepool config.
            +     * 
            + * + * string group_id = 3; + * + * @param value The bytes for groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + identityProviderIdCase_ = 3; + identityProviderId_ = value; + onChanged(); + return this; + } + + private java.lang.Object externalIdentity_ = ""; + + /** + * + * + *
            +     * Required. Identity outside the customer identity provider.
            +     * The length limit of external identity will be of 100 characters.
            +     * 
            + * + * string external_identity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The externalIdentity. + */ + public java.lang.String getExternalIdentity() { + java.lang.Object ref = externalIdentity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalIdentity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Identity outside the customer identity provider.
            +     * The length limit of external identity will be of 100 characters.
            +     * 
            + * + * string external_identity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for externalIdentity. + */ + public com.google.protobuf.ByteString getExternalIdentityBytes() { + java.lang.Object ref = externalIdentity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalIdentity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Identity outside the customer identity provider.
            +     * The length limit of external identity will be of 100 characters.
            +     * 
            + * + * string external_identity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The externalIdentity to set. + * @return This builder for chaining. + */ + public Builder setExternalIdentity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + externalIdentity_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Identity outside the customer identity provider.
            +     * The length limit of external identity will be of 100 characters.
            +     * 
            + * + * string external_identity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearExternalIdentity() { + externalIdentity_ = getDefaultInstance().getExternalIdentity(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Identity outside the customer identity provider.
            +     * The length limit of external identity will be of 100 characters.
            +     * 
            + * + * string external_identity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for externalIdentity to set. + * @return This builder for chaining. + */ + public Builder setExternalIdentityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalIdentity_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object externalIdentityName_ = ""; + + /** + * + * + *
            +     * Optional. The name of the external identity.
            +     * 
            + * + * string external_identity_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The externalIdentityName. + */ + public java.lang.String getExternalIdentityName() { + java.lang.Object ref = externalIdentityName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + externalIdentityName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The name of the external identity.
            +     * 
            + * + * string external_identity_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for externalIdentityName. + */ + public com.google.protobuf.ByteString getExternalIdentityNameBytes() { + java.lang.Object ref = externalIdentityName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + externalIdentityName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The name of the external identity.
            +     * 
            + * + * string external_identity_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The externalIdentityName to set. + * @return This builder for chaining. + */ + public Builder setExternalIdentityName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + externalIdentityName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The name of the external identity.
            +     * 
            + * + * string external_identity_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearExternalIdentityName() { + externalIdentityName_ = getDefaultInstance().getExternalIdentityName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The name of the external identity.
            +     * 
            + * + * string external_identity_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for externalIdentityName to set. + * @return This builder for chaining. + */ + public Builder setExternalIdentityNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + externalIdentityName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.IdentityMappingEntry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.IdentityMappingEntry) + private static final com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry(); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdentityMappingEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.IdentityMappingEntry getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingEntryOperationMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingEntryOperationMetadata.java new file mode 100644 index 000000000000..f1c8611bb4fb --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingEntryOperationMetadata.java @@ -0,0 +1,730 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * IdentityMappingEntry LongRunningOperation metadata for
            + * [IdentityMappingStoreService.ImportIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ImportIdentityMappings]
            + * and
            + * [IdentityMappingStoreService.PurgeIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.PurgeIdentityMappings]
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata} + */ +@com.google.protobuf.Generated +public final class IdentityMappingEntryOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata) + IdentityMappingEntryOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IdentityMappingEntryOperationMetadata"); + } + + // Use IdentityMappingEntryOperationMetadata.newBuilder() to construct. + private IdentityMappingEntryOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IdentityMappingEntryOperationMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntryOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntryOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata.class, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata.Builder + .class); + } + + public static final int SUCCESS_COUNT_FIELD_NUMBER = 1; + private long successCount_ = 0L; + + /** + * + * + *
            +   * The number of IdentityMappingEntries that were successfully processed.
            +   * 
            + * + * int64 success_count = 1; + * + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + + public static final int FAILURE_COUNT_FIELD_NUMBER = 2; + private long failureCount_ = 0L; + + /** + * + * + *
            +   * The number of IdentityMappingEntries that failed to be processed.
            +   * 
            + * + * int64 failure_count = 2; + * + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + + public static final int TOTAL_COUNT_FIELD_NUMBER = 3; + private long totalCount_ = 0L; + + /** + * + * + *
            +   * The total number of IdentityMappingEntries that were processed.
            +   * 
            + * + * int64 total_count = 3; + * + * @return The totalCount. + */ + @java.lang.Override + public long getTotalCount() { + return totalCount_; + } + + 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 (successCount_ != 0L) { + output.writeInt64(1, successCount_); + } + if (failureCount_ != 0L) { + output.writeInt64(2, failureCount_); + } + if (totalCount_ != 0L) { + output.writeInt64(3, totalCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (successCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, successCount_); + } + if (failureCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, failureCount_); + } + if (totalCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, totalCount_); + } + 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.v1beta.IdentityMappingEntryOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata other = + (com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata) obj; + + if (getSuccessCount() != other.getSuccessCount()) return false; + if (getFailureCount() != other.getFailureCount()) return false; + if (getTotalCount() != other.getTotalCount()) 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) + SUCCESS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSuccessCount()); + hash = (37 * hash) + FAILURE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFailureCount()); + hash = (37 * hash) + TOTAL_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata + 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.v1beta.IdentityMappingEntryOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata + parseFrom( + 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.v1beta.IdentityMappingEntryOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * IdentityMappingEntry LongRunningOperation metadata for
            +   * [IdentityMappingStoreService.ImportIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ImportIdentityMappings]
            +   * and
            +   * [IdentityMappingStoreService.PurgeIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.PurgeIdentityMappings]
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata) + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntryOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntryOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata.class, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + successCount_ = 0L; + failureCount_ = 0L; + totalCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntryOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata build() { + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata + buildPartial() { + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata result = + new com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.successCount_ = successCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.failureCount_ = failureCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalCount_ = totalCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata + .getDefaultInstance()) return this; + if (other.getSuccessCount() != 0L) { + setSuccessCount(other.getSuccessCount()); + } + if (other.getFailureCount() != 0L) { + setFailureCount(other.getFailureCount()); + } + if (other.getTotalCount() != 0L) { + setTotalCount(other.getTotalCount()); + } + 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: + { + successCount_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + failureCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + totalCount_ = input.readInt64(); + 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 long successCount_; + + /** + * + * + *
            +     * The number of IdentityMappingEntries that were successfully processed.
            +     * 
            + * + * int64 success_count = 1; + * + * @return The successCount. + */ + @java.lang.Override + public long getSuccessCount() { + return successCount_; + } + + /** + * + * + *
            +     * The number of IdentityMappingEntries that were successfully processed.
            +     * 
            + * + * int64 success_count = 1; + * + * @param value The successCount to set. + * @return This builder for chaining. + */ + public Builder setSuccessCount(long value) { + + successCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The number of IdentityMappingEntries that were successfully processed.
            +     * 
            + * + * int64 success_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearSuccessCount() { + bitField0_ = (bitField0_ & ~0x00000001); + successCount_ = 0L; + onChanged(); + return this; + } + + private long failureCount_; + + /** + * + * + *
            +     * The number of IdentityMappingEntries that failed to be processed.
            +     * 
            + * + * int64 failure_count = 2; + * + * @return The failureCount. + */ + @java.lang.Override + public long getFailureCount() { + return failureCount_; + } + + /** + * + * + *
            +     * The number of IdentityMappingEntries that failed to be processed.
            +     * 
            + * + * int64 failure_count = 2; + * + * @param value The failureCount to set. + * @return This builder for chaining. + */ + public Builder setFailureCount(long value) { + + failureCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The number of IdentityMappingEntries that failed to be processed.
            +     * 
            + * + * int64 failure_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearFailureCount() { + bitField0_ = (bitField0_ & ~0x00000002); + failureCount_ = 0L; + onChanged(); + return this; + } + + private long totalCount_; + + /** + * + * + *
            +     * The total number of IdentityMappingEntries that were processed.
            +     * 
            + * + * int64 total_count = 3; + * + * @return The totalCount. + */ + @java.lang.Override + public long getTotalCount() { + return totalCount_; + } + + /** + * + * + *
            +     * The total number of IdentityMappingEntries that were processed.
            +     * 
            + * + * int64 total_count = 3; + * + * @param value The totalCount to set. + * @return This builder for chaining. + */ + public Builder setTotalCount(long value) { + + totalCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The total number of IdentityMappingEntries that were processed.
            +     * 
            + * + * int64 total_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalCount() { + bitField0_ = (bitField0_ & ~0x00000004); + totalCount_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata) + private static final com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdentityMappingEntryOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.IdentityMappingEntryOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingEntryOperationMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingEntryOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..e40ccd5aaa0f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingEntryOperationMetadataOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface IdentityMappingEntryOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The number of IdentityMappingEntries that were successfully processed.
            +   * 
            + * + * int64 success_count = 1; + * + * @return The successCount. + */ + long getSuccessCount(); + + /** + * + * + *
            +   * The number of IdentityMappingEntries that failed to be processed.
            +   * 
            + * + * int64 failure_count = 2; + * + * @return The failureCount. + */ + long getFailureCount(); + + /** + * + * + *
            +   * The total number of IdentityMappingEntries that were processed.
            +   * 
            + * + * int64 total_count = 3; + * + * @return The totalCount. + */ + long getTotalCount(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingEntryOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingEntryOrBuilder.java new file mode 100644 index 000000000000..264a544a0f21 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingEntryOrBuilder.java @@ -0,0 +1,187 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface IdentityMappingEntryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.IdentityMappingEntry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * User identifier.
            +   * For Google Workspace user account, user_id should be the google workspace
            +   * user email.
            +   * For non-google identity provider, user_id is the mapped user identifier
            +   * configured during the workforcepool config.
            +   * 
            + * + * string user_id = 2; + * + * @return Whether the userId field is set. + */ + boolean hasUserId(); + + /** + * + * + *
            +   * User identifier.
            +   * For Google Workspace user account, user_id should be the google workspace
            +   * user email.
            +   * For non-google identity provider, user_id is the mapped user identifier
            +   * configured during the workforcepool config.
            +   * 
            + * + * string user_id = 2; + * + * @return The userId. + */ + java.lang.String getUserId(); + + /** + * + * + *
            +   * User identifier.
            +   * For Google Workspace user account, user_id should be the google workspace
            +   * user email.
            +   * For non-google identity provider, user_id is the mapped user identifier
            +   * configured during the workforcepool config.
            +   * 
            + * + * string user_id = 2; + * + * @return The bytes for userId. + */ + com.google.protobuf.ByteString getUserIdBytes(); + + /** + * + * + *
            +   * Group identifier.
            +   * For Google Workspace user account, group_id should be the google
            +   * workspace group email.
            +   * For non-google identity provider, group_id is the mapped group identifier
            +   * configured during the workforcepool config.
            +   * 
            + * + * string group_id = 3; + * + * @return Whether the groupId field is set. + */ + boolean hasGroupId(); + + /** + * + * + *
            +   * Group identifier.
            +   * For Google Workspace user account, group_id should be the google
            +   * workspace group email.
            +   * For non-google identity provider, group_id is the mapped group identifier
            +   * configured during the workforcepool config.
            +   * 
            + * + * string group_id = 3; + * + * @return The groupId. + */ + java.lang.String getGroupId(); + + /** + * + * + *
            +   * Group identifier.
            +   * For Google Workspace user account, group_id should be the google
            +   * workspace group email.
            +   * For non-google identity provider, group_id is the mapped group identifier
            +   * configured during the workforcepool config.
            +   * 
            + * + * string group_id = 3; + * + * @return The bytes for groupId. + */ + com.google.protobuf.ByteString getGroupIdBytes(); + + /** + * + * + *
            +   * Required. Identity outside the customer identity provider.
            +   * The length limit of external identity will be of 100 characters.
            +   * 
            + * + * string external_identity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The externalIdentity. + */ + java.lang.String getExternalIdentity(); + + /** + * + * + *
            +   * Required. Identity outside the customer identity provider.
            +   * The length limit of external identity will be of 100 characters.
            +   * 
            + * + * string external_identity = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for externalIdentity. + */ + com.google.protobuf.ByteString getExternalIdentityBytes(); + + /** + * + * + *
            +   * Optional. The name of the external identity.
            +   * 
            + * + * string external_identity_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The externalIdentityName. + */ + java.lang.String getExternalIdentityName(); + + /** + * + * + *
            +   * Optional. The name of the external identity.
            +   * 
            + * + * string external_identity_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for externalIdentityName. + */ + com.google.protobuf.ByteString getExternalIdentityNameBytes(); + + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.IdentityProviderIdCase + getIdentityProviderIdCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStore.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStore.java new file mode 100644 index 000000000000..34f432edfc71 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStore.java @@ -0,0 +1,1185 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Identity Mapping Store which contains Identity Mapping Entries.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.IdentityMappingStore} + */ +@com.google.protobuf.Generated +public final class IdentityMappingStore extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.IdentityMappingStore) + IdentityMappingStoreOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IdentityMappingStore"); + } + + // Use IdentityMappingStore.newBuilder() to construct. + private IdentityMappingStore(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IdentityMappingStore() { + name_ = ""; + kmsKeyName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingStore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.class, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.Builder.class); + } + + 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 identity mapping store.
            +   * Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
            +   * 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 identity mapping store.
            +   * Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
            +   * 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 KMS_KEY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKeyName_ = ""; + + /** + * + * + *
            +   * Input only. The KMS key to be used to protect this Identity Mapping Store
            +   * at creation time.
            +   *
            +   * Must be set for requests that need to comply with CMEK Org Policy
            +   * protections.
            +   *
            +   * If this field is set and processed successfully, the Identity Mapping Store
            +   * will be protected by the KMS key, as indicated in the cmek_config field.
            +   * 
            + * + * string kms_key_name = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The kmsKeyName. + */ + @java.lang.Override + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } + } + + /** + * + * + *
            +   * Input only. The KMS key to be used to protect this Identity Mapping Store
            +   * at creation time.
            +   *
            +   * Must be set for requests that need to comply with CMEK Org Policy
            +   * protections.
            +   *
            +   * If this field is set and processed successfully, the Identity Mapping Store
            +   * will be protected by the KMS key, as indicated in the cmek_config field.
            +   * 
            + * + * string kms_key_name = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for kmsKeyName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CMEK_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1beta.CmekConfig cmekConfig_; + + /** + * + * + *
            +   * Output only. CMEK-related information for the Identity Mapping Store.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cmekConfig field is set. + */ + @java.lang.Override + public boolean hasCmekConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. CMEK-related information for the Identity Mapping Store.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cmekConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CmekConfig getCmekConfig() { + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance() + : cmekConfig_; + } + + /** + * + * + *
            +   * Output only. CMEK-related information for the Identity Mapping Store.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder getCmekConfigOrBuilder() { + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance() + : cmekConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, kmsKeyName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getCmekConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKeyName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, kmsKeyName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCmekConfig()); + } + 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.v1beta.IdentityMappingStore)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore other = + (com.google.cloud.discoveryengine.v1beta.IdentityMappingStore) obj; + + if (!getName().equals(other.getName())) return false; + if (!getKmsKeyName().equals(other.getKmsKeyName())) return false; + if (hasCmekConfig() != other.hasCmekConfig()) return false; + if (hasCmekConfig()) { + if (!getCmekConfig().equals(other.getCmekConfig())) 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) + KMS_KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKmsKeyName().hashCode(); + if (hasCmekConfig()) { + hash = (37 * hash) + CMEK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCmekConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingStore parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingStore 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.v1beta.IdentityMappingStore parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingStore parseFrom( + 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.v1beta.IdentityMappingStore parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingStore parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingStore parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingStore parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingStore parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingStore parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingStore parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingStore parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Identity Mapping Store which contains Identity Mapping Entries.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.IdentityMappingStore} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.IdentityMappingStore) + com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingStore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.class, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCmekConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + kmsKeyName_ = ""; + cmekConfig_ = null; + if (cmekConfigBuilder_ != null) { + cmekConfigBuilder_.dispose(); + cmekConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingStore_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdentityMappingStore + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdentityMappingStore build() { + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdentityMappingStore buildPartial() { + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore result = + new com.google.cloud.discoveryengine.v1beta.IdentityMappingStore(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.kmsKeyName_ = kmsKeyName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.cmekConfig_ = cmekConfigBuilder_ == null ? cmekConfig_ : cmekConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.IdentityMappingStore) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.IdentityMappingStore) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.IdentityMappingStore other) { + if (other + == com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getKmsKeyName().isEmpty()) { + kmsKeyName_ = other.kmsKeyName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCmekConfig()) { + mergeCmekConfig(other.getCmekConfig()); + } + 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 26: + { + kmsKeyName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCmekConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + 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_ = ""; + + /** + * + * + *
            +     * Immutable. The full resource name of the identity mapping store.
            +     * Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
            +     * 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; + } + } + + /** + * + * + *
            +     * Immutable. The full resource name of the identity mapping store.
            +     * Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
            +     * 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; + } + } + + /** + * + * + *
            +     * Immutable. The full resource name of the identity mapping store.
            +     * Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
            +     * 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; + } + + /** + * + * + *
            +     * Immutable. The full resource name of the identity mapping store.
            +     * Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
            +     * 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; + } + + /** + * + * + *
            +     * Immutable. The full resource name of the identity mapping store.
            +     * Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
            +     * 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; + } + + private java.lang.Object kmsKeyName_ = ""; + + /** + * + * + *
            +     * Input only. The KMS key to be used to protect this Identity Mapping Store
            +     * at creation time.
            +     *
            +     * Must be set for requests that need to comply with CMEK Org Policy
            +     * protections.
            +     *
            +     * If this field is set and processed successfully, the Identity Mapping Store
            +     * will be protected by the KMS key, as indicated in the cmek_config field.
            +     * 
            + * + * string kms_key_name = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The kmsKeyName. + */ + public java.lang.String getKmsKeyName() { + java.lang.Object ref = kmsKeyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKeyName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Input only. The KMS key to be used to protect this Identity Mapping Store
            +     * at creation time.
            +     *
            +     * Must be set for requests that need to comply with CMEK Org Policy
            +     * protections.
            +     *
            +     * If this field is set and processed successfully, the Identity Mapping Store
            +     * will be protected by the KMS key, as indicated in the cmek_config field.
            +     * 
            + * + * string kms_key_name = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for kmsKeyName. + */ + public com.google.protobuf.ByteString getKmsKeyNameBytes() { + java.lang.Object ref = kmsKeyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKeyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Input only. The KMS key to be used to protect this Identity Mapping Store
            +     * at creation time.
            +     *
            +     * Must be set for requests that need to comply with CMEK Org Policy
            +     * protections.
            +     *
            +     * If this field is set and processed successfully, the Identity Mapping Store
            +     * will be protected by the KMS key, as indicated in the cmek_config field.
            +     * 
            + * + * string kms_key_name = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKeyName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Input only. The KMS key to be used to protect this Identity Mapping Store
            +     * at creation time.
            +     *
            +     * Must be set for requests that need to comply with CMEK Org Policy
            +     * protections.
            +     *
            +     * If this field is set and processed successfully, the Identity Mapping Store
            +     * will be protected by the KMS key, as indicated in the cmek_config field.
            +     * 
            + * + * string kms_key_name = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearKmsKeyName() { + kmsKeyName_ = getDefaultInstance().getKmsKeyName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Input only. The KMS key to be used to protect this Identity Mapping Store
            +     * at creation time.
            +     *
            +     * Must be set for requests that need to comply with CMEK Org Policy
            +     * protections.
            +     *
            +     * If this field is set and processed successfully, the Identity Mapping Store
            +     * will be protected by the KMS key, as indicated in the cmek_config field.
            +     * 
            + * + * string kms_key_name = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The bytes for kmsKeyName to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKeyName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.CmekConfig cmekConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.CmekConfig, + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder> + cmekConfigBuilder_; + + /** + * + * + *
            +     * Output only. CMEK-related information for the Identity Mapping Store.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cmekConfig field is set. + */ + public boolean hasCmekConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Output only. CMEK-related information for the Identity Mapping Store.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cmekConfig. + */ + public com.google.cloud.discoveryengine.v1beta.CmekConfig getCmekConfig() { + if (cmekConfigBuilder_ == null) { + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance() + : cmekConfig_; + } else { + return cmekConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. CMEK-related information for the Identity Mapping Store.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCmekConfig(com.google.cloud.discoveryengine.v1beta.CmekConfig value) { + if (cmekConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cmekConfig_ = value; + } else { + cmekConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. CMEK-related information for the Identity Mapping Store.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCmekConfig( + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder builderForValue) { + if (cmekConfigBuilder_ == null) { + cmekConfig_ = builderForValue.build(); + } else { + cmekConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. CMEK-related information for the Identity Mapping Store.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCmekConfig(com.google.cloud.discoveryengine.v1beta.CmekConfig value) { + if (cmekConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && cmekConfig_ != null + && cmekConfig_ + != com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance()) { + getCmekConfigBuilder().mergeFrom(value); + } else { + cmekConfig_ = value; + } + } else { + cmekConfigBuilder_.mergeFrom(value); + } + if (cmekConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. CMEK-related information for the Identity Mapping Store.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCmekConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + cmekConfig_ = null; + if (cmekConfigBuilder_ != null) { + cmekConfigBuilder_.dispose(); + cmekConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. CMEK-related information for the Identity Mapping Store.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder getCmekConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetCmekConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. CMEK-related information for the Identity Mapping Store.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder getCmekConfigOrBuilder() { + if (cmekConfigBuilder_ != null) { + return cmekConfigBuilder_.getMessageOrBuilder(); + } else { + return cmekConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance() + : cmekConfig_; + } + } + + /** + * + * + *
            +     * Output only. CMEK-related information for the Identity Mapping Store.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.CmekConfig, + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder> + internalGetCmekConfigFieldBuilder() { + if (cmekConfigBuilder_ == null) { + cmekConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.CmekConfig, + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder>( + getCmekConfig(), getParentForChildren(), isClean()); + cmekConfig_ = null; + } + return cmekConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.IdentityMappingStore) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.IdentityMappingStore) + private static final com.google.cloud.discoveryengine.v1beta.IdentityMappingStore + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.IdentityMappingStore(); + } + + public static com.google.cloud.discoveryengine.v1beta.IdentityMappingStore getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdentityMappingStore parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.IdentityMappingStore getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreName.java new file mode 100644 index 000000000000..689a06b377f6 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreName.java @@ -0,0 +1,232 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +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 IdentityMappingStoreName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_IDENTITY_MAPPING_STORE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String identityMappingStore; + + @Deprecated + protected IdentityMappingStoreName() { + project = null; + location = null; + identityMappingStore = null; + } + + private IdentityMappingStoreName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + identityMappingStore = Preconditions.checkNotNull(builder.getIdentityMappingStore()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getIdentityMappingStore() { + return identityMappingStore; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static IdentityMappingStoreName of( + String project, String location, String identityMappingStore) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setIdentityMappingStore(identityMappingStore) + .build(); + } + + public static String format(String project, String location, String identityMappingStore) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setIdentityMappingStore(identityMappingStore) + .build() + .toString(); + } + + public static IdentityMappingStoreName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_IDENTITY_MAPPING_STORE.validatedMatch( + formattedString, "IdentityMappingStoreName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), matchMap.get("location"), matchMap.get("identity_mapping_store")); + } + + 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 (IdentityMappingStoreName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_IDENTITY_MAPPING_STORE.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 (identityMappingStore != null) { + fieldMapBuilder.put("identity_mapping_store", identityMappingStore); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_IDENTITY_MAPPING_STORE.instantiate( + "project", project, "location", location, "identity_mapping_store", identityMappingStore); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + IdentityMappingStoreName that = ((IdentityMappingStoreName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.identityMappingStore, that.identityMappingStore); + } + 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(identityMappingStore); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}. + */ + public static class Builder { + private String project; + private String location; + private String identityMappingStore; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getIdentityMappingStore() { + return identityMappingStore; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setIdentityMappingStore(String identityMappingStore) { + this.identityMappingStore = identityMappingStore; + return this; + } + + private Builder(IdentityMappingStoreName identityMappingStoreName) { + this.project = identityMappingStoreName.project; + this.location = identityMappingStoreName.location; + this.identityMappingStore = identityMappingStoreName.identityMappingStore; + } + + public IdentityMappingStoreName build() { + return new IdentityMappingStoreName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreOrBuilder.java new file mode 100644 index 000000000000..bd5f11f9db34 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreOrBuilder.java @@ -0,0 +1,145 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface IdentityMappingStoreOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.IdentityMappingStore) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Immutable. The full resource name of the identity mapping store.
            +   * Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
            +   * 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.String getName(); + + /** + * + * + *
            +   * Immutable. The full resource name of the identity mapping store.
            +   * Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`.
            +   * 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. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Input only. The KMS key to be used to protect this Identity Mapping Store
            +   * at creation time.
            +   *
            +   * Must be set for requests that need to comply with CMEK Org Policy
            +   * protections.
            +   *
            +   * If this field is set and processed successfully, the Identity Mapping Store
            +   * will be protected by the KMS key, as indicated in the cmek_config field.
            +   * 
            + * + * string kms_key_name = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The kmsKeyName. + */ + java.lang.String getKmsKeyName(); + + /** + * + * + *
            +   * Input only. The KMS key to be used to protect this Identity Mapping Store
            +   * at creation time.
            +   *
            +   * Must be set for requests that need to comply with CMEK Org Policy
            +   * protections.
            +   *
            +   * If this field is set and processed successfully, the Identity Mapping Store
            +   * will be protected by the KMS key, as indicated in the cmek_config field.
            +   * 
            + * + * string kms_key_name = 3 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for kmsKeyName. + */ + com.google.protobuf.ByteString getKmsKeyNameBytes(); + + /** + * + * + *
            +   * Output only. CMEK-related information for the Identity Mapping Store.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the cmekConfig field is set. + */ + boolean hasCmekConfig(); + + /** + * + * + *
            +   * Output only. CMEK-related information for the Identity Mapping Store.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The cmekConfig. + */ + com.google.cloud.discoveryengine.v1beta.CmekConfig getCmekConfig(); + + /** + * + * + *
            +   * Output only. CMEK-related information for the Identity Mapping Store.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig cmek_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder getCmekConfigOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreProto.java new file mode 100644 index 000000000000..3a8b2111ecb9 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreProto.java @@ -0,0 +1,123 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public final class IdentityMappingStoreProto extends com.google.protobuf.GeneratedFile { + private IdentityMappingStoreProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IdentityMappingStoreProto"); + } + + 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_discoveryengine_v1beta_IdentityMappingStore_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingStore_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntry_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/discoveryengine/v1beta/id" + + "entity_mapping_store.proto\022#google.cloud" + + ".discoveryengine.v1beta\032\037google/api/fiel" + + "d_behavior.proto\032\031google/api/resource.pr" + + "oto\032=google/cloud/discoveryengine/v1beta" + + "/cmek_config_service.proto\"\243\002\n\024IdentityM" + + "appingStore\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\031\n\014kms_ke" + + "y_name\030\003 \001(\tB\003\340A\004\022I\n\013cmek_config\030\004 \001(\0132/" + + ".google.cloud.discoveryengine.v1beta.Cme" + + "kConfigB\003\340A\003:\221\001\352A\215\001\n3discoveryengine.goo" + + "gleapis.com/IdentityMappingStore\022Vprojec" + + "ts/{project}/locations/{location}/identi" + + "tyMappingStores/{identity_mapping_store}" + + "\"\232\001\n\024IdentityMappingEntry\022\021\n\007user_id\030\002 \001" + + "(\tH\000\022\022\n\010group_id\030\003 \001(\tH\000\022\036\n\021external_ide" + + "ntity\030\001 \001(\tB\003\340A\002\022#\n\026external_identity_na" + + "me\030\004 \001(\tB\003\340A\001B\026\n\024identity_provider_idB\240\002" + + "\n\'com.google.cloud.discoveryengine.v1bet" + + "aB\031IdentityMappingStoreProtoP\001ZQcloud.go" + + "ogle.com/go/discoveryengine/apiv1beta/di" + + "scoveryenginepb;discoveryenginepb\242\002\017DISC" + + "OVERYENGINE\252\002#Google.Cloud.DiscoveryEngi" + + "ne.V1Beta\312\002#Google\\Cloud\\DiscoveryEngine" + + "\\V1beta\352\002&Google::Cloud::DiscoveryEngine" + + "::V1betab\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.cloud.discoveryengine.v1beta.CmekConfigServiceProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingStore_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingStore_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingStore_descriptor, + new java.lang.String[] { + "Name", "KmsKeyName", "CmekConfig", + }); + internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntry_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntry_descriptor, + new java.lang.String[] { + "UserId", "GroupId", "ExternalIdentity", "ExternalIdentityName", "IdentityProviderId", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto.getDescriptor(); + 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); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceProto.java new file mode 100644 index 000000000000..1bbb3826eeb1 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdentityMappingStoreServiceProto.java @@ -0,0 +1,400 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public final class IdentityMappingStoreServiceProto extends com.google.protobuf.GeneratedFile { + private IdentityMappingStoreServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IdentityMappingStoreServiceProto"); + } + + 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_discoveryengine_v1beta_CreateIdentityMappingStoreRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CreateIdentityMappingStoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_GetIdentityMappingStoreRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_GetIdentityMappingStoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_InlineSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_InlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_InlineSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_InlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntryOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntryOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\nHgoogle/cloud/discoveryengine/v1beta/id" + + "entity_mapping_store_service.proto\022#goog" + + "le.cloud.discoveryengine.v1beta\032\034google/" + + "api/annotations.proto\032\027google/api/client" + + ".proto\032\037google/api/field_behavior.proto\032" + + "\031google/api/resource.proto\032@google/cloud" + + "/discoveryengine/v1beta/identity_mapping" + + "_store.proto\032#google/longrunning/operati" + + "ons.proto\032\033google/protobuf/empty.proto\032\037" + + "google/protobuf/timestamp.proto\032\027google/" + + "rpc/status.proto\"\340\002\n!CreateIdentityMappi" + + "ngStoreRequest\022J\n\020cmek_config_name\030\005 \001(\t" + + "B.\372A+\n)discoveryengine.googleapis.com/Cm" + + "ekConfigH\000\022\026\n\014disable_cmek\030\006 \001(\010H\000\022?\n\006pa" + + "rent\030\001 \001(\tB/\340A\002\372A)\n\'discoveryengine.goog" + + "leapis.com/Location\022&\n\031identity_mapping_" + + "store_id\030\002 \001(\tB\003\340A\002\022^\n\026identity_mapping_" + + "store\030\003 \001(\01329.google.cloud.discoveryengi" + + "ne.v1beta.IdentityMappingStoreB\003\340A\002B\016\n\014c" + + "mek_options\"k\n\036GetIdentityMappingStoreRe" + + "quest\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3discoveryen" + + "gine.googleapis.com/IdentityMappingStore" + + "\"n\n!DeleteIdentityMappingStoreRequest\022I\n" + + "\004name\030\001 \001(\tB;\340A\002\372A5\n3discoveryengine.goo" + + "gleapis.com/IdentityMappingStore\"\335\002\n\035Imp" + + "ortIdentityMappingsRequest\022h\n\rinline_sou" + + "rce\030\002 \001(\0132O.google.cloud.discoveryengine" + + ".v1beta.ImportIdentityMappingsRequest.In" + + "lineSourceH\000\022[\n\026identity_mapping_store\030\001" + + " \001(\tB;\340A\002\372A5\n3discoveryengine.googleapis" + + ".com/IdentityMappingStore\032k\n\014InlineSourc" + + "e\022[\n\030identity_mapping_entries\030\001 \003(\01329.go" + + "ogle.cloud.discoveryengine.v1beta.Identi" + + "tyMappingEntryB\010\n\006source\"K\n\036ImportIdenti" + + "tyMappingsResponse\022)\n\rerror_samples\030\001 \003(" + + "\0132\022.google.rpc.Status\"\211\003\n\034PurgeIdentityM" + + "appingsRequest\022g\n\rinline_source\030\002 \001(\0132N." + + "google.cloud.discoveryengine.v1beta.Purg" + + "eIdentityMappingsRequest.InlineSourceH\000\022" + + "[\n\026identity_mapping_store\030\001 \001(\tB;\340A\002\372A5\n" + + "3discoveryengine.googleapis.com/Identity" + + "MappingStore\022\016\n\006filter\030\003 \001(\t\022\022\n\005force\030\004 " + + "\001(\010H\001\210\001\001\032k\n\014InlineSource\022[\n\030identity_map" + + "ping_entries\030\001 \003(\01329.google.cloud.discov" + + "eryengine.v1beta.IdentityMappingEntryB\010\n" + + "\006sourceB\010\n\006_force\"\241\001\n\033ListIdentityMappin" + + "gsRequest\022[\n\026identity_mapping_store\030\001 \001(" + + "\tB;\340A\002\372A5\n3discoveryengine.googleapis.co" + + "m/IdentityMappingStore\022\021\n\tpage_size\030\002 \001(" + + "\005\022\022\n\npage_token\030\003 \001(\t\"\224\001\n\034ListIdentityMa" + + "ppingsResponse\022[\n\030identity_mapping_entri" + + "es\030\001 \003(\01329.google.cloud.discoveryengine." + + "v1beta.IdentityMappingEntry\022\027\n\017next_page" + + "_token\030\002 \001(\t\"\212\001\n ListIdentityMappingStor" + + "esRequest\022?\n\006parent\030\001 \001(\tB/\340A\002\372A)\n\'disco" + + "veryengine.googleapis.com/Location\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\230\001\n!Li" + + "stIdentityMappingStoresResponse\022Z\n\027ident" + + "ity_mapping_stores\030\001 \003(\01329.google.cloud." + + "discoveryengine.v1beta.IdentityMappingSt" + + "ore\022\027\n\017next_page_token\030\002 \001(\t\"j\n%Identity" + + "MappingEntryOperationMetadata\022\025\n\rsuccess" + + "_count\030\001 \001(\003\022\025\n\rfailure_count\030\002 \001(\003\022\023\n\013t" + + "otal_count\030\003 \001(\003\"\206\001\n\"DeleteIdentityMappi" + + "ngStoreMetadata\022/\n\013create_time\030\001 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022/\n\013update_time\030" + + "\002 \001(\0132\032.google.protobuf.Timestamp2\256\022\n\033Id" + + "entityMappingStoreService\022\271\002\n\032CreateIden" + + "tityMappingStore\022F.google.cloud.discover" + + "yengine.v1beta.CreateIdentityMappingStor" + + "eRequest\0329.google.cloud.discoveryengine." + + "v1beta.IdentityMappingStore\"\227\001\332A7parent," + + "identity_mapping_store,identity_mapping_" + + "store_id\202\323\344\223\002W\"=/v1beta/{parent=projects" + + "/*/locations/*}/identityMappingStores:\026i" + + "dentity_mapping_store\022\347\001\n\027GetIdentityMap" + + "pingStore\022C.google.cloud.discoveryengine" + + ".v1beta.GetIdentityMappingStoreRequest\0329" + + ".google.cloud.discoveryengine.v1beta.Ide" + + "ntityMappingStore\"L\332A\004name\202\323\344\223\002?\022=/v1bet" + + "a/{name=projects/*/locations/*/identityM" + + "appingStores/*}\022\264\002\n\032DeleteIdentityMappin" + + "gStore\022F.google.cloud.discoveryengine.v1" + + "beta.DeleteIdentityMappingStoreRequest\032\035" + + ".google.longrunning.Operation\"\256\001\312A_\n\025goo" + + "gle.protobuf.Empty\022Fgoogle.cloud.discove" + + "ryengine.v1beta.DeleteIdentityMappingSto" + + "reMetadata\332A\004name\202\323\344\223\002?*=/v1beta/{name=p" + + "rojects/*/locations/*/identityMappingSto" + + "res/*}\022\202\003\n\026ImportIdentityMappings\022B.goog" + + "le.cloud.discoveryengine.v1beta.ImportId" + + "entityMappingsRequest\032\035.google.longrunni" + + "ng.Operation\"\204\002\312A\217\001\nBgoogle.cloud.discov" + + "eryengine.v1beta.ImportIdentityMappingsR" + + "esponse\022Igoogle.cloud.discoveryengine.v1" + + "beta.IdentityMappingEntryOperationMetada" + + "ta\202\323\344\223\002k\"f/v1beta/{identity_mapping_stor" + + "e=projects/*/locations/*/identityMapping" + + "Stores/*}:importIdentityMappings:\001*\022\321\002\n\025" + + "PurgeIdentityMappings\022A.google.cloud.dis" + + "coveryengine.v1beta.PurgeIdentityMapping" + + "sRequest\032\035.google.longrunning.Operation\"" + + "\325\001\312Ab\n\025google.protobuf.Empty\022Igoogle.clo" + + "ud.discoveryengine.v1beta.IdentityMappin" + + "gEntryOperationMetadata\202\323\344\223\002j\"e/v1beta/{" + + "identity_mapping_store=projects/*/locati" + + "ons/*/identityMappingStores/*}:purgeIden" + + "tityMappings:\001*\022\211\002\n\024ListIdentityMappings" + + "\022@.google.cloud.discoveryengine.v1beta.L" + + "istIdentityMappingsRequest\032A.google.clou" + + "d.discoveryengine.v1beta.ListIdentityMap" + + "pingsResponse\"l\202\323\344\223\002f\022d/v1beta/{identity" + + "_mapping_store=projects/*/locations/*/id" + + "entityMappingStores/*}:listIdentityMappi" + + "ngs\022\372\001\n\031ListIdentityMappingStores\022E.goog" + + "le.cloud.discoveryengine.v1beta.ListIden" + + "tityMappingStoresRequest\032F.google.cloud." + + "discoveryengine.v1beta.ListIdentityMappi" + + "ngStoresResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1be" + + "ta/{parent=projects/*/locations/*}/ident" + + "ityMappingStores\032\317\001\312A\036discoveryengine.go" + + "ogleapis.com\322A\252\001https://www.googleapis.c" + + "om/auth/cloud-platform,https://www.googl" + + "eapis.com/auth/discoveryengine.readwrite" + + ",https://www.googleapis.com/auth/discove" + + "ryengine.serving.readwriteB\247\002\n\'com.googl" + + "e.cloud.discoveryengine.v1betaB Identity" + + "MappingStoreServiceProtoP\001ZQcloud.google" + + ".com/go/discoveryengine/apiv1beta/discov" + + "eryenginepb;discoveryenginepb\242\002\017DISCOVER" + + "YENGINE\252\002#Google.Cloud.DiscoveryEngine.V" + + "1Beta\312\002#Google\\Cloud\\DiscoveryEngine\\V1b" + + "eta\352\002&Google::Cloud::DiscoveryEngine::V1" + + "betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_CreateIdentityMappingStoreRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1beta_CreateIdentityMappingStoreRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_CreateIdentityMappingStoreRequest_descriptor, + new java.lang.String[] { + "CmekConfigName", + "DisableCmek", + "Parent", + "IdentityMappingStoreId", + "IdentityMappingStore", + "CmekOptions", + }); + internal_static_google_cloud_discoveryengine_v1beta_GetIdentityMappingStoreRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_discoveryengine_v1beta_GetIdentityMappingStoreRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_GetIdentityMappingStoreRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_descriptor, + new java.lang.String[] { + "InlineSource", "IdentityMappingStore", "Source", + }); + internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_InlineSource_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_InlineSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_InlineSource_descriptor, + new java.lang.String[] { + "IdentityMappingEntries", + }); + internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsResponse_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsResponse_descriptor, + new java.lang.String[] { + "ErrorSamples", + }); + internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_descriptor, + new java.lang.String[] { + "InlineSource", "IdentityMappingStore", "Filter", "Force", "Source", + }); + internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_InlineSource_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_InlineSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_InlineSource_descriptor, + new java.lang.String[] { + "IdentityMappingEntries", + }); + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsRequest_descriptor, + new java.lang.String[] { + "IdentityMappingStore", "PageSize", "PageToken", + }); + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsResponse_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsResponse_descriptor, + new java.lang.String[] { + "IdentityMappingEntries", "NextPageToken", + }); + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresRequest_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresResponse_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresResponse_descriptor, + new java.lang.String[] { + "IdentityMappingStores", "NextPageToken", + }); + internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntryOperationMetadata_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntryOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_IdentityMappingEntryOperationMetadata_descriptor, + new java.lang.String[] { + "SuccessCount", "FailureCount", "TotalCount", + }); + internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreMetadata_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DeleteIdentityMappingStoreMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "UpdateTime", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + 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); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdpConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdpConfig.java new file mode 100644 index 000000000000..1bac95d677c8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdpConfig.java @@ -0,0 +1,1698 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Identity Provider Config.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.IdpConfig} + */ +@com.google.protobuf.Generated +public final class IdpConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.IdpConfig) + IdpConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IdpConfig"); + } + + // Use IdpConfig.newBuilder() to construct. + private IdpConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private IdpConfig() { + idpType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_IdpConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_IdpConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.IdpConfig.class, + com.google.cloud.discoveryengine.v1beta.IdpConfig.Builder.class); + } + + /** + * + * + *
            +   * Identity Provider Type.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.IdpConfig.IdpType} + */ + public enum IdpType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Default value. ACL search not enabled.
            +     * 
            + * + * IDP_TYPE_UNSPECIFIED = 0; + */ + IDP_TYPE_UNSPECIFIED(0), + /** + * + * + *
            +     * Google 1P provider.
            +     * 
            + * + * GSUITE = 1; + */ + GSUITE(1), + /** + * + * + *
            +     * Third party provider.
            +     * 
            + * + * THIRD_PARTY = 2; + */ + THIRD_PARTY(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "IdpType"); + } + + /** + * + * + *
            +     * Default value. ACL search not enabled.
            +     * 
            + * + * IDP_TYPE_UNSPECIFIED = 0; + */ + public static final int IDP_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Google 1P provider.
            +     * 
            + * + * GSUITE = 1; + */ + public static final int GSUITE_VALUE = 1; + + /** + * + * + *
            +     * Third party provider.
            +     * 
            + * + * THIRD_PARTY = 2; + */ + public static final int THIRD_PARTY_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 IdpType 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 IdpType forNumber(int value) { + switch (value) { + case 0: + return IDP_TYPE_UNSPECIFIED; + case 1: + return GSUITE; + case 2: + return THIRD_PARTY; + 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 IdpType findValueByNumber(int number) { + return IdpType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdpConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final IdpType[] VALUES = values(); + + public static IdpType 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 IdpType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.IdpConfig.IdpType) + } + + public interface ExternalIdpConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Workforce pool name.
            +     * Example: "locations/global/workforcePools/pool_id"
            +     * 
            + * + * string workforce_pool_name = 1; + * + * @return The workforcePoolName. + */ + java.lang.String getWorkforcePoolName(); + + /** + * + * + *
            +     * Workforce pool name.
            +     * Example: "locations/global/workforcePools/pool_id"
            +     * 
            + * + * string workforce_pool_name = 1; + * + * @return The bytes for workforcePoolName. + */ + com.google.protobuf.ByteString getWorkforcePoolNameBytes(); + } + + /** + * + * + *
            +   * Third party IDP Config.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig} + */ + public static final class ExternalIdpConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig) + ExternalIdpConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExternalIdpConfig"); + } + + // Use ExternalIdpConfig.newBuilder() to construct. + private ExternalIdpConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExternalIdpConfig() { + workforcePoolName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_IdpConfig_ExternalIdpConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_IdpConfig_ExternalIdpConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig.class, + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig.Builder.class); + } + + public static final int WORKFORCE_POOL_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object workforcePoolName_ = ""; + + /** + * + * + *
            +     * Workforce pool name.
            +     * Example: "locations/global/workforcePools/pool_id"
            +     * 
            + * + * string workforce_pool_name = 1; + * + * @return The workforcePoolName. + */ + @java.lang.Override + public java.lang.String getWorkforcePoolName() { + java.lang.Object ref = workforcePoolName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workforcePoolName_ = s; + return s; + } + } + + /** + * + * + *
            +     * Workforce pool name.
            +     * Example: "locations/global/workforcePools/pool_id"
            +     * 
            + * + * string workforce_pool_name = 1; + * + * @return The bytes for workforcePoolName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkforcePoolNameBytes() { + java.lang.Object ref = workforcePoolName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workforcePoolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workforcePoolName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workforcePoolName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workforcePoolName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, workforcePoolName_); + } + 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.v1beta.IdpConfig.ExternalIdpConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig other = + (com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig) obj; + + if (!getWorkforcePoolName().equals(other.getWorkforcePoolName())) 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) + WORKFORCE_POOL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getWorkforcePoolName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig 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.v1beta.IdpConfig.ExternalIdpConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig parseFrom( + 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.v1beta.IdpConfig.ExternalIdpConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Third party IDP Config.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig) + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_IdpConfig_ExternalIdpConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_IdpConfig_ExternalIdpConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig.class, + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workforcePoolName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_IdpConfig_ExternalIdpConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig build() { + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig buildPartial() { + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig result = + new com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.workforcePoolName_ = workforcePoolName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig other) { + if (other + == com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig + .getDefaultInstance()) return this; + if (!other.getWorkforcePoolName().isEmpty()) { + workforcePoolName_ = other.workforcePoolName_; + 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: + { + workforcePoolName_ = 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 workforcePoolName_ = ""; + + /** + * + * + *
            +       * Workforce pool name.
            +       * Example: "locations/global/workforcePools/pool_id"
            +       * 
            + * + * string workforce_pool_name = 1; + * + * @return The workforcePoolName. + */ + public java.lang.String getWorkforcePoolName() { + java.lang.Object ref = workforcePoolName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workforcePoolName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Workforce pool name.
            +       * Example: "locations/global/workforcePools/pool_id"
            +       * 
            + * + * string workforce_pool_name = 1; + * + * @return The bytes for workforcePoolName. + */ + public com.google.protobuf.ByteString getWorkforcePoolNameBytes() { + java.lang.Object ref = workforcePoolName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workforcePoolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Workforce pool name.
            +       * Example: "locations/global/workforcePools/pool_id"
            +       * 
            + * + * string workforce_pool_name = 1; + * + * @param value The workforcePoolName to set. + * @return This builder for chaining. + */ + public Builder setWorkforcePoolName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workforcePoolName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Workforce pool name.
            +       * Example: "locations/global/workforcePools/pool_id"
            +       * 
            + * + * string workforce_pool_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearWorkforcePoolName() { + workforcePoolName_ = getDefaultInstance().getWorkforcePoolName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Workforce pool name.
            +       * Example: "locations/global/workforcePools/pool_id"
            +       * 
            + * + * string workforce_pool_name = 1; + * + * @param value The bytes for workforcePoolName to set. + * @return This builder for chaining. + */ + public Builder setWorkforcePoolNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workforcePoolName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig) + private static final com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExternalIdpConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.IdpConfig.ExternalIdpConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int IDP_TYPE_FIELD_NUMBER = 1; + private int idpType_ = 0; + + /** + * + * + *
            +   * Identity provider type configured.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.IdpType idp_type = 1; + * + * @return The enum numeric value on the wire for idpType. + */ + @java.lang.Override + public int getIdpTypeValue() { + return idpType_; + } + + /** + * + * + *
            +   * Identity provider type configured.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.IdpType idp_type = 1; + * + * @return The idpType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdpConfig.IdpType getIdpType() { + com.google.cloud.discoveryengine.v1beta.IdpConfig.IdpType result = + com.google.cloud.discoveryengine.v1beta.IdpConfig.IdpType.forNumber(idpType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.IdpConfig.IdpType.UNRECOGNIZED + : result; + } + + public static final int EXTERNAL_IDP_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig externalIdpConfig_; + + /** + * + * + *
            +   * External Identity provider config.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + * + * @return Whether the externalIdpConfig field is set. + */ + @java.lang.Override + public boolean hasExternalIdpConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * External Identity provider config.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + * + * @return The externalIdpConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig + getExternalIdpConfig() { + return externalIdpConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig.getDefaultInstance() + : externalIdpConfig_; + } + + /** + * + * + *
            +   * External Identity provider config.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfigOrBuilder + getExternalIdpConfigOrBuilder() { + return externalIdpConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig.getDefaultInstance() + : externalIdpConfig_; + } + + 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 (idpType_ + != com.google.cloud.discoveryengine.v1beta.IdpConfig.IdpType.IDP_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, idpType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getExternalIdpConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (idpType_ + != com.google.cloud.discoveryengine.v1beta.IdpConfig.IdpType.IDP_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, idpType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExternalIdpConfig()); + } + 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.v1beta.IdpConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.IdpConfig other = + (com.google.cloud.discoveryengine.v1beta.IdpConfig) obj; + + if (idpType_ != other.idpType_) return false; + if (hasExternalIdpConfig() != other.hasExternalIdpConfig()) return false; + if (hasExternalIdpConfig()) { + if (!getExternalIdpConfig().equals(other.getExternalIdpConfig())) 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) + IDP_TYPE_FIELD_NUMBER; + hash = (53 * hash) + idpType_; + if (hasExternalIdpConfig()) { + hash = (37 * hash) + EXTERNAL_IDP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getExternalIdpConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig 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.v1beta.IdpConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig parseFrom( + 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.v1beta.IdpConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.IdpConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Identity Provider Config.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.IdpConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.IdpConfig) + com.google.cloud.discoveryengine.v1beta.IdpConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_IdpConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_IdpConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.IdpConfig.class, + com.google.cloud.discoveryengine.v1beta.IdpConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.IdpConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetExternalIdpConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + idpType_ = 0; + externalIdpConfig_ = null; + if (externalIdpConfigBuilder_ != null) { + externalIdpConfigBuilder_.dispose(); + externalIdpConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_IdpConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdpConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.IdpConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdpConfig build() { + com.google.cloud.discoveryengine.v1beta.IdpConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdpConfig buildPartial() { + com.google.cloud.discoveryengine.v1beta.IdpConfig result = + new com.google.cloud.discoveryengine.v1beta.IdpConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.IdpConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.idpType_ = idpType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.externalIdpConfig_ = + externalIdpConfigBuilder_ == null + ? externalIdpConfig_ + : externalIdpConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.IdpConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.IdpConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.IdpConfig other) { + if (other == com.google.cloud.discoveryengine.v1beta.IdpConfig.getDefaultInstance()) + return this; + if (other.idpType_ != 0) { + setIdpTypeValue(other.getIdpTypeValue()); + } + if (other.hasExternalIdpConfig()) { + mergeExternalIdpConfig(other.getExternalIdpConfig()); + } + 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: + { + idpType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetExternalIdpConfigFieldBuilder().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 idpType_ = 0; + + /** + * + * + *
            +     * Identity provider type configured.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.IdpType idp_type = 1; + * + * @return The enum numeric value on the wire for idpType. + */ + @java.lang.Override + public int getIdpTypeValue() { + return idpType_; + } + + /** + * + * + *
            +     * Identity provider type configured.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.IdpType idp_type = 1; + * + * @param value The enum numeric value on the wire for idpType to set. + * @return This builder for chaining. + */ + public Builder setIdpTypeValue(int value) { + idpType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identity provider type configured.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.IdpType idp_type = 1; + * + * @return The idpType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdpConfig.IdpType getIdpType() { + com.google.cloud.discoveryengine.v1beta.IdpConfig.IdpType result = + com.google.cloud.discoveryengine.v1beta.IdpConfig.IdpType.forNumber(idpType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.IdpConfig.IdpType.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Identity provider type configured.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.IdpType idp_type = 1; + * + * @param value The idpType to set. + * @return This builder for chaining. + */ + public Builder setIdpType(com.google.cloud.discoveryengine.v1beta.IdpConfig.IdpType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + idpType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identity provider type configured.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.IdpType idp_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearIdpType() { + bitField0_ = (bitField0_ & ~0x00000001); + idpType_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig externalIdpConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig, + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig.Builder, + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfigOrBuilder> + externalIdpConfigBuilder_; + + /** + * + * + *
            +     * External Identity provider config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + * + * @return Whether the externalIdpConfig field is set. + */ + public boolean hasExternalIdpConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * External Identity provider config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + * + * @return The externalIdpConfig. + */ + public com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig + getExternalIdpConfig() { + if (externalIdpConfigBuilder_ == null) { + return externalIdpConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig + .getDefaultInstance() + : externalIdpConfig_; + } else { + return externalIdpConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * External Identity provider config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + public Builder setExternalIdpConfig( + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig value) { + if (externalIdpConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + externalIdpConfig_ = value; + } else { + externalIdpConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * External Identity provider config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + public Builder setExternalIdpConfig( + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig.Builder + builderForValue) { + if (externalIdpConfigBuilder_ == null) { + externalIdpConfig_ = builderForValue.build(); + } else { + externalIdpConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * External Identity provider config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + public Builder mergeExternalIdpConfig( + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig value) { + if (externalIdpConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && externalIdpConfig_ != null + && externalIdpConfig_ + != com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig + .getDefaultInstance()) { + getExternalIdpConfigBuilder().mergeFrom(value); + } else { + externalIdpConfig_ = value; + } + } else { + externalIdpConfigBuilder_.mergeFrom(value); + } + if (externalIdpConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * External Identity provider config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + public Builder clearExternalIdpConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + externalIdpConfig_ = null; + if (externalIdpConfigBuilder_ != null) { + externalIdpConfigBuilder_.dispose(); + externalIdpConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * External Identity provider config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig.Builder + getExternalIdpConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetExternalIdpConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * External Identity provider config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfigOrBuilder + getExternalIdpConfigOrBuilder() { + if (externalIdpConfigBuilder_ != null) { + return externalIdpConfigBuilder_.getMessageOrBuilder(); + } else { + return externalIdpConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig + .getDefaultInstance() + : externalIdpConfig_; + } + } + + /** + * + * + *
            +     * External Identity provider config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig, + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig.Builder, + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfigOrBuilder> + internalGetExternalIdpConfigFieldBuilder() { + if (externalIdpConfigBuilder_ == null) { + externalIdpConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig, + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig.Builder, + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfigOrBuilder>( + getExternalIdpConfig(), getParentForChildren(), isClean()); + externalIdpConfig_ = null; + } + return externalIdpConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.IdpConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.IdpConfig) + private static final com.google.cloud.discoveryengine.v1beta.IdpConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.IdpConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.IdpConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IdpConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.IdpConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdpConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdpConfigOrBuilder.java new file mode 100644 index 000000000000..50f549030c2b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/IdpConfigOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface IdpConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.IdpConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Identity provider type configured.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.IdpType idp_type = 1; + * + * @return The enum numeric value on the wire for idpType. + */ + int getIdpTypeValue(); + + /** + * + * + *
            +   * Identity provider type configured.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.IdpType idp_type = 1; + * + * @return The idpType. + */ + com.google.cloud.discoveryengine.v1beta.IdpConfig.IdpType getIdpType(); + + /** + * + * + *
            +   * External Identity provider config.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + * + * @return Whether the externalIdpConfig field is set. + */ + boolean hasExternalIdpConfig(); + + /** + * + * + *
            +   * External Identity provider config.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + * + * @return The externalIdpConfig. + */ + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig getExternalIdpConfig(); + + /** + * + * + *
            +   * External Identity provider config.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfig external_idp_config = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.IdpConfig.ExternalIdpConfigOrBuilder + getExternalIdpConfigOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java index 9c45659fe08f..7b8dc8832a3a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportConfigProto.java @@ -248,12 +248,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013instance_id\030\002 \001(\tB\003\340A\002\022\025\n" + "\010table_id\030\003 \001(\tB\003\340A\002\022S\n" + "\020bigtable_options\030\004" - + " \001(\01324.google.cloud.discoveryengine.v1beta.BigtableOptionsB\003\340A\002\"\203\001\n" + + " \001(\01324.google.cloud.discoveryengine.v1beta.BigtableOptionsB\003\340A\002\"\266\001\n" + "\017FhirStoreSource\022?\n\n" + "fhir_store\030\001 \001(\tB+\340A\002\372A%\n" + "#healthcare.googleapis.com/FhirStore\022\027\n" + "\017gcs_staging_dir\030\002 \001(\t\022\026\n" - + "\016resource_types\030\003 \003(\t\"\231\001\n" + + "\016resource_types\030\003 \003(\t\0221\n" + + "$update_from_latest_predefined_schema\030\004 \001(\010B\003\340A\001\"\231\001\n" + "\016CloudSqlSource\022\022\n\n" + "project_id\030\001 \001(\t\022\030\n" + "\013instance_id\030\002 \001(\tB\003\340A\002\022\030\n" @@ -277,30 +278,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gcs_prefix\030\001 \001(\tH\000B\r\n" + "\013destination\"\207\004\n" + "\027ImportUserEventsRequest\022b\n\r" - + "inline_source\030\002 \001(\0132I.google.c" - + "loud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSourceH\000\022D\n\n" + + "inline_source\030\002 \001(\013" + + "2I.google.cloud.discoveryengine.v1beta.ImportUserEventsRequest.InlineSourceH\000\022D\n" + + "\n" + "gcs_source\030\003" + " \001(\0132..google.cloud.discoveryengine.v1beta.GcsSourceH\000\022N\n" - + "\017bigquery_source\030\004 \001(" - + "\01323.google.cloud.discoveryengine.v1beta.BigQuerySourceH\000\022@\n" + + "\017bigquery_source\030\004" + + " \001(\01323.google.cloud.discoveryengine.v1beta.BigQuerySourceH\000\022@\n" + "\006parent\030\001 \001(\tB0\340A\002\372A*\n" + "(discoveryengine.googleapis.com/DataStore\022L\n" - + "\014error_config\030\005 \001(\01326.google.cloud." - + "discoveryengine.v1beta.ImportErrorConfig\032X\n" + + "\014error_config\030\005 \001(\01326.go" + + "ogle.cloud.discoveryengine.v1beta.ImportErrorConfig\032X\n" + "\014InlineSource\022H\n" - + "\013user_events\030\001 \003(\0132.." - + "google.cloud.discoveryengine.v1beta.UserEventB\003\340A\002B\010\n" + + "\013user_events\030\001" + + " \003(\0132..google.cloud.discoveryengine.v1beta.UserEventB\003\340A\002B\010\n" + "\006source\"\317\001\n" + "\030ImportUserEventsResponse\022)\n\r" + "error_samples\030\001 \003(\0132\022.google.rpc.Status\022L\n" - + "\014error_config\030\002 \001(\01326.goo" - + "gle.cloud.discoveryengine.v1beta.ImportErrorConfig\022\033\n" + + "\014error_config\030\002" + + " \001(\01326.google.cloud.discoveryengine.v1beta.ImportErrorConfig\022\033\n" + "\023joined_events_count\030\003 \001(\003\022\035\n" - + "\025unjoined_events_count\030\004 \001(\003\"\252\001\n" + + "\025unjoined_events_count\030\004 \001(\003\"\257\001\n" + "\030ImportUserEventsMetadata\022/\n" - + "\013create_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n" - + "\013update_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\025\n" - + "\r" + + "\013create_time\030\001 \001(\0132\032.google.protobuf.Timestamp\0224\n" + + "\013update_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\025\n\r" + "success_count\030\003 \001(\003\022\025\n\r" + "failure_count\030\004 \001(\003\"\276\001\n" + "\027ImportDocumentsMetadata\022/\n" @@ -308,38 +310,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\025\n\r" + "success_count\030\003 \001(\003\022\025\n\r" + "failure_count\030\004 \001(\003\022\023\n" - + "\013total_count\030\005 \001(\003\"\203\n\n" + + "\013total_count\030\005 \001(\003\"\247\n\n" + "\026ImportDocumentsRequest\022a\n\r" - + "inline_source\030\002 \001(\0132H.google.cloud.discoveryengine.v1" - + "beta.ImportDocumentsRequest.InlineSourceH\000\022D\n\n" - + "gcs_source\030\003" - + " \001(\0132..google.cloud.discoveryengine.v1beta.GcsSourceH\000\022N\n" - + "\017bigquery_source\030\004" - + " \001(\01323.google.cloud.discoveryengine.v1beta.BigQuerySourceH\000\022Q\n" + + "inline_source\030\002 \001(\0132H.google.cloud.di" + + "scoveryengine.v1beta.ImportDocumentsRequest.InlineSourceH\000\022D\n\n" + + "gcs_source\030\003 \001(\0132." + + ".google.cloud.discoveryengine.v1beta.GcsSourceH\000\022N\n" + + "\017bigquery_source\030\004 \001(\01323.goog" + + "le.cloud.discoveryengine.v1beta.BigQuerySourceH\000\022Q\n" + "\021fhir_store_source\030\n" + " \001(\01324.google.cloud.discoveryengine.v1beta.FhirStoreSourceH\000\022L\n" - + "\016spanner_source\030\013" - + " \001(\01322.google.cloud.discoveryengine.v1beta.SpannerSourceH\000\022O\n" - + "\020cloud_sql_source\030\014" - + " \001(\01323.google.cloud.discoveryengine.v1beta.CloudSqlSourceH\000\022P\n" + + "\016spanner_source\030\013 \001(\01322.go" + + "ogle.cloud.discoveryengine.v1beta.SpannerSourceH\000\022O\n" + + "\020cloud_sql_source\030\014 \001(\01323.go" + + "ogle.cloud.discoveryengine.v1beta.CloudSqlSourceH\000\022P\n" + "\020firestore_source\030\r" + " \001(\01324.google.cloud.discoveryengine.v1beta.FirestoreSourceH\000\022M\n" - + "\017alloy_db_source\030\016" - + " \001(\01322.google.cloud.discoveryengine.v1beta.AlloyDbSourceH\000\022N\n" - + "\017bigtable_source\030\017" - + " \001(\01323.google.cloud.discoveryengine.v1beta.BigtableSourceH\000\022=\n" + + "\017alloy_db_source\030\016 \001(\01322." + + "google.cloud.discoveryengine.v1beta.AlloyDbSourceH\000\022N\n" + + "\017bigtable_source\030\017 \001(\01323.g" + + "oogle.cloud.discoveryengine.v1beta.BigtableSourceH\000\022=\n" + "\006parent\030\001 \001(\tB-\340A\002\372A\'\n" + "%discoveryengine.googleapis.com/Branch\022L\n" - + "\014error_config\030\005 \001(\013" - + "26.google.cloud.discoveryengine.v1beta.ImportErrorConfig\022k\n" - + "\023reconciliation_mode\030\006 \001(\0162N.google.cloud.discoveryengine.v1b" - + "eta.ImportDocumentsRequest.ReconciliationMode\022/\n" + + "\014error_config\030\005" + + " \001(\01326.google.cloud.discoveryengine.v1beta.ImportErrorConfig\022k\n" + + "\023reconciliation_mode\030\006 \001(\0162N.google.cloud.dis" + + "coveryengine.v1beta.ImportDocumentsRequest.ReconciliationMode\022/\n" + "\013update_mask\030\007 \001(\0132\032.google.protobuf.FieldMask\022\031\n" + "\021auto_generate_ids\030\010 \001(\010\022\020\n" - + "\010id_field\030\t \001(\t\032U\n" + + "\010id_field\030\t \001(\t\022\"\n" + + "\025force_refresh_content\030\020 \001(\010B\003\340A\001\032U\n" + "\014InlineSource\022E\n" - + "\tdocuments\030\001" - + " \003(\0132-.google.cloud.discoveryengine.v1beta.DocumentB\003\340A\002\"T\n" + + "\tdocuments\030\001 \003(\0132-.google.clou" + + "d.discoveryengine.v1beta.DocumentB\003\340A\002\"T\n" + "\022ReconciliationMode\022#\n" + "\037RECONCILIATION_MODE_UNSPECIFIED\020\000\022\017\n" + "\013INCREMENTAL\020\001\022\010\n" @@ -347,18 +350,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006source\"\222\001\n" + "\027ImportDocumentsResponse\022)\n\r" + "error_samples\030\001 \003(\0132\022.google.rpc.Status\022L\n" - + "\014error_config\030\002" - + " \001(\01326.google.cloud.discoveryengine.v1beta.ImportErrorConfig\"\221\003\n" + + "\014error_config\030\002 \001(\01326.google.clo" + + "ud.discoveryengine.v1beta.ImportErrorConfig\"\221\003\n" + "&ImportSuggestionDenyListEntriesRequest\022q\n\r" - + "inline_source\030\002 \001(\0132X.google.cloud.discove" - + "ryengine.v1beta.ImportSuggestionDenyListEntriesRequest.InlineSourceH\000\022D\n\n" + + "inline_source\030\002 \001(\0132X.google.cloud.discoveryengine.v1beta.ImportSugges" + + "tionDenyListEntriesRequest.InlineSourceH\000\022D\n\n" + "gcs_source\030\003" + " \001(\0132..google.cloud.discoveryengine.v1beta.GcsSourceH\000\022@\n" + "\006parent\030\001 \001(\tB0\340A\002\372A*\n" + "(discoveryengine.googleapis.com/DataStore\032b\n" + "\014InlineSource\022R\n" - + "\007entries\030\001 \003(\0132<" - + ".google.cloud.discoveryengine.v1beta.SuggestionDenyListEntryB\003\340A\002B\010\n" + + "\007entries\030\001" + + " \003(\0132<.google.cloud.discoveryengine.v1beta.SuggestionDenyListEntryB\003\340A\002B\010\n" + "\006source\"\222\001\n" + "\'ImportSuggestionDenyListEntriesResponse\022)\n\r" + "error_samples\030\001 \003(\0132\022.google.rpc.Status\022\036\n" @@ -368,60 +371,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n" + "\013update_time\030\002 \001(\0132\032.google.protobuf.Timestamp\"\250\004\n" + "\"ImportCompletionSuggestionsRequest\022m\n\r" - + "inline_source\030\002 \001(\0132T.google.cl" - + "oud.discoveryengine.v1beta.ImportCompletionSuggestionsRequest.InlineSourceH\000\022D\n\n" - + "gcs_source\030\003" - + " \001(\0132..google.cloud.discoveryengine.v1beta.GcsSourceH\000\022N\n" - + "\017bigquery_source\030\004" - + " \001(\01323.google.cloud.discoveryengine.v1beta.BigQuerySourceH\000\022@\n" + + "inline_source\030\002 \001(\0132T.google.cloud.discoveryengine.v1beta.I" + + "mportCompletionSuggestionsRequest.InlineSourceH\000\022D\n\n" + + "gcs_source\030\003 \001(\0132..google.cl" + + "oud.discoveryengine.v1beta.GcsSourceH\000\022N\n" + + "\017bigquery_source\030\004 \001(\01323.google.cloud.d" + + "iscoveryengine.v1beta.BigQuerySourceH\000\022@\n" + "\006parent\030\001 \001(\tB0\340A\002\372A*\n" + "(discoveryengine.googleapis.com/DataStore\022L\n" - + "\014error_config\030\005 \001(\01326.goo" - + "gle.cloud.discoveryengine.v1beta.ImportErrorConfig\032c\n" + + "\014error_config\030\005" + + " \001(\01326.google.cloud.discoveryengine.v1beta.ImportErrorConfig\032c\n" + "\014InlineSource\022S\n" - + "\013suggestions\030\001" - + " \003(\01329.google.cloud.discoveryengine.v1beta.CompletionSuggestionB\003\340A\002B\010\n" + + "\013suggestions\030\001 \003(\01329.google.cloud.disco" + + "veryengine.v1beta.CompletionSuggestionB\003\340A\002B\010\n" + "\006source\"\236\001\n" + "#ImportCompletionSuggestionsResponse\022)\n\r" + "error_samples\030\001 \003(\0132\022.google.rpc.Status\022L\n" - + "\014error_config\030\002 \001(\01326.google.clou" - + "d.discoveryengine.v1beta.ImportErrorConfig\"\265\001\n" + + "\014error_config\030\002 \001(\01326" + + ".google.cloud.discoveryengine.v1beta.ImportErrorConfig\"\265\001\n" + "#ImportCompletionSuggestionsMetadata\022/\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n" + "\013update_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\025\n\r" + "success_count\030\003 \001(\003\022\025\n\r" + "failure_count\030\004 \001(\003\"\227\004\n" + "\032ImportSampleQueriesRequest\022e\n\r" - + "inline_source\030\002 \001(\0132L.google.cloud.discoveryengine.v1beta.I" - + "mportSampleQueriesRequest.InlineSourceH\000\022D\n\n" - + "gcs_source\030\003" - + " \001(\0132..google.cloud.discoveryengine.v1beta.GcsSourceH\000\022N\n" - + "\017bigquery_source\030\004" - + " \001(\01323.google.cloud.discoveryengine.v1beta.BigQuerySourceH\000\022E\n" + + "inline_source\030\002 \001(\0132L.google.cloud.discoveryeng" + + "ine.v1beta.ImportSampleQueriesRequest.InlineSourceH\000\022D\n\n" + + "gcs_source\030\003 \001(\0132..googl" + + "e.cloud.discoveryengine.v1beta.GcsSourceH\000\022N\n" + + "\017bigquery_source\030\004 \001(\01323.google.clo" + + "ud.discoveryengine.v1beta.BigQuerySourceH\000\022E\n" + "\006parent\030\001 \001(\tB5\340A\002\372A/\n" + "-discoveryengine.googleapis.com/SampleQuerySet\022L\n" - + "\014error_config\030\005 " - + "\001(\01326.google.cloud.discoveryengine.v1beta.ImportErrorConfig\032]\n" + + "\014error_config\030\005" + + " \001(\01326.google.cloud.discoveryengine.v1beta.ImportErrorConfig\032]\n" + "\014InlineSource\022M\n" - + "\016sample_queries\030\001" - + " \003(\01320.google.cloud.discoveryengine.v1beta.SampleQueryB\003\340A\002B\010\n" + + "\016sample_queries\030\001 \003(\01320.google" + + ".cloud.discoveryengine.v1beta.SampleQueryB\003\340A\002B\010\n" + "\006source\"\226\001\n" + "\033ImportSampleQueriesResponse\022)\n\r" + "error_samples\030\001 \003(\0132\022.google.rpc.Status\022L\n" - + "\014error_config\030\002 \001(\01326.google.cloud.dis" - + "coveryengine.v1beta.ImportErrorConfig\"\302\001\n" + + "\014error_config\030\002 \001(\01326.goog" + + "le.cloud.discoveryengine.v1beta.ImportErrorConfig\"\302\001\n" + "\033ImportSampleQueriesMetadata\022/\n" + "\013create_time\030\001 \001(\0132\032.google.protobuf.Timestamp\022/\n" + "\013update_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022\025\n\r" + "success_count\030\003 \001(\003\022\025\n\r" + "failure_count\030\004 \001(\003\022\023\n" + "\013total_count\030\005 \001(\003B\230\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB\021" - + "ImportConfigProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryengi" - + "nepb;discoveryenginepb\242\002\017DISCOVERYENGINE" - + "\252\002#Google.Cloud.DiscoveryEngine.V1Beta\312\002" - + "#Google\\Cloud\\DiscoveryEngine\\V1beta\352\002&G" - + "oogle::Cloud::DiscoveryEngine::V1betab\006proto3" + + "\'com.google.cloud.discoveryengine.v1betaB\021ImportConfigProtoP\001ZQcloud.g" + + "oogle.com/go/discoveryengine/apiv1beta/d" + + "iscoveryenginepb;discoveryenginepb\242\002\017DIS" + + "COVERYENGINE\252\002#Google.Cloud.DiscoveryEng" + + "ine.V1Beta\312\002#Google\\Cloud\\DiscoveryEngin" + + "e\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -517,7 +520,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_FhirStoreSource_descriptor, new java.lang.String[] { - "FhirStore", "GcsStagingDir", "ResourceTypes", + "FhirStore", "GcsStagingDir", "ResourceTypes", "UpdateFromLatestPredefinedSchema", }); internal_static_google_cloud_discoveryengine_v1beta_CloudSqlSource_descriptor = getDescriptor().getMessageType(6); @@ -613,6 +616,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "AutoGenerateIds", "IdField", + "ForceRefreshContent", "Source", }); internal_static_google_cloud_discoveryengine_v1beta_ImportDocumentsRequest_InlineSource_descriptor = diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequest.java index 9e05fa99764d..2b4a4940e16e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequest.java @@ -110,6 +110,9 @@ public enum ReconciliationMode implements com.google.protobuf.ProtocolMessageEnu *
                  * Calculates diff and replaces the entire document dataset. Existing
                  * documents may be deleted if they are not present in the source location.
            +     * When using this mode, there won't be any downtime on the dataset
            +     * targeted. Any document that should remain unchanged or that should be
            +     * updated will continue serving while the operation is running.
                  * 
            * * FULL = 2; @@ -156,6 +159,9 @@ public enum ReconciliationMode implements com.google.protobuf.ProtocolMessageEnu *
                  * Calculates diff and replaces the entire document dataset. Existing
                  * documents may be deleted if they are not present in the source location.
            +     * When using this mode, there won't be any downtime on the dataset
            +     * targeted. Any document that should remain unchanged or that should be
            +     * updated will continue serving while the operation is running.
                  * 
            * * FULL = 2; @@ -2236,7 +2242,6 @@ public boolean getAutoGenerateIds() { * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * * [SpannerSource][google.cloud.discoveryengine.v1beta.SpannerSource]. * * [CloudSqlSource][google.cloud.discoveryengine.v1beta.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1beta.FirestoreSource]. * * [BigtableSource][google.cloud.discoveryengine.v1beta.BigtableSource]. * * @@ -2293,7 +2298,6 @@ public java.lang.String getIdField() { * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * * [SpannerSource][google.cloud.discoveryengine.v1beta.SpannerSource]. * * [CloudSqlSource][google.cloud.discoveryengine.v1beta.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1beta.FirestoreSource]. * * [BigtableSource][google.cloud.discoveryengine.v1beta.BigtableSource]. * * @@ -2314,6 +2318,29 @@ public com.google.protobuf.ByteString getIdFieldBytes() { } } + public static final int FORCE_REFRESH_CONTENT_FIELD_NUMBER = 16; + private boolean forceRefreshContent_ = false; + + /** + * + * + *
            +   * Optional. Whether to force refresh the unstructured content of the
            +   * documents.
            +   *
            +   * If set to `true`, the content part of the documents will be refreshed
            +   * regardless of the update status of the referencing content.
            +   * 
            + * + * bool force_refresh_content = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The forceRefreshContent. + */ + @java.lang.Override + public boolean getForceRefreshContent() { + return forceRefreshContent_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2377,6 +2404,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sourceCase_ == 15) { output.writeMessage(15, (com.google.cloud.discoveryengine.v1beta.BigtableSource) source_); } + if (forceRefreshContent_ != false) { + output.writeBool(16, forceRefreshContent_); + } getUnknownFields().writeTo(output); } @@ -2454,6 +2484,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 15, (com.google.cloud.discoveryengine.v1beta.BigtableSource) source_); } + if (forceRefreshContent_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, forceRefreshContent_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2482,6 +2515,7 @@ public boolean equals(final java.lang.Object obj) { } if (getAutoGenerateIds() != other.getAutoGenerateIds()) return false; if (!getIdField().equals(other.getIdField())) return false; + if (getForceRefreshContent() != other.getForceRefreshContent()) return false; if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 2: @@ -2541,6 +2575,8 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoGenerateIds()); hash = (37 * hash) + ID_FIELD_FIELD_NUMBER; hash = (53 * hash) + getIdField().hashCode(); + hash = (37 * hash) + FORCE_REFRESH_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForceRefreshContent()); switch (sourceCase_) { case 2: hash = (37 * hash) + INLINE_SOURCE_FIELD_NUMBER; @@ -2773,6 +2809,7 @@ public Builder clear() { } autoGenerateIds_ = false; idField_ = ""; + forceRefreshContent_ = false; sourceCase_ = 0; source_ = null; return this; @@ -2836,6 +2873,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00004000) != 0)) { result.idField_ = idField_; } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.forceRefreshContent_ = forceRefreshContent_; + } result.bitField0_ |= to_bitField0_; } @@ -2908,6 +2948,9 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ImportDocuments bitField0_ |= 0x00004000; onChanged(); } + if (other.getForceRefreshContent() != false) { + setForceRefreshContent(other.getForceRefreshContent()); + } switch (other.getSourceCase()) { case INLINE_SOURCE: { @@ -3086,6 +3129,12 @@ public Builder mergeFrom( sourceCase_ = 15; break; } // case 122 + case 128: + { + forceRefreshContent_ = input.readBool(); + bitField0_ |= 0x00008000; + break; + } // case 128 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5964,7 +6013,6 @@ public Builder clearAutoGenerateIds() { * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * * [SpannerSource][google.cloud.discoveryengine.v1beta.SpannerSource]. * * [CloudSqlSource][google.cloud.discoveryengine.v1beta.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1beta.FirestoreSource]. * * [BigtableSource][google.cloud.discoveryengine.v1beta.BigtableSource]. * * @@ -6020,7 +6068,6 @@ public java.lang.String getIdField() { * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * * [SpannerSource][google.cloud.discoveryengine.v1beta.SpannerSource]. * * [CloudSqlSource][google.cloud.discoveryengine.v1beta.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1beta.FirestoreSource]. * * [BigtableSource][google.cloud.discoveryengine.v1beta.BigtableSource]. * * @@ -6076,7 +6123,6 @@ public com.google.protobuf.ByteString getIdFieldBytes() { * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * * [SpannerSource][google.cloud.discoveryengine.v1beta.SpannerSource]. * * [CloudSqlSource][google.cloud.discoveryengine.v1beta.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1beta.FirestoreSource]. * * [BigtableSource][google.cloud.discoveryengine.v1beta.BigtableSource]. * * @@ -6131,7 +6177,6 @@ public Builder setIdField(java.lang.String value) { * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * * [SpannerSource][google.cloud.discoveryengine.v1beta.SpannerSource]. * * [CloudSqlSource][google.cloud.discoveryengine.v1beta.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1beta.FirestoreSource]. * * [BigtableSource][google.cloud.discoveryengine.v1beta.BigtableSource]. * * @@ -6182,7 +6227,6 @@ public Builder clearIdField() { * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * * [SpannerSource][google.cloud.discoveryengine.v1beta.SpannerSource]. * * [CloudSqlSource][google.cloud.discoveryengine.v1beta.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1beta.FirestoreSource]. * * [BigtableSource][google.cloud.discoveryengine.v1beta.BigtableSource]. * * @@ -6202,6 +6246,74 @@ public Builder setIdFieldBytes(com.google.protobuf.ByteString value) { return this; } + private boolean forceRefreshContent_; + + /** + * + * + *
            +     * Optional. Whether to force refresh the unstructured content of the
            +     * documents.
            +     *
            +     * If set to `true`, the content part of the documents will be refreshed
            +     * regardless of the update status of the referencing content.
            +     * 
            + * + * bool force_refresh_content = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The forceRefreshContent. + */ + @java.lang.Override + public boolean getForceRefreshContent() { + return forceRefreshContent_; + } + + /** + * + * + *
            +     * Optional. Whether to force refresh the unstructured content of the
            +     * documents.
            +     *
            +     * If set to `true`, the content part of the documents will be refreshed
            +     * regardless of the update status of the referencing content.
            +     * 
            + * + * bool force_refresh_content = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The forceRefreshContent to set. + * @return This builder for chaining. + */ + public Builder setForceRefreshContent(boolean value) { + + forceRefreshContent_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Whether to force refresh the unstructured content of the
            +     * documents.
            +     *
            +     * If set to `true`, the content part of the documents will be refreshed
            +     * regardless of the update status of the referencing content.
            +     * 
            + * + * bool force_refresh_content = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForceRefreshContent() { + bitField0_ = (bitField0_ & ~0x00008000); + forceRefreshContent_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportDocumentsRequest) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequestOrBuilder.java index c8c736d040af..63f273cbbe79 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportDocumentsRequestOrBuilder.java @@ -585,7 +585,6 @@ public interface ImportDocumentsRequestOrBuilder * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * * [SpannerSource][google.cloud.discoveryengine.v1beta.SpannerSource]. * * [CloudSqlSource][google.cloud.discoveryengine.v1beta.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1beta.FirestoreSource]. * * [BigtableSource][google.cloud.discoveryengine.v1beta.BigtableSource]. * * @@ -631,7 +630,6 @@ public interface ImportDocumentsRequestOrBuilder * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * * [SpannerSource][google.cloud.discoveryengine.v1beta.SpannerSource]. * * [CloudSqlSource][google.cloud.discoveryengine.v1beta.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1beta.FirestoreSource]. * * [BigtableSource][google.cloud.discoveryengine.v1beta.BigtableSource]. * * @@ -641,5 +639,22 @@ public interface ImportDocumentsRequestOrBuilder */ com.google.protobuf.ByteString getIdFieldBytes(); + /** + * + * + *
            +   * Optional. Whether to force refresh the unstructured content of the
            +   * documents.
            +   *
            +   * If set to `true`, the content part of the documents will be refreshed
            +   * regardless of the update status of the referencing content.
            +   * 
            + * + * bool force_refresh_content = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The forceRefreshContent. + */ + boolean getForceRefreshContent(); + com.google.cloud.discoveryengine.v1beta.ImportDocumentsRequest.SourceCase getSourceCase(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportIdentityMappingsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportIdentityMappingsRequest.java new file mode 100644 index 000000000000..547f9c89c119 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportIdentityMappingsRequest.java @@ -0,0 +1,2185 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for
            + * [IdentityMappingStoreService.ImportIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ImportIdentityMappings]
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest} + */ +@com.google.protobuf.Generated +public final class ImportIdentityMappingsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest) + ImportIdentityMappingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ImportIdentityMappingsRequest"); + } + + // Use ImportIdentityMappingsRequest.newBuilder() to construct. + private ImportIdentityMappingsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ImportIdentityMappingsRequest() { + identityMappingStore_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.class, + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.Builder.class); + } + + public interface InlineSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * A maximum of 10000 entries can be imported at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + java.util.List + getIdentityMappingEntriesList(); + + /** + * + * + *
            +     * A maximum of 10000 entries can be imported at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry getIdentityMappingEntries( + int index); + + /** + * + * + *
            +     * A maximum of 10000 entries can be imported at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + int getIdentityMappingEntriesCount(); + + /** + * + * + *
            +     * A maximum of 10000 entries can be imported at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + java.util.List + getIdentityMappingEntriesOrBuilderList(); + + /** + * + * + *
            +     * A maximum of 10000 entries can be imported at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder + getIdentityMappingEntriesOrBuilder(int index); + } + + /** + * + * + *
            +   * The inline source to import identity mapping entries from.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource} + */ + public static final class InlineSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource) + InlineSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InlineSource"); + } + + // Use InlineSource.newBuilder() to construct. + private InlineSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InlineSource() { + identityMappingEntries_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_InlineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + .class, + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + .Builder.class); + } + + public static final int IDENTITY_MAPPING_ENTRIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + identityMappingEntries_; + + /** + * + * + *
            +     * A maximum of 10000 entries can be imported at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + @java.lang.Override + public java.util.List + getIdentityMappingEntriesList() { + return identityMappingEntries_; + } + + /** + * + * + *
            +     * A maximum of 10000 entries can be imported at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder> + getIdentityMappingEntriesOrBuilderList() { + return identityMappingEntries_; + } + + /** + * + * + *
            +     * A maximum of 10000 entries can be imported at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + @java.lang.Override + public int getIdentityMappingEntriesCount() { + return identityMappingEntries_.size(); + } + + /** + * + * + *
            +     * A maximum of 10000 entries can be imported at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry getIdentityMappingEntries( + int index) { + return identityMappingEntries_.get(index); + } + + /** + * + * + *
            +     * A maximum of 10000 entries can be imported at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder + getIdentityMappingEntriesOrBuilder(int index) { + return identityMappingEntries_.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 < identityMappingEntries_.size(); i++) { + output.writeMessage(1, identityMappingEntries_.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 < identityMappingEntries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, identityMappingEntries_.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.v1beta.ImportIdentityMappingsRequest.InlineSource)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource other = + (com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource) obj; + + if (!getIdentityMappingEntriesList().equals(other.getIdentityMappingEntriesList())) + 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 (getIdentityMappingEntriesCount() > 0) { + hash = (37 * hash) + IDENTITY_MAPPING_ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getIdentityMappingEntriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.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.v1beta.ImportIdentityMappingsRequest.InlineSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.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.v1beta.ImportIdentityMappingsRequest.InlineSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.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.v1beta.ImportIdentityMappingsRequest.InlineSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * The inline source to import identity mapping entries from.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource) + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest + .InlineSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_InlineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + .class, + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (identityMappingEntriesBuilder_ == null) { + identityMappingEntries_ = java.util.Collections.emptyList(); + } else { + identityMappingEntries_ = null; + identityMappingEntriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_InlineSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + build() { + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + buildPartial() { + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource result = + new com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + result) { + if (identityMappingEntriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + identityMappingEntries_ = + java.util.Collections.unmodifiableList(identityMappingEntries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.identityMappingEntries_ = identityMappingEntries_; + } else { + result.identityMappingEntries_ = identityMappingEntriesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + .getDefaultInstance()) return this; + if (identityMappingEntriesBuilder_ == null) { + if (!other.identityMappingEntries_.isEmpty()) { + if (identityMappingEntries_.isEmpty()) { + identityMappingEntries_ = other.identityMappingEntries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.addAll(other.identityMappingEntries_); + } + onChanged(); + } + } else { + if (!other.identityMappingEntries_.isEmpty()) { + if (identityMappingEntriesBuilder_.isEmpty()) { + identityMappingEntriesBuilder_.dispose(); + identityMappingEntriesBuilder_ = null; + identityMappingEntries_ = other.identityMappingEntries_; + bitField0_ = (bitField0_ & ~0x00000001); + identityMappingEntriesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetIdentityMappingEntriesFieldBuilder() + : null; + } else { + identityMappingEntriesBuilder_.addAllMessages(other.identityMappingEntries_); + } + } + } + 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.v1beta.IdentityMappingEntry m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.parser(), + extensionRegistry); + if (identityMappingEntriesBuilder_ == null) { + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.add(m); + } else { + identityMappingEntriesBuilder_.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 + identityMappingEntries_ = java.util.Collections.emptyList(); + + private void ensureIdentityMappingEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + identityMappingEntries_ = + new java.util.ArrayList( + identityMappingEntries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder> + identityMappingEntriesBuilder_; + + /** + * + * + *
            +       * A maximum of 10000 entries can be imported at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public java.util.List + getIdentityMappingEntriesList() { + if (identityMappingEntriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(identityMappingEntries_); + } else { + return identityMappingEntriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be imported at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public int getIdentityMappingEntriesCount() { + if (identityMappingEntriesBuilder_ == null) { + return identityMappingEntries_.size(); + } else { + return identityMappingEntriesBuilder_.getCount(); + } + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be imported at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry getIdentityMappingEntries( + int index) { + if (identityMappingEntriesBuilder_ == null) { + return identityMappingEntries_.get(index); + } else { + return identityMappingEntriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be imported at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder setIdentityMappingEntries( + int index, com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry value) { + if (identityMappingEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.set(index, value); + onChanged(); + } else { + identityMappingEntriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be imported at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder setIdentityMappingEntries( + int index, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder builderForValue) { + if (identityMappingEntriesBuilder_ == null) { + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.set(index, builderForValue.build()); + onChanged(); + } else { + identityMappingEntriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be imported at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder addIdentityMappingEntries( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry value) { + if (identityMappingEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.add(value); + onChanged(); + } else { + identityMappingEntriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be imported at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder addIdentityMappingEntries( + int index, com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry value) { + if (identityMappingEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.add(index, value); + onChanged(); + } else { + identityMappingEntriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be imported at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder addIdentityMappingEntries( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder builderForValue) { + if (identityMappingEntriesBuilder_ == null) { + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.add(builderForValue.build()); + onChanged(); + } else { + identityMappingEntriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be imported at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder addIdentityMappingEntries( + int index, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder builderForValue) { + if (identityMappingEntriesBuilder_ == null) { + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.add(index, builderForValue.build()); + onChanged(); + } else { + identityMappingEntriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be imported at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder addAllIdentityMappingEntries( + java.lang.Iterable + values) { + if (identityMappingEntriesBuilder_ == null) { + ensureIdentityMappingEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, identityMappingEntries_); + onChanged(); + } else { + identityMappingEntriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be imported at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder clearIdentityMappingEntries() { + if (identityMappingEntriesBuilder_ == null) { + identityMappingEntries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + identityMappingEntriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be imported at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder removeIdentityMappingEntries(int index) { + if (identityMappingEntriesBuilder_ == null) { + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.remove(index); + onChanged(); + } else { + identityMappingEntriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be imported at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder + getIdentityMappingEntriesBuilder(int index) { + return internalGetIdentityMappingEntriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be imported at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder + getIdentityMappingEntriesOrBuilder(int index) { + if (identityMappingEntriesBuilder_ == null) { + return identityMappingEntries_.get(index); + } else { + return identityMappingEntriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be imported at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder> + getIdentityMappingEntriesOrBuilderList() { + if (identityMappingEntriesBuilder_ != null) { + return identityMappingEntriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(identityMappingEntries_); + } + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be imported at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder + addIdentityMappingEntriesBuilder() { + return internalGetIdentityMappingEntriesFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.getDefaultInstance()); + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be imported at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder + addIdentityMappingEntriesBuilder(int index) { + return internalGetIdentityMappingEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.getDefaultInstance()); + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be imported at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public java.util.List + getIdentityMappingEntriesBuilderList() { + return internalGetIdentityMappingEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder> + internalGetIdentityMappingEntriesFieldBuilder() { + if (identityMappingEntriesBuilder_ == null) { + identityMappingEntriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder>( + identityMappingEntries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + identityMappingEntries_ = null; + } + return identityMappingEntriesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource) + private static final com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest + .InlineSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource(); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.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.v1beta.ImportIdentityMappingsRequest.InlineSource + 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(2), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: + return INLINE_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 = 2; + + /** + * + * + *
            +   * The inline source to import identity mapping entries from.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 2; + } + + /** + * + * + *
            +   * The inline source to import identity mapping entries from.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + getInlineSource() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + .getDefaultInstance(); + } + + /** + * + * + *
            +   * The inline source to import identity mapping entries from.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource inline_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSourceOrBuilder + getInlineSourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + .getDefaultInstance(); + } + + public static final int IDENTITY_MAPPING_STORE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object identityMappingStore_ = ""; + + /** + * + * + *
            +   * Required. The name of the Identity Mapping Store to import Identity Mapping
            +   * Entries to. Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +   * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The identityMappingStore. + */ + @java.lang.Override + public java.lang.String getIdentityMappingStore() { + java.lang.Object ref = identityMappingStore_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityMappingStore_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The name of the Identity Mapping Store to import Identity Mapping
            +   * Entries to. Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +   * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for identityMappingStore. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentityMappingStoreBytes() { + java.lang.Object ref = identityMappingStore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityMappingStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identityMappingStore_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, identityMappingStore_); + } + if (sourceCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource) + source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identityMappingStore_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, identityMappingStore_); + } + if (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource) + 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.v1beta.ImportIdentityMappingsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest other = + (com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest) obj; + + if (!getIdentityMappingStore().equals(other.getIdentityMappingStore())) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getInlineSource().equals(other.getInlineSource())) 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) + IDENTITY_MAPPING_STORE_FIELD_NUMBER; + hash = (53 * hash) + getIdentityMappingStore().hashCode(); + switch (sourceCase_) { + case 2: + hash = (37 * hash) + INLINE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getInlineSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest 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.v1beta.ImportIdentityMappingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest parseFrom( + 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.v1beta.ImportIdentityMappingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [IdentityMappingStoreService.ImportIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ImportIdentityMappings]
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest) + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.class, + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (inlineSourceBuilder_ != null) { + inlineSourceBuilder_.clear(); + } + identityMappingStore_ = ""; + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest build() { + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest result = + new com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.identityMappingStore_ = identityMappingStore_; + } + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 2 && inlineSourceBuilder_ != null) { + result.source_ = inlineSourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest + .getDefaultInstance()) return this; + if (!other.getIdentityMappingStore().isEmpty()) { + identityMappingStore_ = other.identityMappingStore_; + bitField0_ |= 0x00000002; + onChanged(); + } + switch (other.getSourceCase()) { + case INLINE_SOURCE: + { + mergeInlineSource(other.getInlineSource()); + 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: + { + identityMappingStore_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetInlineSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int 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.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource, + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + .Builder, + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest + .InlineSourceOrBuilder> + inlineSourceBuilder_; + + /** + * + * + *
            +     * The inline source to import identity mapping entries from.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 2; + } + + /** + * + * + *
            +     * The inline source to import identity mapping entries from.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + getInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest + .InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + .getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return inlineSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * The inline source to import identity mapping entries from.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource inline_source = 2; + * + */ + public Builder setInlineSource( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource value) { + if (inlineSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + inlineSourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
            +     * The inline source to import identity mapping entries from.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource inline_source = 2; + * + */ + public Builder setInlineSource( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource.Builder + builderForValue) { + if (inlineSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + inlineSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
            +     * The inline source to import identity mapping entries from.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource inline_source = 2; + * + */ + public Builder mergeInlineSource( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource value) { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2 + && source_ + != com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest + .InlineSource.getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + .newBuilder( + (com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest + .InlineSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + inlineSourceBuilder_.mergeFrom(value); + } else { + inlineSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
            +     * The inline source to import identity mapping entries from.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource inline_source = 2; + * + */ + public Builder clearInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + inlineSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The inline source to import identity mapping entries from.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource inline_source = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + .Builder + getInlineSourceBuilder() { + return internalGetInlineSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * The inline source to import identity mapping entries from.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource inline_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest + .InlineSourceOrBuilder + getInlineSourceOrBuilder() { + if ((sourceCase_ == 2) && (inlineSourceBuilder_ != null)) { + return inlineSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest + .InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * The inline source to import identity mapping entries from.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource inline_source = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource, + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + .Builder, + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest + .InlineSourceOrBuilder> + internalGetInlineSourceFieldBuilder() { + if (inlineSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + .getDefaultInstance(); + } + inlineSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource, + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + .Builder, + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest + .InlineSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return inlineSourceBuilder_; + } + + private java.lang.Object identityMappingStore_ = ""; + + /** + * + * + *
            +     * Required. The name of the Identity Mapping Store to import Identity Mapping
            +     * Entries to. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +     * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The identityMappingStore. + */ + public java.lang.String getIdentityMappingStore() { + java.lang.Object ref = identityMappingStore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityMappingStore_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the Identity Mapping Store to import Identity Mapping
            +     * Entries to. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +     * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for identityMappingStore. + */ + public com.google.protobuf.ByteString getIdentityMappingStoreBytes() { + java.lang.Object ref = identityMappingStore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityMappingStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the Identity Mapping Store to import Identity Mapping
            +     * Entries to. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +     * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The identityMappingStore to set. + * @return This builder for chaining. + */ + public Builder setIdentityMappingStore(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + identityMappingStore_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the Identity Mapping Store to import Identity Mapping
            +     * Entries to. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +     * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearIdentityMappingStore() { + identityMappingStore_ = getDefaultInstance().getIdentityMappingStore(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the Identity Mapping Store to import Identity Mapping
            +     * Entries to. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +     * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for identityMappingStore to set. + * @return This builder for chaining. + */ + public Builder setIdentityMappingStoreBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + identityMappingStore_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest) + private static final com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportIdentityMappingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.ImportIdentityMappingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportIdentityMappingsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportIdentityMappingsRequestOrBuilder.java new file mode 100644 index 000000000000..b079e652e210 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportIdentityMappingsRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface ImportIdentityMappingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The inline source to import identity mapping entries from.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + boolean hasInlineSource(); + + /** + * + * + *
            +   * The inline source to import identity mapping entries from.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource + getInlineSource(); + + /** + * + * + *
            +   * The inline source to import identity mapping entries from.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSource inline_source = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.InlineSourceOrBuilder + getInlineSourceOrBuilder(); + + /** + * + * + *
            +   * Required. The name of the Identity Mapping Store to import Identity Mapping
            +   * Entries to. Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +   * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The identityMappingStore. + */ + java.lang.String getIdentityMappingStore(); + + /** + * + * + *
            +   * Required. The name of the Identity Mapping Store to import Identity Mapping
            +   * Entries to. Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +   * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for identityMappingStore. + */ + com.google.protobuf.ByteString getIdentityMappingStoreBytes(); + + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest.SourceCase getSourceCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportIdentityMappingsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportIdentityMappingsResponse.java new file mode 100644 index 000000000000..527c9276fd89 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportIdentityMappingsResponse.java @@ -0,0 +1,925 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Response message for
            + * [IdentityMappingStoreService.ImportIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ImportIdentityMappings]
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse} + */ +@com.google.protobuf.Generated +public final class ImportIdentityMappingsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse) + ImportIdentityMappingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ImportIdentityMappingsResponse"); + } + + // Use ImportIdentityMappingsResponse.newBuilder() to construct. + private ImportIdentityMappingsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ImportIdentityMappingsResponse() { + errorSamples_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse.class, + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse.Builder.class); + } + + public static final int ERROR_SAMPLES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List errorSamples_; + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public java.util.List getErrorSamplesList() { + return errorSamples_; + } + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public java.util.List getErrorSamplesOrBuilderList() { + return errorSamples_; + } + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public int getErrorSamplesCount() { + return errorSamples_.size(); + } + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public com.google.rpc.Status getErrorSamples(int index) { + return errorSamples_.get(index); + } + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + return errorSamples_.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 < errorSamples_.size(); i++) { + output.writeMessage(1, errorSamples_.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 < errorSamples_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, errorSamples_.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.v1beta.ImportIdentityMappingsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse other = + (com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse) obj; + + if (!getErrorSamplesList().equals(other.getErrorSamplesList())) 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 (getErrorSamplesCount() > 0) { + hash = (37 * hash) + ERROR_SAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getErrorSamplesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse 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.v1beta.ImportIdentityMappingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse parseFrom( + 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.v1beta.ImportIdentityMappingsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response message for
            +   * [IdentityMappingStoreService.ImportIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ImportIdentityMappings]
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse) + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse.class, + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + } else { + errorSamples_ = null; + errorSamplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ImportIdentityMappingsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse build() { + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse buildPartial() { + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse result = + new com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse result) { + if (errorSamplesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + errorSamples_ = java.util.Collections.unmodifiableList(errorSamples_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.errorSamples_ = errorSamples_; + } else { + result.errorSamples_ = errorSamplesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse + .getDefaultInstance()) return this; + if (errorSamplesBuilder_ == null) { + if (!other.errorSamples_.isEmpty()) { + if (errorSamples_.isEmpty()) { + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureErrorSamplesIsMutable(); + errorSamples_.addAll(other.errorSamples_); + } + onChanged(); + } + } else { + if (!other.errorSamples_.isEmpty()) { + if (errorSamplesBuilder_.isEmpty()) { + errorSamplesBuilder_.dispose(); + errorSamplesBuilder_ = null; + errorSamples_ = other.errorSamples_; + bitField0_ = (bitField0_ & ~0x00000001); + errorSamplesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetErrorSamplesFieldBuilder() + : null; + } else { + errorSamplesBuilder_.addAllMessages(other.errorSamples_); + } + } + } + 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.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(m); + } else { + errorSamplesBuilder_.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 errorSamples_ = java.util.Collections.emptyList(); + + private void ensureErrorSamplesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + errorSamples_ = new java.util.ArrayList(errorSamples_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorSamplesBuilder_; + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesList() { + if (errorSamplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(errorSamples_); + } else { + return errorSamplesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + public int getErrorSamplesCount() { + if (errorSamplesBuilder_ == null) { + return errorSamples_.size(); + } else { + return errorSamplesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status getErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder setErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, value); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder setErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.set(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(int index, com.google.rpc.Status value) { + if (errorSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, value); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addErrorSamples(int index, com.google.rpc.Status.Builder builderForValue) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.add(index, builderForValue.build()); + onChanged(); + } else { + errorSamplesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder addAllErrorSamples(java.lang.Iterable values) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorSamples_); + onChanged(); + } else { + errorSamplesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder clearErrorSamples() { + if (errorSamplesBuilder_ == null) { + errorSamples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + errorSamplesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + public Builder removeErrorSamples(int index) { + if (errorSamplesBuilder_ == null) { + ensureErrorSamplesIsMutable(); + errorSamples_.remove(index); + onChanged(); + } else { + errorSamplesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder getErrorSamplesBuilder(int index) { + return internalGetErrorSamplesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index) { + if (errorSamplesBuilder_ == null) { + return errorSamples_.get(index); + } else { + return errorSamplesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesOrBuilderList() { + if (errorSamplesBuilder_ != null) { + return errorSamplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errorSamples_); + } + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder() { + return internalGetErrorSamplesFieldBuilder() + .addBuilder(com.google.rpc.Status.getDefaultInstance()); + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + public com.google.rpc.Status.Builder addErrorSamplesBuilder(int index) { + return internalGetErrorSamplesFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + } + + /** + * + * + *
            +     * A sample of errors encountered while processing the request.
            +     * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + public java.util.List getErrorSamplesBuilderList() { + return internalGetErrorSamplesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + internalGetErrorSamplesFieldBuilder() { + if (errorSamplesBuilder_ == null) { + errorSamplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + errorSamples_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + errorSamples_ = null; + } + return errorSamplesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse) + private static final com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportIdentityMappingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.ImportIdentityMappingsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportIdentityMappingsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportIdentityMappingsResponseOrBuilder.java new file mode 100644 index 000000000000..9866f4f30985 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportIdentityMappingsResponseOrBuilder.java @@ -0,0 +1,83 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface ImportIdentityMappingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + java.util.List getErrorSamplesList(); + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + com.google.rpc.Status getErrorSamples(int index); + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + int getErrorSamplesCount(); + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + java.util.List getErrorSamplesOrBuilderList(); + + /** + * + * + *
            +   * A sample of errors encountered while processing the request.
            +   * 
            + * + * repeated .google.rpc.Status error_samples = 1; + */ + com.google.rpc.StatusOrBuilder getErrorSamplesOrBuilder(int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadata.java index a336fa6dc697..3e13cc90ec3a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadata.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadata.java @@ -126,11 +126,12 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
            -   * Operation last update time. If the operation is done, this is also the
            -   * finish time.
            +   * Output only. Operation last update time. If the operation is done, this is
            +   * also the finish time.
                * 
            * - * .google.protobuf.Timestamp update_time = 2; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the updateTime field is set. */ @@ -143,11 +144,12 @@ public boolean hasUpdateTime() { * * *
            -   * Operation last update time. If the operation is done, this is also the
            -   * finish time.
            +   * Output only. Operation last update time. If the operation is done, this is
            +   * also the finish time.
                * 
            * - * .google.protobuf.Timestamp update_time = 2; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The updateTime. */ @@ -160,11 +162,12 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * *
            -   * Operation last update time. If the operation is done, this is also the
            -   * finish time.
            +   * Output only. Operation last update time. If the operation is done, this is
            +   * also the finish time.
                * 
            * - * .google.protobuf.Timestamp update_time = 2; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { @@ -828,11 +831,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
            -     * Operation last update time. If the operation is done, this is also the
            -     * finish time.
            +     * Output only. Operation last update time. If the operation is done, this is
            +     * also the finish time.
                  * 
            * - * .google.protobuf.Timestamp update_time = 2; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the updateTime field is set. */ @@ -844,11 +849,13 @@ public boolean hasUpdateTime() { * * *
            -     * Operation last update time. If the operation is done, this is also the
            -     * finish time.
            +     * Output only. Operation last update time. If the operation is done, this is
            +     * also the finish time.
                  * 
            * - * .google.protobuf.Timestamp update_time = 2; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The updateTime. */ @@ -866,11 +873,13 @@ public com.google.protobuf.Timestamp getUpdateTime() { * * *
            -     * Operation last update time. If the operation is done, this is also the
            -     * finish time.
            +     * Output only. Operation last update time. If the operation is done, this is
            +     * also the finish time.
                  * 
            * - * .google.protobuf.Timestamp update_time = 2; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -890,11 +899,13 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { * * *
            -     * Operation last update time. If the operation is done, this is also the
            -     * finish time.
            +     * Output only. Operation last update time. If the operation is done, this is
            +     * also the finish time.
                  * 
            * - * .google.protobuf.Timestamp update_time = 2; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { @@ -911,11 +922,13 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
            -     * Operation last update time. If the operation is done, this is also the
            -     * finish time.
            +     * Output only. Operation last update time. If the operation is done, this is
            +     * also the finish time.
                  * 
            * - * .google.protobuf.Timestamp update_time = 2; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { @@ -940,11 +953,13 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * * *
            -     * Operation last update time. If the operation is done, this is also the
            -     * finish time.
            +     * Output only. Operation last update time. If the operation is done, this is
            +     * also the finish time.
                  * 
            * - * .google.protobuf.Timestamp update_time = 2; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearUpdateTime() { bitField0_ = (bitField0_ & ~0x00000002); @@ -961,11 +976,13 @@ public Builder clearUpdateTime() { * * *
            -     * Operation last update time. If the operation is done, this is also the
            -     * finish time.
            +     * Output only. Operation last update time. If the operation is done, this is
            +     * also the finish time.
                  * 
            * - * .google.protobuf.Timestamp update_time = 2; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00000002; @@ -977,11 +994,13 @@ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { * * *
            -     * Operation last update time. If the operation is done, this is also the
            -     * finish time.
            +     * Output only. Operation last update time. If the operation is done, this is
            +     * also the finish time.
                  * 
            * - * .google.protobuf.Timestamp update_time = 2; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { @@ -997,11 +1016,13 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * * *
            -     * Operation last update time. If the operation is done, this is also the
            -     * finish time.
            +     * Output only. Operation last update time. If the operation is done, this is
            +     * also the finish time.
                  * 
            * - * .google.protobuf.Timestamp update_time = 2; + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadataOrBuilder.java index dcd16524a817..d285e2ca3bc4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadataOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ImportUserEventsMetadataOrBuilder.java @@ -67,11 +67,12 @@ public interface ImportUserEventsMetadataOrBuilder * * *
            -   * Operation last update time. If the operation is done, this is also the
            -   * finish time.
            +   * Output only. Operation last update time. If the operation is done, this is
            +   * also the finish time.
                * 
            * - * .google.protobuf.Timestamp update_time = 2; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the updateTime field is set. */ @@ -81,11 +82,12 @@ public interface ImportUserEventsMetadataOrBuilder * * *
            -   * Operation last update time. If the operation is done, this is also the
            -   * finish time.
            +   * Output only. Operation last update time. If the operation is done, this is
            +   * also the finish time.
                * 
            * - * .google.protobuf.Timestamp update_time = 2; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The updateTime. */ @@ -95,11 +97,12 @@ public interface ImportUserEventsMetadataOrBuilder * * *
            -   * Operation last update time. If the operation is done, this is also the
            -   * finish time.
            +   * Output only. Operation last update time. If the operation is done, this is
            +   * also the finish time.
                * 
            * - * .google.protobuf.Timestamp update_time = 2; + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfig.java new file mode 100644 index 000000000000..e8f58e3f0219 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfig.java @@ -0,0 +1,2766 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Information about users' licenses.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.LicenseConfig} + */ +@com.google.protobuf.Generated +public final class LicenseConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.LicenseConfig) + LicenseConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "LicenseConfig"); + } + + // Use LicenseConfig.newBuilder() to construct. + private LicenseConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LicenseConfig() { + name_ = ""; + subscriptionTier_ = 0; + state_ = 0; + subscriptionTerm_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_LicenseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_LicenseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.LicenseConfig.class, + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder.class); + } + + /** + * + * + *
            +   * License config state enumeration.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.LicenseConfig.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Default value. The license config does not exist.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
            +     * The license config is effective and being used.
            +     * 
            + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
            +     * The license config has expired.
            +     * 
            + * + * EXPIRED = 2; + */ + EXPIRED(2), + /** + * + * + *
            +     * The license config has not started yet, and its start date is in the
            +     * future.
            +     * 
            + * + * NOT_STARTED = 3; + */ + NOT_STARTED(3), + /** + * + * + *
            +     * This is when a sub license config has returned all its seats back to
            +     * BillingAccountLicenseConfig that it belongs to.
            +     * Similar to EXPIRED.
            +     * 
            + * + * WITHDRAWN = 4; + */ + WITHDRAWN(4), + /** + * + * + *
            +     * The license config is terminated earlier than the expiration date and it
            +     * is deactivating. The customer will still have access in this state. It
            +     * will be converted to EXPIRED after the deactivating period ends (14 days)
            +     * or when the end date is reached, whichever comes first.
            +     * 
            + * + * DEACTIVATING = 5; + */ + DEACTIVATING(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
            +     * Default value. The license config does not exist.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * The license config is effective and being used.
            +     * 
            + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
            +     * The license config has expired.
            +     * 
            + * + * EXPIRED = 2; + */ + public static final int EXPIRED_VALUE = 2; + + /** + * + * + *
            +     * The license config has not started yet, and its start date is in the
            +     * future.
            +     * 
            + * + * NOT_STARTED = 3; + */ + public static final int NOT_STARTED_VALUE = 3; + + /** + * + * + *
            +     * This is when a sub license config has returned all its seats back to
            +     * BillingAccountLicenseConfig that it belongs to.
            +     * Similar to EXPIRED.
            +     * 
            + * + * WITHDRAWN = 4; + */ + public static final int WITHDRAWN_VALUE = 4; + + /** + * + * + *
            +     * The license config is terminated earlier than the expiration date and it
            +     * is deactivating. The customer will still have access in this state. It
            +     * will be converted to EXPIRED after the deactivating period ends (14 days)
            +     * or when the end date is reached, whichever comes first.
            +     * 
            + * + * DEACTIVATING = 5; + */ + public static final int DEACTIVATING_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return EXPIRED; + case 3: + return NOT_STARTED; + case 4: + return WITHDRAWN; + case 5: + return DEACTIVATING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.LicenseConfig.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Immutable. Identifier. The fully qualified resource name of the license
            +   * config. Format:
            +   * `projects/{project}/locations/{location}/licenseConfigs/{license_config}`
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.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; + } + } + + /** + * + * + *
            +   * Immutable. Identifier. The fully qualified resource name of the license
            +   * config. Format:
            +   * `projects/{project}/locations/{location}/licenseConfigs/{license_config}`
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.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 LICENSE_COUNT_FIELD_NUMBER = 2; + private long licenseCount_ = 0L; + + /** + * + * + *
            +   * Required. Number of licenses purchased.
            +   * 
            + * + * int64 license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The licenseCount. + */ + @java.lang.Override + public long getLicenseCount() { + return licenseCount_; + } + + public static final int SUBSCRIPTION_TIER_FIELD_NUMBER = 3; + private int subscriptionTier_ = 0; + + /** + * + * + *
            +   * Required. Subscription tier information for the license config.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for subscriptionTier. + */ + @java.lang.Override + public int getSubscriptionTierValue() { + return subscriptionTier_; + } + + /** + * + * + *
            +   * Required. Subscription tier information for the license config.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subscriptionTier. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SubscriptionTier getSubscriptionTier() { + com.google.cloud.discoveryengine.v1beta.SubscriptionTier result = + com.google.cloud.discoveryengine.v1beta.SubscriptionTier.forNumber(subscriptionTier_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SubscriptionTier.UNRECOGNIZED + : result; + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
            +   * Output only. The state of the license config.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +   * Output only. The state of the license config.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfig.State getState() { + com.google.cloud.discoveryengine.v1beta.LicenseConfig.State result = + com.google.cloud.discoveryengine.v1beta.LicenseConfig.State.forNumber(state_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.LicenseConfig.State.UNRECOGNIZED + : result; + } + + public static final int AUTO_RENEW_FIELD_NUMBER = 5; + private boolean autoRenew_ = false; + + /** + * + * + *
            +   * Optional. Whether the license config should be auto renewed when it reaches
            +   * the end date.
            +   * 
            + * + * bool auto_renew = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoRenew. + */ + @java.lang.Override + public boolean getAutoRenew() { + return autoRenew_; + } + + public static final int START_DATE_FIELD_NUMBER = 6; + private com.google.type.Date startDate_; + + /** + * + * + *
            +   * Required. The start date.
            +   * 
            + * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the startDate field is set. + */ + @java.lang.Override + public boolean hasStartDate() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The start date.
            +   * 
            + * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The startDate. + */ + @java.lang.Override + public com.google.type.Date getStartDate() { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + + /** + * + * + *
            +   * Required. The start date.
            +   * 
            + * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + + public static final int END_DATE_FIELD_NUMBER = 7; + private com.google.type.Date endDate_; + + /** + * + * + *
            +   * Optional. The planed end date.
            +   * 
            + * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the endDate field is set. + */ + @java.lang.Override + public boolean hasEndDate() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. The planed end date.
            +   * 
            + * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The endDate. + */ + @java.lang.Override + public com.google.type.Date getEndDate() { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + + /** + * + * + *
            +   * Optional. The planed end date.
            +   * 
            + * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + + public static final int SUBSCRIPTION_TERM_FIELD_NUMBER = 8; + private int subscriptionTerm_ = 0; + + /** + * + * + *
            +   * Required. Subscription term.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for subscriptionTerm. + */ + @java.lang.Override + public int getSubscriptionTermValue() { + return subscriptionTerm_; + } + + /** + * + * + *
            +   * Required. Subscription term.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subscriptionTerm. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SubscriptionTerm getSubscriptionTerm() { + com.google.cloud.discoveryengine.v1beta.SubscriptionTerm result = + com.google.cloud.discoveryengine.v1beta.SubscriptionTerm.forNumber(subscriptionTerm_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SubscriptionTerm.UNRECOGNIZED + : result; + } + + public static final int FREE_TRIAL_FIELD_NUMBER = 9; + private boolean freeTrial_ = false; + + /** + * + * + *
            +   * Optional. Whether the license config is for free trial.
            +   * 
            + * + * bool free_trial = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The freeTrial. + */ + @java.lang.Override + public boolean getFreeTrial() { + return freeTrial_; + } + + public static final int GEMINI_BUNDLE_FIELD_NUMBER = 11; + private boolean geminiBundle_ = false; + + /** + * + * + *
            +   * Output only. Whether the license config is for Gemini bundle.
            +   * 
            + * + * bool gemini_bundle = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The geminiBundle. + */ + @java.lang.Override + public boolean getGeminiBundle() { + return geminiBundle_; + } + + public static final int EARLY_TERMINATED_FIELD_NUMBER = 12; + private boolean earlyTerminated_ = false; + + /** + * + * + *
            +   * Output only. Indication of whether the subscription is terminated earlier
            +   * than the expiration date. This is usually terminated by pipeline once the
            +   * subscription gets terminated from subsv3.
            +   * 
            + * + * bool early_terminated = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The earlyTerminated. + */ + @java.lang.Override + public boolean getEarlyTerminated() { + return earlyTerminated_; + } + + public static final int EARLY_TERMINATION_DATE_FIELD_NUMBER = 13; + private com.google.type.Date earlyTerminationDate_; + + /** + * + * + *
            +   * Output only. The date when the subscription is terminated earlier than the
            +   * expiration date.
            +   * 
            + * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the earlyTerminationDate field is set. + */ + @java.lang.Override + public boolean hasEarlyTerminationDate() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Output only. The date when the subscription is terminated earlier than the
            +   * expiration date.
            +   * 
            + * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The earlyTerminationDate. + */ + @java.lang.Override + public com.google.type.Date getEarlyTerminationDate() { + return earlyTerminationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : earlyTerminationDate_; + } + + /** + * + * + *
            +   * Output only. The date when the subscription is terminated earlier than the
            +   * expiration date.
            +   * 
            + * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.type.DateOrBuilder getEarlyTerminationDateOrBuilder() { + return earlyTerminationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : earlyTerminationDate_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (licenseCount_ != 0L) { + output.writeInt64(2, licenseCount_); + } + if (subscriptionTier_ + != com.google.cloud.discoveryengine.v1beta.SubscriptionTier.SUBSCRIPTION_TIER_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, subscriptionTier_); + } + if (state_ + != com.google.cloud.discoveryengine.v1beta.LicenseConfig.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, state_); + } + if (autoRenew_ != false) { + output.writeBool(5, autoRenew_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getStartDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getEndDate()); + } + if (subscriptionTerm_ + != com.google.cloud.discoveryengine.v1beta.SubscriptionTerm.SUBSCRIPTION_TERM_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, subscriptionTerm_); + } + if (freeTrial_ != false) { + output.writeBool(9, freeTrial_); + } + if (geminiBundle_ != false) { + output.writeBool(11, geminiBundle_); + } + if (earlyTerminated_ != false) { + output.writeBool(12, earlyTerminated_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(13, getEarlyTerminationDate()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (licenseCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, licenseCount_); + } + if (subscriptionTier_ + != com.google.cloud.discoveryengine.v1beta.SubscriptionTier.SUBSCRIPTION_TIER_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, subscriptionTier_); + } + if (state_ + != com.google.cloud.discoveryengine.v1beta.LicenseConfig.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (autoRenew_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, autoRenew_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStartDate()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEndDate()); + } + if (subscriptionTerm_ + != com.google.cloud.discoveryengine.v1beta.SubscriptionTerm.SUBSCRIPTION_TERM_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, subscriptionTerm_); + } + if (freeTrial_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, freeTrial_); + } + if (geminiBundle_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, geminiBundle_); + } + if (earlyTerminated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, earlyTerminated_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(13, getEarlyTerminationDate()); + } + 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.v1beta.LicenseConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.LicenseConfig other = + (com.google.cloud.discoveryengine.v1beta.LicenseConfig) obj; + + if (!getName().equals(other.getName())) return false; + if (getLicenseCount() != other.getLicenseCount()) return false; + if (subscriptionTier_ != other.subscriptionTier_) return false; + if (state_ != other.state_) return false; + if (getAutoRenew() != other.getAutoRenew()) return false; + if (hasStartDate() != other.hasStartDate()) return false; + if (hasStartDate()) { + if (!getStartDate().equals(other.getStartDate())) return false; + } + if (hasEndDate() != other.hasEndDate()) return false; + if (hasEndDate()) { + if (!getEndDate().equals(other.getEndDate())) return false; + } + if (subscriptionTerm_ != other.subscriptionTerm_) return false; + if (getFreeTrial() != other.getFreeTrial()) return false; + if (getGeminiBundle() != other.getGeminiBundle()) return false; + if (getEarlyTerminated() != other.getEarlyTerminated()) return false; + if (hasEarlyTerminationDate() != other.hasEarlyTerminationDate()) return false; + if (hasEarlyTerminationDate()) { + if (!getEarlyTerminationDate().equals(other.getEarlyTerminationDate())) 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) + LICENSE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLicenseCount()); + hash = (37 * hash) + SUBSCRIPTION_TIER_FIELD_NUMBER; + hash = (53 * hash) + subscriptionTier_; + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + AUTO_RENEW_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoRenew()); + if (hasStartDate()) { + hash = (37 * hash) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + } + if (hasEndDate()) { + hash = (37 * hash) + END_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEndDate().hashCode(); + } + hash = (37 * hash) + SUBSCRIPTION_TERM_FIELD_NUMBER; + hash = (53 * hash) + subscriptionTerm_; + hash = (37 * hash) + FREE_TRIAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFreeTrial()); + hash = (37 * hash) + GEMINI_BUNDLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGeminiBundle()); + hash = (37 * hash) + EARLY_TERMINATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEarlyTerminated()); + if (hasEarlyTerminationDate()) { + hash = (37 * hash) + EARLY_TERMINATION_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEarlyTerminationDate().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfig 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.v1beta.LicenseConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfig parseFrom( + 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.v1beta.LicenseConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.LicenseConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Information about users' licenses.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.LicenseConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.LicenseConfig) + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_LicenseConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_LicenseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.LicenseConfig.class, + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.LicenseConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStartDateFieldBuilder(); + internalGetEndDateFieldBuilder(); + internalGetEarlyTerminationDateFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + licenseCount_ = 0L; + subscriptionTier_ = 0; + state_ = 0; + autoRenew_ = false; + startDate_ = null; + if (startDateBuilder_ != null) { + startDateBuilder_.dispose(); + startDateBuilder_ = null; + } + endDate_ = null; + if (endDateBuilder_ != null) { + endDateBuilder_.dispose(); + endDateBuilder_ = null; + } + subscriptionTerm_ = 0; + freeTrial_ = false; + geminiBundle_ = false; + earlyTerminated_ = false; + earlyTerminationDate_ = null; + if (earlyTerminationDateBuilder_ != null) { + earlyTerminationDateBuilder_.dispose(); + earlyTerminationDateBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigProto + .internal_static_google_cloud_discoveryengine_v1beta_LicenseConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfig build() { + com.google.cloud.discoveryengine.v1beta.LicenseConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfig buildPartial() { + com.google.cloud.discoveryengine.v1beta.LicenseConfig result = + new com.google.cloud.discoveryengine.v1beta.LicenseConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.LicenseConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.licenseCount_ = licenseCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.subscriptionTier_ = subscriptionTier_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.autoRenew_ = autoRenew_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.startDate_ = startDateBuilder_ == null ? startDate_ : startDateBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.endDate_ = endDateBuilder_ == null ? endDate_ : endDateBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.subscriptionTerm_ = subscriptionTerm_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.freeTrial_ = freeTrial_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.geminiBundle_ = geminiBundle_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.earlyTerminated_ = earlyTerminated_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.earlyTerminationDate_ = + earlyTerminationDateBuilder_ == null + ? earlyTerminationDate_ + : earlyTerminationDateBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.LicenseConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.LicenseConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.LicenseConfig other) { + if (other == com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getLicenseCount() != 0L) { + setLicenseCount(other.getLicenseCount()); + } + if (other.subscriptionTier_ != 0) { + setSubscriptionTierValue(other.getSubscriptionTierValue()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getAutoRenew() != false) { + setAutoRenew(other.getAutoRenew()); + } + if (other.hasStartDate()) { + mergeStartDate(other.getStartDate()); + } + if (other.hasEndDate()) { + mergeEndDate(other.getEndDate()); + } + if (other.subscriptionTerm_ != 0) { + setSubscriptionTermValue(other.getSubscriptionTermValue()); + } + if (other.getFreeTrial() != false) { + setFreeTrial(other.getFreeTrial()); + } + if (other.getGeminiBundle() != false) { + setGeminiBundle(other.getGeminiBundle()); + } + if (other.getEarlyTerminated() != false) { + setEarlyTerminated(other.getEarlyTerminated()); + } + if (other.hasEarlyTerminationDate()) { + mergeEarlyTerminationDate(other.getEarlyTerminationDate()); + } + 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: + { + licenseCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + subscriptionTier_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + autoRenew_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage( + internalGetStartDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage(internalGetEndDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + subscriptionTerm_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 72: + { + freeTrial_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 88: + { + geminiBundle_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 88 + case 96: + { + earlyTerminated_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 96 + case 106: + { + input.readMessage( + internalGetEarlyTerminationDateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Immutable. Identifier. The fully qualified resource name of the license
            +     * config. Format:
            +     * `projects/{project}/locations/{location}/licenseConfigs/{license_config}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.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; + } + } + + /** + * + * + *
            +     * Immutable. Identifier. The fully qualified resource name of the license
            +     * config. Format:
            +     * `projects/{project}/locations/{location}/licenseConfigs/{license_config}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.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; + } + } + + /** + * + * + *
            +     * Immutable. Identifier. The fully qualified resource name of the license
            +     * config. Format:
            +     * `projects/{project}/locations/{location}/licenseConfigs/{license_config}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.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; + } + + /** + * + * + *
            +     * Immutable. Identifier. The fully qualified resource name of the license
            +     * config. Format:
            +     * `projects/{project}/locations/{location}/licenseConfigs/{license_config}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Immutable. Identifier. The fully qualified resource name of the license
            +     * config. Format:
            +     * `projects/{project}/locations/{location}/licenseConfigs/{license_config}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long licenseCount_; + + /** + * + * + *
            +     * Required. Number of licenses purchased.
            +     * 
            + * + * int64 license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The licenseCount. + */ + @java.lang.Override + public long getLicenseCount() { + return licenseCount_; + } + + /** + * + * + *
            +     * Required. Number of licenses purchased.
            +     * 
            + * + * int64 license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The licenseCount to set. + * @return This builder for chaining. + */ + public Builder setLicenseCount(long value) { + + licenseCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Number of licenses purchased.
            +     * 
            + * + * int64 license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLicenseCount() { + bitField0_ = (bitField0_ & ~0x00000002); + licenseCount_ = 0L; + onChanged(); + return this; + } + + private int subscriptionTier_ = 0; + + /** + * + * + *
            +     * Required. Subscription tier information for the license config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for subscriptionTier. + */ + @java.lang.Override + public int getSubscriptionTierValue() { + return subscriptionTier_; + } + + /** + * + * + *
            +     * Required. Subscription tier information for the license config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for subscriptionTier to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionTierValue(int value) { + subscriptionTier_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Subscription tier information for the license config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subscriptionTier. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SubscriptionTier getSubscriptionTier() { + com.google.cloud.discoveryengine.v1beta.SubscriptionTier result = + com.google.cloud.discoveryengine.v1beta.SubscriptionTier.forNumber(subscriptionTier_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SubscriptionTier.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Required. Subscription tier information for the license config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The subscriptionTier to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionTier( + com.google.cloud.discoveryengine.v1beta.SubscriptionTier value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + subscriptionTier_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Subscription tier information for the license config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearSubscriptionTier() { + bitField0_ = (bitField0_ & ~0x00000004); + subscriptionTier_ = 0; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
            +     * Output only. The state of the license config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +     * Output only. The state of the license config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The state of the license config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfig.State getState() { + com.google.cloud.discoveryengine.v1beta.LicenseConfig.State result = + com.google.cloud.discoveryengine.v1beta.LicenseConfig.State.forNumber(state_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.LicenseConfig.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Output only. The state of the license config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.discoveryengine.v1beta.LicenseConfig.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The state of the license config.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private boolean autoRenew_; + + /** + * + * + *
            +     * Optional. Whether the license config should be auto renewed when it reaches
            +     * the end date.
            +     * 
            + * + * bool auto_renew = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoRenew. + */ + @java.lang.Override + public boolean getAutoRenew() { + return autoRenew_; + } + + /** + * + * + *
            +     * Optional. Whether the license config should be auto renewed when it reaches
            +     * the end date.
            +     * 
            + * + * bool auto_renew = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The autoRenew to set. + * @return This builder for chaining. + */ + public Builder setAutoRenew(boolean value) { + + autoRenew_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Whether the license config should be auto renewed when it reaches
            +     * the end date.
            +     * 
            + * + * bool auto_renew = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAutoRenew() { + bitField0_ = (bitField0_ & ~0x00000010); + autoRenew_ = false; + onChanged(); + return this; + } + + private com.google.type.Date startDate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + startDateBuilder_; + + /** + * + * + *
            +     * Required. The start date.
            +     * 
            + * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the startDate field is set. + */ + public boolean hasStartDate() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Required. The start date.
            +     * 
            + * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The startDate. + */ + public com.google.type.Date getStartDate() { + if (startDateBuilder_ == null) { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } else { + return startDateBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The start date.
            +     * 
            + * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + } else { + startDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The start date.
            +     * 
            + * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setStartDate(com.google.type.Date.Builder builderForValue) { + if (startDateBuilder_ == null) { + startDate_ = builderForValue.build(); + } else { + startDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The start date.
            +     * 
            + * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeStartDate(com.google.type.Date value) { + if (startDateBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && startDate_ != null + && startDate_ != com.google.type.Date.getDefaultInstance()) { + getStartDateBuilder().mergeFrom(value); + } else { + startDate_ = value; + } + } else { + startDateBuilder_.mergeFrom(value); + } + if (startDate_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The start date.
            +     * 
            + * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearStartDate() { + bitField0_ = (bitField0_ & ~0x00000020); + startDate_ = null; + if (startDateBuilder_ != null) { + startDateBuilder_.dispose(); + startDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The start date.
            +     * 
            + * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.type.Date.Builder getStartDateBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetStartDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The start date.
            +     * 
            + * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.type.DateOrBuilder getStartDateOrBuilder() { + if (startDateBuilder_ != null) { + return startDateBuilder_.getMessageOrBuilder(); + } else { + return startDate_ == null ? com.google.type.Date.getDefaultInstance() : startDate_; + } + } + + /** + * + * + *
            +     * Required. The start date.
            +     * 
            + * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + internalGetStartDateFieldBuilder() { + if (startDateBuilder_ == null) { + startDateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getStartDate(), getParentForChildren(), isClean()); + startDate_ = null; + } + return startDateBuilder_; + } + + private com.google.type.Date endDate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + endDateBuilder_; + + /** + * + * + *
            +     * Optional. The planed end date.
            +     * 
            + * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the endDate field is set. + */ + public boolean hasEndDate() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +     * Optional. The planed end date.
            +     * 
            + * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The endDate. + */ + public com.google.type.Date getEndDate() { + if (endDateBuilder_ == null) { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } else { + return endDateBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. The planed end date.
            +     * 
            + * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endDate_ = value; + } else { + endDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The planed end date.
            +     * 
            + * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setEndDate(com.google.type.Date.Builder builderForValue) { + if (endDateBuilder_ == null) { + endDate_ = builderForValue.build(); + } else { + endDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The planed end date.
            +     * 
            + * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeEndDate(com.google.type.Date value) { + if (endDateBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && endDate_ != null + && endDate_ != com.google.type.Date.getDefaultInstance()) { + getEndDateBuilder().mergeFrom(value); + } else { + endDate_ = value; + } + } else { + endDateBuilder_.mergeFrom(value); + } + if (endDate_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The planed end date.
            +     * 
            + * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearEndDate() { + bitField0_ = (bitField0_ & ~0x00000040); + endDate_ = null; + if (endDateBuilder_ != null) { + endDateBuilder_.dispose(); + endDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The planed end date.
            +     * 
            + * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.type.Date.Builder getEndDateBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetEndDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The planed end date.
            +     * 
            + * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.type.DateOrBuilder getEndDateOrBuilder() { + if (endDateBuilder_ != null) { + return endDateBuilder_.getMessageOrBuilder(); + } else { + return endDate_ == null ? com.google.type.Date.getDefaultInstance() : endDate_; + } + } + + /** + * + * + *
            +     * Optional. The planed end date.
            +     * 
            + * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + internalGetEndDateFieldBuilder() { + if (endDateBuilder_ == null) { + endDateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getEndDate(), getParentForChildren(), isClean()); + endDate_ = null; + } + return endDateBuilder_; + } + + private int subscriptionTerm_ = 0; + + /** + * + * + *
            +     * Required. Subscription term.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for subscriptionTerm. + */ + @java.lang.Override + public int getSubscriptionTermValue() { + return subscriptionTerm_; + } + + /** + * + * + *
            +     * Required. Subscription term.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for subscriptionTerm to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionTermValue(int value) { + subscriptionTerm_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Subscription term.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subscriptionTerm. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SubscriptionTerm getSubscriptionTerm() { + com.google.cloud.discoveryengine.v1beta.SubscriptionTerm result = + com.google.cloud.discoveryengine.v1beta.SubscriptionTerm.forNumber(subscriptionTerm_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SubscriptionTerm.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Required. Subscription term.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The subscriptionTerm to set. + * @return This builder for chaining. + */ + public Builder setSubscriptionTerm( + com.google.cloud.discoveryengine.v1beta.SubscriptionTerm value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + subscriptionTerm_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Subscription term.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearSubscriptionTerm() { + bitField0_ = (bitField0_ & ~0x00000080); + subscriptionTerm_ = 0; + onChanged(); + return this; + } + + private boolean freeTrial_; + + /** + * + * + *
            +     * Optional. Whether the license config is for free trial.
            +     * 
            + * + * bool free_trial = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The freeTrial. + */ + @java.lang.Override + public boolean getFreeTrial() { + return freeTrial_; + } + + /** + * + * + *
            +     * Optional. Whether the license config is for free trial.
            +     * 
            + * + * bool free_trial = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The freeTrial to set. + * @return This builder for chaining. + */ + public Builder setFreeTrial(boolean value) { + + freeTrial_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Whether the license config is for free trial.
            +     * 
            + * + * bool free_trial = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFreeTrial() { + bitField0_ = (bitField0_ & ~0x00000100); + freeTrial_ = false; + onChanged(); + return this; + } + + private boolean geminiBundle_; + + /** + * + * + *
            +     * Output only. Whether the license config is for Gemini bundle.
            +     * 
            + * + * bool gemini_bundle = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The geminiBundle. + */ + @java.lang.Override + public boolean getGeminiBundle() { + return geminiBundle_; + } + + /** + * + * + *
            +     * Output only. Whether the license config is for Gemini bundle.
            +     * 
            + * + * bool gemini_bundle = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The geminiBundle to set. + * @return This builder for chaining. + */ + public Builder setGeminiBundle(boolean value) { + + geminiBundle_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Whether the license config is for Gemini bundle.
            +     * 
            + * + * bool gemini_bundle = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearGeminiBundle() { + bitField0_ = (bitField0_ & ~0x00000200); + geminiBundle_ = false; + onChanged(); + return this; + } + + private boolean earlyTerminated_; + + /** + * + * + *
            +     * Output only. Indication of whether the subscription is terminated earlier
            +     * than the expiration date. This is usually terminated by pipeline once the
            +     * subscription gets terminated from subsv3.
            +     * 
            + * + * bool early_terminated = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The earlyTerminated. + */ + @java.lang.Override + public boolean getEarlyTerminated() { + return earlyTerminated_; + } + + /** + * + * + *
            +     * Output only. Indication of whether the subscription is terminated earlier
            +     * than the expiration date. This is usually terminated by pipeline once the
            +     * subscription gets terminated from subsv3.
            +     * 
            + * + * bool early_terminated = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The earlyTerminated to set. + * @return This builder for chaining. + */ + public Builder setEarlyTerminated(boolean value) { + + earlyTerminated_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Indication of whether the subscription is terminated earlier
            +     * than the expiration date. This is usually terminated by pipeline once the
            +     * subscription gets terminated from subsv3.
            +     * 
            + * + * bool early_terminated = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEarlyTerminated() { + bitField0_ = (bitField0_ & ~0x00000400); + earlyTerminated_ = false; + onChanged(); + return this; + } + + private com.google.type.Date earlyTerminationDate_; + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + earlyTerminationDateBuilder_; + + /** + * + * + *
            +     * Output only. The date when the subscription is terminated earlier than the
            +     * expiration date.
            +     * 
            + * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the earlyTerminationDate field is set. + */ + public boolean hasEarlyTerminationDate() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
            +     * Output only. The date when the subscription is terminated earlier than the
            +     * expiration date.
            +     * 
            + * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The earlyTerminationDate. + */ + public com.google.type.Date getEarlyTerminationDate() { + if (earlyTerminationDateBuilder_ == null) { + return earlyTerminationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : earlyTerminationDate_; + } else { + return earlyTerminationDateBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The date when the subscription is terminated earlier than the
            +     * expiration date.
            +     * 
            + * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEarlyTerminationDate(com.google.type.Date value) { + if (earlyTerminationDateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + earlyTerminationDate_ = value; + } else { + earlyTerminationDateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The date when the subscription is terminated earlier than the
            +     * expiration date.
            +     * 
            + * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEarlyTerminationDate(com.google.type.Date.Builder builderForValue) { + if (earlyTerminationDateBuilder_ == null) { + earlyTerminationDate_ = builderForValue.build(); + } else { + earlyTerminationDateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The date when the subscription is terminated earlier than the
            +     * expiration date.
            +     * 
            + * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEarlyTerminationDate(com.google.type.Date value) { + if (earlyTerminationDateBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && earlyTerminationDate_ != null + && earlyTerminationDate_ != com.google.type.Date.getDefaultInstance()) { + getEarlyTerminationDateBuilder().mergeFrom(value); + } else { + earlyTerminationDate_ = value; + } + } else { + earlyTerminationDateBuilder_.mergeFrom(value); + } + if (earlyTerminationDate_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The date when the subscription is terminated earlier than the
            +     * expiration date.
            +     * 
            + * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEarlyTerminationDate() { + bitField0_ = (bitField0_ & ~0x00000800); + earlyTerminationDate_ = null; + if (earlyTerminationDateBuilder_ != null) { + earlyTerminationDateBuilder_.dispose(); + earlyTerminationDateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The date when the subscription is terminated earlier than the
            +     * expiration date.
            +     * 
            + * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.Date.Builder getEarlyTerminationDateBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetEarlyTerminationDateFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The date when the subscription is terminated earlier than the
            +     * expiration date.
            +     * 
            + * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.DateOrBuilder getEarlyTerminationDateOrBuilder() { + if (earlyTerminationDateBuilder_ != null) { + return earlyTerminationDateBuilder_.getMessageOrBuilder(); + } else { + return earlyTerminationDate_ == null + ? com.google.type.Date.getDefaultInstance() + : earlyTerminationDate_; + } + } + + /** + * + * + *
            +     * Output only. The date when the subscription is terminated earlier than the
            +     * expiration date.
            +     * 
            + * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder> + internalGetEarlyTerminationDateFieldBuilder() { + if (earlyTerminationDateBuilder_ == null) { + earlyTerminationDateBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.type.Date, com.google.type.Date.Builder, com.google.type.DateOrBuilder>( + getEarlyTerminationDate(), getParentForChildren(), isClean()); + earlyTerminationDate_ = null; + } + return earlyTerminationDateBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.LicenseConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.LicenseConfig) + private static final com.google.cloud.discoveryengine.v1beta.LicenseConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.LicenseConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LicenseConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.LicenseConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigName.java new file mode 100644 index 000000000000..1b5f55122089 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +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 LicenseConfigName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_LICENSE_CONFIG = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/licenseConfigs/{license_config}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String licenseConfig; + + @Deprecated + protected LicenseConfigName() { + project = null; + location = null; + licenseConfig = null; + } + + private LicenseConfigName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + licenseConfig = Preconditions.checkNotNull(builder.getLicenseConfig()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getLicenseConfig() { + return licenseConfig; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LicenseConfigName of(String project, String location, String licenseConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setLicenseConfig(licenseConfig) + .build(); + } + + public static String format(String project, String location, String licenseConfig) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setLicenseConfig(licenseConfig) + .build() + .toString(); + } + + public static LicenseConfigName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_LICENSE_CONFIG.validatedMatch( + formattedString, "LicenseConfigName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("license_config")); + } + + 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 (LicenseConfigName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_LICENSE_CONFIG.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 (licenseConfig != null) { + fieldMapBuilder.put("license_config", licenseConfig); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_LICENSE_CONFIG.instantiate( + "project", project, "location", location, "license_config", licenseConfig); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LicenseConfigName that = ((LicenseConfigName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.licenseConfig, that.licenseConfig); + } + 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(licenseConfig); + return h; + } + + /** Builder for projects/{project}/locations/{location}/licenseConfigs/{license_config}. */ + public static class Builder { + private String project; + private String location; + private String licenseConfig; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getLicenseConfig() { + return licenseConfig; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setLicenseConfig(String licenseConfig) { + this.licenseConfig = licenseConfig; + return this; + } + + private Builder(LicenseConfigName licenseConfigName) { + this.project = licenseConfigName.project; + this.location = licenseConfigName.location; + this.licenseConfig = licenseConfigName.licenseConfig; + } + + public LicenseConfigName build() { + return new LicenseConfigName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigOrBuilder.java new file mode 100644 index 000000000000..03ef18178c40 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigOrBuilder.java @@ -0,0 +1,340 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface LicenseConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.LicenseConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Immutable. Identifier. The fully qualified resource name of the license
            +   * config. Format:
            +   * `projects/{project}/locations/{location}/licenseConfigs/{license_config}`
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Immutable. Identifier. The fully qualified resource name of the license
            +   * config. Format:
            +   * `projects/{project}/locations/{location}/licenseConfigs/{license_config}`
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Required. Number of licenses purchased.
            +   * 
            + * + * int64 license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The licenseCount. + */ + long getLicenseCount(); + + /** + * + * + *
            +   * Required. Subscription tier information for the license config.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for subscriptionTier. + */ + int getSubscriptionTierValue(); + + /** + * + * + *
            +   * Required. Subscription tier information for the license config.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTier subscription_tier = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subscriptionTier. + */ + com.google.cloud.discoveryengine.v1beta.SubscriptionTier getSubscriptionTier(); + + /** + * + * + *
            +   * Output only. The state of the license config.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
            +   * Output only. The state of the license config.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.discoveryengine.v1beta.LicenseConfig.State getState(); + + /** + * + * + *
            +   * Optional. Whether the license config should be auto renewed when it reaches
            +   * the end date.
            +   * 
            + * + * bool auto_renew = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The autoRenew. + */ + boolean getAutoRenew(); + + /** + * + * + *
            +   * Required. The start date.
            +   * 
            + * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the startDate field is set. + */ + boolean hasStartDate(); + + /** + * + * + *
            +   * Required. The start date.
            +   * 
            + * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The startDate. + */ + com.google.type.Date getStartDate(); + + /** + * + * + *
            +   * Required. The start date.
            +   * 
            + * + * .google.type.Date start_date = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.type.DateOrBuilder getStartDateOrBuilder(); + + /** + * + * + *
            +   * Optional. The planed end date.
            +   * 
            + * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the endDate field is set. + */ + boolean hasEndDate(); + + /** + * + * + *
            +   * Optional. The planed end date.
            +   * 
            + * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The endDate. + */ + com.google.type.Date getEndDate(); + + /** + * + * + *
            +   * Optional. The planed end date.
            +   * 
            + * + * .google.type.Date end_date = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.type.DateOrBuilder getEndDateOrBuilder(); + + /** + * + * + *
            +   * Required. Subscription term.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for subscriptionTerm. + */ + int getSubscriptionTermValue(); + + /** + * + * + *
            +   * Required. Subscription term.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SubscriptionTerm subscription_term = 8 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subscriptionTerm. + */ + com.google.cloud.discoveryengine.v1beta.SubscriptionTerm getSubscriptionTerm(); + + /** + * + * + *
            +   * Optional. Whether the license config is for free trial.
            +   * 
            + * + * bool free_trial = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The freeTrial. + */ + boolean getFreeTrial(); + + /** + * + * + *
            +   * Output only. Whether the license config is for Gemini bundle.
            +   * 
            + * + * bool gemini_bundle = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The geminiBundle. + */ + boolean getGeminiBundle(); + + /** + * + * + *
            +   * Output only. Indication of whether the subscription is terminated earlier
            +   * than the expiration date. This is usually terminated by pipeline once the
            +   * subscription gets terminated from subsv3.
            +   * 
            + * + * bool early_terminated = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The earlyTerminated. + */ + boolean getEarlyTerminated(); + + /** + * + * + *
            +   * Output only. The date when the subscription is terminated earlier than the
            +   * expiration date.
            +   * 
            + * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the earlyTerminationDate field is set. + */ + boolean hasEarlyTerminationDate(); + + /** + * + * + *
            +   * Output only. The date when the subscription is terminated earlier than the
            +   * expiration date.
            +   * 
            + * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The earlyTerminationDate. + */ + com.google.type.Date getEarlyTerminationDate(); + + /** + * + * + *
            +   * Output only. The date when the subscription is terminated earlier than the
            +   * expiration date.
            +   * 
            + * + * + * .google.type.Date early_termination_date = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.type.DateOrBuilder getEarlyTerminationDateOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigProto.java new file mode 100644 index 000000000000..c0e1b9e1d493 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigProto.java @@ -0,0 +1,138 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public final class LicenseConfigProto extends com.google.protobuf.GeneratedFile { + private LicenseConfigProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "LicenseConfigProto"); + } + + 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_discoveryengine_v1beta_LicenseConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_LicenseConfig_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" + + "8google/cloud/discoveryengine/v1beta/license_config.proto\022#google.cloud.discove" + + "ryengine.v1beta\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\0320goo" + + "gle/cloud/discoveryengine/v1beta/common.proto\032\026google/type/date.proto\"\300\006\n\r" + + "LicenseConfig\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\005\340A\010\022\032\n\r" + + "license_count\030\002 \001(\003B\003\340A\002\022U\n" + + "\021subscription_tier\030\003" + + " \001(\01625.google.cloud.discoveryengine.v1beta.SubscriptionTierB\003\340A\002\022L\n" + + "\005state\030\004 \001(\0162" + + "8.google.cloud.discoveryengine.v1beta.LicenseConfig.StateB\003\340A\003\022\027\n\n" + + "auto_renew\030\005 \001(\010B\003\340A\001\022*\n\n" + + "start_date\030\006 \001(\0132\021.google.type.DateB\003\340A\002\022(\n" + + "\010end_date\030\007 \001(\0132\021.google.type.DateB\003\340A\001\022U\n" + + "\021subscription_term\030\010 \001(\016" + + "25.google.cloud.discoveryengine.v1beta.SubscriptionTermB\003\340A\002\022\027\n\n" + + "free_trial\030\t \001(\010B\003\340A\001\022\032\n\r" + + "gemini_bundle\030\013 \001(\010B\003\340A\003\022\035\n" + + "\020early_terminated\030\014 \001(\010B\003\340A\003\0226\n" + + "\026early_termination_date\030\r" + + " \001(\0132\021.google.type.DateB\003\340A\003\"i\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\013\n" + + "\007EXPIRED\020\002\022\017\n" + + "\013NOT_STARTED\020\003\022\r\n" + + "\tWITHDRAWN\020\004\022\020\n" + + "\014DEACTIVATING\020\005:\232\001\352A\226\001\n" + + ",discoveryengine.googleapis.com/LicenseConfig" + + "\022Gprojects/{project}/locations/{location" + + "}/licenseConfigs/{license_config}*\016licenseConfigs2\r" + + "licenseConfigB\231\002\n" + + "\'com.google.cloud.discoveryengine.v1betaB\022LicenseCon" + + "figProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;disc" + + "overyenginepb\242\002\017DISCOVERYENGINE\252\002#Google" + + ".Cloud.DiscoveryEngine.V1Beta\312\002#Google\\C" + + "loud\\DiscoveryEngine\\V1beta\352\002&Google::Cl" + + "oud::DiscoveryEngine::V1betab\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.cloud.discoveryengine.v1beta.CommonProto.getDescriptor(), + com.google.type.DateProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_LicenseConfig_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1beta_LicenseConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_LicenseConfig_descriptor, + new java.lang.String[] { + "Name", + "LicenseCount", + "SubscriptionTier", + "State", + "AutoRenew", + "StartDate", + "EndDate", + "SubscriptionTerm", + "FreeTrial", + "GeminiBundle", + "EarlyTerminated", + "EarlyTerminationDate", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.CommonProto.getDescriptor(); + com.google.type.DateProto.getDescriptor(); + 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); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceProto.java new file mode 100644 index 000000000000..db37f95ba878 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigServiceProto.java @@ -0,0 +1,289 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public final class LicenseConfigServiceProto extends com.google.protobuf.GeneratedFile { + private LicenseConfigServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "LicenseConfigServiceProto"); + } + + 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_discoveryengine_v1beta_CreateLicenseConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CreateLicenseConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_UpdateLicenseConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_UpdateLicenseConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_GetLicenseConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_GetLicenseConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigResponse_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/discoveryengine/v1beta/license_config_service.proto\022#google.cloud" + + ".discoveryengine.v1beta\032\034google/api/anno" + + "tations.proto\032\027google/api/client.proto\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\0328google/cloud/discoveryengine/v1beta/license_config.proto\032" + + " google/protobuf/field_mask.proto\"\316\001\n" + + "\032CreateLicenseConfigRequest\022?\n" + + "\006parent\030\001 \001(\tB/\340A\002\372A)\n" + + "\'discoveryengine.googleapis.com/Location\022O\n" + + "\016license_config\030\002 \001(\01322.google." + + "cloud.discoveryengine.v1beta.LicenseConfigB\003\340A\002\022\036\n" + + "\021license_config_id\030\003 \001(\tB\003\340A\001\"\243\001\n" + + "\032UpdateLicenseConfigRequest\022O\n" + + "\016license_config\030\001" + + " \001(\01322.google.cloud.discoveryengine.v1beta.LicenseConfigB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"]\n" + + "\027GetLicenseConfigRequest\022B\n" + + "\004name\030\001 \001(\tB4\340A\002\372A.\n" + + ",discoveryengine.googleapis.com/LicenseConfig\"\242\001\n" + + "\031ListLicenseConfigsRequest\022?\n" + + "\006parent\030\001 \001(\tB/\340A\002\372A)\n" + + "\'discoveryengine.googleapis.com/Location\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\"\202\001\n" + + "\032ListLicenseConfigsResponse\022K\n" + + "\017license_configs\030\001 \003(" + + "\01322.google.cloud.discoveryengine.v1beta.LicenseConfig\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\374\001\n" + + "\036DistributeLicenseConfigRequest\022j\n" + + "\036billing_account_license_config\030\001 \001(\tBB\340A\002\372A<\n" + + ":discoveryengine.googleapis.com/BillingAccountLicenseConfig\022\033\n" + + "\016project_number\030\002 \001(\003B\003\340A\002\022\025\n" + + "\010location\030\003 \001(\tB\003\340A\002\022\032\n\r" + + "license_count\030\004 \001(\003B\003\340A\002\022\036\n" + + "\021license_config_id\030\005 \001(\tB\003\340A\001\"m\n" + + "\037DistributeLicenseConfigResponse\022J\n" + + "\016license_config\030\001 \001(\01322.googl" + + "e.cloud.discoveryengine.v1beta.LicenseConfig\"\216\002\n" + + "\033RetractLicenseConfigRequest\022j\n" + + "\036billing_account_license_config\030\001 \001(\tBB\340A\002\372A<\n" + + ":discoveryengine.googleapis.com/BillingAccountLicenseConfig\022L\n" + + "\016license_config\030\002 \001(\tB4\340A\002\372A.\n" + + ",discoveryengine.googleapis.com/LicenseConfig\022\031\n" + + "\014full_retract\030\003 \001(\010B\003\340A\001\022\032\n\r" + + "license_count\030\004 \001(\003B\003\340A\001\"j\n" + + "\034RetractLicenseConfigResponse\022J\n" + + "\016license_config\030\001" + + " \001(\01322.google.cloud.discoveryengine.v1beta.LicenseConfig2\213\017\n" + + "\024LicenseConfigService\022\204\002\n" + + "\023CreateLicenseConfig\022?.google.cloud.discoveryengine.v1beta.CreateL" + + "icenseConfigRequest\0322.google.cloud.disco" + + "veryengine.v1beta.LicenseConfig\"x\332A\'pare" + + "nt,license_config,license_config_id\202\323\344\223\002" + + "H\"6/v1beta/{parent=projects/*/locations/*}/licenseConfigs:\016license_config\022\206\002\n" + + "\023UpdateLicenseConfig\022?.google.cloud.discove" + + "ryengine.v1beta.UpdateLicenseConfigRequest\0322.google.cloud.discoveryengine.v1beta" + + ".LicenseConfig\"z\332A\032license_config,update" + + "_mask\202\323\344\223\002W2E/v1beta/{license_config.nam" + + "e=projects/*/locations/*/licenseConfigs/*}:\016license_config\022\313\001\n" + + "\020GetLicenseConfig\022<.google.cloud.discoveryengine.v1beta.Ge" + + "tLicenseConfigRequest\0322.google.cloud.dis" + + "coveryengine.v1beta.LicenseConfig\"E\332A\004na" + + "me\202\323\344\223\0028\0226/v1beta/{name=projects/*/locations/*/licenseConfigs/*}\022\336\001\n" + + "\022ListLicenseConfigs\022>.google.cloud.discoveryengine.v" + + "1beta.ListLicenseConfigsRequest\032?.google.cloud.discoveryengine.v1beta.ListLicens" + + "eConfigsResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1be" + + "ta/{parent=projects/*/locations/*}/licenseConfigs\022\374\002\n" + + "\027DistributeLicenseConfig\022C.google.cloud.discoveryengine.v1beta.Dist" + + "ributeLicenseConfigRequest\032D.google.cloud.discoveryengine.v1beta.DistributeLicen" + + "seConfigResponse\"\325\001\332AVbilling_account_li" + + "cense_config,project_number,location,lic" + + "ense_count,license_config_id\202\323\344\223\002v\"q/v1b" + + "eta/{billing_account_license_config=bill" + + "ingAccounts/*/billingAccountLicenseConfigs/*}:distributeLicenseConfig:\001*\022\342\002\n" + + "\024RetractLicenseConfig\022@.google.cloud.discove" + + "ryengine.v1beta.RetractLicenseConfigRequest\032A.google.cloud.discoveryengine.v1bet" + + "a.RetractLicenseConfigResponse\"\304\001\332AHbill" + + "ing_account_license_config,license_confi" + + "g,full_retract,license_count\202\323\344\223\002s\"n/v1b" + + "eta/{billing_account_license_config=billingAccounts/*/billingAccountLicenseConfi" + + "gs/*}:retractLicenseConfig:\001*\032\317\001\312A\036disco" + + "veryengine.googleapis.com\322A\252\001https://www" + + ".googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/discoveryeng" + + "ine.readwrite,https://www.googleapis.com" + + "/auth/discoveryengine.serving.readwriteB\240\002\n" + + "\'com.google.cloud.discoveryengine.v1betaB\031LicenseConfigServiceProtoP\001ZQcloud." + + "google.com/go/discoveryengine/apiv1beta/" + + "discoveryenginepb;discoveryenginepb\242\002\017DI" + + "SCOVERYENGINE\252\002#Google.Cloud.DiscoveryEn" + + "gine.V1Beta\312\002#Google\\Cloud\\DiscoveryEngi" + + "ne\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.LicenseConfigProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_CreateLicenseConfigRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1beta_CreateLicenseConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_CreateLicenseConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "LicenseConfig", "LicenseConfigId", + }); + internal_static_google_cloud_discoveryengine_v1beta_UpdateLicenseConfigRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_discoveryengine_v1beta_UpdateLicenseConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_UpdateLicenseConfigRequest_descriptor, + new java.lang.String[] { + "LicenseConfig", "UpdateMask", + }); + internal_static_google_cloud_discoveryengine_v1beta_GetLicenseConfigRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_discoveryengine_v1beta_GetLicenseConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_GetLicenseConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsResponse_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsResponse_descriptor, + new java.lang.String[] { + "LicenseConfigs", "NextPageToken", + }); + internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigRequest_descriptor, + new java.lang.String[] { + "BillingAccountLicenseConfig", + "ProjectNumber", + "Location", + "LicenseCount", + "LicenseConfigId", + }); + internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigResponse_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DistributeLicenseConfigResponse_descriptor, + new java.lang.String[] { + "LicenseConfig", + }); + internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigRequest_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigRequest_descriptor, + new java.lang.String[] { + "BillingAccountLicenseConfig", "LicenseConfig", "FullRetract", "LicenseCount", + }); + internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigResponse_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigResponse_descriptor, + new java.lang.String[] { + "LicenseConfig", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.LicenseConfigProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + 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); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigUsageStats.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigUsageStats.java new file mode 100644 index 000000000000..7f37fa914c31 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigUsageStats.java @@ -0,0 +1,701 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Stats about users' licenses.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats} + */ +@com.google.protobuf.Generated +public final class LicenseConfigUsageStats extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats) + LicenseConfigUsageStatsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "LicenseConfigUsageStats"); + } + + // Use LicenseConfigUsageStats.newBuilder() to construct. + private LicenseConfigUsageStats(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LicenseConfigUsageStats() { + licenseConfig_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseProto + .internal_static_google_cloud_discoveryengine_v1beta_LicenseConfigUsageStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseProto + .internal_static_google_cloud_discoveryengine_v1beta_LicenseConfigUsageStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats.class, + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats.Builder.class); + } + + public static final int LICENSE_CONFIG_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object licenseConfig_ = ""; + + /** + * + * + *
            +   * Required. The LicenseConfig name.
            +   * 
            + * + * string license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The licenseConfig. + */ + @java.lang.Override + public java.lang.String getLicenseConfig() { + java.lang.Object ref = licenseConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseConfig_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The LicenseConfig name.
            +   * 
            + * + * string license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for licenseConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLicenseConfigBytes() { + java.lang.Object ref = licenseConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USED_LICENSE_COUNT_FIELD_NUMBER = 2; + private long usedLicenseCount_ = 0L; + + /** + * + * + *
            +   * Required. The number of licenses used.
            +   * 
            + * + * int64 used_license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The usedLicenseCount. + */ + @java.lang.Override + public long getUsedLicenseCount() { + return usedLicenseCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, licenseConfig_); + } + if (usedLicenseCount_ != 0L) { + output.writeInt64(2, usedLicenseCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseConfig_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, licenseConfig_); + } + if (usedLicenseCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, usedLicenseCount_); + } + 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.v1beta.LicenseConfigUsageStats)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats other = + (com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats) obj; + + if (!getLicenseConfig().equals(other.getLicenseConfig())) return false; + if (getUsedLicenseCount() != other.getUsedLicenseCount()) 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) + LICENSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfig().hashCode(); + hash = (37 * hash) + USED_LICENSE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUsedLicenseCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats 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.v1beta.LicenseConfigUsageStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats parseFrom( + 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.v1beta.LicenseConfigUsageStats parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Stats about users' licenses.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats) + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseProto + .internal_static_google_cloud_discoveryengine_v1beta_LicenseConfigUsageStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseProto + .internal_static_google_cloud_discoveryengine_v1beta_LicenseConfigUsageStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats.class, + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + licenseConfig_ = ""; + usedLicenseCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseProto + .internal_static_google_cloud_discoveryengine_v1beta_LicenseConfigUsageStats_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats build() { + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats buildPartial() { + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats result = + new com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.licenseConfig_ = licenseConfig_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.usedLicenseCount_ = usedLicenseCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats other) { + if (other + == com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats.getDefaultInstance()) + return this; + if (!other.getLicenseConfig().isEmpty()) { + licenseConfig_ = other.licenseConfig_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getUsedLicenseCount() != 0L) { + setUsedLicenseCount(other.getUsedLicenseCount()); + } + 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: + { + licenseConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + usedLicenseCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object licenseConfig_ = ""; + + /** + * + * + *
            +     * Required. The LicenseConfig name.
            +     * 
            + * + * string license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The licenseConfig. + */ + public java.lang.String getLicenseConfig() { + java.lang.Object ref = licenseConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The LicenseConfig name.
            +     * 
            + * + * string license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for licenseConfig. + */ + public com.google.protobuf.ByteString getLicenseConfigBytes() { + java.lang.Object ref = licenseConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The LicenseConfig name.
            +     * 
            + * + * string license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The licenseConfig to set. + * @return This builder for chaining. + */ + public Builder setLicenseConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + licenseConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The LicenseConfig name.
            +     * 
            + * + * string license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearLicenseConfig() { + licenseConfig_ = getDefaultInstance().getLicenseConfig(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The LicenseConfig name.
            +     * 
            + * + * string license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for licenseConfig to set. + * @return This builder for chaining. + */ + public Builder setLicenseConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + licenseConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long usedLicenseCount_; + + /** + * + * + *
            +     * Required. The number of licenses used.
            +     * 
            + * + * int64 used_license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The usedLicenseCount. + */ + @java.lang.Override + public long getUsedLicenseCount() { + return usedLicenseCount_; + } + + /** + * + * + *
            +     * Required. The number of licenses used.
            +     * 
            + * + * int64 used_license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The usedLicenseCount to set. + * @return This builder for chaining. + */ + public Builder setUsedLicenseCount(long value) { + + usedLicenseCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The number of licenses used.
            +     * 
            + * + * int64 used_license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUsedLicenseCount() { + bitField0_ = (bitField0_ & ~0x00000002); + usedLicenseCount_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats) + private static final com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats(); + } + + public static com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LicenseConfigUsageStats parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.LicenseConfigUsageStats + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigUsageStatsOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigUsageStatsOrBuilder.java new file mode 100644 index 000000000000..bb9cc4947df6 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LicenseConfigUsageStatsOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface LicenseConfigUsageStatsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The LicenseConfig name.
            +   * 
            + * + * string license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The licenseConfig. + */ + java.lang.String getLicenseConfig(); + + /** + * + * + *
            +   * Required. The LicenseConfig name.
            +   * 
            + * + * string license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for licenseConfig. + */ + com.google.protobuf.ByteString getLicenseConfigBytes(); + + /** + * + * + *
            +   * Required. The number of licenses used.
            +   * 
            + * + * int64 used_license_count = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The usedLicenseCount. + */ + long getUsedLicenseCount(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListAssistantsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListAssistantsRequest.java new file mode 100644 index 000000000000..362e863ea62c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListAssistantsRequest.java @@ -0,0 +1,987 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for the
            + * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListAssistantsRequest} + */ +@com.google.protobuf.Generated +public final class ListAssistantsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListAssistantsRequest) + ListAssistantsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAssistantsRequest"); + } + + // Use ListAssistantsRequest.newBuilder() to construct. + private ListAssistantsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAssistantsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest.class, + com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent resource name.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent resource name.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +   * 
            + * + * + * 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; + + /** + * + * + *
            +   * Maximum number of
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s to return. If
            +   * unspecified, defaults to 100. The maximum allowed value is 1000; anything
            +   * above that will be coerced down to 1000.
            +   * 
            + * + * 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_ = ""; + + /** + * + * + *
            +   * A page token
            +   * [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListAssistantsResponse.next_page_token],
            +   * received from a previous
            +   * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +   * call. Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * [ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +   * must match the call that provided the page token.
            +   * 
            + * + * 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; + } + } + + /** + * + * + *
            +   * A page token
            +   * [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListAssistantsResponse.next_page_token],
            +   * received from a previous
            +   * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +   * call. Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * [ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +   * must match the call that provided the page token.
            +   * 
            + * + * 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest other = + (com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest) 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.discoveryengine.v1beta.ListAssistantsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest 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.v1beta.ListAssistantsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest parseFrom( + 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.v1beta.ListAssistantsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for the
            +   * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListAssistantsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListAssistantsRequest) + com.google.cloud.discoveryengine.v1beta.ListAssistantsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest.class, + com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest build() { + com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest result = + new com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest.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 parent resource name.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent resource name.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent resource name.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent resource name.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent resource name.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +     * 
            + * + * + * 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_; + + /** + * + * + *
            +     * Maximum number of
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s to return. If
            +     * unspecified, defaults to 100. The maximum allowed value is 1000; anything
            +     * above that will be coerced down to 1000.
            +     * 
            + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Maximum number of
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s to return. If
            +     * unspecified, defaults to 100. The maximum allowed value is 1000; anything
            +     * above that will be coerced down to 1000.
            +     * 
            + * + * 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; + } + + /** + * + * + *
            +     * Maximum number of
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s to return. If
            +     * unspecified, defaults to 100. The maximum allowed value is 1000; anything
            +     * above that will be coerced down to 1000.
            +     * 
            + * + * 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_ = ""; + + /** + * + * + *
            +     * A page token
            +     * [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListAssistantsResponse.next_page_token],
            +     * received from a previous
            +     * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * [ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +     * must match the call that provided the page token.
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * A page token
            +     * [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListAssistantsResponse.next_page_token],
            +     * received from a previous
            +     * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * [ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +     * must match the call that provided the page token.
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * A page token
            +     * [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListAssistantsResponse.next_page_token],
            +     * received from a previous
            +     * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * [ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +     * must match the call that provided the page token.
            +     * 
            + * + * 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; + } + + /** + * + * + *
            +     * A page token
            +     * [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListAssistantsResponse.next_page_token],
            +     * received from a previous
            +     * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * [ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +     * must match the call that provided the page token.
            +     * 
            + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A page token
            +     * [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListAssistantsResponse.next_page_token],
            +     * received from a previous
            +     * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * [ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +     * must match the call that provided the page token.
            +     * 
            + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListAssistantsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListAssistantsRequest) + private static final com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssistantsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.ListAssistantsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListAssistantsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListAssistantsRequestOrBuilder.java new file mode 100644 index 000000000000..c3e7b5f34955 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListAssistantsRequestOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface ListAssistantsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListAssistantsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent resource name.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent resource name.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Maximum number of
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s to return. If
            +   * unspecified, defaults to 100. The maximum allowed value is 1000; anything
            +   * above that will be coerced down to 1000.
            +   * 
            + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * A page token
            +   * [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListAssistantsResponse.next_page_token],
            +   * received from a previous
            +   * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +   * call. Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * [ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +   * must match the call that provided the page token.
            +   * 
            + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * A page token
            +   * [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListAssistantsResponse.next_page_token],
            +   * received from a previous
            +   * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +   * call. Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * [ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +   * must match the call that provided the page token.
            +   * 
            + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListAssistantsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListAssistantsResponse.java new file mode 100644 index 000000000000..71303e6d64f5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListAssistantsResponse.java @@ -0,0 +1,1176 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Response message for the
            + * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListAssistantsResponse} + */ +@com.google.protobuf.Generated +public final class ListAssistantsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListAssistantsResponse) + ListAssistantsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAssistantsResponse"); + } + + // Use ListAssistantsResponse.newBuilder() to construct. + private ListAssistantsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAssistantsResponse() { + assistants_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse.class, + com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse.Builder.class); + } + + public static final int ASSISTANTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List assistants_; + + /** + * + * + *
            +   * All the customer's
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + @java.lang.Override + public java.util.List getAssistantsList() { + return assistants_; + } + + /** + * + * + *
            +   * All the customer's
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + @java.lang.Override + public java.util.List + getAssistantsOrBuilderList() { + return assistants_; + } + + /** + * + * + *
            +   * All the customer's
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + @java.lang.Override + public int getAssistantsCount() { + return assistants_.size(); + } + + /** + * + * + *
            +   * All the customer's
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant getAssistants(int index) { + return assistants_.get(index); + } + + /** + * + * + *
            +   * All the customer's
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantOrBuilder getAssistantsOrBuilder( + int index) { + return assistants_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token that can be sent as
            +   * [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1beta.ListAssistantsRequest.page_token]
            +   * to retrieve the next page. 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 that can be sent as
            +   * [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1beta.ListAssistantsRequest.page_token]
            +   * to retrieve the next page. 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 < assistants_.size(); i++) { + output.writeMessage(1, assistants_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < assistants_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, assistants_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.discoveryengine.v1beta.ListAssistantsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse other = + (com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse) obj; + + if (!getAssistantsList().equals(other.getAssistantsList())) 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 (getAssistantsCount() > 0) { + hash = (37 * hash) + ASSISTANTS_FIELD_NUMBER; + hash = (53 * hash) + getAssistantsList().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.discoveryengine.v1beta.ListAssistantsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse 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.v1beta.ListAssistantsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse parseFrom( + 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.v1beta.ListAssistantsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response message for the
            +   * [AssistantService.ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListAssistantsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListAssistantsResponse) + com.google.cloud.discoveryengine.v1beta.ListAssistantsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse.class, + com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (assistantsBuilder_ == null) { + assistants_ = java.util.Collections.emptyList(); + } else { + assistants_ = null; + assistantsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListAssistantsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse build() { + com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse result = + new com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse result) { + if (assistantsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + assistants_ = java.util.Collections.unmodifiableList(assistants_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.assistants_ = assistants_; + } else { + result.assistants_ = assistantsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse.getDefaultInstance()) + return this; + if (assistantsBuilder_ == null) { + if (!other.assistants_.isEmpty()) { + if (assistants_.isEmpty()) { + assistants_ = other.assistants_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAssistantsIsMutable(); + assistants_.addAll(other.assistants_); + } + onChanged(); + } + } else { + if (!other.assistants_.isEmpty()) { + if (assistantsBuilder_.isEmpty()) { + assistantsBuilder_.dispose(); + assistantsBuilder_ = null; + assistants_ = other.assistants_; + bitField0_ = (bitField0_ & ~0x00000001); + assistantsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAssistantsFieldBuilder() + : null; + } else { + assistantsBuilder_.addAllMessages(other.assistants_); + } + } + } + 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.discoveryengine.v1beta.Assistant m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Assistant.parser(), + extensionRegistry); + if (assistantsBuilder_ == null) { + ensureAssistantsIsMutable(); + assistants_.add(m); + } else { + assistantsBuilder_.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 assistants_ = + java.util.Collections.emptyList(); + + private void ensureAssistantsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + assistants_ = + new java.util.ArrayList(assistants_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant, + com.google.cloud.discoveryengine.v1beta.Assistant.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantOrBuilder> + assistantsBuilder_; + + /** + * + * + *
            +     * All the customer's
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + public java.util.List getAssistantsList() { + if (assistantsBuilder_ == null) { + return java.util.Collections.unmodifiableList(assistants_); + } else { + return assistantsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + public int getAssistantsCount() { + if (assistantsBuilder_ == null) { + return assistants_.size(); + } else { + return assistantsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + public com.google.cloud.discoveryengine.v1beta.Assistant getAssistants(int index) { + if (assistantsBuilder_ == null) { + return assistants_.get(index); + } else { + return assistantsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + public Builder setAssistants( + int index, com.google.cloud.discoveryengine.v1beta.Assistant value) { + if (assistantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistantsIsMutable(); + assistants_.set(index, value); + onChanged(); + } else { + assistantsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + public Builder setAssistants( + int index, com.google.cloud.discoveryengine.v1beta.Assistant.Builder builderForValue) { + if (assistantsBuilder_ == null) { + ensureAssistantsIsMutable(); + assistants_.set(index, builderForValue.build()); + onChanged(); + } else { + assistantsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + public Builder addAssistants(com.google.cloud.discoveryengine.v1beta.Assistant value) { + if (assistantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistantsIsMutable(); + assistants_.add(value); + onChanged(); + } else { + assistantsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + public Builder addAssistants( + int index, com.google.cloud.discoveryengine.v1beta.Assistant value) { + if (assistantsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistantsIsMutable(); + assistants_.add(index, value); + onChanged(); + } else { + assistantsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + public Builder addAssistants( + com.google.cloud.discoveryengine.v1beta.Assistant.Builder builderForValue) { + if (assistantsBuilder_ == null) { + ensureAssistantsIsMutable(); + assistants_.add(builderForValue.build()); + onChanged(); + } else { + assistantsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + public Builder addAssistants( + int index, com.google.cloud.discoveryengine.v1beta.Assistant.Builder builderForValue) { + if (assistantsBuilder_ == null) { + ensureAssistantsIsMutable(); + assistants_.add(index, builderForValue.build()); + onChanged(); + } else { + assistantsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + public Builder addAllAssistants( + java.lang.Iterable values) { + if (assistantsBuilder_ == null) { + ensureAssistantsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assistants_); + onChanged(); + } else { + assistantsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + public Builder clearAssistants() { + if (assistantsBuilder_ == null) { + assistants_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + assistantsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + public Builder removeAssistants(int index) { + if (assistantsBuilder_ == null) { + ensureAssistantsIsMutable(); + assistants_.remove(index); + onChanged(); + } else { + assistantsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.Builder getAssistantsBuilder( + int index) { + return internalGetAssistantsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * All the customer's
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + public com.google.cloud.discoveryengine.v1beta.AssistantOrBuilder getAssistantsOrBuilder( + int index) { + if (assistantsBuilder_ == null) { + return assistants_.get(index); + } else { + return assistantsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + public java.util.List + getAssistantsOrBuilderList() { + if (assistantsBuilder_ != null) { + return assistantsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(assistants_); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.Builder addAssistantsBuilder() { + return internalGetAssistantsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1beta.Assistant.getDefaultInstance()); + } + + /** + * + * + *
            +     * All the customer's
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.Builder addAssistantsBuilder( + int index) { + return internalGetAssistantsFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1beta.Assistant.getDefaultInstance()); + } + + /** + * + * + *
            +     * All the customer's
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + public java.util.List + getAssistantsBuilderList() { + return internalGetAssistantsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant, + com.google.cloud.discoveryengine.v1beta.Assistant.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantOrBuilder> + internalGetAssistantsFieldBuilder() { + if (assistantsBuilder_ == null) { + assistantsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant, + com.google.cloud.discoveryengine.v1beta.Assistant.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantOrBuilder>( + assistants_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + assistants_ = null; + } + return assistantsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token that can be sent as
            +     * [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1beta.ListAssistantsRequest.page_token]
            +     * to retrieve the next page. 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 that can be sent as
            +     * [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1beta.ListAssistantsRequest.page_token]
            +     * to retrieve the next page. 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 that can be sent as
            +     * [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1beta.ListAssistantsRequest.page_token]
            +     * to retrieve the next page. 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 that can be sent as
            +     * [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1beta.ListAssistantsRequest.page_token]
            +     * to retrieve the next page. 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 that can be sent as
            +     * [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1beta.ListAssistantsRequest.page_token]
            +     * to retrieve the next page. 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListAssistantsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListAssistantsResponse) + private static final com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssistantsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.ListAssistantsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListAssistantsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListAssistantsResponseOrBuilder.java new file mode 100644 index 000000000000..2472e567004d --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListAssistantsResponseOrBuilder.java @@ -0,0 +1,121 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface ListAssistantsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListAssistantsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * All the customer's
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + java.util.List getAssistantsList(); + + /** + * + * + *
            +   * All the customer's
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + com.google.cloud.discoveryengine.v1beta.Assistant getAssistants(int index); + + /** + * + * + *
            +   * All the customer's
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + int getAssistantsCount(); + + /** + * + * + *
            +   * All the customer's
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + java.util.List + getAssistantsOrBuilderList(); + + /** + * + * + *
            +   * All the customer's
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.Assistant assistants = 1; + */ + com.google.cloud.discoveryengine.v1beta.AssistantOrBuilder getAssistantsOrBuilder(int index); + + /** + * + * + *
            +   * A token that can be sent as
            +   * [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1beta.ListAssistantsRequest.page_token]
            +   * to retrieve the next page. If this field is omitted, there are no
            +   * subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token that can be sent as
            +   * [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1beta.ListAssistantsRequest.page_token]
            +   * to retrieve the next page. 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-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListCmekConfigsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListCmekConfigsRequest.java new file mode 100644 index 000000000000..85291790de2b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListCmekConfigsRequest.java @@ -0,0 +1,663 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/cmek_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for
            + * [CmekConfigService.ListCmekConfigs][google.cloud.discoveryengine.v1beta.CmekConfigService.ListCmekConfigs]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest} + */ +@com.google.protobuf.Generated +public final class ListCmekConfigsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest) + ListCmekConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListCmekConfigsRequest"); + } + + // Use ListCmekConfigsRequest.newBuilder() to construct. + private ListCmekConfigsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListCmekConfigsRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListCmekConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListCmekConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest.class, + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent location resource name, such as
            +   * `projects/{project}/locations/{location}`.
            +   *
            +   * If the caller does not have permission to list
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s under this
            +   * location, regardless of whether or not a CmekConfig exists, a
            +   * PERMISSION_DENIED error is returned.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent location resource name, such as
            +   * `projects/{project}/locations/{location}`.
            +   *
            +   * If the caller does not have permission to list
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s under this
            +   * location, regardless of whether or not a CmekConfig exists, a
            +   * PERMISSION_DENIED error is returned.
            +   * 
            + * + * + * 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + 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.v1beta.ListCmekConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest other = + (com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest) obj; + + if (!getParent().equals(other.getParent())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest 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.v1beta.ListCmekConfigsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest parseFrom( + 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.v1beta.ListCmekConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [CmekConfigService.ListCmekConfigs][google.cloud.discoveryengine.v1beta.CmekConfigService.ListCmekConfigs]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest) + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListCmekConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListCmekConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest.class, + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListCmekConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest build() { + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest result = + new com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + 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: + { + parent_ = 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 parent_ = ""; + + /** + * + * + *
            +     * Required. The parent location resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     *
            +     * If the caller does not have permission to list
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s under this
            +     * location, regardless of whether or not a CmekConfig exists, a
            +     * PERMISSION_DENIED error is returned.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent location resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     *
            +     * If the caller does not have permission to list
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s under this
            +     * location, regardless of whether or not a CmekConfig exists, a
            +     * PERMISSION_DENIED error is returned.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent location resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     *
            +     * If the caller does not have permission to list
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s under this
            +     * location, regardless of whether or not a CmekConfig exists, a
            +     * PERMISSION_DENIED error is returned.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent location resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     *
            +     * If the caller does not have permission to list
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s under this
            +     * location, regardless of whether or not a CmekConfig exists, a
            +     * PERMISSION_DENIED error is returned.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent location resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     *
            +     * If the caller does not have permission to list
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s under this
            +     * location, regardless of whether or not a CmekConfig exists, a
            +     * PERMISSION_DENIED error is returned.
            +     * 
            + * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest) + private static final com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCmekConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.ListCmekConfigsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListCmekConfigsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListCmekConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..2a6811978b5c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListCmekConfigsRequestOrBuilder.java @@ -0,0 +1,70 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/cmek_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface ListCmekConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent location resource name, such as
            +   * `projects/{project}/locations/{location}`.
            +   *
            +   * If the caller does not have permission to list
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s under this
            +   * location, regardless of whether or not a CmekConfig exists, a
            +   * PERMISSION_DENIED error is returned.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent location resource name, such as
            +   * `projects/{project}/locations/{location}`.
            +   *
            +   * If the caller does not have permission to list
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s under this
            +   * location, regardless of whether or not a CmekConfig exists, a
            +   * PERMISSION_DENIED error is returned.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListCmekConfigsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListCmekConfigsResponse.java new file mode 100644 index 000000000000..09cff5f8924d --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListCmekConfigsResponse.java @@ -0,0 +1,968 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/cmek_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Response message for
            + * [CmekConfigService.ListCmekConfigs][google.cloud.discoveryengine.v1beta.CmekConfigService.ListCmekConfigs]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse} + */ +@com.google.protobuf.Generated +public final class ListCmekConfigsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse) + ListCmekConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListCmekConfigsResponse"); + } + + // Use ListCmekConfigsResponse.newBuilder() to construct. + private ListCmekConfigsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListCmekConfigsResponse() { + cmekConfigs_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListCmekConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListCmekConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse.class, + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse.Builder.class); + } + + public static final int CMEK_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List cmekConfigs_; + + /** + * + * + *
            +   * All the customer's
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + @java.lang.Override + public java.util.List getCmekConfigsList() { + return cmekConfigs_; + } + + /** + * + * + *
            +   * All the customer's
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + @java.lang.Override + public java.util.List + getCmekConfigsOrBuilderList() { + return cmekConfigs_; + } + + /** + * + * + *
            +   * All the customer's
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + @java.lang.Override + public int getCmekConfigsCount() { + return cmekConfigs_.size(); + } + + /** + * + * + *
            +   * All the customer's
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CmekConfig getCmekConfigs(int index) { + return cmekConfigs_.get(index); + } + + /** + * + * + *
            +   * All the customer's
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder getCmekConfigsOrBuilder( + int index) { + return cmekConfigs_.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 < cmekConfigs_.size(); i++) { + output.writeMessage(1, cmekConfigs_.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 < cmekConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, cmekConfigs_.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.v1beta.ListCmekConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse other = + (com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse) obj; + + if (!getCmekConfigsList().equals(other.getCmekConfigsList())) 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 (getCmekConfigsCount() > 0) { + hash = (37 * hash) + CMEK_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getCmekConfigsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse 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.v1beta.ListCmekConfigsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse parseFrom( + 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.v1beta.ListCmekConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response message for
            +   * [CmekConfigService.ListCmekConfigs][google.cloud.discoveryengine.v1beta.CmekConfigService.ListCmekConfigs]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse) + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListCmekConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListCmekConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse.class, + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (cmekConfigsBuilder_ == null) { + cmekConfigs_ = java.util.Collections.emptyList(); + } else { + cmekConfigs_ = null; + cmekConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListCmekConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse build() { + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse result = + new com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse result) { + if (cmekConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + cmekConfigs_ = java.util.Collections.unmodifiableList(cmekConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.cmekConfigs_ = cmekConfigs_; + } else { + result.cmekConfigs_ = cmekConfigsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse.getDefaultInstance()) + return this; + if (cmekConfigsBuilder_ == null) { + if (!other.cmekConfigs_.isEmpty()) { + if (cmekConfigs_.isEmpty()) { + cmekConfigs_ = other.cmekConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCmekConfigsIsMutable(); + cmekConfigs_.addAll(other.cmekConfigs_); + } + onChanged(); + } + } else { + if (!other.cmekConfigs_.isEmpty()) { + if (cmekConfigsBuilder_.isEmpty()) { + cmekConfigsBuilder_.dispose(); + cmekConfigsBuilder_ = null; + cmekConfigs_ = other.cmekConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + cmekConfigsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCmekConfigsFieldBuilder() + : null; + } else { + cmekConfigsBuilder_.addAllMessages(other.cmekConfigs_); + } + } + } + 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.v1beta.CmekConfig m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.CmekConfig.parser(), + extensionRegistry); + if (cmekConfigsBuilder_ == null) { + ensureCmekConfigsIsMutable(); + cmekConfigs_.add(m); + } else { + cmekConfigsBuilder_.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 cmekConfigs_ = + java.util.Collections.emptyList(); + + private void ensureCmekConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + cmekConfigs_ = + new java.util.ArrayList( + cmekConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.CmekConfig, + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder> + cmekConfigsBuilder_; + + /** + * + * + *
            +     * All the customer's
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + public java.util.List getCmekConfigsList() { + if (cmekConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(cmekConfigs_); + } else { + return cmekConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + public int getCmekConfigsCount() { + if (cmekConfigsBuilder_ == null) { + return cmekConfigs_.size(); + } else { + return cmekConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + public com.google.cloud.discoveryengine.v1beta.CmekConfig getCmekConfigs(int index) { + if (cmekConfigsBuilder_ == null) { + return cmekConfigs_.get(index); + } else { + return cmekConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + public Builder setCmekConfigs( + int index, com.google.cloud.discoveryengine.v1beta.CmekConfig value) { + if (cmekConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCmekConfigsIsMutable(); + cmekConfigs_.set(index, value); + onChanged(); + } else { + cmekConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + public Builder setCmekConfigs( + int index, com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder builderForValue) { + if (cmekConfigsBuilder_ == null) { + ensureCmekConfigsIsMutable(); + cmekConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + cmekConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + public Builder addCmekConfigs(com.google.cloud.discoveryengine.v1beta.CmekConfig value) { + if (cmekConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCmekConfigsIsMutable(); + cmekConfigs_.add(value); + onChanged(); + } else { + cmekConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + public Builder addCmekConfigs( + int index, com.google.cloud.discoveryengine.v1beta.CmekConfig value) { + if (cmekConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCmekConfigsIsMutable(); + cmekConfigs_.add(index, value); + onChanged(); + } else { + cmekConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + public Builder addCmekConfigs( + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder builderForValue) { + if (cmekConfigsBuilder_ == null) { + ensureCmekConfigsIsMutable(); + cmekConfigs_.add(builderForValue.build()); + onChanged(); + } else { + cmekConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + public Builder addCmekConfigs( + int index, com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder builderForValue) { + if (cmekConfigsBuilder_ == null) { + ensureCmekConfigsIsMutable(); + cmekConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + cmekConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + public Builder addAllCmekConfigs( + java.lang.Iterable values) { + if (cmekConfigsBuilder_ == null) { + ensureCmekConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cmekConfigs_); + onChanged(); + } else { + cmekConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + public Builder clearCmekConfigs() { + if (cmekConfigsBuilder_ == null) { + cmekConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + cmekConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + public Builder removeCmekConfigs(int index) { + if (cmekConfigsBuilder_ == null) { + ensureCmekConfigsIsMutable(); + cmekConfigs_.remove(index); + onChanged(); + } else { + cmekConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + public com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder getCmekConfigsBuilder( + int index) { + return internalGetCmekConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * All the customer's
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + public com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder getCmekConfigsOrBuilder( + int index) { + if (cmekConfigsBuilder_ == null) { + return cmekConfigs_.get(index); + } else { + return cmekConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + public java.util.List + getCmekConfigsOrBuilderList() { + if (cmekConfigsBuilder_ != null) { + return cmekConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cmekConfigs_); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + public com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder addCmekConfigsBuilder() { + return internalGetCmekConfigsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance()); + } + + /** + * + * + *
            +     * All the customer's
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + public com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder addCmekConfigsBuilder( + int index) { + return internalGetCmekConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance()); + } + + /** + * + * + *
            +     * All the customer's
            +     * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + public java.util.List + getCmekConfigsBuilderList() { + return internalGetCmekConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.CmekConfig, + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder> + internalGetCmekConfigsFieldBuilder() { + if (cmekConfigsBuilder_ == null) { + cmekConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.CmekConfig, + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder>( + cmekConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + cmekConfigs_ = null; + } + return cmekConfigsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse) + private static final com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCmekConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.ListCmekConfigsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListCmekConfigsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListCmekConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..77726fd65ec6 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListCmekConfigsResponseOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/cmek_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface ListCmekConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * All the customer's
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + java.util.List getCmekConfigsList(); + + /** + * + * + *
            +   * All the customer's
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + com.google.cloud.discoveryengine.v1beta.CmekConfig getCmekConfigs(int index); + + /** + * + * + *
            +   * All the customer's
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + int getCmekConfigsCount(); + + /** + * + * + *
            +   * All the customer's
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + java.util.List + getCmekConfigsOrBuilderList(); + + /** + * + * + *
            +   * All the customer's
            +   * [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.CmekConfig cmek_configs = 1; + */ + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder getCmekConfigsOrBuilder(int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsRequest.java index 23856b96ac12..49bbb84241a8 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsRequest.java @@ -85,9 +85,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. The evaluation resource name, such as * `projects/{project}/locations/{location}/evaluations/{evaluation}`. * - * If the caller does not have permission to list [EvaluationResult][] - * under this evaluation, regardless of whether or not this evaluation - * set exists, a `PERMISSION_DENIED` error is returned. + * If the caller does not have permission to list + * [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult] + * under this evaluation, regardless of whether or not this evaluation set + * exists, a `PERMISSION_DENIED` error is returned. * * * @@ -116,9 +117,10 @@ public java.lang.String getEvaluation() { * Required. The evaluation resource name, such as * `projects/{project}/locations/{location}/evaluations/{evaluation}`. * - * If the caller does not have permission to list [EvaluationResult][] - * under this evaluation, regardless of whether or not this evaluation - * set exists, a `PERMISSION_DENIED` error is returned. + * If the caller does not have permission to list + * [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult] + * under this evaluation, regardless of whether or not this evaluation set + * exists, a `PERMISSION_DENIED` error is returned. * * * @@ -147,14 +149,15 @@ public com.google.protobuf.ByteString getEvaluationBytes() { * * *
            -   * Maximum number of [EvaluationResult][] to return. If unspecified,
            -   * defaults to 100. The maximum allowed value is 1000. Values above 1000 will
            -   * be coerced to 1000.
            +   * Optional. Maximum number of
            +   * [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]
            +   * to return. If unspecified, defaults to 100. The maximum allowed value is
            +   * 1000. Values above 1000 will be coerced to 1000.
                *
                * If this field is negative, an `INVALID_ARGUMENT` error is returned.
                * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -172,7 +175,7 @@ public int getPageSize() { * * *
            -   * A page token
            +   * Optional. A page token
                * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token],
                * received from a previous
                * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
            @@ -184,7 +187,7 @@ public int getPageSize() {
                * `INVALID_ARGUMENT` error is returned.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -205,7 +208,7 @@ public java.lang.String getPageToken() { * * *
            -   * A page token
            +   * Optional. A page token
                * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token],
                * received from a previous
                * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
            @@ -217,7 +220,7 @@ public java.lang.String getPageToken() {
                * `INVALID_ARGUMENT` error is returned.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -610,9 +613,10 @@ public Builder mergeFrom( * Required. The evaluation resource name, such as * `projects/{project}/locations/{location}/evaluations/{evaluation}`. * - * If the caller does not have permission to list [EvaluationResult][] - * under this evaluation, regardless of whether or not this evaluation - * set exists, a `PERMISSION_DENIED` error is returned. + * If the caller does not have permission to list + * [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult] + * under this evaluation, regardless of whether or not this evaluation set + * exists, a `PERMISSION_DENIED` error is returned. * * * @@ -640,9 +644,10 @@ public java.lang.String getEvaluation() { * Required. The evaluation resource name, such as * `projects/{project}/locations/{location}/evaluations/{evaluation}`. * - * If the caller does not have permission to list [EvaluationResult][] - * under this evaluation, regardless of whether or not this evaluation - * set exists, a `PERMISSION_DENIED` error is returned. + * If the caller does not have permission to list + * [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult] + * under this evaluation, regardless of whether or not this evaluation set + * exists, a `PERMISSION_DENIED` error is returned. * * * @@ -670,9 +675,10 @@ public com.google.protobuf.ByteString getEvaluationBytes() { * Required. The evaluation resource name, such as * `projects/{project}/locations/{location}/evaluations/{evaluation}`. * - * If the caller does not have permission to list [EvaluationResult][] - * under this evaluation, regardless of whether or not this evaluation - * set exists, a `PERMISSION_DENIED` error is returned. + * If the caller does not have permission to list + * [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult] + * under this evaluation, regardless of whether or not this evaluation set + * exists, a `PERMISSION_DENIED` error is returned. * * * @@ -699,9 +705,10 @@ public Builder setEvaluation(java.lang.String value) { * Required. The evaluation resource name, such as * `projects/{project}/locations/{location}/evaluations/{evaluation}`. * - * If the caller does not have permission to list [EvaluationResult][] - * under this evaluation, regardless of whether or not this evaluation - * set exists, a `PERMISSION_DENIED` error is returned. + * If the caller does not have permission to list + * [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult] + * under this evaluation, regardless of whether or not this evaluation set + * exists, a `PERMISSION_DENIED` error is returned. * * * @@ -724,9 +731,10 @@ public Builder clearEvaluation() { * Required. The evaluation resource name, such as * `projects/{project}/locations/{location}/evaluations/{evaluation}`. * - * If the caller does not have permission to list [EvaluationResult][] - * under this evaluation, regardless of whether or not this evaluation - * set exists, a `PERMISSION_DENIED` error is returned. + * If the caller does not have permission to list + * [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult] + * under this evaluation, regardless of whether or not this evaluation set + * exists, a `PERMISSION_DENIED` error is returned. * * * @@ -753,14 +761,15 @@ public Builder setEvaluationBytes(com.google.protobuf.ByteString value) { * * *
            -     * Maximum number of [EvaluationResult][] to return. If unspecified,
            -     * defaults to 100. The maximum allowed value is 1000. Values above 1000 will
            -     * be coerced to 1000.
            +     * Optional. Maximum number of
            +     * [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]
            +     * to return. If unspecified, defaults to 100. The maximum allowed value is
            +     * 1000. Values above 1000 will be coerced to 1000.
                  *
                  * If this field is negative, an `INVALID_ARGUMENT` error is returned.
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -773,14 +782,15 @@ public int getPageSize() { * * *
            -     * Maximum number of [EvaluationResult][] to return. If unspecified,
            -     * defaults to 100. The maximum allowed value is 1000. Values above 1000 will
            -     * be coerced to 1000.
            +     * Optional. Maximum number of
            +     * [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]
            +     * to return. If unspecified, defaults to 100. The maximum allowed value is
            +     * 1000. Values above 1000 will be coerced to 1000.
                  *
                  * If this field is negative, an `INVALID_ARGUMENT` error is returned.
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -797,14 +807,15 @@ public Builder setPageSize(int value) { * * *
            -     * Maximum number of [EvaluationResult][] to return. If unspecified,
            -     * defaults to 100. The maximum allowed value is 1000. Values above 1000 will
            -     * be coerced to 1000.
            +     * Optional. Maximum number of
            +     * [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]
            +     * to return. If unspecified, defaults to 100. The maximum allowed value is
            +     * 1000. Values above 1000 will be coerced to 1000.
                  *
                  * If this field is negative, an `INVALID_ARGUMENT` error is returned.
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -821,7 +832,7 @@ public Builder clearPageSize() { * * *
            -     * A page token
            +     * Optional. A page token
                  * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token],
                  * received from a previous
                  * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
            @@ -833,7 +844,7 @@ public Builder clearPageSize() {
                  * `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -853,7 +864,7 @@ public java.lang.String getPageToken() { * * *
            -     * A page token
            +     * Optional. A page token
                  * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token],
                  * received from a previous
                  * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
            @@ -865,7 +876,7 @@ public java.lang.String getPageToken() {
                  * `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -885,7 +896,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
            -     * A page token
            +     * Optional. A page token
                  * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token],
                  * received from a previous
                  * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
            @@ -897,7 +908,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
                  * `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -916,7 +927,7 @@ public Builder setPageToken(java.lang.String value) { * * *
            -     * A page token
            +     * Optional. A page token
                  * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token],
                  * received from a previous
                  * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
            @@ -928,7 +939,7 @@ public Builder setPageToken(java.lang.String value) {
                  * `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -943,7 +954,7 @@ public Builder clearPageToken() { * * *
            -     * A page token
            +     * Optional. A page token
                  * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token],
                  * received from a previous
                  * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
            @@ -955,7 +966,7 @@ public Builder clearPageToken() {
                  * `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsRequestOrBuilder.java index d5a616cbd902..1988e653426e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsRequestOrBuilder.java @@ -33,9 +33,10 @@ public interface ListEvaluationResultsRequestOrBuilder * Required. The evaluation resource name, such as * `projects/{project}/locations/{location}/evaluations/{evaluation}`. * - * If the caller does not have permission to list [EvaluationResult][] - * under this evaluation, regardless of whether or not this evaluation - * set exists, a `PERMISSION_DENIED` error is returned. + * If the caller does not have permission to list + * [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult] + * under this evaluation, regardless of whether or not this evaluation set + * exists, a `PERMISSION_DENIED` error is returned. * * * @@ -53,9 +54,10 @@ public interface ListEvaluationResultsRequestOrBuilder * Required. The evaluation resource name, such as * `projects/{project}/locations/{location}/evaluations/{evaluation}`. * - * If the caller does not have permission to list [EvaluationResult][] - * under this evaluation, regardless of whether or not this evaluation - * set exists, a `PERMISSION_DENIED` error is returned. + * If the caller does not have permission to list + * [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult] + * under this evaluation, regardless of whether or not this evaluation set + * exists, a `PERMISSION_DENIED` error is returned. * * * @@ -70,14 +72,15 @@ public interface ListEvaluationResultsRequestOrBuilder * * *
            -   * Maximum number of [EvaluationResult][] to return. If unspecified,
            -   * defaults to 100. The maximum allowed value is 1000. Values above 1000 will
            -   * be coerced to 1000.
            +   * Optional. Maximum number of
            +   * [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]
            +   * to return. If unspecified, defaults to 100. The maximum allowed value is
            +   * 1000. Values above 1000 will be coerced to 1000.
                *
                * If this field is negative, an `INVALID_ARGUMENT` error is returned.
                * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -87,7 +90,7 @@ public interface ListEvaluationResultsRequestOrBuilder * * *
            -   * A page token
            +   * Optional. A page token
                * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token],
                * received from a previous
                * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
            @@ -99,7 +102,7 @@ public interface ListEvaluationResultsRequestOrBuilder
                * `INVALID_ARGUMENT` error is returned.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -109,7 +112,7 @@ public interface ListEvaluationResultsRequestOrBuilder * * *
            -   * A page token
            +   * Optional. A page token
                * [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token],
                * received from a previous
                * [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults]
            @@ -121,7 +124,7 @@ public interface ListEvaluationResultsRequestOrBuilder
                * `INVALID_ARGUMENT` error is returned.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsResponse.java index 44ae2253a5e3..66583165a3e3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsResponse.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsResponse.java @@ -1297,8 +1297,8 @@ public com.google.protobuf.Parser getParserForType() { * * *
            -   * The
            -   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +   * The evaluation results for the
            +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                * 
            * * @@ -1316,8 +1316,8 @@ public com.google.protobuf.Parser getParserForType() { * * *
            -   * The
            -   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +   * The evaluation results for the
            +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                * 
            * * @@ -1337,8 +1337,8 @@ public com.google.protobuf.Parser getParserForType() { * * *
            -   * The
            -   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +   * The evaluation results for the
            +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                * 
            * * @@ -1354,8 +1354,8 @@ public int getEvaluationResultsCount() { * * *
            -   * The
            -   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +   * The evaluation results for the
            +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                * 
            * * @@ -1372,8 +1372,8 @@ public int getEvaluationResultsCount() { * * *
            -   * The
            -   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +   * The evaluation results for the
            +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                * 
            * * @@ -1870,8 +1870,8 @@ private void ensureEvaluationResultsIsMutable() { * * *
            -     * The
            -     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +     * The evaluation results for the
            +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                  * 
            * * @@ -1892,8 +1892,8 @@ private void ensureEvaluationResultsIsMutable() { * * *
            -     * The
            -     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +     * The evaluation results for the
            +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                  * 
            * * @@ -1912,8 +1912,8 @@ public int getEvaluationResultsCount() { * * *
            -     * The
            -     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +     * The evaluation results for the
            +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                  * 
            * * @@ -1933,8 +1933,8 @@ public int getEvaluationResultsCount() { * * *
            -     * The
            -     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +     * The evaluation results for the
            +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                  * 
            * * @@ -1962,8 +1962,8 @@ public Builder setEvaluationResults( * * *
            -     * The
            -     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +     * The evaluation results for the
            +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                  * 
            * * @@ -1989,8 +1989,8 @@ public Builder setEvaluationResults( * * *
            -     * The
            -     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +     * The evaluation results for the
            +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                  * 
            * * @@ -2017,8 +2017,8 @@ public Builder addEvaluationResults( * * *
            -     * The
            -     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +     * The evaluation results for the
            +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                  * 
            * * @@ -2046,8 +2046,8 @@ public Builder addEvaluationResults( * * *
            -     * The
            -     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +     * The evaluation results for the
            +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                  * 
            * * @@ -2072,8 +2072,8 @@ public Builder addEvaluationResults( * * *
            -     * The
            -     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +     * The evaluation results for the
            +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                  * 
            * * @@ -2099,8 +2099,8 @@ public Builder addEvaluationResults( * * *
            -     * The
            -     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +     * The evaluation results for the
            +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                  * 
            * * @@ -2127,8 +2127,8 @@ public Builder addAllEvaluationResults( * * *
            -     * The
            -     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +     * The evaluation results for the
            +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                  * 
            * * @@ -2150,8 +2150,8 @@ public Builder clearEvaluationResults() { * * *
            -     * The
            -     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +     * The evaluation results for the
            +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                  * 
            * * @@ -2173,8 +2173,8 @@ public Builder removeEvaluationResults(int index) { * * *
            -     * The
            -     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +     * The evaluation results for the
            +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                  * 
            * * @@ -2191,8 +2191,8 @@ public Builder removeEvaluationResults(int index) { * * *
            -     * The
            -     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +     * The evaluation results for the
            +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                  * 
            * * @@ -2213,8 +2213,8 @@ public Builder removeEvaluationResults(int index) { * * *
            -     * The
            -     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +     * The evaluation results for the
            +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                  * 
            * * @@ -2237,8 +2237,8 @@ public Builder removeEvaluationResults(int index) { * * *
            -     * The
            -     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +     * The evaluation results for the
            +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                  * 
            * * @@ -2258,8 +2258,8 @@ public Builder removeEvaluationResults(int index) { * * *
            -     * The
            -     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +     * The evaluation results for the
            +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                  * 
            * * @@ -2280,8 +2280,8 @@ public Builder removeEvaluationResults(int index) { * * *
            -     * The
            -     * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +     * The evaluation results for the
            +     * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                  * 
            * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsResponseOrBuilder.java index d111e0e73df6..2b01f062f656 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsResponseOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationResultsResponseOrBuilder.java @@ -30,8 +30,8 @@ public interface ListEvaluationResultsResponseOrBuilder * * *
            -   * The
            -   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +   * The evaluation results for the
            +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                * 
            * * @@ -46,8 +46,8 @@ public interface ListEvaluationResultsResponseOrBuilder * * *
            -   * The
            -   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +   * The evaluation results for the
            +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                * 
            * * @@ -61,8 +61,8 @@ public interface ListEvaluationResultsResponseOrBuilder * * *
            -   * The
            -   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +   * The evaluation results for the
            +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                * 
            * * @@ -75,8 +75,8 @@ public interface ListEvaluationResultsResponseOrBuilder * * *
            -   * The
            -   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +   * The evaluation results for the
            +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                * 
            * * @@ -93,8 +93,8 @@ public interface ListEvaluationResultsResponseOrBuilder * * *
            -   * The
            -   * [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s.
            +   * The evaluation results for the
            +   * [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s.
                * 
            * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsRequest.java index 4b4eaf22a619..c2f4b538e11a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsRequest.java @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
            -   * Maximum number of
            +   * Optional. Maximum number of
                * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s to return. If
                * unspecified, defaults to 100. The maximum allowed value is 1000. Values
                * above 1000 will be coerced to 1000.
            @@ -157,7 +157,7 @@ public com.google.protobuf.ByteString getParentBytes() {
                * If this field is negative, an `INVALID_ARGUMENT` error is returned.
                * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -175,7 +175,7 @@ public int getPageSize() { * * *
            -   * A page token
            +   * Optional. A page token
                * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token],
                * received from a previous
                * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
            @@ -187,7 +187,7 @@ public int getPageSize() {
                * `INVALID_ARGUMENT` error is returned.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -208,7 +208,7 @@ public java.lang.String getPageToken() { * * *
            -   * A page token
            +   * Optional. A page token
                * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token],
                * received from a previous
                * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
            @@ -220,7 +220,7 @@ public java.lang.String getPageToken() {
                * `INVALID_ARGUMENT` error is returned.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -756,7 +756,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
            -     * Maximum number of
            +     * Optional. Maximum number of
                  * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s to return. If
                  * unspecified, defaults to 100. The maximum allowed value is 1000. Values
                  * above 1000 will be coerced to 1000.
            @@ -764,7 +764,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
                  * If this field is negative, an `INVALID_ARGUMENT` error is returned.
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -777,7 +777,7 @@ public int getPageSize() { * * *
            -     * Maximum number of
            +     * Optional. Maximum number of
                  * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s to return. If
                  * unspecified, defaults to 100. The maximum allowed value is 1000. Values
                  * above 1000 will be coerced to 1000.
            @@ -785,7 +785,7 @@ public int getPageSize() {
                  * If this field is negative, an `INVALID_ARGUMENT` error is returned.
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -802,7 +802,7 @@ public Builder setPageSize(int value) { * * *
            -     * Maximum number of
            +     * Optional. Maximum number of
                  * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s to return. If
                  * unspecified, defaults to 100. The maximum allowed value is 1000. Values
                  * above 1000 will be coerced to 1000.
            @@ -810,7 +810,7 @@ public Builder setPageSize(int value) {
                  * If this field is negative, an `INVALID_ARGUMENT` error is returned.
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -827,7 +827,7 @@ public Builder clearPageSize() { * * *
            -     * A page token
            +     * Optional. A page token
                  * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token],
                  * received from a previous
                  * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
            @@ -839,7 +839,7 @@ public Builder clearPageSize() {
                  * `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -859,7 +859,7 @@ public java.lang.String getPageToken() { * * *
            -     * A page token
            +     * Optional. A page token
                  * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token],
                  * received from a previous
                  * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
            @@ -871,7 +871,7 @@ public java.lang.String getPageToken() {
                  * `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -891,7 +891,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
            -     * A page token
            +     * Optional. A page token
                  * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token],
                  * received from a previous
                  * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
            @@ -903,7 +903,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
                  * `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -922,7 +922,7 @@ public Builder setPageToken(java.lang.String value) { * * *
            -     * A page token
            +     * Optional. A page token
                  * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token],
                  * received from a previous
                  * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
            @@ -934,7 +934,7 @@ public Builder setPageToken(java.lang.String value) {
                  * `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -949,7 +949,7 @@ public Builder clearPageToken() { * * *
            -     * A page token
            +     * Optional. A page token
                  * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token],
                  * received from a previous
                  * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
            @@ -961,7 +961,7 @@ public Builder clearPageToken() {
                  * `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsRequestOrBuilder.java index bde3f56e4c90..16e1bd542b7b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListEvaluationsRequestOrBuilder.java @@ -72,7 +72,7 @@ public interface ListEvaluationsRequestOrBuilder * * *
            -   * Maximum number of
            +   * Optional. Maximum number of
                * [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s to return. If
                * unspecified, defaults to 100. The maximum allowed value is 1000. Values
                * above 1000 will be coerced to 1000.
            @@ -80,7 +80,7 @@ public interface ListEvaluationsRequestOrBuilder
                * If this field is negative, an `INVALID_ARGUMENT` error is returned.
                * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -90,7 +90,7 @@ public interface ListEvaluationsRequestOrBuilder * * *
            -   * A page token
            +   * Optional. A page token
                * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token],
                * received from a previous
                * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
            @@ -102,7 +102,7 @@ public interface ListEvaluationsRequestOrBuilder
                * `INVALID_ARGUMENT` error is returned.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -112,7 +112,7 @@ public interface ListEvaluationsRequestOrBuilder * * *
            -   * A page token
            +   * Optional. A page token
                * [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token],
                * received from a previous
                * [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations]
            @@ -124,7 +124,7 @@ public interface ListEvaluationsRequestOrBuilder
                * `INVALID_ARGUMENT` error is returned.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingStoresRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingStoresRequest.java new file mode 100644 index 000000000000..e613a58ebd51 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingStoresRequest.java @@ -0,0 +1,973 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for
            + * [IdentityMappingStoreService.ListIdentityMappingStores][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ListIdentityMappingStores]
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest} + */ +@com.google.protobuf.Generated +public final class ListIdentityMappingStoresRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest) + ListIdentityMappingStoresRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListIdentityMappingStoresRequest"); + } + + // Use ListIdentityMappingStoresRequest.newBuilder() to construct. + private ListIdentityMappingStoresRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListIdentityMappingStoresRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest.class, + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent of the Identity Mapping Stores to list.
            +   * Format:
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent of the Identity Mapping Stores to list.
            +   * Format:
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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; + + /** + * + * + *
            +   * Maximum number of IdentityMappingStores to return. If unspecified, defaults
            +   * to 100. The maximum allowed value is 1000. Values above 1000 will be
            +   * coerced to 1000.
            +   * 
            + * + * 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_ = ""; + + /** + * + * + *
            +   * A page token, received from a previous `ListIdentityMappingStores` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `ListIdentityMappingStores` must match the call that provided the page
            +   * token.
            +   * 
            + * + * 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; + } + } + + /** + * + * + *
            +   * A page token, received from a previous `ListIdentityMappingStores` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `ListIdentityMappingStores` must match the call that provided the page
            +   * token.
            +   * 
            + * + * 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest other = + (com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest) 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.discoveryengine.v1beta.ListIdentityMappingStoresRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest 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.v1beta.ListIdentityMappingStoresRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest parseFrom( + 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.v1beta.ListIdentityMappingStoresRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [IdentityMappingStoreService.ListIdentityMappingStores][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ListIdentityMappingStores]
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest) + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest.class, + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest build() { + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest result = + new com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest + .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 parent of the Identity Mapping Stores to list.
            +     * Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent of the Identity Mapping Stores to list.
            +     * Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent of the Identity Mapping Stores to list.
            +     * Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent of the Identity Mapping Stores to list.
            +     * Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent of the Identity Mapping Stores to list.
            +     * Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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_; + + /** + * + * + *
            +     * Maximum number of IdentityMappingStores to return. If unspecified, defaults
            +     * to 100. The maximum allowed value is 1000. Values above 1000 will be
            +     * coerced to 1000.
            +     * 
            + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Maximum number of IdentityMappingStores to return. If unspecified, defaults
            +     * to 100. The maximum allowed value is 1000. Values above 1000 will be
            +     * coerced to 1000.
            +     * 
            + * + * 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; + } + + /** + * + * + *
            +     * Maximum number of IdentityMappingStores to return. If unspecified, defaults
            +     * to 100. The maximum allowed value is 1000. Values above 1000 will be
            +     * coerced to 1000.
            +     * 
            + * + * 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_ = ""; + + /** + * + * + *
            +     * A page token, received from a previous `ListIdentityMappingStores` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `ListIdentityMappingStores` must match the call that provided the page
            +     * token.
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * A page token, received from a previous `ListIdentityMappingStores` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `ListIdentityMappingStores` must match the call that provided the page
            +     * token.
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * A page token, received from a previous `ListIdentityMappingStores` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `ListIdentityMappingStores` must match the call that provided the page
            +     * token.
            +     * 
            + * + * 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; + } + + /** + * + * + *
            +     * A page token, received from a previous `ListIdentityMappingStores` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `ListIdentityMappingStores` must match the call that provided the page
            +     * token.
            +     * 
            + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A page token, received from a previous `ListIdentityMappingStores` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `ListIdentityMappingStores` must match the call that provided the page
            +     * token.
            +     * 
            + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest) + private static final com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIdentityMappingStoresRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.ListIdentityMappingStoresRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingStoresRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingStoresRequestOrBuilder.java new file mode 100644 index 000000000000..c75ef99a6651 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingStoresRequestOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface ListIdentityMappingStoresRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent of the Identity Mapping Stores to list.
            +   * Format:
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent of the Identity Mapping Stores to list.
            +   * Format:
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Maximum number of IdentityMappingStores to return. If unspecified, defaults
            +   * to 100. The maximum allowed value is 1000. Values above 1000 will be
            +   * coerced to 1000.
            +   * 
            + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * A page token, received from a previous `ListIdentityMappingStores` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `ListIdentityMappingStores` must match the call that provided the page
            +   * token.
            +   * 
            + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * A page token, received from a previous `ListIdentityMappingStores` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `ListIdentityMappingStores` must match the call that provided the page
            +   * token.
            +   * 
            + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingStoresResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingStoresResponse.java new file mode 100644 index 000000000000..ec30911d7392 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingStoresResponse.java @@ -0,0 +1,1216 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Response message for
            + * [IdentityMappingStoreService.ListIdentityMappingStores][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ListIdentityMappingStores]
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse} + */ +@com.google.protobuf.Generated +public final class ListIdentityMappingStoresResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse) + ListIdentityMappingStoresResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListIdentityMappingStoresResponse"); + } + + // Use ListIdentityMappingStoresResponse.newBuilder() to construct. + private ListIdentityMappingStoresResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListIdentityMappingStoresResponse() { + identityMappingStores_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse.class, + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse.Builder + .class); + } + + public static final int IDENTITY_MAPPING_STORES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + identityMappingStores_; + + /** + * + * + *
            +   * The Identity Mapping Stores.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + @java.lang.Override + public java.util.List + getIdentityMappingStoresList() { + return identityMappingStores_; + } + + /** + * + * + *
            +   * The Identity Mapping Stores.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreOrBuilder> + getIdentityMappingStoresOrBuilderList() { + return identityMappingStores_; + } + + /** + * + * + *
            +   * The Identity Mapping Stores.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + @java.lang.Override + public int getIdentityMappingStoresCount() { + return identityMappingStores_.size(); + } + + /** + * + * + *
            +   * The Identity Mapping Stores.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdentityMappingStore getIdentityMappingStores( + int index) { + return identityMappingStores_.get(index); + } + + /** + * + * + *
            +   * The Identity Mapping Stores.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreOrBuilder + getIdentityMappingStoresOrBuilder(int index) { + return identityMappingStores_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token that can be sent as `page_token` to retrieve the next page. 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 that can be sent as `page_token` to retrieve the next page. 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 < identityMappingStores_.size(); i++) { + output.writeMessage(1, identityMappingStores_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < identityMappingStores_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, identityMappingStores_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.discoveryengine.v1beta.ListIdentityMappingStoresResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse other = + (com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse) obj; + + if (!getIdentityMappingStoresList().equals(other.getIdentityMappingStoresList())) 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 (getIdentityMappingStoresCount() > 0) { + hash = (37 * hash) + IDENTITY_MAPPING_STORES_FIELD_NUMBER; + hash = (53 * hash) + getIdentityMappingStoresList().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.discoveryengine.v1beta.ListIdentityMappingStoresResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse 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.v1beta.ListIdentityMappingStoresResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse parseFrom( + 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.v1beta.ListIdentityMappingStoresResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response message for
            +   * [IdentityMappingStoreService.ListIdentityMappingStores][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ListIdentityMappingStores]
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse) + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse.class, + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (identityMappingStoresBuilder_ == null) { + identityMappingStores_ = java.util.Collections.emptyList(); + } else { + identityMappingStores_ = null; + identityMappingStoresBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingStoresResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse build() { + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse + buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse result = + new com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse result) { + if (identityMappingStoresBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + identityMappingStores_ = java.util.Collections.unmodifiableList(identityMappingStores_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.identityMappingStores_ = identityMappingStores_; + } else { + result.identityMappingStores_ = identityMappingStoresBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse + .getDefaultInstance()) return this; + if (identityMappingStoresBuilder_ == null) { + if (!other.identityMappingStores_.isEmpty()) { + if (identityMappingStores_.isEmpty()) { + identityMappingStores_ = other.identityMappingStores_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIdentityMappingStoresIsMutable(); + identityMappingStores_.addAll(other.identityMappingStores_); + } + onChanged(); + } + } else { + if (!other.identityMappingStores_.isEmpty()) { + if (identityMappingStoresBuilder_.isEmpty()) { + identityMappingStoresBuilder_.dispose(); + identityMappingStoresBuilder_ = null; + identityMappingStores_ = other.identityMappingStores_; + bitField0_ = (bitField0_ & ~0x00000001); + identityMappingStoresBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetIdentityMappingStoresFieldBuilder() + : null; + } else { + identityMappingStoresBuilder_.addAllMessages(other.identityMappingStores_); + } + } + } + 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.discoveryengine.v1beta.IdentityMappingStore m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.parser(), + extensionRegistry); + if (identityMappingStoresBuilder_ == null) { + ensureIdentityMappingStoresIsMutable(); + identityMappingStores_.add(m); + } else { + identityMappingStoresBuilder_.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 + identityMappingStores_ = java.util.Collections.emptyList(); + + private void ensureIdentityMappingStoresIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + identityMappingStores_ = + new java.util.ArrayList( + identityMappingStores_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.Builder, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreOrBuilder> + identityMappingStoresBuilder_; + + /** + * + * + *
            +     * The Identity Mapping Stores.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + public java.util.List + getIdentityMappingStoresList() { + if (identityMappingStoresBuilder_ == null) { + return java.util.Collections.unmodifiableList(identityMappingStores_); + } else { + return identityMappingStoresBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * The Identity Mapping Stores.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + public int getIdentityMappingStoresCount() { + if (identityMappingStoresBuilder_ == null) { + return identityMappingStores_.size(); + } else { + return identityMappingStoresBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * The Identity Mapping Stores.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingStore getIdentityMappingStores( + int index) { + if (identityMappingStoresBuilder_ == null) { + return identityMappingStores_.get(index); + } else { + return identityMappingStoresBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * The Identity Mapping Stores.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + public Builder setIdentityMappingStores( + int index, com.google.cloud.discoveryengine.v1beta.IdentityMappingStore value) { + if (identityMappingStoresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentityMappingStoresIsMutable(); + identityMappingStores_.set(index, value); + onChanged(); + } else { + identityMappingStoresBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The Identity Mapping Stores.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + public Builder setIdentityMappingStores( + int index, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.Builder builderForValue) { + if (identityMappingStoresBuilder_ == null) { + ensureIdentityMappingStoresIsMutable(); + identityMappingStores_.set(index, builderForValue.build()); + onChanged(); + } else { + identityMappingStoresBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The Identity Mapping Stores.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + public Builder addIdentityMappingStores( + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore value) { + if (identityMappingStoresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentityMappingStoresIsMutable(); + identityMappingStores_.add(value); + onChanged(); + } else { + identityMappingStoresBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * The Identity Mapping Stores.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + public Builder addIdentityMappingStores( + int index, com.google.cloud.discoveryengine.v1beta.IdentityMappingStore value) { + if (identityMappingStoresBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentityMappingStoresIsMutable(); + identityMappingStores_.add(index, value); + onChanged(); + } else { + identityMappingStoresBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The Identity Mapping Stores.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + public Builder addIdentityMappingStores( + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.Builder builderForValue) { + if (identityMappingStoresBuilder_ == null) { + ensureIdentityMappingStoresIsMutable(); + identityMappingStores_.add(builderForValue.build()); + onChanged(); + } else { + identityMappingStoresBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The Identity Mapping Stores.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + public Builder addIdentityMappingStores( + int index, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.Builder builderForValue) { + if (identityMappingStoresBuilder_ == null) { + ensureIdentityMappingStoresIsMutable(); + identityMappingStores_.add(index, builderForValue.build()); + onChanged(); + } else { + identityMappingStoresBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The Identity Mapping Stores.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + public Builder addAllIdentityMappingStores( + java.lang.Iterable + values) { + if (identityMappingStoresBuilder_ == null) { + ensureIdentityMappingStoresIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, identityMappingStores_); + onChanged(); + } else { + identityMappingStoresBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * The Identity Mapping Stores.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + public Builder clearIdentityMappingStores() { + if (identityMappingStoresBuilder_ == null) { + identityMappingStores_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + identityMappingStoresBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The Identity Mapping Stores.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + public Builder removeIdentityMappingStores(int index) { + if (identityMappingStoresBuilder_ == null) { + ensureIdentityMappingStoresIsMutable(); + identityMappingStores_.remove(index); + onChanged(); + } else { + identityMappingStoresBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * The Identity Mapping Stores.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.Builder + getIdentityMappingStoresBuilder(int index) { + return internalGetIdentityMappingStoresFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * The Identity Mapping Stores.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreOrBuilder + getIdentityMappingStoresOrBuilder(int index) { + if (identityMappingStoresBuilder_ == null) { + return identityMappingStores_.get(index); + } else { + return identityMappingStoresBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * The Identity Mapping Stores.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreOrBuilder> + getIdentityMappingStoresOrBuilderList() { + if (identityMappingStoresBuilder_ != null) { + return identityMappingStoresBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(identityMappingStores_); + } + } + + /** + * + * + *
            +     * The Identity Mapping Stores.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.Builder + addIdentityMappingStoresBuilder() { + return internalGetIdentityMappingStoresFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.getDefaultInstance()); + } + + /** + * + * + *
            +     * The Identity Mapping Stores.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.Builder + addIdentityMappingStoresBuilder(int index) { + return internalGetIdentityMappingStoresFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.getDefaultInstance()); + } + + /** + * + * + *
            +     * The Identity Mapping Stores.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + public java.util.List + getIdentityMappingStoresBuilderList() { + return internalGetIdentityMappingStoresFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.Builder, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreOrBuilder> + internalGetIdentityMappingStoresFieldBuilder() { + if (identityMappingStoresBuilder_ == null) { + identityMappingStoresBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore.Builder, + com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreOrBuilder>( + identityMappingStores_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + identityMappingStores_ = null; + } + return identityMappingStoresBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token that can be sent as `page_token` to retrieve the next page. 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 that can be sent as `page_token` to retrieve the next page. 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 that can be sent as `page_token` to retrieve the next page. 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 that can be sent as `page_token` to retrieve the next page. 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 that can be sent as `page_token` to retrieve the next page. 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse) + private static final com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIdentityMappingStoresResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.ListIdentityMappingStoresResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingStoresResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingStoresResponseOrBuilder.java new file mode 100644 index 000000000000..dfaa742207c3 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingStoresResponseOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface ListIdentityMappingStoresResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The Identity Mapping Stores.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + java.util.List + getIdentityMappingStoresList(); + + /** + * + * + *
            +   * The Identity Mapping Stores.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.IdentityMappingStore getIdentityMappingStores(int index); + + /** + * + * + *
            +   * The Identity Mapping Stores.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + int getIdentityMappingStoresCount(); + + /** + * + * + *
            +   * The Identity Mapping Stores.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + java.util.List + getIdentityMappingStoresOrBuilderList(); + + /** + * + * + *
            +   * The Identity Mapping Stores.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingStore identity_mapping_stores = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreOrBuilder + getIdentityMappingStoresOrBuilder(int index); + + /** + * + * + *
            +   * A token that can be sent as `page_token` to retrieve the next page. If this
            +   * field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token that can be sent as `page_token` to retrieve the next page. 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-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingsRequest.java new file mode 100644 index 000000000000..1d84a5c23505 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingsRequest.java @@ -0,0 +1,967 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for
            + * [IdentityMappingStoreService.ListIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ListIdentityMappings]
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest} + */ +@com.google.protobuf.Generated +public final class ListIdentityMappingsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest) + ListIdentityMappingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListIdentityMappingsRequest"); + } + + // Use ListIdentityMappingsRequest.newBuilder() to construct. + private ListIdentityMappingsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListIdentityMappingsRequest() { + identityMappingStore_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest.class, + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest.Builder.class); + } + + public static final int IDENTITY_MAPPING_STORE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object identityMappingStore_ = ""; + + /** + * + * + *
            +   * Required. The name of the Identity Mapping Store to list Identity Mapping
            +   * Entries in. Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +   * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The identityMappingStore. + */ + @java.lang.Override + public java.lang.String getIdentityMappingStore() { + java.lang.Object ref = identityMappingStore_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityMappingStore_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The name of the Identity Mapping Store to list Identity Mapping
            +   * Entries in. Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +   * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for identityMappingStore. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentityMappingStoreBytes() { + java.lang.Object ref = identityMappingStore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityMappingStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Maximum number of IdentityMappings to return. If unspecified, defaults
            +   * to 2000. The maximum allowed value is 10000. Values above 10000 will be
            +   * coerced to 10000.
            +   * 
            + * + * 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_ = ""; + + /** + * + * + *
            +   * A page token, received from a previous `ListIdentityMappings` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `ListIdentityMappings` must match the call that provided the page
            +   * token.
            +   * 
            + * + * 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; + } + } + + /** + * + * + *
            +   * A page token, received from a previous `ListIdentityMappings` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `ListIdentityMappings` must match the call that provided the page
            +   * token.
            +   * 
            + * + * 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.GeneratedMessage.isStringEmpty(identityMappingStore_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, identityMappingStore_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identityMappingStore_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, identityMappingStore_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest other = + (com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest) obj; + + if (!getIdentityMappingStore().equals(other.getIdentityMappingStore())) 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) + IDENTITY_MAPPING_STORE_FIELD_NUMBER; + hash = (53 * hash) + getIdentityMappingStore().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.discoveryengine.v1beta.ListIdentityMappingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest 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.v1beta.ListIdentityMappingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest parseFrom( + 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.v1beta.ListIdentityMappingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [IdentityMappingStoreService.ListIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ListIdentityMappings]
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest) + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest.class, + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + identityMappingStore_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest build() { + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest result = + new com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.identityMappingStore_ = identityMappingStore_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest + .getDefaultInstance()) return this; + if (!other.getIdentityMappingStore().isEmpty()) { + identityMappingStore_ = other.identityMappingStore_; + 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: + { + identityMappingStore_ = 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 identityMappingStore_ = ""; + + /** + * + * + *
            +     * Required. The name of the Identity Mapping Store to list Identity Mapping
            +     * Entries in. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +     * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The identityMappingStore. + */ + public java.lang.String getIdentityMappingStore() { + java.lang.Object ref = identityMappingStore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityMappingStore_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the Identity Mapping Store to list Identity Mapping
            +     * Entries in. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +     * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for identityMappingStore. + */ + public com.google.protobuf.ByteString getIdentityMappingStoreBytes() { + java.lang.Object ref = identityMappingStore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityMappingStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the Identity Mapping Store to list Identity Mapping
            +     * Entries in. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +     * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The identityMappingStore to set. + * @return This builder for chaining. + */ + public Builder setIdentityMappingStore(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + identityMappingStore_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the Identity Mapping Store to list Identity Mapping
            +     * Entries in. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +     * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearIdentityMappingStore() { + identityMappingStore_ = getDefaultInstance().getIdentityMappingStore(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the Identity Mapping Store to list Identity Mapping
            +     * Entries in. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +     * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for identityMappingStore to set. + * @return This builder for chaining. + */ + public Builder setIdentityMappingStoreBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + identityMappingStore_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Maximum number of IdentityMappings to return. If unspecified, defaults
            +     * to 2000. The maximum allowed value is 10000. Values above 10000 will be
            +     * coerced to 10000.
            +     * 
            + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Maximum number of IdentityMappings to return. If unspecified, defaults
            +     * to 2000. The maximum allowed value is 10000. Values above 10000 will be
            +     * coerced to 10000.
            +     * 
            + * + * 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; + } + + /** + * + * + *
            +     * Maximum number of IdentityMappings to return. If unspecified, defaults
            +     * to 2000. The maximum allowed value is 10000. Values above 10000 will be
            +     * coerced to 10000.
            +     * 
            + * + * 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_ = ""; + + /** + * + * + *
            +     * A page token, received from a previous `ListIdentityMappings` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `ListIdentityMappings` must match the call that provided the page
            +     * token.
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * A page token, received from a previous `ListIdentityMappings` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `ListIdentityMappings` must match the call that provided the page
            +     * token.
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * A page token, received from a previous `ListIdentityMappings` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `ListIdentityMappings` must match the call that provided the page
            +     * token.
            +     * 
            + * + * 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; + } + + /** + * + * + *
            +     * A page token, received from a previous `ListIdentityMappings` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `ListIdentityMappings` must match the call that provided the page
            +     * token.
            +     * 
            + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A page token, received from a previous `ListIdentityMappings` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * `ListIdentityMappings` must match the call that provided the page
            +     * token.
            +     * 
            + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest) + private static final com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIdentityMappingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.ListIdentityMappingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingsRequestOrBuilder.java new file mode 100644 index 000000000000..768073971575 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingsRequestOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface ListIdentityMappingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The name of the Identity Mapping Store to list Identity Mapping
            +   * Entries in. Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +   * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The identityMappingStore. + */ + java.lang.String getIdentityMappingStore(); + + /** + * + * + *
            +   * Required. The name of the Identity Mapping Store to list Identity Mapping
            +   * Entries in. Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +   * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for identityMappingStore. + */ + com.google.protobuf.ByteString getIdentityMappingStoreBytes(); + + /** + * + * + *
            +   * Maximum number of IdentityMappings to return. If unspecified, defaults
            +   * to 2000. The maximum allowed value is 10000. Values above 10000 will be
            +   * coerced to 10000.
            +   * 
            + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * A page token, received from a previous `ListIdentityMappings` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `ListIdentityMappings` must match the call that provided the page
            +   * token.
            +   * 
            + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * A page token, received from a previous `ListIdentityMappings` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * `ListIdentityMappings` must match the call that provided the page
            +   * token.
            +   * 
            + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingsResponse.java new file mode 100644 index 000000000000..2852664bc5ab --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingsResponse.java @@ -0,0 +1,1209 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Response message for
            + * [IdentityMappingStoreService.ListIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ListIdentityMappings]
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse} + */ +@com.google.protobuf.Generated +public final class ListIdentityMappingsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse) + ListIdentityMappingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListIdentityMappingsResponse"); + } + + // Use ListIdentityMappingsResponse.newBuilder() to construct. + private ListIdentityMappingsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListIdentityMappingsResponse() { + identityMappingEntries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse.class, + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse.Builder.class); + } + + public static final int IDENTITY_MAPPING_ENTRIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + identityMappingEntries_; + + /** + * + * + *
            +   * The Identity Mapping Entries.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + @java.lang.Override + public java.util.List + getIdentityMappingEntriesList() { + return identityMappingEntries_; + } + + /** + * + * + *
            +   * The Identity Mapping Entries.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder> + getIdentityMappingEntriesOrBuilderList() { + return identityMappingEntries_; + } + + /** + * + * + *
            +   * The Identity Mapping Entries.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + @java.lang.Override + public int getIdentityMappingEntriesCount() { + return identityMappingEntries_.size(); + } + + /** + * + * + *
            +   * The Identity Mapping Entries.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry getIdentityMappingEntries( + int index) { + return identityMappingEntries_.get(index); + } + + /** + * + * + *
            +   * The Identity Mapping Entries.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder + getIdentityMappingEntriesOrBuilder(int index) { + return identityMappingEntries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token that can be sent as `page_token` to retrieve the next page. 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 that can be sent as `page_token` to retrieve the next page. 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 < identityMappingEntries_.size(); i++) { + output.writeMessage(1, identityMappingEntries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < identityMappingEntries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, identityMappingEntries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.discoveryengine.v1beta.ListIdentityMappingsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse other = + (com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse) obj; + + if (!getIdentityMappingEntriesList().equals(other.getIdentityMappingEntriesList())) + 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 (getIdentityMappingEntriesCount() > 0) { + hash = (37 * hash) + IDENTITY_MAPPING_ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getIdentityMappingEntriesList().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.discoveryengine.v1beta.ListIdentityMappingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse 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.v1beta.ListIdentityMappingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse parseFrom( + 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.v1beta.ListIdentityMappingsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response message for
            +   * [IdentityMappingStoreService.ListIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ListIdentityMappings]
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse) + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse.class, + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (identityMappingEntriesBuilder_ == null) { + identityMappingEntries_ = java.util.Collections.emptyList(); + } else { + identityMappingEntries_ = null; + identityMappingEntriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListIdentityMappingsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse build() { + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse result = + new com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse result) { + if (identityMappingEntriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + identityMappingEntries_ = java.util.Collections.unmodifiableList(identityMappingEntries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.identityMappingEntries_ = identityMappingEntries_; + } else { + result.identityMappingEntries_ = identityMappingEntriesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse + .getDefaultInstance()) return this; + if (identityMappingEntriesBuilder_ == null) { + if (!other.identityMappingEntries_.isEmpty()) { + if (identityMappingEntries_.isEmpty()) { + identityMappingEntries_ = other.identityMappingEntries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.addAll(other.identityMappingEntries_); + } + onChanged(); + } + } else { + if (!other.identityMappingEntries_.isEmpty()) { + if (identityMappingEntriesBuilder_.isEmpty()) { + identityMappingEntriesBuilder_.dispose(); + identityMappingEntriesBuilder_ = null; + identityMappingEntries_ = other.identityMappingEntries_; + bitField0_ = (bitField0_ & ~0x00000001); + identityMappingEntriesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetIdentityMappingEntriesFieldBuilder() + : null; + } else { + identityMappingEntriesBuilder_.addAllMessages(other.identityMappingEntries_); + } + } + } + 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.discoveryengine.v1beta.IdentityMappingEntry m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.parser(), + extensionRegistry); + if (identityMappingEntriesBuilder_ == null) { + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.add(m); + } else { + identityMappingEntriesBuilder_.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 + identityMappingEntries_ = java.util.Collections.emptyList(); + + private void ensureIdentityMappingEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + identityMappingEntries_ = + new java.util.ArrayList( + identityMappingEntries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder> + identityMappingEntriesBuilder_; + + /** + * + * + *
            +     * The Identity Mapping Entries.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public java.util.List + getIdentityMappingEntriesList() { + if (identityMappingEntriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(identityMappingEntries_); + } else { + return identityMappingEntriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * The Identity Mapping Entries.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public int getIdentityMappingEntriesCount() { + if (identityMappingEntriesBuilder_ == null) { + return identityMappingEntries_.size(); + } else { + return identityMappingEntriesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * The Identity Mapping Entries.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry getIdentityMappingEntries( + int index) { + if (identityMappingEntriesBuilder_ == null) { + return identityMappingEntries_.get(index); + } else { + return identityMappingEntriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * The Identity Mapping Entries.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder setIdentityMappingEntries( + int index, com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry value) { + if (identityMappingEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.set(index, value); + onChanged(); + } else { + identityMappingEntriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The Identity Mapping Entries.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder setIdentityMappingEntries( + int index, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder builderForValue) { + if (identityMappingEntriesBuilder_ == null) { + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.set(index, builderForValue.build()); + onChanged(); + } else { + identityMappingEntriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The Identity Mapping Entries.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder addIdentityMappingEntries( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry value) { + if (identityMappingEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.add(value); + onChanged(); + } else { + identityMappingEntriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * The Identity Mapping Entries.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder addIdentityMappingEntries( + int index, com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry value) { + if (identityMappingEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.add(index, value); + onChanged(); + } else { + identityMappingEntriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The Identity Mapping Entries.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder addIdentityMappingEntries( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder builderForValue) { + if (identityMappingEntriesBuilder_ == null) { + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.add(builderForValue.build()); + onChanged(); + } else { + identityMappingEntriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The Identity Mapping Entries.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder addIdentityMappingEntries( + int index, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder builderForValue) { + if (identityMappingEntriesBuilder_ == null) { + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.add(index, builderForValue.build()); + onChanged(); + } else { + identityMappingEntriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The Identity Mapping Entries.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder addAllIdentityMappingEntries( + java.lang.Iterable + values) { + if (identityMappingEntriesBuilder_ == null) { + ensureIdentityMappingEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, identityMappingEntries_); + onChanged(); + } else { + identityMappingEntriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * The Identity Mapping Entries.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder clearIdentityMappingEntries() { + if (identityMappingEntriesBuilder_ == null) { + identityMappingEntries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + identityMappingEntriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The Identity Mapping Entries.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder removeIdentityMappingEntries(int index) { + if (identityMappingEntriesBuilder_ == null) { + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.remove(index); + onChanged(); + } else { + identityMappingEntriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * The Identity Mapping Entries.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder + getIdentityMappingEntriesBuilder(int index) { + return internalGetIdentityMappingEntriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * The Identity Mapping Entries.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder + getIdentityMappingEntriesOrBuilder(int index) { + if (identityMappingEntriesBuilder_ == null) { + return identityMappingEntries_.get(index); + } else { + return identityMappingEntriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * The Identity Mapping Entries.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder> + getIdentityMappingEntriesOrBuilderList() { + if (identityMappingEntriesBuilder_ != null) { + return identityMappingEntriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(identityMappingEntries_); + } + } + + /** + * + * + *
            +     * The Identity Mapping Entries.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder + addIdentityMappingEntriesBuilder() { + return internalGetIdentityMappingEntriesFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.getDefaultInstance()); + } + + /** + * + * + *
            +     * The Identity Mapping Entries.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder + addIdentityMappingEntriesBuilder(int index) { + return internalGetIdentityMappingEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.getDefaultInstance()); + } + + /** + * + * + *
            +     * The Identity Mapping Entries.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public java.util.List + getIdentityMappingEntriesBuilderList() { + return internalGetIdentityMappingEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder> + internalGetIdentityMappingEntriesFieldBuilder() { + if (identityMappingEntriesBuilder_ == null) { + identityMappingEntriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder>( + identityMappingEntries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + identityMappingEntries_ = null; + } + return identityMappingEntriesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token that can be sent as `page_token` to retrieve the next page. 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 that can be sent as `page_token` to retrieve the next page. 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 that can be sent as `page_token` to retrieve the next page. 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 that can be sent as `page_token` to retrieve the next page. 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 that can be sent as `page_token` to retrieve the next page. 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse) + private static final com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListIdentityMappingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.ListIdentityMappingsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingsResponseOrBuilder.java new file mode 100644 index 000000000000..a8d6484d5a71 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListIdentityMappingsResponseOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface ListIdentityMappingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The Identity Mapping Entries.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + java.util.List + getIdentityMappingEntriesList(); + + /** + * + * + *
            +   * The Identity Mapping Entries.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry getIdentityMappingEntries(int index); + + /** + * + * + *
            +   * The Identity Mapping Entries.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + int getIdentityMappingEntriesCount(); + + /** + * + * + *
            +   * The Identity Mapping Entries.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + java.util.List + getIdentityMappingEntriesOrBuilderList(); + + /** + * + * + *
            +   * The Identity Mapping Entries.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder + getIdentityMappingEntriesOrBuilder(int index); + + /** + * + * + *
            +   * A token that can be sent as `page_token` to retrieve the next page. If this
            +   * field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token that can be sent as `page_token` to retrieve the next page. 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-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsRequest.java new file mode 100644 index 000000000000..c88d93997a11 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsRequest.java @@ -0,0 +1,1197 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for
            + * [LicenseConfigService.ListLicenseConfigs][google.cloud.discoveryengine.v1beta.LicenseConfigService.ListLicenseConfigs]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest} + */ +@com.google.protobuf.Generated +public final class ListLicenseConfigsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest) + ListLicenseConfigsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListLicenseConfigsRequest"); + } + + // Use ListLicenseConfigsRequest.newBuilder() to construct. + private ListLicenseConfigsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListLicenseConfigsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest.class, + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent branch resource name, such as
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent branch resource name, such as
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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. Not supported.
            +   * 
            + * + * 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. Not supported.
            +   * 
            + * + * 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. Not supported.
            +   * 
            + * + * 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. The filter to apply to the list results.
            +   *
            +   * The supported fields are:
            +   *
            +   * * `subscription_tier`
            +   * * `state`
            +   *
            +   * Examples:
            +   *
            +   * * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
            +   * active search license configs.
            +   * * `state=ACTIVE` - Lists all active license configs.
            +   *
            +   * The filter string should be a comma-separated list of field=value pairs.
            +   * 
            + * + * 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. The filter to apply to the list results.
            +   *
            +   * The supported fields are:
            +   *
            +   * * `subscription_tier`
            +   * * `state`
            +   *
            +   * Examples:
            +   *
            +   * * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
            +   * active search license configs.
            +   * * `state=ACTIVE` - Lists all active license configs.
            +   *
            +   * The filter string should be a comma-separated list of field=value pairs.
            +   * 
            + * + * 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + 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.v1beta.ListLicenseConfigsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest other = + (com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest) 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.discoveryengine.v1beta.ListLicenseConfigsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest 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.v1beta.ListLicenseConfigsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest parseFrom( + 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.v1beta.ListLicenseConfigsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [LicenseConfigService.ListLicenseConfigs][google.cloud.discoveryengine.v1beta.LicenseConfigService.ListLicenseConfigs]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest) + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest.class, + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest build() { + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest result = + new com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest.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. The parent branch resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent branch resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent branch resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent branch resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent branch resource name, such as
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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. Not supported.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. Not supported.
            +     * 
            + * + * 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. Not supported.
            +     * 
            + * + * 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. Not supported.
            +     * 
            + * + * 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. Not supported.
            +     * 
            + * + * 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. Not supported.
            +     * 
            + * + * 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. Not supported.
            +     * 
            + * + * 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. Not supported.
            +     * 
            + * + * 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. The filter to apply to the list results.
            +     *
            +     * The supported fields are:
            +     *
            +     * * `subscription_tier`
            +     * * `state`
            +     *
            +     * Examples:
            +     *
            +     * * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
            +     * active search license configs.
            +     * * `state=ACTIVE` - Lists all active license configs.
            +     *
            +     * The filter string should be a comma-separated list of field=value pairs.
            +     * 
            + * + * 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. The filter to apply to the list results.
            +     *
            +     * The supported fields are:
            +     *
            +     * * `subscription_tier`
            +     * * `state`
            +     *
            +     * Examples:
            +     *
            +     * * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
            +     * active search license configs.
            +     * * `state=ACTIVE` - Lists all active license configs.
            +     *
            +     * The filter string should be a comma-separated list of field=value pairs.
            +     * 
            + * + * 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. The filter to apply to the list results.
            +     *
            +     * The supported fields are:
            +     *
            +     * * `subscription_tier`
            +     * * `state`
            +     *
            +     * Examples:
            +     *
            +     * * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
            +     * active search license configs.
            +     * * `state=ACTIVE` - Lists all active license configs.
            +     *
            +     * The filter string should be a comma-separated list of field=value pairs.
            +     * 
            + * + * 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. The filter to apply to the list results.
            +     *
            +     * The supported fields are:
            +     *
            +     * * `subscription_tier`
            +     * * `state`
            +     *
            +     * Examples:
            +     *
            +     * * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
            +     * active search license configs.
            +     * * `state=ACTIVE` - Lists all active license configs.
            +     *
            +     * The filter string should be a comma-separated list of field=value pairs.
            +     * 
            + * + * 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. The filter to apply to the list results.
            +     *
            +     * The supported fields are:
            +     *
            +     * * `subscription_tier`
            +     * * `state`
            +     *
            +     * Examples:
            +     *
            +     * * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
            +     * active search license configs.
            +     * * `state=ACTIVE` - Lists all active license configs.
            +     *
            +     * The filter string should be a comma-separated list of field=value pairs.
            +     * 
            + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest) + private static final com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLicenseConfigsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.ListLicenseConfigsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsRequestOrBuilder.java new file mode 100644 index 000000000000..d737e2b82b40 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsRequestOrBuilder.java @@ -0,0 +1,151 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface ListLicenseConfigsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent branch resource name, such as
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent branch resource name, such as
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. Not supported.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. Not supported.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. Not supported.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. The filter to apply to the list results.
            +   *
            +   * The supported fields are:
            +   *
            +   * * `subscription_tier`
            +   * * `state`
            +   *
            +   * Examples:
            +   *
            +   * * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
            +   * active search license configs.
            +   * * `state=ACTIVE` - Lists all active license configs.
            +   *
            +   * The filter string should be a comma-separated list of field=value pairs.
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Optional. The filter to apply to the list results.
            +   *
            +   * The supported fields are:
            +   *
            +   * * `subscription_tier`
            +   * * `state`
            +   *
            +   * Examples:
            +   *
            +   * * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all
            +   * active search license configs.
            +   * * `state=ACTIVE` - Lists all active license configs.
            +   *
            +   * The filter string should be a comma-separated list of field=value pairs.
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsResponse.java new file mode 100644 index 000000000000..4ab9e48a6c35 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsResponse.java @@ -0,0 +1,1168 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Response message for
            + * [LicenseConfigService.ListLicenseConfigs][google.cloud.discoveryengine.v1beta.LicenseConfigService.ListLicenseConfigs]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse} + */ +@com.google.protobuf.Generated +public final class ListLicenseConfigsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse) + ListLicenseConfigsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListLicenseConfigsResponse"); + } + + // Use ListLicenseConfigsResponse.newBuilder() to construct. + private ListLicenseConfigsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListLicenseConfigsResponse() { + licenseConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse.class, + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse.Builder.class); + } + + public static final int LICENSE_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List licenseConfigs_; + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + @java.lang.Override + public java.util.List + getLicenseConfigsList() { + return licenseConfigs_; + } + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + @java.lang.Override + public java.util.List + getLicenseConfigsOrBuilderList() { + return licenseConfigs_; + } + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + @java.lang.Override + public int getLicenseConfigsCount() { + return licenseConfigs_.size(); + } + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfig getLicenseConfigs(int index) { + return licenseConfigs_.get(index); + } + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder getLicenseConfigsOrBuilder( + int index) { + return licenseConfigs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * Not supported.
            +   * 
            + * + * 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; + } + } + + /** + * + * + *
            +   * Not supported.
            +   * 
            + * + * 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 < licenseConfigs_.size(); i++) { + output.writeMessage(1, licenseConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < licenseConfigs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, licenseConfigs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.discoveryengine.v1beta.ListLicenseConfigsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse other = + (com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse) obj; + + if (!getLicenseConfigsList().equals(other.getLicenseConfigsList())) 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 (getLicenseConfigsCount() > 0) { + hash = (37 * hash) + LICENSE_CONFIGS_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfigsList().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.discoveryengine.v1beta.ListLicenseConfigsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse 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.v1beta.ListLicenseConfigsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse parseFrom( + 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.v1beta.ListLicenseConfigsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response message for
            +   * [LicenseConfigService.ListLicenseConfigs][google.cloud.discoveryengine.v1beta.LicenseConfigService.ListLicenseConfigs]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse) + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse.class, + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (licenseConfigsBuilder_ == null) { + licenseConfigs_ = java.util.Collections.emptyList(); + } else { + licenseConfigs_ = null; + licenseConfigsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse build() { + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse result = + new com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse result) { + if (licenseConfigsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + licenseConfigs_ = java.util.Collections.unmodifiableList(licenseConfigs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.licenseConfigs_ = licenseConfigs_; + } else { + result.licenseConfigs_ = licenseConfigsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse + .getDefaultInstance()) return this; + if (licenseConfigsBuilder_ == null) { + if (!other.licenseConfigs_.isEmpty()) { + if (licenseConfigs_.isEmpty()) { + licenseConfigs_ = other.licenseConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLicenseConfigsIsMutable(); + licenseConfigs_.addAll(other.licenseConfigs_); + } + onChanged(); + } + } else { + if (!other.licenseConfigs_.isEmpty()) { + if (licenseConfigsBuilder_.isEmpty()) { + licenseConfigsBuilder_.dispose(); + licenseConfigsBuilder_ = null; + licenseConfigs_ = other.licenseConfigs_; + bitField0_ = (bitField0_ & ~0x00000001); + licenseConfigsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetLicenseConfigsFieldBuilder() + : null; + } else { + licenseConfigsBuilder_.addAllMessages(other.licenseConfigs_); + } + } + } + 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.discoveryengine.v1beta.LicenseConfig m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.LicenseConfig.parser(), + extensionRegistry); + if (licenseConfigsBuilder_ == null) { + ensureLicenseConfigsIsMutable(); + licenseConfigs_.add(m); + } else { + licenseConfigsBuilder_.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 licenseConfigs_ = + java.util.Collections.emptyList(); + + private void ensureLicenseConfigsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + licenseConfigs_ = + new java.util.ArrayList( + licenseConfigs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LicenseConfig, + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder> + licenseConfigsBuilder_; + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + public java.util.List + getLicenseConfigsList() { + if (licenseConfigsBuilder_ == null) { + return java.util.Collections.unmodifiableList(licenseConfigs_); + } else { + return licenseConfigsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + public int getLicenseConfigsCount() { + if (licenseConfigsBuilder_ == null) { + return licenseConfigs_.size(); + } else { + return licenseConfigsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfig getLicenseConfigs(int index) { + if (licenseConfigsBuilder_ == null) { + return licenseConfigs_.get(index); + } else { + return licenseConfigsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + public Builder setLicenseConfigs( + int index, com.google.cloud.discoveryengine.v1beta.LicenseConfig value) { + if (licenseConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLicenseConfigsIsMutable(); + licenseConfigs_.set(index, value); + onChanged(); + } else { + licenseConfigsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + public Builder setLicenseConfigs( + int index, com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder builderForValue) { + if (licenseConfigsBuilder_ == null) { + ensureLicenseConfigsIsMutable(); + licenseConfigs_.set(index, builderForValue.build()); + onChanged(); + } else { + licenseConfigsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + public Builder addLicenseConfigs(com.google.cloud.discoveryengine.v1beta.LicenseConfig value) { + if (licenseConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLicenseConfigsIsMutable(); + licenseConfigs_.add(value); + onChanged(); + } else { + licenseConfigsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + public Builder addLicenseConfigs( + int index, com.google.cloud.discoveryengine.v1beta.LicenseConfig value) { + if (licenseConfigsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLicenseConfigsIsMutable(); + licenseConfigs_.add(index, value); + onChanged(); + } else { + licenseConfigsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + public Builder addLicenseConfigs( + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder builderForValue) { + if (licenseConfigsBuilder_ == null) { + ensureLicenseConfigsIsMutable(); + licenseConfigs_.add(builderForValue.build()); + onChanged(); + } else { + licenseConfigsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + public Builder addLicenseConfigs( + int index, com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder builderForValue) { + if (licenseConfigsBuilder_ == null) { + ensureLicenseConfigsIsMutable(); + licenseConfigs_.add(index, builderForValue.build()); + onChanged(); + } else { + licenseConfigsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + public Builder addAllLicenseConfigs( + java.lang.Iterable + values) { + if (licenseConfigsBuilder_ == null) { + ensureLicenseConfigsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, licenseConfigs_); + onChanged(); + } else { + licenseConfigsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + public Builder clearLicenseConfigs() { + if (licenseConfigsBuilder_ == null) { + licenseConfigs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + licenseConfigsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + public Builder removeLicenseConfigs(int index) { + if (licenseConfigsBuilder_ == null) { + ensureLicenseConfigsIsMutable(); + licenseConfigs_.remove(index); + onChanged(); + } else { + licenseConfigsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder getLicenseConfigsBuilder( + int index) { + return internalGetLicenseConfigsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder + getLicenseConfigsOrBuilder(int index) { + if (licenseConfigsBuilder_ == null) { + return licenseConfigs_.get(index); + } else { + return licenseConfigsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + public java.util.List + getLicenseConfigsOrBuilderList() { + if (licenseConfigsBuilder_ != null) { + return licenseConfigsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(licenseConfigs_); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder + addLicenseConfigsBuilder() { + return internalGetLicenseConfigsFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance()); + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder addLicenseConfigsBuilder( + int index) { + return internalGetLicenseConfigsFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance()); + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + public java.util.List + getLicenseConfigsBuilderList() { + return internalGetLicenseConfigsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LicenseConfig, + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder> + internalGetLicenseConfigsFieldBuilder() { + if (licenseConfigsBuilder_ == null) { + licenseConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LicenseConfig, + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder>( + licenseConfigs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + licenseConfigs_ = null; + } + return licenseConfigsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * Not supported.
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * Not supported.
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * Not supported.
            +     * 
            + * + * 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; + } + + /** + * + * + *
            +     * Not supported.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Not supported.
            +     * 
            + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse) + private static final com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLicenseConfigsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.ListLicenseConfigsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsResponseOrBuilder.java new file mode 100644 index 000000000000..bd5c377a1eec --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsResponseOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface ListLicenseConfigsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + java.util.List getLicenseConfigsList(); + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + com.google.cloud.discoveryengine.v1beta.LicenseConfig getLicenseConfigs(int index); + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + int getLicenseConfigsCount(); + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + java.util.List + getLicenseConfigsOrBuilderList(); + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfig license_configs = 1; + */ + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder getLicenseConfigsOrBuilder( + int index); + + /** + * + * + *
            +   * Not supported.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * Not supported.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsUsageStatsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsUsageStatsRequest.java new file mode 100644 index 000000000000..bbfac12ebc83 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsUsageStatsRequest.java @@ -0,0 +1,646 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for
            + * [UserLicenseService.ListLicenseConfigsUsageStats][google.cloud.discoveryengine.v1beta.UserLicenseService.ListLicenseConfigsUsageStats]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest} + */ +@com.google.protobuf.Generated +public final class ListLicenseConfigsUsageStatsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest) + ListLicenseConfigsUsageStatsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListLicenseConfigsUsageStatsRequest"); + } + + // Use ListLicenseConfigsUsageStatsRequest.newBuilder() to construct. + private ListLicenseConfigsUsageStatsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListLicenseConfigsUsageStatsRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest.class, + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent branch resource name, such as
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent branch resource name, such as
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + 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.v1beta.ListLicenseConfigsUsageStatsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest other = + (com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest) obj; + + if (!getParent().equals(other.getParent())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest + 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.v1beta.ListLicenseConfigsUsageStatsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest + parseFrom( + 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.v1beta.ListLicenseConfigsUsageStatsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [UserLicenseService.ListLicenseConfigsUsageStats][google.cloud.discoveryengine.v1beta.UserLicenseService.ListLicenseConfigsUsageStats]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest) + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest.class, + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest build() { + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest + buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest result = + new com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + 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: + { + parent_ = 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 parent_ = ""; + + /** + * + * + *
            +     * Required. The parent branch resource name, such as
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent branch resource name, such as
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent branch resource name, such as
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent branch resource name, such as
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent branch resource name, such as
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest) + private static final com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLicenseConfigsUsageStatsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.ListLicenseConfigsUsageStatsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsUsageStatsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsUsageStatsRequestOrBuilder.java new file mode 100644 index 000000000000..742e7a32d8bc --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsUsageStatsRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface ListLicenseConfigsUsageStatsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent branch resource name, such as
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent branch resource name, such as
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsUsageStatsResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsUsageStatsResponse.java new file mode 100644 index 000000000000..6c477e33ca2c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsUsageStatsResponse.java @@ -0,0 +1,1054 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Response message for
            + * [UserLicenseService.ListLicenseConfigsUsageStats][google.cloud.discoveryengine.v1beta.UserLicenseService.ListLicenseConfigsUsageStats]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse} + */ +@com.google.protobuf.Generated +public final class ListLicenseConfigsUsageStatsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse) + ListLicenseConfigsUsageStatsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListLicenseConfigsUsageStatsResponse"); + } + + // Use ListLicenseConfigsUsageStatsResponse.newBuilder() to construct. + private ListLicenseConfigsUsageStatsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListLicenseConfigsUsageStatsResponse() { + licenseConfigUsageStats_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse.class, + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse.Builder + .class); + } + + public static final int LICENSE_CONFIG_USAGE_STATS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + licenseConfigUsageStats_; + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + @java.lang.Override + public java.util.List + getLicenseConfigUsageStatsList() { + return licenseConfigUsageStats_; + } + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStatsOrBuilder> + getLicenseConfigUsageStatsOrBuilderList() { + return licenseConfigUsageStats_; + } + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + @java.lang.Override + public int getLicenseConfigUsageStatsCount() { + return licenseConfigUsageStats_.size(); + } + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats getLicenseConfigUsageStats( + int index) { + return licenseConfigUsageStats_.get(index); + } + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStatsOrBuilder + getLicenseConfigUsageStatsOrBuilder(int index) { + return licenseConfigUsageStats_.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 < licenseConfigUsageStats_.size(); i++) { + output.writeMessage(1, licenseConfigUsageStats_.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 < licenseConfigUsageStats_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, licenseConfigUsageStats_.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.v1beta.ListLicenseConfigsUsageStatsResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse other = + (com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse) obj; + + if (!getLicenseConfigUsageStatsList().equals(other.getLicenseConfigUsageStatsList())) + 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 (getLicenseConfigUsageStatsCount() > 0) { + hash = (37 * hash) + LICENSE_CONFIG_USAGE_STATS_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfigUsageStatsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse + 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.v1beta.ListLicenseConfigsUsageStatsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse + parseFrom( + 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.v1beta.ListLicenseConfigsUsageStatsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response message for
            +   * [UserLicenseService.ListLicenseConfigsUsageStats][google.cloud.discoveryengine.v1beta.UserLicenseService.ListLicenseConfigsUsageStats]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse) + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse.class, + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (licenseConfigUsageStatsBuilder_ == null) { + licenseConfigUsageStats_ = java.util.Collections.emptyList(); + } else { + licenseConfigUsageStats_ = null; + licenseConfigUsageStatsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse build() { + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse + buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse result = + new com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse result) { + if (licenseConfigUsageStatsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + licenseConfigUsageStats_ = + java.util.Collections.unmodifiableList(licenseConfigUsageStats_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.licenseConfigUsageStats_ = licenseConfigUsageStats_; + } else { + result.licenseConfigUsageStats_ = licenseConfigUsageStatsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse + .getDefaultInstance()) return this; + if (licenseConfigUsageStatsBuilder_ == null) { + if (!other.licenseConfigUsageStats_.isEmpty()) { + if (licenseConfigUsageStats_.isEmpty()) { + licenseConfigUsageStats_ = other.licenseConfigUsageStats_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLicenseConfigUsageStatsIsMutable(); + licenseConfigUsageStats_.addAll(other.licenseConfigUsageStats_); + } + onChanged(); + } + } else { + if (!other.licenseConfigUsageStats_.isEmpty()) { + if (licenseConfigUsageStatsBuilder_.isEmpty()) { + licenseConfigUsageStatsBuilder_.dispose(); + licenseConfigUsageStatsBuilder_ = null; + licenseConfigUsageStats_ = other.licenseConfigUsageStats_; + bitField0_ = (bitField0_ & ~0x00000001); + licenseConfigUsageStatsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetLicenseConfigUsageStatsFieldBuilder() + : null; + } else { + licenseConfigUsageStatsBuilder_.addAllMessages(other.licenseConfigUsageStats_); + } + } + } + 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.v1beta.LicenseConfigUsageStats m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats.parser(), + extensionRegistry); + if (licenseConfigUsageStatsBuilder_ == null) { + ensureLicenseConfigUsageStatsIsMutable(); + licenseConfigUsageStats_.add(m); + } else { + licenseConfigUsageStatsBuilder_.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 + licenseConfigUsageStats_ = java.util.Collections.emptyList(); + + private void ensureLicenseConfigUsageStatsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + licenseConfigUsageStats_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats>( + licenseConfigUsageStats_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats, + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats.Builder, + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStatsOrBuilder> + licenseConfigUsageStatsBuilder_; + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public java.util.List + getLicenseConfigUsageStatsList() { + if (licenseConfigUsageStatsBuilder_ == null) { + return java.util.Collections.unmodifiableList(licenseConfigUsageStats_); + } else { + return licenseConfigUsageStatsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public int getLicenseConfigUsageStatsCount() { + if (licenseConfigUsageStatsBuilder_ == null) { + return licenseConfigUsageStats_.size(); + } else { + return licenseConfigUsageStatsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats + getLicenseConfigUsageStats(int index) { + if (licenseConfigUsageStatsBuilder_ == null) { + return licenseConfigUsageStats_.get(index); + } else { + return licenseConfigUsageStatsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public Builder setLicenseConfigUsageStats( + int index, com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats value) { + if (licenseConfigUsageStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLicenseConfigUsageStatsIsMutable(); + licenseConfigUsageStats_.set(index, value); + onChanged(); + } else { + licenseConfigUsageStatsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public Builder setLicenseConfigUsageStats( + int index, + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats.Builder builderForValue) { + if (licenseConfigUsageStatsBuilder_ == null) { + ensureLicenseConfigUsageStatsIsMutable(); + licenseConfigUsageStats_.set(index, builderForValue.build()); + onChanged(); + } else { + licenseConfigUsageStatsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public Builder addLicenseConfigUsageStats( + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats value) { + if (licenseConfigUsageStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLicenseConfigUsageStatsIsMutable(); + licenseConfigUsageStats_.add(value); + onChanged(); + } else { + licenseConfigUsageStatsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public Builder addLicenseConfigUsageStats( + int index, com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats value) { + if (licenseConfigUsageStatsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLicenseConfigUsageStatsIsMutable(); + licenseConfigUsageStats_.add(index, value); + onChanged(); + } else { + licenseConfigUsageStatsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public Builder addLicenseConfigUsageStats( + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats.Builder builderForValue) { + if (licenseConfigUsageStatsBuilder_ == null) { + ensureLicenseConfigUsageStatsIsMutable(); + licenseConfigUsageStats_.add(builderForValue.build()); + onChanged(); + } else { + licenseConfigUsageStatsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public Builder addLicenseConfigUsageStats( + int index, + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats.Builder builderForValue) { + if (licenseConfigUsageStatsBuilder_ == null) { + ensureLicenseConfigUsageStatsIsMutable(); + licenseConfigUsageStats_.add(index, builderForValue.build()); + onChanged(); + } else { + licenseConfigUsageStatsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public Builder addAllLicenseConfigUsageStats( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats> + values) { + if (licenseConfigUsageStatsBuilder_ == null) { + ensureLicenseConfigUsageStatsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, licenseConfigUsageStats_); + onChanged(); + } else { + licenseConfigUsageStatsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public Builder clearLicenseConfigUsageStats() { + if (licenseConfigUsageStatsBuilder_ == null) { + licenseConfigUsageStats_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + licenseConfigUsageStatsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public Builder removeLicenseConfigUsageStats(int index) { + if (licenseConfigUsageStatsBuilder_ == null) { + ensureLicenseConfigUsageStatsIsMutable(); + licenseConfigUsageStats_.remove(index); + onChanged(); + } else { + licenseConfigUsageStatsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats.Builder + getLicenseConfigUsageStatsBuilder(int index) { + return internalGetLicenseConfigUsageStatsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStatsOrBuilder + getLicenseConfigUsageStatsOrBuilder(int index) { + if (licenseConfigUsageStatsBuilder_ == null) { + return licenseConfigUsageStats_.get(index); + } else { + return licenseConfigUsageStatsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStatsOrBuilder> + getLicenseConfigUsageStatsOrBuilderList() { + if (licenseConfigUsageStatsBuilder_ != null) { + return licenseConfigUsageStatsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(licenseConfigUsageStats_); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats.Builder + addLicenseConfigUsageStatsBuilder() { + return internalGetLicenseConfigUsageStatsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats.getDefaultInstance()); + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats.Builder + addLicenseConfigUsageStatsBuilder(int index) { + return internalGetLicenseConfigUsageStatsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats.getDefaultInstance()); + } + + /** + * + * + *
            +     * All the customer's
            +     * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + public java.util.List + getLicenseConfigUsageStatsBuilderList() { + return internalGetLicenseConfigUsageStatsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats, + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats.Builder, + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStatsOrBuilder> + internalGetLicenseConfigUsageStatsFieldBuilder() { + if (licenseConfigUsageStatsBuilder_ == null) { + licenseConfigUsageStatsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats, + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats.Builder, + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStatsOrBuilder>( + licenseConfigUsageStats_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + licenseConfigUsageStats_ = null; + } + return licenseConfigUsageStatsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse) + private static final com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLicenseConfigsUsageStatsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.ListLicenseConfigsUsageStatsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsUsageStatsResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsUsageStatsResponseOrBuilder.java new file mode 100644 index 000000000000..a09a389a05b5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListLicenseConfigsUsageStatsResponseOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface ListLicenseConfigsUsageStatsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + java.util.List + getLicenseConfigUsageStatsList(); + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats getLicenseConfigUsageStats( + int index); + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + int getLicenseConfigUsageStatsCount(); + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + java.util.List + getLicenseConfigUsageStatsOrBuilderList(); + + /** + * + * + *
            +   * All the customer's
            +   * [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats].
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats license_config_usage_stats = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.LicenseConfigUsageStatsOrBuilder + getLicenseConfigUsageStatsOrBuilder(int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSessionsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSessionsRequest.java index 2adbbeadee29..43a349caed15 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSessionsRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSessionsRequest.java @@ -217,7 +217,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
                * A comma-separated list of fields to filter by, in EBNF grammar.
            +   *
                * The supported fields are:
            +   *
                * * `user_pseudo_id`
                * * `state`
                * * `display_name`
            @@ -226,13 +228,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
                * * `labels`
                * * `create_time`
                * * `update_time`
            +   * * `collaborative_project`
                *
                * Examples:
            -   * "user_pseudo_id = some_id"
            -   * "display_name = \"some_name\""
            -   * "starred = true"
            -   * "is_pinned=true AND (NOT labels:hidden)"
            -   * "create_time > \"1970-01-01T12:00:00Z\""
            +   *
            +   * * `user_pseudo_id = some_id`
            +   * * `display_name = "some_name"`
            +   * * `starred = true`
            +   * * `is_pinned=true AND (NOT labels:hidden)`
            +   * * `create_time > "1970-01-01T12:00:00Z"`
            +   * * `collaborative_project =
            +   * "projects/123/locations/global/collections/default_collection/engines/"
            +   * "default_engine/collaborative_projects/cp1"`
                * 
            * * string filter = 4; @@ -257,7 +264,9 @@ public java.lang.String getFilter() { * *
                * A comma-separated list of fields to filter by, in EBNF grammar.
            +   *
                * The supported fields are:
            +   *
                * * `user_pseudo_id`
                * * `state`
                * * `display_name`
            @@ -266,13 +275,18 @@ public java.lang.String getFilter() {
                * * `labels`
                * * `create_time`
                * * `update_time`
            +   * * `collaborative_project`
                *
                * Examples:
            -   * "user_pseudo_id = some_id"
            -   * "display_name = \"some_name\""
            -   * "starred = true"
            -   * "is_pinned=true AND (NOT labels:hidden)"
            -   * "create_time > \"1970-01-01T12:00:00Z\""
            +   *
            +   * * `user_pseudo_id = some_id`
            +   * * `display_name = "some_name"`
            +   * * `starred = true`
            +   * * `is_pinned=true AND (NOT labels:hidden)`
            +   * * `create_time > "1970-01-01T12:00:00Z"`
            +   * * `collaborative_project =
            +   * "projects/123/locations/global/collections/default_collection/engines/"
            +   * "default_engine/collaborative_projects/cp1"`
                * 
            * * string filter = 4; @@ -303,18 +317,20 @@ public com.google.protobuf.ByteString getFilterBytes() { *
                * A comma-separated list of fields to order by, sorted in ascending order.
                * Use "desc" after a field name for descending.
            +   *
                * Supported fields:
                *
                * * `update_time`
                * * `create_time`
                * * `session_name`
                * * `is_pinned`
            +   * * `display_name`
                *
                * Example:
                *
            -   * * "update_time desc"
            -   * * "create_time"
            -   * * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
            +   * * `update_time desc`
            +   * * `create_time`
            +   * * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
                * by update_time.
                * 
            * @@ -341,18 +357,20 @@ public java.lang.String getOrderBy() { *
                * A comma-separated list of fields to order by, sorted in ascending order.
                * Use "desc" after a field name for descending.
            +   *
                * Supported fields:
                *
                * * `update_time`
                * * `create_time`
                * * `session_name`
                * * `is_pinned`
            +   * * `display_name`
                *
                * Example:
                *
            -   * * "update_time desc"
            -   * * "create_time"
            -   * * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
            +   * * `update_time desc`
            +   * * `create_time`
            +   * * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
                * by update_time.
                * 
            * @@ -1086,7 +1104,9 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * *
                  * A comma-separated list of fields to filter by, in EBNF grammar.
            +     *
                  * The supported fields are:
            +     *
                  * * `user_pseudo_id`
                  * * `state`
                  * * `display_name`
            @@ -1095,13 +1115,18 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) {
                  * * `labels`
                  * * `create_time`
                  * * `update_time`
            +     * * `collaborative_project`
                  *
                  * Examples:
            -     * "user_pseudo_id = some_id"
            -     * "display_name = \"some_name\""
            -     * "starred = true"
            -     * "is_pinned=true AND (NOT labels:hidden)"
            -     * "create_time > \"1970-01-01T12:00:00Z\""
            +     *
            +     * * `user_pseudo_id = some_id`
            +     * * `display_name = "some_name"`
            +     * * `starred = true`
            +     * * `is_pinned=true AND (NOT labels:hidden)`
            +     * * `create_time > "1970-01-01T12:00:00Z"`
            +     * * `collaborative_project =
            +     * "projects/123/locations/global/collections/default_collection/engines/"
            +     * "default_engine/collaborative_projects/cp1"`
                  * 
            * * string filter = 4; @@ -1125,7 +1150,9 @@ public java.lang.String getFilter() { * *
                  * A comma-separated list of fields to filter by, in EBNF grammar.
            +     *
                  * The supported fields are:
            +     *
                  * * `user_pseudo_id`
                  * * `state`
                  * * `display_name`
            @@ -1134,13 +1161,18 @@ public java.lang.String getFilter() {
                  * * `labels`
                  * * `create_time`
                  * * `update_time`
            +     * * `collaborative_project`
                  *
                  * Examples:
            -     * "user_pseudo_id = some_id"
            -     * "display_name = \"some_name\""
            -     * "starred = true"
            -     * "is_pinned=true AND (NOT labels:hidden)"
            -     * "create_time > \"1970-01-01T12:00:00Z\""
            +     *
            +     * * `user_pseudo_id = some_id`
            +     * * `display_name = "some_name"`
            +     * * `starred = true`
            +     * * `is_pinned=true AND (NOT labels:hidden)`
            +     * * `create_time > "1970-01-01T12:00:00Z"`
            +     * * `collaborative_project =
            +     * "projects/123/locations/global/collections/default_collection/engines/"
            +     * "default_engine/collaborative_projects/cp1"`
                  * 
            * * string filter = 4; @@ -1164,7 +1196,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * *
                  * A comma-separated list of fields to filter by, in EBNF grammar.
            +     *
                  * The supported fields are:
            +     *
                  * * `user_pseudo_id`
                  * * `state`
                  * * `display_name`
            @@ -1173,13 +1207,18 @@ public com.google.protobuf.ByteString getFilterBytes() {
                  * * `labels`
                  * * `create_time`
                  * * `update_time`
            +     * * `collaborative_project`
                  *
                  * Examples:
            -     * "user_pseudo_id = some_id"
            -     * "display_name = \"some_name\""
            -     * "starred = true"
            -     * "is_pinned=true AND (NOT labels:hidden)"
            -     * "create_time > \"1970-01-01T12:00:00Z\""
            +     *
            +     * * `user_pseudo_id = some_id`
            +     * * `display_name = "some_name"`
            +     * * `starred = true`
            +     * * `is_pinned=true AND (NOT labels:hidden)`
            +     * * `create_time > "1970-01-01T12:00:00Z"`
            +     * * `collaborative_project =
            +     * "projects/123/locations/global/collections/default_collection/engines/"
            +     * "default_engine/collaborative_projects/cp1"`
                  * 
            * * string filter = 4; @@ -1202,7 +1241,9 @@ public Builder setFilter(java.lang.String value) { * *
                  * A comma-separated list of fields to filter by, in EBNF grammar.
            +     *
                  * The supported fields are:
            +     *
                  * * `user_pseudo_id`
                  * * `state`
                  * * `display_name`
            @@ -1211,13 +1252,18 @@ public Builder setFilter(java.lang.String value) {
                  * * `labels`
                  * * `create_time`
                  * * `update_time`
            +     * * `collaborative_project`
                  *
                  * Examples:
            -     * "user_pseudo_id = some_id"
            -     * "display_name = \"some_name\""
            -     * "starred = true"
            -     * "is_pinned=true AND (NOT labels:hidden)"
            -     * "create_time > \"1970-01-01T12:00:00Z\""
            +     *
            +     * * `user_pseudo_id = some_id`
            +     * * `display_name = "some_name"`
            +     * * `starred = true`
            +     * * `is_pinned=true AND (NOT labels:hidden)`
            +     * * `create_time > "1970-01-01T12:00:00Z"`
            +     * * `collaborative_project =
            +     * "projects/123/locations/global/collections/default_collection/engines/"
            +     * "default_engine/collaborative_projects/cp1"`
                  * 
            * * string filter = 4; @@ -1236,7 +1282,9 @@ public Builder clearFilter() { * *
                  * A comma-separated list of fields to filter by, in EBNF grammar.
            +     *
                  * The supported fields are:
            +     *
                  * * `user_pseudo_id`
                  * * `state`
                  * * `display_name`
            @@ -1245,13 +1293,18 @@ public Builder clearFilter() {
                  * * `labels`
                  * * `create_time`
                  * * `update_time`
            +     * * `collaborative_project`
                  *
                  * Examples:
            -     * "user_pseudo_id = some_id"
            -     * "display_name = \"some_name\""
            -     * "starred = true"
            -     * "is_pinned=true AND (NOT labels:hidden)"
            -     * "create_time > \"1970-01-01T12:00:00Z\""
            +     *
            +     * * `user_pseudo_id = some_id`
            +     * * `display_name = "some_name"`
            +     * * `starred = true`
            +     * * `is_pinned=true AND (NOT labels:hidden)`
            +     * * `create_time > "1970-01-01T12:00:00Z"`
            +     * * `collaborative_project =
            +     * "projects/123/locations/global/collections/default_collection/engines/"
            +     * "default_engine/collaborative_projects/cp1"`
                  * 
            * * string filter = 4; @@ -1278,18 +1331,20 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { *
                  * A comma-separated list of fields to order by, sorted in ascending order.
                  * Use "desc" after a field name for descending.
            +     *
                  * Supported fields:
                  *
                  * * `update_time`
                  * * `create_time`
                  * * `session_name`
                  * * `is_pinned`
            +     * * `display_name`
                  *
                  * Example:
                  *
            -     * * "update_time desc"
            -     * * "create_time"
            -     * * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
            +     * * `update_time desc`
            +     * * `create_time`
            +     * * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
                  * by update_time.
                  * 
            * @@ -1315,18 +1370,20 @@ public java.lang.String getOrderBy() { *
                  * A comma-separated list of fields to order by, sorted in ascending order.
                  * Use "desc" after a field name for descending.
            +     *
                  * Supported fields:
                  *
                  * * `update_time`
                  * * `create_time`
                  * * `session_name`
                  * * `is_pinned`
            +     * * `display_name`
                  *
                  * Example:
                  *
            -     * * "update_time desc"
            -     * * "create_time"
            -     * * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
            +     * * `update_time desc`
            +     * * `create_time`
            +     * * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
                  * by update_time.
                  * 
            * @@ -1352,18 +1409,20 @@ public com.google.protobuf.ByteString getOrderByBytes() { *
                  * A comma-separated list of fields to order by, sorted in ascending order.
                  * Use "desc" after a field name for descending.
            +     *
                  * Supported fields:
                  *
                  * * `update_time`
                  * * `create_time`
                  * * `session_name`
                  * * `is_pinned`
            +     * * `display_name`
                  *
                  * Example:
                  *
            -     * * "update_time desc"
            -     * * "create_time"
            -     * * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
            +     * * `update_time desc`
            +     * * `create_time`
            +     * * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
                  * by update_time.
                  * 
            * @@ -1388,18 +1447,20 @@ public Builder setOrderBy(java.lang.String value) { *
                  * A comma-separated list of fields to order by, sorted in ascending order.
                  * Use "desc" after a field name for descending.
            +     *
                  * Supported fields:
                  *
                  * * `update_time`
                  * * `create_time`
                  * * `session_name`
                  * * `is_pinned`
            +     * * `display_name`
                  *
                  * Example:
                  *
            -     * * "update_time desc"
            -     * * "create_time"
            -     * * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
            +     * * `update_time desc`
            +     * * `create_time`
            +     * * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
                  * by update_time.
                  * 
            * @@ -1420,18 +1481,20 @@ public Builder clearOrderBy() { *
                  * A comma-separated list of fields to order by, sorted in ascending order.
                  * Use "desc" after a field name for descending.
            +     *
                  * Supported fields:
                  *
                  * * `update_time`
                  * * `create_time`
                  * * `session_name`
                  * * `is_pinned`
            +     * * `display_name`
                  *
                  * Example:
                  *
            -     * * "update_time desc"
            -     * * "create_time"
            -     * * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
            +     * * `update_time desc`
            +     * * `create_time`
            +     * * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
                  * by update_time.
                  * 
            * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSessionsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSessionsRequestOrBuilder.java index 46c9dedc6a6b..68ff4241f99e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSessionsRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListSessionsRequestOrBuilder.java @@ -105,7 +105,9 @@ public interface ListSessionsRequestOrBuilder * *
                * A comma-separated list of fields to filter by, in EBNF grammar.
            +   *
                * The supported fields are:
            +   *
                * * `user_pseudo_id`
                * * `state`
                * * `display_name`
            @@ -114,13 +116,18 @@ public interface ListSessionsRequestOrBuilder
                * * `labels`
                * * `create_time`
                * * `update_time`
            +   * * `collaborative_project`
                *
                * Examples:
            -   * "user_pseudo_id = some_id"
            -   * "display_name = \"some_name\""
            -   * "starred = true"
            -   * "is_pinned=true AND (NOT labels:hidden)"
            -   * "create_time > \"1970-01-01T12:00:00Z\""
            +   *
            +   * * `user_pseudo_id = some_id`
            +   * * `display_name = "some_name"`
            +   * * `starred = true`
            +   * * `is_pinned=true AND (NOT labels:hidden)`
            +   * * `create_time > "1970-01-01T12:00:00Z"`
            +   * * `collaborative_project =
            +   * "projects/123/locations/global/collections/default_collection/engines/"
            +   * "default_engine/collaborative_projects/cp1"`
                * 
            * * string filter = 4; @@ -134,7 +141,9 @@ public interface ListSessionsRequestOrBuilder * *
                * A comma-separated list of fields to filter by, in EBNF grammar.
            +   *
                * The supported fields are:
            +   *
                * * `user_pseudo_id`
                * * `state`
                * * `display_name`
            @@ -143,13 +152,18 @@ public interface ListSessionsRequestOrBuilder
                * * `labels`
                * * `create_time`
                * * `update_time`
            +   * * `collaborative_project`
                *
                * Examples:
            -   * "user_pseudo_id = some_id"
            -   * "display_name = \"some_name\""
            -   * "starred = true"
            -   * "is_pinned=true AND (NOT labels:hidden)"
            -   * "create_time > \"1970-01-01T12:00:00Z\""
            +   *
            +   * * `user_pseudo_id = some_id`
            +   * * `display_name = "some_name"`
            +   * * `starred = true`
            +   * * `is_pinned=true AND (NOT labels:hidden)`
            +   * * `create_time > "1970-01-01T12:00:00Z"`
            +   * * `collaborative_project =
            +   * "projects/123/locations/global/collections/default_collection/engines/"
            +   * "default_engine/collaborative_projects/cp1"`
                * 
            * * string filter = 4; @@ -164,18 +178,20 @@ public interface ListSessionsRequestOrBuilder *
                * A comma-separated list of fields to order by, sorted in ascending order.
                * Use "desc" after a field name for descending.
            +   *
                * Supported fields:
                *
                * * `update_time`
                * * `create_time`
                * * `session_name`
                * * `is_pinned`
            +   * * `display_name`
                *
                * Example:
                *
            -   * * "update_time desc"
            -   * * "create_time"
            -   * * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
            +   * * `update_time desc`
            +   * * `create_time`
            +   * * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
                * by update_time.
                * 
            * @@ -191,18 +207,20 @@ public interface ListSessionsRequestOrBuilder *
                * A comma-separated list of fields to order by, sorted in ascending order.
                * Use "desc" after a field name for descending.
            +   *
                * Supported fields:
                *
                * * `update_time`
                * * `create_time`
                * * `session_name`
                * * `is_pinned`
            +   * * `display_name`
                *
                * Example:
                *
            -   * * "update_time desc"
            -   * * "create_time"
            -   * * "is_pinned desc,update_time desc": list sessions by is_pinned first, then
            +   * * `update_time desc`
            +   * * `create_time`
            +   * * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then
                * by update_time.
                * 
            * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListUserLicensesRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListUserLicensesRequest.java new file mode 100644 index 000000000000..4d87466d2feb --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListUserLicensesRequest.java @@ -0,0 +1,1566 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for
            + * [UserLicenseService.ListUserLicenses][google.cloud.discoveryengine.v1beta.UserLicenseService.ListUserLicenses].
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListUserLicensesRequest} + */ +@com.google.protobuf.Generated +public final class ListUserLicensesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListUserLicensesRequest) + ListUserLicensesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListUserLicensesRequest"); + } + + // Use ListUserLicensesRequest.newBuilder() to construct. + private ListUserLicensesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListUserLicensesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListUserLicensesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListUserLicensesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest.class, + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent
            +   * [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name,
            +   * format:
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent
            +   * [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name,
            +   * format:
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. Requested page size. Server may return fewer items than
            +   * requested. If unspecified, defaults to 10. The maximum value is 50; values
            +   * above 50 will be coerced to 50.
            +   *
            +   * If this field is negative, an INVALID_ARGUMENT error is returned.
            +   * 
            + * + * 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 `ListUserLicenses` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to `ListUserLicenses`
            +   * must match the call that provided the page token.
            +   * 
            + * + * 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 `ListUserLicenses` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to `ListUserLicenses`
            +   * must match the call that provided the page token.
            +   * 
            + * + * 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. Filter for the list request.
            +   *
            +   * Supported fields:
            +   *
            +   * * `license_assignment_state`
            +   * * `user_principal`
            +   * *
            +   * Examples:
            +   *
            +   * * `license_assignment_state = ASSIGNED` to list assigned user licenses.
            +   * * `license_assignment_state = NO_LICENSE` to list not licensed users.
            +   * * `license_assignment_state = NO_LICENSE_ATTEMPTED_LOGIN` to list users
            +   * who attempted login but no license assigned.
            +   * * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter
            +   * out users who attempted login but no license assigned.
            +   * * `user_principal = user1@example.com` to list user license for
            +   * `user1@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. Filter for the list request.
            +   *
            +   * Supported fields:
            +   *
            +   * * `license_assignment_state`
            +   * * `user_principal`
            +   * *
            +   * Examples:
            +   *
            +   * * `license_assignment_state = ASSIGNED` to list assigned user licenses.
            +   * * `license_assignment_state = NO_LICENSE` to list not licensed users.
            +   * * `license_assignment_state = NO_LICENSE_ATTEMPTED_LOGIN` to list users
            +   * who attempted login but no license assigned.
            +   * * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter
            +   * out users who attempted login but no license assigned.
            +   * * `user_principal = user1@example.com` to list user license for
            +   * `user1@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 order in which the
            +   * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s are listed.
            +   * The value must be a comma-separated list of fields. Default sorting order
            +   * is ascending. To specify descending order for a field, append a " desc"
            +   * suffix. Redundant space characters in the syntax are insignificant.
            +   *
            +   * Supported fields (only `user_principal` is supported for now):
            +   *
            +   * * `user_principal`
            +   *
            +   * If not set, the default ordering is by `user_principal`.
            +   *
            +   * Examples:
            +   *
            +   * * `user_principal` to order by `user_principal` in ascending order.
            +   * * `user_principal desc` to order by `user_principal` in descending order.
            +   * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The order in which the
            +   * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s are listed.
            +   * The value must be a comma-separated list of fields. Default sorting order
            +   * is ascending. To specify descending order for a field, append a " desc"
            +   * suffix. Redundant space characters in the syntax are insignificant.
            +   *
            +   * Supported fields (only `user_principal` is supported for now):
            +   *
            +   * * `user_principal`
            +   *
            +   * If not set, the default ordering is by `user_principal`.
            +   *
            +   * Examples:
            +   *
            +   * * `user_principal` to order by `user_principal` in ascending order.
            +   * * `user_principal desc` to order by `user_principal` in descending order.
            +   * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest other = + (com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest 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.v1beta.ListUserLicensesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest parseFrom( + 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.v1beta.ListUserLicensesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [UserLicenseService.ListUserLicenses][google.cloud.discoveryengine.v1beta.UserLicenseService.ListUserLicenses].
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListUserLicensesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListUserLicensesRequest) + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListUserLicensesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListUserLicensesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest.class, + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListUserLicensesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest build() { + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest result = + new com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The parent
            +     * [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name,
            +     * format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent
            +     * [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name,
            +     * format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent
            +     * [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name,
            +     * format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent
            +     * [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name,
            +     * format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent
            +     * [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name,
            +     * format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. Requested page size. Server may return fewer items than
            +     * requested. If unspecified, defaults to 10. The maximum value is 50; values
            +     * above 50 will be coerced to 50.
            +     *
            +     * If this field is negative, an INVALID_ARGUMENT error is returned.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. Requested page size. Server may return fewer items than
            +     * requested. If unspecified, defaults to 10. The maximum value is 50; values
            +     * above 50 will be coerced to 50.
            +     *
            +     * If this field is negative, an INVALID_ARGUMENT error is returned.
            +     * 
            + * + * 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. Requested page size. Server may return fewer items than
            +     * requested. If unspecified, defaults to 10. The maximum value is 50; values
            +     * above 50 will be coerced to 50.
            +     *
            +     * If this field is negative, an INVALID_ARGUMENT error is returned.
            +     * 
            + * + * 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 `ListUserLicenses` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to `ListUserLicenses`
            +     * must match the call that provided the page token.
            +     * 
            + * + * 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 `ListUserLicenses` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to `ListUserLicenses`
            +     * must match the call that provided the page token.
            +     * 
            + * + * 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 `ListUserLicenses` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to `ListUserLicenses`
            +     * must match the call that provided the page token.
            +     * 
            + * + * 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 `ListUserLicenses` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to `ListUserLicenses`
            +     * must match the call that provided the page token.
            +     * 
            + * + * 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 `ListUserLicenses` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to `ListUserLicenses`
            +     * must match the call that provided the page token.
            +     * 
            + * + * 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. Filter for the list request.
            +     *
            +     * Supported fields:
            +     *
            +     * * `license_assignment_state`
            +     * * `user_principal`
            +     * *
            +     * Examples:
            +     *
            +     * * `license_assignment_state = ASSIGNED` to list assigned user licenses.
            +     * * `license_assignment_state = NO_LICENSE` to list not licensed users.
            +     * * `license_assignment_state = NO_LICENSE_ATTEMPTED_LOGIN` to list users
            +     * who attempted login but no license assigned.
            +     * * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter
            +     * out users who attempted login but no license assigned.
            +     * * `user_principal = user1@example.com` to list user license for
            +     * `user1@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. Filter for the list request.
            +     *
            +     * Supported fields:
            +     *
            +     * * `license_assignment_state`
            +     * * `user_principal`
            +     * *
            +     * Examples:
            +     *
            +     * * `license_assignment_state = ASSIGNED` to list assigned user licenses.
            +     * * `license_assignment_state = NO_LICENSE` to list not licensed users.
            +     * * `license_assignment_state = NO_LICENSE_ATTEMPTED_LOGIN` to list users
            +     * who attempted login but no license assigned.
            +     * * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter
            +     * out users who attempted login but no license assigned.
            +     * * `user_principal = user1@example.com` to list user license for
            +     * `user1@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. Filter for the list request.
            +     *
            +     * Supported fields:
            +     *
            +     * * `license_assignment_state`
            +     * * `user_principal`
            +     * *
            +     * Examples:
            +     *
            +     * * `license_assignment_state = ASSIGNED` to list assigned user licenses.
            +     * * `license_assignment_state = NO_LICENSE` to list not licensed users.
            +     * * `license_assignment_state = NO_LICENSE_ATTEMPTED_LOGIN` to list users
            +     * who attempted login but no license assigned.
            +     * * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter
            +     * out users who attempted login but no license assigned.
            +     * * `user_principal = user1@example.com` to list user license for
            +     * `user1@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. Filter for the list request.
            +     *
            +     * Supported fields:
            +     *
            +     * * `license_assignment_state`
            +     * * `user_principal`
            +     * *
            +     * Examples:
            +     *
            +     * * `license_assignment_state = ASSIGNED` to list assigned user licenses.
            +     * * `license_assignment_state = NO_LICENSE` to list not licensed users.
            +     * * `license_assignment_state = NO_LICENSE_ATTEMPTED_LOGIN` to list users
            +     * who attempted login but no license assigned.
            +     * * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter
            +     * out users who attempted login but no license assigned.
            +     * * `user_principal = user1@example.com` to list user license for
            +     * `user1@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. Filter for the list request.
            +     *
            +     * Supported fields:
            +     *
            +     * * `license_assignment_state`
            +     * * `user_principal`
            +     * *
            +     * Examples:
            +     *
            +     * * `license_assignment_state = ASSIGNED` to list assigned user licenses.
            +     * * `license_assignment_state = NO_LICENSE` to list not licensed users.
            +     * * `license_assignment_state = NO_LICENSE_ATTEMPTED_LOGIN` to list users
            +     * who attempted login but no license assigned.
            +     * * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter
            +     * out users who attempted login but no license assigned.
            +     * * `user_principal = user1@example.com` to list user license for
            +     * `user1@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 order in which the
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s are listed.
            +     * The value must be a comma-separated list of fields. Default sorting order
            +     * is ascending. To specify descending order for a field, append a " desc"
            +     * suffix. Redundant space characters in the syntax are insignificant.
            +     *
            +     * Supported fields (only `user_principal` is supported for now):
            +     *
            +     * * `user_principal`
            +     *
            +     * If not set, the default ordering is by `user_principal`.
            +     *
            +     * Examples:
            +     *
            +     * * `user_principal` to order by `user_principal` in ascending order.
            +     * * `user_principal desc` to order by `user_principal` in descending order.
            +     * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The order in which the
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s are listed.
            +     * The value must be a comma-separated list of fields. Default sorting order
            +     * is ascending. To specify descending order for a field, append a " desc"
            +     * suffix. Redundant space characters in the syntax are insignificant.
            +     *
            +     * Supported fields (only `user_principal` is supported for now):
            +     *
            +     * * `user_principal`
            +     *
            +     * If not set, the default ordering is by `user_principal`.
            +     *
            +     * Examples:
            +     *
            +     * * `user_principal` to order by `user_principal` in ascending order.
            +     * * `user_principal desc` to order by `user_principal` in descending order.
            +     * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The order in which the
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s are listed.
            +     * The value must be a comma-separated list of fields. Default sorting order
            +     * is ascending. To specify descending order for a field, append a " desc"
            +     * suffix. Redundant space characters in the syntax are insignificant.
            +     *
            +     * Supported fields (only `user_principal` is supported for now):
            +     *
            +     * * `user_principal`
            +     *
            +     * If not set, the default ordering is by `user_principal`.
            +     *
            +     * Examples:
            +     *
            +     * * `user_principal` to order by `user_principal` in ascending order.
            +     * * `user_principal desc` to order by `user_principal` in descending order.
            +     * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The order in which the
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s are listed.
            +     * The value must be a comma-separated list of fields. Default sorting order
            +     * is ascending. To specify descending order for a field, append a " desc"
            +     * suffix. Redundant space characters in the syntax are insignificant.
            +     *
            +     * Supported fields (only `user_principal` is supported for now):
            +     *
            +     * * `user_principal`
            +     *
            +     * If not set, the default ordering is by `user_principal`.
            +     *
            +     * Examples:
            +     *
            +     * * `user_principal` to order by `user_principal` in ascending order.
            +     * * `user_principal desc` to order by `user_principal` in descending order.
            +     * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The order in which the
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s are listed.
            +     * The value must be a comma-separated list of fields. Default sorting order
            +     * is ascending. To specify descending order for a field, append a " desc"
            +     * suffix. Redundant space characters in the syntax are insignificant.
            +     *
            +     * Supported fields (only `user_principal` is supported for now):
            +     *
            +     * * `user_principal`
            +     *
            +     * If not set, the default ordering is by `user_principal`.
            +     *
            +     * Examples:
            +     *
            +     * * `user_principal` to order by `user_principal` in ascending order.
            +     * * `user_principal desc` to order by `user_principal` in descending order.
            +     * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListUserLicensesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListUserLicensesRequest) + private static final com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUserLicensesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.ListUserLicensesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListUserLicensesRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListUserLicensesRequestOrBuilder.java new file mode 100644 index 000000000000..0e5c15794d3e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListUserLicensesRequestOrBuilder.java @@ -0,0 +1,229 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface ListUserLicensesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListUserLicensesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent
            +   * [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name,
            +   * format:
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent
            +   * [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name,
            +   * format:
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. Requested page size. Server may return fewer items than
            +   * requested. If unspecified, defaults to 10. The maximum value is 50; values
            +   * above 50 will be coerced to 50.
            +   *
            +   * If this field is negative, an INVALID_ARGUMENT error is returned.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. A page token, received from a previous `ListUserLicenses` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to `ListUserLicenses`
            +   * must match the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. A page token, received from a previous `ListUserLicenses` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to `ListUserLicenses`
            +   * must match the call that provided the page token.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. Filter for the list request.
            +   *
            +   * Supported fields:
            +   *
            +   * * `license_assignment_state`
            +   * * `user_principal`
            +   * *
            +   * Examples:
            +   *
            +   * * `license_assignment_state = ASSIGNED` to list assigned user licenses.
            +   * * `license_assignment_state = NO_LICENSE` to list not licensed users.
            +   * * `license_assignment_state = NO_LICENSE_ATTEMPTED_LOGIN` to list users
            +   * who attempted login but no license assigned.
            +   * * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter
            +   * out users who attempted login but no license assigned.
            +   * * `user_principal = user1@example.com` to list user license for
            +   * `user1@example.com`.
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Optional. Filter for the list request.
            +   *
            +   * Supported fields:
            +   *
            +   * * `license_assignment_state`
            +   * * `user_principal`
            +   * *
            +   * Examples:
            +   *
            +   * * `license_assignment_state = ASSIGNED` to list assigned user licenses.
            +   * * `license_assignment_state = NO_LICENSE` to list not licensed users.
            +   * * `license_assignment_state = NO_LICENSE_ATTEMPTED_LOGIN` to list users
            +   * who attempted login but no license assigned.
            +   * * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter
            +   * out users who attempted login but no license assigned.
            +   * * `user_principal = user1@example.com` to list user license for
            +   * `user1@example.com`.
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
            +   * Optional. The order in which the
            +   * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s are listed.
            +   * The value must be a comma-separated list of fields. Default sorting order
            +   * is ascending. To specify descending order for a field, append a " desc"
            +   * suffix. Redundant space characters in the syntax are insignificant.
            +   *
            +   * Supported fields (only `user_principal` is supported for now):
            +   *
            +   * * `user_principal`
            +   *
            +   * If not set, the default ordering is by `user_principal`.
            +   *
            +   * Examples:
            +   *
            +   * * `user_principal` to order by `user_principal` in ascending order.
            +   * * `user_principal desc` to order by `user_principal` in descending order.
            +   * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
            +   * Optional. The order in which the
            +   * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s are listed.
            +   * The value must be a comma-separated list of fields. Default sorting order
            +   * is ascending. To specify descending order for a field, append a " desc"
            +   * suffix. Redundant space characters in the syntax are insignificant.
            +   *
            +   * Supported fields (only `user_principal` is supported for now):
            +   *
            +   * * `user_principal`
            +   *
            +   * If not set, the default ordering is by `user_principal`.
            +   *
            +   * Examples:
            +   *
            +   * * `user_principal` to order by `user_principal` in ascending order.
            +   * * `user_principal desc` to order by `user_principal` in descending order.
            +   * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListUserLicensesResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListUserLicensesResponse.java new file mode 100644 index 000000000000..ad3011f6e7af --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListUserLicensesResponse.java @@ -0,0 +1,1163 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Response message for
            + * [UserLicenseService.ListUserLicenses][google.cloud.discoveryengine.v1beta.UserLicenseService.ListUserLicenses].
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListUserLicensesResponse} + */ +@com.google.protobuf.Generated +public final class ListUserLicensesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ListUserLicensesResponse) + ListUserLicensesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListUserLicensesResponse"); + } + + // Use ListUserLicensesResponse.newBuilder() to construct. + private ListUserLicensesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListUserLicensesResponse() { + userLicenses_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListUserLicensesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListUserLicensesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse.class, + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse.Builder.class); + } + + public static final int USER_LICENSES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List userLicenses_; + + /** + * + * + *
            +   * All the customer's
            +   * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + @java.lang.Override + public java.util.List getUserLicensesList() { + return userLicenses_; + } + + /** + * + * + *
            +   * All the customer's
            +   * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + @java.lang.Override + public java.util.List + getUserLicensesOrBuilderList() { + return userLicenses_; + } + + /** + * + * + *
            +   * All the customer's
            +   * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + @java.lang.Override + public int getUserLicensesCount() { + return userLicenses_.size(); + } + + /** + * + * + *
            +   * All the customer's
            +   * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserLicense getUserLicenses(int index) { + return userLicenses_.get(index); + } + + /** + * + * + *
            +   * All the customer's
            +   * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserLicenseOrBuilder getUserLicensesOrBuilder( + int index) { + return userLicenses_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page. 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, which can be sent as `page_token` to retrieve the next page. 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 < userLicenses_.size(); i++) { + output.writeMessage(1, userLicenses_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < userLicenses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userLicenses_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.discoveryengine.v1beta.ListUserLicensesResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse other = + (com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse) obj; + + if (!getUserLicensesList().equals(other.getUserLicensesList())) 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 (getUserLicensesCount() > 0) { + hash = (37 * hash) + USER_LICENSES_FIELD_NUMBER; + hash = (53 * hash) + getUserLicensesList().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.discoveryengine.v1beta.ListUserLicensesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse 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.v1beta.ListUserLicensesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse parseFrom( + 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.v1beta.ListUserLicensesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response message for
            +   * [UserLicenseService.ListUserLicenses][google.cloud.discoveryengine.v1beta.UserLicenseService.ListUserLicenses].
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ListUserLicensesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ListUserLicensesResponse) + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListUserLicensesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListUserLicensesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse.class, + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (userLicensesBuilder_ == null) { + userLicenses_ = java.util.Collections.emptyList(); + } else { + userLicenses_ = null; + userLicensesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ListUserLicensesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse build() { + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse buildPartial() { + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse result = + new com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse result) { + if (userLicensesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + userLicenses_ = java.util.Collections.unmodifiableList(userLicenses_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.userLicenses_ = userLicenses_; + } else { + result.userLicenses_ = userLicensesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse.getDefaultInstance()) + return this; + if (userLicensesBuilder_ == null) { + if (!other.userLicenses_.isEmpty()) { + if (userLicenses_.isEmpty()) { + userLicenses_ = other.userLicenses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUserLicensesIsMutable(); + userLicenses_.addAll(other.userLicenses_); + } + onChanged(); + } + } else { + if (!other.userLicenses_.isEmpty()) { + if (userLicensesBuilder_.isEmpty()) { + userLicensesBuilder_.dispose(); + userLicensesBuilder_ = null; + userLicenses_ = other.userLicenses_; + bitField0_ = (bitField0_ & ~0x00000001); + userLicensesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetUserLicensesFieldBuilder() + : null; + } else { + userLicensesBuilder_.addAllMessages(other.userLicenses_); + } + } + } + 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.discoveryengine.v1beta.UserLicense m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.UserLicense.parser(), + extensionRegistry); + if (userLicensesBuilder_ == null) { + ensureUserLicensesIsMutable(); + userLicenses_.add(m); + } else { + userLicensesBuilder_.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 userLicenses_ = + java.util.Collections.emptyList(); + + private void ensureUserLicensesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + userLicenses_ = + new java.util.ArrayList( + userLicenses_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserLicense, + com.google.cloud.discoveryengine.v1beta.UserLicense.Builder, + com.google.cloud.discoveryengine.v1beta.UserLicenseOrBuilder> + userLicensesBuilder_; + + /** + * + * + *
            +     * All the customer's
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public java.util.List + getUserLicensesList() { + if (userLicensesBuilder_ == null) { + return java.util.Collections.unmodifiableList(userLicenses_); + } else { + return userLicensesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public int getUserLicensesCount() { + if (userLicensesBuilder_ == null) { + return userLicenses_.size(); + } else { + return userLicensesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public com.google.cloud.discoveryengine.v1beta.UserLicense getUserLicenses(int index) { + if (userLicensesBuilder_ == null) { + return userLicenses_.get(index); + } else { + return userLicensesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public Builder setUserLicenses( + int index, com.google.cloud.discoveryengine.v1beta.UserLicense value) { + if (userLicensesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserLicensesIsMutable(); + userLicenses_.set(index, value); + onChanged(); + } else { + userLicensesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public Builder setUserLicenses( + int index, com.google.cloud.discoveryengine.v1beta.UserLicense.Builder builderForValue) { + if (userLicensesBuilder_ == null) { + ensureUserLicensesIsMutable(); + userLicenses_.set(index, builderForValue.build()); + onChanged(); + } else { + userLicensesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public Builder addUserLicenses(com.google.cloud.discoveryengine.v1beta.UserLicense value) { + if (userLicensesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserLicensesIsMutable(); + userLicenses_.add(value); + onChanged(); + } else { + userLicensesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public Builder addUserLicenses( + int index, com.google.cloud.discoveryengine.v1beta.UserLicense value) { + if (userLicensesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserLicensesIsMutable(); + userLicenses_.add(index, value); + onChanged(); + } else { + userLicensesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public Builder addUserLicenses( + com.google.cloud.discoveryengine.v1beta.UserLicense.Builder builderForValue) { + if (userLicensesBuilder_ == null) { + ensureUserLicensesIsMutable(); + userLicenses_.add(builderForValue.build()); + onChanged(); + } else { + userLicensesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public Builder addUserLicenses( + int index, com.google.cloud.discoveryengine.v1beta.UserLicense.Builder builderForValue) { + if (userLicensesBuilder_ == null) { + ensureUserLicensesIsMutable(); + userLicenses_.add(index, builderForValue.build()); + onChanged(); + } else { + userLicensesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public Builder addAllUserLicenses( + java.lang.Iterable values) { + if (userLicensesBuilder_ == null) { + ensureUserLicensesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userLicenses_); + onChanged(); + } else { + userLicensesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public Builder clearUserLicenses() { + if (userLicensesBuilder_ == null) { + userLicenses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + userLicensesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public Builder removeUserLicenses(int index) { + if (userLicensesBuilder_ == null) { + ensureUserLicensesIsMutable(); + userLicenses_.remove(index); + onChanged(); + } else { + userLicensesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * All the customer's
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public com.google.cloud.discoveryengine.v1beta.UserLicense.Builder getUserLicensesBuilder( + int index) { + return internalGetUserLicensesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * All the customer's
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public com.google.cloud.discoveryengine.v1beta.UserLicenseOrBuilder getUserLicensesOrBuilder( + int index) { + if (userLicensesBuilder_ == null) { + return userLicenses_.get(index); + } else { + return userLicensesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public java.util.List + getUserLicensesOrBuilderList() { + if (userLicensesBuilder_ != null) { + return userLicensesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(userLicenses_); + } + } + + /** + * + * + *
            +     * All the customer's
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public com.google.cloud.discoveryengine.v1beta.UserLicense.Builder addUserLicensesBuilder() { + return internalGetUserLicensesFieldBuilder() + .addBuilder(com.google.cloud.discoveryengine.v1beta.UserLicense.getDefaultInstance()); + } + + /** + * + * + *
            +     * All the customer's
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public com.google.cloud.discoveryengine.v1beta.UserLicense.Builder addUserLicensesBuilder( + int index) { + return internalGetUserLicensesFieldBuilder() + .addBuilder( + index, com.google.cloud.discoveryengine.v1beta.UserLicense.getDefaultInstance()); + } + + /** + * + * + *
            +     * All the customer's
            +     * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +     * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + public java.util.List + getUserLicensesBuilderList() { + return internalGetUserLicensesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserLicense, + com.google.cloud.discoveryengine.v1beta.UserLicense.Builder, + com.google.cloud.discoveryengine.v1beta.UserLicenseOrBuilder> + internalGetUserLicensesFieldBuilder() { + if (userLicensesBuilder_ == null) { + userLicensesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserLicense, + com.google.cloud.discoveryengine.v1beta.UserLicense.Builder, + com.google.cloud.discoveryengine.v1beta.UserLicenseOrBuilder>( + userLicenses_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + userLicenses_ = null; + } + return userLicensesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page. 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, which can be sent as `page_token` to retrieve the next page. 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, which can be sent as `page_token` to retrieve the next page. 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, which can be sent as `page_token` to retrieve the next page. 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, which can be sent as `page_token` to retrieve the next page. 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ListUserLicensesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ListUserLicensesResponse) + private static final com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListUserLicensesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.ListUserLicensesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListUserLicensesResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListUserLicensesResponseOrBuilder.java new file mode 100644 index 000000000000..8f18a7f0e5be --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ListUserLicensesResponseOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface ListUserLicensesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ListUserLicensesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * All the customer's
            +   * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + java.util.List getUserLicensesList(); + + /** + * + * + *
            +   * All the customer's
            +   * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + com.google.cloud.discoveryengine.v1beta.UserLicense getUserLicenses(int index); + + /** + * + * + *
            +   * All the customer's
            +   * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + int getUserLicensesCount(); + + /** + * + * + *
            +   * All the customer's
            +   * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + java.util.List + getUserLicensesOrBuilderList(); + + /** + * + * + *
            +   * All the customer's
            +   * [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.UserLicense user_licenses = 1; + */ + com.google.cloud.discoveryengine.v1beta.UserLicenseOrBuilder getUserLicensesOrBuilder(int index); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page. If
            +   * this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page. 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-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LoggingProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LoggingProto.java new file mode 100644 index 000000000000..95f1a5f762aa --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/LoggingProto.java @@ -0,0 +1,97 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/logging.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public final class LoggingProto extends com.google.protobuf.GeneratedFile { + private LoggingProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "LoggingProto"); + } + + 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_discoveryengine_v1beta_ObservabilityConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ObservabilityConfig_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/cloud/discoveryengine/v1beta/lo" + + "gging.proto\022#google.cloud.discoveryengin" + + "e.v1beta\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\"a\n\023Observab" + + "ilityConfig\022\"\n\025observability_enabled\030\001 \001" + + "(\010B\003\340A\001\022&\n\031sensitive_logging_enabled\030\002 \001" + + "(\010B\003\340A\001B\223\002\n\'com.google.cloud.discoveryen" + + "gine.v1betaB\014LoggingProtoP\001ZQcloud.googl" + + "e.com/go/discoveryengine/apiv1beta/disco" + + "veryenginepb;discoveryenginepb\242\002\017DISCOVE" + + "RYENGINE\252\002#Google.Cloud.DiscoveryEngine." + + "V1Beta\312\002#Google\\Cloud\\DiscoveryEngine\\V1" + + "beta\352\002&Google::Cloud::DiscoveryEngine::V" + + "1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_ObservabilityConfig_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1beta_ObservabilityConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ObservabilityConfig_descriptor, + new java.lang.String[] { + "ObservabilityEnabled", "SensitiveLoggingEnabled", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ObservabilityConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ObservabilityConfig.java new file mode 100644 index 000000000000..58b3e0198fe7 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ObservabilityConfig.java @@ -0,0 +1,609 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/logging.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Observability config for a resource.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ObservabilityConfig} + */ +@com.google.protobuf.Generated +public final class ObservabilityConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ObservabilityConfig) + ObservabilityConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ObservabilityConfig"); + } + + // Use ObservabilityConfig.newBuilder() to construct. + private ObservabilityConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ObservabilityConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LoggingProto + .internal_static_google_cloud_discoveryengine_v1beta_ObservabilityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LoggingProto + .internal_static_google_cloud_discoveryengine_v1beta_ObservabilityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.class, + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.Builder.class); + } + + public static final int OBSERVABILITY_ENABLED_FIELD_NUMBER = 1; + private boolean observabilityEnabled_ = false; + + /** + * + * + *
            +   * Optional. Enables observability. If `false`, all other flags are ignored.
            +   * 
            + * + * bool observability_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The observabilityEnabled. + */ + @java.lang.Override + public boolean getObservabilityEnabled() { + return observabilityEnabled_; + } + + public static final int SENSITIVE_LOGGING_ENABLED_FIELD_NUMBER = 2; + private boolean sensitiveLoggingEnabled_ = false; + + /** + * + * + *
            +   * Optional. Enables sensitive logging. Sensitive logging includes customer
            +   * core content (e.g. prompts, responses). If `false`, will sanitize all
            +   * sensitive fields.
            +   * 
            + * + * bool sensitive_logging_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sensitiveLoggingEnabled. + */ + @java.lang.Override + public boolean getSensitiveLoggingEnabled() { + return sensitiveLoggingEnabled_; + } + + 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 (observabilityEnabled_ != false) { + output.writeBool(1, observabilityEnabled_); + } + if (sensitiveLoggingEnabled_ != false) { + output.writeBool(2, sensitiveLoggingEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (observabilityEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, observabilityEnabled_); + } + if (sensitiveLoggingEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, sensitiveLoggingEnabled_); + } + 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.v1beta.ObservabilityConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig other = + (com.google.cloud.discoveryengine.v1beta.ObservabilityConfig) obj; + + if (getObservabilityEnabled() != other.getObservabilityEnabled()) return false; + if (getSensitiveLoggingEnabled() != other.getSensitiveLoggingEnabled()) 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) + OBSERVABILITY_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getObservabilityEnabled()); + hash = (37 * hash) + SENSITIVE_LOGGING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSensitiveLoggingEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ObservabilityConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ObservabilityConfig 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.v1beta.ObservabilityConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ObservabilityConfig parseFrom( + 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.v1beta.ObservabilityConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ObservabilityConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ObservabilityConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ObservabilityConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ObservabilityConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ObservabilityConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ObservabilityConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ObservabilityConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Observability config for a resource.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ObservabilityConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ObservabilityConfig) + com.google.cloud.discoveryengine.v1beta.ObservabilityConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LoggingProto + .internal_static_google_cloud_discoveryengine_v1beta_ObservabilityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LoggingProto + .internal_static_google_cloud_discoveryengine_v1beta_ObservabilityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.class, + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + observabilityEnabled_ = false; + sensitiveLoggingEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.LoggingProto + .internal_static_google_cloud_discoveryengine_v1beta_ObservabilityConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ObservabilityConfig getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ObservabilityConfig build() { + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ObservabilityConfig buildPartial() { + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig result = + new com.google.cloud.discoveryengine.v1beta.ObservabilityConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ObservabilityConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.observabilityEnabled_ = observabilityEnabled_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sensitiveLoggingEnabled_ = sensitiveLoggingEnabled_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.ObservabilityConfig) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.ObservabilityConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ObservabilityConfig other) { + if (other == com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.getDefaultInstance()) + return this; + if (other.getObservabilityEnabled() != false) { + setObservabilityEnabled(other.getObservabilityEnabled()); + } + if (other.getSensitiveLoggingEnabled() != false) { + setSensitiveLoggingEnabled(other.getSensitiveLoggingEnabled()); + } + 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: + { + observabilityEnabled_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + sensitiveLoggingEnabled_ = 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 observabilityEnabled_; + + /** + * + * + *
            +     * Optional. Enables observability. If `false`, all other flags are ignored.
            +     * 
            + * + * bool observability_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The observabilityEnabled. + */ + @java.lang.Override + public boolean getObservabilityEnabled() { + return observabilityEnabled_; + } + + /** + * + * + *
            +     * Optional. Enables observability. If `false`, all other flags are ignored.
            +     * 
            + * + * bool observability_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The observabilityEnabled to set. + * @return This builder for chaining. + */ + public Builder setObservabilityEnabled(boolean value) { + + observabilityEnabled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Enables observability. If `false`, all other flags are ignored.
            +     * 
            + * + * bool observability_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearObservabilityEnabled() { + bitField0_ = (bitField0_ & ~0x00000001); + observabilityEnabled_ = false; + onChanged(); + return this; + } + + private boolean sensitiveLoggingEnabled_; + + /** + * + * + *
            +     * Optional. Enables sensitive logging. Sensitive logging includes customer
            +     * core content (e.g. prompts, responses). If `false`, will sanitize all
            +     * sensitive fields.
            +     * 
            + * + * bool sensitive_logging_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sensitiveLoggingEnabled. + */ + @java.lang.Override + public boolean getSensitiveLoggingEnabled() { + return sensitiveLoggingEnabled_; + } + + /** + * + * + *
            +     * Optional. Enables sensitive logging. Sensitive logging includes customer
            +     * core content (e.g. prompts, responses). If `false`, will sanitize all
            +     * sensitive fields.
            +     * 
            + * + * bool sensitive_logging_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sensitiveLoggingEnabled to set. + * @return This builder for chaining. + */ + public Builder setSensitiveLoggingEnabled(boolean value) { + + sensitiveLoggingEnabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Enables sensitive logging. Sensitive logging includes customer
            +     * core content (e.g. prompts, responses). If `false`, will sanitize all
            +     * sensitive fields.
            +     * 
            + * + * bool sensitive_logging_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSensitiveLoggingEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + sensitiveLoggingEnabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ObservabilityConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ObservabilityConfig) + private static final com.google.cloud.discoveryengine.v1beta.ObservabilityConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.ObservabilityConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.ObservabilityConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObservabilityConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.ObservabilityConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ObservabilityConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ObservabilityConfigOrBuilder.java new file mode 100644 index 000000000000..595505c1ab9c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ObservabilityConfigOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/logging.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface ObservabilityConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.ObservabilityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. Enables observability. If `false`, all other flags are ignored.
            +   * 
            + * + * bool observability_enabled = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The observabilityEnabled. + */ + boolean getObservabilityEnabled(); + + /** + * + * + *
            +   * Optional. Enables sensitive logging. Sensitive logging includes customer
            +   * core content (e.g. prompts, responses). If `false`, will sanitize all
            +   * sensitive fields.
            +   * 
            + * + * bool sensitive_logging_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The sensitiveLoggingEnabled. + */ + boolean getSensitiveLoggingEnabled(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Principal.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Principal.java new file mode 100644 index 000000000000..9755ef1bcbaf --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Principal.java @@ -0,0 +1,1294 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Principal identifier of a user or a group.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Principal} + */ +@com.google.protobuf.Generated +public final class Principal extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Principal) + PrincipalOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Principal"); + } + + // Use Principal.newBuilder() to construct. + private Principal(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Principal() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_Principal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_Principal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Principal.class, + com.google.cloud.discoveryengine.v1beta.Principal.Builder.class); + } + + private int principalCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object principal_; + + public enum PrincipalCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + USER_ID(1), + GROUP_ID(2), + EXTERNAL_ENTITY_ID(3), + PRINCIPAL_NOT_SET(0); + private final int value; + + private PrincipalCase(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 PrincipalCase valueOf(int value) { + return forNumber(value); + } + + public static PrincipalCase forNumber(int value) { + switch (value) { + case 1: + return USER_ID; + case 2: + return GROUP_ID; + case 3: + return EXTERNAL_ENTITY_ID; + case 0: + return PRINCIPAL_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PrincipalCase getPrincipalCase() { + return PrincipalCase.forNumber(principalCase_); + } + + public static final int USER_ID_FIELD_NUMBER = 1; + + /** + * + * + *
            +   * User identifier.
            +   * For Google Workspace user account, user_id should be the google workspace
            +   * user email.
            +   * For non-google identity provider user account, user_id is the mapped user
            +   * identifier configured during the workforcepool config.
            +   * 
            + * + * string user_id = 1; + * + * @return Whether the userId field is set. + */ + public boolean hasUserId() { + return principalCase_ == 1; + } + + /** + * + * + *
            +   * User identifier.
            +   * For Google Workspace user account, user_id should be the google workspace
            +   * user email.
            +   * For non-google identity provider user account, user_id is the mapped user
            +   * identifier configured during the workforcepool config.
            +   * 
            + * + * string user_id = 1; + * + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = ""; + if (principalCase_ == 1) { + ref = principal_; + } + if (ref instanceof java.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 (principalCase_ == 1) { + principal_ = s; + } + return s; + } + } + + /** + * + * + *
            +   * User identifier.
            +   * For Google Workspace user account, user_id should be the google workspace
            +   * user email.
            +   * For non-google identity provider user account, user_id is the mapped user
            +   * identifier configured during the workforcepool config.
            +   * 
            + * + * string user_id = 1; + * + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 1) { + ref = principal_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 1) { + principal_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUP_ID_FIELD_NUMBER = 2; + + /** + * + * + *
            +   * Group identifier.
            +   * For Google Workspace user account, group_id should be the google
            +   * workspace group email.
            +   * For non-google identity provider user account, group_id is the mapped
            +   * group identifier configured during the workforcepool config.
            +   * 
            + * + * string group_id = 2; + * + * @return Whether the groupId field is set. + */ + public boolean hasGroupId() { + return principalCase_ == 2; + } + + /** + * + * + *
            +   * Group identifier.
            +   * For Google Workspace user account, group_id should be the google
            +   * workspace group email.
            +   * For non-google identity provider user account, group_id is the mapped
            +   * group identifier configured during the workforcepool config.
            +   * 
            + * + * string group_id = 2; + * + * @return The groupId. + */ + public java.lang.String getGroupId() { + java.lang.Object ref = ""; + if (principalCase_ == 2) { + ref = principal_; + } + if (ref instanceof java.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 (principalCase_ == 2) { + principal_ = s; + } + return s; + } + } + + /** + * + * + *
            +   * Group identifier.
            +   * For Google Workspace user account, group_id should be the google
            +   * workspace group email.
            +   * For non-google identity provider user account, group_id is the mapped
            +   * group identifier configured during the workforcepool config.
            +   * 
            + * + * string group_id = 2; + * + * @return The bytes for groupId. + */ + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 2) { + ref = principal_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 2) { + principal_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXTERNAL_ENTITY_ID_FIELD_NUMBER = 3; + + /** + * + * + *
            +   * For 3P application identities which are not present in the customer
            +   * identity provider.
            +   * 
            + * + * string external_entity_id = 3; + * + * @return Whether the externalEntityId field is set. + */ + public boolean hasExternalEntityId() { + return principalCase_ == 3; + } + + /** + * + * + *
            +   * For 3P application identities which are not present in the customer
            +   * identity provider.
            +   * 
            + * + * string external_entity_id = 3; + * + * @return The externalEntityId. + */ + public java.lang.String getExternalEntityId() { + java.lang.Object ref = ""; + if (principalCase_ == 3) { + ref = principal_; + } + if (ref instanceof java.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 (principalCase_ == 3) { + principal_ = s; + } + return s; + } + } + + /** + * + * + *
            +   * For 3P application identities which are not present in the customer
            +   * identity provider.
            +   * 
            + * + * string external_entity_id = 3; + * + * @return The bytes for externalEntityId. + */ + public com.google.protobuf.ByteString getExternalEntityIdBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 3) { + ref = principal_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 3) { + principal_ = 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 (principalCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, principal_); + } + if (principalCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, principal_); + } + if (principalCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, principal_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (principalCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, principal_); + } + if (principalCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, principal_); + } + if (principalCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, principal_); + } + 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.v1beta.Principal)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Principal other = + (com.google.cloud.discoveryengine.v1beta.Principal) obj; + + if (!getPrincipalCase().equals(other.getPrincipalCase())) return false; + switch (principalCase_) { + case 1: + if (!getUserId().equals(other.getUserId())) return false; + break; + case 2: + if (!getGroupId().equals(other.getGroupId())) return false; + break; + case 3: + if (!getExternalEntityId().equals(other.getExternalEntityId())) 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 (principalCase_) { + case 1: + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + break; + case 2: + hash = (37 * hash) + GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getGroupId().hashCode(); + break; + case 3: + hash = (37 * hash) + EXTERNAL_ENTITY_ID_FIELD_NUMBER; + hash = (53 * hash) + getExternalEntityId().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Principal parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Principal 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.v1beta.Principal parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Principal parseFrom( + 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.v1beta.Principal parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Principal parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Principal parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Principal parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Principal parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Principal parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Principal parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Principal parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.Principal prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Principal identifier of a user or a group.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Principal} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Principal) + com.google.cloud.discoveryengine.v1beta.PrincipalOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_Principal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_Principal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Principal.class, + com.google.cloud.discoveryengine.v1beta.Principal.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.Principal.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + principalCase_ = 0; + principal_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_Principal_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Principal getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Principal.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Principal build() { + com.google.cloud.discoveryengine.v1beta.Principal result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Principal buildPartial() { + com.google.cloud.discoveryengine.v1beta.Principal result = + new com.google.cloud.discoveryengine.v1beta.Principal(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Principal result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.discoveryengine.v1beta.Principal result) { + result.principalCase_ = principalCase_; + result.principal_ = this.principal_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Principal) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Principal) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Principal other) { + if (other == com.google.cloud.discoveryengine.v1beta.Principal.getDefaultInstance()) + return this; + switch (other.getPrincipalCase()) { + case USER_ID: + { + principalCase_ = 1; + principal_ = other.principal_; + onChanged(); + break; + } + case GROUP_ID: + { + principalCase_ = 2; + principal_ = other.principal_; + onChanged(); + break; + } + case EXTERNAL_ENTITY_ID: + { + principalCase_ = 3; + principal_ = other.principal_; + onChanged(); + break; + } + case PRINCIPAL_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(); + principalCase_ = 1; + principal_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + principalCase_ = 2; + principal_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + principalCase_ = 3; + principal_ = s; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int principalCase_ = 0; + private java.lang.Object principal_; + + public PrincipalCase getPrincipalCase() { + return PrincipalCase.forNumber(principalCase_); + } + + public Builder clearPrincipal() { + principalCase_ = 0; + principal_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
            +     * User identifier.
            +     * For Google Workspace user account, user_id should be the google workspace
            +     * user email.
            +     * For non-google identity provider user account, user_id is the mapped user
            +     * identifier configured during the workforcepool config.
            +     * 
            + * + * string user_id = 1; + * + * @return Whether the userId field is set. + */ + @java.lang.Override + public boolean hasUserId() { + return principalCase_ == 1; + } + + /** + * + * + *
            +     * User identifier.
            +     * For Google Workspace user account, user_id should be the google workspace
            +     * user email.
            +     * For non-google identity provider user account, user_id is the mapped user
            +     * identifier configured during the workforcepool config.
            +     * 
            + * + * string user_id = 1; + * + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = ""; + if (principalCase_ == 1) { + ref = principal_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (principalCase_ == 1) { + principal_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * User identifier.
            +     * For Google Workspace user account, user_id should be the google workspace
            +     * user email.
            +     * For non-google identity provider user account, user_id is the mapped user
            +     * identifier configured during the workforcepool config.
            +     * 
            + * + * string user_id = 1; + * + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 1) { + ref = principal_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 1) { + principal_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * User identifier.
            +     * For Google Workspace user account, user_id should be the google workspace
            +     * user email.
            +     * For non-google identity provider user account, user_id is the mapped user
            +     * identifier configured during the workforcepool config.
            +     * 
            + * + * string user_id = 1; + * + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + principalCase_ = 1; + principal_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * User identifier.
            +     * For Google Workspace user account, user_id should be the google workspace
            +     * user email.
            +     * For non-google identity provider user account, user_id is the mapped user
            +     * identifier configured during the workforcepool config.
            +     * 
            + * + * string user_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearUserId() { + if (principalCase_ == 1) { + principalCase_ = 0; + principal_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * User identifier.
            +     * For Google Workspace user account, user_id should be the google workspace
            +     * user email.
            +     * For non-google identity provider user account, user_id is the mapped user
            +     * identifier configured during the workforcepool config.
            +     * 
            + * + * string user_id = 1; + * + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principalCase_ = 1; + principal_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Group identifier.
            +     * For Google Workspace user account, group_id should be the google
            +     * workspace group email.
            +     * For non-google identity provider user account, group_id is the mapped
            +     * group identifier configured during the workforcepool config.
            +     * 
            + * + * string group_id = 2; + * + * @return Whether the groupId field is set. + */ + @java.lang.Override + public boolean hasGroupId() { + return principalCase_ == 2; + } + + /** + * + * + *
            +     * Group identifier.
            +     * For Google Workspace user account, group_id should be the google
            +     * workspace group email.
            +     * For non-google identity provider user account, group_id is the mapped
            +     * group identifier configured during the workforcepool config.
            +     * 
            + * + * string group_id = 2; + * + * @return The groupId. + */ + @java.lang.Override + public java.lang.String getGroupId() { + java.lang.Object ref = ""; + if (principalCase_ == 2) { + ref = principal_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (principalCase_ == 2) { + principal_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Group identifier.
            +     * For Google Workspace user account, group_id should be the google
            +     * workspace group email.
            +     * For non-google identity provider user account, group_id is the mapped
            +     * group identifier configured during the workforcepool config.
            +     * 
            + * + * string group_id = 2; + * + * @return The bytes for groupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 2) { + ref = principal_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 2) { + principal_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Group identifier.
            +     * For Google Workspace user account, group_id should be the google
            +     * workspace group email.
            +     * For non-google identity provider user account, group_id is the mapped
            +     * group identifier configured during the workforcepool config.
            +     * 
            + * + * string group_id = 2; + * + * @param value The groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + principalCase_ = 2; + principal_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Group identifier.
            +     * For Google Workspace user account, group_id should be the google
            +     * workspace group email.
            +     * For non-google identity provider user account, group_id is the mapped
            +     * group identifier configured during the workforcepool config.
            +     * 
            + * + * string group_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearGroupId() { + if (principalCase_ == 2) { + principalCase_ = 0; + principal_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Group identifier.
            +     * For Google Workspace user account, group_id should be the google
            +     * workspace group email.
            +     * For non-google identity provider user account, group_id is the mapped
            +     * group identifier configured during the workforcepool config.
            +     * 
            + * + * string group_id = 2; + * + * @param value The bytes for groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principalCase_ = 2; + principal_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * For 3P application identities which are not present in the customer
            +     * identity provider.
            +     * 
            + * + * string external_entity_id = 3; + * + * @return Whether the externalEntityId field is set. + */ + @java.lang.Override + public boolean hasExternalEntityId() { + return principalCase_ == 3; + } + + /** + * + * + *
            +     * For 3P application identities which are not present in the customer
            +     * identity provider.
            +     * 
            + * + * string external_entity_id = 3; + * + * @return The externalEntityId. + */ + @java.lang.Override + public java.lang.String getExternalEntityId() { + java.lang.Object ref = ""; + if (principalCase_ == 3) { + ref = principal_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (principalCase_ == 3) { + principal_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * For 3P application identities which are not present in the customer
            +     * identity provider.
            +     * 
            + * + * string external_entity_id = 3; + * + * @return The bytes for externalEntityId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getExternalEntityIdBytes() { + java.lang.Object ref = ""; + if (principalCase_ == 3) { + ref = principal_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (principalCase_ == 3) { + principal_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * For 3P application identities which are not present in the customer
            +     * identity provider.
            +     * 
            + * + * string external_entity_id = 3; + * + * @param value The externalEntityId to set. + * @return This builder for chaining. + */ + public Builder setExternalEntityId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + principalCase_ = 3; + principal_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * For 3P application identities which are not present in the customer
            +     * identity provider.
            +     * 
            + * + * string external_entity_id = 3; + * + * @return This builder for chaining. + */ + public Builder clearExternalEntityId() { + if (principalCase_ == 3) { + principalCase_ = 0; + principal_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * For 3P application identities which are not present in the customer
            +     * identity provider.
            +     * 
            + * + * string external_entity_id = 3; + * + * @param value The bytes for externalEntityId to set. + * @return This builder for chaining. + */ + public Builder setExternalEntityIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + principalCase_ = 3; + principal_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Principal) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Principal) + private static final com.google.cloud.discoveryengine.v1beta.Principal DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.Principal(); + } + + public static com.google.cloud.discoveryengine.v1beta.Principal getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Principal parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Principal getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PrincipalOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PrincipalOrBuilder.java new file mode 100644 index 000000000000..130e8fd5d9b2 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PrincipalOrBuilder.java @@ -0,0 +1,174 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface PrincipalOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Principal) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * User identifier.
            +   * For Google Workspace user account, user_id should be the google workspace
            +   * user email.
            +   * For non-google identity provider user account, user_id is the mapped user
            +   * identifier configured during the workforcepool config.
            +   * 
            + * + * string user_id = 1; + * + * @return Whether the userId field is set. + */ + boolean hasUserId(); + + /** + * + * + *
            +   * User identifier.
            +   * For Google Workspace user account, user_id should be the google workspace
            +   * user email.
            +   * For non-google identity provider user account, user_id is the mapped user
            +   * identifier configured during the workforcepool config.
            +   * 
            + * + * string user_id = 1; + * + * @return The userId. + */ + java.lang.String getUserId(); + + /** + * + * + *
            +   * User identifier.
            +   * For Google Workspace user account, user_id should be the google workspace
            +   * user email.
            +   * For non-google identity provider user account, user_id is the mapped user
            +   * identifier configured during the workforcepool config.
            +   * 
            + * + * string user_id = 1; + * + * @return The bytes for userId. + */ + com.google.protobuf.ByteString getUserIdBytes(); + + /** + * + * + *
            +   * Group identifier.
            +   * For Google Workspace user account, group_id should be the google
            +   * workspace group email.
            +   * For non-google identity provider user account, group_id is the mapped
            +   * group identifier configured during the workforcepool config.
            +   * 
            + * + * string group_id = 2; + * + * @return Whether the groupId field is set. + */ + boolean hasGroupId(); + + /** + * + * + *
            +   * Group identifier.
            +   * For Google Workspace user account, group_id should be the google
            +   * workspace group email.
            +   * For non-google identity provider user account, group_id is the mapped
            +   * group identifier configured during the workforcepool config.
            +   * 
            + * + * string group_id = 2; + * + * @return The groupId. + */ + java.lang.String getGroupId(); + + /** + * + * + *
            +   * Group identifier.
            +   * For Google Workspace user account, group_id should be the google
            +   * workspace group email.
            +   * For non-google identity provider user account, group_id is the mapped
            +   * group identifier configured during the workforcepool config.
            +   * 
            + * + * string group_id = 2; + * + * @return The bytes for groupId. + */ + com.google.protobuf.ByteString getGroupIdBytes(); + + /** + * + * + *
            +   * For 3P application identities which are not present in the customer
            +   * identity provider.
            +   * 
            + * + * string external_entity_id = 3; + * + * @return Whether the externalEntityId field is set. + */ + boolean hasExternalEntityId(); + + /** + * + * + *
            +   * For 3P application identities which are not present in the customer
            +   * identity provider.
            +   * 
            + * + * string external_entity_id = 3; + * + * @return The externalEntityId. + */ + java.lang.String getExternalEntityId(); + + /** + * + * + *
            +   * For 3P application identities which are not present in the customer
            +   * identity provider.
            +   * 
            + * + * string external_entity_id = 3; + * + * @return The bytes for externalEntityId. + */ + com.google.protobuf.ByteString getExternalEntityIdBytes(); + + com.google.cloud.discoveryengine.v1beta.Principal.PrincipalCase getPrincipalCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Project.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Project.java index dbe55cfe7cde..ec7fff1af227 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Project.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Project.java @@ -2045,852 +2045,12475 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; + public interface CustomerProvidedConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; + /** + * + * + *
            +     * Optional. Configuration for NotebookLM settings.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the notebooklmConfig field is set. + */ + boolean hasNotebooklmConfig(); - /** - * - * - *
            -   * Output only. Full resource name of the project, for example
            -   * `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]; - * - * @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. Configuration for NotebookLM settings.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The notebooklmConfig. + */ + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + getNotebooklmConfig(); - /** - * - * - *
            -   * Output only. Full resource name of the project, for example
            -   * `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]; - * - * @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; - } + /** + * + * + *
            +     * Optional. Configuration for NotebookLM settings.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfigOrBuilder + getNotebooklmConfigOrBuilder(); } - public static final int CREATE_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp createTime_; - /** * * *
            -   * Output only. The timestamp when this project is created.
            +   * Customer provided configurations.
                * 
            * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the createTime field is set. + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig} */ - @java.lang.Override - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); - } + public static final class CustomerProvidedConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig) + CustomerProvidedConfigOrBuilder { + private static final long serialVersionUID = 0L; - /** - * - * - *
            -   * Output only. The timestamp when this project is created.
            -   * 
            - * - * .google.protobuf.Timestamp create_time = 2 [(.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_; - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CustomerProvidedConfig"); + } - /** - * - * - *
            -   * Output only. The timestamp when this project is created.
            -   * 
            - * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } + // Use CustomerProvidedConfig.newBuilder() to construct. + private CustomerProvidedConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - public static final int PROVISION_COMPLETION_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp provisionCompletionTime_; + private CustomerProvidedConfig() {} - /** - * - * - *
            -   * Output only. The timestamp when this project is successfully provisioned.
            -   * Empty value means this project is still provisioning and is not ready for
            -   * use.
            -   * 
            - * - * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the provisionCompletionTime field is set. - */ - @java.lang.Override - public boolean hasProvisionCompletionTime() { - return ((bitField0_ & 0x00000002) != 0); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_descriptor; + } - /** - * - * - *
            -   * Output only. The timestamp when this project is successfully provisioned.
            -   * Empty value means this project is still provisioning and is not ready for
            -   * use.
            -   * 
            - * - * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The provisionCompletionTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getProvisionCompletionTime() { - return provisionCompletionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : provisionCompletionTime_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.class, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.Builder.class); + } - /** - * - * - *
            -   * Output only. The timestamp when this project is successfully provisioned.
            -   * Empty value means this project is still provisioning and is not ready for
            -   * use.
            -   * 
            - * - * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getProvisionCompletionTimeOrBuilder() { - return provisionCompletionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : provisionCompletionTime_; - } + public interface NotebooklmConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig) + com.google.protobuf.MessageOrBuilder { - public static final int SERVICE_TERMS_MAP_FIELD_NUMBER = 4; + /** + * + * + *
            +       * Model Armor configuration to be used for sanitizing user prompts and
            +       * LLM responses.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + * + * @return Whether the modelArmorConfig field is set. + */ + boolean hasModelArmorConfig(); - private static final class ServiceTermsMapDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> - defaultEntry = - com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.discoveryengine.v1beta.ProjectProto - .internal_static_google_cloud_discoveryengine_v1beta_Project_ServiceTermsMapEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms - .getDefaultInstance()); - } + /** + * + * + *
            +       * Model Armor configuration to be used for sanitizing user prompts and
            +       * LLM responses.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + * + * @return The modelArmorConfig. + */ + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + getModelArmorConfig(); - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> - serviceTermsMap_; + /** + * + * + *
            +       * Model Armor configuration to be used for sanitizing user prompts and
            +       * LLM responses.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfigOrBuilder + getModelArmorConfigOrBuilder(); - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> - internalGetServiceTermsMap() { - if (serviceTermsMap_ == null) { - return com.google.protobuf.MapField.emptyMapField( - ServiceTermsMapDefaultEntryHolder.defaultEntry); - } - return serviceTermsMap_; - } + /** + * + * + *
            +       * Optional. Whether to disable the notebook sharing feature for the
            +       * project. Default to false if not specified.
            +       * 
            + * + * bool opt_out_notebook_sharing = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The optOutNotebookSharing. + */ + boolean getOptOutNotebookSharing(); - public int getServiceTermsMapCount() { - return internalGetServiceTermsMap().getMap().size(); - } + /** + * + * + *
            +       * Optional. Specifies the data protection policy for NotebookLM.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataProtectionPolicy field is set. + */ + boolean hasDataProtectionPolicy(); - /** - * - * - *
            -   * Output only. A map of terms of services. The key is the `id` of
            -   * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
            -   * 
            - * - * - * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public boolean containsServiceTermsMap(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetServiceTermsMap().getMap().containsKey(key); - } + /** + * + * + *
            +       * Optional. Specifies the data protection policy for NotebookLM.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataProtectionPolicy. + */ + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + getDataProtectionPolicy(); - /** Use {@link #getServiceTermsMapMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> - getServiceTermsMap() { - return getServiceTermsMapMap(); - } + /** + * + * + *
            +       * Optional. Specifies the data protection policy for NotebookLM.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicyOrBuilder + getDataProtectionPolicyOrBuilder(); - /** - * - * - *
            -   * Output only. A map of terms of services. The key is the `id` of
            -   * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
            -   * 
            - * - * - * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> - getServiceTermsMapMap() { - return internalGetServiceTermsMap().getMap(); - } + /** + * + * + *
            +       * Optional. Observability config for NotebookLM.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the observabilityConfig field is set. + */ + boolean hasObservabilityConfig(); - /** - * - * - *
            -   * Output only. A map of terms of services. The key is the `id` of
            -   * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
            -   * 
            - * - * - * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms - getServiceTermsMapOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetServiceTermsMap().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } + /** + * + * + *
            +       * Optional. Observability config for NotebookLM.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The observabilityConfig. + */ + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig getObservabilityConfig(); - /** - * - * - *
            -   * Output only. A map of terms of services. The key is the `id` of
            -   * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
            -   * 
            - * - * - * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms getServiceTermsMapOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetServiceTermsMap().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + /** + * + * + *
            +       * Optional. Observability config for NotebookLM.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.ObservabilityConfigOrBuilder + getObservabilityConfigOrBuilder(); } - 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; + /** + * + * + *
            +     * Configuration for NotebookLM.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig} + */ + public static final class NotebooklmConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig) + NotebooklmConfigOrBuilder { + private static final long serialVersionUID = 0L; - memoizedIsInitialized = 1; - return true; - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "NotebooklmConfig"); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getCreateTime()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getProvisionCompletionTime()); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetServiceTermsMap(), ServiceTermsMapDefaultEntryHolder.defaultEntry, 4); - getUnknownFields().writeTo(output); - } + // Use NotebooklmConfig.newBuilder() to construct. + private NotebooklmConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private NotebooklmConfig() {} - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProvisionCompletionTime()); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> - entry : internalGetServiceTermsMap().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> - serviceTermsMap__ = - ServiceTermsMapDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, serviceTermsMap__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_descriptor; + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.Project)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.Project other = - (com.google.cloud.discoveryengine.v1beta.Project) obj; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.class, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.Builder.class); + } + + public interface ModelArmorConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +         * Optional. The resource name of the Model Armor Template for
            +         * sanitizing user prompts. Format:
            +         * projects/{project}/locations/{location}/templates/{template_id}
            +         * If not specified, no sanitization will be applied to the user prompt.
            +         * 
            + * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The userPromptTemplate. + */ + java.lang.String getUserPromptTemplate(); + + /** + * + * + *
            +         * Optional. The resource name of the Model Armor Template for
            +         * sanitizing user prompts. Format:
            +         * projects/{project}/locations/{location}/templates/{template_id}
            +         * If not specified, no sanitization will be applied to the user prompt.
            +         * 
            + * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for userPromptTemplate. + */ + com.google.protobuf.ByteString getUserPromptTemplateBytes(); + + /** + * + * + *
            +         * Optional. The resource name of the Model Armor Template for
            +         * sanitizing LLM responses. Format:
            +         * projects/{project}/locations/{location}/templates/{template_id}
            +         * If not specified, no sanitization will be applied to the LLM
            +         * response.
            +         * 
            + * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The responseTemplate. + */ + java.lang.String getResponseTemplate(); + + /** + * + * + *
            +         * Optional. The resource name of the Model Armor Template for
            +         * sanitizing LLM responses. Format:
            +         * projects/{project}/locations/{location}/templates/{template_id}
            +         * If not specified, no sanitization will be applied to the LLM
            +         * response.
            +         * 
            + * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for responseTemplate. + */ + com.google.protobuf.ByteString getResponseTemplateBytes(); + } - if (!getName().equals(other.getName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (hasProvisionCompletionTime() != other.hasProvisionCompletionTime()) return false; - if (hasProvisionCompletionTime()) { - if (!getProvisionCompletionTime().equals(other.getProvisionCompletionTime())) return false; - } - if (!internalGetServiceTermsMap().equals(other.internalGetServiceTermsMap())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + /** + * + * + *
            +       * Configuration for customer defined Model Armor templates to be used for
            +       * sanitizing user prompts and LLM responses.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig} + */ + public static final class ModelArmorConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig) + ModelArmorConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ModelArmorConfig"); + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasProvisionCompletionTime()) { - hash = (37 * hash) + PROVISION_COMPLETION_TIME_FIELD_NUMBER; - hash = (53 * hash) + getProvisionCompletionTime().hashCode(); - } - if (!internalGetServiceTermsMap().getMap().isEmpty()) { - hash = (37 * hash) + SERVICE_TERMS_MAP_FIELD_NUMBER; - hash = (53 * hash) + internalGetServiceTermsMap().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + // Use ModelArmorConfig.newBuilder() to construct. + private ModelArmorConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - public static com.google.cloud.discoveryengine.v1beta.Project parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private ModelArmorConfig() { + userPromptTemplate_ = ""; + responseTemplate_ = ""; + } - public static com.google.cloud.discoveryengine.v1beta.Project parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_descriptor; + } - public static com.google.cloud.discoveryengine.v1beta.Project parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.class, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.Builder.class); + } - public static com.google.cloud.discoveryengine.v1beta.Project 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 USER_PROMPT_TEMPLATE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object userPromptTemplate_ = ""; + + /** + * + * + *
            +         * Optional. The resource name of the Model Armor Template for
            +         * sanitizing user prompts. Format:
            +         * projects/{project}/locations/{location}/templates/{template_id}
            +         * If not specified, no sanitization will be applied to the user prompt.
            +         * 
            + * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The userPromptTemplate. + */ + @java.lang.Override + public java.lang.String getUserPromptTemplate() { + java.lang.Object ref = userPromptTemplate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPromptTemplate_ = s; + return s; + } + } - public static com.google.cloud.discoveryengine.v1beta.Project parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +         * Optional. The resource name of the Model Armor Template for
            +         * sanitizing user prompts. Format:
            +         * projects/{project}/locations/{location}/templates/{template_id}
            +         * If not specified, no sanitization will be applied to the user prompt.
            +         * 
            + * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for userPromptTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserPromptTemplateBytes() { + java.lang.Object ref = userPromptTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPromptTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static com.google.cloud.discoveryengine.v1beta.Project parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int RESPONSE_TEMPLATE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object responseTemplate_ = ""; + + /** + * + * + *
            +         * Optional. The resource name of the Model Armor Template for
            +         * sanitizing LLM responses. Format:
            +         * projects/{project}/locations/{location}/templates/{template_id}
            +         * If not specified, no sanitization will be applied to the LLM
            +         * response.
            +         * 
            + * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The responseTemplate. + */ + @java.lang.Override + public java.lang.String getResponseTemplate() { + java.lang.Object ref = responseTemplate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + responseTemplate_ = s; + return s; + } + } - public static com.google.cloud.discoveryengine.v1beta.Project parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +         * Optional. The resource name of the Model Armor Template for
            +         * sanitizing LLM responses. Format:
            +         * projects/{project}/locations/{location}/templates/{template_id}
            +         * If not specified, no sanitization will be applied to the LLM
            +         * response.
            +         * 
            + * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for responseTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResponseTemplateBytes() { + java.lang.Object ref = responseTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + responseTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static com.google.cloud.discoveryengine.v1beta.Project parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + private byte memoizedIsInitialized = -1; - public static com.google.cloud.discoveryengine.v1beta.Project parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static com.google.cloud.discoveryengine.v1beta.Project parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + memoizedIsInitialized = 1; + return true; + } - public static com.google.cloud.discoveryengine.v1beta.Project parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPromptTemplate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, userPromptTemplate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(responseTemplate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, responseTemplate_); + } + getUnknownFields().writeTo(output); + } - public static com.google.cloud.discoveryengine.v1beta.Project parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPromptTemplate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, userPromptTemplate_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(responseTemplate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, responseTemplate_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + other = + (com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig) + obj; + + if (!getUserPromptTemplate().equals(other.getUserPromptTemplate())) return false; + if (!getResponseTemplate().equals(other.getResponseTemplate())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.Project prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + USER_PROMPT_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getUserPromptTemplate().hashCode(); + hash = (37 * hash) + RESPONSE_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getResponseTemplate().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -   * Metadata and configurations for a Google Cloud project in the service.
            -   * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.Project} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Project) - com.google.cloud.discoveryengine.v1beta.ProjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.ProjectProto - .internal_static_google_cloud_discoveryengine_v1beta_Project_descriptor; + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom( + 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.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +         * Configuration for customer defined Model Armor templates to be used for
            +         * sanitizing user prompts and LLM responses.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig) + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.class, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userPromptTemplate_ = ""; + responseTemplate_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + build() { + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + result = + new com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userPromptTemplate_ = userPromptTemplate_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.responseTemplate_ = responseTemplate_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.getDefaultInstance()) return this; + if (!other.getUserPromptTemplate().isEmpty()) { + userPromptTemplate_ = other.userPromptTemplate_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getResponseTemplate().isEmpty()) { + responseTemplate_ = other.responseTemplate_; + 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: + { + userPromptTemplate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + responseTemplate_ = 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 userPromptTemplate_ = ""; + + /** + * + * + *
            +           * Optional. The resource name of the Model Armor Template for
            +           * sanitizing user prompts. Format:
            +           * projects/{project}/locations/{location}/templates/{template_id}
            +           * If not specified, no sanitization will be applied to the user prompt.
            +           * 
            + * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The userPromptTemplate. + */ + public java.lang.String getUserPromptTemplate() { + java.lang.Object ref = userPromptTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPromptTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +           * Optional. The resource name of the Model Armor Template for
            +           * sanitizing user prompts. Format:
            +           * projects/{project}/locations/{location}/templates/{template_id}
            +           * If not specified, no sanitization will be applied to the user prompt.
            +           * 
            + * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for userPromptTemplate. + */ + public com.google.protobuf.ByteString getUserPromptTemplateBytes() { + java.lang.Object ref = userPromptTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPromptTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +           * Optional. The resource name of the Model Armor Template for
            +           * sanitizing user prompts. Format:
            +           * projects/{project}/locations/{location}/templates/{template_id}
            +           * If not specified, no sanitization will be applied to the user prompt.
            +           * 
            + * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The userPromptTemplate to set. + * @return This builder for chaining. + */ + public Builder setUserPromptTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userPromptTemplate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Optional. The resource name of the Model Armor Template for
            +           * sanitizing user prompts. Format:
            +           * projects/{project}/locations/{location}/templates/{template_id}
            +           * If not specified, no sanitization will be applied to the user prompt.
            +           * 
            + * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUserPromptTemplate() { + userPromptTemplate_ = getDefaultInstance().getUserPromptTemplate(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +           * Optional. The resource name of the Model Armor Template for
            +           * sanitizing user prompts. Format:
            +           * projects/{project}/locations/{location}/templates/{template_id}
            +           * If not specified, no sanitization will be applied to the user prompt.
            +           * 
            + * + * + * string user_prompt_template = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for userPromptTemplate to set. + * @return This builder for chaining. + */ + public Builder setUserPromptTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userPromptTemplate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object responseTemplate_ = ""; + + /** + * + * + *
            +           * Optional. The resource name of the Model Armor Template for
            +           * sanitizing LLM responses. Format:
            +           * projects/{project}/locations/{location}/templates/{template_id}
            +           * If not specified, no sanitization will be applied to the LLM
            +           * response.
            +           * 
            + * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The responseTemplate. + */ + public java.lang.String getResponseTemplate() { + java.lang.Object ref = responseTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + responseTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +           * Optional. The resource name of the Model Armor Template for
            +           * sanitizing LLM responses. Format:
            +           * projects/{project}/locations/{location}/templates/{template_id}
            +           * If not specified, no sanitization will be applied to the LLM
            +           * response.
            +           * 
            + * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for responseTemplate. + */ + public com.google.protobuf.ByteString getResponseTemplateBytes() { + java.lang.Object ref = responseTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + responseTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +           * Optional. The resource name of the Model Armor Template for
            +           * sanitizing LLM responses. Format:
            +           * projects/{project}/locations/{location}/templates/{template_id}
            +           * If not specified, no sanitization will be applied to the LLM
            +           * response.
            +           * 
            + * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The responseTemplate to set. + * @return This builder for chaining. + */ + public Builder setResponseTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + responseTemplate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Optional. The resource name of the Model Armor Template for
            +           * sanitizing LLM responses. Format:
            +           * projects/{project}/locations/{location}/templates/{template_id}
            +           * If not specified, no sanitization will be applied to the LLM
            +           * response.
            +           * 
            + * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearResponseTemplate() { + responseTemplate_ = getDefaultInstance().getResponseTemplate(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +           * Optional. The resource name of the Model Armor Template for
            +           * sanitizing LLM responses. Format:
            +           * projects/{project}/locations/{location}/templates/{template_id}
            +           * If not specified, no sanitization will be applied to the LLM
            +           * response.
            +           * 
            + * + * + * string response_template = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for responseTemplate to set. + * @return This builder for chaining. + */ + public Builder setResponseTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + responseTemplate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig) + private static final com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelArmorConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DataProtectionPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +         * Optional. The sensitive data protection policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sensitiveDataProtectionPolicy field is set. + */ + boolean hasSensitiveDataProtectionPolicy(); + + /** + * + * + *
            +         * Optional. The sensitive data protection policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sensitiveDataProtectionPolicy. + */ + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy + getSensitiveDataProtectionPolicy(); + + /** + * + * + *
            +         * Optional. The sensitive data protection policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicyOrBuilder + getSensitiveDataProtectionPolicyOrBuilder(); + } + + /** + * + * + *
            +       * Data protection policy config for NotebookLM.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy} + */ + public static final class DataProtectionPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy) + DataProtectionPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DataProtectionPolicy"); + } + + // Use DataProtectionPolicy.newBuilder() to construct. + private DataProtectionPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DataProtectionPolicy() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.class, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.Builder.class); + } + + public interface SensitiveDataProtectionPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +           * Optional. The Sensitive Data Protection policy resource name.
            +           * 
            + * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The policy. + */ + java.lang.String getPolicy(); + + /** + * + * + *
            +           * Optional. The Sensitive Data Protection policy resource name.
            +           * 
            + * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for policy. + */ + com.google.protobuf.ByteString getPolicyBytes(); + } + + /** + * + * + *
            +         * Specifies a Sensitive Data Protection
            +         * (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview)
            +         * policy.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy} + */ + public static final class SensitiveDataProtectionPolicy + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy) + SensitiveDataProtectionPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SensitiveDataProtectionPolicy"); + } + + // Use SensitiveDataProtectionPolicy.newBuilder() to construct. + private SensitiveDataProtectionPolicy( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SensitiveDataProtectionPolicy() { + policy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy.class, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy.Builder + .class); + } + + public static final int POLICY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object policy_ = ""; + + /** + * + * + *
            +           * Optional. The Sensitive Data Protection policy resource name.
            +           * 
            + * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The policy. + */ + @java.lang.Override + public java.lang.String getPolicy() { + java.lang.Object ref = policy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policy_ = s; + return s; + } + } + + /** + * + * + *
            +           * Optional. The Sensitive Data Protection policy resource name.
            +           * 
            + * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for policy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPolicyBytes() { + java.lang.Object ref = policy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(policy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, policy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(policy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, policy_); + } + 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.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.SensitiveDataProtectionPolicy + other = + (com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy) + obj; + + if (!getPolicy().equals(other.getPolicy())) 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) + POLICY_FIELD_NUMBER; + hash = (53 * hash) + getPolicy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + 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.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseFrom( + 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.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +           * Specifies a Sensitive Data Protection
            +           * (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview)
            +           * policy.
            +           * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy) + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + .class, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + policy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + build() { + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + result = + new com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.policy_ = policy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + .getDefaultInstance()) return this; + if (!other.getPolicy().isEmpty()) { + policy_ = other.policy_; + 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: + { + policy_ = 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 policy_ = ""; + + /** + * + * + *
            +             * Optional. The Sensitive Data Protection policy resource name.
            +             * 
            + * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The policy. + */ + public java.lang.String getPolicy() { + java.lang.Object ref = policy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +             * Optional. The Sensitive Data Protection policy resource name.
            +             * 
            + * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for policy. + */ + public com.google.protobuf.ByteString getPolicyBytes() { + java.lang.Object ref = policy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + policy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +             * Optional. The Sensitive Data Protection policy resource name.
            +             * 
            + * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The policy to set. + * @return This builder for chaining. + */ + public Builder setPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + policy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +             * Optional. The Sensitive Data Protection policy resource name.
            +             * 
            + * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearPolicy() { + policy_ = getDefaultInstance().getPolicy(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +             * Optional. The Sensitive Data Protection policy resource name.
            +             * 
            + * + * + * string policy = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for policy to set. + * @return This builder for chaining. + */ + public Builder setPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + policy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy) + private static final com.google.cloud.discoveryengine.v1beta.Project + .CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy + .SensitiveDataProtectionPolicy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy(); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SensitiveDataProtectionPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int SENSITIVE_DATA_PROTECTION_POLICY_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + sensitiveDataProtectionPolicy_; + + /** + * + * + *
            +         * Optional. The sensitive data protection policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sensitiveDataProtectionPolicy field is set. + */ + @java.lang.Override + public boolean hasSensitiveDataProtectionPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +         * Optional. The sensitive data protection policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sensitiveDataProtectionPolicy. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + getSensitiveDataProtectionPolicy() { + return sensitiveDataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + .getDefaultInstance() + : sensitiveDataProtectionPolicy_; + } + + /** + * + * + *
            +         * Optional. The sensitive data protection policy.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicyOrBuilder + getSensitiveDataProtectionPolicyOrBuilder() { + return sensitiveDataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + .getDefaultInstance() + : sensitiveDataProtectionPolicy_; + } + + 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, getSensitiveDataProtectionPolicy()); + } + 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, getSensitiveDataProtectionPolicy()); + } + 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.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + other = + (com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy) + obj; + + if (hasSensitiveDataProtectionPolicy() != other.hasSensitiveDataProtectionPolicy()) + return false; + if (hasSensitiveDataProtectionPolicy()) { + if (!getSensitiveDataProtectionPolicy() + .equals(other.getSensitiveDataProtectionPolicy())) 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 (hasSensitiveDataProtectionPolicy()) { + hash = (37 * hash) + SENSITIVE_DATA_PROTECTION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getSensitiveDataProtectionPolicy().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + 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.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseFrom( + 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.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +         * Data protection policy config for NotebookLM.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy) + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.class, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSensitiveDataProtectionPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sensitiveDataProtectionPolicy_ = null; + if (sensitiveDataProtectionPolicyBuilder_ != null) { + sensitiveDataProtectionPolicyBuilder_.dispose(); + sensitiveDataProtectionPolicyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + build() { + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + result = + new com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sensitiveDataProtectionPolicy_ = + sensitiveDataProtectionPolicyBuilder_ == null + ? sensitiveDataProtectionPolicy_ + : sensitiveDataProtectionPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.getDefaultInstance()) return this; + if (other.hasSensitiveDataProtectionPolicy()) { + mergeSensitiveDataProtectionPolicy(other.getSensitiveDataProtectionPolicy()); + } + 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( + internalGetSensitiveDataProtectionPolicyFieldBuilder().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.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + sensitiveDataProtectionPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicyOrBuilder> + sensitiveDataProtectionPolicyBuilder_; + + /** + * + * + *
            +           * Optional. The sensitive data protection policy.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sensitiveDataProtectionPolicy field is set. + */ + public boolean hasSensitiveDataProtectionPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +           * Optional. The sensitive data protection policy.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sensitiveDataProtectionPolicy. + */ + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + getSensitiveDataProtectionPolicy() { + if (sensitiveDataProtectionPolicyBuilder_ == null) { + return sensitiveDataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + .getDefaultInstance() + : sensitiveDataProtectionPolicy_; + } else { + return sensitiveDataProtectionPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
            +           * Optional. The sensitive data protection policy.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSensitiveDataProtectionPolicy( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + value) { + if (sensitiveDataProtectionPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sensitiveDataProtectionPolicy_ = value; + } else { + sensitiveDataProtectionPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Optional. The sensitive data protection policy.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSensitiveDataProtectionPolicy( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy.Builder + builderForValue) { + if (sensitiveDataProtectionPolicyBuilder_ == null) { + sensitiveDataProtectionPolicy_ = builderForValue.build(); + } else { + sensitiveDataProtectionPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Optional. The sensitive data protection policy.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSensitiveDataProtectionPolicy( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + value) { + if (sensitiveDataProtectionPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && sensitiveDataProtectionPolicy_ != null + && sensitiveDataProtectionPolicy_ + != com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + .getDefaultInstance()) { + getSensitiveDataProtectionPolicyBuilder().mergeFrom(value); + } else { + sensitiveDataProtectionPolicy_ = value; + } + } else { + sensitiveDataProtectionPolicyBuilder_.mergeFrom(value); + } + if (sensitiveDataProtectionPolicy_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +           * Optional. The sensitive data protection policy.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSensitiveDataProtectionPolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + sensitiveDataProtectionPolicy_ = null; + if (sensitiveDataProtectionPolicyBuilder_ != null) { + sensitiveDataProtectionPolicyBuilder_.dispose(); + sensitiveDataProtectionPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +           * Optional. The sensitive data protection policy.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy.Builder + getSensitiveDataProtectionPolicyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSensitiveDataProtectionPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +           * Optional. The sensitive data protection policy.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicyOrBuilder + getSensitiveDataProtectionPolicyOrBuilder() { + if (sensitiveDataProtectionPolicyBuilder_ != null) { + return sensitiveDataProtectionPolicyBuilder_.getMessageOrBuilder(); + } else { + return sensitiveDataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + .getDefaultInstance() + : sensitiveDataProtectionPolicy_; + } + } + + /** + * + * + *
            +           * Optional. The sensitive data protection policy.
            +           * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicyOrBuilder> + internalGetSensitiveDataProtectionPolicyFieldBuilder() { + if (sensitiveDataProtectionPolicyBuilder_ == null) { + sensitiveDataProtectionPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.SensitiveDataProtectionPolicy + .Builder, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + .SensitiveDataProtectionPolicyOrBuilder>( + getSensitiveDataProtectionPolicy(), getParentForChildren(), isClean()); + sensitiveDataProtectionPolicy_ = null; + } + return sensitiveDataProtectionPolicyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy) + private static final com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy(); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataProtectionPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int MODEL_ARMOR_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + modelArmorConfig_; + + /** + * + * + *
            +       * Model Armor configuration to be used for sanitizing user prompts and
            +       * LLM responses.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + * + * @return Whether the modelArmorConfig field is set. + */ + @java.lang.Override + public boolean hasModelArmorConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Model Armor configuration to be used for sanitizing user prompts and
            +       * LLM responses.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + * + * @return The modelArmorConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + getModelArmorConfig() { + return modelArmorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.getDefaultInstance() + : modelArmorConfig_; + } + + /** + * + * + *
            +       * Model Armor configuration to be used for sanitizing user prompts and
            +       * LLM responses.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfigOrBuilder + getModelArmorConfigOrBuilder() { + return modelArmorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.getDefaultInstance() + : modelArmorConfig_; + } + + public static final int OPT_OUT_NOTEBOOK_SHARING_FIELD_NUMBER = 2; + private boolean optOutNotebookSharing_ = false; + + /** + * + * + *
            +       * Optional. Whether to disable the notebook sharing feature for the
            +       * project. Default to false if not specified.
            +       * 
            + * + * bool opt_out_notebook_sharing = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The optOutNotebookSharing. + */ + @java.lang.Override + public boolean getOptOutNotebookSharing() { + return optOutNotebookSharing_; + } + + public static final int DATA_PROTECTION_POLICY_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + dataProtectionPolicy_; + + /** + * + * + *
            +       * Optional. Specifies the data protection policy for NotebookLM.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataProtectionPolicy field is set. + */ + @java.lang.Override + public boolean hasDataProtectionPolicy() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +       * Optional. Specifies the data protection policy for NotebookLM.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataProtectionPolicy. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + getDataProtectionPolicy() { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; + } + + /** + * + * + *
            +       * Optional. Specifies the data protection policy for NotebookLM.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicyOrBuilder + getDataProtectionPolicyOrBuilder() { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; + } + + public static final int OBSERVABILITY_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.discoveryengine.v1beta.ObservabilityConfig observabilityConfig_; + + /** + * + * + *
            +       * Optional. Observability config for NotebookLM.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the observabilityConfig field is set. + */ + @java.lang.Override + public boolean hasObservabilityConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +       * Optional. Observability config for NotebookLM.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The observabilityConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ObservabilityConfig getObservabilityConfig() { + return observabilityConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.getDefaultInstance() + : observabilityConfig_; + } + + /** + * + * + *
            +       * Optional. Observability config for NotebookLM.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ObservabilityConfigOrBuilder + getObservabilityConfigOrBuilder() { + return observabilityConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.getDefaultInstance() + : observabilityConfig_; + } + + 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, getModelArmorConfig()); + } + if (optOutNotebookSharing_ != false) { + output.writeBool(2, optOutNotebookSharing_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getDataProtectionPolicy()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getObservabilityConfig()); + } + 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, getModelArmorConfig()); + } + if (optOutNotebookSharing_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, optOutNotebookSharing_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getDataProtectionPolicy()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getObservabilityConfig()); + } + 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.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + other = + (com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig) + obj; + + if (hasModelArmorConfig() != other.hasModelArmorConfig()) return false; + if (hasModelArmorConfig()) { + if (!getModelArmorConfig().equals(other.getModelArmorConfig())) return false; + } + if (getOptOutNotebookSharing() != other.getOptOutNotebookSharing()) return false; + if (hasDataProtectionPolicy() != other.hasDataProtectionPolicy()) return false; + if (hasDataProtectionPolicy()) { + if (!getDataProtectionPolicy().equals(other.getDataProtectionPolicy())) return false; + } + if (hasObservabilityConfig() != other.hasObservabilityConfig()) return false; + if (hasObservabilityConfig()) { + if (!getObservabilityConfig().equals(other.getObservabilityConfig())) 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 (hasModelArmorConfig()) { + hash = (37 * hash) + MODEL_ARMOR_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getModelArmorConfig().hashCode(); + } + hash = (37 * hash) + OPT_OUT_NOTEBOOK_SHARING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOptOutNotebookSharing()); + if (hasDataProtectionPolicy()) { + hash = (37 * hash) + DATA_PROTECTION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getDataProtectionPolicy().hashCode(); + } + if (hasObservabilityConfig()) { + hash = (37 * hash) + OBSERVABILITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getObservabilityConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig + 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.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig + parseFrom( + 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.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Configuration for NotebookLM.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig) + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.class, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetModelArmorConfigFieldBuilder(); + internalGetDataProtectionPolicyFieldBuilder(); + internalGetObservabilityConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modelArmorConfig_ = null; + if (modelArmorConfigBuilder_ != null) { + modelArmorConfigBuilder_.dispose(); + modelArmorConfigBuilder_ = null; + } + optOutNotebookSharing_ = false; + dataProtectionPolicy_ = null; + if (dataProtectionPolicyBuilder_ != null) { + dataProtectionPolicyBuilder_.dispose(); + dataProtectionPolicyBuilder_ = null; + } + observabilityConfig_ = null; + if (observabilityConfigBuilder_ != null) { + observabilityConfigBuilder_.dispose(); + observabilityConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig + build() { + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + result = + new com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelArmorConfig_ = + modelArmorConfigBuilder_ == null + ? modelArmorConfig_ + : modelArmorConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.optOutNotebookSharing_ = optOutNotebookSharing_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dataProtectionPolicy_ = + dataProtectionPolicyBuilder_ == null + ? dataProtectionPolicy_ + : dataProtectionPolicyBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.observabilityConfig_ = + observabilityConfigBuilder_ == null + ? observabilityConfig_ + : observabilityConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.getDefaultInstance()) return this; + if (other.hasModelArmorConfig()) { + mergeModelArmorConfig(other.getModelArmorConfig()); + } + if (other.getOptOutNotebookSharing() != false) { + setOptOutNotebookSharing(other.getOptOutNotebookSharing()); + } + if (other.hasDataProtectionPolicy()) { + mergeDataProtectionPolicy(other.getDataProtectionPolicy()); + } + if (other.hasObservabilityConfig()) { + mergeObservabilityConfig(other.getObservabilityConfig()); + } + 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( + internalGetModelArmorConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + optOutNotebookSharing_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 42: + { + input.readMessage( + internalGetDataProtectionPolicyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetObservabilityConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + 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 com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + modelArmorConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfigOrBuilder> + modelArmorConfigBuilder_; + + /** + * + * + *
            +         * Model Armor configuration to be used for sanitizing user prompts and
            +         * LLM responses.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + * + * @return Whether the modelArmorConfig field is set. + */ + public boolean hasModelArmorConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +         * Model Armor configuration to be used for sanitizing user prompts and
            +         * LLM responses.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + * + * @return The modelArmorConfig. + */ + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig + getModelArmorConfig() { + if (modelArmorConfigBuilder_ == null) { + return modelArmorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.getDefaultInstance() + : modelArmorConfig_; + } else { + return modelArmorConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +         * Model Armor configuration to be used for sanitizing user prompts and
            +         * LLM responses.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + */ + public Builder setModelArmorConfig( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + value) { + if (modelArmorConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelArmorConfig_ = value; + } else { + modelArmorConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Model Armor configuration to be used for sanitizing user prompts and
            +         * LLM responses.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + */ + public Builder setModelArmorConfig( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig.Builder + builderForValue) { + if (modelArmorConfigBuilder_ == null) { + modelArmorConfig_ = builderForValue.build(); + } else { + modelArmorConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Model Armor configuration to be used for sanitizing user prompts and
            +         * LLM responses.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + */ + public Builder mergeModelArmorConfig( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .ModelArmorConfig + value) { + if (modelArmorConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && modelArmorConfig_ != null + && modelArmorConfig_ + != com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.getDefaultInstance()) { + getModelArmorConfigBuilder().mergeFrom(value); + } else { + modelArmorConfig_ = value; + } + } else { + modelArmorConfigBuilder_.mergeFrom(value); + } + if (modelArmorConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * Model Armor configuration to be used for sanitizing user prompts and
            +         * LLM responses.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + */ + public Builder clearModelArmorConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + modelArmorConfig_ = null; + if (modelArmorConfigBuilder_ != null) { + modelArmorConfigBuilder_.dispose(); + modelArmorConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +         * Model Armor configuration to be used for sanitizing user prompts and
            +         * LLM responses.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.Builder + getModelArmorConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetModelArmorConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Model Armor configuration to be used for sanitizing user prompts and
            +         * LLM responses.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfigOrBuilder + getModelArmorConfigOrBuilder() { + if (modelArmorConfigBuilder_ != null) { + return modelArmorConfigBuilder_.getMessageOrBuilder(); + } else { + return modelArmorConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.getDefaultInstance() + : modelArmorConfig_; + } + } + + /** + * + * + *
            +         * Model Armor configuration to be used for sanitizing user prompts and
            +         * LLM responses.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.ModelArmorConfig model_armor_config = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfigOrBuilder> + internalGetModelArmorConfigFieldBuilder() { + if (modelArmorConfigBuilder_ == null) { + modelArmorConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.ModelArmorConfigOrBuilder>( + getModelArmorConfig(), getParentForChildren(), isClean()); + modelArmorConfig_ = null; + } + return modelArmorConfigBuilder_; + } + + private boolean optOutNotebookSharing_; + + /** + * + * + *
            +         * Optional. Whether to disable the notebook sharing feature for the
            +         * project. Default to false if not specified.
            +         * 
            + * + * bool opt_out_notebook_sharing = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The optOutNotebookSharing. + */ + @java.lang.Override + public boolean getOptOutNotebookSharing() { + return optOutNotebookSharing_; + } + + /** + * + * + *
            +         * Optional. Whether to disable the notebook sharing feature for the
            +         * project. Default to false if not specified.
            +         * 
            + * + * bool opt_out_notebook_sharing = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The optOutNotebookSharing to set. + * @return This builder for chaining. + */ + public Builder setOptOutNotebookSharing(boolean value) { + + optOutNotebookSharing_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Whether to disable the notebook sharing feature for the
            +         * project. Default to false if not specified.
            +         * 
            + * + * bool opt_out_notebook_sharing = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOptOutNotebookSharing() { + bitField0_ = (bitField0_ & ~0x00000002); + optOutNotebookSharing_ = false; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + dataProtectionPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicyOrBuilder> + dataProtectionPolicyBuilder_; + + /** + * + * + *
            +         * Optional. Specifies the data protection policy for NotebookLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dataProtectionPolicy field is set. + */ + public boolean hasDataProtectionPolicy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +         * Optional. Specifies the data protection policy for NotebookLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dataProtectionPolicy. + */ + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy + getDataProtectionPolicy() { + if (dataProtectionPolicyBuilder_ == null) { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; + } else { + return dataProtectionPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
            +         * Optional. Specifies the data protection policy for NotebookLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataProtectionPolicy( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + value) { + if (dataProtectionPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataProtectionPolicy_ = value; + } else { + dataProtectionPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Specifies the data protection policy for NotebookLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataProtectionPolicy( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy.Builder + builderForValue) { + if (dataProtectionPolicyBuilder_ == null) { + dataProtectionPolicy_ = builderForValue.build(); + } else { + dataProtectionPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Specifies the data protection policy for NotebookLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDataProtectionPolicy( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .DataProtectionPolicy + value) { + if (dataProtectionPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && dataProtectionPolicy_ != null + && dataProtectionPolicy_ + != com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.getDefaultInstance()) { + getDataProtectionPolicyBuilder().mergeFrom(value); + } else { + dataProtectionPolicy_ = value; + } + } else { + dataProtectionPolicyBuilder_.mergeFrom(value); + } + if (dataProtectionPolicy_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * Optional. Specifies the data protection policy for NotebookLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDataProtectionPolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + dataProtectionPolicy_ = null; + if (dataProtectionPolicyBuilder_ != null) { + dataProtectionPolicyBuilder_.dispose(); + dataProtectionPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Specifies the data protection policy for NotebookLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.Builder + getDataProtectionPolicyBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetDataProtectionPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Optional. Specifies the data protection policy for NotebookLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicyOrBuilder + getDataProtectionPolicyOrBuilder() { + if (dataProtectionPolicyBuilder_ != null) { + return dataProtectionPolicyBuilder_.getMessageOrBuilder(); + } else { + return dataProtectionPolicy_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.getDefaultInstance() + : dataProtectionPolicy_; + } + } + + /** + * + * + *
            +         * Optional. Specifies the data protection policy for NotebookLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig.DataProtectionPolicy data_protection_policy = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicyOrBuilder> + internalGetDataProtectionPolicyFieldBuilder() { + if (dataProtectionPolicyBuilder_ == null) { + dataProtectionPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicy.Builder, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.DataProtectionPolicyOrBuilder>( + getDataProtectionPolicy(), getParentForChildren(), isClean()); + dataProtectionPolicy_ = null; + } + return dataProtectionPolicyBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.ObservabilityConfig observabilityConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig, + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ObservabilityConfigOrBuilder> + observabilityConfigBuilder_; + + /** + * + * + *
            +         * Optional. Observability config for NotebookLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the observabilityConfig field is set. + */ + public boolean hasObservabilityConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +         * Optional. Observability config for NotebookLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The observabilityConfig. + */ + public com.google.cloud.discoveryengine.v1beta.ObservabilityConfig + getObservabilityConfig() { + if (observabilityConfigBuilder_ == null) { + return observabilityConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.getDefaultInstance() + : observabilityConfig_; + } else { + return observabilityConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +         * Optional. Observability config for NotebookLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setObservabilityConfig( + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig value) { + if (observabilityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + observabilityConfig_ = value; + } else { + observabilityConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Observability config for NotebookLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setObservabilityConfig( + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.Builder builderForValue) { + if (observabilityConfigBuilder_ == null) { + observabilityConfig_ = builderForValue.build(); + } else { + observabilityConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Observability config for NotebookLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeObservabilityConfig( + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig value) { + if (observabilityConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && observabilityConfig_ != null + && observabilityConfig_ + != com.google.cloud.discoveryengine.v1beta.ObservabilityConfig + .getDefaultInstance()) { + getObservabilityConfigBuilder().mergeFrom(value); + } else { + observabilityConfig_ = value; + } + } else { + observabilityConfigBuilder_.mergeFrom(value); + } + if (observabilityConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * Optional. Observability config for NotebookLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearObservabilityConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + observabilityConfig_ = null; + if (observabilityConfigBuilder_ != null) { + observabilityConfigBuilder_.dispose(); + observabilityConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. Observability config for NotebookLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.Builder + getObservabilityConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetObservabilityConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Optional. Observability config for NotebookLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.ObservabilityConfigOrBuilder + getObservabilityConfigOrBuilder() { + if (observabilityConfigBuilder_ != null) { + return observabilityConfigBuilder_.getMessageOrBuilder(); + } else { + return observabilityConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.getDefaultInstance() + : observabilityConfig_; + } + } + + /** + * + * + *
            +         * Optional. Observability config for NotebookLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ObservabilityConfig observability_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig, + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ObservabilityConfigOrBuilder> + internalGetObservabilityConfigFieldBuilder() { + if (observabilityConfigBuilder_ == null) { + observabilityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig, + com.google.cloud.discoveryengine.v1beta.ObservabilityConfig.Builder, + com.google.cloud.discoveryengine.v1beta.ObservabilityConfigOrBuilder>( + getObservabilityConfig(), getParentForChildren(), isClean()); + observabilityConfig_ = null; + } + return observabilityConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig) + private static final com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NotebooklmConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NOTEBOOKLM_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + notebooklmConfig_; + + /** + * + * + *
            +     * Optional. Configuration for NotebookLM settings.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the notebooklmConfig field is set. + */ + @java.lang.Override + public boolean hasNotebooklmConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. Configuration for NotebookLM settings.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The notebooklmConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + getNotebooklmConfig() { + return notebooklmConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .getDefaultInstance() + : notebooklmConfig_; + } + + /** + * + * + *
            +     * Optional. Configuration for NotebookLM settings.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfigOrBuilder + getNotebooklmConfigOrBuilder() { + return notebooklmConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .getDefaultInstance() + : notebooklmConfig_; + } + + 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(3, getNotebooklmConfig()); + } + 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(3, getNotebooklmConfig()); + } + 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.v1beta.Project.CustomerProvidedConfig)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig other = + (com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig) obj; + + if (hasNotebooklmConfig() != other.hasNotebooklmConfig()) return false; + if (hasNotebooklmConfig()) { + if (!getNotebooklmConfig().equals(other.getNotebooklmConfig())) 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 (hasNotebooklmConfig()) { + hash = (37 * hash) + NOTEBOOKLM_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNotebooklmConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig 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.v1beta.Project.CustomerProvidedConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig parseFrom( + 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.v1beta.Project.CustomerProvidedConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Customer provided configurations.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig) + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.class, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetNotebooklmConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + notebooklmConfig_ = null; + if (notebooklmConfigBuilder_ != null) { + notebooklmConfigBuilder_.dispose(); + notebooklmConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig build() { + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig buildPartial() { + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig result = + new com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.notebooklmConfig_ = + notebooklmConfigBuilder_ == null + ? notebooklmConfig_ + : notebooklmConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .getDefaultInstance()) return this; + if (other.hasNotebooklmConfig()) { + mergeNotebooklmConfig(other.getNotebooklmConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 26: + { + input.readMessage( + internalGetNotebooklmConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + 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.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig + notebooklmConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfigOrBuilder> + notebooklmConfigBuilder_; + + /** + * + * + *
            +       * Optional. Configuration for NotebookLM settings.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the notebooklmConfig field is set. + */ + public boolean hasNotebooklmConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Optional. Configuration for NotebookLM settings.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The notebooklmConfig. + */ + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + getNotebooklmConfig() { + if (notebooklmConfigBuilder_ == null) { + return notebooklmConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.getDefaultInstance() + : notebooklmConfig_; + } else { + return notebooklmConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. Configuration for NotebookLM settings.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNotebooklmConfig( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + value) { + if (notebooklmConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + notebooklmConfig_ = value; + } else { + notebooklmConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Configuration for NotebookLM settings.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNotebooklmConfig( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .Builder + builderForValue) { + if (notebooklmConfigBuilder_ == null) { + notebooklmConfig_ = builderForValue.build(); + } else { + notebooklmConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Configuration for NotebookLM settings.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeNotebooklmConfig( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + value) { + if (notebooklmConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && notebooklmConfig_ != null + && notebooklmConfig_ + != com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.getDefaultInstance()) { + getNotebooklmConfigBuilder().mergeFrom(value); + } else { + notebooklmConfig_ = value; + } + } else { + notebooklmConfigBuilder_.mergeFrom(value); + } + if (notebooklmConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Configuration for NotebookLM settings.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNotebooklmConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + notebooklmConfig_ = null; + if (notebooklmConfigBuilder_ != null) { + notebooklmConfigBuilder_.dispose(); + notebooklmConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Configuration for NotebookLM settings.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig + .Builder + getNotebooklmConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetNotebooklmConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Configuration for NotebookLM settings.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfigOrBuilder + getNotebooklmConfigOrBuilder() { + if (notebooklmConfigBuilder_ != null) { + return notebooklmConfigBuilder_.getMessageOrBuilder(); + } else { + return notebooklmConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.getDefaultInstance() + : notebooklmConfig_; + } + } + + /** + * + * + *
            +       * Optional. Configuration for NotebookLM settings.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.NotebooklmConfig notebooklm_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfigOrBuilder> + internalGetNotebooklmConfigFieldBuilder() { + if (notebooklmConfigBuilder_ == null) { + notebooklmConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .NotebooklmConfigOrBuilder>( + getNotebooklmConfig(), getParentForChildren(), isClean()); + notebooklmConfig_ = null; + } + return notebooklmConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig) + private static final com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig(); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomerProvidedConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Project.CustomerProvidedConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConfigurableBillingStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. The currently effective Search QPM threshold in queries per
            +     * minute. This is the threshold against which QPM usage is compared for
            +     * overage calculations.
            +     * 
            + * + * int64 effective_search_qpm_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The effectiveSearchQpmThreshold. + */ + long getEffectiveSearchQpmThreshold(); + + /** + * + * + *
            +     * Optional. The currently effective Indexing Core threshold.
            +     * This is the threshold against which Indexing Core usage is compared
            +     * for overage calculations.
            +     * 
            + * + * int64 effective_indexing_core_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The effectiveIndexingCoreThreshold. + */ + long getEffectiveIndexingCoreThreshold(); + + /** + * + * + *
            +     * Optional. The start time of the currently active billing subscription.
            +     * 
            + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
            +     * Optional. The start time of the currently active billing subscription.
            +     * 
            + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
            +     * Optional. The start time of the currently active billing subscription.
            +     * 
            + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
            +     * Output only. The latest terminate effective time of search qpm and
            +     * indexing core subscriptions.
            +     * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terminateTime field is set. + */ + boolean hasTerminateTime(); + + /** + * + * + *
            +     * Output only. The latest terminate effective time of search qpm and
            +     * indexing core subscriptions.
            +     * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terminateTime. + */ + com.google.protobuf.Timestamp getTerminateTime(); + + /** + * + * + *
            +     * Output only. The latest terminate effective time of search qpm and
            +     * indexing core subscriptions.
            +     * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getTerminateTimeOrBuilder(); + + /** + * + * + *
            +     * Output only. The earliest next update time for the search QPM
            +     * subscription threshold. This is based on the next_update_time returned by
            +     * the underlying Cloud Billing Subscription V3 API. This field is populated
            +     * only if an update QPM subscription threshold request is succeeded.
            +     * 
            + * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the searchQpmThresholdNextUpdateTime field is set. + */ + boolean hasSearchQpmThresholdNextUpdateTime(); + + /** + * + * + *
            +     * Output only. The earliest next update time for the search QPM
            +     * subscription threshold. This is based on the next_update_time returned by
            +     * the underlying Cloud Billing Subscription V3 API. This field is populated
            +     * only if an update QPM subscription threshold request is succeeded.
            +     * 
            + * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The searchQpmThresholdNextUpdateTime. + */ + com.google.protobuf.Timestamp getSearchQpmThresholdNextUpdateTime(); + + /** + * + * + *
            +     * Output only. The earliest next update time for the search QPM
            +     * subscription threshold. This is based on the next_update_time returned by
            +     * the underlying Cloud Billing Subscription V3 API. This field is populated
            +     * only if an update QPM subscription threshold request is succeeded.
            +     * 
            + * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getSearchQpmThresholdNextUpdateTimeOrBuilder(); + + /** + * + * + *
            +     * Output only. The earliest next update time for the indexing core
            +     * subscription threshold. This is based on the next_update_time returned by
            +     * the underlying Cloud Billing Subscription V3 API. This field is populated
            +     * only if an update indexing core subscription threshold
            +     * request is succeeded.
            +     * 
            + * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the indexingCoreThresholdNextUpdateTime field is set. + */ + boolean hasIndexingCoreThresholdNextUpdateTime(); + + /** + * + * + *
            +     * Output only. The earliest next update time for the indexing core
            +     * subscription threshold. This is based on the next_update_time returned by
            +     * the underlying Cloud Billing Subscription V3 API. This field is populated
            +     * only if an update indexing core subscription threshold
            +     * request is succeeded.
            +     * 
            + * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The indexingCoreThresholdNextUpdateTime. + */ + com.google.protobuf.Timestamp getIndexingCoreThresholdNextUpdateTime(); + + /** + * + * + *
            +     * Output only. The earliest next update time for the indexing core
            +     * subscription threshold. This is based on the next_update_time returned by
            +     * the underlying Cloud Billing Subscription V3 API. This field is populated
            +     * only if an update indexing core subscription threshold
            +     * request is succeeded.
            +     * 
            + * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getIndexingCoreThresholdNextUpdateTimeOrBuilder(); + + /** + * + * + *
            +     * Output only. The type of update performed in this operation.
            +     * This field is populated in the response of UpdateProject.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType update_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for updateType. + */ + int getUpdateTypeValue(); + + /** + * + * + *
            +     * Output only. The type of update performed in this operation.
            +     * This field is populated in the response of UpdateProject.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType update_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateType. + */ + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + getUpdateType(); + + /** + * + * + *
            +     * Output only. Per-model Agent Search TPM subscription status.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus> + getAgentSearchTokenSubscriptionStatusesList(); + + /** + * + * + *
            +     * Output only. Per-model Agent Search TPM subscription status.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + getAgentSearchTokenSubscriptionStatuses(int index); + + /** + * + * + *
            +     * Output only. Per-model Agent Search TPM subscription status.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAgentSearchTokenSubscriptionStatusesCount(); + + /** + * + * + *
            +     * Output only. Per-model Agent Search TPM subscription status.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder> + getAgentSearchTokenSubscriptionStatusesOrBuilderList(); + + /** + * + * + *
            +     * Output only. Per-model Agent Search TPM subscription status.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder + getAgentSearchTokenSubscriptionStatusesOrBuilder(int index); + } + + /** + * + * + *
            +   * Represents the currently effective configurable billing parameters.
            +   * These values are derived from the customer's subscription history stored
            +   * internally and reflect the thresholds actively being used for billing
            +   * purposes at the time of the GetProject call. This includes the start_time
            +   * of the subscription and may differ from the values in
            +   * `customer_provided_config` due to billing rules
            +   * (e.g., scale-downs taking effect only at the start of a new month).
            +   * We also include the update type to indicate the type of update performed on
            +   * the configurable billing configuration in the UpdateProject operation.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus} + */ + public static final class ConfigurableBillingStatus extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus) + ConfigurableBillingStatusOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConfigurableBillingStatus"); + } + + // Use ConfigurableBillingStatus.newBuilder() to construct. + private ConfigurableBillingStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConfigurableBillingStatus() { + updateType_ = 0; + agentSearchTokenSubscriptionStatuses_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.class, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.Builder + .class); + } + + /** + * + * + *
            +     * The type of update performed on the configurable billing configuration.
            +     * 
            + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType} + */ + public enum UpdateType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Unspecified update type.
            +       * 
            + * + * UPDATE_TYPE_UNSPECIFIED = 0; + */ + UPDATE_TYPE_UNSPECIFIED(0), + /** + * + * + *
            +       * Configurable billing was created/enabled.
            +       * 
            + * + * CREATE = 1; + */ + CREATE(1), + /** + * + * + *
            +       * Configurable billing was deleted/disabled.
            +       * 
            + * + * DELETE = 2; + */ + DELETE(2), + /** + * + * + *
            +       * Subscription was scaled up (thresholds increased).
            +       * 
            + * + * SCALE_UP = 3; + */ + SCALE_UP(3), + /** + * + * + *
            +       * Subscription was scaled down (thresholds decreased).
            +       * 
            + * + * SCALE_DOWN = 4; + */ + SCALE_DOWN(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateType"); + } + + /** + * + * + *
            +       * Unspecified update type.
            +       * 
            + * + * UPDATE_TYPE_UNSPECIFIED = 0; + */ + public static final int UPDATE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +       * Configurable billing was created/enabled.
            +       * 
            + * + * CREATE = 1; + */ + public static final int CREATE_VALUE = 1; + + /** + * + * + *
            +       * Configurable billing was deleted/disabled.
            +       * 
            + * + * DELETE = 2; + */ + public static final int DELETE_VALUE = 2; + + /** + * + * + *
            +       * Subscription was scaled up (thresholds increased).
            +       * 
            + * + * SCALE_UP = 3; + */ + public static final int SCALE_UP_VALUE = 3; + + /** + * + * + *
            +       * Subscription was scaled down (thresholds decreased).
            +       * 
            + * + * SCALE_DOWN = 4; + */ + public static final int SCALE_DOWN_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 UpdateType 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 UpdateType forNumber(int value) { + switch (value) { + case 0: + return UPDATE_TYPE_UNSPECIFIED; + case 1: + return CREATE; + case 2: + return DELETE; + case 3: + return SCALE_UP; + case 4: + return SCALE_DOWN; + 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 UpdateType findValueByNumber(int number) { + return UpdateType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final UpdateType[] VALUES = values(); + + public static UpdateType 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 UpdateType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType) + } + + public interface AgentSearchTokenSubscriptionStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Output only. The Gemini model version this status corresponds to.
            +       * Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a
            +       * stable Gemini model version from the Gemini Enterprise Agent Platform
            +       * model-versions registry; see
            +       * https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models).
            +       * 
            + * + * string model_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersion. + */ + java.lang.String getModelVersion(); + + /** + * + * + *
            +       * Output only. The Gemini model version this status corresponds to.
            +       * Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a
            +       * stable Gemini model version from the Gemini Enterprise Agent Platform
            +       * model-versions registry; see
            +       * https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models).
            +       * 
            + * + * string model_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersion. + */ + com.google.protobuf.ByteString getModelVersionBytes(); + + /** + * + * + *
            +       * Output only. The currently effective TPM threshold. Reflects scale-up
            +       * immediately and scale-down at the next billing cycle, matching
            +       * `effective_search_qpm_threshold` semantics.
            +       * 
            + * + * int64 effective_tpm_threshold = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveTpmThreshold. + */ + long getEffectiveTpmThreshold(); + + /** + * + * + *
            +       * Output only. The earliest next update time for the TPM subscription
            +       * threshold for this (project, model_version). Populated only after a
            +       * successful update.
            +       * 
            + * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the tpmThresholdNextUpdateTime field is set. + */ + boolean hasTpmThresholdNextUpdateTime(); + + /** + * + * + *
            +       * Output only. The earliest next update time for the TPM subscription
            +       * threshold for this (project, model_version). Populated only after a
            +       * successful update.
            +       * 
            + * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The tpmThresholdNextUpdateTime. + */ + com.google.protobuf.Timestamp getTpmThresholdNextUpdateTime(); + + /** + * + * + *
            +       * Output only. The earliest next update time for the TPM subscription
            +       * threshold for this (project, model_version). Populated only after a
            +       * successful update.
            +       * 
            + * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getTpmThresholdNextUpdateTimeOrBuilder(); + + /** + * + * + *
            +       * Output only. When this (project, model_version) Agent Search TPM
            +       * subscription was first activated. Set once on first activation of this
            +       * model version and never moved by subsequent threshold updates; on
            +       * termination + re-activation a new value is recorded. Does NOT move
            +       * the whole-relationship `start_time` on the enclosing
            +       * ConfigurableBillingStatus, which continues to represent the first
            +       * activation of the overall customer-configurable-pricing
            +       * relationship.
            +       * 
            + * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
            +       * Output only. When this (project, model_version) Agent Search TPM
            +       * subscription was first activated. Set once on first activation of this
            +       * model version and never moved by subsequent threshold updates; on
            +       * termination + re-activation a new value is recorded. Does NOT move
            +       * the whole-relationship `start_time` on the enclosing
            +       * ConfigurableBillingStatus, which continues to represent the first
            +       * activation of the overall customer-configurable-pricing
            +       * relationship.
            +       * 
            + * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
            +       * Output only. When this (project, model_version) Agent Search TPM
            +       * subscription was first activated. Set once on first activation of this
            +       * model version and never moved by subsequent threshold updates; on
            +       * termination + re-activation a new value is recorded. Does NOT move
            +       * the whole-relationship `start_time` on the enclosing
            +       * ConfigurableBillingStatus, which continues to represent the first
            +       * activation of the overall customer-configurable-pricing
            +       * relationship.
            +       * 
            + * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
            +       * Output only. If set, the scheduled effective time at which this
            +       * (project, model_version) Agent Search TPM subscription will terminate.
            +       * Populated when the customer removes this entry from
            +       * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
            +       * the whole-relationship `terminate_time` on the enclosing
            +       * ConfigurableBillingStatus, which is populated only when the entire
            +       * customer-configurable-pricing relationship is being torn down.
            +       * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terminateTime field is set. + */ + boolean hasTerminateTime(); + + /** + * + * + *
            +       * Output only. If set, the scheduled effective time at which this
            +       * (project, model_version) Agent Search TPM subscription will terminate.
            +       * Populated when the customer removes this entry from
            +       * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
            +       * the whole-relationship `terminate_time` on the enclosing
            +       * ConfigurableBillingStatus, which is populated only when the entire
            +       * customer-configurable-pricing relationship is being torn down.
            +       * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terminateTime. + */ + com.google.protobuf.Timestamp getTerminateTime(); + + /** + * + * + *
            +       * Output only. If set, the scheduled effective time at which this
            +       * (project, model_version) Agent Search TPM subscription will terminate.
            +       * Populated when the customer removes this entry from
            +       * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
            +       * the whole-relationship `terminate_time` on the enclosing
            +       * ConfigurableBillingStatus, which is populated only when the entire
            +       * customer-configurable-pricing relationship is being torn down.
            +       * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getTerminateTimeOrBuilder(); + + /** + * + * + *
            +       * Output only. The type of the most recent update to this (project,
            +       * model_version) subscription, as performed by the most recent
            +       * UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this
            +       * model_version was not touched by the most recent UpdateProject (its
            +       * `effective_tpm_threshold` reflects an earlier update). The
            +       * whole-relationship `update_type` on the enclosing
            +       * ConfigurableBillingStatus continues to summarize the direction of
            +       * the most recent update across all surfaces in the project (QPM,
            +       * IndexingCore, and Agent Search TPM together).
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType update_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for updateType. + */ + int getUpdateTypeValue(); + + /** + * + * + *
            +       * Output only. The type of the most recent update to this (project,
            +       * model_version) subscription, as performed by the most recent
            +       * UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this
            +       * model_version was not touched by the most recent UpdateProject (its
            +       * `effective_tpm_threshold` reflects an earlier update). The
            +       * whole-relationship `update_type` on the enclosing
            +       * ConfigurableBillingStatus continues to summarize the direction of
            +       * the most recent update across all surfaces in the project (QPM,
            +       * IndexingCore, and Agent Search TPM together).
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType update_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateType. + */ + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + getUpdateType(); + } + + /** + * + * + *
            +     * Per-model Agent Search TPM subscription status. One entry per active
            +     * `core_subscription.agent_search_token_subscriptions[*]` entry in the
            +     * customer-provided config; populated by UpdateProject and GetProject.
            +     *
            +     * The lifecycle scalars on this message (`start_time`, `terminate_time`,
            +     * `update_type`, `tpm_threshold_next_update_time`) are per (project,
            +     * model_version) — siblings of the whole-relationship `start_time` /
            +     * `terminate_time` / `update_type` on the enclosing
            +     * ConfigurableBillingStatus, but scoped to this specific Agent Search
            +     * TPM subscription instead of to the overall customer-configurable-
            +     * pricing relationship. This per-instance granularity is intentional:
            +     * the underlying SubV3 storage is per-(project, model_version), so
            +     * each model has its own activation, termination, and deferred-update
            +     * clock; surfacing that on the response gives customers the granularity
            +     * they need to manage per-model commitments independently. QPM /
            +     * IndexingCore differ — their storage is one row per (project,
            +     * location), so their lifecycle is represented only by the whole-
            +     * relationship scalars on ConfigurableBillingStatus.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus} + */ + public static final class AgentSearchTokenSubscriptionStatus + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus) + AgentSearchTokenSubscriptionStatusOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentSearchTokenSubscriptionStatus"); + } + + // Use AgentSearchTokenSubscriptionStatus.newBuilder() to construct. + private AgentSearchTokenSubscriptionStatus( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentSearchTokenSubscriptionStatus() { + modelVersion_ = ""; + updateType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.class, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder.class); + } + + private int bitField0_; + public static final int MODEL_VERSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelVersion_ = ""; + + /** + * + * + *
            +       * Output only. The Gemini model version this status corresponds to.
            +       * Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a
            +       * stable Gemini model version from the Gemini Enterprise Agent Platform
            +       * model-versions registry; see
            +       * https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models).
            +       * 
            + * + * string model_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersion. + */ + @java.lang.Override + public java.lang.String getModelVersion() { + java.lang.Object ref = modelVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersion_ = s; + return s; + } + } + + /** + * + * + *
            +       * Output only. The Gemini model version this status corresponds to.
            +       * Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a
            +       * stable Gemini model version from the Gemini Enterprise Agent Platform
            +       * model-versions registry; see
            +       * https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models).
            +       * 
            + * + * string model_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getModelVersionBytes() { + java.lang.Object ref = modelVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EFFECTIVE_TPM_THRESHOLD_FIELD_NUMBER = 2; + private long effectiveTpmThreshold_ = 0L; + + /** + * + * + *
            +       * Output only. The currently effective TPM threshold. Reflects scale-up
            +       * immediately and scale-down at the next billing cycle, matching
            +       * `effective_search_qpm_threshold` semantics.
            +       * 
            + * + * int64 effective_tpm_threshold = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveTpmThreshold. + */ + @java.lang.Override + public long getEffectiveTpmThreshold() { + return effectiveTpmThreshold_; + } + + public static final int TPM_THRESHOLD_NEXT_UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp tpmThresholdNextUpdateTime_; + + /** + * + * + *
            +       * Output only. The earliest next update time for the TPM subscription
            +       * threshold for this (project, model_version). Populated only after a
            +       * successful update.
            +       * 
            + * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the tpmThresholdNextUpdateTime field is set. + */ + @java.lang.Override + public boolean hasTpmThresholdNextUpdateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Output only. The earliest next update time for the TPM subscription
            +       * threshold for this (project, model_version). Populated only after a
            +       * successful update.
            +       * 
            + * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The tpmThresholdNextUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getTpmThresholdNextUpdateTime() { + return tpmThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : tpmThresholdNextUpdateTime_; + } + + /** + * + * + *
            +       * Output only. The earliest next update time for the TPM subscription
            +       * threshold for this (project, model_version). Populated only after a
            +       * successful update.
            +       * 
            + * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getTpmThresholdNextUpdateTimeOrBuilder() { + return tpmThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : tpmThresholdNextUpdateTime_; + } + + public static final int START_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
            +       * Output only. When this (project, model_version) Agent Search TPM
            +       * subscription was first activated. Set once on first activation of this
            +       * model version and never moved by subsequent threshold updates; on
            +       * termination + re-activation a new value is recorded. Does NOT move
            +       * the whole-relationship `start_time` on the enclosing
            +       * ConfigurableBillingStatus, which continues to represent the first
            +       * activation of the overall customer-configurable-pricing
            +       * relationship.
            +       * 
            + * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +       * Output only. When this (project, model_version) Agent Search TPM
            +       * subscription was first activated. Set once on first activation of this
            +       * model version and never moved by subsequent threshold updates; on
            +       * termination + re-activation a new value is recorded. Does NOT move
            +       * the whole-relationship `start_time` on the enclosing
            +       * ConfigurableBillingStatus, which continues to represent the first
            +       * activation of the overall customer-configurable-pricing
            +       * relationship.
            +       * 
            + * + * + * .google.protobuf.Timestamp start_time = 4 [(.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. When this (project, model_version) Agent Search TPM
            +       * subscription was first activated. Set once on first activation of this
            +       * model version and never moved by subsequent threshold updates; on
            +       * termination + re-activation a new value is recorded. Does NOT move
            +       * the whole-relationship `start_time` on the enclosing
            +       * ConfigurableBillingStatus, which continues to represent the first
            +       * activation of the overall customer-configurable-pricing
            +       * relationship.
            +       * 
            + * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int TERMINATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp terminateTime_; + + /** + * + * + *
            +       * Output only. If set, the scheduled effective time at which this
            +       * (project, model_version) Agent Search TPM subscription will terminate.
            +       * Populated when the customer removes this entry from
            +       * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
            +       * the whole-relationship `terminate_time` on the enclosing
            +       * ConfigurableBillingStatus, which is populated only when the entire
            +       * customer-configurable-pricing relationship is being torn down.
            +       * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terminateTime field is set. + */ + @java.lang.Override + public boolean hasTerminateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +       * Output only. If set, the scheduled effective time at which this
            +       * (project, model_version) Agent Search TPM subscription will terminate.
            +       * Populated when the customer removes this entry from
            +       * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
            +       * the whole-relationship `terminate_time` on the enclosing
            +       * ConfigurableBillingStatus, which is populated only when the entire
            +       * customer-configurable-pricing relationship is being torn down.
            +       * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terminateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getTerminateTime() { + return terminateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminateTime_; + } + + /** + * + * + *
            +       * Output only. If set, the scheduled effective time at which this
            +       * (project, model_version) Agent Search TPM subscription will terminate.
            +       * Populated when the customer removes this entry from
            +       * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
            +       * the whole-relationship `terminate_time` on the enclosing
            +       * ConfigurableBillingStatus, which is populated only when the entire
            +       * customer-configurable-pricing relationship is being torn down.
            +       * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getTerminateTimeOrBuilder() { + return terminateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminateTime_; + } + + public static final int UPDATE_TYPE_FIELD_NUMBER = 6; + private int updateType_ = 0; + + /** + * + * + *
            +       * Output only. The type of the most recent update to this (project,
            +       * model_version) subscription, as performed by the most recent
            +       * UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this
            +       * model_version was not touched by the most recent UpdateProject (its
            +       * `effective_tpm_threshold` reflects an earlier update). The
            +       * whole-relationship `update_type` on the enclosing
            +       * ConfigurableBillingStatus continues to summarize the direction of
            +       * the most recent update across all surfaces in the project (QPM,
            +       * IndexingCore, and Agent Search TPM together).
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType update_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for updateType. + */ + @java.lang.Override + public int getUpdateTypeValue() { + return updateType_; + } + + /** + * + * + *
            +       * Output only. The type of the most recent update to this (project,
            +       * model_version) subscription, as performed by the most recent
            +       * UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this
            +       * model_version was not touched by the most recent UpdateProject (its
            +       * `effective_tpm_threshold` reflects an earlier update). The
            +       * whole-relationship `update_type` on the enclosing
            +       * ConfigurableBillingStatus continues to summarize the direction of
            +       * the most recent update across all surfaces in the project (QPM,
            +       * IndexingCore, and Agent Search TPM together).
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType update_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + getUpdateType() { + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + result = + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + .forNumber(updateType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, modelVersion_); + } + if (effectiveTpmThreshold_ != 0L) { + output.writeInt64(2, effectiveTpmThreshold_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getTpmThresholdNextUpdateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getStartTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getTerminateTime()); + } + if (updateType_ + != com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + .UPDATE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, updateType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, modelVersion_); + } + if (effectiveTpmThreshold_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, effectiveTpmThreshold_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getTpmThresholdNextUpdateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStartTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTerminateTime()); + } + if (updateType_ + != com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + .UPDATE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, updateType_); + } + 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.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + other = + (com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus) + obj; + + if (!getModelVersion().equals(other.getModelVersion())) return false; + if (getEffectiveTpmThreshold() != other.getEffectiveTpmThreshold()) return false; + if (hasTpmThresholdNextUpdateTime() != other.hasTpmThresholdNextUpdateTime()) return false; + if (hasTpmThresholdNextUpdateTime()) { + if (!getTpmThresholdNextUpdateTime().equals(other.getTpmThresholdNextUpdateTime())) + return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasTerminateTime() != other.hasTerminateTime()) return false; + if (hasTerminateTime()) { + if (!getTerminateTime().equals(other.getTerminateTime())) return false; + } + if (updateType_ != other.updateType_) 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_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getModelVersion().hashCode(); + hash = (37 * hash) + EFFECTIVE_TPM_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEffectiveTpmThreshold()); + if (hasTpmThresholdNextUpdateTime()) { + hash = (37 * hash) + TPM_THRESHOLD_NEXT_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getTpmThresholdNextUpdateTime().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasTerminateTime()) { + hash = (37 * hash) + TERMINATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getTerminateTime().hashCode(); + } + hash = (37 * hash) + UPDATE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + updateType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + 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.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseFrom( + 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.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Per-model Agent Search TPM subscription status. One entry per active
            +       * `core_subscription.agent_search_token_subscriptions[*]` entry in the
            +       * customer-provided config; populated by UpdateProject and GetProject.
            +       *
            +       * The lifecycle scalars on this message (`start_time`, `terminate_time`,
            +       * `update_type`, `tpm_threshold_next_update_time`) are per (project,
            +       * model_version) — siblings of the whole-relationship `start_time` /
            +       * `terminate_time` / `update_type` on the enclosing
            +       * ConfigurableBillingStatus, but scoped to this specific Agent Search
            +       * TPM subscription instead of to the overall customer-configurable-
            +       * pricing relationship. This per-instance granularity is intentional:
            +       * the underlying SubV3 storage is per-(project, model_version), so
            +       * each model has its own activation, termination, and deferred-update
            +       * clock; surfacing that on the response gives customers the granularity
            +       * they need to manage per-model commitments independently. QPM /
            +       * IndexingCore differ — their storage is one row per (project,
            +       * location), so their lifecycle is represented only by the whole-
            +       * relationship scalars on ConfigurableBillingStatus.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus) + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.class, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTpmThresholdNextUpdateTimeFieldBuilder(); + internalGetStartTimeFieldBuilder(); + internalGetTerminateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modelVersion_ = ""; + effectiveTpmThreshold_ = 0L; + tpmThresholdNextUpdateTime_ = null; + if (tpmThresholdNextUpdateTimeBuilder_ != null) { + tpmThresholdNextUpdateTimeBuilder_.dispose(); + tpmThresholdNextUpdateTimeBuilder_ = null; + } + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + terminateTime_ = null; + if (terminateTimeBuilder_ != null) { + terminateTimeBuilder_.dispose(); + terminateTimeBuilder_ = null; + } + updateType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + build() { + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + result = + new com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelVersion_ = modelVersion_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.effectiveTpmThreshold_ = effectiveTpmThreshold_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tpmThresholdNextUpdateTime_ = + tpmThresholdNextUpdateTimeBuilder_ == null + ? tpmThresholdNextUpdateTime_ + : tpmThresholdNextUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.terminateTime_ = + terminateTimeBuilder_ == null ? terminateTime_ : terminateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateType_ = updateType_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.getDefaultInstance()) return this; + if (!other.getModelVersion().isEmpty()) { + modelVersion_ = other.modelVersion_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getEffectiveTpmThreshold() != 0L) { + setEffectiveTpmThreshold(other.getEffectiveTpmThreshold()); + } + if (other.hasTpmThresholdNextUpdateTime()) { + mergeTpmThresholdNextUpdateTime(other.getTpmThresholdNextUpdateTime()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasTerminateTime()) { + mergeTerminateTime(other.getTerminateTime()); + } + if (other.updateType_ != 0) { + setUpdateTypeValue(other.getUpdateTypeValue()); + } + 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: + { + modelVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + effectiveTpmThreshold_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + internalGetTpmThresholdNextUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetTerminateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + updateType_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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 modelVersion_ = ""; + + /** + * + * + *
            +         * Output only. The Gemini model version this status corresponds to.
            +         * Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a
            +         * stable Gemini model version from the Gemini Enterprise Agent Platform
            +         * model-versions registry; see
            +         * https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models).
            +         * 
            + * + * string model_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The modelVersion. + */ + public java.lang.String getModelVersion() { + java.lang.Object ref = modelVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + modelVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Output only. The Gemini model version this status corresponds to.
            +         * Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a
            +         * stable Gemini model version from the Gemini Enterprise Agent Platform
            +         * model-versions registry; see
            +         * https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models).
            +         * 
            + * + * string model_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for modelVersion. + */ + public com.google.protobuf.ByteString getModelVersionBytes() { + java.lang.Object ref = modelVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + modelVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Output only. The Gemini model version this status corresponds to.
            +         * Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a
            +         * stable Gemini model version from the Gemini Enterprise Agent Platform
            +         * model-versions registry; see
            +         * https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models).
            +         * 
            + * + * string model_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The modelVersion to set. + * @return This builder for chaining. + */ + public Builder setModelVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + modelVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. The Gemini model version this status corresponds to.
            +         * Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a
            +         * stable Gemini model version from the Gemini Enterprise Agent Platform
            +         * model-versions registry; see
            +         * https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models).
            +         * 
            + * + * string model_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearModelVersion() { + modelVersion_ = getDefaultInstance().getModelVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. The Gemini model version this status corresponds to.
            +         * Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a
            +         * stable Gemini model version from the Gemini Enterprise Agent Platform
            +         * model-versions registry; see
            +         * https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models).
            +         * 
            + * + * string model_version = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for modelVersion to set. + * @return This builder for chaining. + */ + public Builder setModelVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long effectiveTpmThreshold_; + + /** + * + * + *
            +         * Output only. The currently effective TPM threshold. Reflects scale-up
            +         * immediately and scale-down at the next billing cycle, matching
            +         * `effective_search_qpm_threshold` semantics.
            +         * 
            + * + * int64 effective_tpm_threshold = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveTpmThreshold. + */ + @java.lang.Override + public long getEffectiveTpmThreshold() { + return effectiveTpmThreshold_; + } + + /** + * + * + *
            +         * Output only. The currently effective TPM threshold. Reflects scale-up
            +         * immediately and scale-down at the next billing cycle, matching
            +         * `effective_search_qpm_threshold` semantics.
            +         * 
            + * + * int64 effective_tpm_threshold = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The effectiveTpmThreshold to set. + * @return This builder for chaining. + */ + public Builder setEffectiveTpmThreshold(long value) { + + effectiveTpmThreshold_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. The currently effective TPM threshold. Reflects scale-up
            +         * immediately and scale-down at the next billing cycle, matching
            +         * `effective_search_qpm_threshold` semantics.
            +         * 
            + * + * int64 effective_tpm_threshold = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEffectiveTpmThreshold() { + bitField0_ = (bitField0_ & ~0x00000002); + effectiveTpmThreshold_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp tpmThresholdNextUpdateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + tpmThresholdNextUpdateTimeBuilder_; + + /** + * + * + *
            +         * Output only. The earliest next update time for the TPM subscription
            +         * threshold for this (project, model_version). Populated only after a
            +         * successful update.
            +         * 
            + * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the tpmThresholdNextUpdateTime field is set. + */ + public boolean hasTpmThresholdNextUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +         * Output only. The earliest next update time for the TPM subscription
            +         * threshold for this (project, model_version). Populated only after a
            +         * successful update.
            +         * 
            + * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The tpmThresholdNextUpdateTime. + */ + public com.google.protobuf.Timestamp getTpmThresholdNextUpdateTime() { + if (tpmThresholdNextUpdateTimeBuilder_ == null) { + return tpmThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : tpmThresholdNextUpdateTime_; + } else { + return tpmThresholdNextUpdateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +         * Output only. The earliest next update time for the TPM subscription
            +         * threshold for this (project, model_version). Populated only after a
            +         * successful update.
            +         * 
            + * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTpmThresholdNextUpdateTime(com.google.protobuf.Timestamp value) { + if (tpmThresholdNextUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tpmThresholdNextUpdateTime_ = value; + } else { + tpmThresholdNextUpdateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. The earliest next update time for the TPM subscription
            +         * threshold for this (project, model_version). Populated only after a
            +         * successful update.
            +         * 
            + * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTpmThresholdNextUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (tpmThresholdNextUpdateTimeBuilder_ == null) { + tpmThresholdNextUpdateTime_ = builderForValue.build(); + } else { + tpmThresholdNextUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. The earliest next update time for the TPM subscription
            +         * threshold for this (project, model_version). Populated only after a
            +         * successful update.
            +         * 
            + * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTpmThresholdNextUpdateTime(com.google.protobuf.Timestamp value) { + if (tpmThresholdNextUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && tpmThresholdNextUpdateTime_ != null + && tpmThresholdNextUpdateTime_ + != com.google.protobuf.Timestamp.getDefaultInstance()) { + getTpmThresholdNextUpdateTimeBuilder().mergeFrom(value); + } else { + tpmThresholdNextUpdateTime_ = value; + } + } else { + tpmThresholdNextUpdateTimeBuilder_.mergeFrom(value); + } + if (tpmThresholdNextUpdateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * Output only. The earliest next update time for the TPM subscription
            +         * threshold for this (project, model_version). Populated only after a
            +         * successful update.
            +         * 
            + * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTpmThresholdNextUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + tpmThresholdNextUpdateTime_ = null; + if (tpmThresholdNextUpdateTimeBuilder_ != null) { + tpmThresholdNextUpdateTimeBuilder_.dispose(); + tpmThresholdNextUpdateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. The earliest next update time for the TPM subscription
            +         * threshold for this (project, model_version). Populated only after a
            +         * successful update.
            +         * 
            + * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getTpmThresholdNextUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetTpmThresholdNextUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Output only. The earliest next update time for the TPM subscription
            +         * threshold for this (project, model_version). Populated only after a
            +         * successful update.
            +         * 
            + * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getTpmThresholdNextUpdateTimeOrBuilder() { + if (tpmThresholdNextUpdateTimeBuilder_ != null) { + return tpmThresholdNextUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return tpmThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : tpmThresholdNextUpdateTime_; + } + } + + /** + * + * + *
            +         * Output only. The earliest next update time for the TPM subscription
            +         * threshold for this (project, model_version). Populated only after a
            +         * successful update.
            +         * 
            + * + * + * .google.protobuf.Timestamp tpm_threshold_next_update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetTpmThresholdNextUpdateTimeFieldBuilder() { + if (tpmThresholdNextUpdateTimeBuilder_ == null) { + tpmThresholdNextUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getTpmThresholdNextUpdateTime(), getParentForChildren(), isClean()); + tpmThresholdNextUpdateTime_ = null; + } + return tpmThresholdNextUpdateTimeBuilder_; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
            +         * Output only. When this (project, model_version) Agent Search TPM
            +         * subscription was first activated. Set once on first activation of this
            +         * model version and never moved by subsequent threshold updates; on
            +         * termination + re-activation a new value is recorded. Does NOT move
            +         * the whole-relationship `start_time` on the enclosing
            +         * ConfigurableBillingStatus, which continues to represent the first
            +         * activation of the overall customer-configurable-pricing
            +         * relationship.
            +         * 
            + * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +         * Output only. When this (project, model_version) Agent Search TPM
            +         * subscription was first activated. Set once on first activation of this
            +         * model version and never moved by subsequent threshold updates; on
            +         * termination + re-activation a new value is recorded. Does NOT move
            +         * the whole-relationship `start_time` on the enclosing
            +         * ConfigurableBillingStatus, which continues to represent the first
            +         * activation of the overall customer-configurable-pricing
            +         * relationship.
            +         * 
            + * + * + * .google.protobuf.Timestamp start_time = 4 [(.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. When this (project, model_version) Agent Search TPM
            +         * subscription was first activated. Set once on first activation of this
            +         * model version and never moved by subsequent threshold updates; on
            +         * termination + re-activation a new value is recorded. Does NOT move
            +         * the whole-relationship `start_time` on the enclosing
            +         * ConfigurableBillingStatus, which continues to represent the first
            +         * activation of the overall customer-configurable-pricing
            +         * relationship.
            +         * 
            + * + * + * .google.protobuf.Timestamp start_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. When this (project, model_version) Agent Search TPM
            +         * subscription was first activated. Set once on first activation of this
            +         * model version and never moved by subsequent threshold updates; on
            +         * termination + re-activation a new value is recorded. Does NOT move
            +         * the whole-relationship `start_time` on the enclosing
            +         * ConfigurableBillingStatus, which continues to represent the first
            +         * activation of the overall customer-configurable-pricing
            +         * relationship.
            +         * 
            + * + * + * .google.protobuf.Timestamp start_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. When this (project, model_version) Agent Search TPM
            +         * subscription was first activated. Set once on first activation of this
            +         * model version and never moved by subsequent threshold updates; on
            +         * termination + re-activation a new value is recorded. Does NOT move
            +         * the whole-relationship `start_time` on the enclosing
            +         * ConfigurableBillingStatus, which continues to represent the first
            +         * activation of the overall customer-configurable-pricing
            +         * relationship.
            +         * 
            + * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * Output only. When this (project, model_version) Agent Search TPM
            +         * subscription was first activated. Set once on first activation of this
            +         * model version and never moved by subsequent threshold updates; on
            +         * termination + re-activation a new value is recorded. Does NOT move
            +         * the whole-relationship `start_time` on the enclosing
            +         * ConfigurableBillingStatus, which continues to represent the first
            +         * activation of the overall customer-configurable-pricing
            +         * relationship.
            +         * 
            + * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000008); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. When this (project, model_version) Agent Search TPM
            +         * subscription was first activated. Set once on first activation of this
            +         * model version and never moved by subsequent threshold updates; on
            +         * termination + re-activation a new value is recorded. Does NOT move
            +         * the whole-relationship `start_time` on the enclosing
            +         * ConfigurableBillingStatus, which continues to represent the first
            +         * activation of the overall customer-configurable-pricing
            +         * relationship.
            +         * 
            + * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Output only. When this (project, model_version) Agent Search TPM
            +         * subscription was first activated. Set once on first activation of this
            +         * model version and never moved by subsequent threshold updates; on
            +         * termination + re-activation a new value is recorded. Does NOT move
            +         * the whole-relationship `start_time` on the enclosing
            +         * ConfigurableBillingStatus, which continues to represent the first
            +         * activation of the overall customer-configurable-pricing
            +         * relationship.
            +         * 
            + * + * + * .google.protobuf.Timestamp start_time = 4 [(.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. When this (project, model_version) Agent Search TPM
            +         * subscription was first activated. Set once on first activation of this
            +         * model version and never moved by subsequent threshold updates; on
            +         * termination + re-activation a new value is recorded. Does NOT move
            +         * the whole-relationship `start_time` on the enclosing
            +         * ConfigurableBillingStatus, which continues to represent the first
            +         * activation of the overall customer-configurable-pricing
            +         * relationship.
            +         * 
            + * + * + * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp terminateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + terminateTimeBuilder_; + + /** + * + * + *
            +         * Output only. If set, the scheduled effective time at which this
            +         * (project, model_version) Agent Search TPM subscription will terminate.
            +         * Populated when the customer removes this entry from
            +         * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
            +         * the whole-relationship `terminate_time` on the enclosing
            +         * ConfigurableBillingStatus, which is populated only when the entire
            +         * customer-configurable-pricing relationship is being torn down.
            +         * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terminateTime field is set. + */ + public boolean hasTerminateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +         * Output only. If set, the scheduled effective time at which this
            +         * (project, model_version) Agent Search TPM subscription will terminate.
            +         * Populated when the customer removes this entry from
            +         * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
            +         * the whole-relationship `terminate_time` on the enclosing
            +         * ConfigurableBillingStatus, which is populated only when the entire
            +         * customer-configurable-pricing relationship is being torn down.
            +         * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terminateTime. + */ + public com.google.protobuf.Timestamp getTerminateTime() { + if (terminateTimeBuilder_ == null) { + return terminateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminateTime_; + } else { + return terminateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +         * Output only. If set, the scheduled effective time at which this
            +         * (project, model_version) Agent Search TPM subscription will terminate.
            +         * Populated when the customer removes this entry from
            +         * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
            +         * the whole-relationship `terminate_time` on the enclosing
            +         * ConfigurableBillingStatus, which is populated only when the entire
            +         * customer-configurable-pricing relationship is being torn down.
            +         * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerminateTime(com.google.protobuf.Timestamp value) { + if (terminateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + terminateTime_ = value; + } else { + terminateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. If set, the scheduled effective time at which this
            +         * (project, model_version) Agent Search TPM subscription will terminate.
            +         * Populated when the customer removes this entry from
            +         * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
            +         * the whole-relationship `terminate_time` on the enclosing
            +         * ConfigurableBillingStatus, which is populated only when the entire
            +         * customer-configurable-pricing relationship is being torn down.
            +         * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerminateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (terminateTimeBuilder_ == null) { + terminateTime_ = builderForValue.build(); + } else { + terminateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. If set, the scheduled effective time at which this
            +         * (project, model_version) Agent Search TPM subscription will terminate.
            +         * Populated when the customer removes this entry from
            +         * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
            +         * the whole-relationship `terminate_time` on the enclosing
            +         * ConfigurableBillingStatus, which is populated only when the entire
            +         * customer-configurable-pricing relationship is being torn down.
            +         * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTerminateTime(com.google.protobuf.Timestamp value) { + if (terminateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && terminateTime_ != null + && terminateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getTerminateTimeBuilder().mergeFrom(value); + } else { + terminateTime_ = value; + } + } else { + terminateTimeBuilder_.mergeFrom(value); + } + if (terminateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * Output only. If set, the scheduled effective time at which this
            +         * (project, model_version) Agent Search TPM subscription will terminate.
            +         * Populated when the customer removes this entry from
            +         * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
            +         * the whole-relationship `terminate_time` on the enclosing
            +         * ConfigurableBillingStatus, which is populated only when the entire
            +         * customer-configurable-pricing relationship is being torn down.
            +         * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTerminateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + terminateTime_ = null; + if (terminateTimeBuilder_ != null) { + terminateTimeBuilder_.dispose(); + terminateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. If set, the scheduled effective time at which this
            +         * (project, model_version) Agent Search TPM subscription will terminate.
            +         * Populated when the customer removes this entry from
            +         * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
            +         * the whole-relationship `terminate_time` on the enclosing
            +         * ConfigurableBillingStatus, which is populated only when the entire
            +         * customer-configurable-pricing relationship is being torn down.
            +         * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getTerminateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetTerminateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Output only. If set, the scheduled effective time at which this
            +         * (project, model_version) Agent Search TPM subscription will terminate.
            +         * Populated when the customer removes this entry from
            +         * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
            +         * the whole-relationship `terminate_time` on the enclosing
            +         * ConfigurableBillingStatus, which is populated only when the entire
            +         * customer-configurable-pricing relationship is being torn down.
            +         * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getTerminateTimeOrBuilder() { + if (terminateTimeBuilder_ != null) { + return terminateTimeBuilder_.getMessageOrBuilder(); + } else { + return terminateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminateTime_; + } + } + + /** + * + * + *
            +         * Output only. If set, the scheduled effective time at which this
            +         * (project, model_version) Agent Search TPM subscription will terminate.
            +         * Populated when the customer removes this entry from
            +         * `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move
            +         * the whole-relationship `terminate_time` on the enclosing
            +         * ConfigurableBillingStatus, which is populated only when the entire
            +         * customer-configurable-pricing relationship is being torn down.
            +         * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetTerminateTimeFieldBuilder() { + if (terminateTimeBuilder_ == null) { + terminateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getTerminateTime(), getParentForChildren(), isClean()); + terminateTime_ = null; + } + return terminateTimeBuilder_; + } + + private int updateType_ = 0; + + /** + * + * + *
            +         * Output only. The type of the most recent update to this (project,
            +         * model_version) subscription, as performed by the most recent
            +         * UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this
            +         * model_version was not touched by the most recent UpdateProject (its
            +         * `effective_tpm_threshold` reflects an earlier update). The
            +         * whole-relationship `update_type` on the enclosing
            +         * ConfigurableBillingStatus continues to summarize the direction of
            +         * the most recent update across all surfaces in the project (QPM,
            +         * IndexingCore, and Agent Search TPM together).
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType update_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for updateType. + */ + @java.lang.Override + public int getUpdateTypeValue() { + return updateType_; + } + + /** + * + * + *
            +         * Output only. The type of the most recent update to this (project,
            +         * model_version) subscription, as performed by the most recent
            +         * UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this
            +         * model_version was not touched by the most recent UpdateProject (its
            +         * `effective_tpm_threshold` reflects an earlier update). The
            +         * whole-relationship `update_type` on the enclosing
            +         * ConfigurableBillingStatus continues to summarize the direction of
            +         * the most recent update across all surfaces in the project (QPM,
            +         * IndexingCore, and Agent Search TPM together).
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType update_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for updateType to set. + * @return This builder for chaining. + */ + public Builder setUpdateTypeValue(int value) { + updateType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. The type of the most recent update to this (project,
            +         * model_version) subscription, as performed by the most recent
            +         * UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this
            +         * model_version was not touched by the most recent UpdateProject (its
            +         * `effective_tpm_threshold` reflects an earlier update). The
            +         * whole-relationship `update_type` on the enclosing
            +         * ConfigurableBillingStatus continues to summarize the direction of
            +         * the most recent update across all surfaces in the project (QPM,
            +         * IndexingCore, and Agent Search TPM together).
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType update_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + getUpdateType() { + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + result = + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .UpdateType.forNumber(updateType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
            +         * Output only. The type of the most recent update to this (project,
            +         * model_version) subscription, as performed by the most recent
            +         * UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this
            +         * model_version was not touched by the most recent UpdateProject (its
            +         * `effective_tpm_threshold` reflects an earlier update). The
            +         * whole-relationship `update_type` on the enclosing
            +         * ConfigurableBillingStatus continues to summarize the direction of
            +         * the most recent update across all surfaces in the project (QPM,
            +         * IndexingCore, and Agent Search TPM together).
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType update_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The updateType to set. + * @return This builder for chaining. + */ + public Builder setUpdateType( + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + updateType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. The type of the most recent update to this (project,
            +         * model_version) subscription, as performed by the most recent
            +         * UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this
            +         * model_version was not touched by the most recent UpdateProject (its
            +         * `effective_tpm_threshold` reflects an earlier update). The
            +         * whole-relationship `update_type` on the enclosing
            +         * ConfigurableBillingStatus continues to summarize the direction of
            +         * the most recent update across all surfaces in the project (QPM,
            +         * IndexingCore, and Agent Search TPM together).
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType update_type = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearUpdateType() { + bitField0_ = (bitField0_ & ~0x00000020); + updateType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus) + private static final com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus(); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentSearchTokenSubscriptionStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int EFFECTIVE_SEARCH_QPM_THRESHOLD_FIELD_NUMBER = 1; + private long effectiveSearchQpmThreshold_ = 0L; + + /** + * + * + *
            +     * Optional. The currently effective Search QPM threshold in queries per
            +     * minute. This is the threshold against which QPM usage is compared for
            +     * overage calculations.
            +     * 
            + * + * int64 effective_search_qpm_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The effectiveSearchQpmThreshold. + */ + @java.lang.Override + public long getEffectiveSearchQpmThreshold() { + return effectiveSearchQpmThreshold_; + } + + public static final int EFFECTIVE_INDEXING_CORE_THRESHOLD_FIELD_NUMBER = 2; + private long effectiveIndexingCoreThreshold_ = 0L; + + /** + * + * + *
            +     * Optional. The currently effective Indexing Core threshold.
            +     * This is the threshold against which Indexing Core usage is compared
            +     * for overage calculations.
            +     * 
            + * + * int64 effective_indexing_core_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The effectiveIndexingCoreThreshold. + */ + @java.lang.Override + public long getEffectiveIndexingCoreThreshold() { + return effectiveIndexingCoreThreshold_; + } + + public static final int START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
            +     * Optional. The start time of the currently active billing subscription.
            +     * 
            + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. The start time of the currently active billing subscription.
            +     * 
            + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
            +     * Optional. The start time of the currently active billing subscription.
            +     * 
            + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int TERMINATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp terminateTime_; + + /** + * + * + *
            +     * Output only. The latest terminate effective time of search qpm and
            +     * indexing core subscriptions.
            +     * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terminateTime field is set. + */ + @java.lang.Override + public boolean hasTerminateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Output only. The latest terminate effective time of search qpm and
            +     * indexing core subscriptions.
            +     * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terminateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getTerminateTime() { + return terminateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminateTime_; + } + + /** + * + * + *
            +     * Output only. The latest terminate effective time of search qpm and
            +     * indexing core subscriptions.
            +     * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getTerminateTimeOrBuilder() { + return terminateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminateTime_; + } + + public static final int SEARCH_QPM_THRESHOLD_NEXT_UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp searchQpmThresholdNextUpdateTime_; + + /** + * + * + *
            +     * Output only. The earliest next update time for the search QPM
            +     * subscription threshold. This is based on the next_update_time returned by
            +     * the underlying Cloud Billing Subscription V3 API. This field is populated
            +     * only if an update QPM subscription threshold request is succeeded.
            +     * 
            + * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the searchQpmThresholdNextUpdateTime field is set. + */ + @java.lang.Override + public boolean hasSearchQpmThresholdNextUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Output only. The earliest next update time for the search QPM
            +     * subscription threshold. This is based on the next_update_time returned by
            +     * the underlying Cloud Billing Subscription V3 API. This field is populated
            +     * only if an update QPM subscription threshold request is succeeded.
            +     * 
            + * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The searchQpmThresholdNextUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getSearchQpmThresholdNextUpdateTime() { + return searchQpmThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : searchQpmThresholdNextUpdateTime_; + } + + /** + * + * + *
            +     * Output only. The earliest next update time for the search QPM
            +     * subscription threshold. This is based on the next_update_time returned by
            +     * the underlying Cloud Billing Subscription V3 API. This field is populated
            +     * only if an update QPM subscription threshold request is succeeded.
            +     * 
            + * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getSearchQpmThresholdNextUpdateTimeOrBuilder() { + return searchQpmThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : searchQpmThresholdNextUpdateTime_; + } + + public static final int INDEXING_CORE_THRESHOLD_NEXT_UPDATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp indexingCoreThresholdNextUpdateTime_; + + /** + * + * + *
            +     * Output only. The earliest next update time for the indexing core
            +     * subscription threshold. This is based on the next_update_time returned by
            +     * the underlying Cloud Billing Subscription V3 API. This field is populated
            +     * only if an update indexing core subscription threshold
            +     * request is succeeded.
            +     * 
            + * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the indexingCoreThresholdNextUpdateTime field is set. + */ + @java.lang.Override + public boolean hasIndexingCoreThresholdNextUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Output only. The earliest next update time for the indexing core
            +     * subscription threshold. This is based on the next_update_time returned by
            +     * the underlying Cloud Billing Subscription V3 API. This field is populated
            +     * only if an update indexing core subscription threshold
            +     * request is succeeded.
            +     * 
            + * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The indexingCoreThresholdNextUpdateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getIndexingCoreThresholdNextUpdateTime() { + return indexingCoreThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : indexingCoreThresholdNextUpdateTime_; + } + + /** + * + * + *
            +     * Output only. The earliest next update time for the indexing core
            +     * subscription threshold. This is based on the next_update_time returned by
            +     * the underlying Cloud Billing Subscription V3 API. This field is populated
            +     * only if an update indexing core subscription threshold
            +     * request is succeeded.
            +     * 
            + * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder + getIndexingCoreThresholdNextUpdateTimeOrBuilder() { + return indexingCoreThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : indexingCoreThresholdNextUpdateTime_; + } + + public static final int UPDATE_TYPE_FIELD_NUMBER = 7; + private int updateType_ = 0; + + /** + * + * + *
            +     * Output only. The type of update performed in this operation.
            +     * This field is populated in the response of UpdateProject.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType update_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for updateType. + */ + @java.lang.Override + public int getUpdateTypeValue() { + return updateType_; + } + + /** + * + * + *
            +     * Output only. The type of update performed in this operation.
            +     * This field is populated in the response of UpdateProject.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType update_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + getUpdateType() { + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType result = + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + .forNumber(updateType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + .UNRECOGNIZED + : result; + } + + public static final int AGENT_SEARCH_TOKEN_SUBSCRIPTION_STATUSES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus> + agentSearchTokenSubscriptionStatuses_; + + /** + * + * + *
            +     * Output only. Per-model Agent Search TPM subscription status.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus> + getAgentSearchTokenSubscriptionStatusesList() { + return agentSearchTokenSubscriptionStatuses_; + } + + /** + * + * + *
            +     * Output only. Per-model Agent Search TPM subscription status.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder> + getAgentSearchTokenSubscriptionStatusesOrBuilderList() { + return agentSearchTokenSubscriptionStatuses_; + } + + /** + * + * + *
            +     * Output only. Per-model Agent Search TPM subscription status.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getAgentSearchTokenSubscriptionStatusesCount() { + return agentSearchTokenSubscriptionStatuses_.size(); + } + + /** + * + * + *
            +     * Output only. Per-model Agent Search TPM subscription status.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + getAgentSearchTokenSubscriptionStatuses(int index) { + return agentSearchTokenSubscriptionStatuses_.get(index); + } + + /** + * + * + *
            +     * Output only. Per-model Agent Search TPM subscription status.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder + getAgentSearchTokenSubscriptionStatusesOrBuilder(int index) { + return agentSearchTokenSubscriptionStatuses_.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 (effectiveSearchQpmThreshold_ != 0L) { + output.writeInt64(1, effectiveSearchQpmThreshold_); + } + if (effectiveIndexingCoreThreshold_ != 0L) { + output.writeInt64(2, effectiveIndexingCoreThreshold_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getTerminateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getSearchQpmThresholdNextUpdateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getIndexingCoreThresholdNextUpdateTime()); + } + if (updateType_ + != com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + .UPDATE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, updateType_); + } + for (int i = 0; i < agentSearchTokenSubscriptionStatuses_.size(); i++) { + output.writeMessage(8, agentSearchTokenSubscriptionStatuses_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (effectiveSearchQpmThreshold_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(1, effectiveSearchQpmThreshold_); + } + if (effectiveIndexingCoreThreshold_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 2, effectiveIndexingCoreThreshold_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getTerminateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getSearchQpmThresholdNextUpdateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getIndexingCoreThresholdNextUpdateTime()); + } + if (updateType_ + != com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + .UPDATE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, updateType_); + } + for (int i = 0; i < agentSearchTokenSubscriptionStatuses_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, agentSearchTokenSubscriptionStatuses_.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.v1beta.Project.ConfigurableBillingStatus)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus other = + (com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus) obj; + + if (getEffectiveSearchQpmThreshold() != other.getEffectiveSearchQpmThreshold()) return false; + if (getEffectiveIndexingCoreThreshold() != other.getEffectiveIndexingCoreThreshold()) + return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasTerminateTime() != other.hasTerminateTime()) return false; + if (hasTerminateTime()) { + if (!getTerminateTime().equals(other.getTerminateTime())) return false; + } + if (hasSearchQpmThresholdNextUpdateTime() != other.hasSearchQpmThresholdNextUpdateTime()) + return false; + if (hasSearchQpmThresholdNextUpdateTime()) { + if (!getSearchQpmThresholdNextUpdateTime() + .equals(other.getSearchQpmThresholdNextUpdateTime())) return false; + } + if (hasIndexingCoreThresholdNextUpdateTime() + != other.hasIndexingCoreThresholdNextUpdateTime()) return false; + if (hasIndexingCoreThresholdNextUpdateTime()) { + if (!getIndexingCoreThresholdNextUpdateTime() + .equals(other.getIndexingCoreThresholdNextUpdateTime())) return false; + } + if (updateType_ != other.updateType_) return false; + if (!getAgentSearchTokenSubscriptionStatusesList() + .equals(other.getAgentSearchTokenSubscriptionStatusesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + EFFECTIVE_SEARCH_QPM_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEffectiveSearchQpmThreshold()); + hash = (37 * hash) + EFFECTIVE_INDEXING_CORE_THRESHOLD_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashLong(getEffectiveIndexingCoreThreshold()); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasTerminateTime()) { + hash = (37 * hash) + TERMINATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getTerminateTime().hashCode(); + } + if (hasSearchQpmThresholdNextUpdateTime()) { + hash = (37 * hash) + SEARCH_QPM_THRESHOLD_NEXT_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getSearchQpmThresholdNextUpdateTime().hashCode(); + } + if (hasIndexingCoreThresholdNextUpdateTime()) { + hash = (37 * hash) + INDEXING_CORE_THRESHOLD_NEXT_UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getIndexingCoreThresholdNextUpdateTime().hashCode(); + } + hash = (37 * hash) + UPDATE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + updateType_; + if (getAgentSearchTokenSubscriptionStatusesCount() > 0) { + hash = (37 * hash) + AGENT_SEARCH_TOKEN_SUBSCRIPTION_STATUSES_FIELD_NUMBER; + hash = (53 * hash) + getAgentSearchTokenSubscriptionStatusesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + 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.v1beta.Project.ConfigurableBillingStatus + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + parseFrom( + 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.v1beta.Project.ConfigurableBillingStatus + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Represents the currently effective configurable billing parameters.
            +     * These values are derived from the customer's subscription history stored
            +     * internally and reflect the thresholds actively being used for billing
            +     * purposes at the time of the GetProject call. This includes the start_time
            +     * of the subscription and may differ from the values in
            +     * `customer_provided_config` due to billing rules
            +     * (e.g., scale-downs taking effect only at the start of a new month).
            +     * We also include the update type to indicate the type of update performed on
            +     * the configurable billing configuration in the UpdateProject operation.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus) + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.class, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStartTimeFieldBuilder(); + internalGetTerminateTimeFieldBuilder(); + internalGetSearchQpmThresholdNextUpdateTimeFieldBuilder(); + internalGetIndexingCoreThresholdNextUpdateTimeFieldBuilder(); + internalGetAgentSearchTokenSubscriptionStatusesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + effectiveSearchQpmThreshold_ = 0L; + effectiveIndexingCoreThreshold_ = 0L; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + terminateTime_ = null; + if (terminateTimeBuilder_ != null) { + terminateTimeBuilder_.dispose(); + terminateTimeBuilder_ = null; + } + searchQpmThresholdNextUpdateTime_ = null; + if (searchQpmThresholdNextUpdateTimeBuilder_ != null) { + searchQpmThresholdNextUpdateTimeBuilder_.dispose(); + searchQpmThresholdNextUpdateTimeBuilder_ = null; + } + indexingCoreThresholdNextUpdateTime_ = null; + if (indexingCoreThresholdNextUpdateTimeBuilder_ != null) { + indexingCoreThresholdNextUpdateTimeBuilder_.dispose(); + indexingCoreThresholdNextUpdateTimeBuilder_ = null; + } + updateType_ = 0; + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + agentSearchTokenSubscriptionStatuses_ = java.util.Collections.emptyList(); + } else { + agentSearchTokenSubscriptionStatuses_ = null; + agentSearchTokenSubscriptionStatusesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus build() { + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + buildPartial() { + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus result = + new com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus result) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + agentSearchTokenSubscriptionStatuses_ = + java.util.Collections.unmodifiableList(agentSearchTokenSubscriptionStatuses_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.agentSearchTokenSubscriptionStatuses_ = agentSearchTokenSubscriptionStatuses_; + } else { + result.agentSearchTokenSubscriptionStatuses_ = + agentSearchTokenSubscriptionStatusesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.effectiveSearchQpmThreshold_ = effectiveSearchQpmThreshold_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.effectiveIndexingCoreThreshold_ = effectiveIndexingCoreThreshold_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.terminateTime_ = + terminateTimeBuilder_ == null ? terminateTime_ : terminateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.searchQpmThresholdNextUpdateTime_ = + searchQpmThresholdNextUpdateTimeBuilder_ == null + ? searchQpmThresholdNextUpdateTime_ + : searchQpmThresholdNextUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.indexingCoreThresholdNextUpdateTime_ = + indexingCoreThresholdNextUpdateTimeBuilder_ == null + ? indexingCoreThresholdNextUpdateTime_ + : indexingCoreThresholdNextUpdateTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateType_ = updateType_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus other) { + if (other + == com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .getDefaultInstance()) return this; + if (other.getEffectiveSearchQpmThreshold() != 0L) { + setEffectiveSearchQpmThreshold(other.getEffectiveSearchQpmThreshold()); + } + if (other.getEffectiveIndexingCoreThreshold() != 0L) { + setEffectiveIndexingCoreThreshold(other.getEffectiveIndexingCoreThreshold()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasTerminateTime()) { + mergeTerminateTime(other.getTerminateTime()); + } + if (other.hasSearchQpmThresholdNextUpdateTime()) { + mergeSearchQpmThresholdNextUpdateTime(other.getSearchQpmThresholdNextUpdateTime()); + } + if (other.hasIndexingCoreThresholdNextUpdateTime()) { + mergeIndexingCoreThresholdNextUpdateTime(other.getIndexingCoreThresholdNextUpdateTime()); + } + if (other.updateType_ != 0) { + setUpdateTypeValue(other.getUpdateTypeValue()); + } + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + if (!other.agentSearchTokenSubscriptionStatuses_.isEmpty()) { + if (agentSearchTokenSubscriptionStatuses_.isEmpty()) { + agentSearchTokenSubscriptionStatuses_ = other.agentSearchTokenSubscriptionStatuses_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + agentSearchTokenSubscriptionStatuses_.addAll( + other.agentSearchTokenSubscriptionStatuses_); + } + onChanged(); + } + } else { + if (!other.agentSearchTokenSubscriptionStatuses_.isEmpty()) { + if (agentSearchTokenSubscriptionStatusesBuilder_.isEmpty()) { + agentSearchTokenSubscriptionStatusesBuilder_.dispose(); + agentSearchTokenSubscriptionStatusesBuilder_ = null; + agentSearchTokenSubscriptionStatuses_ = other.agentSearchTokenSubscriptionStatuses_; + bitField0_ = (bitField0_ & ~0x00000080); + agentSearchTokenSubscriptionStatusesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAgentSearchTokenSubscriptionStatusesFieldBuilder() + : null; + } else { + agentSearchTokenSubscriptionStatusesBuilder_.addAllMessages( + other.agentSearchTokenSubscriptionStatuses_); + } + } + } + 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: + { + effectiveSearchQpmThreshold_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + effectiveIndexingCoreThreshold_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetTerminateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetSearchQpmThresholdNextUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetIndexingCoreThresholdNextUpdateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + updateType_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.Project + .ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus + .parser(), + extensionRegistry); + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + agentSearchTokenSubscriptionStatuses_.add(m); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.addMessage(m); + } + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private long effectiveSearchQpmThreshold_; + + /** + * + * + *
            +       * Optional. The currently effective Search QPM threshold in queries per
            +       * minute. This is the threshold against which QPM usage is compared for
            +       * overage calculations.
            +       * 
            + * + * int64 effective_search_qpm_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The effectiveSearchQpmThreshold. + */ + @java.lang.Override + public long getEffectiveSearchQpmThreshold() { + return effectiveSearchQpmThreshold_; + } + + /** + * + * + *
            +       * Optional. The currently effective Search QPM threshold in queries per
            +       * minute. This is the threshold against which QPM usage is compared for
            +       * overage calculations.
            +       * 
            + * + * int64 effective_search_qpm_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The effectiveSearchQpmThreshold to set. + * @return This builder for chaining. + */ + public Builder setEffectiveSearchQpmThreshold(long value) { + + effectiveSearchQpmThreshold_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The currently effective Search QPM threshold in queries per
            +       * minute. This is the threshold against which QPM usage is compared for
            +       * overage calculations.
            +       * 
            + * + * int64 effective_search_qpm_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEffectiveSearchQpmThreshold() { + bitField0_ = (bitField0_ & ~0x00000001); + effectiveSearchQpmThreshold_ = 0L; + onChanged(); + return this; + } + + private long effectiveIndexingCoreThreshold_; + + /** + * + * + *
            +       * Optional. The currently effective Indexing Core threshold.
            +       * This is the threshold against which Indexing Core usage is compared
            +       * for overage calculations.
            +       * 
            + * + * + * int64 effective_indexing_core_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The effectiveIndexingCoreThreshold. + */ + @java.lang.Override + public long getEffectiveIndexingCoreThreshold() { + return effectiveIndexingCoreThreshold_; + } + + /** + * + * + *
            +       * Optional. The currently effective Indexing Core threshold.
            +       * This is the threshold against which Indexing Core usage is compared
            +       * for overage calculations.
            +       * 
            + * + * + * int64 effective_indexing_core_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The effectiveIndexingCoreThreshold to set. + * @return This builder for chaining. + */ + public Builder setEffectiveIndexingCoreThreshold(long value) { + + effectiveIndexingCoreThreshold_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The currently effective Indexing Core threshold.
            +       * This is the threshold against which Indexing Core usage is compared
            +       * for overage calculations.
            +       * 
            + * + * + * int64 effective_indexing_core_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEffectiveIndexingCoreThreshold() { + bitField0_ = (bitField0_ & ~0x00000002); + effectiveIndexingCoreThreshold_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
            +       * Optional. The start time of the currently active billing subscription.
            +       * 
            + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +       * Optional. The start time of the currently active billing subscription.
            +       * 
            + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @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(); + } + } + + /** + * + * + *
            +       * Optional. The start time of the currently active billing subscription.
            +       * 
            + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The start time of the currently active billing subscription.
            +       * 
            + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The start time of the currently active billing subscription.
            +       * 
            + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. The start time of the currently active billing subscription.
            +       * 
            + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000004); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The start time of the currently active billing subscription.
            +       * 
            + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. The start time of the currently active billing subscription.
            +       * 
            + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : startTime_; + } + } + + /** + * + * + *
            +       * Optional. The start time of the currently active billing subscription.
            +       * 
            + * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp terminateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + terminateTimeBuilder_; + + /** + * + * + *
            +       * Output only. The latest terminate effective time of search qpm and
            +       * indexing core subscriptions.
            +       * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the terminateTime field is set. + */ + public boolean hasTerminateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +       * Output only. The latest terminate effective time of search qpm and
            +       * indexing core subscriptions.
            +       * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The terminateTime. + */ + public com.google.protobuf.Timestamp getTerminateTime() { + if (terminateTimeBuilder_ == null) { + return terminateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminateTime_; + } else { + return terminateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Output only. The latest terminate effective time of search qpm and
            +       * indexing core subscriptions.
            +       * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerminateTime(com.google.protobuf.Timestamp value) { + if (terminateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + terminateTime_ = value; + } else { + terminateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The latest terminate effective time of search qpm and
            +       * indexing core subscriptions.
            +       * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTerminateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (terminateTimeBuilder_ == null) { + terminateTime_ = builderForValue.build(); + } else { + terminateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The latest terminate effective time of search qpm and
            +       * indexing core subscriptions.
            +       * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTerminateTime(com.google.protobuf.Timestamp value) { + if (terminateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && terminateTime_ != null + && terminateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getTerminateTimeBuilder().mergeFrom(value); + } else { + terminateTime_ = value; + } + } else { + terminateTimeBuilder_.mergeFrom(value); + } + if (terminateTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Output only. The latest terminate effective time of search qpm and
            +       * indexing core subscriptions.
            +       * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTerminateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + terminateTime_ = null; + if (terminateTimeBuilder_ != null) { + terminateTimeBuilder_.dispose(); + terminateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The latest terminate effective time of search qpm and
            +       * indexing core subscriptions.
            +       * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getTerminateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetTerminateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Output only. The latest terminate effective time of search qpm and
            +       * indexing core subscriptions.
            +       * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getTerminateTimeOrBuilder() { + if (terminateTimeBuilder_ != null) { + return terminateTimeBuilder_.getMessageOrBuilder(); + } else { + return terminateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : terminateTime_; + } + } + + /** + * + * + *
            +       * Output only. The latest terminate effective time of search qpm and
            +       * indexing core subscriptions.
            +       * 
            + * + * + * .google.protobuf.Timestamp terminate_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetTerminateTimeFieldBuilder() { + if (terminateTimeBuilder_ == null) { + terminateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getTerminateTime(), getParentForChildren(), isClean()); + terminateTime_ = null; + } + return terminateTimeBuilder_; + } + + private com.google.protobuf.Timestamp searchQpmThresholdNextUpdateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + searchQpmThresholdNextUpdateTimeBuilder_; + + /** + * + * + *
            +       * Output only. The earliest next update time for the search QPM
            +       * subscription threshold. This is based on the next_update_time returned by
            +       * the underlying Cloud Billing Subscription V3 API. This field is populated
            +       * only if an update QPM subscription threshold request is succeeded.
            +       * 
            + * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the searchQpmThresholdNextUpdateTime field is set. + */ + public boolean hasSearchQpmThresholdNextUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +       * Output only. The earliest next update time for the search QPM
            +       * subscription threshold. This is based on the next_update_time returned by
            +       * the underlying Cloud Billing Subscription V3 API. This field is populated
            +       * only if an update QPM subscription threshold request is succeeded.
            +       * 
            + * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The searchQpmThresholdNextUpdateTime. + */ + public com.google.protobuf.Timestamp getSearchQpmThresholdNextUpdateTime() { + if (searchQpmThresholdNextUpdateTimeBuilder_ == null) { + return searchQpmThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : searchQpmThresholdNextUpdateTime_; + } else { + return searchQpmThresholdNextUpdateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Output only. The earliest next update time for the search QPM
            +       * subscription threshold. This is based on the next_update_time returned by
            +       * the underlying Cloud Billing Subscription V3 API. This field is populated
            +       * only if an update QPM subscription threshold request is succeeded.
            +       * 
            + * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSearchQpmThresholdNextUpdateTime(com.google.protobuf.Timestamp value) { + if (searchQpmThresholdNextUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchQpmThresholdNextUpdateTime_ = value; + } else { + searchQpmThresholdNextUpdateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The earliest next update time for the search QPM
            +       * subscription threshold. This is based on the next_update_time returned by
            +       * the underlying Cloud Billing Subscription V3 API. This field is populated
            +       * only if an update QPM subscription threshold request is succeeded.
            +       * 
            + * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSearchQpmThresholdNextUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (searchQpmThresholdNextUpdateTimeBuilder_ == null) { + searchQpmThresholdNextUpdateTime_ = builderForValue.build(); + } else { + searchQpmThresholdNextUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The earliest next update time for the search QPM
            +       * subscription threshold. This is based on the next_update_time returned by
            +       * the underlying Cloud Billing Subscription V3 API. This field is populated
            +       * only if an update QPM subscription threshold request is succeeded.
            +       * 
            + * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSearchQpmThresholdNextUpdateTime(com.google.protobuf.Timestamp value) { + if (searchQpmThresholdNextUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && searchQpmThresholdNextUpdateTime_ != null + && searchQpmThresholdNextUpdateTime_ + != com.google.protobuf.Timestamp.getDefaultInstance()) { + getSearchQpmThresholdNextUpdateTimeBuilder().mergeFrom(value); + } else { + searchQpmThresholdNextUpdateTime_ = value; + } + } else { + searchQpmThresholdNextUpdateTimeBuilder_.mergeFrom(value); + } + if (searchQpmThresholdNextUpdateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Output only. The earliest next update time for the search QPM
            +       * subscription threshold. This is based on the next_update_time returned by
            +       * the underlying Cloud Billing Subscription V3 API. This field is populated
            +       * only if an update QPM subscription threshold request is succeeded.
            +       * 
            + * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSearchQpmThresholdNextUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + searchQpmThresholdNextUpdateTime_ = null; + if (searchQpmThresholdNextUpdateTimeBuilder_ != null) { + searchQpmThresholdNextUpdateTimeBuilder_.dispose(); + searchQpmThresholdNextUpdateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The earliest next update time for the search QPM
            +       * subscription threshold. This is based on the next_update_time returned by
            +       * the underlying Cloud Billing Subscription V3 API. This field is populated
            +       * only if an update QPM subscription threshold request is succeeded.
            +       * 
            + * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getSearchQpmThresholdNextUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetSearchQpmThresholdNextUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Output only. The earliest next update time for the search QPM
            +       * subscription threshold. This is based on the next_update_time returned by
            +       * the underlying Cloud Billing Subscription V3 API. This field is populated
            +       * only if an update QPM subscription threshold request is succeeded.
            +       * 
            + * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getSearchQpmThresholdNextUpdateTimeOrBuilder() { + if (searchQpmThresholdNextUpdateTimeBuilder_ != null) { + return searchQpmThresholdNextUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return searchQpmThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : searchQpmThresholdNextUpdateTime_; + } + } + + /** + * + * + *
            +       * Output only. The earliest next update time for the search QPM
            +       * subscription threshold. This is based on the next_update_time returned by
            +       * the underlying Cloud Billing Subscription V3 API. This field is populated
            +       * only if an update QPM subscription threshold request is succeeded.
            +       * 
            + * + * + * .google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetSearchQpmThresholdNextUpdateTimeFieldBuilder() { + if (searchQpmThresholdNextUpdateTimeBuilder_ == null) { + searchQpmThresholdNextUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getSearchQpmThresholdNextUpdateTime(), getParentForChildren(), isClean()); + searchQpmThresholdNextUpdateTime_ = null; + } + return searchQpmThresholdNextUpdateTimeBuilder_; + } + + private com.google.protobuf.Timestamp indexingCoreThresholdNextUpdateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + indexingCoreThresholdNextUpdateTimeBuilder_; + + /** + * + * + *
            +       * Output only. The earliest next update time for the indexing core
            +       * subscription threshold. This is based on the next_update_time returned by
            +       * the underlying Cloud Billing Subscription V3 API. This field is populated
            +       * only if an update indexing core subscription threshold
            +       * request is succeeded.
            +       * 
            + * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the indexingCoreThresholdNextUpdateTime field is set. + */ + public boolean hasIndexingCoreThresholdNextUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +       * Output only. The earliest next update time for the indexing core
            +       * subscription threshold. This is based on the next_update_time returned by
            +       * the underlying Cloud Billing Subscription V3 API. This field is populated
            +       * only if an update indexing core subscription threshold
            +       * request is succeeded.
            +       * 
            + * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The indexingCoreThresholdNextUpdateTime. + */ + public com.google.protobuf.Timestamp getIndexingCoreThresholdNextUpdateTime() { + if (indexingCoreThresholdNextUpdateTimeBuilder_ == null) { + return indexingCoreThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : indexingCoreThresholdNextUpdateTime_; + } else { + return indexingCoreThresholdNextUpdateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Output only. The earliest next update time for the indexing core
            +       * subscription threshold. This is based on the next_update_time returned by
            +       * the underlying Cloud Billing Subscription V3 API. This field is populated
            +       * only if an update indexing core subscription threshold
            +       * request is succeeded.
            +       * 
            + * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIndexingCoreThresholdNextUpdateTime(com.google.protobuf.Timestamp value) { + if (indexingCoreThresholdNextUpdateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + indexingCoreThresholdNextUpdateTime_ = value; + } else { + indexingCoreThresholdNextUpdateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The earliest next update time for the indexing core
            +       * subscription threshold. This is based on the next_update_time returned by
            +       * the underlying Cloud Billing Subscription V3 API. This field is populated
            +       * only if an update indexing core subscription threshold
            +       * request is succeeded.
            +       * 
            + * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setIndexingCoreThresholdNextUpdateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (indexingCoreThresholdNextUpdateTimeBuilder_ == null) { + indexingCoreThresholdNextUpdateTime_ = builderForValue.build(); + } else { + indexingCoreThresholdNextUpdateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The earliest next update time for the indexing core
            +       * subscription threshold. This is based on the next_update_time returned by
            +       * the underlying Cloud Billing Subscription V3 API. This field is populated
            +       * only if an update indexing core subscription threshold
            +       * request is succeeded.
            +       * 
            + * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeIndexingCoreThresholdNextUpdateTime(com.google.protobuf.Timestamp value) { + if (indexingCoreThresholdNextUpdateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && indexingCoreThresholdNextUpdateTime_ != null + && indexingCoreThresholdNextUpdateTime_ + != com.google.protobuf.Timestamp.getDefaultInstance()) { + getIndexingCoreThresholdNextUpdateTimeBuilder().mergeFrom(value); + } else { + indexingCoreThresholdNextUpdateTime_ = value; + } + } else { + indexingCoreThresholdNextUpdateTimeBuilder_.mergeFrom(value); + } + if (indexingCoreThresholdNextUpdateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Output only. The earliest next update time for the indexing core
            +       * subscription threshold. This is based on the next_update_time returned by
            +       * the underlying Cloud Billing Subscription V3 API. This field is populated
            +       * only if an update indexing core subscription threshold
            +       * request is succeeded.
            +       * 
            + * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearIndexingCoreThresholdNextUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + indexingCoreThresholdNextUpdateTime_ = null; + if (indexingCoreThresholdNextUpdateTimeBuilder_ != null) { + indexingCoreThresholdNextUpdateTimeBuilder_.dispose(); + indexingCoreThresholdNextUpdateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The earliest next update time for the indexing core
            +       * subscription threshold. This is based on the next_update_time returned by
            +       * the underlying Cloud Billing Subscription V3 API. This field is populated
            +       * only if an update indexing core subscription threshold
            +       * request is succeeded.
            +       * 
            + * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getIndexingCoreThresholdNextUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetIndexingCoreThresholdNextUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Output only. The earliest next update time for the indexing core
            +       * subscription threshold. This is based on the next_update_time returned by
            +       * the underlying Cloud Billing Subscription V3 API. This field is populated
            +       * only if an update indexing core subscription threshold
            +       * request is succeeded.
            +       * 
            + * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder + getIndexingCoreThresholdNextUpdateTimeOrBuilder() { + if (indexingCoreThresholdNextUpdateTimeBuilder_ != null) { + return indexingCoreThresholdNextUpdateTimeBuilder_.getMessageOrBuilder(); + } else { + return indexingCoreThresholdNextUpdateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : indexingCoreThresholdNextUpdateTime_; + } + } + + /** + * + * + *
            +       * Output only. The earliest next update time for the indexing core
            +       * subscription threshold. This is based on the next_update_time returned by
            +       * the underlying Cloud Billing Subscription V3 API. This field is populated
            +       * only if an update indexing core subscription threshold
            +       * request is succeeded.
            +       * 
            + * + * + * .google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetIndexingCoreThresholdNextUpdateTimeFieldBuilder() { + if (indexingCoreThresholdNextUpdateTimeBuilder_ == null) { + indexingCoreThresholdNextUpdateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getIndexingCoreThresholdNextUpdateTime(), getParentForChildren(), isClean()); + indexingCoreThresholdNextUpdateTime_ = null; + } + return indexingCoreThresholdNextUpdateTimeBuilder_; + } + + private int updateType_ = 0; + + /** + * + * + *
            +       * Output only. The type of update performed in this operation.
            +       * This field is populated in the response of UpdateProject.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType update_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for updateType. + */ + @java.lang.Override + public int getUpdateTypeValue() { + return updateType_; + } + + /** + * + * + *
            +       * Output only. The type of update performed in this operation.
            +       * This field is populated in the response of UpdateProject.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType update_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for updateType to set. + * @return This builder for chaining. + */ + public Builder setUpdateTypeValue(int value) { + updateType_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The type of update performed in this operation.
            +       * This field is populated in the response of UpdateProject.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType update_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + getUpdateType() { + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + result = + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + .forNumber(updateType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Output only. The type of update performed in this operation.
            +       * This field is populated in the response of UpdateProject.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType update_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The updateType to set. + * @return This builder for chaining. + */ + public Builder setUpdateType( + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + updateType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The type of update performed in this operation.
            +       * This field is populated in the response of UpdateProject.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.UpdateType update_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearUpdateType() { + bitField0_ = (bitField0_ & ~0x00000040); + updateType_ = 0; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus> + agentSearchTokenSubscriptionStatuses_ = java.util.Collections.emptyList(); + + private void ensureAgentSearchTokenSubscriptionStatusesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + agentSearchTokenSubscriptionStatuses_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus>(agentSearchTokenSubscriptionStatuses_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder> + agentSearchTokenSubscriptionStatusesBuilder_; + + /** + * + * + *
            +       * Output only. Per-model Agent Search TPM subscription status.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus> + getAgentSearchTokenSubscriptionStatusesList() { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + return java.util.Collections.unmodifiableList(agentSearchTokenSubscriptionStatuses_); + } else { + return agentSearchTokenSubscriptionStatusesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +       * Output only. Per-model Agent Search TPM subscription status.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getAgentSearchTokenSubscriptionStatusesCount() { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + return agentSearchTokenSubscriptionStatuses_.size(); + } else { + return agentSearchTokenSubscriptionStatusesBuilder_.getCount(); + } + } + + /** + * + * + *
            +       * Output only. Per-model Agent Search TPM subscription status.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + getAgentSearchTokenSubscriptionStatuses(int index) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + return agentSearchTokenSubscriptionStatuses_.get(index); + } else { + return agentSearchTokenSubscriptionStatusesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +       * Output only. Per-model Agent Search TPM subscription status.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAgentSearchTokenSubscriptionStatuses( + int index, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + value) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + agentSearchTokenSubscriptionStatuses_.set(index, value); + onChanged(); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Output only. Per-model Agent Search TPM subscription status.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAgentSearchTokenSubscriptionStatuses( + int index, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder + builderForValue) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + agentSearchTokenSubscriptionStatuses_.set(index, builderForValue.build()); + onChanged(); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Output only. Per-model Agent Search TPM subscription status.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAgentSearchTokenSubscriptionStatuses( + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + value) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + agentSearchTokenSubscriptionStatuses_.add(value); + onChanged(); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +       * Output only. Per-model Agent Search TPM subscription status.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAgentSearchTokenSubscriptionStatuses( + int index, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus + value) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + agentSearchTokenSubscriptionStatuses_.add(index, value); + onChanged(); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Output only. Per-model Agent Search TPM subscription status.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAgentSearchTokenSubscriptionStatuses( + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder + builderForValue) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + agentSearchTokenSubscriptionStatuses_.add(builderForValue.build()); + onChanged(); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Output only. Per-model Agent Search TPM subscription status.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAgentSearchTokenSubscriptionStatuses( + int index, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder + builderForValue) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + agentSearchTokenSubscriptionStatuses_.add(index, builderForValue.build()); + onChanged(); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Output only. Per-model Agent Search TPM subscription status.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllAgentSearchTokenSubscriptionStatuses( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus> + values) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, agentSearchTokenSubscriptionStatuses_); + onChanged(); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * Output only. Per-model Agent Search TPM subscription status.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAgentSearchTokenSubscriptionStatuses() { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + agentSearchTokenSubscriptionStatuses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Output only. Per-model Agent Search TPM subscription status.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAgentSearchTokenSubscriptionStatuses(int index) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + ensureAgentSearchTokenSubscriptionStatusesIsMutable(); + agentSearchTokenSubscriptionStatuses_.remove(index); + onChanged(); + } else { + agentSearchTokenSubscriptionStatusesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * Output only. Per-model Agent Search TPM subscription status.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder + getAgentSearchTokenSubscriptionStatusesBuilder(int index) { + return internalGetAgentSearchTokenSubscriptionStatusesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * Output only. Per-model Agent Search TPM subscription status.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder + getAgentSearchTokenSubscriptionStatusesOrBuilder(int index) { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + return agentSearchTokenSubscriptionStatuses_.get(index); + } else { + return agentSearchTokenSubscriptionStatusesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * Output only. Per-model Agent Search TPM subscription status.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder> + getAgentSearchTokenSubscriptionStatusesOrBuilderList() { + if (agentSearchTokenSubscriptionStatusesBuilder_ != null) { + return agentSearchTokenSubscriptionStatusesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(agentSearchTokenSubscriptionStatuses_); + } + } + + /** + * + * + *
            +       * Output only. Per-model Agent Search TPM subscription status.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder + addAgentSearchTokenSubscriptionStatusesBuilder() { + return internalGetAgentSearchTokenSubscriptionStatusesFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.getDefaultInstance()); + } + + /** + * + * + *
            +       * Output only. Per-model Agent Search TPM subscription status.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder + addAgentSearchTokenSubscriptionStatusesBuilder(int index) { + return internalGetAgentSearchTokenSubscriptionStatusesFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.getDefaultInstance()); + } + + /** + * + * + *
            +       * Output only. Per-model Agent Search TPM subscription status.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.AgentSearchTokenSubscriptionStatus agent_search_token_subscription_statuses = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder> + getAgentSearchTokenSubscriptionStatusesBuilderList() { + return internalGetAgentSearchTokenSubscriptionStatusesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder> + internalGetAgentSearchTokenSubscriptionStatusesFieldBuilder() { + if (agentSearchTokenSubscriptionStatusesBuilder_ == null) { + agentSearchTokenSubscriptionStatusesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatus.Builder, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .AgentSearchTokenSubscriptionStatusOrBuilder>( + agentSearchTokenSubscriptionStatuses_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + agentSearchTokenSubscriptionStatuses_ = null; + } + return agentSearchTokenSubscriptionStatusesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus) + private static final com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus(); + } + + public static com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfigurableBillingStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.Project.ConfigurableBillingStatus + 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. Full resource name of the project, for example
            +   * `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]; + * + * @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. Full resource name of the project, for example
            +   * `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]; + * + * @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 CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. The timestamp when this project is created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 2 [(.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 timestamp when this project is created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. The timestamp when this project is created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 2 [(.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 PROVISION_COMPLETION_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp provisionCompletionTime_; + + /** + * + * + *
            +   * Output only. The timestamp when this project is successfully provisioned.
            +   * Empty value means this project is still provisioning and is not ready for
            +   * use.
            +   * 
            + * + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the provisionCompletionTime field is set. + */ + @java.lang.Override + public boolean hasProvisionCompletionTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. The timestamp when this project is successfully provisioned.
            +   * Empty value means this project is still provisioning and is not ready for
            +   * use.
            +   * 
            + * + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The provisionCompletionTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getProvisionCompletionTime() { + return provisionCompletionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : provisionCompletionTime_; + } + + /** + * + * + *
            +   * Output only. The timestamp when this project is successfully provisioned.
            +   * Empty value means this project is still provisioning and is not ready for
            +   * use.
            +   * 
            + * + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getProvisionCompletionTimeOrBuilder() { + return provisionCompletionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : provisionCompletionTime_; + } + + public static final int SERVICE_TERMS_MAP_FIELD_NUMBER = 4; + + private static final class ServiceTermsMapDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_ServiceTermsMapEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> + serviceTermsMap_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> + internalGetServiceTermsMap() { + if (serviceTermsMap_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ServiceTermsMapDefaultEntryHolder.defaultEntry); + } + return serviceTermsMap_; + } + + public int getServiceTermsMapCount() { + return internalGetServiceTermsMap().getMap().size(); + } + + /** + * + * + *
            +   * Output only. A map of terms of services. The key is the `id` of
            +   * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsServiceTermsMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetServiceTermsMap().getMap().containsKey(key); + } + + /** Use {@link #getServiceTermsMapMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> + getServiceTermsMap() { + return getServiceTermsMapMap(); + } + + /** + * + * + *
            +   * Output only. A map of terms of services. The key is the `id` of
            +   * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> + getServiceTermsMapMap() { + return internalGetServiceTermsMap().getMap(); + } + + /** + * + * + *
            +   * Output only. A map of terms of services. The key is the `id` of
            +   * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms + getServiceTermsMapOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetServiceTermsMap().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Output only. A map of terms of services. The key is the `id` of
            +   * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
            +   * 
            + * + * + * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms getServiceTermsMapOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetServiceTermsMap().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CUSTOMER_PROVIDED_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + customerProvidedConfig_; + + /** + * + * + *
            +   * Optional. Customer provided configurations.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customerProvidedConfig field is set. + */ + @java.lang.Override + public boolean hasCustomerProvidedConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Optional. Customer provided configurations.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customerProvidedConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + getCustomerProvidedConfig() { + return customerProvidedConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .getDefaultInstance() + : customerProvidedConfig_; + } + + /** + * + * + *
            +   * Optional. Customer provided configurations.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfigOrBuilder + getCustomerProvidedConfigOrBuilder() { + return customerProvidedConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .getDefaultInstance() + : customerProvidedConfig_; + } + + public static final int CONFIGURABLE_BILLING_STATUS_FIELD_NUMBER = 10; + private com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + configurableBillingStatus_; + + /** + * + * + *
            +   * Output only. The current status of the project's configurable billing.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the configurableBillingStatus field is set. + */ + @java.lang.Override + public boolean hasConfigurableBillingStatus() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Output only. The current status of the project's configurable billing.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The configurableBillingStatus. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + getConfigurableBillingStatus() { + return configurableBillingStatus_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .getDefaultInstance() + : configurableBillingStatus_; + } + + /** + * + * + *
            +   * Output only. The current status of the project's configurable billing.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatusOrBuilder + getConfigurableBillingStatusOrBuilder() { + return configurableBillingStatus_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .getDefaultInstance() + : configurableBillingStatus_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getProvisionCompletionTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetServiceTermsMap(), ServiceTermsMapDefaultEntryHolder.defaultEntry, 4); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getCustomerProvidedConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(10, getConfigurableBillingStatus()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProvisionCompletionTime()); + } + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> + entry : internalGetServiceTermsMap().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> + serviceTermsMap__ = + ServiceTermsMapDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, serviceTermsMap__); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCustomerProvidedConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, getConfigurableBillingStatus()); + } + 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.v1beta.Project)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.Project other = + (com.google.cloud.discoveryengine.v1beta.Project) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasProvisionCompletionTime() != other.hasProvisionCompletionTime()) return false; + if (hasProvisionCompletionTime()) { + if (!getProvisionCompletionTime().equals(other.getProvisionCompletionTime())) return false; + } + if (!internalGetServiceTermsMap().equals(other.internalGetServiceTermsMap())) return false; + if (hasCustomerProvidedConfig() != other.hasCustomerProvidedConfig()) return false; + if (hasCustomerProvidedConfig()) { + if (!getCustomerProvidedConfig().equals(other.getCustomerProvidedConfig())) return false; + } + if (hasConfigurableBillingStatus() != other.hasConfigurableBillingStatus()) return false; + if (hasConfigurableBillingStatus()) { + if (!getConfigurableBillingStatus().equals(other.getConfigurableBillingStatus())) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasProvisionCompletionTime()) { + hash = (37 * hash) + PROVISION_COMPLETION_TIME_FIELD_NUMBER; + hash = (53 * hash) + getProvisionCompletionTime().hashCode(); + } + if (!internalGetServiceTermsMap().getMap().isEmpty()) { + hash = (37 * hash) + SERVICE_TERMS_MAP_FIELD_NUMBER; + hash = (53 * hash) + internalGetServiceTermsMap().hashCode(); + } + if (hasCustomerProvidedConfig()) { + hash = (37 * hash) + CUSTOMER_PROVIDED_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCustomerProvidedConfig().hashCode(); + } + if (hasConfigurableBillingStatus()) { + hash = (37 * hash) + CONFIGURABLE_BILLING_STATUS_FIELD_NUMBER; + hash = (53 * hash) + getConfigurableBillingStatus().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.Project parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project 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.v1beta.Project parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project parseFrom( + 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.v1beta.Project parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.Project parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.Project parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.Project parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.Project prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Metadata and configurations for a Google Cloud project in the service.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.Project} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.Project) + com.google.cloud.discoveryengine.v1beta.ProjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetServiceTermsMap(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableServiceTermsMap(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.Project.class, + com.google.cloud.discoveryengine.v1beta.Project.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.Project.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetProvisionCompletionTimeFieldBuilder(); + internalGetCustomerProvidedConfigFieldBuilder(); + internalGetConfigurableBillingStatusFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + provisionCompletionTime_ = null; + if (provisionCompletionTimeBuilder_ != null) { + provisionCompletionTimeBuilder_.dispose(); + provisionCompletionTimeBuilder_ = null; + } + internalGetMutableServiceTermsMap().clear(); + customerProvidedConfig_ = null; + if (customerProvidedConfigBuilder_ != null) { + customerProvidedConfigBuilder_.dispose(); + customerProvidedConfigBuilder_ = null; + } + configurableBillingStatus_ = null; + if (configurableBillingStatusBuilder_ != null) { + configurableBillingStatusBuilder_.dispose(); + configurableBillingStatusBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ProjectProto + .internal_static_google_cloud_discoveryengine_v1beta_Project_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.Project.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project build() { + com.google.cloud.discoveryengine.v1beta.Project result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project buildPartial() { + com.google.cloud.discoveryengine.v1beta.Project result = + new com.google.cloud.discoveryengine.v1beta.Project(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Project result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.provisionCompletionTime_ = + provisionCompletionTimeBuilder_ == null + ? provisionCompletionTime_ + : provisionCompletionTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serviceTermsMap_ = + internalGetServiceTermsMap().build(ServiceTermsMapDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.customerProvidedConfig_ = + customerProvidedConfigBuilder_ == null + ? customerProvidedConfig_ + : customerProvidedConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.configurableBillingStatus_ = + configurableBillingStatusBuilder_ == null + ? configurableBillingStatus_ + : configurableBillingStatusBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.Project) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.Project) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Project other) { + if (other == com.google.cloud.discoveryengine.v1beta.Project.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasProvisionCompletionTime()) { + mergeProvisionCompletionTime(other.getProvisionCompletionTime()); + } + internalGetMutableServiceTermsMap().mergeFrom(other.internalGetServiceTermsMap()); + bitField0_ |= 0x00000008; + if (other.hasCustomerProvidedConfig()) { + mergeCustomerProvidedConfig(other.getCustomerProvidedConfig()); + } + if (other.hasConfigurableBillingStatus()) { + mergeConfigurableBillingStatus(other.getConfigurableBillingStatus()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetProvisionCompletionTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> + serviceTermsMap__ = + input.readMessage( + ServiceTermsMapDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableServiceTermsMap() + .ensureBuilderMap() + .put(serviceTermsMap__.getKey(), serviceTermsMap__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 50: + { + input.readMessage( + internalGetCustomerProvidedConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 82: + { + input.readMessage( + internalGetConfigurableBillingStatusFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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_ = ""; + + /** + * + * + *
            +     * Output only. Full resource name of the project, for example
            +     * `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]; + * + * @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. Full resource name of the project, for example
            +     * `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]; + * + * @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. Full resource name of the project, for example
            +     * `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]; + * + * @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; } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetServiceTermsMap(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } + /** + * + * + *
            +     * Output only. Full resource name of the project, for example
            +     * `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]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetMutableServiceTermsMap(); - default: - throw new RuntimeException("Invalid map field number: " + number); + /** + * + * + *
            +     * Output only. Full resource name of the project, for example
            +     * `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]; + * + * @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 - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.ProjectProto - .internal_static_google_cloud_discoveryengine_v1beta_Project_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.Project.class, - com.google.cloud.discoveryengine.v1beta.Project.Builder.class); + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. The timestamp when this project is created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); } - // Construct using com.google.cloud.discoveryengine.v1beta.Project.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + * + * + *
            +     * Output only. The timestamp when this project is created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 2 [(.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(); + } } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * + * + *
            +     * Output only. The timestamp when this project is created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetCreateTimeFieldBuilder(); - internalGetProvisionCompletionTimeFieldBuilder(); + /** + * + * + *
            +     * Output only. The timestamp when this project is created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; + /** + * + * + *
            +     * Output only. The timestamp when this project is created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp when this project is created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } - provisionCompletionTime_ = null; - if (provisionCompletionTimeBuilder_ != null) { - provisionCompletionTimeBuilder_.dispose(); - provisionCompletionTimeBuilder_ = null; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp when this project is created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The timestamp when this project is created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } - internalGetMutableServiceTermsMap().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.ProjectProto - .internal_static_google_cloud_discoveryengine_v1beta_Project_descriptor; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Project getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.Project.getDefaultInstance(); } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Project build() { - com.google.cloud.discoveryengine.v1beta.Project result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
            +     * Output only. The timestamp when this project is created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; } - return result; + return createTimeBuilder_; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Project buildPartial() { - com.google.cloud.discoveryengine.v1beta.Project result = - new com.google.cloud.discoveryengine.v1beta.Project(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + private com.google.protobuf.Timestamp provisionCompletionTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + provisionCompletionTimeBuilder_; - private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Project result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.provisionCompletionTime_ = - provisionCompletionTimeBuilder_ == null - ? provisionCompletionTime_ - : provisionCompletionTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.serviceTermsMap_ = - internalGetServiceTermsMap().build(ServiceTermsMapDefaultEntryHolder.defaultEntry); - } - result.bitField0_ |= to_bitField0_; + /** + * + * + *
            +     * Output only. The timestamp when this project is successfully provisioned.
            +     * Empty value means this project is still provisioning and is not ready for
            +     * use.
            +     * 
            + * + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the provisionCompletionTime field is set. + */ + public boolean hasProvisionCompletionTime() { + return ((bitField0_ & 0x00000004) != 0); } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.Project) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.Project) other); + /** + * + * + *
            +     * Output only. The timestamp when this project is successfully provisioned.
            +     * Empty value means this project is still provisioning and is not ready for
            +     * use.
            +     * 
            + * + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The provisionCompletionTime. + */ + public com.google.protobuf.Timestamp getProvisionCompletionTime() { + if (provisionCompletionTimeBuilder_ == null) { + return provisionCompletionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : provisionCompletionTime_; } else { - super.mergeFrom(other); - return this; + return provisionCompletionTimeBuilder_.getMessage(); } } - public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Project other) { - if (other == com.google.cloud.discoveryengine.v1beta.Project.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasProvisionCompletionTime()) { - mergeProvisionCompletionTime(other.getProvisionCompletionTime()); + /** + * + * + *
            +     * Output only. The timestamp when this project is successfully provisioned.
            +     * Empty value means this project is still provisioning and is not ready for
            +     * use.
            +     * 
            + * + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProvisionCompletionTime(com.google.protobuf.Timestamp value) { + if (provisionCompletionTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + provisionCompletionTime_ = value; + } else { + provisionCompletionTimeBuilder_.setMessage(value); } - internalGetMutableServiceTermsMap().mergeFrom(other.internalGetServiceTermsMap()); - bitField0_ |= 0x00000008; - this.mergeUnknownFields(other.getUnknownFields()); + bitField0_ |= 0x00000004; onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetProvisionCompletionTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry< - java.lang.String, - com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> - serviceTermsMap__ = - input.readMessage( - ServiceTermsMapDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableServiceTermsMap() - .ensureBuilderMap() - .put(serviceTermsMap__.getKey(), serviceTermsMap__.getValue()); - 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_ = ""; - /** * * *
            -     * Output only. Full resource name of the project, for example
            -     * `projects/{project}`.
            -     * Note that when making requests, project number and project id are both
            -     * acceptable, but the server will always respond in project number.
            +     * Output only. The timestamp when this project is successfully provisioned.
            +     * Empty value means this project is still provisioning and is not ready for
            +     * use.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The name. + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.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 Builder setProvisionCompletionTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (provisionCompletionTimeBuilder_ == null) { + provisionCompletionTime_ = builderForValue.build(); } else { - return (java.lang.String) ref; + provisionCompletionTimeBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000004; + onChanged(); + return this; } /** * * *
            -     * Output only. Full resource name of the project, for example
            -     * `projects/{project}`.
            -     * Note that when making requests, project number and project id are both
            -     * acceptable, but the server will always respond in project number.
            +     * Output only. The timestamp when this project is successfully provisioned.
            +     * Empty value means this project is still provisioning and is not ready for
            +     * use.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for name. + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - 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 Builder mergeProvisionCompletionTime(com.google.protobuf.Timestamp value) { + if (provisionCompletionTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && provisionCompletionTime_ != null + && provisionCompletionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getProvisionCompletionTimeBuilder().mergeFrom(value); + } else { + provisionCompletionTime_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + provisionCompletionTimeBuilder_.mergeFrom(value); + } + if (provisionCompletionTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); } + return this; } /** * * *
            -     * Output only. Full resource name of the project, for example
            -     * `projects/{project}`.
            -     * Note that when making requests, project number and project id are both
            -     * acceptable, but the server will always respond in project number.
            +     * Output only. The timestamp when this project is successfully provisioned.
            +     * Empty value means this project is still provisioning and is not ready for
            +     * use.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The name to set. - * @return This builder for chaining. + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearProvisionCompletionTime() { + bitField0_ = (bitField0_ & ~0x00000004); + provisionCompletionTime_ = null; + if (provisionCompletionTimeBuilder_ != null) { + provisionCompletionTimeBuilder_.dispose(); + provisionCompletionTimeBuilder_ = null; } - name_ = value; - bitField0_ |= 0x00000001; onChanged(); return this; } @@ -2899,170 +14522,244 @@ public Builder setName(java.lang.String value) { * * *
            -     * Output only. Full resource name of the project, for example
            -     * `projects/{project}`.
            -     * Note that when making requests, project number and project id are both
            -     * acceptable, but the server will always respond in project number.
            +     * Output only. The timestamp when this project is successfully provisioned.
            +     * Empty value means this project is still provisioning and is not ready for
            +     * use.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. + * + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); + public com.google.protobuf.Timestamp.Builder getProvisionCompletionTimeBuilder() { + bitField0_ |= 0x00000004; onChanged(); - return this; + return internalGetProvisionCompletionTimeFieldBuilder().getBuilder(); } /** * * *
            -     * Output only. Full resource name of the project, for example
            -     * `projects/{project}`.
            -     * Note that when making requests, project number and project id are both
            -     * acceptable, but the server will always respond in project number.
            +     * Output only. The timestamp when this project is successfully provisioned.
            +     * Empty value means this project is still provisioning and is not ready for
            +     * use.
                  * 
            * - * 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 provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.protobuf.TimestampOrBuilder getProvisionCompletionTimeOrBuilder() { + if (provisionCompletionTimeBuilder_ != null) { + return provisionCompletionTimeBuilder_.getMessageOrBuilder(); + } else { + return provisionCompletionTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : provisionCompletionTime_; } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; } - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - /** * * *
            -     * Output only. The timestamp when this project is created.
            +     * Output only. The timestamp when this project is successfully provisioned.
            +     * Empty value means this project is still provisioning and is not ready for
            +     * use.
                  * 
            * * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * - * @return Whether the createTime field is set. */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000002) != 0); + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetProvisionCompletionTimeFieldBuilder() { + if (provisionCompletionTimeBuilder_ == null) { + provisionCompletionTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getProvisionCompletionTime(), getParentForChildren(), isClean()); + provisionCompletionTime_ = null; + } + return provisionCompletionTimeBuilder_; + } + + private static final class ServiceTermsMapConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.Project.ServiceTermsOrBuilder, + com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> { + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms build( + com.google.cloud.discoveryengine.v1beta.Project.ServiceTermsOrBuilder val) { + if (val instanceof com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms) { + return (com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms) val; + } + return ((com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> + defaultEntry() { + return ServiceTermsMapDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final ServiceTermsMapConverter serviceTermsMapConverter = + new ServiceTermsMapConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.Project.ServiceTermsOrBuilder, + com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms, + com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms.Builder> + serviceTermsMap_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.Project.ServiceTermsOrBuilder, + com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms, + com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms.Builder> + internalGetServiceTermsMap() { + if (serviceTermsMap_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(serviceTermsMapConverter); + } + return serviceTermsMap_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.Project.ServiceTermsOrBuilder, + com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms, + com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms.Builder> + internalGetMutableServiceTermsMap() { + if (serviceTermsMap_ == null) { + serviceTermsMap_ = new com.google.protobuf.MapFieldBuilder<>(serviceTermsMapConverter); + } + bitField0_ |= 0x00000008; + onChanged(); + return serviceTermsMap_; + } + + public int getServiceTermsMapCount() { + return internalGetServiceTermsMap().ensureBuilderMap().size(); } /** * * *
            -     * Output only. The timestamp when this project is created.
            +     * Output only. A map of terms of services. The key is the `id` of
            +     * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
                  * 
            * * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 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(); + @java.lang.Override + public boolean containsServiceTermsMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } + return internalGetServiceTermsMap().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getServiceTermsMapMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> + getServiceTermsMap() { + return getServiceTermsMapMap(); } /** * * *
            -     * Output only. The timestamp when this project is created.
            +     * Output only. A map of terms of services. The key is the `id` of
            +     * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
                  * 
            * * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> + getServiceTermsMapMap() { + return internalGetServiceTermsMap().getImmutableMap(); } /** * * *
            -     * Output only. The timestamp when this project is created.
            +     * Output only. A map of terms of services. The key is the `id` of
            +     * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
                  * 
            * * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 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()); + @java.lang.Override + public /* nullable */ com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms + getServiceTermsMapOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00000002; - onChanged(); - return this; + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.Project.ServiceTermsOrBuilder> + map = internalGetMutableServiceTermsMap().ensureBuilderMap(); + return map.containsKey(key) ? serviceTermsMapConverter.build(map.get(key)) : defaultValue; } /** * * *
            -     * Output only. The timestamp when this project is created.
            +     * Output only. A map of terms of services. The key is the `id` of
            +     * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
                  * 
            * * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms getServiceTermsMapOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - if (createTime_ != null) { - bitField0_ |= 0x00000002; - onChanged(); + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.Project.ServiceTermsOrBuilder> + map = internalGetMutableServiceTermsMap().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return serviceTermsMapConverter.build(map.get(key)); + } + + public Builder clearServiceTermsMap() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableServiceTermsMap().clear(); return this; } @@ -3070,138 +14767,162 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * * *
            -     * Output only. The timestamp when this project is created.
            +     * Output only. A map of terms of services. The key is the `id` of
            +     * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
                  * 
            * * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000002); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; + public Builder removeServiceTermsMap(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - onChanged(); + internalGetMutableServiceTermsMap().ensureBuilderMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> + getMutableServiceTermsMap() { + bitField0_ |= 0x00000008; + return internalGetMutableServiceTermsMap().ensureMessageMap(); + } + /** * * *
            -     * Output only. The timestamp when this project is created.
            +     * Output only. A map of terms of services. The key is the `id` of
            +     * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
                  * 
            * * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetCreateTimeFieldBuilder().getBuilder(); + public Builder putServiceTermsMap( + java.lang.String key, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableServiceTermsMap().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000008; + return this; } /** * * *
            -     * Output only. The timestamp when this project is created.
            +     * Output only. A map of terms of services. The key is the `id` of
            +     * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
                  * 
            * * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 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_; + public Builder putAllServiceTermsMap( + java.util.Map< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> + values) { + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } } + internalGetMutableServiceTermsMap().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000008; + return this; } /** * * *
            -     * Output only. The timestamp when this project is created.
            +     * Output only. A map of terms of services. The key is the `id` of
            +     * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
                  * 
            * * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); - createTime_ = null; + public com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms.Builder + putServiceTermsMapBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.discoveryengine.v1beta.Project.ServiceTermsOrBuilder> + builderMap = internalGetMutableServiceTermsMap().ensureBuilderMap(); + com.google.cloud.discoveryengine.v1beta.Project.ServiceTermsOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms.newBuilder(); + builderMap.put(key, entry); } - return createTimeBuilder_; + if (entry instanceof com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms) { + entry = ((com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms.Builder) entry; } - private com.google.protobuf.Timestamp provisionCompletionTime_; + private com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + customerProvidedConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - provisionCompletionTimeBuilder_; + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfigOrBuilder> + customerProvidedConfigBuilder_; /** * * *
            -     * Output only. The timestamp when this project is successfully provisioned.
            -     * Empty value means this project is still provisioning and is not ready for
            -     * use.
            +     * Optional. Customer provided configurations.
                  * 
            * * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the provisionCompletionTime field is set. + * @return Whether the customerProvidedConfig field is set. */ - public boolean hasProvisionCompletionTime() { - return ((bitField0_ & 0x00000004) != 0); + public boolean hasCustomerProvidedConfig() { + return ((bitField0_ & 0x00000010) != 0); } /** * * *
            -     * Output only. The timestamp when this project is successfully provisioned.
            -     * Empty value means this project is still provisioning and is not ready for
            -     * use.
            +     * Optional. Customer provided configurations.
                  * 
            * * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The provisionCompletionTime. + * @return The customerProvidedConfig. */ - public com.google.protobuf.Timestamp getProvisionCompletionTime() { - if (provisionCompletionTimeBuilder_ == null) { - return provisionCompletionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : provisionCompletionTime_; + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + getCustomerProvidedConfig() { + if (customerProvidedConfigBuilder_ == null) { + return customerProvidedConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .getDefaultInstance() + : customerProvidedConfig_; } else { - return provisionCompletionTimeBuilder_.getMessage(); + return customerProvidedConfigBuilder_.getMessage(); } } @@ -3209,25 +14930,24 @@ public com.google.protobuf.Timestamp getProvisionCompletionTime() { * * *
            -     * Output only. The timestamp when this project is successfully provisioned.
            -     * Empty value means this project is still provisioning and is not ready for
            -     * use.
            +     * Optional. Customer provided configurations.
                  * 
            * * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setProvisionCompletionTime(com.google.protobuf.Timestamp value) { - if (provisionCompletionTimeBuilder_ == null) { + public Builder setCustomerProvidedConfig( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig value) { + if (customerProvidedConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - provisionCompletionTime_ = value; + customerProvidedConfig_ = value; } else { - provisionCompletionTimeBuilder_.setMessage(value); + customerProvidedConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3236,23 +14956,22 @@ public Builder setProvisionCompletionTime(com.google.protobuf.Timestamp value) { * * *
            -     * Output only. The timestamp when this project is successfully provisioned.
            -     * Empty value means this project is still provisioning and is not ready for
            -     * use.
            +     * Optional. Customer provided configurations.
                  * 
            * * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setProvisionCompletionTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (provisionCompletionTimeBuilder_ == null) { - provisionCompletionTime_ = builderForValue.build(); + public Builder setCustomerProvidedConfig( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.Builder + builderForValue) { + if (customerProvidedConfigBuilder_ == null) { + customerProvidedConfig_ = builderForValue.build(); } else { - provisionCompletionTimeBuilder_.setMessage(builderForValue.build()); + customerProvidedConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3261,29 +14980,30 @@ public Builder setProvisionCompletionTime( * * *
            -     * Output only. The timestamp when this project is successfully provisioned.
            -     * Empty value means this project is still provisioning and is not ready for
            -     * use.
            +     * Optional. Customer provided configurations.
                  * 
            * * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeProvisionCompletionTime(com.google.protobuf.Timestamp value) { - if (provisionCompletionTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && provisionCompletionTime_ != null - && provisionCompletionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getProvisionCompletionTimeBuilder().mergeFrom(value); + public Builder mergeCustomerProvidedConfig( + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig value) { + if (customerProvidedConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && customerProvidedConfig_ != null + && customerProvidedConfig_ + != com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .getDefaultInstance()) { + getCustomerProvidedConfigBuilder().mergeFrom(value); } else { - provisionCompletionTime_ = value; + customerProvidedConfig_ = value; } } else { - provisionCompletionTimeBuilder_.mergeFrom(value); + customerProvidedConfigBuilder_.mergeFrom(value); } - if (provisionCompletionTime_ != null) { - bitField0_ |= 0x00000004; + if (customerProvidedConfig_ != null) { + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -3293,21 +15013,19 @@ public Builder mergeProvisionCompletionTime(com.google.protobuf.Timestamp value) * * *
            -     * Output only. The timestamp when this project is successfully provisioned.
            -     * Empty value means this project is still provisioning and is not ready for
            -     * use.
            -     * 
            - * - * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearProvisionCompletionTime() { - bitField0_ = (bitField0_ & ~0x00000004); - provisionCompletionTime_ = null; - if (provisionCompletionTimeBuilder_ != null) { - provisionCompletionTimeBuilder_.dispose(); - provisionCompletionTimeBuilder_ = null; + * Optional. Customer provided configurations. + * + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomerProvidedConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + customerProvidedConfig_ = null; + if (customerProvidedConfigBuilder_ != null) { + customerProvidedConfigBuilder_.dispose(); + customerProvidedConfigBuilder_ = null; } onChanged(); return this; @@ -3317,41 +15035,40 @@ public Builder clearProvisionCompletionTime() { * * *
            -     * Output only. The timestamp when this project is successfully provisioned.
            -     * Empty value means this project is still provisioning and is not ready for
            -     * use.
            +     * Optional. Customer provided configurations.
                  * 
            * * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.Timestamp.Builder getProvisionCompletionTimeBuilder() { - bitField0_ |= 0x00000004; + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.Builder + getCustomerProvidedConfigBuilder() { + bitField0_ |= 0x00000010; onChanged(); - return internalGetProvisionCompletionTimeFieldBuilder().getBuilder(); + return internalGetCustomerProvidedConfigFieldBuilder().getBuilder(); } /** * * *
            -     * Output only. The timestamp when this project is successfully provisioned.
            -     * Empty value means this project is still provisioning and is not ready for
            -     * use.
            +     * Optional. Customer provided configurations.
                  * 
            * * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.protobuf.TimestampOrBuilder getProvisionCompletionTimeOrBuilder() { - if (provisionCompletionTimeBuilder_ != null) { - return provisionCompletionTimeBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfigOrBuilder + getCustomerProvidedConfigOrBuilder() { + if (customerProvidedConfigBuilder_ != null) { + return customerProvidedConfigBuilder_.getMessageOrBuilder(); } else { - return provisionCompletionTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : provisionCompletionTime_; + return customerProvidedConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + .getDefaultInstance() + : customerProvidedConfig_; } } @@ -3359,202 +15076,160 @@ public com.google.protobuf.TimestampOrBuilder getProvisionCompletionTimeOrBuilde * * *
            -     * Output only. The timestamp when this project is successfully provisioned.
            -     * Empty value means this project is still provisioning and is not ready for
            -     * use.
            +     * Optional. Customer provided configurations.
                  * 
            * * - * .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetProvisionCompletionTimeFieldBuilder() { - if (provisionCompletionTimeBuilder_ == null) { - provisionCompletionTimeBuilder_ = + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfigOrBuilder> + internalGetCustomerProvidedConfigFieldBuilder() { + if (customerProvidedConfigBuilder_ == null) { + customerProvidedConfigBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getProvisionCompletionTime(), getParentForChildren(), isClean()); - provisionCompletionTime_ = null; - } - return provisionCompletionTimeBuilder_; - } - - private static final class ServiceTermsMapConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.cloud.discoveryengine.v1beta.Project.ServiceTermsOrBuilder, - com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> { - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms build( - com.google.cloud.discoveryengine.v1beta.Project.ServiceTermsOrBuilder val) { - if (val instanceof com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms) { - return (com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms) val; - } - return ((com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> - defaultEntry() { - return ServiceTermsMapDefaultEntryHolder.defaultEntry; - } - } - ; - - private static final ServiceTermsMapConverter serviceTermsMapConverter = - new ServiceTermsMapConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.discoveryengine.v1beta.Project.ServiceTermsOrBuilder, - com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms, - com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms.Builder> - serviceTermsMap_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.discoveryengine.v1beta.Project.ServiceTermsOrBuilder, - com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms, - com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms.Builder> - internalGetServiceTermsMap() { - if (serviceTermsMap_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(serviceTermsMapConverter); + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig.Builder, + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfigOrBuilder>( + getCustomerProvidedConfig(), getParentForChildren(), isClean()); + customerProvidedConfig_ = null; } - return serviceTermsMap_; + return customerProvidedConfigBuilder_; } - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.discoveryengine.v1beta.Project.ServiceTermsOrBuilder, - com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms, - com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms.Builder> - internalGetMutableServiceTermsMap() { - if (serviceTermsMap_ == null) { - serviceTermsMap_ = new com.google.protobuf.MapFieldBuilder<>(serviceTermsMapConverter); - } - bitField0_ |= 0x00000008; - onChanged(); - return serviceTermsMap_; - } + private com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + configurableBillingStatus_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.Builder, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatusOrBuilder> + configurableBillingStatusBuilder_; - public int getServiceTermsMapCount() { - return internalGetServiceTermsMap().ensureBuilderMap().size(); + /** + * + * + *
            +     * Output only. The current status of the project's configurable billing.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the configurableBillingStatus field is set. + */ + public boolean hasConfigurableBillingStatus() { + return ((bitField0_ & 0x00000020) != 0); } /** * * *
            -     * Output only. A map of terms of services. The key is the `id` of
            -     * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
            +     * Output only. The current status of the project's configurable billing.
                  * 
            * * - * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The configurableBillingStatus. */ - @java.lang.Override - public boolean containsServiceTermsMap(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + getConfigurableBillingStatus() { + if (configurableBillingStatusBuilder_ == null) { + return configurableBillingStatus_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .getDefaultInstance() + : configurableBillingStatus_; + } else { + return configurableBillingStatusBuilder_.getMessage(); } - return internalGetServiceTermsMap().ensureBuilderMap().containsKey(key); - } - - /** Use {@link #getServiceTermsMapMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> - getServiceTermsMap() { - return getServiceTermsMapMap(); } /** * * *
            -     * Output only. A map of terms of services. The key is the `id` of
            -     * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
            +     * Output only. The current status of the project's configurable billing.
                  * 
            * * - * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> - getServiceTermsMapMap() { - return internalGetServiceTermsMap().getImmutableMap(); + public Builder setConfigurableBillingStatus( + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus value) { + if (configurableBillingStatusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + configurableBillingStatus_ = value; + } else { + configurableBillingStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; } /** * * *
            -     * Output only. A map of terms of services. The key is the `id` of
            -     * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
            +     * Output only. The current status of the project's configurable billing.
                  * 
            * * - * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public /* nullable */ com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms - getServiceTermsMapOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setConfigurableBillingStatus( + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.Builder + builderForValue) { + if (configurableBillingStatusBuilder_ == null) { + configurableBillingStatus_ = builderForValue.build(); + } else { + configurableBillingStatusBuilder_.setMessage(builderForValue.build()); } - java.util.Map< - java.lang.String, - com.google.cloud.discoveryengine.v1beta.Project.ServiceTermsOrBuilder> - map = internalGetMutableServiceTermsMap().ensureBuilderMap(); - return map.containsKey(key) ? serviceTermsMapConverter.build(map.get(key)) : defaultValue; + bitField0_ |= 0x00000020; + onChanged(); + return this; } /** * * *
            -     * Output only. A map of terms of services. The key is the `id` of
            -     * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
            +     * Output only. The current status of the project's configurable billing.
                  * 
            * * - * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms getServiceTermsMapOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder mergeConfigurableBillingStatus( + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus value) { + if (configurableBillingStatusBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && configurableBillingStatus_ != null + && configurableBillingStatus_ + != com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .getDefaultInstance()) { + getConfigurableBillingStatusBuilder().mergeFrom(value); + } else { + configurableBillingStatus_ = value; + } + } else { + configurableBillingStatusBuilder_.mergeFrom(value); } - java.util.Map< - java.lang.String, - com.google.cloud.discoveryengine.v1beta.Project.ServiceTermsOrBuilder> - map = internalGetMutableServiceTermsMap().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + if (configurableBillingStatus_ != null) { + bitField0_ |= 0x00000020; + onChanged(); } - return serviceTermsMapConverter.build(map.get(key)); - } - - public Builder clearServiceTermsMap() { - bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableServiceTermsMap().clear(); return this; } @@ -3562,113 +15237,91 @@ public Builder clearServiceTermsMap() { * * *
            -     * Output only. A map of terms of services. The key is the `id` of
            -     * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
            +     * Output only. The current status of the project's configurable billing.
                  * 
            * * - * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder removeServiceTermsMap(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder clearConfigurableBillingStatus() { + bitField0_ = (bitField0_ & ~0x00000020); + configurableBillingStatus_ = null; + if (configurableBillingStatusBuilder_ != null) { + configurableBillingStatusBuilder_.dispose(); + configurableBillingStatusBuilder_ = null; } - internalGetMutableServiceTermsMap().ensureBuilderMap().remove(key); + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> - getMutableServiceTermsMap() { - bitField0_ |= 0x00000008; - return internalGetMutableServiceTermsMap().ensureMessageMap(); - } - /** * * *
            -     * Output only. A map of terms of services. The key is the `id` of
            -     * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
            +     * Output only. The current status of the project's configurable billing.
                  * 
            * * - * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder putServiceTermsMap( - java.lang.String key, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableServiceTermsMap().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000008; - return this; + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.Builder + getConfigurableBillingStatusBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetConfigurableBillingStatusFieldBuilder().getBuilder(); } /** * * *
            -     * Output only. A map of terms of services. The key is the `id` of
            -     * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
            +     * Output only. The current status of the project's configurable billing.
                  * 
            * * - * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public Builder putAllServiceTermsMap( - java.util.Map< - java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> - values) { - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms> - e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } + public com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatusOrBuilder + getConfigurableBillingStatusOrBuilder() { + if (configurableBillingStatusBuilder_ != null) { + return configurableBillingStatusBuilder_.getMessageOrBuilder(); + } else { + return configurableBillingStatus_ == null + ? com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + .getDefaultInstance() + : configurableBillingStatus_; } - internalGetMutableServiceTermsMap().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000008; - return this; } /** * * *
            -     * Output only. A map of terms of services. The key is the `id` of
            -     * [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms].
            +     * Output only. The current status of the project's configurable billing.
                  * 
            * * - * map<string, .google.cloud.discoveryengine.v1beta.Project.ServiceTerms> service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - public com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms.Builder - putServiceTermsMapBuilderIfAbsent(java.lang.String key) { - java.util.Map< - java.lang.String, - com.google.cloud.discoveryengine.v1beta.Project.ServiceTermsOrBuilder> - builderMap = internalGetMutableServiceTermsMap().ensureBuilderMap(); - com.google.cloud.discoveryengine.v1beta.Project.ServiceTermsOrBuilder entry = - builderMap.get(key); - if (entry == null) { - entry = com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms) { - entry = ((com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms) entry).toBuilder(); - builderMap.put(key, entry); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.Builder, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatusOrBuilder> + internalGetConfigurableBillingStatusFieldBuilder() { + if (configurableBillingStatusBuilder_ == null) { + configurableBillingStatusBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus.Builder, + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatusOrBuilder>( + getConfigurableBillingStatus(), getParentForChildren(), isClean()); + configurableBillingStatus_ = null; } - return (com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms.Builder) entry; + return configurableBillingStatusBuilder_; } // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Project) diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectOrBuilder.java index 50f79552e8a7..f877d4fed666 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectOrBuilder.java @@ -227,4 +227,94 @@ com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms getServiceTermsMapO */ com.google.cloud.discoveryengine.v1beta.Project.ServiceTerms getServiceTermsMapOrThrow( java.lang.String key); + + /** + * + * + *
            +   * Optional. Customer provided configurations.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customerProvidedConfig field is set. + */ + boolean hasCustomerProvidedConfig(); + + /** + * + * + *
            +   * Optional. Customer provided configurations.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customerProvidedConfig. + */ + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig + getCustomerProvidedConfig(); + + /** + * + * + *
            +   * Optional. Customer provided configurations.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfig customer_provided_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.Project.CustomerProvidedConfigOrBuilder + getCustomerProvidedConfigOrBuilder(); + + /** + * + * + *
            +   * Output only. The current status of the project's configurable billing.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the configurableBillingStatus field is set. + */ + boolean hasConfigurableBillingStatus(); + + /** + * + * + *
            +   * Output only. The current status of the project's configurable billing.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The configurableBillingStatus. + */ + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus + getConfigurableBillingStatus(); + + /** + * + * + *
            +   * Output only. The current status of the project's configurable billing.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatus configurable_billing_status = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.Project.ConfigurableBillingStatusOrBuilder + getConfigurableBillingStatusOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectProto.java index f5a9a574750f..5b103257dfe5 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectProto.java @@ -48,6 +48,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_Project_ServiceTerms_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_Project_ServiceTerms_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_Project_ServiceTermsMapEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -64,34 +92,96 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n1google/cloud/discoveryengine/v1beta/pr" + "oject.proto\022#google.cloud.discoveryengin" + "e.v1beta\032\037google/api/field_behavior.prot" - + "o\032\031google/api/resource.proto\032\037google/pro" - + "tobuf/timestamp.proto\"\351\005\n\007Project\022\021\n\004nam" - + "e\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002 \001(\0132\032.goog" - + "le.protobuf.TimestampB\003\340A\003\022B\n\031provision_" - + "completion_time\030\003 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\022a\n\021service_terms_map\030\004 \003(" - + "\0132A.google.cloud.discoveryengine.v1beta." - + "Project.ServiceTermsMapEntryB\003\340A\003\032\271\002\n\014Se" - + "rviceTerms\022\n\n\002id\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022" - + "N\n\005state\030\004 \001(\0162?.google.cloud.discoverye" - + "ngine.v1beta.Project.ServiceTerms.State\022" - + "/\n\013accept_time\030\005 \001(\0132\032.google.protobuf.T" - + "imestamp\0220\n\014decline_time\030\006 \001(\0132\032.google." - + "protobuf.Timestamp\"Y\n\005State\022\025\n\021STATE_UNS" - + "PECIFIED\020\000\022\022\n\016TERMS_ACCEPTED\020\001\022\021\n\rTERMS_" - + "PENDING\020\002\022\022\n\016TERMS_DECLINED\020\003\032q\n\024Service" - + "TermsMapEntry\022\013\n\003key\030\001 \001(\t\022H\n\005value\030\002 \001(" - + "\01329.google.cloud.discoveryengine.v1beta." - + "Project.ServiceTerms:\0028\001:?\352A<\n&discovery" - + "engine.googleapis.com/Project\022\022projects/" - + "{project}B\223\002\n\'com.google.cloud.discovery" - + "engine.v1betaB\014ProjectProtoP\001ZQcloud.goo" - + "gle.com/go/discoveryengine/apiv1beta/dis" - + "coveryenginepb;discoveryenginepb\242\002\017DISCO" - + "VERYENGINE\252\002#Google.Cloud.DiscoveryEngin" - + "e.V1Beta\312\002#Google\\Cloud\\DiscoveryEngine\\" - + "V1beta\352\002&Google::Cloud::DiscoveryEngine:" - + ":V1betab\006proto3" + + "o\032\031google/api/resource.proto\0321google/clo" + + "ud/discoveryengine/v1beta/logging.proto\032" + + "\037google/protobuf/timestamp.proto\"\344\030\n\007Pro" + + "ject\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022B\n" + + "\031provision_completion_time\030\003 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\022a\n\021service_ter" + + "ms_map\030\004 \003(\0132A.google.cloud.discoveryeng" + + "ine.v1beta.Project.ServiceTermsMapEntryB" + + "\003\340A\003\022j\n\030customer_provided_config\030\006 \001(\0132C" + + ".google.cloud.discoveryengine.v1beta.Pro" + + "ject.CustomerProvidedConfigB\003\340A\001\022p\n\033conf" + + "igurable_billing_status\030\n \001(\0132F.google.c" + + "loud.discoveryengine.v1beta.Project.Conf" + + "igurableBillingStatusB\003\340A\003\032\271\002\n\014ServiceTe" + + "rms\022\n\n\002id\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022N\n\005stat" + + "e\030\004 \001(\0162?.google.cloud.discoveryengine.v" + + "1beta.Project.ServiceTerms.State\022/\n\013acce" + + "pt_time\030\005 \001(\0132\032.google.protobuf.Timestam" + + "p\0220\n\014decline_time\030\006 \001(\0132\032.google.protobu" + + "f.Timestamp\"Y\n\005State\022\025\n\021STATE_UNSPECIFIE" + + "D\020\000\022\022\n\016TERMS_ACCEPTED\020\001\022\021\n\rTERMS_PENDING" + + "\020\002\022\022\n\016TERMS_DECLINED\020\003\032\220\010\n\026CustomerProvi" + + "dedConfig\022t\n\021notebooklm_config\030\003 \001(\0132T.g" + + "oogle.cloud.discoveryengine.v1beta.Proje" + + "ct.CustomerProvidedConfig.NotebooklmConf" + + "igB\003\340A\001\032\377\006\n\020NotebooklmConfig\022\201\001\n\022model_a" + + "rmor_config\030\001 \001(\0132e.google.cloud.discove" + + "ryengine.v1beta.Project.CustomerProvided" + + "Config.NotebooklmConfig.ModelArmorConfig" + + "\022%\n\030opt_out_notebook_sharing\030\002 \001(\010B\003\340A\001\022" + + "\216\001\n\026data_protection_policy\030\005 \001(\0132i.googl" + + "e.cloud.discoveryengine.v1beta.Project.C" + + "ustomerProvidedConfig.NotebooklmConfig.D" + + "ataProtectionPolicyB\003\340A\001\022[\n\024observabilit" + + "y_config\030\006 \001(\01328.google.cloud.discoverye" + + "ngine.v1beta.ObservabilityConfigB\003\340A\001\032\243\001" + + "\n\020ModelArmorConfig\022H\n\024user_prompt_templa" + + "te\030\001 \001(\tB*\340A\001\372A$\n\"modelarmor.googleapis." + + "com/Template\022E\n\021response_template\030\002 \001(\tB" + + "*\340A\001\372A$\n\"modelarmor.googleapis.com/Templ" + + "ate\032\253\002\n\024DataProtectionPolicy\022\267\001\n sensiti" + + "ve_data_protection_policy\030\001 \001(\0132\207\001.googl" + + "e.cloud.discoveryengine.v1beta.Project.C" + + "ustomerProvidedConfig.NotebooklmConfig.D" + + "ataProtectionPolicy.SensitiveDataProtect" + + "ionPolicyB\003\340A\001\032Y\n\035SensitiveDataProtectio" + + "nPolicy\0228\n\006policy\030\001 \001(\tB(\340A\001\372A\"\n dlp.goo" + + "gleapis.com/ContentPolicy\032\207\t\n\031Configurab" + + "leBillingStatus\022+\n\036effective_search_qpm_" + + "threshold\030\001 \001(\003B\003\340A\001\022.\n!effective_indexi" + + "ng_core_threshold\030\002 \001(\003B\003\340A\001\0223\n\nstart_ti" + + "me\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\001\0227\n\016terminate_time\030\004 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022N\n%search_qpm_thresho" + + "ld_next_update_time\030\005 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022Q\n(indexing_core_thre" + + "shold_next_update_time\030\006 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\022k\n\013update_type\030\007 \001" + + "(\0162Q.google.cloud.discoveryengine.v1beta" + + ".Project.ConfigurableBillingStatus.Updat" + + "eTypeB\003\340A\003\022\240\001\n(agent_search_token_subscr" + + "iption_statuses\030\010 \003(\0132i.google.cloud.dis" + + "coveryengine.v1beta.Project.Configurable" + + "BillingStatus.AgentSearchTokenSubscripti" + + "onStatusB\003\340A\003\032\212\003\n\"AgentSearchTokenSubscr" + + "iptionStatus\022\032\n\rmodel_version\030\001 \001(\tB\003\340A\003" + + "\022$\n\027effective_tpm_threshold\030\002 \001(\003B\003\340A\003\022G" + + "\n\036tpm_threshold_next_update_time\030\003 \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\0223\n\nstart" + + "_time\030\004 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0227\n\016terminate_time\030\005 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\022k\n\013update_type\030\006 \001" + + "(\0162Q.google.cloud.discoveryengine.v1beta" + + ".Project.ConfigurableBillingStatus.Updat" + + "eTypeB\003\340A\003\"_\n\nUpdateType\022\033\n\027UPDATE_TYPE_" + + "UNSPECIFIED\020\000\022\n\n\006CREATE\020\001\022\n\n\006DELETE\020\002\022\014\n" + + "\010SCALE_UP\020\003\022\016\n\nSCALE_DOWN\020\004\032q\n\024ServiceTe" + + "rmsMapEntry\022\013\n\003key\030\001 \001(\t\022H\n\005value\030\002 \001(\0132" + + "9.google.cloud.discoveryengine.v1beta.Pr" + + "oject.ServiceTerms:\0028\001:?\352A<\n&discoveryen" + + "gine.googleapis.com/Project\022\022projects/{p" + + "roject}B\223\002\n\'com.google.cloud.discoveryen" + + "gine.v1betaB\014ProjectProtoP\001ZQcloud.googl" + + "e.com/go/discoveryengine/apiv1beta/disco" + + "veryenginepb;discoveryenginepb\242\002\017DISCOVE" + + "RYENGINE\252\002#Google.Cloud.DiscoveryEngine." + + "V1Beta\312\002#Google\\Cloud\\DiscoveryEngine\\V1" + + "beta\352\002&Google::Cloud::DiscoveryEngine::V" + + "1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -99,6 +189,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.cloud.discoveryengine.v1beta.LoggingProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_discoveryengine_v1beta_Project_descriptor = @@ -107,7 +198,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_Project_descriptor, new java.lang.String[] { - "Name", "CreateTime", "ProvisionCompletionTime", "ServiceTermsMap", + "Name", + "CreateTime", + "ProvisionCompletionTime", + "ServiceTermsMap", + "CustomerProvidedConfig", + "ConfigurableBillingStatus", }); internal_static_google_cloud_discoveryengine_v1beta_Project_ServiceTerms_descriptor = internal_static_google_cloud_discoveryengine_v1beta_Project_descriptor.getNestedType(0); @@ -117,8 +213,84 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Id", "Version", "State", "AcceptTime", "DeclineTime", }); - internal_static_google_cloud_discoveryengine_v1beta_Project_ServiceTermsMapEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_descriptor = internal_static_google_cloud_discoveryengine_v1beta_Project_descriptor.getNestedType(1); + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_descriptor, + new java.lang.String[] { + "NotebooklmConfig", + }); + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_descriptor, + new java.lang.String[] { + "ModelArmorConfig", + "OptOutNotebookSharing", + "DataProtectionPolicy", + "ObservabilityConfig", + }); + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_ModelArmorConfig_descriptor, + new java.lang.String[] { + "UserPromptTemplate", "ResponseTemplate", + }); + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_descriptor, + new java.lang.String[] { + "SensitiveDataProtectionPolicy", + }); + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Project_CustomerProvidedConfig_NotebooklmConfig_DataProtectionPolicy_SensitiveDataProtectionPolicy_descriptor, + new java.lang.String[] { + "Policy", + }); + internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Project_descriptor.getNestedType(2); + internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_descriptor, + new java.lang.String[] { + "EffectiveSearchQpmThreshold", + "EffectiveIndexingCoreThreshold", + "StartTime", + "TerminateTime", + "SearchQpmThresholdNextUpdateTime", + "IndexingCoreThresholdNextUpdateTime", + "UpdateType", + "AgentSearchTokenSubscriptionStatuses", + }); + internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_Project_ConfigurableBillingStatus_AgentSearchTokenSubscriptionStatus_descriptor, + new java.lang.String[] { + "ModelVersion", + "EffectiveTpmThreshold", + "TpmThresholdNextUpdateTime", + "StartTime", + "TerminateTime", + "UpdateType", + }); + internal_static_google_cloud_discoveryengine_v1beta_Project_ServiceTermsMapEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_Project_descriptor.getNestedType(3); internal_static_google_cloud_discoveryengine_v1beta_Project_ServiceTermsMapEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_Project_ServiceTermsMapEntry_descriptor, @@ -128,11 +300,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.LoggingProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); 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); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceProto.java index 1f21c75e5fcb..95e541be37e0 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProjectServiceProto.java @@ -44,6 +44,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_ProvisionProjectRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_ProvisionProjectRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ProvisionProjectRequest_SaasParams_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ProvisionProjectRequest_SaasParams_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_ProvisionProjectMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -57,36 +61,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n9google/cloud/discoveryengine/v1beta/pr" - + "oject_service.proto\022#google.cloud.discov" + "\n" + + "9google/cloud/discoveryengine/v1beta/project_service.proto\022#google.cloud.discov" + "eryengine.v1beta\032\034google/api/annotations" + ".proto\032\027google/api/client.proto\032\037google/" + "api/field_behavior.proto\032\031google/api/res" + "ource.proto\0321google/cloud/discoveryengin" - + "e/v1beta/project.proto\032#google/longrunni" - + "ng/operations.proto\"\240\001\n\027ProvisionProject" - + "Request\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&discovery" - + "engine.googleapis.com/Project\022\"\n\025accept_" - + "data_use_terms\030\002 \001(\010B\003\340A\002\022#\n\026data_use_te" - + "rms_version\030\003 \001(\tB\003\340A\002\"\032\n\030ProvisionProje" - + "ctMetadata2\374\002\n\016ProjectService\022\225\002\n\020Provis" - + "ionProject\022<.google.cloud.discoveryengin" - + "e.v1beta.ProvisionProjectRequest\032\035.googl" - + "e.longrunning.Operation\"\243\001\312Ak\n+google.cl" - + "oud.discoveryengine.v1beta.Project\022\n\n" + + "SaasParams\022\033\n" + + "\016accept_biz_qos\030\001 \001(\010B\003\340A\001\022\023\n" + + "\006is_biz\030\002 \001(\010B\003\340A\001\"\032\n" + + "\030ProvisionProjectMetadata2\372\003\n" + + "\016ProjectService\022\225\002\n" + + "\020ProvisionProject\022<.google.cloud.discoveryen" + + "gine.v1beta.ProvisionProjectRequest\032\035.google.longrunning.Operation\"\243\001\312Ak\n" + + "+google.cloud.discoveryengine.v1beta.Project\022 + * Optional. Set to `true` to specify that caller has read and would like to + * give consent to the [Terms for Agent Space quality of service]. + * + * + * bool accept_biz_qos = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The acceptBizQos. + */ + boolean getAcceptBizQos(); + + /** + * + * + *
            +     * Optional. Indicates if the current request is for Biz edition (= true) or
            +     * not
            +     * (= false).
            +     * 
            + * + * bool is_biz = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isBiz. + */ + boolean getIsBiz(); + } + + /** + * + * + *
            +   * Parameters for Agentspace.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams} + */ + public static final class SaasParams extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams) + SaasParamsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SaasParams"); + } + + // Use SaasParams.newBuilder() to construct. + private SaasParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SaasParams() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ProjectServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ProvisionProjectRequest_SaasParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ProjectServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ProvisionProjectRequest_SaasParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams.class, + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams.Builder + .class); + } + + public static final int ACCEPT_BIZ_QOS_FIELD_NUMBER = 1; + private boolean acceptBizQos_ = false; + + /** + * + * + *
            +     * Optional. Set to `true` to specify that caller has read and would like to
            +     * give consent to the [Terms for Agent Space quality of service].
            +     * 
            + * + * bool accept_biz_qos = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The acceptBizQos. + */ + @java.lang.Override + public boolean getAcceptBizQos() { + return acceptBizQos_; + } + + public static final int IS_BIZ_FIELD_NUMBER = 2; + private boolean isBiz_ = false; + + /** + * + * + *
            +     * Optional. Indicates if the current request is for Biz edition (= true) or
            +     * not
            +     * (= false).
            +     * 
            + * + * bool is_biz = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isBiz. + */ + @java.lang.Override + public boolean getIsBiz() { + return isBiz_; + } + + 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 (acceptBizQos_ != false) { + output.writeBool(1, acceptBizQos_); + } + if (isBiz_ != false) { + output.writeBool(2, isBiz_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (acceptBizQos_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, acceptBizQos_); + } + if (isBiz_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isBiz_); + } + 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.v1beta.ProvisionProjectRequest.SaasParams)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams other = + (com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams) obj; + + if (getAcceptBizQos() != other.getAcceptBizQos()) return false; + if (getIsBiz() != other.getIsBiz()) 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) + ACCEPT_BIZ_QOS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAcceptBizQos()); + hash = (37 * hash) + IS_BIZ_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsBiz()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + 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.v1beta.ProvisionProjectRequest.SaasParams + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + parseFrom( + 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.v1beta.ProvisionProjectRequest.SaasParams + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Parameters for Agentspace.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams) + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.ProjectServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ProvisionProjectRequest_SaasParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.ProjectServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ProvisionProjectRequest_SaasParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams.class, + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + acceptBizQos_ = false; + isBiz_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.ProjectServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_ProvisionProjectRequest_SaasParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams build() { + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + buildPartial() { + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams result = + new com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.acceptBizQos_ = acceptBizQos_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.isBiz_ = isBiz_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams other) { + if (other + == com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + .getDefaultInstance()) return this; + if (other.getAcceptBizQos() != false) { + setAcceptBizQos(other.getAcceptBizQos()); + } + if (other.getIsBiz() != false) { + setIsBiz(other.getIsBiz()); + } + 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: + { + acceptBizQos_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + isBiz_ = 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 acceptBizQos_; + + /** + * + * + *
            +       * Optional. Set to `true` to specify that caller has read and would like to
            +       * give consent to the [Terms for Agent Space quality of service].
            +       * 
            + * + * bool accept_biz_qos = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The acceptBizQos. + */ + @java.lang.Override + public boolean getAcceptBizQos() { + return acceptBizQos_; + } + + /** + * + * + *
            +       * Optional. Set to `true` to specify that caller has read and would like to
            +       * give consent to the [Terms for Agent Space quality of service].
            +       * 
            + * + * bool accept_biz_qos = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The acceptBizQos to set. + * @return This builder for chaining. + */ + public Builder setAcceptBizQos(boolean value) { + + acceptBizQos_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Set to `true` to specify that caller has read and would like to
            +       * give consent to the [Terms for Agent Space quality of service].
            +       * 
            + * + * bool accept_biz_qos = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAcceptBizQos() { + bitField0_ = (bitField0_ & ~0x00000001); + acceptBizQos_ = false; + onChanged(); + return this; + } + + private boolean isBiz_; + + /** + * + * + *
            +       * Optional. Indicates if the current request is for Biz edition (= true) or
            +       * not
            +       * (= false).
            +       * 
            + * + * bool is_biz = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The isBiz. + */ + @java.lang.Override + public boolean getIsBiz() { + return isBiz_; + } + + /** + * + * + *
            +       * Optional. Indicates if the current request is for Biz edition (= true) or
            +       * not
            +       * (= false).
            +       * 
            + * + * bool is_biz = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The isBiz to set. + * @return This builder for chaining. + */ + public Builder setIsBiz(boolean value) { + + isBiz_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Indicates if the current request is for Biz edition (= true) or
            +       * not
            +       * (= false).
            +       * 
            + * + * bool is_biz = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIsBiz() { + bitField0_ = (bitField0_ & ~0x00000002); + isBiz_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams) + private static final com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams(); + } + + public static com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SaasParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.ProvisionProjectRequest.SaasParams + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -216,6 +867,69 @@ public com.google.protobuf.ByteString getDataUseTermsVersionBytes() { } } + public static final int SAAS_PARAMS_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams saasParams_; + + /** + * + * + *
            +   * Optional. Parameters for Agentspace.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the saasParams field is set. + */ + @java.lang.Override + public boolean hasSaasParams() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Parameters for Agentspace.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The saasParams. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + getSaasParams() { + return saasParams_ == null + ? com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + .getDefaultInstance() + : saasParams_; + } + + /** + * + * + *
            +   * Optional. Parameters for Agentspace.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParamsOrBuilder + getSaasParamsOrBuilder() { + return saasParams_ == null + ? com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + .getDefaultInstance() + : saasParams_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -239,6 +953,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataUseTermsVersion_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, dataUseTermsVersion_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getSaasParams()); + } getUnknownFields().writeTo(output); } @@ -257,6 +974,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataUseTermsVersion_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, dataUseTermsVersion_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSaasParams()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -276,6 +996,10 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (getAcceptDataUseTerms() != other.getAcceptDataUseTerms()) return false; if (!getDataUseTermsVersion().equals(other.getDataUseTermsVersion())) return false; + if (hasSaasParams() != other.hasSaasParams()) return false; + if (hasSaasParams()) { + if (!getSaasParams().equals(other.getSaasParams())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -293,6 +1017,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAcceptDataUseTerms()); hash = (37 * hash) + DATA_USE_TERMS_VERSION_FIELD_NUMBER; hash = (53 * hash) + getDataUseTermsVersion().hashCode(); + if (hasSaasParams()) { + hash = (37 * hash) + SAAS_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getSaasParams().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -426,10 +1154,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSaasParamsFieldBuilder(); + } } @java.lang.Override @@ -439,6 +1176,11 @@ public Builder clear() { name_ = ""; acceptDataUseTerms_ = false; dataUseTermsVersion_ = ""; + saasParams_ = null; + if (saasParamsBuilder_ != null) { + saasParamsBuilder_.dispose(); + saasParamsBuilder_ = null; + } return this; } @@ -486,6 +1228,12 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000004) != 0)) { result.dataUseTermsVersion_ = dataUseTermsVersion_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.saasParams_ = saasParamsBuilder_ == null ? saasParams_ : saasParamsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -516,6 +1264,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; onChanged(); } + if (other.hasSaasParams()) { + mergeSaasParams(other.getSaasParams()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -560,6 +1311,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + input.readMessage( + internalGetSaasParamsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -903,6 +1661,229 @@ public Builder setDataUseTermsVersionBytes(com.google.protobuf.ByteString value) return this; } + private com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams saasParams_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams, + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams.Builder, + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParamsOrBuilder> + saasParamsBuilder_; + + /** + * + * + *
            +     * Optional. Parameters for Agentspace.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the saasParams field is set. + */ + public boolean hasSaasParams() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Optional. Parameters for Agentspace.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The saasParams. + */ + public com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + getSaasParams() { + if (saasParamsBuilder_ == null) { + return saasParams_ == null + ? com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + .getDefaultInstance() + : saasParams_; + } else { + return saasParamsBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Parameters for Agentspace.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSaasParams( + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams value) { + if (saasParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + saasParams_ = value; + } else { + saasParamsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Parameters for Agentspace.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSaasParams( + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams.Builder + builderForValue) { + if (saasParamsBuilder_ == null) { + saasParams_ = builderForValue.build(); + } else { + saasParamsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Parameters for Agentspace.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSaasParams( + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams value) { + if (saasParamsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && saasParams_ != null + && saasParams_ + != com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + .getDefaultInstance()) { + getSaasParamsBuilder().mergeFrom(value); + } else { + saasParams_ = value; + } + } else { + saasParamsBuilder_.mergeFrom(value); + } + if (saasParams_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Parameters for Agentspace.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSaasParams() { + bitField0_ = (bitField0_ & ~0x00000008); + saasParams_ = null; + if (saasParamsBuilder_ != null) { + saasParamsBuilder_.dispose(); + saasParamsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Parameters for Agentspace.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams.Builder + getSaasParamsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetSaasParamsFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Parameters for Agentspace.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParamsOrBuilder + getSaasParamsOrBuilder() { + if (saasParamsBuilder_ != null) { + return saasParamsBuilder_.getMessageOrBuilder(); + } else { + return saasParams_ == null + ? com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams + .getDefaultInstance() + : saasParams_; + } + } + + /** + * + * + *
            +     * Optional. Parameters for Agentspace.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams, + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams.Builder, + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParamsOrBuilder> + internalGetSaasParamsFieldBuilder() { + if (saasParamsBuilder_ == null) { + saasParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams, + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams.Builder, + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest + .SaasParamsOrBuilder>(getSaasParams(), getParentForChildren(), isClean()); + saasParams_ = null; + } + return saasParamsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ProvisionProjectRequest) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProvisionProjectRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProvisionProjectRequestOrBuilder.java index 454dba43aa21..7baca2364cbe 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProvisionProjectRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ProvisionProjectRequestOrBuilder.java @@ -108,4 +108,48 @@ public interface ProvisionProjectRequestOrBuilder * @return The bytes for dataUseTermsVersion. */ com.google.protobuf.ByteString getDataUseTermsVersionBytes(); + + /** + * + * + *
            +   * Optional. Parameters for Agentspace.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the saasParams field is set. + */ + boolean hasSaasParams(); + + /** + * + * + *
            +   * Optional. Parameters for Agentspace.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The saasParams. + */ + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams getSaasParams(); + + /** + * + * + *
            +   * Optional. Parameters for Agentspace.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParams saas_params = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.ProvisionProjectRequest.SaasParamsOrBuilder + getSaasParamsOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeIdentityMappingsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeIdentityMappingsRequest.java new file mode 100644 index 000000000000..fdac0da376c0 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeIdentityMappingsRequest.java @@ -0,0 +1,2651 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for
            + * [IdentityMappingStoreService.PurgeIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.PurgeIdentityMappings]
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest} + */ +@com.google.protobuf.Generated +public final class PurgeIdentityMappingsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest) + PurgeIdentityMappingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PurgeIdentityMappingsRequest"); + } + + // Use PurgeIdentityMappingsRequest.newBuilder() to construct. + private PurgeIdentityMappingsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PurgeIdentityMappingsRequest() { + identityMappingStore_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.class, + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.Builder.class); + } + + public interface InlineSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * A maximum of 10000 entries can be purged at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + java.util.List + getIdentityMappingEntriesList(); + + /** + * + * + *
            +     * A maximum of 10000 entries can be purged at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry getIdentityMappingEntries( + int index); + + /** + * + * + *
            +     * A maximum of 10000 entries can be purged at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + int getIdentityMappingEntriesCount(); + + /** + * + * + *
            +     * A maximum of 10000 entries can be purged at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + java.util.List + getIdentityMappingEntriesOrBuilderList(); + + /** + * + * + *
            +     * A maximum of 10000 entries can be purged at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder + getIdentityMappingEntriesOrBuilder(int index); + } + + /** + * + * + *
            +   * The inline source to purge identity mapping entries from.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource} + */ + public static final class InlineSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource) + InlineSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InlineSource"); + } + + // Use InlineSource.newBuilder() to construct. + private InlineSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InlineSource() { + identityMappingEntries_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_InlineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + .class, + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + .Builder.class); + } + + public static final int IDENTITY_MAPPING_ENTRIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + identityMappingEntries_; + + /** + * + * + *
            +     * A maximum of 10000 entries can be purged at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + @java.lang.Override + public java.util.List + getIdentityMappingEntriesList() { + return identityMappingEntries_; + } + + /** + * + * + *
            +     * A maximum of 10000 entries can be purged at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder> + getIdentityMappingEntriesOrBuilderList() { + return identityMappingEntries_; + } + + /** + * + * + *
            +     * A maximum of 10000 entries can be purged at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + @java.lang.Override + public int getIdentityMappingEntriesCount() { + return identityMappingEntries_.size(); + } + + /** + * + * + *
            +     * A maximum of 10000 entries can be purged at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry getIdentityMappingEntries( + int index) { + return identityMappingEntries_.get(index); + } + + /** + * + * + *
            +     * A maximum of 10000 entries can be purged at one time
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder + getIdentityMappingEntriesOrBuilder(int index) { + return identityMappingEntries_.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 < identityMappingEntries_.size(); i++) { + output.writeMessage(1, identityMappingEntries_.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 < identityMappingEntries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, identityMappingEntries_.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.v1beta.PurgeIdentityMappingsRequest.InlineSource)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource other = + (com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource) obj; + + if (!getIdentityMappingEntriesList().equals(other.getIdentityMappingEntriesList())) + 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 (getIdentityMappingEntriesCount() > 0) { + hash = (37 * hash) + IDENTITY_MAPPING_ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getIdentityMappingEntriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.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.v1beta.PurgeIdentityMappingsRequest.InlineSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.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.v1beta.PurgeIdentityMappingsRequest.InlineSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.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.v1beta.PurgeIdentityMappingsRequest.InlineSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * The inline source to purge identity mapping entries from.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource) + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_InlineSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_InlineSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + .class, + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (identityMappingEntriesBuilder_ == null) { + identityMappingEntries_ = java.util.Collections.emptyList(); + } else { + identityMappingEntries_ = null; + identityMappingEntriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_InlineSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + build() { + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + buildPartial() { + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource result = + new com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + result) { + if (identityMappingEntriesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + identityMappingEntries_ = + java.util.Collections.unmodifiableList(identityMappingEntries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.identityMappingEntries_ = identityMappingEntries_; + } else { + result.identityMappingEntries_ = identityMappingEntriesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource other) { + if (other + == com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + .getDefaultInstance()) return this; + if (identityMappingEntriesBuilder_ == null) { + if (!other.identityMappingEntries_.isEmpty()) { + if (identityMappingEntries_.isEmpty()) { + identityMappingEntries_ = other.identityMappingEntries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.addAll(other.identityMappingEntries_); + } + onChanged(); + } + } else { + if (!other.identityMappingEntries_.isEmpty()) { + if (identityMappingEntriesBuilder_.isEmpty()) { + identityMappingEntriesBuilder_.dispose(); + identityMappingEntriesBuilder_ = null; + identityMappingEntries_ = other.identityMappingEntries_; + bitField0_ = (bitField0_ & ~0x00000001); + identityMappingEntriesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetIdentityMappingEntriesFieldBuilder() + : null; + } else { + identityMappingEntriesBuilder_.addAllMessages(other.identityMappingEntries_); + } + } + } + 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.v1beta.IdentityMappingEntry m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.parser(), + extensionRegistry); + if (identityMappingEntriesBuilder_ == null) { + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.add(m); + } else { + identityMappingEntriesBuilder_.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 + identityMappingEntries_ = java.util.Collections.emptyList(); + + private void ensureIdentityMappingEntriesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + identityMappingEntries_ = + new java.util.ArrayList( + identityMappingEntries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder> + identityMappingEntriesBuilder_; + + /** + * + * + *
            +       * A maximum of 10000 entries can be purged at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public java.util.List + getIdentityMappingEntriesList() { + if (identityMappingEntriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(identityMappingEntries_); + } else { + return identityMappingEntriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be purged at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public int getIdentityMappingEntriesCount() { + if (identityMappingEntriesBuilder_ == null) { + return identityMappingEntries_.size(); + } else { + return identityMappingEntriesBuilder_.getCount(); + } + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be purged at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry getIdentityMappingEntries( + int index) { + if (identityMappingEntriesBuilder_ == null) { + return identityMappingEntries_.get(index); + } else { + return identityMappingEntriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be purged at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder setIdentityMappingEntries( + int index, com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry value) { + if (identityMappingEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.set(index, value); + onChanged(); + } else { + identityMappingEntriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be purged at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder setIdentityMappingEntries( + int index, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder builderForValue) { + if (identityMappingEntriesBuilder_ == null) { + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.set(index, builderForValue.build()); + onChanged(); + } else { + identityMappingEntriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be purged at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder addIdentityMappingEntries( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry value) { + if (identityMappingEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.add(value); + onChanged(); + } else { + identityMappingEntriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be purged at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder addIdentityMappingEntries( + int index, com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry value) { + if (identityMappingEntriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.add(index, value); + onChanged(); + } else { + identityMappingEntriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be purged at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder addIdentityMappingEntries( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder builderForValue) { + if (identityMappingEntriesBuilder_ == null) { + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.add(builderForValue.build()); + onChanged(); + } else { + identityMappingEntriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be purged at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder addIdentityMappingEntries( + int index, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder builderForValue) { + if (identityMappingEntriesBuilder_ == null) { + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.add(index, builderForValue.build()); + onChanged(); + } else { + identityMappingEntriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be purged at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder addAllIdentityMappingEntries( + java.lang.Iterable + values) { + if (identityMappingEntriesBuilder_ == null) { + ensureIdentityMappingEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, identityMappingEntries_); + onChanged(); + } else { + identityMappingEntriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be purged at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder clearIdentityMappingEntries() { + if (identityMappingEntriesBuilder_ == null) { + identityMappingEntries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + identityMappingEntriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be purged at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public Builder removeIdentityMappingEntries(int index) { + if (identityMappingEntriesBuilder_ == null) { + ensureIdentityMappingEntriesIsMutable(); + identityMappingEntries_.remove(index); + onChanged(); + } else { + identityMappingEntriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be purged at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder + getIdentityMappingEntriesBuilder(int index) { + return internalGetIdentityMappingEntriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be purged at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder + getIdentityMappingEntriesOrBuilder(int index) { + if (identityMappingEntriesBuilder_ == null) { + return identityMappingEntries_.get(index); + } else { + return identityMappingEntriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be purged at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder> + getIdentityMappingEntriesOrBuilderList() { + if (identityMappingEntriesBuilder_ != null) { + return identityMappingEntriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(identityMappingEntries_); + } + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be purged at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder + addIdentityMappingEntriesBuilder() { + return internalGetIdentityMappingEntriesFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.getDefaultInstance()); + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be purged at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder + addIdentityMappingEntriesBuilder(int index) { + return internalGetIdentityMappingEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.getDefaultInstance()); + } + + /** + * + * + *
            +       * A maximum of 10000 entries can be purged at one time
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.IdentityMappingEntry identity_mapping_entries = 1; + * + */ + public java.util.List + getIdentityMappingEntriesBuilderList() { + return internalGetIdentityMappingEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder> + internalGetIdentityMappingEntriesFieldBuilder() { + if (identityMappingEntriesBuilder_ == null) { + identityMappingEntriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry.Builder, + com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOrBuilder>( + identityMappingEntries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + identityMappingEntries_ = null; + } + return identityMappingEntriesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource) + private static final com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest + .InlineSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource(); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.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.v1beta.PurgeIdentityMappingsRequest.InlineSource + 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 { + INLINE_SOURCE(2), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: + return INLINE_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 = 2; + + /** + * + * + *
            +   * The inline source to purge identity mapping entries from.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 2; + } + + /** + * + * + *
            +   * The inline source to purge identity mapping entries from.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + getInlineSource() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + .getDefaultInstance(); + } + + /** + * + * + *
            +   * The inline source to purge identity mapping entries from.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource inline_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSourceOrBuilder + getInlineSourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + .getDefaultInstance(); + } + + public static final int IDENTITY_MAPPING_STORE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object identityMappingStore_ = ""; + + /** + * + * + *
            +   * Required. The name of the Identity Mapping Store to purge Identity Mapping
            +   * Entries from. Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +   * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The identityMappingStore. + */ + @java.lang.Override + public java.lang.String getIdentityMappingStore() { + java.lang.Object ref = identityMappingStore_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityMappingStore_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The name of the Identity Mapping Store to purge Identity Mapping
            +   * Entries from. Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +   * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for identityMappingStore. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentityMappingStoreBytes() { + java.lang.Object ref = identityMappingStore_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityMappingStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
            +   * Filter matching identity mappings to purge.
            +   * The eligible field for filtering is:
            +   *
            +   * * `update_time`: in ISO 8601 "zulu" format.
            +   * * `external_id`
            +   *
            +   * Examples:
            +   *
            +   * * Deleting all identity mappings updated in a time range:
            +   * `update_time > "2012-04-23T18:25:43.511Z" AND update_time <
            +   * "2012-04-23T18:30:43.511Z"`
            +   * * Deleting all identity mappings for a given external_id:
            +   * `external_id = "id1"`
            +   * * Deleting all identity mappings inside an identity mapping store:
            +   * `*`
            +   *
            +   * The filtering fields are assumed to have an implicit AND.
            +   * Should not be used with source. An error will be thrown, if both are
            +   * provided.
            +   * 
            + * + * 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 matching identity mappings to purge.
            +   * The eligible field for filtering is:
            +   *
            +   * * `update_time`: in ISO 8601 "zulu" format.
            +   * * `external_id`
            +   *
            +   * Examples:
            +   *
            +   * * Deleting all identity mappings updated in a time range:
            +   * `update_time > "2012-04-23T18:25:43.511Z" AND update_time <
            +   * "2012-04-23T18:30:43.511Z"`
            +   * * Deleting all identity mappings for a given external_id:
            +   * `external_id = "id1"`
            +   * * Deleting all identity mappings inside an identity mapping store:
            +   * `*`
            +   *
            +   * The filtering fields are assumed to have an implicit AND.
            +   * Should not be used with source. An error will be thrown, if both are
            +   * provided.
            +   * 
            + * + * 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 FORCE_FIELD_NUMBER = 4; + private boolean force_ = false; + + /** + * + * + *
            +   * Actually performs the purge. If `force` is set to false, return the
            +   * expected purge count without deleting any identity mappings. This field is
            +   * only supported for purge with filter. For input source this field is
            +   * ignored and data will be purged regardless of the value of this field.
            +   * 
            + * + * optional bool force = 4; + * + * @return Whether the force field is set. + */ + @java.lang.Override + public boolean hasForce() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Actually performs the purge. If `force` is set to false, return the
            +   * expected purge count without deleting any identity mappings. This field is
            +   * only supported for purge with filter. For input source this field is
            +   * ignored and data will be purged regardless of the value of this field.
            +   * 
            + * + * optional bool force = 4; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identityMappingStore_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, identityMappingStore_); + } + if (sourceCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource) + source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, filter_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(4, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identityMappingStore_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, identityMappingStore_); + } + if (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource) + source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, filter_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest other = + (com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest) obj; + + if (!getIdentityMappingStore().equals(other.getIdentityMappingStore())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (hasForce() != other.hasForce()) return false; + if (hasForce()) { + if (getForce() != other.getForce()) return false; + } + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getInlineSource().equals(other.getInlineSource())) 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) + IDENTITY_MAPPING_STORE_FIELD_NUMBER; + hash = (53 * hash) + getIdentityMappingStore().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + if (hasForce()) { + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + } + switch (sourceCase_) { + case 2: + hash = (37 * hash) + INLINE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getInlineSource().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest 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.v1beta.PurgeIdentityMappingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest parseFrom( + 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.v1beta.PurgeIdentityMappingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [IdentityMappingStoreService.PurgeIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.PurgeIdentityMappings]
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest) + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.class, + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (inlineSourceBuilder_ != null) { + inlineSourceBuilder_.clear(); + } + identityMappingStore_ = ""; + filter_ = ""; + force_ = false; + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_PurgeIdentityMappingsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest build() { + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest result = + new com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.identityMappingStore_ = identityMappingStore_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.filter_ = filter_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.force_ = force_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 2 && inlineSourceBuilder_ != null) { + result.source_ = inlineSourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest + .getDefaultInstance()) return this; + if (!other.getIdentityMappingStore().isEmpty()) { + identityMappingStore_ = other.identityMappingStore_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasForce()) { + setForce(other.getForce()); + } + switch (other.getSourceCase()) { + case INLINE_SOURCE: + { + mergeInlineSource(other.getInlineSource()); + 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: + { + identityMappingStore_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetInlineSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + force_ = input.readBool(); + 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 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.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource, + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + .Builder, + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest + .InlineSourceOrBuilder> + inlineSourceBuilder_; + + /** + * + * + *
            +     * The inline source to purge identity mapping entries from.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + @java.lang.Override + public boolean hasInlineSource() { + return sourceCase_ == 2; + } + + /** + * + * + *
            +     * The inline source to purge identity mapping entries from.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + getInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + .getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return inlineSourceBuilder_.getMessage(); + } + return com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * The inline source to purge identity mapping entries from.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource inline_source = 2; + * + */ + public Builder setInlineSource( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource value) { + if (inlineSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + inlineSourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
            +     * The inline source to purge identity mapping entries from.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource inline_source = 2; + * + */ + public Builder setInlineSource( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource.Builder + builderForValue) { + if (inlineSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + inlineSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
            +     * The inline source to purge identity mapping entries from.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource inline_source = 2; + * + */ + public Builder mergeInlineSource( + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource value) { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2 + && source_ + != com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + .getDefaultInstance()) { + source_ = + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + .newBuilder( + (com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest + .InlineSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + inlineSourceBuilder_.mergeFrom(value); + } else { + inlineSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + + /** + * + * + *
            +     * The inline source to purge identity mapping entries from.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource inline_source = 2; + * + */ + public Builder clearInlineSource() { + if (inlineSourceBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + inlineSourceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The inline source to purge identity mapping entries from.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource inline_source = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource.Builder + getInlineSourceBuilder() { + return internalGetInlineSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * The inline source to purge identity mapping entries from.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource inline_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest + .InlineSourceOrBuilder + getInlineSourceOrBuilder() { + if ((sourceCase_ == 2) && (inlineSourceBuilder_ != null)) { + return inlineSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource) + source_; + } + return com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * The inline source to purge identity mapping entries from.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource inline_source = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource, + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + .Builder, + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest + .InlineSourceOrBuilder> + internalGetInlineSourceFieldBuilder() { + if (inlineSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + .getDefaultInstance(); + } + inlineSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource, + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + .Builder, + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest + .InlineSourceOrBuilder>( + (com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + return inlineSourceBuilder_; + } + + private java.lang.Object identityMappingStore_ = ""; + + /** + * + * + *
            +     * Required. The name of the Identity Mapping Store to purge Identity Mapping
            +     * Entries from. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +     * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The identityMappingStore. + */ + public java.lang.String getIdentityMappingStore() { + java.lang.Object ref = identityMappingStore_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identityMappingStore_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the Identity Mapping Store to purge Identity Mapping
            +     * Entries from. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +     * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for identityMappingStore. + */ + public com.google.protobuf.ByteString getIdentityMappingStoreBytes() { + java.lang.Object ref = identityMappingStore_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + identityMappingStore_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the Identity Mapping Store to purge Identity Mapping
            +     * Entries from. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +     * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The identityMappingStore to set. + * @return This builder for chaining. + */ + public Builder setIdentityMappingStore(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + identityMappingStore_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the Identity Mapping Store to purge Identity Mapping
            +     * Entries from. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +     * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearIdentityMappingStore() { + identityMappingStore_ = getDefaultInstance().getIdentityMappingStore(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the Identity Mapping Store to purge Identity Mapping
            +     * Entries from. Format:
            +     * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +     * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for identityMappingStore to set. + * @return This builder for chaining. + */ + public Builder setIdentityMappingStoreBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + identityMappingStore_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
            +     * Filter matching identity mappings to purge.
            +     * The eligible field for filtering is:
            +     *
            +     * * `update_time`: in ISO 8601 "zulu" format.
            +     * * `external_id`
            +     *
            +     * Examples:
            +     *
            +     * * Deleting all identity mappings updated in a time range:
            +     * `update_time > "2012-04-23T18:25:43.511Z" AND update_time <
            +     * "2012-04-23T18:30:43.511Z"`
            +     * * Deleting all identity mappings for a given external_id:
            +     * `external_id = "id1"`
            +     * * Deleting all identity mappings inside an identity mapping store:
            +     * `*`
            +     *
            +     * The filtering fields are assumed to have an implicit AND.
            +     * Should not be used with source. An error will be thrown, if both are
            +     * provided.
            +     * 
            + * + * 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 matching identity mappings to purge.
            +     * The eligible field for filtering is:
            +     *
            +     * * `update_time`: in ISO 8601 "zulu" format.
            +     * * `external_id`
            +     *
            +     * Examples:
            +     *
            +     * * Deleting all identity mappings updated in a time range:
            +     * `update_time > "2012-04-23T18:25:43.511Z" AND update_time <
            +     * "2012-04-23T18:30:43.511Z"`
            +     * * Deleting all identity mappings for a given external_id:
            +     * `external_id = "id1"`
            +     * * Deleting all identity mappings inside an identity mapping store:
            +     * `*`
            +     *
            +     * The filtering fields are assumed to have an implicit AND.
            +     * Should not be used with source. An error will be thrown, if both are
            +     * provided.
            +     * 
            + * + * 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 matching identity mappings to purge.
            +     * The eligible field for filtering is:
            +     *
            +     * * `update_time`: in ISO 8601 "zulu" format.
            +     * * `external_id`
            +     *
            +     * Examples:
            +     *
            +     * * Deleting all identity mappings updated in a time range:
            +     * `update_time > "2012-04-23T18:25:43.511Z" AND update_time <
            +     * "2012-04-23T18:30:43.511Z"`
            +     * * Deleting all identity mappings for a given external_id:
            +     * `external_id = "id1"`
            +     * * Deleting all identity mappings inside an identity mapping store:
            +     * `*`
            +     *
            +     * The filtering fields are assumed to have an implicit AND.
            +     * Should not be used with source. An error will be thrown, if both are
            +     * provided.
            +     * 
            + * + * 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 matching identity mappings to purge.
            +     * The eligible field for filtering is:
            +     *
            +     * * `update_time`: in ISO 8601 "zulu" format.
            +     * * `external_id`
            +     *
            +     * Examples:
            +     *
            +     * * Deleting all identity mappings updated in a time range:
            +     * `update_time > "2012-04-23T18:25:43.511Z" AND update_time <
            +     * "2012-04-23T18:30:43.511Z"`
            +     * * Deleting all identity mappings for a given external_id:
            +     * `external_id = "id1"`
            +     * * Deleting all identity mappings inside an identity mapping store:
            +     * `*`
            +     *
            +     * The filtering fields are assumed to have an implicit AND.
            +     * Should not be used with source. An error will be thrown, if both are
            +     * provided.
            +     * 
            + * + * string filter = 3; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Filter matching identity mappings to purge.
            +     * The eligible field for filtering is:
            +     *
            +     * * `update_time`: in ISO 8601 "zulu" format.
            +     * * `external_id`
            +     *
            +     * Examples:
            +     *
            +     * * Deleting all identity mappings updated in a time range:
            +     * `update_time > "2012-04-23T18:25:43.511Z" AND update_time <
            +     * "2012-04-23T18:30:43.511Z"`
            +     * * Deleting all identity mappings for a given external_id:
            +     * `external_id = "id1"`
            +     * * Deleting all identity mappings inside an identity mapping store:
            +     * `*`
            +     *
            +     * The filtering fields are assumed to have an implicit AND.
            +     * Should not be used with source. An error will be thrown, if both are
            +     * provided.
            +     * 
            + * + * 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 force_; + + /** + * + * + *
            +     * Actually performs the purge. If `force` is set to false, return the
            +     * expected purge count without deleting any identity mappings. This field is
            +     * only supported for purge with filter. For input source this field is
            +     * ignored and data will be purged regardless of the value of this field.
            +     * 
            + * + * optional bool force = 4; + * + * @return Whether the force field is set. + */ + @java.lang.Override + public boolean hasForce() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Actually performs the purge. If `force` is set to false, return the
            +     * expected purge count without deleting any identity mappings. This field is
            +     * only supported for purge with filter. For input source this field is
            +     * ignored and data will be purged regardless of the value of this field.
            +     * 
            + * + * optional bool force = 4; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
            +     * Actually performs the purge. If `force` is set to false, return the
            +     * expected purge count without deleting any identity mappings. This field is
            +     * only supported for purge with filter. For input source this field is
            +     * ignored and data will be purged regardless of the value of this field.
            +     * 
            + * + * optional bool force = 4; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Actually performs the purge. If `force` is set to false, return the
            +     * expected purge count without deleting any identity mappings. This field is
            +     * only supported for purge with filter. For input source this field is
            +     * ignored and data will be purged regardless of the value of this field.
            +     * 
            + * + * optional bool force = 4; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000008); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest) + private static final com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PurgeIdentityMappingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.PurgeIdentityMappingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeIdentityMappingsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeIdentityMappingsRequestOrBuilder.java new file mode 100644 index 000000000000..36f6ce292d56 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeIdentityMappingsRequestOrBuilder.java @@ -0,0 +1,203 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface PurgeIdentityMappingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The inline source to purge identity mapping entries from.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource inline_source = 2; + * + * + * @return Whether the inlineSource field is set. + */ + boolean hasInlineSource(); + + /** + * + * + *
            +   * The inline source to purge identity mapping entries from.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource inline_source = 2; + * + * + * @return The inlineSource. + */ + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource + getInlineSource(); + + /** + * + * + *
            +   * The inline source to purge identity mapping entries from.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSource inline_source = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.InlineSourceOrBuilder + getInlineSourceOrBuilder(); + + /** + * + * + *
            +   * Required. The name of the Identity Mapping Store to purge Identity Mapping
            +   * Entries from. Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +   * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The identityMappingStore. + */ + java.lang.String getIdentityMappingStore(); + + /** + * + * + *
            +   * Required. The name of the Identity Mapping Store to purge Identity Mapping
            +   * Entries from. Format:
            +   * `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}`
            +   * 
            + * + * + * string identity_mapping_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for identityMappingStore. + */ + com.google.protobuf.ByteString getIdentityMappingStoreBytes(); + + /** + * + * + *
            +   * Filter matching identity mappings to purge.
            +   * The eligible field for filtering is:
            +   *
            +   * * `update_time`: in ISO 8601 "zulu" format.
            +   * * `external_id`
            +   *
            +   * Examples:
            +   *
            +   * * Deleting all identity mappings updated in a time range:
            +   * `update_time > "2012-04-23T18:25:43.511Z" AND update_time <
            +   * "2012-04-23T18:30:43.511Z"`
            +   * * Deleting all identity mappings for a given external_id:
            +   * `external_id = "id1"`
            +   * * Deleting all identity mappings inside an identity mapping store:
            +   * `*`
            +   *
            +   * The filtering fields are assumed to have an implicit AND.
            +   * Should not be used with source. An error will be thrown, if both are
            +   * provided.
            +   * 
            + * + * string filter = 3; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Filter matching identity mappings to purge.
            +   * The eligible field for filtering is:
            +   *
            +   * * `update_time`: in ISO 8601 "zulu" format.
            +   * * `external_id`
            +   *
            +   * Examples:
            +   *
            +   * * Deleting all identity mappings updated in a time range:
            +   * `update_time > "2012-04-23T18:25:43.511Z" AND update_time <
            +   * "2012-04-23T18:30:43.511Z"`
            +   * * Deleting all identity mappings for a given external_id:
            +   * `external_id = "id1"`
            +   * * Deleting all identity mappings inside an identity mapping store:
            +   * `*`
            +   *
            +   * The filtering fields are assumed to have an implicit AND.
            +   * Should not be used with source. An error will be thrown, if both are
            +   * provided.
            +   * 
            + * + * string filter = 3; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
            +   * Actually performs the purge. If `force` is set to false, return the
            +   * expected purge count without deleting any identity mappings. This field is
            +   * only supported for purge with filter. For input source this field is
            +   * ignored and data will be purged regardless of the value of this field.
            +   * 
            + * + * optional bool force = 4; + * + * @return Whether the force field is set. + */ + boolean hasForce(); + + /** + * + * + *
            +   * Actually performs the purge. If `force` is set to false, return the
            +   * expected purge count without deleting any identity mappings. This field is
            +   * only supported for purge with filter. For input source this field is
            +   * ignored and data will be purged regardless of the value of this field.
            +   * 
            + * + * optional bool force = 4; + * + * @return The force. + */ + boolean getForce(); + + com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest.SourceCase getSourceCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsRequest.java index 2f62353bc2f4..221f229384be 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsRequest.java @@ -153,16 +153,20 @@ public com.google.protobuf.ByteString getParentBytes() { * * `userId`: Double quoted string. Specifying this will delete all events * associated with a user. * + * Note: This API only supports purging a max range of 30 days. + * * Examples: * * * Deleting all events in a time range: * `eventTime > "2012-04-23T18:25:43.511Z" * eventTime < "2012-04-23T18:30:43.511Z"` - * * Deleting specific eventType: - * `eventType = "search"` - * * Deleting all events for a specific visitor: - * `userPseudoId = "visitor1024"` - * * Deleting all events inside a DataStore: + * * Deleting specific eventType in a time range: + * `eventTime > "2012-04-23T18:25:43.511Z" + * eventTime < "2012-04-23T18:30:43.511Z" eventType = "search"` + * * Deleting all events for a specific visitor in a time range: + * `eventTime > "2012-04-23T18:25:43.511Z" + * eventTime < "2012-04-23T18:30:43.511Z" userPseudoId = "visitor1024"` + * * Deleting the past 30 days of events inside a DataStore: * `*` * * The filtering fields are assumed to have an implicit AND. @@ -201,16 +205,20 @@ public java.lang.String getFilter() { * * `userId`: Double quoted string. Specifying this will delete all events * associated with a user. * + * Note: This API only supports purging a max range of 30 days. + * * Examples: * * * Deleting all events in a time range: * `eventTime > "2012-04-23T18:25:43.511Z" * eventTime < "2012-04-23T18:30:43.511Z"` - * * Deleting specific eventType: - * `eventType = "search"` - * * Deleting all events for a specific visitor: - * `userPseudoId = "visitor1024"` - * * Deleting all events inside a DataStore: + * * Deleting specific eventType in a time range: + * `eventTime > "2012-04-23T18:25:43.511Z" + * eventTime < "2012-04-23T18:30:43.511Z" eventType = "search"` + * * Deleting all events for a specific visitor in a time range: + * `eventTime > "2012-04-23T18:25:43.511Z" + * eventTime < "2012-04-23T18:30:43.511Z" userPseudoId = "visitor1024"` + * * Deleting the past 30 days of events inside a DataStore: * `*` * * The filtering fields are assumed to have an implicit AND. @@ -766,16 +774,20 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * `userId`: Double quoted string. Specifying this will delete all events * associated with a user. * + * Note: This API only supports purging a max range of 30 days. + * * Examples: * * * Deleting all events in a time range: * `eventTime > "2012-04-23T18:25:43.511Z" * eventTime < "2012-04-23T18:30:43.511Z"` - * * Deleting specific eventType: - * `eventType = "search"` - * * Deleting all events for a specific visitor: - * `userPseudoId = "visitor1024"` - * * Deleting all events inside a DataStore: + * * Deleting specific eventType in a time range: + * `eventTime > "2012-04-23T18:25:43.511Z" + * eventTime < "2012-04-23T18:30:43.511Z" eventType = "search"` + * * Deleting all events for a specific visitor in a time range: + * `eventTime > "2012-04-23T18:25:43.511Z" + * eventTime < "2012-04-23T18:30:43.511Z" userPseudoId = "visitor1024"` + * * Deleting the past 30 days of events inside a DataStore: * `*` * * The filtering fields are assumed to have an implicit AND. @@ -813,16 +825,20 @@ public java.lang.String getFilter() { * * `userId`: Double quoted string. Specifying this will delete all events * associated with a user. * + * Note: This API only supports purging a max range of 30 days. + * * Examples: * * * Deleting all events in a time range: * `eventTime > "2012-04-23T18:25:43.511Z" * eventTime < "2012-04-23T18:30:43.511Z"` - * * Deleting specific eventType: - * `eventType = "search"` - * * Deleting all events for a specific visitor: - * `userPseudoId = "visitor1024"` - * * Deleting all events inside a DataStore: + * * Deleting specific eventType in a time range: + * `eventTime > "2012-04-23T18:25:43.511Z" + * eventTime < "2012-04-23T18:30:43.511Z" eventType = "search"` + * * Deleting all events for a specific visitor in a time range: + * `eventTime > "2012-04-23T18:25:43.511Z" + * eventTime < "2012-04-23T18:30:43.511Z" userPseudoId = "visitor1024"` + * * Deleting the past 30 days of events inside a DataStore: * `*` * * The filtering fields are assumed to have an implicit AND. @@ -860,16 +876,20 @@ public com.google.protobuf.ByteString getFilterBytes() { * * `userId`: Double quoted string. Specifying this will delete all events * associated with a user. * + * Note: This API only supports purging a max range of 30 days. + * * Examples: * * * Deleting all events in a time range: * `eventTime > "2012-04-23T18:25:43.511Z" * eventTime < "2012-04-23T18:30:43.511Z"` - * * Deleting specific eventType: - * `eventType = "search"` - * * Deleting all events for a specific visitor: - * `userPseudoId = "visitor1024"` - * * Deleting all events inside a DataStore: + * * Deleting specific eventType in a time range: + * `eventTime > "2012-04-23T18:25:43.511Z" + * eventTime < "2012-04-23T18:30:43.511Z" eventType = "search"` + * * Deleting all events for a specific visitor in a time range: + * `eventTime > "2012-04-23T18:25:43.511Z" + * eventTime < "2012-04-23T18:30:43.511Z" userPseudoId = "visitor1024"` + * * Deleting the past 30 days of events inside a DataStore: * `*` * * The filtering fields are assumed to have an implicit AND. @@ -906,16 +926,20 @@ public Builder setFilter(java.lang.String value) { * * `userId`: Double quoted string. Specifying this will delete all events * associated with a user. * + * Note: This API only supports purging a max range of 30 days. + * * Examples: * * * Deleting all events in a time range: * `eventTime > "2012-04-23T18:25:43.511Z" * eventTime < "2012-04-23T18:30:43.511Z"` - * * Deleting specific eventType: - * `eventType = "search"` - * * Deleting all events for a specific visitor: - * `userPseudoId = "visitor1024"` - * * Deleting all events inside a DataStore: + * * Deleting specific eventType in a time range: + * `eventTime > "2012-04-23T18:25:43.511Z" + * eventTime < "2012-04-23T18:30:43.511Z" eventType = "search"` + * * Deleting all events for a specific visitor in a time range: + * `eventTime > "2012-04-23T18:25:43.511Z" + * eventTime < "2012-04-23T18:30:43.511Z" userPseudoId = "visitor1024"` + * * Deleting the past 30 days of events inside a DataStore: * `*` * * The filtering fields are assumed to have an implicit AND. @@ -948,16 +972,20 @@ public Builder clearFilter() { * * `userId`: Double quoted string. Specifying this will delete all events * associated with a user. * + * Note: This API only supports purging a max range of 30 days. + * * Examples: * * * Deleting all events in a time range: * `eventTime > "2012-04-23T18:25:43.511Z" * eventTime < "2012-04-23T18:30:43.511Z"` - * * Deleting specific eventType: - * `eventType = "search"` - * * Deleting all events for a specific visitor: - * `userPseudoId = "visitor1024"` - * * Deleting all events inside a DataStore: + * * Deleting specific eventType in a time range: + * `eventTime > "2012-04-23T18:25:43.511Z" + * eventTime < "2012-04-23T18:30:43.511Z" eventType = "search"` + * * Deleting all events for a specific visitor in a time range: + * `eventTime > "2012-04-23T18:25:43.511Z" + * eventTime < "2012-04-23T18:30:43.511Z" userPseudoId = "visitor1024"` + * * Deleting the past 30 days of events inside a DataStore: * `*` * * The filtering fields are assumed to have an implicit AND. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsRequestOrBuilder.java index bf98480cd158..325a202d6a89 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/PurgeUserEventsRequestOrBuilder.java @@ -76,16 +76,20 @@ public interface PurgeUserEventsRequestOrBuilder * * `userId`: Double quoted string. Specifying this will delete all events * associated with a user. * + * Note: This API only supports purging a max range of 30 days. + * * Examples: * * * Deleting all events in a time range: * `eventTime > "2012-04-23T18:25:43.511Z" * eventTime < "2012-04-23T18:30:43.511Z"` - * * Deleting specific eventType: - * `eventType = "search"` - * * Deleting all events for a specific visitor: - * `userPseudoId = "visitor1024"` - * * Deleting all events inside a DataStore: + * * Deleting specific eventType in a time range: + * `eventTime > "2012-04-23T18:25:43.511Z" + * eventTime < "2012-04-23T18:30:43.511Z" eventType = "search"` + * * Deleting all events for a specific visitor in a time range: + * `eventTime > "2012-04-23T18:25:43.511Z" + * eventTime < "2012-04-23T18:30:43.511Z" userPseudoId = "visitor1024"` + * * Deleting the past 30 days of events inside a DataStore: * `*` * * The filtering fields are assumed to have an implicit AND. @@ -113,16 +117,20 @@ public interface PurgeUserEventsRequestOrBuilder * * `userId`: Double quoted string. Specifying this will delete all events * associated with a user. * + * Note: This API only supports purging a max range of 30 days. + * * Examples: * * * Deleting all events in a time range: * `eventTime > "2012-04-23T18:25:43.511Z" * eventTime < "2012-04-23T18:30:43.511Z"` - * * Deleting specific eventType: - * `eventType = "search"` - * * Deleting all events for a specific visitor: - * `userPseudoId = "visitor1024"` - * * Deleting all events inside a DataStore: + * * Deleting specific eventType in a time range: + * `eventTime > "2012-04-23T18:25:43.511Z" + * eventTime < "2012-04-23T18:30:43.511Z" eventType = "search"` + * * Deleting all events for a specific visitor in a time range: + * `eventTime > "2012-04-23T18:25:43.511Z" + * eventTime < "2012-04-23T18:30:43.511Z" userPseudoId = "visitor1024"` + * * Deleting the past 30 days of events inside a DataStore: * `*` * * The filtering fields are assumed to have an implicit AND. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankRequest.java index eda5fb18cd64..734507e92d28 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankRequest.java @@ -157,7 +157,7 @@ public com.google.protobuf.ByteString getRankingConfigBytes() { *
                * The identifier of the model to use. It is one of:
                *
            -   * * `semantic-ranker-512@latest`: Semantic ranking model with maxiumn input
            +   * * `semantic-ranker-512@latest`: Semantic ranking model with maximum input
                * token size 512.
                *
                * It is set to `semantic-ranker-512@latest` by default if unspecified.
            @@ -186,7 +186,7 @@ public java.lang.String getModel() {
                * 
                * The identifier of the model to use. It is one of:
                *
            -   * * `semantic-ranker-512@latest`: Semantic ranking model with maxiumn input
            +   * * `semantic-ranker-512@latest`: Semantic ranking model with maximum input
                * token size 512.
                *
                * It is set to `semantic-ranker-512@latest` by default if unspecified.
            @@ -291,7 +291,7 @@ public com.google.protobuf.ByteString getQueryBytes() {
                *
                *
                * 
            -   * Required. A list of records to rank. At most 200 records to rank.
            +   * Required. A list of records to rank.
                * 
            * * @@ -307,7 +307,7 @@ public java.util.List get * * *
            -   * Required. A list of records to rank. At most 200 records to rank.
            +   * Required. A list of records to rank.
                * 
            * * @@ -324,7 +324,7 @@ public java.util.List get * * *
            -   * Required. A list of records to rank. At most 200 records to rank.
            +   * Required. A list of records to rank.
                * 
            * * @@ -340,7 +340,7 @@ public int getRecordsCount() { * * *
            -   * Required. A list of records to rank. At most 200 records to rank.
            +   * Required. A list of records to rank.
                * 
            * * @@ -356,7 +356,7 @@ public com.google.cloud.discoveryengine.v1beta.RankingRecord getRecords(int inde * * *
            -   * Required. A list of records to rank. At most 200 records to rank.
            +   * Required. A list of records to rank.
                * 
            * * @@ -1232,7 +1232,7 @@ public Builder setRankingConfigBytes(com.google.protobuf.ByteString value) { *
                  * The identifier of the model to use. It is one of:
                  *
            -     * * `semantic-ranker-512@latest`: Semantic ranking model with maxiumn input
            +     * * `semantic-ranker-512@latest`: Semantic ranking model with maximum input
                  * token size 512.
                  *
                  * It is set to `semantic-ranker-512@latest` by default if unspecified.
            @@ -1260,7 +1260,7 @@ public java.lang.String getModel() {
                  * 
                  * The identifier of the model to use. It is one of:
                  *
            -     * * `semantic-ranker-512@latest`: Semantic ranking model with maxiumn input
            +     * * `semantic-ranker-512@latest`: Semantic ranking model with maximum input
                  * token size 512.
                  *
                  * It is set to `semantic-ranker-512@latest` by default if unspecified.
            @@ -1288,7 +1288,7 @@ public com.google.protobuf.ByteString getModelBytes() {
                  * 
                  * The identifier of the model to use. It is one of:
                  *
            -     * * `semantic-ranker-512@latest`: Semantic ranking model with maxiumn input
            +     * * `semantic-ranker-512@latest`: Semantic ranking model with maximum input
                  * token size 512.
                  *
                  * It is set to `semantic-ranker-512@latest` by default if unspecified.
            @@ -1315,7 +1315,7 @@ public Builder setModel(java.lang.String value) {
                  * 
                  * The identifier of the model to use. It is one of:
                  *
            -     * * `semantic-ranker-512@latest`: Semantic ranking model with maxiumn input
            +     * * `semantic-ranker-512@latest`: Semantic ranking model with maximum input
                  * token size 512.
                  *
                  * It is set to `semantic-ranker-512@latest` by default if unspecified.
            @@ -1338,7 +1338,7 @@ public Builder clearModel() {
                  * 
                  * The identifier of the model to use. It is one of:
                  *
            -     * * `semantic-ranker-512@latest`: Semantic ranking model with maxiumn input
            +     * * `semantic-ranker-512@latest`: Semantic ranking model with maximum input
                  * token size 512.
                  *
                  * It is set to `semantic-ranker-512@latest` by default if unspecified.
            @@ -1552,7 +1552,7 @@ private void ensureRecordsIsMutable() {
                  *
                  *
                  * 
            -     * Required. A list of records to rank. At most 200 records to rank.
            +     * Required. A list of records to rank.
                  * 
            * * @@ -1571,7 +1571,7 @@ public java.util.List get * * *
            -     * Required. A list of records to rank. At most 200 records to rank.
            +     * Required. A list of records to rank.
                  * 
            * * @@ -1590,7 +1590,7 @@ public int getRecordsCount() { * * *
            -     * Required. A list of records to rank. At most 200 records to rank.
            +     * Required. A list of records to rank.
                  * 
            * * @@ -1609,7 +1609,7 @@ public com.google.cloud.discoveryengine.v1beta.RankingRecord getRecords(int inde * * *
            -     * Required. A list of records to rank. At most 200 records to rank.
            +     * Required. A list of records to rank.
                  * 
            * * @@ -1635,7 +1635,7 @@ public Builder setRecords( * * *
            -     * Required. A list of records to rank. At most 200 records to rank.
            +     * Required. A list of records to rank.
                  * 
            * * @@ -1658,7 +1658,7 @@ public Builder setRecords( * * *
            -     * Required. A list of records to rank. At most 200 records to rank.
            +     * Required. A list of records to rank.
                  * 
            * * @@ -1683,7 +1683,7 @@ public Builder addRecords(com.google.cloud.discoveryengine.v1beta.RankingRecord * * *
            -     * Required. A list of records to rank. At most 200 records to rank.
            +     * Required. A list of records to rank.
                  * 
            * * @@ -1709,7 +1709,7 @@ public Builder addRecords( * * *
            -     * Required. A list of records to rank. At most 200 records to rank.
            +     * Required. A list of records to rank.
                  * 
            * * @@ -1732,7 +1732,7 @@ public Builder addRecords( * * *
            -     * Required. A list of records to rank. At most 200 records to rank.
            +     * Required. A list of records to rank.
                  * 
            * * @@ -1755,7 +1755,7 @@ public Builder addRecords( * * *
            -     * Required. A list of records to rank. At most 200 records to rank.
            +     * Required. A list of records to rank.
                  * 
            * * @@ -1779,7 +1779,7 @@ public Builder addAllRecords( * * *
            -     * Required. A list of records to rank. At most 200 records to rank.
            +     * Required. A list of records to rank.
                  * 
            * * @@ -1801,7 +1801,7 @@ public Builder clearRecords() { * * *
            -     * Required. A list of records to rank. At most 200 records to rank.
            +     * Required. A list of records to rank.
                  * 
            * * @@ -1823,7 +1823,7 @@ public Builder removeRecords(int index) { * * *
            -     * Required. A list of records to rank. At most 200 records to rank.
            +     * Required. A list of records to rank.
                  * 
            * * @@ -1839,7 +1839,7 @@ public com.google.cloud.discoveryengine.v1beta.RankingRecord.Builder getRecordsB * * *
            -     * Required. A list of records to rank. At most 200 records to rank.
            +     * Required. A list of records to rank.
                  * 
            * * @@ -1859,7 +1859,7 @@ public com.google.cloud.discoveryengine.v1beta.RankingRecordOrBuilder getRecords * * *
            -     * Required. A list of records to rank. At most 200 records to rank.
            +     * Required. A list of records to rank.
                  * 
            * * @@ -1879,7 +1879,7 @@ public com.google.cloud.discoveryengine.v1beta.RankingRecordOrBuilder getRecords * * *
            -     * Required. A list of records to rank. At most 200 records to rank.
            +     * Required. A list of records to rank.
                  * 
            * * @@ -1895,7 +1895,7 @@ public com.google.cloud.discoveryengine.v1beta.RankingRecord.Builder addRecordsB * * *
            -     * Required. A list of records to rank. At most 200 records to rank.
            +     * Required. A list of records to rank.
                  * 
            * * @@ -1913,7 +1913,7 @@ public com.google.cloud.discoveryengine.v1beta.RankingRecord.Builder addRecordsB * * *
            -     * Required. A list of records to rank. At most 200 records to rank.
            +     * Required. A list of records to rank.
                  * 
            * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankRequestOrBuilder.java index e962496514f6..6f4789b6bc6e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankRequestOrBuilder.java @@ -64,7 +64,7 @@ public interface RankRequestOrBuilder *
                * The identifier of the model to use. It is one of:
                *
            -   * * `semantic-ranker-512@latest`: Semantic ranking model with maxiumn input
            +   * * `semantic-ranker-512@latest`: Semantic ranking model with maximum input
                * token size 512.
                *
                * It is set to `semantic-ranker-512@latest` by default if unspecified.
            @@ -82,7 +82,7 @@ public interface RankRequestOrBuilder
                * 
                * The identifier of the model to use. It is one of:
                *
            -   * * `semantic-ranker-512@latest`: Semantic ranking model with maxiumn input
            +   * * `semantic-ranker-512@latest`: Semantic ranking model with maximum input
                * token size 512.
                *
                * It is set to `semantic-ranker-512@latest` by default if unspecified.
            @@ -138,7 +138,7 @@ public interface RankRequestOrBuilder
                *
                *
                * 
            -   * Required. A list of records to rank. At most 200 records to rank.
            +   * Required. A list of records to rank.
                * 
            * * @@ -151,7 +151,7 @@ public interface RankRequestOrBuilder * * *
            -   * Required. A list of records to rank. At most 200 records to rank.
            +   * Required. A list of records to rank.
                * 
            * * @@ -164,7 +164,7 @@ public interface RankRequestOrBuilder * * *
            -   * Required. A list of records to rank. At most 200 records to rank.
            +   * Required. A list of records to rank.
                * 
            * * @@ -177,7 +177,7 @@ public interface RankRequestOrBuilder * * *
            -   * Required. A list of records to rank. At most 200 records to rank.
            +   * Required. A list of records to rank.
                * 
            * * @@ -191,7 +191,7 @@ public interface RankRequestOrBuilder * * *
            -   * Required. A list of records to rank. At most 200 records to rank.
            +   * Required. A list of records to rank.
                * 
            * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankServiceProto.java index 308715a83f7e..15105cfa426d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankServiceProto.java @@ -91,19 +91,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001\"S\n" + "\014RankResponse\022C\n" + "\007records\030\005 \003(\01322.google" - + ".cloud.discoveryengine.v1beta.RankingRecord2\241\002\n" + + ".cloud.discoveryengine.v1beta.RankingRecord2\237\003\n" + "\013RankService\022\275\001\n" + "\004Rank\0220.google.cloud.discoveryengine.v1beta.RankRequest\0321" + ".google.cloud.discoveryengine.v1beta.Ran" + "kResponse\"P\202\323\344\223\002J\"E/v1beta/{ranking_conf" + "ig=projects/*/locations/*/rankingConfigs" - + "/*}:rank:\001*\032R\312A\036discoveryengine.googleap" - + "is.com\322A.https://www.googleapis.com/auth/cloud-platformB\227\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB\020RankServiceProtoP\001Z" - + "Qcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryengine" - + "pb\242\002\017DISCOVERYENGINE\252\002#Google.Cloud.Disc" - + "overyEngine.V1Beta\312\002#Google\\Cloud\\Discov" - + "eryEngine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" + + "/*}:rank:\001*\032\317\001\312A\036discoveryengine.googlea" + + "pis.com\322A\252\001https://www.googleapis.com/au" + + "th/cloud-platform,https://www.googleapis.com/auth/discoveryengine.readwrite,http" + + "s://www.googleapis.com/auth/discoveryengine.serving.readwriteB\227\002\n" + + "\'com.google.cloud.discoveryengine.v1betaB\020RankServicePr" + + "otoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discovery" + + "enginepb\242\002\017DISCOVERYENGINE\252\002#Google.Clou" + + "d.DiscoveryEngine.V1Beta\312\002#Google\\Cloud\\" + + "DiscoveryEngine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankingRecord.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankingRecord.java index bc45e0ff6e68..bb92af3d422e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankingRecord.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankingRecord.java @@ -257,6 +257,8 @@ public com.google.protobuf.ByteString getContentBytes() { * *
                * The score of this record based on the given query and selected model.
            +   * The score will be rounded to 4 decimal places. If the score is close to 0,
            +   * it will be rounded to 0.00001 to avoid returning unset.
                * 
            * * float score = 4; @@ -1032,6 +1034,8 @@ public Builder setContentBytes(com.google.protobuf.ByteString value) { * *
                  * The score of this record based on the given query and selected model.
            +     * The score will be rounded to 4 decimal places. If the score is close to 0,
            +     * it will be rounded to 0.00001 to avoid returning unset.
                  * 
            * * float score = 4; @@ -1048,6 +1052,8 @@ public float getScore() { * *
                  * The score of this record based on the given query and selected model.
            +     * The score will be rounded to 4 decimal places. If the score is close to 0,
            +     * it will be rounded to 0.00001 to avoid returning unset.
                  * 
            * * float score = 4; @@ -1068,6 +1074,8 @@ public Builder setScore(float value) { * *
                  * The score of this record based on the given query and selected model.
            +     * The score will be rounded to 4 decimal places. If the score is close to 0,
            +     * it will be rounded to 0.00001 to avoid returning unset.
                  * 
            * * float score = 4; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankingRecordOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankingRecordOrBuilder.java index 79ce3032d012..a015bc464643 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankingRecordOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RankingRecordOrBuilder.java @@ -125,6 +125,8 @@ public interface RankingRecordOrBuilder * *
                * The score of this record based on the given query and selected model.
            +   * The score will be rounded to 4 decimal places. If the score is close to 0,
            +   * it will be rounded to 0.00001 to avoid returning unset.
                * 
            * * float score = 4; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequest.java index 419f26f9c0b6..58f759b80e2d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequest.java @@ -316,9 +316,9 @@ public int getPageSize() { * attribute-based expressions are expected instead of the above described * tag-based syntax. Examples: * - * * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie")) + * * (language: ANY("en", "es")) AND NOT (categories: ANY("Movie")) * * (available: true) AND - * (launguage: ANY("en", "es")) OR (categories: ANY("Movie")) + * (language: ANY("en", "es")) OR (categories: ANY("Movie")) * * If your filter blocks all results, the API returns generic * (unfiltered) popular Documents. If you only want results strictly matching @@ -366,9 +366,9 @@ public java.lang.String getFilter() { * attribute-based expressions are expected instead of the above described * tag-based syntax. Examples: * - * * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie")) + * * (language: ANY("en", "es")) AND NOT (categories: ANY("Movie")) * * (available: true) AND - * (launguage: ANY("en", "es")) OR (categories: ANY("Movie")) + * (language: ANY("en", "es")) OR (categories: ANY("Movie")) * * If your filter blocks all results, the API returns generic * (unfiltered) popular Documents. If you only want results strictly matching @@ -1944,9 +1944,9 @@ public Builder clearPageSize() { * attribute-based expressions are expected instead of the above described * tag-based syntax. Examples: * - * * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie")) + * * (language: ANY("en", "es")) AND NOT (categories: ANY("Movie")) * * (available: true) AND - * (launguage: ANY("en", "es")) OR (categories: ANY("Movie")) + * (language: ANY("en", "es")) OR (categories: ANY("Movie")) * * If your filter blocks all results, the API returns generic * (unfiltered) popular Documents. If you only want results strictly matching @@ -1993,9 +1993,9 @@ public java.lang.String getFilter() { * attribute-based expressions are expected instead of the above described * tag-based syntax. Examples: * - * * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie")) + * * (language: ANY("en", "es")) AND NOT (categories: ANY("Movie")) * * (available: true) AND - * (launguage: ANY("en", "es")) OR (categories: ANY("Movie")) + * (language: ANY("en", "es")) OR (categories: ANY("Movie")) * * If your filter blocks all results, the API returns generic * (unfiltered) popular Documents. If you only want results strictly matching @@ -2042,9 +2042,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * attribute-based expressions are expected instead of the above described * tag-based syntax. Examples: * - * * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie")) + * * (language: ANY("en", "es")) AND NOT (categories: ANY("Movie")) * * (available: true) AND - * (launguage: ANY("en", "es")) OR (categories: ANY("Movie")) + * (language: ANY("en", "es")) OR (categories: ANY("Movie")) * * If your filter blocks all results, the API returns generic * (unfiltered) popular Documents. If you only want results strictly matching @@ -2090,9 +2090,9 @@ public Builder setFilter(java.lang.String value) { * attribute-based expressions are expected instead of the above described * tag-based syntax. Examples: * - * * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie")) + * * (language: ANY("en", "es")) AND NOT (categories: ANY("Movie")) * * (available: true) AND - * (launguage: ANY("en", "es")) OR (categories: ANY("Movie")) + * (language: ANY("en", "es")) OR (categories: ANY("Movie")) * * If your filter blocks all results, the API returns generic * (unfiltered) popular Documents. If you only want results strictly matching @@ -2134,9 +2134,9 @@ public Builder clearFilter() { * attribute-based expressions are expected instead of the above described * tag-based syntax. Examples: * - * * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie")) + * * (language: ANY("en", "es")) AND NOT (categories: ANY("Movie")) * * (available: true) AND - * (launguage: ANY("en", "es")) OR (categories: ANY("Movie")) + * (language: ANY("en", "es")) OR (categories: ANY("Movie")) * * If your filter blocks all results, the API returns generic * (unfiltered) popular Documents. If you only want results strictly matching diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequestOrBuilder.java index 49d07d198be9..1d1886f37e20 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendRequestOrBuilder.java @@ -202,9 +202,9 @@ public interface RecommendRequestOrBuilder * attribute-based expressions are expected instead of the above described * tag-based syntax. Examples: * - * * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie")) + * * (language: ANY("en", "es")) AND NOT (categories: ANY("Movie")) * * (available: true) AND - * (launguage: ANY("en", "es")) OR (categories: ANY("Movie")) + * (language: ANY("en", "es")) OR (categories: ANY("Movie")) * * If your filter blocks all results, the API returns generic * (unfiltered) popular Documents. If you only want results strictly matching @@ -241,9 +241,9 @@ public interface RecommendRequestOrBuilder * attribute-based expressions are expected instead of the above described * tag-based syntax. Examples: * - * * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie")) + * * (language: ANY("en", "es")) AND NOT (categories: ANY("Movie")) * * (available: true) AND - * (launguage: ANY("en", "es")) OR (categories: ANY("Movie")) + * (language: ANY("en", "es")) OR (categories: ANY("Movie")) * * If your filter blocks all results, the API returns generic * (unfiltered) popular Documents. If you only want results strictly matching diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceProto.java index 4527ffbe4ce4..8d175f7d338a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecommendationServiceProto.java @@ -111,7 +111,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "onse.RecommendationResult.MetadataEntry\032G\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022%\n" - + "\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028\0012\243\004\n" + + "\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028\0012\241\005\n" + "\025RecommendationService\022\265\003\n" + "\tRecommend\0225.google.cloud.discoveryengine.v1beta.Recommend" + "Request\0326.google.cloud.discoveryengine.v" @@ -120,14 +120,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "nd:\001*Zj\"e/v1beta/{serving_config=projects/*/locations/*/collections/*/dataStores" + "/*/servingConfigs/*}:recommend:\001*Zg\"b/v1beta/{serving_config=projects/*/location" + "s/*/collections/*/engines/*/servingConfi" - + "gs/*}:recommend:\001*\032R\312A\036discoveryengine.g" - + "oogleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\241\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB\032Recommendati" - + "onServiceProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginep" - + "b;discoveryenginepb\242\002\017DISCOVERYENGINE\252\002#" - + "Google.Cloud.DiscoveryEngine.V1Beta\312\002#Go" - + "ogle\\Cloud\\DiscoveryEngine\\V1beta\352\002&Goog" - + "le::Cloud::DiscoveryEngine::V1betab\006proto3" + + "gs/*}:recommend:\001*\032\317\001\312A\036discoveryengine." + + "googleapis.com\322A\252\001https://www.googleapis" + + ".com/auth/cloud-platform,https://www.googleapis.com/auth/discoveryengine.readwri" + + "te,https://www.googleapis.com/auth/discoveryengine.serving.readwriteB\241\002\n" + + "\'com.google.cloud.discoveryengine.v1betaB\032Recomm" + + "endationServiceProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoverye" + + "nginepb;discoveryenginepb\242\002\017DISCOVERYENG" + + "INE\252\002#Google.Cloud.DiscoveryEngine.V1Bet" + + "a\312\002#Google\\Cloud\\DiscoveryEngine\\V1beta\352" + + "\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecrawlUrisMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecrawlUrisMetadata.java index e28e76f17d3f..392df7a57ae7 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecrawlUrisMetadata.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecrawlUrisMetadata.java @@ -56,6 +56,7 @@ private RecrawlUrisMetadata(com.google.protobuf.GeneratedMessage.Builder buil private RecrawlUrisMetadata() { invalidUris3_ = com.google.protobuf.LazyStringArrayList.emptyList(); + noindexUris11_ = com.google.protobuf.LazyStringArrayList.emptyList(); urisNotMatchingTargetSites9_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @@ -273,6 +274,99 @@ public int getInvalidUrisCount8() { return invalidUrisCount8_; } + public static final int NOINDEX_URIS_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList noindexUris11_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + // An alternative name is used for field "noindex_uris" because: + // both repeated field "noindex_uris" and singular field "noindex_uris_count" generate the + // method "getNoindexUrisCount()" + /** + * + * + *
            +   * URIs that have no index meta tag. Sample limited to 1000.
            +   * 
            + * + * repeated string noindex_uris = 11; + * + * @return A list containing the noindexUris. + */ + public com.google.protobuf.ProtocolStringList getNoindexUris11List() { + return noindexUris11_; + } + + /** + * + * + *
            +   * URIs that have no index meta tag. Sample limited to 1000.
            +   * 
            + * + * repeated string noindex_uris = 11; + * + * @return The count of noindexUris. + */ + public int getNoindexUris11Count() { + return noindexUris11_.size(); + } + + /** + * + * + *
            +   * URIs that have no index meta tag. Sample limited to 1000.
            +   * 
            + * + * repeated string noindex_uris = 11; + * + * @param index The index of the element to return. + * @return The noindexUris at the given index. + */ + public java.lang.String getNoindexUris11(int index) { + return noindexUris11_.get(index); + } + + /** + * + * + *
            +   * URIs that have no index meta tag. Sample limited to 1000.
            +   * 
            + * + * repeated string noindex_uris = 11; + * + * @param index The index of the value to return. + * @return The bytes of the noindexUris at the given index. + */ + public com.google.protobuf.ByteString getNoindexUris11Bytes(int index) { + return noindexUris11_.getByteString(index); + } + + public static final int NOINDEX_URIS_COUNT_FIELD_NUMBER = 12; + private int noindexUrisCount12_ = 0; + + // An alternative name is used for field "noindex_uris_count" because: + // both repeated field "noindex_uris" and singular field "noindex_uris_count" generate the + // method "getNoindexUrisCount()" + /** + * + * + *
            +   * Total number of URIs that have no index meta tag.
            +   * 
            + * + * int32 noindex_uris_count = 12; + * + * @return The noindexUrisCount. + */ + @java.lang.Override + public int getNoindexUrisCount12() { + return noindexUrisCount12_; + } + public static final int URIS_NOT_MATCHING_TARGET_SITES_FIELD_NUMBER = 9; @SuppressWarnings("serial") @@ -498,6 +592,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (urisNotMatchingTargetSitesCount10_ != 0) { output.writeInt32(10, urisNotMatchingTargetSitesCount10_); } + for (int i = 0; i < noindexUris11_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 11, noindexUris11_.getRaw(i)); + } + if (noindexUrisCount12_ != 0) { + output.writeInt32(12, noindexUrisCount12_); + } getUnknownFields().writeTo(output); } @@ -549,6 +649,17 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeInt32Size( 10, urisNotMatchingTargetSitesCount10_); } + { + int dataSize = 0; + for (int i = 0; i < noindexUris11_.size(); i++) { + dataSize += computeStringSizeNoTag(noindexUris11_.getRaw(i)); + } + size += dataSize; + size += 1 * getNoindexUris11List().size(); + } + if (noindexUrisCount12_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, noindexUrisCount12_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -575,6 +686,8 @@ public boolean equals(final java.lang.Object obj) { } if (!getInvalidUris3List().equals(other.getInvalidUris3List())) return false; if (getInvalidUrisCount8() != other.getInvalidUrisCount8()) return false; + if (!getNoindexUris11List().equals(other.getNoindexUris11List())) return false; + if (getNoindexUrisCount12() != other.getNoindexUrisCount12()) return false; if (!getUrisNotMatchingTargetSites9List().equals(other.getUrisNotMatchingTargetSites9List())) return false; if (getUrisNotMatchingTargetSitesCount10() != other.getUrisNotMatchingTargetSitesCount10()) @@ -608,6 +721,12 @@ public int hashCode() { } hash = (37 * hash) + INVALID_URIS_COUNT_FIELD_NUMBER; hash = (53 * hash) + getInvalidUrisCount8(); + if (getNoindexUris11Count() > 0) { + hash = (37 * hash) + NOINDEX_URIS_FIELD_NUMBER; + hash = (53 * hash) + getNoindexUris11List().hashCode(); + } + hash = (37 * hash) + NOINDEX_URIS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getNoindexUrisCount12(); if (getUrisNotMatchingTargetSites9Count() > 0) { hash = (37 * hash) + URIS_NOT_MATCHING_TARGET_SITES_FIELD_NUMBER; hash = (53 * hash) + getUrisNotMatchingTargetSites9List().hashCode(); @@ -788,6 +907,8 @@ public Builder clear() { } invalidUris3_ = com.google.protobuf.LazyStringArrayList.emptyList(); invalidUrisCount8_ = 0; + noindexUris11_ = com.google.protobuf.LazyStringArrayList.emptyList(); + noindexUrisCount12_ = 0; urisNotMatchingTargetSites9_ = com.google.protobuf.LazyStringArrayList.emptyList(); urisNotMatchingTargetSitesCount10_ = 0; validUrisCount_ = 0; @@ -847,22 +968,29 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.RecrawlUrisMe result.invalidUrisCount8_ = invalidUrisCount8_; } if (((from_bitField0_ & 0x00000010) != 0)) { + noindexUris11_.makeImmutable(); + result.noindexUris11_ = noindexUris11_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.noindexUrisCount12_ = noindexUrisCount12_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { urisNotMatchingTargetSites9_.makeImmutable(); result.urisNotMatchingTargetSites9_ = urisNotMatchingTargetSites9_; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.urisNotMatchingTargetSitesCount10_ = urisNotMatchingTargetSitesCount10_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.validUrisCount_ = validUrisCount_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.successCount_ = successCount_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.pendingCount_ = pendingCount_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.quotaExceededCount_ = quotaExceededCount_; } result.bitField0_ |= to_bitField0_; @@ -900,10 +1028,23 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.RecrawlUrisMeta if (other.getInvalidUrisCount8() != 0) { setInvalidUrisCount8(other.getInvalidUrisCount8()); } + if (!other.noindexUris11_.isEmpty()) { + if (noindexUris11_.isEmpty()) { + noindexUris11_ = other.noindexUris11_; + bitField0_ |= 0x00000010; + } else { + ensureNoindexUris11IsMutable(); + noindexUris11_.addAll(other.noindexUris11_); + } + onChanged(); + } + if (other.getNoindexUrisCount12() != 0) { + setNoindexUrisCount12(other.getNoindexUrisCount12()); + } if (!other.urisNotMatchingTargetSites9_.isEmpty()) { if (urisNotMatchingTargetSites9_.isEmpty()) { urisNotMatchingTargetSites9_ = other.urisNotMatchingTargetSites9_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; } else { ensureUrisNotMatchingTargetSites9IsMutable(); urisNotMatchingTargetSites9_.addAll(other.urisNotMatchingTargetSites9_); @@ -975,25 +1116,25 @@ public Builder mergeFrom( case 32: { validUrisCount_ = input.readInt32(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; break; } // case 32 case 40: { successCount_ = input.readInt32(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000200; break; } // case 40 case 48: { pendingCount_ = input.readInt32(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; break; } // case 48 case 56: { quotaExceededCount_ = input.readInt32(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; break; } // case 56 case 64: @@ -1012,9 +1153,22 @@ public Builder mergeFrom( case 80: { urisNotMatchingTargetSitesCount10_ = input.readInt32(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; break; } // case 80 + case 90: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNoindexUris11IsMutable(); + noindexUris11_.add(s); + break; + } // case 90 + case 96: + { + noindexUrisCount12_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 96 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1679,6 +1833,245 @@ public Builder clearInvalidUrisCount8() { return this; } + private com.google.protobuf.LazyStringArrayList noindexUris11_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNoindexUris11IsMutable() { + if (!noindexUris11_.isModifiable()) { + noindexUris11_ = new com.google.protobuf.LazyStringArrayList(noindexUris11_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
            +     * URIs that have no index meta tag. Sample limited to 1000.
            +     * 
            + * + * repeated string noindex_uris = 11; + * + * @return A list containing the noindexUris. + */ + public com.google.protobuf.ProtocolStringList getNoindexUris11List() { + noindexUris11_.makeImmutable(); + return noindexUris11_; + } + + /** + * + * + *
            +     * URIs that have no index meta tag. Sample limited to 1000.
            +     * 
            + * + * repeated string noindex_uris = 11; + * + * @return The count of noindexUris. + */ + public int getNoindexUris11Count() { + return noindexUris11_.size(); + } + + /** + * + * + *
            +     * URIs that have no index meta tag. Sample limited to 1000.
            +     * 
            + * + * repeated string noindex_uris = 11; + * + * @param index The index of the element to return. + * @return The noindexUris at the given index. + */ + public java.lang.String getNoindexUris11(int index) { + return noindexUris11_.get(index); + } + + /** + * + * + *
            +     * URIs that have no index meta tag. Sample limited to 1000.
            +     * 
            + * + * repeated string noindex_uris = 11; + * + * @param index The index of the value to return. + * @return The bytes of the noindexUris at the given index. + */ + public com.google.protobuf.ByteString getNoindexUris11Bytes(int index) { + return noindexUris11_.getByteString(index); + } + + /** + * + * + *
            +     * URIs that have no index meta tag. Sample limited to 1000.
            +     * 
            + * + * repeated string noindex_uris = 11; + * + * @param index The index to set the value at. + * @param value The noindexUris to set. + * @return This builder for chaining. + */ + public Builder setNoindexUris11(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNoindexUris11IsMutable(); + noindexUris11_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * URIs that have no index meta tag. Sample limited to 1000.
            +     * 
            + * + * repeated string noindex_uris = 11; + * + * @param value The noindexUris to add. + * @return This builder for chaining. + */ + public Builder addNoindexUris11(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNoindexUris11IsMutable(); + noindexUris11_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * URIs that have no index meta tag. Sample limited to 1000.
            +     * 
            + * + * repeated string noindex_uris = 11; + * + * @param values The noindexUris to add. + * @return This builder for chaining. + */ + public Builder addAllNoindexUris11(java.lang.Iterable values) { + ensureNoindexUris11IsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, noindexUris11_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * URIs that have no index meta tag. Sample limited to 1000.
            +     * 
            + * + * repeated string noindex_uris = 11; + * + * @return This builder for chaining. + */ + public Builder clearNoindexUris11() { + noindexUris11_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * URIs that have no index meta tag. Sample limited to 1000.
            +     * 
            + * + * repeated string noindex_uris = 11; + * + * @param value The bytes of the noindexUris to add. + * @return This builder for chaining. + */ + public Builder addNoindexUris11Bytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNoindexUris11IsMutable(); + noindexUris11_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int noindexUrisCount12_; + + /** + * + * + *
            +     * Total number of URIs that have no index meta tag.
            +     * 
            + * + * int32 noindex_uris_count = 12; + * + * @return The noindexUrisCount. + */ + @java.lang.Override + public int getNoindexUrisCount12() { + return noindexUrisCount12_; + } + + /** + * + * + *
            +     * Total number of URIs that have no index meta tag.
            +     * 
            + * + * int32 noindex_uris_count = 12; + * + * @param value The noindexUrisCount to set. + * @return This builder for chaining. + */ + public Builder setNoindexUrisCount12(int value) { + + noindexUrisCount12_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Total number of URIs that have no index meta tag.
            +     * 
            + * + * int32 noindex_uris_count = 12; + * + * @return This builder for chaining. + */ + public Builder clearNoindexUrisCount12() { + bitField0_ = (bitField0_ & ~0x00000020); + noindexUrisCount12_ = 0; + onChanged(); + return this; + } + private com.google.protobuf.LazyStringArrayList urisNotMatchingTargetSites9_ = com.google.protobuf.LazyStringArrayList.emptyList(); @@ -1687,7 +2080,7 @@ private void ensureUrisNotMatchingTargetSites9IsMutable() { urisNotMatchingTargetSites9_ = new com.google.protobuf.LazyStringArrayList(urisNotMatchingTargetSites9_); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; } /** @@ -1782,7 +2175,7 @@ public Builder setUrisNotMatchingTargetSites9(int index, java.lang.String value) } ensureUrisNotMatchingTargetSites9IsMutable(); urisNotMatchingTargetSites9_.set(index, value); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1807,7 +2200,7 @@ public Builder addUrisNotMatchingTargetSites9(java.lang.String value) { } ensureUrisNotMatchingTargetSites9IsMutable(); urisNotMatchingTargetSites9_.add(value); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1829,7 +2222,7 @@ public Builder addUrisNotMatchingTargetSites9(java.lang.String value) { public Builder addAllUrisNotMatchingTargetSites9(java.lang.Iterable values) { ensureUrisNotMatchingTargetSites9IsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, urisNotMatchingTargetSites9_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1849,7 +2242,7 @@ public Builder addAllUrisNotMatchingTargetSites9(java.lang.Iterable + * URIs that have no index meta tag. Sample limited to 1000. + *
            + * + * repeated string noindex_uris = 11; + * + * @return A list containing the noindexUris. + */ + java.util.List getNoindexUris11List(); + + /** + * + * + *
            +   * URIs that have no index meta tag. Sample limited to 1000.
            +   * 
            + * + * repeated string noindex_uris = 11; + * + * @return The count of noindexUris. + */ + int getNoindexUris11Count(); + + /** + * + * + *
            +   * URIs that have no index meta tag. Sample limited to 1000.
            +   * 
            + * + * repeated string noindex_uris = 11; + * + * @param index The index of the element to return. + * @return The noindexUris at the given index. + */ + java.lang.String getNoindexUris11(int index); + + /** + * + * + *
            +   * URIs that have no index meta tag. Sample limited to 1000.
            +   * 
            + * + * repeated string noindex_uris = 11; + * + * @param index The index of the value to return. + * @return The bytes of the noindexUris at the given index. + */ + com.google.protobuf.ByteString getNoindexUris11Bytes(int index); + + /** + * + * + *
            +   * Total number of URIs that have no index meta tag.
            +   * 
            + * + * int32 noindex_uris_count = 12; + * + * @return The noindexUrisCount. + */ + int getNoindexUrisCount12(); + /** * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecrawlUrisRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecrawlUrisRequest.java index 47b32f9c84dc..f472c5e008f1 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecrawlUrisRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecrawlUrisRequest.java @@ -226,9 +226,7 @@ public 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.
            +   * Optional. Credential id to use for crawling.
                * 
            * * string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -252,9 +250,7 @@ public 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.
            +   * Optional. Credential id to use for crawling.
                * 
            * * string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1001,9 +997,7 @@ public Builder addUrisBytes(com.google.protobuf.ByteString value) { * * *
            -     * Optional. Full resource name of the [SiteCredential][], such as
            -     * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`.
            -     * Only set to crawl private URIs.
            +     * Optional. Credential id to use for crawling.
                  * 
            * * string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1026,9 +1020,7 @@ public 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.
            +     * Optional. Credential id to use for crawling.
                  * 
            * * string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1051,9 +1043,7 @@ public com.google.protobuf.ByteString getSiteCredentialBytes() { * * *
            -     * Optional. Full resource name of the [SiteCredential][], such as
            -     * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`.
            -     * Only set to crawl private URIs.
            +     * Optional. Credential id to use for crawling.
                  * 
            * * string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1075,9 +1065,7 @@ public Builder setSiteCredential(java.lang.String value) { * * *
            -     * Optional. Full resource name of the [SiteCredential][], such as
            -     * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`.
            -     * Only set to crawl private URIs.
            +     * Optional. Credential id to use for crawling.
                  * 
            * * string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1095,9 +1083,7 @@ public Builder clearSiteCredential() { * * *
            -     * Optional. Full resource name of the [SiteCredential][], such as
            -     * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`.
            -     * Only set to crawl private URIs.
            +     * Optional. Credential id to use for crawling.
                  * 
            * * string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecrawlUrisRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecrawlUrisRequestOrBuilder.java index b8915b5e1817..77cea1fd610a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecrawlUrisRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RecrawlUrisRequestOrBuilder.java @@ -132,9 +132,7 @@ public interface RecrawlUrisRequestOrBuilder * * *
            -   * Optional. Full resource name of the [SiteCredential][], such as
            -   * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`.
            -   * Only set to crawl private URIs.
            +   * Optional. Credential id to use for crawling.
                * 
            * * string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -147,9 +145,7 @@ public interface RecrawlUrisRequestOrBuilder * * *
            -   * Optional. Full resource name of the [SiteCredential][], such as
            -   * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`.
            -   * Only set to crawl private URIs.
            +   * Optional. Credential id to use for crawling.
                * 
            * * string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RemoveSuggestionRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RemoveSuggestionRequest.java new file mode 100644 index 000000000000..968f467b8ffe --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RemoveSuggestionRequest.java @@ -0,0 +1,2053 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/completion_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for
            + * [CompletionService.RemoveSuggestion][google.cloud.discoveryengine.v1beta.CompletionService.RemoveSuggestion]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest} + */ +@com.google.protobuf.Generated +public final class RemoveSuggestionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest) + RemoveSuggestionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RemoveSuggestionRequest"); + } + + // Use RemoveSuggestionRequest.newBuilder() to construct. + private RemoveSuggestionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RemoveSuggestionRequest() { + completionConfig_ = ""; + userPseudoId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest.class, + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest.Builder.class); + } + + private int bitField0_; + private int suggestionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object suggestion_; + + public enum SuggestionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SEARCH_HISTORY_SUGGESTION(2), + REMOVE_ALL_SEARCH_HISTORY_SUGGESTIONS(6), + SUGGESTION_NOT_SET(0); + private final int value; + + private SuggestionCase(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 SuggestionCase valueOf(int value) { + return forNumber(value); + } + + public static SuggestionCase forNumber(int value) { + switch (value) { + case 2: + return SEARCH_HISTORY_SUGGESTION; + case 6: + return REMOVE_ALL_SEARCH_HISTORY_SUGGESTIONS; + case 0: + return SUGGESTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SuggestionCase getSuggestionCase() { + return SuggestionCase.forNumber(suggestionCase_); + } + + public static final int SEARCH_HISTORY_SUGGESTION_FIELD_NUMBER = 2; + + /** + * + * + *
            +   * The search history suggestion to be removed.
            +   * 
            + * + * string search_history_suggestion = 2; + * + * @return Whether the searchHistorySuggestion field is set. + */ + public boolean hasSearchHistorySuggestion() { + return suggestionCase_ == 2; + } + + /** + * + * + *
            +   * The search history suggestion to be removed.
            +   * 
            + * + * string search_history_suggestion = 2; + * + * @return The searchHistorySuggestion. + */ + public java.lang.String getSearchHistorySuggestion() { + java.lang.Object ref = ""; + if (suggestionCase_ == 2) { + ref = suggestion_; + } + if (ref instanceof java.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 (suggestionCase_ == 2) { + suggestion_ = s; + } + return s; + } + } + + /** + * + * + *
            +   * The search history suggestion to be removed.
            +   * 
            + * + * string search_history_suggestion = 2; + * + * @return The bytes for searchHistorySuggestion. + */ + public com.google.protobuf.ByteString getSearchHistorySuggestionBytes() { + java.lang.Object ref = ""; + if (suggestionCase_ == 2) { + ref = suggestion_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (suggestionCase_ == 2) { + suggestion_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REMOVE_ALL_SEARCH_HISTORY_SUGGESTIONS_FIELD_NUMBER = 6; + + /** + * + * + *
            +   * Remove all search history suggestions for the user.
            +   * 
            + * + * bool remove_all_search_history_suggestions = 6; + * + * @return Whether the removeAllSearchHistorySuggestions field is set. + */ + @java.lang.Override + public boolean hasRemoveAllSearchHistorySuggestions() { + return suggestionCase_ == 6; + } + + /** + * + * + *
            +   * Remove all search history suggestions for the user.
            +   * 
            + * + * bool remove_all_search_history_suggestions = 6; + * + * @return The removeAllSearchHistorySuggestions. + */ + @java.lang.Override + public boolean getRemoveAllSearchHistorySuggestions() { + if (suggestionCase_ == 6) { + return (java.lang.Boolean) suggestion_; + } + return false; + } + + public static final int COMPLETION_CONFIG_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object completionConfig_ = ""; + + /** + * + * + *
            +   * Required. The completion_config of the parent engine resource name for
            +   * which the search history suggestion is to be removed, such as
            +   * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +   * 
            + * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The completionConfig. + */ + @java.lang.Override + public java.lang.String getCompletionConfig() { + java.lang.Object ref = completionConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + completionConfig_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The completion_config of the parent engine resource name for
            +   * which the search history suggestion is to be removed, such as
            +   * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +   * 
            + * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for completionConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCompletionConfigBytes() { + java.lang.Object ref = completionConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + completionConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_PSEUDO_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object userPseudoId_ = ""; + + /** + * + * + *
            +   * Required. A unique identifier for tracking visitors. For example, this
            +   * could be implemented with an HTTP cookie, which should be able to uniquely
            +   * identify a visitor on a single device. This unique identifier should not
            +   * change if the visitor logs in or out of the website.
            +   *
            +   * This field should NOT have a fixed value such as `unknown_visitor`.
            +   *
            +   * This should be the same identifier as
            +   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +   * and
            +   * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            +   *
            +   * The field must be a UTF-8 encoded string with a length limit of 128.
            +   * 
            + * + * string user_pseudo_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The userPseudoId. + */ + @java.lang.Override + public java.lang.String getUserPseudoId() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPseudoId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. A unique identifier for tracking visitors. For example, this
            +   * could be implemented with an HTTP cookie, which should be able to uniquely
            +   * identify a visitor on a single device. This unique identifier should not
            +   * change if the visitor logs in or out of the website.
            +   *
            +   * This field should NOT have a fixed value such as `unknown_visitor`.
            +   *
            +   * This should be the same identifier as
            +   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +   * and
            +   * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            +   *
            +   * The field must be a UTF-8 encoded string with a length limit of 128.
            +   * 
            + * + * string user_pseudo_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for userPseudoId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserPseudoIdBytes() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPseudoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_INFO_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1beta.UserInfo userInfo_; + + /** + * + * + *
            +   * Optional. Information about the end user.
            +   *
            +   * This should be the same identifier information as
            +   * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +   * and
            +   * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userInfo field is set. + */ + @java.lang.Override + public boolean hasUserInfo() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Information about the end user.
            +   *
            +   * This should be the same identifier information as
            +   * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +   * and
            +   * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserInfo getUserInfo() { + return userInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() + : userInfo_; + } + + /** + * + * + *
            +   * Optional. Information about the end user.
            +   *
            +   * This should be the same identifier information as
            +   * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +   * and
            +   * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBuilder() { + return userInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() + : userInfo_; + } + + public static final int REMOVE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp removeTime_; + + /** + * + * + *
            +   * Required. Time at which the suggestion was removed. If not set, the current
            +   * time will be used.
            +   * 
            + * + * .google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the removeTime field is set. + */ + @java.lang.Override + public boolean hasRemoveTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Required. Time at which the suggestion was removed. If not set, the current
            +   * time will be used.
            +   * 
            + * + * .google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The removeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getRemoveTime() { + return removeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : removeTime_; + } + + /** + * + * + *
            +   * Required. Time at which the suggestion was removed. If not set, the current
            +   * time will be used.
            +   * 
            + * + * .google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getRemoveTimeOrBuilder() { + return removeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : removeTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(completionConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, completionConfig_); + } + if (suggestionCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, suggestion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPseudoId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, userPseudoId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getUserInfo()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getRemoveTime()); + } + if (suggestionCase_ == 6) { + output.writeBool(6, (boolean) ((java.lang.Boolean) suggestion_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(completionConfig_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, completionConfig_); + } + if (suggestionCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, suggestion_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPseudoId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, userPseudoId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUserInfo()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRemoveTime()); + } + if (suggestionCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 6, (boolean) ((java.lang.Boolean) suggestion_)); + } + 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.v1beta.RemoveSuggestionRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest other = + (com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest) obj; + + if (!getCompletionConfig().equals(other.getCompletionConfig())) return false; + if (!getUserPseudoId().equals(other.getUserPseudoId())) return false; + if (hasUserInfo() != other.hasUserInfo()) return false; + if (hasUserInfo()) { + if (!getUserInfo().equals(other.getUserInfo())) return false; + } + if (hasRemoveTime() != other.hasRemoveTime()) return false; + if (hasRemoveTime()) { + if (!getRemoveTime().equals(other.getRemoveTime())) return false; + } + if (!getSuggestionCase().equals(other.getSuggestionCase())) return false; + switch (suggestionCase_) { + case 2: + if (!getSearchHistorySuggestion().equals(other.getSearchHistorySuggestion())) return false; + break; + case 6: + if (getRemoveAllSearchHistorySuggestions() != other.getRemoveAllSearchHistorySuggestions()) + 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) + COMPLETION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCompletionConfig().hashCode(); + hash = (37 * hash) + USER_PSEUDO_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserPseudoId().hashCode(); + if (hasUserInfo()) { + hash = (37 * hash) + USER_INFO_FIELD_NUMBER; + hash = (53 * hash) + getUserInfo().hashCode(); + } + if (hasRemoveTime()) { + hash = (37 * hash) + REMOVE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getRemoveTime().hashCode(); + } + switch (suggestionCase_) { + case 2: + hash = (37 * hash) + SEARCH_HISTORY_SUGGESTION_FIELD_NUMBER; + hash = (53 * hash) + getSearchHistorySuggestion().hashCode(); + break; + case 6: + hash = (37 * hash) + REMOVE_ALL_SEARCH_HISTORY_SUGGESTIONS_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getRemoveAllSearchHistorySuggestions()); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest 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.v1beta.RemoveSuggestionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest parseFrom( + 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.v1beta.RemoveSuggestionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [CompletionService.RemoveSuggestion][google.cloud.discoveryengine.v1beta.CompletionService.RemoveSuggestion]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest) + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest.class, + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUserInfoFieldBuilder(); + internalGetRemoveTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + completionConfig_ = ""; + userPseudoId_ = ""; + userInfo_ = null; + if (userInfoBuilder_ != null) { + userInfoBuilder_.dispose(); + userInfoBuilder_ = null; + } + removeTime_ = null; + if (removeTimeBuilder_ != null) { + removeTimeBuilder_.dispose(); + removeTimeBuilder_ = null; + } + suggestionCase_ = 0; + suggestion_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest build() { + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest result = + new com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.completionConfig_ = completionConfig_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.userPseudoId_ = userPseudoId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.removeTime_ = removeTimeBuilder_ == null ? removeTime_ : removeTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest result) { + result.suggestionCase_ = suggestionCase_; + result.suggestion_ = this.suggestion_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest.getDefaultInstance()) + return this; + if (!other.getCompletionConfig().isEmpty()) { + completionConfig_ = other.completionConfig_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getUserPseudoId().isEmpty()) { + userPseudoId_ = other.userPseudoId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasUserInfo()) { + mergeUserInfo(other.getUserInfo()); + } + if (other.hasRemoveTime()) { + mergeRemoveTime(other.getRemoveTime()); + } + switch (other.getSuggestionCase()) { + case SEARCH_HISTORY_SUGGESTION: + { + suggestionCase_ = 2; + suggestion_ = other.suggestion_; + onChanged(); + break; + } + case REMOVE_ALL_SEARCH_HISTORY_SUGGESTIONS: + { + setRemoveAllSearchHistorySuggestions(other.getRemoveAllSearchHistorySuggestions()); + break; + } + case SUGGESTION_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: + { + completionConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + suggestionCase_ = 2; + suggestion_ = s; + break; + } // case 18 + case 26: + { + userPseudoId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetUserInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetRemoveTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 48: + { + suggestion_ = input.readBool(); + suggestionCase_ = 6; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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 suggestionCase_ = 0; + private java.lang.Object suggestion_; + + public SuggestionCase getSuggestionCase() { + return SuggestionCase.forNumber(suggestionCase_); + } + + public Builder clearSuggestion() { + suggestionCase_ = 0; + suggestion_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
            +     * The search history suggestion to be removed.
            +     * 
            + * + * string search_history_suggestion = 2; + * + * @return Whether the searchHistorySuggestion field is set. + */ + @java.lang.Override + public boolean hasSearchHistorySuggestion() { + return suggestionCase_ == 2; + } + + /** + * + * + *
            +     * The search history suggestion to be removed.
            +     * 
            + * + * string search_history_suggestion = 2; + * + * @return The searchHistorySuggestion. + */ + @java.lang.Override + public java.lang.String getSearchHistorySuggestion() { + java.lang.Object ref = ""; + if (suggestionCase_ == 2) { + ref = suggestion_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (suggestionCase_ == 2) { + suggestion_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * The search history suggestion to be removed.
            +     * 
            + * + * string search_history_suggestion = 2; + * + * @return The bytes for searchHistorySuggestion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSearchHistorySuggestionBytes() { + java.lang.Object ref = ""; + if (suggestionCase_ == 2) { + ref = suggestion_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (suggestionCase_ == 2) { + suggestion_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * The search history suggestion to be removed.
            +     * 
            + * + * string search_history_suggestion = 2; + * + * @param value The searchHistorySuggestion to set. + * @return This builder for chaining. + */ + public Builder setSearchHistorySuggestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + suggestionCase_ = 2; + suggestion_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The search history suggestion to be removed.
            +     * 
            + * + * string search_history_suggestion = 2; + * + * @return This builder for chaining. + */ + public Builder clearSearchHistorySuggestion() { + if (suggestionCase_ == 2) { + suggestionCase_ = 0; + suggestion_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * The search history suggestion to be removed.
            +     * 
            + * + * string search_history_suggestion = 2; + * + * @param value The bytes for searchHistorySuggestion to set. + * @return This builder for chaining. + */ + public Builder setSearchHistorySuggestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + suggestionCase_ = 2; + suggestion_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Remove all search history suggestions for the user.
            +     * 
            + * + * bool remove_all_search_history_suggestions = 6; + * + * @return Whether the removeAllSearchHistorySuggestions field is set. + */ + public boolean hasRemoveAllSearchHistorySuggestions() { + return suggestionCase_ == 6; + } + + /** + * + * + *
            +     * Remove all search history suggestions for the user.
            +     * 
            + * + * bool remove_all_search_history_suggestions = 6; + * + * @return The removeAllSearchHistorySuggestions. + */ + public boolean getRemoveAllSearchHistorySuggestions() { + if (suggestionCase_ == 6) { + return (java.lang.Boolean) suggestion_; + } + return false; + } + + /** + * + * + *
            +     * Remove all search history suggestions for the user.
            +     * 
            + * + * bool remove_all_search_history_suggestions = 6; + * + * @param value The removeAllSearchHistorySuggestions to set. + * @return This builder for chaining. + */ + public Builder setRemoveAllSearchHistorySuggestions(boolean value) { + + suggestionCase_ = 6; + suggestion_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Remove all search history suggestions for the user.
            +     * 
            + * + * bool remove_all_search_history_suggestions = 6; + * + * @return This builder for chaining. + */ + public Builder clearRemoveAllSearchHistorySuggestions() { + if (suggestionCase_ == 6) { + suggestionCase_ = 0; + suggestion_ = null; + onChanged(); + } + return this; + } + + private java.lang.Object completionConfig_ = ""; + + /** + * + * + *
            +     * Required. The completion_config of the parent engine resource name for
            +     * which the search history suggestion is to be removed, such as
            +     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +     * 
            + * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The completionConfig. + */ + public java.lang.String getCompletionConfig() { + java.lang.Object ref = completionConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + completionConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The completion_config of the parent engine resource name for
            +     * which the search history suggestion is to be removed, such as
            +     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +     * 
            + * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for completionConfig. + */ + public com.google.protobuf.ByteString getCompletionConfigBytes() { + java.lang.Object ref = completionConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + completionConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The completion_config of the parent engine resource name for
            +     * which the search history suggestion is to be removed, such as
            +     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +     * 
            + * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The completionConfig to set. + * @return This builder for chaining. + */ + public Builder setCompletionConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + completionConfig_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The completion_config of the parent engine resource name for
            +     * which the search history suggestion is to be removed, such as
            +     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +     * 
            + * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCompletionConfig() { + completionConfig_ = getDefaultInstance().getCompletionConfig(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The completion_config of the parent engine resource name for
            +     * which the search history suggestion is to be removed, such as
            +     * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +     * 
            + * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for completionConfig to set. + * @return This builder for chaining. + */ + public Builder setCompletionConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + completionConfig_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object userPseudoId_ = ""; + + /** + * + * + *
            +     * Required. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
            +     *
            +     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     *
            +     * This should be the same identifier as
            +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +     * and
            +     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            +     *
            +     * The field must be a UTF-8 encoded string with a length limit of 128.
            +     * 
            + * + * string user_pseudo_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The userPseudoId. + */ + public java.lang.String getUserPseudoId() { + java.lang.Object ref = userPseudoId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPseudoId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
            +     *
            +     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     *
            +     * This should be the same identifier as
            +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +     * and
            +     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            +     *
            +     * The field must be a UTF-8 encoded string with a length limit of 128.
            +     * 
            + * + * string user_pseudo_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for userPseudoId. + */ + public com.google.protobuf.ByteString getUserPseudoIdBytes() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPseudoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
            +     *
            +     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     *
            +     * This should be the same identifier as
            +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +     * and
            +     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            +     *
            +     * The field must be a UTF-8 encoded string with a length limit of 128.
            +     * 
            + * + * string user_pseudo_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The userPseudoId to set. + * @return This builder for chaining. + */ + public Builder setUserPseudoId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userPseudoId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
            +     *
            +     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     *
            +     * This should be the same identifier as
            +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +     * and
            +     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            +     *
            +     * The field must be a UTF-8 encoded string with a length limit of 128.
            +     * 
            + * + * string user_pseudo_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUserPseudoId() { + userPseudoId_ = getDefaultInstance().getUserPseudoId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
            +     *
            +     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     *
            +     * This should be the same identifier as
            +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +     * and
            +     * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            +     *
            +     * The field must be a UTF-8 encoded string with a length limit of 128.
            +     * 
            + * + * string user_pseudo_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for userPseudoId to set. + * @return This builder for chaining. + */ + public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userPseudoId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.UserInfo userInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserInfo, + com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, + com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder> + userInfoBuilder_; + + /** + * + * + *
            +     * Optional. Information about the end user.
            +     *
            +     * This should be the same identifier information as
            +     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +     * and
            +     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userInfo field is set. + */ + public boolean hasUserInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Optional. Information about the end user.
            +     *
            +     * This should be the same identifier information as
            +     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +     * and
            +     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userInfo. + */ + public com.google.cloud.discoveryengine.v1beta.UserInfo getUserInfo() { + if (userInfoBuilder_ == null) { + return userInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() + : userInfo_; + } else { + return userInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Information about the end user.
            +     *
            +     * This should be the same identifier information as
            +     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +     * and
            +     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo value) { + if (userInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userInfo_ = value; + } else { + userInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Information about the end user.
            +     *
            +     * This should be the same identifier information as
            +     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +     * and
            +     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserInfo( + com.google.cloud.discoveryengine.v1beta.UserInfo.Builder builderForValue) { + if (userInfoBuilder_ == null) { + userInfo_ = builderForValue.build(); + } else { + userInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Information about the end user.
            +     *
            +     * This should be the same identifier information as
            +     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +     * and
            +     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo value) { + if (userInfoBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && userInfo_ != null + && userInfo_ != com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance()) { + getUserInfoBuilder().mergeFrom(value); + } else { + userInfo_ = value; + } + } else { + userInfoBuilder_.mergeFrom(value); + } + if (userInfo_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Information about the end user.
            +     *
            +     * This should be the same identifier information as
            +     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +     * and
            +     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUserInfo() { + bitField0_ = (bitField0_ & ~0x00000010); + userInfo_ = null; + if (userInfoBuilder_ != null) { + userInfoBuilder_.dispose(); + userInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Information about the end user.
            +     *
            +     * This should be the same identifier information as
            +     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +     * and
            +     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.UserInfo.Builder getUserInfoBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUserInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Information about the end user.
            +     *
            +     * This should be the same identifier information as
            +     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +     * and
            +     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBuilder() { + if (userInfoBuilder_ != null) { + return userInfoBuilder_.getMessageOrBuilder(); + } else { + return userInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() + : userInfo_; + } + } + + /** + * + * + *
            +     * Optional. Information about the end user.
            +     *
            +     * This should be the same identifier information as
            +     * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +     * and
            +     * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserInfo, + com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, + com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder> + internalGetUserInfoFieldBuilder() { + if (userInfoBuilder_ == null) { + userInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserInfo, + com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, + com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder>( + getUserInfo(), getParentForChildren(), isClean()); + userInfo_ = null; + } + return userInfoBuilder_; + } + + private com.google.protobuf.Timestamp removeTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + removeTimeBuilder_; + + /** + * + * + *
            +     * Required. Time at which the suggestion was removed. If not set, the current
            +     * time will be used.
            +     * 
            + * + * .google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the removeTime field is set. + */ + public boolean hasRemoveTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Required. Time at which the suggestion was removed. If not set, the current
            +     * time will be used.
            +     * 
            + * + * .google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The removeTime. + */ + public com.google.protobuf.Timestamp getRemoveTime() { + if (removeTimeBuilder_ == null) { + return removeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : removeTime_; + } else { + return removeTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. Time at which the suggestion was removed. If not set, the current
            +     * time will be used.
            +     * 
            + * + * .google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRemoveTime(com.google.protobuf.Timestamp value) { + if (removeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + removeTime_ = value; + } else { + removeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Time at which the suggestion was removed. If not set, the current
            +     * time will be used.
            +     * 
            + * + * .google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRemoveTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (removeTimeBuilder_ == null) { + removeTime_ = builderForValue.build(); + } else { + removeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Time at which the suggestion was removed. If not set, the current
            +     * time will be used.
            +     * 
            + * + * .google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRemoveTime(com.google.protobuf.Timestamp value) { + if (removeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && removeTime_ != null + && removeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getRemoveTimeBuilder().mergeFrom(value); + } else { + removeTime_ = value; + } + } else { + removeTimeBuilder_.mergeFrom(value); + } + if (removeTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. Time at which the suggestion was removed. If not set, the current
            +     * time will be used.
            +     * 
            + * + * .google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRemoveTime() { + bitField0_ = (bitField0_ & ~0x00000020); + removeTime_ = null; + if (removeTimeBuilder_ != null) { + removeTimeBuilder_.dispose(); + removeTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Time at which the suggestion was removed. If not set, the current
            +     * time will be used.
            +     * 
            + * + * .google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Timestamp.Builder getRemoveTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetRemoveTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. Time at which the suggestion was removed. If not set, the current
            +     * time will be used.
            +     * 
            + * + * .google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.TimestampOrBuilder getRemoveTimeOrBuilder() { + if (removeTimeBuilder_ != null) { + return removeTimeBuilder_.getMessageOrBuilder(); + } else { + return removeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : removeTime_; + } + } + + /** + * + * + *
            +     * Required. Time at which the suggestion was removed. If not set, the current
            +     * time will be used.
            +     * 
            + * + * .google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetRemoveTimeFieldBuilder() { + if (removeTimeBuilder_ == null) { + removeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getRemoveTime(), getParentForChildren(), isClean()); + removeTime_ = null; + } + return removeTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest) + private static final com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveSuggestionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.RemoveSuggestionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RemoveSuggestionRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RemoveSuggestionRequestOrBuilder.java new file mode 100644 index 000000000000..ab51b0065b92 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RemoveSuggestionRequestOrBuilder.java @@ -0,0 +1,281 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/completion_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface RemoveSuggestionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The search history suggestion to be removed.
            +   * 
            + * + * string search_history_suggestion = 2; + * + * @return Whether the searchHistorySuggestion field is set. + */ + boolean hasSearchHistorySuggestion(); + + /** + * + * + *
            +   * The search history suggestion to be removed.
            +   * 
            + * + * string search_history_suggestion = 2; + * + * @return The searchHistorySuggestion. + */ + java.lang.String getSearchHistorySuggestion(); + + /** + * + * + *
            +   * The search history suggestion to be removed.
            +   * 
            + * + * string search_history_suggestion = 2; + * + * @return The bytes for searchHistorySuggestion. + */ + com.google.protobuf.ByteString getSearchHistorySuggestionBytes(); + + /** + * + * + *
            +   * Remove all search history suggestions for the user.
            +   * 
            + * + * bool remove_all_search_history_suggestions = 6; + * + * @return Whether the removeAllSearchHistorySuggestions field is set. + */ + boolean hasRemoveAllSearchHistorySuggestions(); + + /** + * + * + *
            +   * Remove all search history suggestions for the user.
            +   * 
            + * + * bool remove_all_search_history_suggestions = 6; + * + * @return The removeAllSearchHistorySuggestions. + */ + boolean getRemoveAllSearchHistorySuggestions(); + + /** + * + * + *
            +   * Required. The completion_config of the parent engine resource name for
            +   * which the search history suggestion is to be removed, such as
            +   * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +   * 
            + * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The completionConfig. + */ + java.lang.String getCompletionConfig(); + + /** + * + * + *
            +   * Required. The completion_config of the parent engine resource name for
            +   * which the search history suggestion is to be removed, such as
            +   * `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`.
            +   * 
            + * + * + * string completion_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for completionConfig. + */ + com.google.protobuf.ByteString getCompletionConfigBytes(); + + /** + * + * + *
            +   * Required. A unique identifier for tracking visitors. For example, this
            +   * could be implemented with an HTTP cookie, which should be able to uniquely
            +   * identify a visitor on a single device. This unique identifier should not
            +   * change if the visitor logs in or out of the website.
            +   *
            +   * This field should NOT have a fixed value such as `unknown_visitor`.
            +   *
            +   * This should be the same identifier as
            +   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +   * and
            +   * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            +   *
            +   * The field must be a UTF-8 encoded string with a length limit of 128.
            +   * 
            + * + * string user_pseudo_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The userPseudoId. + */ + java.lang.String getUserPseudoId(); + + /** + * + * + *
            +   * Required. A unique identifier for tracking visitors. For example, this
            +   * could be implemented with an HTTP cookie, which should be able to uniquely
            +   * identify a visitor on a single device. This unique identifier should not
            +   * change if the visitor logs in or out of the website.
            +   *
            +   * This field should NOT have a fixed value such as `unknown_visitor`.
            +   *
            +   * This should be the same identifier as
            +   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +   * and
            +   * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id].
            +   *
            +   * The field must be a UTF-8 encoded string with a length limit of 128.
            +   * 
            + * + * string user_pseudo_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for userPseudoId. + */ + com.google.protobuf.ByteString getUserPseudoIdBytes(); + + /** + * + * + *
            +   * Optional. Information about the end user.
            +   *
            +   * This should be the same identifier information as
            +   * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +   * and
            +   * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userInfo field is set. + */ + boolean hasUserInfo(); + + /** + * + * + *
            +   * Optional. Information about the end user.
            +   *
            +   * This should be the same identifier information as
            +   * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +   * and
            +   * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userInfo. + */ + com.google.cloud.discoveryengine.v1beta.UserInfo getUserInfo(); + + /** + * + * + *
            +   * Optional. Information about the end user.
            +   *
            +   * This should be the same identifier information as
            +   * [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info]
            +   * and
            +   * [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBuilder(); + + /** + * + * + *
            +   * Required. Time at which the suggestion was removed. If not set, the current
            +   * time will be used.
            +   * 
            + * + * .google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the removeTime field is set. + */ + boolean hasRemoveTime(); + + /** + * + * + *
            +   * Required. Time at which the suggestion was removed. If not set, the current
            +   * time will be used.
            +   * 
            + * + * .google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The removeTime. + */ + com.google.protobuf.Timestamp getRemoveTime(); + + /** + * + * + *
            +   * Required. Time at which the suggestion was removed. If not set, the current
            +   * time will be used.
            +   * 
            + * + * .google.protobuf.Timestamp remove_time = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.TimestampOrBuilder getRemoveTimeOrBuilder(); + + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest.SuggestionCase + getSuggestionCase(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RemoveSuggestionResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RemoveSuggestionResponse.java new file mode 100644 index 000000000000..0e70adbb9ea0 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RemoveSuggestionResponse.java @@ -0,0 +1,407 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/completion_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Response message for
            + * [CompletionService.RemoveSuggestion][google.cloud.discoveryengine.v1beta.CompletionService.RemoveSuggestion]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse} + */ +@com.google.protobuf.Generated +public final class RemoveSuggestionResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse) + RemoveSuggestionResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RemoveSuggestionResponse"); + } + + // Use RemoveSuggestionResponse.newBuilder() to construct. + private RemoveSuggestionResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RemoveSuggestionResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse.class, + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse other = + (com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse 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.v1beta.RemoveSuggestionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse parseFrom( + 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.v1beta.RemoveSuggestionResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response message for
            +   * [CompletionService.RemoveSuggestion][google.cloud.discoveryengine.v1beta.CompletionService.RemoveSuggestion]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse) + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse.class, + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CompletionServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RemoveSuggestionResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse build() { + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse buildPartial() { + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse result = + new com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse) + private static final com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RemoveSuggestionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.RemoveSuggestionResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RemoveSuggestionResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RemoveSuggestionResponseOrBuilder.java new file mode 100644 index 000000000000..b6c1964ef631 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RemoveSuggestionResponseOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/completion_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface RemoveSuggestionResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RetractLicenseConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RetractLicenseConfigRequest.java new file mode 100644 index 000000000000..3152697dde17 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RetractLicenseConfigRequest.java @@ -0,0 +1,1082 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for
            + * [LicenseConfigService.RetractLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.RetractLicenseConfig]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest} + */ +@com.google.protobuf.Generated +public final class RetractLicenseConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest) + RetractLicenseConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RetractLicenseConfigRequest"); + } + + // Use RetractLicenseConfigRequest.newBuilder() to construct. + private RetractLicenseConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RetractLicenseConfigRequest() { + billingAccountLicenseConfig_ = ""; + licenseConfig_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest.Builder.class); + } + + public static final int BILLING_ACCOUNT_LICENSE_CONFIG_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object billingAccountLicenseConfig_ = ""; + + /** + * + * + *
            +   * Required. Full resource name of [BillingAccountLicenseConfig][].
            +   *
            +   * Format:
            +   * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
            +   * 
            + * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The billingAccountLicenseConfig. + */ + @java.lang.Override + public java.lang.String getBillingAccountLicenseConfig() { + java.lang.Object ref = billingAccountLicenseConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billingAccountLicenseConfig_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Full resource name of [BillingAccountLicenseConfig][].
            +   *
            +   * Format:
            +   * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
            +   * 
            + * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for billingAccountLicenseConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBillingAccountLicenseConfigBytes() { + java.lang.Object ref = billingAccountLicenseConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + billingAccountLicenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LICENSE_CONFIG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object licenseConfig_ = ""; + + /** + * + * + *
            +   * Required. Full resource name of
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
            +   *
            +   * Format:
            +   * `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
            +   * 
            + * + * + * string license_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The licenseConfig. + */ + @java.lang.Override + public java.lang.String getLicenseConfig() { + java.lang.Object ref = licenseConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseConfig_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Full resource name of
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
            +   *
            +   * Format:
            +   * `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
            +   * 
            + * + * + * string license_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for licenseConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLicenseConfigBytes() { + java.lang.Object ref = licenseConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FULL_RETRACT_FIELD_NUMBER = 3; + private boolean fullRetract_ = false; + + /** + * + * + *
            +   * Optional. If set to true, retract the entire license config. Otherwise,
            +   * retract the specified license count.
            +   * 
            + * + * bool full_retract = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fullRetract. + */ + @java.lang.Override + public boolean getFullRetract() { + return fullRetract_; + } + + public static final int LICENSE_COUNT_FIELD_NUMBER = 4; + private long licenseCount_ = 0L; + + /** + * + * + *
            +   * Optional. The number of licenses to retract. Only used when full_retract is
            +   * false.
            +   * 
            + * + * int64 license_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The licenseCount. + */ + @java.lang.Override + public long getLicenseCount() { + return licenseCount_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(billingAccountLicenseConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, billingAccountLicenseConfig_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, licenseConfig_); + } + if (fullRetract_ != false) { + output.writeBool(3, fullRetract_); + } + if (licenseCount_ != 0L) { + output.writeInt64(4, licenseCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(billingAccountLicenseConfig_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize(1, billingAccountLicenseConfig_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseConfig_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, licenseConfig_); + } + if (fullRetract_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, fullRetract_); + } + if (licenseCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, licenseCount_); + } + 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.v1beta.RetractLicenseConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest other = + (com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest) obj; + + if (!getBillingAccountLicenseConfig().equals(other.getBillingAccountLicenseConfig())) + return false; + if (!getLicenseConfig().equals(other.getLicenseConfig())) return false; + if (getFullRetract() != other.getFullRetract()) return false; + if (getLicenseCount() != other.getLicenseCount()) 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) + BILLING_ACCOUNT_LICENSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getBillingAccountLicenseConfig().hashCode(); + hash = (37 * hash) + LICENSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfig().hashCode(); + hash = (37 * hash) + FULL_RETRACT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFullRetract()); + hash = (37 * hash) + LICENSE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLicenseCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest 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.v1beta.RetractLicenseConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest parseFrom( + 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.v1beta.RetractLicenseConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [LicenseConfigService.RetractLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.RetractLicenseConfig]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest) + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + billingAccountLicenseConfig_ = ""; + licenseConfig_ = ""; + fullRetract_ = false; + licenseCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest build() { + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest result = + new com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.billingAccountLicenseConfig_ = billingAccountLicenseConfig_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.licenseConfig_ = licenseConfig_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.fullRetract_ = fullRetract_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.licenseCount_ = licenseCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest + .getDefaultInstance()) return this; + if (!other.getBillingAccountLicenseConfig().isEmpty()) { + billingAccountLicenseConfig_ = other.billingAccountLicenseConfig_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getLicenseConfig().isEmpty()) { + licenseConfig_ = other.licenseConfig_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getFullRetract() != false) { + setFullRetract(other.getFullRetract()); + } + if (other.getLicenseCount() != 0L) { + setLicenseCount(other.getLicenseCount()); + } + 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: + { + billingAccountLicenseConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + licenseConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + fullRetract_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + licenseCount_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object billingAccountLicenseConfig_ = ""; + + /** + * + * + *
            +     * Required. Full resource name of [BillingAccountLicenseConfig][].
            +     *
            +     * Format:
            +     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
            +     * 
            + * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The billingAccountLicenseConfig. + */ + public java.lang.String getBillingAccountLicenseConfig() { + java.lang.Object ref = billingAccountLicenseConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + billingAccountLicenseConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Full resource name of [BillingAccountLicenseConfig][].
            +     *
            +     * Format:
            +     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
            +     * 
            + * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for billingAccountLicenseConfig. + */ + public com.google.protobuf.ByteString getBillingAccountLicenseConfigBytes() { + java.lang.Object ref = billingAccountLicenseConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + billingAccountLicenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Full resource name of [BillingAccountLicenseConfig][].
            +     *
            +     * Format:
            +     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
            +     * 
            + * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The billingAccountLicenseConfig to set. + * @return This builder for chaining. + */ + public Builder setBillingAccountLicenseConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + billingAccountLicenseConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Full resource name of [BillingAccountLicenseConfig][].
            +     *
            +     * Format:
            +     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
            +     * 
            + * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearBillingAccountLicenseConfig() { + billingAccountLicenseConfig_ = getDefaultInstance().getBillingAccountLicenseConfig(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Full resource name of [BillingAccountLicenseConfig][].
            +     *
            +     * Format:
            +     * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
            +     * 
            + * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for billingAccountLicenseConfig to set. + * @return This builder for chaining. + */ + public Builder setBillingAccountLicenseConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + billingAccountLicenseConfig_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object licenseConfig_ = ""; + + /** + * + * + *
            +     * Required. Full resource name of
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
            +     *
            +     * Format:
            +     * `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
            +     * 
            + * + * + * string license_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The licenseConfig. + */ + public java.lang.String getLicenseConfig() { + java.lang.Object ref = licenseConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Full resource name of
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
            +     *
            +     * Format:
            +     * `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
            +     * 
            + * + * + * string license_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for licenseConfig. + */ + public com.google.protobuf.ByteString getLicenseConfigBytes() { + java.lang.Object ref = licenseConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Full resource name of
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
            +     *
            +     * Format:
            +     * `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
            +     * 
            + * + * + * string license_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The licenseConfig to set. + * @return This builder for chaining. + */ + public Builder setLicenseConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + licenseConfig_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Full resource name of
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
            +     *
            +     * Format:
            +     * `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
            +     * 
            + * + * + * string license_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearLicenseConfig() { + licenseConfig_ = getDefaultInstance().getLicenseConfig(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Full resource name of
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
            +     *
            +     * Format:
            +     * `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
            +     * 
            + * + * + * string license_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for licenseConfig to set. + * @return This builder for chaining. + */ + public Builder setLicenseConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + licenseConfig_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean fullRetract_; + + /** + * + * + *
            +     * Optional. If set to true, retract the entire license config. Otherwise,
            +     * retract the specified license count.
            +     * 
            + * + * bool full_retract = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fullRetract. + */ + @java.lang.Override + public boolean getFullRetract() { + return fullRetract_; + } + + /** + * + * + *
            +     * Optional. If set to true, retract the entire license config. Otherwise,
            +     * retract the specified license count.
            +     * 
            + * + * bool full_retract = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fullRetract to set. + * @return This builder for chaining. + */ + public Builder setFullRetract(boolean value) { + + fullRetract_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If set to true, retract the entire license config. Otherwise,
            +     * retract the specified license count.
            +     * 
            + * + * bool full_retract = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFullRetract() { + bitField0_ = (bitField0_ & ~0x00000004); + fullRetract_ = false; + onChanged(); + return this; + } + + private long licenseCount_; + + /** + * + * + *
            +     * Optional. The number of licenses to retract. Only used when full_retract is
            +     * false.
            +     * 
            + * + * int64 license_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The licenseCount. + */ + @java.lang.Override + public long getLicenseCount() { + return licenseCount_; + } + + /** + * + * + *
            +     * Optional. The number of licenses to retract. Only used when full_retract is
            +     * false.
            +     * 
            + * + * int64 license_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The licenseCount to set. + * @return This builder for chaining. + */ + public Builder setLicenseCount(long value) { + + licenseCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The number of licenses to retract. Only used when full_retract is
            +     * false.
            +     * 
            + * + * int64 license_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLicenseCount() { + bitField0_ = (bitField0_ & ~0x00000008); + licenseCount_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest) + private static final com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetractLicenseConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.RetractLicenseConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RetractLicenseConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RetractLicenseConfigRequestOrBuilder.java new file mode 100644 index 000000000000..80b3f73bf0ce --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RetractLicenseConfigRequestOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface RetractLicenseConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Full resource name of [BillingAccountLicenseConfig][].
            +   *
            +   * Format:
            +   * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
            +   * 
            + * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The billingAccountLicenseConfig. + */ + java.lang.String getBillingAccountLicenseConfig(); + + /** + * + * + *
            +   * Required. Full resource name of [BillingAccountLicenseConfig][].
            +   *
            +   * Format:
            +   * `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`.
            +   * 
            + * + * + * string billing_account_license_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for billingAccountLicenseConfig. + */ + com.google.protobuf.ByteString getBillingAccountLicenseConfigBytes(); + + /** + * + * + *
            +   * Required. Full resource name of
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
            +   *
            +   * Format:
            +   * `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
            +   * 
            + * + * + * string license_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The licenseConfig. + */ + java.lang.String getLicenseConfig(); + + /** + * + * + *
            +   * Required. Full resource name of
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig].
            +   *
            +   * Format:
            +   * `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`.
            +   * 
            + * + * + * string license_config = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for licenseConfig. + */ + com.google.protobuf.ByteString getLicenseConfigBytes(); + + /** + * + * + *
            +   * Optional. If set to true, retract the entire license config. Otherwise,
            +   * retract the specified license count.
            +   * 
            + * + * bool full_retract = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fullRetract. + */ + boolean getFullRetract(); + + /** + * + * + *
            +   * Optional. The number of licenses to retract. Only used when full_retract is
            +   * false.
            +   * 
            + * + * int64 license_count = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The licenseCount. + */ + long getLicenseCount(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RetractLicenseConfigResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RetractLicenseConfigResponse.java new file mode 100644 index 000000000000..a11e1eb3efd6 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RetractLicenseConfigResponse.java @@ -0,0 +1,719 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Response message for
            + * [LicenseConfigService.RetractLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.RetractLicenseConfig]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse} + */ +@com.google.protobuf.Generated +public final class RetractLicenseConfigResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse) + RetractLicenseConfigResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RetractLicenseConfigResponse"); + } + + // Use RetractLicenseConfigResponse.newBuilder() to construct. + private RetractLicenseConfigResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RetractLicenseConfigResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse.class, + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse.Builder.class); + } + + private int bitField0_; + public static final int LICENSE_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.LicenseConfig licenseConfig_; + + /** + * + * + *
            +   * The updated LicenseConfig.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + * + * @return Whether the licenseConfig field is set. + */ + @java.lang.Override + public boolean hasLicenseConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * The updated LicenseConfig.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + * + * @return The licenseConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfig getLicenseConfig() { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + + /** + * + * + *
            +   * The updated LicenseConfig.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder + getLicenseConfigOrBuilder() { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + + 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, getLicenseConfig()); + } + 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, getLicenseConfig()); + } + 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.v1beta.RetractLicenseConfigResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse other = + (com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse) obj; + + if (hasLicenseConfig() != other.hasLicenseConfig()) return false; + if (hasLicenseConfig()) { + if (!getLicenseConfig().equals(other.getLicenseConfig())) 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 (hasLicenseConfig()) { + hash = (37 * hash) + LICENSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse 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.v1beta.RetractLicenseConfigResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse parseFrom( + 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.v1beta.RetractLicenseConfigResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response message for
            +   * [LicenseConfigService.RetractLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.RetractLicenseConfig]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse) + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse.class, + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetLicenseConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + licenseConfig_ = null; + if (licenseConfigBuilder_ != null) { + licenseConfigBuilder_.dispose(); + licenseConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_RetractLicenseConfigResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse build() { + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse buildPartial() { + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse result = + new com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.licenseConfig_ = + licenseConfigBuilder_ == null ? licenseConfig_ : licenseConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse + .getDefaultInstance()) return this; + if (other.hasLicenseConfig()) { + mergeLicenseConfig(other.getLicenseConfig()); + } + 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( + internalGetLicenseConfigFieldBuilder().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.v1beta.LicenseConfig licenseConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LicenseConfig, + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder> + licenseConfigBuilder_; + + /** + * + * + *
            +     * The updated LicenseConfig.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + * + * @return Whether the licenseConfig field is set. + */ + public boolean hasLicenseConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * The updated LicenseConfig.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + * + * @return The licenseConfig. + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfig getLicenseConfig() { + if (licenseConfigBuilder_ == null) { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } else { + return licenseConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * The updated LicenseConfig.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + */ + public Builder setLicenseConfig(com.google.cloud.discoveryengine.v1beta.LicenseConfig value) { + if (licenseConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + licenseConfig_ = value; + } else { + licenseConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The updated LicenseConfig.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + */ + public Builder setLicenseConfig( + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder builderForValue) { + if (licenseConfigBuilder_ == null) { + licenseConfig_ = builderForValue.build(); + } else { + licenseConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The updated LicenseConfig.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + */ + public Builder mergeLicenseConfig(com.google.cloud.discoveryengine.v1beta.LicenseConfig value) { + if (licenseConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && licenseConfig_ != null + && licenseConfig_ + != com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance()) { + getLicenseConfigBuilder().mergeFrom(value); + } else { + licenseConfig_ = value; + } + } else { + licenseConfigBuilder_.mergeFrom(value); + } + if (licenseConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * The updated LicenseConfig.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + */ + public Builder clearLicenseConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + licenseConfig_ = null; + if (licenseConfigBuilder_ != null) { + licenseConfigBuilder_.dispose(); + licenseConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * The updated LicenseConfig.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder getLicenseConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetLicenseConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * The updated LicenseConfig.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder + getLicenseConfigOrBuilder() { + if (licenseConfigBuilder_ != null) { + return licenseConfigBuilder_.getMessageOrBuilder(); + } else { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + } + + /** + * + * + *
            +     * The updated LicenseConfig.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LicenseConfig, + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder> + internalGetLicenseConfigFieldBuilder() { + if (licenseConfigBuilder_ == null) { + licenseConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LicenseConfig, + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder>( + getLicenseConfig(), getParentForChildren(), isClean()); + licenseConfig_ = null; + } + return licenseConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse) + private static final com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetractLicenseConfigResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.RetractLicenseConfigResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RetractLicenseConfigResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RetractLicenseConfigResponseOrBuilder.java new file mode 100644 index 000000000000..6fd54747ed63 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/RetractLicenseConfigResponseOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface RetractLicenseConfigResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The updated LicenseConfig.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + * + * @return Whether the licenseConfig field is set. + */ + boolean hasLicenseConfig(); + + /** + * + * + *
            +   * The updated LicenseConfig.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + * + * @return The licenseConfig. + */ + com.google.cloud.discoveryengine.v1beta.LicenseConfig getLicenseConfig(); + + /** + * + * + *
            +   * The updated LicenseConfig.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1; + */ + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder getLicenseConfigOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SafetyProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SafetyProto.java new file mode 100644 index 000000000000..1fc5d20104be --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SafetyProto.java @@ -0,0 +1,118 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/safety.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public final class SafetyProto extends com.google.protobuf.GeneratedFile { + private SafetyProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SafetyProto"); + } + + 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_discoveryengine_v1beta_SafetyRating_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SafetyRating_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" + + "0google/cloud/discoveryengine/v1beta/safety.proto\022#google.cloud.discoveryengine" + + ".v1beta\032\037google/api/field_behavior.proto\"\332\004\n" + + "\014SafetyRating\022H\n" + + "\010category\030\001 \001(\01621.go" + + "ogle.cloud.discoveryengine.v1beta.HarmCategoryB\003\340A\003\022[\n" + + "\013probability\030\002 \001(\0162A.googl" + + "e.cloud.discoveryengine.v1beta.SafetyRating.HarmProbabilityB\003\340A\003\022\036\n" + + "\021probability_score\030\005 \001(\002B\003\340A\003\022U\n" + + "\010severity\030\006 \001(\0162>.goo" + + "gle.cloud.discoveryengine.v1beta.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_PROBABILITY_UNSPECIFIED\020\000\022\016\n\n" + + "NEGLIGIBLE\020\001\022\007\n" + + "\003LOW\020\002\022\n\n" + + "\006MEDIUM\020\003\022\010\n" + + "\004HIGH\020\004\"\224\001\n" + + "\014HarmSeverity\022\035\n" + + "\031HARM_SEVERITY_UNSPECIFIED\020\000\022\034\n" + + "\030HARM_SEVERITY_NEGLIGIBLE\020\001\022\025\n" + + "\021HARM_SEVERITY_LOW\020\002\022\030\n" + + "\024HARM_SEVERITY_MEDIUM\020\003\022\026\n" + + "\022HARM_SEVERITY_HIGH\020\004*\327\001\n" + + "\014HarmCategory\022\035\n" + + "\031HARM_CATEGORY_UNSPECIFIED\020\000\022\035\n" + + "\031HARM_CATEGORY_HATE_SPEECH\020\001\022#\n" + + "\037HARM_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_CIVIC_INTEGRITY\020\005B\222\002\n" + + "\'com.google.cloud.discoveryengine.v1betaB\013SafetyProto" + + "P\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryeng" + + "inepb\242\002\017DISCOVERYENGINE\252\002#Google.Cloud.D" + + "iscoveryEngine.V1Beta\312\002#Google\\Cloud\\Dis" + + "coveryEngine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_SafetyRating_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1beta_SafetyRating_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SafetyRating_descriptor, + new java.lang.String[] { + "Category", "Probability", "ProbabilityScore", "Severity", "SeverityScore", "Blocked", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SafetyRating.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SafetyRating.java new file mode 100644 index 000000000000..48fa79cc46e4 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SafetyRating.java @@ -0,0 +1,1679 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/safety.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Safety rating corresponding to the generated content.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SafetyRating} + */ +@com.google.protobuf.Generated +public final class SafetyRating extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SafetyRating) + SafetyRatingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SafetyRating"); + } + + // Use SafetyRating.newBuilder() to construct. + private SafetyRating(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SafetyRating() { + category_ = 0; + probability_ = 0; + severity_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SafetyProto + .internal_static_google_cloud_discoveryengine_v1beta_SafetyRating_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SafetyProto + .internal_static_google_cloud_discoveryengine_v1beta_SafetyRating_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SafetyRating.class, + com.google.cloud.discoveryengine.v1beta.SafetyRating.Builder.class); + } + + /** + * + * + *
            +   * Harm probability levels in the content.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability} + */ + public enum HarmProbability implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Harm probability unspecified.
            +     * 
            + * + * HARM_PROBABILITY_UNSPECIFIED = 0; + */ + HARM_PROBABILITY_UNSPECIFIED(0), + /** + * + * + *
            +     * Negligible level of harm.
            +     * 
            + * + * NEGLIGIBLE = 1; + */ + NEGLIGIBLE(1), + /** + * + * + *
            +     * Low level of harm.
            +     * 
            + * + * LOW = 2; + */ + LOW(2), + /** + * + * + *
            +     * Medium level of harm.
            +     * 
            + * + * MEDIUM = 3; + */ + MEDIUM(3), + /** + * + * + *
            +     * High level of harm.
            +     * 
            + * + * HIGH = 4; + */ + HIGH(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HarmProbability"); + } + + /** + * + * + *
            +     * Harm probability unspecified.
            +     * 
            + * + * HARM_PROBABILITY_UNSPECIFIED = 0; + */ + public static final int HARM_PROBABILITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Negligible level of harm.
            +     * 
            + * + * NEGLIGIBLE = 1; + */ + public static final int NEGLIGIBLE_VALUE = 1; + + /** + * + * + *
            +     * Low level of harm.
            +     * 
            + * + * LOW = 2; + */ + public static final int LOW_VALUE = 2; + + /** + * + * + *
            +     * Medium level of harm.
            +     * 
            + * + * MEDIUM = 3; + */ + public static final int MEDIUM_VALUE = 3; + + /** + * + * + *
            +     * High level of harm.
            +     * 
            + * + * HIGH = 4; + */ + public static final int HIGH_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 HarmProbability 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 HarmProbability forNumber(int value) { + switch (value) { + case 0: + return HARM_PROBABILITY_UNSPECIFIED; + case 1: + return NEGLIGIBLE; + case 2: + return LOW; + case 3: + return MEDIUM; + case 4: + return HIGH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HarmProbability findValueByNumber(int number) { + return HarmProbability.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SafetyRating.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final HarmProbability[] VALUES = values(); + + public static HarmProbability 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 HarmProbability(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability) + } + + /** + * + * + *
            +   * Harm severity levels.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity} + */ + public enum HarmSeverity implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Harm severity unspecified.
            +     * 
            + * + * HARM_SEVERITY_UNSPECIFIED = 0; + */ + HARM_SEVERITY_UNSPECIFIED(0), + /** + * + * + *
            +     * Negligible level of harm severity.
            +     * 
            + * + * HARM_SEVERITY_NEGLIGIBLE = 1; + */ + HARM_SEVERITY_NEGLIGIBLE(1), + /** + * + * + *
            +     * Low level of harm severity.
            +     * 
            + * + * HARM_SEVERITY_LOW = 2; + */ + HARM_SEVERITY_LOW(2), + /** + * + * + *
            +     * Medium level of harm severity.
            +     * 
            + * + * HARM_SEVERITY_MEDIUM = 3; + */ + HARM_SEVERITY_MEDIUM(3), + /** + * + * + *
            +     * High level of harm severity.
            +     * 
            + * + * HARM_SEVERITY_HIGH = 4; + */ + HARM_SEVERITY_HIGH(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "HarmSeverity"); + } + + /** + * + * + *
            +     * Harm severity unspecified.
            +     * 
            + * + * HARM_SEVERITY_UNSPECIFIED = 0; + */ + public static final int HARM_SEVERITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Negligible level of harm severity.
            +     * 
            + * + * HARM_SEVERITY_NEGLIGIBLE = 1; + */ + public static final int HARM_SEVERITY_NEGLIGIBLE_VALUE = 1; + + /** + * + * + *
            +     * Low level of harm severity.
            +     * 
            + * + * HARM_SEVERITY_LOW = 2; + */ + public static final int HARM_SEVERITY_LOW_VALUE = 2; + + /** + * + * + *
            +     * Medium level of harm severity.
            +     * 
            + * + * HARM_SEVERITY_MEDIUM = 3; + */ + public static final int HARM_SEVERITY_MEDIUM_VALUE = 3; + + /** + * + * + *
            +     * High level of harm severity.
            +     * 
            + * + * HARM_SEVERITY_HIGH = 4; + */ + public static final int HARM_SEVERITY_HIGH_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 HarmSeverity 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 HarmSeverity forNumber(int value) { + switch (value) { + case 0: + return HARM_SEVERITY_UNSPECIFIED; + case 1: + return HARM_SEVERITY_NEGLIGIBLE; + case 2: + return HARM_SEVERITY_LOW; + case 3: + return HARM_SEVERITY_MEDIUM; + case 4: + return HARM_SEVERITY_HIGH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public HarmSeverity findValueByNumber(int number) { + return HarmSeverity.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SafetyRating.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final HarmSeverity[] VALUES = values(); + + public static HarmSeverity 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 HarmSeverity(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity) + } + + public static final int CATEGORY_FIELD_NUMBER = 1; + private int category_ = 0; + + /** + * + * + *
            +   * Output only. Harm category.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HarmCategory category = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for category. + */ + @java.lang.Override + public int getCategoryValue() { + return category_; + } + + /** + * + * + *
            +   * Output only. Harm category.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HarmCategory category = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The category. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.HarmCategory getCategory() { + com.google.cloud.discoveryengine.v1beta.HarmCategory result = + com.google.cloud.discoveryengine.v1beta.HarmCategory.forNumber(category_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.HarmCategory.UNRECOGNIZED + : result; + } + + public static final int PROBABILITY_FIELD_NUMBER = 2; + private int probability_ = 0; + + /** + * + * + *
            +   * Output only. Harm probability levels in the content.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability probability = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for probability. + */ + @java.lang.Override + public int getProbabilityValue() { + return probability_; + } + + /** + * + * + *
            +   * Output only. Harm probability levels in the content.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability probability = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The probability. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability getProbability() { + com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability result = + com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability.forNumber( + probability_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability.UNRECOGNIZED + : result; + } + + public static final int PROBABILITY_SCORE_FIELD_NUMBER = 5; + private float probabilityScore_ = 0F; + + /** + * + * + *
            +   * Output only. Harm probability score.
            +   * 
            + * + * float probability_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The probabilityScore. + */ + @java.lang.Override + public float getProbabilityScore() { + return probabilityScore_; + } + + public static final int SEVERITY_FIELD_NUMBER = 6; + private int severity_ = 0; + + /** + * + * + *
            +   * Output only. Harm severity levels in the content.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + + /** + * + * + *
            +   * Output only. Harm severity levels in the content.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity getSeverity() { + com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity result = + com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity.forNumber(severity_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity.UNRECOGNIZED + : result; + } + + public static final int SEVERITY_SCORE_FIELD_NUMBER = 7; + private float severityScore_ = 0F; + + /** + * + * + *
            +   * Output only. Harm severity score.
            +   * 
            + * + * float severity_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The severityScore. + */ + @java.lang.Override + public float getSeverityScore() { + return severityScore_; + } + + public static final int BLOCKED_FIELD_NUMBER = 3; + private boolean blocked_ = false; + + /** + * + * + *
            +   * Output only. Indicates whether the content was filtered out because of this
            +   * rating.
            +   * 
            + * + * bool blocked = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The blocked. + */ + @java.lang.Override + public boolean getBlocked() { + return blocked_; + } + + 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 (category_ + != com.google.cloud.discoveryengine.v1beta.HarmCategory.HARM_CATEGORY_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, category_); + } + if (probability_ + != com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability + .HARM_PROBABILITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, probability_); + } + if (blocked_ != false) { + output.writeBool(3, blocked_); + } + if (java.lang.Float.floatToRawIntBits(probabilityScore_) != 0) { + output.writeFloat(5, probabilityScore_); + } + if (severity_ + != com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity + .HARM_SEVERITY_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, severity_); + } + if (java.lang.Float.floatToRawIntBits(severityScore_) != 0) { + output.writeFloat(7, severityScore_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (category_ + != com.google.cloud.discoveryengine.v1beta.HarmCategory.HARM_CATEGORY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, category_); + } + if (probability_ + != com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability + .HARM_PROBABILITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, probability_); + } + if (blocked_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, blocked_); + } + if (java.lang.Float.floatToRawIntBits(probabilityScore_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, probabilityScore_); + } + if (severity_ + != com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity + .HARM_SEVERITY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, severity_); + } + if (java.lang.Float.floatToRawIntBits(severityScore_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, severityScore_); + } + 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.v1beta.SafetyRating)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SafetyRating other = + (com.google.cloud.discoveryengine.v1beta.SafetyRating) obj; + + if (category_ != other.category_) return false; + if (probability_ != other.probability_) return false; + if (java.lang.Float.floatToIntBits(getProbabilityScore()) + != java.lang.Float.floatToIntBits(other.getProbabilityScore())) return false; + if (severity_ != other.severity_) return false; + if (java.lang.Float.floatToIntBits(getSeverityScore()) + != java.lang.Float.floatToIntBits(other.getSeverityScore())) return false; + if (getBlocked() != other.getBlocked()) 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) + CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + category_; + hash = (37 * hash) + PROBABILITY_FIELD_NUMBER; + hash = (53 * hash) + probability_; + hash = (37 * hash) + PROBABILITY_SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getProbabilityScore()); + hash = (37 * hash) + SEVERITY_FIELD_NUMBER; + hash = (53 * hash) + severity_; + hash = (37 * hash) + SEVERITY_SCORE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getSeverityScore()); + hash = (37 * hash) + BLOCKED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBlocked()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SafetyRating parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SafetyRating 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.v1beta.SafetyRating parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SafetyRating parseFrom( + 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.v1beta.SafetyRating parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SafetyRating parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SafetyRating parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SafetyRating parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SafetyRating parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SafetyRating parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SafetyRating parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SafetyRating parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.SafetyRating prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Safety rating corresponding to the generated content.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SafetyRating} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SafetyRating) + com.google.cloud.discoveryengine.v1beta.SafetyRatingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SafetyProto + .internal_static_google_cloud_discoveryengine_v1beta_SafetyRating_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SafetyProto + .internal_static_google_cloud_discoveryengine_v1beta_SafetyRating_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SafetyRating.class, + com.google.cloud.discoveryengine.v1beta.SafetyRating.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.SafetyRating.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + category_ = 0; + probability_ = 0; + probabilityScore_ = 0F; + severity_ = 0; + severityScore_ = 0F; + blocked_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SafetyProto + .internal_static_google_cloud_discoveryengine_v1beta_SafetyRating_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SafetyRating getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SafetyRating.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SafetyRating build() { + com.google.cloud.discoveryengine.v1beta.SafetyRating result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SafetyRating buildPartial() { + com.google.cloud.discoveryengine.v1beta.SafetyRating result = + new com.google.cloud.discoveryengine.v1beta.SafetyRating(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SafetyRating result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.category_ = category_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.probability_ = probability_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.probabilityScore_ = probabilityScore_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.severity_ = severity_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.severityScore_ = severityScore_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.blocked_ = blocked_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.SafetyRating) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SafetyRating) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SafetyRating other) { + if (other == com.google.cloud.discoveryengine.v1beta.SafetyRating.getDefaultInstance()) + return this; + if (other.category_ != 0) { + setCategoryValue(other.getCategoryValue()); + } + if (other.probability_ != 0) { + setProbabilityValue(other.getProbabilityValue()); + } + if (java.lang.Float.floatToRawIntBits(other.getProbabilityScore()) != 0) { + setProbabilityScore(other.getProbabilityScore()); + } + if (other.severity_ != 0) { + setSeverityValue(other.getSeverityValue()); + } + if (java.lang.Float.floatToRawIntBits(other.getSeverityScore()) != 0) { + setSeverityScore(other.getSeverityScore()); + } + if (other.getBlocked() != false) { + setBlocked(other.getBlocked()); + } + 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: + { + category_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + probability_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + blocked_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 24 + case 45: + { + probabilityScore_ = input.readFloat(); + bitField0_ |= 0x00000004; + break; + } // case 45 + case 48: + { + severity_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 48 + case 61: + { + severityScore_ = input.readFloat(); + bitField0_ |= 0x00000010; + break; + } // case 61 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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 category_ = 0; + + /** + * + * + *
            +     * Output only. Harm category.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HarmCategory category = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for category. + */ + @java.lang.Override + public int getCategoryValue() { + return category_; + } + + /** + * + * + *
            +     * Output only. Harm category.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HarmCategory category = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for category to set. + * @return This builder for chaining. + */ + public Builder setCategoryValue(int value) { + category_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Harm category.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HarmCategory category = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The category. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.HarmCategory getCategory() { + com.google.cloud.discoveryengine.v1beta.HarmCategory result = + com.google.cloud.discoveryengine.v1beta.HarmCategory.forNumber(category_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.HarmCategory.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Output only. Harm category.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HarmCategory category = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The category to set. + * @return This builder for chaining. + */ + public Builder setCategory(com.google.cloud.discoveryengine.v1beta.HarmCategory value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + category_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Harm category.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HarmCategory category = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCategory() { + bitField0_ = (bitField0_ & ~0x00000001); + category_ = 0; + onChanged(); + return this; + } + + private int probability_ = 0; + + /** + * + * + *
            +     * Output only. Harm probability levels in the content.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability probability = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for probability. + */ + @java.lang.Override + public int getProbabilityValue() { + return probability_; + } + + /** + * + * + *
            +     * Output only. Harm probability levels in the content.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability probability = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for probability to set. + * @return This builder for chaining. + */ + public Builder setProbabilityValue(int value) { + probability_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Harm probability levels in the content.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability probability = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The probability. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability getProbability() { + com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability result = + com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability.forNumber( + probability_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Output only. Harm probability levels in the content.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability probability = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The probability to set. + * @return This builder for chaining. + */ + public Builder setProbability( + com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + probability_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Harm probability levels in the content.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability probability = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearProbability() { + bitField0_ = (bitField0_ & ~0x00000002); + probability_ = 0; + onChanged(); + return this; + } + + private float probabilityScore_; + + /** + * + * + *
            +     * Output only. Harm probability score.
            +     * 
            + * + * float probability_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The probabilityScore. + */ + @java.lang.Override + public float getProbabilityScore() { + return probabilityScore_; + } + + /** + * + * + *
            +     * Output only. Harm probability score.
            +     * 
            + * + * float probability_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The probabilityScore to set. + * @return This builder for chaining. + */ + public Builder setProbabilityScore(float value) { + + probabilityScore_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Harm probability score.
            +     * 
            + * + * float probability_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearProbabilityScore() { + bitField0_ = (bitField0_ & ~0x00000004); + probabilityScore_ = 0F; + onChanged(); + return this; + } + + private int severity_ = 0; + + /** + * + * + *
            +     * Output only. Harm severity levels in the content.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for severity. + */ + @java.lang.Override + public int getSeverityValue() { + return severity_; + } + + /** + * + * + *
            +     * Output only. Harm severity levels in the content.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for severity to set. + * @return This builder for chaining. + */ + public Builder setSeverityValue(int value) { + severity_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Harm severity levels in the content.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The severity. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity getSeverity() { + com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity result = + com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity.forNumber(severity_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Output only. Harm severity levels in the content.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The severity to set. + * @return This builder for chaining. + */ + public Builder setSeverity( + com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + severity_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Harm severity levels in the content.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearSeverity() { + bitField0_ = (bitField0_ & ~0x00000008); + severity_ = 0; + onChanged(); + return this; + } + + private float severityScore_; + + /** + * + * + *
            +     * Output only. Harm severity score.
            +     * 
            + * + * float severity_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The severityScore. + */ + @java.lang.Override + public float getSeverityScore() { + return severityScore_; + } + + /** + * + * + *
            +     * Output only. Harm severity score.
            +     * 
            + * + * float severity_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The severityScore to set. + * @return This builder for chaining. + */ + public Builder setSeverityScore(float value) { + + severityScore_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Harm severity score.
            +     * 
            + * + * float severity_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSeverityScore() { + bitField0_ = (bitField0_ & ~0x00000010); + severityScore_ = 0F; + onChanged(); + return this; + } + + private boolean blocked_; + + /** + * + * + *
            +     * Output only. Indicates whether the content was filtered out because of this
            +     * rating.
            +     * 
            + * + * bool blocked = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The blocked. + */ + @java.lang.Override + public boolean getBlocked() { + return blocked_; + } + + /** + * + * + *
            +     * Output only. Indicates whether the content was filtered out because of this
            +     * rating.
            +     * 
            + * + * bool blocked = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The blocked to set. + * @return This builder for chaining. + */ + public Builder setBlocked(boolean value) { + + blocked_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Indicates whether the content was filtered out because of this
            +     * rating.
            +     * 
            + * + * bool blocked = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearBlocked() { + bitField0_ = (bitField0_ & ~0x00000020); + blocked_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SafetyRating) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SafetyRating) + private static final com.google.cloud.discoveryengine.v1beta.SafetyRating DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SafetyRating(); + } + + public static com.google.cloud.discoveryengine.v1beta.SafetyRating getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SafetyRating parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.SafetyRating getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SafetyRatingOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SafetyRatingOrBuilder.java new file mode 100644 index 000000000000..eacd8d302c5a --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SafetyRatingOrBuilder.java @@ -0,0 +1,158 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/safety.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface SafetyRatingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SafetyRating) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. Harm category.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HarmCategory category = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for category. + */ + int getCategoryValue(); + + /** + * + * + *
            +   * Output only. Harm category.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.HarmCategory category = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The category. + */ + com.google.cloud.discoveryengine.v1beta.HarmCategory getCategory(); + + /** + * + * + *
            +   * Output only. Harm probability levels in the content.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability probability = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for probability. + */ + int getProbabilityValue(); + + /** + * + * + *
            +   * Output only. Harm probability levels in the content.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability probability = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The probability. + */ + com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmProbability getProbability(); + + /** + * + * + *
            +   * Output only. Harm probability score.
            +   * 
            + * + * float probability_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The probabilityScore. + */ + float getProbabilityScore(); + + /** + * + * + *
            +   * Output only. Harm severity levels in the content.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for severity. + */ + int getSeverityValue(); + + /** + * + * + *
            +   * Output only. Harm severity levels in the content.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity severity = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The severity. + */ + com.google.cloud.discoveryengine.v1beta.SafetyRating.HarmSeverity getSeverity(); + + /** + * + * + *
            +   * Output only. Harm severity score.
            +   * 
            + * + * float severity_score = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The severityScore. + */ + float getSeverityScore(); + + /** + * + * + *
            +   * Output only. Indicates whether the content was filtered out because of this
            +   * rating.
            +   * 
            + * + * bool blocked = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The blocked. + */ + boolean getBlocked(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceProto.java index 93e7987dceae..ec74d052c5a1 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQueryServiceProto.java @@ -106,7 +106,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\\\n" + "\030DeleteSampleQueryRequest\022@\n" + "\004name\030\001 \001(\tB2\340A\002\372A,\n" - + "*discoveryengine.googleapis.com/SampleQuery2\353\014\n" + + "*discoveryengine.googleapis.com/SampleQuery2\351\r\n" + "\022SampleQueryService\022\326\001\n" + "\016GetSampleQuery\022:.google.cloud.discoveryengine.v1b" + "eta.GetSampleQueryRequest\0320.google.cloud" @@ -138,13 +138,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "iesResponse\022?google.cloud.discoveryengin" + "e.v1beta.ImportSampleQueriesMetadata\202\323\344\223" + "\002S\"N/v1beta/{parent=projects/*/locations/*/sampleQuerySets/*}/sampleQueries:impo" - + "rt:\001*\032R\312A\036discoveryengine.googleapis.com" - + "\322A.https://www.googleapis.com/auth/cloud-platformB\236\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB\027SampleQueryServiceProtoP\001" - + "ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryengin" - + "epb\242\002\017DISCOVERYENGINE\252\002#Google.Cloud.Dis" - + "coveryEngine.V1Beta\312\002#Google\\Cloud\\Disco" - + "veryEngine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" + + "rt:\001*\032\317\001\312A\036discoveryengine.googleapis.co" + + "m\322A\252\001https://www.googleapis.com/auth/clo" + + "ud-platform,https://www.googleapis.com/auth/discoveryengine.readwrite,https://ww" + + "w.googleapis.com/auth/discoveryengine.serving.readwriteB\236\002\n" + + "\'com.google.cloud.discoveryengine.v1betaB\027SampleQueryServiceP" + + "rotoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discover" + + "yenginepb\242\002\017DISCOVERYENGINE\252\002#Google.Clo" + + "ud.DiscoveryEngine.V1Beta\312\002#Google\\Cloud" + + "\\DiscoveryEngine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceProto.java index 430cb9ca5546..683335193441 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SampleQuerySetServiceProto.java @@ -102,7 +102,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protob" + "uf.FieldMask\"b\n\033DeleteSampleQuerySetRequ" + "est\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-discoveryengi" - + "ne.googleapis.com/SampleQuerySet2\202\n\n\025Sam" + + "ne.googleapis.com/SampleQuerySet2\200\013\n\025Sam" + "pleQuerySetService\022\317\001\n\021GetSampleQuerySet" + "\022=.google.cloud.discoveryengine.v1beta.G" + "etSampleQuerySetRequest\0323.google.cloud.d" @@ -132,17 +132,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".cloud.discoveryengine.v1beta.DeleteSamp" + "leQuerySetRequest\032\026.google.protobuf.Empt" + "y\"F\332A\004name\202\323\344\223\0029*7/v1beta/{name=projects" - + "/*/locations/*/sampleQuerySets/*}\032R\312A\036di" - + "scoveryengine.googleapis.com\322A.https://w" - + "ww.googleapis.com/auth/cloud-platformB\241\002" - + "\n\'com.google.cloud.discoveryengine.v1bet" - + "aB\032SampleQuerySetServiceProtoP\001ZQcloud.g" - + "oogle.com/go/discoveryengine/apiv1beta/d" - + "iscoveryenginepb;discoveryenginepb\242\002\017DIS" - + "COVERYENGINE\252\002#Google.Cloud.DiscoveryEng" - + "ine.V1Beta\312\002#Google\\Cloud\\DiscoveryEngin" - + "e\\V1beta\352\002&Google::Cloud::DiscoveryEngin" - + "e::V1betab\006proto3" + + "/*/locations/*/sampleQuerySets/*}\032\317\001\312A\036d" + + "iscoveryengine.googleapis.com\322A\252\001https:/" + + "/www.googleapis.com/auth/cloud-platform," + + "https://www.googleapis.com/auth/discover" + + "yengine.readwrite,https://www.googleapis" + + ".com/auth/discoveryengine.serving.readwr" + + "iteB\241\002\n\'com.google.cloud.discoveryengine" + + ".v1betaB\032SampleQuerySetServiceProtoP\001ZQc" + + "loud.google.com/go/discoveryengine/apiv1" + + "beta/discoveryenginepb;discoveryenginepb" + + "\242\002\017DISCOVERYENGINE\252\002#Google.Cloud.Discov" + + "eryEngine.V1Beta\312\002#Google\\Cloud\\Discover" + + "yEngine\\V1beta\352\002&Google::Cloud::Discover" + + "yEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceProto.java index 99a1ece328f8..2843114b01d8 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SchemaServiceProto.java @@ -120,7 +120,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rotobuf.Timestamp\"x\n\024DeleteSchemaMetadat" + "a\022/\n\013create_time\030\001 \001(\0132\032.google.protobuf" + ".Timestamp\022/\n\013update_time\030\002 \001(\0132\032.google" - + ".protobuf.Timestamp2\211\016\n\rSchemaService\022\214\002" + + ".protobuf.Timestamp2\207\017\n\rSchemaService\022\214\002" + "\n\tGetSchema\0225.google.cloud.discoveryengi" + "ne.v1beta.GetSchemaRequest\032+.google.clou" + "d.discoveryengine.v1beta.Schema\"\232\001\332A\004nam" @@ -163,16 +163,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " + * Promotion proto includes uri and other helping information to display the + * promotion. + *
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchLinkPromotion} + */ +@com.google.protobuf.Generated +public final class SearchLinkPromotion extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchLinkPromotion) + SearchLinkPromotionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchLinkPromotion"); + } + + // Use SearchLinkPromotion.newBuilder() to construct. + private SearchLinkPromotion(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchLinkPromotion() { + title_ = ""; + uri_ = ""; + document_ = ""; + imageUri_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchLinkPromotion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchLinkPromotion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.class, + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.Builder.class); + } + + public static final int TITLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
            +   * Required. The title of the promotion.
            +   * Maximum length: 160 characters.
            +   * 
            + * + * string title = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
            +   * Required. The title of the promotion.
            +   * Maximum length: 160 characters.
            +   * 
            + * + * string title = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + public static final int URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
            +   * Optional. The URL for the page the user wants to promote. Must be set for
            +   * site search. For other verticals, this is optional.
            +   * 
            + * + * string uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +   * Optional. The URL for the page the user wants to promote. Must be set for
            +   * site search. For other verticals, this is optional.
            +   * 
            + * + * string uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 DOCUMENT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object document_ = ""; + + /** + * + * + *
            +   * Optional. The [Document][google.cloud.discoveryengine.v1beta.Document] the
            +   * user wants to promote. For site search, leave unset and only populate uri.
            +   * Can be set along with uri.
            +   * 
            + * + * + * string document = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The document. + */ + @java.lang.Override + public java.lang.String getDocument() { + java.lang.Object ref = document_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + document_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The [Document][google.cloud.discoveryengine.v1beta.Document] the
            +   * user wants to promote. For site search, leave unset and only populate uri.
            +   * Can be set along with uri.
            +   * 
            + * + * + * string document = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for document. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDocumentBytes() { + java.lang.Object ref = document_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + document_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMAGE_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object imageUri_ = ""; + + /** + * + * + *
            +   * Optional. The promotion thumbnail image url.
            +   * 
            + * + * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The imageUri. + */ + @java.lang.Override + public java.lang.String getImageUri() { + java.lang.Object ref = imageUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageUri_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The promotion thumbnail image url.
            +   * 
            + * + * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for imageUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getImageUriBytes() { + java.lang.Object ref = imageUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
            +   * Optional. The Promotion description.
            +   * Maximum length: 200 characters.
            +   * 
            + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The Promotion description.
            +   * Maximum length: 200 characters.
            +   * 
            + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLED_FIELD_NUMBER = 5; + private boolean enabled_ = false; + + /** + * + * + *
            +   * Optional. The enabled promotion will be returned for any serving configs
            +   * associated with the parent of the control this promotion is attached to.
            +   *
            +   * This flag is used for basic site search only.
            +   * 
            + * + * bool enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(imageUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, imageUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, description_); + } + if (enabled_ != false) { + output.writeBool(5, enabled_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, document_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(imageUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, imageUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_); + } + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, enabled_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(document_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, document_); + } + 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.v1beta.SearchLinkPromotion)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion other = + (com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion) obj; + + if (!getTitle().equals(other.getTitle())) return false; + if (!getUri().equals(other.getUri())) return false; + if (!getDocument().equals(other.getDocument())) return false; + if (!getImageUri().equals(other.getImageUri())) return false; + if (!getDescription().equals(other.getDescription())) return false; + 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) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + DOCUMENT_FIELD_NUMBER; + hash = (53 * hash) + getDocument().hashCode(); + hash = (37 * hash) + IMAGE_URI_FIELD_NUMBER; + hash = (53 * hash) + getImageUri().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().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.cloud.discoveryengine.v1beta.SearchLinkPromotion parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion 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.v1beta.SearchLinkPromotion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion parseFrom( + 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.v1beta.SearchLinkPromotion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Promotion proto includes uri and other helping information to display the
            +   * promotion.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchLinkPromotion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchLinkPromotion) + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchLinkPromotion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchLinkPromotion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.class, + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + title_ = ""; + uri_ = ""; + document_ = ""; + imageUri_ = ""; + description_ = ""; + enabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchLinkPromotion_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion build() { + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion result = + new com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.document_ = document_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.imageUri_ = imageUri_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.enabled_ = enabled_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion other) { + if (other == com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.getDefaultInstance()) + return this; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDocument().isEmpty()) { + document_ = other.document_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getImageUri().isEmpty()) { + imageUri_ = other.imageUri_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + 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 10: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + imageUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 40: + { + enabled_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 40 + case 50: + { + document_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + 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 title_ = ""; + + /** + * + * + *
            +     * Required. The title of the promotion.
            +     * Maximum length: 160 characters.
            +     * 
            + * + * string title = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
            +     * Required. The title of the promotion.
            +     * Maximum length: 160 characters.
            +     * 
            + * + * string title = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
            +     * Required. The title of the promotion.
            +     * Maximum length: 160 characters.
            +     * 
            + * + * string title = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The title of the promotion.
            +     * Maximum length: 160 characters.
            +     * 
            + * + * string title = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The title of the promotion.
            +     * Maximum length: 160 characters.
            +     * 
            + * + * string title = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uri_ = ""; + + /** + * + * + *
            +     * Optional. The URL for the page the user wants to promote. Must be set for
            +     * site search. For other verticals, this is optional.
            +     * 
            + * + * string uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +     * Optional. The URL for the page the user wants to promote. Must be set for
            +     * site search. For other verticals, this is optional.
            +     * 
            + * + * string uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +     * Optional. The URL for the page the user wants to promote. Must be set for
            +     * site search. For other verticals, this is optional.
            +     * 
            + * + * string uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
            +     * Optional. The URL for the page the user wants to promote. Must be set for
            +     * site search. For other verticals, this is optional.
            +     * 
            + * + * string uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The URL for the page the user wants to promote. Must be set for
            +     * site search. For other verticals, this is optional.
            +     * 
            + * + * string uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 document_ = ""; + + /** + * + * + *
            +     * Optional. The [Document][google.cloud.discoveryengine.v1beta.Document] the
            +     * user wants to promote. For site search, leave unset and only populate uri.
            +     * Can be set along with uri.
            +     * 
            + * + * + * string document = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The document. + */ + public java.lang.String getDocument() { + java.lang.Object ref = document_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + document_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The [Document][google.cloud.discoveryengine.v1beta.Document] the
            +     * user wants to promote. For site search, leave unset and only populate uri.
            +     * Can be set along with uri.
            +     * 
            + * + * + * string document = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for document. + */ + public com.google.protobuf.ByteString getDocumentBytes() { + java.lang.Object ref = document_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + document_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The [Document][google.cloud.discoveryengine.v1beta.Document] the
            +     * user wants to promote. For site search, leave unset and only populate uri.
            +     * Can be set along with uri.
            +     * 
            + * + * + * string document = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The document to set. + * @return This builder for chaining. + */ + public Builder setDocument(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + document_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The [Document][google.cloud.discoveryengine.v1beta.Document] the
            +     * user wants to promote. For site search, leave unset and only populate uri.
            +     * Can be set along with uri.
            +     * 
            + * + * + * string document = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDocument() { + document_ = getDefaultInstance().getDocument(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The [Document][google.cloud.discoveryengine.v1beta.Document] the
            +     * user wants to promote. For site search, leave unset and only populate uri.
            +     * Can be set along with uri.
            +     * 
            + * + * + * string document = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for document to set. + * @return This builder for chaining. + */ + public Builder setDocumentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + document_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object imageUri_ = ""; + + /** + * + * + *
            +     * Optional. The promotion thumbnail image url.
            +     * 
            + * + * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The imageUri. + */ + public java.lang.String getImageUri() { + java.lang.Object ref = imageUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + imageUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The promotion thumbnail image url.
            +     * 
            + * + * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for imageUri. + */ + public com.google.protobuf.ByteString getImageUriBytes() { + java.lang.Object ref = imageUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + imageUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The promotion thumbnail image url.
            +     * 
            + * + * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The imageUri to set. + * @return This builder for chaining. + */ + public Builder setImageUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + imageUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The promotion thumbnail image url.
            +     * 
            + * + * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearImageUri() { + imageUri_ = getDefaultInstance().getImageUri(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The promotion thumbnail image url.
            +     * 
            + * + * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for imageUri to set. + * @return This builder for chaining. + */ + public Builder setImageUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageUri_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
            +     * Optional. The Promotion description.
            +     * Maximum length: 200 characters.
            +     * 
            + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The Promotion description.
            +     * Maximum length: 200 characters.
            +     * 
            + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The Promotion description.
            +     * Maximum length: 200 characters.
            +     * 
            + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The Promotion description.
            +     * Maximum length: 200 characters.
            +     * 
            + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The Promotion description.
            +     * Maximum length: 200 characters.
            +     * 
            + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean enabled_; + + /** + * + * + *
            +     * Optional. The enabled promotion will be returned for any serving configs
            +     * associated with the parent of the control this promotion is attached to.
            +     *
            +     * This flag is used for basic site search only.
            +     * 
            + * + * bool enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + @java.lang.Override + public boolean getEnabled() { + return enabled_; + } + + /** + * + * + *
            +     * Optional. The enabled promotion will be returned for any serving configs
            +     * associated with the parent of the control this promotion is attached to.
            +     *
            +     * This flag is used for basic site search only.
            +     * 
            + * + * bool enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The enabled promotion will be returned for any serving configs
            +     * associated with the parent of the control this promotion is attached to.
            +     *
            +     * This flag is used for basic site search only.
            +     * 
            + * + * bool enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnabled() { + bitField0_ = (bitField0_ & ~0x00000020); + enabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchLinkPromotion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchLinkPromotion) + private static final com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchLinkPromotion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.SearchLinkPromotion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchLinkPromotionOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchLinkPromotionOrBuilder.java new file mode 100644 index 000000000000..b55137e865f9 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchLinkPromotionOrBuilder.java @@ -0,0 +1,188 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface SearchLinkPromotionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchLinkPromotion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The title of the promotion.
            +   * Maximum length: 160 characters.
            +   * 
            + * + * string title = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
            +   * Required. The title of the promotion.
            +   * Maximum length: 160 characters.
            +   * 
            + * + * string title = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
            +   * Optional. The URL for the page the user wants to promote. Must be set for
            +   * site search. For other verticals, this is optional.
            +   * 
            + * + * string uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
            +   * Optional. The URL for the page the user wants to promote. Must be set for
            +   * site search. For other verticals, this is optional.
            +   * 
            + * + * string uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
            +   * Optional. The [Document][google.cloud.discoveryengine.v1beta.Document] the
            +   * user wants to promote. For site search, leave unset and only populate uri.
            +   * Can be set along with uri.
            +   * 
            + * + * + * string document = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The document. + */ + java.lang.String getDocument(); + + /** + * + * + *
            +   * Optional. The [Document][google.cloud.discoveryengine.v1beta.Document] the
            +   * user wants to promote. For site search, leave unset and only populate uri.
            +   * Can be set along with uri.
            +   * 
            + * + * + * string document = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for document. + */ + com.google.protobuf.ByteString getDocumentBytes(); + + /** + * + * + *
            +   * Optional. The promotion thumbnail image url.
            +   * 
            + * + * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The imageUri. + */ + java.lang.String getImageUri(); + + /** + * + * + *
            +   * Optional. The promotion thumbnail image url.
            +   * 
            + * + * string image_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for imageUri. + */ + com.google.protobuf.ByteString getImageUriBytes(); + + /** + * + * + *
            +   * Optional. The Promotion description.
            +   * Maximum length: 200 characters.
            +   * 
            + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
            +   * Optional. The Promotion description.
            +   * Maximum length: 200 characters.
            +   * 
            + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
            +   * Optional. The enabled promotion will be returned for any serving configs
            +   * associated with the parent of the control this promotion is attached to.
            +   *
            +   * This flag is used for basic site search only.
            +   * 
            + * + * bool enabled = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java index 860fd14c7fdd..7c010dec994b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequest.java @@ -57,6 +57,7 @@ private SearchRequest() { servingConfig_ = ""; branch_ = ""; query_ = ""; + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); pageToken_ = ""; dataStoreSpecs_ = java.util.Collections.emptyList(); filter_ = ""; @@ -68,8 +69,10 @@ private SearchRequest() { userPseudoId_ = ""; rankingExpression_ = ""; rankingExpressionBackend_ = 0; + crowdingSpecs_ = java.util.Collections.emptyList(); session_ = ""; relevanceThreshold_ = 0; + entity_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -105,65 +108,71 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * *
            -   * The relevance threshold of the search results. The higher relevance
            -   * threshold is, the higher relevant results are shown and the less number of
            -   * results are returned.
            +   * The backend to use for the ranking expression evaluation.
                * 
            * - * Protobuf enum {@code google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold} + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend} */ - public enum RelevanceThreshold implements com.google.protobuf.ProtocolMessageEnum { + public enum RankingExpressionBackend implements com.google.protobuf.ProtocolMessageEnum { /** * * *
            -     * Default value. In this case, server behavior defaults to Google defined
            -     * threshold.
            +     * Default option for unspecified/unknown values.
                  * 
            * - * RELEVANCE_THRESHOLD_UNSPECIFIED = 0; + * RANKING_EXPRESSION_BACKEND_UNSPECIFIED = 0; */ - RELEVANCE_THRESHOLD_UNSPECIFIED(0), + RANKING_EXPRESSION_BACKEND_UNSPECIFIED(0), /** * * *
            -     * Lowest relevance threshold.
            +     * Deprecated: Use `RANK_BY_EMBEDDING` instead.
            +     * Ranking by custom embedding model, the default way to evaluate the
            +     * ranking expression. Legacy enum option, `RANK_BY_EMBEDDING` should be
            +     * used instead.
                  * 
            * - * LOWEST = 1; + * BYOE = 1 [deprecated = true]; */ - LOWEST(1), + @java.lang.Deprecated + BYOE(1), /** * * *
            -     * Low relevance threshold.
            +     * Deprecated: Use `RANK_BY_FORMULA` instead.
            +     * Ranking by custom formula. Legacy enum option, `RANK_BY_FORMULA` should
            +     * be used instead.
                  * 
            * - * LOW = 2; + * CLEARBOX = 2 [deprecated = true]; */ - LOW(2), + @java.lang.Deprecated + CLEARBOX(2), /** * * *
            -     * Medium relevance threshold.
            +     * Ranking by custom embedding model, the default way to evaluate the
            +     * ranking expression.
                  * 
            * - * MEDIUM = 3; + * RANK_BY_EMBEDDING = 3; */ - MEDIUM(3), + RANK_BY_EMBEDDING(3), /** * * *
            -     * High relevance threshold.
            +     * Ranking by custom formula.
                  * 
            * - * HIGH = 4; + * RANK_BY_FORMULA = 4; */ - HIGH(4), + RANK_BY_FORMULA(4), UNRECOGNIZED(-1), ; @@ -174,64 +183,69 @@ public enum RelevanceThreshold implements com.google.protobuf.ProtocolMessageEnu /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "RelevanceThreshold"); + "RankingExpressionBackend"); } /** * * *
            -     * Default value. In this case, server behavior defaults to Google defined
            -     * threshold.
            +     * Default option for unspecified/unknown values.
                  * 
            * - * RELEVANCE_THRESHOLD_UNSPECIFIED = 0; + * RANKING_EXPRESSION_BACKEND_UNSPECIFIED = 0; */ - public static final int RELEVANCE_THRESHOLD_UNSPECIFIED_VALUE = 0; + public static final int RANKING_EXPRESSION_BACKEND_UNSPECIFIED_VALUE = 0; /** * * *
            -     * Lowest relevance threshold.
            +     * Deprecated: Use `RANK_BY_EMBEDDING` instead.
            +     * Ranking by custom embedding model, the default way to evaluate the
            +     * ranking expression. Legacy enum option, `RANK_BY_EMBEDDING` should be
            +     * used instead.
                  * 
            * - * LOWEST = 1; + * BYOE = 1 [deprecated = true]; */ - public static final int LOWEST_VALUE = 1; + @java.lang.Deprecated public static final int BYOE_VALUE = 1; /** * * *
            -     * Low relevance threshold.
            +     * Deprecated: Use `RANK_BY_FORMULA` instead.
            +     * Ranking by custom formula. Legacy enum option, `RANK_BY_FORMULA` should
            +     * be used instead.
                  * 
            * - * LOW = 2; + * CLEARBOX = 2 [deprecated = true]; */ - public static final int LOW_VALUE = 2; + @java.lang.Deprecated public static final int CLEARBOX_VALUE = 2; /** * * *
            -     * Medium relevance threshold.
            +     * Ranking by custom embedding model, the default way to evaluate the
            +     * ranking expression.
                  * 
            * - * MEDIUM = 3; + * RANK_BY_EMBEDDING = 3; */ - public static final int MEDIUM_VALUE = 3; + public static final int RANK_BY_EMBEDDING_VALUE = 3; /** * * *
            -     * High relevance threshold.
            +     * Ranking by custom formula.
                  * 
            * - * HIGH = 4; + * RANK_BY_FORMULA = 4; */ - public static final int HIGH_VALUE = 4; + public static final int RANK_BY_FORMULA_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -247,7 +261,7 @@ public final int getNumber() { * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static RelevanceThreshold valueOf(int value) { + public static RankingExpressionBackend valueOf(int value) { return forNumber(value); } @@ -255,33 +269,33 @@ public static RelevanceThreshold valueOf(int value) { * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ - public static RelevanceThreshold forNumber(int value) { + public static RankingExpressionBackend forNumber(int value) { switch (value) { case 0: - return RELEVANCE_THRESHOLD_UNSPECIFIED; + return RANKING_EXPRESSION_BACKEND_UNSPECIFIED; case 1: - return LOWEST; + return BYOE; case 2: - return LOW; + return CLEARBOX; case 3: - return MEDIUM; + return RANK_BY_EMBEDDING; case 4: - return HIGH; + return RANK_BY_FORMULA; default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RelevanceThreshold findValueByNumber(int number) { - return RelevanceThreshold.forNumber(number); + new com.google.protobuf.Internal.EnumLiteMap() { + public RankingExpressionBackend findValueByNumber(int number) { + return RankingExpressionBackend.forNumber(number); } }; @@ -303,9 +317,9 @@ public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { .get(0); } - private static final RelevanceThreshold[] VALUES = values(); + private static final RankingExpressionBackend[] VALUES = values(); - public static RelevanceThreshold valueOf( + public static RankingExpressionBackend valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); @@ -318,55 +332,76 @@ public static RelevanceThreshold valueOf( private final int value; - private RelevanceThreshold(int value) { + private RankingExpressionBackend(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold) + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend) } /** * * *
            -   * The backend to use for the ranking expression evaluation.
            +   * The relevance threshold of the search results. The higher relevance
            +   * threshold is, the higher relevant results are shown and the less number of
            +   * results are returned.
                * 
            * - * Protobuf enum {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend} + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold} */ - public enum RankingExpressionBackend implements com.google.protobuf.ProtocolMessageEnum { + public enum RelevanceThreshold implements com.google.protobuf.ProtocolMessageEnum { /** * * *
            -     * Default option for unspecified/unknown values.
            +     * Default value. In this case, server behavior defaults to Google defined
            +     * threshold.
                  * 
            * - * RANKING_EXPRESSION_BACKEND_UNSPECIFIED = 0; + * RELEVANCE_THRESHOLD_UNSPECIFIED = 0; */ - RANKING_EXPRESSION_BACKEND_UNSPECIFIED(0), + RELEVANCE_THRESHOLD_UNSPECIFIED(0), /** * * *
            -     * Ranking by custom embedding model, the default way to evaluate the
            -     * ranking expression.
            +     * Lowest relevance threshold.
                  * 
            * - * RANK_BY_EMBEDDING = 3; + * LOWEST = 1; */ - RANK_BY_EMBEDDING(3), + LOWEST(1), /** * * *
            -     * Ranking by custom formula.
            +     * Low relevance threshold.
                  * 
            * - * RANK_BY_FORMULA = 4; + * LOW = 2; */ - RANK_BY_FORMULA(4), + LOW(2), + /** + * + * + *
            +     * Medium relevance threshold.
            +     * 
            + * + * MEDIUM = 3; + */ + MEDIUM(3), + /** + * + * + *
            +     * High relevance threshold.
            +     * 
            + * + * HIGH = 4; + */ + HIGH(4), UNRECOGNIZED(-1), ; @@ -377,42 +412,64 @@ public enum RankingExpressionBackend implements com.google.protobuf.ProtocolMess /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "RankingExpressionBackend"); + "RelevanceThreshold"); } /** * * *
            -     * Default option for unspecified/unknown values.
            +     * Default value. In this case, server behavior defaults to Google defined
            +     * threshold.
                  * 
            * - * RANKING_EXPRESSION_BACKEND_UNSPECIFIED = 0; + * RELEVANCE_THRESHOLD_UNSPECIFIED = 0; */ - public static final int RANKING_EXPRESSION_BACKEND_UNSPECIFIED_VALUE = 0; + public static final int RELEVANCE_THRESHOLD_UNSPECIFIED_VALUE = 0; /** * * *
            -     * Ranking by custom embedding model, the default way to evaluate the
            -     * ranking expression.
            +     * Lowest relevance threshold.
                  * 
            * - * RANK_BY_EMBEDDING = 3; + * LOWEST = 1; */ - public static final int RANK_BY_EMBEDDING_VALUE = 3; + public static final int LOWEST_VALUE = 1; /** * * *
            -     * Ranking by custom formula.
            +     * Low relevance threshold.
                  * 
            * - * RANK_BY_FORMULA = 4; + * LOW = 2; */ - public static final int RANK_BY_FORMULA_VALUE = 4; + public static final int LOW_VALUE = 2; + + /** + * + * + *
            +     * Medium relevance threshold.
            +     * 
            + * + * MEDIUM = 3; + */ + public static final int MEDIUM_VALUE = 3; + + /** + * + * + *
            +     * High relevance threshold.
            +     * 
            + * + * HIGH = 4; + */ + public static final int HIGH_VALUE = 4; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -428,7 +485,7 @@ public final int getNumber() { * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static RankingExpressionBackend valueOf(int value) { + public static RelevanceThreshold valueOf(int value) { return forNumber(value); } @@ -436,29 +493,33 @@ public static RankingExpressionBackend valueOf(int value) { * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ - public static RankingExpressionBackend forNumber(int value) { + public static RelevanceThreshold forNumber(int value) { switch (value) { case 0: - return RANKING_EXPRESSION_BACKEND_UNSPECIFIED; + return RELEVANCE_THRESHOLD_UNSPECIFIED; + case 1: + return LOWEST; + case 2: + return LOW; case 3: - return RANK_BY_EMBEDDING; + return MEDIUM; case 4: - return RANK_BY_FORMULA; + return HIGH; default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RankingExpressionBackend findValueByNumber(int number) { - return RankingExpressionBackend.forNumber(number); + new com.google.protobuf.Internal.EnumLiteMap() { + public RelevanceThreshold findValueByNumber(int number) { + return RelevanceThreshold.forNumber(number); } }; @@ -480,9 +541,9 @@ public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { .get(1); } - private static final RankingExpressionBackend[] VALUES = values(); + private static final RelevanceThreshold[] VALUES = values(); - public static RankingExpressionBackend valueOf( + public static RelevanceThreshold valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); @@ -495,11 +556,11 @@ public static RankingExpressionBackend valueOf( private final int value; - private RankingExpressionBackend(int value) { + private RelevanceThreshold(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend) + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold) } public interface ImageQueryOrBuilder @@ -1404,6 +1465,56 @@ public interface DataStoreSpecOrBuilder */ com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder(); + + /** + * + * + *
            +     * Optional. Custom search operators which if specified will be used to
            +     * filter results from workspace data stores. For more information on custom
            +     * search operators, see
            +     * [SearchOperators](https://support.google.com/cloudsearch/answer/6172299).
            +     * 
            + * + * string custom_search_operators = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customSearchOperators. + */ + java.lang.String getCustomSearchOperators(); + + /** + * + * + *
            +     * Optional. Custom search operators which if specified will be used to
            +     * filter results from workspace data stores. For more information on custom
            +     * search operators, see
            +     * [SearchOperators](https://support.google.com/cloudsearch/answer/6172299).
            +     * 
            + * + * string custom_search_operators = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for customSearchOperators. + */ + com.google.protobuf.ByteString getCustomSearchOperatorsBytes(); + + /** + * + * + *
            +     * Optional. The maximum number of results to retrieve from this data store.
            +     * If not specified, it will use the
            +     * [SearchRequest.num_results_per_data_store][google.cloud.discoveryengine.v1beta.SearchRequest.num_results_per_data_store]
            +     * if provided, otherwise there is no limit. If both this field and
            +     * [SearchRequest.num_results_per_data_store][google.cloud.discoveryengine.v1beta.SearchRequest.num_results_per_data_store]
            +     * are specified, this field will be used.
            +     * 
            + * + * int32 num_results = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The numResults. + */ + int getNumResults(); } /** @@ -1441,6 +1552,7 @@ private DataStoreSpec(com.google.protobuf.GeneratedMessage.Builder builder) { private DataStoreSpec() { dataStore_ = ""; filter_ = ""; + customSearchOperators_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1647,6 +1759,89 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostS : boostSpec_; } + public static final int CUSTOM_SEARCH_OPERATORS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object customSearchOperators_ = ""; + + /** + * + * + *
            +     * Optional. Custom search operators which if specified will be used to
            +     * filter results from workspace data stores. For more information on custom
            +     * search operators, see
            +     * [SearchOperators](https://support.google.com/cloudsearch/answer/6172299).
            +     * 
            + * + * string custom_search_operators = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customSearchOperators. + */ + @java.lang.Override + public java.lang.String getCustomSearchOperators() { + java.lang.Object ref = customSearchOperators_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customSearchOperators_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. Custom search operators which if specified will be used to
            +     * filter results from workspace data stores. For more information on custom
            +     * search operators, see
            +     * [SearchOperators](https://support.google.com/cloudsearch/answer/6172299).
            +     * 
            + * + * string custom_search_operators = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for customSearchOperators. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomSearchOperatorsBytes() { + java.lang.Object ref = customSearchOperators_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customSearchOperators_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NUM_RESULTS_FIELD_NUMBER = 9; + private int numResults_ = 0; + + /** + * + * + *
            +     * Optional. The maximum number of results to retrieve from this data store.
            +     * If not specified, it will use the
            +     * [SearchRequest.num_results_per_data_store][google.cloud.discoveryengine.v1beta.SearchRequest.num_results_per_data_store]
            +     * if provided, otherwise there is no limit. If both this field and
            +     * [SearchRequest.num_results_per_data_store][google.cloud.discoveryengine.v1beta.SearchRequest.num_results_per_data_store]
            +     * are specified, this field will be used.
            +     * 
            + * + * int32 num_results = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The numResults. + */ + @java.lang.Override + public int getNumResults() { + return numResults_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1670,6 +1865,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(6, getBoostSpec()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(customSearchOperators_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, customSearchOperators_); + } + if (numResults_ != 0) { + output.writeInt32(9, numResults_); + } getUnknownFields().writeTo(output); } @@ -1688,6 +1889,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getBoostSpec()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(customSearchOperators_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, customSearchOperators_); + } + if (numResults_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, numResults_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1710,6 +1917,8 @@ public boolean equals(final java.lang.Object obj) { if (hasBoostSpec()) { if (!getBoostSpec().equals(other.getBoostSpec())) return false; } + if (!getCustomSearchOperators().equals(other.getCustomSearchOperators())) return false; + if (getNumResults() != other.getNumResults()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1729,6 +1938,10 @@ public int hashCode() { hash = (37 * hash) + BOOST_SPEC_FIELD_NUMBER; hash = (53 * hash) + getBoostSpec().hashCode(); } + hash = (37 * hash) + CUSTOM_SEARCH_OPERATORS_FIELD_NUMBER; + hash = (53 * hash) + getCustomSearchOperators().hashCode(); + hash = (37 * hash) + NUM_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getNumResults(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1890,6 +2103,8 @@ public Builder clear() { boostSpecBuilder_.dispose(); boostSpecBuilder_ = null; } + customSearchOperators_ = ""; + numResults_ = 0; return this; } @@ -1940,6 +2155,12 @@ private void buildPartial0( result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.customSearchOperators_ = customSearchOperators_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.numResults_ = numResults_; + } result.bitField0_ |= to_bitField0_; } @@ -1972,6 +2193,14 @@ public Builder mergeFrom( if (other.hasBoostSpec()) { mergeBoostSpec(other.getBoostSpec()); } + if (!other.getCustomSearchOperators().isEmpty()) { + customSearchOperators_ = other.customSearchOperators_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getNumResults() != 0) { + setNumResults(other.getNumResults()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2017,6 +2246,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 50 + case 58: + { + customSearchOperators_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 58 + case 72: + { + numResults_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 72 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2535,6 +2776,203 @@ public Builder clearBoostSpec() { return boostSpecBuilder_; } + private java.lang.Object customSearchOperators_ = ""; + + /** + * + * + *
            +       * Optional. Custom search operators which if specified will be used to
            +       * filter results from workspace data stores. For more information on custom
            +       * search operators, see
            +       * [SearchOperators](https://support.google.com/cloudsearch/answer/6172299).
            +       * 
            + * + * string custom_search_operators = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customSearchOperators. + */ + public java.lang.String getCustomSearchOperators() { + java.lang.Object ref = customSearchOperators_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customSearchOperators_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. Custom search operators which if specified will be used to
            +       * filter results from workspace data stores. For more information on custom
            +       * search operators, see
            +       * [SearchOperators](https://support.google.com/cloudsearch/answer/6172299).
            +       * 
            + * + * string custom_search_operators = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for customSearchOperators. + */ + public com.google.protobuf.ByteString getCustomSearchOperatorsBytes() { + java.lang.Object ref = customSearchOperators_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customSearchOperators_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. Custom search operators which if specified will be used to
            +       * filter results from workspace data stores. For more information on custom
            +       * search operators, see
            +       * [SearchOperators](https://support.google.com/cloudsearch/answer/6172299).
            +       * 
            + * + * string custom_search_operators = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The customSearchOperators to set. + * @return This builder for chaining. + */ + public Builder setCustomSearchOperators(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customSearchOperators_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Custom search operators which if specified will be used to
            +       * filter results from workspace data stores. For more information on custom
            +       * search operators, see
            +       * [SearchOperators](https://support.google.com/cloudsearch/answer/6172299).
            +       * 
            + * + * string custom_search_operators = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCustomSearchOperators() { + customSearchOperators_ = getDefaultInstance().getCustomSearchOperators(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Custom search operators which if specified will be used to
            +       * filter results from workspace data stores. For more information on custom
            +       * search operators, see
            +       * [SearchOperators](https://support.google.com/cloudsearch/answer/6172299).
            +       * 
            + * + * string custom_search_operators = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for customSearchOperators to set. + * @return This builder for chaining. + */ + public Builder setCustomSearchOperatorsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customSearchOperators_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int numResults_; + + /** + * + * + *
            +       * Optional. The maximum number of results to retrieve from this data store.
            +       * If not specified, it will use the
            +       * [SearchRequest.num_results_per_data_store][google.cloud.discoveryengine.v1beta.SearchRequest.num_results_per_data_store]
            +       * if provided, otherwise there is no limit. If both this field and
            +       * [SearchRequest.num_results_per_data_store][google.cloud.discoveryengine.v1beta.SearchRequest.num_results_per_data_store]
            +       * are specified, this field will be used.
            +       * 
            + * + * int32 num_results = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The numResults. + */ + @java.lang.Override + public int getNumResults() { + return numResults_; + } + + /** + * + * + *
            +       * Optional. The maximum number of results to retrieve from this data store.
            +       * If not specified, it will use the
            +       * [SearchRequest.num_results_per_data_store][google.cloud.discoveryengine.v1beta.SearchRequest.num_results_per_data_store]
            +       * if provided, otherwise there is no limit. If both this field and
            +       * [SearchRequest.num_results_per_data_store][google.cloud.discoveryengine.v1beta.SearchRequest.num_results_per_data_store]
            +       * are specified, this field will be used.
            +       * 
            + * + * int32 num_results = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The numResults to set. + * @return This builder for chaining. + */ + public Builder setNumResults(int value) { + + numResults_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The maximum number of results to retrieve from this data store.
            +       * If not specified, it will use the
            +       * [SearchRequest.num_results_per_data_store][google.cloud.discoveryengine.v1beta.SearchRequest.num_results_per_data_store]
            +       * if provided, otherwise there is no limit. If both this field and
            +       * [SearchRequest.num_results_per_data_store][google.cloud.discoveryengine.v1beta.SearchRequest.num_results_per_data_store]
            +       * are specified, this field will be used.
            +       * 
            + * + * int32 num_results = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNumResults() { + bitField0_ = (bitField0_ & ~0x00000010); + numResults_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec) } @@ -2665,7 +3103,6 @@ public interface FacetSpecOrBuilder *
                  * List of keys to exclude when faceting.
                  *
            -     *
                  * By default,
                  * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                  * is not excluded from the filter unless it is listed in this field.
            @@ -2705,7 +3142,6 @@ public interface FacetSpecOrBuilder
                  * 
                  * List of keys to exclude when faceting.
                  *
            -     *
                  * By default,
                  * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                  * is not excluded from the filter unless it is listed in this field.
            @@ -2745,7 +3181,6 @@ public interface FacetSpecOrBuilder
                  * 
                  * List of keys to exclude when faceting.
                  *
            -     *
                  * By default,
                  * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                  * is not excluded from the filter unless it is listed in this field.
            @@ -2786,7 +3221,6 @@ public interface FacetSpecOrBuilder
                  * 
                  * List of keys to exclude when faceting.
                  *
            -     *
                  * By default,
                  * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                  * is not excluded from the filter unless it is listed in this field.
            @@ -6033,7 +6467,6 @@ public int getLimit() {
                  * 
                  * List of keys to exclude when faceting.
                  *
            -     *
                  * By default,
                  * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                  * is not excluded from the filter unless it is listed in this field.
            @@ -6075,7 +6508,6 @@ public com.google.protobuf.ProtocolStringList getExcludedFilterKeysList() {
                  * 
                  * List of keys to exclude when faceting.
                  *
            -     *
                  * By default,
                  * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                  * is not excluded from the filter unless it is listed in this field.
            @@ -6117,7 +6549,6 @@ public int getExcludedFilterKeysCount() {
                  * 
                  * List of keys to exclude when faceting.
                  *
            -     *
                  * By default,
                  * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                  * is not excluded from the filter unless it is listed in this field.
            @@ -6160,7 +6591,6 @@ public java.lang.String getExcludedFilterKeys(int index) {
                  * 
                  * List of keys to exclude when faceting.
                  *
            -     *
                  * By default,
                  * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                  * is not excluded from the filter unless it is listed in this field.
            @@ -6978,7 +7408,6 @@ private void ensureExcludedFilterKeysIsMutable() {
                    * 
                    * List of keys to exclude when faceting.
                    *
            -       *
                    * By default,
                    * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                    * is not excluded from the filter unless it is listed in this field.
            @@ -7021,7 +7450,6 @@ public com.google.protobuf.ProtocolStringList getExcludedFilterKeysList() {
                    * 
                    * List of keys to exclude when faceting.
                    *
            -       *
                    * By default,
                    * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                    * is not excluded from the filter unless it is listed in this field.
            @@ -7063,7 +7491,6 @@ public int getExcludedFilterKeysCount() {
                    * 
                    * List of keys to exclude when faceting.
                    *
            -       *
                    * By default,
                    * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                    * is not excluded from the filter unless it is listed in this field.
            @@ -7106,7 +7533,6 @@ public java.lang.String getExcludedFilterKeys(int index) {
                    * 
                    * List of keys to exclude when faceting.
                    *
            -       *
                    * By default,
                    * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                    * is not excluded from the filter unless it is listed in this field.
            @@ -7149,7 +7575,6 @@ public com.google.protobuf.ByteString getExcludedFilterKeysBytes(int index) {
                    * 
                    * List of keys to exclude when faceting.
                    *
            -       *
                    * By default,
                    * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                    * is not excluded from the filter unless it is listed in this field.
            @@ -7200,7 +7625,6 @@ public Builder setExcludedFilterKeys(int index, java.lang.String value) {
                    * 
                    * List of keys to exclude when faceting.
                    *
            -       *
                    * By default,
                    * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                    * is not excluded from the filter unless it is listed in this field.
            @@ -7250,7 +7674,6 @@ public Builder addExcludedFilterKeys(java.lang.String value) {
                    * 
                    * List of keys to exclude when faceting.
                    *
            -       *
                    * By default,
                    * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                    * is not excluded from the filter unless it is listed in this field.
            @@ -7297,7 +7720,6 @@ public Builder addAllExcludedFilterKeys(java.lang.Iterable val
                    * 
                    * List of keys to exclude when faceting.
                    *
            -       *
                    * By default,
                    * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                    * is not excluded from the filter unless it is listed in this field.
            @@ -7343,7 +7765,6 @@ public Builder clearExcludedFilterKeys() {
                    * 
                    * List of keys to exclude when faceting.
                    *
            -       *
                    * By default,
                    * [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key]
                    * is not excluded from the filter unless it is listed in this field.
            @@ -7590,7 +8011,7 @@ public interface BoostSpecOrBuilder
                  *
                  * 
                  * Condition boost specifications. If a document matches multiple conditions
            -     * in the specifictions, boost scores from these specifications are all
            +     * in the specifications, boost scores from these specifications are all
                  * applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  * 
            @@ -7608,7 +8029,7 @@ public interface BoostSpecOrBuilder * *
                  * Condition boost specifications. If a document matches multiple conditions
            -     * in the specifictions, boost scores from these specifications are all
            +     * in the specifications, boost scores from these specifications are all
                  * applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  * 
            @@ -7625,7 +8046,7 @@ public interface BoostSpecOrBuilder * *
                  * Condition boost specifications. If a document matches multiple conditions
            -     * in the specifictions, boost scores from these specifications are all
            +     * in the specifications, boost scores from these specifications are all
                  * applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  * 
            @@ -7641,7 +8062,7 @@ public interface BoostSpecOrBuilder * *
                  * Condition boost specifications. If a document matches multiple conditions
            -     * in the specifictions, boost scores from these specifications are all
            +     * in the specifications, boost scores from these specifications are all
                  * applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  * 
            @@ -7661,7 +8082,7 @@ public interface BoostSpecOrBuilder * *
                  * Condition boost specifications. If a document matches multiple conditions
            -     * in the specifictions, boost scores from these specifications are all
            +     * in the specifications, boost scores from these specifications are all
                  * applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  * 
            @@ -12273,7 +12694,7 @@ public com.google.protobuf.Parser getParserForType() { * *
                  * Condition boost specifications. If a document matches multiple conditions
            -     * in the specifictions, boost scores from these specifications are all
            +     * in the specifications, boost scores from these specifications are all
                  * applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  * 
            @@ -12294,7 +12715,7 @@ public com.google.protobuf.Parser getParserForType() { * *
                  * Condition boost specifications. If a document matches multiple conditions
            -     * in the specifictions, boost scores from these specifications are all
            +     * in the specifications, boost scores from these specifications are all
                  * applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  * 
            @@ -12317,7 +12738,7 @@ public com.google.protobuf.Parser getParserForType() { * *
                  * Condition boost specifications. If a document matches multiple conditions
            -     * in the specifictions, boost scores from these specifications are all
            +     * in the specifications, boost scores from these specifications are all
                  * applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  * 
            @@ -12336,7 +12757,7 @@ public int getConditionBoostSpecsCount() { * *
                  * Condition boost specifications. If a document matches multiple conditions
            -     * in the specifictions, boost scores from these specifications are all
            +     * in the specifications, boost scores from these specifications are all
                  * applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  * 
            @@ -12356,7 +12777,7 @@ public int getConditionBoostSpecsCount() { * *
                  * Condition boost specifications. If a document matches multiple conditions
            -     * in the specifictions, boost scores from these specifications are all
            +     * in the specifications, boost scores from these specifications are all
                  * applied and combined in a non-linear way. Maximum number of
                  * specifications is 20.
                  * 
            @@ -12769,7 +13190,7 @@ private void ensureConditionBoostSpecsIsMutable() { * *
                    * Condition boost specifications. If a document matches multiple conditions
            -       * in the specifictions, boost scores from these specifications are all
            +       * in the specifications, boost scores from these specifications are all
                    * applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    * 
            @@ -12793,7 +13214,7 @@ private void ensureConditionBoostSpecsIsMutable() { * *
                    * Condition boost specifications. If a document matches multiple conditions
            -       * in the specifictions, boost scores from these specifications are all
            +       * in the specifications, boost scores from these specifications are all
                    * applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    * 
            @@ -12815,7 +13236,7 @@ public int getConditionBoostSpecsCount() { * *
                    * Condition boost specifications. If a document matches multiple conditions
            -       * in the specifictions, boost scores from these specifications are all
            +       * in the specifications, boost scores from these specifications are all
                    * applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    * 
            @@ -12838,7 +13259,7 @@ public int getConditionBoostSpecsCount() { * *
                    * Condition boost specifications. If a document matches multiple conditions
            -       * in the specifictions, boost scores from these specifications are all
            +       * in the specifications, boost scores from these specifications are all
                    * applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    * 
            @@ -12869,7 +13290,7 @@ public Builder setConditionBoostSpecs( * *
                    * Condition boost specifications. If a document matches multiple conditions
            -       * in the specifictions, boost scores from these specifications are all
            +       * in the specifications, boost scores from these specifications are all
                    * applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    * 
            @@ -12897,7 +13318,7 @@ public Builder setConditionBoostSpecs( * *
                    * Condition boost specifications. If a document matches multiple conditions
            -       * in the specifictions, boost scores from these specifications are all
            +       * in the specifications, boost scores from these specifications are all
                    * applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    * 
            @@ -12927,7 +13348,7 @@ public Builder addConditionBoostSpecs( * *
                    * Condition boost specifications. If a document matches multiple conditions
            -       * in the specifictions, boost scores from these specifications are all
            +       * in the specifications, boost scores from these specifications are all
                    * applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    * 
            @@ -12958,7 +13379,7 @@ public Builder addConditionBoostSpecs( * *
                    * Condition boost specifications. If a document matches multiple conditions
            -       * in the specifictions, boost scores from these specifications are all
            +       * in the specifications, boost scores from these specifications are all
                    * applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    * 
            @@ -12985,7 +13406,7 @@ public Builder addConditionBoostSpecs( * *
                    * Condition boost specifications. If a document matches multiple conditions
            -       * in the specifictions, boost scores from these specifications are all
            +       * in the specifications, boost scores from these specifications are all
                    * applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    * 
            @@ -13013,7 +13434,7 @@ public Builder addConditionBoostSpecs( * *
                    * Condition boost specifications. If a document matches multiple conditions
            -       * in the specifictions, boost scores from these specifications are all
            +       * in the specifications, boost scores from these specifications are all
                    * applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    * 
            @@ -13043,7 +13464,7 @@ public Builder addAllConditionBoostSpecs( * *
                    * Condition boost specifications. If a document matches multiple conditions
            -       * in the specifictions, boost scores from these specifications are all
            +       * in the specifications, boost scores from these specifications are all
                    * applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    * 
            @@ -13068,7 +13489,7 @@ public Builder clearConditionBoostSpecs() { * *
                    * Condition boost specifications. If a document matches multiple conditions
            -       * in the specifictions, boost scores from these specifications are all
            +       * in the specifications, boost scores from these specifications are all
                    * applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    * 
            @@ -13093,7 +13514,7 @@ public Builder removeConditionBoostSpecs(int index) { * *
                    * Condition boost specifications. If a document matches multiple conditions
            -       * in the specifictions, boost scores from these specifications are all
            +       * in the specifications, boost scores from these specifications are all
                    * applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    * 
            @@ -13113,7 +13534,7 @@ public Builder removeConditionBoostSpecs(int index) { * *
                    * Condition boost specifications. If a document matches multiple conditions
            -       * in the specifictions, boost scores from these specifications are all
            +       * in the specifications, boost scores from these specifications are all
                    * applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    * 
            @@ -13137,7 +13558,7 @@ public Builder removeConditionBoostSpecs(int index) { * *
                    * Condition boost specifications. If a document matches multiple conditions
            -       * in the specifictions, boost scores from these specifications are all
            +       * in the specifications, boost scores from these specifications are all
                    * applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    * 
            @@ -13163,7 +13584,7 @@ public Builder removeConditionBoostSpecs(int index) { * *
                    * Condition boost specifications. If a document matches multiple conditions
            -       * in the specifictions, boost scores from these specifications are all
            +       * in the specifications, boost scores from these specifications are all
                    * applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    * 
            @@ -13186,7 +13607,7 @@ public Builder removeConditionBoostSpecs(int index) { * *
                    * Condition boost specifications. If a document matches multiple conditions
            -       * in the specifictions, boost scores from these specifications are all
            +       * in the specifications, boost scores from these specifications are all
                    * applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    * 
            @@ -13210,7 +13631,7 @@ public Builder removeConditionBoostSpecs(int index) { * *
                    * Condition boost specifications. If a document matches multiple conditions
            -       * in the specifictions, boost scores from these specifications are all
            +       * in the specifications, boost scores from these specifications are all
                    * applied and combined in a non-linear way. Maximum number of
                    * specifications is 20.
                    * 
            @@ -15406,7 +15827,8 @@ public enum SearchResultMode implements com.google.protobuf.ProtocolMessageEnum * *
                    * Returns chunks in the search result. Only available if the
            -       * [DataStore.DocumentProcessingConfig.chunking_config][] is specified.
            +       * [DocumentProcessingConfig.chunking_config][google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.chunking_config]
            +       * is specified.
                    * 
            * * CHUNKS = 2; @@ -15452,7 +15874,8 @@ public enum SearchResultMode implements com.google.protobuf.ProtocolMessageEnum * *
                    * Returns chunks in the search result. Only available if the
            -       * [DataStore.DocumentProcessingConfig.chunking_config][] is specified.
            +       * [DocumentProcessingConfig.chunking_config][google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.chunking_config]
            +       * is specified.
                    * 
            * * CHUNKS = 2; @@ -15566,7 +15989,7 @@ public interface SnippetSpecOrBuilder * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=446 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=462 * @return The maxSnippetCount. */ @java.lang.Deprecated @@ -15584,7 +16007,7 @@ public interface SnippetSpecOrBuilder * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=450 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=466 * @return The referenceOnly. */ @java.lang.Deprecated @@ -15672,7 +16095,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=446 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=462 * @return The maxSnippetCount. */ @java.lang.Override @@ -15696,7 +16119,7 @@ public int getMaxSnippetCount() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=450 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=466 * @return The referenceOnly. */ @java.lang.Override @@ -16142,7 +16565,7 @@ public Builder mergeFrom( * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=446 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=462 * @return The maxSnippetCount. */ @java.lang.Override @@ -16164,7 +16587,7 @@ public int getMaxSnippetCount() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=446 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=462 * @param value The maxSnippetCount to set. * @return This builder for chaining. */ @@ -16190,7 +16613,7 @@ public Builder setMaxSnippetCount(int value) { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.max_snippet_count - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=446 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=462 * @return This builder for chaining. */ @java.lang.Deprecated @@ -16215,7 +16638,7 @@ public Builder clearMaxSnippetCount() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=450 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=466 * @return The referenceOnly. */ @java.lang.Override @@ -16236,7 +16659,7 @@ public boolean getReferenceOnly() { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=450 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=466 * @param value The referenceOnly to set. * @return This builder for chaining. */ @@ -16261,7 +16684,7 @@ public Builder setReferenceOnly(boolean value) { * * @deprecated * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec.reference_only - * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=450 + * is deprecated. See google/cloud/discoveryengine/v1beta/search_service.proto;l=466 * @return This builder for chaining. */ @java.lang.Deprecated @@ -16535,6 +16958,53 @@ public interface SummarySpecOrBuilder */ boolean getIgnoreJailBreakingQuery(); + /** + * + * + *
            +       * Optional. Multimodal specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec multimodal_spec = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multimodalSpec field is set. + */ + boolean hasMultimodalSpec(); + + /** + * + * + *
            +       * Optional. Multimodal specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec multimodal_spec = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multimodalSpec. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec + getMultimodalSpec(); + + /** + * + * + *
            +       * Optional. Multimodal specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec multimodal_spec = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpecOrBuilder + getMultimodalSpecOrBuilder(); + /** * * @@ -16736,54 +17206,60 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .Builder.class); } - public interface ModelPromptSpecOrBuilder + public interface MultiModalSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec) com.google.protobuf.MessageOrBuilder { /** * * *
            -         * Text at the beginning of the prompt that instructs the assistant.
            -         * Examples are available in the user guide.
            +         * Optional. Source of image returned in the answer.
                      * 
            * - * string preamble = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec.ImageSource image_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The preamble. + * @return The enum numeric value on the wire for imageSource. */ - java.lang.String getPreamble(); + int getImageSourceValue(); /** * * *
            -         * Text at the beginning of the prompt that instructs the assistant.
            -         * Examples are available in the user guide.
            +         * Optional. Source of image returned in the answer.
                      * 
            * - * string preamble = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec.ImageSource image_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The bytes for preamble. + * @return The imageSource. */ - com.google.protobuf.ByteString getPreambleBytes(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec.ImageSource + getImageSource(); } /** * * *
            -       * Specification of the prompt to use with the model.
            +       * Multimodal specification: Will return an image from specified source.
            +       * If multiple sources are specified, the pick is a quality based
            +       * decision.
                    * 
            * * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec} + * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec} */ - public static final class ModelPromptSpec extends com.google.protobuf.GeneratedMessage + public static final class MultiModalSpec extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec) - ModelPromptSpecOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec) + MultiModalSpecOrBuilder { private static final long serialVersionUID = 0L; static { @@ -16793,88 +17269,286 @@ public static final class ModelPromptSpec extends com.google.protobuf.GeneratedM /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "ModelPromptSpec"); + "MultiModalSpec"); } - // Use ModelPromptSpec.newBuilder() to construct. - private ModelPromptSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use MultiModalSpec.newBuilder() to construct. + private MultiModalSpec(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private ModelPromptSpec() { - preamble_ = ""; + private MultiModalSpec() { + imageSource_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelPromptSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_MultiModalSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelPromptSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_MultiModalSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec.class, + .SummarySpec.MultiModalSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec.Builder.class); + .SummarySpec.MultiModalSpec.Builder.class); } - public static final int PREAMBLE_FIELD_NUMBER = 1; + /** + * + * + *
            +         * Specifies the image source.
            +         * 
            + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec.ImageSource} + */ + public enum ImageSource implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +           * Unspecified image source (multimodal feature is disabled by
            +           * default).
            +           * 
            + * + * IMAGE_SOURCE_UNSPECIFIED = 0; + */ + IMAGE_SOURCE_UNSPECIFIED(0), + /** + * + * + *
            +           * Behavior when service determines the pick from all available
            +           * sources.
            +           * 
            + * + * ALL_AVAILABLE_SOURCES = 1; + */ + ALL_AVAILABLE_SOURCES(1), + /** + * + * + *
            +           * Includes image from corpus in the answer.
            +           * 
            + * + * CORPUS_IMAGE_ONLY = 2; + */ + CORPUS_IMAGE_ONLY(2), + /** + * + * + *
            +           * Triggers figure generation in the answer.
            +           * 
            + * + * FIGURE_GENERATION_ONLY = 3; + */ + FIGURE_GENERATION_ONLY(3), + UNRECOGNIZED(-1), + ; - @SuppressWarnings("serial") - private volatile java.lang.Object preamble_ = ""; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ImageSource"); + } + + /** + * + * + *
            +           * Unspecified image source (multimodal feature is disabled by
            +           * default).
            +           * 
            + * + * IMAGE_SOURCE_UNSPECIFIED = 0; + */ + public static final int IMAGE_SOURCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +           * Behavior when service determines the pick from all available
            +           * sources.
            +           * 
            + * + * ALL_AVAILABLE_SOURCES = 1; + */ + public static final int ALL_AVAILABLE_SOURCES_VALUE = 1; + + /** + * + * + *
            +           * Includes image from corpus in the answer.
            +           * 
            + * + * CORPUS_IMAGE_ONLY = 2; + */ + public static final int CORPUS_IMAGE_ONLY_VALUE = 2; + + /** + * + * + *
            +           * Triggers figure generation in the answer.
            +           * 
            + * + * FIGURE_GENERATION_ONLY = 3; + */ + public static final int FIGURE_GENERATION_ONLY_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 ImageSource 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 ImageSource forNumber(int value) { + switch (value) { + case 0: + return IMAGE_SOURCE_UNSPECIFIED; + case 1: + return ALL_AVAILABLE_SOURCES; + case 2: + return CORPUS_IMAGE_ONLY; + case 3: + return FIGURE_GENERATION_ONLY; + 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 ImageSource findValueByNumber(int number) { + return ImageSource.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.MultiModalSpec.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ImageSource[] VALUES = values(); + + public static ImageSource 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 ImageSource(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec.ImageSource) + } + + public static final int IMAGE_SOURCE_FIELD_NUMBER = 3; + private int imageSource_ = 0; /** * * *
            -         * Text at the beginning of the prompt that instructs the assistant.
            -         * Examples are available in the user guide.
            +         * Optional. Source of image returned in the answer.
                      * 
            * - * string preamble = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec.ImageSource image_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The preamble. + * @return The enum numeric value on the wire for imageSource. */ @java.lang.Override - public java.lang.String getPreamble() { - java.lang.Object ref = preamble_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - preamble_ = s; - return s; - } + public int getImageSourceValue() { + return imageSource_; } /** * * *
            -         * Text at the beginning of the prompt that instructs the assistant.
            -         * Examples are available in the user guide.
            +         * Optional. Source of image returned in the answer.
                      * 
            * - * string preamble = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec.ImageSource image_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The bytes for preamble. + * @return The imageSource. */ @java.lang.Override - public com.google.protobuf.ByteString getPreambleBytes() { - java.lang.Object ref = preamble_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - preamble_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec.ImageSource + getImageSource() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec.ImageSource + result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.MultiModalSpec.ImageSource.forNumber(imageSource_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec.ImageSource.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; @@ -16892,8 +17566,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(preamble_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, preamble_); + if (imageSource_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec.ImageSource.IMAGE_SOURCE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, imageSource_); } getUnknownFields().writeTo(output); } @@ -16904,8 +17581,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(preamble_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, preamble_); + if (imageSource_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec.ImageSource.IMAGE_SOURCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, imageSource_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -16920,17 +17600,17 @@ public boolean equals(final java.lang.Object obj) { if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec)) { + .MultiModalSpec)) { return super.equals(obj); } com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec + .MultiModalSpec other = (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec) + .SummarySpec.MultiModalSpec) obj; - if (!getPreamble().equals(other.getPreamble())) return false; + if (imageSource_ != other.imageSource_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -16942,22 +17622,22 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PREAMBLE_FIELD_NUMBER; - hash = (53 * hash) + getPreamble().hashCode(); + hash = (37 * hash) + IMAGE_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + imageSource_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec + .SummarySpec.MultiModalSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec + .SummarySpec.MultiModalSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -16966,14 +17646,14 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec + .SummarySpec.MultiModalSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec + .SummarySpec.MultiModalSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -16982,26 +17662,26 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec + .SummarySpec.MultiModalSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec + .SummarySpec.MultiModalSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec + .SummarySpec.MultiModalSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec + .SummarySpec.MultiModalSpec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -17011,13 +17691,13 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec + .SummarySpec.MultiModalSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec + .SummarySpec.MultiModalSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -17027,13 +17707,13 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec + .SummarySpec.MultiModalSpec parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec + .SummarySpec.MultiModalSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -17053,7 +17733,7 @@ public static Builder newBuilder() { public static Builder newBuilder( com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec + .MultiModalSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -17074,37 +17754,39 @@ protected Builder newBuilderForType( * * *
            -         * Specification of the prompt to use with the model.
            +         * Multimodal specification: Will return an image from specified source.
            +         * If multiple sources are specified, the pick is a quality based
            +         * decision.
                      * 
            * * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec} + * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec) + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec) com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpecOrBuilder { + .MultiModalSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelPromptSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_MultiModalSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelPromptSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_MultiModalSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec.class, + .SummarySpec.MultiModalSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec.Builder.class); + .SummarySpec.MultiModalSpec.Builder.class); } // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.newBuilder() + // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -17115,30 +17797,30 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - preamble_ = ""; + imageSource_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelPromptSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_MultiModalSpec_descriptor; } @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec + .MultiModalSpec getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec.getDefaultInstance(); + .SummarySpec.MultiModalSpec.getDefaultInstance(); } @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec + .MultiModalSpec build() { com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec + .MultiModalSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -17148,13 +17830,13 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec + .MultiModalSpec buildPartial() { com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec + .MultiModalSpec result = new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec(this); + .SummarySpec.MultiModalSpec(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -17164,11 +17846,11 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { private void buildPartial0( com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec + .MultiModalSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.preamble_ = preamble_; + result.imageSource_ = imageSource_; } } @@ -17177,10 +17859,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec) { + .MultiModalSpec) { return mergeFrom( (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec) + .SummarySpec.MultiModalSpec) other); } else { super.mergeFrom(other); @@ -17190,15 +17872,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom( com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec + .MultiModalSpec other) { if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec.getDefaultInstance()) return this; - if (!other.getPreamble().isEmpty()) { - preamble_ = other.preamble_; - bitField0_ |= 0x00000001; - onChanged(); + .SummarySpec.MultiModalSpec.getDefaultInstance()) return this; + if (other.imageSource_ != 0) { + setImageSourceValue(other.getImageSourceValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -17226,12 +17906,12 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: + case 24: { - preamble_ = input.readStringRequireUtf8(); + imageSource_ = input.readEnum(); bitField0_ |= 0x00000001; break; - } // case 10 + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -17251,94 +17931,98 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object preamble_ = ""; + private int imageSource_ = 0; /** * * *
            -           * Text at the beginning of the prompt that instructs the assistant.
            -           * Examples are available in the user guide.
            +           * Optional. Source of image returned in the answer.
                        * 
            * - * string preamble = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec.ImageSource image_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The preamble. + * @return The enum numeric value on the wire for imageSource. */ - public java.lang.String getPreamble() { - java.lang.Object ref = preamble_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - preamble_ = s; - return s; - } else { - return (java.lang.String) ref; - } + @java.lang.Override + public int getImageSourceValue() { + return imageSource_; } /** * * *
            -           * Text at the beginning of the prompt that instructs the assistant.
            -           * Examples are available in the user guide.
            +           * Optional. Source of image returned in the answer.
                        * 
            * - * string preamble = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec.ImageSource image_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The bytes for preamble. + * @param value The enum numeric value on the wire for imageSource to set. + * @return This builder for chaining. */ - public com.google.protobuf.ByteString getPreambleBytes() { - java.lang.Object ref = preamble_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - preamble_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public Builder setImageSourceValue(int value) { + imageSource_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } /** * * *
            -           * Text at the beginning of the prompt that instructs the assistant.
            -           * Examples are available in the user guide.
            +           * Optional. Source of image returned in the answer.
                        * 
            * - * string preamble = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec.ImageSource image_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The preamble to set. - * @return This builder for chaining. + * @return The imageSource. */ - public Builder setPreamble(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - preamble_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec.ImageSource + getImageSource() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec.ImageSource + result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.MultiModalSpec.ImageSource.forNumber(imageSource_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.MultiModalSpec.ImageSource.UNRECOGNIZED + : result; } /** * * *
            -           * Text at the beginning of the prompt that instructs the assistant.
            -           * Examples are available in the user guide.
            +           * Optional. Source of image returned in the answer.
                        * 
            * - * string preamble = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec.ImageSource image_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * + * @param value The imageSource to set. * @return This builder for chaining. */ - public Builder clearPreamble() { - preamble_ = getDefaultInstance().getPreamble(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder setImageSource( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec.ImageSource + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + imageSource_ = value.getNumber(); onChanged(); return this; } @@ -17347,50 +18031,46 @@ public Builder clearPreamble() { * * *
            -           * Text at the beginning of the prompt that instructs the assistant.
            -           * Examples are available in the user guide.
            +           * Optional. Source of image returned in the answer.
                        * 
            * - * string preamble = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec.ImageSource image_source = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @param value The bytes for preamble to set. * @return This builder for chaining. */ - public Builder setPreambleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - preamble_ = value; - bitField0_ |= 0x00000001; + public Builder clearImageSource() { + bitField0_ = (bitField0_ & ~0x00000001); + imageSource_ = 0; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec) + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec) private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec + .SummarySpec.MultiModalSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec(); + .SummarySpec.MultiModalSpec(); } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec + .SummarySpec.MultiModalSpec 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 ModelPromptSpec parsePartialFrom( + public MultiModalSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -17410,91 +18090,71 @@ public ModelPromptSpec 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec + .MultiModalSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ModelSpecOrBuilder + public interface ModelPromptSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec) com.google.protobuf.MessageOrBuilder { /** * * *
            -         * The model version used to generate the summary.
            -         *
            -         * Supported values are:
            -         *
            -         * * `stable`: string. Default value when no value is specified. Uses a
            -         * generally available, fine-tuned model. For more information, see
            -         * [Answer generation model versions and
            -         * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            -         * * `preview`: string. (Public preview) Uses a preview model. For more
            -         * information, see
            -         * [Answer generation model versions and
            -         * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +         * Text at the beginning of the prompt that instructs the assistant.
            +         * Examples are available in the user guide.
                      * 
            * - * string version = 1; + * string preamble = 1; * - * @return The version. + * @return The preamble. */ - java.lang.String getVersion(); + java.lang.String getPreamble(); /** * * *
            -         * The model version used to generate the summary.
            -         *
            -         * Supported values are:
            -         *
            -         * * `stable`: string. Default value when no value is specified. Uses a
            -         * generally available, fine-tuned model. For more information, see
            -         * [Answer generation model versions and
            -         * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            -         * * `preview`: string. (Public preview) Uses a preview model. For more
            -         * information, see
            -         * [Answer generation model versions and
            -         * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +         * Text at the beginning of the prompt that instructs the assistant.
            +         * Examples are available in the user guide.
                      * 
            * - * string version = 1; + * string preamble = 1; * - * @return The bytes for version. + * @return The bytes for preamble. */ - com.google.protobuf.ByteString getVersionBytes(); + com.google.protobuf.ByteString getPreambleBytes(); } /** * * *
            -       * Specification of the model.
            +       * Specification of the prompt to use with the model.
                    * 
            * * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec} + * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec} */ - public static final class ModelSpec extends com.google.protobuf.GeneratedMessage + public static final class ModelPromptSpec extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec) - ModelSpecOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec) + ModelPromptSpecOrBuilder { private static final long serialVersionUID = 0L; static { @@ -17504,71 +18164,61 @@ public static final class ModelSpec extends com.google.protobuf.GeneratedMessage /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "ModelSpec"); + "ModelPromptSpec"); } - // Use ModelSpec.newBuilder() to construct. - private ModelSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use ModelPromptSpec.newBuilder() to construct. + private ModelPromptSpec(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private ModelSpec() { - version_ = ""; + private ModelPromptSpec() { + preamble_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelPromptSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelPromptSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec.class, + .SummarySpec.ModelPromptSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec.Builder.class); + .SummarySpec.ModelPromptSpec.Builder.class); } - public static final int VERSION_FIELD_NUMBER = 1; + public static final int PREAMBLE_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object version_ = ""; + private volatile java.lang.Object preamble_ = ""; /** * * *
            -         * The model version used to generate the summary.
            -         *
            -         * Supported values are:
            -         *
            -         * * `stable`: string. Default value when no value is specified. Uses a
            -         * generally available, fine-tuned model. For more information, see
            -         * [Answer generation model versions and
            -         * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            -         * * `preview`: string. (Public preview) Uses a preview model. For more
            -         * information, see
            -         * [Answer generation model versions and
            -         * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +         * Text at the beginning of the prompt that instructs the assistant.
            +         * Examples are available in the user guide.
                      * 
            * - * string version = 1; + * string preamble = 1; * - * @return The version. + * @return The preamble. */ @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; + public java.lang.String getPreamble() { + java.lang.Object ref = preamble_; if (ref instanceof java.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; + preamble_ = s; return s; } } @@ -17577,31 +18227,21 @@ public java.lang.String getVersion() { * * *
            -         * The model version used to generate the summary.
            -         *
            -         * Supported values are:
            -         *
            -         * * `stable`: string. Default value when no value is specified. Uses a
            -         * generally available, fine-tuned model. For more information, see
            -         * [Answer generation model versions and
            -         * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            -         * * `preview`: string. (Public preview) Uses a preview model. For more
            -         * information, see
            -         * [Answer generation model versions and
            -         * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +         * Text at the beginning of the prompt that instructs the assistant.
            +         * Examples are available in the user guide.
                      * 
            * - * string version = 1; + * string preamble = 1; * - * @return The bytes for version. + * @return The bytes for preamble. */ @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { - java.lang.Object ref = version_; + public com.google.protobuf.ByteString getPreambleBytes() { + java.lang.Object ref = preamble_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - version_ = b; + preamble_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -17623,8 +18263,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, version_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(preamble_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, preamble_); } getUnknownFields().writeTo(output); } @@ -17635,8 +18275,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, version_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(preamble_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, preamble_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -17651,17 +18291,17 @@ public boolean equals(final java.lang.Object obj) { if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec)) { + .ModelPromptSpec)) { return super.equals(obj); } com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec + .ModelPromptSpec other = (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec) + .SummarySpec.ModelPromptSpec) obj; - if (!getVersion().equals(other.getVersion())) return false; + if (!getPreamble().equals(other.getPreamble())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -17673,22 +18313,22 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); + hash = (37 * hash) + PREAMBLE_FIELD_NUMBER; + hash = (53 * hash) + getPreamble().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec + .SummarySpec.ModelPromptSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec + .SummarySpec.ModelPromptSpec parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -17697,14 +18337,14 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec + .SummarySpec.ModelPromptSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec + .SummarySpec.ModelPromptSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -17713,26 +18353,26 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec + .SummarySpec.ModelPromptSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec + .SummarySpec.ModelPromptSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec + .SummarySpec.ModelPromptSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec + .SummarySpec.ModelPromptSpec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -17742,13 +18382,13 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec + .SummarySpec.ModelPromptSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec + .SummarySpec.ModelPromptSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -17758,13 +18398,13 @@ public int hashCode() { } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec + .SummarySpec.ModelPromptSpec parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec + .SummarySpec.ModelPromptSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -17784,7 +18424,7 @@ public static Builder newBuilder() { public static Builder newBuilder( com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec + .ModelPromptSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -17805,37 +18445,37 @@ protected Builder newBuilderForType( * * *
            -         * Specification of the model.
            +         * Specification of the prompt to use with the model.
                      * 
            * * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec} + * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec) + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec) com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpecOrBuilder { + .ModelPromptSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelPromptSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelPromptSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec.class, + .SummarySpec.ModelPromptSpec.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec.Builder.class); + .SummarySpec.ModelPromptSpec.Builder.class); } // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec.newBuilder() + // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -17846,30 +18486,30 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - version_ = ""; + preamble_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelPromptSpec_descriptor; } @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec + .ModelPromptSpec getDefaultInstanceForType() { return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec.getDefaultInstance(); + .SummarySpec.ModelPromptSpec.getDefaultInstance(); } @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec + .ModelPromptSpec build() { com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec + .ModelPromptSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -17879,13 +18519,13 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec + .ModelPromptSpec buildPartial() { com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec + .ModelPromptSpec result = new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec(this); + .SummarySpec.ModelPromptSpec(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -17895,11 +18535,11 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { private void buildPartial0( com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec + .ModelPromptSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.version_ = version_; + result.preamble_ = preamble_; } } @@ -17908,10 +18548,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec) { + .ModelPromptSpec) { return mergeFrom( (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec) + .SummarySpec.ModelPromptSpec) other); } else { super.mergeFrom(other); @@ -17921,13 +18561,13 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom( com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec + .ModelPromptSpec other) { if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec.getDefaultInstance()) return this; - if (!other.getVersion().isEmpty()) { - version_ = other.version_; + .SummarySpec.ModelPromptSpec.getDefaultInstance()) return this; + if (!other.getPreamble().isEmpty()) { + preamble_ = other.preamble_; bitField0_ |= 0x00000001; onChanged(); } @@ -17959,7 +18599,7 @@ public Builder mergeFrom( break; case 10: { - version_ = input.readStringRequireUtf8(); + preamble_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 @@ -17982,36 +18622,26 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object version_ = ""; + private java.lang.Object preamble_ = ""; /** * * *
            -           * The model version used to generate the summary.
            -           *
            -           * Supported values are:
            -           *
            -           * * `stable`: string. Default value when no value is specified. Uses a
            -           * generally available, fine-tuned model. For more information, see
            -           * [Answer generation model versions and
            -           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            -           * * `preview`: string. (Public preview) Uses a preview model. For more
            -           * information, see
            -           * [Answer generation model versions and
            -           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +           * Text at the beginning of the prompt that instructs the assistant.
            +           * Examples are available in the user guide.
                        * 
            * - * string version = 1; + * string preamble = 1; * - * @return The version. + * @return The preamble. */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; + public java.lang.String getPreamble() { + java.lang.Object ref = preamble_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - version_ = s; + preamble_ = s; return s; } else { return (java.lang.String) ref; @@ -18022,30 +18652,20 @@ public java.lang.String getVersion() { * * *
            -           * The model version used to generate the summary.
            -           *
            -           * Supported values are:
            -           *
            -           * * `stable`: string. Default value when no value is specified. Uses a
            -           * generally available, fine-tuned model. For more information, see
            -           * [Answer generation model versions and
            -           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            -           * * `preview`: string. (Public preview) Uses a preview model. For more
            -           * information, see
            -           * [Answer generation model versions and
            -           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +           * Text at the beginning of the prompt that instructs the assistant.
            +           * Examples are available in the user guide.
                        * 
            * - * string version = 1; + * string preamble = 1; * - * @return The bytes for version. + * @return The bytes for preamble. */ - public com.google.protobuf.ByteString getVersionBytes() { - java.lang.Object ref = version_; + public com.google.protobuf.ByteString getPreambleBytes() { + java.lang.Object ref = preamble_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - version_ = b; + preamble_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -18056,30 +18676,20 @@ public com.google.protobuf.ByteString getVersionBytes() { * * *
            -           * The model version used to generate the summary.
            -           *
            -           * Supported values are:
            -           *
            -           * * `stable`: string. Default value when no value is specified. Uses a
            -           * generally available, fine-tuned model. For more information, see
            -           * [Answer generation model versions and
            -           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            -           * * `preview`: string. (Public preview) Uses a preview model. For more
            -           * information, see
            -           * [Answer generation model versions and
            -           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +           * Text at the beginning of the prompt that instructs the assistant.
            +           * Examples are available in the user guide.
                        * 
            * - * string version = 1; + * string preamble = 1; * - * @param value The version to set. + * @param value The preamble to set. * @return This builder for chaining. */ - public Builder setVersion(java.lang.String value) { + public Builder setPreamble(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - version_ = value; + preamble_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -18089,26 +18699,16 @@ public Builder setVersion(java.lang.String value) { * * *
            -           * The model version used to generate the summary.
            -           *
            -           * Supported values are:
            -           *
            -           * * `stable`: string. Default value when no value is specified. Uses a
            -           * generally available, fine-tuned model. For more information, see
            -           * [Answer generation model versions and
            -           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            -           * * `preview`: string. (Public preview) Uses a preview model. For more
            -           * information, see
            -           * [Answer generation model versions and
            -           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +           * Text at the beginning of the prompt that instructs the assistant.
            +           * Examples are available in the user guide.
                        * 
            * - * string version = 1; + * string preamble = 1; * * @return This builder for chaining. */ - public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); + public Builder clearPreamble() { + preamble_ = getDefaultInstance().getPreamble(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -18118,60 +18718,50 @@ public Builder clearVersion() { * * *
            -           * The model version used to generate the summary.
            -           *
            -           * Supported values are:
            -           *
            -           * * `stable`: string. Default value when no value is specified. Uses a
            -           * generally available, fine-tuned model. For more information, see
            -           * [Answer generation model versions and
            -           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            -           * * `preview`: string. (Public preview) Uses a preview model. For more
            -           * information, see
            -           * [Answer generation model versions and
            -           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +           * Text at the beginning of the prompt that instructs the assistant.
            +           * Examples are available in the user guide.
                        * 
            * - * string version = 1; + * string preamble = 1; * - * @param value The bytes for version to set. + * @param value The bytes for preamble to set. * @return This builder for chaining. */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { + public Builder setPreambleBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - version_ = value; + preamble_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec) + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec) private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec + .SummarySpec.ModelPromptSpec DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec(); + .SummarySpec.ModelPromptSpec(); } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec + .SummarySpec.ModelPromptSpec 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 ModelSpec parsePartialFrom( + public ModelPromptSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -18191,2972 +18781,1797 @@ public ModelSpec 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.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec + .ModelPromptSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - private int bitField0_; - public static final int SUMMARY_RESULT_COUNT_FIELD_NUMBER = 1; - private int summaryResultCount_ = 0; + public interface ModelSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
            -       * The number of top results to generate the summary from. If the number
            -       * of results returned is less than `summaryResultCount`, the summary is
            -       * generated from all of the results.
            -       *
            -       * At most 10 results for documents mode, or 50 for chunks mode, can be
            -       * used to generate a summary. The chunks mode is used when
            -       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            -       * is set to
            -       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
            -       * 
            - * - * int32 summary_result_count = 1; - * - * @return The summaryResultCount. - */ - @java.lang.Override - public int getSummaryResultCount() { - return summaryResultCount_; - } + /** + * + * + *
            +         * The model version used to generate the summary.
            +         *
            +         * Supported values are:
            +         *
            +         * * `stable`: string. Default value when no value is specified. Uses a
            +         * generally available, fine-tuned model. For more information, see
            +         * [Answer generation model versions and
            +         * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +         * * `preview`: string. (Public preview) Uses a preview model. For more
            +         * information, see
            +         * [Answer generation model versions and
            +         * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +         * 
            + * + * string version = 1; + * + * @return The version. + */ + java.lang.String getVersion(); - public static final int INCLUDE_CITATIONS_FIELD_NUMBER = 2; - private boolean includeCitations_ = false; + /** + * + * + *
            +         * The model version used to generate the summary.
            +         *
            +         * Supported values are:
            +         *
            +         * * `stable`: string. Default value when no value is specified. Uses a
            +         * generally available, fine-tuned model. For more information, see
            +         * [Answer generation model versions and
            +         * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +         * * `preview`: string. (Public preview) Uses a preview model. For more
            +         * information, see
            +         * [Answer generation model versions and
            +         * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +         * 
            + * + * string version = 1; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + } /** * * *
            -       * Specifies whether to include citations in the summary. The default
            -       * value is `false`.
            -       *
            -       * When this field is set to `true`, summaries include in-line citation
            -       * numbers.
            -       *
            -       * Example summary including citations:
            -       *
            -       * BigQuery is Google Cloud's fully managed and completely serverless
            -       * enterprise data warehouse [1]. BigQuery supports all data types, works
            -       * across clouds, and has built-in machine learning and business
            -       * intelligence, all within a unified platform [2, 3].
            -       *
            -       * The citation numbers refer to the returned search results and are
            -       * 1-indexed. For example, [1] means that the sentence is attributed to
            -       * the first search result. [2, 3] means that the sentence is attributed
            -       * to both the second and third search results.
            +       * Specification of the model.
                    * 
            * - * bool include_citations = 2; - * - * @return The includeCitations. + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec} */ - @java.lang.Override - public boolean getIncludeCitations() { - return includeCitations_; - } + public static final class ModelSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec) + ModelSpecOrBuilder { + private static final long serialVersionUID = 0L; - public static final int IGNORE_ADVERSARIAL_QUERY_FIELD_NUMBER = 3; - private boolean ignoreAdversarialQuery_ = false; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ModelSpec"); + } - /** - * - * - *
            -       * Specifies whether to filter out adversarial queries. The default value
            -       * is `false`.
            -       *
            -       * Google employs search-query classification to detect adversarial
            -       * queries. No summary is returned if the search query is classified as an
            -       * adversarial query. For example, a user might ask a question regarding
            -       * negative comments about the company or submit a query designed to
            -       * generate unsafe, policy-violating output. If this field is set to
            -       * `true`, we skip generating summaries for adversarial queries and return
            -       * fallback messages instead.
            -       * 
            - * - * bool ignore_adversarial_query = 3; - * - * @return The ignoreAdversarialQuery. - */ - @java.lang.Override - public boolean getIgnoreAdversarialQuery() { - return ignoreAdversarialQuery_; - } + // Use ModelSpec.newBuilder() to construct. + private ModelSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - public static final int IGNORE_NON_SUMMARY_SEEKING_QUERY_FIELD_NUMBER = 4; - private boolean ignoreNonSummarySeekingQuery_ = false; + private ModelSpec() { + version_ = ""; + } - /** - * - * - *
            -       * Specifies whether to filter out queries that are not summary-seeking.
            -       * The default value is `false`.
            -       *
            -       * Google employs search-query classification to detect summary-seeking
            -       * queries. No summary is returned if the search query is classified as a
            -       * non-summary seeking query. For example, `why is the sky blue` and `Who
            -       * is the best soccer player in the world?` are summary-seeking queries,
            -       * but `SFO airport` and `world cup 2026` are not. They are most likely
            -       * navigational queries. If this field is set to `true`, we skip
            -       * generating summaries for non-summary seeking queries and return
            -       * fallback messages instead.
            -       * 
            - * - * bool ignore_non_summary_seeking_query = 4; - * - * @return The ignoreNonSummarySeekingQuery. - */ - @java.lang.Override - public boolean getIgnoreNonSummarySeekingQuery() { - return ignoreNonSummarySeekingQuery_; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelSpec_descriptor; + } - public static final int IGNORE_LOW_RELEVANT_CONTENT_FIELD_NUMBER = 9; - private boolean ignoreLowRelevantContent_ = false; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec.Builder.class); + } - /** - * - * - *
            -       * Specifies whether to filter out queries that have low relevance. The
            -       * default value is `false`.
            -       *
            -       * If this field is set to `false`, all search results are used regardless
            -       * of relevance to generate answers. If set to `true`, only queries with
            -       * high relevance search results will generate answers.
            -       * 
            - * - * bool ignore_low_relevant_content = 9; - * - * @return The ignoreLowRelevantContent. - */ - @java.lang.Override - public boolean getIgnoreLowRelevantContent() { - return ignoreLowRelevantContent_; - } + public static final int VERSION_FIELD_NUMBER = 1; - public static final int IGNORE_JAIL_BREAKING_QUERY_FIELD_NUMBER = 10; - private boolean ignoreJailBreakingQuery_ = false; + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; - /** - * - * - *
            -       * 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_; - } + /** + * + * + *
            +         * The model version used to generate the summary.
            +         *
            +         * Supported values are:
            +         *
            +         * * `stable`: string. Default value when no value is specified. Uses a
            +         * generally available, fine-tuned model. For more information, see
            +         * [Answer generation model versions and
            +         * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +         * * `preview`: string. (Public preview) Uses a preview model. For more
            +         * information, see
            +         * [Answer generation model versions and
            +         * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +         * 
            + * + * string version = 1; + * + * @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; + } + } - public static final int MODEL_PROMPT_SPEC_FIELD_NUMBER = 5; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec - modelPromptSpec_; + /** + * + * + *
            +         * The model version used to generate the summary.
            +         *
            +         * Supported values are:
            +         *
            +         * * `stable`: string. Default value when no value is specified. Uses a
            +         * generally available, fine-tuned model. For more information, see
            +         * [Answer generation model versions and
            +         * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +         * * `preview`: string. (Public preview) Uses a preview model. For more
            +         * information, see
            +         * [Answer generation model versions and
            +         * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +         * 
            + * + * string version = 1; + * + * @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; + } + } - /** - * - * - *
            -       * If specified, the spec will be used to modify the prompt provided to
            -       * the LLM.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; - * - * - * @return Whether the modelPromptSpec field is set. - */ - @java.lang.Override - public boolean hasModelPromptSpec() { - return ((bitField0_ & 0x00000001) != 0); - } + private byte memoizedIsInitialized = -1; - /** - * - * - *
            -       * If specified, the spec will be used to modify the prompt provided to
            -       * the LLM.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; - * - * - * @return The modelPromptSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec - getModelPromptSpec() { - return modelPromptSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec.getDefaultInstance() - : modelPromptSpec_; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * - * - *
            -       * If specified, the spec will be used to modify the prompt provided to
            -       * the LLM.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpecOrBuilder - getModelPromptSpecOrBuilder() { - return modelPromptSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec.getDefaultInstance() - : modelPromptSpec_; - } - - public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object languageCode_ = ""; - - /** - * - * - *
            -       * Language code for Summary. Use language tags defined by
            -       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            -       * Note: This is an experimental feature.
            -       * 
            - * - * string language_code = 6; - * - * @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; + memoizedIsInitialized = 1; + return true; } - } - /** - * - * - *
            -       * Language code for Summary. Use language tags defined by
            -       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            -       * Note: This is an experimental feature.
            -       * 
            - * - * string language_code = 6; - * - * @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; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, version_); + } + getUnknownFields().writeTo(output); } - } - - public static final int MODEL_SPEC_FIELD_NUMBER = 7; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec - modelSpec_; - - /** - * - * - *
            -       * If specified, the spec will be used to modify the model specification
            -       * provided to the LLM.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; - * - * - * @return Whether the modelSpec field is set. - */ - @java.lang.Override - public boolean hasModelSpec() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
            -       * If specified, the spec will be used to modify the model specification
            -       * provided to the LLM.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; - * - * - * @return The modelSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec - getModelSpec() { - return modelSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec.getDefaultInstance() - : modelSpec_; - } - - /** - * - * - *
            -       * If specified, the spec will be used to modify the model specification
            -       * provided to the LLM.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpecOrBuilder - getModelSpecOrBuilder() { - return modelSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec.getDefaultInstance() - : modelSpec_; - } - - public static final int USE_SEMANTIC_CHUNKS_FIELD_NUMBER = 8; - private boolean useSemanticChunks_ = false; - - /** - * - * - *
            -       * If true, answer will be generated from most relevant chunks from top
            -       * search results. This feature will improve summary quality.
            -       * Note that with this feature enabled, not all top search results
            -       * will be referenced and included in the reference list, so the citation
            -       * source index only points to the search results listed in the reference
            -       * list.
            -       * 
            - * - * bool use_semantic_chunks = 8; - * - * @return The useSemanticChunks. - */ - @java.lang.Override - public boolean getUseSemanticChunks() { - return useSemanticChunks_; - } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, version_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec + other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec) + obj; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (summaryResultCount_ != 0) { - output.writeInt32(1, summaryResultCount_); - } - if (includeCitations_ != false) { - output.writeBool(2, includeCitations_); - } - if (ignoreAdversarialQuery_ != false) { - output.writeBool(3, ignoreAdversarialQuery_); - } - if (ignoreNonSummarySeekingQuery_ != false) { - output.writeBool(4, ignoreNonSummarySeekingQuery_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getModelPromptSpec()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 6, languageCode_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(7, getModelSpec()); - } - if (useSemanticChunks_ != false) { - output.writeBool(8, useSemanticChunks_); - } - if (ignoreLowRelevantContent_ != false) { - output.writeBool(9, ignoreLowRelevantContent_); - } - if (ignoreJailBreakingQuery_ != false) { - output.writeBool(10, ignoreJailBreakingQuery_); + if (!getVersion().equals(other.getVersion())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - getUnknownFields().writeTo(output); - } - @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(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - size = 0; - if (summaryResultCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, summaryResultCount_); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (includeCitations_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeCitations_); + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec + parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - if (ignoreAdversarialQuery_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, ignoreAdversarialQuery_); + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (ignoreNonSummarySeekingQuery_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 4, ignoreNonSummarySeekingQuery_); + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getModelPromptSpec()); + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(6, languageCode_); + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec + 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(7, getModelSpec()); + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - if (useSemanticChunks_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, useSemanticChunks_); + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - if (ignoreLowRelevantContent_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(9, ignoreLowRelevantContent_); + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - if (ignoreJailBreakingQuery_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(10, ignoreJailBreakingQuery_); + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec)) { - return super.equals(obj); + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec) - obj; - if (getSummaryResultCount() != other.getSummaryResultCount()) return false; - if (getIncludeCitations() != other.getIncludeCitations()) return false; - if (getIgnoreAdversarialQuery() != other.getIgnoreAdversarialQuery()) return false; - 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; + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (hasModelSpec() != other.hasModelSpec()) return false; - if (hasModelSpec()) { - if (!getModelSpec().equals(other.getModelSpec())) return false; + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - if (getUseSemanticChunks() != other.getUseSemanticChunks()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SUMMARY_RESULT_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getSummaryResultCount(); - hash = (37 * hash) + INCLUDE_CITATIONS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeCitations()); - hash = (37 * hash) + IGNORE_ADVERSARIAL_QUERY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreAdversarialQuery()); - hash = (37 * hash) + IGNORE_NON_SUMMARY_SEEKING_QUERY_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getIgnoreNonSummarySeekingQuery()); - 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(); + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; - hash = (53 * hash) + getLanguageCode().hashCode(); - if (hasModelSpec()) { - hash = (37 * hash) + MODEL_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getModelSpec().hashCode(); + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - hash = (37 * hash) + USE_SEMANTIC_CHUNKS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseSemanticChunks()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +         * Specification of the model.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelSpec_descriptor; + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec.Builder.class); + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec.newBuilder() + private Builder() {} - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + version_ = ""; + return this; + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelSpec_descriptor; + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec.getDefaultInstance(); + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec + build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec + result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + } + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec - parseFrom( + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec.getDefaultInstance()) return this; + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + 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 { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + if (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: + { + version_ = 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; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + private int bitField0_; - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + private java.lang.Object version_ = ""; - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
            +           * The model version used to generate the summary.
            +           *
            +           * Supported values are:
            +           *
            +           * * `stable`: string. Default value when no value is specified. Uses a
            +           * generally available, fine-tuned model. For more information, see
            +           * [Answer generation model versions and
            +           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +           * * `preview`: string. (Public preview) Uses a preview model. For more
            +           * information, see
            +           * [Answer generation model versions and
            +           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +           * 
            + * + * string version = 1; + * + * @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; + } + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
            +           * The model version used to generate the summary.
            +           *
            +           * Supported values are:
            +           *
            +           * * `stable`: string. Default value when no value is specified. Uses a
            +           * generally available, fine-tuned model. For more information, see
            +           * [Answer generation model versions and
            +           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +           * * `preview`: string. (Public preview) Uses a preview model. For more
            +           * information, see
            +           * [Answer generation model versions and
            +           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +           * 
            + * + * string version = 1; + * + * @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; + } + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
            +           * The model version used to generate the summary.
            +           *
            +           * Supported values are:
            +           *
            +           * * `stable`: string. Default value when no value is specified. Uses a
            +           * generally available, fine-tuned model. For more information, see
            +           * [Answer generation model versions and
            +           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +           * * `preview`: string. (Public preview) Uses a preview model. For more
            +           * information, see
            +           * [Answer generation model versions and
            +           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +           * 
            + * + * string version = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
            -       * A specification for configuring a summary returned in a search
            -       * response.
            -       * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec) - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; - } + /** + * + * + *
            +           * The model version used to generate the summary.
            +           *
            +           * Supported values are:
            +           *
            +           * * `stable`: string. Default value when no value is specified. Uses a
            +           * generally available, fine-tuned model. For more information, see
            +           * [Answer generation model versions and
            +           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +           * * `preview`: string. (Public preview) Uses a preview model. For more
            +           * information, see
            +           * [Answer generation model versions and
            +           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +           * 
            + * + * string version = 1; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.Builder.class); - } + /** + * + * + *
            +           * The model version used to generate the summary.
            +           *
            +           * Supported values are:
            +           *
            +           * * `stable`: string. Default value when no value is specified. Uses a
            +           * generally available, fine-tuned model. For more information, see
            +           * [Answer generation model versions and
            +           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +           * * `preview`: string. (Public preview) Uses a preview model. For more
            +           * information, see
            +           * [Answer generation model versions and
            +           * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
            +           * 
            + * + * string version = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec) } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec + DEFAULT_INSTANCE; - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetModelPromptSpecFieldBuilder(); - internalGetModelSpecFieldBuilder(); - } + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec(); } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - summaryResultCount_ = 0; - includeCitations_ = false; - ignoreAdversarialQuery_ = false; - ignoreNonSummarySeekingQuery_ = false; - ignoreLowRelevantContent_ = false; - ignoreJailBreakingQuery_ = false; - modelPromptSpec_ = null; - if (modelPromptSpecBuilder_ != null) { - modelPromptSpecBuilder_.dispose(); - modelPromptSpecBuilder_ = null; - } - languageCode_ = ""; - modelSpec_ = null; - if (modelSpecBuilder_ != null) { - modelSpecBuilder_.dispose(); - modelSpecBuilder_ = null; - } - useSemanticChunks_ = false; - return this; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ModelSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance(); + public static com.google.protobuf.Parser parser() { + return PARSER; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; + .ModelSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.summaryResultCount_ = summaryResultCount_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.includeCitations_ = includeCitations_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.ignoreAdversarialQuery_ = ignoreAdversarialQuery_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.ignoreNonSummarySeekingQuery_ = ignoreNonSummarySeekingQuery_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.ignoreLowRelevantContent_ = ignoreLowRelevantContent_; - } - 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_ & 0x00000080) != 0)) { - result.languageCode_ = languageCode_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.modelSpec_ = modelSpecBuilder_ == null ? modelSpec_ : modelSpecBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.useSemanticChunks_ = useSemanticChunks_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec) - other); - } else { - super.mergeFrom(other); - return this; - } - } + private int bitField0_; + public static final int SUMMARY_RESULT_COUNT_FIELD_NUMBER = 1; + private int summaryResultCount_ = 0; - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance()) return this; - if (other.getSummaryResultCount() != 0) { - setSummaryResultCount(other.getSummaryResultCount()); - } - if (other.getIncludeCitations() != false) { - setIncludeCitations(other.getIncludeCitations()); - } - if (other.getIgnoreAdversarialQuery() != false) { - setIgnoreAdversarialQuery(other.getIgnoreAdversarialQuery()); - } - if (other.getIgnoreNonSummarySeekingQuery() != false) { - setIgnoreNonSummarySeekingQuery(other.getIgnoreNonSummarySeekingQuery()); - } - 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_ |= 0x00000080; - onChanged(); - } - if (other.hasModelSpec()) { - mergeModelSpec(other.getModelSpec()); - } - if (other.getUseSemanticChunks() != false) { - setUseSemanticChunks(other.getUseSemanticChunks()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + /** + * + * + *
            +       * The number of top results to generate the summary from. If the number
            +       * of results returned is less than `summaryResultCount`, the summary is
            +       * generated from all of the results.
            +       *
            +       * At most 10 results for documents mode, or 50 for chunks mode, can be
            +       * used to generate a summary. The chunks mode is used when
            +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            +       * is set to
            +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
            +       * 
            + * + * int32 summary_result_count = 1; + * + * @return The summaryResultCount. + */ + @java.lang.Override + public int getSummaryResultCount() { + return summaryResultCount_; + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + public static final int INCLUDE_CITATIONS_FIELD_NUMBER = 2; + private boolean includeCitations_ = false; - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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: - { - summaryResultCount_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - includeCitations_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - ignoreAdversarialQuery_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - ignoreNonSummarySeekingQuery_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage( - internalGetModelPromptSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 42 - case 50: - { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 50 - case 58: - { - input.readMessage( - internalGetModelSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; - break; - } // case 58 - case 64: - { - useSemanticChunks_ = input.readBool(); - bitField0_ |= 0x00000200; - break; - } // case 64 - case 72: - { - ignoreLowRelevantContent_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 72 - case 80: - { - ignoreJailBreakingQuery_ = input.readBool(); - bitField0_ |= 0x00000020; - 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; - } + /** + * + * + *
            +       * Specifies whether to include citations in the summary. The default
            +       * value is `false`.
            +       *
            +       * When this field is set to `true`, summaries include in-line citation
            +       * numbers.
            +       *
            +       * Example summary including citations:
            +       *
            +       * BigQuery is Google Cloud's fully managed and completely serverless
            +       * enterprise data warehouse [1]. BigQuery supports all data types, works
            +       * across clouds, and has built-in machine learning and business
            +       * intelligence, all within a unified platform [2, 3].
            +       *
            +       * The citation numbers refer to the returned search results and are
            +       * 1-indexed. For example, [1] means that the sentence is attributed to
            +       * the first search result. [2, 3] means that the sentence is attributed
            +       * to both the second and third search results.
            +       * 
            + * + * bool include_citations = 2; + * + * @return The includeCitations. + */ + @java.lang.Override + public boolean getIncludeCitations() { + return includeCitations_; + } - private int bitField0_; + public static final int IGNORE_ADVERSARIAL_QUERY_FIELD_NUMBER = 3; + private boolean ignoreAdversarialQuery_ = false; - private int summaryResultCount_; + /** + * + * + *
            +       * Specifies whether to filter out adversarial queries. The default value
            +       * is `false`.
            +       *
            +       * Google employs search-query classification to detect adversarial
            +       * queries. No summary is returned if the search query is classified as an
            +       * adversarial query. For example, a user might ask a question regarding
            +       * negative comments about the company or submit a query designed to
            +       * generate unsafe, policy-violating output. If this field is set to
            +       * `true`, we skip generating summaries for adversarial queries and return
            +       * fallback messages instead.
            +       * 
            + * + * bool ignore_adversarial_query = 3; + * + * @return The ignoreAdversarialQuery. + */ + @java.lang.Override + public boolean getIgnoreAdversarialQuery() { + return ignoreAdversarialQuery_; + } - /** - * - * - *
            -         * The number of top results to generate the summary from. If the number
            -         * of results returned is less than `summaryResultCount`, the summary is
            -         * generated from all of the results.
            -         *
            -         * At most 10 results for documents mode, or 50 for chunks mode, can be
            -         * used to generate a summary. The chunks mode is used when
            -         * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            -         * is set to
            -         * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
            -         * 
            - * - * int32 summary_result_count = 1; - * - * @return The summaryResultCount. - */ - @java.lang.Override - public int getSummaryResultCount() { - return summaryResultCount_; - } + public static final int IGNORE_NON_SUMMARY_SEEKING_QUERY_FIELD_NUMBER = 4; + private boolean ignoreNonSummarySeekingQuery_ = false; - /** - * - * - *
            -         * The number of top results to generate the summary from. If the number
            -         * of results returned is less than `summaryResultCount`, the summary is
            -         * generated from all of the results.
            -         *
            -         * At most 10 results for documents mode, or 50 for chunks mode, can be
            -         * used to generate a summary. The chunks mode is used when
            -         * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            -         * is set to
            -         * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
            -         * 
            - * - * int32 summary_result_count = 1; - * - * @param value The summaryResultCount to set. - * @return This builder for chaining. - */ - public Builder setSummaryResultCount(int value) { + /** + * + * + *
            +       * Specifies whether to filter out queries that are not summary-seeking.
            +       * The default value is `false`.
            +       *
            +       * Google employs search-query classification to detect summary-seeking
            +       * queries. No summary is returned if the search query is classified as a
            +       * non-summary seeking query. For example, `why is the sky blue` and `Who
            +       * is the best soccer player in the world?` are summary-seeking queries,
            +       * but `SFO airport` and `world cup 2026` are not. They are most likely
            +       * navigational queries. If this field is set to `true`, we skip
            +       * generating summaries for non-summary seeking queries and return
            +       * fallback messages instead.
            +       * 
            + * + * bool ignore_non_summary_seeking_query = 4; + * + * @return The ignoreNonSummarySeekingQuery. + */ + @java.lang.Override + public boolean getIgnoreNonSummarySeekingQuery() { + return ignoreNonSummarySeekingQuery_; + } - summaryResultCount_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } + public static final int IGNORE_LOW_RELEVANT_CONTENT_FIELD_NUMBER = 9; + private boolean ignoreLowRelevantContent_ = false; - /** - * - * - *
            -         * The number of top results to generate the summary from. If the number
            -         * of results returned is less than `summaryResultCount`, the summary is
            -         * generated from all of the results.
            -         *
            -         * At most 10 results for documents mode, or 50 for chunks mode, can be
            -         * used to generate a summary. The chunks mode is used when
            -         * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            -         * is set to
            -         * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
            -         * 
            - * - * int32 summary_result_count = 1; - * - * @return This builder for chaining. - */ - public Builder clearSummaryResultCount() { - bitField0_ = (bitField0_ & ~0x00000001); - summaryResultCount_ = 0; - onChanged(); - return this; - } + /** + * + * + *
            +       * Specifies whether to filter out queries that have low relevance. The
            +       * default value is `false`.
            +       *
            +       * If this field is set to `false`, all search results are used regardless
            +       * of relevance to generate answers. If set to `true`, only queries with
            +       * high relevance search results will generate answers.
            +       * 
            + * + * bool ignore_low_relevant_content = 9; + * + * @return The ignoreLowRelevantContent. + */ + @java.lang.Override + public boolean getIgnoreLowRelevantContent() { + return ignoreLowRelevantContent_; + } - private boolean includeCitations_; + public static final int IGNORE_JAIL_BREAKING_QUERY_FIELD_NUMBER = 10; + private boolean ignoreJailBreakingQuery_ = false; - /** - * - * - *
            -         * Specifies whether to include citations in the summary. The default
            -         * value is `false`.
            -         *
            -         * When this field is set to `true`, summaries include in-line citation
            -         * numbers.
            -         *
            -         * Example summary including citations:
            -         *
            -         * BigQuery is Google Cloud's fully managed and completely serverless
            -         * enterprise data warehouse [1]. BigQuery supports all data types, works
            -         * across clouds, and has built-in machine learning and business
            -         * intelligence, all within a unified platform [2, 3].
            -         *
            -         * The citation numbers refer to the returned search results and are
            -         * 1-indexed. For example, [1] means that the sentence is attributed to
            -         * the first search result. [2, 3] means that the sentence is attributed
            -         * to both the second and third search results.
            -         * 
            - * - * bool include_citations = 2; - * - * @return The includeCitations. - */ - @java.lang.Override - public boolean getIncludeCitations() { - return includeCitations_; - } + /** + * + * + *
            +       * 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_; + } - /** - * - * - *
            -         * Specifies whether to include citations in the summary. The default
            -         * value is `false`.
            -         *
            -         * When this field is set to `true`, summaries include in-line citation
            -         * numbers.
            -         *
            -         * Example summary including citations:
            -         *
            -         * BigQuery is Google Cloud's fully managed and completely serverless
            -         * enterprise data warehouse [1]. BigQuery supports all data types, works
            -         * across clouds, and has built-in machine learning and business
            -         * intelligence, all within a unified platform [2, 3].
            -         *
            -         * The citation numbers refer to the returned search results and are
            -         * 1-indexed. For example, [1] means that the sentence is attributed to
            -         * the first search result. [2, 3] means that the sentence is attributed
            -         * to both the second and third search results.
            -         * 
            - * - * bool include_citations = 2; - * - * @param value The includeCitations to set. - * @return This builder for chaining. - */ - public Builder setIncludeCitations(boolean value) { + public static final int MULTIMODAL_SPEC_FIELD_NUMBER = 11; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec + multimodalSpec_; - includeCitations_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + /** + * + * + *
            +       * Optional. Multimodal specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec multimodal_spec = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multimodalSpec field is set. + */ + @java.lang.Override + public boolean hasMultimodalSpec() { + return ((bitField0_ & 0x00000001) != 0); + } - /** - * - * - *
            -         * Specifies whether to include citations in the summary. The default
            -         * value is `false`.
            -         *
            -         * When this field is set to `true`, summaries include in-line citation
            -         * numbers.
            -         *
            -         * Example summary including citations:
            -         *
            -         * BigQuery is Google Cloud's fully managed and completely serverless
            -         * enterprise data warehouse [1]. BigQuery supports all data types, works
            -         * across clouds, and has built-in machine learning and business
            -         * intelligence, all within a unified platform [2, 3].
            -         *
            -         * The citation numbers refer to the returned search results and are
            -         * 1-indexed. For example, [1] means that the sentence is attributed to
            -         * the first search result. [2, 3] means that the sentence is attributed
            -         * to both the second and third search results.
            -         * 
            - * - * bool include_citations = 2; - * - * @return This builder for chaining. - */ - public Builder clearIncludeCitations() { - bitField0_ = (bitField0_ & ~0x00000002); - includeCitations_ = false; - onChanged(); - return this; - } - - private boolean ignoreAdversarialQuery_; + /** + * + * + *
            +       * Optional. Multimodal specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec multimodal_spec = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multimodalSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec + getMultimodalSpec() { + return multimodalSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec.getDefaultInstance() + : multimodalSpec_; + } - /** - * - * - *
            -         * Specifies whether to filter out adversarial queries. The default value
            -         * is `false`.
            -         *
            -         * Google employs search-query classification to detect adversarial
            -         * queries. No summary is returned if the search query is classified as an
            -         * adversarial query. For example, a user might ask a question regarding
            -         * negative comments about the company or submit a query designed to
            -         * generate unsafe, policy-violating output. If this field is set to
            -         * `true`, we skip generating summaries for adversarial queries and return
            -         * fallback messages instead.
            -         * 
            - * - * bool ignore_adversarial_query = 3; - * - * @return The ignoreAdversarialQuery. - */ - @java.lang.Override - public boolean getIgnoreAdversarialQuery() { - return ignoreAdversarialQuery_; - } + /** + * + * + *
            +       * Optional. Multimodal specification.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec multimodal_spec = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpecOrBuilder + getMultimodalSpecOrBuilder() { + return multimodalSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec.getDefaultInstance() + : multimodalSpec_; + } - /** - * - * - *
            -         * Specifies whether to filter out adversarial queries. The default value
            -         * is `false`.
            -         *
            -         * Google employs search-query classification to detect adversarial
            -         * queries. No summary is returned if the search query is classified as an
            -         * adversarial query. For example, a user might ask a question regarding
            -         * negative comments about the company or submit a query designed to
            -         * generate unsafe, policy-violating output. If this field is set to
            -         * `true`, we skip generating summaries for adversarial queries and return
            -         * fallback messages instead.
            -         * 
            - * - * bool ignore_adversarial_query = 3; - * - * @param value The ignoreAdversarialQuery to set. - * @return This builder for chaining. - */ - public Builder setIgnoreAdversarialQuery(boolean value) { + public static final int MODEL_PROMPT_SPEC_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelPromptSpec + modelPromptSpec_; - ignoreAdversarialQuery_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } + /** + * + * + *
            +       * If specified, the spec will be used to modify the prompt provided to
            +       * the LLM.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; + * + * + * @return Whether the modelPromptSpec field is set. + */ + @java.lang.Override + public boolean hasModelPromptSpec() { + return ((bitField0_ & 0x00000002) != 0); + } - /** - * - * - *
            -         * Specifies whether to filter out adversarial queries. The default value
            -         * is `false`.
            -         *
            -         * Google employs search-query classification to detect adversarial
            -         * queries. No summary is returned if the search query is classified as an
            -         * adversarial query. For example, a user might ask a question regarding
            -         * negative comments about the company or submit a query designed to
            -         * generate unsafe, policy-violating output. If this field is set to
            -         * `true`, we skip generating summaries for adversarial queries and return
            -         * fallback messages instead.
            -         * 
            - * - * bool ignore_adversarial_query = 3; - * - * @return This builder for chaining. - */ - public Builder clearIgnoreAdversarialQuery() { - bitField0_ = (bitField0_ & ~0x00000004); - ignoreAdversarialQuery_ = false; - onChanged(); - return this; - } + /** + * + * + *
            +       * If specified, the spec will be used to modify the prompt provided to
            +       * the LLM.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; + * + * + * @return The modelPromptSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelPromptSpec + getModelPromptSpec() { + return modelPromptSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelPromptSpec.getDefaultInstance() + : modelPromptSpec_; + } - private boolean ignoreNonSummarySeekingQuery_; + /** + * + * + *
            +       * If specified, the spec will be used to modify the prompt provided to
            +       * the LLM.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelPromptSpecOrBuilder + getModelPromptSpecOrBuilder() { + return modelPromptSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelPromptSpec.getDefaultInstance() + : modelPromptSpec_; + } - /** - * - * - *
            -         * Specifies whether to filter out queries that are not summary-seeking.
            -         * The default value is `false`.
            -         *
            -         * Google employs search-query classification to detect summary-seeking
            -         * queries. No summary is returned if the search query is classified as a
            -         * non-summary seeking query. For example, `why is the sky blue` and `Who
            -         * is the best soccer player in the world?` are summary-seeking queries,
            -         * but `SFO airport` and `world cup 2026` are not. They are most likely
            -         * navigational queries. If this field is set to `true`, we skip
            -         * generating summaries for non-summary seeking queries and return
            -         * fallback messages instead.
            -         * 
            - * - * bool ignore_non_summary_seeking_query = 4; - * - * @return The ignoreNonSummarySeekingQuery. - */ - @java.lang.Override - public boolean getIgnoreNonSummarySeekingQuery() { - return ignoreNonSummarySeekingQuery_; - } + public static final int LANGUAGE_CODE_FIELD_NUMBER = 6; - /** - * - * - *
            -         * Specifies whether to filter out queries that are not summary-seeking.
            -         * The default value is `false`.
            -         *
            -         * Google employs search-query classification to detect summary-seeking
            -         * queries. No summary is returned if the search query is classified as a
            -         * non-summary seeking query. For example, `why is the sky blue` and `Who
            -         * is the best soccer player in the world?` are summary-seeking queries,
            -         * but `SFO airport` and `world cup 2026` are not. They are most likely
            -         * navigational queries. If this field is set to `true`, we skip
            -         * generating summaries for non-summary seeking queries and return
            -         * fallback messages instead.
            -         * 
            - * - * bool ignore_non_summary_seeking_query = 4; - * - * @param value The ignoreNonSummarySeekingQuery to set. - * @return This builder for chaining. - */ - public Builder setIgnoreNonSummarySeekingQuery(boolean value) { + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; - ignoreNonSummarySeekingQuery_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; + /** + * + * + *
            +       * Language code for Summary. Use language tags defined by
            +       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            +       * Note: This is an experimental feature.
            +       * 
            + * + * string language_code = 6; + * + * @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; } + } - /** - * - * - *
            -         * Specifies whether to filter out queries that are not summary-seeking.
            -         * The default value is `false`.
            -         *
            -         * Google employs search-query classification to detect summary-seeking
            -         * queries. No summary is returned if the search query is classified as a
            -         * non-summary seeking query. For example, `why is the sky blue` and `Who
            -         * is the best soccer player in the world?` are summary-seeking queries,
            -         * but `SFO airport` and `world cup 2026` are not. They are most likely
            -         * navigational queries. If this field is set to `true`, we skip
            -         * generating summaries for non-summary seeking queries and return
            -         * fallback messages instead.
            -         * 
            - * - * bool ignore_non_summary_seeking_query = 4; - * - * @return This builder for chaining. - */ - public Builder clearIgnoreNonSummarySeekingQuery() { - bitField0_ = (bitField0_ & ~0x00000008); - ignoreNonSummarySeekingQuery_ = false; - onChanged(); - return this; + /** + * + * + *
            +       * Language code for Summary. Use language tags defined by
            +       * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            +       * Note: This is an experimental feature.
            +       * 
            + * + * string language_code = 6; + * + * @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; } + } - private boolean ignoreLowRelevantContent_; + public static final int MODEL_SPEC_FIELD_NUMBER = 7; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec + modelSpec_; - /** - * - * - *
            -         * Specifies whether to filter out queries that have low relevance. The
            -         * default value is `false`.
            -         *
            -         * If this field is set to `false`, all search results are used regardless
            -         * of relevance to generate answers. If set to `true`, only queries with
            -         * high relevance search results will generate answers.
            -         * 
            - * - * bool ignore_low_relevant_content = 9; - * - * @return The ignoreLowRelevantContent. - */ - @java.lang.Override - public boolean getIgnoreLowRelevantContent() { - return ignoreLowRelevantContent_; - } + /** + * + * + *
            +       * If specified, the spec will be used to modify the model specification
            +       * provided to the LLM.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; + * + * + * @return Whether the modelSpec field is set. + */ + @java.lang.Override + public boolean hasModelSpec() { + return ((bitField0_ & 0x00000004) != 0); + } - /** - * - * - *
            -         * Specifies whether to filter out queries that have low relevance. The
            -         * default value is `false`.
            -         *
            -         * If this field is set to `false`, all search results are used regardless
            -         * of relevance to generate answers. If set to `true`, only queries with
            -         * high relevance search results will generate answers.
            -         * 
            - * - * bool ignore_low_relevant_content = 9; - * - * @param value The ignoreLowRelevantContent to set. - * @return This builder for chaining. - */ - public Builder setIgnoreLowRelevantContent(boolean value) { + /** + * + * + *
            +       * If specified, the spec will be used to modify the model specification
            +       * provided to the LLM.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; + * + * + * @return The modelSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec + getModelSpec() { + return modelSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec.getDefaultInstance() + : modelSpec_; + } - ignoreLowRelevantContent_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } + /** + * + * + *
            +       * If specified, the spec will be used to modify the model specification
            +       * provided to the LLM.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpecOrBuilder + getModelSpecOrBuilder() { + return modelSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec.getDefaultInstance() + : modelSpec_; + } - /** - * - * - *
            -         * Specifies whether to filter out queries that have low relevance. The
            -         * default value is `false`.
            -         *
            -         * If this field is set to `false`, all search results are used regardless
            -         * of relevance to generate answers. If set to `true`, only queries with
            -         * high relevance search results will generate answers.
            -         * 
            - * - * bool ignore_low_relevant_content = 9; - * - * @return This builder for chaining. - */ - public Builder clearIgnoreLowRelevantContent() { - bitField0_ = (bitField0_ & ~0x00000010); - ignoreLowRelevantContent_ = false; - onChanged(); - return this; - } + public static final int USE_SEMANTIC_CHUNKS_FIELD_NUMBER = 8; + private boolean useSemanticChunks_ = false; - private boolean ignoreJailBreakingQuery_; + /** + * + * + *
            +       * If true, answer will be generated from most relevant chunks from top
            +       * search results. This feature will improve summary quality.
            +       * Note that with this feature enabled, not all top search results
            +       * will be referenced and included in the reference list, so the citation
            +       * source index only points to the search results listed in the reference
            +       * list.
            +       * 
            + * + * bool use_semantic_chunks = 8; + * + * @return The useSemanticChunks. + */ + @java.lang.Override + public boolean getUseSemanticChunks() { + return useSemanticChunks_; + } - /** - * - * - *
            -         * 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_; - } + private byte memoizedIsInitialized = -1; - /** - * - * - *
            -         * 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) { + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - ignoreJailBreakingQuery_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } + memoizedIsInitialized = 1; + return true; + } - /** - * - * - *
            -         * 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; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (summaryResultCount_ != 0) { + output.writeInt32(1, summaryResultCount_); } - - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec - modelPromptSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpecOrBuilder> - modelPromptSpecBuilder_; - - /** - * - * - *
            -         * If specified, the spec will be used to modify the prompt provided to
            -         * the LLM.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; - * - * - * @return Whether the modelPromptSpec field is set. - */ - public boolean hasModelPromptSpec() { - return ((bitField0_ & 0x00000040) != 0); + if (includeCitations_ != false) { + output.writeBool(2, includeCitations_); } - - /** - * - * - *
            -         * If specified, the spec will be used to modify the prompt provided to
            -         * the LLM.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; - * - * - * @return The modelPromptSpec. - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec - getModelPromptSpec() { - if (modelPromptSpecBuilder_ == null) { - return modelPromptSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec.getDefaultInstance() - : modelPromptSpec_; - } else { - return modelPromptSpecBuilder_.getMessage(); - } + if (ignoreAdversarialQuery_ != false) { + output.writeBool(3, ignoreAdversarialQuery_); } - - /** - * - * - *
            -         * If specified, the spec will be used to modify the prompt provided to
            -         * the LLM.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; - * - */ - public Builder setModelPromptSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec - value) { - if (modelPromptSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - modelPromptSpec_ = value; - } else { - modelPromptSpecBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; + if (ignoreNonSummarySeekingQuery_ != false) { + output.writeBool(4, ignoreNonSummarySeekingQuery_); } - - /** - * - * - *
            -         * If specified, the spec will be used to modify the prompt provided to
            -         * the LLM.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; - * - */ - public Builder setModelPromptSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec.Builder - builderForValue) { - if (modelPromptSpecBuilder_ == null) { - modelPromptSpec_ = builderForValue.build(); - } else { - modelPromptSpecBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getModelPromptSpec()); } - - /** - * - * - *
            -         * If specified, the spec will be used to modify the prompt provided to
            -         * the LLM.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; - * - */ - public Builder mergeModelPromptSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec - value) { - if (modelPromptSpecBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && modelPromptSpec_ != null - && modelPromptSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec.getDefaultInstance()) { - getModelPromptSpecBuilder().mergeFrom(value); - } else { - modelPromptSpec_ = value; - } - } else { - modelPromptSpecBuilder_.mergeFrom(value); - } - if (modelPromptSpec_ != null) { - bitField0_ |= 0x00000040; - onChanged(); - } - return this; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, languageCode_); } - - /** - * - * - *
            -         * If specified, the spec will be used to modify the prompt provided to
            -         * the LLM.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; - * - */ - public Builder clearModelPromptSpec() { - bitField0_ = (bitField0_ & ~0x00000040); - modelPromptSpec_ = null; - if (modelPromptSpecBuilder_ != null) { - modelPromptSpecBuilder_.dispose(); - modelPromptSpecBuilder_ = null; - } - onChanged(); - return this; + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getModelSpec()); } - - /** - * - * - *
            -         * If specified, the spec will be used to modify the prompt provided to
            -         * the LLM.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec.Builder - getModelPromptSpecBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return internalGetModelPromptSpecFieldBuilder().getBuilder(); + if (useSemanticChunks_ != false) { + output.writeBool(8, useSemanticChunks_); } - - /** - * - * - *
            -         * If specified, the spec will be used to modify the prompt provided to
            -         * the LLM.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpecOrBuilder - getModelPromptSpecOrBuilder() { - if (modelPromptSpecBuilder_ != null) { - return modelPromptSpecBuilder_.getMessageOrBuilder(); - } else { - return modelPromptSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec.getDefaultInstance() - : modelPromptSpec_; - } + if (ignoreLowRelevantContent_ != false) { + output.writeBool(9, ignoreLowRelevantContent_); } - - /** - * - * - *
            -         * If specified, the spec will be used to modify the prompt provided to
            -         * the LLM.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelPromptSpecOrBuilder> - internalGetModelPromptSpecFieldBuilder() { - if (modelPromptSpecBuilder_ == null) { - modelPromptSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelPromptSpecOrBuilder>( - getModelPromptSpec(), getParentForChildren(), isClean()); - modelPromptSpec_ = null; - } - return modelPromptSpecBuilder_; + if (ignoreJailBreakingQuery_ != false) { + output.writeBool(10, ignoreJailBreakingQuery_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(11, getMultimodalSpec()); } + getUnknownFields().writeTo(output); + } - private java.lang.Object languageCode_ = ""; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - /** - * - * - *
            -         * Language code for Summary. Use language tags defined by
            -         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            -         * Note: This is an experimental feature.
            -         * 
            - * - * string language_code = 6; - * - * @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; - } + size = 0; + if (summaryResultCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, summaryResultCount_); } - - /** - * - * - *
            -         * Language code for Summary. Use language tags defined by
            -         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            -         * Note: This is an experimental feature.
            -         * 
            - * - * string language_code = 6; - * - * @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; - } + if (includeCitations_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, includeCitations_); } - - /** - * - * - *
            -         * Language code for Summary. Use language tags defined by
            -         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            -         * Note: This is an experimental feature.
            -         * 
            - * - * string language_code = 6; - * - * @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_ |= 0x00000080; - onChanged(); - return this; + if (ignoreAdversarialQuery_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, ignoreAdversarialQuery_); } - - /** - * - * - *
            -         * Language code for Summary. Use language tags defined by
            -         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            -         * Note: This is an experimental feature.
            -         * 
            - * - * string language_code = 6; - * - * @return This builder for chaining. - */ - public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; + if (ignoreNonSummarySeekingQuery_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 4, ignoreNonSummarySeekingQuery_); } - - /** - * - * - *
            -         * Language code for Summary. Use language tags defined by
            -         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            -         * Note: This is an experimental feature.
            -         * 
            - * - * string language_code = 6; - * - * @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_ |= 0x00000080; - onChanged(); - return this; + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getModelPromptSpec()); } - - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec - modelSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpecOrBuilder> - modelSpecBuilder_; - - /** - * - * - *
            -         * If specified, the spec will be used to modify the model specification
            -         * provided to the LLM.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; - * - * - * @return Whether the modelSpec field is set. - */ - public boolean hasModelSpec() { - return ((bitField0_ & 0x00000100) != 0); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, languageCode_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getModelSpec()); + } + if (useSemanticChunks_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, useSemanticChunks_); + } + if (ignoreLowRelevantContent_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(9, ignoreLowRelevantContent_); + } + if (ignoreJailBreakingQuery_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(10, ignoreJailBreakingQuery_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getMultimodalSpec()); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
            -         * If specified, the spec will be used to modify the model specification
            -         * provided to the LLM.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; - * - * - * @return The modelSpec. - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec - getModelSpec() { - if (modelSpecBuilder_ == null) { - return modelSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec.getDefaultInstance() - : modelSpec_; - } else { - return modelSpecBuilder_.getMessage(); - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - - /** - * - * - *
            -         * If specified, the spec will be used to modify the model specification
            -         * provided to the LLM.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; - * - */ - public Builder setModelSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec - value) { - if (modelSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - modelSpec_ = value; - } else { - modelSpecBuilder_.setMessage(value); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec)) { + return super.equals(obj); } + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec) + obj; - /** - * - * - *
            -         * If specified, the spec will be used to modify the model specification
            -         * provided to the LLM.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; - * - */ - public Builder setModelSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec.Builder - builderForValue) { - if (modelSpecBuilder_ == null) { - modelSpec_ = builderForValue.build(); - } else { - modelSpecBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000100; - onChanged(); - return this; + if (getSummaryResultCount() != other.getSummaryResultCount()) return false; + if (getIncludeCitations() != other.getIncludeCitations()) return false; + if (getIgnoreAdversarialQuery() != other.getIgnoreAdversarialQuery()) return false; + if (getIgnoreNonSummarySeekingQuery() != other.getIgnoreNonSummarySeekingQuery()) + return false; + if (getIgnoreLowRelevantContent() != other.getIgnoreLowRelevantContent()) return false; + if (getIgnoreJailBreakingQuery() != other.getIgnoreJailBreakingQuery()) return false; + if (hasMultimodalSpec() != other.hasMultimodalSpec()) return false; + if (hasMultimodalSpec()) { + if (!getMultimodalSpec().equals(other.getMultimodalSpec())) return false; } - - /** - * - * - *
            -         * If specified, the spec will be used to modify the model specification
            -         * provided to the LLM.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; - * - */ - public Builder mergeModelSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec - value) { - if (modelSpecBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) - && modelSpec_ != null - && modelSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec.getDefaultInstance()) { - getModelSpecBuilder().mergeFrom(value); - } else { - modelSpec_ = value; - } - } else { - modelSpecBuilder_.mergeFrom(value); - } - if (modelSpec_ != null) { - bitField0_ |= 0x00000100; - onChanged(); - } - return this; + if (hasModelPromptSpec() != other.hasModelPromptSpec()) return false; + if (hasModelPromptSpec()) { + if (!getModelPromptSpec().equals(other.getModelPromptSpec())) return false; } - - /** - * - * - *
            -         * If specified, the spec will be used to modify the model specification
            -         * provided to the LLM.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; - * - */ - public Builder clearModelSpec() { - bitField0_ = (bitField0_ & ~0x00000100); - modelSpec_ = null; - if (modelSpecBuilder_ != null) { - modelSpecBuilder_.dispose(); - modelSpecBuilder_ = null; - } - onChanged(); - return this; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (hasModelSpec() != other.hasModelSpec()) return false; + if (hasModelSpec()) { + if (!getModelSpec().equals(other.getModelSpec())) return false; } + if (getUseSemanticChunks() != other.getUseSemanticChunks()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - /** - * - * - *
            -         * If specified, the spec will be used to modify the model specification
            -         * provided to the LLM.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec.Builder - getModelSpecBuilder() { - bitField0_ |= 0x00000100; - onChanged(); - return internalGetModelSpecFieldBuilder().getBuilder(); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - - /** - * - * - *
            -         * If specified, the spec will be used to modify the model specification
            -         * provided to the LLM.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpecOrBuilder - getModelSpecOrBuilder() { - if (modelSpecBuilder_ != null) { - return modelSpecBuilder_.getMessageOrBuilder(); - } else { - return modelSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec.getDefaultInstance() - : modelSpec_; - } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUMMARY_RESULT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getSummaryResultCount(); + hash = (37 * hash) + INCLUDE_CITATIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeCitations()); + hash = (37 * hash) + IGNORE_ADVERSARIAL_QUERY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreAdversarialQuery()); + hash = (37 * hash) + IGNORE_NON_SUMMARY_SEEKING_QUERY_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getIgnoreNonSummarySeekingQuery()); + 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 (hasMultimodalSpec()) { + hash = (37 * hash) + MULTIMODAL_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMultimodalSpec().hashCode(); } - - /** - * - * - *
            -         * If specified, the spec will be used to modify the model specification
            -         * provided to the LLM.
            -         * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .ModelSpecOrBuilder> - internalGetModelSpecFieldBuilder() { - if (modelSpecBuilder_ == null) { - modelSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.ModelSpecOrBuilder>( - getModelSpec(), getParentForChildren(), isClean()); - modelSpec_ = null; - } - return modelSpecBuilder_; + if (hasModelPromptSpec()) { + hash = (37 * hash) + MODEL_PROMPT_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getModelPromptSpec().hashCode(); + } + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + if (hasModelSpec()) { + hash = (37 * hash) + MODEL_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getModelSpec().hashCode(); } + hash = (37 * hash) + USE_SEMANTIC_CHUNKS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUseSemanticChunks()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - private boolean useSemanticChunks_; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -         * If true, answer will be generated from most relevant chunks from top
            -         * search results. This feature will improve summary quality.
            -         * Note that with this feature enabled, not all top search results
            -         * will be referenced and included in the reference list, so the citation
            -         * source index only points to the search results listed in the reference
            -         * list.
            -         * 
            - * - * bool use_semantic_chunks = 8; - * - * @return The useSemanticChunks. - */ - @java.lang.Override - public boolean getUseSemanticChunks() { - return useSemanticChunks_; - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -         * If true, answer will be generated from most relevant chunks from top
            -         * search results. This feature will improve summary quality.
            -         * Note that with this feature enabled, not all top search results
            -         * will be referenced and included in the reference list, so the citation
            -         * source index only points to the search results listed in the reference
            -         * list.
            -         * 
            - * - * bool use_semantic_chunks = 8; - * - * @param value The useSemanticChunks to set. - * @return This builder for chaining. - */ - public Builder setUseSemanticChunks(boolean value) { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - useSemanticChunks_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -         * If true, answer will be generated from most relevant chunks from top
            -         * search results. This feature will improve summary quality.
            -         * Note that with this feature enabled, not all top search results
            -         * will be referenced and included in the reference list, so the citation
            -         * source index only points to the search results listed in the reference
            -         * list.
            -         * 
            - * - * bool use_semantic_chunks = 8; - * - * @return This builder for chaining. - */ - public Builder clearUseSemanticChunks() { - bitField0_ = (bitField0_ & ~0x00000200); - useSemanticChunks_ = false; - onChanged(); - return this; - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec) + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec .SummarySpec - DEFAULT_INSTANCE; + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec(); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec .SummarySpec - getDefaultInstance() { - return DEFAULT_INSTANCE; + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SummarySpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.protobuf.Parser parser() { - return PARSER; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - } - public interface ExtractiveContentSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * * *
            -       * The maximum number of extractive answers returned in each search
            -       * result.
            -       *
            -       * An extractive answer is a verbatim answer extracted from the original
            -       * document, which provides a precise and contextually relevant answer to
            -       * the search query.
            -       *
            -       * If the number of matching answers is less than the
            -       * `max_extractive_answer_count`, return all of the answers. Otherwise,
            -       * return the `max_extractive_answer_count`.
            -       *
            -       * At most five answers are returned for each
            -       * [SearchResult][google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult].
            +       * A specification for configuring a summary returned in a search
            +       * response.
                    * 
            * - * int32 max_extractive_answer_count = 1; - * - * @return The maxExtractiveAnswerCount. + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec} */ - int getMaxExtractiveAnswerCount(); + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; + } - /** - * - * - *
            -       * The max number of extractive segments returned in each search result.
            -       * Only applied if the
            -       * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] is set to
            -       * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.CONTENT_REQUIRED]
            -       * or
            -       * [DataStore.solution_types][google.cloud.discoveryengine.v1beta.DataStore.solution_types]
            -       * is
            -       * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            -       *
            -       * An extractive segment is a text segment extracted from the original
            -       * document that is relevant to the search query, and, in general, more
            -       * verbose than an extractive answer. The segment could then be used as
            -       * input for LLMs to generate summaries and answers.
            -       *
            -       * If the number of matching segments is less than
            -       * `max_extractive_segment_count`, return all of the segments. Otherwise,
            -       * return the `max_extractive_segment_count`.
            -       * 
            - * - * int32 max_extractive_segment_count = 2; - * - * @return The maxExtractiveSegmentCount. - */ - int getMaxExtractiveSegmentCount(); - - /** - * - * - *
            -       * Specifies whether to return the confidence score from the extractive
            -       * segments in each search result. This feature is available only for new
            -       * or allowlisted data stores. To allowlist your data store,
            -       * contact your Customer Engineer. The default value is `false`.
            -       * 
            - * - * bool return_extractive_segment_score = 3; - * - * @return The returnExtractiveSegmentScore. - */ - boolean getReturnExtractiveSegmentScore(); - - /** - * - * - *
            -       * Specifies whether to also include the adjacent from each selected
            -       * segments.
            -       * Return at most `num_previous_segments` segments before each selected
            -       * segments.
            -       * 
            - * - * int32 num_previous_segments = 4; - * - * @return The numPreviousSegments. - */ - int getNumPreviousSegments(); - - /** - * - * - *
            -       * Return at most `num_next_segments` segments after each selected
            -       * segments.
            -       * 
            - * - * int32 num_next_segments = 5; - * - * @return The numNextSegments. - */ - int getNumNextSegments(); - } - - /** - * - * - *
            -     * A specification for configuring the extractive content in a search
            -     * response.
            -     * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec} - */ - public static final class ExtractiveContentSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) - ExtractiveContentSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "ExtractiveContentSpec"); - } - - // Use ExtractiveContentSpec.newBuilder() to construct. - private ExtractiveContentSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ExtractiveContentSpec() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.Builder.class); - } - - public static final int MAX_EXTRACTIVE_ANSWER_COUNT_FIELD_NUMBER = 1; - private int maxExtractiveAnswerCount_ = 0; - - /** - * - * - *
            -       * The maximum number of extractive answers returned in each search
            -       * result.
            -       *
            -       * An extractive answer is a verbatim answer extracted from the original
            -       * document, which provides a precise and contextually relevant answer to
            -       * the search query.
            -       *
            -       * If the number of matching answers is less than the
            -       * `max_extractive_answer_count`, return all of the answers. Otherwise,
            -       * return the `max_extractive_answer_count`.
            -       *
            -       * At most five answers are returned for each
            -       * [SearchResult][google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult].
            -       * 
            - * - * int32 max_extractive_answer_count = 1; - * - * @return The maxExtractiveAnswerCount. - */ - @java.lang.Override - public int getMaxExtractiveAnswerCount() { - return maxExtractiveAnswerCount_; - } - - public static final int MAX_EXTRACTIVE_SEGMENT_COUNT_FIELD_NUMBER = 2; - private int maxExtractiveSegmentCount_ = 0; - - /** - * - * - *
            -       * The max number of extractive segments returned in each search result.
            -       * Only applied if the
            -       * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] is set to
            -       * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.CONTENT_REQUIRED]
            -       * or
            -       * [DataStore.solution_types][google.cloud.discoveryengine.v1beta.DataStore.solution_types]
            -       * is
            -       * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            -       *
            -       * An extractive segment is a text segment extracted from the original
            -       * document that is relevant to the search query, and, in general, more
            -       * verbose than an extractive answer. The segment could then be used as
            -       * input for LLMs to generate summaries and answers.
            -       *
            -       * If the number of matching segments is less than
            -       * `max_extractive_segment_count`, return all of the segments. Otherwise,
            -       * return the `max_extractive_segment_count`.
            -       * 
            - * - * int32 max_extractive_segment_count = 2; - * - * @return The maxExtractiveSegmentCount. - */ - @java.lang.Override - public int getMaxExtractiveSegmentCount() { - return maxExtractiveSegmentCount_; - } - - public static final int RETURN_EXTRACTIVE_SEGMENT_SCORE_FIELD_NUMBER = 3; - private boolean returnExtractiveSegmentScore_ = false; - - /** - * - * - *
            -       * Specifies whether to return the confidence score from the extractive
            -       * segments in each search result. This feature is available only for new
            -       * or allowlisted data stores. To allowlist your data store,
            -       * contact your Customer Engineer. The default value is `false`.
            -       * 
            - * - * bool return_extractive_segment_score = 3; - * - * @return The returnExtractiveSegmentScore. - */ - @java.lang.Override - public boolean getReturnExtractiveSegmentScore() { - return returnExtractiveSegmentScore_; - } - - public static final int NUM_PREVIOUS_SEGMENTS_FIELD_NUMBER = 4; - private int numPreviousSegments_ = 0; - - /** - * - * - *
            -       * Specifies whether to also include the adjacent from each selected
            -       * segments.
            -       * Return at most `num_previous_segments` segments before each selected
            -       * segments.
            -       * 
            - * - * int32 num_previous_segments = 4; - * - * @return The numPreviousSegments. - */ - @java.lang.Override - public int getNumPreviousSegments() { - return numPreviousSegments_; - } - - public static final int NUM_NEXT_SEGMENTS_FIELD_NUMBER = 5; - private int numNextSegments_ = 0; - - /** - * - * - *
            -       * Return at most `num_next_segments` segments after each selected
            -       * segments.
            -       * 
            - * - * int32 num_next_segments = 5; - * - * @return The numNextSegments. - */ - @java.lang.Override - public int getNumNextSegments() { - return numNextSegments_; - } - - 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 + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.Builder.class); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (maxExtractiveAnswerCount_ != 0) { - output.writeInt32(1, maxExtractiveAnswerCount_); + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - if (maxExtractiveSegmentCount_ != 0) { - output.writeInt32(2, maxExtractiveSegmentCount_); + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); } - if (returnExtractiveSegmentScore_ != false) { - output.writeBool(3, returnExtractiveSegmentScore_); + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMultimodalSpecFieldBuilder(); + internalGetModelPromptSpecFieldBuilder(); + internalGetModelSpecFieldBuilder(); + } } - if (numPreviousSegments_ != 0) { - output.writeInt32(4, numPreviousSegments_); + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + summaryResultCount_ = 0; + includeCitations_ = false; + ignoreAdversarialQuery_ = false; + ignoreNonSummarySeekingQuery_ = false; + ignoreLowRelevantContent_ = false; + ignoreJailBreakingQuery_ = false; + multimodalSpec_ = null; + if (multimodalSpecBuilder_ != null) { + multimodalSpecBuilder_.dispose(); + multimodalSpecBuilder_ = null; + } + modelPromptSpec_ = null; + if (modelPromptSpecBuilder_ != null) { + modelPromptSpecBuilder_.dispose(); + modelPromptSpecBuilder_ = null; + } + languageCode_ = ""; + modelSpec_ = null; + if (modelSpecBuilder_ != null) { + modelSpecBuilder_.dispose(); + modelSpecBuilder_ = null; + } + useSemanticChunks_ = false; + return this; } - if (numNextSegments_ != 0) { - output.writeInt32(5, numNextSegments_); + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .getDefaultInstance(); + } - size = 0; - if (maxExtractiveAnswerCount_ != 0) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxExtractiveAnswerCount_); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - if (maxExtractiveSegmentCount_ != 0) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxExtractiveSegmentCount_); + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; } - if (returnExtractiveSegmentScore_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 3, returnExtractiveSegmentScore_); + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.summaryResultCount_ = summaryResultCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.includeCitations_ = includeCitations_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ignoreAdversarialQuery_ = ignoreAdversarialQuery_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.ignoreNonSummarySeekingQuery_ = ignoreNonSummarySeekingQuery_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.ignoreLowRelevantContent_ = ignoreLowRelevantContent_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.ignoreJailBreakingQuery_ = ignoreJailBreakingQuery_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.multimodalSpec_ = + multimodalSpecBuilder_ == null ? multimodalSpec_ : multimodalSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.modelPromptSpec_ = + modelPromptSpecBuilder_ == null + ? modelPromptSpec_ + : modelPromptSpecBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.modelSpec_ = modelSpecBuilder_ == null ? modelSpec_ : modelSpecBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.useSemanticChunks_ = useSemanticChunks_; + } + result.bitField0_ |= to_bitField0_; } - if (numPreviousSegments_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, numPreviousSegments_); + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec) + other); + } else { + super.mergeFrom(other); + return this; + } } - if (numNextSegments_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, numNextSegments_); + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .getDefaultInstance()) return this; + if (other.getSummaryResultCount() != 0) { + setSummaryResultCount(other.getSummaryResultCount()); + } + if (other.getIncludeCitations() != false) { + setIncludeCitations(other.getIncludeCitations()); + } + if (other.getIgnoreAdversarialQuery() != false) { + setIgnoreAdversarialQuery(other.getIgnoreAdversarialQuery()); + } + if (other.getIgnoreNonSummarySeekingQuery() != false) { + setIgnoreNonSummarySeekingQuery(other.getIgnoreNonSummarySeekingQuery()); + } + if (other.getIgnoreLowRelevantContent() != false) { + setIgnoreLowRelevantContent(other.getIgnoreLowRelevantContent()); + } + if (other.getIgnoreJailBreakingQuery() != false) { + setIgnoreJailBreakingQuery(other.getIgnoreJailBreakingQuery()); + } + if (other.hasMultimodalSpec()) { + mergeMultimodalSpec(other.getMultimodalSpec()); + } + if (other.hasModelPromptSpec()) { + mergeModelPromptSpec(other.getModelPromptSpec()); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasModelSpec()) { + mergeModelSpec(other.getModelSpec()); + } + if (other.getUseSemanticChunks() != false) { + setUseSemanticChunks(other.getUseSemanticChunks()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } - 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.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec) - obj; - - if (getMaxExtractiveAnswerCount() != other.getMaxExtractiveAnswerCount()) return false; - if (getMaxExtractiveSegmentCount() != other.getMaxExtractiveSegmentCount()) return false; - if (getReturnExtractiveSegmentScore() != other.getReturnExtractiveSegmentScore()) - return false; - if (getNumPreviousSegments() != other.getNumPreviousSegments()) return false; - if (getNumNextSegments() != other.getNumNextSegments()) 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) + MAX_EXTRACTIVE_ANSWER_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getMaxExtractiveAnswerCount(); - hash = (37 * hash) + MAX_EXTRACTIVE_SEGMENT_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getMaxExtractiveSegmentCount(); - hash = (37 * hash) + RETURN_EXTRACTIVE_SEGMENT_SCORE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getReturnExtractiveSegmentScore()); - hash = (37 * hash) + NUM_PREVIOUS_SEGMENTS_FIELD_NUMBER; - hash = (53 * hash) + getNumPreviousSegments(); - hash = (37 * hash) + NUM_NEXT_SEGMENTS_FIELD_NUMBER; - hash = (53 * hash) + getNumNextSegments(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - 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.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseFrom( - 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.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
            -       * A specification for configuring the extractive content in a search
            -       * response.
            -       * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.Builder.class); - } - - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - maxExtractiveAnswerCount_ = 0; - maxExtractiveSegmentCount_ = 0; - returnExtractiveSegmentScore_ = false; - numPreviousSegments_ = 0; - numNextSegments_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.maxExtractiveAnswerCount_ = maxExtractiveAnswerCount_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.maxExtractiveSegmentCount_ = maxExtractiveSegmentCount_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.returnExtractiveSegmentScore_ = returnExtractiveSegmentScore_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.numPreviousSegments_ = numPreviousSegments_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.numNextSegments_ = numNextSegments_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.getDefaultInstance()) return this; - if (other.getMaxExtractiveAnswerCount() != 0) { - setMaxExtractiveAnswerCount(other.getMaxExtractiveAnswerCount()); - } - if (other.getMaxExtractiveSegmentCount() != 0) { - setMaxExtractiveSegmentCount(other.getMaxExtractiveSegmentCount()); - } - if (other.getReturnExtractiveSegmentScore() != false) { - setReturnExtractiveSegmentScore(other.getReturnExtractiveSegmentScore()); - } - if (other.getNumPreviousSegments() != 0) { - setNumPreviousSegments(other.getNumPreviousSegments()); - } - if (other.getNumNextSegments() != 0) { - setNumNextSegments(other.getNumNextSegments()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { + @java.lang.Override + public final boolean isInitialized() { return true; } @@ -21178,34 +20593,73 @@ public Builder mergeFrom( break; case 8: { - maxExtractiveAnswerCount_ = input.readInt32(); + summaryResultCount_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { - maxExtractiveSegmentCount_ = input.readInt32(); + includeCitations_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { - returnExtractiveSegmentScore_ = input.readBool(); + ignoreAdversarialQuery_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { - numPreviousSegments_ = input.readInt32(); + ignoreNonSummarySeekingQuery_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 - case 40: + case 42: { - numNextSegments_ = input.readInt32(); + input.readMessage( + internalGetModelPromptSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 42 + case 50: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetModelSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 58 + case 64: + { + useSemanticChunks_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 64 + case 72: + { + ignoreLowRelevantContent_ = input.readBool(); bitField0_ |= 0x00000010; break; - } // case 40 + } // case 72 + case 80: + { + ignoreJailBreakingQuery_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 80 + case 90: + { + input.readMessage( + internalGetMultimodalSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 90 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -21225,63 +20679,55 @@ public Builder mergeFrom( private int bitField0_; - private int maxExtractiveAnswerCount_; + private int summaryResultCount_; /** * * *
            -         * The maximum number of extractive answers returned in each search
            -         * result.
            -         *
            -         * An extractive answer is a verbatim answer extracted from the original
            -         * document, which provides a precise and contextually relevant answer to
            -         * the search query.
            -         *
            -         * If the number of matching answers is less than the
            -         * `max_extractive_answer_count`, return all of the answers. Otherwise,
            -         * return the `max_extractive_answer_count`.
            +         * The number of top results to generate the summary from. If the number
            +         * of results returned is less than `summaryResultCount`, the summary is
            +         * generated from all of the results.
                      *
            -         * At most five answers are returned for each
            -         * [SearchResult][google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult].
            +         * At most 10 results for documents mode, or 50 for chunks mode, can be
            +         * used to generate a summary. The chunks mode is used when
            +         * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            +         * is set to
            +         * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
                      * 
            * - * int32 max_extractive_answer_count = 1; + * int32 summary_result_count = 1; * - * @return The maxExtractiveAnswerCount. + * @return The summaryResultCount. */ @java.lang.Override - public int getMaxExtractiveAnswerCount() { - return maxExtractiveAnswerCount_; + public int getSummaryResultCount() { + return summaryResultCount_; } /** * * *
            -         * The maximum number of extractive answers returned in each search
            -         * result.
            -         *
            -         * An extractive answer is a verbatim answer extracted from the original
            -         * document, which provides a precise and contextually relevant answer to
            -         * the search query.
            -         *
            -         * If the number of matching answers is less than the
            -         * `max_extractive_answer_count`, return all of the answers. Otherwise,
            -         * return the `max_extractive_answer_count`.
            +         * The number of top results to generate the summary from. If the number
            +         * of results returned is less than `summaryResultCount`, the summary is
            +         * generated from all of the results.
                      *
            -         * At most five answers are returned for each
            -         * [SearchResult][google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult].
            +         * At most 10 results for documents mode, or 50 for chunks mode, can be
            +         * used to generate a summary. The chunks mode is used when
            +         * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            +         * is set to
            +         * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
                      * 
            * - * int32 max_extractive_answer_count = 1; + * int32 summary_result_count = 1; * - * @param value The maxExtractiveAnswerCount to set. + * @param value The summaryResultCount to set. * @return This builder for chaining. */ - public Builder setMaxExtractiveAnswerCount(int value) { + public Builder setSummaryResultCount(int value) { - maxExtractiveAnswerCount_ = value; + summaryResultCount_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -21291,97 +20737,93 @@ public Builder setMaxExtractiveAnswerCount(int value) { * * *
            -         * The maximum number of extractive answers returned in each search
            -         * result.
            -         *
            -         * An extractive answer is a verbatim answer extracted from the original
            -         * document, which provides a precise and contextually relevant answer to
            -         * the search query.
            -         *
            -         * If the number of matching answers is less than the
            -         * `max_extractive_answer_count`, return all of the answers. Otherwise,
            -         * return the `max_extractive_answer_count`.
            +         * The number of top results to generate the summary from. If the number
            +         * of results returned is less than `summaryResultCount`, the summary is
            +         * generated from all of the results.
                      *
            -         * At most five answers are returned for each
            -         * [SearchResult][google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult].
            +         * At most 10 results for documents mode, or 50 for chunks mode, can be
            +         * used to generate a summary. The chunks mode is used when
            +         * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            +         * is set to
            +         * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS].
                      * 
            * - * int32 max_extractive_answer_count = 1; + * int32 summary_result_count = 1; * * @return This builder for chaining. */ - public Builder clearMaxExtractiveAnswerCount() { + public Builder clearSummaryResultCount() { bitField0_ = (bitField0_ & ~0x00000001); - maxExtractiveAnswerCount_ = 0; + summaryResultCount_ = 0; onChanged(); return this; } - private int maxExtractiveSegmentCount_; + private boolean includeCitations_; /** * * *
            -         * The max number of extractive segments returned in each search result.
            -         * Only applied if the
            -         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] is set to
            -         * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.CONTENT_REQUIRED]
            -         * or
            -         * [DataStore.solution_types][google.cloud.discoveryengine.v1beta.DataStore.solution_types]
            -         * is
            -         * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +         * Specifies whether to include citations in the summary. The default
            +         * value is `false`.
                      *
            -         * An extractive segment is a text segment extracted from the original
            -         * document that is relevant to the search query, and, in general, more
            -         * verbose than an extractive answer. The segment could then be used as
            -         * input for LLMs to generate summaries and answers.
            +         * When this field is set to `true`, summaries include in-line citation
            +         * numbers.
                      *
            -         * If the number of matching segments is less than
            -         * `max_extractive_segment_count`, return all of the segments. Otherwise,
            -         * return the `max_extractive_segment_count`.
            +         * Example summary including citations:
            +         *
            +         * BigQuery is Google Cloud's fully managed and completely serverless
            +         * enterprise data warehouse [1]. BigQuery supports all data types, works
            +         * across clouds, and has built-in machine learning and business
            +         * intelligence, all within a unified platform [2, 3].
            +         *
            +         * The citation numbers refer to the returned search results and are
            +         * 1-indexed. For example, [1] means that the sentence is attributed to
            +         * the first search result. [2, 3] means that the sentence is attributed
            +         * to both the second and third search results.
                      * 
            * - * int32 max_extractive_segment_count = 2; + * bool include_citations = 2; * - * @return The maxExtractiveSegmentCount. + * @return The includeCitations. */ @java.lang.Override - public int getMaxExtractiveSegmentCount() { - return maxExtractiveSegmentCount_; + public boolean getIncludeCitations() { + return includeCitations_; } /** * * *
            -         * The max number of extractive segments returned in each search result.
            -         * Only applied if the
            -         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] is set to
            -         * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.CONTENT_REQUIRED]
            -         * or
            -         * [DataStore.solution_types][google.cloud.discoveryengine.v1beta.DataStore.solution_types]
            -         * is
            -         * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +         * Specifies whether to include citations in the summary. The default
            +         * value is `false`.
                      *
            -         * An extractive segment is a text segment extracted from the original
            -         * document that is relevant to the search query, and, in general, more
            -         * verbose than an extractive answer. The segment could then be used as
            -         * input for LLMs to generate summaries and answers.
            +         * When this field is set to `true`, summaries include in-line citation
            +         * numbers.
                      *
            -         * If the number of matching segments is less than
            -         * `max_extractive_segment_count`, return all of the segments. Otherwise,
            -         * return the `max_extractive_segment_count`.
            -         * 
            + * Example summary including citations: * - * int32 max_extractive_segment_count = 2; + * BigQuery is Google Cloud's fully managed and completely serverless + * enterprise data warehouse [1]. BigQuery supports all data types, works + * across clouds, and has built-in machine learning and business + * intelligence, all within a unified platform [2, 3]. * - * @param value The maxExtractiveSegmentCount to set. - * @return This builder for chaining. - */ - public Builder setMaxExtractiveSegmentCount(int value) { + * The citation numbers refer to the returned search results and are + * 1-indexed. For example, [1] means that the sentence is attributed to + * the first search result. [2, 3] means that the sentence is attributed + * to both the second and third search results. + *
            + * + * bool include_citations = 2; + * + * @param value The includeCitations to set. + * @return This builder for chaining. + */ + public Builder setIncludeCitations(boolean value) { - maxExtractiveSegmentCount_ = value; + includeCitations_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -21391,75 +20833,87 @@ public Builder setMaxExtractiveSegmentCount(int value) { * * *
            -         * The max number of extractive segments returned in each search result.
            -         * Only applied if the
            -         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] is set to
            -         * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.CONTENT_REQUIRED]
            -         * or
            -         * [DataStore.solution_types][google.cloud.discoveryengine.v1beta.DataStore.solution_types]
            -         * is
            -         * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +         * Specifies whether to include citations in the summary. The default
            +         * value is `false`.
                      *
            -         * An extractive segment is a text segment extracted from the original
            -         * document that is relevant to the search query, and, in general, more
            -         * verbose than an extractive answer. The segment could then be used as
            -         * input for LLMs to generate summaries and answers.
            +         * When this field is set to `true`, summaries include in-line citation
            +         * numbers.
                      *
            -         * If the number of matching segments is less than
            -         * `max_extractive_segment_count`, return all of the segments. Otherwise,
            -         * return the `max_extractive_segment_count`.
            +         * Example summary including citations:
            +         *
            +         * BigQuery is Google Cloud's fully managed and completely serverless
            +         * enterprise data warehouse [1]. BigQuery supports all data types, works
            +         * across clouds, and has built-in machine learning and business
            +         * intelligence, all within a unified platform [2, 3].
            +         *
            +         * The citation numbers refer to the returned search results and are
            +         * 1-indexed. For example, [1] means that the sentence is attributed to
            +         * the first search result. [2, 3] means that the sentence is attributed
            +         * to both the second and third search results.
                      * 
            * - * int32 max_extractive_segment_count = 2; + * bool include_citations = 2; * * @return This builder for chaining. */ - public Builder clearMaxExtractiveSegmentCount() { + public Builder clearIncludeCitations() { bitField0_ = (bitField0_ & ~0x00000002); - maxExtractiveSegmentCount_ = 0; + includeCitations_ = false; onChanged(); return this; } - private boolean returnExtractiveSegmentScore_; + private boolean ignoreAdversarialQuery_; /** * * *
            -         * Specifies whether to return the confidence score from the extractive
            -         * segments in each search result. This feature is available only for new
            -         * or allowlisted data stores. To allowlist your data store,
            -         * contact your Customer Engineer. The default value is `false`.
            +         * Specifies whether to filter out adversarial queries. The default value
            +         * is `false`.
            +         *
            +         * Google employs search-query classification to detect adversarial
            +         * queries. No summary is returned if the search query is classified as an
            +         * adversarial query. For example, a user might ask a question regarding
            +         * negative comments about the company or submit a query designed to
            +         * generate unsafe, policy-violating output. If this field is set to
            +         * `true`, we skip generating summaries for adversarial queries and return
            +         * fallback messages instead.
                      * 
            * - * bool return_extractive_segment_score = 3; + * bool ignore_adversarial_query = 3; * - * @return The returnExtractiveSegmentScore. + * @return The ignoreAdversarialQuery. */ @java.lang.Override - public boolean getReturnExtractiveSegmentScore() { - return returnExtractiveSegmentScore_; + public boolean getIgnoreAdversarialQuery() { + return ignoreAdversarialQuery_; } /** * * *
            -         * Specifies whether to return the confidence score from the extractive
            -         * segments in each search result. This feature is available only for new
            -         * or allowlisted data stores. To allowlist your data store,
            -         * contact your Customer Engineer. The default value is `false`.
            +         * Specifies whether to filter out adversarial queries. The default value
            +         * is `false`.
            +         *
            +         * Google employs search-query classification to detect adversarial
            +         * queries. No summary is returned if the search query is classified as an
            +         * adversarial query. For example, a user might ask a question regarding
            +         * negative comments about the company or submit a query designed to
            +         * generate unsafe, policy-violating output. If this field is set to
            +         * `true`, we skip generating summaries for adversarial queries and return
            +         * fallback messages instead.
                      * 
            * - * bool return_extractive_segment_score = 3; + * bool ignore_adversarial_query = 3; * - * @param value The returnExtractiveSegmentScore to set. + * @param value The ignoreAdversarialQuery to set. * @return This builder for chaining. */ - public Builder setReturnExtractiveSegmentScore(boolean value) { + public Builder setIgnoreAdversarialQuery(boolean value) { - returnExtractiveSegmentScore_ = value; + ignoreAdversarialQuery_ = value; bitField0_ |= 0x00000004; onChanged(); return this; @@ -21469,62 +20923,82 @@ public Builder setReturnExtractiveSegmentScore(boolean value) { * * *
            -         * Specifies whether to return the confidence score from the extractive
            -         * segments in each search result. This feature is available only for new
            -         * or allowlisted data stores. To allowlist your data store,
            -         * contact your Customer Engineer. The default value is `false`.
            +         * Specifies whether to filter out adversarial queries. The default value
            +         * is `false`.
            +         *
            +         * Google employs search-query classification to detect adversarial
            +         * queries. No summary is returned if the search query is classified as an
            +         * adversarial query. For example, a user might ask a question regarding
            +         * negative comments about the company or submit a query designed to
            +         * generate unsafe, policy-violating output. If this field is set to
            +         * `true`, we skip generating summaries for adversarial queries and return
            +         * fallback messages instead.
                      * 
            * - * bool return_extractive_segment_score = 3; + * bool ignore_adversarial_query = 3; * * @return This builder for chaining. */ - public Builder clearReturnExtractiveSegmentScore() { + public Builder clearIgnoreAdversarialQuery() { bitField0_ = (bitField0_ & ~0x00000004); - returnExtractiveSegmentScore_ = false; + ignoreAdversarialQuery_ = false; onChanged(); return this; } - private int numPreviousSegments_; + private boolean ignoreNonSummarySeekingQuery_; /** * * *
            -         * Specifies whether to also include the adjacent from each selected
            -         * segments.
            -         * Return at most `num_previous_segments` segments before each selected
            -         * segments.
            +         * Specifies whether to filter out queries that are not summary-seeking.
            +         * The default value is `false`.
            +         *
            +         * Google employs search-query classification to detect summary-seeking
            +         * queries. No summary is returned if the search query is classified as a
            +         * non-summary seeking query. For example, `why is the sky blue` and `Who
            +         * is the best soccer player in the world?` are summary-seeking queries,
            +         * but `SFO airport` and `world cup 2026` are not. They are most likely
            +         * navigational queries. If this field is set to `true`, we skip
            +         * generating summaries for non-summary seeking queries and return
            +         * fallback messages instead.
                      * 
            * - * int32 num_previous_segments = 4; + * bool ignore_non_summary_seeking_query = 4; * - * @return The numPreviousSegments. + * @return The ignoreNonSummarySeekingQuery. */ @java.lang.Override - public int getNumPreviousSegments() { - return numPreviousSegments_; + public boolean getIgnoreNonSummarySeekingQuery() { + return ignoreNonSummarySeekingQuery_; } /** * * *
            -         * Specifies whether to also include the adjacent from each selected
            -         * segments.
            -         * Return at most `num_previous_segments` segments before each selected
            -         * segments.
            +         * Specifies whether to filter out queries that are not summary-seeking.
            +         * The default value is `false`.
            +         *
            +         * Google employs search-query classification to detect summary-seeking
            +         * queries. No summary is returned if the search query is classified as a
            +         * non-summary seeking query. For example, `why is the sky blue` and `Who
            +         * is the best soccer player in the world?` are summary-seeking queries,
            +         * but `SFO airport` and `world cup 2026` are not. They are most likely
            +         * navigational queries. If this field is set to `true`, we skip
            +         * generating summaries for non-summary seeking queries and return
            +         * fallback messages instead.
                      * 
            * - * int32 num_previous_segments = 4; + * bool ignore_non_summary_seeking_query = 4; * - * @param value The numPreviousSegments to set. + * @param value The ignoreNonSummarySeekingQuery to set. * @return This builder for chaining. */ - public Builder setNumPreviousSegments(int value) { + public Builder setIgnoreNonSummarySeekingQuery(boolean value) { - numPreviousSegments_ = value; + ignoreNonSummarySeekingQuery_ = value; bitField0_ |= 0x00000008; onChanged(); return this; @@ -21534,58 +21008,73 @@ public Builder setNumPreviousSegments(int value) { * * *
            -         * Specifies whether to also include the adjacent from each selected
            -         * segments.
            -         * Return at most `num_previous_segments` segments before each selected
            -         * segments.
            +         * Specifies whether to filter out queries that are not summary-seeking.
            +         * The default value is `false`.
            +         *
            +         * Google employs search-query classification to detect summary-seeking
            +         * queries. No summary is returned if the search query is classified as a
            +         * non-summary seeking query. For example, `why is the sky blue` and `Who
            +         * is the best soccer player in the world?` are summary-seeking queries,
            +         * but `SFO airport` and `world cup 2026` are not. They are most likely
            +         * navigational queries. If this field is set to `true`, we skip
            +         * generating summaries for non-summary seeking queries and return
            +         * fallback messages instead.
                      * 
            * - * int32 num_previous_segments = 4; + * bool ignore_non_summary_seeking_query = 4; * * @return This builder for chaining. */ - public Builder clearNumPreviousSegments() { + public Builder clearIgnoreNonSummarySeekingQuery() { bitField0_ = (bitField0_ & ~0x00000008); - numPreviousSegments_ = 0; + ignoreNonSummarySeekingQuery_ = false; onChanged(); return this; } - private int numNextSegments_; + private boolean ignoreLowRelevantContent_; /** * * *
            -         * Return at most `num_next_segments` segments after each selected
            -         * segments.
            +         * Specifies whether to filter out queries that have low relevance. The
            +         * default value is `false`.
            +         *
            +         * If this field is set to `false`, all search results are used regardless
            +         * of relevance to generate answers. If set to `true`, only queries with
            +         * high relevance search results will generate answers.
                      * 
            * - * int32 num_next_segments = 5; + * bool ignore_low_relevant_content = 9; * - * @return The numNextSegments. + * @return The ignoreLowRelevantContent. */ @java.lang.Override - public int getNumNextSegments() { - return numNextSegments_; + public boolean getIgnoreLowRelevantContent() { + return ignoreLowRelevantContent_; } /** * * *
            -         * Return at most `num_next_segments` segments after each selected
            -         * segments.
            +         * Specifies whether to filter out queries that have low relevance. The
            +         * default value is `false`.
            +         *
            +         * If this field is set to `false`, all search results are used regardless
            +         * of relevance to generate answers. If set to `true`, only queries with
            +         * high relevance search results will generate answers.
                      * 
            * - * int32 num_next_segments = 5; + * bool ignore_low_relevant_content = 9; * - * @param value The numNextSegments to set. + * @param value The ignoreLowRelevantContent to set. * @return This builder for chaining. */ - public Builder setNumNextSegments(int value) { + public Builder setIgnoreLowRelevantContent(boolean value) { - numNextSegments_ = value; + ignoreLowRelevantContent_ = value; bitField0_ |= 0x00000010; onChanged(); return this; @@ -21595,693 +21084,438 @@ public Builder setNumNextSegments(int value) { * * *
            -         * Return at most `num_next_segments` segments after each selected
            -         * segments.
            +         * Specifies whether to filter out queries that have low relevance. The
            +         * default value is `false`.
            +         *
            +         * If this field is set to `false`, all search results are used regardless
            +         * of relevance to generate answers. If set to `true`, only queries with
            +         * high relevance search results will generate answers.
                      * 
            * - * int32 num_next_segments = 5; + * bool ignore_low_relevant_content = 9; * * @return This builder for chaining. */ - public Builder clearNumNextSegments() { + public Builder clearIgnoreLowRelevantContent() { bitField0_ = (bitField0_ & ~0x00000010); - numNextSegments_ = 0; + ignoreLowRelevantContent_ = false; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) - } + private boolean ignoreJailBreakingQuery_; - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - DEFAULT_INSTANCE; + /** + * + * + *
            +         * 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_; + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec(); - } + /** + * + * + *
            +         * 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) { - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + ignoreJailBreakingQuery_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExtractiveContentSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + /** + * + * + *
            +         * 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; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec + multimodalSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpecOrBuilder> + multimodalSpecBuilder_; - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * + * + *
            +         * Optional. Multimodal specification.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec multimodal_spec = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the multimodalSpec field is set. + */ + public boolean hasMultimodalSpec() { + return ((bitField0_ & 0x00000040) != 0); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + /** + * + * + *
            +         * Optional. Multimodal specification.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec multimodal_spec = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The multimodalSpec. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec + getMultimodalSpec() { + if (multimodalSpecBuilder_ == null) { + return multimodalSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.MultiModalSpec.getDefaultInstance() + : multimodalSpec_; + } else { + return multimodalSpecBuilder_.getMessage(); + } + } - public interface ChunkSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
            +         * Optional. Multimodal specification.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec multimodal_spec = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultimodalSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec + value) { + if (multimodalSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + multimodalSpec_ = value; + } else { + multimodalSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } - /** - * - * - *
            -       * The number of previous chunks to be returned of the current chunk. The
            -       * maximum allowed value is 3.
            -       * If not specified, no previous chunks will be returned.
            -       * 
            - * - * int32 num_previous_chunks = 1; - * - * @return The numPreviousChunks. - */ - int getNumPreviousChunks(); + /** + * + * + *
            +         * Optional. Multimodal specification.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec multimodal_spec = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMultimodalSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec.Builder + builderForValue) { + if (multimodalSpecBuilder_ == null) { + multimodalSpec_ = builderForValue.build(); + } else { + multimodalSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } - /** - * - * - *
            -       * The number of next chunks to be returned of the current chunk. The
            -       * maximum allowed value is 3.
            -       * If not specified, no next chunks will be returned.
            -       * 
            - * - * int32 num_next_chunks = 2; - * - * @return The numNextChunks. - */ - int getNumNextChunks(); - } - - /** - * - * - *
            -     * Specifies the chunk spec to be returned from the search response.
            -     * Only available if the
            -     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            -     * is set to
            -     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            -     * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec} - */ - public static final class ChunkSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) - ChunkSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "ChunkSpec"); - } - - // Use ChunkSpec.newBuilder() to construct. - private ChunkSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ChunkSpec() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - .class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - .Builder.class); - } - - public static final int NUM_PREVIOUS_CHUNKS_FIELD_NUMBER = 1; - private int numPreviousChunks_ = 0; - - /** - * - * - *
            -       * The number of previous chunks to be returned of the current chunk. The
            -       * maximum allowed value is 3.
            -       * If not specified, no previous chunks will be returned.
            -       * 
            - * - * int32 num_previous_chunks = 1; - * - * @return The numPreviousChunks. - */ - @java.lang.Override - public int getNumPreviousChunks() { - return numPreviousChunks_; - } - - public static final int NUM_NEXT_CHUNKS_FIELD_NUMBER = 2; - private int numNextChunks_ = 0; - - /** - * - * - *
            -       * The number of next chunks to be returned of the current chunk. The
            -       * maximum allowed value is 3.
            -       * If not specified, no next chunks will be returned.
            -       * 
            - * - * int32 num_next_chunks = 2; - * - * @return The numNextChunks. - */ - @java.lang.Override - public int getNumNextChunks() { - return numNextChunks_; - } - - 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 (numPreviousChunks_ != 0) { - output.writeInt32(1, numPreviousChunks_); - } - if (numNextChunks_ != 0) { - output.writeInt32(2, numNextChunks_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (numPreviousChunks_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, numPreviousChunks_); - } - if (numNextChunks_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, numNextChunks_); - } - 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.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) obj; - - if (getNumPreviousChunks() != other.getNumPreviousChunks()) return false; - if (getNumNextChunks() != other.getNumNextChunks()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NUM_PREVIOUS_CHUNKS_FIELD_NUMBER; - hash = (53 * hash) + getNumPreviousChunks(); - hash = (37 * hash) + NUM_NEXT_CHUNKS_FIELD_NUMBER; - hash = (53 * hash) + getNumNextChunks(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpec - 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.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpec - parseFrom( - 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.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpec - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpec - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpec - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
            -       * Specifies the chunk spec to be returned from the search response.
            -       * Only available if the
            -       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            -       * is set to
            -       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            -       * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - .class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - .Builder.class); - } - - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - numPreviousChunks_ = 0; - numNextChunks_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.numPreviousChunks_ = numPreviousChunks_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.numNextChunks_ = numNextChunks_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - .getDefaultInstance()) return this; - if (other.getNumPreviousChunks() != 0) { - setNumPreviousChunks(other.getNumPreviousChunks()); - } - if (other.getNumNextChunks() != 0) { - setNumNextChunks(other.getNumNextChunks()); - } - 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: - { - numPreviousChunks_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - numNextChunks_ = 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 numPreviousChunks_; + /** + * + * + *
            +         * Optional. Multimodal specification.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec multimodal_spec = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMultimodalSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec + value) { + if (multimodalSpecBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && multimodalSpec_ != null + && multimodalSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.MultiModalSpec.getDefaultInstance()) { + getMultimodalSpecBuilder().mergeFrom(value); + } else { + multimodalSpec_ = value; + } + } else { + multimodalSpecBuilder_.mergeFrom(value); + } + if (multimodalSpec_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } /** * * *
            -         * The number of previous chunks to be returned of the current chunk. The
            -         * maximum allowed value is 3.
            -         * If not specified, no previous chunks will be returned.
            +         * Optional. Multimodal specification.
                      * 
            * - * int32 num_previous_chunks = 1; - * - * @return The numPreviousChunks. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec multimodal_spec = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - @java.lang.Override - public int getNumPreviousChunks() { - return numPreviousChunks_; + public Builder clearMultimodalSpec() { + bitField0_ = (bitField0_ & ~0x00000040); + multimodalSpec_ = null; + if (multimodalSpecBuilder_ != null) { + multimodalSpecBuilder_.dispose(); + multimodalSpecBuilder_ = null; + } + onChanged(); + return this; } /** * * *
            -         * The number of previous chunks to be returned of the current chunk. The
            -         * maximum allowed value is 3.
            -         * If not specified, no previous chunks will be returned.
            +         * Optional. Multimodal specification.
                      * 
            * - * int32 num_previous_chunks = 1; - * - * @param value The numPreviousChunks to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec multimodal_spec = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setNumPreviousChunks(int value) { - - numPreviousChunks_ = value; - bitField0_ |= 0x00000001; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec.Builder + getMultimodalSpecBuilder() { + bitField0_ |= 0x00000040; onChanged(); - return this; + return internalGetMultimodalSpecFieldBuilder().getBuilder(); } /** * * *
            -         * The number of previous chunks to be returned of the current chunk. The
            -         * maximum allowed value is 3.
            -         * If not specified, no previous chunks will be returned.
            +         * Optional. Multimodal specification.
                      * 
            * - * int32 num_previous_chunks = 1; - * - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec multimodal_spec = 11 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearNumPreviousChunks() { - bitField0_ = (bitField0_ & ~0x00000001); - numPreviousChunks_ = 0; - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpecOrBuilder + getMultimodalSpecOrBuilder() { + if (multimodalSpecBuilder_ != null) { + return multimodalSpecBuilder_.getMessageOrBuilder(); + } else { + return multimodalSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.MultiModalSpec.getDefaultInstance() + : multimodalSpec_; + } } - private int numNextChunks_; - /** * * *
            -         * The number of next chunks to be returned of the current chunk. The
            -         * maximum allowed value is 3.
            -         * If not specified, no next chunks will be returned.
            +         * Optional. Multimodal specification.
                      * 
            * - * int32 num_next_chunks = 2; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec multimodal_spec = 11 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .MultiModalSpecOrBuilder> + internalGetMultimodalSpecFieldBuilder() { + if (multimodalSpecBuilder_ == null) { + multimodalSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.MultiModalSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.MultiModalSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.MultiModalSpecOrBuilder>( + getMultimodalSpec(), getParentForChildren(), isClean()); + multimodalSpec_ = null; + } + return multimodalSpecBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelPromptSpec + modelPromptSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelPromptSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelPromptSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelPromptSpecOrBuilder> + modelPromptSpecBuilder_; + + /** * - * @return The numNextChunks. + * + *
            +         * If specified, the spec will be used to modify the prompt provided to
            +         * the LLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; + * + * + * @return Whether the modelPromptSpec field is set. */ - @java.lang.Override - public int getNumNextChunks() { - return numNextChunks_; + public boolean hasModelPromptSpec() { + return ((bitField0_ & 0x00000080) != 0); } /** * * *
            -         * The number of next chunks to be returned of the current chunk. The
            -         * maximum allowed value is 3.
            -         * If not specified, no next chunks will be returned.
            +         * If specified, the spec will be used to modify the prompt provided to
            +         * the LLM.
                      * 
            * - * int32 num_next_chunks = 2; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; + * * - * @param value The numNextChunks to set. - * @return This builder for chaining. + * @return The modelPromptSpec. */ - public Builder setNumNextChunks(int value) { + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelPromptSpec + getModelPromptSpec() { + if (modelPromptSpecBuilder_ == null) { + return modelPromptSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelPromptSpec.getDefaultInstance() + : modelPromptSpec_; + } else { + return modelPromptSpecBuilder_.getMessage(); + } + } - numNextChunks_ = value; - bitField0_ |= 0x00000002; + /** + * + * + *
            +         * If specified, the spec will be used to modify the prompt provided to
            +         * the LLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; + * + */ + public Builder setModelPromptSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelPromptSpec + value) { + if (modelPromptSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelPromptSpec_ = value; + } else { + modelPromptSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -22290,1761 +21524,2192 @@ public Builder setNumNextChunks(int value) { * * *
            -         * The number of next chunks to be returned of the current chunk. The
            -         * maximum allowed value is 3.
            -         * If not specified, no next chunks will be returned.
            +         * If specified, the spec will be used to modify the prompt provided to
            +         * the LLM.
                      * 
            * - * int32 num_next_chunks = 2; - * - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; + * */ - public Builder clearNumNextChunks() { - bitField0_ = (bitField0_ & ~0x00000002); - numNextChunks_ = 0; + public Builder setModelPromptSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelPromptSpec.Builder + builderForValue) { + if (modelPromptSpecBuilder_ == null) { + modelPromptSpec_ = builderForValue.build(); + } else { + modelPromptSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpec - DEFAULT_INSTANCE; + /** + * + * + *
            +         * If specified, the spec will be used to modify the prompt provided to
            +         * the LLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; + * + */ + public Builder mergeModelPromptSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelPromptSpec + value) { + if (modelPromptSpecBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && modelPromptSpec_ != null + && modelPromptSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelPromptSpec.getDefaultInstance()) { + getModelPromptSpecBuilder().mergeFrom(value); + } else { + modelPromptSpec_ = value; + } + } else { + modelPromptSpecBuilder_.mergeFrom(value); + } + if (modelPromptSpec_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec(); - } + /** + * + * + *
            +         * If specified, the spec will be used to modify the prompt provided to
            +         * the LLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; + * + */ + public Builder clearModelPromptSpec() { + bitField0_ = (bitField0_ & ~0x00000080); + modelPromptSpec_ = null; + if (modelPromptSpecBuilder_ != null) { + modelPromptSpecBuilder_.dispose(); + modelPromptSpecBuilder_ = null; + } + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpec - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
            +         * If specified, the spec will be used to modify the prompt provided to
            +         * the LLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelPromptSpec.Builder + getModelPromptSpecBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetModelPromptSpecFieldBuilder().getBuilder(); + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChunkSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + /** + * + * + *
            +         * If specified, the spec will be used to modify the prompt provided to
            +         * the LLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelPromptSpecOrBuilder + getModelPromptSpecOrBuilder() { + if (modelPromptSpecBuilder_ != null) { + return modelPromptSpecBuilder_.getMessageOrBuilder(); + } else { + return modelPromptSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelPromptSpec.getDefaultInstance() + : modelPromptSpec_; + } + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * + * + *
            +         * If specified, the spec will be used to modify the prompt provided to
            +         * the LLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelPromptSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelPromptSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelPromptSpecOrBuilder> + internalGetModelPromptSpecFieldBuilder() { + if (modelPromptSpecBuilder_ == null) { + modelPromptSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelPromptSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelPromptSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelPromptSpecOrBuilder>( + getModelPromptSpec(), getParentForChildren(), isClean()); + modelPromptSpec_ = null; + } + return modelPromptSpecBuilder_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private java.lang.Object languageCode_ = ""; - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + /** + * + * + *
            +         * Language code for Summary. Use language tags defined by
            +         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            +         * Note: This is an experimental feature.
            +         * 
            + * + * string language_code = 6; + * + * @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; + } + } - private int bitField0_; - public static final int SNIPPET_SPEC_FIELD_NUMBER = 1; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - snippetSpec_; + /** + * + * + *
            +         * Language code for Summary. Use language tags defined by
            +         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            +         * Note: This is an experimental feature.
            +         * 
            + * + * string language_code = 6; + * + * @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; + } + } - /** - * - * - *
            -     * If `snippetSpec` is not specified, snippets are not included in the
            -     * search response.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * - * @return Whether the snippetSpec field is set. - */ - @java.lang.Override - public boolean hasSnippetSpec() { - return ((bitField0_ & 0x00000001) != 0); - } + /** + * + * + *
            +         * Language code for Summary. Use language tags defined by
            +         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            +         * Note: This is an experimental feature.
            +         * 
            + * + * string language_code = 6; + * + * @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_ |= 0x00000100; + onChanged(); + return this; + } - /** - * - * - *
            -     * If `snippetSpec` is not specified, snippets are not included in the
            -     * search response.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * - * @return The snippetSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - getSnippetSpec() { - return snippetSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance() - : snippetSpec_; - } + /** + * + * + *
            +         * Language code for Summary. Use language tags defined by
            +         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            +         * Note: This is an experimental feature.
            +         * 
            + * + * string language_code = 6; + * + * @return This builder for chaining. + */ + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } - /** - * - * - *
            -     * If `snippetSpec` is not specified, snippets are not included in the
            -     * search response.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder - getSnippetSpecOrBuilder() { - return snippetSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance() - : snippetSpec_; - } + /** + * + * + *
            +         * Language code for Summary. Use language tags defined by
            +         * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
            +         * Note: This is an experimental feature.
            +         * 
            + * + * string language_code = 6; + * + * @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_ |= 0x00000100; + onChanged(); + return this; + } - public static final int SUMMARY_SPEC_FIELD_NUMBER = 2; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - summarySpec_; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec + modelSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpecOrBuilder> + modelSpecBuilder_; - /** - * - * - *
            -     * If `summarySpec` is not specified, summaries are not included in the
            -     * search response.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * - * @return Whether the summarySpec field is set. - */ - @java.lang.Override - public boolean hasSummarySpec() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
            -     * If `summarySpec` is not specified, summaries are not included in the
            -     * search response.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * - * @return The summarySpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - getSummarySpec() { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; - } - - /** - * - * - *
            -     * If `summarySpec` is not specified, summaries are not included in the
            -     * search response.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder - getSummarySpecOrBuilder() { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; - } - - public static final int EXTRACTIVE_CONTENT_SPEC_FIELD_NUMBER = 3; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - extractiveContentSpec_; + /** + * + * + *
            +         * If specified, the spec will be used to modify the model specification
            +         * provided to the LLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; + * + * + * @return Whether the modelSpec field is set. + */ + public boolean hasModelSpec() { + return ((bitField0_ & 0x00000200) != 0); + } - /** - * - * - *
            -     * If there is no extractive_content_spec provided, there will be no
            -     * extractive answer in the search response.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * - * - * @return Whether the extractiveContentSpec field is set. - */ - @java.lang.Override - public boolean hasExtractiveContentSpec() { - return ((bitField0_ & 0x00000004) != 0); - } + /** + * + * + *
            +         * If specified, the spec will be used to modify the model specification
            +         * provided to the LLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; + * + * + * @return The modelSpec. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec + getModelSpec() { + if (modelSpecBuilder_ == null) { + return modelSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec.getDefaultInstance() + : modelSpec_; + } else { + return modelSpecBuilder_.getMessage(); + } + } - /** - * - * - *
            -     * If there is no extractive_content_spec provided, there will be no
            -     * extractive answer in the search response.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * - * - * @return The extractiveContentSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - getExtractiveContentSpec() { - return extractiveContentSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.getDefaultInstance() - : extractiveContentSpec_; - } + /** + * + * + *
            +         * If specified, the spec will be used to modify the model specification
            +         * provided to the LLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; + * + */ + public Builder setModelSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec + value) { + if (modelSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelSpec_ = value; + } else { + modelSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } - /** - * - * - *
            -     * If there is no extractive_content_spec provided, there will be no
            -     * extractive answer in the search response.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpecOrBuilder - getExtractiveContentSpecOrBuilder() { - return extractiveContentSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.getDefaultInstance() - : extractiveContentSpec_; - } + /** + * + * + *
            +         * If specified, the spec will be used to modify the model specification
            +         * provided to the LLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; + * + */ + public Builder setModelSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec.Builder + builderForValue) { + if (modelSpecBuilder_ == null) { + modelSpec_ = builderForValue.build(); + } else { + modelSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } - public static final int SEARCH_RESULT_MODE_FIELD_NUMBER = 4; - private int searchResultMode_ = 0; + /** + * + * + *
            +         * If specified, the spec will be used to modify the model specification
            +         * provided to the LLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; + * + */ + public Builder mergeModelSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec + value) { + if (modelSpecBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && modelSpec_ != null + && modelSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec.getDefaultInstance()) { + getModelSpecBuilder().mergeFrom(value); + } else { + modelSpec_ = value; + } + } else { + modelSpecBuilder_.mergeFrom(value); + } + if (modelSpec_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } - /** - * - * - *
            -     * Specifies the search result mode. If unspecified, the
            -     * search result mode defaults to `DOCUMENTS`.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; - * - * - * @return The enum numeric value on the wire for searchResultMode. - */ - @java.lang.Override - public int getSearchResultModeValue() { - return searchResultMode_; - } + /** + * + * + *
            +         * If specified, the spec will be used to modify the model specification
            +         * provided to the LLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; + * + */ + public Builder clearModelSpec() { + bitField0_ = (bitField0_ & ~0x00000200); + modelSpec_ = null; + if (modelSpecBuilder_ != null) { + modelSpecBuilder_.dispose(); + modelSpecBuilder_ = null; + } + onChanged(); + return this; + } - /** - * - * - *
            -     * Specifies the search result mode. If unspecified, the
            -     * search result mode defaults to `DOCUMENTS`.
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; - * - * - * @return The searchResultMode. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode - getSearchResultMode() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode - result = - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SearchResultMode.forNumber(searchResultMode_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode - .UNRECOGNIZED - : result; - } + /** + * + * + *
            +         * If specified, the spec will be used to modify the model specification
            +         * provided to the LLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec.Builder + getModelSpecBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetModelSpecFieldBuilder().getBuilder(); + } - public static final int CHUNK_SPEC_FIELD_NUMBER = 5; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - chunkSpec_; + /** + * + * + *
            +         * If specified, the spec will be used to modify the model specification
            +         * provided to the LLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpecOrBuilder + getModelSpecOrBuilder() { + if (modelSpecBuilder_ != null) { + return modelSpecBuilder_.getMessageOrBuilder(); + } else { + return modelSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec.getDefaultInstance() + : modelSpec_; + } + } - /** - * - * - *
            -     * Specifies the chunk spec to be returned from the search response.
            -     * Only available if the
            -     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            -     * is set to
            -     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; - * - * - * @return Whether the chunkSpec field is set. - */ - @java.lang.Override - public boolean hasChunkSpec() { - return ((bitField0_ & 0x00000008) != 0); - } + /** + * + * + *
            +         * If specified, the spec will be used to modify the model specification
            +         * provided to the LLM.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .ModelSpecOrBuilder> + internalGetModelSpecFieldBuilder() { + if (modelSpecBuilder_ == null) { + modelSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.ModelSpecOrBuilder>( + getModelSpec(), getParentForChildren(), isClean()); + modelSpec_ = null; + } + return modelSpecBuilder_; + } - /** - * - * - *
            -     * Specifies the chunk spec to be returned from the search response.
            -     * Only available if the
            -     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            -     * is set to
            -     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; - * - * - * @return The chunkSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - getChunkSpec() { - return chunkSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - .getDefaultInstance() - : chunkSpec_; - } + private boolean useSemanticChunks_; - /** - * - * - *
            -     * Specifies the chunk spec to be returned from the search response.
            -     * Only available if the
            -     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            -     * is set to
            -     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpecOrBuilder - getChunkSpecOrBuilder() { - return chunkSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - .getDefaultInstance() - : chunkSpec_; - } + /** + * + * + *
            +         * If true, answer will be generated from most relevant chunks from top
            +         * search results. This feature will improve summary quality.
            +         * Note that with this feature enabled, not all top search results
            +         * will be referenced and included in the reference list, so the citation
            +         * source index only points to the search results listed in the reference
            +         * list.
            +         * 
            + * + * bool use_semantic_chunks = 8; + * + * @return The useSemanticChunks. + */ + @java.lang.Override + public boolean getUseSemanticChunks() { + return useSemanticChunks_; + } - private byte memoizedIsInitialized = -1; + /** + * + * + *
            +         * If true, answer will be generated from most relevant chunks from top
            +         * search results. This feature will improve summary quality.
            +         * Note that with this feature enabled, not all top search results
            +         * will be referenced and included in the reference list, so the citation
            +         * source index only points to the search results listed in the reference
            +         * list.
            +         * 
            + * + * bool use_semantic_chunks = 8; + * + * @param value The useSemanticChunks to set. + * @return This builder for chaining. + */ + public Builder setUseSemanticChunks(boolean value) { - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + useSemanticChunks_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } - memoizedIsInitialized = 1; - return true; - } + /** + * + * + *
            +         * If true, answer will be generated from most relevant chunks from top
            +         * search results. This feature will improve summary quality.
            +         * Note that with this feature enabled, not all top search results
            +         * will be referenced and included in the reference list, so the citation
            +         * source index only points to the search results listed in the reference
            +         * list.
            +         * 
            + * + * bool use_semantic_chunks = 8; + * + * @return This builder for chaining. + */ + public Builder clearUseSemanticChunks() { + bitField0_ = (bitField0_ & ~0x00000400); + useSemanticChunks_ = false; + onChanged(); + return this; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getSnippetSpec()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getSummarySpec()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getExtractiveContentSpec()); - } - if (searchResultMode_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SearchResultMode.SEARCH_RESULT_MODE_UNSPECIFIED - .getNumber()) { - output.writeEnum(4, searchResultMode_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(5, getChunkSpec()); + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec) } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec + DEFAULT_INSTANCE; - size = 0; - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSnippetSpec()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSummarySpec()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExtractiveContentSpec()); - } - if (searchResultMode_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SearchResultMode.SEARCH_RESULT_MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, searchResultMode_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getChunkSpec()); + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec(); } - 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.v1beta.SearchRequest.ContentSearchSpec)) { - return super.equals(obj); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec + getDefaultInstance() { + return DEFAULT_INSTANCE; } - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) obj; - if (hasSnippetSpec() != other.hasSnippetSpec()) return false; - if (hasSnippetSpec()) { - if (!getSnippetSpec().equals(other.getSnippetSpec())) return false; - } - if (hasSummarySpec() != other.hasSummarySpec()) return false; - if (hasSummarySpec()) { - if (!getSummarySpec().equals(other.getSummarySpec())) return false; - } - if (hasExtractiveContentSpec() != other.hasExtractiveContentSpec()) return false; - if (hasExtractiveContentSpec()) { - if (!getExtractiveContentSpec().equals(other.getExtractiveContentSpec())) return false; - } - if (searchResultMode_ != other.searchResultMode_) return false; - if (hasChunkSpec() != other.hasChunkSpec()) return false; - if (hasChunkSpec()) { - if (!getChunkSpec().equals(other.getChunkSpec())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SummarySpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSnippetSpec()) { - hash = (37 * hash) + SNIPPET_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSnippetSpec().hashCode(); - } - if (hasSummarySpec()) { - hash = (37 * hash) + SUMMARY_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSummarySpec().hashCode(); - } - if (hasExtractiveContentSpec()) { - hash = (37 * hash) + EXTRACTIVE_CONTENT_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getExtractiveContentSpec().hashCode(); - } - hash = (37 * hash) + SEARCH_RESULT_MODE_FIELD_NUMBER; - hash = (53 * hash) + searchResultMode_; - if (hasChunkSpec()) { - hash = (37 * hash) + CHUNK_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getChunkSpec().hashCode(); + public static com.google.protobuf.Parser parser() { + return PARSER; } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec 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.v1beta.SearchRequest.ContentSearchSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( - 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.v1beta.SearchRequest.ContentSearchSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public interface ExtractiveContentSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + /** + * + * + *
            +       * The maximum number of extractive answers returned in each search
            +       * result.
            +       *
            +       * An extractive answer is a verbatim answer extracted from the original
            +       * document, which provides a precise and contextually relevant answer to
            +       * the search query.
            +       *
            +       * If the number of matching answers is less than the
            +       * `max_extractive_answer_count`, return all of the answers. Otherwise,
            +       * return the `max_extractive_answer_count`.
            +       *
            +       * At most five answers are returned for each
            +       * [SearchResult][google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult].
            +       * 
            + * + * int32 max_extractive_answer_count = 1; + * + * @return The maxExtractiveAnswerCount. + */ + int getMaxExtractiveAnswerCount(); - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
            +       * The max number of extractive segments returned in each search result.
            +       * Only applied if the
            +       * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] is set to
            +       * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.CONTENT_REQUIRED]
            +       * or
            +       * [DataStore.solution_types][google.cloud.discoveryengine.v1beta.DataStore.solution_types]
            +       * is
            +       * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +       *
            +       * An extractive segment is a text segment extracted from the original
            +       * document that is relevant to the search query, and, in general, more
            +       * verbose than an extractive answer. The segment could then be used as
            +       * input for LLMs to generate summaries and answers.
            +       *
            +       * If the number of matching segments is less than
            +       * `max_extractive_segment_count`, return all of the segments. Otherwise,
            +       * return the `max_extractive_segment_count`.
            +       * 
            + * + * int32 max_extractive_segment_count = 2; + * + * @return The maxExtractiveSegmentCount. + */ + int getMaxExtractiveSegmentCount(); - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + /** + * + * + *
            +       * Specifies whether to return the confidence score from the extractive
            +       * segments in each search result. This feature is available only for new
            +       * or allowlisted data stores. To allowlist your data store,
            +       * contact your Customer Engineer. The default value is `false`.
            +       * 
            + * + * bool return_extractive_segment_score = 3; + * + * @return The returnExtractiveSegmentScore. + */ + boolean getReturnExtractiveSegmentScore(); - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
            +       * Specifies whether to also include the adjacent from each selected
            +       * segments.
            +       * Return at most `num_previous_segments` segments before each selected
            +       * segments.
            +       * 
            + * + * int32 num_previous_segments = 4; + * + * @return The numPreviousSegments. + */ + int getNumPreviousSegments(); - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * + * + *
            +       * Return at most `num_next_segments` segments after each selected
            +       * segments.
            +       * 
            + * + * int32 num_next_segments = 5; + * + * @return The numNextSegments. + */ + int getNumNextSegments(); } /** * * *
            -     * A specification for configuring the behavior of content search.
            +     * A specification for configuring the extractive content in a search
            +     * response.
                  * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec} + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec} */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + public static final class ExtractiveContentSpec extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) + ExtractiveContentSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExtractiveContentSpec"); + } + + // Use ExtractiveContentSpec.newBuilder() to construct. + private ExtractiveContentSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExtractiveContentSpec() {} + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder - .class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.Builder.class); } - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public static final int MAX_EXTRACTIVE_ANSWER_COUNT_FIELD_NUMBER = 1; + private int maxExtractiveAnswerCount_ = 0; - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + /** + * + * + *
            +       * The maximum number of extractive answers returned in each search
            +       * result.
            +       *
            +       * An extractive answer is a verbatim answer extracted from the original
            +       * document, which provides a precise and contextually relevant answer to
            +       * the search query.
            +       *
            +       * If the number of matching answers is less than the
            +       * `max_extractive_answer_count`, return all of the answers. Otherwise,
            +       * return the `max_extractive_answer_count`.
            +       *
            +       * At most five answers are returned for each
            +       * [SearchResult][google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult].
            +       * 
            + * + * int32 max_extractive_answer_count = 1; + * + * @return The maxExtractiveAnswerCount. + */ + @java.lang.Override + public int getMaxExtractiveAnswerCount() { + return maxExtractiveAnswerCount_; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetSnippetSpecFieldBuilder(); - internalGetSummarySpecFieldBuilder(); - internalGetExtractiveContentSpecFieldBuilder(); - internalGetChunkSpecFieldBuilder(); - } - } + public static final int MAX_EXTRACTIVE_SEGMENT_COUNT_FIELD_NUMBER = 2; + private int maxExtractiveSegmentCount_ = 0; + /** + * + * + *
            +       * The max number of extractive segments returned in each search result.
            +       * Only applied if the
            +       * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] is set to
            +       * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.CONTENT_REQUIRED]
            +       * or
            +       * [DataStore.solution_types][google.cloud.discoveryengine.v1beta.DataStore.solution_types]
            +       * is
            +       * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +       *
            +       * An extractive segment is a text segment extracted from the original
            +       * document that is relevant to the search query, and, in general, more
            +       * verbose than an extractive answer. The segment could then be used as
            +       * input for LLMs to generate summaries and answers.
            +       *
            +       * If the number of matching segments is less than
            +       * `max_extractive_segment_count`, return all of the segments. Otherwise,
            +       * return the `max_extractive_segment_count`.
            +       * 
            + * + * int32 max_extractive_segment_count = 2; + * + * @return The maxExtractiveSegmentCount. + */ @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - snippetSpec_ = null; - if (snippetSpecBuilder_ != null) { - snippetSpecBuilder_.dispose(); - snippetSpecBuilder_ = null; - } - summarySpec_ = null; - if (summarySpecBuilder_ != null) { - summarySpecBuilder_.dispose(); - summarySpecBuilder_ = null; - } - extractiveContentSpec_ = null; - if (extractiveContentSpecBuilder_ != null) { - extractiveContentSpecBuilder_.dispose(); - extractiveContentSpecBuilder_ = null; - } - searchResultMode_ = 0; - chunkSpec_ = null; - if (chunkSpecBuilder_ != null) { - chunkSpecBuilder_.dispose(); - chunkSpecBuilder_ = null; - } - return this; + public int getMaxExtractiveSegmentCount() { + return maxExtractiveSegmentCount_; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor; - } + public static final int RETURN_EXTRACTIVE_SEGMENT_SCORE_FIELD_NUMBER = 3; + private boolean returnExtractiveSegmentScore_ = false; + /** + * + * + *
            +       * Specifies whether to return the confidence score from the extractive
            +       * segments in each search result. This feature is available only for new
            +       * or allowlisted data stores. To allowlist your data store,
            +       * contact your Customer Engineer. The default value is `false`.
            +       * 
            + * + * bool return_extractive_segment_score = 3; + * + * @return The returnExtractiveSegmentScore. + */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .getDefaultInstance(); + public boolean getReturnExtractiveSegmentScore() { + return returnExtractiveSegmentScore_; } + public static final int NUM_PREVIOUS_SEGMENTS_FIELD_NUMBER = 4; + private int numPreviousSegments_ = 0; + + /** + * + * + *
            +       * Specifies whether to also include the adjacent from each selected
            +       * segments.
            +       * Return at most `num_previous_segments` segments before each selected
            +       * segments.
            +       * 
            + * + * int32 num_previous_segments = 4; + * + * @return The numPreviousSegments. + */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public int getNumPreviousSegments() { + return numPreviousSegments_; } + public static final int NUM_NEXT_SEGMENTS_FIELD_NUMBER = 5; + private int numNextSegments_ = 0; + + /** + * + * + *
            +       * Return at most `num_next_segments` segments after each selected
            +       * segments.
            +       * 
            + * + * int32 num_next_segments = 5; + * + * @return The numNextSegments. + */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; + public int getNumNextSegments() { + return numNextSegments_; } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.snippetSpec_ = - snippetSpecBuilder_ == null ? snippetSpec_ : snippetSpecBuilder_.build(); - to_bitField0_ |= 0x00000001; + 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 (maxExtractiveAnswerCount_ != 0) { + output.writeInt32(1, maxExtractiveAnswerCount_); } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.summarySpec_ = - summarySpecBuilder_ == null ? summarySpec_ : summarySpecBuilder_.build(); - to_bitField0_ |= 0x00000002; + if (maxExtractiveSegmentCount_ != 0) { + output.writeInt32(2, maxExtractiveSegmentCount_); } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.extractiveContentSpec_ = - extractiveContentSpecBuilder_ == null - ? extractiveContentSpec_ - : extractiveContentSpecBuilder_.build(); - to_bitField0_ |= 0x00000004; + if (returnExtractiveSegmentScore_ != false) { + output.writeBool(3, returnExtractiveSegmentScore_); } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.searchResultMode_ = searchResultMode_; + if (numPreviousSegments_ != 0) { + output.writeInt32(4, numPreviousSegments_); } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.chunkSpec_ = chunkSpecBuilder_ == null ? chunkSpec_ : chunkSpecBuilder_.build(); - to_bitField0_ |= 0x00000008; + if (numNextSegments_ != 0) { + output.writeInt32(5, numNextSegments_); } - result.bitField0_ |= to_bitField0_; + getUnknownFields().writeTo(output); } @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .getDefaultInstance()) return this; - if (other.hasSnippetSpec()) { - mergeSnippetSpec(other.getSnippetSpec()); + size = 0; + if (maxExtractiveAnswerCount_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(1, maxExtractiveAnswerCount_); } - if (other.hasSummarySpec()) { - mergeSummarySpec(other.getSummarySpec()); + if (maxExtractiveSegmentCount_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxExtractiveSegmentCount_); } - if (other.hasExtractiveContentSpec()) { - mergeExtractiveContentSpec(other.getExtractiveContentSpec()); + if (returnExtractiveSegmentScore_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, returnExtractiveSegmentScore_); } - if (other.searchResultMode_ != 0) { - setSearchResultModeValue(other.getSearchResultModeValue()); + if (numPreviousSegments_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, numPreviousSegments_); } - if (other.hasChunkSpec()) { - mergeChunkSpec(other.getChunkSpec()); + if (numNextSegments_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, numNextSegments_); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public final boolean isInitialized() { + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec) + obj; + + if (getMaxExtractiveAnswerCount() != other.getMaxExtractiveAnswerCount()) return false; + if (getMaxExtractiveSegmentCount() != other.getMaxExtractiveSegmentCount()) return false; + if (getReturnExtractiveSegmentScore() != other.getReturnExtractiveSegmentScore()) + return false; + if (getNumPreviousSegments() != other.getNumPreviousSegments()) return false; + if (getNumNextSegments() != other.getNumNextSegments()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; 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(); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - internalGetSnippetSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetSummarySpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetExtractiveContentSpecFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - searchResultMode_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage( - internalGetChunkSpecFieldBuilder().getBuilder(), extensionRegistry); - 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; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MAX_EXTRACTIVE_ANSWER_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxExtractiveAnswerCount(); + hash = (37 * hash) + MAX_EXTRACTIVE_SEGMENT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxExtractiveSegmentCount(); + hash = (37 * hash) + RETURN_EXTRACTIVE_SEGMENT_SCORE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getReturnExtractiveSegmentScore()); + hash = (37 * hash) + NUM_PREVIOUS_SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getNumPreviousSegments(); + hash = (37 * hash) + NUM_NEXT_SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getNumNextSegments(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - private int bitField0_; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - snippetSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder> - snippetSpecBuilder_; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -       * If `snippetSpec` is not specified, snippets are not included in the
            -       * search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * - * @return Whether the snippetSpec field is set. - */ - public boolean hasSnippetSpec() { - return ((bitField0_ & 0x00000001) != 0); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * - * - *
            -       * If `snippetSpec` is not specified, snippets are not included in the
            -       * search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - * - * @return The snippetSpec. - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - getSnippetSpec() { - if (snippetSpecBuilder_ == null) { - return snippetSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance() - : snippetSpec_; - } else { - return snippetSpecBuilder_.getMessage(); - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - * - * - *
            -       * If `snippetSpec` is not specified, snippets are not included in the
            -       * search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - */ - public Builder setSnippetSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - value) { - if (snippetSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - snippetSpec_ = value; - } else { - snippetSpecBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * - * - *
            -       * If `snippetSpec` is not specified, snippets are not included in the
            -       * search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - */ - public Builder setSnippetSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .Builder - builderForValue) { - if (snippetSpecBuilder_ == null) { - snippetSpec_ = builderForValue.build(); - } else { - snippetSpecBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * * *
            -       * If `snippetSpec` is not specified, snippets are not included in the
            -       * search response.
            +       * A specification for configuring the extractive content in a search
            +       * response.
                    * 
            * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec} */ - public Builder mergeSnippetSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - value) { - if (snippetSpecBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && snippetSpec_ != null - && snippetSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec.getDefaultInstance()) { - getSnippetSpecBuilder().mergeFrom(value); - } else { - snippetSpec_ = value; - } - } else { - snippetSpecBuilder_.mergeFrom(value); - } - if (snippetSpec_ != null) { - bitField0_ |= 0x00000001; - onChanged(); + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor; } - return this; - } - /** - * - * - *
            -       * If `snippetSpec` is not specified, snippets are not included in the
            -       * search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - */ - public Builder clearSnippetSpec() { - bitField0_ = (bitField0_ & ~0x00000001); - snippetSpec_ = null; - if (snippetSpecBuilder_ != null) { - snippetSpecBuilder_.dispose(); - snippetSpecBuilder_ = null; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.Builder.class); } - onChanged(); - return this; - } - /** - * - * - *
            -       * If `snippetSpec` is not specified, snippets are not included in the
            -       * search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .Builder - getSnippetSpecBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetSnippetSpecFieldBuilder().getBuilder(); - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec.newBuilder() + private Builder() {} - /** - * - * - *
            -       * If `snippetSpec` is not specified, snippets are not included in the
            -       * search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder - getSnippetSpecOrBuilder() { - if (snippetSpecBuilder_ != null) { - return snippetSpecBuilder_.getMessageOrBuilder(); - } else { - return snippetSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .getDefaultInstance() - : snippetSpec_; + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); } - } - /** - * - * - *
            -       * If `snippetSpec` is not specified, snippets are not included in the
            -       * search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder> - internalGetSnippetSpecFieldBuilder() { - if (snippetSpecBuilder_ == null) { - snippetSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SnippetSpecOrBuilder>(getSnippetSpec(), getParentForChildren(), isClean()); - snippetSpec_ = null; + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + maxExtractiveAnswerCount_ = 0; + maxExtractiveSegmentCount_ = 0; + returnExtractiveSegmentScore_ = false; + numPreviousSegments_ = 0; + numNextSegments_ = 0; + return this; } - return snippetSpecBuilder_; - } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - summarySpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder> - summarySpecBuilder_; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ExtractiveContentSpec_descriptor; + } - /** - * - * - *
            -       * If `summarySpec` is not specified, summaries are not included in the
            -       * search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * - * @return Whether the summarySpec field is set. - */ - public boolean hasSummarySpec() { - return ((bitField0_ & 0x00000002) != 0); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.getDefaultInstance(); + } - /** - * - * - *
            -       * If `summarySpec` is not specified, summaries are not included in the
            -       * search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - * - * @return The summarySpec. - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - getSummarySpec() { - if (summarySpecBuilder_ == null) { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; - } else { - return summarySpecBuilder_.getMessage(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - } - /** - * - * - *
            -       * If `summarySpec` is not specified, summaries are not included in the
            -       * search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - */ - public Builder setSummarySpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - value) { - if (summarySpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); } - summarySpec_ = value; - } else { - summarySpecBuilder_.setMessage(value); + onBuilt(); + return result; } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
            -       * If `summarySpec` is not specified, summaries are not included in the
            -       * search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - */ - public Builder setSummarySpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .Builder - builderForValue) { - if (summarySpecBuilder_ == null) { - summarySpec_ = builderForValue.build(); - } else { - summarySpecBuilder_.setMessage(builderForValue.build()); + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.maxExtractiveAnswerCount_ = maxExtractiveAnswerCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxExtractiveSegmentCount_ = maxExtractiveSegmentCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.returnExtractiveSegmentScore_ = returnExtractiveSegmentScore_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.numPreviousSegments_ = numPreviousSegments_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.numNextSegments_ = numNextSegments_; + } } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * - * - *
            -       * If `summarySpec` is not specified, summaries are not included in the
            -       * search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - */ - public Builder mergeSummarySpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - value) { - if (summarySpecBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && summarySpec_ != null - && summarySpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.getDefaultInstance()) { - getSummarySpecBuilder().mergeFrom(value); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec) + other); } else { - summarySpec_ = value; + super.mergeFrom(other); + return this; } - } else { - summarySpecBuilder_.mergeFrom(value); } - if (summarySpec_ != null) { - bitField0_ |= 0x00000002; + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.getDefaultInstance()) return this; + if (other.getMaxExtractiveAnswerCount() != 0) { + setMaxExtractiveAnswerCount(other.getMaxExtractiveAnswerCount()); + } + if (other.getMaxExtractiveSegmentCount() != 0) { + setMaxExtractiveSegmentCount(other.getMaxExtractiveSegmentCount()); + } + if (other.getReturnExtractiveSegmentScore() != false) { + setReturnExtractiveSegmentScore(other.getReturnExtractiveSegmentScore()); + } + if (other.getNumPreviousSegments() != 0) { + setNumPreviousSegments(other.getNumPreviousSegments()); + } + if (other.getNumNextSegments() != 0) { + setNumNextSegments(other.getNumNextSegments()); + } + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); + return this; } - return this; - } - /** - * - * - *
            -       * If `summarySpec` is not specified, summaries are not included in the
            -       * search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - */ - public Builder clearSummarySpec() { - bitField0_ = (bitField0_ & ~0x00000002); - summarySpec_ = null; - if (summarySpecBuilder_ != null) { - summarySpecBuilder_.dispose(); - summarySpecBuilder_ = null; + @java.lang.Override + public final boolean isInitialized() { + return true; } - onChanged(); - return this; - } - - /** - * - * - *
            -       * If `summarySpec` is not specified, summaries are not included in the
            -       * search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .Builder - getSummarySpecBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetSummarySpecFieldBuilder().getBuilder(); - } - /** - * - * - *
            -       * If `summarySpec` is not specified, summaries are not included in the
            -       * search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder - getSummarySpecOrBuilder() { - if (summarySpecBuilder_ != null) { - return summarySpecBuilder_.getMessageOrBuilder(); - } else { - return summarySpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .getDefaultInstance() - : summarySpec_; + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + maxExtractiveAnswerCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + maxExtractiveSegmentCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + returnExtractiveSegmentScore_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + numPreviousSegments_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + numNextSegments_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - } - /** - * - * - *
            -       * If `summarySpec` is not specified, summaries are not included in the
            -       * search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder> - internalGetSummarySpecFieldBuilder() { - if (summarySpecBuilder_ == null) { - summarySpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SummarySpecOrBuilder>(getSummarySpec(), getParentForChildren(), isClean()); - summarySpec_ = null; + private int bitField0_; + + private int maxExtractiveAnswerCount_; + + /** + * + * + *
            +         * The maximum number of extractive answers returned in each search
            +         * result.
            +         *
            +         * An extractive answer is a verbatim answer extracted from the original
            +         * document, which provides a precise and contextually relevant answer to
            +         * the search query.
            +         *
            +         * If the number of matching answers is less than the
            +         * `max_extractive_answer_count`, return all of the answers. Otherwise,
            +         * return the `max_extractive_answer_count`.
            +         *
            +         * At most five answers are returned for each
            +         * [SearchResult][google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult].
            +         * 
            + * + * int32 max_extractive_answer_count = 1; + * + * @return The maxExtractiveAnswerCount. + */ + @java.lang.Override + public int getMaxExtractiveAnswerCount() { + return maxExtractiveAnswerCount_; } - return summarySpecBuilder_; + + /** + * + * + *
            +         * The maximum number of extractive answers returned in each search
            +         * result.
            +         *
            +         * An extractive answer is a verbatim answer extracted from the original
            +         * document, which provides a precise and contextually relevant answer to
            +         * the search query.
            +         *
            +         * If the number of matching answers is less than the
            +         * `max_extractive_answer_count`, return all of the answers. Otherwise,
            +         * return the `max_extractive_answer_count`.
            +         *
            +         * At most five answers are returned for each
            +         * [SearchResult][google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult].
            +         * 
            + * + * int32 max_extractive_answer_count = 1; + * + * @param value The maxExtractiveAnswerCount to set. + * @return This builder for chaining. + */ + public Builder setMaxExtractiveAnswerCount(int value) { + + maxExtractiveAnswerCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * The maximum number of extractive answers returned in each search
            +         * result.
            +         *
            +         * An extractive answer is a verbatim answer extracted from the original
            +         * document, which provides a precise and contextually relevant answer to
            +         * the search query.
            +         *
            +         * If the number of matching answers is less than the
            +         * `max_extractive_answer_count`, return all of the answers. Otherwise,
            +         * return the `max_extractive_answer_count`.
            +         *
            +         * At most five answers are returned for each
            +         * [SearchResult][google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult].
            +         * 
            + * + * int32 max_extractive_answer_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearMaxExtractiveAnswerCount() { + bitField0_ = (bitField0_ & ~0x00000001); + maxExtractiveAnswerCount_ = 0; + onChanged(); + return this; + } + + private int maxExtractiveSegmentCount_; + + /** + * + * + *
            +         * The max number of extractive segments returned in each search result.
            +         * Only applied if the
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] is set to
            +         * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.CONTENT_REQUIRED]
            +         * or
            +         * [DataStore.solution_types][google.cloud.discoveryengine.v1beta.DataStore.solution_types]
            +         * is
            +         * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +         *
            +         * An extractive segment is a text segment extracted from the original
            +         * document that is relevant to the search query, and, in general, more
            +         * verbose than an extractive answer. The segment could then be used as
            +         * input for LLMs to generate summaries and answers.
            +         *
            +         * If the number of matching segments is less than
            +         * `max_extractive_segment_count`, return all of the segments. Otherwise,
            +         * return the `max_extractive_segment_count`.
            +         * 
            + * + * int32 max_extractive_segment_count = 2; + * + * @return The maxExtractiveSegmentCount. + */ + @java.lang.Override + public int getMaxExtractiveSegmentCount() { + return maxExtractiveSegmentCount_; + } + + /** + * + * + *
            +         * The max number of extractive segments returned in each search result.
            +         * Only applied if the
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] is set to
            +         * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.CONTENT_REQUIRED]
            +         * or
            +         * [DataStore.solution_types][google.cloud.discoveryengine.v1beta.DataStore.solution_types]
            +         * is
            +         * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +         *
            +         * An extractive segment is a text segment extracted from the original
            +         * document that is relevant to the search query, and, in general, more
            +         * verbose than an extractive answer. The segment could then be used as
            +         * input for LLMs to generate summaries and answers.
            +         *
            +         * If the number of matching segments is less than
            +         * `max_extractive_segment_count`, return all of the segments. Otherwise,
            +         * return the `max_extractive_segment_count`.
            +         * 
            + * + * int32 max_extractive_segment_count = 2; + * + * @param value The maxExtractiveSegmentCount to set. + * @return This builder for chaining. + */ + public Builder setMaxExtractiveSegmentCount(int value) { + + maxExtractiveSegmentCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * The max number of extractive segments returned in each search result.
            +         * Only applied if the
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] is set to
            +         * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1beta.DataStore.ContentConfig.CONTENT_REQUIRED]
            +         * or
            +         * [DataStore.solution_types][google.cloud.discoveryengine.v1beta.DataStore.solution_types]
            +         * is
            +         * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_CHAT].
            +         *
            +         * An extractive segment is a text segment extracted from the original
            +         * document that is relevant to the search query, and, in general, more
            +         * verbose than an extractive answer. The segment could then be used as
            +         * input for LLMs to generate summaries and answers.
            +         *
            +         * If the number of matching segments is less than
            +         * `max_extractive_segment_count`, return all of the segments. Otherwise,
            +         * return the `max_extractive_segment_count`.
            +         * 
            + * + * int32 max_extractive_segment_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearMaxExtractiveSegmentCount() { + bitField0_ = (bitField0_ & ~0x00000002); + maxExtractiveSegmentCount_ = 0; + onChanged(); + return this; + } + + private boolean returnExtractiveSegmentScore_; + + /** + * + * + *
            +         * Specifies whether to return the confidence score from the extractive
            +         * segments in each search result. This feature is available only for new
            +         * or allowlisted data stores. To allowlist your data store,
            +         * contact your Customer Engineer. The default value is `false`.
            +         * 
            + * + * bool return_extractive_segment_score = 3; + * + * @return The returnExtractiveSegmentScore. + */ + @java.lang.Override + public boolean getReturnExtractiveSegmentScore() { + return returnExtractiveSegmentScore_; + } + + /** + * + * + *
            +         * Specifies whether to return the confidence score from the extractive
            +         * segments in each search result. This feature is available only for new
            +         * or allowlisted data stores. To allowlist your data store,
            +         * contact your Customer Engineer. The default value is `false`.
            +         * 
            + * + * bool return_extractive_segment_score = 3; + * + * @param value The returnExtractiveSegmentScore to set. + * @return This builder for chaining. + */ + public Builder setReturnExtractiveSegmentScore(boolean value) { + + returnExtractiveSegmentScore_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Specifies whether to return the confidence score from the extractive
            +         * segments in each search result. This feature is available only for new
            +         * or allowlisted data stores. To allowlist your data store,
            +         * contact your Customer Engineer. The default value is `false`.
            +         * 
            + * + * bool return_extractive_segment_score = 3; + * + * @return This builder for chaining. + */ + public Builder clearReturnExtractiveSegmentScore() { + bitField0_ = (bitField0_ & ~0x00000004); + returnExtractiveSegmentScore_ = false; + onChanged(); + return this; + } + + private int numPreviousSegments_; + + /** + * + * + *
            +         * Specifies whether to also include the adjacent from each selected
            +         * segments.
            +         * Return at most `num_previous_segments` segments before each selected
            +         * segments.
            +         * 
            + * + * int32 num_previous_segments = 4; + * + * @return The numPreviousSegments. + */ + @java.lang.Override + public int getNumPreviousSegments() { + return numPreviousSegments_; + } + + /** + * + * + *
            +         * Specifies whether to also include the adjacent from each selected
            +         * segments.
            +         * Return at most `num_previous_segments` segments before each selected
            +         * segments.
            +         * 
            + * + * int32 num_previous_segments = 4; + * + * @param value The numPreviousSegments to set. + * @return This builder for chaining. + */ + public Builder setNumPreviousSegments(int value) { + + numPreviousSegments_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Specifies whether to also include the adjacent from each selected
            +         * segments.
            +         * Return at most `num_previous_segments` segments before each selected
            +         * segments.
            +         * 
            + * + * int32 num_previous_segments = 4; + * + * @return This builder for chaining. + */ + public Builder clearNumPreviousSegments() { + bitField0_ = (bitField0_ & ~0x00000008); + numPreviousSegments_ = 0; + onChanged(); + return this; + } + + private int numNextSegments_; + + /** + * + * + *
            +         * Return at most `num_next_segments` segments after each selected
            +         * segments.
            +         * 
            + * + * int32 num_next_segments = 5; + * + * @return The numNextSegments. + */ + @java.lang.Override + public int getNumNextSegments() { + return numNextSegments_; + } + + /** + * + * + *
            +         * Return at most `num_next_segments` segments after each selected
            +         * segments.
            +         * 
            + * + * int32 num_next_segments = 5; + * + * @param value The numNextSegments to set. + * @return This builder for chaining. + */ + public Builder setNumNextSegments(int value) { + + numNextSegments_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Return at most `num_next_segments` segments after each selected
            +         * segments.
            +         * 
            + * + * int32 num_next_segments = 5; + * + * @return This builder for chaining. + */ + public Builder clearNumNextSegments() { + bitField0_ = (bitField0_ & ~0x00000010); + numNextSegments_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec .ExtractiveContentSpec - extractiveContentSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpecOrBuilder> - extractiveContentSpecBuilder_; + DEFAULT_INSTANCE; - /** - * - * - *
            -       * If there is no extractive_content_spec provided, there will be no
            -       * extractive answer in the search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * - * - * @return Whether the extractiveContentSpec field is set. - */ - public boolean hasExtractiveContentSpec() { - return ((bitField0_ & 0x00000004) != 0); + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExtractiveContentSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } + + public interface ChunkSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) + com.google.protobuf.MessageOrBuilder { /** * * *
            -       * If there is no extractive_content_spec provided, there will be no
            -       * extractive answer in the search response.
            +       * The number of previous chunks to be returned of the current chunk. The
            +       * maximum allowed value is 3.
            +       * If not specified, no previous chunks will be returned.
                    * 
            * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * int32 num_previous_chunks = 1; * - * @return The extractiveContentSpec. + * @return The numPreviousChunks. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - getExtractiveContentSpec() { - if (extractiveContentSpecBuilder_ == null) { - return extractiveContentSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.getDefaultInstance() - : extractiveContentSpec_; - } else { - return extractiveContentSpecBuilder_.getMessage(); - } - } + int getNumPreviousChunks(); /** * * *
            -       * If there is no extractive_content_spec provided, there will be no
            -       * extractive answer in the search response.
            +       * The number of next chunks to be returned of the current chunk. The
            +       * maximum allowed value is 3.
            +       * If not specified, no next chunks will be returned.
                    * 
            * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * int32 num_next_chunks = 2; + * + * @return The numNextChunks. */ - public Builder setExtractiveContentSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - value) { - if (extractiveContentSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - extractiveContentSpec_ = value; - } else { - extractiveContentSpecBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; + int getNumNextChunks(); + } + + /** + * + * + *
            +     * Specifies the chunk spec to be returned from the search response.
            +     * Only available if the
            +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            +     * is set to
            +     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec} + */ + public static final class ChunkSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) + ChunkSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ChunkSpec"); + } + + // Use ChunkSpec.newBuilder() to construct. + private ChunkSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ChunkSpec() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .Builder.class); } + public static final int NUM_PREVIOUS_CHUNKS_FIELD_NUMBER = 1; + private int numPreviousChunks_ = 0; + /** * * *
            -       * If there is no extractive_content_spec provided, there will be no
            -       * extractive answer in the search response.
            +       * The number of previous chunks to be returned of the current chunk. The
            +       * maximum allowed value is 3.
            +       * If not specified, no previous chunks will be returned.
                    * 
            * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * int32 num_previous_chunks = 1; + * + * @return The numPreviousChunks. */ - public Builder setExtractiveContentSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.Builder - builderForValue) { - if (extractiveContentSpecBuilder_ == null) { - extractiveContentSpec_ = builderForValue.build(); - } else { - extractiveContentSpecBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; + @java.lang.Override + public int getNumPreviousChunks() { + return numPreviousChunks_; } + public static final int NUM_NEXT_CHUNKS_FIELD_NUMBER = 2; + private int numNextChunks_ = 0; + /** * * *
            -       * If there is no extractive_content_spec provided, there will be no
            -       * extractive answer in the search response.
            +       * The number of next chunks to be returned of the current chunk. The
            +       * maximum allowed value is 3.
            +       * If not specified, no next chunks will be returned.
                    * 
            * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * + * int32 num_next_chunks = 2; + * + * @return The numNextChunks. */ - public Builder mergeExtractiveContentSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec - value) { - if (extractiveContentSpecBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && extractiveContentSpec_ != null - && extractiveContentSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.getDefaultInstance()) { - getExtractiveContentSpecBuilder().mergeFrom(value); - } else { - extractiveContentSpec_ = value; - } - } else { - extractiveContentSpecBuilder_.mergeFrom(value); + @java.lang.Override + public int getNumNextChunks() { + return numNextChunks_; + } + + 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 (numPreviousChunks_ != 0) { + output.writeInt32(1, numPreviousChunks_); } - if (extractiveContentSpec_ != null) { - bitField0_ |= 0x00000004; - onChanged(); + if (numNextChunks_ != 0) { + output.writeInt32(2, numNextChunks_); } - return this; + getUnknownFields().writeTo(output); } - /** - * - * - *
            -       * If there is no extractive_content_spec provided, there will be no
            -       * extractive answer in the search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * - */ - public Builder clearExtractiveContentSpec() { - bitField0_ = (bitField0_ & ~0x00000004); - extractiveContentSpec_ = null; - if (extractiveContentSpecBuilder_ != null) { - extractiveContentSpecBuilder_.dispose(); - extractiveContentSpecBuilder_ = null; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (numPreviousChunks_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, numPreviousChunks_); } - onChanged(); - return this; + if (numNextChunks_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, numNextChunks_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } - /** - * - * - *
            -       * If there is no extractive_content_spec provided, there will be no
            -       * extractive answer in the search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.Builder - getExtractiveContentSpecBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetExtractiveContentSpecFieldBuilder().getBuilder(); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) obj; + + if (getNumPreviousChunks() != other.getNumPreviousChunks()) return false; + if (getNumNextChunks() != other.getNumNextChunks()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - /** - * - * - *
            -       * If there is no extractive_content_spec provided, there will be no
            -       * extractive answer in the search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpecOrBuilder - getExtractiveContentSpecOrBuilder() { - if (extractiveContentSpecBuilder_ != null) { - return extractiveContentSpecBuilder_.getMessageOrBuilder(); - } else { - return extractiveContentSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.getDefaultInstance() - : extractiveContentSpec_; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NUM_PREVIOUS_CHUNKS_FIELD_NUMBER; + hash = (53 * hash) + getNumPreviousChunks(); + hash = (37 * hash) + NUM_NEXT_CHUNKS_FIELD_NUMBER; + hash = (53 * hash) + getNumNextChunks(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - /** - * - * - *
            -       * If there is no extractive_content_spec provided, there will be no
            -       * extractive answer in the search response.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpecOrBuilder> - internalGetExtractiveContentSpecFieldBuilder() { - if (extractiveContentSpecBuilder_ == null) { - extractiveContentSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ExtractiveContentSpecOrBuilder>( - getExtractiveContentSpec(), getParentForChildren(), isClean()); - extractiveContentSpec_ = null; - } - return extractiveContentSpecBuilder_; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - private int searchResultMode_ = 0; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -       * Specifies the search result mode. If unspecified, the
            -       * search result mode defaults to `DOCUMENTS`.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; - * - * - * @return The enum numeric value on the wire for searchResultMode. - */ - @java.lang.Override - public int getSearchResultModeValue() { - return searchResultMode_; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * - * - *
            -       * Specifies the search result mode. If unspecified, the
            -       * search result mode defaults to `DOCUMENTS`.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; - * - * - * @param value The enum numeric value on the wire for searchResultMode to set. - * @return This builder for chaining. - */ - public Builder setSearchResultModeValue(int value) { - searchResultMode_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom( + 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.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - /** - * - * - *
            -       * Specifies the search result mode. If unspecified, the
            -       * search result mode defaults to `DOCUMENTS`.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; - * - * - * @return The searchResultMode. - */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SearchResultMode - getSearchResultMode() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode - result = - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SearchResultMode.forNumber(searchResultMode_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .SearchResultMode.UNRECOGNIZED - : result; + public Builder newBuilderForType() { + return newBuilder(); } - /** - * - * - *
            -       * Specifies the search result mode. If unspecified, the
            -       * search result mode defaults to `DOCUMENTS`.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; - * - * - * @param value The searchResultMode to set. - * @return This builder for chaining. - */ - public Builder setSearchResultMode( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode - value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - searchResultMode_ = value.getNumber(); - onChanged(); - return this; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - /** - * - * - *
            -       * Specifies the search result mode. If unspecified, the
            -       * search result mode defaults to `DOCUMENTS`.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; - * - * - * @return This builder for chaining. - */ - public Builder clearSearchResultMode() { - bitField0_ = (bitField0_ & ~0x00000008); - searchResultMode_ = 0; - onChanged(); - return this; + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - chunkSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpecOrBuilder> - chunkSpecBuilder_; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } /** * @@ -24057,1406 +23722,2362 @@ public Builder clearSearchResultMode() { * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS] *
            * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; - * - * - * @return Whether the chunkSpec field is set. + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec} */ - public boolean hasChunkSpec() { - return ((bitField0_ & 0x00000010) != 0); - } + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_descriptor; + } - /** - * - * - *
            -       * Specifies the chunk spec to be returned from the search response.
            -       * Only available if the
            -       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            -       * is set to
            -       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; - * - * - * @return The chunkSpec. - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - getChunkSpec() { - if (chunkSpecBuilder_ == null) { - return chunkSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - .getDefaultInstance() - : chunkSpec_; - } else { - return chunkSpecBuilder_.getMessage(); + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .Builder.class); } - } - /** - * - * - *
            -       * Specifies the chunk spec to be returned from the search response.
            -       * Only available if the
            -       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            -       * is set to
            -       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; - * - */ - public Builder setChunkSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec value) { - if (chunkSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - chunkSpec_ = value; - } else { - chunkSpecBuilder_.setMessage(value); + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
            -       * Specifies the chunk spec to be returned from the search response.
            -       * Only available if the
            -       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            -       * is set to
            -       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; - * - */ - public Builder setChunkSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.Builder - builderForValue) { - if (chunkSpecBuilder_ == null) { - chunkSpec_ = builderForValue.build(); - } else { - chunkSpecBuilder_.setMessage(builderForValue.build()); + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + numPreviousChunks_ = 0; + numNextChunks_ = 0; + return this; } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * - * - *
            -       * Specifies the chunk spec to be returned from the search response.
            -       * Only available if the
            -       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            -       * is set to
            -       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; - * - */ - public Builder mergeChunkSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec value) { - if (chunkSpecBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && chunkSpec_ != null - && chunkSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpec.getDefaultInstance()) { - getChunkSpecBuilder().mergeFrom(value); - } else { - chunkSpec_ = value; - } - } else { - chunkSpecBuilder_.mergeFrom(value); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_ChunkSpec_descriptor; } - if (chunkSpec_ != null) { - bitField0_ |= 0x00000010; - onChanged(); + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .getDefaultInstance(); } - return this; - } - /** - * - * - *
            -       * Specifies the chunk spec to be returned from the search response.
            -       * Only available if the
            -       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            -       * is set to
            -       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; - * - */ - public Builder clearChunkSpec() { - bitField0_ = (bitField0_ & ~0x00000010); - chunkSpec_ = null; - if (chunkSpecBuilder_ != null) { - chunkSpecBuilder_.dispose(); - chunkSpecBuilder_ = null; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - onChanged(); - return this; - } - /** - * - * - *
            -       * Specifies the chunk spec to be returned from the search response.
            -       * Only available if the
            -       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            -       * is set to
            -       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - .Builder - getChunkSpecBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return internalGetChunkSpecFieldBuilder().getBuilder(); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - /** - * - * - *
            -       * Specifies the chunk spec to be returned from the search response.
            -       * Only available if the
            -       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            -       * is set to
            -       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpecOrBuilder - getChunkSpecOrBuilder() { - if (chunkSpecBuilder_ != null) { - return chunkSpecBuilder_.getMessageOrBuilder(); - } else { - return chunkSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - .getDefaultInstance() - : chunkSpec_; + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.numPreviousChunks_ = numPreviousChunks_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.numNextChunks_ = numNextChunks_; + } } - } - /** - * - * - *
            -       * Specifies the chunk spec to be returned from the search response.
            -       * Only available if the
            -       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            -       * is set to
            -       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpecOrBuilder> - internalGetChunkSpecFieldBuilder() { - if (chunkSpecBuilder_ == null) { - chunkSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .ChunkSpecOrBuilder>(getChunkSpec(), getParentForChildren(), isClean()); - chunkSpec_ = null; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) + other); + } else { + super.mergeFrom(other); + return this; + } } - return chunkSpecBuilder_; - } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) - } + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .getDefaultInstance()) return this; + if (other.getNumPreviousChunks() != 0) { + setNumPreviousChunks(other.getNumPreviousChunks()); + } + if (other.getNumNextChunks() != 0) { + setNumNextChunks(other.getNumNextChunks()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - DEFAULT_INSTANCE; + @java.lang.Override + public final boolean isInitialized() { + return true; + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec(); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + numPreviousChunks_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + numNextChunks_ = 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; + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private int bitField0_; - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContentSearchSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private int numPreviousChunks_; - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * + * + *
            +         * The number of previous chunks to be returned of the current chunk. The
            +         * maximum allowed value is 3.
            +         * If not specified, no previous chunks will be returned.
            +         * 
            + * + * int32 num_previous_chunks = 1; + * + * @return The numPreviousChunks. + */ + @java.lang.Override + public int getNumPreviousChunks() { + return numPreviousChunks_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * + * + *
            +         * The number of previous chunks to be returned of the current chunk. The
            +         * maximum allowed value is 3.
            +         * If not specified, no previous chunks will be returned.
            +         * 
            + * + * int32 num_previous_chunks = 1; + * + * @param value The numPreviousChunks to set. + * @return This builder for chaining. + */ + public Builder setNumPreviousChunks(int value) { - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + numPreviousChunks_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - public interface EmbeddingSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
            +         * The number of previous chunks to be returned of the current chunk. The
            +         * maximum allowed value is 3.
            +         * If not specified, no previous chunks will be returned.
            +         * 
            + * + * int32 num_previous_chunks = 1; + * + * @return This builder for chaining. + */ + public Builder clearNumPreviousChunks() { + bitField0_ = (bitField0_ & ~0x00000001); + numPreviousChunks_ = 0; + onChanged(); + return this; + } - /** - * - * - *
            -     * The embedding vector used for retrieval. Limit to 1.
            -     * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> - getEmbeddingVectorsList(); + private int numNextChunks_; - /** - * - * - *
            -     * The embedding vector used for retrieval. Limit to 1.
            -     * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - getEmbeddingVectors(int index); + /** + * + * + *
            +         * The number of next chunks to be returned of the current chunk. The
            +         * maximum allowed value is 3.
            +         * If not specified, no next chunks will be returned.
            +         * 
            + * + * int32 num_next_chunks = 2; + * + * @return The numNextChunks. + */ + @java.lang.Override + public int getNumNextChunks() { + return numNextChunks_; + } + + /** + * + * + *
            +         * The number of next chunks to be returned of the current chunk. The
            +         * maximum allowed value is 3.
            +         * If not specified, no next chunks will be returned.
            +         * 
            + * + * int32 num_next_chunks = 2; + * + * @param value The numNextChunks to set. + * @return This builder for chaining. + */ + public Builder setNumNextChunks(int value) { + + numNextChunks_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * The number of next chunks to be returned of the current chunk. The
            +         * maximum allowed value is 3.
            +         * If not specified, no next chunks will be returned.
            +         * 
            + * + * int32 num_next_chunks = 2; + * + * @return This builder for chaining. + */ + public Builder clearNumNextChunks() { + bitField0_ = (bitField0_ & ~0x00000002); + numNextChunks_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChunkSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int SNIPPET_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + snippetSpec_; /** * * *
            -     * The embedding vector used for retrieval. Limit to 1.
            +     * If `snippetSpec` is not specified, snippets are not included in the
            +     * search response.
                  * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; * + * + * @return Whether the snippetSpec field is set. */ - int getEmbeddingVectorsCount(); + @java.lang.Override + public boolean hasSnippetSpec() { + return ((bitField0_ & 0x00000001) != 0); + } /** * * *
            -     * The embedding vector used for retrieval. Limit to 1.
            +     * If `snippetSpec` is not specified, snippets are not included in the
            +     * search response.
                  * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; * + * + * @return The snippetSpec. */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder> - getEmbeddingVectorsOrBuilderList(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + getSnippetSpec() { + return snippetSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + .getDefaultInstance() + : snippetSpec_; + } /** * * *
            -     * The embedding vector used for retrieval. Limit to 1.
            +     * If `snippetSpec` is not specified, snippets are not included in the
            +     * search response.
                  * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; * */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder - getEmbeddingVectorsOrBuilder(int index); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SnippetSpecOrBuilder + getSnippetSpecOrBuilder() { + return snippetSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + .getDefaultInstance() + : snippetSpec_; + } - /** - * - * - *
            -   * The specification that uses customized query embedding vector to do
            -   * semantic document retrieval.
            -   * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec} - */ - public static final class EmbeddingSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) - EmbeddingSpecOrBuilder { - private static final long serialVersionUID = 0L; + public static final int SUMMARY_SPEC_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + summarySpec_; - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "EmbeddingSpec"); + /** + * + * + *
            +     * If `summarySpec` is not specified, summaries are not included in the
            +     * search response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + * + * @return Whether the summarySpec field is set. + */ + @java.lang.Override + public boolean hasSummarySpec() { + return ((bitField0_ & 0x00000002) != 0); } - // Use EmbeddingSpec.newBuilder() to construct. - private EmbeddingSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + /** + * + * + *
            +     * If `summarySpec` is not specified, summaries are not included in the
            +     * search response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + * + * @return The summarySpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + getSummarySpec() { + return summarySpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .getDefaultInstance() + : summarySpec_; } - private EmbeddingSpec() { - embeddingVectors_ = java.util.Collections.emptyList(); + /** + * + * + *
            +     * If `summarySpec` is not specified, summaries are not included in the
            +     * search response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpecOrBuilder + getSummarySpecOrBuilder() { + return summarySpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .getDefaultInstance() + : summarySpec_; } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor; + public static final int EXTRACTIVE_CONTENT_SPEC_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + extractiveContentSpec_; + + /** + * + * + *
            +     * If there is no extractive_content_spec provided, there will be no
            +     * extractive answer in the search response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + * + * @return Whether the extractiveContentSpec field is set. + */ + @java.lang.Override + public boolean hasExtractiveContentSpec() { + return ((bitField0_ & 0x00000004) != 0); } + /** + * + * + *
            +     * If there is no extractive_content_spec provided, there will be no
            +     * extractive answer in the search response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + * + * @return The extractiveContentSpec. + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder.class); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + getExtractiveContentSpec() { + return extractiveContentSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.getDefaultInstance() + : extractiveContentSpec_; } - public interface EmbeddingVectorOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
            +     * If there is no extractive_content_spec provided, there will be no
            +     * extractive answer in the search response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpecOrBuilder + getExtractiveContentSpecOrBuilder() { + return extractiveContentSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.getDefaultInstance() + : extractiveContentSpec_; + } - /** - * - * - *
            -       * Embedding field path in schema.
            -       * 
            - * - * string field_path = 1; - * - * @return The fieldPath. - */ - java.lang.String getFieldPath(); + public static final int SEARCH_RESULT_MODE_FIELD_NUMBER = 4; + private int searchResultMode_ = 0; - /** - * - * - *
            -       * Embedding field path in schema.
            -       * 
            - * - * string field_path = 1; - * - * @return The bytes for fieldPath. - */ - com.google.protobuf.ByteString getFieldPathBytes(); + /** + * + * + *
            +     * Specifies the search result mode. If unspecified, the
            +     * search result mode defaults to `DOCUMENTS`.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @return The enum numeric value on the wire for searchResultMode. + */ + @java.lang.Override + public int getSearchResultModeValue() { + return searchResultMode_; + } - /** - * - * - *
            -       * Query embedding vector.
            -       * 
            - * - * repeated float vector = 2; - * - * @return A list containing the vector. - */ - java.util.List getVectorList(); + /** + * + * + *
            +     * Specifies the search result mode. If unspecified, the
            +     * search result mode defaults to `DOCUMENTS`.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @return The searchResultMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode + getSearchResultMode() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode + result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.forNumber(searchResultMode_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode + .UNRECOGNIZED + : result; + } - /** - * - * - *
            -       * Query embedding vector.
            -       * 
            - * - * repeated float vector = 2; - * - * @return The count of vector. - */ - int getVectorCount(); + public static final int CHUNK_SPEC_FIELD_NUMBER = 5; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + chunkSpec_; - /** - * - * - *
            -       * Query embedding vector.
            -       * 
            - * - * repeated float vector = 2; - * - * @param index The index of the element to return. - * @return The vector at the given index. - */ - float getVector(int index); + /** + * + * + *
            +     * Specifies the chunk spec to be returned from the search response.
            +     * Only available if the
            +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            +     * is set to
            +     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + * + * @return Whether the chunkSpec field is set. + */ + @java.lang.Override + public boolean hasChunkSpec() { + return ((bitField0_ & 0x00000008) != 0); } /** * * *
            -     * Embedding vector.
            +     * Specifies the chunk spec to be returned from the search response.
            +     * Only available if the
            +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            +     * is set to
            +     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
                  * 
            * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector} + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + * + * @return The chunkSpec. */ - public static final class EmbeddingVector extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) - EmbeddingVectorOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "EmbeddingVector"); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + getChunkSpec() { + return chunkSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .getDefaultInstance() + : chunkSpec_; + } - // Use EmbeddingVector.newBuilder() to construct. - private EmbeddingVector(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + /** + * + * + *
            +     * Specifies the chunk spec to be returned from the search response.
            +     * Only available if the
            +     * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            +     * is set to
            +     * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpecOrBuilder + getChunkSpecOrBuilder() { + return chunkSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .getDefaultInstance() + : chunkSpec_; + } - private EmbeddingVector() { - fieldPath_ = ""; - vector_ = emptyFloatList(); + 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, getSnippetSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSummarySpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getExtractiveContentSpec()); + } + if (searchResultMode_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.SEARCH_RESULT_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, searchResultMode_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(5, getChunkSpec()); + } + 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, getSnippetSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSummarySpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExtractiveContentSpec()); + } + if (searchResultMode_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.SEARCH_RESULT_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, searchResultMode_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getChunkSpec()); + } + 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.v1beta.SearchRequest.ContentSearchSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) obj; + + if (hasSnippetSpec() != other.hasSnippetSpec()) return false; + if (hasSnippetSpec()) { + if (!getSnippetSpec().equals(other.getSnippetSpec())) return false; + } + if (hasSummarySpec() != other.hasSummarySpec()) return false; + if (hasSummarySpec()) { + if (!getSummarySpec().equals(other.getSummarySpec())) return false; + } + if (hasExtractiveContentSpec() != other.hasExtractiveContentSpec()) return false; + if (hasExtractiveContentSpec()) { + if (!getExtractiveContentSpec().equals(other.getExtractiveContentSpec())) return false; + } + if (searchResultMode_ != other.searchResultMode_) return false; + if (hasChunkSpec() != other.hasChunkSpec()) return false; + if (hasChunkSpec()) { + if (!getChunkSpec().equals(other.getChunkSpec())) 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 (hasSnippetSpec()) { + hash = (37 * hash) + SNIPPET_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSnippetSpec().hashCode(); + } + if (hasSummarySpec()) { + hash = (37 * hash) + SUMMARY_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSummarySpec().hashCode(); + } + if (hasExtractiveContentSpec()) { + hash = (37 * hash) + EXTRACTIVE_CONTENT_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getExtractiveContentSpec().hashCode(); + } + hash = (37 * hash) + SEARCH_RESULT_MODE_FIELD_NUMBER; + hash = (53 * hash) + searchResultMode_; + if (hasChunkSpec()) { + hash = (37 * hash) + CHUNK_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getChunkSpec().hashCode(); } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec 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.v1beta.SearchRequest.ContentSearchSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( + 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.v1beta.SearchRequest.ContentSearchSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * A specification for configuring the behavior of content search.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder + .class); } - public static final int FIELD_PATH_FIELD_NUMBER = 1; + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } - @SuppressWarnings("serial") - private volatile java.lang.Object fieldPath_ = ""; + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } - /** - * - * - *
            -       * Embedding field path in schema.
            -       * 
            - * - * string field_path = 1; - * - * @return The fieldPath. - */ - @java.lang.Override - public java.lang.String getFieldPath() { - java.lang.Object ref = fieldPath_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldPath_ = s; - return s; + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSnippetSpecFieldBuilder(); + internalGetSummarySpecFieldBuilder(); + internalGetExtractiveContentSpecFieldBuilder(); + internalGetChunkSpecFieldBuilder(); } } - /** - * - * - *
            -       * Embedding field path in schema.
            -       * 
            - * - * string field_path = 1; - * - * @return The bytes for fieldPath. - */ @java.lang.Override - public com.google.protobuf.ByteString getFieldPathBytes() { - java.lang.Object ref = fieldPath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fieldPath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public Builder clear() { + super.clear(); + bitField0_ = 0; + snippetSpec_ = null; + if (snippetSpecBuilder_ != null) { + snippetSpecBuilder_.dispose(); + snippetSpecBuilder_ = null; + } + summarySpec_ = null; + if (summarySpecBuilder_ != null) { + summarySpecBuilder_.dispose(); + summarySpecBuilder_ = null; + } + extractiveContentSpec_ = null; + if (extractiveContentSpecBuilder_ != null) { + extractiveContentSpecBuilder_.dispose(); + extractiveContentSpecBuilder_ = null; + } + searchResultMode_ = 0; + chunkSpec_ = null; + if (chunkSpecBuilder_ != null) { + chunkSpecBuilder_.dispose(); + chunkSpecBuilder_ = null; } + return this; } - public static final int VECTOR_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private com.google.protobuf.Internal.FloatList vector_ = emptyFloatList(); - - /** - * - * - *
            -       * Query embedding vector.
            -       * 
            - * - * repeated float vector = 2; - * - * @return A list containing the vector. - */ @java.lang.Override - public java.util.List getVectorList() { - return vector_; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_descriptor; } - /** - * - * - *
            -       * Query embedding vector.
            -       * 
            - * - * repeated float vector = 2; - * - * @return The count of vector. - */ - public int getVectorCount() { - return vector_.size(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .getDefaultInstance(); } - /** - * - * - *
            -       * Query embedding vector.
            -       * 
            - * - * repeated float vector = 2; - * - * @param index The index of the element to return. - * @return The vector at the given index. - */ - public float getVector(int index) { - return vector_.getFloat(index); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - private int vectorMemoizedSerializedSize = -1; - - 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 com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fieldPath_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, fieldPath_); + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.snippetSpec_ = + snippetSpecBuilder_ == null ? snippetSpec_ : snippetSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; } - if (getVectorList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(vectorMemoizedSerializedSize); + if (((from_bitField0_ & 0x00000002) != 0)) { + result.summarySpec_ = + summarySpecBuilder_ == null ? summarySpec_ : summarySpecBuilder_.build(); + to_bitField0_ |= 0x00000002; } - for (int i = 0; i < vector_.size(); i++) { - output.writeFloatNoTag(vector_.getFloat(i)); + if (((from_bitField0_ & 0x00000004) != 0)) { + result.extractiveContentSpec_ = + extractiveContentSpecBuilder_ == null + ? extractiveContentSpec_ + : extractiveContentSpecBuilder_.build(); + to_bitField0_ |= 0x00000004; } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fieldPath_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, fieldPath_); + if (((from_bitField0_ & 0x00000008) != 0)) { + result.searchResultMode_ = searchResultMode_; } - { - int dataSize = 0; - dataSize = 4 * getVectorList().size(); - size += dataSize; - if (!getVectorList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); - } - vectorMemoizedSerializedSize = dataSize; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.chunkSpec_ = chunkSpecBuilder_ == null ? chunkSpec_ : chunkSpecBuilder_.build(); + to_bitField0_ |= 0x00000008; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + result.bitField0_ |= to_bitField0_; } @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector)) { - return super.equals(obj); + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) other); + } else { + super.mergeFrom(other); + return this; } - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) - obj; - - if (!getFieldPath().equals(other.getFieldPath())) return false; - if (!getVectorList().equals(other.getVectorList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .getDefaultInstance()) return this; + if (other.hasSnippetSpec()) { + mergeSnippetSpec(other.getSnippetSpec()); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FIELD_PATH_FIELD_NUMBER; - hash = (53 * hash) + getFieldPath().hashCode(); - if (getVectorCount() > 0) { - hash = (37 * hash) + VECTOR_FIELD_NUMBER; - hash = (53 * hash) + getVectorList().hashCode(); + if (other.hasSummarySpec()) { + mergeSummarySpec(other.getSummarySpec()); } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + if (other.hasExtractiveContentSpec()) { + mergeExtractiveContentSpec(other.getExtractiveContentSpec()); + } + if (other.searchResultMode_ != 0) { + setSearchResultModeValue(other.getSearchResultModeValue()); + } + if (other.hasChunkSpec()) { + mergeChunkSpec(other.getChunkSpec()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + @java.lang.Override + public final boolean isInitialized() { + return true; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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( + internalGetSnippetSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetSummarySpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetExtractiveContentSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + searchResultMode_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage( + internalGetChunkSpecFieldBuilder().getBuilder(), extensionRegistry); + 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; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private int bitField0_; - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + snippetSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SnippetSpecOrBuilder> + snippetSpecBuilder_; - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
            +       * If `snippetSpec` is not specified, snippets are not included in the
            +       * search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + * + * @return Whether the snippetSpec field is set. + */ + public boolean hasSnippetSpec() { + return ((bitField0_ & 0x00000001) != 0); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + /** + * + * + *
            +       * If `snippetSpec` is not specified, snippets are not included in the
            +       * search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + * + * @return The snippetSpec. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + getSnippetSpec() { + if (snippetSpecBuilder_ == null) { + return snippetSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + .getDefaultInstance() + : snippetSpec_; + } else { + return snippetSpecBuilder_.getMessage(); + } } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
            +       * If `snippetSpec` is not specified, snippets are not included in the
            +       * search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + */ + public Builder setSnippetSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + value) { + if (snippetSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snippetSpec_ = value; + } else { + snippetSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + /** + * + * + *
            +       * If `snippetSpec` is not specified, snippets are not included in the
            +       * search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + */ + public Builder setSnippetSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + .Builder + builderForValue) { + if (snippetSpecBuilder_ == null) { + snippetSpec_ = builderForValue.build(); + } else { + snippetSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
            +       * If `snippetSpec` is not specified, snippets are not included in the
            +       * search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + */ + public Builder mergeSnippetSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + value) { + if (snippetSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && snippetSpec_ != null + && snippetSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SnippetSpec.getDefaultInstance()) { + getSnippetSpecBuilder().mergeFrom(value); + } else { + snippetSpec_ = value; + } + } else { + snippetSpecBuilder_.mergeFrom(value); + } + if (snippetSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + /** + * + * + *
            +       * If `snippetSpec` is not specified, snippets are not included in the
            +       * search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + */ + public Builder clearSnippetSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + snippetSpec_ = null; + if (snippetSpecBuilder_ != null) { + snippetSpecBuilder_.dispose(); + snippetSpecBuilder_ = null; + } + onChanged(); + return this; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
            +       * If `snippetSpec` is not specified, snippets are not included in the
            +       * search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + .Builder + getSnippetSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSnippetSpecFieldBuilder().getBuilder(); } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + /** + * + * + *
            +       * If `snippetSpec` is not specified, snippets are not included in the
            +       * search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SnippetSpecOrBuilder + getSnippetSpecOrBuilder() { + if (snippetSpecBuilder_ != null) { + return snippetSpecBuilder_.getMessageOrBuilder(); + } else { + return snippetSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + .getDefaultInstance() + : snippetSpec_; + } } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + /** + * + * + *
            +       * If `snippetSpec` is not specified, snippets are not included in the
            +       * search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SnippetSpecOrBuilder> + internalGetSnippetSpecFieldBuilder() { + if (snippetSpecBuilder_ == null) { + snippetSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SnippetSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SnippetSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SnippetSpecOrBuilder>(getSnippetSpec(), getParentForChildren(), isClean()); + snippetSpec_ = null; + } + return snippetSpecBuilder_; } - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + summarySpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpecOrBuilder> + summarySpecBuilder_; - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + /** + * + * + *
            +       * If `summarySpec` is not specified, summaries are not included in the
            +       * search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + * + * @return Whether the summarySpec field is set. + */ + public boolean hasSummarySpec() { + return ((bitField0_ & 0x00000002) != 0); } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + /** + * + * + *
            +       * If `summarySpec` is not specified, summaries are not included in the
            +       * search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + * + * @return The summarySpec. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + getSummarySpec() { + if (summarySpecBuilder_ == null) { + return summarySpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .getDefaultInstance() + : summarySpec_; + } else { + return summarySpecBuilder_.getMessage(); + } } /** * * *
            -       * Embedding vector.
            +       * If `summarySpec` is not specified, summaries are not included in the
            +       * search response.
                    * 
            * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector} + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; + public Builder setSummarySpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + value) { + if (summarySpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + summarySpec_ = value; + } else { + summarySpecBuilder_.setMessage(value); } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector.Builder.class); - } - - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + /** + * + * + *
            +       * If `summarySpec` is not specified, summaries are not included in the
            +       * search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + */ + public Builder setSummarySpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .Builder + builderForValue) { + if (summarySpecBuilder_ == null) { + summarySpec_ = builderForValue.build(); + } else { + summarySpecBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - fieldPath_ = ""; - vector_ = emptyFloatList(); - return this; + /** + * + * + *
            +       * If `summarySpec` is not specified, summaries are not included in the
            +       * search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + */ + public Builder mergeSummarySpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + value) { + if (summarySpecBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && summarySpec_ != null + && summarySpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.getDefaultInstance()) { + getSummarySpecBuilder().mergeFrom(value); + } else { + summarySpec_ = value; + } + } else { + summarySpecBuilder_.mergeFrom(value); } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; + if (summarySpec_ != null) { + bitField0_ |= 0x00000002; + onChanged(); } + return this; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .getDefaultInstance(); + /** + * + * + *
            +       * If `summarySpec` is not specified, summaries are not included in the
            +       * search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + */ + public Builder clearSummarySpec() { + bitField0_ = (bitField0_ & ~0x00000002); + summarySpec_ = null; + if (summarySpecBuilder_ != null) { + summarySpecBuilder_.dispose(); + summarySpecBuilder_ = null; } + onChanged(); + return this; + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + /** + * + * + *
            +       * If `summarySpec` is not specified, summaries are not included in the
            +       * search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .Builder + getSummarySpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSummarySpecFieldBuilder().getBuilder(); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; + /** + * + * + *
            +       * If `summarySpec` is not specified, summaries are not included in the
            +       * search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpecOrBuilder + getSummarySpecOrBuilder() { + if (summarySpecBuilder_ != null) { + return summarySpecBuilder_.getMessageOrBuilder(); + } else { + return summarySpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .getDefaultInstance() + : summarySpec_; } + } - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.fieldPath_ = fieldPath_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - vector_.makeImmutable(); - result.vector_ = vector_; - } + /** + * + * + *
            +       * If `summarySpec` is not specified, summaries are not included in the
            +       * search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpecOrBuilder> + internalGetSummarySpecFieldBuilder() { + if (summarySpecBuilder_ == null) { + summarySpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SummarySpecOrBuilder>(getSummarySpec(), getParentForChildren(), isClean()); + summarySpec_ = null; } + return summarySpecBuilder_; + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector) - other); - } else { - super.mergeFrom(other); - return this; - } - } + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + extractiveContentSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpecOrBuilder> + extractiveContentSpecBuilder_; - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .getDefaultInstance()) return this; - if (!other.getFieldPath().isEmpty()) { - fieldPath_ = other.fieldPath_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.vector_.isEmpty()) { - if (vector_.isEmpty()) { - vector_ = other.vector_; - vector_.makeImmutable(); - bitField0_ |= 0x00000002; - } else { - ensureVectorIsMutable(); - vector_.addAll(other.vector_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } + /** + * + * + *
            +       * If there is no extractive_content_spec provided, there will be no
            +       * extractive answer in the search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + * + * @return Whether the extractiveContentSpec field is set. + */ + public boolean hasExtractiveContentSpec() { + return ((bitField0_ & 0x00000004) != 0); + } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
            +       * If there is no extractive_content_spec provided, there will be no
            +       * extractive answer in the search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + * + * @return The extractiveContentSpec. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + getExtractiveContentSpec() { + if (extractiveContentSpecBuilder_ == null) { + return extractiveContentSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.getDefaultInstance() + : extractiveContentSpec_; + } else { + return extractiveContentSpecBuilder_.getMessage(); } + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
            +       * If there is no extractive_content_spec provided, there will be no
            +       * extractive answer in the search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + */ + public Builder setExtractiveContentSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + value) { + if (extractiveContentSpecBuilder_ == null) { + 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: - { - fieldPath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 21: - { - float v = input.readFloat(); - ensureVectorIsMutable(); - vector_.addFloat(v); - break; - } // case 21 - case 18: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - int alloc = length > 4096 ? 4096 : length; - ensureVectorIsMutable(alloc / 4); - while (input.getBytesUntilLimit() > 0) { - vector_.addFloat(input.readFloat()); - } - input.popLimit(limit); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; + extractiveContentSpec_ = value; + } else { + extractiveContentSpecBuilder_.setMessage(value); } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - private int bitField0_; - - private java.lang.Object fieldPath_ = ""; - - /** - * - * - *
            -         * Embedding field path in schema.
            -         * 
            - * - * string field_path = 1; - * - * @return The fieldPath. - */ - public java.lang.String getFieldPath() { - java.lang.Object ref = fieldPath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldPath_ = s; - return s; - } else { - return (java.lang.String) ref; - } + /** + * + * + *
            +       * If there is no extractive_content_spec provided, there will be no
            +       * extractive answer in the search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + */ + public Builder setExtractiveContentSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.Builder + builderForValue) { + if (extractiveContentSpecBuilder_ == null) { + extractiveContentSpec_ = builderForValue.build(); + } else { + extractiveContentSpecBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - /** - * - * - *
            -         * Embedding field path in schema.
            -         * 
            - * - * string field_path = 1; - * - * @return The bytes for fieldPath. - */ - public com.google.protobuf.ByteString getFieldPathBytes() { - java.lang.Object ref = fieldPath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fieldPath_ = b; - return b; + /** + * + * + *
            +       * If there is no extractive_content_spec provided, there will be no
            +       * extractive answer in the search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + */ + public Builder mergeExtractiveContentSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec + value) { + if (extractiveContentSpecBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && extractiveContentSpec_ != null + && extractiveContentSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.getDefaultInstance()) { + getExtractiveContentSpecBuilder().mergeFrom(value); } else { - return (com.google.protobuf.ByteString) ref; + extractiveContentSpec_ = value; } + } else { + extractiveContentSpecBuilder_.mergeFrom(value); } - - /** - * - * - *
            -         * Embedding field path in schema.
            -         * 
            - * - * string field_path = 1; - * - * @param value The fieldPath to set. - * @return This builder for chaining. - */ - public Builder setFieldPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - fieldPath_ = value; - bitField0_ |= 0x00000001; + if (extractiveContentSpec_ != null) { + bitField0_ |= 0x00000004; onChanged(); - return this; } + return this; + } - /** - * - * - *
            -         * Embedding field path in schema.
            -         * 
            - * - * string field_path = 1; - * - * @return This builder for chaining. - */ - public Builder clearFieldPath() { - fieldPath_ = getDefaultInstance().getFieldPath(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
            -         * Embedding field path in schema.
            -         * 
            - * - * string field_path = 1; - * - * @param value The bytes for fieldPath to set. - * @return This builder for chaining. - */ - public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - fieldPath_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.Internal.FloatList vector_ = emptyFloatList(); - - private void ensureVectorIsMutable() { - if (!vector_.isModifiable()) { - vector_ = makeMutableCopy(vector_); - } - bitField0_ |= 0x00000002; - } - - private void ensureVectorIsMutable(int capacity) { - if (!vector_.isModifiable()) { - vector_ = makeMutableCopy(vector_, capacity); - } - bitField0_ |= 0x00000002; - } - - /** - * - * - *
            -         * Query embedding vector.
            -         * 
            - * - * repeated float vector = 2; - * - * @return A list containing the vector. - */ - public java.util.List getVectorList() { - vector_.makeImmutable(); - return vector_; - } - - /** - * - * - *
            -         * Query embedding vector.
            -         * 
            - * - * repeated float vector = 2; - * - * @return The count of vector. - */ - public int getVectorCount() { - return vector_.size(); - } - - /** - * - * - *
            -         * Query embedding vector.
            -         * 
            - * - * repeated float vector = 2; - * - * @param index The index of the element to return. - * @return The vector at the given index. - */ - public float getVector(int index) { - return vector_.getFloat(index); + /** + * + * + *
            +       * If there is no extractive_content_spec provided, there will be no
            +       * extractive answer in the search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + */ + public Builder clearExtractiveContentSpec() { + bitField0_ = (bitField0_ & ~0x00000004); + extractiveContentSpec_ = null; + if (extractiveContentSpecBuilder_ != null) { + extractiveContentSpecBuilder_.dispose(); + extractiveContentSpecBuilder_ = null; } + onChanged(); + return this; + } - /** - * - * - *
            -         * Query embedding vector.
            -         * 
            - * - * repeated float vector = 2; - * - * @param index The index to set the value at. - * @param value The vector to set. - * @return This builder for chaining. - */ - public Builder setVector(int index, float value) { + /** + * + * + *
            +       * If there is no extractive_content_spec provided, there will be no
            +       * extractive answer in the search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.Builder + getExtractiveContentSpecBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetExtractiveContentSpecFieldBuilder().getBuilder(); + } - ensureVectorIsMutable(); - vector_.setFloat(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; + /** + * + * + *
            +       * If there is no extractive_content_spec provided, there will be no
            +       * extractive answer in the search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpecOrBuilder + getExtractiveContentSpecOrBuilder() { + if (extractiveContentSpecBuilder_ != null) { + return extractiveContentSpecBuilder_.getMessageOrBuilder(); + } else { + return extractiveContentSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.getDefaultInstance() + : extractiveContentSpec_; } + } - /** - * - * - *
            -         * Query embedding vector.
            -         * 
            - * - * repeated float vector = 2; - * - * @param value The vector to add. - * @return This builder for chaining. - */ - public Builder addVector(float value) { - - ensureVectorIsMutable(); - vector_.addFloat(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; + /** + * + * + *
            +       * If there is no extractive_content_spec provided, there will be no
            +       * extractive answer in the search response.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpecOrBuilder> + internalGetExtractiveContentSpecFieldBuilder() { + if (extractiveContentSpecBuilder_ == null) { + extractiveContentSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ExtractiveContentSpecOrBuilder>( + getExtractiveContentSpec(), getParentForChildren(), isClean()); + extractiveContentSpec_ = null; } + return extractiveContentSpecBuilder_; + } - /** - * - * - *
            -         * Query embedding vector.
            -         * 
            - * - * repeated float vector = 2; - * - * @param values The vector to add. - * @return This builder for chaining. - */ - public Builder addAllVector(java.lang.Iterable values) { - ensureVectorIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vector_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } + private int searchResultMode_ = 0; - /** - * - * - *
            -         * Query embedding vector.
            -         * 
            - * - * repeated float vector = 2; - * - * @return This builder for chaining. - */ - public Builder clearVector() { - vector_ = emptyFloatList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } + /** + * + * + *
            +       * Specifies the search result mode. If unspecified, the
            +       * search result mode defaults to `DOCUMENTS`.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @return The enum numeric value on the wire for searchResultMode. + */ + @java.lang.Override + public int getSearchResultModeValue() { + return searchResultMode_; + } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) + /** + * + * + *
            +       * Specifies the search result mode. If unspecified, the
            +       * search result mode defaults to `DOCUMENTS`.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @param value The enum numeric value on the wire for searchResultMode to set. + * @return This builder for chaining. + */ + public Builder setSearchResultModeValue(int value) { + searchResultMode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - DEFAULT_INSTANCE; + /** + * + * + *
            +       * Specifies the search result mode. If unspecified, the
            +       * search result mode defaults to `DOCUMENTS`.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @return The searchResultMode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode + getSearchResultMode() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode + result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.forNumber(searchResultMode_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .SearchResultMode.UNRECOGNIZED + : result; + } - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector(); + /** + * + * + *
            +       * Specifies the search result mode. If unspecified, the
            +       * search result mode defaults to `DOCUMENTS`.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @param value The searchResultMode to set. + * @return This builder for chaining. + */ + public Builder setSearchResultMode( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + searchResultMode_ = value.getNumber(); + onChanged(); + return this; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - getDefaultInstance() { - return DEFAULT_INSTANCE; + /** + * + * + *
            +       * Specifies the search result mode. If unspecified, the
            +       * search result mode defaults to `DOCUMENTS`.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; + * + * + * @return This builder for chaining. + */ + public Builder clearSearchResultMode() { + bitField0_ = (bitField0_ & ~0x00000008); + searchResultMode_ = 0; + onChanged(); + return this; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EmbeddingVector parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + chunkSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpecOrBuilder> + chunkSpecBuilder_; - public static com.google.protobuf.Parser parser() { - return PARSER; + /** + * + * + *
            +       * Specifies the chunk spec to be returned from the search response.
            +       * Only available if the
            +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            +       * is set to
            +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + * + * @return Whether the chunkSpec field is set. + */ + public boolean hasChunkSpec() { + return ((bitField0_ & 0x00000010) != 0); } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + /** + * + * + *
            +       * Specifies the chunk spec to be returned from the search response.
            +       * Only available if the
            +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            +       * is set to
            +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + * + * @return The chunkSpec. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + getChunkSpec() { + if (chunkSpecBuilder_ == null) { + return chunkSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .getDefaultInstance() + : chunkSpec_; + } else { + return chunkSpecBuilder_.getMessage(); + } } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + /** + * + * + *
            +       * Specifies the chunk spec to be returned from the search response.
            +       * Only available if the
            +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            +       * is set to
            +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + */ + public Builder setChunkSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec value) { + if (chunkSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + chunkSpec_ = value; + } else { + chunkSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; } - } - - public static final int EMBEDDING_VECTORS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> - embeddingVectors_; + /** + * + * + *
            +       * Specifies the chunk spec to be returned from the search response.
            +       * Only available if the
            +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            +       * is set to
            +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + */ + public Builder setChunkSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec.Builder + builderForValue) { + if (chunkSpecBuilder_ == null) { + chunkSpec_ = builderForValue.build(); + } else { + chunkSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Specifies the chunk spec to be returned from the search response.
            +       * Only available if the
            +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            +       * is set to
            +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + */ + public Builder mergeChunkSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec value) { + if (chunkSpecBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && chunkSpec_ != null + && chunkSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpec.getDefaultInstance()) { + getChunkSpecBuilder().mergeFrom(value); + } else { + chunkSpec_ = value; + } + } else { + chunkSpecBuilder_.mergeFrom(value); + } + if (chunkSpec_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Specifies the chunk spec to be returned from the search response.
            +       * Only available if the
            +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            +       * is set to
            +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + */ + public Builder clearChunkSpec() { + bitField0_ = (bitField0_ & ~0x00000010); + chunkSpec_ = null; + if (chunkSpecBuilder_ != null) { + chunkSpecBuilder_.dispose(); + chunkSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Specifies the chunk spec to be returned from the search response.
            +       * Only available if the
            +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            +       * is set to
            +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .Builder + getChunkSpecBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetChunkSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Specifies the chunk spec to be returned from the search response.
            +       * Only available if the
            +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            +       * is set to
            +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpecOrBuilder + getChunkSpecOrBuilder() { + if (chunkSpecBuilder_ != null) { + return chunkSpecBuilder_.getMessageOrBuilder(); + } else { + return chunkSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .getDefaultInstance() + : chunkSpec_; + } + } + + /** + * + * + *
            +       * Specifies the chunk spec to be returned from the search response.
            +       * Only available if the
            +       * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode]
            +       * is set to
            +       * [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpecOrBuilder> + internalGetChunkSpecFieldBuilder() { + if (chunkSpecBuilder_ == null) { + chunkSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.ChunkSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .ChunkSpecOrBuilder>(getChunkSpec(), getParentForChildren(), isClean()); + chunkSpec_ = null; + } + return chunkSpecBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContentSearchSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.SearchRequest.ContentSearchSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EmbeddingSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) + com.google.protobuf.MessageOrBuilder { /** * @@ -25469,12 +26090,9 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; * */ - @java.lang.Override - public java.util.List< + java.util.List< com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> - getEmbeddingVectorsList() { - return embeddingVectors_; - } + getEmbeddingVectorsList(); /** * @@ -25487,14 +26105,8 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; *
            */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder> - getEmbeddingVectorsOrBuilderList() { - return embeddingVectors_; - } + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + getEmbeddingVectors(int index); /** * @@ -25507,10 +26119,7 @@ public com.google.protobuf.Parser getParserForType() { * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; * */ - @java.lang.Override - public int getEmbeddingVectorsCount() { - return embeddingVectors_.size(); - } + int getEmbeddingVectorsCount(); /** * @@ -25523,11 +26132,11 @@ public int getEmbeddingVectorsCount() { * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; *
            */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - getEmbeddingVectors(int index) { - return embeddingVectors_.get(index); - } + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVectorOrBuilder> + getEmbeddingVectorsOrBuilderList(); /** * @@ -25540,426 +26149,211 @@ public int getEmbeddingVectorsCount() { * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; * */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder - getEmbeddingVectorsOrBuilder(int index) { - return embeddingVectors_.get(index); - } - - private byte memoizedIsInitialized = -1; + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVectorOrBuilder + getEmbeddingVectorsOrBuilder(int index); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * + * + *
            +   * The specification that uses customized query embedding vector to do
            +   * semantic document retrieval.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec} + */ + public static final class EmbeddingSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) + EmbeddingSpecOrBuilder { + private static final long serialVersionUID = 0L; - memoizedIsInitialized = 1; - return true; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EmbeddingSpec"); } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < embeddingVectors_.size(); i++) { - output.writeMessage(1, embeddingVectors_.get(i)); - } - getUnknownFields().writeTo(output); + // Use EmbeddingSpec.newBuilder() to construct. + private EmbeddingSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < embeddingVectors_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, embeddingVectors_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + private EmbeddingSpec() { + embeddingVectors_ = java.util.Collections.emptyList(); } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) obj; - - if (!getEmbeddingVectorsList().equals(other.getEmbeddingVectorsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor; } @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getEmbeddingVectorsCount() > 0) { - hash = (37 * hash) + EMBEDDING_VECTORS_FIELD_NUMBER; - hash = (53 * hash) + getEmbeddingVectorsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder.class); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public interface EmbeddingVectorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) + com.google.protobuf.MessageOrBuilder { - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +       * Embedding field path in schema.
            +       * 
            + * + * string field_path = 1; + * + * @return The fieldPath. + */ + java.lang.String getFieldPath(); - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +       * Embedding field path in schema.
            +       * 
            + * + * string field_path = 1; + * + * @return The bytes for fieldPath. + */ + com.google.protobuf.ByteString getFieldPathBytes(); - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +       * Query embedding vector.
            +       * 
            + * + * repeated float vector = 2; + * + * @return A list containing the vector. + */ + java.util.List getVectorList(); - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +       * Query embedding vector.
            +       * 
            + * + * repeated float vector = 2; + * + * @return The count of vector. + */ + int getVectorCount(); - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + /** + * + * + *
            +       * Query embedding vector.
            +       * 
            + * + * repeated float vector = 2; + * + * @param index The index of the element to return. + * @return The vector at the given index. + */ + float getVector(int index); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +     * Embedding vector.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector} + */ + public static final class EmbeddingVector extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) + EmbeddingVectorOrBuilder { + private static final long serialVersionUID = 0L; - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EmbeddingVector"); + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + // Use EmbeddingVector.newBuilder() to construct. + private EmbeddingVector(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + private EmbeddingVector() { + fieldPath_ = ""; + vector_ = emptyFloatList(); + } - /** - * - * - *
            -     * The specification that uses customized query embedding vector to do
            -     * semantic document retrieval.
            -     * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder.class); - } - - // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (embeddingVectorsBuilder_ == null) { - embeddingVectors_ = java.util.Collections.emptyList(); - } else { - embeddingVectors_ = null; - embeddingVectorsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result) { - if (embeddingVectorsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - embeddingVectors_ = java.util.Collections.unmodifiableList(embeddingVectors_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.embeddingVectors_ = embeddingVectors_; - } else { - result.embeddingVectors_ = embeddingVectorsBuilder_.build(); - } - } - - private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) { - return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec other) { - if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .getDefaultInstance()) return this; - if (embeddingVectorsBuilder_ == null) { - if (!other.embeddingVectors_.isEmpty()) { - if (embeddingVectors_.isEmpty()) { - embeddingVectors_ = other.embeddingVectors_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEmbeddingVectorsIsMutable(); - embeddingVectors_.addAll(other.embeddingVectors_); - } - onChanged(); - } - } else { - if (!other.embeddingVectors_.isEmpty()) { - if (embeddingVectorsBuilder_.isEmpty()) { - embeddingVectorsBuilder_.dispose(); - embeddingVectorsBuilder_ = null; - embeddingVectors_ = other.embeddingVectors_; - bitField0_ = (bitField0_ & ~0x00000001); - embeddingVectorsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetEmbeddingVectorsFieldBuilder() - : null; - } else { - embeddingVectorsBuilder_.addAllMessages(other.embeddingVectors_); - } - } - } - 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.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector - m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector.parser(), - extensionRegistry); - if (embeddingVectorsBuilder_ == null) { - ensureEmbeddingVectorsIsMutable(); - embeddingVectors_.add(m); - } else { - embeddingVectorsBuilder_.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; + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder.class); } - private int bitField0_; - - private java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> - embeddingVectors_ = java.util.Collections.emptyList(); - - private void ensureEmbeddingVectorsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - embeddingVectors_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector>(embeddingVectors_); - bitField0_ |= 0x00000001; - } - } + public static final int FIELD_PATH_FIELD_NUMBER = 1; - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder> - embeddingVectorsBuilder_; + @SuppressWarnings("serial") + private volatile java.lang.Object fieldPath_ = ""; /** * * *
            -       * The embedding vector used for retrieval. Limit to 1.
            +       * Embedding field path in schema.
                    * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * string field_path = 1; + * + * @return The fieldPath. */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> - getEmbeddingVectorsList() { - if (embeddingVectorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(embeddingVectors_); + @java.lang.Override + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; } else { - return embeddingVectorsBuilder_.getMessageList(); + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldPath_ = s; + return s; } } @@ -25967,956 +26361,905 @@ private void ensureEmbeddingVectorsIsMutable() { * * *
            -       * The embedding vector used for retrieval. Limit to 1.
            +       * Embedding field path in schema.
                    * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * string field_path = 1; + * + * @return The bytes for fieldPath. */ - public int getEmbeddingVectorsCount() { - if (embeddingVectorsBuilder_ == null) { - return embeddingVectors_.size(); + @java.lang.Override + public com.google.protobuf.ByteString getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldPath_ = b; + return b; } else { - return embeddingVectorsBuilder_.getCount(); + return (com.google.protobuf.ByteString) ref; } } + public static final int VECTOR_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.FloatList vector_ = emptyFloatList(); + /** * * *
            -       * The embedding vector used for retrieval. Limit to 1.
            +       * Query embedding vector.
                    * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated float vector = 2; + * + * @return A list containing the vector. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - getEmbeddingVectors(int index) { - if (embeddingVectorsBuilder_ == null) { - return embeddingVectors_.get(index); - } else { - return embeddingVectorsBuilder_.getMessage(index); - } + @java.lang.Override + public java.util.List getVectorList() { + return vector_; } /** * * *
            -       * The embedding vector used for retrieval. Limit to 1.
            +       * Query embedding vector.
                    * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated float vector = 2; + * + * @return The count of vector. */ - public Builder setEmbeddingVectors( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - value) { - if (embeddingVectorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmbeddingVectorsIsMutable(); - embeddingVectors_.set(index, value); - onChanged(); - } else { - embeddingVectorsBuilder_.setMessage(index, value); - } - return this; + public int getVectorCount() { + return vector_.size(); } /** * * *
            -       * The embedding vector used for retrieval. Limit to 1.
            +       * Query embedding vector.
                    * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * repeated float vector = 2; + * + * @param index The index of the element to return. + * @return The vector at the given index. */ - public Builder setEmbeddingVectors( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder - builderForValue) { - if (embeddingVectorsBuilder_ == null) { - ensureEmbeddingVectorsIsMutable(); - embeddingVectors_.set(index, builderForValue.build()); - onChanged(); - } else { - embeddingVectorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; + public float getVector(int index) { + return vector_.getFloat(index); } - /** - * - * - *
            -       * The embedding vector used for retrieval. Limit to 1.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public Builder addEmbeddingVectors( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - value) { - if (embeddingVectorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmbeddingVectorsIsMutable(); - embeddingVectors_.add(value); - onChanged(); - } else { - embeddingVectorsBuilder_.addMessage(value); - } - return this; + private int vectorMemoizedSerializedSize = -1; + + 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; } - /** - * - * - *
            -       * The embedding vector used for retrieval. Limit to 1.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public Builder addEmbeddingVectors( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - value) { - if (embeddingVectorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEmbeddingVectorsIsMutable(); - embeddingVectors_.add(index, value); - onChanged(); - } else { - embeddingVectorsBuilder_.addMessage(index, value); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fieldPath_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, fieldPath_); } - return this; + if (getVectorList().size() > 0) { + output.writeUInt32NoTag(18); + output.writeUInt32NoTag(vectorMemoizedSerializedSize); + } + for (int i = 0; i < vector_.size(); i++) { + output.writeFloatNoTag(vector_.getFloat(i)); + } + getUnknownFields().writeTo(output); } - /** - * - * - *
            -       * The embedding vector used for retrieval. Limit to 1.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public Builder addEmbeddingVectors( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder - builderForValue) { - if (embeddingVectorsBuilder_ == null) { - ensureEmbeddingVectorsIsMutable(); - embeddingVectors_.add(builderForValue.build()); - onChanged(); - } else { - embeddingVectorsBuilder_.addMessage(builderForValue.build()); + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fieldPath_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, fieldPath_); } - return this; + { + int dataSize = 0; + dataSize = 4 * getVectorList().size(); + size += dataSize; + if (!getVectorList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + vectorMemoizedSerializedSize = dataSize; + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } - /** - * - * - *
            -       * The embedding vector used for retrieval. Limit to 1.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public Builder addEmbeddingVectors( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder - builderForValue) { - if (embeddingVectorsBuilder_ == null) { - ensureEmbeddingVectorsIsMutable(); - embeddingVectors_.add(index, builderForValue.build()); - onChanged(); - } else { - embeddingVectorsBuilder_.addMessage(index, builderForValue.build()); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - return this; + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) + obj; + + if (!getFieldPath().equals(other.getFieldPath())) return false; + if (!getVectorList().equals(other.getVectorList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - /** - * - * - *
            -       * The embedding vector used for retrieval. Limit to 1.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public Builder addAllEmbeddingVectors( - java.lang.Iterable< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector> - values) { - if (embeddingVectorsBuilder_ == null) { - ensureEmbeddingVectorsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, embeddingVectors_); - onChanged(); - } else { - embeddingVectorsBuilder_.addAllMessages(values); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - return this; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FIELD_PATH_FIELD_NUMBER; + hash = (53 * hash) + getFieldPath().hashCode(); + if (getVectorCount() > 0) { + hash = (37 * hash) + VECTOR_FIELD_NUMBER; + hash = (53 * hash) + getVectorList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - /** - * - * - *
            -       * The embedding vector used for retrieval. Limit to 1.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public Builder clearEmbeddingVectors() { - if (embeddingVectorsBuilder_ == null) { - embeddingVectors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - embeddingVectorsBuilder_.clear(); - } - return this; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * - * - *
            -       * The embedding vector used for retrieval. Limit to 1.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public Builder removeEmbeddingVectors(int index) { - if (embeddingVectorsBuilder_ == null) { - ensureEmbeddingVectorsIsMutable(); - embeddingVectors_.remove(index); - onChanged(); - } else { - embeddingVectorsBuilder_.remove(index); - } - return this; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - * - * - *
            -       * The embedding vector used for retrieval. Limit to 1.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder - getEmbeddingVectorsBuilder(int index) { - return internalGetEmbeddingVectorsFieldBuilder().getBuilder(index); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * - * - *
            -       * The embedding vector used for retrieval. Limit to 1.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder - getEmbeddingVectorsOrBuilder(int index) { - if (embeddingVectorsBuilder_ == null) { - return embeddingVectors_.get(index); - } else { - return embeddingVectorsBuilder_.getMessageOrBuilder(index); - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - * - * - *
            -       * The embedding vector used for retrieval. Limit to 1.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder> - getEmbeddingVectorsOrBuilderList() { - if (embeddingVectorsBuilder_ != null) { - return embeddingVectorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(embeddingVectors_); - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - /** - * - * - *
            -       * The embedding vector used for retrieval. Limit to 1.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder - addEmbeddingVectorsBuilder() { - return internalGetEmbeddingVectorsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .getDefaultInstance()); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - * - * - *
            -       * The embedding vector used for retrieval. Limit to 1.
            -       * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder - addEmbeddingVectorsBuilder(int index) { - return internalGetEmbeddingVectorsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .getDefaultInstance()); + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * * *
            -       * The embedding vector used for retrieval. Limit to 1.
            +       * Embedding vector.
                    * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; - * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector} */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder> - getEmbeddingVectorsBuilderList() { - return internalGetEmbeddingVectorsFieldBuilder().getBuilderList(); - } + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVectorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; + } - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector - .Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder> - internalGetEmbeddingVectorsFieldBuilder() { - if (embeddingVectorsBuilder_ == null) { - embeddingVectorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector, + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_fieldAccessorTable + .ensureFieldAccessorsInitialized( com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVector.Builder, + .EmbeddingVector.class, com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - .EmbeddingVectorOrBuilder>( - embeddingVectors_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - embeddingVectors_ = null; + .EmbeddingVector.Builder.class); } - return embeddingVectorsBuilder_; - } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.newBuilder() + private Builder() {} - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - DEFAULT_INSTANCE; + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec(); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fieldPath_ = ""; + vector_ = emptyFloatList(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_EmbeddingVector_descriptor; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EmbeddingSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } - }; + return result; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fieldPath_ = fieldPath_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + vector_.makeImmutable(); + result.vector_ = vector_; + } + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector) + other); + } else { + super.mergeFrom(other); + return this; + } + } - public interface NaturalLanguageQueryUnderstandingSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec) - com.google.protobuf.MessageOrBuilder { + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .getDefaultInstance()) return this; + if (!other.getFieldPath().isEmpty()) { + fieldPath_ = other.fieldPath_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.vector_.isEmpty()) { + if (vector_.isEmpty()) { + vector_ = other.vector_; + vector_.makeImmutable(); + bitField0_ |= 0x00000002; + } else { + ensureVectorIsMutable(); + vector_.addAll(other.vector_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
            -     * The condition under which filter extraction should occur.
            -     * Default to [Condition.DISABLED][].
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; - * - * - * @return The enum numeric value on the wire for filterExtractionCondition. - */ - int getFilterExtractionConditionValue(); + @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: + { + fieldPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 21: + { + float v = input.readFloat(); + ensureVectorIsMutable(); + vector_.addFloat(v); + break; + } // case 21 + case 18: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensureVectorIsMutable(alloc / 4); + while (input.getBytesUntilLimit() > 0) { + vector_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object fieldPath_ = ""; + + /** + * + * + *
            +         * Embedding field path in schema.
            +         * 
            + * + * string field_path = 1; + * + * @return The fieldPath. + */ + public java.lang.String getFieldPath() { + java.lang.Object ref = fieldPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Embedding field path in schema.
            +         * 
            + * + * string field_path = 1; + * + * @return The bytes for fieldPath. + */ + public com.google.protobuf.ByteString getFieldPathBytes() { + java.lang.Object ref = fieldPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Embedding field path in schema.
            +         * 
            + * + * string field_path = 1; + * + * @param value The fieldPath to set. + * @return This builder for chaining. + */ + public Builder setFieldPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Embedding field path in schema.
            +         * 
            + * + * string field_path = 1; + * + * @return This builder for chaining. + */ + public Builder clearFieldPath() { + fieldPath_ = getDefaultInstance().getFieldPath(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Embedding field path in schema.
            +         * 
            + * + * string field_path = 1; + * + * @param value The bytes for fieldPath to set. + * @return This builder for chaining. + */ + public Builder setFieldPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.FloatList vector_ = emptyFloatList(); + + private void ensureVectorIsMutable() { + if (!vector_.isModifiable()) { + vector_ = makeMutableCopy(vector_); + } + bitField0_ |= 0x00000002; + } + + private void ensureVectorIsMutable(int capacity) { + if (!vector_.isModifiable()) { + vector_ = makeMutableCopy(vector_, capacity); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
            +         * Query embedding vector.
            +         * 
            + * + * repeated float vector = 2; + * + * @return A list containing the vector. + */ + public java.util.List getVectorList() { + vector_.makeImmutable(); + return vector_; + } + + /** + * + * + *
            +         * Query embedding vector.
            +         * 
            + * + * repeated float vector = 2; + * + * @return The count of vector. + */ + public int getVectorCount() { + return vector_.size(); + } + + /** + * + * + *
            +         * Query embedding vector.
            +         * 
            + * + * repeated float vector = 2; + * + * @param index The index of the element to return. + * @return The vector at the given index. + */ + public float getVector(int index) { + return vector_.getFloat(index); + } + + /** + * + * + *
            +         * Query embedding vector.
            +         * 
            + * + * repeated float vector = 2; + * + * @param index The index to set the value at. + * @param value The vector to set. + * @return This builder for chaining. + */ + public Builder setVector(int index, float value) { + + ensureVectorIsMutable(); + vector_.setFloat(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Query embedding vector.
            +         * 
            + * + * repeated float vector = 2; + * + * @param value The vector to add. + * @return This builder for chaining. + */ + public Builder addVector(float value) { + + ensureVectorIsMutable(); + vector_.addFloat(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Query embedding vector.
            +         * 
            + * + * repeated float vector = 2; + * + * @param values The vector to add. + * @return This builder for chaining. + */ + public Builder addAllVector(java.lang.Iterable values) { + ensureVectorIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vector_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Query embedding vector.
            +         * 
            + * + * repeated float vector = 2; + * + * @return This builder for chaining. + */ + public Builder clearVector() { + vector_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EmbeddingVector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int EMBEDDING_VECTORS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> + embeddingVectors_; /** * * *
            -     * The condition under which filter extraction should occur.
            -     * Default to [Condition.DISABLED][].
            +     * The embedding vector used for retrieval. Limit to 1.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; * - * - * @return The filterExtractionCondition. */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec - .FilterExtractionCondition - getFilterExtractionCondition(); + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> + getEmbeddingVectorsList() { + return embeddingVectors_; + } /** * * *
            -     * Field names used for location-based filtering, where geolocation filters
            -     * are detected in natural language search queries.
            -     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            -     *
            -     * If this field is set, it overrides the field names set in
            -     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
            +     * The embedding vector used for retrieval. Limit to 1.
                  * 
            * - * repeated string geo_search_query_detection_field_names = 2; - * - * @return A list containing the geoSearchQueryDetectionFieldNames. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * */ - java.util.List getGeoSearchQueryDetectionFieldNamesList(); + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVectorOrBuilder> + getEmbeddingVectorsOrBuilderList() { + return embeddingVectors_; + } /** * * *
            -     * Field names used for location-based filtering, where geolocation filters
            -     * are detected in natural language search queries.
            -     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            -     *
            -     * If this field is set, it overrides the field names set in
            -     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
            +     * The embedding vector used for retrieval. Limit to 1.
                  * 
            * - * repeated string geo_search_query_detection_field_names = 2; - * - * @return The count of geoSearchQueryDetectionFieldNames. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * */ - int getGeoSearchQueryDetectionFieldNamesCount(); + @java.lang.Override + public int getEmbeddingVectorsCount() { + return embeddingVectors_.size(); + } /** * * *
            -     * Field names used for location-based filtering, where geolocation filters
            -     * are detected in natural language search queries.
            -     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            -     *
            -     * If this field is set, it overrides the field names set in
            -     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
            +     * The embedding vector used for retrieval. Limit to 1.
                  * 
            * - * repeated string geo_search_query_detection_field_names = 2; - * - * @param index The index of the element to return. - * @return The geoSearchQueryDetectionFieldNames at the given index. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * */ - java.lang.String getGeoSearchQueryDetectionFieldNames(int index); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + getEmbeddingVectors(int index) { + return embeddingVectors_.get(index); + } /** * * *
            -     * Field names used for location-based filtering, where geolocation filters
            -     * are detected in natural language search queries.
            -     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            -     *
            -     * If this field is set, it overrides the field names set in
            -     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
            +     * The embedding vector used for retrieval. Limit to 1.
                  * 
            * - * repeated string geo_search_query_detection_field_names = 2; - * - * @param index The index of the value to return. - * @return The bytes of the geoSearchQueryDetectionFieldNames at the given index. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * */ - com.google.protobuf.ByteString getGeoSearchQueryDetectionFieldNamesBytes(int index); - } - - /** - * - * - *
            -   * Specification to enable natural language understanding capabilities for
            -   * search requests.
            -   * 
            - * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec} - */ - public static final class NaturalLanguageQueryUnderstandingSpec - extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec) - NaturalLanguageQueryUnderstandingSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "NaturalLanguageQueryUnderstandingSpec"); - } - - // Use NaturalLanguageQueryUnderstandingSpec.newBuilder() to construct. - private NaturalLanguageQueryUnderstandingSpec( - com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private NaturalLanguageQueryUnderstandingSpec() { - filterExtractionCondition_ = 0; - geoSearchQueryDetectionFieldNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.Builder.class); - } - - /** - * - * - *
            -     * Enum describing under which condition filter extraction should occur.
            -     * 
            - * - * Protobuf enum {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition} - */ - public enum FilterExtractionCondition implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
            -       * Server behavior defaults to [Condition.DISABLED][].
            -       * 
            - * - * CONDITION_UNSPECIFIED = 0; - */ - CONDITION_UNSPECIFIED(0), - /** - * - * - *
            -       * Disables NL filter extraction.
            -       * 
            - * - * DISABLED = 1; - */ - DISABLED(1), - /** - * - * - *
            -       * Enables NL filter extraction.
            -       * 
            - * - * ENABLED = 2; - */ - ENABLED(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "FilterExtractionCondition"); - } - - /** - * - * - *
            -       * Server behavior defaults to [Condition.DISABLED][].
            -       * 
            - * - * CONDITION_UNSPECIFIED = 0; - */ - public static final int CONDITION_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
            -       * Disables NL filter extraction.
            -       * 
            - * - * DISABLED = 1; - */ - public static final int DISABLED_VALUE = 1; - - /** - * - * - *
            -       * Enables NL filter extraction.
            -       * 
            - * - * 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 FilterExtractionCondition 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 FilterExtractionCondition forNumber(int value) { - switch (value) { - case 0: - return CONDITION_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 FilterExtractionCondition findValueByNumber(int number) { - return FilterExtractionCondition.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final FilterExtractionCondition[] VALUES = values(); - - public static FilterExtractionCondition 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 FilterExtractionCondition(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition) - } - - public static final int FILTER_EXTRACTION_CONDITION_FIELD_NUMBER = 1; - private int filterExtractionCondition_ = 0; - - /** - * - * - *
            -     * The condition under which filter extraction should occur.
            -     * Default to [Condition.DISABLED][].
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; - * - * - * @return The enum numeric value on the wire for filterExtractionCondition. - */ - @java.lang.Override - public int getFilterExtractionConditionValue() { - return filterExtractionCondition_; - } - - /** - * - * - *
            -     * The condition under which filter extraction should occur.
            -     * Default to [Condition.DISABLED][].
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; - * - * - * @return The filterExtractionCondition. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition - getFilterExtractionCondition() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec - .FilterExtractionCondition - result = - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.forNumber( - filterExtractionCondition_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.UNRECOGNIZED - : result; - } - - public static final int GEO_SEARCH_QUERY_DETECTION_FIELD_NAMES_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList geoSearchQueryDetectionFieldNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
            -     * Field names used for location-based filtering, where geolocation filters
            -     * are detected in natural language search queries.
            -     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            -     *
            -     * If this field is set, it overrides the field names set in
            -     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
            -     * 
            - * - * repeated string geo_search_query_detection_field_names = 2; - * - * @return A list containing the geoSearchQueryDetectionFieldNames. - */ - public com.google.protobuf.ProtocolStringList getGeoSearchQueryDetectionFieldNamesList() { - return geoSearchQueryDetectionFieldNames_; - } - - /** - * - * - *
            -     * Field names used for location-based filtering, where geolocation filters
            -     * are detected in natural language search queries.
            -     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            -     *
            -     * If this field is set, it overrides the field names set in
            -     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
            -     * 
            - * - * repeated string geo_search_query_detection_field_names = 2; - * - * @return The count of geoSearchQueryDetectionFieldNames. - */ - public int getGeoSearchQueryDetectionFieldNamesCount() { - return geoSearchQueryDetectionFieldNames_.size(); - } - - /** - * - * - *
            -     * Field names used for location-based filtering, where geolocation filters
            -     * are detected in natural language search queries.
            -     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            -     *
            -     * If this field is set, it overrides the field names set in
            -     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
            -     * 
            - * - * repeated string geo_search_query_detection_field_names = 2; - * - * @param index The index of the element to return. - * @return The geoSearchQueryDetectionFieldNames at the given index. - */ - public java.lang.String getGeoSearchQueryDetectionFieldNames(int index) { - return geoSearchQueryDetectionFieldNames_.get(index); - } - - /** - * - * - *
            -     * Field names used for location-based filtering, where geolocation filters
            -     * are detected in natural language search queries.
            -     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            -     *
            -     * If this field is set, it overrides the field names set in
            -     * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
            -     * 
            - * - * repeated string geo_search_query_detection_field_names = 2; - * - * @param index The index of the value to return. - * @return The bytes of the geoSearchQueryDetectionFieldNames at the given index. - */ - public com.google.protobuf.ByteString getGeoSearchQueryDetectionFieldNamesBytes(int index) { - return geoSearchQueryDetectionFieldNames_.getByteString(index); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVectorOrBuilder + getEmbeddingVectorsOrBuilder(int index) { + return embeddingVectors_.get(index); } private byte memoizedIsInitialized = -1; @@ -26933,15 +27276,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (filterExtractionCondition_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.CONDITION_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, filterExtractionCondition_); - } - for (int i = 0; i < geoSearchQueryDetectionFieldNames_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString( - output, 2, geoSearchQueryDetectionFieldNames_.getRaw(i)); + for (int i = 0; i < embeddingVectors_.size(); i++) { + output.writeMessage(1, embeddingVectors_.get(i)); } getUnknownFields().writeTo(output); } @@ -26952,20 +27288,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (filterExtractionCondition_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.CONDITION_UNSPECIFIED - .getNumber()) { + for (int i = 0; i < embeddingVectors_.size(); i++) { size += - com.google.protobuf.CodedOutputStream.computeEnumSize(1, filterExtractionCondition_); - } - { - int dataSize = 0; - for (int i = 0; i < geoSearchQueryDetectionFieldNames_.size(); i++) { - dataSize += computeStringSizeNoTag(geoSearchQueryDetectionFieldNames_.getRaw(i)); - } - size += dataSize; - size += 1 * getGeoSearchQueryDetectionFieldNamesList().size(); + com.google.protobuf.CodedOutputStream.computeMessageSize(1, embeddingVectors_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -26977,21 +27302,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj - instanceof - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec - other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec) - obj; + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) obj; - if (filterExtractionCondition_ != other.filterExtractionCondition_) return false; - if (!getGeoSearchQueryDetectionFieldNamesList() - .equals(other.getGeoSearchQueryDetectionFieldNamesList())) return false; + if (!getEmbeddingVectorsList().equals(other.getEmbeddingVectorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -27003,84 +27320,68 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FILTER_EXTRACTION_CONDITION_FIELD_NUMBER; - hash = (53 * hash) + filterExtractionCondition_; - if (getGeoSearchQueryDetectionFieldNamesCount() > 0) { - hash = (37 * hash) + GEO_SEARCH_QUERY_DETECTION_FIELD_NAMES_FIELD_NUMBER; - hash = (53 * hash) + getGeoSearchQueryDetectionFieldNamesList().hashCode(); + if (getEmbeddingVectorsCount() > 0) { + hash = (37 * hash) + EMBEDDING_VECTORS_FIELD_NUMBER; + hash = (53 * hash) + getEmbeddingVectorsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec 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.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + 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.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -27088,18 +27389,15 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -27114,8 +27412,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec - prototype) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -27134,37 +27431,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
            -     * Specification to enable natural language understanding capabilities for
            -     * search requests.
            +     * The specification that uses customized query embedding vector to do
            +     * semantic document retrieval.
                  * 
            * - * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec) - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpecOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder.class); } // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder() + // com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -27175,31 +27468,32 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - filterExtractionCondition_ = 0; - geoSearchQueryDetectionFieldNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (embeddingVectorsBuilder_ == null) { + embeddingVectors_ = java.util.Collections.emptyList(); + } else { + embeddingVectors_ = null; + embeddingVectorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_EmbeddingSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec - result = buildPartial(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -27207,13 +27501,10 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec - result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec(this); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -27221,30 +27512,29 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return result; } + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result) { + if (embeddingVectorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + embeddingVectors_ = java.util.Collections.unmodifiableList(embeddingVectors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.embeddingVectors_ = embeddingVectors_; + } else { + result.embeddingVectors_ = embeddingVectorsBuilder_.build(); + } + } + private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - result) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.filterExtractionCondition_ = filterExtractionCondition_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - geoSearchQueryDetectionFieldNames_.makeImmutable(); - result.geoSearchQueryDetectionFieldNames_ = geoSearchQueryDetectionFieldNames_; - } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) { return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec) - other); + (com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) other); } else { super.mergeFrom(other); return this; @@ -27252,24 +27542,36 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - other) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec other) { if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance()) return this; - if (other.filterExtractionCondition_ != 0) { - setFilterExtractionConditionValue(other.getFilterExtractionConditionValue()); - } - if (!other.geoSearchQueryDetectionFieldNames_.isEmpty()) { - if (geoSearchQueryDetectionFieldNames_.isEmpty()) { - geoSearchQueryDetectionFieldNames_ = other.geoSearchQueryDetectionFieldNames_; - bitField0_ |= 0x00000002; - } else { - ensureGeoSearchQueryDetectionFieldNamesIsMutable(); - geoSearchQueryDetectionFieldNames_.addAll(other.geoSearchQueryDetectionFieldNames_); + == com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .getDefaultInstance()) return this; + if (embeddingVectorsBuilder_ == null) { + if (!other.embeddingVectors_.isEmpty()) { + if (embeddingVectors_.isEmpty()) { + embeddingVectors_ = other.embeddingVectors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.addAll(other.embeddingVectors_); + } + onChanged(); + } + } else { + if (!other.embeddingVectors_.isEmpty()) { + if (embeddingVectorsBuilder_.isEmpty()) { + embeddingVectorsBuilder_.dispose(); + embeddingVectorsBuilder_ = null; + embeddingVectors_ = other.embeddingVectors_; + bitField0_ = (bitField0_ & ~0x00000001); + embeddingVectorsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEmbeddingVectorsFieldBuilder() + : null; + } else { + embeddingVectorsBuilder_.addAllMessages(other.embeddingVectors_); + } } - onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -27297,19 +27599,23 @@ public Builder mergeFrom( case 0: done = true; break; - case 8: - { - filterExtractionCondition_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: + case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureGeoSearchQueryDetectionFieldNamesIsMutable(); - geoSearchQueryDetectionFieldNames_.add(s); + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector.parser(), + extensionRegistry); + if (embeddingVectorsBuilder_ == null) { + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.add(m); + } else { + embeddingVectorsBuilder_.addMessage(m); + } break; - } // case 18 + } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -27329,104 +27635,113 @@ public Builder mergeFrom( private int bitField0_; - private int filterExtractionCondition_ = 0; + private java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> + embeddingVectors_ = java.util.Collections.emptyList(); + + private void ensureEmbeddingVectorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + embeddingVectors_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector>(embeddingVectors_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVectorOrBuilder> + embeddingVectorsBuilder_; /** * * *
            -       * The condition under which filter extraction should occur.
            -       * Default to [Condition.DISABLED][].
            +       * The embedding vector used for retrieval. Limit to 1.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; * - * - * @return The enum numeric value on the wire for filterExtractionCondition. */ - @java.lang.Override - public int getFilterExtractionConditionValue() { - return filterExtractionCondition_; + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector> + getEmbeddingVectorsList() { + if (embeddingVectorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(embeddingVectors_); + } else { + return embeddingVectorsBuilder_.getMessageList(); + } } /** * * *
            -       * The condition under which filter extraction should occur.
            -       * Default to [Condition.DISABLED][].
            +       * The embedding vector used for retrieval. Limit to 1.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; * - * - * @param value The enum numeric value on the wire for filterExtractionCondition to set. - * @return This builder for chaining. */ - public Builder setFilterExtractionConditionValue(int value) { - filterExtractionCondition_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + public int getEmbeddingVectorsCount() { + if (embeddingVectorsBuilder_ == null) { + return embeddingVectors_.size(); + } else { + return embeddingVectorsBuilder_.getCount(); + } } /** * * *
            -       * The condition under which filter extraction should occur.
            -       * Default to [Condition.DISABLED][].
            +       * The embedding vector used for retrieval. Limit to 1.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; * - * - * @return The filterExtractionCondition. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition - getFilterExtractionCondition() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec - .FilterExtractionCondition - result = - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.forNumber( - filterExtractionCondition_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.UNRECOGNIZED - : result; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + getEmbeddingVectors(int index) { + if (embeddingVectorsBuilder_ == null) { + return embeddingVectors_.get(index); + } else { + return embeddingVectorsBuilder_.getMessage(index); + } } /** * * *
            -       * The condition under which filter extraction should occur.
            -       * Default to [Condition.DISABLED][].
            +       * The embedding vector used for retrieval. Limit to 1.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; * - * - * @param value The filterExtractionCondition to set. - * @return This builder for chaining. */ - public Builder setFilterExtractionCondition( - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition + public Builder setEmbeddingVectors( + int index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector value) { - if (value == null) { - throw new NullPointerException(); + if (embeddingVectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.set(index, value); + onChanged(); + } else { + embeddingVectorsBuilder_.setMessage(index, value); } - bitField0_ |= 0x00000001; - filterExtractionCondition_ = value.getNumber(); - onChanged(); return this; } @@ -27434,143 +27749,158 @@ public Builder setFilterExtractionCondition( * * *
            -       * The condition under which filter extraction should occur.
            -       * Default to [Condition.DISABLED][].
            +       * The embedding vector used for retrieval. Limit to 1.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; * - * - * @return This builder for chaining. */ - public Builder clearFilterExtractionCondition() { - bitField0_ = (bitField0_ & ~0x00000001); - filterExtractionCondition_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList geoSearchQueryDetectionFieldNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureGeoSearchQueryDetectionFieldNamesIsMutable() { - if (!geoSearchQueryDetectionFieldNames_.isModifiable()) { - geoSearchQueryDetectionFieldNames_ = - new com.google.protobuf.LazyStringArrayList(geoSearchQueryDetectionFieldNames_); + public Builder setEmbeddingVectors( + int index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder + builderForValue) { + if (embeddingVectorsBuilder_ == null) { + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.set(index, builderForValue.build()); + onChanged(); + } else { + embeddingVectorsBuilder_.setMessage(index, builderForValue.build()); } - bitField0_ |= 0x00000002; + return this; } /** * * *
            -       * Field names used for location-based filtering, where geolocation filters
            -       * are detected in natural language search queries.
            -       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            -       *
            -       * If this field is set, it overrides the field names set in
            -       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
            +       * The embedding vector used for retrieval. Limit to 1.
                    * 
            * - * repeated string geo_search_query_detection_field_names = 2; - * - * @return A list containing the geoSearchQueryDetectionFieldNames. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * */ - public com.google.protobuf.ProtocolStringList getGeoSearchQueryDetectionFieldNamesList() { - geoSearchQueryDetectionFieldNames_.makeImmutable(); - return geoSearchQueryDetectionFieldNames_; + public Builder addEmbeddingVectors( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + value) { + if (embeddingVectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.add(value); + onChanged(); + } else { + embeddingVectorsBuilder_.addMessage(value); + } + return this; } /** * * *
            -       * Field names used for location-based filtering, where geolocation filters
            -       * are detected in natural language search queries.
            -       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            -       *
            -       * If this field is set, it overrides the field names set in
            -       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
            +       * The embedding vector used for retrieval. Limit to 1.
                    * 
            * - * repeated string geo_search_query_detection_field_names = 2; - * - * @return The count of geoSearchQueryDetectionFieldNames. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * */ - public int getGeoSearchQueryDetectionFieldNamesCount() { - return geoSearchQueryDetectionFieldNames_.size(); + public Builder addEmbeddingVectors( + int index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + value) { + if (embeddingVectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.add(index, value); + onChanged(); + } else { + embeddingVectorsBuilder_.addMessage(index, value); + } + return this; } /** * * *
            -       * Field names used for location-based filtering, where geolocation filters
            -       * are detected in natural language search queries.
            -       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            -       *
            -       * If this field is set, it overrides the field names set in
            -       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
            +       * The embedding vector used for retrieval. Limit to 1.
                    * 
            * - * repeated string geo_search_query_detection_field_names = 2; - * - * @param index The index of the element to return. - * @return The geoSearchQueryDetectionFieldNames at the given index. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * */ - public java.lang.String getGeoSearchQueryDetectionFieldNames(int index) { - return geoSearchQueryDetectionFieldNames_.get(index); + public Builder addEmbeddingVectors( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder + builderForValue) { + if (embeddingVectorsBuilder_ == null) { + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.add(builderForValue.build()); + onChanged(); + } else { + embeddingVectorsBuilder_.addMessage(builderForValue.build()); + } + return this; } /** * * *
            -       * Field names used for location-based filtering, where geolocation filters
            -       * are detected in natural language search queries.
            -       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            -       *
            -       * If this field is set, it overrides the field names set in
            -       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
            +       * The embedding vector used for retrieval. Limit to 1.
                    * 
            * - * repeated string geo_search_query_detection_field_names = 2; - * - * @param index The index of the value to return. - * @return The bytes of the geoSearchQueryDetectionFieldNames at the given index. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * */ - public com.google.protobuf.ByteString getGeoSearchQueryDetectionFieldNamesBytes(int index) { - return geoSearchQueryDetectionFieldNames_.getByteString(index); + public Builder addEmbeddingVectors( + int index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder + builderForValue) { + if (embeddingVectorsBuilder_ == null) { + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.add(index, builderForValue.build()); + onChanged(); + } else { + embeddingVectorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; } /** * * *
            -       * Field names used for location-based filtering, where geolocation filters
            -       * are detected in natural language search queries.
            -       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            -       *
            -       * If this field is set, it overrides the field names set in
            -       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
            +       * The embedding vector used for retrieval. Limit to 1.
                    * 
            * - * repeated string geo_search_query_detection_field_names = 2; - * - * @param index The index to set the value at. - * @param value The geoSearchQueryDetectionFieldNames to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * */ - public Builder setGeoSearchQueryDetectionFieldNames(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder addAllEmbeddingVectors( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector> + values) { + if (embeddingVectorsBuilder_ == null) { + ensureEmbeddingVectorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, embeddingVectors_); + onChanged(); + } else { + embeddingVectorsBuilder_.addAllMessages(values); } - ensureGeoSearchQueryDetectionFieldNamesIsMutable(); - geoSearchQueryDetectionFieldNames_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); return this; } @@ -27578,27 +27908,21 @@ public Builder setGeoSearchQueryDetectionFieldNames(int index, java.lang.String * * *
            -       * Field names used for location-based filtering, where geolocation filters
            -       * are detected in natural language search queries.
            -       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            -       *
            -       * If this field is set, it overrides the field names set in
            -       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
            +       * The embedding vector used for retrieval. Limit to 1.
                    * 
            * - * repeated string geo_search_query_detection_field_names = 2; - * - * @param value The geoSearchQueryDetectionFieldNames to add. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * */ - public Builder addGeoSearchQueryDetectionFieldNames(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearEmbeddingVectors() { + if (embeddingVectorsBuilder_ == null) { + embeddingVectors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + embeddingVectorsBuilder_.clear(); } - ensureGeoSearchQueryDetectionFieldNamesIsMutable(); - geoSearchQueryDetectionFieldNames_.add(value); - bitField0_ |= 0x00000002; - onChanged(); return this; } @@ -27606,26 +27930,21 @@ public Builder addGeoSearchQueryDetectionFieldNames(java.lang.String value) { * * *
            -       * Field names used for location-based filtering, where geolocation filters
            -       * are detected in natural language search queries.
            -       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            -       *
            -       * If this field is set, it overrides the field names set in
            -       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
            +       * The embedding vector used for retrieval. Limit to 1.
                    * 
            * - * repeated string geo_search_query_detection_field_names = 2; - * - * @param values The geoSearchQueryDetectionFieldNames to add. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * */ - public Builder addAllGeoSearchQueryDetectionFieldNames( - java.lang.Iterable values) { - ensureGeoSearchQueryDetectionFieldNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, geoSearchQueryDetectionFieldNames_); - bitField0_ |= 0x00000002; - onChanged(); + public Builder removeEmbeddingVectors(int index) { + if (embeddingVectorsBuilder_ == null) { + ensureEmbeddingVectorsIsMutable(); + embeddingVectors_.remove(index); + onChanged(); + } else { + embeddingVectorsBuilder_.remove(index); + } return this; } @@ -27633,80 +27952,167 @@ public Builder addAllGeoSearchQueryDetectionFieldNames( * * *
            -       * Field names used for location-based filtering, where geolocation filters
            -       * are detected in natural language search queries.
            -       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            -       *
            -       * If this field is set, it overrides the field names set in
            -       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
            +       * The embedding vector used for retrieval. Limit to 1.
                    * 
            * - * repeated string geo_search_query_detection_field_names = 2; - * - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * */ - public Builder clearGeoSearchQueryDetectionFieldNames() { - geoSearchQueryDetectionFieldNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder + getEmbeddingVectorsBuilder(int index) { + return internalGetEmbeddingVectorsFieldBuilder().getBuilder(index); } /** * * *
            -       * Field names used for location-based filtering, where geolocation filters
            -       * are detected in natural language search queries.
            -       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            -       *
            -       * If this field is set, it overrides the field names set in
            -       * [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names].
            +       * The embedding vector used for retrieval. Limit to 1.
                    * 
            * - * repeated string geo_search_query_detection_field_names = 2; - * - * @param value The bytes of the geoSearchQueryDetectionFieldNames to add. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * */ - public Builder addGeoSearchQueryDetectionFieldNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVectorOrBuilder + getEmbeddingVectorsOrBuilder(int index) { + if (embeddingVectorsBuilder_ == null) { + return embeddingVectors_.get(index); + } else { + return embeddingVectorsBuilder_.getMessageOrBuilder(index); } - checkByteStringIsUtf8(value); - ensureGeoSearchQueryDetectionFieldNamesIsMutable(); - geoSearchQueryDetectionFieldNames_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec(); + /** + * + * + *
            +       * The embedding vector used for retrieval. Limit to 1.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVectorOrBuilder> + getEmbeddingVectorsOrBuilderList() { + if (embeddingVectorsBuilder_ != null) { + return embeddingVectorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(embeddingVectors_); + } + } + + /** + * + * + *
            +       * The embedding vector used for retrieval. Limit to 1.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder + addEmbeddingVectorsBuilder() { + return internalGetEmbeddingVectorsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .getDefaultInstance()); + } + + /** + * + * + *
            +       * The embedding vector used for retrieval. Limit to 1.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder + addEmbeddingVectorsBuilder(int index) { + return internalGetEmbeddingVectorsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .getDefaultInstance()); + } + + /** + * + * + *
            +       * The embedding vector used for retrieval. Limit to 1.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector embedding_vectors = 1; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder> + getEmbeddingVectorsBuilderList() { + return internalGetEmbeddingVectorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVectorOrBuilder> + internalGetEmbeddingVectorsFieldBuilder() { + if (embeddingVectorsBuilder_ == null) { + embeddingVectorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVector.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .EmbeddingVectorOrBuilder>( + embeddingVectors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + embeddingVectors_ = null; + } + return embeddingVectorsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec 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 NaturalLanguageQueryUnderstandingSpec parsePartialFrom( + public EmbeddingSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -27726,77 +28132,276 @@ public NaturalLanguageQueryUnderstandingSpec 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.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface SearchAsYouTypeSpecOrBuilder + public interface NaturalLanguageQueryUnderstandingSpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec) com.google.protobuf.MessageOrBuilder { /** * * *
            -     * The condition under which search as you type should occur.
            -     * Default to
            -     * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
            +     * The condition under which filter extraction should occur.
            +     * Server behavior defaults to `DISABLED`.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * * - * @return The enum numeric value on the wire for condition. + * @return The enum numeric value on the wire for filterExtractionCondition. */ - int getConditionValue(); + int getFilterExtractionConditionValue(); /** * * *
            -     * The condition under which search as you type should occur.
            -     * Default to
            -     * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
            +     * The condition under which filter extraction should occur.
            +     * Server behavior defaults to `DISABLED`.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * * - * @return The condition. + * @return The filterExtractionCondition. */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition - getCondition(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .FilterExtractionCondition + getFilterExtractionCondition(); + + /** + * + * + *
            +     * Field names used for location-based filtering, where geolocation filters
            +     * are detected in natural language search queries.
            +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            +     * 
            + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @return A list containing the geoSearchQueryDetectionFieldNames. + */ + java.util.List getGeoSearchQueryDetectionFieldNamesList(); + + /** + * + * + *
            +     * Field names used for location-based filtering, where geolocation filters
            +     * are detected in natural language search queries.
            +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            +     * 
            + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @return The count of geoSearchQueryDetectionFieldNames. + */ + int getGeoSearchQueryDetectionFieldNamesCount(); + + /** + * + * + *
            +     * Field names used for location-based filtering, where geolocation filters
            +     * are detected in natural language search queries.
            +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            +     * 
            + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index of the element to return. + * @return The geoSearchQueryDetectionFieldNames at the given index. + */ + java.lang.String getGeoSearchQueryDetectionFieldNames(int index); + + /** + * + * + *
            +     * Field names used for location-based filtering, where geolocation filters
            +     * are detected in natural language search queries.
            +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            +     * 
            + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the geoSearchQueryDetectionFieldNames at the given index. + */ + com.google.protobuf.ByteString getGeoSearchQueryDetectionFieldNamesBytes(int index); + + /** + * + * + *
            +     * Optional. Controls behavior of how extracted filters are applied to the
            +     * search. The default behavior depends on the request. For single datastore
            +     * structured search, the default is `HARD_FILTER`. For multi-datastore
            +     * search, the default behavior is `SOFT_BOOST`.
            +     * Location-based filters are always applied as hard filters, and the
            +     * `SOFT_BOOST` setting will not affect them.
            +     * This field is only used if
            +     * [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition]
            +     * is set to
            +     * [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior extracted_filter_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for extractedFilterBehavior. + */ + int getExtractedFilterBehaviorValue(); + + /** + * + * + *
            +     * Optional. Controls behavior of how extracted filters are applied to the
            +     * search. The default behavior depends on the request. For single datastore
            +     * structured search, the default is `HARD_FILTER`. For multi-datastore
            +     * search, the default behavior is `SOFT_BOOST`.
            +     * Location-based filters are always applied as hard filters, and the
            +     * `SOFT_BOOST` setting will not affect them.
            +     * This field is only used if
            +     * [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition]
            +     * is set to
            +     * [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior extracted_filter_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The extractedFilterBehavior. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .ExtractedFilterBehavior + getExtractedFilterBehavior(); + + /** + * + * + *
            +     * Optional. Allowlist of fields that can be used for natural language
            +     * filter extraction. By default, if this is unspecified, all indexable
            +     * fields are eligible for natural language filter extraction (but are not
            +     * guaranteed to be used). If any fields are specified in
            +     * allowed_field_names, only the fields that are both marked as indexable in
            +     * the schema and specified in the allowlist will be eligible for natural
            +     * language filter extraction. Note: for multi-datastore search, this is not
            +     * yet supported, and will be ignored.
            +     * 
            + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedFieldNames. + */ + java.util.List getAllowedFieldNamesList(); + + /** + * + * + *
            +     * Optional. Allowlist of fields that can be used for natural language
            +     * filter extraction. By default, if this is unspecified, all indexable
            +     * fields are eligible for natural language filter extraction (but are not
            +     * guaranteed to be used). If any fields are specified in
            +     * allowed_field_names, only the fields that are both marked as indexable in
            +     * the schema and specified in the allowlist will be eligible for natural
            +     * language filter extraction. Note: for multi-datastore search, this is not
            +     * yet supported, and will be ignored.
            +     * 
            + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedFieldNames. + */ + int getAllowedFieldNamesCount(); + + /** + * + * + *
            +     * Optional. Allowlist of fields that can be used for natural language
            +     * filter extraction. By default, if this is unspecified, all indexable
            +     * fields are eligible for natural language filter extraction (but are not
            +     * guaranteed to be used). If any fields are specified in
            +     * allowed_field_names, only the fields that are both marked as indexable in
            +     * the schema and specified in the allowlist will be eligible for natural
            +     * language filter extraction. Note: for multi-datastore search, this is not
            +     * yet supported, and will be ignored.
            +     * 
            + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedFieldNames at the given index. + */ + java.lang.String getAllowedFieldNames(int index); + + /** + * + * + *
            +     * Optional. Allowlist of fields that can be used for natural language
            +     * filter extraction. By default, if this is unspecified, all indexable
            +     * fields are eligible for natural language filter extraction (but are not
            +     * guaranteed to be used). If any fields are specified in
            +     * allowed_field_names, only the fields that are both marked as indexable in
            +     * the schema and specified in the allowlist will be eligible for natural
            +     * language filter extraction. Note: for multi-datastore search, this is not
            +     * yet supported, and will be ignored.
            +     * 
            + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedFieldNames at the given index. + */ + com.google.protobuf.ByteString getAllowedFieldNamesBytes(int index); } /** * * *
            -   * Specification for search as you type in search requests.
            +   * Specification to enable natural language understanding capabilities for
            +   * search requests.
                * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec} + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec} */ - public static final class SearchAsYouTypeSpec extends com.google.protobuf.GeneratedMessage + public static final class NaturalLanguageQueryUnderstandingSpec + extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) - SearchAsYouTypeSpecOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec) + NaturalLanguageQueryUnderstandingSpecOrBuilder { private static final long serialVersionUID = 0L; static { @@ -27806,51 +28411,55 @@ public static final class SearchAsYouTypeSpec extends com.google.protobuf.Genera /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "SearchAsYouTypeSpec"); + "NaturalLanguageQueryUnderstandingSpec"); } - // Use SearchAsYouTypeSpec.newBuilder() to construct. - private SearchAsYouTypeSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use NaturalLanguageQueryUnderstandingSpec.newBuilder() to construct. + private NaturalLanguageQueryUnderstandingSpec( + com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private SearchAsYouTypeSpec() { - condition_ = 0; + private NaturalLanguageQueryUnderstandingSpec() { + filterExtractionCondition_ = 0; + geoSearchQueryDetectionFieldNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + extractedFilterBehavior_ = 0; + allowedFieldNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder - .class); + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder.class); } /** * * *
            -     * Enum describing under which condition search as you type should occur.
            +     * Enum describing under which condition filter extraction should occur.
                  * 
            * * Protobuf enum {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition} + * google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition} */ - public enum Condition implements com.google.protobuf.ProtocolMessageEnum { + public enum FilterExtractionCondition implements com.google.protobuf.ProtocolMessageEnum { /** * * *
            -       * Server behavior defaults to
            -       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
            +       * Server behavior defaults to `DISABLED`.
                    * 
            * * CONDITION_UNSPECIFIED = 0; @@ -27860,7 +28469,7 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum { * * *
            -       * Disables Search As You Type.
            +       * Disables NL filter extraction.
                    * 
            * * DISABLED = 1; @@ -27870,23 +28479,12 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum { * * *
            -       * Enables Search As You Type.
            +       * Enables NL filter extraction.
                    * 
            * * ENABLED = 2; */ ENABLED(2), - /** - * - * - *
            -       * Automatic switching between search-as-you-type and standard search
            -       * modes, ideal for single-API implementations (e.g., debouncing).
            -       * 
            - * - * AUTO = 3; - */ - AUTO(3), UNRECOGNIZED(-1), ; @@ -27897,15 +28495,14 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum { /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "Condition"); + "FilterExtractionCondition"); } /** * * *
            -       * Server behavior defaults to
            -       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
            +       * Server behavior defaults to `DISABLED`.
                    * 
            * * CONDITION_UNSPECIFIED = 0; @@ -27916,7 +28513,7 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum { * * *
            -       * Disables Search As You Type.
            +       * Disables NL filter extraction.
                    * 
            * * DISABLED = 1; @@ -27927,25 +28524,13 @@ public enum Condition implements com.google.protobuf.ProtocolMessageEnum { * * *
            -       * Enables Search As You Type.
            +       * Enables NL filter extraction.
                    * 
            * * ENABLED = 2; */ public static final int ENABLED_VALUE = 2; - /** - * - * - *
            -       * Automatic switching between search-as-you-type and standard search
            -       * modes, ideal for single-API implementations (e.g., debouncing).
            -       * 
            - * - * AUTO = 3; - */ - public static final int AUTO_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -27960,7 +28545,7 @@ public final int getNumber() { * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static Condition valueOf(int value) { + public static FilterExtractionCondition valueOf(int value) { return forNumber(value); } @@ -27968,7 +28553,7 @@ public static Condition valueOf(int value) { * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ - public static Condition forNumber(int value) { + public static FilterExtractionCondition forNumber(int value) { switch (value) { case 0: return CONDITION_UNSPECIFIED; @@ -27976,23 +28561,23 @@ public static Condition forNumber(int value) { return DISABLED; case 2: return ENABLED; - case 3: - return AUTO; default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + 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 Condition findValueByNumber(int number) { - return Condition.forNumber(number); - } - }; + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FilterExtractionCondition findValueByNumber(int number) { + return FilterExtractionCondition.forNumber(number); + } + }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { @@ -28007,15 +28592,16 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec - .getDescriptor() + return com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDescriptor() .getEnumTypes() .get(0); } - private static final Condition[] VALUES = values(); + private static final FilterExtractionCondition[] VALUES = values(); - public static Condition valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static FilterExtractionCondition valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } @@ -28027,82 +28613,530 @@ public static Condition valueOf(com.google.protobuf.Descriptors.EnumValueDescrip private final int value; - private Condition(int value) { + private FilterExtractionCondition(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition) + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition) } - public static final int CONDITION_FIELD_NUMBER = 1; - private int condition_ = 0; - /** * * *
            -     * The condition under which search as you type should occur.
            -     * Default to
            -     * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
            +     * Enum describing how extracted filters are applied to the search.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; - * - * - * @return The enum numeric value on the wire for condition. + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior} */ - @java.lang.Override - public int getConditionValue() { - return condition_; - } + public enum ExtractedFilterBehavior implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * `EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED` will use the default behavior
            +       * for extracted filters. For single datastore search, the default is to
            +       * apply as hard filters. For multi-datastore search, the default is to
            +       * apply as soft boosts.
            +       * 
            + * + * EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED = 0; + */ + EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED(0), + /** + * + * + *
            +       * Applies all extracted filters as hard filters on the results. Results
            +       * that do not pass the extracted filters will not be returned in the
            +       * result set.
            +       * 
            + * + * HARD_FILTER = 1; + */ + HARD_FILTER(1), + /** + * + * + *
            +       * Applies all extracted filters as soft boosts. Results that pass the
            +       * filters will be boosted up to higher ranks in the result set.
            +       * 
            + * + * SOFT_BOOST = 2; + */ + SOFT_BOOST(2), + UNRECOGNIZED(-1), + ; - /** - * - * - *
            -     * The condition under which search as you type should occur.
            -     * Default to
            -     * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
            -     * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; - * - * - * @return The condition. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition - getCondition() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition result = - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition - .forNumber(condition_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition - .UNRECOGNIZED - : result; - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExtractedFilterBehavior"); + } - private byte memoizedIsInitialized = -1; + /** + * + * + *
            +       * `EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED` will use the default behavior
            +       * for extracted filters. For single datastore search, the default is to
            +       * apply as hard filters. For multi-datastore search, the default is to
            +       * apply as soft boosts.
            +       * 
            + * + * EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED = 0; + */ + public static final int EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED_VALUE = 0; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * + * + *
            +       * Applies all extracted filters as hard filters on the results. Results
            +       * that do not pass the extracted filters will not be returned in the
            +       * result set.
            +       * 
            + * + * HARD_FILTER = 1; + */ + public static final int HARD_FILTER_VALUE = 1; - memoizedIsInitialized = 1; - return true; - } + /** + * + * + *
            +       * Applies all extracted filters as soft boosts. Results that pass the
            +       * filters will be boosted up to higher ranks in the result set.
            +       * 
            + * + * SOFT_BOOST = 2; + */ + public static final int SOFT_BOOST_VALUE = 2; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (condition_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition - .CONDITION_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, condition_); + 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 ExtractedFilterBehavior 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 ExtractedFilterBehavior forNumber(int value) { + switch (value) { + case 0: + return EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED; + case 1: + return HARD_FILTER; + case 2: + return SOFT_BOOST; + 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 ExtractedFilterBehavior findValueByNumber(int number) { + return ExtractedFilterBehavior.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final ExtractedFilterBehavior[] VALUES = values(); + + public static ExtractedFilterBehavior 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 ExtractedFilterBehavior(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior) + } + + public static final int FILTER_EXTRACTION_CONDITION_FIELD_NUMBER = 1; + private int filterExtractionCondition_ = 0; + + /** + * + * + *
            +     * The condition under which filter extraction should occur.
            +     * Server behavior defaults to `DISABLED`.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; + * + * + * @return The enum numeric value on the wire for filterExtractionCondition. + */ + @java.lang.Override + public int getFilterExtractionConditionValue() { + return filterExtractionCondition_; + } + + /** + * + * + *
            +     * The condition under which filter extraction should occur.
            +     * Server behavior defaults to `DISABLED`.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; + * + * + * @return The filterExtractionCondition. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition + getFilterExtractionCondition() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .FilterExtractionCondition + result = + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.forNumber( + filterExtractionCondition_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.UNRECOGNIZED + : result; + } + + public static final int GEO_SEARCH_QUERY_DETECTION_FIELD_NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList geoSearchQueryDetectionFieldNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +     * Field names used for location-based filtering, where geolocation filters
            +     * are detected in natural language search queries.
            +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            +     * 
            + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @return A list containing the geoSearchQueryDetectionFieldNames. + */ + public com.google.protobuf.ProtocolStringList getGeoSearchQueryDetectionFieldNamesList() { + return geoSearchQueryDetectionFieldNames_; + } + + /** + * + * + *
            +     * Field names used for location-based filtering, where geolocation filters
            +     * are detected in natural language search queries.
            +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            +     * 
            + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @return The count of geoSearchQueryDetectionFieldNames. + */ + public int getGeoSearchQueryDetectionFieldNamesCount() { + return geoSearchQueryDetectionFieldNames_.size(); + } + + /** + * + * + *
            +     * Field names used for location-based filtering, where geolocation filters
            +     * are detected in natural language search queries.
            +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            +     * 
            + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index of the element to return. + * @return The geoSearchQueryDetectionFieldNames at the given index. + */ + public java.lang.String getGeoSearchQueryDetectionFieldNames(int index) { + return geoSearchQueryDetectionFieldNames_.get(index); + } + + /** + * + * + *
            +     * Field names used for location-based filtering, where geolocation filters
            +     * are detected in natural language search queries.
            +     * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            +     * 
            + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the geoSearchQueryDetectionFieldNames at the given index. + */ + public com.google.protobuf.ByteString getGeoSearchQueryDetectionFieldNamesBytes(int index) { + return geoSearchQueryDetectionFieldNames_.getByteString(index); + } + + public static final int EXTRACTED_FILTER_BEHAVIOR_FIELD_NUMBER = 3; + private int extractedFilterBehavior_ = 0; + + /** + * + * + *
            +     * Optional. Controls behavior of how extracted filters are applied to the
            +     * search. The default behavior depends on the request. For single datastore
            +     * structured search, the default is `HARD_FILTER`. For multi-datastore
            +     * search, the default behavior is `SOFT_BOOST`.
            +     * Location-based filters are always applied as hard filters, and the
            +     * `SOFT_BOOST` setting will not affect them.
            +     * This field is only used if
            +     * [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition]
            +     * is set to
            +     * [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior extracted_filter_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for extractedFilterBehavior. + */ + @java.lang.Override + public int getExtractedFilterBehaviorValue() { + return extractedFilterBehavior_; + } + + /** + * + * + *
            +     * Optional. Controls behavior of how extracted filters are applied to the
            +     * search. The default behavior depends on the request. For single datastore
            +     * structured search, the default is `HARD_FILTER`. For multi-datastore
            +     * search, the default behavior is `SOFT_BOOST`.
            +     * Location-based filters are always applied as hard filters, and the
            +     * `SOFT_BOOST` setting will not affect them.
            +     * This field is only used if
            +     * [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition]
            +     * is set to
            +     * [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior extracted_filter_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The extractedFilterBehavior. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior + getExtractedFilterBehavior() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .ExtractedFilterBehavior + result = + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior.forNumber( + extractedFilterBehavior_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior.UNRECOGNIZED + : result; + } + + public static final int ALLOWED_FIELD_NAMES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedFieldNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +     * Optional. Allowlist of fields that can be used for natural language
            +     * filter extraction. By default, if this is unspecified, all indexable
            +     * fields are eligible for natural language filter extraction (but are not
            +     * guaranteed to be used). If any fields are specified in
            +     * allowed_field_names, only the fields that are both marked as indexable in
            +     * the schema and specified in the allowlist will be eligible for natural
            +     * language filter extraction. Note: for multi-datastore search, this is not
            +     * yet supported, and will be ignored.
            +     * 
            + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedFieldNames. + */ + public com.google.protobuf.ProtocolStringList getAllowedFieldNamesList() { + return allowedFieldNames_; + } + + /** + * + * + *
            +     * Optional. Allowlist of fields that can be used for natural language
            +     * filter extraction. By default, if this is unspecified, all indexable
            +     * fields are eligible for natural language filter extraction (but are not
            +     * guaranteed to be used). If any fields are specified in
            +     * allowed_field_names, only the fields that are both marked as indexable in
            +     * the schema and specified in the allowlist will be eligible for natural
            +     * language filter extraction. Note: for multi-datastore search, this is not
            +     * yet supported, and will be ignored.
            +     * 
            + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedFieldNames. + */ + public int getAllowedFieldNamesCount() { + return allowedFieldNames_.size(); + } + + /** + * + * + *
            +     * Optional. Allowlist of fields that can be used for natural language
            +     * filter extraction. By default, if this is unspecified, all indexable
            +     * fields are eligible for natural language filter extraction (but are not
            +     * guaranteed to be used). If any fields are specified in
            +     * allowed_field_names, only the fields that are both marked as indexable in
            +     * the schema and specified in the allowlist will be eligible for natural
            +     * language filter extraction. Note: for multi-datastore search, this is not
            +     * yet supported, and will be ignored.
            +     * 
            + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedFieldNames at the given index. + */ + public java.lang.String getAllowedFieldNames(int index) { + return allowedFieldNames_.get(index); + } + + /** + * + * + *
            +     * Optional. Allowlist of fields that can be used for natural language
            +     * filter extraction. By default, if this is unspecified, all indexable
            +     * fields are eligible for natural language filter extraction (but are not
            +     * guaranteed to be used). If any fields are specified in
            +     * allowed_field_names, only the fields that are both marked as indexable in
            +     * the schema and specified in the allowlist will be eligible for natural
            +     * language filter extraction. Note: for multi-datastore search, this is not
            +     * yet supported, and will be ignored.
            +     * 
            + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedFieldNames at the given index. + */ + public com.google.protobuf.ByteString getAllowedFieldNamesBytes(int index) { + return allowedFieldNames_.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 (filterExtractionCondition_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.CONDITION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, filterExtractionCondition_); + } + for (int i = 0; i < geoSearchQueryDetectionFieldNames_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 2, geoSearchQueryDetectionFieldNames_.getRaw(i)); + } + if (extractedFilterBehavior_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior + .EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, extractedFilterBehavior_); + } + for (int i = 0; i < allowedFieldNames_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, allowedFieldNames_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -28113,11 +29147,35 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (condition_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition - .CONDITION_UNSPECIFIED + if (filterExtractionCondition_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.CONDITION_UNSPECIFIED .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, condition_); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, filterExtractionCondition_); + } + { + int dataSize = 0; + for (int i = 0; i < geoSearchQueryDetectionFieldNames_.size(); i++) { + dataSize += computeStringSizeNoTag(geoSearchQueryDetectionFieldNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getGeoSearchQueryDetectionFieldNamesList().size(); + } + if (extractedFilterBehavior_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior + .EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, extractedFilterBehavior_); + } + { + int dataSize = 0; + for (int i = 0; i < allowedFieldNames_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedFieldNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedFieldNamesList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -28130,13 +29188,22 @@ public boolean equals(final java.lang.Object obj) { return true; } if (!(obj - instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec)) { + instanceof + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) obj; + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec) + obj; - if (condition_ != other.condition_) return false; + if (filterExtractionCondition_ != other.filterExtractionCondition_) return false; + if (!getGeoSearchQueryDetectionFieldNamesList() + .equals(other.getGeoSearchQueryDetectionFieldNamesList())) return false; + if (extractedFilterBehavior_ != other.extractedFilterBehavior_) return false; + if (!getAllowedFieldNamesList().equals(other.getAllowedFieldNamesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -28148,33 +29215,47 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONDITION_FIELD_NUMBER; - hash = (53 * hash) + condition_; + hash = (37 * hash) + FILTER_EXTRACTION_CONDITION_FIELD_NUMBER; + hash = (53 * hash) + filterExtractionCondition_; + if (getGeoSearchQueryDetectionFieldNamesCount() > 0) { + hash = (37 * hash) + GEO_SEARCH_QUERY_DETECTION_FIELD_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getGeoSearchQueryDetectionFieldNamesList().hashCode(); + } + hash = (37 * hash) + EXTRACTED_FILTER_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + extractedFilterBehavior_; + if (getAllowedFieldNamesCount() > 0) { + hash = (37 * hash) + ALLOWED_FIELD_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getAllowedFieldNamesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec 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.v1beta.SearchRequest.SearchAsYouTypeSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -28182,23 +29263,27 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -28206,12 +29291,14 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -28219,12 +29306,14 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -28243,7 +29332,8 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec prototype) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -28262,33 +29352,37 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
            -     * Specification for search as you type in search requests.
            +     * Specification to enable natural language understanding capabilities for
            +     * search requests.
                  * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec} + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder - .class); + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder.class); } // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.newBuilder() + // com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -28299,27 +29393,33 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - condition_ = 0; + filterExtractionCondition_ = 0; + geoSearchQueryDetectionFieldNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + extractedFilterBehavior_ = 0; + allowedFieldNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec - .getDefaultInstance(); + return com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec result = - buildPartial(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -28327,10 +29427,13 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec(this); + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -28339,19 +29442,36 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec } private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec result) { + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.condition_ = condition_; + result.filterExtractionCondition_ = filterExtractionCondition_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + geoSearchQueryDetectionFieldNames_.makeImmutable(); + result.geoSearchQueryDetectionFieldNames_ = geoSearchQueryDetectionFieldNames_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.extractedFilterBehavior_ = extractedFilterBehavior_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + allowedFieldNames_.makeImmutable(); + result.allowedFieldNames_ = allowedFieldNames_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other - instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) { + instanceof + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec) { return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) other); + (com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec) + other); } else { super.mergeFrom(other); return this; @@ -28359,12 +29479,37 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec other) { + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + other) { if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec - .getDefaultInstance()) return this; - if (other.condition_ != 0) { - setConditionValue(other.getConditionValue()); + == com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance()) return this; + if (other.filterExtractionCondition_ != 0) { + setFilterExtractionConditionValue(other.getFilterExtractionConditionValue()); + } + if (!other.geoSearchQueryDetectionFieldNames_.isEmpty()) { + if (geoSearchQueryDetectionFieldNames_.isEmpty()) { + geoSearchQueryDetectionFieldNames_ = other.geoSearchQueryDetectionFieldNames_; + bitField0_ |= 0x00000002; + } else { + ensureGeoSearchQueryDetectionFieldNamesIsMutable(); + geoSearchQueryDetectionFieldNames_.addAll(other.geoSearchQueryDetectionFieldNames_); + } + onChanged(); + } + if (other.extractedFilterBehavior_ != 0) { + setExtractedFilterBehaviorValue(other.getExtractedFilterBehaviorValue()); + } + if (!other.allowedFieldNames_.isEmpty()) { + if (allowedFieldNames_.isEmpty()) { + allowedFieldNames_ = other.allowedFieldNames_; + bitField0_ |= 0x00000008; + } else { + ensureAllowedFieldNamesIsMutable(); + allowedFieldNames_.addAll(other.allowedFieldNames_); + } + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -28394,16 +29539,36 @@ public Builder mergeFrom( break; case 8: { - condition_ = input.readEnum(); + filterExtractionCondition_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 - default: + case 18: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; + java.lang.String s = input.readStringRequireUtf8(); + ensureGeoSearchQueryDetectionFieldNamesIsMutable(); + geoSearchQueryDetectionFieldNames_.add(s); + break; + } // case 18 + case 24: + { + extractedFilterBehavior_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedFieldNamesIsMutable(); + allowedFieldNames_.add(s); + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; } // default: } // switch (tag) } // while (!done) @@ -28417,46 +29582,44 @@ public Builder mergeFrom( private int bitField0_; - private int condition_ = 0; + private int filterExtractionCondition_ = 0; /** * * *
            -       * The condition under which search as you type should occur.
            -       * Default to
            -       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
            +       * The condition under which filter extraction should occur.
            +       * Server behavior defaults to `DISABLED`.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * * - * @return The enum numeric value on the wire for condition. + * @return The enum numeric value on the wire for filterExtractionCondition. */ @java.lang.Override - public int getConditionValue() { - return condition_; + public int getFilterExtractionConditionValue() { + return filterExtractionCondition_; } /** * * *
            -       * The condition under which search as you type should occur.
            -       * Default to
            -       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
            +       * The condition under which filter extraction should occur.
            +       * Server behavior defaults to `DISABLED`.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * * - * @param value The enum numeric value on the wire for condition to set. + * @param value The enum numeric value on the wire for filterExtractionCondition to set. * @return This builder for chaining. */ - public Builder setConditionValue(int value) { - condition_ = value; + public Builder setFilterExtractionConditionValue(int value) { + filterExtractionCondition_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -28466,26 +29629,29 @@ public Builder setConditionValue(int value) { * * *
            -       * The condition under which search as you type should occur.
            -       * Default to
            -       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
            +       * The condition under which filter extraction should occur.
            +       * Server behavior defaults to `DISABLED`.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * * - * @return The condition. + * @return The filterExtractionCondition. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition - getCondition() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition result = - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition - .forNumber(condition_); + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition + getFilterExtractionCondition() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .FilterExtractionCondition + result = + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.forNumber( + filterExtractionCondition_); return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition - .UNRECOGNIZED + ? com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.UNRECOGNIZED : result; } @@ -28493,26 +29659,26 @@ public Builder setConditionValue(int value) { * * *
            -       * The condition under which search as you type should occur.
            -       * Default to
            -       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
            +       * The condition under which filter extraction should occur.
            +       * Server behavior defaults to `DISABLED`.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * * - * @param value The condition to set. + * @param value The filterExtractionCondition to set. * @return This builder for chaining. */ - public Builder setCondition( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + public Builder setFilterExtractionCondition( + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - condition_ = value.getNumber(); + filterExtractionCondition_ = value.getNumber(); onChanged(); return this; } @@ -28521,535 +29687,1174 @@ public Builder setCondition( * * *
            -       * The condition under which search as you type should occur.
            -       * Default to
            -       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
            +       * The condition under which filter extraction should occur.
            +       * Server behavior defaults to `DISABLED`.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition filter_extraction_condition = 1; * * * @return This builder for chaining. */ - public Builder clearCondition() { + public Builder clearFilterExtractionCondition() { bitField0_ = (bitField0_ & ~0x00000001); - condition_ = 0; + filterExtractionCondition_ = 0; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec(); - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private com.google.protobuf.LazyStringArrayList geoSearchQueryDetectionFieldNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAsYouTypeSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private void ensureGeoSearchQueryDetectionFieldNamesIsMutable() { + if (!geoSearchQueryDetectionFieldNames_.isModifiable()) { + geoSearchQueryDetectionFieldNames_ = + new com.google.protobuf.LazyStringArrayList(geoSearchQueryDetectionFieldNames_); + } + bitField0_ |= 0x00000002; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * + * + *
            +       * Field names used for location-based filtering, where geolocation filters
            +       * are detected in natural language search queries.
            +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            +       * 
            + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @return A list containing the geoSearchQueryDetectionFieldNames. + */ + public com.google.protobuf.ProtocolStringList getGeoSearchQueryDetectionFieldNamesList() { + geoSearchQueryDetectionFieldNames_.makeImmutable(); + return geoSearchQueryDetectionFieldNames_; + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * + * + *
            +       * Field names used for location-based filtering, where geolocation filters
            +       * are detected in natural language search queries.
            +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            +       * 
            + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @return The count of geoSearchQueryDetectionFieldNames. + */ + public int getGeoSearchQueryDetectionFieldNamesCount() { + return geoSearchQueryDetectionFieldNames_.size(); + } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + /** + * + * + *
            +       * Field names used for location-based filtering, where geolocation filters
            +       * are detected in natural language search queries.
            +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            +       * 
            + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index of the element to return. + * @return The geoSearchQueryDetectionFieldNames at the given index. + */ + public java.lang.String getGeoSearchQueryDetectionFieldNames(int index) { + return geoSearchQueryDetectionFieldNames_.get(index); + } - public interface SessionSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
            +       * Field names used for location-based filtering, where geolocation filters
            +       * are detected in natural language search queries.
            +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            +       * 
            + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index of the value to return. + * @return The bytes of the geoSearchQueryDetectionFieldNames at the given index. + */ + public com.google.protobuf.ByteString getGeoSearchQueryDetectionFieldNamesBytes(int index) { + return geoSearchQueryDetectionFieldNames_.getByteString(index); + } - /** - * - * - *
            -     * If set, the search result gets stored to the "turn" specified by this
            -     * query ID.
            -     *
            -     * Example: Let's say the session looks like this:
            -     * session {
            -     * name: ".../sessions/xxx"
            -     * turns {
            -     * query { text: "What is foo?" query_id: ".../questions/yyy" }
            -     * answer: "Foo is ..."
            -     * }
            -     * turns {
            -     * query { text: "How about bar then?" query_id: ".../questions/zzz" }
            -     * }
            -     * }
            -     *
            -     * The user can call /search API with a request like this:
            -     *
            -     * session: ".../sessions/xxx"
            -     * session_spec { query_id: ".../questions/zzz" }
            -     *
            -     * Then, the API stores the search result, associated with the last turn.
            -     * The stored search result can be used by a subsequent /answer API call
            -     * (with the session ID and the query ID specified). Also, it is possible
            -     * to call /search and /answer in parallel with the same session ID & query
            -     * ID.
            -     * 
            - * - * string query_id = 1; - * - * @return The queryId. - */ - java.lang.String getQueryId(); + /** + * + * + *
            +       * Field names used for location-based filtering, where geolocation filters
            +       * are detected in natural language search queries.
            +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            +       * 
            + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param index The index to set the value at. + * @param value The geoSearchQueryDetectionFieldNames to set. + * @return This builder for chaining. + */ + public Builder setGeoSearchQueryDetectionFieldNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeoSearchQueryDetectionFieldNamesIsMutable(); + geoSearchQueryDetectionFieldNames_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - /** - * - * - *
            -     * If set, the search result gets stored to the "turn" specified by this
            -     * query ID.
            -     *
            -     * Example: Let's say the session looks like this:
            -     * session {
            -     * name: ".../sessions/xxx"
            -     * turns {
            -     * query { text: "What is foo?" query_id: ".../questions/yyy" }
            -     * answer: "Foo is ..."
            -     * }
            -     * turns {
            -     * query { text: "How about bar then?" query_id: ".../questions/zzz" }
            -     * }
            -     * }
            -     *
            -     * The user can call /search API with a request like this:
            -     *
            -     * session: ".../sessions/xxx"
            -     * session_spec { query_id: ".../questions/zzz" }
            -     *
            -     * Then, the API stores the search result, associated with the last turn.
            -     * The stored search result can be used by a subsequent /answer API call
            -     * (with the session ID and the query ID specified). Also, it is possible
            -     * to call /search and /answer in parallel with the same session ID & query
            -     * ID.
            -     * 
            - * - * string query_id = 1; - * - * @return The bytes for queryId. - */ - com.google.protobuf.ByteString getQueryIdBytes(); + /** + * + * + *
            +       * Field names used for location-based filtering, where geolocation filters
            +       * are detected in natural language search queries.
            +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            +       * 
            + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param value The geoSearchQueryDetectionFieldNames to add. + * @return This builder for chaining. + */ + public Builder addGeoSearchQueryDetectionFieldNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeoSearchQueryDetectionFieldNamesIsMutable(); + geoSearchQueryDetectionFieldNames_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - /** - * - * - *
            -     * The number of top search results to persist. The persisted search results
            -     * can be used for the subsequent /answer api call.
            -     *
            -     * This field is simliar to the `summary_result_count` field in
            -     * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
            -     *
            -     * At most 10 results for documents mode, or 50 for chunks mode.
            -     * 
            - * - * optional int32 search_result_persistence_count = 2; - * - * @return Whether the searchResultPersistenceCount field is set. - */ - boolean hasSearchResultPersistenceCount(); + /** + * + * + *
            +       * Field names used for location-based filtering, where geolocation filters
            +       * are detected in natural language search queries.
            +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            +       * 
            + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param values The geoSearchQueryDetectionFieldNames to add. + * @return This builder for chaining. + */ + public Builder addAllGeoSearchQueryDetectionFieldNames( + java.lang.Iterable values) { + ensureGeoSearchQueryDetectionFieldNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, geoSearchQueryDetectionFieldNames_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - /** - * - * - *
            -     * The number of top search results to persist. The persisted search results
            -     * can be used for the subsequent /answer api call.
            -     *
            -     * This field is simliar to the `summary_result_count` field in
            -     * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
            -     *
            -     * At most 10 results for documents mode, or 50 for chunks mode.
            -     * 
            - * - * optional int32 search_result_persistence_count = 2; - * - * @return The searchResultPersistenceCount. - */ - int getSearchResultPersistenceCount(); - } + /** + * + * + *
            +       * Field names used for location-based filtering, where geolocation filters
            +       * are detected in natural language search queries.
            +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            +       * 
            + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @return This builder for chaining. + */ + public Builder clearGeoSearchQueryDetectionFieldNames() { + geoSearchQueryDetectionFieldNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } - /** - * - * - *
            -   * Session specification.
            -   *
            -   * Multi-turn Search feature is currently at private GA stage. Please use
            -   * v1alpha or v1beta version instead before we launch this feature to public
            -   * GA. Or ask for allowlisting through Google Support team.
            -   * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec} - */ - public static final class SessionSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) - SessionSpecOrBuilder { - private static final long serialVersionUID = 0L; + /** + * + * + *
            +       * Field names used for location-based filtering, where geolocation filters
            +       * are detected in natural language search queries.
            +       * Only valid when the FilterExtractionCondition is set to `ENABLED`.
            +       * 
            + * + * repeated string geo_search_query_detection_field_names = 2; + * + * @param value The bytes of the geoSearchQueryDetectionFieldNames to add. + * @return This builder for chaining. + */ + public Builder addGeoSearchQueryDetectionFieldNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureGeoSearchQueryDetectionFieldNamesIsMutable(); + geoSearchQueryDetectionFieldNames_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "SessionSpec"); - } + private int extractedFilterBehavior_ = 0; - // Use SessionSpec.newBuilder() to construct. - private SessionSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + /** + * + * + *
            +       * Optional. Controls behavior of how extracted filters are applied to the
            +       * search. The default behavior depends on the request. For single datastore
            +       * structured search, the default is `HARD_FILTER`. For multi-datastore
            +       * search, the default behavior is `SOFT_BOOST`.
            +       * Location-based filters are always applied as hard filters, and the
            +       * `SOFT_BOOST` setting will not affect them.
            +       * This field is only used if
            +       * [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition]
            +       * is set to
            +       * [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED].
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior extracted_filter_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for extractedFilterBehavior. + */ + @java.lang.Override + public int getExtractedFilterBehaviorValue() { + return extractedFilterBehavior_; + } - private SessionSpec() { - queryId_ = ""; - } + /** + * + * + *
            +       * Optional. Controls behavior of how extracted filters are applied to the
            +       * search. The default behavior depends on the request. For single datastore
            +       * structured search, the default is `HARD_FILTER`. For multi-datastore
            +       * search, the default behavior is `SOFT_BOOST`.
            +       * Location-based filters are always applied as hard filters, and the
            +       * `SOFT_BOOST` setting will not affect them.
            +       * This field is only used if
            +       * [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition]
            +       * is set to
            +       * [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED].
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior extracted_filter_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for extractedFilterBehavior to set. + * @return This builder for chaining. + */ + public Builder setExtractedFilterBehaviorValue(int value) { + extractedFilterBehavior_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_descriptor; + /** + * + * + *
            +       * Optional. Controls behavior of how extracted filters are applied to the
            +       * search. The default behavior depends on the request. For single datastore
            +       * structured search, the default is `HARD_FILTER`. For multi-datastore
            +       * search, the default behavior is `SOFT_BOOST`.
            +       * Location-based filters are always applied as hard filters, and the
            +       * `SOFT_BOOST` setting will not affect them.
            +       * This field is only used if
            +       * [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition]
            +       * is set to
            +       * [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED].
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior extracted_filter_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The extractedFilterBehavior. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior + getExtractedFilterBehavior() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .ExtractedFilterBehavior + result = + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior.forNumber( + extractedFilterBehavior_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Optional. Controls behavior of how extracted filters are applied to the
            +       * search. The default behavior depends on the request. For single datastore
            +       * structured search, the default is `HARD_FILTER`. For multi-datastore
            +       * search, the default behavior is `SOFT_BOOST`.
            +       * Location-based filters are always applied as hard filters, and the
            +       * `SOFT_BOOST` setting will not affect them.
            +       * This field is only used if
            +       * [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition]
            +       * is set to
            +       * [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED].
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior extracted_filter_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The extractedFilterBehavior to set. + * @return This builder for chaining. + */ + public Builder setExtractedFilterBehavior( + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + extractedFilterBehavior_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Controls behavior of how extracted filters are applied to the
            +       * search. The default behavior depends on the request. For single datastore
            +       * structured search, the default is `HARD_FILTER`. For multi-datastore
            +       * search, the default behavior is `SOFT_BOOST`.
            +       * Location-based filters are always applied as hard filters, and the
            +       * `SOFT_BOOST` setting will not affect them.
            +       * This field is only used if
            +       * [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition]
            +       * is set to
            +       * [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED].
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehavior extracted_filter_behavior = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExtractedFilterBehavior() { + bitField0_ = (bitField0_ & ~0x00000004); + extractedFilterBehavior_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList allowedFieldNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedFieldNamesIsMutable() { + if (!allowedFieldNames_.isModifiable()) { + allowedFieldNames_ = new com.google.protobuf.LazyStringArrayList(allowedFieldNames_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
            +       * Optional. Allowlist of fields that can be used for natural language
            +       * filter extraction. By default, if this is unspecified, all indexable
            +       * fields are eligible for natural language filter extraction (but are not
            +       * guaranteed to be used). If any fields are specified in
            +       * allowed_field_names, only the fields that are both marked as indexable in
            +       * the schema and specified in the allowlist will be eligible for natural
            +       * language filter extraction. Note: for multi-datastore search, this is not
            +       * yet supported, and will be ignored.
            +       * 
            + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the allowedFieldNames. + */ + public com.google.protobuf.ProtocolStringList getAllowedFieldNamesList() { + allowedFieldNames_.makeImmutable(); + return allowedFieldNames_; + } + + /** + * + * + *
            +       * Optional. Allowlist of fields that can be used for natural language
            +       * filter extraction. By default, if this is unspecified, all indexable
            +       * fields are eligible for natural language filter extraction (but are not
            +       * guaranteed to be used). If any fields are specified in
            +       * allowed_field_names, only the fields that are both marked as indexable in
            +       * the schema and specified in the allowlist will be eligible for natural
            +       * language filter extraction. Note: for multi-datastore search, this is not
            +       * yet supported, and will be ignored.
            +       * 
            + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of allowedFieldNames. + */ + public int getAllowedFieldNamesCount() { + return allowedFieldNames_.size(); + } + + /** + * + * + *
            +       * Optional. Allowlist of fields that can be used for natural language
            +       * filter extraction. By default, if this is unspecified, all indexable
            +       * fields are eligible for natural language filter extraction (but are not
            +       * guaranteed to be used). If any fields are specified in
            +       * allowed_field_names, only the fields that are both marked as indexable in
            +       * the schema and specified in the allowlist will be eligible for natural
            +       * language filter extraction. Note: for multi-datastore search, this is not
            +       * yet supported, and will be ignored.
            +       * 
            + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The allowedFieldNames at the given index. + */ + public java.lang.String getAllowedFieldNames(int index) { + return allowedFieldNames_.get(index); + } + + /** + * + * + *
            +       * Optional. Allowlist of fields that can be used for natural language
            +       * filter extraction. By default, if this is unspecified, all indexable
            +       * fields are eligible for natural language filter extraction (but are not
            +       * guaranteed to be used). If any fields are specified in
            +       * allowed_field_names, only the fields that are both marked as indexable in
            +       * the schema and specified in the allowlist will be eligible for natural
            +       * language filter extraction. Note: for multi-datastore search, this is not
            +       * yet supported, and will be ignored.
            +       * 
            + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the allowedFieldNames at the given index. + */ + public com.google.protobuf.ByteString getAllowedFieldNamesBytes(int index) { + return allowedFieldNames_.getByteString(index); + } + + /** + * + * + *
            +       * Optional. Allowlist of fields that can be used for natural language
            +       * filter extraction. By default, if this is unspecified, all indexable
            +       * fields are eligible for natural language filter extraction (but are not
            +       * guaranteed to be used). If any fields are specified in
            +       * allowed_field_names, only the fields that are both marked as indexable in
            +       * the schema and specified in the allowlist will be eligible for natural
            +       * language filter extraction. Note: for multi-datastore search, this is not
            +       * yet supported, and will be ignored.
            +       * 
            + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The allowedFieldNames to set. + * @return This builder for chaining. + */ + public Builder setAllowedFieldNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedFieldNamesIsMutable(); + allowedFieldNames_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Allowlist of fields that can be used for natural language
            +       * filter extraction. By default, if this is unspecified, all indexable
            +       * fields are eligible for natural language filter extraction (but are not
            +       * guaranteed to be used). If any fields are specified in
            +       * allowed_field_names, only the fields that are both marked as indexable in
            +       * the schema and specified in the allowlist will be eligible for natural
            +       * language filter extraction. Note: for multi-datastore search, this is not
            +       * yet supported, and will be ignored.
            +       * 
            + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The allowedFieldNames to add. + * @return This builder for chaining. + */ + public Builder addAllowedFieldNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedFieldNamesIsMutable(); + allowedFieldNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Allowlist of fields that can be used for natural language
            +       * filter extraction. By default, if this is unspecified, all indexable
            +       * fields are eligible for natural language filter extraction (but are not
            +       * guaranteed to be used). If any fields are specified in
            +       * allowed_field_names, only the fields that are both marked as indexable in
            +       * the schema and specified in the allowlist will be eligible for natural
            +       * language filter extraction. Note: for multi-datastore search, this is not
            +       * yet supported, and will be ignored.
            +       * 
            + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The allowedFieldNames to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedFieldNames(java.lang.Iterable values) { + ensureAllowedFieldNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedFieldNames_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Allowlist of fields that can be used for natural language
            +       * filter extraction. By default, if this is unspecified, all indexable
            +       * fields are eligible for natural language filter extraction (but are not
            +       * guaranteed to be used). If any fields are specified in
            +       * allowed_field_names, only the fields that are both marked as indexable in
            +       * the schema and specified in the allowlist will be eligible for natural
            +       * language filter extraction. Note: for multi-datastore search, this is not
            +       * yet supported, and will be ignored.
            +       * 
            + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAllowedFieldNames() { + allowedFieldNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Allowlist of fields that can be used for natural language
            +       * filter extraction. By default, if this is unspecified, all indexable
            +       * fields are eligible for natural language filter extraction (but are not
            +       * guaranteed to be used). If any fields are specified in
            +       * allowed_field_names, only the fields that are both marked as indexable in
            +       * the schema and specified in the allowlist will be eligible for natural
            +       * language filter extraction. Note: for multi-datastore search, this is not
            +       * yet supported, and will be ignored.
            +       * 
            + * + * repeated string allowed_field_names = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the allowedFieldNames to add. + * @return This builder for chaining. + */ + public Builder addAllowedFieldNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedFieldNamesIsMutable(); + allowedFieldNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec) } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder.class); + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec(); } - private int bitField0_; - public static final int QUERY_ID_FIELD_NUMBER = 1; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - @SuppressWarnings("serial") - private volatile java.lang.Object queryId_ = ""; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NaturalLanguageQueryUnderstandingSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; + } - /** - * - * - *
            -     * If set, the search result gets stored to the "turn" specified by this
            -     * query ID.
            -     *
            -     * Example: Let's say the session looks like this:
            -     * session {
            -     * name: ".../sessions/xxx"
            -     * turns {
            -     * query { text: "What is foo?" query_id: ".../questions/yyy" }
            -     * answer: "Foo is ..."
            -     * }
            -     * turns {
            -     * query { text: "How about bar then?" query_id: ".../questions/zzz" }
            -     * }
            -     * }
            -     *
            -     * The user can call /search API with a request like this:
            -     *
            -     * session: ".../sessions/xxx"
            -     * session_spec { query_id: ".../questions/zzz" }
            -     *
            -     * Then, the API stores the search result, associated with the last turn.
            -     * The stored search result can be used by a subsequent /answer API call
            -     * (with the session ID and the query ID specified). Also, it is possible
            -     * to call /search and /answer in parallel with the same session ID & query
            -     * ID.
            -     * 
            - * - * string query_id = 1; - * - * @return The queryId. - */ @java.lang.Override - public java.lang.String getQueryId() { - java.lang.Object ref = queryId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - queryId_ = s; - return s; - } + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - /** - * - * - *
            -     * If set, the search result gets stored to the "turn" specified by this
            -     * query ID.
            -     *
            -     * Example: Let's say the session looks like this:
            -     * session {
            -     * name: ".../sessions/xxx"
            -     * turns {
            -     * query { text: "What is foo?" query_id: ".../questions/yyy" }
            -     * answer: "Foo is ..."
            -     * }
            -     * turns {
            -     * query { text: "How about bar then?" query_id: ".../questions/zzz" }
            -     * }
            -     * }
            -     *
            -     * The user can call /search API with a request like this:
            -     *
            -     * session: ".../sessions/xxx"
            -     * session_spec { query_id: ".../questions/zzz" }
            -     *
            -     * Then, the API stores the search result, associated with the last turn.
            -     * The stored search result can be used by a subsequent /answer API call
            -     * (with the session ID and the query ID specified). Also, it is possible
            -     * to call /search and /answer in parallel with the same session ID & query
            -     * ID.
            -     * 
            - * - * string query_id = 1; - * - * @return The bytes for queryId. - */ @java.lang.Override - public com.google.protobuf.ByteString getQueryIdBytes() { - java.lang.Object ref = queryId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - queryId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - public static final int SEARCH_RESULT_PERSISTENCE_COUNT_FIELD_NUMBER = 2; - private int searchResultPersistenceCount_ = 0; + public interface SearchAsYouTypeSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) + com.google.protobuf.MessageOrBuilder { /** * * *
            -     * The number of top search results to persist. The persisted search results
            -     * can be used for the subsequent /answer api call.
            -     *
            -     * This field is simliar to the `summary_result_count` field in
            -     * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
            -     *
            -     * At most 10 results for documents mode, or 50 for chunks mode.
            +     * The condition under which search as you type should occur.
            +     * Default to
            +     * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
                  * 
            * - * optional int32 search_result_persistence_count = 2; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * * - * @return Whether the searchResultPersistenceCount field is set. + * @return The enum numeric value on the wire for condition. */ - @java.lang.Override - public boolean hasSearchResultPersistenceCount() { - return ((bitField0_ & 0x00000001) != 0); - } + int getConditionValue(); /** * * *
            -     * The number of top search results to persist. The persisted search results
            -     * can be used for the subsequent /answer api call.
            -     *
            -     * This field is simliar to the `summary_result_count` field in
            -     * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
            -     *
            -     * At most 10 results for documents mode, or 50 for chunks mode.
            +     * The condition under which search as you type should occur.
            +     * Default to
            +     * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
                  * 
            * - * optional int32 search_result_persistence_count = 2; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * * - * @return The searchResultPersistenceCount. + * @return The condition. */ - @java.lang.Override - public int getSearchResultPersistenceCount() { - return searchResultPersistenceCount_; - } - - private byte memoizedIsInitialized = -1; + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + getCondition(); + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + /** + * + * + *
            +   * Specification for search as you type in search requests.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec} + */ + public static final class SearchAsYouTypeSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) + SearchAsYouTypeSpecOrBuilder { + private static final long serialVersionUID = 0L; - memoizedIsInitialized = 1; - return true; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchAsYouTypeSpec"); } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, queryId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt32(2, searchResultPersistenceCount_); - } - getUnknownFields().writeTo(output); + // Use SearchAsYouTypeSpec.newBuilder() to construct. + private SearchAsYouTypeSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, queryId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeInt32Size( - 2, searchResultPersistenceCount_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; + private SearchAsYouTypeSpec() { + condition_ = 0; } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec)) { - return super.equals(obj); - } - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) obj; - - if (!getQueryId().equals(other.getQueryId())) return false; - if (hasSearchResultPersistenceCount() != other.hasSearchResultPersistenceCount()) - return false; - if (hasSearchResultPersistenceCount()) { - if (getSearchResultPersistenceCount() != other.getSearchResultPersistenceCount()) - return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_descriptor; } @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUERY_ID_FIELD_NUMBER; - hash = (53 * hash) + getQueryId().hashCode(); - if (hasSearchResultPersistenceCount()) { - hash = (37 * hash) + SEARCH_RESULT_PERSISTENCE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getSearchResultPersistenceCount(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder + .class); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + /** + * + * + *
            +     * Enum describing under which condition search as you type should occur.
            +     * 
            + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition} + */ + public enum Condition implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Server behavior defaults to
            +       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
            +       * 
            + * + * CONDITION_UNSPECIFIED = 0; + */ + CONDITION_UNSPECIFIED(0), + /** + * + * + *
            +       * Disables Search As You Type.
            +       * 
            + * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
            +       * Enables Search As You Type.
            +       * 
            + * + * ENABLED = 2; + */ + ENABLED(2), + /** + * + * + *
            +       * Automatic switching between search-as-you-type and standard search
            +       * modes, ideal for single-API implementations (e.g., debouncing).
            +       * 
            + * + * AUTO = 3; + */ + AUTO(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Condition"); + } + + /** + * + * + *
            +       * Server behavior defaults to
            +       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
            +       * 
            + * + * CONDITION_UNSPECIFIED = 0; + */ + public static final int CONDITION_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +       * Disables Search As You Type.
            +       * 
            + * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + + /** + * + * + *
            +       * Enables Search As You Type.
            +       * 
            + * + * ENABLED = 2; + */ + public static final int ENABLED_VALUE = 2; + + /** + * + * + *
            +       * Automatic switching between search-as-you-type and standard search
            +       * modes, ideal for single-API implementations (e.g., debouncing).
            +       * 
            + * + * AUTO = 3; + */ + public static final int AUTO_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 Condition 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 Condition forNumber(int value) { + switch (value) { + case 0: + return CONDITION_UNSPECIFIED; + case 1: + return DISABLED; + case 2: + return ENABLED; + case 3: + return AUTO; + 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 Condition findValueByNumber(int number) { + return Condition.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Condition[] VALUES = values(); + + public static Condition 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 Condition(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition) + } + + public static final int CONDITION_FIELD_NUMBER = 1; + private int condition_ = 0; + + /** + * + * + *
            +     * The condition under which search as you type should occur.
            +     * Default to
            +     * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @return The enum numeric value on the wire for condition. + */ + @java.lang.Override + public int getConditionValue() { + return condition_; + } + + /** + * + * + *
            +     * The condition under which search as you type should occur.
            +     * Default to
            +     * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * + * + * @return The condition. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + getCondition() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + .forNumber(condition_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + .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 (condition_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + .CONDITION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, condition_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (condition_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + .CONDITION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, condition_); + } + 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.v1beta.SearchRequest.SearchAsYouTypeSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) obj; + + if (condition_ != other.condition_) 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) + CONDITION_FIELD_NUMBER; + hash = (53 * hash) + condition_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + 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.v1beta.SearchRequest.SessionSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseFrom( + 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.v1beta.SearchRequest.SessionSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -29057,15 +30862,16 @@ public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -29080,7 +30886,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec prototype) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -29099,36 +30905,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
            -     * Session specification.
            -     *
            -     * Multi-turn Search feature is currently at private GA stage. Please use
            -     * v1alpha or v1beta version instead before we launch this feature to public
            -     * GA. Or ask for allowlisting through Google Support team.
            +     * Specification for search as you type in search requests.
                  * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpecOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder.class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder + .class); } // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.newBuilder() + // com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -29139,27 +30942,27 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - queryId_ = ""; - searchResultPersistenceCount_ = 0; + condition_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec + return com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec result = buildPartial(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -29167,9 +30970,10 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec build() } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec(this); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -29178,24 +30982,19 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec buildPa } private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec result) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.queryId_ = queryId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.searchResultPersistenceCount_ = searchResultPersistenceCount_; - to_bitField0_ |= 0x00000001; + result.condition_ = condition_; } - result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) { return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) other); + (com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) other); } else { super.mergeFrom(other); return this; @@ -29203,17 +31002,12 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec other) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec other) { if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec + == com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec .getDefaultInstance()) return this; - if (!other.getQueryId().isEmpty()) { - queryId_ = other.queryId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasSearchResultPersistenceCount()) { - setSearchResultPersistenceCount(other.getSearchResultPersistenceCount()); + if (other.condition_ != 0) { + setConditionValue(other.getConditionValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -29241,18 +31035,12 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: + case 8: { - queryId_ = input.readStringRequireUtf8(); + condition_ = input.readEnum(); bitField0_ |= 0x00000001; break; - } // case 10 - case 16: - { - searchResultPersistenceCount_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 + } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -29272,143 +31060,46 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object queryId_ = ""; + private int condition_ = 0; /** * * *
            -       * If set, the search result gets stored to the "turn" specified by this
            -       * query ID.
            +       * The condition under which search as you type should occur.
            +       * Default to
            +       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
            +       * 
            * - * Example: Let's say the session looks like this: - * session { - * name: ".../sessions/xxx" - * turns { - * query { text: "What is foo?" query_id: ".../questions/yyy" } - * answer: "Foo is ..." - * } - * turns { - * query { text: "How about bar then?" query_id: ".../questions/zzz" } - * } - * } + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * * - * The user can call /search API with a request like this: + * @return The enum numeric value on the wire for condition. + */ + @java.lang.Override + public int getConditionValue() { + return condition_; + } + + /** * - * session: ".../sessions/xxx" - * session_spec { query_id: ".../questions/zzz" } * - * Then, the API stores the search result, associated with the last turn. - * The stored search result can be used by a subsequent /answer API call - * (with the session ID and the query ID specified). Also, it is possible - * to call /search and /answer in parallel with the same session ID & query - * ID. + *
            +       * The condition under which search as you type should occur.
            +       * Default to
            +       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
                    * 
            * - * string query_id = 1; - * - * @return The queryId. - */ - public java.lang.String getQueryId() { - java.lang.Object ref = queryId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - queryId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
            -       * If set, the search result gets stored to the "turn" specified by this
            -       * query ID.
            -       *
            -       * Example: Let's say the session looks like this:
            -       * session {
            -       * name: ".../sessions/xxx"
            -       * turns {
            -       * query { text: "What is foo?" query_id: ".../questions/yyy" }
            -       * answer: "Foo is ..."
            -       * }
            -       * turns {
            -       * query { text: "How about bar then?" query_id: ".../questions/zzz" }
            -       * }
            -       * }
            -       *
            -       * The user can call /search API with a request like this:
            -       *
            -       * session: ".../sessions/xxx"
            -       * session_spec { query_id: ".../questions/zzz" }
            -       *
            -       * Then, the API stores the search result, associated with the last turn.
            -       * The stored search result can be used by a subsequent /answer API call
            -       * (with the session ID and the query ID specified). Also, it is possible
            -       * to call /search and /answer in parallel with the same session ID & query
            -       * ID.
            -       * 
            - * - * string query_id = 1; - * - * @return The bytes for queryId. - */ - public com.google.protobuf.ByteString getQueryIdBytes() { - java.lang.Object ref = queryId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - queryId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
            -       * If set, the search result gets stored to the "turn" specified by this
            -       * query ID.
            -       *
            -       * Example: Let's say the session looks like this:
            -       * session {
            -       * name: ".../sessions/xxx"
            -       * turns {
            -       * query { text: "What is foo?" query_id: ".../questions/yyy" }
            -       * answer: "Foo is ..."
            -       * }
            -       * turns {
            -       * query { text: "How about bar then?" query_id: ".../questions/zzz" }
            -       * }
            -       * }
            -       *
            -       * The user can call /search API with a request like this:
            -       *
            -       * session: ".../sessions/xxx"
            -       * session_spec { query_id: ".../questions/zzz" }
            -       *
            -       * Then, the API stores the search result, associated with the last turn.
            -       * The stored search result can be used by a subsequent /answer API call
            -       * (with the session ID and the query ID specified). Also, it is possible
            -       * to call /search and /answer in parallel with the same session ID & query
            -       * ID.
            -       * 
            - * - * string query_id = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * * - * @param value The queryId to set. + * @param value The enum numeric value on the wire for condition to set. * @return This builder for chaining. */ - public Builder setQueryId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - queryId_ = value; + public Builder setConditionValue(int value) { + condition_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -29418,159 +31109,53 @@ public Builder setQueryId(java.lang.String value) { * * *
            -       * If set, the search result gets stored to the "turn" specified by this
            -       * query ID.
            -       *
            -       * Example: Let's say the session looks like this:
            -       * session {
            -       * name: ".../sessions/xxx"
            -       * turns {
            -       * query { text: "What is foo?" query_id: ".../questions/yyy" }
            -       * answer: "Foo is ..."
            -       * }
            -       * turns {
            -       * query { text: "How about bar then?" query_id: ".../questions/zzz" }
            -       * }
            -       * }
            -       *
            -       * The user can call /search API with a request like this:
            -       *
            -       * session: ".../sessions/xxx"
            -       * session_spec { query_id: ".../questions/zzz" }
            -       *
            -       * Then, the API stores the search result, associated with the last turn.
            -       * The stored search result can be used by a subsequent /answer API call
            -       * (with the session ID and the query ID specified). Also, it is possible
            -       * to call /search and /answer in parallel with the same session ID & query
            -       * ID.
            +       * The condition under which search as you type should occur.
            +       * Default to
            +       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
                    * 
            * - * string query_id = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * * - * @return This builder for chaining. + * @return The condition. */ - public Builder clearQueryId() { - queryId_ = getDefaultInstance().getQueryId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + getCondition() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + .forNumber(condition_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + .UNRECOGNIZED + : result; } /** * * *
            -       * If set, the search result gets stored to the "turn" specified by this
            -       * query ID.
            -       *
            -       * Example: Let's say the session looks like this:
            -       * session {
            -       * name: ".../sessions/xxx"
            -       * turns {
            -       * query { text: "What is foo?" query_id: ".../questions/yyy" }
            -       * answer: "Foo is ..."
            -       * }
            -       * turns {
            -       * query { text: "How about bar then?" query_id: ".../questions/zzz" }
            -       * }
            -       * }
            -       *
            -       * The user can call /search API with a request like this:
            -       *
            -       * session: ".../sessions/xxx"
            -       * session_spec { query_id: ".../questions/zzz" }
            -       *
            -       * Then, the API stores the search result, associated with the last turn.
            -       * The stored search result can be used by a subsequent /answer API call
            -       * (with the session ID and the query ID specified). Also, it is possible
            -       * to call /search and /answer in parallel with the same session ID & query
            -       * ID.
            +       * The condition under which search as you type should occur.
            +       * Default to
            +       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
                    * 
            * - * string query_id = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * * - * @param value The bytes for queryId to set. + * @param value The condition to set. * @return This builder for chaining. */ - public Builder setQueryIdBytes(com.google.protobuf.ByteString value) { + public Builder setCondition( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition + value) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - queryId_ = value; bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int searchResultPersistenceCount_; - - /** - * - * - *
            -       * The number of top search results to persist. The persisted search results
            -       * can be used for the subsequent /answer api call.
            -       *
            -       * This field is simliar to the `summary_result_count` field in
            -       * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
            -       *
            -       * At most 10 results for documents mode, or 50 for chunks mode.
            -       * 
            - * - * optional int32 search_result_persistence_count = 2; - * - * @return Whether the searchResultPersistenceCount field is set. - */ - @java.lang.Override - public boolean hasSearchResultPersistenceCount() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
            -       * The number of top search results to persist. The persisted search results
            -       * can be used for the subsequent /answer api call.
            -       *
            -       * This field is simliar to the `summary_result_count` field in
            -       * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
            -       *
            -       * At most 10 results for documents mode, or 50 for chunks mode.
            -       * 
            - * - * optional int32 search_result_persistence_count = 2; - * - * @return The searchResultPersistenceCount. - */ - @java.lang.Override - public int getSearchResultPersistenceCount() { - return searchResultPersistenceCount_; - } - - /** - * - * - *
            -       * The number of top search results to persist. The persisted search results
            -       * can be used for the subsequent /answer api call.
            -       *
            -       * This field is simliar to the `summary_result_count` field in
            -       * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
            -       *
            -       * At most 10 results for documents mode, or 50 for chunks mode.
            -       * 
            - * - * optional int32 search_result_persistence_count = 2; - * - * @param value The searchResultPersistenceCount to set. - * @return This builder for chaining. - */ - public Builder setSearchResultPersistenceCount(int value) { - - searchResultPersistenceCount_ = value; - bitField0_ |= 0x00000002; + condition_ = value.getNumber(); onChanged(); return this; } @@ -29579,46 +31164,45 @@ public Builder setSearchResultPersistenceCount(int value) { * * *
            -       * The number of top search results to persist. The persisted search results
            -       * can be used for the subsequent /answer api call.
            -       *
            -       * This field is simliar to the `summary_result_count` field in
            -       * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
            -       *
            -       * At most 10 results for documents mode, or 50 for chunks mode.
            +       * The condition under which search as you type should occur.
            +       * Default to
            +       * [Condition.DISABLED][google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED].
                    * 
            * - * optional int32 search_result_persistence_count = 2; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; + * * * @return This builder for chaining. */ - public Builder clearSearchResultPersistenceCount() { - bitField0_ = (bitField0_ & ~0x00000002); - searchResultPersistenceCount_ = 0; + public Builder clearCondition() { + bitField0_ = (bitField0_ & ~0x00000001); + condition_ = 0; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec(); + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec(); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec 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 SessionSpec parsePartialFrom( + public SearchAsYouTypeSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -29638,73 +31222,72 @@ public SessionSpec 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.discoveryengine.v1beta.SearchRequest.SessionSpec + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface PersonalizationSpecOrBuilder + public interface DisplaySpecOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec) com.google.protobuf.MessageOrBuilder { /** * * *
            -     * The personalization mode of the search request.
            -     * Defaults to
            -     * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +     * The condition under which match highlighting should occur.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode mode = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; * * - * @return The enum numeric value on the wire for mode. + * @return The enum numeric value on the wire for matchHighlightingCondition. */ - int getModeValue(); + int getMatchHighlightingConditionValue(); /** * * *
            -     * The personalization mode of the search request.
            -     * Defaults to
            -     * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +     * The condition under which match highlighting should occur.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode mode = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; * * - * @return The mode. + * @return The matchHighlightingCondition. */ - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode getMode(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.MatchHighlightingCondition + getMatchHighlightingCondition(); } /** * * *
            -   * The specification for personalization.
            +   * Specifies features for display, like match highlighting.
                * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec} */ - public static final class PersonalizationSpec extends com.google.protobuf.GeneratedMessage + public static final class DisplaySpec extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec) - PersonalizationSpecOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec) + DisplaySpecOrBuilder { private static final long serialVersionUID = 0L; static { @@ -29714,76 +31297,74 @@ public static final class PersonalizationSpec extends com.google.protobuf.Genera /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "PersonalizationSpec"); + "DisplaySpec"); } - // Use PersonalizationSpec.newBuilder() to construct. - private PersonalizationSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use DisplaySpec.newBuilder() to construct. + private DisplaySpec(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private PersonalizationSpec() { - mode_ = 0; + private DisplaySpec() { + matchHighlightingCondition_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_PersonalizationSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DisplaySpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_PersonalizationSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DisplaySpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Builder - .class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.Builder.class); } /** * * *
            -     * The personalization mode of each search request.
            +     * Enum describing under which condition match highlighting should occur.
                  * 
            * * Protobuf enum {@code - * google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode} + * google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.MatchHighlightingCondition} */ - public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + public enum MatchHighlightingCondition implements com.google.protobuf.ProtocolMessageEnum { /** * * *
            -       * Default value. In this case, server behavior defaults to
            -       * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +       * Server behavior is the same as `MATCH_HIGHLIGHTING_DISABLED`.
                    * 
            * - * MODE_UNSPECIFIED = 0; + * MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED = 0; */ - MODE_UNSPECIFIED(0), + MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED(0), /** * * *
            -       * Personalization is enabled if data quality requirements are met.
            +       * Disables match highlighting on all documents.
                    * 
            * - * AUTO = 1; + * MATCH_HIGHLIGHTING_DISABLED = 1; */ - AUTO(1), + MATCH_HIGHLIGHTING_DISABLED(1), /** * * *
            -       * Disable personalization.
            +       * Enables match highlighting on all documents.
                    * 
            * - * DISABLED = 2; + * MATCH_HIGHLIGHTING_ENABLED = 2; */ - DISABLED(2), + MATCH_HIGHLIGHTING_ENABLED(2), UNRECOGNIZED(-1), ; @@ -29794,42 +31375,41 @@ public enum Mode implements com.google.protobuf.ProtocolMessageEnum { /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "Mode"); + "MatchHighlightingCondition"); } /** * * *
            -       * Default value. In this case, server behavior defaults to
            -       * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +       * Server behavior is the same as `MATCH_HIGHLIGHTING_DISABLED`.
                    * 
            * - * MODE_UNSPECIFIED = 0; + * MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED = 0; */ - public static final int MODE_UNSPECIFIED_VALUE = 0; + public static final int MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED_VALUE = 0; /** * * *
            -       * Personalization is enabled if data quality requirements are met.
            +       * Disables match highlighting on all documents.
                    * 
            * - * AUTO = 1; + * MATCH_HIGHLIGHTING_DISABLED = 1; */ - public static final int AUTO_VALUE = 1; + public static final int MATCH_HIGHLIGHTING_DISABLED_VALUE = 1; /** * * *
            -       * Disable personalization.
            +       * Enables match highlighting on all documents.
                    * 
            * - * DISABLED = 2; + * MATCH_HIGHLIGHTING_ENABLED = 2; */ - public static final int DISABLED_VALUE = 2; + public static final int MATCH_HIGHLIGHTING_ENABLED_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -29845,7 +31425,7 @@ public final int getNumber() { * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static Mode valueOf(int value) { + public static MatchHighlightingCondition valueOf(int value) { return forNumber(value); } @@ -29853,29 +31433,31 @@ public static Mode valueOf(int 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) { + public static MatchHighlightingCondition forNumber(int value) { switch (value) { case 0: - return MODE_UNSPECIFIED; + return MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED; case 1: - return AUTO; + return MATCH_HIGHLIGHTING_DISABLED; case 2: - return DISABLED; + return MATCH_HIGHLIGHTING_ENABLED; default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + 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); - } - }; + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MatchHighlightingCondition findValueByNumber(int number) { + return MatchHighlightingCondition.forNumber(number); + } + }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { @@ -29890,15 +31472,15 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec - .getDescriptor() + return com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.getDescriptor() .getEnumTypes() .get(0); } - private static final Mode[] VALUES = values(); + private static final MatchHighlightingCondition[] VALUES = values(); - public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static MatchHighlightingCondition valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } @@ -29910,58 +31492,58 @@ public static Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor d private final int value; - private Mode(int value) { + private MatchHighlightingCondition(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode) + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.MatchHighlightingCondition) } - public static final int MODE_FIELD_NUMBER = 1; - private int mode_ = 0; + public static final int MATCH_HIGHLIGHTING_CONDITION_FIELD_NUMBER = 1; + private int matchHighlightingCondition_ = 0; /** * * *
            -     * The personalization mode of the search request.
            -     * Defaults to
            -     * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +     * The condition under which match highlighting should occur.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode mode = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; * * - * @return The enum numeric value on the wire for mode. + * @return The enum numeric value on the wire for matchHighlightingCondition. */ @java.lang.Override - public int getModeValue() { - return mode_; + public int getMatchHighlightingConditionValue() { + return matchHighlightingCondition_; } /** * * *
            -     * The personalization mode of the search request.
            -     * Defaults to
            -     * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +     * The condition under which match highlighting should occur.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode mode = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; * * - * @return The mode. + * @return The matchHighlightingCondition. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode - getMode() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode result = - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.forNumber( - mode_); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec + .MatchHighlightingCondition + getMatchHighlightingCondition() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.MatchHighlightingCondition + result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec + .MatchHighlightingCondition.forNumber(matchHighlightingCondition_); return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode - .UNRECOGNIZED + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec + .MatchHighlightingCondition.UNRECOGNIZED : result; } @@ -29979,11 +31561,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (mode_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode - .MODE_UNSPECIFIED + if (matchHighlightingCondition_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec + .MatchHighlightingCondition.MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED .getNumber()) { - output.writeEnum(1, mode_); + output.writeEnum(1, matchHighlightingCondition_); } getUnknownFields().writeTo(output); } @@ -29994,11 +31576,12 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (mode_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode - .MODE_UNSPECIFIED + if (matchHighlightingCondition_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec + .MatchHighlightingCondition.MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, matchHighlightingCondition_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -30010,14 +31593,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj - instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec)) { + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec)) { return super.equals(obj); } - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec) obj; + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec) obj; - if (mode_ != other.mode_) return false; + if (matchHighlightingCondition_ != other.matchHighlightingCondition_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -30029,70 +31611,66 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + MODE_FIELD_NUMBER; - hash = (53 * hash) + mode_; + hash = (37 * hash) + MATCH_HIGHLIGHTING_CONDITION_FIELD_NUMBER; + hash = (53 * hash) + matchHighlightingCondition_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec 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.v1beta.SearchRequest.PersonalizationSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec parseFrom( + 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.v1beta.SearchRequest.PersonalizationSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec parseFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -30100,16 +31678,15 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } @@ -30124,7 +31701,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec prototype) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -30143,33 +31720,32 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
            -     * The specification for personalization.
            +     * Specifies features for display, like match highlighting.
                  * 
            * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec} + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec) - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpecOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpecOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_PersonalizationSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DisplaySpec_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_PersonalizationSpec_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DisplaySpec_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Builder - .class); + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.Builder.class); } // Construct using - // com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.newBuilder() + // com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -30180,27 +31756,26 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - mode_ = 0; + matchHighlightingCondition_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_PersonalizationSpec_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DisplaySpec_descriptor; } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + return com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec result = - buildPartial(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -30208,10 +31783,9 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec } @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec - buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec(this); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -30220,19 +31794,18 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec } private void buildPartial0( - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec result) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.mode_ = mode_; + result.matchHighlightingCondition_ = matchHighlightingCondition_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec) { return mergeFrom( - (com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec) other); + (com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec) other); } else { super.mergeFrom(other); return this; @@ -30240,12 +31813,12 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec other) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec other) { if (other - == com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + == com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec .getDefaultInstance()) return this; - if (other.mode_ != 0) { - setModeValue(other.getModeValue()); + if (other.matchHighlightingCondition_ != 0) { + setMatchHighlightingConditionValue(other.getMatchHighlightingConditionValue()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -30275,7 +31848,7 @@ public Builder mergeFrom( break; case 8: { - mode_ = input.readEnum(); + matchHighlightingCondition_ = input.readEnum(); bitField0_ |= 0x00000001; break; } // case 8 @@ -30298,44 +31871,42 @@ public Builder mergeFrom( private int bitField0_; - private int mode_ = 0; + private int matchHighlightingCondition_ = 0; /** * * *
            -       * The personalization mode of the search request.
            -       * Defaults to
            -       * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +       * The condition under which match highlighting should occur.
                    * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode mode = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; * * - * @return The enum numeric value on the wire for mode. + * @return The enum numeric value on the wire for matchHighlightingCondition. */ @java.lang.Override - public int getModeValue() { - return mode_; + public int getMatchHighlightingConditionValue() { + return matchHighlightingCondition_; } /** * * *
            -       * The personalization mode of the search request.
            -       * Defaults to
            -       * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +       * The condition under which match highlighting should occur.
                    * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode mode = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; * * - * @param value The enum numeric value on the wire for mode to set. + * @param value The enum numeric value on the wire for matchHighlightingCondition to set. * @return This builder for chaining. */ - public Builder setModeValue(int value) { - mode_ = value; + public Builder setMatchHighlightingConditionValue(int value) { + matchHighlightingCondition_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -30345,25 +31916,26 @@ public Builder setModeValue(int value) { * * *
            -       * The personalization mode of the search request.
            -       * Defaults to
            -       * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +       * The condition under which match highlighting should occur.
                    * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode mode = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; * * - * @return The mode. + * @return The matchHighlightingCondition. */ @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode - getMode() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode result = - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode - .forNumber(mode_); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec + .MatchHighlightingCondition + getMatchHighlightingCondition() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.MatchHighlightingCondition + result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec + .MatchHighlightingCondition.forNumber(matchHighlightingCondition_); return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode - .UNRECOGNIZED + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec + .MatchHighlightingCondition.UNRECOGNIZED : result; } @@ -30371,24 +31943,25 @@ public Builder setModeValue(int value) { * * *
            -       * The personalization mode of the search request.
            -       * Defaults to
            -       * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +       * The condition under which match highlighting should occur.
                    * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode mode = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; * * - * @param value The mode to set. + * @param value The matchHighlightingCondition to set. * @return This builder for chaining. */ - public Builder setMode( - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode value) { + public Builder setMatchHighlightingCondition( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec + .MatchHighlightingCondition + value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - mode_ = value.getNumber(); + matchHighlightingCondition_ = value.getNumber(); onChanged(); return this; } @@ -30397,44 +31970,42 @@ public Builder setMode( * * *
            -       * The personalization mode of the search request.
            -       * Defaults to
            -       * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +       * The condition under which match highlighting should occur.
                    * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode mode = 1; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.MatchHighlightingCondition match_highlighting_condition = 1; * * * @return This builder for chaining. */ - public Builder clearMode() { + public Builder clearMatchHighlightingCondition() { bitField0_ = (bitField0_ & ~0x00000001); - mode_ = 0; + matchHighlightingCondition_ = 0; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec) + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec) } - // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec) - private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec(); + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec(); } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec 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 PersonalizationSpec parsePartialFrom( + public DisplaySpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -30454,3919 +32025,14310 @@ public PersonalizationSpec 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.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - private int bitField0_; - public static final int SERVING_CONFIG_FIELD_NUMBER = 1; + public interface CrowdingSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object servingConfig_ = ""; + /** + * + * + *
            +     * The field to use for crowding. Documents can be crowded by a field in the
            +     * [Document][google.cloud.discoveryengine.v1beta.Document] object. Crowding
            +     * field is case sensitive.
            +     * 
            + * + * string field = 1; + * + * @return The field. + */ + java.lang.String getField(); - /** - * - * - *
            -   * Required. The resource name of the Search serving config, such as
            -   * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
            -   * or
            -   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
            -   * This field is used to identify the serving configuration name, set
            -   * of models used to make the search.
            -   * 
            - * - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.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 field to use for crowding. Documents can be crowded by a field in the
            +     * [Document][google.cloud.discoveryengine.v1beta.Document] object. Crowding
            +     * field is case sensitive.
            +     * 
            + * + * string field = 1; + * + * @return The bytes for field. + */ + com.google.protobuf.ByteString getFieldBytes(); + + /** + * + * + *
            +     * The maximum number of documents to keep per value of the field. Once
            +     * there are at least max_count previous results which contain the same
            +     * value for the given field (according to the order specified in
            +     * `order_by`), later results with the same value are "crowded away".
            +     * If not specified, the default value is 1.
            +     * 
            + * + * int32 max_count = 2; + * + * @return The maxCount. + */ + int getMaxCount(); + + /** + * + * + *
            +     * Mode to use for documents that are crowded away.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode mode = 3; + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + + /** + * + * + *
            +     * Mode to use for documents that are crowded away.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode mode = 3; + * + * @return The mode. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode getMode(); } /** * * *
            -   * Required. The resource name of the Search serving config, such as
            -   * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
            -   * or
            -   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
            -   * This field is used to identify the serving configuration name, set
            -   * of models used to make the search.
            +   * Specification for crowding. Crowding improves the diversity of search
            +   * results by limiting the number of results that share the same field value.
            +   * For example, crowding on the color field with a max_count of 3 and mode
            +   * DROP_CROWDED_RESULTS will return at most 3 results with the same color
            +   * across all pages.
                * 
            * - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for servingConfig. + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec} */ - @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 class CrowdingSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec) + CrowdingSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CrowdingSpec"); } - } - public static final int BRANCH_FIELD_NUMBER = 2; + // Use CrowdingSpec.newBuilder() to construct. + private CrowdingSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @SuppressWarnings("serial") - private volatile java.lang.Object branch_ = ""; + private CrowdingSpec() { + field_ = ""; + mode_ = 0; + } - /** - * - * - *
            -   * The branch resource name, such as
            -   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
            -   *
            -   * Use `default_branch` as the branch ID or leave this field empty, to search
            -   * documents under the default branch.
            -   * 
            - * - * string branch = 2 [(.google.api.resource_reference) = { ... } - * - * @return The branch. - */ - @java.lang.Override - public java.lang.String getBranch() { - java.lang.Object ref = branch_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - branch_ = s; - return s; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CrowdingSpec_descriptor; } - } - /** - * - * - *
            -   * The branch resource name, such as
            -   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
            -   *
            -   * Use `default_branch` as the branch ID or leave this field empty, to search
            -   * documents under the default branch.
            -   * 
            - * - * string branch = 2 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for branch. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBranchBytes() { - java.lang.Object ref = branch_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - branch_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CrowdingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Builder.class); } - } - public static final int QUERY_FIELD_NUMBER = 3; + /** + * + * + *
            +     * Enum describing the mode to use for documents that are crowded away.
            +     * They can be dropped or demoted to the later pages.
            +     * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode} + */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Unspecified crowding mode. In this case, server behavior defaults to
            +       * [Mode.DROP_CROWDED_RESULTS][google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode.DROP_CROWDED_RESULTS].
            +       * 
            + * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
            +       * Drop crowded results.
            +       * 
            + * + * DROP_CROWDED_RESULTS = 1; + */ + DROP_CROWDED_RESULTS(1), + /** + * + * + *
            +       * Demote crowded results to the later pages.
            +       * 
            + * + * DEMOTE_CROWDED_RESULTS_TO_END = 2; + */ + DEMOTE_CROWDED_RESULTS_TO_END(2), + UNRECOGNIZED(-1), + ; - @SuppressWarnings("serial") - private volatile java.lang.Object query_ = ""; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Mode"); + } - /** - * - * - *
            -   * Raw search query.
            -   * 
            - * - * string query = 3; - * - * @return The query. - */ - @java.lang.Override - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } - } + /** + * + * + *
            +       * Unspecified crowding mode. In this case, server behavior defaults to
            +       * [Mode.DROP_CROWDED_RESULTS][google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode.DROP_CROWDED_RESULTS].
            +       * 
            + * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
            -   * Raw search query.
            -   * 
            - * - * string query = 3; - * - * @return The bytes for query. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + /** + * + * + *
            +       * Drop crowded results.
            +       * 
            + * + * DROP_CROWDED_RESULTS = 1; + */ + public static final int DROP_CROWDED_RESULTS_VALUE = 1; - public static final int IMAGE_QUERY_FIELD_NUMBER = 19; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery imageQuery_; + /** + * + * + *
            +       * Demote crowded results to the later pages.
            +       * 
            + * + * DEMOTE_CROWDED_RESULTS_TO_END = 2; + */ + public static final int DEMOTE_CROWDED_RESULTS_TO_END_VALUE = 2; - /** - * - * - *
            -   * Raw image query.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; - * - * @return Whether the imageQuery field is set. - */ - @java.lang.Override - public boolean hasImageQuery() { - return ((bitField0_ & 0x00000001) != 0); - } + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } - /** - * - * - *
            -   * Raw image query.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; - * - * @return The imageQuery. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery getImageQuery() { - return imageQuery_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() - : imageQuery_; - } + /** + * @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); + } - /** - * - * - *
            -   * Raw image query.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder - getImageQueryOrBuilder() { - return imageQuery_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() - : imageQuery_; - } + /** + * @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 DROP_CROWDED_RESULTS; + case 2: + return DEMOTE_CROWDED_RESULTS_TO_END; + default: + return null; + } + } - public static final int PAGE_SIZE_FIELD_NUMBER = 4; - private int pageSize_ = 0; + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } - /** - * - * - *
            -   * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
            -   * to return. The maximum allowed value depends on the data type. Values above
            -   * the maximum value are coerced to the maximum value.
            -   *
            -   * * Websites with basic indexing: Default `10`, Maximum `25`.
            -   * * Websites with advanced indexing: Default `25`, Maximum `50`.
            -   * * Other: Default `50`, Maximum `100`.
            -   *
            -   * If this field is negative, an  `INVALID_ARGUMENT` is returned.
            -   * 
            - * - * int32 page_size = 4; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } + 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 static final int PAGE_TOKEN_FIELD_NUMBER = 5; + 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()); + } - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } - /** - * - * - *
            -   * A page token received from a previous
            -   * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -   * call. Provide this to retrieve the subsequent page.
            -   *
            -   * When paginating, all other parameters provided to
            -   * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -   * must match the call that provided the page token. Otherwise, an
            -   * `INVALID_ARGUMENT`  error is returned.
            -   * 
            - * - * string page_token = 5; - * - * @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; - } - } + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.getDescriptor() + .getEnumTypes() + .get(0); + } - /** - * - * - *
            -   * A page token received from a previous
            -   * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -   * call. Provide this to retrieve the subsequent page.
            -   *
            -   * When paginating, all other parameters provided to
            -   * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -   * must match the call that provided the page token. Otherwise, an
            -   * `INVALID_ARGUMENT`  error is returned.
            -   * 
            - * - * string page_token = 5; - * - * @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 OFFSET_FIELD_NUMBER = 6; - private int offset_ = 0; - - /** - * - * - *
            -   * A 0-indexed integer that specifies the current offset (that is, starting
            -   * result location, amongst the
            -   * [Document][google.cloud.discoveryengine.v1beta.Document]s deemed by the API
            -   * as relevant) in search results. This field is only considered if
            -   * [page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
            -   * is unset.
            -   *
            -   * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
            -   * 
            - * - * int32 offset = 6; - * - * @return The offset. - */ - @java.lang.Override - public int getOffset() { - return offset_; - } + private static final Mode[] VALUES = values(); - public static final int ONE_BOX_PAGE_SIZE_FIELD_NUMBER = 47; - private int oneBoxPageSize_ = 0; + 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()]; + } - /** - * - * - *
            -   * 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_; - } + private final int value; - public static final int DATA_STORE_SPECS_FIELD_NUMBER = 32; + private Mode(int value) { + this.value = value; + } - @SuppressWarnings("serial") - private java.util.List - dataStoreSpecs_; + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode) + } - /** - * - * - *
            -   * 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
            -   * use the specs at the top level.
            -   * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; - * - */ - @java.lang.Override - public java.util.List - getDataStoreSpecsList() { - return dataStoreSpecs_; - } + public static final int FIELD_FIELD_NUMBER = 1; - /** - * - * - *
            -   * 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
            -   * use the specs at the top level.
            -   * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> - getDataStoreSpecsOrBuilderList() { - return dataStoreSpecs_; - } + @SuppressWarnings("serial") + private volatile java.lang.Object field_ = ""; - /** - * - * - *
            -   * 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
            -   * use the specs at the top level.
            -   * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; - * - */ - @java.lang.Override - public int getDataStoreSpecsCount() { - return dataStoreSpecs_.size(); - } + /** + * + * + *
            +     * The field to use for crowding. Documents can be crowded by a field in the
            +     * [Document][google.cloud.discoveryengine.v1beta.Document] object. Crowding
            +     * field is case sensitive.
            +     * 
            + * + * string field = 1; + * + * @return The field. + */ + @java.lang.Override + public java.lang.String getField() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } + } - /** - * - * - *
            -   * 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
            -   * use the specs at the top level.
            -   * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec getDataStoreSpecs( - int index) { - return dataStoreSpecs_.get(index); - } + /** + * + * + *
            +     * The field to use for crowding. Documents can be crowded by a field in the
            +     * [Document][google.cloud.discoveryengine.v1beta.Document] object. Crowding
            +     * field is case sensitive.
            +     * 
            + * + * string field = 1; + * + * @return The bytes for field. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * - * - *
            -   * 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
            -   * use the specs at the top level.
            -   * 
            - * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder - getDataStoreSpecsOrBuilder(int index) { - return dataStoreSpecs_.get(index); - } + public static final int MAX_COUNT_FIELD_NUMBER = 2; + private int maxCount_ = 0; - public static final int FILTER_FIELD_NUMBER = 7; + /** + * + * + *
            +     * The maximum number of documents to keep per value of the field. Once
            +     * there are at least max_count previous results which contain the same
            +     * value for the given field (according to the order specified in
            +     * `order_by`), later results with the same value are "crowded away".
            +     * If not specified, the default value is 1.
            +     * 
            + * + * int32 max_count = 2; + * + * @return The maxCount. + */ + @java.lang.Override + public int getMaxCount() { + return maxCount_; + } - @SuppressWarnings("serial") - private volatile java.lang.Object filter_ = ""; + public static final int MODE_FIELD_NUMBER = 3; + private int mode_ = 0; - /** - * - * - *
            -   * The filter syntax consists of an expression language for constructing a
            -   * predicate from one or more fields of the documents being filtered. Filter
            -   * expression is case-sensitive.
            -   *
            -   * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            -   *
            -   * Filtering in Vertex AI Search is done by mapping the LHS filter key to a
            -   * key property defined in the Vertex AI Search backend -- this mapping is
            -   * defined by the customer in their schema. For example a media customer might
            -   * have a field 'name' in their schema. In this case the filter would look
            -   * like this: filter --> name:'ANY("king kong")'
            -   *
            -   * For more information about filtering including syntax and filter
            -   * operators, see
            -   * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            -   * 
            - * - * string filter = 7; - * - * @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; + /** + * + * + *
            +     * Mode to use for documents that are crowded away.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode mode = 3; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; } - } - /** - * - * - *
            -   * The filter syntax consists of an expression language for constructing a
            -   * predicate from one or more fields of the documents being filtered. Filter
            -   * expression is case-sensitive.
            -   *
            -   * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            -   *
            -   * Filtering in Vertex AI Search is done by mapping the LHS filter key to a
            -   * key property defined in the Vertex AI Search backend -- this mapping is
            -   * defined by the customer in their schema. For example a media customer might
            -   * have a field 'name' in their schema. In this case the filter would look
            -   * like this: filter --> name:'ANY("king kong")'
            -   *
            -   * For more information about filtering including syntax and filter
            -   * operators, see
            -   * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            -   * 
            - * - * string filter = 7; - * - * @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; + /** + * + * + *
            +     * Mode to use for documents that are crowded away.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode mode = 3; + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode getMode() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode.forNumber(mode_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode.UNRECOGNIZED + : result; } - } - public static final int CANONICAL_FILTER_FIELD_NUMBER = 29; + private byte memoizedIsInitialized = -1; - @SuppressWarnings("serial") - private volatile java.lang.Object canonicalFilter_ = ""; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * - * - *
            -   * The default filter that is applied when a user performs a search without
            -   * checking any filters on the search page.
            -   *
            -   * The filter applied to every search request when quality improvement such as
            -   * query expansion is needed. In the case a query does not have a sufficient
            -   * amount of results this filter will be used to determine whether or not to
            -   * enable the query expansion flow. The original filter will still be used for
            -   * the query expanded search.
            -   * This field is strongly recommended to achieve high search quality.
            -   *
            -   * For more information about filter syntax, see
            -   * [SearchRequest.filter][google.cloud.discoveryengine.v1beta.SearchRequest.filter].
            -   * 
            - * - * string canonical_filter = 29; - * - * @return The canonicalFilter. - */ - @java.lang.Override - public java.lang.String getCanonicalFilter() { - java.lang.Object ref = canonicalFilter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - canonicalFilter_ = s; - return s; + memoizedIsInitialized = 1; + return true; } - } - /** - * - * - *
            -   * The default filter that is applied when a user performs a search without
            -   * checking any filters on the search page.
            -   *
            -   * The filter applied to every search request when quality improvement such as
            -   * query expansion is needed. In the case a query does not have a sufficient
            -   * amount of results this filter will be used to determine whether or not to
            -   * enable the query expansion flow. The original filter will still be used for
            -   * the query expanded search.
            -   * This field is strongly recommended to achieve high search quality.
            -   *
            -   * For more information about filter syntax, see
            -   * [SearchRequest.filter][google.cloud.discoveryengine.v1beta.SearchRequest.filter].
            -   * 
            - * - * string canonical_filter = 29; - * - * @return The bytes for canonicalFilter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCanonicalFilterBytes() { - java.lang.Object ref = canonicalFilter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - canonicalFilter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(field_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, field_); + } + if (maxCount_ != 0) { + output.writeInt32(2, maxCount_); + } + if (mode_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode + .MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, mode_); + } + getUnknownFields().writeTo(output); } - } - public static final int ORDER_BY_FIELD_NUMBER = 8; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @SuppressWarnings("serial") - private volatile java.lang.Object orderBy_ = ""; + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(field_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, field_); + } + if (maxCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxCount_); + } + if (mode_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode + .MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, mode_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
            -   * The order in which documents are returned. Documents can be ordered by
            -   * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
            -   * object. Leave it unset if ordered by relevance. `order_by` expression is
            -   * case-sensitive.
            -   *
            -   * For more information on ordering the website search results, see
            -   * [Order web search
            -   * results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results).
            -   * For more information on ordering the healthcare search results, see
            -   * [Order healthcare search
            -   * results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results).
            -   * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            -   * 
            - * - * string order_by = 8; - * - * @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; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec) obj; + + if (!getField().equals(other.getField())) return false; + if (getMaxCount() != other.getMaxCount()) return false; + if (mode_ != other.mode_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - } - /** - * - * - *
            -   * The order in which documents are returned. Documents can be ordered by
            -   * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
            -   * object. Leave it unset if ordered by relevance. `order_by` expression is
            -   * case-sensitive.
            -   *
            -   * For more information on ordering the website search results, see
            -   * [Order web search
            -   * results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results).
            -   * For more information on ordering the healthcare search results, see
            -   * [Order healthcare search
            -   * results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results).
            -   * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            -   * 
            - * - * string order_by = 8; - * - * @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; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + hash = (37 * hash) + MAX_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxCount(); + hash = (37 * hash) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - } - public static final int USER_INFO_FIELD_NUMBER = 21; - private com.google.cloud.discoveryengine.v1beta.UserInfo userInfo_; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -   * Information about the end user.
            -   * Highly recommended for analytics.
            -   * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            -   * is used to deduce `device_type` for analytics.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; - * - * @return Whether the userInfo field is set. - */ - @java.lang.Override - public boolean hasUserInfo() { - return ((bitField0_ & 0x00000002) != 0); - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -   * Information about the end user.
            -   * Highly recommended for analytics.
            -   * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            -   * is used to deduce `device_type` for analytics.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; - * - * @return The userInfo. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.UserInfo getUserInfo() { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() - : userInfo_; - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -   * Information about the end user.
            -   * Highly recommended for analytics.
            -   * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            -   * is used to deduce `device_type` for analytics.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBuilder() { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() - : userInfo_; - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec 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 LANGUAGE_CODE_FIELD_NUMBER = 35; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @SuppressWarnings("serial") - private volatile java.lang.Object languageCode_ = ""; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -   * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
            -   * information, see [Standard
            -   * fields](https://cloud.google.com/apis/design/standard_fields). This field
            -   * helps to better interpret the query. If a value isn't specified, the query
            -   * language code is automatically detected, which may not be accurate.
            -   * 
            - * - * string language_code = 35; - * - * @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; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - } - /** - * - * - *
            -   * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
            -   * information, see [Standard
            -   * fields](https://cloud.google.com/apis/design/standard_fields). This field
            -   * helps to better interpret the query. If a value isn't specified, the query
            -   * language code is automatically detected, which may not be accurate.
            -   * 
            - * - * string language_code = 35; - * - * @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 com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - } - public static final int REGION_CODE_FIELD_NUMBER = 36; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - @SuppressWarnings("serial") - private volatile java.lang.Object regionCode_ = ""; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -   * The Unicode country/region code (CLDR) of a location, such as "US" and
            -   * "419". For more information, see [Standard
            -   * fields](https://cloud.google.com/apis/design/standard_fields). If set,
            -   * then results will be boosted based on the region_code provided.
            -   * 
            - * - * string region_code = 36; - * - * @return The regionCode. - */ - @java.lang.Override - public java.lang.String getRegionCode() { - java.lang.Object ref = regionCode_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - regionCode_ = s; - return s; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - } - /** - * - * - *
            -   * The Unicode country/region code (CLDR) of a location, such as "US" and
            -   * "419". For more information, see [Standard
            -   * fields](https://cloud.google.com/apis/design/standard_fields). If set,
            -   * then results will be boosted based on the region_code provided.
            -   * 
            - * - * string region_code = 36; - * - * @return The bytes for regionCode. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRegionCodeBytes() { - java.lang.Object ref = regionCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - regionCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - } - public static final int FACET_SPECS_FIELD_NUMBER = 9; + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - @SuppressWarnings("serial") - private java.util.List - facetSpecs_; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
            -   * Facet specifications for faceted search. If empty, no facets are returned.
            -   *
            -   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -   * error is returned.
            -   * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * - */ - @java.lang.Override - public java.util.List - getFacetSpecsList() { - return facetSpecs_; - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - /** - * - * - *
            -   * Facet specifications for faceted search. If empty, no facets are returned.
            -   *
            -   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -   * error is returned.
            -   * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder> - getFacetSpecsOrBuilderList() { - return facetSpecs_; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * - * - *
            -   * Facet specifications for faceted search. If empty, no facets are returned.
            -   *
            -   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -   * error is returned.
            -   * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * - */ - @java.lang.Override - public int getFacetSpecsCount() { - return facetSpecs_.size(); - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * - * - *
            -   * Facet specifications for faceted search. If empty, no facets are returned.
            -   *
            -   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -   * error is returned.
            -   * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec getFacetSpecs(int index) { - return facetSpecs_.get(index); - } + /** + * + * + *
            +     * Specification for crowding. Crowding improves the diversity of search
            +     * results by limiting the number of results that share the same field value.
            +     * For example, crowding on the color field with a max_count of 3 and mode
            +     * DROP_CROWDED_RESULTS will return at most 3 results with the same color
            +     * across all pages.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CrowdingSpec_descriptor; + } - /** - * - * - *
            -   * Facet specifications for faceted search. If empty, no facets are returned.
            -   *
            -   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -   * error is returned.
            -   * 
            - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder - getFacetSpecsOrBuilder(int index) { - return facetSpecs_.get(index); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CrowdingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Builder.class); + } - public static final int BOOST_SPEC_FIELD_NUMBER = 10; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boostSpec_; + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.newBuilder() + private Builder() {} - /** - * - * - *
            -   * Boost specification to boost certain documents.
            -   * For more information on boosting, see
            -   * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; - * - * @return Whether the boostSpec field is set. - */ - @java.lang.Override - public boolean hasBoostSpec() { - return ((bitField0_ & 0x00000004) != 0); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - /** - * - * - *
            -   * Boost specification to boost certain documents.
            -   * For more information on boosting, see
            -   * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; - * - * @return The boostSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostSpec() { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() - : boostSpec_; - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + field_ = ""; + maxCount_ = 0; + mode_ = 0; + return this; + } - /** - * - * - *
            -   * Boost specification to boost certain documents.
            -   * For more information on boosting, see
            -   * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder - getBoostSpecOrBuilder() { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() - : boostSpec_; - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CrowdingSpec_descriptor; + } - public static final int PARAMS_FIELD_NUMBER = 11; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec + .getDefaultInstance(); + } - private static final class ParamsDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.protobuf.Value.getDefaultInstance()); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @SuppressWarnings("serial") - private com.google.protobuf.MapField params_; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - private com.google.protobuf.MapField - internalGetParams() { - if (params_ == null) { - return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); - } - return params_; - } + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.field_ = field_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxCount_ = maxCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.mode_ = mode_; + } + } - public int getParamsCount() { - return internalGetParams().getMap().size(); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * - * - *
            -   * Additional search parameters.
            -   *
            -   * For public website search only, supported values are:
            -   *
            -   * * `user_country_code`: string. Default empty. If set to non-empty, results
            -   * are restricted or boosted based on the location provided.
            -   * For example, `user_country_code: "au"`
            -   *
            -   * For available codes see [Country
            -   * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
            -   *
            -   * * `search_type`: double. Default empty. Enables non-webpage searching
            -   * depending on the value. The only valid non-default value is 1,
            -   * which enables image searching.
            -   * For example, `search_type: 1`
            -   * 
            - * - * map<string, .google.protobuf.Value> params = 11; - */ - @java.lang.Override - public boolean containsParams(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetParams().getMap().containsKey(key); - } + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec + .getDefaultInstance()) return this; + if (!other.getField().isEmpty()) { + field_ = other.field_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getMaxCount() != 0) { + setMaxCount(other.getMaxCount()); + } + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** Use {@link #getParamsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getParams() { - return getParamsMap(); - } - - /** - * - * - *
            -   * Additional search parameters.
            -   *
            -   * For public website search only, supported values are:
            -   *
            -   * * `user_country_code`: string. Default empty. If set to non-empty, results
            -   * are restricted or boosted based on the location provided.
            -   * For example, `user_country_code: "au"`
            -   *
            -   * For available codes see [Country
            -   * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
            -   *
            -   * * `search_type`: double. Default empty. Enables non-webpage searching
            -   * depending on the value. The only valid non-default value is 1,
            -   * which enables image searching.
            -   * For example, `search_type: 1`
            -   * 
            - * - * map<string, .google.protobuf.Value> params = 11; - */ - @java.lang.Override - public java.util.Map getParamsMap() { - return internalGetParams().getMap(); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * - * - *
            -   * Additional search parameters.
            -   *
            -   * For public website search only, supported values are:
            -   *
            -   * * `user_country_code`: string. Default empty. If set to non-empty, results
            -   * are restricted or boosted based on the location provided.
            -   * For example, `user_country_code: "au"`
            -   *
            -   * For available codes see [Country
            -   * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
            -   *
            -   * * `search_type`: double. Default empty. Enables non-webpage searching
            -   * depending on the value. The only valid non-default value is 1,
            -   * which enables image searching.
            -   * For example, `search_type: 1`
            -   * 
            - * - * map<string, .google.protobuf.Value> params = 11; - */ - @java.lang.Override - public /* nullable */ com.google.protobuf.Value getParamsOrDefault( - java.lang.String key, - /* nullable */ - com.google.protobuf.Value defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParams().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + field_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + maxCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + mode_ = 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; + } - /** - * - * - *
            -   * Additional search parameters.
            -   *
            -   * For public website search only, supported values are:
            -   *
            -   * * `user_country_code`: string. Default empty. If set to non-empty, results
            -   * are restricted or boosted based on the location provided.
            -   * For example, `user_country_code: "au"`
            -   *
            -   * For available codes see [Country
            -   * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
            -   *
            -   * * `search_type`: double. Default empty. Enables non-webpage searching
            -   * depending on the value. The only valid non-default value is 1,
            -   * which enables image searching.
            -   * For example, `search_type: 1`
            -   * 
            - * - * map<string, .google.protobuf.Value> params = 11; - */ - @java.lang.Override - public com.google.protobuf.Value getParamsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetParams().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } + private int bitField0_; - public static final int QUERY_EXPANSION_SPEC_FIELD_NUMBER = 13; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - queryExpansionSpec_; + private java.lang.Object field_ = ""; - /** - * - * - *
            -   * The query expansion specification that specifies the conditions under which
            -   * query expansion occurs.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * - * - * @return Whether the queryExpansionSpec field is set. - */ - @java.lang.Override - public boolean hasQueryExpansionSpec() { - return ((bitField0_ & 0x00000008) != 0); - } + /** + * + * + *
            +       * The field to use for crowding. Documents can be crowded by a field in the
            +       * [Document][google.cloud.discoveryengine.v1beta.Document] object. Crowding
            +       * field is case sensitive.
            +       * 
            + * + * string field = 1; + * + * @return The field. + */ + public java.lang.String getField() { + java.lang.Object ref = field_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * - * - *
            -   * The query expansion specification that specifies the conditions under which
            -   * query expansion occurs.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * - * - * @return The queryExpansionSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - getQueryExpansionSpec() { - return queryExpansionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - .getDefaultInstance() - : queryExpansionSpec_; - } + /** + * + * + *
            +       * The field to use for crowding. Documents can be crowded by a field in the
            +       * [Document][google.cloud.discoveryengine.v1beta.Document] object. Crowding
            +       * field is case sensitive.
            +       * 
            + * + * string field = 1; + * + * @return The bytes for field. + */ + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * - * - *
            -   * The query expansion specification that specifies the conditions under which
            -   * query expansion occurs.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder - getQueryExpansionSpecOrBuilder() { - return queryExpansionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - .getDefaultInstance() - : queryExpansionSpec_; - } + /** + * + * + *
            +       * The field to use for crowding. Documents can be crowded by a field in the
            +       * [Document][google.cloud.discoveryengine.v1beta.Document] object. Crowding
            +       * field is case sensitive.
            +       * 
            + * + * string field = 1; + * + * @param value The field to set. + * @return This builder for chaining. + */ + public Builder setField(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + field_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - public static final int SPELL_CORRECTION_SPEC_FIELD_NUMBER = 14; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - spellCorrectionSpec_; + /** + * + * + *
            +       * The field to use for crowding. Documents can be crowded by a field in the
            +       * [Document][google.cloud.discoveryengine.v1beta.Document] object. Crowding
            +       * field is case sensitive.
            +       * 
            + * + * string field = 1; + * + * @return This builder for chaining. + */ + public Builder clearField() { + field_ = getDefaultInstance().getField(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - /** - * - * - *
            -   * The spell correction specification that specifies the mode under
            -   * which spell correction takes effect.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * - * - * @return Whether the spellCorrectionSpec field is set. - */ - @java.lang.Override - public boolean hasSpellCorrectionSpec() { - return ((bitField0_ & 0x00000010) != 0); - } + /** + * + * + *
            +       * The field to use for crowding. Documents can be crowded by a field in the
            +       * [Document][google.cloud.discoveryengine.v1beta.Document] object. Crowding
            +       * field is case sensitive.
            +       * 
            + * + * string field = 1; + * + * @param value The bytes for field to set. + * @return This builder for chaining. + */ + public Builder setFieldBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + field_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
            -   * The spell correction specification that specifies the mode under
            -   * which spell correction takes effect.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * - * - * @return The spellCorrectionSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - getSpellCorrectionSpec() { - return spellCorrectionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - .getDefaultInstance() - : spellCorrectionSpec_; - } + private int maxCount_; - /** - * - * - *
            -   * The spell correction specification that specifies the mode under
            -   * which spell correction takes effect.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder - getSpellCorrectionSpecOrBuilder() { - return spellCorrectionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - .getDefaultInstance() - : spellCorrectionSpec_; - } + /** + * + * + *
            +       * The maximum number of documents to keep per value of the field. Once
            +       * there are at least max_count previous results which contain the same
            +       * value for the given field (according to the order specified in
            +       * `order_by`), later results with the same value are "crowded away".
            +       * If not specified, the default value is 1.
            +       * 
            + * + * int32 max_count = 2; + * + * @return The maxCount. + */ + @java.lang.Override + public int getMaxCount() { + return maxCount_; + } - public static final int USER_PSEUDO_ID_FIELD_NUMBER = 15; + /** + * + * + *
            +       * The maximum number of documents to keep per value of the field. Once
            +       * there are at least max_count previous results which contain the same
            +       * value for the given field (according to the order specified in
            +       * `order_by`), later results with the same value are "crowded away".
            +       * If not specified, the default value is 1.
            +       * 
            + * + * int32 max_count = 2; + * + * @param value The maxCount to set. + * @return This builder for chaining. + */ + public Builder setMaxCount(int value) { - @SuppressWarnings("serial") - private volatile java.lang.Object userPseudoId_ = ""; + maxCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } - /** - * - * - *
            -   * A unique identifier for tracking visitors. For example, this could be
            -   * implemented with an HTTP cookie, which should be able to uniquely identify
            -   * a visitor on a single device. This unique identifier should not change if
            -   * the visitor logs in or out of the website.
            -   *
            -   * This field should NOT have a fixed value such as `unknown_visitor`.
            -   *
            -   * This should be the same identifier as
            -   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            -   * and
            -   * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.CompleteQueryRequest.user_pseudo_id]
            -   *
            -   * The field must be a UTF-8 encoded string with a length limit of 128
            -   * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
            -   * 
            - * - * string user_pseudo_id = 15; - * - * @return The userPseudoId. - */ - @java.lang.Override - public java.lang.String getUserPseudoId() { - java.lang.Object ref = userPseudoId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - userPseudoId_ = s; - return s; - } - } + /** + * + * + *
            +       * The maximum number of documents to keep per value of the field. Once
            +       * there are at least max_count previous results which contain the same
            +       * value for the given field (according to the order specified in
            +       * `order_by`), later results with the same value are "crowded away".
            +       * If not specified, the default value is 1.
            +       * 
            + * + * int32 max_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearMaxCount() { + bitField0_ = (bitField0_ & ~0x00000002); + maxCount_ = 0; + onChanged(); + return this; + } - /** - * - * - *
            -   * A unique identifier for tracking visitors. For example, this could be
            -   * implemented with an HTTP cookie, which should be able to uniquely identify
            -   * a visitor on a single device. This unique identifier should not change if
            -   * the visitor logs in or out of the website.
            -   *
            -   * This field should NOT have a fixed value such as `unknown_visitor`.
            -   *
            -   * This should be the same identifier as
            -   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            -   * and
            -   * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.CompleteQueryRequest.user_pseudo_id]
            -   *
            -   * The field must be a UTF-8 encoded string with a length limit of 128
            -   * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
            -   * 
            - * - * string user_pseudo_id = 15; - * - * @return The bytes for userPseudoId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUserPseudoIdBytes() { - java.lang.Object ref = userPseudoId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - userPseudoId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + private int mode_ = 0; - public static final int CONTENT_SEARCH_SPEC_FIELD_NUMBER = 24; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - contentSearchSpec_; + /** + * + * + *
            +       * Mode to use for documents that are crowded away.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode mode = 3; + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } - /** - * - * - *
            -   * A specification for configuring the behavior of content search.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; - * - * - * @return Whether the contentSearchSpec field is set. - */ - @java.lang.Override - public boolean hasContentSearchSpec() { - return ((bitField0_ & 0x00000020) != 0); - } + /** + * + * + *
            +       * Mode to use for documents that are crowded away.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode mode = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } - /** - * - * - *
            -   * A specification for configuring the behavior of content search.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; - * - * - * @return The contentSearchSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - getContentSearchSpec() { - return contentSearchSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .getDefaultInstance() - : contentSearchSpec_; - } + /** + * + * + *
            +       * Mode to use for documents that are crowded away.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode mode = 3; + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode getMode() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode.forNumber( + mode_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode.UNRECOGNIZED + : result; + } - /** - * - * - *
            -   * A specification for configuring the behavior of content search.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder - getContentSearchSpecOrBuilder() { - return contentSearchSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .getDefaultInstance() - : contentSearchSpec_; - } + /** + * + * + *
            +       * Mode to use for documents that are crowded away.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode mode = 3; + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode( + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + mode_ = value.getNumber(); + onChanged(); + return this; + } - public static final int EMBEDDING_SPEC_FIELD_NUMBER = 23; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embeddingSpec_; + /** + * + * + *
            +       * Mode to use for documents that are crowded away.
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode mode = 3; + * + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000004); + mode_ = 0; + onChanged(); + return this; + } - /** - * - * - *
            -   * Uses the provided embedding to do additional semantic document retrieval.
            -   * The retrieval is based on the dot product of
            -   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            -   * and the document embedding that is provided in
            -   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            -   *
            -   * If
            -   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            -   * is not provided, it will use
            -   * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; - * - * - * @return Whether the embeddingSpec field is set. - */ - @java.lang.Override - public boolean hasEmbeddingSpec() { - return ((bitField0_ & 0x00000040) != 0); + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CrowdingSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.SearchRequest.CrowdingSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } - /** - * - * - *
            -   * Uses the provided embedding to do additional semantic document retrieval.
            -   * The retrieval is based on the dot product of
            -   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            -   * and the document embedding that is provided in
            -   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            -   *
            -   * If
            -   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            -   * is not provided, it will use
            -   * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; - * - * - * @return The embeddingSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec getEmbeddingSpec() { - return embeddingSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.getDefaultInstance() - : embeddingSpec_; + public interface SessionSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * If set, the search result gets stored to the "turn" specified by this
            +     * query ID.
            +     *
            +     * Example: Let's say the session looks like this:
            +     * session {
            +     * name: ".../sessions/xxx"
            +     * turns {
            +     * query { text: "What is foo?" query_id: ".../questions/yyy" }
            +     * answer: "Foo is ..."
            +     * }
            +     * turns {
            +     * query { text: "How about bar then?" query_id: ".../questions/zzz" }
            +     * }
            +     * }
            +     *
            +     * The user can call /search API with a request like this:
            +     *
            +     * session: ".../sessions/xxx"
            +     * session_spec { query_id: ".../questions/zzz" }
            +     *
            +     * Then, the API stores the search result, associated with the last turn.
            +     * The stored search result can be used by a subsequent /answer API call
            +     * (with the session ID and the query ID specified). Also, it is possible
            +     * to call /search and /answer in parallel with the same session ID & query
            +     * ID.
            +     * 
            + * + * string query_id = 1; + * + * @return The queryId. + */ + java.lang.String getQueryId(); + + /** + * + * + *
            +     * If set, the search result gets stored to the "turn" specified by this
            +     * query ID.
            +     *
            +     * Example: Let's say the session looks like this:
            +     * session {
            +     * name: ".../sessions/xxx"
            +     * turns {
            +     * query { text: "What is foo?" query_id: ".../questions/yyy" }
            +     * answer: "Foo is ..."
            +     * }
            +     * turns {
            +     * query { text: "How about bar then?" query_id: ".../questions/zzz" }
            +     * }
            +     * }
            +     *
            +     * The user can call /search API with a request like this:
            +     *
            +     * session: ".../sessions/xxx"
            +     * session_spec { query_id: ".../questions/zzz" }
            +     *
            +     * Then, the API stores the search result, associated with the last turn.
            +     * The stored search result can be used by a subsequent /answer API call
            +     * (with the session ID and the query ID specified). Also, it is possible
            +     * to call /search and /answer in parallel with the same session ID & query
            +     * ID.
            +     * 
            + * + * string query_id = 1; + * + * @return The bytes for queryId. + */ + com.google.protobuf.ByteString getQueryIdBytes(); + + /** + * + * + *
            +     * The number of top search results to persist. The persisted search results
            +     * can be used for the subsequent /answer api call.
            +     *
            +     * This field is similar to the `summary_result_count` field in
            +     * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
            +     *
            +     * At most 10 results for documents mode, or 50 for chunks mode.
            +     * 
            + * + * optional int32 search_result_persistence_count = 2; + * + * @return Whether the searchResultPersistenceCount field is set. + */ + boolean hasSearchResultPersistenceCount(); + + /** + * + * + *
            +     * The number of top search results to persist. The persisted search results
            +     * can be used for the subsequent /answer api call.
            +     *
            +     * This field is similar to the `summary_result_count` field in
            +     * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
            +     *
            +     * At most 10 results for documents mode, or 50 for chunks mode.
            +     * 
            + * + * optional int32 search_result_persistence_count = 2; + * + * @return The searchResultPersistenceCount. + */ + int getSearchResultPersistenceCount(); } /** * * *
            -   * Uses the provided embedding to do additional semantic document retrieval.
            -   * The retrieval is based on the dot product of
            -   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            -   * and the document embedding that is provided in
            -   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            -   *
            -   * If
            -   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            -   * is not provided, it will use
            -   * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
            +   * Session specification.
                * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; - * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec} */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder - getEmbeddingSpecOrBuilder() { - return embeddingSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.getDefaultInstance() - : embeddingSpec_; - } + public static final class SessionSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) + SessionSpecOrBuilder { + private static final long serialVersionUID = 0L; - public static final int RANKING_EXPRESSION_FIELD_NUMBER = 26; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionSpec"); + } - @SuppressWarnings("serial") - private volatile java.lang.Object rankingExpression_ = ""; + // Use SessionSpec.newBuilder() to construct. + private SessionSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - /** - * - * - *
            -   * The ranking expression controls the customized ranking on retrieval
            -   * documents. This overrides
            -   * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression].
            -   * The syntax and supported features depend on the
            -   * `ranking_expression_backend` value. If `ranking_expression_backend` is not
            -   * provided, it defaults to `RANK_BY_EMBEDDING`.
            -   *
            -   * If
            -   * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend]
            -   * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
            -   * function or multiple functions that are joined by "+".
            -   *
            -   * * ranking_expression = function, { " + ", function };
            -   *
            -   * Supported functions:
            -   *
            -   * * double * relevance_score
            -   * * double * dotProduct(embedding_field_path)
            -   *
            -   * Function variables:
            -   *
            -   * * `relevance_score`: pre-defined keywords, used for measure relevance
            -   * between query and document.
            -   * * `embedding_field_path`: the document embedding field
            -   * used with query embedding vector.
            -   * * `dotProduct`: embedding function between `embedding_field_path` and
            -   * query embedding vector.
            -   *
            -   * Example ranking expression:
            -   *
            -   * If document has an embedding field doc_embedding, the ranking expression
            -   * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
            -   *
            -   * If
            -   * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend]
            -   * is set to `RANK_BY_FORMULA`, the following expression types (and
            -   * combinations of those chained using + or
            -   * * operators) are supported:
            -   *
            -   * * `double`
            -   * * `signal`
            -   * * `log(signal)`
            -   * * `exp(signal)`
            -   * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
            -   * argument being a denominator constant.
            -   * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
            -   * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
            -   * signal2 | double, else returns signal1.
            -   *
            -   * Here are a few examples of ranking formulas that use the supported
            -   * ranking expression types:
            -   *
            -   * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
            -   * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
            -   * `semantic_smilarity_score` adjustment.
            -   * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
            -   * is_nan(keyword_similarity_score)` -- rank by the exponent of
            -   * `semantic_similarity_score` filling the value with 0 if it's NaN, also
            -   * add constant 0.3 adjustment to the final score if
            -   * `semantic_similarity_score` is NaN.
            -   * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
            -   * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
            -   * of `keyword_similarity_score` with slight adjustment of reciprocal rank
            -   * of `semantic_smilarity_score`.
            -   *
            -   * The following signals are supported:
            -   *
            -   * * `semantic_similarity_score`: semantic similarity adjustment that is
            -   * calculated using the embeddings generated by a proprietary Google model.
            -   * This score determines how semantically similar a search query is to a
            -   * document.
            -   * * `keyword_similarity_score`: keyword match adjustment uses the Best
            -   * Match 25 (BM25) ranking function. This score is calculated using a
            -   * probabilistic model to estimate the probability that a document is
            -   * relevant to a given query.
            -   * * `relevance_score`: semantic relevance adjustment that uses a
            -   * proprietary Google model to determine the meaning and intent behind a
            -   * user's query in context with the content in the documents.
            -   * * `pctr_rank`: predicted conversion rate adjustment as a rank use
            -   * predicted Click-through rate (pCTR) to gauge the relevance and
            -   * attractiveness of a search result from a user's perspective. A higher
            -   * pCTR suggests that the result is more likely to satisfy the user's query
            -   * and intent, making it a valuable signal for ranking.
            -   * * `freshness_rank`: freshness adjustment as a rank
            -   * * `document_age`: The time in hours elapsed since the document was last
            -   * updated, a floating-point number (e.g., 0.25 means 15 minutes).
            -   * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
            -   * Google model to determine the keyword-based overlap between the query and
            -   * the document.
            -   * * `base_rank`: the default rank of the result
            -   * 
            - * - * string ranking_expression = 26; - * - * @return The rankingExpression. - */ - @java.lang.Override - public java.lang.String getRankingExpression() { - java.lang.Object ref = rankingExpression_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rankingExpression_ = s; - return s; + private SessionSpec() { + queryId_ = ""; } - } - /** - * - * - *
            -   * The ranking expression controls the customized ranking on retrieval
            -   * documents. This overrides
            -   * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression].
            -   * The syntax and supported features depend on the
            -   * `ranking_expression_backend` value. If `ranking_expression_backend` is not
            -   * provided, it defaults to `RANK_BY_EMBEDDING`.
            -   *
            -   * If
            -   * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend]
            -   * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
            -   * function or multiple functions that are joined by "+".
            -   *
            -   * * ranking_expression = function, { " + ", function };
            -   *
            -   * Supported functions:
            -   *
            -   * * double * relevance_score
            -   * * double * dotProduct(embedding_field_path)
            -   *
            -   * Function variables:
            -   *
            -   * * `relevance_score`: pre-defined keywords, used for measure relevance
            -   * between query and document.
            -   * * `embedding_field_path`: the document embedding field
            -   * used with query embedding vector.
            -   * * `dotProduct`: embedding function between `embedding_field_path` and
            -   * query embedding vector.
            -   *
            -   * Example ranking expression:
            -   *
            -   * If document has an embedding field doc_embedding, the ranking expression
            -   * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
            -   *
            -   * If
            -   * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend]
            -   * is set to `RANK_BY_FORMULA`, the following expression types (and
            -   * combinations of those chained using + or
            -   * * operators) are supported:
            -   *
            -   * * `double`
            -   * * `signal`
            -   * * `log(signal)`
            -   * * `exp(signal)`
            -   * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
            -   * argument being a denominator constant.
            -   * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
            -   * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
            -   * signal2 | double, else returns signal1.
            -   *
            -   * Here are a few examples of ranking formulas that use the supported
            -   * ranking expression types:
            -   *
            -   * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
            -   * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
            -   * `semantic_smilarity_score` adjustment.
            -   * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
            -   * is_nan(keyword_similarity_score)` -- rank by the exponent of
            -   * `semantic_similarity_score` filling the value with 0 if it's NaN, also
            -   * add constant 0.3 adjustment to the final score if
            -   * `semantic_similarity_score` is NaN.
            -   * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
            -   * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
            -   * of `keyword_similarity_score` with slight adjustment of reciprocal rank
            -   * of `semantic_smilarity_score`.
            -   *
            -   * The following signals are supported:
            -   *
            -   * * `semantic_similarity_score`: semantic similarity adjustment that is
            -   * calculated using the embeddings generated by a proprietary Google model.
            -   * This score determines how semantically similar a search query is to a
            -   * document.
            -   * * `keyword_similarity_score`: keyword match adjustment uses the Best
            -   * Match 25 (BM25) ranking function. This score is calculated using a
            -   * probabilistic model to estimate the probability that a document is
            -   * relevant to a given query.
            -   * * `relevance_score`: semantic relevance adjustment that uses a
            -   * proprietary Google model to determine the meaning and intent behind a
            -   * user's query in context with the content in the documents.
            -   * * `pctr_rank`: predicted conversion rate adjustment as a rank use
            -   * predicted Click-through rate (pCTR) to gauge the relevance and
            -   * attractiveness of a search result from a user's perspective. A higher
            -   * pCTR suggests that the result is more likely to satisfy the user's query
            -   * and intent, making it a valuable signal for ranking.
            -   * * `freshness_rank`: freshness adjustment as a rank
            -   * * `document_age`: The time in hours elapsed since the document was last
            -   * updated, a floating-point number (e.g., 0.25 means 15 minutes).
            -   * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
            -   * Google model to determine the keyword-based overlap between the query and
            -   * the document.
            -   * * `base_rank`: the default rank of the result
            -   * 
            - * - * string ranking_expression = 26; - * - * @return The bytes for rankingExpression. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRankingExpressionBytes() { - java.lang.Object ref = rankingExpression_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - rankingExpression_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_descriptor; } - } - - public static final int RANKING_EXPRESSION_BACKEND_FIELD_NUMBER = 53; - private int rankingExpressionBackend_ = 0; - /** - * - * - *
            -   * The backend to use for the ranking expression evaluation.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for rankingExpressionBackend. - */ - @java.lang.Override - public int getRankingExpressionBackendValue() { - return rankingExpressionBackend_; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder.class); + } - /** - * - * - *
            -   * The backend to use for the ranking expression evaluation.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The rankingExpressionBackend. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend - getRankingExpressionBackend() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend result = - com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend.forNumber( - rankingExpressionBackend_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend - .UNRECOGNIZED - : result; - } + private int bitField0_; + public static final int QUERY_ID_FIELD_NUMBER = 1; - public static final int SAFE_SEARCH_FIELD_NUMBER = 20; - private boolean safeSearch_ = false; + @SuppressWarnings("serial") + private volatile java.lang.Object queryId_ = ""; - /** - * - * - *
            -   * Whether to turn on safe search. This is only supported for
            -   * website search.
            -   * 
            - * - * bool safe_search = 20; - * - * @return The safeSearch. - */ - @java.lang.Override - public boolean getSafeSearch() { - return safeSearch_; - } + /** + * + * + *
            +     * If set, the search result gets stored to the "turn" specified by this
            +     * query ID.
            +     *
            +     * Example: Let's say the session looks like this:
            +     * session {
            +     * name: ".../sessions/xxx"
            +     * turns {
            +     * query { text: "What is foo?" query_id: ".../questions/yyy" }
            +     * answer: "Foo is ..."
            +     * }
            +     * turns {
            +     * query { text: "How about bar then?" query_id: ".../questions/zzz" }
            +     * }
            +     * }
            +     *
            +     * The user can call /search API with a request like this:
            +     *
            +     * session: ".../sessions/xxx"
            +     * session_spec { query_id: ".../questions/zzz" }
            +     *
            +     * Then, the API stores the search result, associated with the last turn.
            +     * The stored search result can be used by a subsequent /answer API call
            +     * (with the session ID and the query ID specified). Also, it is possible
            +     * to call /search and /answer in parallel with the same session ID & query
            +     * ID.
            +     * 
            + * + * string query_id = 1; + * + * @return The queryId. + */ + @java.lang.Override + public java.lang.String getQueryId() { + java.lang.Object ref = queryId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryId_ = s; + return s; + } + } - public static final int USER_LABELS_FIELD_NUMBER = 22; + /** + * + * + *
            +     * If set, the search result gets stored to the "turn" specified by this
            +     * query ID.
            +     *
            +     * Example: Let's say the session looks like this:
            +     * session {
            +     * name: ".../sessions/xxx"
            +     * turns {
            +     * query { text: "What is foo?" query_id: ".../questions/yyy" }
            +     * answer: "Foo is ..."
            +     * }
            +     * turns {
            +     * query { text: "How about bar then?" query_id: ".../questions/zzz" }
            +     * }
            +     * }
            +     *
            +     * The user can call /search API with a request like this:
            +     *
            +     * session: ".../sessions/xxx"
            +     * session_spec { query_id: ".../questions/zzz" }
            +     *
            +     * Then, the API stores the search result, associated with the last turn.
            +     * The stored search result can be used by a subsequent /answer API call
            +     * (with the session ID and the query ID specified). Also, it is possible
            +     * to call /search and /answer in parallel with the same session ID & query
            +     * ID.
            +     * 
            + * + * string query_id = 1; + * + * @return The bytes for queryId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryIdBytes() { + java.lang.Object ref = queryId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private static final class UserLabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } + public static final int SEARCH_RESULT_PERSISTENCE_COUNT_FIELD_NUMBER = 2; + private int searchResultPersistenceCount_ = 0; - @SuppressWarnings("serial") - private com.google.protobuf.MapField userLabels_; + /** + * + * + *
            +     * The number of top search results to persist. The persisted search results
            +     * can be used for the subsequent /answer api call.
            +     *
            +     * This field is similar to the `summary_result_count` field in
            +     * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
            +     *
            +     * At most 10 results for documents mode, or 50 for chunks mode.
            +     * 
            + * + * optional int32 search_result_persistence_count = 2; + * + * @return Whether the searchResultPersistenceCount field is set. + */ + @java.lang.Override + public boolean hasSearchResultPersistenceCount() { + return ((bitField0_ & 0x00000001) != 0); + } - private com.google.protobuf.MapField internalGetUserLabels() { - if (userLabels_ == null) { - return com.google.protobuf.MapField.emptyMapField(UserLabelsDefaultEntryHolder.defaultEntry); + /** + * + * + *
            +     * The number of top search results to persist. The persisted search results
            +     * can be used for the subsequent /answer api call.
            +     *
            +     * This field is similar to the `summary_result_count` field in
            +     * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
            +     *
            +     * At most 10 results for documents mode, or 50 for chunks mode.
            +     * 
            + * + * optional int32 search_result_persistence_count = 2; + * + * @return The searchResultPersistenceCount. + */ + @java.lang.Override + public int getSearchResultPersistenceCount() { + return searchResultPersistenceCount_; } - return userLabels_; - } - public int getUserLabelsCount() { - return internalGetUserLabels().getMap().size(); - } + private byte memoizedIsInitialized = -1; - /** - * - * - *
            -   * 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 = 22; - */ - @java.lang.Override - public boolean containsUserLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; } - return internalGetUserLabels().getMap().containsKey(key); - } - /** Use {@link #getUserLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getUserLabels() { - return getUserLabelsMap(); - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, queryId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(2, searchResultPersistenceCount_); + } + getUnknownFields().writeTo(output); + } - /** - * - * - *
            -   * 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 = 22; - */ - @java.lang.Override - public java.util.Map getUserLabelsMap() { - return internalGetUserLabels().getMap(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return 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 = 22; - */ - @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"); + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, queryId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 2, searchResultPersistenceCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } - 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 = 22; - */ - @java.lang.Override - public java.lang.String getUserLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) obj; + + if (!getQueryId().equals(other.getQueryId())) return false; + if (hasSearchResultPersistenceCount() != other.hasSearchResultPersistenceCount()) + return false; + if (hasSearchResultPersistenceCount()) { + if (getSearchResultPersistenceCount() != other.getSearchResultPersistenceCount()) + return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - java.util.Map map = internalGetUserLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_ID_FIELD_NUMBER; + hash = (53 * hash) + getQueryId().hashCode(); + if (hasSearchResultPersistenceCount()) { + hash = (37 * hash) + SEARCH_RESULT_PERSISTENCE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getSearchResultPersistenceCount(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - return map.get(key); - } - public static final int NATURAL_LANGUAGE_QUERY_UNDERSTANDING_SPEC_FIELD_NUMBER = 28; - private com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - naturalLanguageQueryUnderstandingSpec_; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -   * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            -   * natural language query understanding will be done.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; - * - * - * @return Whether the naturalLanguageQueryUnderstandingSpec field is set. - */ - @java.lang.Override - public boolean hasNaturalLanguageQueryUnderstandingSpec() { - return ((bitField0_ & 0x00000080) != 0); - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -   * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            -   * natural language query understanding will be done.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; - * - * - * @return The naturalLanguageQueryUnderstandingSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec - getNaturalLanguageQueryUnderstandingSpec() { - return naturalLanguageQueryUnderstandingSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() - : naturalLanguageQueryUnderstandingSpec_; - } - - /** - * - * - *
            -   * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            -   * natural language query understanding will be done.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpecOrBuilder - getNaturalLanguageQueryUnderstandingSpecOrBuilder() { - return naturalLanguageQueryUnderstandingSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() - : naturalLanguageQueryUnderstandingSpec_; - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static final int SEARCH_AS_YOU_TYPE_SPEC_FIELD_NUMBER = 31; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec - searchAsYouTypeSpec_; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -   * Search as you type configuration. Only supported for the
            -   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            -   * vertical.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; - * - * - * @return Whether the searchAsYouTypeSpec field is set. - */ - @java.lang.Override - public boolean hasSearchAsYouTypeSpec() { - return ((bitField0_ & 0x00000100) != 0); - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -   * Search as you type configuration. Only supported for the
            -   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            -   * vertical.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; - * - * - * @return The searchAsYouTypeSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec - getSearchAsYouTypeSpec() { - return searchAsYouTypeSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec - .getDefaultInstance() - : searchAsYouTypeSpec_; - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - /** - * - * - *
            -   * Search as you type configuration. Only supported for the
            -   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            -   * vertical.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder - getSearchAsYouTypeSpecOrBuilder() { - return searchAsYouTypeSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec - .getDefaultInstance() - : searchAsYouTypeSpec_; - } + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public static final int SESSION_FIELD_NUMBER = 41; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - @SuppressWarnings("serial") - private volatile java.lang.Object session_ = ""; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - /** - * - * - *
            -   * The session resource name. Optional.
            -   *
            -   * Session allows users to do multi-turn /search API calls or coordination
            -   * between /search API calls and /answer API calls.
            -   *
            -   * Example #1 (multi-turn /search API calls):
            -   * Call /search API with the session ID generated in the first call.
            -   * Here, the previous search query gets considered in query
            -   * standing. I.e., if the first query is "How did Alphabet do in 2022?"
            -   * and the current query is "How about 2023?", the current query will
            -   * be interpreted as "How did Alphabet do in 2023?".
            -   *
            -   * Example #2 (coordination between /search API calls and /answer API calls):
            -   * Call /answer API with the session ID generated in the first call.
            -   * Here, the answer generation happens in the context of the search
            -   * results from the first search call.
            -   *
            -   * Multi-turn Search feature is currently at private GA stage. Please use
            -   * v1alpha or v1beta version instead before we launch this feature to public
            -   * GA. Or ask for allowlisting through Google Support team.
            -   * 
            - * - * string session = 41 [(.google.api.resource_reference) = { ... } - * - * @return The session. - */ - @java.lang.Override - public java.lang.String getSession() { - java.lang.Object ref = session_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - session_ = s; - return s; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - } - /** - * - * - *
            -   * The session resource name. Optional.
            -   *
            -   * Session allows users to do multi-turn /search API calls or coordination
            -   * between /search API calls and /answer API calls.
            -   *
            -   * Example #1 (multi-turn /search API calls):
            -   * Call /search API with the session ID generated in the first call.
            -   * Here, the previous search query gets considered in query
            -   * standing. I.e., if the first query is "How did Alphabet do in 2022?"
            -   * and the current query is "How about 2023?", the current query will
            -   * be interpreted as "How did Alphabet do in 2023?".
            -   *
            -   * Example #2 (coordination between /search API calls and /answer API calls):
            -   * Call /answer API with the session ID generated in the first call.
            -   * Here, the answer generation happens in the context of the search
            -   * results from the first search call.
            -   *
            -   * Multi-turn Search feature is currently at private GA stage. Please use
            -   * v1alpha or v1beta version instead before we launch this feature to public
            -   * GA. Or ask for allowlisting through Google Support team.
            -   * 
            - * - * string session = 41 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for session. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSessionBytes() { - java.lang.Object ref = session_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - session_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - } - public static final int SESSION_SPEC_FIELD_NUMBER = 42; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec sessionSpec_; + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - /** - * - * - *
            -   * Session specification.
            -   *
            -   * Can be used only when `session` is set.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; - * - * @return Whether the sessionSpec field is set. - */ - @java.lang.Override - public boolean hasSessionSpec() { - return ((bitField0_ & 0x00000200) != 0); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - /** - * - * - *
            -   * Session specification.
            -   *
            -   * Can be used only when `session` is set.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; - * - * @return The sessionSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec getSessionSpec() { - return sessionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.getDefaultInstance() - : sessionSpec_; - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - /** - * - * - *
            -   * Session specification.
            -   *
            -   * Can be used only when `session` is set.
            -   * 
            - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpecOrBuilder - getSessionSpecOrBuilder() { - return sessionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.getDefaultInstance() - : sessionSpec_; - } + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static final int RELEVANCE_THRESHOLD_FIELD_NUMBER = 44; - private int relevanceThreshold_ = 0; + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - /** - * - * - *
            -   * The relevance threshold of the search results.
            -   *
            -   * Default to Google defined threshold, leveraging a balance of
            -   * precision and recall to deliver both highly accurate results and
            -   * comprehensive coverage of relevant information.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 44; - * - * - * @return The enum numeric value on the wire for relevanceThreshold. - */ - @java.lang.Override - public int getRelevanceThresholdValue() { - return relevanceThreshold_; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - /** - * - * - *
            -   * The relevance threshold of the search results.
            -   *
            -   * Default to Google defined threshold, leveraging a balance of
            -   * precision and recall to deliver both highly accurate results and
            -   * comprehensive coverage of relevant information.
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 44; - * - * - * @return The relevanceThreshold. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold - getRelevanceThreshold() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold result = - com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold.forNumber( - relevanceThreshold_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold.UNRECOGNIZED - : result; - } + /** + * + * + *
            +     * Session specification.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_descriptor; + } - public static final int PERSONALIZATION_SPEC_FIELD_NUMBER = 46; - private com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec - personalizationSpec_; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder.class); + } - /** - * - * - *
            -   * The specification for personalization.
            -   *
            -   * Notice that if both
            -   * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            -   * and
            -   * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -   * are set,
            -   * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -   * overrides
            -   * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; - * - * - * @return Whether the personalizationSpec field is set. - */ - @java.lang.Override - public boolean hasPersonalizationSpec() { - return ((bitField0_ & 0x00000400) != 0); - } + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.newBuilder() + private Builder() {} - /** - * - * - *
            -   * The specification for personalization.
            -   *
            -   * Notice that if both
            -   * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            -   * and
            -   * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -   * are set,
            -   * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -   * overrides
            -   * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; - * - * - * @return The personalizationSpec. - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec - getPersonalizationSpec() { - return personalizationSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec - .getDefaultInstance() - : personalizationSpec_; - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - /** - * - * - *
            -   * The specification for personalization.
            -   *
            -   * Notice that if both
            -   * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            -   * and
            -   * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -   * are set,
            -   * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -   * overrides
            -   * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            -   * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; - * - */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpecOrBuilder - getPersonalizationSpecOrBuilder() { - return personalizationSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec - .getDefaultInstance() - : personalizationSpec_; - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + queryId_ = ""; + searchResultPersistenceCount_ = 0; + return this; + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_descriptor; + } - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec + .getDefaultInstance(); + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(servingConfig_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, servingConfig_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(branch_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, branch_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, query_); - } - if (pageSize_ != 0) { - output.writeInt32(4, pageSize_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, pageToken_); - } - if (offset_ != 0) { - output.writeInt32(6, offset_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 7, filter_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 8, orderBy_); + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.queryId_ = queryId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.searchResultPersistenceCount_ = searchResultPersistenceCount_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec + .getDefaultInstance()) return this; + if (!other.getQueryId().isEmpty()) { + queryId_ = other.queryId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSearchResultPersistenceCount()) { + setSearchResultPersistenceCount(other.getSearchResultPersistenceCount()); + } + 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: + { + queryId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + searchResultPersistenceCount_ = 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 java.lang.Object queryId_ = ""; + + /** + * + * + *
            +       * If set, the search result gets stored to the "turn" specified by this
            +       * query ID.
            +       *
            +       * Example: Let's say the session looks like this:
            +       * session {
            +       * name: ".../sessions/xxx"
            +       * turns {
            +       * query { text: "What is foo?" query_id: ".../questions/yyy" }
            +       * answer: "Foo is ..."
            +       * }
            +       * turns {
            +       * query { text: "How about bar then?" query_id: ".../questions/zzz" }
            +       * }
            +       * }
            +       *
            +       * The user can call /search API with a request like this:
            +       *
            +       * session: ".../sessions/xxx"
            +       * session_spec { query_id: ".../questions/zzz" }
            +       *
            +       * Then, the API stores the search result, associated with the last turn.
            +       * The stored search result can be used by a subsequent /answer API call
            +       * (with the session ID and the query ID specified). Also, it is possible
            +       * to call /search and /answer in parallel with the same session ID & query
            +       * ID.
            +       * 
            + * + * string query_id = 1; + * + * @return The queryId. + */ + public java.lang.String getQueryId() { + java.lang.Object ref = queryId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * If set, the search result gets stored to the "turn" specified by this
            +       * query ID.
            +       *
            +       * Example: Let's say the session looks like this:
            +       * session {
            +       * name: ".../sessions/xxx"
            +       * turns {
            +       * query { text: "What is foo?" query_id: ".../questions/yyy" }
            +       * answer: "Foo is ..."
            +       * }
            +       * turns {
            +       * query { text: "How about bar then?" query_id: ".../questions/zzz" }
            +       * }
            +       * }
            +       *
            +       * The user can call /search API with a request like this:
            +       *
            +       * session: ".../sessions/xxx"
            +       * session_spec { query_id: ".../questions/zzz" }
            +       *
            +       * Then, the API stores the search result, associated with the last turn.
            +       * The stored search result can be used by a subsequent /answer API call
            +       * (with the session ID and the query ID specified). Also, it is possible
            +       * to call /search and /answer in parallel with the same session ID & query
            +       * ID.
            +       * 
            + * + * string query_id = 1; + * + * @return The bytes for queryId. + */ + public com.google.protobuf.ByteString getQueryIdBytes() { + java.lang.Object ref = queryId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * If set, the search result gets stored to the "turn" specified by this
            +       * query ID.
            +       *
            +       * Example: Let's say the session looks like this:
            +       * session {
            +       * name: ".../sessions/xxx"
            +       * turns {
            +       * query { text: "What is foo?" query_id: ".../questions/yyy" }
            +       * answer: "Foo is ..."
            +       * }
            +       * turns {
            +       * query { text: "How about bar then?" query_id: ".../questions/zzz" }
            +       * }
            +       * }
            +       *
            +       * The user can call /search API with a request like this:
            +       *
            +       * session: ".../sessions/xxx"
            +       * session_spec { query_id: ".../questions/zzz" }
            +       *
            +       * Then, the API stores the search result, associated with the last turn.
            +       * The stored search result can be used by a subsequent /answer API call
            +       * (with the session ID and the query ID specified). Also, it is possible
            +       * to call /search and /answer in parallel with the same session ID & query
            +       * ID.
            +       * 
            + * + * string query_id = 1; + * + * @param value The queryId to set. + * @return This builder for chaining. + */ + public Builder setQueryId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * If set, the search result gets stored to the "turn" specified by this
            +       * query ID.
            +       *
            +       * Example: Let's say the session looks like this:
            +       * session {
            +       * name: ".../sessions/xxx"
            +       * turns {
            +       * query { text: "What is foo?" query_id: ".../questions/yyy" }
            +       * answer: "Foo is ..."
            +       * }
            +       * turns {
            +       * query { text: "How about bar then?" query_id: ".../questions/zzz" }
            +       * }
            +       * }
            +       *
            +       * The user can call /search API with a request like this:
            +       *
            +       * session: ".../sessions/xxx"
            +       * session_spec { query_id: ".../questions/zzz" }
            +       *
            +       * Then, the API stores the search result, associated with the last turn.
            +       * The stored search result can be used by a subsequent /answer API call
            +       * (with the session ID and the query ID specified). Also, it is possible
            +       * to call /search and /answer in parallel with the same session ID & query
            +       * ID.
            +       * 
            + * + * string query_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearQueryId() { + queryId_ = getDefaultInstance().getQueryId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * If set, the search result gets stored to the "turn" specified by this
            +       * query ID.
            +       *
            +       * Example: Let's say the session looks like this:
            +       * session {
            +       * name: ".../sessions/xxx"
            +       * turns {
            +       * query { text: "What is foo?" query_id: ".../questions/yyy" }
            +       * answer: "Foo is ..."
            +       * }
            +       * turns {
            +       * query { text: "How about bar then?" query_id: ".../questions/zzz" }
            +       * }
            +       * }
            +       *
            +       * The user can call /search API with a request like this:
            +       *
            +       * session: ".../sessions/xxx"
            +       * session_spec { query_id: ".../questions/zzz" }
            +       *
            +       * Then, the API stores the search result, associated with the last turn.
            +       * The stored search result can be used by a subsequent /answer API call
            +       * (with the session ID and the query ID specified). Also, it is possible
            +       * to call /search and /answer in parallel with the same session ID & query
            +       * ID.
            +       * 
            + * + * string query_id = 1; + * + * @param value The bytes for queryId to set. + * @return This builder for chaining. + */ + public Builder setQueryIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int searchResultPersistenceCount_; + + /** + * + * + *
            +       * The number of top search results to persist. The persisted search results
            +       * can be used for the subsequent /answer api call.
            +       *
            +       * This field is similar to the `summary_result_count` field in
            +       * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
            +       *
            +       * At most 10 results for documents mode, or 50 for chunks mode.
            +       * 
            + * + * optional int32 search_result_persistence_count = 2; + * + * @return Whether the searchResultPersistenceCount field is set. + */ + @java.lang.Override + public boolean hasSearchResultPersistenceCount() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +       * The number of top search results to persist. The persisted search results
            +       * can be used for the subsequent /answer api call.
            +       *
            +       * This field is similar to the `summary_result_count` field in
            +       * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
            +       *
            +       * At most 10 results for documents mode, or 50 for chunks mode.
            +       * 
            + * + * optional int32 search_result_persistence_count = 2; + * + * @return The searchResultPersistenceCount. + */ + @java.lang.Override + public int getSearchResultPersistenceCount() { + return searchResultPersistenceCount_; + } + + /** + * + * + *
            +       * The number of top search results to persist. The persisted search results
            +       * can be used for the subsequent /answer api call.
            +       *
            +       * This field is similar to the `summary_result_count` field in
            +       * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
            +       *
            +       * At most 10 results for documents mode, or 50 for chunks mode.
            +       * 
            + * + * optional int32 search_result_persistence_count = 2; + * + * @param value The searchResultPersistenceCount to set. + * @return This builder for chaining. + */ + public Builder setSearchResultPersistenceCount(int value) { + + searchResultPersistenceCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The number of top search results to persist. The persisted search results
            +       * can be used for the subsequent /answer api call.
            +       *
            +       * This field is similar to the `summary_result_count` field in
            +       * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count].
            +       *
            +       * At most 10 results for documents mode, or 50 for chunks mode.
            +       * 
            + * + * optional int32 search_result_persistence_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearSearchResultPersistenceCount() { + bitField0_ = (bitField0_ & ~0x00000002); + searchResultPersistenceCount_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) } - for (int i = 0; i < facetSpecs_.size(); i++) { - output.writeMessage(9, facetSpecs_.get(i)); + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec(); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(10, getBoostSpec()); + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 11); - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(13, getQueryExpansionSpec()); + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(14, getSpellCorrectionSpec()); + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPseudoId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 15, userPseudoId_); + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(19, getImageQuery()); + } + + public interface RelevanceFilterSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. Relevance filtering threshold specification for keyword search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec keyword_search_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the keywordSearchThreshold field is set. + */ + boolean hasKeywordSearchThreshold(); + + /** + * + * + *
            +     * Optional. Relevance filtering threshold specification for keyword search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec keyword_search_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The keywordSearchThreshold. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec + getKeywordSearchThreshold(); + + /** + * + * + *
            +     * Optional. Relevance filtering threshold specification for keyword search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec keyword_search_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpecOrBuilder + getKeywordSearchThresholdOrBuilder(); + + /** + * + * + *
            +     * Optional. Relevance filtering threshold specification for semantic
            +     * search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec semantic_search_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the semanticSearchThreshold field is set. + */ + boolean hasSemanticSearchThreshold(); + + /** + * + * + *
            +     * Optional. Relevance filtering threshold specification for semantic
            +     * search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec semantic_search_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The semanticSearchThreshold. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec + getSemanticSearchThreshold(); + + /** + * + * + *
            +     * Optional. Relevance filtering threshold specification for semantic
            +     * search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec semantic_search_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpecOrBuilder + getSemanticSearchThresholdOrBuilder(); + } + + /** + * + * + *
            +   * Relevance filtering specification.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec} + */ + public static final class RelevanceFilterSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec) + RelevanceFilterSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RelevanceFilterSpec"); + } + + // Use RelevanceFilterSpec.newBuilder() to construct. + private RelevanceFilterSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RelevanceFilterSpec() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.Builder + .class); + } + + public interface RelevanceThresholdSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Pre-defined relevance threshold for the sub-search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 1; + * + * + * @return Whether the relevanceThreshold field is set. + */ + boolean hasRelevanceThreshold(); + + /** + * + * + *
            +       * Pre-defined relevance threshold for the sub-search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 1; + * + * + * @return The enum numeric value on the wire for relevanceThreshold. + */ + int getRelevanceThresholdValue(); + + /** + * + * + *
            +       * Pre-defined relevance threshold for the sub-search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 1; + * + * + * @return The relevanceThreshold. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold + getRelevanceThreshold(); + + /** + * + * + *
            +       * Custom relevance threshold for the sub-search.
            +       * The value must be in [0.0, 1.0].
            +       * 
            + * + * float semantic_relevance_threshold = 2; + * + * @return Whether the semanticRelevanceThreshold field is set. + */ + boolean hasSemanticRelevanceThreshold(); + + /** + * + * + *
            +       * Custom relevance threshold for the sub-search.
            +       * The value must be in [0.0, 1.0].
            +       * 
            + * + * float semantic_relevance_threshold = 2; + * + * @return The semanticRelevanceThreshold. + */ + float getSemanticRelevanceThreshold(); + + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.RelevanceThresholdSpecCase + getRelevanceThresholdSpecCase(); + } + + /** + * + * + *
            +     * Specification for relevance filtering on a specific sub-search.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec} + */ + public static final class RelevanceThresholdSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec) + RelevanceThresholdSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RelevanceThresholdSpec"); + } + + // Use RelevanceThresholdSpec.newBuilder() to construct. + private RelevanceThresholdSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RelevanceThresholdSpec() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_RelevanceThresholdSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_RelevanceThresholdSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.Builder.class); + } + + private int relevanceThresholdSpecCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object relevanceThresholdSpec_; + + public enum RelevanceThresholdSpecCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RELEVANCE_THRESHOLD(1), + SEMANTIC_RELEVANCE_THRESHOLD(2), + RELEVANCETHRESHOLDSPEC_NOT_SET(0); + private final int value; + + private RelevanceThresholdSpecCase(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 RelevanceThresholdSpecCase valueOf(int value) { + return forNumber(value); + } + + public static RelevanceThresholdSpecCase forNumber(int value) { + switch (value) { + case 1: + return RELEVANCE_THRESHOLD; + case 2: + return SEMANTIC_RELEVANCE_THRESHOLD; + case 0: + return RELEVANCETHRESHOLDSPEC_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RelevanceThresholdSpecCase getRelevanceThresholdSpecCase() { + return RelevanceThresholdSpecCase.forNumber(relevanceThresholdSpecCase_); + } + + public static final int RELEVANCE_THRESHOLD_FIELD_NUMBER = 1; + + /** + * + * + *
            +       * Pre-defined relevance threshold for the sub-search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 1; + * + * + * @return Whether the relevanceThreshold field is set. + */ + public boolean hasRelevanceThreshold() { + return relevanceThresholdSpecCase_ == 1; + } + + /** + * + * + *
            +       * Pre-defined relevance threshold for the sub-search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 1; + * + * + * @return The enum numeric value on the wire for relevanceThreshold. + */ + public int getRelevanceThresholdValue() { + if (relevanceThresholdSpecCase_ == 1) { + return (java.lang.Integer) relevanceThresholdSpec_; + } + return 0; + } + + /** + * + * + *
            +       * Pre-defined relevance threshold for the sub-search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 1; + * + * + * @return The relevanceThreshold. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold + getRelevanceThreshold() { + if (relevanceThresholdSpecCase_ == 1) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold.forNumber( + (java.lang.Integer) relevanceThresholdSpec_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold + .UNRECOGNIZED + : result; + } + return com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold + .RELEVANCE_THRESHOLD_UNSPECIFIED; + } + + public static final int SEMANTIC_RELEVANCE_THRESHOLD_FIELD_NUMBER = 2; + + /** + * + * + *
            +       * Custom relevance threshold for the sub-search.
            +       * The value must be in [0.0, 1.0].
            +       * 
            + * + * float semantic_relevance_threshold = 2; + * + * @return Whether the semanticRelevanceThreshold field is set. + */ + @java.lang.Override + public boolean hasSemanticRelevanceThreshold() { + return relevanceThresholdSpecCase_ == 2; + } + + /** + * + * + *
            +       * Custom relevance threshold for the sub-search.
            +       * The value must be in [0.0, 1.0].
            +       * 
            + * + * float semantic_relevance_threshold = 2; + * + * @return The semanticRelevanceThreshold. + */ + @java.lang.Override + public float getSemanticRelevanceThreshold() { + if (relevanceThresholdSpecCase_ == 2) { + return (java.lang.Float) relevanceThresholdSpec_; + } + return 0F; + } + + 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 (relevanceThresholdSpecCase_ == 1) { + output.writeEnum(1, ((java.lang.Integer) relevanceThresholdSpec_)); + } + if (relevanceThresholdSpecCase_ == 2) { + output.writeFloat(2, (float) ((java.lang.Float) relevanceThresholdSpec_)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (relevanceThresholdSpecCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 1, ((java.lang.Integer) relevanceThresholdSpec_)); + } + if (relevanceThresholdSpecCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeFloatSize( + 2, (float) ((java.lang.Float) relevanceThresholdSpec_)); + } + 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.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec) + obj; + + if (!getRelevanceThresholdSpecCase().equals(other.getRelevanceThresholdSpecCase())) + return false; + switch (relevanceThresholdSpecCase_) { + case 1: + if (getRelevanceThresholdValue() != other.getRelevanceThresholdValue()) return false; + break; + case 2: + if (java.lang.Float.floatToIntBits(getSemanticRelevanceThreshold()) + != java.lang.Float.floatToIntBits(other.getSemanticRelevanceThreshold())) + 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 (relevanceThresholdSpecCase_) { + case 1: + hash = (37 * hash) + RELEVANCE_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + getRelevanceThresholdValue(); + break; + case 2: + hash = (37 * hash) + SEMANTIC_RELEVANCE_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getSemanticRelevanceThreshold()); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + 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.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + parseFrom( + 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.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Specification for relevance filtering on a specific sub-search.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_RelevanceThresholdSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_RelevanceThresholdSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + relevanceThresholdSpecCase_ = 0; + relevanceThresholdSpec_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_RelevanceThresholdSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + result) { + result.relevanceThresholdSpecCase_ = relevanceThresholdSpecCase_; + result.relevanceThresholdSpec_ = this.relevanceThresholdSpec_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.getDefaultInstance()) return this; + switch (other.getRelevanceThresholdSpecCase()) { + case RELEVANCE_THRESHOLD: + { + setRelevanceThresholdValue(other.getRelevanceThresholdValue()); + break; + } + case SEMANTIC_RELEVANCE_THRESHOLD: + { + setSemanticRelevanceThreshold(other.getSemanticRelevanceThreshold()); + break; + } + case RELEVANCETHRESHOLDSPEC_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(); + relevanceThresholdSpecCase_ = 1; + relevanceThresholdSpec_ = rawValue; + break; + } // case 8 + case 21: + { + relevanceThresholdSpec_ = input.readFloat(); + relevanceThresholdSpecCase_ = 2; + 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 relevanceThresholdSpecCase_ = 0; + private java.lang.Object relevanceThresholdSpec_; + + public RelevanceThresholdSpecCase getRelevanceThresholdSpecCase() { + return RelevanceThresholdSpecCase.forNumber(relevanceThresholdSpecCase_); + } + + public Builder clearRelevanceThresholdSpec() { + relevanceThresholdSpecCase_ = 0; + relevanceThresholdSpec_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
            +         * Pre-defined relevance threshold for the sub-search.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 1; + * + * + * @return Whether the relevanceThreshold field is set. + */ + @java.lang.Override + public boolean hasRelevanceThreshold() { + return relevanceThresholdSpecCase_ == 1; + } + + /** + * + * + *
            +         * Pre-defined relevance threshold for the sub-search.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 1; + * + * + * @return The enum numeric value on the wire for relevanceThreshold. + */ + @java.lang.Override + public int getRelevanceThresholdValue() { + if (relevanceThresholdSpecCase_ == 1) { + return ((java.lang.Integer) relevanceThresholdSpec_).intValue(); + } + return 0; + } + + /** + * + * + *
            +         * Pre-defined relevance threshold for the sub-search.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 1; + * + * + * @param value The enum numeric value on the wire for relevanceThreshold to set. + * @return This builder for chaining. + */ + public Builder setRelevanceThresholdValue(int value) { + relevanceThresholdSpecCase_ = 1; + relevanceThresholdSpec_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Pre-defined relevance threshold for the sub-search.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 1; + * + * + * @return The relevanceThreshold. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold + getRelevanceThreshold() { + if (relevanceThresholdSpecCase_ == 1) { + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold.forNumber( + (java.lang.Integer) relevanceThresholdSpec_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold + .UNRECOGNIZED + : result; + } + return com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold + .RELEVANCE_THRESHOLD_UNSPECIFIED; + } + + /** + * + * + *
            +         * Pre-defined relevance threshold for the sub-search.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 1; + * + * + * @param value The relevanceThreshold to set. + * @return This builder for chaining. + */ + public Builder setRelevanceThreshold( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold value) { + if (value == null) { + throw new NullPointerException(); + } + relevanceThresholdSpecCase_ = 1; + relevanceThresholdSpec_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Pre-defined relevance threshold for the sub-search.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearRelevanceThreshold() { + if (relevanceThresholdSpecCase_ == 1) { + relevanceThresholdSpecCase_ = 0; + relevanceThresholdSpec_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * Custom relevance threshold for the sub-search.
            +         * The value must be in [0.0, 1.0].
            +         * 
            + * + * float semantic_relevance_threshold = 2; + * + * @return Whether the semanticRelevanceThreshold field is set. + */ + public boolean hasSemanticRelevanceThreshold() { + return relevanceThresholdSpecCase_ == 2; + } + + /** + * + * + *
            +         * Custom relevance threshold for the sub-search.
            +         * The value must be in [0.0, 1.0].
            +         * 
            + * + * float semantic_relevance_threshold = 2; + * + * @return The semanticRelevanceThreshold. + */ + public float getSemanticRelevanceThreshold() { + if (relevanceThresholdSpecCase_ == 2) { + return (java.lang.Float) relevanceThresholdSpec_; + } + return 0F; + } + + /** + * + * + *
            +         * Custom relevance threshold for the sub-search.
            +         * The value must be in [0.0, 1.0].
            +         * 
            + * + * float semantic_relevance_threshold = 2; + * + * @param value The semanticRelevanceThreshold to set. + * @return This builder for chaining. + */ + public Builder setSemanticRelevanceThreshold(float value) { + + relevanceThresholdSpecCase_ = 2; + relevanceThresholdSpec_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Custom relevance threshold for the sub-search.
            +         * The value must be in [0.0, 1.0].
            +         * 
            + * + * float semantic_relevance_threshold = 2; + * + * @return This builder for chaining. + */ + public Builder clearSemanticRelevanceThreshold() { + if (relevanceThresholdSpecCase_ == 2) { + relevanceThresholdSpecCase_ = 0; + relevanceThresholdSpec_ = null; + onChanged(); + } + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelevanceThresholdSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int KEYWORD_SEARCH_THRESHOLD_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + keywordSearchThreshold_; + + /** + * + * + *
            +     * Optional. Relevance filtering threshold specification for keyword search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec keyword_search_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the keywordSearchThreshold field is set. + */ + @java.lang.Override + public boolean hasKeywordSearchThreshold() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. Relevance filtering threshold specification for keyword search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec keyword_search_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The keywordSearchThreshold. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + getKeywordSearchThreshold() { + return keywordSearchThreshold_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.getDefaultInstance() + : keywordSearchThreshold_; + } + + /** + * + * + *
            +     * Optional. Relevance filtering threshold specification for keyword search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec keyword_search_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpecOrBuilder + getKeywordSearchThresholdOrBuilder() { + return keywordSearchThreshold_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.getDefaultInstance() + : keywordSearchThreshold_; + } + + public static final int SEMANTIC_SEARCH_THRESHOLD_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + semanticSearchThreshold_; + + /** + * + * + *
            +     * Optional. Relevance filtering threshold specification for semantic
            +     * search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec semantic_search_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the semanticSearchThreshold field is set. + */ + @java.lang.Override + public boolean hasSemanticSearchThreshold() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. Relevance filtering threshold specification for semantic
            +     * search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec semantic_search_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The semanticSearchThreshold. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + getSemanticSearchThreshold() { + return semanticSearchThreshold_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.getDefaultInstance() + : semanticSearchThreshold_; + } + + /** + * + * + *
            +     * Optional. Relevance filtering threshold specification for semantic
            +     * search.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec semantic_search_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpecOrBuilder + getSemanticSearchThresholdOrBuilder() { + return semanticSearchThreshold_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.getDefaultInstance() + : semanticSearchThreshold_; + } + + 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, getKeywordSearchThreshold()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSemanticSearchThreshold()); + } + 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, getKeywordSearchThreshold()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getSemanticSearchThreshold()); + } + 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.v1beta.SearchRequest.RelevanceFilterSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec) obj; + + if (hasKeywordSearchThreshold() != other.hasKeywordSearchThreshold()) return false; + if (hasKeywordSearchThreshold()) { + if (!getKeywordSearchThreshold().equals(other.getKeywordSearchThreshold())) return false; + } + if (hasSemanticSearchThreshold() != other.hasSemanticSearchThreshold()) return false; + if (hasSemanticSearchThreshold()) { + if (!getSemanticSearchThreshold().equals(other.getSemanticSearchThreshold())) 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 (hasKeywordSearchThreshold()) { + hash = (37 * hash) + KEYWORD_SEARCH_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + getKeywordSearchThreshold().hashCode(); + } + if (hasSemanticSearchThreshold()) { + hash = (37 * hash) + SEMANTIC_SEARCH_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + getSemanticSearchThreshold().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + 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.v1beta.SearchRequest.RelevanceFilterSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + parseFrom( + 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.v1beta.SearchRequest.RelevanceFilterSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Relevance filtering specification.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetKeywordSearchThresholdFieldBuilder(); + internalGetSemanticSearchThresholdFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + keywordSearchThreshold_ = null; + if (keywordSearchThresholdBuilder_ != null) { + keywordSearchThresholdBuilder_.dispose(); + keywordSearchThresholdBuilder_ = null; + } + semanticSearchThreshold_ = null; + if (semanticSearchThresholdBuilder_ != null) { + semanticSearchThresholdBuilder_.dispose(); + semanticSearchThresholdBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.keywordSearchThreshold_ = + keywordSearchThresholdBuilder_ == null + ? keywordSearchThreshold_ + : keywordSearchThresholdBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.semanticSearchThreshold_ = + semanticSearchThresholdBuilder_ == null + ? semanticSearchThreshold_ + : semanticSearchThresholdBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .getDefaultInstance()) return this; + if (other.hasKeywordSearchThreshold()) { + mergeKeywordSearchThreshold(other.getKeywordSearchThreshold()); + } + if (other.hasSemanticSearchThreshold()) { + mergeSemanticSearchThreshold(other.getSemanticSearchThreshold()); + } + 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( + internalGetKeywordSearchThresholdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetSemanticSearchThresholdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + keywordSearchThreshold_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpecOrBuilder> + keywordSearchThresholdBuilder_; + + /** + * + * + *
            +       * Optional. Relevance filtering threshold specification for keyword search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec keyword_search_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the keywordSearchThreshold field is set. + */ + public boolean hasKeywordSearchThreshold() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Optional. Relevance filtering threshold specification for keyword search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec keyword_search_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The keywordSearchThreshold. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + getKeywordSearchThreshold() { + if (keywordSearchThresholdBuilder_ == null) { + return keywordSearchThreshold_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.getDefaultInstance() + : keywordSearchThreshold_; + } else { + return keywordSearchThresholdBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. Relevance filtering threshold specification for keyword search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec keyword_search_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setKeywordSearchThreshold( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + value) { + if (keywordSearchThresholdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + keywordSearchThreshold_ = value; + } else { + keywordSearchThresholdBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Relevance filtering threshold specification for keyword search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec keyword_search_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setKeywordSearchThreshold( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.Builder + builderForValue) { + if (keywordSearchThresholdBuilder_ == null) { + keywordSearchThreshold_ = builderForValue.build(); + } else { + keywordSearchThresholdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Relevance filtering threshold specification for keyword search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec keyword_search_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeKeywordSearchThreshold( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + value) { + if (keywordSearchThresholdBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && keywordSearchThreshold_ != null + && keywordSearchThreshold_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.getDefaultInstance()) { + getKeywordSearchThresholdBuilder().mergeFrom(value); + } else { + keywordSearchThreshold_ = value; + } + } else { + keywordSearchThresholdBuilder_.mergeFrom(value); + } + if (keywordSearchThreshold_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Relevance filtering threshold specification for keyword search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec keyword_search_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearKeywordSearchThreshold() { + bitField0_ = (bitField0_ & ~0x00000001); + keywordSearchThreshold_ = null; + if (keywordSearchThresholdBuilder_ != null) { + keywordSearchThresholdBuilder_.dispose(); + keywordSearchThresholdBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Relevance filtering threshold specification for keyword search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec keyword_search_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.Builder + getKeywordSearchThresholdBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetKeywordSearchThresholdFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Relevance filtering threshold specification for keyword search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec keyword_search_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpecOrBuilder + getKeywordSearchThresholdOrBuilder() { + if (keywordSearchThresholdBuilder_ != null) { + return keywordSearchThresholdBuilder_.getMessageOrBuilder(); + } else { + return keywordSearchThreshold_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.getDefaultInstance() + : keywordSearchThreshold_; + } + } + + /** + * + * + *
            +       * Optional. Relevance filtering threshold specification for keyword search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec keyword_search_threshold = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpecOrBuilder> + internalGetKeywordSearchThresholdFieldBuilder() { + if (keywordSearchThresholdBuilder_ == null) { + keywordSearchThresholdBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpecOrBuilder>( + getKeywordSearchThreshold(), getParentForChildren(), isClean()); + keywordSearchThreshold_ = null; + } + return keywordSearchThresholdBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + semanticSearchThreshold_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpecOrBuilder> + semanticSearchThresholdBuilder_; + + /** + * + * + *
            +       * Optional. Relevance filtering threshold specification for semantic
            +       * search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec semantic_search_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the semanticSearchThreshold field is set. + */ + public boolean hasSemanticSearchThreshold() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +       * Optional. Relevance filtering threshold specification for semantic
            +       * search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec semantic_search_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The semanticSearchThreshold. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + getSemanticSearchThreshold() { + if (semanticSearchThresholdBuilder_ == null) { + return semanticSearchThreshold_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.getDefaultInstance() + : semanticSearchThreshold_; + } else { + return semanticSearchThresholdBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. Relevance filtering threshold specification for semantic
            +       * search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec semantic_search_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSemanticSearchThreshold( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + value) { + if (semanticSearchThresholdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + semanticSearchThreshold_ = value; + } else { + semanticSearchThresholdBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Relevance filtering threshold specification for semantic
            +       * search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec semantic_search_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSemanticSearchThreshold( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.Builder + builderForValue) { + if (semanticSearchThresholdBuilder_ == null) { + semanticSearchThreshold_ = builderForValue.build(); + } else { + semanticSearchThresholdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Relevance filtering threshold specification for semantic
            +       * search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec semantic_search_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSemanticSearchThreshold( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec + value) { + if (semanticSearchThresholdBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && semanticSearchThreshold_ != null + && semanticSearchThreshold_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.getDefaultInstance()) { + getSemanticSearchThresholdBuilder().mergeFrom(value); + } else { + semanticSearchThreshold_ = value; + } + } else { + semanticSearchThresholdBuilder_.mergeFrom(value); + } + if (semanticSearchThreshold_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Relevance filtering threshold specification for semantic
            +       * search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec semantic_search_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSemanticSearchThreshold() { + bitField0_ = (bitField0_ & ~0x00000002); + semanticSearchThreshold_ = null; + if (semanticSearchThresholdBuilder_ != null) { + semanticSearchThresholdBuilder_.dispose(); + semanticSearchThresholdBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Relevance filtering threshold specification for semantic
            +       * search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec semantic_search_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.Builder + getSemanticSearchThresholdBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSemanticSearchThresholdFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Relevance filtering threshold specification for semantic
            +       * search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec semantic_search_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpecOrBuilder + getSemanticSearchThresholdOrBuilder() { + if (semanticSearchThresholdBuilder_ != null) { + return semanticSearchThresholdBuilder_.getMessageOrBuilder(); + } else { + return semanticSearchThreshold_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.getDefaultInstance() + : semanticSearchThreshold_; + } + } + + /** + * + * + *
            +       * Optional. Relevance filtering threshold specification for semantic
            +       * search.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpec semantic_search_threshold = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpecOrBuilder> + internalGetSemanticSearchThresholdFieldBuilder() { + if (semanticSearchThresholdBuilder_ == null) { + semanticSearchThresholdBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .RelevanceThresholdSpecOrBuilder>( + getSemanticSearchThreshold(), getParentForChildren(), isClean()); + semanticSearchThreshold_ = null; + } + return semanticSearchThresholdBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelevanceFilterSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.SearchRequest.RelevanceFilterSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface PersonalizationSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * The personalization mode of the search request.
            +     * Defaults to
            +     * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode mode = 1; + * + * + * @return The enum numeric value on the wire for mode. + */ + int getModeValue(); + + /** + * + * + *
            +     * The personalization mode of the search request.
            +     * Defaults to
            +     * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode mode = 1; + * + * + * @return The mode. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode getMode(); + } + + /** + * + * + *
            +   * The specification for personalization.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec} + */ + public static final class PersonalizationSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec) + PersonalizationSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PersonalizationSpec"); + } + + // Use PersonalizationSpec.newBuilder() to construct. + private PersonalizationSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PersonalizationSpec() { + mode_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_PersonalizationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_PersonalizationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Builder + .class); + } + + /** + * + * + *
            +     * The personalization mode of each search request.
            +     * 
            + * + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode} + */ + public enum Mode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Default value. In this case, server behavior defaults to
            +       * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +       * 
            + * + * MODE_UNSPECIFIED = 0; + */ + MODE_UNSPECIFIED(0), + /** + * + * + *
            +       * Personalization is enabled if data quality requirements are met.
            +       * 
            + * + * AUTO = 1; + */ + AUTO(1), + /** + * + * + *
            +       * Disable personalization.
            +       * 
            + * + * DISABLED = 2; + */ + DISABLED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Mode"); + } + + /** + * + * + *
            +       * Default value. In this case, server behavior defaults to
            +       * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +       * 
            + * + * MODE_UNSPECIFIED = 0; + */ + public static final int MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +       * Personalization is enabled if data quality requirements are met.
            +       * 
            + * + * AUTO = 1; + */ + public static final int AUTO_VALUE = 1; + + /** + * + * + *
            +       * Disable personalization.
            +       * 
            + * + * 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 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 AUTO; + 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 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + .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.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode) + } + + public static final int MODE_FIELD_NUMBER = 1; + private int mode_ = 0; + + /** + * + * + *
            +     * The personalization mode of the search request.
            +     * Defaults to
            +     * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode mode = 1; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + + /** + * + * + *
            +     * The personalization mode of the search request.
            +     * Defaults to
            +     * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode mode = 1; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode + getMode() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.forNumber( + mode_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode + .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 (mode_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode + .MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, mode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (mode_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode + .MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, mode_); + } + 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.v1beta.SearchRequest.PersonalizationSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec) obj; + + if (mode_ != other.mode_) 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) + MODE_FIELD_NUMBER; + hash = (53 * hash) + mode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + 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.v1beta.SearchRequest.PersonalizationSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + parseFrom( + 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.v1beta.SearchRequest.PersonalizationSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * The specification for personalization.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_PersonalizationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_PersonalizationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_PersonalizationSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mode_ = mode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + .getDefaultInstance()) return this; + if (other.mode_ != 0) { + setModeValue(other.getModeValue()); + } + 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 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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; + + /** + * + * + *
            +       * The personalization mode of the search request.
            +       * Defaults to
            +       * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode mode = 1; + * + * + * @return The enum numeric value on the wire for mode. + */ + @java.lang.Override + public int getModeValue() { + return mode_; + } + + /** + * + * + *
            +       * The personalization mode of the search request.
            +       * Defaults to
            +       * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.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; + } + + /** + * + * + *
            +       * The personalization mode of the search request.
            +       * Defaults to
            +       * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode mode = 1; + * + * + * @return The mode. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode + getMode() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode + .forNumber(mode_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode + .UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * The personalization mode of the search request.
            +       * Defaults to
            +       * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode mode = 1; + * + * + * @param value The mode to set. + * @return This builder for chaining. + */ + public Builder setMode( + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + mode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The personalization mode of the search request.
            +       * Defaults to
            +       * [Mode.AUTO][google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode.AUTO].
            +       * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Mode mode = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearMode() { + bitField0_ = (bitField0_ & ~0x00000001); + mode_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PersonalizationSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.SearchRequest.PersonalizationSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RelevanceScoreSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. Whether to return the relevance score for search results.
            +     * The higher the score, the more relevant the document is to the query.
            +     * 
            + * + * bool return_relevance_score = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnRelevanceScore. + */ + boolean getReturnRelevanceScore(); + } + + /** + * + * + *
            +   * The specification for returning the document relevance score.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec} + */ + public static final class RelevanceScoreSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec) + RelevanceScoreSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RelevanceScoreSpec"); + } + + // Use RelevanceScoreSpec.newBuilder() to construct. + private RelevanceScoreSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RelevanceScoreSpec() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceScoreSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceScoreSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec.Builder + .class); + } + + public static final int RETURN_RELEVANCE_SCORE_FIELD_NUMBER = 1; + private boolean returnRelevanceScore_ = false; + + /** + * + * + *
            +     * Optional. Whether to return the relevance score for search results.
            +     * The higher the score, the more relevant the document is to the query.
            +     * 
            + * + * bool return_relevance_score = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnRelevanceScore. + */ + @java.lang.Override + public boolean getReturnRelevanceScore() { + return returnRelevanceScore_; + } + + 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 (returnRelevanceScore_ != false) { + output.writeBool(1, returnRelevanceScore_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (returnRelevanceScore_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, returnRelevanceScore_); + } + 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.v1beta.SearchRequest.RelevanceScoreSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec) obj; + + if (getReturnRelevanceScore() != other.getReturnRelevanceScore()) 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) + RETURN_RELEVANCE_SCORE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnRelevanceScore()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + 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.v1beta.SearchRequest.RelevanceScoreSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + parseFrom( + 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.v1beta.SearchRequest.RelevanceScoreSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * The specification for returning the document relevance score.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceScoreSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceScoreSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + returnRelevanceScore_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceScoreSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.returnRelevanceScore_ = returnRelevanceScore_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + .getDefaultInstance()) return this; + if (other.getReturnRelevanceScore() != false) { + setReturnRelevanceScore(other.getReturnRelevanceScore()); + } + 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: + { + returnRelevanceScore_ = 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 returnRelevanceScore_; + + /** + * + * + *
            +       * Optional. Whether to return the relevance score for search results.
            +       * The higher the score, the more relevant the document is to the query.
            +       * 
            + * + * bool return_relevance_score = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnRelevanceScore. + */ + @java.lang.Override + public boolean getReturnRelevanceScore() { + return returnRelevanceScore_; + } + + /** + * + * + *
            +       * Optional. Whether to return the relevance score for search results.
            +       * The higher the score, the more relevant the document is to the query.
            +       * 
            + * + * bool return_relevance_score = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The returnRelevanceScore to set. + * @return This builder for chaining. + */ + public Builder setReturnRelevanceScore(boolean value) { + + returnRelevanceScore_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Whether to return the relevance score for search results.
            +       * The higher the score, the more relevant the document is to the query.
            +       * 
            + * + * bool return_relevance_score = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReturnRelevanceScore() { + bitField0_ = (bitField0_ & ~0x00000001); + returnRelevanceScore_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RelevanceScoreSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.SearchRequest.RelevanceScoreSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SearchAddonSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. If true, semantic add-on is disabled. Semantic add-on includes
            +     * embeddings and jetstream.
            +     * 
            + * + * bool disable_semantic_add_on = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableSemanticAddOn. + */ + boolean getDisableSemanticAddOn(); + + /** + * + * + *
            +     * Optional. If true, disables event re-ranking and personalization to
            +     * optimize KPIs & personalize results.
            +     * 
            + * + * bool disable_kpi_personalization_add_on = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableKpiPersonalizationAddOn. + */ + boolean getDisableKpiPersonalizationAddOn(); + + /** + * + * + *
            +     * Optional. If true, generative answer add-on is disabled. Generative
            +     * answer add-on includes natural language to filters and simple answers.
            +     * 
            + * + * bool disable_generative_answer_add_on = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableGenerativeAnswerAddOn. + */ + boolean getDisableGenerativeAnswerAddOn(); + } + + /** + * + * + *
            +   * SearchAddonSpec is used to disable add-ons for search as per new
            +   * repricing model. By default if the SearchAddonSpec is not specified, we
            +   * consider that the customer wants to enable them wherever applicable.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec} + */ + public static final class SearchAddonSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec) + SearchAddonSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchAddonSpec"); + } + + // Use SearchAddonSpec.newBuilder() to construct. + private SearchAddonSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchAddonSpec() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAddonSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAddonSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec.Builder.class); + } + + public static final int DISABLE_SEMANTIC_ADD_ON_FIELD_NUMBER = 1; + private boolean disableSemanticAddOn_ = false; + + /** + * + * + *
            +     * Optional. If true, semantic add-on is disabled. Semantic add-on includes
            +     * embeddings and jetstream.
            +     * 
            + * + * bool disable_semantic_add_on = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableSemanticAddOn. + */ + @java.lang.Override + public boolean getDisableSemanticAddOn() { + return disableSemanticAddOn_; + } + + public static final int DISABLE_KPI_PERSONALIZATION_ADD_ON_FIELD_NUMBER = 2; + private boolean disableKpiPersonalizationAddOn_ = false; + + /** + * + * + *
            +     * Optional. If true, disables event re-ranking and personalization to
            +     * optimize KPIs & personalize results.
            +     * 
            + * + * bool disable_kpi_personalization_add_on = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableKpiPersonalizationAddOn. + */ + @java.lang.Override + public boolean getDisableKpiPersonalizationAddOn() { + return disableKpiPersonalizationAddOn_; + } + + public static final int DISABLE_GENERATIVE_ANSWER_ADD_ON_FIELD_NUMBER = 3; + private boolean disableGenerativeAnswerAddOn_ = false; + + /** + * + * + *
            +     * Optional. If true, generative answer add-on is disabled. Generative
            +     * answer add-on includes natural language to filters and simple answers.
            +     * 
            + * + * bool disable_generative_answer_add_on = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableGenerativeAnswerAddOn. + */ + @java.lang.Override + public boolean getDisableGenerativeAnswerAddOn() { + return disableGenerativeAnswerAddOn_; + } + + 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 (disableSemanticAddOn_ != false) { + output.writeBool(1, disableSemanticAddOn_); + } + if (disableKpiPersonalizationAddOn_ != false) { + output.writeBool(2, disableKpiPersonalizationAddOn_); + } + if (disableGenerativeAnswerAddOn_ != false) { + output.writeBool(3, disableGenerativeAnswerAddOn_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disableSemanticAddOn_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disableSemanticAddOn_); + } + if (disableKpiPersonalizationAddOn_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 2, disableKpiPersonalizationAddOn_); + } + if (disableGenerativeAnswerAddOn_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(3, disableGenerativeAnswerAddOn_); + } + 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.v1beta.SearchRequest.SearchAddonSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec) obj; + + if (getDisableSemanticAddOn() != other.getDisableSemanticAddOn()) return false; + if (getDisableKpiPersonalizationAddOn() != other.getDisableKpiPersonalizationAddOn()) + return false; + if (getDisableGenerativeAnswerAddOn() != other.getDisableGenerativeAnswerAddOn()) + 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) + DISABLE_SEMANTIC_ADD_ON_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableSemanticAddOn()); + hash = (37 * hash) + DISABLE_KPI_PERSONALIZATION_ADD_ON_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getDisableKpiPersonalizationAddOn()); + hash = (37 * hash) + DISABLE_GENERATIVE_ANSWER_ADD_ON_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableGenerativeAnswerAddOn()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec 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.v1beta.SearchRequest.SearchAddonSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec parseFrom( + 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.v1beta.SearchRequest.SearchAddonSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * SearchAddonSpec is used to disable add-ons for search as per new
            +     * repricing model. By default if the SearchAddonSpec is not specified, we
            +     * consider that the customer wants to enable them wherever applicable.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec) + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAddonSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAddonSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + disableSemanticAddOn_ = false; + disableKpiPersonalizationAddOn_ = false; + disableGenerativeAnswerAddOn_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAddonSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.disableSemanticAddOn_ = disableSemanticAddOn_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.disableKpiPersonalizationAddOn_ = disableKpiPersonalizationAddOn_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.disableGenerativeAnswerAddOn_ = disableGenerativeAnswerAddOn_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec + .getDefaultInstance()) return this; + if (other.getDisableSemanticAddOn() != false) { + setDisableSemanticAddOn(other.getDisableSemanticAddOn()); + } + if (other.getDisableKpiPersonalizationAddOn() != false) { + setDisableKpiPersonalizationAddOn(other.getDisableKpiPersonalizationAddOn()); + } + if (other.getDisableGenerativeAnswerAddOn() != false) { + setDisableGenerativeAnswerAddOn(other.getDisableGenerativeAnswerAddOn()); + } + 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: + { + disableSemanticAddOn_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + disableKpiPersonalizationAddOn_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + disableGenerativeAnswerAddOn_ = 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 boolean disableSemanticAddOn_; + + /** + * + * + *
            +       * Optional. If true, semantic add-on is disabled. Semantic add-on includes
            +       * embeddings and jetstream.
            +       * 
            + * + * bool disable_semantic_add_on = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disableSemanticAddOn. + */ + @java.lang.Override + public boolean getDisableSemanticAddOn() { + return disableSemanticAddOn_; + } + + /** + * + * + *
            +       * Optional. If true, semantic add-on is disabled. Semantic add-on includes
            +       * embeddings and jetstream.
            +       * 
            + * + * bool disable_semantic_add_on = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disableSemanticAddOn to set. + * @return This builder for chaining. + */ + public Builder setDisableSemanticAddOn(boolean value) { + + disableSemanticAddOn_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. If true, semantic add-on is disabled. Semantic add-on includes
            +       * embeddings and jetstream.
            +       * 
            + * + * bool disable_semantic_add_on = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisableSemanticAddOn() { + bitField0_ = (bitField0_ & ~0x00000001); + disableSemanticAddOn_ = false; + onChanged(); + return this; + } + + private boolean disableKpiPersonalizationAddOn_; + + /** + * + * + *
            +       * Optional. If true, disables event re-ranking and personalization to
            +       * optimize KPIs & personalize results.
            +       * 
            + * + * + * bool disable_kpi_personalization_add_on = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableKpiPersonalizationAddOn. + */ + @java.lang.Override + public boolean getDisableKpiPersonalizationAddOn() { + return disableKpiPersonalizationAddOn_; + } + + /** + * + * + *
            +       * Optional. If true, disables event re-ranking and personalization to
            +       * optimize KPIs & personalize results.
            +       * 
            + * + * + * bool disable_kpi_personalization_add_on = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The disableKpiPersonalizationAddOn to set. + * @return This builder for chaining. + */ + public Builder setDisableKpiPersonalizationAddOn(boolean value) { + + disableKpiPersonalizationAddOn_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. If true, disables event re-ranking and personalization to
            +       * optimize KPIs & personalize results.
            +       * 
            + * + * + * bool disable_kpi_personalization_add_on = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDisableKpiPersonalizationAddOn() { + bitField0_ = (bitField0_ & ~0x00000002); + disableKpiPersonalizationAddOn_ = false; + onChanged(); + return this; + } + + private boolean disableGenerativeAnswerAddOn_; + + /** + * + * + *
            +       * Optional. If true, generative answer add-on is disabled. Generative
            +       * answer add-on includes natural language to filters and simple answers.
            +       * 
            + * + * bool disable_generative_answer_add_on = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableGenerativeAnswerAddOn. + */ + @java.lang.Override + public boolean getDisableGenerativeAnswerAddOn() { + return disableGenerativeAnswerAddOn_; + } + + /** + * + * + *
            +       * Optional. If true, generative answer add-on is disabled. Generative
            +       * answer add-on includes natural language to filters and simple answers.
            +       * 
            + * + * bool disable_generative_answer_add_on = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The disableGenerativeAnswerAddOn to set. + * @return This builder for chaining. + */ + public Builder setDisableGenerativeAnswerAddOn(boolean value) { + + disableGenerativeAnswerAddOn_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. If true, generative answer add-on is disabled. Generative
            +       * answer add-on includes natural language to filters and simple answers.
            +       * 
            + * + * bool disable_generative_answer_add_on = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDisableGenerativeAnswerAddOn() { + bitField0_ = (bitField0_ & ~0x00000004); + disableGenerativeAnswerAddOn_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAddonSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.SearchRequest.SearchAddonSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CustomRankingParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. A list of ranking expressions (see `ranking_expression` for the
            +     * syntax documentation) to evaluate. The evaluation results will be
            +     * returned in
            +     * `SearchResponse.SearchResult.rank_signals.precomputed_expression_values`
            +     * field.
            +     * 
            + * + * + * repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the expressionsToPrecompute. + */ + java.util.List getExpressionsToPrecomputeList(); + + /** + * + * + *
            +     * Optional. A list of ranking expressions (see `ranking_expression` for the
            +     * syntax documentation) to evaluate. The evaluation results will be
            +     * returned in
            +     * `SearchResponse.SearchResult.rank_signals.precomputed_expression_values`
            +     * field.
            +     * 
            + * + * + * repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of expressionsToPrecompute. + */ + int getExpressionsToPrecomputeCount(); + + /** + * + * + *
            +     * Optional. A list of ranking expressions (see `ranking_expression` for the
            +     * syntax documentation) to evaluate. The evaluation results will be
            +     * returned in
            +     * `SearchResponse.SearchResult.rank_signals.precomputed_expression_values`
            +     * field.
            +     * 
            + * + * + * repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The expressionsToPrecompute at the given index. + */ + java.lang.String getExpressionsToPrecompute(int index); + + /** + * + * + *
            +     * Optional. A list of ranking expressions (see `ranking_expression` for the
            +     * syntax documentation) to evaluate. The evaluation results will be
            +     * returned in
            +     * `SearchResponse.SearchResult.rank_signals.precomputed_expression_values`
            +     * field.
            +     * 
            + * + * + * repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the expressionsToPrecompute at the given index. + */ + com.google.protobuf.ByteString getExpressionsToPrecomputeBytes(int index); + } + + /** + * + * + *
            +   * Configuration parameters for the Custom Ranking feature.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams} + */ + public static final class CustomRankingParams extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams) + CustomRankingParamsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CustomRankingParams"); + } + + // Use CustomRankingParams.newBuilder() to construct. + private CustomRankingParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomRankingParams() { + expressionsToPrecompute_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CustomRankingParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CustomRankingParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams.Builder + .class); + } + + public static final int EXPRESSIONS_TO_PRECOMPUTE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList expressionsToPrecompute_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +     * Optional. A list of ranking expressions (see `ranking_expression` for the
            +     * syntax documentation) to evaluate. The evaluation results will be
            +     * returned in
            +     * `SearchResponse.SearchResult.rank_signals.precomputed_expression_values`
            +     * field.
            +     * 
            + * + * + * repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the expressionsToPrecompute. + */ + public com.google.protobuf.ProtocolStringList getExpressionsToPrecomputeList() { + return expressionsToPrecompute_; + } + + /** + * + * + *
            +     * Optional. A list of ranking expressions (see `ranking_expression` for the
            +     * syntax documentation) to evaluate. The evaluation results will be
            +     * returned in
            +     * `SearchResponse.SearchResult.rank_signals.precomputed_expression_values`
            +     * field.
            +     * 
            + * + * + * repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of expressionsToPrecompute. + */ + public int getExpressionsToPrecomputeCount() { + return expressionsToPrecompute_.size(); + } + + /** + * + * + *
            +     * Optional. A list of ranking expressions (see `ranking_expression` for the
            +     * syntax documentation) to evaluate. The evaluation results will be
            +     * returned in
            +     * `SearchResponse.SearchResult.rank_signals.precomputed_expression_values`
            +     * field.
            +     * 
            + * + * + * repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The expressionsToPrecompute at the given index. + */ + public java.lang.String getExpressionsToPrecompute(int index) { + return expressionsToPrecompute_.get(index); + } + + /** + * + * + *
            +     * Optional. A list of ranking expressions (see `ranking_expression` for the
            +     * syntax documentation) to evaluate. The evaluation results will be
            +     * returned in
            +     * `SearchResponse.SearchResult.rank_signals.precomputed_expression_values`
            +     * field.
            +     * 
            + * + * + * repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the expressionsToPrecompute at the given index. + */ + public com.google.protobuf.ByteString getExpressionsToPrecomputeBytes(int index) { + return expressionsToPrecompute_.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 < expressionsToPrecompute_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 1, expressionsToPrecompute_.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 < expressionsToPrecompute_.size(); i++) { + dataSize += computeStringSizeNoTag(expressionsToPrecompute_.getRaw(i)); + } + size += dataSize; + size += 1 * getExpressionsToPrecomputeList().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.v1beta.SearchRequest.CustomRankingParams)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams) obj; + + if (!getExpressionsToPrecomputeList().equals(other.getExpressionsToPrecomputeList())) + 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 (getExpressionsToPrecomputeCount() > 0) { + hash = (37 * hash) + EXPRESSIONS_TO_PRECOMPUTE_FIELD_NUMBER; + hash = (53 * hash) + getExpressionsToPrecomputeList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + 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.v1beta.SearchRequest.CustomRankingParams + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + parseFrom( + 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.v1beta.SearchRequest.CustomRankingParams + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Configuration parameters for the Custom Ranking feature.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams) + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CustomRankingParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CustomRankingParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + expressionsToPrecompute_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CustomRankingParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + expressionsToPrecompute_.makeImmutable(); + result.expressionsToPrecompute_ = expressionsToPrecompute_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + .getDefaultInstance()) return this; + if (!other.expressionsToPrecompute_.isEmpty()) { + if (expressionsToPrecompute_.isEmpty()) { + expressionsToPrecompute_ = other.expressionsToPrecompute_; + bitField0_ |= 0x00000001; + } else { + ensureExpressionsToPrecomputeIsMutable(); + expressionsToPrecompute_.addAll(other.expressionsToPrecompute_); + } + 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(); + ensureExpressionsToPrecomputeIsMutable(); + expressionsToPrecompute_.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 expressionsToPrecompute_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExpressionsToPrecomputeIsMutable() { + if (!expressionsToPrecompute_.isModifiable()) { + expressionsToPrecompute_ = + new com.google.protobuf.LazyStringArrayList(expressionsToPrecompute_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
            +       * Optional. A list of ranking expressions (see `ranking_expression` for the
            +       * syntax documentation) to evaluate. The evaluation results will be
            +       * returned in
            +       * `SearchResponse.SearchResult.rank_signals.precomputed_expression_values`
            +       * field.
            +       * 
            + * + * + * repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the expressionsToPrecompute. + */ + public com.google.protobuf.ProtocolStringList getExpressionsToPrecomputeList() { + expressionsToPrecompute_.makeImmutable(); + return expressionsToPrecompute_; + } + + /** + * + * + *
            +       * Optional. A list of ranking expressions (see `ranking_expression` for the
            +       * syntax documentation) to evaluate. The evaluation results will be
            +       * returned in
            +       * `SearchResponse.SearchResult.rank_signals.precomputed_expression_values`
            +       * field.
            +       * 
            + * + * + * repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of expressionsToPrecompute. + */ + public int getExpressionsToPrecomputeCount() { + return expressionsToPrecompute_.size(); + } + + /** + * + * + *
            +       * Optional. A list of ranking expressions (see `ranking_expression` for the
            +       * syntax documentation) to evaluate. The evaluation results will be
            +       * returned in
            +       * `SearchResponse.SearchResult.rank_signals.precomputed_expression_values`
            +       * field.
            +       * 
            + * + * + * repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The expressionsToPrecompute at the given index. + */ + public java.lang.String getExpressionsToPrecompute(int index) { + return expressionsToPrecompute_.get(index); + } + + /** + * + * + *
            +       * Optional. A list of ranking expressions (see `ranking_expression` for the
            +       * syntax documentation) to evaluate. The evaluation results will be
            +       * returned in
            +       * `SearchResponse.SearchResult.rank_signals.precomputed_expression_values`
            +       * field.
            +       * 
            + * + * + * repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the expressionsToPrecompute at the given index. + */ + public com.google.protobuf.ByteString getExpressionsToPrecomputeBytes(int index) { + return expressionsToPrecompute_.getByteString(index); + } + + /** + * + * + *
            +       * Optional. A list of ranking expressions (see `ranking_expression` for the
            +       * syntax documentation) to evaluate. The evaluation results will be
            +       * returned in
            +       * `SearchResponse.SearchResult.rank_signals.precomputed_expression_values`
            +       * field.
            +       * 
            + * + * + * repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The expressionsToPrecompute to set. + * @return This builder for chaining. + */ + public Builder setExpressionsToPrecompute(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsToPrecomputeIsMutable(); + expressionsToPrecompute_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. A list of ranking expressions (see `ranking_expression` for the
            +       * syntax documentation) to evaluate. The evaluation results will be
            +       * returned in
            +       * `SearchResponse.SearchResult.rank_signals.precomputed_expression_values`
            +       * field.
            +       * 
            + * + * + * repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The expressionsToPrecompute to add. + * @return This builder for chaining. + */ + public Builder addExpressionsToPrecompute(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsToPrecomputeIsMutable(); + expressionsToPrecompute_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. A list of ranking expressions (see `ranking_expression` for the
            +       * syntax documentation) to evaluate. The evaluation results will be
            +       * returned in
            +       * `SearchResponse.SearchResult.rank_signals.precomputed_expression_values`
            +       * field.
            +       * 
            + * + * + * repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The expressionsToPrecompute to add. + * @return This builder for chaining. + */ + public Builder addAllExpressionsToPrecompute(java.lang.Iterable values) { + ensureExpressionsToPrecomputeIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expressionsToPrecompute_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. A list of ranking expressions (see `ranking_expression` for the
            +       * syntax documentation) to evaluate. The evaluation results will be
            +       * returned in
            +       * `SearchResponse.SearchResult.rank_signals.precomputed_expression_values`
            +       * field.
            +       * 
            + * + * + * repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExpressionsToPrecompute() { + expressionsToPrecompute_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. A list of ranking expressions (see `ranking_expression` for the
            +       * syntax documentation) to evaluate. The evaluation results will be
            +       * returned in
            +       * `SearchResponse.SearchResult.rank_signals.precomputed_expression_values`
            +       * field.
            +       * 
            + * + * + * repeated string expressions_to_precompute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the expressionsToPrecompute to add. + * @return This builder for chaining. + */ + public Builder addExpressionsToPrecomputeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExpressionsToPrecomputeIsMutable(); + expressionsToPrecompute_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams) + private static final com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomRankingParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.SearchRequest.CustomRankingParams + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int SERVING_CONFIG_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object servingConfig_ = ""; + + /** + * + * + *
            +   * Required. The resource name of the Search serving config, such as
            +   * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
            +   * or
            +   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
            +   * This field is used to identify the serving configuration name, set
            +   * of models used to make the search.
            +   * 
            + * + * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
            +   * Required. The resource name of the Search serving config, such as
            +   * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
            +   * or
            +   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
            +   * This field is used to identify the serving configuration name, set
            +   * of models used to make the search.
            +   * 
            + * + * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.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 BRANCH_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object branch_ = ""; + + /** + * + * + *
            +   * The branch resource name, such as
            +   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
            +   *
            +   * Use `default_branch` as the branch ID or leave this field empty, to search
            +   * documents under the default branch.
            +   * 
            + * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * + * @return The branch. + */ + @java.lang.Override + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branch_ = s; + return s; + } + } + + /** + * + * + *
            +   * The branch resource name, such as
            +   * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
            +   *
            +   * Use `default_branch` as the branch ID or leave this field empty, to search
            +   * documents under the default branch.
            +   * 
            + * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for branch. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object query_ = ""; + + /** + * + * + *
            +   * Raw search query.
            +   * 
            + * + * string query = 3; + * + * @return The query. + */ + @java.lang.Override + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } + } + + /** + * + * + *
            +   * Raw search query.
            +   * 
            + * + * string query = 3; + * + * @return The bytes for query. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_CATEGORIES_FIELD_NUMBER = 63; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pageCategories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * Optional. The categories associated with a category page. Must be set for
            +   * category navigation queries to achieve good search quality. The format
            +   * should be the same as
            +   * [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category].
            +   * This field is the equivalent of the query for browse (navigation) queries.
            +   * It's used by the browse model when the query is empty.
            +   *
            +   * If the field is empty, it will not be used by the browse model.
            +   * If the field contains more than one element, only the first element will
            +   * be used.
            +   *
            +   * To represent full path of a category, use '>' character to separate
            +   * different hierarchies. If '>' is part of the category name, replace it with
            +   * other character(s).
            +   * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
            +   * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
            +   * > Founders Edition`
            +   * 
            + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pageCategories. + */ + public com.google.protobuf.ProtocolStringList getPageCategoriesList() { + return pageCategories_; + } + + /** + * + * + *
            +   * Optional. The categories associated with a category page. Must be set for
            +   * category navigation queries to achieve good search quality. The format
            +   * should be the same as
            +   * [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category].
            +   * This field is the equivalent of the query for browse (navigation) queries.
            +   * It's used by the browse model when the query is empty.
            +   *
            +   * If the field is empty, it will not be used by the browse model.
            +   * If the field contains more than one element, only the first element will
            +   * be used.
            +   *
            +   * To represent full path of a category, use '>' character to separate
            +   * different hierarchies. If '>' is part of the category name, replace it with
            +   * other character(s).
            +   * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
            +   * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
            +   * > Founders Edition`
            +   * 
            + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pageCategories. + */ + public int getPageCategoriesCount() { + return pageCategories_.size(); + } + + /** + * + * + *
            +   * Optional. The categories associated with a category page. Must be set for
            +   * category navigation queries to achieve good search quality. The format
            +   * should be the same as
            +   * [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category].
            +   * This field is the equivalent of the query for browse (navigation) queries.
            +   * It's used by the browse model when the query is empty.
            +   *
            +   * If the field is empty, it will not be used by the browse model.
            +   * If the field contains more than one element, only the first element will
            +   * be used.
            +   *
            +   * To represent full path of a category, use '>' character to separate
            +   * different hierarchies. If '>' is part of the category name, replace it with
            +   * other character(s).
            +   * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
            +   * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
            +   * > Founders Edition`
            +   * 
            + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + public java.lang.String getPageCategories(int index) { + return pageCategories_.get(index); + } + + /** + * + * + *
            +   * Optional. The categories associated with a category page. Must be set for
            +   * category navigation queries to achieve good search quality. The format
            +   * should be the same as
            +   * [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category].
            +   * This field is the equivalent of the query for browse (navigation) queries.
            +   * It's used by the browse model when the query is empty.
            +   *
            +   * If the field is empty, it will not be used by the browse model.
            +   * If the field contains more than one element, only the first element will
            +   * be used.
            +   *
            +   * To represent full path of a category, use '>' character to separate
            +   * different hierarchies. If '>' is part of the category name, replace it with
            +   * other character(s).
            +   * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
            +   * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
            +   * > Founders Edition`
            +   * 
            + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + public com.google.protobuf.ByteString getPageCategoriesBytes(int index) { + return pageCategories_.getByteString(index); + } + + public static final int IMAGE_QUERY_FIELD_NUMBER = 19; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery imageQuery_; + + /** + * + * + *
            +   * Raw image query.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * + * @return Whether the imageQuery field is set. + */ + @java.lang.Override + public boolean hasImageQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Raw image query.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * + * @return The imageQuery. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery getImageQuery() { + return imageQuery_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() + : imageQuery_; + } + + /** + * + * + *
            +   * Raw image query.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder + getImageQueryOrBuilder() { + return imageQuery_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() + : imageQuery_; + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 4; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
            +   * to return. The maximum allowed value depends on the data type. Values above
            +   * the maximum value are coerced to the maximum value.
            +   *
            +   * * Websites with basic indexing: Default `10`, Maximum `25`.
            +   * * Websites with advanced indexing: Default `25`, Maximum `50`.
            +   * * Other: Default `50`, Maximum `100`.
            +   *
            +   * If this field is negative, an  `INVALID_ARGUMENT` is returned.
            +   * 
            + * + * int32 page_size = 4; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * A page token received from a previous
            +   * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +   * call. Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +   * must match the call that provided the page token. Otherwise, an
            +   * `INVALID_ARGUMENT`  error is returned.
            +   * 
            + * + * string page_token = 5; + * + * @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; + } + } + + /** + * + * + *
            +   * A page token received from a previous
            +   * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +   * call. Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to
            +   * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +   * must match the call that provided the page token. Otherwise, an
            +   * `INVALID_ARGUMENT`  error is returned.
            +   * 
            + * + * string page_token = 5; + * + * @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 OFFSET_FIELD_NUMBER = 6; + private int offset_ = 0; + + /** + * + * + *
            +   * A 0-indexed integer that specifies the current offset (that is, starting
            +   * result location, amongst the
            +   * [Document][google.cloud.discoveryengine.v1beta.Document]s deemed by the API
            +   * as relevant) in search results. This field is only considered if
            +   * [page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
            +   * is unset.
            +   *
            +   * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
            +   *
            +   * A large offset may be capped to a reasonable threshold.
            +   * 
            + * + * int32 offset = 6; + * + * @return The offset. + */ + @java.lang.Override + 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") + private java.util.List + dataStoreSpecs_; + + /** + * + * + *
            +   * Specifications that define the specific
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +   * along with configurations for those data stores. This is only considered
            +   * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +   * data stores. For engines with a single data store, the specs directly under
            +   * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +   * be used.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + @java.lang.Override + public java.util.List + getDataStoreSpecsList() { + return dataStoreSpecs_; + } + + /** + * + * + *
            +   * Specifications that define the specific
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +   * along with configurations for those data stores. This is only considered
            +   * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +   * data stores. For engines with a single data store, the specs directly under
            +   * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +   * be used.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> + getDataStoreSpecsOrBuilderList() { + return dataStoreSpecs_; + } + + /** + * + * + *
            +   * Specifications that define the specific
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +   * along with configurations for those data stores. This is only considered
            +   * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +   * data stores. For engines with a single data store, the specs directly under
            +   * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +   * be used.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + @java.lang.Override + public int getDataStoreSpecsCount() { + return dataStoreSpecs_.size(); + } + + /** + * + * + *
            +   * Specifications that define the specific
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +   * along with configurations for those data stores. This is only considered
            +   * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +   * data stores. For engines with a single data store, the specs directly under
            +   * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +   * be used.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec getDataStoreSpecs( + int index) { + return dataStoreSpecs_.get(index); + } + + /** + * + * + *
            +   * Specifications that define the specific
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +   * along with configurations for those data stores. This is only considered
            +   * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +   * data stores. For engines with a single data store, the specs directly under
            +   * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +   * be used.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder + getDataStoreSpecsOrBuilder(int index) { + return dataStoreSpecs_.get(index); + } + + public static final int NUM_RESULTS_PER_DATA_STORE_FIELD_NUMBER = 65; + private int numResultsPerDataStore_ = 0; + + /** + * + * + *
            +   * Optional. The maximum number of results to retrieve from each data store.
            +   * If not specified, it will use the
            +   * [SearchRequest.DataStoreSpec.num_results][google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.num_results]
            +   * if provided, otherwise there is no limit.
            +   * 
            + * + * int32 num_results_per_data_store = 65 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The numResultsPerDataStore. + */ + @java.lang.Override + public int getNumResultsPerDataStore() { + return numResultsPerDataStore_; + } + + public static final int FILTER_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
            +   * The filter syntax consists of an expression language for constructing a
            +   * predicate from one or more fields of the documents being filtered. Filter
            +   * expression is case-sensitive.
            +   *
            +   * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +   *
            +   * Filtering in Vertex AI Search is done by mapping the LHS filter key to a
            +   * key property defined in the Vertex AI Search backend -- this mapping is
            +   * defined by the customer in their schema. For example a media customer might
            +   * have a field 'name' in their schema. In this case the filter would look
            +   * like this: filter --> name:'ANY("king kong")'
            +   *
            +   * For more information about filtering including syntax and filter
            +   * operators, see
            +   * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +   * 
            + * + * string filter = 7; + * + * @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; + } + } + + /** + * + * + *
            +   * The filter syntax consists of an expression language for constructing a
            +   * predicate from one or more fields of the documents being filtered. Filter
            +   * expression is case-sensitive.
            +   *
            +   * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +   *
            +   * Filtering in Vertex AI Search is done by mapping the LHS filter key to a
            +   * key property defined in the Vertex AI Search backend -- this mapping is
            +   * defined by the customer in their schema. For example a media customer might
            +   * have a field 'name' in their schema. In this case the filter would look
            +   * like this: filter --> name:'ANY("king kong")'
            +   *
            +   * For more information about filtering including syntax and filter
            +   * operators, see
            +   * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +   * 
            + * + * string filter = 7; + * + * @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 CANONICAL_FILTER_FIELD_NUMBER = 29; + + @SuppressWarnings("serial") + private volatile java.lang.Object canonicalFilter_ = ""; + + /** + * + * + *
            +   * The default filter that is applied when a user performs a search without
            +   * checking any filters on the search page.
            +   *
            +   * The filter applied to every search request when quality improvement such as
            +   * query expansion is needed. In the case a query does not have a sufficient
            +   * amount of results this filter will be used to determine whether or not to
            +   * enable the query expansion flow. The original filter will still be used for
            +   * the query expanded search.
            +   * This field is strongly recommended to achieve high search quality.
            +   *
            +   * For more information about filter syntax, see
            +   * [SearchRequest.filter][google.cloud.discoveryengine.v1beta.SearchRequest.filter].
            +   * 
            + * + * string canonical_filter = 29; + * + * @return The canonicalFilter. + */ + @java.lang.Override + public java.lang.String getCanonicalFilter() { + java.lang.Object ref = canonicalFilter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + canonicalFilter_ = s; + return s; + } + } + + /** + * + * + *
            +   * The default filter that is applied when a user performs a search without
            +   * checking any filters on the search page.
            +   *
            +   * The filter applied to every search request when quality improvement such as
            +   * query expansion is needed. In the case a query does not have a sufficient
            +   * amount of results this filter will be used to determine whether or not to
            +   * enable the query expansion flow. The original filter will still be used for
            +   * the query expanded search.
            +   * This field is strongly recommended to achieve high search quality.
            +   *
            +   * For more information about filter syntax, see
            +   * [SearchRequest.filter][google.cloud.discoveryengine.v1beta.SearchRequest.filter].
            +   * 
            + * + * string canonical_filter = 29; + * + * @return The bytes for canonicalFilter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCanonicalFilterBytes() { + java.lang.Object ref = canonicalFilter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + canonicalFilter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +   * The order in which documents are returned. Documents can be ordered by
            +   * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
            +   * object. Leave it unset if ordered by relevance. `order_by` expression is
            +   * case-sensitive.
            +   *
            +   * For more information on ordering the website search results, see
            +   * [Order web search
            +   * results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results).
            +   * For more information on ordering the healthcare search results, see
            +   * [Order healthcare search
            +   * results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results).
            +   * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            +   * 
            + * + * string order_by = 8; + * + * @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; + } + } + + /** + * + * + *
            +   * The order in which documents are returned. Documents can be ordered by
            +   * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
            +   * object. Leave it unset if ordered by relevance. `order_by` expression is
            +   * case-sensitive.
            +   *
            +   * For more information on ordering the website search results, see
            +   * [Order web search
            +   * results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results).
            +   * For more information on ordering the healthcare search results, see
            +   * [Order healthcare search
            +   * results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results).
            +   * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            +   * 
            + * + * string order_by = 8; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_INFO_FIELD_NUMBER = 21; + private com.google.cloud.discoveryengine.v1beta.UserInfo userInfo_; + + /** + * + * + *
            +   * Information about the end user.
            +   * Highly recommended for analytics and personalization.
            +   * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            +   * is used to deduce `device_type` for analytics.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; + * + * @return Whether the userInfo field is set. + */ + @java.lang.Override + public boolean hasUserInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Information about the end user.
            +   * Highly recommended for analytics and personalization.
            +   * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            +   * is used to deduce `device_type` for analytics.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; + * + * @return The userInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserInfo getUserInfo() { + return userInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() + : userInfo_; + } + + /** + * + * + *
            +   * Information about the end user.
            +   * Highly recommended for analytics and personalization.
            +   * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            +   * is used to deduce `device_type` for analytics.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBuilder() { + return userInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() + : userInfo_; + } + + public static final int LANGUAGE_CODE_FIELD_NUMBER = 35; + + @SuppressWarnings("serial") + private volatile java.lang.Object languageCode_ = ""; + + /** + * + * + *
            +   * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
            +   * information, see [Standard
            +   * fields](https://cloud.google.com/apis/design/standard_fields). This field
            +   * helps to better interpret the query. If a value isn't specified, the query
            +   * language code is automatically detected, which may not be accurate.
            +   * 
            + * + * string language_code = 35; + * + * @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; + } + } + + /** + * + * + *
            +   * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
            +   * information, see [Standard
            +   * fields](https://cloud.google.com/apis/design/standard_fields). This field
            +   * helps to better interpret the query. If a value isn't specified, the query
            +   * language code is automatically detected, which may not be accurate.
            +   * 
            + * + * string language_code = 35; + * + * @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 REGION_CODE_FIELD_NUMBER = 36; + + @SuppressWarnings("serial") + private volatile java.lang.Object regionCode_ = ""; + + /** + * + * + *
            +   * The Unicode country/region code (CLDR) of a location, such as "US" and
            +   * "419". For more information, see [Standard
            +   * fields](https://cloud.google.com/apis/design/standard_fields). If set,
            +   * then results will be boosted based on the region_code provided.
            +   * 
            + * + * string region_code = 36; + * + * @return The regionCode. + */ + @java.lang.Override + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } + } + + /** + * + * + *
            +   * The Unicode country/region code (CLDR) of a location, such as "US" and
            +   * "419". For more information, see [Standard
            +   * fields](https://cloud.google.com/apis/design/standard_fields). If set,
            +   * then results will be boosted based on the region_code provided.
            +   * 
            + * + * string region_code = 36; + * + * @return The bytes for regionCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FACET_SPECS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List + facetSpecs_; + + /** + * + * + *
            +   * Facet specifications for faceted search. If empty, no facets are returned.
            +   *
            +   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +   * error is returned.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; + * + */ + @java.lang.Override + public java.util.List + getFacetSpecsList() { + return facetSpecs_; + } + + /** + * + * + *
            +   * Facet specifications for faceted search. If empty, no facets are returned.
            +   *
            +   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +   * error is returned.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder> + getFacetSpecsOrBuilderList() { + return facetSpecs_; + } + + /** + * + * + *
            +   * Facet specifications for faceted search. If empty, no facets are returned.
            +   *
            +   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +   * error is returned.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; + * + */ + @java.lang.Override + public int getFacetSpecsCount() { + return facetSpecs_.size(); + } + + /** + * + * + *
            +   * Facet specifications for faceted search. If empty, no facets are returned.
            +   *
            +   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +   * error is returned.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec getFacetSpecs(int index) { + return facetSpecs_.get(index); + } + + /** + * + * + *
            +   * Facet specifications for faceted search. If empty, no facets are returned.
            +   *
            +   * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +   * error is returned.
            +   * 
            + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder + getFacetSpecsOrBuilder(int index) { + return facetSpecs_.get(index); + } + + public static final int BOOST_SPEC_FIELD_NUMBER = 10; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boostSpec_; + + /** + * + * + *
            +   * Boost specification to boost certain documents.
            +   * For more information on boosting, see
            +   * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + * + * @return Whether the boostSpec field is set. + */ + @java.lang.Override + public boolean hasBoostSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Boost specification to boost certain documents.
            +   * For more information on boosting, see
            +   * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + * + * @return The boostSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostSpec() { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } + + /** + * + * + *
            +   * Boost specification to boost certain documents.
            +   * For more information on boosting, see
            +   * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder + getBoostSpecOrBuilder() { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; + } + + public static final int PARAMS_FIELD_NUMBER = 11; + + private static final class ParamsDefaultEntryHolder { + static final com.google.protobuf.MapEntry + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Value.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField params_; + + private com.google.protobuf.MapField + internalGetParams() { + if (params_ == null) { + return com.google.protobuf.MapField.emptyMapField(ParamsDefaultEntryHolder.defaultEntry); + } + return params_; + } + + public int getParamsCount() { + return internalGetParams().getMap().size(); + } + + /** + * + * + *
            +   * Additional search parameters.
            +   *
            +   * For public website search only, supported values are:
            +   *
            +   * * `user_country_code`: string. Default empty. If set to non-empty, results
            +   * are restricted or boosted based on the location provided.
            +   * For example, `user_country_code: "au"`
            +   *
            +   * For available codes see [Country
            +   * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
            +   *
            +   * * `search_type`: double. Default empty. Enables non-webpage searching
            +   * depending on the value. The only valid non-default value is 1,
            +   * which enables image searching.
            +   * For example, `search_type: 1`
            +   * 
            + * + * map<string, .google.protobuf.Value> params = 11; + */ + @java.lang.Override + public boolean containsParams(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetParams().getMap().containsKey(key); + } + + /** Use {@link #getParamsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParams() { + return getParamsMap(); + } + + /** + * + * + *
            +   * Additional search parameters.
            +   *
            +   * For public website search only, supported values are:
            +   *
            +   * * `user_country_code`: string. Default empty. If set to non-empty, results
            +   * are restricted or boosted based on the location provided.
            +   * For example, `user_country_code: "au"`
            +   *
            +   * For available codes see [Country
            +   * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
            +   *
            +   * * `search_type`: double. Default empty. Enables non-webpage searching
            +   * depending on the value. The only valid non-default value is 1,
            +   * which enables image searching.
            +   * For example, `search_type: 1`
            +   * 
            + * + * map<string, .google.protobuf.Value> params = 11; + */ + @java.lang.Override + public java.util.Map getParamsMap() { + return internalGetParams().getMap(); + } + + /** + * + * + *
            +   * Additional search parameters.
            +   *
            +   * For public website search only, supported values are:
            +   *
            +   * * `user_country_code`: string. Default empty. If set to non-empty, results
            +   * are restricted or boosted based on the location provided.
            +   * For example, `user_country_code: "au"`
            +   *
            +   * For available codes see [Country
            +   * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
            +   *
            +   * * `search_type`: double. Default empty. Enables non-webpage searching
            +   * depending on the value. The only valid non-default value is 1,
            +   * which enables image searching.
            +   * For example, `search_type: 1`
            +   * 
            + * + * map<string, .google.protobuf.Value> params = 11; + */ + @java.lang.Override + public /* nullable */ com.google.protobuf.Value getParamsOrDefault( + java.lang.String key, + /* nullable */ + com.google.protobuf.Value defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParams().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Additional search parameters.
            +   *
            +   * For public website search only, supported values are:
            +   *
            +   * * `user_country_code`: string. Default empty. If set to non-empty, results
            +   * are restricted or boosted based on the location provided.
            +   * For example, `user_country_code: "au"`
            +   *
            +   * For available codes see [Country
            +   * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
            +   *
            +   * * `search_type`: double. Default empty. Enables non-webpage searching
            +   * depending on the value. The only valid non-default value is 1,
            +   * which enables image searching.
            +   * For example, `search_type: 1`
            +   * 
            + * + * map<string, .google.protobuf.Value> params = 11; + */ + @java.lang.Override + public com.google.protobuf.Value getParamsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetParams().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int QUERY_EXPANSION_SPEC_FIELD_NUMBER = 13; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec + queryExpansionSpec_; + + /** + * + * + *
            +   * The query expansion specification that specifies the conditions under which
            +   * query expansion occurs.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + * + * + * @return Whether the queryExpansionSpec field is set. + */ + @java.lang.Override + public boolean hasQueryExpansionSpec() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * The query expansion specification that specifies the conditions under which
            +   * query expansion occurs.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + * + * + * @return The queryExpansionSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec + getQueryExpansionSpec() { + return queryExpansionSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec + .getDefaultInstance() + : queryExpansionSpec_; + } + + /** + * + * + *
            +   * The query expansion specification that specifies the conditions under which
            +   * query expansion occurs.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder + getQueryExpansionSpecOrBuilder() { + return queryExpansionSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec + .getDefaultInstance() + : queryExpansionSpec_; + } + + public static final int SPELL_CORRECTION_SPEC_FIELD_NUMBER = 14; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec + spellCorrectionSpec_; + + /** + * + * + *
            +   * The spell correction specification that specifies the mode under
            +   * which spell correction takes effect.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * + * + * @return Whether the spellCorrectionSpec field is set. + */ + @java.lang.Override + public boolean hasSpellCorrectionSpec() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +   * The spell correction specification that specifies the mode under
            +   * which spell correction takes effect.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * + * + * @return The spellCorrectionSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec + getSpellCorrectionSpec() { + return spellCorrectionSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec + .getDefaultInstance() + : spellCorrectionSpec_; + } + + /** + * + * + *
            +   * The spell correction specification that specifies the mode under
            +   * which spell correction takes effect.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder + getSpellCorrectionSpecOrBuilder() { + return spellCorrectionSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec + .getDefaultInstance() + : spellCorrectionSpec_; + } + + public static final int USER_PSEUDO_ID_FIELD_NUMBER = 15; + + @SuppressWarnings("serial") + private volatile java.lang.Object userPseudoId_ = ""; + + /** + * + * + *
            +   * Optional. A unique identifier for tracking visitors. For example, this
            +   * could be implemented with an HTTP cookie, which should be able to uniquely
            +   * identify a visitor on a single device. This unique identifier should not
            +   * change if the visitor logs in or out of the website.
            +   *
            +   * This field should NOT have a fixed value such as `unknown_visitor`.
            +   *
            +   * This should be the same identifier as
            +   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +   * and
            +   * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.CompleteQueryRequest.user_pseudo_id]
            +   *
            +   * The field must be a UTF-8 encoded string with a length limit of 128
            +   * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
            +   * 
            + * + * string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userPseudoId. + */ + @java.lang.Override + public java.lang.String getUserPseudoId() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPseudoId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. A unique identifier for tracking visitors. For example, this
            +   * could be implemented with an HTTP cookie, which should be able to uniquely
            +   * identify a visitor on a single device. This unique identifier should not
            +   * change if the visitor logs in or out of the website.
            +   *
            +   * This field should NOT have a fixed value such as `unknown_visitor`.
            +   *
            +   * This should be the same identifier as
            +   * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +   * and
            +   * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.CompleteQueryRequest.user_pseudo_id]
            +   *
            +   * The field must be a UTF-8 encoded string with a length limit of 128
            +   * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
            +   * 
            + * + * string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userPseudoId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserPseudoIdBytes() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPseudoId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_SEARCH_SPEC_FIELD_NUMBER = 24; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + contentSearchSpec_; + + /** + * + * + *
            +   * A specification for configuring the behavior of content search.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; + * + * + * @return Whether the contentSearchSpec field is set. + */ + @java.lang.Override + public boolean hasContentSearchSpec() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +   * A specification for configuring the behavior of content search.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; + * + * + * @return The contentSearchSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + getContentSearchSpec() { + return contentSearchSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .getDefaultInstance() + : contentSearchSpec_; + } + + /** + * + * + *
            +   * A specification for configuring the behavior of content search.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder + getContentSearchSpecOrBuilder() { + return contentSearchSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .getDefaultInstance() + : contentSearchSpec_; + } + + public static final int EMBEDDING_SPEC_FIELD_NUMBER = 23; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embeddingSpec_; + + /** + * + * + *
            +   * Uses the provided embedding to do additional semantic document retrieval.
            +   * The retrieval is based on the dot product of
            +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            +   * and the document embedding that is provided in
            +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            +   *
            +   * If
            +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            +   * is not provided, it will use
            +   * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * + * + * @return Whether the embeddingSpec field is set. + */ + @java.lang.Override + public boolean hasEmbeddingSpec() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +   * Uses the provided embedding to do additional semantic document retrieval.
            +   * The retrieval is based on the dot product of
            +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            +   * and the document embedding that is provided in
            +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            +   *
            +   * If
            +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            +   * is not provided, it will use
            +   * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * + * + * @return The embeddingSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec getEmbeddingSpec() { + return embeddingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.getDefaultInstance() + : embeddingSpec_; + } + + /** + * + * + *
            +   * Uses the provided embedding to do additional semantic document retrieval.
            +   * The retrieval is based on the dot product of
            +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            +   * and the document embedding that is provided in
            +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            +   *
            +   * If
            +   * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            +   * is not provided, it will use
            +   * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder + getEmbeddingSpecOrBuilder() { + return embeddingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.getDefaultInstance() + : embeddingSpec_; + } + + public static final int RANKING_EXPRESSION_FIELD_NUMBER = 26; + + @SuppressWarnings("serial") + private volatile java.lang.Object rankingExpression_ = ""; + + /** + * + * + *
            +   * Optional. The ranking expression controls the customized ranking on
            +   * retrieval documents. This overrides
            +   * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression].
            +   * The syntax and supported features depend on the
            +   * `ranking_expression_backend` value. If `ranking_expression_backend` is not
            +   * provided, it defaults to `RANK_BY_EMBEDDING`.
            +   *
            +   * If
            +   * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend]
            +   * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
            +   * function or multiple functions that are joined by "+".
            +   *
            +   * * ranking_expression = function, { " + ", function };
            +   *
            +   * Supported functions:
            +   *
            +   * * double * relevance_score
            +   * * double * dotProduct(embedding_field_path)
            +   *
            +   * Function variables:
            +   *
            +   * * `relevance_score`: pre-defined keywords, used for measure relevance
            +   * between query and document.
            +   * * `embedding_field_path`: the document embedding field
            +   * used with query embedding vector.
            +   * * `dotProduct`: embedding function between `embedding_field_path` and
            +   * query embedding vector.
            +   *
            +   * Example ranking expression:
            +   *
            +   * If document has an embedding field doc_embedding, the ranking expression
            +   * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
            +   *
            +   * If
            +   * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend]
            +   * is set to `RANK_BY_FORMULA`, the following expression types (and
            +   * combinations of those chained using + or
            +   * * operators) are supported:
            +   *
            +   * * `double`
            +   * * `signal`
            +   * * `log(signal)`
            +   * * `exp(signal)`
            +   * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
            +   * argument being a denominator constant.
            +   * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
            +   * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
            +   * signal2 | double, else returns signal1.
            +   *
            +   * Here are a few examples of ranking formulas that use the supported
            +   * ranking expression types:
            +   *
            +   * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
            +   * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
            +   * `semantic_smilarity_score` adjustment.
            +   * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
            +   * is_nan(keyword_similarity_score)` -- rank by the exponent of
            +   * `semantic_similarity_score` filling the value with 0 if it's NaN, also
            +   * add constant 0.3 adjustment to the final score if
            +   * `semantic_similarity_score` is NaN.
            +   * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
            +   * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
            +   * of `keyword_similarity_score` with slight adjustment of reciprocal rank
            +   * of `semantic_smilarity_score`.
            +   *
            +   * The following signals are supported:
            +   *
            +   * * `semantic_similarity_score`: semantic similarity adjustment that is
            +   * calculated using the embeddings generated by a proprietary Google model.
            +   * This score determines how semantically similar a search query is to a
            +   * document.
            +   * * `keyword_similarity_score`: keyword match adjustment uses the Best
            +   * Match 25 (BM25) ranking function. This score is calculated using a
            +   * probabilistic model to estimate the probability that a document is
            +   * relevant to a given query.
            +   * * `relevance_score`: semantic relevance adjustment that uses a
            +   * proprietary Google model to determine the meaning and intent behind a
            +   * user's query in context with the content in the documents.
            +   * * `pctr_rank`: predicted conversion rate adjustment as a rank use
            +   * predicted Click-through rate (pCTR) to gauge the relevance and
            +   * attractiveness of a search result from a user's perspective. A higher
            +   * pCTR suggests that the result is more likely to satisfy the user's query
            +   * and intent, making it a valuable signal for ranking.
            +   * * `freshness_rank`: freshness adjustment as a rank
            +   * * `document_age`: The time in hours elapsed since the document was last
            +   * updated, a floating-point number (e.g., 0.25 means 15 minutes).
            +   * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
            +   * Google model to determine the keyword-based overlap between the query and
            +   * the document.
            +   * * `base_rank`: the default rank of the result
            +   * * `media_actor_match`: whether the media actor matches the query
            +   * * `media_director_match`: whether the media director matches the query
            +   * * `media_genre_match`: whether the media genre matches the query
            +   * * `media_language_match`: whether the media language matches the query
            +   * * `media_title_match`: whether the media title matches the query
            +   * * `media_prefix_similarity_rank`: prefix similarity rank for media
            +   * results
            +   * * `media_semantic_similarity_rank`: semantic similarity rank for media
            +   * results
            +   * 
            + * + * string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rankingExpression. + */ + @java.lang.Override + public java.lang.String getRankingExpression() { + java.lang.Object ref = rankingExpression_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rankingExpression_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The ranking expression controls the customized ranking on
            +   * retrieval documents. This overrides
            +   * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression].
            +   * The syntax and supported features depend on the
            +   * `ranking_expression_backend` value. If `ranking_expression_backend` is not
            +   * provided, it defaults to `RANK_BY_EMBEDDING`.
            +   *
            +   * If
            +   * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend]
            +   * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
            +   * function or multiple functions that are joined by "+".
            +   *
            +   * * ranking_expression = function, { " + ", function };
            +   *
            +   * Supported functions:
            +   *
            +   * * double * relevance_score
            +   * * double * dotProduct(embedding_field_path)
            +   *
            +   * Function variables:
            +   *
            +   * * `relevance_score`: pre-defined keywords, used for measure relevance
            +   * between query and document.
            +   * * `embedding_field_path`: the document embedding field
            +   * used with query embedding vector.
            +   * * `dotProduct`: embedding function between `embedding_field_path` and
            +   * query embedding vector.
            +   *
            +   * Example ranking expression:
            +   *
            +   * If document has an embedding field doc_embedding, the ranking expression
            +   * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
            +   *
            +   * If
            +   * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend]
            +   * is set to `RANK_BY_FORMULA`, the following expression types (and
            +   * combinations of those chained using + or
            +   * * operators) are supported:
            +   *
            +   * * `double`
            +   * * `signal`
            +   * * `log(signal)`
            +   * * `exp(signal)`
            +   * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
            +   * argument being a denominator constant.
            +   * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
            +   * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
            +   * signal2 | double, else returns signal1.
            +   *
            +   * Here are a few examples of ranking formulas that use the supported
            +   * ranking expression types:
            +   *
            +   * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
            +   * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
            +   * `semantic_smilarity_score` adjustment.
            +   * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
            +   * is_nan(keyword_similarity_score)` -- rank by the exponent of
            +   * `semantic_similarity_score` filling the value with 0 if it's NaN, also
            +   * add constant 0.3 adjustment to the final score if
            +   * `semantic_similarity_score` is NaN.
            +   * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
            +   * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
            +   * of `keyword_similarity_score` with slight adjustment of reciprocal rank
            +   * of `semantic_smilarity_score`.
            +   *
            +   * The following signals are supported:
            +   *
            +   * * `semantic_similarity_score`: semantic similarity adjustment that is
            +   * calculated using the embeddings generated by a proprietary Google model.
            +   * This score determines how semantically similar a search query is to a
            +   * document.
            +   * * `keyword_similarity_score`: keyword match adjustment uses the Best
            +   * Match 25 (BM25) ranking function. This score is calculated using a
            +   * probabilistic model to estimate the probability that a document is
            +   * relevant to a given query.
            +   * * `relevance_score`: semantic relevance adjustment that uses a
            +   * proprietary Google model to determine the meaning and intent behind a
            +   * user's query in context with the content in the documents.
            +   * * `pctr_rank`: predicted conversion rate adjustment as a rank use
            +   * predicted Click-through rate (pCTR) to gauge the relevance and
            +   * attractiveness of a search result from a user's perspective. A higher
            +   * pCTR suggests that the result is more likely to satisfy the user's query
            +   * and intent, making it a valuable signal for ranking.
            +   * * `freshness_rank`: freshness adjustment as a rank
            +   * * `document_age`: The time in hours elapsed since the document was last
            +   * updated, a floating-point number (e.g., 0.25 means 15 minutes).
            +   * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
            +   * Google model to determine the keyword-based overlap between the query and
            +   * the document.
            +   * * `base_rank`: the default rank of the result
            +   * * `media_actor_match`: whether the media actor matches the query
            +   * * `media_director_match`: whether the media director matches the query
            +   * * `media_genre_match`: whether the media genre matches the query
            +   * * `media_language_match`: whether the media language matches the query
            +   * * `media_title_match`: whether the media title matches the query
            +   * * `media_prefix_similarity_rank`: prefix similarity rank for media
            +   * results
            +   * * `media_semantic_similarity_rank`: semantic similarity rank for media
            +   * results
            +   * 
            + * + * string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for rankingExpression. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRankingExpressionBytes() { + java.lang.Object ref = rankingExpression_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rankingExpression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RANKING_EXPRESSION_BACKEND_FIELD_NUMBER = 53; + private int rankingExpressionBackend_ = 0; + + /** + * + * + *
            +   * Optional. The backend to use for the ranking expression evaluation.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for rankingExpressionBackend. + */ + @java.lang.Override + public int getRankingExpressionBackendValue() { + return rankingExpressionBackend_; + } + + /** + * + * + *
            +   * Optional. The backend to use for the ranking expression evaluation.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rankingExpressionBackend. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend + getRankingExpressionBackend() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend.forNumber( + rankingExpressionBackend_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend + .UNRECOGNIZED + : result; + } + + public static final int SAFE_SEARCH_FIELD_NUMBER = 20; + private boolean safeSearch_ = false; + + /** + * + * + *
            +   * Whether to turn on safe search. This is only supported for
            +   * website search.
            +   * 
            + * + * bool safe_search = 20; + * + * @return The safeSearch. + */ + @java.lang.Override + public boolean getSafeSearch() { + return safeSearch_; + } + + public static final int USER_LABELS_FIELD_NUMBER = 22; + + private static final class UserLabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_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 = 22; + */ + @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 = 22; + */ + @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 = 22; + */ + @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 = 22; + */ + @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 static final int NATURAL_LANGUAGE_QUERY_UNDERSTANDING_SPEC_FIELD_NUMBER = 28; + private com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + naturalLanguageQueryUnderstandingSpec_; + + /** + * + * + *
            +   * Optional. Config for natural language query understanding capabilities,
            +   * such as extracting structured field filters from the query. Refer to [this
            +   * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
            +   * for more information.
            +   * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            +   * natural language query understanding will be done.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the naturalLanguageQueryUnderstandingSpec field is set. + */ + @java.lang.Override + public boolean hasNaturalLanguageQueryUnderstandingSpec() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
            +   * Optional. Config for natural language query understanding capabilities,
            +   * such as extracting structured field filters from the query. Refer to [this
            +   * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
            +   * for more information.
            +   * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            +   * natural language query understanding will be done.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The naturalLanguageQueryUnderstandingSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + getNaturalLanguageQueryUnderstandingSpec() { + return naturalLanguageQueryUnderstandingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() + : naturalLanguageQueryUnderstandingSpec_; + } + + /** + * + * + *
            +   * Optional. Config for natural language query understanding capabilities,
            +   * such as extracting structured field filters from the query. Refer to [this
            +   * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
            +   * for more information.
            +   * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            +   * natural language query understanding will be done.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder + getNaturalLanguageQueryUnderstandingSpecOrBuilder() { + return naturalLanguageQueryUnderstandingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() + : naturalLanguageQueryUnderstandingSpec_; + } + + public static final int SEARCH_AS_YOU_TYPE_SPEC_FIELD_NUMBER = 31; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + searchAsYouTypeSpec_; + + /** + * + * + *
            +   * Search as you type configuration. Only supported for the
            +   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +   * vertical.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + * + * @return Whether the searchAsYouTypeSpec field is set. + */ + @java.lang.Override + public boolean hasSearchAsYouTypeSpec() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
            +   * Search as you type configuration. Only supported for the
            +   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +   * vertical.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + * + * @return The searchAsYouTypeSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + getSearchAsYouTypeSpec() { + return searchAsYouTypeSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + .getDefaultInstance() + : searchAsYouTypeSpec_; + } + + /** + * + * + *
            +   * Search as you type configuration. Only supported for the
            +   * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +   * vertical.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder + getSearchAsYouTypeSpecOrBuilder() { + return searchAsYouTypeSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + .getDefaultInstance() + : searchAsYouTypeSpec_; + } + + public static final int DISPLAY_SPEC_FIELD_NUMBER = 38; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec displaySpec_; + + /** + * + * + *
            +   * Optional. Config for display feature, like match highlighting on search
            +   * results.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the displaySpec field is set. + */ + @java.lang.Override + public boolean hasDisplaySpec() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
            +   * Optional. Config for display feature, like match highlighting on search
            +   * results.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The displaySpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec getDisplaySpec() { + return displaySpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.getDefaultInstance() + : displaySpec_; + } + + /** + * + * + *
            +   * Optional. Config for display feature, like match highlighting on search
            +   * results.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpecOrBuilder + getDisplaySpecOrBuilder() { + return displaySpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.getDefaultInstance() + : displaySpec_; + } + + public static final int CROWDING_SPECS_FIELD_NUMBER = 40; + + @SuppressWarnings("serial") + private java.util.List + crowdingSpecs_; + + /** + * + * + *
            +   * Optional. Crowding specifications for improving result diversity.
            +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +   * each unique combination of the `field` values, and max_count will be the
            +   * maximum value of `max_count` across all CrowdingSpecs.
            +   * For example, if the first CrowdingSpec has `field` = "color" and
            +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +   * `max_count` = 2, then after 3 documents that share the same color AND size
            +   * have been returned, subsequent ones should be
            +   * removed or demoted.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCrowdingSpecsList() { + return crowdingSpecs_; + } + + /** + * + * + *
            +   * Optional. Crowding specifications for improving result diversity.
            +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +   * each unique combination of the `field` values, and max_count will be the
            +   * maximum value of `max_count` across all CrowdingSpecs.
            +   * For example, if the first CrowdingSpec has `field` = "color" and
            +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +   * `max_count` = 2, then after 3 documents that share the same color AND size
            +   * have been returned, subsequent ones should be
            +   * removed or demoted.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpecOrBuilder> + getCrowdingSpecsOrBuilderList() { + return crowdingSpecs_; + } + + /** + * + * + *
            +   * Optional. Crowding specifications for improving result diversity.
            +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +   * each unique combination of the `field` values, and max_count will be the
            +   * maximum value of `max_count` across all CrowdingSpecs.
            +   * For example, if the first CrowdingSpec has `field` = "color" and
            +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +   * `max_count` = 2, then after 3 documents that share the same color AND size
            +   * have been returned, subsequent ones should be
            +   * removed or demoted.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCrowdingSpecsCount() { + return crowdingSpecs_.size(); + } + + /** + * + * + *
            +   * Optional. Crowding specifications for improving result diversity.
            +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +   * each unique combination of the `field` values, and max_count will be the
            +   * maximum value of `max_count` across all CrowdingSpecs.
            +   * For example, if the first CrowdingSpec has `field` = "color" and
            +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +   * `max_count` = 2, then after 3 documents that share the same color AND size
            +   * have been returned, subsequent ones should be
            +   * removed or demoted.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec getCrowdingSpecs( + int index) { + return crowdingSpecs_.get(index); + } + + /** + * + * + *
            +   * Optional. Crowding specifications for improving result diversity.
            +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +   * each unique combination of the `field` values, and max_count will be the
            +   * maximum value of `max_count` across all CrowdingSpecs.
            +   * For example, if the first CrowdingSpec has `field` = "color" and
            +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +   * `max_count` = 2, then after 3 documents that share the same color AND size
            +   * have been returned, subsequent ones should be
            +   * removed or demoted.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpecOrBuilder + getCrowdingSpecsOrBuilder(int index) { + return crowdingSpecs_.get(index); + } + + public static final int SESSION_FIELD_NUMBER = 41; + + @SuppressWarnings("serial") + private volatile java.lang.Object session_ = ""; + + /** + * + * + *
            +   * The session resource name. Optional.
            +   *
            +   * Session allows users to do multi-turn /search API calls or coordination
            +   * between /search API calls and /answer API calls.
            +   *
            +   * Example #1 (multi-turn /search API calls):
            +   * Call /search API with the session ID generated in the first call.
            +   * Here, the previous search query gets considered in query
            +   * standing. I.e., if the first query is "How did Alphabet do in 2022?"
            +   * and the current query is "How about 2023?", the current query will
            +   * be interpreted as "How did Alphabet do in 2023?".
            +   *
            +   * Example #2 (coordination between /search API calls and /answer API calls):
            +   * Call /answer API with the session ID generated in the first call.
            +   * Here, the answer generation happens in the context of the search
            +   * results from the first search call.
            +   * 
            + * + * string session = 41 [(.google.api.resource_reference) = { ... } + * + * @return The session. + */ + @java.lang.Override + public java.lang.String getSession() { + java.lang.Object ref = session_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + session_ = s; + return s; + } + } + + /** + * + * + *
            +   * The session resource name. Optional.
            +   *
            +   * Session allows users to do multi-turn /search API calls or coordination
            +   * between /search API calls and /answer API calls.
            +   *
            +   * Example #1 (multi-turn /search API calls):
            +   * Call /search API with the session ID generated in the first call.
            +   * Here, the previous search query gets considered in query
            +   * standing. I.e., if the first query is "How did Alphabet do in 2022?"
            +   * and the current query is "How about 2023?", the current query will
            +   * be interpreted as "How did Alphabet do in 2023?".
            +   *
            +   * Example #2 (coordination between /search API calls and /answer API calls):
            +   * Call /answer API with the session ID generated in the first call.
            +   * Here, the answer generation happens in the context of the search
            +   * results from the first search call.
            +   * 
            + * + * string session = 41 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for session. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSessionBytes() { + java.lang.Object ref = session_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + session_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SESSION_SPEC_FIELD_NUMBER = 42; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec sessionSpec_; + + /** + * + * + *
            +   * Session specification.
            +   *
            +   * Can be used only when `session` is set.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + * @return Whether the sessionSpec field is set. + */ + @java.lang.Override + public boolean hasSessionSpec() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
            +   * Session specification.
            +   *
            +   * Can be used only when `session` is set.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + * @return The sessionSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec getSessionSpec() { + return sessionSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.getDefaultInstance() + : sessionSpec_; + } + + /** + * + * + *
            +   * Session specification.
            +   *
            +   * Can be used only when `session` is set.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpecOrBuilder + getSessionSpecOrBuilder() { + return sessionSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.getDefaultInstance() + : sessionSpec_; + } + + public static final int RELEVANCE_THRESHOLD_FIELD_NUMBER = 44; + private int relevanceThreshold_ = 0; + + /** + * + * + *
            +   * The global relevance threshold of the search results.
            +   *
            +   * Defaults to Google defined threshold, leveraging a balance of
            +   * precision and recall to deliver both highly accurate results and
            +   * comprehensive coverage of relevant information.
            +   *
            +   * If more granular relevance filtering is required, use the
            +   * `relevance_filter_spec` instead.
            +   *
            +   * This feature is not supported for healthcare search.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 44; + * + * + * @return The enum numeric value on the wire for relevanceThreshold. + */ + @java.lang.Override + public int getRelevanceThresholdValue() { + return relevanceThreshold_; + } + + /** + * + * + *
            +   * The global relevance threshold of the search results.
            +   *
            +   * Defaults to Google defined threshold, leveraging a balance of
            +   * precision and recall to deliver both highly accurate results and
            +   * comprehensive coverage of relevant information.
            +   *
            +   * If more granular relevance filtering is required, use the
            +   * `relevance_filter_spec` instead.
            +   *
            +   * This feature is not supported for healthcare search.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 44; + * + * + * @return The relevanceThreshold. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold + getRelevanceThreshold() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold.forNumber( + relevanceThreshold_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold.UNRECOGNIZED + : result; + } + + public static final int RELEVANCE_FILTER_SPEC_FIELD_NUMBER = 86; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + relevanceFilterSpec_; + + /** + * + * + *
            +   * Optional. The granular relevance filtering specification.
            +   *
            +   * If not specified, the global `relevance_threshold` will be used for all
            +   * sub-searches. If specified, this overrides the global
            +   * `relevance_threshold` to use thresholds on a per sub-search basis.
            +   *
            +   * This feature is currently supported only for custom and site search.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec relevance_filter_spec = 86 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the relevanceFilterSpec field is set. + */ + @java.lang.Override + public boolean hasRelevanceFilterSpec() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
            +   * Optional. The granular relevance filtering specification.
            +   *
            +   * If not specified, the global `relevance_threshold` will be used for all
            +   * sub-searches. If specified, this overrides the global
            +   * `relevance_threshold` to use thresholds on a per sub-search basis.
            +   *
            +   * This feature is currently supported only for custom and site search.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec relevance_filter_spec = 86 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The relevanceFilterSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + getRelevanceFilterSpec() { + return relevanceFilterSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .getDefaultInstance() + : relevanceFilterSpec_; + } + + /** + * + * + *
            +   * Optional. The granular relevance filtering specification.
            +   *
            +   * If not specified, the global `relevance_threshold` will be used for all
            +   * sub-searches. If specified, this overrides the global
            +   * `relevance_threshold` to use thresholds on a per sub-search basis.
            +   *
            +   * This feature is currently supported only for custom and site search.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec relevance_filter_spec = 86 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpecOrBuilder + getRelevanceFilterSpecOrBuilder() { + return relevanceFilterSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + .getDefaultInstance() + : relevanceFilterSpec_; + } + + public static final int PERSONALIZATION_SPEC_FIELD_NUMBER = 46; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + personalizationSpec_; + + /** + * + * + *
            +   * The specification for personalization.
            +   *
            +   * Notice that if both
            +   * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            +   * and
            +   * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +   * are set,
            +   * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +   * overrides
            +   * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * + * + * @return Whether the personalizationSpec field is set. + */ + @java.lang.Override + public boolean hasPersonalizationSpec() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
            +   * The specification for personalization.
            +   *
            +   * Notice that if both
            +   * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            +   * and
            +   * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +   * are set,
            +   * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +   * overrides
            +   * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * + * + * @return The personalizationSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + getPersonalizationSpec() { + return personalizationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + .getDefaultInstance() + : personalizationSpec_; + } + + /** + * + * + *
            +   * The specification for personalization.
            +   *
            +   * Notice that if both
            +   * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            +   * and
            +   * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +   * are set,
            +   * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +   * overrides
            +   * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpecOrBuilder + getPersonalizationSpecOrBuilder() { + return personalizationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + .getDefaultInstance() + : personalizationSpec_; + } + + public static final int RELEVANCE_SCORE_SPEC_FIELD_NUMBER = 52; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + relevanceScoreSpec_; + + /** + * + * + *
            +   * Optional. The specification for returning the relevance score.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the relevanceScoreSpec field is set. + */ + @java.lang.Override + public boolean hasRelevanceScoreSpec() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
            +   * Optional. The specification for returning the relevance score.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The relevanceScoreSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + getRelevanceScoreSpec() { + return relevanceScoreSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + .getDefaultInstance() + : relevanceScoreSpec_; + } + + /** + * + * + *
            +   * Optional. The specification for returning the relevance score.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpecOrBuilder + getRelevanceScoreSpecOrBuilder() { + return relevanceScoreSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + .getDefaultInstance() + : relevanceScoreSpec_; + } + + public static final int SEARCH_ADDON_SPEC_FIELD_NUMBER = 62; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec searchAddonSpec_; + + /** + * + * + *
            +   * Optional. SearchAddonSpec is used to disable add-ons for search as per new
            +   * repricing model.
            +   * This field is only supported for search requests.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec search_addon_spec = 62 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchAddonSpec field is set. + */ + @java.lang.Override + public boolean hasSearchAddonSpec() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
            +   * Optional. SearchAddonSpec is used to disable add-ons for search as per new
            +   * repricing model.
            +   * This field is only supported for search requests.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec search_addon_spec = 62 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchAddonSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec + getSearchAddonSpec() { + return searchAddonSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec.getDefaultInstance() + : searchAddonSpec_; + } + + /** + * + * + *
            +   * Optional. SearchAddonSpec is used to disable add-ons for search as per new
            +   * repricing model.
            +   * This field is only supported for search requests.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec search_addon_spec = 62 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpecOrBuilder + getSearchAddonSpecOrBuilder() { + return searchAddonSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec.getDefaultInstance() + : searchAddonSpec_; + } + + public static final int CUSTOM_RANKING_PARAMS_FIELD_NUMBER = 64; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + customRankingParams_; + + /** + * + * + *
            +   * Optional. Optional configuration for the Custom Ranking feature.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams custom_ranking_params = 64 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customRankingParams field is set. + */ + @java.lang.Override + public boolean hasCustomRankingParams() { + return ((bitField0_ & 0x00008000) != 0); + } + + /** + * + * + *
            +   * Optional. Optional configuration for the Custom Ranking feature.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams custom_ranking_params = 64 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customRankingParams. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + getCustomRankingParams() { + return customRankingParams_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + .getDefaultInstance() + : customRankingParams_; + } + + /** + * + * + *
            +   * Optional. Optional configuration for the Custom Ranking feature.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams custom_ranking_params = 64 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParamsOrBuilder + getCustomRankingParamsOrBuilder() { + return customRankingParams_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + .getDefaultInstance() + : customRankingParams_; + } + + public static final int ENTITY_FIELD_NUMBER = 66; + + @SuppressWarnings("serial") + private volatile java.lang.Object entity_ = ""; + + /** + * + * + *
            +   * Optional. The entity for customers that may run multiple different
            +   * entities, domains, sites or regions, for example, "Google US", "Google
            +   * Ads", "Waymo", "google.com", "youtube.com", etc. If this is set, it should
            +   * be exactly matched with
            +   * [UserEvent.entity][google.cloud.discoveryengine.v1beta.UserEvent.entity] to
            +   * get search results boosted by entity.
            +   * 
            + * + * string entity = 66 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entity. + */ + @java.lang.Override + public java.lang.String getEntity() { + java.lang.Object ref = entity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entity_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The entity for customers that may run multiple different
            +   * entities, domains, sites or regions, for example, "Google US", "Google
            +   * Ads", "Waymo", "google.com", "youtube.com", etc. If this is set, it should
            +   * be exactly matched with
            +   * [UserEvent.entity][google.cloud.discoveryengine.v1beta.UserEvent.entity] to
            +   * get search results boosted by entity.
            +   * 
            + * + * string entity = 66 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityBytes() { + java.lang.Object ref = entity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(servingConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, servingConfig_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(branch_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, branch_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, query_); + } + if (pageSize_ != 0) { + output.writeInt32(4, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, pageToken_); + } + if (offset_ != 0) { + output.writeInt32(6, offset_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, orderBy_); + } + for (int i = 0; i < facetSpecs_.size(); i++) { + output.writeMessage(9, facetSpecs_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(10, getBoostSpec()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetParams(), ParamsDefaultEntryHolder.defaultEntry, 11); + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(13, getQueryExpansionSpec()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(14, getSpellCorrectionSpec()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPseudoId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 15, userPseudoId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(19, getImageQuery()); + } + if (safeSearch_ != false) { + output.writeBool(20, safeSearch_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(21, getUserInfo()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 22); + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(23, getEmbeddingSpec()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(24, getContentSearchSpec()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rankingExpression_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 26, rankingExpression_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(28, getNaturalLanguageQueryUnderstandingSpec()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(canonicalFilter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 29, canonicalFilter_); + } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(31, getSearchAsYouTypeSpec()); + } + for (int i = 0; i < dataStoreSpecs_.size(); i++) { + output.writeMessage(32, dataStoreSpecs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 35, languageCode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(regionCode_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 36, regionCode_); + } + if (((bitField0_ & 0x00000200) != 0)) { + output.writeMessage(38, getDisplaySpec()); + } + for (int i = 0; i < crowdingSpecs_.size(); i++) { + output.writeMessage(40, crowdingSpecs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(session_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 41, session_); + } + if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(42, getSessionSpec()); + } + if (relevanceThreshold_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold + .RELEVANCE_THRESHOLD_UNSPECIFIED + .getNumber()) { + output.writeEnum(44, relevanceThreshold_); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(46, getPersonalizationSpec()); + } + if (oneBoxPageSize_ != 0) { + output.writeInt32(47, oneBoxPageSize_); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(52, getRelevanceScoreSpec()); + } + if (rankingExpressionBackend_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend + .RANKING_EXPRESSION_BACKEND_UNSPECIFIED + .getNumber()) { + output.writeEnum(53, rankingExpressionBackend_); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(62, getSearchAddonSpec()); + } + for (int i = 0; i < pageCategories_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 63, pageCategories_.getRaw(i)); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(64, getCustomRankingParams()); + } + if (numResultsPerDataStore_ != 0) { + output.writeInt32(65, numResultsPerDataStore_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 66, entity_); + } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(86, getRelevanceFilterSpec()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(servingConfig_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, servingConfig_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(branch_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, branch_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, query_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, pageToken_); + } + if (offset_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, offset_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, orderBy_); + } + for (int i = 0; i < facetSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, facetSpecs_.get(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getBoostSpec()); + } + for (java.util.Map.Entry entry : + internalGetParams().getMap().entrySet()) { + com.google.protobuf.MapEntry params__ = + ParamsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, params__); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getQueryExpansionSpec()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(14, getSpellCorrectionSpec()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPseudoId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(15, userPseudoId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getImageQuery()); + } + if (safeSearch_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, safeSearch_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getUserInfo()); + } + 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(22, userLabels__); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getEmbeddingSpec()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getContentSearchSpec()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rankingExpression_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(26, rankingExpression_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 28, getNaturalLanguageQueryUnderstandingSpec()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(canonicalFilter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(29, canonicalFilter_); + } + if (((bitField0_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(31, getSearchAsYouTypeSpec()); + } + for (int i = 0; i < dataStoreSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, dataStoreSpecs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(35, languageCode_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(regionCode_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(36, regionCode_); + } + if (((bitField0_ & 0x00000200) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(38, getDisplaySpec()); + } + for (int i = 0; i < crowdingSpecs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(40, crowdingSpecs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(session_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(41, session_); + } + if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(42, getSessionSpec()); + } + if (relevanceThreshold_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold + .RELEVANCE_THRESHOLD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(44, relevanceThreshold_); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(46, getPersonalizationSpec()); + } + if (oneBoxPageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(47, oneBoxPageSize_); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(52, getRelevanceScoreSpec()); + } + if (rankingExpressionBackend_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend + .RANKING_EXPRESSION_BACKEND_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(53, rankingExpressionBackend_); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(62, getSearchAddonSpec()); + } + { + int dataSize = 0; + for (int i = 0; i < pageCategories_.size(); i++) { + dataSize += computeStringSizeNoTag(pageCategories_.getRaw(i)); + } + size += dataSize; + size += 2 * getPageCategoriesList().size(); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(64, getCustomRankingParams()); + } + if (numResultsPerDataStore_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(65, numResultsPerDataStore_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(66, entity_); + } + if (((bitField0_ & 0x00000800) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(86, getRelevanceFilterSpec()); + } + 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.v1beta.SearchRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchRequest other = + (com.google.cloud.discoveryengine.v1beta.SearchRequest) obj; + + if (!getServingConfig().equals(other.getServingConfig())) return false; + if (!getBranch().equals(other.getBranch())) return false; + if (!getQuery().equals(other.getQuery())) return false; + if (!getPageCategoriesList().equals(other.getPageCategoriesList())) return false; + if (hasImageQuery() != other.hasImageQuery()) return false; + if (hasImageQuery()) { + if (!getImageQuery().equals(other.getImageQuery())) return false; + } + 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 (getNumResultsPerDataStore() != other.getNumResultsPerDataStore()) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getCanonicalFilter().equals(other.getCanonicalFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (hasUserInfo() != other.hasUserInfo()) return false; + if (hasUserInfo()) { + if (!getUserInfo().equals(other.getUserInfo())) return false; + } + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getRegionCode().equals(other.getRegionCode())) return false; + if (!getFacetSpecsList().equals(other.getFacetSpecsList())) return false; + if (hasBoostSpec() != other.hasBoostSpec()) return false; + if (hasBoostSpec()) { + if (!getBoostSpec().equals(other.getBoostSpec())) return false; + } + if (!internalGetParams().equals(other.internalGetParams())) return false; + if (hasQueryExpansionSpec() != other.hasQueryExpansionSpec()) return false; + if (hasQueryExpansionSpec()) { + if (!getQueryExpansionSpec().equals(other.getQueryExpansionSpec())) return false; + } + if (hasSpellCorrectionSpec() != other.hasSpellCorrectionSpec()) return false; + if (hasSpellCorrectionSpec()) { + if (!getSpellCorrectionSpec().equals(other.getSpellCorrectionSpec())) return false; + } + if (!getUserPseudoId().equals(other.getUserPseudoId())) return false; + if (hasContentSearchSpec() != other.hasContentSearchSpec()) return false; + if (hasContentSearchSpec()) { + if (!getContentSearchSpec().equals(other.getContentSearchSpec())) return false; + } + if (hasEmbeddingSpec() != other.hasEmbeddingSpec()) return false; + if (hasEmbeddingSpec()) { + if (!getEmbeddingSpec().equals(other.getEmbeddingSpec())) return false; + } + if (!getRankingExpression().equals(other.getRankingExpression())) return false; + if (rankingExpressionBackend_ != other.rankingExpressionBackend_) return false; + if (getSafeSearch() != other.getSafeSearch()) return false; + if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false; + if (hasNaturalLanguageQueryUnderstandingSpec() + != other.hasNaturalLanguageQueryUnderstandingSpec()) return false; + if (hasNaturalLanguageQueryUnderstandingSpec()) { + if (!getNaturalLanguageQueryUnderstandingSpec() + .equals(other.getNaturalLanguageQueryUnderstandingSpec())) return false; + } + if (hasSearchAsYouTypeSpec() != other.hasSearchAsYouTypeSpec()) return false; + if (hasSearchAsYouTypeSpec()) { + if (!getSearchAsYouTypeSpec().equals(other.getSearchAsYouTypeSpec())) return false; + } + if (hasDisplaySpec() != other.hasDisplaySpec()) return false; + if (hasDisplaySpec()) { + if (!getDisplaySpec().equals(other.getDisplaySpec())) return false; + } + if (!getCrowdingSpecsList().equals(other.getCrowdingSpecsList())) return false; + if (!getSession().equals(other.getSession())) return false; + if (hasSessionSpec() != other.hasSessionSpec()) return false; + if (hasSessionSpec()) { + if (!getSessionSpec().equals(other.getSessionSpec())) return false; + } + if (relevanceThreshold_ != other.relevanceThreshold_) return false; + if (hasRelevanceFilterSpec() != other.hasRelevanceFilterSpec()) return false; + if (hasRelevanceFilterSpec()) { + if (!getRelevanceFilterSpec().equals(other.getRelevanceFilterSpec())) return false; + } + if (hasPersonalizationSpec() != other.hasPersonalizationSpec()) return false; + if (hasPersonalizationSpec()) { + if (!getPersonalizationSpec().equals(other.getPersonalizationSpec())) return false; + } + if (hasRelevanceScoreSpec() != other.hasRelevanceScoreSpec()) return false; + if (hasRelevanceScoreSpec()) { + if (!getRelevanceScoreSpec().equals(other.getRelevanceScoreSpec())) return false; + } + if (hasSearchAddonSpec() != other.hasSearchAddonSpec()) return false; + if (hasSearchAddonSpec()) { + if (!getSearchAddonSpec().equals(other.getSearchAddonSpec())) return false; + } + if (hasCustomRankingParams() != other.hasCustomRankingParams()) return false; + if (hasCustomRankingParams()) { + if (!getCustomRankingParams().equals(other.getCustomRankingParams())) return false; + } + if (!getEntity().equals(other.getEntity())) 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) + BRANCH_FIELD_NUMBER; + hash = (53 * hash) + getBranch().hashCode(); + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + if (getPageCategoriesCount() > 0) { + hash = (37 * hash) + PAGE_CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + getPageCategoriesList().hashCode(); + } + if (hasImageQuery()) { + hash = (37 * hash) + IMAGE_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getImageQuery().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) + 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(); + } + hash = (37 * hash) + NUM_RESULTS_PER_DATA_STORE_FIELD_NUMBER; + hash = (53 * hash) + getNumResultsPerDataStore(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + CANONICAL_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getCanonicalFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + if (hasUserInfo()) { + hash = (37 * hash) + USER_INFO_FIELD_NUMBER; + hash = (53 * hash) + getUserInfo().hashCode(); + } + hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; + hash = (53 * hash) + getLanguageCode().hashCode(); + hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getRegionCode().hashCode(); + if (getFacetSpecsCount() > 0) { + hash = (37 * hash) + FACET_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getFacetSpecsList().hashCode(); + } + if (hasBoostSpec()) { + hash = (37 * hash) + BOOST_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getBoostSpec().hashCode(); } - if (safeSearch_ != false) { - output.writeBool(20, safeSearch_); + if (!internalGetParams().getMap().isEmpty()) { + hash = (37 * hash) + PARAMS_FIELD_NUMBER; + hash = (53 * hash) + internalGetParams().hashCode(); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(21, getUserInfo()); + if (hasQueryExpansionSpec()) { + hash = (37 * hash) + QUERY_EXPANSION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getQueryExpansionSpec().hashCode(); } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetUserLabels(), UserLabelsDefaultEntryHolder.defaultEntry, 22); - if (((bitField0_ & 0x00000040) != 0)) { - output.writeMessage(23, getEmbeddingSpec()); + if (hasSpellCorrectionSpec()) { + hash = (37 * hash) + SPELL_CORRECTION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpellCorrectionSpec().hashCode(); } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(24, getContentSearchSpec()); + hash = (37 * hash) + USER_PSEUDO_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserPseudoId().hashCode(); + if (hasContentSearchSpec()) { + hash = (37 * hash) + CONTENT_SEARCH_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getContentSearchSpec().hashCode(); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rankingExpression_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 26, rankingExpression_); + if (hasEmbeddingSpec()) { + hash = (37 * hash) + EMBEDDING_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getEmbeddingSpec().hashCode(); } - if (((bitField0_ & 0x00000080) != 0)) { - output.writeMessage(28, getNaturalLanguageQueryUnderstandingSpec()); + hash = (37 * hash) + RANKING_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getRankingExpression().hashCode(); + hash = (37 * hash) + RANKING_EXPRESSION_BACKEND_FIELD_NUMBER; + hash = (53 * hash) + rankingExpressionBackend_; + hash = (37 * hash) + SAFE_SEARCH_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSafeSearch()); + if (!internalGetUserLabels().getMap().isEmpty()) { + hash = (37 * hash) + USER_LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetUserLabels().hashCode(); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(canonicalFilter_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 29, canonicalFilter_); + if (hasNaturalLanguageQueryUnderstandingSpec()) { + hash = (37 * hash) + NATURAL_LANGUAGE_QUERY_UNDERSTANDING_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getNaturalLanguageQueryUnderstandingSpec().hashCode(); } - if (((bitField0_ & 0x00000100) != 0)) { - output.writeMessage(31, getSearchAsYouTypeSpec()); + if (hasSearchAsYouTypeSpec()) { + hash = (37 * hash) + SEARCH_AS_YOU_TYPE_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSearchAsYouTypeSpec().hashCode(); } - for (int i = 0; i < dataStoreSpecs_.size(); i++) { - output.writeMessage(32, dataStoreSpecs_.get(i)); + if (hasDisplaySpec()) { + hash = (37 * hash) + DISPLAY_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getDisplaySpec().hashCode(); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 35, languageCode_); + if (getCrowdingSpecsCount() > 0) { + hash = (37 * hash) + CROWDING_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getCrowdingSpecsList().hashCode(); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(regionCode_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 36, regionCode_); + hash = (37 * hash) + SESSION_FIELD_NUMBER; + hash = (53 * hash) + getSession().hashCode(); + if (hasSessionSpec()) { + hash = (37 * hash) + SESSION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSessionSpec().hashCode(); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(session_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 41, session_); + hash = (37 * hash) + RELEVANCE_THRESHOLD_FIELD_NUMBER; + hash = (53 * hash) + relevanceThreshold_; + if (hasRelevanceFilterSpec()) { + hash = (37 * hash) + RELEVANCE_FILTER_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getRelevanceFilterSpec().hashCode(); + } + if (hasPersonalizationSpec()) { + hash = (37 * hash) + PERSONALIZATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getPersonalizationSpec().hashCode(); + } + if (hasRelevanceScoreSpec()) { + hash = (37 * hash) + RELEVANCE_SCORE_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getRelevanceScoreSpec().hashCode(); + } + if (hasSearchAddonSpec()) { + hash = (37 * hash) + SEARCH_ADDON_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSearchAddonSpec().hashCode(); + } + if (hasCustomRankingParams()) { + hash = (37 * hash) + CUSTOM_RANKING_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getCustomRankingParams().hashCode(); + } + hash = (37 * hash) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest 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.v1beta.SearchRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom( + 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.v1beta.SearchRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest) + com.google.cloud.discoveryengine.v1beta.SearchRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 11: + return internalGetParams(); + case 22: + return internalGetUserLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 11: + return internalGetMutableParams(); + case 22: + return internalGetMutableUserLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchRequest.class, + com.google.cloud.discoveryengine.v1beta.SearchRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.SearchRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetImageQueryFieldBuilder(); + internalGetDataStoreSpecsFieldBuilder(); + internalGetUserInfoFieldBuilder(); + internalGetFacetSpecsFieldBuilder(); + internalGetBoostSpecFieldBuilder(); + internalGetQueryExpansionSpecFieldBuilder(); + internalGetSpellCorrectionSpecFieldBuilder(); + internalGetContentSearchSpecFieldBuilder(); + internalGetEmbeddingSpecFieldBuilder(); + internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder(); + internalGetSearchAsYouTypeSpecFieldBuilder(); + internalGetDisplaySpecFieldBuilder(); + internalGetCrowdingSpecsFieldBuilder(); + internalGetSessionSpecFieldBuilder(); + internalGetRelevanceFilterSpecFieldBuilder(); + internalGetPersonalizationSpecFieldBuilder(); + internalGetRelevanceScoreSpecFieldBuilder(); + internalGetSearchAddonSpecFieldBuilder(); + internalGetCustomRankingParamsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bitField1_ = 0; + servingConfig_ = ""; + branch_ = ""; + query_ = ""; + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + imageQuery_ = null; + if (imageQueryBuilder_ != null) { + imageQueryBuilder_.dispose(); + imageQueryBuilder_ = null; + } + pageSize_ = 0; + pageToken_ = ""; + offset_ = 0; + oneBoxPageSize_ = 0; + if (dataStoreSpecsBuilder_ == null) { + dataStoreSpecs_ = java.util.Collections.emptyList(); + } else { + dataStoreSpecs_ = null; + dataStoreSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + numResultsPerDataStore_ = 0; + filter_ = ""; + canonicalFilter_ = ""; + orderBy_ = ""; + userInfo_ = null; + if (userInfoBuilder_ != null) { + userInfoBuilder_.dispose(); + userInfoBuilder_ = null; + } + languageCode_ = ""; + regionCode_ = ""; + if (facetSpecsBuilder_ == null) { + facetSpecs_ = java.util.Collections.emptyList(); + } else { + facetSpecs_ = null; + facetSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00020000); + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; + } + internalGetMutableParams().clear(); + queryExpansionSpec_ = null; + if (queryExpansionSpecBuilder_ != null) { + queryExpansionSpecBuilder_.dispose(); + queryExpansionSpecBuilder_ = null; + } + spellCorrectionSpec_ = null; + if (spellCorrectionSpecBuilder_ != null) { + spellCorrectionSpecBuilder_.dispose(); + spellCorrectionSpecBuilder_ = null; + } + userPseudoId_ = ""; + contentSearchSpec_ = null; + if (contentSearchSpecBuilder_ != null) { + contentSearchSpecBuilder_.dispose(); + contentSearchSpecBuilder_ = null; + } + embeddingSpec_ = null; + if (embeddingSpecBuilder_ != null) { + embeddingSpecBuilder_.dispose(); + embeddingSpecBuilder_ = null; + } + rankingExpression_ = ""; + rankingExpressionBackend_ = 0; + safeSearch_ = false; + internalGetMutableUserLabels().clear(); + naturalLanguageQueryUnderstandingSpec_ = null; + if (naturalLanguageQueryUnderstandingSpecBuilder_ != null) { + naturalLanguageQueryUnderstandingSpecBuilder_.dispose(); + naturalLanguageQueryUnderstandingSpecBuilder_ = null; + } + searchAsYouTypeSpec_ = null; + if (searchAsYouTypeSpecBuilder_ != null) { + searchAsYouTypeSpecBuilder_.dispose(); + searchAsYouTypeSpecBuilder_ = null; + } + displaySpec_ = null; + if (displaySpecBuilder_ != null) { + displaySpecBuilder_.dispose(); + displaySpecBuilder_ = null; + } + if (crowdingSpecsBuilder_ == null) { + crowdingSpecs_ = java.util.Collections.emptyList(); + } else { + crowdingSpecs_ = null; + crowdingSpecsBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000001); + session_ = ""; + sessionSpec_ = null; + if (sessionSpecBuilder_ != null) { + sessionSpecBuilder_.dispose(); + sessionSpecBuilder_ = null; + } + relevanceThreshold_ = 0; + relevanceFilterSpec_ = null; + if (relevanceFilterSpecBuilder_ != null) { + relevanceFilterSpecBuilder_.dispose(); + relevanceFilterSpecBuilder_ = null; + } + personalizationSpec_ = null; + if (personalizationSpecBuilder_ != null) { + personalizationSpecBuilder_.dispose(); + personalizationSpecBuilder_ = null; + } + relevanceScoreSpec_ = null; + if (relevanceScoreSpecBuilder_ != null) { + relevanceScoreSpecBuilder_.dispose(); + relevanceScoreSpecBuilder_ = null; + } + searchAddonSpec_ = null; + if (searchAddonSpecBuilder_ != null) { + searchAddonSpecBuilder_.dispose(); + searchAddonSpecBuilder_ = null; + } + customRankingParams_ = null; + if (customRankingParamsBuilder_ != null) { + customRankingParamsBuilder_.dispose(); + customRankingParamsBuilder_ = null; + } + entity_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest build() { + com.google.cloud.discoveryengine.v1beta.SearchRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchRequest result = + new com.google.cloud.discoveryengine.v1beta.SearchRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + if (bitField1_ != 0) { + buildPartial1(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.SearchRequest result) { + if (dataStoreSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + dataStoreSpecs_ = java.util.Collections.unmodifiableList(dataStoreSpecs_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.dataStoreSpecs_ = dataStoreSpecs_; + } else { + result.dataStoreSpecs_ = dataStoreSpecsBuilder_.build(); + } + if (facetSpecsBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0)) { + facetSpecs_ = java.util.Collections.unmodifiableList(facetSpecs_); + bitField0_ = (bitField0_ & ~0x00020000); + } + result.facetSpecs_ = facetSpecs_; + } else { + result.facetSpecs_ = facetSpecsBuilder_.build(); + } + if (crowdingSpecsBuilder_ == null) { + if (((bitField1_ & 0x00000001) != 0)) { + crowdingSpecs_ = java.util.Collections.unmodifiableList(crowdingSpecs_); + bitField1_ = (bitField1_ & ~0x00000001); + } + result.crowdingSpecs_ = crowdingSpecs_; + } else { + result.crowdingSpecs_ = crowdingSpecsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.servingConfig_ = servingConfig_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.branch_ = branch_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.query_ = query_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + pageCategories_.makeImmutable(); + result.pageCategories_ = pageCategories_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.imageQuery_ = imageQueryBuilder_ == null ? imageQuery_ : imageQueryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.offset_ = offset_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.oneBoxPageSize_ = oneBoxPageSize_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.numResultsPerDataStore_ = numResultsPerDataStore_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.canonicalFilter_ = canonicalFilter_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.languageCode_ = languageCode_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.regionCode_ = regionCode_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.params_ = internalGetParams().build(ParamsDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.queryExpansionSpec_ = + queryExpansionSpecBuilder_ == null + ? queryExpansionSpec_ + : queryExpansionSpecBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.spellCorrectionSpec_ = + spellCorrectionSpecBuilder_ == null + ? spellCorrectionSpec_ + : spellCorrectionSpecBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.userPseudoId_ = userPseudoId_; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.contentSearchSpec_ = + contentSearchSpecBuilder_ == null + ? contentSearchSpec_ + : contentSearchSpecBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x01000000) != 0)) { + result.embeddingSpec_ = + embeddingSpecBuilder_ == null ? embeddingSpec_ : embeddingSpecBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x02000000) != 0)) { + result.rankingExpression_ = rankingExpression_; + } + if (((from_bitField0_ & 0x04000000) != 0)) { + result.rankingExpressionBackend_ = rankingExpressionBackend_; + } + if (((from_bitField0_ & 0x08000000) != 0)) { + result.safeSearch_ = safeSearch_; + } + if (((from_bitField0_ & 0x10000000) != 0)) { + result.userLabels_ = internalGetUserLabels(); + result.userLabels_.makeImmutable(); + } + if (((from_bitField0_ & 0x20000000) != 0)) { + result.naturalLanguageQueryUnderstandingSpec_ = + naturalLanguageQueryUnderstandingSpecBuilder_ == null + ? naturalLanguageQueryUnderstandingSpec_ + : naturalLanguageQueryUnderstandingSpecBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.searchAsYouTypeSpec_ = + searchAsYouTypeSpecBuilder_ == null + ? searchAsYouTypeSpec_ + : searchAsYouTypeSpecBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x80000000) != 0)) { + result.displaySpec_ = + displaySpecBuilder_ == null ? displaySpec_ : displaySpecBuilder_.build(); + to_bitField0_ |= 0x00000200; + } + result.bitField0_ |= to_bitField0_; } - if (((bitField0_ & 0x00000200) != 0)) { - output.writeMessage(42, getSessionSpec()); + + private void buildPartial1(com.google.cloud.discoveryengine.v1beta.SearchRequest result) { + int from_bitField1_ = bitField1_; + if (((from_bitField1_ & 0x00000002) != 0)) { + result.session_ = session_; + } + int to_bitField0_ = 0; + if (((from_bitField1_ & 0x00000004) != 0)) { + result.sessionSpec_ = + sessionSpecBuilder_ == null ? sessionSpec_ : sessionSpecBuilder_.build(); + to_bitField0_ |= 0x00000400; + } + if (((from_bitField1_ & 0x00000008) != 0)) { + result.relevanceThreshold_ = relevanceThreshold_; + } + if (((from_bitField1_ & 0x00000010) != 0)) { + result.relevanceFilterSpec_ = + relevanceFilterSpecBuilder_ == null + ? relevanceFilterSpec_ + : relevanceFilterSpecBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField1_ & 0x00000020) != 0)) { + result.personalizationSpec_ = + personalizationSpecBuilder_ == null + ? personalizationSpec_ + : personalizationSpecBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField1_ & 0x00000040) != 0)) { + result.relevanceScoreSpec_ = + relevanceScoreSpecBuilder_ == null + ? relevanceScoreSpec_ + : relevanceScoreSpecBuilder_.build(); + to_bitField0_ |= 0x00002000; + } + if (((from_bitField1_ & 0x00000080) != 0)) { + result.searchAddonSpec_ = + searchAddonSpecBuilder_ == null ? searchAddonSpec_ : searchAddonSpecBuilder_.build(); + to_bitField0_ |= 0x00004000; + } + if (((from_bitField1_ & 0x00000100) != 0)) { + result.customRankingParams_ = + customRankingParamsBuilder_ == null + ? customRankingParams_ + : customRankingParamsBuilder_.build(); + to_bitField0_ |= 0x00008000; + } + if (((from_bitField1_ & 0x00000200) != 0)) { + result.entity_ = entity_; + } + result.bitField0_ |= to_bitField0_; } - if (relevanceThreshold_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold - .RELEVANCE_THRESHOLD_UNSPECIFIED - .getNumber()) { - output.writeEnum(44, relevanceThreshold_); + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest) other); + } else { + super.mergeFrom(other); + return this; + } } - if (((bitField0_ & 0x00000400) != 0)) { - output.writeMessage(46, getPersonalizationSpec()); + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest other) { + if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.getDefaultInstance()) + return this; + if (!other.getServingConfig().isEmpty()) { + servingConfig_ = other.servingConfig_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBranch().isEmpty()) { + branch_ = other.branch_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getQuery().isEmpty()) { + query_ = other.query_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.pageCategories_.isEmpty()) { + if (pageCategories_.isEmpty()) { + pageCategories_ = other.pageCategories_; + bitField0_ |= 0x00000008; + } else { + ensurePageCategoriesIsMutable(); + pageCategories_.addAll(other.pageCategories_); + } + onChanged(); + } + if (other.hasImageQuery()) { + mergeImageQuery(other.getImageQuery()); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000040; + onChanged(); + } + 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_ & ~0x00000200); + } else { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.addAll(other.dataStoreSpecs_); + } + onChanged(); + } + } else { + if (!other.dataStoreSpecs_.isEmpty()) { + if (dataStoreSpecsBuilder_.isEmpty()) { + dataStoreSpecsBuilder_.dispose(); + dataStoreSpecsBuilder_ = null; + dataStoreSpecs_ = other.dataStoreSpecs_; + bitField0_ = (bitField0_ & ~0x00000200); + dataStoreSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDataStoreSpecsFieldBuilder() + : null; + } else { + dataStoreSpecsBuilder_.addAllMessages(other.dataStoreSpecs_); + } + } + } + if (other.getNumResultsPerDataStore() != 0) { + setNumResultsPerDataStore(other.getNumResultsPerDataStore()); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (!other.getCanonicalFilter().isEmpty()) { + canonicalFilter_ = other.canonicalFilter_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (other.hasUserInfo()) { + mergeUserInfo(other.getUserInfo()); + } + if (!other.getLanguageCode().isEmpty()) { + languageCode_ = other.languageCode_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (!other.getRegionCode().isEmpty()) { + regionCode_ = other.regionCode_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (facetSpecsBuilder_ == null) { + if (!other.facetSpecs_.isEmpty()) { + if (facetSpecs_.isEmpty()) { + facetSpecs_ = other.facetSpecs_; + bitField0_ = (bitField0_ & ~0x00020000); + } else { + ensureFacetSpecsIsMutable(); + facetSpecs_.addAll(other.facetSpecs_); + } + onChanged(); + } + } else { + if (!other.facetSpecs_.isEmpty()) { + if (facetSpecsBuilder_.isEmpty()) { + facetSpecsBuilder_.dispose(); + facetSpecsBuilder_ = null; + facetSpecs_ = other.facetSpecs_; + bitField0_ = (bitField0_ & ~0x00020000); + facetSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFacetSpecsFieldBuilder() + : null; + } else { + facetSpecsBuilder_.addAllMessages(other.facetSpecs_); + } + } + } + if (other.hasBoostSpec()) { + mergeBoostSpec(other.getBoostSpec()); + } + internalGetMutableParams().mergeFrom(other.internalGetParams()); + bitField0_ |= 0x00080000; + if (other.hasQueryExpansionSpec()) { + mergeQueryExpansionSpec(other.getQueryExpansionSpec()); + } + if (other.hasSpellCorrectionSpec()) { + mergeSpellCorrectionSpec(other.getSpellCorrectionSpec()); + } + if (!other.getUserPseudoId().isEmpty()) { + userPseudoId_ = other.userPseudoId_; + bitField0_ |= 0x00400000; + onChanged(); + } + if (other.hasContentSearchSpec()) { + mergeContentSearchSpec(other.getContentSearchSpec()); + } + if (other.hasEmbeddingSpec()) { + mergeEmbeddingSpec(other.getEmbeddingSpec()); + } + if (!other.getRankingExpression().isEmpty()) { + rankingExpression_ = other.rankingExpression_; + bitField0_ |= 0x02000000; + onChanged(); + } + if (other.rankingExpressionBackend_ != 0) { + setRankingExpressionBackendValue(other.getRankingExpressionBackendValue()); + } + if (other.getSafeSearch() != false) { + setSafeSearch(other.getSafeSearch()); + } + internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels()); + bitField0_ |= 0x10000000; + if (other.hasNaturalLanguageQueryUnderstandingSpec()) { + mergeNaturalLanguageQueryUnderstandingSpec( + other.getNaturalLanguageQueryUnderstandingSpec()); + } + if (other.hasSearchAsYouTypeSpec()) { + mergeSearchAsYouTypeSpec(other.getSearchAsYouTypeSpec()); + } + if (other.hasDisplaySpec()) { + mergeDisplaySpec(other.getDisplaySpec()); + } + if (crowdingSpecsBuilder_ == null) { + if (!other.crowdingSpecs_.isEmpty()) { + if (crowdingSpecs_.isEmpty()) { + crowdingSpecs_ = other.crowdingSpecs_; + bitField1_ = (bitField1_ & ~0x00000001); + } else { + ensureCrowdingSpecsIsMutable(); + crowdingSpecs_.addAll(other.crowdingSpecs_); + } + onChanged(); + } + } else { + if (!other.crowdingSpecs_.isEmpty()) { + if (crowdingSpecsBuilder_.isEmpty()) { + crowdingSpecsBuilder_.dispose(); + crowdingSpecsBuilder_ = null; + crowdingSpecs_ = other.crowdingSpecs_; + bitField1_ = (bitField1_ & ~0x00000001); + crowdingSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCrowdingSpecsFieldBuilder() + : null; + } else { + crowdingSpecsBuilder_.addAllMessages(other.crowdingSpecs_); + } + } + } + if (!other.getSession().isEmpty()) { + session_ = other.session_; + bitField1_ |= 0x00000002; + onChanged(); + } + if (other.hasSessionSpec()) { + mergeSessionSpec(other.getSessionSpec()); + } + if (other.relevanceThreshold_ != 0) { + setRelevanceThresholdValue(other.getRelevanceThresholdValue()); + } + if (other.hasRelevanceFilterSpec()) { + mergeRelevanceFilterSpec(other.getRelevanceFilterSpec()); + } + if (other.hasPersonalizationSpec()) { + mergePersonalizationSpec(other.getPersonalizationSpec()); + } + if (other.hasRelevanceScoreSpec()) { + mergeRelevanceScoreSpec(other.getRelevanceScoreSpec()); + } + if (other.hasSearchAddonSpec()) { + mergeSearchAddonSpec(other.getSearchAddonSpec()); + } + if (other.hasCustomRankingParams()) { + mergeCustomRankingParams(other.getCustomRankingParams()); + } + if (!other.getEntity().isEmpty()) { + entity_ = other.entity_; + bitField1_ |= 0x00000200; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; } - if (oneBoxPageSize_ != 0) { - output.writeInt32(47, oneBoxPageSize_); + + @java.lang.Override + public final boolean isInitialized() { + return true; } - if (rankingExpressionBackend_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend - .RANKING_EXPRESSION_BACKEND_UNSPECIFIED - .getNumber()) { - output.writeEnum(53, rankingExpressionBackend_); + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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 18: + { + branch_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + query_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 32 + case 42: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 48: + { + offset_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 48 + case 58: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 58 + case 66: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 66 + case 74: + { + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.parser(), + extensionRegistry); + if (facetSpecsBuilder_ == null) { + ensureFacetSpecsIsMutable(); + facetSpecs_.add(m); + } else { + facetSpecsBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetBoostSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 82 + case 90: + { + com.google.protobuf.MapEntry params__ = + input.readMessage( + ParamsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableParams() + .ensureBuilderMap() + .put(params__.getKey(), params__.getValue()); + bitField0_ |= 0x00080000; + break; + } // case 90 + case 106: + { + input.readMessage( + internalGetQueryExpansionSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00100000; + break; + } // case 106 + case 114: + { + input.readMessage( + internalGetSpellCorrectionSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 114 + case 122: + { + userPseudoId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00400000; + break; + } // case 122 + case 154: + { + input.readMessage( + internalGetImageQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 154 + case 160: + { + safeSearch_ = input.readBool(); + bitField0_ |= 0x08000000; + break; + } // case 160 + case 170: + { + input.readMessage( + internalGetUserInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 170 + case 178: + { + com.google.protobuf.MapEntry userLabels__ = + input.readMessage( + UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableUserLabels() + .getMutableMap() + .put(userLabels__.getKey(), userLabels__.getValue()); + bitField0_ |= 0x10000000; + break; + } // case 178 + case 186: + { + input.readMessage( + internalGetEmbeddingSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x01000000; + break; + } // case 186 + case 194: + { + input.readMessage( + internalGetContentSearchSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00800000; + break; + } // case 194 + case 210: + { + rankingExpression_ = input.readStringRequireUtf8(); + bitField0_ |= 0x02000000; + break; + } // case 210 + case 226: + { + input.readMessage( + internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x20000000; + break; + } // case 226 + case 234: + { + canonicalFilter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 234 + case 250: + { + input.readMessage( + internalGetSearchAsYouTypeSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x40000000; + break; + } // case 250 + case 258: + { + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + .parser(), + extensionRegistry); + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(m); + } else { + dataStoreSpecsBuilder_.addMessage(m); + } + break; + } // case 258 + case 282: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 282 + case 290: + { + regionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 290 + case 306: + { + input.readMessage( + internalGetDisplaySpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x80000000; + break; + } // case 306 + case 322: + { + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.parser(), + extensionRegistry); + if (crowdingSpecsBuilder_ == null) { + ensureCrowdingSpecsIsMutable(); + crowdingSpecs_.add(m); + } else { + crowdingSpecsBuilder_.addMessage(m); + } + break; + } // case 322 + case 330: + { + session_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00000002; + break; + } // case 330 + case 338: + { + input.readMessage( + internalGetSessionSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000004; + break; + } // case 338 + case 352: + { + relevanceThreshold_ = input.readEnum(); + bitField1_ |= 0x00000008; + break; + } // case 352 + case 370: + { + input.readMessage( + internalGetPersonalizationSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000020; + break; + } // case 370 + case 376: + { + oneBoxPageSize_ = input.readInt32(); + bitField0_ |= 0x00000100; + break; + } // case 376 + case 418: + { + input.readMessage( + internalGetRelevanceScoreSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000040; + break; + } // case 418 + case 424: + { + rankingExpressionBackend_ = input.readEnum(); + bitField0_ |= 0x04000000; + break; + } // case 424 + case 498: + { + input.readMessage( + internalGetSearchAddonSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000080; + break; + } // case 498 + case 506: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePageCategoriesIsMutable(); + pageCategories_.add(s); + break; + } // case 506 + case 514: + { + input.readMessage( + internalGetCustomRankingParamsFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000100; + break; + } // case 514 + case 520: + { + numResultsPerDataStore_ = input.readInt32(); + bitField0_ |= 0x00000400; + break; + } // case 520 + case 530: + { + entity_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00000200; + break; + } // case 530 + case 690: + { + input.readMessage( + internalGetRelevanceFilterSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000010; + break; + } // case 690 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + private int bitField0_; + private int bitField1_; - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(servingConfig_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, servingConfig_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(branch_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, branch_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, query_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(5, pageToken_); - } - if (offset_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, offset_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(7, filter_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(8, orderBy_); - } - for (int i = 0; i < facetSpecs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, facetSpecs_.get(i)); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getBoostSpec()); - } - for (java.util.Map.Entry entry : - internalGetParams().getMap().entrySet()) { - com.google.protobuf.MapEntry params__ = - ParamsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, params__); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getQueryExpansionSpec()); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(14, getSpellCorrectionSpec()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPseudoId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(15, userPseudoId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getImageQuery()); - } - if (safeSearch_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, safeSearch_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(21, getUserInfo()); - } - 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(22, userLabels__); - } - if (((bitField0_ & 0x00000040) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getEmbeddingSpec()); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getContentSearchSpec()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rankingExpression_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(26, rankingExpression_); - } - if (((bitField0_ & 0x00000080) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 28, getNaturalLanguageQueryUnderstandingSpec()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(canonicalFilter_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(29, canonicalFilter_); - } - if (((bitField0_ & 0x00000100) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(31, getSearchAsYouTypeSpec()); - } - for (int i = 0; i < dataStoreSpecs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, dataStoreSpecs_.get(i)); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(languageCode_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(35, languageCode_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(regionCode_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(36, regionCode_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(session_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(41, session_); - } - if (((bitField0_ & 0x00000200) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(42, getSessionSpec()); - } - if (relevanceThreshold_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold - .RELEVANCE_THRESHOLD_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(44, relevanceThreshold_); - } - if (((bitField0_ & 0x00000400) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(46, getPersonalizationSpec()); - } - if (oneBoxPageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(47, oneBoxPageSize_); - } - if (rankingExpressionBackend_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend - .RANKING_EXPRESSION_BACKEND_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(53, rankingExpressionBackend_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + private java.lang.Object servingConfig_ = ""; - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest)) { - return super.equals(obj); + /** + * + * + *
            +     * Required. The resource name of the Search serving config, such as
            +     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
            +     * or
            +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
            +     * This field is used to identify the serving configuration name, set
            +     * of models used to make the search.
            +     * 
            + * + * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } } - com.google.cloud.discoveryengine.v1beta.SearchRequest other = - (com.google.cloud.discoveryengine.v1beta.SearchRequest) obj; - if (!getServingConfig().equals(other.getServingConfig())) return false; - if (!getBranch().equals(other.getBranch())) return false; - if (!getQuery().equals(other.getQuery())) return false; - if (hasImageQuery() != other.hasImageQuery()) return false; - if (hasImageQuery()) { - if (!getImageQuery().equals(other.getImageQuery())) return false; - } - 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; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (hasUserInfo() != other.hasUserInfo()) return false; - if (hasUserInfo()) { - if (!getUserInfo().equals(other.getUserInfo())) return false; - } - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (!getRegionCode().equals(other.getRegionCode())) return false; - if (!getFacetSpecsList().equals(other.getFacetSpecsList())) return false; - if (hasBoostSpec() != other.hasBoostSpec()) return false; - if (hasBoostSpec()) { - if (!getBoostSpec().equals(other.getBoostSpec())) return false; + /** + * + * + *
            +     * Required. The resource name of the Search serving config, such as
            +     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
            +     * or
            +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
            +     * This field is used to identify the serving configuration name, set
            +     * of models used to make the search.
            +     * 
            + * + * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } } - if (!internalGetParams().equals(other.internalGetParams())) return false; - if (hasQueryExpansionSpec() != other.hasQueryExpansionSpec()) return false; - if (hasQueryExpansionSpec()) { - if (!getQueryExpansionSpec().equals(other.getQueryExpansionSpec())) return false; + + /** + * + * + *
            +     * Required. The resource name of the Search serving config, such as
            +     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
            +     * or
            +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
            +     * This field is used to identify the serving configuration name, set
            +     * of models used to make the search.
            +     * 
            + * + * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.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; } - if (hasSpellCorrectionSpec() != other.hasSpellCorrectionSpec()) return false; - if (hasSpellCorrectionSpec()) { - if (!getSpellCorrectionSpec().equals(other.getSpellCorrectionSpec())) return false; + + /** + * + * + *
            +     * Required. The resource name of the Search serving config, such as
            +     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
            +     * or
            +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
            +     * This field is used to identify the serving configuration name, set
            +     * of models used to make the search.
            +     * 
            + * + * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearServingConfig() { + servingConfig_ = getDefaultInstance().getServingConfig(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } - if (!getUserPseudoId().equals(other.getUserPseudoId())) return false; - if (hasContentSearchSpec() != other.hasContentSearchSpec()) return false; - if (hasContentSearchSpec()) { - if (!getContentSearchSpec().equals(other.getContentSearchSpec())) return false; + + /** + * + * + *
            +     * Required. The resource name of the Search serving config, such as
            +     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
            +     * or
            +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
            +     * This field is used to identify the serving configuration name, set
            +     * of models used to make the search.
            +     * 
            + * + * + * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.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; } - if (hasEmbeddingSpec() != other.hasEmbeddingSpec()) return false; - if (hasEmbeddingSpec()) { - if (!getEmbeddingSpec().equals(other.getEmbeddingSpec())) return false; + + private java.lang.Object branch_ = ""; + + /** + * + * + *
            +     * The branch resource name, such as
            +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
            +     *
            +     * Use `default_branch` as the branch ID or leave this field empty, to search
            +     * documents under the default branch.
            +     * 
            + * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * + * @return The branch. + */ + public java.lang.String getBranch() { + java.lang.Object ref = branch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + branch_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - if (!getRankingExpression().equals(other.getRankingExpression())) return false; - if (rankingExpressionBackend_ != other.rankingExpressionBackend_) return false; - if (getSafeSearch() != other.getSafeSearch()) return false; - if (!internalGetUserLabels().equals(other.internalGetUserLabels())) return false; - if (hasNaturalLanguageQueryUnderstandingSpec() - != other.hasNaturalLanguageQueryUnderstandingSpec()) return false; - if (hasNaturalLanguageQueryUnderstandingSpec()) { - if (!getNaturalLanguageQueryUnderstandingSpec() - .equals(other.getNaturalLanguageQueryUnderstandingSpec())) return false; + + /** + * + * + *
            +     * The branch resource name, such as
            +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
            +     *
            +     * Use `default_branch` as the branch ID or leave this field empty, to search
            +     * documents under the default branch.
            +     * 
            + * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for branch. + */ + public com.google.protobuf.ByteString getBranchBytes() { + java.lang.Object ref = branch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + branch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - if (hasSearchAsYouTypeSpec() != other.hasSearchAsYouTypeSpec()) return false; - if (hasSearchAsYouTypeSpec()) { - if (!getSearchAsYouTypeSpec().equals(other.getSearchAsYouTypeSpec())) return false; + + /** + * + * + *
            +     * The branch resource name, such as
            +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
            +     *
            +     * Use `default_branch` as the branch ID or leave this field empty, to search
            +     * documents under the default branch.
            +     * 
            + * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The branch to set. + * @return This builder for chaining. + */ + public Builder setBranch(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + branch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - if (!getSession().equals(other.getSession())) return false; - if (hasSessionSpec() != other.hasSessionSpec()) return false; - if (hasSessionSpec()) { - if (!getSessionSpec().equals(other.getSessionSpec())) return false; + + /** + * + * + *
            +     * The branch resource name, such as
            +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
            +     *
            +     * Use `default_branch` as the branch ID or leave this field empty, to search
            +     * documents under the default branch.
            +     * 
            + * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearBranch() { + branch_ = getDefaultInstance().getBranch(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; } - if (relevanceThreshold_ != other.relevanceThreshold_) return false; - if (hasPersonalizationSpec() != other.hasPersonalizationSpec()) return false; - if (hasPersonalizationSpec()) { - if (!getPersonalizationSpec().equals(other.getPersonalizationSpec())) return false; + + /** + * + * + *
            +     * The branch resource name, such as
            +     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
            +     *
            +     * Use `default_branch` as the branch ID or leave this field empty, to search
            +     * documents under the default branch.
            +     * 
            + * + * string branch = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for branch to set. + * @return This builder for chaining. + */ + public Builder setBranchBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + branch_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - 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) + BRANCH_FIELD_NUMBER; - hash = (53 * hash) + getBranch().hashCode(); - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - if (hasImageQuery()) { - hash = (37 * hash) + IMAGE_QUERY_FIELD_NUMBER; - hash = (53 * hash) + getImageQuery().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) + 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(); + private java.lang.Object query_ = ""; + + /** + * + * + *
            +     * Raw search query.
            +     * 
            + * + * string query = 3; + * + * @return The query. + */ + public java.lang.String getQuery() { + java.lang.Object ref = query_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + query_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + CANONICAL_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getCanonicalFilter().hashCode(); - hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; - hash = (53 * hash) + getOrderBy().hashCode(); - if (hasUserInfo()) { - hash = (37 * hash) + USER_INFO_FIELD_NUMBER; - hash = (53 * hash) + getUserInfo().hashCode(); + + /** + * + * + *
            +     * Raw search query.
            +     * 
            + * + * string query = 3; + * + * @return The bytes for query. + */ + public com.google.protobuf.ByteString getQueryBytes() { + java.lang.Object ref = query_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + query_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; - hash = (53 * hash) + getLanguageCode().hashCode(); - hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; - hash = (53 * hash) + getRegionCode().hashCode(); - if (getFacetSpecsCount() > 0) { - hash = (37 * hash) + FACET_SPECS_FIELD_NUMBER; - hash = (53 * hash) + getFacetSpecsList().hashCode(); + + /** + * + * + *
            +     * Raw search query.
            +     * 
            + * + * string query = 3; + * + * @param value The query to set. + * @return This builder for chaining. + */ + public Builder setQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } - if (hasBoostSpec()) { - hash = (37 * hash) + BOOST_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getBoostSpec().hashCode(); + + /** + * + * + *
            +     * Raw search query.
            +     * 
            + * + * string query = 3; + * + * @return This builder for chaining. + */ + public Builder clearQuery() { + query_ = getDefaultInstance().getQuery(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; } - if (!internalGetParams().getMap().isEmpty()) { - hash = (37 * hash) + PARAMS_FIELD_NUMBER; - hash = (53 * hash) + internalGetParams().hashCode(); + + /** + * + * + *
            +     * Raw search query.
            +     * 
            + * + * string query = 3; + * + * @param value The bytes for query to set. + * @return This builder for chaining. + */ + public Builder setQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + query_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } - if (hasQueryExpansionSpec()) { - hash = (37 * hash) + QUERY_EXPANSION_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getQueryExpansionSpec().hashCode(); + + private com.google.protobuf.LazyStringArrayList pageCategories_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePageCategoriesIsMutable() { + if (!pageCategories_.isModifiable()) { + pageCategories_ = new com.google.protobuf.LazyStringArrayList(pageCategories_); + } + bitField0_ |= 0x00000008; } - if (hasSpellCorrectionSpec()) { - hash = (37 * hash) + SPELL_CORRECTION_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSpellCorrectionSpec().hashCode(); + + /** + * + * + *
            +     * Optional. The categories associated with a category page. Must be set for
            +     * category navigation queries to achieve good search quality. The format
            +     * should be the same as
            +     * [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category].
            +     * This field is the equivalent of the query for browse (navigation) queries.
            +     * It's used by the browse model when the query is empty.
            +     *
            +     * If the field is empty, it will not be used by the browse model.
            +     * If the field contains more than one element, only the first element will
            +     * be used.
            +     *
            +     * To represent full path of a category, use '>' character to separate
            +     * different hierarchies. If '>' is part of the category name, replace it with
            +     * other character(s).
            +     * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
            +     * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
            +     * > Founders Edition`
            +     * 
            + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pageCategories. + */ + public com.google.protobuf.ProtocolStringList getPageCategoriesList() { + pageCategories_.makeImmutable(); + return pageCategories_; } - hash = (37 * hash) + USER_PSEUDO_ID_FIELD_NUMBER; - hash = (53 * hash) + getUserPseudoId().hashCode(); - if (hasContentSearchSpec()) { - hash = (37 * hash) + CONTENT_SEARCH_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getContentSearchSpec().hashCode(); + + /** + * + * + *
            +     * Optional. The categories associated with a category page. Must be set for
            +     * category navigation queries to achieve good search quality. The format
            +     * should be the same as
            +     * [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category].
            +     * This field is the equivalent of the query for browse (navigation) queries.
            +     * It's used by the browse model when the query is empty.
            +     *
            +     * If the field is empty, it will not be used by the browse model.
            +     * If the field contains more than one element, only the first element will
            +     * be used.
            +     *
            +     * To represent full path of a category, use '>' character to separate
            +     * different hierarchies. If '>' is part of the category name, replace it with
            +     * other character(s).
            +     * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
            +     * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
            +     * > Founders Edition`
            +     * 
            + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pageCategories. + */ + public int getPageCategoriesCount() { + return pageCategories_.size(); } - if (hasEmbeddingSpec()) { - hash = (37 * hash) + EMBEDDING_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getEmbeddingSpec().hashCode(); + + /** + * + * + *
            +     * Optional. The categories associated with a category page. Must be set for
            +     * category navigation queries to achieve good search quality. The format
            +     * should be the same as
            +     * [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category].
            +     * This field is the equivalent of the query for browse (navigation) queries.
            +     * It's used by the browse model when the query is empty.
            +     *
            +     * If the field is empty, it will not be used by the browse model.
            +     * If the field contains more than one element, only the first element will
            +     * be used.
            +     *
            +     * To represent full path of a category, use '>' character to separate
            +     * different hierarchies. If '>' is part of the category name, replace it with
            +     * other character(s).
            +     * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
            +     * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
            +     * > Founders Edition`
            +     * 
            + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + public java.lang.String getPageCategories(int index) { + return pageCategories_.get(index); } - hash = (37 * hash) + RANKING_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getRankingExpression().hashCode(); - hash = (37 * hash) + RANKING_EXPRESSION_BACKEND_FIELD_NUMBER; - hash = (53 * hash) + rankingExpressionBackend_; - hash = (37 * hash) + SAFE_SEARCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSafeSearch()); - if (!internalGetUserLabels().getMap().isEmpty()) { - hash = (37 * hash) + USER_LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetUserLabels().hashCode(); + + /** + * + * + *
            +     * Optional. The categories associated with a category page. Must be set for
            +     * category navigation queries to achieve good search quality. The format
            +     * should be the same as
            +     * [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category].
            +     * This field is the equivalent of the query for browse (navigation) queries.
            +     * It's used by the browse model when the query is empty.
            +     *
            +     * If the field is empty, it will not be used by the browse model.
            +     * If the field contains more than one element, only the first element will
            +     * be used.
            +     *
            +     * To represent full path of a category, use '>' character to separate
            +     * different hierarchies. If '>' is part of the category name, replace it with
            +     * other character(s).
            +     * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
            +     * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
            +     * > Founders Edition`
            +     * 
            + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + public com.google.protobuf.ByteString getPageCategoriesBytes(int index) { + return pageCategories_.getByteString(index); } - if (hasNaturalLanguageQueryUnderstandingSpec()) { - hash = (37 * hash) + NATURAL_LANGUAGE_QUERY_UNDERSTANDING_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getNaturalLanguageQueryUnderstandingSpec().hashCode(); + + /** + * + * + *
            +     * Optional. The categories associated with a category page. Must be set for
            +     * category navigation queries to achieve good search quality. The format
            +     * should be the same as
            +     * [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category].
            +     * This field is the equivalent of the query for browse (navigation) queries.
            +     * It's used by the browse model when the query is empty.
            +     *
            +     * If the field is empty, it will not be used by the browse model.
            +     * If the field contains more than one element, only the first element will
            +     * be used.
            +     *
            +     * To represent full path of a category, use '>' character to separate
            +     * different hierarchies. If '>' is part of the category name, replace it with
            +     * other character(s).
            +     * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
            +     * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
            +     * > Founders Edition`
            +     * 
            + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The pageCategories to set. + * @return This builder for chaining. + */ + public Builder setPageCategories(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePageCategoriesIsMutable(); + pageCategories_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; } - if (hasSearchAsYouTypeSpec()) { - hash = (37 * hash) + SEARCH_AS_YOU_TYPE_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSearchAsYouTypeSpec().hashCode(); + + /** + * + * + *
            +     * Optional. The categories associated with a category page. Must be set for
            +     * category navigation queries to achieve good search quality. The format
            +     * should be the same as
            +     * [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category].
            +     * This field is the equivalent of the query for browse (navigation) queries.
            +     * It's used by the browse model when the query is empty.
            +     *
            +     * If the field is empty, it will not be used by the browse model.
            +     * If the field contains more than one element, only the first element will
            +     * be used.
            +     *
            +     * To represent full path of a category, use '>' character to separate
            +     * different hierarchies. If '>' is part of the category name, replace it with
            +     * other character(s).
            +     * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
            +     * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
            +     * > Founders Edition`
            +     * 
            + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageCategories to add. + * @return This builder for chaining. + */ + public Builder addPageCategories(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePageCategoriesIsMutable(); + pageCategories_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; } - hash = (37 * hash) + SESSION_FIELD_NUMBER; - hash = (53 * hash) + getSession().hashCode(); - if (hasSessionSpec()) { - hash = (37 * hash) + SESSION_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSessionSpec().hashCode(); + + /** + * + * + *
            +     * Optional. The categories associated with a category page. Must be set for
            +     * category navigation queries to achieve good search quality. The format
            +     * should be the same as
            +     * [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category].
            +     * This field is the equivalent of the query for browse (navigation) queries.
            +     * It's used by the browse model when the query is empty.
            +     *
            +     * If the field is empty, it will not be used by the browse model.
            +     * If the field contains more than one element, only the first element will
            +     * be used.
            +     *
            +     * To represent full path of a category, use '>' character to separate
            +     * different hierarchies. If '>' is part of the category name, replace it with
            +     * other character(s).
            +     * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
            +     * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
            +     * > Founders Edition`
            +     * 
            + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The pageCategories to add. + * @return This builder for chaining. + */ + public Builder addAllPageCategories(java.lang.Iterable values) { + ensurePageCategoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pageCategories_); + bitField0_ |= 0x00000008; + onChanged(); + return this; } - hash = (37 * hash) + RELEVANCE_THRESHOLD_FIELD_NUMBER; - hash = (53 * hash) + relevanceThreshold_; - if (hasPersonalizationSpec()) { - hash = (37 * hash) + PERSONALIZATION_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getPersonalizationSpec().hashCode(); + + /** + * + * + *
            +     * Optional. The categories associated with a category page. Must be set for
            +     * category navigation queries to achieve good search quality. The format
            +     * should be the same as
            +     * [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category].
            +     * This field is the equivalent of the query for browse (navigation) queries.
            +     * It's used by the browse model when the query is empty.
            +     *
            +     * If the field is empty, it will not be used by the browse model.
            +     * If the field contains more than one element, only the first element will
            +     * be used.
            +     *
            +     * To represent full path of a category, use '>' character to separate
            +     * different hierarchies. If '>' is part of the category name, replace it with
            +     * other character(s).
            +     * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
            +     * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
            +     * > Founders Edition`
            +     * 
            + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageCategories() { + pageCategories_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +     * Optional. The categories associated with a category page. Must be set for
            +     * category navigation queries to achieve good search quality. The format
            +     * should be the same as
            +     * [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category].
            +     * This field is the equivalent of the query for browse (navigation) queries.
            +     * It's used by the browse model when the query is empty.
            +     *
            +     * If the field is empty, it will not be used by the browse model.
            +     * If the field contains more than one element, only the first element will
            +     * be used.
            +     *
            +     * To represent full path of a category, use '>' character to separate
            +     * different hierarchies. If '>' is part of the category name, replace it with
            +     * other character(s).
            +     * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
            +     * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
            +     * > Founders Edition`
            +     * 
            + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the pageCategories to add. + * @return This builder for chaining. + */ + public Builder addPageCategoriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePageCategoriesIsMutable(); + pageCategories_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery imageQuery_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder> + imageQueryBuilder_; - public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +     * Raw image query.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * + * @return Whether the imageQuery field is set. + */ + public boolean hasImageQuery() { + return ((bitField0_ & 0x00000010) != 0); + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +     * Raw image query.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * + * @return The imageQuery. + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery getImageQuery() { + if (imageQueryBuilder_ == null) { + return imageQuery_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() + : imageQuery_; + } else { + return imageQueryBuilder_.getMessage(); + } + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +     * Raw image query.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + */ + public Builder setImageQuery( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery value) { + if (imageQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + imageQuery_ = value; + } else { + imageQueryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + /** + * + * + *
            +     * Raw image query.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + */ + public Builder setImageQuery( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder builderForValue) { + if (imageQueryBuilder_ == null) { + imageQuery_ = builderForValue.build(); + } else { + imageQueryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +     * Raw image query.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + */ + public Builder mergeImageQuery( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery value) { + if (imageQueryBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && imageQuery_ != null + && imageQuery_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery + .getDefaultInstance()) { + getImageQueryBuilder().mergeFrom(value); + } else { + imageQuery_ = value; + } + } else { + imageQueryBuilder_.mergeFrom(value); + } + if (imageQuery_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +     * Raw image query.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + */ + public Builder clearImageQuery() { + bitField0_ = (bitField0_ & ~0x00000010); + imageQuery_ = null; + if (imageQueryBuilder_ != null) { + imageQueryBuilder_.dispose(); + imageQueryBuilder_ = null; + } + onChanged(); + return this; + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + /** + * + * + *
            +     * Raw image query.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder + getImageQueryBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetImageQueryFieldBuilder().getBuilder(); + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + /** + * + * + *
            +     * Raw image query.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder + getImageQueryOrBuilder() { + if (imageQueryBuilder_ != null) { + return imageQueryBuilder_.getMessageOrBuilder(); + } else { + return imageQuery_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() + : imageQuery_; + } + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + /** + * + * + *
            +     * Raw image query.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder> + internalGetImageQueryFieldBuilder() { + if (imageQueryBuilder_ == null) { + imageQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder>( + getImageQuery(), getParentForChildren(), isClean()); + imageQuery_ = null; + } + return imageQueryBuilder_; + } - public static com.google.cloud.discoveryengine.v1beta.SearchRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + private int pageSize_; - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + /** + * + * + *
            +     * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
            +     * to return. The maximum allowed value depends on the data type. Values above
            +     * the maximum value are coerced to the maximum value.
            +     *
            +     * * Websites with basic indexing: Default `10`, Maximum `25`.
            +     * * Websites with advanced indexing: Default `25`, Maximum `50`.
            +     * * Other: Default `50`, Maximum `100`.
            +     *
            +     * If this field is negative, an  `INVALID_ARGUMENT` is returned.
            +     * 
            + * + * int32 page_size = 4; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + /** + * + * + *
            +     * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
            +     * to return. The maximum allowed value depends on the data type. Values above
            +     * the maximum value are coerced to the maximum value.
            +     *
            +     * * Websites with basic indexing: Default `10`, Maximum `25`.
            +     * * Websites with advanced indexing: Default `25`, Maximum `50`.
            +     * * Other: Default `50`, Maximum `100`.
            +     *
            +     * If this field is negative, an  `INVALID_ARGUMENT` is returned.
            +     * 
            + * + * int32 page_size = 4; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { - public static Builder newBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + pageSize_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + /** + * + * + *
            +     * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
            +     * to return. The maximum allowed value depends on the data type. Values above
            +     * the maximum value are coerced to the maximum value.
            +     *
            +     * * Websites with basic indexing: Default `10`, Maximum `25`.
            +     * * Websites with advanced indexing: Default `25`, Maximum `50`.
            +     * * Other: Default `50`, Maximum `100`.
            +     *
            +     * If this field is negative, an  `INVALID_ARGUMENT` is returned.
            +     * 
            + * + * int32 page_size = 4; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000020); + pageSize_ = 0; + onChanged(); + return this; + } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + private java.lang.Object pageToken_ = ""; - /** - * - * - *
            -   * Request message for
            -   * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -   * method.
            -   * 
            - * - * Protobuf type {@code google.cloud.discoveryengine.v1beta.SearchRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchRequest) - com.google.cloud.discoveryengine.v1beta.SearchRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor; + /** + * + * + *
            +     * A page token received from a previous
            +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +     * must match the call that provided the page token. Otherwise, an
            +     * `INVALID_ARGUMENT`  error is returned.
            +     * 
            + * + * string page_token = 5; + * + * @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; + } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 11: - return internalGetParams(); - case 22: - return internalGetUserLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); + /** + * + * + *
            +     * A page token received from a previous
            +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +     * must match the call that provided the page token. Otherwise, an
            +     * `INVALID_ARGUMENT`  error is returned.
            +     * 
            + * + * string page_token = 5; + * + * @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; } } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 11: - return internalGetMutableParams(); - case 22: - return internalGetMutableUserLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); + /** + * + * + *
            +     * A page token received from a previous
            +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +     * must match the call that provided the page token. Otherwise, an
            +     * `INVALID_ARGUMENT`  error is returned.
            +     * 
            + * + * string page_token = 5; + * + * @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_ |= 0x00000040; + onChanged(); + return this; } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchRequest.class, - com.google.cloud.discoveryengine.v1beta.SearchRequest.Builder.class); + /** + * + * + *
            +     * A page token received from a previous
            +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +     * must match the call that provided the page token. Otherwise, an
            +     * `INVALID_ARGUMENT`  error is returned.
            +     * 
            + * + * string page_token = 5; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; } - // Construct using com.google.cloud.discoveryengine.v1beta.SearchRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + /** + * + * + *
            +     * A page token received from a previous
            +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +     * call. Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to
            +     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            +     * must match the call that provided the page token. Otherwise, an
            +     * `INVALID_ARGUMENT`  error is returned.
            +     * 
            + * + * string page_token = 5; + * + * @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_ |= 0x00000040; + onChanged(); + return this; } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + private int offset_; - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetImageQueryFieldBuilder(); - internalGetDataStoreSpecsFieldBuilder(); - internalGetUserInfoFieldBuilder(); - internalGetFacetSpecsFieldBuilder(); - internalGetBoostSpecFieldBuilder(); - internalGetQueryExpansionSpecFieldBuilder(); - internalGetSpellCorrectionSpecFieldBuilder(); - internalGetContentSearchSpecFieldBuilder(); - internalGetEmbeddingSpecFieldBuilder(); - internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder(); - internalGetSearchAsYouTypeSpecFieldBuilder(); - internalGetSessionSpecFieldBuilder(); - internalGetPersonalizationSpecFieldBuilder(); - } + /** + * + * + *
            +     * A 0-indexed integer that specifies the current offset (that is, starting
            +     * result location, amongst the
            +     * [Document][google.cloud.discoveryengine.v1beta.Document]s deemed by the API
            +     * as relevant) in search results. This field is only considered if
            +     * [page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
            +     * is unset.
            +     *
            +     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
            +     *
            +     * A large offset may be capped to a reasonable threshold.
            +     * 
            + * + * int32 offset = 6; + * + * @return The offset. + */ + @java.lang.Override + public int getOffset() { + return offset_; } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - bitField1_ = 0; - servingConfig_ = ""; - branch_ = ""; - query_ = ""; - imageQuery_ = null; - if (imageQueryBuilder_ != null) { - imageQueryBuilder_.dispose(); - imageQueryBuilder_ = null; - } - pageSize_ = 0; - pageToken_ = ""; - offset_ = 0; - oneBoxPageSize_ = 0; - if (dataStoreSpecsBuilder_ == null) { - dataStoreSpecs_ = java.util.Collections.emptyList(); - } else { - dataStoreSpecs_ = null; - dataStoreSpecsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000100); - filter_ = ""; - canonicalFilter_ = ""; - orderBy_ = ""; - userInfo_ = null; - if (userInfoBuilder_ != null) { - userInfoBuilder_.dispose(); - userInfoBuilder_ = null; - } - languageCode_ = ""; - regionCode_ = ""; - if (facetSpecsBuilder_ == null) { - facetSpecs_ = java.util.Collections.emptyList(); - } else { - facetSpecs_ = null; - facetSpecsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00008000); - boostSpec_ = null; - if (boostSpecBuilder_ != null) { - boostSpecBuilder_.dispose(); - boostSpecBuilder_ = null; - } - internalGetMutableParams().clear(); - queryExpansionSpec_ = null; - if (queryExpansionSpecBuilder_ != null) { - queryExpansionSpecBuilder_.dispose(); - queryExpansionSpecBuilder_ = null; - } - spellCorrectionSpec_ = null; - if (spellCorrectionSpecBuilder_ != null) { - spellCorrectionSpecBuilder_.dispose(); - spellCorrectionSpecBuilder_ = null; - } - userPseudoId_ = ""; - contentSearchSpec_ = null; - if (contentSearchSpecBuilder_ != null) { - contentSearchSpecBuilder_.dispose(); - contentSearchSpecBuilder_ = null; - } - embeddingSpec_ = null; - if (embeddingSpecBuilder_ != null) { - embeddingSpecBuilder_.dispose(); - embeddingSpecBuilder_ = null; - } - rankingExpression_ = ""; - rankingExpressionBackend_ = 0; - safeSearch_ = false; - internalGetMutableUserLabels().clear(); - naturalLanguageQueryUnderstandingSpec_ = null; - if (naturalLanguageQueryUnderstandingSpecBuilder_ != null) { - naturalLanguageQueryUnderstandingSpecBuilder_.dispose(); - naturalLanguageQueryUnderstandingSpecBuilder_ = null; - } - searchAsYouTypeSpec_ = null; - if (searchAsYouTypeSpecBuilder_ != null) { - searchAsYouTypeSpecBuilder_.dispose(); - searchAsYouTypeSpecBuilder_ = null; - } - session_ = ""; - sessionSpec_ = null; - if (sessionSpecBuilder_ != null) { - sessionSpecBuilder_.dispose(); - sessionSpecBuilder_ = null; - } - relevanceThreshold_ = 0; - personalizationSpec_ = null; - if (personalizationSpecBuilder_ != null) { - personalizationSpecBuilder_.dispose(); - personalizationSpecBuilder_ = null; - } + /** + * + * + *
            +     * A 0-indexed integer that specifies the current offset (that is, starting
            +     * result location, amongst the
            +     * [Document][google.cloud.discoveryengine.v1beta.Document]s deemed by the API
            +     * as relevant) in search results. This field is only considered if
            +     * [page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
            +     * is unset.
            +     *
            +     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
            +     *
            +     * A large offset may be capped to a reasonable threshold.
            +     * 
            + * + * int32 offset = 6; + * + * @param value The offset to set. + * @return This builder for chaining. + */ + public Builder setOffset(int value) { + + offset_ = value; + bitField0_ |= 0x00000080; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor; + /** + * + * + *
            +     * A 0-indexed integer that specifies the current offset (that is, starting
            +     * result location, amongst the
            +     * [Document][google.cloud.discoveryengine.v1beta.Document]s deemed by the API
            +     * as relevant) in search results. This field is only considered if
            +     * [page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
            +     * is unset.
            +     *
            +     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
            +     *
            +     * A large offset may be capped to a reasonable threshold.
            +     * 
            + * + * int32 offset = 6; + * + * @return This builder for chaining. + */ + public Builder clearOffset() { + bitField0_ = (bitField0_ & ~0x00000080); + offset_ = 0; + onChanged(); + 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 com.google.cloud.discoveryengine.v1beta.SearchRequest getDefaultInstanceForType() { - return com.google.cloud.discoveryengine.v1beta.SearchRequest.getDefaultInstance(); + public int getOneBoxPageSize() { + return oneBoxPageSize_; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest build() { - com.google.cloud.discoveryengine.v1beta.SearchRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + /** + * + * + *
            +     * 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_ |= 0x00000100; + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest buildPartial() { - com.google.cloud.discoveryengine.v1beta.SearchRequest result = - new com.google.cloud.discoveryengine.v1beta.SearchRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - if (bitField1_ != 0) { - buildPartial1(result); - } - onBuilt(); - return result; + /** + * + * + *
            +     * 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_ & ~0x00000100); + oneBoxPageSize_ = 0; + onChanged(); + return this; } - private void buildPartialRepeatedFields( - com.google.cloud.discoveryengine.v1beta.SearchRequest result) { - if (dataStoreSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0)) { - dataStoreSpecs_ = java.util.Collections.unmodifiableList(dataStoreSpecs_); - bitField0_ = (bitField0_ & ~0x00000100); - } - result.dataStoreSpecs_ = dataStoreSpecs_; - } else { - result.dataStoreSpecs_ = dataStoreSpecsBuilder_.build(); - } - if (facetSpecsBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0)) { - facetSpecs_ = java.util.Collections.unmodifiableList(facetSpecs_); - bitField0_ = (bitField0_ & ~0x00008000); - } - result.facetSpecs_ = facetSpecs_; - } else { - result.facetSpecs_ = facetSpecsBuilder_.build(); + private java.util.List + dataStoreSpecs_ = java.util.Collections.emptyList(); + + private void ensureDataStoreSpecsIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + dataStoreSpecs_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec>( + dataStoreSpecs_); + bitField0_ |= 0x00000200; } } - private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.servingConfig_ = servingConfig_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.branch_ = branch_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.query_ = query_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.imageQuery_ = imageQueryBuilder_ == null ? imageQuery_ : imageQueryBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.pageToken_ = pageToken_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.offset_ = offset_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.oneBoxPageSize_ = oneBoxPageSize_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.filter_ = filter_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - 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_ & 0x00002000) != 0)) { - result.languageCode_ = languageCode_; - } - if (((from_bitField0_ & 0x00004000) != 0)) { - result.regionCode_ = regionCode_; - } - if (((from_bitField0_ & 0x00010000) != 0)) { - result.boostSpec_ = boostSpecBuilder_ == null ? boostSpec_ : boostSpecBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.params_ = internalGetParams().build(ParamsDefaultEntryHolder.defaultEntry); - } - if (((from_bitField0_ & 0x00040000) != 0)) { - result.queryExpansionSpec_ = - queryExpansionSpecBuilder_ == null - ? queryExpansionSpec_ - : queryExpansionSpecBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x00080000) != 0)) { - result.spellCorrectionSpec_ = - spellCorrectionSpecBuilder_ == null - ? spellCorrectionSpec_ - : spellCorrectionSpecBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00100000) != 0)) { - result.userPseudoId_ = userPseudoId_; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.contentSearchSpec_ = - contentSearchSpecBuilder_ == null - ? contentSearchSpec_ - : contentSearchSpecBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.embeddingSpec_ = - embeddingSpecBuilder_ == null ? embeddingSpec_ : embeddingSpecBuilder_.build(); - to_bitField0_ |= 0x00000040; - } - if (((from_bitField0_ & 0x00800000) != 0)) { - result.rankingExpression_ = rankingExpression_; - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.rankingExpressionBackend_ = rankingExpressionBackend_; - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.safeSearch_ = safeSearch_; - } - if (((from_bitField0_ & 0x04000000) != 0)) { - result.userLabels_ = internalGetUserLabels(); - result.userLabels_.makeImmutable(); - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.naturalLanguageQueryUnderstandingSpec_ = - naturalLanguageQueryUnderstandingSpecBuilder_ == null - ? naturalLanguageQueryUnderstandingSpec_ - : naturalLanguageQueryUnderstandingSpecBuilder_.build(); - to_bitField0_ |= 0x00000080; - } - if (((from_bitField0_ & 0x10000000) != 0)) { - result.searchAsYouTypeSpec_ = - searchAsYouTypeSpecBuilder_ == null - ? searchAsYouTypeSpec_ - : searchAsYouTypeSpecBuilder_.build(); - to_bitField0_ |= 0x00000100; - } - if (((from_bitField0_ & 0x20000000) != 0)) { - result.session_ = session_; - } - if (((from_bitField0_ & 0x40000000) != 0)) { - result.sessionSpec_ = - sessionSpecBuilder_ == null ? sessionSpec_ : sessionSpecBuilder_.build(); - to_bitField0_ |= 0x00000200; - } - if (((from_bitField0_ & 0x80000000) != 0)) { - result.relevanceThreshold_ = relevanceThreshold_; + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> + dataStoreSpecsBuilder_; + + /** + * + * + *
            +     * Specifications that define the specific
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +     * along with configurations for those data stores. This is only considered
            +     * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +     * data stores. For engines with a single data store, the specs directly under
            +     * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +     * be used.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public java.util.List + getDataStoreSpecsList() { + if (dataStoreSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataStoreSpecs_); + } else { + return dataStoreSpecsBuilder_.getMessageList(); } - result.bitField0_ |= to_bitField0_; } - private void buildPartial1(com.google.cloud.discoveryengine.v1beta.SearchRequest result) { - int from_bitField1_ = bitField1_; - int to_bitField0_ = 0; - if (((from_bitField1_ & 0x00000001) != 0)) { - result.personalizationSpec_ = - personalizationSpecBuilder_ == null - ? personalizationSpec_ - : personalizationSpecBuilder_.build(); - to_bitField0_ |= 0x00000400; + /** + * + * + *
            +     * Specifications that define the specific
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +     * along with configurations for those data stores. This is only considered
            +     * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +     * data stores. For engines with a single data store, the specs directly under
            +     * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +     * be used.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public int getDataStoreSpecsCount() { + if (dataStoreSpecsBuilder_ == null) { + return dataStoreSpecs_.size(); + } else { + return dataStoreSpecsBuilder_.getCount(); } - result.bitField0_ |= to_bitField0_; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.discoveryengine.v1beta.SearchRequest) { - return mergeFrom((com.google.cloud.discoveryengine.v1beta.SearchRequest) other); + /** + * + * + *
            +     * Specifications that define the specific
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +     * along with configurations for those data stores. This is only considered
            +     * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +     * data stores. For engines with a single data store, the specs directly under
            +     * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +     * be used.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec getDataStoreSpecs( + int index) { + if (dataStoreSpecsBuilder_ == null) { + return dataStoreSpecs_.get(index); } else { - super.mergeFrom(other); - return this; + return dataStoreSpecsBuilder_.getMessage(index); } } - public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchRequest other) { - if (other == com.google.cloud.discoveryengine.v1beta.SearchRequest.getDefaultInstance()) - return this; - if (!other.getServingConfig().isEmpty()) { - servingConfig_ = other.servingConfig_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getBranch().isEmpty()) { - branch_ = other.branch_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getQuery().isEmpty()) { - query_ = other.query_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasImageQuery()) { - mergeImageQuery(other.getImageQuery()); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.getOffset() != 0) { - setOffset(other.getOffset()); - } - if (other.getOneBoxPageSize() != 0) { - setOneBoxPageSize(other.getOneBoxPageSize()); - } + /** + * + * + *
            +     * Specifications that define the specific
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +     * along with configurations for those data stores. This is only considered
            +     * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +     * data stores. For engines with a single data store, the specs directly under
            +     * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +     * be used.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public Builder setDataStoreSpecs( + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec value) { if (dataStoreSpecsBuilder_ == null) { - if (!other.dataStoreSpecs_.isEmpty()) { - if (dataStoreSpecs_.isEmpty()) { - dataStoreSpecs_ = other.dataStoreSpecs_; - bitField0_ = (bitField0_ & ~0x00000100); - } else { - ensureDataStoreSpecsIsMutable(); - dataStoreSpecs_.addAll(other.dataStoreSpecs_); - } - onChanged(); - } - } else { - if (!other.dataStoreSpecs_.isEmpty()) { - if (dataStoreSpecsBuilder_.isEmpty()) { - dataStoreSpecsBuilder_.dispose(); - dataStoreSpecsBuilder_ = null; - dataStoreSpecs_ = other.dataStoreSpecs_; - bitField0_ = (bitField0_ & ~0x00000100); - dataStoreSpecsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetDataStoreSpecsFieldBuilder() - : null; - } else { - dataStoreSpecsBuilder_.addAllMessages(other.dataStoreSpecs_); - } + if (value == null) { + throw new NullPointerException(); } - } - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - bitField0_ |= 0x00000200; - onChanged(); - } - if (!other.getCanonicalFilter().isEmpty()) { - canonicalFilter_ = other.canonicalFilter_; - bitField0_ |= 0x00000400; - onChanged(); - } - if (!other.getOrderBy().isEmpty()) { - orderBy_ = other.orderBy_; - bitField0_ |= 0x00000800; - onChanged(); - } - if (other.hasUserInfo()) { - mergeUserInfo(other.getUserInfo()); - } - if (!other.getLanguageCode().isEmpty()) { - languageCode_ = other.languageCode_; - bitField0_ |= 0x00002000; - onChanged(); - } - if (!other.getRegionCode().isEmpty()) { - regionCode_ = other.regionCode_; - bitField0_ |= 0x00004000; + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.set(index, value); onChanged(); - } - if (facetSpecsBuilder_ == null) { - if (!other.facetSpecs_.isEmpty()) { - if (facetSpecs_.isEmpty()) { - facetSpecs_ = other.facetSpecs_; - bitField0_ = (bitField0_ & ~0x00008000); - } else { - ensureFacetSpecsIsMutable(); - facetSpecs_.addAll(other.facetSpecs_); - } - onChanged(); - } } else { - if (!other.facetSpecs_.isEmpty()) { - if (facetSpecsBuilder_.isEmpty()) { - facetSpecsBuilder_.dispose(); - facetSpecsBuilder_ = null; - facetSpecs_ = other.facetSpecs_; - bitField0_ = (bitField0_ & ~0x00008000); - facetSpecsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetFacetSpecsFieldBuilder() - : null; - } else { - facetSpecsBuilder_.addAllMessages(other.facetSpecs_); - } - } - } - if (other.hasBoostSpec()) { - mergeBoostSpec(other.getBoostSpec()); - } - internalGetMutableParams().mergeFrom(other.internalGetParams()); - bitField0_ |= 0x00020000; - if (other.hasQueryExpansionSpec()) { - mergeQueryExpansionSpec(other.getQueryExpansionSpec()); - } - if (other.hasSpellCorrectionSpec()) { - mergeSpellCorrectionSpec(other.getSpellCorrectionSpec()); + dataStoreSpecsBuilder_.setMessage(index, value); } - if (!other.getUserPseudoId().isEmpty()) { - userPseudoId_ = other.userPseudoId_; - bitField0_ |= 0x00100000; + return this; + } + + /** + * + * + *
            +     * Specifications that define the specific
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +     * along with configurations for those data stores. This is only considered
            +     * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +     * data stores. For engines with a single data store, the specs directly under
            +     * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +     * be used.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public Builder setDataStoreSpecs( + int index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + builderForValue) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.set(index, builderForValue.build()); onChanged(); + } else { + dataStoreSpecsBuilder_.setMessage(index, builderForValue.build()); } - if (other.hasContentSearchSpec()) { - mergeContentSearchSpec(other.getContentSearchSpec()); - } - if (other.hasEmbeddingSpec()) { - mergeEmbeddingSpec(other.getEmbeddingSpec()); - } - if (!other.getRankingExpression().isEmpty()) { - rankingExpression_ = other.rankingExpression_; - bitField0_ |= 0x00800000; + return this; + } + + /** + * + * + *
            +     * Specifications that define the specific
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +     * along with configurations for those data stores. This is only considered
            +     * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +     * data stores. For engines with a single data store, the specs directly under
            +     * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +     * be used.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public Builder addDataStoreSpecs( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec value) { + if (dataStoreSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(value); onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(value); } - if (other.rankingExpressionBackend_ != 0) { - setRankingExpressionBackendValue(other.getRankingExpressionBackendValue()); - } - if (other.getSafeSearch() != false) { - setSafeSearch(other.getSafeSearch()); - } - internalGetMutableUserLabels().mergeFrom(other.internalGetUserLabels()); - bitField0_ |= 0x04000000; - if (other.hasNaturalLanguageQueryUnderstandingSpec()) { - mergeNaturalLanguageQueryUnderstandingSpec( - other.getNaturalLanguageQueryUnderstandingSpec()); + return this; + } + + /** + * + * + *
            +     * Specifications that define the specific
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +     * along with configurations for those data stores. This is only considered
            +     * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +     * data stores. For engines with a single data store, the specs directly under
            +     * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +     * be used.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public Builder addDataStoreSpecs( + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec value) { + if (dataStoreSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(index, value); + onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(index, value); } - if (other.hasSearchAsYouTypeSpec()) { - mergeSearchAsYouTypeSpec(other.getSearchAsYouTypeSpec()); + return this; + } + + /** + * + * + *
            +     * Specifications that define the specific
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +     * along with configurations for those data stores. This is only considered
            +     * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +     * data stores. For engines with a single data store, the specs directly under
            +     * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +     * be used.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public Builder addDataStoreSpecs( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + builderForValue) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(builderForValue.build()); + onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(builderForValue.build()); } - if (!other.getSession().isEmpty()) { - session_ = other.session_; - bitField0_ |= 0x20000000; + return this; + } + + /** + * + * + *
            +     * Specifications that define the specific
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +     * along with configurations for those data stores. This is only considered
            +     * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +     * data stores. For engines with a single data store, the specs directly under
            +     * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +     * be used.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public Builder addDataStoreSpecs( + int index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + builderForValue) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(index, builderForValue.build()); onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(index, builderForValue.build()); } - if (other.hasSessionSpec()) { - mergeSessionSpec(other.getSessionSpec()); + return this; + } + + /** + * + * + *
            +     * Specifications that define the specific
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +     * along with configurations for those data stores. This is only considered
            +     * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +     * data stores. For engines with a single data store, the specs directly under
            +     * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +     * be used.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public Builder addAllDataStoreSpecs( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec> + values) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStoreSpecs_); + onChanged(); + } else { + dataStoreSpecsBuilder_.addAllMessages(values); } - if (other.relevanceThreshold_ != 0) { - setRelevanceThresholdValue(other.getRelevanceThresholdValue()); + return this; + } + + /** + * + * + *
            +     * Specifications that define the specific
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +     * along with configurations for those data stores. This is only considered
            +     * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +     * data stores. For engines with a single data store, the specs directly under
            +     * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +     * be used.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public Builder clearDataStoreSpecs() { + if (dataStoreSpecsBuilder_ == null) { + dataStoreSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + dataStoreSpecsBuilder_.clear(); } - if (other.hasPersonalizationSpec()) { - mergePersonalizationSpec(other.getPersonalizationSpec()); + return this; + } + + /** + * + * + *
            +     * Specifications that define the specific
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +     * along with configurations for those data stores. This is only considered
            +     * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +     * data stores. For engines with a single data store, the specs directly under
            +     * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +     * be used.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public Builder removeDataStoreSpecs(int index) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.remove(index); + onChanged(); + } else { + dataStoreSpecsBuilder_.remove(index); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
            +     * Specifications that define the specific
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +     * along with configurations for those data stores. This is only considered
            +     * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +     * data stores. For engines with a single data store, the specs directly under
            +     * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +     * be used.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + getDataStoreSpecsBuilder(int index) { + return internalGetDataStoreSpecsFieldBuilder().getBuilder(index); } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + /** + * + * + *
            +     * Specifications that define the specific
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +     * along with configurations for those data stores. This is only considered
            +     * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +     * data stores. For engines with a single data store, the specs directly under
            +     * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +     * be used.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder + getDataStoreSpecsOrBuilder(int index) { + if (dataStoreSpecsBuilder_ == null) { + return dataStoreSpecs_.get(index); + } else { + return dataStoreSpecsBuilder_.getMessageOrBuilder(index); } - 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 18: - { - branch_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - query_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000010; - break; - } // case 32 - case 42: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 42 - case 48: - { - offset_ = input.readInt32(); - bitField0_ |= 0x00000040; - break; - } // case 48 - case 58: - { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 58 - case 66: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; - break; - } // case 66 - case 74: - { - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.parser(), - extensionRegistry); - if (facetSpecsBuilder_ == null) { - ensureFacetSpecsIsMutable(); - facetSpecs_.add(m); - } else { - facetSpecsBuilder_.addMessage(m); - } - break; - } // case 74 - case 82: - { - input.readMessage( - internalGetBoostSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; - break; - } // case 82 - case 90: - { - com.google.protobuf.MapEntry params__ = - input.readMessage( - ParamsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableParams() - .ensureBuilderMap() - .put(params__.getKey(), params__.getValue()); - bitField0_ |= 0x00020000; - break; - } // case 90 - case 106: - { - input.readMessage( - internalGetQueryExpansionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; - break; - } // case 106 - case 114: - { - input.readMessage( - internalGetSpellCorrectionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; - break; - } // case 114 - case 122: - { - userPseudoId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00100000; - break; - } // case 122 - case 154: - { - input.readMessage( - internalGetImageQueryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 154 - case 160: - { - safeSearch_ = input.readBool(); - bitField0_ |= 0x02000000; - break; - } // case 160 - case 170: - { - input.readMessage( - internalGetUserInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 170 - case 178: - { - com.google.protobuf.MapEntry userLabels__ = - input.readMessage( - UserLabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableUserLabels() - .getMutableMap() - .put(userLabels__.getKey(), userLabels__.getValue()); - bitField0_ |= 0x04000000; - break; - } // case 178 - case 186: - { - input.readMessage( - internalGetEmbeddingSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00400000; - break; - } // case 186 - case 194: - { - input.readMessage( - internalGetContentSearchSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; - break; - } // case 194 - case 210: - { - rankingExpression_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00800000; - break; - } // case 210 - case 226: - { - input.readMessage( - internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x08000000; - break; - } // case 226 - case 234: - { - canonicalFilter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 234 - case 250: - { - input.readMessage( - internalGetSearchAsYouTypeSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; - break; - } // case 250 - case 258: - { - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec m = - input.readMessage( - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec - .parser(), - extensionRegistry); - if (dataStoreSpecsBuilder_ == null) { - ensureDataStoreSpecsIsMutable(); - dataStoreSpecs_.add(m); - } else { - dataStoreSpecsBuilder_.addMessage(m); - } - break; - } // case 258 - case 282: - { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; - break; - } // case 282 - case 290: - { - regionCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; - break; - } // case 290 - case 330: - { - session_ = input.readStringRequireUtf8(); - bitField0_ |= 0x20000000; - break; - } // case 330 - case 338: - { - input.readMessage( - internalGetSessionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x40000000; - break; - } // case 338 - case 352: - { - relevanceThreshold_ = input.readEnum(); - bitField0_ |= 0x80000000; - break; - } // case 352 - case 370: - { - input.readMessage( - internalGetPersonalizationSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000001; - break; - } // case 370 - case 376: - { - oneBoxPageSize_ = input.readInt32(); - bitField0_ |= 0x00000080; - break; - } // case 376 - case 424: - { - rankingExpressionBackend_ = input.readEnum(); - bitField0_ |= 0x01000000; - break; - } // case 424 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally + } + + /** + * + * + *
            +     * Specifications that define the specific
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +     * along with configurations for those data stores. This is only considered
            +     * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +     * data stores. For engines with a single data store, the specs directly under
            +     * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +     * be used.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> + getDataStoreSpecsOrBuilderList() { + if (dataStoreSpecsBuilder_ != null) { + return dataStoreSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataStoreSpecs_); + } + } + + /** + * + * + *
            +     * Specifications that define the specific
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +     * along with configurations for those data stores. This is only considered
            +     * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +     * data stores. For engines with a single data store, the specs directly under
            +     * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +     * be used.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + addDataStoreSpecsBuilder() { + return internalGetDataStoreSpecsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + .getDefaultInstance()); + } + + /** + * + * + *
            +     * Specifications that define the specific
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +     * along with configurations for those data stores. This is only considered
            +     * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +     * data stores. For engines with a single data store, the specs directly under
            +     * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +     * be used.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + addDataStoreSpecsBuilder(int index) { + return internalGetDataStoreSpecsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + .getDefaultInstance()); + } + + /** + * + * + *
            +     * Specifications that define the specific
            +     * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +     * along with configurations for those data stores. This is only considered
            +     * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +     * data stores. For engines with a single data store, the specs directly under
            +     * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +     * be used.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder> + getDataStoreSpecsBuilderList() { + return internalGetDataStoreSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> + internalGetDataStoreSpecsFieldBuilder() { + if (dataStoreSpecsBuilder_ == null) { + dataStoreSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder>( + dataStoreSpecs_, + ((bitField0_ & 0x00000200) != 0), + getParentForChildren(), + isClean()); + dataStoreSpecs_ = null; + } + return dataStoreSpecsBuilder_; + } + + private int numResultsPerDataStore_; + + /** + * + * + *
            +     * Optional. The maximum number of results to retrieve from each data store.
            +     * If not specified, it will use the
            +     * [SearchRequest.DataStoreSpec.num_results][google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.num_results]
            +     * if provided, otherwise there is no limit.
            +     * 
            + * + * int32 num_results_per_data_store = 65 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The numResultsPerDataStore. + */ + @java.lang.Override + public int getNumResultsPerDataStore() { + return numResultsPerDataStore_; + } + + /** + * + * + *
            +     * Optional. The maximum number of results to retrieve from each data store.
            +     * If not specified, it will use the
            +     * [SearchRequest.DataStoreSpec.num_results][google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.num_results]
            +     * if provided, otherwise there is no limit.
            +     * 
            + * + * int32 num_results_per_data_store = 65 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The numResultsPerDataStore to set. + * @return This builder for chaining. + */ + public Builder setNumResultsPerDataStore(int value) { + + numResultsPerDataStore_ = value; + bitField0_ |= 0x00000400; + onChanged(); return this; } - private int bitField0_; - private int bitField1_; + /** + * + * + *
            +     * Optional. The maximum number of results to retrieve from each data store.
            +     * If not specified, it will use the
            +     * [SearchRequest.DataStoreSpec.num_results][google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.num_results]
            +     * if provided, otherwise there is no limit.
            +     * 
            + * + * int32 num_results_per_data_store = 65 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNumResultsPerDataStore() { + bitField0_ = (bitField0_ & ~0x00000400); + numResultsPerDataStore_ = 0; + onChanged(); + return this; + } - private java.lang.Object servingConfig_ = ""; + private java.lang.Object filter_ = ""; /** * * *
            -     * Required. The resource name of the Search serving config, such as
            -     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
            -     * or
            -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
            -     * This field is used to identify the serving configuration name, set
            -     * of models used to make the search.
            +     * The filter syntax consists of an expression language for constructing a
            +     * predicate from one or more fields of the documents being filtered. Filter
            +     * expression is case-sensitive.
            +     *
            +     * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +     *
            +     * Filtering in Vertex AI Search is done by mapping the LHS filter key to a
            +     * key property defined in the Vertex AI Search backend -- this mapping is
            +     * defined by the customer in their schema. For example a media customer might
            +     * have a field 'name' in their schema. In this case the filter would look
            +     * like this: filter --> name:'ANY("king kong")'
            +     *
            +     * For more information about filtering including syntax and filter
            +     * operators, see
            +     * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
                  * 
            * - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * string filter = 7; * - * @return The servingConfig. + * @return The filter. */ - public java.lang.String getServingConfig() { - java.lang.Object ref = servingConfig_; + 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(); - servingConfig_ = s; + filter_ = s; return s; } else { return (java.lang.String) ref; @@ -34377,26 +46339,33 @@ public java.lang.String getServingConfig() { * * *
            -     * Required. The resource name of the Search serving config, such as
            -     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
            -     * or
            -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
            -     * This field is used to identify the serving configuration name, set
            -     * of models used to make the search.
            +     * The filter syntax consists of an expression language for constructing a
            +     * predicate from one or more fields of the documents being filtered. Filter
            +     * expression is case-sensitive.
            +     *
            +     * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +     *
            +     * Filtering in Vertex AI Search is done by mapping the LHS filter key to a
            +     * key property defined in the Vertex AI Search backend -- this mapping is
            +     * defined by the customer in their schema. For example a media customer might
            +     * have a field 'name' in their schema. In this case the filter would look
            +     * like this: filter --> name:'ANY("king kong")'
            +     *
            +     * For more information about filtering including syntax and filter
            +     * operators, see
            +     * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
                  * 
            * - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * string filter = 7; * - * @return The bytes for servingConfig. + * @return The bytes for filter. */ - public com.google.protobuf.ByteString getServingConfigBytes() { - java.lang.Object ref = servingConfig_; + 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); - servingConfig_ = b; + filter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -34407,27 +46376,34 @@ public com.google.protobuf.ByteString getServingConfigBytes() { * * *
            -     * Required. The resource name of the Search serving config, such as
            -     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
            -     * or
            -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
            -     * This field is used to identify the serving configuration name, set
            -     * of models used to make the search.
            +     * The filter syntax consists of an expression language for constructing a
            +     * predicate from one or more fields of the documents being filtered. Filter
            +     * expression is case-sensitive.
            +     *
            +     * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +     *
            +     * Filtering in Vertex AI Search is done by mapping the LHS filter key to a
            +     * key property defined in the Vertex AI Search backend -- this mapping is
            +     * defined by the customer in their schema. For example a media customer might
            +     * have a field 'name' in their schema. In this case the filter would look
            +     * like this: filter --> name:'ANY("king kong")'
            +     *
            +     * For more information about filtering including syntax and filter
            +     * operators, see
            +     * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
                  * 
            * - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * string filter = 7; * - * @param value The servingConfig to set. + * @param value The filter to set. * @return This builder for chaining. */ - public Builder setServingConfig(java.lang.String value) { + public Builder setFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - servingConfig_ = value; - bitField0_ |= 0x00000001; + filter_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -34436,23 +46412,30 @@ public Builder setServingConfig(java.lang.String value) { * * *
            -     * Required. The resource name of the Search serving config, such as
            -     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
            -     * or
            -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
            -     * This field is used to identify the serving configuration name, set
            -     * of models used to make the search.
            +     * The filter syntax consists of an expression language for constructing a
            +     * predicate from one or more fields of the documents being filtered. Filter
            +     * expression is case-sensitive.
            +     *
            +     * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +     *
            +     * Filtering in Vertex AI Search is done by mapping the LHS filter key to a
            +     * key property defined in the Vertex AI Search backend -- this mapping is
            +     * defined by the customer in their schema. For example a media customer might
            +     * have a field 'name' in their schema. In this case the filter would look
            +     * like this: filter --> name:'ANY("king kong")'
            +     *
            +     * For more information about filtering including syntax and filter
            +     * operators, see
            +     * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
                  * 
            * - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * string filter = 7; * * @return This builder for chaining. */ - public Builder clearServingConfig() { - servingConfig_ = getDefaultInstance().getServingConfig(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -34461,55 +46444,69 @@ public Builder clearServingConfig() { * * *
            -     * Required. The resource name of the Search serving config, such as
            -     * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`,
            -     * or
            -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`.
            -     * This field is used to identify the serving configuration name, set
            -     * of models used to make the search.
            +     * The filter syntax consists of an expression language for constructing a
            +     * predicate from one or more fields of the documents being filtered. Filter
            +     * expression is case-sensitive.
            +     *
            +     * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +     *
            +     * Filtering in Vertex AI Search is done by mapping the LHS filter key to a
            +     * key property defined in the Vertex AI Search backend -- this mapping is
            +     * defined by the customer in their schema. For example a media customer might
            +     * have a field 'name' in their schema. In this case the filter would look
            +     * like this: filter --> name:'ANY("king kong")'
            +     *
            +     * For more information about filtering including syntax and filter
            +     * operators, see
            +     * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
                  * 
            * - * - * string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * + * string filter = 7; * - * @param value The bytes for servingConfig to set. + * @param value The bytes for filter to set. * @return This builder for chaining. */ - public Builder setServingConfigBytes(com.google.protobuf.ByteString value) { + public Builder setFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - servingConfig_ = value; - bitField0_ |= 0x00000001; + filter_ = value; + bitField0_ |= 0x00000800; onChanged(); return this; } - private java.lang.Object branch_ = ""; + private java.lang.Object canonicalFilter_ = ""; /** * * *
            -     * The branch resource name, such as
            -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
            +     * The default filter that is applied when a user performs a search without
            +     * checking any filters on the search page.
                  *
            -     * Use `default_branch` as the branch ID or leave this field empty, to search
            -     * documents under the default branch.
            +     * The filter applied to every search request when quality improvement such as
            +     * query expansion is needed. In the case a query does not have a sufficient
            +     * amount of results this filter will be used to determine whether or not to
            +     * enable the query expansion flow. The original filter will still be used for
            +     * the query expanded search.
            +     * This field is strongly recommended to achieve high search quality.
            +     *
            +     * For more information about filter syntax, see
            +     * [SearchRequest.filter][google.cloud.discoveryengine.v1beta.SearchRequest.filter].
                  * 
            * - * string branch = 2 [(.google.api.resource_reference) = { ... } + * string canonical_filter = 29; * - * @return The branch. + * @return The canonicalFilter. */ - public java.lang.String getBranch() { - java.lang.Object ref = branch_; + public java.lang.String getCanonicalFilter() { + java.lang.Object ref = canonicalFilter_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - branch_ = s; + canonicalFilter_ = s; return s; } else { return (java.lang.String) ref; @@ -34520,23 +46517,30 @@ public java.lang.String getBranch() { * * *
            -     * The branch resource name, such as
            -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
            +     * The default filter that is applied when a user performs a search without
            +     * checking any filters on the search page.
                  *
            -     * Use `default_branch` as the branch ID or leave this field empty, to search
            -     * documents under the default branch.
            +     * The filter applied to every search request when quality improvement such as
            +     * query expansion is needed. In the case a query does not have a sufficient
            +     * amount of results this filter will be used to determine whether or not to
            +     * enable the query expansion flow. The original filter will still be used for
            +     * the query expanded search.
            +     * This field is strongly recommended to achieve high search quality.
            +     *
            +     * For more information about filter syntax, see
            +     * [SearchRequest.filter][google.cloud.discoveryengine.v1beta.SearchRequest.filter].
                  * 
            * - * string branch = 2 [(.google.api.resource_reference) = { ... } + * string canonical_filter = 29; * - * @return The bytes for branch. + * @return The bytes for canonicalFilter. */ - public com.google.protobuf.ByteString getBranchBytes() { - java.lang.Object ref = branch_; + public com.google.protobuf.ByteString getCanonicalFilterBytes() { + java.lang.Object ref = canonicalFilter_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - branch_ = b; + canonicalFilter_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -34547,24 +46551,31 @@ public com.google.protobuf.ByteString getBranchBytes() { * * *
            -     * The branch resource name, such as
            -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
            +     * The default filter that is applied when a user performs a search without
            +     * checking any filters on the search page.
                  *
            -     * Use `default_branch` as the branch ID or leave this field empty, to search
            -     * documents under the default branch.
            +     * The filter applied to every search request when quality improvement such as
            +     * query expansion is needed. In the case a query does not have a sufficient
            +     * amount of results this filter will be used to determine whether or not to
            +     * enable the query expansion flow. The original filter will still be used for
            +     * the query expanded search.
            +     * This field is strongly recommended to achieve high search quality.
            +     *
            +     * For more information about filter syntax, see
            +     * [SearchRequest.filter][google.cloud.discoveryengine.v1beta.SearchRequest.filter].
                  * 
            * - * string branch = 2 [(.google.api.resource_reference) = { ... } + * string canonical_filter = 29; * - * @param value The branch to set. + * @param value The canonicalFilter to set. * @return This builder for chaining. */ - public Builder setBranch(java.lang.String value) { + public Builder setCanonicalFilter(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - branch_ = value; - bitField0_ |= 0x00000002; + canonicalFilter_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -34573,20 +46584,27 @@ public Builder setBranch(java.lang.String value) { * * *
            -     * The branch resource name, such as
            -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
            +     * The default filter that is applied when a user performs a search without
            +     * checking any filters on the search page.
                  *
            -     * Use `default_branch` as the branch ID or leave this field empty, to search
            -     * documents under the default branch.
            +     * The filter applied to every search request when quality improvement such as
            +     * query expansion is needed. In the case a query does not have a sufficient
            +     * amount of results this filter will be used to determine whether or not to
            +     * enable the query expansion flow. The original filter will still be used for
            +     * the query expanded search.
            +     * This field is strongly recommended to achieve high search quality.
            +     *
            +     * For more information about filter syntax, see
            +     * [SearchRequest.filter][google.cloud.discoveryengine.v1beta.SearchRequest.filter].
                  * 
            * - * string branch = 2 [(.google.api.resource_reference) = { ... } + * string canonical_filter = 29; * * @return This builder for chaining. */ - public Builder clearBranch() { - branch_ = getDefaultInstance().getBranch(); - bitField0_ = (bitField0_ & ~0x00000002); + public Builder clearCanonicalFilter() { + canonicalFilter_ = getDefaultInstance().getCanonicalFilter(); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); return this; } @@ -34595,48 +46613,66 @@ public Builder clearBranch() { * * *
            -     * The branch resource name, such as
            -     * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`.
            +     * The default filter that is applied when a user performs a search without
            +     * checking any filters on the search page.
                  *
            -     * Use `default_branch` as the branch ID or leave this field empty, to search
            -     * documents under the default branch.
            +     * The filter applied to every search request when quality improvement such as
            +     * query expansion is needed. In the case a query does not have a sufficient
            +     * amount of results this filter will be used to determine whether or not to
            +     * enable the query expansion flow. The original filter will still be used for
            +     * the query expanded search.
            +     * This field is strongly recommended to achieve high search quality.
            +     *
            +     * For more information about filter syntax, see
            +     * [SearchRequest.filter][google.cloud.discoveryengine.v1beta.SearchRequest.filter].
                  * 
            * - * string branch = 2 [(.google.api.resource_reference) = { ... } + * string canonical_filter = 29; * - * @param value The bytes for branch to set. + * @param value The bytes for canonicalFilter to set. * @return This builder for chaining. */ - public Builder setBranchBytes(com.google.protobuf.ByteString value) { + public Builder setCanonicalFilterBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - branch_ = value; - bitField0_ |= 0x00000002; + canonicalFilter_ = value; + bitField0_ |= 0x00001000; onChanged(); return this; } - private java.lang.Object query_ = ""; + private java.lang.Object orderBy_ = ""; /** * * *
            -     * Raw search query.
            +     * The order in which documents are returned. Documents can be ordered by
            +     * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
            +     * object. Leave it unset if ordered by relevance. `order_by` expression is
            +     * case-sensitive.
            +     *
            +     * For more information on ordering the website search results, see
            +     * [Order web search
            +     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results).
            +     * For more information on ordering the healthcare search results, see
            +     * [Order healthcare search
            +     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results).
            +     * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
                  * 
            * - * string query = 3; + * string order_by = 8; * - * @return The query. + * @return The orderBy. */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; + 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(); - query_ = s; + orderBy_ = s; return s; } else { return (java.lang.String) ref; @@ -34647,19 +46683,30 @@ public java.lang.String getQuery() { * * *
            -     * Raw search query.
            +     * The order in which documents are returned. Documents can be ordered by
            +     * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
            +     * object. Leave it unset if ordered by relevance. `order_by` expression is
            +     * case-sensitive.
            +     *
            +     * For more information on ordering the website search results, see
            +     * [Order web search
            +     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results).
            +     * For more information on ordering the healthcare search results, see
            +     * [Order healthcare search
            +     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results).
            +     * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
                  * 
            * - * string query = 3; + * string order_by = 8; * - * @return The bytes for query. + * @return The bytes for orderBy. */ - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; + 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); - query_ = b; + orderBy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -34670,20 +46717,31 @@ public com.google.protobuf.ByteString getQueryBytes() { * * *
            -     * Raw search query.
            +     * The order in which documents are returned. Documents can be ordered by
            +     * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
            +     * object. Leave it unset if ordered by relevance. `order_by` expression is
            +     * case-sensitive.
            +     *
            +     * For more information on ordering the website search results, see
            +     * [Order web search
            +     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results).
            +     * For more information on ordering the healthcare search results, see
            +     * [Order healthcare search
            +     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results).
            +     * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
                  * 
            * - * string query = 3; + * string order_by = 8; * - * @param value The query to set. + * @param value The orderBy to set. * @return This builder for chaining. */ - public Builder setQuery(java.lang.String value) { + public Builder setOrderBy(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - query_ = value; - bitField0_ |= 0x00000004; + orderBy_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -34692,16 +46750,27 @@ public Builder setQuery(java.lang.String value) { * * *
            -     * Raw search query.
            +     * The order in which documents are returned. Documents can be ordered by
            +     * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
            +     * object. Leave it unset if ordered by relevance. `order_by` expression is
            +     * case-sensitive.
            +     *
            +     * For more information on ordering the website search results, see
            +     * [Order web search
            +     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results).
            +     * For more information on ordering the healthcare search results, see
            +     * [Order healthcare search
            +     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results).
            +     * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
                  * 
            * - * string query = 3; + * string order_by = 8; * * @return This builder for chaining. */ - public Builder clearQuery() { - query_ = getDefaultInstance().getQuery(); - bitField0_ = (bitField0_ & ~0x00000004); + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -34710,65 +46779,82 @@ public Builder clearQuery() { * * *
            -     * Raw search query.
            +     * The order in which documents are returned. Documents can be ordered by
            +     * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
            +     * object. Leave it unset if ordered by relevance. `order_by` expression is
            +     * case-sensitive.
            +     *
            +     * For more information on ordering the website search results, see
            +     * [Order web search
            +     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results).
            +     * For more information on ordering the healthcare search results, see
            +     * [Order healthcare search
            +     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results).
            +     * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
                  * 
            * - * string query = 3; + * string order_by = 8; * - * @param value The bytes for query to set. + * @param value The bytes for orderBy to set. * @return This builder for chaining. */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - query_ = value; - bitField0_ |= 0x00000004; + orderBy_ = value; + bitField0_ |= 0x00002000; onChanged(); return this; } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery imageQuery_; + private com.google.cloud.discoveryengine.v1beta.UserInfo userInfo_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder> - imageQueryBuilder_; + com.google.cloud.discoveryengine.v1beta.UserInfo, + com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, + com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder> + userInfoBuilder_; /** * * *
            -     * Raw image query.
            +     * Information about the end user.
            +     * Highly recommended for analytics and personalization.
            +     * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            +     * is used to deduce `device_type` for analytics.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; * - * @return Whether the imageQuery field is set. + * @return Whether the userInfo field is set. */ - public boolean hasImageQuery() { - return ((bitField0_ & 0x00000008) != 0); + public boolean hasUserInfo() { + return ((bitField0_ & 0x00004000) != 0); } /** * * *
            -     * Raw image query.
            +     * Information about the end user.
            +     * Highly recommended for analytics and personalization.
            +     * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            +     * is used to deduce `device_type` for analytics.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; * - * @return The imageQuery. - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery getImageQuery() { - if (imageQueryBuilder_ == null) { - return imageQuery_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() - : imageQuery_; + * @return The userInfo. + */ + public com.google.cloud.discoveryengine.v1beta.UserInfo getUserInfo() { + if (userInfoBuilder_ == null) { + return userInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() + : userInfo_; } else { - return imageQueryBuilder_.getMessage(); + return userInfoBuilder_.getMessage(); } } @@ -34776,22 +46862,24 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery getImage * * *
            -     * Raw image query.
            +     * Information about the end user.
            +     * Highly recommended for analytics and personalization.
            +     * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            +     * is used to deduce `device_type` for analytics.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; */ - public Builder setImageQuery( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery value) { - if (imageQueryBuilder_ == null) { + public Builder setUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo value) { + if (userInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - imageQuery_ = value; + userInfo_ = value; } else { - imageQueryBuilder_.setMessage(value); + userInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -34800,19 +46888,22 @@ public Builder setImageQuery( * * *
            -     * Raw image query.
            +     * Information about the end user.
            +     * Highly recommended for analytics and personalization.
            +     * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            +     * is used to deduce `device_type` for analytics.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; */ - public Builder setImageQuery( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder builderForValue) { - if (imageQueryBuilder_ == null) { - imageQuery_ = builderForValue.build(); + public Builder setUserInfo( + com.google.cloud.discoveryengine.v1beta.UserInfo.Builder builderForValue) { + if (userInfoBuilder_ == null) { + userInfo_ = builderForValue.build(); } else { - imageQueryBuilder_.setMessage(builderForValue.build()); + userInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -34821,28 +46912,28 @@ public Builder setImageQuery( * * *
            -     * Raw image query.
            +     * Information about the end user.
            +     * Highly recommended for analytics and personalization.
            +     * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            +     * is used to deduce `device_type` for analytics.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; */ - public Builder mergeImageQuery( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery value) { - if (imageQueryBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && imageQuery_ != null - && imageQuery_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery - .getDefaultInstance()) { - getImageQueryBuilder().mergeFrom(value); + public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo value) { + if (userInfoBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && userInfo_ != null + && userInfo_ != com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance()) { + getUserInfoBuilder().mergeFrom(value); } else { - imageQuery_ = value; + userInfo_ = value; } } else { - imageQueryBuilder_.mergeFrom(value); + userInfoBuilder_.mergeFrom(value); } - if (imageQuery_ != null) { - bitField0_ |= 0x00000008; + if (userInfo_ != null) { + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -34852,17 +46943,20 @@ public Builder mergeImageQuery( * * *
            -     * Raw image query.
            +     * Information about the end user.
            +     * Highly recommended for analytics and personalization.
            +     * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            +     * is used to deduce `device_type` for analytics.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; */ - public Builder clearImageQuery() { - bitField0_ = (bitField0_ & ~0x00000008); - imageQuery_ = null; - if (imageQueryBuilder_ != null) { - imageQueryBuilder_.dispose(); - imageQueryBuilder_ = null; + public Builder clearUserInfo() { + bitField0_ = (bitField0_ & ~0x00004000); + userInfo_ = null; + if (userInfoBuilder_ != null) { + userInfoBuilder_.dispose(); + userInfoBuilder_ = null; } onChanged(); return this; @@ -34872,35 +46966,39 @@ public Builder clearImageQuery() { * * *
            -     * Raw image query.
            +     * Information about the end user.
            +     * Highly recommended for analytics and personalization.
            +     * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            +     * is used to deduce `device_type` for analytics.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder - getImageQueryBuilder() { - bitField0_ |= 0x00000008; + public com.google.cloud.discoveryengine.v1beta.UserInfo.Builder getUserInfoBuilder() { + bitField0_ |= 0x00004000; onChanged(); - return internalGetImageQueryFieldBuilder().getBuilder(); + return internalGetUserInfoFieldBuilder().getBuilder(); } /** * * *
            -     * Raw image query.
            +     * Information about the end user.
            +     * Highly recommended for analytics and personalization.
            +     * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            +     * is used to deduce `device_type` for analytics.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder - getImageQueryOrBuilder() { - if (imageQueryBuilder_ != null) { - return imageQueryBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBuilder() { + if (userInfoBuilder_ != null) { + return userInfoBuilder_.getMessageOrBuilder(); } else { - return imageQuery_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.getDefaultInstance() - : imageQuery_; + return userInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() + : userInfo_; } } @@ -34908,134 +47006,54 @@ public Builder clearImageQuery() { * * *
            -     * Raw image query.
            +     * Information about the end user.
            +     * Highly recommended for analytics and personalization.
            +     * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            +     * is used to deduce `device_type` for analytics.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery image_query = 19; + * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder> - internalGetImageQueryFieldBuilder() { - if (imageQueryBuilder_ == null) { - imageQueryBuilder_ = + com.google.cloud.discoveryengine.v1beta.UserInfo, + com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, + com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder> + internalGetUserInfoFieldBuilder() { + if (userInfoBuilder_ == null) { + userInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQueryOrBuilder>( - getImageQuery(), getParentForChildren(), isClean()); - imageQuery_ = null; + com.google.cloud.discoveryengine.v1beta.UserInfo, + com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, + com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder>( + getUserInfo(), getParentForChildren(), isClean()); + userInfo_ = null; } - return imageQueryBuilder_; - } - - private int pageSize_; - - /** - * - * - *
            -     * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
            -     * to return. The maximum allowed value depends on the data type. Values above
            -     * the maximum value are coerced to the maximum value.
            -     *
            -     * * Websites with basic indexing: Default `10`, Maximum `25`.
            -     * * Websites with advanced indexing: Default `25`, Maximum `50`.
            -     * * Other: Default `50`, Maximum `100`.
            -     *
            -     * If this field is negative, an  `INVALID_ARGUMENT` is returned.
            -     * 
            - * - * int32 page_size = 4; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - /** - * - * - *
            -     * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
            -     * to return. The maximum allowed value depends on the data type. Values above
            -     * the maximum value are coerced to the maximum value.
            -     *
            -     * * Websites with basic indexing: Default `10`, Maximum `25`.
            -     * * Websites with advanced indexing: Default `25`, Maximum `50`.
            -     * * Other: Default `50`, Maximum `100`.
            -     *
            -     * If this field is negative, an  `INVALID_ARGUMENT` is returned.
            -     * 
            - * - * int32 page_size = 4; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
            -     * Maximum number of [Document][google.cloud.discoveryengine.v1beta.Document]s
            -     * to return. The maximum allowed value depends on the data type. Values above
            -     * the maximum value are coerced to the maximum value.
            -     *
            -     * * Websites with basic indexing: Default `10`, Maximum `25`.
            -     * * Websites with advanced indexing: Default `25`, Maximum `50`.
            -     * * Other: Default `50`, Maximum `100`.
            -     *
            -     * If this field is negative, an  `INVALID_ARGUMENT` is returned.
            -     * 
            - * - * int32 page_size = 4; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000010); - pageSize_ = 0; - onChanged(); - return this; + return userInfoBuilder_; } - private java.lang.Object pageToken_ = ""; + private java.lang.Object languageCode_ = ""; /** * * *
            -     * A page token received from a previous
            -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -     * call. Provide this to retrieve the subsequent page.
            -     *
            -     * When paginating, all other parameters provided to
            -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -     * must match the call that provided the page token. Otherwise, an
            -     * `INVALID_ARGUMENT`  error is returned.
            +     * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
            +     * information, see [Standard
            +     * fields](https://cloud.google.com/apis/design/standard_fields). This field
            +     * helps to better interpret the query. If a value isn't specified, the query
            +     * language code is automatically detected, which may not be accurate.
                  * 
            * - * string page_token = 5; + * string language_code = 35; * - * @return The pageToken. + * @return The languageCode. */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; + 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(); - pageToken_ = s; + languageCode_ = s; return s; } else { return (java.lang.String) ref; @@ -35046,26 +47064,23 @@ public java.lang.String getPageToken() { * * *
            -     * A page token received from a previous
            -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -     * call. Provide this to retrieve the subsequent page.
            -     *
            -     * When paginating, all other parameters provided to
            -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -     * must match the call that provided the page token. Otherwise, an
            -     * `INVALID_ARGUMENT`  error is returned.
            +     * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
            +     * information, see [Standard
            +     * fields](https://cloud.google.com/apis/design/standard_fields). This field
            +     * helps to better interpret the query. If a value isn't specified, the query
            +     * language code is automatically detected, which may not be accurate.
                  * 
            * - * string page_token = 5; + * string language_code = 35; * - * @return The bytes for pageToken. + * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; + 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); - pageToken_ = b; + languageCode_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -35076,27 +47091,24 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
            -     * A page token received from a previous
            -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -     * call. Provide this to retrieve the subsequent page.
            -     *
            -     * When paginating, all other parameters provided to
            -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -     * must match the call that provided the page token. Otherwise, an
            -     * `INVALID_ARGUMENT`  error is returned.
            +     * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
            +     * information, see [Standard
            +     * fields](https://cloud.google.com/apis/design/standard_fields). This field
            +     * helps to better interpret the query. If a value isn't specified, the query
            +     * language code is automatically detected, which may not be accurate.
                  * 
            * - * string page_token = 5; + * string language_code = 35; * - * @param value The pageToken to set. + * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000020; + languageCode_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -35105,23 +47117,20 @@ public Builder setPageToken(java.lang.String value) { * * *
            -     * A page token received from a previous
            -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -     * call. Provide this to retrieve the subsequent page.
            -     *
            -     * When paginating, all other parameters provided to
            -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -     * must match the call that provided the page token. Otherwise, an
            -     * `INVALID_ARGUMENT`  error is returned.
            +     * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
            +     * information, see [Standard
            +     * fields](https://cloud.google.com/apis/design/standard_fields). This field
            +     * helps to better interpret the query. If a value isn't specified, the query
            +     * language code is automatically detected, which may not be accurate.
                  * 
            * - * string page_token = 5; + * string language_code = 35; * * @return This builder for chaining. */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000020); + public Builder clearLanguageCode() { + languageCode_ = getDefaultInstance().getLanguageCode(); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -35130,147 +47139,125 @@ public Builder clearPageToken() { * * *
            -     * A page token received from a previous
            -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -     * call. Provide this to retrieve the subsequent page.
            -     *
            -     * When paginating, all other parameters provided to
            -     * [SearchService.Search][google.cloud.discoveryengine.v1beta.SearchService.Search]
            -     * must match the call that provided the page token. Otherwise, an
            -     * `INVALID_ARGUMENT`  error is returned.
            +     * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
            +     * information, see [Standard
            +     * fields](https://cloud.google.com/apis/design/standard_fields). This field
            +     * helps to better interpret the query. If a value isn't specified, the query
            +     * language code is automatically detected, which may not be accurate.
                  * 
            * - * string page_token = 5; + * string language_code = 35; * - * @param value The bytes for pageToken to set. + * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000020; + languageCode_ = value; + bitField0_ |= 0x00008000; onChanged(); return this; } - private int offset_; + private java.lang.Object regionCode_ = ""; /** * * *
            -     * A 0-indexed integer that specifies the current offset (that is, starting
            -     * result location, amongst the
            -     * [Document][google.cloud.discoveryengine.v1beta.Document]s deemed by the API
            -     * as relevant) in search results. This field is only considered if
            -     * [page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
            -     * is unset.
            -     *
            -     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
            +     * The Unicode country/region code (CLDR) of a location, such as "US" and
            +     * "419". For more information, see [Standard
            +     * fields](https://cloud.google.com/apis/design/standard_fields). If set,
            +     * then results will be boosted based on the region_code provided.
                  * 
            * - * int32 offset = 6; + * string region_code = 36; * - * @return The offset. + * @return The regionCode. */ - @java.lang.Override - public int getOffset() { - return offset_; + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
            -     * A 0-indexed integer that specifies the current offset (that is, starting
            -     * result location, amongst the
            -     * [Document][google.cloud.discoveryengine.v1beta.Document]s deemed by the API
            -     * as relevant) in search results. This field is only considered if
            -     * [page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
            -     * is unset.
            -     *
            -     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
            +     * The Unicode country/region code (CLDR) of a location, such as "US" and
            +     * "419". For more information, see [Standard
            +     * fields](https://cloud.google.com/apis/design/standard_fields). If set,
            +     * then results will be boosted based on the region_code provided.
                  * 
            * - * int32 offset = 6; + * string region_code = 36; * - * @param value The offset to set. - * @return This builder for chaining. + * @return The bytes for regionCode. */ - public Builder setOffset(int value) { - - offset_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } /** * * *
            -     * A 0-indexed integer that specifies the current offset (that is, starting
            -     * result location, amongst the
            -     * [Document][google.cloud.discoveryengine.v1beta.Document]s deemed by the API
            -     * as relevant) in search results. This field is only considered if
            -     * [page_token][google.cloud.discoveryengine.v1beta.SearchRequest.page_token]
            -     * is unset.
            -     *
            -     * If this field is negative, an  `INVALID_ARGUMENT`  is returned.
            +     * The Unicode country/region code (CLDR) of a location, such as "US" and
            +     * "419". For more information, see [Standard
            +     * fields](https://cloud.google.com/apis/design/standard_fields). If set,
            +     * then results will be boosted based on the region_code provided.
                  * 
            * - * int32 offset = 6; + * string region_code = 36; * + * @param value The regionCode to set. * @return This builder for chaining. */ - public Builder clearOffset() { - bitField0_ = (bitField0_ & ~0x00000040); - offset_ = 0; + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + regionCode_ = value; + bitField0_ |= 0x00010000; onChanged(); 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.
            +     * The Unicode country/region code (CLDR) of a location, such as "US" and
            +     * "419". For more information, see [Standard
            +     * fields](https://cloud.google.com/apis/design/standard_fields). If set,
            +     * then results will be boosted based on the region_code provided.
                  * 
            * - * int32 one_box_page_size = 47; + * string region_code = 36; * - * @param value The oneBoxPageSize to set. * @return This builder for chaining. */ - public Builder setOneBoxPageSize(int value) { - - oneBoxPageSize_ = value; - bitField0_ |= 0x00000080; + public Builder clearRegionCode() { + regionCode_ = getDefaultInstance().getRegionCode(); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } @@ -35279,61 +47266,65 @@ public Builder setOneBoxPageSize(int value) { * * *
            -     * The maximum number of results to return for OneBox.
            -     * This applies to each OneBox type individually.
            -     * Default number is 10.
            +     * The Unicode country/region code (CLDR) of a location, such as "US" and
            +     * "419". For more information, see [Standard
            +     * fields](https://cloud.google.com/apis/design/standard_fields). If set,
            +     * then results will be boosted based on the region_code provided.
                  * 
            * - * int32 one_box_page_size = 47; + * string region_code = 36; * + * @param value The bytes for regionCode to set. * @return This builder for chaining. */ - public Builder clearOneBoxPageSize() { - bitField0_ = (bitField0_ & ~0x00000080); - oneBoxPageSize_ = 0; + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + regionCode_ = value; + bitField0_ |= 0x00010000; onChanged(); return this; } - private java.util.List - dataStoreSpecs_ = java.util.Collections.emptyList(); + private java.util.List + facetSpecs_ = java.util.Collections.emptyList(); - private void ensureDataStoreSpecsIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { - dataStoreSpecs_ = + private void ensureFacetSpecsIsMutable() { + if (!((bitField0_ & 0x00020000) != 0)) { + facetSpecs_ = new java.util.ArrayList< - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec>( - dataStoreSpecs_); - bitField0_ |= 0x00000100; + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec>(facetSpecs_); + bitField0_ |= 0x00020000; } } private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> - dataStoreSpecsBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder> + facetSpecsBuilder_; /** * * *
            -     * 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
            -     * use the specs at the top level.
            +     * Facet specifications for faceted search. If empty, no facets are returned.
            +     *
            +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +     * error is returned.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; * */ - public java.util.List - getDataStoreSpecsList() { - if (dataStoreSpecsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dataStoreSpecs_); + public java.util.List + getFacetSpecsList() { + if (facetSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(facetSpecs_); } else { - return dataStoreSpecsBuilder_.getMessageList(); + return facetSpecsBuilder_.getMessageList(); } } @@ -35341,21 +47332,20 @@ private void ensureDataStoreSpecsIsMutable() { * * *
            -     * 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
            -     * use the specs at the top level.
            +     * Facet specifications for faceted search. If empty, no facets are returned.
            +     *
            +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +     * error is returned.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; * */ - public int getDataStoreSpecsCount() { - if (dataStoreSpecsBuilder_ == null) { - return dataStoreSpecs_.size(); + public int getFacetSpecsCount() { + if (facetSpecsBuilder_ == null) { + return facetSpecs_.size(); } else { - return dataStoreSpecsBuilder_.getCount(); + return facetSpecsBuilder_.getCount(); } } @@ -35363,22 +47353,21 @@ public int getDataStoreSpecsCount() { * * *
            -     * 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
            -     * use the specs at the top level.
            +     * Facet specifications for faceted search. If empty, no facets are returned.
            +     *
            +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +     * error is returned.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec getDataStoreSpecs( + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec getFacetSpecs( int index) { - if (dataStoreSpecsBuilder_ == null) { - return dataStoreSpecs_.get(index); + if (facetSpecsBuilder_ == null) { + return facetSpecs_.get(index); } else { - return dataStoreSpecsBuilder_.getMessage(index); + return facetSpecsBuilder_.getMessage(index); } } @@ -35386,27 +47375,26 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec getDa * * *
            -     * 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
            -     * use the specs at the top level.
            +     * Facet specifications for faceted search. If empty, no facets are returned.
            +     *
            +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +     * error is returned.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; * */ - public Builder setDataStoreSpecs( - int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec value) { - if (dataStoreSpecsBuilder_ == null) { + public Builder setFacetSpecs( + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec value) { + if (facetSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureDataStoreSpecsIsMutable(); - dataStoreSpecs_.set(index, value); + ensureFacetSpecsIsMutable(); + facetSpecs_.set(index, value); onChanged(); } else { - dataStoreSpecsBuilder_.setMessage(index, value); + facetSpecsBuilder_.setMessage(index, value); } return this; } @@ -35415,26 +47403,24 @@ public Builder setDataStoreSpecs( * * *
            -     * 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
            -     * use the specs at the top level.
            +     * Facet specifications for faceted search. If empty, no facets are returned.
            +     *
            +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +     * error is returned.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; * */ - public Builder setDataStoreSpecs( + public Builder setFacetSpecs( int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder - builderForValue) { - if (dataStoreSpecsBuilder_ == null) { - ensureDataStoreSpecsIsMutable(); - dataStoreSpecs_.set(index, builderForValue.build()); + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder builderForValue) { + if (facetSpecsBuilder_ == null) { + ensureFacetSpecsIsMutable(); + facetSpecs_.set(index, builderForValue.build()); onChanged(); } else { - dataStoreSpecsBuilder_.setMessage(index, builderForValue.build()); + facetSpecsBuilder_.setMessage(index, builderForValue.build()); } return this; } @@ -35443,27 +47429,26 @@ public Builder setDataStoreSpecs( * * *
            -     * 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
            -     * use the specs at the top level.
            +     * Facet specifications for faceted search. If empty, no facets are returned.
            +     *
            +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +     * error is returned.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; * */ - public Builder addDataStoreSpecs( - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec value) { - if (dataStoreSpecsBuilder_ == null) { + public Builder addFacetSpecs( + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec value) { + if (facetSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureDataStoreSpecsIsMutable(); - dataStoreSpecs_.add(value); + ensureFacetSpecsIsMutable(); + facetSpecs_.add(value); onChanged(); } else { - dataStoreSpecsBuilder_.addMessage(value); + facetSpecsBuilder_.addMessage(value); } return this; } @@ -35472,27 +47457,26 @@ public Builder addDataStoreSpecs( * * *
            -     * 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
            -     * use the specs at the top level.
            +     * Facet specifications for faceted search. If empty, no facets are returned.
            +     *
            +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +     * error is returned.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; * */ - public Builder addDataStoreSpecs( - int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec value) { - if (dataStoreSpecsBuilder_ == null) { + public Builder addFacetSpecs( + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec value) { + if (facetSpecsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureDataStoreSpecsIsMutable(); - dataStoreSpecs_.add(index, value); + ensureFacetSpecsIsMutable(); + facetSpecs_.add(index, value); onChanged(); } else { - dataStoreSpecsBuilder_.addMessage(index, value); + facetSpecsBuilder_.addMessage(index, value); } return this; } @@ -35501,25 +47485,23 @@ public Builder addDataStoreSpecs( * * *
            -     * 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
            -     * use the specs at the top level.
            +     * Facet specifications for faceted search. If empty, no facets are returned.
            +     *
            +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +     * error is returned.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; * */ - public Builder addDataStoreSpecs( - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder - builderForValue) { - if (dataStoreSpecsBuilder_ == null) { - ensureDataStoreSpecsIsMutable(); - dataStoreSpecs_.add(builderForValue.build()); + public Builder addFacetSpecs( + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder builderForValue) { + if (facetSpecsBuilder_ == null) { + ensureFacetSpecsIsMutable(); + facetSpecs_.add(builderForValue.build()); onChanged(); } else { - dataStoreSpecsBuilder_.addMessage(builderForValue.build()); + facetSpecsBuilder_.addMessage(builderForValue.build()); } return this; } @@ -35528,26 +47510,24 @@ public Builder addDataStoreSpecs( * * *
            -     * 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
            -     * use the specs at the top level.
            +     * Facet specifications for faceted search. If empty, no facets are returned.
            +     *
            +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +     * error is returned.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; * */ - public Builder addDataStoreSpecs( + public Builder addFacetSpecs( int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder - builderForValue) { - if (dataStoreSpecsBuilder_ == null) { - ensureDataStoreSpecsIsMutable(); - dataStoreSpecs_.add(index, builderForValue.build()); + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder builderForValue) { + if (facetSpecsBuilder_ == null) { + ensureFacetSpecsIsMutable(); + facetSpecs_.add(index, builderForValue.build()); onChanged(); } else { - dataStoreSpecsBuilder_.addMessage(index, builderForValue.build()); + facetSpecsBuilder_.addMessage(index, builderForValue.build()); } return this; } @@ -35556,26 +47536,25 @@ public Builder addDataStoreSpecs( * * *
            -     * 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
            -     * use the specs at the top level.
            +     * Facet specifications for faceted search. If empty, no facets are returned.
            +     *
            +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +     * error is returned.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; * */ - public Builder addAllDataStoreSpecs( + public Builder addAllFacetSpecs( java.lang.Iterable< - ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec> + ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec> values) { - if (dataStoreSpecsBuilder_ == null) { - ensureDataStoreSpecsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStoreSpecs_); + if (facetSpecsBuilder_ == null) { + ensureFacetSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facetSpecs_); onChanged(); } else { - dataStoreSpecsBuilder_.addAllMessages(values); + facetSpecsBuilder_.addAllMessages(values); } return this; } @@ -35584,23 +47563,22 @@ public Builder addAllDataStoreSpecs( * * *
            -     * 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
            -     * use the specs at the top level.
            +     * Facet specifications for faceted search. If empty, no facets are returned.
            +     *
            +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +     * error is returned.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; * */ - public Builder clearDataStoreSpecs() { - if (dataStoreSpecsBuilder_ == null) { - dataStoreSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); + public Builder clearFacetSpecs() { + if (facetSpecsBuilder_ == null) { + facetSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); } else { - dataStoreSpecsBuilder_.clear(); + facetSpecsBuilder_.clear(); } return this; } @@ -35609,23 +47587,22 @@ public Builder clearDataStoreSpecs() { * * *
            -     * 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
            -     * use the specs at the top level.
            +     * Facet specifications for faceted search. If empty, no facets are returned.
            +     *
            +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +     * error is returned.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; * */ - public Builder removeDataStoreSpecs(int index) { - if (dataStoreSpecsBuilder_ == null) { - ensureDataStoreSpecsIsMutable(); - dataStoreSpecs_.remove(index); + public Builder removeFacetSpecs(int index) { + if (facetSpecsBuilder_ == null) { + ensureFacetSpecsIsMutable(); + facetSpecs_.remove(index); onChanged(); } else { - dataStoreSpecsBuilder_.remove(index); + facetSpecsBuilder_.remove(index); } return this; } @@ -35634,41 +47611,39 @@ public Builder removeDataStoreSpecs(int index) { * * *
            -     * 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
            -     * use the specs at the top level.
            +     * Facet specifications for faceted search. If empty, no facets are returned.
            +     *
            +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +     * error is returned.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder - getDataStoreSpecsBuilder(int index) { - return internalGetDataStoreSpecsFieldBuilder().getBuilder(index); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder + getFacetSpecsBuilder(int index) { + return internalGetFacetSpecsFieldBuilder().getBuilder(index); } /** * * *
            -     * 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
            -     * use the specs at the top level.
            +     * Facet specifications for faceted search. If empty, no facets are returned.
            +     *
            +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +     * error is returned.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder - getDataStoreSpecsOrBuilder(int index) { - if (dataStoreSpecsBuilder_ == null) { - return dataStoreSpecs_.get(index); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder + getFacetSpecsOrBuilder(int index) { + if (facetSpecsBuilder_ == null) { + return facetSpecs_.get(index); } else { - return dataStoreSpecsBuilder_.getMessageOrBuilder(index); + return facetSpecsBuilder_.getMessageOrBuilder(index); } } @@ -35676,23 +47651,22 @@ public Builder removeDataStoreSpecs(int index) { * * *
            -     * 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
            -     * use the specs at the top level.
            +     * Facet specifications for faceted search. If empty, no facets are returned.
            +     *
            +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +     * error is returned.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; * */ public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> - getDataStoreSpecsOrBuilderList() { - if (dataStoreSpecsBuilder_ != null) { - return dataStoreSpecsBuilder_.getMessageOrBuilderList(); + ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder> + getFacetSpecsOrBuilderList() { + if (facetSpecsBuilder_ != null) { + return facetSpecsBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(dataStoreSpecs_); + return java.util.Collections.unmodifiableList(facetSpecs_); } } @@ -35700,301 +47674,122 @@ public Builder removeDataStoreSpecs(int index) { * * *
            -     * 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
            -     * use the specs at the top level.
            +     * Facet specifications for faceted search. If empty, no facets are returned.
            +     *
            +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +     * error is returned.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder - addDataStoreSpecsBuilder() { - return internalGetDataStoreSpecsFieldBuilder() + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder + addFacetSpecsBuilder() { + return internalGetFacetSpecsFieldBuilder() .addBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec - .getDefaultInstance()); + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.getDefaultInstance()); } /** * * *
            -     * 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
            -     * use the specs at the top level.
            +     * Facet specifications for faceted search. If empty, no facets are returned.
            +     *
            +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +     * error is returned.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder - addDataStoreSpecsBuilder(int index) { - return internalGetDataStoreSpecsFieldBuilder() + public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder + addFacetSpecsBuilder(int index) { + return internalGetFacetSpecsFieldBuilder() .addBuilder( index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec - .getDefaultInstance()); + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.getDefaultInstance()); } /** * * *
            -     * 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
            -     * use the specs at the top level.
            +     * Facet specifications for faceted search. If empty, no facets are returned.
            +     *
            +     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            +     * error is returned.
                  * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 32; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; * */ - public java.util.List< - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder> - getDataStoreSpecsBuilderList() { - return internalGetDataStoreSpecsFieldBuilder().getBuilderList(); + public java.util.List + getFacetSpecsBuilderList() { + return internalGetFacetSpecsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> - internalGetDataStoreSpecsFieldBuilder() { - if (dataStoreSpecsBuilder_ == null) { - dataStoreSpecsBuilder_ = + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder> + internalGetFacetSpecsFieldBuilder() { + if (facetSpecsBuilder_ == null) { + facetSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder>( - dataStoreSpecs_, - ((bitField0_ & 0x00000100) != 0), - getParentForChildren(), - isClean()); - dataStoreSpecs_ = null; - } - return dataStoreSpecsBuilder_; - } - - private java.lang.Object filter_ = ""; - - /** - * - * - *
            -     * The filter syntax consists of an expression language for constructing a
            -     * predicate from one or more fields of the documents being filtered. Filter
            -     * expression is case-sensitive.
            -     *
            -     * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            -     *
            -     * Filtering in Vertex AI Search is done by mapping the LHS filter key to a
            -     * key property defined in the Vertex AI Search backend -- this mapping is
            -     * defined by the customer in their schema. For example a media customer might
            -     * have a field 'name' in their schema. In this case the filter would look
            -     * like this: filter --> name:'ANY("king kong")'
            -     *
            -     * For more information about filtering including syntax and filter
            -     * operators, see
            -     * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            -     * 
            - * - * string filter = 7; - * - * @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; - } - } - - /** - * - * - *
            -     * The filter syntax consists of an expression language for constructing a
            -     * predicate from one or more fields of the documents being filtered. Filter
            -     * expression is case-sensitive.
            -     *
            -     * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            -     *
            -     * Filtering in Vertex AI Search is done by mapping the LHS filter key to a
            -     * key property defined in the Vertex AI Search backend -- this mapping is
            -     * defined by the customer in their schema. For example a media customer might
            -     * have a field 'name' in their schema. In this case the filter would look
            -     * like this: filter --> name:'ANY("king kong")'
            -     *
            -     * For more information about filtering including syntax and filter
            -     * operators, see
            -     * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            -     * 
            - * - * string filter = 7; - * - * @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; - } - } - - /** - * - * - *
            -     * The filter syntax consists of an expression language for constructing a
            -     * predicate from one or more fields of the documents being filtered. Filter
            -     * expression is case-sensitive.
            -     *
            -     * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            -     *
            -     * Filtering in Vertex AI Search is done by mapping the LHS filter key to a
            -     * key property defined in the Vertex AI Search backend -- this mapping is
            -     * defined by the customer in their schema. For example a media customer might
            -     * have a field 'name' in their schema. In this case the filter would look
            -     * like this: filter --> name:'ANY("king kong")'
            -     *
            -     * For more information about filtering including syntax and filter
            -     * operators, see
            -     * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            -     * 
            - * - * string filter = 7; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder>( + facetSpecs_, ((bitField0_ & 0x00020000) != 0), getParentForChildren(), isClean()); + facetSpecs_ = null; } - filter_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; + return facetSpecsBuilder_; } - /** - * - * - *
            -     * The filter syntax consists of an expression language for constructing a
            -     * predicate from one or more fields of the documents being filtered. Filter
            -     * expression is case-sensitive.
            -     *
            -     * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            -     *
            -     * Filtering in Vertex AI Search is done by mapping the LHS filter key to a
            -     * key property defined in the Vertex AI Search backend -- this mapping is
            -     * defined by the customer in their schema. For example a media customer might
            -     * have a field 'name' in their schema. In this case the filter would look
            -     * like this: filter --> name:'ANY("king kong")'
            -     *
            -     * For more information about filtering including syntax and filter
            -     * operators, see
            -     * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            -     * 
            - * - * string filter = 7; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; - } + private com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boostSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder> + boostSpecBuilder_; /** * * *
            -     * The filter syntax consists of an expression language for constructing a
            -     * predicate from one or more fields of the documents being filtered. Filter
            -     * expression is case-sensitive.
            -     *
            -     * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            -     *
            -     * Filtering in Vertex AI Search is done by mapping the LHS filter key to a
            -     * key property defined in the Vertex AI Search backend -- this mapping is
            -     * defined by the customer in their schema. For example a media customer might
            -     * have a field 'name' in their schema. In this case the filter would look
            -     * like this: filter --> name:'ANY("king kong")'
            -     *
            -     * For more information about filtering including syntax and filter
            -     * operators, see
            -     * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +     * Boost specification to boost certain documents.
            +     * For more information on boosting, see
            +     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
                  * 
            * - * string filter = 7; + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; * - * @param value The bytes for filter to set. - * @return This builder for chaining. + * @return Whether the boostSpec field is set. */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - filter_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; + public boolean hasBoostSpec() { + return ((bitField0_ & 0x00040000) != 0); } - private java.lang.Object canonicalFilter_ = ""; - /** * * *
            -     * The default filter that is applied when a user performs a search without
            -     * checking any filters on the search page.
            -     *
            -     * The filter applied to every search request when quality improvement such as
            -     * query expansion is needed. In the case a query does not have a sufficient
            -     * amount of results this filter will be used to determine whether or not to
            -     * enable the query expansion flow. The original filter will still be used for
            -     * the query expanded search.
            -     * This field is strongly recommended to achieve high search quality.
            -     *
            -     * For more information about filter syntax, see
            -     * [SearchRequest.filter][google.cloud.discoveryengine.v1beta.SearchRequest.filter].
            +     * Boost specification to boost certain documents.
            +     * For more information on boosting, see
            +     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
                  * 
            * - * string canonical_filter = 29; + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; * - * @return The canonicalFilter. + * @return The boostSpec. */ - public java.lang.String getCanonicalFilter() { - java.lang.Object ref = canonicalFilter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - canonicalFilter_ = s; - return s; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostSpec() { + if (boostSpecBuilder_ == null) { + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; } else { - return (java.lang.String) ref; + return boostSpecBuilder_.getMessage(); } } @@ -36002,65 +47797,47 @@ public java.lang.String getCanonicalFilter() { * * *
            -     * The default filter that is applied when a user performs a search without
            -     * checking any filters on the search page.
            -     *
            -     * The filter applied to every search request when quality improvement such as
            -     * query expansion is needed. In the case a query does not have a sufficient
            -     * amount of results this filter will be used to determine whether or not to
            -     * enable the query expansion flow. The original filter will still be used for
            -     * the query expanded search.
            -     * This field is strongly recommended to achieve high search quality.
            -     *
            -     * For more information about filter syntax, see
            -     * [SearchRequest.filter][google.cloud.discoveryengine.v1beta.SearchRequest.filter].
            +     * Boost specification to boost certain documents.
            +     * For more information on boosting, see
            +     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
                  * 
            * - * string canonical_filter = 29; - * - * @return The bytes for canonicalFilter. + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; */ - public com.google.protobuf.ByteString getCanonicalFilterBytes() { - java.lang.Object ref = canonicalFilter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - canonicalFilter_ = b; - return b; + public Builder setBoostSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + boostSpec_ = value; } else { - return (com.google.protobuf.ByteString) ref; + boostSpecBuilder_.setMessage(value); } + bitField0_ |= 0x00040000; + onChanged(); + return this; } /** * * *
            -     * The default filter that is applied when a user performs a search without
            -     * checking any filters on the search page.
            -     *
            -     * The filter applied to every search request when quality improvement such as
            -     * query expansion is needed. In the case a query does not have a sufficient
            -     * amount of results this filter will be used to determine whether or not to
            -     * enable the query expansion flow. The original filter will still be used for
            -     * the query expanded search.
            -     * This field is strongly recommended to achieve high search quality.
            -     *
            -     * For more information about filter syntax, see
            -     * [SearchRequest.filter][google.cloud.discoveryengine.v1beta.SearchRequest.filter].
            +     * Boost specification to boost certain documents.
            +     * For more information on boosting, see
            +     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
                  * 
            * - * string canonical_filter = 29; - * - * @param value The canonicalFilter to set. - * @return This builder for chaining. + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; */ - public Builder setCanonicalFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setBoostSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder builderForValue) { + if (boostSpecBuilder_ == null) { + boostSpec_ = builderForValue.build(); + } else { + boostSpecBuilder_.setMessage(builderForValue.build()); } - canonicalFilter_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -36069,28 +47846,32 @@ public Builder setCanonicalFilter(java.lang.String value) { * * *
            -     * The default filter that is applied when a user performs a search without
            -     * checking any filters on the search page.
            -     *
            -     * The filter applied to every search request when quality improvement such as
            -     * query expansion is needed. In the case a query does not have a sufficient
            -     * amount of results this filter will be used to determine whether or not to
            -     * enable the query expansion flow. The original filter will still be used for
            -     * the query expanded search.
            -     * This field is strongly recommended to achieve high search quality.
            -     *
            -     * For more information about filter syntax, see
            -     * [SearchRequest.filter][google.cloud.discoveryengine.v1beta.SearchRequest.filter].
            +     * Boost specification to boost certain documents.
            +     * For more information on boosting, see
            +     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
                  * 
            * - * string canonical_filter = 29; - * - * @return This builder for chaining. + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; */ - public Builder clearCanonicalFilter() { - canonicalFilter_ = getDefaultInstance().getCanonicalFilter(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); + public Builder mergeBoostSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec value) { + if (boostSpecBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) + && boostSpec_ != null + && boostSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec + .getDefaultInstance()) { + getBoostSpecBuilder().mergeFrom(value); + } else { + boostSpec_ = value; + } + } else { + boostSpecBuilder_.mergeFrom(value); + } + if (boostSpec_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } return this; } @@ -36098,103 +47879,61 @@ public Builder clearCanonicalFilter() { * * *
            -     * The default filter that is applied when a user performs a search without
            -     * checking any filters on the search page.
            -     *
            -     * The filter applied to every search request when quality improvement such as
            -     * query expansion is needed. In the case a query does not have a sufficient
            -     * amount of results this filter will be used to determine whether or not to
            -     * enable the query expansion flow. The original filter will still be used for
            -     * the query expanded search.
            -     * This field is strongly recommended to achieve high search quality.
            -     *
            -     * For more information about filter syntax, see
            -     * [SearchRequest.filter][google.cloud.discoveryengine.v1beta.SearchRequest.filter].
            +     * Boost specification to boost certain documents.
            +     * For more information on boosting, see
            +     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
                  * 
            * - * string canonical_filter = 29; - * - * @param value The bytes for canonicalFilter to set. - * @return This builder for chaining. + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; */ - public Builder setCanonicalFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearBoostSpec() { + bitField0_ = (bitField0_ & ~0x00040000); + boostSpec_ = null; + if (boostSpecBuilder_ != null) { + boostSpecBuilder_.dispose(); + boostSpecBuilder_ = null; } - checkByteStringIsUtf8(value); - canonicalFilter_ = value; - bitField0_ |= 0x00000400; onChanged(); return this; } - private java.lang.Object orderBy_ = ""; - /** * * *
            -     * The order in which documents are returned. Documents can be ordered by
            -     * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
            -     * object. Leave it unset if ordered by relevance. `order_by` expression is
            -     * case-sensitive.
            -     *
            -     * For more information on ordering the website search results, see
            -     * [Order web search
            -     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results).
            -     * For more information on ordering the healthcare search results, see
            -     * [Order healthcare search
            -     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results).
            -     * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            +     * Boost specification to boost certain documents.
            +     * For more information on boosting, see
            +     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
                  * 
            * - * string order_by = 8; - * - * @return The orderBy. + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; */ - 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; - } + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder + getBoostSpecBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return internalGetBoostSpecFieldBuilder().getBuilder(); } /** * * *
            -     * The order in which documents are returned. Documents can be ordered by
            -     * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
            -     * object. Leave it unset if ordered by relevance. `order_by` expression is
            -     * case-sensitive.
            -     *
            -     * For more information on ordering the website search results, see
            -     * [Order web search
            -     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results).
            -     * For more information on ordering the healthcare search results, see
            -     * [Order healthcare search
            -     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results).
            -     * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            +     * Boost specification to boost certain documents.
            +     * For more information on boosting, see
            +     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
                  * 
            * - * string order_by = 8; - * - * @return The bytes for orderBy. + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; */ - 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; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder + getBoostSpecOrBuilder() { + if (boostSpecBuilder_ != null) { + return boostSpecBuilder_.getMessageOrBuilder(); } else { - return (com.google.protobuf.ByteString) ref; + return boostSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() + : boostSpec_; } } @@ -36202,194 +47941,302 @@ public com.google.protobuf.ByteString getOrderByBytes() { * * *
            -     * The order in which documents are returned. Documents can be ordered by
            -     * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
            -     * object. Leave it unset if ordered by relevance. `order_by` expression is
            -     * case-sensitive.
            -     *
            -     * For more information on ordering the website search results, see
            -     * [Order web search
            -     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results).
            -     * For more information on ordering the healthcare search results, see
            -     * [Order healthcare search
            -     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results).
            -     * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            +     * Boost specification to boost certain documents.
            +     * For more information on boosting, see
            +     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
                  * 
            * - * string order_by = 8; - * - * @param value The orderBy to set. - * @return This builder for chaining. + * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder> + internalGetBoostSpecFieldBuilder() { + if (boostSpecBuilder_ == null) { + boostSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder>( + getBoostSpec(), getParentForChildren(), isClean()); + boostSpec_ = null; } - orderBy_ = value; - bitField0_ |= 0x00000800; + return boostSpecBuilder_; + } + + private static final class ParamsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, com.google.protobuf.ValueOrBuilder, com.google.protobuf.Value> { + @java.lang.Override + public com.google.protobuf.Value build(com.google.protobuf.ValueOrBuilder val) { + if (val instanceof com.google.protobuf.Value) { + return (com.google.protobuf.Value) val; + } + return ((com.google.protobuf.Value.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry + defaultEntry() { + return ParamsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final ParamsConverter paramsConverter = new ParamsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.protobuf.ValueOrBuilder, + com.google.protobuf.Value, + com.google.protobuf.Value.Builder> + params_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.protobuf.ValueOrBuilder, + com.google.protobuf.Value, + com.google.protobuf.Value.Builder> + internalGetParams() { + if (params_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(paramsConverter); + } + return params_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.protobuf.ValueOrBuilder, + com.google.protobuf.Value, + com.google.protobuf.Value.Builder> + internalGetMutableParams() { + if (params_ == null) { + params_ = new com.google.protobuf.MapFieldBuilder<>(paramsConverter); + } + bitField0_ |= 0x00080000; onChanged(); - return this; + return params_; + } + + public int getParamsCount() { + return internalGetParams().ensureBuilderMap().size(); } /** * * *
            -     * The order in which documents are returned. Documents can be ordered by
            -     * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
            -     * object. Leave it unset if ordered by relevance. `order_by` expression is
            -     * case-sensitive.
            +     * Additional search parameters.
                  *
            -     * For more information on ordering the website search results, see
            -     * [Order web search
            -     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results).
            -     * For more information on ordering the healthcare search results, see
            -     * [Order healthcare search
            -     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results).
            -     * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            -     * 
            + * For public website search only, supported values are: * - * string order_by = 8; + * * `user_country_code`: string. Default empty. If set to non-empty, results + * are restricted or boosted based on the location provided. + * For example, `user_country_code: "au"` * - * @return This builder for chaining. + * For available codes see [Country + * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes) + * + * * `search_type`: double. Default empty. Enables non-webpage searching + * depending on the value. The only valid non-default value is 1, + * which enables image searching. + * For example, `search_type: 1` + *
            + * + * map<string, .google.protobuf.Value> params = 11; */ - public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - return this; + @java.lang.Override + public boolean containsParams(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetParams().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getParamsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getParams() { + return getParamsMap(); } /** * * *
            -     * The order in which documents are returned. Documents can be ordered by
            -     * a field in an [Document][google.cloud.discoveryengine.v1beta.Document]
            -     * object. Leave it unset if ordered by relevance. `order_by` expression is
            -     * case-sensitive.
            +     * Additional search parameters.
                  *
            -     * For more information on ordering the website search results, see
            -     * [Order web search
            -     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results).
            -     * For more information on ordering the healthcare search results, see
            -     * [Order healthcare search
            -     * results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results).
            -     * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
            -     * 
            + * For public website search only, supported values are: * - * string order_by = 8; + * * `user_country_code`: string. Default empty. If set to non-empty, results + * are restricted or boosted based on the location provided. + * For example, `user_country_code: "au"` * - * @param value The bytes for orderBy to set. - * @return This builder for chaining. + * For available codes see [Country + * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes) + * + * * `search_type`: double. Default empty. Enables non-webpage searching + * depending on the value. The only valid non-default value is 1, + * which enables image searching. + * For example, `search_type: 1` + *
            + * + * map<string, .google.protobuf.Value> params = 11; */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - orderBy_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; + @java.lang.Override + public java.util.Map getParamsMap() { + return internalGetParams().getImmutableMap(); } - private com.google.cloud.discoveryengine.v1beta.UserInfo userInfo_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.UserInfo, - com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, - com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder> - userInfoBuilder_; - /** * * *
            -     * Information about the end user.
            -     * Highly recommended for analytics.
            -     * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            -     * is used to deduce `device_type` for analytics.
            -     * 
            + * Additional search parameters. * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; + * For public website search only, supported values are: * - * @return Whether the userInfo field is set. + * * `user_country_code`: string. Default empty. If set to non-empty, results + * are restricted or boosted based on the location provided. + * For example, `user_country_code: "au"` + * + * For available codes see [Country + * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes) + * + * * `search_type`: double. Default empty. Enables non-webpage searching + * depending on the value. The only valid non-default value is 1, + * which enables image searching. + * For example, `search_type: 1` + *
            + * + * map<string, .google.protobuf.Value> params = 11; */ - public boolean hasUserInfo() { - return ((bitField0_ & 0x00001000) != 0); + @java.lang.Override + public /* nullable */ com.google.protobuf.Value getParamsOrDefault( + java.lang.String key, + /* nullable */ + com.google.protobuf.Value defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableParams().ensureBuilderMap(); + return map.containsKey(key) ? paramsConverter.build(map.get(key)) : defaultValue; } /** * * *
            -     * Information about the end user.
            -     * Highly recommended for analytics.
            -     * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            -     * is used to deduce `device_type` for analytics.
            -     * 
            + * Additional search parameters. * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; + * For public website search only, supported values are: * - * @return The userInfo. + * * `user_country_code`: string. Default empty. If set to non-empty, results + * are restricted or boosted based on the location provided. + * For example, `user_country_code: "au"` + * + * For available codes see [Country + * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes) + * + * * `search_type`: double. Default empty. Enables non-webpage searching + * depending on the value. The only valid non-default value is 1, + * which enables image searching. + * For example, `search_type: 1` + *
            + * + * map<string, .google.protobuf.Value> params = 11; */ - public com.google.cloud.discoveryengine.v1beta.UserInfo getUserInfo() { - if (userInfoBuilder_ == null) { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() - : userInfo_; - } else { - return userInfoBuilder_.getMessage(); + @java.lang.Override + public com.google.protobuf.Value getParamsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableParams().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return paramsConverter.build(map.get(key)); + } + + public Builder clearParams() { + bitField0_ = (bitField0_ & ~0x00080000); + internalGetMutableParams().clear(); + return this; } /** * * *
            -     * Information about the end user.
            -     * Highly recommended for analytics.
            -     * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            -     * is used to deduce `device_type` for analytics.
            +     * Additional search parameters.
            +     *
            +     * For public website search only, supported values are:
            +     *
            +     * * `user_country_code`: string. Default empty. If set to non-empty, results
            +     * are restricted or boosted based on the location provided.
            +     * For example, `user_country_code: "au"`
            +     *
            +     * For available codes see [Country
            +     * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
            +     *
            +     * * `search_type`: double. Default empty. Enables non-webpage searching
            +     * depending on the value. The only valid non-default value is 1,
            +     * which enables image searching.
            +     * For example, `search_type: 1`
                  * 
            * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; + * map<string, .google.protobuf.Value> params = 11; */ - public Builder setUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo value) { - if (userInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - userInfo_ = value; - } else { - userInfoBuilder_.setMessage(value); + public Builder removeParams(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00001000; - onChanged(); + internalGetMutableParams().ensureBuilderMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableParams() { + bitField0_ |= 0x00080000; + return internalGetMutableParams().ensureMessageMap(); + } + /** * * *
            -     * Information about the end user.
            -     * Highly recommended for analytics.
            -     * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            -     * is used to deduce `device_type` for analytics.
            +     * Additional search parameters.
            +     *
            +     * For public website search only, supported values are:
            +     *
            +     * * `user_country_code`: string. Default empty. If set to non-empty, results
            +     * are restricted or boosted based on the location provided.
            +     * For example, `user_country_code: "au"`
            +     *
            +     * For available codes see [Country
            +     * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
            +     *
            +     * * `search_type`: double. Default empty. Enables non-webpage searching
            +     * depending on the value. The only valid non-default value is 1,
            +     * which enables image searching.
            +     * For example, `search_type: 1`
                  * 
            * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; + * map<string, .google.protobuf.Value> params = 11; */ - public Builder setUserInfo( - com.google.cloud.discoveryengine.v1beta.UserInfo.Builder builderForValue) { - if (userInfoBuilder_ == null) { - userInfo_ = builderForValue.build(); - } else { - userInfoBuilder_.setMessage(builderForValue.build()); + public Builder putParams(java.lang.String key, com.google.protobuf.Value value) { + if (key == null) { + throw new NullPointerException("map key"); } - bitField0_ |= 0x00001000; - onChanged(); + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableParams().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00080000; return this; } @@ -36397,30 +48244,33 @@ public Builder setUserInfo( * * *
            -     * Information about the end user.
            -     * Highly recommended for analytics.
            -     * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            -     * is used to deduce `device_type` for analytics.
            +     * Additional search parameters.
            +     *
            +     * For public website search only, supported values are:
            +     *
            +     * * `user_country_code`: string. Default empty. If set to non-empty, results
            +     * are restricted or boosted based on the location provided.
            +     * For example, `user_country_code: "au"`
            +     *
            +     * For available codes see [Country
            +     * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
            +     *
            +     * * `search_type`: double. Default empty. Enables non-webpage searching
            +     * depending on the value. The only valid non-default value is 1,
            +     * which enables image searching.
            +     * For example, `search_type: 1`
                  * 
            * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; + * map<string, .google.protobuf.Value> params = 11; */ - public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo value) { - if (userInfoBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && userInfo_ != null - && userInfo_ != com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance()) { - getUserInfoBuilder().mergeFrom(value); - } else { - userInfo_ = value; + public Builder putAllParams(java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); } - } else { - userInfoBuilder_.mergeFrom(value); - } - if (userInfo_ != null) { - bitField0_ |= 0x00001000; - onChanged(); } + internalGetMutableParams().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00080000; return this; } @@ -36428,62 +48278,89 @@ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo va * * *
            -     * Information about the end user.
            -     * Highly recommended for analytics.
            -     * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            -     * is used to deduce `device_type` for analytics.
            +     * Additional search parameters.
            +     *
            +     * For public website search only, supported values are:
            +     *
            +     * * `user_country_code`: string. Default empty. If set to non-empty, results
            +     * are restricted or boosted based on the location provided.
            +     * For example, `user_country_code: "au"`
            +     *
            +     * For available codes see [Country
            +     * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
            +     *
            +     * * `search_type`: double. Default empty. Enables non-webpage searching
            +     * depending on the value. The only valid non-default value is 1,
            +     * which enables image searching.
            +     * For example, `search_type: 1`
                  * 
            * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; + * map<string, .google.protobuf.Value> params = 11; */ - public Builder clearUserInfo() { - bitField0_ = (bitField0_ & ~0x00001000); - userInfo_ = null; - if (userInfoBuilder_ != null) { - userInfoBuilder_.dispose(); - userInfoBuilder_ = null; + public com.google.protobuf.Value.Builder putParamsBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = + internalGetMutableParams().ensureBuilderMap(); + com.google.protobuf.ValueOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.protobuf.Value.newBuilder(); + builderMap.put(key, entry); } - onChanged(); - return this; + if (entry instanceof com.google.protobuf.Value) { + entry = ((com.google.protobuf.Value) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.protobuf.Value.Builder) entry; } + private com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec + queryExpansionSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder> + queryExpansionSpecBuilder_; + /** * * *
            -     * Information about the end user.
            -     * Highly recommended for analytics.
            -     * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            -     * is used to deduce `device_type` for analytics.
            +     * The query expansion specification that specifies the conditions under which
            +     * query expansion occurs.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + * + * + * @return Whether the queryExpansionSpec field is set. */ - public com.google.cloud.discoveryengine.v1beta.UserInfo.Builder getUserInfoBuilder() { - bitField0_ |= 0x00001000; - onChanged(); - return internalGetUserInfoFieldBuilder().getBuilder(); + public boolean hasQueryExpansionSpec() { + return ((bitField0_ & 0x00100000) != 0); } /** * * *
            -     * Information about the end user.
            -     * Highly recommended for analytics.
            -     * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            -     * is used to deduce `device_type` for analytics.
            +     * The query expansion specification that specifies the conditions under which
            +     * query expansion occurs.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + * + * + * @return The queryExpansionSpec. */ - public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBuilder() { - if (userInfoBuilder_ != null) { - return userInfoBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec + getQueryExpansionSpec() { + if (queryExpansionSpecBuilder_ == null) { + return queryExpansionSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec + .getDefaultInstance() + : queryExpansionSpec_; } else { - return userInfo_ == null - ? com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance() - : userInfo_; + return queryExpansionSpecBuilder_.getMessage(); } } @@ -36491,109 +48368,107 @@ public com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder getUserInfoOrBu * * *
            -     * Information about the end user.
            -     * Highly recommended for analytics.
            -     * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
            -     * is used to deduce `device_type` for analytics.
            +     * The query expansion specification that specifies the conditions under which
            +     * query expansion occurs.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 21; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + * */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.UserInfo, - com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, - com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder> - internalGetUserInfoFieldBuilder() { - if (userInfoBuilder_ == null) { - userInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.UserInfo, - com.google.cloud.discoveryengine.v1beta.UserInfo.Builder, - com.google.cloud.discoveryengine.v1beta.UserInfoOrBuilder>( - getUserInfo(), getParentForChildren(), isClean()); - userInfo_ = null; + public Builder setQueryExpansionSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec value) { + if (queryExpansionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryExpansionSpec_ = value; + } else { + queryExpansionSpecBuilder_.setMessage(value); } - return userInfoBuilder_; + bitField0_ |= 0x00100000; + onChanged(); + return this; } - private java.lang.Object languageCode_ = ""; - /** * * *
            -     * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
            -     * information, see [Standard
            -     * fields](https://cloud.google.com/apis/design/standard_fields). This field
            -     * helps to better interpret the query. If a value isn't specified, the query
            -     * language code is automatically detected, which may not be accurate.
            +     * The query expansion specification that specifies the conditions under which
            +     * query expansion occurs.
                  * 
            * - * string language_code = 35; - * - * @return The languageCode. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + * */ - 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; + public Builder setQueryExpansionSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder + builderForValue) { + if (queryExpansionSpecBuilder_ == null) { + queryExpansionSpec_ = builderForValue.build(); } else { - return (java.lang.String) ref; + queryExpansionSpecBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00100000; + onChanged(); + return this; } /** * * *
            -     * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
            -     * information, see [Standard
            -     * fields](https://cloud.google.com/apis/design/standard_fields). This field
            -     * helps to better interpret the query. If a value isn't specified, the query
            -     * language code is automatically detected, which may not be accurate.
            +     * The query expansion specification that specifies the conditions under which
            +     * query expansion occurs.
                  * 
            * - * string language_code = 35; - * - * @return The bytes for languageCode. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + * */ - 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; + public Builder mergeQueryExpansionSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec value) { + if (queryExpansionSpecBuilder_ == null) { + if (((bitField0_ & 0x00100000) != 0) + && queryExpansionSpec_ != null + && queryExpansionSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec + .getDefaultInstance()) { + getQueryExpansionSpecBuilder().mergeFrom(value); + } else { + queryExpansionSpec_ = value; + } } else { - return (com.google.protobuf.ByteString) ref; + queryExpansionSpecBuilder_.mergeFrom(value); } + if (queryExpansionSpec_ != null) { + bitField0_ |= 0x00100000; + onChanged(); + } + return this; } /** * * *
            -     * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
            -     * information, see [Standard
            -     * fields](https://cloud.google.com/apis/design/standard_fields). This field
            -     * helps to better interpret the query. If a value isn't specified, the query
            -     * language code is automatically detected, which may not be accurate.
            +     * The query expansion specification that specifies the conditions under which
            +     * query expansion occurs.
                  * 
            * - * string language_code = 35; - * - * @param value The languageCode to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + * */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearQueryExpansionSpec() { + bitField0_ = (bitField0_ & ~0x00100000); + queryExpansionSpec_ = null; + if (queryExpansionSpecBuilder_ != null) { + queryExpansionSpecBuilder_.dispose(); + queryExpansionSpecBuilder_ = null; } - languageCode_ = value; - bitField0_ |= 0x00002000; onChanged(); return this; } @@ -36602,147 +48477,149 @@ public Builder setLanguageCode(java.lang.String value) { * * *
            -     * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
            -     * information, see [Standard
            -     * fields](https://cloud.google.com/apis/design/standard_fields). This field
            -     * helps to better interpret the query. If a value isn't specified, the query
            -     * language code is automatically detected, which may not be accurate.
            +     * The query expansion specification that specifies the conditions under which
            +     * query expansion occurs.
                  * 
            * - * string language_code = 35; - * - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + * */ - public Builder clearLanguageCode() { - languageCode_ = getDefaultInstance().getLanguageCode(); - bitField0_ = (bitField0_ & ~0x00002000); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder + getQueryExpansionSpecBuilder() { + bitField0_ |= 0x00100000; onChanged(); - return this; + return internalGetQueryExpansionSpecFieldBuilder().getBuilder(); } /** * * *
            -     * The BCP-47 language code, such as "en-US" or "sr-Latn". For more
            -     * information, see [Standard
            -     * fields](https://cloud.google.com/apis/design/standard_fields). This field
            -     * helps to better interpret the query. If a value isn't specified, the query
            -     * language code is automatically detected, which may not be accurate.
            +     * The query expansion specification that specifies the conditions under which
            +     * query expansion occurs.
                  * 
            * - * string language_code = 35; - * - * @param value The bytes for languageCode to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + * */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder + getQueryExpansionSpecOrBuilder() { + if (queryExpansionSpecBuilder_ != null) { + return queryExpansionSpecBuilder_.getMessageOrBuilder(); + } else { + return queryExpansionSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec + .getDefaultInstance() + : queryExpansionSpec_; } - checkByteStringIsUtf8(value); - languageCode_ = value; - bitField0_ |= 0x00002000; - onChanged(); - return this; } - private java.lang.Object regionCode_ = ""; - /** * * *
            -     * The Unicode country/region code (CLDR) of a location, such as "US" and
            -     * "419". For more information, see [Standard
            -     * fields](https://cloud.google.com/apis/design/standard_fields). If set,
            -     * then results will be boosted based on the region_code provided.
            +     * The query expansion specification that specifies the conditions under which
            +     * query expansion occurs.
                  * 
            * - * string region_code = 36; - * - * @return The regionCode. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + * */ - public java.lang.String getRegionCode() { - java.lang.Object ref = regionCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - regionCode_ = s; - return s; - } else { - return (java.lang.String) ref; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder> + internalGetQueryExpansionSpecFieldBuilder() { + if (queryExpansionSpecBuilder_ == null) { + queryExpansionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder>( + getQueryExpansionSpec(), getParentForChildren(), isClean()); + queryExpansionSpec_ = null; } + return queryExpansionSpecBuilder_; } + private com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec + spellCorrectionSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder> + spellCorrectionSpecBuilder_; + /** * * *
            -     * The Unicode country/region code (CLDR) of a location, such as "US" and
            -     * "419". For more information, see [Standard
            -     * fields](https://cloud.google.com/apis/design/standard_fields). If set,
            -     * then results will be boosted based on the region_code provided.
            +     * The spell correction specification that specifies the mode under
            +     * which spell correction takes effect.
                  * 
            * - * string region_code = 36; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * * - * @return The bytes for regionCode. + * @return Whether the spellCorrectionSpec field is set. */ - public com.google.protobuf.ByteString getRegionCodeBytes() { - java.lang.Object ref = regionCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - regionCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public boolean hasSpellCorrectionSpec() { + return ((bitField0_ & 0x00200000) != 0); } /** * * *
            -     * The Unicode country/region code (CLDR) of a location, such as "US" and
            -     * "419". For more information, see [Standard
            -     * fields](https://cloud.google.com/apis/design/standard_fields). If set,
            -     * then results will be boosted based on the region_code provided.
            +     * The spell correction specification that specifies the mode under
            +     * which spell correction takes effect.
                  * 
            * - * string region_code = 36; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * * - * @param value The regionCode to set. - * @return This builder for chaining. + * @return The spellCorrectionSpec. */ - public Builder setRegionCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec + getSpellCorrectionSpec() { + if (spellCorrectionSpecBuilder_ == null) { + return spellCorrectionSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec + .getDefaultInstance() + : spellCorrectionSpec_; + } else { + return spellCorrectionSpecBuilder_.getMessage(); } - regionCode_ = value; - bitField0_ |= 0x00004000; - onChanged(); - return this; } /** * * *
            -     * The Unicode country/region code (CLDR) of a location, such as "US" and
            -     * "419". For more information, see [Standard
            -     * fields](https://cloud.google.com/apis/design/standard_fields). If set,
            -     * then results will be boosted based on the region_code provided.
            +     * The spell correction specification that specifies the mode under
            +     * which spell correction takes effect.
                  * 
            * - * string region_code = 36; - * - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * */ - public Builder clearRegionCode() { - regionCode_ = getDefaultInstance().getRegionCode(); - bitField0_ = (bitField0_ & ~0x00004000); + public Builder setSpellCorrectionSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec value) { + if (spellCorrectionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spellCorrectionSpec_ = value; + } else { + spellCorrectionSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -36751,243 +48628,262 @@ public Builder clearRegionCode() { * * *
            -     * The Unicode country/region code (CLDR) of a location, such as "US" and
            -     * "419". For more information, see [Standard
            -     * fields](https://cloud.google.com/apis/design/standard_fields). If set,
            -     * then results will be boosted based on the region_code provided.
            +     * The spell correction specification that specifies the mode under
            +     * which spell correction takes effect.
                  * 
            * - * string region_code = 36; - * - * @param value The bytes for regionCode to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * */ - public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder setSpellCorrectionSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder + builderForValue) { + if (spellCorrectionSpecBuilder_ == null) { + spellCorrectionSpec_ = builderForValue.build(); + } else { + spellCorrectionSpecBuilder_.setMessage(builderForValue.build()); } - checkByteStringIsUtf8(value); - regionCode_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00200000; onChanged(); return this; } - private java.util.List - facetSpecs_ = java.util.Collections.emptyList(); - - private void ensureFacetSpecsIsMutable() { - if (!((bitField0_ & 0x00008000) != 0)) { - facetSpecs_ = - new java.util.ArrayList< - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec>(facetSpecs_); - bitField0_ |= 0x00008000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder> - facetSpecsBuilder_; - /** * * *
            -     * Facet specifications for faceted search. If empty, no facets are returned.
            -     *
            -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -     * error is returned.
            +     * The spell correction specification that specifies the mode under
            +     * which spell correction takes effect.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; * */ - public java.util.List - getFacetSpecsList() { - if (facetSpecsBuilder_ == null) { - return java.util.Collections.unmodifiableList(facetSpecs_); + public Builder mergeSpellCorrectionSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec value) { + if (spellCorrectionSpecBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0) + && spellCorrectionSpec_ != null + && spellCorrectionSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec + .getDefaultInstance()) { + getSpellCorrectionSpecBuilder().mergeFrom(value); + } else { + spellCorrectionSpec_ = value; + } } else { - return facetSpecsBuilder_.getMessageList(); + spellCorrectionSpecBuilder_.mergeFrom(value); + } + if (spellCorrectionSpec_ != null) { + bitField0_ |= 0x00200000; + onChanged(); } + return this; } /** * * *
            -     * Facet specifications for faceted search. If empty, no facets are returned.
            -     *
            -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -     * error is returned.
            +     * The spell correction specification that specifies the mode under
            +     * which spell correction takes effect.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; * */ - public int getFacetSpecsCount() { - if (facetSpecsBuilder_ == null) { - return facetSpecs_.size(); - } else { - return facetSpecsBuilder_.getCount(); + public Builder clearSpellCorrectionSpec() { + bitField0_ = (bitField0_ & ~0x00200000); + spellCorrectionSpec_ = null; + if (spellCorrectionSpecBuilder_ != null) { + spellCorrectionSpecBuilder_.dispose(); + spellCorrectionSpecBuilder_ = null; } + onChanged(); + return this; } /** * * *
            -     * Facet specifications for faceted search. If empty, no facets are returned.
            -     *
            -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -     * error is returned.
            +     * The spell correction specification that specifies the mode under
            +     * which spell correction takes effect.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec getFacetSpecs( - int index) { - if (facetSpecsBuilder_ == null) { - return facetSpecs_.get(index); - } else { - return facetSpecsBuilder_.getMessage(index); - } + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder + getSpellCorrectionSpecBuilder() { + bitField0_ |= 0x00200000; + onChanged(); + return internalGetSpellCorrectionSpecFieldBuilder().getBuilder(); } /** * * *
            -     * Facet specifications for faceted search. If empty, no facets are returned.
            -     *
            -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -     * error is returned.
            +     * The spell correction specification that specifies the mode under
            +     * which spell correction takes effect.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; * */ - public Builder setFacetSpecs( - int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec value) { - if (facetSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFacetSpecsIsMutable(); - facetSpecs_.set(index, value); - onChanged(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder + getSpellCorrectionSpecOrBuilder() { + if (spellCorrectionSpecBuilder_ != null) { + return spellCorrectionSpecBuilder_.getMessageOrBuilder(); } else { - facetSpecsBuilder_.setMessage(index, value); + return spellCorrectionSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec + .getDefaultInstance() + : spellCorrectionSpec_; } - return this; } /** * * *
            -     * Facet specifications for faceted search. If empty, no facets are returned.
            -     *
            -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -     * error is returned.
            +     * The spell correction specification that specifies the mode under
            +     * which spell correction takes effect.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; * */ - public Builder setFacetSpecs( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder builderForValue) { - if (facetSpecsBuilder_ == null) { - ensureFacetSpecsIsMutable(); - facetSpecs_.set(index, builderForValue.build()); - onChanged(); - } else { - facetSpecsBuilder_.setMessage(index, builderForValue.build()); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder> + internalGetSpellCorrectionSpecFieldBuilder() { + if (spellCorrectionSpecBuilder_ == null) { + spellCorrectionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder>( + getSpellCorrectionSpec(), getParentForChildren(), isClean()); + spellCorrectionSpec_ = null; } - return this; + return spellCorrectionSpecBuilder_; } + private java.lang.Object userPseudoId_ = ""; + /** * * *
            -     * Facet specifications for faceted search. If empty, no facets are returned.
            +     * Optional. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
                  *
            -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -     * error is returned.
            +     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     *
            +     * This should be the same identifier as
            +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +     * and
            +     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.CompleteQueryRequest.user_pseudo_id]
            +     *
            +     * The field must be a UTF-8 encoded string with a length limit of 128
            +     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userPseudoId. */ - public Builder addFacetSpecs( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec value) { - if (facetSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFacetSpecsIsMutable(); - facetSpecs_.add(value); - onChanged(); + public java.lang.String getUserPseudoId() { + java.lang.Object ref = userPseudoId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPseudoId_ = s; + return s; } else { - facetSpecsBuilder_.addMessage(value); + return (java.lang.String) ref; } - return this; } /** * * *
            -     * Facet specifications for faceted search. If empty, no facets are returned.
            +     * Optional. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
                  *
            -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -     * error is returned.
            +     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     *
            +     * This should be the same identifier as
            +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +     * and
            +     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.CompleteQueryRequest.user_pseudo_id]
            +     *
            +     * The field must be a UTF-8 encoded string with a length limit of 128
            +     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userPseudoId. */ - public Builder addFacetSpecs( - int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec value) { - if (facetSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFacetSpecsIsMutable(); - facetSpecs_.add(index, value); - onChanged(); + public com.google.protobuf.ByteString getUserPseudoIdBytes() { + java.lang.Object ref = userPseudoId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPseudoId_ = b; + return b; } else { - facetSpecsBuilder_.addMessage(index, value); + return (com.google.protobuf.ByteString) ref; } - return this; } /** * * *
            -     * Facet specifications for faceted search. If empty, no facets are returned.
            +     * Optional. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
                  *
            -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -     * error is returned.
            +     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     *
            +     * This should be the same identifier as
            +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +     * and
            +     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.CompleteQueryRequest.user_pseudo_id]
            +     *
            +     * The field must be a UTF-8 encoded string with a length limit of 128
            +     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The userPseudoId to set. + * @return This builder for chaining. */ - public Builder addFacetSpecs( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder builderForValue) { - if (facetSpecsBuilder_ == null) { - ensureFacetSpecsIsMutable(); - facetSpecs_.add(builderForValue.build()); - onChanged(); - } else { - facetSpecsBuilder_.addMessage(builderForValue.build()); + public Builder setUserPseudoId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + userPseudoId_ = value; + bitField0_ |= 0x00400000; + onChanged(); return this; } @@ -36995,25 +48891,30 @@ public Builder addFacetSpecs( * * *
            -     * Facet specifications for faceted search. If empty, no facets are returned.
            +     * Optional. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
                  *
            -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -     * error is returned.
            +     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     *
            +     * This should be the same identifier as
            +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +     * and
            +     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.CompleteQueryRequest.user_pseudo_id]
            +     *
            +     * The field must be a UTF-8 encoded string with a length limit of 128
            +     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ - public Builder addFacetSpecs( - int index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder builderForValue) { - if (facetSpecsBuilder_ == null) { - ensureFacetSpecsIsMutable(); - facetSpecs_.add(index, builderForValue.build()); - onChanged(); - } else { - facetSpecsBuilder_.addMessage(index, builderForValue.build()); - } + public Builder clearUserPseudoId() { + userPseudoId_ = getDefaultInstance().getUserPseudoId(); + bitField0_ = (bitField0_ & ~0x00400000); + onChanged(); return this; } @@ -37021,74 +48922,111 @@ public Builder addFacetSpecs( * * *
            -     * Facet specifications for faceted search. If empty, no facets are returned.
            +     * Optional. A unique identifier for tracking visitors. For example, this
            +     * could be implemented with an HTTP cookie, which should be able to uniquely
            +     * identify a visitor on a single device. This unique identifier should not
            +     * change if the visitor logs in or out of the website.
                  *
            -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -     * error is returned.
            +     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     *
            +     * This should be the same identifier as
            +     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            +     * and
            +     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.CompleteQueryRequest.user_pseudo_id]
            +     *
            +     * The field must be a UTF-8 encoded string with a length limit of 128
            +     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; - * + * string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for userPseudoId to set. + * @return This builder for chaining. */ - public Builder addAllFacetSpecs( - java.lang.Iterable< - ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec> - values) { - if (facetSpecsBuilder_ == null) { - ensureFacetSpecsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, facetSpecs_); - onChanged(); - } else { - facetSpecsBuilder_.addAllMessages(values); + public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userPseudoId_ = value; + bitField0_ |= 0x00400000; + onChanged(); return this; } + private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + contentSearchSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder> + contentSearchSpecBuilder_; + /** * * *
            -     * Facet specifications for faceted search. If empty, no facets are returned.
            +     * A specification for configuring the behavior of content search.
            +     * 
            * - * A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` - * error is returned. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; + * + * + * @return Whether the contentSearchSpec field is set. + */ + public boolean hasContentSearchSpec() { + return ((bitField0_ & 0x00800000) != 0); + } + + /** + * + * + *
            +     * A specification for configuring the behavior of content search.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; * + * + * @return The contentSearchSpec. */ - public Builder clearFacetSpecs() { - if (facetSpecsBuilder_ == null) { - facetSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00008000); - onChanged(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + getContentSearchSpec() { + if (contentSearchSpecBuilder_ == null) { + return contentSearchSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .getDefaultInstance() + : contentSearchSpec_; } else { - facetSpecsBuilder_.clear(); + return contentSearchSpecBuilder_.getMessage(); } - return this; } /** * * *
            -     * Facet specifications for faceted search. If empty, no facets are returned.
            -     *
            -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -     * error is returned.
            +     * A specification for configuring the behavior of content search.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; * */ - public Builder removeFacetSpecs(int index) { - if (facetSpecsBuilder_ == null) { - ensureFacetSpecsIsMutable(); - facetSpecs_.remove(index); - onChanged(); + public Builder setContentSearchSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec value) { + if (contentSearchSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contentSearchSpec_ = value; } else { - facetSpecsBuilder_.remove(index); + contentSearchSpecBuilder_.setMessage(value); } + bitField0_ |= 0x00800000; + onChanged(); return this; } @@ -37096,185 +49034,211 @@ public Builder removeFacetSpecs(int index) { * * *
            -     * Facet specifications for faceted search. If empty, no facets are returned.
            -     *
            -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -     * error is returned.
            +     * A specification for configuring the behavior of content search.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder - getFacetSpecsBuilder(int index) { - return internalGetFacetSpecsFieldBuilder().getBuilder(index); + public Builder setContentSearchSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder + builderForValue) { + if (contentSearchSpecBuilder_ == null) { + contentSearchSpec_ = builderForValue.build(); + } else { + contentSearchSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00800000; + onChanged(); + return this; } /** * * *
            -     * Facet specifications for faceted search. If empty, no facets are returned.
            -     *
            -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -     * error is returned.
            +     * A specification for configuring the behavior of content search.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder - getFacetSpecsOrBuilder(int index) { - if (facetSpecsBuilder_ == null) { - return facetSpecs_.get(index); + public Builder mergeContentSearchSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec value) { + if (contentSearchSpecBuilder_ == null) { + if (((bitField0_ & 0x00800000) != 0) + && contentSearchSpec_ != null + && contentSearchSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .getDefaultInstance()) { + getContentSearchSpecBuilder().mergeFrom(value); + } else { + contentSearchSpec_ = value; + } } else { - return facetSpecsBuilder_.getMessageOrBuilder(index); + contentSearchSpecBuilder_.mergeFrom(value); + } + if (contentSearchSpec_ != null) { + bitField0_ |= 0x00800000; + onChanged(); } + return this; } /** * * *
            -     * Facet specifications for faceted search. If empty, no facets are returned.
            -     *
            -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -     * error is returned.
            +     * A specification for configuring the behavior of content search.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; * */ - public java.util.List< - ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder> - getFacetSpecsOrBuilderList() { - if (facetSpecsBuilder_ != null) { - return facetSpecsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(facetSpecs_); + public Builder clearContentSearchSpec() { + bitField0_ = (bitField0_ & ~0x00800000); + contentSearchSpec_ = null; + if (contentSearchSpecBuilder_ != null) { + contentSearchSpecBuilder_.dispose(); + contentSearchSpecBuilder_ = null; } + onChanged(); + return this; } /** * * *
            -     * Facet specifications for faceted search. If empty, no facets are returned.
            -     *
            -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -     * error is returned.
            +     * A specification for configuring the behavior of content search.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder - addFacetSpecsBuilder() { - return internalGetFacetSpecsFieldBuilder() - .addBuilder( - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.getDefaultInstance()); + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder + getContentSearchSpecBuilder() { + bitField0_ |= 0x00800000; + onChanged(); + return internalGetContentSearchSpecFieldBuilder().getBuilder(); } /** * * *
            -     * Facet specifications for faceted search. If empty, no facets are returned.
            -     *
            -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -     * error is returned.
            +     * A specification for configuring the behavior of content search.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder - addFacetSpecsBuilder(int index) { - return internalGetFacetSpecsFieldBuilder() - .addBuilder( - index, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.getDefaultInstance()); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder + getContentSearchSpecOrBuilder() { + if (contentSearchSpecBuilder_ != null) { + return contentSearchSpecBuilder_.getMessageOrBuilder(); + } else { + return contentSearchSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec + .getDefaultInstance() + : contentSearchSpec_; + } } /** * * *
            -     * Facet specifications for faceted search. If empty, no facets are returned.
            -     *
            -     * A maximum of 100 values are allowed. Otherwise, an  `INVALID_ARGUMENT`
            -     * error is returned.
            +     * A specification for configuring the behavior of content search.
                  * 
            * - * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec facet_specs = 9; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; * */ - public java.util.List - getFacetSpecsBuilderList() { - return internalGetFacetSpecsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder> - internalGetFacetSpecsFieldBuilder() { - if (facetSpecsBuilder_ == null) { - facetSpecsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpecOrBuilder>( - facetSpecs_, ((bitField0_ & 0x00008000) != 0), getParentForChildren(), isClean()); - facetSpecs_ = null; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder> + internalGetContentSearchSpecFieldBuilder() { + if (contentSearchSpecBuilder_ == null) { + contentSearchSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder>( + getContentSearchSpec(), getParentForChildren(), isClean()); + contentSearchSpec_ = null; } - return facetSpecsBuilder_; + return contentSearchSpecBuilder_; } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boostSpec_; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embeddingSpec_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder> - boostSpecBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder> + embeddingSpecBuilder_; /** * * *
            -     * Boost specification to boost certain documents.
            -     * For more information on boosting, see
            -     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
            +     * Uses the provided embedding to do additional semantic document retrieval.
            +     * The retrieval is based on the dot product of
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            +     * and the document embedding that is provided in
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            +     *
            +     * If
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            +     * is not provided, it will use
            +     * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * * - * @return Whether the boostSpec field is set. + * @return Whether the embeddingSpec field is set. */ - public boolean hasBoostSpec() { - return ((bitField0_ & 0x00010000) != 0); + public boolean hasEmbeddingSpec() { + return ((bitField0_ & 0x01000000) != 0); } /** * * *
            -     * Boost specification to boost certain documents.
            -     * For more information on boosting, see
            -     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
            +     * Uses the provided embedding to do additional semantic document retrieval.
            +     * The retrieval is based on the dot product of
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            +     * and the document embedding that is provided in
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            +     *
            +     * If
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            +     * is not provided, it will use
            +     * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * * - * @return The boostSpec. + * @return The embeddingSpec. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostSpec() { - if (boostSpecBuilder_ == null) { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() - : boostSpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec getEmbeddingSpec() { + if (embeddingSpecBuilder_ == null) { + return embeddingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .getDefaultInstance() + : embeddingSpec_; } else { - return boostSpecBuilder_.getMessage(); + return embeddingSpecBuilder_.getMessage(); } } @@ -37282,24 +49246,32 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec getBoostS * * *
            -     * Boost specification to boost certain documents.
            -     * For more information on boosting, see
            -     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
            +     * Uses the provided embedding to do additional semantic document retrieval.
            +     * The retrieval is based on the dot product of
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            +     * and the document embedding that is provided in
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            +     *
            +     * If
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            +     * is not provided, it will use
            +     * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * */ - public Builder setBoostSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec value) { - if (boostSpecBuilder_ == null) { + public Builder setEmbeddingSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec value) { + if (embeddingSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - boostSpec_ = value; + embeddingSpec_ = value; } else { - boostSpecBuilder_.setMessage(value); + embeddingSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -37308,21 +49280,30 @@ public Builder setBoostSpec( * * *
            -     * Boost specification to boost certain documents.
            -     * For more information on boosting, see
            -     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
            +     * Uses the provided embedding to do additional semantic document retrieval.
            +     * The retrieval is based on the dot product of
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            +     * and the document embedding that is provided in
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            +     *
            +     * If
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            +     * is not provided, it will use
            +     * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * */ - public Builder setBoostSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder builderForValue) { - if (boostSpecBuilder_ == null) { - boostSpec_ = builderForValue.build(); + public Builder setEmbeddingSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder + builderForValue) { + if (embeddingSpecBuilder_ == null) { + embeddingSpec_ = builderForValue.build(); } else { - boostSpecBuilder_.setMessage(builderForValue.build()); + embeddingSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -37331,30 +49312,38 @@ public Builder setBoostSpec( * * *
            -     * Boost specification to boost certain documents.
            -     * For more information on boosting, see
            -     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
            +     * Uses the provided embedding to do additional semantic document retrieval.
            +     * The retrieval is based on the dot product of
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            +     * and the document embedding that is provided in
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            +     *
            +     * If
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            +     * is not provided, it will use
            +     * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * */ - public Builder mergeBoostSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec value) { - if (boostSpecBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) - && boostSpec_ != null - && boostSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec + public Builder mergeEmbeddingSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec value) { + if (embeddingSpecBuilder_ == null) { + if (((bitField0_ & 0x01000000) != 0) + && embeddingSpec_ != null + && embeddingSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec .getDefaultInstance()) { - getBoostSpecBuilder().mergeFrom(value); + getEmbeddingSpecBuilder().mergeFrom(value); } else { - boostSpec_ = value; + embeddingSpec_ = value; } } else { - boostSpecBuilder_.mergeFrom(value); + embeddingSpecBuilder_.mergeFrom(value); } - if (boostSpec_ != null) { - bitField0_ |= 0x00010000; + if (embeddingSpec_ != null) { + bitField0_ |= 0x01000000; onChanged(); } return this; @@ -37364,19 +49353,27 @@ public Builder mergeBoostSpec( * * *
            -     * Boost specification to boost certain documents.
            -     * For more information on boosting, see
            -     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
            +     * Uses the provided embedding to do additional semantic document retrieval.
            +     * The retrieval is based on the dot product of
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            +     * and the document embedding that is provided in
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            +     *
            +     * If
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            +     * is not provided, it will use
            +     * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * */ - public Builder clearBoostSpec() { - bitField0_ = (bitField0_ & ~0x00010000); - boostSpec_ = null; - if (boostSpecBuilder_ != null) { - boostSpecBuilder_.dispose(); - boostSpecBuilder_ = null; + public Builder clearEmbeddingSpec() { + bitField0_ = (bitField0_ & ~0x01000000); + embeddingSpec_ = null; + if (embeddingSpecBuilder_ != null) { + embeddingSpecBuilder_.dispose(); + embeddingSpecBuilder_ = null; } onChanged(); return this; @@ -37386,39 +49383,56 @@ public Builder clearBoostSpec() { * * *
            -     * Boost specification to boost certain documents.
            -     * For more information on boosting, see
            -     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
            +     * Uses the provided embedding to do additional semantic document retrieval.
            +     * The retrieval is based on the dot product of
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            +     * and the document embedding that is provided in
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            +     *
            +     * If
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            +     * is not provided, it will use
            +     * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder - getBoostSpecBuilder() { - bitField0_ |= 0x00010000; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder + getEmbeddingSpecBuilder() { + bitField0_ |= 0x01000000; onChanged(); - return internalGetBoostSpecFieldBuilder().getBuilder(); + return internalGetEmbeddingSpecFieldBuilder().getBuilder(); } /** * * *
            -     * Boost specification to boost certain documents.
            -     * For more information on boosting, see
            -     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
            +     * Uses the provided embedding to do additional semantic document retrieval.
            +     * The retrieval is based on the dot product of
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            +     * and the document embedding that is provided in
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            +     *
            +     * If
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            +     * is not provided, it will use
            +     * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder - getBoostSpecOrBuilder() { - if (boostSpecBuilder_ != null) { - return boostSpecBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder + getEmbeddingSpecOrBuilder() { + if (embeddingSpecBuilder_ != null) { + return embeddingSpecBuilder_.getMessageOrBuilder(); } else { - return boostSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.getDefaultInstance() - : boostSpec_; + return embeddingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + .getDefaultInstance() + : embeddingSpec_; } } @@ -37426,336 +49440,399 @@ public Builder clearBoostSpec() { * * *
            -     * Boost specification to boost certain documents.
            -     * For more information on boosting, see
            -     * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results)
            +     * Uses the provided embedding to do additional semantic document retrieval.
            +     * The retrieval is based on the dot product of
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            +     * and the document embedding that is provided in
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            +     *
            +     * If
            +     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            +     * is not provided, it will use
            +     * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec boost_spec = 10; + * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder> - internalGetBoostSpecFieldBuilder() { - if (boostSpecBuilder_ == null) { - boostSpecBuilder_ = + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder> + internalGetEmbeddingSpecFieldBuilder() { + if (embeddingSpecBuilder_ == null) { + embeddingSpecBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecOrBuilder>( - getBoostSpec(), getParentForChildren(), isClean()); - boostSpec_ = null; - } - return boostSpecBuilder_; - } - - private static final class ParamsConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, com.google.protobuf.ValueOrBuilder, com.google.protobuf.Value> { - @java.lang.Override - public com.google.protobuf.Value build(com.google.protobuf.ValueOrBuilder val) { - if (val instanceof com.google.protobuf.Value) { - return (com.google.protobuf.Value) val; - } - return ((com.google.protobuf.Value.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry - defaultEntry() { - return ParamsDefaultEntryHolder.defaultEntry; - } - } - ; - - private static final ParamsConverter paramsConverter = new ParamsConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.protobuf.ValueOrBuilder, - com.google.protobuf.Value, - com.google.protobuf.Value.Builder> - params_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.protobuf.ValueOrBuilder, - com.google.protobuf.Value, - com.google.protobuf.Value.Builder> - internalGetParams() { - if (params_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(paramsConverter); - } - return params_; - } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.protobuf.ValueOrBuilder, - com.google.protobuf.Value, - com.google.protobuf.Value.Builder> - internalGetMutableParams() { - if (params_ == null) { - params_ = new com.google.protobuf.MapFieldBuilder<>(paramsConverter); + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder>( + getEmbeddingSpec(), getParentForChildren(), isClean()); + embeddingSpec_ = null; } - bitField0_ |= 0x00020000; - onChanged(); - return params_; + return embeddingSpecBuilder_; } - public int getParamsCount() { - return internalGetParams().ensureBuilderMap().size(); - } + private java.lang.Object rankingExpression_ = ""; /** * * *
            -     * Additional search parameters.
            +     * Optional. The ranking expression controls the customized ranking on
            +     * retrieval documents. This overrides
            +     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression].
            +     * The syntax and supported features depend on the
            +     * `ranking_expression_backend` value. If `ranking_expression_backend` is not
            +     * provided, it defaults to `RANK_BY_EMBEDDING`.
                  *
            -     * For public website search only, supported values are:
            +     * If
            +     * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend]
            +     * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
            +     * function or multiple functions that are joined by "+".
                  *
            -     * * `user_country_code`: string. Default empty. If set to non-empty, results
            -     * are restricted or boosted based on the location provided.
            -     * For example, `user_country_code: "au"`
            +     * * ranking_expression = function, { " + ", function };
                  *
            -     * For available codes see [Country
            -     * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
            +     * Supported functions:
                  *
            -     * * `search_type`: double. Default empty. Enables non-webpage searching
            -     * depending on the value. The only valid non-default value is 1,
            -     * which enables image searching.
            -     * For example, `search_type: 1`
            +     * * double * relevance_score
            +     * * double * dotProduct(embedding_field_path)
            +     *
            +     * Function variables:
            +     *
            +     * * `relevance_score`: pre-defined keywords, used for measure relevance
            +     * between query and document.
            +     * * `embedding_field_path`: the document embedding field
            +     * used with query embedding vector.
            +     * * `dotProduct`: embedding function between `embedding_field_path` and
            +     * query embedding vector.
            +     *
            +     * Example ranking expression:
            +     *
            +     * If document has an embedding field doc_embedding, the ranking expression
            +     * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
            +     *
            +     * If
            +     * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend]
            +     * is set to `RANK_BY_FORMULA`, the following expression types (and
            +     * combinations of those chained using + or
            +     * * operators) are supported:
            +     *
            +     * * `double`
            +     * * `signal`
            +     * * `log(signal)`
            +     * * `exp(signal)`
            +     * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
            +     * argument being a denominator constant.
            +     * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
            +     * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
            +     * signal2 | double, else returns signal1.
            +     *
            +     * Here are a few examples of ranking formulas that use the supported
            +     * ranking expression types:
            +     *
            +     * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
            +     * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
            +     * `semantic_smilarity_score` adjustment.
            +     * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
            +     * is_nan(keyword_similarity_score)` -- rank by the exponent of
            +     * `semantic_similarity_score` filling the value with 0 if it's NaN, also
            +     * add constant 0.3 adjustment to the final score if
            +     * `semantic_similarity_score` is NaN.
            +     * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
            +     * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
            +     * of `keyword_similarity_score` with slight adjustment of reciprocal rank
            +     * of `semantic_smilarity_score`.
            +     *
            +     * The following signals are supported:
            +     *
            +     * * `semantic_similarity_score`: semantic similarity adjustment that is
            +     * calculated using the embeddings generated by a proprietary Google model.
            +     * This score determines how semantically similar a search query is to a
            +     * document.
            +     * * `keyword_similarity_score`: keyword match adjustment uses the Best
            +     * Match 25 (BM25) ranking function. This score is calculated using a
            +     * probabilistic model to estimate the probability that a document is
            +     * relevant to a given query.
            +     * * `relevance_score`: semantic relevance adjustment that uses a
            +     * proprietary Google model to determine the meaning and intent behind a
            +     * user's query in context with the content in the documents.
            +     * * `pctr_rank`: predicted conversion rate adjustment as a rank use
            +     * predicted Click-through rate (pCTR) to gauge the relevance and
            +     * attractiveness of a search result from a user's perspective. A higher
            +     * pCTR suggests that the result is more likely to satisfy the user's query
            +     * and intent, making it a valuable signal for ranking.
            +     * * `freshness_rank`: freshness adjustment as a rank
            +     * * `document_age`: The time in hours elapsed since the document was last
            +     * updated, a floating-point number (e.g., 0.25 means 15 minutes).
            +     * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
            +     * Google model to determine the keyword-based overlap between the query and
            +     * the document.
            +     * * `base_rank`: the default rank of the result
            +     * * `media_actor_match`: whether the media actor matches the query
            +     * * `media_director_match`: whether the media director matches the query
            +     * * `media_genre_match`: whether the media genre matches the query
            +     * * `media_language_match`: whether the media language matches the query
            +     * * `media_title_match`: whether the media title matches the query
            +     * * `media_prefix_similarity_rank`: prefix similarity rank for media
            +     * results
            +     * * `media_semantic_similarity_rank`: semantic similarity rank for media
            +     * results
                  * 
            * - * map<string, .google.protobuf.Value> params = 11; + * string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The rankingExpression. */ - @java.lang.Override - public boolean containsParams(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public java.lang.String getRankingExpression() { + java.lang.Object ref = rankingExpression_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rankingExpression_ = s; + return s; + } else { + return (java.lang.String) ref; } - return internalGetParams().ensureBuilderMap().containsKey(key); - } - - /** Use {@link #getParamsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getParams() { - return getParamsMap(); } /** * * *
            -     * Additional search parameters.
            -     *
            -     * For public website search only, supported values are:
            -     *
            -     * * `user_country_code`: string. Default empty. If set to non-empty, results
            -     * are restricted or boosted based on the location provided.
            -     * For example, `user_country_code: "au"`
            -     *
            -     * For available codes see [Country
            -     * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
            -     *
            -     * * `search_type`: double. Default empty. Enables non-webpage searching
            -     * depending on the value. The only valid non-default value is 1,
            -     * which enables image searching.
            -     * For example, `search_type: 1`
            -     * 
            + * Optional. The ranking expression controls the customized ranking on + * retrieval documents. This overrides + * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression]. + * The syntax and supported features depend on the + * `ranking_expression_backend` value. If `ranking_expression_backend` is not + * provided, it defaults to `RANK_BY_EMBEDDING`. * - * map<string, .google.protobuf.Value> params = 11; - */ - @java.lang.Override - public java.util.Map getParamsMap() { - return internalGetParams().getImmutableMap(); - } - - /** + * If + * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend] + * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single + * function or multiple functions that are joined by "+". * + * * ranking_expression = function, { " + ", function }; * - *
            -     * Additional search parameters.
            +     * Supported functions:
                  *
            -     * For public website search only, supported values are:
            +     * * double * relevance_score
            +     * * double * dotProduct(embedding_field_path)
                  *
            -     * * `user_country_code`: string. Default empty. If set to non-empty, results
            -     * are restricted or boosted based on the location provided.
            -     * For example, `user_country_code: "au"`
            +     * Function variables:
                  *
            -     * For available codes see [Country
            -     * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
            +     * * `relevance_score`: pre-defined keywords, used for measure relevance
            +     * between query and document.
            +     * * `embedding_field_path`: the document embedding field
            +     * used with query embedding vector.
            +     * * `dotProduct`: embedding function between `embedding_field_path` and
            +     * query embedding vector.
                  *
            -     * * `search_type`: double. Default empty. Enables non-webpage searching
            -     * depending on the value. The only valid non-default value is 1,
            -     * which enables image searching.
            -     * For example, `search_type: 1`
            -     * 
            + * Example ranking expression: * - * map<string, .google.protobuf.Value> params = 11; - */ - @java.lang.Override - public /* nullable */ com.google.protobuf.Value getParamsOrDefault( - java.lang.String key, - /* nullable */ - com.google.protobuf.Value defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetMutableParams().ensureBuilderMap(); - return map.containsKey(key) ? paramsConverter.build(map.get(key)) : defaultValue; - } - - /** + * If document has an embedding field doc_embedding, the ranking expression + * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * + * If + * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend] + * is set to `RANK_BY_FORMULA`, the following expression types (and + * combinations of those chained using + or + * * operators) are supported: * - *
            -     * Additional search parameters.
            +     * * `double`
            +     * * `signal`
            +     * * `log(signal)`
            +     * * `exp(signal)`
            +     * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
            +     * argument being a denominator constant.
            +     * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
            +     * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
            +     * signal2 | double, else returns signal1.
                  *
            -     * For public website search only, supported values are:
            +     * Here are a few examples of ranking formulas that use the supported
            +     * ranking expression types:
                  *
            -     * * `user_country_code`: string. Default empty. If set to non-empty, results
            -     * are restricted or boosted based on the location provided.
            -     * For example, `user_country_code: "au"`
            +     * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
            +     * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
            +     * `semantic_smilarity_score` adjustment.
            +     * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
            +     * is_nan(keyword_similarity_score)` -- rank by the exponent of
            +     * `semantic_similarity_score` filling the value with 0 if it's NaN, also
            +     * add constant 0.3 adjustment to the final score if
            +     * `semantic_similarity_score` is NaN.
            +     * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
            +     * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
            +     * of `keyword_similarity_score` with slight adjustment of reciprocal rank
            +     * of `semantic_smilarity_score`.
                  *
            -     * For available codes see [Country
            -     * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
            +     * The following signals are supported:
                  *
            -     * * `search_type`: double. Default empty. Enables non-webpage searching
            -     * depending on the value. The only valid non-default value is 1,
            -     * which enables image searching.
            -     * For example, `search_type: 1`
            +     * * `semantic_similarity_score`: semantic similarity adjustment that is
            +     * calculated using the embeddings generated by a proprietary Google model.
            +     * This score determines how semantically similar a search query is to a
            +     * document.
            +     * * `keyword_similarity_score`: keyword match adjustment uses the Best
            +     * Match 25 (BM25) ranking function. This score is calculated using a
            +     * probabilistic model to estimate the probability that a document is
            +     * relevant to a given query.
            +     * * `relevance_score`: semantic relevance adjustment that uses a
            +     * proprietary Google model to determine the meaning and intent behind a
            +     * user's query in context with the content in the documents.
            +     * * `pctr_rank`: predicted conversion rate adjustment as a rank use
            +     * predicted Click-through rate (pCTR) to gauge the relevance and
            +     * attractiveness of a search result from a user's perspective. A higher
            +     * pCTR suggests that the result is more likely to satisfy the user's query
            +     * and intent, making it a valuable signal for ranking.
            +     * * `freshness_rank`: freshness adjustment as a rank
            +     * * `document_age`: The time in hours elapsed since the document was last
            +     * updated, a floating-point number (e.g., 0.25 means 15 minutes).
            +     * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
            +     * Google model to determine the keyword-based overlap between the query and
            +     * the document.
            +     * * `base_rank`: the default rank of the result
            +     * * `media_actor_match`: whether the media actor matches the query
            +     * * `media_director_match`: whether the media director matches the query
            +     * * `media_genre_match`: whether the media genre matches the query
            +     * * `media_language_match`: whether the media language matches the query
            +     * * `media_title_match`: whether the media title matches the query
            +     * * `media_prefix_similarity_rank`: prefix similarity rank for media
            +     * results
            +     * * `media_semantic_similarity_rank`: semantic similarity rank for media
            +     * results
                  * 
            * - * map<string, .google.protobuf.Value> params = 11; + * string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for rankingExpression. */ - @java.lang.Override - public com.google.protobuf.Value getParamsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetMutableParams().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public com.google.protobuf.ByteString getRankingExpressionBytes() { + java.lang.Object ref = rankingExpression_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rankingExpression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return paramsConverter.build(map.get(key)); - } - - public Builder clearParams() { - bitField0_ = (bitField0_ & ~0x00020000); - internalGetMutableParams().clear(); - return this; } /** * * *
            -     * Additional search parameters.
            -     *
            -     * For public website search only, supported values are:
            -     *
            -     * * `user_country_code`: string. Default empty. If set to non-empty, results
            -     * are restricted or boosted based on the location provided.
            -     * For example, `user_country_code: "au"`
            -     *
            -     * For available codes see [Country
            -     * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
            -     *
            -     * * `search_type`: double. Default empty. Enables non-webpage searching
            -     * depending on the value. The only valid non-default value is 1,
            -     * which enables image searching.
            -     * For example, `search_type: 1`
            -     * 
            + * Optional. The ranking expression controls the customized ranking on + * retrieval documents. This overrides + * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression]. + * The syntax and supported features depend on the + * `ranking_expression_backend` value. If `ranking_expression_backend` is not + * provided, it defaults to `RANK_BY_EMBEDDING`. * - * map<string, .google.protobuf.Value> params = 11; - */ - public Builder removeParams(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableParams().ensureBuilderMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableParams() { - bitField0_ |= 0x00020000; - return internalGetMutableParams().ensureMessageMap(); - } - - /** + * If + * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend] + * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single + * function or multiple functions that are joined by "+". * + * * ranking_expression = function, { " + ", function }; * - *
            -     * Additional search parameters.
            +     * Supported functions:
                  *
            -     * For public website search only, supported values are:
            +     * * double * relevance_score
            +     * * double * dotProduct(embedding_field_path)
                  *
            -     * * `user_country_code`: string. Default empty. If set to non-empty, results
            -     * are restricted or boosted based on the location provided.
            -     * For example, `user_country_code: "au"`
            +     * Function variables:
                  *
            -     * For available codes see [Country
            -     * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
            +     * * `relevance_score`: pre-defined keywords, used for measure relevance
            +     * between query and document.
            +     * * `embedding_field_path`: the document embedding field
            +     * used with query embedding vector.
            +     * * `dotProduct`: embedding function between `embedding_field_path` and
            +     * query embedding vector.
                  *
            -     * * `search_type`: double. Default empty. Enables non-webpage searching
            -     * depending on the value. The only valid non-default value is 1,
            -     * which enables image searching.
            -     * For example, `search_type: 1`
            -     * 
            + * Example ranking expression: * - * map<string, .google.protobuf.Value> params = 11; - */ - public Builder putParams(java.lang.String key, com.google.protobuf.Value value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableParams().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00020000; - return this; - } - - /** + * If document has an embedding field doc_embedding, the ranking expression + * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * + * If + * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend] + * is set to `RANK_BY_FORMULA`, the following expression types (and + * combinations of those chained using + or + * * operators) are supported: * - *
            -     * Additional search parameters.
            +     * * `double`
            +     * * `signal`
            +     * * `log(signal)`
            +     * * `exp(signal)`
            +     * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
            +     * argument being a denominator constant.
            +     * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
            +     * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
            +     * signal2 | double, else returns signal1.
                  *
            -     * For public website search only, supported values are:
            +     * Here are a few examples of ranking formulas that use the supported
            +     * ranking expression types:
                  *
            -     * * `user_country_code`: string. Default empty. If set to non-empty, results
            -     * are restricted or boosted based on the location provided.
            -     * For example, `user_country_code: "au"`
            +     * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
            +     * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
            +     * `semantic_smilarity_score` adjustment.
            +     * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
            +     * is_nan(keyword_similarity_score)` -- rank by the exponent of
            +     * `semantic_similarity_score` filling the value with 0 if it's NaN, also
            +     * add constant 0.3 adjustment to the final score if
            +     * `semantic_similarity_score` is NaN.
            +     * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
            +     * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
            +     * of `keyword_similarity_score` with slight adjustment of reciprocal rank
            +     * of `semantic_smilarity_score`.
                  *
            -     * For available codes see [Country
            -     * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
            +     * The following signals are supported:
                  *
            -     * * `search_type`: double. Default empty. Enables non-webpage searching
            -     * depending on the value. The only valid non-default value is 1,
            -     * which enables image searching.
            -     * For example, `search_type: 1`
            +     * * `semantic_similarity_score`: semantic similarity adjustment that is
            +     * calculated using the embeddings generated by a proprietary Google model.
            +     * This score determines how semantically similar a search query is to a
            +     * document.
            +     * * `keyword_similarity_score`: keyword match adjustment uses the Best
            +     * Match 25 (BM25) ranking function. This score is calculated using a
            +     * probabilistic model to estimate the probability that a document is
            +     * relevant to a given query.
            +     * * `relevance_score`: semantic relevance adjustment that uses a
            +     * proprietary Google model to determine the meaning and intent behind a
            +     * user's query in context with the content in the documents.
            +     * * `pctr_rank`: predicted conversion rate adjustment as a rank use
            +     * predicted Click-through rate (pCTR) to gauge the relevance and
            +     * attractiveness of a search result from a user's perspective. A higher
            +     * pCTR suggests that the result is more likely to satisfy the user's query
            +     * and intent, making it a valuable signal for ranking.
            +     * * `freshness_rank`: freshness adjustment as a rank
            +     * * `document_age`: The time in hours elapsed since the document was last
            +     * updated, a floating-point number (e.g., 0.25 means 15 minutes).
            +     * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
            +     * Google model to determine the keyword-based overlap between the query and
            +     * the document.
            +     * * `base_rank`: the default rank of the result
            +     * * `media_actor_match`: whether the media actor matches the query
            +     * * `media_director_match`: whether the media director matches the query
            +     * * `media_genre_match`: whether the media genre matches the query
            +     * * `media_language_match`: whether the media language matches the query
            +     * * `media_title_match`: whether the media title matches the query
            +     * * `media_prefix_similarity_rank`: prefix similarity rank for media
            +     * results
            +     * * `media_semantic_similarity_rank`: semantic similarity rank for media
            +     * results
                  * 
            * - * map<string, .google.protobuf.Value> params = 11; + * string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The rankingExpression to set. + * @return This builder for chaining. */ - public Builder putAllParams(java.util.Map values) { - for (java.util.Map.Entry e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } + public Builder setRankingExpression(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - internalGetMutableParams().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00020000; + rankingExpression_ = value; + bitField0_ |= 0x02000000; + onChanged(); return this; } @@ -37763,140 +49840,114 @@ public Builder putAllParams(java.util.Map - * Additional search parameters. - * - * For public website search only, supported values are: - * - * * `user_country_code`: string. Default empty. If set to non-empty, results - * are restricted or boosted based on the location provided. - * For example, `user_country_code: "au"` - * - * For available codes see [Country - * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes) - * - * * `search_type`: double. Default empty. Enables non-webpage searching - * depending on the value. The only valid non-default value is 1, - * which enables image searching. - * For example, `search_type: 1` - *
            + * Optional. The ranking expression controls the customized ranking on + * retrieval documents. This overrides + * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression]. + * The syntax and supported features depend on the + * `ranking_expression_backend` value. If `ranking_expression_backend` is not + * provided, it defaults to `RANK_BY_EMBEDDING`. * - * map<string, .google.protobuf.Value> params = 11; - */ - public com.google.protobuf.Value.Builder putParamsBuilderIfAbsent(java.lang.String key) { - java.util.Map builderMap = - internalGetMutableParams().ensureBuilderMap(); - com.google.protobuf.ValueOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.protobuf.Value.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.protobuf.Value) { - entry = ((com.google.protobuf.Value) entry).toBuilder(); - builderMap.put(key, entry); - } - return (com.google.protobuf.Value.Builder) entry; - } - - private com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - queryExpansionSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder> - queryExpansionSpecBuilder_; - - /** + * If + * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend] + * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single + * function or multiple functions that are joined by "+". * + * * ranking_expression = function, { " + ", function }; * - *
            -     * The query expansion specification that specifies the conditions under which
            -     * query expansion occurs.
            -     * 
            + * Supported functions: * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * * double * relevance_score + * * double * dotProduct(embedding_field_path) * - * @return Whether the queryExpansionSpec field is set. - */ - public boolean hasQueryExpansionSpec() { - return ((bitField0_ & 0x00040000) != 0); - } - - /** + * Function variables: * + * * `relevance_score`: pre-defined keywords, used for measure relevance + * between query and document. + * * `embedding_field_path`: the document embedding field + * used with query embedding vector. + * * `dotProduct`: embedding function between `embedding_field_path` and + * query embedding vector. * - *
            -     * The query expansion specification that specifies the conditions under which
            -     * query expansion occurs.
            -     * 
            + * Example ranking expression: * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * If document has an embedding field doc_embedding, the ranking expression + * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * - * @return The queryExpansionSpec. - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - getQueryExpansionSpec() { - if (queryExpansionSpecBuilder_ == null) { - return queryExpansionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - .getDefaultInstance() - : queryExpansionSpec_; - } else { - return queryExpansionSpecBuilder_.getMessage(); - } - } - - /** + * If + * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend] + * is set to `RANK_BY_FORMULA`, the following expression types (and + * combinations of those chained using + or + * * operators) are supported: * + * * `double` + * * `signal` + * * `log(signal)` + * * `exp(signal)` + * * `rr(signal, double > 0)` -- reciprocal rank transformation with second + * argument being a denominator constant. + * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise. + * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns + * signal2 | double, else returns signal1. * - *
            -     * The query expansion specification that specifies the conditions under which
            -     * query expansion occurs.
            -     * 
            + * Here are a few examples of ranking formulas that use the supported + * ranking expression types: * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * - */ - public Builder setQueryExpansionSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec value) { - if (queryExpansionSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - queryExpansionSpec_ = value; - } else { - queryExpansionSpecBuilder_.setMessage(value); - } - bitField0_ |= 0x00040000; - onChanged(); - return this; - } - - /** + * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)` + * -- mostly rank by the logarithm of `keyword_similarity_score` with slight + * `semantic_smilarity_score` adjustment. + * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 * + * is_nan(keyword_similarity_score)` -- rank by the exponent of + * `semantic_similarity_score` filling the value with 0 if it's NaN, also + * add constant 0.3 adjustment to the final score if + * `semantic_similarity_score` is NaN. + * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 * + * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank + * of `keyword_similarity_score` with slight adjustment of reciprocal rank + * of `semantic_smilarity_score`. * + * The following signals are supported: * - *
            -     * The query expansion specification that specifies the conditions under which
            -     * query expansion occurs.
            +     * * `semantic_similarity_score`: semantic similarity adjustment that is
            +     * calculated using the embeddings generated by a proprietary Google model.
            +     * This score determines how semantically similar a search query is to a
            +     * document.
            +     * * `keyword_similarity_score`: keyword match adjustment uses the Best
            +     * Match 25 (BM25) ranking function. This score is calculated using a
            +     * probabilistic model to estimate the probability that a document is
            +     * relevant to a given query.
            +     * * `relevance_score`: semantic relevance adjustment that uses a
            +     * proprietary Google model to determine the meaning and intent behind a
            +     * user's query in context with the content in the documents.
            +     * * `pctr_rank`: predicted conversion rate adjustment as a rank use
            +     * predicted Click-through rate (pCTR) to gauge the relevance and
            +     * attractiveness of a search result from a user's perspective. A higher
            +     * pCTR suggests that the result is more likely to satisfy the user's query
            +     * and intent, making it a valuable signal for ranking.
            +     * * `freshness_rank`: freshness adjustment as a rank
            +     * * `document_age`: The time in hours elapsed since the document was last
            +     * updated, a floating-point number (e.g., 0.25 means 15 minutes).
            +     * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
            +     * Google model to determine the keyword-based overlap between the query and
            +     * the document.
            +     * * `base_rank`: the default rank of the result
            +     * * `media_actor_match`: whether the media actor matches the query
            +     * * `media_director_match`: whether the media director matches the query
            +     * * `media_genre_match`: whether the media genre matches the query
            +     * * `media_language_match`: whether the media language matches the query
            +     * * `media_title_match`: whether the media title matches the query
            +     * * `media_prefix_similarity_rank`: prefix similarity rank for media
            +     * results
            +     * * `media_semantic_similarity_rank`: semantic similarity rank for media
            +     * results
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. */ - public Builder setQueryExpansionSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder - builderForValue) { - if (queryExpansionSpecBuilder_ == null) { - queryExpansionSpec_ = builderForValue.build(); - } else { - queryExpansionSpecBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00040000; + public Builder clearRankingExpression() { + rankingExpression_ = getDefaultInstance().getRankingExpression(); + bitField0_ = (bitField0_ & ~0x02000000); onChanged(); return this; } @@ -37905,206 +49956,210 @@ public Builder setQueryExpansionSpec( * * *
            -     * The query expansion specification that specifies the conditions under which
            -     * query expansion occurs.
            -     * 
            + * Optional. The ranking expression controls the customized ranking on + * retrieval documents. This overrides + * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression]. + * The syntax and supported features depend on the + * `ranking_expression_backend` value. If `ranking_expression_backend` is not + * provided, it defaults to `RANK_BY_EMBEDDING`. * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * - */ - public Builder mergeQueryExpansionSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec value) { - if (queryExpansionSpecBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) - && queryExpansionSpec_ != null - && queryExpansionSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - .getDefaultInstance()) { - getQueryExpansionSpecBuilder().mergeFrom(value); - } else { - queryExpansionSpec_ = value; - } - } else { - queryExpansionSpecBuilder_.mergeFrom(value); - } - if (queryExpansionSpec_ != null) { - bitField0_ |= 0x00040000; - onChanged(); - } - return this; - } - - /** + * If + * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend] + * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single + * function or multiple functions that are joined by "+". + * + * * ranking_expression = function, { " + ", function }; * + * Supported functions: * - *
            -     * The query expansion specification that specifies the conditions under which
            -     * query expansion occurs.
            -     * 
            + * * double * relevance_score + * * double * dotProduct(embedding_field_path) * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * - */ - public Builder clearQueryExpansionSpec() { - bitField0_ = (bitField0_ & ~0x00040000); - queryExpansionSpec_ = null; - if (queryExpansionSpecBuilder_ != null) { - queryExpansionSpecBuilder_.dispose(); - queryExpansionSpecBuilder_ = null; - } - onChanged(); - return this; - } - - /** + * Function variables: * + * * `relevance_score`: pre-defined keywords, used for measure relevance + * between query and document. + * * `embedding_field_path`: the document embedding field + * used with query embedding vector. + * * `dotProduct`: embedding function between `embedding_field_path` and + * query embedding vector. * - *
            -     * The query expansion specification that specifies the conditions under which
            -     * query expansion occurs.
            -     * 
            + * Example ranking expression: * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder - getQueryExpansionSpecBuilder() { - bitField0_ |= 0x00040000; - onChanged(); - return internalGetQueryExpansionSpecFieldBuilder().getBuilder(); - } - - /** + * If document has an embedding field doc_embedding, the ranking expression + * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * + * If + * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend] + * is set to `RANK_BY_FORMULA`, the following expression types (and + * combinations of those chained using + or + * * operators) are supported: * - *
            -     * The query expansion specification that specifies the conditions under which
            -     * query expansion occurs.
            +     * * `double`
            +     * * `signal`
            +     * * `log(signal)`
            +     * * `exp(signal)`
            +     * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
            +     * argument being a denominator constant.
            +     * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
            +     * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
            +     * signal2 | double, else returns signal1.
            +     *
            +     * Here are a few examples of ranking formulas that use the supported
            +     * ranking expression types:
            +     *
            +     * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
            +     * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
            +     * `semantic_smilarity_score` adjustment.
            +     * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
            +     * is_nan(keyword_similarity_score)` -- rank by the exponent of
            +     * `semantic_similarity_score` filling the value with 0 if it's NaN, also
            +     * add constant 0.3 adjustment to the final score if
            +     * `semantic_similarity_score` is NaN.
            +     * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
            +     * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
            +     * of `keyword_similarity_score` with slight adjustment of reciprocal rank
            +     * of `semantic_smilarity_score`.
            +     *
            +     * The following signals are supported:
            +     *
            +     * * `semantic_similarity_score`: semantic similarity adjustment that is
            +     * calculated using the embeddings generated by a proprietary Google model.
            +     * This score determines how semantically similar a search query is to a
            +     * document.
            +     * * `keyword_similarity_score`: keyword match adjustment uses the Best
            +     * Match 25 (BM25) ranking function. This score is calculated using a
            +     * probabilistic model to estimate the probability that a document is
            +     * relevant to a given query.
            +     * * `relevance_score`: semantic relevance adjustment that uses a
            +     * proprietary Google model to determine the meaning and intent behind a
            +     * user's query in context with the content in the documents.
            +     * * `pctr_rank`: predicted conversion rate adjustment as a rank use
            +     * predicted Click-through rate (pCTR) to gauge the relevance and
            +     * attractiveness of a search result from a user's perspective. A higher
            +     * pCTR suggests that the result is more likely to satisfy the user's query
            +     * and intent, making it a valuable signal for ranking.
            +     * * `freshness_rank`: freshness adjustment as a rank
            +     * * `document_age`: The time in hours elapsed since the document was last
            +     * updated, a floating-point number (e.g., 0.25 means 15 minutes).
            +     * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
            +     * Google model to determine the keyword-based overlap between the query and
            +     * the document.
            +     * * `base_rank`: the default rank of the result
            +     * * `media_actor_match`: whether the media actor matches the query
            +     * * `media_director_match`: whether the media director matches the query
            +     * * `media_genre_match`: whether the media genre matches the query
            +     * * `media_language_match`: whether the media language matches the query
            +     * * `media_title_match`: whether the media title matches the query
            +     * * `media_prefix_similarity_rank`: prefix similarity rank for media
            +     * results
            +     * * `media_semantic_similarity_rank`: semantic similarity rank for media
            +     * results
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * + * string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for rankingExpression to set. + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder - getQueryExpansionSpecOrBuilder() { - if (queryExpansionSpecBuilder_ != null) { - return queryExpansionSpecBuilder_.getMessageOrBuilder(); - } else { - return queryExpansionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec - .getDefaultInstance() - : queryExpansionSpec_; + public Builder setRankingExpressionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + rankingExpression_ = value; + bitField0_ |= 0x02000000; + onChanged(); + return this; } + private int rankingExpressionBackend_ = 0; + /** * * *
            -     * The query expansion specification that specifies the conditions under which
            -     * query expansion occurs.
            +     * Optional. The backend to use for the ranking expression evaluation.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; + * .google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The enum numeric value on the wire for rankingExpressionBackend. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder> - internalGetQueryExpansionSpecFieldBuilder() { - if (queryExpansionSpecBuilder_ == null) { - queryExpansionSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.QueryExpansionSpecOrBuilder>( - getQueryExpansionSpec(), getParentForChildren(), isClean()); - queryExpansionSpec_ = null; - } - return queryExpansionSpecBuilder_; + @java.lang.Override + public int getRankingExpressionBackendValue() { + return rankingExpressionBackend_; } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - spellCorrectionSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder> - spellCorrectionSpecBuilder_; - /** * * *
            -     * The spell correction specification that specifies the mode under
            -     * which spell correction takes effect.
            +     * Optional. The backend to use for the ranking expression evaluation.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * .google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the spellCorrectionSpec field is set. + * @param value The enum numeric value on the wire for rankingExpressionBackend to set. + * @return This builder for chaining. */ - public boolean hasSpellCorrectionSpec() { - return ((bitField0_ & 0x00080000) != 0); + public Builder setRankingExpressionBackendValue(int value) { + rankingExpressionBackend_ = value; + bitField0_ |= 0x04000000; + onChanged(); + return this; } /** * * *
            -     * The spell correction specification that specifies the mode under
            -     * which spell correction takes effect.
            +     * Optional. The backend to use for the ranking expression evaluation.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * .google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The spellCorrectionSpec. + * @return The rankingExpressionBackend. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - getSpellCorrectionSpec() { - if (spellCorrectionSpecBuilder_ == null) { - return spellCorrectionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - .getDefaultInstance() - : spellCorrectionSpec_; - } else { - return spellCorrectionSpecBuilder_.getMessage(); - } + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend + getRankingExpressionBackend() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend.forNumber( + rankingExpressionBackend_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend + .UNRECOGNIZED + : result; } /** * * *
            -     * The spell correction specification that specifies the mode under
            -     * which spell correction takes effect.
            +     * Optional. The backend to use for the ranking expression evaluation.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * .google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @param value The rankingExpressionBackend to set. + * @return This builder for chaining. */ - public Builder setSpellCorrectionSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec value) { - if (spellCorrectionSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spellCorrectionSpec_ = value; - } else { - spellCorrectionSpecBuilder_.setMessage(value); + public Builder setRankingExpressionBackend( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend value) { + if (value == null) { + throw new NullPointerException(); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x04000000; + rankingExpressionBackend_ = value.getNumber(); onChanged(); return this; } @@ -38113,80 +50168,58 @@ public Builder setSpellCorrectionSpec( * * *
            -     * The spell correction specification that specifies the mode under
            -     * which spell correction takes effect.
            +     * Optional. The backend to use for the ranking expression evaluation.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; + * .google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return This builder for chaining. */ - public Builder setSpellCorrectionSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder - builderForValue) { - if (spellCorrectionSpecBuilder_ == null) { - spellCorrectionSpec_ = builderForValue.build(); - } else { - spellCorrectionSpecBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00080000; + public Builder clearRankingExpressionBackend() { + bitField0_ = (bitField0_ & ~0x04000000); + rankingExpressionBackend_ = 0; onChanged(); return this; } + private boolean safeSearch_; + /** * * *
            -     * The spell correction specification that specifies the mode under
            -     * which spell correction takes effect.
            +     * Whether to turn on safe search. This is only supported for
            +     * website search.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * bool safe_search = 20; + * + * @return The safeSearch. */ - public Builder mergeSpellCorrectionSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec value) { - if (spellCorrectionSpecBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) - && spellCorrectionSpec_ != null - && spellCorrectionSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - .getDefaultInstance()) { - getSpellCorrectionSpecBuilder().mergeFrom(value); - } else { - spellCorrectionSpec_ = value; - } - } else { - spellCorrectionSpecBuilder_.mergeFrom(value); - } - if (spellCorrectionSpec_ != null) { - bitField0_ |= 0x00080000; - onChanged(); - } - return this; + @java.lang.Override + public boolean getSafeSearch() { + return safeSearch_; } /** * * *
            -     * The spell correction specification that specifies the mode under
            -     * which spell correction takes effect.
            +     * Whether to turn on safe search. This is only supported for
            +     * website search.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * bool safe_search = 20; + * + * @param value The safeSearch to set. + * @return This builder for chaining. */ - public Builder clearSpellCorrectionSpec() { - bitField0_ = (bitField0_ & ~0x00080000); - spellCorrectionSpec_ = null; - if (spellCorrectionSpecBuilder_ != null) { - spellCorrectionSpecBuilder_.dispose(); - spellCorrectionSpecBuilder_ = null; - } + public Builder setSafeSearch(boolean value) { + + safeSearch_ = value; + bitField0_ |= 0x08000000; onChanged(); return this; } @@ -38195,211 +50228,274 @@ public Builder clearSpellCorrectionSpec() { * * *
            -     * The spell correction specification that specifies the mode under
            -     * which spell correction takes effect.
            +     * Whether to turn on safe search. This is only supported for
            +     * website search.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * bool safe_search = 20; + * + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder - getSpellCorrectionSpecBuilder() { - bitField0_ |= 0x00080000; + public Builder clearSafeSearch() { + bitField0_ = (bitField0_ & ~0x08000000); + safeSearch_ = false; onChanged(); - return internalGetSpellCorrectionSpecFieldBuilder().getBuilder(); + return this; + } + + 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_ |= 0x10000000; + onChanged(); + return userLabels_; + } + + public int getUserLabelsCount() { + return internalGetUserLabels().getMap().size(); } /** * * *
            -     * The spell correction specification that specifies the mode under
            -     * which spell correction takes effect.
            +     * 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.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * map<string, string> user_labels = 22; */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder - getSpellCorrectionSpecOrBuilder() { - if (spellCorrectionSpecBuilder_ != null) { - return spellCorrectionSpecBuilder_.getMessageOrBuilder(); - } else { - return spellCorrectionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec - .getDefaultInstance() - : spellCorrectionSpec_; + @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 spell correction specification that specifies the mode under
            -     * which spell correction takes effect.
            +     * 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.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * + * map<string, string> user_labels = 22; */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder> - internalGetSpellCorrectionSpecFieldBuilder() { - if (spellCorrectionSpecBuilder_ == null) { - spellCorrectionSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpecOrBuilder>( - getSpellCorrectionSpec(), getParentForChildren(), isClean()); - spellCorrectionSpec_ = null; - } - return spellCorrectionSpecBuilder_; + @java.lang.Override + public java.util.Map getUserLabelsMap() { + return internalGetUserLabels().getMap(); } - private java.lang.Object userPseudoId_ = ""; - /** * * *
            -     * A unique identifier for tracking visitors. For example, this could be
            -     * implemented with an HTTP cookie, which should be able to uniquely identify
            -     * a visitor on a single device. This unique identifier should not change if
            -     * the visitor logs in or out of the website.
            -     *
            -     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     * The user labels applied to a resource must meet the following requirements:
                  *
            -     * This should be the same identifier as
            -     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            -     * and
            -     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.CompleteQueryRequest.user_pseudo_id]
            +     * * 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.
                  *
            -     * The field must be a UTF-8 encoded string with a length limit of 128
            -     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
            +     * See [Google Cloud
            +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
            +     * for more details.
                  * 
            * - * string user_pseudo_id = 15; - * - * @return The userPseudoId. + * map<string, string> user_labels = 22; */ - public java.lang.String getUserPseudoId() { - java.lang.Object ref = userPseudoId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - userPseudoId_ = s; - return s; - } else { - return (java.lang.String) ref; + @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; } /** * * *
            -     * A unique identifier for tracking visitors. For example, this could be
            -     * implemented with an HTTP cookie, which should be able to uniquely identify
            -     * a visitor on a single device. This unique identifier should not change if
            -     * the visitor logs in or out of the website.
            -     *
            -     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     * The user labels applied to a resource must meet the following requirements:
                  *
            -     * This should be the same identifier as
            -     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            -     * and
            -     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.CompleteQueryRequest.user_pseudo_id]
            +     * * 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.
                  *
            -     * The field must be a UTF-8 encoded string with a length limit of 128
            -     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
            +     * See [Google Cloud
            +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
            +     * for more details.
                  * 
            * - * string user_pseudo_id = 15; - * - * @return The bytes for userPseudoId. + * map<string, string> user_labels = 22; */ - public com.google.protobuf.ByteString getUserPseudoIdBytes() { - java.lang.Object ref = userPseudoId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - userPseudoId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + @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_ & ~0x10000000); + internalGetMutableUserLabels().getMutableMap().clear(); + return this; } /** * * *
            -     * A unique identifier for tracking visitors. For example, this could be
            -     * implemented with an HTTP cookie, which should be able to uniquely identify
            -     * a visitor on a single device. This unique identifier should not change if
            -     * the visitor logs in or out of the website.
            -     *
            -     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     * The user labels applied to a resource must meet the following requirements:
                  *
            -     * This should be the same identifier as
            -     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            -     * and
            -     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.CompleteQueryRequest.user_pseudo_id]
            +     * * 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.
                  *
            -     * The field must be a UTF-8 encoded string with a length limit of 128
            -     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
            +     * See [Google Cloud
            +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
            +     * for more details.
                  * 
            * - * string user_pseudo_id = 15; - * - * @param value The userPseudoId to set. - * @return This builder for chaining. + * map<string, string> user_labels = 22; */ - public Builder setUserPseudoId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder removeUserLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); } - userPseudoId_ = value; - bitField0_ |= 0x00100000; - onChanged(); + internalGetMutableUserLabels().getMutableMap().remove(key); return this; } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableUserLabels() { + bitField0_ |= 0x10000000; + return internalGetMutableUserLabels().getMutableMap(); + } + /** * * *
            -     * A unique identifier for tracking visitors. For example, this could be
            -     * implemented with an HTTP cookie, which should be able to uniquely identify
            -     * a visitor on a single device. This unique identifier should not change if
            -     * the visitor logs in or out of the website.
            -     *
            -     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     * The user labels applied to a resource must meet the following requirements:
                  *
            -     * This should be the same identifier as
            -     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            -     * and
            -     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.CompleteQueryRequest.user_pseudo_id]
            +     * * 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.
                  *
            -     * The field must be a UTF-8 encoded string with a length limit of 128
            -     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
            +     * See [Google Cloud
            +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
            +     * for more details.
                  * 
            * - * string user_pseudo_id = 15; - * - * @return This builder for chaining. + * map<string, string> user_labels = 22; */ - public Builder clearUserPseudoId() { - userPseudoId_ = getDefaultInstance().getUserPseudoId(); - bitField0_ = (bitField0_ & ~0x00100000); - onChanged(); + 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_ |= 0x10000000; return this; } @@ -38407,85 +50503,95 @@ public Builder clearUserPseudoId() { * * *
            -     * A unique identifier for tracking visitors. For example, this could be
            -     * implemented with an HTTP cookie, which should be able to uniquely identify
            -     * a visitor on a single device. This unique identifier should not change if
            -     * the visitor logs in or out of the website.
            -     *
            -     * This field should NOT have a fixed value such as `unknown_visitor`.
            +     * The user labels applied to a resource must meet the following requirements:
                  *
            -     * This should be the same identifier as
            -     * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id]
            -     * and
            -     * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.CompleteQueryRequest.user_pseudo_id]
            +     * * 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.
                  *
            -     * The field must be a UTF-8 encoded string with a length limit of 128
            -     * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
            +     * See [Google Cloud
            +     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
            +     * for more details.
                  * 
            * - * string user_pseudo_id = 15; - * - * @param value The bytes for userPseudoId to set. - * @return This builder for chaining. + * map<string, string> user_labels = 22; */ - public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - userPseudoId_ = value; - bitField0_ |= 0x00100000; - onChanged(); + public Builder putAllUserLabels(java.util.Map values) { + internalGetMutableUserLabels().getMutableMap().putAll(values); + bitField0_ |= 0x10000000; return this; } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - contentSearchSpec_; + private com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + naturalLanguageQueryUnderstandingSpec_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder> - contentSearchSpecBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder> + naturalLanguageQueryUnderstandingSpecBuilder_; /** * * *
            -     * A specification for configuring the behavior of content search.
            +     * Optional. Config for natural language query understanding capabilities,
            +     * such as extracting structured field filters from the query. Refer to [this
            +     * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
            +     * for more information.
            +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            +     * natural language query understanding will be done.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the contentSearchSpec field is set. + * @return Whether the naturalLanguageQueryUnderstandingSpec field is set. */ - public boolean hasContentSearchSpec() { - return ((bitField0_ & 0x00200000) != 0); + public boolean hasNaturalLanguageQueryUnderstandingSpec() { + return ((bitField0_ & 0x20000000) != 0); } /** * * *
            -     * A specification for configuring the behavior of content search.
            +     * Optional. Config for natural language query understanding capabilities,
            +     * such as extracting structured field filters from the query. Refer to [this
            +     * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
            +     * for more information.
            +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            +     * natural language query understanding will be done.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The contentSearchSpec. + * @return The naturalLanguageQueryUnderstandingSpec. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - getContentSearchSpec() { - if (contentSearchSpecBuilder_ == null) { - return contentSearchSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .getDefaultInstance() - : contentSearchSpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec + getNaturalLanguageQueryUnderstandingSpec() { + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { + return naturalLanguageQueryUnderstandingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() + : naturalLanguageQueryUnderstandingSpec_; } else { - return contentSearchSpecBuilder_.getMessage(); + return naturalLanguageQueryUnderstandingSpecBuilder_.getMessage(); } } @@ -38493,24 +50599,30 @@ public boolean hasContentSearchSpec() { * * *
            -     * A specification for configuring the behavior of content search.
            +     * Optional. Config for natural language query understanding capabilities,
            +     * such as extracting structured field filters from the query. Refer to [this
            +     * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
            +     * for more information.
            +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            +     * natural language query understanding will be done.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setContentSearchSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec value) { - if (contentSearchSpecBuilder_ == null) { + public Builder setNaturalLanguageQueryUnderstandingSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + value) { + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - contentSearchSpec_ = value; + naturalLanguageQueryUnderstandingSpec_ = value; } else { - contentSearchSpecBuilder_.setMessage(value); + naturalLanguageQueryUnderstandingSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -38519,22 +50631,28 @@ public Builder setContentSearchSpec( * * *
            -     * A specification for configuring the behavior of content search.
            +     * Optional. Config for natural language query understanding capabilities,
            +     * such as extracting structured field filters from the query. Refer to [this
            +     * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
            +     * for more information.
            +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            +     * natural language query understanding will be done.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setContentSearchSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder + public Builder setNaturalLanguageQueryUnderstandingSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + .Builder builderForValue) { - if (contentSearchSpecBuilder_ == null) { - contentSearchSpec_ = builderForValue.build(); + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { + naturalLanguageQueryUnderstandingSpec_ = builderForValue.build(); } else { - contentSearchSpecBuilder_.setMessage(builderForValue.build()); + naturalLanguageQueryUnderstandingSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x20000000; onChanged(); return this; } @@ -38543,30 +50661,36 @@ public Builder setContentSearchSpec( * * *
            -     * A specification for configuring the behavior of content search.
            +     * Optional. Config for natural language query understanding capabilities,
            +     * such as extracting structured field filters from the query. Refer to [this
            +     * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
            +     * for more information.
            +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            +     * natural language query understanding will be done.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeContentSearchSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec value) { - if (contentSearchSpecBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) - && contentSearchSpec_ != null - && contentSearchSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .getDefaultInstance()) { - getContentSearchSpecBuilder().mergeFrom(value); + public Builder mergeNaturalLanguageQueryUnderstandingSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec + value) { + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { + if (((bitField0_ & 0x20000000) != 0) + && naturalLanguageQueryUnderstandingSpec_ != null + && naturalLanguageQueryUnderstandingSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance()) { + getNaturalLanguageQueryUnderstandingSpecBuilder().mergeFrom(value); } else { - contentSearchSpec_ = value; + naturalLanguageQueryUnderstandingSpec_ = value; } } else { - contentSearchSpecBuilder_.mergeFrom(value); + naturalLanguageQueryUnderstandingSpecBuilder_.mergeFrom(value); } - if (contentSearchSpec_ != null) { - bitField0_ |= 0x00200000; + if (naturalLanguageQueryUnderstandingSpec_ != null) { + bitField0_ |= 0x20000000; onChanged(); } return this; @@ -38576,19 +50700,24 @@ public Builder mergeContentSearchSpec( * * *
            -     * A specification for configuring the behavior of content search.
            +     * Optional. Config for natural language query understanding capabilities,
            +     * such as extracting structured field filters from the query. Refer to [this
            +     * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
            +     * for more information.
            +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            +     * natural language query understanding will be done.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearContentSearchSpec() { - bitField0_ = (bitField0_ & ~0x00200000); - contentSearchSpec_ = null; - if (contentSearchSpecBuilder_ != null) { - contentSearchSpecBuilder_.dispose(); - contentSearchSpecBuilder_ = null; + public Builder clearNaturalLanguageQueryUnderstandingSpec() { + bitField0_ = (bitField0_ & ~0x20000000); + naturalLanguageQueryUnderstandingSpec_ = null; + if (naturalLanguageQueryUnderstandingSpecBuilder_ != null) { + naturalLanguageQueryUnderstandingSpecBuilder_.dispose(); + naturalLanguageQueryUnderstandingSpecBuilder_ = null; } onChanged(); return this; @@ -38598,40 +50727,52 @@ public Builder clearContentSearchSpec() { * * *
            -     * A specification for configuring the behavior of content search.
            +     * Optional. Config for natural language query understanding capabilities,
            +     * such as extracting structured field filters from the query. Refer to [this
            +     * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
            +     * for more information.
            +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            +     * natural language query understanding will be done.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder - getContentSearchSpecBuilder() { - bitField0_ |= 0x00200000; + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder + getNaturalLanguageQueryUnderstandingSpecBuilder() { + bitField0_ |= 0x20000000; onChanged(); - return internalGetContentSearchSpecFieldBuilder().getBuilder(); + return internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder().getBuilder(); } /** * * *
            -     * A specification for configuring the behavior of content search.
            +     * Optional. Config for natural language query understanding capabilities,
            +     * such as extracting structured field filters from the query. Refer to [this
            +     * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
            +     * for more information.
            +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            +     * natural language query understanding will be done.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder - getContentSearchSpecOrBuilder() { - if (contentSearchSpecBuilder_ != null) { - return contentSearchSpecBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder + getNaturalLanguageQueryUnderstandingSpecOrBuilder() { + if (naturalLanguageQueryUnderstandingSpecBuilder_ != null) { + return naturalLanguageQueryUnderstandingSpecBuilder_.getMessageOrBuilder(); } else { - return contentSearchSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec - .getDefaultInstance() - : contentSearchSpec_; + return naturalLanguageQueryUnderstandingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() + : naturalLanguageQueryUnderstandingSpec_; } } @@ -38639,91 +50780,92 @@ public Builder clearContentSearchSpec() { * * *
            -     * A specification for configuring the behavior of content search.
            +     * Optional. Config for natural language query understanding capabilities,
            +     * such as extracting structured field filters from the query. Refer to [this
            +     * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
            +     * for more information.
            +     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            +     * natural language query understanding will be done.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec content_search_spec = 24; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder> - internalGetContentSearchSpecFieldBuilder() { - if (contentSearchSpecBuilder_ == null) { - contentSearchSpecBuilder_ = + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder> + internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder() { + if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { + naturalLanguageQueryUnderstandingSpecBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpecOrBuilder>( - getContentSearchSpec(), getParentForChildren(), isClean()); - contentSearchSpec_ = null; + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest + .NaturalLanguageQueryUnderstandingSpecOrBuilder>( + getNaturalLanguageQueryUnderstandingSpec(), getParentForChildren(), isClean()); + naturalLanguageQueryUnderstandingSpec_ = null; } - return contentSearchSpecBuilder_; + return naturalLanguageQueryUnderstandingSpecBuilder_; } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embeddingSpec_; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + searchAsYouTypeSpec_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder> - embeddingSpecBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder> + searchAsYouTypeSpecBuilder_; /** * * *
            -     * Uses the provided embedding to do additional semantic document retrieval.
            -     * The retrieval is based on the dot product of
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            -     * and the document embedding that is provided in
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            -     *
            -     * If
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            -     * is not provided, it will use
            -     * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
            +     * Search as you type configuration. Only supported for the
            +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +     * vertical.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; * * - * @return Whether the embeddingSpec field is set. + * @return Whether the searchAsYouTypeSpec field is set. */ - public boolean hasEmbeddingSpec() { - return ((bitField0_ & 0x00400000) != 0); + public boolean hasSearchAsYouTypeSpec() { + return ((bitField0_ & 0x40000000) != 0); } /** * * *
            -     * Uses the provided embedding to do additional semantic document retrieval.
            -     * The retrieval is based on the dot product of
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            -     * and the document embedding that is provided in
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            -     *
            -     * If
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            -     * is not provided, it will use
            -     * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
            +     * Search as you type configuration. Only supported for the
            +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +     * vertical.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; * * - * @return The embeddingSpec. + * @return The searchAsYouTypeSpec. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec getEmbeddingSpec() { - if (embeddingSpecBuilder_ == null) { - return embeddingSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + getSearchAsYouTypeSpec() { + if (searchAsYouTypeSpecBuilder_ == null) { + return searchAsYouTypeSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec .getDefaultInstance() - : embeddingSpec_; + : searchAsYouTypeSpec_; } else { - return embeddingSpecBuilder_.getMessage(); + return searchAsYouTypeSpecBuilder_.getMessage(); } } @@ -38731,32 +50873,26 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec getEm * * *
            -     * Uses the provided embedding to do additional semantic document retrieval.
            -     * The retrieval is based on the dot product of
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            -     * and the document embedding that is provided in
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            -     *
            -     * If
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            -     * is not provided, it will use
            -     * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
            +     * Search as you type configuration. Only supported for the
            +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +     * vertical.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; * */ - public Builder setEmbeddingSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec value) { - if (embeddingSpecBuilder_ == null) { + public Builder setSearchAsYouTypeSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec value) { + if (searchAsYouTypeSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - embeddingSpec_ = value; + searchAsYouTypeSpec_ = value; } else { - embeddingSpecBuilder_.setMessage(value); + searchAsYouTypeSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -38765,30 +50901,24 @@ public Builder setEmbeddingSpec( * * *
            -     * Uses the provided embedding to do additional semantic document retrieval.
            -     * The retrieval is based on the dot product of
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            -     * and the document embedding that is provided in
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            -     *
            -     * If
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            -     * is not provided, it will use
            -     * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
            +     * Search as you type configuration. Only supported for the
            +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +     * vertical.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; * */ - public Builder setEmbeddingSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder + public Builder setSearchAsYouTypeSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder builderForValue) { - if (embeddingSpecBuilder_ == null) { - embeddingSpec_ = builderForValue.build(); + if (searchAsYouTypeSpecBuilder_ == null) { + searchAsYouTypeSpec_ = builderForValue.build(); } else { - embeddingSpecBuilder_.setMessage(builderForValue.build()); + searchAsYouTypeSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x40000000; onChanged(); return this; } @@ -38797,38 +50927,32 @@ public Builder setEmbeddingSpec( * * *
            -     * Uses the provided embedding to do additional semantic document retrieval.
            -     * The retrieval is based on the dot product of
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            -     * and the document embedding that is provided in
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            -     *
            -     * If
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            -     * is not provided, it will use
            -     * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
            +     * Search as you type configuration. Only supported for the
            +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +     * vertical.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; * */ - public Builder mergeEmbeddingSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec value) { - if (embeddingSpecBuilder_ == null) { - if (((bitField0_ & 0x00400000) != 0) - && embeddingSpec_ != null - && embeddingSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + public Builder mergeSearchAsYouTypeSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec value) { + if (searchAsYouTypeSpecBuilder_ == null) { + if (((bitField0_ & 0x40000000) != 0) + && searchAsYouTypeSpec_ != null + && searchAsYouTypeSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec .getDefaultInstance()) { - getEmbeddingSpecBuilder().mergeFrom(value); + getSearchAsYouTypeSpecBuilder().mergeFrom(value); } else { - embeddingSpec_ = value; + searchAsYouTypeSpec_ = value; } } else { - embeddingSpecBuilder_.mergeFrom(value); + searchAsYouTypeSpecBuilder_.mergeFrom(value); } - if (embeddingSpec_ != null) { - bitField0_ |= 0x00400000; + if (searchAsYouTypeSpec_ != null) { + bitField0_ |= 0x40000000; onChanged(); } return this; @@ -38838,27 +50962,21 @@ public Builder mergeEmbeddingSpec( * * *
            -     * Uses the provided embedding to do additional semantic document retrieval.
            -     * The retrieval is based on the dot product of
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            -     * and the document embedding that is provided in
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            -     *
            -     * If
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            -     * is not provided, it will use
            -     * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
            +     * Search as you type configuration. Only supported for the
            +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +     * vertical.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; * */ - public Builder clearEmbeddingSpec() { - bitField0_ = (bitField0_ & ~0x00400000); - embeddingSpec_ = null; - if (embeddingSpecBuilder_ != null) { - embeddingSpecBuilder_.dispose(); - embeddingSpecBuilder_ = null; + public Builder clearSearchAsYouTypeSpec() { + bitField0_ = (bitField0_ & ~0x40000000); + searchAsYouTypeSpec_ = null; + if (searchAsYouTypeSpecBuilder_ != null) { + searchAsYouTypeSpecBuilder_.dispose(); + searchAsYouTypeSpecBuilder_ = null; } onChanged(); return this; @@ -38868,56 +50986,44 @@ public Builder clearEmbeddingSpec() { * * *
            -     * Uses the provided embedding to do additional semantic document retrieval.
            -     * The retrieval is based on the dot product of
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            -     * and the document embedding that is provided in
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            -     *
            -     * If
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            -     * is not provided, it will use
            -     * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
            +     * Search as you type configuration. Only supported for the
            +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +     * vertical.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder - getEmbeddingSpecBuilder() { - bitField0_ |= 0x00400000; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder + getSearchAsYouTypeSpecBuilder() { + bitField0_ |= 0x40000000; onChanged(); - return internalGetEmbeddingSpecFieldBuilder().getBuilder(); + return internalGetSearchAsYouTypeSpecFieldBuilder().getBuilder(); } /** * * *
            -     * Uses the provided embedding to do additional semantic document retrieval.
            -     * The retrieval is based on the dot product of
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            -     * and the document embedding that is provided in
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            -     *
            -     * If
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            -     * is not provided, it will use
            -     * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
            +     * Search as you type configuration. Only supported for the
            +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +     * vertical.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder - getEmbeddingSpecOrBuilder() { - if (embeddingSpecBuilder_ != null) { - return embeddingSpecBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder + getSearchAsYouTypeSpecOrBuilder() { + if (searchAsYouTypeSpecBuilder_ != null) { + return searchAsYouTypeSpecBuilder_.getMessageOrBuilder(); } else { - return embeddingSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec + return searchAsYouTypeSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec .getDefaultInstance() - : embeddingSpec_; + : searchAsYouTypeSpec_; } } @@ -38925,149 +51031,78 @@ public Builder clearEmbeddingSpec() { * * *
            -     * Uses the provided embedding to do additional semantic document retrieval.
            -     * The retrieval is based on the dot product of
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.vector][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.vector]
            -     * and the document embedding that is provided in
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path].
            -     *
            -     * If
            -     * [SearchRequest.EmbeddingSpec.EmbeddingVector.field_path][google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector.field_path]
            -     * is not provided, it will use
            -     * [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config].
            +     * Search as you type configuration. Only supported for the
            +     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            +     * vertical.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec embedding_spec = 23; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder> - internalGetEmbeddingSpecFieldBuilder() { - if (embeddingSpecBuilder_ == null) { - embeddingSpecBuilder_ = + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder> + internalGetSearchAsYouTypeSpecFieldBuilder() { + if (searchAsYouTypeSpecBuilder_ == null) { + searchAsYouTypeSpecBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.EmbeddingSpecOrBuilder>( - getEmbeddingSpec(), getParentForChildren(), isClean()); - embeddingSpec_ = null; + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder>( + getSearchAsYouTypeSpec(), getParentForChildren(), isClean()); + searchAsYouTypeSpec_ = null; } - return embeddingSpecBuilder_; + return searchAsYouTypeSpecBuilder_; } - private java.lang.Object rankingExpression_ = ""; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec displaySpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpecOrBuilder> + displaySpecBuilder_; /** * * *
            -     * The ranking expression controls the customized ranking on retrieval
            -     * documents. This overrides
            -     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression].
            -     * The syntax and supported features depend on the
            -     * `ranking_expression_backend` value. If `ranking_expression_backend` is not
            -     * provided, it defaults to `RANK_BY_EMBEDDING`.
            -     *
            -     * If
            -     * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend]
            -     * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
            -     * function or multiple functions that are joined by "+".
            -     *
            -     * * ranking_expression = function, { " + ", function };
            -     *
            -     * Supported functions:
            -     *
            -     * * double * relevance_score
            -     * * double * dotProduct(embedding_field_path)
            -     *
            -     * Function variables:
            -     *
            -     * * `relevance_score`: pre-defined keywords, used for measure relevance
            -     * between query and document.
            -     * * `embedding_field_path`: the document embedding field
            -     * used with query embedding vector.
            -     * * `dotProduct`: embedding function between `embedding_field_path` and
            -     * query embedding vector.
            -     *
            -     * Example ranking expression:
            -     *
            -     * If document has an embedding field doc_embedding, the ranking expression
            -     * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
            -     *
            -     * If
            -     * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend]
            -     * is set to `RANK_BY_FORMULA`, the following expression types (and
            -     * combinations of those chained using + or
            -     * * operators) are supported:
            -     *
            -     * * `double`
            -     * * `signal`
            -     * * `log(signal)`
            -     * * `exp(signal)`
            -     * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
            -     * argument being a denominator constant.
            -     * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
            -     * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
            -     * signal2 | double, else returns signal1.
            +     * Optional. Config for display feature, like match highlighting on search
            +     * results.
            +     * 
            * - * Here are a few examples of ranking formulas that use the supported - * ranking expression types: + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * * - * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)` - * -- mostly rank by the logarithm of `keyword_similarity_score` with slight - * `semantic_smilarity_score` adjustment. - * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 * - * is_nan(keyword_similarity_score)` -- rank by the exponent of - * `semantic_similarity_score` filling the value with 0 if it's NaN, also - * add constant 0.3 adjustment to the final score if - * `semantic_similarity_score` is NaN. - * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 * - * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank - * of `keyword_similarity_score` with slight adjustment of reciprocal rank - * of `semantic_smilarity_score`. + * @return Whether the displaySpec field is set. + */ + public boolean hasDisplaySpec() { + return ((bitField0_ & 0x80000000) != 0); + } + + /** * - * The following signals are supported: * - * * `semantic_similarity_score`: semantic similarity adjustment that is - * calculated using the embeddings generated by a proprietary Google model. - * This score determines how semantically similar a search query is to a - * document. - * * `keyword_similarity_score`: keyword match adjustment uses the Best - * Match 25 (BM25) ranking function. This score is calculated using a - * probabilistic model to estimate the probability that a document is - * relevant to a given query. - * * `relevance_score`: semantic relevance adjustment that uses a - * proprietary Google model to determine the meaning and intent behind a - * user's query in context with the content in the documents. - * * `pctr_rank`: predicted conversion rate adjustment as a rank use - * predicted Click-through rate (pCTR) to gauge the relevance and - * attractiveness of a search result from a user's perspective. A higher - * pCTR suggests that the result is more likely to satisfy the user's query - * and intent, making it a valuable signal for ranking. - * * `freshness_rank`: freshness adjustment as a rank - * * `document_age`: The time in hours elapsed since the document was last - * updated, a floating-point number (e.g., 0.25 means 15 minutes). - * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary - * Google model to determine the keyword-based overlap between the query and - * the document. - * * `base_rank`: the default rank of the result + *
            +     * Optional. Config for display feature, like match highlighting on search
            +     * results.
                  * 
            * - * string ranking_expression = 26; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * * - * @return The rankingExpression. + * @return The displaySpec. */ - public java.lang.String getRankingExpression() { - java.lang.Object ref = rankingExpression_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - rankingExpression_ = s; - return s; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec getDisplaySpec() { + if (displaySpecBuilder_ == null) { + return displaySpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.getDefaultInstance() + : displaySpec_; } else { - return (java.lang.String) ref; + return displaySpecBuilder_.getMessage(); } } @@ -39075,329 +51110,380 @@ public java.lang.String getRankingExpression() { * * *
            -     * The ranking expression controls the customized ranking on retrieval
            -     * documents. This overrides
            -     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression].
            -     * The syntax and supported features depend on the
            -     * `ranking_expression_backend` value. If `ranking_expression_backend` is not
            -     * provided, it defaults to `RANK_BY_EMBEDDING`.
            -     *
            -     * If
            -     * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend]
            -     * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
            -     * function or multiple functions that are joined by "+".
            -     *
            -     * * ranking_expression = function, { " + ", function };
            -     *
            -     * Supported functions:
            -     *
            -     * * double * relevance_score
            -     * * double * dotProduct(embedding_field_path)
            -     *
            -     * Function variables:
            -     *
            -     * * `relevance_score`: pre-defined keywords, used for measure relevance
            -     * between query and document.
            -     * * `embedding_field_path`: the document embedding field
            -     * used with query embedding vector.
            -     * * `dotProduct`: embedding function between `embedding_field_path` and
            -     * query embedding vector.
            -     *
            -     * Example ranking expression:
            -     *
            -     * If document has an embedding field doc_embedding, the ranking expression
            -     * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
            -     *
            -     * If
            -     * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend]
            -     * is set to `RANK_BY_FORMULA`, the following expression types (and
            -     * combinations of those chained using + or
            -     * * operators) are supported:
            -     *
            -     * * `double`
            -     * * `signal`
            -     * * `log(signal)`
            -     * * `exp(signal)`
            -     * * `rr(signal, double > 0)`  -- reciprocal rank transformation with second
            -     * argument being a denominator constant.
            -     * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise.
            -     * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns
            -     * signal2 | double, else returns signal1.
            -     *
            -     * Here are a few examples of ranking formulas that use the supported
            -     * ranking expression types:
            -     *
            -     * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)`
            -     * -- mostly rank by the logarithm of `keyword_similarity_score` with slight
            -     * `semantic_smilarity_score` adjustment.
            -     * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 *
            -     * is_nan(keyword_similarity_score)` -- rank by the exponent of
            -     * `semantic_similarity_score` filling the value with 0 if it's NaN, also
            -     * add constant 0.3 adjustment to the final score if
            -     * `semantic_similarity_score` is NaN.
            -     * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 *
            -     * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank
            -     * of `keyword_similarity_score` with slight adjustment of reciprocal rank
            -     * of `semantic_smilarity_score`.
            -     *
            -     * The following signals are supported:
            -     *
            -     * * `semantic_similarity_score`: semantic similarity adjustment that is
            -     * calculated using the embeddings generated by a proprietary Google model.
            -     * This score determines how semantically similar a search query is to a
            -     * document.
            -     * * `keyword_similarity_score`: keyword match adjustment uses the Best
            -     * Match 25 (BM25) ranking function. This score is calculated using a
            -     * probabilistic model to estimate the probability that a document is
            -     * relevant to a given query.
            -     * * `relevance_score`: semantic relevance adjustment that uses a
            -     * proprietary Google model to determine the meaning and intent behind a
            -     * user's query in context with the content in the documents.
            -     * * `pctr_rank`: predicted conversion rate adjustment as a rank use
            -     * predicted Click-through rate (pCTR) to gauge the relevance and
            -     * attractiveness of a search result from a user's perspective. A higher
            -     * pCTR suggests that the result is more likely to satisfy the user's query
            -     * and intent, making it a valuable signal for ranking.
            -     * * `freshness_rank`: freshness adjustment as a rank
            -     * * `document_age`: The time in hours elapsed since the document was last
            -     * updated, a floating-point number (e.g., 0.25 means 15 minutes).
            -     * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary
            -     * Google model to determine the keyword-based overlap between the query and
            -     * the document.
            -     * * `base_rank`: the default rank of the result
            +     * Optional. Config for display feature, like match highlighting on search
            +     * results.
                  * 
            * - * string ranking_expression = 26; - * - * @return The bytes for rankingExpression. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.protobuf.ByteString getRankingExpressionBytes() { - java.lang.Object ref = rankingExpression_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - rankingExpression_ = b; - return b; + public Builder setDisplaySpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec value) { + if (displaySpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + displaySpec_ = value; } else { - return (com.google.protobuf.ByteString) ref; + displaySpecBuilder_.setMessage(value); } + bitField0_ |= 0x80000000; + onChanged(); + return this; } /** * * *
            -     * The ranking expression controls the customized ranking on retrieval
            -     * documents. This overrides
            -     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression].
            -     * The syntax and supported features depend on the
            -     * `ranking_expression_backend` value. If `ranking_expression_backend` is not
            -     * provided, it defaults to `RANK_BY_EMBEDDING`.
            -     *
            -     * If
            -     * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend]
            -     * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single
            -     * function or multiple functions that are joined by "+".
            -     *
            -     * * ranking_expression = function, { " + ", function };
            +     * Optional. Config for display feature, like match highlighting on search
            +     * results.
            +     * 
            * - * Supported functions: + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDisplaySpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.Builder builderForValue) { + if (displaySpecBuilder_ == null) { + displaySpec_ = builderForValue.build(); + } else { + displaySpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x80000000; + onChanged(); + return this; + } + + /** * - * * double * relevance_score - * * double * dotProduct(embedding_field_path) * - * Function variables: + *
            +     * Optional. Config for display feature, like match highlighting on search
            +     * results.
            +     * 
            * - * * `relevance_score`: pre-defined keywords, used for measure relevance - * between query and document. - * * `embedding_field_path`: the document embedding field - * used with query embedding vector. - * * `dotProduct`: embedding function between `embedding_field_path` and - * query embedding vector. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDisplaySpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec value) { + if (displaySpecBuilder_ == null) { + if (((bitField0_ & 0x80000000) != 0) + && displaySpec_ != null + && displaySpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec + .getDefaultInstance()) { + getDisplaySpecBuilder().mergeFrom(value); + } else { + displaySpec_ = value; + } + } else { + displaySpecBuilder_.mergeFrom(value); + } + if (displaySpec_ != null) { + bitField0_ |= 0x80000000; + onChanged(); + } + return this; + } + + /** * - * Example ranking expression: * - * If document has an embedding field doc_embedding, the ranking expression - * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. + *
            +     * Optional. Config for display feature, like match highlighting on search
            +     * results.
            +     * 
            * - * If - * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend] - * is set to `RANK_BY_FORMULA`, the following expression types (and - * combinations of those chained using + or - * * operators) are supported: + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDisplaySpec() { + bitField0_ = (bitField0_ & ~0x80000000); + displaySpec_ = null; + if (displaySpecBuilder_ != null) { + displaySpecBuilder_.dispose(); + displaySpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** * - * * `double` - * * `signal` - * * `log(signal)` - * * `exp(signal)` - * * `rr(signal, double > 0)` -- reciprocal rank transformation with second - * argument being a denominator constant. - * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise. - * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns - * signal2 | double, else returns signal1. * - * Here are a few examples of ranking formulas that use the supported - * ranking expression types: + *
            +     * Optional. Config for display feature, like match highlighting on search
            +     * results.
            +     * 
            * - * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)` - * -- mostly rank by the logarithm of `keyword_similarity_score` with slight - * `semantic_smilarity_score` adjustment. - * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 * - * is_nan(keyword_similarity_score)` -- rank by the exponent of - * `semantic_similarity_score` filling the value with 0 if it's NaN, also - * add constant 0.3 adjustment to the final score if - * `semantic_similarity_score` is NaN. - * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 * - * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank - * of `keyword_similarity_score` with slight adjustment of reciprocal rank - * of `semantic_smilarity_score`. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.Builder + getDisplaySpecBuilder() { + bitField0_ |= 0x80000000; + onChanged(); + return internalGetDisplaySpecFieldBuilder().getBuilder(); + } + + /** * - * The following signals are supported: * - * * `semantic_similarity_score`: semantic similarity adjustment that is - * calculated using the embeddings generated by a proprietary Google model. - * This score determines how semantically similar a search query is to a - * document. - * * `keyword_similarity_score`: keyword match adjustment uses the Best - * Match 25 (BM25) ranking function. This score is calculated using a - * probabilistic model to estimate the probability that a document is - * relevant to a given query. - * * `relevance_score`: semantic relevance adjustment that uses a - * proprietary Google model to determine the meaning and intent behind a - * user's query in context with the content in the documents. - * * `pctr_rank`: predicted conversion rate adjustment as a rank use - * predicted Click-through rate (pCTR) to gauge the relevance and - * attractiveness of a search result from a user's perspective. A higher - * pCTR suggests that the result is more likely to satisfy the user's query - * and intent, making it a valuable signal for ranking. - * * `freshness_rank`: freshness adjustment as a rank - * * `document_age`: The time in hours elapsed since the document was last - * updated, a floating-point number (e.g., 0.25 means 15 minutes). - * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary - * Google model to determine the keyword-based overlap between the query and - * the document. - * * `base_rank`: the default rank of the result + *
            +     * Optional. Config for display feature, like match highlighting on search
            +     * results.
                  * 
            * - * string ranking_expression = 26; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpecOrBuilder + getDisplaySpecOrBuilder() { + if (displaySpecBuilder_ != null) { + return displaySpecBuilder_.getMessageOrBuilder(); + } else { + return displaySpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.getDefaultInstance() + : displaySpec_; + } + } + + /** + * * - * @param value The rankingExpression to set. - * @return This builder for chaining. + *
            +     * Optional. Config for display feature, like match highlighting on search
            +     * results.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setRankingExpression(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpecOrBuilder> + internalGetDisplaySpecFieldBuilder() { + if (displaySpecBuilder_ == null) { + displaySpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpecOrBuilder>( + getDisplaySpec(), getParentForChildren(), isClean()); + displaySpec_ = null; + } + return displaySpecBuilder_; + } + + private java.util.List + crowdingSpecs_ = java.util.Collections.emptyList(); + + private void ensureCrowdingSpecsIsMutable() { + if (!((bitField1_ & 0x00000001) != 0)) { + crowdingSpecs_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec>(crowdingSpecs_); + bitField1_ |= 0x00000001; } - rankingExpression_ = value; - bitField0_ |= 0x00800000; - onChanged(); - return this; } + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpecOrBuilder> + crowdingSpecsBuilder_; + /** * * *
            -     * The ranking expression controls the customized ranking on retrieval
            -     * documents. This overrides
            -     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression].
            -     * The syntax and supported features depend on the
            -     * `ranking_expression_backend` value. If `ranking_expression_backend` is not
            -     * provided, it defaults to `RANK_BY_EMBEDDING`.
            +     * Optional. Crowding specifications for improving result diversity.
            +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +     * each unique combination of the `field` values, and max_count will be the
            +     * maximum value of `max_count` across all CrowdingSpecs.
            +     * For example, if the first CrowdingSpec has `field` = "color" and
            +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +     * `max_count` = 2, then after 3 documents that share the same color AND size
            +     * have been returned, subsequent ones should be
            +     * removed or demoted.
            +     * 
            * - * If - * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend] - * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single - * function or multiple functions that are joined by "+". + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCrowdingSpecsList() { + if (crowdingSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(crowdingSpecs_); + } else { + return crowdingSpecsBuilder_.getMessageList(); + } + } + + /** * - * * ranking_expression = function, { " + ", function }; * - * Supported functions: + *
            +     * Optional. Crowding specifications for improving result diversity.
            +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +     * each unique combination of the `field` values, and max_count will be the
            +     * maximum value of `max_count` across all CrowdingSpecs.
            +     * For example, if the first CrowdingSpec has `field` = "color" and
            +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +     * `max_count` = 2, then after 3 documents that share the same color AND size
            +     * have been returned, subsequent ones should be
            +     * removed or demoted.
            +     * 
            * - * * double * relevance_score - * * double * dotProduct(embedding_field_path) + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCrowdingSpecsCount() { + if (crowdingSpecsBuilder_ == null) { + return crowdingSpecs_.size(); + } else { + return crowdingSpecsBuilder_.getCount(); + } + } + + /** * - * Function variables: * - * * `relevance_score`: pre-defined keywords, used for measure relevance - * between query and document. - * * `embedding_field_path`: the document embedding field - * used with query embedding vector. - * * `dotProduct`: embedding function between `embedding_field_path` and - * query embedding vector. + *
            +     * Optional. Crowding specifications for improving result diversity.
            +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +     * each unique combination of the `field` values, and max_count will be the
            +     * maximum value of `max_count` across all CrowdingSpecs.
            +     * For example, if the first CrowdingSpec has `field` = "color" and
            +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +     * `max_count` = 2, then after 3 documents that share the same color AND size
            +     * have been returned, subsequent ones should be
            +     * removed or demoted.
            +     * 
            * - * Example ranking expression: + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec getCrowdingSpecs( + int index) { + if (crowdingSpecsBuilder_ == null) { + return crowdingSpecs_.get(index); + } else { + return crowdingSpecsBuilder_.getMessage(index); + } + } + + /** * - * If document has an embedding field doc_embedding, the ranking expression - * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * - * If - * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend] - * is set to `RANK_BY_FORMULA`, the following expression types (and - * combinations of those chained using + or - * * operators) are supported: + *
            +     * Optional. Crowding specifications for improving result diversity.
            +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +     * each unique combination of the `field` values, and max_count will be the
            +     * maximum value of `max_count` across all CrowdingSpecs.
            +     * For example, if the first CrowdingSpec has `field` = "color" and
            +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +     * `max_count` = 2, then after 3 documents that share the same color AND size
            +     * have been returned, subsequent ones should be
            +     * removed or demoted.
            +     * 
            * - * * `double` - * * `signal` - * * `log(signal)` - * * `exp(signal)` - * * `rr(signal, double > 0)` -- reciprocal rank transformation with second - * argument being a denominator constant. - * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise. - * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns - * signal2 | double, else returns signal1. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCrowdingSpecs( + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec value) { + if (crowdingSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCrowdingSpecsIsMutable(); + crowdingSpecs_.set(index, value); + onChanged(); + } else { + crowdingSpecsBuilder_.setMessage(index, value); + } + return this; + } + + /** * - * Here are a few examples of ranking formulas that use the supported - * ranking expression types: * - * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)` - * -- mostly rank by the logarithm of `keyword_similarity_score` with slight - * `semantic_smilarity_score` adjustment. - * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 * - * is_nan(keyword_similarity_score)` -- rank by the exponent of - * `semantic_similarity_score` filling the value with 0 if it's NaN, also - * add constant 0.3 adjustment to the final score if - * `semantic_similarity_score` is NaN. - * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 * - * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank - * of `keyword_similarity_score` with slight adjustment of reciprocal rank - * of `semantic_smilarity_score`. + *
            +     * Optional. Crowding specifications for improving result diversity.
            +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +     * each unique combination of the `field` values, and max_count will be the
            +     * maximum value of `max_count` across all CrowdingSpecs.
            +     * For example, if the first CrowdingSpec has `field` = "color" and
            +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +     * `max_count` = 2, then after 3 documents that share the same color AND size
            +     * have been returned, subsequent ones should be
            +     * removed or demoted.
            +     * 
            * - * The following signals are supported: + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCrowdingSpecs( + int index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Builder + builderForValue) { + if (crowdingSpecsBuilder_ == null) { + ensureCrowdingSpecsIsMutable(); + crowdingSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + crowdingSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** * - * * `semantic_similarity_score`: semantic similarity adjustment that is - * calculated using the embeddings generated by a proprietary Google model. - * This score determines how semantically similar a search query is to a - * document. - * * `keyword_similarity_score`: keyword match adjustment uses the Best - * Match 25 (BM25) ranking function. This score is calculated using a - * probabilistic model to estimate the probability that a document is - * relevant to a given query. - * * `relevance_score`: semantic relevance adjustment that uses a - * proprietary Google model to determine the meaning and intent behind a - * user's query in context with the content in the documents. - * * `pctr_rank`: predicted conversion rate adjustment as a rank use - * predicted Click-through rate (pCTR) to gauge the relevance and - * attractiveness of a search result from a user's perspective. A higher - * pCTR suggests that the result is more likely to satisfy the user's query - * and intent, making it a valuable signal for ranking. - * * `freshness_rank`: freshness adjustment as a rank - * * `document_age`: The time in hours elapsed since the document was last - * updated, a floating-point number (e.g., 0.25 means 15 minutes). - * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary - * Google model to determine the keyword-based overlap between the query and - * the document. - * * `base_rank`: the default rank of the result - *
            * - * string ranking_expression = 26; + *
            +     * Optional. Crowding specifications for improving result diversity.
            +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +     * each unique combination of the `field` values, and max_count will be the
            +     * maximum value of `max_count` across all CrowdingSpecs.
            +     * For example, if the first CrowdingSpec has `field` = "color" and
            +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +     * `max_count` = 2, then after 3 documents that share the same color AND size
            +     * have been returned, subsequent ones should be
            +     * removed or demoted.
            +     * 
            * - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearRankingExpression() { - rankingExpression_ = getDefaultInstance().getRankingExpression(); - bitField0_ = (bitField0_ & ~0x00800000); - onChanged(); + public Builder addCrowdingSpecs( + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec value) { + if (crowdingSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCrowdingSpecsIsMutable(); + crowdingSpecs_.add(value); + onChanged(); + } else { + crowdingSpecsBuilder_.addMessage(value); + } return this; } @@ -39405,261 +51491,486 @@ public Builder clearRankingExpression() { * * *
            -     * The ranking expression controls the customized ranking on retrieval
            -     * documents. This overrides
            -     * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression].
            -     * The syntax and supported features depend on the
            -     * `ranking_expression_backend` value. If `ranking_expression_backend` is not
            -     * provided, it defaults to `RANK_BY_EMBEDDING`.
            +     * Optional. Crowding specifications for improving result diversity.
            +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +     * each unique combination of the `field` values, and max_count will be the
            +     * maximum value of `max_count` across all CrowdingSpecs.
            +     * For example, if the first CrowdingSpec has `field` = "color" and
            +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +     * `max_count` = 2, then after 3 documents that share the same color AND size
            +     * have been returned, subsequent ones should be
            +     * removed or demoted.
            +     * 
            * - * If - * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend] - * is not provided or set to `RANK_BY_EMBEDDING`, it should be a single - * function or multiple functions that are joined by "+". + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCrowdingSpecs( + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec value) { + if (crowdingSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCrowdingSpecsIsMutable(); + crowdingSpecs_.add(index, value); + onChanged(); + } else { + crowdingSpecsBuilder_.addMessage(index, value); + } + return this; + } + + /** * - * * ranking_expression = function, { " + ", function }; * - * Supported functions: + *
            +     * Optional. Crowding specifications for improving result diversity.
            +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +     * each unique combination of the `field` values, and max_count will be the
            +     * maximum value of `max_count` across all CrowdingSpecs.
            +     * For example, if the first CrowdingSpec has `field` = "color" and
            +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +     * `max_count` = 2, then after 3 documents that share the same color AND size
            +     * have been returned, subsequent ones should be
            +     * removed or demoted.
            +     * 
            * - * * double * relevance_score - * * double * dotProduct(embedding_field_path) + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCrowdingSpecs( + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Builder + builderForValue) { + if (crowdingSpecsBuilder_ == null) { + ensureCrowdingSpecsIsMutable(); + crowdingSpecs_.add(builderForValue.build()); + onChanged(); + } else { + crowdingSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** * - * Function variables: * - * * `relevance_score`: pre-defined keywords, used for measure relevance - * between query and document. - * * `embedding_field_path`: the document embedding field - * used with query embedding vector. - * * `dotProduct`: embedding function between `embedding_field_path` and - * query embedding vector. + *
            +     * Optional. Crowding specifications for improving result diversity.
            +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +     * each unique combination of the `field` values, and max_count will be the
            +     * maximum value of `max_count` across all CrowdingSpecs.
            +     * For example, if the first CrowdingSpec has `field` = "color" and
            +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +     * `max_count` = 2, then after 3 documents that share the same color AND size
            +     * have been returned, subsequent ones should be
            +     * removed or demoted.
            +     * 
            * - * Example ranking expression: + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCrowdingSpecs( + int index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Builder + builderForValue) { + if (crowdingSpecsBuilder_ == null) { + ensureCrowdingSpecsIsMutable(); + crowdingSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + crowdingSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** * - * If document has an embedding field doc_embedding, the ranking expression - * could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`. * - * If - * [ranking_expression_backend][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression_backend] - * is set to `RANK_BY_FORMULA`, the following expression types (and - * combinations of those chained using + or - * * operators) are supported: + *
            +     * Optional. Crowding specifications for improving result diversity.
            +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +     * each unique combination of the `field` values, and max_count will be the
            +     * maximum value of `max_count` across all CrowdingSpecs.
            +     * For example, if the first CrowdingSpec has `field` = "color" and
            +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +     * `max_count` = 2, then after 3 documents that share the same color AND size
            +     * have been returned, subsequent ones should be
            +     * removed or demoted.
            +     * 
            * - * * `double` - * * `signal` - * * `log(signal)` - * * `exp(signal)` - * * `rr(signal, double > 0)` -- reciprocal rank transformation with second - * argument being a denominator constant. - * * `is_nan(signal)` -- returns 0 if signal is NaN, 1 otherwise. - * * `fill_nan(signal1, signal2 | double)` -- if signal1 is NaN, returns - * signal2 | double, else returns signal1. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCrowdingSpecs( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec> + values) { + if (crowdingSpecsBuilder_ == null) { + ensureCrowdingSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, crowdingSpecs_); + onChanged(); + } else { + crowdingSpecsBuilder_.addAllMessages(values); + } + return this; + } + + /** * - * Here are a few examples of ranking formulas that use the supported - * ranking expression types: * - * - `0.2 * semantic_similarity_score + 0.8 * log(keyword_similarity_score)` - * -- mostly rank by the logarithm of `keyword_similarity_score` with slight - * `semantic_smilarity_score` adjustment. - * - `0.2 * exp(fill_nan(semantic_similarity_score, 0)) + 0.3 * - * is_nan(keyword_similarity_score)` -- rank by the exponent of - * `semantic_similarity_score` filling the value with 0 if it's NaN, also - * add constant 0.3 adjustment to the final score if - * `semantic_similarity_score` is NaN. - * - `0.2 * rr(semantic_similarity_score, 16) + 0.8 * - * rr(keyword_similarity_score, 16)` -- mostly rank by the reciprocal rank - * of `keyword_similarity_score` with slight adjustment of reciprocal rank - * of `semantic_smilarity_score`. + *
            +     * Optional. Crowding specifications for improving result diversity.
            +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +     * each unique combination of the `field` values, and max_count will be the
            +     * maximum value of `max_count` across all CrowdingSpecs.
            +     * For example, if the first CrowdingSpec has `field` = "color" and
            +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +     * `max_count` = 2, then after 3 documents that share the same color AND size
            +     * have been returned, subsequent ones should be
            +     * removed or demoted.
            +     * 
            * - * The following signals are supported: + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCrowdingSpecs() { + if (crowdingSpecsBuilder_ == null) { + crowdingSpecs_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000001); + onChanged(); + } else { + crowdingSpecsBuilder_.clear(); + } + return this; + } + + /** * - * * `semantic_similarity_score`: semantic similarity adjustment that is - * calculated using the embeddings generated by a proprietary Google model. - * This score determines how semantically similar a search query is to a - * document. - * * `keyword_similarity_score`: keyword match adjustment uses the Best - * Match 25 (BM25) ranking function. This score is calculated using a - * probabilistic model to estimate the probability that a document is - * relevant to a given query. - * * `relevance_score`: semantic relevance adjustment that uses a - * proprietary Google model to determine the meaning and intent behind a - * user's query in context with the content in the documents. - * * `pctr_rank`: predicted conversion rate adjustment as a rank use - * predicted Click-through rate (pCTR) to gauge the relevance and - * attractiveness of a search result from a user's perspective. A higher - * pCTR suggests that the result is more likely to satisfy the user's query - * and intent, making it a valuable signal for ranking. - * * `freshness_rank`: freshness adjustment as a rank - * * `document_age`: The time in hours elapsed since the document was last - * updated, a floating-point number (e.g., 0.25 means 15 minutes). - * * `topicality_rank`: topicality adjustment as a rank. Uses proprietary - * Google model to determine the keyword-based overlap between the query and - * the document. - * * `base_rank`: the default rank of the result - *
            * - * string ranking_expression = 26; + *
            +     * Optional. Crowding specifications for improving result diversity.
            +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +     * each unique combination of the `field` values, and max_count will be the
            +     * maximum value of `max_count` across all CrowdingSpecs.
            +     * For example, if the first CrowdingSpec has `field` = "color" and
            +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +     * `max_count` = 2, then after 3 documents that share the same color AND size
            +     * have been returned, subsequent ones should be
            +     * removed or demoted.
            +     * 
            * - * @param value The bytes for rankingExpression to set. - * @return This builder for chaining. + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setRankingExpressionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder removeCrowdingSpecs(int index) { + if (crowdingSpecsBuilder_ == null) { + ensureCrowdingSpecsIsMutable(); + crowdingSpecs_.remove(index); + onChanged(); + } else { + crowdingSpecsBuilder_.remove(index); } - checkByteStringIsUtf8(value); - rankingExpression_ = value; - bitField0_ |= 0x00800000; - onChanged(); return this; } - private int rankingExpressionBackend_ = 0; - /** * * *
            -     * The backend to use for the ranking expression evaluation.
            +     * Optional. Crowding specifications for improving result diversity.
            +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +     * each unique combination of the `field` values, and max_count will be the
            +     * maximum value of `max_count` across all CrowdingSpecs.
            +     * For example, if the first CrowdingSpec has `field` = "color" and
            +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +     * `max_count` = 2, then after 3 documents that share the same color AND size
            +     * have been returned, subsequent ones should be
            +     * removed or demoted.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The enum numeric value on the wire for rankingExpressionBackend. */ - @java.lang.Override - public int getRankingExpressionBackendValue() { - return rankingExpressionBackend_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Builder + getCrowdingSpecsBuilder(int index) { + return internalGetCrowdingSpecsFieldBuilder().getBuilder(index); } /** * * *
            -     * The backend to use for the ranking expression evaluation.
            +     * Optional. Crowding specifications for improving result diversity.
            +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +     * each unique combination of the `field` values, and max_count will be the
            +     * maximum value of `max_count` across all CrowdingSpecs.
            +     * For example, if the first CrowdingSpec has `field` = "color" and
            +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +     * `max_count` = 2, then after 3 documents that share the same color AND size
            +     * have been returned, subsequent ones should be
            +     * removed or demoted.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The enum numeric value on the wire for rankingExpressionBackend to set. - * @return This builder for chaining. */ - public Builder setRankingExpressionBackendValue(int value) { - rankingExpressionBackend_ = value; - bitField0_ |= 0x01000000; - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpecOrBuilder + getCrowdingSpecsOrBuilder(int index) { + if (crowdingSpecsBuilder_ == null) { + return crowdingSpecs_.get(index); + } else { + return crowdingSpecsBuilder_.getMessageOrBuilder(index); + } } /** * * *
            -     * The backend to use for the ranking expression evaluation.
            +     * Optional. Crowding specifications for improving result diversity.
            +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +     * each unique combination of the `field` values, and max_count will be the
            +     * maximum value of `max_count` across all CrowdingSpecs.
            +     * For example, if the first CrowdingSpec has `field` = "color" and
            +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +     * `max_count` = 2, then after 3 documents that share the same color AND size
            +     * have been returned, subsequent ones should be
            +     * removed or demoted.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The rankingExpressionBackend. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend - getRankingExpressionBackend() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend result = - com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend.forNumber( - rankingExpressionBackend_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend - .UNRECOGNIZED - : result; + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpecOrBuilder> + getCrowdingSpecsOrBuilderList() { + if (crowdingSpecsBuilder_ != null) { + return crowdingSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(crowdingSpecs_); + } } /** * * *
            -     * The backend to use for the ranking expression evaluation.
            +     * Optional. Crowding specifications for improving result diversity.
            +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +     * each unique combination of the `field` values, and max_count will be the
            +     * maximum value of `max_count` across all CrowdingSpecs.
            +     * For example, if the first CrowdingSpec has `field` = "color" and
            +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +     * `max_count` = 2, then after 3 documents that share the same color AND size
            +     * have been returned, subsequent ones should be
            +     * removed or demoted.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @param value The rankingExpressionBackend to set. - * @return This builder for chaining. */ - public Builder setRankingExpressionBackend( - com.google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x01000000; - rankingExpressionBackend_ = value.getNumber(); - onChanged(); - return this; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Builder + addCrowdingSpecsBuilder() { + return internalGetCrowdingSpecsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec + .getDefaultInstance()); } /** * * *
            -     * The backend to use for the ranking expression evaluation.
            +     * Optional. Crowding specifications for improving result diversity.
            +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +     * each unique combination of the `field` values, and max_count will be the
            +     * maximum value of `max_count` across all CrowdingSpecs.
            +     * For example, if the first CrowdingSpec has `field` = "color" and
            +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +     * `max_count` = 2, then after 3 documents that share the same color AND size
            +     * have been returned, subsequent ones should be
            +     * removed or demoted.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.RankingExpressionBackend ranking_expression_backend = 53 [(.google.api.field_behavior) = OPTIONAL]; + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Builder + addCrowdingSpecsBuilder(int index) { + return internalGetCrowdingSpecsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec + .getDefaultInstance()); + } + + /** * - * @return This builder for chaining. + * + *
            +     * Optional. Crowding specifications for improving result diversity.
            +     * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +     * each unique combination of the `field` values, and max_count will be the
            +     * maximum value of `max_count` across all CrowdingSpecs.
            +     * For example, if the first CrowdingSpec has `field` = "color" and
            +     * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +     * `max_count` = 2, then after 3 documents that share the same color AND size
            +     * have been returned, subsequent ones should be
            +     * removed or demoted.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearRankingExpressionBackend() { - bitField0_ = (bitField0_ & ~0x01000000); - rankingExpressionBackend_ = 0; - onChanged(); - return this; + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Builder> + getCrowdingSpecsBuilderList() { + return internalGetCrowdingSpecsFieldBuilder().getBuilderList(); } - private boolean safeSearch_; + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpecOrBuilder> + internalGetCrowdingSpecsFieldBuilder() { + if (crowdingSpecsBuilder_ == null) { + crowdingSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpecOrBuilder>( + crowdingSpecs_, + ((bitField1_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + crowdingSpecs_ = null; + } + return crowdingSpecsBuilder_; + } + + private java.lang.Object session_ = ""; /** * * *
            -     * Whether to turn on safe search. This is only supported for
            -     * website search.
            +     * The session resource name. Optional.
            +     *
            +     * Session allows users to do multi-turn /search API calls or coordination
            +     * between /search API calls and /answer API calls.
            +     *
            +     * Example #1 (multi-turn /search API calls):
            +     * Call /search API with the session ID generated in the first call.
            +     * Here, the previous search query gets considered in query
            +     * standing. I.e., if the first query is "How did Alphabet do in 2022?"
            +     * and the current query is "How about 2023?", the current query will
            +     * be interpreted as "How did Alphabet do in 2023?".
            +     *
            +     * Example #2 (coordination between /search API calls and /answer API calls):
            +     * Call /answer API with the session ID generated in the first call.
            +     * Here, the answer generation happens in the context of the search
            +     * results from the first search call.
                  * 
            * - * bool safe_search = 20; + * string session = 41 [(.google.api.resource_reference) = { ... } * - * @return The safeSearch. + * @return The session. */ - @java.lang.Override - public boolean getSafeSearch() { - return safeSearch_; + public java.lang.String getSession() { + java.lang.Object ref = session_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + session_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** * * *
            -     * Whether to turn on safe search. This is only supported for
            -     * website search.
            +     * The session resource name. Optional.
            +     *
            +     * Session allows users to do multi-turn /search API calls or coordination
            +     * between /search API calls and /answer API calls.
            +     *
            +     * Example #1 (multi-turn /search API calls):
            +     * Call /search API with the session ID generated in the first call.
            +     * Here, the previous search query gets considered in query
            +     * standing. I.e., if the first query is "How did Alphabet do in 2022?"
            +     * and the current query is "How about 2023?", the current query will
            +     * be interpreted as "How did Alphabet do in 2023?".
            +     *
            +     * Example #2 (coordination between /search API calls and /answer API calls):
            +     * Call /answer API with the session ID generated in the first call.
            +     * Here, the answer generation happens in the context of the search
            +     * results from the first search call.
                  * 
            * - * bool safe_search = 20; + * string session = 41 [(.google.api.resource_reference) = { ... } * - * @param value The safeSearch to set. - * @return This builder for chaining. + * @return The bytes for session. */ - public Builder setSafeSearch(boolean value) { + public com.google.protobuf.ByteString getSessionBytes() { + java.lang.Object ref = session_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + session_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - safeSearch_ = value; - bitField0_ |= 0x02000000; + /** + * + * + *
            +     * The session resource name. Optional.
            +     *
            +     * Session allows users to do multi-turn /search API calls or coordination
            +     * between /search API calls and /answer API calls.
            +     *
            +     * Example #1 (multi-turn /search API calls):
            +     * Call /search API with the session ID generated in the first call.
            +     * Here, the previous search query gets considered in query
            +     * standing. I.e., if the first query is "How did Alphabet do in 2022?"
            +     * and the current query is "How about 2023?", the current query will
            +     * be interpreted as "How did Alphabet do in 2023?".
            +     *
            +     * Example #2 (coordination between /search API calls and /answer API calls):
            +     * Call /answer API with the session ID generated in the first call.
            +     * Here, the answer generation happens in the context of the search
            +     * results from the first search call.
            +     * 
            + * + * string session = 41 [(.google.api.resource_reference) = { ... } + * + * @param value The session to set. + * @return This builder for chaining. + */ + public Builder setSession(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + session_ = value; + bitField1_ |= 0x00000002; onChanged(); return this; } @@ -39668,197 +51979,146 @@ public Builder setSafeSearch(boolean value) { * * *
            -     * Whether to turn on safe search. This is only supported for
            -     * website search.
            +     * The session resource name. Optional.
            +     *
            +     * Session allows users to do multi-turn /search API calls or coordination
            +     * between /search API calls and /answer API calls.
            +     *
            +     * Example #1 (multi-turn /search API calls):
            +     * Call /search API with the session ID generated in the first call.
            +     * Here, the previous search query gets considered in query
            +     * standing. I.e., if the first query is "How did Alphabet do in 2022?"
            +     * and the current query is "How about 2023?", the current query will
            +     * be interpreted as "How did Alphabet do in 2023?".
            +     *
            +     * Example #2 (coordination between /search API calls and /answer API calls):
            +     * Call /answer API with the session ID generated in the first call.
            +     * Here, the answer generation happens in the context of the search
            +     * results from the first search call.
                  * 
            * - * bool safe_search = 20; + * string session = 41 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ - public Builder clearSafeSearch() { - bitField0_ = (bitField0_ & ~0x02000000); - safeSearch_ = false; + public Builder clearSession() { + session_ = getDefaultInstance().getSession(); + bitField1_ = (bitField1_ & ~0x00000002); onChanged(); return this; } - 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_ |= 0x04000000; - onChanged(); - return userLabels_; - } - - public int getUserLabelsCount() { - return internalGetUserLabels().getMap().size(); - } - /** * * *
            -     * The user labels applied to a resource must meet the following requirements:
            +     * The session resource name. Optional.
                  *
            -     * * 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.
            +     * Session allows users to do multi-turn /search API calls or coordination
            +     * between /search API calls and /answer API calls.
                  *
            -     * See [Google Cloud
            -     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
            -     * for more details.
            +     * Example #1 (multi-turn /search API calls):
            +     * Call /search API with the session ID generated in the first call.
            +     * Here, the previous search query gets considered in query
            +     * standing. I.e., if the first query is "How did Alphabet do in 2022?"
            +     * and the current query is "How about 2023?", the current query will
            +     * be interpreted as "How did Alphabet do in 2023?".
            +     *
            +     * Example #2 (coordination between /search API calls and /answer API calls):
            +     * Call /answer API with the session ID generated in the first call.
            +     * Here, the answer generation happens in the context of the search
            +     * results from the first search call.
                  * 
            * - * map<string, string> user_labels = 22; + * string session = 41 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for session to set. + * @return This builder for chaining. */ - @java.lang.Override - public boolean containsUserLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setSessionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } - return internalGetUserLabels().getMap().containsKey(key); + checkByteStringIsUtf8(value); + session_ = value; + bitField1_ |= 0x00000002; + onChanged(); + return this; } - /** Use {@link #getUserLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getUserLabels() { - return getUserLabelsMap(); - } + private com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec sessionSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpecOrBuilder> + sessionSpecBuilder_; /** * * *
            -     * 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.
            +     * Session specification.
                  *
            -     * See [Google Cloud
            -     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
            -     * for more details.
            +     * Can be used only when `session` is set.
                  * 
            * - * map<string, string> user_labels = 22; + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + * + * @return Whether the sessionSpec field is set. */ - @java.lang.Override - public java.util.Map getUserLabelsMap() { - return internalGetUserLabels().getMap(); + public boolean hasSessionSpec() { + return ((bitField1_ & 0x00000004) != 0); } /** * * *
            -     * 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.
            +     * Session specification.
                  *
            -     * See [Google Cloud
            -     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
            -     * for more details.
            +     * Can be used only when `session` is set.
                  * 
            * - * map<string, string> user_labels = 22; + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + * + * @return The sessionSpec. */ - @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"); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec getSessionSpec() { + if (sessionSpecBuilder_ == null) { + return sessionSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.getDefaultInstance() + : sessionSpec_; + } else { + return sessionSpecBuilder_.getMessage(); } - 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.
            +     * Session specification.
                  *
            -     * See [Google Cloud
            -     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
            -     * for more details.
            +     * Can be used only when `session` is set.
                  * 
            * - * map<string, string> user_labels = 22; + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * */ - @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(); + public Builder setSessionSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec value) { + if (sessionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sessionSpec_ = value; + } else { + sessionSpecBuilder_.setMessage(value); } - return map.get(key); - } - - public Builder clearUserLabels() { - bitField0_ = (bitField0_ & ~0x04000000); - internalGetMutableUserLabels().getMutableMap().clear(); + bitField1_ |= 0x00000004; + onChanged(); return this; } @@ -39866,76 +52126,57 @@ public Builder clearUserLabels() { * * *
            -     * 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.
            +     * Session specification.
                  *
            -     * See [Google Cloud
            -     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
            -     * for more details.
            +     * Can be used only when `session` is set.
                  * 
            * - * map<string, string> user_labels = 22; + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * */ - public Builder removeUserLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setSessionSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder builderForValue) { + if (sessionSpecBuilder_ == null) { + sessionSpec_ = builderForValue.build(); + } else { + sessionSpecBuilder_.setMessage(builderForValue.build()); } - internalGetMutableUserLabels().getMutableMap().remove(key); + bitField1_ |= 0x00000004; + onChanged(); return this; } - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableUserLabels() { - bitField0_ |= 0x04000000; - 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.
            +     * Session specification.
                  *
            -     * See [Google Cloud
            -     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
            -     * for more details.
            +     * Can be used only when `session` is set.
                  * 
            * - * map<string, string> user_labels = 22; + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * */ - public Builder putUserLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder mergeSessionSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec value) { + if (sessionSpecBuilder_ == null) { + if (((bitField1_ & 0x00000004) != 0) + && sessionSpec_ != null + && sessionSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec + .getDefaultInstance()) { + getSessionSpecBuilder().mergeFrom(value); + } else { + sessionSpec_ = value; + } + } else { + sessionSpecBuilder_.mergeFrom(value); } - if (value == null) { - throw new NullPointerException("map value"); + if (sessionSpec_ != null) { + bitField1_ |= 0x00000004; + onChanged(); } - internalGetMutableUserLabels().getMutableMap().put(key, value); - bitField0_ |= 0x04000000; return this; } @@ -39943,87 +52184,64 @@ public Builder putUserLabels(java.lang.String key, java.lang.String value) { * * *
            -     * 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.
            +     * Session specification.
                  *
            -     * See [Google Cloud
            -     * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
            -     * for more details.
            +     * Can be used only when `session` is set.
                  * 
            * - * map<string, string> user_labels = 22; + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * */ - public Builder putAllUserLabels(java.util.Map values) { - internalGetMutableUserLabels().getMutableMap().putAll(values); - bitField0_ |= 0x04000000; + public Builder clearSessionSpec() { + bitField1_ = (bitField1_ & ~0x00000004); + sessionSpec_ = null; + if (sessionSpecBuilder_ != null) { + sessionSpecBuilder_.dispose(); + sessionSpecBuilder_ = null; + } + onChanged(); return this; } - private com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - naturalLanguageQueryUnderstandingSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpecOrBuilder> - naturalLanguageQueryUnderstandingSpecBuilder_; - /** * * *
            -     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            -     * natural language query understanding will be done.
            +     * Session specification.
            +     *
            +     * Can be used only when `session` is set.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; * - * - * @return Whether the naturalLanguageQueryUnderstandingSpec field is set. */ - public boolean hasNaturalLanguageQueryUnderstandingSpec() { - return ((bitField0_ & 0x08000000) != 0); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder + getSessionSpecBuilder() { + bitField1_ |= 0x00000004; + onChanged(); + return internalGetSessionSpecFieldBuilder().getBuilder(); } /** * * *
            -     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            -     * natural language query understanding will be done.
            +     * Session specification.
            +     *
            +     * Can be used only when `session` is set.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; * - * - * @return The naturalLanguageQueryUnderstandingSpec. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec - getNaturalLanguageQueryUnderstandingSpec() { - if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { - return naturalLanguageQueryUnderstandingSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() - : naturalLanguageQueryUnderstandingSpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpecOrBuilder + getSessionSpecOrBuilder() { + if (sessionSpecBuilder_ != null) { + return sessionSpecBuilder_.getMessageOrBuilder(); } else { - return naturalLanguageQueryUnderstandingSpecBuilder_.getMessage(); + return sessionSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.getDefaultInstance() + : sessionSpec_; } } @@ -40031,110 +52249,86 @@ public boolean hasNaturalLanguageQueryUnderstandingSpec() { * * *
            -     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            -     * natural language query understanding will be done.
            +     * Session specification.
            +     *
            +     * Can be used only when `session` is set.
                  * 
            * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; * */ - public Builder setNaturalLanguageQueryUnderstandingSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec - value) { - if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - naturalLanguageQueryUnderstandingSpec_ = value; - } else { - naturalLanguageQueryUnderstandingSpecBuilder_.setMessage(value); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpecOrBuilder> + internalGetSessionSpecFieldBuilder() { + if (sessionSpecBuilder_ == null) { + sessionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpecOrBuilder>( + getSessionSpec(), getParentForChildren(), isClean()); + sessionSpec_ = null; } - bitField0_ |= 0x08000000; - onChanged(); - return this; + return sessionSpecBuilder_; } + private int relevanceThreshold_ = 0; + /** * * *
            -     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            -     * natural language query understanding will be done.
            -     * 
            + * The global relevance threshold of the search results. * - * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; - * - */ - public Builder setNaturalLanguageQueryUnderstandingSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec - .Builder - builderForValue) { - if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { - naturalLanguageQueryUnderstandingSpec_ = builderForValue.build(); - } else { - naturalLanguageQueryUnderstandingSpecBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x08000000; - onChanged(); - return this; - } - - /** + * Defaults to Google defined threshold, leveraging a balance of + * precision and recall to deliver both highly accurate results and + * comprehensive coverage of relevant information. * + * If more granular relevance filtering is required, use the + * `relevance_filter_spec` instead. * - *
            -     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            -     * natural language query understanding will be done.
            +     * This feature is not supported for healthcare search.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 44; * + * + * @return The enum numeric value on the wire for relevanceThreshold. */ - public Builder mergeNaturalLanguageQueryUnderstandingSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec - value) { - if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { - if (((bitField0_ & 0x08000000) != 0) - && naturalLanguageQueryUnderstandingSpec_ != null - && naturalLanguageQueryUnderstandingSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance()) { - getNaturalLanguageQueryUnderstandingSpecBuilder().mergeFrom(value); - } else { - naturalLanguageQueryUnderstandingSpec_ = value; - } - } else { - naturalLanguageQueryUnderstandingSpecBuilder_.mergeFrom(value); - } - if (naturalLanguageQueryUnderstandingSpec_ != null) { - bitField0_ |= 0x08000000; - onChanged(); - } - return this; + @java.lang.Override + public int getRelevanceThresholdValue() { + return relevanceThreshold_; } /** * * *
            -     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            -     * natural language query understanding will be done.
            +     * The global relevance threshold of the search results.
            +     *
            +     * Defaults to Google defined threshold, leveraging a balance of
            +     * precision and recall to deliver both highly accurate results and
            +     * comprehensive coverage of relevant information.
            +     *
            +     * If more granular relevance filtering is required, use the
            +     * `relevance_filter_spec` instead.
            +     *
            +     * This feature is not supported for healthcare search.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 44; * + * + * @param value The enum numeric value on the wire for relevanceThreshold to set. + * @return This builder for chaining. */ - public Builder clearNaturalLanguageQueryUnderstandingSpec() { - bitField0_ = (bitField0_ & ~0x08000000); - naturalLanguageQueryUnderstandingSpec_ = null; - if (naturalLanguageQueryUnderstandingSpecBuilder_ != null) { - naturalLanguageQueryUnderstandingSpecBuilder_.dispose(); - naturalLanguageQueryUnderstandingSpecBuilder_ = null; - } + public Builder setRelevanceThresholdValue(int value) { + relevanceThreshold_ = value; + bitField1_ |= 0x00000008; onChanged(); return this; } @@ -40143,133 +52337,157 @@ public Builder clearNaturalLanguageQueryUnderstandingSpec() { * * *
            -     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            -     * natural language query understanding will be done.
            +     * The global relevance threshold of the search results.
            +     *
            +     * Defaults to Google defined threshold, leveraging a balance of
            +     * precision and recall to deliver both highly accurate results and
            +     * comprehensive coverage of relevant information.
            +     *
            +     * If more granular relevance filtering is required, use the
            +     * `relevance_filter_spec` instead.
            +     *
            +     * This feature is not supported for healthcare search.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 44; * - */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.Builder - getNaturalLanguageQueryUnderstandingSpecBuilder() { - bitField0_ |= 0x08000000; - onChanged(); - return internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder().getBuilder(); + * + * @return The relevanceThreshold. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold + getRelevanceThreshold() { + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold result = + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold.forNumber( + relevanceThreshold_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold.UNRECOGNIZED + : result; } /** * * *
            -     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            -     * natural language query understanding will be done.
            +     * The global relevance threshold of the search results.
            +     *
            +     * Defaults to Google defined threshold, leveraging a balance of
            +     * precision and recall to deliver both highly accurate results and
            +     * comprehensive coverage of relevant information.
            +     *
            +     * If more granular relevance filtering is required, use the
            +     * `relevance_filter_spec` instead.
            +     *
            +     * This feature is not supported for healthcare search.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 44; * + * + * @param value The relevanceThreshold to set. + * @return This builder for chaining. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpecOrBuilder - getNaturalLanguageQueryUnderstandingSpecOrBuilder() { - if (naturalLanguageQueryUnderstandingSpecBuilder_ != null) { - return naturalLanguageQueryUnderstandingSpecBuilder_.getMessageOrBuilder(); - } else { - return naturalLanguageQueryUnderstandingSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.getDefaultInstance() - : naturalLanguageQueryUnderstandingSpec_; + public Builder setRelevanceThreshold( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold value) { + if (value == null) { + throw new NullPointerException(); } + bitField1_ |= 0x00000008; + relevanceThreshold_ = value.getNumber(); + onChanged(); + return this; } /** * * *
            -     * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
            -     * natural language query understanding will be done.
            +     * The global relevance threshold of the search results.
            +     *
            +     * Defaults to Google defined threshold, leveraging a balance of
            +     * precision and recall to deliver both highly accurate results and
            +     * comprehensive coverage of relevant information.
            +     *
            +     * If more granular relevance filtering is required, use the
            +     * `relevance_filter_spec` instead.
            +     *
            +     * This feature is not supported for healthcare search.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 44; * + * + * @return This builder for chaining. */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpecOrBuilder> - internalGetNaturalLanguageQueryUnderstandingSpecFieldBuilder() { - if (naturalLanguageQueryUnderstandingSpecBuilder_ == null) { - naturalLanguageQueryUnderstandingSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest - .NaturalLanguageQueryUnderstandingSpecOrBuilder>( - getNaturalLanguageQueryUnderstandingSpec(), getParentForChildren(), isClean()); - naturalLanguageQueryUnderstandingSpec_ = null; - } - return naturalLanguageQueryUnderstandingSpecBuilder_; + public Builder clearRelevanceThreshold() { + bitField1_ = (bitField1_ & ~0x00000008); + relevanceThreshold_ = 0; + onChanged(); + return this; } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec - searchAsYouTypeSpec_; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + relevanceFilterSpec_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder> - searchAsYouTypeSpecBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpecOrBuilder> + relevanceFilterSpecBuilder_; /** * * *
            -     * Search as you type configuration. Only supported for the
            -     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            -     * vertical.
            +     * Optional. The granular relevance filtering specification.
            +     *
            +     * If not specified, the global `relevance_threshold` will be used for all
            +     * sub-searches. If specified, this overrides the global
            +     * `relevance_threshold` to use thresholds on a per sub-search basis.
            +     *
            +     * This feature is currently supported only for custom and site search.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec relevance_filter_spec = 86 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the searchAsYouTypeSpec field is set. + * @return Whether the relevanceFilterSpec field is set. */ - public boolean hasSearchAsYouTypeSpec() { - return ((bitField0_ & 0x10000000) != 0); + public boolean hasRelevanceFilterSpec() { + return ((bitField1_ & 0x00000010) != 0); } /** * * *
            -     * Search as you type configuration. Only supported for the
            -     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            -     * vertical.
            +     * Optional. The granular relevance filtering specification.
            +     *
            +     * If not specified, the global `relevance_threshold` will be used for all
            +     * sub-searches. If specified, this overrides the global
            +     * `relevance_threshold` to use thresholds on a per sub-search basis.
            +     *
            +     * This feature is currently supported only for custom and site search.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec relevance_filter_spec = 86 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The searchAsYouTypeSpec. + * @return The relevanceFilterSpec. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec - getSearchAsYouTypeSpec() { - if (searchAsYouTypeSpecBuilder_ == null) { - return searchAsYouTypeSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + getRelevanceFilterSpec() { + if (relevanceFilterSpecBuilder_ == null) { + return relevanceFilterSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec .getDefaultInstance() - : searchAsYouTypeSpec_; + : relevanceFilterSpec_; } else { - return searchAsYouTypeSpecBuilder_.getMessage(); + return relevanceFilterSpecBuilder_.getMessage(); } } @@ -40277,26 +52495,30 @@ public boolean hasSearchAsYouTypeSpec() { * * *
            -     * Search as you type configuration. Only supported for the
            -     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            -     * vertical.
            +     * Optional. The granular relevance filtering specification.
            +     *
            +     * If not specified, the global `relevance_threshold` will be used for all
            +     * sub-searches. If specified, this overrides the global
            +     * `relevance_threshold` to use thresholds on a per sub-search basis.
            +     *
            +     * This feature is currently supported only for custom and site search.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec relevance_filter_spec = 86 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSearchAsYouTypeSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec value) { - if (searchAsYouTypeSpecBuilder_ == null) { + public Builder setRelevanceFilterSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec value) { + if (relevanceFilterSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - searchAsYouTypeSpec_ = value; + relevanceFilterSpec_ = value; } else { - searchAsYouTypeSpecBuilder_.setMessage(value); + relevanceFilterSpecBuilder_.setMessage(value); } - bitField0_ |= 0x10000000; + bitField1_ |= 0x00000010; onChanged(); return this; } @@ -40305,24 +52527,28 @@ public Builder setSearchAsYouTypeSpec( * * *
            -     * Search as you type configuration. Only supported for the
            -     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            -     * vertical.
            +     * Optional. The granular relevance filtering specification.
            +     *
            +     * If not specified, the global `relevance_threshold` will be used for all
            +     * sub-searches. If specified, this overrides the global
            +     * `relevance_threshold` to use thresholds on a per sub-search basis.
            +     *
            +     * This feature is currently supported only for custom and site search.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec relevance_filter_spec = 86 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSearchAsYouTypeSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder + public Builder setRelevanceFilterSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.Builder builderForValue) { - if (searchAsYouTypeSpecBuilder_ == null) { - searchAsYouTypeSpec_ = builderForValue.build(); + if (relevanceFilterSpecBuilder_ == null) { + relevanceFilterSpec_ = builderForValue.build(); } else { - searchAsYouTypeSpecBuilder_.setMessage(builderForValue.build()); + relevanceFilterSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x10000000; + bitField1_ |= 0x00000010; onChanged(); return this; } @@ -40331,32 +52557,36 @@ public Builder setSearchAsYouTypeSpec( * * *
            -     * Search as you type configuration. Only supported for the
            -     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            -     * vertical.
            +     * Optional. The granular relevance filtering specification.
            +     *
            +     * If not specified, the global `relevance_threshold` will be used for all
            +     * sub-searches. If specified, this overrides the global
            +     * `relevance_threshold` to use thresholds on a per sub-search basis.
            +     *
            +     * This feature is currently supported only for custom and site search.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec relevance_filter_spec = 86 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeSearchAsYouTypeSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec value) { - if (searchAsYouTypeSpecBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) - && searchAsYouTypeSpec_ != null - && searchAsYouTypeSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + public Builder mergeRelevanceFilterSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec value) { + if (relevanceFilterSpecBuilder_ == null) { + if (((bitField1_ & 0x00000010) != 0) + && relevanceFilterSpec_ != null + && relevanceFilterSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec .getDefaultInstance()) { - getSearchAsYouTypeSpecBuilder().mergeFrom(value); + getRelevanceFilterSpecBuilder().mergeFrom(value); } else { - searchAsYouTypeSpec_ = value; + relevanceFilterSpec_ = value; } } else { - searchAsYouTypeSpecBuilder_.mergeFrom(value); + relevanceFilterSpecBuilder_.mergeFrom(value); } - if (searchAsYouTypeSpec_ != null) { - bitField0_ |= 0x10000000; + if (relevanceFilterSpec_ != null) { + bitField1_ |= 0x00000010; onChanged(); } return this; @@ -40366,21 +52596,25 @@ public Builder mergeSearchAsYouTypeSpec( * * *
            -     * Search as you type configuration. Only supported for the
            -     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            -     * vertical.
            +     * Optional. The granular relevance filtering specification.
            +     *
            +     * If not specified, the global `relevance_threshold` will be used for all
            +     * sub-searches. If specified, this overrides the global
            +     * `relevance_threshold` to use thresholds on a per sub-search basis.
            +     *
            +     * This feature is currently supported only for custom and site search.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec relevance_filter_spec = 86 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearSearchAsYouTypeSpec() { - bitField0_ = (bitField0_ & ~0x10000000); - searchAsYouTypeSpec_ = null; - if (searchAsYouTypeSpecBuilder_ != null) { - searchAsYouTypeSpecBuilder_.dispose(); - searchAsYouTypeSpecBuilder_ = null; + public Builder clearRelevanceFilterSpec() { + bitField1_ = (bitField1_ & ~0x00000010); + relevanceFilterSpec_ = null; + if (relevanceFilterSpecBuilder_ != null) { + relevanceFilterSpecBuilder_.dispose(); + relevanceFilterSpecBuilder_ = null; } onChanged(); return this; @@ -40390,44 +52624,52 @@ public Builder clearSearchAsYouTypeSpec() { * * *
            -     * Search as you type configuration. Only supported for the
            -     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            -     * vertical.
            +     * Optional. The granular relevance filtering specification.
            +     *
            +     * If not specified, the global `relevance_threshold` will be used for all
            +     * sub-searches. If specified, this overrides the global
            +     * `relevance_threshold` to use thresholds on a per sub-search basis.
            +     *
            +     * This feature is currently supported only for custom and site search.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec relevance_filter_spec = 86 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder - getSearchAsYouTypeSpecBuilder() { - bitField0_ |= 0x10000000; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.Builder + getRelevanceFilterSpecBuilder() { + bitField1_ |= 0x00000010; onChanged(); - return internalGetSearchAsYouTypeSpecFieldBuilder().getBuilder(); + return internalGetRelevanceFilterSpecFieldBuilder().getBuilder(); } /** * * *
            -     * Search as you type configuration. Only supported for the
            -     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            -     * vertical.
            +     * Optional. The granular relevance filtering specification.
            +     *
            +     * If not specified, the global `relevance_threshold` will be used for all
            +     * sub-searches. If specified, this overrides the global
            +     * `relevance_threshold` to use thresholds on a per sub-search basis.
            +     *
            +     * This feature is currently supported only for custom and site search.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec relevance_filter_spec = 86 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder - getSearchAsYouTypeSpecOrBuilder() { - if (searchAsYouTypeSpecBuilder_ != null) { - return searchAsYouTypeSpecBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpecOrBuilder + getRelevanceFilterSpecOrBuilder() { + if (relevanceFilterSpecBuilder_ != null) { + return relevanceFilterSpecBuilder_.getMessageOrBuilder(); } else { - return searchAsYouTypeSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec + return relevanceFilterSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec .getDefaultInstance() - : searchAsYouTypeSpec_; + : relevanceFilterSpec_; } } @@ -40435,73 +52677,101 @@ public Builder clearSearchAsYouTypeSpec() { * * *
            -     * Search as you type configuration. Only supported for the
            -     * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA]
            -     * vertical.
            +     * Optional. The granular relevance filtering specification.
            +     *
            +     * If not specified, the global `relevance_threshold` will be used for all
            +     * sub-searches. If specified, this overrides the global
            +     * `relevance_threshold` to use thresholds on a per sub-search basis.
            +     *
            +     * This feature is currently supported only for custom and site search.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec relevance_filter_spec = 86 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder> - internalGetSearchAsYouTypeSpecFieldBuilder() { - if (searchAsYouTypeSpecBuilder_ == null) { - searchAsYouTypeSpecBuilder_ = + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpecOrBuilder> + internalGetRelevanceFilterSpecFieldBuilder() { + if (relevanceFilterSpecBuilder_ == null) { + relevanceFilterSpecBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder>( - getSearchAsYouTypeSpec(), getParentForChildren(), isClean()); - searchAsYouTypeSpec_ = null; + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpecOrBuilder>( + getRelevanceFilterSpec(), getParentForChildren(), isClean()); + relevanceFilterSpec_ = null; } - return searchAsYouTypeSpecBuilder_; + return relevanceFilterSpecBuilder_; } - private java.lang.Object session_ = ""; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + personalizationSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpecOrBuilder> + personalizationSpecBuilder_; /** * * *
            -     * The session resource name. Optional.
            +     * The specification for personalization.
                  *
            -     * Session allows users to do multi-turn /search API calls or coordination
            -     * between /search API calls and /answer API calls.
            +     * Notice that if both
            +     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            +     * and
            +     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +     * are set,
            +     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +     * overrides
            +     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            +     * 
            * - * Example #1 (multi-turn /search API calls): - * Call /search API with the session ID generated in the first call. - * Here, the previous search query gets considered in query - * standing. I.e., if the first query is "How did Alphabet do in 2022?" - * and the current query is "How about 2023?", the current query will - * be interpreted as "How did Alphabet do in 2023?". + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * * - * Example #2 (coordination between /search API calls and /answer API calls): - * Call /answer API with the session ID generated in the first call. - * Here, the answer generation happens in the context of the search - * results from the first search call. + * @return Whether the personalizationSpec field is set. + */ + public boolean hasPersonalizationSpec() { + return ((bitField1_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * The specification for personalization.
                  *
            -     * Multi-turn Search feature is currently at private GA stage. Please use
            -     * v1alpha or v1beta version instead before we launch this feature to public
            -     * GA. Or ask for allowlisting through Google Support team.
            +     * Notice that if both
            +     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            +     * and
            +     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +     * are set,
            +     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +     * overrides
            +     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
                  * 
            * - * string session = 41 [(.google.api.resource_reference) = { ... } + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * * - * @return The session. + * @return The personalizationSpec. */ - public java.lang.String getSession() { - java.lang.Object ref = session_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - session_ = s; - return s; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + getPersonalizationSpec() { + if (personalizationSpecBuilder_ == null) { + return personalizationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + .getDefaultInstance() + : personalizationSpec_; } else { - return (java.lang.String) ref; + return personalizationSpecBuilder_.getMessage(); } } @@ -40509,81 +52779,139 @@ public java.lang.String getSession() { * * *
            -     * The session resource name. Optional.
            +     * The specification for personalization.
                  *
            -     * Session allows users to do multi-turn /search API calls or coordination
            -     * between /search API calls and /answer API calls.
            +     * Notice that if both
            +     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            +     * and
            +     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +     * are set,
            +     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +     * overrides
            +     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            +     * 
            * - * Example #1 (multi-turn /search API calls): - * Call /search API with the session ID generated in the first call. - * Here, the previous search query gets considered in query - * standing. I.e., if the first query is "How did Alphabet do in 2022?" - * and the current query is "How about 2023?", the current query will - * be interpreted as "How did Alphabet do in 2023?". + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * + */ + public Builder setPersonalizationSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec value) { + if (personalizationSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + personalizationSpec_ = value; + } else { + personalizationSpecBuilder_.setMessage(value); + } + bitField1_ |= 0x00000020; + onChanged(); + return this; + } + + /** * - * Example #2 (coordination between /search API calls and /answer API calls): - * Call /answer API with the session ID generated in the first call. - * Here, the answer generation happens in the context of the search - * results from the first search call. * - * Multi-turn Search feature is currently at private GA stage. Please use - * v1alpha or v1beta version instead before we launch this feature to public - * GA. Or ask for allowlisting through Google Support team. - *
            + *
            +     * The specification for personalization.
                  *
            -     * string session = 41 [(.google.api.resource_reference) = { ... }
            +     * Notice that if both
            +     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            +     * and
            +     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +     * are set,
            +     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +     * overrides
            +     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            +     * 
            * - * @return The bytes for session. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * */ - public com.google.protobuf.ByteString getSessionBytes() { - java.lang.Object ref = session_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - session_ = b; - return b; + public Builder setPersonalizationSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Builder + builderForValue) { + if (personalizationSpecBuilder_ == null) { + personalizationSpec_ = builderForValue.build(); } else { - return (com.google.protobuf.ByteString) ref; + personalizationSpecBuilder_.setMessage(builderForValue.build()); } + bitField1_ |= 0x00000020; + onChanged(); + return this; } /** * * *
            -     * The session resource name. Optional.
            +     * The specification for personalization.
                  *
            -     * Session allows users to do multi-turn /search API calls or coordination
            -     * between /search API calls and /answer API calls.
            +     * Notice that if both
            +     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            +     * and
            +     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +     * are set,
            +     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +     * overrides
            +     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            +     * 
            * - * Example #1 (multi-turn /search API calls): - * Call /search API with the session ID generated in the first call. - * Here, the previous search query gets considered in query - * standing. I.e., if the first query is "How did Alphabet do in 2022?" - * and the current query is "How about 2023?", the current query will - * be interpreted as "How did Alphabet do in 2023?". + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * + */ + public Builder mergePersonalizationSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec value) { + if (personalizationSpecBuilder_ == null) { + if (((bitField1_ & 0x00000020) != 0) + && personalizationSpec_ != null + && personalizationSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + .getDefaultInstance()) { + getPersonalizationSpecBuilder().mergeFrom(value); + } else { + personalizationSpec_ = value; + } + } else { + personalizationSpecBuilder_.mergeFrom(value); + } + if (personalizationSpec_ != null) { + bitField1_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** * - * Example #2 (coordination between /search API calls and /answer API calls): - * Call /answer API with the session ID generated in the first call. - * Here, the answer generation happens in the context of the search - * results from the first search call. * - * Multi-turn Search feature is currently at private GA stage. Please use - * v1alpha or v1beta version instead before we launch this feature to public - * GA. Or ask for allowlisting through Google Support team. - *
            + *
            +     * The specification for personalization.
                  *
            -     * string session = 41 [(.google.api.resource_reference) = { ... }
            +     * Notice that if both
            +     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            +     * and
            +     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +     * are set,
            +     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +     * overrides
            +     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            +     * 
            * - * @param value The session to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * */ - public Builder setSession(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearPersonalizationSpec() { + bitField1_ = (bitField1_ & ~0x00000020); + personalizationSpec_ = null; + if (personalizationSpecBuilder_ != null) { + personalizationSpecBuilder_.dispose(); + personalizationSpecBuilder_ = null; } - session_ = value; - bitField0_ |= 0x20000000; onChanged(); return this; } @@ -40592,127 +52920,145 @@ public Builder setSession(java.lang.String value) { * * *
            -     * The session resource name. Optional.
            -     *
            -     * Session allows users to do multi-turn /search API calls or coordination
            -     * between /search API calls and /answer API calls.
            -     *
            -     * Example #1 (multi-turn /search API calls):
            -     * Call /search API with the session ID generated in the first call.
            -     * Here, the previous search query gets considered in query
            -     * standing. I.e., if the first query is "How did Alphabet do in 2022?"
            -     * and the current query is "How about 2023?", the current query will
            -     * be interpreted as "How did Alphabet do in 2023?".
            -     *
            -     * Example #2 (coordination between /search API calls and /answer API calls):
            -     * Call /answer API with the session ID generated in the first call.
            -     * Here, the answer generation happens in the context of the search
            -     * results from the first search call.
            +     * The specification for personalization.
                  *
            -     * Multi-turn Search feature is currently at private GA stage. Please use
            -     * v1alpha or v1beta version instead before we launch this feature to public
            -     * GA. Or ask for allowlisting through Google Support team.
            +     * Notice that if both
            +     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            +     * and
            +     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +     * are set,
            +     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +     * overrides
            +     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
                  * 
            * - * string session = 41 [(.google.api.resource_reference) = { ... } - * - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * */ - public Builder clearSession() { - session_ = getDefaultInstance().getSession(); - bitField0_ = (bitField0_ & ~0x20000000); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Builder + getPersonalizationSpecBuilder() { + bitField1_ |= 0x00000020; onChanged(); - return this; + return internalGetPersonalizationSpecFieldBuilder().getBuilder(); } /** * * *
            -     * The session resource name. Optional.
            +     * The specification for personalization.
                  *
            -     * Session allows users to do multi-turn /search API calls or coordination
            -     * between /search API calls and /answer API calls.
            +     * Notice that if both
            +     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            +     * and
            +     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +     * are set,
            +     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +     * overrides
            +     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            +     * 
            * - * Example #1 (multi-turn /search API calls): - * Call /search API with the session ID generated in the first call. - * Here, the previous search query gets considered in query - * standing. I.e., if the first query is "How did Alphabet do in 2022?" - * and the current query is "How about 2023?", the current query will - * be interpreted as "How did Alphabet do in 2023?". + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpecOrBuilder + getPersonalizationSpecOrBuilder() { + if (personalizationSpecBuilder_ != null) { + return personalizationSpecBuilder_.getMessageOrBuilder(); + } else { + return personalizationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + .getDefaultInstance() + : personalizationSpec_; + } + } + + /** * - * Example #2 (coordination between /search API calls and /answer API calls): - * Call /answer API with the session ID generated in the first call. - * Here, the answer generation happens in the context of the search - * results from the first search call. * - * Multi-turn Search feature is currently at private GA stage. Please use - * v1alpha or v1beta version instead before we launch this feature to public - * GA. Or ask for allowlisting through Google Support team. - *
            + *
            +     * The specification for personalization.
                  *
            -     * string session = 41 [(.google.api.resource_reference) = { ... }
            +     * Notice that if both
            +     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            +     * and
            +     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +     * are set,
            +     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            +     * overrides
            +     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            +     * 
            * - * @param value The bytes for session to set. - * @return This builder for chaining. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * */ - public Builder setSessionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpecOrBuilder> + internalGetPersonalizationSpecFieldBuilder() { + if (personalizationSpecBuilder_ == null) { + personalizationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpecOrBuilder>( + getPersonalizationSpec(), getParentForChildren(), isClean()); + personalizationSpec_ = null; } - checkByteStringIsUtf8(value); - session_ = value; - bitField0_ |= 0x20000000; - onChanged(); - return this; + return personalizationSpecBuilder_; } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec sessionSpec_; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + relevanceScoreSpec_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpecOrBuilder> - sessionSpecBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpecOrBuilder> + relevanceScoreSpecBuilder_; /** * * *
            -     * Session specification.
            -     *
            -     * Can be used only when `session` is set.
            +     * Optional. The specification for returning the relevance score.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the sessionSpec field is set. + * @return Whether the relevanceScoreSpec field is set. */ - public boolean hasSessionSpec() { - return ((bitField0_ & 0x40000000) != 0); + public boolean hasRelevanceScoreSpec() { + return ((bitField1_ & 0x00000040) != 0); } /** * * *
            -     * Session specification.
            -     *
            -     * Can be used only when `session` is set.
            +     * Optional. The specification for returning the relevance score.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The sessionSpec. + * @return The relevanceScoreSpec. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec getSessionSpec() { - if (sessionSpecBuilder_ == null) { - return sessionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.getDefaultInstance() - : sessionSpec_; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + getRelevanceScoreSpec() { + if (relevanceScoreSpecBuilder_ == null) { + return relevanceScoreSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + .getDefaultInstance() + : relevanceScoreSpec_; } else { - return sessionSpecBuilder_.getMessage(); + return relevanceScoreSpecBuilder_.getMessage(); } } @@ -40720,25 +53066,24 @@ public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec getSess * * *
            -     * Session specification.
            -     *
            -     * Can be used only when `session` is set.
            +     * Optional. The specification for returning the relevance score.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSessionSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec value) { - if (sessionSpecBuilder_ == null) { + public Builder setRelevanceScoreSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec value) { + if (relevanceScoreSpecBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - sessionSpec_ = value; + relevanceScoreSpec_ = value; } else { - sessionSpecBuilder_.setMessage(value); + relevanceScoreSpecBuilder_.setMessage(value); } - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000040; onChanged(); return this; } @@ -40747,22 +53092,22 @@ public Builder setSessionSpec( * * *
            -     * Session specification.
            -     *
            -     * Can be used only when `session` is set.
            +     * Optional. The specification for returning the relevance score.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setSessionSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder builderForValue) { - if (sessionSpecBuilder_ == null) { - sessionSpec_ = builderForValue.build(); + public Builder setRelevanceScoreSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec.Builder + builderForValue) { + if (relevanceScoreSpecBuilder_ == null) { + relevanceScoreSpec_ = builderForValue.build(); } else { - sessionSpecBuilder_.setMessage(builderForValue.build()); + relevanceScoreSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x40000000; + bitField1_ |= 0x00000040; onChanged(); return this; } @@ -40771,31 +53116,30 @@ public Builder setSessionSpec( * * *
            -     * Session specification.
            -     *
            -     * Can be used only when `session` is set.
            +     * Optional. The specification for returning the relevance score.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeSessionSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec value) { - if (sessionSpecBuilder_ == null) { - if (((bitField0_ & 0x40000000) != 0) - && sessionSpec_ != null - && sessionSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec + public Builder mergeRelevanceScoreSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec value) { + if (relevanceScoreSpecBuilder_ == null) { + if (((bitField1_ & 0x00000040) != 0) + && relevanceScoreSpec_ != null + && relevanceScoreSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec .getDefaultInstance()) { - getSessionSpecBuilder().mergeFrom(value); + getRelevanceScoreSpecBuilder().mergeFrom(value); } else { - sessionSpec_ = value; + relevanceScoreSpec_ = value; } } else { - sessionSpecBuilder_.mergeFrom(value); + relevanceScoreSpecBuilder_.mergeFrom(value); } - if (sessionSpec_ != null) { - bitField0_ |= 0x40000000; + if (relevanceScoreSpec_ != null) { + bitField1_ |= 0x00000040; onChanged(); } return this; @@ -40805,20 +53149,19 @@ public Builder mergeSessionSpec( * * *
            -     * Session specification.
            -     *
            -     * Can be used only when `session` is set.
            +     * Optional. The specification for returning the relevance score.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearSessionSpec() { - bitField0_ = (bitField0_ & ~0x40000000); - sessionSpec_ = null; - if (sessionSpecBuilder_ != null) { - sessionSpecBuilder_.dispose(); - sessionSpecBuilder_ = null; + public Builder clearRelevanceScoreSpec() { + bitField1_ = (bitField1_ & ~0x00000040); + relevanceScoreSpec_ = null; + if (relevanceScoreSpecBuilder_ != null) { + relevanceScoreSpecBuilder_.dispose(); + relevanceScoreSpecBuilder_ = null; } onChanged(); return this; @@ -40828,41 +53171,40 @@ public Builder clearSessionSpec() { * * *
            -     * Session specification.
            -     *
            -     * Can be used only when `session` is set.
            +     * Optional. The specification for returning the relevance score.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder - getSessionSpecBuilder() { - bitField0_ |= 0x40000000; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec.Builder + getRelevanceScoreSpecBuilder() { + bitField1_ |= 0x00000040; onChanged(); - return internalGetSessionSpecFieldBuilder().getBuilder(); + return internalGetRelevanceScoreSpecFieldBuilder().getBuilder(); } /** * * *
            -     * Session specification.
            -     *
            -     * Can be used only when `session` is set.
            +     * Optional. The specification for returning the relevance score.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpecOrBuilder - getSessionSpecOrBuilder() { - if (sessionSpecBuilder_ != null) { - return sessionSpecBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpecOrBuilder + getRelevanceScoreSpecOrBuilder() { + if (relevanceScoreSpecBuilder_ != null) { + return relevanceScoreSpecBuilder_.getMessageOrBuilder(); } else { - return sessionSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.getDefaultInstance() - : sessionSpec_; + return relevanceScoreSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec + .getDefaultInstance() + : relevanceScoreSpec_; } } @@ -40870,76 +53212,107 @@ public Builder clearSessionSpec() { * * *
            -     * Session specification.
            -     *
            -     * Can be used only when `session` is set.
            +     * Optional. The specification for returning the relevance score.
                  * 
            * - * .google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec session_spec = 42; + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpecOrBuilder> - internalGetSessionSpecFieldBuilder() { - if (sessionSpecBuilder_ == null) { - sessionSpecBuilder_ = + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpecOrBuilder> + internalGetRelevanceScoreSpecFieldBuilder() { + if (relevanceScoreSpecBuilder_ == null) { + relevanceScoreSpecBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpecOrBuilder>( - getSessionSpec(), getParentForChildren(), isClean()); - sessionSpec_ = null; + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpecOrBuilder>( + getRelevanceScoreSpec(), getParentForChildren(), isClean()); + relevanceScoreSpec_ = null; } - return sessionSpecBuilder_; + return relevanceScoreSpecBuilder_; } - private int relevanceThreshold_ = 0; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec searchAddonSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpecOrBuilder> + searchAddonSpecBuilder_; /** * * *
            -     * The relevance threshold of the search results.
            -     *
            -     * Default to Google defined threshold, leveraging a balance of
            -     * precision and recall to deliver both highly accurate results and
            -     * comprehensive coverage of relevant information.
            +     * Optional. SearchAddonSpec is used to disable add-ons for search as per new
            +     * repricing model.
            +     * This field is only supported for search requests.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 44; + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec search_addon_spec = 62 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The enum numeric value on the wire for relevanceThreshold. + * @return Whether the searchAddonSpec field is set. */ - @java.lang.Override - public int getRelevanceThresholdValue() { - return relevanceThreshold_; + public boolean hasSearchAddonSpec() { + return ((bitField1_ & 0x00000080) != 0); } /** * * *
            -     * The relevance threshold of the search results.
            -     *
            -     * Default to Google defined threshold, leveraging a balance of
            -     * precision and recall to deliver both highly accurate results and
            -     * comprehensive coverage of relevant information.
            +     * Optional. SearchAddonSpec is used to disable add-ons for search as per new
            +     * repricing model.
            +     * This field is only supported for search requests.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 44; + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec search_addon_spec = 62 [(.google.api.field_behavior) = OPTIONAL]; * * - * @param value The enum numeric value on the wire for relevanceThreshold to set. - * @return This builder for chaining. + * @return The searchAddonSpec. */ - public Builder setRelevanceThresholdValue(int value) { - relevanceThreshold_ = value; - bitField0_ |= 0x80000000; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec + getSearchAddonSpec() { + if (searchAddonSpecBuilder_ == null) { + return searchAddonSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec + .getDefaultInstance() + : searchAddonSpec_; + } else { + return searchAddonSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. SearchAddonSpec is used to disable add-ons for search as per new
            +     * repricing model.
            +     * This field is only supported for search requests.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec search_addon_spec = 62 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchAddonSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec value) { + if (searchAddonSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchAddonSpec_ = value; + } else { + searchAddonSpecBuilder_.setMessage(value); + } + bitField1_ |= 0x00000080; onChanged(); return this; } @@ -40948,55 +53321,83 @@ public Builder setRelevanceThresholdValue(int value) { * * *
            -     * The relevance threshold of the search results.
            -     *
            -     * Default to Google defined threshold, leveraging a balance of
            -     * precision and recall to deliver both highly accurate results and
            -     * comprehensive coverage of relevant information.
            +     * Optional. SearchAddonSpec is used to disable add-ons for search as per new
            +     * repricing model.
            +     * This field is only supported for search requests.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 44; + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec search_addon_spec = 62 [(.google.api.field_behavior) = OPTIONAL]; * - * - * @return The relevanceThreshold. */ - @java.lang.Override - public com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold - getRelevanceThreshold() { - com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold result = - com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold.forNumber( - relevanceThreshold_); - return result == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold.UNRECOGNIZED - : result; + public Builder setSearchAddonSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec.Builder + builderForValue) { + if (searchAddonSpecBuilder_ == null) { + searchAddonSpec_ = builderForValue.build(); + } else { + searchAddonSpecBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000080; + onChanged(); + return this; } /** * * *
            -     * The relevance threshold of the search results.
            -     *
            -     * Default to Google defined threshold, leveraging a balance of
            -     * precision and recall to deliver both highly accurate results and
            -     * comprehensive coverage of relevant information.
            +     * Optional. SearchAddonSpec is used to disable add-ons for search as per new
            +     * repricing model.
            +     * This field is only supported for search requests.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 44; + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec search_addon_spec = 62 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public Builder mergeSearchAddonSpec( + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec value) { + if (searchAddonSpecBuilder_ == null) { + if (((bitField1_ & 0x00000080) != 0) + && searchAddonSpec_ != null + && searchAddonSpec_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec + .getDefaultInstance()) { + getSearchAddonSpecBuilder().mergeFrom(value); + } else { + searchAddonSpec_ = value; + } + } else { + searchAddonSpecBuilder_.mergeFrom(value); + } + if (searchAddonSpec_ != null) { + bitField1_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** * - * @param value The relevanceThreshold to set. - * @return This builder for chaining. + * + *
            +     * Optional. SearchAddonSpec is used to disable add-ons for search as per new
            +     * repricing model.
            +     * This field is only supported for search requests.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec search_addon_spec = 62 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setRelevanceThreshold( - com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearSearchAddonSpec() { + bitField1_ = (bitField1_ & ~0x00000080); + searchAddonSpec_ = null; + if (searchAddonSpecBuilder_ != null) { + searchAddonSpecBuilder_.dispose(); + searchAddonSpecBuilder_ = null; } - bitField0_ |= 0x80000000; - relevanceThreshold_ = value.getNumber(); onChanged(); return this; } @@ -41005,91 +53406,124 @@ public Builder setRelevanceThreshold( * * *
            -     * The relevance threshold of the search results.
            +     * Optional. SearchAddonSpec is used to disable add-ons for search as per new
            +     * repricing model.
            +     * This field is only supported for search requests.
            +     * 
            * - * Default to Google defined threshold, leveraging a balance of - * precision and recall to deliver both highly accurate results and - * comprehensive coverage of relevant information. + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec search_addon_spec = 62 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec.Builder + getSearchAddonSpecBuilder() { + bitField1_ |= 0x00000080; + onChanged(); + return internalGetSearchAddonSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. SearchAddonSpec is used to disable add-ons for search as per new
            +     * repricing model.
            +     * This field is only supported for search requests.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold relevance_threshold = 44; + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec search_addon_spec = 62 [(.google.api.field_behavior) = OPTIONAL]; * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpecOrBuilder + getSearchAddonSpecOrBuilder() { + if (searchAddonSpecBuilder_ != null) { + return searchAddonSpecBuilder_.getMessageOrBuilder(); + } else { + return searchAddonSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec + .getDefaultInstance() + : searchAddonSpec_; + } + } + + /** * - * @return This builder for chaining. + * + *
            +     * Optional. SearchAddonSpec is used to disable add-ons for search as per new
            +     * repricing model.
            +     * This field is only supported for search requests.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec search_addon_spec = 62 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder clearRelevanceThreshold() { - bitField0_ = (bitField0_ & ~0x80000000); - relevanceThreshold_ = 0; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpecOrBuilder> + internalGetSearchAddonSpecFieldBuilder() { + if (searchAddonSpecBuilder_ == null) { + searchAddonSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpecOrBuilder>( + getSearchAddonSpec(), getParentForChildren(), isClean()); + searchAddonSpec_ = null; + } + return searchAddonSpecBuilder_; } - private com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec - personalizationSpec_; + private com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + customRankingParams_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpecOrBuilder> - personalizationSpecBuilder_; + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams, + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParamsOrBuilder> + customRankingParamsBuilder_; /** * * *
            -     * The specification for personalization.
            -     *
            -     * Notice that if both
            -     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            -     * and
            -     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -     * are set,
            -     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -     * overrides
            -     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            +     * Optional. Optional configuration for the Custom Ranking feature.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * .google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams custom_ranking_params = 64 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the personalizationSpec field is set. + * @return Whether the customRankingParams field is set. */ - public boolean hasPersonalizationSpec() { - return ((bitField1_ & 0x00000001) != 0); + public boolean hasCustomRankingParams() { + return ((bitField1_ & 0x00000100) != 0); } /** * * *
            -     * The specification for personalization.
            -     *
            -     * Notice that if both
            -     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            -     * and
            -     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -     * are set,
            -     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -     * overrides
            -     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            +     * Optional. Optional configuration for the Custom Ranking feature.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * .google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams custom_ranking_params = 64 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The personalizationSpec. + * @return The customRankingParams. */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec - getPersonalizationSpec() { - if (personalizationSpecBuilder_ == null) { - return personalizationSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + getCustomRankingParams() { + if (customRankingParamsBuilder_ == null) { + return customRankingParams_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams .getDefaultInstance() - : personalizationSpec_; + : customRankingParams_; } else { - return personalizationSpecBuilder_.getMessage(); + return customRankingParamsBuilder_.getMessage(); } } @@ -41097,33 +53531,24 @@ public boolean hasPersonalizationSpec() { * * *
            -     * The specification for personalization.
            -     *
            -     * Notice that if both
            -     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            -     * and
            -     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -     * are set,
            -     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -     * overrides
            -     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            +     * Optional. Optional configuration for the Custom Ranking feature.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * .google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams custom_ranking_params = 64 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setPersonalizationSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec value) { - if (personalizationSpecBuilder_ == null) { + public Builder setCustomRankingParams( + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams value) { + if (customRankingParamsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - personalizationSpec_ = value; + customRankingParams_ = value; } else { - personalizationSpecBuilder_.setMessage(value); + customRankingParamsBuilder_.setMessage(value); } - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000100; onChanged(); return this; } @@ -41132,31 +53557,22 @@ public Builder setPersonalizationSpec( * * *
            -     * The specification for personalization.
            -     *
            -     * Notice that if both
            -     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            -     * and
            -     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -     * are set,
            -     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -     * overrides
            -     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            +     * Optional. Optional configuration for the Custom Ranking feature.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * .google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams custom_ranking_params = 64 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setPersonalizationSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Builder + public Builder setCustomRankingParams( + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams.Builder builderForValue) { - if (personalizationSpecBuilder_ == null) { - personalizationSpec_ = builderForValue.build(); + if (customRankingParamsBuilder_ == null) { + customRankingParams_ = builderForValue.build(); } else { - personalizationSpecBuilder_.setMessage(builderForValue.build()); + customRankingParamsBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000001; + bitField1_ |= 0x00000100; onChanged(); return this; } @@ -41165,39 +53581,30 @@ public Builder setPersonalizationSpec( * * *
            -     * The specification for personalization.
            -     *
            -     * Notice that if both
            -     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            -     * and
            -     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -     * are set,
            -     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -     * overrides
            -     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            +     * Optional. Optional configuration for the Custom Ranking feature.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * .google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams custom_ranking_params = 64 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergePersonalizationSpec( - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec value) { - if (personalizationSpecBuilder_ == null) { - if (((bitField1_ & 0x00000001) != 0) - && personalizationSpec_ != null - && personalizationSpec_ - != com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + public Builder mergeCustomRankingParams( + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams value) { + if (customRankingParamsBuilder_ == null) { + if (((bitField1_ & 0x00000100) != 0) + && customRankingParams_ != null + && customRankingParams_ + != com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams .getDefaultInstance()) { - getPersonalizationSpecBuilder().mergeFrom(value); + getCustomRankingParamsBuilder().mergeFrom(value); } else { - personalizationSpec_ = value; + customRankingParams_ = value; } } else { - personalizationSpecBuilder_.mergeFrom(value); + customRankingParamsBuilder_.mergeFrom(value); } - if (personalizationSpec_ != null) { - bitField1_ |= 0x00000001; + if (customRankingParams_ != null) { + bitField1_ |= 0x00000100; onChanged(); } return this; @@ -41207,28 +53614,19 @@ public Builder mergePersonalizationSpec( * * *
            -     * The specification for personalization.
            -     *
            -     * Notice that if both
            -     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            -     * and
            -     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -     * are set,
            -     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -     * overrides
            -     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            +     * Optional. Optional configuration for the Custom Ranking feature.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * .google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams custom_ranking_params = 64 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearPersonalizationSpec() { - bitField1_ = (bitField1_ & ~0x00000001); - personalizationSpec_ = null; - if (personalizationSpecBuilder_ != null) { - personalizationSpecBuilder_.dispose(); - personalizationSpecBuilder_ = null; + public Builder clearCustomRankingParams() { + bitField1_ = (bitField1_ & ~0x00000100); + customRankingParams_ = null; + if (customRankingParamsBuilder_ != null) { + customRankingParamsBuilder_.dispose(); + customRankingParamsBuilder_ = null; } onChanged(); return this; @@ -41238,58 +53636,40 @@ public Builder clearPersonalizationSpec() { * * *
            -     * The specification for personalization.
            -     *
            -     * Notice that if both
            -     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            -     * and
            -     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -     * are set,
            -     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -     * overrides
            -     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            +     * Optional. Optional configuration for the Custom Ranking feature.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * .google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams custom_ranking_params = 64 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Builder - getPersonalizationSpecBuilder() { - bitField1_ |= 0x00000001; + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams.Builder + getCustomRankingParamsBuilder() { + bitField1_ |= 0x00000100; onChanged(); - return internalGetPersonalizationSpecFieldBuilder().getBuilder(); + return internalGetCustomRankingParamsFieldBuilder().getBuilder(); } /** * * *
            -     * The specification for personalization.
            -     *
            -     * Notice that if both
            -     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            -     * and
            -     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -     * are set,
            -     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -     * overrides
            -     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            +     * Optional. Optional configuration for the Custom Ranking feature.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * .google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams custom_ranking_params = 64 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpecOrBuilder - getPersonalizationSpecOrBuilder() { - if (personalizationSpecBuilder_ != null) { - return personalizationSpecBuilder_.getMessageOrBuilder(); + public com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParamsOrBuilder + getCustomRankingParamsOrBuilder() { + if (customRankingParamsBuilder_ != null) { + return customRankingParamsBuilder_.getMessageOrBuilder(); } else { - return personalizationSpec_ == null - ? com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec + return customRankingParams_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams .getDefaultInstance() - : personalizationSpec_; + : customRankingParams_; } } @@ -41297,37 +53677,164 @@ public Builder clearPersonalizationSpec() { * * *
            -     * The specification for personalization.
            -     *
            -     * Notice that if both
            -     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]
            -     * and
            -     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -     * are set,
            -     * [SearchRequest.personalization_spec][google.cloud.discoveryengine.v1beta.SearchRequest.personalization_spec]
            -     * overrides
            -     * [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec].
            +     * Optional. Optional configuration for the Custom Ranking feature.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalization_spec = 46; + * .google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams custom_ranking_params = 64 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpecOrBuilder> - internalGetPersonalizationSpecFieldBuilder() { - if (personalizationSpecBuilder_ == null) { - personalizationSpecBuilder_ = + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams, + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParamsOrBuilder> + internalGetCustomRankingParamsFieldBuilder() { + if (customRankingParamsBuilder_ == null) { + customRankingParamsBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec, - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Builder, - com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpecOrBuilder>( - getPersonalizationSpec(), getParentForChildren(), isClean()); - personalizationSpec_ = null; + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams, + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParamsOrBuilder>( + getCustomRankingParams(), getParentForChildren(), isClean()); + customRankingParams_ = null; } - return personalizationSpecBuilder_; + return customRankingParamsBuilder_; + } + + private java.lang.Object entity_ = ""; + + /** + * + * + *
            +     * Optional. The entity for customers that may run multiple different
            +     * entities, domains, sites or regions, for example, "Google US", "Google
            +     * Ads", "Waymo", "google.com", "youtube.com", etc. If this is set, it should
            +     * be exactly matched with
            +     * [UserEvent.entity][google.cloud.discoveryengine.v1beta.UserEvent.entity] to
            +     * get search results boosted by entity.
            +     * 
            + * + * string entity = 66 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entity. + */ + public java.lang.String getEntity() { + java.lang.Object ref = entity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The entity for customers that may run multiple different
            +     * entities, domains, sites or regions, for example, "Google US", "Google
            +     * Ads", "Waymo", "google.com", "youtube.com", etc. If this is set, it should
            +     * be exactly matched with
            +     * [UserEvent.entity][google.cloud.discoveryengine.v1beta.UserEvent.entity] to
            +     * get search results boosted by entity.
            +     * 
            + * + * string entity = 66 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entity. + */ + public com.google.protobuf.ByteString getEntityBytes() { + java.lang.Object ref = entity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The entity for customers that may run multiple different
            +     * entities, domains, sites or regions, for example, "Google US", "Google
            +     * Ads", "Waymo", "google.com", "youtube.com", etc. If this is set, it should
            +     * be exactly matched with
            +     * [UserEvent.entity][google.cloud.discoveryengine.v1beta.UserEvent.entity] to
            +     * get search results boosted by entity.
            +     * 
            + * + * string entity = 66 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The entity to set. + * @return This builder for chaining. + */ + public Builder setEntity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entity_ = value; + bitField1_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The entity for customers that may run multiple different
            +     * entities, domains, sites or regions, for example, "Google US", "Google
            +     * Ads", "Waymo", "google.com", "youtube.com", etc. If this is set, it should
            +     * be exactly matched with
            +     * [UserEvent.entity][google.cloud.discoveryengine.v1beta.UserEvent.entity] to
            +     * get search results boosted by entity.
            +     * 
            + * + * string entity = 66 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEntity() { + entity_ = getDefaultInstance().getEntity(); + bitField1_ = (bitField1_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The entity for customers that may run multiple different
            +     * entities, domains, sites or regions, for example, "Google US", "Google
            +     * Ads", "Waymo", "google.com", "youtube.com", etc. If this is set, it should
            +     * be exactly matched with
            +     * [UserEvent.entity][google.cloud.discoveryengine.v1beta.UserEvent.entity] to
            +     * get search results boosted by entity.
            +     * 
            + * + * string entity = 66 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for entity to set. + * @return This builder for chaining. + */ + public Builder setEntityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entity_ = value; + bitField1_ |= 0x00000200; + onChanged(); + return this; } // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchRequest) diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequestOrBuilder.java index 26f2ae05760b..c1cb864da016 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchRequestOrBuilder.java @@ -126,6 +126,124 @@ public interface SearchRequestOrBuilder */ com.google.protobuf.ByteString getQueryBytes(); + /** + * + * + *
            +   * Optional. The categories associated with a category page. Must be set for
            +   * category navigation queries to achieve good search quality. The format
            +   * should be the same as
            +   * [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category].
            +   * This field is the equivalent of the query for browse (navigation) queries.
            +   * It's used by the browse model when the query is empty.
            +   *
            +   * If the field is empty, it will not be used by the browse model.
            +   * If the field contains more than one element, only the first element will
            +   * be used.
            +   *
            +   * To represent full path of a category, use '>' character to separate
            +   * different hierarchies. If '>' is part of the category name, replace it with
            +   * other character(s).
            +   * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
            +   * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
            +   * > Founders Edition`
            +   * 
            + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the pageCategories. + */ + java.util.List getPageCategoriesList(); + + /** + * + * + *
            +   * Optional. The categories associated with a category page. Must be set for
            +   * category navigation queries to achieve good search quality. The format
            +   * should be the same as
            +   * [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category].
            +   * This field is the equivalent of the query for browse (navigation) queries.
            +   * It's used by the browse model when the query is empty.
            +   *
            +   * If the field is empty, it will not be used by the browse model.
            +   * If the field contains more than one element, only the first element will
            +   * be used.
            +   *
            +   * To represent full path of a category, use '>' character to separate
            +   * different hierarchies. If '>' is part of the category name, replace it with
            +   * other character(s).
            +   * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
            +   * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
            +   * > Founders Edition`
            +   * 
            + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of pageCategories. + */ + int getPageCategoriesCount(); + + /** + * + * + *
            +   * Optional. The categories associated with a category page. Must be set for
            +   * category navigation queries to achieve good search quality. The format
            +   * should be the same as
            +   * [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category].
            +   * This field is the equivalent of the query for browse (navigation) queries.
            +   * It's used by the browse model when the query is empty.
            +   *
            +   * If the field is empty, it will not be used by the browse model.
            +   * If the field contains more than one element, only the first element will
            +   * be used.
            +   *
            +   * To represent full path of a category, use '>' character to separate
            +   * different hierarchies. If '>' is part of the category name, replace it with
            +   * other character(s).
            +   * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
            +   * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
            +   * > Founders Edition`
            +   * 
            + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The pageCategories at the given index. + */ + java.lang.String getPageCategories(int index); + + /** + * + * + *
            +   * Optional. The categories associated with a category page. Must be set for
            +   * category navigation queries to achieve good search quality. The format
            +   * should be the same as
            +   * [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category].
            +   * This field is the equivalent of the query for browse (navigation) queries.
            +   * It's used by the browse model when the query is empty.
            +   *
            +   * If the field is empty, it will not be used by the browse model.
            +   * If the field contains more than one element, only the first element will
            +   * be used.
            +   *
            +   * To represent full path of a category, use '>' character to separate
            +   * different hierarchies. If '>' is part of the category name, replace it with
            +   * other character(s).
            +   * For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX >
            +   * 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090
            +   * > Founders Edition`
            +   * 
            + * + * repeated string page_categories = 63 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the pageCategories at the given index. + */ + com.google.protobuf.ByteString getPageCategoriesBytes(int index); + /** * * @@ -237,6 +355,8 @@ public interface SearchRequestOrBuilder * is unset. * * If this field is negative, an `INVALID_ARGUMENT` is returned. + * + * A large offset may be capped to a reasonable threshold. *
            * * int32 offset = 6; @@ -264,10 +384,13 @@ public interface SearchRequestOrBuilder * * *
            -   * 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
            -   * use the specs at the top level.
            +   * Specifications that define the specific
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +   * along with configurations for those data stores. This is only considered
            +   * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +   * data stores. For engines with a single data store, the specs directly under
            +   * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +   * be used.
                * 
            * * @@ -281,10 +404,13 @@ public interface SearchRequestOrBuilder * * *
            -   * 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
            -   * use the specs at the top level.
            +   * Specifications that define the specific
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +   * along with configurations for those data stores. This is only considered
            +   * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +   * data stores. For engines with a single data store, the specs directly under
            +   * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +   * be used.
                * 
            * * @@ -297,10 +423,13 @@ public interface SearchRequestOrBuilder * * *
            -   * 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
            -   * use the specs at the top level.
            +   * Specifications that define the specific
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +   * along with configurations for those data stores. This is only considered
            +   * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +   * data stores. For engines with a single data store, the specs directly under
            +   * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +   * be used.
                * 
            * * @@ -313,10 +442,13 @@ public interface SearchRequestOrBuilder * * *
            -   * 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
            -   * use the specs at the top level.
            +   * Specifications that define the specific
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +   * along with configurations for those data stores. This is only considered
            +   * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +   * data stores. For engines with a single data store, the specs directly under
            +   * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +   * be used.
                * 
            * * @@ -331,10 +463,13 @@ public interface SearchRequestOrBuilder * * *
            -   * 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
            -   * use the specs at the top level.
            +   * Specifications that define the specific
            +   * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched,
            +   * along with configurations for those data stores. This is only considered
            +   * for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +   * data stores. For engines with a single data store, the specs directly under
            +   * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should
            +   * be used.
                * 
            * * @@ -344,6 +479,22 @@ public interface SearchRequestOrBuilder com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder getDataStoreSpecsOrBuilder(int index); + /** + * + * + *
            +   * Optional. The maximum number of results to retrieve from each data store.
            +   * If not specified, it will use the
            +   * [SearchRequest.DataStoreSpec.num_results][google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.num_results]
            +   * if provided, otherwise there is no limit.
            +   * 
            + * + * int32 num_results_per_data_store = 65 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The numResultsPerDataStore. + */ + int getNumResultsPerDataStore(); + /** * * @@ -499,7 +650,7 @@ public interface SearchRequestOrBuilder * *
                * Information about the end user.
            -   * Highly recommended for analytics.
            +   * Highly recommended for analytics and personalization.
                * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
                * is used to deduce `device_type` for analytics.
                * 
            @@ -515,7 +666,7 @@ public interface SearchRequestOrBuilder * *
                * Information about the end user.
            -   * Highly recommended for analytics.
            +   * Highly recommended for analytics and personalization.
                * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
                * is used to deduce `device_type` for analytics.
                * 
            @@ -531,7 +682,7 @@ public interface SearchRequestOrBuilder * *
                * Information about the end user.
            -   * Highly recommended for analytics.
            +   * Highly recommended for analytics and personalization.
                * [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent]
                * is used to deduce `device_type` for analytics.
                * 
            @@ -959,10 +1110,10 @@ com.google.protobuf.Value getParamsOrDefault( * * *
            -   * A unique identifier for tracking visitors. For example, this could be
            -   * implemented with an HTTP cookie, which should be able to uniquely identify
            -   * a visitor on a single device. This unique identifier should not change if
            -   * the visitor logs in or out of the website.
            +   * Optional. A unique identifier for tracking visitors. For example, this
            +   * could be implemented with an HTTP cookie, which should be able to uniquely
            +   * identify a visitor on a single device. This unique identifier should not
            +   * change if the visitor logs in or out of the website.
                *
                * This field should NOT have a fixed value such as `unknown_visitor`.
                *
            @@ -975,7 +1126,7 @@ com.google.protobuf.Value getParamsOrDefault(
                * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
                * 
            * - * string user_pseudo_id = 15; + * string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The userPseudoId. */ @@ -985,10 +1136,10 @@ com.google.protobuf.Value getParamsOrDefault( * * *
            -   * A unique identifier for tracking visitors. For example, this could be
            -   * implemented with an HTTP cookie, which should be able to uniquely identify
            -   * a visitor on a single device. This unique identifier should not change if
            -   * the visitor logs in or out of the website.
            +   * Optional. A unique identifier for tracking visitors. For example, this
            +   * could be implemented with an HTTP cookie, which should be able to uniquely
            +   * identify a visitor on a single device. This unique identifier should not
            +   * change if the visitor logs in or out of the website.
                *
                * This field should NOT have a fixed value such as `unknown_visitor`.
                *
            @@ -1001,7 +1152,7 @@ com.google.protobuf.Value getParamsOrDefault(
                * characters. Otherwise, an  `INVALID_ARGUMENT`  error is returned.
                * 
            * - * string user_pseudo_id = 15; + * string user_pseudo_id = 15 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for userPseudoId. */ @@ -1123,8 +1274,8 @@ com.google.protobuf.Value getParamsOrDefault( * * *
            -   * The ranking expression controls the customized ranking on retrieval
            -   * documents. This overrides
            +   * Optional. The ranking expression controls the customized ranking on
            +   * retrieval documents. This overrides
                * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression].
                * The syntax and supported features depend on the
                * `ranking_expression_backend` value. If `ranking_expression_backend` is not
            @@ -1213,9 +1364,18 @@ com.google.protobuf.Value getParamsOrDefault(
                * Google model to determine the keyword-based overlap between the query and
                * the document.
                * * `base_rank`: the default rank of the result
            +   * * `media_actor_match`: whether the media actor matches the query
            +   * * `media_director_match`: whether the media director matches the query
            +   * * `media_genre_match`: whether the media genre matches the query
            +   * * `media_language_match`: whether the media language matches the query
            +   * * `media_title_match`: whether the media title matches the query
            +   * * `media_prefix_similarity_rank`: prefix similarity rank for media
            +   * results
            +   * * `media_semantic_similarity_rank`: semantic similarity rank for media
            +   * results
                * 
            * - * string ranking_expression = 26; + * string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL]; * * @return The rankingExpression. */ @@ -1225,8 +1385,8 @@ com.google.protobuf.Value getParamsOrDefault( * * *
            -   * The ranking expression controls the customized ranking on retrieval
            -   * documents. This overrides
            +   * Optional. The ranking expression controls the customized ranking on
            +   * retrieval documents. This overrides
                * [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression].
                * The syntax and supported features depend on the
                * `ranking_expression_backend` value. If `ranking_expression_backend` is not
            @@ -1315,9 +1475,18 @@ com.google.protobuf.Value getParamsOrDefault(
                * Google model to determine the keyword-based overlap between the query and
                * the document.
                * * `base_rank`: the default rank of the result
            +   * * `media_actor_match`: whether the media actor matches the query
            +   * * `media_director_match`: whether the media director matches the query
            +   * * `media_genre_match`: whether the media genre matches the query
            +   * * `media_language_match`: whether the media language matches the query
            +   * * `media_title_match`: whether the media title matches the query
            +   * * `media_prefix_similarity_rank`: prefix similarity rank for media
            +   * results
            +   * * `media_semantic_similarity_rank`: semantic similarity rank for media
            +   * results
                * 
            * - * string ranking_expression = 26; + * string ranking_expression = 26 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for rankingExpression. */ @@ -1327,7 +1496,7 @@ com.google.protobuf.Value getParamsOrDefault( * * *
            -   * The backend to use for the ranking expression evaluation.
            +   * Optional. The backend to use for the ranking expression evaluation.
                * 
            * * @@ -1342,7 +1511,7 @@ com.google.protobuf.Value getParamsOrDefault( * * *
            -   * The backend to use for the ranking expression evaluation.
            +   * Optional. The backend to use for the ranking expression evaluation.
                * 
            * * @@ -1515,12 +1684,16 @@ java.lang.String getUserLabelsOrDefault( * * *
            +   * Optional. Config for natural language query understanding capabilities,
            +   * such as extracting structured field filters from the query. Refer to [this
            +   * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
            +   * for more information.
                * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
                * natural language query understanding will be done.
                * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; * * * @return Whether the naturalLanguageQueryUnderstandingSpec field is set. @@ -1531,12 +1704,16 @@ java.lang.String getUserLabelsOrDefault( * * *
            +   * Optional. Config for natural language query understanding capabilities,
            +   * such as extracting structured field filters from the query. Refer to [this
            +   * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
            +   * for more information.
                * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
                * natural language query understanding will be done.
                * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The naturalLanguageQueryUnderstandingSpec. @@ -1548,12 +1725,16 @@ java.lang.String getUserLabelsOrDefault( * * *
            +   * Optional. Config for natural language query understanding capabilities,
            +   * such as extracting structured field filters from the query. Refer to [this
            +   * documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries)
            +   * for more information.
                * If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional
                * natural language query understanding will be done.
                * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28; + * .google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec natural_language_query_understanding_spec = 28 [(.google.api.field_behavior) = OPTIONAL]; * */ com.google.cloud.discoveryengine.v1beta.SearchRequest @@ -1611,6 +1792,162 @@ java.lang.String getUserLabelsOrDefault( com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpecOrBuilder getSearchAsYouTypeSpecOrBuilder(); + /** + * + * + *
            +   * Optional. Config for display feature, like match highlighting on search
            +   * results.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the displaySpec field is set. + */ + boolean hasDisplaySpec(); + + /** + * + * + *
            +   * Optional. Config for display feature, like match highlighting on search
            +   * results.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The displaySpec. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec getDisplaySpec(); + + /** + * + * + *
            +   * Optional. Config for display feature, like match highlighting on search
            +   * results.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpec display_spec = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.DisplaySpecOrBuilder + getDisplaySpecOrBuilder(); + + /** + * + * + *
            +   * Optional. Crowding specifications for improving result diversity.
            +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +   * each unique combination of the `field` values, and max_count will be the
            +   * maximum value of `max_count` across all CrowdingSpecs.
            +   * For example, if the first CrowdingSpec has `field` = "color" and
            +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +   * `max_count` = 2, then after 3 documents that share the same color AND size
            +   * have been returned, subsequent ones should be
            +   * removed or demoted.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCrowdingSpecsList(); + + /** + * + * + *
            +   * Optional. Crowding specifications for improving result diversity.
            +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +   * each unique combination of the `field` values, and max_count will be the
            +   * maximum value of `max_count` across all CrowdingSpecs.
            +   * For example, if the first CrowdingSpec has `field` = "color" and
            +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +   * `max_count` = 2, then after 3 documents that share the same color AND size
            +   * have been returned, subsequent ones should be
            +   * removed or demoted.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec getCrowdingSpecs(int index); + + /** + * + * + *
            +   * Optional. Crowding specifications for improving result diversity.
            +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +   * each unique combination of the `field` values, and max_count will be the
            +   * maximum value of `max_count` across all CrowdingSpecs.
            +   * For example, if the first CrowdingSpec has `field` = "color" and
            +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +   * `max_count` = 2, then after 3 documents that share the same color AND size
            +   * have been returned, subsequent ones should be
            +   * removed or demoted.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCrowdingSpecsCount(); + + /** + * + * + *
            +   * Optional. Crowding specifications for improving result diversity.
            +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +   * each unique combination of the `field` values, and max_count will be the
            +   * maximum value of `max_count` across all CrowdingSpecs.
            +   * For example, if the first CrowdingSpec has `field` = "color" and
            +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +   * `max_count` = 2, then after 3 documents that share the same color AND size
            +   * have been returned, subsequent ones should be
            +   * removed or demoted.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpecOrBuilder> + getCrowdingSpecsOrBuilderList(); + + /** + * + * + *
            +   * Optional. Crowding specifications for improving result diversity.
            +   * If multiple CrowdingSpecs are specified, crowding will be evaluated on
            +   * each unique combination of the `field` values, and max_count will be the
            +   * maximum value of `max_count` across all CrowdingSpecs.
            +   * For example, if the first CrowdingSpec has `field` = "color" and
            +   * `max_count` = 3, and the second CrowdingSpec has `field` = "size" and
            +   * `max_count` = 2, then after 3 documents that share the same color AND size
            +   * have been returned, subsequent ones should be
            +   * removed or demoted.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec crowding_specs = 40 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpecOrBuilder + getCrowdingSpecsOrBuilder(int index); + /** * * @@ -1631,10 +1968,6 @@ java.lang.String getUserLabelsOrDefault( * Call /answer API with the session ID generated in the first call. * Here, the answer generation happens in the context of the search * results from the first search call. - * - * Multi-turn Search feature is currently at private GA stage. Please use - * v1alpha or v1beta version instead before we launch this feature to public - * GA. Or ask for allowlisting through Google Support team. *
            * * string session = 41 [(.google.api.resource_reference) = { ... } @@ -1663,10 +1996,6 @@ java.lang.String getUserLabelsOrDefault( * Call /answer API with the session ID generated in the first call. * Here, the answer generation happens in the context of the search * results from the first search call. - * - * Multi-turn Search feature is currently at private GA stage. Please use - * v1alpha or v1beta version instead before we launch this feature to public - * GA. Or ask for allowlisting through Google Support team. *
            * * string session = 41 [(.google.api.resource_reference) = { ... } @@ -1723,11 +2052,16 @@ java.lang.String getUserLabelsOrDefault( * * *
            -   * The relevance threshold of the search results.
            +   * The global relevance threshold of the search results.
                *
            -   * Default to Google defined threshold, leveraging a balance of
            +   * Defaults to Google defined threshold, leveraging a balance of
                * precision and recall to deliver both highly accurate results and
                * comprehensive coverage of relevant information.
            +   *
            +   * If more granular relevance filtering is required, use the
            +   * `relevance_filter_spec` instead.
            +   *
            +   * This feature is not supported for healthcare search.
                * 
            * * @@ -1742,11 +2076,16 @@ java.lang.String getUserLabelsOrDefault( * * *
            -   * The relevance threshold of the search results.
            +   * The global relevance threshold of the search results.
                *
            -   * Default to Google defined threshold, leveraging a balance of
            +   * Defaults to Google defined threshold, leveraging a balance of
                * precision and recall to deliver both highly accurate results and
                * comprehensive coverage of relevant information.
            +   *
            +   * If more granular relevance filtering is required, use the
            +   * `relevance_filter_spec` instead.
            +   *
            +   * This feature is not supported for healthcare search.
                * 
            * * @@ -1757,6 +2096,69 @@ java.lang.String getUserLabelsOrDefault( */ com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold getRelevanceThreshold(); + /** + * + * + *
            +   * Optional. The granular relevance filtering specification.
            +   *
            +   * If not specified, the global `relevance_threshold` will be used for all
            +   * sub-searches. If specified, this overrides the global
            +   * `relevance_threshold` to use thresholds on a per sub-search basis.
            +   *
            +   * This feature is currently supported only for custom and site search.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec relevance_filter_spec = 86 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the relevanceFilterSpec field is set. + */ + boolean hasRelevanceFilterSpec(); + + /** + * + * + *
            +   * Optional. The granular relevance filtering specification.
            +   *
            +   * If not specified, the global `relevance_threshold` will be used for all
            +   * sub-searches. If specified, this overrides the global
            +   * `relevance_threshold` to use thresholds on a per sub-search basis.
            +   *
            +   * This feature is currently supported only for custom and site search.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec relevance_filter_spec = 86 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The relevanceFilterSpec. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec + getRelevanceFilterSpec(); + + /** + * + * + *
            +   * Optional. The granular relevance filtering specification.
            +   *
            +   * If not specified, the global `relevance_threshold` will be used for all
            +   * sub-searches. If specified, this overrides the global
            +   * `relevance_threshold` to use thresholds on a per sub-search basis.
            +   *
            +   * This feature is currently supported only for custom and site search.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpec relevance_filter_spec = 86 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceFilterSpecOrBuilder + getRelevanceFilterSpecOrBuilder(); + /** * * @@ -1828,4 +2230,179 @@ java.lang.String getUserLabelsOrDefault( */ com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpecOrBuilder getPersonalizationSpecOrBuilder(); + + /** + * + * + *
            +   * Optional. The specification for returning the relevance score.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the relevanceScoreSpec field is set. + */ + boolean hasRelevanceScoreSpec(); + + /** + * + * + *
            +   * Optional. The specification for returning the relevance score.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The relevanceScoreSpec. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec getRelevanceScoreSpec(); + + /** + * + * + *
            +   * Optional. The specification for returning the relevance score.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpec relevance_score_spec = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpecOrBuilder + getRelevanceScoreSpecOrBuilder(); + + /** + * + * + *
            +   * Optional. SearchAddonSpec is used to disable add-ons for search as per new
            +   * repricing model.
            +   * This field is only supported for search requests.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec search_addon_spec = 62 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchAddonSpec field is set. + */ + boolean hasSearchAddonSpec(); + + /** + * + * + *
            +   * Optional. SearchAddonSpec is used to disable add-ons for search as per new
            +   * repricing model.
            +   * This field is only supported for search requests.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec search_addon_spec = 62 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchAddonSpec. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec getSearchAddonSpec(); + + /** + * + * + *
            +   * Optional. SearchAddonSpec is used to disable add-ons for search as per new
            +   * repricing model.
            +   * This field is only supported for search requests.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpec search_addon_spec = 62 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAddonSpecOrBuilder + getSearchAddonSpecOrBuilder(); + + /** + * + * + *
            +   * Optional. Optional configuration for the Custom Ranking feature.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams custom_ranking_params = 64 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customRankingParams field is set. + */ + boolean hasCustomRankingParams(); + + /** + * + * + *
            +   * Optional. Optional configuration for the Custom Ranking feature.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams custom_ranking_params = 64 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customRankingParams. + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams + getCustomRankingParams(); + + /** + * + * + *
            +   * Optional. Optional configuration for the Custom Ranking feature.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParams custom_ranking_params = 64 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.CustomRankingParamsOrBuilder + getCustomRankingParamsOrBuilder(); + + /** + * + * + *
            +   * Optional. The entity for customers that may run multiple different
            +   * entities, domains, sites or regions, for example, "Google US", "Google
            +   * Ads", "Waymo", "google.com", "youtube.com", etc. If this is set, it should
            +   * be exactly matched with
            +   * [UserEvent.entity][google.cloud.discoveryengine.v1beta.UserEvent.entity] to
            +   * get search results boosted by entity.
            +   * 
            + * + * string entity = 66 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entity. + */ + java.lang.String getEntity(); + + /** + * + * + *
            +   * Optional. The entity for customers that may run multiple different
            +   * entities, domains, sites or regions, for example, "Google US", "Google
            +   * Ads", "Waymo", "google.com", "youtube.com", etc. If this is set, it should
            +   * be exactly matched with
            +   * [UserEvent.entity][google.cloud.discoveryengine.v1beta.UserEvent.entity] to
            +   * get search results boosted by entity.
            +   * 
            + * + * string entity = 66 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entity. + */ + com.google.protobuf.ByteString getEntityBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponse.java index 7564a5432660..c3ce69ed4639 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponse.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponse.java @@ -60,9 +60,12 @@ private SearchResponse() { redirectUri_ = ""; nextPageToken_ = ""; correctedQuery_ = ""; + suggestedQuery_ = ""; appliedControls_ = com.google.protobuf.LazyStringArrayList.emptyList(); geoSearchDebugInfo_ = java.util.Collections.emptyList(); oneBoxResults_ = java.util.Collections.emptyList(); + searchLinkPromotions_ = java.util.Collections.emptyList(); + semanticState_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -80,6 +83,177 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.discoveryengine.v1beta.SearchResponse.Builder.class); } + /** + * + * + *
            +   * Semantic state of the search response.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState} + */ + public enum SemanticState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Default value. Should not be used.
            +     * 
            + * + * SEMANTIC_STATE_UNSPECIFIED = 0; + */ + SEMANTIC_STATE_UNSPECIFIED(0), + /** + * + * + *
            +     * Semantic search was disabled for this search response.
            +     * 
            + * + * DISABLED = 1; + */ + DISABLED(1), + /** + * + * + *
            +     * Semantic search was enabled for this search response.
            +     * 
            + * + * ENABLED = 2; + */ + ENABLED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SemanticState"); + } + + /** + * + * + *
            +     * Default value. Should not be used.
            +     * 
            + * + * SEMANTIC_STATE_UNSPECIFIED = 0; + */ + public static final int SEMANTIC_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Semantic search was disabled for this search response.
            +     * 
            + * + * DISABLED = 1; + */ + public static final int DISABLED_VALUE = 1; + + /** + * + * + *
            +     * Semantic search was enabled for this search response.
            +     * 
            + * + * 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 SemanticState 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 SemanticState forNumber(int value) { + switch (value) { + case 0: + return SEMANTIC_STATE_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 SemanticState findValueByNumber(int number) { + return SemanticState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchResponse.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final SemanticState[] VALUES = values(); + + public static SemanticState 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 SemanticState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState) + } + public interface SearchResultOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult) @@ -203,10 +377,11 @@ public interface SearchResultOrBuilder * * *
            -     * Google provided available scores.
            +     * Output only. Google provided available scores.
                  * 
            * - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; + * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ int getModelScoresCount(); @@ -215,10 +390,11 @@ public interface SearchResultOrBuilder * * *
            -     * Google provided available scores.
            +     * Output only. Google provided available scores.
                  * 
            * - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; + * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ boolean containsModelScores(java.lang.String key); @@ -232,10 +408,11 @@ public interface SearchResultOrBuilder * * *
            -     * Google provided available scores.
            +     * Output only. Google provided available scores.
                  * 
            * - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; + * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ java.util.Map @@ -245,10 +422,11 @@ public interface SearchResultOrBuilder * * *
            -     * Google provided available scores.
            +     * Output only. Google provided available scores.
                  * 
            * - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; + * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ /* nullable */ @@ -261,10 +439,11 @@ com.google.cloud.discoveryengine.v1beta.DoubleList getModelScoresOrDefault( * * *
            -     * Google provided available scores.
            +     * Output only. Google provided available scores.
                  * 
            * - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; + * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.cloud.discoveryengine.v1beta.DoubleList getModelScoresOrThrow(java.lang.String key); @@ -273,7 +452,7 @@ com.google.cloud.discoveryengine.v1beta.DoubleList getModelScoresOrDefault( * * *
            -     * A set of ranking signals associated with the result.
            +     * Optional. A set of ranking signals associated with the result.
                  * 
            * * @@ -288,7 +467,7 @@ com.google.cloud.discoveryengine.v1beta.DoubleList getModelScoresOrDefault( * * *
            -     * A set of ranking signals associated with the result.
            +     * Optional. A set of ranking signals associated with the result.
                  * 
            * * @@ -304,7 +483,7 @@ com.google.cloud.discoveryengine.v1beta.DoubleList getModelScoresOrDefault( * * *
            -     * A set of ranking signals associated with the result.
            +     * Optional. A set of ranking signals associated with the result.
                  * 
            * * @@ -385,7 +564,7 @@ public interface RankSignalsOrBuilder * * *
            -       * Keyword matching adjustment.
            +       * Optional. Keyword matching adjustment.
                    * 
            * * @@ -400,7 +579,7 @@ public interface RankSignalsOrBuilder * * *
            -       * Keyword matching adjustment.
            +       * Optional. Keyword matching adjustment.
                    * 
            * * @@ -415,7 +594,7 @@ public interface RankSignalsOrBuilder * * *
            -       * Semantic relevance adjustment.
            +       * Optional. Semantic relevance adjustment.
                    * 
            * * optional float relevance_score = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -428,7 +607,7 @@ public interface RankSignalsOrBuilder * * *
            -       * Semantic relevance adjustment.
            +       * Optional. Semantic relevance adjustment.
                    * 
            * * optional float relevance_score = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -441,7 +620,7 @@ public interface RankSignalsOrBuilder * * *
            -       * Semantic similarity adjustment.
            +       * Optional. Semantic similarity adjustment.
                    * 
            * * @@ -456,7 +635,7 @@ public interface RankSignalsOrBuilder * * *
            -       * Semantic similarity adjustment.
            +       * Optional. Semantic similarity adjustment.
                    * 
            * * @@ -471,7 +650,7 @@ public interface RankSignalsOrBuilder * * *
            -       * Predicted conversion rate adjustment as a rank.
            +       * Optional. Predicted conversion rate adjustment as a rank.
                    * 
            * * optional float pctr_rank = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -484,7 +663,7 @@ public interface RankSignalsOrBuilder * * *
            -       * Predicted conversion rate adjustment as a rank.
            +       * Optional. Predicted conversion rate adjustment as a rank.
                    * 
            * * optional float pctr_rank = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -497,7 +676,7 @@ public interface RankSignalsOrBuilder * * *
            -       * Topicality adjustment as a rank.
            +       * Optional. Topicality adjustment as a rank.
                    * 
            * * optional float topicality_rank = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -510,7 +689,7 @@ public interface RankSignalsOrBuilder * * *
            -       * Topicality adjustment as a rank.
            +       * Optional. Topicality adjustment as a rank.
                    * 
            * * optional float topicality_rank = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -523,7 +702,7 @@ public interface RankSignalsOrBuilder * * *
            -       * Age of the document in hours.
            +       * Optional. Age of the document in hours.
                    * 
            * * optional float document_age = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -536,7 +715,7 @@ public interface RankSignalsOrBuilder * * *
            -       * Age of the document in hours.
            +       * Optional. Age of the document in hours.
                    * 
            * * optional float document_age = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -549,7 +728,7 @@ public interface RankSignalsOrBuilder * * *
            -       * Combined custom boosts for a doc.
            +       * Optional. Combined custom boosts for a doc.
                    * 
            * * optional float boosting_factor = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -562,7 +741,7 @@ public interface RankSignalsOrBuilder * * *
            -       * Combined custom boosts for a doc.
            +       * Optional. Combined custom boosts for a doc.
                    * 
            * * optional float boosting_factor = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -575,7 +754,7 @@ public interface RankSignalsOrBuilder * * *
            -       * The default rank of the result.
            +       * Optional. The default rank of the result.
                    * 
            * * float default_rank = 32 [(.google.api.field_behavior) = OPTIONAL]; @@ -588,7 +767,7 @@ public interface RankSignalsOrBuilder * * *
            -       * A list of custom clearbox signals.
            +       * Optional. A list of custom clearbox signals.
                    * 
            * * @@ -604,7 +783,7 @@ public interface RankSignalsOrBuilder * * *
            -       * A list of custom clearbox signals.
            +       * Optional. A list of custom clearbox signals.
                    * 
            * * @@ -618,7 +797,7 @@ public interface RankSignalsOrBuilder * * *
            -       * A list of custom clearbox signals.
            +       * Optional. A list of custom clearbox signals.
                    * 
            * * @@ -631,7 +810,7 @@ public interface RankSignalsOrBuilder * * *
            -       * A list of custom clearbox signals.
            +       * Optional. A list of custom clearbox signals.
                    * 
            * * @@ -648,7 +827,7 @@ public interface RankSignalsOrBuilder * * *
            -       * A list of custom clearbox signals.
            +       * Optional. A list of custom clearbox signals.
                    * 
            * * @@ -658,6 +837,58 @@ public interface RankSignalsOrBuilder com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.RankSignals .CustomSignalOrBuilder getCustomSignalsOrBuilder(int index); + + /** + * + * + *
            +       * Optional. A list of precomputed expression results for a given
            +       * document, in the same order as requested in
            +       * `SearchRequest.custom_ranking_params.expressions_to_precompute`.
            +       * 
            + * + * + * repeated float precomputed_expression_values = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the precomputedExpressionValues. + */ + java.util.List getPrecomputedExpressionValuesList(); + + /** + * + * + *
            +       * Optional. A list of precomputed expression results for a given
            +       * document, in the same order as requested in
            +       * `SearchRequest.custom_ranking_params.expressions_to_precompute`.
            +       * 
            + * + * + * repeated float precomputed_expression_values = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of precomputedExpressionValues. + */ + int getPrecomputedExpressionValuesCount(); + + /** + * + * + *
            +       * Optional. A list of precomputed expression results for a given
            +       * document, in the same order as requested in
            +       * `SearchRequest.custom_ranking_params.expressions_to_precompute`.
            +       * 
            + * + * + * repeated float precomputed_expression_values = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The precomputedExpressionValues at the given index. + */ + float getPrecomputedExpressionValues(int index); } /** @@ -693,6 +924,7 @@ private RankSignals(com.google.protobuf.GeneratedMessage.Builder builder) { private RankSignals() { customSignals_ = java.util.Collections.emptyList(); + precomputedExpressionValues_ = emptyFloatList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -721,7 +953,7 @@ public interface CustomSignalOrBuilder * * *
            -         * Name of the signal.
            +         * Optional. Name of the signal.
                      * 
            * * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -734,7 +966,7 @@ public interface CustomSignalOrBuilder * * *
            -         * Name of the signal.
            +         * Optional. Name of the signal.
                      * 
            * * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -747,7 +979,8 @@ public interface CustomSignalOrBuilder * * *
            -         * Float value representing the ranking signal (e.g. 1.25 for BM25).
            +         * Optional. Float value representing the ranking signal (e.g. 1.25 for
            +         * BM25).
                      * 
            * * float value = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -818,7 +1051,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -         * Name of the signal.
            +         * Optional. Name of the signal.
                      * 
            * * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -842,7 +1075,7 @@ public java.lang.String getName() { * * *
            -         * Name of the signal.
            +         * Optional. Name of the signal.
                      * 
            * * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -869,7 +1102,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -         * Float value representing the ranking signal (e.g. 1.25 for BM25).
            +         * Optional. Float value representing the ranking signal (e.g. 1.25 for
            +         * BM25).
                      * 
            * * float value = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1284,7 +1518,7 @@ public Builder mergeFrom( * * *
            -           * Name of the signal.
            +           * Optional. Name of the signal.
                        * 
            * * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1307,7 +1541,7 @@ public java.lang.String getName() { * * *
            -           * Name of the signal.
            +           * Optional. Name of the signal.
                        * 
            * * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1330,7 +1564,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -           * Name of the signal.
            +           * Optional. Name of the signal.
                        * 
            * * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1352,7 +1586,7 @@ public Builder setName(java.lang.String value) { * * *
            -           * Name of the signal.
            +           * Optional. Name of the signal.
                        * 
            * * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1370,7 +1604,7 @@ public Builder clearName() { * * *
            -           * Name of the signal.
            +           * Optional. Name of the signal.
                        * 
            * * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -1395,7 +1629,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
            -           * Float value representing the ranking signal (e.g. 1.25 for BM25).
            +           * Optional. Float value representing the ranking signal (e.g. 1.25 for
            +           * BM25).
                        * 
            * * float value = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1411,7 +1646,8 @@ public float getValue() { * * *
            -           * Float value representing the ranking signal (e.g. 1.25 for BM25).
            +           * Optional. Float value representing the ranking signal (e.g. 1.25 for
            +           * BM25).
                        * 
            * * float value = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1431,7 +1667,8 @@ public Builder setValue(float value) { * * *
            -           * Float value representing the ranking signal (e.g. 1.25 for BM25).
            +           * Optional. Float value representing the ranking signal (e.g. 1.25 for
            +           * BM25).
                        * 
            * * float value = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1513,7 +1750,7 @@ public com.google.protobuf.Parser getParserForType() { * * *
            -       * Keyword matching adjustment.
            +       * Optional. Keyword matching adjustment.
                    * 
            * * @@ -1531,7 +1768,7 @@ public boolean hasKeywordSimilarityScore() { * * *
            -       * Keyword matching adjustment.
            +       * Optional. Keyword matching adjustment.
                    * 
            * * @@ -1552,7 +1789,7 @@ public float getKeywordSimilarityScore() { * * *
            -       * Semantic relevance adjustment.
            +       * Optional. Semantic relevance adjustment.
                    * 
            * * optional float relevance_score = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1568,7 +1805,7 @@ public boolean hasRelevanceScore() { * * *
            -       * Semantic relevance adjustment.
            +       * Optional. Semantic relevance adjustment.
                    * 
            * * optional float relevance_score = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1587,7 +1824,7 @@ public float getRelevanceScore() { * * *
            -       * Semantic similarity adjustment.
            +       * Optional. Semantic similarity adjustment.
                    * 
            * * @@ -1605,7 +1842,7 @@ public boolean hasSemanticSimilarityScore() { * * *
            -       * Semantic similarity adjustment.
            +       * Optional. Semantic similarity adjustment.
                    * 
            * * @@ -1626,7 +1863,7 @@ public float getSemanticSimilarityScore() { * * *
            -       * Predicted conversion rate adjustment as a rank.
            +       * Optional. Predicted conversion rate adjustment as a rank.
                    * 
            * * optional float pctr_rank = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1642,7 +1879,7 @@ public boolean hasPctrRank() { * * *
            -       * Predicted conversion rate adjustment as a rank.
            +       * Optional. Predicted conversion rate adjustment as a rank.
                    * 
            * * optional float pctr_rank = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1661,7 +1898,7 @@ public float getPctrRank() { * * *
            -       * Topicality adjustment as a rank.
            +       * Optional. Topicality adjustment as a rank.
                    * 
            * * optional float topicality_rank = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1677,7 +1914,7 @@ public boolean hasTopicalityRank() { * * *
            -       * Topicality adjustment as a rank.
            +       * Optional. Topicality adjustment as a rank.
                    * 
            * * optional float topicality_rank = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -1696,7 +1933,7 @@ public float getTopicalityRank() { * * *
            -       * Age of the document in hours.
            +       * Optional. Age of the document in hours.
                    * 
            * * optional float document_age = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1712,7 +1949,7 @@ public boolean hasDocumentAge() { * * *
            -       * Age of the document in hours.
            +       * Optional. Age of the document in hours.
                    * 
            * * optional float document_age = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -1731,7 +1968,7 @@ public float getDocumentAge() { * * *
            -       * Combined custom boosts for a doc.
            +       * Optional. Combined custom boosts for a doc.
                    * 
            * * optional float boosting_factor = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -1747,7 +1984,7 @@ public boolean hasBoostingFactor() { * * *
            -       * Combined custom boosts for a doc.
            +       * Optional. Combined custom boosts for a doc.
                    * 
            * * optional float boosting_factor = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -1766,7 +2003,7 @@ public float getBoostingFactor() { * * *
            -       * The default rank of the result.
            +       * Optional. The default rank of the result.
                    * 
            * * float default_rank = 32 [(.google.api.field_behavior) = OPTIONAL]; @@ -1790,7 +2027,7 @@ public float getDefaultRank() { * * *
            -       * A list of custom clearbox signals.
            +       * Optional. A list of custom clearbox signals.
                    * 
            * * @@ -1809,7 +2046,7 @@ public float getDefaultRank() { * * *
            -       * A list of custom clearbox signals.
            +       * Optional. A list of custom clearbox signals.
                    * 
            * * @@ -1829,7 +2066,7 @@ public float getDefaultRank() { * * *
            -       * A list of custom clearbox signals.
            +       * Optional. A list of custom clearbox signals.
                    * 
            * * @@ -1845,7 +2082,7 @@ public int getCustomSignalsCount() { * * *
            -       * A list of custom clearbox signals.
            +       * Optional. A list of custom clearbox signals.
                    * 
            * * @@ -1863,7 +2100,7 @@ public int getCustomSignalsCount() { * * *
            -       * A list of custom clearbox signals.
            +       * Optional. A list of custom clearbox signals.
                    * 
            * * @@ -1877,6 +2114,73 @@ public int getCustomSignalsCount() { return customSignals_.get(index); } + public static final int PRECOMPUTED_EXPRESSION_VALUES_FIELD_NUMBER = 34; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.FloatList precomputedExpressionValues_ = + emptyFloatList(); + + /** + * + * + *
            +       * Optional. A list of precomputed expression results for a given
            +       * document, in the same order as requested in
            +       * `SearchRequest.custom_ranking_params.expressions_to_precompute`.
            +       * 
            + * + * + * repeated float precomputed_expression_values = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the precomputedExpressionValues. + */ + @java.lang.Override + public java.util.List getPrecomputedExpressionValuesList() { + return precomputedExpressionValues_; + } + + /** + * + * + *
            +       * Optional. A list of precomputed expression results for a given
            +       * document, in the same order as requested in
            +       * `SearchRequest.custom_ranking_params.expressions_to_precompute`.
            +       * 
            + * + * + * repeated float precomputed_expression_values = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of precomputedExpressionValues. + */ + public int getPrecomputedExpressionValuesCount() { + return precomputedExpressionValues_.size(); + } + + /** + * + * + *
            +       * Optional. A list of precomputed expression results for a given
            +       * document, in the same order as requested in
            +       * `SearchRequest.custom_ranking_params.expressions_to_precompute`.
            +       * 
            + * + * + * repeated float precomputed_expression_values = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The precomputedExpressionValues at the given index. + */ + public float getPrecomputedExpressionValues(int index) { + return precomputedExpressionValues_.getFloat(index); + } + + private int precomputedExpressionValuesMemoizedSerializedSize = -1; + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1891,6 +2195,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); if (((bitField0_ & 0x00000001) != 0)) { output.writeFloat(1, keywordSimilarityScore_); } @@ -1918,6 +2223,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < customSignals_.size(); i++) { output.writeMessage(33, customSignals_.get(i)); } + if (getPrecomputedExpressionValuesList().size() > 0) { + output.writeUInt32NoTag(274); + output.writeUInt32NoTag(precomputedExpressionValuesMemoizedSerializedSize); + } + for (int i = 0; i < precomputedExpressionValues_.size(); i++) { + output.writeFloatNoTag(precomputedExpressionValues_.getFloat(i)); + } getUnknownFields().writeTo(output); } @@ -1957,6 +2269,16 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(33, customSignals_.get(i)); } + { + int dataSize = 0; + dataSize = 4 * getPrecomputedExpressionValuesList().size(); + size += dataSize; + if (!getPrecomputedExpressionValuesList().isEmpty()) { + size += 2; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + precomputedExpressionValuesMemoizedSerializedSize = dataSize; + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2013,6 +2335,8 @@ public boolean equals(final java.lang.Object obj) { if (java.lang.Float.floatToIntBits(getDefaultRank()) != java.lang.Float.floatToIntBits(other.getDefaultRank())) return false; if (!getCustomSignalsList().equals(other.getCustomSignalsList())) return false; + if (!getPrecomputedExpressionValuesList() + .equals(other.getPrecomputedExpressionValuesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2058,6 +2382,10 @@ public int hashCode() { hash = (37 * hash) + CUSTOM_SIGNALS_FIELD_NUMBER; hash = (53 * hash) + getCustomSignalsList().hashCode(); } + if (getPrecomputedExpressionValuesCount() > 0) { + hash = (37 * hash) + PRECOMPUTED_EXPRESSION_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getPrecomputedExpressionValuesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2229,6 +2557,7 @@ public Builder clear() { customSignalsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); + precomputedExpressionValues_ = emptyFloatList(); return this; } @@ -2320,6 +2649,10 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000080) != 0)) { result.defaultRank_ = defaultRank_; } + if (((from_bitField0_ & 0x00000200) != 0)) { + precomputedExpressionValues_.makeImmutable(); + result.precomputedExpressionValues_ = precomputedExpressionValues_; + } result.bitField0_ |= to_bitField0_; } @@ -2393,6 +2726,17 @@ public Builder mergeFrom( } } } + if (!other.precomputedExpressionValues_.isEmpty()) { + if (precomputedExpressionValues_.isEmpty()) { + precomputedExpressionValues_ = other.precomputedExpressionValues_; + precomputedExpressionValues_.makeImmutable(); + bitField0_ |= 0x00000200; + } else { + ensurePrecomputedExpressionValuesIsMutable(); + precomputedExpressionValues_.addAll(other.precomputedExpressionValues_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2484,6 +2828,25 @@ public Builder mergeFrom( } break; } // case 266 + case 277: + { + float v = input.readFloat(); + ensurePrecomputedExpressionValuesIsMutable(); + precomputedExpressionValues_.addFloat(v); + break; + } // case 277 + case 274: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + int alloc = length > 4096 ? 4096 : length; + ensurePrecomputedExpressionValuesIsMutable(alloc / 4); + while (input.getBytesUntilLimit() > 0) { + precomputedExpressionValues_.addFloat(input.readFloat()); + } + input.popLimit(limit); + break; + } // case 274 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2509,7 +2872,7 @@ public Builder mergeFrom( * * *
            -         * Keyword matching adjustment.
            +         * Optional. Keyword matching adjustment.
                      * 
            * * @@ -2527,7 +2890,7 @@ public boolean hasKeywordSimilarityScore() { * * *
            -         * Keyword matching adjustment.
            +         * Optional. Keyword matching adjustment.
                      * 
            * * @@ -2545,7 +2908,7 @@ public float getKeywordSimilarityScore() { * * *
            -         * Keyword matching adjustment.
            +         * Optional. Keyword matching adjustment.
                      * 
            * * @@ -2567,7 +2930,7 @@ public Builder setKeywordSimilarityScore(float value) { * * *
            -         * Keyword matching adjustment.
            +         * Optional. Keyword matching adjustment.
                      * 
            * * @@ -2589,7 +2952,7 @@ public Builder clearKeywordSimilarityScore() { * * *
            -         * Semantic relevance adjustment.
            +         * Optional. Semantic relevance adjustment.
                      * 
            * * optional float relevance_score = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2606,7 +2969,7 @@ public boolean hasRelevanceScore() { * * *
            -         * Semantic relevance adjustment.
            +         * Optional. Semantic relevance adjustment.
                      * 
            * * optional float relevance_score = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2623,7 +2986,7 @@ public float getRelevanceScore() { * * *
            -         * Semantic relevance adjustment.
            +         * Optional. Semantic relevance adjustment.
                      * 
            * * optional float relevance_score = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2644,7 +3007,7 @@ public Builder setRelevanceScore(float value) { * * *
            -         * Semantic relevance adjustment.
            +         * Optional. Semantic relevance adjustment.
                      * 
            * * optional float relevance_score = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -2665,7 +3028,7 @@ public Builder clearRelevanceScore() { * * *
            -         * Semantic similarity adjustment.
            +         * Optional. Semantic similarity adjustment.
                      * 
            * * @@ -2683,7 +3046,7 @@ public boolean hasSemanticSimilarityScore() { * * *
            -         * Semantic similarity adjustment.
            +         * Optional. Semantic similarity adjustment.
                      * 
            * * @@ -2701,7 +3064,7 @@ public float getSemanticSimilarityScore() { * * *
            -         * Semantic similarity adjustment.
            +         * Optional. Semantic similarity adjustment.
                      * 
            * * @@ -2723,7 +3086,7 @@ public Builder setSemanticSimilarityScore(float value) { * * *
            -         * Semantic similarity adjustment.
            +         * Optional. Semantic similarity adjustment.
                      * 
            * * @@ -2745,7 +3108,7 @@ public Builder clearSemanticSimilarityScore() { * * *
            -         * Predicted conversion rate adjustment as a rank.
            +         * Optional. Predicted conversion rate adjustment as a rank.
                      * 
            * * optional float pctr_rank = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2761,7 +3124,7 @@ public boolean hasPctrRank() { * * *
            -         * Predicted conversion rate adjustment as a rank.
            +         * Optional. Predicted conversion rate adjustment as a rank.
                      * 
            * * optional float pctr_rank = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2777,7 +3140,7 @@ public float getPctrRank() { * * *
            -         * Predicted conversion rate adjustment as a rank.
            +         * Optional. Predicted conversion rate adjustment as a rank.
                      * 
            * * optional float pctr_rank = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2797,7 +3160,7 @@ public Builder setPctrRank(float value) { * * *
            -         * Predicted conversion rate adjustment as a rank.
            +         * Optional. Predicted conversion rate adjustment as a rank.
                      * 
            * * optional float pctr_rank = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -2817,7 +3180,7 @@ public Builder clearPctrRank() { * * *
            -         * Topicality adjustment as a rank.
            +         * Optional. Topicality adjustment as a rank.
                      * 
            * * optional float topicality_rank = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -2834,7 +3197,7 @@ public boolean hasTopicalityRank() { * * *
            -         * Topicality adjustment as a rank.
            +         * Optional. Topicality adjustment as a rank.
                      * 
            * * optional float topicality_rank = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -2851,7 +3214,7 @@ public float getTopicalityRank() { * * *
            -         * Topicality adjustment as a rank.
            +         * Optional. Topicality adjustment as a rank.
                      * 
            * * optional float topicality_rank = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -2872,7 +3235,7 @@ public Builder setTopicalityRank(float value) { * * *
            -         * Topicality adjustment as a rank.
            +         * Optional. Topicality adjustment as a rank.
                      * 
            * * optional float topicality_rank = 6 [(.google.api.field_behavior) = OPTIONAL]; @@ -2893,7 +3256,7 @@ public Builder clearTopicalityRank() { * * *
            -         * Age of the document in hours.
            +         * Optional. Age of the document in hours.
                      * 
            * * optional float document_age = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -2909,7 +3272,7 @@ public boolean hasDocumentAge() { * * *
            -         * Age of the document in hours.
            +         * Optional. Age of the document in hours.
                      * 
            * * optional float document_age = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -2925,7 +3288,7 @@ public float getDocumentAge() { * * *
            -         * Age of the document in hours.
            +         * Optional. Age of the document in hours.
                      * 
            * * optional float document_age = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -2945,7 +3308,7 @@ public Builder setDocumentAge(float value) { * * *
            -         * Age of the document in hours.
            +         * Optional. Age of the document in hours.
                      * 
            * * optional float document_age = 7 [(.google.api.field_behavior) = OPTIONAL]; @@ -2965,7 +3328,7 @@ public Builder clearDocumentAge() { * * *
            -         * Combined custom boosts for a doc.
            +         * Optional. Combined custom boosts for a doc.
                      * 
            * * optional float boosting_factor = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2982,7 +3345,7 @@ public boolean hasBoostingFactor() { * * *
            -         * Combined custom boosts for a doc.
            +         * Optional. Combined custom boosts for a doc.
                      * 
            * * optional float boosting_factor = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2999,7 +3362,7 @@ public float getBoostingFactor() { * * *
            -         * Combined custom boosts for a doc.
            +         * Optional. Combined custom boosts for a doc.
                      * 
            * * optional float boosting_factor = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -3020,7 +3383,7 @@ public Builder setBoostingFactor(float value) { * * *
            -         * Combined custom boosts for a doc.
            +         * Optional. Combined custom boosts for a doc.
                      * 
            * * optional float boosting_factor = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -3041,7 +3404,7 @@ public Builder clearBoostingFactor() { * * *
            -         * The default rank of the result.
            +         * Optional. The default rank of the result.
                      * 
            * * float default_rank = 32 [(.google.api.field_behavior) = OPTIONAL]; @@ -3057,7 +3420,7 @@ public float getDefaultRank() { * * *
            -         * The default rank of the result.
            +         * Optional. The default rank of the result.
                      * 
            * * float default_rank = 32 [(.google.api.field_behavior) = OPTIONAL]; @@ -3077,7 +3440,7 @@ public Builder setDefaultRank(float value) { * * *
            -         * The default rank of the result.
            +         * Optional. The default rank of the result.
                      * 
            * * float default_rank = 32 [(.google.api.field_behavior) = OPTIONAL]; @@ -3119,7 +3482,7 @@ private void ensureCustomSignalsIsMutable() { * * *
            -         * A list of custom clearbox signals.
            +         * Optional. A list of custom clearbox signals.
                      * 
            * * @@ -3141,7 +3504,7 @@ private void ensureCustomSignalsIsMutable() { * * *
            -         * A list of custom clearbox signals.
            +         * Optional. A list of custom clearbox signals.
                      * 
            * * @@ -3160,7 +3523,7 @@ public int getCustomSignalsCount() { * * *
            -         * A list of custom clearbox signals.
            +         * Optional. A list of custom clearbox signals.
                      * 
            * * @@ -3181,7 +3544,7 @@ public int getCustomSignalsCount() { * * *
            -         * A list of custom clearbox signals.
            +         * Optional. A list of custom clearbox signals.
                      * 
            * * @@ -3210,7 +3573,7 @@ public Builder setCustomSignals( * * *
            -         * A list of custom clearbox signals.
            +         * Optional. A list of custom clearbox signals.
                      * 
            * * @@ -3236,7 +3599,7 @@ public Builder setCustomSignals( * * *
            -         * A list of custom clearbox signals.
            +         * Optional. A list of custom clearbox signals.
                      * 
            * * @@ -3264,7 +3627,7 @@ public Builder addCustomSignals( * * *
            -         * A list of custom clearbox signals.
            +         * Optional. A list of custom clearbox signals.
                      * 
            * * @@ -3293,7 +3656,7 @@ public Builder addCustomSignals( * * *
            -         * A list of custom clearbox signals.
            +         * Optional. A list of custom clearbox signals.
                      * 
            * * @@ -3318,7 +3681,7 @@ public Builder addCustomSignals( * * *
            -         * A list of custom clearbox signals.
            +         * Optional. A list of custom clearbox signals.
                      * 
            * * @@ -3344,7 +3707,7 @@ public Builder addCustomSignals( * * *
            -         * A list of custom clearbox signals.
            +         * Optional. A list of custom clearbox signals.
                      * 
            * * @@ -3371,7 +3734,7 @@ public Builder addAllCustomSignals( * * *
            -         * A list of custom clearbox signals.
            +         * Optional. A list of custom clearbox signals.
                      * 
            * * @@ -3393,7 +3756,7 @@ public Builder clearCustomSignals() { * * *
            -         * A list of custom clearbox signals.
            +         * Optional. A list of custom clearbox signals.
                      * 
            * * @@ -3415,7 +3778,7 @@ public Builder removeCustomSignals(int index) { * * *
            -         * A list of custom clearbox signals.
            +         * Optional. A list of custom clearbox signals.
                      * 
            * * @@ -3432,7 +3795,7 @@ public Builder removeCustomSignals(int index) { * * *
            -         * A list of custom clearbox signals.
            +         * Optional. A list of custom clearbox signals.
                      * 
            * * @@ -3453,7 +3816,7 @@ public Builder removeCustomSignals(int index) { * * *
            -         * A list of custom clearbox signals.
            +         * Optional. A list of custom clearbox signals.
                      * 
            * * @@ -3476,7 +3839,7 @@ public Builder removeCustomSignals(int index) { * * *
            -         * A list of custom clearbox signals.
            +         * Optional. A list of custom clearbox signals.
                      * 
            * * @@ -3496,7 +3859,7 @@ public Builder removeCustomSignals(int index) { * * *
            -         * A list of custom clearbox signals.
            +         * Optional. A list of custom clearbox signals.
                      * 
            * * @@ -3517,7 +3880,7 @@ public Builder removeCustomSignals(int index) { * * *
            -         * A list of custom clearbox signals.
            +         * Optional. A list of custom clearbox signals.
                      * 
            * * @@ -3557,6 +3920,181 @@ public Builder removeCustomSignals(int index) { return customSignalsBuilder_; } + private com.google.protobuf.Internal.FloatList precomputedExpressionValues_ = + emptyFloatList(); + + private void ensurePrecomputedExpressionValuesIsMutable() { + if (!precomputedExpressionValues_.isModifiable()) { + precomputedExpressionValues_ = makeMutableCopy(precomputedExpressionValues_); + } + bitField0_ |= 0x00000200; + } + + private void ensurePrecomputedExpressionValuesIsMutable(int capacity) { + if (!precomputedExpressionValues_.isModifiable()) { + precomputedExpressionValues_ = makeMutableCopy(precomputedExpressionValues_, capacity); + } + bitField0_ |= 0x00000200; + } + + /** + * + * + *
            +         * Optional. A list of precomputed expression results for a given
            +         * document, in the same order as requested in
            +         * `SearchRequest.custom_ranking_params.expressions_to_precompute`.
            +         * 
            + * + * + * repeated float precomputed_expression_values = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the precomputedExpressionValues. + */ + public java.util.List getPrecomputedExpressionValuesList() { + precomputedExpressionValues_.makeImmutable(); + return precomputedExpressionValues_; + } + + /** + * + * + *
            +         * Optional. A list of precomputed expression results for a given
            +         * document, in the same order as requested in
            +         * `SearchRequest.custom_ranking_params.expressions_to_precompute`.
            +         * 
            + * + * + * repeated float precomputed_expression_values = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of precomputedExpressionValues. + */ + public int getPrecomputedExpressionValuesCount() { + return precomputedExpressionValues_.size(); + } + + /** + * + * + *
            +         * Optional. A list of precomputed expression results for a given
            +         * document, in the same order as requested in
            +         * `SearchRequest.custom_ranking_params.expressions_to_precompute`.
            +         * 
            + * + * + * repeated float precomputed_expression_values = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The precomputedExpressionValues at the given index. + */ + public float getPrecomputedExpressionValues(int index) { + return precomputedExpressionValues_.getFloat(index); + } + + /** + * + * + *
            +         * Optional. A list of precomputed expression results for a given
            +         * document, in the same order as requested in
            +         * `SearchRequest.custom_ranking_params.expressions_to_precompute`.
            +         * 
            + * + * + * repeated float precomputed_expression_values = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The precomputedExpressionValues to set. + * @return This builder for chaining. + */ + public Builder setPrecomputedExpressionValues(int index, float value) { + + ensurePrecomputedExpressionValuesIsMutable(); + precomputedExpressionValues_.setFloat(index, value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. A list of precomputed expression results for a given
            +         * document, in the same order as requested in
            +         * `SearchRequest.custom_ranking_params.expressions_to_precompute`.
            +         * 
            + * + * + * repeated float precomputed_expression_values = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The precomputedExpressionValues to add. + * @return This builder for chaining. + */ + public Builder addPrecomputedExpressionValues(float value) { + + ensurePrecomputedExpressionValuesIsMutable(); + precomputedExpressionValues_.addFloat(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. A list of precomputed expression results for a given
            +         * document, in the same order as requested in
            +         * `SearchRequest.custom_ranking_params.expressions_to_precompute`.
            +         * 
            + * + * + * repeated float precomputed_expression_values = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The precomputedExpressionValues to add. + * @return This builder for chaining. + */ + public Builder addAllPrecomputedExpressionValues( + java.lang.Iterable values) { + ensurePrecomputedExpressionValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, precomputedExpressionValues_); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. A list of precomputed expression results for a given
            +         * document, in the same order as requested in
            +         * `SearchRequest.custom_ranking_params.expressions_to_precompute`.
            +         * 
            + * + * + * repeated float precomputed_expression_values = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearPrecomputedExpressionValues() { + precomputedExpressionValues_ = emptyFloatList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult.RankSignals) } @@ -3828,10 +4366,11 @@ public int getModelScoresCount() { * * *
            -     * Google provided available scores.
            +     * Output only. Google provided available scores.
                  * 
            * - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; + * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -3854,10 +4393,11 @@ public boolean containsModelScores(java.lang.String key) { * * *
            -     * Google provided available scores.
            +     * Output only. Google provided available scores.
                  * 
            * - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; + * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -3870,10 +4410,11 @@ public boolean containsModelScores(java.lang.String key) { * * *
            -     * Google provided available scores.
            +     * Output only. Google provided available scores.
                  * 
            * - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; + * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -3894,10 +4435,11 @@ public boolean containsModelScores(java.lang.String key) { * * *
            -     * Google provided available scores.
            +     * Output only. Google provided available scores.
                  * 
            * - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; + * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -3922,7 +4464,7 @@ public com.google.cloud.discoveryengine.v1beta.DoubleList getModelScoresOrThrow( * * *
            -     * A set of ranking signals associated with the result.
            +     * Optional. A set of ranking signals associated with the result.
                  * 
            * * @@ -3940,7 +4482,7 @@ public boolean hasRankSignals() { * * *
            -     * A set of ranking signals associated with the result.
            +     * Optional. A set of ranking signals associated with the result.
                  * 
            * * @@ -3962,7 +4504,7 @@ public boolean hasRankSignals() { * * *
            -     * A set of ranking signals associated with the result.
            +     * Optional. A set of ranking signals associated with the result.
                  * 
            * * @@ -5080,10 +5622,11 @@ public int getModelScoresCount() { * * *
            -       * Google provided available scores.
            +       * Output only. Google provided available scores.
                    * 
            * - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; + * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -5106,10 +5649,11 @@ public boolean containsModelScores(java.lang.String key) { * * *
            -       * Google provided available scores.
            +       * Output only. Google provided available scores.
                    * 
            * - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; + * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -5122,10 +5666,11 @@ public boolean containsModelScores(java.lang.String key) { * * *
            -       * Google provided available scores.
            +       * Output only. Google provided available scores.
                    * 
            * - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; + * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -5146,10 +5691,11 @@ public boolean containsModelScores(java.lang.String key) { * * *
            -       * Google provided available scores.
            +       * Output only. Google provided available scores.
                    * 
            * - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; + * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -5176,10 +5722,11 @@ public Builder clearModelScores() { * * *
            -       * Google provided available scores.
            +       * Output only. Google provided available scores.
                    * 
            * - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; + * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder removeModelScores(java.lang.String key) { @@ -5202,10 +5749,11 @@ public Builder removeModelScores(java.lang.String key) { * * *
            -       * Google provided available scores.
            +       * Output only. Google provided available scores.
                    * 
            * - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; + * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder putModelScores( @@ -5225,10 +5773,11 @@ public Builder putModelScores( * * *
            -       * Google provided available scores.
            +       * Output only. Google provided available scores.
                    * 
            * - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; + * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder putAllModelScores( @@ -5250,10 +5799,11 @@ public Builder putAllModelScores( * * *
            -       * Google provided available scores.
            +       * Output only. Google provided available scores.
                    * 
            * - * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4; + * + * map<string, .google.cloud.discoveryengine.v1beta.DoubleList> model_scores = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.discoveryengine.v1beta.DoubleList.Builder @@ -5286,7 +5836,7 @@ public Builder putAllModelScores( * * *
            -       * A set of ranking signals associated with the result.
            +       * Optional. A set of ranking signals associated with the result.
                    * 
            * * @@ -5303,7 +5853,7 @@ public boolean hasRankSignals() { * * *
            -       * A set of ranking signals associated with the result.
            +       * Optional. A set of ranking signals associated with the result.
                    * 
            * * @@ -5328,7 +5878,7 @@ public boolean hasRankSignals() { * * *
            -       * A set of ranking signals associated with the result.
            +       * Optional. A set of ranking signals associated with the result.
                    * 
            * * @@ -5354,7 +5904,7 @@ public Builder setRankSignals( * * *
            -       * A set of ranking signals associated with the result.
            +       * Optional. A set of ranking signals associated with the result.
                    * 
            * * @@ -5378,7 +5928,7 @@ public Builder setRankSignals( * * *
            -       * A set of ranking signals associated with the result.
            +       * Optional. A set of ranking signals associated with the result.
                    * 
            * * @@ -5411,7 +5961,7 @@ public Builder mergeRankSignals( * * *
            -       * A set of ranking signals associated with the result.
            +       * Optional. A set of ranking signals associated with the result.
                    * 
            * * @@ -5433,7 +5983,7 @@ public Builder clearRankSignals() { * * *
            -       * A set of ranking signals associated with the result.
            +       * Optional. A set of ranking signals associated with the result.
                    * 
            * * @@ -5451,7 +6001,7 @@ public Builder clearRankSignals() { * * *
            -       * A set of ranking signals associated with the result.
            +       * Optional. A set of ranking signals associated with the result.
                    * 
            * * @@ -5475,7 +6025,7 @@ public Builder clearRankSignals() { * * *
            -       * A set of ranking signals associated with the result.
            +       * Optional. A set of ranking signals associated with the result.
                    * 
            * * @@ -11011,6 +11561,18 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE * NON_SUMMARY_SEEKING_QUERY_IGNORED_V2 = 9; */ NON_SUMMARY_SEEKING_QUERY_IGNORED_V2(9), + /** + * + * + *
            +       * The time out case.
            +       *
            +       * Google skips the summary if the time out.
            +       * 
            + * + * TIME_OUT = 10; + */ + TIME_OUT(10), UNRECOGNIZED(-1), ; @@ -11168,6 +11730,19 @@ public enum SummarySkippedReason implements com.google.protobuf.ProtocolMessageE */ public static final int NON_SUMMARY_SEEKING_QUERY_IGNORED_V2_VALUE = 9; + /** + * + * + *
            +       * The time out case.
            +       *
            +       * Google skips the summary if the time out.
            +       * 
            + * + * TIME_OUT = 10; + */ + public static final int TIME_OUT_VALUE = 10; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -11212,6 +11787,8 @@ public static SummarySkippedReason forNumber(int value) { return CUSTOMER_POLICY_VIOLATION; case 9: return NON_SUMMARY_SEEKING_QUERY_IGNORED_V2; + case 10: + return TIME_OUT; default: return null; } @@ -15639,6 +16216,52 @@ public interface ChunkContentOrBuilder * @return The bytes for pageIdentifier. */ com.google.protobuf.ByteString getPageIdentifierBytes(); + + /** + * + * + *
            +         * Output only. Stores indexes of blobattachments linked to this chunk.
            +         * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the blobAttachmentIndexes. + */ + java.util.List getBlobAttachmentIndexesList(); + + /** + * + * + *
            +         * Output only. Stores indexes of blobattachments linked to this chunk.
            +         * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of blobAttachmentIndexes. + */ + int getBlobAttachmentIndexesCount(); + + /** + * + * + *
            +         * Output only. Stores indexes of blobattachments linked to this chunk.
            +         * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The blobAttachmentIndexes at the given index. + */ + long getBlobAttachmentIndexes(int index); } /** @@ -15675,6 +16298,7 @@ private ChunkContent(com.google.protobuf.GeneratedMessage.Builder builder) { private ChunkContent() { content_ = ""; pageIdentifier_ = ""; + blobAttachmentIndexes_ = emptyLongList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -15800,6 +16424,66 @@ public com.google.protobuf.ByteString getPageIdentifierBytes() { } } + public static final int BLOB_ATTACHMENT_INDEXES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.LongList blobAttachmentIndexes_ = emptyLongList(); + + /** + * + * + *
            +         * Output only. Stores indexes of blobattachments linked to this chunk.
            +         * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the blobAttachmentIndexes. + */ + @java.lang.Override + public java.util.List getBlobAttachmentIndexesList() { + return blobAttachmentIndexes_; + } + + /** + * + * + *
            +         * Output only. Stores indexes of blobattachments linked to this chunk.
            +         * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of blobAttachmentIndexes. + */ + public int getBlobAttachmentIndexesCount() { + return blobAttachmentIndexes_.size(); + } + + /** + * + * + *
            +         * Output only. Stores indexes of blobattachments linked to this chunk.
            +         * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The blobAttachmentIndexes at the given index. + */ + public long getBlobAttachmentIndexes(int index) { + return blobAttachmentIndexes_.getLong(index); + } + + private int blobAttachmentIndexesMemoizedSerializedSize = -1; + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -15815,12 +16499,20 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); if (!com.google.protobuf.GeneratedMessage.isStringEmpty(content_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, content_); } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, pageIdentifier_); } + if (getBlobAttachmentIndexesList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(blobAttachmentIndexesMemoizedSerializedSize); + } + for (int i = 0; i < blobAttachmentIndexes_.size(); i++) { + output.writeInt64NoTag(blobAttachmentIndexes_.getLong(i)); + } getUnknownFields().writeTo(output); } @@ -15836,6 +16528,20 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageIdentifier_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, pageIdentifier_); } + { + int dataSize = 0; + for (int i = 0; i < blobAttachmentIndexes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt64SizeNoTag( + blobAttachmentIndexes_.getLong(i)); + } + size += dataSize; + if (!getBlobAttachmentIndexesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + blobAttachmentIndexesMemoizedSerializedSize = dataSize; + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -15860,6 +16566,8 @@ public boolean equals(final java.lang.Object obj) { if (!getContent().equals(other.getContent())) return false; if (!getPageIdentifier().equals(other.getPageIdentifier())) return false; + if (!getBlobAttachmentIndexesList().equals(other.getBlobAttachmentIndexesList())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -15875,6 +16583,10 @@ public int hashCode() { hash = (53 * hash) + getContent().hashCode(); hash = (37 * hash) + PAGE_IDENTIFIER_FIELD_NUMBER; hash = (53 * hash) + getPageIdentifier().hashCode(); + if (getBlobAttachmentIndexesCount() > 0) { + hash = (37 * hash) + BLOB_ATTACHMENT_INDEXES_FIELD_NUMBER; + hash = (53 * hash) + getBlobAttachmentIndexesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -16047,6 +16759,7 @@ public Builder clear() { bitField0_ = 0; content_ = ""; pageIdentifier_ = ""; + blobAttachmentIndexes_ = emptyLongList(); return this; } @@ -16101,6 +16814,10 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.pageIdentifier_ = pageIdentifier_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + blobAttachmentIndexes_.makeImmutable(); + result.blobAttachmentIndexes_ = blobAttachmentIndexes_; + } } @java.lang.Override @@ -16135,6 +16852,17 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; onChanged(); } + if (!other.blobAttachmentIndexes_.isEmpty()) { + if (blobAttachmentIndexes_.isEmpty()) { + blobAttachmentIndexes_ = other.blobAttachmentIndexes_; + blobAttachmentIndexes_.makeImmutable(); + bitField0_ |= 0x00000004; + } else { + ensureBlobAttachmentIndexesIsMutable(); + blobAttachmentIndexes_.addAll(other.blobAttachmentIndexes_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -16173,6 +16901,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 32: + { + long v = input.readInt64(); + ensureBlobAttachmentIndexesIsMutable(); + blobAttachmentIndexes_.addLong(v); + break; + } // case 32 + case 34: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureBlobAttachmentIndexesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + blobAttachmentIndexes_.addLong(input.readInt64()); + } + input.popLimit(limit); + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -16414,6 +17160,158 @@ public Builder setPageIdentifierBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.Internal.LongList blobAttachmentIndexes_ = emptyLongList(); + + private void ensureBlobAttachmentIndexesIsMutable() { + if (!blobAttachmentIndexes_.isModifiable()) { + blobAttachmentIndexes_ = makeMutableCopy(blobAttachmentIndexes_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
            +           * Output only. Stores indexes of blobattachments linked to this chunk.
            +           * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the blobAttachmentIndexes. + */ + public java.util.List getBlobAttachmentIndexesList() { + blobAttachmentIndexes_.makeImmutable(); + return blobAttachmentIndexes_; + } + + /** + * + * + *
            +           * Output only. Stores indexes of blobattachments linked to this chunk.
            +           * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of blobAttachmentIndexes. + */ + public int getBlobAttachmentIndexesCount() { + return blobAttachmentIndexes_.size(); + } + + /** + * + * + *
            +           * Output only. Stores indexes of blobattachments linked to this chunk.
            +           * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The blobAttachmentIndexes at the given index. + */ + public long getBlobAttachmentIndexes(int index) { + return blobAttachmentIndexes_.getLong(index); + } + + /** + * + * + *
            +           * Output only. Stores indexes of blobattachments linked to this chunk.
            +           * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The blobAttachmentIndexes to set. + * @return This builder for chaining. + */ + public Builder setBlobAttachmentIndexes(int index, long value) { + + ensureBlobAttachmentIndexesIsMutable(); + blobAttachmentIndexes_.setLong(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Output only. Stores indexes of blobattachments linked to this chunk.
            +           * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The blobAttachmentIndexes to add. + * @return This builder for chaining. + */ + public Builder addBlobAttachmentIndexes(long value) { + + ensureBlobAttachmentIndexesIsMutable(); + blobAttachmentIndexes_.addLong(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Output only. Stores indexes of blobattachments linked to this chunk.
            +           * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The blobAttachmentIndexes to add. + * @return This builder for chaining. + */ + public Builder addAllBlobAttachmentIndexes( + java.lang.Iterable values) { + ensureBlobAttachmentIndexesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blobAttachmentIndexes_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Output only. Stores indexes of blobattachments linked to this chunk.
            +           * 
            + * + * + * repeated int64 blob_attachment_indexes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearBlobAttachmentIndexes() { + blobAttachmentIndexes_ = emptyLongList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference.ChunkContent) } @@ -18079,168 +18977,101 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface SummaryWithMetadataOrBuilder + public interface BlobAttachmentOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata) + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment) com.google.protobuf.MessageOrBuilder { /** * * *
            -       * Summary text with no citation information.
            -       * 
            - * - * string summary = 1; - * - * @return The summary. - */ - java.lang.String getSummary(); - - /** - * - * - *
            -       * Summary text with no citation information.
            -       * 
            - * - * string summary = 1; - * - * @return The bytes for summary. - */ - com.google.protobuf.ByteString getSummaryBytes(); - - /** - * - * - *
            -       * Citation metadata for given summary.
            +       * Output only. The blob data.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata citation_metadata = 2; + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return Whether the citationMetadata field is set. + * @return Whether the data field is set. */ - boolean hasCitationMetadata(); + boolean hasData(); /** * * *
            -       * Citation metadata for given summary.
            +       * Output only. The blob data.
                    * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata citation_metadata = 2; + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * - * @return The citationMetadata. - */ - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata - getCitationMetadata(); - - /** - * - * - *
            -       * Citation metadata for given summary.
            -       * 
            - * - * - * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata citation_metadata = 2; - * + * @return The data. */ - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadataOrBuilder - getCitationMetadataOrBuilder(); + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob getData(); /** * * *
            -       * Document References.
            +       * Output only. The blob data.
                    * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3; + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - java.util.List - getReferencesList(); + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.BlobOrBuilder + getDataOrBuilder(); /** * * *
            -       * Document References.
            +       * Output only. The attribution type of the blob.
                    * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3; + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - */ - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference getReferences( - int index); - - /** - * - * - *
            -       * Document References.
            -       * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3; - * + * @return The enum numeric value on the wire for attributionType. */ - int getReferencesCount(); + int getAttributionTypeValue(); /** * * *
            -       * Document References.
            +       * Output only. The attribution type of the blob.
                    * 
            * * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3; + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - */ - java.util.List< - ? extends - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.ReferenceOrBuilder> - getReferencesOrBuilderList(); - - /** - * - * - *
            -       * Document References.
            -       * 
            * - * - * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3; - * + * @return The attributionType. */ - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.ReferenceOrBuilder - getReferencesOrBuilder(int index); + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.AttributionType + getAttributionType(); } /** * * *
            -     * Summary with metadata information.
            +     * Stores binarydata attached to text answer, e.g. image, video, audio, etc.
                  * 
            * * Protobuf type {@code - * google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata} + * google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment} */ - public static final class SummaryWithMetadata extends com.google.protobuf.GeneratedMessage + public static final class BlobAttachment extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata) - SummaryWithMetadataOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment) + BlobAttachmentOrBuilder { private static final long serialVersionUID = 0L; static { @@ -18250,92 +19081,2236 @@ public static final class SummaryWithMetadata extends com.google.protobuf.Genera /* minor= */ 33, /* patch= */ 2, /* suffix= */ "", - "SummaryWithMetadata"); + "BlobAttachment"); } - // Use SummaryWithMetadata.newBuilder() to construct. - private SummaryWithMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use BlobAttachment.newBuilder() to construct. + private BlobAttachment(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private SummaryWithMetadata() { - summary_ = ""; - references_ = java.util.Collections.emptyList(); + private BlobAttachment() { + attributionType_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SummaryWithMetadata_descriptor; + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.discoveryengine.v1beta.SearchServiceProto - .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SummaryWithMetadata_fieldAccessorTable + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata - .class, - com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.class, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment .Builder.class); } - private int bitField0_; - public static final int SUMMARY_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object summary_ = ""; - /** * * *
            -       * Summary text with no citation information.
            +       * Defines the attribution type of the blob.
                    * 
            * - * string summary = 1; - * - * @return The summary. + * Protobuf enum {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.AttributionType} */ - @java.lang.Override - public java.lang.String getSummary() { - java.lang.Object ref = summary_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - summary_ = s; - return s; + public enum AttributionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +         * Unspecified attribution type.
            +         * 
            + * + * ATTRIBUTION_TYPE_UNSPECIFIED = 0; + */ + ATTRIBUTION_TYPE_UNSPECIFIED(0), + /** + * + * + *
            +         * The attachment data is from the corpus.
            +         * 
            + * + * CORPUS = 1; + */ + CORPUS(1), + /** + * + * + *
            +         * The attachment data is generated by the model through code
            +         * generation.
            +         * 
            + * + * GENERATED = 2; + */ + GENERATED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AttributionType"); + } + + /** + * + * + *
            +         * Unspecified attribution type.
            +         * 
            + * + * ATTRIBUTION_TYPE_UNSPECIFIED = 0; + */ + public static final int ATTRIBUTION_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +         * The attachment data is from the corpus.
            +         * 
            + * + * CORPUS = 1; + */ + public static final int CORPUS_VALUE = 1; + + /** + * + * + *
            +         * The attachment data is generated by the model through code
            +         * generation.
            +         * 
            + * + * GENERATED = 2; + */ + public static final int GENERATED_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 AttributionType 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 AttributionType forNumber(int value) { + switch (value) { + case 0: + return ATTRIBUTION_TYPE_UNSPECIFIED; + case 1: + return CORPUS; + case 2: + return GENERATED; + 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 AttributionType findValueByNumber(int number) { + return AttributionType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AttributionType[] VALUES = values(); + + public static AttributionType 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 AttributionType(int value) { + this.value = value; } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.AttributionType) + } + + public interface BlobOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +         * Output only. The media type (MIME type) of the generated data.
            +         * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mimeType. + */ + java.lang.String getMimeType(); + + /** + * + * + *
            +         * Output only. The media type (MIME type) of the generated data.
            +         * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mimeType. + */ + com.google.protobuf.ByteString getMimeTypeBytes(); + + /** + * + * + *
            +         * Output only. Raw bytes.
            +         * 
            + * + * bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The data. + */ + com.google.protobuf.ByteString getData(); } /** * * *
            -       * Summary text with no citation information.
            +       * Stores type and data of the blob.
                    * 
            * - * string summary = 1; - * - * @return The bytes for summary. + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob} */ - @java.lang.Override - public com.google.protobuf.ByteString getSummaryBytes() { - java.lang.Object ref = summary_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - summary_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + public static final class Blob extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob) + BlobOrBuilder { + private static final long serialVersionUID = 0L; - public static final int CITATION_METADATA_FIELD_NUMBER = 2; - private com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Blob"); + } + + // Use Blob.newBuilder() to construct. + private Blob(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Blob() { + mimeType_ = ""; + data_ = com.google.protobuf.ByteString.EMPTY; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_Blob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_Blob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + .class, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + .Builder.class); + } + + public static final int MIME_TYPE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; + + /** + * + * + *
            +         * Output only. The media type (MIME type) of the generated data.
            +         * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mimeType. + */ + @java.lang.Override + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } + } + + /** + * + * + *
            +         * Output only. The media type (MIME type) of the generated data.
            +         * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mimeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_FIELD_NUMBER = 2; + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
            +         * Output only. Raw bytes.
            +         * 
            + * + * bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, mimeType_); + } + if (!data_.isEmpty()) { + output.writeBytes(2, data_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, mimeType_); + } + if (!data_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, 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.v1beta.SearchResponse.Summary.BlobAttachment.Blob)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob other = + (com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob) + obj; + + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getData().equals(other.getData())) 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) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob + 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.v1beta.SearchResponse.Summary.BlobAttachment + .Blob + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob + parseFrom( + 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.v1beta.SearchResponse.Summary.BlobAttachment + .Blob + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +         * Stores type and data of the blob.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob) + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .BlobOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_Blob_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_Blob_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob.class, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mimeType_ = ""; + data_ = com.google.protobuf.ByteString.EMPTY; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_Blob_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + build() { + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + result = + new com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary + .BlobAttachment.Blob(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mimeType_ = mimeType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.data_ = data_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob.getDefaultInstance()) return this; + if (!other.getMimeType().isEmpty()) { + mimeType_ = other.mimeType_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getData().isEmpty()) { + setData(other.getData()); + } + 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: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + data_ = 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 mimeType_ = ""; + + /** + * + * + *
            +           * Output only. The media type (MIME type) of the generated data.
            +           * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mimeType. + */ + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +           * Output only. The media type (MIME type) of the generated data.
            +           * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mimeType. + */ + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +           * Output only. The media type (MIME type) of the generated data.
            +           * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mimeType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Output only. The media type (MIME type) of the generated data.
            +           * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +           * Output only. The media type (MIME type) of the generated data.
            +           * 
            + * + * string mime_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
            +           * Output only. Raw bytes.
            +           * 
            + * + * bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The data. + */ + @java.lang.Override + public com.google.protobuf.ByteString getData() { + return data_; + } + + /** + * + * + *
            +           * Output only. Raw bytes.
            +           * 
            + * + * bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The data to set. + * @return This builder for chaining. + */ + public Builder setData(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Output only. Raw bytes.
            +           * 
            + * + * bytes data = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearData() { + bitField0_ = (bitField0_ & ~0x00000002); + data_ = getDefaultInstance().getData(); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob) + private static final com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary + .BlobAttachment.Blob + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Blob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.SearchResponse.Summary.BlobAttachment.Blob + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int DATA_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + data_; + + /** + * + * + *
            +       * Output only. The blob data.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the data field is set. + */ + @java.lang.Override + public boolean hasData() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Output only. The blob data.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The data. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + getData() { + return data_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + .getDefaultInstance() + : data_; + } + + /** + * + * + *
            +       * Output only. The blob data.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .BlobOrBuilder + getDataOrBuilder() { + return data_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + .getDefaultInstance() + : data_; + } + + public static final int ATTRIBUTION_TYPE_FIELD_NUMBER = 2; + private int attributionType_ = 0; + + /** + * + * + *
            +       * Output only. The attribution type of the blob.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for attributionType. + */ + @java.lang.Override + public int getAttributionTypeValue() { + return attributionType_; + } + + /** + * + * + *
            +       * Output only. The attribution type of the blob.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The attributionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .AttributionType + getAttributionType() { + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .AttributionType + result = + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .AttributionType.forNumber(attributionType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .AttributionType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getData()); + } + if (attributionType_ + != com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .AttributionType.ATTRIBUTION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, attributionType_); + } + 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, getData()); + } + if (attributionType_ + != com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .AttributionType.ATTRIBUTION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, attributionType_); + } + 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.v1beta.SearchResponse.Summary.BlobAttachment)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment other = + (com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment) obj; + + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData().equals(other.getData())) return false; + } + if (attributionType_ != other.attributionType_) 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 (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + hash = (37 * hash) + ATTRIBUTION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + attributionType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + 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.v1beta.SearchResponse.Summary.BlobAttachment + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + parseFrom( + 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.v1beta.SearchResponse.Summary.BlobAttachment + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Stores binarydata attached to text answer, e.g. image, video, audio, etc.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment) + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .class, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + data_ = null; + if (dataBuilder_ != null) { + dataBuilder_.dispose(); + dataBuilder_ = null; + } + attributionType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + build() { + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + buildPartial() { + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment result = + new com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.data_ = dataBuilder_ == null ? data_ : dataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.attributionType_ = attributionType_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment other) { + if (other + == com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .getDefaultInstance()) return this; + if (other.hasData()) { + mergeData(other.getData()); + } + if (other.attributionType_ != 0) { + setAttributionTypeValue(other.getAttributionTypeValue()); + } + 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( + internalGetDataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + attributionType_ = 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 com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + data_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .BlobOrBuilder> + dataBuilder_; + + /** + * + * + *
            +         * Output only. The blob data.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the data field is set. + */ + public boolean hasData() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +         * Output only. The blob data.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The data. + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + getData() { + if (dataBuilder_ == null) { + return data_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + .getDefaultInstance() + : data_; + } else { + return dataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +         * Output only. The blob data.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setData( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + } else { + dataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. The blob data.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setData( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + .Builder + builderForValue) { + if (dataBuilder_ == null) { + data_ = builderForValue.build(); + } else { + dataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. The blob data.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeData( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + value) { + if (dataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && data_ != null + && data_ + != com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob.getDefaultInstance()) { + getDataBuilder().mergeFrom(value); + } else { + data_ = value; + } + } else { + dataBuilder_.mergeFrom(value); + } + if (data_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * Output only. The blob data.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearData() { + bitField0_ = (bitField0_ & ~0x00000001); + data_ = null; + if (dataBuilder_ != null) { + dataBuilder_.dispose(); + dataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. The blob data.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + .Builder + getDataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetDataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Output only. The blob data.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .BlobOrBuilder + getDataOrBuilder() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilder(); + } else { + return data_ == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + .getDefaultInstance() + : data_; + } + } + + /** + * + * + *
            +         * Output only. The blob data.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob data = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Blob + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .BlobOrBuilder> + internalGetDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Blob.Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .BlobOrBuilder>(getData(), getParentForChildren(), isClean()); + data_ = null; + } + return dataBuilder_; + } + + private int attributionType_ = 0; + + /** + * + * + *
            +         * Output only. The attribution type of the blob.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for attributionType. + */ + @java.lang.Override + public int getAttributionTypeValue() { + return attributionType_; + } + + /** + * + * + *
            +         * Output only. The attribution type of the blob.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for attributionType to set. + * @return This builder for chaining. + */ + public Builder setAttributionTypeValue(int value) { + attributionType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. The attribution type of the blob.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The attributionType. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .AttributionType + getAttributionType() { + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .AttributionType + result = + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .AttributionType.forNumber(attributionType_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .AttributionType.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +         * Output only. The attribution type of the blob.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The attributionType to set. + * @return This builder for chaining. + */ + public Builder setAttributionType( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .AttributionType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + attributionType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. The attribution type of the blob.
            +         * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.AttributionType attribution_type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAttributionType() { + bitField0_ = (bitField0_ & ~0x00000002); + attributionType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment) + private static final com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary + .BlobAttachment + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment(); + } + + public static com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BlobAttachment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.SearchResponse.Summary.BlobAttachment + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SummaryWithMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Summary text with no citation information.
            +       * 
            + * + * string summary = 1; + * + * @return The summary. + */ + java.lang.String getSummary(); + + /** + * + * + *
            +       * Summary text with no citation information.
            +       * 
            + * + * string summary = 1; + * + * @return The bytes for summary. + */ + com.google.protobuf.ByteString getSummaryBytes(); + + /** + * + * + *
            +       * Citation metadata for given summary.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata citation_metadata = 2; + * + * + * @return Whether the citationMetadata field is set. + */ + boolean hasCitationMetadata(); + + /** + * + * + *
            +       * Citation metadata for given summary.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata citation_metadata = 2; + * + * + * @return The citationMetadata. + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata + getCitationMetadata(); + + /** + * + * + *
            +       * Citation metadata for given summary.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata citation_metadata = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadataOrBuilder + getCitationMetadataOrBuilder(); + + /** + * + * + *
            +       * Document References.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3; + * + */ + java.util.List + getReferencesList(); + + /** + * + * + *
            +       * Document References.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference getReferences( + int index); + + /** + * + * + *
            +       * Document References.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3; + * + */ + int getReferencesCount(); + + /** + * + * + *
            +       * Document References.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.ReferenceOrBuilder> + getReferencesOrBuilderList(); + + /** + * + * + *
            +       * Document References.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference references = 3; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.ReferenceOrBuilder + getReferencesOrBuilder(int index); + + /** + * + * + *
            +       * Output only. Store multimodal data for answer enhancement.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getBlobAttachmentsList(); + + /** + * + * + *
            +       * Output only. Store multimodal data for answer enhancement.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + getBlobAttachments(int index); + + /** + * + * + *
            +       * Output only. Store multimodal data for answer enhancement.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getBlobAttachmentsCount(); + + /** + * + * + *
            +       * Output only. Store multimodal data for answer enhancement.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary + .BlobAttachmentOrBuilder> + getBlobAttachmentsOrBuilderList(); + + /** + * + * + *
            +       * Output only. Store multimodal data for answer enhancement.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachmentOrBuilder + getBlobAttachmentsOrBuilder(int index); + } + + /** + * + * + *
            +     * Summary with metadata information.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata} + */ + public static final class SummaryWithMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata) + SummaryWithMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SummaryWithMetadata"); + } + + // Use SummaryWithMetadata.newBuilder() to construct. + private SummaryWithMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SummaryWithMetadata() { + summary_ = ""; + references_ = java.util.Collections.emptyList(); + blobAttachments_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SummaryWithMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.SearchServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SummaryWithMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata + .class, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata + .Builder.class); + } + + private int bitField0_; + public static final int SUMMARY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object summary_ = ""; + + /** + * + * + *
            +       * Summary text with no citation information.
            +       * 
            + * + * string summary = 1; + * + * @return The summary. + */ + @java.lang.Override + public java.lang.String getSummary() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + summary_ = s; + return s; + } + } + + /** + * + * + *
            +       * Summary text with no citation information.
            +       * 
            + * + * string summary = 1; + * + * @return The bytes for summary. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSummaryBytes() { + java.lang.Object ref = summary_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + summary_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CITATION_METADATA_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata citationMetadata_; /** @@ -18493,6 +21468,101 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Reference return references_.get(index); } + public static final int BLOB_ATTACHMENTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment> + blobAttachments_; + + /** + * + * + *
            +       * Output only. Store multimodal data for answer enhancement.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment> + getBlobAttachmentsList() { + return blobAttachments_; + } + + /** + * + * + *
            +       * Output only. Store multimodal data for answer enhancement.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary + .BlobAttachmentOrBuilder> + getBlobAttachmentsOrBuilderList() { + return blobAttachments_; + } + + /** + * + * + *
            +       * Output only. Store multimodal data for answer enhancement.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getBlobAttachmentsCount() { + return blobAttachments_.size(); + } + + /** + * + * + *
            +       * Output only. Store multimodal data for answer enhancement.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + getBlobAttachments(int index) { + return blobAttachments_.get(index); + } + + /** + * + * + *
            +       * Output only. Store multimodal data for answer enhancement.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachmentOrBuilder + getBlobAttachmentsOrBuilder(int index) { + return blobAttachments_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -18516,6 +21586,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < references_.size(); i++) { output.writeMessage(3, references_.get(i)); } + for (int i = 0; i < blobAttachments_.size(); i++) { + output.writeMessage(4, blobAttachments_.get(i)); + } getUnknownFields().writeTo(output); } @@ -18535,6 +21608,10 @@ public int getSerializedSize() { for (int i = 0; i < references_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, references_.get(i)); } + for (int i = 0; i < blobAttachments_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, blobAttachments_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -18560,6 +21637,7 @@ public boolean equals(final java.lang.Object obj) { if (!getCitationMetadata().equals(other.getCitationMetadata())) return false; } if (!getReferencesList().equals(other.getReferencesList())) return false; + if (!getBlobAttachmentsList().equals(other.getBlobAttachmentsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -18581,6 +21659,10 @@ public int hashCode() { hash = (37 * hash) + REFERENCES_FIELD_NUMBER; hash = (53 * hash) + getReferencesList().hashCode(); } + if (getBlobAttachmentsCount() > 0) { + hash = (37 * hash) + BLOB_ATTACHMENTS_FIELD_NUMBER; + hash = (53 * hash) + getBlobAttachmentsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -18753,6 +21835,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetCitationMetadataFieldBuilder(); internalGetReferencesFieldBuilder(); + internalGetBlobAttachmentsFieldBuilder(); } } @@ -18773,6 +21856,13 @@ public Builder clear() { referencesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); + if (blobAttachmentsBuilder_ == null) { + blobAttachments_ = java.util.Collections.emptyList(); + } else { + blobAttachments_ = null; + blobAttachmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -18827,6 +21917,15 @@ private void buildPartialRepeatedFields( } else { result.references_ = referencesBuilder_.build(); } + if (blobAttachmentsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + blobAttachments_ = java.util.Collections.unmodifiableList(blobAttachments_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.blobAttachments_ = blobAttachments_; + } else { + result.blobAttachments_ = blobAttachmentsBuilder_.build(); + } } private void buildPartial0( @@ -18902,6 +22001,33 @@ public Builder mergeFrom( } } } + if (blobAttachmentsBuilder_ == null) { + if (!other.blobAttachments_.isEmpty()) { + if (blobAttachments_.isEmpty()) { + blobAttachments_ = other.blobAttachments_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureBlobAttachmentsIsMutable(); + blobAttachments_.addAll(other.blobAttachments_); + } + onChanged(); + } + } else { + if (!other.blobAttachments_.isEmpty()) { + if (blobAttachmentsBuilder_.isEmpty()) { + blobAttachmentsBuilder_.dispose(); + blobAttachmentsBuilder_ = null; + blobAttachments_ = other.blobAttachments_; + bitField0_ = (bitField0_ & ~0x00000008); + blobAttachmentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBlobAttachmentsFieldBuilder() + : null; + } else { + blobAttachmentsBuilder_.addAllMessages(other.blobAttachments_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -18956,6 +22082,22 @@ public Builder mergeFrom( } break; } // case 26 + case 34: + { + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary + .BlobAttachment.parser(), + extensionRegistry); + if (blobAttachmentsBuilder_ == null) { + ensureBlobAttachmentsIsMutable(); + blobAttachments_.add(m); + } else { + blobAttachmentsBuilder_.addMessage(m); + } + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -19759,6 +22901,454 @@ public Builder removeReferences(int index) { return referencesBuilder_; } + private java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment> + blobAttachments_ = java.util.Collections.emptyList(); + + private void ensureBlobAttachmentsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + blobAttachments_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment>( + blobAttachments_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary + .BlobAttachmentOrBuilder> + blobAttachmentsBuilder_; + + /** + * + * + *
            +         * Output only. Store multimodal data for answer enhancement.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment> + getBlobAttachmentsList() { + if (blobAttachmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(blobAttachments_); + } else { + return blobAttachmentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +         * Output only. Store multimodal data for answer enhancement.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getBlobAttachmentsCount() { + if (blobAttachmentsBuilder_ == null) { + return blobAttachments_.size(); + } else { + return blobAttachmentsBuilder_.getCount(); + } + } + + /** + * + * + *
            +         * Output only. Store multimodal data for answer enhancement.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + getBlobAttachments(int index) { + if (blobAttachmentsBuilder_ == null) { + return blobAttachments_.get(index); + } else { + return blobAttachmentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +         * Output only. Store multimodal data for answer enhancement.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBlobAttachments( + int index, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment value) { + if (blobAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlobAttachmentsIsMutable(); + blobAttachments_.set(index, value); + onChanged(); + } else { + blobAttachmentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Output only. Store multimodal data for answer enhancement.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBlobAttachments( + int index, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Builder + builderForValue) { + if (blobAttachmentsBuilder_ == null) { + ensureBlobAttachmentsIsMutable(); + blobAttachments_.set(index, builderForValue.build()); + onChanged(); + } else { + blobAttachmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Output only. Store multimodal data for answer enhancement.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBlobAttachments( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment value) { + if (blobAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlobAttachmentsIsMutable(); + blobAttachments_.add(value); + onChanged(); + } else { + blobAttachmentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +         * Output only. Store multimodal data for answer enhancement.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBlobAttachments( + int index, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment value) { + if (blobAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlobAttachmentsIsMutable(); + blobAttachments_.add(index, value); + onChanged(); + } else { + blobAttachmentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Output only. Store multimodal data for answer enhancement.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBlobAttachments( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Builder + builderForValue) { + if (blobAttachmentsBuilder_ == null) { + ensureBlobAttachmentsIsMutable(); + blobAttachments_.add(builderForValue.build()); + onChanged(); + } else { + blobAttachmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Output only. Store multimodal data for answer enhancement.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addBlobAttachments( + int index, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Builder + builderForValue) { + if (blobAttachmentsBuilder_ == null) { + ensureBlobAttachmentsIsMutable(); + blobAttachments_.add(index, builderForValue.build()); + onChanged(); + } else { + blobAttachmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Output only. Store multimodal data for answer enhancement.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllBlobAttachments( + java.lang.Iterable< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary + .BlobAttachment> + values) { + if (blobAttachmentsBuilder_ == null) { + ensureBlobAttachmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blobAttachments_); + onChanged(); + } else { + blobAttachmentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +         * Output only. Store multimodal data for answer enhancement.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearBlobAttachments() { + if (blobAttachmentsBuilder_ == null) { + blobAttachments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + blobAttachmentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +         * Output only. Store multimodal data for answer enhancement.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeBlobAttachments(int index) { + if (blobAttachmentsBuilder_ == null) { + ensureBlobAttachmentsIsMutable(); + blobAttachments_.remove(index); + onChanged(); + } else { + blobAttachmentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +         * Output only. Store multimodal data for answer enhancement.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Builder + getBlobAttachmentsBuilder(int index) { + return internalGetBlobAttachmentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +         * Output only. Store multimodal data for answer enhancement.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary + .BlobAttachmentOrBuilder + getBlobAttachmentsOrBuilder(int index) { + if (blobAttachmentsBuilder_ == null) { + return blobAttachments_.get(index); + } else { + return blobAttachmentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +         * Output only. Store multimodal data for answer enhancement.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary + .BlobAttachmentOrBuilder> + getBlobAttachmentsOrBuilderList() { + if (blobAttachmentsBuilder_ != null) { + return blobAttachmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(blobAttachments_); + } + } + + /** + * + * + *
            +         * Output only. Store multimodal data for answer enhancement.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Builder + addBlobAttachmentsBuilder() { + return internalGetBlobAttachmentsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .getDefaultInstance()); + } + + /** + * + * + *
            +         * Output only. Store multimodal data for answer enhancement.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.Builder + addBlobAttachmentsBuilder(int index) { + return internalGetBlobAttachmentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .getDefaultInstance()); + } + + /** + * + * + *
            +         * Output only. Store multimodal data for answer enhancement.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment blob_attachments = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Builder> + getBlobAttachmentsBuilderList() { + return internalGetBlobAttachmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary + .BlobAttachmentOrBuilder> + internalGetBlobAttachmentsFieldBuilder() { + if (blobAttachmentsBuilder_ == null) { + blobAttachmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment + .Builder, + com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary + .BlobAttachmentOrBuilder>( + blobAttachments_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + blobAttachments_ = null; + } + return blobAttachmentsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummaryWithMetadata) } @@ -23076,6 +26666,60 @@ public interface NaturalLanguageQueryUnderstandingInfoOrBuilder */ com.google.protobuf.ByteString getRewrittenQueryBytes(); + /** + * + * + *
            +     * The classified intents from the input query.
            +     * 
            + * + * repeated string classified_intents = 5; + * + * @return A list containing the classifiedIntents. + */ + java.util.List getClassifiedIntentsList(); + + /** + * + * + *
            +     * The classified intents from the input query.
            +     * 
            + * + * repeated string classified_intents = 5; + * + * @return The count of classifiedIntents. + */ + int getClassifiedIntentsCount(); + + /** + * + * + *
            +     * The classified intents from the input query.
            +     * 
            + * + * repeated string classified_intents = 5; + * + * @param index The index of the element to return. + * @return The classifiedIntents at the given index. + */ + java.lang.String getClassifiedIntents(int index); + + /** + * + * + *
            +     * The classified intents from the input query.
            +     * 
            + * + * repeated string classified_intents = 5; + * + * @param index The index of the value to return. + * @return The bytes of the classifiedIntents at the given index. + */ + com.google.protobuf.ByteString getClassifiedIntentsBytes(int index); + /** * * @@ -23164,6 +26808,7 @@ private NaturalLanguageQueryUnderstandingInfo( private NaturalLanguageQueryUnderstandingInfo() { extractedFilters_ = ""; rewrittenQuery_ = ""; + classifiedIntents_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -33663,6 +37308,74 @@ public com.google.protobuf.ByteString getRewrittenQueryBytes() { } } + public static final int CLASSIFIED_INTENTS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList classifiedIntents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +     * The classified intents from the input query.
            +     * 
            + * + * repeated string classified_intents = 5; + * + * @return A list containing the classifiedIntents. + */ + public com.google.protobuf.ProtocolStringList getClassifiedIntentsList() { + return classifiedIntents_; + } + + /** + * + * + *
            +     * The classified intents from the input query.
            +     * 
            + * + * repeated string classified_intents = 5; + * + * @return The count of classifiedIntents. + */ + public int getClassifiedIntentsCount() { + return classifiedIntents_.size(); + } + + /** + * + * + *
            +     * The classified intents from the input query.
            +     * 
            + * + * repeated string classified_intents = 5; + * + * @param index The index of the element to return. + * @return The classifiedIntents at the given index. + */ + public java.lang.String getClassifiedIntents(int index) { + return classifiedIntents_.get(index); + } + + /** + * + * + *
            +     * The classified intents from the input query.
            +     * 
            + * + * repeated string classified_intents = 5; + * + * @param index The index of the value to return. + * @return The bytes of the classifiedIntents at the given index. + */ + public com.google.protobuf.ByteString getClassifiedIntentsBytes(int index) { + return classifiedIntents_.getByteString(index); + } + public static final int STRUCTURED_EXTRACTED_FILTER_FIELD_NUMBER = 3; private com.google.cloud.discoveryengine.v1beta.SearchResponse .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter @@ -33756,6 +37469,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getStructuredExtractedFilter()); } + for (int i = 0; i < classifiedIntents_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, classifiedIntents_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -33776,6 +37492,14 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, getStructuredExtractedFilter()); } + { + int dataSize = 0; + for (int i = 0; i < classifiedIntents_.size(); i++) { + dataSize += computeStringSizeNoTag(classifiedIntents_.getRaw(i)); + } + size += dataSize; + size += 1 * getClassifiedIntentsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -33800,6 +37524,7 @@ public boolean equals(final java.lang.Object obj) { if (!getExtractedFilters().equals(other.getExtractedFilters())) return false; if (!getRewrittenQuery().equals(other.getRewrittenQuery())) return false; + if (!getClassifiedIntentsList().equals(other.getClassifiedIntentsList())) return false; if (hasStructuredExtractedFilter() != other.hasStructuredExtractedFilter()) return false; if (hasStructuredExtractedFilter()) { if (!getStructuredExtractedFilter().equals(other.getStructuredExtractedFilter())) @@ -33820,6 +37545,10 @@ public int hashCode() { hash = (53 * hash) + getExtractedFilters().hashCode(); hash = (37 * hash) + REWRITTEN_QUERY_FIELD_NUMBER; hash = (53 * hash) + getRewrittenQuery().hashCode(); + if (getClassifiedIntentsCount() > 0) { + hash = (37 * hash) + CLASSIFIED_INTENTS_FIELD_NUMBER; + hash = (53 * hash) + getClassifiedIntentsList().hashCode(); + } if (hasStructuredExtractedFilter()) { hash = (37 * hash) + STRUCTURED_EXTRACTED_FILTER_FIELD_NUMBER; hash = (53 * hash) + getStructuredExtractedFilter().hashCode(); @@ -34001,6 +37730,7 @@ public Builder clear() { bitField0_ = 0; extractedFilters_ = ""; rewrittenQuery_ = ""; + classifiedIntents_ = com.google.protobuf.LazyStringArrayList.emptyList(); structuredExtractedFilter_ = null; if (structuredExtractedFilterBuilder_ != null) { structuredExtractedFilterBuilder_.dispose(); @@ -34061,8 +37791,12 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000002) != 0)) { result.rewrittenQuery_ = rewrittenQuery_; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { + classifiedIntents_.makeImmutable(); + result.classifiedIntents_ = classifiedIntents_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { result.structuredExtractedFilter_ = structuredExtractedFilterBuilder_ == null ? structuredExtractedFilter_ @@ -34105,6 +37839,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; onChanged(); } + if (!other.classifiedIntents_.isEmpty()) { + if (classifiedIntents_.isEmpty()) { + classifiedIntents_ = other.classifiedIntents_; + bitField0_ |= 0x00000004; + } else { + ensureClassifiedIntentsIsMutable(); + classifiedIntents_.addAll(other.classifiedIntents_); + } + onChanged(); + } if (other.hasStructuredExtractedFilter()) { mergeStructuredExtractedFilter(other.getStructuredExtractedFilter()); } @@ -34151,9 +37895,16 @@ public Builder mergeFrom( input.readMessage( internalGetStructuredExtractedFilterFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureClassifiedIntentsIsMutable(); + classifiedIntents_.add(s); + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -34395,6 +38146,189 @@ public Builder setRewrittenQueryBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList classifiedIntents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureClassifiedIntentsIsMutable() { + if (!classifiedIntents_.isModifiable()) { + classifiedIntents_ = new com.google.protobuf.LazyStringArrayList(classifiedIntents_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
            +       * The classified intents from the input query.
            +       * 
            + * + * repeated string classified_intents = 5; + * + * @return A list containing the classifiedIntents. + */ + public com.google.protobuf.ProtocolStringList getClassifiedIntentsList() { + classifiedIntents_.makeImmutable(); + return classifiedIntents_; + } + + /** + * + * + *
            +       * The classified intents from the input query.
            +       * 
            + * + * repeated string classified_intents = 5; + * + * @return The count of classifiedIntents. + */ + public int getClassifiedIntentsCount() { + return classifiedIntents_.size(); + } + + /** + * + * + *
            +       * The classified intents from the input query.
            +       * 
            + * + * repeated string classified_intents = 5; + * + * @param index The index of the element to return. + * @return The classifiedIntents at the given index. + */ + public java.lang.String getClassifiedIntents(int index) { + return classifiedIntents_.get(index); + } + + /** + * + * + *
            +       * The classified intents from the input query.
            +       * 
            + * + * repeated string classified_intents = 5; + * + * @param index The index of the value to return. + * @return The bytes of the classifiedIntents at the given index. + */ + public com.google.protobuf.ByteString getClassifiedIntentsBytes(int index) { + return classifiedIntents_.getByteString(index); + } + + /** + * + * + *
            +       * The classified intents from the input query.
            +       * 
            + * + * repeated string classified_intents = 5; + * + * @param index The index to set the value at. + * @param value The classifiedIntents to set. + * @return This builder for chaining. + */ + public Builder setClassifiedIntents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClassifiedIntentsIsMutable(); + classifiedIntents_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The classified intents from the input query.
            +       * 
            + * + * repeated string classified_intents = 5; + * + * @param value The classifiedIntents to add. + * @return This builder for chaining. + */ + public Builder addClassifiedIntents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureClassifiedIntentsIsMutable(); + classifiedIntents_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The classified intents from the input query.
            +       * 
            + * + * repeated string classified_intents = 5; + * + * @param values The classifiedIntents to add. + * @return This builder for chaining. + */ + public Builder addAllClassifiedIntents(java.lang.Iterable values) { + ensureClassifiedIntentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, classifiedIntents_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The classified intents from the input query.
            +       * 
            + * + * repeated string classified_intents = 5; + * + * @return This builder for chaining. + */ + public Builder clearClassifiedIntents() { + classifiedIntents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The classified intents from the input query.
            +       * 
            + * + * repeated string classified_intents = 5; + * + * @param value The bytes of the classifiedIntents to add. + * @return This builder for chaining. + */ + public Builder addClassifiedIntentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureClassifiedIntentsIsMutable(); + classifiedIntents_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + private com.google.cloud.discoveryengine.v1beta.SearchResponse .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter structuredExtractedFilter_; @@ -34422,7 +38356,7 @@ public Builder setRewrittenQueryBytes(com.google.protobuf.ByteString value) { * @return Whether the structuredExtractedFilter field is set. */ public boolean hasStructuredExtractedFilter() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -34477,7 +38411,7 @@ public Builder setStructuredExtractedFilter( } else { structuredExtractedFilterBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -34503,7 +38437,7 @@ public Builder setStructuredExtractedFilter( } else { structuredExtractedFilterBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -34525,7 +38459,7 @@ public Builder mergeStructuredExtractedFilter( .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter value) { if (structuredExtractedFilterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && structuredExtractedFilter_ != null && structuredExtractedFilter_ != com.google.cloud.discoveryengine.v1beta.SearchResponse @@ -34539,7 +38473,7 @@ public Builder mergeStructuredExtractedFilter( structuredExtractedFilterBuilder_.mergeFrom(value); } if (structuredExtractedFilter_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -34558,7 +38492,7 @@ public Builder mergeStructuredExtractedFilter( *
            */ public Builder clearStructuredExtractedFilter() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); structuredExtractedFilter_ = null; if (structuredExtractedFilterBuilder_ != null) { structuredExtractedFilterBuilder_.dispose(); @@ -34583,7 +38517,7 @@ public Builder clearStructuredExtractedFilter() { public com.google.cloud.discoveryengine.v1beta.SearchResponse .NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter.Builder getStructuredExtractedFilterBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return internalGetStructuredExtractedFilterFieldBuilder().getBuilder(); } @@ -37616,6 +41550,67 @@ public com.google.protobuf.ByteString getCorrectedQueryBytes() { } } + public static final int SUGGESTED_QUERY_FIELD_NUMBER = 24; + + @SuppressWarnings("serial") + private volatile java.lang.Object suggestedQuery_ = ""; + + /** + * + * + *
            +   * Corrected query with low confidence, AKA did you mean query.
            +   * Compared with corrected_query, this field is set when SpellCorrector
            +   * returned a response, but FPR(full page replacement) is not triggered
            +   * because the corrction is of low confidence(eg, reversed because there are
            +   * matches of the original query in document corpus).
            +   * 
            + * + * string suggested_query = 24; + * + * @return The suggestedQuery. + */ + @java.lang.Override + public java.lang.String getSuggestedQuery() { + java.lang.Object ref = suggestedQuery_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestedQuery_ = s; + return s; + } + } + + /** + * + * + *
            +   * Corrected query with low confidence, AKA did you mean query.
            +   * Compared with corrected_query, this field is set when SpellCorrector
            +   * returned a response, but FPR(full page replacement) is not triggered
            +   * because the corrction is of low confidence(eg, reversed because there are
            +   * matches of the original query in document corpus).
            +   * 
            + * + * string suggested_query = 24; + * + * @return The bytes for suggestedQuery. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSuggestedQueryBytes() { + java.lang.Object ref = suggestedQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestedQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int SUMMARY_FIELD_NUMBER = 9; private com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary_; @@ -37882,11 +41877,12 @@ public boolean hasQueryExpansionInfo() { * * *
            -   * Natural language query understanding information for the returned results.
            +   * Output only. Natural language query understanding information for the
            +   * returned results.
                * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the naturalLanguageQueryUnderstandingInfo field is set. @@ -37900,11 +41896,12 @@ public boolean hasNaturalLanguageQueryUnderstandingInfo() { * * *
            -   * Natural language query understanding information for the returned results.
            +   * Output only. Natural language query understanding information for the
            +   * returned results.
                * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The naturalLanguageQueryUnderstandingInfo. @@ -37923,11 +41920,12 @@ public boolean hasNaturalLanguageQueryUnderstandingInfo() { * * *
            -   * Natural language query understanding information for the returned results.
            +   * Output only. Natural language query understanding information for the
            +   * returned results.
                * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ @java.lang.Override @@ -38102,6 +42100,141 @@ public com.google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult getOn return oneBoxResults_.get(index); } + public static final int SEARCH_LINK_PROMOTIONS_FIELD_NUMBER = 23; + + @SuppressWarnings("serial") + private java.util.List + searchLinkPromotions_; + + /** + * + * + *
            +   * Promotions for site search.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + @java.lang.Override + public java.util.List + getSearchLinkPromotionsList() { + return searchLinkPromotions_; + } + + /** + * + * + *
            +   * Promotions for site search.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.SearchLinkPromotionOrBuilder> + getSearchLinkPromotionsOrBuilderList() { + return searchLinkPromotions_; + } + + /** + * + * + *
            +   * Promotions for site search.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + @java.lang.Override + public int getSearchLinkPromotionsCount() { + return searchLinkPromotions_.size(); + } + + /** + * + * + *
            +   * Promotions for site search.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion getSearchLinkPromotions( + int index) { + return searchLinkPromotions_.get(index); + } + + /** + * + * + *
            +   * Promotions for site search.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchLinkPromotionOrBuilder + getSearchLinkPromotionsOrBuilder(int index) { + return searchLinkPromotions_.get(index); + } + + public static final int SEMANTIC_STATE_FIELD_NUMBER = 36; + private int semanticState_ = 0; + + /** + * + * + *
            +   * Output only. Indicates the semantic state of the search response.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for semanticState. + */ + @java.lang.Override + public int getSemanticStateValue() { + return semanticState_; + } + + /** + * + * + *
            +   * Output only. Indicates the semantic state of the search response.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The semanticState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState getSemanticState() { + com.google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState result = + com.google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState.forNumber( + semanticState_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -38161,6 +42294,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < oneBoxResults_.size(); i++) { output.writeMessage(20, oneBoxResults_.get(i)); } + for (int i = 0; i < searchLinkPromotions_.size(); i++) { + output.writeMessage(23, searchLinkPromotions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(suggestedQuery_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 24, suggestedQuery_); + } + if (semanticState_ + != com.google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState + .SEMANTIC_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(36, semanticState_); + } getUnknownFields().writeTo(output); } @@ -38223,6 +42368,20 @@ public int getSerializedSize() { for (int i = 0; i < oneBoxResults_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, oneBoxResults_.get(i)); } + for (int i = 0; i < searchLinkPromotions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 23, searchLinkPromotions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(suggestedQuery_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(24, suggestedQuery_); + } + if (semanticState_ + != com.google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState + .SEMANTIC_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(36, semanticState_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -38250,6 +42409,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRedirectUri().equals(other.getRedirectUri())) return false; if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!getCorrectedQuery().equals(other.getCorrectedQuery())) return false; + if (!getSuggestedQuery().equals(other.getSuggestedQuery())) return false; if (hasSummary() != other.hasSummary()) return false; if (hasSummary()) { if (!getSummary().equals(other.getSummary())) return false; @@ -38271,6 +42431,8 @@ public boolean equals(final java.lang.Object obj) { if (!getSessionInfo().equals(other.getSessionInfo())) return false; } if (!getOneBoxResultsList().equals(other.getOneBoxResultsList())) return false; + if (!getSearchLinkPromotionsList().equals(other.getSearchLinkPromotionsList())) return false; + if (semanticState_ != other.semanticState_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -38304,6 +42466,8 @@ public int hashCode() { hash = (53 * hash) + getNextPageToken().hashCode(); hash = (37 * hash) + CORRECTED_QUERY_FIELD_NUMBER; hash = (53 * hash) + getCorrectedQuery().hashCode(); + hash = (37 * hash) + SUGGESTED_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getSuggestedQuery().hashCode(); if (hasSummary()) { hash = (37 * hash) + SUMMARY_FIELD_NUMBER; hash = (53 * hash) + getSummary().hashCode(); @@ -38332,6 +42496,12 @@ public int hashCode() { hash = (37 * hash) + ONE_BOX_RESULTS_FIELD_NUMBER; hash = (53 * hash) + getOneBoxResultsList().hashCode(); } + if (getSearchLinkPromotionsCount() > 0) { + hash = (37 * hash) + SEARCH_LINK_PROMOTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSearchLinkPromotionsList().hashCode(); + } + hash = (37 * hash) + SEMANTIC_STATE_FIELD_NUMBER; + hash = (53 * hash) + semanticState_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -38485,6 +42655,7 @@ private void maybeForceBuilderInitialization() { internalGetNaturalLanguageQueryUnderstandingInfoFieldBuilder(); internalGetSessionInfoFieldBuilder(); internalGetOneBoxResultsFieldBuilder(); + internalGetSearchLinkPromotionsFieldBuilder(); } } @@ -38516,6 +42687,7 @@ public Builder clear() { redirectUri_ = ""; nextPageToken_ = ""; correctedQuery_ = ""; + suggestedQuery_ = ""; summary_ = null; if (summaryBuilder_ != null) { summaryBuilder_.dispose(); @@ -38528,7 +42700,7 @@ public Builder clear() { geoSearchDebugInfo_ = null; geoSearchDebugInfoBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); queryExpansionInfo_ = null; if (queryExpansionInfoBuilder_ != null) { queryExpansionInfoBuilder_.dispose(); @@ -38550,7 +42722,15 @@ public Builder clear() { oneBoxResults_ = null; oneBoxResultsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); + if (searchLinkPromotionsBuilder_ == null) { + searchLinkPromotions_ = java.util.Collections.emptyList(); + } else { + searchLinkPromotions_ = null; + searchLinkPromotionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00010000); + semanticState_ = 0; return this; } @@ -38607,23 +42787,32 @@ private void buildPartialRepeatedFields( result.facets_ = facetsBuilder_.build(); } if (geoSearchDebugInfoBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { geoSearchDebugInfo_ = java.util.Collections.unmodifiableList(geoSearchDebugInfo_); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); } result.geoSearchDebugInfo_ = geoSearchDebugInfo_; } else { result.geoSearchDebugInfo_ = geoSearchDebugInfoBuilder_.build(); } if (oneBoxResultsBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { oneBoxResults_ = java.util.Collections.unmodifiableList(oneBoxResults_); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } result.oneBoxResults_ = oneBoxResults_; } else { result.oneBoxResults_ = oneBoxResultsBuilder_.build(); } + if (searchLinkPromotionsBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0)) { + searchLinkPromotions_ = java.util.Collections.unmodifiableList(searchLinkPromotions_); + bitField0_ = (bitField0_ & ~0x00010000); + } + result.searchLinkPromotions_ = searchLinkPromotions_; + } else { + result.searchLinkPromotions_ = searchLinkPromotionsBuilder_.build(); + } } private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchResponse result) { @@ -38652,32 +42841,38 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SearchRespons result.correctedQuery_ = correctedQuery_; } if (((from_bitField0_ & 0x00000100) != 0)) { + result.suggestedQuery_ = suggestedQuery_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { result.summary_ = summaryBuilder_ == null ? summary_ : summaryBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { appliedControls_.makeImmutable(); result.appliedControls_ = appliedControls_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.queryExpansionInfo_ = queryExpansionInfoBuilder_ == null ? queryExpansionInfo_ : queryExpansionInfoBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.naturalLanguageQueryUnderstandingInfo_ = naturalLanguageQueryUnderstandingInfoBuilder_ == null ? naturalLanguageQueryUnderstandingInfo_ : naturalLanguageQueryUnderstandingInfoBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.sessionInfo_ = sessionInfoBuilder_ == null ? sessionInfo_ : sessionInfoBuilder_.build(); to_bitField0_ |= 0x00000010; } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.semanticState_ = semanticState_; + } result.bitField0_ |= to_bitField0_; } @@ -38774,13 +42969,18 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse bitField0_ |= 0x00000080; onChanged(); } + if (!other.getSuggestedQuery().isEmpty()) { + suggestedQuery_ = other.suggestedQuery_; + bitField0_ |= 0x00000100; + onChanged(); + } if (other.hasSummary()) { mergeSummary(other.getSummary()); } if (!other.appliedControls_.isEmpty()) { if (appliedControls_.isEmpty()) { appliedControls_ = other.appliedControls_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } else { ensureAppliedControlsIsMutable(); appliedControls_.addAll(other.appliedControls_); @@ -38791,7 +42991,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse if (!other.geoSearchDebugInfo_.isEmpty()) { if (geoSearchDebugInfo_.isEmpty()) { geoSearchDebugInfo_ = other.geoSearchDebugInfo_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); } else { ensureGeoSearchDebugInfoIsMutable(); geoSearchDebugInfo_.addAll(other.geoSearchDebugInfo_); @@ -38804,7 +43004,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse geoSearchDebugInfoBuilder_.dispose(); geoSearchDebugInfoBuilder_ = null; geoSearchDebugInfo_ = other.geoSearchDebugInfo_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); geoSearchDebugInfoBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetGeoSearchDebugInfoFieldBuilder() @@ -38828,7 +43028,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse if (!other.oneBoxResults_.isEmpty()) { if (oneBoxResults_.isEmpty()) { oneBoxResults_ = other.oneBoxResults_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } else { ensureOneBoxResultsIsMutable(); oneBoxResults_.addAll(other.oneBoxResults_); @@ -38841,7 +43041,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse oneBoxResultsBuilder_.dispose(); oneBoxResultsBuilder_ = null; oneBoxResults_ = other.oneBoxResults_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); oneBoxResultsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetOneBoxResultsFieldBuilder() @@ -38851,6 +43051,36 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SearchResponse } } } + if (searchLinkPromotionsBuilder_ == null) { + if (!other.searchLinkPromotions_.isEmpty()) { + if (searchLinkPromotions_.isEmpty()) { + searchLinkPromotions_ = other.searchLinkPromotions_; + bitField0_ = (bitField0_ & ~0x00010000); + } else { + ensureSearchLinkPromotionsIsMutable(); + searchLinkPromotions_.addAll(other.searchLinkPromotions_); + } + onChanged(); + } + } else { + if (!other.searchLinkPromotions_.isEmpty()) { + if (searchLinkPromotionsBuilder_.isEmpty()) { + searchLinkPromotionsBuilder_.dispose(); + searchLinkPromotionsBuilder_ = null; + searchLinkPromotions_ = other.searchLinkPromotions_; + bitField0_ = (bitField0_ & ~0x00010000); + searchLinkPromotionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSearchLinkPromotionsFieldBuilder() + : null; + } else { + searchLinkPromotionsBuilder_.addAllMessages(other.searchLinkPromotions_); + } + } + } + if (other.semanticState_ != 0) { + setSemanticStateValue(other.getSemanticStateValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -38940,7 +43170,7 @@ public Builder mergeFrom( case 74: { input.readMessage(internalGetSummaryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 74 case 82: @@ -38960,7 +43190,7 @@ public Builder mergeFrom( { input.readMessage( internalGetQueryExpansionInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 114 case 122: @@ -38968,7 +43198,7 @@ public Builder mergeFrom( input.readMessage( internalGetNaturalLanguageQueryUnderstandingInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 122 case 130: @@ -38990,7 +43220,7 @@ public Builder mergeFrom( { input.readMessage( internalGetSessionInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 154 case 162: @@ -39008,6 +43238,32 @@ public Builder mergeFrom( } break; } // case 162 + case 186: + { + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.parser(), + extensionRegistry); + if (searchLinkPromotionsBuilder_ == null) { + ensureSearchLinkPromotionsIsMutable(); + searchLinkPromotions_.add(m); + } else { + searchLinkPromotionsBuilder_.addMessage(m); + } + break; + } // case 186 + case 194: + { + suggestedQuery_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 194 + case 288: + { + semanticState_ = input.readEnum(); + bitField0_ |= 0x00020000; + break; + } // case 288 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -40628,6 +44884,137 @@ public Builder setCorrectedQueryBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object suggestedQuery_ = ""; + + /** + * + * + *
            +     * Corrected query with low confidence, AKA did you mean query.
            +     * Compared with corrected_query, this field is set when SpellCorrector
            +     * returned a response, but FPR(full page replacement) is not triggered
            +     * because the corrction is of low confidence(eg, reversed because there are
            +     * matches of the original query in document corpus).
            +     * 
            + * + * string suggested_query = 24; + * + * @return The suggestedQuery. + */ + public java.lang.String getSuggestedQuery() { + java.lang.Object ref = suggestedQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestedQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Corrected query with low confidence, AKA did you mean query.
            +     * Compared with corrected_query, this field is set when SpellCorrector
            +     * returned a response, but FPR(full page replacement) is not triggered
            +     * because the corrction is of low confidence(eg, reversed because there are
            +     * matches of the original query in document corpus).
            +     * 
            + * + * string suggested_query = 24; + * + * @return The bytes for suggestedQuery. + */ + public com.google.protobuf.ByteString getSuggestedQueryBytes() { + java.lang.Object ref = suggestedQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestedQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Corrected query with low confidence, AKA did you mean query.
            +     * Compared with corrected_query, this field is set when SpellCorrector
            +     * returned a response, but FPR(full page replacement) is not triggered
            +     * because the corrction is of low confidence(eg, reversed because there are
            +     * matches of the original query in document corpus).
            +     * 
            + * + * string suggested_query = 24; + * + * @param value The suggestedQuery to set. + * @return This builder for chaining. + */ + public Builder setSuggestedQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + suggestedQuery_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Corrected query with low confidence, AKA did you mean query.
            +     * Compared with corrected_query, this field is set when SpellCorrector
            +     * returned a response, but FPR(full page replacement) is not triggered
            +     * because the corrction is of low confidence(eg, reversed because there are
            +     * matches of the original query in document corpus).
            +     * 
            + * + * string suggested_query = 24; + * + * @return This builder for chaining. + */ + public Builder clearSuggestedQuery() { + suggestedQuery_ = getDefaultInstance().getSuggestedQuery(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Corrected query with low confidence, AKA did you mean query.
            +     * Compared with corrected_query, this field is set when SpellCorrector
            +     * returned a response, but FPR(full page replacement) is not triggered
            +     * because the corrction is of low confidence(eg, reversed because there are
            +     * matches of the original query in document corpus).
            +     * 
            + * + * string suggested_query = 24; + * + * @param value The bytes for suggestedQuery to set. + * @return This builder for chaining. + */ + public Builder setSuggestedQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + suggestedQuery_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + private com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary, @@ -40650,7 +45037,7 @@ public Builder setCorrectedQueryBytes(com.google.protobuf.ByteString value) { * @return Whether the summary field is set. */ public boolean hasSummary() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -40699,7 +45086,7 @@ public Builder setSummary( } else { summaryBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -40723,7 +45110,7 @@ public Builder setSummary( } else { summaryBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -40743,7 +45130,7 @@ public Builder setSummary( public Builder mergeSummary( com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary value) { if (summaryBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && summary_ != null && summary_ != com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary @@ -40756,7 +45143,7 @@ public Builder mergeSummary( summaryBuilder_.mergeFrom(value); } if (summary_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -40775,7 +45162,7 @@ public Builder mergeSummary( * .google.cloud.discoveryengine.v1beta.SearchResponse.Summary summary = 9; */ public Builder clearSummary() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); summary_ = null; if (summaryBuilder_ != null) { summaryBuilder_.dispose(); @@ -40799,7 +45186,7 @@ public Builder clearSummary() { */ public com.google.cloud.discoveryengine.v1beta.SearchResponse.Summary.Builder getSummaryBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return internalGetSummaryFieldBuilder().getBuilder(); } @@ -40863,7 +45250,7 @@ private void ensureAppliedControlsIsMutable() { if (!appliedControls_.isModifiable()) { appliedControls_ = new com.google.protobuf.LazyStringArrayList(appliedControls_); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } /** @@ -40948,7 +45335,7 @@ public Builder setAppliedControls(int index, java.lang.String value) { } ensureAppliedControlsIsMutable(); appliedControls_.set(index, value); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -40971,7 +45358,7 @@ public Builder addAppliedControls(java.lang.String value) { } ensureAppliedControlsIsMutable(); appliedControls_.add(value); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -40991,7 +45378,7 @@ public Builder addAppliedControls(java.lang.String value) { public Builder addAllAppliedControls(java.lang.Iterable values) { ensureAppliedControlsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, appliedControls_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -41009,7 +45396,7 @@ public Builder addAllAppliedControls(java.lang.Iterable values */ public Builder clearAppliedControls() { appliedControls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); ; onChanged(); return this; @@ -41034,7 +45421,7 @@ public Builder addAppliedControlsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureAppliedControlsIsMutable(); appliedControls_.add(value); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -41044,12 +45431,12 @@ public Builder addAppliedControlsBytes(com.google.protobuf.ByteString value) { geoSearchDebugInfo_ = java.util.Collections.emptyList(); private void ensureGeoSearchDebugInfoIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { + if (!((bitField0_ & 0x00000800) != 0)) { geoSearchDebugInfo_ = new java.util.ArrayList< com.google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo>( geoSearchDebugInfo_); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; } } @@ -41245,7 +45632,7 @@ public Builder addAllGeoSearchDebugInfo( public Builder clearGeoSearchDebugInfo() { if (geoSearchDebugInfoBuilder_ == null) { geoSearchDebugInfo_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { geoSearchDebugInfoBuilder_.clear(); @@ -41359,7 +45746,7 @@ public Builder removeGeoSearchDebugInfo(int index) { com.google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfoOrBuilder>( geoSearchDebugInfo_, - ((bitField0_ & 0x00000400) != 0), + ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); geoSearchDebugInfo_ = null; @@ -41389,7 +45776,7 @@ public Builder removeGeoSearchDebugInfo(int index) { * @return Whether the queryExpansionInfo field is set. */ public boolean hasQueryExpansionInfo() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -41438,7 +45825,7 @@ public Builder setQueryExpansionInfo( } else { queryExpansionInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -41462,7 +45849,7 @@ public Builder setQueryExpansionInfo( } else { queryExpansionInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -41481,7 +45868,7 @@ public Builder setQueryExpansionInfo( public Builder mergeQueryExpansionInfo( com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo value) { if (queryExpansionInfoBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && queryExpansionInfo_ != null && queryExpansionInfo_ != com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo @@ -41494,7 +45881,7 @@ public Builder mergeQueryExpansionInfo( queryExpansionInfoBuilder_.mergeFrom(value); } if (queryExpansionInfo_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -41512,7 +45899,7 @@ public Builder mergeQueryExpansionInfo( *
            */ public Builder clearQueryExpansionInfo() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); queryExpansionInfo_ = null; if (queryExpansionInfoBuilder_ != null) { queryExpansionInfoBuilder_.dispose(); @@ -41535,7 +45922,7 @@ public Builder clearQueryExpansionInfo() { */ public com.google.cloud.discoveryengine.v1beta.SearchResponse.QueryExpansionInfo.Builder getQueryExpansionInfoBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return internalGetQueryExpansionInfoFieldBuilder().getBuilder(); } @@ -41607,28 +45994,30 @@ public Builder clearQueryExpansionInfo() { * * *
            -     * Natural language query understanding information for the returned results.
            +     * Output only. Natural language query understanding information for the
            +     * returned results.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the naturalLanguageQueryUnderstandingInfo field is set. */ public boolean hasNaturalLanguageQueryUnderstandingInfo() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** * * *
            -     * Natural language query understanding information for the returned results.
            +     * Output only. Natural language query understanding information for the
            +     * returned results.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The naturalLanguageQueryUnderstandingInfo. @@ -41650,11 +46039,12 @@ public boolean hasNaturalLanguageQueryUnderstandingInfo() { * * *
            -     * Natural language query understanding information for the returned results.
            +     * Output only. Natural language query understanding information for the
            +     * returned results.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setNaturalLanguageQueryUnderstandingInfo( @@ -41668,7 +46058,7 @@ public Builder setNaturalLanguageQueryUnderstandingInfo( } else { naturalLanguageQueryUnderstandingInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -41677,11 +46067,12 @@ public Builder setNaturalLanguageQueryUnderstandingInfo( * * *
            -     * Natural language query understanding information for the returned results.
            +     * Output only. Natural language query understanding information for the
            +     * returned results.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder setNaturalLanguageQueryUnderstandingInfo( @@ -41693,7 +46084,7 @@ public Builder setNaturalLanguageQueryUnderstandingInfo( } else { naturalLanguageQueryUnderstandingInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -41702,18 +46093,19 @@ public Builder setNaturalLanguageQueryUnderstandingInfo( * * *
            -     * Natural language query understanding information for the returned results.
            +     * Output only. Natural language query understanding information for the
            +     * returned results.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder mergeNaturalLanguageQueryUnderstandingInfo( com.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo value) { if (naturalLanguageQueryUnderstandingInfoBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && naturalLanguageQueryUnderstandingInfo_ != null && naturalLanguageQueryUnderstandingInfo_ != com.google.cloud.discoveryengine.v1beta.SearchResponse @@ -41726,7 +46118,7 @@ public Builder mergeNaturalLanguageQueryUnderstandingInfo( naturalLanguageQueryUnderstandingInfoBuilder_.mergeFrom(value); } if (naturalLanguageQueryUnderstandingInfo_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -41736,15 +46128,16 @@ public Builder mergeNaturalLanguageQueryUnderstandingInfo( * * *
            -     * Natural language query understanding information for the returned results.
            +     * Output only. Natural language query understanding information for the
            +     * returned results.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearNaturalLanguageQueryUnderstandingInfo() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); naturalLanguageQueryUnderstandingInfo_ = null; if (naturalLanguageQueryUnderstandingInfoBuilder_ != null) { naturalLanguageQueryUnderstandingInfoBuilder_.dispose(); @@ -41758,17 +46151,18 @@ public Builder clearNaturalLanguageQueryUnderstandingInfo() { * * *
            -     * Natural language query understanding information for the returned results.
            +     * Output only. Natural language query understanding information for the
            +     * returned results.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.discoveryengine.v1beta.SearchResponse .NaturalLanguageQueryUnderstandingInfo.Builder getNaturalLanguageQueryUnderstandingInfoBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return internalGetNaturalLanguageQueryUnderstandingInfoFieldBuilder().getBuilder(); } @@ -41777,11 +46171,12 @@ public Builder clearNaturalLanguageQueryUnderstandingInfo() { * * *
            -     * Natural language query understanding information for the returned results.
            +     * Output only. Natural language query understanding information for the
            +     * returned results.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.cloud.discoveryengine.v1beta.SearchResponse @@ -41801,11 +46196,12 @@ public Builder clearNaturalLanguageQueryUnderstandingInfo() { * * *
            -     * Natural language query understanding information for the returned results.
            +     * Output only. Natural language query understanding information for the
            +     * returned results.
                  * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ private com.google.protobuf.SingleFieldBuilder< @@ -41855,7 +46251,7 @@ public Builder clearNaturalLanguageQueryUnderstandingInfo() { * @return Whether the sessionInfo field is set. */ public boolean hasSessionInfo() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -41909,7 +46305,7 @@ public Builder setSessionInfo( } else { sessionInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -41936,7 +46332,7 @@ public Builder setSessionInfo( } else { sessionInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -41958,7 +46354,7 @@ public Builder setSessionInfo( public Builder mergeSessionInfo( com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo value) { if (sessionInfoBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && sessionInfo_ != null && sessionInfo_ != com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo @@ -41971,7 +46367,7 @@ public Builder mergeSessionInfo( sessionInfoBuilder_.mergeFrom(value); } if (sessionInfo_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -41992,7 +46388,7 @@ public Builder mergeSessionInfo( *
            */ public Builder clearSessionInfo() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); sessionInfo_ = null; if (sessionInfoBuilder_ != null) { sessionInfoBuilder_.dispose(); @@ -42018,7 +46414,7 @@ public Builder clearSessionInfo() { */ public com.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo.Builder getSessionInfoBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return internalGetSessionInfoFieldBuilder().getBuilder(); } @@ -42084,12 +46480,12 @@ public Builder clearSessionInfo() { oneBoxResults_ = java.util.Collections.emptyList(); private void ensureOneBoxResultsIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { + if (!((bitField0_ & 0x00008000) != 0)) { oneBoxResults_ = new java.util.ArrayList< com.google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult>( oneBoxResults_); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; } } @@ -42360,7 +46756,7 @@ public Builder addAllOneBoxResults( public Builder clearOneBoxResults() { if (oneBoxResultsBuilder_ == null) { oneBoxResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); } else { oneBoxResultsBuilder_.clear(); @@ -42522,7 +46918,7 @@ public Builder removeOneBoxResults(int index) { com.google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult.Builder, com.google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResultOrBuilder>( oneBoxResults_, - ((bitField0_ & 0x00004000) != 0), + ((bitField0_ & 0x00008000) != 0), getParentForChildren(), isClean()); oneBoxResults_ = null; @@ -42530,6 +46926,539 @@ public Builder removeOneBoxResults(int index) { return oneBoxResultsBuilder_; } + private java.util.List + searchLinkPromotions_ = java.util.Collections.emptyList(); + + private void ensureSearchLinkPromotionsIsMutable() { + if (!((bitField0_ & 0x00010000) != 0)) { + searchLinkPromotions_ = + new java.util.ArrayList( + searchLinkPromotions_); + bitField0_ |= 0x00010000; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion, + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.Builder, + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotionOrBuilder> + searchLinkPromotionsBuilder_; + + /** + * + * + *
            +     * Promotions for site search.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + public java.util.List + getSearchLinkPromotionsList() { + if (searchLinkPromotionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(searchLinkPromotions_); + } else { + return searchLinkPromotionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Promotions for site search.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + public int getSearchLinkPromotionsCount() { + if (searchLinkPromotionsBuilder_ == null) { + return searchLinkPromotions_.size(); + } else { + return searchLinkPromotionsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Promotions for site search.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion getSearchLinkPromotions( + int index) { + if (searchLinkPromotionsBuilder_ == null) { + return searchLinkPromotions_.get(index); + } else { + return searchLinkPromotionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Promotions for site search.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + public Builder setSearchLinkPromotions( + int index, com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion value) { + if (searchLinkPromotionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchLinkPromotionsIsMutable(); + searchLinkPromotions_.set(index, value); + onChanged(); + } else { + searchLinkPromotionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Promotions for site search.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + public Builder setSearchLinkPromotions( + int index, + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.Builder builderForValue) { + if (searchLinkPromotionsBuilder_ == null) { + ensureSearchLinkPromotionsIsMutable(); + searchLinkPromotions_.set(index, builderForValue.build()); + onChanged(); + } else { + searchLinkPromotionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Promotions for site search.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + public Builder addSearchLinkPromotions( + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion value) { + if (searchLinkPromotionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchLinkPromotionsIsMutable(); + searchLinkPromotions_.add(value); + onChanged(); + } else { + searchLinkPromotionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Promotions for site search.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + public Builder addSearchLinkPromotions( + int index, com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion value) { + if (searchLinkPromotionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchLinkPromotionsIsMutable(); + searchLinkPromotions_.add(index, value); + onChanged(); + } else { + searchLinkPromotionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Promotions for site search.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + public Builder addSearchLinkPromotions( + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.Builder builderForValue) { + if (searchLinkPromotionsBuilder_ == null) { + ensureSearchLinkPromotionsIsMutable(); + searchLinkPromotions_.add(builderForValue.build()); + onChanged(); + } else { + searchLinkPromotionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Promotions for site search.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + public Builder addSearchLinkPromotions( + int index, + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.Builder builderForValue) { + if (searchLinkPromotionsBuilder_ == null) { + ensureSearchLinkPromotionsIsMutable(); + searchLinkPromotions_.add(index, builderForValue.build()); + onChanged(); + } else { + searchLinkPromotionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Promotions for site search.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + public Builder addAllSearchLinkPromotions( + java.lang.Iterable + values) { + if (searchLinkPromotionsBuilder_ == null) { + ensureSearchLinkPromotionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, searchLinkPromotions_); + onChanged(); + } else { + searchLinkPromotionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Promotions for site search.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + public Builder clearSearchLinkPromotions() { + if (searchLinkPromotionsBuilder_ == null) { + searchLinkPromotions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + } else { + searchLinkPromotionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Promotions for site search.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + public Builder removeSearchLinkPromotions(int index) { + if (searchLinkPromotionsBuilder_ == null) { + ensureSearchLinkPromotionsIsMutable(); + searchLinkPromotions_.remove(index); + onChanged(); + } else { + searchLinkPromotionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Promotions for site search.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.Builder + getSearchLinkPromotionsBuilder(int index) { + return internalGetSearchLinkPromotionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Promotions for site search.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchLinkPromotionOrBuilder + getSearchLinkPromotionsOrBuilder(int index) { + if (searchLinkPromotionsBuilder_ == null) { + return searchLinkPromotions_.get(index); + } else { + return searchLinkPromotionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Promotions for site search.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + public java.util.List< + ? extends com.google.cloud.discoveryengine.v1beta.SearchLinkPromotionOrBuilder> + getSearchLinkPromotionsOrBuilderList() { + if (searchLinkPromotionsBuilder_ != null) { + return searchLinkPromotionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(searchLinkPromotions_); + } + } + + /** + * + * + *
            +     * Promotions for site search.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.Builder + addSearchLinkPromotionsBuilder() { + return internalGetSearchLinkPromotionsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.getDefaultInstance()); + } + + /** + * + * + *
            +     * Promotions for site search.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.Builder + addSearchLinkPromotionsBuilder(int index) { + return internalGetSearchLinkPromotionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.getDefaultInstance()); + } + + /** + * + * + *
            +     * Promotions for site search.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + public java.util.List + getSearchLinkPromotionsBuilderList() { + return internalGetSearchLinkPromotionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion, + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.Builder, + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotionOrBuilder> + internalGetSearchLinkPromotionsFieldBuilder() { + if (searchLinkPromotionsBuilder_ == null) { + searchLinkPromotionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion, + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion.Builder, + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotionOrBuilder>( + searchLinkPromotions_, + ((bitField0_ & 0x00010000) != 0), + getParentForChildren(), + isClean()); + searchLinkPromotions_ = null; + } + return searchLinkPromotionsBuilder_; + } + + private int semanticState_ = 0; + + /** + * + * + *
            +     * Output only. Indicates the semantic state of the search response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for semanticState. + */ + @java.lang.Override + public int getSemanticStateValue() { + return semanticState_; + } + + /** + * + * + *
            +     * Output only. Indicates the semantic state of the search response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for semanticState to set. + * @return This builder for chaining. + */ + public Builder setSemanticStateValue(int value) { + semanticState_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Indicates the semantic state of the search response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The semanticState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState getSemanticState() { + com.google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState result = + com.google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState.forNumber( + semanticState_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Output only. Indicates the semantic state of the search response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The semanticState to set. + * @return This builder for chaining. + */ + public Builder setSemanticState( + com.google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00020000; + semanticState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Indicates the semantic state of the search response.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearSemanticState() { + bitField0_ = (bitField0_ & ~0x00020000); + semanticState_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SearchResponse) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponseOrBuilder.java index e96d461d1a66..b8846e95385e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponseOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchResponseOrBuilder.java @@ -341,6 +341,40 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.FacetOrBuilder getFacetsO */ com.google.protobuf.ByteString getCorrectedQueryBytes(); + /** + * + * + *
            +   * Corrected query with low confidence, AKA did you mean query.
            +   * Compared with corrected_query, this field is set when SpellCorrector
            +   * returned a response, but FPR(full page replacement) is not triggered
            +   * because the corrction is of low confidence(eg, reversed because there are
            +   * matches of the original query in document corpus).
            +   * 
            + * + * string suggested_query = 24; + * + * @return The suggestedQuery. + */ + java.lang.String getSuggestedQuery(); + + /** + * + * + *
            +   * Corrected query with low confidence, AKA did you mean query.
            +   * Compared with corrected_query, this field is set when SpellCorrector
            +   * returned a response, but FPR(full page replacement) is not triggered
            +   * because the corrction is of low confidence(eg, reversed because there are
            +   * matches of the original query in document corpus).
            +   * 
            + * + * string suggested_query = 24; + * + * @return The bytes for suggestedQuery. + */ + com.google.protobuf.ByteString getSuggestedQueryBytes(); + /** * * @@ -530,11 +564,12 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo getGeo * * *
            -   * Natural language query understanding information for the returned results.
            +   * Output only. Natural language query understanding information for the
            +   * returned results.
                * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return Whether the naturalLanguageQueryUnderstandingInfo field is set. @@ -545,11 +580,12 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo getGeo * * *
            -   * Natural language query understanding information for the returned results.
            +   * Output only. Natural language query understanding information for the
            +   * returned results.
                * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * * @return The naturalLanguageQueryUnderstandingInfo. @@ -561,11 +597,12 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo getGeo * * *
            -   * Natural language query understanding information for the returned results.
            +   * Output only. Natural language query understanding information for the
            +   * returned results.
                * 
            * * - * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15; + * .google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo natural_language_query_understanding_info = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ com.google.cloud.discoveryengine.v1beta.SearchResponse @@ -695,4 +732,102 @@ com.google.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo getGeo */ com.google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResultOrBuilder getOneBoxResultsOrBuilder(int index); + + /** + * + * + *
            +   * Promotions for site search.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + java.util.List + getSearchLinkPromotionsList(); + + /** + * + * + *
            +   * Promotions for site search.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotion getSearchLinkPromotions(int index); + + /** + * + * + *
            +   * Promotions for site search.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + int getSearchLinkPromotionsCount(); + + /** + * + * + *
            +   * Promotions for site search.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + java.util.List + getSearchLinkPromotionsOrBuilderList(); + + /** + * + * + *
            +   * Promotions for site search.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchLinkPromotion search_link_promotions = 23; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchLinkPromotionOrBuilder + getSearchLinkPromotionsOrBuilder(int index); + + /** + * + * + *
            +   * Output only. Indicates the semantic state of the search response.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for semanticState. + */ + int getSemanticStateValue(); + + /** + * + * + *
            +   * Output only. Indicates the semantic state of the search response.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState semantic_state = 36 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The semanticState. + */ + com.google.cloud.discoveryengine.v1beta.SearchResponse.SemanticState getSemanticState(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java index e5f1f58b8fde..ea37b48b30e8 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchServiceProto.java @@ -96,6 +96,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_MultiModalSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_MultiModalSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelPromptSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -128,14 +132,42 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DisplaySpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DisplaySpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CrowdingSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CrowdingSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_RelevanceThresholdSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_RelevanceThresholdSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_PersonalizationSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_PersonalizationSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceScoreSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceScoreSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAddonSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAddonSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CustomRankingParams_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CustomRankingParams_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -152,10 +184,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_RankSignals_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -164,6 +192,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_RankSignals_CustomSignal_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_RankSignals_CustomSignal_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -208,6 +240,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_Reference_ChunkContent_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_Reference_ChunkContent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_Blob_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_Blob_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SummaryWithMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -276,21 +316,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pi/field_behavior.proto\032\031google/api/reso" + "urce.proto\032/google/cloud/discoveryengine/v1beta/chunk.proto\0320google/cloud/discov" + "eryengine/v1beta/common.proto\0322google/cl" - + "oud/discoveryengine/v1beta/document.proto\032\034google/protobuf/struct.proto\"\2327\n\r" + + "oud/discoveryengine/v1beta/document.proto\032\034google/protobuf/struct.proto\"\364L\n\r" + "SearchRequest\022L\n" + "\016serving_config\030\001 \001(\tB4\340A\002\372A.\n" + ",discoveryengine.googleapis.com/ServingConfig\022:\n" + "\006branch\030\002 \001(\tB*\372A\'\n" + "%discoveryengine.googleapis.com/Branch\022\r\n" - + "\005query\030\003 \001(\t\022R\n" - + "\013image_query\030\023 \001(\0132=.google.cloud.d" - + "iscoveryengine.v1beta.SearchRequest.ImageQuery\022\021\n" + + "\005query\030\003 \001(\t\022\034\n" + + "\017page_categories\030? \003(\tB\003\340A\001\022R\n" + + "\013image_query\030\023" + + " \001(\0132=.google.cloud.discoveryengine.v1beta.SearchRequest.ImageQuery\022\021\n" + "\tpage_size\030\004 \001(\005\022\022\n\n" + "page_token\030\005 \001(\t\022\016\n" + "\006offset\030\006 \001(\005\022\031\n" + "\021one_box_page_size\030/ \001(\005\022Z\n" - + "\020data_store_specs\030 \003(\0132@.goo" - + "gle.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec\022\016\n" + + "\020data_store_specs\030 \003(\0132@.google.cloud." + + "discoveryengine.v1beta.SearchRequest.DataStoreSpec\022\'\n" + + "\032num_results_per_data_store\030A \001(\005B\003\340A\001\022\016\n" + "\006filter\030\007 \001(\t\022\030\n" + "\020canonical_filter\030\035 \001(\t\022\020\n" + "\010order_by\030\010 \001(\t\022@\n" @@ -298,54 +340,69 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132-.google.cloud.discoveryengine.v1beta.UserInfo\022\025\n\r" + "language_code\030# \001(\t\022\023\n" + "\013region_code\030$ \001(\t\022Q\n" - + "\013facet_specs\030\t" - + " \003(\0132<.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec\022P\n\n" + + "\013facet_specs\030\t \003" + + "(\0132<.google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec\022P\n\n" + "boost_spec\030\n" + " \001(\0132<.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpec\022N\n" - + "\006params\030\013" - + " \003(\0132>.google.cloud.discoveryengine.v1beta.SearchRequest.ParamsEntry\022c\n" + + "\006params\030\013 \003" + + "(\0132>.google.cloud.discoveryengine.v1beta.SearchRequest.ParamsEntry\022c\n" + "\024query_expansion_spec\030\r" - + " \001(\0132E.google.cloud" - + ".discoveryengine.v1beta.SearchRequest.QueryExpansionSpec\022e\n" - + "\025spell_correction_spec\030\016 \001(\0132F.google.cloud.discoveryengine.v" - + "1beta.SearchRequest.SpellCorrectionSpec\022\026\n" - + "\016user_pseudo_id\030\017 \001(\t\022a\n" - + "\023content_search_spec\030\030 \001(\0132D.google.cloud.discoveryeng" - + "ine.v1beta.SearchRequest.ContentSearchSpec\022X\n" - + "\016embedding_spec\030\027 \001(\0132@.google.clou" - + "d.discoveryengine.v1beta.SearchRequest.EmbeddingSpec\022\032\n" - + "\022ranking_expression\030\032 \001(\t\022t\n" - + "\032ranking_expression_backend\0305 \001(\0162K.g" - + "oogle.cloud.discoveryengine.v1beta.Searc" - + "hRequest.RankingExpressionBackendB\003\340A\001\022\023\n" + + " \001(\0132E.google.cloud.discover" + + "yengine.v1beta.SearchRequest.QueryExpansionSpec\022e\n" + + "\025spell_correction_spec\030\016 \001(\0132F" + + ".google.cloud.discoveryengine.v1beta.SearchRequest.SpellCorrectionSpec\022\033\n" + + "\016user_pseudo_id\030\017 \001(\tB\003\340A\001\022a\n" + + "\023content_search_spec\030\030 \001(\0132D.google.cloud.discoveryengine." + + "v1beta.SearchRequest.ContentSearchSpec\022X\n" + + "\016embedding_spec\030\027 \001(\0132@.google.cloud.di" + + "scoveryengine.v1beta.SearchRequest.EmbeddingSpec\022\037\n" + + "\022ranking_expression\030\032 \001(\tB\003\340A\001\022t\n" + + "\032ranking_expression_backend\0305 \001(\0162K." + + "google.cloud.discoveryengine.v1beta.Sear" + + "chRequest.RankingExpressionBackendB\003\340A\001\022\023\n" + "\013safe_search\030\024 \001(\010\022W\n" - + "\013user_labels\030\026 \003(\013" - + "2B.google.cloud.discoveryengine.v1beta.SearchRequest.UserLabelsEntry\022\213\001\n" - + ")natural_language_query_understanding_spec\030\034 \001(\013" - + "2X.google.cloud.discoveryengine.v1beta.S" - + "earchRequest.NaturalLanguageQueryUnderstandingSpec\022g\n" - + "\027search_as_you_type_spec\030\037 " - + "\001(\0132F.google.cloud.discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec\022<\n" + + "\013user_labels\030\026 \003(" + + "\0132B.google.cloud.discoveryengine.v1beta.SearchRequest.UserLabelsEntry\022\220\001\n" + + ")natural_language_query_understanding_spec\030\034 \001(" + + "\0132X.google.cloud.discoveryengine.v1beta." + + "SearchRequest.NaturalLanguageQueryUnderstandingSpecB\003\340A\001\022g\n" + + "\027search_as_you_type_spec\030\037 \001(\0132F.google.cloud.discoveryengine" + + ".v1beta.SearchRequest.SearchAsYouTypeSpec\022Y\n" + + "\014display_spec\030& \001(\0132>.google.cloud.d" + + "iscoveryengine.v1beta.SearchRequest.DisplaySpecB\003\340A\001\022\\\n" + + "\016crowding_specs\030( \003(\0132?.g" + + "oogle.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpecB\003\340A\001\022<\n" + "\007session\030) \001(\tB+\372A(\n" + "&discoveryengine.googleapis.com/Session\022T\n" - + "\014session_spec\030* \001(\0132" - + ">.google.cloud.discoveryengine.v1beta.SearchRequest.SessionSpec\022b\n" - + "\023relevance_threshold\030, \001(\0162E.google.cloud.discoveryeng" - + "ine.v1beta.SearchRequest.RelevanceThreshold\022d\n" - + "\024personalization_spec\030. \001(\0132F.goog" - + "le.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec\032,\n\n" + + "\014session_spec\030* \001(\0132>.google." + + "cloud.discoveryengine.v1beta.SearchRequest.SessionSpec\022b\n" + + "\023relevance_threshold\030, " + + "\001(\0162E.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThreshold\022j\n" + + "\025relevance_filter_spec\030V \001(\0132F.google.cloud" + + ".discoveryengine.v1beta.SearchRequest.RelevanceFilterSpecB\003\340A\001\022d\n" + + "\024personalization_spec\030. \001(\0132F.google.cloud.discoveryeng" + + "ine.v1beta.SearchRequest.PersonalizationSpec\022h\n" + + "\024relevance_score_spec\0304 \001(\0132E.goo" + + "gle.cloud.discoveryengine.v1beta.SearchRequest.RelevanceScoreSpecB\003\340A\001\022b\n" + + "\021search_addon_spec\030> \001(\0132B.google.cloud.discove" + + "ryengine.v1beta.SearchRequest.SearchAddonSpecB\003\340A\001\022j\n" + + "\025custom_ranking_params\030@ \001(\0132F.google.cloud.discoveryengine.v1beta." + + "SearchRequest.CustomRankingParamsB\003\340A\001\022\023\n" + + "\006entity\030B \001(\tB\003\340A\001\032,\n\n" + "ImageQuery\022\025\n" + "\013image_bytes\030\001 \001(\tH\000B\007\n" - + "\005image\032\301\001\n\r" + + "\005image\032\201\002\n\r" + "DataStoreSpec\022D\n\n" + "data_store\030\001 \001(\tB0\340A\002\372A*\n" + "(discoveryengine.googleapis.com/DataStore\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\022U\n\n" - + "boost_spec\030\006 \001(\013" - + "2<.google.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecB\003\340A\001\032\204\003\n" + + "boost_spec\030\006 \001(\0132<.goo" + + "gle.cloud.discoveryengine.v1beta.SearchRequest.BoostSpecB\003\340A\001\022$\n" + + "\027custom_search_operators\030\007 \001(\tB\003\340A\001\022\030\n" + + "\013num_results\030\t \001(\005B\003\340A\001\032\204\003\n" + "\tFacetSpec\022]\n" - + "\tfacet_key\030\001 \001(\0132E.google.cloud.disc" - + "overyengine.v1beta.SearchRequest.FacetSpec.FacetKeyB\003\340A\002\022\r\n" + + "\tfacet_key\030\001 \001(\0132E" + + ".google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKeyB\003\340A\002\022\r\n" + "\005limit\030\002 \001(\005\022\034\n" + "\024excluded_filter_keys\030\003 \003(\t\022\037\n" + "\027enable_dynamic_position\030\004 \001(\010\032\311\001\n" @@ -358,23 +415,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020case_insensitive\030\006 \001(\010\022\020\n" + "\010order_by\030\007 \001(\t\032\320\007\n" + "\tBoostSpec\022n\n" - + "\025condition_boost_specs\030\001 \003(\0132O.google.cloud.d" - + "iscoveryengine.v1beta.SearchRequest.BoostSpec.ConditionBoostSpec\032\322\006\n" + + "\025condition_boost_specs\030\001 \003(\0132O.google.cloud.discoveryengine.v1beta." + + "SearchRequest.BoostSpec.ConditionBoostSpec\032\322\006\n" + "\022ConditionBoostSpec\022\021\n" + "\tcondition\030\001 \001(\t\022\r\n" + "\005boost\030\002 \001(\002\022|\n" - + "\022boost_control_spec\030\003 \001(\0132`.google.c" - + "loud.discoveryengine.v1beta.SearchReques" - + "t.BoostSpec.ConditionBoostSpec.BoostControlSpec\032\233\005\n" + + "\022boost_control_spec\030\003 \001(\0132`.google.cloud.discoveryengine.v" + + "1beta.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec\032\233\005\n" + "\020BoostControlSpec\022\022\n\n" + "field_name\030\001 \001(\t\022\206\001\n" - + "\016attribute_type\030\002 \001(\0162n.google.cloud.discoveryengine.v1beta.SearchRe" - + "quest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType\022\216\001\n" - + "\022interpolation_type\030\003 \001(\0162r.google.cloud.discoverye" - + "ngine.v1beta.SearchRequest.BoostSpec.Con" - + "ditionBoostSpec.BoostControlSpec.InterpolationType\022\205\001\n" - + "\016control_points\030\004 \003(\0132m.google.cloud.discoveryengine.v1beta.Search" - + "Request.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint\032=\n" + + "\016attribute_type\030\002 \001(\0162n.google.cloud.discoveryengi" + + "ne.v1beta.SearchRequest.BoostSpec.Condit" + + "ionBoostSpec.BoostControlSpec.AttributeType\022\216\001\n" + + "\022interpolation_type\030\003 \001(\0162r.googl" + + "e.cloud.discoveryengine.v1beta.SearchReq" + + "uest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType\022\205\001\n" + + "\016control_points\030\004 \003(\0132m.google.cloud.discoveryen" + + "gine.v1beta.SearchRequest.BoostSpec.Cond" + + "itionBoostSpec.BoostControlSpec.ControlPoint\032=\n" + "\014ControlPoint\022\027\n" + "\017attribute_value\030\001 \001(\t\022\024\n" + "\014boost_amount\030\002 \001(\002\"M\n\r" @@ -386,35 +444,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036INTERPOLATION_TYPE_UNSPECIFIED\020\000\022\n\n" + "\006LINEAR\020\001\032\330\001\n" + "\022QueryExpansionSpec\022b\n" - + "\tcondition\030\001 \001(\0162O.google.cloud.discoveryengine.v1beta.Se" - + "archRequest.QueryExpansionSpec.Condition\022\036\n" + + "\tcondition\030\001 \001(\0162O.google.cloud.discove" + + "ryengine.v1beta.SearchRequest.QueryExpansionSpec.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\255\001\n" + "\023SpellCorrectionSpec\022Y\n" - + "\004mode\030\001 \001(\0162K.google.cloud.discoverye" - + "ngine.v1beta.SearchRequest.SpellCorrectionSpec.Mode\";\n" + + "\004mode\030\001 \001(\0162K.googl" + + "e.cloud.discoveryengine.v1beta.SearchRequest.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\276\014\n" + + "\004AUTO\020\002\032\324\017\n" + "\021ContentSearchSpec\022f\n" - + "\014snippet_spec\030\001 \001(\0132P.google.cloud.discoveryengine.v1beta.Searc" - + "hRequest.ContentSearchSpec.SnippetSpec\022f\n" - + "\014summary_spec\030\002 \001(\0132P.google.cloud.disc" - + "overyengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec\022{\n" - + "\027extractive_content_spec\030\003 \001(\0132Z.google.cloud.discovery" - + "engine.v1beta.SearchRequest.ContentSearchSpec.ExtractiveContentSpec\022q\n" - + "\022search_result_mode\030\004 \001(\0162U.google.cloud.discovery" - + "engine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode\022b\n\n" - + "chunk_spec\030\005 \001(\0132N.google.cloud.discoveryengine.v1beta" - + ".SearchRequest.ContentSearchSpec.ChunkSpec\032`\n" + + "\014snippet_spec\030\001 \001(\0132P.google.cloud.discoverye" + + "ngine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec\022f\n" + + "\014summary_spec\030\002 \001(\0132P.google.cloud.discoveryengine.v1beta.Sea" + + "rchRequest.ContentSearchSpec.SummarySpec\022{\n" + + "\027extractive_content_spec\030\003 \001(\0132Z.goog" + + "le.cloud.discoveryengine.v1beta.SearchRe" + + "quest.ContentSearchSpec.ExtractiveContentSpec\022q\n" + + "\022search_result_mode\030\004 \001(\0162U.goog" + + "le.cloud.discoveryengine.v1beta.SearchRe" + + "quest.ContentSearchSpec.SearchResultMode\022b\n\n" + + "chunk_spec\030\005 \001(\0132N.google.cloud.disc" + + "overyengine.v1beta.SearchRequest.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" - + "\016return_snippet\030\003 \001(\010\032\304\004\n" + + "\016return_snippet\030\003 \001(\010\032\332\007\n" + "\013SummarySpec\022\034\n" + "\024summary_result_count\030\001 \001(\005\022\031\n" + "\021include_citations\030\002 \001(\010\022 \n" @@ -422,13 +482,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " ignore_non_summary_seeking_query\030\004 \001(\010\022#\n" + "\033ignore_low_relevant_content\030\t \001(\010\022\'\n" + "\032ignore_jail_breaking_query\030\n" - + " \001(\010B\003\340A\001\022{\n" - + "\021model_prompt_spec\030\005 \001(\0132`.google.cloud.discoveryengine.v1beta.SearchR" - + "equest.ContentSearchSpec.SummarySpec.ModelPromptSpec\022\025\n\r" + + " \001(\010B\003\340A\001\022}\n" + + "\017multimodal_spec\030\013 \001(\0132_.google.cloud.discoveryengin" + + "e.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpecB\003\340A\001\022{\n" + + "\021model_prompt_spec\030\005 \001(\0132`.google.cloud.disco" + + "veryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec\022\025\n" + + "\r" + "language_code\030\006 \001(\t\022n\n\n" - + "model_spec\030\007 \001(\0132Z.google.cloud.discovery" - + "engine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec\022\033\n" - + "\023use_semantic_chunks\030\010 \001(\010\032#\n" + + "model_spec\030\007 \001(\0132Z.google.cloud.discoveryengine.v1beta.S" + + "earchRequest.ContentSearchSpec.SummarySpec.ModelSpec\022\033\n" + + "\023use_semantic_chunks\030\010 \001(\010\032\224\002\n" + + "\016MultiModalSpec\022\206\001\n" + + "\014image_source\030\003 \001(\0162k.google.cloud.discoveryengine.v1bet" + + "a.SearchRequest.ContentSearchSpec.SummarySpec.MultiModalSpec.ImageSourceB\003\340A\001\"y\n" + + "\013ImageSource\022\034\n" + + "\030IMAGE_SOURCE_UNSPECIFIED\020\000\022\031\n" + + "\025ALL_AVAILABLE_SOURCES\020\001\022\025\n" + + "\021CORPUS_IMAGE_ONLY\020\002\022\032\n" + + "\026FIGURE_GENERATION_ONLY\020\003\032#\n" + "\017ModelPromptSpec\022\020\n" + "\010preamble\030\001 \001(\t\032\034\n" + "\tModelSpec\022\017\n" @@ -447,93 +518,143 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tDOCUMENTS\020\001\022\n\n" + "\006CHUNKS\020\002\032\263\001\n\r" + "EmbeddingSpec\022k\n" - + "\021embedding_vectors\030\001 \003(\0132P.google.cloud.discoveryengine.v1beta.Sea" - + "rchRequest.EmbeddingSpec.EmbeddingVector\0325\n" + + "\021embedding_vectors\030\001 \003(\0132P.google.cloud.di" + + "scoveryengine.v1beta.SearchRequest.EmbeddingSpec.EmbeddingVector\0325\n" + "\017EmbeddingVector\022\022\n\n" + "field_path\030\001 \001(\t\022\016\n" - + "\006vector\030\002 \003(\002\032\304\002\n" + + "\006vector\030\002 \003(\002\032\350\004\n" + "%NaturalLanguageQueryUnderstandingSpec\022\227\001\n" - + "\033filter_extraction_condition\030\001 \001(\0162r.google.cloud.discovery" - + "engine.v1beta.SearchRequest.NaturalLangu" - + "ageQueryUnderstandingSpec.FilterExtractionCondition\022.\n" - + "&geo_search_query_detection_field_names\030\002 \003(\t\"Q\n" + + "\033filter_extraction_condition\030\001 \001(\0162" + + "r.google.cloud.discoveryengine.v1beta.Se" + + "archRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition\022.\n" + + "&geo_search_query_detection_field_names\030\002 \003(\t\022\230\001\n" + + "\031extracted_filter_behavior\030\003 \001(\0162" + + "p.google.cloud.discoveryengine.v1beta.Se" + + "archRequest.NaturalLanguageQueryUnderstandingSpec.ExtractedFilterBehaviorB\003\340A\001\022" + + " \n" + + "\023allowed_field_names\030\004 \003(\tB\003\340A\001\"Q\n" + "\031FilterExtractionCondition\022\031\n" + "\025CONDITION_UNSPECIFIED\020\000\022\014\n" + "\010DISABLED\020\001\022\013\n" - + "\007ENABLED\020\002\032\307\001\n" + + "\007ENABLED\020\002\"e\n" + + "\027ExtractedFilterBehavior\022)\n" + + "%EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED\020\000\022\017\n" + + "\013HARD_FILTER\020\001\022\016\n\n" + + "SOFT_BOOST\020\002\032\307\001\n" + "\023SearchAsYouTypeSpec\022c\n" - + "\tcondition\030\001 \001(\0162P.google.cloud" - + ".discoveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition\"K\n" + + "\tcondition\030\001 \001(\0162P.google.cloud.dis" + + "coveryengine.v1beta.SearchRequest.SearchAsYouTypeSpec.Condition\"K\n" + "\tCondition\022\031\n" + "\025CONDITION_UNSPECIFIED\020\000\022\014\n" + "\010DISABLED\020\001\022\013\n" + "\007ENABLED\020\002\022\010\n" - + "\004AUTO\020\003\032q\n" + + "\004AUTO\020\003\032\234\002\n" + + "\013DisplaySpec\022\177\n" + + "\034match_highlighting_condition\030\001 \001(\0162Y.goo" + + "gle.cloud.discoveryengine.v1beta.SearchR" + + "equest.DisplaySpec.MatchHighlightingCondition\"\213\001\n" + + "\032MatchHighlightingCondition\022,\n" + + "(MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED\020\000\022\037\n" + + "\033MATCH_HIGHLIGHTING_DISABLED\020\001\022\036\n" + + "\032MATCH_HIGHLIGHTING_ENABLED\020\002\032\337\001\n" + + "\014CrowdingSpec\022\r\n" + + "\005field\030\001 \001(\t\022\021\n" + + "\tmax_count\030\002 \001(\005\022R\n" + + "\004mode\030\003 \001(\0162D.google.cloud.discoveryeng" + + "ine.v1beta.SearchRequest.CrowdingSpec.Mode\"Y\n" + + "\004Mode\022\024\n" + + "\020MODE_UNSPECIFIED\020\000\022\030\n" + + "\024DROP_CROWDED_RESULTS\020\001\022!\n" + + "\035DEMOTE_CROWDED_RESULTS_TO_END\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\032\246\001\n" + + " _search_result_persistence_count\032\351\003\n" + + "\023RelevanceFilterSpec\022\204\001\n" + + "\030keyword_search_threshold\030\001 \001(\0132].google.clo" + + "ud.discoveryengine.v1beta.SearchRequest." + + "RelevanceFilterSpec.RelevanceThresholdSpecB\003\340A\001\022\205\001\n" + + "\031semantic_search_threshold\030\002 \001(\0132].google.cloud.discoveryengine.v1bet" + + "a.SearchRequest.RelevanceFilterSpec.RelevanceThresholdSpecB\003\340A\001\032\302\001\n" + + "\026RelevanceThresholdSpec\022d\n" + + "\023relevance_threshold\030\001 \001(\0162" + + "E.google.cloud.discoveryengine.v1beta.SearchRequest.RelevanceThresholdH\000\022&\n" + + "\034semantic_relevance_threshold\030\002 \001(\002H\000B\032\n" + + "\030relevance_threshold_spec\032\246\001\n" + "\023PersonalizationSpec\022Y\n" - + "\004mode\030\001 \001(\0162K.google.cloud.discove" - + "ryengine.v1beta.SearchRequest.PersonalizationSpec.Mode\"4\n" + + "\004mode\030\001 \001(\0162K.google.cloud.discov" + + "eryengine.v1beta.SearchRequest.PersonalizationSpec.Mode\"4\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\010\n" + "\004AUTO\020\001\022\014\n" - + "\010DISABLED\020\002\032E\n" + + "\010DISABLED\020\002\0329\n" + + "\022RelevanceScoreSpec\022#\n" + + "\026return_relevance_score\030\001 \001(\010B\003\340A\001\032\227\001\n" + + "\017SearchAddonSpec\022$\n" + + "\027disable_semantic_add_on\030\001 \001(\010B\003\340A\001\022/\n" + + "\"disable_kpi_personalization_add_on\030\002 \001(\010B\003\340A\001\022-\n" + + " disable_generative_answer_add_on\030\003 \001(\010B\003\340A\001\032=\n" + + "\023CustomRankingParams\022&\n" + + "\031expressions_to_precompute\030\001 \003(\tB\003\340A\001\032E\n" + "\013ParamsEntry\022\013\n" + "\003key\030\001 \001(\t\022%\n" + "\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\0321\n" + "\017UserLabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"d\n" + + "\005value\030\002 \001(\t:\0028\001\"\222\001\n" + + "\030RankingExpressionBackend\022*\n" + + "&RANKING_EXPRESSION_BACKEND_UNSPECIFIED\020\000\022\014\n" + + "\004BYOE\020\001\032\002\010\001\022\020\n" + + "\010CLEARBOX\020\002\032\002\010\001\022\025\n" + + "\021RANK_BY_EMBEDDING\020\003\022\023\n" + + "\017RANK_BY_FORMULA\020\004\"d\n" + "\022RelevanceThreshold\022#\n" + "\037RELEVANCE_THRESHOLD_UNSPECIFIED\020\000\022\n\n" + "\006LOWEST\020\001\022\007\n" + "\003LOW\020\002\022\n\n" + "\006MEDIUM\020\003\022\010\n" - + "\004HIGH\020\004\"~\n" - + "\030RankingExpressionBackend\022*\n" - + "&RANKING_EXPRESSION_BACKEND_UNSPECIFIED\020\000\022\025\n" - + "\021RANK_BY_EMBEDDING\020\003\022\023\n" - + "\017RANK_BY_FORMULA\020\004\"\004\010\001\020\001\"\004\010\002\020\002\"\3715\n" + + "\004HIGH\020\004\"\370<\n" + "\016SearchResponse\022Q\n" - + "\007results\030\001 \003(\0132@.google.cloud.discover" - + "yengine.v1beta.SearchResponse.SearchResult\022I\n" - + "\006facets\030\002" - + " \003(\01329.google.cloud.discoveryengine.v1beta.SearchResponse.Facet\022d\n" - + "\024guided_search_result\030\010 \001(\0132F.google.clo" - + "ud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult\022\022\n\n" + + "\007results\030\001 \003(\0132@.goo" + + "gle.cloud.discoveryengine.v1beta.SearchResponse.SearchResult\022I\n" + + "\006facets\030\002 \003(\01329.g" + + "oogle.cloud.discoveryengine.v1beta.SearchResponse.Facet\022d\n" + + "\024guided_search_result\030\010" + + " \001(\0132F.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult\022\022\n" + + "\n" + "total_size\030\003 \001(\005\022\031\n" + "\021attribution_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" - + "\017corrected_query\030\007 \001(\t\022L\n" - + "\007summary\030\t \001(\0132;.go" - + "ogle.cloud.discoveryengine.v1beta.SearchResponse.Summary\022\030\n" + + "\017corrected_query\030\007 \001(\t\022\027\n" + + "\017suggested_query\030\030 \001(\t\022L\n" + + "\007summary\030\t \001(\0132;" + + ".google.cloud.discoveryengine.v1beta.SearchResponse.Summary\022\030\n" + "\020applied_controls\030\n" + " \003(\t\022e\n" - + "\025geo_search_debug_info\030\020 \003(\0132F.goog" - + "le.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo\022d\n" - + "\024query_expansion_info\030\016 \001(\0132F.google.cloud.discovery" - + "engine.v1beta.SearchResponse.QueryExpansionInfo\022\214\001\n" - + ")natural_language_query_understanding_info\030\017 \001(\0132Y.google.cloud.disco" - + "veryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo\022U\n" - + "\014session_info\030\023" - + " \001(\0132?.google.cloud.discoveryengine.v1beta.SearchResponse.SessionInfo\022Y\n" - + "\017one_box_results\030\024 \003(\0132@.google.cloud.di" - + "scoveryengine.v1beta.SearchResponse.OneBoxResult\032\302\010\n" + + "\025geo_search_debug_info\030\020 \003(\0132F.g" + + "oogle.cloud.discoveryengine.v1beta.SearchResponse.GeoSearchDebugInfo\022d\n" + + "\024query_expansion_info\030\016 \001(\0132F.google.cloud.discov" + + "eryengine.v1beta.SearchResponse.QueryExpansionInfo\022\221\001\n" + + ")natural_language_query_understanding_info\030\017 \001(\0132Y.google.cloud.di" + + "scoveryengine.v1beta.SearchResponse.Natu" + + "ralLanguageQueryUnderstandingInfoB\003\340A\003\022U\n" + + "\014session_info\030\023 \001(\0132?.google.cloud.disc" + + "overyengine.v1beta.SearchResponse.SessionInfo\022Y\n" + + "\017one_box_results\030\024 \003(\0132@.google." + + "cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult\022X\n" + + "\026search_link_promotions\030\027" + + " \003(\01328.google.cloud.discoveryengine.v1beta.SearchLinkPromotion\022^\n" + + "\016semantic_state\030$ \001(\0162A.google.cloud.discoveryengin" + + "e.v1beta.SearchResponse.SemanticStateB\003\340A\003\032\355\010\n" + "\014SearchResult\022\n\n" + "\002id\030\001 \001(\t\022?\n" + "\010document\030\002 \001(\0132-.google.cloud.discoveryengine.v1beta.Document\0229\n" - + "\005chunk\030\022 \001(\0132*.google.cloud.discoveryengine.v1beta.Chunk\022g\n" - + "\014model_scores\030\004 \003(\0132Q.google.cloud.d" - + "iscoveryengine.v1beta.SearchResponse.SearchResult.ModelScoresEntry\022g\n" - + "\014rank_signals\030\007 \001(\0132L.google.cloud.discoveryengine." - + "v1beta.SearchResponse.SearchResult.RankSignalsB\003\340A\001\032c\n" - + "\020ModelScoresEntry\022\013\n" - + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002" - + " \001(\0132/.google.cloud.discoveryengine.v1beta.DoubleList:\0028\001\032\362\004\n" + + "\005chunk\030\022 \001(\0132*.google.cloud.discoveryengine.v1beta.Chunk\022l\n" + + "\014model_scores\030\004 \003(\0132Q.google.cloud.discove" + + "ryengine.v1beta.SearchResponse.SearchResult.ModelScoresEntryB\003\340A\003\022g\n" + + "\014rank_signals\030\007 \001(\0132L.google.cloud.discoveryengine.v" + + "1beta.SearchResponse.SearchResult.RankSignalsB\003\340A\001\032\230\005\n" + "\013RankSignals\022*\n" + "\030keyword_similarity_score\030\001 \001(\002B\003\340A\001H\000\210\001\001\022!\n" + "\017relevance_score\030\002 \001(\002B\003\340A\001H\001\210\001\001\022+\n" @@ -544,8 +665,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014document_age\030\007 \001(\002B\003\340A\001H\005\210\001\001\022!\n" + "\017boosting_factor\030\010 \001(\002B\003\340A\001H\006\210\001\001\022\031\n" + "\014default_rank\030 \001(\002B\003\340A\001\022v\n" - + "\016custom_signals\030! \003(\0132Y.google.cloud.discoveryengine.v1beta.SearchR" - + "esponse.SearchResult.RankSignals.CustomSignalB\003\340A\001\0325\n" + + "\016custom_signals\030! \003(\0132Y.google.cloud.discoveryeng" + + "ine.v1beta.SearchResponse.SearchResult.RankSignals.CustomSignalB\003\340A\001\022*\n" + + "\035precomputed_expression_values\030\" \003(\002B\003\340A\001\0325\n" + "\014CustomSignal\022\021\n" + "\004name\030\001 \001(\tB\003\340A\001\022\022\n" + "\005value\030\002 \001(\002B\003\340A\001B\033\n" @@ -555,62 +677,82 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_pctr_rankB\022\n" + "\020_topicality_rankB\017\n\r" + "_document_ageB\022\n" - + "\020_boosting_factorJ\004\010\005\020\006\032\201\002\n" + + "\020_boosting_factor\032c\n" + + "\020ModelScoresEntry\022\013\n" + + "\003key\030\001 \001(\t\022>\n" + + "\005value\030\002" + + " \001(\0132/.google.cloud.discoveryengine.v1beta.DoubleList:\0028\001\032\201\002\n" + "\005Facet\022\013\n" + "\003key\030\001 \001(\t\022T\n" - + "\006values\030\002 \003(\0132D.google.cloud.disc" - + "overyengine.v1beta.SearchResponse.Facet.FacetValue\022\025\n\r" + + "\006values\030\002 \003(\0132D.google.cloud.discove" + + "ryengine.v1beta.SearchResponse.Facet.FacetValue\022\025\n\r" + "dynamic_facet\030\003 \001(\010\032~\n\n" + "FacetValue\022\017\n" + "\005value\030\001 \001(\tH\000\022A\n" - + "\010interval\030\002 \001" - + "(\0132-.google.cloud.discoveryengine.v1beta.IntervalH\000\022\r\n" + + "\010interval\030\002 \001(\0132" + + "-.google.cloud.discoveryengine.v1beta.IntervalH\000\022\r\n" + "\005count\030\003 \001(\003B\r\n" + "\013facet_value\032\363\001\n" + "\022GuidedSearchResult\022y\n" - + "\025refinement_attributes\030\001 \003(\0132Z.google.cloud.discovery" - + "engine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute\022\033\n" + + "\025refinement_attributes\030\001 \003(\0132Z.google.cloud.discoveryeng" + + "ine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute\022\033\n" + "\023follow_up_questions\030\002 \003(\t\032E\n" + "\023RefinementAttribute\022\025\n\r" + "attribute_key\030\001 \001(\t\022\027\n" - + "\017attribute_value\030\002 \001(\t\032\263\014\n" + + "\017attribute_value\030\002 \001(\t\032\307\020\n" + "\007Summary\022\024\n" + "\014summary_text\030\001 \001(\t\022q\n" - + "\027summary_skipped_reasons\030\002 \003(\0162P.goo" - + "gle.cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason\022g\n" - + "\021safety_attributes\030\003 \001(\0132L.google.cloud.d" - + "iscoveryengine.v1beta.SearchResponse.Summary.SafetyAttributes\022n\n" - + "\025summary_with_metadata\030\004 \001(\0132O.google.cloud.discoveryeng" - + "ine.v1beta.SearchResponse.Summary.SummaryWithMetadata\0326\n" + + "\027summary_skipped_reasons\030\002 \003(\0162P.google" + + ".cloud.discoveryengine.v1beta.SearchResponse.Summary.SummarySkippedReason\022g\n" + + "\021safety_attributes\030\003 \001(\0132L.google.cloud.disc" + + "overyengine.v1beta.SearchResponse.Summary.SafetyAttributes\022n\n" + + "\025summary_with_metadata\030\004 \001(\0132O.google.cloud.discoveryengine" + + ".v1beta.SearchResponse.Summary.SummaryWithMetadata\0326\n" + "\020SafetyAttributes\022\022\n\n" + "categories\030\001 \003(\t\022\016\n" + "\006scores\030\002 \003(\002\032k\n" + "\020CitationMetadata\022W\n" - + "\tcitations\030\001 \003(\0132D.google.cl" - + "oud.discoveryengine.v1beta.SearchResponse.Summary.Citation\032\217\001\n" + + "\tcitations\030\001 \003(\0132D.google.cloud" + + ".discoveryengine.v1beta.SearchResponse.Summary.Citation\032\217\001\n" + "\010Citation\022\023\n" + "\013start_index\030\001 \001(\003\022\021\n" + "\tend_index\030\002 \001(\003\022[\n" - + "\007sources\030\003 \003(\0132J.google.cloud.discoveryengine." - + "v1beta.SearchResponse.Summary.CitationSource\032)\n" + + "\007sources\030\003 \003(\0132J.google.cloud.discoveryengine.v1b" + + "eta.SearchResponse.Summary.CitationSource\032)\n" + "\016CitationSource\022\027\n" - + "\017reference_index\030\004 \001(\003\032\220\002\n" + + "\017reference_index\030\004 \001(\003\032\266\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\022j\n" - + "\016chunk_contents\030\004 \003(\0132R.google.cloud.disc" - + "overyengine.v1beta.SearchResponse.Summary.Reference.ChunkContent\0328\n" + + "\016chunk_contents\030\004 \003(\0132R.google.cloud.discove" + + "ryengine.v1beta.SearchResponse.Summary.Reference.ChunkContent\032^\n" + "\014ChunkContent\022\017\n" + "\007content\030\001 \001(\t\022\027\n" - + "\017page_identifier\030\002 \001(\t\032\352\001\n" + + "\017page_identifier\030\002 \001(\t\022$\n" + + "\027blob_attachment_indexes\030\004 \003(\003B\003\340A\003\032\362\002\n" + + "\016BlobAttachment\022b\n" + + "\004data\030\001 \001(\0132O.google." + + "cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachment.BlobB\003\340A\003\022y\n" + + "\020attribution_type\030\002 \001(\0162Z.google.cloud.di" + + "scoveryengine.v1beta.SearchResponse.Summ" + + "ary.BlobAttachment.AttributionTypeB\003\340A\003\0321\n" + + "\004Blob\022\026\n" + + "\tmime_type\030\001 \001(\tB\003\340A\003\022\021\n" + + "\004data\030\002 \001(\014B\003\340A\003\"N\n" + + "\017AttributionType\022 \n" + + "\034ATTRIBUTION_TYPE_UNSPECIFIED\020\000\022\n\n" + + "\006CORPUS\020\001\022\r\n" + + "\tGENERATED\020\002\032\325\002\n" + "\023SummaryWithMetadata\022\017\n" + "\007summary\030\001 \001(\t\022g\n" - + "\021citation_metadata\030\002 \001(\0132L.google." - + "cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata\022Y\n\n" - + "references\030\003 \003(\0132E.google.cloud.discoveryengine." - + "v1beta.SearchResponse.Summary.Reference\"\343\002\n" + + "\021citation_metadata\030\002 \001(\0132L" + + ".google.cloud.discoveryengine.v1beta.SearchResponse.Summary.CitationMetadata\022Y\n\n" + + "references\030\003 \003(\0132E.google.cloud.discover" + + "yengine.v1beta.SearchResponse.Summary.Reference\022i\n" + + "\020blob_attachments\030\004 \003(\0132J.goog" + + "le.cloud.discoveryengine.v1beta.SearchResponse.Summary.BlobAttachmentB\003\340A\003\"\361\002\n" + "\024SummarySkippedReason\022&\n" + "\"SUMMARY_SKIPPED_REASON_UNSPECIFIED\020\000\022\035\n" + "\031ADVERSARIAL_QUERY_IGNORED\020\001\022%\n" @@ -621,34 +763,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023NO_RELEVANT_CONTENT\020\006\022\037\n" + "\033JAIL_BREAKING_QUERY_IGNORED\020\007\022\035\n" + "\031CUSTOMER_POLICY_VIOLATION\020\010\022(\n" - + "$NON_SUMMARY_SEEKING_QUERY_IGNORED_V2\020\t\032K\n" + + "$NON_SUMMARY_SEEKING_QUERY_IGNORED_V2\020\t\022\014\n" + + "\010TIME_OUT\020\n" + + "\032K\n" + "\022GeoSearchDebugInfo\022\036\n" + "\026original_address_query\030\001 \001(\t\022\025\n\r" + "error_message\030\002 \001(\t\032I\n" + "\022QueryExpansionInfo\022\026\n" + "\016expanded_query\030\001 \001(\010\022\033\n" - + "\023pinned_result_count\030\002 \001(\003\032\201\021\n" + + "\023pinned_result_count\030\002 \001(\003\032\235\021\n" + "%NaturalLanguageQueryUnderstandingInfo\022\031\n" + "\021extracted_filters\030\001 \001(\t\022\027\n" - + "\017rewritten_query\030\002 \001(\t\022\230\001\n" - + "\033structured_extracted_filter\030\003 \001(" - + "\0132s.google.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnder" - + "standingInfo.StructuredExtractedFilter\032\210\017\n" + + "\017rewritten_query\030\002 \001(\t\022\032\n" + + "\022classified_intents\030\005 \003(\t\022\230\001\n" + + "\033structured_extracted_filter\030\003 \001(\0132s" + + ".google.cloud.discoveryengine.v1beta.Sea" + + "rchResponse.NaturalLanguageQueryUnderstandingInfo.StructuredExtractedFilter\032\210\017\n" + "\031StructuredExtractedFilter\022\222\001\n\n" - + "expression\030\001 \001(\0132~.google.cloud.discoveryengine" - + ".v1beta.SearchResponse.NaturalLanguageQu" - + "eryUnderstandingInfo.StructuredExtractedFilter.Expression\032M\n" - + "\020StringConstraint\022\022\n" - + "\n" + + "expression\030\001 \001(\0132~.google.cloud.discoveryengine.v1" + + "beta.SearchResponse.NaturalLanguageQuery" + + "UnderstandingInfo.StructuredExtractedFilter.Expression\032M\n" + + "\020StringConstraint\022\022\n\n" + "field_name\030\001 \001(\t\022\016\n" + "\006values\030\002 \003(\t\022\025\n\r" + "query_segment\030\003 \001(\t\032\372\002\n" - + "\020NumberConstraint\022\022\n" - + "\n" + + "\020NumberConstraint\022\022\n\n" + "field_name\030\001 \001(\t\022\244\001\n\n" - + "comparison\030\002 \001(\0162\217\001.google.cloud.discoveryengine.v1beta.Se" - + "archResponse.NaturalLanguageQueryUnderst" - + "andingInfo.StructuredExtractedFilter.NumberConstraint.Comparison\022\r\n" + + "comparison\030\002 \001(\0162\217\001.g", + "oogle.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstand" + + "ingInfo.StructuredExtractedFilter.NumberConstraint.Comparison\022\r\n" + "\005value\030\003 \001(\001\022\025\n\r" + "query_segment\030\004 \001(\t\"\204\001\n\n" + "Comparison\022\032\n" @@ -665,66 +808,73 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tlongitude\030\005 \001(\001\022\030\n" + "\020radius_in_meters\030\003 \001(\002\032\245\001\n\r" + "AndExpression\022\223\001\n" - + "\013expressions\030\001 \003(\0132~.google.cloud.discoveryengine.v1beta" - + ".SearchResponse.NaturalLanguageQueryUnde" - + "rstandingInfo.StructuredExtractedFilter.Expression\032\244\001\n" + + "\013expressions\030\001 \003(\0132~.google.cloud.discoveryengine.v1beta.Se" + + "archResponse.NaturalLanguageQueryUnderst" + + "andingInfo.StructuredExtractedFilter.Expression\032\244\001\n" + "\014OrExpression\022\223\001\n" - + "\013expressions\030\001 \003(\0132~.google.cloud.discoveryengine" - + ".v1beta.SearchResponse.NaturalLanguageQu" - + "eryUnderstandingInfo.StructuredExtractedFilter.Expression\032\275\006\n\n" + + "\013expressions\030\001 \003(\0132~.google.cloud.discoveryengine.v1" + + "beta.SearchResponse.NaturalLanguageQuery" + + "UnderstandingInfo.StructuredExtractedFilter.Expression\032\275\006\n\n" + "Expression\022\242\001\n" - + "\021string_constraint\030\001 \001(\0132\204\001.google.cloud.dis" - + "coveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.Structu" - + "redExtractedFilter.StringConstraintH\000\022\242\001\n" - + "\021number_constraint\030\002 \001(\0132\204\001.google.clou" + + "\021string_constraint\030\001 \001(\0132\204\001.google.cloud.discov" + + "eryengine.v1beta.SearchResponse.NaturalL" + + "anguageQueryUnderstandingInfo.StructuredExtractedFilter.StringConstraintH\000\022\242\001\n" + + "\021number_constraint\030\002 \001(\0132\204\001.google.cloud.d" + + "iscoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.Struc" + + "turedExtractedFilter.NumberConstraintH\000\022\254\001\n" + + "\026geolocation_constraint\030\003 \001(\0132\211\001.goog" + + "le.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstanding" + + "Info.StructuredExtractedFilter.GeolocationConstraintH\000\022\226\001\n" + + "\010and_expr\030\004 \001(\0132\201\001.google.cloud.discoveryengine.v1beta.SearchR" + + "esponse.NaturalLanguageQueryUnderstandin" + + "gInfo.StructuredExtractedFilter.AndExpressionH\000\022\224\001\n" + + "\007or_expr\030\005 \001(\0132\200\001.google.clou" + "d.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo.St" - + "ructuredExtractedFilter.NumberConstraintH\000\022\254\001\n" - + "\026geolocation_constraint\030\003 \001(\0132\211\001.g" - + "oogle.cloud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstand" - + "ingInfo.StructuredExtractedFilter.GeolocationConstraintH\000\022\226\001\n" - + "\010and_expr\030\004 \001(\0132\201\001.google.cloud.discoveryengine.v1beta.Sear" - + "chResponse.NaturalLanguageQueryUnderstan" - + "dingInfo.StructuredExtractedFilter.AndExpressionH\000\022\224\001\n" - + "\007or_expr\030\005 \001(\0132\200\001.google.c" - + "loud.discoveryengine.v1beta.SearchResponse.NaturalLanguageQueryUnderstandingInfo" - + ".StructuredExtractedFilter.OrExpressionH\000B\006\n" + + "ructuredExtractedFilter.OrExpressionH\000B\006\n" + "\004expr\032-\n" + "\013SessionInfo\022\014\n" + "\004name\030\001 \001(\t\022\020\n" + "\010query_id\030\002 \001(\t\032\265\002\n" + "\014OneBoxResult\022a\n" - + "\014one_box_type\030\001 \001(\0162K.google.cloud.discovery" - + "engine.v1beta.SearchResponse.OneBoxResult.OneBoxType\022X\n" - + "\016search_results\030\002 \003(\0132@.g" - + "oogle.cloud.discoveryengine.v1beta.SearchResponse.SearchResult\"h\n\n" + + "\014one_box_type\030\001 \001(\0162K.google.cloud.discoveryeng" + + "ine.v1beta.SearchResponse.OneBoxResult.OneBoxType\022X\n" + + "\016search_results\030\002 \003(\0132@.goog" + + "le.cloud.discoveryengine.v1beta.SearchResponse.SearchResult\"h\n\n" + "OneBoxType\022\034\n" + "\030ONE_BOX_TYPE_UNSPECIFIED\020\000\022\n\n" + "\006PEOPLE\020\001\022\020\n" + "\014ORGANIZATION\020\002\022\t\n" + "\005SLACK\020\003\022\023\n" - + "\017KNOWLEDGE_GRAPH\020\0042\277\007\n\r" + + "\017KNOWLEDGE_GRAPH\020\004\"J\n\r" + + "SemanticState\022\036\n" + + "\032SEMANTIC_STATE_UNSPECIFIED\020\000\022\014\n" + + "\010DISABLED\020\001\022\013\n" + + "\007ENABLED\020\0022\376\010\n\r" + "SearchService\022\243\003\n" - + "\006Search\0222.google.cloud.discoveryengine.v1beta.Sear" - + "chRequest\0323.google.cloud.discoveryengine" - + ".v1beta.SearchResponse\"\257\002\202\323\344\223\002\250\002\"T/v1bet" - + "a/{serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:search:\001" - + "*Zg\"b/v1beta/{serving_config=projects/*/locations/*/collections/*/dataStores/*/s" - + "ervingConfigs/*}:search:\001*Zd\"_/v1beta/{serving_config=projects/*/locations/*/col" - + "lections/*/engines/*/servingConfigs/*}:search:\001*\022\263\003\n\n" - + "SearchLite\0222.google.cloud.discoveryengine.v1beta.SearchRequest\0323.go" - + "ogle.cloud.discoveryengine.v1beta.Search" - + "Response\"\273\002\202\323\344\223\002\264\002\"X/v1beta/{serving_con" - + "fig=projects/*/locations/*/dataStores/*/servingConfigs/*}:searchLite:\001*Zk\"f/v1be" - + "ta/{serving_config=projects/*/locations/*/collections/*/dataStores/*/servingConf" - + "igs/*}:searchLite:\001*Zh\"c/v1beta/{serving_config=projects/*/locations/*/collectio" - + "ns/*/engines/*/servingConfigs/*}:searchL" - + "ite:\001*\032R\312A\036discoveryengine.googleapis.co" - + "m\322A.https://www.googleapis.com/auth/cloud-platformB\231\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB\022SearchServiceProtoP\001ZQcl" - + "oud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb\242" - + "\002\017DISCOVERYENGINE\252\002#Google.Cloud.Discove" - + "ryEngine.V1Beta\312\002#Google\\Cloud\\Discovery" - + "Engine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" + + "\006Search\0222.google.cloud.discoveryengine.v1beta.SearchReque" + + "st\0323.google.cloud.discoveryengine.v1beta" + + ".SearchResponse\"\257\002\202\323\344\223\002\250\002\"T/v1beta/{serv" + + "ing_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:search:\001*Zg\"b/v" + + "1beta/{serving_config=projects/*/locations/*/collections/*/dataStores/*/servingC" + + "onfigs/*}:search:\001*Zd\"_/v1beta/{serving_config=projects/*/locations/*/collection" + + "s/*/engines/*/servingConfigs/*}:search:\001*\022\263\003\n\n" + + "SearchLite\0222.google.cloud.discoveryengine.v1beta.SearchRequest\0323.google.cl" + + "oud.discoveryengine.v1beta.SearchRespons" + + "e\"\273\002\202\323\344\223\002\264\002\"X/v1beta/{serving_config=pro" + + "jects/*/locations/*/dataStores/*/servingConfigs/*}:searchLite:\001*Zk\"f/v1beta/{ser" + + "ving_config=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:" + + "searchLite:\001*Zh\"c/v1beta/{serving_config=projects/*/locations/*/collections/*/en" + + "gines/*/servingConfigs/*}:searchLite:\001*\032" + + "\220\002\312A\036discoveryengine.googleapis.com\322A\353\001h" + + "ttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/di" + + "scoveryengine.assist.readwrite,https://www.googleapis.com/auth/discoveryengine.r" + + "eadwrite,https://www.googleapis.com/auth/discoveryengine.serving.readwriteB\231\002\n" + + "\'com.google.cloud.discoveryengine.v1betaB\022" + + "SearchServiceProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryeng" + + "inepb;discoveryenginepb\242\002\017DISCOVERYENGIN" + + "E\252\002#Google.Cloud.DiscoveryEngine.V1Beta\312" + + "\002#Google\\Cloud\\DiscoveryEngine\\V1beta\352\002&" + + "Google::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -748,12 +898,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServingConfig", "Branch", "Query", + "PageCategories", "ImageQuery", "PageSize", "PageToken", "Offset", "OneBoxPageSize", "DataStoreSpecs", + "NumResultsPerDataStore", "Filter", "CanonicalFilter", "OrderBy", @@ -774,10 +926,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserLabels", "NaturalLanguageQueryUnderstandingSpec", "SearchAsYouTypeSpec", + "DisplaySpec", + "CrowdingSpecs", "Session", "SessionSpec", "RelevanceThreshold", + "RelevanceFilterSpec", "PersonalizationSpec", + "RelevanceScoreSpec", + "SearchAddonSpec", + "CustomRankingParams", + "Entity", }); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ImageQuery_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedType( @@ -795,7 +954,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DataStoreSpec_descriptor, new java.lang.String[] { - "DataStore", "Filter", "BoostSpec", + "DataStore", "Filter", "BoostSpec", "CustomSearchOperators", "NumResults", }); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_FacetSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedType( @@ -910,14 +1069,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IgnoreNonSummarySeekingQuery", "IgnoreLowRelevantContent", "IgnoreJailBreakingQuery", + "MultimodalSpec", "ModelPromptSpec", "LanguageCode", "ModelSpec", "UseSemanticChunks", }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelPromptSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_MultiModalSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_MultiModalSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_MultiModalSpec_descriptor, + new java.lang.String[] { + "ImageSource", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelPromptSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor + .getNestedType(1); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelPromptSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelPromptSpec_descriptor, @@ -926,7 +1095,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_descriptor - .getNestedType(1); + .getNestedType(2); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ContentSearchSpec_SummarySpec_ModelSpec_descriptor, @@ -980,7 +1149,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_NaturalLanguageQueryUnderstandingSpec_descriptor, new java.lang.String[] { - "FilterExtractionCondition", "GeoSearchQueryDetectionFieldNames", + "FilterExtractionCondition", + "GeoSearchQueryDetectionFieldNames", + "ExtractedFilterBehavior", + "AllowedFieldNames", }); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAsYouTypeSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedType( @@ -991,27 +1163,92 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Condition", }); - internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DisplaySpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedType( 10); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DisplaySpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_DisplaySpec_descriptor, + new java.lang.String[] { + "MatchHighlightingCondition", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CrowdingSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedType( + 11); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CrowdingSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CrowdingSpec_descriptor, + new java.lang.String[] { + "Field", "MaxCount", "Mode", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedType( + 12); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SessionSpec_descriptor, new java.lang.String[] { "QueryId", "SearchResultPersistenceCount", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedType( + 13); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_descriptor, + new java.lang.String[] { + "KeywordSearchThreshold", "SemanticSearchThreshold", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_RelevanceThresholdSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_RelevanceThresholdSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceFilterSpec_RelevanceThresholdSpec_descriptor, + new java.lang.String[] { + "RelevanceThreshold", "SemanticRelevanceThreshold", "RelevanceThresholdSpec", + }); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_PersonalizationSpec_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedType( - 11); + 14); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_PersonalizationSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_PersonalizationSpec_descriptor, new java.lang.String[] { "Mode", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceScoreSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedType( + 15); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceScoreSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_RelevanceScoreSpec_descriptor, + new java.lang.String[] { + "ReturnRelevanceScore", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAddonSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedType( + 16); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAddonSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_SearchAddonSpec_descriptor, + new java.lang.String[] { + "DisableSemanticAddOn", + "DisableKpiPersonalizationAddOn", + "DisableGenerativeAnswerAddOn", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CustomRankingParams_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedType( + 17); + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CustomRankingParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_CustomRankingParams_descriptor, + new java.lang.String[] { + "ExpressionsToPrecompute", + }); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedType( - 12); + 18); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_ParamsEntry_descriptor, @@ -1020,7 +1257,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_descriptor.getNestedType( - 13); + 19); internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchRequest_UserLabelsEntry_descriptor, @@ -1041,6 +1278,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RedirectUri", "NextPageToken", "CorrectedQuery", + "SuggestedQuery", "Summary", "AppliedControls", "GeoSearchDebugInfo", @@ -1048,6 +1286,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NaturalLanguageQueryUnderstandingInfo", "SessionInfo", "OneBoxResults", + "SearchLinkPromotions", + "SemanticState", }); internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor.getNestedType( @@ -1058,18 +1298,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Id", "Document", "Chunk", "ModelScores", "RankSignals", }); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_descriptor = - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor - .getNestedType(0); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_RankSignals_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor - .getNestedType(1); + .getNestedType(0); internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_RankSignals_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_RankSignals_descriptor, @@ -1083,6 +1314,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BoostingFactor", "DefaultRank", "CustomSignals", + "PrecomputedExpressionValues", }); internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_RankSignals_CustomSignal_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_RankSignals_descriptor @@ -1093,6 +1325,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Value", }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_descriptor + .getNestedType(1); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_SearchResult_ModelScoresEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Facet_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor.getNestedType( 1); @@ -1190,16 +1431,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_Reference_ChunkContent_descriptor, new java.lang.String[] { - "Content", "PageIdentifier", + "Content", "PageIdentifier", "BlobAttachmentIndexes", }); - internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SummaryWithMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_descriptor .getNestedType(5); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_descriptor, + new java.lang.String[] { + "Data", "AttributionType", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_Blob_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_Blob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_BlobAttachment_Blob_descriptor, + new java.lang.String[] { + "MimeType", "Data", + }); + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SummaryWithMetadata_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_descriptor + .getNestedType(6); internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SummaryWithMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_Summary_SummaryWithMetadata_descriptor, new java.lang.String[] { - "Summary", "CitationMetadata", "References", + "Summary", "CitationMetadata", "References", "BlobAttachments", }); internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_GeoSearchDebugInfo_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_descriptor.getNestedType( @@ -1226,7 +1485,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_descriptor, new java.lang.String[] { - "ExtractedFilters", "RewrittenQuery", "StructuredExtractedFilter", + "ExtractedFilters", + "RewrittenQuery", + "ClassifiedIntents", + "StructuredExtractedFilter", }); internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_StructuredExtractedFilter_descriptor = internal_static_google_cloud_discoveryengine_v1beta_SearchResponse_NaturalLanguageQueryUnderstandingInfo_descriptor diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceProto.java index 7803165aedc7..f4b3ed94e1d0 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SearchTuningServiceProto.java @@ -115,7 +115,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\t\022\r\n\005value\030\002 \001(\001:\0028\001\"|\n\030TrainCustomMo" + "delMetadata\022/\n\013create_time\030\001 \001(\0132\032.googl" + "e.protobuf.Timestamp\022/\n\013update_time\030\002 \001(" - + "\0132\032.google.protobuf.Timestamp2\256\005\n\023Search" + + "\0132\032.google.protobuf.Timestamp2\254\006\n\023Search" + "TuningService\022\323\002\n\020TrainCustomModel\022<.goo" + "gle.cloud.discoveryengine.v1beta.TrainCu" + "stomModelRequest\032\035.google.longrunning.Op" @@ -130,17 +130,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".google.cloud.discoveryengine.v1beta.Lis" + "tCustomModelsResponse\"[\202\323\344\223\002U\022S/v1beta/{" + "data_store=projects/*/locations/*/collec" - + "tions/*/dataStores/*}/customModels\032R\312A\036d" - + "iscoveryengine.googleapis.com\322A.https://" - + "www.googleapis.com/auth/cloud-platformB\237" - + "\002\n\'com.google.cloud.discoveryengine.v1be" - + "taB\030SearchTuningServiceProtoP\001ZQcloud.go" - + "ogle.com/go/discoveryengine/apiv1beta/di" - + "scoveryenginepb;discoveryenginepb\242\002\017DISC" - + "OVERYENGINE\252\002#Google.Cloud.DiscoveryEngi" - + "ne.V1Beta\312\002#Google\\Cloud\\DiscoveryEngine" - + "\\V1beta\352\002&Google::Cloud::DiscoveryEngine" - + "::V1betab\006proto3" + + "tions/*/dataStores/*}/customModels\032\317\001\312A\036" + + "discoveryengine.googleapis.com\322A\252\001https:" + + "//www.googleapis.com/auth/cloud-platform" + + ",https://www.googleapis.com/auth/discove" + + "ryengine.readwrite,https://www.googleapi" + + "s.com/auth/discoveryengine.serving.readw" + + "riteB\237\002\n\'com.google.cloud.discoveryengin" + + "e.v1betaB\030SearchTuningServiceProtoP\001ZQcl" + + "oud.google.com/go/discoveryengine/apiv1b" + + "eta/discoveryenginepb;discoveryenginepb\242" + + "\002\017DISCOVERYENGINE\252\002#Google.Cloud.Discove" + + "ryEngine.V1Beta\312\002#Google\\Cloud\\Discovery" + + "Engine\\V1beta\352\002&Google::Cloud::Discovery" + + "Engine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfig.java index 01a8889df39d..b72ec4d0a3b5 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfig.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfig.java @@ -69,6 +69,7 @@ private ServingConfig() { dissociateControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); replacementControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); ignoreControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + promoteControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -2850,9 +2851,8 @@ public com.google.cloud.discoveryengine.v1beta.EmbeddingConfig getEmbeddingConfi * The ranking expression controls the customized ranking on retrieval * documents. To leverage this, document embedding is required. The ranking * expression setting in ServingConfig applies to all search requests served - * by the serving config. However, if - * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] - * is specified, it overrides the ServingConfig ranking expression. + * by the serving config. However, if `SearchRequest.ranking_expression` is + * specified, it overrides the ServingConfig ranking expression. * * The ranking expression is a single function or multiple functions that are * joined by "+". @@ -2903,9 +2903,8 @@ public java.lang.String getRankingExpression() { * The ranking expression controls the customized ranking on retrieval * documents. To leverage this, document embedding is required. The ranking * expression setting in ServingConfig applies to all search requests served - * by the serving config. However, if - * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] - * is specified, it overrides the ServingConfig ranking expression. + * by the serving config. However, if `SearchRequest.ranking_expression` is + * specified, it overrides the ServingConfig ranking expression. * * The ranking expression is a single function or multiple functions that are * joined by "+". @@ -3769,6 +3768,82 @@ public com.google.protobuf.ByteString getIgnoreControlIdsBytes(int index) { return ignoreControlIds_.getByteString(index); } + public static final int PROMOTE_CONTROL_IDS_FIELD_NUMBER = 26; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList promoteControlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * Condition promote specifications.
            +   *
            +   * Maximum number of specifications is 100.
            +   * 
            + * + * repeated string promote_control_ids = 26; + * + * @return A list containing the promoteControlIds. + */ + public com.google.protobuf.ProtocolStringList getPromoteControlIdsList() { + return promoteControlIds_; + } + + /** + * + * + *
            +   * Condition promote specifications.
            +   *
            +   * Maximum number of specifications is 100.
            +   * 
            + * + * repeated string promote_control_ids = 26; + * + * @return The count of promoteControlIds. + */ + public int getPromoteControlIdsCount() { + return promoteControlIds_.size(); + } + + /** + * + * + *
            +   * Condition promote specifications.
            +   *
            +   * Maximum number of specifications is 100.
            +   * 
            + * + * repeated string promote_control_ids = 26; + * + * @param index The index of the element to return. + * @return The promoteControlIds at the given index. + */ + public java.lang.String getPromoteControlIds(int index) { + return promoteControlIds_.get(index); + } + + /** + * + * + *
            +   * Condition promote specifications.
            +   *
            +   * Maximum number of specifications is 100.
            +   * 
            + * + * repeated string promote_control_ids = 26; + * + * @param index The index of the value to return. + * @return The bytes of the promoteControlIds at the given index. + */ + public com.google.protobuf.ByteString getPromoteControlIdsBytes(int index) { + return promoteControlIds_.getByteString(index); + } + public static final int PERSONALIZATION_SPEC_FIELD_NUMBER = 25; private com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalizationSpec_; @@ -3860,6 +3935,66 @@ public boolean hasPersonalizationSpec() { : personalizationSpec_; } + public static final int ANSWER_GENERATION_SPEC_FIELD_NUMBER = 27; + private com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec answerGenerationSpec_; + + /** + * + * + *
            +   * Optional. The specification for answer generation.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the answerGenerationSpec field is set. + */ + @java.lang.Override + public boolean hasAnswerGenerationSpec() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +   * Optional. The specification for answer generation.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The answerGenerationSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec getAnswerGenerationSpec() { + return answerGenerationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.getDefaultInstance() + : answerGenerationSpec_; + } + + /** + * + * + *
            +   * Optional. The specification for answer generation.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpecOrBuilder + getAnswerGenerationSpecOrBuilder() { + return answerGenerationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.getDefaultInstance() + : answerGenerationSpec_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3941,6 +4076,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(25, getPersonalizationSpec()); } + for (int i = 0; i < promoteControlIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 26, promoteControlIds_.getRaw(i)); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(27, getAnswerGenerationSpec()); + } getUnknownFields().writeTo(output); } @@ -4060,6 +4201,18 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, getPersonalizationSpec()); } + { + int dataSize = 0; + for (int i = 0; i < promoteControlIds_.size(); i++) { + dataSize += computeStringSizeNoTag(promoteControlIds_.getRaw(i)); + } + size += dataSize; + size += 2 * getPromoteControlIdsList().size(); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(27, getAnswerGenerationSpec()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4103,10 +4256,15 @@ public boolean equals(final java.lang.Object obj) { if (!getDissociateControlIdsList().equals(other.getDissociateControlIdsList())) return false; if (!getReplacementControlIdsList().equals(other.getReplacementControlIdsList())) return false; if (!getIgnoreControlIdsList().equals(other.getIgnoreControlIdsList())) return false; + if (!getPromoteControlIdsList().equals(other.getPromoteControlIdsList())) return false; if (hasPersonalizationSpec() != other.hasPersonalizationSpec()) return false; if (hasPersonalizationSpec()) { if (!getPersonalizationSpec().equals(other.getPersonalizationSpec())) return false; } + if (hasAnswerGenerationSpec() != other.hasAnswerGenerationSpec()) return false; + if (hasAnswerGenerationSpec()) { + if (!getAnswerGenerationSpec().equals(other.getAnswerGenerationSpec())) return false; + } if (!getVerticalConfigCase().equals(other.getVerticalConfigCase())) return false; switch (verticalConfigCase_) { case 7: @@ -4185,10 +4343,18 @@ public int hashCode() { hash = (37 * hash) + IGNORE_CONTROL_IDS_FIELD_NUMBER; hash = (53 * hash) + getIgnoreControlIdsList().hashCode(); } + if (getPromoteControlIdsCount() > 0) { + hash = (37 * hash) + PROMOTE_CONTROL_IDS_FIELD_NUMBER; + hash = (53 * hash) + getPromoteControlIdsList().hashCode(); + } if (hasPersonalizationSpec()) { hash = (37 * hash) + PERSONALIZATION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getPersonalizationSpec().hashCode(); } + if (hasAnswerGenerationSpec()) { + hash = (37 * hash) + ANSWER_GENERATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getAnswerGenerationSpec().hashCode(); + } switch (verticalConfigCase_) { case 7: hash = (37 * hash) + MEDIA_CONFIG_FIELD_NUMBER; @@ -4350,6 +4516,7 @@ private void maybeForceBuilderInitialization() { internalGetCreateTimeFieldBuilder(); internalGetUpdateTimeFieldBuilder(); internalGetPersonalizationSpecFieldBuilder(); + internalGetAnswerGenerationSpecFieldBuilder(); } } @@ -4392,11 +4559,17 @@ public Builder clear() { dissociateControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); replacementControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); ignoreControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + promoteControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); personalizationSpec_ = null; if (personalizationSpecBuilder_ != null) { personalizationSpecBuilder_.dispose(); personalizationSpecBuilder_ = null; } + answerGenerationSpec_ = null; + if (answerGenerationSpecBuilder_ != null) { + answerGenerationSpecBuilder_.dispose(); + answerGenerationSpecBuilder_ = null; + } verticalConfigCase_ = 0; verticalConfig_ = null; return this; @@ -4501,12 +4674,23 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.ServingConfig result.ignoreControlIds_ = ignoreControlIds_; } if (((from_bitField0_ & 0x00080000) != 0)) { + promoteControlIds_.makeImmutable(); + result.promoteControlIds_ = promoteControlIds_; + } + if (((from_bitField0_ & 0x00100000) != 0)) { result.personalizationSpec_ = personalizationSpecBuilder_ == null ? personalizationSpec_ : personalizationSpecBuilder_.build(); to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00200000) != 0)) { + result.answerGenerationSpec_ = + answerGenerationSpecBuilder_ == null + ? answerGenerationSpec_ + : answerGenerationSpecBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -4651,9 +4835,22 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.ServingConfig o } onChanged(); } + if (!other.promoteControlIds_.isEmpty()) { + if (promoteControlIds_.isEmpty()) { + promoteControlIds_ = other.promoteControlIds_; + bitField0_ |= 0x00080000; + } else { + ensurePromoteControlIdsIsMutable(); + promoteControlIds_.addAll(other.promoteControlIds_); + } + onChanged(); + } if (other.hasPersonalizationSpec()) { mergePersonalizationSpec(other.getPersonalizationSpec()); } + if (other.hasAnswerGenerationSpec()) { + mergeAnswerGenerationSpec(other.getAnswerGenerationSpec()); + } switch (other.getVerticalConfigCase()) { case MEDIA_CONFIG: { @@ -4827,9 +5024,23 @@ public Builder mergeFrom( { input.readMessage( internalGetPersonalizationSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 202 + case 210: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePromoteControlIdsIsMutable(); + promoteControlIds_.add(s); + break; + } // case 210 + case 218: + { + input.readMessage( + internalGetAnswerGenerationSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00200000; + break; + } // case 218 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6287,9 +6498,8 @@ public Builder clearEmbeddingConfig() { * The ranking expression controls the customized ranking on retrieval * documents. To leverage this, document embedding is required. The ranking * expression setting in ServingConfig applies to all search requests served - * by the serving config. However, if - * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] - * is specified, it overrides the ServingConfig ranking expression. + * by the serving config. However, if `SearchRequest.ranking_expression` is + * specified, it overrides the ServingConfig ranking expression. * * The ranking expression is a single function or multiple functions that are * joined by "+". @@ -6339,9 +6549,8 @@ public java.lang.String getRankingExpression() { * The ranking expression controls the customized ranking on retrieval * documents. To leverage this, document embedding is required. The ranking * expression setting in ServingConfig applies to all search requests served - * by the serving config. However, if - * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] - * is specified, it overrides the ServingConfig ranking expression. + * by the serving config. However, if `SearchRequest.ranking_expression` is + * specified, it overrides the ServingConfig ranking expression. * * The ranking expression is a single function or multiple functions that are * joined by "+". @@ -6391,9 +6600,8 @@ public com.google.protobuf.ByteString getRankingExpressionBytes() { * The ranking expression controls the customized ranking on retrieval * documents. To leverage this, document embedding is required. The ranking * expression setting in ServingConfig applies to all search requests served - * by the serving config. However, if - * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] - * is specified, it overrides the ServingConfig ranking expression. + * by the serving config. However, if `SearchRequest.ranking_expression` is + * specified, it overrides the ServingConfig ranking expression. * * The ranking expression is a single function or multiple functions that are * joined by "+". @@ -6442,9 +6650,8 @@ public Builder setRankingExpression(java.lang.String value) { * The ranking expression controls the customized ranking on retrieval * documents. To leverage this, document embedding is required. The ranking * expression setting in ServingConfig applies to all search requests served - * by the serving config. However, if - * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] - * is specified, it overrides the ServingConfig ranking expression. + * by the serving config. However, if `SearchRequest.ranking_expression` is + * specified, it overrides the ServingConfig ranking expression. * * The ranking expression is a single function or multiple functions that are * joined by "+". @@ -6489,9 +6696,8 @@ public Builder clearRankingExpression() { * The ranking expression controls the customized ranking on retrieval * documents. To leverage this, document embedding is required. The ranking * expression setting in ServingConfig applies to all search requests served - * by the serving config. However, if - * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] - * is specified, it overrides the ServingConfig ranking expression. + * by the serving config. However, if `SearchRequest.ranking_expression` is + * specified, it overrides the ServingConfig ranking expression. * * The ranking expression is a single function or multiple functions that are * joined by "+". @@ -8811,6 +9017,207 @@ public Builder addIgnoreControlIdsBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList promoteControlIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePromoteControlIdsIsMutable() { + if (!promoteControlIds_.isModifiable()) { + promoteControlIds_ = new com.google.protobuf.LazyStringArrayList(promoteControlIds_); + } + bitField0_ |= 0x00080000; + } + + /** + * + * + *
            +     * Condition promote specifications.
            +     *
            +     * Maximum number of specifications is 100.
            +     * 
            + * + * repeated string promote_control_ids = 26; + * + * @return A list containing the promoteControlIds. + */ + public com.google.protobuf.ProtocolStringList getPromoteControlIdsList() { + promoteControlIds_.makeImmutable(); + return promoteControlIds_; + } + + /** + * + * + *
            +     * Condition promote specifications.
            +     *
            +     * Maximum number of specifications is 100.
            +     * 
            + * + * repeated string promote_control_ids = 26; + * + * @return The count of promoteControlIds. + */ + public int getPromoteControlIdsCount() { + return promoteControlIds_.size(); + } + + /** + * + * + *
            +     * Condition promote specifications.
            +     *
            +     * Maximum number of specifications is 100.
            +     * 
            + * + * repeated string promote_control_ids = 26; + * + * @param index The index of the element to return. + * @return The promoteControlIds at the given index. + */ + public java.lang.String getPromoteControlIds(int index) { + return promoteControlIds_.get(index); + } + + /** + * + * + *
            +     * Condition promote specifications.
            +     *
            +     * Maximum number of specifications is 100.
            +     * 
            + * + * repeated string promote_control_ids = 26; + * + * @param index The index of the value to return. + * @return The bytes of the promoteControlIds at the given index. + */ + public com.google.protobuf.ByteString getPromoteControlIdsBytes(int index) { + return promoteControlIds_.getByteString(index); + } + + /** + * + * + *
            +     * Condition promote specifications.
            +     *
            +     * Maximum number of specifications is 100.
            +     * 
            + * + * repeated string promote_control_ids = 26; + * + * @param index The index to set the value at. + * @param value The promoteControlIds to set. + * @return This builder for chaining. + */ + public Builder setPromoteControlIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromoteControlIdsIsMutable(); + promoteControlIds_.set(index, value); + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Condition promote specifications.
            +     *
            +     * Maximum number of specifications is 100.
            +     * 
            + * + * repeated string promote_control_ids = 26; + * + * @param value The promoteControlIds to add. + * @return This builder for chaining. + */ + public Builder addPromoteControlIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePromoteControlIdsIsMutable(); + promoteControlIds_.add(value); + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Condition promote specifications.
            +     *
            +     * Maximum number of specifications is 100.
            +     * 
            + * + * repeated string promote_control_ids = 26; + * + * @param values The promoteControlIds to add. + * @return This builder for chaining. + */ + public Builder addAllPromoteControlIds(java.lang.Iterable values) { + ensurePromoteControlIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, promoteControlIds_); + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Condition promote specifications.
            +     *
            +     * Maximum number of specifications is 100.
            +     * 
            + * + * repeated string promote_control_ids = 26; + * + * @return This builder for chaining. + */ + public Builder clearPromoteControlIds() { + promoteControlIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00080000); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Condition promote specifications.
            +     *
            +     * Maximum number of specifications is 100.
            +     * 
            + * + * repeated string promote_control_ids = 26; + * + * @param value The bytes of the promoteControlIds to add. + * @return This builder for chaining. + */ + public Builder addPromoteControlIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePromoteControlIdsIsMutable(); + promoteControlIds_.add(value); + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + private com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec personalizationSpec_; private com.google.protobuf.SingleFieldBuilder< @@ -8842,7 +9249,7 @@ public Builder addIgnoreControlIdsBytes(com.google.protobuf.ByteString value) { * @return Whether the personalizationSpec field is set. */ public boolean hasPersonalizationSpec() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -8909,7 +9316,7 @@ public Builder setPersonalizationSpec( } else { personalizationSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -8942,7 +9349,7 @@ public Builder setPersonalizationSpec( } else { personalizationSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -8970,7 +9377,7 @@ public Builder setPersonalizationSpec( public Builder mergePersonalizationSpec( com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec value) { if (personalizationSpecBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) + if (((bitField0_ & 0x00100000) != 0) && personalizationSpec_ != null && personalizationSpec_ != com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec @@ -8983,7 +9390,7 @@ public Builder mergePersonalizationSpec( personalizationSpecBuilder_.mergeFrom(value); } if (personalizationSpec_ != null) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } return this; @@ -9010,7 +9417,7 @@ public Builder mergePersonalizationSpec( * */ public Builder clearPersonalizationSpec() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); personalizationSpec_ = null; if (personalizationSpecBuilder_ != null) { personalizationSpecBuilder_.dispose(); @@ -9042,7 +9449,7 @@ public Builder clearPersonalizationSpec() { */ public com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpec.Builder getPersonalizationSpecBuilder() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return internalGetPersonalizationSpecFieldBuilder().getBuilder(); } @@ -9116,6 +9523,225 @@ public Builder clearPersonalizationSpec() { return personalizationSpecBuilder_; } + private com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec answerGenerationSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec, + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpecOrBuilder> + answerGenerationSpecBuilder_; + + /** + * + * + *
            +     * Optional. The specification for answer generation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the answerGenerationSpec field is set. + */ + public boolean hasAnswerGenerationSpec() { + return ((bitField0_ & 0x00200000) != 0); + } + + /** + * + * + *
            +     * Optional. The specification for answer generation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The answerGenerationSpec. + */ + public com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec getAnswerGenerationSpec() { + if (answerGenerationSpecBuilder_ == null) { + return answerGenerationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.getDefaultInstance() + : answerGenerationSpec_; + } else { + return answerGenerationSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. The specification for answer generation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAnswerGenerationSpec( + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec value) { + if (answerGenerationSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + answerGenerationSpec_ = value; + } else { + answerGenerationSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The specification for answer generation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAnswerGenerationSpec( + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.Builder builderForValue) { + if (answerGenerationSpecBuilder_ == null) { + answerGenerationSpec_ = builderForValue.build(); + } else { + answerGenerationSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00200000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The specification for answer generation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAnswerGenerationSpec( + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec value) { + if (answerGenerationSpecBuilder_ == null) { + if (((bitField0_ & 0x00200000) != 0) + && answerGenerationSpec_ != null + && answerGenerationSpec_ + != com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec + .getDefaultInstance()) { + getAnswerGenerationSpecBuilder().mergeFrom(value); + } else { + answerGenerationSpec_ = value; + } + } else { + answerGenerationSpecBuilder_.mergeFrom(value); + } + if (answerGenerationSpec_ != null) { + bitField0_ |= 0x00200000; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The specification for answer generation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAnswerGenerationSpec() { + bitField0_ = (bitField0_ & ~0x00200000); + answerGenerationSpec_ = null; + if (answerGenerationSpecBuilder_ != null) { + answerGenerationSpecBuilder_.dispose(); + answerGenerationSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The specification for answer generation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.Builder + getAnswerGenerationSpecBuilder() { + bitField0_ |= 0x00200000; + onChanged(); + return internalGetAnswerGenerationSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The specification for answer generation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpecOrBuilder + getAnswerGenerationSpecOrBuilder() { + if (answerGenerationSpecBuilder_ != null) { + return answerGenerationSpecBuilder_.getMessageOrBuilder(); + } else { + return answerGenerationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.getDefaultInstance() + : answerGenerationSpec_; + } + } + + /** + * + * + *
            +     * Optional. The specification for answer generation.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec, + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpecOrBuilder> + internalGetAnswerGenerationSpecFieldBuilder() { + if (answerGenerationSpecBuilder_ == null) { + answerGenerationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec, + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpecOrBuilder>( + getAnswerGenerationSpec(), getParentForChildren(), isClean()); + answerGenerationSpec_ = null; + } + return answerGenerationSpecBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.ServingConfig) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigOrBuilder.java index 937a8cf5ccda..e997415881eb 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigOrBuilder.java @@ -355,9 +355,8 @@ public interface ServingConfigOrBuilder * The ranking expression controls the customized ranking on retrieval * documents. To leverage this, document embedding is required. The ranking * expression setting in ServingConfig applies to all search requests served - * by the serving config. However, if - * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] - * is specified, it overrides the ServingConfig ranking expression. + * by the serving config. However, if `SearchRequest.ranking_expression` is + * specified, it overrides the ServingConfig ranking expression. * * The ranking expression is a single function or multiple functions that are * joined by "+". @@ -397,9 +396,8 @@ public interface ServingConfigOrBuilder * The ranking expression controls the customized ranking on retrieval * documents. To leverage this, document embedding is required. The ranking * expression setting in ServingConfig applies to all search requests served - * by the serving config. However, if - * [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] - * is specified, it overrides the ServingConfig ranking expression. + * by the serving config. However, if `SearchRequest.ranking_expression` is + * specified, it overrides the ServingConfig ranking expression. * * The ranking expression is a single function or multiple functions that are * joined by "+". @@ -1116,6 +1114,68 @@ public interface ServingConfigOrBuilder */ com.google.protobuf.ByteString getIgnoreControlIdsBytes(int index); + /** + * + * + *
            +   * Condition promote specifications.
            +   *
            +   * Maximum number of specifications is 100.
            +   * 
            + * + * repeated string promote_control_ids = 26; + * + * @return A list containing the promoteControlIds. + */ + java.util.List getPromoteControlIdsList(); + + /** + * + * + *
            +   * Condition promote specifications.
            +   *
            +   * Maximum number of specifications is 100.
            +   * 
            + * + * repeated string promote_control_ids = 26; + * + * @return The count of promoteControlIds. + */ + int getPromoteControlIdsCount(); + + /** + * + * + *
            +   * Condition promote specifications.
            +   *
            +   * Maximum number of specifications is 100.
            +   * 
            + * + * repeated string promote_control_ids = 26; + * + * @param index The index of the element to return. + * @return The promoteControlIds at the given index. + */ + java.lang.String getPromoteControlIds(int index); + + /** + * + * + *
            +   * Condition promote specifications.
            +   *
            +   * Maximum number of specifications is 100.
            +   * 
            + * + * repeated string promote_control_ids = 26; + * + * @param index The index of the value to return. + * @return The bytes of the promoteControlIds at the given index. + */ + com.google.protobuf.ByteString getPromoteControlIdsBytes(int index); + /** * * @@ -1188,5 +1248,49 @@ public interface ServingConfigOrBuilder com.google.cloud.discoveryengine.v1beta.SearchRequest.PersonalizationSpecOrBuilder getPersonalizationSpecOrBuilder(); + /** + * + * + *
            +   * Optional. The specification for answer generation.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the answerGenerationSpec field is set. + */ + boolean hasAnswerGenerationSpec(); + + /** + * + * + *
            +   * Optional. The specification for answer generation.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The answerGenerationSpec. + */ + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpec getAnswerGenerationSpec(); + + /** + * + * + *
            +   * Optional. The specification for answer generation.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AnswerGenerationSpec answer_generation_spec = 27 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.AnswerGenerationSpecOrBuilder + getAnswerGenerationSpecOrBuilder(); + com.google.cloud.discoveryengine.v1beta.ServingConfig.VerticalConfigCase getVerticalConfigCase(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigProto.java index 629c608b41f3..8905045afcd8 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigProto.java @@ -52,6 +52,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_discoveryengine_v1beta_ServingConfig_GenericConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_ServingConfig_GenericConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_UserDefinedClassifierSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_UserDefinedClassifierSpec_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -61,64 +69,77 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n8google/cloud/discoveryengine/v1beta/se" - + "rving_config.proto\022#google.cloud.discove" + "\n" + + "8google/cloud/discoveryengine/v1beta/serving_config.proto\022#google.cloud.discove" + "ryengine.v1beta\032\037google/api/field_behavi" + "or.proto\032\031google/api/resource.proto\0320goo" - + "gle/cloud/discoveryengine/v1beta/common." - + "proto\0328google/cloud/discoveryengine/v1be" - + "ta/search_service.proto\032\037google/protobuf" - + "/timestamp.proto\"\245\r\n\rServingConfig\022V\n\014me" - + "dia_config\030\007 \001(\0132>.google.cloud.discover" - + "yengine.v1beta.ServingConfig.MediaConfig" - + "H\000\022Z\n\016generic_config\030\n \001(\0132@.google.clou" - + "d.discoveryengine.v1beta.ServingConfig.G" - + "enericConfigH\000\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\031\n\014dis" - + "play_name\030\002 \001(\tB\003\340A\002\022P\n\rsolution_type\030\003 " - + "\001(\01621.google.cloud.discoveryengine.v1bet" - + "a.SolutionTypeB\006\340A\002\340A\005\022\020\n\010model_id\030\004 \001(\t" - + "\022\027\n\017diversity_level\030\005 \001(\t\022N\n\020embedding_c" - + "onfig\030\024 \001(\01324.google.cloud.discoveryengi" - + "ne.v1beta.EmbeddingConfig\022\032\n\022ranking_exp" - + "ression\030\025 \001(\t\0224\n\013create_time\030\010 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\003\0224\n\013update_ti" - + "me\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\022\032\n\022filter_control_ids\030\013 \003(\t\022\031\n\021boost_c" - + "ontrol_ids\030\014 \003(\t\022\034\n\024redirect_control_ids" - + "\030\016 \003(\t\022\034\n\024synonyms_control_ids\030\017 \003(\t\022#\n\033" - + "oneway_synonyms_control_ids\030\020 \003(\t\022\036\n\026dis" - + "sociate_control_ids\030\021 \003(\t\022\037\n\027replacement" - + "_control_ids\030\022 \003(\t\022\032\n\022ignore_control_ids" - + "\030\023 \003(\t\022d\n\024personalization_spec\030\031 \001(\0132F.g" - + "oogle.cloud.discoveryengine.v1beta.Searc" - + "hRequest.PersonalizationSpec\032\367\001\n\013MediaCo" - + "nfig\022.\n$content_watched_percentage_thres" - + "hold\030\002 \001(\002H\000\022+\n!content_watched_seconds_" - + "threshold\030\005 \001(\002H\000\022\033\n\023demotion_event_type" - + "\030\001 \001(\t\022-\n demote_content_watched_past_da" - + "ys\030% \001(\005B\003\340A\001\022%\n\035content_freshness_cutof" - + "f_days\030\004 \001(\005B\030\n\026demote_content_watched\032r" - + "\n\rGenericConfig\022a\n\023content_search_spec\030\001" - + " \001(\0132D.google.cloud.discoveryengine.v1be" - + "ta.SearchRequest.ContentSearchSpec:\200\003\352A\374" - + "\002\n,discoveryengine.googleapis.com/Servin" - + "gConfig\022_projects/{project}/locations/{l" - + "ocation}/dataStores/{data_store}/serving" - + "Configs/{serving_config}\022xprojects/{proj" - + "ect}/locations/{location}/collections/{c" - + "ollection}/dataStores/{data_store}/servi" - + "ngConfigs/{serving_config}\022qprojects/{pr" - + "oject}/locations/{location}/collections/" - + "{collection}/engines/{engine}/servingCon" - + "figs/{serving_config}B\021\n\017vertical_config" - + "B\231\002\n\'com.google.cloud.discoveryengine.v1" - + "betaB\022ServingConfigProtoP\001ZQcloud.google" - + ".com/go/discoveryengine/apiv1beta/discov" - + "eryenginepb;discoveryenginepb\242\002\017DISCOVER" - + "YENGINE\252\002#Google.Cloud.DiscoveryEngine.V" - + "1Beta\312\002#Google\\Cloud\\DiscoveryEngine\\V1b" - + "eta\352\002&Google::Cloud::DiscoveryEngine::V1" - + "betab\006proto3" + + "gle/cloud/discoveryengine/v1beta/common.proto\0328google/cloud/discoveryengine/v1be" + + "ta/search_service.proto\032\037google/protobuf/timestamp.proto\"\242\016\n\r" + + "ServingConfig\022V\n" + + "\014media_config\030\007 \001(\0132>.google.cloud.discover" + + "yengine.v1beta.ServingConfig.MediaConfigH\000\022Z\n" + + "\016generic_config\030\n" + + " \001(\0132@.google.clou" + + "d.discoveryengine.v1beta.ServingConfig.GenericConfigH\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\005\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\002\022P\n\r" + + "solution_type\030\003 " + + "\001(\01621.google.cloud.discoveryengine.v1beta.SolutionTypeB\006\340A\002\340A\005\022\020\n" + + "\010model_id\030\004 \001(\t\022\027\n" + + "\017diversity_level\030\005 \001(\t\022N\n" + + "\020embedding_config\030\024" + + " \001(\01324.google.cloud.discoveryengine.v1beta.EmbeddingConfig\022\032\n" + + "\022ranking_expression\030\025 \001(\t\0224\n" + + "\013create_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\032\n" + + "\022filter_control_ids\030\013 \003(\t\022\031\n" + + "\021boost_control_ids\030\014 \003(\t\022\034\n" + + "\024redirect_control_ids\030\016 \003(\t\022\034\n" + + "\024synonyms_control_ids\030\017 \003(\t\022#\n" + + "\033oneway_synonyms_control_ids\030\020 \003(\t\022\036\n" + + "\026dissociate_control_ids\030\021 \003(\t\022\037\n" + + "\027replacement_control_ids\030\022 \003(\t\022\032\n" + + "\022ignore_control_ids\030\023 \003(\t\022\033\n" + + "\023promote_control_ids\030\032 \003(\t\022d\n" + + "\024personalization_spec\030\031 \001(\0132F.google.cloud" + + ".discoveryengine.v1beta.SearchRequest.PersonalizationSpec\022^\n" + + "\026answer_generation_spec\030\033" + + " \001(\01329.google.cloud.discoveryengine.v1beta.AnswerGenerationSpecB\003\340A\001\032\367\001\n" + + "\013MediaConfig\022.\n" + + "$content_watched_percentage_threshold\030\002 \001(\002H\000\022+\n" + + "!content_watched_seconds_threshold\030\005 \001(\002H\000\022\033\n" + + "\023demotion_event_type\030\001 \001(\t\022-\n" + + " demote_content_watched_past_days\030% \001(\005B\003\340A\001\022%\n" + + "\035content_freshness_cutoff_days\030\004 \001(\005B\030\n" + + "\026demote_content_watched\032r\n\r" + + "GenericConfig\022a\n" + + "\023content_search_spec\030\001 \001(\0132D.google.cloud.discoveryengine" + + ".v1beta.SearchRequest.ContentSearchSpec:\200\003\352A\374\002\n" + + ",discoveryengine.googleapis.com/ServingConfig\022_projects/{project}/locatio" + + "ns/{location}/dataStores/{data_store}/servingConfigs/{serving_config}\022xprojects/" + + "{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/" + + "servingConfigs/{serving_config}\022qprojects/{project}/locations/{location}/collect" + + "ions/{collection}/engines/{engine}/servingConfigs/{serving_config}B\021\n" + + "\017vertical_config\"\376\002\n" + + "\024AnswerGenerationSpec\022~\n" + + "\034user_defined_classifier_spec\030\001 \001(\0132S.google.cl" + + "oud.discoveryengine.v1beta.AnswerGenerat" + + "ionSpec.UserDefinedClassifierSpecB\003\340A\001\032\345\001\n" + + "\031UserDefinedClassifierSpec\022+\n" + + "\036enable_user_defined_classifier\030\001 \001(\010B\003\340A\001\022\025\n" + + "\010preamble\030\002 \001(\tB\003\340A\001\022\025\n" + + "\010model_id\030\003 \001(\tB\003\340A\001\022\030\n" + + "\013task_marker\030\004 \001(\tB\003\340A\001\022\022\n" + + "\005top_p\030\005 \001(\001B\003\340A\001\022\022\n" + + "\005top_k\030\006 \001(\003B\003\340A\001\022\030\n" + + "\013temperature\030\007 \001(\001B\003\340A\001\022\021\n" + + "\004seed\030\010 \001(\005B\003\340A\001B\231\002\n" + + "\'com.google.cloud.discoveryengine.v1betaB\022Serv" + + "ingConfigProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginep" + + "b;discoveryenginepb\242\002\017DISCOVERYENGINE\252\002#" + + "Google.Cloud.DiscoveryEngine.V1Beta\312\002#Go" + + "ogle\\Cloud\\DiscoveryEngine\\V1beta\352\002&Goog" + + "le::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -155,7 +176,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DissociateControlIds", "ReplacementControlIds", "IgnoreControlIds", + "PromoteControlIds", "PersonalizationSpec", + "AnswerGenerationSpec", "VerticalConfig", }); internal_static_google_cloud_discoveryengine_v1beta_ServingConfig_MediaConfig_descriptor = @@ -181,6 +204,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ContentSearchSpec", }); + internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_descriptor, + new java.lang.String[] { + "UserDefinedClassifierSpec", + }); + internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_UserDefinedClassifierSpec_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_UserDefinedClassifierSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_AnswerGenerationSpec_UserDefinedClassifierSpec_descriptor, + new java.lang.String[] { + "EnableUserDefinedClassifier", + "Preamble", + "ModelId", + "TaskMarker", + "TopP", + "TopK", + "Temperature", + "Seed", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceProto.java index 0a794e5da91f..93e2b3b5acd6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ServingConfigServiceProto.java @@ -40,10 +40,18 @@ 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_v1beta_CreateServingConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_CreateServingConfigRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_UpdateServingConfigRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_discoveryengine_v1beta_UpdateServingConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_DeleteServingConfigRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_DeleteServingConfigRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_discoveryengine_v1beta_GetServingConfigRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -65,59 +73,103 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "@google/cloud/discoveryengine/v1beta/serving_config_service.proto\022#google.cloud" + "\n@google/cloud/discoveryengine/v1beta/se" + + "rving_config_service.proto\022#google.cloud" + ".discoveryengine.v1beta\032\034google/api/anno" + "tations.proto\032\027google/api/client.proto\032\037" + "google/api/field_behavior.proto\032\031google/" - + "api/resource.proto\0328google/cloud/discoveryengine/v1beta/serving_config.proto\032" - + " google/protobuf/field_mask.proto\"\236\001\n" - + "\032UpdateServingConfigRequest\022O\n" - + "\016serving_config\030\001" - + " \001(\01322.google.cloud.discoveryengine.v1beta.ServingConfigB\003\340A\002\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"]\n" - + "\027GetServingConfigRequest\022B\n" - + "\004name\030\001 \001(\tB4\340A\002\372A.\n" - + ",discoveryengine.googleapis.com/ServingConfig\"\222\001\n" - + "\031ListServingConfigsRequest\022D\n" - + "\006parent\030\001 \001(" - + "\tB4\340A\002\372A.\022,discoveryengine.googleapis.com/ServingConfig\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\"\202\001\n" - + "\032ListServingConfigsResponse\022K\n" - + "\017serving_configs\030\001" - + " \003(\01322.google.cloud.discoveryengine.v1beta.ServingConfig\022\027\n" - + "\017next_page_token\030\002 \001(\t2\202\013\n" - + "\024ServingConfigService\022\372\003\n" - + "\023UpdateServingConfig\022?.google.cloud.discove" - + "ryengine.v1beta.UpdateServingConfigRequest\0322.google.cloud.discoveryengine.v1beta" - + ".ServingConfig\"\355\002\332A\032serving_config,updat" - + "e_mask\202\323\344\223\002\311\0022R/v1beta/{serving_config.n" - + "ame=projects/*/locations/*/dataStores/*/servingConfigs/*}:\016serving_configZr2`/v1" - + "beta/{serving_config.name=projects/*/locations/*/collections/*/dataStores/*/serv" - + "ingConfigs/*}:\016serving_configZo2]/v1beta/{serving_config.name=projects/*/locatio" - + "ns/*/collections/*/engines/*/servingConfigs/*}:\016serving_config\022\201\003\n" - + "\020GetServingConfig\022<.google.cloud.discoveryengine.v1bet" - + "a.GetServingConfigRequest\0322.google.cloud" - + ".discoveryengine.v1beta.ServingConfig\"\372\001" - + "\332A\004name\202\323\344\223\002\354\001\022C/v1beta/{name=projects/*" - + "/locations/*/dataStores/*/servingConfigs/*}ZS\022Q/v1beta/{name=projects/*/location" - + "s/*/collections/*/dataStores/*/servingConfigs/*}ZP\022N/v1beta/{name=projects/*/loc" - + "ations/*/collections/*/engines/*/servingConfigs/*}\022\224\003\n" - + "\022ListServingConfigs\022>.google.cloud.discoveryengine.v1beta.ListServ" - + "ingConfigsRequest\032?.google.cloud.discoveryengine.v1beta.ListServingConfigsRespon" - + "se\"\374\001\332A\006parent\202\323\344\223\002\354\001\022C/v1beta/{parent=p" - + "rojects/*/locations/*/dataStores/*}/servingConfigsZS\022Q/v1beta/{parent=projects/*" - + "/locations/*/collections/*/dataStores/*}/servingConfigsZP\022N/v1beta/{parent=proje" - + "cts/*/locations/*/collections/*/engines/" - + "*}/servingConfigs\032R\312A\036discoveryengine.go" - + "ogleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\240\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB\031ServingConfig" - + "ServiceProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;" - + "discoveryenginepb\242\002\017DISCOVERYENGINE\252\002#Go" - + "ogle.Cloud.DiscoveryEngine.V1Beta\312\002#Goog" - + "le\\Cloud\\DiscoveryEngine\\V1beta\352\002&Google" - + "::Cloud::DiscoveryEngine::V1betab\006proto3" + + "api/resource.proto\0328google/cloud/discove" + + "ryengine/v1beta/serving_config.proto\032\033go" + + "ogle/protobuf/empty.proto\032 google/protob" + + "uf/field_mask.proto\"\323\001\n\032CreateServingCon" + + "figRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\022,disc" + + "overyengine.googleapis.com/ServingConfig" + + "\022O\n\016serving_config\030\002 \001(\01322.google.cloud." + + "discoveryengine.v1beta.ServingConfigB\003\340A" + + "\002\022\036\n\021serving_config_id\030\003 \001(\tB\003\340A\002\"\236\001\n\032Up" + + "dateServingConfigRequest\022O\n\016serving_conf" + + "ig\030\001 \001(\01322.google.cloud.discoveryengine." + + "v1beta.ServingConfigB\003\340A\002\022/\n\013update_mask" + + "\030\002 \001(\0132\032.google.protobuf.FieldMask\"`\n\032De" + + "leteServingConfigRequest\022B\n\004name\030\001 \001(\tB4" + + "\340A\002\372A.\n,discoveryengine.googleapis.com/S" + + "ervingConfig\"]\n\027GetServingConfigRequest\022" + + "B\n\004name\030\001 \001(\tB4\340A\002\372A.\n,discoveryengine.g" + + "oogleapis.com/ServingConfig\"\222\001\n\031ListServ" + + "ingConfigsRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A" + + ".\022,discoveryengine.googleapis.com/Servin" + + "gConfig\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_" + + "token\030\003 \001(\tB\003\340A\001\"\202\001\n\032ListServingConfigsR" + + "esponse\022K\n\017serving_configs\030\001 \003(\01322.googl" + + "e.cloud.discoveryengine.v1beta.ServingCo" + + "nfig\022\027\n\017next_page_token\030\002 \001(\t2\313\022\n\024Servin" + + "gConfigService\022\332\003\n\023CreateServingConfig\022?" + + ".google.cloud.discoveryengine.v1beta.Cre" + + "ateServingConfigRequest\0322.google.cloud.d" + + "iscoveryengine.v1beta.ServingConfig\"\315\002\332A" + + "\'parent,serving_config,serving_config_id" + + "\202\323\344\223\002\234\002\"C/v1beta/{parent=projects/*/loca" + + "tions/*/dataStores/*}/servingConfigs:\016se" + + "rving_configZc\"Q/v1beta/{parent=projects" + + "/*/locations/*/collections/*/dataStores/" + + "*}/servingConfigs:\016serving_configZ`\"N/v1" + + "beta/{parent=projects/*/locations/*/coll" + + "ections/*/engines/*}/servingConfigs:\016ser" + + "ving_config\022\353\002\n\023DeleteServingConfig\022?.go" + + "ogle.cloud.discoveryengine.v1beta.Delete" + + "ServingConfigRequest\032\026.google.protobuf.E" + + "mpty\"\372\001\332A\004name\202\323\344\223\002\354\001*C/v1beta/{name=pro" + + "jects/*/locations/*/dataStores/*/serving" + + "Configs/*}ZS*Q/v1beta/{name=projects/*/l" + + "ocations/*/collections/*/dataStores/*/se" + + "rvingConfigs/*}ZP*N/v1beta/{name=project" + + "s/*/locations/*/collections/*/engines/*/" + + "servingConfigs/*}\022\372\003\n\023UpdateServingConfi" + + "g\022?.google.cloud.discoveryengine.v1beta." + + "UpdateServingConfigRequest\0322.google.clou" + + "d.discoveryengine.v1beta.ServingConfig\"\355" + + "\002\332A\032serving_config,update_mask\202\323\344\223\002\311\0022R/" + + "v1beta/{serving_config.name=projects/*/l" + + "ocations/*/dataStores/*/servingConfigs/*" + + "}:\016serving_configZr2`/v1beta/{serving_co" + + "nfig.name=projects/*/locations/*/collect" + + "ions/*/dataStores/*/servingConfigs/*}:\016s" + + "erving_configZo2]/v1beta/{serving_config" + + ".name=projects/*/locations/*/collections" + + "/*/engines/*/servingConfigs/*}:\016serving_" + + "config\022\201\003\n\020GetServingConfig\022<.google.clo" + + "ud.discoveryengine.v1beta.GetServingConf" + + "igRequest\0322.google.cloud.discoveryengine" + + ".v1beta.ServingConfig\"\372\001\332A\004name\202\323\344\223\002\354\001\022C" + + "/v1beta/{name=projects/*/locations/*/dat" + + "aStores/*/servingConfigs/*}ZS\022Q/v1beta/{" + + "name=projects/*/locations/*/collections/" + + "*/dataStores/*/servingConfigs/*}ZP\022N/v1b" + + "eta/{name=projects/*/locations/*/collect" + + "ions/*/engines/*/servingConfigs/*}\022\224\003\n\022L" + + "istServingConfigs\022>.google.cloud.discove" + + "ryengine.v1beta.ListServingConfigsReques" + + "t\032?.google.cloud.discoveryengine.v1beta." + + "ListServingConfigsResponse\"\374\001\332A\006parent\202\323" + + "\344\223\002\354\001\022C/v1beta/{parent=projects/*/locati" + + "ons/*/dataStores/*}/servingConfigsZS\022Q/v" + + "1beta/{parent=projects/*/locations/*/col" + + "lections/*/dataStores/*}/servingConfigsZ" + + "P\022N/v1beta/{parent=projects/*/locations/" + + "*/collections/*/engines/*}/servingConfig" + + "s\032\317\001\312A\036discoveryengine.googleapis.com\322A\252" + + "\001https://www.googleapis.com/auth/cloud-p" + + "latform,https://www.googleapis.com/auth/" + + "discoveryengine.readwrite,https://www.go" + + "ogleapis.com/auth/discoveryengine.servin" + + "g.readwriteB\240\002\n\'com.google.cloud.discove" + + "ryengine.v1betaB\031ServingConfigServicePro" + + "toP\001ZQcloud.google.com/go/discoveryengin" + + "e/apiv1beta/discoveryenginepb;discoverye" + + "nginepb\242\002\017DISCOVERYENGINE\252\002#Google.Cloud" + + ".DiscoveryEngine.V1Beta\312\002#Google\\Cloud\\D" + + "iscoveryEngine\\V1beta\352\002&Google::Cloud::D" + + "iscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -128,18 +180,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.discoveryengine.v1beta.ServingConfigProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), }); - internal_static_google_cloud_discoveryengine_v1beta_UpdateServingConfigRequest_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_CreateServingConfigRequest_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1beta_CreateServingConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_CreateServingConfigRequest_descriptor, + new java.lang.String[] { + "Parent", "ServingConfig", "ServingConfigId", + }); + internal_static_google_cloud_discoveryengine_v1beta_UpdateServingConfigRequest_descriptor = + getDescriptor().getMessageType(1); internal_static_google_cloud_discoveryengine_v1beta_UpdateServingConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_UpdateServingConfigRequest_descriptor, new java.lang.String[] { "ServingConfig", "UpdateMask", }); + internal_static_google_cloud_discoveryengine_v1beta_DeleteServingConfigRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_discoveryengine_v1beta_DeleteServingConfigRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_DeleteServingConfigRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_discoveryengine_v1beta_GetServingConfigRequest_descriptor = - getDescriptor().getMessageType(1); + getDescriptor().getMessageType(3); internal_static_google_cloud_discoveryengine_v1beta_GetServingConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_GetServingConfigRequest_descriptor, @@ -147,7 +216,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_discoveryengine_v1beta_ListServingConfigsRequest_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(4); internal_static_google_cloud_discoveryengine_v1beta_ListServingConfigsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_ListServingConfigsRequest_descriptor, @@ -155,7 +224,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_discoveryengine_v1beta_ListServingConfigsResponse_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(5); internal_static_google_cloud_discoveryengine_v1beta_ListServingConfigsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_ListServingConfigsResponse_descriptor, @@ -168,6 +237,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.discoveryengine.v1beta.ServingConfigProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Session.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Session.java index c2f8769481e6..27152649083e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Session.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/Session.java @@ -57,6 +57,8 @@ private Session() { state_ = 0; userPseudoId_ = ""; turns_ = java.util.Collections.emptyList(); + labels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pendingAsyncAssistOperationId_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -365,6 +367,65 @@ public interface TurnOrBuilder */ com.google.cloud.discoveryengine.v1beta.AnswerOrBuilder getDetailedAnswerOrBuilder(); + /** + * + * + *
            +     * Output only. In
            +     * [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession]
            +     * API, if
            +     * [GetSessionRequest.include_answer_details][google.cloud.discoveryengine.v1beta.GetSessionRequest.include_answer_details]
            +     * is set to true, this field will be populated when getting assistant
            +     * session.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer detailed_assist_answer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the detailedAssistAnswer field is set. + */ + boolean hasDetailedAssistAnswer(); + + /** + * + * + *
            +     * Output only. In
            +     * [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession]
            +     * API, if
            +     * [GetSessionRequest.include_answer_details][google.cloud.discoveryengine.v1beta.GetSessionRequest.include_answer_details]
            +     * is set to true, this field will be populated when getting assistant
            +     * session.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer detailed_assist_answer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The detailedAssistAnswer. + */ + com.google.cloud.discoveryengine.v1beta.AssistAnswer getDetailedAssistAnswer(); + + /** + * + * + *
            +     * Output only. In
            +     * [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession]
            +     * API, if
            +     * [GetSessionRequest.include_answer_details][google.cloud.discoveryengine.v1beta.GetSessionRequest.include_answer_details]
            +     * is set to true, this field will be populated when getting assistant
            +     * session.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer detailed_assist_answer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistAnswerOrBuilder + getDetailedAssistAnswerOrBuilder(); + /** * * @@ -447,6 +508,19 @@ java.lang.String getQueryConfigOrDefault( * */ java.lang.String getQueryConfigOrThrow(java.lang.String key); + + /** + * + * + *
            +     * Optional. Indicates whether this turn is a live turn.
            +     * 
            + * + * bool live = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The live. + */ + boolean getLive(); } /** @@ -711,6 +785,81 @@ public com.google.cloud.discoveryengine.v1beta.AnswerOrBuilder getDetailedAnswer : detailedAnswer_; } + public static final int DETAILED_ASSIST_ANSWER_FIELD_NUMBER = 8; + private com.google.cloud.discoveryengine.v1beta.AssistAnswer detailedAssistAnswer_; + + /** + * + * + *
            +     * Output only. In
            +     * [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession]
            +     * API, if
            +     * [GetSessionRequest.include_answer_details][google.cloud.discoveryengine.v1beta.GetSessionRequest.include_answer_details]
            +     * is set to true, this field will be populated when getting assistant
            +     * session.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer detailed_assist_answer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the detailedAssistAnswer field is set. + */ + @java.lang.Override + public boolean hasDetailedAssistAnswer() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Output only. In
            +     * [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession]
            +     * API, if
            +     * [GetSessionRequest.include_answer_details][google.cloud.discoveryengine.v1beta.GetSessionRequest.include_answer_details]
            +     * is set to true, this field will be populated when getting assistant
            +     * session.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer detailed_assist_answer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The detailedAssistAnswer. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer getDetailedAssistAnswer() { + return detailedAssistAnswer_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistAnswer.getDefaultInstance() + : detailedAssistAnswer_; + } + + /** + * + * + *
            +     * Output only. In
            +     * [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession]
            +     * API, if
            +     * [GetSessionRequest.include_answer_details][google.cloud.discoveryengine.v1beta.GetSessionRequest.include_answer_details]
            +     * is set to true, this field will be populated when getting assistant
            +     * session.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer detailed_assist_answer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswerOrBuilder + getDetailedAssistAnswerOrBuilder() { + return detailedAssistAnswer_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistAnswer.getDefaultInstance() + : detailedAssistAnswer_; + } + public static final int QUERY_CONFIG_FIELD_NUMBER = 16; private static final class QueryConfigDefaultEntryHolder { @@ -836,6 +985,25 @@ public java.lang.String getQueryConfigOrThrow(java.lang.String key) { return map.get(key); } + public static final int LIVE_FIELD_NUMBER = 20; + private boolean live_ = false; + + /** + * + * + *
            +     * Optional. Indicates whether this turn is a live turn.
            +     * 
            + * + * bool live = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The live. + */ + @java.lang.Override + public boolean getLive() { + return live_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -859,8 +1027,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(7, getDetailedAnswer()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getDetailedAssistAnswer()); + } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetQueryConfig(), QueryConfigDefaultEntryHolder.defaultEntry, 16); + if (live_ != false) { + output.writeBool(20, live_); + } getUnknownFields().writeTo(output); } @@ -879,6 +1053,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDetailedAnswer()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDetailedAssistAnswer()); + } for (java.util.Map.Entry entry : internalGetQueryConfig().getMap().entrySet()) { com.google.protobuf.MapEntry queryConfig__ = @@ -889,6 +1067,9 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, queryConfig__); } + if (live_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(20, live_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -914,7 +1095,12 @@ public boolean equals(final java.lang.Object obj) { if (hasDetailedAnswer()) { if (!getDetailedAnswer().equals(other.getDetailedAnswer())) return false; } + if (hasDetailedAssistAnswer() != other.hasDetailedAssistAnswer()) return false; + if (hasDetailedAssistAnswer()) { + if (!getDetailedAssistAnswer().equals(other.getDetailedAssistAnswer())) return false; + } if (!internalGetQueryConfig().equals(other.internalGetQueryConfig())) return false; + if (getLive() != other.getLive()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -936,10 +1122,16 @@ public int hashCode() { hash = (37 * hash) + DETAILED_ANSWER_FIELD_NUMBER; hash = (53 * hash) + getDetailedAnswer().hashCode(); } + if (hasDetailedAssistAnswer()) { + hash = (37 * hash) + DETAILED_ASSIST_ANSWER_FIELD_NUMBER; + hash = (53 * hash) + getDetailedAssistAnswer().hashCode(); + } if (!internalGetQueryConfig().getMap().isEmpty()) { hash = (37 * hash) + QUERY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + internalGetQueryConfig().hashCode(); } + hash = (37 * hash) + LIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLive()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1107,6 +1299,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetQueryFieldBuilder(); internalGetDetailedAnswerFieldBuilder(); + internalGetDetailedAssistAnswerFieldBuilder(); } } @@ -1125,7 +1318,13 @@ public Builder clear() { detailedAnswerBuilder_.dispose(); detailedAnswerBuilder_ = null; } + detailedAssistAnswer_ = null; + if (detailedAssistAnswerBuilder_ != null) { + detailedAssistAnswerBuilder_.dispose(); + detailedAssistAnswerBuilder_ = null; + } internalGetMutableQueryConfig().clear(); + live_ = false; return this; } @@ -1176,9 +1375,19 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Session.Turn to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { + result.detailedAssistAnswer_ = + detailedAssistAnswerBuilder_ == null + ? detailedAssistAnswer_ + : detailedAssistAnswerBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { result.queryConfig_ = internalGetQueryConfig(); result.queryConfig_.makeImmutable(); } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.live_ = live_; + } result.bitField0_ |= to_bitField0_; } @@ -1206,8 +1415,14 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Session.Turn ot if (other.hasDetailedAnswer()) { mergeDetailedAnswer(other.getDetailedAnswer()); } + if (other.hasDetailedAssistAnswer()) { + mergeDetailedAssistAnswer(other.getDetailedAssistAnswer()); + } internalGetMutableQueryConfig().mergeFrom(other.internalGetQueryConfig()); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; + if (other.getLive() != false) { + setLive(other.getLive()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1253,6 +1468,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 58 + case 66: + { + input.readMessage( + internalGetDetailedAssistAnswerFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 66 case 130: { com.google.protobuf.MapEntry queryConfig__ = @@ -1262,9 +1485,15 @@ public Builder mergeFrom( internalGetMutableQueryConfig() .getMutableMap() .put(queryConfig__.getKey(), queryConfig__.getValue()); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 130 + case 160: + { + live_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 160 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1901,137 +2130,400 @@ public com.google.cloud.discoveryengine.v1beta.AnswerOrBuilder getDetailedAnswer return detailedAnswerBuilder_; } - private com.google.protobuf.MapField queryConfig_; - - private com.google.protobuf.MapField - internalGetQueryConfig() { - if (queryConfig_ == null) { - return com.google.protobuf.MapField.emptyMapField( - QueryConfigDefaultEntryHolder.defaultEntry); - } - return queryConfig_; - } - - private com.google.protobuf.MapField - internalGetMutableQueryConfig() { - if (queryConfig_ == null) { - queryConfig_ = - com.google.protobuf.MapField.newMapField(QueryConfigDefaultEntryHolder.defaultEntry); - } - if (!queryConfig_.isMutable()) { - queryConfig_ = queryConfig_.copy(); - } - bitField0_ |= 0x00000008; - onChanged(); - return queryConfig_; - } - - public int getQueryConfigCount() { - return internalGetQueryConfig().getMap().size(); - } + private com.google.cloud.discoveryengine.v1beta.AssistAnswer detailedAssistAnswer_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswerOrBuilder> + detailedAssistAnswerBuilder_; /** * * *
            -       * Optional. Represents metadata related to the query config, for example
            -       * LLM model and version used, model parameters (temperature, grounding
            -       * parameters, etc.). The prefix "google." is reserved for Google-developed
            -       * functionality.
            +       * Output only. In
            +       * [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession]
            +       * API, if
            +       * [GetSessionRequest.include_answer_details][google.cloud.discoveryengine.v1beta.GetSessionRequest.include_answer_details]
            +       * is set to true, this field will be populated when getting assistant
            +       * session.
                    * 
            * * - * map<string, string> query_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1beta.AssistAnswer detailed_assist_answer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return Whether the detailedAssistAnswer field is set. */ - @java.lang.Override - public boolean containsQueryConfig(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetQueryConfig().getMap().containsKey(key); - } - - /** Use {@link #getQueryConfigMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getQueryConfig() { - return getQueryConfigMap(); + public boolean hasDetailedAssistAnswer() { + return ((bitField0_ & 0x00000008) != 0); } /** * * *
            -       * Optional. Represents metadata related to the query config, for example
            -       * LLM model and version used, model parameters (temperature, grounding
            -       * parameters, etc.). The prefix "google." is reserved for Google-developed
            -       * functionality.
            +       * Output only. In
            +       * [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession]
            +       * API, if
            +       * [GetSessionRequest.include_answer_details][google.cloud.discoveryengine.v1beta.GetSessionRequest.include_answer_details]
            +       * is set to true, this field will be populated when getting assistant
            +       * session.
                    * 
            * * - * map<string, string> query_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1beta.AssistAnswer detailed_assist_answer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * + * + * @return The detailedAssistAnswer. */ - @java.lang.Override - public java.util.Map getQueryConfigMap() { - return internalGetQueryConfig().getMap(); + public com.google.cloud.discoveryengine.v1beta.AssistAnswer getDetailedAssistAnswer() { + if (detailedAssistAnswerBuilder_ == null) { + return detailedAssistAnswer_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistAnswer.getDefaultInstance() + : detailedAssistAnswer_; + } else { + return detailedAssistAnswerBuilder_.getMessage(); + } } /** * * *
            -       * Optional. Represents metadata related to the query config, for example
            -       * LLM model and version used, model parameters (temperature, grounding
            -       * parameters, etc.). The prefix "google." is reserved for Google-developed
            -       * functionality.
            +       * Output only. In
            +       * [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession]
            +       * API, if
            +       * [GetSessionRequest.include_answer_details][google.cloud.discoveryengine.v1beta.GetSessionRequest.include_answer_details]
            +       * is set to true, this field will be populated when getting assistant
            +       * session.
                    * 
            * * - * map<string, string> query_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1beta.AssistAnswer detailed_assist_answer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public /* nullable */ java.lang.String getQueryConfigOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); + public Builder setDetailedAssistAnswer( + com.google.cloud.discoveryengine.v1beta.AssistAnswer value) { + if (detailedAssistAnswerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + detailedAssistAnswer_ = value; + } else { + detailedAssistAnswerBuilder_.setMessage(value); } - java.util.Map map = internalGetQueryConfig().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + bitField0_ |= 0x00000008; + onChanged(); + return this; } /** * * *
            -       * Optional. Represents metadata related to the query config, for example
            -       * LLM model and version used, model parameters (temperature, grounding
            -       * parameters, etc.). The prefix "google." is reserved for Google-developed
            -       * functionality.
            +       * Output only. In
            +       * [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession]
            +       * API, if
            +       * [GetSessionRequest.include_answer_details][google.cloud.discoveryengine.v1beta.GetSessionRequest.include_answer_details]
            +       * is set to true, this field will be populated when getting assistant
            +       * session.
                    * 
            * * - * map<string, string> query_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.discoveryengine.v1beta.AssistAnswer detailed_assist_answer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ - @java.lang.Override - public java.lang.String getQueryConfigOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetQueryConfig().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public Builder setDetailedAssistAnswer( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Builder builderForValue) { + if (detailedAssistAnswerBuilder_ == null) { + detailedAssistAnswer_ = builderForValue.build(); + } else { + detailedAssistAnswerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. In
            +       * [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession]
            +       * API, if
            +       * [GetSessionRequest.include_answer_details][google.cloud.discoveryengine.v1beta.GetSessionRequest.include_answer_details]
            +       * is set to true, this field will be populated when getting assistant
            +       * session.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer detailed_assist_answer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDetailedAssistAnswer( + com.google.cloud.discoveryengine.v1beta.AssistAnswer value) { + if (detailedAssistAnswerBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && detailedAssistAnswer_ != null + && detailedAssistAnswer_ + != com.google.cloud.discoveryengine.v1beta.AssistAnswer.getDefaultInstance()) { + getDetailedAssistAnswerBuilder().mergeFrom(value); + } else { + detailedAssistAnswer_ = value; + } + } else { + detailedAssistAnswerBuilder_.mergeFrom(value); + } + if (detailedAssistAnswer_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Output only. In
            +       * [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession]
            +       * API, if
            +       * [GetSessionRequest.include_answer_details][google.cloud.discoveryengine.v1beta.GetSessionRequest.include_answer_details]
            +       * is set to true, this field will be populated when getting assistant
            +       * session.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer detailed_assist_answer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDetailedAssistAnswer() { + bitField0_ = (bitField0_ & ~0x00000008); + detailedAssistAnswer_ = null; + if (detailedAssistAnswerBuilder_ != null) { + detailedAssistAnswerBuilder_.dispose(); + detailedAssistAnswerBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. In
            +       * [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession]
            +       * API, if
            +       * [GetSessionRequest.include_answer_details][google.cloud.discoveryengine.v1beta.GetSessionRequest.include_answer_details]
            +       * is set to true, this field will be populated when getting assistant
            +       * session.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer detailed_assist_answer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.Builder + getDetailedAssistAnswerBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetDetailedAssistAnswerFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Output only. In
            +       * [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession]
            +       * API, if
            +       * [GetSessionRequest.include_answer_details][google.cloud.discoveryengine.v1beta.GetSessionRequest.include_answer_details]
            +       * is set to true, this field will be populated when getting assistant
            +       * session.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer detailed_assist_answer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswerOrBuilder + getDetailedAssistAnswerOrBuilder() { + if (detailedAssistAnswerBuilder_ != null) { + return detailedAssistAnswerBuilder_.getMessageOrBuilder(); + } else { + return detailedAssistAnswer_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistAnswer.getDefaultInstance() + : detailedAssistAnswer_; + } + } + + /** + * + * + *
            +       * Output only. In
            +       * [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession]
            +       * API, if
            +       * [GetSessionRequest.include_answer_details][google.cloud.discoveryengine.v1beta.GetSessionRequest.include_answer_details]
            +       * is set to true, this field will be populated when getting assistant
            +       * session.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer detailed_assist_answer = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswerOrBuilder> + internalGetDetailedAssistAnswerFieldBuilder() { + if (detailedAssistAnswerBuilder_ == null) { + detailedAssistAnswerBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswerOrBuilder>( + getDetailedAssistAnswer(), getParentForChildren(), isClean()); + detailedAssistAnswer_ = null; + } + return detailedAssistAnswerBuilder_; + } + + private com.google.protobuf.MapField queryConfig_; + + private com.google.protobuf.MapField + internalGetQueryConfig() { + if (queryConfig_ == null) { + return com.google.protobuf.MapField.emptyMapField( + QueryConfigDefaultEntryHolder.defaultEntry); + } + return queryConfig_; + } + + private com.google.protobuf.MapField + internalGetMutableQueryConfig() { + if (queryConfig_ == null) { + queryConfig_ = + com.google.protobuf.MapField.newMapField(QueryConfigDefaultEntryHolder.defaultEntry); + } + if (!queryConfig_.isMutable()) { + queryConfig_ = queryConfig_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return queryConfig_; + } + + public int getQueryConfigCount() { + return internalGetQueryConfig().getMap().size(); + } + + /** + * + * + *
            +       * Optional. Represents metadata related to the query config, for example
            +       * LLM model and version used, model parameters (temperature, grounding
            +       * parameters, etc.). The prefix "google." is reserved for Google-developed
            +       * functionality.
            +       * 
            + * + * + * map<string, string> query_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsQueryConfig(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetQueryConfig().getMap().containsKey(key); + } + + /** Use {@link #getQueryConfigMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getQueryConfig() { + return getQueryConfigMap(); + } + + /** + * + * + *
            +       * Optional. Represents metadata related to the query config, for example
            +       * LLM model and version used, model parameters (temperature, grounding
            +       * parameters, etc.). The prefix "google." is reserved for Google-developed
            +       * functionality.
            +       * 
            + * + * + * map<string, string> query_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getQueryConfigMap() { + return internalGetQueryConfig().getMap(); + } + + /** + * + * + *
            +       * Optional. Represents metadata related to the query config, for example
            +       * LLM model and version used, model parameters (temperature, grounding
            +       * parameters, etc.). The prefix "google." is reserved for Google-developed
            +       * functionality.
            +       * 
            + * + * + * map<string, string> query_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getQueryConfigOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetQueryConfig().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +       * Optional. Represents metadata related to the query config, for example
            +       * LLM model and version used, model parameters (temperature, grounding
            +       * parameters, etc.). The prefix "google." is reserved for Google-developed
            +       * functionality.
            +       * 
            + * + * + * map<string, string> query_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getQueryConfigOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetQueryConfig().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearQueryConfig() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); internalGetMutableQueryConfig().getMutableMap().clear(); return this; } @@ -2061,7 +2553,7 @@ public Builder removeQueryConfig(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableQueryConfig() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; return internalGetMutableQueryConfig().getMutableMap(); } @@ -2087,7 +2579,7 @@ public Builder putQueryConfig(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableQueryConfig().getMutableMap().put(key, value); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; return this; } @@ -2107,7 +2599,63 @@ public Builder putQueryConfig(java.lang.String key, java.lang.String value) { */ public Builder putAllQueryConfig(java.util.Map values) { internalGetMutableQueryConfig().getMutableMap().putAll(values); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; + return this; + } + + private boolean live_; + + /** + * + * + *
            +       * Optional. Indicates whether this turn is a live turn.
            +       * 
            + * + * bool live = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The live. + */ + @java.lang.Override + public boolean getLive() { + return live_; + } + + /** + * + * + *
            +       * Optional. Indicates whether this turn is a live turn.
            +       * 
            + * + * bool live = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The live to set. + * @return This builder for chaining. + */ + public Builder setLive(boolean value) { + + live_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Indicates whether this turn is a live turn.
            +       * 
            + * + * bool live = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLive() { + bitField0_ = (bitField0_ & ~0x00000020); + live_ = false; + onChanged(); return this; } @@ -2447,6 +2995,78 @@ public com.google.cloud.discoveryengine.v1beta.Session.TurnOrBuilder getTurnsOrB return turns_.get(index); } + public static final int LABELS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList labels_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * Optional. The labels for the session.
            +   * Can be set as filter in ListSessionsRequest.
            +   * 
            + * + * repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the labels. + */ + public com.google.protobuf.ProtocolStringList getLabelsList() { + return labels_; + } + + /** + * + * + *
            +   * Optional. The labels for the session.
            +   * Can be set as filter in ListSessionsRequest.
            +   * 
            + * + * repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of labels. + */ + public int getLabelsCount() { + return labels_.size(); + } + + /** + * + * + *
            +   * Optional. The labels for the session.
            +   * Can be set as filter in ListSessionsRequest.
            +   * 
            + * + * repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The labels at the given index. + */ + public java.lang.String getLabels(int index) { + return labels_.get(index); + } + + /** + * + * + *
            +   * Optional. The labels for the session.
            +   * Can be set as filter in ListSessionsRequest.
            +   * 
            + * + * repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the labels at the given index. + */ + public com.google.protobuf.ByteString getLabelsBytes(int index) { + return labels_.getByteString(index); + } + public static final int START_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp startTime_; @@ -2571,6 +3191,69 @@ public boolean getIsPinned() { return isPinned_; } + public static final int PENDING_ASYNC_ASSIST_OPERATION_ID_FIELD_NUMBER = 22; + + @SuppressWarnings("serial") + private volatile java.lang.Object pendingAsyncAssistOperationId_ = ""; + + /** + * + * + *
            +   * Output only. Full resource name of an in-progress AsyncAssist operation for
            +   * this session, e.g.
            +   * `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`.
            +   * Set when the operation starts and cleared when it finishes.
            +   * 
            + * + * + * string pending_async_assist_operation_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pendingAsyncAssistOperationId. + */ + @java.lang.Override + public java.lang.String getPendingAsyncAssistOperationId() { + java.lang.Object ref = pendingAsyncAssistOperationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pendingAsyncAssistOperationId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. Full resource name of an in-progress AsyncAssist operation for
            +   * this session, e.g.
            +   * `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`.
            +   * Set when the operation starts and cleared when it finishes.
            +   * 
            + * + * + * string pending_async_assist_operation_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for pendingAsyncAssistOperationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPendingAsyncAssistOperationIdBytes() { + java.lang.Object ref = pendingAsyncAssistOperationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pendingAsyncAssistOperationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2610,6 +3293,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (isPinned_ != false) { output.writeBool(8, isPinned_); } + for (int i = 0; i < labels_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, labels_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pendingAsyncAssistOperationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 22, pendingAsyncAssistOperationId_); + } getUnknownFields().writeTo(output); } @@ -2644,6 +3333,19 @@ public int getSerializedSize() { if (isPinned_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, isPinned_); } + { + int dataSize = 0; + for (int i = 0; i < labels_.size(); i++) { + dataSize += computeStringSizeNoTag(labels_.getRaw(i)); + } + size += dataSize; + size += 1 * getLabelsList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pendingAsyncAssistOperationId_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 22, pendingAsyncAssistOperationId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2665,6 +3367,7 @@ public boolean equals(final java.lang.Object obj) { if (state_ != other.state_) return false; if (!getUserPseudoId().equals(other.getUserPseudoId())) return false; if (!getTurnsList().equals(other.getTurnsList())) return false; + if (!getLabelsList().equals(other.getLabelsList())) return false; if (hasStartTime() != other.hasStartTime()) return false; if (hasStartTime()) { if (!getStartTime().equals(other.getStartTime())) return false; @@ -2674,6 +3377,8 @@ public boolean equals(final java.lang.Object obj) { if (!getEndTime().equals(other.getEndTime())) return false; } if (getIsPinned() != other.getIsPinned()) return false; + if (!getPendingAsyncAssistOperationId().equals(other.getPendingAsyncAssistOperationId())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2697,6 +3402,10 @@ public int hashCode() { hash = (37 * hash) + TURNS_FIELD_NUMBER; hash = (53 * hash) + getTurnsList().hashCode(); } + if (getLabelsCount() > 0) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + getLabelsList().hashCode(); + } if (hasStartTime()) { hash = (37 * hash) + START_TIME_FIELD_NUMBER; hash = (53 * hash) + getStartTime().hashCode(); @@ -2707,6 +3416,8 @@ public int hashCode() { } hash = (37 * hash) + IS_PINNED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPinned()); + hash = (37 * hash) + PENDING_ASYNC_ASSIST_OPERATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getPendingAsyncAssistOperationId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2869,6 +3580,7 @@ public Builder clear() { turnsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); + labels_ = com.google.protobuf.LazyStringArrayList.emptyList(); startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); @@ -2880,6 +3592,7 @@ public Builder clear() { endTimeBuilder_ = null; } isPinned_ = false; + pendingAsyncAssistOperationId_ = ""; return this; } @@ -2942,18 +3655,25 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.Session resul if (((from_bitField0_ & 0x00000008) != 0)) { result.userPseudoId_ = userPseudoId_; } - int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000020) != 0)) { + labels_.makeImmutable(); + result.labels_ = labels_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.isPinned_ = isPinned_; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.pendingAsyncAssistOperationId_ = pendingAsyncAssistOperationId_; + } result.bitField0_ |= to_bitField0_; } @@ -3015,6 +3735,16 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Session other) } } } + if (!other.labels_.isEmpty()) { + if (labels_.isEmpty()) { + labels_ = other.labels_; + bitField0_ |= 0x00000020; + } else { + ensureLabelsIsMutable(); + labels_.addAll(other.labels_); + } + onChanged(); + } if (other.hasStartTime()) { mergeStartTime(other.getStartTime()); } @@ -3024,6 +3754,11 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.Session other) if (other.getIsPinned() != false) { setIsPinned(other.getIsPinned()); } + if (!other.getPendingAsyncAssistOperationId().isEmpty()) { + pendingAsyncAssistOperationId_ = other.pendingAsyncAssistOperationId_; + bitField0_ |= 0x00000200; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3086,13 +3821,13 @@ public Builder mergeFrom( { input.readMessage( internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 42 case 50: { input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 50 case 58: @@ -3104,9 +3839,22 @@ public Builder mergeFrom( case 64: { isPinned_ = input.readBool(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 64 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureLabelsIsMutable(); + labels_.add(s); + break; + } // case 74 + case 178: + { + pendingAsyncAssistOperationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 178 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3946,6 +4694,198 @@ public com.google.cloud.discoveryengine.v1beta.Session.Turn.Builder addTurnsBuil return turnsBuilder_; } + private com.google.protobuf.LazyStringArrayList labels_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureLabelsIsMutable() { + if (!labels_.isModifiable()) { + labels_ = new com.google.protobuf.LazyStringArrayList(labels_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
            +     * Optional. The labels for the session.
            +     * Can be set as filter in ListSessionsRequest.
            +     * 
            + * + * repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the labels. + */ + public com.google.protobuf.ProtocolStringList getLabelsList() { + labels_.makeImmutable(); + return labels_; + } + + /** + * + * + *
            +     * Optional. The labels for the session.
            +     * Can be set as filter in ListSessionsRequest.
            +     * 
            + * + * repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of labels. + */ + public int getLabelsCount() { + return labels_.size(); + } + + /** + * + * + *
            +     * Optional. The labels for the session.
            +     * Can be set as filter in ListSessionsRequest.
            +     * 
            + * + * repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The labels at the given index. + */ + public java.lang.String getLabels(int index) { + return labels_.get(index); + } + + /** + * + * + *
            +     * Optional. The labels for the session.
            +     * Can be set as filter in ListSessionsRequest.
            +     * 
            + * + * repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the labels at the given index. + */ + public com.google.protobuf.ByteString getLabelsBytes(int index) { + return labels_.getByteString(index); + } + + /** + * + * + *
            +     * Optional. The labels for the session.
            +     * Can be set as filter in ListSessionsRequest.
            +     * 
            + * + * repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The labels to set. + * @return This builder for chaining. + */ + public Builder setLabels(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLabelsIsMutable(); + labels_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The labels for the session.
            +     * Can be set as filter in ListSessionsRequest.
            +     * 
            + * + * repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The labels to add. + * @return This builder for chaining. + */ + public Builder addLabels(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureLabelsIsMutable(); + labels_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The labels for the session.
            +     * Can be set as filter in ListSessionsRequest.
            +     * 
            + * + * repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The labels to add. + * @return This builder for chaining. + */ + public Builder addAllLabels(java.lang.Iterable values) { + ensureLabelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, labels_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The labels for the session.
            +     * Can be set as filter in ListSessionsRequest.
            +     * 
            + * + * repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLabels() { + labels_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The labels for the session.
            +     * Can be set as filter in ListSessionsRequest.
            +     * 
            + * + * repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the labels to add. + * @return This builder for chaining. + */ + public Builder addLabelsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureLabelsIsMutable(); + labels_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + private com.google.protobuf.Timestamp startTime_; private com.google.protobuf.SingleFieldBuilder< com.google.protobuf.Timestamp, @@ -3966,7 +4906,7 @@ public com.google.cloud.discoveryengine.v1beta.Session.Turn.Builder addTurnsBuil * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -4008,7 +4948,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { } else { startTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4029,7 +4969,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu } else { startTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4046,7 +4986,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && startTime_ != null && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); @@ -4057,7 +4997,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { startTimeBuilder_.mergeFrom(value); } if (startTime_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -4074,7 +5014,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); @@ -4095,7 +5035,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return internalGetStartTimeFieldBuilder().getBuilder(); } @@ -4165,7 +5105,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return ((bitField0_ & 0x00000040) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -4207,7 +5147,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4228,7 +5168,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) } else { endTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4245,7 +5185,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) + if (((bitField0_ & 0x00000080) != 0) && endTime_ != null && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); @@ -4256,7 +5196,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { endTimeBuilder_.mergeFrom(value); } if (endTime_ != null) { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -4273,7 +5213,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); endTime_ = null; if (endTimeBuilder_ != null) { endTimeBuilder_.dispose(); @@ -4294,7 +5234,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return internalGetEndTimeFieldBuilder().getBuilder(); } @@ -4379,7 +5319,7 @@ public boolean getIsPinned() { public Builder setIsPinned(boolean value) { isPinned_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4397,12 +5337,148 @@ public Builder setIsPinned(boolean value) { * @return This builder for chaining. */ public Builder clearIsPinned() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); isPinned_ = false; onChanged(); return this; } + private java.lang.Object pendingAsyncAssistOperationId_ = ""; + + /** + * + * + *
            +     * Output only. Full resource name of an in-progress AsyncAssist operation for
            +     * this session, e.g.
            +     * `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`.
            +     * Set when the operation starts and cleared when it finishes.
            +     * 
            + * + * + * string pending_async_assist_operation_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pendingAsyncAssistOperationId. + */ + public java.lang.String getPendingAsyncAssistOperationId() { + java.lang.Object ref = pendingAsyncAssistOperationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pendingAsyncAssistOperationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. Full resource name of an in-progress AsyncAssist operation for
            +     * this session, e.g.
            +     * `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`.
            +     * Set when the operation starts and cleared when it finishes.
            +     * 
            + * + * + * string pending_async_assist_operation_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for pendingAsyncAssistOperationId. + */ + public com.google.protobuf.ByteString getPendingAsyncAssistOperationIdBytes() { + java.lang.Object ref = pendingAsyncAssistOperationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pendingAsyncAssistOperationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. Full resource name of an in-progress AsyncAssist operation for
            +     * this session, e.g.
            +     * `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`.
            +     * Set when the operation starts and cleared when it finishes.
            +     * 
            + * + * + * string pending_async_assist_operation_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The pendingAsyncAssistOperationId to set. + * @return This builder for chaining. + */ + public Builder setPendingAsyncAssistOperationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pendingAsyncAssistOperationId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Full resource name of an in-progress AsyncAssist operation for
            +     * this session, e.g.
            +     * `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`.
            +     * Set when the operation starts and cleared when it finishes.
            +     * 
            + * + * + * string pending_async_assist_operation_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearPendingAsyncAssistOperationId() { + pendingAsyncAssistOperationId_ = getDefaultInstance().getPendingAsyncAssistOperationId(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Full resource name of an in-progress AsyncAssist operation for
            +     * this session, e.g.
            +     * `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`.
            +     * Set when the operation starts and cleared when it finishes.
            +     * 
            + * + * + * string pending_async_assist_operation_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for pendingAsyncAssistOperationId to set. + * @return This builder for chaining. + */ + public Builder setPendingAsyncAssistOperationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pendingAsyncAssistOperationId_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.Session) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionName.java index 929c59ebb37f..99d846895a22 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionName.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionName.java @@ -39,6 +39,10 @@ public class SessionName implements ResourceName { private static final PathTemplate PROJECT_LOCATION_COLLECTION_ENGINE_SESSION = PathTemplate.createWithoutUrlEncoding( "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}"); + private static final PathTemplate + PROJECT_LOCATION_COLLECTION_ENGINE_COLLABORATIVE_PROJECT_SESSION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/collaborativeProjects/{collaborative_project}/sessions/{session}"); private volatile Map fieldValuesMap; private PathTemplate pathTemplate; private String fixedValue; @@ -48,6 +52,7 @@ public class SessionName implements ResourceName { private final String session; private final String collection; private final String engine; + private final String collaborativeProject; @Deprecated protected SessionName() { @@ -57,6 +62,7 @@ protected SessionName() { session = null; collection = null; engine = null; + collaborativeProject = null; } private SessionName(Builder builder) { @@ -66,6 +72,7 @@ private SessionName(Builder builder) { session = Preconditions.checkNotNull(builder.getSession()); collection = null; engine = null; + collaborativeProject = null; pathTemplate = PROJECT_LOCATION_DATA_STORE_SESSION; } @@ -76,6 +83,7 @@ private SessionName(ProjectLocationCollectionDataStoreSessionBuilder builder) { dataStore = Preconditions.checkNotNull(builder.getDataStore()); session = Preconditions.checkNotNull(builder.getSession()); engine = null; + collaborativeProject = null; pathTemplate = PROJECT_LOCATION_COLLECTION_DATA_STORE_SESSION; } @@ -86,9 +94,21 @@ private SessionName(ProjectLocationCollectionEngineSessionBuilder builder) { engine = Preconditions.checkNotNull(builder.getEngine()); session = Preconditions.checkNotNull(builder.getSession()); dataStore = null; + collaborativeProject = null; pathTemplate = PROJECT_LOCATION_COLLECTION_ENGINE_SESSION; } + private SessionName(ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + collection = Preconditions.checkNotNull(builder.getCollection()); + engine = Preconditions.checkNotNull(builder.getEngine()); + collaborativeProject = Preconditions.checkNotNull(builder.getCollaborativeProject()); + session = Preconditions.checkNotNull(builder.getSession()); + dataStore = null; + pathTemplate = PROJECT_LOCATION_COLLECTION_ENGINE_COLLABORATIVE_PROJECT_SESSION; + } + public String getProject() { return project; } @@ -113,6 +133,10 @@ public String getEngine() { return engine; } + public String getCollaborativeProject() { + return collaborativeProject; + } + public static Builder newBuilder() { return new Builder(); } @@ -131,6 +155,11 @@ public static Builder newProjectLocationDataStoreSessionBuilder() { return new ProjectLocationCollectionEngineSessionBuilder(); } + public static ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder + newProjectLocationCollectionEngineCollaborativeProjectSessionBuilder() { + return new ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder(); + } + public Builder toBuilder() { return new Builder(this); } @@ -176,6 +205,23 @@ public static SessionName ofProjectLocationCollectionEngineSessionName( .build(); } + public static SessionName ofProjectLocationCollectionEngineCollaborativeProjectSessionName( + String project, + String location, + String collection, + String engine, + String collaborativeProject, + String session) { + return newProjectLocationCollectionEngineCollaborativeProjectSessionBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setEngine(engine) + .setCollaborativeProject(collaborativeProject) + .setSession(session) + .build(); + } + public static String format(String project, String location, String dataStore, String session) { return newBuilder() .setProject(project) @@ -221,6 +267,24 @@ public static String formatProjectLocationCollectionEngineSessionName( .toString(); } + public static String formatProjectLocationCollectionEngineCollaborativeProjectSessionName( + String project, + String location, + String collection, + String engine, + String collaborativeProject, + String session) { + return newProjectLocationCollectionEngineCollaborativeProjectSessionBuilder() + .setProject(project) + .setLocation(location) + .setCollection(collection) + .setEngine(engine) + .setCollaborativeProject(collaborativeProject) + .setSession(session) + .build() + .toString(); + } + public static SessionName parse(String formattedString) { if (formattedString.isEmpty()) { return null; @@ -250,6 +314,17 @@ public static SessionName parse(String formattedString) { matchMap.get("collection"), matchMap.get("engine"), matchMap.get("session")); + } else if (PROJECT_LOCATION_COLLECTION_ENGINE_COLLABORATIVE_PROJECT_SESSION.matches( + formattedString)) { + Map matchMap = + PROJECT_LOCATION_COLLECTION_ENGINE_COLLABORATIVE_PROJECT_SESSION.match(formattedString); + return ofProjectLocationCollectionEngineCollaborativeProjectSessionName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("collection"), + matchMap.get("engine"), + matchMap.get("collaborative_project"), + matchMap.get("session")); } throw new ValidationException("SessionName.parse: formattedString not in valid format"); } @@ -277,7 +352,9 @@ public static List toStringList(List values) { public static boolean isParsableFrom(String formattedString) { return PROJECT_LOCATION_DATA_STORE_SESSION.matches(formattedString) || PROJECT_LOCATION_COLLECTION_DATA_STORE_SESSION.matches(formattedString) - || PROJECT_LOCATION_COLLECTION_ENGINE_SESSION.matches(formattedString); + || PROJECT_LOCATION_COLLECTION_ENGINE_SESSION.matches(formattedString) + || PROJECT_LOCATION_COLLECTION_ENGINE_COLLABORATIVE_PROJECT_SESSION.matches( + formattedString); } @Override @@ -304,6 +381,9 @@ public Map getFieldValuesMap() { if (engine != null) { fieldMapBuilder.put("engine", engine); } + if (collaborativeProject != null) { + fieldMapBuilder.put("collaborative_project", collaborativeProject); + } fieldValuesMap = fieldMapBuilder.build(); } } @@ -332,7 +412,8 @@ public boolean equals(Object o) { && Objects.equals(this.dataStore, that.dataStore) && Objects.equals(this.session, that.session) && Objects.equals(this.collection, that.collection) - && Objects.equals(this.engine, that.engine); + && Objects.equals(this.engine, that.engine) + && Objects.equals(this.collaborativeProject, that.collaborativeProject); } return false; } @@ -354,6 +435,8 @@ public int hashCode() { h ^= Objects.hashCode(collection); h *= 1000003; h ^= Objects.hashCode(engine); + h *= 1000003; + h ^= Objects.hashCode(collaborativeProject); return h; } @@ -545,4 +628,83 @@ public SessionName build() { return new SessionName(this); } } + + /** + * Builder for + * projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/collaborativeProjects/{collaborative_project}/sessions/{session}. + */ + public static class ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder { + private String project; + private String location; + private String collection; + private String engine; + private String collaborativeProject; + private String session; + + protected ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCollection() { + return collection; + } + + public String getEngine() { + return engine; + } + + public String getCollaborativeProject() { + return collaborativeProject; + } + + public String getSession() { + return session; + } + + public ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder setProject( + String project) { + this.project = project; + return this; + } + + public ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder setLocation( + String location) { + this.location = location; + return this; + } + + public ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder setCollection( + String collection) { + this.collection = collection; + return this; + } + + public ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder setEngine( + String engine) { + this.engine = engine; + return this; + } + + public ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder + setCollaborativeProject(String collaborativeProject) { + this.collaborativeProject = collaborativeProject; + return this; + } + + public ProjectLocationCollectionEngineCollaborativeProjectSessionBuilder setSession( + String session) { + this.session = session; + return this; + } + + public SessionName build() { + return new SessionName(this); + } + } } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionOrBuilder.java index 27dabd263cbe..f280f60b5d13 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionOrBuilder.java @@ -194,6 +194,64 @@ public interface SessionOrBuilder */ com.google.cloud.discoveryengine.v1beta.Session.TurnOrBuilder getTurnsOrBuilder(int index); + /** + * + * + *
            +   * Optional. The labels for the session.
            +   * Can be set as filter in ListSessionsRequest.
            +   * 
            + * + * repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the labels. + */ + java.util.List getLabelsList(); + + /** + * + * + *
            +   * Optional. The labels for the session.
            +   * Can be set as filter in ListSessionsRequest.
            +   * 
            + * + * repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of labels. + */ + int getLabelsCount(); + + /** + * + * + *
            +   * Optional. The labels for the session.
            +   * Can be set as filter in ListSessionsRequest.
            +   * 
            + * + * repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The labels at the given index. + */ + java.lang.String getLabels(int index); + + /** + * + * + *
            +   * Optional. The labels for the session.
            +   * Can be set as filter in ListSessionsRequest.
            +   * 
            + * + * repeated string labels = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the labels at the given index. + */ + com.google.protobuf.ByteString getLabelsBytes(int index); + /** * * @@ -287,4 +345,40 @@ public interface SessionOrBuilder * @return The isPinned. */ boolean getIsPinned(); + + /** + * + * + *
            +   * Output only. Full resource name of an in-progress AsyncAssist operation for
            +   * this session, e.g.
            +   * `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`.
            +   * Set when the operation starts and cleared when it finishes.
            +   * 
            + * + * + * string pending_async_assist_operation_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The pendingAsyncAssistOperationId. + */ + java.lang.String getPendingAsyncAssistOperationId(); + + /** + * + * + *
            +   * Output only. Full resource name of an in-progress AsyncAssist operation for
            +   * this session, e.g.
            +   * `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`.
            +   * Set when the operation starts and cleared when it finishes.
            +   * 
            + * + * + * string pending_async_assist_operation_id = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for pendingAsyncAssistOperationId. + */ + com.google.protobuf.ByteString getPendingAsyncAssistOperationIdBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionProto.java index 62355f328f26..f4e7f8467e6a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionProto.java @@ -69,48 +69,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "1google/cloud/discoveryengine/v1beta/session.proto\022#google.cloud.discoveryengin" + "e.v1beta\032\037google/api/field_behavior.prot" + "o\032\031google/api/resource.proto\0320google/clo" - + "ud/discoveryengine/v1beta/answer.proto\032\037google/protobuf/timestamp.proto\"\324\010\n" + + "ud/discoveryengine/v1beta/answer.proto\0327google/cloud/discoveryengine/v1beta/assi" + + "st_answer.proto\032\037google/protobuf/timestamp.proto\"\231\013\n" + "\007Session\022\021\n" + "\004name\030\001 \001(\tB\003\340A\005\022\031\n" + "\014display_name\030\007 \001(\tB\003\340A\001\022A\n" - + "\005state\030\002" - + " \001(\01622.google.cloud.discoveryengine.v1beta.Session.State\022\026\n" + + "\005state\030\002 \001(" + + "\01622.google.cloud.discoveryengine.v1beta.Session.State\022\026\n" + "\016user_pseudo_id\030\003 \001(\t\022@\n" - + "\005turns\030\004 \003(\01321.go" - + "ogle.cloud.discoveryengine.v1beta.Session.Turn\0223\n\n" + + "\005turns\030\004" + + " \003(\01321.google.cloud.discoveryengine.v1beta.Session.Turn\022\023\n" + + "\006labels\030\t \003(\tB\003\340A\001\0223\n\n" + "start_time\030\005 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n" + "\010end_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\026\n" - + "\tis_pinned\030\010 \001(\010B\003\340A\001\032\343\002\n" + + "\tis_pinned\030\010 \001(\010B\003\340A\001\022.\n" + + "!pending_async_assist_operation_id\030\026 \001(\tB\003\340A\003\032\316\003\n" + "\004Turn\022>\n" - + "\005query\030\001 \001(\0132*" - + ".google.cloud.discoveryengine.v1beta.QueryB\003\340A\001\022=\n" + + "\005query\030\001" + + " \001(\0132*.google.cloud.discoveryengine.v1beta.QueryB\003\340A\001\022=\n" + "\006answer\030\002 \001(\tB-\340A\001\372A\'\n" + "%discoveryengine.googleapis.com/Answer\022I\n" + "\017detailed_answer\030\007" - + " \001(\0132+.google.cloud.discoveryengine.v1beta.AnswerB\003\340A\003\022]\n" - + "\014query_config\030\020 \003(\0132B.google.cloud.discoveryengine.v" - + "1beta.Session.Turn.QueryConfigEntryB\003\340A\001\0322\n" + + " \001(\0132+.google.cloud.discoveryengine.v1beta.AnswerB\003\340A\003\022V\n" + + "\026detailed_assist_answer\030\010 \001(\01321.google.cloud.d" + + "iscoveryengine.v1beta.AssistAnswerB\003\340A\003\022]\n" + + "\014query_config\030\020 \003(\0132B.google.cloud.dis" + + "coveryengine.v1beta.Session.Turn.QueryConfigEntryB\003\340A\001\022\021\n" + + "\004live\030\024 \001(\010B\003\340A\001\0322\n" + "\020QueryConfigEntry\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\017\n" - + "\013IN_PROGRESS\020\001:\346\002\352A\342\002\n" - + "&discoveryengine.googleapis.com/Session\022Rprojects/{" - + "project}/locations/{location}/dataStores/{data_store}/sessions/{session}\022kprojec" - + "ts/{project}/locations/{location}/collections/{collection}/dataStores/{data_stor" - + "e}/sessions/{session}\022dprojects/{project}/locations/{location}/collections/{coll" - + "ection}/engines/{engine}/sessions/{session}*\010sessions2\007session\"9\n" + + "\013IN_PROGRESS\020\001:\373\003\352A\367\003\n" + + "&discoveryengine.googleapis.com/Session\022Rprojects/{project" + + "}/locations/{location}/dataStores/{data_store}/sessions/{session}\022kprojects/{pro" + + "ject}/locations/{location}/collections/{collection}/dataStores/{data_store}/sess" + + "ions/{session}\022dprojects/{project}/locations/{location}/collections/{collection}" + + "/engines/{engine}/sessions/{session}\022\222\001p" + + "rojects/{project}/locations/{location}/collections/{collection}/engines/{engine}" + + "/collaborativeProjects/{collaborative_pr" + + "oject}/sessions/{session}*\010sessions2\007session\"9\n" + "\005Query\022\016\n" + "\004text\030\002 \001(\tH\000\022\025\n" + "\010query_id\030\001 \001(\tB\003\340A\003B\t\n" + "\007contentB\223\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB\014SessionProtoP\001ZQcloud.google.com/" - + "go/discoveryengine/apiv1beta/discoveryen" - + "ginepb;discoveryenginepb\242\002\017DISCOVERYENGI" - + "NE\252\002#Google.Cloud.DiscoveryEngine.V1Beta" - + "\312\002#Google\\Cloud\\DiscoveryEngine\\V1beta\352\002" - + "&Google::Cloud::DiscoveryEngine::V1betab\006proto3" + + "\'com.google.cloud.discoveryengine.v1betaB\014SessionProt" + + "oP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryen" + + "ginepb\242\002\017DISCOVERYENGINE\252\002#Google.Cloud." + + "DiscoveryEngine.V1Beta\312\002#Google\\Cloud\\Di" + + "scoveryEngine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -119,6 +127,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.discoveryengine.v1beta.AnswerProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.AssistAnswerProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); internal_static_google_cloud_discoveryengine_v1beta_Session_descriptor = @@ -132,9 +141,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "State", "UserPseudoId", "Turns", + "Labels", "StartTime", "EndTime", "IsPinned", + "PendingAsyncAssistOperationId", }); internal_static_google_cloud_discoveryengine_v1beta_Session_Turn_descriptor = internal_static_google_cloud_discoveryengine_v1beta_Session_descriptor.getNestedType(0); @@ -142,7 +153,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_Session_Turn_descriptor, new java.lang.String[] { - "Query", "Answer", "DetailedAnswer", "QueryConfig", + "Query", "Answer", "DetailedAnswer", "DetailedAssistAnswer", "QueryConfig", "Live", }); internal_static_google_cloud_discoveryengine_v1beta_Session_Turn_QueryConfigEntry_descriptor = internal_static_google_cloud_discoveryengine_v1beta_Session_Turn_descriptor.getNestedType( @@ -165,6 +176,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.discoveryengine.v1beta.AnswerProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.AssistAnswerProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceProto.java index c4db60f5e95a..089ea2c1c5bc 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SessionServiceProto.java @@ -57,7 +57,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e/v1beta/conversational_search_service.p" + "roto\0321google/cloud/discoveryengine/v1bet" + "a/session.proto\032\033google/protobuf/empty.p" - + "roto2\272\017\n\016SessionService\022\210\003\n\rCreateSessio" + + "roto2\371\020\n\016SessionService\022\210\003\n\rCreateSessio" + "n\0229.google.cloud.discoveryengine.v1beta." + "CreateSessionRequest\032,.google.cloud.disc" + "overyengine.v1beta.Session\"\215\002\332A\016parent,s" @@ -104,16 +104,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "arent=projects/*/locations/*/collections" + "/*/dataStores/*}/sessionsZJ\022H/v1beta/{pa" + "rent=projects/*/locations/*/collections/" - + "*/engines/*}/sessions\032R\312A\036discoveryengin" - + "e.googleapis.com\322A.https://www.googleapi" - + "s.com/auth/cloud-platformB\232\002\n\'com.google" - + ".cloud.discoveryengine.v1betaB\023SessionSe" - + "rviceProtoP\001ZQcloud.google.com/go/discov" - + "eryengine/apiv1beta/discoveryenginepb;di" - + "scoveryenginepb\242\002\017DISCOVERYENGINE\252\002#Goog" - + "le.Cloud.DiscoveryEngine.V1Beta\312\002#Google" - + "\\Cloud\\DiscoveryEngine\\V1beta\352\002&Google::" - + "Cloud::DiscoveryEngine::V1betab\006proto3" + + "*/engines/*}/sessions\032\220\002\312A\036discoveryengi" + + "ne.googleapis.com\322A\353\001https://www.googlea" + + "pis.com/auth/cloud-platform,https://www." + + "googleapis.com/auth/discoveryengine.assi" + + "st.readwrite,https://www.googleapis.com/" + + "auth/discoveryengine.readwrite,https://w" + + "ww.googleapis.com/auth/discoveryengine.s" + + "erving.readwriteB\232\002\n\'com.google.cloud.di" + + "scoveryengine.v1betaB\023SessionServiceProt" + + "oP\001ZQcloud.google.com/go/discoveryengine" + + "/apiv1beta/discoveryenginepb;discoveryen" + + "ginepb\242\002\017DISCOVERYENGINE\252\002#Google.Cloud." + + "DiscoveryEngine.V1Beta\312\002#Google\\Cloud\\Di" + + "scoveryEngine\\V1beta\352\002&Google::Cloud::Di" + + "scoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SingleRegionKey.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SingleRegionKey.java new file mode 100644 index 000000000000..d5467c239802 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SingleRegionKey.java @@ -0,0 +1,625 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/cmek_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Metadata for single-regional CMEKs.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SingleRegionKey} + */ +@com.google.protobuf.Generated +public final class SingleRegionKey extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.SingleRegionKey) + SingleRegionKeyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SingleRegionKey"); + } + + // Use SingleRegionKey.newBuilder() to construct. + private SingleRegionKey(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SingleRegionKey() { + kmsKey_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SingleRegionKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SingleRegionKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SingleRegionKey.class, + com.google.cloud.discoveryengine.v1beta.SingleRegionKey.Builder.class); + } + + public static final int KMS_KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object kmsKey_ = ""; + + /** + * + * + *
            +   * Required. Single-regional kms key resource name which will be used to
            +   * encrypt resources
            +   * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
            +   * 
            + * + * + * string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + @java.lang.Override + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Single-regional kms key resource name which will be used to
            +   * encrypt resources
            +   * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
            +   * 
            + * + * + * string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKey_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, kmsKey_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(kmsKey_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, kmsKey_); + } + 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.v1beta.SingleRegionKey)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.SingleRegionKey other = + (com.google.cloud.discoveryengine.v1beta.SingleRegionKey) obj; + + if (!getKmsKey().equals(other.getKmsKey())) 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) + KMS_KEY_FIELD_NUMBER; + hash = (53 * hash) + getKmsKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.SingleRegionKey parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SingleRegionKey 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.v1beta.SingleRegionKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SingleRegionKey parseFrom( + 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.v1beta.SingleRegionKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.SingleRegionKey parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SingleRegionKey parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SingleRegionKey parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SingleRegionKey parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SingleRegionKey parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.SingleRegionKey parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.SingleRegionKey parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.SingleRegionKey prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Metadata for single-regional CMEKs.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.SingleRegionKey} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.SingleRegionKey) + com.google.cloud.discoveryengine.v1beta.SingleRegionKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SingleRegionKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SingleRegionKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.SingleRegionKey.class, + com.google.cloud.discoveryengine.v1beta.SingleRegionKey.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.SingleRegionKey.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + kmsKey_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_SingleRegionKey_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SingleRegionKey getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.SingleRegionKey.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SingleRegionKey build() { + com.google.cloud.discoveryengine.v1beta.SingleRegionKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SingleRegionKey buildPartial() { + com.google.cloud.discoveryengine.v1beta.SingleRegionKey result = + new com.google.cloud.discoveryengine.v1beta.SingleRegionKey(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.SingleRegionKey result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.kmsKey_ = kmsKey_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.SingleRegionKey) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.SingleRegionKey) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.SingleRegionKey other) { + if (other == com.google.cloud.discoveryengine.v1beta.SingleRegionKey.getDefaultInstance()) + return this; + if (!other.getKmsKey().isEmpty()) { + kmsKey_ = other.kmsKey_; + 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: + { + kmsKey_ = 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 kmsKey_ = ""; + + /** + * + * + *
            +     * Required. Single-regional kms key resource name which will be used to
            +     * encrypt resources
            +     * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
            +     * 
            + * + * + * string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + public java.lang.String getKmsKey() { + java.lang.Object ref = kmsKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + kmsKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Single-regional kms key resource name which will be used to
            +     * encrypt resources
            +     * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
            +     * 
            + * + * + * string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + public com.google.protobuf.ByteString getKmsKeyBytes() { + java.lang.Object ref = kmsKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + kmsKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Single-regional kms key resource name which will be used to
            +     * encrypt resources
            +     * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
            +     * 
            + * + * + * string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The kmsKey to set. + * @return This builder for chaining. + */ + public Builder setKmsKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + kmsKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Single-regional kms key resource name which will be used to
            +     * encrypt resources
            +     * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
            +     * 
            + * + * + * string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearKmsKey() { + kmsKey_ = getDefaultInstance().getKmsKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Single-regional kms key resource name which will be used to
            +     * encrypt resources
            +     * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
            +     * 
            + * + * + * string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for kmsKey to set. + * @return This builder for chaining. + */ + public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + kmsKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.SingleRegionKey) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.SingleRegionKey) + private static final com.google.cloud.discoveryengine.v1beta.SingleRegionKey DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.SingleRegionKey(); + } + + public static com.google.cloud.discoveryengine.v1beta.SingleRegionKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SingleRegionKey parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.SingleRegionKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SingleRegionKeyOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SingleRegionKeyOrBuilder.java new file mode 100644 index 000000000000..f22d2b5a94e3 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SingleRegionKeyOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/cmek_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface SingleRegionKeyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.SingleRegionKey) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Single-regional kms key resource name which will be used to
            +   * encrypt resources
            +   * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
            +   * 
            + * + * + * string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The kmsKey. + */ + java.lang.String getKmsKey(); + + /** + * + * + *
            +   * Required. Single-regional kms key resource name which will be used to
            +   * encrypt resources
            +   * `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`.
            +   * 
            + * + * + * string kms_key = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for kmsKey. + */ + com.google.protobuf.ByteString getKmsKeyBytes(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineProto.java index 664447fcb139..965d0eed8fa6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineProto.java @@ -82,13 +82,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/discoveryengine.googleapis.com/SiteSearchEng" + "ine\022Pprojects/{project}/locations/{location}/dataStores/{data_store}/siteSearchE" + "ngine\022iprojects/{project}/locations/{loc" - + "ation}/collections/{collection}/dataStores/{data_store}/siteSearchEngine\"\252\t\n\n" + + "ation}/collections/{collection}/dataStores/{data_store}/siteSearchEngine\"\313\t\n\n" + "TargetSite\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022$\n" + "\024provided_uri_pattern\030\002 \001(\tB\006\340A\002\340A\004\022B\n" + "\004type\030\003 \001(\01624" + ".google.cloud.discoveryengine.v1beta.TargetSite.Type\022\030\n" - + "\013exact_match\030\006 \001(\010B\003\340A\004\022\"\n" + + "\013exact_match\030\006 \001(\010B\003\340A\005\022\"\n" + "\025generated_uri_pattern\030\004 \001(\tB\003\340A\003\022\034\n" + "\017root_domain_uri\030\n" + " \001(\tB\003\340A\003\022^\n" @@ -108,21 +108,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\013\n" + "\007INCLUDE\020\001\022\013\n" - + "\007EXCLUDE\020\002\"g\n" + + "\007EXCLUDE\020\002\"\207\001\n" + "\016IndexingStatus\022\037\n" + "\033INDEXING_STATUS_UNSPECIFIED\020\000\022\013\n" + "\007PENDING\020\001\022\n\n" + "\006FAILED\020\002\022\r\n" + "\tSUCCEEDED\020\003\022\014\n" - + "\010DELETING\020\004:\241\002\352A\235\002\n" - + ")discoveryengine.googleapis.com/TargetSite\022jprojects/{p" - + "roject}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSite" - + "s/{target_site}\022\203\001projects/{project}/loc" - + "ations/{location}/collections/{collectio" - + "n}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}\"\247\002\n" + + "\010DELETING\020\004\022\017\n" + + "\013CANCELLABLE\020\005\022\r\n" + + "\tCANCELLED\020\006:\241\002\352A\235\002\n" + + ")discoveryengine.googleapis.com/TargetSite\022jprojects/{project}" + + "/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{targ" + + "et_site}\022\203\001projects/{project}/locations/" + + "{location}/collections/{collection}/data" + + "Stores/{data_store}/siteSearchEngine/targetSites/{target_site}\"\247\002\n" + "\024SiteVerificationInfo\022p\n" - + "\027site_verification_state\030\001 \001(\0162O.google.cloud.discoveryengine.v" - + "1beta.SiteVerificationInfo.SiteVerificationState\022/\n" + + "\027site_verification_state\030\001 \001(\0162O.google.cloud.discoveryengine.v1beta.S" + + "iteVerificationInfo.SiteVerificationState\022/\n" + "\013verify_time\030\002 \001(\0132\032.google.protobuf.Timestamp\"l\n" + "\025SiteVerificationState\022\'\n" + "#SITE_VERIFICATION_STATE_UNSPECIFIED\020\000\022\014\n" @@ -134,17 +136,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB\003\340A\003\0224\n" + "\013create_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\217\002\352A\213\002\n" - + "&discoveryengine.googleapis.com/Sitemap\022cproj" - + "ects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sit" - + "emaps/{sitemap}\022|projects/{project}/locations/{location}/collections/{collection" - + "}/dataStores/{data_store}/siteSearchEngine/sitemaps/{sitemap}B\006\n" + + "&discoveryengine.googleapis.com/Sitemap\022cprojects/{p" + + "roject}/locations/{location}/dataStores/{data_store}/siteSearchEngine/sitemaps/{" + + "sitemap}\022|projects/{project}/locations/{location}/collections/{collection}/dataS" + + "tores/{data_store}/siteSearchEngine/sitemaps/{sitemap}B\006\n" + "\004feedB\234\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB\025SiteS" - + "earchEngineProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryengin" - + "epb;discoveryenginepb\242\002\017DISCOVERYENGINE\252" - + "\002#Google.Cloud.DiscoveryEngine.V1Beta\312\002#" - + "Google\\Cloud\\DiscoveryEngine\\V1beta\352\002&Go" - + "ogle::Cloud::DiscoveryEngine::V1betab\006proto3" + + "\'com.google.cloud.discoveryengine.v1betaB\025SiteSearchEn" + + "gineProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;dis" + + "coveryenginepb\242\002\017DISCOVERYENGINE\252\002#Googl" + + "e.Cloud.DiscoveryEngine.V1Beta\312\002#Google\\" + + "Cloud\\DiscoveryEngine\\V1beta\352\002&Google::C" + + "loud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceProto.java index 261978c8156e..b9e7261910c9 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SiteSearchEngineServiceProto.java @@ -309,185 +309,192 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "Info.FailureReason.CorpusType\022\025\n\rerror_m" + "essage\030\002 \001(\t\"B\n\nCorpusType\022\033\n\027CORPUS_TYP" + "E_UNSPECIFIED\020\000\022\013\n\007DESKTOP\020\001\022\n\n\006MOBILE\020\002" - + "\"\345\002\n\023RecrawlUrisMetadata\022/\n\013create_time\030" + + "\"\227\003\n\023RecrawlUrisMetadata\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\022\024\n\014invalid_uris\030\003 \003(\t\022\032\n\022invalid_uris" - + "_count\030\010 \001(\005\022&\n\036uris_not_matching_target" - + "_sites\030\t \003(\t\022,\n$uris_not_matching_target" - + "_sites_count\030\n \001(\005\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\"\233" - + "\001\n%FetchDomainVerificationStatusResponse" - + "\022E\n\014target_sites\030\001 \003(\0132/.google.cloud.di" - + "scoveryengine.v1beta.TargetSite\022\027\n\017next_" - + "page_token\030\002 \001(\t\022\022\n\ntotal_size\030\003 \001(\0052\2600\n" - + "\027SiteSearchEngineService\022\270\002\n\023GetSiteSear" - + "chEngine\022?.google.cloud.discoveryengine." - + "v1beta.GetSiteSearchEngineRequest\0325.goog" - + "le.cloud.discoveryengine.v1beta.SiteSear" - + "chEngine\"\250\001\332A\004name\202\323\344\223\002\232\001\022C/v1beta/{name" - + "=projects/*/locations/*/dataStores/*/sit" - + "eSearchEngine}ZS\022Q/v1beta/{name=projects" - + "/*/locations/*/collections/*/dataStores/" - + "*/siteSearchEngine}\022\317\003\n\020CreateTargetSite" - + "\022<.google.cloud.discoveryengine.v1beta.C" - + "reateTargetSiteRequest\032\035.google.longrunn" - + "ing.Operation\"\335\002\312An\n.google.cloud.discov" - + "eryengine.v1beta.TargetSite\022SOLUTION_TYPE_GENERATIVE_CHAT = 4; */ SOLUTION_TYPE_GENERATIVE_CHAT(4), + /** + * + * + *
            +   * Used for AI Mode.
            +   * 
            + * + * SOLUTION_TYPE_AI_MODE = 5; + */ + SOLUTION_TYPE_AI_MODE(5), UNRECOGNIZED(-1), ; @@ -153,6 +163,17 @@ public enum SolutionType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SOLUTION_TYPE_GENERATIVE_CHAT_VALUE = 4; + /** + * + * + *
            +   * Used for AI Mode.
            +   * 
            + * + * SOLUTION_TYPE_AI_MODE = 5; + */ + public static final int SOLUTION_TYPE_AI_MODE_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -187,6 +208,8 @@ public static SolutionType forNumber(int value) { return SOLUTION_TYPE_CHAT; case 4: return SOLUTION_TYPE_GENERATIVE_CHAT; + case 5: + return SOLUTION_TYPE_AI_MODE; default: return null; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/StreamAssistRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/StreamAssistRequest.java new file mode 100644 index 000000000000..b02ff9b2a4d8 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/StreamAssistRequest.java @@ -0,0 +1,7848 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request for the
            + * [AssistantService.StreamAssist][google.cloud.discoveryengine.v1beta.AssistantService.StreamAssist]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.StreamAssistRequest} + */ +@com.google.protobuf.Generated +public final class StreamAssistRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.StreamAssistRequest) + StreamAssistRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "StreamAssistRequest"); + } + + // Use StreamAssistRequest.newBuilder() to construct. + private StreamAssistRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private StreamAssistRequest() { + name_ = ""; + session_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.Builder.class); + } + + public interface ToolsSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. Specification of the Vertex AI Search tool.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vertexAiSearchSpec field is set. + */ + boolean hasVertexAiSearchSpec(); + + /** + * + * + *
            +     * Optional. Specification of the Vertex AI Search tool.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vertexAiSearchSpec. + */ + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec + getVertexAiSearchSpec(); + + /** + * + * + *
            +     * Optional. Specification of the Vertex AI Search tool.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpecOrBuilder + getVertexAiSearchSpecOrBuilder(); + + /** + * + * + *
            +     * Optional. Specification of the web grounding tool.
            +     * If field is present, enables grounding with web search. Works only if
            +     * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1beta.Assistant.web_grounding_type]
            +     * is
            +     * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH]
            +     * or
            +     * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the webGroundingSpec field is set. + */ + boolean hasWebGroundingSpec(); + + /** + * + * + *
            +     * Optional. Specification of the web grounding tool.
            +     * If field is present, enables grounding with web search. Works only if
            +     * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1beta.Assistant.web_grounding_type]
            +     * is
            +     * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH]
            +     * or
            +     * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The webGroundingSpec. + */ + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec + getWebGroundingSpec(); + + /** + * + * + *
            +     * Optional. Specification of the web grounding tool.
            +     * If field is present, enables grounding with web search. Works only if
            +     * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1beta.Assistant.web_grounding_type]
            +     * is
            +     * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH]
            +     * or
            +     * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpecOrBuilder + getWebGroundingSpecOrBuilder(); + + /** + * + * + *
            +     * Optional. Specification of the image generation tool.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the imageGenerationSpec field is set. + */ + boolean hasImageGenerationSpec(); + + /** + * + * + *
            +     * Optional. Specification of the image generation tool.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The imageGenerationSpec. + */ + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec + getImageGenerationSpec(); + + /** + * + * + *
            +     * Optional. Specification of the image generation tool.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpecOrBuilder + getImageGenerationSpecOrBuilder(); + + /** + * + * + *
            +     * Optional. Specification of the video generation tool.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the videoGenerationSpec field is set. + */ + boolean hasVideoGenerationSpec(); + + /** + * + * + *
            +     * Optional. Specification of the video generation tool.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The videoGenerationSpec. + */ + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec + getVideoGenerationSpec(); + + /** + * + * + *
            +     * Optional. Specification of the video generation tool.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpecOrBuilder + getVideoGenerationSpecOrBuilder(); + } + + /** + * + * + *
            +   * Specification of tools that are used to serve the request.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec} + */ + public static final class ToolsSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec) + ToolsSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolsSpec"); + } + + // Use ToolsSpec.newBuilder() to construct. + private ToolsSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolsSpec() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.Builder.class); + } + + public interface VertexAiSearchSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Optional. Specs defining
            +       * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +       * on in a search call and configurations for those data stores. This is
            +       * only considered for
            +       * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +       * data stores.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getDataStoreSpecsList(); + + /** + * + * + *
            +       * Optional. Specs defining
            +       * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +       * on in a search call and configurations for those data stores. This is
            +       * only considered for
            +       * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +       * data stores.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec getDataStoreSpecs( + int index); + + /** + * + * + *
            +       * Optional. Specs defining
            +       * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +       * on in a search call and configurations for those data stores. This is
            +       * only considered for
            +       * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +       * data stores.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getDataStoreSpecsCount(); + + /** + * + * + *
            +       * Optional. Specs defining
            +       * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +       * on in a search call and configurations for those data stores. This is
            +       * only considered for
            +       * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +       * data stores.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> + getDataStoreSpecsOrBuilderList(); + + /** + * + * + *
            +       * Optional. Specs defining
            +       * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +       * on in a search call and configurations for those data stores. This is
            +       * only considered for
            +       * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +       * data stores.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder + getDataStoreSpecsOrBuilder(int index); + + /** + * + * + *
            +       * Optional. The filter syntax consists of an expression language for
            +       * constructing a predicate from one or more fields of the documents being
            +       * filtered. Filter expression is case-sensitive.
            +       *
            +       * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +       *
            +       * Filtering in Vertex AI Search is done by mapping the LHS filter key to
            +       * a key property defined in the Vertex AI Search backend -- this mapping
            +       * is defined by the customer in their schema. For example a media
            +       * customer might have a field 'name' in their schema. In this case the
            +       * filter would look like this: filter --> name:'ANY("king kong")'
            +       *
            +       * For more information about filtering including syntax and filter
            +       * operators, see
            +       * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +       * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +       * Optional. The filter syntax consists of an expression language for
            +       * constructing a predicate from one or more fields of the documents being
            +       * filtered. Filter expression is case-sensitive.
            +       *
            +       * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +       *
            +       * Filtering in Vertex AI Search is done by mapping the LHS filter key to
            +       * a key property defined in the Vertex AI Search backend -- this mapping
            +       * is defined by the customer in their schema. For example a media
            +       * customer might have a field 'name' in their schema. In this case the
            +       * filter would look like this: filter --> name:'ANY("king kong")'
            +       *
            +       * For more information about filtering including syntax and filter
            +       * operators, see
            +       * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +       * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + } + + /** + * + * + *
            +     * Specification of the Vertex AI Search tool.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec} + */ + public static final class VertexAiSearchSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec) + VertexAiSearchSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VertexAiSearchSpec"); + } + + // Use VertexAiSearchSpec.newBuilder() to construct. + private VertexAiSearchSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VertexAiSearchSpec() { + dataStoreSpecs_ = java.util.Collections.emptyList(); + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VertexAiSearchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VertexAiSearchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec.Builder.class); + } + + public static final int DATA_STORE_SPECS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + dataStoreSpecs_; + + /** + * + * + *
            +       * Optional. Specs defining
            +       * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +       * on in a search call and configurations for those data stores. This is
            +       * only considered for
            +       * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +       * data stores.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getDataStoreSpecsList() { + return dataStoreSpecs_; + } + + /** + * + * + *
            +       * Optional. Specs defining
            +       * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +       * on in a search call and configurations for those data stores. This is
            +       * only considered for
            +       * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +       * data stores.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> + getDataStoreSpecsOrBuilderList() { + return dataStoreSpecs_; + } + + /** + * + * + *
            +       * Optional. Specs defining
            +       * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +       * on in a search call and configurations for those data stores. This is
            +       * only considered for
            +       * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +       * data stores.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getDataStoreSpecsCount() { + return dataStoreSpecs_.size(); + } + + /** + * + * + *
            +       * Optional. Specs defining
            +       * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +       * on in a search call and configurations for those data stores. This is
            +       * only considered for
            +       * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +       * data stores.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec getDataStoreSpecs( + int index) { + return dataStoreSpecs_.get(index); + } + + /** + * + * + *
            +       * Optional. Specs defining
            +       * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +       * on in a search call and configurations for those data stores. This is
            +       * only considered for
            +       * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +       * data stores.
            +       * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder + getDataStoreSpecsOrBuilder(int index) { + return dataStoreSpecs_.get(index); + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
            +       * Optional. The filter syntax consists of an expression language for
            +       * constructing a predicate from one or more fields of the documents being
            +       * filtered. Filter expression is case-sensitive.
            +       *
            +       * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +       *
            +       * Filtering in Vertex AI Search is done by mapping the LHS filter key to
            +       * a key property defined in the Vertex AI Search backend -- this mapping
            +       * is defined by the customer in their schema. For example a media
            +       * customer might have a field 'name' in their schema. In this case the
            +       * filter would look like this: filter --> name:'ANY("king kong")'
            +       *
            +       * For more information about filtering including syntax and filter
            +       * operators, see
            +       * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +       * 
            + * + * 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. The filter syntax consists of an expression language for
            +       * constructing a predicate from one or more fields of the documents being
            +       * filtered. Filter expression is case-sensitive.
            +       *
            +       * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +       *
            +       * Filtering in Vertex AI Search is done by mapping the LHS filter key to
            +       * a key property defined in the Vertex AI Search backend -- this mapping
            +       * is defined by the customer in their schema. For example a media
            +       * customer might have a field 'name' in their schema. In this case the
            +       * filter would look like this: filter --> name:'ANY("king kong")'
            +       *
            +       * For more information about filtering including syntax and filter
            +       * operators, see
            +       * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +       * 
            + * + * 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 { + for (int i = 0; i < dataStoreSpecs_.size(); i++) { + output.writeMessage(2, dataStoreSpecs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dataStoreSpecs_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, dataStoreSpecs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.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.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec + other = + (com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec) + obj; + + if (!getDataStoreSpecsList().equals(other.getDataStoreSpecsList())) 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(); + if (getDataStoreSpecsCount() > 0) { + hash = (37 * hash) + DATA_STORE_SPECS_FIELD_NUMBER; + hash = (53 * hash) + getDataStoreSpecsList().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.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + 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.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + parseFrom( + 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.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Specification of the Vertex AI Search tool.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec) + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VertexAiSearchSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VertexAiSearchSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dataStoreSpecsBuilder_ == null) { + dataStoreSpecs_ = java.util.Collections.emptyList(); + } else { + dataStoreSpecs_ = null; + dataStoreSpecsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VertexAiSearchSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + build() { + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec + result = + new com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec + result) { + if (dataStoreSpecsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dataStoreSpecs_ = java.util.Collections.unmodifiableList(dataStoreSpecs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dataStoreSpecs_ = dataStoreSpecs_; + } else { + result.dataStoreSpecs_ = dataStoreSpecsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec.getDefaultInstance()) return this; + if (dataStoreSpecsBuilder_ == null) { + if (!other.dataStoreSpecs_.isEmpty()) { + if (dataStoreSpecs_.isEmpty()) { + dataStoreSpecs_ = other.dataStoreSpecs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.addAll(other.dataStoreSpecs_); + } + onChanged(); + } + } else { + if (!other.dataStoreSpecs_.isEmpty()) { + if (dataStoreSpecsBuilder_.isEmpty()) { + dataStoreSpecsBuilder_.dispose(); + dataStoreSpecsBuilder_ = null; + dataStoreSpecs_ = other.dataStoreSpecs_; + bitField0_ = (bitField0_ & ~0x00000001); + dataStoreSpecsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetDataStoreSpecsFieldBuilder() + : null; + } else { + dataStoreSpecsBuilder_.addAllMessages(other.dataStoreSpecs_); + } + } + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + .parser(), + extensionRegistry); + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(m); + } else { + dataStoreSpecsBuilder_.addMessage(m); + } + break; + } // case 18 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + dataStoreSpecs_ = java.util.Collections.emptyList(); + + private void ensureDataStoreSpecsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dataStoreSpecs_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec>( + dataStoreSpecs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> + dataStoreSpecsBuilder_; + + /** + * + * + *
            +         * Optional. Specs defining
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +         * on in a search call and configurations for those data stores. This is
            +         * only considered for
            +         * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +         * data stores.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getDataStoreSpecsList() { + if (dataStoreSpecsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataStoreSpecs_); + } else { + return dataStoreSpecsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +         * Optional. Specs defining
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +         * on in a search call and configurations for those data stores. This is
            +         * only considered for
            +         * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +         * data stores.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getDataStoreSpecsCount() { + if (dataStoreSpecsBuilder_ == null) { + return dataStoreSpecs_.size(); + } else { + return dataStoreSpecsBuilder_.getCount(); + } + } + + /** + * + * + *
            +         * Optional. Specs defining
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +         * on in a search call and configurations for those data stores. This is
            +         * only considered for
            +         * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +         * data stores.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + getDataStoreSpecs(int index) { + if (dataStoreSpecsBuilder_ == null) { + return dataStoreSpecs_.get(index); + } else { + return dataStoreSpecsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +         * Optional. Specs defining
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +         * on in a search call and configurations for those data stores. This is
            +         * only considered for
            +         * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +         * data stores.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataStoreSpecs( + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec value) { + if (dataStoreSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.set(index, value); + onChanged(); + } else { + dataStoreSpecsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. Specs defining
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +         * on in a search call and configurations for those data stores. This is
            +         * only considered for
            +         * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +         * data stores.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDataStoreSpecs( + int index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + builderForValue) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.set(index, builderForValue.build()); + onChanged(); + } else { + dataStoreSpecsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. Specs defining
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +         * on in a search call and configurations for those data stores. This is
            +         * only considered for
            +         * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +         * data stores.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDataStoreSpecs( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec value) { + if (dataStoreSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(value); + onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +         * Optional. Specs defining
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +         * on in a search call and configurations for those data stores. This is
            +         * only considered for
            +         * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +         * data stores.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDataStoreSpecs( + int index, com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec value) { + if (dataStoreSpecsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(index, value); + onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. Specs defining
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +         * on in a search call and configurations for those data stores. This is
            +         * only considered for
            +         * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +         * data stores.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDataStoreSpecs( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + builderForValue) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(builderForValue.build()); + onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. Specs defining
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +         * on in a search call and configurations for those data stores. This is
            +         * only considered for
            +         * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +         * data stores.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addDataStoreSpecs( + int index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + builderForValue) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.add(index, builderForValue.build()); + onChanged(); + } else { + dataStoreSpecsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. Specs defining
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +         * on in a search call and configurations for those data stores. This is
            +         * only considered for
            +         * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +         * data stores.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllDataStoreSpecs( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec> + values) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStoreSpecs_); + onChanged(); + } else { + dataStoreSpecsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +         * Optional. Specs defining
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +         * on in a search call and configurations for those data stores. This is
            +         * only considered for
            +         * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +         * data stores.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDataStoreSpecs() { + if (dataStoreSpecsBuilder_ == null) { + dataStoreSpecs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataStoreSpecsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +         * Optional. Specs defining
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +         * on in a search call and configurations for those data stores. This is
            +         * only considered for
            +         * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +         * data stores.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeDataStoreSpecs(int index) { + if (dataStoreSpecsBuilder_ == null) { + ensureDataStoreSpecsIsMutable(); + dataStoreSpecs_.remove(index); + onChanged(); + } else { + dataStoreSpecsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +         * Optional. Specs defining
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +         * on in a search call and configurations for those data stores. This is
            +         * only considered for
            +         * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +         * data stores.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + getDataStoreSpecsBuilder(int index) { + return internalGetDataStoreSpecsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +         * Optional. Specs defining
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +         * on in a search call and configurations for those data stores. This is
            +         * only considered for
            +         * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +         * data stores.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder + getDataStoreSpecsOrBuilder(int index) { + if (dataStoreSpecsBuilder_ == null) { + return dataStoreSpecs_.get(index); + } else { + return dataStoreSpecsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +         * Optional. Specs defining
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +         * on in a search call and configurations for those data stores. This is
            +         * only considered for
            +         * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +         * data stores.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> + getDataStoreSpecsOrBuilderList() { + if (dataStoreSpecsBuilder_ != null) { + return dataStoreSpecsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataStoreSpecs_); + } + } + + /** + * + * + *
            +         * Optional. Specs defining
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +         * on in a search call and configurations for those data stores. This is
            +         * only considered for
            +         * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +         * data stores.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + addDataStoreSpecsBuilder() { + return internalGetDataStoreSpecsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + .getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. Specs defining
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +         * on in a search call and configurations for those data stores. This is
            +         * only considered for
            +         * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +         * data stores.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder + addDataStoreSpecsBuilder(int index) { + return internalGetDataStoreSpecsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec + .getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. Specs defining
            +         * [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter
            +         * on in a search call and configurations for those data stores. This is
            +         * only considered for
            +         * [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple
            +         * data stores.
            +         * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec data_store_specs = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder> + getDataStoreSpecsBuilderList() { + return internalGetDataStoreSpecsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder> + internalGetDataStoreSpecsFieldBuilder() { + if (dataStoreSpecsBuilder_ == null) { + dataStoreSpecsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.Builder, + com.google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpecOrBuilder>( + dataStoreSpecs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dataStoreSpecs_ = null; + } + return dataStoreSpecsBuilder_; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
            +         * Optional. The filter syntax consists of an expression language for
            +         * constructing a predicate from one or more fields of the documents being
            +         * filtered. Filter expression is case-sensitive.
            +         *
            +         * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +         *
            +         * Filtering in Vertex AI Search is done by mapping the LHS filter key to
            +         * a key property defined in the Vertex AI Search backend -- this mapping
            +         * is defined by the customer in their schema. For example a media
            +         * customer might have a field 'name' in their schema. In this case the
            +         * filter would look like this: filter --> name:'ANY("king kong")'
            +         *
            +         * For more information about filtering including syntax and filter
            +         * operators, see
            +         * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +         * 
            + * + * 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. The filter syntax consists of an expression language for
            +         * constructing a predicate from one or more fields of the documents being
            +         * filtered. Filter expression is case-sensitive.
            +         *
            +         * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +         *
            +         * Filtering in Vertex AI Search is done by mapping the LHS filter key to
            +         * a key property defined in the Vertex AI Search backend -- this mapping
            +         * is defined by the customer in their schema. For example a media
            +         * customer might have a field 'name' in their schema. In this case the
            +         * filter would look like this: filter --> name:'ANY("king kong")'
            +         *
            +         * For more information about filtering including syntax and filter
            +         * operators, see
            +         * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +         * 
            + * + * 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. The filter syntax consists of an expression language for
            +         * constructing a predicate from one or more fields of the documents being
            +         * filtered. Filter expression is case-sensitive.
            +         *
            +         * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +         *
            +         * Filtering in Vertex AI Search is done by mapping the LHS filter key to
            +         * a key property defined in the Vertex AI Search backend -- this mapping
            +         * is defined by the customer in their schema. For example a media
            +         * customer might have a field 'name' in their schema. In this case the
            +         * filter would look like this: filter --> name:'ANY("king kong")'
            +         *
            +         * For more information about filtering including syntax and filter
            +         * operators, see
            +         * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +         * 
            + * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The filter syntax consists of an expression language for
            +         * constructing a predicate from one or more fields of the documents being
            +         * filtered. Filter expression is case-sensitive.
            +         *
            +         * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +         *
            +         * Filtering in Vertex AI Search is done by mapping the LHS filter key to
            +         * a key property defined in the Vertex AI Search backend -- this mapping
            +         * is defined by the customer in their schema. For example a media
            +         * customer might have a field 'name' in their schema. In this case the
            +         * filter would look like this: filter --> name:'ANY("king kong")'
            +         *
            +         * For more information about filtering including syntax and filter
            +         * operators, see
            +         * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +         * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The filter syntax consists of an expression language for
            +         * constructing a predicate from one or more fields of the documents being
            +         * filtered. Filter expression is case-sensitive.
            +         *
            +         * If this field is unrecognizable, an  `INVALID_ARGUMENT`  is returned.
            +         *
            +         * Filtering in Vertex AI Search is done by mapping the LHS filter key to
            +         * a key property defined in the Vertex AI Search backend -- this mapping
            +         * is defined by the customer in their schema. For example a media
            +         * customer might have a field 'name' in their schema. In this case the
            +         * filter would look like this: filter --> name:'ANY("king kong")'
            +         *
            +         * For more information about filtering including syntax and filter
            +         * operators, see
            +         * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
            +         * 
            + * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec) + private static final com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VertexAiSearchSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface WebGroundingSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
            +     * Specification of the web grounding tool.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec} + */ + public static final class WebGroundingSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec) + WebGroundingSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "WebGroundingSpec"); + } + + // Use WebGroundingSpec.newBuilder() to construct. + private WebGroundingSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private WebGroundingSpec() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_WebGroundingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_WebGroundingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec + other = + (com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec) + obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec + 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.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec + parseFrom( + 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.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Specification of the web grounding tool.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec) + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_WebGroundingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_WebGroundingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_WebGroundingSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec + build() { + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec + result = + new com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec) + private static final com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebGroundingSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ImageGenerationSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
            +     * Specification of the image generation tool.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec} + */ + public static final class ImageGenerationSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec) + ImageGenerationSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ImageGenerationSpec"); + } + + // Use ImageGenerationSpec.newBuilder() to construct. + private ImageGenerationSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ImageGenerationSpec() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_ImageGenerationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_ImageGenerationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec + other = + (com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec) + obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + 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.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + parseFrom( + 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.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Specification of the image generation tool.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec) + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_ImageGenerationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_ImageGenerationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_ImageGenerationSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + build() { + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec + result = + new com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec) + private static final com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageGenerationSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface VideoGenerationSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec) + com.google.protobuf.MessageOrBuilder {} + + /** + * + * + *
            +     * Specification of the video generation tool.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec} + */ + public static final class VideoGenerationSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec) + VideoGenerationSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VideoGenerationSpec"); + } + + // Use VideoGenerationSpec.newBuilder() to construct. + private VideoGenerationSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VideoGenerationSpec() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VideoGenerationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VideoGenerationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec + other = + (com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec) + obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + 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.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + parseFrom( + 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.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Specification of the video generation tool.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec) + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VideoGenerationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VideoGenerationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_VideoGenerationSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + build() { + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec + result = + new com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + other) { + if (other + == com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec) + private static final com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoGenerationSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int VERTEX_AI_SEARCH_SPEC_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec + vertexAiSearchSpec_; + + /** + * + * + *
            +     * Optional. Specification of the Vertex AI Search tool.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vertexAiSearchSpec field is set. + */ + @java.lang.Override + public boolean hasVertexAiSearchSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. Specification of the Vertex AI Search tool.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vertexAiSearchSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec + getVertexAiSearchSpec() { + return vertexAiSearchSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec + .getDefaultInstance() + : vertexAiSearchSpec_; + } + + /** + * + * + *
            +     * Optional. Specification of the Vertex AI Search tool.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpecOrBuilder + getVertexAiSearchSpecOrBuilder() { + return vertexAiSearchSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec + .getDefaultInstance() + : vertexAiSearchSpec_; + } + + public static final int WEB_GROUNDING_SPEC_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec + webGroundingSpec_; + + /** + * + * + *
            +     * Optional. Specification of the web grounding tool.
            +     * If field is present, enables grounding with web search. Works only if
            +     * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1beta.Assistant.web_grounding_type]
            +     * is
            +     * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH]
            +     * or
            +     * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the webGroundingSpec field is set. + */ + @java.lang.Override + public boolean hasWebGroundingSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. Specification of the web grounding tool.
            +     * If field is present, enables grounding with web search. Works only if
            +     * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1beta.Assistant.web_grounding_type]
            +     * is
            +     * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH]
            +     * or
            +     * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The webGroundingSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec + getWebGroundingSpec() { + return webGroundingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec + .getDefaultInstance() + : webGroundingSpec_; + } + + /** + * + * + *
            +     * Optional. Specification of the web grounding tool.
            +     * If field is present, enables grounding with web search. Works only if
            +     * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1beta.Assistant.web_grounding_type]
            +     * is
            +     * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH]
            +     * or
            +     * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH].
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpecOrBuilder + getWebGroundingSpecOrBuilder() { + return webGroundingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec + .getDefaultInstance() + : webGroundingSpec_; + } + + public static final int IMAGE_GENERATION_SPEC_FIELD_NUMBER = 3; + private com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + imageGenerationSpec_; + + /** + * + * + *
            +     * Optional. Specification of the image generation tool.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the imageGenerationSpec field is set. + */ + @java.lang.Override + public boolean hasImageGenerationSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Optional. Specification of the image generation tool.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The imageGenerationSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec + getImageGenerationSpec() { + return imageGenerationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec.getDefaultInstance() + : imageGenerationSpec_; + } + + /** + * + * + *
            +     * Optional. Specification of the image generation tool.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpecOrBuilder + getImageGenerationSpecOrBuilder() { + return imageGenerationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec.getDefaultInstance() + : imageGenerationSpec_; + } + + public static final int VIDEO_GENERATION_SPEC_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + videoGenerationSpec_; + + /** + * + * + *
            +     * Optional. Specification of the video generation tool.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the videoGenerationSpec field is set. + */ + @java.lang.Override + public boolean hasVideoGenerationSpec() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Optional. Specification of the video generation tool.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The videoGenerationSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec + getVideoGenerationSpec() { + return videoGenerationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec.getDefaultInstance() + : videoGenerationSpec_; + } + + /** + * + * + *
            +     * Optional. Specification of the video generation tool.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpecOrBuilder + getVideoGenerationSpecOrBuilder() { + return videoGenerationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec.getDefaultInstance() + : videoGenerationSpec_; + } + + 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, getVertexAiSearchSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getWebGroundingSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getImageGenerationSpec()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getVideoGenerationSpec()); + } + 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, getVertexAiSearchSpec()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getWebGroundingSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getImageGenerationSpec()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getVideoGenerationSpec()); + } + 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.v1beta.StreamAssistRequest.ToolsSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec other = + (com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec) obj; + + if (hasVertexAiSearchSpec() != other.hasVertexAiSearchSpec()) return false; + if (hasVertexAiSearchSpec()) { + if (!getVertexAiSearchSpec().equals(other.getVertexAiSearchSpec())) return false; + } + if (hasWebGroundingSpec() != other.hasWebGroundingSpec()) return false; + if (hasWebGroundingSpec()) { + if (!getWebGroundingSpec().equals(other.getWebGroundingSpec())) return false; + } + if (hasImageGenerationSpec() != other.hasImageGenerationSpec()) return false; + if (hasImageGenerationSpec()) { + if (!getImageGenerationSpec().equals(other.getImageGenerationSpec())) return false; + } + if (hasVideoGenerationSpec() != other.hasVideoGenerationSpec()) return false; + if (hasVideoGenerationSpec()) { + if (!getVideoGenerationSpec().equals(other.getVideoGenerationSpec())) 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 (hasVertexAiSearchSpec()) { + hash = (37 * hash) + VERTEX_AI_SEARCH_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getVertexAiSearchSpec().hashCode(); + } + if (hasWebGroundingSpec()) { + hash = (37 * hash) + WEB_GROUNDING_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getWebGroundingSpec().hashCode(); + } + if (hasImageGenerationSpec()) { + hash = (37 * hash) + IMAGE_GENERATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getImageGenerationSpec().hashCode(); + } + if (hasVideoGenerationSpec()) { + hash = (37 * hash) + VIDEO_GENERATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getVideoGenerationSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec 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.v1beta.StreamAssistRequest.ToolsSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec parseFrom( + 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.v1beta.StreamAssistRequest.ToolsSpec parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Specification of tools that are used to serve the request.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec) + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetVertexAiSearchSpecFieldBuilder(); + internalGetWebGroundingSpecFieldBuilder(); + internalGetImageGenerationSpecFieldBuilder(); + internalGetVideoGenerationSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + vertexAiSearchSpec_ = null; + if (vertexAiSearchSpecBuilder_ != null) { + vertexAiSearchSpecBuilder_.dispose(); + vertexAiSearchSpecBuilder_ = null; + } + webGroundingSpec_ = null; + if (webGroundingSpecBuilder_ != null) { + webGroundingSpecBuilder_.dispose(); + webGroundingSpecBuilder_ = null; + } + imageGenerationSpec_ = null; + if (imageGenerationSpecBuilder_ != null) { + imageGenerationSpecBuilder_.dispose(); + imageGenerationSpecBuilder_ = null; + } + videoGenerationSpec_ = null; + if (videoGenerationSpecBuilder_ != null) { + videoGenerationSpecBuilder_.dispose(); + videoGenerationSpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_ToolsSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec build() { + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec buildPartial() { + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec result = + new com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.vertexAiSearchSpec_ = + vertexAiSearchSpecBuilder_ == null + ? vertexAiSearchSpec_ + : vertexAiSearchSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.webGroundingSpec_ = + webGroundingSpecBuilder_ == null + ? webGroundingSpec_ + : webGroundingSpecBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.imageGenerationSpec_ = + imageGenerationSpecBuilder_ == null + ? imageGenerationSpec_ + : imageGenerationSpecBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.videoGenerationSpec_ = + videoGenerationSpecBuilder_ == null + ? videoGenerationSpec_ + : videoGenerationSpecBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .getDefaultInstance()) return this; + if (other.hasVertexAiSearchSpec()) { + mergeVertexAiSearchSpec(other.getVertexAiSearchSpec()); + } + if (other.hasWebGroundingSpec()) { + mergeWebGroundingSpec(other.getWebGroundingSpec()); + } + if (other.hasImageGenerationSpec()) { + mergeImageGenerationSpec(other.getImageGenerationSpec()); + } + if (other.hasVideoGenerationSpec()) { + mergeVideoGenerationSpec(other.getVideoGenerationSpec()); + } + 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( + internalGetVertexAiSearchSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetWebGroundingSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetImageGenerationSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetVideoGenerationSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + vertexAiSearchSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpecOrBuilder> + vertexAiSearchSpecBuilder_; + + /** + * + * + *
            +       * Optional. Specification of the Vertex AI Search tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the vertexAiSearchSpec field is set. + */ + public boolean hasVertexAiSearchSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Optional. Specification of the Vertex AI Search tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The vertexAiSearchSpec. + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec + getVertexAiSearchSpec() { + if (vertexAiSearchSpecBuilder_ == null) { + return vertexAiSearchSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec.getDefaultInstance() + : vertexAiSearchSpec_; + } else { + return vertexAiSearchSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. Specification of the Vertex AI Search tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVertexAiSearchSpec( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec + value) { + if (vertexAiSearchSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + vertexAiSearchSpec_ = value; + } else { + vertexAiSearchSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Specification of the Vertex AI Search tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVertexAiSearchSpec( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec + .Builder + builderForValue) { + if (vertexAiSearchSpecBuilder_ == null) { + vertexAiSearchSpec_ = builderForValue.build(); + } else { + vertexAiSearchSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Specification of the Vertex AI Search tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeVertexAiSearchSpec( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec + value) { + if (vertexAiSearchSpecBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && vertexAiSearchSpec_ != null + && vertexAiSearchSpec_ + != com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec.getDefaultInstance()) { + getVertexAiSearchSpecBuilder().mergeFrom(value); + } else { + vertexAiSearchSpec_ = value; + } + } else { + vertexAiSearchSpecBuilder_.mergeFrom(value); + } + if (vertexAiSearchSpec_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Specification of the Vertex AI Search tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearVertexAiSearchSpec() { + bitField0_ = (bitField0_ & ~0x00000001); + vertexAiSearchSpec_ = null; + if (vertexAiSearchSpecBuilder_ != null) { + vertexAiSearchSpecBuilder_.dispose(); + vertexAiSearchSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Specification of the Vertex AI Search tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec.Builder + getVertexAiSearchSpecBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetVertexAiSearchSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Specification of the Vertex AI Search tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpecOrBuilder + getVertexAiSearchSpecOrBuilder() { + if (vertexAiSearchSpecBuilder_ != null) { + return vertexAiSearchSpecBuilder_.getMessageOrBuilder(); + } else { + return vertexAiSearchSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec.getDefaultInstance() + : vertexAiSearchSpec_; + } + } + + /** + * + * + *
            +       * Optional. Specification of the Vertex AI Search tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VertexAiSearchSpec vertex_ai_search_spec = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpecOrBuilder> + internalGetVertexAiSearchSpecFieldBuilder() { + if (vertexAiSearchSpecBuilder_ == null) { + vertexAiSearchSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpec.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VertexAiSearchSpecOrBuilder>( + getVertexAiSearchSpec(), getParentForChildren(), isClean()); + vertexAiSearchSpec_ = null; + } + return vertexAiSearchSpecBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec + webGroundingSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpecOrBuilder> + webGroundingSpecBuilder_; + + /** + * + * + *
            +       * Optional. Specification of the web grounding tool.
            +       * If field is present, enables grounding with web search. Works only if
            +       * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1beta.Assistant.web_grounding_type]
            +       * is
            +       * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH]
            +       * or
            +       * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH].
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the webGroundingSpec field is set. + */ + public boolean hasWebGroundingSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +       * Optional. Specification of the web grounding tool.
            +       * If field is present, enables grounding with web search. Works only if
            +       * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1beta.Assistant.web_grounding_type]
            +       * is
            +       * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH]
            +       * or
            +       * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH].
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The webGroundingSpec. + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec + getWebGroundingSpec() { + if (webGroundingSpecBuilder_ == null) { + return webGroundingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec.getDefaultInstance() + : webGroundingSpec_; + } else { + return webGroundingSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. Specification of the web grounding tool.
            +       * If field is present, enables grounding with web search. Works only if
            +       * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1beta.Assistant.web_grounding_type]
            +       * is
            +       * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH]
            +       * or
            +       * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH].
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWebGroundingSpec( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec + value) { + if (webGroundingSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + webGroundingSpec_ = value; + } else { + webGroundingSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Specification of the web grounding tool.
            +       * If field is present, enables grounding with web search. Works only if
            +       * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1beta.Assistant.web_grounding_type]
            +       * is
            +       * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH]
            +       * or
            +       * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH].
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setWebGroundingSpec( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec + .Builder + builderForValue) { + if (webGroundingSpecBuilder_ == null) { + webGroundingSpec_ = builderForValue.build(); + } else { + webGroundingSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Specification of the web grounding tool.
            +       * If field is present, enables grounding with web search. Works only if
            +       * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1beta.Assistant.web_grounding_type]
            +       * is
            +       * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH]
            +       * or
            +       * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH].
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeWebGroundingSpec( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec + value) { + if (webGroundingSpecBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && webGroundingSpec_ != null + && webGroundingSpec_ + != com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec.getDefaultInstance()) { + getWebGroundingSpecBuilder().mergeFrom(value); + } else { + webGroundingSpec_ = value; + } + } else { + webGroundingSpecBuilder_.mergeFrom(value); + } + if (webGroundingSpec_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Specification of the web grounding tool.
            +       * If field is present, enables grounding with web search. Works only if
            +       * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1beta.Assistant.web_grounding_type]
            +       * is
            +       * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH]
            +       * or
            +       * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH].
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearWebGroundingSpec() { + bitField0_ = (bitField0_ & ~0x00000002); + webGroundingSpec_ = null; + if (webGroundingSpecBuilder_ != null) { + webGroundingSpecBuilder_.dispose(); + webGroundingSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Specification of the web grounding tool.
            +       * If field is present, enables grounding with web search. Works only if
            +       * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1beta.Assistant.web_grounding_type]
            +       * is
            +       * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH]
            +       * or
            +       * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH].
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec + .Builder + getWebGroundingSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetWebGroundingSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Specification of the web grounding tool.
            +       * If field is present, enables grounding with web search. Works only if
            +       * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1beta.Assistant.web_grounding_type]
            +       * is
            +       * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH]
            +       * or
            +       * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH].
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpecOrBuilder + getWebGroundingSpecOrBuilder() { + if (webGroundingSpecBuilder_ != null) { + return webGroundingSpecBuilder_.getMessageOrBuilder(); + } else { + return webGroundingSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec.getDefaultInstance() + : webGroundingSpec_; + } + } + + /** + * + * + *
            +       * Optional. Specification of the web grounding tool.
            +       * If field is present, enables grounding with web search. Works only if
            +       * [Assistant.web_grounding_type][google.cloud.discoveryengine.v1beta.Assistant.web_grounding_type]
            +       * is
            +       * [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH]
            +       * or
            +       * [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH].
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec web_grounding_spec = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.WebGroundingSpec + .Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpecOrBuilder> + internalGetWebGroundingSpecFieldBuilder() { + if (webGroundingSpecBuilder_ == null) { + webGroundingSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpec.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .WebGroundingSpecOrBuilder>( + getWebGroundingSpec(), getParentForChildren(), isClean()); + webGroundingSpec_ = null; + } + return webGroundingSpecBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + imageGenerationSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpecOrBuilder> + imageGenerationSpecBuilder_; + + /** + * + * + *
            +       * Optional. Specification of the image generation tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the imageGenerationSpec field is set. + */ + public boolean hasImageGenerationSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +       * Optional. Specification of the image generation tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The imageGenerationSpec. + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec + getImageGenerationSpec() { + if (imageGenerationSpecBuilder_ == null) { + return imageGenerationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec.getDefaultInstance() + : imageGenerationSpec_; + } else { + return imageGenerationSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. Specification of the image generation tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setImageGenerationSpec( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec + value) { + if (imageGenerationSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + imageGenerationSpec_ = value; + } else { + imageGenerationSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Specification of the image generation tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setImageGenerationSpec( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec + .Builder + builderForValue) { + if (imageGenerationSpecBuilder_ == null) { + imageGenerationSpec_ = builderForValue.build(); + } else { + imageGenerationSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Specification of the image generation tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeImageGenerationSpec( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec + value) { + if (imageGenerationSpecBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && imageGenerationSpec_ != null + && imageGenerationSpec_ + != com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec.getDefaultInstance()) { + getImageGenerationSpecBuilder().mergeFrom(value); + } else { + imageGenerationSpec_ = value; + } + } else { + imageGenerationSpecBuilder_.mergeFrom(value); + } + if (imageGenerationSpec_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Specification of the image generation tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearImageGenerationSpec() { + bitField0_ = (bitField0_ & ~0x00000004); + imageGenerationSpec_ = null; + if (imageGenerationSpecBuilder_ != null) { + imageGenerationSpecBuilder_.dispose(); + imageGenerationSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Specification of the image generation tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec.Builder + getImageGenerationSpecBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetImageGenerationSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Specification of the image generation tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpecOrBuilder + getImageGenerationSpecOrBuilder() { + if (imageGenerationSpecBuilder_ != null) { + return imageGenerationSpecBuilder_.getMessageOrBuilder(); + } else { + return imageGenerationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec.getDefaultInstance() + : imageGenerationSpec_; + } + } + + /** + * + * + *
            +       * Optional. Specification of the image generation tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.ImageGenerationSpec image_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpecOrBuilder> + internalGetImageGenerationSpecFieldBuilder() { + if (imageGenerationSpecBuilder_ == null) { + imageGenerationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .ImageGenerationSpecOrBuilder>( + getImageGenerationSpec(), getParentForChildren(), isClean()); + imageGenerationSpec_ = null; + } + return imageGenerationSpecBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + videoGenerationSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpecOrBuilder> + videoGenerationSpecBuilder_; + + /** + * + * + *
            +       * Optional. Specification of the video generation tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the videoGenerationSpec field is set. + */ + public boolean hasVideoGenerationSpec() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +       * Optional. Specification of the video generation tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The videoGenerationSpec. + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec + getVideoGenerationSpec() { + if (videoGenerationSpecBuilder_ == null) { + return videoGenerationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec.getDefaultInstance() + : videoGenerationSpec_; + } else { + return videoGenerationSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. Specification of the video generation tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVideoGenerationSpec( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec + value) { + if (videoGenerationSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + videoGenerationSpec_ = value; + } else { + videoGenerationSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Specification of the video generation tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setVideoGenerationSpec( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec + .Builder + builderForValue) { + if (videoGenerationSpecBuilder_ == null) { + videoGenerationSpec_ = builderForValue.build(); + } else { + videoGenerationSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Specification of the video generation tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeVideoGenerationSpec( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec + value) { + if (videoGenerationSpecBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && videoGenerationSpec_ != null + && videoGenerationSpec_ + != com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec.getDefaultInstance()) { + getVideoGenerationSpecBuilder().mergeFrom(value); + } else { + videoGenerationSpec_ = value; + } + } else { + videoGenerationSpecBuilder_.mergeFrom(value); + } + if (videoGenerationSpec_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Specification of the video generation tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearVideoGenerationSpec() { + bitField0_ = (bitField0_ & ~0x00000008); + videoGenerationSpec_ = null; + if (videoGenerationSpecBuilder_ != null) { + videoGenerationSpecBuilder_.dispose(); + videoGenerationSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Specification of the video generation tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec.Builder + getVideoGenerationSpecBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetVideoGenerationSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Specification of the video generation tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpecOrBuilder + getVideoGenerationSpecOrBuilder() { + if (videoGenerationSpecBuilder_ != null) { + return videoGenerationSpecBuilder_.getMessageOrBuilder(); + } else { + return videoGenerationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec.getDefaultInstance() + : videoGenerationSpec_; + } + } + + /** + * + * + *
            +       * Optional. Specification of the video generation tool.
            +       * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.VideoGenerationSpec video_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpecOrBuilder> + internalGetVideoGenerationSpecFieldBuilder() { + if (videoGenerationSpecBuilder_ == null) { + videoGenerationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .VideoGenerationSpecOrBuilder>( + getVideoGenerationSpec(), getParentForChildren(), isClean()); + videoGenerationSpec_ = null; + } + return videoGenerationSpecBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec) + private static final com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolsSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.StreamAssistRequest.ToolsSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GenerationSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. The Vertex AI model_id used for the generative model. If not
            +     * set, the default Assistant model will be used.
            +     * 
            + * + * string model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The modelId. + */ + java.lang.String getModelId(); + + /** + * + * + *
            +     * Optional. The Vertex AI model_id used for the generative model. If not
            +     * set, the default Assistant model will be used.
            +     * 
            + * + * string model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for modelId. + */ + com.google.protobuf.ByteString getModelIdBytes(); + } + + /** + * + * + *
            +   * Assistant generation specification for the request.
            +   * This allows to override the default generation configuration at the engine
            +   * level.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec} + */ + public static final class GenerationSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec) + GenerationSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GenerationSpec"); + } + + // Use GenerationSpec.newBuilder() to construct. + private GenerationSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerationSpec() { + modelId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_GenerationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_GenerationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec.Builder + .class); + } + + public static final int MODEL_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object modelId_ = ""; + + /** + * + * + *
            +     * Optional. The Vertex AI model_id used for the generative model. If not
            +     * set, the default Assistant model will be used.
            +     * 
            + * + * string model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +     * Optional. The Vertex AI model_id used for the generative model. If not
            +     * set, the default Assistant model will be used.
            +     * 
            + * + * string model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, modelId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(modelId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, modelId_); + } + 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.v1beta.StreamAssistRequest.GenerationSpec)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec other = + (com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec) obj; + + if (!getModelId().equals(other.getModelId())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.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.v1beta.StreamAssistRequest.GenerationSpec + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.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.v1beta.StreamAssistRequest.GenerationSpec + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.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.v1beta.StreamAssistRequest.GenerationSpec + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Assistant generation specification for the request.
            +     * This allows to override the default generation configuration at the engine
            +     * level.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec) + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_GenerationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_GenerationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + modelId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_GenerationSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec build() { + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + buildPartial() { + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec result = + new com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.modelId_ = modelId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec other) { + if (other + == com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + .getDefaultInstance()) return this; + if (!other.getModelId().isEmpty()) { + modelId_ = other.modelId_; + 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: + { + modelId_ = 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 modelId_ = ""; + + /** + * + * + *
            +       * Optional. The Vertex AI model_id used for the generative model. If not
            +       * set, the default Assistant model will be used.
            +       * 
            + * + * string model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +       * Optional. The Vertex AI model_id used for the generative model. If not
            +       * set, the default Assistant model will be used.
            +       * 
            + * + * string model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +       * Optional. The Vertex AI model_id used for the generative model. If not
            +       * set, the default Assistant model will be used.
            +       * 
            + * + * string model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
            +       * Optional. The Vertex AI model_id used for the generative model. If not
            +       * set, the default Assistant model will be used.
            +       * 
            + * + * string model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearModelId() { + modelId_ = getDefaultInstance().getModelId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The Vertex AI model_id used for the generative model. If not
            +       * set, the default Assistant model will be used.
            +       * 
            + * + * string model_id = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec) + private static final com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec(); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.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.v1beta.StreamAssistRequest.GenerationSpec + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The resource name of the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The resource name of the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   * 
            + * + * + * 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 QUERY_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.Query query_; + + /** + * + * + *
            +   * Optional. Current user query.
            +   *
            +   * Empty query is only supported if `file_ids` are provided. In this case, the
            +   * answer will be generated based on those context files.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the query field is set. + */ + @java.lang.Override + public boolean hasQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Current user query.
            +   *
            +   * Empty query is only supported if `file_ids` are provided. In this case, the
            +   * answer will be generated based on those context files.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The query. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Query getQuery() { + return query_ == null + ? com.google.cloud.discoveryengine.v1beta.Query.getDefaultInstance() + : query_; + } + + /** + * + * + *
            +   * Optional. Current user query.
            +   *
            +   * Empty query is only supported if `file_ids` are provided. In this case, the
            +   * answer will be generated based on those context files.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.QueryOrBuilder getQueryOrBuilder() { + return query_ == null + ? com.google.cloud.discoveryengine.v1beta.Query.getDefaultInstance() + : query_; + } + + public static final int SESSION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object session_ = ""; + + /** + * + * + *
            +   * Optional. The session to use for the request. If specified, the assistant
            +   * has access to the session history, and the query and the answer are stored
            +   * there.
            +   *
            +   * If `-` is specified as the session ID, or it is left empty, then a new
            +   * session is created with an automatically generated ID.
            +   *
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`
            +   * 
            + * + * + * string session = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The session. + */ + @java.lang.Override + public java.lang.String getSession() { + java.lang.Object ref = session_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + session_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The session to use for the request. If specified, the assistant
            +   * has access to the session history, and the query and the answer are stored
            +   * there.
            +   *
            +   * If `-` is specified as the session ID, or it is left empty, then a new
            +   * session is created with an automatically generated ID.
            +   *
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`
            +   * 
            + * + * + * string session = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for session. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSessionBytes() { + java.lang.Object ref = session_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + session_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_METADATA_FIELD_NUMBER = 6; + private com.google.cloud.discoveryengine.v1beta.AssistUserMetadata userMetadata_; + + /** + * + * + *
            +   * Optional. Information about the user initiating the query.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userMetadata field is set. + */ + @java.lang.Override + public boolean hasUserMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. Information about the user initiating the query.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userMetadata. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistUserMetadata getUserMetadata() { + return userMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistUserMetadata.getDefaultInstance() + : userMetadata_; + } + + /** + * + * + *
            +   * Optional. Information about the user initiating the query.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistUserMetadataOrBuilder + getUserMetadataOrBuilder() { + return userMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistUserMetadata.getDefaultInstance() + : userMetadata_; + } + + public static final int TOOLS_SPEC_FIELD_NUMBER = 18; + private com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec toolsSpec_; + + /** + * + * + *
            +   * Optional. Specification of tools that are used to serve the request.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec tools_spec = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolsSpec field is set. + */ + @java.lang.Override + public boolean hasToolsSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Optional. Specification of tools that are used to serve the request.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec tools_spec = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolsSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec getToolsSpec() { + return toolsSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.getDefaultInstance() + : toolsSpec_; + } + + /** + * + * + *
            +   * Optional. Specification of tools that are used to serve the request.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec tools_spec = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpecOrBuilder + getToolsSpecOrBuilder() { + return toolsSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.getDefaultInstance() + : toolsSpec_; + } + + public static final int GENERATION_SPEC_FIELD_NUMBER = 19; + private com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + generationSpec_; + + /** + * + * + *
            +   * Optional. Specification of the generation configuration for the request.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationSpec field is set. + */ + @java.lang.Override + public boolean hasGenerationSpec() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Optional. Specification of the generation configuration for the request.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationSpec. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + getGenerationSpec() { + return generationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + .getDefaultInstance() + : generationSpec_; + } + + /** + * + * + *
            +   * Optional. Specification of the generation configuration for the request.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpecOrBuilder + getGenerationSpecOrBuilder() { + return generationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + .getDefaultInstance() + : generationSpec_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getQuery()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(session_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, session_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getUserMetadata()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(18, getToolsSpec()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(19, getGenerationSpec()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getQuery()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(session_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, session_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUserMetadata()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getToolsSpec()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getGenerationSpec()); + } + 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.v1beta.StreamAssistRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest other = + (com.google.cloud.discoveryengine.v1beta.StreamAssistRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (hasQuery() != other.hasQuery()) return false; + if (hasQuery()) { + if (!getQuery().equals(other.getQuery())) return false; + } + if (!getSession().equals(other.getSession())) return false; + if (hasUserMetadata() != other.hasUserMetadata()) return false; + if (hasUserMetadata()) { + if (!getUserMetadata().equals(other.getUserMetadata())) return false; + } + if (hasToolsSpec() != other.hasToolsSpec()) return false; + if (hasToolsSpec()) { + if (!getToolsSpec().equals(other.getToolsSpec())) return false; + } + if (hasGenerationSpec() != other.hasGenerationSpec()) return false; + if (hasGenerationSpec()) { + if (!getGenerationSpec().equals(other.getGenerationSpec())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasQuery()) { + hash = (37 * hash) + QUERY_FIELD_NUMBER; + hash = (53 * hash) + getQuery().hashCode(); + } + hash = (37 * hash) + SESSION_FIELD_NUMBER; + hash = (53 * hash) + getSession().hashCode(); + if (hasUserMetadata()) { + hash = (37 * hash) + USER_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getUserMetadata().hashCode(); + } + if (hasToolsSpec()) { + hash = (37 * hash) + TOOLS_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getToolsSpec().hashCode(); + } + if (hasGenerationSpec()) { + hash = (37 * hash) + GENERATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getGenerationSpec().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest 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.v1beta.StreamAssistRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest parseFrom( + 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.v1beta.StreamAssistRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request for the
            +   * [AssistantService.StreamAssist][google.cloud.discoveryengine.v1beta.AssistantService.StreamAssist]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.StreamAssistRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.StreamAssistRequest) + com.google.cloud.discoveryengine.v1beta.StreamAssistRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetQueryFieldBuilder(); + internalGetUserMetadataFieldBuilder(); + internalGetToolsSpecFieldBuilder(); + internalGetGenerationSpecFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + query_ = null; + if (queryBuilder_ != null) { + queryBuilder_.dispose(); + queryBuilder_ = null; + } + session_ = ""; + userMetadata_ = null; + if (userMetadataBuilder_ != null) { + userMetadataBuilder_.dispose(); + userMetadataBuilder_ = null; + } + toolsSpec_ = null; + if (toolsSpecBuilder_ != null) { + toolsSpecBuilder_.dispose(); + toolsSpecBuilder_ = null; + } + generationSpec_ = null; + if (generationSpecBuilder_ != null) { + generationSpecBuilder_.dispose(); + generationSpecBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest build() { + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest result = + new com.google.cloud.discoveryengine.v1beta.StreamAssistRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.StreamAssistRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.query_ = queryBuilder_ == null ? query_ : queryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.session_ = session_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.userMetadata_ = + userMetadataBuilder_ == null ? userMetadata_ : userMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.toolsSpec_ = toolsSpecBuilder_ == null ? toolsSpec_ : toolsSpecBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.generationSpec_ = + generationSpecBuilder_ == null ? generationSpec_ : generationSpecBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.StreamAssistRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.StreamAssistRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.StreamAssistRequest other) { + if (other == com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasQuery()) { + mergeQuery(other.getQuery()); + } + if (!other.getSession().isEmpty()) { + session_ = other.session_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasUserMetadata()) { + mergeUserMetadata(other.getUserMetadata()); + } + if (other.hasToolsSpec()) { + mergeToolsSpec(other.getToolsSpec()); + } + if (other.hasGenerationSpec()) { + mergeGenerationSpec(other.getGenerationSpec()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + session_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 50: + { + input.readMessage( + internalGetUserMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 50 + case 146: + { + input.readMessage( + internalGetToolsSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 146 + case 154: + { + input.readMessage( + internalGetGenerationSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 154 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The resource name of the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The resource name of the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The resource name of the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The resource name of the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The resource name of the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     * 
            + * + * + * 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 com.google.cloud.discoveryengine.v1beta.Query query_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Query, + com.google.cloud.discoveryengine.v1beta.Query.Builder, + com.google.cloud.discoveryengine.v1beta.QueryOrBuilder> + queryBuilder_; + + /** + * + * + *
            +     * Optional. Current user query.
            +     *
            +     * Empty query is only supported if `file_ids` are provided. In this case, the
            +     * answer will be generated based on those context files.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the query field is set. + */ + public boolean hasQuery() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. Current user query.
            +     *
            +     * Empty query is only supported if `file_ids` are provided. In this case, the
            +     * answer will be generated based on those context files.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The query. + */ + public com.google.cloud.discoveryengine.v1beta.Query getQuery() { + if (queryBuilder_ == null) { + return query_ == null + ? com.google.cloud.discoveryengine.v1beta.Query.getDefaultInstance() + : query_; + } else { + return queryBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Current user query.
            +     *
            +     * Empty query is only supported if `file_ids` are provided. In this case, the
            +     * answer will be generated based on those context files.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setQuery(com.google.cloud.discoveryengine.v1beta.Query value) { + if (queryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + query_ = value; + } else { + queryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Current user query.
            +     *
            +     * Empty query is only supported if `file_ids` are provided. In this case, the
            +     * answer will be generated based on those context files.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setQuery(com.google.cloud.discoveryengine.v1beta.Query.Builder builderForValue) { + if (queryBuilder_ == null) { + query_ = builderForValue.build(); + } else { + queryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Current user query.
            +     *
            +     * Empty query is only supported if `file_ids` are provided. In this case, the
            +     * answer will be generated based on those context files.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeQuery(com.google.cloud.discoveryengine.v1beta.Query value) { + if (queryBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && query_ != null + && query_ != com.google.cloud.discoveryengine.v1beta.Query.getDefaultInstance()) { + getQueryBuilder().mergeFrom(value); + } else { + query_ = value; + } + } else { + queryBuilder_.mergeFrom(value); + } + if (query_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Current user query.
            +     *
            +     * Empty query is only supported if `file_ids` are provided. In this case, the
            +     * answer will be generated based on those context files.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearQuery() { + bitField0_ = (bitField0_ & ~0x00000002); + query_ = null; + if (queryBuilder_ != null) { + queryBuilder_.dispose(); + queryBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Current user query.
            +     *
            +     * Empty query is only supported if `file_ids` are provided. In this case, the
            +     * answer will be generated based on those context files.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Query.Builder getQueryBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetQueryFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Current user query.
            +     *
            +     * Empty query is only supported if `file_ids` are provided. In this case, the
            +     * answer will be generated based on those context files.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.QueryOrBuilder getQueryOrBuilder() { + if (queryBuilder_ != null) { + return queryBuilder_.getMessageOrBuilder(); + } else { + return query_ == null + ? com.google.cloud.discoveryengine.v1beta.Query.getDefaultInstance() + : query_; + } + } + + /** + * + * + *
            +     * Optional. Current user query.
            +     *
            +     * Empty query is only supported if `file_ids` are provided. In this case, the
            +     * answer will be generated based on those context files.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Query, + com.google.cloud.discoveryengine.v1beta.Query.Builder, + com.google.cloud.discoveryengine.v1beta.QueryOrBuilder> + internalGetQueryFieldBuilder() { + if (queryBuilder_ == null) { + queryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Query, + com.google.cloud.discoveryengine.v1beta.Query.Builder, + com.google.cloud.discoveryengine.v1beta.QueryOrBuilder>( + getQuery(), getParentForChildren(), isClean()); + query_ = null; + } + return queryBuilder_; + } + + private java.lang.Object session_ = ""; + + /** + * + * + *
            +     * Optional. The session to use for the request. If specified, the assistant
            +     * has access to the session history, and the query and the answer are stored
            +     * there.
            +     *
            +     * If `-` is specified as the session ID, or it is left empty, then a new
            +     * session is created with an automatically generated ID.
            +     *
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`
            +     * 
            + * + * + * string session = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The session. + */ + public java.lang.String getSession() { + java.lang.Object ref = session_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + session_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The session to use for the request. If specified, the assistant
            +     * has access to the session history, and the query and the answer are stored
            +     * there.
            +     *
            +     * If `-` is specified as the session ID, or it is left empty, then a new
            +     * session is created with an automatically generated ID.
            +     *
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`
            +     * 
            + * + * + * string session = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for session. + */ + public com.google.protobuf.ByteString getSessionBytes() { + java.lang.Object ref = session_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + session_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The session to use for the request. If specified, the assistant
            +     * has access to the session history, and the query and the answer are stored
            +     * there.
            +     *
            +     * If `-` is specified as the session ID, or it is left empty, then a new
            +     * session is created with an automatically generated ID.
            +     *
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`
            +     * 
            + * + * + * string session = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The session to set. + * @return This builder for chaining. + */ + public Builder setSession(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + session_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The session to use for the request. If specified, the assistant
            +     * has access to the session history, and the query and the answer are stored
            +     * there.
            +     *
            +     * If `-` is specified as the session ID, or it is left empty, then a new
            +     * session is created with an automatically generated ID.
            +     *
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`
            +     * 
            + * + * + * string session = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSession() { + session_ = getDefaultInstance().getSession(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The session to use for the request. If specified, the assistant
            +     * has access to the session history, and the query and the answer are stored
            +     * there.
            +     *
            +     * If `-` is specified as the session ID, or it is left empty, then a new
            +     * session is created with an automatically generated ID.
            +     *
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`
            +     * 
            + * + * + * string session = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for session to set. + * @return This builder for chaining. + */ + public Builder setSessionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + session_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.AssistUserMetadata userMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistUserMetadata, + com.google.cloud.discoveryengine.v1beta.AssistUserMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.AssistUserMetadataOrBuilder> + userMetadataBuilder_; + + /** + * + * + *
            +     * Optional. Information about the user initiating the query.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userMetadata field is set. + */ + public boolean hasUserMetadata() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Optional. Information about the user initiating the query.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userMetadata. + */ + public com.google.cloud.discoveryengine.v1beta.AssistUserMetadata getUserMetadata() { + if (userMetadataBuilder_ == null) { + return userMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistUserMetadata.getDefaultInstance() + : userMetadata_; + } else { + return userMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Information about the user initiating the query.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserMetadata( + com.google.cloud.discoveryengine.v1beta.AssistUserMetadata value) { + if (userMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userMetadata_ = value; + } else { + userMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Information about the user initiating the query.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUserMetadata( + com.google.cloud.discoveryengine.v1beta.AssistUserMetadata.Builder builderForValue) { + if (userMetadataBuilder_ == null) { + userMetadata_ = builderForValue.build(); + } else { + userMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Information about the user initiating the query.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUserMetadata( + com.google.cloud.discoveryengine.v1beta.AssistUserMetadata value) { + if (userMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && userMetadata_ != null + && userMetadata_ + != com.google.cloud.discoveryengine.v1beta.AssistUserMetadata + .getDefaultInstance()) { + getUserMetadataBuilder().mergeFrom(value); + } else { + userMetadata_ = value; + } + } else { + userMetadataBuilder_.mergeFrom(value); + } + if (userMetadata_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Information about the user initiating the query.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUserMetadata() { + bitField0_ = (bitField0_ & ~0x00000008); + userMetadata_ = null; + if (userMetadataBuilder_ != null) { + userMetadataBuilder_.dispose(); + userMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Information about the user initiating the query.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistUserMetadata.Builder + getUserMetadataBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetUserMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Information about the user initiating the query.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistUserMetadataOrBuilder + getUserMetadataOrBuilder() { + if (userMetadataBuilder_ != null) { + return userMetadataBuilder_.getMessageOrBuilder(); + } else { + return userMetadata_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistUserMetadata.getDefaultInstance() + : userMetadata_; + } + } + + /** + * + * + *
            +     * Optional. Information about the user initiating the query.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistUserMetadata, + com.google.cloud.discoveryengine.v1beta.AssistUserMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.AssistUserMetadataOrBuilder> + internalGetUserMetadataFieldBuilder() { + if (userMetadataBuilder_ == null) { + userMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistUserMetadata, + com.google.cloud.discoveryengine.v1beta.AssistUserMetadata.Builder, + com.google.cloud.discoveryengine.v1beta.AssistUserMetadataOrBuilder>( + getUserMetadata(), getParentForChildren(), isClean()); + userMetadata_ = null; + } + return userMetadataBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec toolsSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpecOrBuilder> + toolsSpecBuilder_; + + /** + * + * + *
            +     * Optional. Specification of tools that are used to serve the request.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec tools_spec = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolsSpec field is set. + */ + public boolean hasToolsSpec() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Optional. Specification of tools that are used to serve the request.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec tools_spec = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolsSpec. + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec getToolsSpec() { + if (toolsSpecBuilder_ == null) { + return toolsSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .getDefaultInstance() + : toolsSpec_; + } else { + return toolsSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Specification of tools that are used to serve the request.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec tools_spec = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsSpec( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec value) { + if (toolsSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolsSpec_ = value; + } else { + toolsSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specification of tools that are used to serve the request.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec tools_spec = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolsSpec( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.Builder + builderForValue) { + if (toolsSpecBuilder_ == null) { + toolsSpec_ = builderForValue.build(); + } else { + toolsSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specification of tools that are used to serve the request.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec tools_spec = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeToolsSpec( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec value) { + if (toolsSpecBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && toolsSpec_ != null + && toolsSpec_ + != com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .getDefaultInstance()) { + getToolsSpecBuilder().mergeFrom(value); + } else { + toolsSpec_ = value; + } + } else { + toolsSpecBuilder_.mergeFrom(value); + } + if (toolsSpec_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Specification of tools that are used to serve the request.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec tools_spec = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolsSpec() { + bitField0_ = (bitField0_ & ~0x00000010); + toolsSpec_ = null; + if (toolsSpecBuilder_ != null) { + toolsSpecBuilder_.dispose(); + toolsSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specification of tools that are used to serve the request.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec tools_spec = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.Builder + getToolsSpecBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetToolsSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Specification of tools that are used to serve the request.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec tools_spec = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpecOrBuilder + getToolsSpecOrBuilder() { + if (toolsSpecBuilder_ != null) { + return toolsSpecBuilder_.getMessageOrBuilder(); + } else { + return toolsSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec + .getDefaultInstance() + : toolsSpec_; + } + } + + /** + * + * + *
            +     * Optional. Specification of tools that are used to serve the request.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec tools_spec = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpecOrBuilder> + internalGetToolsSpecFieldBuilder() { + if (toolsSpecBuilder_ == null) { + toolsSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpecOrBuilder>( + getToolsSpec(), getParentForChildren(), isClean()); + toolsSpec_ = null; + } + return toolsSpecBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + generationSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpecOrBuilder> + generationSpecBuilder_; + + /** + * + * + *
            +     * Optional. Specification of the generation configuration for the request.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationSpec field is set. + */ + public boolean hasGenerationSpec() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Optional. Specification of the generation configuration for the request.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationSpec. + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + getGenerationSpec() { + if (generationSpecBuilder_ == null) { + return generationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + .getDefaultInstance() + : generationSpec_; + } else { + return generationSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Specification of the generation configuration for the request.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGenerationSpec( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec value) { + if (generationSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generationSpec_ = value; + } else { + generationSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specification of the generation configuration for the request.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGenerationSpec( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec.Builder + builderForValue) { + if (generationSpecBuilder_ == null) { + generationSpec_ = builderForValue.build(); + } else { + generationSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specification of the generation configuration for the request.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGenerationSpec( + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec value) { + if (generationSpecBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && generationSpec_ != null + && generationSpec_ + != com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + .getDefaultInstance()) { + getGenerationSpecBuilder().mergeFrom(value); + } else { + generationSpec_ = value; + } + } else { + generationSpecBuilder_.mergeFrom(value); + } + if (generationSpec_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Specification of the generation configuration for the request.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGenerationSpec() { + bitField0_ = (bitField0_ & ~0x00000020); + generationSpec_ = null; + if (generationSpecBuilder_ != null) { + generationSpecBuilder_.dispose(); + generationSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specification of the generation configuration for the request.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec.Builder + getGenerationSpecBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetGenerationSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Specification of the generation configuration for the request.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpecOrBuilder + getGenerationSpecOrBuilder() { + if (generationSpecBuilder_ != null) { + return generationSpecBuilder_.getMessageOrBuilder(); + } else { + return generationSpec_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec + .getDefaultInstance() + : generationSpec_; + } + } + + /** + * + * + *
            +     * Optional. Specification of the generation configuration for the request.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpecOrBuilder> + internalGetGenerationSpecFieldBuilder() { + if (generationSpecBuilder_ == null) { + generationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest + .GenerationSpecOrBuilder>( + getGenerationSpec(), getParentForChildren(), isClean()); + generationSpec_ = null; + } + return generationSpecBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.StreamAssistRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.StreamAssistRequest) + private static final com.google.cloud.discoveryengine.v1beta.StreamAssistRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.StreamAssistRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamAssistRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.StreamAssistRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/StreamAssistRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/StreamAssistRequestOrBuilder.java new file mode 100644 index 000000000000..0bc4faf18e3b --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/StreamAssistRequestOrBuilder.java @@ -0,0 +1,291 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface StreamAssistRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.StreamAssistRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The resource name of the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The resource name of the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. Current user query.
            +   *
            +   * Empty query is only supported if `file_ids` are provided. In this case, the
            +   * answer will be generated based on those context files.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the query field is set. + */ + boolean hasQuery(); + + /** + * + * + *
            +   * Optional. Current user query.
            +   *
            +   * Empty query is only supported if `file_ids` are provided. In this case, the
            +   * answer will be generated based on those context files.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The query. + */ + com.google.cloud.discoveryengine.v1beta.Query getQuery(); + + /** + * + * + *
            +   * Optional. Current user query.
            +   *
            +   * Empty query is only supported if `file_ids` are provided. In this case, the
            +   * answer will be generated based on those context files.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Query query = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.QueryOrBuilder getQueryOrBuilder(); + + /** + * + * + *
            +   * Optional. The session to use for the request. If specified, the assistant
            +   * has access to the session history, and the query and the answer are stored
            +   * there.
            +   *
            +   * If `-` is specified as the session ID, or it is left empty, then a new
            +   * session is created with an automatically generated ID.
            +   *
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`
            +   * 
            + * + * + * string session = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The session. + */ + java.lang.String getSession(); + + /** + * + * + *
            +   * Optional. The session to use for the request. If specified, the assistant
            +   * has access to the session history, and the query and the answer are stored
            +   * there.
            +   *
            +   * If `-` is specified as the session ID, or it is left empty, then a new
            +   * session is created with an automatically generated ID.
            +   *
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`
            +   * 
            + * + * + * string session = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for session. + */ + com.google.protobuf.ByteString getSessionBytes(); + + /** + * + * + *
            +   * Optional. Information about the user initiating the query.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the userMetadata field is set. + */ + boolean hasUserMetadata(); + + /** + * + * + *
            +   * Optional. Information about the user initiating the query.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userMetadata. + */ + com.google.cloud.discoveryengine.v1beta.AssistUserMetadata getUserMetadata(); + + /** + * + * + *
            +   * Optional. Information about the user initiating the query.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.AssistUserMetadata user_metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistUserMetadataOrBuilder getUserMetadataOrBuilder(); + + /** + * + * + *
            +   * Optional. Specification of tools that are used to serve the request.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec tools_spec = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolsSpec field is set. + */ + boolean hasToolsSpec(); + + /** + * + * + *
            +   * Optional. Specification of tools that are used to serve the request.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec tools_spec = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolsSpec. + */ + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec getToolsSpec(); + + /** + * + * + *
            +   * Optional. Specification of tools that are used to serve the request.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpec tools_spec = 18 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.ToolsSpecOrBuilder + getToolsSpecOrBuilder(); + + /** + * + * + *
            +   * Optional. Specification of the generation configuration for the request.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationSpec field is set. + */ + boolean hasGenerationSpec(); + + /** + * + * + *
            +   * Optional. Specification of the generation configuration for the request.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationSpec. + */ + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec getGenerationSpec(); + + /** + * + * + *
            +   * Optional. Specification of the generation configuration for the request.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpec generation_spec = 19 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.StreamAssistRequest.GenerationSpecOrBuilder + getGenerationSpecOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/StreamAssistResponse.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/StreamAssistResponse.java new file mode 100644 index 000000000000..eb1c1ff74050 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/StreamAssistResponse.java @@ -0,0 +1,3863 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Response for the
            + * [AssistantService.StreamAssist][google.cloud.discoveryengine.v1beta.AssistantService.StreamAssist]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.StreamAssistResponse} + */ +@com.google.protobuf.Generated +public final class StreamAssistResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.StreamAssistResponse) + StreamAssistResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "StreamAssistResponse"); + } + + // Use StreamAssistResponse.newBuilder() to construct. + private StreamAssistResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private StreamAssistResponse() { + assistToken_ = ""; + invocationTools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + invokedSkills_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.Builder.class); + } + + public interface SessionInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Name of the newly generated or continued session.
            +     *
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`.
            +     * 
            + * + * string session = 1 [(.google.api.resource_reference) = { ... } + * + * @return The session. + */ + java.lang.String getSession(); + + /** + * + * + *
            +     * Name of the newly generated or continued session.
            +     *
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`.
            +     * 
            + * + * string session = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for session. + */ + com.google.protobuf.ByteString getSessionBytes(); + } + + /** + * + * + *
            +   * Information about the session.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo} + */ + public static final class SessionInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo) + SessionInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SessionInfo"); + } + + // Use SessionInfo.newBuilder() to construct. + private SessionInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SessionInfo() { + session_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_SessionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_SessionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo.Builder + .class); + } + + public static final int SESSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object session_ = ""; + + /** + * + * + *
            +     * Name of the newly generated or continued session.
            +     *
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`.
            +     * 
            + * + * string session = 1 [(.google.api.resource_reference) = { ... } + * + * @return The session. + */ + @java.lang.Override + public java.lang.String getSession() { + java.lang.Object ref = session_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + session_ = s; + return s; + } + } + + /** + * + * + *
            +     * Name of the newly generated or continued session.
            +     *
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`.
            +     * 
            + * + * string session = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for session. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSessionBytes() { + java.lang.Object ref = session_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + session_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(session_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, session_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(session_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, session_); + } + 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.v1beta.StreamAssistResponse.SessionInfo)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo other = + (com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo) obj; + + if (!getSession().equals(other.getSession())) 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) + SESSION_FIELD_NUMBER; + hash = (53 * hash) + getSession().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + 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.v1beta.StreamAssistResponse.SessionInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + parseFrom( + 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.v1beta.StreamAssistResponse.SessionInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Information about the session.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo) + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_SessionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_SessionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + session_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_SessionInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo build() { + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + buildPartial() { + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo result = + new com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.session_ = session_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo other) { + if (other + == com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + .getDefaultInstance()) return this; + if (!other.getSession().isEmpty()) { + session_ = other.session_; + 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: + { + session_ = 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 session_ = ""; + + /** + * + * + *
            +       * Name of the newly generated or continued session.
            +       *
            +       * Format:
            +       * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`.
            +       * 
            + * + * string session = 1 [(.google.api.resource_reference) = { ... } + * + * @return The session. + */ + public java.lang.String getSession() { + java.lang.Object ref = session_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + session_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Name of the newly generated or continued session.
            +       *
            +       * Format:
            +       * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`.
            +       * 
            + * + * string session = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for session. + */ + public com.google.protobuf.ByteString getSessionBytes() { + java.lang.Object ref = session_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + session_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Name of the newly generated or continued session.
            +       *
            +       * Format:
            +       * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`.
            +       * 
            + * + * string session = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The session to set. + * @return This builder for chaining. + */ + public Builder setSession(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + session_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Name of the newly generated or continued session.
            +       *
            +       * Format:
            +       * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`.
            +       * 
            + * + * string session = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearSession() { + session_ = getDefaultInstance().getSession(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Name of the newly generated or continued session.
            +       *
            +       * Format:
            +       * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`.
            +       * 
            + * + * string session = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for session to set. + * @return This builder for chaining. + */ + public Builder setSessionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + session_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo) + private static final com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo(); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.StreamAssistResponse.SessionInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface InvokedSkillOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * The resource name of the skill.
            +     * 
            + * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +     * The resource name of the skill.
            +     * 
            + * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +     * The display name of the skill.
            +     * 
            + * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
            +     * The display name of the skill.
            +     * 
            + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + } + + /** + * + * + *
            +   * Represents a skill used during the assist call.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill} + */ + public static final class InvokedSkill extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill) + InvokedSkillOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InvokedSkill"); + } + + // Use InvokedSkill.newBuilder() to construct. + private InvokedSkill(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InvokedSkill() { + name_ = ""; + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_InvokedSkill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_InvokedSkill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +     * The resource name of the skill.
            +     * 
            + * + * 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 resource name of the skill.
            +     * 
            + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
            +     * The display name of the skill.
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * The display name of the skill.
            +     * 
            + * + * 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + 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.v1beta.StreamAssistResponse.InvokedSkill)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill other = + (com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + 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.v1beta.StreamAssistResponse.InvokedSkill + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + parseFrom( + 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.v1beta.StreamAssistResponse.InvokedSkill + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Represents a skill used during the assist call.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill) + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkillOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_InvokedSkill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_InvokedSkill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill.Builder + .class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_InvokedSkill_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill build() { + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + buildPartial() { + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill result = + new com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill other) { + if (other + == com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + 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: + { + displayName_ = 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_ = ""; + + /** + * + * + *
            +       * The resource name of the skill.
            +       * 
            + * + * 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 resource name of the skill.
            +       * 
            + * + * 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 resource name of the skill.
            +       * 
            + * + * 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 resource name of the skill.
            +       * 
            + * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The resource name of the skill.
            +       * 
            + * + * 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 displayName_ = ""; + + /** + * + * + *
            +       * The display name of the skill.
            +       * 
            + * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * The display name of the skill.
            +       * 
            + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * The display name of the skill.
            +       * 
            + * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The display name of the skill.
            +       * 
            + * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The display name of the skill.
            +       * 
            + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill) + private static final com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill(); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvokedSkill parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.StreamAssistResponse.InvokedSkill + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int ANSWER_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.AssistAnswer answer_; + + /** + * + * + *
            +   * Assist answer resource object containing parts of the assistant's final
            +   * answer for the user's query.
            +   *
            +   * Not present if the current response doesn't add anything to previously
            +   * sent
            +   * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies].
            +   *
            +   * Observe
            +   * [AssistAnswer.state][google.cloud.discoveryengine.v1beta.AssistAnswer.state]
            +   * to see if more parts are to be expected. While the state is `IN_PROGRESS`,
            +   * the
            +   * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies]
            +   * field in each response will contain replies (reply fragments) to be
            +   * appended to the ones received in previous responses.
            +   * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +   * won't be filled.
            +   *
            +   * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
            +   * is the last response and
            +   * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +   * will have a value.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer answer = 1; + * + * @return Whether the answer field is set. + */ + @java.lang.Override + public boolean hasAnswer() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Assist answer resource object containing parts of the assistant's final
            +   * answer for the user's query.
            +   *
            +   * Not present if the current response doesn't add anything to previously
            +   * sent
            +   * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies].
            +   *
            +   * Observe
            +   * [AssistAnswer.state][google.cloud.discoveryengine.v1beta.AssistAnswer.state]
            +   * to see if more parts are to be expected. While the state is `IN_PROGRESS`,
            +   * the
            +   * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies]
            +   * field in each response will contain replies (reply fragments) to be
            +   * appended to the ones received in previous responses.
            +   * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +   * won't be filled.
            +   *
            +   * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
            +   * is the last response and
            +   * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +   * will have a value.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer answer = 1; + * + * @return The answer. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswer getAnswer() { + return answer_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistAnswer.getDefaultInstance() + : answer_; + } + + /** + * + * + *
            +   * Assist answer resource object containing parts of the assistant's final
            +   * answer for the user's query.
            +   *
            +   * Not present if the current response doesn't add anything to previously
            +   * sent
            +   * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies].
            +   *
            +   * Observe
            +   * [AssistAnswer.state][google.cloud.discoveryengine.v1beta.AssistAnswer.state]
            +   * to see if more parts are to be expected. While the state is `IN_PROGRESS`,
            +   * the
            +   * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies]
            +   * field in each response will contain replies (reply fragments) to be
            +   * appended to the ones received in previous responses.
            +   * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +   * won't be filled.
            +   *
            +   * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
            +   * is the last response and
            +   * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +   * will have a value.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer answer = 1; + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistAnswerOrBuilder getAnswerOrBuilder() { + return answer_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistAnswer.getDefaultInstance() + : answer_; + } + + public static final int SESSION_INFO_FIELD_NUMBER = 2; + private com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo sessionInfo_; + + /** + * + * + *
            +   * Session information. Only included in the final StreamAssistResponse of the
            +   * response stream.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo session_info = 2; + * + * + * @return Whether the sessionInfo field is set. + */ + @java.lang.Override + public boolean hasSessionInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Session information. Only included in the final StreamAssistResponse of the
            +   * response stream.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo session_info = 2; + * + * + * @return The sessionInfo. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo getSessionInfo() { + return sessionInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + .getDefaultInstance() + : sessionInfo_; + } + + /** + * + * + *
            +   * Session information. Only included in the final StreamAssistResponse of the
            +   * response stream.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo session_info = 2; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfoOrBuilder + getSessionInfoOrBuilder() { + return sessionInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + .getDefaultInstance() + : sessionInfo_; + } + + public static final int ASSIST_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object assistToken_ = ""; + + /** + * + * + *
            +   * A global unique ID that identifies the current pair of request and stream
            +   * of responses. Used for feedback and support.
            +   * 
            + * + * string assist_token = 4; + * + * @return The assistToken. + */ + @java.lang.Override + public java.lang.String getAssistToken() { + java.lang.Object ref = assistToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * A global unique ID that identifies the current pair of request and stream
            +   * of responses. Used for feedback and support.
            +   * 
            + * + * string assist_token = 4; + * + * @return The bytes for assistToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssistTokenBytes() { + java.lang.Object ref = assistToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INVOCATION_TOOLS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList invocationTools_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * The tool names of the tools that were invoked.
            +   * 
            + * + * repeated string invocation_tools = 8; + * + * @return A list containing the invocationTools. + */ + public com.google.protobuf.ProtocolStringList getInvocationToolsList() { + return invocationTools_; + } + + /** + * + * + *
            +   * The tool names of the tools that were invoked.
            +   * 
            + * + * repeated string invocation_tools = 8; + * + * @return The count of invocationTools. + */ + public int getInvocationToolsCount() { + return invocationTools_.size(); + } + + /** + * + * + *
            +   * The tool names of the tools that were invoked.
            +   * 
            + * + * repeated string invocation_tools = 8; + * + * @param index The index of the element to return. + * @return The invocationTools at the given index. + */ + public java.lang.String getInvocationTools(int index) { + return invocationTools_.get(index); + } + + /** + * + * + *
            +   * The tool names of the tools that were invoked.
            +   * 
            + * + * repeated string invocation_tools = 8; + * + * @param index The index of the value to return. + * @return The bytes of the invocationTools at the given index. + */ + public com.google.protobuf.ByteString getInvocationToolsBytes(int index) { + return invocationTools_.getByteString(index); + } + + public static final int INVOKED_SKILLS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List + invokedSkills_; + + /** + * + * + *
            +   * The skills executed during the turn.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + @java.lang.Override + public java.util.List + getInvokedSkillsList() { + return invokedSkills_; + } + + /** + * + * + *
            +   * The skills executed during the turn.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkillOrBuilder> + getInvokedSkillsOrBuilderList() { + return invokedSkills_; + } + + /** + * + * + *
            +   * The skills executed during the turn.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + @java.lang.Override + public int getInvokedSkillsCount() { + return invokedSkills_.size(); + } + + /** + * + * + *
            +   * The skills executed during the turn.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill getInvokedSkills( + int index) { + return invokedSkills_.get(index); + } + + /** + * + * + *
            +   * The skills executed during the turn.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkillOrBuilder + getInvokedSkillsOrBuilder(int index) { + return invokedSkills_.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.writeMessage(1, getAnswer()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSessionInfo()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, assistToken_); + } + for (int i = 0; i < invocationTools_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, invocationTools_.getRaw(i)); + } + for (int i = 0; i < invokedSkills_.size(); i++) { + output.writeMessage(10, invokedSkills_.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.computeMessageSize(1, getAnswer()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSessionInfo()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, assistToken_); + } + { + int dataSize = 0; + for (int i = 0; i < invocationTools_.size(); i++) { + dataSize += computeStringSizeNoTag(invocationTools_.getRaw(i)); + } + size += dataSize; + size += 1 * getInvocationToolsList().size(); + } + for (int i = 0; i < invokedSkills_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, invokedSkills_.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.v1beta.StreamAssistResponse)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse other = + (com.google.cloud.discoveryengine.v1beta.StreamAssistResponse) obj; + + if (hasAnswer() != other.hasAnswer()) return false; + if (hasAnswer()) { + if (!getAnswer().equals(other.getAnswer())) return false; + } + if (hasSessionInfo() != other.hasSessionInfo()) return false; + if (hasSessionInfo()) { + if (!getSessionInfo().equals(other.getSessionInfo())) return false; + } + if (!getAssistToken().equals(other.getAssistToken())) return false; + if (!getInvocationToolsList().equals(other.getInvocationToolsList())) return false; + if (!getInvokedSkillsList().equals(other.getInvokedSkillsList())) 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 (hasAnswer()) { + hash = (37 * hash) + ANSWER_FIELD_NUMBER; + hash = (53 * hash) + getAnswer().hashCode(); + } + if (hasSessionInfo()) { + hash = (37 * hash) + SESSION_INFO_FIELD_NUMBER; + hash = (53 * hash) + getSessionInfo().hashCode(); + } + hash = (37 * hash) + ASSIST_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAssistToken().hashCode(); + if (getInvocationToolsCount() > 0) { + hash = (37 * hash) + INVOCATION_TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getInvocationToolsList().hashCode(); + } + if (getInvokedSkillsCount() > 0) { + hash = (37 * hash) + INVOKED_SKILLS_FIELD_NUMBER; + hash = (53 * hash) + getInvokedSkillsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse 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.v1beta.StreamAssistResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse parseFrom( + 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.v1beta.StreamAssistResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response for the
            +   * [AssistantService.StreamAssist][google.cloud.discoveryengine.v1beta.AssistantService.StreamAssist]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.StreamAssistResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.StreamAssistResponse) + com.google.cloud.discoveryengine.v1beta.StreamAssistResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.class, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAnswerFieldBuilder(); + internalGetSessionInfoFieldBuilder(); + internalGetInvokedSkillsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + answer_ = null; + if (answerBuilder_ != null) { + answerBuilder_.dispose(); + answerBuilder_ = null; + } + sessionInfo_ = null; + if (sessionInfoBuilder_ != null) { + sessionInfoBuilder_.dispose(); + sessionInfoBuilder_ = null; + } + assistToken_ = ""; + invocationTools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (invokedSkillsBuilder_ == null) { + invokedSkills_ = java.util.Collections.emptyList(); + } else { + invokedSkills_ = null; + invokedSkillsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_StreamAssistResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse build() { + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse buildPartial() { + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse result = + new com.google.cloud.discoveryengine.v1beta.StreamAssistResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse result) { + if (invokedSkillsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + invokedSkills_ = java.util.Collections.unmodifiableList(invokedSkills_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.invokedSkills_ = invokedSkills_; + } else { + result.invokedSkills_ = invokedSkillsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.answer_ = answerBuilder_ == null ? answer_ : answerBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sessionInfo_ = + sessionInfoBuilder_ == null ? sessionInfo_ : sessionInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.assistToken_ = assistToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + invocationTools_.makeImmutable(); + result.invocationTools_ = invocationTools_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.StreamAssistResponse) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.StreamAssistResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.StreamAssistResponse other) { + if (other + == com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.getDefaultInstance()) + return this; + if (other.hasAnswer()) { + mergeAnswer(other.getAnswer()); + } + if (other.hasSessionInfo()) { + mergeSessionInfo(other.getSessionInfo()); + } + if (!other.getAssistToken().isEmpty()) { + assistToken_ = other.assistToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.invocationTools_.isEmpty()) { + if (invocationTools_.isEmpty()) { + invocationTools_ = other.invocationTools_; + bitField0_ |= 0x00000008; + } else { + ensureInvocationToolsIsMutable(); + invocationTools_.addAll(other.invocationTools_); + } + onChanged(); + } + if (invokedSkillsBuilder_ == null) { + if (!other.invokedSkills_.isEmpty()) { + if (invokedSkills_.isEmpty()) { + invokedSkills_ = other.invokedSkills_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureInvokedSkillsIsMutable(); + invokedSkills_.addAll(other.invokedSkills_); + } + onChanged(); + } + } else { + if (!other.invokedSkills_.isEmpty()) { + if (invokedSkillsBuilder_.isEmpty()) { + invokedSkillsBuilder_.dispose(); + invokedSkillsBuilder_ = null; + invokedSkills_ = other.invokedSkills_; + bitField0_ = (bitField0_ & ~0x00000010); + invokedSkillsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInvokedSkillsFieldBuilder() + : null; + } else { + invokedSkillsBuilder_.addAllMessages(other.invokedSkills_); + } + } + } + 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(internalGetAnswerFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetSessionInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + assistToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureInvocationToolsIsMutable(); + invocationTools_.add(s); + break; + } // case 66 + case 82: + { + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill m = + input.readMessage( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + .parser(), + extensionRegistry); + if (invokedSkillsBuilder_ == null) { + ensureInvokedSkillsIsMutable(); + invokedSkills_.add(m); + } else { + invokedSkillsBuilder_.addMessage(m); + } + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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.v1beta.AssistAnswer answer_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswerOrBuilder> + answerBuilder_; + + /** + * + * + *
            +     * Assist answer resource object containing parts of the assistant's final
            +     * answer for the user's query.
            +     *
            +     * Not present if the current response doesn't add anything to previously
            +     * sent
            +     * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies].
            +     *
            +     * Observe
            +     * [AssistAnswer.state][google.cloud.discoveryengine.v1beta.AssistAnswer.state]
            +     * to see if more parts are to be expected. While the state is `IN_PROGRESS`,
            +     * the
            +     * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies]
            +     * field in each response will contain replies (reply fragments) to be
            +     * appended to the ones received in previous responses.
            +     * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +     * won't be filled.
            +     *
            +     * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
            +     * is the last response and
            +     * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +     * will have a value.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer answer = 1; + * + * @return Whether the answer field is set. + */ + public boolean hasAnswer() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Assist answer resource object containing parts of the assistant's final
            +     * answer for the user's query.
            +     *
            +     * Not present if the current response doesn't add anything to previously
            +     * sent
            +     * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies].
            +     *
            +     * Observe
            +     * [AssistAnswer.state][google.cloud.discoveryengine.v1beta.AssistAnswer.state]
            +     * to see if more parts are to be expected. While the state is `IN_PROGRESS`,
            +     * the
            +     * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies]
            +     * field in each response will contain replies (reply fragments) to be
            +     * appended to the ones received in previous responses.
            +     * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +     * won't be filled.
            +     *
            +     * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
            +     * is the last response and
            +     * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +     * will have a value.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer answer = 1; + * + * @return The answer. + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswer getAnswer() { + if (answerBuilder_ == null) { + return answer_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistAnswer.getDefaultInstance() + : answer_; + } else { + return answerBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Assist answer resource object containing parts of the assistant's final
            +     * answer for the user's query.
            +     *
            +     * Not present if the current response doesn't add anything to previously
            +     * sent
            +     * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies].
            +     *
            +     * Observe
            +     * [AssistAnswer.state][google.cloud.discoveryengine.v1beta.AssistAnswer.state]
            +     * to see if more parts are to be expected. While the state is `IN_PROGRESS`,
            +     * the
            +     * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies]
            +     * field in each response will contain replies (reply fragments) to be
            +     * appended to the ones received in previous responses.
            +     * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +     * won't be filled.
            +     *
            +     * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
            +     * is the last response and
            +     * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +     * will have a value.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer answer = 1; + */ + public Builder setAnswer(com.google.cloud.discoveryengine.v1beta.AssistAnswer value) { + if (answerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + answer_ = value; + } else { + answerBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Assist answer resource object containing parts of the assistant's final
            +     * answer for the user's query.
            +     *
            +     * Not present if the current response doesn't add anything to previously
            +     * sent
            +     * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies].
            +     *
            +     * Observe
            +     * [AssistAnswer.state][google.cloud.discoveryengine.v1beta.AssistAnswer.state]
            +     * to see if more parts are to be expected. While the state is `IN_PROGRESS`,
            +     * the
            +     * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies]
            +     * field in each response will contain replies (reply fragments) to be
            +     * appended to the ones received in previous responses.
            +     * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +     * won't be filled.
            +     *
            +     * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
            +     * is the last response and
            +     * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +     * will have a value.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer answer = 1; + */ + public Builder setAnswer( + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Builder builderForValue) { + if (answerBuilder_ == null) { + answer_ = builderForValue.build(); + } else { + answerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Assist answer resource object containing parts of the assistant's final
            +     * answer for the user's query.
            +     *
            +     * Not present if the current response doesn't add anything to previously
            +     * sent
            +     * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies].
            +     *
            +     * Observe
            +     * [AssistAnswer.state][google.cloud.discoveryengine.v1beta.AssistAnswer.state]
            +     * to see if more parts are to be expected. While the state is `IN_PROGRESS`,
            +     * the
            +     * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies]
            +     * field in each response will contain replies (reply fragments) to be
            +     * appended to the ones received in previous responses.
            +     * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +     * won't be filled.
            +     *
            +     * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
            +     * is the last response and
            +     * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +     * will have a value.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer answer = 1; + */ + public Builder mergeAnswer(com.google.cloud.discoveryengine.v1beta.AssistAnswer value) { + if (answerBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && answer_ != null + && answer_ + != com.google.cloud.discoveryengine.v1beta.AssistAnswer.getDefaultInstance()) { + getAnswerBuilder().mergeFrom(value); + } else { + answer_ = value; + } + } else { + answerBuilder_.mergeFrom(value); + } + if (answer_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Assist answer resource object containing parts of the assistant's final
            +     * answer for the user's query.
            +     *
            +     * Not present if the current response doesn't add anything to previously
            +     * sent
            +     * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies].
            +     *
            +     * Observe
            +     * [AssistAnswer.state][google.cloud.discoveryengine.v1beta.AssistAnswer.state]
            +     * to see if more parts are to be expected. While the state is `IN_PROGRESS`,
            +     * the
            +     * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies]
            +     * field in each response will contain replies (reply fragments) to be
            +     * appended to the ones received in previous responses.
            +     * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +     * won't be filled.
            +     *
            +     * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
            +     * is the last response and
            +     * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +     * will have a value.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer answer = 1; + */ + public Builder clearAnswer() { + bitField0_ = (bitField0_ & ~0x00000001); + answer_ = null; + if (answerBuilder_ != null) { + answerBuilder_.dispose(); + answerBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Assist answer resource object containing parts of the assistant's final
            +     * answer for the user's query.
            +     *
            +     * Not present if the current response doesn't add anything to previously
            +     * sent
            +     * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies].
            +     *
            +     * Observe
            +     * [AssistAnswer.state][google.cloud.discoveryengine.v1beta.AssistAnswer.state]
            +     * to see if more parts are to be expected. While the state is `IN_PROGRESS`,
            +     * the
            +     * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies]
            +     * field in each response will contain replies (reply fragments) to be
            +     * appended to the ones received in previous responses.
            +     * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +     * won't be filled.
            +     *
            +     * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
            +     * is the last response and
            +     * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +     * will have a value.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer answer = 1; + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswer.Builder getAnswerBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAnswerFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Assist answer resource object containing parts of the assistant's final
            +     * answer for the user's query.
            +     *
            +     * Not present if the current response doesn't add anything to previously
            +     * sent
            +     * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies].
            +     *
            +     * Observe
            +     * [AssistAnswer.state][google.cloud.discoveryengine.v1beta.AssistAnswer.state]
            +     * to see if more parts are to be expected. While the state is `IN_PROGRESS`,
            +     * the
            +     * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies]
            +     * field in each response will contain replies (reply fragments) to be
            +     * appended to the ones received in previous responses.
            +     * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +     * won't be filled.
            +     *
            +     * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
            +     * is the last response and
            +     * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +     * will have a value.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer answer = 1; + */ + public com.google.cloud.discoveryengine.v1beta.AssistAnswerOrBuilder getAnswerOrBuilder() { + if (answerBuilder_ != null) { + return answerBuilder_.getMessageOrBuilder(); + } else { + return answer_ == null + ? com.google.cloud.discoveryengine.v1beta.AssistAnswer.getDefaultInstance() + : answer_; + } + } + + /** + * + * + *
            +     * Assist answer resource object containing parts of the assistant's final
            +     * answer for the user's query.
            +     *
            +     * Not present if the current response doesn't add anything to previously
            +     * sent
            +     * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies].
            +     *
            +     * Observe
            +     * [AssistAnswer.state][google.cloud.discoveryengine.v1beta.AssistAnswer.state]
            +     * to see if more parts are to be expected. While the state is `IN_PROGRESS`,
            +     * the
            +     * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies]
            +     * field in each response will contain replies (reply fragments) to be
            +     * appended to the ones received in previous responses.
            +     * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +     * won't be filled.
            +     *
            +     * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
            +     * is the last response and
            +     * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +     * will have a value.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer answer = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswerOrBuilder> + internalGetAnswerFieldBuilder() { + if (answerBuilder_ == null) { + answerBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AssistAnswer, + com.google.cloud.discoveryengine.v1beta.AssistAnswer.Builder, + com.google.cloud.discoveryengine.v1beta.AssistAnswerOrBuilder>( + getAnswer(), getParentForChildren(), isClean()); + answer_ = null; + } + return answerBuilder_; + } + + private com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo sessionInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfoOrBuilder> + sessionInfoBuilder_; + + /** + * + * + *
            +     * Session information. Only included in the final StreamAssistResponse of the
            +     * response stream.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo session_info = 2; + * + * + * @return Whether the sessionInfo field is set. + */ + public boolean hasSessionInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Session information. Only included in the final StreamAssistResponse of the
            +     * response stream.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo session_info = 2; + * + * + * @return The sessionInfo. + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + getSessionInfo() { + if (sessionInfoBuilder_ == null) { + return sessionInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + .getDefaultInstance() + : sessionInfo_; + } else { + return sessionInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Session information. Only included in the final StreamAssistResponse of the
            +     * response stream.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo session_info = 2; + * + */ + public Builder setSessionInfo( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo value) { + if (sessionInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sessionInfo_ = value; + } else { + sessionInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Session information. Only included in the final StreamAssistResponse of the
            +     * response stream.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo session_info = 2; + * + */ + public Builder setSessionInfo( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo.Builder + builderForValue) { + if (sessionInfoBuilder_ == null) { + sessionInfo_ = builderForValue.build(); + } else { + sessionInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Session information. Only included in the final StreamAssistResponse of the
            +     * response stream.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo session_info = 2; + * + */ + public Builder mergeSessionInfo( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo value) { + if (sessionInfoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && sessionInfo_ != null + && sessionInfo_ + != com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + .getDefaultInstance()) { + getSessionInfoBuilder().mergeFrom(value); + } else { + sessionInfo_ = value; + } + } else { + sessionInfoBuilder_.mergeFrom(value); + } + if (sessionInfo_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Session information. Only included in the final StreamAssistResponse of the
            +     * response stream.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo session_info = 2; + * + */ + public Builder clearSessionInfo() { + bitField0_ = (bitField0_ & ~0x00000002); + sessionInfo_ = null; + if (sessionInfoBuilder_ != null) { + sessionInfoBuilder_.dispose(); + sessionInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Session information. Only included in the final StreamAssistResponse of the
            +     * response stream.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo session_info = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo.Builder + getSessionInfoBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSessionInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Session information. Only included in the final StreamAssistResponse of the
            +     * response stream.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo session_info = 2; + * + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfoOrBuilder + getSessionInfoOrBuilder() { + if (sessionInfoBuilder_ != null) { + return sessionInfoBuilder_.getMessageOrBuilder(); + } else { + return sessionInfo_ == null + ? com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo + .getDefaultInstance() + : sessionInfo_; + } + } + + /** + * + * + *
            +     * Session information. Only included in the final StreamAssistResponse of the
            +     * response stream.
            +     * 
            + * + * .google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo session_info = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfoOrBuilder> + internalGetSessionInfoFieldBuilder() { + if (sessionInfoBuilder_ == null) { + sessionInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfoOrBuilder>( + getSessionInfo(), getParentForChildren(), isClean()); + sessionInfo_ = null; + } + return sessionInfoBuilder_; + } + + private java.lang.Object assistToken_ = ""; + + /** + * + * + *
            +     * A global unique ID that identifies the current pair of request and stream
            +     * of responses. Used for feedback and support.
            +     * 
            + * + * string assist_token = 4; + * + * @return The assistToken. + */ + public java.lang.String getAssistToken() { + java.lang.Object ref = assistToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A global unique ID that identifies the current pair of request and stream
            +     * of responses. Used for feedback and support.
            +     * 
            + * + * string assist_token = 4; + * + * @return The bytes for assistToken. + */ + public com.google.protobuf.ByteString getAssistTokenBytes() { + java.lang.Object ref = assistToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A global unique ID that identifies the current pair of request and stream
            +     * of responses. Used for feedback and support.
            +     * 
            + * + * string assist_token = 4; + * + * @param value The assistToken to set. + * @return This builder for chaining. + */ + public Builder setAssistToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assistToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A global unique ID that identifies the current pair of request and stream
            +     * of responses. Used for feedback and support.
            +     * 
            + * + * string assist_token = 4; + * + * @return This builder for chaining. + */ + public Builder clearAssistToken() { + assistToken_ = getDefaultInstance().getAssistToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A global unique ID that identifies the current pair of request and stream
            +     * of responses. Used for feedback and support.
            +     * 
            + * + * string assist_token = 4; + * + * @param value The bytes for assistToken to set. + * @return This builder for chaining. + */ + public Builder setAssistTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assistToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList invocationTools_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureInvocationToolsIsMutable() { + if (!invocationTools_.isModifiable()) { + invocationTools_ = new com.google.protobuf.LazyStringArrayList(invocationTools_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
            +     * The tool names of the tools that were invoked.
            +     * 
            + * + * repeated string invocation_tools = 8; + * + * @return A list containing the invocationTools. + */ + public com.google.protobuf.ProtocolStringList getInvocationToolsList() { + invocationTools_.makeImmutable(); + return invocationTools_; + } + + /** + * + * + *
            +     * The tool names of the tools that were invoked.
            +     * 
            + * + * repeated string invocation_tools = 8; + * + * @return The count of invocationTools. + */ + public int getInvocationToolsCount() { + return invocationTools_.size(); + } + + /** + * + * + *
            +     * The tool names of the tools that were invoked.
            +     * 
            + * + * repeated string invocation_tools = 8; + * + * @param index The index of the element to return. + * @return The invocationTools at the given index. + */ + public java.lang.String getInvocationTools(int index) { + return invocationTools_.get(index); + } + + /** + * + * + *
            +     * The tool names of the tools that were invoked.
            +     * 
            + * + * repeated string invocation_tools = 8; + * + * @param index The index of the value to return. + * @return The bytes of the invocationTools at the given index. + */ + public com.google.protobuf.ByteString getInvocationToolsBytes(int index) { + return invocationTools_.getByteString(index); + } + + /** + * + * + *
            +     * The tool names of the tools that were invoked.
            +     * 
            + * + * repeated string invocation_tools = 8; + * + * @param index The index to set the value at. + * @param value The invocationTools to set. + * @return This builder for chaining. + */ + public Builder setInvocationTools(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvocationToolsIsMutable(); + invocationTools_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The tool names of the tools that were invoked.
            +     * 
            + * + * repeated string invocation_tools = 8; + * + * @param value The invocationTools to add. + * @return This builder for chaining. + */ + public Builder addInvocationTools(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvocationToolsIsMutable(); + invocationTools_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The tool names of the tools that were invoked.
            +     * 
            + * + * repeated string invocation_tools = 8; + * + * @param values The invocationTools to add. + * @return This builder for chaining. + */ + public Builder addAllInvocationTools(java.lang.Iterable values) { + ensureInvocationToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, invocationTools_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The tool names of the tools that were invoked.
            +     * 
            + * + * repeated string invocation_tools = 8; + * + * @return This builder for chaining. + */ + public Builder clearInvocationTools() { + invocationTools_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The tool names of the tools that were invoked.
            +     * 
            + * + * repeated string invocation_tools = 8; + * + * @param value The bytes of the invocationTools to add. + * @return This builder for chaining. + */ + public Builder addInvocationToolsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureInvocationToolsIsMutable(); + invocationTools_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill> + invokedSkills_ = java.util.Collections.emptyList(); + + private void ensureInvokedSkillsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + invokedSkills_ = + new java.util.ArrayList< + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill>( + invokedSkills_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkillOrBuilder> + invokedSkillsBuilder_; + + /** + * + * + *
            +     * The skills executed during the turn.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public java.util.List + getInvokedSkillsList() { + if (invokedSkillsBuilder_ == null) { + return java.util.Collections.unmodifiableList(invokedSkills_); + } else { + return invokedSkillsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * The skills executed during the turn.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public int getInvokedSkillsCount() { + if (invokedSkillsBuilder_ == null) { + return invokedSkills_.size(); + } else { + return invokedSkillsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * The skills executed during the turn.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + getInvokedSkills(int index) { + if (invokedSkillsBuilder_ == null) { + return invokedSkills_.get(index); + } else { + return invokedSkillsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * The skills executed during the turn.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public Builder setInvokedSkills( + int index, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill value) { + if (invokedSkillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvokedSkillsIsMutable(); + invokedSkills_.set(index, value); + onChanged(); + } else { + invokedSkillsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The skills executed during the turn.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public Builder setInvokedSkills( + int index, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill.Builder + builderForValue) { + if (invokedSkillsBuilder_ == null) { + ensureInvokedSkillsIsMutable(); + invokedSkills_.set(index, builderForValue.build()); + onChanged(); + } else { + invokedSkillsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The skills executed during the turn.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public Builder addInvokedSkills( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill value) { + if (invokedSkillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvokedSkillsIsMutable(); + invokedSkills_.add(value); + onChanged(); + } else { + invokedSkillsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * The skills executed during the turn.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public Builder addInvokedSkills( + int index, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill value) { + if (invokedSkillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInvokedSkillsIsMutable(); + invokedSkills_.add(index, value); + onChanged(); + } else { + invokedSkillsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The skills executed during the turn.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public Builder addInvokedSkills( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill.Builder + builderForValue) { + if (invokedSkillsBuilder_ == null) { + ensureInvokedSkillsIsMutable(); + invokedSkills_.add(builderForValue.build()); + onChanged(); + } else { + invokedSkillsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The skills executed during the turn.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public Builder addInvokedSkills( + int index, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill.Builder + builderForValue) { + if (invokedSkillsBuilder_ == null) { + ensureInvokedSkillsIsMutable(); + invokedSkills_.add(index, builderForValue.build()); + onChanged(); + } else { + invokedSkillsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The skills executed during the turn.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public Builder addAllInvokedSkills( + java.lang.Iterable< + ? extends com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill> + values) { + if (invokedSkillsBuilder_ == null) { + ensureInvokedSkillsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, invokedSkills_); + onChanged(); + } else { + invokedSkillsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * The skills executed during the turn.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public Builder clearInvokedSkills() { + if (invokedSkillsBuilder_ == null) { + invokedSkills_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + invokedSkillsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The skills executed during the turn.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public Builder removeInvokedSkills(int index) { + if (invokedSkillsBuilder_ == null) { + ensureInvokedSkillsIsMutable(); + invokedSkills_.remove(index); + onChanged(); + } else { + invokedSkillsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * The skills executed during the turn.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill.Builder + getInvokedSkillsBuilder(int index) { + return internalGetInvokedSkillsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * The skills executed during the turn.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkillOrBuilder + getInvokedSkillsOrBuilder(int index) { + if (invokedSkillsBuilder_ == null) { + return invokedSkills_.get(index); + } else { + return invokedSkillsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * The skills executed during the turn.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkillOrBuilder> + getInvokedSkillsOrBuilderList() { + if (invokedSkillsBuilder_ != null) { + return invokedSkillsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(invokedSkills_); + } + } + + /** + * + * + *
            +     * The skills executed during the turn.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill.Builder + addInvokedSkillsBuilder() { + return internalGetInvokedSkillsFieldBuilder() + .addBuilder( + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + .getDefaultInstance()); + } + + /** + * + * + *
            +     * The skills executed during the turn.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill.Builder + addInvokedSkillsBuilder(int index) { + return internalGetInvokedSkillsFieldBuilder() + .addBuilder( + index, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill + .getDefaultInstance()); + } + + /** + * + * + *
            +     * The skills executed during the turn.
            +     * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + public java.util.List< + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill.Builder> + getInvokedSkillsBuilderList() { + return internalGetInvokedSkillsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkillOrBuilder> + internalGetInvokedSkillsFieldBuilder() { + if (invokedSkillsBuilder_ == null) { + invokedSkillsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill.Builder, + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkillOrBuilder>( + invokedSkills_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + invokedSkills_ = null; + } + return invokedSkillsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.StreamAssistResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.StreamAssistResponse) + private static final com.google.cloud.discoveryengine.v1beta.StreamAssistResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.StreamAssistResponse(); + } + + public static com.google.cloud.discoveryengine.v1beta.StreamAssistResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamAssistResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.StreamAssistResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/StreamAssistResponseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/StreamAssistResponseOrBuilder.java new file mode 100644 index 000000000000..0f25078c398f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/StreamAssistResponseOrBuilder.java @@ -0,0 +1,322 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface StreamAssistResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.StreamAssistResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Assist answer resource object containing parts of the assistant's final
            +   * answer for the user's query.
            +   *
            +   * Not present if the current response doesn't add anything to previously
            +   * sent
            +   * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies].
            +   *
            +   * Observe
            +   * [AssistAnswer.state][google.cloud.discoveryengine.v1beta.AssistAnswer.state]
            +   * to see if more parts are to be expected. While the state is `IN_PROGRESS`,
            +   * the
            +   * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies]
            +   * field in each response will contain replies (reply fragments) to be
            +   * appended to the ones received in previous responses.
            +   * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +   * won't be filled.
            +   *
            +   * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
            +   * is the last response and
            +   * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +   * will have a value.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer answer = 1; + * + * @return Whether the answer field is set. + */ + boolean hasAnswer(); + + /** + * + * + *
            +   * Assist answer resource object containing parts of the assistant's final
            +   * answer for the user's query.
            +   *
            +   * Not present if the current response doesn't add anything to previously
            +   * sent
            +   * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies].
            +   *
            +   * Observe
            +   * [AssistAnswer.state][google.cloud.discoveryengine.v1beta.AssistAnswer.state]
            +   * to see if more parts are to be expected. While the state is `IN_PROGRESS`,
            +   * the
            +   * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies]
            +   * field in each response will contain replies (reply fragments) to be
            +   * appended to the ones received in previous responses.
            +   * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +   * won't be filled.
            +   *
            +   * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
            +   * is the last response and
            +   * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +   * will have a value.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer answer = 1; + * + * @return The answer. + */ + com.google.cloud.discoveryengine.v1beta.AssistAnswer getAnswer(); + + /** + * + * + *
            +   * Assist answer resource object containing parts of the assistant's final
            +   * answer for the user's query.
            +   *
            +   * Not present if the current response doesn't add anything to previously
            +   * sent
            +   * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies].
            +   *
            +   * Observe
            +   * [AssistAnswer.state][google.cloud.discoveryengine.v1beta.AssistAnswer.state]
            +   * to see if more parts are to be expected. While the state is `IN_PROGRESS`,
            +   * the
            +   * [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies]
            +   * field in each response will contain replies (reply fragments) to be
            +   * appended to the ones received in previous responses.
            +   * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +   * won't be filled.
            +   *
            +   * If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response
            +   * is the last response and
            +   * [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name]
            +   * will have a value.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.AssistAnswer answer = 1; + */ + com.google.cloud.discoveryengine.v1beta.AssistAnswerOrBuilder getAnswerOrBuilder(); + + /** + * + * + *
            +   * Session information. Only included in the final StreamAssistResponse of the
            +   * response stream.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo session_info = 2; + * + * + * @return Whether the sessionInfo field is set. + */ + boolean hasSessionInfo(); + + /** + * + * + *
            +   * Session information. Only included in the final StreamAssistResponse of the
            +   * response stream.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo session_info = 2; + * + * + * @return The sessionInfo. + */ + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo getSessionInfo(); + + /** + * + * + *
            +   * Session information. Only included in the final StreamAssistResponse of the
            +   * response stream.
            +   * 
            + * + * .google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfo session_info = 2; + * + */ + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.SessionInfoOrBuilder + getSessionInfoOrBuilder(); + + /** + * + * + *
            +   * A global unique ID that identifies the current pair of request and stream
            +   * of responses. Used for feedback and support.
            +   * 
            + * + * string assist_token = 4; + * + * @return The assistToken. + */ + java.lang.String getAssistToken(); + + /** + * + * + *
            +   * A global unique ID that identifies the current pair of request and stream
            +   * of responses. Used for feedback and support.
            +   * 
            + * + * string assist_token = 4; + * + * @return The bytes for assistToken. + */ + com.google.protobuf.ByteString getAssistTokenBytes(); + + /** + * + * + *
            +   * The tool names of the tools that were invoked.
            +   * 
            + * + * repeated string invocation_tools = 8; + * + * @return A list containing the invocationTools. + */ + java.util.List getInvocationToolsList(); + + /** + * + * + *
            +   * The tool names of the tools that were invoked.
            +   * 
            + * + * repeated string invocation_tools = 8; + * + * @return The count of invocationTools. + */ + int getInvocationToolsCount(); + + /** + * + * + *
            +   * The tool names of the tools that were invoked.
            +   * 
            + * + * repeated string invocation_tools = 8; + * + * @param index The index of the element to return. + * @return The invocationTools at the given index. + */ + java.lang.String getInvocationTools(int index); + + /** + * + * + *
            +   * The tool names of the tools that were invoked.
            +   * 
            + * + * repeated string invocation_tools = 8; + * + * @param index The index of the value to return. + * @return The bytes of the invocationTools at the given index. + */ + com.google.protobuf.ByteString getInvocationToolsBytes(int index); + + /** + * + * + *
            +   * The skills executed during the turn.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + java.util.List + getInvokedSkillsList(); + + /** + * + * + *
            +   * The skills executed during the turn.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill getInvokedSkills( + int index); + + /** + * + * + *
            +   * The skills executed during the turn.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + int getInvokedSkillsCount(); + + /** + * + * + *
            +   * The skills executed during the turn.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + java.util.List< + ? extends + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkillOrBuilder> + getInvokedSkillsOrBuilderList(); + + /** + * + * + *
            +   * The skills executed during the turn.
            +   * 
            + * + * + * repeated .google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkill invoked_skills = 10; + * + */ + com.google.cloud.discoveryengine.v1beta.StreamAssistResponse.InvokedSkillOrBuilder + getInvokedSkillsOrBuilder(int index); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SubscriptionTerm.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SubscriptionTerm.java new file mode 100644 index 000000000000..150f8717b889 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SubscriptionTerm.java @@ -0,0 +1,239 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Subscription term.
            + * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.SubscriptionTerm} + */ +@com.google.protobuf.Generated +public enum SubscriptionTerm implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +   * Default value, do not use.
            +   * 
            + * + * SUBSCRIPTION_TERM_UNSPECIFIED = 0; + */ + SUBSCRIPTION_TERM_UNSPECIFIED(0), + /** + * + * + *
            +   * 1 month.
            +   * 
            + * + * SUBSCRIPTION_TERM_ONE_MONTH = 1; + */ + SUBSCRIPTION_TERM_ONE_MONTH(1), + /** + * + * + *
            +   * 1 year.
            +   * 
            + * + * SUBSCRIPTION_TERM_ONE_YEAR = 2; + */ + SUBSCRIPTION_TERM_ONE_YEAR(2), + /** + * + * + *
            +   * 3 years.
            +   * 
            + * + * SUBSCRIPTION_TERM_THREE_YEARS = 3; + */ + SUBSCRIPTION_TERM_THREE_YEARS(3), + /** + * + * + *
            +   * Custom term. Must set the end_date.
            +   * 
            + * + * SUBSCRIPTION_TERM_CUSTOM = 6; + */ + SUBSCRIPTION_TERM_CUSTOM(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SubscriptionTerm"); + } + + /** + * + * + *
            +   * Default value, do not use.
            +   * 
            + * + * SUBSCRIPTION_TERM_UNSPECIFIED = 0; + */ + public static final int SUBSCRIPTION_TERM_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +   * 1 month.
            +   * 
            + * + * SUBSCRIPTION_TERM_ONE_MONTH = 1; + */ + public static final int SUBSCRIPTION_TERM_ONE_MONTH_VALUE = 1; + + /** + * + * + *
            +   * 1 year.
            +   * 
            + * + * SUBSCRIPTION_TERM_ONE_YEAR = 2; + */ + public static final int SUBSCRIPTION_TERM_ONE_YEAR_VALUE = 2; + + /** + * + * + *
            +   * 3 years.
            +   * 
            + * + * SUBSCRIPTION_TERM_THREE_YEARS = 3; + */ + public static final int SUBSCRIPTION_TERM_THREE_YEARS_VALUE = 3; + + /** + * + * + *
            +   * Custom term. Must set the end_date.
            +   * 
            + * + * SUBSCRIPTION_TERM_CUSTOM = 6; + */ + public static final int SUBSCRIPTION_TERM_CUSTOM_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 SubscriptionTerm 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 SubscriptionTerm forNumber(int value) { + switch (value) { + case 0: + return SUBSCRIPTION_TERM_UNSPECIFIED; + case 1: + return SUBSCRIPTION_TERM_ONE_MONTH; + case 2: + return SUBSCRIPTION_TERM_ONE_YEAR; + case 3: + return SUBSCRIPTION_TERM_THREE_YEARS; + case 6: + return SUBSCRIPTION_TERM_CUSTOM; + 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 SubscriptionTerm findValueByNumber(int number) { + return SubscriptionTerm.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto.getDescriptor() + .getEnumTypes() + .get(6); + } + + private static final SubscriptionTerm[] VALUES = values(); + + public static SubscriptionTerm 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 SubscriptionTerm(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SubscriptionTerm) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SubscriptionTier.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SubscriptionTier.java new file mode 100644 index 000000000000..9ea0669aba1f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/SubscriptionTier.java @@ -0,0 +1,450 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Subscription tier information.
            + * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.SubscriptionTier} + */ +@com.google.protobuf.Generated +public enum SubscriptionTier implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +   * Default value.
            +   * 
            + * + * SUBSCRIPTION_TIER_UNSPECIFIED = 0; + */ + SUBSCRIPTION_TIER_UNSPECIFIED(0), + /** + * + * + *
            +   * Search tier.
            +   * Search tier can access Vertex AI Search features and NotebookLM features.
            +   * 
            + * + * SUBSCRIPTION_TIER_SEARCH = 1; + */ + SUBSCRIPTION_TIER_SEARCH(1), + /** + * + * + *
            +   * Gemini Enterprise Plus tier.
            +   * 
            + * + * SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT = 2; + */ + SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT(2), + /** + * + * + *
            +   * NotebookLM tier.
            +   * NotebookLM is a subscription tier can only access NotebookLM features.
            +   * 
            + * + * SUBSCRIPTION_TIER_NOTEBOOK_LM = 3; + */ + SUBSCRIPTION_TIER_NOTEBOOK_LM(3), + /** + * + * + *
            +   * Gemini Frontline worker tier.
            +   * 
            + * + * SUBSCRIPTION_TIER_FRONTLINE_WORKER = 4; + */ + SUBSCRIPTION_TIER_FRONTLINE_WORKER(4), + /** + * + * + *
            +   * Gemini Business Starter tier.
            +   * 
            + * + * SUBSCRIPTION_TIER_AGENTSPACE_STARTER = 10; + */ + SUBSCRIPTION_TIER_AGENTSPACE_STARTER(10), + /** + * + * + *
            +   * Gemini Business tier.
            +   * 
            + * + * SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS = 6; + */ + SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS(6), + /** + * + * + *
            +   * Gemini Enterprise Standard tier.
            +   * 
            + * + * SUBSCRIPTION_TIER_ENTERPRISE = 7; + */ + SUBSCRIPTION_TIER_ENTERPRISE(7), + /** + * + * + *
            +   * Gemini Enterprise Standard tier for emerging markets.
            +   * 
            + * + * SUBSCRIPTION_TIER_ENTERPRISE_EMERGING = 15; + */ + SUBSCRIPTION_TIER_ENTERPRISE_EMERGING(15), + /** + * + * + *
            +   * Gemini Enterprise EDU tier.
            +   * 
            + * + * SUBSCRIPTION_TIER_EDU = 8; + */ + SUBSCRIPTION_TIER_EDU(8), + /** + * + * + *
            +   * Gemini Enterprise EDU Pro tier.
            +   * 
            + * + * SUBSCRIPTION_TIER_EDU_PRO = 9; + */ + SUBSCRIPTION_TIER_EDU_PRO(9), + /** + * + * + *
            +   * Gemini Enterprise EDU tier for emerging market only.
            +   * 
            + * + * SUBSCRIPTION_TIER_EDU_EMERGING = 11; + */ + SUBSCRIPTION_TIER_EDU_EMERGING(11), + /** + * + * + *
            +   * Gemini Enterprise EDU Pro tier for emerging market.
            +   * 
            + * + * SUBSCRIPTION_TIER_EDU_PRO_EMERGING = 12; + */ + SUBSCRIPTION_TIER_EDU_PRO_EMERGING(12), + /** + * + * + *
            +   * Gemini Frontline Starter tier.
            +   * 
            + * + * SUBSCRIPTION_TIER_FRONTLINE_STARTER = 13; + */ + SUBSCRIPTION_TIER_FRONTLINE_STARTER(13), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SubscriptionTier"); + } + + /** + * + * + *
            +   * Default value.
            +   * 
            + * + * SUBSCRIPTION_TIER_UNSPECIFIED = 0; + */ + public static final int SUBSCRIPTION_TIER_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +   * Search tier.
            +   * Search tier can access Vertex AI Search features and NotebookLM features.
            +   * 
            + * + * SUBSCRIPTION_TIER_SEARCH = 1; + */ + public static final int SUBSCRIPTION_TIER_SEARCH_VALUE = 1; + + /** + * + * + *
            +   * Gemini Enterprise Plus tier.
            +   * 
            + * + * SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT = 2; + */ + public static final int SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT_VALUE = 2; + + /** + * + * + *
            +   * NotebookLM tier.
            +   * NotebookLM is a subscription tier can only access NotebookLM features.
            +   * 
            + * + * SUBSCRIPTION_TIER_NOTEBOOK_LM = 3; + */ + public static final int SUBSCRIPTION_TIER_NOTEBOOK_LM_VALUE = 3; + + /** + * + * + *
            +   * Gemini Frontline worker tier.
            +   * 
            + * + * SUBSCRIPTION_TIER_FRONTLINE_WORKER = 4; + */ + public static final int SUBSCRIPTION_TIER_FRONTLINE_WORKER_VALUE = 4; + + /** + * + * + *
            +   * Gemini Business Starter tier.
            +   * 
            + * + * SUBSCRIPTION_TIER_AGENTSPACE_STARTER = 10; + */ + public static final int SUBSCRIPTION_TIER_AGENTSPACE_STARTER_VALUE = 10; + + /** + * + * + *
            +   * Gemini Business tier.
            +   * 
            + * + * SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS = 6; + */ + public static final int SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS_VALUE = 6; + + /** + * + * + *
            +   * Gemini Enterprise Standard tier.
            +   * 
            + * + * SUBSCRIPTION_TIER_ENTERPRISE = 7; + */ + public static final int SUBSCRIPTION_TIER_ENTERPRISE_VALUE = 7; + + /** + * + * + *
            +   * Gemini Enterprise Standard tier for emerging markets.
            +   * 
            + * + * SUBSCRIPTION_TIER_ENTERPRISE_EMERGING = 15; + */ + public static final int SUBSCRIPTION_TIER_ENTERPRISE_EMERGING_VALUE = 15; + + /** + * + * + *
            +   * Gemini Enterprise EDU tier.
            +   * 
            + * + * SUBSCRIPTION_TIER_EDU = 8; + */ + public static final int SUBSCRIPTION_TIER_EDU_VALUE = 8; + + /** + * + * + *
            +   * Gemini Enterprise EDU Pro tier.
            +   * 
            + * + * SUBSCRIPTION_TIER_EDU_PRO = 9; + */ + public static final int SUBSCRIPTION_TIER_EDU_PRO_VALUE = 9; + + /** + * + * + *
            +   * Gemini Enterprise EDU tier for emerging market only.
            +   * 
            + * + * SUBSCRIPTION_TIER_EDU_EMERGING = 11; + */ + public static final int SUBSCRIPTION_TIER_EDU_EMERGING_VALUE = 11; + + /** + * + * + *
            +   * Gemini Enterprise EDU Pro tier for emerging market.
            +   * 
            + * + * SUBSCRIPTION_TIER_EDU_PRO_EMERGING = 12; + */ + public static final int SUBSCRIPTION_TIER_EDU_PRO_EMERGING_VALUE = 12; + + /** + * + * + *
            +   * Gemini Frontline Starter tier.
            +   * 
            + * + * SUBSCRIPTION_TIER_FRONTLINE_STARTER = 13; + */ + public static final int SUBSCRIPTION_TIER_FRONTLINE_STARTER_VALUE = 13; + + 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 SubscriptionTier 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 SubscriptionTier forNumber(int value) { + switch (value) { + case 0: + return SUBSCRIPTION_TIER_UNSPECIFIED; + case 1: + return SUBSCRIPTION_TIER_SEARCH; + case 2: + return SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT; + case 3: + return SUBSCRIPTION_TIER_NOTEBOOK_LM; + case 4: + return SUBSCRIPTION_TIER_FRONTLINE_WORKER; + case 10: + return SUBSCRIPTION_TIER_AGENTSPACE_STARTER; + case 6: + return SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS; + case 7: + return SUBSCRIPTION_TIER_ENTERPRISE; + case 15: + return SUBSCRIPTION_TIER_ENTERPRISE_EMERGING; + case 8: + return SUBSCRIPTION_TIER_EDU; + case 9: + return SUBSCRIPTION_TIER_EDU_PRO; + case 11: + return SUBSCRIPTION_TIER_EDU_EMERGING; + case 12: + return SUBSCRIPTION_TIER_EDU_PRO_EMERGING; + case 13: + return SUBSCRIPTION_TIER_FRONTLINE_STARTER; + 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 SubscriptionTier findValueByNumber(int number) { + return SubscriptionTier.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto.getDescriptor() + .getEnumTypes() + .get(5); + } + + private static final SubscriptionTier[] VALUES = values(); + + public static SubscriptionTier 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 SubscriptionTier(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.SubscriptionTier) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TargetSite.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TargetSite.java index 496ac1429756..e26973f17b75 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TargetSite.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TargetSite.java @@ -312,6 +312,26 @@ public enum IndexingStatus implements com.google.protobuf.ProtocolMessageEnum { * DELETING = 4; */ DELETING(4), + /** + * + * + *
            +     * The target site change is pending but cancellable.
            +     * 
            + * + * CANCELLABLE = 5; + */ + CANCELLABLE(5), + /** + * + * + *
            +     * The target site change is cancelled.
            +     * 
            + * + * CANCELLED = 6; + */ + CANCELLED(6), UNRECOGNIZED(-1), ; @@ -384,6 +404,28 @@ public enum IndexingStatus implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DELETING_VALUE = 4; + /** + * + * + *
            +     * The target site change is pending but cancellable.
            +     * 
            + * + * CANCELLABLE = 5; + */ + public static final int CANCELLABLE_VALUE = 5; + + /** + * + * + *
            +     * The target site change is cancelled.
            +     * 
            + * + * CANCELLED = 6; + */ + public static final int CANCELLED_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -418,6 +460,10 @@ public static IndexingStatus forNumber(int value) { return SUCCEEDED; case 4: return DELETING; + case 5: + return CANCELLABLE; + case 6: + return CANCELLED; default: return null; } @@ -2078,15 +2124,15 @@ public com.google.cloud.discoveryengine.v1beta.TargetSite.Type getType() { * * *
            -   * Input only. If set to false, a uri_pattern is generated to include all
            -   * pages whose address contains the provided_uri_pattern. If set to true, an
            +   * Immutable. If set to false, a uri_pattern is generated to include all pages
            +   * whose address contains the provided_uri_pattern. If set to true, an
                * uri_pattern is generated to try to be an exact match of the
                * provided_uri_pattern or just the specific page if the provided_uri_pattern
                * is a specific one. provided_uri_pattern is always normalized to
                * generate the URI pattern to be used by the search engine.
                * 
            * - * bool exact_match = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * bool exact_match = 6 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The exactMatch. */ @@ -3345,15 +3391,15 @@ public Builder clearType() { * * *
            -     * Input only. If set to false, a uri_pattern is generated to include all
            -     * pages whose address contains the provided_uri_pattern. If set to true, an
            +     * Immutable. If set to false, a uri_pattern is generated to include all pages
            +     * whose address contains the provided_uri_pattern. If set to true, an
                  * uri_pattern is generated to try to be an exact match of the
                  * provided_uri_pattern or just the specific page if the provided_uri_pattern
                  * is a specific one. provided_uri_pattern is always normalized to
                  * generate the URI pattern to be used by the search engine.
                  * 
            * - * bool exact_match = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * bool exact_match = 6 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The exactMatch. */ @@ -3366,15 +3412,15 @@ public boolean getExactMatch() { * * *
            -     * Input only. If set to false, a uri_pattern is generated to include all
            -     * pages whose address contains the provided_uri_pattern. If set to true, an
            +     * Immutable. If set to false, a uri_pattern is generated to include all pages
            +     * whose address contains the provided_uri_pattern. If set to true, an
                  * uri_pattern is generated to try to be an exact match of the
                  * provided_uri_pattern or just the specific page if the provided_uri_pattern
                  * is a specific one. provided_uri_pattern is always normalized to
                  * generate the URI pattern to be used by the search engine.
                  * 
            * - * bool exact_match = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * bool exact_match = 6 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The exactMatch to set. * @return This builder for chaining. @@ -3391,15 +3437,15 @@ public Builder setExactMatch(boolean value) { * * *
            -     * Input only. If set to false, a uri_pattern is generated to include all
            -     * pages whose address contains the provided_uri_pattern. If set to true, an
            +     * Immutable. If set to false, a uri_pattern is generated to include all pages
            +     * whose address contains the provided_uri_pattern. If set to true, an
                  * uri_pattern is generated to try to be an exact match of the
                  * provided_uri_pattern or just the specific page if the provided_uri_pattern
                  * is a specific one. provided_uri_pattern is always normalized to
                  * generate the URI pattern to be used by the search engine.
                  * 
            * - * bool exact_match = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * bool exact_match = 6 [(.google.api.field_behavior) = IMMUTABLE]; * * @return This builder for chaining. */ diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TargetSiteOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TargetSiteOrBuilder.java index d7b1af637a60..abc9be149ebf 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TargetSiteOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/TargetSiteOrBuilder.java @@ -120,15 +120,15 @@ public interface TargetSiteOrBuilder * * *
            -   * Input only. If set to false, a uri_pattern is generated to include all
            -   * pages whose address contains the provided_uri_pattern. If set to true, an
            +   * Immutable. If set to false, a uri_pattern is generated to include all pages
            +   * whose address contains the provided_uri_pattern. If set to true, an
                * uri_pattern is generated to try to be an exact match of the
                * provided_uri_pattern or just the specific page if the provided_uri_pattern
                * is a specific one. provided_uri_pattern is always normalized to
                * generate the URI pattern to be used by the search engine.
                * 
            * - * bool exact_match = 6 [(.google.api.field_behavior) = INPUT_ONLY]; + * bool exact_match = 6 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The exactMatch. */ diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateAclConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateAclConfigRequest.java new file mode 100644 index 000000000000..528d867f8356 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateAclConfigRequest.java @@ -0,0 +1,659 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/acl_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for UpdateAclConfig method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest} + */ +@com.google.protobuf.Generated +public final class UpdateAclConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest) + UpdateAclConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateAclConfigRequest"); + } + + // Use UpdateAclConfigRequest.newBuilder() to construct. + private UpdateAclConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateAclConfigRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateAclConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateAclConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int ACL_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.AclConfig aclConfig_; + + /** + * + * .google.cloud.discoveryengine.v1beta.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclConfig field is set. + */ + @java.lang.Override + public boolean hasAclConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * .google.cloud.discoveryengine.v1beta.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AclConfig getAclConfig() { + return aclConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.AclConfig.getDefaultInstance() + : aclConfig_; + } + + /** + * + * .google.cloud.discoveryengine.v1beta.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AclConfigOrBuilder getAclConfigOrBuilder() { + return aclConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.AclConfig.getDefaultInstance() + : aclConfig_; + } + + 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, getAclConfig()); + } + 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, getAclConfig()); + } + 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.v1beta.UpdateAclConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest other = + (com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest) obj; + + if (hasAclConfig() != other.hasAclConfig()) return false; + if (hasAclConfig()) { + if (!getAclConfig().equals(other.getAclConfig())) 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 (hasAclConfig()) { + hash = (37 * hash) + ACL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAclConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest 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.v1beta.UpdateAclConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest parseFrom( + 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.v1beta.UpdateAclConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for UpdateAclConfig method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest) + com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateAclConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateAclConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAclConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + aclConfig_ = null; + if (aclConfigBuilder_ != null) { + aclConfigBuilder_.dispose(); + aclConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AclConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateAclConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest build() { + com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest result = + new com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.aclConfig_ = aclConfigBuilder_ == null ? aclConfig_ : aclConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest.getDefaultInstance()) + return this; + if (other.hasAclConfig()) { + mergeAclConfig(other.getAclConfig()); + } + 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( + internalGetAclConfigFieldBuilder().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.v1beta.AclConfig aclConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AclConfig, + com.google.cloud.discoveryengine.v1beta.AclConfig.Builder, + com.google.cloud.discoveryengine.v1beta.AclConfigOrBuilder> + aclConfigBuilder_; + + /** + * + * .google.cloud.discoveryengine.v1beta.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclConfig field is set. + */ + public boolean hasAclConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * .google.cloud.discoveryengine.v1beta.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclConfig. + */ + public com.google.cloud.discoveryengine.v1beta.AclConfig getAclConfig() { + if (aclConfigBuilder_ == null) { + return aclConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.AclConfig.getDefaultInstance() + : aclConfig_; + } else { + return aclConfigBuilder_.getMessage(); + } + } + + /** + * + * .google.cloud.discoveryengine.v1beta.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclConfig(com.google.cloud.discoveryengine.v1beta.AclConfig value) { + if (aclConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aclConfig_ = value; + } else { + aclConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * .google.cloud.discoveryengine.v1beta.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclConfig( + com.google.cloud.discoveryengine.v1beta.AclConfig.Builder builderForValue) { + if (aclConfigBuilder_ == null) { + aclConfig_ = builderForValue.build(); + } else { + aclConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * .google.cloud.discoveryengine.v1beta.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAclConfig(com.google.cloud.discoveryengine.v1beta.AclConfig value) { + if (aclConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && aclConfig_ != null + && aclConfig_ + != com.google.cloud.discoveryengine.v1beta.AclConfig.getDefaultInstance()) { + getAclConfigBuilder().mergeFrom(value); + } else { + aclConfig_ = value; + } + } else { + aclConfigBuilder_.mergeFrom(value); + } + if (aclConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * .google.cloud.discoveryengine.v1beta.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAclConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + aclConfig_ = null; + if (aclConfigBuilder_ != null) { + aclConfigBuilder_.dispose(); + aclConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * .google.cloud.discoveryengine.v1beta.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AclConfig.Builder getAclConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAclConfigFieldBuilder().getBuilder(); + } + + /** + * + * .google.cloud.discoveryengine.v1beta.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AclConfigOrBuilder getAclConfigOrBuilder() { + if (aclConfigBuilder_ != null) { + return aclConfigBuilder_.getMessageOrBuilder(); + } else { + return aclConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.AclConfig.getDefaultInstance() + : aclConfig_; + } + } + + /** + * + * .google.cloud.discoveryengine.v1beta.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AclConfig, + com.google.cloud.discoveryengine.v1beta.AclConfig.Builder, + com.google.cloud.discoveryengine.v1beta.AclConfigOrBuilder> + internalGetAclConfigFieldBuilder() { + if (aclConfigBuilder_ == null) { + aclConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.AclConfig, + com.google.cloud.discoveryengine.v1beta.AclConfig.Builder, + com.google.cloud.discoveryengine.v1beta.AclConfigOrBuilder>( + getAclConfig(), getParentForChildren(), isClean()); + aclConfig_ = null; + } + return aclConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest) + private static final com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAclConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.UpdateAclConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateAclConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateAclConfigRequestOrBuilder.java new file mode 100644 index 000000000000..a44918d03a08 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateAclConfigRequestOrBuilder.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/acl_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface UpdateAclConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * .google.cloud.discoveryengine.v1beta.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclConfig field is set. + */ + boolean hasAclConfig(); + + /** + * + * .google.cloud.discoveryengine.v1beta.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclConfig. + */ + com.google.cloud.discoveryengine.v1beta.AclConfig getAclConfig(); + + /** + * + * .google.cloud.discoveryengine.v1beta.AclConfig acl_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.AclConfigOrBuilder getAclConfigOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateAssistantRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateAssistantRequest.java new file mode 100644 index 000000000000..c253b838ff5d --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateAssistantRequest.java @@ -0,0 +1,1180 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for the
            + * [AssistantService.UpdateAssistant][google.cloud.discoveryengine.v1beta.AssistantService.UpdateAssistant]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateAssistantRequest} + */ +@com.google.protobuf.Generated +public final class UpdateAssistantRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.UpdateAssistantRequest) + UpdateAssistantRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateAssistantRequest"); + } + + // Use UpdateAssistantRequest.newBuilder() to construct. + private UpdateAssistantRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateAssistantRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest.class, + com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest.Builder.class); + } + + private int bitField0_; + public static final int ASSISTANT_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.Assistant assistant_; + + /** + * + * + *
            +   * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +   * update.
            +   *
            +   * The [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s `name`
            +   * field is used to identify the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   *
            +   * If the caller does not have permission to update the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +   * whether or not it exists, a PERMISSION_DENIED error is returned.
            +   *
            +   * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update
            +   * does not exist, a NOT_FOUND error is returned.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the assistant field is set. + */ + @java.lang.Override + public boolean hasAssistant() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +   * update.
            +   *
            +   * The [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s `name`
            +   * field is used to identify the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   *
            +   * If the caller does not have permission to update the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +   * whether or not it exists, a PERMISSION_DENIED error is returned.
            +   *
            +   * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update
            +   * does not exist, a NOT_FOUND error is returned.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The assistant. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Assistant getAssistant() { + return assistant_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.getDefaultInstance() + : assistant_; + } + + /** + * + * + *
            +   * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +   * update.
            +   *
            +   * The [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s `name`
            +   * field is used to identify the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   *
            +   * If the caller does not have permission to update the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +   * whether or not it exists, a PERMISSION_DENIED error is returned.
            +   *
            +   * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update
            +   * does not exist, a NOT_FOUND error is returned.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.AssistantOrBuilder getAssistantOrBuilder() { + return assistant_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.getDefaultInstance() + : assistant_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
            +   * The list of fields to update.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * The list of fields to update.
            +   * 
            + * + * .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 list of fields to update.
            +   * 
            + * + * .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, getAssistant()); + } + 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, getAssistant()); + } + 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.cloud.discoveryengine.v1beta.UpdateAssistantRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest other = + (com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest) obj; + + if (hasAssistant() != other.hasAssistant()) return false; + if (hasAssistant()) { + if (!getAssistant().equals(other.getAssistant())) 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 (hasAssistant()) { + hash = (37 * hash) + ASSISTANT_FIELD_NUMBER; + hash = (53 * hash) + getAssistant().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest 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.v1beta.UpdateAssistantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest parseFrom( + 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.v1beta.UpdateAssistantRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for the
            +   * [AssistantService.UpdateAssistant][google.cloud.discoveryengine.v1beta.AssistantService.UpdateAssistant]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateAssistantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.UpdateAssistantRequest) + com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest.class, + com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAssistantFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + assistant_ = null; + if (assistantBuilder_ != null) { + assistantBuilder_.dispose(); + assistantBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.AssistantServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateAssistantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest build() { + com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest result = + new com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.assistant_ = assistantBuilder_ == null ? assistant_ : assistantBuilder_.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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest.getDefaultInstance()) + return this; + if (other.hasAssistant()) { + mergeAssistant(other.getAssistant()); + } + 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( + internalGetAssistantFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1beta.Assistant assistant_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant, + com.google.cloud.discoveryengine.v1beta.Assistant.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantOrBuilder> + assistantBuilder_; + + /** + * + * + *
            +     * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +     * update.
            +     *
            +     * The [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s `name`
            +     * field is used to identify the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     *
            +     * If the caller does not have permission to update the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     *
            +     * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update
            +     * does not exist, a NOT_FOUND error is returned.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the assistant field is set. + */ + public boolean hasAssistant() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +     * update.
            +     *
            +     * The [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s `name`
            +     * field is used to identify the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     *
            +     * If the caller does not have permission to update the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     *
            +     * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update
            +     * does not exist, a NOT_FOUND error is returned.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The assistant. + */ + public com.google.cloud.discoveryengine.v1beta.Assistant getAssistant() { + if (assistantBuilder_ == null) { + return assistant_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.getDefaultInstance() + : assistant_; + } else { + return assistantBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +     * update.
            +     *
            +     * The [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s `name`
            +     * field is used to identify the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     *
            +     * If the caller does not have permission to update the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     *
            +     * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update
            +     * does not exist, a NOT_FOUND error is returned.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAssistant(com.google.cloud.discoveryengine.v1beta.Assistant value) { + if (assistantBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + assistant_ = value; + } else { + assistantBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +     * update.
            +     *
            +     * The [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s `name`
            +     * field is used to identify the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     *
            +     * If the caller does not have permission to update the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     *
            +     * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update
            +     * does not exist, a NOT_FOUND error is returned.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAssistant( + com.google.cloud.discoveryengine.v1beta.Assistant.Builder builderForValue) { + if (assistantBuilder_ == null) { + assistant_ = builderForValue.build(); + } else { + assistantBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +     * update.
            +     *
            +     * The [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s `name`
            +     * field is used to identify the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     *
            +     * If the caller does not have permission to update the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     *
            +     * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update
            +     * does not exist, a NOT_FOUND error is returned.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAssistant(com.google.cloud.discoveryengine.v1beta.Assistant value) { + if (assistantBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && assistant_ != null + && assistant_ + != com.google.cloud.discoveryengine.v1beta.Assistant.getDefaultInstance()) { + getAssistantBuilder().mergeFrom(value); + } else { + assistant_ = value; + } + } else { + assistantBuilder_.mergeFrom(value); + } + if (assistant_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +     * update.
            +     *
            +     * The [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s `name`
            +     * field is used to identify the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     *
            +     * If the caller does not have permission to update the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     *
            +     * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update
            +     * does not exist, a NOT_FOUND error is returned.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAssistant() { + bitField0_ = (bitField0_ & ~0x00000001); + assistant_ = null; + if (assistantBuilder_ != null) { + assistantBuilder_.dispose(); + assistantBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +     * update.
            +     *
            +     * The [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s `name`
            +     * field is used to identify the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     *
            +     * If the caller does not have permission to update the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     *
            +     * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update
            +     * does not exist, a NOT_FOUND error is returned.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Assistant.Builder getAssistantBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAssistantFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +     * update.
            +     *
            +     * The [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s `name`
            +     * field is used to identify the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     *
            +     * If the caller does not have permission to update the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     *
            +     * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update
            +     * does not exist, a NOT_FOUND error is returned.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.AssistantOrBuilder getAssistantOrBuilder() { + if (assistantBuilder_ != null) { + return assistantBuilder_.getMessageOrBuilder(); + } else { + return assistant_ == null + ? com.google.cloud.discoveryengine.v1beta.Assistant.getDefaultInstance() + : assistant_; + } + } + + /** + * + * + *
            +     * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +     * update.
            +     *
            +     * The [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s `name`
            +     * field is used to identify the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update.
            +     * Format:
            +     * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +     *
            +     * If the caller does not have permission to update the
            +     * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +     * whether or not it exists, a PERMISSION_DENIED error is returned.
            +     *
            +     * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update
            +     * does not exist, a NOT_FOUND error is returned.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant, + com.google.cloud.discoveryengine.v1beta.Assistant.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantOrBuilder> + internalGetAssistantFieldBuilder() { + if (assistantBuilder_ == null) { + assistantBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Assistant, + com.google.cloud.discoveryengine.v1beta.Assistant.Builder, + com.google.cloud.discoveryengine.v1beta.AssistantOrBuilder>( + getAssistant(), getParentForChildren(), isClean()); + assistant_ = null; + } + return assistantBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
            +     * The list of fields to update.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * The list of fields to update.
            +     * 
            + * + * .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 list of fields to update.
            +     * 
            + * + * .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 list of fields to update.
            +     * 
            + * + * .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 list of fields to update.
            +     * 
            + * + * .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 list of fields to update.
            +     * 
            + * + * .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 list of fields to update.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * The list of fields to update.
            +     * 
            + * + * .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 list of fields to update.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.UpdateAssistantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.UpdateAssistantRequest) + private static final com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAssistantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.UpdateAssistantRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateAssistantRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateAssistantRequestOrBuilder.java new file mode 100644 index 000000000000..a87e1413c621 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateAssistantRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface UpdateAssistantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.UpdateAssistantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +   * update.
            +   *
            +   * The [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s `name`
            +   * field is used to identify the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   *
            +   * If the caller does not have permission to update the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +   * whether or not it exists, a PERMISSION_DENIED error is returned.
            +   *
            +   * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update
            +   * does not exist, a NOT_FOUND error is returned.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the assistant field is set. + */ + boolean hasAssistant(); + + /** + * + * + *
            +   * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +   * update.
            +   *
            +   * The [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s `name`
            +   * field is used to identify the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   *
            +   * If the caller does not have permission to update the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +   * whether or not it exists, a PERMISSION_DENIED error is returned.
            +   *
            +   * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update
            +   * does not exist, a NOT_FOUND error is returned.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The assistant. + */ + com.google.cloud.discoveryengine.v1beta.Assistant getAssistant(); + + /** + * + * + *
            +   * Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to
            +   * update.
            +   *
            +   * The [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s `name`
            +   * field is used to identify the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update.
            +   * Format:
            +   * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}`
            +   *
            +   * If the caller does not have permission to update the
            +   * [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of
            +   * whether or not it exists, a PERMISSION_DENIED error is returned.
            +   *
            +   * If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update
            +   * does not exist, a NOT_FOUND error is returned.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Assistant assistant = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.AssistantOrBuilder getAssistantOrBuilder(); + + /** + * + * + *
            +   * The list of fields to update.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
            +   * The list of fields to update.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
            +   * The list of fields to update.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateCmekConfigMetadata.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateCmekConfigMetadata.java new file mode 100644 index 000000000000..e047d65a86d4 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateCmekConfigMetadata.java @@ -0,0 +1,997 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/cmek_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Metadata related to the progress of the
            + * [CmekConfigService.UpdateCmekConfig][google.cloud.discoveryengine.v1beta.CmekConfigService.UpdateCmekConfig]
            + * operation. This will be returned by the google.longrunning.Operation.metadata
            + * field.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata} + */ +@com.google.protobuf.Generated +public final class UpdateCmekConfigMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata) + UpdateCmekConfigMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateCmekConfigMetadata"); + } + + // Use UpdateCmekConfigMetadata.newBuilder() to construct. + private UpdateCmekConfigMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateCmekConfigMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateCmekConfigMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateCmekConfigMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata.class, + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + @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 = 2; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + @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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata other = + (com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata) obj; + + 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(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata 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.v1beta.UpdateCmekConfigMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata parseFrom( + 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.v1beta.UpdateCmekConfigMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Metadata related to the progress of the
            +   * [CmekConfigService.UpdateCmekConfig][google.cloud.discoveryengine.v1beta.CmekConfigService.UpdateCmekConfig]
            +   * operation. This will be returned by the google.longrunning.Operation.metadata
            +   * field.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata) + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateCmekConfigMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateCmekConfigMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata.class, + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateCmekConfigMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata build() { + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata buildPartial() { + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata result = + new com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata other) { + if (other + == com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata.getDefaultInstance()) + return this; + 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: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().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.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @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(); + } + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +     * Operation create time.
            +     * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @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(); + } + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
            +     * Operation last update time. If the operation is done, this is also the
            +     * finish time.
            +     * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata) + private static final com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata(); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCmekConfigMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.UpdateCmekConfigMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateCmekConfigMetadataOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateCmekConfigMetadataOrBuilder.java new file mode 100644 index 000000000000..3511965f9e10 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateCmekConfigMetadataOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/cmek_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface UpdateCmekConfigMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Operation create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Operation last update time. If the operation is done, this is also the
            +   * finish time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateCmekConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateCmekConfigRequest.java new file mode 100644 index 000000000000..2dc72537ebc5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateCmekConfigRequest.java @@ -0,0 +1,833 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/cmek_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for UpdateCmekConfig method.
            + * rpc.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest} + */ +@com.google.protobuf.Generated +public final class UpdateCmekConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest) + UpdateCmekConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateCmekConfigRequest"); + } + + // Use UpdateCmekConfigRequest.newBuilder() to construct. + private UpdateCmekConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateCmekConfigRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateCmekConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateCmekConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.CmekConfig config_; + + /** + * + * + *
            +   * Required. The CmekConfig resource.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The CmekConfig resource.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CmekConfig getConfig() { + return config_ == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance() + : config_; + } + + /** + * + * + *
            +   * Required. The CmekConfig resource.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder getConfigOrBuilder() { + return config_ == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance() + : config_; + } + + public static final int SET_DEFAULT_FIELD_NUMBER = 2; + private boolean setDefault_ = false; + + /** + * + * + *
            +   * Set the following CmekConfig as the default to be used for child
            +   * resources if one is not specified.
            +   * 
            + * + * bool set_default = 2; + * + * @return The setDefault. + */ + @java.lang.Override + public boolean getSetDefault() { + return setDefault_; + } + + 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, getConfig()); + } + if (setDefault_ != false) { + output.writeBool(2, setDefault_); + } + 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, getConfig()); + } + if (setDefault_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, setDefault_); + } + 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.v1beta.UpdateCmekConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest other = + (com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest) obj; + + if (hasConfig() != other.hasConfig()) return false; + if (hasConfig()) { + if (!getConfig().equals(other.getConfig())) return false; + } + if (getSetDefault() != other.getSetDefault()) 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 (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + hash = (37 * hash) + SET_DEFAULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSetDefault()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest 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.v1beta.UpdateCmekConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest parseFrom( + 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.v1beta.UpdateCmekConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for UpdateCmekConfig method.
            +   * rpc.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest) + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateCmekConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateCmekConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + setDefault_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CmekConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateCmekConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest build() { + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest result = + new com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.setDefault_ = setDefault_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest.getDefaultInstance()) + return this; + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + if (other.getSetDefault() != false) { + setSetDefault(other.getSetDefault()); + } + 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(internalGetConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + setDefault_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1beta.CmekConfig config_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.CmekConfig, + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder> + configBuilder_; + + /** + * + * + *
            +     * Required. The CmekConfig resource.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. The CmekConfig resource.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + public com.google.cloud.discoveryengine.v1beta.CmekConfig getConfig() { + if (configBuilder_ == null) { + return config_ == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance() + : config_; + } else { + return configBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The CmekConfig resource.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfig(com.google.cloud.discoveryengine.v1beta.CmekConfig value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + } else { + configBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The CmekConfig resource.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfig( + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The CmekConfig resource.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConfig(com.google.cloud.discoveryengine.v1beta.CmekConfig value) { + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && config_ != null + && config_ != com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); + } else { + config_ = value; + } + } else { + configBuilder_.mergeFrom(value); + } + if (config_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The CmekConfig resource.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The CmekConfig resource.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder getConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The CmekConfig resource.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null + ? com.google.cloud.discoveryengine.v1beta.CmekConfig.getDefaultInstance() + : config_; + } + } + + /** + * + * + *
            +     * Required. The CmekConfig resource.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.CmekConfig, + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder> + internalGetConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.CmekConfig, + com.google.cloud.discoveryengine.v1beta.CmekConfig.Builder, + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); + config_ = null; + } + return configBuilder_; + } + + private boolean setDefault_; + + /** + * + * + *
            +     * Set the following CmekConfig as the default to be used for child
            +     * resources if one is not specified.
            +     * 
            + * + * bool set_default = 2; + * + * @return The setDefault. + */ + @java.lang.Override + public boolean getSetDefault() { + return setDefault_; + } + + /** + * + * + *
            +     * Set the following CmekConfig as the default to be used for child
            +     * resources if one is not specified.
            +     * 
            + * + * bool set_default = 2; + * + * @param value The setDefault to set. + * @return This builder for chaining. + */ + public Builder setSetDefault(boolean value) { + + setDefault_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Set the following CmekConfig as the default to be used for child
            +     * resources if one is not specified.
            +     * 
            + * + * bool set_default = 2; + * + * @return This builder for chaining. + */ + public Builder clearSetDefault() { + bitField0_ = (bitField0_ & ~0x00000002); + setDefault_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest) + private static final com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCmekConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.UpdateCmekConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateCmekConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateCmekConfigRequestOrBuilder.java new file mode 100644 index 000000000000..dfbcaf9d033c --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateCmekConfigRequestOrBuilder.java @@ -0,0 +1,85 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/cmek_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface UpdateCmekConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The CmekConfig resource.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + + /** + * + * + *
            +   * Required. The CmekConfig resource.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + com.google.cloud.discoveryengine.v1beta.CmekConfig getConfig(); + + /** + * + * + *
            +   * Required. The CmekConfig resource.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.CmekConfig config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.CmekConfigOrBuilder getConfigOrBuilder(); + + /** + * + * + *
            +   * Set the following CmekConfig as the default to be used for child
            +   * resources if one is not specified.
            +   * 
            + * + * bool set_default = 2; + * + * @return The setDefault. + */ + boolean getSetDefault(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateLicenseConfigRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateLicenseConfigRequest.java new file mode 100644 index 000000000000..94b6a84c1a1f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateLicenseConfigRequest.java @@ -0,0 +1,1116 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for
            + * [LicenseConfigService.UpdateLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.UpdateLicenseConfig]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest} + */ +@com.google.protobuf.Generated +public final class UpdateLicenseConfigRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest) + UpdateLicenseConfigRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateLicenseConfigRequest"); + } + + // Use UpdateLicenseConfigRequest.newBuilder() to construct. + private UpdateLicenseConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateLicenseConfigRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int LICENSE_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.LicenseConfig licenseConfig_; + + /** + * + * + *
            +   * Required. The
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +   * update.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the licenseConfig field is set. + */ + @java.lang.Override + public boolean hasLicenseConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +   * update.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseConfig. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfig getLicenseConfig() { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + + /** + * + * + *
            +   * Required. The
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +   * update.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder + getLicenseConfigOrBuilder() { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
            +   * Optional. Indicates which fields in the provided
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +   * update.
            +   *
            +   * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
            +   * is returned.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. Indicates which fields in the provided
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +   * update.
            +   *
            +   * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
            +   * is returned.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
            +   * Optional. Indicates which fields in the provided
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +   * update.
            +   *
            +   * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
            +   * is returned.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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, getLicenseConfig()); + } + 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, getLicenseConfig()); + } + 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.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest other = + (com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest) obj; + + if (hasLicenseConfig() != other.hasLicenseConfig()) return false; + if (hasLicenseConfig()) { + if (!getLicenseConfig().equals(other.getLicenseConfig())) 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 (hasLicenseConfig()) { + hash = (37 * hash) + LICENSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfig().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest 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.v1beta.UpdateLicenseConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest parseFrom( + 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.v1beta.UpdateLicenseConfigRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [LicenseConfigService.UpdateLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.UpdateLicenseConfig]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest) + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateLicenseConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateLicenseConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest.class, + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetLicenseConfigFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + licenseConfig_ = null; + if (licenseConfigBuilder_ != null) { + licenseConfigBuilder_.dispose(); + licenseConfigBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateLicenseConfigRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest build() { + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest result = + new com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.licenseConfig_ = + licenseConfigBuilder_ == null ? licenseConfig_ : licenseConfigBuilder_.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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest + .getDefaultInstance()) return this; + if (other.hasLicenseConfig()) { + mergeLicenseConfig(other.getLicenseConfig()); + } + 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( + internalGetLicenseConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1beta.LicenseConfig licenseConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LicenseConfig, + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder> + licenseConfigBuilder_; + + /** + * + * + *
            +     * Required. The
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * update.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the licenseConfig field is set. + */ + public boolean hasLicenseConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. The
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * update.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseConfig. + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfig getLicenseConfig() { + if (licenseConfigBuilder_ == null) { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } else { + return licenseConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * update.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLicenseConfig(com.google.cloud.discoveryengine.v1beta.LicenseConfig value) { + if (licenseConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + licenseConfig_ = value; + } else { + licenseConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * update.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setLicenseConfig( + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder builderForValue) { + if (licenseConfigBuilder_ == null) { + licenseConfig_ = builderForValue.build(); + } else { + licenseConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * update.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeLicenseConfig(com.google.cloud.discoveryengine.v1beta.LicenseConfig value) { + if (licenseConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && licenseConfig_ != null + && licenseConfig_ + != com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance()) { + getLicenseConfigBuilder().mergeFrom(value); + } else { + licenseConfig_ = value; + } + } else { + licenseConfigBuilder_.mergeFrom(value); + } + if (licenseConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * update.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearLicenseConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + licenseConfig_ = null; + if (licenseConfigBuilder_ != null) { + licenseConfigBuilder_.dispose(); + licenseConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * update.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder getLicenseConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetLicenseConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * update.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder + getLicenseConfigOrBuilder() { + if (licenseConfigBuilder_ != null) { + return licenseConfigBuilder_.getMessageOrBuilder(); + } else { + return licenseConfig_ == null + ? com.google.cloud.discoveryengine.v1beta.LicenseConfig.getDefaultInstance() + : licenseConfig_; + } + } + + /** + * + * + *
            +     * Required. The
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * update.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LicenseConfig, + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder> + internalGetLicenseConfigFieldBuilder() { + if (licenseConfigBuilder_ == null) { + licenseConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.LicenseConfig, + com.google.cloud.discoveryengine.v1beta.LicenseConfig.Builder, + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder>( + getLicenseConfig(), getParentForChildren(), isClean()); + licenseConfig_ = null; + } + return licenseConfigBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
            +     * Optional. Indicates which fields in the provided
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * update.
            +     *
            +     * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
            +     * is returned.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. Indicates which fields in the provided
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * update.
            +     *
            +     * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
            +     * is returned.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Indicates which fields in the provided
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * update.
            +     *
            +     * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
            +     * is returned.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Indicates which fields in the provided
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * update.
            +     *
            +     * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
            +     * is returned.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Indicates which fields in the provided
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * update.
            +     *
            +     * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
            +     * is returned.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Indicates which fields in the provided
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * update.
            +     *
            +     * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
            +     * is returned.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Indicates which fields in the provided
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * update.
            +     *
            +     * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
            +     * is returned.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Indicates which fields in the provided
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * update.
            +     *
            +     * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
            +     * is returned.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
            +     * Optional. Indicates which fields in the provided
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +     * update.
            +     *
            +     * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
            +     * is returned.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest) + private static final com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateLicenseConfigRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.UpdateLicenseConfigRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateLicenseConfigRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateLicenseConfigRequestOrBuilder.java new file mode 100644 index 000000000000..aafb595cea28 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateLicenseConfigRequestOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/license_config_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface UpdateLicenseConfigRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +   * update.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the licenseConfig field is set. + */ + boolean hasLicenseConfig(); + + /** + * + * + *
            +   * Required. The
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +   * update.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The licenseConfig. + */ + com.google.cloud.discoveryengine.v1beta.LicenseConfig getLicenseConfig(); + + /** + * + * + *
            +   * Required. The
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +   * update.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.LicenseConfig license_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.LicenseConfigOrBuilder getLicenseConfigOrBuilder(); + + /** + * + * + *
            +   * Optional. Indicates which fields in the provided
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +   * update.
            +   *
            +   * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
            +   * is returned.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
            +   * Optional. Indicates which fields in the provided
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +   * update.
            +   *
            +   * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
            +   * is returned.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
            +   * Optional. Indicates which fields in the provided
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to
            +   * update.
            +   *
            +   * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error
            +   * is returned.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateUserStoreRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateUserStoreRequest.java new file mode 100644 index 000000000000..90c20ad97f8e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateUserStoreRequest.java @@ -0,0 +1,1048 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Request message for
            + * [UserStoreService.UpdateUserStore][google.cloud.discoveryengine.v1beta.UserStoreService.UpdateUserStore]
            + * method.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest} + */ +@com.google.protobuf.Generated +public final class UpdateUserStoreRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest) + UpdateUserStoreRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateUserStoreRequest"); + } + + // Use UpdateUserStoreRequest.newBuilder() to construct. + private UpdateUserStoreRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateUserStoreRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateUserStoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateUserStoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest.class, + com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest.Builder.class); + } + + private int bitField0_; + public static final int USER_STORE_FIELD_NUMBER = 1; + private com.google.cloud.discoveryengine.v1beta.UserStore userStore_; + + /** + * + * + *
            +   * Required. The User Store to update.
            +   * Format:
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the userStore field is set. + */ + @java.lang.Override + public boolean hasUserStore() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The User Store to update.
            +   * Format:
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The userStore. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserStore getUserStore() { + return userStore_ == null + ? com.google.cloud.discoveryengine.v1beta.UserStore.getDefaultInstance() + : userStore_; + } + + /** + * + * + *
            +   * Required. The User Store to update.
            +   * Format:
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserStoreOrBuilder getUserStoreOrBuilder() { + return userStore_ == null + ? com.google.cloud.discoveryengine.v1beta.UserStore.getDefaultInstance() + : userStore_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
            +   * Optional. The list of fields to update.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. The list of fields to update.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
            +   * Optional. The list of fields to update.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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, getUserStore()); + } + 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, getUserStore()); + } + 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.cloud.discoveryengine.v1beta.UpdateUserStoreRequest)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest other = + (com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest) obj; + + if (hasUserStore() != other.hasUserStore()) return false; + if (hasUserStore()) { + if (!getUserStore().equals(other.getUserStore())) 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 (hasUserStore()) { + hash = (37 * hash) + USER_STORE_FIELD_NUMBER; + hash = (53 * hash) + getUserStore().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest 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.v1beta.UpdateUserStoreRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest parseFrom( + 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.v1beta.UpdateUserStoreRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [UserStoreService.UpdateUserStore][google.cloud.discoveryengine.v1beta.UserStoreService.UpdateUserStore]
            +   * method.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest) + com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateUserStoreRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateUserStoreRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest.class, + com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUserStoreFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userStore_ = null; + if (userStoreBuilder_ != null) { + userStoreBuilder_.dispose(); + userStoreBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserStoreServiceProto + .internal_static_google_cloud_discoveryengine_v1beta_UpdateUserStoreRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest build() { + com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest buildPartial() { + com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest result = + new com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userStore_ = userStoreBuilder_ == null ? userStore_ : userStoreBuilder_.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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest other) { + if (other + == com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest.getDefaultInstance()) + return this; + if (other.hasUserStore()) { + mergeUserStore(other.getUserStore()); + } + 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( + internalGetUserStoreFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.discoveryengine.v1beta.UserStore userStore_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserStore, + com.google.cloud.discoveryengine.v1beta.UserStore.Builder, + com.google.cloud.discoveryengine.v1beta.UserStoreOrBuilder> + userStoreBuilder_; + + /** + * + * + *
            +     * Required. The User Store to update.
            +     * Format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the userStore field is set. + */ + public boolean hasUserStore() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. The User Store to update.
            +     * Format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The userStore. + */ + public com.google.cloud.discoveryengine.v1beta.UserStore getUserStore() { + if (userStoreBuilder_ == null) { + return userStore_ == null + ? com.google.cloud.discoveryengine.v1beta.UserStore.getDefaultInstance() + : userStore_; + } else { + return userStoreBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The User Store to update.
            +     * Format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUserStore(com.google.cloud.discoveryengine.v1beta.UserStore value) { + if (userStoreBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userStore_ = value; + } else { + userStoreBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The User Store to update.
            +     * Format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUserStore( + com.google.cloud.discoveryengine.v1beta.UserStore.Builder builderForValue) { + if (userStoreBuilder_ == null) { + userStore_ = builderForValue.build(); + } else { + userStoreBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The User Store to update.
            +     * Format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUserStore(com.google.cloud.discoveryengine.v1beta.UserStore value) { + if (userStoreBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && userStore_ != null + && userStore_ + != com.google.cloud.discoveryengine.v1beta.UserStore.getDefaultInstance()) { + getUserStoreBuilder().mergeFrom(value); + } else { + userStore_ = value; + } + } else { + userStoreBuilder_.mergeFrom(value); + } + if (userStore_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The User Store to update.
            +     * Format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUserStore() { + bitField0_ = (bitField0_ & ~0x00000001); + userStore_ = null; + if (userStoreBuilder_ != null) { + userStoreBuilder_.dispose(); + userStoreBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The User Store to update.
            +     * Format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.UserStore.Builder getUserStoreBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUserStoreFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The User Store to update.
            +     * Format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.discoveryengine.v1beta.UserStoreOrBuilder getUserStoreOrBuilder() { + if (userStoreBuilder_ != null) { + return userStoreBuilder_.getMessageOrBuilder(); + } else { + return userStore_ == null + ? com.google.cloud.discoveryengine.v1beta.UserStore.getDefaultInstance() + : userStore_; + } + } + + /** + * + * + *
            +     * Required. The User Store to update.
            +     * Format:
            +     * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserStore, + com.google.cloud.discoveryengine.v1beta.UserStore.Builder, + com.google.cloud.discoveryengine.v1beta.UserStoreOrBuilder> + internalGetUserStoreFieldBuilder() { + if (userStoreBuilder_ == null) { + userStoreBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserStore, + com.google.cloud.discoveryengine.v1beta.UserStore.Builder, + com.google.cloud.discoveryengine.v1beta.UserStoreOrBuilder>( + getUserStore(), getParentForChildren(), isClean()); + userStore_ = null; + } + return userStoreBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
            +     * Optional. The list of fields to update.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. The list of fields to update.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. The list of fields to update.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The list of fields to update.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The list of fields to update.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of fields to update.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The list of fields to update.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The list of fields to update.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
            +     * Optional. The list of fields to update.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest) + private static final com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest(); + } + + public static com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateUserStoreRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.UpdateUserStoreRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateUserStoreRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateUserStoreRequestOrBuilder.java new file mode 100644 index 000000000000..067284be9d6f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UpdateUserStoreRequestOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface UpdateUserStoreRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The User Store to update.
            +   * Format:
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the userStore field is set. + */ + boolean hasUserStore(); + + /** + * + * + *
            +   * Required. The User Store to update.
            +   * Format:
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The userStore. + */ + com.google.cloud.discoveryengine.v1beta.UserStore getUserStore(); + + /** + * + * + *
            +   * Required. The User Store to update.
            +   * Format:
            +   * `projects/{project}/locations/{location}/userStores/{user_store_id}`
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserStore user_store = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.discoveryengine.v1beta.UserStoreOrBuilder getUserStoreOrBuilder(); + + /** + * + * + *
            +   * Optional. The list of fields to update.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
            +   * Optional. The list of fields to update.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
            +   * Optional. The list of fields to update.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEvent.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEvent.java index 39d1ec6dd03d..2d9a1a0a8cf2 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEvent.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEvent.java @@ -54,6 +54,7 @@ private UserEvent(com.google.protobuf.GeneratedMessage.Builder builder) { private UserEvent() { eventType_ = ""; + conversionType_ = ""; userPseudoId_ = ""; engine_ = ""; dataStore_ = ""; @@ -64,6 +65,7 @@ private UserEvent() { tagIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); panels_ = java.util.Collections.emptyList(); + entity_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -112,7 +114,6 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * `view-item-list`: View of a panel or ordered list of Documents. * * `view-home-page`: View of the home page. * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * * `add-feedback`: Add a user feedback. * * Retail-related values: * @@ -123,6 +124,10 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * * * `media-play`: Start/resume watching a video, playing a song, etc. * * `media-complete`: Finished or stopped midway through a video, song, etc. + * + * Custom conversion value: + * + * * `conversion`: Customer defined conversion event. *
            * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -155,7 +160,6 @@ public java.lang.String getEventType() { * * `view-item-list`: View of a panel or ordered list of Documents. * * `view-home-page`: View of the home page. * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * * `add-feedback`: Add a user feedback. * * Retail-related values: * @@ -166,6 +170,10 @@ public java.lang.String getEventType() { * * * `media-play`: Start/resume watching a video, playing a song, etc. * * `media-complete`: Finished or stopped midway through a video, song, etc. + * + * Custom conversion value: + * + * * `conversion`: Customer defined conversion event. *
            * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -185,6 +193,79 @@ public com.google.protobuf.ByteString getEventTypeBytes() { } } + public static final int CONVERSION_TYPE_FIELD_NUMBER = 21; + + @SuppressWarnings("serial") + private volatile java.lang.Object conversionType_ = ""; + + /** + * + * + *
            +   * Optional. Conversion type.
            +   *
            +   * Required if
            +   * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +   * is `conversion`. This is a customer-defined conversion name in lowercase
            +   * letters or numbers separated by "-", such as "watch", "good-visit" etc.
            +   *
            +   * Do not set the field if
            +   * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +   * is not `conversion`. This mixes the custom conversion event with predefined
            +   * events like `search`, `view-item` etc.
            +   * 
            + * + * string conversion_type = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The conversionType. + */ + @java.lang.Override + public java.lang.String getConversionType() { + java.lang.Object ref = conversionType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversionType_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Conversion type.
            +   *
            +   * Required if
            +   * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +   * is `conversion`. This is a customer-defined conversion name in lowercase
            +   * letters or numbers separated by "-", such as "watch", "good-visit" etc.
            +   *
            +   * Do not set the field if
            +   * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +   * is not `conversion`. This mixes the custom conversion event with predefined
            +   * events like `search`, `view-item` etc.
            +   * 
            + * + * string conversion_type = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for conversionType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConversionTypeBytes() { + java.lang.Object ref = conversionType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversionType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int USER_PSEUDO_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -776,8 +857,9 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() { * * *
            -   * The filter syntax consists of an expression language for constructing a
            -   * predicate from one or more fields of the documents being filtered.
            +   * Optional. The filter syntax consists of an expression language for
            +   * constructing a predicate from one or more fields of the documents being
            +   * filtered.
                *
                * One example is for `search` events, the associated
                * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] may
            @@ -795,7 +877,7 @@ public com.google.protobuf.ByteString getAttributionTokenBytes() {
                * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
                * 
            * - * string filter = 9; + * string filter = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -816,8 +898,9 @@ public java.lang.String getFilter() { * * *
            -   * The filter syntax consists of an expression language for constructing a
            -   * predicate from one or more fields of the documents being filtered.
            +   * Optional. The filter syntax consists of an expression language for
            +   * constructing a predicate from one or more fields of the documents being
            +   * filtered.
                *
                * One example is for `search` events, the associated
                * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] may
            @@ -835,7 +918,7 @@ public java.lang.String getFilter() {
                * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
                * 
            * - * string filter = 9; + * string filter = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -1767,6 +1850,126 @@ public com.google.cloud.discoveryengine.v1beta.PanelInfoOrBuilder getPanelsOrBui return panels_.get(index); } + public static final int FEEDBACK_FIELD_NUMBER = 23; + private com.google.cloud.discoveryengine.v1beta.Feedback feedback_; + + /** + * + * + *
            +   * Optional. This field is optional except for the `add-feedback` event types.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the feedback field is set. + */ + @java.lang.Override + public boolean hasFeedback() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
            +   * Optional. This field is optional except for the `add-feedback` event types.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The feedback. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.Feedback getFeedback() { + return feedback_ == null + ? com.google.cloud.discoveryengine.v1beta.Feedback.getDefaultInstance() + : feedback_; + } + + /** + * + * + *
            +   * Optional. This field is optional except for the `add-feedback` event types.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.FeedbackOrBuilder getFeedbackOrBuilder() { + return feedback_ == null + ? com.google.cloud.discoveryengine.v1beta.Feedback.getDefaultInstance() + : feedback_; + } + + public static final int ENTITY_FIELD_NUMBER = 25; + + @SuppressWarnings("serial") + private volatile java.lang.Object entity_ = ""; + + /** + * + * + *
            +   * Optional. Represents the entity for customers that may run multiple
            +   * different entities, domains, sites or regions, for example, `Google US`,
            +   * `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that
            +   * you set `entity` to get better per-entity search, completion, and
            +   * prediction results.
            +   * 
            + * + * string entity = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entity. + */ + @java.lang.Override + public java.lang.String getEntity() { + java.lang.Object ref = entity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entity_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Represents the entity for customers that may run multiple
            +   * different entities, domains, sites or regions, for example, `Google US`,
            +   * `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that
            +   * you set `entity` to get better per-entity search, completion, and
            +   * prediction results.
            +   * 
            + * + * string entity = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityBytes() { + java.lang.Object ref = entity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1840,9 +2043,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { com.google.protobuf.GeneratedMessage.writeString(output, 20, dataStore_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(conversionType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 21, conversionType_); + } for (int i = 0; i < panels_.size(); i++) { output.writeMessage(22, panels_.get(i)); } + if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(23, getFeedback()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entity_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 25, entity_); + } getUnknownFields().writeTo(output); } @@ -1932,9 +2144,18 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataStore_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(20, dataStore_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(conversionType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(21, conversionType_); + } for (int i = 0; i < panels_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, panels_.get(i)); } + if (((bitField0_ & 0x00000100) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(23, getFeedback()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entity_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(25, entity_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1952,6 +2173,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.discoveryengine.v1beta.UserEvent) obj; if (!getEventType().equals(other.getEventType())) return false; + if (!getConversionType().equals(other.getConversionType())) return false; if (!getUserPseudoId().equals(other.getUserPseudoId())) return false; if (!getEngine().equals(other.getEngine())) return false; if (!getDataStore().equals(other.getDataStore())) return false; @@ -1996,6 +2218,11 @@ public boolean equals(final java.lang.Object obj) { if (!getMediaInfo().equals(other.getMediaInfo())) return false; } if (!getPanelsList().equals(other.getPanelsList())) return false; + if (hasFeedback() != other.hasFeedback()) return false; + if (hasFeedback()) { + if (!getFeedback().equals(other.getFeedback())) return false; + } + if (!getEntity().equals(other.getEntity())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2009,6 +2236,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER; hash = (53 * hash) + getEventType().hashCode(); + hash = (37 * hash) + CONVERSION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getConversionType().hashCode(); hash = (37 * hash) + USER_PSEUDO_ID_FIELD_NUMBER; hash = (53 * hash) + getUserPseudoId().hashCode(); hash = (37 * hash) + ENGINE_FIELD_NUMBER; @@ -2075,6 +2304,12 @@ public int hashCode() { hash = (37 * hash) + PANELS_FIELD_NUMBER; hash = (53 * hash) + getPanelsList().hashCode(); } + if (hasFeedback()) { + hash = (37 * hash) + FEEDBACK_FIELD_NUMBER; + hash = (53 * hash) + getFeedback().hashCode(); + } + hash = (37 * hash) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2249,6 +2484,7 @@ private void maybeForceBuilderInitialization() { internalGetTransactionInfoFieldBuilder(); internalGetMediaInfoFieldBuilder(); internalGetPanelsFieldBuilder(); + internalGetFeedbackFieldBuilder(); } } @@ -2257,6 +2493,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; eventType_ = ""; + conversionType_ = ""; userPseudoId_ = ""; engine_ = ""; dataStore_ = ""; @@ -2285,7 +2522,7 @@ public Builder clear() { documents_ = null; documentsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); panel_ = null; if (panelBuilder_ != null) { panelBuilder_.dispose(); @@ -2320,7 +2557,13 @@ public Builder clear() { panels_ = null; panelsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); + feedback_ = null; + if (feedbackBuilder_ != null) { + feedbackBuilder_.dispose(); + feedbackBuilder_ = null; + } + entity_ = ""; return this; } @@ -2359,18 +2602,18 @@ public com.google.cloud.discoveryengine.v1beta.UserEvent buildPartial() { private void buildPartialRepeatedFields( com.google.cloud.discoveryengine.v1beta.UserEvent result) { if (documentsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { documents_ = java.util.Collections.unmodifiableList(documents_); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } result.documents_ = documents_; } else { result.documents_ = documentsBuilder_.build(); } if (panelsBuilder_ == null) { - if (((bitField0_ & 0x00100000) != 0)) { + if (((bitField0_ & 0x00200000) != 0)) { panels_ = java.util.Collections.unmodifiableList(panels_); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); } result.panels_ = panels_; } else { @@ -2384,73 +2627,83 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.UserEvent res result.eventType_ = eventType_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.userPseudoId_ = userPseudoId_; + result.conversionType_ = conversionType_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.engine_ = engine_; + result.userPseudoId_ = userPseudoId_; } if (((from_bitField0_ & 0x00000008) != 0)) { + result.engine_ = engine_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { result.dataStore_ = dataStore_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.userInfo_ = userInfoBuilder_ == null ? userInfo_ : userInfoBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.directUserRequest_ = directUserRequest_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.sessionId_ = sessionId_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.pageInfo_ = pageInfoBuilder_ == null ? pageInfo_ : pageInfoBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.attributionToken_ = attributionToken_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.filter_ = filter_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.panel_ = panelBuilder_ == null ? panel_ : panelBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.searchInfo_ = searchInfoBuilder_ == null ? searchInfo_ : searchInfoBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.completionInfo_ = completionInfoBuilder_ == null ? completionInfo_ : completionInfoBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.transactionInfo_ = transactionInfoBuilder_ == null ? transactionInfo_ : transactionInfoBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { tagIds_.makeImmutable(); result.tagIds_ = tagIds_; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { promotionIds_.makeImmutable(); result.promotionIds_ = promotionIds_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.attributes_ = internalGetAttributes().build(AttributesDefaultEntryHolder.defaultEntry); } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.mediaInfo_ = mediaInfoBuilder_ == null ? mediaInfo_ : mediaInfoBuilder_.build(); to_bitField0_ |= 0x00000080; } + if (((from_bitField0_ & 0x00400000) != 0)) { + result.feedback_ = feedbackBuilder_ == null ? feedback_ : feedbackBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField0_ & 0x00800000) != 0)) { + result.entity_ = entity_; + } result.bitField0_ |= to_bitField0_; } @@ -2472,19 +2725,24 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UserEvent other bitField0_ |= 0x00000001; onChanged(); } + if (!other.getConversionType().isEmpty()) { + conversionType_ = other.conversionType_; + bitField0_ |= 0x00000002; + onChanged(); + } if (!other.getUserPseudoId().isEmpty()) { userPseudoId_ = other.userPseudoId_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } if (!other.getEngine().isEmpty()) { engine_ = other.engine_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getDataStore().isEmpty()) { dataStore_ = other.dataStore_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasEventTime()) { @@ -2498,7 +2756,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UserEvent other } if (!other.getSessionId().isEmpty()) { sessionId_ = other.sessionId_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (other.hasPageInfo()) { @@ -2506,19 +2764,19 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UserEvent other } if (!other.getAttributionToken().isEmpty()) { attributionToken_ = other.attributionToken_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } if (!other.getFilter().isEmpty()) { filter_ = other.filter_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } if (documentsBuilder_ == null) { if (!other.documents_.isEmpty()) { if (documents_.isEmpty()) { documents_ = other.documents_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } else { ensureDocumentsIsMutable(); documents_.addAll(other.documents_); @@ -2531,7 +2789,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UserEvent other documentsBuilder_.dispose(); documentsBuilder_ = null; documents_ = other.documents_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); documentsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetDocumentsFieldBuilder() @@ -2556,7 +2814,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UserEvent other if (!other.tagIds_.isEmpty()) { if (tagIds_.isEmpty()) { tagIds_ = other.tagIds_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; } else { ensureTagIdsIsMutable(); tagIds_.addAll(other.tagIds_); @@ -2566,7 +2824,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UserEvent other if (!other.promotionIds_.isEmpty()) { if (promotionIds_.isEmpty()) { promotionIds_ = other.promotionIds_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } else { ensurePromotionIdsIsMutable(); promotionIds_.addAll(other.promotionIds_); @@ -2574,7 +2832,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UserEvent other onChanged(); } internalGetMutableAttributes().mergeFrom(other.internalGetAttributes()); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; if (other.hasMediaInfo()) { mergeMediaInfo(other.getMediaInfo()); } @@ -2582,7 +2840,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UserEvent other if (!other.panels_.isEmpty()) { if (panels_.isEmpty()) { panels_ = other.panels_; - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); } else { ensurePanelsIsMutable(); panels_.addAll(other.panels_); @@ -2595,7 +2853,7 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UserEvent other panelsBuilder_.dispose(); panelsBuilder_ = null; panels_ = other.panels_; - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); panelsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetPanelsFieldBuilder() @@ -2605,6 +2863,14 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UserEvent other } } } + if (other.hasFeedback()) { + mergeFeedback(other.getFeedback()); + } + if (!other.getEntity().isEmpty()) { + entity_ = other.entity_; + bitField0_ |= 0x00800000; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2640,52 +2906,52 @@ public Builder mergeFrom( case 18: { userPseudoId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 18 case 26: { input.readMessage( internalGetEventTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 26 case 34: { input.readMessage( internalGetUserInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 34 case 40: { directUserRequest_ = input.readBool(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 40 case 50: { sessionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 50 case 58: { input.readMessage( internalGetPageInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 58 case 66: { attributionToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 66 case 74: { filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 74 case 82: @@ -2705,28 +2971,28 @@ public Builder mergeFrom( case 90: { input.readMessage(internalGetPanelFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 90 case 98: { input.readMessage( internalGetSearchInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 98 case 106: { input.readMessage( internalGetCompletionInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 106 case 114: { input.readMessage( internalGetTransactionInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 114 case 122: @@ -2754,28 +3020,34 @@ public Builder mergeFrom( internalGetMutableAttributes() .ensureBuilderMap() .put(attributes__.getKey(), attributes__.getValue()); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 138 case 146: { input.readMessage( internalGetMediaInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 146 case 154: { engine_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 154 case 162: { dataStore_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 162 + case 170: + { + conversionType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 170 case 178: { com.google.cloud.discoveryengine.v1beta.PanelInfo m = @@ -2790,6 +3062,19 @@ public Builder mergeFrom( } break; } // case 178 + case 186: + { + input.readMessage( + internalGetFeedbackFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00400000; + break; + } // case 186 + case 202: + { + entity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00800000; + break; + } // case 202 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2824,7 +3109,6 @@ public Builder mergeFrom( * * `view-item-list`: View of a panel or ordered list of Documents. * * `view-home-page`: View of the home page. * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * * `add-feedback`: Add a user feedback. * * Retail-related values: * @@ -2835,6 +3119,10 @@ public Builder mergeFrom( * * * `media-play`: Start/resume watching a video, playing a song, etc. * * `media-complete`: Finished or stopped midway through a video, song, etc. + * + * Custom conversion value: + * + * * `conversion`: Customer defined conversion event. *
            * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -2866,7 +3154,6 @@ public java.lang.String getEventType() { * * `view-item-list`: View of a panel or ordered list of Documents. * * `view-home-page`: View of the home page. * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * * `add-feedback`: Add a user feedback. * * Retail-related values: * @@ -2877,6 +3164,10 @@ public java.lang.String getEventType() { * * * `media-play`: Start/resume watching a video, playing a song, etc. * * `media-complete`: Finished or stopped midway through a video, song, etc. + * + * Custom conversion value: + * + * * `conversion`: Customer defined conversion event. *
            * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -2908,7 +3199,6 @@ public com.google.protobuf.ByteString getEventTypeBytes() { * * `view-item-list`: View of a panel or ordered list of Documents. * * `view-home-page`: View of the home page. * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * * `add-feedback`: Add a user feedback. * * Retail-related values: * @@ -2919,6 +3209,10 @@ public com.google.protobuf.ByteString getEventTypeBytes() { * * * `media-play`: Start/resume watching a video, playing a song, etc. * * `media-complete`: Finished or stopped midway through a video, song, etc. + * + * Custom conversion value: + * + * * `conversion`: Customer defined conversion event. *
            * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -2949,7 +3243,6 @@ public Builder setEventType(java.lang.String value) { * * `view-item-list`: View of a panel or ordered list of Documents. * * `view-home-page`: View of the home page. * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * * `add-feedback`: Add a user feedback. * * Retail-related values: * @@ -2960,6 +3253,10 @@ public Builder setEventType(java.lang.String value) { * * * `media-play`: Start/resume watching a video, playing a song, etc. * * `media-complete`: Finished or stopped midway through a video, song, etc. + * + * Custom conversion value: + * + * * `conversion`: Customer defined conversion event. *
            * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -2986,7 +3283,6 @@ public Builder clearEventType() { * * `view-item-list`: View of a panel or ordered list of Documents. * * `view-home-page`: View of the home page. * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * * `add-feedback`: Add a user feedback. * * Retail-related values: * @@ -2997,6 +3293,10 @@ public Builder clearEventType() { * * * `media-play`: Start/resume watching a video, playing a song, etc. * * `media-complete`: Finished or stopped midway through a video, song, etc. + * + * Custom conversion value: + * + * * `conversion`: Customer defined conversion event. *
            * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -3015,34 +3315,195 @@ public Builder setEventTypeBytes(com.google.protobuf.ByteString value) { return this; } - private java.lang.Object userPseudoId_ = ""; + private java.lang.Object conversionType_ = ""; /** * * *
            -     * Required. A unique identifier for tracking visitors.
            +     * Optional. Conversion type.
                  *
            -     * For example, this could be implemented with an HTTP cookie, which should be
            -     * able to uniquely identify a visitor on a single device. This unique
            -     * identifier should not change if the visitor log in/out of the website.
            -     *
            -     * Do not set the field to the same fixed ID for different users. This mixes
            -     * the event history of those users together, which results in degraded model
            -     * quality.
            -     *
            -     * The field must be a UTF-8 encoded string with a length limit of 128
            -     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
            +     * Required if
            +     * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +     * is `conversion`. This is a customer-defined conversion name in lowercase
            +     * letters or numbers separated by "-", such as "watch", "good-visit" etc.
                  *
            -     * The field should not contain PII or user-data. We recommend to use Google
            -     * Analytics [Client
            -     * ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId)
            -     * for this field.
            +     * Do not set the field if
            +     * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +     * is not `conversion`. This mixes the custom conversion event with predefined
            +     * events like `search`, `view-item` etc.
                  * 
            * - * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string conversion_type = 21 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The userPseudoId. + * @return The conversionType. + */ + public java.lang.String getConversionType() { + java.lang.Object ref = conversionType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversionType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Conversion type.
            +     *
            +     * Required if
            +     * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +     * is `conversion`. This is a customer-defined conversion name in lowercase
            +     * letters or numbers separated by "-", such as "watch", "good-visit" etc.
            +     *
            +     * Do not set the field if
            +     * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +     * is not `conversion`. This mixes the custom conversion event with predefined
            +     * events like `search`, `view-item` etc.
            +     * 
            + * + * string conversion_type = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for conversionType. + */ + public com.google.protobuf.ByteString getConversionTypeBytes() { + java.lang.Object ref = conversionType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversionType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Conversion type.
            +     *
            +     * Required if
            +     * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +     * is `conversion`. This is a customer-defined conversion name in lowercase
            +     * letters or numbers separated by "-", such as "watch", "good-visit" etc.
            +     *
            +     * Do not set the field if
            +     * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +     * is not `conversion`. This mixes the custom conversion event with predefined
            +     * events like `search`, `view-item` etc.
            +     * 
            + * + * string conversion_type = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The conversionType to set. + * @return This builder for chaining. + */ + public Builder setConversionType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + conversionType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Conversion type.
            +     *
            +     * Required if
            +     * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +     * is `conversion`. This is a customer-defined conversion name in lowercase
            +     * letters or numbers separated by "-", such as "watch", "good-visit" etc.
            +     *
            +     * Do not set the field if
            +     * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +     * is not `conversion`. This mixes the custom conversion event with predefined
            +     * events like `search`, `view-item` etc.
            +     * 
            + * + * string conversion_type = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearConversionType() { + conversionType_ = getDefaultInstance().getConversionType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Conversion type.
            +     *
            +     * Required if
            +     * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +     * is `conversion`. This is a customer-defined conversion name in lowercase
            +     * letters or numbers separated by "-", such as "watch", "good-visit" etc.
            +     *
            +     * Do not set the field if
            +     * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +     * is not `conversion`. This mixes the custom conversion event with predefined
            +     * events like `search`, `view-item` etc.
            +     * 
            + * + * string conversion_type = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for conversionType to set. + * @return This builder for chaining. + */ + public Builder setConversionTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversionType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object userPseudoId_ = ""; + + /** + * + * + *
            +     * Required. A unique identifier for tracking visitors.
            +     *
            +     * For example, this could be implemented with an HTTP cookie, which should be
            +     * able to uniquely identify a visitor on a single device. This unique
            +     * identifier should not change if the visitor log in/out of the website.
            +     *
            +     * Do not set the field to the same fixed ID for different users. This mixes
            +     * the event history of those users together, which results in degraded model
            +     * quality.
            +     *
            +     * The field must be a UTF-8 encoded string with a length limit of 128
            +     * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
            +     *
            +     * The field should not contain PII or user-data. We recommend to use Google
            +     * Analytics [Client
            +     * ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId)
            +     * for this field.
            +     * 
            + * + * string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The userPseudoId. */ public java.lang.String getUserPseudoId() { java.lang.Object ref = userPseudoId_; @@ -3128,7 +3589,7 @@ public Builder setUserPseudoId(java.lang.String value) { throw new NullPointerException(); } userPseudoId_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3162,7 +3623,7 @@ public Builder setUserPseudoId(java.lang.String value) { */ public Builder clearUserPseudoId() { userPseudoId_ = getDefaultInstance().getUserPseudoId(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -3201,7 +3662,7 @@ public Builder setUserPseudoIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); userPseudoId_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -3289,7 +3750,7 @@ public Builder setEngine(java.lang.String value) { throw new NullPointerException(); } engine_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3313,7 +3774,7 @@ public Builder setEngine(java.lang.String value) { */ public Builder clearEngine() { engine_ = getDefaultInstance().getEngine(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -3342,7 +3803,7 @@ public Builder setEngineBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); engine_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -3439,7 +3900,7 @@ public Builder setDataStore(java.lang.String value) { throw new NullPointerException(); } dataStore_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3466,7 +3927,7 @@ public Builder setDataStore(java.lang.String value) { */ public Builder clearDataStore() { dataStore_ = getDefaultInstance().getDataStore(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -3498,7 +3959,7 @@ public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); dataStore_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -3524,7 +3985,7 @@ public Builder setDataStoreBytes(com.google.protobuf.ByteString value) { * @return Whether the eventTime field is set. */ public boolean hasEventTime() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -3568,7 +4029,7 @@ public Builder setEventTime(com.google.protobuf.Timestamp value) { } else { eventTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3590,7 +4051,7 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu } else { eventTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -3608,7 +4069,7 @@ public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { if (eventTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && eventTime_ != null && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEventTimeBuilder().mergeFrom(value); @@ -3619,7 +4080,7 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { eventTimeBuilder_.mergeFrom(value); } if (eventTime_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -3637,7 +4098,7 @@ public Builder mergeEventTime(com.google.protobuf.Timestamp value) { * .google.protobuf.Timestamp event_time = 3; */ public Builder clearEventTime() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); eventTime_ = null; if (eventTimeBuilder_ != null) { eventTimeBuilder_.dispose(); @@ -3659,7 +4120,7 @@ public Builder clearEventTime() { * .google.protobuf.Timestamp event_time = 3; */ public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return internalGetEventTimeFieldBuilder().getBuilder(); } @@ -3730,7 +4191,7 @@ public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { * @return Whether the userInfo field is set. */ public boolean hasUserInfo() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -3772,7 +4233,7 @@ public Builder setUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo valu } else { userInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3793,7 +4254,7 @@ public Builder setUserInfo( } else { userInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -3809,7 +4270,7 @@ public Builder setUserInfo( */ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo value) { if (userInfoBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && userInfo_ != null && userInfo_ != com.google.cloud.discoveryengine.v1beta.UserInfo.getDefaultInstance()) { getUserInfoBuilder().mergeFrom(value); @@ -3820,7 +4281,7 @@ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo va userInfoBuilder_.mergeFrom(value); } if (userInfo_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -3836,7 +4297,7 @@ public Builder mergeUserInfo(com.google.cloud.discoveryengine.v1beta.UserInfo va * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4; */ public Builder clearUserInfo() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); userInfo_ = null; if (userInfoBuilder_ != null) { userInfoBuilder_.dispose(); @@ -3856,7 +4317,7 @@ public Builder clearUserInfo() { * .google.cloud.discoveryengine.v1beta.UserInfo user_info = 4; */ public com.google.cloud.discoveryengine.v1beta.UserInfo.Builder getUserInfoBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return internalGetUserInfoFieldBuilder().getBuilder(); } @@ -3959,7 +4420,7 @@ public boolean getDirectUserRequest() { public Builder setDirectUserRequest(boolean value) { directUserRequest_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -3986,7 +4447,7 @@ public Builder setDirectUserRequest(boolean value) { * @return This builder for chaining. */ public Builder clearDirectUserRequest() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); directUserRequest_ = false; onChanged(); return this; @@ -4084,7 +4545,7 @@ public Builder setSessionId(java.lang.String value) { throw new NullPointerException(); } sessionId_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4111,7 +4572,7 @@ public Builder setSessionId(java.lang.String value) { */ public Builder clearSessionId() { sessionId_ = getDefaultInstance().getSessionId(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -4143,7 +4604,7 @@ public Builder setSessionIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); sessionId_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4168,7 +4629,7 @@ public Builder setSessionIdBytes(com.google.protobuf.ByteString value) { * @return Whether the pageInfo field is set. */ public boolean hasPageInfo() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -4212,7 +4673,7 @@ public Builder setPageInfo(com.google.cloud.discoveryengine.v1beta.PageInfo valu } else { pageInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4234,7 +4695,7 @@ public Builder setPageInfo( } else { pageInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4251,7 +4712,7 @@ public Builder setPageInfo( */ public Builder mergePageInfo(com.google.cloud.discoveryengine.v1beta.PageInfo value) { if (pageInfoBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000200) != 0) && pageInfo_ != null && pageInfo_ != com.google.cloud.discoveryengine.v1beta.PageInfo.getDefaultInstance()) { getPageInfoBuilder().mergeFrom(value); @@ -4262,7 +4723,7 @@ public Builder mergePageInfo(com.google.cloud.discoveryengine.v1beta.PageInfo va pageInfoBuilder_.mergeFrom(value); } if (pageInfo_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } return this; @@ -4279,7 +4740,7 @@ public Builder mergePageInfo(com.google.cloud.discoveryengine.v1beta.PageInfo va * .google.cloud.discoveryengine.v1beta.PageInfo page_info = 7; */ public Builder clearPageInfo() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); pageInfo_ = null; if (pageInfoBuilder_ != null) { pageInfoBuilder_.dispose(); @@ -4300,7 +4761,7 @@ public Builder clearPageInfo() { * .google.cloud.discoveryengine.v1beta.PageInfo page_info = 7; */ public com.google.cloud.discoveryengine.v1beta.PageInfo.Builder getPageInfoBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return internalGetPageInfoFieldBuilder().getBuilder(); } @@ -4483,7 +4944,7 @@ public Builder setAttributionToken(java.lang.String value) { throw new NullPointerException(); } attributionToken_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4523,7 +4984,7 @@ public Builder setAttributionToken(java.lang.String value) { */ public Builder clearAttributionToken() { attributionToken_ = getDefaultInstance().getAttributionToken(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -4568,7 +5029,7 @@ public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); attributionToken_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4579,8 +5040,9 @@ public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) { * * *
            -     * The filter syntax consists of an expression language for constructing a
            -     * predicate from one or more fields of the documents being filtered.
            +     * Optional. The filter syntax consists of an expression language for
            +     * constructing a predicate from one or more fields of the documents being
            +     * filtered.
                  *
                  * One example is for `search` events, the associated
                  * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] may
            @@ -4598,7 +5060,7 @@ public Builder setAttributionTokenBytes(com.google.protobuf.ByteString value) {
                  * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string filter = 9; + * string filter = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -4618,8 +5080,9 @@ public java.lang.String getFilter() { * * *
            -     * The filter syntax consists of an expression language for constructing a
            -     * predicate from one or more fields of the documents being filtered.
            +     * Optional. The filter syntax consists of an expression language for
            +     * constructing a predicate from one or more fields of the documents being
            +     * filtered.
                  *
                  * One example is for `search` events, the associated
                  * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] may
            @@ -4637,7 +5100,7 @@ public java.lang.String getFilter() {
                  * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string filter = 9; + * string filter = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -4657,8 +5120,9 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
            -     * The filter syntax consists of an expression language for constructing a
            -     * predicate from one or more fields of the documents being filtered.
            +     * Optional. The filter syntax consists of an expression language for
            +     * constructing a predicate from one or more fields of the documents being
            +     * filtered.
                  *
                  * One example is for `search` events, the associated
                  * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] may
            @@ -4676,7 +5140,7 @@ public com.google.protobuf.ByteString getFilterBytes() {
                  * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string filter = 9; + * string filter = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The filter to set. * @return This builder for chaining. @@ -4686,7 +5150,7 @@ public Builder setFilter(java.lang.String value) { throw new NullPointerException(); } filter_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4695,8 +5159,9 @@ public Builder setFilter(java.lang.String value) { * * *
            -     * The filter syntax consists of an expression language for constructing a
            -     * predicate from one or more fields of the documents being filtered.
            +     * Optional. The filter syntax consists of an expression language for
            +     * constructing a predicate from one or more fields of the documents being
            +     * filtered.
                  *
                  * One example is for `search` events, the associated
                  * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] may
            @@ -4714,13 +5179,13 @@ public Builder setFilter(java.lang.String value) {
                  * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string filter = 9; + * string filter = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ public Builder clearFilter() { filter_ = getDefaultInstance().getFilter(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -4729,8 +5194,9 @@ public Builder clearFilter() { * * *
            -     * The filter syntax consists of an expression language for constructing a
            -     * predicate from one or more fields of the documents being filtered.
            +     * Optional. The filter syntax consists of an expression language for
            +     * constructing a predicate from one or more fields of the documents being
            +     * filtered.
                  *
                  * One example is for `search` events, the associated
                  * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] may
            @@ -4748,7 +5214,7 @@ public Builder clearFilter() {
                  * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
                  * 
            * - * string filter = 9; + * string filter = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for filter to set. * @return This builder for chaining. @@ -4759,7 +5225,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); filter_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4768,11 +5234,11 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureDocumentsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { + if (!((bitField0_ & 0x00001000) != 0)) { documents_ = new java.util.ArrayList( documents_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } } @@ -5187,7 +5653,7 @@ public Builder addAllDocuments( public Builder clearDocuments() { if (documentsBuilder_ == null) { documents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { documentsBuilder_.clear(); @@ -5439,7 +5905,7 @@ public com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder addDocuments com.google.cloud.discoveryengine.v1beta.DocumentInfo, com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder, com.google.cloud.discoveryengine.v1beta.DocumentInfoOrBuilder>( - documents_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); + documents_, ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); documents_ = null; } return documentsBuilder_; @@ -5464,7 +5930,7 @@ public com.google.cloud.discoveryengine.v1beta.DocumentInfo.Builder addDocuments * @return Whether the panel field is set. */ public boolean hasPanel() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -5506,7 +5972,7 @@ public Builder setPanel(com.google.cloud.discoveryengine.v1beta.PanelInfo value) } else { panelBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5527,7 +5993,7 @@ public Builder setPanel( } else { panelBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5543,7 +6009,7 @@ public Builder setPanel( */ public Builder mergePanel(com.google.cloud.discoveryengine.v1beta.PanelInfo value) { if (panelBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && panel_ != null && panel_ != com.google.cloud.discoveryengine.v1beta.PanelInfo.getDefaultInstance()) { getPanelBuilder().mergeFrom(value); @@ -5554,7 +6020,7 @@ public Builder mergePanel(com.google.cloud.discoveryengine.v1beta.PanelInfo valu panelBuilder_.mergeFrom(value); } if (panel_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -5570,7 +6036,7 @@ public Builder mergePanel(com.google.cloud.discoveryengine.v1beta.PanelInfo valu * .google.cloud.discoveryengine.v1beta.PanelInfo panel = 11; */ public Builder clearPanel() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); panel_ = null; if (panelBuilder_ != null) { panelBuilder_.dispose(); @@ -5590,7 +6056,7 @@ public Builder clearPanel() { * .google.cloud.discoveryengine.v1beta.PanelInfo panel = 11; */ public com.google.cloud.discoveryengine.v1beta.PanelInfo.Builder getPanelBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return internalGetPanelFieldBuilder().getBuilder(); } @@ -5662,7 +6128,7 @@ public com.google.cloud.discoveryengine.v1beta.PanelInfoOrBuilder getPanelOrBuil * @return Whether the searchInfo field is set. */ public boolean hasSearchInfo() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -5710,7 +6176,7 @@ public Builder setSearchInfo(com.google.cloud.discoveryengine.v1beta.SearchInfo } else { searchInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5734,7 +6200,7 @@ public Builder setSearchInfo( } else { searchInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5753,7 +6219,7 @@ public Builder setSearchInfo( */ public Builder mergeSearchInfo(com.google.cloud.discoveryengine.v1beta.SearchInfo value) { if (searchInfoBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && searchInfo_ != null && searchInfo_ != com.google.cloud.discoveryengine.v1beta.SearchInfo.getDefaultInstance()) { @@ -5765,7 +6231,7 @@ public Builder mergeSearchInfo(com.google.cloud.discoveryengine.v1beta.SearchInf searchInfoBuilder_.mergeFrom(value); } if (searchInfo_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -5784,7 +6250,7 @@ public Builder mergeSearchInfo(com.google.cloud.discoveryengine.v1beta.SearchInf * .google.cloud.discoveryengine.v1beta.SearchInfo search_info = 12; */ public Builder clearSearchInfo() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); searchInfo_ = null; if (searchInfoBuilder_ != null) { searchInfoBuilder_.dispose(); @@ -5807,7 +6273,7 @@ public Builder clearSearchInfo() { * .google.cloud.discoveryengine.v1beta.SearchInfo search_info = 12; */ public com.google.cloud.discoveryengine.v1beta.SearchInfo.Builder getSearchInfoBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return internalGetSearchInfoFieldBuilder().getBuilder(); } @@ -5886,7 +6352,7 @@ public com.google.cloud.discoveryengine.v1beta.SearchInfoOrBuilder getSearchInfo * @return Whether the completionInfo field is set. */ public boolean hasCompletionInfo() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -5936,7 +6402,7 @@ public Builder setCompletionInfo(com.google.cloud.discoveryengine.v1beta.Complet } else { completionInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5961,7 +6427,7 @@ public Builder setCompletionInfo( } else { completionInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5982,7 +6448,7 @@ public Builder setCompletionInfo( public Builder mergeCompletionInfo( com.google.cloud.discoveryengine.v1beta.CompletionInfo value) { if (completionInfoBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && completionInfo_ != null && completionInfo_ != com.google.cloud.discoveryengine.v1beta.CompletionInfo.getDefaultInstance()) { @@ -5994,7 +6460,7 @@ public Builder mergeCompletionInfo( completionInfoBuilder_.mergeFrom(value); } if (completionInfo_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -6014,7 +6480,7 @@ public Builder mergeCompletionInfo( * .google.cloud.discoveryengine.v1beta.CompletionInfo completion_info = 13; */ public Builder clearCompletionInfo() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); completionInfo_ = null; if (completionInfoBuilder_ != null) { completionInfoBuilder_.dispose(); @@ -6039,7 +6505,7 @@ public Builder clearCompletionInfo() { */ public com.google.cloud.discoveryengine.v1beta.CompletionInfo.Builder getCompletionInfoBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return internalGetCompletionInfoFieldBuilder().getBuilder(); } @@ -6117,7 +6583,7 @@ public Builder clearCompletionInfo() { * @return Whether the transactionInfo field is set. */ public boolean hasTransactionInfo() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -6160,7 +6626,7 @@ public Builder setTransactionInfo( } else { transactionInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6181,7 +6647,7 @@ public Builder setTransactionInfo( } else { transactionInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6198,7 +6664,7 @@ public Builder setTransactionInfo( public Builder mergeTransactionInfo( com.google.cloud.discoveryengine.v1beta.TransactionInfo value) { if (transactionInfoBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && transactionInfo_ != null && transactionInfo_ != com.google.cloud.discoveryengine.v1beta.TransactionInfo.getDefaultInstance()) { @@ -6210,7 +6676,7 @@ public Builder mergeTransactionInfo( transactionInfoBuilder_.mergeFrom(value); } if (transactionInfo_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -6226,7 +6692,7 @@ public Builder mergeTransactionInfo( * .google.cloud.discoveryengine.v1beta.TransactionInfo transaction_info = 14; */ public Builder clearTransactionInfo() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); transactionInfo_ = null; if (transactionInfoBuilder_ != null) { transactionInfoBuilder_.dispose(); @@ -6247,7 +6713,7 @@ public Builder clearTransactionInfo() { */ public com.google.cloud.discoveryengine.v1beta.TransactionInfo.Builder getTransactionInfoBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return internalGetTransactionInfoFieldBuilder().getBuilder(); } @@ -6305,7 +6771,7 @@ private void ensureTagIdsIsMutable() { if (!tagIds_.isModifiable()) { tagIds_ = new com.google.protobuf.LazyStringArrayList(tagIds_); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; } /** @@ -6400,7 +6866,7 @@ public Builder setTagIds(int index, java.lang.String value) { } ensureTagIdsIsMutable(); tagIds_.set(index, value); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6425,7 +6891,7 @@ public Builder addTagIds(java.lang.String value) { } ensureTagIdsIsMutable(); tagIds_.add(value); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6447,7 +6913,7 @@ public Builder addTagIds(java.lang.String value) { public Builder addAllTagIds(java.lang.Iterable values) { ensureTagIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tagIds_); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6467,7 +6933,7 @@ public Builder addAllTagIds(java.lang.Iterable values) { */ public Builder clearTagIds() { tagIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); ; onChanged(); return this; @@ -6494,7 +6960,7 @@ public Builder addTagIdsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureTagIdsIsMutable(); tagIds_.add(value); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6506,7 +6972,7 @@ private void ensurePromotionIdsIsMutable() { if (!promotionIds_.isModifiable()) { promotionIds_ = new com.google.protobuf.LazyStringArrayList(promotionIds_); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } /** @@ -6596,7 +7062,7 @@ public Builder setPromotionIds(int index, java.lang.String value) { } ensurePromotionIdsIsMutable(); promotionIds_.set(index, value); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6620,7 +7086,7 @@ public Builder addPromotionIds(java.lang.String value) { } ensurePromotionIdsIsMutable(); promotionIds_.add(value); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6641,7 +7107,7 @@ public Builder addPromotionIds(java.lang.String value) { public Builder addAllPromotionIds(java.lang.Iterable values) { ensurePromotionIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, promotionIds_); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6660,7 +7126,7 @@ public Builder addAllPromotionIds(java.lang.Iterable values) { */ public Builder clearPromotionIds() { promotionIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); ; onChanged(); return this; @@ -6686,7 +7152,7 @@ public Builder addPromotionIdsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensurePromotionIdsIsMutable(); promotionIds_.add(value); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6744,7 +7210,7 @@ public com.google.cloud.discoveryengine.v1beta.CustomAttribute build( if (attributes_ == null) { attributes_ = new com.google.protobuf.MapFieldBuilder<>(attributesConverter); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return attributes_; } @@ -6950,7 +7416,7 @@ public com.google.cloud.discoveryengine.v1beta.CustomAttribute getAttributesOrTh } public Builder clearAttributes() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); internalGetMutableAttributes().clear(); return this; } @@ -7003,7 +7469,7 @@ public Builder removeAttributes(java.lang.String key) { @java.lang.Deprecated public java.util.Map getMutableAttributes() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; return internalGetMutableAttributes().ensureMessageMap(); } @@ -7052,7 +7518,7 @@ public Builder putAttributes( throw new NullPointerException("map value"); } internalGetMutableAttributes().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; return this; } @@ -7103,7 +7569,7 @@ public Builder putAllAttributes( } } internalGetMutableAttributes().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; return this; } @@ -7179,7 +7645,7 @@ public Builder putAllAttributes( * @return Whether the mediaInfo field is set. */ public boolean hasMediaInfo() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -7221,7 +7687,7 @@ public Builder setMediaInfo(com.google.cloud.discoveryengine.v1beta.MediaInfo va } else { mediaInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -7242,7 +7708,7 @@ public Builder setMediaInfo( } else { mediaInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -7258,7 +7724,7 @@ public Builder setMediaInfo( */ public Builder mergeMediaInfo(com.google.cloud.discoveryengine.v1beta.MediaInfo value) { if (mediaInfoBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) + if (((bitField0_ & 0x00100000) != 0) && mediaInfo_ != null && mediaInfo_ != com.google.cloud.discoveryengine.v1beta.MediaInfo.getDefaultInstance()) { @@ -7270,7 +7736,7 @@ public Builder mergeMediaInfo(com.google.cloud.discoveryengine.v1beta.MediaInfo mediaInfoBuilder_.mergeFrom(value); } if (mediaInfo_ != null) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } return this; @@ -7286,7 +7752,7 @@ public Builder mergeMediaInfo(com.google.cloud.discoveryengine.v1beta.MediaInfo * .google.cloud.discoveryengine.v1beta.MediaInfo media_info = 18; */ public Builder clearMediaInfo() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); mediaInfo_ = null; if (mediaInfoBuilder_ != null) { mediaInfoBuilder_.dispose(); @@ -7306,7 +7772,7 @@ public Builder clearMediaInfo() { * .google.cloud.discoveryengine.v1beta.MediaInfo media_info = 18; */ public com.google.cloud.discoveryengine.v1beta.MediaInfo.Builder getMediaInfoBuilder() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return internalGetMediaInfoFieldBuilder().getBuilder(); } @@ -7360,10 +7826,10 @@ public com.google.cloud.discoveryengine.v1beta.MediaInfoOrBuilder getMediaInfoOr java.util.Collections.emptyList(); private void ensurePanelsIsMutable() { - if (!((bitField0_ & 0x00100000) != 0)) { + if (!((bitField0_ & 0x00200000) != 0)) { panels_ = new java.util.ArrayList(panels_); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; } } @@ -7622,7 +8088,7 @@ public Builder addAllPanels( public Builder clearPanels() { if (panelsBuilder_ == null) { panels_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); } else { panelsBuilder_.clear(); @@ -7774,12 +8240,356 @@ public com.google.cloud.discoveryengine.v1beta.PanelInfo.Builder addPanelsBuilde com.google.cloud.discoveryengine.v1beta.PanelInfo, com.google.cloud.discoveryengine.v1beta.PanelInfo.Builder, com.google.cloud.discoveryengine.v1beta.PanelInfoOrBuilder>( - panels_, ((bitField0_ & 0x00100000) != 0), getParentForChildren(), isClean()); + panels_, ((bitField0_ & 0x00200000) != 0), getParentForChildren(), isClean()); panels_ = null; } return panelsBuilder_; } + private com.google.cloud.discoveryengine.v1beta.Feedback feedback_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Feedback, + com.google.cloud.discoveryengine.v1beta.Feedback.Builder, + com.google.cloud.discoveryengine.v1beta.FeedbackOrBuilder> + feedbackBuilder_; + + /** + * + * + *
            +     * Optional. This field is optional except for the `add-feedback` event types.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the feedback field is set. + */ + public boolean hasFeedback() { + return ((bitField0_ & 0x00400000) != 0); + } + + /** + * + * + *
            +     * Optional. This field is optional except for the `add-feedback` event types.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The feedback. + */ + public com.google.cloud.discoveryengine.v1beta.Feedback getFeedback() { + if (feedbackBuilder_ == null) { + return feedback_ == null + ? com.google.cloud.discoveryengine.v1beta.Feedback.getDefaultInstance() + : feedback_; + } else { + return feedbackBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. This field is optional except for the `add-feedback` event types.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFeedback(com.google.cloud.discoveryengine.v1beta.Feedback value) { + if (feedbackBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + feedback_ = value; + } else { + feedbackBuilder_.setMessage(value); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. This field is optional except for the `add-feedback` event types.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFeedback( + com.google.cloud.discoveryengine.v1beta.Feedback.Builder builderForValue) { + if (feedbackBuilder_ == null) { + feedback_ = builderForValue.build(); + } else { + feedbackBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00400000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. This field is optional except for the `add-feedback` event types.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFeedback(com.google.cloud.discoveryengine.v1beta.Feedback value) { + if (feedbackBuilder_ == null) { + if (((bitField0_ & 0x00400000) != 0) + && feedback_ != null + && feedback_ != com.google.cloud.discoveryengine.v1beta.Feedback.getDefaultInstance()) { + getFeedbackBuilder().mergeFrom(value); + } else { + feedback_ = value; + } + } else { + feedbackBuilder_.mergeFrom(value); + } + if (feedback_ != null) { + bitField0_ |= 0x00400000; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. This field is optional except for the `add-feedback` event types.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFeedback() { + bitField0_ = (bitField0_ & ~0x00400000); + feedback_ = null; + if (feedbackBuilder_ != null) { + feedbackBuilder_.dispose(); + feedbackBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. This field is optional except for the `add-feedback` event types.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.Feedback.Builder getFeedbackBuilder() { + bitField0_ |= 0x00400000; + onChanged(); + return internalGetFeedbackFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. This field is optional except for the `add-feedback` event types.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.FeedbackOrBuilder getFeedbackOrBuilder() { + if (feedbackBuilder_ != null) { + return feedbackBuilder_.getMessageOrBuilder(); + } else { + return feedback_ == null + ? com.google.cloud.discoveryengine.v1beta.Feedback.getDefaultInstance() + : feedback_; + } + } + + /** + * + * + *
            +     * Optional. This field is optional except for the `add-feedback` event types.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Feedback, + com.google.cloud.discoveryengine.v1beta.Feedback.Builder, + com.google.cloud.discoveryengine.v1beta.FeedbackOrBuilder> + internalGetFeedbackFieldBuilder() { + if (feedbackBuilder_ == null) { + feedbackBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.Feedback, + com.google.cloud.discoveryengine.v1beta.Feedback.Builder, + com.google.cloud.discoveryengine.v1beta.FeedbackOrBuilder>( + getFeedback(), getParentForChildren(), isClean()); + feedback_ = null; + } + return feedbackBuilder_; + } + + private java.lang.Object entity_ = ""; + + /** + * + * + *
            +     * Optional. Represents the entity for customers that may run multiple
            +     * different entities, domains, sites or regions, for example, `Google US`,
            +     * `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that
            +     * you set `entity` to get better per-entity search, completion, and
            +     * prediction results.
            +     * 
            + * + * string entity = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entity. + */ + public java.lang.String getEntity() { + java.lang.Object ref = entity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Represents the entity for customers that may run multiple
            +     * different entities, domains, sites or regions, for example, `Google US`,
            +     * `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that
            +     * you set `entity` to get better per-entity search, completion, and
            +     * prediction results.
            +     * 
            + * + * string entity = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entity. + */ + public com.google.protobuf.ByteString getEntityBytes() { + java.lang.Object ref = entity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Represents the entity for customers that may run multiple
            +     * different entities, domains, sites or regions, for example, `Google US`,
            +     * `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that
            +     * you set `entity` to get better per-entity search, completion, and
            +     * prediction results.
            +     * 
            + * + * string entity = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The entity to set. + * @return This builder for chaining. + */ + public Builder setEntity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entity_ = value; + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Represents the entity for customers that may run multiple
            +     * different entities, domains, sites or regions, for example, `Google US`,
            +     * `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that
            +     * you set `entity` to get better per-entity search, completion, and
            +     * prediction results.
            +     * 
            + * + * string entity = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEntity() { + entity_ = getDefaultInstance().getEntity(); + bitField0_ = (bitField0_ & ~0x00800000); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Represents the entity for customers that may run multiple
            +     * different entities, domains, sites or regions, for example, `Google US`,
            +     * `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that
            +     * you set `entity` to get better per-entity search, completion, and
            +     * prediction results.
            +     * 
            + * + * string entity = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for entity to set. + * @return This builder for chaining. + */ + public Builder setEntityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entity_ = value; + bitField0_ |= 0x00800000; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.UserEvent) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventOrBuilder.java index a1a708eace6a..5d2eb84a5cc1 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventOrBuilder.java @@ -39,7 +39,6 @@ public interface UserEventOrBuilder * * `view-item-list`: View of a panel or ordered list of Documents. * * `view-home-page`: View of the home page. * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * * `add-feedback`: Add a user feedback. * * Retail-related values: * @@ -50,6 +49,10 @@ public interface UserEventOrBuilder * * * `media-play`: Start/resume watching a video, playing a song, etc. * * `media-complete`: Finished or stopped midway through a video, song, etc. + * + * Custom conversion value: + * + * * `conversion`: Customer defined conversion event. *
            * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -71,7 +74,6 @@ public interface UserEventOrBuilder * * `view-item-list`: View of a panel or ordered list of Documents. * * `view-home-page`: View of the home page. * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * * `add-feedback`: Add a user feedback. * * Retail-related values: * @@ -82,6 +84,10 @@ public interface UserEventOrBuilder * * * `media-play`: Start/resume watching a video, playing a song, etc. * * `media-complete`: Finished or stopped midway through a video, song, etc. + * + * Custom conversion value: + * + * * `conversion`: Customer defined conversion event. *
            * * string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -90,6 +96,52 @@ public interface UserEventOrBuilder */ com.google.protobuf.ByteString getEventTypeBytes(); + /** + * + * + *
            +   * Optional. Conversion type.
            +   *
            +   * Required if
            +   * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +   * is `conversion`. This is a customer-defined conversion name in lowercase
            +   * letters or numbers separated by "-", such as "watch", "good-visit" etc.
            +   *
            +   * Do not set the field if
            +   * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +   * is not `conversion`. This mixes the custom conversion event with predefined
            +   * events like `search`, `view-item` etc.
            +   * 
            + * + * string conversion_type = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The conversionType. + */ + java.lang.String getConversionType(); + + /** + * + * + *
            +   * Optional. Conversion type.
            +   *
            +   * Required if
            +   * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +   * is `conversion`. This is a customer-defined conversion name in lowercase
            +   * letters or numbers separated by "-", such as "watch", "good-visit" etc.
            +   *
            +   * Do not set the field if
            +   * [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type]
            +   * is not `conversion`. This mixes the custom conversion event with predefined
            +   * events like `search`, `view-item` etc.
            +   * 
            + * + * string conversion_type = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for conversionType. + */ + com.google.protobuf.ByteString getConversionTypeBytes(); + /** * * @@ -491,8 +543,9 @@ public interface UserEventOrBuilder * * *
            -   * The filter syntax consists of an expression language for constructing a
            -   * predicate from one or more fields of the documents being filtered.
            +   * Optional. The filter syntax consists of an expression language for
            +   * constructing a predicate from one or more fields of the documents being
            +   * filtered.
                *
                * One example is for `search` events, the associated
                * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] may
            @@ -510,7 +563,7 @@ public interface UserEventOrBuilder
                * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
                * 
            * - * string filter = 9; + * string filter = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The filter. */ @@ -520,8 +573,9 @@ public interface UserEventOrBuilder * * *
            -   * The filter syntax consists of an expression language for constructing a
            -   * predicate from one or more fields of the documents being filtered.
            +   * Optional. The filter syntax consists of an expression language for
            +   * constructing a predicate from one or more fields of the documents being
            +   * filtered.
                *
                * One example is for `search` events, the associated
                * [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] may
            @@ -539,7 +593,7 @@ public interface UserEventOrBuilder
                * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
                * 
            * - * string filter = 9; + * string filter = 9 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for filter. */ @@ -1278,4 +1332,81 @@ com.google.cloud.discoveryengine.v1beta.CustomAttribute getAttributesOrThrow( * */ com.google.cloud.discoveryengine.v1beta.PanelInfoOrBuilder getPanelsOrBuilder(int index); + + /** + * + * + *
            +   * Optional. This field is optional except for the `add-feedback` event types.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the feedback field is set. + */ + boolean hasFeedback(); + + /** + * + * + *
            +   * Optional. This field is optional except for the `add-feedback` event types.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The feedback. + */ + com.google.cloud.discoveryengine.v1beta.Feedback getFeedback(); + + /** + * + * + *
            +   * Optional. This field is optional except for the `add-feedback` event types.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.Feedback feedback = 23 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.FeedbackOrBuilder getFeedbackOrBuilder(); + + /** + * + * + *
            +   * Optional. Represents the entity for customers that may run multiple
            +   * different entities, domains, sites or regions, for example, `Google US`,
            +   * `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that
            +   * you set `entity` to get better per-entity search, completion, and
            +   * prediction results.
            +   * 
            + * + * string entity = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The entity. + */ + java.lang.String getEntity(); + + /** + * + * + *
            +   * Optional. Represents the entity for customers that may run multiple
            +   * different entities, domains, sites or regions, for example, `Google US`,
            +   * `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that
            +   * you set `entity` to get better per-entity search, completion, and
            +   * prediction results.
            +   * 
            + * + * string entity = 25 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for entity. + */ + com.google.protobuf.ByteString getEntityBytes(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventProto.java index 996de52f0d97..ef33a5d42e15 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventProto.java @@ -89,11 +89,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "4google/cloud/discoveryengine/v1beta/user_event.proto\022#google.cloud.discoveryen" + "gine.v1beta\032\037google/api/field_behavior.p" + "roto\032\031google/api/resource.proto\0320google/" - + "cloud/discoveryengine/v1beta/common.prot" - + "o\032\036google/protobuf/duration.proto\032\037google/protobuf/timestamp.proto\"\247" - + "\t\n" + + "cloud/discoveryengine/v1beta/common.proto\0322google/cloud/discoveryengine/v1beta/f" + + "eedback.proto\032\036google/protobuf/duration." + + "proto\032\037google/protobuf/timestamp.proto\"\245\n\n" + "\tUserEvent\022\027\n\n" - + "event_type\030\001 \001(\tB\003\340A\002\022\033\n" + + "event_type\030\001 \001(\tB\003\340A\002\022\034\n" + + "\017conversion_type\030\025 \001(\tB\003\340A\001\022\033\n" + "\016user_pseudo_id\030\002 \001(\tB\003\340A\002\022:\n" + "\006engine\030\023 \001(\tB*\372A\'\n" + "%discoveryengine.googleapis.com/Engine\022A\n\n" @@ -104,8 +105,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023direct_user_request\030\005 \001(\010\022\022\n\n" + "session_id\030\006 \001(\t\022@\n" + "\tpage_info\030\007 \001(\0132-.google.cloud.discoveryengine.v1beta.PageInfo\022\031\n" - + "\021attribution_token\030\010 \001(\t\022\016\n" - + "\006filter\030\t \001(\t\022D\n" + + "\021attribution_token\030\010 \001(\t\022\023\n" + + "\006filter\030\t \001(\tB\003\340A\001\022D\n" + "\tdocuments\030\n" + " \003(\01321.google.cloud.discoveryengine.v1beta.DocumentInfo\022=\n" + "\005panel\030\013 \001(\0132..google.cloud.discoveryengine.v1beta.PanelInfo\022D\n" @@ -113,19 +114,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132/.google.cloud.discoveryengine.v1beta.SearchInfo\022L\n" + "\017completion_info\030\r" + " \001(\01323.google.cloud.discoveryengine.v1beta.CompletionInfo\022N\n" - + "\020transaction_info\030\016 \001(\013" - + "24.google.cloud.discoveryengine.v1beta.TransactionInfo\022\017\n" + + "\020transaction_info\030\016" + + " \001(\01324.google.cloud.discoveryengine.v1beta.TransactionInfo\022\017\n" + "\007tag_ids\030\017 \003(\t\022\025\n\r" + "promotion_ids\030\020 \003(\t\022R\n\n" - + "attributes\030\021 \003(\0132>.goo" - + "gle.cloud.discoveryengine.v1beta.UserEvent.AttributesEntry\022B\n\n" + + "attributes\030\021 \003(" + + "\0132>.google.cloud.discoveryengine.v1beta.UserEvent.AttributesEntry\022B\n\n" + "media_info\030\022 \001(\0132..google.cloud.discoveryengine.v1beta.MediaInfo\022C\n" - + "\006panels\030\026" - + " \003(\0132..google.cloud.discoveryengine.v1beta.PanelInfoB\003\340A\001\032g\n" + + "\006panels\030\026 \003(\0132..google.c" + + "loud.discoveryengine.v1beta.PanelInfoB\003\340A\001\022D\n" + + "\010feedback\030\027" + + " \001(\0132-.google.cloud.discoveryengine.v1beta.FeedbackB\003\340A\001\022\023\n" + + "\006entity\030\031 \001(\tB\003\340A\001\032g\n" + "\017AttributesEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002 \001" - + "(\01324.google.cloud.discoveryengine.v1beta.CustomAttribute:\0028\001\"Y\n" + + "\005value\030\002 \001(\01324.google.cloud.disc" + + "overyengine.v1beta.CustomAttribute:\0028\001\"Y\n" + "\010PageInfo\022\023\n" + "\013pageview_id\030\001 \001(\t\022\025\n\r" + "page_category\030\002 \001(\t\022\013\n" @@ -149,7 +153,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_valueB\006\n" + "\004_taxB\007\n" + "\005_costB\021\n" - + "\017_discount_value\"\320\001\n" + + "\017_discount_value\"\211\002\n" + "\014DocumentInfo\022\014\n" + "\002id\030\001 \001(\tH\000\022<\n" + "\004name\030\002 \001(\tB,\372A)\n" @@ -157,9 +161,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003uri\030\006 \001(\tH\000\022\025\n" + "\010quantity\030\003 \001(\005H\001\210\001\001\022\025\n\r" + "promotion_ids\030\004 \003(\t\022\023\n" - + "\006joined\030\005 \001(\010B\003\340A\003B\025\n" + + "\006joined\030\005 \001(\010B\003\340A\003\022\"\n" + + "\020conversion_value\030\007 \001(\002B\003\340A\001H\002\210\001\001B\025\n" + "\023document_descriptorB\013\n" - + "\t_quantity\"\337\001\n" + + "\t_quantityB\023\n" + + "\021_conversion_value\"\337\001\n" + "\tPanelInfo\022\025\n" + "\010panel_id\030\002 \001(\tB\003\340A\002\022\024\n" + "\014display_name\030\003 \001(\t\022\033\n" @@ -173,11 +179,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027media_progress_duration\030\001 \001(\0132\031.google.protobuf.Duration\022&\n" + "\031media_progress_percentage\030\002 \001(\002H\000\210\001\001B\034\n" + "\032_media_progress_percentageB\225\002\n" - + "\'com.google.cloud.discoveryengine.v1betaB\016UserEventProtoP\001ZQ" - + "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginep" - + "b\242\002\017DISCOVERYENGINE\252\002#Google.Cloud.Disco" - + "veryEngine.V1Beta\312\002#Google\\Cloud\\Discove" - + "ryEngine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" + + "\'com.google.cloud.discoveryengine.v1betaB\016UserEventProtoP\001ZQcloud" + + ".google.com/go/discoveryengine/apiv1beta" + + "/discoveryenginepb;discoveryenginepb\242\002\017D" + + "ISCOVERYENGINE\252\002#Google.Cloud.DiscoveryE" + + "ngine.V1Beta\312\002#Google\\Cloud\\DiscoveryEng" + + "ine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -186,6 +193,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.discoveryengine.v1beta.CommonProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.FeedbackProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); @@ -196,6 +204,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_cloud_discoveryengine_v1beta_UserEvent_descriptor, new java.lang.String[] { "EventType", + "ConversionType", "UserPseudoId", "Engine", "DataStore", @@ -216,6 +225,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Attributes", "MediaInfo", "Panels", + "Feedback", + "Entity", }); internal_static_google_cloud_discoveryengine_v1beta_UserEvent_AttributesEntry_descriptor = internal_static_google_cloud_discoveryengine_v1beta_UserEvent_descriptor.getNestedType(0); @@ -263,7 +274,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_discoveryengine_v1beta_DocumentInfo_descriptor, new java.lang.String[] { - "Id", "Name", "Uri", "Quantity", "PromotionIds", "Joined", "DocumentDescriptor", + "Id", + "Name", + "Uri", + "Quantity", + "PromotionIds", + "Joined", + "ConversionValue", + "DocumentDescriptor", }); internal_static_google_cloud_discoveryengine_v1beta_PanelInfo_descriptor = getDescriptor().getMessageType(6); @@ -285,6 +303,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.discoveryengine.v1beta.CommonProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.FeedbackProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceProto.java index 1645fda600f5..e7bd108509f3 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceProto.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserEventServiceProto.java @@ -80,7 +80,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003uri\030\003 \001(\tH\000\210\001\001\022\020\n" + "\003ets\030\004 \001(\003H\001\210\001\001B\006\n" + "\004_uriB\006\n" - + "\004_ets2\374\014\n" + + "\004_ets2\373\016\n" + "\020UserEventService\022\204\003\n" + "\016WriteUserEvent\022:.google.cloud.discoveryengine.v1beta.WriteUserEventReque" + "st\032..google.cloud.discoveryengine.v1beta" @@ -102,22 +102,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".cloud.discoveryengine.v1beta.PurgeUserE" + "ventsMetadata\202\323\344\223\002\244\001\"E/v1beta/{parent=pr" + "ojects/*/locations/*/dataStores/*}/userEvents:purge:\001*ZX\"S/v1beta/{parent=projec" - + "ts/*/locations/*/collections/*/dataStores/*}/userEvents:purge:\001*\022\236\003\n" + + "ts/*/locations/*/collections/*/dataStores/*}/userEvents:purge:\001*\022\336\003\n" + "\020ImportUserEvents\022<.google.cloud.discoveryengine.v1b" - + "eta.ImportUserEventsRequest\032\035.google.longrunning.Operation\"\254\002\312A|\n" + + "eta.ImportUserEventsRequest\032\035.google.longrunning.Operation\"\354\002\312A|\n" + "\"9/v1beta/{parent=projects/*/location" + + "s/*}/userEvents:import:\001*\032\220\002\312A\036discovery" + + "engine.googleapis.com\322A\353\001https://www.goo" + + "gleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/discoveryengine." + + "assist.readwrite,https://www.googleapis.com/auth/discoveryengine.readwrite,https" + + "://www.googleapis.com/auth/discoveryengine.serving.readwriteB\234\002\n" + + "\'com.google.cloud.discoveryengine.v1betaB\025UserEventServi" + + "ceProtoP\001ZQcloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;disco" + + "veryenginepb\242\002\017DISCOVERYENGINE\252\002#Google." + + "Cloud.DiscoveryEngine.V1Beta\312\002#Google\\Cl" + + "oud\\DiscoveryEngine\\V1beta\352\002&Google::Cloud::DiscoveryEngine::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserInfo.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserInfo.java index c20e7611759d..05e6f3089e26 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserInfo.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserInfo.java @@ -54,6 +54,7 @@ private UserInfo(com.google.protobuf.GeneratedMessage.Builder builder) { private UserInfo() { userId_ = ""; userAgent_ = ""; + timeZone_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -71,6 +72,1128 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.discoveryengine.v1beta.UserInfo.Builder.class); } + public interface PreciseLocationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. Location represented by a latitude/longitude point.
            +     * 
            + * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the point field is set. + */ + boolean hasPoint(); + + /** + * + * + *
            +     * Optional. Location represented by a latitude/longitude point.
            +     * 
            + * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The point. + */ + com.google.type.LatLng getPoint(); + + /** + * + * + *
            +     * Optional. Location represented by a latitude/longitude point.
            +     * 
            + * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.type.LatLngOrBuilder getPointOrBuilder(); + + /** + * + * + *
            +     * Optional. Location represented by a natural language address. Will
            +     * later be geocoded and converted to either a point or a polygon.
            +     * 
            + * + * string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the address field is set. + */ + boolean hasAddress(); + + /** + * + * + *
            +     * Optional. Location represented by a natural language address. Will
            +     * later be geocoded and converted to either a point or a polygon.
            +     * 
            + * + * string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The address. + */ + java.lang.String getAddress(); + + /** + * + * + *
            +     * Optional. Location represented by a natural language address. Will
            +     * later be geocoded and converted to either a point or a polygon.
            +     * 
            + * + * string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for address. + */ + com.google.protobuf.ByteString getAddressBytes(); + + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation.LocationCase getLocationCase(); + } + + /** + * + * + *
            +   * Precise location info with multiple representation options.
            +   * Currently only latitude and longitude point is supported.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation} + */ + public static final class PreciseLocation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation) + PreciseLocationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PreciseLocation"); + } + + // Use PreciseLocation.newBuilder() to construct. + private PreciseLocation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PreciseLocation() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_UserInfo_PreciseLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_UserInfo_PreciseLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation.class, + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation.Builder.class); + } + + private int locationCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object location_; + + public enum LocationCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + POINT(1), + ADDRESS(2), + LOCATION_NOT_SET(0); + private final int value; + + private LocationCase(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 LocationCase valueOf(int value) { + return forNumber(value); + } + + public static LocationCase forNumber(int value) { + switch (value) { + case 1: + return POINT; + case 2: + return ADDRESS; + case 0: + return LOCATION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public LocationCase getLocationCase() { + return LocationCase.forNumber(locationCase_); + } + + public static final int POINT_FIELD_NUMBER = 1; + + /** + * + * + *
            +     * Optional. Location represented by a latitude/longitude point.
            +     * 
            + * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the point field is set. + */ + @java.lang.Override + public boolean hasPoint() { + return locationCase_ == 1; + } + + /** + * + * + *
            +     * Optional. Location represented by a latitude/longitude point.
            +     * 
            + * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The point. + */ + @java.lang.Override + public com.google.type.LatLng getPoint() { + if (locationCase_ == 1) { + return (com.google.type.LatLng) location_; + } + return com.google.type.LatLng.getDefaultInstance(); + } + + /** + * + * + *
            +     * Optional. Location represented by a latitude/longitude point.
            +     * 
            + * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.type.LatLngOrBuilder getPointOrBuilder() { + if (locationCase_ == 1) { + return (com.google.type.LatLng) location_; + } + return com.google.type.LatLng.getDefaultInstance(); + } + + public static final int ADDRESS_FIELD_NUMBER = 2; + + /** + * + * + *
            +     * Optional. Location represented by a natural language address. Will
            +     * later be geocoded and converted to either a point or a polygon.
            +     * 
            + * + * string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the address field is set. + */ + public boolean hasAddress() { + return locationCase_ == 2; + } + + /** + * + * + *
            +     * Optional. Location represented by a natural language address. Will
            +     * later be geocoded and converted to either a point or a polygon.
            +     * 
            + * + * string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The address. + */ + public java.lang.String getAddress() { + java.lang.Object ref = ""; + if (locationCase_ == 2) { + 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(); + if (locationCase_ == 2) { + location_ = s; + } + return s; + } + } + + /** + * + * + *
            +     * Optional. Location represented by a natural language address. Will
            +     * later be geocoded and converted to either a point or a polygon.
            +     * 
            + * + * string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for address. + */ + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = ""; + if (locationCase_ == 2) { + ref = location_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (locationCase_ == 2) { + 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 (locationCase_ == 1) { + output.writeMessage(1, (com.google.type.LatLng) location_); + } + if (locationCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, location_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (locationCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.type.LatLng) location_); + } + if (locationCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, 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.discoveryengine.v1beta.UserInfo.PreciseLocation)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation other = + (com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation) obj; + + if (!getLocationCase().equals(other.getLocationCase())) return false; + switch (locationCase_) { + case 1: + if (!getPoint().equals(other.getPoint())) return false; + break; + case 2: + if (!getAddress().equals(other.getAddress())) 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 (locationCase_) { + case 1: + hash = (37 * hash) + POINT_FIELD_NUMBER; + hash = (53 * hash) + getPoint().hashCode(); + break; + case 2: + hash = (37 * hash) + ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getAddress().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation 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.v1beta.UserInfo.PreciseLocation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation parseFrom( + 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.v1beta.UserInfo.PreciseLocation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Precise location info with multiple representation options.
            +     * Currently only latitude and longitude point is supported.
            +     * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation) + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_UserInfo_PreciseLocation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_UserInfo_PreciseLocation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation.class, + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation.Builder.class); + } + + // Construct using + // com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (pointBuilder_ != null) { + pointBuilder_.clear(); + } + locationCase_ = 0; + location_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.CommonProto + .internal_static_google_cloud_discoveryengine_v1beta_UserInfo_PreciseLocation_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation + getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation build() { + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation buildPartial() { + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation result = + new com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation result) { + result.locationCase_ = locationCase_; + result.location_ = this.location_; + if (locationCase_ == 1 && pointBuilder_ != null) { + result.location_ = pointBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation) { + return mergeFrom( + (com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation other) { + if (other + == com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation + .getDefaultInstance()) return this; + switch (other.getLocationCase()) { + case POINT: + { + mergePoint(other.getPoint()); + break; + } + case ADDRESS: + { + locationCase_ = 2; + location_ = other.location_; + onChanged(); + break; + } + case LOCATION_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(internalGetPointFieldBuilder().getBuilder(), extensionRegistry); + locationCase_ = 1; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + locationCase_ = 2; + location_ = s; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int locationCase_ = 0; + private java.lang.Object location_; + + public LocationCase getLocationCase() { + return LocationCase.forNumber(locationCase_); + } + + public Builder clearLocation() { + locationCase_ = 0; + location_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder> + pointBuilder_; + + /** + * + * + *
            +       * Optional. Location represented by a latitude/longitude point.
            +       * 
            + * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the point field is set. + */ + @java.lang.Override + public boolean hasPoint() { + return locationCase_ == 1; + } + + /** + * + * + *
            +       * Optional. Location represented by a latitude/longitude point.
            +       * 
            + * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The point. + */ + @java.lang.Override + public com.google.type.LatLng getPoint() { + if (pointBuilder_ == null) { + if (locationCase_ == 1) { + return (com.google.type.LatLng) location_; + } + return com.google.type.LatLng.getDefaultInstance(); + } else { + if (locationCase_ == 1) { + return pointBuilder_.getMessage(); + } + return com.google.type.LatLng.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * Optional. Location represented by a latitude/longitude point.
            +       * 
            + * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setPoint(com.google.type.LatLng value) { + if (pointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + onChanged(); + } else { + pointBuilder_.setMessage(value); + } + locationCase_ = 1; + return this; + } + + /** + * + * + *
            +       * Optional. Location represented by a latitude/longitude point.
            +       * 
            + * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setPoint(com.google.type.LatLng.Builder builderForValue) { + if (pointBuilder_ == null) { + location_ = builderForValue.build(); + onChanged(); + } else { + pointBuilder_.setMessage(builderForValue.build()); + } + locationCase_ = 1; + return this; + } + + /** + * + * + *
            +       * Optional. Location represented by a latitude/longitude point.
            +       * 
            + * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergePoint(com.google.type.LatLng value) { + if (pointBuilder_ == null) { + if (locationCase_ == 1 && location_ != com.google.type.LatLng.getDefaultInstance()) { + location_ = + com.google.type.LatLng.newBuilder((com.google.type.LatLng) location_) + .mergeFrom(value) + .buildPartial(); + } else { + location_ = value; + } + onChanged(); + } else { + if (locationCase_ == 1) { + pointBuilder_.mergeFrom(value); + } else { + pointBuilder_.setMessage(value); + } + } + locationCase_ = 1; + return this; + } + + /** + * + * + *
            +       * Optional. Location represented by a latitude/longitude point.
            +       * 
            + * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearPoint() { + if (pointBuilder_ == null) { + if (locationCase_ == 1) { + locationCase_ = 0; + location_ = null; + onChanged(); + } + } else { + if (locationCase_ == 1) { + locationCase_ = 0; + location_ = null; + } + pointBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Location represented by a latitude/longitude point.
            +       * 
            + * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.type.LatLng.Builder getPointBuilder() { + return internalGetPointFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Location represented by a latitude/longitude point.
            +       * 
            + * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.type.LatLngOrBuilder getPointOrBuilder() { + if ((locationCase_ == 1) && (pointBuilder_ != null)) { + return pointBuilder_.getMessageOrBuilder(); + } else { + if (locationCase_ == 1) { + return (com.google.type.LatLng) location_; + } + return com.google.type.LatLng.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * Optional. Location represented by a latitude/longitude point.
            +       * 
            + * + * .google.type.LatLng point = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder> + internalGetPointFieldBuilder() { + if (pointBuilder_ == null) { + if (!(locationCase_ == 1)) { + location_ = com.google.type.LatLng.getDefaultInstance(); + } + pointBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.type.LatLng, + com.google.type.LatLng.Builder, + com.google.type.LatLngOrBuilder>( + (com.google.type.LatLng) location_, getParentForChildren(), isClean()); + location_ = null; + } + locationCase_ = 1; + onChanged(); + return pointBuilder_; + } + + /** + * + * + *
            +       * Optional. Location represented by a natural language address. Will
            +       * later be geocoded and converted to either a point or a polygon.
            +       * 
            + * + * string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the address field is set. + */ + @java.lang.Override + public boolean hasAddress() { + return locationCase_ == 2; + } + + /** + * + * + *
            +       * Optional. Location represented by a natural language address. Will
            +       * later be geocoded and converted to either a point or a polygon.
            +       * 
            + * + * string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The address. + */ + @java.lang.Override + public java.lang.String getAddress() { + java.lang.Object ref = ""; + if (locationCase_ == 2) { + ref = location_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (locationCase_ == 2) { + location_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. Location represented by a natural language address. Will
            +       * later be geocoded and converted to either a point or a polygon.
            +       * 
            + * + * string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for address. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAddressBytes() { + java.lang.Object ref = ""; + if (locationCase_ == 2) { + ref = location_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (locationCase_ == 2) { + location_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. Location represented by a natural language address. Will
            +       * later be geocoded and converted to either a point or a polygon.
            +       * 
            + * + * string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The address to set. + * @return This builder for chaining. + */ + public Builder setAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + locationCase_ = 2; + location_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Location represented by a natural language address. Will
            +       * later be geocoded and converted to either a point or a polygon.
            +       * 
            + * + * string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAddress() { + if (locationCase_ == 2) { + locationCase_ = 0; + location_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Location represented by a natural language address. Will
            +       * later be geocoded and converted to either a point or a polygon.
            +       * 
            + * + * string address = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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); + locationCase_ = 2; + location_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation) + private static final com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation(); + } + + public static com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PreciseLocation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.UserInfo.PreciseLocation + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; public static final int USER_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -91,6 +1214,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * The field must be a UTF-8 encoded string with a length limit of 128 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * + * Represents an opaque ID to the Search API. The Search API doesn't + * interpret the value in any way. This field is used to associate events + * with a user across sessions if the events are being uploaded. * * * string user_id = 1; @@ -125,6 +1252,10 @@ public java.lang.String getUserId() { * * The field must be a UTF-8 encoded string with a length limit of 128 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * + * Represents an opaque ID to the Search API. The Search API doesn't + * interpret the value in any way. This field is used to associate events + * with a user across sessions if the events are being uploaded. * * * string user_id = 1; @@ -168,53 +1299,172 @@ public com.google.protobuf.ByteString getUserIdBytes() { * * string user_agent = 2; * - * @return The userAgent. + * @return The userAgent. + */ + @java.lang.Override + public java.lang.String getUserAgent() { + java.lang.Object ref = userAgent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userAgent_ = s; + return s; + } + } + + /** + * + * + *
            +   * User agent as included in the HTTP header.
            +   *
            +   * The field must be a UTF-8 encoded string with a length limit of 1,000
            +   * characters. Otherwise, an `INVALID_ARGUMENT` error is returned.
            +   *
            +   * This should not be set when using the client side event reporting with
            +   * GTM or JavaScript tag in
            +   * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1beta.UserEventService.CollectUserEvent]
            +   * or if
            +   * [UserEvent.direct_user_request][google.cloud.discoveryengine.v1beta.UserEvent.direct_user_request]
            +   * is set.
            +   * 
            + * + * string user_agent = 2; + * + * @return The bytes for userAgent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserAgentBytes() { + java.lang.Object ref = userAgent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userAgent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIME_ZONE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeZone_ = ""; + + /** + * + * + *
            +   * Optional. IANA time zone, e.g. Europe/Budapest.
            +   * 
            + * + * string time_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + @java.lang.Override + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. IANA time zone, e.g. Europe/Budapest.
            +   * 
            + * + * string time_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for timeZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PRECISE_LOCATION_FIELD_NUMBER = 4; + private com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation preciseLocation_; + + /** + * + * + *
            +   * Optional. Input only. Precise location of the user.
            +   * It is used in Custom Ranking to calculate the distance between the user and
            +   * the relevant documents.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the preciseLocation field is set. */ @java.lang.Override - public java.lang.String getUserAgent() { - java.lang.Object ref = userAgent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - userAgent_ = s; - return s; - } + public boolean hasPreciseLocation() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
            -   * User agent as included in the HTTP header.
            +   * Optional. Input only. Precise location of the user.
            +   * It is used in Custom Ranking to calculate the distance between the user and
            +   * the relevant documents.
            +   * 
            * - * The field must be a UTF-8 encoded string with a length limit of 1,000 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * + * .google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * * - * This should not be set when using the client side event reporting with - * GTM or JavaScript tag in - * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1beta.UserEventService.CollectUserEvent] - * or if - * [UserEvent.direct_user_request][google.cloud.discoveryengine.v1beta.UserEvent.direct_user_request] - * is set. - * + * @return The preciseLocation. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation getPreciseLocation() { + return preciseLocation_ == null + ? com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation.getDefaultInstance() + : preciseLocation_; + } + + /** * - * string user_agent = 2; * - * @return The bytes for userAgent. + *
            +   * Optional. Input only. Precise location of the user.
            +   * It is used in Custom Ranking to calculate the distance between the user and
            +   * the relevant documents.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.protobuf.ByteString getUserAgentBytes() { - java.lang.Object ref = userAgent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - userAgent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocationOrBuilder + getPreciseLocationOrBuilder() { + return preciseLocation_ == null + ? com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation.getDefaultInstance() + : preciseLocation_; } private byte memoizedIsInitialized = -1; @@ -237,6 +1487,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userAgent_)) { com.google.protobuf.GeneratedMessage.writeString(output, 2, userAgent_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeZone_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, timeZone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getPreciseLocation()); + } getUnknownFields().writeTo(output); } @@ -252,6 +1508,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userAgent_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, userAgent_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(timeZone_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, timeZone_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPreciseLocation()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -270,6 +1532,11 @@ public boolean equals(final java.lang.Object obj) { if (!getUserId().equals(other.getUserId())) return false; if (!getUserAgent().equals(other.getUserAgent())) return false; + if (!getTimeZone().equals(other.getTimeZone())) return false; + if (hasPreciseLocation() != other.hasPreciseLocation()) return false; + if (hasPreciseLocation()) { + if (!getPreciseLocation().equals(other.getPreciseLocation())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -285,6 +1552,12 @@ public int hashCode() { hash = (53 * hash) + getUserId().hashCode(); hash = (37 * hash) + USER_AGENT_FIELD_NUMBER; hash = (53 * hash) + getUserAgent().hashCode(); + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + if (hasPreciseLocation()) { + hash = (37 * hash) + PRECISE_LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getPreciseLocation().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -415,10 +1688,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.discoveryengine.v1beta.UserInfo.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPreciseLocationFieldBuilder(); + } } @java.lang.Override @@ -427,6 +1709,12 @@ public Builder clear() { bitField0_ = 0; userId_ = ""; userAgent_ = ""; + timeZone_ = ""; + preciseLocation_ = null; + if (preciseLocationBuilder_ != null) { + preciseLocationBuilder_.dispose(); + preciseLocationBuilder_ = null; + } return this; } @@ -469,6 +1757,16 @@ private void buildPartial0(com.google.cloud.discoveryengine.v1beta.UserInfo resu if (((from_bitField0_ & 0x00000002) != 0)) { result.userAgent_ = userAgent_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.timeZone_ = timeZone_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.preciseLocation_ = + preciseLocationBuilder_ == null ? preciseLocation_ : preciseLocationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -494,6 +1792,14 @@ public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UserInfo other) bitField0_ |= 0x00000002; onChanged(); } + if (!other.getTimeZone().isEmpty()) { + timeZone_ = other.timeZone_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasPreciseLocation()) { + mergePreciseLocation(other.getPreciseLocation()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -532,6 +1838,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + timeZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetPreciseLocationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -568,6 +1887,10 @@ public Builder mergeFrom( * * The field must be a UTF-8 encoded string with a length limit of 128 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * + * Represents an opaque ID to the Search API. The Search API doesn't + * interpret the value in any way. This field is used to associate events + * with a user across sessions if the events are being uploaded. * * * string user_id = 1; @@ -601,6 +1924,10 @@ public java.lang.String getUserId() { * * The field must be a UTF-8 encoded string with a length limit of 128 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * + * Represents an opaque ID to the Search API. The Search API doesn't + * interpret the value in any way. This field is used to associate events + * with a user across sessions if the events are being uploaded. * * * string user_id = 1; @@ -634,6 +1961,10 @@ public com.google.protobuf.ByteString getUserIdBytes() { * * The field must be a UTF-8 encoded string with a length limit of 128 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * + * Represents an opaque ID to the Search API. The Search API doesn't + * interpret the value in any way. This field is used to associate events + * with a user across sessions if the events are being uploaded. * * * string user_id = 1; @@ -666,6 +1997,10 @@ public Builder setUserId(java.lang.String value) { * * The field must be a UTF-8 encoded string with a length limit of 128 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * + * Represents an opaque ID to the Search API. The Search API doesn't + * interpret the value in any way. This field is used to associate events + * with a user across sessions if the events are being uploaded. * * * string user_id = 1; @@ -694,6 +2029,10 @@ public Builder clearUserId() { * * The field must be a UTF-8 encoded string with a length limit of 128 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * + * Represents an opaque ID to the Search API. The Search API doesn't + * interpret the value in any way. This field is used to associate events + * with a user across sessions if the events are being uploaded. * * * string user_id = 1; @@ -873,6 +2212,354 @@ public Builder setUserAgentBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object timeZone_ = ""; + + /** + * + * + *
            +     * Optional. IANA time zone, e.g. Europe/Budapest.
            +     * 
            + * + * string time_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. IANA time zone, e.g. Europe/Budapest.
            +     * 
            + * + * string time_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for timeZone. + */ + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. IANA time zone, e.g. Europe/Budapest.
            +     * 
            + * + * string time_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + timeZone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. IANA time zone, e.g. Europe/Budapest.
            +     * 
            + * + * string time_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTimeZone() { + timeZone_ = getDefaultInstance().getTimeZone(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. IANA time zone, e.g. Europe/Budapest.
            +     * 
            + * + * string time_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + timeZone_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation preciseLocation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation, + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation.Builder, + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocationOrBuilder> + preciseLocationBuilder_; + + /** + * + * + *
            +     * Optional. Input only. Precise location of the user.
            +     * It is used in Custom Ranking to calculate the distance between the user and
            +     * the relevant documents.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the preciseLocation field is set. + */ + public boolean hasPreciseLocation() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Optional. Input only. Precise location of the user.
            +     * It is used in Custom Ranking to calculate the distance between the user and
            +     * the relevant documents.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The preciseLocation. + */ + public com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation getPreciseLocation() { + if (preciseLocationBuilder_ == null) { + return preciseLocation_ == null + ? com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation.getDefaultInstance() + : preciseLocation_; + } else { + return preciseLocationBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Input only. Precise location of the user.
            +     * It is used in Custom Ranking to calculate the distance between the user and
            +     * the relevant documents.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPreciseLocation( + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation value) { + if (preciseLocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + preciseLocation_ = value; + } else { + preciseLocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Input only. Precise location of the user.
            +     * It is used in Custom Ranking to calculate the distance between the user and
            +     * the relevant documents.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPreciseLocation( + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation.Builder builderForValue) { + if (preciseLocationBuilder_ == null) { + preciseLocation_ = builderForValue.build(); + } else { + preciseLocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Input only. Precise location of the user.
            +     * It is used in Custom Ranking to calculate the distance between the user and
            +     * the relevant documents.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePreciseLocation( + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation value) { + if (preciseLocationBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && preciseLocation_ != null + && preciseLocation_ + != com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation + .getDefaultInstance()) { + getPreciseLocationBuilder().mergeFrom(value); + } else { + preciseLocation_ = value; + } + } else { + preciseLocationBuilder_.mergeFrom(value); + } + if (preciseLocation_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Input only. Precise location of the user.
            +     * It is used in Custom Ranking to calculate the distance between the user and
            +     * the relevant documents.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPreciseLocation() { + bitField0_ = (bitField0_ & ~0x00000008); + preciseLocation_ = null; + if (preciseLocationBuilder_ != null) { + preciseLocationBuilder_.dispose(); + preciseLocationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Input only. Precise location of the user.
            +     * It is used in Custom Ranking to calculate the distance between the user and
            +     * the relevant documents.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation.Builder + getPreciseLocationBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetPreciseLocationFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Input only. Precise location of the user.
            +     * It is used in Custom Ranking to calculate the distance between the user and
            +     * the relevant documents.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocationOrBuilder + getPreciseLocationOrBuilder() { + if (preciseLocationBuilder_ != null) { + return preciseLocationBuilder_.getMessageOrBuilder(); + } else { + return preciseLocation_ == null + ? com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation.getDefaultInstance() + : preciseLocation_; + } + } + + /** + * + * + *
            +     * Optional. Input only. Precise location of the user.
            +     * It is used in Custom Ranking to calculate the distance between the user and
            +     * the relevant documents.
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation, + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation.Builder, + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocationOrBuilder> + internalGetPreciseLocationFieldBuilder() { + if (preciseLocationBuilder_ == null) { + preciseLocationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation, + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation.Builder, + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocationOrBuilder>( + getPreciseLocation(), getParentForChildren(), isClean()); + preciseLocation_ = null; + } + return preciseLocationBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.UserInfo) } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserInfoOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserInfoOrBuilder.java index 9b2340dd2a70..c8d521b3ef55 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserInfoOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserInfoOrBuilder.java @@ -41,6 +41,10 @@ public interface UserInfoOrBuilder * * The field must be a UTF-8 encoded string with a length limit of 128 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * + * Represents an opaque ID to the Search API. The Search API doesn't + * interpret the value in any way. This field is used to associate events + * with a user across sessions if the events are being uploaded. * * * string user_id = 1; @@ -64,6 +68,10 @@ public interface UserInfoOrBuilder * * The field must be a UTF-8 encoded string with a length limit of 128 * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + * + * Represents an opaque ID to the Search API. The Search API doesn't + * interpret the value in any way. This field is used to associate events + * with a user across sessions if the events are being uploaded. * * * string user_id = 1; @@ -117,4 +125,80 @@ public interface UserInfoOrBuilder * @return The bytes for userAgent. */ com.google.protobuf.ByteString getUserAgentBytes(); + + /** + * + * + *
            +   * Optional. IANA time zone, e.g. Europe/Budapest.
            +   * 
            + * + * string time_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The timeZone. + */ + java.lang.String getTimeZone(); + + /** + * + * + *
            +   * Optional. IANA time zone, e.g. Europe/Budapest.
            +   * 
            + * + * string time_zone = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for timeZone. + */ + com.google.protobuf.ByteString getTimeZoneBytes(); + + /** + * + * + *
            +   * Optional. Input only. Precise location of the user.
            +   * It is used in Custom Ranking to calculate the distance between the user and
            +   * the relevant documents.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the preciseLocation field is set. + */ + boolean hasPreciseLocation(); + + /** + * + * + *
            +   * Optional. Input only. Precise location of the user.
            +   * It is used in Custom Ranking to calculate the distance between the user and
            +   * the relevant documents.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The preciseLocation. + */ + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation getPreciseLocation(); + + /** + * + * + *
            +   * Optional. Input only. Precise location of the user.
            +   * It is used in Custom Ranking to calculate the distance between the user and
            +   * the relevant documents.
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocation precise_location = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.discoveryengine.v1beta.UserInfo.PreciseLocationOrBuilder + getPreciseLocationOrBuilder(); } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicense.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicense.java new file mode 100644 index 000000000000..793dba8624f9 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicense.java @@ -0,0 +1,2420 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * User License information assigned by the admin.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UserLicense} + */ +@com.google.protobuf.Generated +public final class UserLicense extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.UserLicense) + UserLicenseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UserLicense"); + } + + // Use UserLicense.newBuilder() to construct. + private UserLicense(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UserLicense() { + userPrincipal_ = ""; + userProfile_ = ""; + licenseAssignmentState_ = 0; + licenseConfig_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseProto + .internal_static_google_cloud_discoveryengine_v1beta_UserLicense_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseProto + .internal_static_google_cloud_discoveryengine_v1beta_UserLicense_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UserLicense.class, + com.google.cloud.discoveryengine.v1beta.UserLicense.Builder.class); + } + + /** + * + * + *
            +   * License assignment state enumeration.
            +   * 
            + * + * Protobuf enum {@code google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState} + */ + public enum LicenseAssignmentState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Default value.
            +     * 
            + * + * LICENSE_ASSIGNMENT_STATE_UNSPECIFIED = 0; + */ + LICENSE_ASSIGNMENT_STATE_UNSPECIFIED(0), + /** + * + * + *
            +     * License assigned to the user.
            +     * 
            + * + * ASSIGNED = 1; + */ + ASSIGNED(1), + /** + * + * + *
            +     * No license assigned to the user.
            +     * Deprecated, translated to NO_LICENSE.
            +     * 
            + * + * UNASSIGNED = 2; + */ + UNASSIGNED(2), + /** + * + * + *
            +     * No license assigned to the user.
            +     * 
            + * + * NO_LICENSE = 3; + */ + NO_LICENSE(3), + /** + * + * + *
            +     * User attempted to login but no license assigned to the user.
            +     * This state is only used for no user first time login attempt but cannot
            +     * get license assigned.
            +     * Users already logged in but cannot get license assigned will be assigned
            +     * NO_LICENSE state(License could be unassigned by admin).
            +     * 
            + * + * NO_LICENSE_ATTEMPTED_LOGIN = 4; + */ + NO_LICENSE_ATTEMPTED_LOGIN(4), + /** + * + * + *
            +     * User is blocked from assigning a license.
            +     * 
            + * + * BLOCKED = 5; + */ + BLOCKED(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "LicenseAssignmentState"); + } + + /** + * + * + *
            +     * Default value.
            +     * 
            + * + * LICENSE_ASSIGNMENT_STATE_UNSPECIFIED = 0; + */ + public static final int LICENSE_ASSIGNMENT_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * License assigned to the user.
            +     * 
            + * + * ASSIGNED = 1; + */ + public static final int ASSIGNED_VALUE = 1; + + /** + * + * + *
            +     * No license assigned to the user.
            +     * Deprecated, translated to NO_LICENSE.
            +     * 
            + * + * UNASSIGNED = 2; + */ + public static final int UNASSIGNED_VALUE = 2; + + /** + * + * + *
            +     * No license assigned to the user.
            +     * 
            + * + * NO_LICENSE = 3; + */ + public static final int NO_LICENSE_VALUE = 3; + + /** + * + * + *
            +     * User attempted to login but no license assigned to the user.
            +     * This state is only used for no user first time login attempt but cannot
            +     * get license assigned.
            +     * Users already logged in but cannot get license assigned will be assigned
            +     * NO_LICENSE state(License could be unassigned by admin).
            +     * 
            + * + * NO_LICENSE_ATTEMPTED_LOGIN = 4; + */ + public static final int NO_LICENSE_ATTEMPTED_LOGIN_VALUE = 4; + + /** + * + * + *
            +     * User is blocked from assigning a license.
            +     * 
            + * + * BLOCKED = 5; + */ + public static final int BLOCKED_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LicenseAssignmentState 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 LicenseAssignmentState forNumber(int value) { + switch (value) { + case 0: + return LICENSE_ASSIGNMENT_STATE_UNSPECIFIED; + case 1: + return ASSIGNED; + case 2: + return UNASSIGNED; + case 3: + return NO_LICENSE; + case 4: + return NO_LICENSE_ATTEMPTED_LOGIN; + case 5: + return BLOCKED; + 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 LicenseAssignmentState findValueByNumber(int number) { + return LicenseAssignmentState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicense.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final LicenseAssignmentState[] VALUES = values(); + + public static LicenseAssignmentState 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 LicenseAssignmentState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState) + } + + private int bitField0_; + public static final int USER_PRINCIPAL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object userPrincipal_ = ""; + + /** + * + * + *
            +   * Required. Immutable. The user principal of the User, could be email address
            +   * or other prinical identifier. This field is immutable. Admin assign
            +   * licenses based on the user principal.
            +   * 
            + * + * + * string user_principal = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The userPrincipal. + */ + @java.lang.Override + public java.lang.String getUserPrincipal() { + java.lang.Object ref = userPrincipal_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPrincipal_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Immutable. The user principal of the User, could be email address
            +   * or other prinical identifier. This field is immutable. Admin assign
            +   * licenses based on the user principal.
            +   * 
            + * + * + * string user_principal = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for userPrincipal. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserPrincipalBytes() { + java.lang.Object ref = userPrincipal_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPrincipal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_PROFILE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object userProfile_ = ""; + + /** + * + * + *
            +   * Optional. The user profile.
            +   * We user user full name(First name + Last name) as user profile.
            +   * 
            + * + * string user_profile = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userProfile. + */ + @java.lang.Override + public java.lang.String getUserProfile() { + java.lang.Object ref = userProfile_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userProfile_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The user profile.
            +   * We user user full name(First name + Last name) as user profile.
            +   * 
            + * + * string user_profile = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userProfile. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserProfileBytes() { + java.lang.Object ref = userProfile_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LICENSE_ASSIGNMENT_STATE_FIELD_NUMBER = 4; + private int licenseAssignmentState_ = 0; + + /** + * + * + *
            +   * Output only. License assignment state of the user.
            +   * If the user is assigned with a license config, the user login will be
            +   * assigned with the license;
            +   * If the user's license assignment state is unassigned or unspecified, no
            +   * license config will be associated to the user;
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState license_assignment_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for licenseAssignmentState. + */ + @java.lang.Override + public int getLicenseAssignmentStateValue() { + return licenseAssignmentState_; + } + + /** + * + * + *
            +   * Output only. License assignment state of the user.
            +   * If the user is assigned with a license config, the user login will be
            +   * assigned with the license;
            +   * If the user's license assignment state is unassigned or unspecified, no
            +   * license config will be associated to the user;
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState license_assignment_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The licenseAssignmentState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState + getLicenseAssignmentState() { + com.google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState result = + com.google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState.forNumber( + licenseAssignmentState_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState.UNRECOGNIZED + : result; + } + + public static final int LICENSE_CONFIG_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object licenseConfig_ = ""; + + /** + * + * + *
            +   * Optional. The full resource name of the Subscription(LicenseConfig)
            +   * assigned to the user.
            +   * 
            + * + * + * string license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The licenseConfig. + */ + @java.lang.Override + public java.lang.String getLicenseConfig() { + java.lang.Object ref = licenseConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseConfig_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The full resource name of the Subscription(LicenseConfig)
            +   * assigned to the user.
            +   * 
            + * + * + * string license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for licenseConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLicenseConfigBytes() { + java.lang.Object ref = licenseConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. User created timestamp.
            +   * 
            + * + * .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. User created timestamp.
            +   * 
            + * + * .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. User created timestamp.
            +   * 
            + * + * .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. User update timestamp.
            +   * 
            + * + * .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. User update timestamp.
            +   * 
            + * + * .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. User update timestamp.
            +   * 
            + * + * .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 LAST_LOGIN_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp lastLoginTime_; + + /** + * + * + *
            +   * Output only. User last logged in time.
            +   * If the user has not logged in yet, this field will be empty.
            +   * 
            + * + * + * .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastLoginTime field is set. + */ + @java.lang.Override + public boolean hasLastLoginTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Output only. User last logged in time.
            +   * If the user has not logged in yet, this field will be empty.
            +   * 
            + * + * + * .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastLoginTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastLoginTime() { + return lastLoginTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastLoginTime_; + } + + /** + * + * + *
            +   * Output only. User last logged in time.
            +   * If the user has not logged in yet, this field will be empty.
            +   * 
            + * + * + * .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastLoginTimeOrBuilder() { + return lastLoginTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastLoginTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPrincipal_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, userPrincipal_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userProfile_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, userProfile_); + } + if (licenseAssignmentState_ + != com.google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState + .LICENSE_ASSIGNMENT_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, licenseAssignmentState_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, licenseConfig_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getLastLoginTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userPrincipal_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, userPrincipal_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userProfile_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, userProfile_); + } + if (licenseAssignmentState_ + != com.google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState + .LICENSE_ASSIGNMENT_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, licenseAssignmentState_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(licenseConfig_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, licenseConfig_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getLastLoginTime()); + } + 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.v1beta.UserLicense)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.UserLicense other = + (com.google.cloud.discoveryengine.v1beta.UserLicense) obj; + + if (!getUserPrincipal().equals(other.getUserPrincipal())) return false; + if (!getUserProfile().equals(other.getUserProfile())) return false; + if (licenseAssignmentState_ != other.licenseAssignmentState_) return false; + if (!getLicenseConfig().equals(other.getLicenseConfig())) 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 (hasLastLoginTime() != other.hasLastLoginTime()) return false; + if (hasLastLoginTime()) { + if (!getLastLoginTime().equals(other.getLastLoginTime())) 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) + USER_PRINCIPAL_FIELD_NUMBER; + hash = (53 * hash) + getUserPrincipal().hashCode(); + hash = (37 * hash) + USER_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + getUserProfile().hashCode(); + hash = (37 * hash) + LICENSE_ASSIGNMENT_STATE_FIELD_NUMBER; + hash = (53 * hash) + licenseAssignmentState_; + hash = (37 * hash) + LICENSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLicenseConfig().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 (hasLastLoginTime()) { + hash = (37 * hash) + LAST_LOGIN_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastLoginTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.UserLicense parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UserLicense 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.v1beta.UserLicense parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UserLicense parseFrom( + 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.v1beta.UserLicense parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UserLicense parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UserLicense parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UserLicense parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UserLicense parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UserLicense parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UserLicense parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UserLicense parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.UserLicense prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * User License information assigned by the admin.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UserLicense} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.UserLicense) + com.google.cloud.discoveryengine.v1beta.UserLicenseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseProto + .internal_static_google_cloud_discoveryengine_v1beta_UserLicense_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseProto + .internal_static_google_cloud_discoveryengine_v1beta_UserLicense_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UserLicense.class, + com.google.cloud.discoveryengine.v1beta.UserLicense.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.UserLicense.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetLastLoginTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userPrincipal_ = ""; + userProfile_ = ""; + licenseAssignmentState_ = 0; + licenseConfig_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + lastLoginTime_ = null; + if (lastLoginTimeBuilder_ != null) { + lastLoginTimeBuilder_.dispose(); + lastLoginTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserLicenseProto + .internal_static_google_cloud_discoveryengine_v1beta_UserLicense_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserLicense getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.UserLicense.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserLicense build() { + com.google.cloud.discoveryengine.v1beta.UserLicense result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserLicense buildPartial() { + com.google.cloud.discoveryengine.v1beta.UserLicense result = + new com.google.cloud.discoveryengine.v1beta.UserLicense(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.UserLicense result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userPrincipal_ = userPrincipal_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userProfile_ = userProfile_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.licenseAssignmentState_ = licenseAssignmentState_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.licenseConfig_ = licenseConfig_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.lastLoginTime_ = + lastLoginTimeBuilder_ == null ? lastLoginTime_ : lastLoginTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.UserLicense) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.UserLicense) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UserLicense other) { + if (other == com.google.cloud.discoveryengine.v1beta.UserLicense.getDefaultInstance()) + return this; + if (!other.getUserPrincipal().isEmpty()) { + userPrincipal_ = other.userPrincipal_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUserProfile().isEmpty()) { + userProfile_ = other.userProfile_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.licenseAssignmentState_ != 0) { + setLicenseAssignmentStateValue(other.getLicenseAssignmentStateValue()); + } + if (!other.getLicenseConfig().isEmpty()) { + licenseConfig_ = other.licenseConfig_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasLastLoginTime()) { + mergeLastLoginTime(other.getLastLoginTime()); + } + 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: + { + userPrincipal_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + userProfile_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 32: + { + licenseAssignmentState_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 42: + { + licenseConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetLastLoginTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object userPrincipal_ = ""; + + /** + * + * + *
            +     * Required. Immutable. The user principal of the User, could be email address
            +     * or other prinical identifier. This field is immutable. Admin assign
            +     * licenses based on the user principal.
            +     * 
            + * + * + * string user_principal = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The userPrincipal. + */ + public java.lang.String getUserPrincipal() { + java.lang.Object ref = userPrincipal_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userPrincipal_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Immutable. The user principal of the User, could be email address
            +     * or other prinical identifier. This field is immutable. Admin assign
            +     * licenses based on the user principal.
            +     * 
            + * + * + * string user_principal = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for userPrincipal. + */ + public com.google.protobuf.ByteString getUserPrincipalBytes() { + java.lang.Object ref = userPrincipal_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userPrincipal_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Immutable. The user principal of the User, could be email address
            +     * or other prinical identifier. This field is immutable. Admin assign
            +     * licenses based on the user principal.
            +     * 
            + * + * + * string user_principal = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The userPrincipal to set. + * @return This builder for chaining. + */ + public Builder setUserPrincipal(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userPrincipal_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Immutable. The user principal of the User, could be email address
            +     * or other prinical identifier. This field is immutable. Admin assign
            +     * licenses based on the user principal.
            +     * 
            + * + * + * string user_principal = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearUserPrincipal() { + userPrincipal_ = getDefaultInstance().getUserPrincipal(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Immutable. The user principal of the User, could be email address
            +     * or other prinical identifier. This field is immutable. Admin assign
            +     * licenses based on the user principal.
            +     * 
            + * + * + * string user_principal = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for userPrincipal to set. + * @return This builder for chaining. + */ + public Builder setUserPrincipalBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userPrincipal_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object userProfile_ = ""; + + /** + * + * + *
            +     * Optional. The user profile.
            +     * We user user full name(First name + Last name) as user profile.
            +     * 
            + * + * string user_profile = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userProfile. + */ + public java.lang.String getUserProfile() { + java.lang.Object ref = userProfile_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userProfile_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The user profile.
            +     * We user user full name(First name + Last name) as user profile.
            +     * 
            + * + * string user_profile = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userProfile. + */ + public com.google.protobuf.ByteString getUserProfileBytes() { + java.lang.Object ref = userProfile_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userProfile_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The user profile.
            +     * We user user full name(First name + Last name) as user profile.
            +     * 
            + * + * string user_profile = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The userProfile to set. + * @return This builder for chaining. + */ + public Builder setUserProfile(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userProfile_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The user profile.
            +     * We user user full name(First name + Last name) as user profile.
            +     * 
            + * + * string user_profile = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUserProfile() { + userProfile_ = getDefaultInstance().getUserProfile(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The user profile.
            +     * We user user full name(First name + Last name) as user profile.
            +     * 
            + * + * string user_profile = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for userProfile to set. + * @return This builder for chaining. + */ + public Builder setUserProfileBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userProfile_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int licenseAssignmentState_ = 0; + + /** + * + * + *
            +     * Output only. License assignment state of the user.
            +     * If the user is assigned with a license config, the user login will be
            +     * assigned with the license;
            +     * If the user's license assignment state is unassigned or unspecified, no
            +     * license config will be associated to the user;
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState license_assignment_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for licenseAssignmentState. + */ + @java.lang.Override + public int getLicenseAssignmentStateValue() { + return licenseAssignmentState_; + } + + /** + * + * + *
            +     * Output only. License assignment state of the user.
            +     * If the user is assigned with a license config, the user login will be
            +     * assigned with the license;
            +     * If the user's license assignment state is unassigned or unspecified, no
            +     * license config will be associated to the user;
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState license_assignment_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for licenseAssignmentState to set. + * @return This builder for chaining. + */ + public Builder setLicenseAssignmentStateValue(int value) { + licenseAssignmentState_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. License assignment state of the user.
            +     * If the user is assigned with a license config, the user login will be
            +     * assigned with the license;
            +     * If the user's license assignment state is unassigned or unspecified, no
            +     * license config will be associated to the user;
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState license_assignment_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The licenseAssignmentState. + */ + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState + getLicenseAssignmentState() { + com.google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState result = + com.google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState.forNumber( + licenseAssignmentState_); + return result == null + ? com.google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Output only. License assignment state of the user.
            +     * If the user is assigned with a license config, the user login will be
            +     * assigned with the license;
            +     * If the user's license assignment state is unassigned or unspecified, no
            +     * license config will be associated to the user;
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState license_assignment_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The licenseAssignmentState to set. + * @return This builder for chaining. + */ + public Builder setLicenseAssignmentState( + com.google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + licenseAssignmentState_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. License assignment state of the user.
            +     * If the user is assigned with a license config, the user login will be
            +     * assigned with the license;
            +     * If the user's license assignment state is unassigned or unspecified, no
            +     * license config will be associated to the user;
            +     * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState license_assignment_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearLicenseAssignmentState() { + bitField0_ = (bitField0_ & ~0x00000004); + licenseAssignmentState_ = 0; + onChanged(); + return this; + } + + private java.lang.Object licenseConfig_ = ""; + + /** + * + * + *
            +     * Optional. The full resource name of the Subscription(LicenseConfig)
            +     * assigned to the user.
            +     * 
            + * + * + * string license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The licenseConfig. + */ + public java.lang.String getLicenseConfig() { + java.lang.Object ref = licenseConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + licenseConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The full resource name of the Subscription(LicenseConfig)
            +     * assigned to the user.
            +     * 
            + * + * + * string license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for licenseConfig. + */ + public com.google.protobuf.ByteString getLicenseConfigBytes() { + java.lang.Object ref = licenseConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + licenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The full resource name of the Subscription(LicenseConfig)
            +     * assigned to the user.
            +     * 
            + * + * + * string license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The licenseConfig to set. + * @return This builder for chaining. + */ + public Builder setLicenseConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + licenseConfig_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The full resource name of the Subscription(LicenseConfig)
            +     * assigned to the user.
            +     * 
            + * + * + * string license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearLicenseConfig() { + licenseConfig_ = getDefaultInstance().getLicenseConfig(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The full resource name of the Subscription(LicenseConfig)
            +     * assigned to the user.
            +     * 
            + * + * + * string license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for licenseConfig to set. + * @return This builder for chaining. + */ + public Builder setLicenseConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + licenseConfig_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. User created timestamp.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Output only. User created timestamp.
            +     * 
            + * + * + * .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. User created timestamp.
            +     * 
            + * + * + * .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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. User created timestamp.
            +     * 
            + * + * + * .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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. User created timestamp.
            +     * 
            + * + * + * .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_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. User created timestamp.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. User created timestamp.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. User created timestamp.
            +     * 
            + * + * + * .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. User created timestamp.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. User update timestamp.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Output only. User update timestamp.
            +     * 
            + * + * + * .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. User update timestamp.
            +     * 
            + * + * + * .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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. User update timestamp.
            +     * 
            + * + * + * .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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. User update timestamp.
            +     * 
            + * + * + * .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_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. User update timestamp.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. User update timestamp.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. User update timestamp.
            +     * 
            + * + * + * .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. User update timestamp.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.Timestamp lastLoginTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastLoginTimeBuilder_; + + /** + * + * + *
            +     * Output only. User last logged in time.
            +     * If the user has not logged in yet, this field will be empty.
            +     * 
            + * + * + * .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastLoginTime field is set. + */ + public boolean hasLastLoginTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +     * Output only. User last logged in time.
            +     * If the user has not logged in yet, this field will be empty.
            +     * 
            + * + * + * .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastLoginTime. + */ + public com.google.protobuf.Timestamp getLastLoginTime() { + if (lastLoginTimeBuilder_ == null) { + return lastLoginTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastLoginTime_; + } else { + return lastLoginTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. User last logged in time.
            +     * If the user has not logged in yet, this field will be empty.
            +     * 
            + * + * + * .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastLoginTime(com.google.protobuf.Timestamp value) { + if (lastLoginTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastLoginTime_ = value; + } else { + lastLoginTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. User last logged in time.
            +     * If the user has not logged in yet, this field will be empty.
            +     * 
            + * + * + * .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastLoginTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastLoginTimeBuilder_ == null) { + lastLoginTime_ = builderForValue.build(); + } else { + lastLoginTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. User last logged in time.
            +     * If the user has not logged in yet, this field will be empty.
            +     * 
            + * + * + * .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLastLoginTime(com.google.protobuf.Timestamp value) { + if (lastLoginTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && lastLoginTime_ != null + && lastLoginTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastLoginTimeBuilder().mergeFrom(value); + } else { + lastLoginTime_ = value; + } + } else { + lastLoginTimeBuilder_.mergeFrom(value); + } + if (lastLoginTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. User last logged in time.
            +     * If the user has not logged in yet, this field will be empty.
            +     * 
            + * + * + * .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLastLoginTime() { + bitField0_ = (bitField0_ & ~0x00000040); + lastLoginTime_ = null; + if (lastLoginTimeBuilder_ != null) { + lastLoginTimeBuilder_.dispose(); + lastLoginTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. User last logged in time.
            +     * If the user has not logged in yet, this field will be empty.
            +     * 
            + * + * + * .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getLastLoginTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetLastLoginTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. User last logged in time.
            +     * If the user has not logged in yet, this field will be empty.
            +     * 
            + * + * + * .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLastLoginTimeOrBuilder() { + if (lastLoginTimeBuilder_ != null) { + return lastLoginTimeBuilder_.getMessageOrBuilder(); + } else { + return lastLoginTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastLoginTime_; + } + } + + /** + * + * + *
            +     * Output only. User last logged in time.
            +     * If the user has not logged in yet, this field will be empty.
            +     * 
            + * + * + * .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetLastLoginTimeFieldBuilder() { + if (lastLoginTimeBuilder_ == null) { + lastLoginTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastLoginTime(), getParentForChildren(), isClean()); + lastLoginTime_ = null; + } + return lastLoginTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.UserLicense) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.UserLicense) + private static final com.google.cloud.discoveryengine.v1beta.UserLicense DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.UserLicense(); + } + + public static com.google.cloud.discoveryengine.v1beta.UserLicense getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserLicense parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.UserLicense getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseOrBuilder.java new file mode 100644 index 000000000000..624570933ce5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseOrBuilder.java @@ -0,0 +1,287 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface UserLicenseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.UserLicense) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Immutable. The user principal of the User, could be email address
            +   * or other prinical identifier. This field is immutable. Admin assign
            +   * licenses based on the user principal.
            +   * 
            + * + * + * string user_principal = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The userPrincipal. + */ + java.lang.String getUserPrincipal(); + + /** + * + * + *
            +   * Required. Immutable. The user principal of the User, could be email address
            +   * or other prinical identifier. This field is immutable. Admin assign
            +   * licenses based on the user principal.
            +   * 
            + * + * + * string user_principal = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for userPrincipal. + */ + com.google.protobuf.ByteString getUserPrincipalBytes(); + + /** + * + * + *
            +   * Optional. The user profile.
            +   * We user user full name(First name + Last name) as user profile.
            +   * 
            + * + * string user_profile = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userProfile. + */ + java.lang.String getUserProfile(); + + /** + * + * + *
            +   * Optional. The user profile.
            +   * We user user full name(First name + Last name) as user profile.
            +   * 
            + * + * string user_profile = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userProfile. + */ + com.google.protobuf.ByteString getUserProfileBytes(); + + /** + * + * + *
            +   * Output only. License assignment state of the user.
            +   * If the user is assigned with a license config, the user login will be
            +   * assigned with the license;
            +   * If the user's license assignment state is unassigned or unspecified, no
            +   * license config will be associated to the user;
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState license_assignment_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for licenseAssignmentState. + */ + int getLicenseAssignmentStateValue(); + + /** + * + * + *
            +   * Output only. License assignment state of the user.
            +   * If the user is assigned with a license config, the user login will be
            +   * assigned with the license;
            +   * If the user's license assignment state is unassigned or unspecified, no
            +   * license config will be associated to the user;
            +   * 
            + * + * + * .google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState license_assignment_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The licenseAssignmentState. + */ + com.google.cloud.discoveryengine.v1beta.UserLicense.LicenseAssignmentState + getLicenseAssignmentState(); + + /** + * + * + *
            +   * Optional. The full resource name of the Subscription(LicenseConfig)
            +   * assigned to the user.
            +   * 
            + * + * + * string license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The licenseConfig. + */ + java.lang.String getLicenseConfig(); + + /** + * + * + *
            +   * Optional. The full resource name of the Subscription(LicenseConfig)
            +   * assigned to the user.
            +   * 
            + * + * + * string license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for licenseConfig. + */ + com.google.protobuf.ByteString getLicenseConfigBytes(); + + /** + * + * + *
            +   * Output only. User created timestamp.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. User created timestamp.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. User created timestamp.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. User update timestamp.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. User update timestamp.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. User update timestamp.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. User last logged in time.
            +   * If the user has not logged in yet, this field will be empty.
            +   * 
            + * + * + * .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastLoginTime field is set. + */ + boolean hasLastLoginTime(); + + /** + * + * + *
            +   * Output only. User last logged in time.
            +   * If the user has not logged in yet, this field will be empty.
            +   * 
            + * + * + * .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastLoginTime. + */ + com.google.protobuf.Timestamp getLastLoginTime(); + + /** + * + * + *
            +   * Output only. User last logged in time.
            +   * If the user has not logged in yet, this field will be empty.
            +   * 
            + * + * + * .google.protobuf.Timestamp last_login_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getLastLoginTimeOrBuilder(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseProto.java new file mode 100644 index 000000000000..2204c66fc9a3 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseProto.java @@ -0,0 +1,133 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public final class UserLicenseProto extends com.google.protobuf.GeneratedFile { + private UserLicenseProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UserLicenseProto"); + } + + 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_discoveryengine_v1beta_UserLicense_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_UserLicense_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_LicenseConfigUsageStats_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_LicenseConfigUsageStats_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/discoveryengine/v1beta/us" + + "er_license.proto\022#google.cloud.discovery" + + "engine.v1beta\032\037google/api/field_behavior" + + ".proto\032\031google/api/resource.proto\032\037googl" + + "e/protobuf/timestamp.proto\"\314\004\n\013UserLicen" + + "se\022\036\n\016user_principal\030\001 \001(\tB\006\340A\005\340A\002\022\031\n\014us" + + "er_profile\030\003 \001(\tB\003\340A\001\022n\n\030license_assignm" + + "ent_state\030\004 \001(\0162G.google.cloud.discovery" + + "engine.v1beta.UserLicense.LicenseAssignm" + + "entStateB\003\340A\003\022L\n\016license_config\030\005 \001(\tB4\340" + + "A\001\372A.\n,discoveryengine.googleapis.com/Li" + + "censeConfig\0224\n\013create_time\030\006 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" + + "\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" + + "8\n\017last_login_time\030\010 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\"\235\001\n\026LicenseAssignmentS" + + "tate\022(\n$LICENSE_ASSIGNMENT_STATE_UNSPECI" + + "FIED\020\000\022\014\n\010ASSIGNED\020\001\022\016\n\nUNASSIGNED\020\002\022\016\n\n" + + "NO_LICENSE\020\003\022\036\n\032NO_LICENSE_ATTEMPTED_LOG" + + "IN\020\004\022\013\n\007BLOCKED\020\005\"W\n\027LicenseConfigUsageS" + + "tats\022\033\n\016license_config\030\001 \001(\tB\003\340A\002\022\037\n\022use" + + "d_license_count\030\002 \001(\003B\003\340A\002B\227\002\n\'com.googl" + + "e.cloud.discoveryengine.v1betaB\020UserLice" + + "nseProtoP\001ZQcloud.google.com/go/discover" + + "yengine/apiv1beta/discoveryenginepb;disc" + + "overyenginepb\242\002\017DISCOVERYENGINE\252\002#Google" + + ".Cloud.DiscoveryEngine.V1Beta\312\002#Google\\C" + + "loud\\DiscoveryEngine\\V1beta\352\002&Google::Cl" + + "oud::DiscoveryEngine::V1betab\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_cloud_discoveryengine_v1beta_UserLicense_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1beta_UserLicense_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_UserLicense_descriptor, + new java.lang.String[] { + "UserPrincipal", + "UserProfile", + "LicenseAssignmentState", + "LicenseConfig", + "CreateTime", + "UpdateTime", + "LastLoginTime", + }); + internal_static_google_cloud_discoveryengine_v1beta_LicenseConfigUsageStats_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_discoveryengine_v1beta_LicenseConfigUsageStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_LicenseConfigUsageStats_descriptor, + new java.lang.String[] { + "LicenseConfig", "UsedLicenseCount", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceProto.java new file mode 100644 index 000000000000..95b6f45d0233 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserLicenseServiceProto.java @@ -0,0 +1,266 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_license_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public final class UserLicenseServiceProto extends com.google.protobuf.GeneratedFile { + private UserLicenseServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UserLicenseServiceProto"); + } + + 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_discoveryengine_v1beta_ListUserLicensesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListUserLicensesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListUserLicensesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListUserLicensesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_InlineSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_InlineSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesResponse_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/discoveryengine/v1beta/us" + + "er_license_service.proto\022#google.cloud.d" + + "iscoveryengine.v1beta\032\034google/api/annota" + + "tions.proto\032\027google/api/client.proto\032\037go" + + "ogle/api/field_behavior.proto\032\031google/ap" + + "i/resource.proto\0326google/cloud/discovery" + + "engine/v1beta/user_license.proto\032#google" + + "/longrunning/operations.proto\032 google/pr" + + "otobuf/field_mask.proto\032\037google/protobuf" + + "/timestamp.proto\032\027google/rpc/status.prot" + + "o\"\270\001\n\027ListUserLicensesRequest\022@\n\006parent\030" + + "\001 \001(\tB0\340A\002\372A*\n(discoveryengine.googleapi" + + "s.com/UserStore\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\"|\n\030ListUser" + + "LicensesResponse\022G\n\ruser_licenses\030\001 \003(\0132" + + "0.google.cloud.discoveryengine.v1beta.Us" + + "erLicense\022\027\n\017next_page_token\030\002 \001(\t\"g\n#Li" + + "stLicenseConfigsUsageStatsRequest\022@\n\006par" + + "ent\030\001 \001(\tB0\340A\002\372A*\n(discoveryengine.googl" + + "eapis.com/UserStore\"\210\001\n$ListLicenseConfi" + + "gsUsageStatsResponse\022`\n\032license_config_u" + + "sage_stats\030\001 \003(\0132<.google.cloud.discover" + + "yengine.v1beta.LicenseConfigUsageStats\"\232" + + "\003\n\036BatchUpdateUserLicensesRequest\022i\n\rinl" + + "ine_source\030\002 \001(\0132P.google.cloud.discover" + + "yengine.v1beta.BatchUpdateUserLicensesRe" + + "quest.InlineSourceH\000\022@\n\006parent\030\001 \001(\tB0\340A" + + "\002\372A*\n(discoveryengine.googleapis.com/Use" + + "rStore\022,\n\037delete_unassigned_user_license" + + "s\030\004 \001(\010B\003\340A\001\032\222\001\n\014InlineSource\022L\n\ruser_li" + + "censes\030\001 \003(\01320.google.cloud.discoveryeng" + + "ine.v1beta.UserLicenseB\003\340A\002\0224\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A" + + "\001B\010\n\006source\"\261\001\n\037BatchUpdateUserLicensesM" + + "etadata\022/\n\013create_time\030\001 \001(\0132\032.google.pr" + + "otobuf.Timestamp\022/\n\013update_time\030\002 \001(\0132\032." + + "google.protobuf.Timestamp\022\025\n\rsuccess_cou" + + "nt\030\003 \001(\003\022\025\n\rfailure_count\030\004 \001(\003\"\225\001\n\037Batc" + + "hUpdateUserLicensesResponse\022G\n\ruser_lice" + + "nses\030\001 \003(\01320.google.cloud.discoveryengin" + + "e.v1beta.UserLicense\022)\n\rerror_samples\030\002 " + + "\003(\0132\022.google.rpc.Status2\312\010\n\022UserLicenseS" + + "ervice\022\343\001\n\020ListUserLicenses\022<.google.clo" + + "ud.discoveryengine.v1beta.ListUserLicens" + + "esRequest\032=.google.cloud.discoveryengine" + + ".v1beta.ListUserLicensesResponse\"R\332A\006par" + + "ent\202\323\344\223\002C\022A/v1beta/{parent=projects/*/lo" + + "cations/*/userStores/*}/userLicenses\022\223\002\n" + + "\034ListLicenseConfigsUsageStats\022H.google.c" + + "loud.discoveryengine.v1beta.ListLicenseC" + + "onfigsUsageStatsRequest\032I.google.cloud.d" + + "iscoveryengine.v1beta.ListLicenseConfigs" + + "UsageStatsResponse\"^\332A\006parent\202\323\344\223\002O\022M/v1" + + "beta/{parent=projects/*/locations/*/user" + + "Stores/*}/licenseConfigsUsageStats\022\345\002\n\027B" + + "atchUpdateUserLicenses\022C.google.cloud.di" + + "scoveryengine.v1beta.BatchUpdateUserLice" + + "nsesRequest\032\035.google.longrunning.Operati" + + "on\"\345\001\312A\212\001\nCgoogle.cloud.discoveryengine." + + "v1beta.BatchUpdateUserLicensesResponse\022C" + + "google.cloud.discoveryengine.v1beta.Batc" + + "hUpdateUserLicensesMetadata\202\323\344\223\002Q\"L/v1be" + + "ta/{parent=projects/*/locations/*/userSt" + + "ores/*}:batchUpdateUserLicenses:\001*\032\317\001\312A\036" + + "discoveryengine.googleapis.com\322A\252\001https:" + + "//www.googleapis.com/auth/cloud-platform" + + ",https://www.googleapis.com/auth/discove" + + "ryengine.readwrite,https://www.googleapi" + + "s.com/auth/discoveryengine.serving.readw" + + "riteB\236\002\n\'com.google.cloud.discoveryengin" + + "e.v1betaB\027UserLicenseServiceProtoP\001ZQclo" + + "ud.google.com/go/discoveryengine/apiv1be" + + "ta/discoveryenginepb;discoveryenginepb\242\002" + + "\017DISCOVERYENGINE\252\002#Google.Cloud.Discover" + + "yEngine.V1Beta\312\002#Google\\Cloud\\DiscoveryE" + + "ngine\\V1beta\352\002&Google::Cloud::DiscoveryE" + + "ngine::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.UserLicenseProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_ListUserLicensesRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1beta_ListUserLicensesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListUserLicensesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_discoveryengine_v1beta_ListUserLicensesResponse_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_discoveryengine_v1beta_ListUserLicensesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListUserLicensesResponse_descriptor, + new java.lang.String[] { + "UserLicenses", "NextPageToken", + }); + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsRequest_descriptor, + new java.lang.String[] { + "Parent", + }); + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsResponse_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_ListLicenseConfigsUsageStatsResponse_descriptor, + new java.lang.String[] { + "LicenseConfigUsageStats", + }); + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_descriptor, + new java.lang.String[] { + "InlineSource", "Parent", "DeleteUnassignedUserLicenses", "Source", + }); + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_InlineSource_descriptor = + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_descriptor + .getNestedType(0); + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_InlineSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesRequest_InlineSource_descriptor, + new java.lang.String[] { + "UserLicenses", "UpdateMask", + }); + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesMetadata_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "UpdateTime", "SuccessCount", "FailureCount", + }); + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesResponse_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_BatchUpdateUserLicensesResponse_descriptor, + new java.lang.String[] { + "UserLicenses", "ErrorSamples", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.UserLicenseProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + 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); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStore.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStore.java new file mode 100644 index 000000000000..caeba59c7bda --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStore.java @@ -0,0 +1,1314 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_store.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +/** + * + * + *
            + * Configures metadata that is used for End User entities.
            + * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UserStore} + */ +@com.google.protobuf.Generated +public final class UserStore extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.discoveryengine.v1beta.UserStore) + UserStoreOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UserStore"); + } + + // Use UserStore.newBuilder() to construct. + private UserStore(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UserStore() { + name_ = ""; + displayName_ = ""; + defaultLicenseConfig_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_UserStore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_UserStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UserStore.class, + com.google.cloud.discoveryengine.v1beta.UserStore.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Immutable. The full resource name of the User Store, in the format of
            +   * `projects/{project}/locations/{location}/userStores/{user_store}`.
            +   *
            +   * 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 User Store, in the format of
            +   * `projects/{project}/locations/{location}/userStores/{user_store}`.
            +   *
            +   * 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_ = ""; + + /** + * + * + *
            +   * The display name of the User Store.
            +   * 
            + * + * 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; + } + } + + /** + * + * + *
            +   * The display name of the User Store.
            +   * 
            + * + * 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 DEFAULT_LICENSE_CONFIG_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultLicenseConfig_ = ""; + + /** + * + * + *
            +   * Optional. The default subscription
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] for the
            +   * UserStore, if
            +   * [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1beta.UserStore.enable_license_auto_register]
            +   * is true, new users will automatically register under the default
            +   * subscription.
            +   *
            +   * If default
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] doesn't
            +   * have remaining license seats left, new users will not be assigned with
            +   * license and will be blocked for Vertex AI Search features. This is used if
            +   * `license_assignment_tier_rules` is not configured.
            +   * 
            + * + * + * string default_license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The defaultLicenseConfig. + */ + @java.lang.Override + public java.lang.String getDefaultLicenseConfig() { + java.lang.Object ref = defaultLicenseConfig_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultLicenseConfig_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The default subscription
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] for the
            +   * UserStore, if
            +   * [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1beta.UserStore.enable_license_auto_register]
            +   * is true, new users will automatically register under the default
            +   * subscription.
            +   *
            +   * If default
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] doesn't
            +   * have remaining license seats left, new users will not be assigned with
            +   * license and will be blocked for Vertex AI Search features. This is used if
            +   * `license_assignment_tier_rules` is not configured.
            +   * 
            + * + * + * string default_license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for defaultLicenseConfig. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultLicenseConfigBytes() { + java.lang.Object ref = defaultLicenseConfig_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultLicenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_LICENSE_AUTO_REGISTER_FIELD_NUMBER = 6; + private boolean enableLicenseAutoRegister_ = false; + + /** + * + * + *
            +   * Optional. Whether to enable license auto register for users in this User
            +   * Store. If true, new users will automatically register under the default
            +   * license config as long as the default license config has seats left.
            +   * 
            + * + * bool enable_license_auto_register = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableLicenseAutoRegister. + */ + @java.lang.Override + public boolean getEnableLicenseAutoRegister() { + return enableLicenseAutoRegister_; + } + + public static final int ENABLE_EXPIRED_LICENSE_AUTO_UPDATE_FIELD_NUMBER = 7; + private boolean enableExpiredLicenseAutoUpdate_ = false; + + /** + * + * + *
            +   * Optional. Whether to enable license auto update for users in this User
            +   * Store. If true, users with expired licenses will automatically be updated
            +   * to use the default license config as long as the default license config has
            +   * seats left.
            +   * 
            + * + * bool enable_expired_license_auto_update = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableExpiredLicenseAutoUpdate. + */ + @java.lang.Override + public boolean getEnableExpiredLicenseAutoUpdate() { + return enableExpiredLicenseAutoUpdate_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLicenseConfig_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, defaultLicenseConfig_); + } + if (enableLicenseAutoRegister_ != false) { + output.writeBool(6, enableLicenseAutoRegister_); + } + if (enableExpiredLicenseAutoUpdate_ != false) { + output.writeBool(7, enableExpiredLicenseAutoUpdate_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultLicenseConfig_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, defaultLicenseConfig_); + } + if (enableLicenseAutoRegister_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, enableLicenseAutoRegister_); + } + if (enableExpiredLicenseAutoUpdate_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(7, enableExpiredLicenseAutoUpdate_); + } + 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.v1beta.UserStore)) { + return super.equals(obj); + } + com.google.cloud.discoveryengine.v1beta.UserStore other = + (com.google.cloud.discoveryengine.v1beta.UserStore) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDefaultLicenseConfig().equals(other.getDefaultLicenseConfig())) return false; + if (getEnableLicenseAutoRegister() != other.getEnableLicenseAutoRegister()) return false; + if (getEnableExpiredLicenseAutoUpdate() != other.getEnableExpiredLicenseAutoUpdate()) + 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) + DEFAULT_LICENSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDefaultLicenseConfig().hashCode(); + hash = (37 * hash) + ENABLE_LICENSE_AUTO_REGISTER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableLicenseAutoRegister()); + hash = (37 * hash) + ENABLE_EXPIRED_LICENSE_AUTO_UPDATE_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableExpiredLicenseAutoUpdate()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.discoveryengine.v1beta.UserStore parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UserStore 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.v1beta.UserStore parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UserStore parseFrom( + 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.v1beta.UserStore parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.discoveryengine.v1beta.UserStore parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UserStore parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UserStore parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UserStore parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UserStore parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.discoveryengine.v1beta.UserStore parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.discoveryengine.v1beta.UserStore parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.discoveryengine.v1beta.UserStore prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Configures metadata that is used for End User entities.
            +   * 
            + * + * Protobuf type {@code google.cloud.discoveryengine.v1beta.UserStore} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.discoveryengine.v1beta.UserStore) + com.google.cloud.discoveryengine.v1beta.UserStoreOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.discoveryengine.v1beta.UserStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_UserStore_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.discoveryengine.v1beta.UserStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_UserStore_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.discoveryengine.v1beta.UserStore.class, + com.google.cloud.discoveryengine.v1beta.UserStore.Builder.class); + } + + // Construct using com.google.cloud.discoveryengine.v1beta.UserStore.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + defaultLicenseConfig_ = ""; + enableLicenseAutoRegister_ = false; + enableExpiredLicenseAutoUpdate_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.discoveryengine.v1beta.UserStoreProto + .internal_static_google_cloud_discoveryengine_v1beta_UserStore_descriptor; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserStore getDefaultInstanceForType() { + return com.google.cloud.discoveryengine.v1beta.UserStore.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserStore build() { + com.google.cloud.discoveryengine.v1beta.UserStore result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.discoveryengine.v1beta.UserStore buildPartial() { + com.google.cloud.discoveryengine.v1beta.UserStore result = + new com.google.cloud.discoveryengine.v1beta.UserStore(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.discoveryengine.v1beta.UserStore 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.defaultLicenseConfig_ = defaultLicenseConfig_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.enableLicenseAutoRegister_ = enableLicenseAutoRegister_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.enableExpiredLicenseAutoUpdate_ = enableExpiredLicenseAutoUpdate_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.discoveryengine.v1beta.UserStore) { + return mergeFrom((com.google.cloud.discoveryengine.v1beta.UserStore) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.discoveryengine.v1beta.UserStore other) { + if (other == com.google.cloud.discoveryengine.v1beta.UserStore.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.getDefaultLicenseConfig().isEmpty()) { + defaultLicenseConfig_ = other.defaultLicenseConfig_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getEnableLicenseAutoRegister() != false) { + setEnableLicenseAutoRegister(other.getEnableLicenseAutoRegister()); + } + if (other.getEnableExpiredLicenseAutoUpdate() != false) { + setEnableExpiredLicenseAutoUpdate(other.getEnableExpiredLicenseAutoUpdate()); + } + 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 42: + { + defaultLicenseConfig_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 48: + { + enableLicenseAutoRegister_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 48 + case 56: + { + enableExpiredLicenseAutoUpdate_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 56 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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_ = ""; + + /** + * + * + *
            +     * Immutable. The full resource name of the User Store, in the format of
            +     * `projects/{project}/locations/{location}/userStores/{user_store}`.
            +     *
            +     * 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; + } + } + + /** + * + * + *
            +     * Immutable. The full resource name of the User Store, in the format of
            +     * `projects/{project}/locations/{location}/userStores/{user_store}`.
            +     *
            +     * 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; + } + } + + /** + * + * + *
            +     * Immutable. The full resource name of the User Store, in the format of
            +     * `projects/{project}/locations/{location}/userStores/{user_store}`.
            +     *
            +     * 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; + } + + /** + * + * + *
            +     * Immutable. The full resource name of the User Store, in the format of
            +     * `projects/{project}/locations/{location}/userStores/{user_store}`.
            +     *
            +     * 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; + } + + /** + * + * + *
            +     * Immutable. The full resource name of the User Store, in the format of
            +     * `projects/{project}/locations/{location}/userStores/{user_store}`.
            +     *
            +     * 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; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
            +     * The display name of the User Store.
            +     * 
            + * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * The display name of the User Store.
            +     * 
            + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * The display name of the User Store.
            +     * 
            + * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The display name of the User Store.
            +     * 
            + * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * The display name of the User Store.
            +     * 
            + * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object defaultLicenseConfig_ = ""; + + /** + * + * + *
            +     * Optional. The default subscription
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] for the
            +     * UserStore, if
            +     * [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1beta.UserStore.enable_license_auto_register]
            +     * is true, new users will automatically register under the default
            +     * subscription.
            +     *
            +     * If default
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] doesn't
            +     * have remaining license seats left, new users will not be assigned with
            +     * license and will be blocked for Vertex AI Search features. This is used if
            +     * `license_assignment_tier_rules` is not configured.
            +     * 
            + * + * + * string default_license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The defaultLicenseConfig. + */ + public java.lang.String getDefaultLicenseConfig() { + java.lang.Object ref = defaultLicenseConfig_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultLicenseConfig_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The default subscription
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] for the
            +     * UserStore, if
            +     * [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1beta.UserStore.enable_license_auto_register]
            +     * is true, new users will automatically register under the default
            +     * subscription.
            +     *
            +     * If default
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] doesn't
            +     * have remaining license seats left, new users will not be assigned with
            +     * license and will be blocked for Vertex AI Search features. This is used if
            +     * `license_assignment_tier_rules` is not configured.
            +     * 
            + * + * + * string default_license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for defaultLicenseConfig. + */ + public com.google.protobuf.ByteString getDefaultLicenseConfigBytes() { + java.lang.Object ref = defaultLicenseConfig_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultLicenseConfig_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The default subscription
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] for the
            +     * UserStore, if
            +     * [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1beta.UserStore.enable_license_auto_register]
            +     * is true, new users will automatically register under the default
            +     * subscription.
            +     *
            +     * If default
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] doesn't
            +     * have remaining license seats left, new users will not be assigned with
            +     * license and will be blocked for Vertex AI Search features. This is used if
            +     * `license_assignment_tier_rules` is not configured.
            +     * 
            + * + * + * string default_license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The defaultLicenseConfig to set. + * @return This builder for chaining. + */ + public Builder setDefaultLicenseConfig(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultLicenseConfig_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The default subscription
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] for the
            +     * UserStore, if
            +     * [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1beta.UserStore.enable_license_auto_register]
            +     * is true, new users will automatically register under the default
            +     * subscription.
            +     *
            +     * If default
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] doesn't
            +     * have remaining license seats left, new users will not be assigned with
            +     * license and will be blocked for Vertex AI Search features. This is used if
            +     * `license_assignment_tier_rules` is not configured.
            +     * 
            + * + * + * string default_license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDefaultLicenseConfig() { + defaultLicenseConfig_ = getDefaultInstance().getDefaultLicenseConfig(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The default subscription
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] for the
            +     * UserStore, if
            +     * [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1beta.UserStore.enable_license_auto_register]
            +     * is true, new users will automatically register under the default
            +     * subscription.
            +     *
            +     * If default
            +     * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] doesn't
            +     * have remaining license seats left, new users will not be assigned with
            +     * license and will be blocked for Vertex AI Search features. This is used if
            +     * `license_assignment_tier_rules` is not configured.
            +     * 
            + * + * + * string default_license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for defaultLicenseConfig to set. + * @return This builder for chaining. + */ + public Builder setDefaultLicenseConfigBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultLicenseConfig_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean enableLicenseAutoRegister_; + + /** + * + * + *
            +     * Optional. Whether to enable license auto register for users in this User
            +     * Store. If true, new users will automatically register under the default
            +     * license config as long as the default license config has seats left.
            +     * 
            + * + * bool enable_license_auto_register = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableLicenseAutoRegister. + */ + @java.lang.Override + public boolean getEnableLicenseAutoRegister() { + return enableLicenseAutoRegister_; + } + + /** + * + * + *
            +     * Optional. Whether to enable license auto register for users in this User
            +     * Store. If true, new users will automatically register under the default
            +     * license config as long as the default license config has seats left.
            +     * 
            + * + * bool enable_license_auto_register = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableLicenseAutoRegister to set. + * @return This builder for chaining. + */ + public Builder setEnableLicenseAutoRegister(boolean value) { + + enableLicenseAutoRegister_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Whether to enable license auto register for users in this User
            +     * Store. If true, new users will automatically register under the default
            +     * license config as long as the default license config has seats left.
            +     * 
            + * + * bool enable_license_auto_register = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableLicenseAutoRegister() { + bitField0_ = (bitField0_ & ~0x00000008); + enableLicenseAutoRegister_ = false; + onChanged(); + return this; + } + + private boolean enableExpiredLicenseAutoUpdate_; + + /** + * + * + *
            +     * Optional. Whether to enable license auto update for users in this User
            +     * Store. If true, users with expired licenses will automatically be updated
            +     * to use the default license config as long as the default license config has
            +     * seats left.
            +     * 
            + * + * bool enable_expired_license_auto_update = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableExpiredLicenseAutoUpdate. + */ + @java.lang.Override + public boolean getEnableExpiredLicenseAutoUpdate() { + return enableExpiredLicenseAutoUpdate_; + } + + /** + * + * + *
            +     * Optional. Whether to enable license auto update for users in this User
            +     * Store. If true, users with expired licenses will automatically be updated
            +     * to use the default license config as long as the default license config has
            +     * seats left.
            +     * 
            + * + * bool enable_expired_license_auto_update = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enableExpiredLicenseAutoUpdate to set. + * @return This builder for chaining. + */ + public Builder setEnableExpiredLicenseAutoUpdate(boolean value) { + + enableExpiredLicenseAutoUpdate_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Whether to enable license auto update for users in this User
            +     * Store. If true, users with expired licenses will automatically be updated
            +     * to use the default license config as long as the default license config has
            +     * seats left.
            +     * 
            + * + * bool enable_expired_license_auto_update = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearEnableExpiredLicenseAutoUpdate() { + bitField0_ = (bitField0_ & ~0x00000010); + enableExpiredLicenseAutoUpdate_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.discoveryengine.v1beta.UserStore) + } + + // @@protoc_insertion_point(class_scope:google.cloud.discoveryengine.v1beta.UserStore) + private static final com.google.cloud.discoveryengine.v1beta.UserStore DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.discoveryengine.v1beta.UserStore(); + } + + public static com.google.cloud.discoveryengine.v1beta.UserStore getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserStore parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.v1beta.UserStore getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreName.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreName.java new file mode 100644 index 000000000000..519934f7a2f1 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class UserStoreName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_USER_STORE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/userStores/{user_store}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String userStore; + + @Deprecated + protected UserStoreName() { + project = null; + location = null; + userStore = null; + } + + private UserStoreName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + userStore = Preconditions.checkNotNull(builder.getUserStore()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getUserStore() { + return userStore; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static UserStoreName of(String project, String location, String userStore) { + return newBuilder().setProject(project).setLocation(location).setUserStore(userStore).build(); + } + + public static String format(String project, String location, String userStore) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setUserStore(userStore) + .build() + .toString(); + } + + public static UserStoreName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_USER_STORE.validatedMatch( + formattedString, "UserStoreName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("user_store")); + } + + 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 (UserStoreName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_USER_STORE.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 (userStore != null) { + fieldMapBuilder.put("user_store", userStore); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_USER_STORE.instantiate( + "project", project, "location", location, "user_store", userStore); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + UserStoreName that = ((UserStoreName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.userStore, that.userStore); + } + 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(userStore); + return h; + } + + /** Builder for projects/{project}/locations/{location}/userStores/{user_store}. */ + public static class Builder { + private String project; + private String location; + private String userStore; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getUserStore() { + return userStore; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setUserStore(String userStore) { + this.userStore = userStore; + return this; + } + + private Builder(UserStoreName userStoreName) { + this.project = userStoreName.project; + this.location = userStoreName.location; + this.userStore = userStoreName.userStore; + } + + public UserStoreName build() { + return new UserStoreName(this); + } + } +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreOrBuilder.java new file mode 100644 index 000000000000..ffb0646a8aad --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreOrBuilder.java @@ -0,0 +1,172 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_store.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public interface UserStoreOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.discoveryengine.v1beta.UserStore) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Immutable. The full resource name of the User Store, in the format of
            +   * `projects/{project}/locations/{location}/userStores/{user_store}`.
            +   *
            +   * 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.String getName(); + + /** + * + * + *
            +   * Immutable. The full resource name of the User Store, in the format of
            +   * `projects/{project}/locations/{location}/userStores/{user_store}`.
            +   *
            +   * 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. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * The display name of the User Store.
            +   * 
            + * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
            +   * The display name of the User Store.
            +   * 
            + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
            +   * Optional. The default subscription
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] for the
            +   * UserStore, if
            +   * [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1beta.UserStore.enable_license_auto_register]
            +   * is true, new users will automatically register under the default
            +   * subscription.
            +   *
            +   * If default
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] doesn't
            +   * have remaining license seats left, new users will not be assigned with
            +   * license and will be blocked for Vertex AI Search features. This is used if
            +   * `license_assignment_tier_rules` is not configured.
            +   * 
            + * + * + * string default_license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The defaultLicenseConfig. + */ + java.lang.String getDefaultLicenseConfig(); + + /** + * + * + *
            +   * Optional. The default subscription
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] for the
            +   * UserStore, if
            +   * [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1beta.UserStore.enable_license_auto_register]
            +   * is true, new users will automatically register under the default
            +   * subscription.
            +   *
            +   * If default
            +   * [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] doesn't
            +   * have remaining license seats left, new users will not be assigned with
            +   * license and will be blocked for Vertex AI Search features. This is used if
            +   * `license_assignment_tier_rules` is not configured.
            +   * 
            + * + * + * string default_license_config = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for defaultLicenseConfig. + */ + com.google.protobuf.ByteString getDefaultLicenseConfigBytes(); + + /** + * + * + *
            +   * Optional. Whether to enable license auto register for users in this User
            +   * Store. If true, new users will automatically register under the default
            +   * license config as long as the default license config has seats left.
            +   * 
            + * + * bool enable_license_auto_register = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableLicenseAutoRegister. + */ + boolean getEnableLicenseAutoRegister(); + + /** + * + * + *
            +   * Optional. Whether to enable license auto update for users in this User
            +   * Store. If true, users with expired licenses will automatically be updated
            +   * to use the default license config as long as the default license config has
            +   * seats left.
            +   * 
            + * + * bool enable_expired_license_auto_update = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enableExpiredLicenseAutoUpdate. + */ + boolean getEnableExpiredLicenseAutoUpdate(); +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreProto.java new file mode 100644 index 000000000000..acf0168b95b5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreProto.java @@ -0,0 +1,109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_store.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public final class UserStoreProto extends com.google.protobuf.GeneratedFile { + private UserStoreProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UserStoreProto"); + } + + 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_discoveryengine_v1beta_UserStore_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_UserStore_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/cloud/discoveryengine/v1beta/us" + + "er_store.proto\022#google.cloud.discoveryen" + + "gine.v1beta\032\037google/api/field_behavior.p" + + "roto\032\031google/api/resource.proto\"\326\002\n\tUser" + + "Store\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\024\n\014display_name" + + "\030\002 \001(\t\022T\n\026default_license_config\030\005 \001(\tB4" + + "\340A\001\372A.\n,discoveryengine.googleapis.com/L" + + "icenseConfig\022)\n\034enable_license_auto_regi" + + "ster\030\006 \001(\010B\003\340A\001\022/\n\"enable_expired_licens" + + "e_auto_update\030\007 \001(\010B\003\340A\001:n\352Ak\n(discovery" + + "engine.googleapis.com/UserStore\022?project" + + "s/{project}/locations/{location}/userSto" + + "res/{user_store}B\225\002\n\'com.google.cloud.di" + + "scoveryengine.v1betaB\016UserStoreProtoP\001ZQ" + + "cloud.google.com/go/discoveryengine/apiv" + + "1beta/discoveryenginepb;discoveryenginep" + + "b\242\002\017DISCOVERYENGINE\252\002#Google.Cloud.Disco" + + "veryEngine.V1Beta\312\002#Google\\Cloud\\Discove" + + "ryEngine\\V1beta\352\002&Google::Cloud::Discove" + + "ryEngine::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_UserStore_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1beta_UserStore_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_UserStore_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "DefaultLicenseConfig", + "EnableLicenseAutoRegister", + "EnableExpiredLicenseAutoUpdate", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceProto.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceProto.java new file mode 100644 index 000000000000..400c51c212d3 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/UserStoreServiceProto.java @@ -0,0 +1,146 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/discoveryengine/v1beta/user_store_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.discoveryengine.v1beta; + +@com.google.protobuf.Generated +public final class UserStoreServiceProto extends com.google.protobuf.GeneratedFile { + private UserStoreServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UserStoreServiceProto"); + } + + 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_discoveryengine_v1beta_GetUserStoreRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_GetUserStoreRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_discoveryengine_v1beta_UpdateUserStoreRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_discoveryengine_v1beta_UpdateUserStoreRequest_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\n\004name\030\001 \001(\tB0\340A\002\372A*\n(discoveryen" + + "gine.googleapis.com/UserStore\"\227\001\n\026Update" + + "UserStoreRequest\022G\n\nuser_store\030\001 \001(\0132..g" + + "oogle.cloud.discoveryengine.v1beta.UserS" + + "toreB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." + + "protobuf.FieldMaskB\003\340A\0012\217\005\n\020UserStoreSer" + + "vice\022\273\001\n\014GetUserStore\0228.google.cloud.dis" + + "coveryengine.v1beta.GetUserStoreRequest\032" + + "..google.cloud.discoveryengine.v1beta.Us" + + "erStore\"A\332A\004name\202\323\344\223\0024\0222/v1beta/{name=pr" + + "ojects/*/locations/*/userStores/*}\022\352\001\n\017U" + + "pdateUserStore\022;.google.cloud.discoverye" + + "ngine.v1beta.UpdateUserStoreRequest\032..go" + + "ogle.cloud.discoveryengine.v1beta.UserSt" + + "ore\"j\332A\026user_store,update_mask\202\323\344\223\002K2=/v" + + "1beta/{user_store.name=projects/*/locati" + + "ons/*/userStores/*}:\nuser_store\032\317\001\312A\036dis" + + "coveryengine.googleapis.com\322A\252\001https://w" + + "ww.googleapis.com/auth/cloud-platform,ht" + + "tps://www.googleapis.com/auth/discoverye" + + "ngine.readwrite,https://www.googleapis.c" + + "om/auth/discoveryengine.serving.readwrit" + + "eB\234\002\n\'com.google.cloud.discoveryengine.v" + + "1betaB\025UserStoreServiceProtoP\001ZQcloud.go" + + "ogle.com/go/discoveryengine/apiv1beta/di" + + "scoveryenginepb;discoveryenginepb\242\002\017DISC" + + "OVERYENGINE\252\002#Google.Cloud.DiscoveryEngi" + + "ne.V1Beta\312\002#Google\\Cloud\\DiscoveryEngine" + + "\\V1beta\352\002&Google::Cloud::DiscoveryEngine" + + "::V1betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.discoveryengine.v1beta.UserStoreProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_discoveryengine_v1beta_GetUserStoreRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_discoveryengine_v1beta_GetUserStoreRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_GetUserStoreRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_discoveryengine_v1beta_UpdateUserStoreRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_discoveryengine_v1beta_UpdateUserStoreRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_discoveryengine_v1beta_UpdateUserStoreRequest_descriptor, + new java.lang.String[] { + "UserStore", "UpdateMask", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.discoveryengine.v1beta.UserStoreProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + 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); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WorkspaceConfig.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WorkspaceConfig.java index 9d1dbe9eefa4..977d3f2c07b6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WorkspaceConfig.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WorkspaceConfig.java @@ -163,6 +163,16 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { * GOOGLE_KEEP = 7; */ GOOGLE_KEEP(7), + /** + * + * + *
            +     * Workspace Data Store contains People data
            +     * 
            + * + * GOOGLE_PEOPLE = 8; + */ + GOOGLE_PEOPLE(8), UNRECOGNIZED(-1), ; @@ -264,6 +274,17 @@ public enum Type implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GOOGLE_KEEP_VALUE = 7; + /** + * + * + *
            +     * Workspace Data Store contains People data
            +     * 
            + * + * GOOGLE_PEOPLE = 8; + */ + public static final int GOOGLE_PEOPLE_VALUE = 8; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -304,6 +325,8 @@ public static Type forNumber(int value) { return GOOGLE_GROUPS; case 7: return GOOGLE_KEEP; + case 8: + return GOOGLE_PEOPLE; default: return null; } @@ -407,10 +430,12 @@ public com.google.cloud.discoveryengine.v1beta.WorkspaceConfig.Type getType() { * * *
            -   * Obfuscated Dasher customer ID.
            +   * Output only. Obfuscated Dasher customer ID. Derived by the server from
            +   * the project's GCP organization at data store creation time; any value
            +   * supplied in the request payload is ignored.
                * 
            * - * string dasher_customer_id = 2; + * string dasher_customer_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The dasherCustomerId. */ @@ -431,10 +456,12 @@ public java.lang.String getDasherCustomerId() { * * *
            -   * Obfuscated Dasher customer ID.
            +   * Output only. Obfuscated Dasher customer ID. Derived by the server from
            +   * the project's GCP organization at data store creation time; any value
            +   * supplied in the request payload is ignored.
                * 
            * - * string dasher_customer_id = 2; + * string dasher_customer_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for dasherCustomerId. */ @@ -1053,10 +1080,12 @@ public Builder clearType() { * * *
            -     * Obfuscated Dasher customer ID.
            +     * Output only. Obfuscated Dasher customer ID. Derived by the server from
            +     * the project's GCP organization at data store creation time; any value
            +     * supplied in the request payload is ignored.
                  * 
            * - * string dasher_customer_id = 2; + * string dasher_customer_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The dasherCustomerId. */ @@ -1076,10 +1105,12 @@ public java.lang.String getDasherCustomerId() { * * *
            -     * Obfuscated Dasher customer ID.
            +     * Output only. Obfuscated Dasher customer ID. Derived by the server from
            +     * the project's GCP organization at data store creation time; any value
            +     * supplied in the request payload is ignored.
                  * 
            * - * string dasher_customer_id = 2; + * string dasher_customer_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for dasherCustomerId. */ @@ -1099,10 +1130,12 @@ public com.google.protobuf.ByteString getDasherCustomerIdBytes() { * * *
            -     * Obfuscated Dasher customer ID.
            +     * Output only. Obfuscated Dasher customer ID. Derived by the server from
            +     * the project's GCP organization at data store creation time; any value
            +     * supplied in the request payload is ignored.
                  * 
            * - * string dasher_customer_id = 2; + * string dasher_customer_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The dasherCustomerId to set. * @return This builder for chaining. @@ -1121,10 +1154,12 @@ public Builder setDasherCustomerId(java.lang.String value) { * * *
            -     * Obfuscated Dasher customer ID.
            +     * Output only. Obfuscated Dasher customer ID. Derived by the server from
            +     * the project's GCP organization at data store creation time; any value
            +     * supplied in the request payload is ignored.
                  * 
            * - * string dasher_customer_id = 2; + * string dasher_customer_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1139,10 +1174,12 @@ public Builder clearDasherCustomerId() { * * *
            -     * Obfuscated Dasher customer ID.
            +     * Output only. Obfuscated Dasher customer ID. Derived by the server from
            +     * the project's GCP organization at data store creation time; any value
            +     * supplied in the request payload is ignored.
                  * 
            * - * string dasher_customer_id = 2; + * string dasher_customer_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for dasherCustomerId to set. * @return This builder for chaining. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WorkspaceConfigOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WorkspaceConfigOrBuilder.java index a1acd4c6afe5..242c8d3f95fa 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WorkspaceConfigOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WorkspaceConfigOrBuilder.java @@ -56,10 +56,12 @@ public interface WorkspaceConfigOrBuilder * * *
            -   * Obfuscated Dasher customer ID.
            +   * Output only. Obfuscated Dasher customer ID. Derived by the server from
            +   * the project's GCP organization at data store creation time; any value
            +   * supplied in the request payload is ignored.
                * 
            * - * string dasher_customer_id = 2; + * string dasher_customer_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The dasherCustomerId. */ @@ -69,10 +71,12 @@ public interface WorkspaceConfigOrBuilder * * *
            -   * Obfuscated Dasher customer ID.
            +   * Output only. Obfuscated Dasher customer ID. Derived by the server from
            +   * the project's GCP organization at data store creation time; any value
            +   * supplied in the request payload is ignored.
                * 
            * - * string dasher_customer_id = 2; + * string dasher_customer_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for dasherCustomerId. */ diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequest.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequest.java index 5bc5c7b5d80f..7e82eb0e484d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequest.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequest.java @@ -85,11 +85,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the * format is: * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * If the write user event action is applied in [Location][] level, for - * example, the event with - * [Document][google.cloud.discoveryengine.v1beta.Document] across multiple - * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the format is: - * `projects/{project}/locations/{location}`. + * If the write user event action is applied in + * [Location][google.cloud.location.Location] level, for example, the event + * with [Document][google.cloud.discoveryengine.v1beta.Document] across + * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the + * format is: `projects/{project}/locations/{location}`. * * * @@ -120,11 +120,11 @@ public java.lang.String getParent() { * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the * format is: * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * If the write user event action is applied in [Location][] level, for - * example, the event with - * [Document][google.cloud.discoveryengine.v1beta.Document] across multiple - * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the format is: - * `projects/{project}/locations/{location}`. + * If the write user event action is applied in + * [Location][google.cloud.location.Location] level, for example, the event + * with [Document][google.cloud.discoveryengine.v1beta.Document] across + * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the + * format is: `projects/{project}/locations/{location}`. * * * @@ -616,11 +616,11 @@ public Builder mergeFrom( * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the * format is: * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * If the write user event action is applied in [Location][] level, for - * example, the event with - * [Document][google.cloud.discoveryengine.v1beta.Document] across multiple - * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the format is: - * `projects/{project}/locations/{location}`. + * If the write user event action is applied in + * [Location][google.cloud.location.Location] level, for example, the event + * with [Document][google.cloud.discoveryengine.v1beta.Document] across + * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the + * format is: `projects/{project}/locations/{location}`. * * * @@ -650,11 +650,11 @@ public java.lang.String getParent() { * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the * format is: * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * If the write user event action is applied in [Location][] level, for - * example, the event with - * [Document][google.cloud.discoveryengine.v1beta.Document] across multiple - * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the format is: - * `projects/{project}/locations/{location}`. + * If the write user event action is applied in + * [Location][google.cloud.location.Location] level, for example, the event + * with [Document][google.cloud.discoveryengine.v1beta.Document] across + * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the + * format is: `projects/{project}/locations/{location}`. * * * @@ -684,11 +684,11 @@ public com.google.protobuf.ByteString getParentBytes() { * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the * format is: * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * If the write user event action is applied in [Location][] level, for - * example, the event with - * [Document][google.cloud.discoveryengine.v1beta.Document] across multiple - * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the format is: - * `projects/{project}/locations/{location}`. + * If the write user event action is applied in + * [Location][google.cloud.location.Location] level, for example, the event + * with [Document][google.cloud.discoveryengine.v1beta.Document] across + * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the + * format is: `projects/{project}/locations/{location}`. * * * @@ -717,11 +717,11 @@ public Builder setParent(java.lang.String value) { * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the * format is: * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * If the write user event action is applied in [Location][] level, for - * example, the event with - * [Document][google.cloud.discoveryengine.v1beta.Document] across multiple - * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the format is: - * `projects/{project}/locations/{location}`. + * If the write user event action is applied in + * [Location][google.cloud.location.Location] level, for example, the event + * with [Document][google.cloud.discoveryengine.v1beta.Document] across + * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the + * format is: `projects/{project}/locations/{location}`. * * * @@ -746,11 +746,11 @@ public Builder clearParent() { * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the * format is: * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * If the write user event action is applied in [Location][] level, for - * example, the event with - * [Document][google.cloud.discoveryengine.v1beta.Document] across multiple - * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the format is: - * `projects/{project}/locations/{location}`. + * If the write user event action is applied in + * [Location][google.cloud.location.Location] level, for example, the event + * with [Document][google.cloud.discoveryengine.v1beta.Document] across + * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the + * format is: `projects/{project}/locations/{location}`. * * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequestOrBuilder.java b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequestOrBuilder.java index e97d2b866366..146f592b09e6 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequestOrBuilder.java +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/WriteUserEventRequestOrBuilder.java @@ -35,11 +35,11 @@ public interface WriteUserEventRequestOrBuilder * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the * format is: * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * If the write user event action is applied in [Location][] level, for - * example, the event with - * [Document][google.cloud.discoveryengine.v1beta.Document] across multiple - * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the format is: - * `projects/{project}/locations/{location}`. + * If the write user event action is applied in + * [Location][google.cloud.location.Location] level, for example, the event + * with [Document][google.cloud.discoveryengine.v1beta.Document] across + * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the + * format is: `projects/{project}/locations/{location}`. * * * @@ -59,11 +59,11 @@ public interface WriteUserEventRequestOrBuilder * [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the * format is: * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * If the write user event action is applied in [Location][] level, for - * example, the event with - * [Document][google.cloud.discoveryengine.v1beta.Document] across multiple - * [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the format is: - * `projects/{project}/locations/{location}`. + * If the write user event action is applied in + * [Location][google.cloud.location.Location] level, for example, the event + * with [Document][google.cloud.discoveryengine.v1beta.Document] across + * multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the + * format is: `projects/{project}/locations/{location}`. * * * diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/acl_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/acl_config.proto new file mode 100644 index 000000000000..51408d323d1d --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/acl_config.proto @@ -0,0 +1,49 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// 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.discoveryengine.v1beta; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/common.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "AclConfigProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Access Control Configuration. +message AclConfig { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/AclConfig" + pattern: "projects/{project}/locations/{location}/aclConfig" + }; + + // Immutable. The full resource name of the acl configuration. + // Format: + // `projects/{project}/locations/{location}/aclConfig`. + // + // This field must be a UTF-8 encoded string with a length limit of 1024 + // characters. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Identity provider config. + IdpConfig idp_config = 2; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/acl_config_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/acl_config_service.proto new file mode 100644 index 000000000000..1139678ec1f9 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/acl_config_service.proto @@ -0,0 +1,81 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.discoveryengine.v1beta; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/acl_config.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "AclConfigServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Service for managing Acl Configuration. +service AclConfigService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; + + // Default ACL configuration for use in a location of a customer's project. + // Updates will only reflect to new data stores. Existing data stores will + // still use the old value. + rpc UpdateAclConfig(UpdateAclConfigRequest) returns (AclConfig) { + option (google.api.http) = { + patch: "/v1beta/{acl_config.name=projects/*/locations/*/aclConfig}" + body: "acl_config" + }; + } + + // Gets the [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig]. + rpc GetAclConfig(GetAclConfigRequest) returns (AclConfig) { + option (google.api.http) = { + get: "/v1beta/{name=projects/*/locations/*/aclConfig}" + }; + option (google.api.method_signature) = "name"; + } +} + +// Request message for GetAclConfigRequest method. +message GetAclConfigRequest { + // Required. Resource name of + // [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], such as + // `projects/*/locations/*/aclConfig`. + // + // If the caller does not have permission to access the + // [AclConfig][google.cloud.discoveryengine.v1beta.AclConfig], regardless of + // whether or not it exists, a PERMISSION_DENIED error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/AclConfig" + } + ]; +} + +// Request message for UpdateAclConfig method. +message UpdateAclConfigRequest { + AclConfig acl_config = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/agent_gateway_setting.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/agent_gateway_setting.proto new file mode 100644 index 000000000000..77f396616007 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/agent_gateway_setting.proto @@ -0,0 +1,57 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// 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.discoveryengine.v1beta; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "AgentGatewaySettingProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Agent Gateway setting, which may be attached to Gemini Enterprise resources +// for egress control of Gemini Enterprise agents to agents and tools outside of +// Gemini Enterprise. +message AgentGatewaySetting { + // Reference to an Agent Gateway resource. + message AgentGatewayReference { + // Required. Immutable. The resource name of the agent gateway. + // + // Expected format: + // `projects/{project_number}/locations/{location}/agentGateways/{agent_gateway}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "networkservices.googleapis.com/AgentGateway" + } + ]; + } + + // Optional. The default egress agent gateway to use, when this setting is + // applied to a Gemini Enterprise resource. + // + // The deployment mode must be GOOGLE_MANAGED, and the governed access path + // must be AGENT_TO_ANYWHERE. + AgentGatewayReference default_egress_agent_gateway = 1 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/answer.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/answer.proto index 46947d61b04e..856d7b3df637 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/answer.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/answer.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,6 +18,7 @@ package google.cloud.discoveryengine.v1beta; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/safety.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -42,10 +43,13 @@ message Answer { // Citation info for a segment. message Citation { // Index indicates the start of the segment, measured in bytes (UTF-8 - // unicode). + // unicode). If there are multi-byte characters,such as non-ASCII + // characters, the index measurement is longer than the string length. int64 start_index = 1; - // End of the attributed segment, exclusive. + // End of the attributed segment, exclusive. Measured in bytes (UTF-8 + // unicode). If there are multi-byte characters,such as non-ASCII + // characters, the index measurement is longer than the string length. int64 end_index = 2; // Citation sources for the attributed segment. @@ -58,6 +62,33 @@ message Answer { string reference_id = 1; } + // Grounding support for a claim in `answer_text`. + message GroundingSupport { + // Required. Index indicates the start of the claim, measured in bytes + // (UTF-8 unicode). + int64 start_index = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. End of the claim, exclusive. + int64 end_index = 2 [(google.api.field_behavior) = REQUIRED]; + + // A score in the range of [0, 1] describing how grounded is a specific + // claim by the references. + // Higher value means that the claim is better supported by the reference + // chunks. + optional double grounding_score = 3; + + // Indicates that this claim required grounding check. When the + // system decided this claim didn't require attribution/grounding check, + // this field is set to false. In that case, no grounding check was + // done for the claim and therefore `grounding_score`, `sources` is not + // returned. + optional bool grounding_check_required = 4; + + // Optional. Citation sources for the claim. + repeated CitationSource sources = 5 + [(google.api.field_behavior) = OPTIONAL]; + } + // Reference. message Reference { // Unstructured document information. @@ -76,6 +107,10 @@ message Answer { // the same query and chunk at any time due to a model retraining or // change in implementation. optional float relevance_score = 3; + + // Output only. Stores indexes of blobattachments linked to this chunk. + repeated int64 blob_attachment_indexes = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Document resource name. @@ -137,6 +172,10 @@ message Answer { // Document metadata. DocumentMetadata document_metadata = 4; + + // Output only. Stores indexes of blobattachments linked to this chunk. + repeated int64 blob_attachment_indexes = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Structured search information. @@ -148,6 +187,12 @@ message Answer { // Structured search data. google.protobuf.Struct struct_data = 2; + + // Output only. The title of the document. + string title = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The URI of the document. + string uri = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Search result content. @@ -163,6 +208,39 @@ message Answer { } } + // Stores binarydata attached to text answer, e.g. image, video, audio, etc. + message BlobAttachment { + // The media type and data of the blob. + message Blob { + // Output only. The media type (MIME type) of the generated or retrieved + // data. + string mime_type = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Raw bytes. + bytes data = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The source of the blob. + enum AttributionType { + // Unspecified attribution type. + ATTRIBUTION_TYPE_UNSPECIFIED = 0; + + // The attachment data is from the corpus. + CORPUS = 1; + + // The attachment data is generated by the model through code + // generation. + GENERATED = 2; + } + + // Output only. The mime type and data of the blob. + Blob data = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The attribution type of the blob. + AttributionType attribution_type = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Step information. message Step { // Action. @@ -288,6 +366,9 @@ message Answer { // Non-answer-seeking query classification type, for no clear intent. NON_ANSWER_SEEKING_QUERY_V2 = 4; + + // User defined query classification type. + USER_DEFINED_CLASSIFICATION_QUERY = 5; } // Query classification type. @@ -314,6 +395,9 @@ message Answer { // Answer generation has succeeded. SUCCEEDED = 3; + + // Answer generation is currently in progress. + STREAMING = 4; } // An enum for answer skipped reasons. @@ -369,6 +453,20 @@ message Answer { // Google skips the answer if a well grounded answer was unable to be // generated. LOW_GROUNDED_ANSWER = 9; + + // The user defined query classification ignored case. + // + // Google skips the answer if the query is classified as a user defined + // query classification. + USER_DEFINED_CLASSIFICATION_QUERY_IGNORED = 10; + + // The unhelpful answer case. + // + // Google skips the answer if the answer is not helpful. This can be due to + // a variety of factors, including but not limited to: the query is not + // answerable, the answer is not relevant to the query, or the answer is + // not well-formatted. + UNHELPFUL_ANSWER = 11; } // Immutable. Fully qualified name @@ -381,12 +479,24 @@ message Answer { // The textual answer. string answer_text = 3; + // A score in the range of [0, 1] describing how grounded the answer is by the + // reference chunks. + optional double grounding_score = 12; + // Citations. repeated Citation citations = 4; + // Optional. Grounding supports. + repeated GroundingSupport grounding_supports = 13 + [(google.api.field_behavior) = OPTIONAL]; + // References. repeated Reference references = 5; + // Output only. List of blob attachments in the answer. + repeated BlobAttachment blob_attachments = 15 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Suggested related questions. repeated string related_questions = 6; @@ -407,4 +517,8 @@ message Answer { // Output only. Answer completed timestamp. google.protobuf.Timestamp complete_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Safety ratings. + repeated SafetyRating safety_ratings = 14 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/assist_answer.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/assist_answer.proto new file mode 100644 index 000000000000..925213b7eaa5 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/assist_answer.proto @@ -0,0 +1,365 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.discoveryengine.v1beta; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/grounded_generation_service.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "AssistAnswerProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// AssistAnswer resource, main part of +// [AssistResponse][google.cloud.discoveryengine.v1beta.AssistResponse]. +message AssistAnswer { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/AssistAnswer" + pattern: "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}" + }; + + // One part of the multi-part response of the assist call. + message Reply { + // Alternatives for the assistant reply. + oneof reply { + // Possibly grounded response text or media from the assistant. + AssistantGroundedContent grounded_content = 1; + } + + // The time when the reply was created. + google.protobuf.Timestamp create_time = 14; + } + + // Customer policy enforcement results. Contains the results of the various + // policy checks, like the banned phrases or the Model Armor checks. + message CustomerPolicyEnforcementResult { + // Customer policy enforcement result for the banned phrase policy. + message BannedPhraseEnforcementResult { + // The banned phrases that were found in the query or the answer. + repeated string banned_phrases = 1; + } + + // Customer policy enforcement result for the Model Armor policy. + message ModelArmorEnforcementResult { + // The Model Armor policy result. + oneof result { + // The Model Armor violation that was found. + string model_armor_violation = 1; + + // The error returned by Model Armor if the policy enforcement failed + // for some reason. + google.rpc.Status error = 2; + } + } + + // Customer policy enforcement result for a single policy type. + message PolicyEnforcementResult { + // The policy type specific result. It can be either an error or a + // detailed information about the policy enforcement result. + oneof enforcement_result { + // The policy enforcement result for the banned phrase policy. + BannedPhraseEnforcementResult banned_phrase_enforcement_result = 3; + + // The policy enforcement result for the Model Armor policy. + ModelArmorEnforcementResult model_armor_enforcement_result = 4; + } + } + + // The verdict of the customer policy enforcement. + enum Verdict { + // Unknown value. + UNSPECIFIED = 0; + + // There was no policy violation. + ALLOW = 1; + + // Processing was blocked by the customer policy. + BLOCK = 2; + } + + // Final verdict of the customer policy enforcement. If only one policy + // blocked the processing, the verdict is BLOCK. + Verdict verdict = 1; + + // Customer policy enforcement results. + // Populated only if the assist call was skipped due to a policy + // violation. It contains results from those filters that blocked the + // processing of the query. + repeated PolicyEnforcementResult policy_results = 3; + } + + // State of the answer generation. + enum State { + // Unknown. + STATE_UNSPECIFIED = 0; + + // Assist operation is currently in progress. + IN_PROGRESS = 1; + + // Assist operation has failed. + FAILED = 2; + + // Assist operation has succeeded. + SUCCEEDED = 3; + + // Assist operation has been skipped. + SKIPPED = 4; + + // Assist operation has been cancelled (e.g. client closed the stream). + // May contain a partial response. + CANCELLED = 5; + } + + // Possible reasons for not answering an assist call. + enum AssistSkippedReason { + // Default value. Skip reason is not specified. + ASSIST_SKIPPED_REASON_UNSPECIFIED = 0; + + // The assistant ignored the query, because it did not appear to be + // answer-seeking. + NON_ASSIST_SEEKING_QUERY_IGNORED = 1; + + // The assistant ignored the query or refused to answer because of a + // customer policy violation (e.g., the query or the answer contained a + // banned phrase). + CUSTOMER_POLICY_VIOLATION = 2; + } + + // Immutable. Identifier. Resource name of the `AssistAnswer`. + // Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/assistAnswers/{assist_answer}` + // + // This field must be a UTF-8 encoded string with a length limit of 1024 + // characters. + string name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = IDENTIFIER + ]; + + // State of the answer generation. + State state = 2; + + // Replies of the assistant. + repeated Reply replies = 3; + + // Reasons for not answering the assist call. + repeated AssistSkippedReason assist_skipped_reasons = 5; + + // Optional. The field contains information about the various policy checks' + // results like the banned phrases or the Model Armor checks. This field is + // populated only if the assist call was skipped due to a policy violation. + CustomerPolicyEnforcementResult customer_policy_enforcement_result = 8 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Multi-modal content. +message AssistantContent { + // Inline blob. + message Blob { + // Required. The media type (MIME type) of the generated data. + string mime_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Raw bytes. + bytes data = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // A file, e.g., an audio summary. + message File { + // Required. The media type (MIME type) of the file. + string mime_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The file ID. + string file_id = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Code generated by the model that is meant to be executed by the model. + message ExecutableCode { + // Required. The code content. Currently only supports Python. + string code = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // Result of executing ExecutableCode. + message CodeExecutionResult { + // Enumeration of possible outcomes of the code execution. + enum Outcome { + // Unspecified status. This value should not be used. + OUTCOME_UNSPECIFIED = 0; + + // Code execution completed successfully. + OUTCOME_OK = 1; + + // Code execution finished but with a failure. `stderr` should contain the + // reason. + OUTCOME_FAILED = 2; + + // Code execution ran for too long, and was cancelled. There may or may + // not be a partial output present. + OUTCOME_DEADLINE_EXCEEDED = 3; + } + + // Required. Outcome of the code execution. + Outcome outcome = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Contains stdout when code execution is successful, stderr or + // other description otherwise. + string output = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Contained data. + oneof data { + // Inline text. + string text = 2; + + // Inline binary data. + Blob inline_data = 3; + + // A file, e.g., an audio summary. + File file = 4; + + // Code generated by the model that is meant to be executed. + ExecutableCode executable_code = 7; + + // Result of executing an ExecutableCode. + CodeExecutionResult code_execution_result = 8; + } + + // The producer of the content. Can be "model" or "user". + string role = 1; + + // Optional. Indicates if the part is thought from the model. + bool thought = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// A piece of content and possibly its grounding information. +// +// Not all content needs grounding. Phrases like "Of course, I will gladly +// search it for you." do not need grounding. +message AssistantGroundedContent { + // Grounding details for text sources. + message TextGroundingMetadata { + // Grounding information for a segment of the text. + message Segment { + // Zero-based index indicating the start of the segment, measured in bytes + // of a UTF-8 string (i.e. characters encoded on multiple bytes have a + // length of more than one). + int64 start_index = 1; + + // End of the segment, exclusive. + int64 end_index = 2; + + // References for the segment. + repeated int32 reference_indices = 4; + + // Score for the segment. + float grounding_score = 5; + + // The text segment itself. + string text = 6; + } + + // Grounding information for a visual segment. + message VisualSegment { + // References for the visual segment. + repeated int32 reference_indices = 1; + + // The content id of the visual segment. In order to display the citation + // of the visual element, this content_id needs to match with the + // `grounded_content.content_metadata.content_id` field. + string content_id = 2; + } + + // Referenced content and related document metadata. + message Reference { + // Document metadata. + message DocumentMetadata { + // Language of the referenced content. For now, it is only used for + // code. + enum Language { + LANGUAGE_UNSPECIFIED = 0; + + PYTHON = 1; + + SQL = 2; + } + + Language language = 8; + + // Document resource name. + optional string document = 1 [(google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Document" + }]; + + // URI for the document. It may contain a URL that redirects to the + // actual website. + optional string uri = 2; + + // Title. + optional string title = 3; + + // Page identifier. + optional string page_identifier = 4; + + // Domain name from the document URI. Note that the `uri` field may + // contain a URL that redirects to the actual website, in which case + // this will contain the domain name of the target site. + optional string domain = 5; + + // The mime type of the document. + // https://www.iana.org/assignments/media-types/media-types.xhtml. + optional string mime_type = 7; + } + + // Referenced text content. + string content = 1; + + // Chunk of code snippet from the referenced document. + string code_snippet = 4; + + // Document metadata. + DocumentMetadata document_metadata = 2; + } + + // Grounding information for parts of the text. + repeated Segment segments = 4; + + // Grounding information for parts of the visual content. + repeated VisualSegment visual_segments = 6; + + // References for the grounded text. + repeated Reference references = 2; + } + + // Grounding metadata for various modals. It only supports text for now. + oneof metadata { + // Metadata for grounding based on text sources. + TextGroundingMetadata text_grounding_metadata = 3; + } + + // The content. + AssistantContent content = 1; + + // Source attribution of the generated content. See also + // https://cloud.google.com/vertex-ai/generative-ai/docs/learn/overview#citation_check + CitationMetadata citation_metadata = 5; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/assistant.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/assistant.proto new file mode 100644 index 000000000000..2d68eac4edef --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/assistant.proto @@ -0,0 +1,250 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.discoveryengine.v1beta; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "AssistantProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Discovery Engine Assistant resource. +message Assistant { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/Assistant" + pattern: "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}" + }; + + // Configuration for the generation of the assistant response. + message GenerationConfig { + // System instruction, also known as the prompt preamble for LLM calls. + message SystemInstruction { + // Optional. Additional system instruction that will be added to the + // default system instruction. + string additional_system_instruction = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The default model to use for assistant. + string default_model_id = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list of models that are allowed to be used for assistant. + repeated string allowed_model_ids = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // System instruction, also known as the prompt preamble for LLM calls. + // See also + // https://cloud.google.com/vertex-ai/generative-ai/docs/learn/prompts/system-instructions + SystemInstruction system_instruction = 3; + + // The default language to use for the generation of the assistant + // response. + // Use an ISO 639-1 language code such as `en`. + // If not specified, the language will be automatically detected. + string default_language = 4; + } + + // Information to identify a tool. + message ToolInfo { + // The name of the tool as defined by + // DataConnectorService.QueryAvailableActions. + // Note: it's using `action` in the DataConnectorService apis, but they are + // the same as the `tool` here. + string tool_name = 1; + + // The display name of the tool. + string tool_display_name = 2; + } + + // The enabled tools on a connector + message ToolList { + // The list of tools with corresponding tool information. + repeated ToolInfo tool_info = 1; + } + + // Customer-defined policy for the assistant. + message CustomerPolicy { + // Definition of a customer-defined banned phrase. A banned phrase is not + // allowed to appear in the user query or the LLM response, or else the + // answer will be refused. + message BannedPhrase { + // The matching method for the banned phrase. + enum BannedPhraseMatchType { + // Defaults to SIMPLE_STRING_MATCH. + BANNED_PHRASE_MATCH_TYPE_UNSPECIFIED = 0; + + // The banned phrase matches if it is found anywhere in the text as an + // exact substring. + SIMPLE_STRING_MATCH = 1; + + // Banned phrase only matches if the pattern found in the text is + // surrounded by word delimiters. The phrase itself may still contain + // word delimiters. + WORD_BOUNDARY_STRING_MATCH = 2; + } + + // Required. The raw string content to be banned. + string phrase = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Match type for the banned phrase. + BannedPhraseMatchType match_type = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, diacritical marks (e.g., accents, umlauts) are + // ignored when matching banned phrases. For example, "cafe" would match + // "café". + bool ignore_diacritics = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration for customer defined Model Armor templates to be used for + // sanitizing user prompts and assistant responses. + message ModelArmorConfig { + // Determines the behavior when Model Armor fails to process a request. + enum FailureMode { + // Unspecified failure mode, default behavior is `FAIL_CLOSED`. + FAILURE_MODE_UNSPECIFIED = 0; + + // In case of a Model Armor processing failure, the request is allowed + // to proceed without any changes. + FAIL_OPEN = 1; + + // In case of a Model Armor processing failure, the request is rejected. + FAIL_CLOSED = 2; + } + + // Optional. The resource name of the Model Armor template for sanitizing + // user prompts. Format: + // `projects/{project}/locations/{location}/templates/{template_id}` + // + // If not specified, no sanitization will be applied to the user prompt. + string user_prompt_template = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "modelarmor.googleapis.com/Template" + } + ]; + + // Optional. The resource name of the Model Armor template for sanitizing + // assistant responses. Format: + // `projects/{project}/locations/{location}/templates/{template_id}` + // + // If not specified, no sanitization will be applied to the assistant + // response. + string response_template = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "modelarmor.googleapis.com/Template" + } + ]; + + // Optional. Defines the failure mode for Model Armor sanitization. + FailureMode failure_mode = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. List of banned phrases. + repeated BannedPhrase banned_phrases = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Model Armor configuration to be used for sanitizing user + // prompts and assistant responses. + ModelArmorConfig model_armor_config = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // The type of web grounding to use. + enum WebGroundingType { + // Default, unspecified setting. This is the same as disabled. + WEB_GROUNDING_TYPE_UNSPECIFIED = 0; + + // Web grounding is disabled. + WEB_GROUNDING_TYPE_DISABLED = 1; + + // Grounding with Google Search is enabled. + WEB_GROUNDING_TYPE_GOOGLE_SEARCH = 2; + + // Grounding with Enterprise Web Search is enabled. + WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH = 3; + } + + // Immutable. Resource name of the assistant. + // Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` + // + // It must be a UTF-8 encoded string with a length limit of 1024 characters. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Required. The assistant display name. + // + // It must be a UTF-8 encoded string with a length limit of 128 characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Description for additional information. Expected to be shown on + // the configuration UI, not to the users of the assistant. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for the generation of the assistant response. + GenerationConfig generation_config = 19 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The type of web grounding to use. + WebGroundingType web_grounding_type = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This field controls the default web grounding toggle for end + // users if `web_grounding_type` is set to `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` + // or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`. By default, this field is + // set to false. If `web_grounding_type` is `WEB_GROUNDING_TYPE_GOOGLE_SEARCH` + // or `WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH`, end users will have web + // grounding enabled by default on UI. If true, grounding toggle will be + // disabled by default on UI. End users can still enable web grounding in + // the UI if web grounding is enabled. + bool default_web_grounding_toggle_off = 22 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Note: not implemented yet. Use + // [enabled_actions][google.cloud.discoveryengine.v1beta.Assistant.enabled_actions] + // instead. The enabled tools on this assistant. The keys are connector name, + // for example + // "projects/{projectId}/locations/{locationId}/collections/{collectionId}/dataconnector + // The values consist of admin enabled tools towards the connector + // instance. Admin can selectively enable multiple tools on any of the + // connector instances that they created in the project. For example + // {"jira1ConnectorName": [(toolId1, "createTicket"), (toolId2, + // "transferTicket")], + // "gmail1ConnectorName": [(toolId3, "sendEmail"),..] } + map enabled_tools = 18 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Customer policy for the assistant. + CustomerPolicy customer_policy = 12 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Represents the time when this Assistant was created. + google.protobuf.Timestamp create_time = 24 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents the time when this Assistant was most recently + // updated. + google.protobuf.Timestamp update_time = 25 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/assistant_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/assistant_service.proto new file mode 100644 index 000000000000..526057c1cc23 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/assistant_service.proto @@ -0,0 +1,425 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.discoveryengine.v1beta; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/assist_answer.proto"; +import "google/cloud/discoveryengine/v1beta/assistant.proto"; +import "google/cloud/discoveryengine/v1beta/search_service.proto"; +import "google/cloud/discoveryengine/v1beta/session.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "AssistantServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Service for managing Assistant configuration and assisting users. +service AssistantService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.assist.readwrite," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; + + // Assists the user with a query in a streaming fashion. + rpc StreamAssist(StreamAssistRequest) returns (stream StreamAssistResponse) { + option (google.api.http) = { + post: "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*}:streamAssist" + body: "*" + }; + } + + // Creates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. + rpc CreateAssistant(CreateAssistantRequest) returns (Assistant) { + option (google.api.http) = { + post: "/v1beta/{parent=projects/*/locations/*/collections/*/engines/*}/assistants" + body: "assistant" + }; + } + + // Deletes an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. + rpc DeleteAssistant(DeleteAssistantRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates an [Assistant][google.cloud.discoveryengine.v1beta.Assistant] + rpc UpdateAssistant(UpdateAssistantRequest) returns (Assistant) { + option (google.api.http) = { + patch: "/v1beta/{assistant.name=projects/*/locations/*/collections/*/engines/*/assistants/*}" + body: "assistant" + }; + option (google.api.method_signature) = "assistant,update_mask"; + } + + // Gets an [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. + rpc GetAssistant(GetAssistantRequest) returns (Assistant) { + option (google.api.http) = { + get: "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/assistants/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s under + // an [Engine][google.cloud.discoveryengine.v1beta.Engine]. + rpc ListAssistants(ListAssistantsRequest) returns (ListAssistantsResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=projects/*/locations/*/collections/*/engines/*}/assistants" + }; + option (google.api.method_signature) = "parent"; + } +} + +// User metadata of the request. +message AssistUserMetadata { + // Optional. IANA time zone, e.g. Europe/Budapest. + string time_zone = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Preferred language to be used for answering if language detection + // fails. Also used as the language of error messages created by actions, + // regardless of language detection results. + string preferred_language_code = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request for the +// [AssistantService.StreamAssist][google.cloud.discoveryengine.v1beta.AssistantService.StreamAssist] +// method. +message StreamAssistRequest { + // Specification of tools that are used to serve the request. + message ToolsSpec { + // Specification of the Vertex AI Search tool. + message VertexAiSearchSpec { + // Optional. Specs defining + // [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to filter + // on in a search call and configurations for those data stores. This is + // only considered for + // [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple + // data stores. + repeated SearchRequest.DataStoreSpec data_store_specs = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter syntax consists of an expression language for + // constructing a predicate from one or more fields of the documents being + // filtered. Filter expression is case-sensitive. + // + // If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. + // + // Filtering in Vertex AI Search is done by mapping the LHS filter key to + // a key property defined in the Vertex AI Search backend -- this mapping + // is defined by the customer in their schema. For example a media + // customer might have a field 'name' in their schema. In this case the + // filter would look like this: filter --> name:'ANY("king kong")' + // + // For more information about filtering including syntax and filter + // operators, see + // [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + } + + // Specification of the web grounding tool. + message WebGroundingSpec {} + + // Specification of the image generation tool. + message ImageGenerationSpec {} + + // Specification of the video generation tool. + message VideoGenerationSpec {} + + // Optional. Specification of the Vertex AI Search tool. + VertexAiSearchSpec vertex_ai_search_spec = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specification of the web grounding tool. + // If field is present, enables grounding with web search. Works only if + // [Assistant.web_grounding_type][google.cloud.discoveryengine.v1beta.Assistant.web_grounding_type] + // is + // [WEB_GROUNDING_TYPE_GOOGLE_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_GOOGLE_SEARCH] + // or + // [WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH][google.cloud.discoveryengine.v1beta.Assistant.WebGroundingType.WEB_GROUNDING_TYPE_ENTERPRISE_WEB_SEARCH]. + WebGroundingSpec web_grounding_spec = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specification of the image generation tool. + ImageGenerationSpec image_generation_spec = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specification of the video generation tool. + VideoGenerationSpec video_generation_spec = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Assistant generation specification for the request. + // This allows to override the default generation configuration at the engine + // level. + message GenerationSpec { + // Optional. The Vertex AI model_id used for the generative model. If not + // set, the default Assistant model will be used. + string model_id = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The resource name of the + // [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Assistant" + } + ]; + + // Optional. Current user query. + // + // Empty query is only supported if `file_ids` are provided. In this case, the + // answer will be generated based on those context files. + Query query = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The session to use for the request. If specified, the assistant + // has access to the session history, and the query and the answer are stored + // there. + // + // If `-` is specified as the session ID, or it is left empty, then a new + // session is created with an automatically generated ID. + // + // Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}` + string session = 3 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Session" + } + ]; + + // Optional. Information about the user initiating the query. + AssistUserMetadata user_metadata = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specification of tools that are used to serve the request. + ToolsSpec tools_spec = 18 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specification of the generation configuration for the request. + GenerationSpec generation_spec = 19 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for the +// [AssistantService.StreamAssist][google.cloud.discoveryengine.v1beta.AssistantService.StreamAssist] +// method. +message StreamAssistResponse { + // Information about the session. + message SessionInfo { + // Name of the newly generated or continued session. + // + // Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}`. + string session = 1 [(google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Session" + }]; + } + + // Represents a skill used during the assist call. + message InvokedSkill { + // The resource name of the skill. + string name = 1; + + // The display name of the skill. + string display_name = 2; + } + + // Assist answer resource object containing parts of the assistant's final + // answer for the user's query. + // + // Not present if the current response doesn't add anything to previously + // sent + // [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies]. + // + // Observe + // [AssistAnswer.state][google.cloud.discoveryengine.v1beta.AssistAnswer.state] + // to see if more parts are to be expected. While the state is `IN_PROGRESS`, + // the + // [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies] + // field in each response will contain replies (reply fragments) to be + // appended to the ones received in previous responses. + // [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name] + // won't be filled. + // + // If the state is `SUCCEEDED`, `FAILED` or `SKIPPED`, the response + // is the last response and + // [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name] + // will have a value. + AssistAnswer answer = 1; + + // Session information. Only included in the final StreamAssistResponse of the + // response stream. + SessionInfo session_info = 2; + + // A global unique ID that identifies the current pair of request and stream + // of responses. Used for feedback and support. + string assist_token = 4; + + // The tool names of the tools that were invoked. + repeated string invocation_tools = 8; + + // The skills executed during the turn. + repeated InvokedSkill invoked_skills = 10; +} + +// Request for the +// [AssistantService.CreateAssistant][google.cloud.discoveryengine.v1beta.AssistantService.CreateAssistant] +// method. +message CreateAssistantRequest { + // Required. The parent resource name. + // Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Engine" + } + ]; + + // Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to + // create. + Assistant assistant = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the + // [Assistant][google.cloud.discoveryengine.v1beta.Assistant], which will + // become the final component of the + // [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s resource name. + // + // This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) + // with a length limit of 63 characters. + string assistant_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for the +// [AssistantService.DeleteAssistant][google.cloud.discoveryengine.v1beta.AssistantService.DeleteAssistant] +// method. +message DeleteAssistantRequest { + // Required. Resource name of + // [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` + // + // If the caller does not have permission to delete the + // [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of + // whether or not it exists, a PERMISSION_DENIED error is returned. + // + // If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to delete + // does not exist, a NOT_FOUND error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Assistant" + } + ]; +} + +// Request message for the +// [AssistantService.GetAssistant][google.cloud.discoveryengine.v1beta.AssistantService.GetAssistant] +// method. +message GetAssistantRequest { + // Required. Resource name of + // [Assistant][google.cloud.discoveryengine.v1beta.Assistant]. Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Assistant" + } + ]; +} + +// Request message for the +// [AssistantService.ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants] +// method. +message ListAssistantsRequest { + // Required. The parent resource name. + // Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Engine" + } + ]; + + // Maximum number of + // [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s to return. If + // unspecified, defaults to 100. The maximum allowed value is 1000; anything + // above that will be coerced down to 1000. + int32 page_size = 2; + + // A page token + // [ListAssistantsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListAssistantsResponse.next_page_token], + // received from a previous + // [AssistantService.ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants] + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // [ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants] + // must match the call that provided the page token. + string page_token = 3; +} + +// Response message for the +// [AssistantService.ListAssistants][google.cloud.discoveryengine.v1beta.AssistantService.ListAssistants] +// method. +message ListAssistantsResponse { + // All the customer's + // [Assistant][google.cloud.discoveryengine.v1beta.Assistant]s. + repeated Assistant assistants = 1; + + // A token that can be sent as + // [ListAssistantsRequest.page_token][google.cloud.discoveryengine.v1beta.ListAssistantsRequest.page_token] + // to retrieve the next page. If this field is omitted, there are no + // subsequent pages. + string next_page_token = 2; +} + +// Request message for the +// [AssistantService.UpdateAssistant][google.cloud.discoveryengine.v1beta.AssistantService.UpdateAssistant] +// method. +message UpdateAssistantRequest { + // Required. The [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to + // update. + // + // The [Assistant][google.cloud.discoveryengine.v1beta.Assistant]'s `name` + // field is used to identify the + // [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update. + // Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` + // + // If the caller does not have permission to update the + // [Assistant][google.cloud.discoveryengine.v1beta.Assistant], regardless of + // whether or not it exists, a PERMISSION_DENIED error is returned. + // + // If the [Assistant][google.cloud.discoveryengine.v1beta.Assistant] to update + // does not exist, a NOT_FOUND error is returned. + Assistant assistant = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to update. + google.protobuf.FieldMask update_mask = 2; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/chunk.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/chunk.proto index 6c7bac2f5765..47d609f22e4f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/chunk.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/chunk.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -47,6 +47,10 @@ message Chunk { // Title of the document. string title = 2; + // The mime type of the document. + // https://www.iana.org/assignments/media-types/media-types.xhtml. + string mime_type = 4; + // Data representation. // The structured JSON data for the document. It should conform to the // registered [Schema][google.cloud.discoveryengine.v1beta.Schema] or an @@ -82,6 +86,42 @@ message Chunk { repeated Chunk next_chunks = 2; } + // The structured content information. + message StructuredContent { + // Output only. The structure type of the structured content. + StructureType structure_type = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The content of the structured content. + string content = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The annotation metadata includes structured content in the current chunk. + message AnnotationMetadata { + // Output only. The structured content information. + StructuredContent structured_content = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Image id is provided if the structured content is based on + // an image. + string image_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Defines the types of the structured content that can be extracted. + enum StructureType { + // Default value. + STRUCTURE_TYPE_UNSPECIFIED = 0; + + // Shareholder structure. + SHAREHOLDER_STRUCTURE = 1; + + // Signature structure. + SIGNATURE_STRUCTURE = 2; + + // Checkbox structure. + CHECKBOX_STRUCTURE = 3; + } + // The full resource name of the chunk. // Format: // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`. @@ -99,7 +139,8 @@ message Chunk { // Output only. Represents the relevance score based on similarity. // Higher score indicates higher chunk relevance. // The score is in range [-1.0, 1.0]. - // Only populated on [SearchService.SearchResponse][]. + // Only populated on + // [SearchResponse][google.cloud.discoveryengine.v1beta.SearchResponse]. optional double relevance_score = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -116,4 +157,20 @@ message Chunk { // Output only. Metadata of the current chunk. ChunkMetadata chunk_metadata = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Image Data URLs if the current chunk contains images. + // Data URLs are composed of four parts: a prefix (data:), a MIME type + // indicating the type of data, an optional base64 token if non-textual, + // and the data itself: + // data:[][;base64], + repeated string data_urls = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Annotation contents if the current chunk contains annotations. + repeated string annotation_contents = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The annotation metadata includes structured content in the + // current chunk. + repeated AnnotationMetadata annotation_metadata = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/cmek_config_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/cmek_config_service.proto new file mode 100644 index 000000000000..c362cc936deb --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/cmek_config_service.proto @@ -0,0 +1,314 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.discoveryengine.v1beta; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "CmekConfigServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Service for managing CMEK related tasks +service CmekConfigService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; + + // Provisions a CMEK key for use in a location of a customer's project. + // This method will also conduct location validation on the provided + // cmekConfig to make sure the key is valid and can be used in the + // selected location. + rpc UpdateCmekConfig(UpdateCmekConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1beta/{config.name=projects/*/locations/*/cmekConfig}" + body: "config" + additional_bindings { + patch: "/v1beta/{config.name=projects/*/locations/*/cmekConfigs/*}" + body: "config" + } + }; + option (google.api.method_signature) = "config"; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1beta.CmekConfig" + metadata_type: "google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata" + }; + } + + // Gets the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]. + rpc GetCmekConfig(GetCmekConfigRequest) returns (CmekConfig) { + option (google.api.http) = { + get: "/v1beta/{name=projects/*/locations/*/cmekConfig}" + additional_bindings { + get: "/v1beta/{name=projects/*/locations/*/cmekConfigs/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Lists all the [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s + // with the project. + rpc ListCmekConfigs(ListCmekConfigsRequest) + returns (ListCmekConfigsResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=projects/*/locations/*}/cmekConfigs" + }; + option (google.api.method_signature) = "parent"; + } + + // De-provisions a CmekConfig. + rpc DeleteCmekConfig(DeleteCmekConfigRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta/{name=projects/*/locations/*/cmekConfigs/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata" + }; + } +} + +// Request message for UpdateCmekConfig method. +// rpc. +message UpdateCmekConfigRequest { + // Required. The CmekConfig resource. + CmekConfig config = 1 [(google.api.field_behavior) = REQUIRED]; + + // Set the following CmekConfig as the default to be used for child + // resources if one is not specified. + bool set_default = 2; +} + +// Request message for GetCmekConfigRequest method. +message GetCmekConfigRequest { + // Required. Resource name of + // [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], such as + // `projects/*/locations/*/cmekConfig` or + // `projects/*/locations/*/cmekConfigs/*`. + // + // If the caller does not have permission to access the + // [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig], regardless of + // whether or not it exists, a PERMISSION_DENIED error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/CmekConfig" + } + ]; +} + +// Metadata for single-regional CMEKs. +message SingleRegionKey { + // Required. Single-regional kms key resource name which will be used to + // encrypt resources + // `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. + string kms_key = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKeys" + } + ]; +} + +// Configurations used to enable CMEK data encryption with Cloud KMS keys. +message CmekConfig { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/CmekConfig" + pattern: "projects/{project}/locations/{location}/cmekConfig" + pattern: "projects/{project}/locations/{location}/cmekConfigs/{cmek_config}" + plural: "cmekConfigs" + singular: "cmekConfig" + }; + + // States of the CmekConfig. + enum State { + // The CmekConfig state is unknown. + STATE_UNSPECIFIED = 0; + + // The CmekConfig is creating. + CREATING = 1; + + // The CmekConfig can be used with DataStores. + ACTIVE = 2; + + // The CmekConfig is unavailable, most likely due to the KMS Key being + // revoked. + KEY_ISSUE = 3; + + // The CmekConfig is deleting. + DELETING = 4; + + // The CmekConfig deletion process failed. + DELETE_FAILED = 7; + + // The CmekConfig is not usable, most likely due to some internal issue. + UNUSABLE = 5; + + // The KMS key version is being rotated. + ACTIVE_ROTATING = 6; + + // The KMS key is soft deleted. Some cleanup policy will eventually be + // applied. + DELETED = 8; + + // The KMS key is expired, meaning the key has been disabled for 30+ days. + // The customer can call DeleteCmekConfig to change the state to DELETED. + EXPIRED = 9; + } + + // States of NotebookLM. + enum NotebookLMState { + // The NotebookLM state is unknown. + NOTEBOOK_LM_STATE_UNSPECIFIED = 0; + + // The NotebookLM is not ready. + NOTEBOOK_LM_NOT_READY = 1; + + // The NotebookLM is ready to be used. + NOTEBOOK_LM_READY = 2; + + // The NotebookLM is not enabled. + NOTEBOOK_LM_NOT_ENABLED = 3; + } + + // Required. The name of the CmekConfig of the form + // `projects/{project}/locations/{location}/cmekConfig` or + // `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`. + string name = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. KMS key resource name which will be used to encrypt resources + // `projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{keyId}`. + string kms_key = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKeys" + } + ]; + + // Output only. KMS key version resource name which will be used to encrypt + // resources + // `/cryptoKeyVersions/{keyVersion}`. + string kms_key_version = 6 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "cloudkms.googleapis.com/CryptoKeyVersions" + } + ]; + + // Output only. The states of the CmekConfig. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The default CmekConfig for the Customer. + bool is_default = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp of the last key rotation. + int64 last_rotation_timestamp_micros = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Single-regional CMEKs that are required for some VAIS features. + repeated SingleRegionKey single_region_keys = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Whether the NotebookLM Corpus is ready to be used. + NotebookLMState notebooklm_state = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Metadata related to the progress of the +// [CmekConfigService.UpdateCmekConfig][google.cloud.discoveryengine.v1beta.CmekConfigService.UpdateCmekConfig] +// operation. This will be returned by the google.longrunning.Operation.metadata +// field. +message UpdateCmekConfigMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; +} + +// Request message for +// [CmekConfigService.ListCmekConfigs][google.cloud.discoveryengine.v1beta.CmekConfigService.ListCmekConfigs] +// method. +message ListCmekConfigsRequest { + // Required. The parent location resource name, such as + // `projects/{project}/locations/{location}`. + // + // If the caller does not have permission to list + // [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s under this + // location, regardless of whether or not a CmekConfig exists, a + // PERMISSION_DENIED error is returned. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Location" + } + ]; +} + +// Response message for +// [CmekConfigService.ListCmekConfigs][google.cloud.discoveryengine.v1beta.CmekConfigService.ListCmekConfigs] +// method. +message ListCmekConfigsResponse { + // All the customer's + // [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig]s. + repeated CmekConfig cmek_configs = 1; +} + +// Request message for +// [CmekConfigService.DeleteCmekConfig][google.cloud.discoveryengine.v1beta.CmekConfigService.DeleteCmekConfig] +// method. +message DeleteCmekConfigRequest { + // Required. The resource name of the + // [CmekConfig][google.cloud.discoveryengine.v1beta.CmekConfig] to delete, + // such as + // `projects/{project}/locations/{location}/cmekConfigs/{cmek_config}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/CmekConfig" + } + ]; +} + +// Metadata related to the progress of the +// [CmekConfigService.DeleteCmekConfig][google.cloud.discoveryengine.v1beta.CmekConfigService.DeleteCmekConfig] +// operation. This will be returned by the google.longrunning.Operation.metadata +// field. +message DeleteCmekConfigMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/common.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/common.proto index 142399662261..f7d6f30f6a2b 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/common.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/common.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,7 +16,9 @@ syntax = "proto3"; package google.cloud.discoveryengine.v1beta; +import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/type/latlng.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; @@ -49,6 +51,23 @@ option (google.api.resource_definition) = { pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/completionConfig" pattern: "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/completionConfig" }; +option (google.api.resource_definition) = { + type: "discoveryengine.googleapis.com/BillingAccountLicenseConfig" + pattern: "billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config}" +}; +option (google.api.resource_definition) = { + type: "networkservices.googleapis.com/AgentGateway" + pattern: "projects/{project}/locations/{location}/agentGateways/{agent_gateway}" +}; +option (google.api.resource_definition) = { + type: "modelarmor.googleapis.com/Template" + pattern: "projects/{project}/locations/{location}/templates/{template}" +}; +option (google.api.resource_definition) = { + type: "dlp.googleapis.com/ContentPolicy" + pattern: "organizations/{organization}/locations/{location}/contentPolicies/{content_policy}" + pattern: "projects/{project}/locations/{location}/contentPolicies/{content_policy}" +}; option (google.api.resource_definition) = { type: "healthcare.googleapis.com/FhirStore" pattern: "projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}" @@ -57,6 +76,14 @@ 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}" }; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKeys" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}" +}; +option (google.api.resource_definition) = { + type: "cloudkms.googleapis.com/CryptoKeyVersions" + pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}" +}; // The industry vertical associated with the // [DataStore][google.cloud.discoveryengine.v1beta.DataStore]. @@ -93,6 +120,9 @@ enum SolutionType { // It's used for Generative chat engine only, the associated data stores // must enrolled with `SOLUTION_TYPE_CHAT` solution. SOLUTION_TYPE_GENERATIVE_CHAT = 4; + + // Used for AI Mode. + SOLUTION_TYPE_AI_MODE = 5; } // Defines a further subdivision of `SolutionType`. @@ -133,6 +163,71 @@ enum SearchAddOn { SEARCH_ADD_ON_LLM = 1; } +// Subscription tier information. +enum SubscriptionTier { + // Default value. + SUBSCRIPTION_TIER_UNSPECIFIED = 0; + + // Search tier. + // Search tier can access Vertex AI Search features and NotebookLM features. + SUBSCRIPTION_TIER_SEARCH = 1; + + // Gemini Enterprise Plus tier. + SUBSCRIPTION_TIER_SEARCH_AND_ASSISTANT = 2; + + // NotebookLM tier. + // NotebookLM is a subscription tier can only access NotebookLM features. + SUBSCRIPTION_TIER_NOTEBOOK_LM = 3; + + // Gemini Frontline worker tier. + SUBSCRIPTION_TIER_FRONTLINE_WORKER = 4; + + // Gemini Business Starter tier. + SUBSCRIPTION_TIER_AGENTSPACE_STARTER = 10; + + // Gemini Business tier. + SUBSCRIPTION_TIER_AGENTSPACE_BUSINESS = 6; + + // Gemini Enterprise Standard tier. + SUBSCRIPTION_TIER_ENTERPRISE = 7; + + // Gemini Enterprise Standard tier for emerging markets. + SUBSCRIPTION_TIER_ENTERPRISE_EMERGING = 15; + + // Gemini Enterprise EDU tier. + SUBSCRIPTION_TIER_EDU = 8; + + // Gemini Enterprise EDU Pro tier. + SUBSCRIPTION_TIER_EDU_PRO = 9; + + // Gemini Enterprise EDU tier for emerging market only. + SUBSCRIPTION_TIER_EDU_EMERGING = 11; + + // Gemini Enterprise EDU Pro tier for emerging market. + SUBSCRIPTION_TIER_EDU_PRO_EMERGING = 12; + + // Gemini Frontline Starter tier. + SUBSCRIPTION_TIER_FRONTLINE_STARTER = 13; +} + +// Subscription term. +enum SubscriptionTerm { + // Default value, do not use. + SUBSCRIPTION_TERM_UNSPECIFIED = 0; + + // 1 month. + SUBSCRIPTION_TERM_ONE_MONTH = 1; + + // 1 year. + SUBSCRIPTION_TERM_ONE_YEAR = 2; + + // 3 years. + SUBSCRIPTION_TERM_THREE_YEARS = 3; + + // Custom term. Must set the end_date. + SUBSCRIPTION_TERM_CUSTOM = 6; +} + // A floating point interval. message Interval { // The lower bound of the interval. If neither of the min fields are @@ -191,6 +286,19 @@ message CustomAttribute { // Information of an end user. message UserInfo { + // Precise location info with multiple representation options. + // Currently only latitude and longitude point is supported. + message PreciseLocation { + oneof location { + // Optional. Location represented by a latitude/longitude point. + google.type.LatLng point = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Location represented by a natural language address. Will + // later be geocoded and converted to either a point or a polygon. + string address = 2 [(google.api.field_behavior) = OPTIONAL]; + } + } + // Highly recommended for logged-in users. Unique identifier for logged-in // user, such as a user name. Don't set for anonymous users. // @@ -202,6 +310,10 @@ message UserInfo { // // The field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an `INVALID_ARGUMENT` error is returned. + // + // Represents an opaque ID to the Search API. The Search API doesn't + // interpret the value in any way. This field is used to associate events + // with a user across sessions if the events are being uploaded. string user_id = 1; // User agent as included in the HTTP header. @@ -216,6 +328,17 @@ message UserInfo { // [UserEvent.direct_user_request][google.cloud.discoveryengine.v1beta.UserEvent.direct_user_request] // is set. string user_agent = 2; + + // Optional. IANA time zone, e.g. Europe/Budapest. + string time_zone = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Input only. Precise location of the user. + // It is used in Custom Ranking to calculate the distance between the user and + // the relevant documents. + PreciseLocation precise_location = 4 [ + (google.api.field_behavior) = INPUT_ONLY, + (google.api.field_behavior) = OPTIONAL + ]; } // Defines embedding config, used for bring your own embeddings feature. @@ -229,3 +352,116 @@ message DoubleList { // Double values. repeated double values = 1; } + +// Identity Provider Config. +message IdpConfig { + // Third party IDP Config. + message ExternalIdpConfig { + // Workforce pool name. + // Example: "locations/global/workforcePools/pool_id" + string workforce_pool_name = 1; + } + + // Identity Provider Type. + enum IdpType { + // Default value. ACL search not enabled. + IDP_TYPE_UNSPECIFIED = 0; + + // Google 1P provider. + GSUITE = 1; + + // Third party provider. + THIRD_PARTY = 2; + } + + // Identity provider type configured. + IdpType idp_type = 1; + + // External Identity provider config. + ExternalIdpConfig external_idp_config = 2; +} + +// Principal identifier of a user or a group. +message Principal { + // Union field principal. Principal can be a user or a group. + oneof principal { + // User identifier. + // For Google Workspace user account, user_id should be the google workspace + // user email. + // For non-google identity provider user account, user_id is the mapped user + // identifier configured during the workforcepool config. + string user_id = 1; + + // Group identifier. + // For Google Workspace user account, group_id should be the google + // workspace group email. + // For non-google identity provider user account, group_id is the mapped + // group identifier configured during the workforcepool config. + string group_id = 2; + + // For 3P application identities which are not present in the customer + // identity provider. + string external_entity_id = 3; + } +} + +// Config to data store for `HEALTHCARE_FHIR` vertical. +message HealthcareFhirConfig { + // Whether to enable configurable schema for `HEALTHCARE_FHIR` vertical. + // + // If set to `true`, the predefined healthcare fhir schema can be extended + // for more customized searching and filtering. + bool enable_configurable_schema = 1; + + // Whether to enable static indexing for `HEALTHCARE_FHIR` batch + // ingestion. + // + // If set to `true`, the batch ingestion will be processed in a static + // indexing mode which is slower but more capable of handling larger + // volume. + bool enable_static_indexing_for_batch_ingestion = 2; + + // Optional. Names of the Group resources to use as a basis for the initial + // patient filter, in format + // `projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/fhirStores/{fhir_store_id}/fhir/Group/{group_id}`. + // The filter group must be a FHIR resource name of + // type Group, and the filter will be constructed from the direct members of + // the group which are Patient resources. + repeated string initial_filter_groups = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Promotion proto includes uri and other helping information to display the +// promotion. +message SearchLinkPromotion { + // Required. The title of the promotion. + // Maximum length: 160 characters. + string title = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The URL for the page the user wants to promote. Must be set for + // site search. For other verticals, this is optional. + string uri = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The [Document][google.cloud.discoveryengine.v1beta.Document] the + // user wants to promote. For site search, leave unset and only populate uri. + // Can be set along with uri. + string document = 6 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Document" + } + ]; + + // Optional. The promotion thumbnail image url. + string image_uri = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Promotion description. + // Maximum length: 200 characters. + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The enabled promotion will be returned for any serving configs + // associated with the parent of the control this promotion is attached to. + // + // This flag is used for basic site search only. + bool enabled = 5 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/completion.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/completion.proto index 9c95af52653c..568757abc418 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/completion.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/completion.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/completion_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/completion_service.proto index b7b46168335c..2e41d822ea62 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/completion_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/completion_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,7 +40,11 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service CompletionService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/cloud_search.query," + "https://www.googleapis.com/auth/discoveryengine.assist.readwrite," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Completes the specified user input with keyword suggestions. rpc CompleteQuery(CompleteQueryRequest) returns (CompleteQueryResponse) { @@ -144,6 +148,19 @@ service CompletionService { metadata_type: "google.cloud.discoveryengine.v1beta.PurgeCompletionSuggestionsMetadata" }; } + + // Removes the search history suggestion in an engine for a user. This will + // remove the suggestion from being returned in the + // [AdvancedCompleteQueryResponse.recent_search_suggestions][google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.recent_search_suggestions] + // for this user. If the user searches the same suggestion again, the new + // history will override and suggest this suggestion again. + rpc RemoveSuggestion(RemoveSuggestionRequest) + returns (RemoveSuggestionResponse) { + option (google.api.http) = { + post: "/v1beta/{completion_config=projects/*/locations/*/collections/*/engines/*/completionConfig}:removeSuggestion" + body: "*" + }; + } } // Request message for @@ -183,10 +200,10 @@ message CompleteQueryRequest { // * `search-history` is the default model for site search dataStores. string query_model = 3; - // A unique identifier for tracking visitors. For example, this could be - // implemented with an HTTP cookie, which should be able to uniquely identify - // a visitor on a single device. This unique identifier should not change if - // the visitor logs in or out of the website. + // Optional. A unique identifier for tracking visitors. For example, this + // could be implemented with an HTTP cookie, which should be able to uniquely + // identify a visitor on a single device. This unique identifier should not + // change if the visitor logs in or out of the website. // // This field should NOT have a fixed value such as `unknown_visitor`. // @@ -197,7 +214,7 @@ message CompleteQueryRequest { // // The field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - string user_pseudo_id = 4; + string user_pseudo_id = 4 [(google.api.field_behavior) = OPTIONAL]; // Indicates if tail suggestions should be returned if there are no // suggestions that match the full query. Even if set to true, if there are @@ -238,7 +255,8 @@ message CompleteQueryResponse { // method. // . message AdvancedCompleteQueryRequest { - // Specification to boost suggestions based on the condtion of the suggestion. + // Specification to boost suggestions based on the condition of the + // suggestion. message BoostSpec { // Boost applies to suggestions which match a condition. message ConditionBoostSpec { @@ -268,7 +286,7 @@ message AdvancedCompleteQueryRequest { } // Condition boost specifications. If a suggestion matches multiple - // conditions in the specifictions, boost values from these specifications + // conditions in the specifications, boost values from these specifications // are all applied and combined in a non-linear way. Maximum number of // specifications is 20. // @@ -276,6 +294,16 @@ message AdvancedCompleteQueryRequest { repeated ConditionBoostSpec condition_boost_specs = 1; } + // Specification of each suggestion type. + message SuggestionTypeSpec { + // Optional. Suggestion type. + SuggestionType suggestion_type = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maximum number of suggestions to return for each suggestion + // type. + int32 max_suggestions = 2 [(google.api.field_behavior) = OPTIONAL]; + } + // Suggestion type to return. enum SuggestionType { // Default value. @@ -318,9 +346,9 @@ message AdvancedCompleteQueryRequest { // user's recently searched queries given the empty query. string query = 2 [(google.api.field_behavior) = REQUIRED]; - // Specifies the autocomplete data model. This overrides any model specified - // in the Configuration > Autocomplete section of the Cloud console. Currently - // supported values: + // Specifies the autocomplete query model, which only applies to the QUERY + // SuggestionType. This overrides any model specified in the Configuration > + // Autocomplete section of the Cloud console. Currently supported values: // // * `document` - Using suggestions generated from user-imported documents. // * `search-history` - Using suggestions generated from the past history of @@ -337,10 +365,10 @@ message AdvancedCompleteQueryRequest { // * `search-history` is the default model for site search dataStores. string query_model = 3; - // A unique identifier for tracking visitors. For example, this could be - // implemented with an HTTP cookie, which should be able to uniquely identify - // a visitor on a single device. This unique identifier should not change if - // the visitor logs in or out of the website. + // Optional. A unique identifier for tracking visitors. For example, this + // could be implemented with an HTTP cookie, which should be able to uniquely + // identify a visitor on a single device. This unique identifier should not + // change if the visitor logs in or out of the website. // // This field should NOT have a fixed value such as `unknown_visitor`. // @@ -350,7 +378,7 @@ message AdvancedCompleteQueryRequest { // [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id]. // // The field must be a UTF-8 encoded string with a length limit of 128 - string user_pseudo_id = 4; + string user_pseudo_id = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Information about the end user. // @@ -374,6 +402,13 @@ message AdvancedCompleteQueryRequest { // moment. repeated SuggestionType suggestion_types = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specification of each suggestion type. + repeated SuggestionTypeSpec suggestion_type_specs = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Experiment ids for this request. + repeated string experiment_ids = 14 [(google.api.field_behavior) = OPTIONAL]; } // Response message for @@ -393,6 +428,9 @@ message AdvancedCompleteQueryResponse { // The name of the dataStore that this suggestion belongs to. repeated string data_store = 3; + + // The score of each suggestion. The score is in the range of [0, 1]. + double score = 4; } // Suggestions as people. @@ -423,6 +461,15 @@ message AdvancedCompleteQueryResponse { string data_store = 5 [(google.api.resource_reference) = { type: "discoveryengine.googleapis.com/DataStore" }]; + + // The score of each suggestion. The score is in the range of [0, 1]. + double score = 6; + + // The photo uri of the person suggestion. + string display_photo_uri = 7; + + // The destination uri of the person suggestion. + string destination_uri = 8; } // Suggestions as content. @@ -453,6 +500,15 @@ message AdvancedCompleteQueryResponse { string data_store = 5 [(google.api.resource_reference) = { type: "discoveryengine.googleapis.com/DataStore" }]; + + // The score of each suggestion. The score is in the range of [0, 1]. + double score = 6; + + // The icon uri of the content suggestion. + string icon_uri = 7; + + // The destination uri of the content suggestion. + string destination_uri = 8; } // Suggestions from recent search history. @@ -462,6 +518,9 @@ message AdvancedCompleteQueryResponse { // The time when this recent rearch happened. google.protobuf.Timestamp recent_search_time = 2; + + // The score of each suggestion. The score is in the range of [0, 1]. + double score = 3; } // Results of the matched query suggestions. The result list is ordered and @@ -486,3 +545,60 @@ message AdvancedCompleteQueryResponse { // ordered and the first result is the top suggestion. repeated RecentSearchSuggestion recent_search_suggestions = 5; } + +// Request message for +// [CompletionService.RemoveSuggestion][google.cloud.discoveryengine.v1beta.CompletionService.RemoveSuggestion] +// method. +message RemoveSuggestionRequest { + // The suggestion to be removed. + oneof suggestion { + // The search history suggestion to be removed. + string search_history_suggestion = 2; + + // Remove all search history suggestions for the user. + bool remove_all_search_history_suggestions = 6; + } + + // Required. The completion_config of the parent engine resource name for + // which the search history suggestion is to be removed, such as + // `projects/*/locations/global/collections/default_collection/engines/*/completionConfig`. + string completion_config = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/CompletionConfig" + } + ]; + + // Required. A unique identifier for tracking visitors. For example, this + // could be implemented with an HTTP cookie, which should be able to uniquely + // identify a visitor on a single device. This unique identifier should not + // change if the visitor logs in or out of the website. + // + // This field should NOT have a fixed value such as `unknown_visitor`. + // + // This should be the same identifier as + // [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1beta.UserEvent.user_pseudo_id] + // and + // [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1beta.SearchRequest.user_pseudo_id]. + // + // The field must be a UTF-8 encoded string with a length limit of 128. + string user_pseudo_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Information about the end user. + // + // This should be the same identifier information as + // [UserEvent.user_info][google.cloud.discoveryengine.v1beta.UserEvent.user_info] + // and + // [SearchRequest.user_info][google.cloud.discoveryengine.v1beta.SearchRequest.user_info]. + UserInfo user_info = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Time at which the suggestion was removed. If not set, the current + // time will be used. + google.protobuf.Timestamp remove_time = 5 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for +// [CompletionService.RemoveSuggestion][google.cloud.discoveryengine.v1beta.CompletionService.RemoveSuggestion] +// method. +message RemoveSuggestionResponse {} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/control.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/control.proto index b6b8a142e0a7..8dfc735bfa23 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/control.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/control.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -77,7 +77,7 @@ message Condition { // Optional. Query regex to match the whole search query. // Cannot be set when // [Condition.query_terms][google.cloud.discoveryengine.v1beta.Condition.query_terms] - // is set. This is currently supporting promotion use case. + // is set. Only supported for Basic Site Search promotion serving controls. string query_regex = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -95,9 +95,97 @@ message Control { // Adjusts order of products in returned list. message BoostAction { - // Required. Strength of the boost, which should be in [-1, 1]. Negative + // 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 InterpolationBoostSpec { + // 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 { + // Optional. 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 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. 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 [(google.api.field_behavior) = OPTIONAL]; + } + + // 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; + } + + // Optional. The name of the field whose value will be used to determine + // the boost amount. + string field_name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. 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 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The interpolation type to be applied to connect the control + // points listed below. + InterpolationType interpolation_type = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. 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 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Constant value boost or custom ranking based boost specifications. + oneof boost_spec { + // Optional. Strength of the boost, which should be in [-1, 1]. Negative + // boost means demotion. Default is 0.0 (No-op). + float fixed_boost = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Complex specification for custom ranking based on customer + // defined attribute value. + InterpolationBoostSpec interpolation_boost_spec = 5 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Strength of the boost, which should be in [-1, 1]. Negative // boost means demotion. Default is 0.0 (No-op). - float boost = 1 [(google.api.field_behavior) = REQUIRED]; + float boost = 1 [deprecated = true]; // Required. Specifies which products to apply the boost to. // @@ -164,9 +252,24 @@ message Control { repeated string synonyms = 1; } - // Actions are restricted by Vertical and Solution + // Promote certain links based on some trigger queries. // - // Required. + // Example: Promote shoe store link when searching for `shoe` keyword. + // The link can be outside of associated data store. + message PromoteAction { + // Required. Data store with which this promotion is attached to. + string data_store = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/DataStore" + } + ]; + + // Required. Promotion attached to this action. + SearchLinkPromotion search_link_promotion = 2 + [(google.api.field_behavior) = REQUIRED]; + } + oneof action { // Defines a boost-type control BoostAction boost_action = 6; @@ -180,6 +283,9 @@ message Control { // Treats a group of terms as synonyms of one another. SynonymsAction synonyms_action = 10; + + // Promote certain links based on predefined trigger queries. + PromoteAction promote_action = 15; } // Immutable. Fully qualified name diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/control_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/control_service.proto index 3b18eac3908b..e77ff63beac4 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/control_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/control_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,7 +40,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service ControlService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Creates a Control. // diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversation.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversation.proto index b836980633e0..3edc6fab9734 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversation.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversation.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversational_search_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversational_search_service.proto index 907421ba6110..ac60d09fc0b1 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversational_search_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/conversational_search_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,6 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/discoveryengine/v1beta/answer.proto"; import "google/cloud/discoveryengine/v1beta/conversation.proto"; +import "google/cloud/discoveryengine/v1beta/safety.proto"; import "google/cloud/discoveryengine/v1beta/search_service.proto"; import "google/cloud/discoveryengine/v1beta/session.proto"; import "google/protobuf/empty.proto"; @@ -40,7 +41,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service ConversationalSearchService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Converses a conversation. rpc ConverseConversation(ConverseConversationRequest) @@ -166,6 +169,29 @@ service ConversationalSearchService { }; } + // Answer query method (streaming). + // + // It takes one + // [AnswerQueryRequest][google.cloud.discoveryengine.v1beta.AnswerQueryRequest] + // and returns multiple + // [AnswerQueryResponse][google.cloud.discoveryengine.v1beta.AnswerQueryResponse] + // messages in a stream. + rpc StreamAnswerQuery(AnswerQueryRequest) + returns (stream AnswerQueryResponse) { + option (google.api.http) = { + post: "/v1beta/{serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:streamAnswer" + body: "*" + additional_bindings { + post: "/v1beta/{serving_config=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:streamAnswer" + body: "*" + } + additional_bindings { + post: "/v1beta/{serving_config=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}:streamAnswer" + body: "*" + } + }; + } + // Gets a Answer. rpc GetAnswer(GetAnswerRequest) returns (Answer) { option (google.api.http) = { @@ -473,10 +499,50 @@ message ListConversationsResponse { // method. message AnswerQueryRequest { // Safety specification. + // There are two use cases: + // 1. when only safety_spec.enable is set, the BLOCK_LOW_AND_ABOVE threshold + // will be applied for all categories. + // 2. when safety_spec.enable is set and some safety_settings are set, only + // specified safety_settings are applied. message SafetySpec { + // Safety settings. + message SafetySetting { + // Probability based thresholds levels for blocking. + enum HarmBlockThreshold { + // Unspecified harm block threshold. + HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0; + + // Block low threshold and above (i.e. block more). + BLOCK_LOW_AND_ABOVE = 1; + + // Block medium threshold and above. + BLOCK_MEDIUM_AND_ABOVE = 2; + + // Block only high threshold (i.e. block less). + BLOCK_ONLY_HIGH = 3; + + // Block none. + BLOCK_NONE = 4; + + // Turn off the safety filter. + OFF = 5; + } + + // Required. Harm category. + HarmCategory category = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The harm block threshold. + HarmBlockThreshold threshold = 2 [(google.api.field_behavior) = REQUIRED]; + } + // Enable the safety filtering on the answer response. It is false by // default. bool enable = 1; + + // Optional. Safety settings. + // This settings are effective only when the safety_spec.enable is true. + repeated SafetySetting safety_settings = 2 + [(google.api.field_behavior) = OPTIONAL]; } // Related questions specification. @@ -527,6 +593,28 @@ message AnswerQueryRequest { string preamble = 1; } + // Multimodal specification: Will return an image from specified source. + // If multiple sources are specified, the pick is a quality based decision. + message MultimodalSpec { + // Specifies the image source. + enum ImageSource { + // Unspecified image source (multimodal feature is disabled by default). + IMAGE_SOURCE_UNSPECIFIED = 0; + + // Behavior when service determines the pick from all available sources. + ALL_AVAILABLE_SOURCES = 1; + + // Includes image from corpus in the answer. + CORPUS_IMAGE_ONLY = 2; + + // Triggers figure generation in the answer. + FIGURE_GENERATION_ONLY = 3; + } + + // Optional. Source of image returned in the answer. + ImageSource image_source = 3 [(google.api.field_behavior) = OPTIONAL]; + } + // Answer generation model specification. ModelSpec model_spec = 1; @@ -584,6 +672,9 @@ message AnswerQueryRequest { // messages instead. bool ignore_jail_breaking_query = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Multimodal specification. + MultimodalSpec multimodal_spec = 9 [(google.api.field_behavior) = OPTIONAL]; } // Search specification. @@ -779,6 +870,9 @@ message AnswerQueryRequest { // Non-answer-seeking query classification type, for no clear intent. NON_ANSWER_SEEKING_QUERY_V2 = 4; + + // User defined query classification type. + USER_DEFINED_CLASSIFICATION_QUERY = 5; } // Enabled query classification types. @@ -787,6 +881,27 @@ message AnswerQueryRequest { // Query rephraser specification. message QueryRephraserSpec { + // Query Rephraser Model specification. + message ModelSpec { + // Query rephraser types. Currently only supports single-hop + // (max_rephrase_steps = 1) model selections. For multi-hop + // (max_rephrase_steps > 1), there is only one default model. + enum ModelType { + // Unspecified model type. + MODEL_TYPE_UNSPECIFIED = 0; + + // Small query rephraser model. Gemini 1.0 XS model. + SMALL = 1; + + // Large query rephraser model. Gemini 1.0 Pro model. + LARGE = 2; + } + + // Optional. Enabled query rephraser model type. If not set, it will use + // LARGE by default. + ModelType model_type = 1 [(google.api.field_behavior) = OPTIONAL]; + } + // Disable query rephraser. bool disable = 1; @@ -794,6 +909,9 @@ message AnswerQueryRequest { // The max number is 5 steps. // If not set or set to < 1, it will be set to 1 by default. int32 max_rephrase_steps = 2; + + // Optional. Query Rephraser Model specification. + ModelSpec model_spec = 3 [(google.api.field_behavior) = OPTIONAL]; } // Query classification specification. @@ -801,12 +919,54 @@ message AnswerQueryRequest { // Query rephraser specification. QueryRephraserSpec query_rephraser_spec = 2; + + // Optional. Whether to disable spell correction. + // The default value is `false`. + bool disable_spell_correction = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // End user specification. + message EndUserSpec { + // End user metadata. + message EndUserMetaData { + // Chunk information. + message ChunkInfo { + // Document metadata contains the information of the document of + // the current chunk. + message DocumentMetadata { + // Title of the document. + string title = 1; + } + + // Chunk textual content. It is limited to 8000 characters. + string content = 1; + + // Metadata of the document from the current chunk. + DocumentMetadata document_metadata = 2; + } + + // Search result content. + oneof content { + // Chunk information. + ChunkInfo chunk_info = 1; + } + } + + // Optional. End user metadata. + repeated EndUserMetaData end_user_metadata = 1 + [(google.api.field_behavior) = OPTIONAL]; } // Required. The resource name of the Search serving config, such as // `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, // or // `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. + // + // Or the resource name of the agent engine serving config, such as: + // `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_agent_answer`. + // (use when `enable_agent_invocation` set to true, and you have custom + // `AI_MODE` agent engine configured) + // // This field is used to identify the serving configuration name, set // of models used to make the search. string serving_config = 1 [ @@ -890,6 +1050,9 @@ message AnswerQueryRequest { // Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) // for more details. map user_labels = 13; + + // Optional. End user specification. + EndUserSpec end_user_spec = 14 [(google.api.field_behavior) = OPTIONAL]; } // Response message for @@ -941,6 +1104,14 @@ message CreateSessionRequest { // Required. The session to create. Session session = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The ID to use for the session, which will become the final + // component of the session's resource name. + // + // This value should be 1-63 characters, and valid characters + // are /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/. If not specified, a unique ID will + // be generated. + string session_id = 3 [(google.api.field_behavior) = OPTIONAL]; } // Request for UpdateSession method. @@ -1006,7 +1177,9 @@ message ListSessionsRequest { string page_token = 3; // A comma-separated list of fields to filter by, in EBNF grammar. + // // The supported fields are: + // // * `user_pseudo_id` // * `state` // * `display_name` @@ -1015,29 +1188,36 @@ message ListSessionsRequest { // * `labels` // * `create_time` // * `update_time` + // * `collaborative_project` // // Examples: - // "user_pseudo_id = some_id" - // "display_name = \"some_name\"" - // "starred = true" - // "is_pinned=true AND (NOT labels:hidden)" - // "create_time > \"1970-01-01T12:00:00Z\"" + // + // * `user_pseudo_id = some_id` + // * `display_name = "some_name"` + // * `starred = true` + // * `is_pinned=true AND (NOT labels:hidden)` + // * `create_time > "1970-01-01T12:00:00Z"` + // * `collaborative_project = + // "projects/123/locations/global/collections/default_collection/engines/" + // "default_engine/collaborative_projects/cp1"` string filter = 4; // A comma-separated list of fields to order by, sorted in ascending order. // Use "desc" after a field name for descending. + // // Supported fields: // // * `update_time` // * `create_time` // * `session_name` // * `is_pinned` + // * `display_name` // // Example: // - // * "update_time desc" - // * "create_time" - // * "is_pinned desc,update_time desc": list sessions by is_pinned first, then + // * `update_time desc` + // * `create_time` + // * `is_pinned desc,update_time desc`: list sessions by is_pinned first, then // by update_time. string order_by = 5; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto index 94c65f9372dd..104326e66c49 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/custom_tuning_model.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store.proto index 62a24bd224ee..cf25a454aab7 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,6 +18,7 @@ package google.cloud.discoveryengine.v1beta; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/cmek_config_service.proto"; import "google/cloud/discoveryengine/v1beta/common.proto"; import "google/cloud/discoveryengine/v1beta/document_processing_config.proto"; import "google/cloud/discoveryengine/v1beta/schema.proto"; @@ -63,9 +64,109 @@ message DataStore { // Stores information regarding the serving configurations at DataStore level. message ServingConfigDataStore { - // If set true, the DataStore will not be available for serving search - // requests. - bool disabled_for_serving = 1; + // Optional. If set true, the DataStore will not be available for serving + // search requests. + bool disabled_for_serving = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Stores information for federated search. + message FederatedSearchConfig { + // Stores information for connecting to AlloyDB. + message AlloyDbConfig { + // Configuration for connecting to AlloyDB. + message AlloyDbConnectionConfig { + // Auth mode. + enum AuthMode { + AUTH_MODE_UNSPECIFIED = 0; + + // Uses P4SA when VAIS talks to AlloyDB. + AUTH_MODE_SERVICE_ACCOUNT = 1; + + // Uses EUC when VAIS talks to AlloyDB. + AUTH_MODE_END_USER_ACCOUNT = 2; + } + + // Required. The AlloyDB instance to connect to. + string instance = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The AlloyDB database to connect to. + string database = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Database user. + // + // If auth_mode = END_USER_ACCOUNT, it can be unset. In that case, + // the user will be inferred on the AlloyDB side, based on the + // authenticated user. + string user = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Database password. + // + // If auth_mode = END_USER_ACCOUNT, it can be unset. In that case, + // the password will be inferred on the AlloyDB side, based on the + // authenticated user. + string password = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Auth mode. + AuthMode auth_mode = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, enable PSVS for AlloyDB. + bool enable_psvs = 6 [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration for AlloyDB AI Natural Language. + message AlloyDbAiNaturalLanguageConfig { + // Optional. AlloyDb AI NL config id, i.e. the value that was used for + // calling `SELECT alloydb_ai_nl.g_create_configuration(...)`. Can be + // empty. + string nl_config_id = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. Configuration for connecting to AlloyDB. + AlloyDbConnectionConfig alloydb_connection_config = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Configuration for Magic. + AlloyDbAiNaturalLanguageConfig alloydb_ai_nl_config = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Fields to be returned in the search results. If empty, all + // fields will be returned. + repeated string returned_fields = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Stores information for third party applicationOAuth. + message ThirdPartyOauthConfig { + // Optional. The type of the application. E.g., "jira", "box", etc. + string app_name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The instance name identifying the 3P app, e.g., + // "vaissptbots-my". This is different from the instance_uri which is the + // full URL of the 3P app e.g., "https://vaissptbots-my.sharepoint.com". + string instance_name = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Config for connecting to NotebookLM Enterprise. + message NotebooklmConfig { + // Required. Search config name. + // + // Format: projects/*/locations/global/notebookLmSearchConfigs/* + string search_config = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Configuration for the data source this data store is connected to. + oneof data_source_config { + // AlloyDB config. If set, this DataStore is connected to AlloyDB. + AlloyDbConfig alloy_db_config = 1; + + // Third Party OAuth config. If set, this DataStore is connected to a + // third party application. + ThirdPartyOauthConfig third_party_oauth_config = 2; + + // NotebookLM config. If set, this DataStore is connected to + // NotebookLM Enterprise. + NotebooklmConfig notebooklm_config = 3; + } } // Content config of the data store. @@ -90,13 +191,29 @@ message DataStore { GOOGLE_WORKSPACE = 4; } - // Immutable. The full resource name of the data store. + // Configuration for configurable billing approach. + enum ConfigurableBillingApproach { + // Default value. For Spark and non-Spark non-configurable billing approach. + CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED = 0; + + // Use the subscription base + overage billing for indexing core for non + // embedding storage. + CONFIGURABLE_SUBSCRIPTION_INDEXING_CORE = 1; + + // Use the consumption pay-as-you-go billing for embedding storage add-on. + CONFIGURABLE_CONSUMPTION_EMBEDDING = 2; + } + + // Immutable. Identifier. 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]; + string name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = IDENTIFIER + ]; // Required. The data store display name. // @@ -117,7 +234,7 @@ message DataStore { repeated SolutionType solution_types = 5; // Output only. The id of the default - // [Schema][google.cloud.discoveryengine.v1beta.Schema] asscociated to this + // [Schema][google.cloud.discoveryengine.v1beta.Schema] associated to this // data store. string default_schema_id = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -131,6 +248,10 @@ message DataStore { google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. Configuration for advanced site search. + AdvancedSiteSearchConfig advanced_site_search_config = 12 + [(google.api.field_behavior) = OPTIONAL]; + // Language info for DataStore. LanguageInfo language_info = 14; @@ -139,10 +260,42 @@ message DataStore { natural_language_query_understanding_config = 34 [(google.api.field_behavior) = OPTIONAL]; + // Input only. The KMS key to be used to protect this DataStore at creation + // time. + // + // Must be set for requests that need to comply with CMEK Org Policy + // protections. + // + // If this field is set and processed successfully, the DataStore will be + // protected by the KMS key, as indicated in the cmek_config field. + string kms_key_name = 32 [(google.api.field_behavior) = INPUT_ONLY]; + + // Output only. CMEK-related information for the DataStore. + CmekConfig cmek_config = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. Data size estimation for billing. BillingEstimation billing_estimation = 23 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Immutable. Whether data in the + // [DataStore][google.cloud.discoveryengine.v1beta.DataStore] has ACL + // information. If set to `true`, the source data must have ACL. ACL will be + // ingested when data is ingested by + // [DocumentService.ImportDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ImportDocuments] + // methods. + // + // When ACL is enabled for the + // [DataStore][google.cloud.discoveryengine.v1beta.DataStore], + // [Document][google.cloud.discoveryengine.v1beta.Document] can't be accessed + // by calling + // [DocumentService.GetDocument][google.cloud.discoveryengine.v1beta.DocumentService.GetDocument] + // or + // [DocumentService.ListDocuments][google.cloud.discoveryengine.v1beta.DocumentService.ListDocuments]. + // + // Currently ACL is only supported in `GENERIC` industry vertical with + // non-`PUBLIC_WEBSITE` content config. + bool acl_enabled = 24 [(google.api.field_behavior) = IMMUTABLE]; + // Config to store data store type configuration for workspace data. This // must be set when // [DataStore.content_config][google.cloud.discoveryengine.v1beta.DataStore.content_config] @@ -158,9 +311,12 @@ message DataStore { // provisioning it. If unset, a default vertical specialized schema will be // used. // - // This field is only used by [CreateDataStore][] API, and will be ignored if - // used in other APIs. This field will be omitted from all API responses - // including [CreateDataStore][] API. To retrieve a schema of a + // This field is only used by + // [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore] + // API, and will be ignored if used in other APIs. This field will be omitted + // from all API responses including + // [CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore] + // API. To retrieve a schema of a // [DataStore][google.cloud.discoveryengine.v1beta.DataStore], use // [SchemaService.GetSchema][google.cloud.discoveryengine.v1beta.SchemaService.GetSchema] // API instead. @@ -170,9 +326,50 @@ message DataStore { // doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). Schema starting_schema = 28; + // Optional. Configuration for `HEALTHCARE_FHIR` vertical. + HealthcareFhirConfig healthcare_fhir_config = 29 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. Stores serving config at DataStore level. ServingConfigDataStore serving_config_data_store = 30 [(google.api.field_behavior) = OPTIONAL]; + + // Immutable. The fully qualified resource name of the associated + // [IdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStore]. + // This field can only be set for acl_enabled DataStores with `THIRD_PARTY` or + // `GSUITE` IdP. Format: + // `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`. + string identity_mapping_store = 31 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/IdentityMappingStore" + } + ]; + + // Optional. If set, this DataStore is an Infobot FAQ DataStore. + bool is_infobot_faq_data_store = 37 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, this DataStore is a federated search DataStore. + FederatedSearchConfig federated_search_config = 38 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for configurable billing approach. See + ConfigurableBillingApproach configurable_billing_approach = 45 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The timestamp when configurable_billing_approach was last + // updated. + google.protobuf.Timestamp configurable_billing_approach_update_time = 46 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Configuration data for advance site search. +message AdvancedSiteSearchConfig { + // If set true, initial indexing is disabled for the DataStore. + optional bool disable_initial_index = 3; + + // If set true, automatic refresh is disabled for the DataStore. + optional bool disable_automatic_refresh = 4; } // Language info for DataStore. @@ -246,13 +443,18 @@ message WorkspaceConfig { // Workspace Data Store contains Keep data GOOGLE_KEEP = 7; + + // Workspace Data Store contains People data + GOOGLE_PEOPLE = 8; } // The Google Workspace data source. Type type = 1; - // Obfuscated Dasher customer ID. - string dasher_customer_id = 2; + // Output only. Obfuscated Dasher customer ID. Derived by the server from + // the project's GCP organization at data store creation time; any value + // supplied in the request payload is ignored. + string dasher_customer_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // 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 diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store_service.proto index 6412b284866f..6279db1e9f17 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/data_store_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,7 +40,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service DataStoreService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Creates a [DataStore][google.cloud.discoveryengine.v1beta.DataStore]. // @@ -123,6 +125,20 @@ service DataStoreService { // [DataStoreService.CreateDataStore][google.cloud.discoveryengine.v1beta.DataStoreService.CreateDataStore] // method. message CreateDataStoreRequest { + // CMEK options for the DataStore. Setting this field will override the + // default CmekConfig if one is set for the project. + oneof cmek_options { + // Resource name of the CmekConfig to use for protecting this DataStore. + string cmek_config_name = 5 [(google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/CmekConfig" + }]; + + // DataStore without CMEK protections. If a default CmekConfig is set for + // the project, setting this field will override the default CmekConfig as + // well. + bool disable_cmek = 6; + } + // Required. The parent resource name, such as // `projects/{project}/locations/{location}/collections/{collection}`. string parent = 1 [ diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto index 5a20ae76c243..6dc969f5eefb 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,6 +18,7 @@ package google.cloud.discoveryengine.v1beta; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/common.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; @@ -42,6 +43,7 @@ message Document { // Unstructured data linked to this document. message Content { + // The content of the unstructured document. oneof content { // The content represented as a stream of bytes. The maximum length is // 1,000,000 bytes (1 MB / ~0.95 MiB). @@ -63,23 +65,116 @@ message Document { // // * `application/pdf` (PDF, only native PDFs are supported for now) // * `text/html` (HTML) + // * `text/plain` (TXT) + // * `application/xml` or `text/xml` (XML) + // * `application/json` (JSON) // * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) // * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) - // * `text/plain` (TXT) + // * `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet` + // (XLSX) + // * `application/vnd.ms-excel.sheet.macroenabled.12` (XLSM) + // + // The following types are supported only if layout parser is enabled in the + // data store: + // + // * `image/bmp` (BMP) + // * `image/gif` (GIF) + // * `image/jpeg` (JPEG) + // * `image/png` (PNG) + // * `image/tiff` (TIFF) // // See https://www.iana.org/assignments/media-types/media-types.xhtml. string mime_type = 1; } + // ACL Information of the Document. + message AclInfo { + // AclRestriction to model complex inheritance restrictions. + // + // Example: Modeling a "Both Permit" inheritance, where to access a + // child document, user needs to have access to parent document. + // + // Document Hierarchy - Space_S --> Page_P. + // + // Readers: + // Space_S: group_1, user_1 + // Page_P: group_2, group_3, user_2 + // + // Space_S ACL Restriction - + // { + // "acl_info": { + // "readers": [ + // { + // "principals": [ + // { + // "group_id": "group_1" + // }, + // { + // "user_id": "user_1" + // } + // ] + // } + // ] + // } + // } + // + // Page_P ACL Restriction. + // { + // "acl_info": { + // "readers": [ + // { + // "principals": [ + // { + // "group_id": "group_2" + // }, + // { + // "group_id": "group_3" + // }, + // { + // "user_id": "user_2" + // } + // ], + // }, + // { + // "principals": [ + // { + // "group_id": "group_1" + // }, + // { + // "user_id": "user_1" + // } + // ], + // } + // ] + // } + // } + message AccessRestriction { + // List of principals. + repeated Principal principals = 1; + + // All users within the Identity Provider. + bool idp_wide = 2; + } + + // Readers of the document. + repeated AccessRestriction readers = 1; + } + // Index status of the document. message IndexStatus { // The time when the document was indexed. // If this field is populated, it means the document has been indexed. + // While documents typically become searchable within seconds of indexing, + // it can sometimes take up to a few hours. google.protobuf.Timestamp index_time = 1; // A sample of errors encountered while indexing the document. // If this field is populated, the document is not indexed due to errors. repeated google.rpc.Status error_samples = 2; + + // Immutable. The message indicates the document index is in progress. + // If this field is populated, the document index is pending. + string pending_message = 3 [(google.api.field_behavior) = IMMUTABLE]; } // Data representation. One of @@ -109,15 +204,14 @@ message Document { // Immutable. The identifier of the document. // // Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - // standard with a length limit of 63 characters. + // standard with a length limit of 128 characters. string id = 2 [(google.api.field_behavior) = IMMUTABLE]; // The identifier of the schema located in the same data store. string schema_id = 3; - // The unstructured data linked to this document. Content must be set if this - // document is under a - // `CONTENT_REQUIRED` data store. + // The unstructured data linked to this document. Content can only be set + // and must be set if this document is under a `CONTENT_REQUIRED` data store. Content content = 10; // The identifier of the parent document. Currently supports at most two level @@ -132,11 +226,17 @@ message Document { google.protobuf.Struct derived_struct_data = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The last time the document was indexed. If this field is set, - // the document could be returned in search results. + // Access control information for the document. + AclInfo acl_info = 11; + + // Output only. The time when the document was last indexed. + // + // If this field is populated, it means the document has been indexed. + // While documents typically become searchable within seconds of indexing, + // it can sometimes take up to a few hours. // - // This field is OUTPUT_ONLY. If this field is not populated, it means the - // document has never been indexed. + // If this field is not populated, it means the document has never been + // indexed. google.protobuf.Timestamp index_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -145,6 +245,7 @@ message Document { // * If document is indexed successfully, the index_time field is populated. // * Otherwise, if document is not indexed due to errors, the error_samples // field is populated. - // * Otherwise, index_status is unset. + // * Otherwise, if document's index is in progress, the pending_message field + // is populated. IndexStatus index_status = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_processing_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_processing_config.proto index fb8dbbfd191d..539f7e9e30e9 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_processing_config.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_processing_config.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -82,7 +82,43 @@ message DocumentProcessingConfig { } // The layout parsing configurations for documents. - message LayoutParsingConfig {} + message LayoutParsingConfig { + // Optional. If true, the LLM based annotation is added to the table + // during parsing. + bool enable_table_annotation = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, the LLM based annotation is added to the image + // during parsing. + bool enable_image_annotation = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, the pdf layout will be refined using an LLM. + bool enable_llm_layout_parsing = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Contains the required structure types to extract from the + // document. Supported values: + // + // * `shareholder-structure` + repeated string structured_content_types = 9 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of HTML elements to exclude from the parsed content. + repeated string exclude_html_elements = 10 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of HTML classes to exclude from the parsed content. + repeated string exclude_html_classes = 11 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of HTML ids to exclude from the parsed content. + repeated string exclude_html_ids = 12 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, the processed document will be made available for + // the GetProcessedDocument API. + bool enable_get_processed_document = 14 + [(google.api.field_behavior) = OPTIONAL]; + } // Configs for document processing types. oneof type_dedicated_config { diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_service.proto index 989341f72842..9d621d5e112a 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/document_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -43,7 +43,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service DocumentService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Gets a [Document][google.cloud.discoveryengine.v1beta.Document]. rpc GetDocument(GetDocumentRequest) returns (Document) { @@ -283,7 +285,7 @@ message CreateDocumentRequest { // Otherwise, an `ALREADY_EXISTS` error is returned. // // This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - // standard with a length limit of 63 characters. Otherwise, an + // standard with a length limit of 128 characters. Otherwise, an // `INVALID_ARGUMENT` error is returned. string document_id = 3 [(google.api.field_behavior) = REQUIRED]; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/engine.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/engine.proto index 7342ee853a4e..226498437332 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/engine.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/engine.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,7 +18,10 @@ package google.cloud.discoveryengine.v1beta; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/agent_gateway_setting.proto"; +import "google/cloud/discoveryengine/v1beta/cmek_config_service.proto"; import "google/cloud/discoveryengine/v1beta/common.proto"; +import "google/cloud/discoveryengine/v1beta/logging.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; @@ -50,10 +53,130 @@ message Engine { // if not specified. SearchTier search_tier = 1; + // Optional. The required subscription tier of this engine. + // + // They cannot be modified after engine creation. If the required + // subscription tier is search, user with higher license tier like assist + // can still access the standalone app associated with this engine. + SubscriptionTier required_subscription_tier = 3 + [(google.api.field_behavior) = OPTIONAL]; + // The add-on that this search engine enables. repeated SearchAddOn search_add_ons = 2; } + // Additional config specs for a Media Recommendation engine. + message MediaRecommendationEngineConfig { + // Custom threshold for `cvr` optimization_objective. + message OptimizationObjectiveConfig { + // Required. The name of the field to target. Currently supported + // values: `watch-percentage`, `watch-time`. + string target_field = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The threshold to be applied to the target (e.g., 0.5). + float target_field_value_float = 2 + [(google.api.field_behavior) = REQUIRED]; + } + + // More feature configs of the selected engine type. + message EngineFeaturesConfig { + // Feature related configurations applied to a specific type of media + // recommendation engines. + oneof type_dedicated_config { + // Recommended for you engine feature config. + RecommendedForYouFeatureConfig recommended_for_you_config = 1; + + // Most popular engine feature config. + MostPopularFeatureConfig most_popular_config = 2; + } + } + + // Additional feature configurations for creating a `recommended-for-you` + // engine. + message RecommendedForYouFeatureConfig { + // The type of event with which the engine is queried at prediction time. + // If set to `generic`, only `view-item`, `media-play`,and + // `media-complete` will be used as `context-event` in engine training. If + // set to `view-home-page`, `view-home-page` will also be used as + // `context-events` in addition to `view-item`, `media-play`, and + // `media-complete`. Currently supported for the `recommended-for-you` + // engine. Currently supported values: `view-home-page`, `generic`. + string context_event_type = 1; + } + + // Feature configurations that are required for creating a Most Popular + // engine. + message MostPopularFeatureConfig { + // The time window of which the engine is queried at training and + // prediction time. Positive integers only. The value translates to the + // last X days of events. Currently required for the `most-popular-items` + // engine. + int64 time_window_days = 1; + } + + // The training state of the engine. + enum TrainingState { + // Unspecified training state. + TRAINING_STATE_UNSPECIFIED = 0; + + // The engine training is paused. + PAUSED = 1; + + // The engine is training. + TRAINING = 2; + } + + // Required. The type of engine. e.g., `recommended-for-you`. + // + // This field together with + // [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.optimization_objective] + // describe engine metadata to use to control engine training and serving. + // + // Currently supported values: `recommended-for-you`, `others-you-may-like`, + // `more-like-this`, `most-popular-items`. + string type = 1 [(google.api.field_behavior) = REQUIRED]; + + // The optimization objective. e.g., `cvr`. + // + // This field together with + // [optimization_objective][google.cloud.discoveryengine.v1beta.Engine.MediaRecommendationEngineConfig.type] + // describe engine metadata to use to control engine training and serving. + // + // Currently supported + // values: `ctr`, `cvr`. + // + // If not specified, we choose default based on engine type. + // Default depends on type of recommendation: + // + // `recommended-for-you` => `ctr` + // + // `others-you-may-like` => `ctr` + string optimization_objective = 2; + + // Name and value of the custom threshold for cvr optimization_objective. + // For target_field `watch-time`, target_field_value must be an integer + // value indicating the media progress time in seconds between (0, 86400] + // (excludes 0, includes 86400) (e.g., 90). + // For target_field `watch-percentage`, the target_field_value must be a + // valid float value between (0, 1.0] (excludes 0, includes 1.0) (e.g., + // 0.5). + OptimizationObjectiveConfig optimization_objective_config = 3; + + // The training state that the engine is in (e.g. + // `TRAINING` or `PAUSED`). + // + // Since part of the cost of running the service + // is frequency of training - this can be used to determine when to train + // engine in order to control cost. If not specified: the default value for + // `CreateEngine` method is `TRAINING`. The default value for + // `UpdateEngine` method is to keep the state the same as before. + TrainingState training_state = 4; + + // Optional. Additional engine features config. + EngineFeaturesConfig engine_features_config = 5 + [(google.api.field_behavior) = OPTIONAL]; + } + // Configurations for a Chat Engine. message ChatEngineConfig { // Configurations for generating a Dialogflow agent. @@ -114,6 +237,20 @@ message Engine { // [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1beta.Engine.ChatEngineMetadata.dialogflow_agent] // for actual agent association after Engine is created. string dialogflow_agent_to_link = 2; + + // Optional. If the flag set to true, we allow the agent and engine are in + // different locations, otherwise the agent and engine are required to be in + // the same location. The flag is set to false by default. + // + // Note that the `allow_cross_region` are one-time consumed by and + // passed to + // [EngineService.CreateEngine][google.cloud.discoveryengine.v1beta.EngineService.CreateEngine]. + // It means they cannot be retrieved using + // [EngineService.GetEngine][google.cloud.discoveryengine.v1beta.EngineService.GetEngine] + // or + // [EngineService.ListEngines][google.cloud.discoveryengine.v1beta.EngineService.ListEngines] + // API after engine creation. + bool allow_cross_region = 3 [(google.api.field_behavior) = OPTIONAL]; } // Common configurations for an Engine. @@ -123,6 +260,51 @@ message Engine { string company_name = 1; } + // Configuration message for the Knowledge Graph. + message KnowledgeGraphConfig { + // Feature config for the Knowledge Graph. + message FeatureConfig { + // Whether to disable the private KG query understanding for the engine. + // + // Defaults to false if not specified. + bool disable_private_kg_query_understanding = 1; + + // Whether to disable the private KG enrichment for the engine. + // + // Defaults to false if not specified. + bool disable_private_kg_enrichment = 2; + + // Whether to disable the private KG auto complete for the engine. + // + // Defaults to false if not specified. + bool disable_private_kg_auto_complete = 3; + + // Whether to disable the private KG for query UI chips. + // + // Defaults to false if not specified. + bool disable_private_kg_query_ui_chips = 4; + } + + // Whether to enable the Cloud Knowledge Graph for the engine. + // + // Defaults to false if not specified. + bool enable_cloud_knowledge_graph = 1; + + // Specify entity types to support. + repeated string cloud_knowledge_graph_types = 2; + + // Whether to enable the Private Knowledge Graph for the engine. + // + // Defaults to false if not specified. + bool enable_private_knowledge_graph = 3; + + // Specify entity types to support. + repeated string private_knowledge_graph_types = 4; + + // Optional. Feature config for the Knowledge Graph. + FeatureConfig feature_config = 5 [(google.api.field_behavior) = OPTIONAL]; + } + // Additional information of a Chat Engine. // Fields in this message are output only. message ChatEngineMetadata { @@ -134,6 +316,74 @@ message Engine { string dialogflow_agent = 1; } + // The app of the engine. + enum AppType { + // All non specified apps. + APP_TYPE_UNSPECIFIED = 0; + + // App type for intranet search and Agentspace. + APP_TYPE_INTRANET = 1; + } + + // The state of the feature for the engine. + enum FeatureState { + // The feature state is unspecified. + FEATURE_STATE_UNSPECIFIED = 0; + + // The feature is turned on to be accessible. + FEATURE_STATE_ON = 1; + + // The feature is turned off to be inaccessible. + FEATURE_STATE_OFF = 2; + } + + // Configuration for configurable billing approach. + enum ConfigurableBillingApproach { + // Default value. For Spark and non-Spark non-configurable billing approach. + // General pricing model. + CONFIGURABLE_BILLING_APPROACH_UNSPECIFIED = 0; + + // The billing approach follows configurations specified by customer. + CONFIGURABLE_BILLING_APPROACH_ENABLED = 1; + } + + // The status of the model for the engine. + enum ModelState { + // The model state is unspecified. + MODEL_STATE_UNSPECIFIED = 0; + + // The model is enabled by admin. + MODEL_ENABLED = 1; + + // The model is disabled by admin. + MODEL_DISABLED = 2; + } + + // Represents which marketplace agents are visible to any users in agent + // gallery. + enum MarketplaceAgentVisibility { + // Defaults to `MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED`. + MARKETPLACE_AGENT_VISIBILITY_UNSPECIFIED = 0; + + // Only agents that are currently available for use by the user are visible. + SHOW_AVAILABLE_AGENTS_ONLY = 1; + + // Show marketplace agents that the user does not yet have access to but + // are integrated into the engine. This level also includes all agents + // visible with `SHOW_AVAILABLE_AGENTS_ONLY`. + SHOW_AGENTS_ALREADY_INTEGRATED = 2; + + // Show all agents visible with `SHOW_AGENTS_ALREADY_INTEGRATED`, plus + // agents that have already been purchased by the project/organization, even + // if they are not currently integrated into the engine. + SHOW_AGENTS_ALREADY_PURCHASED = 3; + + // All agents in the marketplace are visible, regardless of access or + // purchase status. This level encompasses all agents shown in the previous + // levels. + SHOW_ALL_AGENTS = 4; + } + // Additional config specs that defines the behavior of the engine. oneof engine_config { // Configurations for the Chat Engine. Only applicable if @@ -147,6 +397,15 @@ message Engine { // is // [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]. SearchEngineConfig search_engine_config = 13; + + // Configurations for the Media Engine. Only applicable on the data + // stores with + // [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type] + // [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION] + // and + // [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA] + // vertical. + MediaRecommendationEngineConfig media_recommendation_engine_config = 14; } // Engine metadata to monitor the status of the engine. @@ -160,7 +419,7 @@ message Engine { [(google.api.field_behavior) = OUTPUT_ONLY]; } - // Immutable. The fully qualified resource name of the engine. + // Immutable. Identifier. The fully qualified resource name of the engine. // // This field must be a UTF-8 encoded string with a length limit of 1024 // characters. @@ -169,7 +428,10 @@ message 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]; + string name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = IDENTIFIER + ]; // Required. The display name of the engine. Should be human readable. UTF-8 // encoded string with limit of 1024 characters. @@ -183,7 +445,7 @@ message Engine { google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The data stores associated with this engine. + // Optional. The data stores associated with this engine. // // For // [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH] @@ -203,22 +465,112 @@ message Engine { // [CreateEngineRequest][google.cloud.discoveryengine.v1beta.CreateEngineRequest], // one DataStore id must be provided as the system will use it for necessary // initializations. - repeated string data_store_ids = 5; + repeated string data_store_ids = 5 [(google.api.field_behavior) = OPTIONAL]; // Required. The solutions of the engine. SolutionType solution_type = 6 [(google.api.field_behavior) = REQUIRED]; - // The industry vertical that the engine registers. + // Optional. The industry vertical that the engine registers. // The restriction of the Engine industry vertical is based on - // [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: If unspecified, - // default to `GENERIC`. Vertical on Engine has to match vertical of the - // DataStore linked to the engine. - IndustryVertical industry_vertical = 16; + // [DataStore][google.cloud.discoveryengine.v1beta.DataStore]: Vertical on + // Engine has to match vertical of the DataStore linked to the engine. + IndustryVertical industry_vertical = 16 + [(google.api.field_behavior) = OPTIONAL]; // Common config spec that specifies the metadata of the engine. CommonConfig common_config = 15; + // Optional. Configurations for the Knowledge Graph. Only applicable if + // [solution_type][google.cloud.discoveryengine.v1beta.Engine.solution_type] + // is + // [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_SEARCH]. + KnowledgeGraphConfig knowledge_graph_config = 23 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Immutable. This the application type which this engine resource + // represents. NOTE: this is a new concept independ of existing industry + // vertical or solution type. + AppType app_type = 24 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = IMMUTABLE + ]; + // Optional. Whether to disable analytics for searches performed on this // engine. bool disable_analytics = 26 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Feature config for the engine to opt in or opt out of features. + // Supported keys: + // + // * `*`: all features, if it's present, all other feature state settings are + // ignored. + // * `agent-gallery` + // * `no-code-agent-builder` + // * `prompt-gallery` + // * `model-selector` + // * `notebook-lm` + // * `people-search` + // * `people-search-org-chart` + // * `bi-directional-audio` + // * `feedback` + // * `session-sharing` + // * `personalization-memory` + // * `personalization-suggested-highlights` + // * `mobile-app-access` + // * `disable-agent-sharing` + // * `disable-image-generation` + // * `disable-video-generation` + // * `disable-onedrive-upload` + // * `disable-talk-to-content` + // * `disable-google-drive-upload` + // * `disable-welcome-emails` + // * `disable-canvas` + // * `disable-canvas-workspace` + // * `disable-skills` + // * `enable-end-user-sharing-with-groups` + // * `single-agent-orchestration` + // * `multi-agent-orchestration` + // * `cross-product-intelligence` + map features = 30 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. CMEK-related information for the Engine. + CmekConfig cmek_config = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Configuration for configurable billing approach. + ConfigurableBillingApproach configurable_billing_approach = 36 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maps a model name to its specific configuration for this engine. + // This allows admin users to turn on/off individual models. This only stores + // models whose states are overridden by the admin. + // + // When the state is unspecified, or model_configs is empty for this + // model, the system will decide if this model should be available or not + // based on the default configuration. For example, a preview model + // should be disabled by default if the admin has not chosen to enable it. + map model_configs = 37 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Observability config for the engine. + ObservabilityConfig observability_config = 39 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Maps a connector ID (e.g., "hybrid-github", "shopify") to + // tenant-specific information required for that connector. The structure of + // the tenant information string is connector-dependent. + map connector_tenant_info = 42 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The agent gateway setting for the engine. + AgentGatewaySetting agent_gateway_setting = 43 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The visibility of marketplace agents in the agent gallery. + MarketplaceAgentVisibility marketplace_agent_visibility = 44 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The emails of the procurement contacts. + repeated string procurement_contact_emails = 45 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/engine_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/engine_service.proto index 45e5ed484b4a..ebcf79beb616 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/engine_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/engine_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,8 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/discoveryengine/v1beta/engine.proto"; +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"; @@ -40,9 +42,11 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service EngineService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; - // Creates a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + // Creates an [Engine][google.cloud.discoveryengine.v1beta.Engine]. rpc CreateEngine(CreateEngineRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v1beta/{parent=projects/*/locations/*/collections/*}/engines" @@ -55,7 +59,7 @@ service EngineService { }; } - // Deletes a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + // Deletes an [Engine][google.cloud.discoveryengine.v1beta.Engine]. rpc DeleteEngine(DeleteEngineRequest) returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1beta/{name=projects/*/locations/*/collections/*/engines/*}" @@ -76,7 +80,7 @@ service EngineService { option (google.api.method_signature) = "engine,update_mask"; } - // Gets a [Engine][google.cloud.discoveryengine.v1beta.Engine]. + // Gets an [Engine][google.cloud.discoveryengine.v1beta.Engine]. rpc GetEngine(GetEngineRequest) returns (Engine) { option (google.api.http) = { get: "/v1beta/{name=projects/*/locations/*/collections/*/engines/*}" @@ -93,7 +97,8 @@ service EngineService { option (google.api.method_signature) = "parent"; } - // Pauses the training of an existing engine. Only applicable if + // Pauses the training of an existing + // [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if // [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is // [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. rpc PauseEngine(PauseEngineRequest) returns (Engine) { @@ -104,7 +109,8 @@ service EngineService { option (google.api.method_signature) = "name"; } - // Resumes the training of an existing engine. Only applicable if + // Resumes the training of an existing + // [Engine][google.cloud.discoveryengine.v1beta.Engine]. Only applicable if // [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is // [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. rpc ResumeEngine(ResumeEngineRequest) returns (Engine) { @@ -115,7 +121,8 @@ service EngineService { option (google.api.method_signature) = "name"; } - // Tunes an existing engine. Only applicable if + // Tunes an existing [Engine][google.cloud.discoveryengine.v1beta.Engine]. + // Only applicable if // [SolutionType][google.cloud.discoveryengine.v1beta.SolutionType] is // [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1beta.SolutionType.SOLUTION_TYPE_RECOMMENDATION]. rpc TuneEngine(TuneEngineRequest) returns (google.longrunning.Operation) { @@ -129,6 +136,40 @@ service EngineService { metadata_type: "TuneEngineMetadata" }; } + + // Gets the IAM access control policy for an + // [Engine][google.cloud.discoveryengine.v1beta.Engine]. A `NOT_FOUND` error + // is returned if the resource does not exist. An empty policy is returned if + // the resource exists but does not have a policy set on it. + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + get: "/v1beta/{resource=projects/*/locations/*/collections/*/engines/*}:getIamPolicy" + }; + option (google.api.method_signature) = "resource"; + } + + // Sets the IAM access control policy for an + // [Engine][google.cloud.discoveryengine.v1beta.Engine]. A `NOT_FOUND` error + // is returned if the resource does not exist. + // + // **Important:** When setting a policy directly on an Engine resource, + // the only recommended roles in the bindings are: + // `roles/discoveryengine.admin`, + // `roles/discoveryengine.agentspaceAdmin`, + // `roles/discoveryengine.user`, + // `roles/discoveryengine.agentspaceUser`, + // `roles/discoveryengine.viewer`, + // `roles/discoveryengine.agentspaceViewer`. + // Attempting to grant any other role will result in a warning in logging. + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) + returns (google.iam.v1.Policy) { + option (google.api.http) = { + post: "/v1beta/{resource=projects/*/locations/*/collections/*/engines/*}:setIamPolicy" + body: "*" + }; + option (google.api.method_signature) = "resource,policy"; + } } // Request for diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/evaluation.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/evaluation.proto index 67341c52e8fe..52270af4799c 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/evaluation.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/evaluation.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -43,12 +43,12 @@ message Evaluation { message EvaluationSpec { // Describes the specification of the query set. message QuerySetSpec { - // Required. The full resource name of the + // Optional. The full resource name of the // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet] // used for the evaluation, in the format of // `projects/{project}/locations/{location}/sampleQuerySets/{sampleQuerySet}`. string sample_query_set = 1 [ - (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { type: "discoveryengine.googleapis.com/SampleQuerySet" } @@ -72,8 +72,8 @@ message Evaluation { SearchRequest search_request = 2 [(google.api.field_behavior) = REQUIRED]; } - // Required. The specification of the query set. - QuerySetSpec query_set_spec = 1 [(google.api.field_behavior) = REQUIRED]; + // Optional. The specification of the query set. + QuerySetSpec query_set_spec = 1 [(google.api.field_behavior) = OPTIONAL]; } // Describes the state of an evaluation. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/evaluation_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/evaluation_service.proto index 1aef90a0f775..63f43c2a2bfb 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/evaluation_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/evaluation_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,7 +38,10 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service EvaluationService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.assist.readwrite," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Gets a [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]. rpc GetEvaluation(GetEvaluationRequest) returns (Evaluation) { @@ -127,15 +130,15 @@ message ListEvaluationsRequest { } ]; - // Maximum number of + // Optional. Maximum number of // [Evaluation][google.cloud.discoveryengine.v1beta.Evaluation]s to return. If // unspecified, defaults to 100. The maximum allowed value is 1000. Values // above 1000 will be coerced to 1000. // // If this field is negative, an `INVALID_ARGUMENT` error is returned. - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token + // Optional. A page token // [ListEvaluationsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationsResponse.next_page_token], // received from a previous // [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations] @@ -145,7 +148,7 @@ message ListEvaluationsRequest { // [EvaluationService.ListEvaluations][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluations] // must match the call that provided the page token. Otherwise, an // `INVALID_ARGUMENT` error is returned. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for @@ -192,9 +195,10 @@ message ListEvaluationResultsRequest { // Required. The evaluation resource name, such as // `projects/{project}/locations/{location}/evaluations/{evaluation}`. // - // If the caller does not have permission to list [EvaluationResult][] - // under this evaluation, regardless of whether or not this evaluation - // set exists, a `PERMISSION_DENIED` error is returned. + // If the caller does not have permission to list + // [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult] + // under this evaluation, regardless of whether or not this evaluation set + // exists, a `PERMISSION_DENIED` error is returned. string evaluation = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -202,14 +206,15 @@ message ListEvaluationResultsRequest { } ]; - // Maximum number of [EvaluationResult][] to return. If unspecified, - // defaults to 100. The maximum allowed value is 1000. Values above 1000 will - // be coerced to 1000. + // Optional. Maximum number of + // [ListEvaluationResultsResponse.EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult] + // to return. If unspecified, defaults to 100. The maximum allowed value is + // 1000. Values above 1000 will be coerced to 1000. // // If this field is negative, an `INVALID_ARGUMENT` error is returned. - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token + // Optional. A page token // [ListEvaluationResultsResponse.next_page_token][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.next_page_token], // received from a previous // [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults] @@ -219,7 +224,7 @@ message ListEvaluationResultsRequest { // [EvaluationService.ListEvaluationResults][google.cloud.discoveryengine.v1beta.EvaluationService.ListEvaluationResults] // must match the call that provided the page token. Otherwise, an // `INVALID_ARGUMENT` error is returned. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for @@ -240,8 +245,8 @@ message ListEvaluationResultsResponse { [(google.api.field_behavior) = OUTPUT_ONLY]; } - // The - // [EvaluationResult][google.cloud.discoveryengine.v1beta.ListEvaluationResultsResponse.EvaluationResult]s. + // The evaluation results for the + // [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]s. repeated EvaluationResult evaluation_results = 1; // A token that can be sent as diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/feedback.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/feedback.proto new file mode 100644 index 000000000000..bea2400b8cbb --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/feedback.proto @@ -0,0 +1,144 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.discoveryengine.v1beta; + +import "google/api/field_behavior.proto"; +import "google/cloud/discoveryengine/v1beta/session.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "FeedbackProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Information about the user feedback. This information will be used for +// logging and metrics purpose. +message Feedback { + // The conversation information such as the question index and session name. + message ConversationInfo { + // The index of the user input within the conversation messages. + int32 question_index = 1; + + // Name of the newly generated or continued session. + string session = 2; + + // Required. The user's search query. + Query query = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The token which could be used to fetch the assistant log. + string assist_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The token which could be used to fetch the answer log. + string answer_query_token = 5 [(google.api.field_behavior) = OPTIONAL]; + } + + // The type of the feedback user gives. + enum FeedbackType { + // Unspecified feedback type. + FEEDBACK_TYPE_UNSPECIFIED = 0; + + // The user gives a positive feedback. + LIKE = 1; + + // The user gives a negative feedback. + DISLIKE = 2; + } + + // The reason why user gives a negative feedback. + enum Reason { + // Unspecified reason. + REASON_UNSPECIFIED = 0; + + // The response is inaccurate. + INACCURATE_RESPONSE = 1; + + // The response is not relevant. + NOT_RELEVANT = 2; + + // The response is incomprehensive. + INCOMPREHENSIVE = 3; + + // The response is offensive or unsafe. + OFFENSIVE_OR_UNSAFE = 4; + + // The response is not well-formatted. + FORMAT_AND_STYLES = 6; + + // The response is not well-associated with the query. + BAD_CITATION = 7; + + // The expected canvas was not generated for the response. + CANVAS_NOT_GENERATED = 8; + + // The generated canvas is of bad quality (e.g. inaccurate, incomplete, + // poorly formatted). + CANVAS_QUALITY_BAD = 9; + + // Exporting the generated canvas failed (e.g. download or external + // export action did not complete successfully). + CANVAS_EXPORT_FAILED = 10; + } + + // Source of the feedback as per integration. + enum FeedbackSource { + // Unspecified feedback source. + FEEDBACK_SOURCE_UNSPECIFIED = 0; + + // Feedback source is Google Console. + GOOGLE_CONSOLE = 1; + + // Feedback source is Google Widget. + GOOGLE_WIDGET = 2; + + // Feedback source is Google Webapp. + GOOGLE_WEBAPP = 3; + + // Feedback source is Google AgentSpace Mobile app. + GOOGLE_AGENTSPACE_MOBILE = 4; + } + + // Required. Indicate whether the user gives a positive or negative feedback. + // If the user gives a negative feedback, there might be more feedback + // details. + FeedbackType feedback_type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The reason if user gives a thumb down. + repeated Reason reasons = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The additional user comment of the feedback if user gives a thumb + // down. + string comment = 3 [(google.api.field_behavior) = OPTIONAL]; + + // The related conversation information when user gives feedback. + ConversationInfo conversation_info = 4; + + // The version of the LLM model that was used to generate the response. + string llm_model_version = 5; + + // Optional. The UI component the user feedback comes from, which could be + // GOOGLE_CONSOLE, GOOGLE_WIDGET, GOOGLE_WEBAPP. + FeedbackSource feedback_source = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The version of the component that this report is being sent from. + string component_version = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether the customer accepted data use terms. + bool data_terms_accepted = 8 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto index a54f9111d8b6..7726c28e8e73 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/grounded_generation_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/discoveryengine/v1beta/grounding.proto"; +import "google/type/date.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; @@ -35,7 +36,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service GroundedGenerationService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Generates grounded content in a streaming fashion. rpc StreamGenerateGroundedContent(stream GenerateGroundedContentRequest) @@ -90,6 +93,21 @@ message GroundedGenerationContent { message GenerateGroundedContentRequest { // Content generation specification. message GenerationSpec { + // Setting for provisioned throughput. + enum ProvisionedThroughputSetting { + // Default value. If the user has remaining provisioned throughput, + // provisioned throughput will be used. Otherwise, pay as you go will be + // used. + PROVISIONED_THROUGHPUT_SETTING_UNSPECIFIED = 0; + + // Only use provisioned throughput. If the user has no remaining + // provisioned throughput, an error will be returned. + PROVISIONED_THROUGHPUT_ONLY = 1; + + // Disables provisioned throughput. + PAY_AS_YOU_GO_ONLY = 2; + } + // Specifies which Vertex model id to use for generation. string model_id = 3; @@ -109,11 +127,18 @@ message GenerateGroundedContentRequest { // If specified, custom value for frequency penalty will be used. optional float frequency_penalty = 8; + // If specified, custom value for the seed will be used. + optional int32 seed = 12; + // 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; + + // Optional. Setting for provisioned throughput. + ProvisionedThroughputSetting provisioned_throughput_setting = 13 + [(google.api.field_behavior) = OPTIONAL]; } // Describes the options to customize dynamic retrieval. @@ -186,6 +211,27 @@ message GenerateGroundedContentRequest { // source. DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of domains to be excluded from the search results. + repeated string exclude_domains = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sites with confidence level chosen & above this value will be + // blocked from the search results. + Citation.PhishBlockThreshold blocking_confidence = 6 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Params for using enterprise web retrieval as grounding source. + message EnterpriseWebRetrievalSource { + // Optional. List of domains to be excluded from the search results. + repeated string exclude_domains = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Sites with confidence level chosen & above this value will be + // blocked from the search results. + Citation.PhishBlockThreshold blocking_confidence = 2 + [(google.api.field_behavior) = OPTIONAL]; } // Sources. @@ -198,6 +244,9 @@ message GenerateGroundedContentRequest { // If set, grounding is performed with Google Search. GoogleSearchSource google_search_source = 3; + + // If set, grounding is performed with enterprise web retrieval. + EnterpriseWebRetrievalSource enterprise_web_retrieval_source = 8; } } @@ -346,6 +395,48 @@ message GenerateGroundedContentResponse { optional float support_score = 2; } + // Metadata about an image from the web search. + message ImageMetadata { + // Metadata about the website that the image is from. + message WebsiteInfo { + // The url of the website. + string uri = 1; + + // The title of the website. + string title = 2; + + // The display name of the website. + string site_display_name = 3; + } + + // Metadata about the image. + message Image { + // The url of the image. + string uri = 1; + + // The width of the image in pixels. + int32 width = 2; + + // The height of the image in pixels. + int32 height = 3; + } + + // Metadata about the full size image. + Image image = 1; + + // Metadata about the thumbnail. + Image thumbnail = 2; + + // The details about the website that the image is from. + WebsiteInfo source = 3; + } + + // Metadata about a video from the web search. + message VideoMetadata { + // The external id of the video. + string youtube_external_id = 1; + } + // 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 @@ -366,6 +457,12 @@ message GenerateGroundedContentResponse { // An support to a fact indicates that the claim is supported by // the fact. repeated GroundingSupport grounding_support = 2; + + // Images from the web search. + repeated ImageMetadata images = 9; + + // Videos from the web search. + repeated VideoMetadata videos = 11; } // Index of the candidate. @@ -393,6 +490,9 @@ message CheckGroundingSpec { // threshold may lead to more but somewhat weaker citations. If unset, the // threshold will default to 0.6. optional double citation_threshold = 1; + + // The control flag that enables claim-level grounding score in the response. + optional bool enable_claim_level_score = 4; } // Request message for @@ -451,11 +551,21 @@ message CheckGroundingResponse { // Text and citation info for a claim in the answer candidate. message Claim { // Position indicating the start of the claim in the answer candidate, - // measured in bytes. + // measured in bytes. Note that this is not measured in characters and, + // therefore, must be rendered in the user interface keeping in mind that + // some characters may take more than one byte. For example, + // if the claim text contains non-ASCII characters, the start and end + // positions vary when measured in characters + // (programming-language-dependent) and when measured in bytes + // (programming-language-independent). optional int32 start_pos = 1; // Position indicating the end of the claim in the answer candidate, - // exclusive. + // exclusive, in bytes. Note that this is not measured in characters and, + // therefore, must be rendered as such. For example, if the claim text + // contains non-ASCII characters, the start and end positions vary when + // measured in characters (programming-language-dependent) and when measured + // in bytes (programming-language-independent). optional int32 end_pos = 2; // Text for the claim in the answer candidate. Always provided regardless of @@ -473,12 +583,14 @@ message CheckGroundingResponse { // decided this claim doesn't require attribution/grounding check, this // field will be set to false. In that case, no grounding check was done for // the claim and therefore - // [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices], - // [anti_citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.anti_citation_indices], - // and - // [score][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.score] + // [citation_indices][google.cloud.discoveryengine.v1beta.CheckGroundingResponse.Claim.citation_indices] // should not be returned. optional bool grounding_check_required = 6; + + // Confidence score for the claim in the answer candidate, in the range of + // [0, 1]. This is set only when + // `CheckGroundingRequest.grounding_spec.enable_claim_level_score` is true. + optional double score = 7; } // The support score for the input answer candidate. @@ -497,3 +609,58 @@ message CheckGroundingResponse { // Claim texts and citation info across all claims in the answer candidate. repeated Claim claims = 4; } + +// A collection of source attributions for a piece of content. +message CitationMetadata { + // Output only. List of citations. + repeated Citation citations = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Source attributions for content. +message Citation { + // These are available confidence level user can set to block malicious urls + // with chosen confidence and above. For understanding different confidence of + // webrisk, please refer to + // https://cloud.google.com/web-risk/docs/reference/rpc/google.cloud.webrisk.v1eap1#confidencelevel + enum PhishBlockThreshold { + // Defaults to unspecified. + PHISH_BLOCK_THRESHOLD_UNSPECIFIED = 0; + + // Blocks Low and above confidence URL that is risky. + BLOCK_LOW_AND_ABOVE = 30; + + // Blocks Medium and above confidence URL that is risky. + BLOCK_MEDIUM_AND_ABOVE = 40; + + // Blocks High and above confidence URL that is risky. + BLOCK_HIGH_AND_ABOVE = 50; + + // Blocks Higher and above confidence URL that is risky. + BLOCK_HIGHER_AND_ABOVE = 55; + + // Blocks Very high and above confidence URL that is risky. + BLOCK_VERY_HIGH_AND_ABOVE = 60; + + // Blocks Extremely high confidence URL that is risky. + BLOCK_ONLY_EXTREMELY_HIGH = 100; + } + + // Output only. Start index into the content. + int32 start_index = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. End index into the content. + int32 end_index = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Url reference of the attribution. + string uri = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Title of the attribution. + string title = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. License of the attribution. + string license = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Publication date of the attribution. + google.type.Date publication_date = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/grounding.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/grounding.proto index c0b4406b25ee..94e68aae5133 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/grounding.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/grounding.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -67,4 +67,13 @@ message FactChunk { // More fine-grained information for the source reference. map source_metadata = 3; + + // The URI of the source. + string uri = 5; + + // The title of the source. + string title = 6; + + // The domain of the source. + string domain = 7; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/identity_mapping_store.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/identity_mapping_store.proto new file mode 100644 index 000000000000..2d1a8162c6de --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/identity_mapping_store.proto @@ -0,0 +1,87 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.discoveryengine.v1beta; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/cmek_config_service.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "IdentityMappingStoreProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Identity Mapping Store which contains Identity Mapping Entries. +message IdentityMappingStore { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/IdentityMappingStore" + pattern: "projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}" + }; + + // Immutable. The full resource name of the identity mapping store. + // Format: + // `projects/{project}/locations/{location}/identityMappingStores/{identity_mapping_store}`. + // This field must be a UTF-8 encoded string with a length limit of 1024 + // characters. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Input only. The KMS key to be used to protect this Identity Mapping Store + // at creation time. + // + // Must be set for requests that need to comply with CMEK Org Policy + // protections. + // + // If this field is set and processed successfully, the Identity Mapping Store + // will be protected by the KMS key, as indicated in the cmek_config field. + string kms_key_name = 3 [(google.api.field_behavior) = INPUT_ONLY]; + + // Output only. CMEK-related information for the Identity Mapping Store. + CmekConfig cmek_config = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Identity Mapping Entry that maps an external identity to an internal +// identity. +message IdentityMappingEntry { + // Union field identity_provider_id. Identity Provider id can be a user or a + // group. + oneof identity_provider_id { + // User identifier. + // For Google Workspace user account, user_id should be the google workspace + // user email. + // For non-google identity provider, user_id is the mapped user identifier + // configured during the workforcepool config. + string user_id = 2; + + // Group identifier. + // For Google Workspace user account, group_id should be the google + // workspace group email. + // For non-google identity provider, group_id is the mapped group identifier + // configured during the workforcepool config. + string group_id = 3; + } + + // Required. Identity outside the customer identity provider. + // The length limit of external identity will be of 100 characters. + string external_identity = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The name of the external identity. + string external_identity_name = 4 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto new file mode 100644 index 000000000000..fc468ce5aefa --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/identity_mapping_store_service.proto @@ -0,0 +1,378 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.discoveryengine.v1beta; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/identity_mapping_store.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "IdentityMappingStoreServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Service for managing Identity Mapping Stores. +service IdentityMappingStoreService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; + + // Creates a new Identity Mapping Store. + rpc CreateIdentityMappingStore(CreateIdentityMappingStoreRequest) + returns (IdentityMappingStore) { + option (google.api.http) = { + post: "/v1beta/{parent=projects/*/locations/*}/identityMappingStores" + body: "identity_mapping_store" + }; + option (google.api.method_signature) = + "parent,identity_mapping_store,identity_mapping_store_id"; + } + + // Gets the Identity Mapping Store. + rpc GetIdentityMappingStore(GetIdentityMappingStoreRequest) + returns (IdentityMappingStore) { + option (google.api.http) = { + get: "/v1beta/{name=projects/*/locations/*/identityMappingStores/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes the Identity Mapping Store. + rpc DeleteIdentityMappingStore(DeleteIdentityMappingStoreRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta/{name=projects/*/locations/*/identityMappingStores/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata" + }; + } + + // Imports a list of Identity Mapping Entries to an Identity Mapping Store. + rpc ImportIdentityMappings(ImportIdentityMappingsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta/{identity_mapping_store=projects/*/locations/*/identityMappingStores/*}:importIdentityMappings" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse" + metadata_type: "google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata" + }; + } + + // Purges specified or all Identity Mapping Entries from an Identity Mapping + // Store. + rpc PurgeIdentityMappings(PurgeIdentityMappingsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta/{identity_mapping_store=projects/*/locations/*/identityMappingStores/*}:purgeIdentityMappings" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata" + }; + } + + // Lists Identity Mappings in an Identity Mapping Store. + rpc ListIdentityMappings(ListIdentityMappingsRequest) + returns (ListIdentityMappingsResponse) { + option (google.api.http) = { + get: "/v1beta/{identity_mapping_store=projects/*/locations/*/identityMappingStores/*}:listIdentityMappings" + }; + } + + // Lists all Identity Mapping Stores. + rpc ListIdentityMappingStores(ListIdentityMappingStoresRequest) + returns (ListIdentityMappingStoresResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=projects/*/locations/*}/identityMappingStores" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request message for +// [IdentityMappingStoreService.CreateIdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.CreateIdentityMappingStore] +message CreateIdentityMappingStoreRequest { + // CMEK options for the Identity Mapping Store. Setting this field will + // override the default CmekConfig if one is set for the project. + oneof cmek_options { + // Resource name of the CmekConfig to use for protecting this Identity + // Mapping Store. + string cmek_config_name = 5 [(google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/CmekConfig" + }]; + + // Identity Mapping Store without CMEK protections. If a default CmekConfig + // is set for the project, setting this field will override the default + // CmekConfig as well. + bool disable_cmek = 6; + } + + // Required. The parent collection resource name, such as + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Location" + } + ]; + + // Required. The ID of the Identity Mapping Store to create. + // + // The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores + // (_), and hyphens (-). The maximum length is 63 characters. + string identity_mapping_store_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Identity Mapping Store to create. + IdentityMappingStore identity_mapping_store = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for +// [IdentityMappingStoreService.GetIdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.GetIdentityMappingStore] +message GetIdentityMappingStoreRequest { + // Required. The name of the Identity Mapping Store to get. + // Format: + // `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/IdentityMappingStore" + } + ]; +} + +// Request message for +// [IdentityMappingStoreService.DeleteIdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.DeleteIdentityMappingStore] +message DeleteIdentityMappingStoreRequest { + // Required. The name of the Identity Mapping Store to delete. + // Format: + // `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/IdentityMappingStore" + } + ]; +} + +// Request message for +// [IdentityMappingStoreService.ImportIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ImportIdentityMappings] +message ImportIdentityMappingsRequest { + // The inline source to import identity mapping entries from. + message InlineSource { + // A maximum of 10000 entries can be imported at one time + repeated IdentityMappingEntry identity_mapping_entries = 1; + } + + // The source of the input. + oneof source { + // The inline source to import identity mapping entries from. + InlineSource inline_source = 2; + } + + // Required. The name of the Identity Mapping Store to import Identity Mapping + // Entries to. Format: + // `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}` + string identity_mapping_store = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/IdentityMappingStore" + } + ]; +} + +// Response message for +// [IdentityMappingStoreService.ImportIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ImportIdentityMappings] +message ImportIdentityMappingsResponse { + // A sample of errors encountered while processing the request. + repeated google.rpc.Status error_samples = 1; +} + +// Request message for +// [IdentityMappingStoreService.PurgeIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.PurgeIdentityMappings] +message PurgeIdentityMappingsRequest { + // The inline source to purge identity mapping entries from. + message InlineSource { + // A maximum of 10000 entries can be purged at one time + repeated IdentityMappingEntry identity_mapping_entries = 1; + } + + // The source of the input. + oneof source { + // The inline source to purge identity mapping entries from. + InlineSource inline_source = 2; + } + + // Required. The name of the Identity Mapping Store to purge Identity Mapping + // Entries from. Format: + // `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}` + string identity_mapping_store = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/IdentityMappingStore" + } + ]; + + // Filter matching identity mappings to purge. + // The eligible field for filtering is: + // + // * `update_time`: in ISO 8601 "zulu" format. + // * `external_id` + // + // Examples: + // + // * Deleting all identity mappings updated in a time range: + // `update_time > "2012-04-23T18:25:43.511Z" AND update_time < + // "2012-04-23T18:30:43.511Z"` + // * Deleting all identity mappings for a given external_id: + // `external_id = "id1"` + // * Deleting all identity mappings inside an identity mapping store: + // `*` + // + // The filtering fields are assumed to have an implicit AND. + // Should not be used with source. An error will be thrown, if both are + // provided. + string filter = 3; + + // Actually performs the purge. If `force` is set to false, return the + // expected purge count without deleting any identity mappings. This field is + // only supported for purge with filter. For input source this field is + // ignored and data will be purged regardless of the value of this field. + optional bool force = 4; +} + +// Request message for +// [IdentityMappingStoreService.ListIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ListIdentityMappings] +message ListIdentityMappingsRequest { + // Required. The name of the Identity Mapping Store to list Identity Mapping + // Entries in. Format: + // `projects/{project}/locations/{location}/identityMappingStores/{identityMappingStore}` + string identity_mapping_store = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/IdentityMappingStore" + } + ]; + + // Maximum number of IdentityMappings to return. If unspecified, defaults + // to 2000. The maximum allowed value is 10000. Values above 10000 will be + // coerced to 10000. + int32 page_size = 2; + + // A page token, received from a previous `ListIdentityMappings` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListIdentityMappings` must match the call that provided the page + // token. + string page_token = 3; +} + +// Response message for +// [IdentityMappingStoreService.ListIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ListIdentityMappings] +message ListIdentityMappingsResponse { + // The Identity Mapping Entries. + repeated IdentityMappingEntry identity_mapping_entries = 1; + + // A token that can be sent as `page_token` to retrieve the next page. If this + // field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [IdentityMappingStoreService.ListIdentityMappingStores][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ListIdentityMappingStores] +message ListIdentityMappingStoresRequest { + // Required. The parent of the Identity Mapping Stores to list. + // Format: + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Location" + } + ]; + + // Maximum number of IdentityMappingStores to return. If unspecified, defaults + // to 100. The maximum allowed value is 1000. Values above 1000 will be + // coerced to 1000. + int32 page_size = 2; + + // A page token, received from a previous `ListIdentityMappingStores` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListIdentityMappingStores` must match the call that provided the page + // token. + string page_token = 3; +} + +// Response message for +// [IdentityMappingStoreService.ListIdentityMappingStores][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ListIdentityMappingStores] +message ListIdentityMappingStoresResponse { + // The Identity Mapping Stores. + repeated IdentityMappingStore identity_mapping_stores = 1; + + // A token that can be sent as `page_token` to retrieve the next page. If this + // field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// IdentityMappingEntry LongRunningOperation metadata for +// [IdentityMappingStoreService.ImportIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.ImportIdentityMappings] +// and +// [IdentityMappingStoreService.PurgeIdentityMappings][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.PurgeIdentityMappings] +message IdentityMappingEntryOperationMetadata { + // The number of IdentityMappingEntries that were successfully processed. + int64 success_count = 1; + + // The number of IdentityMappingEntries that failed to be processed. + int64 failure_count = 2; + + // The total number of IdentityMappingEntries that were processed. + int64 total_count = 3; +} + +// Metadata related to the progress of the +// [IdentityMappingStoreService.DeleteIdentityMappingStore][google.cloud.discoveryengine.v1beta.IdentityMappingStoreService.DeleteIdentityMappingStore] +// operation. This will be returned by the google.longrunning.Operation.metadata +// field. +message DeleteIdentityMappingStoreMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/import_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/import_config.proto index 271b22de0fc6..be3a52c7d187 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/import_config.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/import_config.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -208,7 +208,7 @@ message BigtableOptions { // The type of values in a Bigtable column or column family. // The values are expected to be encoded using // [HBase - // Bytes.toBytes](https://hbase.apache.org/apidocs/org/apache/hadoop/hbase/util/Bytes.html) + // Bytes.toBytes](https://hbase.apache.org/1.4/apidocs/org/apache/hadoop/hbase/util/Bytes.html) // function when the encoding value is set to `BINARY`. enum Type { // The type is unspecified. @@ -298,6 +298,18 @@ message FhirStoreSource { // types](https://cloud.google.com/generative-ai-app-builder/docs/fhir-schema-reference#resource-level-specification). // Default to all supported FHIR resource types if empty. repeated string resource_types = 3; + + // Optional. Whether to update the DataStore schema to the latest predefined + // schema. + // + // If true, the DataStore schema will be updated to include any FHIR fields + // or resource types that have been added since the last import and + // corresponding FHIR resources will be imported from the FHIR store. + // + // Note this field cannot be used in conjunction with `resource_types`. It + // should be used after initial import. + bool update_from_latest_predefined_schema = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Cloud SQL source import data from. @@ -460,9 +472,10 @@ message ImportUserEventsMetadata { // Operation create time. google.protobuf.Timestamp create_time = 1; - // Operation last update time. If the operation is done, this is also the - // finish time. - google.protobuf.Timestamp update_time = 2; + // Output only. Operation last update time. If the operation is done, this is + // also the finish time. + google.protobuf.Timestamp update_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Count of entries that were processed successfully. int64 success_count = 3; @@ -512,6 +525,9 @@ message ImportDocumentsRequest { // Calculates diff and replaces the entire document dataset. Existing // documents may be deleted if they are not present in the source location. + // When using this mode, there won't be any downtime on the dataset + // targeted. Any document that should remain unchanged or that should be + // updated will continue serving while the operation is running. FULL = 2; } @@ -626,9 +642,15 @@ message ImportDocumentsRequest { // must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. // * [SpannerSource][google.cloud.discoveryengine.v1beta.SpannerSource]. // * [CloudSqlSource][google.cloud.discoveryengine.v1beta.CloudSqlSource]. - // * [FirestoreSource][google.cloud.discoveryengine.v1beta.FirestoreSource]. // * [BigtableSource][google.cloud.discoveryengine.v1beta.BigtableSource]. string id_field = 9; + + // Optional. Whether to force refresh the unstructured content of the + // documents. + // + // If set to `true`, the content part of the documents will be refreshed + // regardless of the update status of the referencing content. + bool force_refresh_content = 16 [(google.api.field_behavior) = OPTIONAL]; } // Response of the diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/license_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/license_config.proto new file mode 100644 index 000000000000..1cb193eefc54 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/license_config.proto @@ -0,0 +1,116 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.discoveryengine.v1beta; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/common.proto"; +import "google/type/date.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "LicenseConfigProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Information about users' licenses. +message LicenseConfig { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/LicenseConfig" + pattern: "projects/{project}/locations/{location}/licenseConfigs/{license_config}" + plural: "licenseConfigs" + singular: "licenseConfig" + }; + + // License config state enumeration. + enum State { + // Default value. The license config does not exist. + STATE_UNSPECIFIED = 0; + + // The license config is effective and being used. + ACTIVE = 1; + + // The license config has expired. + EXPIRED = 2; + + // The license config has not started yet, and its start date is in the + // future. + NOT_STARTED = 3; + + // This is when a sub license config has returned all its seats back to + // BillingAccountLicenseConfig that it belongs to. + // Similar to EXPIRED. + WITHDRAWN = 4; + + // The license config is terminated earlier than the expiration date and it + // is deactivating. The customer will still have access in this state. It + // will be converted to EXPIRED after the deactivating period ends (14 days) + // or when the end date is reached, whichever comes first. + DEACTIVATING = 5; + } + + // Immutable. Identifier. The fully qualified resource name of the license + // config. Format: + // `projects/{project}/locations/{location}/licenseConfigs/{license_config}` + string name = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = IDENTIFIER + ]; + + // Required. Number of licenses purchased. + int64 license_count = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Subscription tier information for the license config. + SubscriptionTier subscription_tier = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Output only. The state of the license config. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Whether the license config should be auto renewed when it reaches + // the end date. + bool auto_renew = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The start date. + google.type.Date start_date = 6 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The planed end date. + google.type.Date end_date = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Subscription term. + SubscriptionTerm subscription_term = 8 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Whether the license config is for free trial. + bool free_trial = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Whether the license config is for Gemini bundle. + bool gemini_bundle = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indication of whether the subscription is terminated earlier + // than the expiration date. This is usually terminated by pipeline once the + // subscription gets terminated from subsv3. + bool early_terminated = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The date when the subscription is terminated earlier than the + // expiration date. + google.type.Date early_termination_date = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/license_config_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/license_config_service.proto new file mode 100644 index 000000000000..348a0e1b687e --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/license_config_service.proto @@ -0,0 +1,312 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.discoveryengine.v1beta; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/license_config.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "LicenseConfigServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Service for managing license config related resources. +service LicenseConfigService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; + + // Creates a + // [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] This + // method should only be used for creating NotebookLm licenses or Gemini + // Enterprise free trial licenses. + rpc CreateLicenseConfig(CreateLicenseConfigRequest) returns (LicenseConfig) { + option (google.api.http) = { + post: "/v1beta/{parent=projects/*/locations/*}/licenseConfigs" + body: "license_config" + }; + option (google.api.method_signature) = + "parent,license_config,license_config_id"; + } + + // Updates the + // [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] + rpc UpdateLicenseConfig(UpdateLicenseConfigRequest) returns (LicenseConfig) { + option (google.api.http) = { + patch: "/v1beta/{license_config.name=projects/*/locations/*/licenseConfigs/*}" + body: "license_config" + }; + option (google.api.method_signature) = "license_config,update_mask"; + } + + // Gets a [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]. + rpc GetLicenseConfig(GetLicenseConfigRequest) returns (LicenseConfig) { + option (google.api.http) = { + get: "/v1beta/{name=projects/*/locations/*/licenseConfigs/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all the + // [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s + // associated with the project. + rpc ListLicenseConfigs(ListLicenseConfigsRequest) + returns (ListLicenseConfigsResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=projects/*/locations/*}/licenseConfigs" + }; + option (google.api.method_signature) = "parent"; + } + + // Distributes a + // [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from + // billing account level to project level. + rpc DistributeLicenseConfig(DistributeLicenseConfigRequest) + returns (DistributeLicenseConfigResponse) { + option (google.api.http) = { + post: "/v1beta/{billing_account_license_config=billingAccounts/*/billingAccountLicenseConfigs/*}:distributeLicenseConfig" + body: "*" + }; + option (google.api.method_signature) = + "billing_account_license_config,project_number,location,license_count,license_config_id"; + } + + // This method is called from the billing account side to retract the + // [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] from the + // given project back to the billing account. + rpc RetractLicenseConfig(RetractLicenseConfigRequest) + returns (RetractLicenseConfigResponse) { + option (google.api.http) = { + post: "/v1beta/{billing_account_license_config=billingAccounts/*/billingAccountLicenseConfigs/*}:retractLicenseConfig" + body: "*" + }; + option (google.api.method_signature) = + "billing_account_license_config,license_config,full_retract,license_count"; + } +} + +// Request message for +// [LicenseConfigService.CreateLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.CreateLicenseConfig] +// method. +message CreateLicenseConfigRequest { + // Required. The parent resource name, such as + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Location" + } + ]; + + // Required. The + // [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to + // create. + LicenseConfig license_config = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The ID to use for the + // [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], which + // will become the final component of the + // [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]'s + // resource name. We are using the tier (product edition) name as the license + // config id such as `search` or `search_and_assistant`. + string license_config_id = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [LicenseConfigService.UpdateLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.UpdateLicenseConfig] +// method. +message UpdateLicenseConfigRequest { + // Required. The + // [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to + // update. + LicenseConfig license_config = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Indicates which fields in the provided + // [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] to + // update. + // + // If an unsupported or unknown field is provided, an INVALID_ARGUMENT error + // is returned. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [LicenseConfigService.GetLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.GetLicenseConfig] +// method. +message GetLicenseConfigRequest { + // Required. Full resource name of + // [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], such as + // `projects/{project}/locations/{location}/licenseConfigs/*`. + // + // If the caller does not have permission to access the + // [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig], + // regardless of whether or not it exists, a PERMISSION_DENIED error is + // returned. + // + // If the requested + // [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] does not + // exist, a NOT_FOUND error is returned. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/LicenseConfig" + } + ]; +} + +// Request message for +// [LicenseConfigService.ListLicenseConfigs][google.cloud.discoveryengine.v1beta.LicenseConfigService.ListLicenseConfigs] +// method. +message ListLicenseConfigsRequest { + // Required. The parent branch resource name, such as + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/Location" + } + ]; + + // Optional. Not supported. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Not supported. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filter to apply to the list results. + // + // The supported fields are: + // + // * `subscription_tier` + // * `state` + // + // Examples: + // + // * `subscription_tier=SUBSCRIPTION_TIER_SEARCH,state=ACTIVE` - Lists all + // active search license configs. + // * `state=ACTIVE` - Lists all active license configs. + // + // The filter string should be a comma-separated list of field=value pairs. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [LicenseConfigService.ListLicenseConfigs][google.cloud.discoveryengine.v1beta.LicenseConfigService.ListLicenseConfigs] +// method. +message ListLicenseConfigsResponse { + // All the customer's + // [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]s. + repeated LicenseConfig license_configs = 1; + + // Not supported. + string next_page_token = 2; +} + +// Request message for +// [LicenseConfigService.DistributeLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.DistributeLicenseConfig] +// method. +message DistributeLicenseConfigRequest { + // Required. Full resource name of [BillingAccountLicenseConfig][]. + // + // Format: + // `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`. + string billing_account_license_config = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/BillingAccountLicenseConfig" + } + ]; + + // Required. The target GCP project number to distribute the license config + // to. + int64 project_number = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The target GCP project region to distribute the license config + // to. + string location = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The number of licenses to distribute. + int64 license_count = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Distribute seats to this license config instead of creating a new + // one. If not specified, a new license config will be created from the + // billing account license config. + string license_config_id = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [LicenseConfigService.DistributeLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.DistributeLicenseConfig] +// method. +message DistributeLicenseConfigResponse { + // The updated or created LicenseConfig. + LicenseConfig license_config = 1; +} + +// Request message for +// [LicenseConfigService.RetractLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.RetractLicenseConfig] +// method. +message RetractLicenseConfigRequest { + // Required. Full resource name of [BillingAccountLicenseConfig][]. + // + // Format: + // `billingAccounts/{billing_account}/billingAccountLicenseConfigs/{billing_account_license_config_id}`. + string billing_account_license_config = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/BillingAccountLicenseConfig" + } + ]; + + // Required. Full resource name of + // [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig]. + // + // Format: + // `projects/{project}/locations/{location}/licenseConfigs/{license_config_id}`. + string license_config = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/LicenseConfig" + } + ]; + + // Optional. If set to true, retract the entire license config. Otherwise, + // retract the specified license count. + bool full_retract = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The number of licenses to retract. Only used when full_retract is + // false. + int64 license_count = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [LicenseConfigService.RetractLicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfigService.RetractLicenseConfig] +// method. +message RetractLicenseConfigResponse { + // The updated LicenseConfig. + LicenseConfig license_config = 1; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/logging.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/logging.proto new file mode 100644 index 000000000000..3e709d0cd0d4 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/logging.proto @@ -0,0 +1,40 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.discoveryengine.v1beta; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "LoggingProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Observability config for a resource. +message ObservabilityConfig { + // Optional. Enables observability. If `false`, all other flags are ignored. + bool observability_enabled = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Enables sensitive logging. Sensitive logging includes customer + // core content (e.g. prompts, responses). If `false`, will sanitize all + // sensitive fields. + bool sensitive_logging_enabled = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/project.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/project.proto index 09dcef77d83a..606f48e17088 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/project.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/project.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,6 +18,7 @@ package google.cloud.discoveryengine.v1beta; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/logging.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; @@ -80,6 +81,225 @@ message Project { google.protobuf.Timestamp decline_time = 6; } + // Customer provided configurations. + message CustomerProvidedConfig { + // Configuration for NotebookLM. + message NotebooklmConfig { + // Configuration for customer defined Model Armor templates to be used for + // sanitizing user prompts and LLM responses. + message ModelArmorConfig { + // Optional. The resource name of the Model Armor Template for + // sanitizing user prompts. Format: + // projects/{project}/locations/{location}/templates/{template_id} + // If not specified, no sanitization will be applied to the user prompt. + string user_prompt_template = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "modelarmor.googleapis.com/Template" + } + ]; + + // Optional. The resource name of the Model Armor Template for + // sanitizing LLM responses. Format: + // projects/{project}/locations/{location}/templates/{template_id} + // If not specified, no sanitization will be applied to the LLM + // response. + string response_template = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "modelarmor.googleapis.com/Template" + } + ]; + } + + // Data protection policy config for NotebookLM. + message DataProtectionPolicy { + // Specifies a Sensitive Data Protection + // (https://cloud.google.com/sensitive-data-protection/docs/sensitive-data-protection-overview) + // policy. + message SensitiveDataProtectionPolicy { + // Optional. The Sensitive Data Protection policy resource name. + string policy = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "dlp.googleapis.com/ContentPolicy" + } + ]; + } + + // Optional. The sensitive data protection policy. + SensitiveDataProtectionPolicy sensitive_data_protection_policy = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Model Armor configuration to be used for sanitizing user prompts and + // LLM responses. + ModelArmorConfig model_armor_config = 1; + + // Optional. Whether to disable the notebook sharing feature for the + // project. Default to false if not specified. + bool opt_out_notebook_sharing = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the data protection policy for NotebookLM. + DataProtectionPolicy data_protection_policy = 5 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Observability config for NotebookLM. + ObservabilityConfig observability_config = 6 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Configuration for NotebookLM settings. + NotebooklmConfig notebooklm_config = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Represents the currently effective configurable billing parameters. + // These values are derived from the customer's subscription history stored + // internally and reflect the thresholds actively being used for billing + // purposes at the time of the GetProject call. This includes the start_time + // of the subscription and may differ from the values in + // `customer_provided_config` due to billing rules + // (e.g., scale-downs taking effect only at the start of a new month). + // We also include the update type to indicate the type of update performed on + // the configurable billing configuration in the UpdateProject operation. + message ConfigurableBillingStatus { + // Per-model Agent Search TPM subscription status. One entry per active + // `core_subscription.agent_search_token_subscriptions[*]` entry in the + // customer-provided config; populated by UpdateProject and GetProject. + // + // The lifecycle scalars on this message (`start_time`, `terminate_time`, + // `update_type`, `tpm_threshold_next_update_time`) are per (project, + // model_version) — siblings of the whole-relationship `start_time` / + // `terminate_time` / `update_type` on the enclosing + // ConfigurableBillingStatus, but scoped to this specific Agent Search + // TPM subscription instead of to the overall customer-configurable- + // pricing relationship. This per-instance granularity is intentional: + // the underlying SubV3 storage is per-(project, model_version), so + // each model has its own activation, termination, and deferred-update + // clock; surfacing that on the response gives customers the granularity + // they need to manage per-model commitments independently. QPM / + // IndexingCore differ — their storage is one row per (project, + // location), so their lifecycle is represented only by the whole- + // relationship scalars on ConfigurableBillingStatus. + message AgentSearchTokenSubscriptionStatus { + // Output only. The Gemini model version this status corresponds to. + // Matches CoreSubscription.AgentSearchTokenSubscription.model_version (a + // stable Gemini model version from the Gemini Enterprise Agent Platform + // model-versions registry; see + // https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/model-versions#gemini-models). + string model_version = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The currently effective TPM threshold. Reflects scale-up + // immediately and scale-down at the next billing cycle, matching + // `effective_search_qpm_threshold` semantics. + int64 effective_tpm_threshold = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The earliest next update time for the TPM subscription + // threshold for this (project, model_version). Populated only after a + // successful update. + google.protobuf.Timestamp tpm_threshold_next_update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. When this (project, model_version) Agent Search TPM + // subscription was first activated. Set once on first activation of this + // model version and never moved by subsequent threshold updates; on + // termination + re-activation a new value is recorded. Does NOT move + // the whole-relationship `start_time` on the enclosing + // ConfigurableBillingStatus, which continues to represent the first + // activation of the overall customer-configurable-pricing + // relationship. + google.protobuf.Timestamp start_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If set, the scheduled effective time at which this + // (project, model_version) Agent Search TPM subscription will terminate. + // Populated when the customer removes this entry from + // `core_subscription.agent_search_token_subscriptions[*]`. Does NOT move + // the whole-relationship `terminate_time` on the enclosing + // ConfigurableBillingStatus, which is populated only when the entire + // customer-configurable-pricing relationship is being torn down. + google.protobuf.Timestamp terminate_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the most recent update to this (project, + // model_version) subscription, as performed by the most recent + // UpdateProject call. `UPDATE_TYPE_UNSPECIFIED` indicates this + // model_version was not touched by the most recent UpdateProject (its + // `effective_tpm_threshold` reflects an earlier update). The + // whole-relationship `update_type` on the enclosing + // ConfigurableBillingStatus continues to summarize the direction of + // the most recent update across all surfaces in the project (QPM, + // IndexingCore, and Agent Search TPM together). + UpdateType update_type = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The type of update performed on the configurable billing configuration. + enum UpdateType { + // Unspecified update type. + UPDATE_TYPE_UNSPECIFIED = 0; + + // Configurable billing was created/enabled. + CREATE = 1; + + // Configurable billing was deleted/disabled. + DELETE = 2; + + // Subscription was scaled up (thresholds increased). + SCALE_UP = 3; + + // Subscription was scaled down (thresholds decreased). + SCALE_DOWN = 4; + } + + // Optional. The currently effective Search QPM threshold in queries per + // minute. This is the threshold against which QPM usage is compared for + // overage calculations. + int64 effective_search_qpm_threshold = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The currently effective Indexing Core threshold. + // This is the threshold against which Indexing Core usage is compared + // for overage calculations. + int64 effective_indexing_core_threshold = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The start time of the currently active billing subscription. + google.protobuf.Timestamp start_time = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The latest terminate effective time of search qpm and + // indexing core subscriptions. + google.protobuf.Timestamp terminate_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The earliest next update time for the search QPM + // subscription threshold. This is based on the next_update_time returned by + // the underlying Cloud Billing Subscription V3 API. This field is populated + // only if an update QPM subscription threshold request is succeeded. + google.protobuf.Timestamp search_qpm_threshold_next_update_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The earliest next update time for the indexing core + // subscription threshold. This is based on the next_update_time returned by + // the underlying Cloud Billing Subscription V3 API. This field is populated + // only if an update indexing core subscription threshold + // request is succeeded. + google.protobuf.Timestamp indexing_core_threshold_next_update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of update performed in this operation. + // This field is populated in the response of UpdateProject. + UpdateType update_type = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Per-model Agent Search TPM subscription status. + repeated AgentSearchTokenSubscriptionStatus + agent_search_token_subscription_statuses = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Output only. Full resource name of the project, for example // `projects/{project}`. // Note that when making requests, project number and project id are both @@ -100,4 +320,12 @@ message Project { // [ServiceTerms][google.cloud.discoveryengine.v1beta.Project.ServiceTerms]. map service_terms_map = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Customer provided configurations. + CustomerProvidedConfig customer_provided_config = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The current status of the project's configurable billing. + ConfigurableBillingStatus configurable_billing_status = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/project_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/project_service.proto index 02ed0539677c..3a504a551fad 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/project_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/project_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,7 +37,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service ProjectService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Provisions the project resource. During the // process, related systems will get prepared and initialized. @@ -63,6 +65,18 @@ service ProjectService { // [ProjectService.ProvisionProject][google.cloud.discoveryengine.v1beta.ProjectService.ProvisionProject] // method. message ProvisionProjectRequest { + // Parameters for Agentspace. + message SaasParams { + // Optional. Set to `true` to specify that caller has read and would like to + // give consent to the [Terms for Agent Space quality of service]. + bool accept_biz_qos = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates if the current request is for Biz edition (= true) or + // not + // (= false). + bool is_biz = 2 [(google.api.field_behavior) = OPTIONAL]; + } + // Required. Full resource name of a // [Project][google.cloud.discoveryengine.v1beta.Project], such as // `projects/{project_id_or_number}`. @@ -84,6 +98,9 @@ message ProvisionProjectRequest { // // Acceptable version is `2022-11-23`, and this may change over time. string data_use_terms_version = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Parameters for Agentspace. + SaasParams saas_params = 4 [(google.api.field_behavior) = OPTIONAL]; } // Metadata associated with a project provision operation. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/purge_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/purge_config.proto index ef3947b2125b..257b2d9d4605 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/purge_config.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/purge_config.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -55,16 +55,20 @@ message PurgeUserEventsRequest { // * `userId`: Double quoted string. Specifying this will delete all events // associated with a user. // + // Note: This API only supports purging a max range of 30 days. + // // Examples: // // * Deleting all events in a time range: // `eventTime > "2012-04-23T18:25:43.511Z" // eventTime < "2012-04-23T18:30:43.511Z"` - // * Deleting specific eventType: - // `eventType = "search"` - // * Deleting all events for a specific visitor: - // `userPseudoId = "visitor1024"` - // * Deleting all events inside a DataStore: + // * Deleting specific eventType in a time range: + // `eventTime > "2012-04-23T18:25:43.511Z" + // eventTime < "2012-04-23T18:30:43.511Z" eventType = "search"` + // * Deleting all events for a specific visitor in a time range: + // `eventTime > "2012-04-23T18:25:43.511Z" + // eventTime < "2012-04-23T18:30:43.511Z" userPseudoId = "visitor1024"` + // * Deleting the past 30 days of events inside a DataStore: // `*` // // The filtering fields are assumed to have an implicit AND. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/rank_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/rank_service.proto index 7bf07ed9084c..c2e3a9deb0d1 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/rank_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/rank_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -34,7 +34,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service RankService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Ranks a list of text records based on the given input query. rpc Rank(RankRequest) returns (RankResponse) { @@ -67,6 +69,8 @@ message RankingRecord { string content = 3; // The score of this record based on the given query and selected model. + // The score will be rounded to 4 decimal places. If the score is close to 0, + // it will be rounded to 0.00001 to avoid returning unset. float score = 4; } @@ -85,7 +89,7 @@ message RankRequest { // The identifier of the model to use. It is one of: // - // * `semantic-ranker-512@latest`: Semantic ranking model with maxiumn input + // * `semantic-ranker-512@latest`: Semantic ranking model with maximum input // token size 512. // // It is set to `semantic-ranker-512@latest` by default if unspecified. @@ -98,7 +102,7 @@ message RankRequest { // The query to use. string query = 4; - // Required. A list of records to rank. At most 200 records to rank. + // Required. A list of records to rank. repeated RankingRecord records = 5 [(google.api.field_behavior) = REQUIRED]; // If true, the response will contain only record ID and score. By default, it diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/recommendation_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/recommendation_service.proto index 18d66b659aae..26f2358fa4c1 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/recommendation_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/recommendation_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,7 +37,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service RecommendationService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Makes a recommendation, which requires a contextual user event. rpc Recommend(RecommendRequest) returns (RecommendResponse) { @@ -116,9 +118,9 @@ message RecommendRequest { // attribute-based expressions are expected instead of the above described // tag-based syntax. Examples: // - // * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie")) + // * (language: ANY("en", "es")) AND NOT (categories: ANY("Movie")) // * (available: true) AND - // (launguage: ANY("en", "es")) OR (categories: ANY("Movie")) + // (language: ANY("en", "es")) OR (categories: ANY("Movie")) // // If your filter blocks all results, the API returns generic // (unfiltered) popular Documents. If you only want results strictly matching diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/safety.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/safety.proto new file mode 100644 index 000000000000..06b5fd065463 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/safety.proto @@ -0,0 +1,107 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.discoveryengine.v1beta; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "SafetyProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Harm categories that will block the content. +enum HarmCategory { + // The harm category is unspecified. + HARM_CATEGORY_UNSPECIFIED = 0; + + // The harm category is hate speech. + HARM_CATEGORY_HATE_SPEECH = 1; + + // The harm category is dangerous content. + HARM_CATEGORY_DANGEROUS_CONTENT = 2; + + // The harm category is harassment. + HARM_CATEGORY_HARASSMENT = 3; + + // The harm category is sexually explicit content. + HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; + + // The harm category is civic integrity. + HARM_CATEGORY_CIVIC_INTEGRITY = 5; +} + +// Safety rating corresponding to the generated content. +message SafetyRating { + // Harm probability levels in the content. + enum HarmProbability { + // Harm probability unspecified. + HARM_PROBABILITY_UNSPECIFIED = 0; + + // Negligible level of harm. + NEGLIGIBLE = 1; + + // Low level of harm. + LOW = 2; + + // Medium level of harm. + MEDIUM = 3; + + // High level of harm. + HIGH = 4; + } + + // Harm severity levels. + enum HarmSeverity { + // Harm severity unspecified. + HARM_SEVERITY_UNSPECIFIED = 0; + + // Negligible level of harm severity. + HARM_SEVERITY_NEGLIGIBLE = 1; + + // Low level of harm severity. + HARM_SEVERITY_LOW = 2; + + // Medium level of harm severity. + HARM_SEVERITY_MEDIUM = 3; + + // High level of harm severity. + HARM_SEVERITY_HIGH = 4; + } + + // Output only. Harm category. + HarmCategory category = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Harm probability levels in the content. + HarmProbability probability = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Harm probability score. + float probability_score = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Harm severity levels in the content. + HarmSeverity severity = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Harm severity score. + float severity_score = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Indicates whether the content was filtered out because of this + // rating. + bool blocked = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query.proto index f166c4a6d3e2..2de515f09193 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_service.proto index 248d099e206f..74f5660cc4ee 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,7 +40,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service SampleQueryService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Gets a [SampleQuery][google.cloud.discoveryengine.v1beta.SampleQuery]. rpc GetSampleQuery(GetSampleQueryRequest) returns (SampleQuery) { diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_set.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_set.proto index 730d14055326..9430835887dd 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_set.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_set.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_set_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_set_service.proto index 24159782f418..87f3a640aa64 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_set_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/sample_query_set_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,7 +38,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service SampleQuerySetService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Gets a // [SampleQuerySet][google.cloud.discoveryengine.v1beta.SampleQuerySet]. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/schema.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/schema.proto index 53b972223eef..6733406be604 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/schema.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/schema.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/schema_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/schema_service.proto index d9babb622d35..ad8f6abaefb1 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/schema_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/schema_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,7 +38,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service SchemaService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Gets a [Schema][google.cloud.discoveryengine.v1beta.Schema]. rpc GetSchema(GetSchemaRequest) returns (Schema) { diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto index 94c8f6bd18e6..8bbb6aa4353e 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,7 +38,10 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service SearchService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.assist.readwrite," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Performs a search. rpc Search(SearchRequest) returns (SearchResponse) { @@ -123,6 +126,20 @@ message SearchRequest { // For more information on boosting, see // [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results) BoostSpec boost_spec = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Custom search operators which if specified will be used to + // filter results from workspace data stores. For more information on custom + // search operators, see + // [SearchOperators](https://support.google.com/cloudsearch/answer/6172299). + string custom_search_operators = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of results to retrieve from this data store. + // If not specified, it will use the + // [SearchRequest.num_results_per_data_store][google.cloud.discoveryengine.v1beta.SearchRequest.num_results_per_data_store] + // if provided, otherwise there is no limit. If both this field and + // [SearchRequest.num_results_per_data_store][google.cloud.discoveryengine.v1beta.SearchRequest.num_results_per_data_store] + // are specified, this field will be used. + int32 num_results = 9 [(google.api.field_behavior) = OPTIONAL]; } // A facet specification to perform faceted search. @@ -200,7 +217,6 @@ message SearchRequest { // List of keys to exclude when faceting. // - // // By default, // [FacetKey.key][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.key] // is not excluded from the filter unless it is listed in this field. @@ -376,7 +392,7 @@ message SearchRequest { } // Condition boost specifications. If a document matches multiple conditions - // in the specifictions, boost scores from these specifications are all + // in the specifications, boost scores from these specifications are all // applied and combined in a non-linear way. Maximum number of // specifications is 20. repeated ConditionBoostSpec condition_boost_specs = 1; @@ -459,6 +475,31 @@ message SearchRequest { // A specification for configuring a summary returned in a search // response. message SummarySpec { + // Multimodal specification: Will return an image from specified source. + // If multiple sources are specified, the pick is a quality based + // decision. + message MultiModalSpec { + // Specifies the image source. + enum ImageSource { + // Unspecified image source (multimodal feature is disabled by + // default). + IMAGE_SOURCE_UNSPECIFIED = 0; + + // Behavior when service determines the pick from all available + // sources. + ALL_AVAILABLE_SOURCES = 1; + + // Includes image from corpus in the answer. + CORPUS_IMAGE_ONLY = 2; + + // Triggers figure generation in the answer. + FIGURE_GENERATION_ONLY = 3; + } + + // Optional. Source of image returned in the answer. + ImageSource image_source = 3 [(google.api.field_behavior) = OPTIONAL]; + } + // Specification of the prompt to use with the model. message ModelPromptSpec { // Text at the beginning of the prompt that instructs the assistant. @@ -560,6 +601,10 @@ message SearchRequest { bool ignore_jail_breaking_query = 10 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Multimodal specification. + MultiModalSpec multimodal_spec = 11 + [(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; @@ -663,7 +708,8 @@ message SearchRequest { DOCUMENTS = 1; // Returns chunks in the search result. Only available if the - // [DataStore.DocumentProcessingConfig.chunking_config][] is specified. + // [DocumentProcessingConfig.chunking_config][google.cloud.discoveryengine.v1beta.DocumentProcessingConfig.chunking_config] + // is specified. CHUNKS = 2; } @@ -712,7 +758,7 @@ message SearchRequest { message NaturalLanguageQueryUnderstandingSpec { // Enum describing under which condition filter extraction should occur. enum FilterExtractionCondition { - // Server behavior defaults to [Condition.DISABLED][]. + // Server behavior defaults to `DISABLED`. CONDITION_UNSPECIFIED = 0; // Disables NL filter extraction. @@ -722,17 +768,56 @@ message SearchRequest { ENABLED = 2; } + // Enum describing how extracted filters are applied to the search. + enum ExtractedFilterBehavior { + // `EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED` will use the default behavior + // for extracted filters. For single datastore search, the default is to + // apply as hard filters. For multi-datastore search, the default is to + // apply as soft boosts. + EXTRACTED_FILTER_BEHAVIOR_UNSPECIFIED = 0; + + // Applies all extracted filters as hard filters on the results. Results + // that do not pass the extracted filters will not be returned in the + // result set. + HARD_FILTER = 1; + + // Applies all extracted filters as soft boosts. Results that pass the + // filters will be boosted up to higher ranks in the result set. + SOFT_BOOST = 2; + } + // The condition under which filter extraction should occur. - // Default to [Condition.DISABLED][]. + // Server behavior defaults to `DISABLED`. FilterExtractionCondition filter_extraction_condition = 1; // Field names used for location-based filtering, where geolocation filters // are detected in natural language search queries. // Only valid when the FilterExtractionCondition is set to `ENABLED`. - // - // If this field is set, it overrides the field names set in - // [ServingConfig.geo_search_query_detection_field_names][google.cloud.discoveryengine.v1beta.ServingConfig.geo_search_query_detection_field_names]. repeated string geo_search_query_detection_field_names = 2; + + // Optional. Controls behavior of how extracted filters are applied to the + // search. The default behavior depends on the request. For single datastore + // structured search, the default is `HARD_FILTER`. For multi-datastore + // search, the default behavior is `SOFT_BOOST`. + // Location-based filters are always applied as hard filters, and the + // `SOFT_BOOST` setting will not affect them. + // This field is only used if + // [SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition] + // is set to + // [FilterExtractionCondition.ENABLED][google.cloud.discoveryengine.v1beta.SearchRequest.NaturalLanguageQueryUnderstandingSpec.FilterExtractionCondition.ENABLED]. + ExtractedFilterBehavior extracted_filter_behavior = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Allowlist of fields that can be used for natural language + // filter extraction. By default, if this is unspecified, all indexable + // fields are eligible for natural language filter extraction (but are not + // guaranteed to be used). If any fields are specified in + // allowed_field_names, only the fields that are both marked as indexable in + // the schema and specified in the allowlist will be eligible for natural + // language filter extraction. Note: for multi-datastore search, this is not + // yet supported, and will be ignored. + repeated string allowed_field_names = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Specification for search as you type in search requests. @@ -760,11 +845,61 @@ message SearchRequest { Condition condition = 1; } + // Specifies features for display, like match highlighting. + message DisplaySpec { + // Enum describing under which condition match highlighting should occur. + enum MatchHighlightingCondition { + // Server behavior is the same as `MATCH_HIGHLIGHTING_DISABLED`. + MATCH_HIGHLIGHTING_CONDITION_UNSPECIFIED = 0; + + // Disables match highlighting on all documents. + MATCH_HIGHLIGHTING_DISABLED = 1; + + // Enables match highlighting on all documents. + MATCH_HIGHLIGHTING_ENABLED = 2; + } + + // The condition under which match highlighting should occur. + MatchHighlightingCondition match_highlighting_condition = 1; + } + + // Specification for crowding. Crowding improves the diversity of search + // results by limiting the number of results that share the same field value. + // For example, crowding on the color field with a max_count of 3 and mode + // DROP_CROWDED_RESULTS will return at most 3 results with the same color + // across all pages. + message CrowdingSpec { + // Enum describing the mode to use for documents that are crowded away. + // They can be dropped or demoted to the later pages. + enum Mode { + // Unspecified crowding mode. In this case, server behavior defaults to + // [Mode.DROP_CROWDED_RESULTS][google.cloud.discoveryengine.v1beta.SearchRequest.CrowdingSpec.Mode.DROP_CROWDED_RESULTS]. + MODE_UNSPECIFIED = 0; + + // Drop crowded results. + DROP_CROWDED_RESULTS = 1; + + // Demote crowded results to the later pages. + DEMOTE_CROWDED_RESULTS_TO_END = 2; + } + + // The field to use for crowding. Documents can be crowded by a field in the + // [Document][google.cloud.discoveryengine.v1beta.Document] object. Crowding + // field is case sensitive. + string field = 1; + + // The maximum number of documents to keep per value of the field. Once + // there are at least max_count previous results which contain the same + // value for the given field (according to the order specified in + // `order_by`), later results with the same value are "crowded away". + // If not specified, the default value is 1. + int32 max_count = 2; + + // Mode to use for documents that are crowded away. + Mode mode = 3; + } + // Session specification. - // - // Multi-turn Search feature is currently at private GA stage. Please use - // v1alpha or v1beta version instead before we launch this feature to public - // GA. Or ask for allowlisting through Google Support team. message SessionSpec { // If set, the search result gets stored to the "turn" specified by this // query ID. @@ -796,13 +931,38 @@ message SearchRequest { // The number of top search results to persist. The persisted search results // can be used for the subsequent /answer api call. // - // This field is simliar to the `summary_result_count` field in + // This field is similar to the `summary_result_count` field in // [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count]. // // At most 10 results for documents mode, or 50 for chunks mode. optional int32 search_result_persistence_count = 2; } + // Relevance filtering specification. + message RelevanceFilterSpec { + // Specification for relevance filtering on a specific sub-search. + message RelevanceThresholdSpec { + // Configures how the relevance threshold is determined. + oneof relevance_threshold_spec { + // Pre-defined relevance threshold for the sub-search. + RelevanceThreshold relevance_threshold = 1; + + // Custom relevance threshold for the sub-search. + // The value must be in [0.0, 1.0]. + float semantic_relevance_threshold = 2; + } + } + + // Optional. Relevance filtering threshold specification for keyword search. + RelevanceThresholdSpec keyword_search_threshold = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Relevance filtering threshold specification for semantic + // search. + RelevanceThresholdSpec semantic_search_threshold = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + // The specification for personalization. message PersonalizationSpec { // The personalization mode of each search request. @@ -824,6 +984,67 @@ message SearchRequest { Mode mode = 1; } + // The specification for returning the document relevance score. + message RelevanceScoreSpec { + // Optional. Whether to return the relevance score for search results. + // The higher the score, the more relevant the document is to the query. + bool return_relevance_score = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // SearchAddonSpec is used to disable add-ons for search as per new + // repricing model. By default if the SearchAddonSpec is not specified, we + // consider that the customer wants to enable them wherever applicable. + message SearchAddonSpec { + // Optional. If true, semantic add-on is disabled. Semantic add-on includes + // embeddings and jetstream. + bool disable_semantic_add_on = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, disables event re-ranking and personalization to + // optimize KPIs & personalize results. + bool disable_kpi_personalization_add_on = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, generative answer add-on is disabled. Generative + // answer add-on includes natural language to filters and simple answers. + bool disable_generative_answer_add_on = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration parameters for the Custom Ranking feature. + message CustomRankingParams { + // Optional. A list of ranking expressions (see `ranking_expression` for the + // syntax documentation) to evaluate. The evaluation results will be + // returned in + // `SearchResponse.SearchResult.rank_signals.precomputed_expression_values` + // field. + repeated string expressions_to_precompute = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // The backend to use for the ranking expression evaluation. + enum RankingExpressionBackend { + // Default option for unspecified/unknown values. + RANKING_EXPRESSION_BACKEND_UNSPECIFIED = 0; + + // Deprecated: Use `RANK_BY_EMBEDDING` instead. + // Ranking by custom embedding model, the default way to evaluate the + // ranking expression. Legacy enum option, `RANK_BY_EMBEDDING` should be + // used instead. + BYOE = 1 [deprecated = true]; + + // Deprecated: Use `RANK_BY_FORMULA` instead. + // Ranking by custom formula. Legacy enum option, `RANK_BY_FORMULA` should + // be used instead. + CLEARBOX = 2 [deprecated = true]; + + // Ranking by custom embedding model, the default way to evaluate the + // ranking expression. + RANK_BY_EMBEDDING = 3; + + // Ranking by custom formula. + RANK_BY_FORMULA = 4; + } + // The relevance threshold of the search results. The higher relevance // threshold is, the higher relevant results are shown and the less number of // results are returned. @@ -870,6 +1091,25 @@ message SearchRequest { // Raw search query. string query = 3; + // Optional. The categories associated with a category page. Must be set for + // category navigation queries to achieve good search quality. The format + // should be the same as + // [PageInfo.page_category][google.cloud.discoveryengine.v1beta.PageInfo.page_category]. + // This field is the equivalent of the query for browse (navigation) queries. + // It's used by the browse model when the query is empty. + // + // If the field is empty, it will not be used by the browse model. + // If the field contains more than one element, only the first element will + // be used. + // + // To represent full path of a category, use '>' character to separate + // different hierarchies. If '>' is part of the category name, replace it with + // other character(s). + // For example, `Graphics Cards > RTX>4090 > Founders Edition` where "RTX > + // 4090" represents one level, can be rewritten as `Graphics Cards > RTX_4090 + // > Founders Edition` + repeated string page_categories = 63 [(google.api.field_behavior) = OPTIONAL]; + // Raw image query. ImageQuery image_query = 19; @@ -902,6 +1142,8 @@ message SearchRequest { // is unset. // // If this field is negative, an `INVALID_ARGUMENT` is returned. + // + // A large offset may be capped to a reasonable threshold. int32 offset = 6; // The maximum number of results to return for OneBox. @@ -909,12 +1151,22 @@ message SearchRequest { // 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 - // use the specs at the top level. + // Specifications that define the specific + // [DataStore][google.cloud.discoveryengine.v1beta.DataStore]s to be searched, + // along with configurations for those data stores. This is only considered + // for [Engine][google.cloud.discoveryengine.v1beta.Engine]s with multiple + // data stores. For engines with a single data store, the specs directly under + // [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] should + // be used. repeated DataStoreSpec data_store_specs = 32; + // Optional. The maximum number of results to retrieve from each data store. + // If not specified, it will use the + // [SearchRequest.DataStoreSpec.num_results][google.cloud.discoveryengine.v1beta.SearchRequest.DataStoreSpec.num_results] + // if provided, otherwise there is no limit. + int32 num_results_per_data_store = 65 + [(google.api.field_behavior) = OPTIONAL]; + // The filter syntax consists of an expression language for constructing a // predicate from one or more fields of the documents being filtered. Filter // expression is case-sensitive. @@ -961,7 +1213,7 @@ message SearchRequest { string order_by = 8; // Information about the end user. - // Highly recommended for analytics. + // Highly recommended for analytics and personalization. // [UserInfo.user_agent][google.cloud.discoveryengine.v1beta.UserInfo.user_agent] // is used to deduce `device_type` for analytics. UserInfo user_info = 21; @@ -1015,10 +1267,10 @@ message SearchRequest { // which spell correction takes effect. SpellCorrectionSpec spell_correction_spec = 14; - // A unique identifier for tracking visitors. For example, this could be - // implemented with an HTTP cookie, which should be able to uniquely identify - // a visitor on a single device. This unique identifier should not change if - // the visitor logs in or out of the website. + // Optional. A unique identifier for tracking visitors. For example, this + // could be implemented with an HTTP cookie, which should be able to uniquely + // identify a visitor on a single device. This unique identifier should not + // change if the visitor logs in or out of the website. // // This field should NOT have a fixed value such as `unknown_visitor`. // @@ -1029,7 +1281,7 @@ message SearchRequest { // // The field must be a UTF-8 encoded string with a length limit of 128 // characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - string user_pseudo_id = 15; + string user_pseudo_id = 15 [(google.api.field_behavior) = OPTIONAL]; // A specification for configuring the behavior of content search. ContentSearchSpec content_search_spec = 24; @@ -1046,8 +1298,8 @@ message SearchRequest { // [ServingConfig.EmbeddingConfig.field_path][google.cloud.discoveryengine.v1beta.ServingConfig.embedding_config]. EmbeddingSpec embedding_spec = 23; - // The ranking expression controls the customized ranking on retrieval - // documents. This overrides + // Optional. The ranking expression controls the customized ranking on + // retrieval documents. This overrides // [ServingConfig.ranking_expression][google.cloud.discoveryengine.v1beta.ServingConfig.ranking_expression]. // The syntax and supported features depend on the // `ranking_expression_backend` value. If `ranking_expression_backend` is not @@ -1136,22 +1388,18 @@ message SearchRequest { // Google model to determine the keyword-based overlap between the query and // the document. // * `base_rank`: the default rank of the result - string ranking_expression = 26; - - // The backend to use for the ranking expression evaluation. - enum RankingExpressionBackend { - reserved 1, 2; - - // Default option for unspecified/unknown values. - RANKING_EXPRESSION_BACKEND_UNSPECIFIED = 0; - // Ranking by custom embedding model, the default way to evaluate the - // ranking expression. - RANK_BY_EMBEDDING = 3; - // Ranking by custom formula. - RANK_BY_FORMULA = 4; - } - - // The backend to use for the ranking expression evaluation. + // * `media_actor_match`: whether the media actor matches the query + // * `media_director_match`: whether the media director matches the query + // * `media_genre_match`: whether the media genre matches the query + // * `media_language_match`: whether the media language matches the query + // * `media_title_match`: whether the media title matches the query + // * `media_prefix_similarity_rank`: prefix similarity rank for media + // results + // * `media_semantic_similarity_rank`: semantic similarity rank for media + // results + string ranking_expression = 26 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The backend to use for the ranking expression evaluation. RankingExpressionBackend ranking_expression_backend = 53 [(google.api.field_behavior) = OPTIONAL]; @@ -1178,16 +1426,37 @@ message SearchRequest { // for more details. map user_labels = 22; + // Optional. Config for natural language query understanding capabilities, + // such as extracting structured field filters from the query. Refer to [this + // documentation](https://cloud.google.com/generative-ai-app-builder/docs/natural-language-queries) + // for more information. // If `naturalLanguageQueryUnderstandingSpec` is not specified, no additional // natural language query understanding will be done. NaturalLanguageQueryUnderstandingSpec - natural_language_query_understanding_spec = 28; + natural_language_query_understanding_spec = 28 + [(google.api.field_behavior) = OPTIONAL]; // Search as you type configuration. Only supported for the // [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1beta.IndustryVertical.MEDIA] // vertical. SearchAsYouTypeSpec search_as_you_type_spec = 31; + // Optional. Config for display feature, like match highlighting on search + // results. + DisplaySpec display_spec = 38 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Crowding specifications for improving result diversity. + // If multiple CrowdingSpecs are specified, crowding will be evaluated on + // each unique combination of the `field` values, and max_count will be the + // maximum value of `max_count` across all CrowdingSpecs. + // For example, if the first CrowdingSpec has `field` = "color" and + // `max_count` = 3, and the second CrowdingSpec has `field` = "size" and + // `max_count` = 2, then after 3 documents that share the same color AND size + // have been returned, subsequent ones should be + // removed or demoted. + repeated CrowdingSpec crowding_specs = 40 + [(google.api.field_behavior) = OPTIONAL]; + // The session resource name. Optional. // // Session allows users to do multi-turn /search API calls or coordination @@ -1204,10 +1473,6 @@ message SearchRequest { // Call /answer API with the session ID generated in the first call. // Here, the answer generation happens in the context of the search // results from the first search call. - // - // Multi-turn Search feature is currently at private GA stage. Please use - // v1alpha or v1beta version instead before we launch this feature to public - // GA. Or ask for allowlisting through Google Support team. string session = 41 [(google.api.resource_reference) = { type: "discoveryengine.googleapis.com/Session" }]; @@ -1217,13 +1482,28 @@ message SearchRequest { // Can be used only when `session` is set. SessionSpec session_spec = 42; - // The relevance threshold of the search results. + // The global relevance threshold of the search results. // - // Default to Google defined threshold, leveraging a balance of + // Defaults to Google defined threshold, leveraging a balance of // precision and recall to deliver both highly accurate results and // comprehensive coverage of relevant information. + // + // If more granular relevance filtering is required, use the + // `relevance_filter_spec` instead. + // + // This feature is not supported for healthcare search. RelevanceThreshold relevance_threshold = 44; + // Optional. The granular relevance filtering specification. + // + // If not specified, the global `relevance_threshold` will be used for all + // sub-searches. If specified, this overrides the global + // `relevance_threshold` to use thresholds on a per sub-search basis. + // + // This feature is currently supported only for custom and site search. + RelevanceFilterSpec relevance_filter_spec = 86 + [(google.api.field_behavior) = OPTIONAL]; + // The specification for personalization. // // Notice that if both @@ -1235,6 +1515,28 @@ message SearchRequest { // overrides // [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]. PersonalizationSpec personalization_spec = 46; + + // Optional. The specification for returning the relevance score. + RelevanceScoreSpec relevance_score_spec = 52 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. SearchAddonSpec is used to disable add-ons for search as per new + // repricing model. + // This field is only supported for search requests. + SearchAddonSpec search_addon_spec = 62 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional configuration for the Custom Ranking feature. + CustomRankingParams custom_ranking_params = 64 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The entity for customers that may run multiple different + // entities, domains, sites or regions, for example, "Google US", "Google + // Ads", "Waymo", "google.com", "youtube.com", etc. If this is set, it should + // be exactly matched with + // [UserEvent.entity][google.cloud.discoveryengine.v1beta.UserEvent.entity] to + // get search results boosted by entity. + string entity = 66 [(google.api.field_behavior) = OPTIONAL]; } // Response message for @@ -1243,64 +1545,77 @@ message SearchRequest { message SearchResponse { // Represents the search results. message SearchResult { - // [Document.id][google.cloud.discoveryengine.v1beta.Document.id] of the - // searched [Document][google.cloud.discoveryengine.v1beta.Document]. - string id = 1; - - // The document data snippet in the search response. Only fields that are - // marked as `retrievable` are populated. - Document document = 2; - - // The chunk data in the search response if the - // [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] - // is set to - // [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. - Chunk chunk = 18; - - // Google provided available scores. - map model_scores = 4; - // A set of ranking signals. message RankSignals { - reserved 5; + // Custom clearbox signal represented by name and value pair. + message CustomSignal { + // Optional. Name of the signal. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Float value representing the ranking signal (e.g. 1.25 for + // BM25). + float value = 2 [(google.api.field_behavior) = OPTIONAL]; + } - // Keyword matching adjustment. + // Optional. Keyword matching adjustment. optional float keyword_similarity_score = 1 [(google.api.field_behavior) = OPTIONAL]; - // Semantic relevance adjustment. + + // Optional. Semantic relevance adjustment. optional float relevance_score = 2 [(google.api.field_behavior) = OPTIONAL]; - // Semantic similarity adjustment. + + // Optional. Semantic similarity adjustment. optional float semantic_similarity_score = 3 [(google.api.field_behavior) = OPTIONAL]; - // Predicted conversion rate adjustment as a rank. + + // Optional. Predicted conversion rate adjustment as a rank. optional float pctr_rank = 4 [(google.api.field_behavior) = OPTIONAL]; - // Topicality adjustment as a rank. + + // Optional. Topicality adjustment as a rank. optional float topicality_rank = 6 [(google.api.field_behavior) = OPTIONAL]; - // Age of the document in hours. + + // Optional. Age of the document in hours. optional float document_age = 7 [(google.api.field_behavior) = OPTIONAL]; - // Combined custom boosts for a doc. + + // Optional. Combined custom boosts for a doc. optional float boosting_factor = 8 [(google.api.field_behavior) = OPTIONAL]; - // The default rank of the result. + // Optional. The default rank of the result. float default_rank = 32 [(google.api.field_behavior) = OPTIONAL]; - // Custom clearbox signal represented by name and value pair. - message CustomSignal { - // Name of the signal. - string name = 1 [(google.api.field_behavior) = OPTIONAL]; - // Float value representing the ranking signal (e.g. 1.25 for BM25). - float value = 2 [(google.api.field_behavior) = OPTIONAL]; - } - - // A list of custom clearbox signals. + // Optional. A list of custom clearbox signals. repeated CustomSignal custom_signals = 33 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of precomputed expression results for a given + // document, in the same order as requested in + // `SearchRequest.custom_ranking_params.expressions_to_precompute`. + repeated float precomputed_expression_values = 34 + [(google.api.field_behavior) = OPTIONAL]; } - // A set of ranking signals associated with the result. + // [Document.id][google.cloud.discoveryengine.v1beta.Document.id] of the + // searched [Document][google.cloud.discoveryengine.v1beta.Document]. + string id = 1; + + // The document data snippet in the search response. Only fields that are + // marked as `retrievable` are populated. + Document document = 2; + + // The chunk data in the search response if the + // [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.search_result_mode] + // is set to + // [CHUNKS][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. + Chunk chunk = 18; + + // Output only. Google provided available scores. + map model_scores = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. A set of ranking signals associated with the result. RankSignals rank_signals = 7 [(google.api.field_behavior) = OPTIONAL]; } @@ -1401,6 +1716,10 @@ message SearchResponse { // Page identifier. string page_identifier = 2; + + // Output only. Stores indexes of blobattachments linked to this chunk. + repeated int64 blob_attachment_indexes = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Title of the document. @@ -1425,6 +1744,38 @@ message SearchResponse { repeated ChunkContent chunk_contents = 4; } + // Stores binarydata attached to text answer, e.g. image, video, audio, etc. + message BlobAttachment { + // Stores type and data of the blob. + message Blob { + // Output only. The media type (MIME type) of the generated data. + string mime_type = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Raw bytes. + bytes data = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Defines the attribution type of the blob. + enum AttributionType { + // Unspecified attribution type. + ATTRIBUTION_TYPE_UNSPECIFIED = 0; + + // The attachment data is from the corpus. + CORPUS = 1; + + // The attachment data is generated by the model through code + // generation. + GENERATED = 2; + } + + // Output only. The blob data. + Blob data = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The attribution type of the blob. + AttributionType attribution_type = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + // Summary with metadata information. message SummaryWithMetadata { // Summary text with no citation information. @@ -1435,6 +1786,10 @@ message SearchResponse { // Document References. repeated Reference references = 3; + + // Output only. Store multimodal data for answer enhancement. + repeated BlobAttachment blob_attachments = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // An Enum for summary-skipped reasons. @@ -1502,6 +1857,11 @@ message SearchResponse { // [SearchRequest.ContentSearchSpec.SummarySpec.ignore_non_answer_seeking_query] // is set to `true`. NON_SUMMARY_SEEKING_QUERY_IGNORED_V2 = 9; + + // The time out case. + // + // Google skips the summary if the time out. + TIME_OUT = 10; } // The summary content. @@ -1668,6 +2028,9 @@ message SearchResponse { // Rewritten input query minus the extracted filters. string rewritten_query = 2; + // The classified intents from the input query. + repeated string classified_intents = 5; + // The filters that were extracted from the input query represented in a // structured form. StructuredExtractedFilter structured_extracted_filter = 3; @@ -1718,6 +2081,18 @@ message SearchResponse { repeated SearchResult search_results = 2; } + // Semantic state of the search response. + enum SemanticState { + // Default value. Should not be used. + SEMANTIC_STATE_UNSPECIFIED = 0; + + // Semantic search was disabled for this search response. + DISABLED = 1; + + // Semantic search was enabled for this search response. + ENABLED = 2; + } + // A list of matched documents. The order represents the ranking. repeated SearchResult results = 1; @@ -1761,6 +2136,13 @@ message SearchResponse { // Otherwise the original query is used for search. string corrected_query = 7; + // Corrected query with low confidence, AKA did you mean query. + // Compared with corrected_query, this field is set when SpellCorrector + // returned a response, but FPR(full page replacement) is not triggered + // because the corrction is of low confidence(eg, reversed because there are + // matches of the original query in document corpus). + string suggested_query = 24; + // A summary as part of the search results. // This field is only returned if // [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.summary_spec] @@ -1775,9 +2157,11 @@ message SearchResponse { // Query expansion information for the returned results. QueryExpansionInfo query_expansion_info = 14; - // Natural language query understanding information for the returned results. + // Output only. Natural language query understanding information for the + // returned results. NaturalLanguageQueryUnderstandingInfo - natural_language_query_understanding_info = 15; + natural_language_query_understanding_info = 15 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Session information. // @@ -1789,4 +2173,10 @@ message SearchResponse { // A list of One Box results. There can be multiple One Box results of // different types. repeated OneBoxResult one_box_results = 20; + + // Promotions for site search. + repeated SearchLinkPromotion search_link_promotions = 23; + + // Output only. Indicates the semantic state of the search response. + SemanticState semantic_state = 36 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_tuning_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_tuning_service.proto index 4f31a41e5115..527a79bcc2ab 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_tuning_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/search_tuning_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,7 +39,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service SearchTuningService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Trains a custom model. rpc TrainCustomModel(TrainCustomModelRequest) diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config.proto index 738d67bbd620..209d921f9dbc 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -170,9 +170,8 @@ message ServingConfig { // The ranking expression controls the customized ranking on retrieval // documents. To leverage this, document embedding is required. The ranking // expression setting in ServingConfig applies to all search requests served - // by the serving config. However, if - // [SearchRequest.ranking_expression][google.cloud.discoveryengine.v1beta.SearchRequest.ranking_expression] - // is specified, it overrides the ServingConfig ranking expression. + // by the serving config. However, if `SearchRequest.ranking_expression` is + // specified, it overrides the ServingConfig ranking expression. // // The ranking expression is a single function or multiple functions that are // joined by "+". @@ -274,6 +273,11 @@ message ServingConfig { // Maximum number of specifications is 100. repeated string ignore_control_ids = 19; + // Condition promote specifications. + // + // Maximum number of specifications is 100. + repeated string promote_control_ids = 26; + // The specification for personalization spec. // // Notice that if both @@ -285,4 +289,44 @@ message ServingConfig { // overrides // [ServingConfig.personalization_spec][google.cloud.discoveryengine.v1beta.ServingConfig.personalization_spec]. SearchRequest.PersonalizationSpec personalization_spec = 25; + + // Optional. The specification for answer generation. + AnswerGenerationSpec answer_generation_spec = 27 + [(google.api.field_behavior) = OPTIONAL]; +} + +// The specification for answer generation. +message AnswerGenerationSpec { + // The specification for user defined classifier. + message UserDefinedClassifierSpec { + // Optional. Whether or not to enable and include user defined classifier. + bool enable_user_defined_classifier = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The preamble to be used for the user defined classifier. + string preamble = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The model id to be used for the user defined classifier. + string model_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The task marker to be used for the user defined classifier. + string task_marker = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The top-p value to be used for the user defined classifier. + double top_p = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The top-k value to be used for the user defined classifier. + int64 top_k = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The temperature value to be used for the user defined + // classifier. + double temperature = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The seed value to be used for the user defined classifier. + int32 seed = 8 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. The specification for user specified classifier spec. + UserDefinedClassifierSpec user_defined_classifier_spec = 1 + [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config_service.proto index 8cd3efefb2d1..c1ed948cbe6d 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/serving_config_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/discoveryengine/v1beta/serving_config.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; @@ -37,7 +38,52 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service ServingConfigService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; + + // Creates a ServingConfig. + // + // Note: The Google Cloud console works only with the default serving config. + // Additional ServingConfigs can be created and managed only via the API. + // + // A maximum of 100 + // [ServingConfig][google.cloud.discoveryengine.v1beta.ServingConfig]s are + // allowed in an [Engine][google.cloud.discoveryengine.v1beta.Engine], + // otherwise a RESOURCE_EXHAUSTED error is returned. + rpc CreateServingConfig(CreateServingConfigRequest) returns (ServingConfig) { + option (google.api.http) = { + post: "/v1beta/{parent=projects/*/locations/*/dataStores/*}/servingConfigs" + body: "serving_config" + additional_bindings { + post: "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/servingConfigs" + body: "serving_config" + } + additional_bindings { + post: "/v1beta/{parent=projects/*/locations/*/collections/*/engines/*}/servingConfigs" + body: "serving_config" + } + }; + option (google.api.method_signature) = + "parent,serving_config,serving_config_id"; + } + + // Deletes a ServingConfig. + // + // Returns a NOT_FOUND error if the ServingConfig does not exist. + rpc DeleteServingConfig(DeleteServingConfigRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta/{name=projects/*/locations/*/dataStores/*/servingConfigs/*}" + additional_bindings { + delete: "/v1beta/{name=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}" + } + additional_bindings { + delete: "/v1beta/{name=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}" + } + }; + option (google.api.method_signature) = "name"; + } // Updates a ServingConfig. // @@ -90,6 +136,28 @@ service ServingConfigService { } } +// Request for CreateServingConfig method. +message CreateServingConfigRequest { + // Required. Full resource name of parent. Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "discoveryengine.googleapis.com/ServingConfig" + } + ]; + + // Required. The ServingConfig to create. + ServingConfig serving_config = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ID to use for the ServingConfig, which will become the final + // component of the ServingConfig's resource name. + // + // This value should be 4-63 characters, and valid characters + // are /[a-zA-Z0-9][a-zA-Z0-9_-]+/. + string serving_config_id = 3 [(google.api.field_behavior) = REQUIRED]; +} + // Request for UpdateServingConfig method. message UpdateServingConfigRequest { // Required. The ServingConfig to update. @@ -105,6 +173,18 @@ message UpdateServingConfigRequest { google.protobuf.FieldMask update_mask = 2; } +// Request for DeleteServingConfig method. +message DeleteServingConfigRequest { + // Required. The resource name of the ServingConfig to delete. Format: + // `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/ServingConfig" + } + ]; +} + // Request for GetServingConfig method. message GetServingConfigRequest { // Required. The resource name of the ServingConfig to get. Format: diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/session.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/session.proto index 98aa630f704c..267f1038c9ed 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/session.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/session.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ package google.cloud.discoveryengine.v1beta; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/discoveryengine/v1beta/answer.proto"; +import "google/cloud/discoveryengine/v1beta/assist_answer.proto"; import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; @@ -37,6 +38,7 @@ message Session { pattern: "projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}" pattern: "projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}" pattern: "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}" + pattern: "projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/collaborativeProjects/{collaborative_project}/sessions/{session}" plural: "sessions" singular: "session" }; @@ -67,12 +69,24 @@ message Session { // session. Answer detailed_answer = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. In + // [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1beta.ConversationalSearchService.GetSession] + // API, if + // [GetSessionRequest.include_answer_details][google.cloud.discoveryengine.v1beta.GetSessionRequest.include_answer_details] + // is set to true, this field will be populated when getting assistant + // session. + AssistAnswer detailed_assist_answer = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Optional. Represents metadata related to the query config, for example // LLM model and version used, model parameters (temperature, grounding // parameters, etc.). The prefix "google." is reserved for Google-developed // functionality. map query_config = 16 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Indicates whether this turn is a live turn. + bool live = 20 [(google.api.field_behavior) = OPTIONAL]; } // Enumeration of the state of the session. @@ -103,6 +117,10 @@ message Session { // Turns. repeated Turn turns = 4; + // Optional. The labels for the session. + // Can be set as filter in ListSessionsRequest. + repeated string labels = 9 [(google.api.field_behavior) = OPTIONAL]; + // Output only. The time the session started. google.protobuf.Timestamp start_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -114,6 +132,13 @@ message Session { // Optional. Whether the session is pinned, pinned session will be displayed // on the top of the session list. bool is_pinned = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Full resource name of an in-progress AsyncAssist operation for + // this session, e.g. + // `projects/*/locations/*/collections/*/engines/*/sessions/*/operations/*`. + // Set when the operation starts and cleared when it finishes. + string pending_async_assist_operation_id = 22 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Defines a user inputed query. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/session_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/session_service.proto index c6530edef2ef..c53c73de4400 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/session_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/session_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,7 +37,10 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service SessionService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.assist.readwrite," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Creates a Session. // diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/site_search_engine.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/site_search_engine.proto index aceb2b529edd..92c8e1d9a760 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/site_search_engine.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/site_search_engine.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -100,6 +100,12 @@ message TargetSite { // 1. target site deleted if unindexing is successful; // 2. state reverts to SUCCEEDED if the unindexing fails. DELETING = 4; + + // The target site change is pending but cancellable. + CANCELLABLE = 5; + + // The target site change is cancelled. + CANCELLED = 6; } // Output only. The fully qualified resource name of the target site. @@ -118,13 +124,13 @@ message TargetSite { // excluded. Type type = 3; - // Input only. If set to false, a uri_pattern is generated to include all - // pages whose address contains the provided_uri_pattern. If set to true, an + // Immutable. If set to false, a uri_pattern is generated to include all pages + // whose address contains the provided_uri_pattern. If set to true, an // uri_pattern is generated to try to be an exact match of the // provided_uri_pattern or just the specific page if the provided_uri_pattern // is a specific one. provided_uri_pattern is always normalized to // generate the URI pattern to be used by the search engine. - bool exact_match = 6 [(google.api.field_behavior) = INPUT_ONLY]; + bool exact_match = 6 [(google.api.field_behavior) = IMMUTABLE]; // Output only. This is system-generated based on the provided_uri_pattern. string generated_uri_pattern = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto index cd52cdb1f39d..a694625503ed 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/site_search_engine_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,7 +38,9 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service SiteSearchEngineService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Gets the // [SiteSearchEngine][google.cloud.discoveryengine.v1beta.SiteSearchEngine]. @@ -186,6 +188,9 @@ service SiteSearchEngineService { rpc FetchSitemaps(FetchSitemapsRequest) returns (FetchSitemapsResponse) { option (google.api.http) = { get: "/v1beta/{parent=projects/*/locations/*/dataStores/*/siteSearchEngine}/sitemaps:fetch" + additional_bindings { + get: "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/sitemaps:fetch" + } }; option (google.api.method_signature) = "parent"; } @@ -706,9 +711,7 @@ message RecrawlUrisRequest { // `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. + // Optional. Credential id to use for crawling. string site_credential = 5 [(google.api.field_behavior) = OPTIONAL]; } @@ -774,6 +777,12 @@ message RecrawlUrisMetadata { // Total number of unique URIs in the request that have invalid format. int32 invalid_uris_count = 8; + // URIs that have no index meta tag. Sample limited to 1000. + repeated string noindex_uris = 11; + + // Total number of URIs that have no index meta tag. + int32 noindex_uris_count = 12; + // Unique URIs in the request that don't match any TargetSite in the // DataStore, only match TargetSites that haven't been fully indexed, or match // a TargetSite with type EXCLUDE. Sample limited to 1000. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event.proto index 0c632cf92128..08b77cf1cb33 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ package google.cloud.discoveryengine.v1beta; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/discoveryengine/v1beta/common.proto"; +import "google/cloud/discoveryengine/v1beta/feedback.proto"; import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; @@ -43,7 +44,6 @@ message UserEvent { // * `view-item-list`: View of a panel or ordered list of Documents. // * `view-home-page`: View of the home page. // * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - // * `add-feedback`: Add a user feedback. // // Retail-related values: // @@ -54,8 +54,25 @@ message UserEvent { // // * `media-play`: Start/resume watching a video, playing a song, etc. // * `media-complete`: Finished or stopped midway through a video, song, etc. + // + // Custom conversion value: + // + // * `conversion`: Customer defined conversion event. string event_type = 1 [(google.api.field_behavior) = REQUIRED]; + // Optional. Conversion type. + // + // Required if + // [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type] + // is `conversion`. This is a customer-defined conversion name in lowercase + // letters or numbers separated by "-", such as "watch", "good-visit" etc. + // + // Do not set the field if + // [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type] + // is not `conversion`. This mixes the custom conversion event with predefined + // events like `search`, `view-item` etc. + string conversion_type = 21 [(google.api.field_behavior) = OPTIONAL]; + // Required. A unique identifier for tracking visitors. // // For example, this could be implemented with an HTTP cookie, which should be @@ -162,8 +179,9 @@ message UserEvent { // to this field. string attribution_token = 8; - // The filter syntax consists of an expression language for constructing a - // predicate from one or more fields of the documents being filtered. + // Optional. The filter syntax consists of an expression language for + // constructing a predicate from one or more fields of the documents being + // filtered. // // One example is for `search` events, the associated // [SearchRequest][google.cloud.discoveryengine.v1beta.SearchRequest] may @@ -179,7 +197,7 @@ message UserEvent { // // The value must be a UTF-8 encoded string with a length limit of 1,000 // characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - string filter = 9; + string filter = 9 [(google.api.field_behavior) = OPTIONAL]; // List of [Document][google.cloud.discoveryengine.v1beta.Document]s // associated with this user event. @@ -263,6 +281,16 @@ message UserEvent { // Optional. List of panels associated with this event. // Used for page-level impression data. repeated PanelInfo panels = 22 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This field is optional except for the `add-feedback` event types. + Feedback feedback = 23 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Represents the entity for customers that may run multiple + // different entities, domains, sites or regions, for example, `Google US`, + // `Google Ads`, `Waymo`, `google.com`, `youtube.com`, etc. We recommend that + // you set `entity` to get better per-entity search, completion, and + // prediction results. + string entity = 25 [(google.api.field_behavior) = OPTIONAL]; } // Detailed page information. @@ -465,6 +493,15 @@ message DocumentInfo { // Output only. Whether the referenced Document can be found in the data // store. bool joined = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The conversion value associated with this Document. + // Must be set if + // [UserEvent.event_type][google.cloud.discoveryengine.v1beta.UserEvent.event_type] + // is "conversion". + // + // For example, a value of 1000 signifies that 1000 seconds were spent viewing + // a Document for the `watch` conversion type. + optional float conversion_value = 7 [(google.api.field_behavior) = OPTIONAL]; } // Detailed panel information associated with a user event. diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event_service.proto index 5243661b67a9..f50127ac5b1f 100644 --- a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event_service.proto +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_event_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -39,7 +39,10 @@ option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; service UserEventService { option (google.api.default_host) = "discoveryengine.googleapis.com"; option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.assist.readwrite," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; // Writes a single user event. rpc WriteUserEvent(WriteUserEventRequest) returns (UserEvent) { @@ -110,6 +113,10 @@ service UserEventService { post: "/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:import" body: "*" } + additional_bindings { + post: "/v1beta/{parent=projects/*/locations/*}/userEvents:import" + body: "*" + } }; option (google.longrunning.operation_info) = { response_type: "google.cloud.discoveryengine.v1beta.ImportUserEventsResponse" @@ -125,11 +132,11 @@ message WriteUserEventRequest { // [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the // format is: // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - // If the write user event action is applied in [Location][] level, for - // example, the event with - // [Document][google.cloud.discoveryengine.v1beta.Document] across multiple - // [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the format is: - // `projects/{project}/locations/{location}`. + // If the write user event action is applied in + // [Location][google.cloud.location.Location] level, for example, the event + // with [Document][google.cloud.discoveryengine.v1beta.Document] across + // multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the + // format is: `projects/{project}/locations/{location}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -147,8 +154,16 @@ message WriteUserEventRequest { // Request message for CollectUserEvent method. message CollectUserEventRequest { - // Required. The parent DataStore resource name, such as + // Required. The parent resource name. + // If the collect user event action is applied in + // [DataStore][google.cloud.discoveryengine.v1beta.DataStore] level, the + // format is: // `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. + // If the collect user event action is applied in + // [Location][google.cloud.location.Location] level, for example, the event + // with [Document][google.cloud.discoveryengine.v1beta.Document] across + // multiple [DataStore][google.cloud.discoveryengine.v1beta.DataStore], the + // format is: `projects/{project}/locations/{location}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_license.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_license.proto new file mode 100644 index 000000000000..02cd62b50a42 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_license.proto @@ -0,0 +1,110 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.discoveryengine.v1beta; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "UserLicenseProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// User License information assigned by the admin. +message UserLicense { + // License assignment state enumeration. + enum LicenseAssignmentState { + // Default value. + LICENSE_ASSIGNMENT_STATE_UNSPECIFIED = 0; + + // License assigned to the user. + ASSIGNED = 1; + + // No license assigned to the user. + // Deprecated, translated to NO_LICENSE. + UNASSIGNED = 2; + + // No license assigned to the user. + NO_LICENSE = 3; + + // User attempted to login but no license assigned to the user. + // This state is only used for no user first time login attempt but cannot + // get license assigned. + // Users already logged in but cannot get license assigned will be assigned + // NO_LICENSE state(License could be unassigned by admin). + NO_LICENSE_ATTEMPTED_LOGIN = 4; + + // User is blocked from assigning a license. + BLOCKED = 5; + } + + // Required. Immutable. The user principal of the User, could be email address + // or other prinical identifier. This field is immutable. Admin assign + // licenses based on the user principal. + string user_principal = 1 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = REQUIRED + ]; + + // Optional. The user profile. + // We user user full name(First name + Last name) as user profile. + string user_profile = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. License assignment state of the user. + // If the user is assigned with a license config, the user login will be + // assigned with the license; + // If the user's license assignment state is unassigned or unspecified, no + // license config will be associated to the user; + LicenseAssignmentState license_assignment_state = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The full resource name of the Subscription(LicenseConfig) + // assigned to the user. + string license_config = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/LicenseConfig" + } + ]; + + // Output only. User created timestamp. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. User update timestamp. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. User last logged in time. + // If the user has not logged in yet, this field will be empty. + google.protobuf.Timestamp last_login_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Stats about users' licenses. +message LicenseConfigUsageStats { + // Required. The LicenseConfig name. + string license_config = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The number of licenses used. + int64 used_license_count = 2 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_license_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_license_service.proto new file mode 100644 index 000000000000..acd2c99d9a27 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_license_service.proto @@ -0,0 +1,252 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.discoveryengine.v1beta; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/user_license.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; +import "google/rpc/status.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "UserLicenseServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Service for managing User Licenses. +service UserLicenseService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; + + // Lists the User Licenses. + rpc ListUserLicenses(ListUserLicensesRequest) + returns (ListUserLicensesResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=projects/*/locations/*/userStores/*}/userLicenses" + }; + option (google.api.method_signature) = "parent"; + } + + // Lists all the + // [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats]s + // associated with the project. + rpc ListLicenseConfigsUsageStats(ListLicenseConfigsUsageStatsRequest) + returns (ListLicenseConfigsUsageStatsResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=projects/*/locations/*/userStores/*}/licenseConfigsUsageStats" + }; + option (google.api.method_signature) = "parent"; + } + + // Updates the User License. + // This method is used for batch assign/unassign licenses to users. + rpc BatchUpdateUserLicenses(BatchUpdateUserLicensesRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta/{parent=projects/*/locations/*/userStores/*}:batchUpdateUserLicenses" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse" + metadata_type: "google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata" + }; + } +} + +// Request message for +// [UserLicenseService.ListUserLicenses][google.cloud.discoveryengine.v1beta.UserLicenseService.ListUserLicenses]. +message ListUserLicensesRequest { + // Required. The parent + // [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name, + // format: + // `projects/{project}/locations/{location}/userStores/{user_store_id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/UserStore" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, defaults to 10. The maximum value is 50; values + // above 50 will be coerced to 50. + // + // If this field is negative, an INVALID_ARGUMENT error is returned. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListUserLicenses` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListUserLicenses` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter for the list request. + // + // Supported fields: + // + // * `license_assignment_state` + // * `user_principal` + // * + // Examples: + // + // * `license_assignment_state = ASSIGNED` to list assigned user licenses. + // * `license_assignment_state = NO_LICENSE` to list not licensed users. + // * `license_assignment_state = NO_LICENSE_ATTEMPTED_LOGIN` to list users + // who attempted login but no license assigned. + // * `license_assignment_state != NO_LICENSE_ATTEMPTED_LOGIN` to filter + // out users who attempted login but no license assigned. + // * `user_principal = user1@example.com` to list user license for + // `user1@example.com`. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The order in which the + // [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s are listed. + // The value must be a comma-separated list of fields. Default sorting order + // is ascending. To specify descending order for a field, append a " desc" + // suffix. Redundant space characters in the syntax are insignificant. + // + // Supported fields (only `user_principal` is supported for now): + // + // * `user_principal` + // + // If not set, the default ordering is by `user_principal`. + // + // Examples: + // + // * `user_principal` to order by `user_principal` in ascending order. + // * `user_principal desc` to order by `user_principal` in descending order. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [UserLicenseService.ListUserLicenses][google.cloud.discoveryengine.v1beta.UserLicenseService.ListUserLicenses]. +message ListUserLicensesResponse { + // All the customer's + // [UserLicense][google.cloud.discoveryengine.v1beta.UserLicense]s. + repeated UserLicense user_licenses = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. If + // this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for +// [UserLicenseService.ListLicenseConfigsUsageStats][google.cloud.discoveryengine.v1beta.UserLicenseService.ListLicenseConfigsUsageStats] +// method. +message ListLicenseConfigsUsageStatsRequest { + // Required. The parent branch resource name, such as + // `projects/{project}/locations/{location}/userStores/{user_store_id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/UserStore" + } + ]; +} + +// Response message for +// [UserLicenseService.ListLicenseConfigsUsageStats][google.cloud.discoveryengine.v1beta.UserLicenseService.ListLicenseConfigsUsageStats] +// method. +message ListLicenseConfigsUsageStatsResponse { + // All the customer's + // [LicenseConfigUsageStats][google.cloud.discoveryengine.v1beta.LicenseConfigUsageStats]. + repeated LicenseConfigUsageStats license_config_usage_stats = 1; +} + +// Request message for +// [UserLicenseService.BatchUpdateUserLicenses][google.cloud.discoveryengine.v1beta.UserLicenseService.BatchUpdateUserLicenses] +// method. +message BatchUpdateUserLicensesRequest { + // The inline source for the input config for BatchUpdateUserLicenses + // method. + message InlineSource { + // Required. A list of user licenses to update. Each user license + // must have a valid + // [UserLicense.user_principal][google.cloud.discoveryengine.v1beta.UserLicense.user_principal]. + repeated UserLicense user_licenses = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The source of the input. + oneof source { + // The inline source for the input content for document embeddings. + InlineSource inline_source = 2; + } + + // Required. The parent + // [UserStore][google.cloud.discoveryengine.v1beta.UserStore] resource name, + // format: + // `projects/{project}/locations/{location}/userStores/{user_store_id}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/UserStore" + } + ]; + + // Optional. If true, if user licenses removed associated license config, the + // user license will be deleted. By default which is false, the user license + // will be updated to unassigned state. + bool delete_unassigned_user_licenses = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Metadata related to the progress of the +// [UserLicenseService.BatchUpdateUserLicenses][google.cloud.discoveryengine.v1beta.UserLicenseService.BatchUpdateUserLicenses] +// operation. This will be returned by the google.longrunning.Operation.metadata +// field. +message BatchUpdateUserLicensesMetadata { + // Operation create time. + google.protobuf.Timestamp create_time = 1; + + // Operation last update time. If the operation is done, this is also the + // finish time. + google.protobuf.Timestamp update_time = 2; + + // Count of user licenses successfully updated. + int64 success_count = 3; + + // Count of user licenses that failed to be updated. + int64 failure_count = 4; +} + +// Response message for +// [UserLicenseService.BatchUpdateUserLicenses][google.cloud.discoveryengine.v1beta.UserLicenseService.BatchUpdateUserLicenses] +// method. +message BatchUpdateUserLicensesResponse { + // UserLicenses successfully updated. + repeated UserLicense user_licenses = 1; + + // A sample of errors encountered while processing the request. + repeated google.rpc.Status error_samples = 2; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_store.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_store.proto new file mode 100644 index 000000000000..29fae193265f --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_store.proto @@ -0,0 +1,79 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.discoveryengine.v1beta; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "UserStoreProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Configures metadata that is used for End User entities. +message UserStore { + option (google.api.resource) = { + type: "discoveryengine.googleapis.com/UserStore" + pattern: "projects/{project}/locations/{location}/userStores/{user_store}" + }; + + // Immutable. The full resource name of the User Store, in the format of + // `projects/{project}/locations/{location}/userStores/{user_store}`. + // + // This field must be a UTF-8 encoded string with a length limit of 1024 + // characters. + string name = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // The display name of the User Store. + string display_name = 2; + + // Optional. The default subscription + // [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] for the + // UserStore, if + // [UserStore.enable_license_auto_register][google.cloud.discoveryengine.v1beta.UserStore.enable_license_auto_register] + // is true, new users will automatically register under the default + // subscription. + // + // If default + // [LicenseConfig][google.cloud.discoveryengine.v1beta.LicenseConfig] doesn't + // have remaining license seats left, new users will not be assigned with + // license and will be blocked for Vertex AI Search features. This is used if + // `license_assignment_tier_rules` is not configured. + string default_license_config = 5 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/LicenseConfig" + } + ]; + + // Optional. Whether to enable license auto register for users in this User + // Store. If true, new users will automatically register under the default + // license config as long as the default license config has seats left. + bool enable_license_auto_register = 6 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether to enable license auto update for users in this User + // Store. If true, users with expired licenses will automatically be updated + // to use the default license config as long as the default license config has + // seats left. + bool enable_expired_license_auto_update = 7 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_store_service.proto b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_store_service.proto new file mode 100644 index 000000000000..bb3736386c03 --- /dev/null +++ b/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/proto/google/cloud/discoveryengine/v1beta/user_store_service.proto @@ -0,0 +1,87 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.discoveryengine.v1beta; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/discoveryengine/v1beta/user_store.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.DiscoveryEngine.V1Beta"; +option go_package = "cloud.google.com/go/discoveryengine/apiv1beta/discoveryenginepb;discoveryenginepb"; +option java_multiple_files = true; +option java_outer_classname = "UserStoreServiceProto"; +option java_package = "com.google.cloud.discoveryengine.v1beta"; +option objc_class_prefix = "DISCOVERYENGINE"; +option php_namespace = "Google\\Cloud\\DiscoveryEngine\\V1beta"; +option ruby_package = "Google::Cloud::DiscoveryEngine::V1beta"; + +// Service for managing User Stores. +service UserStoreService { + option (google.api.default_host) = "discoveryengine.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/discoveryengine.readwrite," + "https://www.googleapis.com/auth/discoveryengine.serving.readwrite"; + + // Gets the User Store. + rpc GetUserStore(GetUserStoreRequest) returns (UserStore) { + option (google.api.http) = { + get: "/v1beta/{name=projects/*/locations/*/userStores/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the User Store. + rpc UpdateUserStore(UpdateUserStoreRequest) returns (UserStore) { + option (google.api.http) = { + patch: "/v1beta/{user_store.name=projects/*/locations/*/userStores/*}" + body: "user_store" + }; + option (google.api.method_signature) = "user_store,update_mask"; + } +} + +// Request message for +// [UserStoreService.GetUserStore][google.cloud.discoveryengine.v1beta.UserStoreService.GetUserStore] +message GetUserStoreRequest { + // Required. The name of the User Store to get. + // Format: + // `projects/{project}/locations/{location}/userStores/{user_store_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "discoveryengine.googleapis.com/UserStore" + } + ]; +} + +// Request message for +// [UserStoreService.UpdateUserStore][google.cloud.discoveryengine.v1beta.UserStoreService.UpdateUserStore] +// method. +message UpdateUserStoreRequest { + // Required. The User Store to update. + // Format: + // `projects/{project}/locations/{location}/userStores/{user_store_id}` + UserStore user_store = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..fb805f41c91a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AclConfigService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1beta.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.AclConfigServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AclConfigServiceClient aclConfigServiceClient = + AclConfigServiceClient.create(aclConfigServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_AclConfigService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..6f99ddc18d67 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AclConfigService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1beta.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.AclConfigServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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.newBuilder().setEndpoint(myEndpoint).build(); + AclConfigServiceClient aclConfigServiceClient = + AclConfigServiceClient.create(aclConfigServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_AclConfigService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..0a26b171fed0 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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_AclConfigService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.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_v1beta_generated_AclConfigService_Create_UseHttpJsonTransport_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengateconnectiontype/SyncGetGoldengateConnectionTypeGoldengateconnectiontypename.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/getaclconfig/AsyncGetAclConfig.java similarity index 50% rename from java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengateconnectiontype/SyncGetGoldengateConnectionTypeGoldengateconnectiontypename.java rename to java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/getaclconfig/AsyncGetAclConfig.java index 11670afd3851..71e4e3e26cb0 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengateconnectiontype/SyncGetGoldengateConnectionTypeGoldengateconnectiontypename.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/getaclconfig/AsyncGetAclConfig.java @@ -14,32 +14,37 @@ * limitations under the License. */ -package com.google.cloud.oracledatabase.v1.samples; +package com.google.cloud.discoveryengine.v1beta.samples; -// [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnectionType_Goldengateconnectiontypename_sync] -import com.google.cloud.oracledatabase.v1.GoldengateConnectionType; -import com.google.cloud.oracledatabase.v1.GoldengateConnectionTypeName; -import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +// [START discoveryengine_v1beta_generated_AclConfigService_GetAclConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.AclConfig; +import com.google.cloud.discoveryengine.v1beta.AclConfigName; +import com.google.cloud.discoveryengine.v1beta.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest; -public class SyncGetGoldengateConnectionTypeGoldengateconnectiontypename { +public class AsyncGetAclConfig { public static void main(String[] args) throws Exception { - syncGetGoldengateConnectionTypeGoldengateconnectiontypename(); + asyncGetAclConfig(); } - public static void syncGetGoldengateConnectionTypeGoldengateconnectiontypename() - throws Exception { + public static void asyncGetAclConfig() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - GoldengateConnectionTypeName name = - GoldengateConnectionTypeName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]"); - GoldengateConnectionType response = oracleDatabaseClient.getGoldengateConnectionType(name); + try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) { + GetAclConfigRequest request = + GetAclConfigRequest.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + ApiFuture future = + aclConfigServiceClient.getAclConfigCallable().futureCall(request); + // Do something. + AclConfig response = future.get(); } } } -// [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnectionType_Goldengateconnectiontypename_sync] +// [END discoveryengine_v1beta_generated_AclConfigService_GetAclConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/getaclconfig/SyncGetAclConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/getaclconfig/SyncGetAclConfig.java new file mode 100644 index 000000000000..f3c3a4d4c9f8 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/getaclconfig/SyncGetAclConfig.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AclConfigService_GetAclConfig_sync] +import com.google.cloud.discoveryengine.v1beta.AclConfig; +import com.google.cloud.discoveryengine.v1beta.AclConfigName; +import com.google.cloud.discoveryengine.v1beta.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.GetAclConfigRequest; + +public class SyncGetAclConfig { + + public static void main(String[] args) throws Exception { + syncGetAclConfig(); + } + + public static void syncGetAclConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) { + GetAclConfigRequest request = + GetAclConfigRequest.newBuilder() + .setName(AclConfigName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + AclConfig response = aclConfigServiceClient.getAclConfig(request); + } + } +} +// [END discoveryengine_v1beta_generated_AclConfigService_GetAclConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/getaclconfig/SyncGetAclConfigAclconfigname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/getaclconfig/SyncGetAclConfigAclconfigname.java new file mode 100644 index 000000000000..d15d84e5910e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/getaclconfig/SyncGetAclConfigAclconfigname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AclConfigService_GetAclConfig_Aclconfigname_sync] +import com.google.cloud.discoveryengine.v1beta.AclConfig; +import com.google.cloud.discoveryengine.v1beta.AclConfigName; +import com.google.cloud.discoveryengine.v1beta.AclConfigServiceClient; + +public class SyncGetAclConfigAclconfigname { + + public static void main(String[] args) throws Exception { + syncGetAclConfigAclconfigname(); + } + + public static void syncGetAclConfigAclconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) { + AclConfigName name = AclConfigName.of("[PROJECT]", "[LOCATION]"); + AclConfig response = aclConfigServiceClient.getAclConfig(name); + } + } +} +// [END discoveryengine_v1beta_generated_AclConfigService_GetAclConfig_Aclconfigname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/getaclconfig/SyncGetAclConfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/getaclconfig/SyncGetAclConfigString.java new file mode 100644 index 000000000000..55e8b44bc789 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/getaclconfig/SyncGetAclConfigString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AclConfigService_GetAclConfig_String_sync] +import com.google.cloud.discoveryengine.v1beta.AclConfig; +import com.google.cloud.discoveryengine.v1beta.AclConfigName; +import com.google.cloud.discoveryengine.v1beta.AclConfigServiceClient; + +public class SyncGetAclConfigString { + + public static void main(String[] args) throws Exception { + syncGetAclConfigString(); + } + + public static void syncGetAclConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) { + String name = AclConfigName.of("[PROJECT]", "[LOCATION]").toString(); + AclConfig response = aclConfigServiceClient.getAclConfig(name); + } + } +} +// [END discoveryengine_v1beta_generated_AclConfigService_GetAclConfig_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/updateaclconfig/AsyncUpdateAclConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/updateaclconfig/AsyncUpdateAclConfig.java new file mode 100644 index 000000000000..c6945f9d4ef3 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/updateaclconfig/AsyncUpdateAclConfig.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AclConfigService_UpdateAclConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.AclConfig; +import com.google.cloud.discoveryengine.v1beta.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest; + +public class AsyncUpdateAclConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateAclConfig(); + } + + public static void asyncUpdateAclConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) { + UpdateAclConfigRequest request = + UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build(); + ApiFuture future = + aclConfigServiceClient.updateAclConfigCallable().futureCall(request); + // Do something. + AclConfig response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_AclConfigService_UpdateAclConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/updateaclconfig/SyncUpdateAclConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/updateaclconfig/SyncUpdateAclConfig.java new file mode 100644 index 000000000000..af29f5bcc7a4 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservice/updateaclconfig/SyncUpdateAclConfig.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AclConfigService_UpdateAclConfig_sync] +import com.google.cloud.discoveryengine.v1beta.AclConfig; +import com.google.cloud.discoveryengine.v1beta.AclConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.UpdateAclConfigRequest; + +public class SyncUpdateAclConfig { + + public static void main(String[] args) throws Exception { + syncUpdateAclConfig(); + } + + public static void syncUpdateAclConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AclConfigServiceClient aclConfigServiceClient = AclConfigServiceClient.create()) { + UpdateAclConfigRequest request = + UpdateAclConfigRequest.newBuilder().setAclConfig(AclConfig.newBuilder().build()).build(); + AclConfig response = aclConfigServiceClient.updateAclConfig(request); + } + } +} +// [END discoveryengine_v1beta_generated_AclConfigService_UpdateAclConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservicesettings/updateaclconfig/SyncUpdateAclConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservicesettings/updateaclconfig/SyncUpdateAclConfig.java new file mode 100644 index 000000000000..322965a74d1e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/aclconfigservicesettings/updateaclconfig/SyncUpdateAclConfig.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AclConfigServiceSettings_UpdateAclConfig_sync] +import com.google.cloud.discoveryengine.v1beta.AclConfigServiceSettings; +import java.time.Duration; + +public class SyncUpdateAclConfig { + + public static void main(String[] args) throws Exception { + syncUpdateAclConfig(); + } + + public static void syncUpdateAclConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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.Builder aclConfigServiceSettingsBuilder = + AclConfigServiceSettings.newBuilder(); + aclConfigServiceSettingsBuilder + .updateAclConfigSettings() + .setRetrySettings( + aclConfigServiceSettingsBuilder + .updateAclConfigSettings() + .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()); + AclConfigServiceSettings aclConfigServiceSettings = aclConfigServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_AclConfigServiceSettings_UpdateAclConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..daeeddcb5c28 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AssistantService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AssistantServiceSettings assistantServiceSettings = + AssistantServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AssistantServiceClient assistantServiceClient = + AssistantServiceClient.create(assistantServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_AssistantService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..29df326a40ae --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AssistantService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AssistantServiceSettings assistantServiceSettings = + AssistantServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + AssistantServiceClient assistantServiceClient = + AssistantServiceClient.create(assistantServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_AssistantService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..4e9387a34825 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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_AssistantService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AssistantServiceSettings assistantServiceSettings = + AssistantServiceSettings.newHttpJsonBuilder().build(); + AssistantServiceClient assistantServiceClient = + AssistantServiceClient.create(assistantServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_AssistantService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/createassistant/AsyncCreateAssistant.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/createassistant/AsyncCreateAssistant.java new file mode 100644 index 000000000000..8ed37aff4183 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/createassistant/AsyncCreateAssistant.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AssistantService_CreateAssistant_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.Assistant; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest; +import com.google.cloud.discoveryengine.v1beta.EngineName; + +public class AsyncCreateAssistant { + + public static void main(String[] args) throws Exception { + asyncCreateAssistant(); + } + + public static void asyncCreateAssistant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + CreateAssistantRequest request = + CreateAssistantRequest.newBuilder() + .setParent( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setAssistant(Assistant.newBuilder().build()) + .setAssistantId("assistantId-324518759") + .build(); + ApiFuture future = + assistantServiceClient.createAssistantCallable().futureCall(request); + // Do something. + Assistant response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_AssistantService_CreateAssistant_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/createassistant/SyncCreateAssistant.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/createassistant/SyncCreateAssistant.java new file mode 100644 index 000000000000..a2889b973de4 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/createassistant/SyncCreateAssistant.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AssistantService_CreateAssistant_sync] +import com.google.cloud.discoveryengine.v1beta.Assistant; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1beta.CreateAssistantRequest; +import com.google.cloud.discoveryengine.v1beta.EngineName; + +public class SyncCreateAssistant { + + public static void main(String[] args) throws Exception { + syncCreateAssistant(); + } + + public static void syncCreateAssistant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + CreateAssistantRequest request = + CreateAssistantRequest.newBuilder() + .setParent( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setAssistant(Assistant.newBuilder().build()) + .setAssistantId("assistantId-324518759") + .build(); + Assistant response = assistantServiceClient.createAssistant(request); + } + } +} +// [END discoveryengine_v1beta_generated_AssistantService_CreateAssistant_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymenttype/SyncGetGoldengateDeploymentType.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/deleteassistant/AsyncDeleteAssistant.java similarity index 51% rename from java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymenttype/SyncGetGoldengateDeploymentType.java rename to java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/deleteassistant/AsyncDeleteAssistant.java index 4dc15cadf59c..31a7339ec037 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymenttype/SyncGetGoldengateDeploymentType.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/deleteassistant/AsyncDeleteAssistant.java @@ -14,36 +14,40 @@ * limitations under the License. */ -package com.google.cloud.oracledatabase.v1.samples; +package com.google.cloud.discoveryengine.v1beta.samples; -// [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentType_sync] -import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentType; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentTypeName; -import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +// [START discoveryengine_v1beta_generated_AssistantService_DeleteAssistant_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.AssistantName; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest; +import com.google.protobuf.Empty; -public class SyncGetGoldengateDeploymentType { +public class AsyncDeleteAssistant { public static void main(String[] args) throws Exception { - syncGetGoldengateDeploymentType(); + asyncDeleteAssistant(); } - public static void syncGetGoldengateDeploymentType() throws Exception { + public static void asyncDeleteAssistant() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - GetGoldengateDeploymentTypeRequest request = - GetGoldengateDeploymentTypeRequest.newBuilder() + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + DeleteAssistantRequest request = + DeleteAssistantRequest.newBuilder() .setName( - GoldengateDeploymentTypeName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]") + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") .toString()) .build(); - GoldengateDeploymentType response = oracleDatabaseClient.getGoldengateDeploymentType(request); + ApiFuture future = + assistantServiceClient.deleteAssistantCallable().futureCall(request); + // Do something. + future.get(); } } } -// [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentType_sync] +// [END discoveryengine_v1beta_generated_AssistantService_DeleteAssistant_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengateconnectiontype/SyncGetGoldengateConnectionType.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/deleteassistant/SyncDeleteAssistant.java similarity index 51% rename from java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengateconnectiontype/SyncGetGoldengateConnectionType.java rename to java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/deleteassistant/SyncDeleteAssistant.java index 529305f5b570..606dd0a14ca8 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengateconnectiontype/SyncGetGoldengateConnectionType.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/deleteassistant/SyncDeleteAssistant.java @@ -14,36 +14,36 @@ * limitations under the License. */ -package com.google.cloud.oracledatabase.v1.samples; +package com.google.cloud.discoveryengine.v1beta.samples; -// [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnectionType_sync] -import com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest; -import com.google.cloud.oracledatabase.v1.GoldengateConnectionType; -import com.google.cloud.oracledatabase.v1.GoldengateConnectionTypeName; -import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +// [START discoveryengine_v1beta_generated_AssistantService_DeleteAssistant_sync] +import com.google.cloud.discoveryengine.v1beta.AssistantName; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1beta.DeleteAssistantRequest; +import com.google.protobuf.Empty; -public class SyncGetGoldengateConnectionType { +public class SyncDeleteAssistant { public static void main(String[] args) throws Exception { - syncGetGoldengateConnectionType(); + syncDeleteAssistant(); } - public static void syncGetGoldengateConnectionType() throws Exception { + public static void syncDeleteAssistant() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - GetGoldengateConnectionTypeRequest request = - GetGoldengateConnectionTypeRequest.newBuilder() + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + DeleteAssistantRequest request = + DeleteAssistantRequest.newBuilder() .setName( - GoldengateConnectionTypeName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]") + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") .toString()) .build(); - GoldengateConnectionType response = oracleDatabaseClient.getGoldengateConnectionType(request); + assistantServiceClient.deleteAssistant(request); } } } -// [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnectionType_sync] +// [END discoveryengine_v1beta_generated_AssistantService_DeleteAssistant_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/deleteassistant/SyncDeleteAssistantAssistantname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/deleteassistant/SyncDeleteAssistantAssistantname.java new file mode 100644 index 000000000000..f295c3d0dc36 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/deleteassistant/SyncDeleteAssistantAssistantname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AssistantService_DeleteAssistant_Assistantname_sync] +import com.google.cloud.discoveryengine.v1beta.AssistantName; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAssistantAssistantname { + + public static void main(String[] args) throws Exception { + syncDeleteAssistantAssistantname(); + } + + public static void syncDeleteAssistantAssistantname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + assistantServiceClient.deleteAssistant(name); + } + } +} +// [END discoveryengine_v1beta_generated_AssistantService_DeleteAssistant_Assistantname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengateconnectiontype/SyncGetGoldengateConnectionTypeString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/deleteassistant/SyncDeleteAssistantString.java similarity index 55% rename from java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengateconnectiontype/SyncGetGoldengateConnectionTypeString.java rename to java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/deleteassistant/SyncDeleteAssistantString.java index 7451654f75dd..9991cd96f47d 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengateconnectiontype/SyncGetGoldengateConnectionTypeString.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/deleteassistant/SyncDeleteAssistantString.java @@ -14,31 +14,31 @@ * limitations under the License. */ -package com.google.cloud.oracledatabase.v1.samples; +package com.google.cloud.discoveryengine.v1beta.samples; -// [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnectionType_String_sync] -import com.google.cloud.oracledatabase.v1.GoldengateConnectionType; -import com.google.cloud.oracledatabase.v1.GoldengateConnectionTypeName; -import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +// [START discoveryengine_v1beta_generated_AssistantService_DeleteAssistant_String_sync] +import com.google.cloud.discoveryengine.v1beta.AssistantName; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.protobuf.Empty; -public class SyncGetGoldengateConnectionTypeString { +public class SyncDeleteAssistantString { public static void main(String[] args) throws Exception { - syncGetGoldengateConnectionTypeString(); + syncDeleteAssistantString(); } - public static void syncGetGoldengateConnectionTypeString() throws Exception { + public static void syncDeleteAssistantString() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { String name = - GoldengateConnectionTypeName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]") + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") .toString(); - GoldengateConnectionType response = oracleDatabaseClient.getGoldengateConnectionType(name); + assistantServiceClient.deleteAssistant(name); } } } -// [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnectionType_String_sync] +// [END discoveryengine_v1beta_generated_AssistantService_DeleteAssistant_String_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymenttype/AsyncGetGoldengateDeploymentType.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/getassistant/AsyncGetAssistant.java similarity index 50% rename from java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymenttype/AsyncGetGoldengateDeploymentType.java rename to java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/getassistant/AsyncGetAssistant.java index ee51970a8cf1..de5bb6c33b9f 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymenttype/AsyncGetGoldengateDeploymentType.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/getassistant/AsyncGetAssistant.java @@ -14,40 +14,40 @@ * limitations under the License. */ -package com.google.cloud.oracledatabase.v1.samples; +package com.google.cloud.discoveryengine.v1beta.samples; -// [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentType_async] +// [START discoveryengine_v1beta_generated_AssistantService_GetAssistant_async] import com.google.api.core.ApiFuture; -import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentType; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentTypeName; -import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.discoveryengine.v1beta.Assistant; +import com.google.cloud.discoveryengine.v1beta.AssistantName; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1beta.GetAssistantRequest; -public class AsyncGetGoldengateDeploymentType { +public class AsyncGetAssistant { public static void main(String[] args) throws Exception { - asyncGetGoldengateDeploymentType(); + asyncGetAssistant(); } - public static void asyncGetGoldengateDeploymentType() throws Exception { + public static void asyncGetAssistant() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - GetGoldengateDeploymentTypeRequest request = - GetGoldengateDeploymentTypeRequest.newBuilder() + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + GetAssistantRequest request = + GetAssistantRequest.newBuilder() .setName( - GoldengateDeploymentTypeName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]") + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") .toString()) .build(); - ApiFuture future = - oracleDatabaseClient.getGoldengateDeploymentTypeCallable().futureCall(request); + ApiFuture future = + assistantServiceClient.getAssistantCallable().futureCall(request); // Do something. - GoldengateDeploymentType response = future.get(); + Assistant response = future.get(); } } } -// [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentType_async] +// [END discoveryengine_v1beta_generated_AssistantService_GetAssistant_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/getassistant/SyncGetAssistant.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/getassistant/SyncGetAssistant.java new file mode 100644 index 000000000000..69640e794db6 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/getassistant/SyncGetAssistant.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AssistantService_GetAssistant_sync] +import com.google.cloud.discoveryengine.v1beta.Assistant; +import com.google.cloud.discoveryengine.v1beta.AssistantName; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1beta.GetAssistantRequest; + +public class SyncGetAssistant { + + public static void main(String[] args) throws Exception { + syncGetAssistant(); + } + + public static void syncGetAssistant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + GetAssistantRequest request = + GetAssistantRequest.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .build(); + Assistant response = assistantServiceClient.getAssistant(request); + } + } +} +// [END discoveryengine_v1beta_generated_AssistantService_GetAssistant_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/getassistant/SyncGetAssistantAssistantname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/getassistant/SyncGetAssistantAssistantname.java new file mode 100644 index 000000000000..240fbcaa9c9f --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/getassistant/SyncGetAssistantAssistantname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AssistantService_GetAssistant_Assistantname_sync] +import com.google.cloud.discoveryengine.v1beta.Assistant; +import com.google.cloud.discoveryengine.v1beta.AssistantName; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; + +public class SyncGetAssistantAssistantname { + + public static void main(String[] args) throws Exception { + syncGetAssistantAssistantname(); + } + + public static void syncGetAssistantAssistantname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + AssistantName name = + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]"); + Assistant response = assistantServiceClient.getAssistant(name); + } + } +} +// [END discoveryengine_v1beta_generated_AssistantService_GetAssistant_Assistantname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymenttype/SyncGetGoldengateDeploymentTypeString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/getassistant/SyncGetAssistantString.java similarity index 55% rename from java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymenttype/SyncGetGoldengateDeploymentTypeString.java rename to java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/getassistant/SyncGetAssistantString.java index 1e9473d9d9e2..04c2095df3cd 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymenttype/SyncGetGoldengateDeploymentTypeString.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/getassistant/SyncGetAssistantString.java @@ -14,31 +14,31 @@ * limitations under the License. */ -package com.google.cloud.oracledatabase.v1.samples; +package com.google.cloud.discoveryengine.v1beta.samples; -// [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentType_String_sync] -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentType; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentTypeName; -import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +// [START discoveryengine_v1beta_generated_AssistantService_GetAssistant_String_sync] +import com.google.cloud.discoveryengine.v1beta.Assistant; +import com.google.cloud.discoveryengine.v1beta.AssistantName; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; -public class SyncGetGoldengateDeploymentTypeString { +public class SyncGetAssistantString { public static void main(String[] args) throws Exception { - syncGetGoldengateDeploymentTypeString(); + syncGetAssistantString(); } - public static void syncGetGoldengateDeploymentTypeString() throws Exception { + public static void syncGetAssistantString() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { String name = - GoldengateDeploymentTypeName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]") + AssistantName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") .toString(); - GoldengateDeploymentType response = oracleDatabaseClient.getGoldengateDeploymentType(name); + Assistant response = assistantServiceClient.getAssistant(name); } } } -// [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentType_String_sync] +// [END discoveryengine_v1beta_generated_AssistantService_GetAssistant_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/AsyncListAssistants.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/AsyncListAssistants.java new file mode 100644 index 000000000000..7597a346f8c2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/AsyncListAssistants.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AssistantService_ListAssistants_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.Assistant; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1beta.EngineName; +import com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest; + +public class AsyncListAssistants { + + public static void main(String[] args) throws Exception { + asyncListAssistants(); + } + + public static void asyncListAssistants() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + ListAssistantsRequest request = + ListAssistantsRequest.newBuilder() + .setParent( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + assistantServiceClient.listAssistantsPagedCallable().futureCall(request); + // Do something. + for (Assistant element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_AssistantService_ListAssistants_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/AsyncListAssistantsPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/AsyncListAssistantsPaged.java new file mode 100644 index 000000000000..dfcf8a7d5fb9 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/AsyncListAssistantsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AssistantService_ListAssistants_Paged_async] +import com.google.cloud.discoveryengine.v1beta.Assistant; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1beta.EngineName; +import com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest; +import com.google.cloud.discoveryengine.v1beta.ListAssistantsResponse; +import com.google.common.base.Strings; + +public class AsyncListAssistantsPaged { + + public static void main(String[] args) throws Exception { + asyncListAssistantsPaged(); + } + + public static void asyncListAssistantsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + ListAssistantsRequest request = + ListAssistantsRequest.newBuilder() + .setParent( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAssistantsResponse response = + assistantServiceClient.listAssistantsCallable().call(request); + for (Assistant element : response.getAssistantsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1beta_generated_AssistantService_ListAssistants_Paged_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/SyncListAssistants.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/SyncListAssistants.java new file mode 100644 index 000000000000..0ad1085b94c4 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/SyncListAssistants.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AssistantService_ListAssistants_sync] +import com.google.cloud.discoveryengine.v1beta.Assistant; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1beta.EngineName; +import com.google.cloud.discoveryengine.v1beta.ListAssistantsRequest; + +public class SyncListAssistants { + + public static void main(String[] args) throws Exception { + syncListAssistants(); + } + + public static void syncListAssistants() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + ListAssistantsRequest request = + ListAssistantsRequest.newBuilder() + .setParent( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Assistant element : assistantServiceClient.listAssistants(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_AssistantService_ListAssistants_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/SyncListAssistantsEnginename.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/SyncListAssistantsEnginename.java new file mode 100644 index 000000000000..efe36a97cc09 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/SyncListAssistantsEnginename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AssistantService_ListAssistants_Enginename_sync] +import com.google.cloud.discoveryengine.v1beta.Assistant; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1beta.EngineName; + +public class SyncListAssistantsEnginename { + + public static void main(String[] args) throws Exception { + syncListAssistantsEnginename(); + } + + public static void syncListAssistantsEnginename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + for (Assistant element : assistantServiceClient.listAssistants(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_AssistantService_ListAssistants_Enginename_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/SyncListAssistantsString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/SyncListAssistantsString.java new file mode 100644 index 000000000000..ccac5722b881 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/listassistants/SyncListAssistantsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AssistantService_ListAssistants_String_sync] +import com.google.cloud.discoveryengine.v1beta.Assistant; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1beta.EngineName; + +public class SyncListAssistantsString { + + public static void main(String[] args) throws Exception { + syncListAssistantsString(); + } + + public static void syncListAssistantsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + String parent = + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString(); + for (Assistant element : assistantServiceClient.listAssistants(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_AssistantService_ListAssistants_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/streamassist/AsyncStreamAssist.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/streamassist/AsyncStreamAssist.java new file mode 100644 index 000000000000..0f185d7aabf7 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/streamassist/AsyncStreamAssist.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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_AssistantService_StreamAssist_async] +import com.google.api.gax.rpc.ServerStream; +import com.google.cloud.discoveryengine.v1beta.AssistUserMetadata; +import com.google.cloud.discoveryengine.v1beta.AssistantName; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1beta.Query; +import com.google.cloud.discoveryengine.v1beta.SessionName; +import com.google.cloud.discoveryengine.v1beta.StreamAssistRequest; +import com.google.cloud.discoveryengine.v1beta.StreamAssistResponse; + +public class AsyncStreamAssist { + + public static void main(String[] args) throws Exception { + asyncStreamAssist(); + } + + public static void asyncStreamAssist() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + StreamAssistRequest request = + StreamAssistRequest.newBuilder() + .setName( + AssistantName.of( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]", "[ASSISTANT]") + .toString()) + .setQuery(Query.newBuilder().build()) + .setSession( + SessionName.ofProjectLocationDataStoreSessionName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + .toString()) + .setUserMetadata(AssistUserMetadata.newBuilder().build()) + .setToolsSpec(StreamAssistRequest.ToolsSpec.newBuilder().build()) + .setGenerationSpec(StreamAssistRequest.GenerationSpec.newBuilder().build()) + .build(); + ServerStream stream = + assistantServiceClient.streamAssistCallable().call(request); + for (StreamAssistResponse response : stream) { + // Do something when a response is received. + } + } + } +} +// [END discoveryengine_v1beta_generated_AssistantService_StreamAssist_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/updateassistant/AsyncUpdateAssistant.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/updateassistant/AsyncUpdateAssistant.java new file mode 100644 index 000000000000..a613c34fb8e2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/updateassistant/AsyncUpdateAssistant.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AssistantService_UpdateAssistant_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.Assistant; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAssistant { + + public static void main(String[] args) throws Exception { + asyncUpdateAssistant(); + } + + public static void asyncUpdateAssistant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + UpdateAssistantRequest request = + UpdateAssistantRequest.newBuilder() + .setAssistant(Assistant.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + assistantServiceClient.updateAssistantCallable().futureCall(request); + // Do something. + Assistant response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_AssistantService_UpdateAssistant_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/updateassistant/SyncUpdateAssistant.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/updateassistant/SyncUpdateAssistant.java new file mode 100644 index 000000000000..0544d256b837 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/updateassistant/SyncUpdateAssistant.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AssistantService_UpdateAssistant_sync] +import com.google.cloud.discoveryengine.v1beta.Assistant; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.cloud.discoveryengine.v1beta.UpdateAssistantRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAssistant { + + public static void main(String[] args) throws Exception { + syncUpdateAssistant(); + } + + public static void syncUpdateAssistant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + UpdateAssistantRequest request = + UpdateAssistantRequest.newBuilder() + .setAssistant(Assistant.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Assistant response = assistantServiceClient.updateAssistant(request); + } + } +} +// [END discoveryengine_v1beta_generated_AssistantService_UpdateAssistant_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/updateassistant/SyncUpdateAssistantAssistantFieldmask.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/updateassistant/SyncUpdateAssistantAssistantFieldmask.java new file mode 100644 index 000000000000..f1ebea59f7a2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservice/updateassistant/SyncUpdateAssistantAssistantFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AssistantService_UpdateAssistant_AssistantFieldmask_sync] +import com.google.cloud.discoveryengine.v1beta.Assistant; +import com.google.cloud.discoveryengine.v1beta.AssistantServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAssistantAssistantFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAssistantAssistantFieldmask(); + } + + public static void syncUpdateAssistantAssistantFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) { + Assistant assistant = Assistant.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Assistant response = assistantServiceClient.updateAssistant(assistant, updateMask); + } + } +} +// [END discoveryengine_v1beta_generated_AssistantService_UpdateAssistant_AssistantFieldmask_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservicesettings/createassistant/SyncCreateAssistant.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservicesettings/createassistant/SyncCreateAssistant.java new file mode 100644 index 000000000000..857a62f9f2cb --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/assistantservicesettings/createassistant/SyncCreateAssistant.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_AssistantServiceSettings_CreateAssistant_sync] +import com.google.cloud.discoveryengine.v1beta.AssistantServiceSettings; +import java.time.Duration; + +public class SyncCreateAssistant { + + public static void main(String[] args) throws Exception { + syncCreateAssistant(); + } + + public static void syncCreateAssistant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AssistantServiceSettings.Builder assistantServiceSettingsBuilder = + AssistantServiceSettings.newBuilder(); + assistantServiceSettingsBuilder + .createAssistantSettings() + .setRetrySettings( + assistantServiceSettingsBuilder + .createAssistantSettings() + .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()); + AssistantServiceSettings assistantServiceSettings = assistantServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_AssistantServiceSettings_CreateAssistant_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..b3fc774e9e0c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CmekConfigServiceSettings cmekConfigServiceSettings = + CmekConfigServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + CmekConfigServiceClient cmekConfigServiceClient = + CmekConfigServiceClient.create(cmekConfigServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_CmekConfigService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..2169e4d7ef2a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CmekConfigServiceSettings cmekConfigServiceSettings = + CmekConfigServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + CmekConfigServiceClient cmekConfigServiceClient = + CmekConfigServiceClient.create(cmekConfigServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_CmekConfigService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..e3044cd31497 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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_CmekConfigService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CmekConfigServiceSettings cmekConfigServiceSettings = + CmekConfigServiceSettings.newHttpJsonBuilder().build(); + CmekConfigServiceClient cmekConfigServiceClient = + CmekConfigServiceClient.create(cmekConfigServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_CmekConfigService_Create_UseHttpJsonTransport_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengateconnectiontype/AsyncGetGoldengateConnectionType.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/AsyncDeleteCmekConfig.java similarity index 50% rename from java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengateconnectiontype/AsyncGetGoldengateConnectionType.java rename to java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/AsyncDeleteCmekConfig.java index bb50b9bd79fc..9f0a85e8ba5f 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengateconnectiontype/AsyncGetGoldengateConnectionType.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/AsyncDeleteCmekConfig.java @@ -14,40 +14,40 @@ * limitations under the License. */ -package com.google.cloud.oracledatabase.v1.samples; +package com.google.cloud.discoveryengine.v1beta.samples; -// [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnectionType_async] +// [START discoveryengine_v1beta_generated_CmekConfigService_DeleteCmekConfig_async] import com.google.api.core.ApiFuture; -import com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest; -import com.google.cloud.oracledatabase.v1.GoldengateConnectionType; -import com.google.cloud.oracledatabase.v1.GoldengateConnectionTypeName; -import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +import com.google.cloud.discoveryengine.v1beta.CmekConfigName; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest; +import com.google.longrunning.Operation; -public class AsyncGetGoldengateConnectionType { +public class AsyncDeleteCmekConfig { public static void main(String[] args) throws Exception { - asyncGetGoldengateConnectionType(); + asyncDeleteCmekConfig(); } - public static void asyncGetGoldengateConnectionType() throws Exception { + public static void asyncDeleteCmekConfig() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - GetGoldengateConnectionTypeRequest request = - GetGoldengateConnectionTypeRequest.newBuilder() + try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) { + DeleteCmekConfigRequest request = + DeleteCmekConfigRequest.newBuilder() .setName( - GoldengateConnectionTypeName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]") + CmekConfigName.ofProjectLocationCmekConfigName( + "[PROJECT]", "[LOCATION]", "[CMEK_CONFIG]") .toString()) .build(); - ApiFuture future = - oracleDatabaseClient.getGoldengateConnectionTypeCallable().futureCall(request); + ApiFuture future = + cmekConfigServiceClient.deleteCmekConfigCallable().futureCall(request); // Do something. - GoldengateConnectionType response = future.get(); + future.get(); } } } -// [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateConnectionType_async] +// [END discoveryengine_v1beta_generated_CmekConfigService_DeleteCmekConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/AsyncDeleteCmekConfigLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/AsyncDeleteCmekConfigLRO.java new file mode 100644 index 000000000000..b33f75d34b59 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/AsyncDeleteCmekConfigLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigService_DeleteCmekConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1beta.CmekConfigName; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigMetadata; +import com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteCmekConfigLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteCmekConfigLRO(); + } + + public static void asyncDeleteCmekConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) { + DeleteCmekConfigRequest request = + DeleteCmekConfigRequest.newBuilder() + .setName( + CmekConfigName.ofProjectLocationCmekConfigName( + "[PROJECT]", "[LOCATION]", "[CMEK_CONFIG]") + .toString()) + .build(); + OperationFuture future = + cmekConfigServiceClient.deleteCmekConfigOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_CmekConfigService_DeleteCmekConfig_LRO_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/SyncDeleteCmekConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/SyncDeleteCmekConfig.java new file mode 100644 index 000000000000..268822e1197b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/SyncDeleteCmekConfig.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigService_DeleteCmekConfig_sync] +import com.google.cloud.discoveryengine.v1beta.CmekConfigName; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.DeleteCmekConfigRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteCmekConfig { + + public static void main(String[] args) throws Exception { + syncDeleteCmekConfig(); + } + + public static void syncDeleteCmekConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) { + DeleteCmekConfigRequest request = + DeleteCmekConfigRequest.newBuilder() + .setName( + CmekConfigName.ofProjectLocationCmekConfigName( + "[PROJECT]", "[LOCATION]", "[CMEK_CONFIG]") + .toString()) + .build(); + cmekConfigServiceClient.deleteCmekConfigAsync(request).get(); + } + } +} +// [END discoveryengine_v1beta_generated_CmekConfigService_DeleteCmekConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/SyncDeleteCmekConfigCmekconfigname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/SyncDeleteCmekConfigCmekconfigname.java new file mode 100644 index 000000000000..40bef4f894fe --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/SyncDeleteCmekConfigCmekconfigname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigService_DeleteCmekConfig_Cmekconfigname_sync] +import com.google.cloud.discoveryengine.v1beta.CmekConfigName; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCmekConfigCmekconfigname { + + public static void main(String[] args) throws Exception { + syncDeleteCmekConfigCmekconfigname(); + } + + public static void syncDeleteCmekConfigCmekconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) { + CmekConfigName name = + CmekConfigName.ofProjectLocationCmekConfigName( + "[PROJECT]", "[LOCATION]", "[CMEK_CONFIG]"); + cmekConfigServiceClient.deleteCmekConfigAsync(name).get(); + } + } +} +// [END discoveryengine_v1beta_generated_CmekConfigService_DeleteCmekConfig_Cmekconfigname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/SyncDeleteCmekConfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/SyncDeleteCmekConfigString.java new file mode 100644 index 000000000000..a97f8d429eb6 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/deletecmekconfig/SyncDeleteCmekConfigString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigService_DeleteCmekConfig_String_sync] +import com.google.cloud.discoveryengine.v1beta.CmekConfigName; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCmekConfigString { + + public static void main(String[] args) throws Exception { + syncDeleteCmekConfigString(); + } + + public static void syncDeleteCmekConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) { + String name = CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString(); + cmekConfigServiceClient.deleteCmekConfigAsync(name).get(); + } + } +} +// [END discoveryengine_v1beta_generated_CmekConfigService_DeleteCmekConfig_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/getcmekconfig/AsyncGetCmekConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/getcmekconfig/AsyncGetCmekConfig.java new file mode 100644 index 000000000000..126eb3005af6 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/getcmekconfig/AsyncGetCmekConfig.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigService_GetCmekConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.CmekConfig; +import com.google.cloud.discoveryengine.v1beta.CmekConfigName; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest; + +public class AsyncGetCmekConfig { + + public static void main(String[] args) throws Exception { + asyncGetCmekConfig(); + } + + public static void asyncGetCmekConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) { + GetCmekConfigRequest request = + GetCmekConfigRequest.newBuilder() + .setName(CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString()) + .build(); + ApiFuture future = + cmekConfigServiceClient.getCmekConfigCallable().futureCall(request); + // Do something. + CmekConfig response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_CmekConfigService_GetCmekConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/getcmekconfig/SyncGetCmekConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/getcmekconfig/SyncGetCmekConfig.java new file mode 100644 index 000000000000..b4f0ce1d2bc0 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/getcmekconfig/SyncGetCmekConfig.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigService_GetCmekConfig_sync] +import com.google.cloud.discoveryengine.v1beta.CmekConfig; +import com.google.cloud.discoveryengine.v1beta.CmekConfigName; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.GetCmekConfigRequest; + +public class SyncGetCmekConfig { + + public static void main(String[] args) throws Exception { + syncGetCmekConfig(); + } + + public static void syncGetCmekConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) { + GetCmekConfigRequest request = + GetCmekConfigRequest.newBuilder() + .setName(CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString()) + .build(); + CmekConfig response = cmekConfigServiceClient.getCmekConfig(request); + } + } +} +// [END discoveryengine_v1beta_generated_CmekConfigService_GetCmekConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/getcmekconfig/SyncGetCmekConfigCmekconfigname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/getcmekconfig/SyncGetCmekConfigCmekconfigname.java new file mode 100644 index 000000000000..4283add320d3 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/getcmekconfig/SyncGetCmekConfigCmekconfigname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigService_GetCmekConfig_Cmekconfigname_sync] +import com.google.cloud.discoveryengine.v1beta.CmekConfig; +import com.google.cloud.discoveryengine.v1beta.CmekConfigName; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; + +public class SyncGetCmekConfigCmekconfigname { + + public static void main(String[] args) throws Exception { + syncGetCmekConfigCmekconfigname(); + } + + public static void syncGetCmekConfigCmekconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) { + CmekConfigName name = CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]"); + CmekConfig response = cmekConfigServiceClient.getCmekConfig(name); + } + } +} +// [END discoveryengine_v1beta_generated_CmekConfigService_GetCmekConfig_Cmekconfigname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/getcmekconfig/SyncGetCmekConfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/getcmekconfig/SyncGetCmekConfigString.java new file mode 100644 index 000000000000..72a5d1a73ecb --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/getcmekconfig/SyncGetCmekConfigString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigService_GetCmekConfig_String_sync] +import com.google.cloud.discoveryengine.v1beta.CmekConfig; +import com.google.cloud.discoveryengine.v1beta.CmekConfigName; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; + +public class SyncGetCmekConfigString { + + public static void main(String[] args) throws Exception { + syncGetCmekConfigString(); + } + + public static void syncGetCmekConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) { + String name = CmekConfigName.ofProjectLocationName("[PROJECT]", "[LOCATION]").toString(); + CmekConfig response = cmekConfigServiceClient.getCmekConfig(name); + } + } +} +// [END discoveryengine_v1beta_generated_CmekConfigService_GetCmekConfig_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/listcmekconfigs/AsyncListCmekConfigs.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/listcmekconfigs/AsyncListCmekConfigs.java new file mode 100644 index 000000000000..f62998b9ab14 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/listcmekconfigs/AsyncListCmekConfigs.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigService_ListCmekConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest; +import com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class AsyncListCmekConfigs { + + public static void main(String[] args) throws Exception { + asyncListCmekConfigs(); + } + + public static void asyncListCmekConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) { + ListCmekConfigsRequest request = + ListCmekConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + ApiFuture future = + cmekConfigServiceClient.listCmekConfigsCallable().futureCall(request); + // Do something. + ListCmekConfigsResponse response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_CmekConfigService_ListCmekConfigs_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/listcmekconfigs/SyncListCmekConfigs.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/listcmekconfigs/SyncListCmekConfigs.java new file mode 100644 index 000000000000..2a0eea47a8f3 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/listcmekconfigs/SyncListCmekConfigs.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigService_ListCmekConfigs_sync] +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListCmekConfigsRequest; +import com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncListCmekConfigs { + + public static void main(String[] args) throws Exception { + syncListCmekConfigs(); + } + + public static void syncListCmekConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) { + ListCmekConfigsRequest request = + ListCmekConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .build(); + ListCmekConfigsResponse response = cmekConfigServiceClient.listCmekConfigs(request); + } + } +} +// [END discoveryengine_v1beta_generated_CmekConfigService_ListCmekConfigs_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/listcmekconfigs/SyncListCmekConfigsLocationname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/listcmekconfigs/SyncListCmekConfigsLocationname.java new file mode 100644 index 000000000000..c64b46ad1892 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/listcmekconfigs/SyncListCmekConfigsLocationname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigService_ListCmekConfigs_Locationname_sync] +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncListCmekConfigsLocationname { + + public static void main(String[] args) throws Exception { + syncListCmekConfigsLocationname(); + } + + public static void syncListCmekConfigsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + ListCmekConfigsResponse response = cmekConfigServiceClient.listCmekConfigs(parent); + } + } +} +// [END discoveryengine_v1beta_generated_CmekConfigService_ListCmekConfigs_Locationname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/listcmekconfigs/SyncListCmekConfigsString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/listcmekconfigs/SyncListCmekConfigsString.java new file mode 100644 index 000000000000..0b7d48496c9e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/listcmekconfigs/SyncListCmekConfigsString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigService_ListCmekConfigs_String_sync] +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListCmekConfigsResponse; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncListCmekConfigsString { + + public static void main(String[] args) throws Exception { + syncListCmekConfigsString(); + } + + public static void syncListCmekConfigsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + ListCmekConfigsResponse response = cmekConfigServiceClient.listCmekConfigs(parent); + } + } +} +// [END discoveryengine_v1beta_generated_CmekConfigService_ListCmekConfigs_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/updatecmekconfig/AsyncUpdateCmekConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/updatecmekconfig/AsyncUpdateCmekConfig.java new file mode 100644 index 000000000000..2eecf506de74 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/updatecmekconfig/AsyncUpdateCmekConfig.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigService_UpdateCmekConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.CmekConfig; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest; +import com.google.longrunning.Operation; + +public class AsyncUpdateCmekConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateCmekConfig(); + } + + public static void asyncUpdateCmekConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) { + UpdateCmekConfigRequest request = + UpdateCmekConfigRequest.newBuilder() + .setConfig(CmekConfig.newBuilder().build()) + .setSetDefault(true) + .build(); + ApiFuture future = + cmekConfigServiceClient.updateCmekConfigCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_CmekConfigService_UpdateCmekConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/updatecmekconfig/AsyncUpdateCmekConfigLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/updatecmekconfig/AsyncUpdateCmekConfigLRO.java new file mode 100644 index 000000000000..46bc4d639c24 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/updatecmekconfig/AsyncUpdateCmekConfigLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigService_UpdateCmekConfig_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1beta.CmekConfig; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigMetadata; +import com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest; + +public class AsyncUpdateCmekConfigLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateCmekConfigLRO(); + } + + public static void asyncUpdateCmekConfigLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) { + UpdateCmekConfigRequest request = + UpdateCmekConfigRequest.newBuilder() + .setConfig(CmekConfig.newBuilder().build()) + .setSetDefault(true) + .build(); + OperationFuture future = + cmekConfigServiceClient.updateCmekConfigOperationCallable().futureCall(request); + // Do something. + CmekConfig response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_CmekConfigService_UpdateCmekConfig_LRO_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/updatecmekconfig/SyncUpdateCmekConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/updatecmekconfig/SyncUpdateCmekConfig.java new file mode 100644 index 000000000000..8b0fc95c9e06 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/updatecmekconfig/SyncUpdateCmekConfig.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigService_UpdateCmekConfig_sync] +import com.google.cloud.discoveryengine.v1beta.CmekConfig; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.UpdateCmekConfigRequest; + +public class SyncUpdateCmekConfig { + + public static void main(String[] args) throws Exception { + syncUpdateCmekConfig(); + } + + public static void syncUpdateCmekConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) { + UpdateCmekConfigRequest request = + UpdateCmekConfigRequest.newBuilder() + .setConfig(CmekConfig.newBuilder().build()) + .setSetDefault(true) + .build(); + CmekConfig response = cmekConfigServiceClient.updateCmekConfigAsync(request).get(); + } + } +} +// [END discoveryengine_v1beta_generated_CmekConfigService_UpdateCmekConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/updatecmekconfig/SyncUpdateCmekConfigCmekconfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/updatecmekconfig/SyncUpdateCmekConfigCmekconfig.java new file mode 100644 index 000000000000..1e816bf3e084 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservice/updatecmekconfig/SyncUpdateCmekConfigCmekconfig.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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_CmekConfigService_UpdateCmekConfig_Cmekconfig_sync] +import com.google.cloud.discoveryengine.v1beta.CmekConfig; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceClient; + +public class SyncUpdateCmekConfigCmekconfig { + + public static void main(String[] args) throws Exception { + syncUpdateCmekConfigCmekconfig(); + } + + public static void syncUpdateCmekConfigCmekconfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CmekConfigServiceClient cmekConfigServiceClient = CmekConfigServiceClient.create()) { + CmekConfig config = CmekConfig.newBuilder().build(); + CmekConfig response = cmekConfigServiceClient.updateCmekConfigAsync(config).get(); + } + } +} +// [END discoveryengine_v1beta_generated_CmekConfigService_UpdateCmekConfig_Cmekconfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservicesettings/getcmekconfig/SyncGetCmekConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservicesettings/getcmekconfig/SyncGetCmekConfig.java new file mode 100644 index 000000000000..378e8a1fa8c1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservicesettings/getcmekconfig/SyncGetCmekConfig.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigServiceSettings_GetCmekConfig_sync] +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceSettings; +import java.time.Duration; + +public class SyncGetCmekConfig { + + public static void main(String[] args) throws Exception { + syncGetCmekConfig(); + } + + public static void syncGetCmekConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CmekConfigServiceSettings.Builder cmekConfigServiceSettingsBuilder = + CmekConfigServiceSettings.newBuilder(); + cmekConfigServiceSettingsBuilder + .getCmekConfigSettings() + .setRetrySettings( + cmekConfigServiceSettingsBuilder + .getCmekConfigSettings() + .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()); + CmekConfigServiceSettings cmekConfigServiceSettings = cmekConfigServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_CmekConfigServiceSettings_GetCmekConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservicesettings/updatecmekconfig/SyncUpdateCmekConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservicesettings/updatecmekconfig/SyncUpdateCmekConfig.java new file mode 100644 index 000000000000..b97343edbf94 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/cmekconfigservicesettings/updatecmekconfig/SyncUpdateCmekConfig.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigServiceSettings_UpdateCmekConfig_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.discoveryengine.v1beta.CmekConfigServiceSettings; +import java.time.Duration; + +public class SyncUpdateCmekConfig { + + public static void main(String[] args) throws Exception { + syncUpdateCmekConfig(); + } + + public static void syncUpdateCmekConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CmekConfigServiceSettings.Builder cmekConfigServiceSettingsBuilder = + CmekConfigServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + cmekConfigServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END discoveryengine_v1beta_generated_CmekConfigServiceSettings_UpdateCmekConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/advancedcompletequery/AsyncAdvancedCompleteQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/advancedcompletequery/AsyncAdvancedCompleteQuery.java index 53f762363d3e..0322cb99b45b 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/advancedcompletequery/AsyncAdvancedCompleteQuery.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/advancedcompletequery/AsyncAdvancedCompleteQuery.java @@ -51,6 +51,9 @@ public static void asyncAdvancedCompleteQuery() throws Exception { .setIncludeTailSuggestions(true) .setBoostSpec(AdvancedCompleteQueryRequest.BoostSpec.newBuilder().build()) .addAllSuggestionTypes(new ArrayList()) + .addAllSuggestionTypeSpecs( + new ArrayList()) + .addAllExperimentIds(new ArrayList()) .build(); ApiFuture future = completionServiceClient.advancedCompleteQueryCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/advancedcompletequery/SyncAdvancedCompleteQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/advancedcompletequery/SyncAdvancedCompleteQuery.java index a3d1cfa663be..38c3d4d1e723 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/advancedcompletequery/SyncAdvancedCompleteQuery.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/advancedcompletequery/SyncAdvancedCompleteQuery.java @@ -50,6 +50,9 @@ public static void syncAdvancedCompleteQuery() throws Exception { .setIncludeTailSuggestions(true) .setBoostSpec(AdvancedCompleteQueryRequest.BoostSpec.newBuilder().build()) .addAllSuggestionTypes(new ArrayList()) + .addAllSuggestionTypeSpecs( + new ArrayList()) + .addAllExperimentIds(new ArrayList()) .build(); AdvancedCompleteQueryResponse response = completionServiceClient.advancedCompleteQuery(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/removesuggestion/AsyncRemoveSuggestion.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/removesuggestion/AsyncRemoveSuggestion.java new file mode 100644 index 000000000000..a37fbc263227 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/removesuggestion/AsyncRemoveSuggestion.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CompletionService_RemoveSuggestion_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.CompletionConfigName; +import com.google.cloud.discoveryengine.v1beta.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest; +import com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse; +import com.google.cloud.discoveryengine.v1beta.UserInfo; +import com.google.protobuf.Timestamp; + +public class AsyncRemoveSuggestion { + + public static void main(String[] args) throws Exception { + asyncRemoveSuggestion(); + } + + public static void asyncRemoveSuggestion() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) { + RemoveSuggestionRequest request = + RemoveSuggestionRequest.newBuilder() + .setCompletionConfig( + CompletionConfigName.ofProjectLocationCollectionEngineName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]") + .toString()) + .setUserPseudoId("userPseudoId-1155274652") + .setUserInfo(UserInfo.newBuilder().build()) + .setRemoveTime(Timestamp.newBuilder().build()) + .build(); + ApiFuture future = + completionServiceClient.removeSuggestionCallable().futureCall(request); + // Do something. + RemoveSuggestionResponse response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_CompletionService_RemoveSuggestion_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/removesuggestion/SyncRemoveSuggestion.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/removesuggestion/SyncRemoveSuggestion.java new file mode 100644 index 000000000000..47ceb1dfd6ef --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/completionservice/removesuggestion/SyncRemoveSuggestion.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_CompletionService_RemoveSuggestion_sync] +import com.google.cloud.discoveryengine.v1beta.CompletionConfigName; +import com.google.cloud.discoveryengine.v1beta.CompletionServiceClient; +import com.google.cloud.discoveryengine.v1beta.RemoveSuggestionRequest; +import com.google.cloud.discoveryengine.v1beta.RemoveSuggestionResponse; +import com.google.cloud.discoveryengine.v1beta.UserInfo; +import com.google.protobuf.Timestamp; + +public class SyncRemoveSuggestion { + + public static void main(String[] args) throws Exception { + syncRemoveSuggestion(); + } + + public static void syncRemoveSuggestion() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CompletionServiceClient completionServiceClient = CompletionServiceClient.create()) { + RemoveSuggestionRequest request = + RemoveSuggestionRequest.newBuilder() + .setCompletionConfig( + CompletionConfigName.ofProjectLocationCollectionEngineName( + "[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]") + .toString()) + .setUserPseudoId("userPseudoId-1155274652") + .setUserInfo(UserInfo.newBuilder().build()) + .setRemoveTime(Timestamp.newBuilder().build()) + .build(); + RemoveSuggestionResponse response = completionServiceClient.removeSuggestion(request); + } + } +} +// [END discoveryengine_v1beta_generated_CompletionService_RemoveSuggestion_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/answerquery/AsyncAnswerQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/answerquery/AsyncAnswerQuery.java index 59d8e5000806..c4e94ef464a8 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/answerquery/AsyncAnswerQuery.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/answerquery/AsyncAnswerQuery.java @@ -61,6 +61,7 @@ public static void asyncAnswerQuery() throws Exception { .setAsynchronousMode(true) .setUserPseudoId("userPseudoId-1155274652") .putAllUserLabels(new HashMap()) + .setEndUserSpec(AnswerQueryRequest.EndUserSpec.newBuilder().build()) .build(); ApiFuture future = conversationalSearchServiceClient.answerQueryCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/answerquery/SyncAnswerQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/answerquery/SyncAnswerQuery.java index f11e93cfbddf..e6b1405edb32 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/answerquery/SyncAnswerQuery.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/answerquery/SyncAnswerQuery.java @@ -60,6 +60,7 @@ public static void syncAnswerQuery() throws Exception { .setAsynchronousMode(true) .setUserPseudoId("userPseudoId-1155274652") .putAllUserLabels(new HashMap()) + .setEndUserSpec(AnswerQueryRequest.EndUserSpec.newBuilder().build()) .build(); AnswerQueryResponse response = conversationalSearchServiceClient.answerQuery(request); } diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createsession/AsyncCreateSession.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createsession/AsyncCreateSession.java index 484e62097645..2158b1a2d026 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createsession/AsyncCreateSession.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createsession/AsyncCreateSession.java @@ -44,6 +44,7 @@ public static void asyncCreateSession() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]") .toString()) .setSession(Session.newBuilder().build()) + .setSessionId("sessionId607796817") .build(); ApiFuture future = conversationalSearchServiceClient.createSessionCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createsession/SyncCreateSession.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createsession/SyncCreateSession.java index 2a1a022d8338..a77d1aeca154 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createsession/SyncCreateSession.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/createsession/SyncCreateSession.java @@ -43,6 +43,7 @@ public static void syncCreateSession() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]") .toString()) .setSession(Session.newBuilder().build()) + .setSessionId("sessionId607796817") .build(); Session response = conversationalSearchServiceClient.createSession(request); } diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/streamanswerquery/AsyncStreamAnswerQuery.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/streamanswerquery/AsyncStreamAnswerQuery.java new file mode 100644 index 000000000000..f2fba4eee7f3 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/conversationalsearchservice/streamanswerquery/AsyncStreamAnswerQuery.java @@ -0,0 +1,74 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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_StreamAnswerQuery_async] +import com.google.api.gax.rpc.ServerStream; +import com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest; +import com.google.cloud.discoveryengine.v1beta.AnswerQueryResponse; +import com.google.cloud.discoveryengine.v1beta.ConversationalSearchServiceClient; +import com.google.cloud.discoveryengine.v1beta.Query; +import com.google.cloud.discoveryengine.v1beta.ServingConfigName; +import com.google.cloud.discoveryengine.v1beta.SessionName; +import java.util.HashMap; + +public class AsyncStreamAnswerQuery { + + public static void main(String[] args) throws Exception { + asyncStreamAnswerQuery(); + } + + public static void asyncStreamAnswerQuery() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ConversationalSearchServiceClient conversationalSearchServiceClient = + ConversationalSearchServiceClient.create()) { + AnswerQueryRequest request = + AnswerQueryRequest.newBuilder() + .setServingConfig( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .setQuery(Query.newBuilder().build()) + .setSession( + SessionName.ofProjectLocationDataStoreSessionName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") + .toString()) + .setSafetySpec(AnswerQueryRequest.SafetySpec.newBuilder().build()) + .setRelatedQuestionsSpec(AnswerQueryRequest.RelatedQuestionsSpec.newBuilder().build()) + .setGroundingSpec(AnswerQueryRequest.GroundingSpec.newBuilder().build()) + .setAnswerGenerationSpec(AnswerQueryRequest.AnswerGenerationSpec.newBuilder().build()) + .setSearchSpec(AnswerQueryRequest.SearchSpec.newBuilder().build()) + .setQueryUnderstandingSpec( + AnswerQueryRequest.QueryUnderstandingSpec.newBuilder().build()) + .setAsynchronousMode(true) + .setUserPseudoId("userPseudoId-1155274652") + .putAllUserLabels(new HashMap()) + .setEndUserSpec(AnswerQueryRequest.EndUserSpec.newBuilder().build()) + .build(); + ServerStream stream = + conversationalSearchServiceClient.streamAnswerQueryCallable().call(request); + for (AnswerQueryResponse response : stream) { + // Do something when a response is received. + } + } + } +} +// [END discoveryengine_v1beta_generated_ConversationalSearchService_StreamAnswerQuery_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/AsyncImportDocuments.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/AsyncImportDocuments.java index 99b2ccc338e3..0870db908795 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/AsyncImportDocuments.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/AsyncImportDocuments.java @@ -48,6 +48,7 @@ public static void asyncImportDocuments() throws Exception { .setUpdateMask(FieldMask.newBuilder().build()) .setAutoGenerateIds(true) .setIdField("idField1629396127") + .setForceRefreshContent(true) .build(); ApiFuture future = documentServiceClient.importDocumentsCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/AsyncImportDocumentsLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/AsyncImportDocumentsLRO.java index 46de3704b7dc..abd556a19e4e 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/AsyncImportDocumentsLRO.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/AsyncImportDocumentsLRO.java @@ -49,6 +49,7 @@ public static void asyncImportDocumentsLRO() throws Exception { .setUpdateMask(FieldMask.newBuilder().build()) .setAutoGenerateIds(true) .setIdField("idField1629396127") + .setForceRefreshContent(true) .build(); OperationFuture future = documentServiceClient.importDocumentsOperationCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/SyncImportDocuments.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/SyncImportDocuments.java index e69c03cd7d43..f17353be1418 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/SyncImportDocuments.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/documentservice/importdocuments/SyncImportDocuments.java @@ -47,6 +47,7 @@ public static void syncImportDocuments() throws Exception { .setUpdateMask(FieldMask.newBuilder().build()) .setAutoGenerateIds(true) .setIdField("idField1629396127") + .setForceRefreshContent(true) .build(); ImportDocumentsResponse response = documentServiceClient.importDocumentsAsync(request).get(); } diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/getiampolicy/AsyncGetIamPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..41f860ec91f9 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EngineService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.EngineName; +import com.google.cloud.discoveryengine.v1beta.EngineServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = engineServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_EngineService_GetIamPolicy_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/getiampolicy/SyncGetIamPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..b11159120a6c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EngineService_GetIamPolicy_sync] +import com.google.cloud.discoveryengine.v1beta.EngineName; +import com.google.cloud.discoveryengine.v1beta.EngineServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = engineServiceClient.getIamPolicy(request); + } + } +} +// [END discoveryengine_v1beta_generated_EngineService_GetIamPolicy_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/getiampolicy/SyncGetIamPolicyResourcename.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/getiampolicy/SyncGetIamPolicyResourcename.java new file mode 100644 index 000000000000..b878a9d5b59a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/getiampolicy/SyncGetIamPolicyResourcename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EngineService_GetIamPolicy_Resourcename_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.discoveryengine.v1beta.EngineName; +import com.google.cloud.discoveryengine.v1beta.EngineServiceClient; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyResourcename { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyResourcename(); + } + + public static void syncGetIamPolicyResourcename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) { + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + Policy response = engineServiceClient.getIamPolicy(resource); + } + } +} +// [END discoveryengine_v1beta_generated_EngineService_GetIamPolicy_Resourcename_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/getiampolicy/SyncGetIamPolicyString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/getiampolicy/SyncGetIamPolicyString.java new file mode 100644 index 000000000000..0dc0a2f62640 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/getiampolicy/SyncGetIamPolicyString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EngineService_GetIamPolicy_String_sync] +import com.google.cloud.discoveryengine.v1beta.AclConfigName; +import com.google.cloud.discoveryengine.v1beta.EngineServiceClient; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicyString { + + public static void main(String[] args) throws Exception { + syncGetIamPolicyString(); + } + + public static void syncGetIamPolicyString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) { + String resource = AclConfigName.of("[PROJECT]", "[LOCATION]").toString(); + Policy response = engineServiceClient.getIamPolicy(resource); + } + } +} +// [END discoveryengine_v1beta_generated_EngineService_GetIamPolicy_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/setiampolicy/AsyncSetIamPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..6a79e46efee0 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EngineService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.EngineName; +import com.google.cloud.discoveryengine.v1beta.EngineServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = engineServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_EngineService_SetIamPolicy_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/setiampolicy/SyncSetIamPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..8fb14479e371 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EngineService_SetIamPolicy_sync] +import com.google.cloud.discoveryengine.v1beta.EngineName; +import com.google.cloud.discoveryengine.v1beta.EngineServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = engineServiceClient.setIamPolicy(request); + } + } +} +// [END discoveryengine_v1beta_generated_EngineService_SetIamPolicy_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java new file mode 100644 index 000000000000..bdd0191b513e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EngineService_SetIamPolicy_ResourcenamePolicy_sync] +import com.google.api.resourcenames.ResourceName; +import com.google.cloud.discoveryengine.v1beta.EngineName; +import com.google.cloud.discoveryengine.v1beta.EngineServiceClient; +import com.google.iam.v1.Policy; + +public class SyncSetIamPolicyResourcenamePolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyResourcenamePolicy(); + } + + public static void syncSetIamPolicyResourcenamePolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) { + ResourceName resource = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + Policy policy = Policy.newBuilder().build(); + Policy response = engineServiceClient.setIamPolicy(resource, policy); + } + } +} +// [END discoveryengine_v1beta_generated_EngineService_SetIamPolicy_ResourcenamePolicy_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/setiampolicy/SyncSetIamPolicyStringPolicy.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/setiampolicy/SyncSetIamPolicyStringPolicy.java new file mode 100644 index 000000000000..169d60a55516 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/engineservice/setiampolicy/SyncSetIamPolicyStringPolicy.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_EngineService_SetIamPolicy_StringPolicy_sync] +import com.google.cloud.discoveryengine.v1beta.AclConfigName; +import com.google.cloud.discoveryengine.v1beta.EngineServiceClient; +import com.google.iam.v1.Policy; + +public class SyncSetIamPolicyStringPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicyStringPolicy(); + } + + public static void syncSetIamPolicyStringPolicy() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (EngineServiceClient engineServiceClient = EngineServiceClient.create()) { + String resource = AclConfigName.of("[PROJECT]", "[LOCATION]").toString(); + Policy policy = Policy.newBuilder().build(); + Policy response = engineServiceClient.setIamPolicy(resource, policy); + } + } +} +// [END discoveryengine_v1beta_generated_EngineService_SetIamPolicy_StringPolicy_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..7d75e9f2b716 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IdentityMappingStoreServiceSettings identityMappingStoreServiceSettings = + IdentityMappingStoreServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create(identityMappingStoreServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..308fc8e39843 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IdentityMappingStoreServiceSettings identityMappingStoreServiceSettings = + IdentityMappingStoreServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create(identityMappingStoreServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f70738807d6d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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_IdentityMappingStoreService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IdentityMappingStoreServiceSettings identityMappingStoreServiceSettings = + IdentityMappingStoreServiceSettings.newHttpJsonBuilder().build(); + IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create(identityMappingStoreServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/createidentitymappingstore/AsyncCreateIdentityMappingStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/createidentitymappingstore/AsyncCreateIdentityMappingStore.java new file mode 100644 index 000000000000..c23a2e853c75 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/createidentitymappingstore/AsyncCreateIdentityMappingStore.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_CreateIdentityMappingStore_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStore; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class AsyncCreateIdentityMappingStore { + + public static void main(String[] args) throws Exception { + asyncCreateIdentityMappingStore(); + } + + public static void asyncCreateIdentityMappingStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + CreateIdentityMappingStoreRequest request = + CreateIdentityMappingStoreRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdentityMappingStoreId("identityMappingStoreId677904780") + .setIdentityMappingStore(IdentityMappingStore.newBuilder().build()) + .build(); + ApiFuture future = + identityMappingStoreServiceClient + .createIdentityMappingStoreCallable() + .futureCall(request); + // Do something. + IdentityMappingStore response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_CreateIdentityMappingStore_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/createidentitymappingstore/SyncCreateIdentityMappingStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/createidentitymappingstore/SyncCreateIdentityMappingStore.java new file mode 100644 index 000000000000..9c97a1785476 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/createidentitymappingstore/SyncCreateIdentityMappingStore.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_CreateIdentityMappingStore_sync] +import com.google.cloud.discoveryengine.v1beta.CreateIdentityMappingStoreRequest; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStore; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncCreateIdentityMappingStore { + + public static void main(String[] args) throws Exception { + syncCreateIdentityMappingStore(); + } + + public static void syncCreateIdentityMappingStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + CreateIdentityMappingStoreRequest request = + CreateIdentityMappingStoreRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setIdentityMappingStoreId("identityMappingStoreId677904780") + .setIdentityMappingStore(IdentityMappingStore.newBuilder().build()) + .build(); + IdentityMappingStore response = + identityMappingStoreServiceClient.createIdentityMappingStore(request); + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_CreateIdentityMappingStore_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/createidentitymappingstore/SyncCreateIdentityMappingStoreLocationnameIdentitymappingstoreString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/createidentitymappingstore/SyncCreateIdentityMappingStoreLocationnameIdentitymappingstoreString.java new file mode 100644 index 000000000000..d43c5ca4392a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/createidentitymappingstore/SyncCreateIdentityMappingStoreLocationnameIdentitymappingstoreString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_CreateIdentityMappingStore_LocationnameIdentitymappingstoreString_sync] +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStore; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncCreateIdentityMappingStoreLocationnameIdentitymappingstoreString { + + public static void main(String[] args) throws Exception { + syncCreateIdentityMappingStoreLocationnameIdentitymappingstoreString(); + } + + public static void syncCreateIdentityMappingStoreLocationnameIdentitymappingstoreString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + IdentityMappingStore identityMappingStore = IdentityMappingStore.newBuilder().build(); + String identityMappingStoreId = "identityMappingStoreId677904780"; + IdentityMappingStore response = + identityMappingStoreServiceClient.createIdentityMappingStore( + parent, identityMappingStore, identityMappingStoreId); + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_CreateIdentityMappingStore_LocationnameIdentitymappingstoreString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/createidentitymappingstore/SyncCreateIdentityMappingStoreStringIdentitymappingstoreString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/createidentitymappingstore/SyncCreateIdentityMappingStoreStringIdentitymappingstoreString.java new file mode 100644 index 000000000000..f79a0a2a0603 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/createidentitymappingstore/SyncCreateIdentityMappingStoreStringIdentitymappingstoreString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_CreateIdentityMappingStore_StringIdentitymappingstoreString_sync] +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStore; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncCreateIdentityMappingStoreStringIdentitymappingstoreString { + + public static void main(String[] args) throws Exception { + syncCreateIdentityMappingStoreStringIdentitymappingstoreString(); + } + + public static void syncCreateIdentityMappingStoreStringIdentitymappingstoreString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + IdentityMappingStore identityMappingStore = IdentityMappingStore.newBuilder().build(); + String identityMappingStoreId = "identityMappingStoreId677904780"; + IdentityMappingStore response = + identityMappingStoreServiceClient.createIdentityMappingStore( + parent, identityMappingStore, identityMappingStoreId); + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_CreateIdentityMappingStore_StringIdentitymappingstoreString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/AsyncDeleteIdentityMappingStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/AsyncDeleteIdentityMappingStore.java new file mode 100644 index 000000000000..9d363be866e3 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/AsyncDeleteIdentityMappingStore.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_DeleteIdentityMappingStore_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreName; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteIdentityMappingStore { + + public static void main(String[] args) throws Exception { + asyncDeleteIdentityMappingStore(); + } + + public static void asyncDeleteIdentityMappingStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + DeleteIdentityMappingStoreRequest request = + DeleteIdentityMappingStoreRequest.newBuilder() + .setName( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .build(); + ApiFuture future = + identityMappingStoreServiceClient + .deleteIdentityMappingStoreCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_DeleteIdentityMappingStore_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/AsyncDeleteIdentityMappingStoreLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/AsyncDeleteIdentityMappingStoreLRO.java new file mode 100644 index 000000000000..91bb0b9dfde4 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/AsyncDeleteIdentityMappingStoreLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_DeleteIdentityMappingStore_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreMetadata; +import com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreName; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteIdentityMappingStoreLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteIdentityMappingStoreLRO(); + } + + public static void asyncDeleteIdentityMappingStoreLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + DeleteIdentityMappingStoreRequest request = + DeleteIdentityMappingStoreRequest.newBuilder() + .setName( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .build(); + OperationFuture future = + identityMappingStoreServiceClient + .deleteIdentityMappingStoreOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_DeleteIdentityMappingStore_LRO_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentversion/SyncGetGoldengateDeploymentVersion.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/SyncDeleteIdentityMappingStore.java similarity index 50% rename from java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentversion/SyncGetGoldengateDeploymentVersion.java rename to java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/SyncDeleteIdentityMappingStore.java index 6469d93d5b76..a4fca773f9e0 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentversion/SyncGetGoldengateDeploymentVersion.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/SyncDeleteIdentityMappingStore.java @@ -14,37 +14,36 @@ * limitations under the License. */ -package com.google.cloud.oracledatabase.v1.samples; +package com.google.cloud.discoveryengine.v1beta.samples; -// [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentVersion_sync] -import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersionName; -import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_DeleteIdentityMappingStore_sync] +import com.google.cloud.discoveryengine.v1beta.DeleteIdentityMappingStoreRequest; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreName; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.protobuf.Empty; -public class SyncGetGoldengateDeploymentVersion { +public class SyncDeleteIdentityMappingStore { public static void main(String[] args) throws Exception { - syncGetGoldengateDeploymentVersion(); + syncDeleteIdentityMappingStore(); } - public static void syncGetGoldengateDeploymentVersion() throws Exception { + public static void syncDeleteIdentityMappingStore() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - GetGoldengateDeploymentVersionRequest request = - GetGoldengateDeploymentVersionRequest.newBuilder() + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + DeleteIdentityMappingStoreRequest request = + DeleteIdentityMappingStoreRequest.newBuilder() .setName( - GoldengateDeploymentVersionName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]") + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") .toString()) .build(); - GoldengateDeploymentVersion response = - oracleDatabaseClient.getGoldengateDeploymentVersion(request); + identityMappingStoreServiceClient.deleteIdentityMappingStoreAsync(request).get(); } } } -// [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentVersion_sync] +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_DeleteIdentityMappingStore_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymenttype/SyncGetGoldengateDeploymentTypeGoldengatedeploymenttypename.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/SyncDeleteIdentityMappingStoreIdentitymappingstorename.java similarity index 50% rename from java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymenttype/SyncGetGoldengateDeploymentTypeGoldengatedeploymenttypename.java rename to java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/SyncDeleteIdentityMappingStoreIdentitymappingstorename.java index 207e809c3903..923e59f23675 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymenttype/SyncGetGoldengateDeploymentTypeGoldengatedeploymenttypename.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/SyncDeleteIdentityMappingStoreIdentitymappingstorename.java @@ -14,32 +14,31 @@ * limitations under the License. */ -package com.google.cloud.oracledatabase.v1.samples; +package com.google.cloud.discoveryengine.v1beta.samples; -// [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentType_Goldengatedeploymenttypename_sync] -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentType; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentTypeName; -import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_DeleteIdentityMappingStore_Identitymappingstorename_sync] +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreName; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.protobuf.Empty; -public class SyncGetGoldengateDeploymentTypeGoldengatedeploymenttypename { +public class SyncDeleteIdentityMappingStoreIdentitymappingstorename { public static void main(String[] args) throws Exception { - syncGetGoldengateDeploymentTypeGoldengatedeploymenttypename(); + syncDeleteIdentityMappingStoreIdentitymappingstorename(); } - public static void syncGetGoldengateDeploymentTypeGoldengatedeploymenttypename() - throws Exception { + public static void syncDeleteIdentityMappingStoreIdentitymappingstorename() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - GoldengateDeploymentTypeName name = - GoldengateDeploymentTypeName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]"); - GoldengateDeploymentType response = oracleDatabaseClient.getGoldengateDeploymentType(name); + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + IdentityMappingStoreName name = + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]"); + identityMappingStoreServiceClient.deleteIdentityMappingStoreAsync(name).get(); } } } -// [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentType_Goldengatedeploymenttypename_sync] +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_DeleteIdentityMappingStore_Identitymappingstorename_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentversion/SyncGetGoldengateDeploymentVersionString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/SyncDeleteIdentityMappingStoreString.java similarity index 54% rename from java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentversion/SyncGetGoldengateDeploymentVersionString.java rename to java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/SyncDeleteIdentityMappingStoreString.java index fab25a9479af..7a1e534bd1ba 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentversion/SyncGetGoldengateDeploymentVersionString.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/deleteidentitymappingstore/SyncDeleteIdentityMappingStoreString.java @@ -14,33 +14,32 @@ * limitations under the License. */ -package com.google.cloud.oracledatabase.v1.samples; +package com.google.cloud.discoveryengine.v1beta.samples; -// [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentVersion_String_sync] -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersionName; -import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_DeleteIdentityMappingStore_String_sync] +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreName; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.protobuf.Empty; -public class SyncGetGoldengateDeploymentVersionString { +public class SyncDeleteIdentityMappingStoreString { public static void main(String[] args) throws Exception { - syncGetGoldengateDeploymentVersionString(); + syncDeleteIdentityMappingStoreString(); } - public static void syncGetGoldengateDeploymentVersionString() throws Exception { + public static void syncDeleteIdentityMappingStoreString() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { String name = - GoldengateDeploymentVersionName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]") + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") .toString(); - GoldengateDeploymentVersion response = - oracleDatabaseClient.getGoldengateDeploymentVersion(name); + identityMappingStoreServiceClient.deleteIdentityMappingStoreAsync(name).get(); } } } -// [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentVersion_String_sync] +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_DeleteIdentityMappingStore_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/getidentitymappingstore/AsyncGetIdentityMappingStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/getidentitymappingstore/AsyncGetIdentityMappingStore.java new file mode 100644 index 000000000000..3e8d63f528c0 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/getidentitymappingstore/AsyncGetIdentityMappingStore.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_GetIdentityMappingStore_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStore; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreName; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; + +public class AsyncGetIdentityMappingStore { + + public static void main(String[] args) throws Exception { + asyncGetIdentityMappingStore(); + } + + public static void asyncGetIdentityMappingStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + GetIdentityMappingStoreRequest request = + GetIdentityMappingStoreRequest.newBuilder() + .setName( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .build(); + ApiFuture future = + identityMappingStoreServiceClient.getIdentityMappingStoreCallable().futureCall(request); + // Do something. + IdentityMappingStore response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_GetIdentityMappingStore_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/getidentitymappingstore/SyncGetIdentityMappingStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/getidentitymappingstore/SyncGetIdentityMappingStore.java new file mode 100644 index 000000000000..130df833b217 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/getidentitymappingstore/SyncGetIdentityMappingStore.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_GetIdentityMappingStore_sync] +import com.google.cloud.discoveryengine.v1beta.GetIdentityMappingStoreRequest; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStore; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreName; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; + +public class SyncGetIdentityMappingStore { + + public static void main(String[] args) throws Exception { + syncGetIdentityMappingStore(); + } + + public static void syncGetIdentityMappingStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + GetIdentityMappingStoreRequest request = + GetIdentityMappingStoreRequest.newBuilder() + .setName( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .build(); + IdentityMappingStore response = + identityMappingStoreServiceClient.getIdentityMappingStore(request); + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_GetIdentityMappingStore_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/getidentitymappingstore/SyncGetIdentityMappingStoreIdentitymappingstorename.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/getidentitymappingstore/SyncGetIdentityMappingStoreIdentitymappingstorename.java new file mode 100644 index 000000000000..56b663d23701 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/getidentitymappingstore/SyncGetIdentityMappingStoreIdentitymappingstorename.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_GetIdentityMappingStore_Identitymappingstorename_sync] +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStore; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreName; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; + +public class SyncGetIdentityMappingStoreIdentitymappingstorename { + + public static void main(String[] args) throws Exception { + syncGetIdentityMappingStoreIdentitymappingstorename(); + } + + public static void syncGetIdentityMappingStoreIdentitymappingstorename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + IdentityMappingStoreName name = + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]"); + IdentityMappingStore response = + identityMappingStoreServiceClient.getIdentityMappingStore(name); + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_GetIdentityMappingStore_Identitymappingstorename_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentenvironment/SyncGetGoldengateDeploymentEnvironmentString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/getidentitymappingstore/SyncGetIdentityMappingStoreString.java similarity index 52% rename from java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentenvironment/SyncGetGoldengateDeploymentEnvironmentString.java rename to java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/getidentitymappingstore/SyncGetIdentityMappingStoreString.java index 1e0beac66d0d..ae880dc3f94c 100644 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentenvironment/SyncGetGoldengateDeploymentEnvironmentString.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/getidentitymappingstore/SyncGetIdentityMappingStoreString.java @@ -14,33 +14,33 @@ * limitations under the License. */ -package com.google.cloud.oracledatabase.v1.samples; +package com.google.cloud.discoveryengine.v1beta.samples; -// [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentEnvironment_String_sync] -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironmentName; -import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_GetIdentityMappingStore_String_sync] +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStore; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreName; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; -public class SyncGetGoldengateDeploymentEnvironmentString { +public class SyncGetIdentityMappingStoreString { public static void main(String[] args) throws Exception { - syncGetGoldengateDeploymentEnvironmentString(); + syncGetIdentityMappingStoreString(); } - public static void syncGetGoldengateDeploymentEnvironmentString() throws Exception { + public static void syncGetIdentityMappingStoreString() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { String name = - GoldengateDeploymentEnvironmentName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]") + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") .toString(); - GoldengateDeploymentEnvironment response = - oracleDatabaseClient.getGoldengateDeploymentEnvironment(name); + IdentityMappingStore response = + identityMappingStoreServiceClient.getIdentityMappingStore(name); } } } -// [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentEnvironment_String_sync] +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_GetIdentityMappingStore_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/importidentitymappings/AsyncImportIdentityMappings.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/importidentitymappings/AsyncImportIdentityMappings.java new file mode 100644 index 000000000000..86f9dc2ddd46 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/importidentitymappings/AsyncImportIdentityMappings.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_ImportIdentityMappings_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreName; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest; +import com.google.longrunning.Operation; + +public class AsyncImportIdentityMappings { + + public static void main(String[] args) throws Exception { + asyncImportIdentityMappings(); + } + + public static void asyncImportIdentityMappings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + ImportIdentityMappingsRequest request = + ImportIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .build(); + ApiFuture future = + identityMappingStoreServiceClient.importIdentityMappingsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_ImportIdentityMappings_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/importidentitymappings/AsyncImportIdentityMappingsLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/importidentitymappings/AsyncImportIdentityMappingsLRO.java new file mode 100644 index 000000000000..b5779ed2ad36 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/importidentitymappings/AsyncImportIdentityMappingsLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_ImportIdentityMappings_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreName; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest; +import com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse; + +public class AsyncImportIdentityMappingsLRO { + + public static void main(String[] args) throws Exception { + asyncImportIdentityMappingsLRO(); + } + + public static void asyncImportIdentityMappingsLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + ImportIdentityMappingsRequest request = + ImportIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .build(); + OperationFuture + future = + identityMappingStoreServiceClient + .importIdentityMappingsOperationCallable() + .futureCall(request); + // Do something. + ImportIdentityMappingsResponse response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_ImportIdentityMappings_LRO_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/importidentitymappings/SyncImportIdentityMappings.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/importidentitymappings/SyncImportIdentityMappings.java new file mode 100644 index 000000000000..b25bfecb434c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/importidentitymappings/SyncImportIdentityMappings.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_ImportIdentityMappings_sync] +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreName; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsRequest; +import com.google.cloud.discoveryengine.v1beta.ImportIdentityMappingsResponse; + +public class SyncImportIdentityMappings { + + public static void main(String[] args) throws Exception { + syncImportIdentityMappings(); + } + + public static void syncImportIdentityMappings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + ImportIdentityMappingsRequest request = + ImportIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .build(); + ImportIdentityMappingsResponse response = + identityMappingStoreServiceClient.importIdentityMappingsAsync(request).get(); + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_ImportIdentityMappings_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappings/AsyncListIdentityMappings.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappings/AsyncListIdentityMappings.java new file mode 100644 index 000000000000..b3a397844347 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappings/AsyncListIdentityMappings.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_ListIdentityMappings_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreName; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest; + +public class AsyncListIdentityMappings { + + public static void main(String[] args) throws Exception { + asyncListIdentityMappings(); + } + + public static void asyncListIdentityMappings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + ListIdentityMappingsRequest request = + ListIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + identityMappingStoreServiceClient.listIdentityMappingsPagedCallable().futureCall(request); + // Do something. + for (IdentityMappingEntry element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_ListIdentityMappings_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappings/AsyncListIdentityMappingsPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappings/AsyncListIdentityMappingsPaged.java new file mode 100644 index 000000000000..3b2a75ee9ed1 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappings/AsyncListIdentityMappingsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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_IdentityMappingStoreService_ListIdentityMappings_Paged_async] +import com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreName; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsResponse; +import com.google.common.base.Strings; + +public class AsyncListIdentityMappingsPaged { + + public static void main(String[] args) throws Exception { + asyncListIdentityMappingsPaged(); + } + + public static void asyncListIdentityMappingsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + ListIdentityMappingsRequest request = + ListIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListIdentityMappingsResponse response = + identityMappingStoreServiceClient.listIdentityMappingsCallable().call(request); + for (IdentityMappingEntry element : response.getIdentityMappingEntriesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_ListIdentityMappings_Paged_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappings/SyncListIdentityMappings.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappings/SyncListIdentityMappings.java new file mode 100644 index 000000000000..0af8920ea7a5 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappings/SyncListIdentityMappings.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_ListIdentityMappings_sync] +import com.google.cloud.discoveryengine.v1beta.IdentityMappingEntry; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreName; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingsRequest; + +public class SyncListIdentityMappings { + + public static void main(String[] args) throws Exception { + syncListIdentityMappings(); + } + + public static void syncListIdentityMappings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + ListIdentityMappingsRequest request = + ListIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (IdentityMappingEntry element : + identityMappingStoreServiceClient.listIdentityMappings(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_ListIdentityMappings_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/AsyncListIdentityMappingStores.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/AsyncListIdentityMappingStores.java new file mode 100644 index 000000000000..fce7363c5097 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/AsyncListIdentityMappingStores.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_ListIdentityMappingStores_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStore; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class AsyncListIdentityMappingStores { + + public static void main(String[] args) throws Exception { + asyncListIdentityMappingStores(); + } + + public static void asyncListIdentityMappingStores() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + ListIdentityMappingStoresRequest request = + ListIdentityMappingStoresRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + identityMappingStoreServiceClient + .listIdentityMappingStoresPagedCallable() + .futureCall(request); + // Do something. + for (IdentityMappingStore element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_ListIdentityMappingStores_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/AsyncListIdentityMappingStoresPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/AsyncListIdentityMappingStoresPaged.java new file mode 100644 index 000000000000..5d430f2b4f2b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/AsyncListIdentityMappingStoresPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_ListIdentityMappingStores_Paged_async] +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStore; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresResponse; +import com.google.cloud.discoveryengine.v1beta.LocationName; +import com.google.common.base.Strings; + +public class AsyncListIdentityMappingStoresPaged { + + public static void main(String[] args) throws Exception { + asyncListIdentityMappingStoresPaged(); + } + + public static void asyncListIdentityMappingStoresPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + ListIdentityMappingStoresRequest request = + ListIdentityMappingStoresRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListIdentityMappingStoresResponse response = + identityMappingStoreServiceClient.listIdentityMappingStoresCallable().call(request); + for (IdentityMappingStore element : response.getIdentityMappingStoresList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_ListIdentityMappingStores_Paged_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/SyncListIdentityMappingStores.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/SyncListIdentityMappingStores.java new file mode 100644 index 000000000000..00173728e3b5 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/SyncListIdentityMappingStores.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_ListIdentityMappingStores_sync] +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStore; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListIdentityMappingStoresRequest; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncListIdentityMappingStores { + + public static void main(String[] args) throws Exception { + syncListIdentityMappingStores(); + } + + public static void syncListIdentityMappingStores() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + ListIdentityMappingStoresRequest request = + ListIdentityMappingStoresRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (IdentityMappingStore element : + identityMappingStoreServiceClient.listIdentityMappingStores(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_ListIdentityMappingStores_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/SyncListIdentityMappingStoresLocationname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/SyncListIdentityMappingStoresLocationname.java new file mode 100644 index 000000000000..5a9d08850429 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/SyncListIdentityMappingStoresLocationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_ListIdentityMappingStores_Locationname_sync] +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStore; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncListIdentityMappingStoresLocationname { + + public static void main(String[] args) throws Exception { + syncListIdentityMappingStoresLocationname(); + } + + public static void syncListIdentityMappingStoresLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (IdentityMappingStore element : + identityMappingStoreServiceClient.listIdentityMappingStores(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_ListIdentityMappingStores_Locationname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/SyncListIdentityMappingStoresString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/SyncListIdentityMappingStoresString.java new file mode 100644 index 000000000000..2a921bba623e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/listidentitymappingstores/SyncListIdentityMappingStoresString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_ListIdentityMappingStores_String_sync] +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStore; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncListIdentityMappingStoresString { + + public static void main(String[] args) throws Exception { + syncListIdentityMappingStoresString(); + } + + public static void syncListIdentityMappingStoresString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (IdentityMappingStore element : + identityMappingStoreServiceClient.listIdentityMappingStores(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_ListIdentityMappingStores_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/purgeidentitymappings/AsyncPurgeIdentityMappings.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/purgeidentitymappings/AsyncPurgeIdentityMappings.java new file mode 100644 index 000000000000..9d1723456408 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/purgeidentitymappings/AsyncPurgeIdentityMappings.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_PurgeIdentityMappings_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreName; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest; +import com.google.longrunning.Operation; + +public class AsyncPurgeIdentityMappings { + + public static void main(String[] args) throws Exception { + asyncPurgeIdentityMappings(); + } + + public static void asyncPurgeIdentityMappings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + PurgeIdentityMappingsRequest request = + PurgeIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + ApiFuture future = + identityMappingStoreServiceClient.purgeIdentityMappingsCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_PurgeIdentityMappings_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/purgeidentitymappings/AsyncPurgeIdentityMappingsLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/purgeidentitymappings/AsyncPurgeIdentityMappingsLRO.java new file mode 100644 index 000000000000..e0e9a5df4904 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/purgeidentitymappings/AsyncPurgeIdentityMappingsLRO.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_PurgeIdentityMappings_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingEntryOperationMetadata; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreName; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest; +import com.google.protobuf.Empty; + +public class AsyncPurgeIdentityMappingsLRO { + + public static void main(String[] args) throws Exception { + asyncPurgeIdentityMappingsLRO(); + } + + public static void asyncPurgeIdentityMappingsLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + PurgeIdentityMappingsRequest request = + PurgeIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + OperationFuture future = + identityMappingStoreServiceClient + .purgeIdentityMappingsOperationCallable() + .futureCall(request); + // Do something. + future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_PurgeIdentityMappings_LRO_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/purgeidentitymappings/SyncPurgeIdentityMappings.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/purgeidentitymappings/SyncPurgeIdentityMappings.java new file mode 100644 index 000000000000..a46423e98c44 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservice/purgeidentitymappings/SyncPurgeIdentityMappings.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreService_PurgeIdentityMappings_sync] +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreName; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.PurgeIdentityMappingsRequest; +import com.google.protobuf.Empty; + +public class SyncPurgeIdentityMappings { + + public static void main(String[] args) throws Exception { + syncPurgeIdentityMappings(); + } + + public static void syncPurgeIdentityMappings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (IdentityMappingStoreServiceClient identityMappingStoreServiceClient = + IdentityMappingStoreServiceClient.create()) { + PurgeIdentityMappingsRequest request = + PurgeIdentityMappingsRequest.newBuilder() + .setIdentityMappingStore( + IdentityMappingStoreName.of("[PROJECT]", "[LOCATION]", "[IDENTITY_MAPPING_STORE]") + .toString()) + .setFilter("filter-1274492040") + .setForce(true) + .build(); + identityMappingStoreServiceClient.purgeIdentityMappingsAsync(request).get(); + } + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreService_PurgeIdentityMappings_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservicesettings/createidentitymappingstore/SyncCreateIdentityMappingStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservicesettings/createidentitymappingstore/SyncCreateIdentityMappingStore.java new file mode 100644 index 000000000000..1de385be0be8 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservicesettings/createidentitymappingstore/SyncCreateIdentityMappingStore.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreServiceSettings_CreateIdentityMappingStore_sync] +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceSettings; +import java.time.Duration; + +public class SyncCreateIdentityMappingStore { + + public static void main(String[] args) throws Exception { + syncCreateIdentityMappingStore(); + } + + public static void syncCreateIdentityMappingStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IdentityMappingStoreServiceSettings.Builder identityMappingStoreServiceSettingsBuilder = + IdentityMappingStoreServiceSettings.newBuilder(); + identityMappingStoreServiceSettingsBuilder + .createIdentityMappingStoreSettings() + .setRetrySettings( + identityMappingStoreServiceSettingsBuilder + .createIdentityMappingStoreSettings() + .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()); + IdentityMappingStoreServiceSettings identityMappingStoreServiceSettings = + identityMappingStoreServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreServiceSettings_CreateIdentityMappingStore_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservicesettings/deleteidentitymappingstore/SyncDeleteIdentityMappingStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservicesettings/deleteidentitymappingstore/SyncDeleteIdentityMappingStore.java new file mode 100644 index 000000000000..4317fe64324c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/identitymappingstoreservicesettings/deleteidentitymappingstore/SyncDeleteIdentityMappingStore.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreServiceSettings_DeleteIdentityMappingStore_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.discoveryengine.v1beta.IdentityMappingStoreServiceSettings; +import java.time.Duration; + +public class SyncDeleteIdentityMappingStore { + + public static void main(String[] args) throws Exception { + syncDeleteIdentityMappingStore(); + } + + public static void syncDeleteIdentityMappingStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IdentityMappingStoreServiceSettings.Builder identityMappingStoreServiceSettingsBuilder = + IdentityMappingStoreServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + identityMappingStoreServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreServiceSettings_DeleteIdentityMappingStore_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..2f5c38f90438 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LicenseConfigServiceSettings licenseConfigServiceSettings = + LicenseConfigServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create(licenseConfigServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..11e1f9aede3c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LicenseConfigServiceSettings licenseConfigServiceSettings = + LicenseConfigServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create(licenseConfigServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..9acaef80a321 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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_LicenseConfigService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LicenseConfigServiceSettings licenseConfigServiceSettings = + LicenseConfigServiceSettings.newHttpJsonBuilder().build(); + LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create(licenseConfigServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/createlicenseconfig/AsyncCreateLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/createlicenseconfig/AsyncCreateLicenseConfig.java new file mode 100644 index 000000000000..b6f66a99593c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/createlicenseconfig/AsyncCreateLicenseConfig.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_CreateLicenseConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class AsyncCreateLicenseConfig { + + public static void main(String[] args) throws Exception { + asyncCreateLicenseConfig(); + } + + public static void asyncCreateLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + CreateLicenseConfigRequest request = + CreateLicenseConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .setLicenseConfigId("licenseConfigId-372057250") + .build(); + ApiFuture future = + licenseConfigServiceClient.createLicenseConfigCallable().futureCall(request); + // Do something. + LicenseConfig response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_CreateLicenseConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfig.java new file mode 100644 index 000000000000..ac15df6cee43 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfig.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_CreateLicenseConfig_sync] +import com.google.cloud.discoveryengine.v1beta.CreateLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncCreateLicenseConfig { + + public static void main(String[] args) throws Exception { + syncCreateLicenseConfig(); + } + + public static void syncCreateLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + CreateLicenseConfigRequest request = + CreateLicenseConfigRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .setLicenseConfigId("licenseConfigId-372057250") + .build(); + LicenseConfig response = licenseConfigServiceClient.createLicenseConfig(request); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_CreateLicenseConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfigLocationnameLicenseconfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfigLocationnameLicenseconfigString.java new file mode 100644 index 000000000000..72690ca9d9dc --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfigLocationnameLicenseconfigString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_CreateLicenseConfig_LocationnameLicenseconfigString_sync] +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncCreateLicenseConfigLocationnameLicenseconfigString { + + public static void main(String[] args) throws Exception { + syncCreateLicenseConfigLocationnameLicenseconfigString(); + } + + public static void syncCreateLicenseConfigLocationnameLicenseconfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + LicenseConfig response = + licenseConfigServiceClient.createLicenseConfig(parent, licenseConfig, licenseConfigId); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_CreateLicenseConfig_LocationnameLicenseconfigString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfigStringLicenseconfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfigStringLicenseconfigString.java new file mode 100644 index 000000000000..f79d72ee0210 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/createlicenseconfig/SyncCreateLicenseConfigStringLicenseconfigString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_CreateLicenseConfig_StringLicenseconfigString_sync] +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncCreateLicenseConfigStringLicenseconfigString { + + public static void main(String[] args) throws Exception { + syncCreateLicenseConfigStringLicenseconfigString(); + } + + public static void syncCreateLicenseConfigStringLicenseconfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + String licenseConfigId = "licenseConfigId-372057250"; + LicenseConfig response = + licenseConfigServiceClient.createLicenseConfig(parent, licenseConfig, licenseConfigId); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_CreateLicenseConfig_StringLicenseconfigString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/distributelicenseconfig/AsyncDistributeLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/distributelicenseconfig/AsyncDistributeLicenseConfig.java new file mode 100644 index 000000000000..ebb8ad788516 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/distributelicenseconfig/AsyncDistributeLicenseConfig.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_DistributeLicenseConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; + +public class AsyncDistributeLicenseConfig { + + public static void main(String[] args) throws Exception { + asyncDistributeLicenseConfig(); + } + + public static void asyncDistributeLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + DistributeLicenseConfigRequest request = + DistributeLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig( + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]") + .toString()) + .setProjectNumber(828084015) + .setLocation("location1901043637") + .setLicenseCount(-1565113455) + .setLicenseConfigId("licenseConfigId-372057250") + .build(); + ApiFuture future = + licenseConfigServiceClient.distributeLicenseConfigCallable().futureCall(request); + // Do something. + DistributeLicenseConfigResponse response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_DistributeLicenseConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfig.java new file mode 100644 index 000000000000..8eef7a301f21 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfig.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_DistributeLicenseConfig_sync] +import com.google.cloud.discoveryengine.v1beta.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; + +public class SyncDistributeLicenseConfig { + + public static void main(String[] args) throws Exception { + syncDistributeLicenseConfig(); + } + + public static void syncDistributeLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + DistributeLicenseConfigRequest request = + DistributeLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig( + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]") + .toString()) + .setProjectNumber(828084015) + .setLocation("location1901043637") + .setLicenseCount(-1565113455) + .setLicenseConfigId("licenseConfigId-372057250") + .build(); + DistributeLicenseConfigResponse response = + licenseConfigServiceClient.distributeLicenseConfig(request); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_DistributeLicenseConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfigBillingaccountlicenseconfignameLongStringLongString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfigBillingaccountlicenseconfignameLongStringLongString.java new file mode 100644 index 000000000000..ca0b210444ed --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfigBillingaccountlicenseconfignameLongStringLongString.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_DistributeLicenseConfig_BillingaccountlicenseconfignameLongStringLongString_sync] +import com.google.cloud.discoveryengine.v1beta.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; + +public class SyncDistributeLicenseConfigBillingaccountlicenseconfignameLongStringLongString { + + public static void main(String[] args) throws Exception { + syncDistributeLicenseConfigBillingaccountlicenseconfignameLongStringLongString(); + } + + public static void + syncDistributeLicenseConfigBillingaccountlicenseconfignameLongStringLongString() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + DistributeLicenseConfigResponse response = + licenseConfigServiceClient.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_DistributeLicenseConfig_BillingaccountlicenseconfignameLongStringLongString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfigStringLongStringLongString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfigStringLongStringLongString.java new file mode 100644 index 000000000000..3bddab240240 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/distributelicenseconfig/SyncDistributeLicenseConfigStringLongStringLongString.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_DistributeLicenseConfig_StringLongStringLongString_sync] +import com.google.cloud.discoveryengine.v1beta.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.DistributeLicenseConfigResponse; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; + +public class SyncDistributeLicenseConfigStringLongStringLongString { + + public static void main(String[] args) throws Exception { + syncDistributeLicenseConfigStringLongStringLongString(); + } + + public static void syncDistributeLicenseConfigStringLongStringLongString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + String billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]") + .toString(); + long projectNumber = 828084015; + String location = "location1901043637"; + long licenseCount = -1565113455; + String licenseConfigId = "licenseConfigId-372057250"; + DistributeLicenseConfigResponse response = + licenseConfigServiceClient.distributeLicenseConfig( + billingAccountLicenseConfig, projectNumber, location, licenseCount, licenseConfigId); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_DistributeLicenseConfig_StringLongStringLongString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/getlicenseconfig/AsyncGetLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/getlicenseconfig/AsyncGetLicenseConfig.java new file mode 100644 index 000000000000..45a3073a2a1d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/getlicenseconfig/AsyncGetLicenseConfig.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_GetLicenseConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; + +public class AsyncGetLicenseConfig { + + public static void main(String[] args) throws Exception { + asyncGetLicenseConfig(); + } + + public static void asyncGetLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + GetLicenseConfigRequest request = + GetLicenseConfigRequest.newBuilder() + .setName( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .build(); + ApiFuture future = + licenseConfigServiceClient.getLicenseConfigCallable().futureCall(request); + // Do something. + LicenseConfig response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_GetLicenseConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfig.java new file mode 100644 index 000000000000..7f668abdd711 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfig.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_GetLicenseConfig_sync] +import com.google.cloud.discoveryengine.v1beta.GetLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; + +public class SyncGetLicenseConfig { + + public static void main(String[] args) throws Exception { + syncGetLicenseConfig(); + } + + public static void syncGetLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + GetLicenseConfigRequest request = + GetLicenseConfigRequest.newBuilder() + .setName( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .build(); + LicenseConfig response = licenseConfigServiceClient.getLicenseConfig(request); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_GetLicenseConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfigLicenseconfigname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfigLicenseconfigname.java new file mode 100644 index 000000000000..4476a3350611 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfigLicenseconfigname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_GetLicenseConfig_Licenseconfigname_sync] +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; + +public class SyncGetLicenseConfigLicenseconfigname { + + public static void main(String[] args) throws Exception { + syncGetLicenseConfigLicenseconfigname(); + } + + public static void syncGetLicenseConfigLicenseconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + LicenseConfigName name = LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + LicenseConfig response = licenseConfigServiceClient.getLicenseConfig(name); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_GetLicenseConfig_Licenseconfigname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfigString.java new file mode 100644 index 000000000000..d05b01a61dbc --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/getlicenseconfig/SyncGetLicenseConfigString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_GetLicenseConfig_String_sync] +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; + +public class SyncGetLicenseConfigString { + + public static void main(String[] args) throws Exception { + syncGetLicenseConfigString(); + } + + public static void syncGetLicenseConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + String name = LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString(); + LicenseConfig response = licenseConfigServiceClient.getLicenseConfig(name); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_GetLicenseConfig_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/AsyncListLicenseConfigs.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/AsyncListLicenseConfigs.java new file mode 100644 index 000000000000..edbae7632dcb --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/AsyncListLicenseConfigs.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_ListLicenseConfigs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class AsyncListLicenseConfigs { + + public static void main(String[] args) throws Exception { + asyncListLicenseConfigs(); + } + + public static void asyncListLicenseConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + ListLicenseConfigsRequest request = + ListLicenseConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + licenseConfigServiceClient.listLicenseConfigsPagedCallable().futureCall(request); + // Do something. + for (LicenseConfig element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_ListLicenseConfigs_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/AsyncListLicenseConfigsPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/AsyncListLicenseConfigsPaged.java new file mode 100644 index 000000000000..3e8c3826f615 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/AsyncListLicenseConfigsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_ListLicenseConfigs_Paged_async] +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsResponse; +import com.google.cloud.discoveryengine.v1beta.LocationName; +import com.google.common.base.Strings; + +public class AsyncListLicenseConfigsPaged { + + public static void main(String[] args) throws Exception { + asyncListLicenseConfigsPaged(); + } + + public static void asyncListLicenseConfigsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + ListLicenseConfigsRequest request = + ListLicenseConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListLicenseConfigsResponse response = + licenseConfigServiceClient.listLicenseConfigsCallable().call(request); + for (LicenseConfig element : response.getLicenseConfigsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_ListLicenseConfigs_Paged_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigs.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigs.java new file mode 100644 index 000000000000..c5515f752c9c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigs.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_ListLicenseConfigs_sync] +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsRequest; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncListLicenseConfigs { + + public static void main(String[] args) throws Exception { + syncListLicenseConfigs(); + } + + public static void syncListLicenseConfigs() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + ListLicenseConfigsRequest request = + ListLicenseConfigsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (LicenseConfig element : + licenseConfigServiceClient.listLicenseConfigs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_ListLicenseConfigs_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigsLocationname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigsLocationname.java new file mode 100644 index 000000000000..a70db07f71fb --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigsLocationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_ListLicenseConfigs_Locationname_sync] +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncListLicenseConfigsLocationname { + + public static void main(String[] args) throws Exception { + syncListLicenseConfigsLocationname(); + } + + public static void syncListLicenseConfigsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (LicenseConfig element : + licenseConfigServiceClient.listLicenseConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_ListLicenseConfigs_Locationname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigsString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigsString.java new file mode 100644 index 000000000000..b2f2a8e73714 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/listlicenseconfigs/SyncListLicenseConfigsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_ListLicenseConfigs_String_sync] +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.LocationName; + +public class SyncListLicenseConfigsString { + + public static void main(String[] args) throws Exception { + syncListLicenseConfigsString(); + } + + public static void syncListLicenseConfigsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (LicenseConfig element : + licenseConfigServiceClient.listLicenseConfigs(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_ListLicenseConfigs_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/AsyncRetractLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/AsyncRetractLicenseConfig.java new file mode 100644 index 000000000000..e3e1f61f7fa2 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/AsyncRetractLicenseConfig.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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_LicenseConfigService_RetractLicenseConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse; + +public class AsyncRetractLicenseConfig { + + public static void main(String[] args) throws Exception { + asyncRetractLicenseConfig(); + } + + public static void asyncRetractLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + RetractLicenseConfigRequest request = + RetractLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig( + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]") + .toString()) + .setLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setFullRetract(true) + .setLicenseCount(-1565113455) + .build(); + ApiFuture future = + licenseConfigServiceClient.retractLicenseConfigCallable().futureCall(request); + // Do something. + RetractLicenseConfigResponse response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_RetractLicenseConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfig.java new file mode 100644 index 000000000000..fb73c60fe27a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfig.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_RetractLicenseConfig_sync] +import com.google.cloud.discoveryengine.v1beta.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigRequest; +import com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse; + +public class SyncRetractLicenseConfig { + + public static void main(String[] args) throws Exception { + syncRetractLicenseConfig(); + } + + public static void syncRetractLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + RetractLicenseConfigRequest request = + RetractLicenseConfigRequest.newBuilder() + .setBillingAccountLicenseConfig( + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]") + .toString()) + .setLicenseConfig( + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString()) + .setFullRetract(true) + .setLicenseCount(-1565113455) + .build(); + RetractLicenseConfigResponse response = + licenseConfigServiceClient.retractLicenseConfig(request); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_RetractLicenseConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigBillingaccountlicenseconfignameLicenseconfignameBooleanLong.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigBillingaccountlicenseconfignameLicenseconfignameBooleanLong.java new file mode 100644 index 000000000000..09f2fd42abfd --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigBillingaccountlicenseconfignameLicenseconfignameBooleanLong.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_RetractLicenseConfig_BillingaccountlicenseconfignameLicenseconfignameBooleanLong_sync] +import com.google.cloud.discoveryengine.v1beta.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse; + +public class SyncRetractLicenseConfigBillingaccountlicenseconfignameLicenseconfignameBooleanLong { + + public static void main(String[] args) throws Exception { + syncRetractLicenseConfigBillingaccountlicenseconfignameLicenseconfignameBooleanLong(); + } + + public static void + syncRetractLicenseConfigBillingaccountlicenseconfignameLicenseconfignameBooleanLong() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + RetractLicenseConfigResponse response = + licenseConfigServiceClient.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_RetractLicenseConfig_BillingaccountlicenseconfignameLicenseconfignameBooleanLong_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigBillingaccountlicenseconfignameStringBooleanLong.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigBillingaccountlicenseconfignameStringBooleanLong.java new file mode 100644 index 000000000000..a791e05617c3 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigBillingaccountlicenseconfignameStringBooleanLong.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_RetractLicenseConfig_BillingaccountlicenseconfignameStringBooleanLong_sync] +import com.google.cloud.discoveryengine.v1beta.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse; + +public class SyncRetractLicenseConfigBillingaccountlicenseconfignameStringBooleanLong { + + public static void main(String[] args) throws Exception { + syncRetractLicenseConfigBillingaccountlicenseconfignameStringBooleanLong(); + } + + public static void syncRetractLicenseConfigBillingaccountlicenseconfignameStringBooleanLong() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + BillingAccountLicenseConfigName billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]"); + String licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString(); + boolean fullRetract = true; + long licenseCount = -1565113455; + RetractLicenseConfigResponse response = + licenseConfigServiceClient.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_RetractLicenseConfig_BillingaccountlicenseconfignameStringBooleanLong_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigStringLicenseconfignameBooleanLong.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigStringLicenseconfignameBooleanLong.java new file mode 100644 index 000000000000..5d554afca89b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigStringLicenseconfignameBooleanLong.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_RetractLicenseConfig_StringLicenseconfignameBooleanLong_sync] +import com.google.cloud.discoveryengine.v1beta.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse; + +public class SyncRetractLicenseConfigStringLicenseconfignameBooleanLong { + + public static void main(String[] args) throws Exception { + syncRetractLicenseConfigStringLicenseconfignameBooleanLong(); + } + + public static void syncRetractLicenseConfigStringLicenseconfignameBooleanLong() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + String billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]") + .toString(); + LicenseConfigName licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]"); + boolean fullRetract = true; + long licenseCount = -1565113455; + RetractLicenseConfigResponse response = + licenseConfigServiceClient.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_RetractLicenseConfig_StringLicenseconfignameBooleanLong_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigStringStringBooleanLong.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigStringStringBooleanLong.java new file mode 100644 index 000000000000..50cbd67a6302 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/retractlicenseconfig/SyncRetractLicenseConfigStringStringBooleanLong.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_RetractLicenseConfig_StringStringBooleanLong_sync] +import com.google.cloud.discoveryengine.v1beta.BillingAccountLicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigName; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.RetractLicenseConfigResponse; + +public class SyncRetractLicenseConfigStringStringBooleanLong { + + public static void main(String[] args) throws Exception { + syncRetractLicenseConfigStringStringBooleanLong(); + } + + public static void syncRetractLicenseConfigStringStringBooleanLong() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + String billingAccountLicenseConfig = + BillingAccountLicenseConfigName.of( + "[BILLING_ACCOUNT]", "[BILLING_ACCOUNT_LICENSE_CONFIG]") + .toString(); + String licenseConfig = + LicenseConfigName.of("[PROJECT]", "[LOCATION]", "[LICENSE_CONFIG]").toString(); + boolean fullRetract = true; + long licenseCount = -1565113455; + RetractLicenseConfigResponse response = + licenseConfigServiceClient.retractLicenseConfig( + billingAccountLicenseConfig, licenseConfig, fullRetract, licenseCount); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_RetractLicenseConfig_StringStringBooleanLong_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/updatelicenseconfig/AsyncUpdateLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/updatelicenseconfig/AsyncUpdateLicenseConfig.java new file mode 100644 index 000000000000..5848cd6fb1dd --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/updatelicenseconfig/AsyncUpdateLicenseConfig.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_UpdateLicenseConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateLicenseConfig { + + public static void main(String[] args) throws Exception { + asyncUpdateLicenseConfig(); + } + + public static void asyncUpdateLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + UpdateLicenseConfigRequest request = + UpdateLicenseConfigRequest.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + licenseConfigServiceClient.updateLicenseConfigCallable().futureCall(request); + // Do something. + LicenseConfig response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_UpdateLicenseConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/updatelicenseconfig/SyncUpdateLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/updatelicenseconfig/SyncUpdateLicenseConfig.java new file mode 100644 index 000000000000..a2c3396f20e8 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/updatelicenseconfig/SyncUpdateLicenseConfig.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_UpdateLicenseConfig_sync] +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.cloud.discoveryengine.v1beta.UpdateLicenseConfigRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateLicenseConfig { + + public static void main(String[] args) throws Exception { + syncUpdateLicenseConfig(); + } + + public static void syncUpdateLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + UpdateLicenseConfigRequest request = + UpdateLicenseConfigRequest.newBuilder() + .setLicenseConfig(LicenseConfig.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + LicenseConfig response = licenseConfigServiceClient.updateLicenseConfig(request); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_UpdateLicenseConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/updatelicenseconfig/SyncUpdateLicenseConfigLicenseconfigFieldmask.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/updatelicenseconfig/SyncUpdateLicenseConfigLicenseconfigFieldmask.java new file mode 100644 index 000000000000..7682db97d445 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservice/updatelicenseconfig/SyncUpdateLicenseConfigLicenseconfigFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigService_UpdateLicenseConfig_LicenseconfigFieldmask_sync] +import com.google.cloud.discoveryengine.v1beta.LicenseConfig; +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateLicenseConfigLicenseconfigFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateLicenseConfigLicenseconfigFieldmask(); + } + + public static void syncUpdateLicenseConfigLicenseconfigFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LicenseConfigServiceClient licenseConfigServiceClient = + LicenseConfigServiceClient.create()) { + LicenseConfig licenseConfig = LicenseConfig.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + LicenseConfig response = + licenseConfigServiceClient.updateLicenseConfig(licenseConfig, updateMask); + } + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigService_UpdateLicenseConfig_LicenseconfigFieldmask_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservicesettings/createlicenseconfig/SyncCreateLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservicesettings/createlicenseconfig/SyncCreateLicenseConfig.java new file mode 100644 index 000000000000..402a0f240bba --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/licenseconfigservicesettings/createlicenseconfig/SyncCreateLicenseConfig.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigServiceSettings_CreateLicenseConfig_sync] +import com.google.cloud.discoveryengine.v1beta.LicenseConfigServiceSettings; +import java.time.Duration; + +public class SyncCreateLicenseConfig { + + public static void main(String[] args) throws Exception { + syncCreateLicenseConfig(); + } + + public static void syncCreateLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LicenseConfigServiceSettings.Builder licenseConfigServiceSettingsBuilder = + LicenseConfigServiceSettings.newBuilder(); + licenseConfigServiceSettingsBuilder + .createLicenseConfigSettings() + .setRetrySettings( + licenseConfigServiceSettingsBuilder + .createLicenseConfigSettings() + .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()); + LicenseConfigServiceSettings licenseConfigServiceSettings = + licenseConfigServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigServiceSettings_CreateLicenseConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProject.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProject.java index ae9ca277dd9c..8d2dbc486fd6 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProject.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProject.java @@ -41,6 +41,7 @@ public static void asyncProvisionProject() throws Exception { .setName(ProjectName.of("[PROJECT]").toString()) .setAcceptDataUseTerms(true) .setDataUseTermsVersion("dataUseTermsVersion-1913570450") + .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) .build(); ApiFuture future = projectServiceClient.provisionProjectCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProjectLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProjectLRO.java index 0f9240ea2292..289c6e39437d 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProjectLRO.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/AsyncProvisionProjectLRO.java @@ -42,6 +42,7 @@ public static void asyncProvisionProjectLRO() throws Exception { .setName(ProjectName.of("[PROJECT]").toString()) .setAcceptDataUseTerms(true) .setDataUseTermsVersion("dataUseTermsVersion-1913570450") + .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) .build(); OperationFuture future = projectServiceClient.provisionProjectOperationCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/SyncProvisionProject.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/SyncProvisionProject.java index 1b63d9785cb9..59f70629eea0 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/SyncProvisionProject.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/projectservice/provisionproject/SyncProvisionProject.java @@ -40,6 +40,7 @@ public static void syncProvisionProject() throws Exception { .setName(ProjectName.of("[PROJECT]").toString()) .setAcceptDataUseTerms(true) .setDataUseTermsVersion("dataUseTermsVersion-1913570450") + .setSaasParams(ProvisionProjectRequest.SaasParams.newBuilder().build()) .build(); Project response = projectServiceClient.provisionProjectAsync(request).get(); } diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearch.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearch.java index 5dca37bb3d16..beae19d725fa 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearch.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearch.java @@ -53,12 +53,14 @@ public static void asyncSearch() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) .setOneBoxPageSize(1988477988) .addAllDataStoreSpecs(new ArrayList()) + .setNumResultsPerDataStore(397658288) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -79,12 +81,19 @@ public static void asyncSearch() throws Exception { .setNaturalLanguageQueryUnderstandingSpec( SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + .setEntity("entity-1298275357") .build(); ApiFuture future = searchServiceClient.searchPagedCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearchPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearchPaged.java index e651d7b8fd7a..d03615e88bfc 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearchPaged.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/AsyncSearchPaged.java @@ -53,12 +53,14 @@ public static void asyncSearchPaged() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) .setOneBoxPageSize(1988477988) .addAllDataStoreSpecs(new ArrayList()) + .setNumResultsPerDataStore(397658288) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -79,12 +81,19 @@ public static void asyncSearchPaged() throws Exception { .setNaturalLanguageQueryUnderstandingSpec( SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + .setEntity("entity-1298275357") .build(); while (true) { SearchResponse response = searchServiceClient.searchCallable().call(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/SyncSearch.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/SyncSearch.java index f263acd6e250..73de6fa0e7f7 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/SyncSearch.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/search/SyncSearch.java @@ -52,12 +52,14 @@ public static void syncSearch() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) .setOneBoxPageSize(1988477988) .addAllDataStoreSpecs(new ArrayList()) + .setNumResultsPerDataStore(397658288) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -78,12 +80,19 @@ public static void syncSearch() throws Exception { .setNaturalLanguageQueryUnderstandingSpec( SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + .setEntity("entity-1298275357") .build(); for (SearchResponse.SearchResult element : searchServiceClient.search(request).iterateAll()) { // doThingsWith(element); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/searchlite/AsyncSearchLite.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/searchlite/AsyncSearchLite.java index 85b9340cae3b..ea60a691c24b 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/searchlite/AsyncSearchLite.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/searchlite/AsyncSearchLite.java @@ -53,12 +53,14 @@ public static void asyncSearchLite() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) .setOneBoxPageSize(1988477988) .addAllDataStoreSpecs(new ArrayList()) + .setNumResultsPerDataStore(397658288) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -79,12 +81,19 @@ public static void asyncSearchLite() throws Exception { .setNaturalLanguageQueryUnderstandingSpec( SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + .setEntity("entity-1298275357") .build(); ApiFuture future = searchServiceClient.searchLitePagedCallable().futureCall(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/searchlite/AsyncSearchLitePaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/searchlite/AsyncSearchLitePaged.java index 49cd3deb561c..49672ec3acb2 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/searchlite/AsyncSearchLitePaged.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/searchlite/AsyncSearchLitePaged.java @@ -53,12 +53,14 @@ public static void asyncSearchLitePaged() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) .setOneBoxPageSize(1988477988) .addAllDataStoreSpecs(new ArrayList()) + .setNumResultsPerDataStore(397658288) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -79,12 +81,19 @@ public static void asyncSearchLitePaged() throws Exception { .setNaturalLanguageQueryUnderstandingSpec( SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + .setEntity("entity-1298275357") .build(); while (true) { SearchResponse response = searchServiceClient.searchLiteCallable().call(request); diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/searchlite/SyncSearchLite.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/searchlite/SyncSearchLite.java index c8c64c98fef7..578a9ad38f0f 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/searchlite/SyncSearchLite.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/searchservice/searchlite/SyncSearchLite.java @@ -52,12 +52,14 @@ public static void syncSearchLite() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[BRANCH]") .toString()) .setQuery("query107944136") + .addAllPageCategories(new ArrayList()) .setImageQuery(SearchRequest.ImageQuery.newBuilder().build()) .setPageSize(883849137) .setPageToken("pageToken873572522") .setOffset(-1019779949) .setOneBoxPageSize(1988477988) .addAllDataStoreSpecs(new ArrayList()) + .setNumResultsPerDataStore(397658288) .setFilter("filter-1274492040") .setCanonicalFilter("canonicalFilter-722283124") .setOrderBy("orderBy-1207110587") @@ -78,12 +80,19 @@ public static void syncSearchLite() throws Exception { .setNaturalLanguageQueryUnderstandingSpec( SearchRequest.NaturalLanguageQueryUnderstandingSpec.newBuilder().build()) .setSearchAsYouTypeSpec(SearchRequest.SearchAsYouTypeSpec.newBuilder().build()) + .setDisplaySpec(SearchRequest.DisplaySpec.newBuilder().build()) + .addAllCrowdingSpecs(new ArrayList()) .setSession( SessionName.ofProjectLocationDataStoreSessionName( "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SESSION]") .toString()) .setSessionSpec(SearchRequest.SessionSpec.newBuilder().build()) + .setRelevanceFilterSpec(SearchRequest.RelevanceFilterSpec.newBuilder().build()) .setPersonalizationSpec(SearchRequest.PersonalizationSpec.newBuilder().build()) + .setRelevanceScoreSpec(SearchRequest.RelevanceScoreSpec.newBuilder().build()) + .setSearchAddonSpec(SearchRequest.SearchAddonSpec.newBuilder().build()) + .setCustomRankingParams(SearchRequest.CustomRankingParams.newBuilder().build()) + .setEntity("entity-1298275357") .build(); for (SearchResponse.SearchResult element : searchServiceClient.searchLite(request).iterateAll()) { diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/AsyncCreateServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/AsyncCreateServingConfig.java new file mode 100644 index 000000000000..cf7f1562743e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/AsyncCreateServingConfig.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_ServingConfigService_CreateServingConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest; +import com.google.cloud.discoveryengine.v1beta.DataStoreName; +import com.google.cloud.discoveryengine.v1beta.ServingConfig; +import com.google.cloud.discoveryengine.v1beta.ServingConfigServiceClient; + +public class AsyncCreateServingConfig { + + public static void main(String[] args) throws Exception { + asyncCreateServingConfig(); + } + + public static void asyncCreateServingConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + CreateServingConfigRequest request = + CreateServingConfigRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setServingConfig(ServingConfig.newBuilder().build()) + .setServingConfigId("servingConfigId-831052759") + .build(); + ApiFuture future = + servingConfigServiceClient.createServingConfigCallable().futureCall(request); + // Do something. + ServingConfig response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_ServingConfigService_CreateServingConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/SyncCreateServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/SyncCreateServingConfig.java new file mode 100644 index 000000000000..cc0cf4fb9d30 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/SyncCreateServingConfig.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_ServingConfigService_CreateServingConfig_sync] +import com.google.cloud.discoveryengine.v1beta.CreateServingConfigRequest; +import com.google.cloud.discoveryengine.v1beta.DataStoreName; +import com.google.cloud.discoveryengine.v1beta.ServingConfig; +import com.google.cloud.discoveryengine.v1beta.ServingConfigServiceClient; + +public class SyncCreateServingConfig { + + public static void main(String[] args) throws Exception { + syncCreateServingConfig(); + } + + public static void syncCreateServingConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + CreateServingConfigRequest request = + CreateServingConfigRequest.newBuilder() + .setParent( + DataStoreName.ofProjectLocationDataStoreName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString()) + .setServingConfig(ServingConfig.newBuilder().build()) + .setServingConfigId("servingConfigId-831052759") + .build(); + ServingConfig response = servingConfigServiceClient.createServingConfig(request); + } + } +} +// [END discoveryengine_v1beta_generated_ServingConfigService_CreateServingConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/SyncCreateServingConfigDatastorenameServingconfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/SyncCreateServingConfigDatastorenameServingconfigString.java new file mode 100644 index 000000000000..6f10051a0f72 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/SyncCreateServingConfigDatastorenameServingconfigString.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_ServingConfigService_CreateServingConfig_DatastorenameServingconfigString_sync] +import com.google.cloud.discoveryengine.v1beta.DataStoreName; +import com.google.cloud.discoveryengine.v1beta.ServingConfig; +import com.google.cloud.discoveryengine.v1beta.ServingConfigServiceClient; + +public class SyncCreateServingConfigDatastorenameServingconfigString { + + public static void main(String[] args) throws Exception { + syncCreateServingConfigDatastorenameServingconfigString(); + } + + public static void syncCreateServingConfigDatastorenameServingconfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + DataStoreName parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + ServingConfig response = + servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId); + } + } +} +// [END discoveryengine_v1beta_generated_ServingConfigService_CreateServingConfig_DatastorenameServingconfigString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/SyncCreateServingConfigEnginenameServingconfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/SyncCreateServingConfigEnginenameServingconfigString.java new file mode 100644 index 000000000000..f19ee92d9088 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/SyncCreateServingConfigEnginenameServingconfigString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_ServingConfigService_CreateServingConfig_EnginenameServingconfigString_sync] +import com.google.cloud.discoveryengine.v1beta.EngineName; +import com.google.cloud.discoveryengine.v1beta.ServingConfig; +import com.google.cloud.discoveryengine.v1beta.ServingConfigServiceClient; + +public class SyncCreateServingConfigEnginenameServingconfigString { + + public static void main(String[] args) throws Exception { + syncCreateServingConfigEnginenameServingconfigString(); + } + + public static void syncCreateServingConfigEnginenameServingconfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + EngineName parent = EngineName.of("[PROJECT]", "[LOCATION]", "[COLLECTION]", "[ENGINE]"); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + ServingConfig response = + servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId); + } + } +} +// [END discoveryengine_v1beta_generated_ServingConfigService_CreateServingConfig_EnginenameServingconfigString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/SyncCreateServingConfigStringServingconfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/SyncCreateServingConfigStringServingconfigString.java new file mode 100644 index 000000000000..df4bb904a0e4 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/createservingconfig/SyncCreateServingConfigStringServingconfigString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_ServingConfigService_CreateServingConfig_StringServingconfigString_sync] +import com.google.cloud.discoveryengine.v1beta.DataStoreName; +import com.google.cloud.discoveryengine.v1beta.ServingConfig; +import com.google.cloud.discoveryengine.v1beta.ServingConfigServiceClient; + +public class SyncCreateServingConfigStringServingconfigString { + + public static void main(String[] args) throws Exception { + syncCreateServingConfigStringServingconfigString(); + } + + public static void syncCreateServingConfigStringServingconfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + String parent = + DataStoreName.ofProjectLocationDataStoreName("[PROJECT]", "[LOCATION]", "[DATA_STORE]") + .toString(); + ServingConfig servingConfig = ServingConfig.newBuilder().build(); + String servingConfigId = "servingConfigId-831052759"; + ServingConfig response = + servingConfigServiceClient.createServingConfig(parent, servingConfig, servingConfigId); + } + } +} +// [END discoveryengine_v1beta_generated_ServingConfigService_CreateServingConfig_StringServingconfigString_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/deleteservingconfig/AsyncDeleteServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/deleteservingconfig/AsyncDeleteServingConfig.java new file mode 100644 index 000000000000..4ea2b6564695 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/deleteservingconfig/AsyncDeleteServingConfig.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_ServingConfigService_DeleteServingConfig_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest; +import com.google.cloud.discoveryengine.v1beta.ServingConfigName; +import com.google.cloud.discoveryengine.v1beta.ServingConfigServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteServingConfig { + + public static void main(String[] args) throws Exception { + asyncDeleteServingConfig(); + } + + public static void asyncDeleteServingConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + DeleteServingConfigRequest request = + DeleteServingConfigRequest.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .build(); + ApiFuture future = + servingConfigServiceClient.deleteServingConfigCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_ServingConfigService_DeleteServingConfig_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/deleteservingconfig/SyncDeleteServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/deleteservingconfig/SyncDeleteServingConfig.java new file mode 100644 index 000000000000..6b5a5ceeff1c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/deleteservingconfig/SyncDeleteServingConfig.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_ServingConfigService_DeleteServingConfig_sync] +import com.google.cloud.discoveryengine.v1beta.DeleteServingConfigRequest; +import com.google.cloud.discoveryengine.v1beta.ServingConfigName; +import com.google.cloud.discoveryengine.v1beta.ServingConfigServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteServingConfig { + + public static void main(String[] args) throws Exception { + syncDeleteServingConfig(); + } + + public static void syncDeleteServingConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + DeleteServingConfigRequest request = + DeleteServingConfigRequest.newBuilder() + .setName( + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString()) + .build(); + servingConfigServiceClient.deleteServingConfig(request); + } + } +} +// [END discoveryengine_v1beta_generated_ServingConfigService_DeleteServingConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/deleteservingconfig/SyncDeleteServingConfigServingconfigname.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/deleteservingconfig/SyncDeleteServingConfigServingconfigname.java new file mode 100644 index 000000000000..9353bc49920e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/deleteservingconfig/SyncDeleteServingConfigServingconfigname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_ServingConfigService_DeleteServingConfig_Servingconfigname_sync] +import com.google.cloud.discoveryengine.v1beta.ServingConfigName; +import com.google.cloud.discoveryengine.v1beta.ServingConfigServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteServingConfigServingconfigname { + + public static void main(String[] args) throws Exception { + syncDeleteServingConfigServingconfigname(); + } + + public static void syncDeleteServingConfigServingconfigname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + ServingConfigName name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]"); + servingConfigServiceClient.deleteServingConfig(name); + } + } +} +// [END discoveryengine_v1beta_generated_ServingConfigService_DeleteServingConfig_Servingconfigname_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/deleteservingconfig/SyncDeleteServingConfigString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/deleteservingconfig/SyncDeleteServingConfigString.java new file mode 100644 index 000000000000..9efad853929c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservice/deleteservingconfig/SyncDeleteServingConfigString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_ServingConfigService_DeleteServingConfig_String_sync] +import com.google.cloud.discoveryengine.v1beta.ServingConfigName; +import com.google.cloud.discoveryengine.v1beta.ServingConfigServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteServingConfigString { + + public static void main(String[] args) throws Exception { + syncDeleteServingConfigString(); + } + + public static void syncDeleteServingConfigString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ServingConfigServiceClient servingConfigServiceClient = + ServingConfigServiceClient.create()) { + String name = + ServingConfigName.ofProjectLocationDataStoreServingConfigName( + "[PROJECT]", "[LOCATION]", "[DATA_STORE]", "[SERVING_CONFIG]") + .toString(); + servingConfigServiceClient.deleteServingConfig(name); + } + } +} +// [END discoveryengine_v1beta_generated_ServingConfigService_DeleteServingConfig_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservicesettings/updateservingconfig/SyncUpdateServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservicesettings/createservingconfig/SyncCreateServingConfig.java similarity index 88% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservicesettings/updateservingconfig/SyncUpdateServingConfig.java rename to java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservicesettings/createservingconfig/SyncCreateServingConfig.java index 0df3a5b23bb7..ede2902cbc10 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservicesettings/updateservingconfig/SyncUpdateServingConfig.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/servingconfigservicesettings/createservingconfig/SyncCreateServingConfig.java @@ -16,17 +16,17 @@ package com.google.cloud.discoveryengine.v1beta.samples; -// [START discoveryengine_v1beta_generated_ServingConfigServiceSettings_UpdateServingConfig_sync] +// [START discoveryengine_v1beta_generated_ServingConfigServiceSettings_CreateServingConfig_sync] import com.google.cloud.discoveryengine.v1beta.ServingConfigServiceSettings; import java.time.Duration; -public class SyncUpdateServingConfig { +public class SyncCreateServingConfig { public static void main(String[] args) throws Exception { - syncUpdateServingConfig(); + syncCreateServingConfig(); } - public static void syncUpdateServingConfig() throws Exception { + public static void syncCreateServingConfig() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -35,10 +35,10 @@ public static void syncUpdateServingConfig() throws Exception { ServingConfigServiceSettings.Builder servingConfigServiceSettingsBuilder = ServingConfigServiceSettings.newBuilder(); servingConfigServiceSettingsBuilder - .updateServingConfigSettings() + .createServingConfigSettings() .setRetrySettings( servingConfigServiceSettingsBuilder - .updateServingConfigSettings() + .createServingConfigSettings() .getRetrySettings() .toBuilder() .setInitialRetryDelayDuration(Duration.ofSeconds(1)) @@ -54,4 +54,4 @@ public static void syncUpdateServingConfig() throws Exception { servingConfigServiceSettingsBuilder.build(); } } -// [END discoveryengine_v1beta_generated_ServingConfigServiceSettings_UpdateServingConfig_sync] +// [END discoveryengine_v1beta_generated_ServingConfigServiceSettings_CreateServingConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/sessionservice/createsession/AsyncCreateSession.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/sessionservice/createsession/AsyncCreateSession.java index ee675b4a54da..c1cbd3106da9 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/sessionservice/createsession/AsyncCreateSession.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/sessionservice/createsession/AsyncCreateSession.java @@ -43,6 +43,7 @@ public static void asyncCreateSession() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]") .toString()) .setSession(Session.newBuilder().build()) + .setSessionId("sessionId607796817") .build(); ApiFuture future = sessionServiceClient.createSessionCallable().futureCall(request); // Do something. diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/sessionservice/createsession/SyncCreateSession.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/sessionservice/createsession/SyncCreateSession.java index 60885d59b787..6f657ff36dd8 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/sessionservice/createsession/SyncCreateSession.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/sessionservice/createsession/SyncCreateSession.java @@ -42,6 +42,7 @@ public static void syncCreateSession() throws Exception { "[PROJECT]", "[LOCATION]", "[DATA_STORE]") .toString()) .setSession(Session.newBuilder().build()) + .setSessionId("sessionId607796817") .build(); Session response = sessionServiceClient.createSession(request); } diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/aclconfigservicestubsettings/updateaclconfig/SyncUpdateAclConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/aclconfigservicestubsettings/updateaclconfig/SyncUpdateAclConfig.java new file mode 100644 index 000000000000..c32cc5bbe5d5 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/aclconfigservicestubsettings/updateaclconfig/SyncUpdateAclConfig.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub.samples; + +// [START discoveryengine_v1beta_generated_AclConfigServiceStubSettings_UpdateAclConfig_sync] +import com.google.cloud.discoveryengine.v1beta.stub.AclConfigServiceStubSettings; +import java.time.Duration; + +public class SyncUpdateAclConfig { + + public static void main(String[] args) throws Exception { + syncUpdateAclConfig(); + } + + public static void syncUpdateAclConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AclConfigServiceStubSettings.Builder aclConfigServiceSettingsBuilder = + AclConfigServiceStubSettings.newBuilder(); + aclConfigServiceSettingsBuilder + .updateAclConfigSettings() + .setRetrySettings( + aclConfigServiceSettingsBuilder + .updateAclConfigSettings() + .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()); + AclConfigServiceStubSettings aclConfigServiceSettings = aclConfigServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_AclConfigServiceStubSettings_UpdateAclConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/assistantservicestubsettings/createassistant/SyncCreateAssistant.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/assistantservicestubsettings/createassistant/SyncCreateAssistant.java new file mode 100644 index 000000000000..d824d5580cf8 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/assistantservicestubsettings/createassistant/SyncCreateAssistant.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub.samples; + +// [START discoveryengine_v1beta_generated_AssistantServiceStubSettings_CreateAssistant_sync] +import com.google.cloud.discoveryengine.v1beta.stub.AssistantServiceStubSettings; +import java.time.Duration; + +public class SyncCreateAssistant { + + public static void main(String[] args) throws Exception { + syncCreateAssistant(); + } + + public static void syncCreateAssistant() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AssistantServiceStubSettings.Builder assistantServiceSettingsBuilder = + AssistantServiceStubSettings.newBuilder(); + assistantServiceSettingsBuilder + .createAssistantSettings() + .setRetrySettings( + assistantServiceSettingsBuilder + .createAssistantSettings() + .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()); + AssistantServiceStubSettings assistantServiceSettings = assistantServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_AssistantServiceStubSettings_CreateAssistant_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/cmekconfigservicestubsettings/getcmekconfig/SyncGetCmekConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/cmekconfigservicestubsettings/getcmekconfig/SyncGetCmekConfig.java new file mode 100644 index 000000000000..4378e0eb39c7 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/cmekconfigservicestubsettings/getcmekconfig/SyncGetCmekConfig.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigServiceStubSettings_GetCmekConfig_sync] +import com.google.cloud.discoveryengine.v1beta.stub.CmekConfigServiceStubSettings; +import java.time.Duration; + +public class SyncGetCmekConfig { + + public static void main(String[] args) throws Exception { + syncGetCmekConfig(); + } + + public static void syncGetCmekConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CmekConfigServiceStubSettings.Builder cmekConfigServiceSettingsBuilder = + CmekConfigServiceStubSettings.newBuilder(); + cmekConfigServiceSettingsBuilder + .getCmekConfigSettings() + .setRetrySettings( + cmekConfigServiceSettingsBuilder + .getCmekConfigSettings() + .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()); + CmekConfigServiceStubSettings cmekConfigServiceSettings = + cmekConfigServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_CmekConfigServiceStubSettings_GetCmekConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/cmekconfigservicestubsettings/updatecmekconfig/SyncUpdateCmekConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/cmekconfigservicestubsettings/updatecmekconfig/SyncUpdateCmekConfig.java new file mode 100644 index 000000000000..8f0419f598d3 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/cmekconfigservicestubsettings/updatecmekconfig/SyncUpdateCmekConfig.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub.samples; + +// [START discoveryengine_v1beta_generated_CmekConfigServiceStubSettings_UpdateCmekConfig_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.discoveryengine.v1beta.stub.CmekConfigServiceStubSettings; +import java.time.Duration; + +public class SyncUpdateCmekConfig { + + public static void main(String[] args) throws Exception { + syncUpdateCmekConfig(); + } + + public static void syncUpdateCmekConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + CmekConfigServiceStubSettings.Builder cmekConfigServiceSettingsBuilder = + CmekConfigServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + cmekConfigServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END discoveryengine_v1beta_generated_CmekConfigServiceStubSettings_UpdateCmekConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/identitymappingstoreservicestubsettings/createidentitymappingstore/SyncCreateIdentityMappingStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/identitymappingstoreservicestubsettings/createidentitymappingstore/SyncCreateIdentityMappingStore.java new file mode 100644 index 000000000000..8eeb2a6ce718 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/identitymappingstoreservicestubsettings/createidentitymappingstore/SyncCreateIdentityMappingStore.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreServiceStubSettings_CreateIdentityMappingStore_sync] +import com.google.cloud.discoveryengine.v1beta.stub.IdentityMappingStoreServiceStubSettings; +import java.time.Duration; + +public class SyncCreateIdentityMappingStore { + + public static void main(String[] args) throws Exception { + syncCreateIdentityMappingStore(); + } + + public static void syncCreateIdentityMappingStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IdentityMappingStoreServiceStubSettings.Builder identityMappingStoreServiceSettingsBuilder = + IdentityMappingStoreServiceStubSettings.newBuilder(); + identityMappingStoreServiceSettingsBuilder + .createIdentityMappingStoreSettings() + .setRetrySettings( + identityMappingStoreServiceSettingsBuilder + .createIdentityMappingStoreSettings() + .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()); + IdentityMappingStoreServiceStubSettings identityMappingStoreServiceSettings = + identityMappingStoreServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreServiceStubSettings_CreateIdentityMappingStore_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/identitymappingstoreservicestubsettings/deleteidentitymappingstore/SyncDeleteIdentityMappingStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/identitymappingstoreservicestubsettings/deleteidentitymappingstore/SyncDeleteIdentityMappingStore.java new file mode 100644 index 000000000000..f2089c02cad7 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/identitymappingstoreservicestubsettings/deleteidentitymappingstore/SyncDeleteIdentityMappingStore.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub.samples; + +// [START discoveryengine_v1beta_generated_IdentityMappingStoreServiceStubSettings_DeleteIdentityMappingStore_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.discoveryengine.v1beta.stub.IdentityMappingStoreServiceStubSettings; +import java.time.Duration; + +public class SyncDeleteIdentityMappingStore { + + public static void main(String[] args) throws Exception { + syncDeleteIdentityMappingStore(); + } + + public static void syncDeleteIdentityMappingStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + IdentityMappingStoreServiceStubSettings.Builder identityMappingStoreServiceSettingsBuilder = + IdentityMappingStoreServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + identityMappingStoreServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END discoveryengine_v1beta_generated_IdentityMappingStoreServiceStubSettings_DeleteIdentityMappingStore_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/licenseconfigservicestubsettings/createlicenseconfig/SyncCreateLicenseConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/licenseconfigservicestubsettings/createlicenseconfig/SyncCreateLicenseConfig.java new file mode 100644 index 000000000000..63d391913f31 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/licenseconfigservicestubsettings/createlicenseconfig/SyncCreateLicenseConfig.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub.samples; + +// [START discoveryengine_v1beta_generated_LicenseConfigServiceStubSettings_CreateLicenseConfig_sync] +import com.google.cloud.discoveryengine.v1beta.stub.LicenseConfigServiceStubSettings; +import java.time.Duration; + +public class SyncCreateLicenseConfig { + + public static void main(String[] args) throws Exception { + syncCreateLicenseConfig(); + } + + public static void syncCreateLicenseConfig() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LicenseConfigServiceStubSettings.Builder licenseConfigServiceSettingsBuilder = + LicenseConfigServiceStubSettings.newBuilder(); + licenseConfigServiceSettingsBuilder + .createLicenseConfigSettings() + .setRetrySettings( + licenseConfigServiceSettingsBuilder + .createLicenseConfigSettings() + .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()); + LicenseConfigServiceStubSettings licenseConfigServiceSettings = + licenseConfigServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_LicenseConfigServiceStubSettings_CreateLicenseConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/servingconfigservicestubsettings/updateservingconfig/SyncUpdateServingConfig.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/servingconfigservicestubsettings/createservingconfig/SyncCreateServingConfig.java similarity index 88% rename from java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/servingconfigservicestubsettings/updateservingconfig/SyncUpdateServingConfig.java rename to java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/servingconfigservicestubsettings/createservingconfig/SyncCreateServingConfig.java index 60f232e5a587..bf3999b9d257 100644 --- a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/servingconfigservicestubsettings/updateservingconfig/SyncUpdateServingConfig.java +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/servingconfigservicestubsettings/createservingconfig/SyncCreateServingConfig.java @@ -16,17 +16,17 @@ package com.google.cloud.discoveryengine.v1beta.stub.samples; -// [START discoveryengine_v1beta_generated_ServingConfigServiceStubSettings_UpdateServingConfig_sync] +// [START discoveryengine_v1beta_generated_ServingConfigServiceStubSettings_CreateServingConfig_sync] import com.google.cloud.discoveryengine.v1beta.stub.ServingConfigServiceStubSettings; import java.time.Duration; -public class SyncUpdateServingConfig { +public class SyncCreateServingConfig { public static void main(String[] args) throws Exception { - syncUpdateServingConfig(); + syncCreateServingConfig(); } - public static void syncUpdateServingConfig() throws Exception { + public static void syncCreateServingConfig() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -35,10 +35,10 @@ public static void syncUpdateServingConfig() throws Exception { ServingConfigServiceStubSettings.Builder servingConfigServiceSettingsBuilder = ServingConfigServiceStubSettings.newBuilder(); servingConfigServiceSettingsBuilder - .updateServingConfigSettings() + .createServingConfigSettings() .setRetrySettings( servingConfigServiceSettingsBuilder - .updateServingConfigSettings() + .createServingConfigSettings() .getRetrySettings() .toBuilder() .setInitialRetryDelayDuration(Duration.ofSeconds(1)) @@ -54,4 +54,4 @@ public static void syncUpdateServingConfig() throws Exception { servingConfigServiceSettingsBuilder.build(); } } -// [END discoveryengine_v1beta_generated_ServingConfigServiceStubSettings_UpdateServingConfig_sync] +// [END discoveryengine_v1beta_generated_ServingConfigServiceStubSettings_CreateServingConfig_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/userlicenseservicestubsettings/batchupdateuserlicenses/SyncBatchUpdateUserLicenses.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/userlicenseservicestubsettings/batchupdateuserlicenses/SyncBatchUpdateUserLicenses.java new file mode 100644 index 000000000000..f58f852b256b --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/userlicenseservicestubsettings/batchupdateuserlicenses/SyncBatchUpdateUserLicenses.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub.samples; + +// [START discoveryengine_v1beta_generated_UserLicenseServiceStubSettings_BatchUpdateUserLicenses_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.discoveryengine.v1beta.stub.UserLicenseServiceStubSettings; +import java.time.Duration; + +public class SyncBatchUpdateUserLicenses { + + public static void main(String[] args) throws Exception { + syncBatchUpdateUserLicenses(); + } + + public static void syncBatchUpdateUserLicenses() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserLicenseServiceStubSettings.Builder userLicenseServiceSettingsBuilder = + UserLicenseServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + userLicenseServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END discoveryengine_v1beta_generated_UserLicenseServiceStubSettings_BatchUpdateUserLicenses_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/userlicenseservicestubsettings/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/userlicenseservicestubsettings/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java new file mode 100644 index 000000000000..fb491b9edc1c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/userlicenseservicestubsettings/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub.samples; + +// [START discoveryengine_v1beta_generated_UserLicenseServiceStubSettings_ListLicenseConfigsUsageStats_sync] +import com.google.cloud.discoveryengine.v1beta.stub.UserLicenseServiceStubSettings; +import java.time.Duration; + +public class SyncListLicenseConfigsUsageStats { + + public static void main(String[] args) throws Exception { + syncListLicenseConfigsUsageStats(); + } + + public static void syncListLicenseConfigsUsageStats() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserLicenseServiceStubSettings.Builder userLicenseServiceSettingsBuilder = + UserLicenseServiceStubSettings.newBuilder(); + userLicenseServiceSettingsBuilder + .listLicenseConfigsUsageStatsSettings() + .setRetrySettings( + userLicenseServiceSettingsBuilder + .listLicenseConfigsUsageStatsSettings() + .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()); + UserLicenseServiceStubSettings userLicenseServiceSettings = + userLicenseServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_UserLicenseServiceStubSettings_ListLicenseConfigsUsageStats_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/userstoreservicestubsettings/getuserstore/SyncGetUserStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/userstoreservicestubsettings/getuserstore/SyncGetUserStore.java new file mode 100644 index 000000000000..c0b832d1fe64 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/stub/userstoreservicestubsettings/getuserstore/SyncGetUserStore.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.stub.samples; + +// [START discoveryengine_v1beta_generated_UserStoreServiceStubSettings_GetUserStore_sync] +import com.google.cloud.discoveryengine.v1beta.stub.UserStoreServiceStubSettings; +import java.time.Duration; + +public class SyncGetUserStore { + + public static void main(String[] args) throws Exception { + syncGetUserStore(); + } + + public static void syncGetUserStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserStoreServiceStubSettings.Builder userStoreServiceSettingsBuilder = + UserStoreServiceStubSettings.newBuilder(); + userStoreServiceSettingsBuilder + .getUserStoreSettings() + .setRetrySettings( + userStoreServiceSettingsBuilder + .getUserStoreSettings() + .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()); + UserStoreServiceStubSettings userStoreServiceSettings = userStoreServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_UserStoreServiceStubSettings_GetUserStore_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/batchupdateuserlicenses/AsyncBatchUpdateUserLicenses.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/batchupdateuserlicenses/AsyncBatchUpdateUserLicenses.java new file mode 100644 index 000000000000..49620a04008e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/batchupdateuserlicenses/AsyncBatchUpdateUserLicenses.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserLicenseService_BatchUpdateUserLicenses_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest; +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient; +import com.google.cloud.discoveryengine.v1beta.UserStoreName; +import com.google.longrunning.Operation; + +public class AsyncBatchUpdateUserLicenses { + + public static void main(String[] args) throws Exception { + asyncBatchUpdateUserLicenses(); + } + + public static void asyncBatchUpdateUserLicenses() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) { + BatchUpdateUserLicensesRequest request = + BatchUpdateUserLicensesRequest.newBuilder() + .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDeleteUnassignedUserLicenses(true) + .build(); + ApiFuture future = + userLicenseServiceClient.batchUpdateUserLicensesCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_UserLicenseService_BatchUpdateUserLicenses_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/batchupdateuserlicenses/AsyncBatchUpdateUserLicensesLRO.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/batchupdateuserlicenses/AsyncBatchUpdateUserLicensesLRO.java new file mode 100644 index 000000000000..07cee045f73d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/batchupdateuserlicenses/AsyncBatchUpdateUserLicensesLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserLicenseService_BatchUpdateUserLicenses_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesMetadata; +import com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest; +import com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse; +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient; +import com.google.cloud.discoveryengine.v1beta.UserStoreName; + +public class AsyncBatchUpdateUserLicensesLRO { + + public static void main(String[] args) throws Exception { + asyncBatchUpdateUserLicensesLRO(); + } + + public static void asyncBatchUpdateUserLicensesLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) { + BatchUpdateUserLicensesRequest request = + BatchUpdateUserLicensesRequest.newBuilder() + .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDeleteUnassignedUserLicenses(true) + .build(); + OperationFuture future = + userLicenseServiceClient.batchUpdateUserLicensesOperationCallable().futureCall(request); + // Do something. + BatchUpdateUserLicensesResponse response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_UserLicenseService_BatchUpdateUserLicenses_LRO_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/batchupdateuserlicenses/SyncBatchUpdateUserLicenses.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/batchupdateuserlicenses/SyncBatchUpdateUserLicenses.java new file mode 100644 index 000000000000..df624e5cc06c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/batchupdateuserlicenses/SyncBatchUpdateUserLicenses.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserLicenseService_BatchUpdateUserLicenses_sync] +import com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesRequest; +import com.google.cloud.discoveryengine.v1beta.BatchUpdateUserLicensesResponse; +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient; +import com.google.cloud.discoveryengine.v1beta.UserStoreName; + +public class SyncBatchUpdateUserLicenses { + + public static void main(String[] args) throws Exception { + syncBatchUpdateUserLicenses(); + } + + public static void syncBatchUpdateUserLicenses() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) { + BatchUpdateUserLicensesRequest request = + BatchUpdateUserLicensesRequest.newBuilder() + .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setDeleteUnassignedUserLicenses(true) + .build(); + BatchUpdateUserLicensesResponse response = + userLicenseServiceClient.batchUpdateUserLicensesAsync(request).get(); + } + } +} +// [END discoveryengine_v1beta_generated_UserLicenseService_BatchUpdateUserLicenses_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..a865e88770a0 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserLicenseService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient; +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserLicenseServiceSettings userLicenseServiceSettings = + UserLicenseServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + UserLicenseServiceClient userLicenseServiceClient = + UserLicenseServiceClient.create(userLicenseServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_UserLicenseService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..fd47e7a1787e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserLicenseService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient; +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserLicenseServiceSettings userLicenseServiceSettings = + UserLicenseServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + UserLicenseServiceClient userLicenseServiceClient = + UserLicenseServiceClient.create(userLicenseServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_UserLicenseService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..aad1c3e5eeac --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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_UserLicenseService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient; +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserLicenseServiceSettings userLicenseServiceSettings = + UserLicenseServiceSettings.newHttpJsonBuilder().build(); + UserLicenseServiceClient userLicenseServiceClient = + UserLicenseServiceClient.create(userLicenseServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_UserLicenseService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listlicenseconfigsusagestats/AsyncListLicenseConfigsUsageStats.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listlicenseconfigsusagestats/AsyncListLicenseConfigsUsageStats.java new file mode 100644 index 000000000000..ca96233d698a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listlicenseconfigsusagestats/AsyncListLicenseConfigsUsageStats.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserLicenseService_ListLicenseConfigsUsageStats_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse; +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient; +import com.google.cloud.discoveryengine.v1beta.UserStoreName; + +public class AsyncListLicenseConfigsUsageStats { + + public static void main(String[] args) throws Exception { + asyncListLicenseConfigsUsageStats(); + } + + public static void asyncListLicenseConfigsUsageStats() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) { + ListLicenseConfigsUsageStatsRequest request = + ListLicenseConfigsUsageStatsRequest.newBuilder() + .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .build(); + ApiFuture future = + userLicenseServiceClient.listLicenseConfigsUsageStatsCallable().futureCall(request); + // Do something. + ListLicenseConfigsUsageStatsResponse response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_UserLicenseService_ListLicenseConfigsUsageStats_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java new file mode 100644 index 000000000000..8e1b5f07d72e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserLicenseService_ListLicenseConfigsUsageStats_sync] +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsRequest; +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse; +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient; +import com.google.cloud.discoveryengine.v1beta.UserStoreName; + +public class SyncListLicenseConfigsUsageStats { + + public static void main(String[] args) throws Exception { + syncListLicenseConfigsUsageStats(); + } + + public static void syncListLicenseConfigsUsageStats() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) { + ListLicenseConfigsUsageStatsRequest request = + ListLicenseConfigsUsageStatsRequest.newBuilder() + .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .build(); + ListLicenseConfigsUsageStatsResponse response = + userLicenseServiceClient.listLicenseConfigsUsageStats(request); + } + } +} +// [END discoveryengine_v1beta_generated_UserLicenseService_ListLicenseConfigsUsageStats_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStatsString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStatsString.java new file mode 100644 index 000000000000..1b180d7410f0 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStatsString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserLicenseService_ListLicenseConfigsUsageStats_String_sync] +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse; +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient; +import com.google.cloud.discoveryengine.v1beta.UserStoreName; + +public class SyncListLicenseConfigsUsageStatsString { + + public static void main(String[] args) throws Exception { + syncListLicenseConfigsUsageStatsString(); + } + + public static void syncListLicenseConfigsUsageStatsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) { + String parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString(); + ListLicenseConfigsUsageStatsResponse response = + userLicenseServiceClient.listLicenseConfigsUsageStats(parent); + } + } +} +// [END discoveryengine_v1beta_generated_UserLicenseService_ListLicenseConfigsUsageStats_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStatsUserstorename.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStatsUserstorename.java new file mode 100644 index 000000000000..faeaad3e7c70 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStatsUserstorename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserLicenseService_ListLicenseConfigsUsageStats_Userstorename_sync] +import com.google.cloud.discoveryengine.v1beta.ListLicenseConfigsUsageStatsResponse; +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient; +import com.google.cloud.discoveryengine.v1beta.UserStoreName; + +public class SyncListLicenseConfigsUsageStatsUserstorename { + + public static void main(String[] args) throws Exception { + syncListLicenseConfigsUsageStatsUserstorename(); + } + + public static void syncListLicenseConfigsUsageStatsUserstorename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) { + UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + ListLicenseConfigsUsageStatsResponse response = + userLicenseServiceClient.listLicenseConfigsUsageStats(parent); + } + } +} +// [END discoveryengine_v1beta_generated_UserLicenseService_ListLicenseConfigsUsageStats_Userstorename_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/AsyncListUserLicenses.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/AsyncListUserLicenses.java new file mode 100644 index 000000000000..61d625cf096c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/AsyncListUserLicenses.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserLicenseService_ListUserLicenses_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest; +import com.google.cloud.discoveryengine.v1beta.UserLicense; +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient; +import com.google.cloud.discoveryengine.v1beta.UserStoreName; + +public class AsyncListUserLicenses { + + public static void main(String[] args) throws Exception { + asyncListUserLicenses(); + } + + public static void asyncListUserLicenses() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) { + ListUserLicensesRequest request = + ListUserLicensesRequest.newBuilder() + .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + userLicenseServiceClient.listUserLicensesPagedCallable().futureCall(request); + // Do something. + for (UserLicense element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_UserLicenseService_ListUserLicenses_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/AsyncListUserLicensesPaged.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/AsyncListUserLicensesPaged.java new file mode 100644 index 000000000000..816b75f34924 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/AsyncListUserLicensesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserLicenseService_ListUserLicenses_Paged_async] +import com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest; +import com.google.cloud.discoveryengine.v1beta.ListUserLicensesResponse; +import com.google.cloud.discoveryengine.v1beta.UserLicense; +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient; +import com.google.cloud.discoveryengine.v1beta.UserStoreName; +import com.google.common.base.Strings; + +public class AsyncListUserLicensesPaged { + + public static void main(String[] args) throws Exception { + asyncListUserLicensesPaged(); + } + + public static void asyncListUserLicensesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) { + ListUserLicensesRequest request = + ListUserLicensesRequest.newBuilder() + .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListUserLicensesResponse response = + userLicenseServiceClient.listUserLicensesCallable().call(request); + for (UserLicense element : response.getUserLicensesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END discoveryengine_v1beta_generated_UserLicenseService_ListUserLicenses_Paged_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/SyncListUserLicenses.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/SyncListUserLicenses.java new file mode 100644 index 000000000000..27f710ac2c97 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/SyncListUserLicenses.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserLicenseService_ListUserLicenses_sync] +import com.google.cloud.discoveryengine.v1beta.ListUserLicensesRequest; +import com.google.cloud.discoveryengine.v1beta.UserLicense; +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient; +import com.google.cloud.discoveryengine.v1beta.UserStoreName; + +public class SyncListUserLicenses { + + public static void main(String[] args) throws Exception { + syncListUserLicenses(); + } + + public static void syncListUserLicenses() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) { + ListUserLicensesRequest request = + ListUserLicensesRequest.newBuilder() + .setParent(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (UserLicense element : userLicenseServiceClient.listUserLicenses(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_UserLicenseService_ListUserLicenses_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/SyncListUserLicensesString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/SyncListUserLicensesString.java new file mode 100644 index 000000000000..877bc32d5a42 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/SyncListUserLicensesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserLicenseService_ListUserLicenses_String_sync] +import com.google.cloud.discoveryengine.v1beta.UserLicense; +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient; +import com.google.cloud.discoveryengine.v1beta.UserStoreName; + +public class SyncListUserLicensesString { + + public static void main(String[] args) throws Exception { + syncListUserLicensesString(); + } + + public static void syncListUserLicensesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) { + String parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString(); + for (UserLicense element : userLicenseServiceClient.listUserLicenses(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_UserLicenseService_ListUserLicenses_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/SyncListUserLicensesUserstorename.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/SyncListUserLicensesUserstorename.java new file mode 100644 index 000000000000..3c7924ee4122 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservice/listuserlicenses/SyncListUserLicensesUserstorename.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserLicenseService_ListUserLicenses_Userstorename_sync] +import com.google.cloud.discoveryengine.v1beta.UserLicense; +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceClient; +import com.google.cloud.discoveryengine.v1beta.UserStoreName; + +public class SyncListUserLicensesUserstorename { + + public static void main(String[] args) throws Exception { + syncListUserLicensesUserstorename(); + } + + public static void syncListUserLicensesUserstorename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserLicenseServiceClient userLicenseServiceClient = UserLicenseServiceClient.create()) { + UserStoreName parent = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + for (UserLicense element : userLicenseServiceClient.listUserLicenses(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END discoveryengine_v1beta_generated_UserLicenseService_ListUserLicenses_Userstorename_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservicesettings/batchupdateuserlicenses/SyncBatchUpdateUserLicenses.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservicesettings/batchupdateuserlicenses/SyncBatchUpdateUserLicenses.java new file mode 100644 index 000000000000..500d8b4ea60c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservicesettings/batchupdateuserlicenses/SyncBatchUpdateUserLicenses.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserLicenseServiceSettings_BatchUpdateUserLicenses_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceSettings; +import java.time.Duration; + +public class SyncBatchUpdateUserLicenses { + + public static void main(String[] args) throws Exception { + syncBatchUpdateUserLicenses(); + } + + public static void syncBatchUpdateUserLicenses() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserLicenseServiceSettings.Builder userLicenseServiceSettingsBuilder = + UserLicenseServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + userLicenseServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END discoveryengine_v1beta_generated_UserLicenseServiceSettings_BatchUpdateUserLicenses_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservicesettings/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservicesettings/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java new file mode 100644 index 000000000000..6e4b17e5a87a --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userlicenseservicesettings/listlicenseconfigsusagestats/SyncListLicenseConfigsUsageStats.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserLicenseServiceSettings_ListLicenseConfigsUsageStats_sync] +import com.google.cloud.discoveryengine.v1beta.UserLicenseServiceSettings; +import java.time.Duration; + +public class SyncListLicenseConfigsUsageStats { + + public static void main(String[] args) throws Exception { + syncListLicenseConfigsUsageStats(); + } + + public static void syncListLicenseConfigsUsageStats() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserLicenseServiceSettings.Builder userLicenseServiceSettingsBuilder = + UserLicenseServiceSettings.newBuilder(); + userLicenseServiceSettingsBuilder + .listLicenseConfigsUsageStatsSettings() + .setRetrySettings( + userLicenseServiceSettingsBuilder + .listLicenseConfigsUsageStatsSettings() + .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()); + UserLicenseServiceSettings userLicenseServiceSettings = + userLicenseServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_UserLicenseServiceSettings_ListLicenseConfigsUsageStats_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/create/SyncCreateSetCredentialsProvider.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..5a34d241e101 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserStoreService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.discoveryengine.v1beta.UserStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.UserStoreServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserStoreServiceSettings userStoreServiceSettings = + UserStoreServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + UserStoreServiceClient userStoreServiceClient = + UserStoreServiceClient.create(userStoreServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_UserStoreService_Create_SetCredentialsProvider_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/create/SyncCreateSetEndpoint.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..d2d08e9d799d --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserStoreService_Create_SetEndpoint_sync] +import com.google.cloud.discoveryengine.v1beta.UserStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.UserStoreServiceSettings; +import com.google.cloud.discoveryengine.v1beta.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserStoreServiceSettings userStoreServiceSettings = + UserStoreServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + UserStoreServiceClient userStoreServiceClient = + UserStoreServiceClient.create(userStoreServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_UserStoreService_Create_SetEndpoint_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/create/SyncCreateUseHttpJsonTransport.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..fbf4596d9900 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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_UserStoreService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.discoveryengine.v1beta.UserStoreServiceClient; +import com.google.cloud.discoveryengine.v1beta.UserStoreServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserStoreServiceSettings userStoreServiceSettings = + UserStoreServiceSettings.newHttpJsonBuilder().build(); + UserStoreServiceClient userStoreServiceClient = + UserStoreServiceClient.create(userStoreServiceSettings); + } +} +// [END discoveryengine_v1beta_generated_UserStoreService_Create_UseHttpJsonTransport_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/getuserstore/AsyncGetUserStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/getuserstore/AsyncGetUserStore.java new file mode 100644 index 000000000000..4d4f618af851 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/getuserstore/AsyncGetUserStore.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserStoreService_GetUserStore_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest; +import com.google.cloud.discoveryengine.v1beta.UserStore; +import com.google.cloud.discoveryengine.v1beta.UserStoreName; +import com.google.cloud.discoveryengine.v1beta.UserStoreServiceClient; + +public class AsyncGetUserStore { + + public static void main(String[] args) throws Exception { + asyncGetUserStore(); + } + + public static void asyncGetUserStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) { + GetUserStoreRequest request = + GetUserStoreRequest.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .build(); + ApiFuture future = + userStoreServiceClient.getUserStoreCallable().futureCall(request); + // Do something. + UserStore response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_UserStoreService_GetUserStore_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/getuserstore/SyncGetUserStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/getuserstore/SyncGetUserStore.java new file mode 100644 index 000000000000..e153490beb6c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/getuserstore/SyncGetUserStore.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserStoreService_GetUserStore_sync] +import com.google.cloud.discoveryengine.v1beta.GetUserStoreRequest; +import com.google.cloud.discoveryengine.v1beta.UserStore; +import com.google.cloud.discoveryengine.v1beta.UserStoreName; +import com.google.cloud.discoveryengine.v1beta.UserStoreServiceClient; + +public class SyncGetUserStore { + + public static void main(String[] args) throws Exception { + syncGetUserStore(); + } + + public static void syncGetUserStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) { + GetUserStoreRequest request = + GetUserStoreRequest.newBuilder() + .setName(UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString()) + .build(); + UserStore response = userStoreServiceClient.getUserStore(request); + } + } +} +// [END discoveryengine_v1beta_generated_UserStoreService_GetUserStore_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/getuserstore/SyncGetUserStoreString.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/getuserstore/SyncGetUserStoreString.java new file mode 100644 index 000000000000..5a4898fe3000 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/getuserstore/SyncGetUserStoreString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserStoreService_GetUserStore_String_sync] +import com.google.cloud.discoveryengine.v1beta.UserStore; +import com.google.cloud.discoveryengine.v1beta.UserStoreName; +import com.google.cloud.discoveryengine.v1beta.UserStoreServiceClient; + +public class SyncGetUserStoreString { + + public static void main(String[] args) throws Exception { + syncGetUserStoreString(); + } + + public static void syncGetUserStoreString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) { + String name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]").toString(); + UserStore response = userStoreServiceClient.getUserStore(name); + } + } +} +// [END discoveryengine_v1beta_generated_UserStoreService_GetUserStore_String_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/getuserstore/SyncGetUserStoreUserstorename.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/getuserstore/SyncGetUserStoreUserstorename.java new file mode 100644 index 000000000000..9ae7c2eb3b70 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/getuserstore/SyncGetUserStoreUserstorename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserStoreService_GetUserStore_Userstorename_sync] +import com.google.cloud.discoveryengine.v1beta.UserStore; +import com.google.cloud.discoveryengine.v1beta.UserStoreName; +import com.google.cloud.discoveryengine.v1beta.UserStoreServiceClient; + +public class SyncGetUserStoreUserstorename { + + public static void main(String[] args) throws Exception { + syncGetUserStoreUserstorename(); + } + + public static void syncGetUserStoreUserstorename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) { + UserStoreName name = UserStoreName.of("[PROJECT]", "[LOCATION]", "[USER_STORE]"); + UserStore response = userStoreServiceClient.getUserStore(name); + } + } +} +// [END discoveryengine_v1beta_generated_UserStoreService_GetUserStore_Userstorename_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/updateuserstore/AsyncUpdateUserStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/updateuserstore/AsyncUpdateUserStore.java new file mode 100644 index 000000000000..fa483d3320d4 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/updateuserstore/AsyncUpdateUserStore.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserStoreService_UpdateUserStore_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest; +import com.google.cloud.discoveryengine.v1beta.UserStore; +import com.google.cloud.discoveryengine.v1beta.UserStoreServiceClient; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateUserStore { + + public static void main(String[] args) throws Exception { + asyncUpdateUserStore(); + } + + public static void asyncUpdateUserStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) { + UpdateUserStoreRequest request = + UpdateUserStoreRequest.newBuilder() + .setUserStore(UserStore.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + userStoreServiceClient.updateUserStoreCallable().futureCall(request); + // Do something. + UserStore response = future.get(); + } + } +} +// [END discoveryengine_v1beta_generated_UserStoreService_UpdateUserStore_async] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/updateuserstore/SyncUpdateUserStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/updateuserstore/SyncUpdateUserStore.java new file mode 100644 index 000000000000..f7ebaf813753 --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/updateuserstore/SyncUpdateUserStore.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserStoreService_UpdateUserStore_sync] +import com.google.cloud.discoveryengine.v1beta.UpdateUserStoreRequest; +import com.google.cloud.discoveryengine.v1beta.UserStore; +import com.google.cloud.discoveryengine.v1beta.UserStoreServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateUserStore { + + public static void main(String[] args) throws Exception { + syncUpdateUserStore(); + } + + public static void syncUpdateUserStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) { + UpdateUserStoreRequest request = + UpdateUserStoreRequest.newBuilder() + .setUserStore(UserStore.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + UserStore response = userStoreServiceClient.updateUserStore(request); + } + } +} +// [END discoveryengine_v1beta_generated_UserStoreService_UpdateUserStore_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/updateuserstore/SyncUpdateUserStoreUserstoreFieldmask.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/updateuserstore/SyncUpdateUserStoreUserstoreFieldmask.java new file mode 100644 index 000000000000..d4121088257c --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservice/updateuserstore/SyncUpdateUserStoreUserstoreFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserStoreService_UpdateUserStore_UserstoreFieldmask_sync] +import com.google.cloud.discoveryengine.v1beta.UserStore; +import com.google.cloud.discoveryengine.v1beta.UserStoreServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateUserStoreUserstoreFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateUserStoreUserstoreFieldmask(); + } + + public static void syncUpdateUserStoreUserstoreFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (UserStoreServiceClient userStoreServiceClient = UserStoreServiceClient.create()) { + UserStore userStore = UserStore.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + UserStore response = userStoreServiceClient.updateUserStore(userStore, updateMask); + } + } +} +// [END discoveryengine_v1beta_generated_UserStoreService_UpdateUserStore_UserstoreFieldmask_sync] diff --git a/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservicesettings/getuserstore/SyncGetUserStore.java b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservicesettings/getuserstore/SyncGetUserStore.java new file mode 100644 index 000000000000..fcc06e4f429e --- /dev/null +++ b/java-discoveryengine/samples/snippets/generated/com/google/cloud/discoveryengine/v1beta/userstoreservicesettings/getuserstore/SyncGetUserStore.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.discoveryengine.v1beta.samples; + +// [START discoveryengine_v1beta_generated_UserStoreServiceSettings_GetUserStore_sync] +import com.google.cloud.discoveryengine.v1beta.UserStoreServiceSettings; +import java.time.Duration; + +public class SyncGetUserStore { + + public static void main(String[] args) throws Exception { + syncGetUserStore(); + } + + public static void syncGetUserStore() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + UserStoreServiceSettings.Builder userStoreServiceSettingsBuilder = + UserStoreServiceSettings.newBuilder(); + userStoreServiceSettingsBuilder + .getUserStoreSettings() + .setRetrySettings( + userStoreServiceSettingsBuilder + .getUserStoreSettings() + .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()); + UserStoreServiceSettings userStoreServiceSettings = userStoreServiceSettingsBuilder.build(); + } +} +// [END discoveryengine_v1beta_generated_UserStoreServiceSettings_GetUserStore_sync] 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 1a077bf395fe..ba4b53518b24 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 @@ -1637,6 +1637,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1beta1.ProbingDetails", "queryAllDeclaredConstructors": true, 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 66c143f20b4e..01990d9d22ba 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 @@ -288,6 +288,16 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_RUN_JOB = 20; */ CLOUD_RUN_JOB(20), + /** + * + * + *
            +     * Target is a DMS Private Connection. Used only for return traces.
            +     * 
            + * + * DMS_PRIVATE_CONNECTION = 21; + */ + DMS_PRIVATE_CONNECTION(21), UNRECOGNIZED(-1), ; @@ -524,6 +534,17 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CLOUD_RUN_JOB_VALUE = 20; + /** + * + * + *
            +     * Target is a DMS Private Connection. Used only for return traces.
            +     * 
            + * + * DMS_PRIVATE_CONNECTION = 21; + */ + public static final int DMS_PRIVATE_CONNECTION_VALUE = 21; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -588,6 +609,8 @@ public static Target forNumber(int value) { return GKE_POD; case 20: return CLOUD_RUN_JOB; + case 21: + return DMS_PRIVATE_CONNECTION; default: return null; } 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 0340b767cd20..a07f99463a04 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 @@ -508,6 +508,16 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * DROPPED_INSIDE_CLOUD_SQL_SERVICE = 19; */ DROPPED_INSIDE_CLOUD_SQL_SERVICE(19), + /** + * + * + *
            +     * Packet was dropped inside DMS Private Connection.
            +     * 
            + * + * DROPPED_INSIDE_DMS_PRIVATE_CONNECTION = 114; + */ + DROPPED_INSIDE_DMS_PRIVATE_CONNECTION(114), /** * * @@ -1246,6 +1256,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * NO_VALID_ROUTE_FROM_GOOGLE_MANAGED_NETWORK_TO_DESTINATION = 110; */ NO_VALID_ROUTE_FROM_GOOGLE_MANAGED_NETWORK_TO_DESTINATION(110), + /** + * + * + *
            +     * Packet is dropped due to no running instance found for private
            +     * connection.
            +     * 
            + * + * PRIVATE_CONNECTION_NO_RUNNING_INSTANCE = 111; + */ + PRIVATE_CONNECTION_NO_RUNNING_INSTANCE(111), UNRECOGNIZED(-1), ; @@ -1720,6 +1741,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DROPPED_INSIDE_CLOUD_SQL_SERVICE_VALUE = 19; + /** + * + * + *
            +     * Packet was dropped inside DMS Private Connection.
            +     * 
            + * + * DROPPED_INSIDE_DMS_PRIVATE_CONNECTION = 114; + */ + public static final int DROPPED_INSIDE_DMS_PRIVATE_CONNECTION_VALUE = 114; + /** * * @@ -2525,6 +2557,18 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { */ public static final int NO_VALID_ROUTE_FROM_GOOGLE_MANAGED_NETWORK_TO_DESTINATION_VALUE = 110; + /** + * + * + *
            +     * Packet is dropped due to no running instance found for private
            +     * connection.
            +     * 
            + * + * PRIVATE_CONNECTION_NO_RUNNING_INSTANCE = 111; + */ + public static final int PRIVATE_CONNECTION_NO_RUNNING_INSTANCE_VALUE = 111; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -2627,6 +2671,8 @@ public static Cause forNumber(int value) { return DROPPED_INSIDE_GKE_SERVICE; case 19: return DROPPED_INSIDE_CLOUD_SQL_SERVICE; + case 114: + return DROPPED_INSIDE_DMS_PRIVATE_CONNECTION; case 20: return GOOGLE_MANAGED_SERVICE_NO_PEERING; case 38: @@ -2761,6 +2807,8 @@ public static Cause forNumber(int value) { return GKE_NETWORK_POLICY; case 110: return NO_VALID_ROUTE_FROM_GOOGLE_MANAGED_NETWORK_TO_DESTINATION; + case 111: + return PRIVATE_CONNECTION_NO_RUNNING_INSTANCE; 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 4d64d8330bee..535dc57e56ee 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 @@ -64,6 +64,7 @@ private Endpoint() { redisInstance_ = ""; redisCluster_ = ""; gkePod_ = ""; + dmsPrivateConnection_ = ""; cloudRunJob_ = ""; network_ = ""; networkType_ = 0; @@ -3438,6 +3439,65 @@ public com.google.protobuf.ByteString getGkePodBytes() { } } + public static final int DMS_PRIVATE_CONNECTION_FIELD_NUMBER = 22; + + @SuppressWarnings("serial") + private volatile java.lang.Object dmsPrivateConnection_ = ""; + + /** + * + * + *
            +   * A [DMS Private
            +   * Connection](https://docs.cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.privateConnections)
            +   * name format:
            +   * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
            +   * 
            + * + * string dms_private_connection = 22; + * + * @return The dmsPrivateConnection. + */ + @java.lang.Override + public java.lang.String getDmsPrivateConnection() { + java.lang.Object ref = dmsPrivateConnection_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dmsPrivateConnection_ = s; + return s; + } + } + + /** + * + * + *
            +   * A [DMS Private
            +   * Connection](https://docs.cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.privateConnections)
            +   * name format:
            +   * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
            +   * 
            + * + * string dms_private_connection = 22; + * + * @return The bytes for dmsPrivateConnection. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDmsPrivateConnectionBytes() { + java.lang.Object ref = dmsPrivateConnection_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dmsPrivateConnection_ = 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_; @@ -3933,6 +3993,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gkePod_)) { com.google.protobuf.GeneratedMessage.writeString(output, 21, gkePod_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dmsPrivateConnection_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 22, dmsPrivateConnection_); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloudRunJob_)) { com.google.protobuf.GeneratedMessage.writeString(output, 24, cloudRunJob_); } @@ -4004,6 +4067,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gkePod_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(21, gkePod_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dmsPrivateConnection_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(22, dmsPrivateConnection_); + } if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloudRunJob_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(24, cloudRunJob_); } @@ -4045,6 +4111,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRedisInstance().equals(other.getRedisInstance())) return false; if (!getRedisCluster().equals(other.getRedisCluster())) return false; if (!getGkePod().equals(other.getGkePod())) return false; + if (!getDmsPrivateConnection().equals(other.getDmsPrivateConnection())) return false; if (hasCloudFunction() != other.hasCloudFunction()) return false; if (hasCloudFunction()) { if (!getCloudFunction().equals(other.getCloudFunction())) return false; @@ -4104,6 +4171,8 @@ public int hashCode() { hash = (53 * hash) + getRedisCluster().hashCode(); hash = (37 * hash) + GKE_POD_FIELD_NUMBER; hash = (53 * hash) + getGkePod().hashCode(); + hash = (37 * hash) + DMS_PRIVATE_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getDmsPrivateConnection().hashCode(); if (hasCloudFunction()) { hash = (37 * hash) + CLOUD_FUNCTION_FIELD_NUMBER; hash = (53 * hash) + getCloudFunction().hashCode(); @@ -4288,6 +4357,7 @@ public Builder clear() { redisInstance_ = ""; redisCluster_ = ""; gkePod_ = ""; + dmsPrivateConnection_ = ""; cloudFunction_ = null; if (cloudFunctionBuilder_ != null) { cloudFunctionBuilder_.dispose(); @@ -4387,30 +4457,33 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1beta1.Endpoint r result.gkePod_ = gkePod_; } if (((from_bitField0_ & 0x00002000) != 0)) { + result.dmsPrivateConnection_ = dmsPrivateConnection_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { result.cloudFunction_ = cloudFunctionBuilder_ == null ? cloudFunction_ : cloudFunctionBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.appEngineVersion_ = appEngineVersionBuilder_ == null ? appEngineVersion_ : appEngineVersionBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.cloudRunRevision_ = cloudRunRevisionBuilder_ == null ? cloudRunRevision_ : cloudRunRevisionBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.cloudRunJob_ = cloudRunJob_; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.network_ = network_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.networkType_ = networkType_; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.projectId_ = projectId_; } result.bitField0_ |= to_bitField0_; @@ -4488,6 +4561,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.Endpoint oth bitField0_ |= 0x00001000; onChanged(); } + if (!other.getDmsPrivateConnection().isEmpty()) { + dmsPrivateConnection_ = other.dmsPrivateConnection_; + bitField0_ |= 0x00002000; + onChanged(); + } if (other.hasCloudFunction()) { mergeCloudFunction(other.getCloudFunction()); } @@ -4499,12 +4577,12 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.Endpoint oth } if (!other.getCloudRunJob().isEmpty()) { cloudRunJob_ = other.cloudRunJob_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } if (!other.getNetwork().isEmpty()) { network_ = other.network_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } if (other.networkType_ != 0) { @@ -4512,7 +4590,7 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.Endpoint oth } if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -4562,19 +4640,19 @@ public Builder mergeFrom( case 34: { network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 34 case 40: { networkType_ = input.readEnum(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 40 case 50: { projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 50 case 58: @@ -4593,21 +4671,21 @@ public Builder mergeFrom( { input.readMessage( internalGetCloudFunctionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 82 case 90: { input.readMessage( internalGetAppEngineVersionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 90 case 98: { input.readMessage( internalGetCloudRunRevisionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 98 case 106: @@ -4658,10 +4736,16 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 170 + case 178: + { + dmsPrivateConnection_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 178 case 194: { cloudRunJob_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 194 default: @@ -6198,6 +6282,132 @@ public Builder setGkePodBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object dmsPrivateConnection_ = ""; + + /** + * + * + *
            +     * A [DMS Private
            +     * Connection](https://docs.cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.privateConnections)
            +     * name format:
            +     * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
            +     * 
            + * + * string dms_private_connection = 22; + * + * @return The dmsPrivateConnection. + */ + public java.lang.String getDmsPrivateConnection() { + java.lang.Object ref = dmsPrivateConnection_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dmsPrivateConnection_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A [DMS Private
            +     * Connection](https://docs.cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.privateConnections)
            +     * name format:
            +     * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
            +     * 
            + * + * string dms_private_connection = 22; + * + * @return The bytes for dmsPrivateConnection. + */ + public com.google.protobuf.ByteString getDmsPrivateConnectionBytes() { + java.lang.Object ref = dmsPrivateConnection_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dmsPrivateConnection_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A [DMS Private
            +     * Connection](https://docs.cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.privateConnections)
            +     * name format:
            +     * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
            +     * 
            + * + * string dms_private_connection = 22; + * + * @param value The dmsPrivateConnection to set. + * @return This builder for chaining. + */ + public Builder setDmsPrivateConnection(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dmsPrivateConnection_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A [DMS Private
            +     * Connection](https://docs.cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.privateConnections)
            +     * name format:
            +     * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
            +     * 
            + * + * string dms_private_connection = 22; + * + * @return This builder for chaining. + */ + public Builder clearDmsPrivateConnection() { + dmsPrivateConnection_ = getDefaultInstance().getDmsPrivateConnection(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A [DMS Private
            +     * Connection](https://docs.cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.privateConnections)
            +     * name format:
            +     * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
            +     * 
            + * + * string dms_private_connection = 22; + * + * @param value The bytes for dmsPrivateConnection to set. + * @return This builder for chaining. + */ + public Builder setDmsPrivateConnectionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dmsPrivateConnection_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + private com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint cloudFunction_; private com.google.protobuf.SingleFieldBuilder< @@ -6221,7 +6431,7 @@ public Builder setGkePodBytes(com.google.protobuf.ByteString value) { * @return Whether the cloudFunction field is set. */ public boolean hasCloudFunction() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -6272,7 +6482,7 @@ public Builder setCloudFunction( } else { cloudFunctionBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -6297,7 +6507,7 @@ public Builder setCloudFunction( } else { cloudFunctionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -6317,7 +6527,7 @@ public Builder setCloudFunction( public Builder mergeCloudFunction( com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint value) { if (cloudFunctionBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && cloudFunction_ != null && cloudFunction_ != com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint @@ -6330,7 +6540,7 @@ public Builder mergeCloudFunction( cloudFunctionBuilder_.mergeFrom(value); } if (cloudFunction_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -6349,7 +6559,7 @@ public Builder mergeCloudFunction( *
            */ public Builder clearCloudFunction() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); cloudFunction_ = null; if (cloudFunctionBuilder_ != null) { cloudFunctionBuilder_.dispose(); @@ -6373,7 +6583,7 @@ public Builder clearCloudFunction() { */ public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudFunctionEndpoint.Builder getCloudFunctionBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return internalGetCloudFunctionFieldBuilder().getBuilder(); } @@ -6455,7 +6665,7 @@ public Builder clearCloudFunction() { * @return Whether the appEngineVersion field is set. */ public boolean hasAppEngineVersion() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -6508,7 +6718,7 @@ public Builder setAppEngineVersion( } else { appEngineVersionBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -6534,7 +6744,7 @@ public Builder setAppEngineVersion( } else { appEngineVersionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -6555,7 +6765,7 @@ public Builder setAppEngineVersion( public Builder mergeAppEngineVersion( com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint value) { if (appEngineVersionBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0) + if (((bitField0_ & 0x00008000) != 0) && appEngineVersion_ != null && appEngineVersion_ != com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint @@ -6568,7 +6778,7 @@ public Builder mergeAppEngineVersion( appEngineVersionBuilder_.mergeFrom(value); } if (appEngineVersion_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -6588,7 +6798,7 @@ public Builder mergeAppEngineVersion( *
            */ public Builder clearAppEngineVersion() { - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); appEngineVersion_ = null; if (appEngineVersionBuilder_ != null) { appEngineVersionBuilder_.dispose(); @@ -6613,7 +6823,7 @@ public Builder clearAppEngineVersion() { */ public com.google.cloud.networkmanagement.v1beta1.Endpoint.AppEngineVersionEndpoint.Builder getAppEngineVersionBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return internalGetAppEngineVersionFieldBuilder().getBuilder(); } @@ -6699,7 +6909,7 @@ public Builder clearAppEngineVersion() { * @return Whether the cloudRunRevision field is set. */ public boolean hasCloudRunRevision() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -6752,7 +6962,7 @@ public Builder setCloudRunRevision( } else { cloudRunRevisionBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6778,7 +6988,7 @@ public Builder setCloudRunRevision( } else { cloudRunRevisionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -6799,7 +7009,7 @@ public Builder setCloudRunRevision( public Builder mergeCloudRunRevision( com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint value) { if (cloudRunRevisionBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && cloudRunRevision_ != null && cloudRunRevision_ != com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint @@ -6812,7 +7022,7 @@ public Builder mergeCloudRunRevision( cloudRunRevisionBuilder_.mergeFrom(value); } if (cloudRunRevision_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -6832,7 +7042,7 @@ public Builder mergeCloudRunRevision( *
            */ public Builder clearCloudRunRevision() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); cloudRunRevision_ = null; if (cloudRunRevisionBuilder_ != null) { cloudRunRevisionBuilder_.dispose(); @@ -6857,7 +7067,7 @@ public Builder clearCloudRunRevision() { */ public com.google.cloud.networkmanagement.v1beta1.Endpoint.CloudRunRevisionEndpoint.Builder getCloudRunRevisionBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return internalGetCloudRunRevisionFieldBuilder().getBuilder(); } @@ -6996,7 +7206,7 @@ public Builder setCloudRunJob(java.lang.String value) { throw new NullPointerException(); } cloudRunJob_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -7018,7 +7228,7 @@ public Builder setCloudRunJob(java.lang.String value) { */ public Builder clearCloudRunJob() { cloudRunJob_ = getDefaultInstance().getCloudRunJob(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } @@ -7045,7 +7255,7 @@ public Builder setCloudRunJobBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); cloudRunJob_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -7124,7 +7334,7 @@ public Builder setNetwork(java.lang.String value) { throw new NullPointerException(); } network_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -7145,7 +7355,7 @@ public Builder setNetwork(java.lang.String value) { */ public Builder clearNetwork() { network_ = getDefaultInstance().getNetwork(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } @@ -7171,7 +7381,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); network_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -7210,7 +7420,7 @@ public int getNetworkTypeValue() { */ public Builder setNetworkTypeValue(int value) { networkType_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -7254,7 +7464,7 @@ public Builder setNetworkType( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; networkType_ = value.getNumber(); onChanged(); return this; @@ -7273,7 +7483,7 @@ public Builder setNetworkType( * @return This builder for chaining. */ public Builder clearNetworkType() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); networkType_ = 0; onChanged(); return this; @@ -7347,7 +7557,7 @@ public Builder setProjectId(java.lang.String value) { throw new NullPointerException(); } projectId_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -7366,7 +7576,7 @@ public Builder setProjectId(java.lang.String value) { */ public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } @@ -7390,7 +7600,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); projectId_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; 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 0d024f9887f2..f81e928a30e6 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 @@ -436,6 +436,38 @@ public interface EndpointOrBuilder */ com.google.protobuf.ByteString getGkePodBytes(); + /** + * + * + *
            +   * A [DMS Private
            +   * Connection](https://docs.cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.privateConnections)
            +   * name format:
            +   * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
            +   * 
            + * + * string dms_private_connection = 22; + * + * @return The dmsPrivateConnection. + */ + java.lang.String getDmsPrivateConnection(); + + /** + * + * + *
            +   * A [DMS Private
            +   * Connection](https://docs.cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.privateConnections)
            +   * name format:
            +   * projects/{project}/locations/{location}/privateConnections/{privateConnection}.
            +   * 
            + * + * string dms_private_connection = 22; + * + * @return The bytes for dmsPrivateConnection. + */ + com.google.protobuf.ByteString getDmsPrivateConnectionBytes(); + /** * * 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 5205063ee1b3..dfbb82bbbf88 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 @@ -652,7 +652,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=420 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=426 * @return The serviceAccount. */ @java.lang.Override @@ -679,7 +679,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=420 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=426 * @return The bytes for serviceAccount. */ @java.lang.Override @@ -763,7 +763,7 @@ public com.google.protobuf.ByteString getPscNetworkAttachmentUriBytes() { * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=427 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=433 * @return The running. */ @java.lang.Override @@ -2237,7 +2237,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=420 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=426 * @return The serviceAccount. */ @java.lang.Deprecated @@ -2263,7 +2263,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=420 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=426 * @return The bytes for serviceAccount. */ @java.lang.Deprecated @@ -2289,7 +2289,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=420 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=426 * @param value The serviceAccount to set. * @return This builder for chaining. */ @@ -2314,7 +2314,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=420 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=426 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2335,7 +2335,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=420 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=426 * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ @@ -2475,7 +2475,7 @@ public Builder setPscNetworkAttachmentUriBytes(com.google.protobuf.ByteString va * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=427 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=433 * @return The running. */ @java.lang.Override @@ -2495,7 +2495,7 @@ public boolean getRunning() { * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=427 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=433 * @param value The running to set. * @return This builder for chaining. */ @@ -2519,7 +2519,7 @@ public Builder setRunning(boolean value) { * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=427 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=433 * @return This builder for chaining. */ @java.lang.Deprecated 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 05544d87209b..d77e541af946 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 @@ -246,7 +246,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=420 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=426 * @return The serviceAccount. */ @java.lang.Deprecated @@ -262,7 +262,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=420 + * See google/cloud/networkmanagement/v1beta1/trace.proto;l=426 * @return The bytes for serviceAccount. */ @java.lang.Deprecated @@ -305,7 +305,7 @@ public interface InstanceInfoOrBuilder * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=427 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=433 * @return The running. */ @java.lang.Deprecated 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 f230745f5086..c3970d34c1ad 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 @@ -572,7 +572,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=899 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=905 * @return The healthCheckUri. */ @java.lang.Override @@ -601,7 +601,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=899 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=905 * @return The bytes for healthCheckUri. */ @java.lang.Override @@ -1381,7 +1381,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=899 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=905 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -1409,7 +1409,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=899 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=905 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated @@ -1437,7 +1437,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=899 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=905 * @param value The healthCheckUri to set. * @return This builder for chaining. */ @@ -1464,7 +1464,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=899 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=905 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1487,7 +1487,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=899 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=905 * @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 18c7c67a169a..df199a31ce58 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 @@ -69,7 +69,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=899 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=905 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -87,7 +87,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=899 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=905 * @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/PrivateConnectionInfo.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/PrivateConnectionInfo.java new file mode 100644 index 000000000000..875a229a30fd --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/PrivateConnectionInfo.java @@ -0,0 +1,611 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networkmanagement/v1beta1/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkmanagement.v1beta1; + +/** + * + * + *
            + * For display only. Metadata associated with a Private Connection.
            + * 
            + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo} + */ +@com.google.protobuf.Generated +public final class PrivateConnectionInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) + PrivateConnectionInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PrivateConnectionInfo"); + } + + // Use PrivateConnectionInfo.newBuilder() to construct. + private PrivateConnectionInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private PrivateConnectionInfo() { + uri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_PrivateConnectionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_PrivateConnectionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.class, + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.Builder.class); + } + + public static final int URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
            +   * URI of the Private Connection in format
            +   * "projects/{project_id}/locations/{location}/privateConnections/{private_connection_id}"
            +   * 
            + * + * 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 Private Connection in format
            +   * "projects/{project_id}/locations/{location}/privateConnections/{private_connection_id}"
            +   * 
            + * + * 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.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.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.cloud.networkmanagement.v1beta1.PrivateConnectionInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo other = + (com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) 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.cloud.networkmanagement.v1beta1.PrivateConnectionInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo 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.PrivateConnectionInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo parseFrom( + 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.PrivateConnectionInfo parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo 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.PrivateConnectionInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * For display only. Metadata associated with a Private Connection.
            +   * 
            + * + * Protobuf type {@code google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_PrivateConnectionInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_PrivateConnectionInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.class, + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.cloud.networkmanagement.v1beta1.TraceProto + .internal_static_google_cloud_networkmanagement_v1beta1_PrivateConnectionInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo + getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo build() { + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo buildPartial() { + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo result = + new com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) { + return mergeFrom((com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo other) { + if (other + == com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.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_ = ""; + + /** + * + * + *
            +     * URI of the Private Connection in format
            +     * "projects/{project_id}/locations/{location}/privateConnections/{private_connection_id}"
            +     * 
            + * + * 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 Private Connection in format
            +     * "projects/{project_id}/locations/{location}/privateConnections/{private_connection_id}"
            +     * 
            + * + * 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 Private Connection in format
            +     * "projects/{project_id}/locations/{location}/privateConnections/{private_connection_id}"
            +     * 
            + * + * 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 Private Connection in format
            +     * "projects/{project_id}/locations/{location}/privateConnections/{private_connection_id}"
            +     * 
            + * + * string uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * URI of the Private Connection in format
            +     * "projects/{project_id}/locations/{location}/privateConnections/{private_connection_id}"
            +     * 
            + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) + private static final com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo(); + } + + public static com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrivateConnectionInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.PrivateConnectionInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/PrivateConnectionInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/PrivateConnectionInfoOrBuilder.java new file mode 100644 index 000000000000..b0f98856120d --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/PrivateConnectionInfoOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networkmanagement/v1beta1/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkmanagement.v1beta1; + +@com.google.protobuf.Generated +public interface PrivateConnectionInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * URI of the Private Connection in format
            +   * "projects/{project_id}/locations/{location}/privateConnections/{private_connection_id}"
            +   * 
            + * + * string uri = 1; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
            +   * URI of the Private Connection in format
            +   * "projects/{project_id}/locations/{location}/privateConnections/{private_connection_id}"
            +   * 
            + * + * string uri = 1; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); +} 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 e91c143ebd2e..cc843d692f0b 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 @@ -1113,7 +1113,7 @@ public com.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType getNextH * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=684 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=690 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Override @@ -1135,7 +1135,7 @@ public int getRouteScopeValue() { * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=684 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=690 * @return The routeScope. */ @java.lang.Override @@ -1387,7 +1387,7 @@ public com.google.protobuf.ByteString getDestIpRangeBytes() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=706 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=712 * @return The nextHop. */ @java.lang.Override @@ -1416,7 +1416,7 @@ public java.lang.String getNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=706 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=712 * @return The bytes for nextHop. */ @java.lang.Override @@ -2065,7 +2065,7 @@ public com.google.protobuf.ByteString getAdvertisedRouteSourceRouterUriBytes() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=746 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Override @@ -2088,7 +2088,7 @@ public boolean hasAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=746 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 * @return The advertisedRouteNextHopUri. */ @java.lang.Override @@ -2119,7 +2119,7 @@ public java.lang.String getAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=746 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Override @@ -3576,7 +3576,7 @@ public Builder clearNextHopType() { * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=684 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=690 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Override @@ -3598,7 +3598,7 @@ public int getRouteScopeValue() { * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=684 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=690 * @param value The enum numeric value on the wire for routeScope to set. * @return This builder for chaining. */ @@ -3623,7 +3623,7 @@ public Builder setRouteScopeValue(int value) { * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=684 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=690 * @return The routeScope. */ @java.lang.Override @@ -3649,7 +3649,7 @@ public com.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScope getRouteS * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=684 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=690 * @param value The routeScope to set. * @return This builder for chaining. */ @@ -3678,7 +3678,7 @@ public Builder setRouteScope( * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=684 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=690 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4172,7 +4172,7 @@ public Builder setDestIpRangeBytes(com.google.protobuf.ByteString value) { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=706 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=712 * @return The nextHop. */ @java.lang.Deprecated @@ -4200,7 +4200,7 @@ public java.lang.String getNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=706 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=712 * @return The bytes for nextHop. */ @java.lang.Deprecated @@ -4228,7 +4228,7 @@ public com.google.protobuf.ByteString getNextHopBytes() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=706 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=712 * @param value The nextHop to set. * @return This builder for chaining. */ @@ -4255,7 +4255,7 @@ public Builder setNextHop(java.lang.String value) { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=706 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=712 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4278,7 +4278,7 @@ public Builder clearNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=706 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=712 * @param value The bytes for nextHop to set. * @return This builder for chaining. */ @@ -5716,7 +5716,7 @@ public Builder setAdvertisedRouteSourceRouterUriBytes(com.google.protobuf.ByteSt * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=746 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Deprecated @@ -5738,7 +5738,7 @@ public boolean hasAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=746 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 * @return The advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -5768,7 +5768,7 @@ public java.lang.String getAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=746 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -5798,7 +5798,7 @@ public com.google.protobuf.ByteString getAdvertisedRouteNextHopUriBytes() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=746 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 * @param value The advertisedRouteNextHopUri to set. * @return This builder for chaining. */ @@ -5827,7 +5827,7 @@ public Builder setAdvertisedRouteNextHopUri(java.lang.String value) { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=746 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 * @return This builder for chaining. */ @java.lang.Deprecated @@ -5852,7 +5852,7 @@ public Builder clearAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=746 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 * @param value The bytes for advertisedRouteNextHopUri 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/RouteInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1beta1/src/main/java/com/google/cloud/networkmanagement/v1beta1/RouteInfoOrBuilder.java index 038c35620dd5..188ba364c879 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 @@ -91,7 +91,7 @@ public interface RouteInfoOrBuilder * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=684 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=690 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface RouteInfoOrBuilder * * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=684 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=690 * @return The routeScope. */ @java.lang.Deprecated @@ -242,7 +242,7 @@ public interface RouteInfoOrBuilder * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=706 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=712 * @return The nextHop. */ @java.lang.Deprecated @@ -260,7 +260,7 @@ public interface RouteInfoOrBuilder * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=706 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=712 * @return The bytes for nextHop. */ @java.lang.Deprecated @@ -687,7 +687,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=746 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Deprecated @@ -707,7 +707,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=746 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 * @return The advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -727,7 +727,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1beta1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=746 + * deprecated. See google/cloud/networkmanagement/v1beta1/trace.proto;l=752 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Deprecated 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 32497c2b53d6..019f5e74ceab 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 @@ -274,6 +274,16 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * START_FROM_SERVERLESS_NEG = 31; */ START_FROM_SERVERLESS_NEG(31), + /** + * + * + *
            +     * Initial state: packet originating from a DMS Private Connection.
            +     * 
            + * + * START_FROM_DMS_PRIVATE_CONNECTION = 48; + */ + START_FROM_DMS_PRIVATE_CONNECTION(48), /** * * @@ -812,6 +822,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int START_FROM_SERVERLESS_NEG_VALUE = 31; + /** + * + * + *
            +     * Initial state: packet originating from a DMS Private Connection.
            +     * 
            + * + * START_FROM_DMS_PRIVATE_CONNECTION = 48; + */ + public static final int START_FROM_DMS_PRIVATE_CONNECTION_VALUE = 48; + /** * * @@ -1216,6 +1237,8 @@ public static State forNumber(int value) { return START_FROM_PSC_PUBLISHED_SERVICE; case 31: return START_FROM_SERVERLESS_NEG; + case 48: + return START_FROM_DMS_PRIVATE_CONNECTION; case 4: return APPLY_INGRESS_FIREWALL_RULE; case 5: @@ -1376,6 +1399,7 @@ public enum StepInfoCase STORAGE_BUCKET(28), SERVERLESS_NEG(29), NGFW_PACKET_INSPECTION(42), + DMS_PRIVATE_CONNECTION(43), STEPINFO_NOT_SET(0); private final int value; @@ -1469,6 +1493,8 @@ public static StepInfoCase forNumber(int value) { return SERVERLESS_NEG; case 42: return NGFW_PACKET_INSPECTION; + case 43: + return DMS_PRIVATE_CONNECTION; case 0: return STEPINFO_NOT_SET; default: @@ -2628,7 +2654,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=319 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=322 * @return Whether the loadBalancer field is set. */ @java.lang.Override @@ -2650,7 +2676,7 @@ public boolean hasLoadBalancer() { * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=319 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=322 * @return The loadBalancer. */ @java.lang.Override @@ -3778,6 +3804,68 @@ public boolean hasNgfwPacketInspection() { return com.google.cloud.networkmanagement.v1beta1.NgfwPacketInspectionInfo.getDefaultInstance(); } + public static final int DMS_PRIVATE_CONNECTION_FIELD_NUMBER = 43; + + /** + * + * + *
            +   * Display information of a DMS Private Connection.
            +   * 
            + * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo dms_private_connection = 43; + * + * + * @return Whether the dmsPrivateConnection field is set. + */ + @java.lang.Override + public boolean hasDmsPrivateConnection() { + return stepInfoCase_ == 43; + } + + /** + * + * + *
            +   * Display information of a DMS Private Connection.
            +   * 
            + * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo dms_private_connection = 43; + * + * + * @return The dmsPrivateConnection. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo + getDmsPrivateConnection() { + if (stepInfoCase_ == 43) { + return (com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.getDefaultInstance(); + } + + /** + * + * + *
            +   * Display information of a DMS Private Connection.
            +   * 
            + * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo dms_private_connection = 43; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfoOrBuilder + getDmsPrivateConnectionOrBuilder() { + if (stepInfoCase_ == 43) { + return (com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3937,6 +4025,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 42, (com.google.cloud.networkmanagement.v1beta1.NgfwPacketInspectionInfo) stepInfo_); } + if (stepInfoCase_ == 43) { + output.writeMessage( + 43, (com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) stepInfo_); + } if (stepInfoCase_ == 45) { output.writeMessage( 45, (com.google.cloud.networkmanagement.v1beta1.CloudRunJobInfo) stepInfo_); @@ -4148,6 +4240,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 42, (com.google.cloud.networkmanagement.v1beta1.NgfwPacketInspectionInfo) stepInfo_); } + if (stepInfoCase_ == 43) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 43, (com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) stepInfo_); + } if (stepInfoCase_ == 45) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -4288,6 +4385,9 @@ public boolean equals(final java.lang.Object obj) { case 42: if (!getNgfwPacketInspection().equals(other.getNgfwPacketInspection())) return false; break; + case 43: + if (!getDmsPrivateConnection().equals(other.getDmsPrivateConnection())) return false; + break; case 0: default: } @@ -4459,6 +4559,10 @@ public int hashCode() { hash = (37 * hash) + NGFW_PACKET_INSPECTION_FIELD_NUMBER; hash = (53 * hash) + getNgfwPacketInspection().hashCode(); break; + case 43: + hash = (37 * hash) + DMS_PRIVATE_CONNECTION_FIELD_NUMBER; + hash = (53 * hash) + getDmsPrivateConnection().hashCode(); + break; case 0: default: } @@ -4719,6 +4823,9 @@ public Builder clear() { if (ngfwPacketInspectionBuilder_ != null) { ngfwPacketInspectionBuilder_.clear(); } + if (dmsPrivateConnectionBuilder_ != null) { + dmsPrivateConnectionBuilder_.clear(); + } stepInfoCase_ = 0; stepInfo_ = null; return this; @@ -4893,6 +5000,9 @@ private void buildPartialOneofs(com.google.cloud.networkmanagement.v1beta1.Step if (stepInfoCase_ == 42 && ngfwPacketInspectionBuilder_ != null) { result.stepInfo_ = ngfwPacketInspectionBuilder_.build(); } + if (stepInfoCase_ == 43 && dmsPrivateConnectionBuilder_ != null) { + result.stepInfo_ = dmsPrivateConnectionBuilder_.build(); + } } @java.lang.Override @@ -5110,6 +5220,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1beta1.Step other) mergeNgfwPacketInspection(other.getNgfwPacketInspection()); break; } + case DMS_PRIVATE_CONNECTION: + { + mergeDmsPrivateConnection(other.getDmsPrivateConnection()); + break; + } case STEPINFO_NOT_SET: { break; @@ -5414,6 +5529,13 @@ public Builder mergeFrom( stepInfoCase_ = 42; break; } // case 338 + case 346: + { + input.readMessage( + internalGetDmsPrivateConnectionFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 43; + break; + } // case 346 case 362: { input.readMessage( @@ -9729,7 +9851,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=319 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=322 * @return Whether the loadBalancer field is set. */ @java.lang.Override @@ -9751,7 +9873,7 @@ public boolean hasLoadBalancer() { * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=319 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=322 * @return The loadBalancer. */ @java.lang.Override @@ -14398,6 +14520,253 @@ public Builder clearNgfwPacketInspection() { return ngfwPacketInspectionBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo, + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfoOrBuilder> + dmsPrivateConnectionBuilder_; + + /** + * + * + *
            +     * Display information of a DMS Private Connection.
            +     * 
            + * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo dms_private_connection = 43; + * + * + * @return Whether the dmsPrivateConnection field is set. + */ + @java.lang.Override + public boolean hasDmsPrivateConnection() { + return stepInfoCase_ == 43; + } + + /** + * + * + *
            +     * Display information of a DMS Private Connection.
            +     * 
            + * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo dms_private_connection = 43; + * + * + * @return The dmsPrivateConnection. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo + getDmsPrivateConnection() { + if (dmsPrivateConnectionBuilder_ == null) { + if (stepInfoCase_ == 43) { + return (com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo + .getDefaultInstance(); + } else { + if (stepInfoCase_ == 43) { + return dmsPrivateConnectionBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Display information of a DMS Private Connection.
            +     * 
            + * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo dms_private_connection = 43; + * + */ + public Builder setDmsPrivateConnection( + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo value) { + if (dmsPrivateConnectionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + dmsPrivateConnectionBuilder_.setMessage(value); + } + stepInfoCase_ = 43; + return this; + } + + /** + * + * + *
            +     * Display information of a DMS Private Connection.
            +     * 
            + * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo dms_private_connection = 43; + * + */ + public Builder setDmsPrivateConnection( + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.Builder builderForValue) { + if (dmsPrivateConnectionBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + dmsPrivateConnectionBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 43; + return this; + } + + /** + * + * + *
            +     * Display information of a DMS Private Connection.
            +     * 
            + * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo dms_private_connection = 43; + * + */ + public Builder mergeDmsPrivateConnection( + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo value) { + if (dmsPrivateConnectionBuilder_ == null) { + if (stepInfoCase_ == 43 + && stepInfo_ + != com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo + .getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.newBuilder( + (com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 43) { + dmsPrivateConnectionBuilder_.mergeFrom(value); + } else { + dmsPrivateConnectionBuilder_.setMessage(value); + } + } + stepInfoCase_ = 43; + return this; + } + + /** + * + * + *
            +     * Display information of a DMS Private Connection.
            +     * 
            + * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo dms_private_connection = 43; + * + */ + public Builder clearDmsPrivateConnection() { + if (dmsPrivateConnectionBuilder_ == null) { + if (stepInfoCase_ == 43) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 43) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + dmsPrivateConnectionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Display information of a DMS Private Connection.
            +     * 
            + * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo dms_private_connection = 43; + * + */ + public com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.Builder + getDmsPrivateConnectionBuilder() { + return internalGetDmsPrivateConnectionFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Display information of a DMS Private Connection.
            +     * 
            + * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo dms_private_connection = 43; + * + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfoOrBuilder + getDmsPrivateConnectionOrBuilder() { + if ((stepInfoCase_ == 43) && (dmsPrivateConnectionBuilder_ != null)) { + return dmsPrivateConnectionBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 43) { + return (com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Display information of a DMS Private Connection.
            +     * 
            + * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo dms_private_connection = 43; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo, + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfoOrBuilder> + internalGetDmsPrivateConnectionFieldBuilder() { + if (dmsPrivateConnectionBuilder_ == null) { + if (!(stepInfoCase_ == 43)) { + stepInfo_ = + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.getDefaultInstance(); + } + dmsPrivateConnectionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo, + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo.Builder, + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 43; + onChanged(); + return dmsPrivateConnectionBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1beta1.Step) } 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 e70468bf03ea..c7a8de82d76c 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 @@ -792,7 +792,7 @@ public interface StepOrBuilder * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=319 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=322 * @return Whether the loadBalancer field is set. */ @java.lang.Deprecated @@ -811,7 +811,7 @@ public interface StepOrBuilder * * * @deprecated google.cloud.networkmanagement.v1beta1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1beta1/trace.proto;l=319 + * google/cloud/networkmanagement/v1beta1/trace.proto;l=322 * @return The loadBalancer. */ @java.lang.Deprecated @@ -1590,5 +1590,49 @@ public interface StepOrBuilder com.google.cloud.networkmanagement.v1beta1.NgfwPacketInspectionInfoOrBuilder getNgfwPacketInspectionOrBuilder(); + /** + * + * + *
            +   * Display information of a DMS Private Connection.
            +   * 
            + * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo dms_private_connection = 43; + * + * + * @return Whether the dmsPrivateConnection field is set. + */ + boolean hasDmsPrivateConnection(); + + /** + * + * + *
            +   * Display information of a DMS Private Connection.
            +   * 
            + * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo dms_private_connection = 43; + * + * + * @return The dmsPrivateConnection. + */ + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo getDmsPrivateConnection(); + + /** + * + * + *
            +   * Display information of a DMS Private Connection.
            +   * 
            + * + * + * .google.cloud.networkmanagement.v1beta1.PrivateConnectionInfo dms_private_connection = 43; + * + */ + com.google.cloud.networkmanagement.v1beta1.PrivateConnectionInfoOrBuilder + getDmsPrivateConnectionOrBuilder(); + 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 c3888d7a2f39..f77f7a862400 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 @@ -130,7 +130,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:t\352Aq\n" + "1networkmanagement.googleapis.com/ConnectivityTest\022\n" + + "\006status\030\013" + + " \001(\0162;.google.cloud.networkmanagement.v1beta1.InstanceInfo.Status\">\n" + "\006Status\022\026\n" + "\022STATUS_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\017\n" @@ -383,11 +390,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006policy\030\t \001(\t\022\022\n\n" + "policy_uri\030\013 \001(\t\022a\n" + "\022firewall_rule_type\030\n" - + " \001(\0162E.google.cloud.networkmanagement.v1beta1.FirewallInfo.FirewallRuleType\022\027\n" + + " \001(\0162E.google.cloud.netw" + + "orkmanagement.v1beta1.FirewallInfo.FirewallRuleType\022\027\n" + "\017policy_priority\030\014 \001(\005\022T\n" + "\013target_type\030\r" - + " \001(" - + "\0162?.google.cloud.networkmanagement.v1beta1.FirewallInfo.TargetType\"\274\003\n" + + " \001(\0162?.google.cloud.network" + + "management.v1beta1.FirewallInfo.TargetType\"\274\003\n" + "\020FirewallRuleType\022\"\n" + "\036FIREWALL_RULE_TYPE_UNSPECIFIED\020\000\022%\n" + "!HIERARCHICAL_FIREWALL_POLICY_RULE\020\001\022\025\n" @@ -406,12 +414,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tINSTANCES\020\001\022\027\n" + "\023INTERNAL_MANAGED_LB\020\002\"\373\013\n" + "\tRouteInfo\022O\n\n" - + "route_type\030\010 \001(\0162;.google." - + "cloud.networkmanagement.v1beta1.RouteInfo.RouteType\022T\n\r" - + "next_hop_type\030\t \001(\0162=.goo" - + "gle.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType\022U\n" - + "\013route_scope\030\016 \001(\0162<" - + ".google.cloud.networkmanagement.v1beta1.RouteInfo.RouteScopeB\002\030\001\022\024\n" + + "route_type\030\010" + + " \001(\0162;.google.cloud.networkmanagement.v1beta1.RouteInfo.RouteType\022T\n\r" + + "next_hop_type\030\t" + + " \001(\0162=.google.cloud.networkmanagement.v1beta1.RouteInfo.NextHopType\022U\n" + + "\013route_scope\030\016 \001(\0162<.google.cloud.networkman" + + "agement.v1beta1.RouteInfo.RouteScopeB\002\030\001\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\r" @@ -473,8 +481,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036_advertised_route_next_hop_uri\"\337\002\n" + "\021GoogleServiceInfo\022\021\n" + "\tsource_ip\030\001 \001(\t\022h\n" - + "\023google_service_type\030\002 \001(\0162K.google.cloud.networkmanagement.v1beta" - + "1.GoogleServiceInfo.GoogleServiceType\"\314\001\n" + + "\023google_service_type\030\002 \001(\0162K.google.cloud.networkm" + + "anagement.v1beta1.GoogleServiceInfo.GoogleServiceType\"\314\001\n" + "\021GoogleServiceType\022#\n" + "\037GOOGLE_SERVICE_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003IAP\020\001\022$\n" @@ -498,13 +506,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \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.LoadBalancerType\022\034\n" + + "\022load_balancer_type\030\001 \001(\0162I.google.cloud.ne" + + "tworkmanagement.v1beta1.LoadBalancerInfo.LoadBalancerType\022\034\n" + "\020health_check_uri\030\002 \001(\tB\002\030\001\022M\n" - + "\010backends\030\003" - + " \003(\0132;.google.cloud.networkmanagement.v1beta1.LoadBalancerBackend\022Z\n" - + "\014backend_type\030\004 \001(\0162D.google.cloud.networkmanag" - + "ement.v1beta1.LoadBalancerInfo.BackendType\022\023\n" + + "\010backends\030\003 \003(\0132;.google.cloud" + + ".networkmanagement.v1beta1.LoadBalancerBackend\022Z\n" + + "\014backend_type\030\004 \001(\0162D.google.cl" + + "oud.networkmanagement.v1beta1.LoadBalancerInfo.BackendType\022\023\n" + "\013backend_uri\030\005 \001(\t\"\217\001\n" + "\020LoadBalancerType\022\"\n" + "\036LOAD_BALANCER_TYPE_UNSPECIFIED\020\000\022\024\n" @@ -521,8 +529,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023LoadBalancerBackend\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022y\n" - + "\033health_check_firewall_state\030\003 \001(\0162T.google.cloud.networkmanageme" - + "nt.v1beta1.LoadBalancerBackend.HealthCheckFirewallState\022,\n" + + "\033health_check_firewall_state\030\003 \001(\0162T.google.cloud" + + ".networkmanagement.v1beta1.LoadBalancerBackend.HealthCheckFirewallState\022,\n" + "$health_check_allowing_firewall_rules\030\004 \003(\t\022,\n" + "$health_check_blocking_firewall_rules\030\005 \003(\t\"j\n" + "\030HealthCheckFirewallState\022+\n" @@ -549,8 +557,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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.go" - + "ogle.cloud.networkmanagement.v1beta1.VpnTunnelInfo.RoutingType\"[\n" + + "\014routing_type\030\t \001(\0162A.google.cloud.networkmanage" + + "ment.v1beta1.VpnTunnelInfo.RoutingType\"[\n" + "\013RoutingType\022\034\n" + "\030ROUTING_TYPE_UNSPECIFIED\020\000\022\017\n" + "\013ROUTE_BASED\020\001\022\020\n" @@ -562,8 +570,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020interconnect_uri\030\003 \001(\t\022\016\n" + "\006region\030\004 \001(\t\022\030\n" + "\020cloud_router_uri\030\005 \001(\t\022U\n" - + "\004type\030\006 \001(\0162G.google.cloud.n" - + "etworkmanagement.v1beta1.InterconnectAttachmentInfo.Type\0222\n" + + "\004type\030\006 \001(\0162" + + "G.google.cloud.networkmanagement.v1beta1.InterconnectAttachmentInfo.Type\0222\n" + " l2_attachment_matched_ip_address\030\007 \001(" + "\tB\010\342\214\317\327\010\002\010\004\"`\n" + "\004Type\022\024\n" @@ -580,16 +588,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020destination_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" - + "\020source_agent_uri\030\010 \001(\t\"\361\006\n" + + "\020source_agent_uri\030\010 \001(\t\"\215\007\n" + "\013DeliverInfo\022J\n" - + "\006target\030\001" - + " \001(\0162:.google.cloud.networkmanagement.v1beta1.DeliverInfo.Target\022\024\n" + + "\006target\030\001 \001(\0162:.google.clou" + + "d.networkmanagement.v1beta1.DeliverInfo.Target\022\024\n" + "\014resource_uri\030\002 \001(\t\022\034\n\n" + "ip_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_api_target\030\005 \001(\t\022b\n" - + "\023google_service_type\030\006 \001(\0162E.google.cloud.networkmanagement." - + "v1beta1.DeliverInfo.GoogleServiceType\"\227\003\n" + + "\023google_service_type\030\006 \001(\0162E.google.cloud.ne" + + "tworkmanagement.v1beta1.DeliverInfo.GoogleServiceType\"\263\003\n" + "\006Target\022\026\n" + "\022TARGET_UNSPECIFIED\020\000\022\014\n" + "\010INSTANCE\020\001\022\014\n" @@ -612,7 +620,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016REDIS_INSTANCE\020\020\022\021\n\r" + "REDIS_CLUSTER\020\021\022\013\n" + "\007GKE_POD\020\023\022\021\n\r" - + "CLOUD_RUN_JOB\020\024\"\254\001\n" + + "CLOUD_RUN_JOB\020\024\022\032\n" + + "\026DMS_PRIVATE_CONNECTION\020\025\"\254\001\n" + "\021GoogleServiceType\022#\n" + "\037GOOGLE_SERVICE_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003IAP\020\001\022$\n" @@ -621,8 +630,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025PRIVATE_GOOGLE_ACCESS\020\004\022\031\n" + "\025SERVERLESS_VPC_ACCESS\020\005\"\216\003\n" + "\013ForwardInfo\022J\n" - + "\006target\030\001" - + " \001(\0162:.google.cloud.networkmanagement.v1beta1.ForwardInfo.Target\022\024\n" + + "\006target\030\001 \001(\0162:.google.cloud.networ" + + "kmanagement.v1beta1.ForwardInfo.Target\022\024\n" + "\014resource_uri\030\002 \001(\t\022\034\n\n" + "ip_address\030\003 \001(\tB\010\342\214\317\327\010\002\010\004\"\376\001\n" + "\006Target\022\026\n" @@ -690,7 +699,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ")UNSUPPORTED_GOOGLE_MANAGED_PROJECT_CONFIG\020\037\022\033\n" + "\027NO_SERVERLESS_IP_RANGES\020%\022 \n" + "\034IP_VERSION_PROTOCOL_MISMATCH\020(\022%\n" - + "!GKE_POD_UNKNOWN_ENDPOINT_LOCATION\020)\"\323\"\n" + + "!GKE_POD_UNKNOWN_ENDPOINT_LOCATION\020)\"\252#\n" + "\010DropInfo\022E\n" + "\005cause\030\001" + " \001(\01626.google.cloud.networkmanagement.v1beta1.DropInfo.Cause\022\024\n" @@ -699,7 +708,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016destination_ip\030\004 \001(\t\022\016\n" + "\006region\030\005 \001(\t\022\037\n" + "\027source_geolocation_code\030\006 \001(\t\022$\n" - + "\034destination_geolocation_code\030\007 \001(\t\"\347 \n" + + "\034destination_geolocation_code\030\007 \001(\t\"\276!\n" + "\005Cause\022\025\n" + "\021CAUSE_UNSPECIFIED\020\000\022\034\n" + "\030UNKNOWN_EXTERNAL_ADDRESS\020\001\022\031\n" @@ -741,7 +750,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036GKE_MASTER_UNAUTHORIZED_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_SQL_SERVICE\020\023\022%\n" + + " DROPPED_INSIDE_CLOUD_SQL_SERVICE\020\023\022)\n" + + "%DROPPED_INSIDE_DMS_PRIVATE_CONNECTION\020r\022%\n" + "!GOOGLE_MANAGED_SERVICE_NO_PEERING\020\024\022*\n" + "&GOOGLE_MANAGED_SERVICE_NO_PSC_ENDPOINT\020&\022\034\n" + "\030GKE_PSC_ENDPOINT_MISSING\020$\022$\n" @@ -751,14 +761,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032GKE_CONTROL_PLANE_NO_ROUTE\020 \022:\n" + "6CLOUD_SQL_INSTANCE_NOT_CONFIGURED_FOR_EXTERNAL_TRAFFIC\020!\0224\n" + "0PUBLIC_CLOUD_SQL_INSTANCE_TO_PRIVATE_DESTINATION\020\"\022\037\n" - + "\033CLOUD_SQL_INSTANCE_NO_ROUTE\020#\022 \n" + + "\033CLOUD_SQL_INSTA", + "NCE_NO_ROUTE\020#\022 \n" + "\034CLOUD_SQL_CONNECTOR_REQUIRED\020?\022\035\n" + "\031CLOUD_FUNCTION_NOT_ACTIVE\020\026\022\031\n" + "\025VPC_CONNECTOR_NOT_SET\020\027\022\035\n" + "\031VPC_CONNECTOR_NOT_RUNNING\020\030\022,\n" + "(VPC_CONNECTOR_SERVERLESS_TRAFFIC_BLOCKED\020<\022.\n" - + "*VPC_CONNECTOR_HEALTH", - "_CHECK_TRAFFIC_BLOCKED\020=\022#\n" + + "*VPC_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" @@ -809,7 +819,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035HYBRID_SUBNET_REGION_MISMATCH\020i\022\032\n" + "\026HYBRID_SUBNET_NO_ROUTE\020j\022\026\n" + "\022GKE_NETWORK_POLICY\020l\022=\n" - + "9NO_VALID_ROUTE_FROM_GOOGLE_MANAGED_NETWORK_TO_DESTINATION\020n\"\201\001\n\r" + + "9NO_VALID_ROUTE_FROM_GOOGLE_MANAGED_NETWORK_TO_DESTINATION\020n\022*\n" + + "&PRIVATE_CONNECTION_NO_RUNNING_INSTANCE\020o\"\201\001\n\r" + "GKEMasterInfo\022\023\n" + "\013cluster_uri\030\002 \001(\t\022\033\n" + "\023cluster_network_uri\030\004 \001(\t\022\023\n" @@ -821,8 +832,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ip_address\030\002 \001(\tB\010\342\214\317\327\010\002\010\004\022\023\n" + "\013network_uri\030\003 \001(\t\"\304\003\n" + "\031IpMasqueradingSkippedInfo\022X\n" - + "\006reason\030\001 \001(\0162H" - + ".google.cloud.networkmanagement.v1beta1.IpMasqueradingSkippedInfo.Reason\022\034\n" + + "\006reason\030\001 \001(\0162H.google.cloud.networkmanageme" + + "nt.v1beta1.IpMasqueradingSkippedInfo.Reason\022\034\n" + "\024non_masquerade_range\030\002 \001(\t\"\256\002\n" + "\006Reason\022\026\n" + "\022REASON_UNSPECIFIED\020\000\0225\n" @@ -839,8 +850,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tdirection\030\003 \001(\t\022\016\n" + "\006action\030\004 \001(\t\"\343\002\n" + "\033GkeNetworkPolicySkippedInfo\022Z\n" - + "\006reason\030\001 \001(\0162J.google.c" - + "loud.networkmanagement.v1beta1.GkeNetworkPolicySkippedInfo.Reason\"\347\001\n" + + "\006reason\030\001 \001(\016" + + "2J.google.cloud.networkmanagement.v1beta1.GkeNetworkPolicySkippedInfo.Reason\"\347\001\n" + "\006Reason\022\026\n" + "\022REASON_UNSPECIFIED\020\000\022\033\n" + "\027NETWORK_POLICY_DISABLED\020\001\022\037\n" @@ -920,8 +931,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "router_uri\030\014 \001(\t\022\030\n" + "\020nat_gateway_name\030\r" + " \001(\t\022c\n" - + "\026cloud_nat_gateway_type\030\016 \001(\0162C.google.c" - + "loud.networkmanagement.v1beta1.NatInfo.CloudNatGatewayType\"\231\001\n" + + "\026cloud_nat_gateway_type\030\016 \001(\016" + + "2C.google.cloud.networkmanagement.v1beta1.NatInfo.CloudNatGatewayType\"\231\001\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\030\n" + "\024INTERNAL_TO_EXTERNAL\020\001\022\030\n" @@ -960,9 +971,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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.v1beta1.L" - + "oadBalancerBackendInfo.HealthCheckFirewallsConfigStateB\003\340A\003\"\315\001\n" + + "#health_check_firewalls_config_state\030\007 \001(\0162_.google.cloud.networkmanagemen" + + "t.v1beta1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigStateB\003\340A\003\"\315\001\n" + "\037HealthCheckFirewallsConfigState\0223\n" + "/HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED\020\000\022\030\n" + "\024FIREWALLS_CONFIGURED\020\001\022\"\n" @@ -974,7 +984,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021ServerlessNegInfo\022\017\n" + "\007neg_uri\030\001 \001(\t\">\n" + "\030NgfwPacketInspectionInfo\022\"\n" - + "\032security_profile_group_uri\030\001 \001(\t*\366\002\n" + + "\032security_profile_group_uri\030\001 \001(\t\"$\n" + + "\025PrivateConnectionInfo\022\013\n" + + "\003uri\030\001 \001(\t*\366\002\n" + "\020LoadBalancerType\022\"\n" + "\036LOAD_BALANCER_TYPE_UNSPECIFIED\020\000\022 \n" + "\034HTTPS_ADVANCED_LOAD_BALANCER\020\001\022\027\n" @@ -989,10 +1001,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036TCP_UDP_INTERNAL_LOAD_BALANCER\020\n" + "B\222\002\n" + "*com.google.cloud.networkmanagement.v1beta1B\n" - + "TraceProtoP\001ZXcloud.google.com/go/networkmanagem" - + "ent/apiv1beta1/networkmanagementpb;networkmanagementpb\252\002&Google.Cloud.NetworkMan" - + "agement.V1Beta1\312\002&Google\\Cloud\\NetworkMa" - + "nagement\\V1beta1\352\002)Google::Cloud::NetworkManagement::V1beta1b\006proto3" + + "TraceProtoP\001ZXcloud.google.com/go/networkmanagement/apiv1beta1/networkmanagemen" + + "tpb;networkmanagementpb\252\002&Google.Cloud.N" + + "etworkManagement.V1Beta1\312\002&Google\\Cloud\\" + + "NetworkManagement\\V1beta1\352\002)Google::Clou" + + "d::NetworkManagement::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1056,6 +1069,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StorageBucket", "ServerlessNeg", "NgfwPacketInspection", + "DmsPrivateConnection", "StepInfo", }); internal_static_google_cloud_networkmanagement_v1beta1_InstanceInfo_descriptor = @@ -1490,6 +1504,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "SecurityProfileGroupUri", }); + internal_static_google_cloud_networkmanagement_v1beta1_PrivateConnectionInfo_descriptor = + getDescriptor().getMessageType(40); + internal_static_google_cloud_networkmanagement_v1beta1_PrivateConnectionInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1beta1_PrivateConnectionInfo_descriptor, + new java.lang.String[] { + "Uri", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.FieldInfoProto.getDescriptor(); 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 5b9a7c79836f..d37ae31ce350 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 @@ -253,6 +253,12 @@ message Endpoint { // URI. string gke_pod = 21; + // A [DMS Private + // Connection](https://docs.cloud.google.com/database-migration/docs/reference/rest/v1/projects.locations.privateConnections) + // name format: + // projects/{project}/locations/{location}/privateConnections/{privateConnection}. + string dms_private_connection = 22; + // A [Cloud Function](https://cloud.google.com/functions). Applicable only to // source endpoint. CloudFunctionEndpoint cloud_function = 10; 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 06d681c6bcf2..efdcad7893cf 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 @@ -136,6 +136,9 @@ message Step { // The serverless_neg information is populated. START_FROM_SERVERLESS_NEG = 31; + // Initial state: packet originating from a DMS Private Connection. + START_FROM_DMS_PRIVATE_CONNECTION = 48; + // Config checking state: verify ingress firewall rule. APPLY_INGRESS_FIREWALL_RULE = 4; @@ -378,6 +381,9 @@ message Step { // Display information of a layer 7 packet inspection by the firewall. NgfwPacketInspectionInfo ngfw_packet_inspection = 42; + + // Display information of a DMS Private Connection. + PrivateConnectionInfo dms_private_connection = 43; } } @@ -1165,6 +1171,9 @@ message DeliverInfo { // Target is a Cloud Run Job. Used only for return traces. CLOUD_RUN_JOB = 20; + + // Target is a DMS Private Connection. Used only for return traces. + DMS_PRIVATE_CONNECTION = 21; } // Recognized type of a Google Service. @@ -1612,6 +1621,9 @@ message DropInfo { // Packet was dropped inside Cloud SQL Service. DROPPED_INSIDE_CLOUD_SQL_SERVICE = 19; + // Packet was dropped inside DMS Private Connection. + DROPPED_INSIDE_DMS_PRIVATE_CONNECTION = 114; + // Packet was dropped because there is no peering between the originating // network and the Google Managed Services Network. GOOGLE_MANAGED_SERVICE_NO_PEERING = 20; @@ -1880,6 +1892,10 @@ message DropInfo { // Packet is dropped because there is no valid matching route from the // network of the Google-managed service to the destination. NO_VALID_ROUTE_FROM_GOOGLE_MANAGED_NETWORK_TO_DESTINATION = 110; + + // Packet is dropped due to no running instance found for private + // connection. + PRIVATE_CONNECTION_NO_RUNNING_INSTANCE = 111; } // Cause that the packet is dropped. @@ -2456,3 +2472,10 @@ message NgfwPacketInspectionInfo { // inspection. string security_profile_group_uri = 1; } + +// For display only. Metadata associated with a Private Connection. +message PrivateConnectionInfo { + // URI of the Private Connection in format + // "projects/{project_id}/locations/{location}/privateConnections/{private_connection_id}" + string uri = 1; +} diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesClient.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesClient.java index b2f72bf1b0a3..00a59869cb0b 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesClient.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesClient.java @@ -1217,6 +1217,104 @@ * * * + *

            ListAgentGateways + *

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

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

            + *
              + *
            • listAgentGateways(ListAgentGatewaysRequest request) + *

            + *

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

            + *
              + *
            • listAgentGateways(LocationName parent) + *

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

            + *
              + *
            • listAgentGatewaysPagedCallable() + *

            • listAgentGatewaysCallable() + *

            + * + * + * + *

            GetAgentGateway + *

            Gets details of a single AgentGateway. + * + *

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

            + *
              + *
            • getAgentGateway(GetAgentGatewayRequest request) + *

            + *

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

            + *
              + *
            • getAgentGateway(AgentGatewayName name) + *

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

            + *
              + *
            • getAgentGatewayCallable() + *

            + * + * + * + *

            CreateAgentGateway + *

            Creates a new AgentGateway in a given project and location. + * + *

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

            + *
              + *
            • createAgentGatewayAsync(CreateAgentGatewayRequest request) + *

            + *

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

            + *
              + *
            • createAgentGatewayAsync(LocationName parent, AgentGateway agentGateway, String agentGatewayId) + *

            • createAgentGatewayAsync(String parent, AgentGateway agentGateway, String agentGatewayId) + *

            + *

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

            + *
              + *
            • createAgentGatewayOperationCallable() + *

            • createAgentGatewayCallable() + *

            + * + * + * + *

            UpdateAgentGateway + *

            Updates the parameters of a single AgentGateway. + * + *

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

            + *
              + *
            • updateAgentGatewayAsync(UpdateAgentGatewayRequest request) + *

            + *

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

            + *
              + *
            • updateAgentGatewayAsync(AgentGateway agentGateway, 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.

            + *
              + *
            • updateAgentGatewayOperationCallable() + *

            • updateAgentGatewayCallable() + *

            + * + * + * + *

            DeleteAgentGateway + *

            Deletes a single AgentGateway. + * + *

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

            + *
              + *
            • deleteAgentGatewayAsync(DeleteAgentGatewayRequest request) + *

            + *

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

            + *
              + *
            • deleteAgentGatewayAsync(AgentGatewayName name) + *

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

            + *
              + *
            • deleteAgentGatewayOperationCallable() + *

            • deleteAgentGatewayCallable() + *

            + * + * + * *

            ListLocations *

            Lists information about the supported locations for this service. * @@ -1444,7 +1542,7 @@ public final OperationsClient getHttpJsonOperationsClient() { * } * * @param parent Required. The project and location from which the EndpointPolicies should be - * listed, specified in the format `projects/*/locations/global`. + * listed, specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEndpointPoliciesPagedResponse listEndpointPolicies(LocationName parent) { @@ -1477,7 +1575,7 @@ public final ListEndpointPoliciesPagedResponse listEndpointPolicies(LocationName * } * * @param parent Required. The project and location from which the EndpointPolicies should be - * listed, specified in the format `projects/*/locations/global`. + * listed, specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListEndpointPoliciesPagedResponse listEndpointPolicies(String parent) { @@ -1616,7 +1714,7 @@ public final ListEndpointPoliciesPagedResponse listEndpointPolicies( * } * * @param name Required. A name of the EndpointPolicy to get. Must be in the format - * `projects/*/locations/global/endpointPolicies/*`. + * `projects/*/locations/*/endpointPolicies/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EndpointPolicy getEndpointPolicy(EndpointPolicyName name) { @@ -1647,7 +1745,7 @@ public final EndpointPolicy getEndpointPolicy(EndpointPolicyName name) { * } * * @param name Required. A name of the EndpointPolicy to get. Must be in the format - * `projects/*/locations/global/endpointPolicies/*`. + * `projects/*/locations/*/endpointPolicies/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final EndpointPolicy getEndpointPolicy(String name) { @@ -1737,7 +1835,7 @@ public final UnaryCallable getEndpoint * } * * @param parent Required. The parent resource of the EndpointPolicy. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param endpointPolicy Required. EndpointPolicy resource to be created. * @param endpointPolicyId Required. Short name of the EndpointPolicy resource to be created. E.g. * "CustomECS". @@ -1778,7 +1876,7 @@ public final OperationFuture createEndpointPo * } * * @param parent Required. The parent resource of the EndpointPolicy. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param endpointPolicy Required. EndpointPolicy resource to be created. * @param endpointPolicyId Required. Short name of the EndpointPolicy resource to be created. E.g. * "CustomECS". @@ -2035,7 +2133,7 @@ public final OperationFuture updateEndpointPo * } * * @param name Required. A name of the EndpointPolicy to delete. Must be in the format - * `projects/*/locations/global/endpointPolicies/*`. + * `projects/*/locations/*/endpointPolicies/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEndpointPolicyAsync( @@ -2067,7 +2165,7 @@ public final OperationFuture deleteEndpointPolicyAsync * } * * @param name Required. A name of the EndpointPolicy to delete. Must be in the format - * `projects/*/locations/global/endpointPolicies/*`. + * `projects/*/locations/*/endpointPolicies/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteEndpointPolicyAsync(String name) { @@ -4246,7 +4344,7 @@ public final UnaryCallable deleteGatewayCallabl * } * * @param parent Required. The project and location from which the GrpcRoutes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGrpcRoutesPagedResponse listGrpcRoutes(LocationName parent) { @@ -4278,7 +4376,7 @@ public final ListGrpcRoutesPagedResponse listGrpcRoutes(LocationName parent) { * } * * @param parent Required. The project and location from which the GrpcRoutes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListGrpcRoutesPagedResponse listGrpcRoutes(String parent) { @@ -4413,7 +4511,7 @@ public final ListGrpcRoutesPagedResponse listGrpcRoutes(ListGrpcRoutesRequest re * } * * @param name Required. A name of the GrpcRoute to get. Must be in the format - * `projects/*/locations/global/grpcRoutes/*`. + * `projects/*/locations/*/grpcRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GrpcRoute getGrpcRoute(GrpcRouteName name) { @@ -4441,7 +4539,7 @@ public final GrpcRoute getGrpcRoute(GrpcRouteName name) { * } * * @param name Required. A name of the GrpcRoute to get. Must be in the format - * `projects/*/locations/global/grpcRoutes/*`. + * `projects/*/locations/*/grpcRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final GrpcRoute getGrpcRoute(String name) { @@ -4527,7 +4625,7 @@ public final UnaryCallable getGrpcRouteCallable( * } * * @param parent Required. The parent resource of the GrpcRoute. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param grpcRoute Required. GrpcRoute resource to be created. * @param grpcRouteId Required. Short name of the GrpcRoute resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -4565,7 +4663,7 @@ public final OperationFuture createGrpcRouteAsync( * } * * @param parent Required. The parent resource of the GrpcRoute. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param grpcRoute Required. GrpcRoute resource to be created. * @param grpcRouteId Required. Short name of the GrpcRoute resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -4817,7 +4915,7 @@ public final UnaryCallable updateGrpcRouteCal * } * * @param name Required. A name of the GrpcRoute to delete. Must be in the format - * `projects/*/locations/global/grpcRoutes/*`. + * `projects/*/locations/*/grpcRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteGrpcRouteAsync(GrpcRouteName name) { @@ -4845,7 +4943,7 @@ public final OperationFuture deleteGrpcRouteAsync(Grpc * } * * @param name Required. A name of the GrpcRoute to delete. Must be in the format - * `projects/*/locations/global/grpcRoutes/*`. + * `projects/*/locations/*/grpcRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteGrpcRouteAsync(String name) { @@ -4960,7 +5058,7 @@ public final UnaryCallable deleteGrpcRouteCal * } * * @param parent Required. The project and location from which the HttpRoutes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListHttpRoutesPagedResponse listHttpRoutes(LocationName parent) { @@ -4992,7 +5090,7 @@ public final ListHttpRoutesPagedResponse listHttpRoutes(LocationName parent) { * } * * @param parent Required. The project and location from which the HttpRoutes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListHttpRoutesPagedResponse listHttpRoutes(String parent) { @@ -5019,6 +5117,7 @@ public final ListHttpRoutesPagedResponse listHttpRoutes(String parent) { * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setReturnPartialSuccess(true) + * .setFilter("filter-1274492040") * .build(); * for (HttpRoute element : networkServicesClient.listHttpRoutes(request).iterateAll()) { * // doThingsWith(element); @@ -5052,6 +5151,7 @@ public final ListHttpRoutesPagedResponse listHttpRoutes(ListHttpRoutesRequest re * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setReturnPartialSuccess(true) + * .setFilter("filter-1274492040") * .build(); * ApiFuture future = * networkServicesClient.listHttpRoutesPagedCallable().futureCall(request); @@ -5086,6 +5186,7 @@ public final ListHttpRoutesPagedResponse listHttpRoutes(ListHttpRoutesRequest re * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setReturnPartialSuccess(true) + * .setFilter("filter-1274492040") * .build(); * while (true) { * ListHttpRoutesResponse response = @@ -5127,7 +5228,7 @@ public final ListHttpRoutesPagedResponse listHttpRoutes(ListHttpRoutesRequest re * } * * @param name Required. A name of the HttpRoute to get. Must be in the format - * `projects/*/locations/global/httpRoutes/*`. + * `projects/*/locations/*/httpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final HttpRoute getHttpRoute(HttpRouteName name) { @@ -5155,7 +5256,7 @@ public final HttpRoute getHttpRoute(HttpRouteName name) { * } * * @param name Required. A name of the HttpRoute to get. Must be in the format - * `projects/*/locations/global/httpRoutes/*`. + * `projects/*/locations/*/httpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final HttpRoute getHttpRoute(String name) { @@ -5241,7 +5342,7 @@ public final UnaryCallable getHttpRouteCallable( * } * * @param parent Required. The parent resource of the HttpRoute. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param httpRoute Required. HttpRoute resource to be created. * @param httpRouteId Required. Short name of the HttpRoute resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -5279,7 +5380,7 @@ public final OperationFuture createHttpRouteAsync( * } * * @param parent Required. The parent resource of the HttpRoute. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param httpRoute Required. HttpRoute resource to be created. * @param httpRouteId Required. Short name of the HttpRoute resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -5313,6 +5414,7 @@ public final OperationFuture createHttpRouteAsync( * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setHttpRouteId("httpRouteId-2054835300") * .setHttpRoute(HttpRoute.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); * HttpRoute response = networkServicesClient.createHttpRouteAsync(request).get(); * } @@ -5344,6 +5446,7 @@ public final OperationFuture createHttpRouteAsync( * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setHttpRouteId("httpRouteId-2054835300") * .setHttpRoute(HttpRoute.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); * OperationFuture future = * networkServicesClient.createHttpRouteOperationCallable().futureCall(request); @@ -5375,6 +5478,7 @@ public final OperationFuture createHttpRouteAsync( * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setHttpRouteId("httpRouteId-2054835300") * .setHttpRoute(HttpRoute.newBuilder().build()) + * .setRequestId("requestId693933066") * .build(); * ApiFuture future = * networkServicesClient.createHttpRouteCallable().futureCall(request); @@ -5531,7 +5635,7 @@ public final UnaryCallable updateHttpRouteCal * } * * @param name Required. A name of the HttpRoute to delete. Must be in the format - * `projects/*/locations/global/httpRoutes/*`. + * `projects/*/locations/*/httpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteHttpRouteAsync(HttpRouteName name) { @@ -5559,7 +5663,7 @@ public final OperationFuture deleteHttpRouteAsync(Http * } * * @param name Required. A name of the HttpRoute to delete. Must be in the format - * `projects/*/locations/global/httpRoutes/*`. + * `projects/*/locations/*/httpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteHttpRouteAsync(String name) { @@ -5674,7 +5778,7 @@ public final UnaryCallable deleteHttpRouteCal * } * * @param parent Required. The project and location from which the TcpRoutes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTcpRoutesPagedResponse listTcpRoutes(LocationName parent) { @@ -5706,7 +5810,7 @@ public final ListTcpRoutesPagedResponse listTcpRoutes(LocationName parent) { * } * * @param parent Required. The project and location from which the TcpRoutes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTcpRoutesPagedResponse listTcpRoutes(String parent) { @@ -5840,7 +5944,7 @@ public final UnaryCallable listTcpR * } * * @param name Required. A name of the TcpRoute to get. Must be in the format - * `projects/*/locations/global/tcpRoutes/*`. + * `projects/*/locations/*/tcpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TcpRoute getTcpRoute(TcpRouteName name) { @@ -5868,7 +5972,7 @@ public final TcpRoute getTcpRoute(TcpRouteName name) { * } * * @param name Required. A name of the TcpRoute to get. Must be in the format - * `projects/*/locations/global/tcpRoutes/*`. + * `projects/*/locations/*/tcpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TcpRoute getTcpRoute(String name) { @@ -5953,7 +6057,7 @@ public final UnaryCallable getTcpRouteCallable() { * } * * @param parent Required. The parent resource of the TcpRoute. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param tcpRoute Required. TcpRoute resource to be created. * @param tcpRouteId Required. Short name of the TcpRoute resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -5991,7 +6095,7 @@ public final OperationFuture createTcpRouteAsync( * } * * @param parent Required. The parent resource of the TcpRoute. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param tcpRoute Required. TcpRoute resource to be created. * @param tcpRouteId Required. Short name of the TcpRoute resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -6240,7 +6344,7 @@ public final UnaryCallable updateTcpRouteCalla * } * * @param name Required. A name of the TcpRoute to delete. Must be in the format - * `projects/*/locations/global/tcpRoutes/*`. + * `projects/*/locations/*/tcpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTcpRouteAsync(TcpRouteName name) { @@ -6268,7 +6372,7 @@ public final OperationFuture deleteTcpRouteAsync(TcpRo * } * * @param name Required. A name of the TcpRoute to delete. Must be in the format - * `projects/*/locations/global/tcpRoutes/*`. + * `projects/*/locations/*/tcpRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTcpRouteAsync(String name) { @@ -6383,7 +6487,7 @@ public final UnaryCallable deleteTcpRouteCalla * } * * @param parent Required. The project and location from which the TlsRoutes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTlsRoutesPagedResponse listTlsRoutes(LocationName parent) { @@ -6415,7 +6519,7 @@ public final ListTlsRoutesPagedResponse listTlsRoutes(LocationName parent) { * } * * @param parent Required. The project and location from which the TlsRoutes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListTlsRoutesPagedResponse listTlsRoutes(String parent) { @@ -6549,7 +6653,7 @@ public final UnaryCallable listTlsR * } * * @param name Required. A name of the TlsRoute to get. Must be in the format - * `projects/*/locations/global/tlsRoutes/*`. + * `projects/*/locations/*/tlsRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TlsRoute getTlsRoute(TlsRouteName name) { @@ -6577,7 +6681,7 @@ public final TlsRoute getTlsRoute(TlsRouteName name) { * } * * @param name Required. A name of the TlsRoute to get. Must be in the format - * `projects/*/locations/global/tlsRoutes/*`. + * `projects/*/locations/*/tlsRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final TlsRoute getTlsRoute(String name) { @@ -6662,7 +6766,7 @@ public final UnaryCallable getTlsRouteCallable() { * } * * @param parent Required. The parent resource of the TlsRoute. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param tlsRoute Required. TlsRoute resource to be created. * @param tlsRouteId Required. Short name of the TlsRoute resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -6700,7 +6804,7 @@ public final OperationFuture createTlsRouteAsync( * } * * @param parent Required. The parent resource of the TlsRoute. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param tlsRoute Required. TlsRoute resource to be created. * @param tlsRouteId Required. Short name of the TlsRoute resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -6949,7 +7053,7 @@ public final UnaryCallable updateTlsRouteCalla * } * * @param name Required. A name of the TlsRoute to delete. Must be in the format - * `projects/*/locations/global/tlsRoutes/*`. + * `projects/*/locations/*/tlsRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTlsRouteAsync(TlsRouteName name) { @@ -6977,7 +7081,7 @@ public final OperationFuture deleteTlsRouteAsync(TlsRo * } * * @param name Required. A name of the TlsRoute to delete. Must be in the format - * `projects/*/locations/global/tlsRoutes/*`. + * `projects/*/locations/*/tlsRoutes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteTlsRouteAsync(String name) { @@ -7831,7 +7935,7 @@ public final OperationFuture deleteServiceBindingAsync * } * * @param parent Required. The project and location from which the Meshes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMeshesPagedResponse listMeshes(LocationName parent) { @@ -7861,7 +7965,7 @@ public final ListMeshesPagedResponse listMeshes(LocationName parent) { * } * * @param parent Required. The project and location from which the Meshes should be listed, - * specified in the format `projects/*/locations/global`. + * specified in the format `projects/*/locations/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListMeshesPagedResponse listMeshes(String parent) { @@ -7992,7 +8096,7 @@ public final UnaryCallable listMeshesCall * } * * @param name Required. A name of the Mesh to get. Must be in the format - * `projects/*/locations/global/meshes/*`. + * `projects/*/locations/*/meshes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Mesh getMesh(MeshName name) { @@ -8020,7 +8124,7 @@ public final Mesh getMesh(MeshName name) { * } * * @param name Required. A name of the Mesh to get. Must be in the format - * `projects/*/locations/global/meshes/*`. + * `projects/*/locations/*/meshes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Mesh getMesh(String name) { @@ -8104,7 +8208,7 @@ public final UnaryCallable getMeshCallable() { * } * * @param parent Required. The parent resource of the Mesh. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param mesh Required. Mesh resource to be created. * @param meshId Required. Short name of the Mesh resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -8141,7 +8245,7 @@ public final OperationFuture createMeshAsync( * } * * @param parent Required. The parent resource of the Mesh. Must be in the format - * `projects/*/locations/global`. + * `projects/*/locations/*`. * @param mesh Required. Mesh resource to be created. * @param meshId Required. Short name of the Mesh resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -8382,7 +8486,7 @@ public final UnaryCallable updateMeshCallable() { * } * * @param name Required. A name of the Mesh to delete. Must be in the format - * `projects/*/locations/global/meshes/*`. + * `projects/*/locations/*/meshes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteMeshAsync(MeshName name) { @@ -8410,7 +8514,7 @@ public final OperationFuture deleteMeshAsync(MeshName * } * * @param name Required. A name of the Mesh to delete. Must be in the format - * `projects/*/locations/global/meshes/*`. + * `projects/*/locations/*/meshes/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final OperationFuture deleteMeshAsync(String name) { @@ -9835,7 +9939,7 @@ public final ListMeshRouteViewsPagedResponse listMeshRouteViews( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists AgentGateways in a given project and location. * *

            Sample code: * @@ -9846,14 +9950,76 @@ public final ListMeshRouteViewsPagedResponse listMeshRouteViews( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * for (AgentGateway element : networkServicesClient.listAgentGateways(parent).iterateAll()) { + * // doThingsWith(element); + * } + * } + * } + * + * @param parent Required. The project and location from which the AgentGateways should be listed, + * specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAgentGatewaysPagedResponse listAgentGateways(LocationName parent) { + ListAgentGatewaysRequest request = + ListAgentGatewaysRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAgentGateways(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AgentGateways 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   for (AgentGateway element : networkServicesClient.listAgentGateways(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The project and location from which the AgentGateways should be listed, + * specified in the format `projects/*/locations/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAgentGatewaysPagedResponse listAgentGateways(String parent) { + ListAgentGatewaysRequest request = + ListAgentGatewaysRequest.newBuilder().setParent(parent).build(); + return listAgentGateways(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AgentGateways 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
            +   *   ListAgentGatewaysRequest request =
            +   *       ListAgentGatewaysRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
                *           .setPageSize(883849137)
                *           .setPageToken("pageToken873572522")
            +   *           .setReturnPartialSuccess(true)
                *           .build();
            -   *   for (Location element : networkServicesClient.listLocations(request).iterateAll()) {
            +   *   for (AgentGateway element : networkServicesClient.listAgentGateways(request).iterateAll()) {
                *     // doThingsWith(element);
                *   }
                * }
            @@ -9862,13 +10028,13 @@ public final ListMeshRouteViewsPagedResponse listMeshRouteViews(
                * @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);
            +  public final ListAgentGatewaysPagedResponse listAgentGateways(ListAgentGatewaysRequest request) {
            +    return listAgentGatewaysPagedCallable().call(request);
               }
             
               // AUTO-GENERATED DOCUMENTATION AND METHOD.
               /**
            -   * Lists information about the supported locations for this service.
            +   * Lists AgentGateways in a given project and location.
                *
                * 

            Sample code: * @@ -9879,30 +10045,30 @@ 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") + * ListAgentGatewaysRequest request = + * ListAgentGatewaysRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setReturnPartialSuccess(true) * .build(); - * ApiFuture future = - * networkServicesClient.listLocationsPagedCallable().futureCall(request); + * ApiFuture future = + * networkServicesClient.listAgentGatewaysPagedCallable().futureCall(request); * // Do something. - * for (Location element : future.get().iterateAll()) { + * for (AgentGateway element : future.get().iterateAll()) { * // doThingsWith(element); * } * } * }

            */ - public final UnaryCallable - listLocationsPagedCallable() { - return stub.listLocationsPagedCallable(); + public final UnaryCallable + listAgentGatewaysPagedCallable() { + return stub.listAgentGatewaysPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service. + * Lists AgentGateways in a given project and location. * *

            Sample code: * @@ -9913,17 +10079,17 @@ 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { - * ListLocationsRequest request = - * ListLocationsRequest.newBuilder() - * .setName("name3373707") - * .setFilter("filter-1274492040") + * ListAgentGatewaysRequest request = + * ListAgentGatewaysRequest.newBuilder() + * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setReturnPartialSuccess(true) * .build(); * while (true) { - * ListLocationsResponse response = - * networkServicesClient.listLocationsCallable().call(request); - * for (Location element : response.getLocationsList()) { + * ListAgentGatewaysResponse response = + * networkServicesClient.listAgentGatewaysCallable().call(request); + * for (AgentGateway element : response.getAgentGatewaysList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -9936,13 +10102,14 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * } * } */ - public final UnaryCallable listLocationsCallable() { - return stub.listLocationsCallable(); + public final UnaryCallable + listAgentGatewaysCallable() { + return stub.listAgentGatewaysCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Gets details of a single AgentGateway. * *

            Sample code: * @@ -9953,21 +10120,24 @@ 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * Location response = networkServicesClient.getLocation(request); + * AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + * AgentGateway response = networkServicesClient.getAgentGateway(name); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param name Required. A name of the AgentGateway to get. Must be in the format + * `projects/*/locations/*/agentGateways/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Location getLocation(GetLocationRequest request) { - return getLocationCallable().call(request); + public final AgentGateway getAgentGateway(AgentGatewayName name) { + GetAgentGatewayRequest request = + GetAgentGatewayRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAgentGateway(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets information about a location. + * Gets details of a single AgentGateway. * *

            Sample code: * @@ -9978,22 +10148,23 @@ 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { - * GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - * ApiFuture future = networkServicesClient.getLocationCallable().futureCall(request); - * // Do something. - * Location response = future.get(); + * String name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString(); + * AgentGateway response = networkServicesClient.getAgentGateway(name); * } * } + * + * @param name Required. A name of the AgentGateway to get. Must be in the format + * `projects/*/locations/*/agentGateways/*`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getLocationCallable() { - return stub.getLocationCallable(); + public final AgentGateway getAgentGateway(String name) { + GetAgentGatewayRequest request = GetAgentGatewayRequest.newBuilder().setName(name).build(); + return getAgentGateway(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. + * Gets details of a single AgentGateway. * *

            Sample code: * @@ -10004,29 +10175,24 @@ 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { - * SetIamPolicyRequest request = - * SetIamPolicyRequest.newBuilder() - * .setResource( - * EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString()) - * .setPolicy(Policy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * GetAgentGatewayRequest request = + * GetAgentGatewayRequest.newBuilder() + * .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) * .build(); - * Policy response = networkServicesClient.setIamPolicy(request); + * AgentGateway response = networkServicesClient.getAgentGateway(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); + public final AgentGateway getAgentGateway(GetAgentGatewayRequest request) { + return getAgentGatewayCallable().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. + * Gets details of a single AgentGateway. * *

            Sample code: * @@ -10037,27 +10203,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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { - * SetIamPolicyRequest request = - * SetIamPolicyRequest.newBuilder() - * .setResource( - * EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString()) - * .setPolicy(Policy.newBuilder().build()) - * .setUpdateMask(FieldMask.newBuilder().build()) + * GetAgentGatewayRequest request = + * GetAgentGatewayRequest.newBuilder() + * .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) * .build(); - * ApiFuture future = networkServicesClient.setIamPolicyCallable().futureCall(request); + * ApiFuture future = + * networkServicesClient.getAgentGatewayCallable().futureCall(request); * // Do something. - * Policy response = future.get(); + * AgentGateway response = future.get(); * } * } */ - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); + public final UnaryCallable getAgentGatewayCallable() { + return stub.getAgentGatewayCallable(); } // 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. + * Creates a new AgentGateway in a given project and location. * *

            Sample code: * @@ -10068,27 +10231,34 @@ 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { - * GetIamPolicyRequest request = - * GetIamPolicyRequest.newBuilder() - * .setResource( - * EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString()) - * .setOptions(GetPolicyOptions.newBuilder().build()) - * .build(); - * Policy response = networkServicesClient.getIamPolicy(request); + * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + * AgentGateway agentGateway = AgentGateway.newBuilder().build(); + * String agentGatewayId = "agentGatewayId1729577210"; + * AgentGateway response = + * networkServicesClient.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); * } * } * - * @param request The request object containing all of the parameters for the API call. + * @param parent Required. The parent resource of the AgentGateway. Must be in the format + * `projects/*/locations/*`. + * @param agentGateway Required. AgentGateway resource to be created. + * @param agentGatewayId Required. Short name of the AgentGateway resource to be created. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Policy getIamPolicy(GetIamPolicyRequest request) { - return getIamPolicyCallable().call(request); + public final OperationFuture createAgentGatewayAsync( + LocationName parent, AgentGateway agentGateway, String agentGatewayId) { + CreateAgentGatewayRequest request = + CreateAgentGatewayRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAgentGateway(agentGateway) + .setAgentGatewayId(agentGatewayId) + .build(); + return createAgentGatewayAsync(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. + * Creates a new AgentGateway in a given project and location. * *

            Sample code: * @@ -10099,30 +10269,687 @@ 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { - * GetIamPolicyRequest request = - * GetIamPolicyRequest.newBuilder() - * .setResource( - * EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString()) - * .setOptions(GetPolicyOptions.newBuilder().build()) - * .build(); - * ApiFuture future = networkServicesClient.getIamPolicyCallable().futureCall(request); - * // Do something. - * Policy response = future.get(); + * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + * AgentGateway agentGateway = AgentGateway.newBuilder().build(); + * String agentGatewayId = "agentGatewayId1729577210"; + * AgentGateway response = + * networkServicesClient.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); * } * } + * + * @param parent Required. The parent resource of the AgentGateway. Must be in the format + * `projects/*/locations/*`. + * @param agentGateway Required. AgentGateway resource to be created. + * @param agentGatewayId Required. Short name of the AgentGateway resource to be created. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable getIamPolicyCallable() { - return stub.getIamPolicyCallable(); + public final OperationFuture createAgentGatewayAsync( + String parent, AgentGateway agentGateway, String agentGatewayId) { + CreateAgentGatewayRequest request = + CreateAgentGatewayRequest.newBuilder() + .setParent(parent) + .setAgentGateway(agentGateway) + .setAgentGatewayId(agentGatewayId) + .build(); + return createAgentGatewayAsync(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. + * Creates a new AgentGateway 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
            +   *   CreateAgentGatewayRequest request =
            +   *       CreateAgentGatewayRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setAgentGatewayId("agentGatewayId1729577210")
            +   *           .setAgentGateway(AgentGateway.newBuilder().build())
            +   *           .build();
            +   *   AgentGateway response = networkServicesClient.createAgentGatewayAsync(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 createAgentGatewayAsync( + CreateAgentGatewayRequest request) { + return createAgentGatewayOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AgentGateway 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
            +   *   CreateAgentGatewayRequest request =
            +   *       CreateAgentGatewayRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setAgentGatewayId("agentGatewayId1729577210")
            +   *           .setAgentGateway(AgentGateway.newBuilder().build())
            +   *           .build();
            +   *   OperationFuture future =
            +   *       networkServicesClient.createAgentGatewayOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   AgentGateway response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + createAgentGatewayOperationCallable() { + return stub.createAgentGatewayOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AgentGateway 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
            +   *   CreateAgentGatewayRequest request =
            +   *       CreateAgentGatewayRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setAgentGatewayId("agentGatewayId1729577210")
            +   *           .setAgentGateway(AgentGateway.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       networkServicesClient.createAgentGatewayCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable createAgentGatewayCallable() { + return stub.createAgentGatewayCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AgentGateway. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
            +   *   AgentGateway agentGateway = AgentGateway.newBuilder().build();
            +   *   FieldMask updateMask = FieldMask.newBuilder().build();
            +   *   AgentGateway response =
            +   *       networkServicesClient.updateAgentGatewayAsync(agentGateway, updateMask).get();
            +   * }
            +   * }
            + * + * @param agentGateway Required. Updated AgentGateway resource. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * AgentGateway resource by the update. The fields specified in the update_mask are relative + * to the resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then all fields will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateAgentGatewayAsync( + AgentGateway agentGateway, FieldMask updateMask) { + UpdateAgentGatewayRequest request = + UpdateAgentGatewayRequest.newBuilder() + .setAgentGateway(agentGateway) + .setUpdateMask(updateMask) + .build(); + return updateAgentGatewayAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AgentGateway. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
            +   *   UpdateAgentGatewayRequest request =
            +   *       UpdateAgentGatewayRequest.newBuilder()
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .setAgentGateway(AgentGateway.newBuilder().build())
            +   *           .build();
            +   *   AgentGateway response = networkServicesClient.updateAgentGatewayAsync(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 updateAgentGatewayAsync( + UpdateAgentGatewayRequest request) { + return updateAgentGatewayOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AgentGateway. + * + *

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
            +   *   DeleteAgentGatewayRequest request =
            +   *       DeleteAgentGatewayRequest.newBuilder()
            +   *           .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString())
            +   *           .setEtag("etag3123477")
            +   *           .build();
            +   *   networkServicesClient.deleteAgentGatewayAsync(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 deleteAgentGatewayAsync( + DeleteAgentGatewayRequest request) { + return deleteAgentGatewayOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AgentGateway. + * + *

            Sample code: + * + *

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
            +   *   DeleteAgentGatewayRequest request =
            +   *       DeleteAgentGatewayRequest.newBuilder()
            +   *           .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString())
            +   *           .setEtag("etag3123477")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       networkServicesClient.deleteAgentGatewayCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable deleteAgentGatewayCallable() { + return stub.deleteAgentGatewayCallable(); + } + + // 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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
            +   *   ListLocationsRequest request =
            +   *       ListLocationsRequest.newBuilder()
            +   *           .setName("name3373707")
            +   *           .setFilter("filter-1274492040")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   for (Location element : networkServicesClient.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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
            +   *   ListLocationsRequest request =
            +   *       ListLocationsRequest.newBuilder()
            +   *           .setName("name3373707")
            +   *           .setFilter("filter-1274492040")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       networkServicesClient.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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
            +   *   ListLocationsRequest request =
            +   *       ListLocationsRequest.newBuilder()
            +   *           .setName("name3373707")
            +   *           .setFilter("filter-1274492040")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   while (true) {
            +   *     ListLocationsResponse response =
            +   *         networkServicesClient.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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
            +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
            +   *   Location response = networkServicesClient.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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
            +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
            +   *   ApiFuture future = networkServicesClient.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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
            +   *   SetIamPolicyRequest request =
            +   *       SetIamPolicyRequest.newBuilder()
            +   *           .setResource(
            +   *               EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString())
            +   *           .setPolicy(Policy.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   Policy response = networkServicesClient.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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
            +   *   SetIamPolicyRequest request =
            +   *       SetIamPolicyRequest.newBuilder()
            +   *           .setResource(
            +   *               EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString())
            +   *           .setPolicy(Policy.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future = networkServicesClient.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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
            +   *   GetIamPolicyRequest request =
            +   *       GetIamPolicyRequest.newBuilder()
            +   *           .setResource(
            +   *               EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString())
            +   *           .setOptions(GetPolicyOptions.newBuilder().build())
            +   *           .build();
            +   *   Policy response = networkServicesClient.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 (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) {
            +   *   GetIamPolicyRequest request =
            +   *       GetIamPolicyRequest.newBuilder()
            +   *           .setResource(
            +   *               EndpointPolicyName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT_POLICY]").toString())
            +   *           .setOptions(GetPolicyOptions.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future = networkServicesClient.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: * @@ -11249,6 +12076,86 @@ protected ListMeshRouteViewsFixedSizeCollection createCollection( } } + public static class ListAgentGatewaysPagedResponse + extends AbstractPagedListResponse< + ListAgentGatewaysRequest, + ListAgentGatewaysResponse, + AgentGateway, + ListAgentGatewaysPage, + ListAgentGatewaysFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAgentGatewaysPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAgentGatewaysPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAgentGatewaysPagedResponse(ListAgentGatewaysPage page) { + super(page, ListAgentGatewaysFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAgentGatewaysPage + extends AbstractPage< + ListAgentGatewaysRequest, + ListAgentGatewaysResponse, + AgentGateway, + ListAgentGatewaysPage> { + + private ListAgentGatewaysPage( + PageContext context, + ListAgentGatewaysResponse response) { + super(context, response); + } + + private static ListAgentGatewaysPage createEmptyPage() { + return new ListAgentGatewaysPage(null, null); + } + + @Override + protected ListAgentGatewaysPage createPage( + PageContext context, + ListAgentGatewaysResponse response) { + return new ListAgentGatewaysPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAgentGatewaysFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAgentGatewaysRequest, + ListAgentGatewaysResponse, + AgentGateway, + ListAgentGatewaysPage, + ListAgentGatewaysFixedSizeCollection> { + + private ListAgentGatewaysFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAgentGatewaysFixedSizeCollection createEmptyCollection() { + return new ListAgentGatewaysFixedSizeCollection(null, 0); + } + + @Override + protected ListAgentGatewaysFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAgentGatewaysFixedSizeCollection(pages, collectionSize); + } + } + public static class ListLocationsPagedResponse extends AbstractPagedListResponse< ListLocationsRequest, diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesSettings.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesSettings.java index a4a5becdfe4d..27e2743c5d9b 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesSettings.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.networkservices.v1; +import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListAgentGatewaysPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListEndpointPoliciesPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewayRouteViewsPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewaysPagedResponse; @@ -671,6 +672,51 @@ public UnaryCallSettings getMeshRouteVie return ((NetworkServicesStubSettings) getStubSettings()).listMeshRouteViewsSettings(); } + /** Returns the object with the settings used for calls to listAgentGateways. */ + public PagedCallSettings< + ListAgentGatewaysRequest, ListAgentGatewaysResponse, ListAgentGatewaysPagedResponse> + listAgentGatewaysSettings() { + return ((NetworkServicesStubSettings) getStubSettings()).listAgentGatewaysSettings(); + } + + /** Returns the object with the settings used for calls to getAgentGateway. */ + public UnaryCallSettings getAgentGatewaySettings() { + return ((NetworkServicesStubSettings) getStubSettings()).getAgentGatewaySettings(); + } + + /** Returns the object with the settings used for calls to createAgentGateway. */ + public UnaryCallSettings createAgentGatewaySettings() { + return ((NetworkServicesStubSettings) getStubSettings()).createAgentGatewaySettings(); + } + + /** Returns the object with the settings used for calls to createAgentGateway. */ + public OperationCallSettings + createAgentGatewayOperationSettings() { + return ((NetworkServicesStubSettings) getStubSettings()).createAgentGatewayOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateAgentGateway. */ + public UnaryCallSettings updateAgentGatewaySettings() { + return ((NetworkServicesStubSettings) getStubSettings()).updateAgentGatewaySettings(); + } + + /** Returns the object with the settings used for calls to updateAgentGateway. */ + public OperationCallSettings + updateAgentGatewayOperationSettings() { + return ((NetworkServicesStubSettings) getStubSettings()).updateAgentGatewayOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteAgentGateway. */ + public UnaryCallSettings deleteAgentGatewaySettings() { + return ((NetworkServicesStubSettings) getStubSettings()).deleteAgentGatewaySettings(); + } + + /** Returns the object with the settings used for calls to deleteAgentGateway. */ + public OperationCallSettings + deleteAgentGatewayOperationSettings() { + return ((NetworkServicesStubSettings) getStubSettings()).deleteAgentGatewayOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -1354,6 +1400,55 @@ public UnaryCallSettings.Builder deleteMeshSetting return getStubSettingsBuilder().listMeshRouteViewsSettings(); } + /** Returns the builder for the settings used for calls to listAgentGateways. */ + public PagedCallSettings.Builder< + ListAgentGatewaysRequest, ListAgentGatewaysResponse, ListAgentGatewaysPagedResponse> + listAgentGatewaysSettings() { + return getStubSettingsBuilder().listAgentGatewaysSettings(); + } + + /** Returns the builder for the settings used for calls to getAgentGateway. */ + public UnaryCallSettings.Builder + getAgentGatewaySettings() { + return getStubSettingsBuilder().getAgentGatewaySettings(); + } + + /** Returns the builder for the settings used for calls to createAgentGateway. */ + public UnaryCallSettings.Builder + createAgentGatewaySettings() { + return getStubSettingsBuilder().createAgentGatewaySettings(); + } + + /** Returns the builder for the settings used for calls to createAgentGateway. */ + public OperationCallSettings.Builder + createAgentGatewayOperationSettings() { + return getStubSettingsBuilder().createAgentGatewayOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateAgentGateway. */ + public UnaryCallSettings.Builder + updateAgentGatewaySettings() { + return getStubSettingsBuilder().updateAgentGatewaySettings(); + } + + /** Returns the builder for the settings used for calls to updateAgentGateway. */ + public OperationCallSettings.Builder + updateAgentGatewayOperationSettings() { + return getStubSettingsBuilder().updateAgentGatewayOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAgentGateway. */ + public UnaryCallSettings.Builder + deleteAgentGatewaySettings() { + return getStubSettingsBuilder().deleteAgentGatewaySettings(); + } + + /** Returns the builder for the settings used for calls to deleteAgentGateway. */ + public OperationCallSettings.Builder + deleteAgentGatewayOperationSettings() { + return getStubSettingsBuilder().deleteAgentGatewayOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/gapic_metadata.json b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/gapic_metadata.json index 52d3ed7c7c54..8cc5cf055a66 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/gapic_metadata.json +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/gapic_metadata.json @@ -94,6 +94,9 @@ "grpc": { "libraryClient": "NetworkServicesClient", "rpcs": { + "CreateAgentGateway": { + "methods": ["createAgentGatewayAsync", "createAgentGatewayAsync", "createAgentGatewayAsync", "createAgentGatewayOperationCallable", "createAgentGatewayCallable"] + }, "CreateEndpointPolicy": { "methods": ["createEndpointPolicyAsync", "createEndpointPolicyAsync", "createEndpointPolicyAsync", "createEndpointPolicyOperationCallable", "createEndpointPolicyCallable"] }, @@ -127,6 +130,9 @@ "CreateWasmPluginVersion": { "methods": ["createWasmPluginVersionAsync", "createWasmPluginVersionAsync", "createWasmPluginVersionAsync", "createWasmPluginVersionOperationCallable", "createWasmPluginVersionCallable"] }, + "DeleteAgentGateway": { + "methods": ["deleteAgentGatewayAsync", "deleteAgentGatewayAsync", "deleteAgentGatewayAsync", "deleteAgentGatewayOperationCallable", "deleteAgentGatewayCallable"] + }, "DeleteEndpointPolicy": { "methods": ["deleteEndpointPolicyAsync", "deleteEndpointPolicyAsync", "deleteEndpointPolicyAsync", "deleteEndpointPolicyOperationCallable", "deleteEndpointPolicyCallable"] }, @@ -160,6 +166,9 @@ "DeleteWasmPluginVersion": { "methods": ["deleteWasmPluginVersionAsync", "deleteWasmPluginVersionAsync", "deleteWasmPluginVersionAsync", "deleteWasmPluginVersionOperationCallable", "deleteWasmPluginVersionCallable"] }, + "GetAgentGateway": { + "methods": ["getAgentGateway", "getAgentGateway", "getAgentGateway", "getAgentGatewayCallable"] + }, "GetEndpointPolicy": { "methods": ["getEndpointPolicy", "getEndpointPolicy", "getEndpointPolicy", "getEndpointPolicyCallable"] }, @@ -205,6 +214,9 @@ "GetWasmPluginVersion": { "methods": ["getWasmPluginVersion", "getWasmPluginVersion", "getWasmPluginVersion", "getWasmPluginVersionCallable"] }, + "ListAgentGateways": { + "methods": ["listAgentGateways", "listAgentGateways", "listAgentGateways", "listAgentGatewaysPagedCallable", "listAgentGatewaysCallable"] + }, "ListEndpointPolicies": { "methods": ["listEndpointPolicies", "listEndpointPolicies", "listEndpointPolicies", "listEndpointPoliciesPagedCallable", "listEndpointPoliciesCallable"] }, @@ -253,6 +265,9 @@ "TestIamPermissions": { "methods": ["testIamPermissions", "testIamPermissionsCallable"] }, + "UpdateAgentGateway": { + "methods": ["updateAgentGatewayAsync", "updateAgentGatewayAsync", "updateAgentGatewayOperationCallable", "updateAgentGatewayCallable"] + }, "UpdateEndpointPolicy": { "methods": ["updateEndpointPolicyAsync", "updateEndpointPolicyAsync", "updateEndpointPolicyOperationCallable", "updateEndpointPolicyCallable"] }, diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/GrpcNetworkServicesStub.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/GrpcNetworkServicesStub.java index 892a8d6e9f85..7b15319ff5fc 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/GrpcNetworkServicesStub.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/GrpcNetworkServicesStub.java @@ -16,6 +16,7 @@ package com.google.cloud.networkservices.v1.stub; +import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListAgentGatewaysPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListEndpointPoliciesPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewayRouteViewsPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewaysPagedResponse; @@ -43,6 +44,8 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.CreateAgentGatewayRequest; import com.google.cloud.networkservices.v1.CreateEndpointPolicyRequest; import com.google.cloud.networkservices.v1.CreateGatewayRequest; import com.google.cloud.networkservices.v1.CreateGrpcRouteRequest; @@ -54,6 +57,7 @@ import com.google.cloud.networkservices.v1.CreateTlsRouteRequest; import com.google.cloud.networkservices.v1.CreateWasmPluginRequest; import com.google.cloud.networkservices.v1.CreateWasmPluginVersionRequest; +import com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest; import com.google.cloud.networkservices.v1.DeleteEndpointPolicyRequest; import com.google.cloud.networkservices.v1.DeleteGatewayRequest; import com.google.cloud.networkservices.v1.DeleteGrpcRouteRequest; @@ -68,6 +72,7 @@ import com.google.cloud.networkservices.v1.EndpointPolicy; import com.google.cloud.networkservices.v1.Gateway; import com.google.cloud.networkservices.v1.GatewayRouteView; +import com.google.cloud.networkservices.v1.GetAgentGatewayRequest; import com.google.cloud.networkservices.v1.GetEndpointPolicyRequest; import com.google.cloud.networkservices.v1.GetGatewayRequest; import com.google.cloud.networkservices.v1.GetGatewayRouteViewRequest; @@ -83,6 +88,8 @@ import com.google.cloud.networkservices.v1.GetWasmPluginVersionRequest; import com.google.cloud.networkservices.v1.GrpcRoute; import com.google.cloud.networkservices.v1.HttpRoute; +import com.google.cloud.networkservices.v1.ListAgentGatewaysRequest; +import com.google.cloud.networkservices.v1.ListAgentGatewaysResponse; import com.google.cloud.networkservices.v1.ListEndpointPoliciesRequest; import com.google.cloud.networkservices.v1.ListEndpointPoliciesResponse; import com.google.cloud.networkservices.v1.ListGatewayRouteViewsRequest; @@ -116,6 +123,7 @@ import com.google.cloud.networkservices.v1.ServiceLbPolicy; import com.google.cloud.networkservices.v1.TcpRoute; import com.google.cloud.networkservices.v1.TlsRoute; +import com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest; import com.google.cloud.networkservices.v1.UpdateEndpointPolicyRequest; import com.google.cloud.networkservices.v1.UpdateGatewayRequest; import com.google.cloud.networkservices.v1.UpdateGrpcRouteRequest; @@ -806,6 +814,66 @@ public class GrpcNetworkServicesStub extends NetworkServicesStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + listAgentGatewaysMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkservices.v1.NetworkServices/ListAgentGateways") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAgentGatewaysRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAgentGatewaysResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAgentGatewayMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.networkservices.v1.NetworkServices/GetAgentGateway") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAgentGatewayRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AgentGateway.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createAgentGatewayMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkservices.v1.NetworkServices/CreateAgentGateway") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAgentGatewayRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateAgentGatewayMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkservices.v1.NetworkServices/UpdateAgentGateway") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAgentGatewayRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteAgentGatewayMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.networkservices.v1.NetworkServices/DeleteAgentGateway") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAgentGatewayRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -1020,6 +1088,20 @@ public class GrpcNetworkServicesStub extends NetworkServicesStub { listMeshRouteViewsCallable; private final UnaryCallable listMeshRouteViewsPagedCallable; + private final UnaryCallable + listAgentGatewaysCallable; + private final UnaryCallable + listAgentGatewaysPagedCallable; + private final UnaryCallable getAgentGatewayCallable; + private final UnaryCallable createAgentGatewayCallable; + private final OperationCallable + createAgentGatewayOperationCallable; + private final UnaryCallable updateAgentGatewayCallable; + private final OperationCallable + updateAgentGatewayOperationCallable; + private final UnaryCallable deleteAgentGatewayCallable; + private final OperationCallable + deleteAgentGatewayOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -1728,6 +1810,62 @@ protected GrpcNetworkServicesStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings + listAgentGatewaysTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAgentGatewaysMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getAgentGatewayTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAgentGatewayMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings createAgentGatewayTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAgentGatewayMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateAgentGatewayTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAgentGatewayMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "agent_gateway.name", String.valueOf(request.getAgentGateway().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteAgentGatewayTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAgentGatewayMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -2244,6 +2382,52 @@ protected GrpcNetworkServicesStub( listMeshRouteViewsTransportSettings, settings.listMeshRouteViewsSettings(), clientContext); + this.listAgentGatewaysCallable = + callableFactory.createUnaryCallable( + listAgentGatewaysTransportSettings, + settings.listAgentGatewaysSettings(), + clientContext); + this.listAgentGatewaysPagedCallable = + callableFactory.createPagedCallable( + listAgentGatewaysTransportSettings, + settings.listAgentGatewaysSettings(), + clientContext); + this.getAgentGatewayCallable = + callableFactory.createUnaryCallable( + getAgentGatewayTransportSettings, settings.getAgentGatewaySettings(), clientContext); + this.createAgentGatewayCallable = + callableFactory.createUnaryCallable( + createAgentGatewayTransportSettings, + settings.createAgentGatewaySettings(), + clientContext); + this.createAgentGatewayOperationCallable = + callableFactory.createOperationCallable( + createAgentGatewayTransportSettings, + settings.createAgentGatewayOperationSettings(), + clientContext, + operationsStub); + this.updateAgentGatewayCallable = + callableFactory.createUnaryCallable( + updateAgentGatewayTransportSettings, + settings.updateAgentGatewaySettings(), + clientContext); + this.updateAgentGatewayOperationCallable = + callableFactory.createOperationCallable( + updateAgentGatewayTransportSettings, + settings.updateAgentGatewayOperationSettings(), + clientContext, + operationsStub); + this.deleteAgentGatewayCallable = + callableFactory.createUnaryCallable( + deleteAgentGatewayTransportSettings, + settings.deleteAgentGatewaySettings(), + clientContext); + this.deleteAgentGatewayOperationCallable = + callableFactory.createOperationCallable( + deleteAgentGatewayTransportSettings, + settings.deleteAgentGatewayOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -2840,6 +3024,56 @@ public UnaryCallable getMeshRouteViewCal return listMeshRouteViewsPagedCallable; } + @Override + public UnaryCallable + listAgentGatewaysCallable() { + return listAgentGatewaysCallable; + } + + @Override + public UnaryCallable + listAgentGatewaysPagedCallable() { + return listAgentGatewaysPagedCallable; + } + + @Override + public UnaryCallable getAgentGatewayCallable() { + return getAgentGatewayCallable; + } + + @Override + public UnaryCallable createAgentGatewayCallable() { + return createAgentGatewayCallable; + } + + @Override + public OperationCallable + createAgentGatewayOperationCallable() { + return createAgentGatewayOperationCallable; + } + + @Override + public UnaryCallable updateAgentGatewayCallable() { + return updateAgentGatewayCallable; + } + + @Override + public OperationCallable + updateAgentGatewayOperationCallable() { + return updateAgentGatewayOperationCallable; + } + + @Override + public UnaryCallable deleteAgentGatewayCallable() { + return deleteAgentGatewayCallable; + } + + @Override + public OperationCallable + deleteAgentGatewayOperationCallable() { + return deleteAgentGatewayOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/HttpJsonNetworkServicesStub.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/HttpJsonNetworkServicesStub.java index 89b4b6814079..72e58e3add30 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/HttpJsonNetworkServicesStub.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/HttpJsonNetworkServicesStub.java @@ -16,6 +16,7 @@ package com.google.cloud.networkservices.v1.stub; +import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListAgentGatewaysPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListEndpointPoliciesPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewayRouteViewsPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewaysPagedResponse; @@ -51,6 +52,8 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.CreateAgentGatewayRequest; import com.google.cloud.networkservices.v1.CreateEndpointPolicyRequest; import com.google.cloud.networkservices.v1.CreateGatewayRequest; import com.google.cloud.networkservices.v1.CreateGrpcRouteRequest; @@ -62,6 +65,7 @@ import com.google.cloud.networkservices.v1.CreateTlsRouteRequest; import com.google.cloud.networkservices.v1.CreateWasmPluginRequest; import com.google.cloud.networkservices.v1.CreateWasmPluginVersionRequest; +import com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest; import com.google.cloud.networkservices.v1.DeleteEndpointPolicyRequest; import com.google.cloud.networkservices.v1.DeleteGatewayRequest; import com.google.cloud.networkservices.v1.DeleteGrpcRouteRequest; @@ -76,6 +80,7 @@ import com.google.cloud.networkservices.v1.EndpointPolicy; import com.google.cloud.networkservices.v1.Gateway; import com.google.cloud.networkservices.v1.GatewayRouteView; +import com.google.cloud.networkservices.v1.GetAgentGatewayRequest; import com.google.cloud.networkservices.v1.GetEndpointPolicyRequest; import com.google.cloud.networkservices.v1.GetGatewayRequest; import com.google.cloud.networkservices.v1.GetGatewayRouteViewRequest; @@ -91,6 +96,8 @@ import com.google.cloud.networkservices.v1.GetWasmPluginVersionRequest; import com.google.cloud.networkservices.v1.GrpcRoute; import com.google.cloud.networkservices.v1.HttpRoute; +import com.google.cloud.networkservices.v1.ListAgentGatewaysRequest; +import com.google.cloud.networkservices.v1.ListAgentGatewaysResponse; import com.google.cloud.networkservices.v1.ListEndpointPoliciesRequest; import com.google.cloud.networkservices.v1.ListEndpointPoliciesResponse; import com.google.cloud.networkservices.v1.ListGatewayRouteViewsRequest; @@ -124,6 +131,7 @@ import com.google.cloud.networkservices.v1.ServiceLbPolicy; import com.google.cloud.networkservices.v1.TcpRoute; import com.google.cloud.networkservices.v1.TlsRoute; +import com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest; import com.google.cloud.networkservices.v1.UpdateEndpointPolicyRequest; import com.google.cloud.networkservices.v1.UpdateGatewayRequest; import com.google.cloud.networkservices.v1.UpdateGrpcRouteRequest; @@ -175,6 +183,7 @@ public class HttpJsonNetworkServicesStub extends NetworkServicesStub { .add(Empty.getDescriptor()) .add(Gateway.getDescriptor()) .add(ServiceLbPolicy.getDescriptor()) + .add(AgentGateway.getDescriptor()) .add(GrpcRoute.getDescriptor()) .build(); @@ -1132,6 +1141,7 @@ public class HttpJsonNetworkServicesStub extends NetworkServicesStub { 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( @@ -1206,6 +1216,7 @@ public class HttpJsonNetworkServicesStub extends NetworkServicesStub { ProtoRestSerializer.create(); serializer.putQueryParam( fields, "httpRouteId", request.getHttpRouteId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -2419,6 +2430,204 @@ public class HttpJsonNetworkServicesStub extends NetworkServicesStub { .build()) .build(); + private static final ApiMethodDescriptor + listAgentGatewaysMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkservices.v1.NetworkServices/ListAgentGateways") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/agentGateways", + 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, "returnPartialSuccess", request.getReturnPartialSuccess()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAgentGatewaysResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAgentGatewayMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.networkservices.v1.NetworkServices/GetAgentGateway") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/agentGateways/*}", + 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(AgentGateway.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createAgentGatewayMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkservices.v1.NetworkServices/CreateAgentGateway") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/agentGateways", + 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, "agentGatewayId", request.getAgentGatewayId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("agentGateway", request.getAgentGateway(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateAgentGatewayRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateAgentGatewayMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkservices.v1.NetworkServices/UpdateAgentGateway") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{agentGateway.name=projects/*/locations/*/agentGateways/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "agentGateway.name", request.getAgentGateway().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("agentGateway", request.getAgentGateway(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateAgentGatewayRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteAgentGatewayMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.networkservices.v1.NetworkServices/DeleteAgentGateway") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/agentGateways/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteAgentGatewayRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -2779,6 +2988,20 @@ public class HttpJsonNetworkServicesStub extends NetworkServicesStub { listMeshRouteViewsCallable; private final UnaryCallable listMeshRouteViewsPagedCallable; + private final UnaryCallable + listAgentGatewaysCallable; + private final UnaryCallable + listAgentGatewaysPagedCallable; + private final UnaryCallable getAgentGatewayCallable; + private final UnaryCallable createAgentGatewayCallable; + private final OperationCallable + createAgentGatewayOperationCallable; + private final UnaryCallable updateAgentGatewayCallable; + private final OperationCallable + updateAgentGatewayOperationCallable; + private final UnaryCallable deleteAgentGatewayCallable; + private final OperationCallable + deleteAgentGatewayOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -3583,6 +3806,67 @@ protected HttpJsonNetworkServicesStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings + listAgentGatewaysTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAgentGatewaysMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getAgentGatewayTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAgentGatewayMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings createAgentGatewayTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAgentGatewayMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updateAgentGatewayTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAgentGatewayMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "agent_gateway.name", String.valueOf(request.getAgentGateway().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteAgentGatewayTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAgentGatewayMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -4105,6 +4389,52 @@ protected HttpJsonNetworkServicesStub( listMeshRouteViewsTransportSettings, settings.listMeshRouteViewsSettings(), clientContext); + this.listAgentGatewaysCallable = + callableFactory.createUnaryCallable( + listAgentGatewaysTransportSettings, + settings.listAgentGatewaysSettings(), + clientContext); + this.listAgentGatewaysPagedCallable = + callableFactory.createPagedCallable( + listAgentGatewaysTransportSettings, + settings.listAgentGatewaysSettings(), + clientContext); + this.getAgentGatewayCallable = + callableFactory.createUnaryCallable( + getAgentGatewayTransportSettings, settings.getAgentGatewaySettings(), clientContext); + this.createAgentGatewayCallable = + callableFactory.createUnaryCallable( + createAgentGatewayTransportSettings, + settings.createAgentGatewaySettings(), + clientContext); + this.createAgentGatewayOperationCallable = + callableFactory.createOperationCallable( + createAgentGatewayTransportSettings, + settings.createAgentGatewayOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateAgentGatewayCallable = + callableFactory.createUnaryCallable( + updateAgentGatewayTransportSettings, + settings.updateAgentGatewaySettings(), + clientContext); + this.updateAgentGatewayOperationCallable = + callableFactory.createOperationCallable( + updateAgentGatewayTransportSettings, + settings.updateAgentGatewayOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteAgentGatewayCallable = + callableFactory.createUnaryCallable( + deleteAgentGatewayTransportSettings, + settings.deleteAgentGatewaySettings(), + clientContext); + this.deleteAgentGatewayOperationCallable = + callableFactory.createOperationCallable( + deleteAgentGatewayTransportSettings, + settings.deleteAgentGatewayOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -4191,6 +4521,11 @@ public static List getMethodDescriptors() { methodDescriptors.add(getMeshRouteViewMethodDescriptor); methodDescriptors.add(listGatewayRouteViewsMethodDescriptor); methodDescriptors.add(listMeshRouteViewsMethodDescriptor); + methodDescriptors.add(listAgentGatewaysMethodDescriptor); + methodDescriptors.add(getAgentGatewayMethodDescriptor); + methodDescriptors.add(createAgentGatewayMethodDescriptor); + methodDescriptors.add(updateAgentGatewayMethodDescriptor); + methodDescriptors.add(deleteAgentGatewayMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); methodDescriptors.add(setIamPolicyMethodDescriptor); @@ -4770,6 +5105,56 @@ public UnaryCallable getMeshRouteViewCal return listMeshRouteViewsPagedCallable; } + @Override + public UnaryCallable + listAgentGatewaysCallable() { + return listAgentGatewaysCallable; + } + + @Override + public UnaryCallable + listAgentGatewaysPagedCallable() { + return listAgentGatewaysPagedCallable; + } + + @Override + public UnaryCallable getAgentGatewayCallable() { + return getAgentGatewayCallable; + } + + @Override + public UnaryCallable createAgentGatewayCallable() { + return createAgentGatewayCallable; + } + + @Override + public OperationCallable + createAgentGatewayOperationCallable() { + return createAgentGatewayOperationCallable; + } + + @Override + public UnaryCallable updateAgentGatewayCallable() { + return updateAgentGatewayCallable; + } + + @Override + public OperationCallable + updateAgentGatewayOperationCallable() { + return updateAgentGatewayOperationCallable; + } + + @Override + public UnaryCallable deleteAgentGatewayCallable() { + return deleteAgentGatewayCallable; + } + + @Override + public OperationCallable + deleteAgentGatewayOperationCallable() { + return deleteAgentGatewayOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStub.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStub.java index 081b43fe5e2a..2f9db30fa5d3 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStub.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStub.java @@ -16,6 +16,7 @@ package com.google.cloud.networkservices.v1.stub; +import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListAgentGatewaysPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListEndpointPoliciesPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewayRouteViewsPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewaysPagedResponse; @@ -38,6 +39,8 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.CreateAgentGatewayRequest; import com.google.cloud.networkservices.v1.CreateEndpointPolicyRequest; import com.google.cloud.networkservices.v1.CreateGatewayRequest; import com.google.cloud.networkservices.v1.CreateGrpcRouteRequest; @@ -49,6 +52,7 @@ import com.google.cloud.networkservices.v1.CreateTlsRouteRequest; import com.google.cloud.networkservices.v1.CreateWasmPluginRequest; import com.google.cloud.networkservices.v1.CreateWasmPluginVersionRequest; +import com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest; import com.google.cloud.networkservices.v1.DeleteEndpointPolicyRequest; import com.google.cloud.networkservices.v1.DeleteGatewayRequest; import com.google.cloud.networkservices.v1.DeleteGrpcRouteRequest; @@ -63,6 +67,7 @@ import com.google.cloud.networkservices.v1.EndpointPolicy; import com.google.cloud.networkservices.v1.Gateway; import com.google.cloud.networkservices.v1.GatewayRouteView; +import com.google.cloud.networkservices.v1.GetAgentGatewayRequest; import com.google.cloud.networkservices.v1.GetEndpointPolicyRequest; import com.google.cloud.networkservices.v1.GetGatewayRequest; import com.google.cloud.networkservices.v1.GetGatewayRouteViewRequest; @@ -78,6 +83,8 @@ import com.google.cloud.networkservices.v1.GetWasmPluginVersionRequest; import com.google.cloud.networkservices.v1.GrpcRoute; import com.google.cloud.networkservices.v1.HttpRoute; +import com.google.cloud.networkservices.v1.ListAgentGatewaysRequest; +import com.google.cloud.networkservices.v1.ListAgentGatewaysResponse; import com.google.cloud.networkservices.v1.ListEndpointPoliciesRequest; import com.google.cloud.networkservices.v1.ListEndpointPoliciesResponse; import com.google.cloud.networkservices.v1.ListGatewayRouteViewsRequest; @@ -111,6 +118,7 @@ import com.google.cloud.networkservices.v1.ServiceLbPolicy; import com.google.cloud.networkservices.v1.TcpRoute; import com.google.cloud.networkservices.v1.TlsRoute; +import com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest; import com.google.cloud.networkservices.v1.UpdateEndpointPolicyRequest; import com.google.cloud.networkservices.v1.UpdateGatewayRequest; import com.google.cloud.networkservices.v1.UpdateGrpcRouteRequest; @@ -628,6 +636,50 @@ public UnaryCallable getMeshRouteViewCal throw new UnsupportedOperationException("Not implemented: listMeshRouteViewsCallable()"); } + public UnaryCallable + listAgentGatewaysPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAgentGatewaysPagedCallable()"); + } + + public UnaryCallable + listAgentGatewaysCallable() { + throw new UnsupportedOperationException("Not implemented: listAgentGatewaysCallable()"); + } + + public UnaryCallable getAgentGatewayCallable() { + throw new UnsupportedOperationException("Not implemented: getAgentGatewayCallable()"); + } + + public OperationCallable + createAgentGatewayOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createAgentGatewayOperationCallable()"); + } + + public UnaryCallable createAgentGatewayCallable() { + throw new UnsupportedOperationException("Not implemented: createAgentGatewayCallable()"); + } + + public OperationCallable + updateAgentGatewayOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateAgentGatewayOperationCallable()"); + } + + public UnaryCallable updateAgentGatewayCallable() { + throw new UnsupportedOperationException("Not implemented: updateAgentGatewayCallable()"); + } + + public OperationCallable + deleteAgentGatewayOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteAgentGatewayOperationCallable()"); + } + + public UnaryCallable deleteAgentGatewayCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAgentGatewayCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStubSettings.java b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStubSettings.java index 1d0d4fd3d99b..b7fcf4a19ccf 100644 --- a/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStubSettings.java +++ b/java-networkservices/google-cloud-networkservices/src/main/java/com/google/cloud/networkservices/v1/stub/NetworkServicesStubSettings.java @@ -16,6 +16,7 @@ package com.google.cloud.networkservices.v1.stub; +import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListAgentGatewaysPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListEndpointPoliciesPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewayRouteViewsPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewaysPagedResponse; @@ -66,6 +67,8 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.CreateAgentGatewayRequest; import com.google.cloud.networkservices.v1.CreateEndpointPolicyRequest; import com.google.cloud.networkservices.v1.CreateGatewayRequest; import com.google.cloud.networkservices.v1.CreateGrpcRouteRequest; @@ -77,6 +80,7 @@ import com.google.cloud.networkservices.v1.CreateTlsRouteRequest; import com.google.cloud.networkservices.v1.CreateWasmPluginRequest; import com.google.cloud.networkservices.v1.CreateWasmPluginVersionRequest; +import com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest; import com.google.cloud.networkservices.v1.DeleteEndpointPolicyRequest; import com.google.cloud.networkservices.v1.DeleteGatewayRequest; import com.google.cloud.networkservices.v1.DeleteGrpcRouteRequest; @@ -91,6 +95,7 @@ import com.google.cloud.networkservices.v1.EndpointPolicy; import com.google.cloud.networkservices.v1.Gateway; import com.google.cloud.networkservices.v1.GatewayRouteView; +import com.google.cloud.networkservices.v1.GetAgentGatewayRequest; import com.google.cloud.networkservices.v1.GetEndpointPolicyRequest; import com.google.cloud.networkservices.v1.GetGatewayRequest; import com.google.cloud.networkservices.v1.GetGatewayRouteViewRequest; @@ -106,6 +111,8 @@ import com.google.cloud.networkservices.v1.GetWasmPluginVersionRequest; import com.google.cloud.networkservices.v1.GrpcRoute; import com.google.cloud.networkservices.v1.HttpRoute; +import com.google.cloud.networkservices.v1.ListAgentGatewaysRequest; +import com.google.cloud.networkservices.v1.ListAgentGatewaysResponse; import com.google.cloud.networkservices.v1.ListEndpointPoliciesRequest; import com.google.cloud.networkservices.v1.ListEndpointPoliciesResponse; import com.google.cloud.networkservices.v1.ListGatewayRouteViewsRequest; @@ -139,6 +146,7 @@ import com.google.cloud.networkservices.v1.ServiceLbPolicy; import com.google.cloud.networkservices.v1.TcpRoute; import com.google.cloud.networkservices.v1.TlsRoute; +import com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest; import com.google.cloud.networkservices.v1.UpdateEndpointPolicyRequest; import com.google.cloud.networkservices.v1.UpdateGatewayRequest; import com.google.cloud.networkservices.v1.UpdateGrpcRouteRequest; @@ -429,6 +437,19 @@ public class NetworkServicesStubSettings extends StubSettings listMeshRouteViewsSettings; + private final PagedCallSettings< + ListAgentGatewaysRequest, ListAgentGatewaysResponse, ListAgentGatewaysPagedResponse> + listAgentGatewaysSettings; + private final UnaryCallSettings getAgentGatewaySettings; + private final UnaryCallSettings createAgentGatewaySettings; + private final OperationCallSettings + createAgentGatewayOperationSettings; + private final UnaryCallSettings updateAgentGatewaySettings; + private final OperationCallSettings + updateAgentGatewayOperationSettings; + private final UnaryCallSettings deleteAgentGatewaySettings; + private final OperationCallSettings + deleteAgentGatewayOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -914,6 +935,44 @@ public Iterable extractResources(ListMeshRouteViewsResponse paylo } }; + private static final PagedListDescriptor< + ListAgentGatewaysRequest, ListAgentGatewaysResponse, AgentGateway> + LIST_AGENT_GATEWAYS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAgentGatewaysRequest, ListAgentGatewaysResponse, AgentGateway>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAgentGatewaysRequest injectToken( + ListAgentGatewaysRequest payload, String token) { + return ListAgentGatewaysRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAgentGatewaysRequest injectPageSize( + ListAgentGatewaysRequest payload, int pageSize) { + return ListAgentGatewaysRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAgentGatewaysRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAgentGatewaysResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAgentGatewaysResponse payload) { + return payload.getAgentGatewaysList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -1207,6 +1266,27 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListAgentGatewaysRequest, ListAgentGatewaysResponse, ListAgentGatewaysPagedResponse> + LIST_AGENT_GATEWAYS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAgentGatewaysRequest, + ListAgentGatewaysResponse, + ListAgentGatewaysPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAgentGatewaysRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_AGENT_GATEWAYS_PAGE_STR_DESC, request, context); + return ListAgentGatewaysPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -1744,6 +1824,51 @@ public UnaryCallSettings getMeshRouteVie return listMeshRouteViewsSettings; } + /** Returns the object with the settings used for calls to listAgentGateways. */ + public PagedCallSettings< + ListAgentGatewaysRequest, ListAgentGatewaysResponse, ListAgentGatewaysPagedResponse> + listAgentGatewaysSettings() { + return listAgentGatewaysSettings; + } + + /** Returns the object with the settings used for calls to getAgentGateway. */ + public UnaryCallSettings getAgentGatewaySettings() { + return getAgentGatewaySettings; + } + + /** Returns the object with the settings used for calls to createAgentGateway. */ + public UnaryCallSettings createAgentGatewaySettings() { + return createAgentGatewaySettings; + } + + /** Returns the object with the settings used for calls to createAgentGateway. */ + public OperationCallSettings + createAgentGatewayOperationSettings() { + return createAgentGatewayOperationSettings; + } + + /** Returns the object with the settings used for calls to updateAgentGateway. */ + public UnaryCallSettings updateAgentGatewaySettings() { + return updateAgentGatewaySettings; + } + + /** Returns the object with the settings used for calls to updateAgentGateway. */ + public OperationCallSettings + updateAgentGatewayOperationSettings() { + return updateAgentGatewayOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteAgentGateway. */ + public UnaryCallSettings deleteAgentGatewaySettings() { + return deleteAgentGatewaySettings; + } + + /** Returns the object with the settings used for calls to deleteAgentGateway. */ + public OperationCallSettings + deleteAgentGatewayOperationSettings() { + return deleteAgentGatewayOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -1983,6 +2108,17 @@ protected NetworkServicesStubSettings(Builder settingsBuilder) throws IOExceptio getMeshRouteViewSettings = settingsBuilder.getMeshRouteViewSettings().build(); listGatewayRouteViewsSettings = settingsBuilder.listGatewayRouteViewsSettings().build(); listMeshRouteViewsSettings = settingsBuilder.listMeshRouteViewsSettings().build(); + listAgentGatewaysSettings = settingsBuilder.listAgentGatewaysSettings().build(); + getAgentGatewaySettings = settingsBuilder.getAgentGatewaySettings().build(); + createAgentGatewaySettings = settingsBuilder.createAgentGatewaySettings().build(); + createAgentGatewayOperationSettings = + settingsBuilder.createAgentGatewayOperationSettings().build(); + updateAgentGatewaySettings = settingsBuilder.updateAgentGatewaySettings().build(); + updateAgentGatewayOperationSettings = + settingsBuilder.updateAgentGatewayOperationSettings().build(); + deleteAgentGatewaySettings = settingsBuilder.deleteAgentGatewaySettings().build(); + deleteAgentGatewayOperationSettings = + settingsBuilder.deleteAgentGatewayOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -2209,6 +2345,25 @@ public static class Builder extends StubSettings.Builder listMeshRouteViewsSettings; + private final PagedCallSettings.Builder< + ListAgentGatewaysRequest, ListAgentGatewaysResponse, ListAgentGatewaysPagedResponse> + listAgentGatewaysSettings; + private final UnaryCallSettings.Builder + getAgentGatewaySettings; + private final UnaryCallSettings.Builder + createAgentGatewaySettings; + private final OperationCallSettings.Builder< + CreateAgentGatewayRequest, AgentGateway, OperationMetadata> + createAgentGatewayOperationSettings; + private final UnaryCallSettings.Builder + updateAgentGatewaySettings; + private final OperationCallSettings.Builder< + UpdateAgentGatewayRequest, AgentGateway, OperationMetadata> + updateAgentGatewayOperationSettings; + private final UnaryCallSettings.Builder + deleteAgentGatewaySettings; + private final OperationCallSettings.Builder + deleteAgentGatewayOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -2347,6 +2502,14 @@ protected Builder(ClientContext clientContext) { PagedCallSettings.newBuilder(LIST_GATEWAY_ROUTE_VIEWS_PAGE_STR_FACT); listMeshRouteViewsSettings = PagedCallSettings.newBuilder(LIST_MESH_ROUTE_VIEWS_PAGE_STR_FACT); + listAgentGatewaysSettings = PagedCallSettings.newBuilder(LIST_AGENT_GATEWAYS_PAGE_STR_FACT); + getAgentGatewaySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAgentGatewaySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAgentGatewayOperationSettings = OperationCallSettings.newBuilder(); + updateAgentGatewaySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAgentGatewayOperationSettings = OperationCallSettings.newBuilder(); + deleteAgentGatewaySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAgentGatewayOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -2413,6 +2576,11 @@ protected Builder(ClientContext clientContext) { getMeshRouteViewSettings, listGatewayRouteViewsSettings, listMeshRouteViewsSettings, + listAgentGatewaysSettings, + getAgentGatewaySettings, + createAgentGatewaySettings, + updateAgentGatewaySettings, + deleteAgentGatewaySettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -2525,6 +2693,17 @@ protected Builder(NetworkServicesStubSettings settings) { getMeshRouteViewSettings = settings.getMeshRouteViewSettings.toBuilder(); listGatewayRouteViewsSettings = settings.listGatewayRouteViewsSettings.toBuilder(); listMeshRouteViewsSettings = settings.listMeshRouteViewsSettings.toBuilder(); + listAgentGatewaysSettings = settings.listAgentGatewaysSettings.toBuilder(); + getAgentGatewaySettings = settings.getAgentGatewaySettings.toBuilder(); + createAgentGatewaySettings = settings.createAgentGatewaySettings.toBuilder(); + createAgentGatewayOperationSettings = + settings.createAgentGatewayOperationSettings.toBuilder(); + updateAgentGatewaySettings = settings.updateAgentGatewaySettings.toBuilder(); + updateAgentGatewayOperationSettings = + settings.updateAgentGatewayOperationSettings.toBuilder(); + deleteAgentGatewaySettings = settings.deleteAgentGatewaySettings.toBuilder(); + deleteAgentGatewayOperationSettings = + settings.deleteAgentGatewayOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -2591,6 +2770,11 @@ protected Builder(NetworkServicesStubSettings settings) { getMeshRouteViewSettings, listGatewayRouteViewsSettings, listMeshRouteViewsSettings, + listAgentGatewaysSettings, + getAgentGatewaySettings, + createAgentGatewaySettings, + updateAgentGatewaySettings, + deleteAgentGatewaySettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -2913,6 +3097,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 + .listAgentGatewaysSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .getAgentGatewaySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .createAgentGatewaySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .updateAgentGatewaySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")); + + builder + .deleteAgentGatewaySettings() + .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")) @@ -3701,6 +3910,78 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .createAgentGatewayOperationSettings() + .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(AgentGateway.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateAgentGatewayOperationSettings() + .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(AgentGateway.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteAgentGatewayOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -4263,6 +4544,55 @@ public UnaryCallSettings.Builder deleteMeshSetting return listMeshRouteViewsSettings; } + /** Returns the builder for the settings used for calls to listAgentGateways. */ + public PagedCallSettings.Builder< + ListAgentGatewaysRequest, ListAgentGatewaysResponse, ListAgentGatewaysPagedResponse> + listAgentGatewaysSettings() { + return listAgentGatewaysSettings; + } + + /** Returns the builder for the settings used for calls to getAgentGateway. */ + public UnaryCallSettings.Builder + getAgentGatewaySettings() { + return getAgentGatewaySettings; + } + + /** Returns the builder for the settings used for calls to createAgentGateway. */ + public UnaryCallSettings.Builder + createAgentGatewaySettings() { + return createAgentGatewaySettings; + } + + /** Returns the builder for the settings used for calls to createAgentGateway. */ + public OperationCallSettings.Builder + createAgentGatewayOperationSettings() { + return createAgentGatewayOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateAgentGateway. */ + public UnaryCallSettings.Builder + updateAgentGatewaySettings() { + return updateAgentGatewaySettings; + } + + /** Returns the builder for the settings used for calls to updateAgentGateway. */ + public OperationCallSettings.Builder + updateAgentGatewayOperationSettings() { + return updateAgentGatewayOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteAgentGateway. */ + public UnaryCallSettings.Builder + deleteAgentGatewaySettings() { + return deleteAgentGatewaySettings; + } + + /** Returns the builder for the settings used for calls to deleteAgentGateway. */ + public OperationCallSettings.Builder + deleteAgentGatewayOperationSettings() { + return deleteAgentGatewayOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> 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 a7bc72219571..76caf494c802 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 @@ -593,6 +593,168 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$AgentGatewayOutputCard", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$AgentGatewayOutputCard$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$GoogleManaged", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$GoogleManaged$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$GoogleManaged$GovernedAccessPath", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$NetworkConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$NetworkConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$NetworkConfig$DnsPeeringConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$NetworkConfig$DnsPeeringConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$NetworkConfig$Egress", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$NetworkConfig$Egress$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$NetworkConfig$Egress$TrustConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$NetworkConfig$Egress$TrustConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$Protocol", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$SelfManaged", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.AgentGateway$SelfManaged$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkservices.v1.AuthzExtension", "queryAllDeclaredConstructors": true, @@ -611,6 +773,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkservices.v1.BodySendMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.CreateAgentGatewayRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.CreateAgentGatewayRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkservices.v1.CreateAuthzExtensionRequest", "queryAllDeclaredConstructors": true, @@ -881,6 +1070,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkservices.v1.DeleteAuthzExtensionRequest", "queryAllDeclaredConstructors": true, @@ -1376,6 +1583,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkservices.v1.GetAgentGatewayRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.GetAgentGatewayRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkservices.v1.GetAuthzExtensionRequest", "queryAllDeclaredConstructors": true, @@ -2321,6 +2546,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkservices.v1.ListAgentGatewaysRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.ListAgentGatewaysRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.ListAgentGatewaysResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.ListAgentGatewaysResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkservices.v1.ListAuthzExtensionsRequest", "queryAllDeclaredConstructors": true, @@ -3311,6 +3572,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkservices.v1.UpdateAuthzExtensionRequest", "queryAllDeclaredConstructors": true, diff --git a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/DepServiceClientHttpJsonTest.java b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/DepServiceClientHttpJsonTest.java index 046166836ff8..a3d839af83cd 100644 --- a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/DepServiceClientHttpJsonTest.java +++ b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/DepServiceClientHttpJsonTest.java @@ -1775,6 +1775,7 @@ public void getAuthzExtensionTest() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -1833,6 +1834,7 @@ public void getAuthzExtensionTest2() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -1892,6 +1894,7 @@ public void createAuthzExtensionTest() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); Operation resultOperation = @@ -1959,6 +1962,7 @@ public void createAuthzExtensionTest2() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); Operation resultOperation = @@ -2026,6 +2030,7 @@ public void updateAuthzExtensionTest() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); Operation resultOperation = @@ -2051,6 +2056,7 @@ public void updateAuthzExtensionTest() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -2097,6 +2103,7 @@ public void updateAuthzExtensionExceptionTest() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/DepServiceClientTest.java b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/DepServiceClientTest.java index 9658fb789687..09dacc1bc7d0 100644 --- a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/DepServiceClientTest.java +++ b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/DepServiceClientTest.java @@ -1607,6 +1607,7 @@ public void getAuthzExtensionTest() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); mockDepService.addResponse(expectedResponse); @@ -1659,6 +1660,7 @@ public void getAuthzExtensionTest2() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); mockDepService.addResponse(expectedResponse); @@ -1710,6 +1712,7 @@ public void createAuthzExtensionTest() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); Operation resultOperation = @@ -1777,6 +1780,7 @@ public void createAuthzExtensionTest2() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); Operation resultOperation = @@ -1844,6 +1848,7 @@ public void updateAuthzExtensionTest() throws Exception { .setFailOpen(true) .setMetadata(Struct.newBuilder().build()) .addAllForwardHeaders(new ArrayList()) + .addAllForwardAttributes(new ArrayList()) .setWireFormat(WireFormat.forNumber(0)) .build(); Operation resultOperation = diff --git a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/MockNetworkServicesImpl.java b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/MockNetworkServicesImpl.java index 06cd180267e1..2ffa2940dffe 100644 --- a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/MockNetworkServicesImpl.java +++ b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/MockNetworkServicesImpl.java @@ -1291,4 +1291,110 @@ public void listMeshRouteViews( Exception.class.getName()))); } } + + @Override + public void listAgentGateways( + ListAgentGatewaysRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAgentGatewaysResponse) { + requests.add(request); + responseObserver.onNext(((ListAgentGatewaysResponse) 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 ListAgentGateways, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAgentGatewaysResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAgentGateway( + GetAgentGatewayRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AgentGateway) { + requests.add(request); + responseObserver.onNext(((AgentGateway) 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 GetAgentGateway, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AgentGateway.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createAgentGateway( + CreateAgentGatewayRequest 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 CreateAgentGateway, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateAgentGateway( + UpdateAgentGatewayRequest 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 UpdateAgentGateway, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAgentGateway( + DeleteAgentGatewayRequest 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 DeleteAgentGateway, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientHttpJsonTest.java b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientHttpJsonTest.java index 3bafed144056..c6da7fb99e8c 100644 --- a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientHttpJsonTest.java +++ b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientHttpJsonTest.java @@ -16,6 +16,7 @@ package com.google.cloud.networkservices.v1; +import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListAgentGatewaysPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListEndpointPoliciesPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewayRouteViewsPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewaysPagedResponse; @@ -1678,6 +1679,7 @@ public void getGatewayTest() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1685,6 +1687,7 @@ public void getGatewayTest() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); mockService.addResponse(expectedResponse); @@ -1736,6 +1739,7 @@ public void getGatewayTest2() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1743,6 +1747,7 @@ public void getGatewayTest2() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); mockService.addResponse(expectedResponse); @@ -1794,6 +1799,7 @@ public void createGatewayTest() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1801,6 +1807,7 @@ public void createGatewayTest() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1861,6 +1868,7 @@ public void createGatewayTest2() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1868,6 +1876,7 @@ public void createGatewayTest2() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1928,6 +1937,7 @@ public void updateGatewayTest() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1935,6 +1945,7 @@ public void updateGatewayTest() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1954,6 +1965,7 @@ public void updateGatewayTest() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1961,6 +1973,7 @@ public void updateGatewayTest() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -2000,6 +2013,7 @@ public void updateGatewayExceptionTest() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -2007,6 +2021,7 @@ public void updateGatewayExceptionTest() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateGatewayAsync(gateway, updateMask).get(); @@ -3722,6 +3737,7 @@ public void getTlsRouteTest() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -3774,6 +3790,7 @@ public void getTlsRouteTest2() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); mockService.addResponse(expectedResponse); @@ -3826,6 +3843,7 @@ public void createTlsRouteTest() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); Operation resultOperation = @@ -3887,6 +3905,7 @@ public void createTlsRouteTest2() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); Operation resultOperation = @@ -3948,6 +3967,7 @@ public void updateTlsRouteTest() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); Operation resultOperation = @@ -3968,6 +3988,7 @@ public void updateTlsRouteTest() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -4008,6 +4029,7 @@ public void updateTlsRouteExceptionTest() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -6013,6 +6035,512 @@ public void listMeshRouteViewsExceptionTest2() throws Exception { } } + @Test + public void listAgentGatewaysTest() throws Exception { + AgentGateway responsesElement = AgentGateway.newBuilder().build(); + ListAgentGatewaysResponse expectedResponse = + ListAgentGatewaysResponse.newBuilder() + .setNextPageToken("") + .addAllAgentGateways(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAgentGatewaysPagedResponse pagedListResponse = client.listAgentGateways(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentGatewaysList().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 listAgentGatewaysExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAgentGateways(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAgentGatewaysTest2() throws Exception { + AgentGateway responsesElement = AgentGateway.newBuilder().build(); + ListAgentGatewaysResponse expectedResponse = + ListAgentGatewaysResponse.newBuilder() + .setNextPageToken("") + .addAllAgentGateways(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAgentGatewaysPagedResponse pagedListResponse = client.listAgentGateways(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentGatewaysList().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 listAgentGatewaysExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listAgentGateways(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAgentGatewayTest() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + + AgentGateway actualResponse = client.getAgentGateway(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 getAgentGatewayExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + client.getAgentGateway(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAgentGatewayTest2() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7322/locations/location-7322/agentGateways/agentGateway-7322"; + + AgentGateway actualResponse = client.getAgentGateway(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 getAgentGatewayExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7322/locations/location-7322/agentGateways/agentGateway-7322"; + client.getAgentGateway(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAgentGatewayTest() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + + AgentGateway actualResponse = + client.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).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 createAgentGatewayExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + client.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createAgentGatewayTest2() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + + AgentGateway actualResponse = + client.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).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 createAgentGatewayExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + client.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateAgentGatewayTest() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AgentGateway agentGateway = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AgentGateway actualResponse = client.updateAgentGatewayAsync(agentGateway, 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 updateAgentGatewayExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AgentGateway agentGateway = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAgentGatewayAsync(agentGateway, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteAgentGatewayTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + + client.deleteAgentGatewayAsync(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 deleteAgentGatewayExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + client.deleteAgentGatewayAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteAgentGatewayTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-7322/locations/location-7322/agentGateways/agentGateway-7322"; + + client.deleteAgentGatewayAsync(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 deleteAgentGatewayExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7322/locations/location-7322/agentGateways/agentGateway-7322"; + client.deleteAgentGatewayAsync(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-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientTest.java b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientTest.java index 7ca5705d9539..4364ecd50977 100644 --- a/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientTest.java +++ b/java-networkservices/google-cloud-networkservices/src/test/java/com/google/cloud/networkservices/v1/NetworkServicesClientTest.java @@ -16,6 +16,7 @@ package com.google.cloud.networkservices.v1; +import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListAgentGatewaysPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListEndpointPoliciesPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewayRouteViewsPagedResponse; import static com.google.cloud.networkservices.v1.NetworkServicesClient.ListGatewaysPagedResponse; @@ -1534,6 +1535,7 @@ public void getGatewayTest() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1541,6 +1543,7 @@ public void getGatewayTest() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); mockNetworkServices.addResponse(expectedResponse); @@ -1586,6 +1589,7 @@ public void getGatewayTest2() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1593,6 +1597,7 @@ public void getGatewayTest2() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); mockNetworkServices.addResponse(expectedResponse); @@ -1638,6 +1643,7 @@ public void createGatewayTest() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1645,6 +1651,7 @@ public void createGatewayTest() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1704,6 +1711,7 @@ public void createGatewayTest2() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1711,6 +1719,7 @@ public void createGatewayTest2() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -1770,6 +1779,7 @@ public void updateGatewayTest() throws Exception { .setDescription("description-1724546052") .addAllAddresses(new ArrayList()) .addAllPorts(new ArrayList()) + .setAllPorts(true) .setScope("scope109264468") .setServerTlsPolicy("serverTlsPolicy-1897015798") .addAllCertificateUrls(new ArrayList()) @@ -1777,6 +1787,7 @@ public void updateGatewayTest() throws Exception { .setNetwork("network1843485230") .setSubnetwork("subnetwork-1302785042") .setEnvoyHeaders(EnvoyHeaders.forNumber(0)) + .setAllowGlobalAccess(true) .build(); Operation resultOperation = Operation.newBuilder() @@ -3338,6 +3349,7 @@ public void getTlsRouteTest() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); mockNetworkServices.addResponse(expectedResponse); @@ -3384,6 +3396,7 @@ public void getTlsRouteTest2() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); mockNetworkServices.addResponse(expectedResponse); @@ -3430,6 +3443,7 @@ public void createTlsRouteTest() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); Operation resultOperation = @@ -3490,6 +3504,7 @@ public void createTlsRouteTest2() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); Operation resultOperation = @@ -3550,6 +3565,7 @@ public void updateTlsRouteTest() throws Exception { .addAllRules(new ArrayList()) .addAllMeshes(new ArrayList()) .addAllGateways(new ArrayList()) + .addAllTargetProxies(new ArrayList()) .putAllLabels(new HashMap()) .build(); Operation resultOperation = @@ -5374,6 +5390,454 @@ public void listMeshRouteViewsExceptionTest2() throws Exception { } } + @Test + public void listAgentGatewaysTest() throws Exception { + AgentGateway responsesElement = AgentGateway.newBuilder().build(); + ListAgentGatewaysResponse expectedResponse = + ListAgentGatewaysResponse.newBuilder() + .setNextPageToken("") + .addAllAgentGateways(Arrays.asList(responsesElement)) + .build(); + mockNetworkServices.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAgentGatewaysPagedResponse pagedListResponse = client.listAgentGateways(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentGatewaysList().get(0), resources.get(0)); + + List actualRequests = mockNetworkServices.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAgentGatewaysRequest actualRequest = ((ListAgentGatewaysRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAgentGatewaysExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkServices.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAgentGateways(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAgentGatewaysTest2() throws Exception { + AgentGateway responsesElement = AgentGateway.newBuilder().build(); + ListAgentGatewaysResponse expectedResponse = + ListAgentGatewaysResponse.newBuilder() + .setNextPageToken("") + .addAllAgentGateways(Arrays.asList(responsesElement)) + .build(); + mockNetworkServices.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAgentGatewaysPagedResponse pagedListResponse = client.listAgentGateways(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentGatewaysList().get(0), resources.get(0)); + + List actualRequests = mockNetworkServices.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAgentGatewaysRequest actualRequest = ((ListAgentGatewaysRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAgentGatewaysExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkServices.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAgentGateways(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAgentGatewayTest() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + mockNetworkServices.addResponse(expectedResponse); + + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + + AgentGateway actualResponse = client.getAgentGateway(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkServices.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAgentGatewayRequest actualRequest = ((GetAgentGatewayRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAgentGatewayExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkServices.addException(exception); + + try { + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + client.getAgentGateway(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAgentGatewayTest2() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + mockNetworkServices.addResponse(expectedResponse); + + String name = "name3373707"; + + AgentGateway actualResponse = client.getAgentGateway(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkServices.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAgentGatewayRequest actualRequest = ((GetAgentGatewayRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAgentGatewayExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkServices.addException(exception); + + try { + String name = "name3373707"; + client.getAgentGateway(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAgentGatewayTest() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkServices.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + + AgentGateway actualResponse = + client.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkServices.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAgentGatewayRequest actualRequest = ((CreateAgentGatewayRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(agentGateway, actualRequest.getAgentGateway()); + Assert.assertEquals(agentGatewayId, actualRequest.getAgentGatewayId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAgentGatewayExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkServices.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + client.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).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 createAgentGatewayTest2() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkServices.addResponse(resultOperation); + + String parent = "parent-995424086"; + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + + AgentGateway actualResponse = + client.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkServices.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAgentGatewayRequest actualRequest = ((CreateAgentGatewayRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(agentGateway, actualRequest.getAgentGateway()); + Assert.assertEquals(agentGatewayId, actualRequest.getAgentGatewayId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAgentGatewayExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkServices.addException(exception); + + try { + String parent = "parent-995424086"; + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + client.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).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 updateAgentGatewayTest() throws Exception { + AgentGateway expectedResponse = + AgentGateway.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setDescription("description-1724546052") + .setEtag("etag3123477") + .addAllProtocols(new ArrayList()) + .addAllRegistries(new ArrayList()) + .setNetworkConfig(AgentGateway.NetworkConfig.newBuilder().build()) + .setAgentGatewayCard(AgentGateway.AgentGatewayOutputCard.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkServices.addResponse(resultOperation); + + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AgentGateway actualResponse = client.updateAgentGatewayAsync(agentGateway, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockNetworkServices.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAgentGatewayRequest actualRequest = ((UpdateAgentGatewayRequest) actualRequests.get(0)); + + Assert.assertEquals(agentGateway, actualRequest.getAgentGateway()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAgentGatewayExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkServices.addException(exception); + + try { + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAgentGatewayAsync(agentGateway, 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 deleteAgentGatewayTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkServices.addResponse(resultOperation); + + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + + client.deleteAgentGatewayAsync(name).get(); + + List actualRequests = mockNetworkServices.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAgentGatewayRequest actualRequest = ((DeleteAgentGatewayRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAgentGatewayExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkServices.addException(exception); + + try { + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + client.deleteAgentGatewayAsync(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 deleteAgentGatewayTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAgentGatewayTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockNetworkServices.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteAgentGatewayAsync(name).get(); + + List actualRequests = mockNetworkServices.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAgentGatewayRequest actualRequest = ((DeleteAgentGatewayRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAgentGatewayExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockNetworkServices.addException(exception); + + try { + String name = "name3373707"; + client.deleteAgentGatewayAsync(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-networkservices/grpc-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesGrpc.java b/java-networkservices/grpc-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesGrpc.java index 456fbecf0b9e..9f836c3575ec 100644 --- a/java-networkservices/grpc-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesGrpc.java +++ b/java-networkservices/grpc-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesGrpc.java @@ -2766,6 +2766,241 @@ private NetworkServicesGrpc() {} return getListMeshRouteViewsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest, + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse> + getListAgentGatewaysMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAgentGateways", + requestType = com.google.cloud.networkservices.v1.ListAgentGatewaysRequest.class, + responseType = com.google.cloud.networkservices.v1.ListAgentGatewaysResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest, + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse> + getListAgentGatewaysMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest, + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse> + getListAgentGatewaysMethod; + if ((getListAgentGatewaysMethod = NetworkServicesGrpc.getListAgentGatewaysMethod) == null) { + synchronized (NetworkServicesGrpc.class) { + if ((getListAgentGatewaysMethod = NetworkServicesGrpc.getListAgentGatewaysMethod) == null) { + NetworkServicesGrpc.getListAgentGatewaysMethod = + getListAgentGatewaysMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAgentGateways")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new NetworkServicesMethodDescriptorSupplier("ListAgentGateways")) + .build(); + } + } + } + return getListAgentGatewaysMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.GetAgentGatewayRequest, + com.google.cloud.networkservices.v1.AgentGateway> + getGetAgentGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAgentGateway", + requestType = com.google.cloud.networkservices.v1.GetAgentGatewayRequest.class, + responseType = com.google.cloud.networkservices.v1.AgentGateway.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.GetAgentGatewayRequest, + com.google.cloud.networkservices.v1.AgentGateway> + getGetAgentGatewayMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.GetAgentGatewayRequest, + com.google.cloud.networkservices.v1.AgentGateway> + getGetAgentGatewayMethod; + if ((getGetAgentGatewayMethod = NetworkServicesGrpc.getGetAgentGatewayMethod) == null) { + synchronized (NetworkServicesGrpc.class) { + if ((getGetAgentGatewayMethod = NetworkServicesGrpc.getGetAgentGatewayMethod) == null) { + NetworkServicesGrpc.getGetAgentGatewayMethod = + getGetAgentGatewayMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAgentGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.GetAgentGatewayRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.AgentGateway + .getDefaultInstance())) + .setSchemaDescriptor( + new NetworkServicesMethodDescriptorSupplier("GetAgentGateway")) + .build(); + } + } + } + return getGetAgentGatewayMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest, + com.google.longrunning.Operation> + getCreateAgentGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAgentGateway", + requestType = com.google.cloud.networkservices.v1.CreateAgentGatewayRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest, + com.google.longrunning.Operation> + getCreateAgentGatewayMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest, + com.google.longrunning.Operation> + getCreateAgentGatewayMethod; + if ((getCreateAgentGatewayMethod = NetworkServicesGrpc.getCreateAgentGatewayMethod) == null) { + synchronized (NetworkServicesGrpc.class) { + if ((getCreateAgentGatewayMethod = NetworkServicesGrpc.getCreateAgentGatewayMethod) + == null) { + NetworkServicesGrpc.getCreateAgentGatewayMethod = + getCreateAgentGatewayMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAgentGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NetworkServicesMethodDescriptorSupplier("CreateAgentGateway")) + .build(); + } + } + } + return getCreateAgentGatewayMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest, + com.google.longrunning.Operation> + getUpdateAgentGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAgentGateway", + requestType = com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest, + com.google.longrunning.Operation> + getUpdateAgentGatewayMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest, + com.google.longrunning.Operation> + getUpdateAgentGatewayMethod; + if ((getUpdateAgentGatewayMethod = NetworkServicesGrpc.getUpdateAgentGatewayMethod) == null) { + synchronized (NetworkServicesGrpc.class) { + if ((getUpdateAgentGatewayMethod = NetworkServicesGrpc.getUpdateAgentGatewayMethod) + == null) { + NetworkServicesGrpc.getUpdateAgentGatewayMethod = + getUpdateAgentGatewayMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAgentGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NetworkServicesMethodDescriptorSupplier("UpdateAgentGateway")) + .build(); + } + } + } + return getUpdateAgentGatewayMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest, + com.google.longrunning.Operation> + getDeleteAgentGatewayMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAgentGateway", + requestType = com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest, + com.google.longrunning.Operation> + getDeleteAgentGatewayMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest, + com.google.longrunning.Operation> + getDeleteAgentGatewayMethod; + if ((getDeleteAgentGatewayMethod = NetworkServicesGrpc.getDeleteAgentGatewayMethod) == null) { + synchronized (NetworkServicesGrpc.class) { + if ((getDeleteAgentGatewayMethod = NetworkServicesGrpc.getDeleteAgentGatewayMethod) + == null) { + NetworkServicesGrpc.getDeleteAgentGatewayMethod = + getDeleteAgentGatewayMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAgentGateway")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new NetworkServicesMethodDescriptorSupplier("DeleteAgentGateway")) + .build(); + } + } + } + return getDeleteAgentGatewayMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static NetworkServicesStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -3666,6 +3901,78 @@ default void listMeshRouteViews( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListMeshRouteViewsMethod(), responseObserver); } + + /** + * + * + *

            +     * Lists AgentGateways in a given project and location.
            +     * 
            + */ + default void listAgentGateways( + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAgentGatewaysMethod(), responseObserver); + } + + /** + * + * + *
            +     * Gets details of a single AgentGateway.
            +     * 
            + */ + default void getAgentGateway( + com.google.cloud.networkservices.v1.GetAgentGatewayRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAgentGatewayMethod(), responseObserver); + } + + /** + * + * + *
            +     * Creates a new AgentGateway in a given project and location.
            +     * 
            + */ + default void createAgentGateway( + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAgentGatewayMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates the parameters of a single AgentGateway.
            +     * 
            + */ + default void updateAgentGateway( + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAgentGatewayMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes a single AgentGateway.
            +     * 
            + */ + default void deleteAgentGateway( + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAgentGatewayMethod(), responseObserver); + } } /** @@ -4649,6 +4956,88 @@ public void listMeshRouteViews( request, responseObserver); } + + /** + * + * + *
            +     * Lists AgentGateways in a given project and location.
            +     * 
            + */ + public void listAgentGateways( + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAgentGatewaysMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Gets details of a single AgentGateway.
            +     * 
            + */ + public void getAgentGateway( + com.google.cloud.networkservices.v1.GetAgentGatewayRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAgentGatewayMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Creates a new AgentGateway in a given project and location.
            +     * 
            + */ + public void createAgentGateway( + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAgentGatewayMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Updates the parameters of a single AgentGateway.
            +     * 
            + */ + public void updateAgentGateway( + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAgentGatewayMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes a single AgentGateway.
            +     * 
            + */ + public void deleteAgentGateway( + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAgentGatewayMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -5486,6 +5875,76 @@ public com.google.cloud.networkservices.v1.ListMeshRouteViewsResponse listMeshRo return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMeshRouteViewsMethod(), getCallOptions(), request); } + + /** + * + * + *
            +     * Lists AgentGateways in a given project and location.
            +     * 
            + */ + public com.google.cloud.networkservices.v1.ListAgentGatewaysResponse listAgentGateways( + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAgentGatewaysMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets details of a single AgentGateway.
            +     * 
            + */ + public com.google.cloud.networkservices.v1.AgentGateway getAgentGateway( + com.google.cloud.networkservices.v1.GetAgentGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAgentGatewayMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new AgentGateway in a given project and location.
            +     * 
            + */ + public com.google.longrunning.Operation createAgentGateway( + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAgentGatewayMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates the parameters of a single AgentGateway.
            +     * 
            + */ + public com.google.longrunning.Operation updateAgentGateway( + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAgentGatewayMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single AgentGateway.
            +     * 
            + */ + public com.google.longrunning.Operation deleteAgentGateway( + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAgentGatewayMethod(), getCallOptions(), request); + } } /** @@ -6265,6 +6724,71 @@ public com.google.cloud.networkservices.v1.ListMeshRouteViewsResponse listMeshRo return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListMeshRouteViewsMethod(), getCallOptions(), request); } + + /** + * + * + *
            +     * Lists AgentGateways in a given project and location.
            +     * 
            + */ + public com.google.cloud.networkservices.v1.ListAgentGatewaysResponse listAgentGateways( + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAgentGatewaysMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets details of a single AgentGateway.
            +     * 
            + */ + public com.google.cloud.networkservices.v1.AgentGateway getAgentGateway( + com.google.cloud.networkservices.v1.GetAgentGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAgentGatewayMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new AgentGateway in a given project and location.
            +     * 
            + */ + public com.google.longrunning.Operation createAgentGateway( + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAgentGatewayMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates the parameters of a single AgentGateway.
            +     * 
            + */ + public com.google.longrunning.Operation updateAgentGateway( + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAgentGatewayMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single AgentGateway.
            +     * 
            + */ + public com.google.longrunning.Operation deleteAgentGateway( + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAgentGatewayMethod(), getCallOptions(), request); + } } /** @@ -7087,6 +7611,73 @@ protected NetworkServicesFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListMeshRouteViewsMethod(), getCallOptions()), request); } + + /** + * + * + *
            +     * Lists AgentGateways in a given project and location.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse> + listAgentGateways(com.google.cloud.networkservices.v1.ListAgentGatewaysRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAgentGatewaysMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Gets details of a single AgentGateway.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.networkservices.v1.AgentGateway> + getAgentGateway(com.google.cloud.networkservices.v1.GetAgentGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAgentGatewayMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Creates a new AgentGateway in a given project and location.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + createAgentGateway(com.google.cloud.networkservices.v1.CreateAgentGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAgentGatewayMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Updates the parameters of a single AgentGateway.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + updateAgentGateway(com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAgentGatewayMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Deletes a single AgentGateway.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + deleteAgentGateway(com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAgentGatewayMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_ENDPOINT_POLICIES = 0; @@ -7147,6 +7738,11 @@ protected NetworkServicesFutureStub build( private static final int METHODID_GET_MESH_ROUTE_VIEW = 55; private static final int METHODID_LIST_GATEWAY_ROUTE_VIEWS = 56; private static final int METHODID_LIST_MESH_ROUTE_VIEWS = 57; + private static final int METHODID_LIST_AGENT_GATEWAYS = 58; + private static final int METHODID_GET_AGENT_GATEWAY = 59; + private static final int METHODID_CREATE_AGENT_GATEWAY = 60; + private static final int METHODID_UPDATE_AGENT_GATEWAY = 61; + private static final int METHODID_DELETE_AGENT_GATEWAY = 62; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -7493,6 +8089,34 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.networkservices.v1.ListMeshRouteViewsResponse>) responseObserver); break; + case METHODID_LIST_AGENT_GATEWAYS: + serviceImpl.listAgentGateways( + (com.google.cloud.networkservices.v1.ListAgentGatewaysRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse>) + responseObserver); + break; + case METHODID_GET_AGENT_GATEWAY: + serviceImpl.getAgentGateway( + (com.google.cloud.networkservices.v1.GetAgentGatewayRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_AGENT_GATEWAY: + serviceImpl.createAgentGateway( + (com.google.cloud.networkservices.v1.CreateAgentGatewayRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_AGENT_GATEWAY: + serviceImpl.updateAgentGateway( + (com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_AGENT_GATEWAY: + serviceImpl.deleteAgentGateway( + (com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -7883,6 +8507,38 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.networkservices.v1.ListMeshRouteViewsRequest, com.google.cloud.networkservices.v1.ListMeshRouteViewsResponse>( service, METHODID_LIST_MESH_ROUTE_VIEWS))) + .addMethod( + getListAgentGatewaysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest, + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse>( + service, METHODID_LIST_AGENT_GATEWAYS))) + .addMethod( + getGetAgentGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkservices.v1.GetAgentGatewayRequest, + com.google.cloud.networkservices.v1.AgentGateway>( + service, METHODID_GET_AGENT_GATEWAY))) + .addMethod( + getCreateAgentGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_AGENT_GATEWAY))) + .addMethod( + getUpdateAgentGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_AGENT_GATEWAY))) + .addMethod( + getDeleteAgentGatewayMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_AGENT_GATEWAY))) .build(); } @@ -7992,6 +8648,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetMeshRouteViewMethod()) .addMethod(getListGatewayRouteViewsMethod()) .addMethod(getListMeshRouteViewsMethod()) + .addMethod(getListAgentGatewaysMethod()) + .addMethod(getGetAgentGatewayMethod()) + .addMethod(getCreateAgentGatewayMethod()) + .addMethod(getUpdateAgentGatewayMethod()) + .addMethod(getDeleteAgentGatewayMethod()) .build(); } } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGateway.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGateway.java new file mode 100644 index 000000000000..2d4aec8070b5 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGateway.java @@ -0,0 +1,11323 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +/** + * + * + *
            + * AgentGateway represents the agent gateway resource.
            + * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway} + */ +@com.google.protobuf.Generated +public final class AgentGateway extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.AgentGateway) + AgentGatewayOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentGateway"); + } + + // Use AgentGateway.newBuilder() to construct. + private AgentGateway(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentGateway() { + name_ = ""; + description_ = ""; + etag_ = ""; + protocols_ = emptyIntList(); + registries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.class, + com.google.cloud.networkservices.v1.AgentGateway.Builder.class); + } + + /** + * + * + *
            +   * Enums of all supported protocols
            +   * 
            + * + * Protobuf enum {@code google.cloud.networkservices.v1.AgentGateway.Protocol} + */ + public enum Protocol implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Unspecified protocol.
            +     * 
            + * + * PROTOCOL_UNSPECIFIED = 0; + */ + PROTOCOL_UNSPECIFIED(0), + /** + * + * + *
            +     * Message Control Plane protocol.
            +     * 
            + * + * MCP = 1; + */ + MCP(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Protocol"); + } + + /** + * + * + *
            +     * Unspecified protocol.
            +     * 
            + * + * PROTOCOL_UNSPECIFIED = 0; + */ + public static final int PROTOCOL_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Message Control Plane protocol.
            +     * 
            + * + * MCP = 1; + */ + public static final int MCP_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 Protocol 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 Protocol forNumber(int value) { + switch (value) { + case 0: + return PROTOCOL_UNSPECIFIED; + case 1: + return MCP; + 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 Protocol findValueByNumber(int number) { + return Protocol.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGateway.getDescriptor().getEnumTypes().get(0); + } + + private static final Protocol[] VALUES = values(); + + public static Protocol 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 Protocol(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkservices.v1.AgentGateway.Protocol) + } + + public interface GoogleManagedOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.AgentGateway.GoogleManaged) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. Operating Mode of Agent Gateway.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath governed_access_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for governedAccessPath. + */ + int getGovernedAccessPathValue(); + + /** + * + * + *
            +     * Optional. Operating Mode of Agent Gateway.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath governed_access_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The governedAccessPath. + */ + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath + getGovernedAccessPath(); + } + + /** + * + * + *
            +   * Configuration for Google Managed deployment mode.
            +   * Proxy is orchestrated and managed by GoogleCloud in a tenant project.
            +   * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.GoogleManaged} + */ + public static final class GoogleManaged extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.AgentGateway.GoogleManaged) + GoogleManagedOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GoogleManaged"); + } + + // Use GoogleManaged.newBuilder() to construct. + private GoogleManaged(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GoogleManaged() { + governedAccessPath_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.class, + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.Builder.class); + } + + /** + * + * + *
            +     * GovernedAccessPath defines the type of access to protect.
            +     * 
            + * + * Protobuf enum {@code + * google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath} + */ + public enum GovernedAccessPath implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Governed access path is not specified.
            +       * 
            + * + * GOVERNED_ACCESS_PATH_UNSPECIFIED = 0; + */ + GOVERNED_ACCESS_PATH_UNSPECIFIED(0), + /** + * + * + *
            +       * Govern agent conections to destinations.
            +       * 
            + * + * AGENT_TO_ANYWHERE = 1; + */ + AGENT_TO_ANYWHERE(1), + /** + * + * + *
            +       * Protect connection to Agent or Tool.
            +       * 
            + * + * CLIENT_TO_AGENT = 2; + */ + CLIENT_TO_AGENT(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GovernedAccessPath"); + } + + /** + * + * + *
            +       * Governed access path is not specified.
            +       * 
            + * + * GOVERNED_ACCESS_PATH_UNSPECIFIED = 0; + */ + public static final int GOVERNED_ACCESS_PATH_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +       * Govern agent conections to destinations.
            +       * 
            + * + * AGENT_TO_ANYWHERE = 1; + */ + public static final int AGENT_TO_ANYWHERE_VALUE = 1; + + /** + * + * + *
            +       * Protect connection to Agent or Tool.
            +       * 
            + * + * CLIENT_TO_AGENT = 2; + */ + public static final int CLIENT_TO_AGENT_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 GovernedAccessPath 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 GovernedAccessPath forNumber(int value) { + switch (value) { + case 0: + return GOVERNED_ACCESS_PATH_UNSPECIFIED; + case 1: + return AGENT_TO_ANYWHERE; + case 2: + return CLIENT_TO_AGENT; + 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 GovernedAccessPath findValueByNumber(int number) { + return GovernedAccessPath.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final GovernedAccessPath[] VALUES = values(); + + public static GovernedAccessPath 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 GovernedAccessPath(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath) + } + + public static final int GOVERNED_ACCESS_PATH_FIELD_NUMBER = 1; + private int governedAccessPath_ = 0; + + /** + * + * + *
            +     * Optional. Operating Mode of Agent Gateway.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath governed_access_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for governedAccessPath. + */ + @java.lang.Override + public int getGovernedAccessPathValue() { + return governedAccessPath_; + } + + /** + * + * + *
            +     * Optional. Operating Mode of Agent Gateway.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath governed_access_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The governedAccessPath. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath + getGovernedAccessPath() { + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath result = + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath + .forNumber(governedAccessPath_); + return result == null + ? com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath + .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 (governedAccessPath_ + != com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath + .GOVERNED_ACCESS_PATH_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, governedAccessPath_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (governedAccessPath_ + != com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath + .GOVERNED_ACCESS_PATH_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, governedAccessPath_); + } + 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.networkservices.v1.AgentGateway.GoogleManaged)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged other = + (com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) obj; + + if (governedAccessPath_ != other.governedAccessPath_) 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) + GOVERNED_ACCESS_PATH_FIELD_NUMBER; + hash = (53 * hash) + governedAccessPath_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged 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.networkservices.v1.AgentGateway.GoogleManaged parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged parseFrom( + 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.networkservices.v1.AgentGateway.GoogleManaged parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Configuration for Google Managed deployment mode.
            +     * Proxy is orchestrated and managed by GoogleCloud in a tenant project.
            +     * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.GoogleManaged} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.AgentGateway.GoogleManaged) + com.google.cloud.networkservices.v1.AgentGateway.GoogleManagedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.class, + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + governedAccessPath_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged build() { + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged buildPartial() { + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged result = + new com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.governedAccessPath_ = governedAccessPath_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) { + return mergeFrom((com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged other) { + if (other + == com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.getDefaultInstance()) + return this; + if (other.governedAccessPath_ != 0) { + setGovernedAccessPathValue(other.getGovernedAccessPathValue()); + } + 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: + { + governedAccessPath_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int governedAccessPath_ = 0; + + /** + * + * + *
            +       * Optional. Operating Mode of Agent Gateway.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath governed_access_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for governedAccessPath. + */ + @java.lang.Override + public int getGovernedAccessPathValue() { + return governedAccessPath_; + } + + /** + * + * + *
            +       * Optional. Operating Mode of Agent Gateway.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath governed_access_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for governedAccessPath to set. + * @return This builder for chaining. + */ + public Builder setGovernedAccessPathValue(int value) { + governedAccessPath_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Operating Mode of Agent Gateway.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath governed_access_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The governedAccessPath. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath + getGovernedAccessPath() { + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath result = + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath + .forNumber(governedAccessPath_); + return result == null + ? com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath + .UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Optional. Operating Mode of Agent Gateway.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath governed_access_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The governedAccessPath to set. + * @return This builder for chaining. + */ + public Builder setGovernedAccessPath( + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + governedAccessPath_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Operating Mode of Agent Gateway.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged.GovernedAccessPath governed_access_path = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearGovernedAccessPath() { + bitField0_ = (bitField0_ & ~0x00000001); + governedAccessPath_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.AgentGateway.GoogleManaged) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.AgentGateway.GoogleManaged) + private static final com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged(); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleManaged parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.networkservices.v1.AgentGateway.GoogleManaged + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SelfManagedOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.AgentGateway.SelfManaged) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. A supported Google Cloud networking proxy in the Project and
            +     * Location
            +     * 
            + * + * + * string resource_uri = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The resourceUri. + */ + java.lang.String getResourceUri(); + + /** + * + * + *
            +     * Optional. A supported Google Cloud networking proxy in the Project and
            +     * Location
            +     * 
            + * + * + * string resource_uri = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for resourceUri. + */ + com.google.protobuf.ByteString getResourceUriBytes(); + } + + /** + * + * + *
            +   * Configuration for Self Managed deployment mode.
            +   * Attach to existing Application Load Balancers or Secure Web Proxies.
            +   * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.SelfManaged} + */ + public static final class SelfManaged extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.AgentGateway.SelfManaged) + SelfManagedOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SelfManaged"); + } + + // Use SelfManaged.newBuilder() to construct. + private SelfManaged(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SelfManaged() { + resourceUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.class, + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.Builder.class); + } + + public static final int RESOURCE_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object resourceUri_ = ""; + + /** + * + * + *
            +     * Optional. A supported Google Cloud networking proxy in the Project and
            +     * Location
            +     * 
            + * + * + * string resource_uri = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The resourceUri. + */ + @java.lang.Override + public java.lang.String getResourceUri() { + java.lang.Object ref = resourceUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceUri_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. A supported Google Cloud networking proxy in the Project and
            +     * Location
            +     * 
            + * + * + * string resource_uri = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for resourceUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceUriBytes() { + java.lang.Object ref = resourceUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resourceUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, resourceUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resourceUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, resourceUri_); + } + 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.networkservices.v1.AgentGateway.SelfManaged)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged other = + (com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) obj; + + if (!getResourceUri().equals(other.getResourceUri())) 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) + RESOURCE_URI_FIELD_NUMBER; + hash = (53 * hash) + getResourceUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged 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.networkservices.v1.AgentGateway.SelfManaged parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged parseFrom( + 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.networkservices.v1.AgentGateway.SelfManaged parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Configuration for Self Managed deployment mode.
            +     * Attach to existing Application Load Balancers or Secure Web Proxies.
            +     * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.SelfManaged} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.AgentGateway.SelfManaged) + com.google.cloud.networkservices.v1.AgentGateway.SelfManagedOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.class, + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resourceUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.SelfManaged + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.SelfManaged build() { + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.SelfManaged buildPartial() { + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged result = + new com.google.cloud.networkservices.v1.AgentGateway.SelfManaged(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resourceUri_ = resourceUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) { + return mergeFrom((com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkservices.v1.AgentGateway.SelfManaged other) { + if (other + == com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.getDefaultInstance()) + return this; + if (!other.getResourceUri().isEmpty()) { + resourceUri_ = other.resourceUri_; + 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: + { + resourceUri_ = 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 resourceUri_ = ""; + + /** + * + * + *
            +       * Optional. A supported Google Cloud networking proxy in the Project and
            +       * Location
            +       * 
            + * + * + * string resource_uri = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The resourceUri. + */ + public java.lang.String getResourceUri() { + java.lang.Object ref = resourceUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. A supported Google Cloud networking proxy in the Project and
            +       * Location
            +       * 
            + * + * + * string resource_uri = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for resourceUri. + */ + public com.google.protobuf.ByteString getResourceUriBytes() { + java.lang.Object ref = resourceUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. A supported Google Cloud networking proxy in the Project and
            +       * Location
            +       * 
            + * + * + * string resource_uri = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The resourceUri to set. + * @return This builder for chaining. + */ + public Builder setResourceUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resourceUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. A supported Google Cloud networking proxy in the Project and
            +       * Location
            +       * 
            + * + * + * string resource_uri = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearResourceUri() { + resourceUri_ = getDefaultInstance().getResourceUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. A supported Google Cloud networking proxy in the Project and
            +       * Location
            +       * 
            + * + * + * string resource_uri = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for resourceUri to set. + * @return This builder for chaining. + */ + public Builder setResourceUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resourceUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.AgentGateway.SelfManaged) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.AgentGateway.SelfManaged) + private static final com.google.cloud.networkservices.v1.AgentGateway.SelfManaged + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.AgentGateway.SelfManaged(); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.SelfManaged + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SelfManaged parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.networkservices.v1.AgentGateway.SelfManaged + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface NetworkConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.AgentGateway.NetworkConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. Optional PSC-Interface network attachment for connectivity to
            +     * your private VPCs network.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the egress field is set. + */ + boolean hasEgress(); + + /** + * + * + *
            +     * Optional. Optional PSC-Interface network attachment for connectivity to
            +     * your private VPCs network.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The egress. + */ + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress getEgress(); + + /** + * + * + *
            +     * Optional. Optional PSC-Interface network attachment for connectivity to
            +     * your private VPCs network.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.EgressOrBuilder + getEgressOrBuilder(); + + /** + * + * + *
            +     * Optional. Optional DNS peering configuration for connectivity to your
            +     * private VPC network.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dnsPeeringConfig field is set. + */ + boolean hasDnsPeeringConfig(); + + /** + * + * + *
            +     * Optional. Optional DNS peering configuration for connectivity to your
            +     * private VPC network.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dnsPeeringConfig. + */ + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + getDnsPeeringConfig(); + + /** + * + * + *
            +     * Optional. Optional DNS peering configuration for connectivity to your
            +     * private VPC network.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfigOrBuilder + getDnsPeeringConfigOrBuilder(); + } + + /** + * + * + *
            +   * NetworkConfig contains network configurations for the AgentGateway.
            +   * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.NetworkConfig} + */ + public static final class NetworkConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.AgentGateway.NetworkConfig) + NetworkConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "NetworkConfig"); + } + + // Use NetworkConfig.newBuilder() to construct. + private NetworkConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private NetworkConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.class, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Builder.class); + } + + public interface EgressOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Optional. The URI of the Network Attachment resource.
            +       * 
            + * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The networkAttachment. + */ + java.lang.String getNetworkAttachment(); + + /** + * + * + *
            +       * Optional. The URI of the Network Attachment resource.
            +       * 
            + * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for networkAttachment. + */ + com.google.protobuf.ByteString getNetworkAttachmentBytes(); + + /** + * + * + *
            +       * Optional. TrustConfig defines the trust configuration for egress.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the trustConfig field is set. + */ + boolean hasTrustConfig(); + + /** + * + * + *
            +       * Optional. TrustConfig defines the trust configuration for egress.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The trustConfig. + */ + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + getTrustConfig(); + + /** + * + * + *
            +       * Optional. TrustConfig defines the trust configuration for egress.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfigOrBuilder + getTrustConfigOrBuilder(); + } + + /** + * + * + *
            +     * Configuration for Egress
            +     * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress} + */ + public static final class Egress extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress) + EgressOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Egress"); + } + + // Use Egress.newBuilder() to construct. + private Egress(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Egress() { + networkAttachment_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.class, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.Builder + .class); + } + + public interface TrustConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +         * Required. PEM encoded root certificates used to validate the identity
            +         * of the upstream servers/destinations during egress connections.
            +         * 
            + * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the pemCertificates. + */ + java.util.List getPemCertificatesList(); + + /** + * + * + *
            +         * Required. PEM encoded root certificates used to validate the identity
            +         * of the upstream servers/destinations during egress connections.
            +         * 
            + * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of pemCertificates. + */ + int getPemCertificatesCount(); + + /** + * + * + *
            +         * Required. PEM encoded root certificates used to validate the identity
            +         * of the upstream servers/destinations during egress connections.
            +         * 
            + * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The pemCertificates at the given index. + */ + java.lang.String getPemCertificates(int index); + + /** + * + * + *
            +         * Required. PEM encoded root certificates used to validate the identity
            +         * of the upstream servers/destinations during egress connections.
            +         * 
            + * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The bytes of the pemCertificates at the given index. + */ + com.google.protobuf.ByteString getPemCertificatesBytes(int index); + } + + /** + * + * + *
            +       * TrustConfig defines the trust configuration for egress.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig} + */ + public static final class TrustConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig) + TrustConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TrustConfig"); + } + + // Use TrustConfig.newBuilder() to construct. + private TrustConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TrustConfig() { + pemCertificates_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .class, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .Builder.class); + } + + public static final int PEM_CERTIFICATES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList pemCertificates_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +         * Required. PEM encoded root certificates used to validate the identity
            +         * of the upstream servers/destinations during egress connections.
            +         * 
            + * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the pemCertificates. + */ + public com.google.protobuf.ProtocolStringList getPemCertificatesList() { + return pemCertificates_; + } + + /** + * + * + *
            +         * Required. PEM encoded root certificates used to validate the identity
            +         * of the upstream servers/destinations during egress connections.
            +         * 
            + * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of pemCertificates. + */ + public int getPemCertificatesCount() { + return pemCertificates_.size(); + } + + /** + * + * + *
            +         * Required. PEM encoded root certificates used to validate the identity
            +         * of the upstream servers/destinations during egress connections.
            +         * 
            + * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The pemCertificates at the given index. + */ + public java.lang.String getPemCertificates(int index) { + return pemCertificates_.get(index); + } + + /** + * + * + *
            +         * Required. PEM encoded root certificates used to validate the identity
            +         * of the upstream servers/destinations during egress connections.
            +         * 
            + * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The bytes of the pemCertificates at the given index. + */ + public com.google.protobuf.ByteString getPemCertificatesBytes(int index) { + return pemCertificates_.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 < pemCertificates_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, pemCertificates_.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 < pemCertificates_.size(); i++) { + dataSize += computeStringSizeNoTag(pemCertificates_.getRaw(i)); + } + size += dataSize; + size += 1 * getPemCertificatesList().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.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig other = + (com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig) + obj; + + if (!getPemCertificatesList().equals(other.getPemCertificatesList())) 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 (getPemCertificatesCount() > 0) { + hash = (37 * hash) + PEM_CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getPemCertificatesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + 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.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + parseFrom( + 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.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +         * TrustConfig defines the trust configuration for egress.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig) + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig.class, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig.Builder.class); + } + + // Construct using + // com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pemCertificates_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + build() { + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + buildPartial() { + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + result = + new com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + pemCertificates_.makeImmutable(); + result.pemCertificates_ = pemCertificates_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig) { + return mergeFrom( + (com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + other) { + if (other + == com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .getDefaultInstance()) return this; + if (!other.pemCertificates_.isEmpty()) { + if (pemCertificates_.isEmpty()) { + pemCertificates_ = other.pemCertificates_; + bitField0_ |= 0x00000001; + } else { + ensurePemCertificatesIsMutable(); + pemCertificates_.addAll(other.pemCertificates_); + } + 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(); + ensurePemCertificatesIsMutable(); + pemCertificates_.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 pemCertificates_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePemCertificatesIsMutable() { + if (!pemCertificates_.isModifiable()) { + pemCertificates_ = new com.google.protobuf.LazyStringArrayList(pemCertificates_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
            +           * Required. PEM encoded root certificates used to validate the identity
            +           * of the upstream servers/destinations during egress connections.
            +           * 
            + * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the pemCertificates. + */ + public com.google.protobuf.ProtocolStringList getPemCertificatesList() { + pemCertificates_.makeImmutable(); + return pemCertificates_; + } + + /** + * + * + *
            +           * Required. PEM encoded root certificates used to validate the identity
            +           * of the upstream servers/destinations during egress connections.
            +           * 
            + * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of pemCertificates. + */ + public int getPemCertificatesCount() { + return pemCertificates_.size(); + } + + /** + * + * + *
            +           * Required. PEM encoded root certificates used to validate the identity
            +           * of the upstream servers/destinations during egress connections.
            +           * 
            + * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The pemCertificates at the given index. + */ + public java.lang.String getPemCertificates(int index) { + return pemCertificates_.get(index); + } + + /** + * + * + *
            +           * Required. PEM encoded root certificates used to validate the identity
            +           * of the upstream servers/destinations during egress connections.
            +           * 
            + * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The bytes of the pemCertificates at the given index. + */ + public com.google.protobuf.ByteString getPemCertificatesBytes(int index) { + return pemCertificates_.getByteString(index); + } + + /** + * + * + *
            +           * Required. PEM encoded root certificates used to validate the identity
            +           * of the upstream servers/destinations during egress connections.
            +           * 
            + * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The pemCertificates to set. + * @return This builder for chaining. + */ + public Builder setPemCertificates(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePemCertificatesIsMutable(); + pemCertificates_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Required. PEM encoded root certificates used to validate the identity
            +           * of the upstream servers/destinations during egress connections.
            +           * 
            + * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The pemCertificates to add. + * @return This builder for chaining. + */ + public Builder addPemCertificates(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePemCertificatesIsMutable(); + pemCertificates_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Required. PEM encoded root certificates used to validate the identity
            +           * of the upstream servers/destinations during egress connections.
            +           * 
            + * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The pemCertificates to add. + * @return This builder for chaining. + */ + public Builder addAllPemCertificates(java.lang.Iterable values) { + ensurePemCertificatesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pemCertificates_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Required. PEM encoded root certificates used to validate the identity
            +           * of the upstream servers/destinations during egress connections.
            +           * 
            + * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearPemCertificates() { + pemCertificates_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Required. PEM encoded root certificates used to validate the identity
            +           * of the upstream servers/destinations during egress connections.
            +           * 
            + * + * repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes of the pemCertificates to add. + * @return This builder for chaining. + */ + public Builder addPemCertificatesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePemCertificatesIsMutable(); + pemCertificates_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig) + private static final com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig(); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TrustConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NETWORK_ATTACHMENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object networkAttachment_ = ""; + + /** + * + * + *
            +       * Optional. The URI of the Network Attachment resource.
            +       * 
            + * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +       * Optional. The URI of the Network Attachment resource.
            +       * 
            + * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 TRUST_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + trustConfig_; + + /** + * + * + *
            +       * Optional. TrustConfig defines the trust configuration for egress.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the trustConfig field is set. + */ + @java.lang.Override + public boolean hasTrustConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Optional. TrustConfig defines the trust configuration for egress.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The trustConfig. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + getTrustConfig() { + return trustConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .getDefaultInstance() + : trustConfig_; + } + + /** + * + * + *
            +       * Optional. TrustConfig defines the trust configuration for egress.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfigOrBuilder + getTrustConfigOrBuilder() { + return trustConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .getDefaultInstance() + : trustConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(networkAttachment_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, networkAttachment_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getTrustConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(networkAttachment_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, networkAttachment_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTrustConfig()); + } + 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.networkservices.v1.AgentGateway.NetworkConfig.Egress)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress other = + (com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress) obj; + + if (!getNetworkAttachment().equals(other.getNetworkAttachment())) return false; + if (hasTrustConfig() != other.hasTrustConfig()) return false; + if (hasTrustConfig()) { + if (!getTrustConfig().equals(other.getTrustConfig())) 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(); + if (hasTrustConfig()) { + hash = (37 * hash) + TRUST_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTrustConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress 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.networkservices.v1.AgentGateway.NetworkConfig.Egress parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress parseFrom( + 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.networkservices.v1.AgentGateway.NetworkConfig.Egress parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Configuration for Egress
            +       * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress) + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.EgressOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.class, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.Builder + .class); + } + + // Construct using + // com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTrustConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + networkAttachment_ = ""; + trustConfig_ = null; + if (trustConfigBuilder_ != null) { + trustConfigBuilder_.dispose(); + trustConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress build() { + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + buildPartial() { + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress result = + new com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.networkAttachment_ = networkAttachment_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.trustConfig_ = + trustConfigBuilder_ == null ? trustConfig_ : trustConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress) { + return mergeFrom( + (com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress other) { + if (other + == com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .getDefaultInstance()) return this; + if (!other.getNetworkAttachment().isEmpty()) { + networkAttachment_ = other.networkAttachment_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasTrustConfig()) { + mergeTrustConfig(other.getTrustConfig()); + } + 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 18: + { + input.readMessage( + internalGetTrustConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object networkAttachment_ = ""; + + /** + * + * + *
            +         * Optional. The URI of the Network Attachment resource.
            +         * 
            + * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +         * Optional. The URI of the Network Attachment resource.
            +         * 
            + * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +         * Optional. The URI of the Network Attachment resource.
            +         * 
            + * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
            +         * Optional. The URI of the Network Attachment resource.
            +         * 
            + * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNetworkAttachment() { + networkAttachment_ = getDefaultInstance().getNetworkAttachment(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The URI of the Network Attachment resource.
            +         * 
            + * + * string network_attachment = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + trustConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfigOrBuilder> + trustConfigBuilder_; + + /** + * + * + *
            +         * Optional. TrustConfig defines the trust configuration for egress.
            +         * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the trustConfig field is set. + */ + public boolean hasTrustConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +         * Optional. TrustConfig defines the trust configuration for egress.
            +         * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The trustConfig. + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + getTrustConfig() { + if (trustConfigBuilder_ == null) { + return trustConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .getDefaultInstance() + : trustConfig_; + } else { + return trustConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +         * Optional. TrustConfig defines the trust configuration for egress.
            +         * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTrustConfig( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + value) { + if (trustConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + trustConfig_ = value; + } else { + trustConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. TrustConfig defines the trust configuration for egress.
            +         * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTrustConfig( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .Builder + builderForValue) { + if (trustConfigBuilder_ == null) { + trustConfig_ = builderForValue.build(); + } else { + trustConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. TrustConfig defines the trust configuration for egress.
            +         * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTrustConfig( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + value) { + if (trustConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && trustConfig_ != null + && trustConfig_ + != com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig.getDefaultInstance()) { + getTrustConfigBuilder().mergeFrom(value); + } else { + trustConfig_ = value; + } + } else { + trustConfigBuilder_.mergeFrom(value); + } + if (trustConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * Optional. TrustConfig defines the trust configuration for egress.
            +         * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTrustConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + trustConfig_ = null; + if (trustConfigBuilder_ != null) { + trustConfigBuilder_.dispose(); + trustConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. TrustConfig defines the trust configuration for egress.
            +         * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .Builder + getTrustConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetTrustConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Optional. TrustConfig defines the trust configuration for egress.
            +         * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfigOrBuilder + getTrustConfigOrBuilder() { + if (trustConfigBuilder_ != null) { + return trustConfigBuilder_.getMessageOrBuilder(); + } else { + return trustConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .getDefaultInstance() + : trustConfig_; + } + } + + /** + * + * + *
            +         * Optional. TrustConfig defines the trust configuration for egress.
            +         * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig trust_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig + .Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfigOrBuilder> + internalGetTrustConfigFieldBuilder() { + if (trustConfigBuilder_ == null) { + trustConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfig.Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .TrustConfigOrBuilder>(getTrustConfig(), getParentForChildren(), isClean()); + trustConfig_ = null; + } + return trustConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress) + private static final com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress(); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Egress parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.networkservices.v1.AgentGateway.NetworkConfig.Egress + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DnsPeeringConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Required. Domain names for which DNS queries should be forwarded to the
            +       * target network.
            +       * 
            + * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the domains. + */ + java.util.List getDomainsList(); + + /** + * + * + *
            +       * Required. Domain names for which DNS queries should be forwarded to the
            +       * target network.
            +       * 
            + * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of domains. + */ + int getDomainsCount(); + + /** + * + * + *
            +       * Required. Domain names for which DNS queries should be forwarded to the
            +       * target network.
            +       * 
            + * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The domains at the given index. + */ + java.lang.String getDomains(int index); + + /** + * + * + *
            +       * Required. Domain names for which DNS queries should be forwarded to the
            +       * target network.
            +       * 
            + * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the domains at the given index. + */ + com.google.protobuf.ByteString getDomainsBytes(int index); + + /** + * + * + *
            +       * Required. Target project ID to which DNS queries should be forwarded
            +       * to. This can be the same project that contains the AgentGateway or a
            +       * different project.
            +       * 
            + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetProject. + */ + java.lang.String getTargetProject(); + + /** + * + * + *
            +       * Required. Target project ID to which DNS queries should be forwarded
            +       * to. This can be the same project that contains the AgentGateway or a
            +       * different project.
            +       * 
            + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for targetProject. + */ + com.google.protobuf.ByteString getTargetProjectBytes(); + + /** + * + * + *
            +       * Required. Target network in 'target project' to which DNS queries
            +       * should be forwarded to. Must be in format of
            +       * `projects/{project}/global/networks/{network}`.
            +       * 
            + * + * + * string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetNetwork. + */ + java.lang.String getTargetNetwork(); + + /** + * + * + *
            +       * Required. Target network in 'target project' to which DNS queries
            +       * should be forwarded to. Must be in format of
            +       * `projects/{project}/global/networks/{network}`.
            +       * 
            + * + * + * string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetNetwork. + */ + com.google.protobuf.ByteString getTargetNetworkBytes(); + } + + /** + * + * + *
            +     * DNS peering config for the user VPC network.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig} + */ + public static final class DnsPeeringConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig) + DnsPeeringConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DnsPeeringConfig"); + } + + // Use DnsPeeringConfig.newBuilder() to construct. + private DnsPeeringConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DnsPeeringConfig() { + domains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetProject_ = ""; + targetNetwork_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .class, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .Builder.class); + } + + public static final int DOMAINS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList domains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +       * Required. Domain names for which DNS queries should be forwarded to the
            +       * target network.
            +       * 
            + * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the domains. + */ + public com.google.protobuf.ProtocolStringList getDomainsList() { + return domains_; + } + + /** + * + * + *
            +       * Required. Domain names for which DNS queries should be forwarded to the
            +       * target network.
            +       * 
            + * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of domains. + */ + public int getDomainsCount() { + return domains_.size(); + } + + /** + * + * + *
            +       * Required. Domain names for which DNS queries should be forwarded to the
            +       * target network.
            +       * 
            + * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The domains at the given index. + */ + public java.lang.String getDomains(int index) { + return domains_.get(index); + } + + /** + * + * + *
            +       * Required. Domain names for which DNS queries should be forwarded to the
            +       * target network.
            +       * 
            + * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the domains at the given index. + */ + public com.google.protobuf.ByteString getDomainsBytes(int index) { + return domains_.getByteString(index); + } + + public static final int TARGET_PROJECT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetProject_ = ""; + + /** + * + * + *
            +       * Required. Target project ID to which DNS queries should be forwarded
            +       * to. This can be the same project that contains the AgentGateway or a
            +       * different project.
            +       * 
            + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetProject. + */ + @java.lang.Override + public java.lang.String getTargetProject() { + java.lang.Object ref = targetProject_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetProject_ = s; + return s; + } + } + + /** + * + * + *
            +       * Required. Target project ID to which DNS queries should be forwarded
            +       * to. This can be the same project that contains the AgentGateway or a
            +       * different project.
            +       * 
            + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for targetProject. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetProjectBytes() { + java.lang.Object ref = targetProject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_NETWORK_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetNetwork_ = ""; + + /** + * + * + *
            +       * Required. Target network in 'target project' to which DNS queries
            +       * should be forwarded to. Must be in format of
            +       * `projects/{project}/global/networks/{network}`.
            +       * 
            + * + * + * string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetNetwork. + */ + @java.lang.Override + public java.lang.String getTargetNetwork() { + java.lang.Object ref = targetNetwork_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetNetwork_ = s; + return s; + } + } + + /** + * + * + *
            +       * Required. Target network in 'target project' to which DNS queries
            +       * should be forwarded to. Must be in format of
            +       * `projects/{project}/global/networks/{network}`.
            +       * 
            + * + * + * string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetNetwork. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetNetworkBytes() { + java.lang.Object ref = targetNetwork_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetNetwork_ = 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 < domains_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, domains_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetProject_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, targetProject_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetNetwork_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, targetNetwork_); + } + 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 < domains_.size(); i++) { + dataSize += computeStringSizeNoTag(domains_.getRaw(i)); + } + size += dataSize; + size += 1 * getDomainsList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetProject_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, targetProject_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetNetwork_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, targetNetwork_); + } + 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.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig other = + (com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig) obj; + + if (!getDomainsList().equals(other.getDomainsList())) return false; + if (!getTargetProject().equals(other.getTargetProject())) return false; + if (!getTargetNetwork().equals(other.getTargetNetwork())) 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 (getDomainsCount() > 0) { + hash = (37 * hash) + DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getDomainsList().hashCode(); + } + hash = (37 * hash) + TARGET_PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getTargetProject().hashCode(); + hash = (37 * hash) + TARGET_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getTargetNetwork().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + 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.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + parseFrom( + 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.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * DNS peering config for the user VPC network.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig) + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .class, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + domains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetProject_ = ""; + targetNetwork_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + build() { + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + buildPartial() { + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig result = + new com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + domains_.makeImmutable(); + result.domains_ = domains_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.targetProject_ = targetProject_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.targetNetwork_ = targetNetwork_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig) { + return mergeFrom( + (com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig other) { + if (other + == com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .getDefaultInstance()) return this; + if (!other.domains_.isEmpty()) { + if (domains_.isEmpty()) { + domains_ = other.domains_; + bitField0_ |= 0x00000001; + } else { + ensureDomainsIsMutable(); + domains_.addAll(other.domains_); + } + onChanged(); + } + if (!other.getTargetProject().isEmpty()) { + targetProject_ = other.targetProject_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTargetNetwork().isEmpty()) { + targetNetwork_ = other.targetNetwork_; + 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: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDomainsIsMutable(); + domains_.add(s); + break; + } // case 10 + case 18: + { + targetProject_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + targetNetwork_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList domains_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDomainsIsMutable() { + if (!domains_.isModifiable()) { + domains_ = new com.google.protobuf.LazyStringArrayList(domains_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
            +         * Required. Domain names for which DNS queries should be forwarded to the
            +         * target network.
            +         * 
            + * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the domains. + */ + public com.google.protobuf.ProtocolStringList getDomainsList() { + domains_.makeImmutable(); + return domains_; + } + + /** + * + * + *
            +         * Required. Domain names for which DNS queries should be forwarded to the
            +         * target network.
            +         * 
            + * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of domains. + */ + public int getDomainsCount() { + return domains_.size(); + } + + /** + * + * + *
            +         * Required. Domain names for which DNS queries should be forwarded to the
            +         * target network.
            +         * 
            + * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The domains at the given index. + */ + public java.lang.String getDomains(int index) { + return domains_.get(index); + } + + /** + * + * + *
            +         * Required. Domain names for which DNS queries should be forwarded to the
            +         * target network.
            +         * 
            + * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the domains at the given index. + */ + public com.google.protobuf.ByteString getDomainsBytes(int index) { + return domains_.getByteString(index); + } + + /** + * + * + *
            +         * Required. Domain names for which DNS queries should be forwarded to the
            +         * target network.
            +         * 
            + * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The domains to set. + * @return This builder for chaining. + */ + public Builder setDomains(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. Domain names for which DNS queries should be forwarded to the
            +         * target network.
            +         * 
            + * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The domains to add. + * @return This builder for chaining. + */ + public Builder addDomains(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. Domain names for which DNS queries should be forwarded to the
            +         * target network.
            +         * 
            + * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The domains to add. + * @return This builder for chaining. + */ + public Builder addAllDomains(java.lang.Iterable values) { + ensureDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, domains_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. Domain names for which DNS queries should be forwarded to the
            +         * target network.
            +         * 
            + * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDomains() { + domains_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. Domain names for which DNS queries should be forwarded to the
            +         * target network.
            +         * 
            + * + * repeated string domains = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the domains to add. + * @return This builder for chaining. + */ + public Builder addDomainsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDomainsIsMutable(); + domains_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object targetProject_ = ""; + + /** + * + * + *
            +         * Required. Target project ID to which DNS queries should be forwarded
            +         * to. This can be the same project that contains the AgentGateway or a
            +         * different project.
            +         * 
            + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The targetProject. + */ + public java.lang.String getTargetProject() { + java.lang.Object ref = targetProject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetProject_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Required. Target project ID to which DNS queries should be forwarded
            +         * to. This can be the same project that contains the AgentGateway or a
            +         * different project.
            +         * 
            + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for targetProject. + */ + public com.google.protobuf.ByteString getTargetProjectBytes() { + java.lang.Object ref = targetProject_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetProject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Required. Target project ID to which DNS queries should be forwarded
            +         * to. This can be the same project that contains the AgentGateway or a
            +         * different project.
            +         * 
            + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The targetProject to set. + * @return This builder for chaining. + */ + public Builder setTargetProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetProject_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. Target project ID to which DNS queries should be forwarded
            +         * to. This can be the same project that contains the AgentGateway or a
            +         * different project.
            +         * 
            + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTargetProject() { + targetProject_ = getDefaultInstance().getTargetProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. Target project ID to which DNS queries should be forwarded
            +         * to. This can be the same project that contains the AgentGateway or a
            +         * different project.
            +         * 
            + * + * string target_project = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for targetProject to set. + * @return This builder for chaining. + */ + public Builder setTargetProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetProject_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object targetNetwork_ = ""; + + /** + * + * + *
            +         * Required. Target network in 'target project' to which DNS queries
            +         * should be forwarded to. Must be in format of
            +         * `projects/{project}/global/networks/{network}`.
            +         * 
            + * + * + * string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The targetNetwork. + */ + public java.lang.String getTargetNetwork() { + java.lang.Object ref = targetNetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetNetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Required. Target network in 'target project' to which DNS queries
            +         * should be forwarded to. Must be in format of
            +         * `projects/{project}/global/networks/{network}`.
            +         * 
            + * + * + * string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for targetNetwork. + */ + public com.google.protobuf.ByteString getTargetNetworkBytes() { + java.lang.Object ref = targetNetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetNetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Required. Target network in 'target project' to which DNS queries
            +         * should be forwarded to. Must be in format of
            +         * `projects/{project}/global/networks/{network}`.
            +         * 
            + * + * + * string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetNetwork to set. + * @return This builder for chaining. + */ + public Builder setTargetNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetNetwork_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. Target network in 'target project' to which DNS queries
            +         * should be forwarded to. Must be in format of
            +         * `projects/{project}/global/networks/{network}`.
            +         * 
            + * + * + * string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetNetwork() { + targetNetwork_ = getDefaultInstance().getTargetNetwork(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. Target network in 'target project' to which DNS queries
            +         * should be forwarded to. Must be in format of
            +         * `projects/{project}/global/networks/{network}`.
            +         * 
            + * + * + * string target_network = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for targetNetwork to set. + * @return This builder for chaining. + */ + public Builder setTargetNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetNetwork_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig) + private static final com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig + .DnsPeeringConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig(); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DnsPeeringConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int EGRESS_FIELD_NUMBER = 1; + private com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress_; + + /** + * + * + *
            +     * Optional. Optional PSC-Interface network attachment for connectivity to
            +     * your private VPCs network.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the egress field is set. + */ + @java.lang.Override + public boolean hasEgress() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. Optional PSC-Interface network attachment for connectivity to
            +     * your private VPCs network.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The egress. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress getEgress() { + return egress_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .getDefaultInstance() + : egress_; + } + + /** + * + * + *
            +     * Optional. Optional PSC-Interface network attachment for connectivity to
            +     * your private VPCs network.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.EgressOrBuilder + getEgressOrBuilder() { + return egress_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .getDefaultInstance() + : egress_; + } + + public static final int DNS_PEERING_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + dnsPeeringConfig_; + + /** + * + * + *
            +     * Optional. Optional DNS peering configuration for connectivity to your
            +     * private VPC network.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dnsPeeringConfig field is set. + */ + @java.lang.Override + public boolean hasDnsPeeringConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. Optional DNS peering configuration for connectivity to your
            +     * private VPC network.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dnsPeeringConfig. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + getDnsPeeringConfig() { + return dnsPeeringConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .getDefaultInstance() + : dnsPeeringConfig_; + } + + /** + * + * + *
            +     * Optional. Optional DNS peering configuration for connectivity to your
            +     * private VPC network.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfigOrBuilder + getDnsPeeringConfigOrBuilder() { + return dnsPeeringConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .getDefaultInstance() + : dnsPeeringConfig_; + } + + 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, getEgress()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getDnsPeeringConfig()); + } + 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, getEgress()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDnsPeeringConfig()); + } + 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.networkservices.v1.AgentGateway.NetworkConfig)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig other = + (com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig) obj; + + if (hasEgress() != other.hasEgress()) return false; + if (hasEgress()) { + if (!getEgress().equals(other.getEgress())) return false; + } + if (hasDnsPeeringConfig() != other.hasDnsPeeringConfig()) return false; + if (hasDnsPeeringConfig()) { + if (!getDnsPeeringConfig().equals(other.getDnsPeeringConfig())) 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 (hasEgress()) { + hash = (37 * hash) + EGRESS_FIELD_NUMBER; + hash = (53 * hash) + getEgress().hashCode(); + } + if (hasDnsPeeringConfig()) { + hash = (37 * hash) + DNS_PEERING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDnsPeeringConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig 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.networkservices.v1.AgentGateway.NetworkConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig parseFrom( + 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.networkservices.v1.AgentGateway.NetworkConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * NetworkConfig contains network configurations for the AgentGateway.
            +     * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.NetworkConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.AgentGateway.NetworkConfig) + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.class, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetEgressFieldBuilder(); + internalGetDnsPeeringConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + egress_ = null; + if (egressBuilder_ != null) { + egressBuilder_.dispose(); + egressBuilder_ = null; + } + dnsPeeringConfig_ = null; + if (dnsPeeringConfigBuilder_ != null) { + dnsPeeringConfigBuilder_.dispose(); + dnsPeeringConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig build() { + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig buildPartial() { + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig result = + new com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.egress_ = egressBuilder_ == null ? egress_ : egressBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dnsPeeringConfig_ = + dnsPeeringConfigBuilder_ == null + ? dnsPeeringConfig_ + : dnsPeeringConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig) { + return mergeFrom((com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig other) { + if (other + == com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.getDefaultInstance()) + return this; + if (other.hasEgress()) { + mergeEgress(other.getEgress()); + } + if (other.hasDnsPeeringConfig()) { + mergeDnsPeeringConfig(other.getDnsPeeringConfig()); + } + 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( + internalGetEgressFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetDnsPeeringConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.EgressOrBuilder> + egressBuilder_; + + /** + * + * + *
            +       * Optional. Optional PSC-Interface network attachment for connectivity to
            +       * your private VPCs network.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the egress field is set. + */ + public boolean hasEgress() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Optional. Optional PSC-Interface network attachment for connectivity to
            +       * your private VPCs network.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The egress. + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress getEgress() { + if (egressBuilder_ == null) { + return egress_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .getDefaultInstance() + : egress_; + } else { + return egressBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. Optional PSC-Interface network attachment for connectivity to
            +       * your private VPCs network.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEgress( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress value) { + if (egressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + egress_ = value; + } else { + egressBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Optional PSC-Interface network attachment for connectivity to
            +       * your private VPCs network.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEgress( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.Builder + builderForValue) { + if (egressBuilder_ == null) { + egress_ = builderForValue.build(); + } else { + egressBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Optional PSC-Interface network attachment for connectivity to
            +       * your private VPCs network.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEgress( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress value) { + if (egressBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && egress_ != null + && egress_ + != com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .getDefaultInstance()) { + getEgressBuilder().mergeFrom(value); + } else { + egress_ = value; + } + } else { + egressBuilder_.mergeFrom(value); + } + if (egress_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Optional PSC-Interface network attachment for connectivity to
            +       * your private VPCs network.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEgress() { + bitField0_ = (bitField0_ & ~0x00000001); + egress_ = null; + if (egressBuilder_ != null) { + egressBuilder_.dispose(); + egressBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Optional PSC-Interface network attachment for connectivity to
            +       * your private VPCs network.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.Builder + getEgressBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetEgressFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Optional PSC-Interface network attachment for connectivity to
            +       * your private VPCs network.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.EgressOrBuilder + getEgressOrBuilder() { + if (egressBuilder_ != null) { + return egressBuilder_.getMessageOrBuilder(); + } else { + return egress_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress + .getDefaultInstance() + : egress_; + } + } + + /** + * + * + *
            +       * Optional. Optional PSC-Interface network attachment for connectivity to
            +       * your private VPCs network.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress egress = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.EgressOrBuilder> + internalGetEgressFieldBuilder() { + if (egressBuilder_ == null) { + egressBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.EgressOrBuilder>( + getEgress(), getParentForChildren(), isClean()); + egress_ = null; + } + return egressBuilder_; + } + + private com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + dnsPeeringConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig + .DnsPeeringConfigOrBuilder> + dnsPeeringConfigBuilder_; + + /** + * + * + *
            +       * Optional. Optional DNS peering configuration for connectivity to your
            +       * private VPC network.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dnsPeeringConfig field is set. + */ + public boolean hasDnsPeeringConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +       * Optional. Optional DNS peering configuration for connectivity to your
            +       * private VPC network.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dnsPeeringConfig. + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + getDnsPeeringConfig() { + if (dnsPeeringConfigBuilder_ == null) { + return dnsPeeringConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .getDefaultInstance() + : dnsPeeringConfig_; + } else { + return dnsPeeringConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. Optional DNS peering configuration for connectivity to your
            +       * private VPC network.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDnsPeeringConfig( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig value) { + if (dnsPeeringConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dnsPeeringConfig_ = value; + } else { + dnsPeeringConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Optional DNS peering configuration for connectivity to your
            +       * private VPC network.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDnsPeeringConfig( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig.Builder + builderForValue) { + if (dnsPeeringConfigBuilder_ == null) { + dnsPeeringConfig_ = builderForValue.build(); + } else { + dnsPeeringConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Optional DNS peering configuration for connectivity to your
            +       * private VPC network.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDnsPeeringConfig( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig value) { + if (dnsPeeringConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && dnsPeeringConfig_ != null + && dnsPeeringConfig_ + != com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .getDefaultInstance()) { + getDnsPeeringConfigBuilder().mergeFrom(value); + } else { + dnsPeeringConfig_ = value; + } + } else { + dnsPeeringConfigBuilder_.mergeFrom(value); + } + if (dnsPeeringConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Optional DNS peering configuration for connectivity to your
            +       * private VPC network.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDnsPeeringConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + dnsPeeringConfig_ = null; + if (dnsPeeringConfigBuilder_ != null) { + dnsPeeringConfigBuilder_.dispose(); + dnsPeeringConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Optional DNS peering configuration for connectivity to your
            +       * private VPC network.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig.Builder + getDnsPeeringConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetDnsPeeringConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Optional DNS peering configuration for connectivity to your
            +       * private VPC network.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig + .DnsPeeringConfigOrBuilder + getDnsPeeringConfigOrBuilder() { + if (dnsPeeringConfigBuilder_ != null) { + return dnsPeeringConfigBuilder_.getMessageOrBuilder(); + } else { + return dnsPeeringConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .getDefaultInstance() + : dnsPeeringConfig_; + } + } + + /** + * + * + *
            +       * Optional. Optional DNS peering configuration for connectivity to your
            +       * private VPC network.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig dns_peering_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig + .DnsPeeringConfigOrBuilder> + internalGetDnsPeeringConfigFieldBuilder() { + if (dnsPeeringConfigBuilder_ == null) { + dnsPeeringConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfig + .Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig + .DnsPeeringConfigOrBuilder>( + getDnsPeeringConfig(), getParentForChildren(), isClean()); + dnsPeeringConfig_ = null; + } + return dnsPeeringConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.AgentGateway.NetworkConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.AgentGateway.NetworkConfig) + private static final com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig(); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.networkservices.v1.AgentGateway.NetworkConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AgentGatewayOutputCardOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Output only. mTLS Endpoint associated with this AgentGateway
            +     * 
            + * + * string mtls_endpoint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mtlsEndpoint. + */ + java.lang.String getMtlsEndpoint(); + + /** + * + * + *
            +     * Output only. mTLS Endpoint associated with this AgentGateway
            +     * 
            + * + * string mtls_endpoint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mtlsEndpoint. + */ + com.google.protobuf.ByteString getMtlsEndpointBytes(); + + /** + * + * + *
            +     * Output only. Root Certificates for Agents to validate this AgentGateway
            +     * 
            + * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the rootCertificates. + */ + java.util.List getRootCertificatesList(); + + /** + * + * + *
            +     * Output only. Root Certificates for Agents to validate this AgentGateway
            +     * 
            + * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of rootCertificates. + */ + int getRootCertificatesCount(); + + /** + * + * + *
            +     * Output only. Root Certificates for Agents to validate this AgentGateway
            +     * 
            + * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The rootCertificates at the given index. + */ + java.lang.String getRootCertificates(int index); + + /** + * + * + *
            +     * Output only. Root Certificates for Agents to validate this AgentGateway
            +     * 
            + * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the rootCertificates at the given index. + */ + com.google.protobuf.ByteString getRootCertificatesBytes(int index); + + /** + * + * + *
            +     * Output only. Service Account used by Service Extensions to operate.
            +     * 
            + * + * + * string service_extensions_service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceExtensionsServiceAccount. + */ + java.lang.String getServiceExtensionsServiceAccount(); + + /** + * + * + *
            +     * Output only. Service Account used by Service Extensions to operate.
            +     * 
            + * + * + * string service_extensions_service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for serviceExtensionsServiceAccount. + */ + com.google.protobuf.ByteString getServiceExtensionsServiceAccountBytes(); + } + + /** + * + * + *
            +   * AgentGatewayOutputCard contains informational output-only fields
            +   * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard} + */ + public static final class AgentGatewayOutputCard extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard) + AgentGatewayOutputCardOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentGatewayOutputCard"); + } + + // Use AgentGatewayOutputCard.newBuilder() to construct. + private AgentGatewayOutputCard(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentGatewayOutputCard() { + mtlsEndpoint_ = ""; + rootCertificates_ = com.google.protobuf.LazyStringArrayList.emptyList(); + serviceExtensionsServiceAccount_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.class, + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.Builder + .class); + } + + public static final int MTLS_ENDPOINT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object mtlsEndpoint_ = ""; + + /** + * + * + *
            +     * Output only. mTLS Endpoint associated with this AgentGateway
            +     * 
            + * + * string mtls_endpoint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mtlsEndpoint. + */ + @java.lang.Override + public java.lang.String getMtlsEndpoint() { + java.lang.Object ref = mtlsEndpoint_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mtlsEndpoint_ = s; + return s; + } + } + + /** + * + * + *
            +     * Output only. mTLS Endpoint associated with this AgentGateway
            +     * 
            + * + * string mtls_endpoint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mtlsEndpoint. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMtlsEndpointBytes() { + java.lang.Object ref = mtlsEndpoint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mtlsEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROOT_CERTIFICATES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList rootCertificates_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +     * Output only. Root Certificates for Agents to validate this AgentGateway
            +     * 
            + * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the rootCertificates. + */ + public com.google.protobuf.ProtocolStringList getRootCertificatesList() { + return rootCertificates_; + } + + /** + * + * + *
            +     * Output only. Root Certificates for Agents to validate this AgentGateway
            +     * 
            + * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of rootCertificates. + */ + public int getRootCertificatesCount() { + return rootCertificates_.size(); + } + + /** + * + * + *
            +     * Output only. Root Certificates for Agents to validate this AgentGateway
            +     * 
            + * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The rootCertificates at the given index. + */ + public java.lang.String getRootCertificates(int index) { + return rootCertificates_.get(index); + } + + /** + * + * + *
            +     * Output only. Root Certificates for Agents to validate this AgentGateway
            +     * 
            + * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the rootCertificates at the given index. + */ + public com.google.protobuf.ByteString getRootCertificatesBytes(int index) { + return rootCertificates_.getByteString(index); + } + + public static final int SERVICE_EXTENSIONS_SERVICE_ACCOUNT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceExtensionsServiceAccount_ = ""; + + /** + * + * + *
            +     * Output only. Service Account used by Service Extensions to operate.
            +     * 
            + * + * + * string service_extensions_service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceExtensionsServiceAccount. + */ + @java.lang.Override + public java.lang.String getServiceExtensionsServiceAccount() { + java.lang.Object ref = serviceExtensionsServiceAccount_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceExtensionsServiceAccount_ = s; + return s; + } + } + + /** + * + * + *
            +     * Output only. Service Account used by Service Extensions to operate.
            +     * 
            + * + * + * string service_extensions_service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for serviceExtensionsServiceAccount. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceExtensionsServiceAccountBytes() { + java.lang.Object ref = serviceExtensionsServiceAccount_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceExtensionsServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mtlsEndpoint_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, mtlsEndpoint_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceExtensionsServiceAccount_)) { + com.google.protobuf.GeneratedMessage.writeString( + output, 4, serviceExtensionsServiceAccount_); + } + for (int i = 0; i < rootCertificates_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, rootCertificates_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mtlsEndpoint_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, mtlsEndpoint_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceExtensionsServiceAccount_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 4, serviceExtensionsServiceAccount_); + } + { + int dataSize = 0; + for (int i = 0; i < rootCertificates_.size(); i++) { + dataSize += computeStringSizeNoTag(rootCertificates_.getRaw(i)); + } + size += dataSize; + size += 1 * getRootCertificatesList().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.networkservices.v1.AgentGateway.AgentGatewayOutputCard)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard other = + (com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard) obj; + + if (!getMtlsEndpoint().equals(other.getMtlsEndpoint())) return false; + if (!getRootCertificatesList().equals(other.getRootCertificatesList())) return false; + if (!getServiceExtensionsServiceAccount().equals(other.getServiceExtensionsServiceAccount())) + 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) + MTLS_ENDPOINT_FIELD_NUMBER; + hash = (53 * hash) + getMtlsEndpoint().hashCode(); + if (getRootCertificatesCount() > 0) { + hash = (37 * hash) + ROOT_CERTIFICATES_FIELD_NUMBER; + hash = (53 * hash) + getRootCertificatesList().hashCode(); + } + hash = (37 * hash) + SERVICE_EXTENSIONS_SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceExtensionsServiceAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard 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.networkservices.v1.AgentGateway.AgentGatewayOutputCard parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard parseFrom( + 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.networkservices.v1.AgentGateway.AgentGatewayOutputCard parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * AgentGatewayOutputCard contains informational output-only fields
            +     * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard) + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.class, + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.Builder + .class); + } + + // Construct using + // com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + mtlsEndpoint_ = ""; + rootCertificates_ = com.google.protobuf.LazyStringArrayList.emptyList(); + serviceExtensionsServiceAccount_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard build() { + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + buildPartial() { + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard result = + new com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mtlsEndpoint_ = mtlsEndpoint_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + rootCertificates_.makeImmutable(); + result.rootCertificates_ = rootCertificates_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.serviceExtensionsServiceAccount_ = serviceExtensionsServiceAccount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard) { + return mergeFrom( + (com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard other) { + if (other + == com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + .getDefaultInstance()) return this; + if (!other.getMtlsEndpoint().isEmpty()) { + mtlsEndpoint_ = other.mtlsEndpoint_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.rootCertificates_.isEmpty()) { + if (rootCertificates_.isEmpty()) { + rootCertificates_ = other.rootCertificates_; + bitField0_ |= 0x00000002; + } else { + ensureRootCertificatesIsMutable(); + rootCertificates_.addAll(other.rootCertificates_); + } + onChanged(); + } + if (!other.getServiceExtensionsServiceAccount().isEmpty()) { + serviceExtensionsServiceAccount_ = other.serviceExtensionsServiceAccount_; + 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: + { + mtlsEndpoint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 34: + { + serviceExtensionsServiceAccount_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRootCertificatesIsMutable(); + rootCertificates_.add(s); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object mtlsEndpoint_ = ""; + + /** + * + * + *
            +       * Output only. mTLS Endpoint associated with this AgentGateway
            +       * 
            + * + * string mtls_endpoint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mtlsEndpoint. + */ + public java.lang.String getMtlsEndpoint() { + java.lang.Object ref = mtlsEndpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mtlsEndpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Output only. mTLS Endpoint associated with this AgentGateway
            +       * 
            + * + * string mtls_endpoint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mtlsEndpoint. + */ + public com.google.protobuf.ByteString getMtlsEndpointBytes() { + java.lang.Object ref = mtlsEndpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mtlsEndpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Output only. mTLS Endpoint associated with this AgentGateway
            +       * 
            + * + * string mtls_endpoint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The mtlsEndpoint to set. + * @return This builder for chaining. + */ + public Builder setMtlsEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mtlsEndpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. mTLS Endpoint associated with this AgentGateway
            +       * 
            + * + * string mtls_endpoint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMtlsEndpoint() { + mtlsEndpoint_ = getDefaultInstance().getMtlsEndpoint(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. mTLS Endpoint associated with this AgentGateway
            +       * 
            + * + * string mtls_endpoint = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for mtlsEndpoint to set. + * @return This builder for chaining. + */ + public Builder setMtlsEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mtlsEndpoint_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList rootCertificates_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRootCertificatesIsMutable() { + if (!rootCertificates_.isModifiable()) { + rootCertificates_ = new com.google.protobuf.LazyStringArrayList(rootCertificates_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
            +       * Output only. Root Certificates for Agents to validate this AgentGateway
            +       * 
            + * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the rootCertificates. + */ + public com.google.protobuf.ProtocolStringList getRootCertificatesList() { + rootCertificates_.makeImmutable(); + return rootCertificates_; + } + + /** + * + * + *
            +       * Output only. Root Certificates for Agents to validate this AgentGateway
            +       * 
            + * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of rootCertificates. + */ + public int getRootCertificatesCount() { + return rootCertificates_.size(); + } + + /** + * + * + *
            +       * Output only. Root Certificates for Agents to validate this AgentGateway
            +       * 
            + * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The rootCertificates at the given index. + */ + public java.lang.String getRootCertificates(int index) { + return rootCertificates_.get(index); + } + + /** + * + * + *
            +       * Output only. Root Certificates for Agents to validate this AgentGateway
            +       * 
            + * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the rootCertificates at the given index. + */ + public com.google.protobuf.ByteString getRootCertificatesBytes(int index) { + return rootCertificates_.getByteString(index); + } + + /** + * + * + *
            +       * Output only. Root Certificates for Agents to validate this AgentGateway
            +       * 
            + * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The rootCertificates to set. + * @return This builder for chaining. + */ + public Builder setRootCertificates(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootCertificatesIsMutable(); + rootCertificates_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Root Certificates for Agents to validate this AgentGateway
            +       * 
            + * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The rootCertificates to add. + * @return This builder for chaining. + */ + public Builder addRootCertificates(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRootCertificatesIsMutable(); + rootCertificates_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Root Certificates for Agents to validate this AgentGateway
            +       * 
            + * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The rootCertificates to add. + * @return This builder for chaining. + */ + public Builder addAllRootCertificates(java.lang.Iterable values) { + ensureRootCertificatesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rootCertificates_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Root Certificates for Agents to validate this AgentGateway
            +       * 
            + * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearRootCertificates() { + rootCertificates_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Root Certificates for Agents to validate this AgentGateway
            +       * 
            + * + * repeated string root_certificates = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the rootCertificates to add. + * @return This builder for chaining. + */ + public Builder addRootCertificatesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRootCertificatesIsMutable(); + rootCertificates_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object serviceExtensionsServiceAccount_ = ""; + + /** + * + * + *
            +       * Output only. Service Account used by Service Extensions to operate.
            +       * 
            + * + * + * string service_extensions_service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceExtensionsServiceAccount. + */ + public java.lang.String getServiceExtensionsServiceAccount() { + java.lang.Object ref = serviceExtensionsServiceAccount_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceExtensionsServiceAccount_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Output only. Service Account used by Service Extensions to operate.
            +       * 
            + * + * + * string service_extensions_service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for serviceExtensionsServiceAccount. + */ + public com.google.protobuf.ByteString getServiceExtensionsServiceAccountBytes() { + java.lang.Object ref = serviceExtensionsServiceAccount_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceExtensionsServiceAccount_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Output only. Service Account used by Service Extensions to operate.
            +       * 
            + * + * + * string service_extensions_service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The serviceExtensionsServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceExtensionsServiceAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceExtensionsServiceAccount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Service Account used by Service Extensions to operate.
            +       * 
            + * + * + * string service_extensions_service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearServiceExtensionsServiceAccount() { + serviceExtensionsServiceAccount_ = + getDefaultInstance().getServiceExtensionsServiceAccount(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Service Account used by Service Extensions to operate.
            +       * 
            + * + * + * string service_extensions_service_account = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for serviceExtensionsServiceAccount to set. + * @return This builder for chaining. + */ + public Builder setServiceExtensionsServiceAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceExtensionsServiceAccount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard) + private static final com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard(); + } + + public static com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentGatewayOutputCard parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.networkservices.v1.AgentGateway.AgentGatewayOutputCard + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int deploymentModeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object deploymentMode_; + + public enum DeploymentModeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GOOGLE_MANAGED(8), + SELF_MANAGED(9), + DEPLOYMENTMODE_NOT_SET(0); + private final int value; + + private DeploymentModeCase(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 DeploymentModeCase valueOf(int value) { + return forNumber(value); + } + + public static DeploymentModeCase forNumber(int value) { + switch (value) { + case 8: + return GOOGLE_MANAGED; + case 9: + return SELF_MANAGED; + case 0: + return DEPLOYMENTMODE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DeploymentModeCase getDeploymentModeCase() { + return DeploymentModeCase.forNumber(deploymentModeCase_); + } + + public static final int GOOGLE_MANAGED_FIELD_NUMBER = 8; + + /** + * + * + *
            +   * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
            +   * project.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the googleManaged field is set. + */ + @java.lang.Override + public boolean hasGoogleManaged() { + return deploymentModeCase_ == 8; + } + + /** + * + * + *
            +   * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
            +   * project.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The googleManaged. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged getGoogleManaged() { + if (deploymentModeCase_ == 8) { + return (com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) deploymentMode_; + } + return com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.getDefaultInstance(); + } + + /** + * + * + *
            +   * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
            +   * project.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManagedOrBuilder + getGoogleManagedOrBuilder() { + if (deploymentModeCase_ == 8) { + return (com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) deploymentMode_; + } + return com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.getDefaultInstance(); + } + + public static final int SELF_MANAGED_FIELD_NUMBER = 9; + + /** + * + * + *
            +   * Optional. Attach to existing Application Load Balancers or Secure Web
            +   * Proxies.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the selfManaged field is set. + */ + @java.lang.Override + public boolean hasSelfManaged() { + return deploymentModeCase_ == 9; + } + + /** + * + * + *
            +   * Optional. Attach to existing Application Load Balancers or Secure Web
            +   * Proxies.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The selfManaged. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.SelfManaged getSelfManaged() { + if (deploymentModeCase_ == 9) { + return (com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) deploymentMode_; + } + return com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.getDefaultInstance(); + } + + /** + * + * + *
            +   * Optional. Attach to existing Application Load Balancers or Secure Web
            +   * Proxies.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.SelfManagedOrBuilder + getSelfManagedOrBuilder() { + if (deploymentModeCase_ == 9) { + return (com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) deploymentMode_; + } + return com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Identifier. Name of the AgentGateway resource. It matches pattern
            +   * `projects/*/locations/*/agentGateways/<agent_gateway>`.
            +   * 
            + * + * 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 AgentGateway resource. It matches pattern
            +   * `projects/*/locations/*/agentGateways/<agent_gateway>`.
            +   * 
            + * + * 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 CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. The timestamp when the resource was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 2 [(.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 timestamp when the resource was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. The timestamp when the resource was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 2 [(.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 = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. The timestamp when the resource was updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 3 [(.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 timestamp when the resource was updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Output only. The timestamp when the resource was updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 3 [(.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 LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_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(); + } + + /** + * + * + *
            +   * Optional. Set of label tags associated with the AgentGateway resource.
            +   * 
            + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + + /** + * + * + *
            +   * Optional. Set of label tags associated with the AgentGateway resource.
            +   * 
            + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
            +   * Optional. Set of label tags associated with the AgentGateway resource.
            +   * 
            + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + + /** + * + * + *
            +   * Optional. Set of label tags associated with the AgentGateway resource.
            +   * 
            + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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 DESCRIPTION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
            +   * Optional. A free-text description of the resource. Max length 1024
            +   * characters.
            +   * 
            + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. A free-text description of the resource. Max length 1024
            +   * characters.
            +   * 
            + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
            +   * Optional. Etag of the resource.
            +   * If this is provided, it must match the server's etag. If the provided etag
            +   * does not match the server's etag, the request will fail with a 409 ABORTED
            +   * error.
            +   * 
            + * + * 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. Etag of the resource.
            +   * If this is provided, it must match the server's etag. If the provided etag
            +   * does not match the server's etag, the request will fail with a 409 ABORTED
            +   * error.
            +   * 
            + * + * 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 PROTOCOLS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList protocols_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.networkservices.v1.AgentGateway.Protocol> + protocols_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.networkservices.v1.AgentGateway.Protocol>() { + public com.google.cloud.networkservices.v1.AgentGateway.Protocol convert(int from) { + com.google.cloud.networkservices.v1.AgentGateway.Protocol result = + com.google.cloud.networkservices.v1.AgentGateway.Protocol.forNumber(from); + return result == null + ? com.google.cloud.networkservices.v1.AgentGateway.Protocol.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
            +   * Optional. Deprecated.
            +   * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return A list containing the protocols. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List + getProtocolsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.networkservices.v1.AgentGateway.Protocol>( + protocols_, protocols_converter_); + } + + /** + * + * + *
            +   * Optional. Deprecated.
            +   * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return The count of protocols. + */ + @java.lang.Override + @java.lang.Deprecated + public int getProtocolsCount() { + return protocols_.size(); + } + + /** + * + * + *
            +   * Optional. Deprecated.
            +   * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param index The index of the element to return. + * @return The protocols at the given index. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.networkservices.v1.AgentGateway.Protocol getProtocols(int index) { + return protocols_converter_.convert(protocols_.getInt(index)); + } + + /** + * + * + *
            +   * Optional. Deprecated.
            +   * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return A list containing the enum numeric values on the wire for protocols. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List getProtocolsValueList() { + return protocols_; + } + + /** + * + * + *
            +   * Optional. Deprecated.
            +   * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param index The index of the value to return. + * @return The enum numeric value on the wire of protocols at the given index. + */ + @java.lang.Override + @java.lang.Deprecated + public int getProtocolsValue(int index) { + return protocols_.getInt(index); + } + + private int protocolsMemoizedSerializedSize; + + public static final int REGISTRIES_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList registries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * Optional. A list of Agent registries containing the agents, MCP servers and
            +   * tools governed by the Agent Gateway. Note: Currently limited to
            +   * project-scoped registries Must be of format
            +   * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
            +   * 
            + * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the registries. + */ + public com.google.protobuf.ProtocolStringList getRegistriesList() { + return registries_; + } + + /** + * + * + *
            +   * Optional. A list of Agent registries containing the agents, MCP servers and
            +   * tools governed by the Agent Gateway. Note: Currently limited to
            +   * project-scoped registries Must be of format
            +   * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
            +   * 
            + * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of registries. + */ + public int getRegistriesCount() { + return registries_.size(); + } + + /** + * + * + *
            +   * Optional. A list of Agent registries containing the agents, MCP servers and
            +   * tools governed by the Agent Gateway. Note: Currently limited to
            +   * project-scoped registries Must be of format
            +   * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
            +   * 
            + * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The registries at the given index. + */ + public java.lang.String getRegistries(int index) { + return registries_.get(index); + } + + /** + * + * + *
            +   * Optional. A list of Agent registries containing the agents, MCP servers and
            +   * tools governed by the Agent Gateway. Note: Currently limited to
            +   * project-scoped registries Must be of format
            +   * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
            +   * 
            + * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the registries at the given index. + */ + public com.google.protobuf.ByteString getRegistriesBytes(int index) { + return registries_.getByteString(index); + } + + public static final int NETWORK_CONFIG_FIELD_NUMBER = 10; + private com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig networkConfig_; + + /** + * + * + *
            +   * Optional. Network configuration for the AgentGateway.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the networkConfig field is set. + */ + @java.lang.Override + public boolean hasNetworkConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Optional. Network configuration for the AgentGateway.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The networkConfig. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig getNetworkConfig() { + return networkConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.getDefaultInstance() + : networkConfig_; + } + + /** + * + * + *
            +   * Optional. Network configuration for the AgentGateway.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfigOrBuilder + getNetworkConfigOrBuilder() { + return networkConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.getDefaultInstance() + : networkConfig_; + } + + public static final int AGENT_GATEWAY_CARD_FIELD_NUMBER = 11; + private com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agentGatewayCard_; + + /** + * + * + *
            +   * Output only. Field for populated AgentGateway card.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the agentGatewayCard field is set. + */ + @java.lang.Override + public boolean hasAgentGatewayCard() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Output only. Field for populated AgentGateway card.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The agentGatewayCard. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + getAgentGatewayCard() { + return agentGatewayCard_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + .getDefaultInstance() + : agentGatewayCard_; + } + + /** + * + * + *
            +   * Output only. Field for populated AgentGateway card.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCardOrBuilder + getAgentGatewayCardOrBuilder() { + return agentGatewayCard_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + .getDefaultInstance() + : agentGatewayCard_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, etag_); + } + if (deploymentModeCase_ == 8) { + output.writeMessage( + 8, (com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) deploymentMode_); + } + if (deploymentModeCase_ == 9) { + output.writeMessage( + 9, (com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) deploymentMode_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(10, getNetworkConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(11, getAgentGatewayCard()); + } + if (getProtocolsList().size() > 0) { + output.writeUInt32NoTag(98); + output.writeUInt32NoTag(protocolsMemoizedSerializedSize); + } + for (int i = 0; i < protocols_.size(); i++) { + output.writeEnumNoTag(protocols_.getInt(i)); + } + for (int i = 0; i < registries_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, registries_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + 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(4, labels__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, etag_); + } + if (deploymentModeCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) deploymentMode_); + } + if (deploymentModeCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) deploymentMode_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getNetworkConfig()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getAgentGatewayCard()); + } + { + int dataSize = 0; + for (int i = 0; i < protocols_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(protocols_.getInt(i)); + } + size += dataSize; + if (!getProtocolsList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + protocolsMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < registries_.size(); i++) { + dataSize += computeStringSizeNoTag(registries_.getRaw(i)); + } + size += dataSize; + size += 1 * getRegistriesList().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.networkservices.v1.AgentGateway)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.AgentGateway other = + (com.google.cloud.networkservices.v1.AgentGateway) obj; + + if (!getName().equals(other.getName())) 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 (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!protocols_.equals(other.protocols_)) return false; + if (!getRegistriesList().equals(other.getRegistriesList())) return false; + if (hasNetworkConfig() != other.hasNetworkConfig()) return false; + if (hasNetworkConfig()) { + if (!getNetworkConfig().equals(other.getNetworkConfig())) return false; + } + if (hasAgentGatewayCard() != other.hasAgentGatewayCard()) return false; + if (hasAgentGatewayCard()) { + if (!getAgentGatewayCard().equals(other.getAgentGatewayCard())) return false; + } + if (!getDeploymentModeCase().equals(other.getDeploymentModeCase())) return false; + switch (deploymentModeCase_) { + case 8: + if (!getGoogleManaged().equals(other.getGoogleManaged())) return false; + break; + case 9: + if (!getSelfManaged().equals(other.getSelfManaged())) 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(); + 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 (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (getProtocolsCount() > 0) { + hash = (37 * hash) + PROTOCOLS_FIELD_NUMBER; + hash = (53 * hash) + protocols_.hashCode(); + } + if (getRegistriesCount() > 0) { + hash = (37 * hash) + REGISTRIES_FIELD_NUMBER; + hash = (53 * hash) + getRegistriesList().hashCode(); + } + if (hasNetworkConfig()) { + hash = (37 * hash) + NETWORK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getNetworkConfig().hashCode(); + } + if (hasAgentGatewayCard()) { + hash = (37 * hash) + AGENT_GATEWAY_CARD_FIELD_NUMBER; + hash = (53 * hash) + getAgentGatewayCard().hashCode(); + } + switch (deploymentModeCase_) { + case 8: + hash = (37 * hash) + GOOGLE_MANAGED_FIELD_NUMBER; + hash = (53 * hash) + getGoogleManaged().hashCode(); + break; + case 9: + hash = (37 * hash) + SELF_MANAGED_FIELD_NUMBER; + hash = (53 * hash) + getSelfManaged().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.AgentGateway parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway 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.networkservices.v1.AgentGateway parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway parseFrom( + 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.networkservices.v1.AgentGateway parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.AgentGateway parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.AgentGateway parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.AgentGateway parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.networkservices.v1.AgentGateway prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * AgentGateway represents the agent gateway resource.
            +   * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.AgentGateway} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.AgentGateway) + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.AgentGateway.class, + com.google.cloud.networkservices.v1.AgentGateway.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.AgentGateway.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetNetworkConfigFieldBuilder(); + internalGetAgentGatewayCardFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (googleManagedBuilder_ != null) { + googleManagedBuilder_.clear(); + } + if (selfManagedBuilder_ != null) { + selfManagedBuilder_.clear(); + } + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + description_ = ""; + etag_ = ""; + protocols_ = emptyIntList(); + registries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + networkConfig_ = null; + if (networkConfigBuilder_ != null) { + networkConfigBuilder_.dispose(); + networkConfigBuilder_ = null; + } + agentGatewayCard_ = null; + if (agentGatewayCardBuilder_ != null) { + agentGatewayCardBuilder_.dispose(); + agentGatewayCardBuilder_ = null; + } + deploymentModeCase_ = 0; + deploymentMode_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway build() { + com.google.cloud.networkservices.v1.AgentGateway result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway buildPartial() { + com.google.cloud.networkservices.v1.AgentGateway result = + new com.google.cloud.networkservices.v1.AgentGateway(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkservices.v1.AgentGateway result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + 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.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + protocols_.makeImmutable(); + result.protocols_ = protocols_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + registries_.makeImmutable(); + result.registries_ = registries_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.networkConfig_ = + networkConfigBuilder_ == null ? networkConfig_ : networkConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.agentGatewayCard_ = + agentGatewayCardBuilder_ == null ? agentGatewayCard_ : agentGatewayCardBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.networkservices.v1.AgentGateway result) { + result.deploymentModeCase_ = deploymentModeCase_; + result.deploymentMode_ = this.deploymentMode_; + if (deploymentModeCase_ == 8 && googleManagedBuilder_ != null) { + result.deploymentMode_ = googleManagedBuilder_.build(); + } + if (deploymentModeCase_ == 9 && selfManagedBuilder_ != null) { + result.deploymentMode_ = selfManagedBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.AgentGateway) { + return mergeFrom((com.google.cloud.networkservices.v1.AgentGateway) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkservices.v1.AgentGateway other) { + if (other == com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000020; + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.protocols_.isEmpty()) { + if (protocols_.isEmpty()) { + protocols_ = other.protocols_; + protocols_.makeImmutable(); + bitField0_ |= 0x00000100; + } else { + ensureProtocolsIsMutable(); + protocols_.addAll(other.protocols_); + } + onChanged(); + } + if (!other.registries_.isEmpty()) { + if (registries_.isEmpty()) { + registries_ = other.registries_; + bitField0_ |= 0x00000200; + } else { + ensureRegistriesIsMutable(); + registries_.addAll(other.registries_); + } + onChanged(); + } + if (other.hasNetworkConfig()) { + mergeNetworkConfig(other.getNetworkConfig()); + } + if (other.hasAgentGatewayCard()) { + mergeAgentGatewayCard(other.getAgentGatewayCard()); + } + switch (other.getDeploymentModeCase()) { + case GOOGLE_MANAGED: + { + mergeGoogleManaged(other.getGoogleManaged()); + break; + } + case SELF_MANAGED: + { + mergeSelfManaged(other.getSelfManaged()); + break; + } + case DEPLOYMENTMODE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 34 + case 42: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 42 + case 50: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 50 + case 66: + { + input.readMessage( + internalGetGoogleManagedFieldBuilder().getBuilder(), extensionRegistry); + deploymentModeCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetSelfManagedFieldBuilder().getBuilder(), extensionRegistry); + deploymentModeCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetNetworkConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 82 + case 90: + { + input.readMessage( + internalGetAgentGatewayCardFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 90 + case 96: + { + int tmpRaw = input.readEnum(); + ensureProtocolsIsMutable(); + protocols_.addInt(tmpRaw); + break; + } // case 96 + case 98: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureProtocolsIsMutable(); + while (input.getBytesUntilLimit() > 0) { + protocols_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 98 + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRegistriesIsMutable(); + registries_.add(s); + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int deploymentModeCase_ = 0; + private java.lang.Object deploymentMode_; + + public DeploymentModeCase getDeploymentModeCase() { + return DeploymentModeCase.forNumber(deploymentModeCase_); + } + + public Builder clearDeploymentMode() { + deploymentModeCase_ = 0; + deploymentMode_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged, + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.Builder, + com.google.cloud.networkservices.v1.AgentGateway.GoogleManagedOrBuilder> + googleManagedBuilder_; + + /** + * + * + *
            +     * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
            +     * project.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the googleManaged field is set. + */ + @java.lang.Override + public boolean hasGoogleManaged() { + return deploymentModeCase_ == 8; + } + + /** + * + * + *
            +     * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
            +     * project.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The googleManaged. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged getGoogleManaged() { + if (googleManagedBuilder_ == null) { + if (deploymentModeCase_ == 8) { + return (com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) deploymentMode_; + } + return com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.getDefaultInstance(); + } else { + if (deploymentModeCase_ == 8) { + return googleManagedBuilder_.getMessage(); + } + return com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
            +     * project.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGoogleManaged( + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged value) { + if (googleManagedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deploymentMode_ = value; + onChanged(); + } else { + googleManagedBuilder_.setMessage(value); + } + deploymentModeCase_ = 8; + return this; + } + + /** + * + * + *
            +     * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
            +     * project.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGoogleManaged( + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.Builder builderForValue) { + if (googleManagedBuilder_ == null) { + deploymentMode_ = builderForValue.build(); + onChanged(); + } else { + googleManagedBuilder_.setMessage(builderForValue.build()); + } + deploymentModeCase_ = 8; + return this; + } + + /** + * + * + *
            +     * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
            +     * project.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGoogleManaged( + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged value) { + if (googleManagedBuilder_ == null) { + if (deploymentModeCase_ == 8 + && deploymentMode_ + != com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged + .getDefaultInstance()) { + deploymentMode_ = + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.newBuilder( + (com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) + deploymentMode_) + .mergeFrom(value) + .buildPartial(); + } else { + deploymentMode_ = value; + } + onChanged(); + } else { + if (deploymentModeCase_ == 8) { + googleManagedBuilder_.mergeFrom(value); + } else { + googleManagedBuilder_.setMessage(value); + } + } + deploymentModeCase_ = 8; + return this; + } + + /** + * + * + *
            +     * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
            +     * project.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGoogleManaged() { + if (googleManagedBuilder_ == null) { + if (deploymentModeCase_ == 8) { + deploymentModeCase_ = 0; + deploymentMode_ = null; + onChanged(); + } + } else { + if (deploymentModeCase_ == 8) { + deploymentModeCase_ = 0; + deploymentMode_ = null; + } + googleManagedBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
            +     * project.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.Builder + getGoogleManagedBuilder() { + return internalGetGoogleManagedFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
            +     * project.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.GoogleManagedOrBuilder + getGoogleManagedOrBuilder() { + if ((deploymentModeCase_ == 8) && (googleManagedBuilder_ != null)) { + return googleManagedBuilder_.getMessageOrBuilder(); + } else { + if (deploymentModeCase_ == 8) { + return (com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) deploymentMode_; + } + return com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
            +     * project.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged, + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.Builder, + com.google.cloud.networkservices.v1.AgentGateway.GoogleManagedOrBuilder> + internalGetGoogleManagedFieldBuilder() { + if (googleManagedBuilder_ == null) { + if (!(deploymentModeCase_ == 8)) { + deploymentMode_ = + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.getDefaultInstance(); + } + googleManagedBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged, + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged.Builder, + com.google.cloud.networkservices.v1.AgentGateway.GoogleManagedOrBuilder>( + (com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged) deploymentMode_, + getParentForChildren(), + isClean()); + deploymentMode_ = null; + } + deploymentModeCase_ = 8; + onChanged(); + return googleManagedBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged, + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.Builder, + com.google.cloud.networkservices.v1.AgentGateway.SelfManagedOrBuilder> + selfManagedBuilder_; + + /** + * + * + *
            +     * Optional. Attach to existing Application Load Balancers or Secure Web
            +     * Proxies.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the selfManaged field is set. + */ + @java.lang.Override + public boolean hasSelfManaged() { + return deploymentModeCase_ == 9; + } + + /** + * + * + *
            +     * Optional. Attach to existing Application Load Balancers or Secure Web
            +     * Proxies.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The selfManaged. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.SelfManaged getSelfManaged() { + if (selfManagedBuilder_ == null) { + if (deploymentModeCase_ == 9) { + return (com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) deploymentMode_; + } + return com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.getDefaultInstance(); + } else { + if (deploymentModeCase_ == 9) { + return selfManagedBuilder_.getMessage(); + } + return com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. Attach to existing Application Load Balancers or Secure Web
            +     * Proxies.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSelfManaged( + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged value) { + if (selfManagedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deploymentMode_ = value; + onChanged(); + } else { + selfManagedBuilder_.setMessage(value); + } + deploymentModeCase_ = 9; + return this; + } + + /** + * + * + *
            +     * Optional. Attach to existing Application Load Balancers or Secure Web
            +     * Proxies.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSelfManaged( + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.Builder builderForValue) { + if (selfManagedBuilder_ == null) { + deploymentMode_ = builderForValue.build(); + onChanged(); + } else { + selfManagedBuilder_.setMessage(builderForValue.build()); + } + deploymentModeCase_ = 9; + return this; + } + + /** + * + * + *
            +     * Optional. Attach to existing Application Load Balancers or Secure Web
            +     * Proxies.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSelfManaged( + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged value) { + if (selfManagedBuilder_ == null) { + if (deploymentModeCase_ == 9 + && deploymentMode_ + != com.google.cloud.networkservices.v1.AgentGateway.SelfManaged + .getDefaultInstance()) { + deploymentMode_ = + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.newBuilder( + (com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) + deploymentMode_) + .mergeFrom(value) + .buildPartial(); + } else { + deploymentMode_ = value; + } + onChanged(); + } else { + if (deploymentModeCase_ == 9) { + selfManagedBuilder_.mergeFrom(value); + } else { + selfManagedBuilder_.setMessage(value); + } + } + deploymentModeCase_ = 9; + return this; + } + + /** + * + * + *
            +     * Optional. Attach to existing Application Load Balancers or Secure Web
            +     * Proxies.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSelfManaged() { + if (selfManagedBuilder_ == null) { + if (deploymentModeCase_ == 9) { + deploymentModeCase_ = 0; + deploymentMode_ = null; + onChanged(); + } + } else { + if (deploymentModeCase_ == 9) { + deploymentModeCase_ = 0; + deploymentMode_ = null; + } + selfManagedBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Attach to existing Application Load Balancers or Secure Web
            +     * Proxies.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.Builder + getSelfManagedBuilder() { + return internalGetSelfManagedFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Attach to existing Application Load Balancers or Secure Web
            +     * Proxies.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway.SelfManagedOrBuilder + getSelfManagedOrBuilder() { + if ((deploymentModeCase_ == 9) && (selfManagedBuilder_ != null)) { + return selfManagedBuilder_.getMessageOrBuilder(); + } else { + if (deploymentModeCase_ == 9) { + return (com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) deploymentMode_; + } + return com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. Attach to existing Application Load Balancers or Secure Web
            +     * Proxies.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged, + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.Builder, + com.google.cloud.networkservices.v1.AgentGateway.SelfManagedOrBuilder> + internalGetSelfManagedFieldBuilder() { + if (selfManagedBuilder_ == null) { + if (!(deploymentModeCase_ == 9)) { + deploymentMode_ = + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.getDefaultInstance(); + } + selfManagedBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged, + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged.Builder, + com.google.cloud.networkservices.v1.AgentGateway.SelfManagedOrBuilder>( + (com.google.cloud.networkservices.v1.AgentGateway.SelfManaged) deploymentMode_, + getParentForChildren(), + isClean()); + deploymentMode_ = null; + } + deploymentModeCase_ = 9; + onChanged(); + return selfManagedBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Identifier. Name of the AgentGateway resource. It matches pattern
            +     * `projects/*/locations/*/agentGateways/<agent_gateway>`.
            +     * 
            + * + * 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 AgentGateway resource. It matches pattern
            +     * `projects/*/locations/*/agentGateways/<agent_gateway>`.
            +     * 
            + * + * 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 AgentGateway resource. It matches pattern
            +     * `projects/*/locations/*/agentGateways/<agent_gateway>`.
            +     * 
            + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. Name of the AgentGateway resource. It matches pattern
            +     * `projects/*/locations/*/agentGateways/<agent_gateway>`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. Name of the AgentGateway resource. It matches pattern
            +     * `projects/*/locations/*/agentGateways/<agent_gateway>`.
            +     * 
            + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. The timestamp when the resource was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Output only. The timestamp when the resource was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The timestamp when the resource was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp when the resource was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp when the resource was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp when the resource was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp when the resource was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The timestamp when the resource was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +     * Output only. The timestamp when the resource was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. The timestamp when the resource was updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Output only. The timestamp when the resource was updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The timestamp when the resource was updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp when the resource was updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp when the resource was updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp when the resource was updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The timestamp when the resource was updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The timestamp when the resource was updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
            +     * Output only. The timestamp when the resource was updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000020; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
            +     * Optional. Set of label tags associated with the AgentGateway resource.
            +     * 
            + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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(); + } + + /** + * + * + *
            +     * Optional. Set of label tags associated with the AgentGateway resource.
            +     * 
            + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
            +     * Optional. Set of label tags associated with the AgentGateway resource.
            +     * 
            + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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; + } + + /** + * + * + *
            +     * Optional. Set of label tags associated with the AgentGateway resource.
            +     * 
            + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @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_ & ~0x00000020); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
            +     * Optional. Set of label tags associated with the AgentGateway resource.
            +     * 
            + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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_ |= 0x00000020; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
            +     * Optional. Set of label tags associated with the AgentGateway resource.
            +     * 
            + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + 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_ |= 0x00000020; + return this; + } + + /** + * + * + *
            +     * Optional. Set of label tags associated with the AgentGateway resource.
            +     * 
            + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
            +     * Optional. A free-text description of the resource. Max length 1024
            +     * characters.
            +     * 
            + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. A free-text description of the resource. Max length 1024
            +     * characters.
            +     * 
            + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. A free-text description of the resource. Max length 1024
            +     * characters.
            +     * 
            + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A free-text description of the resource. Max length 1024
            +     * characters.
            +     * 
            + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A free-text description of the resource. Max length 1024
            +     * characters.
            +     * 
            + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
            +     * Optional. Etag of the resource.
            +     * If this is provided, it must match the server's etag. If the provided etag
            +     * does not match the server's etag, the request will fail with a 409 ABORTED
            +     * error.
            +     * 
            + * + * 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. Etag of the resource.
            +     * If this is provided, it must match the server's etag. If the provided etag
            +     * does not match the server's etag, the request will fail with a 409 ABORTED
            +     * error.
            +     * 
            + * + * 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. Etag of the resource.
            +     * If this is provided, it must match the server's etag. If the provided etag
            +     * does not match the server's etag, the request will fail with a 409 ABORTED
            +     * error.
            +     * 
            + * + * 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_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Etag of the resource.
            +     * If this is provided, it must match the server's etag. If the provided etag
            +     * does not match the server's etag, the request will fail with a 409 ABORTED
            +     * error.
            +     * 
            + * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Etag of the resource.
            +     * If this is provided, it must match the server's etag. If the provided etag
            +     * does not match the server's etag, the request will fail with a 409 ABORTED
            +     * error.
            +     * 
            + * + * 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_ |= 0x00000080; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList protocols_ = emptyIntList(); + + private void ensureProtocolsIsMutable() { + if (!protocols_.isModifiable()) { + protocols_ = makeMutableCopy(protocols_); + } + bitField0_ |= 0x00000100; + } + + /** + * + * + *
            +     * Optional. Deprecated.
            +     * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return A list containing the protocols. + */ + @java.lang.Deprecated + public java.util.List + getProtocolsList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.networkservices.v1.AgentGateway.Protocol>( + protocols_, protocols_converter_); + } + + /** + * + * + *
            +     * Optional. Deprecated.
            +     * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return The count of protocols. + */ + @java.lang.Deprecated + public int getProtocolsCount() { + return protocols_.size(); + } + + /** + * + * + *
            +     * Optional. Deprecated.
            +     * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param index The index of the element to return. + * @return The protocols at the given index. + */ + @java.lang.Deprecated + public com.google.cloud.networkservices.v1.AgentGateway.Protocol getProtocols(int index) { + return protocols_converter_.convert(protocols_.getInt(index)); + } + + /** + * + * + *
            +     * Optional. Deprecated.
            +     * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param index The index to set the value at. + * @param value The protocols to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProtocols( + int index, com.google.cloud.networkservices.v1.AgentGateway.Protocol value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProtocolsIsMutable(); + protocols_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Deprecated.
            +     * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param value The protocols to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addProtocols(com.google.cloud.networkservices.v1.AgentGateway.Protocol value) { + if (value == null) { + throw new NullPointerException(); + } + ensureProtocolsIsMutable(); + protocols_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Deprecated.
            +     * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param values The protocols to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addAllProtocols( + java.lang.Iterable + values) { + ensureProtocolsIsMutable(); + for (com.google.cloud.networkservices.v1.AgentGateway.Protocol value : values) { + protocols_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Deprecated.
            +     * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearProtocols() { + protocols_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Deprecated.
            +     * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return A list containing the enum numeric values on the wire for protocols. + */ + @java.lang.Deprecated + public java.util.List getProtocolsValueList() { + protocols_.makeImmutable(); + return protocols_; + } + + /** + * + * + *
            +     * Optional. Deprecated.
            +     * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param index The index of the value to return. + * @return The enum numeric value on the wire of protocols at the given index. + */ + @java.lang.Deprecated + public int getProtocolsValue(int index) { + return protocols_.getInt(index); + } + + /** + * + * + *
            +     * Optional. Deprecated.
            +     * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for protocols to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setProtocolsValue(int index, int value) { + ensureProtocolsIsMutable(); + protocols_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Deprecated.
            +     * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param value The enum numeric value on the wire for protocols to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addProtocolsValue(int value) { + ensureProtocolsIsMutable(); + protocols_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Deprecated.
            +     * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param values The enum numeric values on the wire for protocols to add. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder addAllProtocolsValue(java.lang.Iterable values) { + ensureProtocolsIsMutable(); + for (int value : values) { + protocols_.addInt(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList registries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRegistriesIsMutable() { + if (!registries_.isModifiable()) { + registries_ = new com.google.protobuf.LazyStringArrayList(registries_); + } + bitField0_ |= 0x00000200; + } + + /** + * + * + *
            +     * Optional. A list of Agent registries containing the agents, MCP servers and
            +     * tools governed by the Agent Gateway. Note: Currently limited to
            +     * project-scoped registries Must be of format
            +     * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
            +     * 
            + * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the registries. + */ + public com.google.protobuf.ProtocolStringList getRegistriesList() { + registries_.makeImmutable(); + return registries_; + } + + /** + * + * + *
            +     * Optional. A list of Agent registries containing the agents, MCP servers and
            +     * tools governed by the Agent Gateway. Note: Currently limited to
            +     * project-scoped registries Must be of format
            +     * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
            +     * 
            + * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of registries. + */ + public int getRegistriesCount() { + return registries_.size(); + } + + /** + * + * + *
            +     * Optional. A list of Agent registries containing the agents, MCP servers and
            +     * tools governed by the Agent Gateway. Note: Currently limited to
            +     * project-scoped registries Must be of format
            +     * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
            +     * 
            + * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The registries at the given index. + */ + public java.lang.String getRegistries(int index) { + return registries_.get(index); + } + + /** + * + * + *
            +     * Optional. A list of Agent registries containing the agents, MCP servers and
            +     * tools governed by the Agent Gateway. Note: Currently limited to
            +     * project-scoped registries Must be of format
            +     * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
            +     * 
            + * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the registries at the given index. + */ + public com.google.protobuf.ByteString getRegistriesBytes(int index) { + return registries_.getByteString(index); + } + + /** + * + * + *
            +     * Optional. A list of Agent registries containing the agents, MCP servers and
            +     * tools governed by the Agent Gateway. Note: Currently limited to
            +     * project-scoped registries Must be of format
            +     * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
            +     * 
            + * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The registries to set. + * @return This builder for chaining. + */ + public Builder setRegistries(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegistriesIsMutable(); + registries_.set(index, value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A list of Agent registries containing the agents, MCP servers and
            +     * tools governed by the Agent Gateway. Note: Currently limited to
            +     * project-scoped registries Must be of format
            +     * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
            +     * 
            + * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The registries to add. + * @return This builder for chaining. + */ + public Builder addRegistries(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRegistriesIsMutable(); + registries_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A list of Agent registries containing the agents, MCP servers and
            +     * tools governed by the Agent Gateway. Note: Currently limited to
            +     * project-scoped registries Must be of format
            +     * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
            +     * 
            + * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The registries to add. + * @return This builder for chaining. + */ + public Builder addAllRegistries(java.lang.Iterable values) { + ensureRegistriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, registries_); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A list of Agent registries containing the agents, MCP servers and
            +     * tools governed by the Agent Gateway. Note: Currently limited to
            +     * project-scoped registries Must be of format
            +     * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
            +     * 
            + * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRegistries() { + registries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A list of Agent registries containing the agents, MCP servers and
            +     * tools governed by the Agent Gateway. Note: Currently limited to
            +     * project-scoped registries Must be of format
            +     * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
            +     * 
            + * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the registries to add. + * @return This builder for chaining. + */ + public Builder addRegistriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRegistriesIsMutable(); + registries_.add(value); + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig networkConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfigOrBuilder> + networkConfigBuilder_; + + /** + * + * + *
            +     * Optional. Network configuration for the AgentGateway.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the networkConfig field is set. + */ + public boolean hasNetworkConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
            +     * Optional. Network configuration for the AgentGateway.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The networkConfig. + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig getNetworkConfig() { + if (networkConfigBuilder_ == null) { + return networkConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.getDefaultInstance() + : networkConfig_; + } else { + return networkConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Network configuration for the AgentGateway.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNetworkConfig( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkConfig_ = value; + } else { + networkConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Network configuration for the AgentGateway.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setNetworkConfig( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Builder builderForValue) { + if (networkConfigBuilder_ == null) { + networkConfig_ = builderForValue.build(); + } else { + networkConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Network configuration for the AgentGateway.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeNetworkConfig( + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig value) { + if (networkConfigBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && networkConfig_ != null + && networkConfig_ + != com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig + .getDefaultInstance()) { + getNetworkConfigBuilder().mergeFrom(value); + } else { + networkConfig_ = value; + } + } else { + networkConfigBuilder_.mergeFrom(value); + } + if (networkConfig_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Network configuration for the AgentGateway.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearNetworkConfig() { + bitField0_ = (bitField0_ & ~0x00000400); + networkConfig_ = null; + if (networkConfigBuilder_ != null) { + networkConfigBuilder_.dispose(); + networkConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Network configuration for the AgentGateway.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Builder + getNetworkConfigBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetNetworkConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Network configuration for the AgentGateway.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.NetworkConfigOrBuilder + getNetworkConfigOrBuilder() { + if (networkConfigBuilder_ != null) { + return networkConfigBuilder_.getMessageOrBuilder(); + } else { + return networkConfig_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.getDefaultInstance() + : networkConfig_; + } + } + + /** + * + * + *
            +     * Optional. Network configuration for the AgentGateway.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfigOrBuilder> + internalGetNetworkConfigFieldBuilder() { + if (networkConfigBuilder_ == null) { + networkConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Builder, + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfigOrBuilder>( + getNetworkConfig(), getParentForChildren(), isClean()); + networkConfig_ = null; + } + return networkConfigBuilder_; + } + + private com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + agentGatewayCard_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard, + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.Builder, + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCardOrBuilder> + agentGatewayCardBuilder_; + + /** + * + * + *
            +     * Output only. Field for populated AgentGateway card.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the agentGatewayCard field is set. + */ + public boolean hasAgentGatewayCard() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
            +     * Output only. Field for populated AgentGateway card.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The agentGatewayCard. + */ + public com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + getAgentGatewayCard() { + if (agentGatewayCardBuilder_ == null) { + return agentGatewayCard_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + .getDefaultInstance() + : agentGatewayCard_; + } else { + return agentGatewayCardBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Field for populated AgentGateway card.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAgentGatewayCard( + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard value) { + if (agentGatewayCardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentGatewayCard_ = value; + } else { + agentGatewayCardBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Field for populated AgentGateway card.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAgentGatewayCard( + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.Builder + builderForValue) { + if (agentGatewayCardBuilder_ == null) { + agentGatewayCard_ = builderForValue.build(); + } else { + agentGatewayCardBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Field for populated AgentGateway card.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAgentGatewayCard( + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard value) { + if (agentGatewayCardBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && agentGatewayCard_ != null + && agentGatewayCard_ + != com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + .getDefaultInstance()) { + getAgentGatewayCardBuilder().mergeFrom(value); + } else { + agentGatewayCard_ = value; + } + } else { + agentGatewayCardBuilder_.mergeFrom(value); + } + if (agentGatewayCard_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Field for populated AgentGateway card.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAgentGatewayCard() { + bitField0_ = (bitField0_ & ~0x00000800); + agentGatewayCard_ = null; + if (agentGatewayCardBuilder_ != null) { + agentGatewayCardBuilder_.dispose(); + agentGatewayCardBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Field for populated AgentGateway card.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.Builder + getAgentGatewayCardBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetAgentGatewayCardFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Field for populated AgentGateway card.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCardOrBuilder + getAgentGatewayCardOrBuilder() { + if (agentGatewayCardBuilder_ != null) { + return agentGatewayCardBuilder_.getMessageOrBuilder(); + } else { + return agentGatewayCard_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard + .getDefaultInstance() + : agentGatewayCard_; + } + } + + /** + * + * + *
            +     * Output only. Field for populated AgentGateway card.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard, + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.Builder, + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCardOrBuilder> + internalGetAgentGatewayCardFieldBuilder() { + if (agentGatewayCardBuilder_ == null) { + agentGatewayCardBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard, + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard.Builder, + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCardOrBuilder>( + getAgentGatewayCard(), getParentForChildren(), isClean()); + agentGatewayCard_ = null; + } + return agentGatewayCardBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.AgentGateway) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.AgentGateway) + private static final com.google.cloud.networkservices.v1.AgentGateway DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.AgentGateway(); + } + + public static com.google.cloud.networkservices.v1.AgentGateway getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentGateway parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.networkservices.v1.AgentGateway getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayName.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayName.java new file mode 100644 index 000000000000..0b6b363c82e2 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +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 AgentGatewayName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_AGENT_GATEWAY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/agentGateways/{agent_gateway}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String agentGateway; + + @Deprecated + protected AgentGatewayName() { + project = null; + location = null; + agentGateway = null; + } + + private AgentGatewayName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + agentGateway = Preconditions.checkNotNull(builder.getAgentGateway()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAgentGateway() { + return agentGateway; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AgentGatewayName of(String project, String location, String agentGateway) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAgentGateway(agentGateway) + .build(); + } + + public static String format(String project, String location, String agentGateway) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAgentGateway(agentGateway) + .build() + .toString(); + } + + public static AgentGatewayName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AGENT_GATEWAY.validatedMatch( + formattedString, "AgentGatewayName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("agent_gateway")); + } + + 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 (AgentGatewayName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_AGENT_GATEWAY.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 (agentGateway != null) { + fieldMapBuilder.put("agent_gateway", agentGateway); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_AGENT_GATEWAY.instantiate( + "project", project, "location", location, "agent_gateway", agentGateway); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AgentGatewayName that = ((AgentGatewayName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.agentGateway, that.agentGateway); + } + 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(agentGateway); + return h; + } + + /** Builder for projects/{project}/locations/{location}/agentGateways/{agent_gateway}. */ + public static class Builder { + private String project; + private String location; + private String agentGateway; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAgentGateway() { + return agentGateway; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAgentGateway(String agentGateway) { + this.agentGateway = agentGateway; + return this; + } + + private Builder(AgentGatewayName agentGatewayName) { + this.project = agentGatewayName.project; + this.location = agentGatewayName.location; + this.agentGateway = agentGatewayName.agentGateway; + } + + public AgentGatewayName build() { + return new AgentGatewayName(this); + } + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayOrBuilder.java new file mode 100644 index 000000000000..cad10ef1832a --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayOrBuilder.java @@ -0,0 +1,600 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +@com.google.protobuf.Generated +public interface AgentGatewayOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.AgentGateway) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
            +   * project.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the googleManaged field is set. + */ + boolean hasGoogleManaged(); + + /** + * + * + *
            +   * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
            +   * project.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The googleManaged. + */ + com.google.cloud.networkservices.v1.AgentGateway.GoogleManaged getGoogleManaged(); + + /** + * + * + *
            +   * Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant
            +   * project.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.GoogleManaged google_managed = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkservices.v1.AgentGateway.GoogleManagedOrBuilder + getGoogleManagedOrBuilder(); + + /** + * + * + *
            +   * Optional. Attach to existing Application Load Balancers or Secure Web
            +   * Proxies.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the selfManaged field is set. + */ + boolean hasSelfManaged(); + + /** + * + * + *
            +   * Optional. Attach to existing Application Load Balancers or Secure Web
            +   * Proxies.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The selfManaged. + */ + com.google.cloud.networkservices.v1.AgentGateway.SelfManaged getSelfManaged(); + + /** + * + * + *
            +   * Optional. Attach to existing Application Load Balancers or Secure Web
            +   * Proxies.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.SelfManaged self_managed = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkservices.v1.AgentGateway.SelfManagedOrBuilder getSelfManagedOrBuilder(); + + /** + * + * + *
            +   * Identifier. Name of the AgentGateway resource. It matches pattern
            +   * `projects/*/locations/*/agentGateways/<agent_gateway>`.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Identifier. Name of the AgentGateway resource. It matches pattern
            +   * `projects/*/locations/*/agentGateways/<agent_gateway>`.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Output only. The timestamp when the resource was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. The timestamp when the resource was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. The timestamp when the resource was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. The timestamp when the resource was updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. The timestamp when the resource was updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. The timestamp when the resource was updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
            +   * Optional. Set of label tags associated with the AgentGateway resource.
            +   * 
            + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
            +   * Optional. Set of label tags associated with the AgentGateway resource.
            +   * 
            + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
            +   * Optional. Set of label tags associated with the AgentGateway resource.
            +   * 
            + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
            +   * Optional. Set of label tags associated with the AgentGateway resource.
            +   * 
            + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
            +   * Optional. Set of label tags associated with the AgentGateway resource.
            +   * 
            + * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
            +   * Optional. A free-text description of the resource. Max length 1024
            +   * characters.
            +   * 
            + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
            +   * Optional. A free-text description of the resource. Max length 1024
            +   * characters.
            +   * 
            + * + * string description = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
            +   * Optional. Etag of the resource.
            +   * If this is provided, it must match the server's etag. If the provided etag
            +   * does not match the server's etag, the request will fail with a 409 ABORTED
            +   * error.
            +   * 
            + * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
            +   * Optional. Etag of the resource.
            +   * If this is provided, it must match the server's etag. If the provided etag
            +   * does not match the server's etag, the request will fail with a 409 ABORTED
            +   * error.
            +   * 
            + * + * string etag = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
            +   * Optional. Deprecated.
            +   * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return A list containing the protocols. + */ + @java.lang.Deprecated + java.util.List getProtocolsList(); + + /** + * + * + *
            +   * Optional. Deprecated.
            +   * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return The count of protocols. + */ + @java.lang.Deprecated + int getProtocolsCount(); + + /** + * + * + *
            +   * Optional. Deprecated.
            +   * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param index The index of the element to return. + * @return The protocols at the given index. + */ + @java.lang.Deprecated + com.google.cloud.networkservices.v1.AgentGateway.Protocol getProtocols(int index); + + /** + * + * + *
            +   * Optional. Deprecated.
            +   * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @return A list containing the enum numeric values on the wire for protocols. + */ + @java.lang.Deprecated + java.util.List getProtocolsValueList(); + + /** + * + * + *
            +   * Optional. Deprecated.
            +   * 
            + * + * + * repeated .google.cloud.networkservices.v1.AgentGateway.Protocol protocols = 12 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.networkservices.v1.AgentGateway.protocols is deprecated. See + * google/cloud/networkservices/v1/agent_gateway.proto;l=183 + * @param index The index of the value to return. + * @return The enum numeric value on the wire of protocols at the given index. + */ + @java.lang.Deprecated + int getProtocolsValue(int index); + + /** + * + * + *
            +   * Optional. A list of Agent registries containing the agents, MCP servers and
            +   * tools governed by the Agent Gateway. Note: Currently limited to
            +   * project-scoped registries Must be of format
            +   * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
            +   * 
            + * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the registries. + */ + java.util.List getRegistriesList(); + + /** + * + * + *
            +   * Optional. A list of Agent registries containing the agents, MCP servers and
            +   * tools governed by the Agent Gateway. Note: Currently limited to
            +   * project-scoped registries Must be of format
            +   * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
            +   * 
            + * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of registries. + */ + int getRegistriesCount(); + + /** + * + * + *
            +   * Optional. A list of Agent registries containing the agents, MCP servers and
            +   * tools governed by the Agent Gateway. Note: Currently limited to
            +   * project-scoped registries Must be of format
            +   * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
            +   * 
            + * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The registries at the given index. + */ + java.lang.String getRegistries(int index); + + /** + * + * + *
            +   * Optional. A list of Agent registries containing the agents, MCP servers and
            +   * tools governed by the Agent Gateway. Note: Currently limited to
            +   * project-scoped registries Must be of format
            +   * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/
            +   * 
            + * + * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the registries at the given index. + */ + com.google.protobuf.ByteString getRegistriesBytes(int index); + + /** + * + * + *
            +   * Optional. Network configuration for the AgentGateway.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the networkConfig field is set. + */ + boolean hasNetworkConfig(); + + /** + * + * + *
            +   * Optional. Network configuration for the AgentGateway.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The networkConfig. + */ + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfig getNetworkConfig(); + + /** + * + * + *
            +   * Optional. Network configuration for the AgentGateway.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.NetworkConfig network_config = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.networkservices.v1.AgentGateway.NetworkConfigOrBuilder + getNetworkConfigOrBuilder(); + + /** + * + * + *
            +   * Output only. Field for populated AgentGateway card.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the agentGatewayCard field is set. + */ + boolean hasAgentGatewayCard(); + + /** + * + * + *
            +   * Output only. Field for populated AgentGateway card.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The agentGatewayCard. + */ + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard getAgentGatewayCard(); + + /** + * + * + *
            +   * Output only. Field for populated AgentGateway card.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCard agent_gateway_card = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.networkservices.v1.AgentGateway.AgentGatewayOutputCardOrBuilder + getAgentGatewayCardOrBuilder(); + + com.google.cloud.networkservices.v1.AgentGateway.DeploymentModeCase getDeploymentModeCase(); +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayProto.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayProto.java new file mode 100644 index 000000000000..85c61db3e80a --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayProto.java @@ -0,0 +1,371 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +@com.google.protobuf.Generated +public final class AgentGatewayProto extends com.google.protobuf.GeneratedFile { + private AgentGatewayProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentGatewayProto"); + } + + 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_networkservices_v1_AgentGateway_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_AgentGateway_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_AgentGateway_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_AgentGateway_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_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" + + "3google/cloud/networkservices/v1/agent_gateway.proto\022\037google.cloud.networkservi" + + "ces.v1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\277\017\n" + + "\014AgentGateway\022Z\n" + + "\016google_managed\030\010 \001(\0132;.google.cloud.networkser" + + "vices.v1.AgentGateway.GoogleManagedB\003\340A\001H\000\022V\n" + + "\014self_managed\030\t \001(\01329.google.cloud." + + "networkservices.v1.AgentGateway.SelfManagedB\003\340A\001H\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022N\n" + + "\006labels\030\004 \003(\01329.goog" + + "le.cloud.networkservices.v1.AgentGateway.LabelsEntryB\003\340A\001\022\030\n" + + "\013description\030\005 \001(\tB\003\340A\001\022\021\n" + + "\004etag\030\006 \001(\tB\003\340A\001\022P\n" + + "\tprotocols\030\014 \003(" + + "\01626.google.cloud.networkservices.v1.AgentGateway.ProtocolB\005\030\001\340A\001\022\027\n\n" + + "registries\030\r" + + " \003(\tB\003\340A\001\022X\n" + + "\016network_config\030\n" + + " \001(\0132;.goog" + + "le.cloud.networkservices.v1.AgentGateway.NetworkConfigB\003\340A\001\022e\n" + + "\022agent_gateway_card\030\013 \001(\0132D.google.cloud.networkservices.v" + + "1.AgentGateway.AgentGatewayOutputCardB\003\340A\003\032\352\001\n\r" + + "GoogleManaged\022q\n" + + "\024governed_access_path\030\001 \001(\0162N.google.cloud.networkservice" + + "s.v1.AgentGateway.GoogleManaged.GovernedAccessPathB\003\340A\001\"f\n" + + "\022GovernedAccessPath\022$\n" + + " GOVERNED_ACCESS_PATH_UNSPECIFIED\020\000\022\025\n" + + "\021AGENT_TO_ANYWHERE\020\001\022\023\n" + + "\017CLIENT_TO_AGENT\020\002\032.\n" + + "\013SelfManaged\022\037\n" + + "\014resource_uri\030\001 \001(\tB\t\340A\001\372A\003\n" + + "\001*\032\244\004\n\r" + + "NetworkConfig\022W\n" + + "\006egress\030\001 \001(" + + "\0132B.google.cloud.networkservices.v1.AgentGateway.NetworkConfig.EgressB\003\340A\001\022m\n" + + "\022dns_peering_config\030\002 \001(\0132L.google.cloud.ne" + + "tworkservices.v1.AgentGateway.NetworkConfig.DnsPeeringConfigB\003\340A\001\032\302\001\n" + + "\006Egress\022\037\n" + + "\022network_attachment\030\001 \001(\tB\003\340A\001\022i\n" + + "\014trust_config\030\002 \001(\0132N.google.cloud.networkservic" + + "es.v1.AgentGateway.NetworkConfig.Egress.TrustConfigB\003\340A\001\032,\n" + + "\013TrustConfig\022\035\n" + + "\020pem_certificates\030\001 \003(\tB\003\340A\002\032\205\001\n" + + "\020DnsPeeringConfig\022\024\n" + + "\007domains\030\001 \003(\tB\003\340A\002\022\033\n" + + "\016target_project\030\002 \001(\tB\003\340A\002\022>\n" + + "\016target_network\030\003 \001(\tB&\340A\002\372A \n" + + "\036compute.googleapis.com/Network\032\205\001\n" + + "\026AgentGatewayOutputCard\022\032\n\r" + + "mtls_endpoint\030\001 \001(\tB\003\340A\003\022\036\n" + + "\021root_certificates\030\005 \003(\tB\003\340A\003\022/\n" + + "\"service_extensions_service_account\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\"-\n" + + "\010Protocol\022\030\n" + + "\024PROTOCOL_UNSPECIFIED\020\000\022\007\n" + + "\003MCP\020\001:\225\001\352A\221\001\n" + + "+networkservices.googleapis.com/AgentGateway" + + "\022Eprojects/{project}/locations/{location}/agentGateways/{agent_gateway}*\r" + + "agentGateways2\014agentGatewayB\021\n" + + "\017deployment_mode\"\265\001\n" + + "\030ListAgentGatewaysRequest\022C\n" + + "\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+networkservices.googleapis.com/AgentGateway\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022#\n" + + "\026return_partial_success\030\004 \001(\010B\003\340A\001\"\220\001\n" + + "\031ListAgentGatewaysResponse\022E\n" + + "\016agent_gateways\030\001 \003(\0132-." + + "google.cloud.networkservices.v1.AgentGateway\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\023\n" + + "\013unreachable\030\003 \003(\t\"[\n" + + "\026GetAgentGatewayRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + + "+networkservices.googleapis.com/AgentGateway\"\312\001\n" + + "\031CreateAgentGatewayRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\022+n" + + "etworkservices.googleapis.com/AgentGateway\022\035\n" + + "\020agent_gateway_id\030\002 \001(\tB\003\340A\002\022I\n\r" + + "agent_gateway\030\003" + + " \001(\0132-.google.cloud.networkservices.v1.AgentGatewayB\003\340A\002\"\234\001\n" + + "\031UpdateAgentGatewayRequest\0224\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022I\n\r" + + "agent_gateway\030\002" + + " \001(\0132-.google.cloud.networkservices.v1.AgentGatewayB\003\340A\002\"q\n" + + "\031DeleteAgentGatewayRequest\022A\n" + + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + + "+networkservices.googleapis.com/AgentGateway\022\021\n" + + "\004etag\030\002 \001(\tB\003\340A\001B\362\001\n" + + "#com.google.cloud.networkservices.v1B\021AgentGatewayProt" + + "oP\001ZMcloud.google.com/go/networkservices/apiv1/networkservicespb;networkservices" + + "pb\252\002\037Google.Cloud.NetworkServices.V1\312\002\037G" + + "oogle\\Cloud\\NetworkServices\\V1\352\002\"Google:" + + ":Cloud::NetworkServices::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.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_networkservices_v1_AgentGateway_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor, + new java.lang.String[] { + "GoogleManaged", + "SelfManaged", + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "Description", + "Etag", + "Protocols", + "Registries", + "NetworkConfig", + "AgentGatewayCard", + "DeploymentMode", + }); + internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_descriptor = + internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor.getNestedType(0); + internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_AgentGateway_GoogleManaged_descriptor, + new java.lang.String[] { + "GovernedAccessPath", + }); + internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_descriptor = + internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor.getNestedType(1); + internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_AgentGateway_SelfManaged_descriptor, + new java.lang.String[] { + "ResourceUri", + }); + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_descriptor = + internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor.getNestedType(2); + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_descriptor, + new java.lang.String[] { + "Egress", "DnsPeeringConfig", + }); + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_descriptor = + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_descriptor, + new java.lang.String[] { + "NetworkAttachment", "TrustConfig", + }); + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_descriptor = + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_descriptor + .getNestedType(0); + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_Egress_TrustConfig_descriptor, + new java.lang.String[] { + "PemCertificates", + }); + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_descriptor = + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_descriptor + .getNestedType(1); + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_AgentGateway_NetworkConfig_DnsPeeringConfig_descriptor, + new java.lang.String[] { + "Domains", "TargetProject", "TargetNetwork", + }); + internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_descriptor = + internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor.getNestedType(3); + internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_AgentGateway_AgentGatewayOutputCard_descriptor, + new java.lang.String[] { + "MtlsEndpoint", "RootCertificates", "ServiceExtensionsServiceAccount", + }); + internal_static_google_cloud_networkservices_v1_AgentGateway_LabelsEntry_descriptor = + internal_static_google_cloud_networkservices_v1_AgentGateway_descriptor.getNestedType(4); + internal_static_google_cloud_networkservices_v1_AgentGateway_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_AgentGateway_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "ReturnPartialSuccess", + }); + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_descriptor, + new java.lang.String[] { + "AgentGateways", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_descriptor, + new java.lang.String[] { + "Parent", "AgentGatewayId", "AgentGateway", + }); + internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "AgentGateway", + }); + internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + 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); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtension.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtension.java index 17f74beb00ce..ba6dba9a0807 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtension.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtension.java @@ -59,6 +59,7 @@ private AuthzExtension() { authority_ = ""; service_ = ""; forwardHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + forwardAttributes_ = com.google.protobuf.LazyStringArrayList.emptyList(); wireFormat_ = 0; } @@ -442,15 +443,16 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * *
            -   * Required. All backend services and forwarding rules referenced by this
            +   * Optional. All backend services and forwarding rules referenced by this
                * extension must share the same load balancing scheme. Supported values:
            -   * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
            +   * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions
            +   * that do not reference a backend service. For more information, refer to
                * [Backend services
                * overview](https://cloud.google.com/load-balancing/docs/backend-service).
                * 
            * * - * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for loadBalancingScheme. @@ -464,15 +466,16 @@ public int getLoadBalancingSchemeValue() { * * *
            -   * Required. All backend services and forwarding rules referenced by this
            +   * Optional. All backend services and forwarding rules referenced by this
                * extension must share the same load balancing scheme. Supported values:
            -   * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
            +   * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions
            +   * that do not reference a backend service. For more information, refer to
                * [Backend services
                * overview](https://cloud.google.com/load-balancing/docs/backend-service).
                * 
            * * - * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The loadBalancingScheme. @@ -495,11 +498,12 @@ public com.google.cloud.networkservices.v1.LoadBalancingScheme getLoadBalancingS * * *
            -   * Required. The `:authority` header in the gRPC request sent from Envoy
            -   * to the extension service.
            +   * Optional. The `:authority` header in the gRPC request sent from Envoy to
            +   * the extension service. It is required when the `service` field points to a
            +   * backend service or a wasm plugin.
                * 
            * - * string authority = 7 [(.google.api.field_behavior) = REQUIRED]; + * string authority = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The authority. */ @@ -520,11 +524,12 @@ public java.lang.String getAuthority() { * * *
            -   * Required. The `:authority` header in the gRPC request sent from Envoy
            -   * to the extension service.
            +   * Optional. The `:authority` header in the gRPC request sent from Envoy to
            +   * the extension service. It is required when the `service` field points to a
            +   * backend service or a wasm plugin.
                * 
            * - * string authority = 7 [(.google.api.field_behavior) = REQUIRED]; + * string authority = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for authority. */ @@ -845,6 +850,106 @@ public com.google.protobuf.ByteString getForwardHeadersBytes(int index) { return forwardHeaders_.getByteString(index); } + public static final int FORWARD_ATTRIBUTES_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList forwardAttributes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * Optional. List of the Envoy attributes to forward to the extension server.
            +   * The attributes provided here are included as part of the
            +   * `ProcessingRequest.attributes` field (of type
            +   * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +   * names. Refer to the
            +   * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +   * for the names of attributes that can be forwarded. If omitted, no
            +   * attributes are sent. Each element is a string indicating the
            +   * attribute name.
            +   * 
            + * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the forwardAttributes. + */ + public com.google.protobuf.ProtocolStringList getForwardAttributesList() { + return forwardAttributes_; + } + + /** + * + * + *
            +   * Optional. List of the Envoy attributes to forward to the extension server.
            +   * The attributes provided here are included as part of the
            +   * `ProcessingRequest.attributes` field (of type
            +   * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +   * names. Refer to the
            +   * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +   * for the names of attributes that can be forwarded. If omitted, no
            +   * attributes are sent. Each element is a string indicating the
            +   * attribute name.
            +   * 
            + * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of forwardAttributes. + */ + public int getForwardAttributesCount() { + return forwardAttributes_.size(); + } + + /** + * + * + *
            +   * Optional. List of the Envoy attributes to forward to the extension server.
            +   * The attributes provided here are included as part of the
            +   * `ProcessingRequest.attributes` field (of type
            +   * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +   * names. Refer to the
            +   * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +   * for the names of attributes that can be forwarded. If omitted, no
            +   * attributes are sent. Each element is a string indicating the
            +   * attribute name.
            +   * 
            + * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The forwardAttributes at the given index. + */ + public java.lang.String getForwardAttributes(int index) { + return forwardAttributes_.get(index); + } + + /** + * + * + *
            +   * Optional. List of the Envoy attributes to forward to the extension server.
            +   * The attributes provided here are included as part of the
            +   * `ProcessingRequest.attributes` field (of type
            +   * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +   * names. Refer to the
            +   * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +   * for the names of attributes that can be forwarded. If omitted, no
            +   * attributes are sent. Each element is a string indicating the
            +   * attribute name.
            +   * 
            + * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the forwardAttributes at the given index. + */ + public com.google.protobuf.ByteString getForwardAttributesBytes(int index) { + return forwardAttributes_.getByteString(index); + } + public static final int WIRE_FORMAT_FIELD_NUMBER = 14; private int wireFormat_ = 0; @@ -853,7 +958,9 @@ public com.google.protobuf.ByteString getForwardHeadersBytes(int index) { * *
                * Optional. The format of communication supported by the callout extension.
            -   * If not specified, the default value `EXT_PROC_GRPC` is used.
            +   * This field is supported only for regional `AuthzExtension` resources. If
            +   * not specified, the default value `EXT_PROC_GRPC` is used. Global
            +   * `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
                * 
            * * @@ -872,7 +979,9 @@ public int getWireFormatValue() { * *
                * Optional. The format of communication supported by the callout extension.
            -   * If not specified, the default value `EXT_PROC_GRPC` is used.
            +   * This field is supported only for regional `AuthzExtension` resources. If
            +   * not specified, the default value `EXT_PROC_GRPC` is used. Global
            +   * `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
                * 
            * * @@ -939,6 +1048,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < forwardHeaders_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 12, forwardHeaders_.getRaw(i)); } + for (int i = 0; i < forwardAttributes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, forwardAttributes_.getRaw(i)); + } if (wireFormat_ != com.google.cloud.networkservices.v1.WireFormat.WIRE_FORMAT_UNSPECIFIED.getNumber()) { output.writeEnum(14, wireFormat_); @@ -1002,6 +1114,14 @@ public int getSerializedSize() { size += dataSize; size += 1 * getForwardHeadersList().size(); } + { + int dataSize = 0; + for (int i = 0; i < forwardAttributes_.size(); i++) { + dataSize += computeStringSizeNoTag(forwardAttributes_.getRaw(i)); + } + size += dataSize; + size += 1 * getForwardAttributesList().size(); + } if (wireFormat_ != com.google.cloud.networkservices.v1.WireFormat.WIRE_FORMAT_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, wireFormat_); @@ -1046,6 +1166,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMetadata().equals(other.getMetadata())) return false; } if (!getForwardHeadersList().equals(other.getForwardHeadersList())) return false; + if (!getForwardAttributesList().equals(other.getForwardAttributesList())) return false; if (wireFormat_ != other.wireFormat_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1094,6 +1215,10 @@ public int hashCode() { hash = (37 * hash) + FORWARD_HEADERS_FIELD_NUMBER; hash = (53 * hash) + getForwardHeadersList().hashCode(); } + if (getForwardAttributesCount() > 0) { + hash = (37 * hash) + FORWARD_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getForwardAttributesList().hashCode(); + } hash = (37 * hash) + WIRE_FORMAT_FIELD_NUMBER; hash = (53 * hash) + wireFormat_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -1299,6 +1424,7 @@ public Builder clear() { metadataBuilder_ = null; } forwardHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + forwardAttributes_ = com.google.protobuf.LazyStringArrayList.emptyList(); wireFormat_ = 0; return this; } @@ -1380,6 +1506,10 @@ private void buildPartial0(com.google.cloud.networkservices.v1.AuthzExtension re result.forwardHeaders_ = forwardHeaders_; } if (((from_bitField0_ & 0x00001000) != 0)) { + forwardAttributes_.makeImmutable(); + result.forwardAttributes_ = forwardAttributes_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { result.wireFormat_ = wireFormat_; } result.bitField0_ |= to_bitField0_; @@ -1448,6 +1578,16 @@ public Builder mergeFrom(com.google.cloud.networkservices.v1.AuthzExtension othe } onChanged(); } + if (!other.forwardAttributes_.isEmpty()) { + if (forwardAttributes_.isEmpty()) { + forwardAttributes_ = other.forwardAttributes_; + bitField0_ |= 0x00001000; + } else { + ensureForwardAttributesIsMutable(); + forwardAttributes_.addAll(other.forwardAttributes_); + } + onChanged(); + } if (other.wireFormat_ != 0) { setWireFormatValue(other.getWireFormatValue()); } @@ -1559,10 +1699,17 @@ public Builder mergeFrom( forwardHeaders_.add(s); break; } // case 98 + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureForwardAttributesIsMutable(); + forwardAttributes_.add(s); + break; + } // case 106 case 112: { wireFormat_ = input.readEnum(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 112 default: @@ -2463,15 +2610,16 @@ public Builder putAllLabels(java.util.Map va * * *
            -     * Required. All backend services and forwarding rules referenced by this
            +     * Optional. All backend services and forwarding rules referenced by this
                  * extension must share the same load balancing scheme. Supported values:
            -     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
            +     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions
            +     * that do not reference a backend service. For more information, refer to
                  * [Backend services
                  * overview](https://cloud.google.com/load-balancing/docs/backend-service).
                  * 
            * * - * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for loadBalancingScheme. @@ -2485,15 +2633,16 @@ public int getLoadBalancingSchemeValue() { * * *
            -     * Required. All backend services and forwarding rules referenced by this
            +     * Optional. All backend services and forwarding rules referenced by this
                  * extension must share the same load balancing scheme. Supported values:
            -     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
            +     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions
            +     * that do not reference a backend service. For more information, refer to
                  * [Backend services
                  * overview](https://cloud.google.com/load-balancing/docs/backend-service).
                  * 
            * * - * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The enum numeric value on the wire for loadBalancingScheme to set. @@ -2510,15 +2659,16 @@ public Builder setLoadBalancingSchemeValue(int value) { * * *
            -     * Required. All backend services and forwarding rules referenced by this
            +     * Optional. All backend services and forwarding rules referenced by this
                  * extension must share the same load balancing scheme. Supported values:
            -     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
            +     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions
            +     * that do not reference a backend service. For more information, refer to
                  * [Backend services
                  * overview](https://cloud.google.com/load-balancing/docs/backend-service).
                  * 
            * * - * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The loadBalancingScheme. @@ -2536,15 +2686,16 @@ public com.google.cloud.networkservices.v1.LoadBalancingScheme getLoadBalancingS * * *
            -     * Required. All backend services and forwarding rules referenced by this
            +     * Optional. All backend services and forwarding rules referenced by this
                  * extension must share the same load balancing scheme. Supported values:
            -     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
            +     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions
            +     * that do not reference a backend service. For more information, refer to
                  * [Backend services
                  * overview](https://cloud.google.com/load-balancing/docs/backend-service).
                  * 
            * * - * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The loadBalancingScheme to set. @@ -2565,15 +2716,16 @@ public Builder setLoadBalancingScheme( * * *
            -     * Required. All backend services and forwarding rules referenced by this
            +     * Optional. All backend services and forwarding rules referenced by this
                  * extension must share the same load balancing scheme. Supported values:
            -     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
            +     * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions
            +     * that do not reference a backend service. For more information, refer to
                  * [Backend services
                  * overview](https://cloud.google.com/load-balancing/docs/backend-service).
                  * 
            * * - * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. @@ -2591,11 +2743,12 @@ public Builder clearLoadBalancingScheme() { * * *
            -     * Required. The `:authority` header in the gRPC request sent from Envoy
            -     * to the extension service.
            +     * Optional. The `:authority` header in the gRPC request sent from Envoy to
            +     * the extension service. It is required when the `service` field points to a
            +     * backend service or a wasm plugin.
                  * 
            * - * string authority = 7 [(.google.api.field_behavior) = REQUIRED]; + * string authority = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The authority. */ @@ -2615,11 +2768,12 @@ public java.lang.String getAuthority() { * * *
            -     * Required. The `:authority` header in the gRPC request sent from Envoy
            -     * to the extension service.
            +     * Optional. The `:authority` header in the gRPC request sent from Envoy to
            +     * the extension service. It is required when the `service` field points to a
            +     * backend service or a wasm plugin.
                  * 
            * - * string authority = 7 [(.google.api.field_behavior) = REQUIRED]; + * string authority = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for authority. */ @@ -2639,11 +2793,12 @@ public com.google.protobuf.ByteString getAuthorityBytes() { * * *
            -     * Required. The `:authority` header in the gRPC request sent from Envoy
            -     * to the extension service.
            +     * Optional. The `:authority` header in the gRPC request sent from Envoy to
            +     * the extension service. It is required when the `service` field points to a
            +     * backend service or a wasm plugin.
                  * 
            * - * string authority = 7 [(.google.api.field_behavior) = REQUIRED]; + * string authority = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The authority to set. * @return This builder for chaining. @@ -2662,11 +2817,12 @@ public Builder setAuthority(java.lang.String value) { * * *
            -     * Required. The `:authority` header in the gRPC request sent from Envoy
            -     * to the extension service.
            +     * Optional. The `:authority` header in the gRPC request sent from Envoy to
            +     * the extension service. It is required when the `service` field points to a
            +     * backend service or a wasm plugin.
                  * 
            * - * string authority = 7 [(.google.api.field_behavior) = REQUIRED]; + * string authority = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2681,11 +2837,12 @@ public Builder clearAuthority() { * * *
            -     * Required. The `:authority` header in the gRPC request sent from Envoy
            -     * to the extension service.
            +     * Optional. The `:authority` header in the gRPC request sent from Envoy to
            +     * the extension service. It is required when the `service` field points to a
            +     * backend service or a wasm plugin.
                  * 
            * - * string authority = 7 [(.google.api.field_behavior) = REQUIRED]; + * string authority = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for authority to set. * @return This builder for chaining. @@ -3614,6 +3771,270 @@ public Builder addForwardHeadersBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList forwardAttributes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureForwardAttributesIsMutable() { + if (!forwardAttributes_.isModifiable()) { + forwardAttributes_ = new com.google.protobuf.LazyStringArrayList(forwardAttributes_); + } + bitField0_ |= 0x00001000; + } + + /** + * + * + *
            +     * Optional. List of the Envoy attributes to forward to the extension server.
            +     * The attributes provided here are included as part of the
            +     * `ProcessingRequest.attributes` field (of type
            +     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +     * names. Refer to the
            +     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +     * for the names of attributes that can be forwarded. If omitted, no
            +     * attributes are sent. Each element is a string indicating the
            +     * attribute name.
            +     * 
            + * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the forwardAttributes. + */ + public com.google.protobuf.ProtocolStringList getForwardAttributesList() { + forwardAttributes_.makeImmutable(); + return forwardAttributes_; + } + + /** + * + * + *
            +     * Optional. List of the Envoy attributes to forward to the extension server.
            +     * The attributes provided here are included as part of the
            +     * `ProcessingRequest.attributes` field (of type
            +     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +     * names. Refer to the
            +     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +     * for the names of attributes that can be forwarded. If omitted, no
            +     * attributes are sent. Each element is a string indicating the
            +     * attribute name.
            +     * 
            + * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of forwardAttributes. + */ + public int getForwardAttributesCount() { + return forwardAttributes_.size(); + } + + /** + * + * + *
            +     * Optional. List of the Envoy attributes to forward to the extension server.
            +     * The attributes provided here are included as part of the
            +     * `ProcessingRequest.attributes` field (of type
            +     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +     * names. Refer to the
            +     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +     * for the names of attributes that can be forwarded. If omitted, no
            +     * attributes are sent. Each element is a string indicating the
            +     * attribute name.
            +     * 
            + * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The forwardAttributes at the given index. + */ + public java.lang.String getForwardAttributes(int index) { + return forwardAttributes_.get(index); + } + + /** + * + * + *
            +     * Optional. List of the Envoy attributes to forward to the extension server.
            +     * The attributes provided here are included as part of the
            +     * `ProcessingRequest.attributes` field (of type
            +     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +     * names. Refer to the
            +     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +     * for the names of attributes that can be forwarded. If omitted, no
            +     * attributes are sent. Each element is a string indicating the
            +     * attribute name.
            +     * 
            + * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the forwardAttributes at the given index. + */ + public com.google.protobuf.ByteString getForwardAttributesBytes(int index) { + return forwardAttributes_.getByteString(index); + } + + /** + * + * + *
            +     * Optional. List of the Envoy attributes to forward to the extension server.
            +     * The attributes provided here are included as part of the
            +     * `ProcessingRequest.attributes` field (of type
            +     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +     * names. Refer to the
            +     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +     * for the names of attributes that can be forwarded. If omitted, no
            +     * attributes are sent. Each element is a string indicating the
            +     * attribute name.
            +     * 
            + * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The forwardAttributes to set. + * @return This builder for chaining. + */ + public Builder setForwardAttributes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureForwardAttributesIsMutable(); + forwardAttributes_.set(index, value); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. List of the Envoy attributes to forward to the extension server.
            +     * The attributes provided here are included as part of the
            +     * `ProcessingRequest.attributes` field (of type
            +     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +     * names. Refer to the
            +     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +     * for the names of attributes that can be forwarded. If omitted, no
            +     * attributes are sent. Each element is a string indicating the
            +     * attribute name.
            +     * 
            + * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The forwardAttributes to add. + * @return This builder for chaining. + */ + public Builder addForwardAttributes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureForwardAttributesIsMutable(); + forwardAttributes_.add(value); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. List of the Envoy attributes to forward to the extension server.
            +     * The attributes provided here are included as part of the
            +     * `ProcessingRequest.attributes` field (of type
            +     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +     * names. Refer to the
            +     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +     * for the names of attributes that can be forwarded. If omitted, no
            +     * attributes are sent. Each element is a string indicating the
            +     * attribute name.
            +     * 
            + * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The forwardAttributes to add. + * @return This builder for chaining. + */ + public Builder addAllForwardAttributes(java.lang.Iterable values) { + ensureForwardAttributesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, forwardAttributes_); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. List of the Envoy attributes to forward to the extension server.
            +     * The attributes provided here are included as part of the
            +     * `ProcessingRequest.attributes` field (of type
            +     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +     * names. Refer to the
            +     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +     * for the names of attributes that can be forwarded. If omitted, no
            +     * attributes are sent. Each element is a string indicating the
            +     * attribute name.
            +     * 
            + * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearForwardAttributes() { + forwardAttributes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. List of the Envoy attributes to forward to the extension server.
            +     * The attributes provided here are included as part of the
            +     * `ProcessingRequest.attributes` field (of type
            +     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +     * names. Refer to the
            +     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +     * for the names of attributes that can be forwarded. If omitted, no
            +     * attributes are sent. Each element is a string indicating the
            +     * attribute name.
            +     * 
            + * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the forwardAttributes to add. + * @return This builder for chaining. + */ + public Builder addForwardAttributesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureForwardAttributesIsMutable(); + forwardAttributes_.add(value); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + private int wireFormat_ = 0; /** @@ -3621,7 +4042,9 @@ public Builder addForwardHeadersBytes(com.google.protobuf.ByteString value) { * *
                  * Optional. The format of communication supported by the callout extension.
            -     * If not specified, the default value `EXT_PROC_GRPC` is used.
            +     * This field is supported only for regional `AuthzExtension` resources. If
            +     * not specified, the default value `EXT_PROC_GRPC` is used. Global
            +     * `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
                  * 
            * * @@ -3640,7 +4063,9 @@ public int getWireFormatValue() { * *
                  * Optional. The format of communication supported by the callout extension.
            -     * If not specified, the default value `EXT_PROC_GRPC` is used.
            +     * This field is supported only for regional `AuthzExtension` resources. If
            +     * not specified, the default value `EXT_PROC_GRPC` is used. Global
            +     * `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
                  * 
            * * @@ -3652,7 +4077,7 @@ public int getWireFormatValue() { */ public Builder setWireFormatValue(int value) { wireFormat_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3662,7 +4087,9 @@ public Builder setWireFormatValue(int value) { * *
                  * Optional. The format of communication supported by the callout extension.
            -     * If not specified, the default value `EXT_PROC_GRPC` is used.
            +     * This field is supported only for regional `AuthzExtension` resources. If
            +     * not specified, the default value `EXT_PROC_GRPC` is used. Global
            +     * `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
                  * 
            * * @@ -3683,7 +4110,9 @@ public com.google.cloud.networkservices.v1.WireFormat getWireFormat() { * *
                  * Optional. The format of communication supported by the callout extension.
            -     * If not specified, the default value `EXT_PROC_GRPC` is used.
            +     * This field is supported only for regional `AuthzExtension` resources. If
            +     * not specified, the default value `EXT_PROC_GRPC` is used. Global
            +     * `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
                  * 
            * * @@ -3697,7 +4126,7 @@ public Builder setWireFormat(com.google.cloud.networkservices.v1.WireFormat valu if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; wireFormat_ = value.getNumber(); onChanged(); return this; @@ -3708,7 +4137,9 @@ public Builder setWireFormat(com.google.cloud.networkservices.v1.WireFormat valu * *
                  * Optional. The format of communication supported by the callout extension.
            -     * If not specified, the default value `EXT_PROC_GRPC` is used.
            +     * This field is supported only for regional `AuthzExtension` resources. If
            +     * not specified, the default value `EXT_PROC_GRPC` is used. Global
            +     * `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
                  * 
            * * @@ -3718,7 +4149,7 @@ public Builder setWireFormat(com.google.cloud.networkservices.v1.WireFormat valu * @return This builder for chaining. */ public Builder clearWireFormat() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); wireFormat_ = 0; onChanged(); return this; diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtensionOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtensionOrBuilder.java index 6b7413d66b09..16c4490a8077 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtensionOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AuthzExtensionOrBuilder.java @@ -258,15 +258,16 @@ java.lang.String getLabelsOrDefault( * * *
            -   * Required. All backend services and forwarding rules referenced by this
            +   * Optional. All backend services and forwarding rules referenced by this
                * extension must share the same load balancing scheme. Supported values:
            -   * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
            +   * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions
            +   * that do not reference a backend service. For more information, refer to
                * [Backend services
                * overview](https://cloud.google.com/load-balancing/docs/backend-service).
                * 
            * * - * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for loadBalancingScheme. @@ -277,15 +278,16 @@ java.lang.String getLabelsOrDefault( * * *
            -   * Required. All backend services and forwarding rules referenced by this
            +   * Optional. All backend services and forwarding rules referenced by this
                * extension must share the same load balancing scheme. Supported values:
            -   * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to
            +   * `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions
            +   * that do not reference a backend service. For more information, refer to
                * [Backend services
                * overview](https://cloud.google.com/load-balancing/docs/backend-service).
                * 
            * * - * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = REQUIRED]; + * .google.cloud.networkservices.v1.LoadBalancingScheme load_balancing_scheme = 6 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The loadBalancingScheme. @@ -296,11 +298,12 @@ java.lang.String getLabelsOrDefault( * * *
            -   * Required. The `:authority` header in the gRPC request sent from Envoy
            -   * to the extension service.
            +   * Optional. The `:authority` header in the gRPC request sent from Envoy to
            +   * the extension service. It is required when the `service` field points to a
            +   * backend service or a wasm plugin.
                * 
            * - * string authority = 7 [(.google.api.field_behavior) = REQUIRED]; + * string authority = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The authority. */ @@ -310,11 +313,12 @@ java.lang.String getLabelsOrDefault( * * *
            -   * Required. The `:authority` header in the gRPC request sent from Envoy
            -   * to the extension service.
            +   * Optional. The `:authority` header in the gRPC request sent from Envoy to
            +   * the extension service. It is required when the `service` field points to a
            +   * backend service or a wasm plugin.
                * 
            * - * string authority = 7 [(.google.api.field_behavior) = REQUIRED]; + * string authority = 7 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for authority. */ @@ -553,12 +557,100 @@ java.lang.String getLabelsOrDefault( */ com.google.protobuf.ByteString getForwardHeadersBytes(int index); + /** + * + * + *
            +   * Optional. List of the Envoy attributes to forward to the extension server.
            +   * The attributes provided here are included as part of the
            +   * `ProcessingRequest.attributes` field (of type
            +   * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +   * names. Refer to the
            +   * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +   * for the names of attributes that can be forwarded. If omitted, no
            +   * attributes are sent. Each element is a string indicating the
            +   * attribute name.
            +   * 
            + * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the forwardAttributes. + */ + java.util.List getForwardAttributesList(); + + /** + * + * + *
            +   * Optional. List of the Envoy attributes to forward to the extension server.
            +   * The attributes provided here are included as part of the
            +   * `ProcessingRequest.attributes` field (of type
            +   * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +   * names. Refer to the
            +   * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +   * for the names of attributes that can be forwarded. If omitted, no
            +   * attributes are sent. Each element is a string indicating the
            +   * attribute name.
            +   * 
            + * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of forwardAttributes. + */ + int getForwardAttributesCount(); + + /** + * + * + *
            +   * Optional. List of the Envoy attributes to forward to the extension server.
            +   * The attributes provided here are included as part of the
            +   * `ProcessingRequest.attributes` field (of type
            +   * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +   * names. Refer to the
            +   * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +   * for the names of attributes that can be forwarded. If omitted, no
            +   * attributes are sent. Each element is a string indicating the
            +   * attribute name.
            +   * 
            + * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The forwardAttributes at the given index. + */ + java.lang.String getForwardAttributes(int index); + + /** + * + * + *
            +   * Optional. List of the Envoy attributes to forward to the extension server.
            +   * The attributes provided here are included as part of the
            +   * `ProcessingRequest.attributes` field (of type
            +   * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +   * names. Refer to the
            +   * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +   * for the names of attributes that can be forwarded. If omitted, no
            +   * attributes are sent. Each element is a string indicating the
            +   * attribute name.
            +   * 
            + * + * repeated string forward_attributes = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the forwardAttributes at the given index. + */ + com.google.protobuf.ByteString getForwardAttributesBytes(int index); + /** * * *
                * Optional. The format of communication supported by the callout extension.
            -   * If not specified, the default value `EXT_PROC_GRPC` is used.
            +   * This field is supported only for regional `AuthzExtension` resources. If
            +   * not specified, the default value `EXT_PROC_GRPC` is used. Global
            +   * `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
                * 
            * * @@ -574,7 +666,9 @@ java.lang.String getLabelsOrDefault( * *
                * Optional. The format of communication supported by the callout extension.
            -   * If not specified, the default value `EXT_PROC_GRPC` is used.
            +   * This field is supported only for regional `AuthzExtension` resources. If
            +   * not specified, the default value `EXT_PROC_GRPC` is used. Global
            +   * `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/BodySendMode.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/BodySendMode.java new file mode 100644 index 000000000000..2921e568825d --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/BodySendMode.java @@ -0,0 +1,215 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networkservices/v1/dep.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +/** + * + * + *
            + * The send mode for body processing.
            + * 
            + * + * Protobuf enum {@code google.cloud.networkservices.v1.BodySendMode} + */ +@com.google.protobuf.Generated +public enum BodySendMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +   * Default value. Do not use.
            +   * 
            + * + * BODY_SEND_MODE_UNSPECIFIED = 0; + */ + BODY_SEND_MODE_UNSPECIFIED(0), + /** + * + * + *
            +   * Calls to the extension are executed in the streamed mode. Subsequent
            +   * chunks will be sent only after the previous chunks have been processed.
            +   *
            +   * The content of the body chunks is sent one way to the extension. Extension
            +   * may send modified chunks back.
            +   *
            +   * This is the default value if the processing mode is not specified.
            +   * 
            + * + * BODY_SEND_MODE_STREAMED = 1; + */ + BODY_SEND_MODE_STREAMED(1), + /** + * + * + *
            +   * Calls are executed in the full duplex mode. Subsequent chunks will be sent
            +   * for processing without waiting for the response for the previous chunk or
            +   * for the response for `REQUEST_HEADERS` event.
            +   *
            +   * Extension can freely modify or chunk the body contents. If the extension
            +   * doesn't send the body contents back, the next extension in the chain or the
            +   * upstream will receive an empty body.
            +   * 
            + * + * BODY_SEND_MODE_FULL_DUPLEX_STREAMED = 2; + */ + BODY_SEND_MODE_FULL_DUPLEX_STREAMED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BodySendMode"); + } + + /** + * + * + *
            +   * Default value. Do not use.
            +   * 
            + * + * BODY_SEND_MODE_UNSPECIFIED = 0; + */ + public static final int BODY_SEND_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +   * Calls to the extension are executed in the streamed mode. Subsequent
            +   * chunks will be sent only after the previous chunks have been processed.
            +   *
            +   * The content of the body chunks is sent one way to the extension. Extension
            +   * may send modified chunks back.
            +   *
            +   * This is the default value if the processing mode is not specified.
            +   * 
            + * + * BODY_SEND_MODE_STREAMED = 1; + */ + public static final int BODY_SEND_MODE_STREAMED_VALUE = 1; + + /** + * + * + *
            +   * Calls are executed in the full duplex mode. Subsequent chunks will be sent
            +   * for processing without waiting for the response for the previous chunk or
            +   * for the response for `REQUEST_HEADERS` event.
            +   *
            +   * Extension can freely modify or chunk the body contents. If the extension
            +   * doesn't send the body contents back, the next extension in the chain or the
            +   * upstream will receive an empty body.
            +   * 
            + * + * BODY_SEND_MODE_FULL_DUPLEX_STREAMED = 2; + */ + public static final int BODY_SEND_MODE_FULL_DUPLEX_STREAMED_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 BodySendMode 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 BodySendMode forNumber(int value) { + switch (value) { + case 0: + return BODY_SEND_MODE_UNSPECIFIED; + case 1: + return BODY_SEND_MODE_STREAMED; + case 2: + return BODY_SEND_MODE_FULL_DUPLEX_STREAMED; + 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 BodySendMode findValueByNumber(int number) { + return BodySendMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.networkservices.v1.DepProto.getDescriptor().getEnumTypes().get(3); + } + + private static final BodySendMode[] VALUES = values(); + + public static BodySendMode 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 BodySendMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.networkservices.v1.BodySendMode) +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateAgentGatewayRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateAgentGatewayRequest.java new file mode 100644 index 000000000000..5a3ceb18fb3e --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateAgentGatewayRequest.java @@ -0,0 +1,1130 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +/** + * + * + *
            + * Request used by the CreateAgentGateway method.
            + * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.CreateAgentGatewayRequest} + */ +@com.google.protobuf.Generated +public final class CreateAgentGatewayRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.CreateAgentGatewayRequest) + CreateAgentGatewayRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateAgentGatewayRequest"); + } + + // Use CreateAgentGatewayRequest.newBuilder() to construct. + private CreateAgentGatewayRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAgentGatewayRequest() { + parent_ = ""; + agentGatewayId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest.class, + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent resource of the AgentGateway. Must be in the
            +   * format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent resource of the AgentGateway. Must be in the
            +   * format `projects/*/locations/*`.
            +   * 
            + * + * + * 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 AGENT_GATEWAY_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentGatewayId_ = ""; + + /** + * + * + *
            +   * Required. Short name of the AgentGateway resource to be created.
            +   * 
            + * + * string agent_gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The agentGatewayId. + */ + @java.lang.Override + public java.lang.String getAgentGatewayId() { + java.lang.Object ref = agentGatewayId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentGatewayId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Short name of the AgentGateway resource to be created.
            +   * 
            + * + * string agent_gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for agentGatewayId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentGatewayIdBytes() { + java.lang.Object ref = agentGatewayId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentGatewayId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_GATEWAY_FIELD_NUMBER = 3; + private com.google.cloud.networkservices.v1.AgentGateway agentGateway_; + + /** + * + * + *
            +   * Required. AgentGateway resource to be created.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the agentGateway field is set. + */ + @java.lang.Override + public boolean hasAgentGateway() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. AgentGateway resource to be created.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The agentGateway. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway getAgentGateway() { + return agentGateway_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance() + : agentGateway_; + } + + /** + * + * + *
            +   * Required. AgentGateway resource to be created.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGatewayOrBuilder getAgentGatewayOrBuilder() { + return agentGateway_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance() + : agentGateway_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentGatewayId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, agentGatewayId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAgentGateway()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentGatewayId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, agentGatewayId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAgentGateway()); + } + 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.networkservices.v1.CreateAgentGatewayRequest)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest other = + (com.google.cloud.networkservices.v1.CreateAgentGatewayRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAgentGatewayId().equals(other.getAgentGatewayId())) return false; + if (hasAgentGateway() != other.hasAgentGateway()) return false; + if (hasAgentGateway()) { + if (!getAgentGateway().equals(other.getAgentGateway())) 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) + AGENT_GATEWAY_ID_FIELD_NUMBER; + hash = (53 * hash) + getAgentGatewayId().hashCode(); + if (hasAgentGateway()) { + hash = (37 * hash) + AGENT_GATEWAY_FIELD_NUMBER; + hash = (53 * hash) + getAgentGateway().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest 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.networkservices.v1.CreateAgentGatewayRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest parseFrom( + 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.networkservices.v1.CreateAgentGatewayRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request used by the CreateAgentGateway method.
            +   * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.CreateAgentGatewayRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.CreateAgentGatewayRequest) + com.google.cloud.networkservices.v1.CreateAgentGatewayRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest.class, + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.CreateAgentGatewayRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAgentGatewayFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + agentGatewayId_ = ""; + agentGateway_ = null; + if (agentGatewayBuilder_ != null) { + agentGatewayBuilder_.dispose(); + agentGatewayBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_CreateAgentGatewayRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.CreateAgentGatewayRequest + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.CreateAgentGatewayRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.CreateAgentGatewayRequest build() { + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.CreateAgentGatewayRequest buildPartial() { + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest result = + new com.google.cloud.networkservices.v1.CreateAgentGatewayRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.CreateAgentGatewayRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agentGatewayId_ = agentGatewayId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.agentGateway_ = + agentGatewayBuilder_ == null ? agentGateway_ : agentGatewayBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.CreateAgentGatewayRequest) { + return mergeFrom((com.google.cloud.networkservices.v1.CreateAgentGatewayRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkservices.v1.CreateAgentGatewayRequest other) { + if (other + == com.google.cloud.networkservices.v1.CreateAgentGatewayRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAgentGatewayId().isEmpty()) { + agentGatewayId_ = other.agentGatewayId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAgentGateway()) { + mergeAgentGateway(other.getAgentGateway()); + } + 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: + { + agentGatewayId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAgentGatewayFieldBuilder().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 parent resource of the AgentGateway. Must be in the
            +     * format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent resource of the AgentGateway. Must be in the
            +     * format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent resource of the AgentGateway. Must be in the
            +     * format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent resource of the AgentGateway. Must be in the
            +     * format `projects/*/locations/*`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent resource of the AgentGateway. Must be in the
            +     * format `projects/*/locations/*`.
            +     * 
            + * + * + * 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 agentGatewayId_ = ""; + + /** + * + * + *
            +     * Required. Short name of the AgentGateway resource to be created.
            +     * 
            + * + * string agent_gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The agentGatewayId. + */ + public java.lang.String getAgentGatewayId() { + java.lang.Object ref = agentGatewayId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentGatewayId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Short name of the AgentGateway resource to be created.
            +     * 
            + * + * string agent_gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for agentGatewayId. + */ + public com.google.protobuf.ByteString getAgentGatewayIdBytes() { + java.lang.Object ref = agentGatewayId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentGatewayId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Short name of the AgentGateway resource to be created.
            +     * 
            + * + * string agent_gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The agentGatewayId to set. + * @return This builder for chaining. + */ + public Builder setAgentGatewayId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentGatewayId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Short name of the AgentGateway resource to be created.
            +     * 
            + * + * string agent_gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAgentGatewayId() { + agentGatewayId_ = getDefaultInstance().getAgentGatewayId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Short name of the AgentGateway resource to be created.
            +     * 
            + * + * string agent_gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for agentGatewayId to set. + * @return This builder for chaining. + */ + public Builder setAgentGatewayIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentGatewayId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.networkservices.v1.AgentGateway agentGateway_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway, + com.google.cloud.networkservices.v1.AgentGateway.Builder, + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder> + agentGatewayBuilder_; + + /** + * + * + *
            +     * Required. AgentGateway resource to be created.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the agentGateway field is set. + */ + public boolean hasAgentGateway() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Required. AgentGateway resource to be created.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The agentGateway. + */ + public com.google.cloud.networkservices.v1.AgentGateway getAgentGateway() { + if (agentGatewayBuilder_ == null) { + return agentGateway_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance() + : agentGateway_; + } else { + return agentGatewayBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. AgentGateway resource to be created.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAgentGateway(com.google.cloud.networkservices.v1.AgentGateway value) { + if (agentGatewayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentGateway_ = value; + } else { + agentGatewayBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. AgentGateway resource to be created.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAgentGateway( + com.google.cloud.networkservices.v1.AgentGateway.Builder builderForValue) { + if (agentGatewayBuilder_ == null) { + agentGateway_ = builderForValue.build(); + } else { + agentGatewayBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. AgentGateway resource to be created.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAgentGateway(com.google.cloud.networkservices.v1.AgentGateway value) { + if (agentGatewayBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && agentGateway_ != null + && agentGateway_ + != com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance()) { + getAgentGatewayBuilder().mergeFrom(value); + } else { + agentGateway_ = value; + } + } else { + agentGatewayBuilder_.mergeFrom(value); + } + if (agentGateway_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. AgentGateway resource to be created.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAgentGateway() { + bitField0_ = (bitField0_ & ~0x00000004); + agentGateway_ = null; + if (agentGatewayBuilder_ != null) { + agentGatewayBuilder_.dispose(); + agentGatewayBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. AgentGateway resource to be created.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.Builder getAgentGatewayBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAgentGatewayFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. AgentGateway resource to be created.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkservices.v1.AgentGatewayOrBuilder getAgentGatewayOrBuilder() { + if (agentGatewayBuilder_ != null) { + return agentGatewayBuilder_.getMessageOrBuilder(); + } else { + return agentGateway_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance() + : agentGateway_; + } + } + + /** + * + * + *
            +     * Required. AgentGateway resource to be created.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway, + com.google.cloud.networkservices.v1.AgentGateway.Builder, + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder> + internalGetAgentGatewayFieldBuilder() { + if (agentGatewayBuilder_ == null) { + agentGatewayBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway, + com.google.cloud.networkservices.v1.AgentGateway.Builder, + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder>( + getAgentGateway(), getParentForChildren(), isClean()); + agentGateway_ = null; + } + return agentGatewayBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.CreateAgentGatewayRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.CreateAgentGatewayRequest) + private static final com.google.cloud.networkservices.v1.CreateAgentGatewayRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.CreateAgentGatewayRequest(); + } + + public static com.google.cloud.networkservices.v1.CreateAgentGatewayRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAgentGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.networkservices.v1.CreateAgentGatewayRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateAgentGatewayRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateAgentGatewayRequestOrBuilder.java new file mode 100644 index 000000000000..ec01574b1645 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateAgentGatewayRequestOrBuilder.java @@ -0,0 +1,129 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +@com.google.protobuf.Generated +public interface CreateAgentGatewayRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.CreateAgentGatewayRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent resource of the AgentGateway. Must be in the
            +   * format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent resource of the AgentGateway. Must be in the
            +   * format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. Short name of the AgentGateway resource to be created.
            +   * 
            + * + * string agent_gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The agentGatewayId. + */ + java.lang.String getAgentGatewayId(); + + /** + * + * + *
            +   * Required. Short name of the AgentGateway resource to be created.
            +   * 
            + * + * string agent_gateway_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for agentGatewayId. + */ + com.google.protobuf.ByteString getAgentGatewayIdBytes(); + + /** + * + * + *
            +   * Required. AgentGateway resource to be created.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the agentGateway field is set. + */ + boolean hasAgentGateway(); + + /** + * + * + *
            +   * Required. AgentGateway resource to be created.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The agentGateway. + */ + com.google.cloud.networkservices.v1.AgentGateway getAgentGateway(); + + /** + * + * + *
            +   * Required. AgentGateway resource to be created.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder getAgentGatewayOrBuilder(); +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateEndpointPolicyRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateEndpointPolicyRequest.java index 31866f62b8aa..31a13b3604c7 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateEndpointPolicyRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateEndpointPolicyRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. The parent resource of the EndpointPolicy. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * @@ -109,7 +109,7 @@ public java.lang.String getParent() { * *
                * Required. The parent resource of the EndpointPolicy. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * @@ -636,7 +636,7 @@ public Builder mergeFrom( * *
                  * Required. The parent resource of the EndpointPolicy. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -662,7 +662,7 @@ public java.lang.String getParent() { * *
                  * Required. The parent resource of the EndpointPolicy. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -688,7 +688,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                  * Required. The parent resource of the EndpointPolicy. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -713,7 +713,7 @@ public Builder setParent(java.lang.String value) { * *
                  * Required. The parent resource of the EndpointPolicy. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -734,7 +734,7 @@ public Builder clearParent() { * *
                  * Required. The parent resource of the EndpointPolicy. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateEndpointPolicyRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateEndpointPolicyRequestOrBuilder.java index c31930f424ac..8395f98e0f2c 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateEndpointPolicyRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateEndpointPolicyRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface CreateEndpointPolicyRequestOrBuilder * *
                * Required. The parent resource of the EndpointPolicy. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface CreateEndpointPolicyRequestOrBuilder * *
                * Required. The parent resource of the EndpointPolicy. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateGrpcRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateGrpcRouteRequest.java index a41d42ccb494..ced95f41e54a 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateGrpcRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateGrpcRouteRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. The parent resource of the GrpcRoute. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * @@ -109,7 +109,7 @@ public java.lang.String getParent() { * *
                * Required. The parent resource of the GrpcRoute. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * @@ -629,7 +629,7 @@ public Builder mergeFrom( * *
                  * Required. The parent resource of the GrpcRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -655,7 +655,7 @@ public java.lang.String getParent() { * *
                  * Required. The parent resource of the GrpcRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -681,7 +681,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                  * Required. The parent resource of the GrpcRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -706,7 +706,7 @@ public Builder setParent(java.lang.String value) { * *
                  * Required. The parent resource of the GrpcRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -727,7 +727,7 @@ public Builder clearParent() { * *
                  * Required. The parent resource of the GrpcRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateGrpcRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateGrpcRouteRequestOrBuilder.java index 31a68a34d41f..0118d7a31eff 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateGrpcRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateGrpcRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface CreateGrpcRouteRequestOrBuilder * *
                * Required. The parent resource of the GrpcRoute. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface CreateGrpcRouteRequestOrBuilder * *
                * Required. The parent resource of the GrpcRoute. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateHttpRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateHttpRouteRequest.java index 3f0187fc1ba2..02b8a27e019d 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateHttpRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateHttpRouteRequest.java @@ -54,6 +54,7 @@ private CreateHttpRouteRequest(com.google.protobuf.GeneratedMessage.Builder b private CreateHttpRouteRequest() { parent_ = ""; httpRouteId_ = ""; + requestId_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -82,7 +83,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. The parent resource of the HttpRoute. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * @@ -109,7 +110,7 @@ public java.lang.String getParent() { * *
                * Required. The parent resource of the HttpRoute. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * @@ -243,6 +244,63 @@ public com.google.cloud.networkservices.v1.HttpRouteOrBuilder getHttpRouteOrBuil : httpRoute_; } + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
            +   * Optional. Idempotent request UUID.
            +   * 
            + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Idempotent request UUID.
            +   * 
            + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -266,6 +324,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getHttpRoute()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } getUnknownFields().writeTo(output); } @@ -284,6 +345,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHttpRoute()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -306,6 +370,7 @@ public boolean equals(final java.lang.Object obj) { if (hasHttpRoute()) { if (!getHttpRoute().equals(other.getHttpRoute())) return false; } + if (!getRequestId().equals(other.getRequestId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -325,6 +390,8 @@ public int hashCode() { hash = (37 * hash) + HTTP_ROUTE_FIELD_NUMBER; hash = (53 * hash) + getHttpRoute().hashCode(); } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -482,6 +549,7 @@ public Builder clear() { httpRouteBuilder_.dispose(); httpRouteBuilder_ = null; } + requestId_ = ""; return this; } @@ -529,6 +597,9 @@ private void buildPartial0(com.google.cloud.networkservices.v1.CreateHttpRouteRe result.httpRoute_ = httpRouteBuilder_ == null ? httpRoute_ : httpRouteBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } result.bitField0_ |= to_bitField0_; } @@ -558,6 +629,11 @@ public Builder mergeFrom(com.google.cloud.networkservices.v1.CreateHttpRouteRequ if (other.hasHttpRoute()) { mergeHttpRoute(other.getHttpRoute()); } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -603,6 +679,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -629,7 +711,7 @@ public Builder mergeFrom( * *
                  * Required. The parent resource of the HttpRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -655,7 +737,7 @@ public java.lang.String getParent() { * *
                  * Required. The parent resource of the HttpRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -681,7 +763,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                  * Required. The parent resource of the HttpRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -706,7 +788,7 @@ public Builder setParent(java.lang.String value) { * *
                  * Required. The parent resource of the HttpRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -727,7 +809,7 @@ public Builder clearParent() { * *
                  * Required. The parent resource of the HttpRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -1072,6 +1154,127 @@ public com.google.cloud.networkservices.v1.HttpRouteOrBuilder getHttpRouteOrBuil return httpRouteBuilder_; } + private java.lang.Object requestId_ = ""; + + /** + * + * + *
            +     * Optional. Idempotent request UUID.
            +     * 
            + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Idempotent request UUID.
            +     * 
            + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Idempotent request UUID.
            +     * 
            + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Idempotent request UUID.
            +     * 
            + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Idempotent request UUID.
            +     * 
            + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.CreateHttpRouteRequest) } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateHttpRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateHttpRouteRequestOrBuilder.java index c9da7474f7f4..1dd2b8d3a1e0 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateHttpRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateHttpRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface CreateHttpRouteRequestOrBuilder * *
                * Required. The parent resource of the HttpRoute. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface CreateHttpRouteRequestOrBuilder * *
                * Required. The parent resource of the HttpRoute. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * @@ -126,4 +126,34 @@ public interface CreateHttpRouteRequestOrBuilder * */ com.google.cloud.networkservices.v1.HttpRouteOrBuilder getHttpRouteOrBuilder(); + + /** + * + * + *
            +   * Optional. Idempotent request UUID.
            +   * 
            + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
            +   * Optional. Idempotent request UUID.
            +   * 
            + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateMeshRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateMeshRequest.java index bbf3af16f126..dd55978913d0 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateMeshRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateMeshRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. The parent resource of the Mesh. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * @@ -109,7 +109,7 @@ public java.lang.String getParent() { * *
                * Required. The parent resource of the Mesh. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * @@ -621,7 +621,7 @@ public Builder mergeFrom( * *
                  * Required. The parent resource of the Mesh. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -647,7 +647,7 @@ public java.lang.String getParent() { * *
                  * Required. The parent resource of the Mesh. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -673,7 +673,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                  * Required. The parent resource of the Mesh. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -698,7 +698,7 @@ public Builder setParent(java.lang.String value) { * *
                  * Required. The parent resource of the Mesh. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -719,7 +719,7 @@ public Builder clearParent() { * *
                  * Required. The parent resource of the Mesh. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateMeshRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateMeshRequestOrBuilder.java index 5db2c6c13be9..7c621163a795 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateMeshRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateMeshRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface CreateMeshRequestOrBuilder * *
                * Required. The parent resource of the Mesh. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface CreateMeshRequestOrBuilder * *
                * Required. The parent resource of the Mesh. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTcpRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTcpRouteRequest.java index b2dedbdaf025..472ee833cb36 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTcpRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTcpRouteRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. The parent resource of the TcpRoute. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * @@ -109,7 +109,7 @@ public java.lang.String getParent() { * *
                * Required. The parent resource of the TcpRoute. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * @@ -629,7 +629,7 @@ public Builder mergeFrom( * *
                  * Required. The parent resource of the TcpRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -655,7 +655,7 @@ public java.lang.String getParent() { * *
                  * Required. The parent resource of the TcpRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -681,7 +681,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                  * Required. The parent resource of the TcpRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -706,7 +706,7 @@ public Builder setParent(java.lang.String value) { * *
                  * Required. The parent resource of the TcpRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -727,7 +727,7 @@ public Builder clearParent() { * *
                  * Required. The parent resource of the TcpRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTcpRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTcpRouteRequestOrBuilder.java index cb210410c1c7..431d04b8a464 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTcpRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTcpRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface CreateTcpRouteRequestOrBuilder * *
                * Required. The parent resource of the TcpRoute. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface CreateTcpRouteRequestOrBuilder * *
                * Required. The parent resource of the TcpRoute. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTlsRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTlsRouteRequest.java index 8a42ab622c00..d8a56887cff6 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTlsRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTlsRouteRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. The parent resource of the TlsRoute. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * @@ -109,7 +109,7 @@ public java.lang.String getParent() { * *
                * Required. The parent resource of the TlsRoute. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * @@ -629,7 +629,7 @@ public Builder mergeFrom( * *
                  * Required. The parent resource of the TlsRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -655,7 +655,7 @@ public java.lang.String getParent() { * *
                  * Required. The parent resource of the TlsRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -681,7 +681,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                  * Required. The parent resource of the TlsRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -706,7 +706,7 @@ public Builder setParent(java.lang.String value) { * *
                  * Required. The parent resource of the TlsRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * @@ -727,7 +727,7 @@ public Builder clearParent() { * *
                  * Required. The parent resource of the TlsRoute. Must be in the
            -     * format `projects/*/locations/global`.
            +     * format `projects/*/locations/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTlsRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTlsRouteRequestOrBuilder.java index d69e72f80d66..32121fbf389e 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTlsRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/CreateTlsRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface CreateTlsRouteRequestOrBuilder * *
                * Required. The parent resource of the TlsRoute. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface CreateTlsRouteRequestOrBuilder * *
                * Required. The parent resource of the TlsRoute. Must be in the
            -   * format `projects/*/locations/global`.
            +   * format `projects/*/locations/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteAgentGatewayRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteAgentGatewayRequest.java new file mode 100644 index 000000000000..174cc37ac3f7 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteAgentGatewayRequest.java @@ -0,0 +1,811 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +/** + * + * + *
            + * Request used by the DeleteAgentGateway method.
            + * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.DeleteAgentGatewayRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAgentGatewayRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.DeleteAgentGatewayRequest) + DeleteAgentGatewayRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteAgentGatewayRequest"); + } + + // Use DeleteAgentGatewayRequest.newBuilder() to construct. + private DeleteAgentGatewayRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAgentGatewayRequest() { + name_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest.class, + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. A name of the AgentGateway to delete. Must be in the format
            +   * `projects/*/locations/*/agentGateways/*`.
            +   * 
            + * + * + * 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. A name of the AgentGateway to delete. Must be in the format
            +   * `projects/*/locations/*/agentGateways/*`.
            +   * 
            + * + * + * 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 ETAG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
            +   * Optional. The etag of the AgentGateway to delete.
            +   * 
            + * + * string etag = 2 [(.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. The etag of the AgentGateway to delete.
            +   * 
            + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, etag_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, etag_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest other = + (com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest 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.networkservices.v1.DeleteAgentGatewayRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest parseFrom( + 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.networkservices.v1.DeleteAgentGatewayRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request used by the DeleteAgentGateway method.
            +   * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.DeleteAgentGatewayRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.DeleteAgentGatewayRequest) + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest.class, + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_DeleteAgentGatewayRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest build() { + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest buildPartial() { + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest result = + new com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest) { + return mergeFrom((com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest other) { + if (other + == com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + 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: + { + etag_ = 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. A name of the AgentGateway to delete. Must be in the format
            +     * `projects/*/locations/*/agentGateways/*`.
            +     * 
            + * + * + * 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. A name of the AgentGateway to delete. Must be in the format
            +     * `projects/*/locations/*/agentGateways/*`.
            +     * 
            + * + * + * 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. A name of the AgentGateway to delete. Must be in the format
            +     * `projects/*/locations/*/agentGateways/*`.
            +     * 
            + * + * + * 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. A name of the AgentGateway to delete. Must be in the format
            +     * `projects/*/locations/*/agentGateways/*`.
            +     * 
            + * + * + * 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. A name of the AgentGateway to delete. Must be in the format
            +     * `projects/*/locations/*/agentGateways/*`.
            +     * 
            + * + * + * 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 etag_ = ""; + + /** + * + * + *
            +     * Optional. The etag of the AgentGateway to delete.
            +     * 
            + * + * string etag = 2 [(.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. The etag of the AgentGateway to delete.
            +     * 
            + * + * string etag = 2 [(.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. The etag of the AgentGateway to delete.
            +     * 
            + * + * string etag = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The etag of the AgentGateway to delete.
            +     * 
            + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The etag of the AgentGateway to delete.
            +     * 
            + * + * string etag = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.DeleteAgentGatewayRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.DeleteAgentGatewayRequest) + private static final com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest(); + } + + public static com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAgentGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.networkservices.v1.DeleteAgentGatewayRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteAgentGatewayRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteAgentGatewayRequestOrBuilder.java new file mode 100644 index 000000000000..5119d4e12586 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteAgentGatewayRequestOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +@com.google.protobuf.Generated +public interface DeleteAgentGatewayRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.DeleteAgentGatewayRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. A name of the AgentGateway to delete. Must be in the format
            +   * `projects/*/locations/*/agentGateways/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. A name of the AgentGateway to delete. Must be in the format
            +   * `projects/*/locations/*/agentGateways/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. The etag of the AgentGateway to delete.
            +   * 
            + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
            +   * Optional. The etag of the AgentGateway to delete.
            +   * 
            + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteEndpointPolicyRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteEndpointPolicyRequest.java index e2673538464a..bacf1c833c0c 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteEndpointPolicyRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteEndpointPolicyRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. A name of the EndpointPolicy to delete. Must be in the format
            -   * `projects/*/locations/global/endpointPolicies/*`.
            +   * `projects/*/locations/*/endpointPolicies/*`.
                * 
            * * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
                * Required. A name of the EndpointPolicy to delete. Must be in the format
            -   * `projects/*/locations/global/endpointPolicies/*`.
            +   * `projects/*/locations/*/endpointPolicies/*`.
                * 
            * * @@ -451,7 +451,7 @@ public Builder mergeFrom( * *
                  * Required. A name of the EndpointPolicy to delete. Must be in the format
            -     * `projects/*/locations/global/endpointPolicies/*`.
            +     * `projects/*/locations/*/endpointPolicies/*`.
                  * 
            * * @@ -477,7 +477,7 @@ public java.lang.String getName() { * *
                  * Required. A name of the EndpointPolicy to delete. Must be in the format
            -     * `projects/*/locations/global/endpointPolicies/*`.
            +     * `projects/*/locations/*/endpointPolicies/*`.
                  * 
            * * @@ -503,7 +503,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                  * Required. A name of the EndpointPolicy to delete. Must be in the format
            -     * `projects/*/locations/global/endpointPolicies/*`.
            +     * `projects/*/locations/*/endpointPolicies/*`.
                  * 
            * * @@ -528,7 +528,7 @@ public Builder setName(java.lang.String value) { * *
                  * Required. A name of the EndpointPolicy to delete. Must be in the format
            -     * `projects/*/locations/global/endpointPolicies/*`.
            +     * `projects/*/locations/*/endpointPolicies/*`.
                  * 
            * * @@ -549,7 +549,7 @@ public Builder clearName() { * *
                  * Required. A name of the EndpointPolicy to delete. Must be in the format
            -     * `projects/*/locations/global/endpointPolicies/*`.
            +     * `projects/*/locations/*/endpointPolicies/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteEndpointPolicyRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteEndpointPolicyRequestOrBuilder.java index 800d16723ea3..d4ce3616e417 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteEndpointPolicyRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteEndpointPolicyRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface DeleteEndpointPolicyRequestOrBuilder * *
                * Required. A name of the EndpointPolicy to delete. Must be in the format
            -   * `projects/*/locations/global/endpointPolicies/*`.
            +   * `projects/*/locations/*/endpointPolicies/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface DeleteEndpointPolicyRequestOrBuilder * *
                * Required. A name of the EndpointPolicy to delete. Must be in the format
            -   * `projects/*/locations/global/endpointPolicies/*`.
            +   * `projects/*/locations/*/endpointPolicies/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteGrpcRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteGrpcRouteRequest.java index ef0f1ab086bb..112ce041847d 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteGrpcRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteGrpcRouteRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. A name of the GrpcRoute to delete. Must be in the format
            -   * `projects/*/locations/global/grpcRoutes/*`.
            +   * `projects/*/locations/*/grpcRoutes/*`.
                * 
            * * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
                * Required. A name of the GrpcRoute to delete. Must be in the format
            -   * `projects/*/locations/global/grpcRoutes/*`.
            +   * `projects/*/locations/*/grpcRoutes/*`.
                * 
            * * @@ -447,7 +447,7 @@ public Builder mergeFrom( * *
                  * Required. A name of the GrpcRoute to delete. Must be in the format
            -     * `projects/*/locations/global/grpcRoutes/*`.
            +     * `projects/*/locations/*/grpcRoutes/*`.
                  * 
            * * @@ -473,7 +473,7 @@ public java.lang.String getName() { * *
                  * Required. A name of the GrpcRoute to delete. Must be in the format
            -     * `projects/*/locations/global/grpcRoutes/*`.
            +     * `projects/*/locations/*/grpcRoutes/*`.
                  * 
            * * @@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                  * Required. A name of the GrpcRoute to delete. Must be in the format
            -     * `projects/*/locations/global/grpcRoutes/*`.
            +     * `projects/*/locations/*/grpcRoutes/*`.
                  * 
            * * @@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) { * *
                  * Required. A name of the GrpcRoute to delete. Must be in the format
            -     * `projects/*/locations/global/grpcRoutes/*`.
            +     * `projects/*/locations/*/grpcRoutes/*`.
                  * 
            * * @@ -545,7 +545,7 @@ public Builder clearName() { * *
                  * Required. A name of the GrpcRoute to delete. Must be in the format
            -     * `projects/*/locations/global/grpcRoutes/*`.
            +     * `projects/*/locations/*/grpcRoutes/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteGrpcRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteGrpcRouteRequestOrBuilder.java index 4eba3d7f93fd..889eb0d5d841 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteGrpcRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteGrpcRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface DeleteGrpcRouteRequestOrBuilder * *
                * Required. A name of the GrpcRoute to delete. Must be in the format
            -   * `projects/*/locations/global/grpcRoutes/*`.
            +   * `projects/*/locations/*/grpcRoutes/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface DeleteGrpcRouteRequestOrBuilder * *
                * Required. A name of the GrpcRoute to delete. Must be in the format
            -   * `projects/*/locations/global/grpcRoutes/*`.
            +   * `projects/*/locations/*/grpcRoutes/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteHttpRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteHttpRouteRequest.java index d758d89c0a55..859d313b2e4f 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteHttpRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteHttpRouteRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. A name of the HttpRoute to delete. Must be in the format
            -   * `projects/*/locations/global/httpRoutes/*`.
            +   * `projects/*/locations/*/httpRoutes/*`.
                * 
            * * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
                * Required. A name of the HttpRoute to delete. Must be in the format
            -   * `projects/*/locations/global/httpRoutes/*`.
            +   * `projects/*/locations/*/httpRoutes/*`.
                * 
            * * @@ -447,7 +447,7 @@ public Builder mergeFrom( * *
                  * Required. A name of the HttpRoute to delete. Must be in the format
            -     * `projects/*/locations/global/httpRoutes/*`.
            +     * `projects/*/locations/*/httpRoutes/*`.
                  * 
            * * @@ -473,7 +473,7 @@ public java.lang.String getName() { * *
                  * Required. A name of the HttpRoute to delete. Must be in the format
            -     * `projects/*/locations/global/httpRoutes/*`.
            +     * `projects/*/locations/*/httpRoutes/*`.
                  * 
            * * @@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                  * Required. A name of the HttpRoute to delete. Must be in the format
            -     * `projects/*/locations/global/httpRoutes/*`.
            +     * `projects/*/locations/*/httpRoutes/*`.
                  * 
            * * @@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) { * *
                  * Required. A name of the HttpRoute to delete. Must be in the format
            -     * `projects/*/locations/global/httpRoutes/*`.
            +     * `projects/*/locations/*/httpRoutes/*`.
                  * 
            * * @@ -545,7 +545,7 @@ public Builder clearName() { * *
                  * Required. A name of the HttpRoute to delete. Must be in the format
            -     * `projects/*/locations/global/httpRoutes/*`.
            +     * `projects/*/locations/*/httpRoutes/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteHttpRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteHttpRouteRequestOrBuilder.java index 86eb5532a7e2..4d88ffc2f404 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteHttpRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteHttpRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface DeleteHttpRouteRequestOrBuilder * *
                * Required. A name of the HttpRoute to delete. Must be in the format
            -   * `projects/*/locations/global/httpRoutes/*`.
            +   * `projects/*/locations/*/httpRoutes/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface DeleteHttpRouteRequestOrBuilder * *
                * Required. A name of the HttpRoute to delete. Must be in the format
            -   * `projects/*/locations/global/httpRoutes/*`.
            +   * `projects/*/locations/*/httpRoutes/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteMeshRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteMeshRequest.java index 817bcf094bcf..e5a8607cd04f 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteMeshRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteMeshRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. A name of the Mesh to delete. Must be in the format
            -   * `projects/*/locations/global/meshes/*`.
            +   * `projects/*/locations/*/meshes/*`.
                * 
            * * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
                * Required. A name of the Mesh to delete. Must be in the format
            -   * `projects/*/locations/global/meshes/*`.
            +   * `projects/*/locations/*/meshes/*`.
                * 
            * * @@ -447,7 +447,7 @@ public Builder mergeFrom( * *
                  * Required. A name of the Mesh to delete. Must be in the format
            -     * `projects/*/locations/global/meshes/*`.
            +     * `projects/*/locations/*/meshes/*`.
                  * 
            * * @@ -473,7 +473,7 @@ public java.lang.String getName() { * *
                  * Required. A name of the Mesh to delete. Must be in the format
            -     * `projects/*/locations/global/meshes/*`.
            +     * `projects/*/locations/*/meshes/*`.
                  * 
            * * @@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                  * Required. A name of the Mesh to delete. Must be in the format
            -     * `projects/*/locations/global/meshes/*`.
            +     * `projects/*/locations/*/meshes/*`.
                  * 
            * * @@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) { * *
                  * Required. A name of the Mesh to delete. Must be in the format
            -     * `projects/*/locations/global/meshes/*`.
            +     * `projects/*/locations/*/meshes/*`.
                  * 
            * * @@ -545,7 +545,7 @@ public Builder clearName() { * *
                  * Required. A name of the Mesh to delete. Must be in the format
            -     * `projects/*/locations/global/meshes/*`.
            +     * `projects/*/locations/*/meshes/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteMeshRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteMeshRequestOrBuilder.java index c5e09a3d178d..d23d45a8b796 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteMeshRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteMeshRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface DeleteMeshRequestOrBuilder * *
                * Required. A name of the Mesh to delete. Must be in the format
            -   * `projects/*/locations/global/meshes/*`.
            +   * `projects/*/locations/*/meshes/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface DeleteMeshRequestOrBuilder * *
                * Required. A name of the Mesh to delete. Must be in the format
            -   * `projects/*/locations/global/meshes/*`.
            +   * `projects/*/locations/*/meshes/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTcpRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTcpRouteRequest.java index 1f3aa4e2ffe7..c33787b891d0 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTcpRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTcpRouteRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. A name of the TcpRoute to delete. Must be in the format
            -   * `projects/*/locations/global/tcpRoutes/*`.
            +   * `projects/*/locations/*/tcpRoutes/*`.
                * 
            * * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
                * Required. A name of the TcpRoute to delete. Must be in the format
            -   * `projects/*/locations/global/tcpRoutes/*`.
            +   * `projects/*/locations/*/tcpRoutes/*`.
                * 
            * * @@ -447,7 +447,7 @@ public Builder mergeFrom( * *
                  * Required. A name of the TcpRoute to delete. Must be in the format
            -     * `projects/*/locations/global/tcpRoutes/*`.
            +     * `projects/*/locations/*/tcpRoutes/*`.
                  * 
            * * @@ -473,7 +473,7 @@ public java.lang.String getName() { * *
                  * Required. A name of the TcpRoute to delete. Must be in the format
            -     * `projects/*/locations/global/tcpRoutes/*`.
            +     * `projects/*/locations/*/tcpRoutes/*`.
                  * 
            * * @@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                  * Required. A name of the TcpRoute to delete. Must be in the format
            -     * `projects/*/locations/global/tcpRoutes/*`.
            +     * `projects/*/locations/*/tcpRoutes/*`.
                  * 
            * * @@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) { * *
                  * Required. A name of the TcpRoute to delete. Must be in the format
            -     * `projects/*/locations/global/tcpRoutes/*`.
            +     * `projects/*/locations/*/tcpRoutes/*`.
                  * 
            * * @@ -545,7 +545,7 @@ public Builder clearName() { * *
                  * Required. A name of the TcpRoute to delete. Must be in the format
            -     * `projects/*/locations/global/tcpRoutes/*`.
            +     * `projects/*/locations/*/tcpRoutes/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTcpRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTcpRouteRequestOrBuilder.java index 523432825425..876323c31342 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTcpRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTcpRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface DeleteTcpRouteRequestOrBuilder * *
                * Required. A name of the TcpRoute to delete. Must be in the format
            -   * `projects/*/locations/global/tcpRoutes/*`.
            +   * `projects/*/locations/*/tcpRoutes/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface DeleteTcpRouteRequestOrBuilder * *
                * Required. A name of the TcpRoute to delete. Must be in the format
            -   * `projects/*/locations/global/tcpRoutes/*`.
            +   * `projects/*/locations/*/tcpRoutes/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTlsRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTlsRouteRequest.java index 03fbe2bdedc2..756a8f960938 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTlsRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTlsRouteRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. A name of the TlsRoute to delete. Must be in the format
            -   * `projects/*/locations/global/tlsRoutes/*`.
            +   * `projects/*/locations/*/tlsRoutes/*`.
                * 
            * * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
                * Required. A name of the TlsRoute to delete. Must be in the format
            -   * `projects/*/locations/global/tlsRoutes/*`.
            +   * `projects/*/locations/*/tlsRoutes/*`.
                * 
            * * @@ -447,7 +447,7 @@ public Builder mergeFrom( * *
                  * Required. A name of the TlsRoute to delete. Must be in the format
            -     * `projects/*/locations/global/tlsRoutes/*`.
            +     * `projects/*/locations/*/tlsRoutes/*`.
                  * 
            * * @@ -473,7 +473,7 @@ public java.lang.String getName() { * *
                  * Required. A name of the TlsRoute to delete. Must be in the format
            -     * `projects/*/locations/global/tlsRoutes/*`.
            +     * `projects/*/locations/*/tlsRoutes/*`.
                  * 
            * * @@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                  * Required. A name of the TlsRoute to delete. Must be in the format
            -     * `projects/*/locations/global/tlsRoutes/*`.
            +     * `projects/*/locations/*/tlsRoutes/*`.
                  * 
            * * @@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) { * *
                  * Required. A name of the TlsRoute to delete. Must be in the format
            -     * `projects/*/locations/global/tlsRoutes/*`.
            +     * `projects/*/locations/*/tlsRoutes/*`.
                  * 
            * * @@ -545,7 +545,7 @@ public Builder clearName() { * *
                  * Required. A name of the TlsRoute to delete. Must be in the format
            -     * `projects/*/locations/global/tlsRoutes/*`.
            +     * `projects/*/locations/*/tlsRoutes/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTlsRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTlsRouteRequestOrBuilder.java index 40f3b90ea781..72efbb4328fe 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTlsRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DeleteTlsRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface DeleteTlsRouteRequestOrBuilder * *
                * Required. A name of the TlsRoute to delete. Must be in the format
            -   * `projects/*/locations/global/tlsRoutes/*`.
            +   * `projects/*/locations/*/tlsRoutes/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface DeleteTlsRouteRequestOrBuilder * *
                * Required. A name of the TlsRoute to delete. Must be in the format
            -   * `projects/*/locations/global/tlsRoutes/*`.
            +   * `projects/*/locations/*/tlsRoutes/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DepProto.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DepProto.java index 2d17f57dc3ce..9b806b7cac5e 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DepProto.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/DepProto.java @@ -199,7 +199,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "unning/operations.proto\032\036google/protobuf" + "/duration.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\034" - + "google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\265\004\n" + + "google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\240\006\n" + "\016ExtensionChain\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022\\\n" + "\017match_condition\030\002" @@ -207,69 +207,74 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "extensions\030\003" + " \003(\01329.google.cloud.networkservices.v1.ExtensionChain.ExtensionB\003\340A\002\032-\n" + "\016MatchCondition\022\033\n" - + "\016cel_expression\030\001 \001(\tB\003\340A\002\032\256\002\n" + + "\016cel_expression\030\001 \001(\tB\003\340A\002\032\231\004\n" + "\tExtension\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\022\026\n" + + "\004name\030\001 \001(\tB\003\340A\001\022\026\n" + "\tauthority\030\002 \001(\tB\003\340A\001\022\024\n" + "\007service\030\003 \001(\tB\003\340A\002\022I\n" + "\020supported_events\030\004 \003(\0162*.google.c" + "loud.networkservices.v1.EventTypeB\003\340A\001\022/\n" + "\007timeout\030\005 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\026\n" + "\tfail_open\030\006 \001(\010B\003\340A\001\022\034\n" - + "\017forward_headers\030\007 \003(\tB\003\340A\001\022.\n" - + "\010metadata\030\t \001(\0132\027.google.protobuf.StructB\003\340A\001\"\345\005\n" + + "\017forward_headers\030\007 \003(\tB\003\340A\001\022\037\n" + + "\022forward_attributes\030\010 \003(\tB\003\340A\001\022.\n" + + "\010metadata\030\t \001(\0132\027.google.protobuf.StructB\003\340A\001\022R\n" + + "\026request_body_send_mode\030\016" + + " \001(\0162-.google.cloud.networkservices.v1.BodySendModeB\003\340A\001\022S\n" + + "\027response_body_send_mode\030\017" + + " \001(\0162-.google.cloud.networkservices.v1.BodySendModeB\003\340A\001\022\037\n" + + "\022observability_mode\030\020 \001(\010B\003\340A\001\"\345\005\n" + "\022LbTrafficExtension\022\024\n" + "\004name\030\001 \001(\tB\006\340A\002\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030\n" + "\013description\030\t \001(\tB\003\340A\001\022T\n" - + "\006labels\030\004 \003(\0132?.google.cloud." - + "networkservices.v1.LbTrafficExtension.LabelsEntryB\003\340A\001\022\035\n" + + "\006labels\030\004 \003(\0132?.google.cloud.netwo" + + "rkservices.v1.LbTrafficExtension.LabelsEntryB\003\340A\001\022\035\n" + "\020forwarding_rules\030\005 \003(\tB\003\340A\001\022N\n" - + "\020extension_chains\030\007 \003(\0132/.google" - + ".cloud.networkservices.v1.ExtensionChainB\003\340A\002\022X\n" - + "\025load_balancing_scheme\030\010 \001(\01624.g" - + "oogle.cloud.networkservices.v1.LoadBalancingSchemeB\003\340A\002\022.\n" + + "\020extension_chains\030\007 \003(\0132/.google.clou" + + "d.networkservices.v1.ExtensionChainB\003\340A\002\022X\n" + + "\025load_balancing_scheme\030\010 \001(\01624.google" + + ".cloud.networkservices.v1.LoadBalancingSchemeB\003\340A\002\022.\n" + "\010metadata\030\n" + " \001(\0132\027.google.protobuf.StructB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\264\001\352A\260\001\n" - + "1networkservices.googleapis.com/LbTrafficExtension\022Rprojects/{project}/locations/{" - + "location}/lbTrafficExtensions/{lb_traffi" - + "c_extension}*\023lbTrafficExtensions2\022lbTrafficExtension\"\310\001\n" + + "1networkservices.googleapis.com/LbTrafficExtens" + + "ion\022Rprojects/{project}/locations/{location}/lbTrafficExtensions/{lb_traffic_ext" + + "ension}*\023lbTrafficExtensions2\022lbTrafficExtension\"\310\001\n" + "\036ListLbTrafficExtensionsRequest\022I\n" - + "\006parent\030\001 \001(\tB9\340A\002\372A3\0221networ" - + "kservices.googleapis.com/LbTrafficExtension\022\026\n" + + "\006parent\030\001 \001(\tB9\340A\002\372A3\0221networkserv" + + "ices.googleapis.com/LbTrafficExtension\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\243\001\n" + "\037ListLbTrafficExtensionsResponse\022R\n" - + "\025lb_traffic_extensions\030\001 " - + "\003(\01323.google.cloud.networkservices.v1.LbTrafficExtension\022\027\n" + + "\025lb_traffic_extensions\030\001 \003(\01323" + + ".google.cloud.networkservices.v1.LbTrafficExtension\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"g\n" + "\034GetLbTrafficExtensionRequest\022G\n" + "\004name\030\001 \001(\tB9\340A\002\372A3\n" + "1networkservices.googleapis.com/LbTrafficExtension\"\213\002\n" + "\037CreateLbTrafficExtensionRequest\022I\n" - + "\006parent\030\001 \001(\tB9\340A\002\372A3\0221networkserv" - + "ices.googleapis.com/LbTrafficExtension\022$\n" + + "\006parent\030\001 \001(" + + "\tB9\340A\002\372A3\0221networkservices.googleapis.com/LbTrafficExtension\022$\n" + "\027lb_traffic_extension_id\030\002 \001(\tB\003\340A\002\022V\n" - + "\024lb_traffic_extension\030\003 \001(\01323.google.clou" - + "d.networkservices.v1.LbTrafficExtensionB\003\340A\002\022\037\n\n" + + "\024lb_traffic_extension\030\003 \001(\01323.google.cloud.net" + + "workservices.v1.LbTrafficExtensionB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\320\001\n" + "\037UpdateLbTrafficExtensionRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022V\n" - + "\024lb_traffic_extension\030\002 \001(\01323." - + "google.cloud.networkservices.v1.LbTrafficExtensionB\003\340A\002\022\037\n\n" + + "\024lb_traffic_extension\030\002 \001(\01323.googl" + + "e.cloud.networkservices.v1.LbTrafficExtensionB\003\340A\002\022\037\n\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\213\001\n" + "\037DeleteLbTrafficExtensionRequest\022G\n" + "\004name\030\001 \001(\tB9\340A\002\372A3\n" - + "1networkservices.googleapis.com/LbTrafficExtension\022\037\n" - + "\n" + + "1networkservices.googleapis.com/LbTrafficExtension\022\037\n\n" + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\327\005\n" + "\020LbRouteExtension\022\024\n" + "\004name\030\001 \001(\tB\006\340A\002\340A\010\0224\n" @@ -277,21 +282,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030\n" + "\013description\030\t \001(\tB\003\340A\001\022R\n" - + "\006labels\030\004 \003(\0132=.google.cloud.n" - + "etworkservices.v1.LbRouteExtension.LabelsEntryB\003\340A\001\022\035\n" + + "\006labels\030\004 \003(\0132=.google.cloud.networ" + + "kservices.v1.LbRouteExtension.LabelsEntryB\003\340A\001\022\035\n" + "\020forwarding_rules\030\005 \003(\tB\003\340A\002\022N\n" - + "\020extension_chains\030\007 \003(\0132/.google.cl" - + "oud.networkservices.v1.ExtensionChainB\003\340A\002\022X\n" - + "\025load_balancing_scheme\030\010 \001(\01624.goog" - + "le.cloud.networkservices.v1.LoadBalancingSchemeB\003\340A\002\022.\n" + + "\020extension_chains\030\007" + + " \003(\0132/.google.cloud.networkservices.v1.ExtensionChainB\003\340A\002\022X\n" + + "\025load_balancing_scheme\030\010 \001(\01624.google.cl" + + "oud.networkservices.v1.LoadBalancingSchemeB\003\340A\002\022.\n" + "\010metadata\030\n" + " \001(\0132\027.google.protobuf.StructB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\252\001\352A\246\001\n" - + "/networkservices.googleapis.com/LbRouteExtens" - + "ion\022Nprojects/{project}/locations/{location}/lbRouteExtensions/{lb_route_extensi" - + "on}*\021lbRouteExtensions2\020lbRouteExtension\"\304\001\n" + + "/networkservices.googleapis.com/LbRouteExtension\022N" + + "projects/{project}/locations/{location}/" + + "lbRouteExtensions/{lb_route_extension}*\021lbRouteExtensions2\020lbRouteExtension\"\304\001\n" + "\034ListLbRouteExtensionsRequest\022G\n" + "\006parent\030\001 \001(" + "\tB7\340A\002\372A1\022/networkservices.googleapis.com/LbRouteExtension\022\026\n" @@ -308,16 +313,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB7\340A\002\372A1\n" + "/networkservices.googleapis.com/LbRouteExtension\"\201\002\n" + "\035CreateLbRouteExtensionRequest\022G\n" - + "\006parent\030\001 \001(\tB7\340A\002\372A1\022/" - + "networkservices.googleapis.com/LbRouteExtension\022\"\n" + + "\006parent\030\001 \001(\tB7\340A\002\372A1\022/netwo" + + "rkservices.googleapis.com/LbRouteExtension\022\"\n" + "\025lb_route_extension_id\030\002 \001(\tB\003\340A\002\022R\n" - + "\022lb_route_extension\030\003 \001(\01321.google" - + ".cloud.networkservices.v1.LbRouteExtensionB\003\340A\002\022\037\n\n" + + "\022lb_route_extension\030\003 \001(\01321.google.clou" + + "d.networkservices.v1.LbRouteExtensionB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\312\001\n" + "\035UpdateLbRouteExtensionRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022R\n" - + "\022lb_route_extension\030\002 \001(\01321.g" - + "oogle.cloud.networkservices.v1.LbRouteExtensionB\003\340A\002\022\037\n\n" + + "\022lb_route_extension\030\002 \001(\01321.google" + + ".cloud.networkservices.v1.LbRouteExtensionB\003\340A\002\022\037\n\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\207\001\n" + "\035DeleteLbRouteExtensionRequest\022E\n" + "\004name\030\001 \001(\tB7\340A\002\372A1\n" @@ -329,75 +334,76 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030\n" + "\013description\030\t \001(\tB\003\340A\001\022Q\n" - + "\006labels\030\004 \003(\0132<.google.cloud.networkse" - + "rvices.v1.LbEdgeExtension.LabelsEntryB\003\340A\001\022\035\n" + + "\006labels\030\004" + + " \003(\0132<.google.cloud.networkservices.v1.LbEdgeExtension.LabelsEntryB\003\340A\001\022\035\n" + "\020forwarding_rules\030\005 \003(\tB\003\340A\002\022N\n" + "\020extension_chains\030\006" + " \003(\0132/.google.cloud.networkservices.v1.ExtensionChainB\003\340A\002\022X\n" - + "\025load_balancing_scheme\030\007 \001(\01624.google.cloud." - + "networkservices.v1.LoadBalancingSchemeB\003\340A\002\032-\n" + + "\025load_balancing_scheme\030\007 \001(\01624.google.cloud.netwo" + + "rkservices.v1.LoadBalancingSchemeB\003\340A\002\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\245\001\352A\241\001\n" - + ".networkservices.googleapis.com/LbEdgeExtension\022Lprojects/{pro" - + "ject}/locations/{location}/lbEdgeExtensi" - + "ons/{lb_edge_extension}*\020lbEdgeExtensions2\017lbEdgeExtension\"\302\001\n" + + ".networkservices.googleapis.com/LbEdgeExtension\022Lprojects/{project}" + + "/locations/{location}/lbEdgeExtensions/{" + + "lb_edge_extension}*\020lbEdgeExtensions2\017lbEdgeExtension\"\302\001\n" + "\033ListLbEdgeExtensionsRequest\022F\n" - + "\006parent\030\001 \001(\tB6\340A\002\372A0\022.netw" - + "orkservices.googleapis.com/LbEdgeExtension\022\026\n" + + "\006parent\030\001 \001(" + + "\tB6\340A\002\372A0\022.networkservices.googleapis.com/LbEdgeExtension\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\232\001\n" + "\034ListLbEdgeExtensionsResponse\022L\n" - + "\022lb_edge_extensions\030\001 \003(\01320.g" - + "oogle.cloud.networkservices.v1.LbEdgeExtension\022\027\n" + + "\022lb_edge_extensions\030\001 \003(\01320.google" + + ".cloud.networkservices.v1.LbEdgeExtension\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"a\n" + "\031GetLbEdgeExtensionRequest\022D\n" + "\004name\030\001 \001(\tB6\340A\002\372A0\n" + ".networkservices.googleapis.com/LbEdgeExtension\"\374\001\n" + "\034CreateLbEdgeExtensionRequest\022F\n" - + "\006parent\030\001 \001(\t" - + "B6\340A\002\372A0\022.networkservices.googleapis.com/LbEdgeExtension\022!\n" + + "\006parent\030\001 \001(\tB6\340A\002" + + "\372A0\022.networkservices.googleapis.com/LbEdgeExtension\022!\n" + "\024lb_edge_extension_id\030\002 \001(\tB\003\340A\002\022P\n" - + "\021lb_edge_extension\030\003 \001(\01320" - + ".google.cloud.networkservices.v1.LbEdgeExtensionB\003\340A\002\022\037\n\n" + + "\021lb_edge_extension\030\003 \001(\01320.goog" + + "le.cloud.networkservices.v1.LbEdgeExtensionB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\307\001\n" + "\034UpdateLbEdgeExtensionRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022P\n" - + "\021lb_edge_extension\030\002 \001(\013" - + "20.google.cloud.networkservices.v1.LbEdgeExtensionB\003\340A\002\022\037\n\n" + + "\021lb_edge_extension\030\002 \001(\01320.go" + + "ogle.cloud.networkservices.v1.LbEdgeExtensionB\003\340A\002\022\037\n\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\205\001\n" + "\034DeleteLbEdgeExtensionRequest\022D\n" + "\004name\030\001 \001(\tB6\340A\002\372A0\n" + ".networkservices.googleapis.com/LbEdgeExtension\022\037\n\n" - + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\265\006\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\326\006\n" + "\016AuthzExtension\022\024\n" + "\004name\030\001 \001(\tB\006\340A\002\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030\n" + "\013description\030\004 \001(\tB\003\340A\001\022P\n" - + "\006labels\030\005 \003(\0132;.google.cloud.networkse" - + "rvices.v1.AuthzExtension.LabelsEntryB\003\340A\001\022X\n" - + "\025load_balancing_scheme\030\006 \001(\01624.googl" - + "e.cloud.networkservices.v1.LoadBalancingSchemeB\003\340A\002\022\026\n" - + "\tauthority\030\007 \001(\tB\003\340A\002\022\024\n" + + "\006labels\030\005" + + " \003(\0132;.google.cloud.networkservices.v1.AuthzExtension.LabelsEntryB\003\340A\001\022X\n" + + "\025load_balancing_scheme\030\006 \001(\01624.google.clo" + + "ud.networkservices.v1.LoadBalancingSchemeB\003\340A\001\022\026\n" + + "\tauthority\030\007 \001(\tB\003\340A\001\022\024\n" + "\007service\030\010 \001(\tB\003\340A\002\022/\n" + "\007timeout\030\t \001(\0132\031.google.protobuf.DurationB\003\340A\002\022\026\n" + "\tfail_open\030\n" + " \001(\010B\003\340A\001\022.\n" + "\010metadata\030\013 \001(\0132\027.google.protobuf.StructB\003\340A\001\022\034\n" - + "\017forward_headers\030\014 \003(\tB\003\340A\001\022E\n" - + "\013wire_format\030\016 \001(\0162+.google.c" - + "loud.networkservices.v1.WireFormatB\003\340A\001\032-\n" + + "\017forward_headers\030\014 \003(\tB\003\340A\001\022\037\n" + + "\022forward_attributes\030\r" + + " \003(\tB\003\340A\001\022E\n" + + "\013wire_format\030\016" + + " \001(\0162+.google.cloud.networkservices.v1.WireFormatB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\237\001\352A\233\001\n" - + "-networkservices.googleapis.com/AuthzExtension\022Iprojects/{project}" - + "/locations/{location}/authzExtensions/{a" - + "uthz_extension}*\017authzExtensions2\016authzExtension\"\300\001\n" + + "-networkservices.googleapis.com/AuthzExtension\022Iprojects/{project}/locations/{" + + "location}/authzExtensions/{authz_extension}*\017authzExtensions2\016authzExtension\"\300\001\n" + "\032ListAuthzExtensionsRequest\022E\n" + "\006parent\030\001 \001(" + "\tB5\340A\002\372A/\022-networkservices.googleapis.com/AuthzExtension\022\026\n" @@ -417,13 +423,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB5\340A\002\372A/\022-networkservices.googleapis.com/AuthzExtension\022\037\n" + "\022authz_extension_id\030\002 \001(\tB\003\340A\002\022M\n" - + "\017authz_extension\030\003" - + " \001(\0132/.google.cloud.networkservices.v1.AuthzExtensionB\003\340A\002\022\037\n\n" + + "\017authz_extension\030\003 \001" + + "(\0132/.google.cloud.networkservices.v1.AuthzExtensionB\003\340A\002\022\037\n\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\303\001\n" + "\033UpdateAuthzExtensionRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022M\n" - + "\017authz_extension\030\002" - + " \001(\0132/.google.cloud.networkservices.v1.AuthzExtensionB\003\340A\002\022\037\n\n" + + "\017authz_extension\030\002 \001(\013" + + "2/.google.cloud.networkservices.v1.AuthzExtensionB\003\340A\002\022\037\n\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\203\001\n" + "\033DeleteAuthzExtensionRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" @@ -440,113 +446,117 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023LoadBalancingScheme\022%\n" + "!LOAD_BALANCING_SCHEME_UNSPECIFIED\020\000\022\024\n" + "\020INTERNAL_MANAGED\020\001\022\024\n" - + "\020EXTERNAL_MANAGED\020\002*<\n\n" + + "\020EXTERNAL_MANAGED\020\002*P\n\n" + "WireFormat\022\033\n" + "\027WIRE_FORMAT_UNSPECIFIED\020\000\022\021\n\r" - + "EXT_PROC_GRPC\020\0012\371\'\n\n" + + "EXT_PROC_GRPC\020\001\022\022\n" + + "\016EXT_AUTHZ_GRPC\020\003*t\n" + + "\014BodySendMode\022\036\n" + + "\032BODY_SEND_MODE_UNSPECIFIED\020\000\022\033\n" + + "\027BODY_SEND_MODE_STREAMED\020\001\022\'\n" + + "#BODY_SEND_MODE_FULL_DUPLEX_STREAMED\020\0022\371\'\n\n" + "DepService\022\346\001\n" - + "\027ListLbTrafficExtensions\022?.google.cloud.networkservic" - + "es.v1.ListLbTrafficExtensionsRequest\032@.google.cloud.networkservices.v1.ListLbTra" - + "fficExtensionsResponse\"H\332A\006parent\202\323\344\223\0029\022" - + "7/v1/{parent=projects/*/locations/*}/lbTrafficExtensions\022\323\001\n" - + "\025GetLbTrafficExtension\022=.google.cloud.networkservices.v1.Get" - + "LbTrafficExtensionRequest\0323.google.cloud.networkservices.v1.LbTrafficExtension\"F" - + "\332A\004name\202\323\344\223\0029\0227/v1/{name=projects/*/locations/*/lbTrafficExtensions/*}\022\263\002\n" - + "\030CreateLbTrafficExtension\022@.google.cloud.netwo" - + "rkservices.v1.CreateLbTrafficExtensionRe" - + "quest\032\035.google.longrunning.Operation\"\265\001\312A\'\n" - + "\022LbTrafficExtension\022\021OperationMetadat" - + "a\332A3parent,lb_traffic_extension,lb_traff" - + "ic_extension_id\202\323\344\223\002O\"7/v1/{parent=proje" - + "cts/*/locations/*}/lbTrafficExtensions:\024lb_traffic_extension\022\265\002\n" - + "\030UpdateLbTrafficExtension\022@.google.cloud.networkservices" - + ".v1.UpdateLbTrafficExtensionRequest\032\035.google.longrunning.Operation\"\267\001\312A\'\n" - + "\022LbTrafficExtension\022\021OperationMetadata\332A lb_tra" - + "ffic_extension,update_mask\202\323\344\223\002d2L/v1/{l" - + "b_traffic_extension.name=projects/*/loca" - + "tions/*/lbTrafficExtensions/*}:\024lb_traffic_extension\022\360\001\n" - + "\030DeleteLbTrafficExtension\022@.google.cloud.networkservices.v1.Dele" - + "teLbTrafficExtensionRequest\032\035.google.longrunning.Operation\"s\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\0029*7" - + "/v1/{name=projects/*/locations/*/lbTrafficExtensions/*}\022\336\001\n" - + "\025ListLbRouteExtensions\022=.google.cloud.networkservices.v1.List" - + "LbRouteExtensionsRequest\032>.google.cloud.networkservices.v1.ListLbRouteExtensions" - + "Response\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=p" - + "rojects/*/locations/*}/lbRouteExtensions\022\313\001\n" - + "\023GetLbRouteExtension\022;.google.cloud.networkservices.v1.GetLbRouteExtensionRe" - + "quest\0321.google.cloud.networkservices.v1." - + "LbRouteExtension\"D\332A\004name\202\323\344\223\0027\0225/v1/{na" - + "me=projects/*/locations/*/lbRouteExtensions/*}\022\245\002\n" - + "\026CreateLbRouteExtension\022>.google.cloud.networkservices.v1.CreateLbRout" - + "eExtensionRequest\032\035.google.longrunning.Operation\"\253\001\312A%\n" - + "\020LbRouteExtension\022\021OperationMetadata\332A/parent,lb_route_extension," - + "lb_route_extension_id\202\323\344\223\002K\"5/v1/{parent" - + "=projects/*/locations/*}/lbRouteExtensions:\022lb_route_extension\022\247\002\n" - + "\026UpdateLbRouteExtension\022>.google.cloud.networkservices" - + ".v1.UpdateLbRouteExtensionRequest\032\035.google.longrunning.Operation\"\255\001\312A%\n" - + "\020LbRouteExtension\022\021OperationMetadata\332A\036lb_route_e" - + "xtension,update_mask\202\323\344\223\002^2H/v1/{lb_rout" - + "e_extension.name=projects/*/locations/*/" - + "lbRouteExtensions/*}:\022lb_route_extension\022\352\001\n" - + "\026DeleteLbRouteExtension\022>.google.cloud.networkservices.v1.DeleteLbRouteExten" - + "sionRequest\032\035.google.longrunning.Operation\"q\312A*\n" - + "\025google.protobuf.Empty\022\021Operatio" - + "nMetadata\332A\004name\202\323\344\223\0027*5/v1/{name=projec" - + "ts/*/locations/*/lbRouteExtensions/*}\022\332\001\n" - + "\024ListLbEdgeExtensions\022<.google.cloud.networkservices.v1.ListLbEdgeExtensionsReq" - + "uest\032=.google.cloud.networkservices.v1.L" - + "istLbEdgeExtensionsResponse\"E\332A\006parent\202\323" - + "\344\223\0026\0224/v1/{parent=projects/*/locations/*}/lbEdgeExtensions\022\307\001\n" - + "\022GetLbEdgeExtension\022:.google.cloud.networkservices.v1.GetL" - + "bEdgeExtensionRequest\0320.google.cloud.net" - + "workservices.v1.LbEdgeExtension\"C\332A\004name" - + "\202\323\344\223\0026\0224/v1/{name=projects/*/locations/*/lbEdgeExtensions/*}\022\236\002\n" - + "\025CreateLbEdgeExtension\022=.google.cloud.networkservices.v1" - + ".CreateLbEdgeExtensionRequest\032\035.google.longrunning.Operation\"\246\001\312A$\n" - + "\017LbEdgeExtension\022\021OperationMetadata\332A-parent,lb_edge_" - + "extension,lb_edge_extension_id\202\323\344\223\002I\"4/v" - + "1/{parent=projects/*/locations/*}/lbEdgeExtensions:\021lb_edge_extension\022\240\002\n" - + "\025UpdateLbEdgeExtension\022=.google.cloud.networkse" - + "rvices.v1.UpdateLbEdgeExtensionRequest\032\035.google.longrunning.Operation\"\250\001\312A$\n" - + "\017LbEdgeExtension\022\021OperationMetadata\332A\035lb_edg" - + "e_extension,update_mask\202\323\344\223\002[2F/v1/{lb_e" - + "dge_extension.name=projects/*/locations/" - + "*/lbEdgeExtensions/*}:\021lb_edge_extension\022\347\001\n" - + "\025DeleteLbEdgeExtension\022=.google.cloud.networkservices.v1.DeleteLbEdgeExtensi" - + "onRequest\032\035.google.longrunning.Operation\"p\312A*\n" - + "\025google.protobuf.Empty\022\021OperationM" - + "etadata\332A\004name\202\323\344\223\0026*4/v1/{name=projects/*/locations/*/lbEdgeExtensions/*}\022\326\001\n" - + "\023ListAuthzExtensions\022;.google.cloud.networ" - + "kservices.v1.ListAuthzExtensionsRequest\032<.google.cloud.networkservices.v1.ListAu" - + "thzExtensionsResponse\"D\332A\006parent\202\323\344\223\0025\0223" - + "/v1/{parent=projects/*/locations/*}/authzExtensions\022\303\001\n" - + "\021GetAuthzExtension\0229.google.cloud.networkservices.v1.GetAuthzExte" - + "nsionRequest\032/.google.cloud.networkservi" - + "ces.v1.AuthzExtension\"B\332A\004name\202\323\344\223\0025\0223/v" - + "1/{name=projects/*/locations/*/authzExtensions/*}\022\224\002\n" - + "\024CreateAuthzExtension\022<.google.cloud.networkservices.v1.CreateAuthz" - + "ExtensionRequest\032\035.google.longrunning.Operation\"\236\001\312A#\n" - + "\016AuthzExtension\022\021OperationMetadata\332A)parent,authz_extension,authz_" - + "extension_id\202\323\344\223\002F\"3/v1/{parent=projects" - + "/*/locations/*}/authzExtensions:\017authz_extension\022\226\002\n" - + "\024UpdateAuthzExtension\022<.google.cloud.networkservices.v1.UpdateAuthzE" - + "xtensionRequest\032\035.google.longrunning.Operation\"\240\001\312A#\n" - + "\016AuthzExtension\022\021OperationM" - + "etadata\332A\033authz_extension,update_mask\202\323\344" - + "\223\002V2C/v1/{authz_extension.name=projects/" - + "*/locations/*/authzExtensions/*}:\017authz_extension\022\344\001\n" - + "\024DeleteAuthzExtension\022<.google.cloud.networkservices.v1.DeleteAuthz" - + "ExtensionRequest\032\035.google.longrunning.Operation\"o\312A*\n" - + "\025google.protobuf.Empty\022\021Ope" - + "rationMetadata\332A\004name\202\323\344\223\0025*3/v1/{name=p" - + "rojects/*/locations/*/authzExtensions/*}" - + "\032R\312A\036networkservices.googleapis.com\322A.ht" - + "tps://www.googleapis.com/auth/cloud-platformB\351\001\n" - + "#com.google.cloud.networkservices.v1B\010DepProtoP\001ZMcloud.google.com/go/ne" - + "tworkservices/apiv1/networkservicespb;ne" - + "tworkservicespb\252\002\037Google.Cloud.NetworkSe" - + "rvices.V1\312\002\037Google\\Cloud\\NetworkServices" - + "\\V1\352\002\"Google::Cloud::NetworkServices::V1b\006proto3" + + "\027ListLbTrafficExtensions\022?.google.cloud.network" + + "services.v1.ListLbTrafficExtensionsRequest\032@.google.cloud.networkservices.v1.Lis" + + "tLbTrafficExtensionsResponse\"H\332A\006parent\202" + + "\323\344\223\0029\0227/v1/{parent=projects/*/locations/*}/lbTrafficExtensions\022\323\001\n" + + "\025GetLbTrafficExtension\022=.google.cloud.networkservices." + + "v1.GetLbTrafficExtensionRequest\0323.google.cloud.networkservices.v1.LbTrafficExten" + + "sion\"F\332A\004name\202\323\344\223\0029\0227/v1/{name=projects/*/locations/*/lbTrafficExtensions/*}\022\263\002\n" + + "\030CreateLbTrafficExtension\022@.google.cloud.networkservices.v1.CreateLbTrafficExten" + + "sionRequest\032\035.google.longrunning.Operation\"\265\001\312A\'\n" + + "\022LbTrafficExtension\022\021OperationMetadata\332A3parent,lb_traffic_extension,lb" + + "_traffic_extension_id\202\323\344\223\002O\"7/v1/{parent" + + "=projects/*/locations/*}/lbTrafficExtensions:\024lb_traffic_extension\022\265\002\n" + + "\030UpdateLbTrafficExtension\022@.google.cloud.networkse" + + "rvices.v1.UpdateLbTrafficExtensionRequest\032\035.google.longrunning.Operation\"\267\001\312A\'\n" + + "\022LbTrafficExtension\022\021OperationMetadata\332A " + + "lb_traffic_extension,update_mask\202\323\344\223\002d2L" + + "/v1/{lb_traffic_extension.name=projects/" + + "*/locations/*/lbTrafficExtensions/*}:\024lb_traffic_extension\022\360\001\n" + + "\030DeleteLbTrafficExtension\022@.google.cloud.networkservices.v" + + "1.DeleteLbTrafficExtensionRequest\032\035.google.longrunning.Operation\"s\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323" + + "\344\223\0029*7/v1/{name=projects/*/locations/*/lbTrafficExtensions/*}\022\336\001\n" + + "\025ListLbRouteExtensions\022=.google.cloud.networkservices.v" + + "1.ListLbRouteExtensionsRequest\032>.google.cloud.networkservices.v1.ListLbRouteExte" + + "nsionsResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{pa" + + "rent=projects/*/locations/*}/lbRouteExtensions\022\313\001\n" + + "\023GetLbRouteExtension\022;.google.cloud.networkservices.v1.GetLbRouteExten" + + "sionRequest\0321.google.cloud.networkservic" + + "es.v1.LbRouteExtension\"D\332A\004name\202\323\344\223\0027\0225/" + + "v1/{name=projects/*/locations/*/lbRouteExtensions/*}\022\245\002\n" + + "\026CreateLbRouteExtension\022>.google.cloud.networkservices.v1.Create" + + "LbRouteExtensionRequest\032\035.google.longrunning.Operation\"\253\001\312A%\n" + + "\020LbRouteExtension\022\021OperationMetadata\332A/parent,lb_route_exte" + + "nsion,lb_route_extension_id\202\323\344\223\002K\"5/v1/{" + + "parent=projects/*/locations/*}/lbRouteExtensions:\022lb_route_extension\022\247\002\n" + + "\026UpdateLbRouteExtension\022>.google.cloud.networkse" + + "rvices.v1.UpdateLbRouteExtensionRequest\032\035.google.longrunning.Operation\"\255\001\312A%\n" + + "\020LbRouteExtension\022\021OperationMetadata\332A\036lb_r" + + "oute_extension,update_mask\202\323\344\223\002^2H/v1/{l" + + "b_route_extension.name=projects/*/locati" + + "ons/*/lbRouteExtensions/*}:\022lb_route_extension\022\352\001\n" + + "\026DeleteLbRouteExtension\022>.google.cloud.networkservices.v1.DeleteLbRout" + + "eExtensionRequest\032\035.google.longrunning.Operation\"q\312A*\n" + + "\025google.protobuf.Empty\022\021Op" + + "erationMetadata\332A\004name\202\323\344\223\0027*5/v1/{name=" + + "projects/*/locations/*/lbRouteExtensions/*}\022\332\001\n" + + "\024ListLbEdgeExtensions\022<.google.cloud.networkservices.v1.ListLbEdgeExtensi" + + "onsRequest\032=.google.cloud.networkservice" + + "s.v1.ListLbEdgeExtensionsResponse\"E\332A\006pa" + + "rent\202\323\344\223\0026\0224/v1/{parent=projects/*/locations/*}/lbEdgeExtensions\022\307\001\n" + + "\022GetLbEdgeExtension\022:.google.cloud.networkservices.v" + + "1.GetLbEdgeExtensionRequest\0320.google.clo" + + "ud.networkservices.v1.LbEdgeExtension\"C\332" + + "A\004name\202\323\344\223\0026\0224/v1/{name=projects/*/locations/*/lbEdgeExtensions/*}\022\236\002\n" + + "\025CreateLbEdgeExtension\022=.google.cloud.networkservi" + + "ces.v1.CreateLbEdgeExtensionRequest\032\035.google.longrunning.Operation\"\246\001\312A$\n" + + "\017LbEdgeExtension\022\021OperationMetadata\332A-parent,lb" + + "_edge_extension,lb_edge_extension_id\202\323\344\223" + + "\002I\"4/v1/{parent=projects/*/locations/*}/lbEdgeExtensions:\021lb_edge_extension\022\240\002\n" + + "\025UpdateLbEdgeExtension\022=.google.cloud.net" + + "workservices.v1.UpdateLbEdgeExtensionReq" + + "uest\032\035.google.longrunning.Operation\"\250\001\312A$\n" + + "\017LbEdgeExtension\022\021OperationMetadata\332A\035" + + "lb_edge_extension,update_mask\202\323\344\223\002[2F/v1" + + "/{lb_edge_extension.name=projects/*/loca" + + "tions/*/lbEdgeExtensions/*}:\021lb_edge_extension\022\347\001\n" + + "\025DeleteLbEdgeExtension\022=.google.cloud.networkservices.v1.DeleteLbEdgeE" + + "xtensionRequest\032\035.google.longrunning.Operation\"p\312A*\n" + + "\025google.protobuf.Empty\022\021Oper" + + "ationMetadata\332A\004name\202\323\344\223\0026*4/v1/{name=pr" + + "ojects/*/locations/*/lbEdgeExtensions/*}\022\326\001\n" + + "\023ListAuthzExtensions\022;.google.cloud.networkservices.v1.ListAuthzExtensionsRe" + + "quest\032<.google.cloud.networkservices.v1." + + "ListAuthzExtensionsResponse\"D\332A\006parent\202\323" + + "\344\223\0025\0223/v1/{parent=projects/*/locations/*}/authzExtensions\022\303\001\n" + + "\021GetAuthzExtension\0229.google.cloud.networkservices.v1.GetAut" + + "hzExtensionRequest\032/.google.cloud.networ" + + "kservices.v1.AuthzExtension\"B\332A\004name\202\323\344\223" + + "\0025\0223/v1/{name=projects/*/locations/*/authzExtensions/*}\022\224\002\n" + + "\024CreateAuthzExtension\022<.google.cloud.networkservices.v1.Creat" + + "eAuthzExtensionRequest\032\035.google.longrunning.Operation\"\236\001\312A#\n" + + "\016AuthzExtension\022\021OperationMetadata\332A)parent,authz_extension," + + "authz_extension_id\202\323\344\223\002F\"3/v1/{parent=pr" + + "ojects/*/locations/*}/authzExtensions:\017authz_extension\022\226\002\n" + + "\024UpdateAuthzExtension\022<.google.cloud.networkservices.v1.Update" + + "AuthzExtensionRequest\032\035.google.longrunning.Operation\"\240\001\312A#\n" + + "\016AuthzExtension\022\021OperationMetadata\332A\033authz_extension,update_m" + + "ask\202\323\344\223\002V2C/v1/{authz_extension.name=pro" + + "jects/*/locations/*/authzExtensions/*}:\017authz_extension\022\344\001\n" + + "\024DeleteAuthzExtension\022<.google.cloud.networkservices.v1.Delet" + + "eAuthzExtensionRequest\032\035.google.longrunning.Operation\"o\312A*\n" + + "\025google.protobuf.Empt" + + "y\022\021OperationMetadata\332A\004name\202\323\344\223\0025*3/v1/{" + + "name=projects/*/locations/*/authzExtensi" + + "ons/*}\032R\312A\036networkservices.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/cloud-platformB\351\001\n" + + "#com.google.cloud.networkservices.v1B\010DepProtoP\001ZMcloud.google.com" + + "/go/networkservices/apiv1/networkservice" + + "spb;networkservicespb\252\002\037Google.Cloud.Net" + + "workServices.V1\312\002\037Google\\Cloud\\NetworkSe" + + "rvices\\V1\352\002\"Google::Cloud::NetworkServices::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -594,7 +604,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Timeout", "FailOpen", "ForwardHeaders", + "ForwardAttributes", "Metadata", + "RequestBodySendMode", + "ResponseBodySendMode", + "ObservabilityMode", }); internal_static_google_cloud_networkservices_v1_LbTrafficExtension_descriptor = getDescriptor().getMessageType(1); @@ -831,6 +845,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FailOpen", "Metadata", "ForwardHeaders", + "ForwardAttributes", "WireFormat", }); internal_static_google_cloud_networkservices_v1_AuthzExtension_LabelsEntry_descriptor = diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicy.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicy.java index f7b35bf24392..0abfee0ddd5d 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicy.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicy.java @@ -275,7 +275,7 @@ private EndpointPolicyType(int value) { * *
                * Identifier. Name of the EndpointPolicy resource. It matches pattern
            -   * `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
            +   * `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -300,7 +300,7 @@ public java.lang.String getName() { * *
                * Identifier. Name of the EndpointPolicy resource. It matches pattern
            -   * `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
            +   * `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1609,7 +1609,7 @@ public Builder mergeFrom( * *
                  * Identifier. Name of the EndpointPolicy resource. It matches pattern
            -     * `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
            +     * `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1633,7 +1633,7 @@ public java.lang.String getName() { * *
                  * Identifier. Name of the EndpointPolicy resource. It matches pattern
            -     * `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
            +     * `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1657,7 +1657,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                  * Identifier. Name of the EndpointPolicy resource. It matches pattern
            -     * `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
            +     * `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1680,7 +1680,7 @@ public Builder setName(java.lang.String value) { * *
                  * Identifier. Name of the EndpointPolicy resource. It matches pattern
            -     * `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
            +     * `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1699,7 +1699,7 @@ public Builder clearName() { * *
                  * Identifier. Name of the EndpointPolicy resource. It matches pattern
            -     * `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
            +     * `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicyOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicyOrBuilder.java index 409b3746e0c3..f2aadc9d17cf 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicyOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EndpointPolicyOrBuilder.java @@ -31,7 +31,7 @@ public interface EndpointPolicyOrBuilder * *
                * Identifier. Name of the EndpointPolicy resource. It matches pattern
            -   * `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
            +   * `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -45,7 +45,7 @@ public interface EndpointPolicyOrBuilder * *
                * Identifier. Name of the EndpointPolicy resource. It matches pattern
            -   * `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`.
            +   * `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EnvoyHeaders.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EnvoyHeaders.java index 7398388981f0..d4d78f4ef64d 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EnvoyHeaders.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/EnvoyHeaders.java @@ -56,10 +56,10 @@ public enum EnvoyHeaders implements com.google.protobuf.ProtocolMessageEnum { * *
                * Envoy will insert default internal debug headers into upstream requests:
            -   * x-envoy-attempt-count
            -   * x-envoy-is-timeout-retry
            -   * x-envoy-expected-rq-timeout-ms
            -   * x-envoy-original-path
            +   * x-envoy-attempt-count,
            +   * x-envoy-is-timeout-retry,
            +   * x-envoy-expected-rq-timeout-ms,
            +   * x-envoy-original-path,
                * x-envoy-upstream-stream-duration-ms
                * 
            * @@ -106,10 +106,10 @@ public enum EnvoyHeaders implements com.google.protobuf.ProtocolMessageEnum { * *
                * Envoy will insert default internal debug headers into upstream requests:
            -   * x-envoy-attempt-count
            -   * x-envoy-is-timeout-retry
            -   * x-envoy-expected-rq-timeout-ms
            -   * x-envoy-original-path
            +   * x-envoy-attempt-count,
            +   * x-envoy-is-timeout-retry,
            +   * x-envoy-expected-rq-timeout-ms,
            +   * x-envoy-original-path,
                * x-envoy-upstream-stream-duration-ms
                * 
            * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ExtensionChain.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ExtensionChain.java index 810a9c2448fd..6378da86ea58 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ExtensionChain.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ExtensionChain.java @@ -736,15 +736,17 @@ public interface ExtensionOrBuilder * * *
            -     * Required. The name for this extension.
            +     * Optional. The name for this extension.
                  * The name is logged as part of the HTTP request logs.
                  * The name must conform with RFC-1034, is restricted to lower-cased
                  * letters, numbers and hyphens, and can have a maximum length of 63
                  * characters. Additionally, the first character must be a letter and the
                  * last a letter or a number.
            +     *
            +     * This field is required except for AuthzExtension.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -754,15 +756,17 @@ public interface ExtensionOrBuilder * * *
            -     * Required. The name for this extension.
            +     * Optional. The name for this extension.
                  * The name is logged as part of the HTTP request logs.
                  * The name must conform with RFC-1034, is restricted to lower-cased
                  * letters, numbers and hyphens, and can have a maximum length of 63
                  * characters. Additionally, the first character must be a letter and the
                  * last a letter or a number.
            +     *
            +     * This field is required except for AuthzExtension.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -886,6 +890,10 @@ public interface ExtensionOrBuilder * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -910,6 +918,10 @@ public interface ExtensionOrBuilder * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -934,6 +946,10 @@ public interface ExtensionOrBuilder * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -959,6 +975,10 @@ public interface ExtensionOrBuilder * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -983,6 +1003,10 @@ public interface ExtensionOrBuilder * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -1134,6 +1158,96 @@ public interface ExtensionOrBuilder */ com.google.protobuf.ByteString getForwardHeadersBytes(int index); + /** + * + * + *
            +     * Optional. List of the Envoy attributes to forward to the extension
            +     * server. The attributes provided here are included as part of the
            +     * `ProcessingRequest.attributes` field (of type
            +     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +     * names. Refer to the
            +     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +     * for the names of attributes that can be forwarded. If omitted, no
            +     * attributes are sent. Each element is a string indicating the
            +     * attribute name.
            +     * 
            + * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the forwardAttributes. + */ + java.util.List getForwardAttributesList(); + + /** + * + * + *
            +     * Optional. List of the Envoy attributes to forward to the extension
            +     * server. The attributes provided here are included as part of the
            +     * `ProcessingRequest.attributes` field (of type
            +     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +     * names. Refer to the
            +     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +     * for the names of attributes that can be forwarded. If omitted, no
            +     * attributes are sent. Each element is a string indicating the
            +     * attribute name.
            +     * 
            + * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of forwardAttributes. + */ + int getForwardAttributesCount(); + + /** + * + * + *
            +     * Optional. List of the Envoy attributes to forward to the extension
            +     * server. The attributes provided here are included as part of the
            +     * `ProcessingRequest.attributes` field (of type
            +     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +     * names. Refer to the
            +     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +     * for the names of attributes that can be forwarded. If omitted, no
            +     * attributes are sent. Each element is a string indicating the
            +     * attribute name.
            +     * 
            + * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The forwardAttributes at the given index. + */ + java.lang.String getForwardAttributes(int index); + + /** + * + * + *
            +     * Optional. List of the Envoy attributes to forward to the extension
            +     * server. The attributes provided here are included as part of the
            +     * `ProcessingRequest.attributes` field (of type
            +     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +     * names. Refer to the
            +     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +     * for the names of attributes that can be forwarded. If omitted, no
            +     * attributes are sent. Each element is a string indicating the
            +     * attribute name.
            +     * 
            + * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the forwardAttributes at the given index. + */ + com.google.protobuf.ByteString getForwardAttributesBytes(int index); + /** * * @@ -1142,7 +1256,10 @@ public interface ExtensionOrBuilder * `metadata_context` (of type `google.protobuf.Struct`) in the * `ProcessingRequest` message sent to the extension server. * - * The metadata is available under the namespace + * For `AuthzExtension` resources, the metadata is available under the + * namespace `com.google.authz_extension.<resource_name>`. + * For other types of extensions, the metadata is available under the + * namespace * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`. * For example: * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. @@ -1182,7 +1299,10 @@ public interface ExtensionOrBuilder * `metadata_context` (of type `google.protobuf.Struct`) in the * `ProcessingRequest` message sent to the extension server. * - * The metadata is available under the namespace + * For `AuthzExtension` resources, the metadata is available under the + * namespace `com.google.authz_extension.<resource_name>`. + * For other types of extensions, the metadata is available under the + * namespace * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`. * For example: * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. @@ -1222,7 +1342,10 @@ public interface ExtensionOrBuilder * `metadata_context` (of type `google.protobuf.Struct`) in the * `ProcessingRequest` message sent to the extension server. * - * The metadata is available under the namespace + * For `AuthzExtension` resources, the metadata is available under the + * namespace `com.google.authz_extension.<resource_name>`. + * For other types of extensions, the metadata is available under the + * namespace * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`. * For example: * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. @@ -1251,6 +1374,133 @@ public interface ExtensionOrBuilder * .google.protobuf.Struct metadata = 9 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); + + /** + * + * + *
            +     * Optional. Configures the send mode for request body processing.
            +     *
            +     * The field can only be set if `supported_events` includes `REQUEST_BODY`.
            +     * If `supported_events` includes `REQUEST_BODY`,
            +     * but `request_body_send_mode` is unset, the default value `STREAMED` is
            +     * used.
            +     *
            +     * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
            +     * must include both `REQUEST_BODY` and `REQUEST_TRAILERS`.
            +     *
            +     * This field can be set only for `LbTrafficExtension` and
            +     * `LbRouteExtension` resources, and only when the `service` field of the
            +     * extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode
            +     * is supported for `LbRouteExtension` resources.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.BodySendMode request_body_send_mode = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for requestBodySendMode. + */ + int getRequestBodySendModeValue(); + + /** + * + * + *
            +     * Optional. Configures the send mode for request body processing.
            +     *
            +     * The field can only be set if `supported_events` includes `REQUEST_BODY`.
            +     * If `supported_events` includes `REQUEST_BODY`,
            +     * but `request_body_send_mode` is unset, the default value `STREAMED` is
            +     * used.
            +     *
            +     * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
            +     * must include both `REQUEST_BODY` and `REQUEST_TRAILERS`.
            +     *
            +     * This field can be set only for `LbTrafficExtension` and
            +     * `LbRouteExtension` resources, and only when the `service` field of the
            +     * extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode
            +     * is supported for `LbRouteExtension` resources.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.BodySendMode request_body_send_mode = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestBodySendMode. + */ + com.google.cloud.networkservices.v1.BodySendMode getRequestBodySendMode(); + + /** + * + * + *
            +     * Optional. Configures the send mode for response processing. If
            +     * unspecified, the default value `STREAMED` is used.
            +     *
            +     * The field can only be set if `supported_events` includes `RESPONSE_BODY`.
            +     * If `supported_events` includes `RESPONSE_BODY`, but
            +     * `response_body_send_mode` is unset, the default value `STREAMED` is used.
            +     *
            +     * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
            +     * must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`.
            +     *
            +     * This field can be set only for `LbTrafficExtension` resources, and only
            +     * when the `service` field of the extension points to a `BackendService`.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.BodySendMode response_body_send_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for responseBodySendMode. + */ + int getResponseBodySendModeValue(); + + /** + * + * + *
            +     * Optional. Configures the send mode for response processing. If
            +     * unspecified, the default value `STREAMED` is used.
            +     *
            +     * The field can only be set if `supported_events` includes `RESPONSE_BODY`.
            +     * If `supported_events` includes `RESPONSE_BODY`, but
            +     * `response_body_send_mode` is unset, the default value `STREAMED` is used.
            +     *
            +     * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
            +     * must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`.
            +     *
            +     * This field can be set only for `LbTrafficExtension` resources, and only
            +     * when the `service` field of the extension points to a `BackendService`.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.BodySendMode response_body_send_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The responseBodySendMode. + */ + com.google.cloud.networkservices.v1.BodySendMode getResponseBodySendMode(); + + /** + * + * + *
            +     * Optional. When set to `true`, the calls to the extension backend are
            +     * performed asynchronously, without pausing the processing of the ongoing
            +     * request. In this mode, only `STREAMED` (default) body processing is
            +     * supported. Responses, if any, are ignored.
            +     *
            +     * Supported by regional `LbTrafficExtension` and `LbRouteExtension`
            +     * resources.
            +     * 
            + * + * bool observability_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The observabilityMode. + */ + boolean getObservabilityMode(); } /** @@ -1289,6 +1539,9 @@ private Extension() { service_ = ""; supportedEvents_ = emptyIntList(); forwardHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + forwardAttributes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + requestBodySendMode_ = 0; + responseBodySendMode_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1316,15 +1569,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -     * Required. The name for this extension.
            +     * Optional. The name for this extension.
                  * The name is logged as part of the HTTP request logs.
                  * The name must conform with RFC-1034, is restricted to lower-cased
                  * letters, numbers and hyphens, and can have a maximum length of 63
                  * characters. Additionally, the first character must be a letter and the
                  * last a letter or a number.
            +     *
            +     * This field is required except for AuthzExtension.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -1345,15 +1600,17 @@ public java.lang.String getName() { * * *
            -     * Required. The name for this extension.
            +     * Optional. The name for this extension.
                  * The name is logged as part of the HTTP request logs.
                  * The name must conform with RFC-1034, is restricted to lower-cased
                  * letters, numbers and hyphens, and can have a maximum length of 63
                  * characters. Additionally, the first character must be a letter and the
                  * last a letter or a number.
            +     *
            +     * This field is required except for AuthzExtension.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -1561,6 +1818,10 @@ public com.google.cloud.networkservices.v1.EventType convert(int from) { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -1590,6 +1851,10 @@ public java.util.List getSupporte * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -1617,6 +1882,10 @@ public int getSupportedEventsCount() { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -1645,6 +1914,10 @@ public com.google.cloud.networkservices.v1.EventType getSupportedEvents(int inde * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -1672,6 +1945,10 @@ public java.util.List getSupportedEventsValueList() { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -1860,6 +2137,110 @@ public com.google.protobuf.ByteString getForwardHeadersBytes(int index) { return forwardHeaders_.getByteString(index); } + public static final int FORWARD_ATTRIBUTES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList forwardAttributes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +     * Optional. List of the Envoy attributes to forward to the extension
            +     * server. The attributes provided here are included as part of the
            +     * `ProcessingRequest.attributes` field (of type
            +     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +     * names. Refer to the
            +     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +     * for the names of attributes that can be forwarded. If omitted, no
            +     * attributes are sent. Each element is a string indicating the
            +     * attribute name.
            +     * 
            + * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the forwardAttributes. + */ + public com.google.protobuf.ProtocolStringList getForwardAttributesList() { + return forwardAttributes_; + } + + /** + * + * + *
            +     * Optional. List of the Envoy attributes to forward to the extension
            +     * server. The attributes provided here are included as part of the
            +     * `ProcessingRequest.attributes` field (of type
            +     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +     * names. Refer to the
            +     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +     * for the names of attributes that can be forwarded. If omitted, no
            +     * attributes are sent. Each element is a string indicating the
            +     * attribute name.
            +     * 
            + * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of forwardAttributes. + */ + public int getForwardAttributesCount() { + return forwardAttributes_.size(); + } + + /** + * + * + *
            +     * Optional. List of the Envoy attributes to forward to the extension
            +     * server. The attributes provided here are included as part of the
            +     * `ProcessingRequest.attributes` field (of type
            +     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +     * names. Refer to the
            +     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +     * for the names of attributes that can be forwarded. If omitted, no
            +     * attributes are sent. Each element is a string indicating the
            +     * attribute name.
            +     * 
            + * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The forwardAttributes at the given index. + */ + public java.lang.String getForwardAttributes(int index) { + return forwardAttributes_.get(index); + } + + /** + * + * + *
            +     * Optional. List of the Envoy attributes to forward to the extension
            +     * server. The attributes provided here are included as part of the
            +     * `ProcessingRequest.attributes` field (of type
            +     * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +     * names. Refer to the
            +     * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +     * for the names of attributes that can be forwarded. If omitted, no
            +     * attributes are sent. Each element is a string indicating the
            +     * attribute name.
            +     * 
            + * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the forwardAttributes at the given index. + */ + public com.google.protobuf.ByteString getForwardAttributesBytes(int index) { + return forwardAttributes_.getByteString(index); + } + public static final int METADATA_FIELD_NUMBER = 9; private com.google.protobuf.Struct metadata_; @@ -1871,7 +2252,10 @@ public com.google.protobuf.ByteString getForwardHeadersBytes(int index) { * `metadata_context` (of type `google.protobuf.Struct`) in the * `ProcessingRequest` message sent to the extension server. * - * The metadata is available under the namespace + * For `AuthzExtension` resources, the metadata is available under the + * namespace `com.google.authz_extension.<resource_name>`. + * For other types of extensions, the metadata is available under the + * namespace * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`. * For example: * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. @@ -1914,7 +2298,10 @@ public boolean hasMetadata() { * `metadata_context` (of type `google.protobuf.Struct`) in the * `ProcessingRequest` message sent to the extension server. * - * The metadata is available under the namespace + * For `AuthzExtension` resources, the metadata is available under the + * namespace `com.google.authz_extension.<resource_name>`. + * For other types of extensions, the metadata is available under the + * namespace * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`. * For example: * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. @@ -1957,7 +2344,10 @@ public com.google.protobuf.Struct getMetadata() { * `metadata_context` (of type `google.protobuf.Struct`) in the * `ProcessingRequest` message sent to the extension server. * - * The metadata is available under the namespace + * For `AuthzExtension` resources, the metadata is available under the + * namespace `com.google.authz_extension.<resource_name>`. + * For other types of extensions, the metadata is available under the + * namespace * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`. * For example: * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. @@ -1990,67 +2380,242 @@ public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; } - private byte memoizedIsInitialized = -1; + public static final int REQUEST_BODY_SEND_MODE_FIELD_NUMBER = 14; + private int requestBodySendMode_ = 0; + /** + * + * + *
            +     * Optional. Configures the send mode for request body processing.
            +     *
            +     * The field can only be set if `supported_events` includes `REQUEST_BODY`.
            +     * If `supported_events` includes `REQUEST_BODY`,
            +     * but `request_body_send_mode` is unset, the default value `STREAMED` is
            +     * used.
            +     *
            +     * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
            +     * must include both `REQUEST_BODY` and `REQUEST_TRAILERS`.
            +     *
            +     * This field can be set only for `LbTrafficExtension` and
            +     * `LbRouteExtension` resources, and only when the `service` field of the
            +     * extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode
            +     * is supported for `LbRouteExtension` resources.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.BodySendMode request_body_send_mode = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for requestBodySendMode. + */ @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 int getRequestBodySendModeValue() { + return requestBodySendMode_; } + /** + * + * + *
            +     * Optional. Configures the send mode for request body processing.
            +     *
            +     * The field can only be set if `supported_events` includes `REQUEST_BODY`.
            +     * If `supported_events` includes `REQUEST_BODY`,
            +     * but `request_body_send_mode` is unset, the default value `STREAMED` is
            +     * used.
            +     *
            +     * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
            +     * must include both `REQUEST_BODY` and `REQUEST_TRAILERS`.
            +     *
            +     * This field can be set only for `LbTrafficExtension` and
            +     * `LbRouteExtension` resources, and only when the `service` field of the
            +     * extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode
            +     * is supported for `LbRouteExtension` resources.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.BodySendMode request_body_send_mode = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestBodySendMode. + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authority_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, authority_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(service_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, service_); - } - if (getSupportedEventsList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(supportedEventsMemoizedSerializedSize); - } - for (int i = 0; i < supportedEvents_.size(); i++) { - output.writeEnumNoTag(supportedEvents_.getInt(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getTimeout()); - } - if (failOpen_ != false) { - output.writeBool(6, failOpen_); - } - for (int i = 0; i < forwardHeaders_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 7, forwardHeaders_.getRaw(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(9, getMetadata()); - } - getUnknownFields().writeTo(output); + public com.google.cloud.networkservices.v1.BodySendMode getRequestBodySendMode() { + com.google.cloud.networkservices.v1.BodySendMode result = + com.google.cloud.networkservices.v1.BodySendMode.forNumber(requestBodySendMode_); + return result == null + ? com.google.cloud.networkservices.v1.BodySendMode.UNRECOGNIZED + : result; } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static final int RESPONSE_BODY_SEND_MODE_FIELD_NUMBER = 15; + private int responseBodySendMode_ = 0; - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authority_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, authority_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(service_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, service_); - } + /** + * + * + *
            +     * Optional. Configures the send mode for response processing. If
            +     * unspecified, the default value `STREAMED` is used.
            +     *
            +     * The field can only be set if `supported_events` includes `RESPONSE_BODY`.
            +     * If `supported_events` includes `RESPONSE_BODY`, but
            +     * `response_body_send_mode` is unset, the default value `STREAMED` is used.
            +     *
            +     * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
            +     * must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`.
            +     *
            +     * This field can be set only for `LbTrafficExtension` resources, and only
            +     * when the `service` field of the extension points to a `BackendService`.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.BodySendMode response_body_send_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for responseBodySendMode. + */ + @java.lang.Override + public int getResponseBodySendModeValue() { + return responseBodySendMode_; + } + + /** + * + * + *
            +     * Optional. Configures the send mode for response processing. If
            +     * unspecified, the default value `STREAMED` is used.
            +     *
            +     * The field can only be set if `supported_events` includes `RESPONSE_BODY`.
            +     * If `supported_events` includes `RESPONSE_BODY`, but
            +     * `response_body_send_mode` is unset, the default value `STREAMED` is used.
            +     *
            +     * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
            +     * must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`.
            +     *
            +     * This field can be set only for `LbTrafficExtension` resources, and only
            +     * when the `service` field of the extension points to a `BackendService`.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.BodySendMode response_body_send_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The responseBodySendMode. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.BodySendMode getResponseBodySendMode() { + com.google.cloud.networkservices.v1.BodySendMode result = + com.google.cloud.networkservices.v1.BodySendMode.forNumber(responseBodySendMode_); + return result == null + ? com.google.cloud.networkservices.v1.BodySendMode.UNRECOGNIZED + : result; + } + + public static final int OBSERVABILITY_MODE_FIELD_NUMBER = 16; + private boolean observabilityMode_ = false; + + /** + * + * + *
            +     * Optional. When set to `true`, the calls to the extension backend are
            +     * performed asynchronously, without pausing the processing of the ongoing
            +     * request. In this mode, only `STREAMED` (default) body processing is
            +     * supported. Responses, if any, are ignored.
            +     *
            +     * Supported by regional `LbTrafficExtension` and `LbRouteExtension`
            +     * resources.
            +     * 
            + * + * bool observability_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The observabilityMode. + */ + @java.lang.Override + public boolean getObservabilityMode() { + return observabilityMode_; + } + + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authority_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, authority_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(service_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, service_); + } + if (getSupportedEventsList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(supportedEventsMemoizedSerializedSize); + } + for (int i = 0; i < supportedEvents_.size(); i++) { + output.writeEnumNoTag(supportedEvents_.getInt(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getTimeout()); + } + if (failOpen_ != false) { + output.writeBool(6, failOpen_); + } + for (int i = 0; i < forwardHeaders_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, forwardHeaders_.getRaw(i)); + } + for (int i = 0; i < forwardAttributes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, forwardAttributes_.getRaw(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(9, getMetadata()); + } + if (requestBodySendMode_ + != com.google.cloud.networkservices.v1.BodySendMode.BODY_SEND_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(14, requestBodySendMode_); + } + if (responseBodySendMode_ + != com.google.cloud.networkservices.v1.BodySendMode.BODY_SEND_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(15, responseBodySendMode_); + } + if (observabilityMode_ != false) { + output.writeBool(16, observabilityMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authority_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, authority_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(service_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, service_); + } { int dataSize = 0; for (int i = 0; i < supportedEvents_.size(); i++) { @@ -2079,9 +2644,30 @@ public int getSerializedSize() { size += dataSize; size += 1 * getForwardHeadersList().size(); } + { + int dataSize = 0; + for (int i = 0; i < forwardAttributes_.size(); i++) { + dataSize += computeStringSizeNoTag(forwardAttributes_.getRaw(i)); + } + size += dataSize; + size += 1 * getForwardAttributesList().size(); + } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMetadata()); } + if (requestBodySendMode_ + != com.google.cloud.networkservices.v1.BodySendMode.BODY_SEND_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, requestBodySendMode_); + } + if (responseBodySendMode_ + != com.google.cloud.networkservices.v1.BodySendMode.BODY_SEND_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(15, responseBodySendMode_); + } + if (observabilityMode_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(16, observabilityMode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2108,10 +2694,14 @@ public boolean equals(final java.lang.Object obj) { } if (getFailOpen() != other.getFailOpen()) return false; if (!getForwardHeadersList().equals(other.getForwardHeadersList())) return false; + if (!getForwardAttributesList().equals(other.getForwardAttributesList())) return false; if (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { if (!getMetadata().equals(other.getMetadata())) return false; } + if (requestBodySendMode_ != other.requestBodySendMode_) return false; + if (responseBodySendMode_ != other.responseBodySendMode_) return false; + if (getObservabilityMode() != other.getObservabilityMode()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2143,10 +2733,20 @@ public int hashCode() { hash = (37 * hash) + FORWARD_HEADERS_FIELD_NUMBER; hash = (53 * hash) + getForwardHeadersList().hashCode(); } + if (getForwardAttributesCount() > 0) { + hash = (37 * hash) + FORWARD_ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + getForwardAttributesList().hashCode(); + } if (hasMetadata()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } + hash = (37 * hash) + REQUEST_BODY_SEND_MODE_FIELD_NUMBER; + hash = (53 * hash) + requestBodySendMode_; + hash = (37 * hash) + RESPONSE_BODY_SEND_MODE_FIELD_NUMBER; + hash = (53 * hash) + responseBodySendMode_; + hash = (37 * hash) + OBSERVABILITY_MODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getObservabilityMode()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2309,11 +2909,15 @@ public Builder clear() { } failOpen_ = false; forwardHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + forwardAttributes_ = com.google.protobuf.LazyStringArrayList.emptyList(); metadata_ = null; if (metadataBuilder_ != null) { metadataBuilder_.dispose(); metadataBuilder_ = null; } + requestBodySendMode_ = 0; + responseBodySendMode_ = 0; + observabilityMode_ = false; return this; } @@ -2378,9 +2982,22 @@ private void buildPartial0( result.forwardHeaders_ = forwardHeaders_; } if (((from_bitField0_ & 0x00000080) != 0)) { + forwardAttributes_.makeImmutable(); + result.forwardAttributes_ = forwardAttributes_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.requestBodySendMode_ = requestBodySendMode_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.responseBodySendMode_ = responseBodySendMode_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.observabilityMode_ = observabilityMode_; + } result.bitField0_ |= to_bitField0_; } @@ -2440,9 +3057,28 @@ public Builder mergeFrom(com.google.cloud.networkservices.v1.ExtensionChain.Exte } onChanged(); } + if (!other.forwardAttributes_.isEmpty()) { + if (forwardAttributes_.isEmpty()) { + forwardAttributes_ = other.forwardAttributes_; + bitField0_ |= 0x00000080; + } else { + ensureForwardAttributesIsMutable(); + forwardAttributes_.addAll(other.forwardAttributes_); + } + onChanged(); + } if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } + if (other.requestBodySendMode_ != 0) { + setRequestBodySendModeValue(other.getRequestBodySendModeValue()); + } + if (other.responseBodySendMode_ != 0) { + setResponseBodySendModeValue(other.getResponseBodySendModeValue()); + } + if (other.getObservabilityMode() != false) { + setObservabilityMode(other.getObservabilityMode()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2525,13 +3161,38 @@ public Builder mergeFrom( forwardHeaders_.add(s); break; } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureForwardAttributesIsMutable(); + forwardAttributes_.add(s); + break; + } // case 66 case 74: { input.readMessage( internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 74 + case 112: + { + requestBodySendMode_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 112 + case 120: + { + responseBodySendMode_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 120 + case 128: + { + observabilityMode_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 128 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2557,15 +3218,17 @@ public Builder mergeFrom( * * *
            -       * Required. The name for this extension.
            +       * Optional. The name for this extension.
                    * The name is logged as part of the HTTP request logs.
                    * The name must conform with RFC-1034, is restricted to lower-cased
                    * letters, numbers and hyphens, and can have a maximum length of 63
                    * characters. Additionally, the first character must be a letter and the
                    * last a letter or a number.
            +       *
            +       * This field is required except for AuthzExtension.
                    * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -2585,15 +3248,17 @@ public java.lang.String getName() { * * *
            -       * Required. The name for this extension.
            +       * Optional. The name for this extension.
                    * The name is logged as part of the HTTP request logs.
                    * The name must conform with RFC-1034, is restricted to lower-cased
                    * letters, numbers and hyphens, and can have a maximum length of 63
                    * characters. Additionally, the first character must be a letter and the
                    * last a letter or a number.
            +       *
            +       * This field is required except for AuthzExtension.
                    * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -2613,15 +3278,17 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -       * Required. The name for this extension.
            +       * Optional. The name for this extension.
                    * The name is logged as part of the HTTP request logs.
                    * The name must conform with RFC-1034, is restricted to lower-cased
                    * letters, numbers and hyphens, and can have a maximum length of 63
                    * characters. Additionally, the first character must be a letter and the
                    * last a letter or a number.
            +       *
            +       * This field is required except for AuthzExtension.
                    * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The name to set. * @return This builder for chaining. @@ -2640,15 +3307,17 @@ public Builder setName(java.lang.String value) { * * *
            -       * Required. The name for this extension.
            +       * Optional. The name for this extension.
                    * The name is logged as part of the HTTP request logs.
                    * The name must conform with RFC-1034, is restricted to lower-cased
                    * letters, numbers and hyphens, and can have a maximum length of 63
                    * characters. Additionally, the first character must be a letter and the
                    * last a letter or a number.
            +       *
            +       * This field is required except for AuthzExtension.
                    * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2663,15 +3332,17 @@ public Builder clearName() { * * *
            -       * Required. The name for this extension.
            +       * Optional. The name for this extension.
                    * The name is logged as part of the HTTP request logs.
                    * The name must conform with RFC-1034, is restricted to lower-cased
                    * letters, numbers and hyphens, and can have a maximum length of 63
                    * characters. Additionally, the first character must be a letter and the
                    * last a letter or a number.
            +       *
            +       * This field is required except for AuthzExtension.
                    * 
            * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -3062,6 +3733,10 @@ private void ensureSupportedEventsIsMutable() { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3091,6 +3766,10 @@ private void ensureSupportedEventsIsMutable() { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3117,6 +3796,10 @@ public int getSupportedEventsCount() { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3144,6 +3827,10 @@ public com.google.cloud.networkservices.v1.EventType getSupportedEvents(int inde * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3179,6 +3866,10 @@ public Builder setSupportedEvents( * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3212,6 +3903,10 @@ public Builder addSupportedEvents(com.google.cloud.networkservices.v1.EventType * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3245,6 +3940,10 @@ public Builder addAllSupportedEvents( * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3274,6 +3973,10 @@ public Builder clearSupportedEvents() { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3301,6 +4004,10 @@ public java.util.List getSupportedEventsValueList() { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3328,6 +4035,10 @@ public int getSupportedEventsValue(int index) { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3359,6 +4070,10 @@ public Builder setSupportedEventsValue(int index, int value) { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3389,6 +4104,10 @@ public Builder addSupportedEventsValue(int value) { * * For the `LbEdgeExtension` resource, this field is required and must only * contain `REQUEST_HEADERS` event. + * + * For the `AuthzExtension` resource, this field is optional. + * `REQUEST_HEADERS` is the only supported event. If unspecified, + * `REQUEST_HEADERS` event is assumed as supported. * * * @@ -3947,112 +4666,385 @@ public Builder addForwardHeadersBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.protobuf.Struct metadata_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - metadataBuilder_; + private com.google.protobuf.LazyStringArrayList forwardAttributes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureForwardAttributesIsMutable() { + if (!forwardAttributes_.isModifiable()) { + forwardAttributes_ = new com.google.protobuf.LazyStringArrayList(forwardAttributes_); + } + bitField0_ |= 0x00000080; + } /** * * *
            -       * Optional. The metadata provided here is included as part of the
            -       * `metadata_context` (of type `google.protobuf.Struct`) in the
            -       * `ProcessingRequest` message sent to the extension server.
            -       *
            -       * The metadata is available under the namespace
            -       * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
            -       * For example:
            -       * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
            -       *
            -       * The following variables are supported in the metadata:
            -       *
            -       * `{forwarding_rule_id}` - substituted with the forwarding rule's fully
            -       * qualified resource name.
            +       * Optional. List of the Envoy attributes to forward to the extension
            +       * server. The attributes provided here are included as part of the
            +       * `ProcessingRequest.attributes` field (of type
            +       * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +       * names. Refer to the
            +       * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +       * for the names of attributes that can be forwarded. If omitted, no
            +       * attributes are sent. Each element is a string indicating the
            +       * attribute name.
            +       * 
            * - * This field must not be set for plugin extensions. Setting it results in - * a validation error. + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * - * You can set metadata at either the resource level or the extension level. - * The extension level metadata is recommended because you can pass a - * different set of metadata through each extension to the backend. + * @return A list containing the forwardAttributes. + */ + public com.google.protobuf.ProtocolStringList getForwardAttributesList() { + forwardAttributes_.makeImmutable(); + return forwardAttributes_; + } + + /** * - * This field is subject to following limitations: * - * * The total size of the metadata must be less than 1KiB. - * * The total number of keys in the metadata must be less than 16. - * * The length of each key must be less than 64 characters. - * * The length of each value must be less than 1024 characters. - * * All values must be strings. + *
            +       * Optional. List of the Envoy attributes to forward to the extension
            +       * server. The attributes provided here are included as part of the
            +       * `ProcessingRequest.attributes` field (of type
            +       * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +       * names. Refer to the
            +       * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +       * for the names of attributes that can be forwarded. If omitted, no
            +       * attributes are sent. Each element is a string indicating the
            +       * attribute name.
                    * 
            * - * .google.protobuf.Struct metadata = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the metadata field is set. + * @return The count of forwardAttributes. */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000080) != 0); + public int getForwardAttributesCount() { + return forwardAttributes_.size(); } /** * * *
            -       * Optional. The metadata provided here is included as part of the
            -       * `metadata_context` (of type `google.protobuf.Struct`) in the
            -       * `ProcessingRequest` message sent to the extension server.
            +       * Optional. List of the Envoy attributes to forward to the extension
            +       * server. The attributes provided here are included as part of the
            +       * `ProcessingRequest.attributes` field (of type
            +       * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +       * names. Refer to the
            +       * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +       * for the names of attributes that can be forwarded. If omitted, no
            +       * attributes are sent. Each element is a string indicating the
            +       * attribute name.
            +       * 
            * - * The metadata is available under the namespace - * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`. - * For example: - * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * - * The following variables are supported in the metadata: + * @param index The index of the element to return. + * @return The forwardAttributes at the given index. + */ + public java.lang.String getForwardAttributes(int index) { + return forwardAttributes_.get(index); + } + + /** * - * `{forwarding_rule_id}` - substituted with the forwarding rule's fully - * qualified resource name. * - * This field must not be set for plugin extensions. Setting it results in - * a validation error. + *
            +       * Optional. List of the Envoy attributes to forward to the extension
            +       * server. The attributes provided here are included as part of the
            +       * `ProcessingRequest.attributes` field (of type
            +       * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +       * names. Refer to the
            +       * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +       * for the names of attributes that can be forwarded. If omitted, no
            +       * attributes are sent. Each element is a string indicating the
            +       * attribute name.
            +       * 
            * - * You can set metadata at either the resource level or the extension level. - * The extension level metadata is recommended because you can pass a - * different set of metadata through each extension to the backend. + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * * - * This field is subject to following limitations: + * @param index The index of the value to return. + * @return The bytes of the forwardAttributes at the given index. + */ + public com.google.protobuf.ByteString getForwardAttributesBytes(int index) { + return forwardAttributes_.getByteString(index); + } + + /** * - * * The total size of the metadata must be less than 1KiB. - * * The total number of keys in the metadata must be less than 16. - * * The length of each key must be less than 64 characters. - * * The length of each value must be less than 1024 characters. - * * All values must be strings. + * + *
            +       * Optional. List of the Envoy attributes to forward to the extension
            +       * server. The attributes provided here are included as part of the
            +       * `ProcessingRequest.attributes` field (of type
            +       * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +       * names. Refer to the
            +       * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +       * for the names of attributes that can be forwarded. If omitted, no
            +       * attributes are sent. Each element is a string indicating the
            +       * attribute name.
                    * 
            * - * .google.protobuf.Struct metadata = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The metadata. + * @param index The index to set the value at. + * @param value The forwardAttributes to set. + * @return This builder for chaining. */ - public com.google.protobuf.Struct getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); + public Builder setForwardAttributes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + ensureForwardAttributesIsMutable(); + forwardAttributes_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; } /** * * *
            -       * Optional. The metadata provided here is included as part of the
            -       * `metadata_context` (of type `google.protobuf.Struct`) in the
            -       * `ProcessingRequest` message sent to the extension server.
            +       * Optional. List of the Envoy attributes to forward to the extension
            +       * server. The attributes provided here are included as part of the
            +       * `ProcessingRequest.attributes` field (of type
            +       * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +       * names. Refer to the
            +       * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +       * for the names of attributes that can be forwarded. If omitted, no
            +       * attributes are sent. Each element is a string indicating the
            +       * attribute name.
            +       * 
            * - * The metadata is available under the namespace + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The forwardAttributes to add. + * @return This builder for chaining. + */ + public Builder addForwardAttributes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureForwardAttributesIsMutable(); + forwardAttributes_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. List of the Envoy attributes to forward to the extension
            +       * server. The attributes provided here are included as part of the
            +       * `ProcessingRequest.attributes` field (of type
            +       * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +       * names. Refer to the
            +       * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +       * for the names of attributes that can be forwarded. If omitted, no
            +       * attributes are sent. Each element is a string indicating the
            +       * attribute name.
            +       * 
            + * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The forwardAttributes to add. + * @return This builder for chaining. + */ + public Builder addAllForwardAttributes(java.lang.Iterable values) { + ensureForwardAttributesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, forwardAttributes_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. List of the Envoy attributes to forward to the extension
            +       * server. The attributes provided here are included as part of the
            +       * `ProcessingRequest.attributes` field (of type
            +       * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +       * names. Refer to the
            +       * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +       * for the names of attributes that can be forwarded. If omitted, no
            +       * attributes are sent. Each element is a string indicating the
            +       * attribute name.
            +       * 
            + * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearForwardAttributes() { + forwardAttributes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. List of the Envoy attributes to forward to the extension
            +       * server. The attributes provided here are included as part of the
            +       * `ProcessingRequest.attributes` field (of type
            +       * `map<string, google.protobuf.Struct>`), where the keys are the attribute
            +       * names. Refer to the
            +       * [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes)
            +       * for the names of attributes that can be forwarded. If omitted, no
            +       * attributes are sent. Each element is a string indicating the
            +       * attribute name.
            +       * 
            + * + * repeated string forward_attributes = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the forwardAttributes to add. + * @return This builder for chaining. + */ + public Builder addForwardAttributesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureForwardAttributesIsMutable(); + forwardAttributes_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private com.google.protobuf.Struct metadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + metadataBuilder_; + + /** + * + * + *
            +       * Optional. The metadata provided here is included as part of the
            +       * `metadata_context` (of type `google.protobuf.Struct`) in the
            +       * `ProcessingRequest` message sent to the extension server.
            +       *
            +       * For `AuthzExtension` resources, the metadata is available under the
            +       * namespace `com.google.authz_extension.<resource_name>`.
            +       * For other types of extensions, the metadata is available under the
            +       * namespace
            +       * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
            +       * For example:
            +       * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
            +       *
            +       * The following variables are supported in the metadata:
            +       *
            +       * `{forwarding_rule_id}` - substituted with the forwarding rule's fully
            +       * qualified resource name.
            +       *
            +       * This field must not be set for plugin extensions. Setting it results in
            +       * a validation error.
            +       *
            +       * You can set metadata at either the resource level or the extension level.
            +       * The extension level metadata is recommended because you can pass a
            +       * different set of metadata through each extension to the backend.
            +       *
            +       * This field is subject to following limitations:
            +       *
            +       * * The total size of the metadata must be less than 1KiB.
            +       * * The total number of keys in the metadata must be less than 16.
            +       * * The length of each key must be less than 64 characters.
            +       * * The length of each value must be less than 1024 characters.
            +       * * All values must be strings.
            +       * 
            + * + * .google.protobuf.Struct metadata = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
            +       * Optional. The metadata provided here is included as part of the
            +       * `metadata_context` (of type `google.protobuf.Struct`) in the
            +       * `ProcessingRequest` message sent to the extension server.
            +       *
            +       * For `AuthzExtension` resources, the metadata is available under the
            +       * namespace `com.google.authz_extension.<resource_name>`.
            +       * For other types of extensions, the metadata is available under the
            +       * namespace
            +       * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
            +       * For example:
            +       * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
            +       *
            +       * The following variables are supported in the metadata:
            +       *
            +       * `{forwarding_rule_id}` - substituted with the forwarding rule's fully
            +       * qualified resource name.
            +       *
            +       * This field must not be set for plugin extensions. Setting it results in
            +       * a validation error.
            +       *
            +       * You can set metadata at either the resource level or the extension level.
            +       * The extension level metadata is recommended because you can pass a
            +       * different set of metadata through each extension to the backend.
            +       *
            +       * This field is subject to following limitations:
            +       *
            +       * * The total size of the metadata must be less than 1KiB.
            +       * * The total number of keys in the metadata must be less than 16.
            +       * * The length of each key must be less than 64 characters.
            +       * * The length of each value must be less than 1024 characters.
            +       * * All values must be strings.
            +       * 
            + * + * .google.protobuf.Struct metadata = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metadata. + */ + public com.google.protobuf.Struct getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. The metadata provided here is included as part of the
            +       * `metadata_context` (of type `google.protobuf.Struct`) in the
            +       * `ProcessingRequest` message sent to the extension server.
            +       *
            +       * For `AuthzExtension` resources, the metadata is available under the
            +       * namespace `com.google.authz_extension.<resource_name>`.
            +       * For other types of extensions, the metadata is available under the
            +       * namespace
                    * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
                    * For example:
                    * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
            @@ -4090,7 +5082,7 @@ public Builder setMetadata(com.google.protobuf.Struct value) {
                     } else {
                       metadataBuilder_.setMessage(value);
                     }
            -        bitField0_ |= 0x00000080;
            +        bitField0_ |= 0x00000100;
                     onChanged();
                     return this;
                   }
            @@ -4103,7 +5095,10 @@ public Builder setMetadata(com.google.protobuf.Struct value) {
                    * `metadata_context` (of type `google.protobuf.Struct`) in the
                    * `ProcessingRequest` message sent to the extension server.
                    *
            -       * The metadata is available under the namespace
            +       * For `AuthzExtension` resources, the metadata is available under the
            +       * namespace `com.google.authz_extension.<resource_name>`.
            +       * For other types of extensions, the metadata is available under the
            +       * namespace
                    * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
                    * For example:
                    * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
            @@ -4138,7 +5133,7 @@ public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) {
                     } else {
                       metadataBuilder_.setMessage(builderForValue.build());
                     }
            -        bitField0_ |= 0x00000080;
            +        bitField0_ |= 0x00000100;
                     onChanged();
                     return this;
                   }
            @@ -4151,7 +5146,10 @@ public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) {
                    * `metadata_context` (of type `google.protobuf.Struct`) in the
                    * `ProcessingRequest` message sent to the extension server.
                    *
            -       * The metadata is available under the namespace
            +       * For `AuthzExtension` resources, the metadata is available under the
            +       * namespace `com.google.authz_extension.<resource_name>`.
            +       * For other types of extensions, the metadata is available under the
            +       * namespace
                    * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
                    * For example:
                    * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
            @@ -4182,7 +5180,7 @@ public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) {
                    */
                   public Builder mergeMetadata(com.google.protobuf.Struct value) {
                     if (metadataBuilder_ == null) {
            -          if (((bitField0_ & 0x00000080) != 0)
            +          if (((bitField0_ & 0x00000100) != 0)
                           && metadata_ != null
                           && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) {
                         getMetadataBuilder().mergeFrom(value);
            @@ -4193,7 +5191,7 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) {
                       metadataBuilder_.mergeFrom(value);
                     }
                     if (metadata_ != null) {
            -          bitField0_ |= 0x00000080;
            +          bitField0_ |= 0x00000100;
                       onChanged();
                     }
                     return this;
            @@ -4207,7 +5205,10 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) {
                    * `metadata_context` (of type `google.protobuf.Struct`) in the
                    * `ProcessingRequest` message sent to the extension server.
                    *
            -       * The metadata is available under the namespace
            +       * For `AuthzExtension` resources, the metadata is available under the
            +       * namespace `com.google.authz_extension.<resource_name>`.
            +       * For other types of extensions, the metadata is available under the
            +       * namespace
                    * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
                    * For example:
                    * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
            @@ -4237,7 +5238,7 @@ public Builder mergeMetadata(com.google.protobuf.Struct value) {
                    * 
                    */
                   public Builder clearMetadata() {
            -        bitField0_ = (bitField0_ & ~0x00000080);
            +        bitField0_ = (bitField0_ & ~0x00000100);
                     metadata_ = null;
                     if (metadataBuilder_ != null) {
                       metadataBuilder_.dispose();
            @@ -4255,7 +5256,10 @@ public Builder clearMetadata() {
                    * `metadata_context` (of type `google.protobuf.Struct`) in the
                    * `ProcessingRequest` message sent to the extension server.
                    *
            -       * The metadata is available under the namespace
            +       * For `AuthzExtension` resources, the metadata is available under the
            +       * namespace `com.google.authz_extension.<resource_name>`.
            +       * For other types of extensions, the metadata is available under the
            +       * namespace
                    * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
                    * For example:
                    * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
            @@ -4285,7 +5289,7 @@ public Builder clearMetadata() {
                    * 
                    */
                   public com.google.protobuf.Struct.Builder getMetadataBuilder() {
            -        bitField0_ |= 0x00000080;
            +        bitField0_ |= 0x00000100;
                     onChanged();
                     return internalGetMetadataFieldBuilder().getBuilder();
                   }
            @@ -4298,7 +5302,10 @@ public com.google.protobuf.Struct.Builder getMetadataBuilder() {
                    * `metadata_context` (of type `google.protobuf.Struct`) in the
                    * `ProcessingRequest` message sent to the extension server.
                    *
            -       * The metadata is available under the namespace
            +       * For `AuthzExtension` resources, the metadata is available under the
            +       * namespace `com.google.authz_extension.<resource_name>`.
            +       * For other types of extensions, the metadata is available under the
            +       * namespace
                    * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
                    * For example:
                    * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
            @@ -4343,7 +5350,10 @@ public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
                    * `metadata_context` (of type `google.protobuf.Struct`) in the
                    * `ProcessingRequest` message sent to the extension server.
                    *
            -       * The metadata is available under the namespace
            +       * For `AuthzExtension` resources, the metadata is available under the
            +       * namespace `com.google.authz_extension.<resource_name>`.
            +       * For other types of extensions, the metadata is available under the
            +       * namespace
                    * `com.google.<extension_type>.<resource_name>.<extension_chain_name>.<extension_name>`.
                    * For example:
                    * `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`.
            @@ -4389,6 +5399,416 @@ public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() {
                     return metadataBuilder_;
                   }
             
            +      private int requestBodySendMode_ = 0;
            +
            +      /**
            +       *
            +       *
            +       * 
            +       * Optional. Configures the send mode for request body processing.
            +       *
            +       * The field can only be set if `supported_events` includes `REQUEST_BODY`.
            +       * If `supported_events` includes `REQUEST_BODY`,
            +       * but `request_body_send_mode` is unset, the default value `STREAMED` is
            +       * used.
            +       *
            +       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
            +       * must include both `REQUEST_BODY` and `REQUEST_TRAILERS`.
            +       *
            +       * This field can be set only for `LbTrafficExtension` and
            +       * `LbRouteExtension` resources, and only when the `service` field of the
            +       * extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode
            +       * is supported for `LbRouteExtension` resources.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.BodySendMode request_body_send_mode = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for requestBodySendMode. + */ + @java.lang.Override + public int getRequestBodySendModeValue() { + return requestBodySendMode_; + } + + /** + * + * + *
            +       * Optional. Configures the send mode for request body processing.
            +       *
            +       * The field can only be set if `supported_events` includes `REQUEST_BODY`.
            +       * If `supported_events` includes `REQUEST_BODY`,
            +       * but `request_body_send_mode` is unset, the default value `STREAMED` is
            +       * used.
            +       *
            +       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
            +       * must include both `REQUEST_BODY` and `REQUEST_TRAILERS`.
            +       *
            +       * This field can be set only for `LbTrafficExtension` and
            +       * `LbRouteExtension` resources, and only when the `service` field of the
            +       * extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode
            +       * is supported for `LbRouteExtension` resources.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.BodySendMode request_body_send_mode = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for requestBodySendMode to set. + * @return This builder for chaining. + */ + public Builder setRequestBodySendModeValue(int value) { + requestBodySendMode_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Configures the send mode for request body processing.
            +       *
            +       * The field can only be set if `supported_events` includes `REQUEST_BODY`.
            +       * If `supported_events` includes `REQUEST_BODY`,
            +       * but `request_body_send_mode` is unset, the default value `STREAMED` is
            +       * used.
            +       *
            +       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
            +       * must include both `REQUEST_BODY` and `REQUEST_TRAILERS`.
            +       *
            +       * This field can be set only for `LbTrafficExtension` and
            +       * `LbRouteExtension` resources, and only when the `service` field of the
            +       * extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode
            +       * is supported for `LbRouteExtension` resources.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.BodySendMode request_body_send_mode = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The requestBodySendMode. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.BodySendMode getRequestBodySendMode() { + com.google.cloud.networkservices.v1.BodySendMode result = + com.google.cloud.networkservices.v1.BodySendMode.forNumber(requestBodySendMode_); + return result == null + ? com.google.cloud.networkservices.v1.BodySendMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Optional. Configures the send mode for request body processing.
            +       *
            +       * The field can only be set if `supported_events` includes `REQUEST_BODY`.
            +       * If `supported_events` includes `REQUEST_BODY`,
            +       * but `request_body_send_mode` is unset, the default value `STREAMED` is
            +       * used.
            +       *
            +       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
            +       * must include both `REQUEST_BODY` and `REQUEST_TRAILERS`.
            +       *
            +       * This field can be set only for `LbTrafficExtension` and
            +       * `LbRouteExtension` resources, and only when the `service` field of the
            +       * extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode
            +       * is supported for `LbRouteExtension` resources.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.BodySendMode request_body_send_mode = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The requestBodySendMode to set. + * @return This builder for chaining. + */ + public Builder setRequestBodySendMode( + com.google.cloud.networkservices.v1.BodySendMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + requestBodySendMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Configures the send mode for request body processing.
            +       *
            +       * The field can only be set if `supported_events` includes `REQUEST_BODY`.
            +       * If `supported_events` includes `REQUEST_BODY`,
            +       * but `request_body_send_mode` is unset, the default value `STREAMED` is
            +       * used.
            +       *
            +       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
            +       * must include both `REQUEST_BODY` and `REQUEST_TRAILERS`.
            +       *
            +       * This field can be set only for `LbTrafficExtension` and
            +       * `LbRouteExtension` resources, and only when the `service` field of the
            +       * extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode
            +       * is supported for `LbRouteExtension` resources.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.BodySendMode request_body_send_mode = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRequestBodySendMode() { + bitField0_ = (bitField0_ & ~0x00000200); + requestBodySendMode_ = 0; + onChanged(); + return this; + } + + private int responseBodySendMode_ = 0; + + /** + * + * + *
            +       * Optional. Configures the send mode for response processing. If
            +       * unspecified, the default value `STREAMED` is used.
            +       *
            +       * The field can only be set if `supported_events` includes `RESPONSE_BODY`.
            +       * If `supported_events` includes `RESPONSE_BODY`, but
            +       * `response_body_send_mode` is unset, the default value `STREAMED` is used.
            +       *
            +       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
            +       * must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`.
            +       *
            +       * This field can be set only for `LbTrafficExtension` resources, and only
            +       * when the `service` field of the extension points to a `BackendService`.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.BodySendMode response_body_send_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for responseBodySendMode. + */ + @java.lang.Override + public int getResponseBodySendModeValue() { + return responseBodySendMode_; + } + + /** + * + * + *
            +       * Optional. Configures the send mode for response processing. If
            +       * unspecified, the default value `STREAMED` is used.
            +       *
            +       * The field can only be set if `supported_events` includes `RESPONSE_BODY`.
            +       * If `supported_events` includes `RESPONSE_BODY`, but
            +       * `response_body_send_mode` is unset, the default value `STREAMED` is used.
            +       *
            +       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
            +       * must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`.
            +       *
            +       * This field can be set only for `LbTrafficExtension` resources, and only
            +       * when the `service` field of the extension points to a `BackendService`.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.BodySendMode response_body_send_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for responseBodySendMode to set. + * @return This builder for chaining. + */ + public Builder setResponseBodySendModeValue(int value) { + responseBodySendMode_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Configures the send mode for response processing. If
            +       * unspecified, the default value `STREAMED` is used.
            +       *
            +       * The field can only be set if `supported_events` includes `RESPONSE_BODY`.
            +       * If `supported_events` includes `RESPONSE_BODY`, but
            +       * `response_body_send_mode` is unset, the default value `STREAMED` is used.
            +       *
            +       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
            +       * must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`.
            +       *
            +       * This field can be set only for `LbTrafficExtension` resources, and only
            +       * when the `service` field of the extension points to a `BackendService`.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.BodySendMode response_body_send_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The responseBodySendMode. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.BodySendMode getResponseBodySendMode() { + com.google.cloud.networkservices.v1.BodySendMode result = + com.google.cloud.networkservices.v1.BodySendMode.forNumber(responseBodySendMode_); + return result == null + ? com.google.cloud.networkservices.v1.BodySendMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Optional. Configures the send mode for response processing. If
            +       * unspecified, the default value `STREAMED` is used.
            +       *
            +       * The field can only be set if `supported_events` includes `RESPONSE_BODY`.
            +       * If `supported_events` includes `RESPONSE_BODY`, but
            +       * `response_body_send_mode` is unset, the default value `STREAMED` is used.
            +       *
            +       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
            +       * must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`.
            +       *
            +       * This field can be set only for `LbTrafficExtension` resources, and only
            +       * when the `service` field of the extension points to a `BackendService`.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.BodySendMode response_body_send_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The responseBodySendMode to set. + * @return This builder for chaining. + */ + public Builder setResponseBodySendMode( + com.google.cloud.networkservices.v1.BodySendMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + responseBodySendMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Configures the send mode for response processing. If
            +       * unspecified, the default value `STREAMED` is used.
            +       *
            +       * The field can only be set if `supported_events` includes `RESPONSE_BODY`.
            +       * If `supported_events` includes `RESPONSE_BODY`, but
            +       * `response_body_send_mode` is unset, the default value `STREAMED` is used.
            +       *
            +       * When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events`
            +       * must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`.
            +       *
            +       * This field can be set only for `LbTrafficExtension` resources, and only
            +       * when the `service` field of the extension points to a `BackendService`.
            +       * 
            + * + * + * .google.cloud.networkservices.v1.BodySendMode response_body_send_mode = 15 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearResponseBodySendMode() { + bitField0_ = (bitField0_ & ~0x00000400); + responseBodySendMode_ = 0; + onChanged(); + return this; + } + + private boolean observabilityMode_; + + /** + * + * + *
            +       * Optional. When set to `true`, the calls to the extension backend are
            +       * performed asynchronously, without pausing the processing of the ongoing
            +       * request. In this mode, only `STREAMED` (default) body processing is
            +       * supported. Responses, if any, are ignored.
            +       *
            +       * Supported by regional `LbTrafficExtension` and `LbRouteExtension`
            +       * resources.
            +       * 
            + * + * bool observability_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The observabilityMode. + */ + @java.lang.Override + public boolean getObservabilityMode() { + return observabilityMode_; + } + + /** + * + * + *
            +       * Optional. When set to `true`, the calls to the extension backend are
            +       * performed asynchronously, without pausing the processing of the ongoing
            +       * request. In this mode, only `STREAMED` (default) body processing is
            +       * supported. Responses, if any, are ignored.
            +       *
            +       * Supported by regional `LbTrafficExtension` and `LbRouteExtension`
            +       * resources.
            +       * 
            + * + * bool observability_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The observabilityMode to set. + * @return This builder for chaining. + */ + public Builder setObservabilityMode(boolean value) { + + observabilityMode_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. When set to `true`, the calls to the extension backend are
            +       * performed asynchronously, without pausing the processing of the ongoing
            +       * request. In this mode, only `STREAMED` (default) body processing is
            +       * supported. Responses, if any, are ignored.
            +       *
            +       * Supported by regional `LbTrafficExtension` and `LbRouteExtension`
            +       * resources.
            +       * 
            + * + * bool observability_mode = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearObservabilityMode() { + bitField0_ = (bitField0_ & ~0x00000800); + observabilityMode_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.ExtensionChain.Extension) } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/Gateway.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/Gateway.java index 5d59c2b2036d..7ed24ccea7cc 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/Gateway.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/Gateway.java @@ -1128,7 +1128,7 @@ public com.google.protobuf.ByteString getAddressesBytes(int index) { *
                * Required. One or more port numbers (1-65535), on which the Gateway will
                * receive traffic. The proxy binds to the specified ports.
            -   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
            +   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
                * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
                * support multiple ports.
                * 
            @@ -1148,7 +1148,7 @@ public java.util.List getPortsList() { *
                * Required. One or more port numbers (1-65535), on which the Gateway will
                * receive traffic. The proxy binds to the specified ports.
            -   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
            +   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
                * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
                * support multiple ports.
                * 
            @@ -1167,7 +1167,7 @@ public int getPortsCount() { *
                * Required. One or more port numbers (1-65535), on which the Gateway will
                * receive traffic. The proxy binds to the specified ports.
            -   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
            +   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
                * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
                * support multiple ports.
                * 
            @@ -1183,6 +1183,27 @@ public int getPorts(int index) { private int portsMemoizedSerializedSize = -1; + public static final int ALL_PORTS_FIELD_NUMBER = 34; + private boolean allPorts_ = false; + + /** + * + * + *
            +   * Optional. If true, the Gateway will listen on all ports. This is mutually
            +   * exclusive with the `ports` field. This field only applies to gateways of
            +   * type 'SECURE_WEB_GATEWAY'.
            +   * 
            + * + * bool all_ports = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allPorts. + */ + @java.lang.Override + public boolean getAllPorts() { + return allPorts_; + } + public static final int SCOPE_FIELD_NUMBER = 8; @SuppressWarnings("serial") @@ -1751,6 +1772,27 @@ public com.google.cloud.networkservices.v1.Gateway.RoutingMode getRoutingMode() : result; } + public static final int ALLOW_GLOBAL_ACCESS_FIELD_NUMBER = 33; + private boolean allowGlobalAccess_ = false; + + /** + * + * + *
            +   * Optional. If true, the gateway will allow traffic from clients outside of
            +   * the region where the gateway is located.
            +   * This field is configurable only for gateways of type SECURE_WEB_GATEWAY.
            +   * 
            + * + * bool allow_global_access = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowGlobalAccess. + */ + @java.lang.Override + public boolean getAllowGlobalAccess() { + return allowGlobalAccess_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1827,6 +1869,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(32, routingMode_); } + if (allowGlobalAccess_ != false) { + output.writeBool(33, allowGlobalAccess_); + } + if (allPorts_ != false) { + output.writeBool(34, allPorts_); + } getUnknownFields().writeTo(output); } @@ -1920,6 +1968,12 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(32, routingMode_); } + if (allowGlobalAccess_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(33, allowGlobalAccess_); + } + if (allPorts_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(34, allPorts_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1951,6 +2005,7 @@ public boolean equals(final java.lang.Object obj) { if (type_ != other.type_) return false; if (!getAddressesList().equals(other.getAddressesList())) return false; if (!getPortsList().equals(other.getPortsList())) return false; + if (getAllPorts() != other.getAllPorts()) return false; if (!getScope().equals(other.getScope())) return false; if (!getServerTlsPolicy().equals(other.getServerTlsPolicy())) return false; if (!getCertificateUrlsList().equals(other.getCertificateUrlsList())) return false; @@ -1963,6 +2018,7 @@ public boolean equals(final java.lang.Object obj) { if (envoyHeaders_ != other.envoyHeaders_) return false; } if (routingMode_ != other.routingMode_) return false; + if (getAllowGlobalAccess() != other.getAllowGlobalAccess()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2002,6 +2058,8 @@ public int hashCode() { hash = (37 * hash) + PORTS_FIELD_NUMBER; hash = (53 * hash) + getPortsList().hashCode(); } + hash = (37 * hash) + ALL_PORTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllPorts()); hash = (37 * hash) + SCOPE_FIELD_NUMBER; hash = (53 * hash) + getScope().hashCode(); hash = (37 * hash) + SERVER_TLS_POLICY_FIELD_NUMBER; @@ -2024,6 +2082,8 @@ public int hashCode() { } hash = (37 * hash) + ROUTING_MODE_FIELD_NUMBER; hash = (53 * hash) + routingMode_; + hash = (37 * hash) + ALLOW_GLOBAL_ACCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowGlobalAccess()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2216,6 +2276,7 @@ public Builder clear() { type_ = 0; addresses_ = com.google.protobuf.LazyStringArrayList.emptyList(); ports_ = emptyIntList(); + allPorts_ = false; scope_ = ""; serverTlsPolicy_ = ""; certificateUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); @@ -2225,6 +2286,7 @@ public Builder clear() { ipVersion_ = 0; envoyHeaders_ = 0; routingMode_ = 0; + allowGlobalAccess_ = false; return this; } @@ -2295,34 +2357,40 @@ private void buildPartial0(com.google.cloud.networkservices.v1.Gateway result) { result.ports_ = ports_; } if (((from_bitField0_ & 0x00000200) != 0)) { - result.scope_ = scope_; + result.allPorts_ = allPorts_; } if (((from_bitField0_ & 0x00000400) != 0)) { - result.serverTlsPolicy_ = serverTlsPolicy_; + result.scope_ = scope_; } if (((from_bitField0_ & 0x00000800) != 0)) { + result.serverTlsPolicy_ = serverTlsPolicy_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { certificateUrls_.makeImmutable(); result.certificateUrls_ = certificateUrls_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.gatewaySecurityPolicy_ = gatewaySecurityPolicy_; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.network_ = network_; } - if (((from_bitField0_ & 0x00004000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.subnetwork_ = subnetwork_; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.ipVersion_ = ipVersion_; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.envoyHeaders_ = envoyHeaders_; to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.routingMode_ = routingMode_; } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.allowGlobalAccess_ = allowGlobalAccess_; + } result.bitField0_ |= to_bitField0_; } @@ -2385,20 +2453,23 @@ public Builder mergeFrom(com.google.cloud.networkservices.v1.Gateway other) { } onChanged(); } + if (other.getAllPorts() != false) { + setAllPorts(other.getAllPorts()); + } if (!other.getScope().isEmpty()) { scope_ = other.scope_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } if (!other.getServerTlsPolicy().isEmpty()) { serverTlsPolicy_ = other.serverTlsPolicy_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } if (!other.certificateUrls_.isEmpty()) { if (certificateUrls_.isEmpty()) { certificateUrls_ = other.certificateUrls_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } else { ensureCertificateUrlsIsMutable(); certificateUrls_.addAll(other.certificateUrls_); @@ -2407,17 +2478,17 @@ public Builder mergeFrom(com.google.cloud.networkservices.v1.Gateway other) { } if (!other.getGatewaySecurityPolicy().isEmpty()) { gatewaySecurityPolicy_ = other.gatewaySecurityPolicy_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } if (!other.getNetwork().isEmpty()) { network_ = other.network_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } if (!other.getSubnetwork().isEmpty()) { subnetwork_ = other.subnetwork_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } if (other.ipVersion_ != 0) { @@ -2429,6 +2500,9 @@ public Builder mergeFrom(com.google.cloud.networkservices.v1.Gateway other) { if (other.routingMode_ != 0) { setRoutingModeValue(other.getRoutingModeValue()); } + if (other.getAllowGlobalAccess() != false) { + setAllowGlobalAccess(other.getAllowGlobalAccess()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2509,13 +2583,13 @@ public Builder mergeFrom( case 66: { scope_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 66 case 74: { serverTlsPolicy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 74 case 88: @@ -2552,39 +2626,51 @@ public Builder mergeFrom( case 130: { network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 130 case 138: { subnetwork_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 138 case 146: { gatewaySecurityPolicy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 146 case 168: { ipVersion_ = input.readEnum(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 168 case 224: { envoyHeaders_ = input.readEnum(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 224 case 256: { routingMode_ = input.readEnum(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 256 + case 264: + { + allowGlobalAccess_ = input.readBool(); + bitField0_ |= 0x00080000; + break; + } // case 264 + case 272: + { + allPorts_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 272 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3916,7 +4002,7 @@ private void ensurePortsIsMutable() { *
                  * Required. One or more port numbers (1-65535), on which the Gateway will
                  * receive traffic. The proxy binds to the specified ports.
            -     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
            +     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
                  * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
                  * support multiple ports.
                  * 
            @@ -3936,7 +4022,7 @@ public java.util.List getPortsList() { *
                  * Required. One or more port numbers (1-65535), on which the Gateway will
                  * receive traffic. The proxy binds to the specified ports.
            -     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
            +     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
                  * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
                  * support multiple ports.
                  * 
            @@ -3955,7 +4041,7 @@ public int getPortsCount() { *
                  * Required. One or more port numbers (1-65535), on which the Gateway will
                  * receive traffic. The proxy binds to the specified ports.
            -     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
            +     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
                  * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
                  * support multiple ports.
                  * 
            @@ -3975,7 +4061,7 @@ public int getPorts(int index) { *
                  * Required. One or more port numbers (1-65535), on which the Gateway will
                  * receive traffic. The proxy binds to the specified ports.
            -     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
            +     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
                  * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
                  * support multiple ports.
                  * 
            @@ -4001,7 +4087,7 @@ public Builder setPorts(int index, int value) { *
                  * Required. One or more port numbers (1-65535), on which the Gateway will
                  * receive traffic. The proxy binds to the specified ports.
            -     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
            +     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
                  * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
                  * support multiple ports.
                  * 
            @@ -4026,7 +4112,7 @@ public Builder addPorts(int value) { *
                  * Required. One or more port numbers (1-65535), on which the Gateway will
                  * receive traffic. The proxy binds to the specified ports.
            -     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
            +     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
                  * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
                  * support multiple ports.
                  * 
            @@ -4050,7 +4136,7 @@ public Builder addAllPorts(java.lang.Iterable value *
                  * Required. One or more port numbers (1-65535), on which the Gateway will
                  * receive traffic. The proxy binds to the specified ports.
            -     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
            +     * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
                  * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
                  * support multiple ports.
                  * 
            @@ -4066,6 +4152,68 @@ public Builder clearPorts() { return this; } + private boolean allPorts_; + + /** + * + * + *
            +     * Optional. If true, the Gateway will listen on all ports. This is mutually
            +     * exclusive with the `ports` field. This field only applies to gateways of
            +     * type 'SECURE_WEB_GATEWAY'.
            +     * 
            + * + * bool all_ports = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allPorts. + */ + @java.lang.Override + public boolean getAllPorts() { + return allPorts_; + } + + /** + * + * + *
            +     * Optional. If true, the Gateway will listen on all ports. This is mutually
            +     * exclusive with the `ports` field. This field only applies to gateways of
            +     * type 'SECURE_WEB_GATEWAY'.
            +     * 
            + * + * bool all_ports = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allPorts to set. + * @return This builder for chaining. + */ + public Builder setAllPorts(boolean value) { + + allPorts_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If true, the Gateway will listen on all ports. This is mutually
            +     * exclusive with the `ports` field. This field only applies to gateways of
            +     * type 'SECURE_WEB_GATEWAY'.
            +     * 
            + * + * bool all_ports = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllPorts() { + bitField0_ = (bitField0_ & ~0x00000200); + allPorts_ = false; + onChanged(); + return this; + } + private java.lang.Object scope_ = ""; /** @@ -4152,7 +4300,7 @@ public Builder setScope(java.lang.String value) { throw new NullPointerException(); } scope_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4177,7 +4325,7 @@ public Builder setScope(java.lang.String value) { */ public Builder clearScope() { scope_ = getDefaultInstance().getScope(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -4207,7 +4355,7 @@ public Builder setScopeBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); scope_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4286,7 +4434,7 @@ public Builder setServerTlsPolicy(java.lang.String value) { throw new NullPointerException(); } serverTlsPolicy_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4307,7 +4455,7 @@ public Builder setServerTlsPolicy(java.lang.String value) { */ public Builder clearServerTlsPolicy() { serverTlsPolicy_ = getDefaultInstance().getServerTlsPolicy(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); return this; } @@ -4333,7 +4481,7 @@ public Builder setServerTlsPolicyBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); serverTlsPolicy_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4345,7 +4493,7 @@ private void ensureCertificateUrlsIsMutable() { if (!certificateUrls_.isModifiable()) { certificateUrls_ = new com.google.protobuf.LazyStringArrayList(certificateUrls_); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } /** @@ -4450,7 +4598,7 @@ public Builder setCertificateUrls(int index, java.lang.String value) { } ensureCertificateUrlsIsMutable(); certificateUrls_.set(index, value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4477,7 +4625,7 @@ public Builder addCertificateUrls(java.lang.String value) { } ensureCertificateUrlsIsMutable(); certificateUrls_.add(value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4501,7 +4649,7 @@ public Builder addCertificateUrls(java.lang.String value) { public Builder addAllCertificateUrls(java.lang.Iterable values) { ensureCertificateUrlsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, certificateUrls_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4523,7 +4671,7 @@ public Builder addAllCertificateUrls(java.lang.Iterable values */ public Builder clearCertificateUrls() { certificateUrls_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); ; onChanged(); return this; @@ -4552,7 +4700,7 @@ public Builder addCertificateUrlsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureCertificateUrlsIsMutable(); certificateUrls_.add(value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4649,7 +4797,7 @@ public Builder setGatewaySecurityPolicy(java.lang.String value) { throw new NullPointerException(); } gatewaySecurityPolicy_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4676,7 +4824,7 @@ public Builder setGatewaySecurityPolicy(java.lang.String value) { */ public Builder clearGatewaySecurityPolicy() { gatewaySecurityPolicy_ = getDefaultInstance().getGatewaySecurityPolicy(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -4708,7 +4856,7 @@ public Builder setGatewaySecurityPolicyBytes(com.google.protobuf.ByteString valu } checkByteStringIsUtf8(value); gatewaySecurityPolicy_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4796,7 +4944,7 @@ public Builder setNetwork(java.lang.String value) { throw new NullPointerException(); } network_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4820,7 +4968,7 @@ public Builder setNetwork(java.lang.String value) { */ public Builder clearNetwork() { network_ = getDefaultInstance().getNetwork(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -4849,7 +4997,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); network_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4937,7 +5085,7 @@ public Builder setSubnetwork(java.lang.String value) { throw new NullPointerException(); } subnetwork_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4961,7 +5109,7 @@ public Builder setSubnetwork(java.lang.String value) { */ public Builder clearSubnetwork() { subnetwork_ = getDefaultInstance().getSubnetwork(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -4990,7 +5138,7 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); subnetwork_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5033,7 +5181,7 @@ public int getIpVersionValue() { */ public Builder setIpVersionValue(int value) { ipVersion_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5080,7 +5228,7 @@ public Builder setIpVersion(com.google.cloud.networkservices.v1.Gateway.IpVersio if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; ipVersion_ = value.getNumber(); onChanged(); return this; @@ -5101,7 +5249,7 @@ public Builder setIpVersion(com.google.cloud.networkservices.v1.Gateway.IpVersio * @return This builder for chaining. */ public Builder clearIpVersion() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); ipVersion_ = 0; onChanged(); return this; @@ -5126,7 +5274,7 @@ public Builder clearIpVersion() { */ @java.lang.Override public boolean hasEnvoyHeaders() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -5167,7 +5315,7 @@ public int getEnvoyHeadersValue() { */ public Builder setEnvoyHeadersValue(int value) { envoyHeaders_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -5216,7 +5364,7 @@ public Builder setEnvoyHeaders(com.google.cloud.networkservices.v1.EnvoyHeaders if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; envoyHeaders_ = value.getNumber(); onChanged(); return this; @@ -5238,7 +5386,7 @@ public Builder setEnvoyHeaders(com.google.cloud.networkservices.v1.EnvoyHeaders * @return This builder for chaining. */ public Builder clearEnvoyHeaders() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); envoyHeaders_ = 0; onChanged(); return this; @@ -5284,7 +5432,7 @@ public int getRoutingModeValue() { */ public Builder setRoutingModeValue(int value) { routingMode_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -5333,7 +5481,7 @@ public Builder setRoutingMode(com.google.cloud.networkservices.v1.Gateway.Routin if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; routingMode_ = value.getNumber(); onChanged(); return this; @@ -5355,12 +5503,74 @@ public Builder setRoutingMode(com.google.cloud.networkservices.v1.Gateway.Routin * @return This builder for chaining. */ public Builder clearRoutingMode() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); routingMode_ = 0; onChanged(); return this; } + private boolean allowGlobalAccess_; + + /** + * + * + *
            +     * Optional. If true, the gateway will allow traffic from clients outside of
            +     * the region where the gateway is located.
            +     * This field is configurable only for gateways of type SECURE_WEB_GATEWAY.
            +     * 
            + * + * bool allow_global_access = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowGlobalAccess. + */ + @java.lang.Override + public boolean getAllowGlobalAccess() { + return allowGlobalAccess_; + } + + /** + * + * + *
            +     * Optional. If true, the gateway will allow traffic from clients outside of
            +     * the region where the gateway is located.
            +     * This field is configurable only for gateways of type SECURE_WEB_GATEWAY.
            +     * 
            + * + * bool allow_global_access = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowGlobalAccess to set. + * @return This builder for chaining. + */ + public Builder setAllowGlobalAccess(boolean value) { + + allowGlobalAccess_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If true, the gateway will allow traffic from clients outside of
            +     * the region where the gateway is located.
            +     * This field is configurable only for gateways of type SECURE_WEB_GATEWAY.
            +     * 
            + * + * bool allow_global_access = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowGlobalAccess() { + bitField0_ = (bitField0_ & ~0x00080000); + allowGlobalAccess_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.Gateway) } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayOrBuilder.java index 11b9f779a04d..1916794acbcb 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayOrBuilder.java @@ -371,7 +371,7 @@ java.lang.String getLabelsOrDefault( *
                * Required. One or more port numbers (1-65535), on which the Gateway will
                * receive traffic. The proxy binds to the specified ports.
            -   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
            +   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
                * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
                * support multiple ports.
                * 
            @@ -388,7 +388,7 @@ java.lang.String getLabelsOrDefault( *
                * Required. One or more port numbers (1-65535), on which the Gateway will
                * receive traffic. The proxy binds to the specified ports.
            -   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
            +   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
                * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
                * support multiple ports.
                * 
            @@ -405,7 +405,7 @@ java.lang.String getLabelsOrDefault( *
                * Required. One or more port numbers (1-65535), on which the Gateway will
                * receive traffic. The proxy binds to the specified ports.
            -   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port.
            +   * Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports.
                * Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and
                * support multiple ports.
                * 
            @@ -417,6 +417,21 @@ java.lang.String getLabelsOrDefault( */ int getPorts(int index); + /** + * + * + *
            +   * Optional. If true, the Gateway will listen on all ports. This is mutually
            +   * exclusive with the `ports` field. This field only applies to gateways of
            +   * type 'SECURE_WEB_GATEWAY'.
            +   * 
            + * + * bool all_ports = 34 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allPorts. + */ + boolean getAllPorts(); + /** * * @@ -795,4 +810,19 @@ java.lang.String getLabelsOrDefault( * @return The routingMode. */ com.google.cloud.networkservices.v1.Gateway.RoutingMode getRoutingMode(); + + /** + * + * + *
            +   * Optional. If true, the gateway will allow traffic from clients outside of
            +   * the region where the gateway is located.
            +   * This field is configurable only for gateways of type SECURE_WEB_GATEWAY.
            +   * 
            + * + * bool allow_global_access = 33 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The allowGlobalAccess. + */ + boolean getAllowGlobalAccess(); } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayProto.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayProto.java index 38de6ef3c736..72c4ab748d8b 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayProto.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GatewayProto.java @@ -85,7 +85,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-google/cloud/networkservices/v1/gateway.proto\022\037google.cloud.networkservices.v1" + "\032\037google/api/field_behavior.proto\032\031googl" + "e/api/resource.proto\032,google/cloud/networkservices/v1/common.proto\032 google/proto" - + "buf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\204\013\n" + + "buf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\276\013\n" + "\007Gateway\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\026\n" + "\tself_link\030\r" @@ -99,7 +99,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0162-.google.cloud.networkservices.v1.Gateway.TypeB\003\340A\005\0229\n" + "\taddresses\030\007 \003(\tB&\340A\001\372A \n" + "\036compute.googleapis.com/Address\022\022\n" - + "\005ports\030\013 \003(\005B\003\340A\002\022\022\n" + + "\005ports\030\013 \003(\005B\003\340A\002\022\026\n" + + "\tall_ports\030\" \001(\010B\003\340A\001\022\022\n" + "\005scope\030\010 \001(\tB\003\340A\001\022Q\n" + "\021server_tls_policy\030\t \001(\tB6\340A\001\372A0\n" + ".networksecurity.googleapis.com/ServerTlsPolicy\022O\n" @@ -111,12 +112,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036compute.googleapis.com/Network\022=\n\n" + "subnetwork\030\021 \001(\tB)\340A\001\372A#\n" + "!compute.googleapis.com/Subnetwork\022K\n\n" - + "ip_version\030\025 \001(" - + "\01622.google.cloud.networkservices.v1.Gateway.IpVersionB\003\340A\001\022N\n\r" - + "envoy_headers\030\034 \001(" - + "\0162-.google.cloud.networkservices.v1.EnvoyHeadersB\003\340A\001H\000\210\001\001\022O\n" - + "\014routing_mode\030 \001(\016" - + "24.google.cloud.networkservices.v1.Gateway.RoutingModeB\003\340A\001\032-\n" + + "ip_version\030\025 \001(\01622.google.cloud" + + ".networkservices.v1.Gateway.IpVersionB\003\340A\001\022N\n\r" + + "envoy_headers\030\034 \001(\0162-.google.cloud" + + ".networkservices.v1.EnvoyHeadersB\003\340A\001H\000\210\001\001\022O\n" + + "\014routing_mode\030 \001(\01624.google.cloud." + + "networkservices.v1.Gateway.RoutingModeB\003\340A\001\022 \n" + + "\023allow_global_access\030! \001(\010B\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"C\n" @@ -131,8 +133,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013RoutingMode\022\031\n" + "\025EXPLICIT_ROUTING_MODE\020\000\022\031\n" + "\025NEXT_HOP_ROUTING_MODE\020\001:g\352Ad\n" - + "&networkservices.googleapis.com/Gateway\022:projects" - + "/{project}/locations/{location}/gateways/{gateway}B\020\n" + + "&networkservices.googleapis.com" + + "/Gateway\022:projects/{project}/locations/{location}/gateways/{gateway}B\020\n" + "\016_envoy_headers\"|\n" + "\023ListGatewaysRequest\022>\n" + "\006parent\030\001 \001(" @@ -150,31 +152,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB.\340A\002\372A(\022&networkservices.googleapis.com/Gateway\022\027\n\n" + "gateway_id\030\002 \001(\tB\003\340A\002\022>\n" - + "\007gateway\030\003" - + " \001(\0132(.google.cloud.networkservices.v1.GatewayB\003\340A\002\"\214\001\n" + + "\007gateway\030\003 \001(\0132(." + + "google.cloud.networkservices.v1.GatewayB\003\340A\002\"\214\001\n" + "\024UpdateGatewayRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022>\n" - + "\007gateway\030\002 \001" - + "(\0132(.google.cloud.networkservices.v1.GatewayB\003\340A\002\"T\n" + + "\007gateway\030\002" + + " \001(\0132(.google.cloud.networkservices.v1.GatewayB\003\340A\002\"T\n" + "\024DeleteGatewayRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + "&networkservices.googleapis.com/GatewayB\211\006\n" - + "#com.google.cloud.networkservices.v1B\014GatewayProtoP\001ZMcloud.g" - + "oogle.com/go/networkservices/apiv1/netwo" - + "rkservicespb;networkservicespb\252\002\037Google." - + "Cloud.NetworkServices.V1\312\002\037Google\\Cloud\\" - + "NetworkServices\\V1\352\002\"Google::Cloud::NetworkServices::V1\352A\221\001\n" - + "4networksecurity.googleapis.com/GatewaySecurityPolicy\022Yproje" - + "cts/{project}/locations/{location}/gatew" - + "aySecurityPolicies/{gateway_security_policy}\352Aa\n" - + "!compute.googleapis.com/Subnetwo" - + "rk\022 + * Request used by the GetAgentGateway method. + *
            + * + * Protobuf type {@code google.cloud.networkservices.v1.GetAgentGatewayRequest} + */ +@com.google.protobuf.Generated +public final class GetAgentGatewayRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.GetAgentGatewayRequest) + GetAgentGatewayRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetAgentGatewayRequest"); + } + + // Use GetAgentGatewayRequest.newBuilder() to construct. + private GetAgentGatewayRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAgentGatewayRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.GetAgentGatewayRequest.class, + com.google.cloud.networkservices.v1.GetAgentGatewayRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. A name of the AgentGateway to get. Must be in the format
            +   * `projects/*/locations/*/agentGateways/*`.
            +   * 
            + * + * + * 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. A name of the AgentGateway to get. Must be in the format
            +   * `projects/*/locations/*/agentGateways/*`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networkservices.v1.GetAgentGatewayRequest)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.GetAgentGatewayRequest other = + (com.google.cloud.networkservices.v1.GetAgentGatewayRequest) 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.networkservices.v1.GetAgentGatewayRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest 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.networkservices.v1.GetAgentGatewayRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest parseFrom( + 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.networkservices.v1.GetAgentGatewayRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.GetAgentGatewayRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request used by the GetAgentGateway method.
            +   * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.GetAgentGatewayRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.GetAgentGatewayRequest) + com.google.cloud.networkservices.v1.GetAgentGatewayRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.GetAgentGatewayRequest.class, + com.google.cloud.networkservices.v1.GetAgentGatewayRequest.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.GetAgentGatewayRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_GetAgentGatewayRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.GetAgentGatewayRequest getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.GetAgentGatewayRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.GetAgentGatewayRequest build() { + com.google.cloud.networkservices.v1.GetAgentGatewayRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.GetAgentGatewayRequest buildPartial() { + com.google.cloud.networkservices.v1.GetAgentGatewayRequest result = + new com.google.cloud.networkservices.v1.GetAgentGatewayRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkservices.v1.GetAgentGatewayRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.GetAgentGatewayRequest) { + return mergeFrom((com.google.cloud.networkservices.v1.GetAgentGatewayRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkservices.v1.GetAgentGatewayRequest other) { + if (other == com.google.cloud.networkservices.v1.GetAgentGatewayRequest.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. A name of the AgentGateway to get. Must be in the format
            +     * `projects/*/locations/*/agentGateways/*`.
            +     * 
            + * + * + * 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. A name of the AgentGateway to get. Must be in the format
            +     * `projects/*/locations/*/agentGateways/*`.
            +     * 
            + * + * + * 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. A name of the AgentGateway to get. Must be in the format
            +     * `projects/*/locations/*/agentGateways/*`.
            +     * 
            + * + * + * 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. A name of the AgentGateway to get. Must be in the format
            +     * `projects/*/locations/*/agentGateways/*`.
            +     * 
            + * + * + * 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. A name of the AgentGateway to get. Must be in the format
            +     * `projects/*/locations/*/agentGateways/*`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.GetAgentGatewayRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.GetAgentGatewayRequest) + private static final com.google.cloud.networkservices.v1.GetAgentGatewayRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.GetAgentGatewayRequest(); + } + + public static com.google.cloud.networkservices.v1.GetAgentGatewayRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAgentGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.networkservices.v1.GetAgentGatewayRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentEnvironmentRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetAgentGatewayRequestOrBuilder.java similarity index 66% rename from java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentEnvironmentRequestOrBuilder.java rename to java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetAgentGatewayRequestOrBuilder.java index bdfa63154327..1bc9d23547cc 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GetGoldengateDeploymentEnvironmentRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetAgentGatewayRequestOrBuilder.java @@ -15,23 +15,23 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/oracledatabase/v1/goldengate_deployment_environment.proto +// source: google/cloud/networkservices/v1/agent_gateway.proto // Protobuf Java Version: 4.33.2 -package com.google.cloud.oracledatabase.v1; +package com.google.cloud.networkservices.v1; @com.google.protobuf.Generated -public interface GetGoldengateDeploymentEnvironmentRequestOrBuilder +public interface GetAgentGatewayRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest) + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.GetAgentGatewayRequest) com.google.protobuf.MessageOrBuilder { /** * * *
            -   * Required. Name of the resource with the format:
            -   * projects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment}
            +   * Required. A name of the AgentGateway to get. Must be in the format
            +   * `projects/*/locations/*/agentGateways/*`.
                * 
            * * @@ -46,8 +46,8 @@ public interface GetGoldengateDeploymentEnvironmentRequestOrBuilder * * *
            -   * Required. Name of the resource with the format:
            -   * projects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment}
            +   * Required. A name of the AgentGateway to get. Must be in the format
            +   * `projects/*/locations/*/agentGateways/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetEndpointPolicyRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetEndpointPolicyRequest.java index 40a22f5b63ce..9237dcf24646 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetEndpointPolicyRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetEndpointPolicyRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. A name of the EndpointPolicy to get. Must be in the format
            -   * `projects/*/locations/global/endpointPolicies/*`.
            +   * `projects/*/locations/*/endpointPolicies/*`.
                * 
            * * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
                * Required. A name of the EndpointPolicy to get. Must be in the format
            -   * `projects/*/locations/global/endpointPolicies/*`.
            +   * `projects/*/locations/*/endpointPolicies/*`.
                * 
            * * @@ -450,7 +450,7 @@ public Builder mergeFrom( * *
                  * Required. A name of the EndpointPolicy to get. Must be in the format
            -     * `projects/*/locations/global/endpointPolicies/*`.
            +     * `projects/*/locations/*/endpointPolicies/*`.
                  * 
            * * @@ -476,7 +476,7 @@ public java.lang.String getName() { * *
                  * Required. A name of the EndpointPolicy to get. Must be in the format
            -     * `projects/*/locations/global/endpointPolicies/*`.
            +     * `projects/*/locations/*/endpointPolicies/*`.
                  * 
            * * @@ -502,7 +502,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                  * Required. A name of the EndpointPolicy to get. Must be in the format
            -     * `projects/*/locations/global/endpointPolicies/*`.
            +     * `projects/*/locations/*/endpointPolicies/*`.
                  * 
            * * @@ -527,7 +527,7 @@ public Builder setName(java.lang.String value) { * *
                  * Required. A name of the EndpointPolicy to get. Must be in the format
            -     * `projects/*/locations/global/endpointPolicies/*`.
            +     * `projects/*/locations/*/endpointPolicies/*`.
                  * 
            * * @@ -548,7 +548,7 @@ public Builder clearName() { * *
                  * Required. A name of the EndpointPolicy to get. Must be in the format
            -     * `projects/*/locations/global/endpointPolicies/*`.
            +     * `projects/*/locations/*/endpointPolicies/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetEndpointPolicyRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetEndpointPolicyRequestOrBuilder.java index bf0cf41b605a..cd549dca8591 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetEndpointPolicyRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetEndpointPolicyRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface GetEndpointPolicyRequestOrBuilder * *
                * Required. A name of the EndpointPolicy to get. Must be in the format
            -   * `projects/*/locations/global/endpointPolicies/*`.
            +   * `projects/*/locations/*/endpointPolicies/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface GetEndpointPolicyRequestOrBuilder * *
                * Required. A name of the EndpointPolicy to get. Must be in the format
            -   * `projects/*/locations/global/endpointPolicies/*`.
            +   * `projects/*/locations/*/endpointPolicies/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetGrpcRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetGrpcRouteRequest.java index cadb2cb34410..2ff32c84fd60 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetGrpcRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetGrpcRouteRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. A name of the GrpcRoute to get. Must be in the format
            -   * `projects/*/locations/global/grpcRoutes/*`.
            +   * `projects/*/locations/*/grpcRoutes/*`.
                * 
            * * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
                * Required. A name of the GrpcRoute to get. Must be in the format
            -   * `projects/*/locations/global/grpcRoutes/*`.
            +   * `projects/*/locations/*/grpcRoutes/*`.
                * 
            * * @@ -447,7 +447,7 @@ public Builder mergeFrom( * *
                  * Required. A name of the GrpcRoute to get. Must be in the format
            -     * `projects/*/locations/global/grpcRoutes/*`.
            +     * `projects/*/locations/*/grpcRoutes/*`.
                  * 
            * * @@ -473,7 +473,7 @@ public java.lang.String getName() { * *
                  * Required. A name of the GrpcRoute to get. Must be in the format
            -     * `projects/*/locations/global/grpcRoutes/*`.
            +     * `projects/*/locations/*/grpcRoutes/*`.
                  * 
            * * @@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                  * Required. A name of the GrpcRoute to get. Must be in the format
            -     * `projects/*/locations/global/grpcRoutes/*`.
            +     * `projects/*/locations/*/grpcRoutes/*`.
                  * 
            * * @@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) { * *
                  * Required. A name of the GrpcRoute to get. Must be in the format
            -     * `projects/*/locations/global/grpcRoutes/*`.
            +     * `projects/*/locations/*/grpcRoutes/*`.
                  * 
            * * @@ -545,7 +545,7 @@ public Builder clearName() { * *
                  * Required. A name of the GrpcRoute to get. Must be in the format
            -     * `projects/*/locations/global/grpcRoutes/*`.
            +     * `projects/*/locations/*/grpcRoutes/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetGrpcRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetGrpcRouteRequestOrBuilder.java index 5f47ddf84c34..2ed70bc32597 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetGrpcRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetGrpcRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface GetGrpcRouteRequestOrBuilder * *
                * Required. A name of the GrpcRoute to get. Must be in the format
            -   * `projects/*/locations/global/grpcRoutes/*`.
            +   * `projects/*/locations/*/grpcRoutes/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface GetGrpcRouteRequestOrBuilder * *
                * Required. A name of the GrpcRoute to get. Must be in the format
            -   * `projects/*/locations/global/grpcRoutes/*`.
            +   * `projects/*/locations/*/grpcRoutes/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetHttpRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetHttpRouteRequest.java index d93ff0b56b1b..7624dd4bce2f 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetHttpRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetHttpRouteRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. A name of the HttpRoute to get. Must be in the format
            -   * `projects/*/locations/global/httpRoutes/*`.
            +   * `projects/*/locations/*/httpRoutes/*`.
                * 
            * * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
                * Required. A name of the HttpRoute to get. Must be in the format
            -   * `projects/*/locations/global/httpRoutes/*`.
            +   * `projects/*/locations/*/httpRoutes/*`.
                * 
            * * @@ -447,7 +447,7 @@ public Builder mergeFrom( * *
                  * Required. A name of the HttpRoute to get. Must be in the format
            -     * `projects/*/locations/global/httpRoutes/*`.
            +     * `projects/*/locations/*/httpRoutes/*`.
                  * 
            * * @@ -473,7 +473,7 @@ public java.lang.String getName() { * *
                  * Required. A name of the HttpRoute to get. Must be in the format
            -     * `projects/*/locations/global/httpRoutes/*`.
            +     * `projects/*/locations/*/httpRoutes/*`.
                  * 
            * * @@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                  * Required. A name of the HttpRoute to get. Must be in the format
            -     * `projects/*/locations/global/httpRoutes/*`.
            +     * `projects/*/locations/*/httpRoutes/*`.
                  * 
            * * @@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) { * *
                  * Required. A name of the HttpRoute to get. Must be in the format
            -     * `projects/*/locations/global/httpRoutes/*`.
            +     * `projects/*/locations/*/httpRoutes/*`.
                  * 
            * * @@ -545,7 +545,7 @@ public Builder clearName() { * *
                  * Required. A name of the HttpRoute to get. Must be in the format
            -     * `projects/*/locations/global/httpRoutes/*`.
            +     * `projects/*/locations/*/httpRoutes/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetHttpRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetHttpRouteRequestOrBuilder.java index a1994d052e2e..5088242c3a77 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetHttpRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetHttpRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface GetHttpRouteRequestOrBuilder * *
                * Required. A name of the HttpRoute to get. Must be in the format
            -   * `projects/*/locations/global/httpRoutes/*`.
            +   * `projects/*/locations/*/httpRoutes/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface GetHttpRouteRequestOrBuilder * *
                * Required. A name of the HttpRoute to get. Must be in the format
            -   * `projects/*/locations/global/httpRoutes/*`.
            +   * `projects/*/locations/*/httpRoutes/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetMeshRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetMeshRequest.java index 8ddf4e436504..23f92c271acc 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetMeshRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetMeshRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. A name of the Mesh to get. Must be in the format
            -   * `projects/*/locations/global/meshes/*`.
            +   * `projects/*/locations/*/meshes/*`.
                * 
            * * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
                * Required. A name of the Mesh to get. Must be in the format
            -   * `projects/*/locations/global/meshes/*`.
            +   * `projects/*/locations/*/meshes/*`.
                * 
            * * @@ -446,7 +446,7 @@ public Builder mergeFrom( * *
                  * Required. A name of the Mesh to get. Must be in the format
            -     * `projects/*/locations/global/meshes/*`.
            +     * `projects/*/locations/*/meshes/*`.
                  * 
            * * @@ -472,7 +472,7 @@ public java.lang.String getName() { * *
                  * Required. A name of the Mesh to get. Must be in the format
            -     * `projects/*/locations/global/meshes/*`.
            +     * `projects/*/locations/*/meshes/*`.
                  * 
            * * @@ -498,7 +498,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                  * Required. A name of the Mesh to get. Must be in the format
            -     * `projects/*/locations/global/meshes/*`.
            +     * `projects/*/locations/*/meshes/*`.
                  * 
            * * @@ -523,7 +523,7 @@ public Builder setName(java.lang.String value) { * *
                  * Required. A name of the Mesh to get. Must be in the format
            -     * `projects/*/locations/global/meshes/*`.
            +     * `projects/*/locations/*/meshes/*`.
                  * 
            * * @@ -544,7 +544,7 @@ public Builder clearName() { * *
                  * Required. A name of the Mesh to get. Must be in the format
            -     * `projects/*/locations/global/meshes/*`.
            +     * `projects/*/locations/*/meshes/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetMeshRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetMeshRequestOrBuilder.java index e12ef37e28d4..e8e843e7134b 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetMeshRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetMeshRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface GetMeshRequestOrBuilder * *
                * Required. A name of the Mesh to get. Must be in the format
            -   * `projects/*/locations/global/meshes/*`.
            +   * `projects/*/locations/*/meshes/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface GetMeshRequestOrBuilder * *
                * Required. A name of the Mesh to get. Must be in the format
            -   * `projects/*/locations/global/meshes/*`.
            +   * `projects/*/locations/*/meshes/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTcpRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTcpRouteRequest.java index 470d94197a2a..22529b67d26b 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTcpRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTcpRouteRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. A name of the TcpRoute to get. Must be in the format
            -   * `projects/*/locations/global/tcpRoutes/*`.
            +   * `projects/*/locations/*/tcpRoutes/*`.
                * 
            * * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
                * Required. A name of the TcpRoute to get. Must be in the format
            -   * `projects/*/locations/global/tcpRoutes/*`.
            +   * `projects/*/locations/*/tcpRoutes/*`.
                * 
            * * @@ -447,7 +447,7 @@ public Builder mergeFrom( * *
                  * Required. A name of the TcpRoute to get. Must be in the format
            -     * `projects/*/locations/global/tcpRoutes/*`.
            +     * `projects/*/locations/*/tcpRoutes/*`.
                  * 
            * * @@ -473,7 +473,7 @@ public java.lang.String getName() { * *
                  * Required. A name of the TcpRoute to get. Must be in the format
            -     * `projects/*/locations/global/tcpRoutes/*`.
            +     * `projects/*/locations/*/tcpRoutes/*`.
                  * 
            * * @@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                  * Required. A name of the TcpRoute to get. Must be in the format
            -     * `projects/*/locations/global/tcpRoutes/*`.
            +     * `projects/*/locations/*/tcpRoutes/*`.
                  * 
            * * @@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) { * *
                  * Required. A name of the TcpRoute to get. Must be in the format
            -     * `projects/*/locations/global/tcpRoutes/*`.
            +     * `projects/*/locations/*/tcpRoutes/*`.
                  * 
            * * @@ -545,7 +545,7 @@ public Builder clearName() { * *
                  * Required. A name of the TcpRoute to get. Must be in the format
            -     * `projects/*/locations/global/tcpRoutes/*`.
            +     * `projects/*/locations/*/tcpRoutes/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTcpRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTcpRouteRequestOrBuilder.java index 30d2ca705923..e2a7d9b6e252 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTcpRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTcpRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface GetTcpRouteRequestOrBuilder * *
                * Required. A name of the TcpRoute to get. Must be in the format
            -   * `projects/*/locations/global/tcpRoutes/*`.
            +   * `projects/*/locations/*/tcpRoutes/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface GetTcpRouteRequestOrBuilder * *
                * Required. A name of the TcpRoute to get. Must be in the format
            -   * `projects/*/locations/global/tcpRoutes/*`.
            +   * `projects/*/locations/*/tcpRoutes/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTlsRouteRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTlsRouteRequest.java index f079560de704..f471fdc0632a 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTlsRouteRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTlsRouteRequest.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. A name of the TlsRoute to get. Must be in the format
            -   * `projects/*/locations/global/tlsRoutes/*`.
            +   * `projects/*/locations/*/tlsRoutes/*`.
                * 
            * * @@ -107,7 +107,7 @@ public java.lang.String getName() { * *
                * Required. A name of the TlsRoute to get. Must be in the format
            -   * `projects/*/locations/global/tlsRoutes/*`.
            +   * `projects/*/locations/*/tlsRoutes/*`.
                * 
            * * @@ -447,7 +447,7 @@ public Builder mergeFrom( * *
                  * Required. A name of the TlsRoute to get. Must be in the format
            -     * `projects/*/locations/global/tlsRoutes/*`.
            +     * `projects/*/locations/*/tlsRoutes/*`.
                  * 
            * * @@ -473,7 +473,7 @@ public java.lang.String getName() { * *
                  * Required. A name of the TlsRoute to get. Must be in the format
            -     * `projects/*/locations/global/tlsRoutes/*`.
            +     * `projects/*/locations/*/tlsRoutes/*`.
                  * 
            * * @@ -499,7 +499,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                  * Required. A name of the TlsRoute to get. Must be in the format
            -     * `projects/*/locations/global/tlsRoutes/*`.
            +     * `projects/*/locations/*/tlsRoutes/*`.
                  * 
            * * @@ -524,7 +524,7 @@ public Builder setName(java.lang.String value) { * *
                  * Required. A name of the TlsRoute to get. Must be in the format
            -     * `projects/*/locations/global/tlsRoutes/*`.
            +     * `projects/*/locations/*/tlsRoutes/*`.
                  * 
            * * @@ -545,7 +545,7 @@ public Builder clearName() { * *
                  * Required. A name of the TlsRoute to get. Must be in the format
            -     * `projects/*/locations/global/tlsRoutes/*`.
            +     * `projects/*/locations/*/tlsRoutes/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTlsRouteRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTlsRouteRequestOrBuilder.java index a984f11582c5..37d61cd06c05 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTlsRouteRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GetTlsRouteRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface GetTlsRouteRequestOrBuilder * *
                * Required. A name of the TlsRoute to get. Must be in the format
            -   * `projects/*/locations/global/tlsRoutes/*`.
            +   * `projects/*/locations/*/tlsRoutes/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface GetTlsRouteRequestOrBuilder * *
                * Required. A name of the TlsRoute to get. Must be in the format
            -   * `projects/*/locations/global/tlsRoutes/*`.
            +   * `projects/*/locations/*/tlsRoutes/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRoute.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRoute.java index 7a531b52a8e1..3a9b3013dce6 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRoute.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRoute.java @@ -14608,7 +14608,7 @@ public com.google.cloud.networkservices.v1.GrpcRoute.RouteRule getDefaultInstanc * *
                * Identifier. Name of the GrpcRoute resource. It matches pattern
            -   * `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
            +   * `projects/*/locations/*/grpcRoutes/<grpc_route_name>`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -14633,7 +14633,7 @@ public java.lang.String getName() { * *
                * Identifier. Name of the GrpcRoute resource. It matches pattern
            -   * `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
            +   * `projects/*/locations/*/grpcRoutes/<grpc_route_name>`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -15174,7 +15174,7 @@ public com.google.protobuf.ByteString getHostnamesBytes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -15195,7 +15195,7 @@ public com.google.protobuf.ProtocolStringList getMeshesList() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -15216,7 +15216,7 @@ public int getMeshesCount() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -15238,7 +15238,7 @@ public java.lang.String getMeshes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -15267,7 +15267,7 @@ public com.google.protobuf.ByteString getMeshesBytes(int index) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -15289,7 +15289,7 @@ public com.google.protobuf.ProtocolStringList getGatewaysList() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -15311,7 +15311,7 @@ public int getGatewaysCount() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -15334,7 +15334,7 @@ public java.lang.String getGateways(int index) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -16143,7 +16143,7 @@ public Builder mergeFrom( * *
                  * Identifier. Name of the GrpcRoute resource. It matches pattern
            -     * `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
            +     * `projects/*/locations/*/grpcRoutes/<grpc_route_name>`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -16167,7 +16167,7 @@ public java.lang.String getName() { * *
                  * Identifier. Name of the GrpcRoute resource. It matches pattern
            -     * `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
            +     * `projects/*/locations/*/grpcRoutes/<grpc_route_name>`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -16191,7 +16191,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                  * Identifier. Name of the GrpcRoute resource. It matches pattern
            -     * `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
            +     * `projects/*/locations/*/grpcRoutes/<grpc_route_name>`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -16214,7 +16214,7 @@ public Builder setName(java.lang.String value) { * *
                  * Identifier. Name of the GrpcRoute resource. It matches pattern
            -     * `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
            +     * `projects/*/locations/*/grpcRoutes/<grpc_route_name>`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -16233,7 +16233,7 @@ public Builder clearName() { * *
                  * Identifier. Name of the GrpcRoute resource. It matches pattern
            -     * `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
            +     * `projects/*/locations/*/grpcRoutes/<grpc_route_name>`
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -17546,7 +17546,7 @@ private void ensureMeshesIsMutable() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -17568,7 +17568,7 @@ public com.google.protobuf.ProtocolStringList getMeshesList() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -17589,7 +17589,7 @@ public int getMeshesCount() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -17611,7 +17611,7 @@ public java.lang.String getMeshes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -17633,7 +17633,7 @@ public com.google.protobuf.ByteString getMeshesBytes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -17663,7 +17663,7 @@ public Builder setMeshes(int index, java.lang.String value) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -17692,7 +17692,7 @@ public Builder addMeshes(java.lang.String value) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -17718,7 +17718,7 @@ public Builder addAllMeshes(java.lang.Iterable values) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -17743,7 +17743,7 @@ public Builder clearMeshes() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -17784,7 +17784,7 @@ private void ensureGatewaysIsMutable() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -17807,7 +17807,7 @@ public com.google.protobuf.ProtocolStringList getGatewaysList() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -17829,7 +17829,7 @@ public int getGatewaysCount() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -17852,7 +17852,7 @@ public java.lang.String getGateways(int index) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -17875,7 +17875,7 @@ public com.google.protobuf.ByteString getGatewaysBytes(int index) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -17906,7 +17906,7 @@ public Builder setGateways(int index, java.lang.String value) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -17936,7 +17936,7 @@ public Builder addGateways(java.lang.String value) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -17963,7 +17963,7 @@ public Builder addAllGateways(java.lang.Iterable values) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -17989,7 +17989,7 @@ public Builder clearGateways() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRouteOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRouteOrBuilder.java index eb6a751f7016..6fbac0dc15d9 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRouteOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/GrpcRouteOrBuilder.java @@ -31,7 +31,7 @@ public interface GrpcRouteOrBuilder * *
                * Identifier. Name of the GrpcRoute resource. It matches pattern
            -   * `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
            +   * `projects/*/locations/*/grpcRoutes/<grpc_route_name>`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -45,7 +45,7 @@ public interface GrpcRouteOrBuilder * *
                * Identifier. Name of the GrpcRoute resource. It matches pattern
            -   * `projects/*/locations/global/grpcRoutes/<grpc_route_name>`
            +   * `projects/*/locations/*/grpcRoutes/<grpc_route_name>`
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -433,7 +433,7 @@ java.lang.String getLabelsOrDefault( * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -452,7 +452,7 @@ java.lang.String getLabelsOrDefault( * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -471,7 +471,7 @@ java.lang.String getLabelsOrDefault( * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -491,7 +491,7 @@ java.lang.String getLabelsOrDefault( * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * * @@ -512,7 +512,7 @@ java.lang.String getLabelsOrDefault( * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -532,7 +532,7 @@ java.lang.String getLabelsOrDefault( * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -552,7 +552,7 @@ java.lang.String getLabelsOrDefault( * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -573,7 +573,7 @@ java.lang.String getLabelsOrDefault( * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRoute.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRoute.java index d2bdf838d59c..fbf60b664871 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRoute.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRoute.java @@ -30393,7 +30393,7 @@ public com.google.cloud.networkservices.v1.HttpRoute.RouteRule getDefaultInstanc * *
                * Identifier. Name of the HttpRoute resource. It matches pattern
            -   * `projects/*/locations/global/httpRoutes/http_route_name>`.
            +   * `projects/*/locations/*/httpRoutes/http_route_name>`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -30418,7 +30418,7 @@ public java.lang.String getName() { * *
                * Identifier. Name of the HttpRoute resource. It matches pattern
            -   * `projects/*/locations/global/httpRoutes/http_route_name>`.
            +   * `projects/*/locations/*/httpRoutes/http_route_name>`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -30824,7 +30824,7 @@ public com.google.protobuf.ByteString getHostnamesBytes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -30847,7 +30847,7 @@ public com.google.protobuf.ProtocolStringList getMeshesList() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -30870,7 +30870,7 @@ public int getMeshesCount() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -30894,7 +30894,7 @@ public java.lang.String getMeshes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -30925,7 +30925,7 @@ public com.google.protobuf.ByteString getMeshesBytes(int index) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -30947,7 +30947,7 @@ public com.google.protobuf.ProtocolStringList getGatewaysList() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -30969,7 +30969,7 @@ public int getGatewaysCount() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -30992,7 +30992,7 @@ public java.lang.String getGateways(int index) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -31898,7 +31898,7 @@ public Builder mergeFrom( * *
                  * Identifier. Name of the HttpRoute resource. It matches pattern
            -     * `projects/*/locations/global/httpRoutes/http_route_name>`.
            +     * `projects/*/locations/*/httpRoutes/http_route_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -31922,7 +31922,7 @@ public java.lang.String getName() { * *
                  * Identifier. Name of the HttpRoute resource. It matches pattern
            -     * `projects/*/locations/global/httpRoutes/http_route_name>`.
            +     * `projects/*/locations/*/httpRoutes/http_route_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -31946,7 +31946,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                  * Identifier. Name of the HttpRoute resource. It matches pattern
            -     * `projects/*/locations/global/httpRoutes/http_route_name>`.
            +     * `projects/*/locations/*/httpRoutes/http_route_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -31969,7 +31969,7 @@ public Builder setName(java.lang.String value) { * *
                  * Identifier. Name of the HttpRoute resource. It matches pattern
            -     * `projects/*/locations/global/httpRoutes/http_route_name>`.
            +     * `projects/*/locations/*/httpRoutes/http_route_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -31988,7 +31988,7 @@ public Builder clearName() { * *
                  * Identifier. Name of the HttpRoute resource. It matches pattern
            -     * `projects/*/locations/global/httpRoutes/http_route_name>`.
            +     * `projects/*/locations/*/httpRoutes/http_route_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -33066,7 +33066,7 @@ private void ensureMeshesIsMutable() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -33090,7 +33090,7 @@ public com.google.protobuf.ProtocolStringList getMeshesList() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -33113,7 +33113,7 @@ public int getMeshesCount() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -33137,7 +33137,7 @@ public java.lang.String getMeshes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -33161,7 +33161,7 @@ public com.google.protobuf.ByteString getMeshesBytes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -33193,7 +33193,7 @@ public Builder setMeshes(int index, java.lang.String value) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -33224,7 +33224,7 @@ public Builder addMeshes(java.lang.String value) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -33252,7 +33252,7 @@ public Builder addAllMeshes(java.lang.Iterable values) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -33279,7 +33279,7 @@ public Builder clearMeshes() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -33322,7 +33322,7 @@ private void ensureGatewaysIsMutable() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -33345,7 +33345,7 @@ public com.google.protobuf.ProtocolStringList getGatewaysList() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -33367,7 +33367,7 @@ public int getGatewaysCount() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -33390,7 +33390,7 @@ public java.lang.String getGateways(int index) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -33413,7 +33413,7 @@ public com.google.protobuf.ByteString getGatewaysBytes(int index) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -33444,7 +33444,7 @@ public Builder setGateways(int index, java.lang.String value) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -33474,7 +33474,7 @@ public Builder addGateways(java.lang.String value) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -33501,7 +33501,7 @@ public Builder addAllGateways(java.lang.Iterable values) { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -33527,7 +33527,7 @@ public Builder clearGateways() { * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteOrBuilder.java index a1a302ab15a2..b8ea17a30587 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteOrBuilder.java @@ -31,7 +31,7 @@ public interface HttpRouteOrBuilder * *
                * Identifier. Name of the HttpRoute resource. It matches pattern
            -   * `projects/*/locations/global/httpRoutes/http_route_name>`.
            +   * `projects/*/locations/*/httpRoutes/http_route_name>`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -45,7 +45,7 @@ public interface HttpRouteOrBuilder * *
                * Identifier. Name of the HttpRoute resource. It matches pattern
            -   * `projects/*/locations/global/httpRoutes/http_route_name>`.
            +   * `projects/*/locations/*/httpRoutes/http_route_name>`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -342,7 +342,7 @@ public interface HttpRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -363,7 +363,7 @@ public interface HttpRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -384,7 +384,7 @@ public interface HttpRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -406,7 +406,7 @@ public interface HttpRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -429,7 +429,7 @@ public interface HttpRouteOrBuilder * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -449,7 +449,7 @@ public interface HttpRouteOrBuilder * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -469,7 +469,7 @@ public interface HttpRouteOrBuilder * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -490,7 +490,7 @@ public interface HttpRouteOrBuilder * gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteProto.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteProto.java index e569969565e7..2e4a04fcab27 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteProto.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/HttpRouteProto.java @@ -163,8 +163,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n" + "0google/cloud/networkservices/v1/http_route.proto\022\037google.cloud.networkservices" - + ".v1\032\037google/api/field_behavior.proto\032\031go" - + "ogle/api/resource.proto\032\036google/protobuf/duration.proto\032" + + ".v1\032\037google/api/field_behavior.proto\032\033go" + + "ogle/api/field_info.proto\032\031google/api/re" + + "source.proto\032\036google/protobuf/duration.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\217$\n" + "\tHttpRoute\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\026\n" @@ -179,18 +180,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010gateways\030\t \003(\tB.\340A\001\372A(\n" + "&networkservices.googleapis.com/Gateway\022K\n" + "\006labels\030\n" - + " \003(\013" - + "26.google.cloud.networkservices.v1.HttpRoute.LabelsEntryB\003\340A\001\022H\n" - + "\005rules\030\006 \003(\01324.g" - + "oogle.cloud.networkservices.v1.HttpRoute.RouteRuleB\003\340A\002\032\277\002\n" + + " \003(\01326.google.c" + + "loud.networkservices.v1.HttpRoute.LabelsEntryB\003\340A\001\022H\n" + + "\005rules\030\006 \003(\01324.google.cloud" + + ".networkservices.v1.HttpRoute.RouteRuleB\003\340A\002\032\277\002\n" + "\013HeaderMatch\022\025\n" + "\013exact_match\030\002 \001(\tH\000\022\025\n" + "\013regex_match\030\003 \001(\tH\000\022\026\n" + "\014prefix_match\030\004 \001(\tH\000\022\027\n\r" + "present_match\030\005 \001(\010H\000\022\026\n" + "\014suffix_match\030\006 \001(\tH\000\022Z\n" - + "\013range_match\030\007 \001(\0132C.google.cloud.networkservic" - + "es.v1.HttpRoute.HeaderMatch.IntegerRangeH\000\022\016\n" + + "\013range_match\030\007 \001(\013" + + "2C.google.cloud.networkservices.v1.HttpRoute.HeaderMatch.IntegerRangeH\000\022\016\n" + "\006header\030\001 \001(\t\022\024\n" + "\014invert_match\030\010 \001(\010\032*\n" + "\014IntegerRange\022\r\n" @@ -208,25 +209,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014prefix_match\030\002 \001(\tH\000\022\025\n" + "\013regex_match\030\003 \001(\tH\000\022\023\n" + "\013ignore_case\030\004 \001(\010\022G\n" - + "\007headers\030\005 \003(\01326." - + "google.cloud.networkservices.v1.HttpRoute.HeaderMatch\022X\n" - + "\020query_parameters\030\006 \003(\0132" - + ">.google.cloud.networkservices.v1.HttpRoute.QueryParameterMatchB\013\n" + + "\007headers\030\005 \003(\01326.google.clou" + + "d.networkservices.v1.HttpRoute.HeaderMatch\022X\n" + + "\020query_parameters\030\006 \003(\0132>.google.cl" + + "oud.networkservices.v1.HttpRoute.QueryParameterMatchB\013\n" + "\tPathMatch\032\242\002\n" + "\013Destination\022@\n" + "\014service_name\030\001 \001(\tB*\372A\'\n" + "%compute.googleapis.com/BackendService\022\016\n" + "\006weight\030\002 \001(\005\022_\n" - + "\027request_header_modifier\030\003" - + " \001(\01329.google.cloud.networkservices.v1.HttpRoute.HeaderModifierB\003\340A\001\022`\n" - + "\030response_header_modifier\030\004 \001(\01329.google.cloud" - + ".networkservices.v1.HttpRoute.HeaderModifierB\003\340A\001\032\206\003\n" + + "\027request_header_modifier\030\003 \001(\01329.g" + + "oogle.cloud.networkservices.v1.HttpRoute.HeaderModifierB\003\340A\001\022`\n" + + "\030response_header_modifier\030\004 \001(\01329.google.cloud.networkser" + + "vices.v1.HttpRoute.HeaderModifierB\003\340A\001\032\206\003\n" + "\010Redirect\022\025\n\r" + "host_redirect\030\001 \001(\t\022\025\n\r" + "path_redirect\030\002 \001(\t\022\026\n" + "\016prefix_rewrite\030\003 \001(\t\022W\n\r" - + "response_code\030\004 \001(\0162@.go" - + "ogle.cloud.networkservices.v1.HttpRoute.Redirect.ResponseCode\022\026\n" + + "response_code\030\004 \001(\0162@.google.cloud." + + "networkservices.v1.HttpRoute.Redirect.ResponseCode\022\026\n" + "\016https_redirect\030\005 \001(\010\022\023\n" + "\013strip_query\030\006 \001(\010\022\025\n\r" + "port_redirect\030\007 \001(\005\"\226\001\n" @@ -238,10 +239,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022TEMPORARY_REDIRECT\020\004\022\026\n" + "\022PERMANENT_REDIRECT\020\005\032\301\002\n" + "\024FaultInjectionPolicy\022T\n" - + "\005delay\030\001 \001" - + "(\0132E.google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Delay\022T\n" - + "\005abort\030\002 \001(\0132E.google.cloud.networkservices." - + "v1.HttpRoute.FaultInjectionPolicy.Abort\032K\n" + + "\005delay\030\001 \001(\0132E.google" + + ".cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Delay\022T\n" + + "\005abort\030\002 \001(\0132E." + + "google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Abort\032K\n" + "\005Delay\022.\n" + "\013fixed_delay\030\001 \001(\0132\031.google.protobuf.Duration\022\022\n\n" + "percentage\030\002 \001(\005\0320\n" @@ -251,10 +252,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035StatefulSessionAffinityPolicy\0222\n\n" + "cookie_ttl\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\002\032\232\002\n" + "\016HeaderModifier\022O\n" - + "\003set\030\001 " - + "\003(\0132B.google.cloud.networkservices.v1.HttpRoute.HeaderModifier.SetEntry\022O\n" - + "\003add\030\002" - + " \003(\0132B.google.cloud.networkservices.v1.HttpRoute.HeaderModifier.AddEntry\022\016\n" + + "\003set\030\001 \003(\0132B.googl" + + "e.cloud.networkservices.v1.HttpRoute.HeaderModifier.SetEntry\022O\n" + + "\003add\030\002 \003(\0132B.goog" + + "le.cloud.networkservices.v1.HttpRoute.HeaderModifier.AddEntry\022\016\n" + "\006remove\030\003 \003(\t\032*\n" + "\010SetEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -270,8 +271,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013num_retries\030\002 \001(\005\0222\n" + "\017per_try_timeout\030\003 \001(\0132\031.google.protobuf.Duration\032\177\n" + "\023RequestMirrorPolicy\022K\n" - + "\013destination\030\001 \001(\0132" - + "6.google.cloud.networkservices.v1.HttpRoute.Destination\022\033\n" + + "\013destination\030\001 \001(\01326.google.cl" + + "oud.networkservices.v1.HttpRoute.Destination\022\033\n" + "\016mirror_percent\030\002 \001(\002B\003\340A\001\032\305\001\n\n" + "CorsPolicy\022\025\n\r" + "allow_origins\030\001 \003(\t\022\034\n" @@ -288,48 +289,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006status\030\001 \001(\005B\003\340A\002B\n\n" + "\010HttpBody\032\262\010\n" + "\013RouteAction\022L\n" - + "\014destinations\030\001 \003(\01326.googl" - + "e.cloud.networkservices.v1.HttpRoute.Destination\022E\n" - + "\010redirect\030\002 \001(\01323.google.clou" - + "d.networkservices.v1.HttpRoute.Redirect\022_\n" - + "\026fault_injection_policy\030\004 \001(\0132?.google" - + ".cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy\022Z\n" - + "\027request_header_modifier\030\005" - + " \001(\01329.google.cloud.networkservices.v1.HttpRoute.HeaderModifier\022[\n" - + "\030response_header_modifier\030\006 \001(\01329.google.cloud.ne" - + "tworkservices.v1.HttpRoute.HeaderModifier\022J\n" + + "\014destinations\030\001" + + " \003(\01326.google.cloud.networkservices.v1.HttpRoute.Destination\022E\n" + + "\010redirect\030\002" + + " \001(\01323.google.cloud.networkservices.v1.HttpRoute.Redirect\022_\n" + + "\026fault_injection_policy\030\004 \001(\0132?.google.cloud.netw" + + "orkservices.v1.HttpRoute.FaultInjectionPolicy\022Z\n" + + "\027request_header_modifier\030\005 \001(\01329" + + ".google.cloud.networkservices.v1.HttpRoute.HeaderModifier\022[\n" + + "\030response_header_modifier\030\006" + + " \001(\01329.google.cloud.networkservices.v1.HttpRoute.HeaderModifier\022J\n" + "\013url_rewrite\030\007" + " \001(\01325.google.cloud.networkservices.v1.HttpRoute.URLRewrite\022*\n" + "\007timeout\030\010 \001(\0132\031.google.protobuf.Duration\022L\n" - + "\014retry_policy\030\t \001(\01326.google.cloud.n" - + "etworkservices.v1.HttpRoute.RetryPolicy\022]\n" + + "\014retry_policy\030\t" + + " \001(\01326.google.cloud.networkservices.v1.HttpRoute.RetryPolicy\022]\n" + "\025request_mirror_policy\030\n" + " \001(\0132>.google.cloud.networkservices.v1.HttpRoute.RequestMirrorPolicy\022J\n" - + "\013cors_policy\030\013 \001(\01325.go" - + "ogle.cloud.networkservices.v1.HttpRoute.CorsPolicy\022p\n" - + "\031stateful_session_affinity\030\014 \001(\0132H.google.cloud.networkservices.v1." - + "HttpRoute.StatefulSessionAffinityPolicyB\003\340A\001\022[\n" + + "\013cors_policy\030\013 \001(\01325.google.cloud." + + "networkservices.v1.HttpRoute.CorsPolicy\022p\n" + + "\031stateful_session_affinity\030\014 \001(\0132H.goo" + + "gle.cloud.networkservices.v1.HttpRoute.StatefulSessionAffinityPolicyB\003\340A\001\022[\n" + "\017direct_response\030\r" - + " \001(\0132=.google.c" - + "loud.networkservices.v1.HttpRoute.HttpDirectResponseB\003\340A\001\0224\n" + + " \001(\0132=.google.cloud.networ" + + "kservices.v1.HttpRoute.HttpDirectResponseB\003\340A\001\0224\n" + "\014idle_timeout\030\016" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\032\233\001\n" + "\tRouteRule\022F\n" + "\007matches\030\001" + " \003(\01325.google.cloud.networkservices.v1.HttpRoute.RouteMatch\022F\n" - + "\006action\030\002" - + " \001(\01326.google.cloud.networkservices.v1.HttpRoute.RouteAction\032-\n" + + "\006action\030\002 \001" + + "(\01326.google.cloud.networkservices.v1.HttpRoute.RouteAction\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:n\352Ak\n" - + "(networkservices.googleapis.com/HttpRo" - + "ute\022?projects/{project}/locations/{location}/httpRoutes/{http_route}\"\245\001\n" + + "(networkservices.googleapis.com/HttpRoute\022?projec" + + "ts/{project}/locations/{location}/httpRoutes/{http_route}\"\272\001\n" + "\025ListHttpRoutesRequest\022@\n" - + "\006parent\030\001 \001(\tB0\340A\002\372A*\022(" - + "networkservices.googleapis.com/HttpRoute\022\021\n" + + "\006parent\030\001 \001(" + + "\tB0\340A\002\372A*\022(networkservices.googleapis.com/HttpRoute\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\022#\n" - + "\026return_partial_success\030\004 \001(\010B\003\340A\001\"\207\001\n" + + "\026return_partial_success\030\004 \001(\010B\003\340A\001\022\023\n" + + "\006filter\030\005 \001(\tB\003\340A\001\"\207\001\n" + "\026ListHttpRoutesResponse\022?\n" + "\013http_routes\030\001" + " \003(\0132*.google.cloud.networkservices.v1.HttpRoute\022\027\n" @@ -337,32 +339,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013unreachable\030\003 \003(\t\"U\n" + "\023GetHttpRouteRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" - + "(networkservices.googleapis.com/HttpRoute\"\273\001\n" + + "(networkservices.googleapis.com/HttpRoute\"\334\001\n" + "\026CreateHttpRouteRequest\022@\n" - + "\006parent\030\001 \001(" - + "\tB0\340A\002\372A*\022(networkservices.googleapis.com/HttpRoute\022\032\n\r" + + "\006parent\030\001 \001(\tB0\340A\002\372" + + "A*\022(networkservices.googleapis.com/HttpRoute\022\032\n\r" + "http_route_id\030\002 \001(\tB\003\340A\002\022C\n\n" - + "http_route\030\003 \001" - + "(\0132*.google.cloud.networkservices.v1.HttpRouteB\003\340A\002\"\223\001\n" + + "http_route\030\003" + + " \001(\0132*.google.cloud.networkservices.v1.HttpRouteB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\223\001\n" + "\026UpdateHttpRouteRequest\0224\n" + "\013update_mask\030\001" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022C\n\n" - + "http_route\030\002 \001(\0132*.googl" - + "e.cloud.networkservices.v1.HttpRouteB\003\340A\002\"X\n" + + "http_route\030\002 \001(\0132*.go" + + "ogle.cloud.networkservices.v1.HttpRouteB\003\340A\002\"X\n" + "\026DeleteHttpRouteRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(networkservices.googleapis.com/HttpRouteB\357\001\n" - + "#com.google.cloud.networkservices.v1B\016HttpRouteProtoP\001ZMcloud.goo" - + "gle.com/go/networkservices/apiv1/network" - + "servicespb;networkservicespb\252\002\037Google.Cl" - + "oud.NetworkServices.V1\312\002\037Google\\Cloud\\Ne" - + "tworkServices\\V1\352\002\"Google::Cloud::NetworkServices::V1b\006proto3" + + "#com.google.cloud.networkservices.v1B\016HttpRouteProtoP\001ZMcloud." + + "google.com/go/networkservices/apiv1/netw" + + "orkservicespb;networkservicespb\252\002\037Google" + + ".Cloud.NetworkServices.V1\312\002\037Google\\Cloud" + + "\\NetworkServices\\V1\352\002\"Google::Cloud::NetworkServices::V1b\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.FieldMaskProto.getDescriptor(), @@ -603,7 +607,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_networkservices_v1_ListHttpRoutesRequest_descriptor, new java.lang.String[] { - "Parent", "PageSize", "PageToken", "ReturnPartialSuccess", + "Parent", "PageSize", "PageToken", "ReturnPartialSuccess", "Filter", }); internal_static_google_cloud_networkservices_v1_ListHttpRoutesResponse_descriptor = getDescriptor().getMessageType(2); @@ -627,7 +631,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_networkservices_v1_CreateHttpRouteRequest_descriptor, new java.lang.String[] { - "Parent", "HttpRouteId", "HttpRoute", + "Parent", "HttpRouteId", "HttpRoute", "RequestId", }); internal_static_google_cloud_networkservices_v1_UpdateHttpRouteRequest_descriptor = getDescriptor().getMessageType(5); @@ -647,6 +651,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); @@ -654,6 +659,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysRequest.java new file mode 100644 index 000000000000..d92ac404dd79 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysRequest.java @@ -0,0 +1,1027 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +/** + * + * + *
            + * Request used with the ListAgentGateways method.
            + * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.ListAgentGatewaysRequest} + */ +@com.google.protobuf.Generated +public final class ListAgentGatewaysRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.ListAgentGatewaysRequest) + ListAgentGatewaysRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAgentGatewaysRequest"); + } + + // Use ListAgentGatewaysRequest.newBuilder() to construct. + private ListAgentGatewaysRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAgentGatewaysRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest.class, + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The project and location from which the AgentGateways should be
            +   * listed, specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * 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 project and location from which the AgentGateways should be
            +   * listed, specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * 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. Maximum number of AgentGateways to return per call.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. The value returned by the last `ListAgentGatewaysResponse`
            +   * Indicates that this is a continuation of a prior `ListAgentGateways`
            +   * call, and that the system should return the next page of data.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The value returned by the last `ListAgentGatewaysResponse`
            +   * Indicates that this is a continuation of a prior `ListAgentGateways`
            +   * call, and that the system should return the next page of data.
            +   * 
            + * + * 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 RETURN_PARTIAL_SUCCESS_FIELD_NUMBER = 4; + private boolean returnPartialSuccess_ = false; + + /** + * + * + *
            +   * Optional. If true, allow partial responses for multi-regional Aggregated
            +   * List requests. Otherwise if one of the locations is down or unreachable,
            +   * the Aggregated List request will fail.
            +   * 
            + * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (returnPartialSuccess_ != false) { + output.writeBool(4, returnPartialSuccess_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (returnPartialSuccess_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, returnPartialSuccess_); + } + 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.networkservices.v1.ListAgentGatewaysRequest)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest other = + (com.google.cloud.networkservices.v1.ListAgentGatewaysRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) 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) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest 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.networkservices.v1.ListAgentGatewaysRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest parseFrom( + 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.networkservices.v1.ListAgentGatewaysRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request used with the ListAgentGateways method.
            +   * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.ListAgentGatewaysRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.ListAgentGatewaysRequest) + com.google.cloud.networkservices.v1.ListAgentGatewaysRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest.class, + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.ListAgentGatewaysRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + returnPartialSuccess_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListAgentGatewaysRequest + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.ListAgentGatewaysRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListAgentGatewaysRequest build() { + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListAgentGatewaysRequest buildPartial() { + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest result = + new com.google.cloud.networkservices.v1.ListAgentGatewaysRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.ListAgentGatewaysRequest 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.returnPartialSuccess_ = returnPartialSuccess_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.ListAgentGatewaysRequest) { + return mergeFrom((com.google.cloud.networkservices.v1.ListAgentGatewaysRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkservices.v1.ListAgentGatewaysRequest other) { + if (other + == com.google.cloud.networkservices.v1.ListAgentGatewaysRequest.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.getReturnPartialSuccess() != false) { + setReturnPartialSuccess(other.getReturnPartialSuccess()); + } + 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 32: + { + returnPartialSuccess_ = input.readBool(); + 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 parent_ = ""; + + /** + * + * + *
            +     * Required. The project and location from which the AgentGateways should be
            +     * listed, specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * 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 project and location from which the AgentGateways should be
            +     * listed, specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * 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 project and location from which the AgentGateways should be
            +     * listed, specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * 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 project and location from which the AgentGateways should be
            +     * listed, specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * 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 project and location from which the AgentGateways should be
            +     * listed, specified in the format `projects/*/locations/*`.
            +     * 
            + * + * + * 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. Maximum number of AgentGateways to return per call.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. Maximum number of AgentGateways to return per call.
            +     * 
            + * + * 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. Maximum number of AgentGateways to return per call.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. The value returned by the last `ListAgentGatewaysResponse`
            +     * Indicates that this is a continuation of a prior `ListAgentGateways`
            +     * call, and that the system should return the next page of data.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The value returned by the last `ListAgentGatewaysResponse`
            +     * Indicates that this is a continuation of a prior `ListAgentGateways`
            +     * call, and that the system should return the next page of data.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The value returned by the last `ListAgentGatewaysResponse`
            +     * Indicates that this is a continuation of a prior `ListAgentGateways`
            +     * call, and that the system should return the next page of data.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The value returned by the last `ListAgentGatewaysResponse`
            +     * Indicates that this is a continuation of a prior `ListAgentGateways`
            +     * call, and that the system should return the next page of data.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The value returned by the last `ListAgentGatewaysResponse`
            +     * Indicates that this is a continuation of a prior `ListAgentGateways`
            +     * call, and that the system should return the next page of data.
            +     * 
            + * + * 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 boolean returnPartialSuccess_; + + /** + * + * + *
            +     * Optional. If true, allow partial responses for multi-regional Aggregated
            +     * List requests. Otherwise if one of the locations is down or unreachable,
            +     * the Aggregated List request will fail.
            +     * 
            + * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + @java.lang.Override + public boolean getReturnPartialSuccess() { + return returnPartialSuccess_; + } + + /** + * + * + *
            +     * Optional. If true, allow partial responses for multi-regional Aggregated
            +     * List requests. Otherwise if one of the locations is down or unreachable,
            +     * the Aggregated List request will fail.
            +     * 
            + * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The returnPartialSuccess to set. + * @return This builder for chaining. + */ + public Builder setReturnPartialSuccess(boolean value) { + + returnPartialSuccess_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If true, allow partial responses for multi-regional Aggregated
            +     * List requests. Otherwise if one of the locations is down or unreachable,
            +     * the Aggregated List request will fail.
            +     * 
            + * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReturnPartialSuccess() { + bitField0_ = (bitField0_ & ~0x00000008); + returnPartialSuccess_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.ListAgentGatewaysRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.ListAgentGatewaysRequest) + private static final com.google.cloud.networkservices.v1.ListAgentGatewaysRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.ListAgentGatewaysRequest(); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAgentGatewaysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.networkservices.v1.ListAgentGatewaysRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysRequestOrBuilder.java new file mode 100644 index 000000000000..7fe4843333a8 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysRequestOrBuilder.java @@ -0,0 +1,118 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +@com.google.protobuf.Generated +public interface ListAgentGatewaysRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.ListAgentGatewaysRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The project and location from which the AgentGateways should be
            +   * listed, specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The project and location from which the AgentGateways should be
            +   * listed, specified in the format `projects/*/locations/*`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. Maximum number of AgentGateways to return per call.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. The value returned by the last `ListAgentGatewaysResponse`
            +   * Indicates that this is a continuation of a prior `ListAgentGateways`
            +   * call, and that the system should return the next page of data.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. The value returned by the last `ListAgentGatewaysResponse`
            +   * Indicates that this is a continuation of a prior `ListAgentGateways`
            +   * call, and that the system should return the next page of data.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. If true, allow partial responses for multi-regional Aggregated
            +   * List requests. Otherwise if one of the locations is down or unreachable,
            +   * the Aggregated List request will fail.
            +   * 
            + * + * bool return_partial_success = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The returnPartialSuccess. + */ + boolean getReturnPartialSuccess(); +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysResponse.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysResponse.java new file mode 100644 index 000000000000..e24def5d77fd --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysResponse.java @@ -0,0 +1,1459 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +/** + * + * + *
            + * Response returned by the ListAgentGateways method.
            + * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.ListAgentGatewaysResponse} + */ +@com.google.protobuf.Generated +public final class ListAgentGatewaysResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.ListAgentGatewaysResponse) + ListAgentGatewaysResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAgentGatewaysResponse"); + } + + // Use ListAgentGatewaysResponse.newBuilder() to construct. + private ListAgentGatewaysResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAgentGatewaysResponse() { + agentGateways_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse.class, + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse.Builder.class); + } + + public static final int AGENT_GATEWAYS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List agentGateways_; + + /** + * + * + *
            +   * List of AgentGateway resources.
            +   * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + @java.lang.Override + public java.util.List getAgentGatewaysList() { + return agentGateways_; + } + + /** + * + * + *
            +   * List of AgentGateway resources.
            +   * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + @java.lang.Override + public java.util.List + getAgentGatewaysOrBuilderList() { + return agentGateways_; + } + + /** + * + * + *
            +   * List of AgentGateway resources.
            +   * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + @java.lang.Override + public int getAgentGatewaysCount() { + return agentGateways_.size(); + } + + /** + * + * + *
            +   * List of AgentGateway resources.
            +   * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway getAgentGateways(int index) { + return agentGateways_.get(index); + } + + /** + * + * + *
            +   * List of AgentGateway resources.
            +   * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGatewayOrBuilder getAgentGatewaysOrBuilder( + int index) { + return agentGateways_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * If there might be more results than those appearing in this response, then
            +   * `next_page_token` is included. To get the next set of results, call this
            +   * method again using the value of `next_page_token` as `page_token`.
            +   * 
            + * + * 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; + } + } + + /** + * + * + *
            +   * If there might be more results than those appearing in this response, then
            +   * `next_page_token` is included. To get the next set of results, call this
            +   * method again using the value of `next_page_token` as `page_token`.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * Unreachable resources. Populated when the request attempts to list all
            +   * resources across all supported locations, while some locations are
            +   * temporarily unavailable.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
            +   * Unreachable resources. Populated when the request attempts to list all
            +   * resources across all supported locations, while some locations are
            +   * temporarily unavailable.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
            +   * Unreachable resources. Populated when the request attempts to list all
            +   * resources across all supported locations, while some locations are
            +   * temporarily unavailable.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
            +   * Unreachable resources. Populated when the request attempts to list all
            +   * resources across all supported locations, while some locations are
            +   * temporarily unavailable.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < agentGateways_.size(); i++) { + output.writeMessage(1, agentGateways_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < agentGateways_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, agentGateways_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.networkservices.v1.ListAgentGatewaysResponse)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse other = + (com.google.cloud.networkservices.v1.ListAgentGatewaysResponse) obj; + + if (!getAgentGatewaysList().equals(other.getAgentGatewaysList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAgentGatewaysCount() > 0) { + hash = (37 * hash) + AGENT_GATEWAYS_FIELD_NUMBER; + hash = (53 * hash) + getAgentGatewaysList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse 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.networkservices.v1.ListAgentGatewaysResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse parseFrom( + 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.networkservices.v1.ListAgentGatewaysResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response returned by the ListAgentGateways method.
            +   * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.ListAgentGatewaysResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.ListAgentGatewaysResponse) + com.google.cloud.networkservices.v1.ListAgentGatewaysResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse.class, + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.ListAgentGatewaysResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (agentGatewaysBuilder_ == null) { + agentGateways_ = java.util.Collections.emptyList(); + } else { + agentGateways_ = null; + agentGatewaysBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_ListAgentGatewaysResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListAgentGatewaysResponse + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.ListAgentGatewaysResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListAgentGatewaysResponse build() { + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.ListAgentGatewaysResponse buildPartial() { + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse result = + new com.google.cloud.networkservices.v1.ListAgentGatewaysResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse result) { + if (agentGatewaysBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + agentGateways_ = java.util.Collections.unmodifiableList(agentGateways_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.agentGateways_ = agentGateways_; + } else { + result.agentGateways_ = agentGatewaysBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.ListAgentGatewaysResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.ListAgentGatewaysResponse) { + return mergeFrom((com.google.cloud.networkservices.v1.ListAgentGatewaysResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkservices.v1.ListAgentGatewaysResponse other) { + if (other + == com.google.cloud.networkservices.v1.ListAgentGatewaysResponse.getDefaultInstance()) + return this; + if (agentGatewaysBuilder_ == null) { + if (!other.agentGateways_.isEmpty()) { + if (agentGateways_.isEmpty()) { + agentGateways_ = other.agentGateways_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAgentGatewaysIsMutable(); + agentGateways_.addAll(other.agentGateways_); + } + onChanged(); + } + } else { + if (!other.agentGateways_.isEmpty()) { + if (agentGatewaysBuilder_.isEmpty()) { + agentGatewaysBuilder_.dispose(); + agentGatewaysBuilder_ = null; + agentGateways_ = other.agentGateways_; + bitField0_ = (bitField0_ & ~0x00000001); + agentGatewaysBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAgentGatewaysFieldBuilder() + : null; + } else { + agentGatewaysBuilder_.addAllMessages(other.agentGateways_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.networkservices.v1.AgentGateway m = + input.readMessage( + com.google.cloud.networkservices.v1.AgentGateway.parser(), + extensionRegistry); + if (agentGatewaysBuilder_ == null) { + ensureAgentGatewaysIsMutable(); + agentGateways_.add(m); + } else { + agentGatewaysBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List agentGateways_ = + java.util.Collections.emptyList(); + + private void ensureAgentGatewaysIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + agentGateways_ = + new java.util.ArrayList( + agentGateways_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway, + com.google.cloud.networkservices.v1.AgentGateway.Builder, + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder> + agentGatewaysBuilder_; + + /** + * + * + *
            +     * List of AgentGateway resources.
            +     * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public java.util.List getAgentGatewaysList() { + if (agentGatewaysBuilder_ == null) { + return java.util.Collections.unmodifiableList(agentGateways_); + } else { + return agentGatewaysBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * List of AgentGateway resources.
            +     * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public int getAgentGatewaysCount() { + if (agentGatewaysBuilder_ == null) { + return agentGateways_.size(); + } else { + return agentGatewaysBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * List of AgentGateway resources.
            +     * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public com.google.cloud.networkservices.v1.AgentGateway getAgentGateways(int index) { + if (agentGatewaysBuilder_ == null) { + return agentGateways_.get(index); + } else { + return agentGatewaysBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * List of AgentGateway resources.
            +     * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public Builder setAgentGateways( + int index, com.google.cloud.networkservices.v1.AgentGateway value) { + if (agentGatewaysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentGatewaysIsMutable(); + agentGateways_.set(index, value); + onChanged(); + } else { + agentGatewaysBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of AgentGateway resources.
            +     * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public Builder setAgentGateways( + int index, com.google.cloud.networkservices.v1.AgentGateway.Builder builderForValue) { + if (agentGatewaysBuilder_ == null) { + ensureAgentGatewaysIsMutable(); + agentGateways_.set(index, builderForValue.build()); + onChanged(); + } else { + agentGatewaysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of AgentGateway resources.
            +     * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public Builder addAgentGateways(com.google.cloud.networkservices.v1.AgentGateway value) { + if (agentGatewaysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentGatewaysIsMutable(); + agentGateways_.add(value); + onChanged(); + } else { + agentGatewaysBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * List of AgentGateway resources.
            +     * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public Builder addAgentGateways( + int index, com.google.cloud.networkservices.v1.AgentGateway value) { + if (agentGatewaysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentGatewaysIsMutable(); + agentGateways_.add(index, value); + onChanged(); + } else { + agentGatewaysBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of AgentGateway resources.
            +     * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public Builder addAgentGateways( + com.google.cloud.networkservices.v1.AgentGateway.Builder builderForValue) { + if (agentGatewaysBuilder_ == null) { + ensureAgentGatewaysIsMutable(); + agentGateways_.add(builderForValue.build()); + onChanged(); + } else { + agentGatewaysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of AgentGateway resources.
            +     * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public Builder addAgentGateways( + int index, com.google.cloud.networkservices.v1.AgentGateway.Builder builderForValue) { + if (agentGatewaysBuilder_ == null) { + ensureAgentGatewaysIsMutable(); + agentGateways_.add(index, builderForValue.build()); + onChanged(); + } else { + agentGatewaysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of AgentGateway resources.
            +     * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public Builder addAllAgentGateways( + java.lang.Iterable values) { + if (agentGatewaysBuilder_ == null) { + ensureAgentGatewaysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, agentGateways_); + onChanged(); + } else { + agentGatewaysBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * List of AgentGateway resources.
            +     * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public Builder clearAgentGateways() { + if (agentGatewaysBuilder_ == null) { + agentGateways_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + agentGatewaysBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * List of AgentGateway resources.
            +     * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public Builder removeAgentGateways(int index) { + if (agentGatewaysBuilder_ == null) { + ensureAgentGatewaysIsMutable(); + agentGateways_.remove(index); + onChanged(); + } else { + agentGatewaysBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * List of AgentGateway resources.
            +     * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public com.google.cloud.networkservices.v1.AgentGateway.Builder getAgentGatewaysBuilder( + int index) { + return internalGetAgentGatewaysFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * List of AgentGateway resources.
            +     * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public com.google.cloud.networkservices.v1.AgentGatewayOrBuilder getAgentGatewaysOrBuilder( + int index) { + if (agentGatewaysBuilder_ == null) { + return agentGateways_.get(index); + } else { + return agentGatewaysBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * List of AgentGateway resources.
            +     * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public java.util.List + getAgentGatewaysOrBuilderList() { + if (agentGatewaysBuilder_ != null) { + return agentGatewaysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(agentGateways_); + } + } + + /** + * + * + *
            +     * List of AgentGateway resources.
            +     * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public com.google.cloud.networkservices.v1.AgentGateway.Builder addAgentGatewaysBuilder() { + return internalGetAgentGatewaysFieldBuilder() + .addBuilder(com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance()); + } + + /** + * + * + *
            +     * List of AgentGateway resources.
            +     * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public com.google.cloud.networkservices.v1.AgentGateway.Builder addAgentGatewaysBuilder( + int index) { + return internalGetAgentGatewaysFieldBuilder() + .addBuilder(index, com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance()); + } + + /** + * + * + *
            +     * List of AgentGateway resources.
            +     * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + public java.util.List + getAgentGatewaysBuilderList() { + return internalGetAgentGatewaysFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway, + com.google.cloud.networkservices.v1.AgentGateway.Builder, + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder> + internalGetAgentGatewaysFieldBuilder() { + if (agentGatewaysBuilder_ == null) { + agentGatewaysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway, + com.google.cloud.networkservices.v1.AgentGateway.Builder, + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder>( + agentGateways_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + agentGateways_ = null; + } + return agentGatewaysBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * If there might be more results than those appearing in this response, then
            +     * `next_page_token` is included. To get the next set of results, call this
            +     * method again using the value of `next_page_token` as `page_token`.
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * If there might be more results than those appearing in this response, then
            +     * `next_page_token` is included. To get the next set of results, call this
            +     * method again using the value of `next_page_token` as `page_token`.
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * If there might be more results than those appearing in this response, then
            +     * `next_page_token` is included. To get the next set of results, call this
            +     * method again using the value of `next_page_token` as `page_token`.
            +     * 
            + * + * 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; + } + + /** + * + * + *
            +     * If there might be more results than those appearing in this response, then
            +     * `next_page_token` is included. To get the next set of results, call this
            +     * method again using the value of `next_page_token` as `page_token`.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * If there might be more results than those appearing in this response, then
            +     * `next_page_token` is included. To get the next set of results, call this
            +     * method again using the value of `next_page_token` as `page_token`.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
            +     * Unreachable resources. Populated when the request attempts to list all
            +     * resources across all supported locations, while some locations are
            +     * temporarily unavailable.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
            +     * Unreachable resources. Populated when the request attempts to list all
            +     * resources across all supported locations, while some locations are
            +     * temporarily unavailable.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
            +     * Unreachable resources. Populated when the request attempts to list all
            +     * resources across all supported locations, while some locations are
            +     * temporarily unavailable.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
            +     * Unreachable resources. Populated when the request attempts to list all
            +     * resources across all supported locations, while some locations are
            +     * temporarily unavailable.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
            +     * Unreachable resources. Populated when the request attempts to list all
            +     * resources across all supported locations, while some locations are
            +     * temporarily unavailable.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Unreachable resources. Populated when the request attempts to list all
            +     * resources across all supported locations, while some locations are
            +     * temporarily unavailable.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Unreachable resources. Populated when the request attempts to list all
            +     * resources across all supported locations, while some locations are
            +     * temporarily unavailable.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Unreachable resources. Populated when the request attempts to list all
            +     * resources across all supported locations, while some locations are
            +     * temporarily unavailable.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Unreachable resources. Populated when the request attempts to list all
            +     * resources across all supported locations, while some locations are
            +     * temporarily unavailable.
            +     * 
            + * + * repeated string unreachable = 3; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.ListAgentGatewaysResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.ListAgentGatewaysResponse) + private static final com.google.cloud.networkservices.v1.ListAgentGatewaysResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.ListAgentGatewaysResponse(); + } + + public static com.google.cloud.networkservices.v1.ListAgentGatewaysResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAgentGatewaysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.networkservices.v1.ListAgentGatewaysResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysResponseOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysResponseOrBuilder.java new file mode 100644 index 000000000000..b68ae93d3287 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListAgentGatewaysResponseOrBuilder.java @@ -0,0 +1,176 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +@com.google.protobuf.Generated +public interface ListAgentGatewaysResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.ListAgentGatewaysResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * List of AgentGateway resources.
            +   * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + java.util.List getAgentGatewaysList(); + + /** + * + * + *
            +   * List of AgentGateway resources.
            +   * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + com.google.cloud.networkservices.v1.AgentGateway getAgentGateways(int index); + + /** + * + * + *
            +   * List of AgentGateway resources.
            +   * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + int getAgentGatewaysCount(); + + /** + * + * + *
            +   * List of AgentGateway resources.
            +   * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + java.util.List + getAgentGatewaysOrBuilderList(); + + /** + * + * + *
            +   * List of AgentGateway resources.
            +   * 
            + * + * repeated .google.cloud.networkservices.v1.AgentGateway agent_gateways = 1; + */ + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder getAgentGatewaysOrBuilder(int index); + + /** + * + * + *
            +   * If there might be more results than those appearing in this response, then
            +   * `next_page_token` is included. To get the next set of results, call this
            +   * method again using the value of `next_page_token` as `page_token`.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * If there might be more results than those appearing in this response, then
            +   * `next_page_token` is included. To get the next set of results, call this
            +   * method again using the value of `next_page_token` as `page_token`.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
            +   * Unreachable resources. Populated when the request attempts to list all
            +   * resources across all supported locations, while some locations are
            +   * temporarily unavailable.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
            +   * Unreachable resources. Populated when the request attempts to list all
            +   * resources across all supported locations, while some locations are
            +   * temporarily unavailable.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
            +   * Unreachable resources. Populated when the request attempts to list all
            +   * resources across all supported locations, while some locations are
            +   * temporarily unavailable.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
            +   * Unreachable resources. Populated when the request attempts to list all
            +   * resources across all supported locations, while some locations are
            +   * temporarily unavailable.
            +   * 
            + * + * repeated string unreachable = 3; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListEndpointPoliciesRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListEndpointPoliciesRequest.java index ce96c6fc0dda..28bd8b190d9c 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListEndpointPoliciesRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListEndpointPoliciesRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. The project and location from which the EndpointPolicies should
            -   * be listed, specified in the format `projects/*/locations/global`.
            +   * be listed, specified in the format `projects/*/locations/*`.
                * 
            * * @@ -108,7 +108,7 @@ public java.lang.String getParent() { * *
                * Required. The project and location from which the EndpointPolicies should
            -   * be listed, specified in the format `projects/*/locations/global`.
            +   * be listed, specified in the format `projects/*/locations/*`.
                * 
            * * @@ -619,7 +619,7 @@ public Builder mergeFrom( * *
                  * Required. The project and location from which the EndpointPolicies should
            -     * be listed, specified in the format `projects/*/locations/global`.
            +     * be listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -645,7 +645,7 @@ public java.lang.String getParent() { * *
                  * Required. The project and location from which the EndpointPolicies should
            -     * be listed, specified in the format `projects/*/locations/global`.
            +     * be listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -671,7 +671,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                  * Required. The project and location from which the EndpointPolicies should
            -     * be listed, specified in the format `projects/*/locations/global`.
            +     * be listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -696,7 +696,7 @@ public Builder setParent(java.lang.String value) { * *
                  * Required. The project and location from which the EndpointPolicies should
            -     * be listed, specified in the format `projects/*/locations/global`.
            +     * be listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -717,7 +717,7 @@ public Builder clearParent() { * *
                  * Required. The project and location from which the EndpointPolicies should
            -     * be listed, specified in the format `projects/*/locations/global`.
            +     * be listed, specified in the format `projects/*/locations/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListEndpointPoliciesRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListEndpointPoliciesRequestOrBuilder.java index c7c09bd927a7..20b7eb46b85f 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListEndpointPoliciesRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListEndpointPoliciesRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface ListEndpointPoliciesRequestOrBuilder * *
                * Required. The project and location from which the EndpointPolicies should
            -   * be listed, specified in the format `projects/*/locations/global`.
            +   * be listed, specified in the format `projects/*/locations/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface ListEndpointPoliciesRequestOrBuilder * *
                * Required. The project and location from which the EndpointPolicies should
            -   * be listed, specified in the format `projects/*/locations/global`.
            +   * be listed, specified in the format `projects/*/locations/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListGrpcRoutesRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListGrpcRoutesRequest.java index 494c2c083e91..ddea809cb92c 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListGrpcRoutesRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListGrpcRoutesRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. The project and location from which the GrpcRoutes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * @@ -108,7 +108,7 @@ public java.lang.String getParent() { * *
                * Required. The project and location from which the GrpcRoutes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * @@ -613,7 +613,7 @@ public Builder mergeFrom( * *
                  * Required. The project and location from which the GrpcRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -639,7 +639,7 @@ public java.lang.String getParent() { * *
                  * Required. The project and location from which the GrpcRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -665,7 +665,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                  * Required. The project and location from which the GrpcRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -690,7 +690,7 @@ public Builder setParent(java.lang.String value) { * *
                  * Required. The project and location from which the GrpcRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -711,7 +711,7 @@ public Builder clearParent() { * *
                  * Required. The project and location from which the GrpcRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListGrpcRoutesRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListGrpcRoutesRequestOrBuilder.java index 2e0272dacf87..7e440e87d37f 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListGrpcRoutesRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListGrpcRoutesRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface ListGrpcRoutesRequestOrBuilder * *
                * Required. The project and location from which the GrpcRoutes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface ListGrpcRoutesRequestOrBuilder * *
                * Required. The project and location from which the GrpcRoutes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListHttpRoutesRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListHttpRoutesRequest.java index 6874393c82b3..c447ce91a541 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListHttpRoutesRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListHttpRoutesRequest.java @@ -54,6 +54,7 @@ private ListHttpRoutesRequest(com.google.protobuf.GeneratedMessage.Builder bu private ListHttpRoutesRequest() { parent_ = ""; pageToken_ = ""; + filter_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -81,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. The project and location from which the HttpRoutes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * @@ -108,7 +109,7 @@ public java.lang.String getParent() { * *
                * Required. The project and location from which the HttpRoutes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * @@ -227,6 +228,59 @@ public boolean getReturnPartialSuccess() { return returnPartialSuccess_; } + public static final int FILTER_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
            +   * Optional. Filter expression to restrict the list.
            +   * 
            + * + * 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 expression to restrict the list.
            +   * 
            + * + * 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 @@ -253,6 +307,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (returnPartialSuccess_ != false) { output.writeBool(4, returnPartialSuccess_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, filter_); + } getUnknownFields().writeTo(output); } @@ -274,6 +331,9 @@ public int getSerializedSize() { if (returnPartialSuccess_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, returnPartialSuccess_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, filter_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -294,6 +354,7 @@ public boolean equals(final java.lang.Object obj) { if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (getReturnPartialSuccess() != other.getReturnPartialSuccess()) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -313,6 +374,8 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + RETURN_PARTIAL_SUCCESS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPartialSuccess()); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -458,6 +521,7 @@ public Builder clear() { pageSize_ = 0; pageToken_ = ""; returnPartialSuccess_ = false; + filter_ = ""; return this; } @@ -506,6 +570,9 @@ private void buildPartial0(com.google.cloud.networkservices.v1.ListHttpRoutesReq if (((from_bitField0_ & 0x00000008) != 0)) { result.returnPartialSuccess_ = returnPartialSuccess_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } } @java.lang.Override @@ -537,6 +604,11 @@ public Builder mergeFrom(com.google.cloud.networkservices.v1.ListHttpRoutesReque if (other.getReturnPartialSuccess() != false) { setReturnPartialSuccess(other.getReturnPartialSuccess()); } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -587,6 +659,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 32 + case 42: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -613,7 +691,7 @@ public Builder mergeFrom( * *
                  * Required. The project and location from which the HttpRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -639,7 +717,7 @@ public java.lang.String getParent() { * *
                  * Required. The project and location from which the HttpRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -665,7 +743,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                  * Required. The project and location from which the HttpRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -690,7 +768,7 @@ public Builder setParent(java.lang.String value) { * *
                  * Required. The project and location from which the HttpRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -711,7 +789,7 @@ public Builder clearParent() { * *
                  * Required. The project and location from which the HttpRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -971,6 +1049,117 @@ public Builder clearReturnPartialSuccess() { return this; } + private java.lang.Object filter_ = ""; + + /** + * + * + *
            +     * Optional. Filter expression to restrict the list.
            +     * 
            + * + * 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 expression to restrict the list.
            +     * 
            + * + * 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 expression to restrict the list.
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Filter expression to restrict the list.
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Filter expression to restrict the list.
            +     * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.ListHttpRoutesRequest) } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListHttpRoutesRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListHttpRoutesRequestOrBuilder.java index 655d09fc5cf2..767b1907f6ec 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListHttpRoutesRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListHttpRoutesRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface ListHttpRoutesRequestOrBuilder * *
                * Required. The project and location from which the HttpRoutes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface ListHttpRoutesRequestOrBuilder * *
                * Required. The project and location from which the HttpRoutes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * @@ -115,4 +115,30 @@ public interface ListHttpRoutesRequestOrBuilder * @return The returnPartialSuccess. */ boolean getReturnPartialSuccess(); + + /** + * + * + *
            +   * Optional. Filter expression to restrict the list.
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Optional. Filter expression to restrict the list.
            +   * 
            + * + * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListMeshesRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListMeshesRequest.java index 3cb0f17d2136..22d4c293acb4 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListMeshesRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListMeshesRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. The project and location from which the Meshes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * @@ -108,7 +108,7 @@ public java.lang.String getParent() { * *
                * Required. The project and location from which the Meshes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * @@ -613,7 +613,7 @@ public Builder mergeFrom( * *
                  * Required. The project and location from which the Meshes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -639,7 +639,7 @@ public java.lang.String getParent() { * *
                  * Required. The project and location from which the Meshes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -665,7 +665,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                  * Required. The project and location from which the Meshes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -690,7 +690,7 @@ public Builder setParent(java.lang.String value) { * *
                  * Required. The project and location from which the Meshes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -711,7 +711,7 @@ public Builder clearParent() { * *
                  * Required. The project and location from which the Meshes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListMeshesRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListMeshesRequestOrBuilder.java index 402caca8937b..364bc32dfad0 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListMeshesRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListMeshesRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface ListMeshesRequestOrBuilder * *
                * Required. The project and location from which the Meshes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface ListMeshesRequestOrBuilder * *
                * Required. The project and location from which the Meshes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTcpRoutesRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTcpRoutesRequest.java index 5616e6ff93d8..3e369e892abb 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTcpRoutesRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTcpRoutesRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. The project and location from which the TcpRoutes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * @@ -108,7 +108,7 @@ public java.lang.String getParent() { * *
                * Required. The project and location from which the TcpRoutes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * @@ -613,7 +613,7 @@ public Builder mergeFrom( * *
                  * Required. The project and location from which the TcpRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -639,7 +639,7 @@ public java.lang.String getParent() { * *
                  * Required. The project and location from which the TcpRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -665,7 +665,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                  * Required. The project and location from which the TcpRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -690,7 +690,7 @@ public Builder setParent(java.lang.String value) { * *
                  * Required. The project and location from which the TcpRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -711,7 +711,7 @@ public Builder clearParent() { * *
                  * Required. The project and location from which the TcpRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTcpRoutesRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTcpRoutesRequestOrBuilder.java index c8bd0c12c2c4..ace6ee2e00a4 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTcpRoutesRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTcpRoutesRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface ListTcpRoutesRequestOrBuilder * *
                * Required. The project and location from which the TcpRoutes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface ListTcpRoutesRequestOrBuilder * *
                * Required. The project and location from which the TcpRoutes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTlsRoutesRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTlsRoutesRequest.java index dc282c7eeba8..d1e2965105e0 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTlsRoutesRequest.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTlsRoutesRequest.java @@ -81,7 +81,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                * Required. The project and location from which the TlsRoutes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * @@ -108,7 +108,7 @@ public java.lang.String getParent() { * *
                * Required. The project and location from which the TlsRoutes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * @@ -613,7 +613,7 @@ public Builder mergeFrom( * *
                  * Required. The project and location from which the TlsRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -639,7 +639,7 @@ public java.lang.String getParent() { * *
                  * Required. The project and location from which the TlsRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -665,7 +665,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                  * Required. The project and location from which the TlsRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -690,7 +690,7 @@ public Builder setParent(java.lang.String value) { * *
                  * Required. The project and location from which the TlsRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * @@ -711,7 +711,7 @@ public Builder clearParent() { * *
                  * Required. The project and location from which the TlsRoutes should be
            -     * listed, specified in the format `projects/*/locations/global`.
            +     * listed, specified in the format `projects/*/locations/*`.
                  * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTlsRoutesRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTlsRoutesRequestOrBuilder.java index 1b83bf6ee882..40b58a44a405 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTlsRoutesRequestOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ListTlsRoutesRequestOrBuilder.java @@ -31,7 +31,7 @@ public interface ListTlsRoutesRequestOrBuilder * *
                * Required. The project and location from which the TlsRoutes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * @@ -47,7 +47,7 @@ public interface ListTlsRoutesRequestOrBuilder * *
                * Required. The project and location from which the TlsRoutes should be
            -   * listed, specified in the format `projects/*/locations/global`.
            +   * listed, specified in the format `projects/*/locations/*`.
                * 
            * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/Mesh.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/Mesh.java index 9e4b627828b9..68f17a6d25aa 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/Mesh.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/Mesh.java @@ -98,7 +98,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl * *
                * Identifier. Name of the Mesh resource. It matches pattern
            -   * `projects/*/locations/global/meshes/<mesh_name>`.
            +   * `projects/*/locations/*/meshes/<mesh_name>`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -123,7 +123,7 @@ public java.lang.String getName() { * *
                * Identifier. Name of the Mesh resource. It matches pattern
            -   * `projects/*/locations/global/meshes/<mesh_name>`.
            +   * `projects/*/locations/*/meshes/<mesh_name>`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1102,7 +1102,7 @@ public Builder mergeFrom( * *
                  * Identifier. Name of the Mesh resource. It matches pattern
            -     * `projects/*/locations/global/meshes/<mesh_name>`.
            +     * `projects/*/locations/*/meshes/<mesh_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1126,7 +1126,7 @@ public java.lang.String getName() { * *
                  * Identifier. Name of the Mesh resource. It matches pattern
            -     * `projects/*/locations/global/meshes/<mesh_name>`.
            +     * `projects/*/locations/*/meshes/<mesh_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1150,7 +1150,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                  * Identifier. Name of the Mesh resource. It matches pattern
            -     * `projects/*/locations/global/meshes/<mesh_name>`.
            +     * `projects/*/locations/*/meshes/<mesh_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1173,7 +1173,7 @@ public Builder setName(java.lang.String value) { * *
                  * Identifier. Name of the Mesh resource. It matches pattern
            -     * `projects/*/locations/global/meshes/<mesh_name>`.
            +     * `projects/*/locations/*/meshes/<mesh_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -1192,7 +1192,7 @@ public Builder clearName() { * *
                  * Identifier. Name of the Mesh resource. It matches pattern
            -     * `projects/*/locations/global/meshes/<mesh_name>`.
            +     * `projects/*/locations/*/meshes/<mesh_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshOrBuilder.java index 4be4f12e9592..47056573b397 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshOrBuilder.java @@ -31,7 +31,7 @@ public interface MeshOrBuilder * *
                * Identifier. Name of the Mesh resource. It matches pattern
            -   * `projects/*/locations/global/meshes/<mesh_name>`.
            +   * `projects/*/locations/*/meshes/<mesh_name>`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -45,7 +45,7 @@ public interface MeshOrBuilder * *
                * Identifier. Name of the Mesh resource. It matches pattern
            -   * `projects/*/locations/global/meshes/<mesh_name>`.
            +   * `projects/*/locations/*/meshes/<mesh_name>`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshProto.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshProto.java index 2a321eb04acf..79adf4e4a5d8 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshProto.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/MeshProto.java @@ -87,7 +87,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pi/resource.proto\032,google/cloud/networks" + "ervices/v1/common.proto\032 google/protobuf" + "/field_mask.proto\032\037google/protobuf/times" - + "tamp.proto\"\221\004\n\004Mesh\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\026" + + "tamp.proto\"\237\004\n\004Mesh\022\021\n\004name\030\001 \001(\tB\003\340A\010\022\026" + "\n\tself_link\030\t \001(\tB\003\340A\003\0224\n\013create_time\030\002 " + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013" + "update_time\030\003 \001(\0132\032.google.protobuf.Time" @@ -97,38 +97,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "tion_port\030\010 \001(\005B\003\340A\001\022N\n\renvoy_headers\030\020 " + "\001(\0162-.google.cloud.networkservices.v1.En" + "voyHeadersB\003\340A\001H\000\210\001\001\032-\n\013LabelsEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:_\352A\\\n#networ" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001:m\352Aj\n#networ" + "kservices.googleapis.com/Mesh\0225projects/" + "{project}/locations/{location}/meshes/{m" - + "esh}B\020\n\016_envoy_headers\"\234\001\n\021ListMeshesReq" - + "uest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#networkser" - + "vices.googleapis.com/Mesh\022\021\n\tpage_size\030\002" - + " \001(\005\022\022\n\npage_token\030\003 \001(\t\022#\n\026return_parti" - + "al_success\030\004 \001(\010B\003\340A\001\"y\n\022ListMeshesRespo" - + "nse\0225\n\006meshes\030\001 \003(\0132%.google.cloud.netwo" - + "rkservices.v1.Mesh\022\027\n\017next_page_token\030\002 " - + "\001(\t\022\023\n\013unreachable\030\003 \003(\t\"K\n\016GetMeshReque" - + "st\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#networkservice" - + "s.googleapis.com/Mesh\"\240\001\n\021CreateMeshRequ" - + "est\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\022#networkserv" - + "ices.googleapis.com/Mesh\022\024\n\007mesh_id\030\002 \001(" - + "\tB\003\340A\002\0228\n\004mesh\030\003 \001(\0132%.google.cloud.netw" - + "orkservices.v1.MeshB\003\340A\002\"\203\001\n\021UpdateMeshR" - + "equest\0224\n\013update_mask\030\001 \001(\0132\032.google.pro" - + "tobuf.FieldMaskB\003\340A\001\0228\n\004mesh\030\002 \001(\0132%.goo" - + "gle.cloud.networkservices.v1.MeshB\003\340A\002\"N" - + "\n\021DeleteMeshRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A" - + "%\n#networkservices.googleapis.com/MeshB\344" - + "\002\n#com.google.cloud.networkservices.v1B\t" - + "MeshProtoP\001ZMcloud.google.com/go/network" - + "services/apiv1/networkservicespb;network" - + "servicespb\252\002\037Google.Cloud.NetworkService" - + "s.V1\312\002\037Google\\Cloud\\NetworkServices\\V1\352\002" - + "\"Google::Cloud::NetworkServices::V1\352Aw\n(" - + "compute.googleapis.com/ServiceAttachment" - + "\022Kprojects/{project}/regions/{region}/se" - + "rviceAttachments/{service_attachment}b\006p" - + "roto3" + + "esh}*\006meshes2\004meshB\020\n\016_envoy_headers\"\234\001\n" + + "\021ListMeshesRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372" + + "A%\022#networkservices.googleapis.com/Mesh\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022#" + + "\n\026return_partial_success\030\004 \001(\010B\003\340A\001\"y\n\022L" + + "istMeshesResponse\0225\n\006meshes\030\001 \003(\0132%.goog" + + "le.cloud.networkservices.v1.Mesh\022\027\n\017next" + + "_page_token\030\002 \001(\t\022\023\n\013unreachable\030\003 \003(\t\"K" + + "\n\016GetMeshRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#" + + "networkservices.googleapis.com/Mesh\"\240\001\n\021" + + "CreateMeshRequest\022;\n\006parent\030\001 \001(\tB+\340A\002\372A" + + "%\022#networkservices.googleapis.com/Mesh\022\024" + + "\n\007mesh_id\030\002 \001(\tB\003\340A\002\0228\n\004mesh\030\003 \001(\0132%.goo" + + "gle.cloud.networkservices.v1.MeshB\003\340A\002\"\203" + + "\001\n\021UpdateMeshRequest\0224\n\013update_mask\030\001 \001(" + + "\0132\032.google.protobuf.FieldMaskB\003\340A\001\0228\n\004me" + + "sh\030\002 \001(\0132%.google.cloud.networkservices." + + "v1.MeshB\003\340A\002\"N\n\021DeleteMeshRequest\0229\n\004nam" + + "e\030\001 \001(\tB+\340A\002\372A%\n#networkservices.googlea" + + "pis.com/MeshB\344\002\n#com.google.cloud.networ" + + "kservices.v1B\tMeshProtoP\001ZMcloud.google." + + "com/go/networkservices/apiv1/networkserv" + + "icespb;networkservicespb\252\002\037Google.Cloud." + + "NetworkServices.V1\312\002\037Google\\Cloud\\Networ" + + "kServices\\V1\352\002\"Google::Cloud::NetworkSer" + + "vices::V1\352Aw\n(compute.googleapis.com/Ser" + + "viceAttachment\022Kprojects/{project}/regio" + + "ns/{region}/serviceAttachments/{service_" + + "attachment}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesOuterClass.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesOuterClass.java index fa24440605c5..3164597530d7 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesOuterClass.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/NetworkServicesOuterClass.java @@ -51,380 +51,413 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n6google/cloud/networkservices/v1/networ" + "k_services.proto\022\037google.cloud.networkse" + "rvices.v1\032\034google/api/annotations.proto\032" - + "\027google/api/client.proto\032,google/cloud/n" - + "etworkservices/v1/common.proto\0325google/c" - + "loud/networkservices/v1/endpoint_policy." - + "proto\0323google/cloud/networkservices/v1/e" - + "xtensibility.proto\032-google/cloud/network" - + "services/v1/gateway.proto\0320google/cloud/" - + "networkservices/v1/grpc_route.proto\0320goo" - + "gle/cloud/networkservices/v1/http_route." - + "proto\032*google/cloud/networkservices/v1/m" - + "esh.proto\0320google/cloud/networkservices/" - + "v1/route_view.proto\0325google/cloud/networ" - + "kservices/v1/service_binding.proto\0327goog" - + "le/cloud/networkservices/v1/service_lb_p" - + "olicy.proto\032/google/cloud/networkservice" - + "s/v1/tcp_route.proto\032/google/cloud/netwo" - + "rkservices/v1/tls_route.proto\032#google/lo" - + "ngrunning/operations.proto\032\033google/proto" - + "buf/empty.proto2\302m\n\017NetworkServices\022\332\001\n\024" - + "ListEndpointPolicies\022<.google.cloud.netw" - + "orkservices.v1.ListEndpointPoliciesReque" - + "st\032=.google.cloud.networkservices.v1.Lis" - + "tEndpointPoliciesResponse\"E\332A\006parent\202\323\344\223" - + "\0026\0224/v1/{parent=projects/*/locations/*}/" - + "endpointPolicies\022\304\001\n\021GetEndpointPolicy\0229" - + ".google.cloud.networkservices.v1.GetEndp" - + "ointPolicyRequest\032/.google.cloud.network" - + "services.v1.EndpointPolicy\"C\332A\004name\202\323\344\223\002" - + "6\0224/v1/{name=projects/*/locations/*/endp" - + "ointPolicies/*}\022\265\002\n\024CreateEndpointPolicy" - + "\022<.google.cloud.networkservices.v1.Creat" - + "eEndpointPolicyRequest\032\035.google.longrunn" - + "ing.Operation\"\277\001\312AC\n\016EndpointPolicy\0221goo" - + "gle.cloud.networkservices.v1.OperationMe" - + "tadata\332A)parent,endpoint_policy,endpoint" - + "_policy_id\202\323\344\223\002G\"4/v1/{parent=projects/*" - + "/locations/*}/endpointPolicies:\017endpoint" - + "_policy\022\267\002\n\024UpdateEndpointPolicy\022<.googl" - + "e.cloud.networkservices.v1.UpdateEndpoin" - + "tPolicyRequest\032\035.google.longrunning.Oper" - + "ation\"\301\001\312AC\n\016EndpointPolicy\0221google.clou" - + "d.networkservices.v1.OperationMetadata\332A" - + "\033endpoint_policy,update_mask\202\323\344\223\002W2D/v1/" - + "{endpoint_policy.name=projects/*/locatio" - + "ns/*/endpointPolicies/*}:\017endpoint_polic" - + "y\022\206\002\n\024DeleteEndpointPolicy\022<.google.clou" - + "d.networkservices.v1.DeleteEndpointPolic" - + "yRequest\032\035.google.longrunning.Operation\"" - + "\220\001\312AJ\n\025google.protobuf.Empty\0221google.clo" - + "ud.networkservices.v1.OperationMetadata\332" - + "A\004name\202\323\344\223\0026*4/v1/{name=projects/*/locat" - + "ions/*/endpointPolicies/*}\022\346\001\n\026ListWasmP" - + "luginVersions\022>.google.cloud.networkserv" - + "ices.v1.ListWasmPluginVersionsRequest\032?." - + "google.cloud.networkservices.v1.ListWasm" - + "PluginVersionsResponse\"K\332A\006parent\202\323\344\223\002<\022" - + ":/v1/{parent=projects/*/locations/*/wasm" - + "Plugins/*}/versions\022\323\001\n\024GetWasmPluginVer" - + "sion\022<.google.cloud.networkservices.v1.G" - + "etWasmPluginVersionRequest\0322.google.clou" - + "d.networkservices.v1.WasmPluginVersion\"I" - + "\332A\004name\202\323\344\223\002<\022:/v1/{name=projects/*/loca" - + "tions/*/wasmPlugins/*/versions/*}\022\320\002\n\027Cr" - + "eateWasmPluginVersion\022?.google.cloud.net" - + "workservices.v1.CreateWasmPluginVersionR" - + "equest\032\035.google.longrunning.Operation\"\324\001" - + "\312AF\n\021WasmPluginVersion\0221google.cloud.net" - + "workservices.v1.OperationMetadata\332A1pare" - + "nt,wasm_plugin_version,wasm_plugin_versi" - + "on_id\202\323\344\223\002Q\":/v1/{parent=projects/*/loca" - + "tions/*/wasmPlugins/*}/versions:\023wasm_pl" - + "ugin_version\022\222\002\n\027DeleteWasmPluginVersion" - + "\022?.google.cloud.networkservices.v1.Delet" - + "eWasmPluginVersionRequest\032\035.google.longr" - + "unning.Operation\"\226\001\312AJ\n\025google.protobuf." - + "Empty\0221google.cloud.networkservices.v1.O" - + "perationMetadata\332A\004name\202\323\344\223\002<*:/v1/{name" - + "=projects/*/locations/*/wasmPlugins/*/ve" - + "rsions/*}\022\306\001\n\017ListWasmPlugins\0227.google.c" - + "loud.networkservices.v1.ListWasmPluginsR" - + "equest\0328.google.cloud.networkservices.v1" - + ".ListWasmPluginsResponse\"@\332A\006parent\202\323\344\223\002" - + "1\022//v1/{parent=projects/*/locations/*}/w" - + "asmPlugins\022\263\001\n\rGetWasmPlugin\0225.google.cl" - + "oud.networkservices.v1.GetWasmPluginRequ" - + "est\032+.google.cloud.networkservices.v1.Wa" - + "smPlugin\">\332A\004name\202\323\344\223\0021\022//v1/{name=proje" - + "cts/*/locations/*/wasmPlugins/*}\022\230\002\n\020Cre" - + "ateWasmPlugin\0228.google.cloud.networkserv" - + "ices.v1.CreateWasmPluginRequest\032\035.google" - + ".longrunning.Operation\"\252\001\312A?\n\nWasmPlugin" + + "\027google/api/client.proto\0323google/cloud/n" + + "etworkservices/v1/agent_gateway.proto\032,g" + + "oogle/cloud/networkservices/v1/common.pr" + + "oto\0325google/cloud/networkservices/v1/end" + + "point_policy.proto\0323google/cloud/network" + + "services/v1/extensibility.proto\032-google/" + + "cloud/networkservices/v1/gateway.proto\0320" + + "google/cloud/networkservices/v1/grpc_rou" + + "te.proto\0320google/cloud/networkservices/v" + + "1/http_route.proto\032*google/cloud/network" + + "services/v1/mesh.proto\0320google/cloud/net" + + "workservices/v1/route_view.proto\0325google" + + "/cloud/networkservices/v1/service_bindin" + + "g.proto\0327google/cloud/networkservices/v1" + + "/service_lb_policy.proto\032/google/cloud/n" + + "etworkservices/v1/tcp_route.proto\032/googl" + + "e/cloud/networkservices/v1/tls_route.pro" + + "to\032#google/longrunning/operations.proto\032" + + "\033google/protobuf/empty.proto2\247w\n\017Network" + + "Services\022\332\001\n\024ListEndpointPolicies\022<.goog" + + "le.cloud.networkservices.v1.ListEndpoint" + + "PoliciesRequest\032=.google.cloud.networkse" + + "rvices.v1.ListEndpointPoliciesResponse\"E" + + "\332A\006parent\202\323\344\223\0026\0224/v1/{parent=projects/*/" + + "locations/*}/endpointPolicies\022\304\001\n\021GetEnd" + + "pointPolicy\0229.google.cloud.networkservic" + + "es.v1.GetEndpointPolicyRequest\032/.google." + + "cloud.networkservices.v1.EndpointPolicy\"" + + "C\332A\004name\202\323\344\223\0026\0224/v1/{name=projects/*/loc" + + "ations/*/endpointPolicies/*}\022\265\002\n\024CreateE" + + "ndpointPolicy\022<.google.cloud.networkserv" + + "ices.v1.CreateEndpointPolicyRequest\032\035.go" + + "ogle.longrunning.Operation\"\277\001\312AC\n\016Endpoi" + + "ntPolicy\0221google.cloud.networkservices.v" + + "1.OperationMetadata\332A)parent,endpoint_po" + + "licy,endpoint_policy_id\202\323\344\223\002G\"4/v1/{pare" + + "nt=projects/*/locations/*}/endpointPolic" + + "ies:\017endpoint_policy\022\267\002\n\024UpdateEndpointP" + + "olicy\022<.google.cloud.networkservices.v1." + + "UpdateEndpointPolicyRequest\032\035.google.lon" + + "grunning.Operation\"\301\001\312AC\n\016EndpointPolicy" + "\0221google.cloud.networkservices.v1.Operat" - + "ionMetadata\332A!parent,wasm_plugin,wasm_pl" - + "ugin_id\202\323\344\223\002>\"//v1/{parent=projects/*/lo" - + "cations/*}/wasmPlugins:\013wasm_plugin\022\232\002\n\020" - + "UpdateWasmPlugin\0228.google.cloud.networks" - + "ervices.v1.UpdateWasmPluginRequest\032\035.goo" - + "gle.longrunning.Operation\"\254\001\312A?\n\nWasmPlu" - + "gin\0221google.cloud.networkservices.v1.Ope" - + "rationMetadata\332A\027wasm_plugin,update_mask" - + "\202\323\344\223\002J2;/v1/{wasm_plugin.name=projects/*" - + "/locations/*/wasmPlugins/*}:\013wasm_plugin" - + "\022\371\001\n\020DeleteWasmPlugin\0228.google.cloud.net" - + "workservices.v1.DeleteWasmPluginRequest\032" - + "\035.google.longrunning.Operation\"\213\001\312AJ\n\025go" - + "ogle.protobuf.Empty\0221google.cloud.networ" - + "kservices.v1.OperationMetadata\332A\004name\202\323\344" - + "\223\0021*//v1/{name=projects/*/locations/*/wa" - + "smPlugins/*}\022\272\001\n\014ListGateways\0224.google.c" - + "loud.networkservices.v1.ListGatewaysRequ" - + "est\0325.google.cloud.networkservices.v1.Li" - + "stGatewaysResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1" - + "/{parent=projects/*/locations/*}/gateway" - + "s\022\247\001\n\nGetGateway\0222.google.cloud.networks" - + "ervices.v1.GetGatewayRequest\032(.google.cl" - + "oud.networkservices.v1.Gateway\";\332A\004name\202" - + "\323\344\223\002.\022,/v1/{name=projects/*/locations/*/" - + "gateways/*}\022\200\002\n\rCreateGateway\0225.google.c" - + "loud.networkservices.v1.CreateGatewayReq" - + "uest\032\035.google.longrunning.Operation\"\230\001\312A" - + "<\n\007Gateway\0221google.cloud.networkservices" - + ".v1.OperationMetadata\332A\031parent,gateway,g" - + "ateway_id\202\323\344\223\0027\",/v1/{parent=projects/*/" - + "locations/*}/gateways:\007gateway\022\202\002\n\rUpdat" - + "eGateway\0225.google.cloud.networkservices." - + "v1.UpdateGatewayRequest\032\035.google.longrun" - + "ning.Operation\"\232\001\312A<\n\007Gateway\0221google.cl" - + "oud.networkservices.v1.OperationMetadata" - + "\332A\023gateway,update_mask\202\323\344\223\002?24/v1/{gatew" - + "ay.name=projects/*/locations/*/gateways/" - + "*}:\007gateway\022\360\001\n\rDeleteGateway\0225.google.c" - + "loud.networkservices.v1.DeleteGatewayReq" - + "uest\032\035.google.longrunning.Operation\"\210\001\312A" - + "J\n\025google.protobuf.Empty\0221google.cloud.n" - + "etworkservices.v1.OperationMetadata\332A\004na" - + "me\202\323\344\223\002.*,/v1/{name=projects/*/locations" - + "/*/gateways/*}\022\302\001\n\016ListGrpcRoutes\0226.goog" - + "le.cloud.networkservices.v1.ListGrpcRout" - + "esRequest\0327.google.cloud.networkservices" - + ".v1.ListGrpcRoutesResponse\"?\332A\006parent\202\323\344" - + "\223\0020\022./v1/{parent=projects/*/locations/*}" - + "/grpcRoutes\022\257\001\n\014GetGrpcRoute\0224.google.cl" - + "oud.networkservices.v1.GetGrpcRouteReque" - + "st\032*.google.cloud.networkservices.v1.Grp" - + "cRoute\"=\332A\004name\202\323\344\223\0020\022./v1/{name=project" - + "s/*/locations/*/grpcRoutes/*}\022\221\002\n\017Create" - + "GrpcRoute\0227.google.cloud.networkservices" - + ".v1.CreateGrpcRouteRequest\032\035.google.long" - + "running.Operation\"\245\001\312A>\n\tGrpcRoute\0221goog" - + "le.cloud.networkservices.v1.OperationMet" - + "adata\332A\037parent,grpc_route,grpc_route_id\202" - + "\323\344\223\002<\"./v1/{parent=projects/*/locations/" - + "*}/grpcRoutes:\ngrpc_route\022\223\002\n\017UpdateGrpc" - + "Route\0227.google.cloud.networkservices.v1." - + "UpdateGrpcRouteRequest\032\035.google.longrunn" - + "ing.Operation\"\247\001\312A>\n\tGrpcRoute\0221google.c" - + "loud.networkservices.v1.OperationMetadat" - + "a\332A\026grpc_route,update_mask\202\323\344\223\002G29/v1/{g" - + "rpc_route.name=projects/*/locations/*/gr" - + "pcRoutes/*}:\ngrpc_route\022\366\001\n\017DeleteGrpcRo" - + "ute\0227.google.cloud.networkservices.v1.De" - + "leteGrpcRouteRequest\032\035.google.longrunnin" - + "g.Operation\"\212\001\312AJ\n\025google.protobuf.Empty" - + "\0221google.cloud.networkservices.v1.Operat" - + "ionMetadata\332A\004name\202\323\344\223\0020*./v1/{name=proj" - + "ects/*/locations/*/grpcRoutes/*}\022\302\001\n\016Lis" - + "tHttpRoutes\0226.google.cloud.networkservic" - + "es.v1.ListHttpRoutesRequest\0327.google.clo" - + "ud.networkservices.v1.ListHttpRoutesResp" - + "onse\"?\332A\006parent\202\323\344\223\0020\022./v1/{parent=proje" - + "cts/*/locations/*}/httpRoutes\022\257\001\n\014GetHtt" - + "pRoute\0224.google.cloud.networkservices.v1" - + ".GetHttpRouteRequest\032*.google.cloud.netw" - + "orkservices.v1.HttpRoute\"=\332A\004name\202\323\344\223\0020\022" - + "./v1/{name=projects/*/locations/*/httpRo" - + "utes/*}\022\221\002\n\017CreateHttpRoute\0227.google.clo" - + "ud.networkservices.v1.CreateHttpRouteReq" - + "uest\032\035.google.longrunning.Operation\"\245\001\312A" - + ">\n\tHttpRoute\0221google.cloud.networkservic" - + "es.v1.OperationMetadata\332A\037parent,http_ro" - + "ute,http_route_id\202\323\344\223\002<\"./v1/{parent=pro" - + "jects/*/locations/*}/httpRoutes:\nhttp_ro" - + "ute\022\223\002\n\017UpdateHttpRoute\0227.google.cloud.n" - + "etworkservices.v1.UpdateHttpRouteRequest" - + "\032\035.google.longrunning.Operation\"\247\001\312A>\n\tH" - + "ttpRoute\0221google.cloud.networkservices.v" - + "1.OperationMetadata\332A\026http_route,update_" - + "mask\202\323\344\223\002G29/v1/{http_route.name=project" - + "s/*/locations/*/httpRoutes/*}:\nhttp_rout" - + "e\022\366\001\n\017DeleteHttpRoute\0227.google.cloud.net" - + "workservices.v1.DeleteHttpRouteRequest\032\035" - + ".google.longrunning.Operation\"\212\001\312AJ\n\025goo" + + "ionMetadata\332A\033endpoint_policy,update_mas" + + "k\202\323\344\223\002W2D/v1/{endpoint_policy.name=proje" + + "cts/*/locations/*/endpointPolicies/*}:\017e" + + "ndpoint_policy\022\206\002\n\024DeleteEndpointPolicy\022" + + "<.google.cloud.networkservices.v1.Delete" + + "EndpointPolicyRequest\032\035.google.longrunni" + + "ng.Operation\"\220\001\312AJ\n\025google.protobuf.Empt" + + "y\0221google.cloud.networkservices.v1.Opera" + + "tionMetadata\332A\004name\202\323\344\223\0026*4/v1/{name=pro" + + "jects/*/locations/*/endpointPolicies/*}\022" + + "\346\001\n\026ListWasmPluginVersions\022>.google.clou" + + "d.networkservices.v1.ListWasmPluginVersi" + + "onsRequest\032?.google.cloud.networkservice" + + "s.v1.ListWasmPluginVersionsResponse\"K\332A\006" + + "parent\202\323\344\223\002<\022:/v1/{parent=projects/*/loc" + + "ations/*/wasmPlugins/*}/versions\022\323\001\n\024Get" + + "WasmPluginVersion\022<.google.cloud.network" + + "services.v1.GetWasmPluginVersionRequest\032" + + "2.google.cloud.networkservices.v1.WasmPl" + + "uginVersion\"I\332A\004name\202\323\344\223\002<\022:/v1/{name=pr" + + "ojects/*/locations/*/wasmPlugins/*/versi" + + "ons/*}\022\320\002\n\027CreateWasmPluginVersion\022?.goo" + + "gle.cloud.networkservices.v1.CreateWasmP" + + "luginVersionRequest\032\035.google.longrunning" + + ".Operation\"\324\001\312AF\n\021WasmPluginVersion\0221goo" + + "gle.cloud.networkservices.v1.OperationMe" + + "tadata\332A1parent,wasm_plugin_version,wasm" + + "_plugin_version_id\202\323\344\223\002Q\":/v1/{parent=pr" + + "ojects/*/locations/*/wasmPlugins/*}/vers" + + "ions:\023wasm_plugin_version\022\222\002\n\027DeleteWasm" + + "PluginVersion\022?.google.cloud.networkserv" + + "ices.v1.DeleteWasmPluginVersionRequest\032\035" + + ".google.longrunning.Operation\"\226\001\312AJ\n\025goo" + "gle.protobuf.Empty\0221google.cloud.network" + "services.v1.OperationMetadata\332A\004name\202\323\344\223" - + "\0020*./v1/{name=projects/*/locations/*/htt" - + "pRoutes/*}\022\276\001\n\rListTcpRoutes\0225.google.cl" - + "oud.networkservices.v1.ListTcpRoutesRequ" - + "est\0326.google.cloud.networkservices.v1.Li" - + "stTcpRoutesResponse\">\332A\006parent\202\323\344\223\002/\022-/v" - + "1/{parent=projects/*/locations/*}/tcpRou" - + "tes\022\253\001\n\013GetTcpRoute\0223.google.cloud.netwo" - + "rkservices.v1.GetTcpRouteRequest\032).googl" - + "e.cloud.networkservices.v1.TcpRoute\"<\332A\004" - + "name\202\323\344\223\002/\022-/v1/{name=projects/*/locatio" - + "ns/*/tcpRoutes/*}\022\212\002\n\016CreateTcpRoute\0226.g" - + "oogle.cloud.networkservices.v1.CreateTcp" - + "RouteRequest\032\035.google.longrunning.Operat" - + "ion\"\240\001\312A=\n\010TcpRoute\0221google.cloud.networ" - + "kservices.v1.OperationMetadata\332A\035parent," - + "tcp_route,tcp_route_id\202\323\344\223\002:\"-/v1/{paren" - + "t=projects/*/locations/*}/tcpRoutes:\ttcp" - + "_route\022\214\002\n\016UpdateTcpRoute\0226.google.cloud" - + ".networkservices.v1.UpdateTcpRouteReques" - + "t\032\035.google.longrunning.Operation\"\242\001\312A=\n\010" - + "TcpRoute\0221google.cloud.networkservices.v" - + "1.OperationMetadata\332A\025tcp_route,update_m" - + "ask\202\323\344\223\002D27/v1/{tcp_route.name=projects/" - + "*/locations/*/tcpRoutes/*}:\ttcp_route\022\363\001" - + "\n\016DeleteTcpRoute\0226.google.cloud.networks" - + "ervices.v1.DeleteTcpRouteRequest\032\035.googl" - + "e.longrunning.Operation\"\211\001\312AJ\n\025google.pr" - + "otobuf.Empty\0221google.cloud.networkservic" - + "es.v1.OperationMetadata\332A\004name\202\323\344\223\002/*-/v" - + "1/{name=projects/*/locations/*/tcpRoutes" - + "/*}\022\276\001\n\rListTlsRoutes\0225.google.cloud.net" - + "workservices.v1.ListTlsRoutesRequest\0326.g" - + "oogle.cloud.networkservices.v1.ListTlsRo" - + "utesResponse\">\332A\006parent\202\323\344\223\002/\022-/v1/{pare" - + "nt=projects/*/locations/*}/tlsRoutes\022\253\001\n" - + "\013GetTlsRoute\0223.google.cloud.networkservi" - + "ces.v1.GetTlsRouteRequest\032).google.cloud" - + ".networkservices.v1.TlsRoute\"<\332A\004name\202\323\344" - + "\223\002/\022-/v1/{name=projects/*/locations/*/tl" - + "sRoutes/*}\022\212\002\n\016CreateTlsRoute\0226.google.c" - + "loud.networkservices.v1.CreateTlsRouteRe" - + "quest\032\035.google.longrunning.Operation\"\240\001\312" - + "A=\n\010TlsRoute\0221google.cloud.networkservic" - + "es.v1.OperationMetadata\332A\035parent,tls_rou" - + "te,tls_route_id\202\323\344\223\002:\"-/v1/{parent=proje" - + "cts/*/locations/*}/tlsRoutes:\ttls_route\022" - + "\214\002\n\016UpdateTlsRoute\0226.google.cloud.networ" - + "kservices.v1.UpdateTlsRouteRequest\032\035.goo" - + "gle.longrunning.Operation\"\242\001\312A=\n\010TlsRout" - + "e\0221google.cloud.networkservices.v1.Opera" - + "tionMetadata\332A\025tls_route,update_mask\202\323\344\223" - + "\002D27/v1/{tls_route.name=projects/*/locat" - + "ions/*/tlsRoutes/*}:\ttls_route\022\363\001\n\016Delet" - + "eTlsRoute\0226.google.cloud.networkservices" - + ".v1.DeleteTlsRouteRequest\032\035.google.longr" - + "unning.Operation\"\211\001\312AJ\n\025google.protobuf." - + "Empty\0221google.cloud.networkservices.v1.O" - + "perationMetadata\332A\004name\202\323\344\223\002/*-/v1/{name" - + "=projects/*/locations/*/tlsRoutes/*}\022\326\001\n" - + "\023ListServiceBindings\022;.google.cloud.netw" - + "orkservices.v1.ListServiceBindingsReques" - + "t\032<.google.cloud.networkservices.v1.List" - + "ServiceBindingsResponse\"D\332A\006parent\202\323\344\223\0025" - + "\0223/v1/{parent=projects/*/locations/*}/se" - + "rviceBindings\022\303\001\n\021GetServiceBinding\0229.go" - + "ogle.cloud.networkservices.v1.GetService" - + "BindingRequest\032/.google.cloud.networkser" - + "vices.v1.ServiceBinding\"B\332A\004name\202\323\344\223\0025\0223" - + "/v1/{name=projects/*/locations/*/service" - + "Bindings/*}\022\264\002\n\024CreateServiceBinding\022<.g" - + "oogle.cloud.networkservices.v1.CreateSer" - + "viceBindingRequest\032\035.google.longrunning." - + "Operation\"\276\001\312AC\n\016ServiceBinding\0221google." + + "\002<*:/v1/{name=projects/*/locations/*/was" + + "mPlugins/*/versions/*}\022\306\001\n\017ListWasmPlugi" + + "ns\0227.google.cloud.networkservices.v1.Lis" + + "tWasmPluginsRequest\0328.google.cloud.netwo" + + "rkservices.v1.ListWasmPluginsResponse\"@\332" + + "A\006parent\202\323\344\223\0021\022//v1/{parent=projects/*/l" + + "ocations/*}/wasmPlugins\022\263\001\n\rGetWasmPlugi" + + "n\0225.google.cloud.networkservices.v1.GetW" + + "asmPluginRequest\032+.google.cloud.networks" + + "ervices.v1.WasmPlugin\">\332A\004name\202\323\344\223\0021\022//v" + + "1/{name=projects/*/locations/*/wasmPlugi" + + "ns/*}\022\230\002\n\020CreateWasmPlugin\0228.google.clou" + + "d.networkservices.v1.CreateWasmPluginReq" + + "uest\032\035.google.longrunning.Operation\"\252\001\312A" + + "?\n\nWasmPlugin\0221google.cloud.networkservi" + + "ces.v1.OperationMetadata\332A!parent,wasm_p" + + "lugin,wasm_plugin_id\202\323\344\223\002>\"//v1/{parent=" + + "projects/*/locations/*}/wasmPlugins:\013was" + + "m_plugin\022\232\002\n\020UpdateWasmPlugin\0228.google.c" + + "loud.networkservices.v1.UpdateWasmPlugin" + + "Request\032\035.google.longrunning.Operation\"\254" + + "\001\312A?\n\nWasmPlugin\0221google.cloud.networkse" + + "rvices.v1.OperationMetadata\332A\027wasm_plugi" + + "n,update_mask\202\323\344\223\002J2;/v1/{wasm_plugin.na" + + "me=projects/*/locations/*/wasmPlugins/*}" + + ":\013wasm_plugin\022\371\001\n\020DeleteWasmPlugin\0228.goo" + + "gle.cloud.networkservices.v1.DeleteWasmP" + + "luginRequest\032\035.google.longrunning.Operat" + + "ion\"\213\001\312AJ\n\025google.protobuf.Empty\0221google" + + ".cloud.networkservices.v1.OperationMetad" + + "ata\332A\004name\202\323\344\223\0021*//v1/{name=projects/*/l" + + "ocations/*/wasmPlugins/*}\022\272\001\n\014ListGatewa" + + "ys\0224.google.cloud.networkservices.v1.Lis" + + "tGatewaysRequest\0325.google.cloud.networks" + + "ervices.v1.ListGatewaysResponse\"=\332A\006pare" + + "nt\202\323\344\223\002.\022,/v1/{parent=projects/*/locatio" + + "ns/*}/gateways\022\247\001\n\nGetGateway\0222.google.c" + + "loud.networkservices.v1.GetGatewayReques" + + "t\032(.google.cloud.networkservices.v1.Gate" + + "way\";\332A\004name\202\323\344\223\002.\022,/v1/{name=projects/*" + + "/locations/*/gateways/*}\022\200\002\n\rCreateGatew" + + "ay\0225.google.cloud.networkservices.v1.Cre" + + "ateGatewayRequest\032\035.google.longrunning.O" + + "peration\"\230\001\312A<\n\007Gateway\0221google.cloud.ne" + + "tworkservices.v1.OperationMetadata\332A\031par" + + "ent,gateway,gateway_id\202\323\344\223\0027\",/v1/{paren" + + "t=projects/*/locations/*}/gateways:\007gate" + + "way\022\202\002\n\rUpdateGateway\0225.google.cloud.net" + + "workservices.v1.UpdateGatewayRequest\032\035.g" + + "oogle.longrunning.Operation\"\232\001\312A<\n\007Gatew" + + "ay\0221google.cloud.networkservices.v1.Oper" + + "ationMetadata\332A\023gateway,update_mask\202\323\344\223\002" + + "?24/v1/{gateway.name=projects/*/location" + + "s/*/gateways/*}:\007gateway\022\360\001\n\rDeleteGatew" + + "ay\0225.google.cloud.networkservices.v1.Del" + + "eteGatewayRequest\032\035.google.longrunning.O" + + "peration\"\210\001\312AJ\n\025google.protobuf.Empty\0221g" + + "oogle.cloud.networkservices.v1.Operation" + + "Metadata\332A\004name\202\323\344\223\002.*,/v1/{name=project" + + "s/*/locations/*/gateways/*}\022\302\001\n\016ListGrpc" + + "Routes\0226.google.cloud.networkservices.v1" + + ".ListGrpcRoutesRequest\0327.google.cloud.ne" + + "tworkservices.v1.ListGrpcRoutesResponse\"" + + "?\332A\006parent\202\323\344\223\0020\022./v1/{parent=projects/*" + + "/locations/*}/grpcRoutes\022\257\001\n\014GetGrpcRout" + + "e\0224.google.cloud.networkservices.v1.GetG" + + "rpcRouteRequest\032*.google.cloud.networkse" + + "rvices.v1.GrpcRoute\"=\332A\004name\202\323\344\223\0020\022./v1/" + + "{name=projects/*/locations/*/grpcRoutes/" + + "*}\022\221\002\n\017CreateGrpcRoute\0227.google.cloud.ne" + + "tworkservices.v1.CreateGrpcRouteRequest\032" + + "\035.google.longrunning.Operation\"\245\001\312A>\n\tGr" + + "pcRoute\0221google.cloud.networkservices.v1" + + ".OperationMetadata\332A\037parent,grpc_route,g" + + "rpc_route_id\202\323\344\223\002<\"./v1/{parent=projects" + + "/*/locations/*}/grpcRoutes:\ngrpc_route\022\223" + + "\002\n\017UpdateGrpcRoute\0227.google.cloud.networ" + + "kservices.v1.UpdateGrpcRouteRequest\032\035.go" + + "ogle.longrunning.Operation\"\247\001\312A>\n\tGrpcRo" + + "ute\0221google.cloud.networkservices.v1.Ope" + + "rationMetadata\332A\026grpc_route,update_mask\202" + + "\323\344\223\002G29/v1/{grpc_route.name=projects/*/l" + + "ocations/*/grpcRoutes/*}:\ngrpc_route\022\366\001\n" + + "\017DeleteGrpcRoute\0227.google.cloud.networks" + + "ervices.v1.DeleteGrpcRouteRequest\032\035.goog" + + "le.longrunning.Operation\"\212\001\312AJ\n\025google.p" + + "rotobuf.Empty\0221google.cloud.networkservi" + + "ces.v1.OperationMetadata\332A\004name\202\323\344\223\0020*./" + + "v1/{name=projects/*/locations/*/grpcRout" + + "es/*}\022\302\001\n\016ListHttpRoutes\0226.google.cloud." + + "networkservices.v1.ListHttpRoutesRequest" + + "\0327.google.cloud.networkservices.v1.ListH" + + "ttpRoutesResponse\"?\332A\006parent\202\323\344\223\0020\022./v1/" + + "{parent=projects/*/locations/*}/httpRout" + + "es\022\257\001\n\014GetHttpRoute\0224.google.cloud.netwo" + + "rkservices.v1.GetHttpRouteRequest\032*.goog" + + "le.cloud.networkservices.v1.HttpRoute\"=\332" + + "A\004name\202\323\344\223\0020\022./v1/{name=projects/*/locat" + + "ions/*/httpRoutes/*}\022\221\002\n\017CreateHttpRoute" + + "\0227.google.cloud.networkservices.v1.Creat" + + "eHttpRouteRequest\032\035.google.longrunning.O" + + "peration\"\245\001\312A>\n\tHttpRoute\0221google.cloud." + + "networkservices.v1.OperationMetadata\332A\037p" + + "arent,http_route,http_route_id\202\323\344\223\002<\"./v" + + "1/{parent=projects/*/locations/*}/httpRo" + + "utes:\nhttp_route\022\223\002\n\017UpdateHttpRoute\0227.g" + + "oogle.cloud.networkservices.v1.UpdateHtt" + + "pRouteRequest\032\035.google.longrunning.Opera" + + "tion\"\247\001\312A>\n\tHttpRoute\0221google.cloud.netw" + + "orkservices.v1.OperationMetadata\332A\026http_" + + "route,update_mask\202\323\344\223\002G29/v1/{http_route" + + ".name=projects/*/locations/*/httpRoutes/" + + "*}:\nhttp_route\022\366\001\n\017DeleteHttpRoute\0227.goo" + + "gle.cloud.networkservices.v1.DeleteHttpR" + + "outeRequest\032\035.google.longrunning.Operati" + + "on\"\212\001\312AJ\n\025google.protobuf.Empty\0221google." + "cloud.networkservices.v1.OperationMetada" - + "ta\332A)parent,service_binding,service_bind" - + "ing_id\202\323\344\223\002F\"3/v1/{parent=projects/*/loc" - + "ations/*}/serviceBindings:\017service_bindi" - + "ng\022\266\002\n\024UpdateServiceBinding\022<.google.clo" - + "ud.networkservices.v1.UpdateServiceBindi" - + "ngRequest\032\035.google.longrunning.Operation" - + "\"\300\001\312AC\n\016ServiceBinding\0221google.cloud.net" - + "workservices.v1.OperationMetadata\332A\033serv" - + "ice_binding,update_mask\202\323\344\223\002V2C/v1/{serv" - + "ice_binding.name=projects/*/locations/*/" - + "serviceBindings/*}:\017service_binding\022\205\002\n\024" - + "DeleteServiceBinding\022<.google.cloud.netw" - + "orkservices.v1.DeleteServiceBindingReque" - + "st\032\035.google.longrunning.Operation\"\217\001\312AJ\n" - + "\025google.protobuf.Empty\0221google.cloud.net" - + "workservices.v1.OperationMetadata\332A\004name" - + "\202\323\344\223\0025*3/v1/{name=projects/*/locations/*" - + "/serviceBindings/*}\022\262\001\n\nListMeshes\0222.goo" - + "gle.cloud.networkservices.v1.ListMeshesR" - + "equest\0323.google.cloud.networkservices.v1" - + ".ListMeshesResponse\";\332A\006parent\202\323\344\223\002,\022*/v" - + "1/{parent=projects/*/locations/*}/meshes" - + "\022\234\001\n\007GetMesh\022/.google.cloud.networkservi" - + "ces.v1.GetMeshRequest\032%.google.cloud.net" - + "workservices.v1.Mesh\"9\332A\004name\202\323\344\223\002,\022*/v1" - + "/{name=projects/*/locations/*/meshes/*}\022" - + "\354\001\n\nCreateMesh\0222.google.cloud.networkser" - + "vices.v1.CreateMeshRequest\032\035.google.long" - + "running.Operation\"\212\001\312A9\n\004Mesh\0221google.cl" - + "oud.networkservices.v1.OperationMetadata" - + "\332A\023parent,mesh,mesh_id\202\323\344\223\0022\"*/v1/{paren" - + "t=projects/*/locations/*}/meshes:\004mesh\022\356" - + "\001\n\nUpdateMesh\0222.google.cloud.networkserv" - + "ices.v1.UpdateMeshRequest\032\035.google.longr" - + "unning.Operation\"\214\001\312A9\n\004Mesh\0221google.clo" - + "ud.networkservices.v1.OperationMetadata\332" - + "A\020mesh,update_mask\202\323\344\223\00272//v1/{mesh.name" - + "=projects/*/locations/*/meshes/*}:\004mesh\022" - + "\350\001\n\nDeleteMesh\0222.google.cloud.networkser" - + "vices.v1.DeleteMeshRequest\032\035.google.long" - + "running.Operation\"\206\001\312AJ\n\025google.protobuf" - + ".Empty\0221google.cloud.networkservices.v1." - + "OperationMetadata\332A\004name\202\323\344\223\002,**/v1/{nam" - + "e=projects/*/locations/*/meshes/*}\022\336\001\n\025L" - + "istServiceLbPolicies\022=.google.cloud.netw" - + "orkservices.v1.ListServiceLbPoliciesRequ" - + "est\032>.google.cloud.networkservices.v1.Li" - + "stServiceLbPoliciesResponse\"F\332A\006parent\202\323" - + "\344\223\0027\0225/v1/{parent=projects/*/locations/*" - + "}/serviceLbPolicies\022\310\001\n\022GetServiceLbPoli" - + "cy\022:.google.cloud.networkservices.v1.Get" - + "ServiceLbPolicyRequest\0320.google.cloud.ne" - + "tworkservices.v1.ServiceLbPolicy\"D\332A\004nam" - + "e\202\323\344\223\0027\0225/v1/{name=projects/*/locations/" - + "*/serviceLbPolicies/*}\022\277\002\n\025CreateService" - + "LbPolicy\022=.google.cloud.networkservices." - + "v1.CreateServiceLbPolicyRequest\032\035.google" - + ".longrunning.Operation\"\307\001\312AD\n\017ServiceLbP" - + "olicy\0221google.cloud.networkservices.v1.O" - + "perationMetadata\332A-parent,service_lb_pol" - + "icy,service_lb_policy_id\202\323\344\223\002J\"5/v1/{par" - + "ent=projects/*/locations/*}/serviceLbPol" - + "icies:\021service_lb_policy\022\301\002\n\025UpdateServi" - + "ceLbPolicy\022=.google.cloud.networkservice" - + "s.v1.UpdateServiceLbPolicyRequest\032\035.goog" - + "le.longrunning.Operation\"\311\001\312AD\n\017ServiceL" - + "bPolicy\0221google.cloud.networkservices.v1" - + ".OperationMetadata\332A\035service_lb_policy,u" - + "pdate_mask\202\323\344\223\002\\2G/v1/{service_lb_policy" - + ".name=projects/*/locations/*/serviceLbPo" - + "licies/*}:\021service_lb_policy\022\211\002\n\025DeleteS" - + "erviceLbPolicy\022=.google.cloud.networkser" - + "vices.v1.DeleteServiceLbPolicyRequest\032\035." - + "google.longrunning.Operation\"\221\001\312AJ\n\025goog" - + "le.protobuf.Empty\0221google.cloud.networks" - + "ervices.v1.OperationMetadata\332A\004name\202\323\344\223\002" - + "7*5/v1/{name=projects/*/locations/*/serv" - + "iceLbPolicies/*}\022\317\001\n\023GetGatewayRouteView" - + "\022;.google.cloud.networkservices.v1.GetGa" - + "tewayRouteViewRequest\0321.google.cloud.net" - + "workservices.v1.GatewayRouteView\"H\332A\004nam" - + "e\202\323\344\223\002;\0229/v1/{name=projects/*/locations/" - + "*/gateways/*/routeViews/*}\022\304\001\n\020GetMeshRo" - + "uteView\0228.google.cloud.networkservices.v" - + "1.GetMeshRouteViewRequest\032..google.cloud" - + ".networkservices.v1.MeshRouteView\"F\332A\004na" - + "me\202\323\344\223\0029\0227/v1/{name=projects/*/locations" - + "/*/meshes/*/routeViews/*}\022\342\001\n\025ListGatewa" - + "yRouteViews\022=.google.cloud.networkservic" - + "es.v1.ListGatewayRouteViewsRequest\032>.goo" - + "gle.cloud.networkservices.v1.ListGateway" - + "RouteViewsResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1" - + "/{parent=projects/*/locations/*/gateways" - + "/*}/routeViews\022\327\001\n\022ListMeshRouteViews\022:." - + "google.cloud.networkservices.v1.ListMesh" - + "RouteViewsRequest\032;.google.cloud.network" - + "services.v1.ListMeshRouteViewsResponse\"H" - + "\332A\006parent\202\323\344\223\0029\0227/v1/{parent=projects/*/" - + "locations/*/meshes/*}/routeViews\032R\312A\036net" - + "workservices.googleapis.com\322A.https://ww" - + "w.googleapis.com/auth/cloud-platformB\337\001\n" - + "#com.google.cloud.networkservices.v1P\001ZM" - + "cloud.google.com/go/networkservices/apiv" - + "1/networkservicespb;networkservicespb\252\002\037" - + "Google.Cloud.NetworkServices.V1\312\002\037Google" - + "\\Cloud\\NetworkServices\\V1\352\002\"Google::Clou" - + "d::NetworkServices::V1b\006proto3" + + "ta\332A\004name\202\323\344\223\0020*./v1/{name=projects/*/lo" + + "cations/*/httpRoutes/*}\022\276\001\n\rListTcpRoute" + + "s\0225.google.cloud.networkservices.v1.List" + + "TcpRoutesRequest\0326.google.cloud.networks" + + "ervices.v1.ListTcpRoutesResponse\">\332A\006par" + + "ent\202\323\344\223\002/\022-/v1/{parent=projects/*/locati" + + "ons/*}/tcpRoutes\022\253\001\n\013GetTcpRoute\0223.googl" + + "e.cloud.networkservices.v1.GetTcpRouteRe" + + "quest\032).google.cloud.networkservices.v1." + + "TcpRoute\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=proje" + + "cts/*/locations/*/tcpRoutes/*}\022\212\002\n\016Creat" + + "eTcpRoute\0226.google.cloud.networkservices" + + ".v1.CreateTcpRouteRequest\032\035.google.longr" + + "unning.Operation\"\240\001\312A=\n\010TcpRoute\0221google" + + ".cloud.networkservices.v1.OperationMetad" + + "ata\332A\035parent,tcp_route,tcp_route_id\202\323\344\223\002" + + ":\"-/v1/{parent=projects/*/locations/*}/t" + + "cpRoutes:\ttcp_route\022\214\002\n\016UpdateTcpRoute\0226" + + ".google.cloud.networkservices.v1.UpdateT" + + "cpRouteRequest\032\035.google.longrunning.Oper" + + "ation\"\242\001\312A=\n\010TcpRoute\0221google.cloud.netw" + + "orkservices.v1.OperationMetadata\332A\025tcp_r" + + "oute,update_mask\202\323\344\223\002D27/v1/{tcp_route.n" + + "ame=projects/*/locations/*/tcpRoutes/*}:" + + "\ttcp_route\022\363\001\n\016DeleteTcpRoute\0226.google.c" + + "loud.networkservices.v1.DeleteTcpRouteRe" + + "quest\032\035.google.longrunning.Operation\"\211\001\312" + + "AJ\n\025google.protobuf.Empty\0221google.cloud." + + "networkservices.v1.OperationMetadata\332A\004n" + + "ame\202\323\344\223\002/*-/v1/{name=projects/*/location" + + "s/*/tcpRoutes/*}\022\276\001\n\rListTlsRoutes\0225.goo" + + "gle.cloud.networkservices.v1.ListTlsRout" + + "esRequest\0326.google.cloud.networkservices" + + ".v1.ListTlsRoutesResponse\">\332A\006parent\202\323\344\223" + + "\002/\022-/v1/{parent=projects/*/locations/*}/" + + "tlsRoutes\022\253\001\n\013GetTlsRoute\0223.google.cloud" + + ".networkservices.v1.GetTlsRouteRequest\032)" + + ".google.cloud.networkservices.v1.TlsRout" + + "e\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/l" + + "ocations/*/tlsRoutes/*}\022\212\002\n\016CreateTlsRou" + + "te\0226.google.cloud.networkservices.v1.Cre" + + "ateTlsRouteRequest\032\035.google.longrunning." + + "Operation\"\240\001\312A=\n\010TlsRoute\0221google.cloud." + + "networkservices.v1.OperationMetadata\332A\035p" + + "arent,tls_route,tls_route_id\202\323\344\223\002:\"-/v1/" + + "{parent=projects/*/locations/*}/tlsRoute" + + "s:\ttls_route\022\214\002\n\016UpdateTlsRoute\0226.google" + + ".cloud.networkservices.v1.UpdateTlsRoute" + + "Request\032\035.google.longrunning.Operation\"\242" + + "\001\312A=\n\010TlsRoute\0221google.cloud.networkserv" + + "ices.v1.OperationMetadata\332A\025tls_route,up" + + "date_mask\202\323\344\223\002D27/v1/{tls_route.name=pro" + + "jects/*/locations/*/tlsRoutes/*}:\ttls_ro" + + "ute\022\363\001\n\016DeleteTlsRoute\0226.google.cloud.ne" + + "tworkservices.v1.DeleteTlsRouteRequest\032\035" + + ".google.longrunning.Operation\"\211\001\312AJ\n\025goo" + + "gle.protobuf.Empty\0221google.cloud.network" + + "services.v1.OperationMetadata\332A\004name\202\323\344\223" + + "\002/*-/v1/{name=projects/*/locations/*/tls" + + "Routes/*}\022\326\001\n\023ListServiceBindings\022;.goog" + + "le.cloud.networkservices.v1.ListServiceB" + + "indingsRequest\032<.google.cloud.networkser" + + "vices.v1.ListServiceBindingsResponse\"D\332A" + + "\006parent\202\323\344\223\0025\0223/v1/{parent=projects/*/lo" + + "cations/*}/serviceBindings\022\303\001\n\021GetServic" + + "eBinding\0229.google.cloud.networkservices." + + "v1.GetServiceBindingRequest\032/.google.clo" + + "ud.networkservices.v1.ServiceBinding\"B\332A" + + "\004name\202\323\344\223\0025\0223/v1/{name=projects/*/locati" + + "ons/*/serviceBindings/*}\022\264\002\n\024CreateServi" + + "ceBinding\022<.google.cloud.networkservices" + + ".v1.CreateServiceBindingRequest\032\035.google" + + ".longrunning.Operation\"\276\001\312AC\n\016ServiceBin" + + "ding\0221google.cloud.networkservices.v1.Op" + + "erationMetadata\332A)parent,service_binding" + + ",service_binding_id\202\323\344\223\002F\"3/v1/{parent=p" + + "rojects/*/locations/*}/serviceBindings:\017" + + "service_binding\022\266\002\n\024UpdateServiceBinding" + + "\022<.google.cloud.networkservices.v1.Updat" + + "eServiceBindingRequest\032\035.google.longrunn" + + "ing.Operation\"\300\001\312AC\n\016ServiceBinding\0221goo" + + "gle.cloud.networkservices.v1.OperationMe" + + "tadata\332A\033service_binding,update_mask\202\323\344\223" + + "\002V2C/v1/{service_binding.name=projects/*" + + "/locations/*/serviceBindings/*}:\017service" + + "_binding\022\205\002\n\024DeleteServiceBinding\022<.goog" + + "le.cloud.networkservices.v1.DeleteServic" + + "eBindingRequest\032\035.google.longrunning.Ope" + + "ration\"\217\001\312AJ\n\025google.protobuf.Empty\0221goo" + + "gle.cloud.networkservices.v1.OperationMe" + + "tadata\332A\004name\202\323\344\223\0025*3/v1/{name=projects/" + + "*/locations/*/serviceBindings/*}\022\262\001\n\nLis" + + "tMeshes\0222.google.cloud.networkservices.v" + + "1.ListMeshesRequest\0323.google.cloud.netwo" + + "rkservices.v1.ListMeshesResponse\";\332A\006par" + + "ent\202\323\344\223\002,\022*/v1/{parent=projects/*/locati" + + "ons/*}/meshes\022\234\001\n\007GetMesh\022/.google.cloud" + + ".networkservices.v1.GetMeshRequest\032%.goo" + + "gle.cloud.networkservices.v1.Mesh\"9\332A\004na" + + "me\202\323\344\223\002,\022*/v1/{name=projects/*/locations" + + "/*/meshes/*}\022\354\001\n\nCreateMesh\0222.google.clo" + + "ud.networkservices.v1.CreateMeshRequest\032" + + "\035.google.longrunning.Operation\"\212\001\312A9\n\004Me" + + "sh\0221google.cloud.networkservices.v1.Oper" + + "ationMetadata\332A\023parent,mesh,mesh_id\202\323\344\223\002" + + "2\"*/v1/{parent=projects/*/locations/*}/m" + + "eshes:\004mesh\022\356\001\n\nUpdateMesh\0222.google.clou" + + "d.networkservices.v1.UpdateMeshRequest\032\035" + + ".google.longrunning.Operation\"\214\001\312A9\n\004Mes" + + "h\0221google.cloud.networkservices.v1.Opera" + + "tionMetadata\332A\020mesh,update_mask\202\323\344\223\00272//" + + "v1/{mesh.name=projects/*/locations/*/mes" + + "hes/*}:\004mesh\022\350\001\n\nDeleteMesh\0222.google.clo" + + "ud.networkservices.v1.DeleteMeshRequest\032" + + "\035.google.longrunning.Operation\"\206\001\312AJ\n\025go" + + "ogle.protobuf.Empty\0221google.cloud.networ" + + "kservices.v1.OperationMetadata\332A\004name\202\323\344" + + "\223\002,**/v1/{name=projects/*/locations/*/me" + + "shes/*}\022\336\001\n\025ListServiceLbPolicies\022=.goog" + + "le.cloud.networkservices.v1.ListServiceL" + + "bPoliciesRequest\032>.google.cloud.networks" + + "ervices.v1.ListServiceLbPoliciesResponse" + + "\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=projects/" + + "*/locations/*}/serviceLbPolicies\022\310\001\n\022Get" + + "ServiceLbPolicy\022:.google.cloud.networkse" + + "rvices.v1.GetServiceLbPolicyRequest\0320.go" + + "ogle.cloud.networkservices.v1.ServiceLbP" + + "olicy\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=projects" + + "/*/locations/*/serviceLbPolicies/*}\022\277\002\n\025" + + "CreateServiceLbPolicy\022=.google.cloud.net" + + "workservices.v1.CreateServiceLbPolicyReq" + + "uest\032\035.google.longrunning.Operation\"\307\001\312A" + + "D\n\017ServiceLbPolicy\0221google.cloud.network" + + "services.v1.OperationMetadata\332A-parent,s" + + "ervice_lb_policy,service_lb_policy_id\202\323\344" + + "\223\002J\"5/v1/{parent=projects/*/locations/*}" + + "/serviceLbPolicies:\021service_lb_policy\022\301\002" + + "\n\025UpdateServiceLbPolicy\022=.google.cloud.n" + + "etworkservices.v1.UpdateServiceLbPolicyR" + + "equest\032\035.google.longrunning.Operation\"\311\001" + + "\312AD\n\017ServiceLbPolicy\0221google.cloud.netwo" + + "rkservices.v1.OperationMetadata\332A\035servic" + + "e_lb_policy,update_mask\202\323\344\223\002\\2G/v1/{serv" + + "ice_lb_policy.name=projects/*/locations/" + + "*/serviceLbPolicies/*}:\021service_lb_polic" + + "y\022\211\002\n\025DeleteServiceLbPolicy\022=.google.clo" + + "ud.networkservices.v1.DeleteServiceLbPol" + + "icyRequest\032\035.google.longrunning.Operatio" + + "n\"\221\001\312AJ\n\025google.protobuf.Empty\0221google.c" + + "loud.networkservices.v1.OperationMetadat" + + "a\332A\004name\202\323\344\223\0027*5/v1/{name=projects/*/loc" + + "ations/*/serviceLbPolicies/*}\022\317\001\n\023GetGat" + + "ewayRouteView\022;.google.cloud.networkserv" + + "ices.v1.GetGatewayRouteViewRequest\0321.goo" + + "gle.cloud.networkservices.v1.GatewayRout" + + "eView\"H\332A\004name\202\323\344\223\002;\0229/v1/{name=projects" + + "/*/locations/*/gateways/*/routeViews/*}\022" + + "\304\001\n\020GetMeshRouteView\0228.google.cloud.netw" + + "orkservices.v1.GetMeshRouteViewRequest\032." + + ".google.cloud.networkservices.v1.MeshRou" + + "teView\"F\332A\004name\202\323\344\223\0029\0227/v1/{name=project" + + "s/*/locations/*/meshes/*/routeViews/*}\022\342" + + "\001\n\025ListGatewayRouteViews\022=.google.cloud." + + "networkservices.v1.ListGatewayRouteViews" + + "Request\032>.google.cloud.networkservices.v" + + "1.ListGatewayRouteViewsResponse\"J\332A\006pare" + + "nt\202\323\344\223\002;\0229/v1/{parent=projects/*/locatio" + + "ns/*/gateways/*}/routeViews\022\327\001\n\022ListMesh" + + "RouteViews\022:.google.cloud.networkservice" + + "s.v1.ListMeshRouteViewsRequest\032;.google." + + "cloud.networkservices.v1.ListMeshRouteVi" + + "ewsResponse\"H\332A\006parent\202\323\344\223\0029\0227/v1/{paren" + + "t=projects/*/locations/*/meshes/*}/route" + + "Views\022\316\001\n\021ListAgentGateways\0229.google.clo" + + "ud.networkservices.v1.ListAgentGatewaysR" + + "equest\032:.google.cloud.networkservices.v1" + + ".ListAgentGatewaysResponse\"B\332A\006parent\202\323\344" + + "\223\0023\0221/v1/{parent=projects/*/locations/*}" + + "/agentGateways\022\273\001\n\017GetAgentGateway\0227.goo" + + "gle.cloud.networkservices.v1.GetAgentGat" + + "ewayRequest\032-.google.cloud.networkservic" + + "es.v1.AgentGateway\"@\332A\004name\202\323\344\223\0023\0221/v1/{" + + "name=projects/*/locations/*/agentGateway" + + "s/*}\022\246\002\n\022CreateAgentGateway\022:.google.clo" + + "ud.networkservices.v1.CreateAgentGateway" + + "Request\032\035.google.longrunning.Operation\"\264" + + "\001\312AA\n\014AgentGateway\0221google.cloud.network" + + "services.v1.OperationMetadata\332A%parent,a" + + "gent_gateway,agent_gateway_id\202\323\344\223\002B\"1/v1" + + "/{parent=projects/*/locations/*}/agentGa" + + "teways:\ragent_gateway\022\250\002\n\022UpdateAgentGat" + + "eway\022:.google.cloud.networkservices.v1.U" + + "pdateAgentGatewayRequest\032\035.google.longru" + + "nning.Operation\"\266\001\312AA\n\014AgentGateway\0221goo" + + "gle.cloud.networkservices.v1.OperationMe" + + "tadata\332A\031agent_gateway,update_mask\202\323\344\223\002P" + + "2?/v1/{agent_gateway.name=projects/*/loc" + + "ations/*/agentGateways/*}:\ragent_gateway" + + "\022\377\001\n\022DeleteAgentGateway\022:.google.cloud.n" + + "etworkservices.v1.DeleteAgentGatewayRequ" + + "est\032\035.google.longrunning.Operation\"\215\001\312AJ" + + "\n\025google.protobuf.Empty\0221google.cloud.ne" + + "tworkservices.v1.OperationMetadata\332A\004nam", + "e\202\323\344\223\0023*1/v1/{name=projects/*/locations/" + + "*/agentGateways/*}\032R\312A\036networkservices.g" + + "oogleapis.com\322A.https://www.googleapis.c" + + "om/auth/cloud-platformB\337\001\n#com.google.cl" + + "oud.networkservices.v1P\001ZMcloud.google.c" + + "om/go/networkservices/apiv1/networkservi" + + "cespb;networkservicespb\252\002\037Google.Cloud.N" + + "etworkServices.V1\312\002\037Google\\Cloud\\Network" + + "Services\\V1\352\002\"Google::Cloud::NetworkServ" + + "ices::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -432,6 +465,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.AnnotationsProto.getDescriptor(), com.google.api.ClientProto.getDescriptor(), + com.google.cloud.networkservices.v1.AgentGatewayProto.getDescriptor(), com.google.cloud.networkservices.v1.CommonProto.getDescriptor(), com.google.cloud.networkservices.v1.EndpointPolicyProto.getDescriptor(), com.google.cloud.networkservices.v1.ExtensibilityProto.getDescriptor(), @@ -450,6 +484,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); + com.google.cloud.networkservices.v1.AgentGatewayProto.getDescriptor(); com.google.cloud.networkservices.v1.CommonProto.getDescriptor(); com.google.cloud.networkservices.v1.EndpointPolicyProto.getDescriptor(); com.google.cloud.networkservices.v1.ExtensibilityProto.getDescriptor(); diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceBindingProto.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceBindingProto.java index cec38bf9a499..3a9d7ea332d9 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceBindingProto.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/ServiceBindingProto.java @@ -81,64 +81,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "5google/cloud/networkservices/v1/service_binding.proto\022\037google.cloud.networkser" - + "vices.v1\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\210\004\n" - + "\016ServiceBinding\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\030\n" - + "\013description\030\002 \001(\tB\003\340A\001\0224\n" - + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022B\n" - + "\007service\030\005 \001(\tB1\030\001\340A\001\372A)\n" - + "\'servicedirectory.googleapis.com/Service\022\031\n\n" - + "service_id\030\010 \001(\tB\005\030\001\340A\003\022P\n" - + "\006labels\030\007 \003(\0132;.google.cloud.networ" - + "kservices.v1.ServiceBinding.LabelsEntryB\003\340A\001\032-\n" - + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001:}\352Az\n" - + "-networkservices.googleapis.com/ServiceBinding\022Iprojects/{proje" - + "ct}/locations/{location}/serviceBindings/{service_binding}\"\212\001\n" - + "\032ListServiceBindingsRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-netwo" - + "rkservices.googleapis.com/ServiceBinding\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\226\001\n" - + "\033ListServiceBindingsResponse\022I\n" - + "\020service_bindings\030\001" - + " \003(\0132/.google.cloud.networkservices.v1.ServiceBinding\022\027\n" - + "\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"_\n" - + "\030GetServiceBindingRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-networkservices.googleapis.com/ServiceBinding\"\324\001\n" - + "\033CreateServiceBindingRequest\022E\n" - + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-networkservices.googleapis.com/ServiceBinding\022\037\n" - + "\022service_binding_id\030\002 \001(\tB\003\340A\002\022M\n" - + "\017service_binding\030\003" - + " \001(\0132/.google.cloud.networkservices.v1.ServiceBindingB\003\340A\002\"\242\001\n" - + "\033UpdateServiceBindingRequest\0224\n" - + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022M\n" - + "\017service_binding\030\002" - + " \001(\0132/.google.cloud.networkservices.v1.ServiceBindingB\003\340A\002\"b\n" - + "\033DeleteServiceBindingRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-networkservices.googleapis.com/ServiceBindingB\363\002\n" - + "#com.google.cloud.networkservices.v1B\023ServiceBindingProtoP\001ZMcloud." - + "google.com/go/networkservices/apiv1/netw" - + "orkservicespb;networkservicespb\252\002\037Google" - + ".Cloud.NetworkServices.V1\312\002\037Google\\Cloud" - + "\\NetworkServices\\V1\352\002\"Google::Cloud::NetworkServices::V1\352A|\n" - + "\'servicedirectory.googleapis.com/Service\022Qprojects/{project}" - + "/locations/{location}/namespaces/{namespace}/services/{service}b\006proto3" + "\n5google/cloud/networkservices/v1/servic" + + "e_binding.proto\022\037google.cloud.networkser" + + "vices.v1\032\037google/api/field_behavior.prot" + + "o\032\033google/api/field_info.proto\032\031google/a" + + "pi/resource.proto\032 google/protobuf/field" + + "_mask.proto\032\037google/protobuf/timestamp.p" + + "roto\"\210\004\n\016ServiceBinding\022\021\n\004name\030\001 \001(\tB\003\340" + + "A\010\022\030\n\013description\030\002 \001(\tB\003\340A\001\0224\n\013create_t" + + "ime\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340" + + "A\003\0224\n\013update_time\030\004 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\022B\n\007service\030\005 \001(\tB1\030\001\340A\001" + + "\372A)\n\'servicedirectory.googleapis.com/Ser" + + "vice\022\031\n\nservice_id\030\010 \001(\tB\005\030\001\340A\003\022P\n\006label" + + "s\030\007 \003(\0132;.google.cloud.networkservices.v" + + "1.ServiceBinding.LabelsEntryB\003\340A\001\032-\n\013Lab" + + "elsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + + ":}\352Az\n-networkservices.googleapis.com/Se" + + "rviceBinding\022Iprojects/{project}/locatio" + + "ns/{location}/serviceBindings/{service_b" + + "inding}\"\212\001\n\032ListServiceBindingsRequest\022E" + + "\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-networkservices." + + "googleapis.com/ServiceBinding\022\021\n\tpage_si" + + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\226\001\n\033ListSer" + + "viceBindingsResponse\022I\n\020service_bindings" + + "\030\001 \003(\0132/.google.cloud.networkservices.v1" + + ".ServiceBinding\022\027\n\017next_page_token\030\002 \001(\t" + + "\022\023\n\013unreachable\030\003 \003(\t\"_\n\030GetServiceBindi" + + "ngRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-network" + + "services.googleapis.com/ServiceBinding\"\324" + + "\001\n\033CreateServiceBindingRequest\022E\n\006parent" + + "\030\001 \001(\tB5\340A\002\372A/\022-networkservices.googleap" + + "is.com/ServiceBinding\022\037\n\022service_binding" + + "_id\030\002 \001(\tB\003\340A\002\022M\n\017service_binding\030\003 \001(\0132" + + "/.google.cloud.networkservices.v1.Servic" + + "eBindingB\003\340A\002\"\242\001\n\033UpdateServiceBindingRe" + + "quest\0224\n\013update_mask\030\001 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\003\340A\001\022M\n\017service_binding\030\002" + + " \001(\0132/.google.cloud.networkservices.v1.S" + + "erviceBindingB\003\340A\002\"b\n\033DeleteServiceBindi" + + "ngRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-network" + + "services.googleapis.com/ServiceBindingB\363" + + "\002\n#com.google.cloud.networkservices.v1B\023" + + "ServiceBindingProtoP\001ZMcloud.google.com/" + + "go/networkservices/apiv1/networkservices" + + "pb;networkservicespb\252\002\037Google.Cloud.Netw" + + "orkServices.V1\312\002\037Google\\Cloud\\NetworkSer" + + "vices\\V1\352\002\"Google::Cloud::NetworkService" + + "s::V1\352A|\n\'servicedirectory.googleapis.co" + + "m/Service\022Qprojects/{project}/locations/" + + "{location}/namespaces/{namespace}/servic" + + "es/{service}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.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -209,6 +209,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRoute.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRoute.java index 1c706c812a52..b4cdfd359f50 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRoute.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRoute.java @@ -4913,7 +4913,7 @@ public com.google.protobuf.Parser getParserForType() { * *
                * Identifier. Name of the TcpRoute resource. It matches pattern
            -   * `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
            +   * `projects/*/locations/*/tcpRoutes/tcp_route_name>`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -4938,7 +4938,7 @@ public java.lang.String getName() { * *
                * Identifier. Name of the TcpRoute resource. It matches pattern
            -   * `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
            +   * `projects/*/locations/*/tcpRoutes/tcp_route_name>`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -5281,7 +5281,7 @@ public com.google.cloud.networkservices.v1.TcpRoute.RouteRuleOrBuilder getRulesO * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -5304,7 +5304,7 @@ public com.google.protobuf.ProtocolStringList getMeshesList() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -5327,7 +5327,7 @@ public int getMeshesCount() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -5351,7 +5351,7 @@ public java.lang.String getMeshes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -5381,7 +5381,7 @@ public com.google.protobuf.ByteString getMeshesBytes(int index) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -5402,7 +5402,7 @@ public com.google.protobuf.ProtocolStringList getGatewaysList() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -5423,7 +5423,7 @@ public int getGatewaysCount() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -5445,7 +5445,7 @@ public java.lang.String getGateways(int index) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -6216,7 +6216,7 @@ public Builder mergeFrom( * *
                  * Identifier. Name of the TcpRoute resource. It matches pattern
            -     * `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
            +     * `projects/*/locations/*/tcpRoutes/tcp_route_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -6240,7 +6240,7 @@ public java.lang.String getName() { * *
                  * Identifier. Name of the TcpRoute resource. It matches pattern
            -     * `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
            +     * `projects/*/locations/*/tcpRoutes/tcp_route_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -6264,7 +6264,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                  * Identifier. Name of the TcpRoute resource. It matches pattern
            -     * `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
            +     * `projects/*/locations/*/tcpRoutes/tcp_route_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -6287,7 +6287,7 @@ public Builder setName(java.lang.String value) { * *
                  * Identifier. Name of the TcpRoute resource. It matches pattern
            -     * `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
            +     * `projects/*/locations/*/tcpRoutes/tcp_route_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -6306,7 +6306,7 @@ public Builder clearName() { * *
                  * Identifier. Name of the TcpRoute resource. It matches pattern
            -     * `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
            +     * `projects/*/locations/*/tcpRoutes/tcp_route_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -7441,7 +7441,7 @@ private void ensureMeshesIsMutable() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7465,7 +7465,7 @@ public com.google.protobuf.ProtocolStringList getMeshesList() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7488,7 +7488,7 @@ public int getMeshesCount() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7512,7 +7512,7 @@ public java.lang.String getMeshes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7536,7 +7536,7 @@ public com.google.protobuf.ByteString getMeshesBytes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7568,7 +7568,7 @@ public Builder setMeshes(int index, java.lang.String value) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7599,7 +7599,7 @@ public Builder addMeshes(java.lang.String value) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7627,7 +7627,7 @@ public Builder addAllMeshes(java.lang.Iterable values) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7654,7 +7654,7 @@ public Builder clearMeshes() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7696,7 +7696,7 @@ private void ensureGatewaysIsMutable() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7718,7 +7718,7 @@ public com.google.protobuf.ProtocolStringList getGatewaysList() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7739,7 +7739,7 @@ public int getGatewaysCount() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7761,7 +7761,7 @@ public java.lang.String getGateways(int index) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7783,7 +7783,7 @@ public com.google.protobuf.ByteString getGatewaysBytes(int index) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7813,7 +7813,7 @@ public Builder setGateways(int index, java.lang.String value) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7842,7 +7842,7 @@ public Builder addGateways(java.lang.String value) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7868,7 +7868,7 @@ public Builder addAllGateways(java.lang.Iterable values) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7893,7 +7893,7 @@ public Builder clearGateways() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRouteOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRouteOrBuilder.java index 1f055fe7c403..cf011f99bdde 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRouteOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TcpRouteOrBuilder.java @@ -31,7 +31,7 @@ public interface TcpRouteOrBuilder * *
                * Identifier. Name of the TcpRoute resource. It matches pattern
            -   * `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
            +   * `projects/*/locations/*/tcpRoutes/tcp_route_name>`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -45,7 +45,7 @@ public interface TcpRouteOrBuilder * *
                * Identifier. Name of the TcpRoute resource. It matches pattern
            -   * `projects/*/locations/global/tcpRoutes/tcp_route_name>`.
            +   * `projects/*/locations/*/tcpRoutes/tcp_route_name>`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -272,7 +272,7 @@ public interface TcpRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -293,7 +293,7 @@ public interface TcpRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -314,7 +314,7 @@ public interface TcpRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -336,7 +336,7 @@ public interface TcpRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -358,7 +358,7 @@ public interface TcpRouteOrBuilder * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -377,7 +377,7 @@ public interface TcpRouteOrBuilder * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -396,7 +396,7 @@ public interface TcpRouteOrBuilder * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -416,7 +416,7 @@ public interface TcpRouteOrBuilder * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRoute.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRoute.java index 9b15665ac8ba..f0e55c059764 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRoute.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRoute.java @@ -59,6 +59,7 @@ private TlsRoute() { rules_ = java.util.Collections.emptyList(); meshes_ = com.google.protobuf.LazyStringArrayList.emptyList(); gateways_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetProxies_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -5057,7 +5058,7 @@ public com.google.protobuf.Parser getParserForType() { * *
                * Identifier. Name of the TlsRoute resource. It matches pattern
            -   * `projects/*/locations/global/tlsRoutes/tls_route_name>`.
            +   * `projects/*/locations/*/tlsRoutes/tls_route_name>`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -5082,7 +5083,7 @@ public java.lang.String getName() { * *
                * Identifier. Name of the TlsRoute resource. It matches pattern
            -   * `projects/*/locations/global/tlsRoutes/tls_route_name>`.
            +   * `projects/*/locations/*/tlsRoutes/tls_route_name>`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -5425,7 +5426,7 @@ public com.google.cloud.networkservices.v1.TlsRoute.RouteRuleOrBuilder getRulesO * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -5448,7 +5449,7 @@ public com.google.protobuf.ProtocolStringList getMeshesList() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -5471,7 +5472,7 @@ public int getMeshesCount() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -5495,7 +5496,7 @@ public java.lang.String getMeshes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -5525,7 +5526,7 @@ public com.google.protobuf.ByteString getMeshesBytes(int index) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -5546,7 +5547,7 @@ public com.google.protobuf.ProtocolStringList getGatewaysList() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -5567,7 +5568,7 @@ public int getGatewaysCount() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -5589,7 +5590,7 @@ public java.lang.String getGateways(int index) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -5603,6 +5604,102 @@ public com.google.protobuf.ByteString getGatewaysBytes(int index) { return gateways_.getByteString(index); } + public static final int TARGET_PROXIES_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList targetProxies_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
            +   * attached to, as one of the routing rules to route the requests served by
            +   * the TargetTcpProxy.
            +   *
            +   * Each TargetTcpProxy reference should match the pattern:
            +   * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
            +   * 
            + * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetProxies. + */ + public com.google.protobuf.ProtocolStringList getTargetProxiesList() { + return targetProxies_; + } + + /** + * + * + *
            +   * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
            +   * attached to, as one of the routing rules to route the requests served by
            +   * the TargetTcpProxy.
            +   *
            +   * Each TargetTcpProxy reference should match the pattern:
            +   * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
            +   * 
            + * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetProxies. + */ + public int getTargetProxiesCount() { + return targetProxies_.size(); + } + + /** + * + * + *
            +   * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
            +   * attached to, as one of the routing rules to route the requests served by
            +   * the TargetTcpProxy.
            +   *
            +   * Each TargetTcpProxy reference should match the pattern:
            +   * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
            +   * 
            + * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetProxies at the given index. + */ + public java.lang.String getTargetProxies(int index) { + return targetProxies_.get(index); + } + + /** + * + * + *
            +   * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
            +   * attached to, as one of the routing rules to route the requests served by
            +   * the TargetTcpProxy.
            +   *
            +   * Each TargetTcpProxy reference should match the pattern:
            +   * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
            +   * 
            + * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetProxies at the given index. + */ + public com.google.protobuf.ByteString getTargetProxiesBytes(int index) { + return targetProxies_.getByteString(index); + } + public static final int LABELS_FIELD_NUMBER = 11; private static final class LabelsDefaultEntryHolder { @@ -5750,6 +5847,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io } com.google.protobuf.GeneratedMessage.serializeStringMapTo( output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 11); + for (int i = 0; i < targetProxies_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, targetProxies_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -5803,6 +5903,14 @@ public int getSerializedSize() { .build(); size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, labels__); } + { + int dataSize = 0; + for (int i = 0; i < targetProxies_.size(); i++) { + dataSize += computeStringSizeNoTag(targetProxies_.getRaw(i)); + } + size += dataSize; + size += 1 * getTargetProxiesList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5833,6 +5941,7 @@ public boolean equals(final java.lang.Object obj) { if (!getRulesList().equals(other.getRulesList())) return false; if (!getMeshesList().equals(other.getMeshesList())) return false; if (!getGatewaysList().equals(other.getGatewaysList())) return false; + if (!getTargetProxiesList().equals(other.getTargetProxiesList())) return false; if (!internalGetLabels().equals(other.internalGetLabels())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -5871,6 +5980,10 @@ public int hashCode() { hash = (37 * hash) + GATEWAYS_FIELD_NUMBER; hash = (53 * hash) + getGatewaysList().hashCode(); } + if (getTargetProxiesCount() > 0) { + hash = (37 * hash) + TARGET_PROXIES_FIELD_NUMBER; + hash = (53 * hash) + getTargetProxiesList().hashCode(); + } if (!internalGetLabels().getMap().isEmpty()) { hash = (37 * hash) + LABELS_FIELD_NUMBER; hash = (53 * hash) + internalGetLabels().hashCode(); @@ -6071,6 +6184,7 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000020); meshes_ = com.google.protobuf.LazyStringArrayList.emptyList(); gateways_ = com.google.protobuf.LazyStringArrayList.emptyList(); + targetProxies_ = com.google.protobuf.LazyStringArrayList.emptyList(); internalGetMutableLabels().clear(); return this; } @@ -6148,6 +6262,10 @@ private void buildPartial0(com.google.cloud.networkservices.v1.TlsRoute result) result.gateways_ = gateways_; } if (((from_bitField0_ & 0x00000100) != 0)) { + targetProxies_.makeImmutable(); + result.targetProxies_ = targetProxies_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } @@ -6234,8 +6352,18 @@ public Builder mergeFrom(com.google.cloud.networkservices.v1.TlsRoute other) { } onChanged(); } + if (!other.targetProxies_.isEmpty()) { + if (targetProxies_.isEmpty()) { + targetProxies_ = other.targetProxies_; + bitField0_ |= 0x00000100; + } else { + ensureTargetProxiesIsMutable(); + targetProxies_.addAll(other.targetProxies_); + } + onChanged(); + } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -6331,9 +6459,16 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 90 + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTargetProxiesIsMutable(); + targetProxies_.add(s); + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6360,7 +6495,7 @@ public Builder mergeFrom( * *
                  * Identifier. Name of the TlsRoute resource. It matches pattern
            -     * `projects/*/locations/global/tlsRoutes/tls_route_name>`.
            +     * `projects/*/locations/*/tlsRoutes/tls_route_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -6384,7 +6519,7 @@ public java.lang.String getName() { * *
                  * Identifier. Name of the TlsRoute resource. It matches pattern
            -     * `projects/*/locations/global/tlsRoutes/tls_route_name>`.
            +     * `projects/*/locations/*/tlsRoutes/tls_route_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -6408,7 +6543,7 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                  * Identifier. Name of the TlsRoute resource. It matches pattern
            -     * `projects/*/locations/global/tlsRoutes/tls_route_name>`.
            +     * `projects/*/locations/*/tlsRoutes/tls_route_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -6431,7 +6566,7 @@ public Builder setName(java.lang.String value) { * *
                  * Identifier. Name of the TlsRoute resource. It matches pattern
            -     * `projects/*/locations/global/tlsRoutes/tls_route_name>`.
            +     * `projects/*/locations/*/tlsRoutes/tls_route_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -6450,7 +6585,7 @@ public Builder clearName() { * *
                  * Identifier. Name of the TlsRoute resource. It matches pattern
            -     * `projects/*/locations/global/tlsRoutes/tls_route_name>`.
            +     * `projects/*/locations/*/tlsRoutes/tls_route_name>`.
                  * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -7585,7 +7720,7 @@ private void ensureMeshesIsMutable() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7609,7 +7744,7 @@ public com.google.protobuf.ProtocolStringList getMeshesList() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7632,7 +7767,7 @@ public int getMeshesCount() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7656,7 +7791,7 @@ public java.lang.String getMeshes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7680,7 +7815,7 @@ public com.google.protobuf.ByteString getMeshesBytes(int index) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7712,7 +7847,7 @@ public Builder setMeshes(int index, java.lang.String value) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7743,7 +7878,7 @@ public Builder addMeshes(java.lang.String value) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7771,7 +7906,7 @@ public Builder addAllMeshes(java.lang.Iterable values) { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7798,7 +7933,7 @@ public Builder clearMeshes() { * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -7840,7 +7975,7 @@ private void ensureGatewaysIsMutable() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7862,7 +7997,7 @@ public com.google.protobuf.ProtocolStringList getGatewaysList() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7883,7 +8018,7 @@ public int getGatewaysCount() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7905,7 +8040,7 @@ public java.lang.String getGateways(int index) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7927,7 +8062,7 @@ public com.google.protobuf.ByteString getGatewaysBytes(int index) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7957,7 +8092,7 @@ public Builder setGateways(int index, java.lang.String value) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -7986,7 +8121,7 @@ public Builder addGateways(java.lang.String value) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -8012,7 +8147,7 @@ public Builder addAllGateways(java.lang.Iterable values) { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -8037,7 +8172,7 @@ public Builder clearGateways() { * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -8059,6 +8194,252 @@ public Builder addGatewaysBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList targetProxies_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTargetProxiesIsMutable() { + if (!targetProxies_.isModifiable()) { + targetProxies_ = new com.google.protobuf.LazyStringArrayList(targetProxies_); + } + bitField0_ |= 0x00000100; + } + + /** + * + * + *
            +     * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
            +     * attached to, as one of the routing rules to route the requests served by
            +     * the TargetTcpProxy.
            +     *
            +     * Each TargetTcpProxy reference should match the pattern:
            +     * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
            +     * 
            + * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetProxies. + */ + public com.google.protobuf.ProtocolStringList getTargetProxiesList() { + targetProxies_.makeImmutable(); + return targetProxies_; + } + + /** + * + * + *
            +     * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
            +     * attached to, as one of the routing rules to route the requests served by
            +     * the TargetTcpProxy.
            +     *
            +     * Each TargetTcpProxy reference should match the pattern:
            +     * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
            +     * 
            + * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetProxies. + */ + public int getTargetProxiesCount() { + return targetProxies_.size(); + } + + /** + * + * + *
            +     * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
            +     * attached to, as one of the routing rules to route the requests served by
            +     * the TargetTcpProxy.
            +     *
            +     * Each TargetTcpProxy reference should match the pattern:
            +     * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
            +     * 
            + * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetProxies at the given index. + */ + public java.lang.String getTargetProxies(int index) { + return targetProxies_.get(index); + } + + /** + * + * + *
            +     * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
            +     * attached to, as one of the routing rules to route the requests served by
            +     * the TargetTcpProxy.
            +     *
            +     * Each TargetTcpProxy reference should match the pattern:
            +     * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
            +     * 
            + * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetProxies at the given index. + */ + public com.google.protobuf.ByteString getTargetProxiesBytes(int index) { + return targetProxies_.getByteString(index); + } + + /** + * + * + *
            +     * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
            +     * attached to, as one of the routing rules to route the requests served by
            +     * the TargetTcpProxy.
            +     *
            +     * Each TargetTcpProxy reference should match the pattern:
            +     * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
            +     * 
            + * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The targetProxies to set. + * @return This builder for chaining. + */ + public Builder setTargetProxies(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetProxiesIsMutable(); + targetProxies_.set(index, value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
            +     * attached to, as one of the routing rules to route the requests served by
            +     * the TargetTcpProxy.
            +     *
            +     * Each TargetTcpProxy reference should match the pattern:
            +     * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
            +     * 
            + * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The targetProxies to add. + * @return This builder for chaining. + */ + public Builder addTargetProxies(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTargetProxiesIsMutable(); + targetProxies_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
            +     * attached to, as one of the routing rules to route the requests served by
            +     * the TargetTcpProxy.
            +     *
            +     * Each TargetTcpProxy reference should match the pattern:
            +     * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
            +     * 
            + * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param values The targetProxies to add. + * @return This builder for chaining. + */ + public Builder addAllTargetProxies(java.lang.Iterable values) { + ensureTargetProxiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, targetProxies_); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
            +     * attached to, as one of the routing rules to route the requests served by
            +     * the TargetTcpProxy.
            +     *
            +     * Each TargetTcpProxy reference should match the pattern:
            +     * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
            +     * 
            + * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTargetProxies() { + targetProxies_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
            +     * attached to, as one of the routing rules to route the requests served by
            +     * the TargetTcpProxy.
            +     *
            +     * Each TargetTcpProxy reference should match the pattern:
            +     * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
            +     * 
            + * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the targetProxies to add. + * @return This builder for chaining. + */ + public Builder addTargetProxiesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTargetProxiesIsMutable(); + targetProxies_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + private com.google.protobuf.MapField labels_; private com.google.protobuf.MapField internalGetLabels() { @@ -8076,7 +8457,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return labels_; } @@ -8166,7 +8547,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -8191,7 +8572,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return internalGetMutableLabels().getMutableMap(); } @@ -8212,7 +8593,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this; } @@ -8227,7 +8608,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; return this; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteOrBuilder.java index e6e017e778e4..15d96782b1b7 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteOrBuilder.java @@ -31,7 +31,7 @@ public interface TlsRouteOrBuilder * *
                * Identifier. Name of the TlsRoute resource. It matches pattern
            -   * `projects/*/locations/global/tlsRoutes/tls_route_name>`.
            +   * `projects/*/locations/*/tlsRoutes/tls_route_name>`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -45,7 +45,7 @@ public interface TlsRouteOrBuilder * *
                * Identifier. Name of the TlsRoute resource. It matches pattern
            -   * `projects/*/locations/global/tlsRoutes/tls_route_name>`.
            +   * `projects/*/locations/*/tlsRoutes/tls_route_name>`.
                * 
            * * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; @@ -272,7 +272,7 @@ public interface TlsRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -293,7 +293,7 @@ public interface TlsRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -314,7 +314,7 @@ public interface TlsRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -336,7 +336,7 @@ public interface TlsRouteOrBuilder * one of the routing rules to route the requests served by the mesh. * * Each mesh reference should match the pattern: - * `projects/*/locations/global/meshes/<mesh_name>` + * `projects/*/locations/*/meshes/<mesh_name>` * * The attached Mesh should be of a type SIDECAR * @@ -358,7 +358,7 @@ public interface TlsRouteOrBuilder * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -377,7 +377,7 @@ public interface TlsRouteOrBuilder * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -396,7 +396,7 @@ public interface TlsRouteOrBuilder * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -416,7 +416,7 @@ public interface TlsRouteOrBuilder * as one of the routing rules to route the requests served by the gateway. * * Each gateway reference should match the pattern: - * `projects/*/locations/global/gateways/<gateway_name>` + * `projects/*/locations/*/gateways/<gateway_name>` * * * @@ -428,6 +428,88 @@ public interface TlsRouteOrBuilder */ com.google.protobuf.ByteString getGatewaysBytes(int index); + /** + * + * + *
            +   * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
            +   * attached to, as one of the routing rules to route the requests served by
            +   * the TargetTcpProxy.
            +   *
            +   * Each TargetTcpProxy reference should match the pattern:
            +   * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
            +   * 
            + * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the targetProxies. + */ + java.util.List getTargetProxiesList(); + + /** + * + * + *
            +   * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
            +   * attached to, as one of the routing rules to route the requests served by
            +   * the TargetTcpProxy.
            +   *
            +   * Each TargetTcpProxy reference should match the pattern:
            +   * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
            +   * 
            + * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The count of targetProxies. + */ + int getTargetProxiesCount(); + + /** + * + * + *
            +   * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
            +   * attached to, as one of the routing rules to route the requests served by
            +   * the TargetTcpProxy.
            +   *
            +   * Each TargetTcpProxy reference should match the pattern:
            +   * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
            +   * 
            + * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The targetProxies at the given index. + */ + java.lang.String getTargetProxies(int index); + + /** + * + * + *
            +   * Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is
            +   * attached to, as one of the routing rules to route the requests served by
            +   * the TargetTcpProxy.
            +   *
            +   * Each TargetTcpProxy reference should match the pattern:
            +   * `projects/*/locations/*/targetTcpProxies/<target_tcp_proxy_name>`
            +   * 
            + * + * + * repeated string target_proxies = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the targetProxies at the given index. + */ + com.google.protobuf.ByteString getTargetProxiesBytes(int index); + /** * * diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteProto.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteProto.java index beb1e0557acb..3b84dafb0b54 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteProto.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/TlsRouteProto.java @@ -101,7 +101,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/google/cloud/networkservices/v1/tls_route.proto\022\037google.cloud.networkservices." + "v1\032\037google/api/field_behavior.proto\032\031goo" + "gle/api/resource.proto\032\036google/protobuf/duration.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\324\010\n" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\233\t\n" + "\010TlsRoute\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\026\n" + "\tself_link\030\010 \001(\tB\003\340A\003\0224\n" @@ -114,9 +114,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006meshes\030\006 \003(\tB+\340A\001\372A%\n" + "#networkservices.googleapis.com/Mesh\022@\n" + "\010gateways\030\007 \003(\tB.\340A\001\372A(\n" - + "&networkservices.googleapis.com/Gateway\022J\n" - + "\006labels\030\013" - + " \003(\01325.google.cloud.networkservices.v1.TlsRoute.LabelsEntryB\003\340A\001\032\243\001\n" + + "&networkservices.googleapis.com/Gateway\022E\n" + + "\016target_proxies\030\r" + + " \003(\tB-\340A\001\372A\'\n" + + "%compute.googleapis.com/TargetTcpProxy\022J\n" + + "\006labels\030\013 \003(\01325" + + ".google.cloud.networkservices.v1.TlsRoute.LabelsEntryB\003\340A\001\032\243\001\n" + "\tRouteRule\022J\n" + "\007matches\030\001" + " \003(\01324.google.cloud.networkservices.v1.TlsRoute.RouteMatchB\003\340A\002\022J\n" @@ -126,8 +129,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010sni_host\030\001 \003(\tB\003\340A\001\022\021\n" + "\004alpn\030\002 \003(\tB\003\340A\001\032\232\001\n" + "\013RouteAction\022U\n" - + "\014destinations\030\001" - + " \003(\0132:.google.cloud.networkservices.v1.TlsRoute.RouteDestinationB\003\340A\002\0224\n" + + "\014destinations\030\001 \003(\0132:" + + ".google.cloud.networkservices.v1.TlsRoute.RouteDestinationB\003\340A\002\0224\n" + "\014idle_timeout\030\004 \001(\0132\031.google.protobuf.DurationB\003\340A\001\032l\n" + "\020RouteDestination\022C\n" + "\014service_name\030\001 \001(\tB-\340A\002\372A\'\n" @@ -136,11 +139,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:k\352Ah\n" - + "\'networkservices.googleapis.com" - + "/TlsRoute\022=projects/{project}/locations/{location}/tlsRoutes/{tls_route}\"\243\001\n" + + "\'networkservices.googleapis.com/TlsRoute" + + "\022=projects/{project}/locations/{location}/tlsRoutes/{tls_route}\"\243\001\n" + "\024ListTlsRoutesRequest\022?\n" - + "\006parent\030\001 \001(\tB/\340A\002\372A" - + ")\022\'networkservices.googleapis.com/TlsRoute\022\021\n" + + "\006parent\030\001 \001(" + + "\tB/\340A\002\372A)\022\'networkservices.googleapis.com/TlsRoute\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\022#\n" + "\026return_partial_success\030\004 \001(\010B\003\340A\001\"\204\001\n" @@ -155,20 +158,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB/\340A\002\372A)\022\'networkservices.googleapis.com/TlsRoute\022\031\n" + "\014tls_route_id\030\002 \001(\tB\003\340A\002\022A\n" - + "\ttls_route\030\003 \001(\0132).go" - + "ogle.cloud.networkservices.v1.TlsRouteB\003\340A\002\"\220\001\n" + + "\ttls_route\030\003" + + " \001(\0132).google.cloud.networkservices.v1.TlsRouteB\003\340A\002\"\220\001\n" + "\025UpdateTlsRouteRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022A\n" + "\ttls_route\030\002" + " \001(\0132).google.cloud.networkservices.v1.TlsRouteB\003\340A\002\"V\n" + "\025DeleteTlsRouteRequest\022=\n" + "\004name\030\001 \001(\tB/\340A\002\372A)\n" - + "\'networkservices.googleapis.com/TlsRouteB\356\001\n" + + "\'networkservices.googleapis.com/TlsRouteB\345\002\n" + "#com.google.cloud.networkservices.v1B\r" - + "TlsRouteProtoP\001ZMcloud.google.com/go/networkservices/apiv1/networkservicespb;net" - + "workservicespb\252\002\037Google.Cloud.NetworkSer" - + "vices.V1\312\002\037Google\\Cloud\\NetworkServices\\" - + "V1\352\002\"Google::Cloud::NetworkServices::V1b\006proto3" + + "TlsRouteProtoP\001ZMcloud.google.com/go/networkservi" + + "ces/apiv1/networkservicespb;networkservi" + + "cespb\252\002\037Google.Cloud.NetworkServices.V1\312" + + "\002\037Google\\Cloud\\NetworkServices\\V1\352\002\"Google::Cloud::NetworkServices::V1\352At\n" + + "%compute.googleapis.com/TargetTcpProxy\022Kprojec" + + "ts/{project}/locations/{location}/targetTcpProxies/{target_tcp_proxy}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -194,6 +199,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Rules", "Meshes", "Gateways", + "TargetProxies", "Labels", }); internal_static_google_cloud_networkservices_v1_TlsRoute_RouteRule_descriptor = @@ -294,6 +300,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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.resourceDefinition); registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/UpdateAgentGatewayRequest.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/UpdateAgentGatewayRequest.java new file mode 100644 index 000000000000..d3d2a485d325 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/UpdateAgentGatewayRequest.java @@ -0,0 +1,1067 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +/** + * + * + *
            + * Request used by the UpdateAgentGateway method.
            + * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.UpdateAgentGatewayRequest} + */ +@com.google.protobuf.Generated +public final class UpdateAgentGatewayRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkservices.v1.UpdateAgentGatewayRequest) + UpdateAgentGatewayRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateAgentGatewayRequest"); + } + + // Use UpdateAgentGatewayRequest.newBuilder() to construct. + private UpdateAgentGatewayRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateAgentGatewayRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest.class, + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
            +   * Optional. Field mask is used to specify the fields to be overwritten in the
            +   * AgentGateway resource by the update.
            +   * The fields specified in the update_mask are relative to the resource, not
            +   * the full request. A field will be overwritten if it is in the mask. If the
            +   * user does not provide a mask then all fields will be overwritten.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Field mask is used to specify the fields to be overwritten in the
            +   * AgentGateway resource by the update.
            +   * The fields specified in the update_mask are relative to the resource, not
            +   * the full request. A field will be overwritten if it is in the mask. If the
            +   * user does not provide a mask then all fields will be overwritten.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
            +   * Optional. Field mask is used to specify the fields to be overwritten in the
            +   * AgentGateway resource by the update.
            +   * The fields specified in the update_mask are relative to the resource, not
            +   * the full request. A field will be overwritten if it is in the mask. If the
            +   * user does not provide a mask then all fields will be overwritten.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int AGENT_GATEWAY_FIELD_NUMBER = 2; + private com.google.cloud.networkservices.v1.AgentGateway agentGateway_; + + /** + * + * + *
            +   * Required. Updated AgentGateway resource.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the agentGateway field is set. + */ + @java.lang.Override + public boolean hasAgentGateway() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Required. Updated AgentGateway resource.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The agentGateway. + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGateway getAgentGateway() { + return agentGateway_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance() + : agentGateway_; + } + + /** + * + * + *
            +   * Required. Updated AgentGateway resource.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.networkservices.v1.AgentGatewayOrBuilder getAgentGatewayOrBuilder() { + return agentGateway_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance() + : agentGateway_; + } + + 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, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAgentGateway()); + } + 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, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAgentGateway()); + } + 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.networkservices.v1.UpdateAgentGatewayRequest)) { + return super.equals(obj); + } + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest other = + (com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasAgentGateway() != other.hasAgentGateway()) return false; + if (hasAgentGateway()) { + if (!getAgentGateway().equals(other.getAgentGateway())) 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 (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasAgentGateway()) { + hash = (37 * hash) + AGENT_GATEWAY_FIELD_NUMBER; + hash = (53 * hash) + getAgentGateway().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest 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.networkservices.v1.UpdateAgentGatewayRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest parseFrom( + 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.networkservices.v1.UpdateAgentGatewayRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request used by the UpdateAgentGateway method.
            +   * 
            + * + * Protobuf type {@code google.cloud.networkservices.v1.UpdateAgentGatewayRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkservices.v1.UpdateAgentGatewayRequest) + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest.class, + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest.Builder.class); + } + + // Construct using com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetAgentGatewayFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + agentGateway_ = null; + if (agentGatewayBuilder_ != null) { + agentGatewayBuilder_.dispose(); + agentGatewayBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.networkservices.v1.AgentGatewayProto + .internal_static_google_cloud_networkservices_v1_UpdateAgentGatewayRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest + getDefaultInstanceForType() { + return com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest build() { + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest buildPartial() { + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest result = + new com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agentGateway_ = + agentGatewayBuilder_ == null ? agentGateway_ : agentGatewayBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest) { + return mergeFrom((com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest other) { + if (other + == com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasAgentGateway()) { + mergeAgentGateway(other.getAgentGateway()); + } + 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( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetAgentGatewayFieldBuilder().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.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * AgentGateway resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields will be overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * AgentGateway resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields will be overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * AgentGateway resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields will be overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * AgentGateway resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields will be overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * AgentGateway resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields will be overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * AgentGateway resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields will be overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * AgentGateway resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields will be overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * AgentGateway resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields will be overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * AgentGateway resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields will be overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.networkservices.v1.AgentGateway agentGateway_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway, + com.google.cloud.networkservices.v1.AgentGateway.Builder, + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder> + agentGatewayBuilder_; + + /** + * + * + *
            +     * Required. Updated AgentGateway resource.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the agentGateway field is set. + */ + public boolean hasAgentGateway() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. Updated AgentGateway resource.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The agentGateway. + */ + public com.google.cloud.networkservices.v1.AgentGateway getAgentGateway() { + if (agentGatewayBuilder_ == null) { + return agentGateway_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance() + : agentGateway_; + } else { + return agentGatewayBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. Updated AgentGateway resource.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAgentGateway(com.google.cloud.networkservices.v1.AgentGateway value) { + if (agentGatewayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentGateway_ = value; + } else { + agentGatewayBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Updated AgentGateway resource.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAgentGateway( + com.google.cloud.networkservices.v1.AgentGateway.Builder builderForValue) { + if (agentGatewayBuilder_ == null) { + agentGateway_ = builderForValue.build(); + } else { + agentGatewayBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Updated AgentGateway resource.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAgentGateway(com.google.cloud.networkservices.v1.AgentGateway value) { + if (agentGatewayBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && agentGateway_ != null + && agentGateway_ + != com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance()) { + getAgentGatewayBuilder().mergeFrom(value); + } else { + agentGateway_ = value; + } + } else { + agentGatewayBuilder_.mergeFrom(value); + } + if (agentGateway_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. Updated AgentGateway resource.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAgentGateway() { + bitField0_ = (bitField0_ & ~0x00000002); + agentGateway_ = null; + if (agentGatewayBuilder_ != null) { + agentGatewayBuilder_.dispose(); + agentGatewayBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Updated AgentGateway resource.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkservices.v1.AgentGateway.Builder getAgentGatewayBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetAgentGatewayFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. Updated AgentGateway resource.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.networkservices.v1.AgentGatewayOrBuilder getAgentGatewayOrBuilder() { + if (agentGatewayBuilder_ != null) { + return agentGatewayBuilder_.getMessageOrBuilder(); + } else { + return agentGateway_ == null + ? com.google.cloud.networkservices.v1.AgentGateway.getDefaultInstance() + : agentGateway_; + } + } + + /** + * + * + *
            +     * Required. Updated AgentGateway resource.
            +     * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway, + com.google.cloud.networkservices.v1.AgentGateway.Builder, + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder> + internalGetAgentGatewayFieldBuilder() { + if (agentGatewayBuilder_ == null) { + agentGatewayBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkservices.v1.AgentGateway, + com.google.cloud.networkservices.v1.AgentGateway.Builder, + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder>( + getAgentGateway(), getParentForChildren(), isClean()); + agentGateway_ = null; + } + return agentGatewayBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkservices.v1.UpdateAgentGatewayRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkservices.v1.UpdateAgentGatewayRequest) + private static final com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest(); + } + + public static com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAgentGatewayRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.networkservices.v1.UpdateAgentGatewayRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/UpdateAgentGatewayRequestOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/UpdateAgentGatewayRequestOrBuilder.java new file mode 100644 index 000000000000..66efffa06353 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/UpdateAgentGatewayRequestOrBuilder.java @@ -0,0 +1,123 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networkservices/v1/agent_gateway.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkservices.v1; + +@com.google.protobuf.Generated +public interface UpdateAgentGatewayRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkservices.v1.UpdateAgentGatewayRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. Field mask is used to specify the fields to be overwritten in the
            +   * AgentGateway resource by the update.
            +   * The fields specified in the update_mask are relative to the resource, not
            +   * the full request. A field will be overwritten if it is in the mask. If the
            +   * user does not provide a mask then all fields will be overwritten.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
            +   * Optional. Field mask is used to specify the fields to be overwritten in the
            +   * AgentGateway resource by the update.
            +   * The fields specified in the update_mask are relative to the resource, not
            +   * the full request. A field will be overwritten if it is in the mask. If the
            +   * user does not provide a mask then all fields will be overwritten.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
            +   * Optional. Field mask is used to specify the fields to be overwritten in the
            +   * AgentGateway resource by the update.
            +   * The fields specified in the update_mask are relative to the resource, not
            +   * the full request. A field will be overwritten if it is in the mask. If the
            +   * user does not provide a mask then all fields will be overwritten.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
            +   * Required. Updated AgentGateway resource.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the agentGateway field is set. + */ + boolean hasAgentGateway(); + + /** + * + * + *
            +   * Required. Updated AgentGateway resource.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The agentGateway. + */ + com.google.cloud.networkservices.v1.AgentGateway getAgentGateway(); + + /** + * + * + *
            +   * Required. Updated AgentGateway resource.
            +   * 
            + * + * + * .google.cloud.networkservices.v1.AgentGateway agent_gateway = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.networkservices.v1.AgentGatewayOrBuilder getAgentGatewayOrBuilder(); +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPlugin.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPlugin.java index 41cf43151333..9860c0ac8e02 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPlugin.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPlugin.java @@ -133,10 +133,23 @@ public interface VersionDetailsOrBuilder *
                  * URI of the plugin configuration stored in the Artifact Registry.
                  * The configuration is provided to the plugin at runtime through
            -     * the `ON_CONFIGURE` callback. The container image must
            -     * contain only a single file with the name
            -     * `plugin.config`. When a new `WasmPluginVersion`
            -     * resource is created, the digest of the container image is saved in the
            +     * the `ON_CONFIGURE` callback.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `plugin_config_uri` must point to a container
            +     * that contains a single file with the name `plugin.config`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `plugin_config_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest
            +     * value is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.config`. When a new `WasmPluginVersion` resource is
            +     * created, the checksum of the contents of the file is saved in the
                  * `plugin_config_digest` field.
                  * 
            * @@ -152,10 +165,23 @@ public interface VersionDetailsOrBuilder *
                  * URI of the plugin configuration stored in the Artifact Registry.
                  * The configuration is provided to the plugin at runtime through
            -     * the `ON_CONFIGURE` callback. The container image must
            -     * contain only a single file with the name
            -     * `plugin.config`. When a new `WasmPluginVersion`
            -     * resource is created, the digest of the container image is saved in the
            +     * the `ON_CONFIGURE` callback.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `plugin_config_uri` must point to a container
            +     * that contains a single file with the name `plugin.config`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `plugin_config_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest
            +     * value is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.config`. When a new `WasmPluginVersion` resource is
            +     * created, the checksum of the contents of the file is saved in the
                  * `plugin_config_digest` field.
                  * 
            * @@ -171,10 +197,23 @@ public interface VersionDetailsOrBuilder *
                  * URI of the plugin configuration stored in the Artifact Registry.
                  * The configuration is provided to the plugin at runtime through
            -     * the `ON_CONFIGURE` callback. The container image must
            -     * contain only a single file with the name
            -     * `plugin.config`. When a new `WasmPluginVersion`
            -     * resource is created, the digest of the container image is saved in the
            +     * the `ON_CONFIGURE` callback.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `plugin_config_uri` must point to a container
            +     * that contains a single file with the name `plugin.config`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `plugin_config_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest
            +     * value is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.config`. When a new `WasmPluginVersion` resource is
            +     * created, the checksum of the contents of the file is saved in the
                  * `plugin_config_digest` field.
                  * 
            * @@ -368,11 +407,25 @@ java.lang.String getLabelsOrDefault( * * *
            -     * Optional. URI of the container image containing the Wasm module, stored
            -     * in the Artifact Registry. The container image must contain only a single
            -     * file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource
            -     * is created, the URI gets resolved to an image digest and saved in the
            -     * `image_digest` field.
            +     * Optional. URI of the image containing the Wasm module, stored in
            +     * Artifact Registry.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `image_uri` must point to a container that
            +     * contains a single file with the name `plugin.wasm`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `image_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest value
            +     * is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `image_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
            +     * checksum of the contents of the file is saved in the `image_digest`
            +     * field.
                  * 
            * * string image_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -385,11 +438,25 @@ java.lang.String getLabelsOrDefault( * * *
            -     * Optional. URI of the container image containing the Wasm module, stored
            -     * in the Artifact Registry. The container image must contain only a single
            -     * file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource
            -     * is created, the URI gets resolved to an image digest and saved in the
            -     * `image_digest` field.
            +     * Optional. URI of the image containing the Wasm module, stored in
            +     * Artifact Registry.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `image_uri` must point to a container that
            +     * contains a single file with the name `plugin.wasm`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `image_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest value
            +     * is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `image_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
            +     * checksum of the contents of the file is saved in the `image_digest`
            +     * field.
                  * 
            * * string image_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -402,11 +469,12 @@ java.lang.String getLabelsOrDefault( * * *
            -     * Output only. The resolved digest for the image specified in `image`.
            -     * The digest is resolved during the creation of a
            -     * `WasmPluginVersion` resource.
            -     * This field holds the digest value regardless of whether a tag or
            -     * digest was originally specified in the `image` field.
            +     * Output only. This field holds the digest (usually checksum) value for the
            +     * plugin image. The value is calculated based on the `image_uri` field. If
            +     * the `image_uri` field refers to a container image, the digest value is
            +     * obtained from the container image. If the `image_uri` field refers to
            +     * a generic artifact, the digest value is calculated based on the
            +     * contents of the file.
                  * 
            * * string image_digest = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -419,11 +487,12 @@ java.lang.String getLabelsOrDefault( * * *
            -     * Output only. The resolved digest for the image specified in `image`.
            -     * The digest is resolved during the creation of a
            -     * `WasmPluginVersion` resource.
            -     * This field holds the digest value regardless of whether a tag or
            -     * digest was originally specified in the `image` field.
            +     * Output only. This field holds the digest (usually checksum) value for the
            +     * plugin image. The value is calculated based on the `image_uri` field. If
            +     * the `image_uri` field refers to a container image, the digest value is
            +     * obtained from the container image. If the `image_uri` field refers to
            +     * a generic artifact, the digest value is calculated based on the
            +     * contents of the file.
                  * 
            * * string image_digest = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -438,7 +507,7 @@ java.lang.String getLabelsOrDefault( *
                  * Output only. This field holds the digest (usually checksum) value for the
                  * plugin configuration. The value is calculated based on the contents of
            -     * the `plugin_config_data` field or the container image defined by the
            +     * `plugin_config_data` field or the image defined by the
                  * `plugin_config_uri` field.
                  * 
            * @@ -454,7 +523,7 @@ java.lang.String getLabelsOrDefault( *
                  * Output only. This field holds the digest (usually checksum) value for the
                  * plugin configuration. The value is calculated based on the contents of
            -     * the `plugin_config_data` field or the container image defined by the
            +     * `plugin_config_data` field or the image defined by the
                  * `plugin_config_uri` field.
                  * 
            * @@ -637,10 +706,23 @@ public com.google.protobuf.ByteString getPluginConfigData() { *
                  * URI of the plugin configuration stored in the Artifact Registry.
                  * The configuration is provided to the plugin at runtime through
            -     * the `ON_CONFIGURE` callback. The container image must
            -     * contain only a single file with the name
            -     * `plugin.config`. When a new `WasmPluginVersion`
            -     * resource is created, the digest of the container image is saved in the
            +     * the `ON_CONFIGURE` callback.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `plugin_config_uri` must point to a container
            +     * that contains a single file with the name `plugin.config`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `plugin_config_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest
            +     * value is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.config`. When a new `WasmPluginVersion` resource is
            +     * created, the checksum of the contents of the file is saved in the
                  * `plugin_config_digest` field.
                  * 
            * @@ -658,10 +740,23 @@ public boolean hasPluginConfigUri() { *
                  * URI of the plugin configuration stored in the Artifact Registry.
                  * The configuration is provided to the plugin at runtime through
            -     * the `ON_CONFIGURE` callback. The container image must
            -     * contain only a single file with the name
            -     * `plugin.config`. When a new `WasmPluginVersion`
            -     * resource is created, the digest of the container image is saved in the
            +     * the `ON_CONFIGURE` callback.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `plugin_config_uri` must point to a container
            +     * that contains a single file with the name `plugin.config`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `plugin_config_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest
            +     * value is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.config`. When a new `WasmPluginVersion` resource is
            +     * created, the checksum of the contents of the file is saved in the
                  * `plugin_config_digest` field.
                  * 
            * @@ -692,10 +787,23 @@ public java.lang.String getPluginConfigUri() { *
                  * URI of the plugin configuration stored in the Artifact Registry.
                  * The configuration is provided to the plugin at runtime through
            -     * the `ON_CONFIGURE` callback. The container image must
            -     * contain only a single file with the name
            -     * `plugin.config`. When a new `WasmPluginVersion`
            -     * resource is created, the digest of the container image is saved in the
            +     * the `ON_CONFIGURE` callback.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `plugin_config_uri` must point to a container
            +     * that contains a single file with the name `plugin.config`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `plugin_config_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest
            +     * value is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.config`. When a new `WasmPluginVersion` resource is
            +     * created, the checksum of the contents of the file is saved in the
                  * `plugin_config_digest` field.
                  * 
            * @@ -1003,11 +1111,25 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * *
            -     * Optional. URI of the container image containing the Wasm module, stored
            -     * in the Artifact Registry. The container image must contain only a single
            -     * file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource
            -     * is created, the URI gets resolved to an image digest and saved in the
            -     * `image_digest` field.
            +     * Optional. URI of the image containing the Wasm module, stored in
            +     * Artifact Registry.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `image_uri` must point to a container that
            +     * contains a single file with the name `plugin.wasm`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `image_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest value
            +     * is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `image_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
            +     * checksum of the contents of the file is saved in the `image_digest`
            +     * field.
                  * 
            * * string image_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1031,11 +1153,25 @@ public java.lang.String getImageUri() { * * *
            -     * Optional. URI of the container image containing the Wasm module, stored
            -     * in the Artifact Registry. The container image must contain only a single
            -     * file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource
            -     * is created, the URI gets resolved to an image digest and saved in the
            -     * `image_digest` field.
            +     * Optional. URI of the image containing the Wasm module, stored in
            +     * Artifact Registry.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `image_uri` must point to a container that
            +     * contains a single file with the name `plugin.wasm`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `image_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest value
            +     * is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `image_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
            +     * checksum of the contents of the file is saved in the `image_digest`
            +     * field.
                  * 
            * * string image_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1064,11 +1200,12 @@ public com.google.protobuf.ByteString getImageUriBytes() { * * *
            -     * Output only. The resolved digest for the image specified in `image`.
            -     * The digest is resolved during the creation of a
            -     * `WasmPluginVersion` resource.
            -     * This field holds the digest value regardless of whether a tag or
            -     * digest was originally specified in the `image` field.
            +     * Output only. This field holds the digest (usually checksum) value for the
            +     * plugin image. The value is calculated based on the `image_uri` field. If
            +     * the `image_uri` field refers to a container image, the digest value is
            +     * obtained from the container image. If the `image_uri` field refers to
            +     * a generic artifact, the digest value is calculated based on the
            +     * contents of the file.
                  * 
            * * string image_digest = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1092,11 +1229,12 @@ public java.lang.String getImageDigest() { * * *
            -     * Output only. The resolved digest for the image specified in `image`.
            -     * The digest is resolved during the creation of a
            -     * `WasmPluginVersion` resource.
            -     * This field holds the digest value regardless of whether a tag or
            -     * digest was originally specified in the `image` field.
            +     * Output only. This field holds the digest (usually checksum) value for the
            +     * plugin image. The value is calculated based on the `image_uri` field. If
            +     * the `image_uri` field refers to a container image, the digest value is
            +     * obtained from the container image. If the `image_uri` field refers to
            +     * a generic artifact, the digest value is calculated based on the
            +     * contents of the file.
                  * 
            * * string image_digest = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1127,7 +1265,7 @@ public com.google.protobuf.ByteString getImageDigestBytes() { *
                  * Output only. This field holds the digest (usually checksum) value for the
                  * plugin configuration. The value is calculated based on the contents of
            -     * the `plugin_config_data` field or the container image defined by the
            +     * `plugin_config_data` field or the image defined by the
                  * `plugin_config_uri` field.
                  * 
            * @@ -1154,7 +1292,7 @@ public java.lang.String getPluginConfigDigest() { *
                  * Output only. This field holds the digest (usually checksum) value for the
                  * plugin configuration. The value is calculated based on the contents of
            -     * the `plugin_config_data` field or the container image defined by the
            +     * `plugin_config_data` field or the image defined by the
                  * `plugin_config_uri` field.
                  * 
            * @@ -1889,10 +2027,23 @@ public Builder clearPluginConfigData() { *
                    * URI of the plugin configuration stored in the Artifact Registry.
                    * The configuration is provided to the plugin at runtime through
            -       * the `ON_CONFIGURE` callback. The container image must
            -       * contain only a single file with the name
            -       * `plugin.config`. When a new `WasmPluginVersion`
            -       * resource is created, the digest of the container image is saved in the
            +       * the `ON_CONFIGURE` callback.
            +       *
            +       * The URI can refer to one of the following repository formats:
            +       *
            +       * * Container images: the `plugin_config_uri` must point to a container
            +       * that contains a single file with the name `plugin.config`.
            +       * When a new `WasmPluginVersion` resource is created, the digest of the
            +       * image is saved in the `plugin_config_digest` field.
            +       * When pulling a container image from Artifact Registry, the digest
            +       * value is used instead of an image tag.
            +       *
            +       * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +       * `projects/{project}/locations/{location}/repositories/{repository}/
            +       * genericArtifacts/{package}:{version}`.
            +       * The specified package and version must contain a file with the name
            +       * `plugin.config`. When a new `WasmPluginVersion` resource is
            +       * created, the checksum of the contents of the file is saved in the
                    * `plugin_config_digest` field.
                    * 
            * @@ -1911,10 +2062,23 @@ public boolean hasPluginConfigUri() { *
                    * URI of the plugin configuration stored in the Artifact Registry.
                    * The configuration is provided to the plugin at runtime through
            -       * the `ON_CONFIGURE` callback. The container image must
            -       * contain only a single file with the name
            -       * `plugin.config`. When a new `WasmPluginVersion`
            -       * resource is created, the digest of the container image is saved in the
            +       * the `ON_CONFIGURE` callback.
            +       *
            +       * The URI can refer to one of the following repository formats:
            +       *
            +       * * Container images: the `plugin_config_uri` must point to a container
            +       * that contains a single file with the name `plugin.config`.
            +       * When a new `WasmPluginVersion` resource is created, the digest of the
            +       * image is saved in the `plugin_config_digest` field.
            +       * When pulling a container image from Artifact Registry, the digest
            +       * value is used instead of an image tag.
            +       *
            +       * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +       * `projects/{project}/locations/{location}/repositories/{repository}/
            +       * genericArtifacts/{package}:{version}`.
            +       * The specified package and version must contain a file with the name
            +       * `plugin.config`. When a new `WasmPluginVersion` resource is
            +       * created, the checksum of the contents of the file is saved in the
                    * `plugin_config_digest` field.
                    * 
            * @@ -1946,10 +2110,23 @@ public java.lang.String getPluginConfigUri() { *
                    * URI of the plugin configuration stored in the Artifact Registry.
                    * The configuration is provided to the plugin at runtime through
            -       * the `ON_CONFIGURE` callback. The container image must
            -       * contain only a single file with the name
            -       * `plugin.config`. When a new `WasmPluginVersion`
            -       * resource is created, the digest of the container image is saved in the
            +       * the `ON_CONFIGURE` callback.
            +       *
            +       * The URI can refer to one of the following repository formats:
            +       *
            +       * * Container images: the `plugin_config_uri` must point to a container
            +       * that contains a single file with the name `plugin.config`.
            +       * When a new `WasmPluginVersion` resource is created, the digest of the
            +       * image is saved in the `plugin_config_digest` field.
            +       * When pulling a container image from Artifact Registry, the digest
            +       * value is used instead of an image tag.
            +       *
            +       * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +       * `projects/{project}/locations/{location}/repositories/{repository}/
            +       * genericArtifacts/{package}:{version}`.
            +       * The specified package and version must contain a file with the name
            +       * `plugin.config`. When a new `WasmPluginVersion` resource is
            +       * created, the checksum of the contents of the file is saved in the
                    * `plugin_config_digest` field.
                    * 
            * @@ -1981,10 +2158,23 @@ public com.google.protobuf.ByteString getPluginConfigUriBytes() { *
                    * URI of the plugin configuration stored in the Artifact Registry.
                    * The configuration is provided to the plugin at runtime through
            -       * the `ON_CONFIGURE` callback. The container image must
            -       * contain only a single file with the name
            -       * `plugin.config`. When a new `WasmPluginVersion`
            -       * resource is created, the digest of the container image is saved in the
            +       * the `ON_CONFIGURE` callback.
            +       *
            +       * The URI can refer to one of the following repository formats:
            +       *
            +       * * Container images: the `plugin_config_uri` must point to a container
            +       * that contains a single file with the name `plugin.config`.
            +       * When a new `WasmPluginVersion` resource is created, the digest of the
            +       * image is saved in the `plugin_config_digest` field.
            +       * When pulling a container image from Artifact Registry, the digest
            +       * value is used instead of an image tag.
            +       *
            +       * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +       * `projects/{project}/locations/{location}/repositories/{repository}/
            +       * genericArtifacts/{package}:{version}`.
            +       * The specified package and version must contain a file with the name
            +       * `plugin.config`. When a new `WasmPluginVersion` resource is
            +       * created, the checksum of the contents of the file is saved in the
                    * `plugin_config_digest` field.
                    * 
            * @@ -2009,10 +2199,23 @@ public Builder setPluginConfigUri(java.lang.String value) { *
                    * URI of the plugin configuration stored in the Artifact Registry.
                    * The configuration is provided to the plugin at runtime through
            -       * the `ON_CONFIGURE` callback. The container image must
            -       * contain only a single file with the name
            -       * `plugin.config`. When a new `WasmPluginVersion`
            -       * resource is created, the digest of the container image is saved in the
            +       * the `ON_CONFIGURE` callback.
            +       *
            +       * The URI can refer to one of the following repository formats:
            +       *
            +       * * Container images: the `plugin_config_uri` must point to a container
            +       * that contains a single file with the name `plugin.config`.
            +       * When a new `WasmPluginVersion` resource is created, the digest of the
            +       * image is saved in the `plugin_config_digest` field.
            +       * When pulling a container image from Artifact Registry, the digest
            +       * value is used instead of an image tag.
            +       *
            +       * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +       * `projects/{project}/locations/{location}/repositories/{repository}/
            +       * genericArtifacts/{package}:{version}`.
            +       * The specified package and version must contain a file with the name
            +       * `plugin.config`. When a new `WasmPluginVersion` resource is
            +       * created, the checksum of the contents of the file is saved in the
                    * `plugin_config_digest` field.
                    * 
            * @@ -2035,10 +2238,23 @@ public Builder clearPluginConfigUri() { *
                    * URI of the plugin configuration stored in the Artifact Registry.
                    * The configuration is provided to the plugin at runtime through
            -       * the `ON_CONFIGURE` callback. The container image must
            -       * contain only a single file with the name
            -       * `plugin.config`. When a new `WasmPluginVersion`
            -       * resource is created, the digest of the container image is saved in the
            +       * the `ON_CONFIGURE` callback.
            +       *
            +       * The URI can refer to one of the following repository formats:
            +       *
            +       * * Container images: the `plugin_config_uri` must point to a container
            +       * that contains a single file with the name `plugin.config`.
            +       * When a new `WasmPluginVersion` resource is created, the digest of the
            +       * image is saved in the `plugin_config_digest` field.
            +       * When pulling a container image from Artifact Registry, the digest
            +       * value is used instead of an image tag.
            +       *
            +       * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +       * `projects/{project}/locations/{location}/repositories/{repository}/
            +       * genericArtifacts/{package}:{version}`.
            +       * The specified package and version must contain a file with the name
            +       * `plugin.config`. When a new `WasmPluginVersion` resource is
            +       * created, the checksum of the contents of the file is saved in the
                    * `plugin_config_digest` field.
                    * 
            * @@ -2785,11 +3001,25 @@ public Builder putAllLabels(java.util.Map va * * *
            -       * Optional. URI of the container image containing the Wasm module, stored
            -       * in the Artifact Registry. The container image must contain only a single
            -       * file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource
            -       * is created, the URI gets resolved to an image digest and saved in the
            -       * `image_digest` field.
            +       * Optional. URI of the image containing the Wasm module, stored in
            +       * Artifact Registry.
            +       *
            +       * The URI can refer to one of the following repository formats:
            +       *
            +       * * Container images: the `image_uri` must point to a container that
            +       * contains a single file with the name `plugin.wasm`.
            +       * When a new `WasmPluginVersion` resource is created, the digest of the
            +       * image is saved in the `image_digest` field.
            +       * When pulling a container image from Artifact Registry, the digest value
            +       * is used instead of an image tag.
            +       *
            +       * * Generic artifacts: the `image_uri` must be in this format:
            +       * `projects/{project}/locations/{location}/repositories/{repository}/
            +       * genericArtifacts/{package}:{version}`.
            +       * The specified package and version must contain a file with the name
            +       * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
            +       * checksum of the contents of the file is saved in the `image_digest`
            +       * field.
                    * 
            * * string image_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2812,11 +3042,25 @@ public java.lang.String getImageUri() { * * *
            -       * Optional. URI of the container image containing the Wasm module, stored
            -       * in the Artifact Registry. The container image must contain only a single
            -       * file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource
            -       * is created, the URI gets resolved to an image digest and saved in the
            -       * `image_digest` field.
            +       * Optional. URI of the image containing the Wasm module, stored in
            +       * Artifact Registry.
            +       *
            +       * The URI can refer to one of the following repository formats:
            +       *
            +       * * Container images: the `image_uri` must point to a container that
            +       * contains a single file with the name `plugin.wasm`.
            +       * When a new `WasmPluginVersion` resource is created, the digest of the
            +       * image is saved in the `image_digest` field.
            +       * When pulling a container image from Artifact Registry, the digest value
            +       * is used instead of an image tag.
            +       *
            +       * * Generic artifacts: the `image_uri` must be in this format:
            +       * `projects/{project}/locations/{location}/repositories/{repository}/
            +       * genericArtifacts/{package}:{version}`.
            +       * The specified package and version must contain a file with the name
            +       * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
            +       * checksum of the contents of the file is saved in the `image_digest`
            +       * field.
                    * 
            * * string image_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2839,11 +3083,25 @@ public com.google.protobuf.ByteString getImageUriBytes() { * * *
            -       * Optional. URI of the container image containing the Wasm module, stored
            -       * in the Artifact Registry. The container image must contain only a single
            -       * file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource
            -       * is created, the URI gets resolved to an image digest and saved in the
            -       * `image_digest` field.
            +       * Optional. URI of the image containing the Wasm module, stored in
            +       * Artifact Registry.
            +       *
            +       * The URI can refer to one of the following repository formats:
            +       *
            +       * * Container images: the `image_uri` must point to a container that
            +       * contains a single file with the name `plugin.wasm`.
            +       * When a new `WasmPluginVersion` resource is created, the digest of the
            +       * image is saved in the `image_digest` field.
            +       * When pulling a container image from Artifact Registry, the digest value
            +       * is used instead of an image tag.
            +       *
            +       * * Generic artifacts: the `image_uri` must be in this format:
            +       * `projects/{project}/locations/{location}/repositories/{repository}/
            +       * genericArtifacts/{package}:{version}`.
            +       * The specified package and version must contain a file with the name
            +       * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
            +       * checksum of the contents of the file is saved in the `image_digest`
            +       * field.
                    * 
            * * string image_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2865,11 +3123,25 @@ public Builder setImageUri(java.lang.String value) { * * *
            -       * Optional. URI of the container image containing the Wasm module, stored
            -       * in the Artifact Registry. The container image must contain only a single
            -       * file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource
            -       * is created, the URI gets resolved to an image digest and saved in the
            -       * `image_digest` field.
            +       * Optional. URI of the image containing the Wasm module, stored in
            +       * Artifact Registry.
            +       *
            +       * The URI can refer to one of the following repository formats:
            +       *
            +       * * Container images: the `image_uri` must point to a container that
            +       * contains a single file with the name `plugin.wasm`.
            +       * When a new `WasmPluginVersion` resource is created, the digest of the
            +       * image is saved in the `image_digest` field.
            +       * When pulling a container image from Artifact Registry, the digest value
            +       * is used instead of an image tag.
            +       *
            +       * * Generic artifacts: the `image_uri` must be in this format:
            +       * `projects/{project}/locations/{location}/repositories/{repository}/
            +       * genericArtifacts/{package}:{version}`.
            +       * The specified package and version must contain a file with the name
            +       * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
            +       * checksum of the contents of the file is saved in the `image_digest`
            +       * field.
                    * 
            * * string image_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2887,11 +3159,25 @@ public Builder clearImageUri() { * * *
            -       * Optional. URI of the container image containing the Wasm module, stored
            -       * in the Artifact Registry. The container image must contain only a single
            -       * file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource
            -       * is created, the URI gets resolved to an image digest and saved in the
            -       * `image_digest` field.
            +       * Optional. URI of the image containing the Wasm module, stored in
            +       * Artifact Registry.
            +       *
            +       * The URI can refer to one of the following repository formats:
            +       *
            +       * * Container images: the `image_uri` must point to a container that
            +       * contains a single file with the name `plugin.wasm`.
            +       * When a new `WasmPluginVersion` resource is created, the digest of the
            +       * image is saved in the `image_digest` field.
            +       * When pulling a container image from Artifact Registry, the digest value
            +       * is used instead of an image tag.
            +       *
            +       * * Generic artifacts: the `image_uri` must be in this format:
            +       * `projects/{project}/locations/{location}/repositories/{repository}/
            +       * genericArtifacts/{package}:{version}`.
            +       * The specified package and version must contain a file with the name
            +       * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
            +       * checksum of the contents of the file is saved in the `image_digest`
            +       * field.
                    * 
            * * string image_uri = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -2916,11 +3202,12 @@ public Builder setImageUriBytes(com.google.protobuf.ByteString value) { * * *
            -       * Output only. The resolved digest for the image specified in `image`.
            -       * The digest is resolved during the creation of a
            -       * `WasmPluginVersion` resource.
            -       * This field holds the digest value regardless of whether a tag or
            -       * digest was originally specified in the `image` field.
            +       * Output only. This field holds the digest (usually checksum) value for the
            +       * plugin image. The value is calculated based on the `image_uri` field. If
            +       * the `image_uri` field refers to a container image, the digest value is
            +       * obtained from the container image. If the `image_uri` field refers to
            +       * a generic artifact, the digest value is calculated based on the
            +       * contents of the file.
                    * 
            * * string image_digest = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2943,11 +3230,12 @@ public java.lang.String getImageDigest() { * * *
            -       * Output only. The resolved digest for the image specified in `image`.
            -       * The digest is resolved during the creation of a
            -       * `WasmPluginVersion` resource.
            -       * This field holds the digest value regardless of whether a tag or
            -       * digest was originally specified in the `image` field.
            +       * Output only. This field holds the digest (usually checksum) value for the
            +       * plugin image. The value is calculated based on the `image_uri` field. If
            +       * the `image_uri` field refers to a container image, the digest value is
            +       * obtained from the container image. If the `image_uri` field refers to
            +       * a generic artifact, the digest value is calculated based on the
            +       * contents of the file.
                    * 
            * * string image_digest = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2970,11 +3258,12 @@ public com.google.protobuf.ByteString getImageDigestBytes() { * * *
            -       * Output only. The resolved digest for the image specified in `image`.
            -       * The digest is resolved during the creation of a
            -       * `WasmPluginVersion` resource.
            -       * This field holds the digest value regardless of whether a tag or
            -       * digest was originally specified in the `image` field.
            +       * Output only. This field holds the digest (usually checksum) value for the
            +       * plugin image. The value is calculated based on the `image_uri` field. If
            +       * the `image_uri` field refers to a container image, the digest value is
            +       * obtained from the container image. If the `image_uri` field refers to
            +       * a generic artifact, the digest value is calculated based on the
            +       * contents of the file.
                    * 
            * * string image_digest = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2996,11 +3285,12 @@ public Builder setImageDigest(java.lang.String value) { * * *
            -       * Output only. The resolved digest for the image specified in `image`.
            -       * The digest is resolved during the creation of a
            -       * `WasmPluginVersion` resource.
            -       * This field holds the digest value regardless of whether a tag or
            -       * digest was originally specified in the `image` field.
            +       * Output only. This field holds the digest (usually checksum) value for the
            +       * plugin image. The value is calculated based on the `image_uri` field. If
            +       * the `image_uri` field refers to a container image, the digest value is
            +       * obtained from the container image. If the `image_uri` field refers to
            +       * a generic artifact, the digest value is calculated based on the
            +       * contents of the file.
                    * 
            * * string image_digest = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3018,11 +3308,12 @@ public Builder clearImageDigest() { * * *
            -       * Output only. The resolved digest for the image specified in `image`.
            -       * The digest is resolved during the creation of a
            -       * `WasmPluginVersion` resource.
            -       * This field holds the digest value regardless of whether a tag or
            -       * digest was originally specified in the `image` field.
            +       * Output only. This field holds the digest (usually checksum) value for the
            +       * plugin image. The value is calculated based on the `image_uri` field. If
            +       * the `image_uri` field refers to a container image, the digest value is
            +       * obtained from the container image. If the `image_uri` field refers to
            +       * a generic artifact, the digest value is calculated based on the
            +       * contents of the file.
                    * 
            * * string image_digest = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -3049,7 +3340,7 @@ public Builder setImageDigestBytes(com.google.protobuf.ByteString value) { *
                    * Output only. This field holds the digest (usually checksum) value for the
                    * plugin configuration. The value is calculated based on the contents of
            -       * the `plugin_config_data` field or the container image defined by the
            +       * `plugin_config_data` field or the image defined by the
                    * `plugin_config_uri` field.
                    * 
            * @@ -3075,7 +3366,7 @@ public java.lang.String getPluginConfigDigest() { *
                    * Output only. This field holds the digest (usually checksum) value for the
                    * plugin configuration. The value is calculated based on the contents of
            -       * the `plugin_config_data` field or the container image defined by the
            +       * `plugin_config_data` field or the image defined by the
                    * `plugin_config_uri` field.
                    * 
            * @@ -3101,7 +3392,7 @@ public com.google.protobuf.ByteString getPluginConfigDigestBytes() { *
                    * Output only. This field holds the digest (usually checksum) value for the
                    * plugin configuration. The value is calculated based on the contents of
            -       * the `plugin_config_data` field or the container image defined by the
            +       * `plugin_config_data` field or the image defined by the
                    * `plugin_config_uri` field.
                    * 
            * @@ -3126,7 +3417,7 @@ public Builder setPluginConfigDigest(java.lang.String value) { *
                    * Output only. This field holds the digest (usually checksum) value for the
                    * plugin configuration. The value is calculated based on the contents of
            -       * the `plugin_config_data` field or the container image defined by the
            +       * `plugin_config_data` field or the image defined by the
                    * `plugin_config_uri` field.
                    * 
            * @@ -3147,7 +3438,7 @@ public Builder clearPluginConfigDigest() { *
                    * Output only. This field holds the digest (usually checksum) value for the
                    * plugin configuration. The value is calculated based on the contents of
            -       * the `plugin_config_data` field or the container image defined by the
            +       * `plugin_config_data` field or the image defined by the
                    * `plugin_config_uri` field.
                    * 
            * @@ -3268,9 +3559,9 @@ public interface LogConfigOrBuilder * * *
            -     * Non-empty default. Specificies the lowest level of the plugin logs that
            -     * are exported to Cloud Logging. This setting relates to the logs generated
            -     * by using logging statements in your Wasm code.
            +     * Non-empty default. Specifies the lowest level of the plugin logs that are
            +     * exported to Cloud Logging. This setting relates to the logs generated by
            +     * using logging statements in your Wasm code.
                  *
                  * This field is can be set only if logging is enabled for the plugin.
                  *
            @@ -3290,9 +3581,9 @@ public interface LogConfigOrBuilder
                  *
                  *
                  * 
            -     * Non-empty default. Specificies the lowest level of the plugin logs that
            -     * are exported to Cloud Logging. This setting relates to the logs generated
            -     * by using logging statements in your Wasm code.
            +     * Non-empty default. Specifies the lowest level of the plugin logs that are
            +     * exported to Cloud Logging. This setting relates to the logs generated by
            +     * using logging statements in your Wasm code.
                  *
                  * This field is can be set only if logging is enabled for the plugin.
                  *
            @@ -3680,9 +3971,9 @@ public float getSampleRate() {
                  *
                  *
                  * 
            -     * Non-empty default. Specificies the lowest level of the plugin logs that
            -     * are exported to Cloud Logging. This setting relates to the logs generated
            -     * by using logging statements in your Wasm code.
            +     * Non-empty default. Specifies the lowest level of the plugin logs that are
            +     * exported to Cloud Logging. This setting relates to the logs generated by
            +     * using logging statements in your Wasm code.
                  *
                  * This field is can be set only if logging is enabled for the plugin.
                  *
            @@ -3705,9 +3996,9 @@ public int getMinLogLevelValue() {
                  *
                  *
                  * 
            -     * Non-empty default. Specificies the lowest level of the plugin logs that
            -     * are exported to Cloud Logging. This setting relates to the logs generated
            -     * by using logging statements in your Wasm code.
            +     * Non-empty default. Specifies the lowest level of the plugin logs that are
            +     * exported to Cloud Logging. This setting relates to the logs generated by
            +     * using logging statements in your Wasm code.
                  *
                  * This field is can be set only if logging is enabled for the plugin.
                  *
            @@ -4241,9 +4532,9 @@ public Builder clearSampleRate() {
                    *
                    *
                    * 
            -       * Non-empty default. Specificies the lowest level of the plugin logs that
            -       * are exported to Cloud Logging. This setting relates to the logs generated
            -       * by using logging statements in your Wasm code.
            +       * Non-empty default. Specifies the lowest level of the plugin logs that are
            +       * exported to Cloud Logging. This setting relates to the logs generated by
            +       * using logging statements in your Wasm code.
                    *
                    * This field is can be set only if logging is enabled for the plugin.
                    *
            @@ -4266,9 +4557,9 @@ public int getMinLogLevelValue() {
                    *
                    *
                    * 
            -       * Non-empty default. Specificies the lowest level of the plugin logs that
            -       * are exported to Cloud Logging. This setting relates to the logs generated
            -       * by using logging statements in your Wasm code.
            +       * Non-empty default. Specifies the lowest level of the plugin logs that are
            +       * exported to Cloud Logging. This setting relates to the logs generated by
            +       * using logging statements in your Wasm code.
                    *
                    * This field is can be set only if logging is enabled for the plugin.
                    *
            @@ -4294,9 +4585,9 @@ public Builder setMinLogLevelValue(int value) {
                    *
                    *
                    * 
            -       * Non-empty default. Specificies the lowest level of the plugin logs that
            -       * are exported to Cloud Logging. This setting relates to the logs generated
            -       * by using logging statements in your Wasm code.
            +       * Non-empty default. Specifies the lowest level of the plugin logs that are
            +       * exported to Cloud Logging. This setting relates to the logs generated by
            +       * using logging statements in your Wasm code.
                    *
                    * This field is can be set only if logging is enabled for the plugin.
                    *
            @@ -4324,9 +4615,9 @@ public com.google.cloud.networkservices.v1.WasmPlugin.LogConfig.LogLevel getMinL
                    *
                    *
                    * 
            -       * Non-empty default. Specificies the lowest level of the plugin logs that
            -       * are exported to Cloud Logging. This setting relates to the logs generated
            -       * by using logging statements in your Wasm code.
            +       * Non-empty default. Specifies the lowest level of the plugin logs that are
            +       * exported to Cloud Logging. This setting relates to the logs generated by
            +       * using logging statements in your Wasm code.
                    *
                    * This field is can be set only if logging is enabled for the plugin.
                    *
            @@ -4356,9 +4647,9 @@ public Builder setMinLogLevel(
                    *
                    *
                    * 
            -       * Non-empty default. Specificies the lowest level of the plugin logs that
            -       * are exported to Cloud Logging. This setting relates to the logs generated
            -       * by using logging statements in your Wasm code.
            +       * Non-empty default. Specifies the lowest level of the plugin logs that are
            +       * exported to Cloud Logging. This setting relates to the logs generated by
            +       * using logging statements in your Wasm code.
                    *
                    * This field is can be set only if logging is enabled for the plugin.
                    *
            diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersion.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersion.java
            index d80fc9148d2a..303899749fd9 100644
            --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersion.java
            +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersion.java
            @@ -191,10 +191,24 @@ public com.google.protobuf.ByteString getPluginConfigData() {
                * 
                * URI of the plugin configuration stored in the Artifact Registry.
                * The configuration is provided to the plugin at runtime through
            -   * the `ON_CONFIGURE` callback. The container image must contain
            -   * only a single file with the name `plugin.config`. When a
            -   * new `WasmPluginVersion` resource is created, the digest of the
            -   * container image is saved in the `plugin_config_digest` field.
            +   * the `ON_CONFIGURE` callback.
            +   *
            +   * The URI can refer to one of the following repository formats:
            +   *
            +   * * Container images: the `plugin_config_uri` must point to a container
            +   * that contains a single file with the name `plugin.config`.
            +   * When a new `WasmPluginVersion` resource is created, the digest of the
            +   * image is saved in the `plugin_config_digest` field.
            +   * When pulling a container image from Artifact Registry, the digest
            +   * value is used instead of an image tag.
            +   *
            +   * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +   * `projects/{project}/locations/{location}/repositories/{repository}/
            +   * genericArtifacts/{package}:{version}`.
            +   * The specified package and version must contain a file with the name
            +   * `plugin.config`. When a new `WasmPluginVersion` resource is
            +   * created, the checksum of the contents of the file is saved in the
            +   * `plugin_config_digest` field.
                * 
            * * string plugin_config_uri = 13; @@ -211,10 +225,24 @@ public boolean hasPluginConfigUri() { *
                * URI of the plugin configuration stored in the Artifact Registry.
                * The configuration is provided to the plugin at runtime through
            -   * the `ON_CONFIGURE` callback. The container image must contain
            -   * only a single file with the name `plugin.config`. When a
            -   * new `WasmPluginVersion` resource is created, the digest of the
            -   * container image is saved in the `plugin_config_digest` field.
            +   * the `ON_CONFIGURE` callback.
            +   *
            +   * The URI can refer to one of the following repository formats:
            +   *
            +   * * Container images: the `plugin_config_uri` must point to a container
            +   * that contains a single file with the name `plugin.config`.
            +   * When a new `WasmPluginVersion` resource is created, the digest of the
            +   * image is saved in the `plugin_config_digest` field.
            +   * When pulling a container image from Artifact Registry, the digest
            +   * value is used instead of an image tag.
            +   *
            +   * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +   * `projects/{project}/locations/{location}/repositories/{repository}/
            +   * genericArtifacts/{package}:{version}`.
            +   * The specified package and version must contain a file with the name
            +   * `plugin.config`. When a new `WasmPluginVersion` resource is
            +   * created, the checksum of the contents of the file is saved in the
            +   * `plugin_config_digest` field.
                * 
            * * string plugin_config_uri = 13; @@ -244,10 +272,24 @@ public java.lang.String getPluginConfigUri() { *
                * URI of the plugin configuration stored in the Artifact Registry.
                * The configuration is provided to the plugin at runtime through
            -   * the `ON_CONFIGURE` callback. The container image must contain
            -   * only a single file with the name `plugin.config`. When a
            -   * new `WasmPluginVersion` resource is created, the digest of the
            -   * container image is saved in the `plugin_config_digest` field.
            +   * the `ON_CONFIGURE` callback.
            +   *
            +   * The URI can refer to one of the following repository formats:
            +   *
            +   * * Container images: the `plugin_config_uri` must point to a container
            +   * that contains a single file with the name `plugin.config`.
            +   * When a new `WasmPluginVersion` resource is created, the digest of the
            +   * image is saved in the `plugin_config_digest` field.
            +   * When pulling a container image from Artifact Registry, the digest
            +   * value is used instead of an image tag.
            +   *
            +   * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +   * `projects/{project}/locations/{location}/repositories/{repository}/
            +   * genericArtifacts/{package}:{version}`.
            +   * The specified package and version must contain a file with the name
            +   * `plugin.config`. When a new `WasmPluginVersion` resource is
            +   * created, the checksum of the contents of the file is saved in the
            +   * `plugin_config_digest` field.
                * 
            * * string plugin_config_uri = 13; @@ -605,12 +647,25 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { * * *
            -   * Optional. URI of the container image containing the plugin, stored in the
            +   * Optional. URI of the image containing the Wasm module, stored in
                * Artifact Registry.
            -   * When a new `WasmPluginVersion` resource is created, the digest
            -   * of the container image is saved in the `image_digest` field.
            -   * When downloading an image, the digest value is used instead of an
            -   * image tag.
            +   *
            +   * The URI can refer to one of the following repository formats:
            +   *
            +   * * Container images: the `image_uri` must point to a container that
            +   * contains a single file with the name `plugin.wasm`.
            +   * When a new `WasmPluginVersion` resource is created, the digest of the
            +   * image is saved in the `image_digest` field.
            +   * When pulling a container image from Artifact Registry, the digest value
            +   * is used instead of an image tag.
            +   *
            +   * * Generic artifacts: the `image_uri` must be in this format:
            +   * `projects/{project}/locations/{location}/repositories/{repository}/
            +   * genericArtifacts/{package}:{version}`.
            +   * The specified package and version must contain a file with the name
            +   * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
            +   * checksum of the contents of the file is saved in the `image_digest`
            +   * field.
                * 
            * * string image_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -634,12 +689,25 @@ public java.lang.String getImageUri() { * * *
            -   * Optional. URI of the container image containing the plugin, stored in the
            +   * Optional. URI of the image containing the Wasm module, stored in
                * Artifact Registry.
            -   * When a new `WasmPluginVersion` resource is created, the digest
            -   * of the container image is saved in the `image_digest` field.
            -   * When downloading an image, the digest value is used instead of an
            -   * image tag.
            +   *
            +   * The URI can refer to one of the following repository formats:
            +   *
            +   * * Container images: the `image_uri` must point to a container that
            +   * contains a single file with the name `plugin.wasm`.
            +   * When a new `WasmPluginVersion` resource is created, the digest of the
            +   * image is saved in the `image_digest` field.
            +   * When pulling a container image from Artifact Registry, the digest value
            +   * is used instead of an image tag.
            +   *
            +   * * Generic artifacts: the `image_uri` must be in this format:
            +   * `projects/{project}/locations/{location}/repositories/{repository}/
            +   * genericArtifacts/{package}:{version}`.
            +   * The specified package and version must contain a file with the name
            +   * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
            +   * checksum of the contents of the file is saved in the `image_digest`
            +   * field.
                * 
            * * string image_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -668,10 +736,12 @@ public com.google.protobuf.ByteString getImageUriBytes() { * * *
            -   * Output only. The resolved digest for the image specified in the `image`
            -   * field. The digest is resolved during the creation of `WasmPluginVersion`
            -   * resource. This field holds the digest value, regardless of whether a tag or
            -   * digest was originally specified in the `image` field.
            +   * Output only. This field holds the digest (usually checksum) value for the
            +   * plugin image. The value is calculated based on the `image_uri` field. If
            +   * the `image_uri` field refers to a container image, the digest value is
            +   * obtained from the container image. If the `image_uri` field refers to
            +   * a generic artifact, the digest value is calculated based on the
            +   * contents of the file.
                * 
            * * string image_digest = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -695,10 +765,12 @@ public java.lang.String getImageDigest() { * * *
            -   * Output only. The resolved digest for the image specified in the `image`
            -   * field. The digest is resolved during the creation of `WasmPluginVersion`
            -   * resource. This field holds the digest value, regardless of whether a tag or
            -   * digest was originally specified in the `image` field.
            +   * Output only. This field holds the digest (usually checksum) value for the
            +   * plugin image. The value is calculated based on the `image_uri` field. If
            +   * the `image_uri` field refers to a container image, the digest value is
            +   * obtained from the container image. If the `image_uri` field refers to
            +   * a generic artifact, the digest value is calculated based on the
            +   * contents of the file.
                * 
            * * string image_digest = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -729,8 +801,8 @@ public com.google.protobuf.ByteString getImageDigestBytes() { *
                * Output only. This field holds the digest (usually checksum) value for the
                * plugin configuration. The value is calculated based on the contents of
            -   * `plugin_config_data` or the container image defined by
            -   * the `plugin_config_uri` field.
            +   * `plugin_config_data` field or the image defined by the
            +   * `plugin_config_uri` field.
                * 
            * * string plugin_config_digest = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -756,8 +828,8 @@ public java.lang.String getPluginConfigDigest() { *
                * Output only. This field holds the digest (usually checksum) value for the
                * plugin configuration. The value is calculated based on the contents of
            -   * `plugin_config_data` or the container image defined by
            -   * the `plugin_config_uri` field.
            +   * `plugin_config_data` field or the image defined by the
            +   * `plugin_config_uri` field.
                * 
            * * string plugin_config_digest = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1508,10 +1580,24 @@ public Builder clearPluginConfigData() { *
                  * URI of the plugin configuration stored in the Artifact Registry.
                  * The configuration is provided to the plugin at runtime through
            -     * the `ON_CONFIGURE` callback. The container image must contain
            -     * only a single file with the name `plugin.config`. When a
            -     * new `WasmPluginVersion` resource is created, the digest of the
            -     * container image is saved in the `plugin_config_digest` field.
            +     * the `ON_CONFIGURE` callback.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `plugin_config_uri` must point to a container
            +     * that contains a single file with the name `plugin.config`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `plugin_config_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest
            +     * value is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.config`. When a new `WasmPluginVersion` resource is
            +     * created, the checksum of the contents of the file is saved in the
            +     * `plugin_config_digest` field.
                  * 
            * * string plugin_config_uri = 13; @@ -1529,10 +1615,24 @@ public boolean hasPluginConfigUri() { *
                  * URI of the plugin configuration stored in the Artifact Registry.
                  * The configuration is provided to the plugin at runtime through
            -     * the `ON_CONFIGURE` callback. The container image must contain
            -     * only a single file with the name `plugin.config`. When a
            -     * new `WasmPluginVersion` resource is created, the digest of the
            -     * container image is saved in the `plugin_config_digest` field.
            +     * the `ON_CONFIGURE` callback.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `plugin_config_uri` must point to a container
            +     * that contains a single file with the name `plugin.config`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `plugin_config_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest
            +     * value is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.config`. When a new `WasmPluginVersion` resource is
            +     * created, the checksum of the contents of the file is saved in the
            +     * `plugin_config_digest` field.
                  * 
            * * string plugin_config_uri = 13; @@ -1563,10 +1663,24 @@ public java.lang.String getPluginConfigUri() { *
                  * URI of the plugin configuration stored in the Artifact Registry.
                  * The configuration is provided to the plugin at runtime through
            -     * the `ON_CONFIGURE` callback. The container image must contain
            -     * only a single file with the name `plugin.config`. When a
            -     * new `WasmPluginVersion` resource is created, the digest of the
            -     * container image is saved in the `plugin_config_digest` field.
            +     * the `ON_CONFIGURE` callback.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `plugin_config_uri` must point to a container
            +     * that contains a single file with the name `plugin.config`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `plugin_config_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest
            +     * value is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.config`. When a new `WasmPluginVersion` resource is
            +     * created, the checksum of the contents of the file is saved in the
            +     * `plugin_config_digest` field.
                  * 
            * * string plugin_config_uri = 13; @@ -1597,10 +1711,24 @@ public com.google.protobuf.ByteString getPluginConfigUriBytes() { *
                  * URI of the plugin configuration stored in the Artifact Registry.
                  * The configuration is provided to the plugin at runtime through
            -     * the `ON_CONFIGURE` callback. The container image must contain
            -     * only a single file with the name `plugin.config`. When a
            -     * new `WasmPluginVersion` resource is created, the digest of the
            -     * container image is saved in the `plugin_config_digest` field.
            +     * the `ON_CONFIGURE` callback.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `plugin_config_uri` must point to a container
            +     * that contains a single file with the name `plugin.config`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `plugin_config_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest
            +     * value is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.config`. When a new `WasmPluginVersion` resource is
            +     * created, the checksum of the contents of the file is saved in the
            +     * `plugin_config_digest` field.
                  * 
            * * string plugin_config_uri = 13; @@ -1624,10 +1752,24 @@ public Builder setPluginConfigUri(java.lang.String value) { *
                  * URI of the plugin configuration stored in the Artifact Registry.
                  * The configuration is provided to the plugin at runtime through
            -     * the `ON_CONFIGURE` callback. The container image must contain
            -     * only a single file with the name `plugin.config`. When a
            -     * new `WasmPluginVersion` resource is created, the digest of the
            -     * container image is saved in the `plugin_config_digest` field.
            +     * the `ON_CONFIGURE` callback.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `plugin_config_uri` must point to a container
            +     * that contains a single file with the name `plugin.config`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `plugin_config_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest
            +     * value is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.config`. When a new `WasmPluginVersion` resource is
            +     * created, the checksum of the contents of the file is saved in the
            +     * `plugin_config_digest` field.
                  * 
            * * string plugin_config_uri = 13; @@ -1649,10 +1791,24 @@ public Builder clearPluginConfigUri() { *
                  * URI of the plugin configuration stored in the Artifact Registry.
                  * The configuration is provided to the plugin at runtime through
            -     * the `ON_CONFIGURE` callback. The container image must contain
            -     * only a single file with the name `plugin.config`. When a
            -     * new `WasmPluginVersion` resource is created, the digest of the
            -     * container image is saved in the `plugin_config_digest` field.
            +     * the `ON_CONFIGURE` callback.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `plugin_config_uri` must point to a container
            +     * that contains a single file with the name `plugin.config`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `plugin_config_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest
            +     * value is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.config`. When a new `WasmPluginVersion` resource is
            +     * created, the checksum of the contents of the file is saved in the
            +     * `plugin_config_digest` field.
                  * 
            * * string plugin_config_uri = 13; @@ -2512,12 +2668,25 @@ public Builder putAllLabels(java.util.Map va * * *
            -     * Optional. URI of the container image containing the plugin, stored in the
            +     * Optional. URI of the image containing the Wasm module, stored in
                  * Artifact Registry.
            -     * When a new `WasmPluginVersion` resource is created, the digest
            -     * of the container image is saved in the `image_digest` field.
            -     * When downloading an image, the digest value is used instead of an
            -     * image tag.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `image_uri` must point to a container that
            +     * contains a single file with the name `plugin.wasm`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `image_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest value
            +     * is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `image_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
            +     * checksum of the contents of the file is saved in the `image_digest`
            +     * field.
                  * 
            * * string image_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2540,12 +2709,25 @@ public java.lang.String getImageUri() { * * *
            -     * Optional. URI of the container image containing the plugin, stored in the
            +     * Optional. URI of the image containing the Wasm module, stored in
                  * Artifact Registry.
            -     * When a new `WasmPluginVersion` resource is created, the digest
            -     * of the container image is saved in the `image_digest` field.
            -     * When downloading an image, the digest value is used instead of an
            -     * image tag.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `image_uri` must point to a container that
            +     * contains a single file with the name `plugin.wasm`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `image_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest value
            +     * is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `image_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
            +     * checksum of the contents of the file is saved in the `image_digest`
            +     * field.
                  * 
            * * string image_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2568,12 +2750,25 @@ public com.google.protobuf.ByteString getImageUriBytes() { * * *
            -     * Optional. URI of the container image containing the plugin, stored in the
            +     * Optional. URI of the image containing the Wasm module, stored in
                  * Artifact Registry.
            -     * When a new `WasmPluginVersion` resource is created, the digest
            -     * of the container image is saved in the `image_digest` field.
            -     * When downloading an image, the digest value is used instead of an
            -     * image tag.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `image_uri` must point to a container that
            +     * contains a single file with the name `plugin.wasm`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `image_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest value
            +     * is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `image_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
            +     * checksum of the contents of the file is saved in the `image_digest`
            +     * field.
                  * 
            * * string image_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2595,12 +2790,25 @@ public Builder setImageUri(java.lang.String value) { * * *
            -     * Optional. URI of the container image containing the plugin, stored in the
            +     * Optional. URI of the image containing the Wasm module, stored in
                  * Artifact Registry.
            -     * When a new `WasmPluginVersion` resource is created, the digest
            -     * of the container image is saved in the `image_digest` field.
            -     * When downloading an image, the digest value is used instead of an
            -     * image tag.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `image_uri` must point to a container that
            +     * contains a single file with the name `plugin.wasm`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `image_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest value
            +     * is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `image_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
            +     * checksum of the contents of the file is saved in the `image_digest`
            +     * field.
                  * 
            * * string image_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2618,12 +2826,25 @@ public Builder clearImageUri() { * * *
            -     * Optional. URI of the container image containing the plugin, stored in the
            +     * Optional. URI of the image containing the Wasm module, stored in
                  * Artifact Registry.
            -     * When a new `WasmPluginVersion` resource is created, the digest
            -     * of the container image is saved in the `image_digest` field.
            -     * When downloading an image, the digest value is used instead of an
            -     * image tag.
            +     *
            +     * The URI can refer to one of the following repository formats:
            +     *
            +     * * Container images: the `image_uri` must point to a container that
            +     * contains a single file with the name `plugin.wasm`.
            +     * When a new `WasmPluginVersion` resource is created, the digest of the
            +     * image is saved in the `image_digest` field.
            +     * When pulling a container image from Artifact Registry, the digest value
            +     * is used instead of an image tag.
            +     *
            +     * * Generic artifacts: the `image_uri` must be in this format:
            +     * `projects/{project}/locations/{location}/repositories/{repository}/
            +     * genericArtifacts/{package}:{version}`.
            +     * The specified package and version must contain a file with the name
            +     * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
            +     * checksum of the contents of the file is saved in the `image_digest`
            +     * field.
                  * 
            * * string image_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -2648,10 +2869,12 @@ public Builder setImageUriBytes(com.google.protobuf.ByteString value) { * * *
            -     * Output only. The resolved digest for the image specified in the `image`
            -     * field. The digest is resolved during the creation of `WasmPluginVersion`
            -     * resource. This field holds the digest value, regardless of whether a tag or
            -     * digest was originally specified in the `image` field.
            +     * Output only. This field holds the digest (usually checksum) value for the
            +     * plugin image. The value is calculated based on the `image_uri` field. If
            +     * the `image_uri` field refers to a container image, the digest value is
            +     * obtained from the container image. If the `image_uri` field refers to
            +     * a generic artifact, the digest value is calculated based on the
            +     * contents of the file.
                  * 
            * * string image_digest = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2674,10 +2897,12 @@ public java.lang.String getImageDigest() { * * *
            -     * Output only. The resolved digest for the image specified in the `image`
            -     * field. The digest is resolved during the creation of `WasmPluginVersion`
            -     * resource. This field holds the digest value, regardless of whether a tag or
            -     * digest was originally specified in the `image` field.
            +     * Output only. This field holds the digest (usually checksum) value for the
            +     * plugin image. The value is calculated based on the `image_uri` field. If
            +     * the `image_uri` field refers to a container image, the digest value is
            +     * obtained from the container image. If the `image_uri` field refers to
            +     * a generic artifact, the digest value is calculated based on the
            +     * contents of the file.
                  * 
            * * string image_digest = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2700,10 +2925,12 @@ public com.google.protobuf.ByteString getImageDigestBytes() { * * *
            -     * Output only. The resolved digest for the image specified in the `image`
            -     * field. The digest is resolved during the creation of `WasmPluginVersion`
            -     * resource. This field holds the digest value, regardless of whether a tag or
            -     * digest was originally specified in the `image` field.
            +     * Output only. This field holds the digest (usually checksum) value for the
            +     * plugin image. The value is calculated based on the `image_uri` field. If
            +     * the `image_uri` field refers to a container image, the digest value is
            +     * obtained from the container image. If the `image_uri` field refers to
            +     * a generic artifact, the digest value is calculated based on the
            +     * contents of the file.
                  * 
            * * string image_digest = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2725,10 +2952,12 @@ public Builder setImageDigest(java.lang.String value) { * * *
            -     * Output only. The resolved digest for the image specified in the `image`
            -     * field. The digest is resolved during the creation of `WasmPluginVersion`
            -     * resource. This field holds the digest value, regardless of whether a tag or
            -     * digest was originally specified in the `image` field.
            +     * Output only. This field holds the digest (usually checksum) value for the
            +     * plugin image. The value is calculated based on the `image_uri` field. If
            +     * the `image_uri` field refers to a container image, the digest value is
            +     * obtained from the container image. If the `image_uri` field refers to
            +     * a generic artifact, the digest value is calculated based on the
            +     * contents of the file.
                  * 
            * * string image_digest = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2746,10 +2975,12 @@ public Builder clearImageDigest() { * * *
            -     * Output only. The resolved digest for the image specified in the `image`
            -     * field. The digest is resolved during the creation of `WasmPluginVersion`
            -     * resource. This field holds the digest value, regardless of whether a tag or
            -     * digest was originally specified in the `image` field.
            +     * Output only. This field holds the digest (usually checksum) value for the
            +     * plugin image. The value is calculated based on the `image_uri` field. If
            +     * the `image_uri` field refers to a container image, the digest value is
            +     * obtained from the container image. If the `image_uri` field refers to
            +     * a generic artifact, the digest value is calculated based on the
            +     * contents of the file.
                  * 
            * * string image_digest = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2776,8 +3007,8 @@ public Builder setImageDigestBytes(com.google.protobuf.ByteString value) { *
                  * Output only. This field holds the digest (usually checksum) value for the
                  * plugin configuration. The value is calculated based on the contents of
            -     * `plugin_config_data` or the container image defined by
            -     * the `plugin_config_uri` field.
            +     * `plugin_config_data` field or the image defined by the
            +     * `plugin_config_uri` field.
                  * 
            * * string plugin_config_digest = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2802,8 +3033,8 @@ public java.lang.String getPluginConfigDigest() { *
                  * Output only. This field holds the digest (usually checksum) value for the
                  * plugin configuration. The value is calculated based on the contents of
            -     * `plugin_config_data` or the container image defined by
            -     * the `plugin_config_uri` field.
            +     * `plugin_config_data` field or the image defined by the
            +     * `plugin_config_uri` field.
                  * 
            * * string plugin_config_digest = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2828,8 +3059,8 @@ public com.google.protobuf.ByteString getPluginConfigDigestBytes() { *
                  * Output only. This field holds the digest (usually checksum) value for the
                  * plugin configuration. The value is calculated based on the contents of
            -     * `plugin_config_data` or the container image defined by
            -     * the `plugin_config_uri` field.
            +     * `plugin_config_data` field or the image defined by the
            +     * `plugin_config_uri` field.
                  * 
            * * string plugin_config_digest = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2853,8 +3084,8 @@ public Builder setPluginConfigDigest(java.lang.String value) { *
                  * Output only. This field holds the digest (usually checksum) value for the
                  * plugin configuration. The value is calculated based on the contents of
            -     * `plugin_config_data` or the container image defined by
            -     * the `plugin_config_uri` field.
            +     * `plugin_config_data` field or the image defined by the
            +     * `plugin_config_uri` field.
                  * 
            * * string plugin_config_digest = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -2874,8 +3105,8 @@ public Builder clearPluginConfigDigest() { *
                  * Output only. This field holds the digest (usually checksum) value for the
                  * plugin configuration. The value is calculated based on the contents of
            -     * `plugin_config_data` or the container image defined by
            -     * the `plugin_config_uri` field.
            +     * `plugin_config_data` field or the image defined by the
            +     * `plugin_config_uri` field.
                  * 
            * * string plugin_config_digest = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersionOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersionOrBuilder.java index 431928fce2cf..53e036372d41 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersionOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WasmPluginVersionOrBuilder.java @@ -66,10 +66,24 @@ public interface WasmPluginVersionOrBuilder *
                * URI of the plugin configuration stored in the Artifact Registry.
                * The configuration is provided to the plugin at runtime through
            -   * the `ON_CONFIGURE` callback. The container image must contain
            -   * only a single file with the name `plugin.config`. When a
            -   * new `WasmPluginVersion` resource is created, the digest of the
            -   * container image is saved in the `plugin_config_digest` field.
            +   * the `ON_CONFIGURE` callback.
            +   *
            +   * The URI can refer to one of the following repository formats:
            +   *
            +   * * Container images: the `plugin_config_uri` must point to a container
            +   * that contains a single file with the name `plugin.config`.
            +   * When a new `WasmPluginVersion` resource is created, the digest of the
            +   * image is saved in the `plugin_config_digest` field.
            +   * When pulling a container image from Artifact Registry, the digest
            +   * value is used instead of an image tag.
            +   *
            +   * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +   * `projects/{project}/locations/{location}/repositories/{repository}/
            +   * genericArtifacts/{package}:{version}`.
            +   * The specified package and version must contain a file with the name
            +   * `plugin.config`. When a new `WasmPluginVersion` resource is
            +   * created, the checksum of the contents of the file is saved in the
            +   * `plugin_config_digest` field.
                * 
            * * string plugin_config_uri = 13; @@ -84,10 +98,24 @@ public interface WasmPluginVersionOrBuilder *
                * URI of the plugin configuration stored in the Artifact Registry.
                * The configuration is provided to the plugin at runtime through
            -   * the `ON_CONFIGURE` callback. The container image must contain
            -   * only a single file with the name `plugin.config`. When a
            -   * new `WasmPluginVersion` resource is created, the digest of the
            -   * container image is saved in the `plugin_config_digest` field.
            +   * the `ON_CONFIGURE` callback.
            +   *
            +   * The URI can refer to one of the following repository formats:
            +   *
            +   * * Container images: the `plugin_config_uri` must point to a container
            +   * that contains a single file with the name `plugin.config`.
            +   * When a new `WasmPluginVersion` resource is created, the digest of the
            +   * image is saved in the `plugin_config_digest` field.
            +   * When pulling a container image from Artifact Registry, the digest
            +   * value is used instead of an image tag.
            +   *
            +   * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +   * `projects/{project}/locations/{location}/repositories/{repository}/
            +   * genericArtifacts/{package}:{version}`.
            +   * The specified package and version must contain a file with the name
            +   * `plugin.config`. When a new `WasmPluginVersion` resource is
            +   * created, the checksum of the contents of the file is saved in the
            +   * `plugin_config_digest` field.
                * 
            * * string plugin_config_uri = 13; @@ -102,10 +130,24 @@ public interface WasmPluginVersionOrBuilder *
                * URI of the plugin configuration stored in the Artifact Registry.
                * The configuration is provided to the plugin at runtime through
            -   * the `ON_CONFIGURE` callback. The container image must contain
            -   * only a single file with the name `plugin.config`. When a
            -   * new `WasmPluginVersion` resource is created, the digest of the
            -   * container image is saved in the `plugin_config_digest` field.
            +   * the `ON_CONFIGURE` callback.
            +   *
            +   * The URI can refer to one of the following repository formats:
            +   *
            +   * * Container images: the `plugin_config_uri` must point to a container
            +   * that contains a single file with the name `plugin.config`.
            +   * When a new `WasmPluginVersion` resource is created, the digest of the
            +   * image is saved in the `plugin_config_digest` field.
            +   * When pulling a container image from Artifact Registry, the digest
            +   * value is used instead of an image tag.
            +   *
            +   * * Generic artifacts: the `plugin_config_uri` must be in this format:
            +   * `projects/{project}/locations/{location}/repositories/{repository}/
            +   * genericArtifacts/{package}:{version}`.
            +   * The specified package and version must contain a file with the name
            +   * `plugin.config`. When a new `WasmPluginVersion` resource is
            +   * created, the checksum of the contents of the file is saved in the
            +   * `plugin_config_digest` field.
                * 
            * * string plugin_config_uri = 13; @@ -322,12 +364,25 @@ java.lang.String getLabelsOrDefault( * * *
            -   * Optional. URI of the container image containing the plugin, stored in the
            +   * Optional. URI of the image containing the Wasm module, stored in
                * Artifact Registry.
            -   * When a new `WasmPluginVersion` resource is created, the digest
            -   * of the container image is saved in the `image_digest` field.
            -   * When downloading an image, the digest value is used instead of an
            -   * image tag.
            +   *
            +   * The URI can refer to one of the following repository formats:
            +   *
            +   * * Container images: the `image_uri` must point to a container that
            +   * contains a single file with the name `plugin.wasm`.
            +   * When a new `WasmPluginVersion` resource is created, the digest of the
            +   * image is saved in the `image_digest` field.
            +   * When pulling a container image from Artifact Registry, the digest value
            +   * is used instead of an image tag.
            +   *
            +   * * Generic artifacts: the `image_uri` must be in this format:
            +   * `projects/{project}/locations/{location}/repositories/{repository}/
            +   * genericArtifacts/{package}:{version}`.
            +   * The specified package and version must contain a file with the name
            +   * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
            +   * checksum of the contents of the file is saved in the `image_digest`
            +   * field.
                * 
            * * string image_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -340,12 +395,25 @@ java.lang.String getLabelsOrDefault( * * *
            -   * Optional. URI of the container image containing the plugin, stored in the
            +   * Optional. URI of the image containing the Wasm module, stored in
                * Artifact Registry.
            -   * When a new `WasmPluginVersion` resource is created, the digest
            -   * of the container image is saved in the `image_digest` field.
            -   * When downloading an image, the digest value is used instead of an
            -   * image tag.
            +   *
            +   * The URI can refer to one of the following repository formats:
            +   *
            +   * * Container images: the `image_uri` must point to a container that
            +   * contains a single file with the name `plugin.wasm`.
            +   * When a new `WasmPluginVersion` resource is created, the digest of the
            +   * image is saved in the `image_digest` field.
            +   * When pulling a container image from Artifact Registry, the digest value
            +   * is used instead of an image tag.
            +   *
            +   * * Generic artifacts: the `image_uri` must be in this format:
            +   * `projects/{project}/locations/{location}/repositories/{repository}/
            +   * genericArtifacts/{package}:{version}`.
            +   * The specified package and version must contain a file with the name
            +   * `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the
            +   * checksum of the contents of the file is saved in the `image_digest`
            +   * field.
                * 
            * * string image_uri = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -358,10 +426,12 @@ java.lang.String getLabelsOrDefault( * * *
            -   * Output only. The resolved digest for the image specified in the `image`
            -   * field. The digest is resolved during the creation of `WasmPluginVersion`
            -   * resource. This field holds the digest value, regardless of whether a tag or
            -   * digest was originally specified in the `image` field.
            +   * Output only. This field holds the digest (usually checksum) value for the
            +   * plugin image. The value is calculated based on the `image_uri` field. If
            +   * the `image_uri` field refers to a container image, the digest value is
            +   * obtained from the container image. If the `image_uri` field refers to
            +   * a generic artifact, the digest value is calculated based on the
            +   * contents of the file.
                * 
            * * string image_digest = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -374,10 +444,12 @@ java.lang.String getLabelsOrDefault( * * *
            -   * Output only. The resolved digest for the image specified in the `image`
            -   * field. The digest is resolved during the creation of `WasmPluginVersion`
            -   * resource. This field holds the digest value, regardless of whether a tag or
            -   * digest was originally specified in the `image` field.
            +   * Output only. This field holds the digest (usually checksum) value for the
            +   * plugin image. The value is calculated based on the `image_uri` field. If
            +   * the `image_uri` field refers to a container image, the digest value is
            +   * obtained from the container image. If the `image_uri` field refers to
            +   * a generic artifact, the digest value is calculated based on the
            +   * contents of the file.
                * 
            * * string image_digest = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -392,8 +464,8 @@ java.lang.String getLabelsOrDefault( *
                * Output only. This field holds the digest (usually checksum) value for the
                * plugin configuration. The value is calculated based on the contents of
            -   * `plugin_config_data` or the container image defined by
            -   * the `plugin_config_uri` field.
            +   * `plugin_config_data` field or the image defined by the
            +   * `plugin_config_uri` field.
                * 
            * * string plugin_config_digest = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -408,8 +480,8 @@ java.lang.String getLabelsOrDefault( *
                * Output only. This field holds the digest (usually checksum) value for the
                * plugin configuration. The value is calculated based on the contents of
            -   * `plugin_config_data` or the container image defined by
            -   * the `plugin_config_uri` field.
            +   * `plugin_config_data` field or the image defined by the
            +   * `plugin_config_uri` field.
                * 
            * * string plugin_config_digest = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WireFormat.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WireFormat.java index 015050f188e2..fcf4c95b5f51 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WireFormat.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/WireFormat.java @@ -55,6 +55,18 @@ public enum WireFormat implements com.google.protobuf.ProtocolMessageEnum { * EXT_PROC_GRPC = 1; */ EXT_PROC_GRPC(1), + /** + * + * + *
            +   * The extension service uses Envoy's `ext_authz` gRPC API. The backend
            +   * service for the extension must use HTTP2 or H2C as the protocol.
            +   * `EXT_AUTHZ_GRPC` is only supported for regional `AuthzExtension` resources.
            +   * 
            + * + * EXT_AUTHZ_GRPC = 3; + */ + EXT_AUTHZ_GRPC(3), UNRECOGNIZED(-1), ; @@ -94,6 +106,19 @@ public enum WireFormat implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EXT_PROC_GRPC_VALUE = 1; + /** + * + * + *
            +   * The extension service uses Envoy's `ext_authz` gRPC API. The backend
            +   * service for the extension must use HTTP2 or H2C as the protocol.
            +   * `EXT_AUTHZ_GRPC` is only supported for regional `AuthzExtension` resources.
            +   * 
            + * + * EXT_AUTHZ_GRPC = 3; + */ + public static final int EXT_AUTHZ_GRPC_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -122,6 +147,8 @@ public static WireFormat forNumber(int value) { return WIRE_FORMAT_UNSPECIFIED; case 1: return EXT_PROC_GRPC; + case 3: + return EXT_AUTHZ_GRPC; default: return null; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/agent_gateway.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/agent_gateway.proto new file mode 100644 index 000000000000..1ecb015e6553 --- /dev/null +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/agent_gateway.proto @@ -0,0 +1,299 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.networkservices.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.NetworkServices.V1"; +option go_package = "cloud.google.com/go/networkservices/apiv1/networkservicespb;networkservicespb"; +option java_multiple_files = true; +option java_outer_classname = "AgentGatewayProto"; +option java_package = "com.google.cloud.networkservices.v1"; +option php_namespace = "Google\\Cloud\\NetworkServices\\V1"; +option ruby_package = "Google::Cloud::NetworkServices::V1"; + +// AgentGateway represents the agent gateway resource. +message AgentGateway { + option (google.api.resource) = { + type: "networkservices.googleapis.com/AgentGateway" + pattern: "projects/{project}/locations/{location}/agentGateways/{agent_gateway}" + plural: "agentGateways" + singular: "agentGateway" + }; + + // Configuration for Google Managed deployment mode. + // Proxy is orchestrated and managed by GoogleCloud in a tenant project. + message GoogleManaged { + // GovernedAccessPath defines the type of access to protect. + enum GovernedAccessPath { + // Governed access path is not specified. + GOVERNED_ACCESS_PATH_UNSPECIFIED = 0; + + // Govern agent conections to destinations. + AGENT_TO_ANYWHERE = 1; + + // Protect connection to Agent or Tool. + CLIENT_TO_AGENT = 2; + } + + // Optional. Operating Mode of Agent Gateway. + GovernedAccessPath governed_access_path = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration for Self Managed deployment mode. + // Attach to existing Application Load Balancers or Secure Web Proxies. + message SelfManaged { + // Optional. A supported Google Cloud networking proxy in the Project and + // Location + string resource_uri = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "*" } + ]; + } + + // NetworkConfig contains network configurations for the AgentGateway. + message NetworkConfig { + // Configuration for Egress + message Egress { + // TrustConfig defines the trust configuration for egress. + message TrustConfig { + // Required. PEM encoded root certificates used to validate the identity + // of the upstream servers/destinations during egress connections. + repeated string pem_certificates = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + // Optional. The URI of the Network Attachment resource. + string network_attachment = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. TrustConfig defines the trust configuration for egress. + TrustConfig trust_config = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // DNS peering config for the user VPC network. + message DnsPeeringConfig { + // Required. Domain names for which DNS queries should be forwarded to the + // target network. + repeated string domains = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. Target project ID to which DNS queries should be forwarded + // to. This can be the same project that contains the AgentGateway or a + // different project. + string target_project = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Target network in 'target project' to which DNS queries + // should be forwarded to. Must be in format of + // `projects/{project}/global/networks/{network}`. + string target_network = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "compute.googleapis.com/Network" + } + ]; + } + + // Optional. Optional PSC-Interface network attachment for connectivity to + // your private VPCs network. + Egress egress = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional DNS peering configuration for connectivity to your + // private VPC network. + DnsPeeringConfig dns_peering_config = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // AgentGatewayOutputCard contains informational output-only fields + message AgentGatewayOutputCard { + // Output only. mTLS Endpoint associated with this AgentGateway + string mtls_endpoint = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Root Certificates for Agents to validate this AgentGateway + repeated string root_certificates = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Service Account used by Service Extensions to operate. + string service_extensions_service_account = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Enums of all supported protocols + enum Protocol { + // Unspecified protocol. + PROTOCOL_UNSPECIFIED = 0; + + // Message Control Plane protocol. + MCP = 1; + } + + // Deployment mode of the network proxy. Exactly one of the fields in this + // `oneof` must be set. + oneof deployment_mode { + // Optional. Proxy is orchestrated and managed by GoogleCloud in a tenant + // project. + GoogleManaged google_managed = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Attach to existing Application Load Balancers or Secure Web + // Proxies. + SelfManaged self_managed = 9 [(google.api.field_behavior) = OPTIONAL]; + } + + // Identifier. Name of the AgentGateway resource. It matches pattern + // `projects/*/locations/*/agentGateways/`. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The timestamp when the resource was created. + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp when the resource was updated. + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Set of label tags associated with the AgentGateway resource. + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A free-text description of the resource. Max length 1024 + // characters. + string description = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Etag of the resource. + // If this is provided, it must match the server's etag. If the provided etag + // does not match the server's etag, the request will fail with a 409 ABORTED + // error. + string etag = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Deprecated. + repeated Protocol protocols = 12 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. A list of Agent registries containing the agents, MCP servers and + // tools governed by the Agent Gateway. Note: Currently limited to + // project-scoped registries Must be of format + // `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + repeated string registries = 13 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Network configuration for the AgentGateway. + NetworkConfig network_config = 10 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. Field for populated AgentGateway card. + AgentGatewayOutputCard agent_gateway_card = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request used with the ListAgentGateways method. +message ListAgentGatewaysRequest { + // Required. The project and location from which the AgentGateways should be + // listed, specified in the format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networkservices.googleapis.com/AgentGateway" + } + ]; + + // Optional. Maximum number of AgentGateways to return per call. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The value returned by the last `ListAgentGatewaysResponse` + // Indicates that this is a continuation of a prior `ListAgentGateways` + // call, and that the system should return the next page of data. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, allow partial responses for multi-regional Aggregated + // List requests. Otherwise if one of the locations is down or unreachable, + // the Aggregated List request will fail. + bool return_partial_success = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response returned by the ListAgentGateways method. +message ListAgentGatewaysResponse { + // List of AgentGateway resources. + repeated AgentGateway agent_gateways = 1; + + // If there might be more results than those appearing in this response, then + // `next_page_token` is included. To get the next set of results, call this + // method again using the value of `next_page_token` as `page_token`. + string next_page_token = 2; + + // Unreachable resources. Populated when the request attempts to list all + // resources across all supported locations, while some locations are + // temporarily unavailable. + repeated string unreachable = 3; +} + +// Request used by the GetAgentGateway method. +message GetAgentGatewayRequest { + // Required. A name of the AgentGateway to get. Must be in the format + // `projects/*/locations/*/agentGateways/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkservices.googleapis.com/AgentGateway" + } + ]; +} + +// Request used by the CreateAgentGateway method. +message CreateAgentGatewayRequest { + // Required. The parent resource of the AgentGateway. Must be in the + // format `projects/*/locations/*`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "networkservices.googleapis.com/AgentGateway" + } + ]; + + // Required. Short name of the AgentGateway resource to be created. + string agent_gateway_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. AgentGateway resource to be created. + AgentGateway agent_gateway = 3 [(google.api.field_behavior) = REQUIRED]; +} + +// Request used by the UpdateAgentGateway method. +message UpdateAgentGatewayRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // AgentGateway resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields will be overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Updated AgentGateway resource. + AgentGateway agent_gateway = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request used by the DeleteAgentGateway method. +message DeleteAgentGatewayRequest { + // Required. A name of the AgentGateway to delete. Must be in the format + // `projects/*/locations/*/agentGateways/*`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "networkservices.googleapis.com/AgentGateway" + } + ]; + + // Optional. The etag of the AgentGateway to delete. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/common.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/common.proto index cbc5a9d41f8c..27df8fa32e4b 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/common.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/common.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -36,10 +36,10 @@ enum EnvoyHeaders { NONE = 1; // Envoy will insert default internal debug headers into upstream requests: - // x-envoy-attempt-count - // x-envoy-is-timeout-retry - // x-envoy-expected-rq-timeout-ms - // x-envoy-original-path + // x-envoy-attempt-count, + // x-envoy-is-timeout-retry, + // x-envoy-expected-rq-timeout-ms, + // x-envoy-original-path, // x-envoy-upstream-stream-duration-ms DEBUG_HEADERS = 2; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/dep.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/dep.proto index 1ec1ee251c01..1f23c6f4521e 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/dep.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/dep.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -342,6 +342,35 @@ enum WireFormat { // `supported_events` for a client request are sent as part of the same // gRPC stream. EXT_PROC_GRPC = 1; + + // The extension service uses Envoy's `ext_authz` gRPC API. The backend + // service for the extension must use HTTP2 or H2C as the protocol. + // `EXT_AUTHZ_GRPC` is only supported for regional `AuthzExtension` resources. + EXT_AUTHZ_GRPC = 3; +} + +// The send mode for body processing. +enum BodySendMode { + // Default value. Do not use. + BODY_SEND_MODE_UNSPECIFIED = 0; + + // Calls to the extension are executed in the streamed mode. Subsequent + // chunks will be sent only after the previous chunks have been processed. + // + // The content of the body chunks is sent one way to the extension. Extension + // may send modified chunks back. + // + // This is the default value if the processing mode is not specified. + BODY_SEND_MODE_STREAMED = 1; + + // Calls are executed in the full duplex mode. Subsequent chunks will be sent + // for processing without waiting for the response for the previous chunk or + // for the response for `REQUEST_HEADERS` event. + // + // Extension can freely modify or chunk the body contents. If the extension + // doesn't send the body contents back, the next extension in the chain or the + // upstream will receive an empty body. + BODY_SEND_MODE_FULL_DUPLEX_STREAMED = 2; } // A single extension chain wrapper that contains the match conditions and @@ -359,13 +388,15 @@ message ExtensionChain { // A single extension in the chain to execute for the matching request. message Extension { - // Required. The name for this extension. + // Optional. The name for this extension. // The name is logged as part of the HTTP request logs. // The name must conform with RFC-1034, is restricted to lower-cased // letters, numbers and hyphens, and can have a maximum length of 63 // characters. Additionally, the first character must be a letter and the // last a letter or a number. - string name = 1 [(google.api.field_behavior) = REQUIRED]; + // + // This field is required except for AuthzExtension. + string name = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. The `:authority` header in the gRPC request sent from Envoy // to the extension service. @@ -409,6 +440,10 @@ message ExtensionChain { // // For the `LbEdgeExtension` resource, this field is required and must only // contain `REQUEST_HEADERS` event. + // + // For the `AuthzExtension` resource, this field is optional. + // `REQUEST_HEADERS` is the only supported event. If unspecified, + // `REQUEST_HEADERS` event is assumed as supported. repeated EventType supported_events = 4 [(google.api.field_behavior) = OPTIONAL]; @@ -443,11 +478,26 @@ message ExtensionChain { repeated string forward_headers = 7 [(google.api.field_behavior) = OPTIONAL]; + // Optional. List of the Envoy attributes to forward to the extension + // server. The attributes provided here are included as part of the + // `ProcessingRequest.attributes` field (of type + // `map`), where the keys are the attribute + // names. Refer to the + // [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes) + // for the names of attributes that can be forwarded. If omitted, no + // attributes are sent. Each element is a string indicating the + // attribute name. + repeated string forward_attributes = 8 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. The metadata provided here is included as part of the // `metadata_context` (of type `google.protobuf.Struct`) in the // `ProcessingRequest` message sent to the extension server. // - // The metadata is available under the namespace + // For `AuthzExtension` resources, the metadata is available under the + // namespace `com.google.authz_extension.`. + // For other types of extensions, the metadata is available under the + // namespace // `com.google....`. // For example: // `com.google.lb_traffic_extension.lbtrafficextension1.chain1.ext1`. @@ -473,6 +523,47 @@ message ExtensionChain { // * All values must be strings. google.protobuf.Struct metadata = 9 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configures the send mode for request body processing. + // + // The field can only be set if `supported_events` includes `REQUEST_BODY`. + // If `supported_events` includes `REQUEST_BODY`, + // but `request_body_send_mode` is unset, the default value `STREAMED` is + // used. + // + // When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events` + // must include both `REQUEST_BODY` and `REQUEST_TRAILERS`. + // + // This field can be set only for `LbTrafficExtension` and + // `LbRouteExtension` resources, and only when the `service` field of the + // extension points to a `BackendService`. Only `FULL_DUPLEX_STREAMED` mode + // is supported for `LbRouteExtension` resources. + BodySendMode request_body_send_mode = 14 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configures the send mode for response processing. If + // unspecified, the default value `STREAMED` is used. + // + // The field can only be set if `supported_events` includes `RESPONSE_BODY`. + // If `supported_events` includes `RESPONSE_BODY`, but + // `response_body_send_mode` is unset, the default value `STREAMED` is used. + // + // When this field is set to `FULL_DUPLEX_STREAMED`, `supported_events` + // must include both `RESPONSE_BODY` and `RESPONSE_TRAILERS`. + // + // This field can be set only for `LbTrafficExtension` resources, and only + // when the `service` field of the extension points to a `BackendService`. + BodySendMode response_body_send_mode = 15 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When set to `true`, the calls to the extension backend are + // performed asynchronously, without pausing the processing of the ongoing + // request. In this mode, only `STREAMED` (default) body processing is + // supported. Responses, if any, are ignored. + // + // Supported by regional `LbTrafficExtension` and `LbRouteExtension` + // resources. + bool observability_mode = 16 [(google.api.field_behavior) = OPTIONAL]; } // Required. The name for this extension chain. @@ -1208,17 +1299,19 @@ message AuthzExtension { // resources. map labels = 5 [(google.api.field_behavior) = OPTIONAL]; - // Required. All backend services and forwarding rules referenced by this + // Optional. All backend services and forwarding rules referenced by this // extension must share the same load balancing scheme. Supported values: - // `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. For more information, refer to + // `INTERNAL_MANAGED`, `EXTERNAL_MANAGED`. Can be omitted for AuthzExtensions + // that do not reference a backend service. For more information, refer to // [Backend services // overview](https://cloud.google.com/load-balancing/docs/backend-service). LoadBalancingScheme load_balancing_scheme = 6 - [(google.api.field_behavior) = REQUIRED]; + [(google.api.field_behavior) = OPTIONAL]; - // Required. The `:authority` header in the gRPC request sent from Envoy - // to the extension service. - string authority = 7 [(google.api.field_behavior) = REQUIRED]; + // Optional. The `:authority` header in the gRPC request sent from Envoy to + // the extension service. It is required when the `service` field points to a + // backend service or a wasm plugin. + string authority = 7 [(google.api.field_behavior) = OPTIONAL]; // Required. The reference to the service that runs the extension. // @@ -1268,8 +1361,22 @@ message AuthzExtension { // Each element is a string indicating the header name. repeated string forward_headers = 12 [(google.api.field_behavior) = OPTIONAL]; + // Optional. List of the Envoy attributes to forward to the extension server. + // The attributes provided here are included as part of the + // `ProcessingRequest.attributes` field (of type + // `map`), where the keys are the attribute + // names. Refer to the + // [documentation](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference#attributes) + // for the names of attributes that can be forwarded. If omitted, no + // attributes are sent. Each element is a string indicating the + // attribute name. + repeated string forward_attributes = 13 + [(google.api.field_behavior) = OPTIONAL]; + // Optional. The format of communication supported by the callout extension. - // If not specified, the default value `EXT_PROC_GRPC` is used. + // This field is supported only for regional `AuthzExtension` resources. If + // not specified, the default value `EXT_PROC_GRPC` is used. Global + // `AuthzExtension` resources use the `EXT_PROC_GRPC` wire format. WireFormat wire_format = 14 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/endpoint_policy.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/endpoint_policy.proto index 411a4bc3cb63..7907b02f3381 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/endpoint_policy.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/endpoint_policy.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -65,7 +65,7 @@ message EndpointPolicy { } // Identifier. Name of the EndpointPolicy resource. It matches pattern - // `projects/{project}/locations/global/endpointPolicies/{endpoint_policy}`. + // `projects/{project}/locations/*/endpointPolicies/{endpoint_policy}`. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. The timestamp when the resource was created. @@ -138,7 +138,7 @@ message EndpointPolicy { // Request used with the ListEndpointPolicies method. message ListEndpointPoliciesRequest { // Required. The project and location from which the EndpointPolicies should - // be listed, specified in the format `projects/*/locations/global`. + // be listed, specified in the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -181,7 +181,7 @@ message ListEndpointPoliciesResponse { // Request used with the GetEndpointPolicy method. message GetEndpointPolicyRequest { // Required. A name of the EndpointPolicy to get. Must be in the format - // `projects/*/locations/global/endpointPolicies/*`. + // `projects/*/locations/*/endpointPolicies/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -193,7 +193,7 @@ message GetEndpointPolicyRequest { // Request used with the CreateEndpointPolicy method. message CreateEndpointPolicyRequest { // Required. The parent resource of the EndpointPolicy. Must be in the - // format `projects/*/locations/global`. + // format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -226,7 +226,7 @@ message UpdateEndpointPolicyRequest { // Request used with the DeleteEndpointPolicy method. message DeleteEndpointPolicyRequest { // Required. A name of the EndpointPolicy to delete. Must be in the format - // `projects/*/locations/global/endpointPolicies/*`. + // `projects/*/locations/*/endpointPolicies/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/extensibility.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/extensibility.proto index 42fb82f24b53..e94cd57524e6 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/extensibility.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/extensibility.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -64,10 +64,23 @@ message WasmPlugin { // URI of the plugin configuration stored in the Artifact Registry. // The configuration is provided to the plugin at runtime through - // the `ON_CONFIGURE` callback. The container image must - // contain only a single file with the name - // `plugin.config`. When a new `WasmPluginVersion` - // resource is created, the digest of the container image is saved in the + // the `ON_CONFIGURE` callback. + // + // The URI can refer to one of the following repository formats: + // + // * Container images: the `plugin_config_uri` must point to a container + // that contains a single file with the name `plugin.config`. + // When a new `WasmPluginVersion` resource is created, the digest of the + // image is saved in the `plugin_config_digest` field. + // When pulling a container image from Artifact Registry, the digest + // value is used instead of an image tag. + // + // * Generic artifacts: the `plugin_config_uri` must be in this format: + // `projects/{project}/locations/{location}/repositories/{repository}/ + // genericArtifacts/{package}:{version}`. + // The specified package and version must contain a file with the name + // `plugin.config`. When a new `WasmPluginVersion` resource is + // created, the checksum of the contents of the file is saved in the // `plugin_config_digest` field. string plugin_config_uri = 10; } @@ -87,23 +100,38 @@ message WasmPlugin { // resource. map labels = 4 [(google.api.field_behavior) = OPTIONAL]; - // Optional. URI of the container image containing the Wasm module, stored - // in the Artifact Registry. The container image must contain only a single - // file with the name `plugin.wasm`. When a new `WasmPluginVersion` resource - // is created, the URI gets resolved to an image digest and saved in the - // `image_digest` field. + // Optional. URI of the image containing the Wasm module, stored in + // Artifact Registry. + // + // The URI can refer to one of the following repository formats: + // + // * Container images: the `image_uri` must point to a container that + // contains a single file with the name `plugin.wasm`. + // When a new `WasmPluginVersion` resource is created, the digest of the + // image is saved in the `image_digest` field. + // When pulling a container image from Artifact Registry, the digest value + // is used instead of an image tag. + // + // * Generic artifacts: the `image_uri` must be in this format: + // `projects/{project}/locations/{location}/repositories/{repository}/ + // genericArtifacts/{package}:{version}`. + // The specified package and version must contain a file with the name + // `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the + // checksum of the contents of the file is saved in the `image_digest` + // field. string image_uri = 5 [(google.api.field_behavior) = OPTIONAL]; - // Output only. The resolved digest for the image specified in `image`. - // The digest is resolved during the creation of a - // `WasmPluginVersion` resource. - // This field holds the digest value regardless of whether a tag or - // digest was originally specified in the `image` field. + // Output only. This field holds the digest (usually checksum) value for the + // plugin image. The value is calculated based on the `image_uri` field. If + // the `image_uri` field refers to a container image, the digest value is + // obtained from the container image. If the `image_uri` field refers to + // a generic artifact, the digest value is calculated based on the + // contents of the file. string image_digest = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. This field holds the digest (usually checksum) value for the // plugin configuration. The value is calculated based on the contents of - // the `plugin_config_data` field or the container image defined by the + // `plugin_config_data` field or the image defined by the // `plugin_config_uri` field. string plugin_config_digest = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -155,9 +183,9 @@ message WasmPlugin { // This field can be specified only if logging is enabled for this plugin. float sample_rate = 2 [(google.api.field_behavior) = NON_EMPTY_DEFAULT]; - // Non-empty default. Specificies the lowest level of the plugin logs that - // are exported to Cloud Logging. This setting relates to the logs generated - // by using logging statements in your Wasm code. + // Non-empty default. Specifies the lowest level of the plugin logs that are + // exported to Cloud Logging. This setting relates to the logs generated by + // using logging statements in your Wasm code. // // This field is can be set only if logging is enabled for the plugin. // @@ -251,10 +279,24 @@ message WasmPluginVersion { // URI of the plugin configuration stored in the Artifact Registry. // The configuration is provided to the plugin at runtime through - // the `ON_CONFIGURE` callback. The container image must contain - // only a single file with the name `plugin.config`. When a - // new `WasmPluginVersion` resource is created, the digest of the - // container image is saved in the `plugin_config_digest` field. + // the `ON_CONFIGURE` callback. + // + // The URI can refer to one of the following repository formats: + // + // * Container images: the `plugin_config_uri` must point to a container + // that contains a single file with the name `plugin.config`. + // When a new `WasmPluginVersion` resource is created, the digest of the + // image is saved in the `plugin_config_digest` field. + // When pulling a container image from Artifact Registry, the digest + // value is used instead of an image tag. + // + // * Generic artifacts: the `plugin_config_uri` must be in this format: + // `projects/{project}/locations/{location}/repositories/{repository}/ + // genericArtifacts/{package}:{version}`. + // The specified package and version must contain a file with the name + // `plugin.config`. When a new `WasmPluginVersion` resource is + // created, the checksum of the contents of the file is saved in the + // `plugin_config_digest` field. string plugin_config_uri = 13; } @@ -278,24 +320,39 @@ message WasmPluginVersion { // resource. map labels = 6 [(google.api.field_behavior) = OPTIONAL]; - // Optional. URI of the container image containing the plugin, stored in the + // Optional. URI of the image containing the Wasm module, stored in // Artifact Registry. - // When a new `WasmPluginVersion` resource is created, the digest - // of the container image is saved in the `image_digest` field. - // When downloading an image, the digest value is used instead of an - // image tag. + // + // The URI can refer to one of the following repository formats: + // + // * Container images: the `image_uri` must point to a container that + // contains a single file with the name `plugin.wasm`. + // When a new `WasmPluginVersion` resource is created, the digest of the + // image is saved in the `image_digest` field. + // When pulling a container image from Artifact Registry, the digest value + // is used instead of an image tag. + // + // * Generic artifacts: the `image_uri` must be in this format: + // `projects/{project}/locations/{location}/repositories/{repository}/ + // genericArtifacts/{package}:{version}`. + // The specified package and version must contain a file with the name + // `plugin.wasm`. When a new `WasmPluginVersion` resource is created, the + // checksum of the contents of the file is saved in the `image_digest` + // field. string image_uri = 8 [(google.api.field_behavior) = OPTIONAL]; - // Output only. The resolved digest for the image specified in the `image` - // field. The digest is resolved during the creation of `WasmPluginVersion` - // resource. This field holds the digest value, regardless of whether a tag or - // digest was originally specified in the `image` field. + // Output only. This field holds the digest (usually checksum) value for the + // plugin image. The value is calculated based on the `image_uri` field. If + // the `image_uri` field refers to a container image, the digest value is + // obtained from the container image. If the `image_uri` field refers to + // a generic artifact, the digest value is calculated based on the + // contents of the file. string image_digest = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. This field holds the digest (usually checksum) value for the // plugin configuration. The value is calculated based on the contents of - // `plugin_config_data` or the container image defined by - // the `plugin_config_uri` field. + // `plugin_config_data` field or the image defined by the + // `plugin_config_uri` field. string plugin_config_digest = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/gateway.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/gateway.proto index b8be0b522112..a2a94615c9cc 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/gateway.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/gateway.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -29,9 +29,6 @@ option java_outer_classname = "GatewayProto"; option java_package = "com.google.cloud.networkservices.v1"; option php_namespace = "Google\\Cloud\\NetworkServices\\V1"; option ruby_package = "Google::Cloud::NetworkServices::V1"; - -// Resource definitions uncouple the proto from the external API for client -// generation purposes. option (google.api.resource_definition) = { type: "networksecurity.googleapis.com/GatewaySecurityPolicy" pattern: "projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}" @@ -150,11 +147,16 @@ message Gateway { // Required. One or more port numbers (1-65535), on which the Gateway will // receive traffic. The proxy binds to the specified ports. - // Gateways of type 'SECURE_WEB_GATEWAY' are limited to 1 port. + // Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports. // Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and // support multiple ports. repeated int32 ports = 11 [(google.api.field_behavior) = REQUIRED]; + // Optional. If true, the Gateway will listen on all ports. This is mutually + // exclusive with the `ports` field. This field only applies to gateways of + // type 'SECURE_WEB_GATEWAY'. + bool all_ports = 34 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Scope determines how configuration across multiple Gateway // instances are merged. The configuration for multiple Gateway instances with // the same scope will be merged as presented as a single configuration to the @@ -235,6 +237,11 @@ message Gateway { // This field is configurable only for gateways of type SECURE_WEB_GATEWAY. // This field is required for gateways of type SECURE_WEB_GATEWAY. RoutingMode routing_mode = 32 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, the gateway will allow traffic from clients outside of + // the region where the gateway is located. + // This field is configurable only for gateways of type SECURE_WEB_GATEWAY. + bool allow_global_access = 33 [(google.api.field_behavior) = OPTIONAL]; } // Request used with the ListGateways method. diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/grpc_route.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/grpc_route.proto index da02e3663627..f88909554206 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/grpc_route.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/grpc_route.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -29,9 +29,6 @@ option java_outer_classname = "GrpcRouteProto"; option java_package = "com.google.cloud.networkservices.v1"; option php_namespace = "Google\\Cloud\\NetworkServices\\V1"; option ruby_package = "Google::Cloud::NetworkServices::V1"; - -// Resource definitions uncouple the proto from the external API for client -// generation purposes. option (google.api.resource_definition) = { type: "compute.googleapis.com/BackendService" pattern: "projects/{project}/locations/{location}/backendServices/{backend_service}" @@ -289,7 +286,7 @@ message GrpcRoute { } // Identifier. Name of the GrpcRoute resource. It matches pattern - // `projects/*/locations/global/grpcRoutes/` + // `projects/*/locations/*/grpcRoutes/` string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Server-defined URL of this resource @@ -347,7 +344,7 @@ message GrpcRoute { // one of the routing rules to route the requests served by the mesh. // // Each mesh reference should match the pattern: - // `projects/*/locations/global/meshes/` + // `projects/*/locations/*/meshes/` repeated string meshes = 9 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { @@ -360,7 +357,7 @@ message GrpcRoute { // gateway. // // Each gateway reference should match the pattern: - // `projects/*/locations/global/gateways/` + // `projects/*/locations/*/gateways/` repeated string gateways = 10 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { @@ -379,7 +376,7 @@ message GrpcRoute { // Request used with the ListGrpcRoutes method. message ListGrpcRoutesRequest { // Required. The project and location from which the GrpcRoutes should be - // listed, specified in the format `projects/*/locations/global`. + // listed, specified in the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -421,7 +418,7 @@ message ListGrpcRoutesResponse { // Request used by the GetGrpcRoute method. message GetGrpcRouteRequest { // Required. A name of the GrpcRoute to get. Must be in the format - // `projects/*/locations/global/grpcRoutes/*`. + // `projects/*/locations/*/grpcRoutes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -433,7 +430,7 @@ message GetGrpcRouteRequest { // Request used by the CreateGrpcRoute method. message CreateGrpcRouteRequest { // Required. The parent resource of the GrpcRoute. Must be in the - // format `projects/*/locations/global`. + // format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -465,7 +462,7 @@ message UpdateGrpcRouteRequest { // Request used by the DeleteGrpcRoute method. message DeleteGrpcRouteRequest { // Required. A name of the GrpcRoute to delete. Must be in the format - // `projects/*/locations/global/grpcRoutes/*`. + // `projects/*/locations/*/grpcRoutes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/http_route.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/http_route.proto index e2b71cb45b12..888fec4d200a 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/http_route.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/http_route.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.networkservices.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/field_mask.proto"; @@ -530,7 +531,7 @@ message HttpRoute { } // Identifier. Name of the HttpRoute resource. It matches pattern - // `projects/*/locations/global/httpRoutes/http_route_name>`. + // `projects/*/locations/*/httpRoutes/http_route_name>`. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Server-defined URL of this resource @@ -578,7 +579,7 @@ message HttpRoute { // one of the routing rules to route the requests served by the mesh. // // Each mesh reference should match the pattern: - // `projects/*/locations/global/meshes/` + // `projects/*/locations/*/meshes/` // // The attached Mesh should be of a type SIDECAR repeated string meshes = 8 [ @@ -593,7 +594,7 @@ message HttpRoute { // gateway. // // Each gateway reference should match the pattern: - // `projects/*/locations/global/gateways/` + // `projects/*/locations/*/gateways/` repeated string gateways = 9 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { @@ -613,7 +614,7 @@ message HttpRoute { // Request used with the ListHttpRoutes method. message ListHttpRoutesRequest { // Required. The project and location from which the HttpRoutes should be - // listed, specified in the format `projects/*/locations/global`. + // listed, specified in the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -633,6 +634,9 @@ message ListHttpRoutesRequest { // List requests. Otherwise if one of the locations is down or unreachable, // the Aggregated List request will fail. bool return_partial_success = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter expression to restrict the list. + string filter = 5 [(google.api.field_behavior) = OPTIONAL]; } // Response returned by the ListHttpRoutes method. @@ -655,7 +659,7 @@ message ListHttpRoutesResponse { // Request used by the GetHttpRoute method. message GetHttpRouteRequest { // Required. A name of the HttpRoute to get. Must be in the format - // `projects/*/locations/global/httpRoutes/*`. + // `projects/*/locations/*/httpRoutes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -667,7 +671,7 @@ message GetHttpRouteRequest { // Request used by the HttpRoute method. message CreateHttpRouteRequest { // Required. The parent resource of the HttpRoute. Must be in the - // format `projects/*/locations/global`. + // format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -680,6 +684,12 @@ message CreateHttpRouteRequest { // Required. HttpRoute resource to be created. HttpRoute http_route = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Idempotent request UUID. + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; } // Request used by the UpdateHttpRoute method. @@ -699,7 +709,7 @@ message UpdateHttpRouteRequest { // Request used by the DeleteHttpRoute method. message DeleteHttpRouteRequest { // Required. A name of the HttpRoute to delete. Must be in the format - // `projects/*/locations/global/httpRoutes/*`. + // `projects/*/locations/*/httpRoutes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/mesh.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/mesh.proto index 421c49d7c826..b7df585568cc 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/mesh.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/mesh.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -41,10 +41,12 @@ message Mesh { option (google.api.resource) = { type: "networkservices.googleapis.com/Mesh" pattern: "projects/{project}/locations/{location}/meshes/{mesh}" + plural: "meshes" + singular: "mesh" }; // Identifier. Name of the Mesh resource. It matches pattern - // `projects/*/locations/global/meshes/`. + // `projects/*/locations/*/meshes/`. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Server-defined URL of this resource @@ -83,7 +85,7 @@ message Mesh { // Request used with the ListMeshes method. message ListMeshesRequest { // Required. The project and location from which the Meshes should be - // listed, specified in the format `projects/*/locations/global`. + // listed, specified in the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -124,7 +126,7 @@ message ListMeshesResponse { // Request used by the GetMesh method. message GetMeshRequest { // Required. A name of the Mesh to get. Must be in the format - // `projects/*/locations/global/meshes/*`. + // `projects/*/locations/*/meshes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -136,7 +138,7 @@ message GetMeshRequest { // Request used by the CreateMesh method. message CreateMeshRequest { // Required. The parent resource of the Mesh. Must be in the - // format `projects/*/locations/global`. + // format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -168,7 +170,7 @@ message UpdateMeshRequest { // Request used by the DeleteMesh method. message DeleteMeshRequest { // Required. A name of the Mesh to delete. Must be in the format - // `projects/*/locations/global/meshes/*`. + // `projects/*/locations/*/meshes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/network_services.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/network_services.proto index 16e08a4d2068..6aba43a35776 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/network_services.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/network_services.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,6 +18,7 @@ package google.cloud.networkservices.v1; import "google/api/annotations.proto"; import "google/api/client.proto"; +import "google/cloud/networkservices/v1/agent_gateway.proto"; import "google/cloud/networkservices/v1/common.proto"; import "google/cloud/networkservices/v1/endpoint_policy.proto"; import "google/cloud/networkservices/v1/extensibility.proto"; @@ -704,4 +705,63 @@ service NetworkServices { }; option (google.api.method_signature) = "parent"; } + + // Lists AgentGateways in a given project and location. + rpc ListAgentGateways(ListAgentGatewaysRequest) + returns (ListAgentGatewaysResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/agentGateways" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single AgentGateway. + rpc GetAgentGateway(GetAgentGatewayRequest) returns (AgentGateway) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/agentGateways/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new AgentGateway in a given project and location. + rpc CreateAgentGateway(CreateAgentGatewayRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/agentGateways" + body: "agent_gateway" + }; + option (google.api.method_signature) = + "parent,agent_gateway,agent_gateway_id"; + option (google.longrunning.operation_info) = { + response_type: "AgentGateway" + metadata_type: "google.cloud.networkservices.v1.OperationMetadata" + }; + } + + // Updates the parameters of a single AgentGateway. + rpc UpdateAgentGateway(UpdateAgentGatewayRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{agent_gateway.name=projects/*/locations/*/agentGateways/*}" + body: "agent_gateway" + }; + option (google.api.method_signature) = "agent_gateway,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "AgentGateway" + metadata_type: "google.cloud.networkservices.v1.OperationMetadata" + }; + } + + // Deletes a single AgentGateway. + rpc DeleteAgentGateway(DeleteAgentGatewayRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/agentGateways/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "google.cloud.networkservices.v1.OperationMetadata" + }; + } } diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_binding.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_binding.proto index 654e1227e280..0d80fd958c4e 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_binding.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_binding.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.networkservices.v1; import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; import "google/api/resource.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; @@ -28,7 +29,6 @@ option java_outer_classname = "ServiceBindingProto"; option java_package = "com.google.cloud.networkservices.v1"; option php_namespace = "Google\\Cloud\\NetworkServices\\V1"; option ruby_package = "Google::Cloud::NetworkServices::V1"; - option (google.api.resource_definition) = { type: "servicedirectory.googleapis.com/Service" pattern: "projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}" diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_lb_policy.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_lb_policy.proto index 9dbfab5f1e14..2a064e13c5e9 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_lb_policy.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/service_lb_policy.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/tcp_route.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/tcp_route.proto index d18a91617dea..26db57ff4d35 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/tcp_route.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/tcp_route.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -119,7 +119,7 @@ message TcpRoute { } // Identifier. Name of the TcpRoute resource. It matches pattern - // `projects/*/locations/global/tcpRoutes/tcp_route_name>`. + // `projects/*/locations/*/tcpRoutes/tcp_route_name>`. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Server-defined URL of this resource @@ -146,7 +146,7 @@ message TcpRoute { // one of the routing rules to route the requests served by the mesh. // // Each mesh reference should match the pattern: - // `projects/*/locations/global/meshes/` + // `projects/*/locations/*/meshes/` // // The attached Mesh should be of a type SIDECAR repeated string meshes = 8 [ @@ -160,7 +160,7 @@ message TcpRoute { // as one of the routing rules to route the requests served by the gateway. // // Each gateway reference should match the pattern: - // `projects/*/locations/global/gateways/` + // `projects/*/locations/*/gateways/` repeated string gateways = 9 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { @@ -175,7 +175,7 @@ message TcpRoute { // Request used with the ListTcpRoutes method. message ListTcpRoutesRequest { // Required. The project and location from which the TcpRoutes should be - // listed, specified in the format `projects/*/locations/global`. + // listed, specified in the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -217,7 +217,7 @@ message ListTcpRoutesResponse { // Request used by the GetTcpRoute method. message GetTcpRouteRequest { // Required. A name of the TcpRoute to get. Must be in the format - // `projects/*/locations/global/tcpRoutes/*`. + // `projects/*/locations/*/tcpRoutes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -229,7 +229,7 @@ message GetTcpRouteRequest { // Request used by the TcpRoute method. message CreateTcpRouteRequest { // Required. The parent resource of the TcpRoute. Must be in the - // format `projects/*/locations/global`. + // format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -261,7 +261,7 @@ message UpdateTcpRouteRequest { // Request used by the DeleteTcpRoute method. message DeleteTcpRouteRequest { // Required. A name of the TcpRoute to delete. Must be in the format - // `projects/*/locations/global/tcpRoutes/*`. + // `projects/*/locations/*/tcpRoutes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/tls_route.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/tls_route.proto index e025db82d2c9..70a607183161 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/tls_route.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/tls_route.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -29,6 +29,10 @@ option java_outer_classname = "TlsRouteProto"; option java_package = "com.google.cloud.networkservices.v1"; option php_namespace = "Google\\Cloud\\NetworkServices\\V1"; option ruby_package = "Google::Cloud::NetworkServices::V1"; +option (google.api.resource_definition) = { + type: "compute.googleapis.com/TargetTcpProxy" + pattern: "projects/{project}/locations/{location}/targetTcpProxies/{target_tcp_proxy}" +}; // TlsRoute defines how traffic should be routed based on SNI and other matching // L3 attributes. @@ -104,7 +108,7 @@ message TlsRoute { } // Identifier. Name of the TlsRoute resource. It matches pattern - // `projects/*/locations/global/tlsRoutes/tls_route_name>`. + // `projects/*/locations/*/tlsRoutes/tls_route_name>`. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Server-defined URL of this resource @@ -131,7 +135,7 @@ message TlsRoute { // one of the routing rules to route the requests served by the mesh. // // Each mesh reference should match the pattern: - // `projects/*/locations/global/meshes/` + // `projects/*/locations/*/meshes/` // // The attached Mesh should be of a type SIDECAR repeated string meshes = 6 [ @@ -145,7 +149,7 @@ message TlsRoute { // as one of the routing rules to route the requests served by the gateway. // // Each gateway reference should match the pattern: - // `projects/*/locations/global/gateways/` + // `projects/*/locations/*/gateways/` repeated string gateways = 7 [ (google.api.field_behavior) = OPTIONAL, (google.api.resource_reference) = { @@ -153,6 +157,19 @@ message TlsRoute { } ]; + // Optional. TargetProxies defines a list of TargetTcpProxies this TlsRoute is + // attached to, as one of the routing rules to route the requests served by + // the TargetTcpProxy. + // + // Each TargetTcpProxy reference should match the pattern: + // `projects/*/locations/*/targetTcpProxies/` + repeated string target_proxies = 13 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "compute.googleapis.com/TargetTcpProxy" + } + ]; + // Optional. Set of label tags associated with the TlsRoute resource. map labels = 11 [(google.api.field_behavior) = OPTIONAL]; } @@ -160,7 +177,7 @@ message TlsRoute { // Request used with the ListTlsRoutes method. message ListTlsRoutesRequest { // Required. The project and location from which the TlsRoutes should be - // listed, specified in the format `projects/*/locations/global`. + // listed, specified in the format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -202,7 +219,7 @@ message ListTlsRoutesResponse { // Request used by the GetTlsRoute method. message GetTlsRouteRequest { // Required. A name of the TlsRoute to get. Must be in the format - // `projects/*/locations/global/tlsRoutes/*`. + // `projects/*/locations/*/tlsRoutes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -214,7 +231,7 @@ message GetTlsRouteRequest { // Request used by the TlsRoute method. message CreateTlsRouteRequest { // Required. The parent resource of the TlsRoute. Must be in the - // format `projects/*/locations/global`. + // format `projects/*/locations/*`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -246,7 +263,7 @@ message UpdateTlsRouteRequest { // Request used by the DeleteTlsRoute method. message DeleteTlsRouteRequest { // Required. A name of the TlsRoute to delete. Must be in the format - // `projects/*/locations/global/tlsRoutes/*`. + // `projects/*/locations/*/tlsRoutes/*`. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/AsyncCreateAgentGateway.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/AsyncCreateAgentGateway.java new file mode 100644 index 000000000000..1f8e9e9f3efc --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/AsyncCreateAgentGateway.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_CreateAgentGateway_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.CreateAgentGatewayRequest; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.longrunning.Operation; + +public class AsyncCreateAgentGateway { + + public static void main(String[] args) throws Exception { + asyncCreateAgentGateway(); + } + + public static void asyncCreateAgentGateway() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + CreateAgentGatewayRequest request = + CreateAgentGatewayRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAgentGatewayId("agentGatewayId1729577210") + .setAgentGateway(AgentGateway.newBuilder().build()) + .build(); + ApiFuture future = + networkServicesClient.createAgentGatewayCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_CreateAgentGateway_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/AsyncCreateAgentGatewayLRO.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/AsyncCreateAgentGatewayLRO.java new file mode 100644 index 000000000000..38a4ac89ff2b --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/AsyncCreateAgentGatewayLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_CreateAgentGateway_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.CreateAgentGatewayRequest; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.cloud.networkservices.v1.OperationMetadata; + +public class AsyncCreateAgentGatewayLRO { + + public static void main(String[] args) throws Exception { + asyncCreateAgentGatewayLRO(); + } + + public static void asyncCreateAgentGatewayLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + CreateAgentGatewayRequest request = + CreateAgentGatewayRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAgentGatewayId("agentGatewayId1729577210") + .setAgentGateway(AgentGateway.newBuilder().build()) + .build(); + OperationFuture future = + networkServicesClient.createAgentGatewayOperationCallable().futureCall(request); + // Do something. + AgentGateway response = future.get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_CreateAgentGateway_LRO_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGateway.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGateway.java new file mode 100644 index 000000000000..85f80a743fcf --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGateway.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_CreateAgentGateway_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.CreateAgentGatewayRequest; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class SyncCreateAgentGateway { + + public static void main(String[] args) throws Exception { + syncCreateAgentGateway(); + } + + public static void syncCreateAgentGateway() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + CreateAgentGatewayRequest request = + CreateAgentGatewayRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAgentGatewayId("agentGatewayId1729577210") + .setAgentGateway(AgentGateway.newBuilder().build()) + .build(); + AgentGateway response = networkServicesClient.createAgentGatewayAsync(request).get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_CreateAgentGateway_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGatewayLocationnameAgentgatewayString.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGatewayLocationnameAgentgatewayString.java new file mode 100644 index 000000000000..454a60caba23 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGatewayLocationnameAgentgatewayString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_CreateAgentGateway_LocationnameAgentgatewayString_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class SyncCreateAgentGatewayLocationnameAgentgatewayString { + + public static void main(String[] args) throws Exception { + syncCreateAgentGatewayLocationnameAgentgatewayString(); + } + + public static void syncCreateAgentGatewayLocationnameAgentgatewayString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + AgentGateway response = + networkServicesClient.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_CreateAgentGateway_LocationnameAgentgatewayString_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGatewayStringAgentgatewayString.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGatewayStringAgentgatewayString.java new file mode 100644 index 000000000000..483c8b618451 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createagentgateway/SyncCreateAgentGatewayStringAgentgatewayString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_CreateAgentGateway_StringAgentgatewayString_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class SyncCreateAgentGatewayStringAgentgatewayString { + + public static void main(String[] args) throws Exception { + syncCreateAgentGatewayStringAgentgatewayString(); + } + + public static void syncCreateAgentGatewayStringAgentgatewayString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + String agentGatewayId = "agentGatewayId1729577210"; + AgentGateway response = + networkServicesClient.createAgentGatewayAsync(parent, agentGateway, agentGatewayId).get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_CreateAgentGateway_StringAgentgatewayString_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/AsyncCreateHttpRoute.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/AsyncCreateHttpRoute.java index ee16a1bff6d1..45d17d925616 100644 --- a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/AsyncCreateHttpRoute.java +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/AsyncCreateHttpRoute.java @@ -42,6 +42,7 @@ public static void asyncCreateHttpRoute() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setHttpRouteId("httpRouteId-2054835300") .setHttpRoute(HttpRoute.newBuilder().build()) + .setRequestId("requestId693933066") .build(); ApiFuture future = networkServicesClient.createHttpRouteCallable().futureCall(request); diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/AsyncCreateHttpRouteLRO.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/AsyncCreateHttpRouteLRO.java index ccf5703d0005..acecb5ee4b0a 100644 --- a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/AsyncCreateHttpRouteLRO.java +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/AsyncCreateHttpRouteLRO.java @@ -42,6 +42,7 @@ public static void asyncCreateHttpRouteLRO() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setHttpRouteId("httpRouteId-2054835300") .setHttpRoute(HttpRoute.newBuilder().build()) + .setRequestId("requestId693933066") .build(); OperationFuture future = networkServicesClient.createHttpRouteOperationCallable().futureCall(request); diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/SyncCreateHttpRoute.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/SyncCreateHttpRoute.java index 1428b490aaad..1288b5d12086 100644 --- a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/SyncCreateHttpRoute.java +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/createhttproute/SyncCreateHttpRoute.java @@ -40,6 +40,7 @@ public static void syncCreateHttpRoute() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setHttpRouteId("httpRouteId-2054835300") .setHttpRoute(HttpRoute.newBuilder().build()) + .setRequestId("requestId693933066") .build(); HttpRoute response = networkServicesClient.createHttpRouteAsync(request).get(); } diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/AsyncDeleteAgentGateway.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/AsyncDeleteAgentGateway.java new file mode 100644 index 000000000000..0ac20ad05d80 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/AsyncDeleteAgentGateway.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_DeleteAgentGateway_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkservices.v1.AgentGatewayName; +import com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteAgentGateway { + + public static void main(String[] args) throws Exception { + asyncDeleteAgentGateway(); + } + + public static void asyncDeleteAgentGateway() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + DeleteAgentGatewayRequest request = + DeleteAgentGatewayRequest.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setEtag("etag3123477") + .build(); + ApiFuture future = + networkServicesClient.deleteAgentGatewayCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_DeleteAgentGateway_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/AsyncDeleteAgentGatewayLRO.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/AsyncDeleteAgentGatewayLRO.java new file mode 100644 index 000000000000..7b67c2d4b108 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/AsyncDeleteAgentGatewayLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_DeleteAgentGateway_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkservices.v1.AgentGatewayName; +import com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.cloud.networkservices.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteAgentGatewayLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteAgentGatewayLRO(); + } + + public static void asyncDeleteAgentGatewayLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + DeleteAgentGatewayRequest request = + DeleteAgentGatewayRequest.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setEtag("etag3123477") + .build(); + OperationFuture future = + networkServicesClient.deleteAgentGatewayOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_DeleteAgentGateway_LRO_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGateway.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGateway.java new file mode 100644 index 000000000000..7b8ec96649de --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGateway.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_DeleteAgentGateway_sync] +import com.google.cloud.networkservices.v1.AgentGatewayName; +import com.google.cloud.networkservices.v1.DeleteAgentGatewayRequest; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAgentGateway { + + public static void main(String[] args) throws Exception { + syncDeleteAgentGateway(); + } + + public static void syncDeleteAgentGateway() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + DeleteAgentGatewayRequest request = + DeleteAgentGatewayRequest.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .setEtag("etag3123477") + .build(); + networkServicesClient.deleteAgentGatewayAsync(request).get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_DeleteAgentGateway_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGatewayAgentgatewayname.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGatewayAgentgatewayname.java new file mode 100644 index 000000000000..e9f599c12599 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGatewayAgentgatewayname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_DeleteAgentGateway_Agentgatewayname_sync] +import com.google.cloud.networkservices.v1.AgentGatewayName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAgentGatewayAgentgatewayname { + + public static void main(String[] args) throws Exception { + syncDeleteAgentGatewayAgentgatewayname(); + } + + public static void syncDeleteAgentGatewayAgentgatewayname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + networkServicesClient.deleteAgentGatewayAsync(name).get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_DeleteAgentGateway_Agentgatewayname_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGatewayString.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGatewayString.java new file mode 100644 index 000000000000..b10d6fc37fd0 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/deleteagentgateway/SyncDeleteAgentGatewayString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_DeleteAgentGateway_String_sync] +import com.google.cloud.networkservices.v1.AgentGatewayName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAgentGatewayString { + + public static void main(String[] args) throws Exception { + syncDeleteAgentGatewayString(); + } + + public static void syncDeleteAgentGatewayString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + String name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString(); + networkServicesClient.deleteAgentGatewayAsync(name).get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_DeleteAgentGateway_String_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/AsyncGetAgentGateway.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/AsyncGetAgentGateway.java new file mode 100644 index 000000000000..56a87cc72e06 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/AsyncGetAgentGateway.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_GetAgentGateway_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.AgentGatewayName; +import com.google.cloud.networkservices.v1.GetAgentGatewayRequest; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class AsyncGetAgentGateway { + + public static void main(String[] args) throws Exception { + asyncGetAgentGateway(); + } + + public static void asyncGetAgentGateway() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + GetAgentGatewayRequest request = + GetAgentGatewayRequest.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .build(); + ApiFuture future = + networkServicesClient.getAgentGatewayCallable().futureCall(request); + // Do something. + AgentGateway response = future.get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_GetAgentGateway_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGateway.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGateway.java new file mode 100644 index 000000000000..358e9ab0dd48 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGateway.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_GetAgentGateway_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.AgentGatewayName; +import com.google.cloud.networkservices.v1.GetAgentGatewayRequest; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class SyncGetAgentGateway { + + public static void main(String[] args) throws Exception { + syncGetAgentGateway(); + } + + public static void syncGetAgentGateway() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + GetAgentGatewayRequest request = + GetAgentGatewayRequest.newBuilder() + .setName(AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString()) + .build(); + AgentGateway response = networkServicesClient.getAgentGateway(request); + } + } +} +// [END networkservices_v1_generated_NetworkServices_GetAgentGateway_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGatewayAgentgatewayname.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGatewayAgentgatewayname.java new file mode 100644 index 000000000000..29f087160410 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGatewayAgentgatewayname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_GetAgentGateway_Agentgatewayname_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.AgentGatewayName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class SyncGetAgentGatewayAgentgatewayname { + + public static void main(String[] args) throws Exception { + syncGetAgentGatewayAgentgatewayname(); + } + + public static void syncGetAgentGatewayAgentgatewayname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + AgentGatewayName name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]"); + AgentGateway response = networkServicesClient.getAgentGateway(name); + } + } +} +// [END networkservices_v1_generated_NetworkServices_GetAgentGateway_Agentgatewayname_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGatewayString.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGatewayString.java new file mode 100644 index 000000000000..355b06ac84b6 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/getagentgateway/SyncGetAgentGatewayString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_GetAgentGateway_String_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.AgentGatewayName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class SyncGetAgentGatewayString { + + public static void main(String[] args) throws Exception { + syncGetAgentGatewayString(); + } + + public static void syncGetAgentGatewayString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + String name = AgentGatewayName.of("[PROJECT]", "[LOCATION]", "[AGENT_GATEWAY]").toString(); + AgentGateway response = networkServicesClient.getAgentGateway(name); + } + } +} +// [END networkservices_v1_generated_NetworkServices_GetAgentGateway_String_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/AsyncListAgentGateways.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/AsyncListAgentGateways.java new file mode 100644 index 000000000000..512bfbbff4fe --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/AsyncListAgentGateways.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_ListAgentGateways_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.ListAgentGatewaysRequest; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class AsyncListAgentGateways { + + public static void main(String[] args) throws Exception { + asyncListAgentGateways(); + } + + public static void asyncListAgentGateways() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + ListAgentGatewaysRequest request = + ListAgentGatewaysRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReturnPartialSuccess(true) + .build(); + ApiFuture future = + networkServicesClient.listAgentGatewaysPagedCallable().futureCall(request); + // Do something. + for (AgentGateway element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkservices_v1_generated_NetworkServices_ListAgentGateways_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/AsyncListAgentGatewaysPaged.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/AsyncListAgentGatewaysPaged.java new file mode 100644 index 000000000000..dd1f16bb39d5 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/AsyncListAgentGatewaysPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_ListAgentGateways_Paged_async] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.ListAgentGatewaysRequest; +import com.google.cloud.networkservices.v1.ListAgentGatewaysResponse; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.common.base.Strings; + +public class AsyncListAgentGatewaysPaged { + + public static void main(String[] args) throws Exception { + asyncListAgentGatewaysPaged(); + } + + public static void asyncListAgentGatewaysPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + ListAgentGatewaysRequest request = + ListAgentGatewaysRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReturnPartialSuccess(true) + .build(); + while (true) { + ListAgentGatewaysResponse response = + networkServicesClient.listAgentGatewaysCallable().call(request); + for (AgentGateway element : response.getAgentGatewaysList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END networkservices_v1_generated_NetworkServices_ListAgentGateways_Paged_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGateways.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGateways.java new file mode 100644 index 000000000000..62291d6069fc --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGateways.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_ListAgentGateways_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.ListAgentGatewaysRequest; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class SyncListAgentGateways { + + public static void main(String[] args) throws Exception { + syncListAgentGateways(); + } + + public static void syncListAgentGateways() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + ListAgentGatewaysRequest request = + ListAgentGatewaysRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setReturnPartialSuccess(true) + .build(); + for (AgentGateway element : networkServicesClient.listAgentGateways(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkservices_v1_generated_NetworkServices_ListAgentGateways_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGatewaysLocationname.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGatewaysLocationname.java new file mode 100644 index 000000000000..69da93290799 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGatewaysLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_ListAgentGateways_Locationname_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class SyncListAgentGatewaysLocationname { + + public static void main(String[] args) throws Exception { + syncListAgentGatewaysLocationname(); + } + + public static void syncListAgentGatewaysLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AgentGateway element : networkServicesClient.listAgentGateways(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkservices_v1_generated_NetworkServices_ListAgentGateways_Locationname_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGatewaysString.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGatewaysString.java new file mode 100644 index 000000000000..0df13264f467 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listagentgateways/SyncListAgentGatewaysString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_ListAgentGateways_String_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.LocationName; +import com.google.cloud.networkservices.v1.NetworkServicesClient; + +public class SyncListAgentGatewaysString { + + public static void main(String[] args) throws Exception { + syncListAgentGatewaysString(); + } + + public static void syncListAgentGatewaysString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AgentGateway element : networkServicesClient.listAgentGateways(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END networkservices_v1_generated_NetworkServices_ListAgentGateways_String_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/AsyncListHttpRoutes.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/AsyncListHttpRoutes.java index b489be8914c3..a227984b759d 100644 --- a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/AsyncListHttpRoutes.java +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/AsyncListHttpRoutes.java @@ -42,6 +42,7 @@ public static void asyncListHttpRoutes() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setReturnPartialSuccess(true) + .setFilter("filter-1274492040") .build(); ApiFuture future = networkServicesClient.listHttpRoutesPagedCallable().futureCall(request); diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/AsyncListHttpRoutesPaged.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/AsyncListHttpRoutesPaged.java index 4b86dcd81b5f..09976e4c63c6 100644 --- a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/AsyncListHttpRoutesPaged.java +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/AsyncListHttpRoutesPaged.java @@ -43,6 +43,7 @@ public static void asyncListHttpRoutesPaged() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setReturnPartialSuccess(true) + .setFilter("filter-1274492040") .build(); while (true) { ListHttpRoutesResponse response = diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/SyncListHttpRoutes.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/SyncListHttpRoutes.java index 11ab24a5debb..62f8aeeb3a84 100644 --- a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/SyncListHttpRoutes.java +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/listhttproutes/SyncListHttpRoutes.java @@ -41,6 +41,7 @@ public static void syncListHttpRoutes() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setReturnPartialSuccess(true) + .setFilter("filter-1274492040") .build(); for (HttpRoute element : networkServicesClient.listHttpRoutes(request).iterateAll()) { // doThingsWith(element); diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/AsyncUpdateAgentGateway.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/AsyncUpdateAgentGateway.java new file mode 100644 index 000000000000..af79bf8acf53 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/AsyncUpdateAgentGateway.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_UpdateAgentGateway_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAgentGateway { + + public static void main(String[] args) throws Exception { + asyncUpdateAgentGateway(); + } + + public static void asyncUpdateAgentGateway() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + UpdateAgentGatewayRequest request = + UpdateAgentGatewayRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAgentGateway(AgentGateway.newBuilder().build()) + .build(); + ApiFuture future = + networkServicesClient.updateAgentGatewayCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_UpdateAgentGateway_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/AsyncUpdateAgentGatewayLRO.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/AsyncUpdateAgentGatewayLRO.java new file mode 100644 index 000000000000..157268641c80 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/AsyncUpdateAgentGatewayLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_UpdateAgentGateway_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.cloud.networkservices.v1.OperationMetadata; +import com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAgentGatewayLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateAgentGatewayLRO(); + } + + public static void asyncUpdateAgentGatewayLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + UpdateAgentGatewayRequest request = + UpdateAgentGatewayRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAgentGateway(AgentGateway.newBuilder().build()) + .build(); + OperationFuture future = + networkServicesClient.updateAgentGatewayOperationCallable().futureCall(request); + // Do something. + AgentGateway response = future.get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_UpdateAgentGateway_LRO_async] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/SyncUpdateAgentGateway.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/SyncUpdateAgentGateway.java new file mode 100644 index 000000000000..1e69be1fe139 --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/SyncUpdateAgentGateway.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_UpdateAgentGateway_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.cloud.networkservices.v1.UpdateAgentGatewayRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAgentGateway { + + public static void main(String[] args) throws Exception { + syncUpdateAgentGateway(); + } + + public static void syncUpdateAgentGateway() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + UpdateAgentGatewayRequest request = + UpdateAgentGatewayRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAgentGateway(AgentGateway.newBuilder().build()) + .build(); + AgentGateway response = networkServicesClient.updateAgentGatewayAsync(request).get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_UpdateAgentGateway_sync] diff --git a/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/SyncUpdateAgentGatewayAgentgatewayFieldmask.java b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/SyncUpdateAgentGatewayAgentgatewayFieldmask.java new file mode 100644 index 000000000000..92785475c37b --- /dev/null +++ b/java-networkservices/samples/snippets/generated/com/google/cloud/networkservices/v1/networkservices/updateagentgateway/SyncUpdateAgentGatewayAgentgatewayFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.networkservices.v1.samples; + +// [START networkservices_v1_generated_NetworkServices_UpdateAgentGateway_AgentgatewayFieldmask_sync] +import com.google.cloud.networkservices.v1.AgentGateway; +import com.google.cloud.networkservices.v1.NetworkServicesClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAgentGatewayAgentgatewayFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAgentGatewayAgentgatewayFieldmask(); + } + + public static void syncUpdateAgentGatewayAgentgatewayFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServicesClient networkServicesClient = NetworkServicesClient.create()) { + AgentGateway agentGateway = AgentGateway.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + AgentGateway response = + networkServicesClient.updateAgentGatewayAsync(agentGateway, updateMask).get(); + } + } +} +// [END networkservices_v1_generated_NetworkServices_UpdateAgentGateway_AgentgatewayFieldmask_sync] diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java index 9a6459cb2c43..d3422c24b82b 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClient.java @@ -1387,25 +1387,6 @@ * * * - *

            GetGoldengateDeploymentVersion - *

            Gets details of a single GoldengateDeploymentVersion. - * - *

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

            - *
              - *
            • getGoldengateDeploymentVersion(GetGoldengateDeploymentVersionRequest request) - *

            - *

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

            - *
              - *
            • getGoldengateDeploymentVersion(GoldengateDeploymentVersionName name) - *

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

            - *
              - *
            • getGoldengateDeploymentVersionCallable() - *

            - * - * - * *

            ListGoldengateDeploymentVersions *

            Lists GoldengateDeploymentVersions in a given project and location. * @@ -1426,25 +1407,6 @@ * * * - *

            GetGoldengateDeploymentType - *

            Gets details of a single GoldenGateDeploymentType. - * - *

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

            - *
              - *
            • getGoldengateDeploymentType(GetGoldengateDeploymentTypeRequest request) - *

            - *

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

            - *
              - *
            • getGoldengateDeploymentType(GoldengateDeploymentTypeName name) - *

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

            - *
              - *
            • getGoldengateDeploymentTypeCallable() - *

            - * - * - * *

            ListGoldengateDeploymentTypes *

            Lists GoldenGateDeploymentTypes in a given project and location. * @@ -1465,25 +1427,6 @@ * * * - *

            GetGoldengateDeploymentEnvironment - *

            Gets details of a single GoldengateDeploymentEnvironment. - * - *

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

            - *
              - *
            • getGoldengateDeploymentEnvironment(GetGoldengateDeploymentEnvironmentRequest request) - *

            - *

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

            - *
              - *
            • getGoldengateDeploymentEnvironment(GoldengateDeploymentEnvironmentName name) - *

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

            - *
              - *
            • getGoldengateDeploymentEnvironmentCallable() - *

            - * - * - * *

            ListGoldengateDeploymentEnvironments *

            Lists GoldengateDeploymentEnvironments in a given project and location. * @@ -1504,25 +1447,6 @@ * * * - *

            GetGoldengateConnectionType - *

            Gets details of a single GoldengateConnectionType. - * - *

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

            - *
              - *
            • getGoldengateConnectionType(GetGoldengateConnectionTypeRequest request) - *

            - *

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

            - *
              - *
            • getGoldengateConnectionType(GoldengateConnectionTypeName name) - *

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

            - *
              - *
            • getGoldengateConnectionTypeCallable() - *

            - * - * - * *

            ListGoldengateConnectionTypes *

            Lists GoldengateConnectionTypes in a given project and location. * @@ -12608,137 +12532,6 @@ public final OperationFuture deleteGoldengateConnectio return stub.deleteGoldengateConnectionCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single GoldengateDeploymentVersion. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
            -   *   GoldengateDeploymentVersionName name =
            -   *       GoldengateDeploymentVersionName.of(
            -   *           "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]");
            -   *   GoldengateDeploymentVersion response =
            -   *       oracleDatabaseClient.getGoldengateDeploymentVersion(name);
            -   * }
            -   * }
            - * - * @param name Required. The name of the GoldengateDeploymentVersion to retrieve. Format: - * projects/{project}/locations/{location}/goldengateDeploymentVersions/{goldengate_deployment_version} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoldengateDeploymentVersion getGoldengateDeploymentVersion( - GoldengateDeploymentVersionName name) { - GetGoldengateDeploymentVersionRequest request = - GetGoldengateDeploymentVersionRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getGoldengateDeploymentVersion(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single GoldengateDeploymentVersion. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
            -   *   String name =
            -   *       GoldengateDeploymentVersionName.of(
            -   *               "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]")
            -   *           .toString();
            -   *   GoldengateDeploymentVersion response =
            -   *       oracleDatabaseClient.getGoldengateDeploymentVersion(name);
            -   * }
            -   * }
            - * - * @param name Required. The name of the GoldengateDeploymentVersion to retrieve. Format: - * projects/{project}/locations/{location}/goldengateDeploymentVersions/{goldengate_deployment_version} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoldengateDeploymentVersion getGoldengateDeploymentVersion(String name) { - GetGoldengateDeploymentVersionRequest request = - GetGoldengateDeploymentVersionRequest.newBuilder().setName(name).build(); - return getGoldengateDeploymentVersion(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single GoldengateDeploymentVersion. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
            -   *   GetGoldengateDeploymentVersionRequest request =
            -   *       GetGoldengateDeploymentVersionRequest.newBuilder()
            -   *           .setName(
            -   *               GoldengateDeploymentVersionName.of(
            -   *                       "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]")
            -   *                   .toString())
            -   *           .build();
            -   *   GoldengateDeploymentVersion response =
            -   *       oracleDatabaseClient.getGoldengateDeploymentVersion(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 GoldengateDeploymentVersion getGoldengateDeploymentVersion( - GetGoldengateDeploymentVersionRequest request) { - return getGoldengateDeploymentVersionCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single GoldengateDeploymentVersion. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
            -   *   GetGoldengateDeploymentVersionRequest request =
            -   *       GetGoldengateDeploymentVersionRequest.newBuilder()
            -   *           .setName(
            -   *               GoldengateDeploymentVersionName.of(
            -   *                       "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]")
            -   *                   .toString())
            -   *           .build();
            -   *   ApiFuture future =
            -   *       oracleDatabaseClient.getGoldengateDeploymentVersionCallable().futureCall(request);
            -   *   // Do something.
            -   *   GoldengateDeploymentVersion response = future.get();
            -   * }
            -   * }
            - */ - public final UnaryCallable - getGoldengateDeploymentVersionCallable() { - return stub.getGoldengateDeploymentVersionCallable(); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists GoldengateDeploymentVersions in a given project and location. @@ -12917,133 +12710,6 @@ public final ListGoldengateDeploymentVersionsPagedResponse listGoldengateDeploym return stub.listGoldengateDeploymentVersionsCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single GoldenGateDeploymentType. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
            -   *   GoldengateDeploymentTypeName name =
            -   *       GoldengateDeploymentTypeName.of(
            -   *           "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]");
            -   *   GoldengateDeploymentType response = oracleDatabaseClient.getGoldengateDeploymentType(name);
            -   * }
            -   * }
            - * - * @param name Required. The name of the GoldengateDeploymentType to retrieve. Format: - * projects/{project}/locations/{location}/goldengateDeploymentTypes/{goldengate_deployment_type} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoldengateDeploymentType getGoldengateDeploymentType( - GoldengateDeploymentTypeName name) { - GetGoldengateDeploymentTypeRequest request = - GetGoldengateDeploymentTypeRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getGoldengateDeploymentType(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single GoldenGateDeploymentType. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
            -   *   String name =
            -   *       GoldengateDeploymentTypeName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]")
            -   *           .toString();
            -   *   GoldengateDeploymentType response = oracleDatabaseClient.getGoldengateDeploymentType(name);
            -   * }
            -   * }
            - * - * @param name Required. The name of the GoldengateDeploymentType to retrieve. Format: - * projects/{project}/locations/{location}/goldengateDeploymentTypes/{goldengate_deployment_type} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoldengateDeploymentType getGoldengateDeploymentType(String name) { - GetGoldengateDeploymentTypeRequest request = - GetGoldengateDeploymentTypeRequest.newBuilder().setName(name).build(); - return getGoldengateDeploymentType(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single GoldenGateDeploymentType. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
            -   *   GetGoldengateDeploymentTypeRequest request =
            -   *       GetGoldengateDeploymentTypeRequest.newBuilder()
            -   *           .setName(
            -   *               GoldengateDeploymentTypeName.of(
            -   *                       "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]")
            -   *                   .toString())
            -   *           .build();
            -   *   GoldengateDeploymentType response = oracleDatabaseClient.getGoldengateDeploymentType(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 GoldengateDeploymentType getGoldengateDeploymentType( - GetGoldengateDeploymentTypeRequest request) { - return getGoldengateDeploymentTypeCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single GoldenGateDeploymentType. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
            -   *   GetGoldengateDeploymentTypeRequest request =
            -   *       GetGoldengateDeploymentTypeRequest.newBuilder()
            -   *           .setName(
            -   *               GoldengateDeploymentTypeName.of(
            -   *                       "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]")
            -   *                   .toString())
            -   *           .build();
            -   *   ApiFuture future =
            -   *       oracleDatabaseClient.getGoldengateDeploymentTypeCallable().futureCall(request);
            -   *   // Do something.
            -   *   GoldengateDeploymentType response = future.get();
            -   * }
            -   * }
            - */ - public final UnaryCallable - getGoldengateDeploymentTypeCallable() { - return stub.getGoldengateDeploymentTypeCallable(); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists GoldenGateDeploymentTypes in a given project and location. @@ -13223,138 +12889,6 @@ public final ListGoldengateDeploymentTypesPagedResponse listGoldengateDeployment return stub.listGoldengateDeploymentTypesCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single GoldengateDeploymentEnvironment. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
            -   *   GoldengateDeploymentEnvironmentName name =
            -   *       GoldengateDeploymentEnvironmentName.of(
            -   *           "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]");
            -   *   GoldengateDeploymentEnvironment response =
            -   *       oracleDatabaseClient.getGoldengateDeploymentEnvironment(name);
            -   * }
            -   * }
            - * - * @param name Required. Name of the resource with the format: - * projects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoldengateDeploymentEnvironment getGoldengateDeploymentEnvironment( - GoldengateDeploymentEnvironmentName name) { - GetGoldengateDeploymentEnvironmentRequest request = - GetGoldengateDeploymentEnvironmentRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getGoldengateDeploymentEnvironment(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single GoldengateDeploymentEnvironment. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
            -   *   String name =
            -   *       GoldengateDeploymentEnvironmentName.of(
            -   *               "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]")
            -   *           .toString();
            -   *   GoldengateDeploymentEnvironment response =
            -   *       oracleDatabaseClient.getGoldengateDeploymentEnvironment(name);
            -   * }
            -   * }
            - * - * @param name Required. Name of the resource with the format: - * projects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoldengateDeploymentEnvironment getGoldengateDeploymentEnvironment(String name) { - GetGoldengateDeploymentEnvironmentRequest request = - GetGoldengateDeploymentEnvironmentRequest.newBuilder().setName(name).build(); - return getGoldengateDeploymentEnvironment(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single GoldengateDeploymentEnvironment. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
            -   *   GetGoldengateDeploymentEnvironmentRequest request =
            -   *       GetGoldengateDeploymentEnvironmentRequest.newBuilder()
            -   *           .setName(
            -   *               GoldengateDeploymentEnvironmentName.of(
            -   *                       "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]")
            -   *                   .toString())
            -   *           .build();
            -   *   GoldengateDeploymentEnvironment response =
            -   *       oracleDatabaseClient.getGoldengateDeploymentEnvironment(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 GoldengateDeploymentEnvironment getGoldengateDeploymentEnvironment( - GetGoldengateDeploymentEnvironmentRequest request) { - return getGoldengateDeploymentEnvironmentCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single GoldengateDeploymentEnvironment. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
            -   *   GetGoldengateDeploymentEnvironmentRequest request =
            -   *       GetGoldengateDeploymentEnvironmentRequest.newBuilder()
            -   *           .setName(
            -   *               GoldengateDeploymentEnvironmentName.of(
            -   *                       "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]")
            -   *                   .toString())
            -   *           .build();
            -   *   ApiFuture future =
            -   *       oracleDatabaseClient.getGoldengateDeploymentEnvironmentCallable().futureCall(request);
            -   *   // Do something.
            -   *   GoldengateDeploymentEnvironment response = future.get();
            -   * }
            -   * }
            - */ - public final UnaryCallable< - GetGoldengateDeploymentEnvironmentRequest, GoldengateDeploymentEnvironment> - getGoldengateDeploymentEnvironmentCallable() { - return stub.getGoldengateDeploymentEnvironmentCallable(); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists GoldengateDeploymentEnvironments in a given project and location. @@ -13534,133 +13068,6 @@ public final GoldengateDeploymentEnvironment getGoldengateDeploymentEnvironment( return stub.listGoldengateDeploymentEnvironmentsCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single GoldengateConnectionType. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
            -   *   GoldengateConnectionTypeName name =
            -   *       GoldengateConnectionTypeName.of(
            -   *           "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]");
            -   *   GoldengateConnectionType response = oracleDatabaseClient.getGoldengateConnectionType(name);
            -   * }
            -   * }
            - * - * @param name Required. Name of the resource in the format: - * projects/{project}/locations/{location}/goldengateConnectionTypes/{goldengate_connection_type} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoldengateConnectionType getGoldengateConnectionType( - GoldengateConnectionTypeName name) { - GetGoldengateConnectionTypeRequest request = - GetGoldengateConnectionTypeRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getGoldengateConnectionType(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single GoldengateConnectionType. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
            -   *   String name =
            -   *       GoldengateConnectionTypeName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]")
            -   *           .toString();
            -   *   GoldengateConnectionType response = oracleDatabaseClient.getGoldengateConnectionType(name);
            -   * }
            -   * }
            - * - * @param name Required. Name of the resource in the format: - * projects/{project}/locations/{location}/goldengateConnectionTypes/{goldengate_connection_type} - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final GoldengateConnectionType getGoldengateConnectionType(String name) { - GetGoldengateConnectionTypeRequest request = - GetGoldengateConnectionTypeRequest.newBuilder().setName(name).build(); - return getGoldengateConnectionType(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single GoldengateConnectionType. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
            -   *   GetGoldengateConnectionTypeRequest request =
            -   *       GetGoldengateConnectionTypeRequest.newBuilder()
            -   *           .setName(
            -   *               GoldengateConnectionTypeName.of(
            -   *                       "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]")
            -   *                   .toString())
            -   *           .build();
            -   *   GoldengateConnectionType response = oracleDatabaseClient.getGoldengateConnectionType(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 GoldengateConnectionType getGoldengateConnectionType( - GetGoldengateConnectionTypeRequest request) { - return getGoldengateConnectionTypeCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets details of a single GoldengateConnectionType. - * - *

            Sample code: - * - *

            {@code
            -   * // This snippet has been automatically generated and should be regarded as a code template only.
            -   * // It will require modifications to work:
            -   * // - It may require correct/in-range values for request initialization.
            -   * // - It may require specifying regional endpoints when creating the service client as shown in
            -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            -   * try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) {
            -   *   GetGoldengateConnectionTypeRequest request =
            -   *       GetGoldengateConnectionTypeRequest.newBuilder()
            -   *           .setName(
            -   *               GoldengateConnectionTypeName.of(
            -   *                       "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]")
            -   *                   .toString())
            -   *           .build();
            -   *   ApiFuture future =
            -   *       oracleDatabaseClient.getGoldengateConnectionTypeCallable().futureCall(request);
            -   *   // Do something.
            -   *   GoldengateConnectionType response = future.get();
            -   * }
            -   * }
            - */ - public final UnaryCallable - getGoldengateConnectionTypeCallable() { - return stub.getGoldengateConnectionTypeCallable(); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists GoldengateConnectionTypes in a given project and location. diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java index 17606abcb2aa..a9fc48da78e3 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseSettings.java @@ -796,13 +796,6 @@ public UnaryCallSettings deleteDbSystemSetting .deleteGoldengateConnectionOperationSettings(); } - /** Returns the object with the settings used for calls to getGoldengateDeploymentVersion. */ - public UnaryCallSettings - getGoldengateDeploymentVersionSettings() { - return ((OracleDatabaseStubSettings) getStubSettings()) - .getGoldengateDeploymentVersionSettings(); - } - /** Returns the object with the settings used for calls to listGoldengateDeploymentVersions. */ public PagedCallSettings< ListGoldengateDeploymentVersionsRequest, @@ -813,12 +806,6 @@ public UnaryCallSettings deleteDbSystemSetting .listGoldengateDeploymentVersionsSettings(); } - /** Returns the object with the settings used for calls to getGoldengateDeploymentType. */ - public UnaryCallSettings - getGoldengateDeploymentTypeSettings() { - return ((OracleDatabaseStubSettings) getStubSettings()).getGoldengateDeploymentTypeSettings(); - } - /** Returns the object with the settings used for calls to listGoldengateDeploymentTypes. */ public PagedCallSettings< ListGoldengateDeploymentTypesRequest, @@ -828,14 +815,6 @@ public UnaryCallSettings deleteDbSystemSetting return ((OracleDatabaseStubSettings) getStubSettings()).listGoldengateDeploymentTypesSettings(); } - /** Returns the object with the settings used for calls to getGoldengateDeploymentEnvironment. */ - public UnaryCallSettings< - GetGoldengateDeploymentEnvironmentRequest, GoldengateDeploymentEnvironment> - getGoldengateDeploymentEnvironmentSettings() { - return ((OracleDatabaseStubSettings) getStubSettings()) - .getGoldengateDeploymentEnvironmentSettings(); - } - /** * Returns the object with the settings used for calls to listGoldengateDeploymentEnvironments. */ @@ -848,12 +827,6 @@ public UnaryCallSettings deleteDbSystemSetting .listGoldengateDeploymentEnvironmentsSettings(); } - /** Returns the object with the settings used for calls to getGoldengateConnectionType. */ - public UnaryCallSettings - getGoldengateConnectionTypeSettings() { - return ((OracleDatabaseStubSettings) getStubSettings()).getGoldengateConnectionTypeSettings(); - } - /** Returns the object with the settings used for calls to listGoldengateConnectionTypes. */ public PagedCallSettings< ListGoldengateConnectionTypesRequest, @@ -1717,13 +1690,6 @@ public UnaryCallSettings.Builder deleteDbSyste return getStubSettingsBuilder().deleteGoldengateConnectionOperationSettings(); } - /** Returns the builder for the settings used for calls to getGoldengateDeploymentVersion. */ - public UnaryCallSettings.Builder< - GetGoldengateDeploymentVersionRequest, GoldengateDeploymentVersion> - getGoldengateDeploymentVersionSettings() { - return getStubSettingsBuilder().getGoldengateDeploymentVersionSettings(); - } - /** Returns the builder for the settings used for calls to listGoldengateDeploymentVersions. */ public PagedCallSettings.Builder< ListGoldengateDeploymentVersionsRequest, @@ -1733,12 +1699,6 @@ public UnaryCallSettings.Builder deleteDbSyste return getStubSettingsBuilder().listGoldengateDeploymentVersionsSettings(); } - /** Returns the builder for the settings used for calls to getGoldengateDeploymentType. */ - public UnaryCallSettings.Builder - getGoldengateDeploymentTypeSettings() { - return getStubSettingsBuilder().getGoldengateDeploymentTypeSettings(); - } - /** Returns the builder for the settings used for calls to listGoldengateDeploymentTypes. */ public PagedCallSettings.Builder< ListGoldengateDeploymentTypesRequest, @@ -1748,15 +1708,6 @@ public UnaryCallSettings.Builder deleteDbSyste return getStubSettingsBuilder().listGoldengateDeploymentTypesSettings(); } - /** - * Returns the builder for the settings used for calls to getGoldengateDeploymentEnvironment. - */ - public UnaryCallSettings.Builder< - GetGoldengateDeploymentEnvironmentRequest, GoldengateDeploymentEnvironment> - getGoldengateDeploymentEnvironmentSettings() { - return getStubSettingsBuilder().getGoldengateDeploymentEnvironmentSettings(); - } - /** * Returns the builder for the settings used for calls to listGoldengateDeploymentEnvironments. */ @@ -1768,12 +1719,6 @@ public UnaryCallSettings.Builder deleteDbSyste return getStubSettingsBuilder().listGoldengateDeploymentEnvironmentsSettings(); } - /** Returns the builder for the settings used for calls to getGoldengateConnectionType. */ - public UnaryCallSettings.Builder - getGoldengateConnectionTypeSettings() { - return getStubSettingsBuilder().getGoldengateConnectionTypeSettings(); - } - /** Returns the builder for the settings used for calls to listGoldengateConnectionTypes. */ public PagedCallSettings.Builder< ListGoldengateConnectionTypesRequest, diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json index a87ef3e5cdea..0bf1c6a4f4d4 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/gapic_metadata.json @@ -109,21 +109,9 @@ "GetGoldengateConnectionAssignment": { "methods": ["getGoldengateConnectionAssignment", "getGoldengateConnectionAssignment", "getGoldengateConnectionAssignment", "getGoldengateConnectionAssignmentCallable"] }, - "GetGoldengateConnectionType": { - "methods": ["getGoldengateConnectionType", "getGoldengateConnectionType", "getGoldengateConnectionType", "getGoldengateConnectionTypeCallable"] - }, "GetGoldengateDeployment": { "methods": ["getGoldengateDeployment", "getGoldengateDeployment", "getGoldengateDeployment", "getGoldengateDeploymentCallable"] }, - "GetGoldengateDeploymentEnvironment": { - "methods": ["getGoldengateDeploymentEnvironment", "getGoldengateDeploymentEnvironment", "getGoldengateDeploymentEnvironment", "getGoldengateDeploymentEnvironmentCallable"] - }, - "GetGoldengateDeploymentType": { - "methods": ["getGoldengateDeploymentType", "getGoldengateDeploymentType", "getGoldengateDeploymentType", "getGoldengateDeploymentTypeCallable"] - }, - "GetGoldengateDeploymentVersion": { - "methods": ["getGoldengateDeploymentVersion", "getGoldengateDeploymentVersion", "getGoldengateDeploymentVersion", "getGoldengateDeploymentVersionCallable"] - }, "GetLocation": { "methods": ["getLocation", "getLocationCallable"] }, diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java index 0df21be070ad..7a5c437ec7f2 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/GrpcOracleDatabaseStub.java @@ -100,21 +100,13 @@ import com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest; import com.google.cloud.oracledatabase.v1.GetGoldengateConnectionAssignmentRequest; import com.google.cloud.oracledatabase.v1.GetGoldengateConnectionRequest; -import com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest; -import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest; import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentRequest; -import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest; -import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest; import com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest; import com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest; import com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest; import com.google.cloud.oracledatabase.v1.GoldengateConnection; import com.google.cloud.oracledatabase.v1.GoldengateConnectionAssignment; -import com.google.cloud.oracledatabase.v1.GoldengateConnectionType; import com.google.cloud.oracledatabase.v1.GoldengateDeployment; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentType; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest; @@ -1038,21 +1030,6 @@ public class GrpcOracleDatabaseStub extends OracleDatabaseStub { .setSampledToLocalTracing(true) .build(); - private static final MethodDescriptor< - GetGoldengateDeploymentVersionRequest, GoldengateDeploymentVersion> - getGoldengateDeploymentVersionMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.oracledatabase.v1.OracleDatabase/GetGoldengateDeploymentVersion") - .setRequestMarshaller( - ProtoUtils.marshaller(GetGoldengateDeploymentVersionRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(GoldengateDeploymentVersion.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - private static final MethodDescriptor< ListGoldengateDeploymentVersionsRequest, ListGoldengateDeploymentVersionsResponse> listGoldengateDeploymentVersionsMethodDescriptor = @@ -1071,21 +1048,6 @@ public class GrpcOracleDatabaseStub extends OracleDatabaseStub { .setSampledToLocalTracing(true) .build(); - private static final MethodDescriptor< - GetGoldengateDeploymentTypeRequest, GoldengateDeploymentType> - getGoldengateDeploymentTypeMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.oracledatabase.v1.OracleDatabase/GetGoldengateDeploymentType") - .setRequestMarshaller( - ProtoUtils.marshaller(GetGoldengateDeploymentTypeRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(GoldengateDeploymentType.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - private static final MethodDescriptor< ListGoldengateDeploymentTypesRequest, ListGoldengateDeploymentTypesResponse> listGoldengateDeploymentTypesMethodDescriptor = @@ -1102,23 +1064,6 @@ public class GrpcOracleDatabaseStub extends OracleDatabaseStub { .setSampledToLocalTracing(true) .build(); - private static final MethodDescriptor< - GetGoldengateDeploymentEnvironmentRequest, GoldengateDeploymentEnvironment> - getGoldengateDeploymentEnvironmentMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.oracledatabase.v1.OracleDatabase/GetGoldengateDeploymentEnvironment") - .setRequestMarshaller( - ProtoUtils.marshaller( - GetGoldengateDeploymentEnvironmentRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(GoldengateDeploymentEnvironment.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - private static final MethodDescriptor< ListGoldengateDeploymentEnvironmentsRequest, ListGoldengateDeploymentEnvironmentsResponse> listGoldengateDeploymentEnvironmentsMethodDescriptor = @@ -1138,21 +1083,6 @@ public class GrpcOracleDatabaseStub extends OracleDatabaseStub { .setSampledToLocalTracing(true) .build(); - private static final MethodDescriptor< - GetGoldengateConnectionTypeRequest, GoldengateConnectionType> - getGoldengateConnectionTypeMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.oracledatabase.v1.OracleDatabase/GetGoldengateConnectionType") - .setRequestMarshaller( - ProtoUtils.marshaller(GetGoldengateConnectionTypeRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(GoldengateConnectionType.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - private static final MethodDescriptor< ListGoldengateConnectionTypesRequest, ListGoldengateConnectionTypesResponse> listGoldengateConnectionTypesMethodDescriptor = @@ -1543,25 +1473,18 @@ public class GrpcOracleDatabaseStub extends OracleDatabaseStub { deleteGoldengateConnectionCallable; private final OperationCallable deleteGoldengateConnectionOperationCallable; - private final UnaryCallable - getGoldengateDeploymentVersionCallable; private final UnaryCallable< ListGoldengateDeploymentVersionsRequest, ListGoldengateDeploymentVersionsResponse> listGoldengateDeploymentVersionsCallable; private final UnaryCallable< ListGoldengateDeploymentVersionsRequest, ListGoldengateDeploymentVersionsPagedResponse> listGoldengateDeploymentVersionsPagedCallable; - private final UnaryCallable - getGoldengateDeploymentTypeCallable; private final UnaryCallable< ListGoldengateDeploymentTypesRequest, ListGoldengateDeploymentTypesResponse> listGoldengateDeploymentTypesCallable; private final UnaryCallable< ListGoldengateDeploymentTypesRequest, ListGoldengateDeploymentTypesPagedResponse> listGoldengateDeploymentTypesPagedCallable; - private final UnaryCallable< - GetGoldengateDeploymentEnvironmentRequest, GoldengateDeploymentEnvironment> - getGoldengateDeploymentEnvironmentCallable; private final UnaryCallable< ListGoldengateDeploymentEnvironmentsRequest, ListGoldengateDeploymentEnvironmentsResponse> listGoldengateDeploymentEnvironmentsCallable; @@ -1569,8 +1492,6 @@ public class GrpcOracleDatabaseStub extends OracleDatabaseStub { ListGoldengateDeploymentEnvironmentsRequest, ListGoldengateDeploymentEnvironmentsPagedResponse> listGoldengateDeploymentEnvironmentsPagedCallable; - private final UnaryCallable - getGoldengateConnectionTypeCallable; private final UnaryCallable< ListGoldengateConnectionTypesRequest, ListGoldengateConnectionTypesResponse> listGoldengateConnectionTypesCallable; @@ -2455,19 +2376,6 @@ protected GrpcOracleDatabaseStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); - GrpcCallSettings - getGoldengateDeploymentVersionTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(getGoldengateDeploymentVersionMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); GrpcCallSettings< ListGoldengateDeploymentVersionsRequest, ListGoldengateDeploymentVersionsResponse> listGoldengateDeploymentVersionsTransportSettings = @@ -2483,19 +2391,6 @@ protected GrpcOracleDatabaseStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); - GrpcCallSettings - getGoldengateDeploymentTypeTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(getGoldengateDeploymentTypeMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); GrpcCallSettings listGoldengateDeploymentTypesTransportSettings = GrpcCallSettings @@ -2510,20 +2405,6 @@ protected GrpcOracleDatabaseStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); - GrpcCallSettings - getGoldengateDeploymentEnvironmentTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(getGoldengateDeploymentEnvironmentMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); GrpcCallSettings< ListGoldengateDeploymentEnvironmentsRequest, ListGoldengateDeploymentEnvironmentsResponse> @@ -2541,19 +2422,6 @@ protected GrpcOracleDatabaseStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); - GrpcCallSettings - getGoldengateConnectionTypeTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(getGoldengateConnectionTypeMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); GrpcCallSettings listGoldengateConnectionTypesTransportSettings = GrpcCallSettings @@ -3258,11 +3126,6 @@ protected GrpcOracleDatabaseStub( settings.deleteGoldengateConnectionOperationSettings(), clientContext, operationsStub); - this.getGoldengateDeploymentVersionCallable = - callableFactory.createUnaryCallable( - getGoldengateDeploymentVersionTransportSettings, - settings.getGoldengateDeploymentVersionSettings(), - clientContext); this.listGoldengateDeploymentVersionsCallable = callableFactory.createUnaryCallable( listGoldengateDeploymentVersionsTransportSettings, @@ -3273,11 +3136,6 @@ protected GrpcOracleDatabaseStub( listGoldengateDeploymentVersionsTransportSettings, settings.listGoldengateDeploymentVersionsSettings(), clientContext); - this.getGoldengateDeploymentTypeCallable = - callableFactory.createUnaryCallable( - getGoldengateDeploymentTypeTransportSettings, - settings.getGoldengateDeploymentTypeSettings(), - clientContext); this.listGoldengateDeploymentTypesCallable = callableFactory.createUnaryCallable( listGoldengateDeploymentTypesTransportSettings, @@ -3288,11 +3146,6 @@ protected GrpcOracleDatabaseStub( listGoldengateDeploymentTypesTransportSettings, settings.listGoldengateDeploymentTypesSettings(), clientContext); - this.getGoldengateDeploymentEnvironmentCallable = - callableFactory.createUnaryCallable( - getGoldengateDeploymentEnvironmentTransportSettings, - settings.getGoldengateDeploymentEnvironmentSettings(), - clientContext); this.listGoldengateDeploymentEnvironmentsCallable = callableFactory.createUnaryCallable( listGoldengateDeploymentEnvironmentsTransportSettings, @@ -3303,11 +3156,6 @@ protected GrpcOracleDatabaseStub( listGoldengateDeploymentEnvironmentsTransportSettings, settings.listGoldengateDeploymentEnvironmentsSettings(), clientContext); - this.getGoldengateConnectionTypeCallable = - callableFactory.createUnaryCallable( - getGoldengateConnectionTypeTransportSettings, - settings.getGoldengateConnectionTypeSettings(), - clientContext); this.listGoldengateConnectionTypesCallable = callableFactory.createUnaryCallable( listGoldengateConnectionTypesTransportSettings, @@ -4098,12 +3946,6 @@ public UnaryCallable deleteDbSystemCallable() return deleteGoldengateConnectionOperationCallable; } - @Override - public UnaryCallable - getGoldengateDeploymentVersionCallable() { - return getGoldengateDeploymentVersionCallable; - } - @Override public UnaryCallable< ListGoldengateDeploymentVersionsRequest, ListGoldengateDeploymentVersionsResponse> @@ -4118,12 +3960,6 @@ public UnaryCallable deleteDbSystemCallable() return listGoldengateDeploymentVersionsPagedCallable; } - @Override - public UnaryCallable - getGoldengateDeploymentTypeCallable() { - return getGoldengateDeploymentTypeCallable; - } - @Override public UnaryCallable listGoldengateDeploymentTypesCallable() { @@ -4137,12 +3973,6 @@ public UnaryCallable deleteDbSystemCallable() return listGoldengateDeploymentTypesPagedCallable; } - @Override - public UnaryCallable - getGoldengateDeploymentEnvironmentCallable() { - return getGoldengateDeploymentEnvironmentCallable; - } - @Override public UnaryCallable< ListGoldengateDeploymentEnvironmentsRequest, ListGoldengateDeploymentEnvironmentsResponse> @@ -4158,12 +3988,6 @@ public UnaryCallable deleteDbSystemCallable() return listGoldengateDeploymentEnvironmentsPagedCallable; } - @Override - public UnaryCallable - getGoldengateConnectionTypeCallable() { - return getGoldengateConnectionTypeCallable; - } - @Override public UnaryCallable listGoldengateConnectionTypesCallable() { diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java index ec09b65ef2d7..880d737009ce 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/HttpJsonOracleDatabaseStub.java @@ -108,21 +108,13 @@ import com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest; import com.google.cloud.oracledatabase.v1.GetGoldengateConnectionAssignmentRequest; import com.google.cloud.oracledatabase.v1.GetGoldengateConnectionRequest; -import com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest; -import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest; import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentRequest; -import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest; -import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest; import com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest; import com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest; import com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest; import com.google.cloud.oracledatabase.v1.GoldengateConnection; import com.google.cloud.oracledatabase.v1.GoldengateConnectionAssignment; -import com.google.cloud.oracledatabase.v1.GoldengateConnectionType; import com.google.cloud.oracledatabase.v1.GoldengateDeployment; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentType; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest; @@ -2864,43 +2856,6 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { HttpJsonOperationSnapshot.create(response)) .build(); - private static final ApiMethodDescriptor< - GetGoldengateDeploymentVersionRequest, GoldengateDeploymentVersion> - getGoldengateDeploymentVersionMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.cloud.oracledatabase.v1.OracleDatabase/GetGoldengateDeploymentVersion") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/goldengateDeploymentVersions/*}", - 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(GoldengateDeploymentVersion.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - private static final ApiMethodDescriptor< ListGoldengateDeploymentVersionsRequest, ListGoldengateDeploymentVersionsResponse> listGoldengateDeploymentVersionsMethodDescriptor = @@ -2943,43 +2898,6 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { .build()) .build(); - private static final ApiMethodDescriptor< - GetGoldengateDeploymentTypeRequest, GoldengateDeploymentType> - getGoldengateDeploymentTypeMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.cloud.oracledatabase.v1.OracleDatabase/GetGoldengateDeploymentType") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/goldengateDeploymentTypes/*}", - 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(GoldengateDeploymentType.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - private static final ApiMethodDescriptor< ListGoldengateDeploymentTypesRequest, ListGoldengateDeploymentTypesResponse> listGoldengateDeploymentTypesMethodDescriptor = @@ -3023,45 +2941,6 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { .build()) .build(); - private static final ApiMethodDescriptor< - GetGoldengateDeploymentEnvironmentRequest, GoldengateDeploymentEnvironment> - getGoldengateDeploymentEnvironmentMethodDescriptor = - ApiMethodDescriptor - . - newBuilder() - .setFullMethodName( - "google.cloud.oracledatabase.v1.OracleDatabase/GetGoldengateDeploymentEnvironment") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter - .newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/goldengateDeploymentEnvironments/*}", - 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(GoldengateDeploymentEnvironment.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - private static final ApiMethodDescriptor< ListGoldengateDeploymentEnvironmentsRequest, ListGoldengateDeploymentEnvironmentsResponse> listGoldengateDeploymentEnvironmentsMethodDescriptor = @@ -3106,43 +2985,6 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { .build()) .build(); - private static final ApiMethodDescriptor< - GetGoldengateConnectionTypeRequest, GoldengateConnectionType> - getGoldengateConnectionTypeMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.cloud.oracledatabase.v1.OracleDatabase/GetGoldengateConnectionType") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/goldengateConnectionTypes/*}", - 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(GoldengateConnectionType.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - private static final ApiMethodDescriptor< ListGoldengateConnectionTypesRequest, ListGoldengateConnectionTypesResponse> listGoldengateConnectionTypesMethodDescriptor = @@ -3795,25 +3637,18 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { deleteGoldengateConnectionCallable; private final OperationCallable deleteGoldengateConnectionOperationCallable; - private final UnaryCallable - getGoldengateDeploymentVersionCallable; private final UnaryCallable< ListGoldengateDeploymentVersionsRequest, ListGoldengateDeploymentVersionsResponse> listGoldengateDeploymentVersionsCallable; private final UnaryCallable< ListGoldengateDeploymentVersionsRequest, ListGoldengateDeploymentVersionsPagedResponse> listGoldengateDeploymentVersionsPagedCallable; - private final UnaryCallable - getGoldengateDeploymentTypeCallable; private final UnaryCallable< ListGoldengateDeploymentTypesRequest, ListGoldengateDeploymentTypesResponse> listGoldengateDeploymentTypesCallable; private final UnaryCallable< ListGoldengateDeploymentTypesRequest, ListGoldengateDeploymentTypesPagedResponse> listGoldengateDeploymentTypesPagedCallable; - private final UnaryCallable< - GetGoldengateDeploymentEnvironmentRequest, GoldengateDeploymentEnvironment> - getGoldengateDeploymentEnvironmentCallable; private final UnaryCallable< ListGoldengateDeploymentEnvironmentsRequest, ListGoldengateDeploymentEnvironmentsResponse> listGoldengateDeploymentEnvironmentsCallable; @@ -3821,8 +3656,6 @@ public class HttpJsonOracleDatabaseStub extends OracleDatabaseStub { ListGoldengateDeploymentEnvironmentsRequest, ListGoldengateDeploymentEnvironmentsPagedResponse> listGoldengateDeploymentEnvironmentsPagedCallable; - private final UnaryCallable - getGoldengateConnectionTypeCallable; private final UnaryCallable< ListGoldengateConnectionTypesRequest, ListGoldengateConnectionTypesResponse> listGoldengateConnectionTypesCallable; @@ -4813,20 +4646,6 @@ protected HttpJsonOracleDatabaseStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); - HttpJsonCallSettings - getGoldengateDeploymentVersionTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(getGoldengateDeploymentVersionMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); HttpJsonCallSettings< ListGoldengateDeploymentVersionsRequest, ListGoldengateDeploymentVersionsResponse> listGoldengateDeploymentVersionsTransportSettings = @@ -4843,20 +4662,6 @@ protected HttpJsonOracleDatabaseStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); - HttpJsonCallSettings - getGoldengateDeploymentTypeTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(getGoldengateDeploymentTypeMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); HttpJsonCallSettings< ListGoldengateDeploymentTypesRequest, ListGoldengateDeploymentTypesResponse> listGoldengateDeploymentTypesTransportSettings = @@ -4873,21 +4678,6 @@ protected HttpJsonOracleDatabaseStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); - HttpJsonCallSettings - getGoldengateDeploymentEnvironmentTransportSettings = - HttpJsonCallSettings - . - newBuilder() - .setMethodDescriptor(getGoldengateDeploymentEnvironmentMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); HttpJsonCallSettings< ListGoldengateDeploymentEnvironmentsRequest, ListGoldengateDeploymentEnvironmentsResponse> @@ -4906,20 +4696,6 @@ protected HttpJsonOracleDatabaseStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); - HttpJsonCallSettings - getGoldengateConnectionTypeTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(getGoldengateConnectionTypeMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); HttpJsonCallSettings< ListGoldengateConnectionTypesRequest, ListGoldengateConnectionTypesResponse> listGoldengateConnectionTypesTransportSettings = @@ -5638,11 +5414,6 @@ protected HttpJsonOracleDatabaseStub( settings.deleteGoldengateConnectionOperationSettings(), clientContext, httpJsonOperationsStub); - this.getGoldengateDeploymentVersionCallable = - callableFactory.createUnaryCallable( - getGoldengateDeploymentVersionTransportSettings, - settings.getGoldengateDeploymentVersionSettings(), - clientContext); this.listGoldengateDeploymentVersionsCallable = callableFactory.createUnaryCallable( listGoldengateDeploymentVersionsTransportSettings, @@ -5653,11 +5424,6 @@ protected HttpJsonOracleDatabaseStub( listGoldengateDeploymentVersionsTransportSettings, settings.listGoldengateDeploymentVersionsSettings(), clientContext); - this.getGoldengateDeploymentTypeCallable = - callableFactory.createUnaryCallable( - getGoldengateDeploymentTypeTransportSettings, - settings.getGoldengateDeploymentTypeSettings(), - clientContext); this.listGoldengateDeploymentTypesCallable = callableFactory.createUnaryCallable( listGoldengateDeploymentTypesTransportSettings, @@ -5668,11 +5434,6 @@ protected HttpJsonOracleDatabaseStub( listGoldengateDeploymentTypesTransportSettings, settings.listGoldengateDeploymentTypesSettings(), clientContext); - this.getGoldengateDeploymentEnvironmentCallable = - callableFactory.createUnaryCallable( - getGoldengateDeploymentEnvironmentTransportSettings, - settings.getGoldengateDeploymentEnvironmentSettings(), - clientContext); this.listGoldengateDeploymentEnvironmentsCallable = callableFactory.createUnaryCallable( listGoldengateDeploymentEnvironmentsTransportSettings, @@ -5683,11 +5444,6 @@ protected HttpJsonOracleDatabaseStub( listGoldengateDeploymentEnvironmentsTransportSettings, settings.listGoldengateDeploymentEnvironmentsSettings(), clientContext); - this.getGoldengateConnectionTypeCallable = - callableFactory.createUnaryCallable( - getGoldengateConnectionTypeTransportSettings, - settings.getGoldengateConnectionTypeSettings(), - clientContext); this.listGoldengateConnectionTypesCallable = callableFactory.createUnaryCallable( listGoldengateConnectionTypesTransportSettings, @@ -5839,13 +5595,9 @@ public static List getMethodDescriptors() { methodDescriptors.add(getGoldengateConnectionMethodDescriptor); methodDescriptors.add(createGoldengateConnectionMethodDescriptor); methodDescriptors.add(deleteGoldengateConnectionMethodDescriptor); - methodDescriptors.add(getGoldengateDeploymentVersionMethodDescriptor); methodDescriptors.add(listGoldengateDeploymentVersionsMethodDescriptor); - methodDescriptors.add(getGoldengateDeploymentTypeMethodDescriptor); methodDescriptors.add(listGoldengateDeploymentTypesMethodDescriptor); - methodDescriptors.add(getGoldengateDeploymentEnvironmentMethodDescriptor); methodDescriptors.add(listGoldengateDeploymentEnvironmentsMethodDescriptor); - methodDescriptors.add(getGoldengateConnectionTypeMethodDescriptor); methodDescriptors.add(listGoldengateConnectionTypesMethodDescriptor); methodDescriptors.add(listDbVersionsMethodDescriptor); methodDescriptors.add(listDatabaseCharacterSetsMethodDescriptor); @@ -6567,12 +6319,6 @@ public UnaryCallable deleteDbSystemCallable() return deleteGoldengateConnectionOperationCallable; } - @Override - public UnaryCallable - getGoldengateDeploymentVersionCallable() { - return getGoldengateDeploymentVersionCallable; - } - @Override public UnaryCallable< ListGoldengateDeploymentVersionsRequest, ListGoldengateDeploymentVersionsResponse> @@ -6587,12 +6333,6 @@ public UnaryCallable deleteDbSystemCallable() return listGoldengateDeploymentVersionsPagedCallable; } - @Override - public UnaryCallable - getGoldengateDeploymentTypeCallable() { - return getGoldengateDeploymentTypeCallable; - } - @Override public UnaryCallable listGoldengateDeploymentTypesCallable() { @@ -6606,12 +6346,6 @@ public UnaryCallable deleteDbSystemCallable() return listGoldengateDeploymentTypesPagedCallable; } - @Override - public UnaryCallable - getGoldengateDeploymentEnvironmentCallable() { - return getGoldengateDeploymentEnvironmentCallable; - } - @Override public UnaryCallable< ListGoldengateDeploymentEnvironmentsRequest, ListGoldengateDeploymentEnvironmentsResponse> @@ -6627,12 +6361,6 @@ public UnaryCallable deleteDbSystemCallable() return listGoldengateDeploymentEnvironmentsPagedCallable; } - @Override - public UnaryCallable - getGoldengateConnectionTypeCallable() { - return getGoldengateConnectionTypeCallable; - } - @Override public UnaryCallable listGoldengateConnectionTypesCallable() { diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java index 37d887385d5f..0a91648b63ac 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStub.java @@ -95,21 +95,13 @@ import com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest; import com.google.cloud.oracledatabase.v1.GetGoldengateConnectionAssignmentRequest; import com.google.cloud.oracledatabase.v1.GetGoldengateConnectionRequest; -import com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest; -import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest; import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentRequest; -import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest; -import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest; import com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest; import com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest; import com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest; import com.google.cloud.oracledatabase.v1.GoldengateConnection; import com.google.cloud.oracledatabase.v1.GoldengateConnectionAssignment; -import com.google.cloud.oracledatabase.v1.GoldengateConnectionType; import com.google.cloud.oracledatabase.v1.GoldengateDeployment; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentType; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsRequest; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseBackupsResponse; import com.google.cloud.oracledatabase.v1.ListAutonomousDatabaseCharacterSetsRequest; @@ -844,12 +836,6 @@ public UnaryCallable deleteDbSystemCallable() "Not implemented: deleteGoldengateConnectionCallable()"); } - public UnaryCallable - getGoldengateDeploymentVersionCallable() { - throw new UnsupportedOperationException( - "Not implemented: getGoldengateDeploymentVersionCallable()"); - } - public UnaryCallable< ListGoldengateDeploymentVersionsRequest, ListGoldengateDeploymentVersionsPagedResponse> listGoldengateDeploymentVersionsPagedCallable() { @@ -864,12 +850,6 @@ public UnaryCallable deleteDbSystemCallable() "Not implemented: listGoldengateDeploymentVersionsCallable()"); } - public UnaryCallable - getGoldengateDeploymentTypeCallable() { - throw new UnsupportedOperationException( - "Not implemented: getGoldengateDeploymentTypeCallable()"); - } - public UnaryCallable< ListGoldengateDeploymentTypesRequest, ListGoldengateDeploymentTypesPagedResponse> listGoldengateDeploymentTypesPagedCallable() { @@ -883,12 +863,6 @@ public UnaryCallable deleteDbSystemCallable() "Not implemented: listGoldengateDeploymentTypesCallable()"); } - public UnaryCallable - getGoldengateDeploymentEnvironmentCallable() { - throw new UnsupportedOperationException( - "Not implemented: getGoldengateDeploymentEnvironmentCallable()"); - } - public UnaryCallable< ListGoldengateDeploymentEnvironmentsRequest, ListGoldengateDeploymentEnvironmentsPagedResponse> @@ -904,12 +878,6 @@ public UnaryCallable deleteDbSystemCallable() "Not implemented: listGoldengateDeploymentEnvironmentsCallable()"); } - public UnaryCallable - getGoldengateConnectionTypeCallable() { - throw new UnsupportedOperationException( - "Not implemented: getGoldengateConnectionTypeCallable()"); - } - public UnaryCallable< ListGoldengateConnectionTypesRequest, ListGoldengateConnectionTypesPagedResponse> listGoldengateConnectionTypesPagedCallable() { diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java index 0663a6fa8a5d..463ae4ed964f 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/main/java/com/google/cloud/oracledatabase/v1/stub/OracleDatabaseStubSettings.java @@ -133,11 +133,7 @@ import com.google.cloud.oracledatabase.v1.GetExascaleDbStorageVaultRequest; import com.google.cloud.oracledatabase.v1.GetGoldengateConnectionAssignmentRequest; import com.google.cloud.oracledatabase.v1.GetGoldengateConnectionRequest; -import com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest; -import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest; import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentRequest; -import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest; -import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest; import com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest; import com.google.cloud.oracledatabase.v1.GetOdbSubnetRequest; import com.google.cloud.oracledatabase.v1.GetPluggableDatabaseRequest; @@ -564,31 +560,21 @@ public class OracleDatabaseStubSettings extends StubSettings deleteGoldengateConnectionOperationSettings; - private final UnaryCallSettings< - GetGoldengateDeploymentVersionRequest, GoldengateDeploymentVersion> - getGoldengateDeploymentVersionSettings; private final PagedCallSettings< ListGoldengateDeploymentVersionsRequest, ListGoldengateDeploymentVersionsResponse, ListGoldengateDeploymentVersionsPagedResponse> listGoldengateDeploymentVersionsSettings; - private final UnaryCallSettings - getGoldengateDeploymentTypeSettings; private final PagedCallSettings< ListGoldengateDeploymentTypesRequest, ListGoldengateDeploymentTypesResponse, ListGoldengateDeploymentTypesPagedResponse> listGoldengateDeploymentTypesSettings; - private final UnaryCallSettings< - GetGoldengateDeploymentEnvironmentRequest, GoldengateDeploymentEnvironment> - getGoldengateDeploymentEnvironmentSettings; private final PagedCallSettings< ListGoldengateDeploymentEnvironmentsRequest, ListGoldengateDeploymentEnvironmentsResponse, ListGoldengateDeploymentEnvironmentsPagedResponse> listGoldengateDeploymentEnvironmentsSettings; - private final UnaryCallSettings - getGoldengateConnectionTypeSettings; private final PagedCallSettings< ListGoldengateConnectionTypesRequest, ListGoldengateConnectionTypesResponse, @@ -3234,12 +3220,6 @@ public UnaryCallSettings deleteDbSystemSetting return deleteGoldengateConnectionOperationSettings; } - /** Returns the object with the settings used for calls to getGoldengateDeploymentVersion. */ - public UnaryCallSettings - getGoldengateDeploymentVersionSettings() { - return getGoldengateDeploymentVersionSettings; - } - /** Returns the object with the settings used for calls to listGoldengateDeploymentVersions. */ public PagedCallSettings< ListGoldengateDeploymentVersionsRequest, @@ -3249,12 +3229,6 @@ public UnaryCallSettings deleteDbSystemSetting return listGoldengateDeploymentVersionsSettings; } - /** Returns the object with the settings used for calls to getGoldengateDeploymentType. */ - public UnaryCallSettings - getGoldengateDeploymentTypeSettings() { - return getGoldengateDeploymentTypeSettings; - } - /** Returns the object with the settings used for calls to listGoldengateDeploymentTypes. */ public PagedCallSettings< ListGoldengateDeploymentTypesRequest, @@ -3264,13 +3238,6 @@ public UnaryCallSettings deleteDbSystemSetting return listGoldengateDeploymentTypesSettings; } - /** Returns the object with the settings used for calls to getGoldengateDeploymentEnvironment. */ - public UnaryCallSettings< - GetGoldengateDeploymentEnvironmentRequest, GoldengateDeploymentEnvironment> - getGoldengateDeploymentEnvironmentSettings() { - return getGoldengateDeploymentEnvironmentSettings; - } - /** * Returns the object with the settings used for calls to listGoldengateDeploymentEnvironments. */ @@ -3282,12 +3249,6 @@ public UnaryCallSettings deleteDbSystemSetting return listGoldengateDeploymentEnvironmentsSettings; } - /** Returns the object with the settings used for calls to getGoldengateConnectionType. */ - public UnaryCallSettings - getGoldengateConnectionTypeSettings() { - return getGoldengateConnectionTypeSettings; - } - /** Returns the object with the settings used for calls to listGoldengateConnectionTypes. */ public PagedCallSettings< ListGoldengateConnectionTypesRequest, @@ -3633,20 +3594,12 @@ protected OracleDatabaseStubSettings(Builder settingsBuilder) throws IOException settingsBuilder.deleteGoldengateConnectionSettings().build(); deleteGoldengateConnectionOperationSettings = settingsBuilder.deleteGoldengateConnectionOperationSettings().build(); - getGoldengateDeploymentVersionSettings = - settingsBuilder.getGoldengateDeploymentVersionSettings().build(); listGoldengateDeploymentVersionsSettings = settingsBuilder.listGoldengateDeploymentVersionsSettings().build(); - getGoldengateDeploymentTypeSettings = - settingsBuilder.getGoldengateDeploymentTypeSettings().build(); listGoldengateDeploymentTypesSettings = settingsBuilder.listGoldengateDeploymentTypesSettings().build(); - getGoldengateDeploymentEnvironmentSettings = - settingsBuilder.getGoldengateDeploymentEnvironmentSettings().build(); listGoldengateDeploymentEnvironmentsSettings = settingsBuilder.listGoldengateDeploymentEnvironmentsSettings().build(); - getGoldengateConnectionTypeSettings = - settingsBuilder.getGoldengateConnectionTypeSettings().build(); listGoldengateConnectionTypesSettings = settingsBuilder.listGoldengateConnectionTypesSettings().build(); listDbVersionsSettings = settingsBuilder.listDbVersionsSettings().build(); @@ -3947,33 +3900,21 @@ public static class Builder extends StubSettings.Builder deleteGoldengateConnectionOperationSettings; - private final UnaryCallSettings.Builder< - GetGoldengateDeploymentVersionRequest, GoldengateDeploymentVersion> - getGoldengateDeploymentVersionSettings; private final PagedCallSettings.Builder< ListGoldengateDeploymentVersionsRequest, ListGoldengateDeploymentVersionsResponse, ListGoldengateDeploymentVersionsPagedResponse> listGoldengateDeploymentVersionsSettings; - private final UnaryCallSettings.Builder< - GetGoldengateDeploymentTypeRequest, GoldengateDeploymentType> - getGoldengateDeploymentTypeSettings; private final PagedCallSettings.Builder< ListGoldengateDeploymentTypesRequest, ListGoldengateDeploymentTypesResponse, ListGoldengateDeploymentTypesPagedResponse> listGoldengateDeploymentTypesSettings; - private final UnaryCallSettings.Builder< - GetGoldengateDeploymentEnvironmentRequest, GoldengateDeploymentEnvironment> - getGoldengateDeploymentEnvironmentSettings; private final PagedCallSettings.Builder< ListGoldengateDeploymentEnvironmentsRequest, ListGoldengateDeploymentEnvironmentsResponse, ListGoldengateDeploymentEnvironmentsPagedResponse> listGoldengateDeploymentEnvironmentsSettings; - private final UnaryCallSettings.Builder< - GetGoldengateConnectionTypeRequest, GoldengateConnectionType> - getGoldengateConnectionTypeSettings; private final PagedCallSettings.Builder< ListGoldengateConnectionTypesRequest, ListGoldengateConnectionTypesResponse, @@ -4174,16 +4115,12 @@ protected Builder(ClientContext clientContext) { createGoldengateConnectionOperationSettings = OperationCallSettings.newBuilder(); deleteGoldengateConnectionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteGoldengateConnectionOperationSettings = OperationCallSettings.newBuilder(); - getGoldengateDeploymentVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listGoldengateDeploymentVersionsSettings = PagedCallSettings.newBuilder(LIST_GOLDENGATE_DEPLOYMENT_VERSIONS_PAGE_STR_FACT); - getGoldengateDeploymentTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listGoldengateDeploymentTypesSettings = PagedCallSettings.newBuilder(LIST_GOLDENGATE_DEPLOYMENT_TYPES_PAGE_STR_FACT); - getGoldengateDeploymentEnvironmentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listGoldengateDeploymentEnvironmentsSettings = PagedCallSettings.newBuilder(LIST_GOLDENGATE_DEPLOYMENT_ENVIRONMENTS_PAGE_STR_FACT); - getGoldengateConnectionTypeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listGoldengateConnectionTypesSettings = PagedCallSettings.newBuilder(LIST_GOLDENGATE_CONNECTION_TYPES_PAGE_STR_FACT); listDbVersionsSettings = PagedCallSettings.newBuilder(LIST_DB_VERSIONS_PAGE_STR_FACT); @@ -4270,13 +4207,9 @@ protected Builder(ClientContext clientContext) { getGoldengateConnectionSettings, createGoldengateConnectionSettings, deleteGoldengateConnectionSettings, - getGoldengateDeploymentVersionSettings, listGoldengateDeploymentVersionsSettings, - getGoldengateDeploymentTypeSettings, listGoldengateDeploymentTypesSettings, - getGoldengateDeploymentEnvironmentSettings, listGoldengateDeploymentEnvironmentsSettings, - getGoldengateConnectionTypeSettings, listGoldengateConnectionTypesSettings, listDbVersionsSettings, listDatabaseCharacterSetsSettings, @@ -4428,20 +4361,12 @@ protected Builder(OracleDatabaseStubSettings settings) { deleteGoldengateConnectionSettings = settings.deleteGoldengateConnectionSettings.toBuilder(); deleteGoldengateConnectionOperationSettings = settings.deleteGoldengateConnectionOperationSettings.toBuilder(); - getGoldengateDeploymentVersionSettings = - settings.getGoldengateDeploymentVersionSettings.toBuilder(); listGoldengateDeploymentVersionsSettings = settings.listGoldengateDeploymentVersionsSettings.toBuilder(); - getGoldengateDeploymentTypeSettings = - settings.getGoldengateDeploymentTypeSettings.toBuilder(); listGoldengateDeploymentTypesSettings = settings.listGoldengateDeploymentTypesSettings.toBuilder(); - getGoldengateDeploymentEnvironmentSettings = - settings.getGoldengateDeploymentEnvironmentSettings.toBuilder(); listGoldengateDeploymentEnvironmentsSettings = settings.listGoldengateDeploymentEnvironmentsSettings.toBuilder(); - getGoldengateConnectionTypeSettings = - settings.getGoldengateConnectionTypeSettings.toBuilder(); listGoldengateConnectionTypesSettings = settings.listGoldengateConnectionTypesSettings.toBuilder(); listDbVersionsSettings = settings.listDbVersionsSettings.toBuilder(); @@ -4531,13 +4456,9 @@ protected Builder(OracleDatabaseStubSettings settings) { getGoldengateConnectionSettings, createGoldengateConnectionSettings, deleteGoldengateConnectionSettings, - getGoldengateDeploymentVersionSettings, listGoldengateDeploymentVersionsSettings, - getGoldengateDeploymentTypeSettings, listGoldengateDeploymentTypesSettings, - getGoldengateDeploymentEnvironmentSettings, listGoldengateDeploymentEnvironmentsSettings, - getGoldengateConnectionTypeSettings, listGoldengateConnectionTypesSettings, listDbVersionsSettings, listDatabaseCharacterSetsSettings, @@ -4905,41 +4826,21 @@ 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 - .getGoldengateDeploymentVersionSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - builder .listGoldengateDeploymentVersionsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - builder - .getGoldengateDeploymentTypeSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - builder .listGoldengateDeploymentTypesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - builder - .getGoldengateDeploymentEnvironmentSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - builder .listGoldengateDeploymentEnvironmentsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - builder - .getGoldengateConnectionTypeSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - builder .listGoldengateConnectionTypesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -6468,13 +6369,6 @@ public UnaryCallSettings.Builder deleteDbSyste return deleteGoldengateConnectionOperationSettings; } - /** Returns the builder for the settings used for calls to getGoldengateDeploymentVersion. */ - public UnaryCallSettings.Builder< - GetGoldengateDeploymentVersionRequest, GoldengateDeploymentVersion> - getGoldengateDeploymentVersionSettings() { - return getGoldengateDeploymentVersionSettings; - } - /** Returns the builder for the settings used for calls to listGoldengateDeploymentVersions. */ public PagedCallSettings.Builder< ListGoldengateDeploymentVersionsRequest, @@ -6484,12 +6378,6 @@ public UnaryCallSettings.Builder deleteDbSyste return listGoldengateDeploymentVersionsSettings; } - /** Returns the builder for the settings used for calls to getGoldengateDeploymentType. */ - public UnaryCallSettings.Builder - getGoldengateDeploymentTypeSettings() { - return getGoldengateDeploymentTypeSettings; - } - /** Returns the builder for the settings used for calls to listGoldengateDeploymentTypes. */ public PagedCallSettings.Builder< ListGoldengateDeploymentTypesRequest, @@ -6499,15 +6387,6 @@ public UnaryCallSettings.Builder deleteDbSyste return listGoldengateDeploymentTypesSettings; } - /** - * Returns the builder for the settings used for calls to getGoldengateDeploymentEnvironment. - */ - public UnaryCallSettings.Builder< - GetGoldengateDeploymentEnvironmentRequest, GoldengateDeploymentEnvironment> - getGoldengateDeploymentEnvironmentSettings() { - return getGoldengateDeploymentEnvironmentSettings; - } - /** * Returns the builder for the settings used for calls to listGoldengateDeploymentEnvironments. */ @@ -6519,12 +6398,6 @@ public UnaryCallSettings.Builder deleteDbSyste return listGoldengateDeploymentEnvironmentsSettings; } - /** Returns the builder for the settings used for calls to getGoldengateConnectionType. */ - public UnaryCallSettings.Builder - getGoldengateConnectionTypeSettings() { - return getGoldengateConnectionTypeSettings; - } - /** Returns the builder for the settings used for calls to listGoldengateConnectionTypes. */ public PagedCallSettings.Builder< ListGoldengateConnectionTypesRequest, 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 09b62a41d461..c910977dd7f2 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 @@ -2618,42 +2618,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentRequest", "queryAllDeclaredConstructors": true, @@ -2672,42 +2636,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.oracledatabase.v1.GetOdbNetworkRequest", "queryAllDeclaredConstructors": true, diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java index 48727f874b20..90a35e28cda9 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/MockOracleDatabaseImpl.java @@ -1505,29 +1505,6 @@ public void deleteGoldengateConnection( } } - @Override - public void getGoldengateDeploymentVersion( - GetGoldengateDeploymentVersionRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof GoldengateDeploymentVersion) { - requests.add(request); - responseObserver.onNext(((GoldengateDeploymentVersion) 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 GetGoldengateDeploymentVersion," - + " expected %s or %s", - response == null ? "null" : response.getClass().getName(), - GoldengateDeploymentVersion.class.getName(), - Exception.class.getName()))); - } - } - @Override public void listGoldengateDeploymentVersions( ListGoldengateDeploymentVersionsRequest request, @@ -1551,29 +1528,6 @@ public void listGoldengateDeploymentVersions( } } - @Override - public void getGoldengateDeploymentType( - GetGoldengateDeploymentTypeRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof GoldengateDeploymentType) { - requests.add(request); - responseObserver.onNext(((GoldengateDeploymentType) 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 GetGoldengateDeploymentType, expected" - + " %s or %s", - response == null ? "null" : response.getClass().getName(), - GoldengateDeploymentType.class.getName(), - Exception.class.getName()))); - } - } - @Override public void listGoldengateDeploymentTypes( ListGoldengateDeploymentTypesRequest request, @@ -1597,29 +1551,6 @@ public void listGoldengateDeploymentTypes( } } - @Override - public void getGoldengateDeploymentEnvironment( - GetGoldengateDeploymentEnvironmentRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof GoldengateDeploymentEnvironment) { - requests.add(request); - responseObserver.onNext(((GoldengateDeploymentEnvironment) 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 GetGoldengateDeploymentEnvironment," - + " expected %s or %s", - response == null ? "null" : response.getClass().getName(), - GoldengateDeploymentEnvironment.class.getName(), - Exception.class.getName()))); - } - } - @Override public void listGoldengateDeploymentEnvironments( ListGoldengateDeploymentEnvironmentsRequest request, @@ -1643,29 +1574,6 @@ public void listGoldengateDeploymentEnvironments( } } - @Override - public void getGoldengateConnectionType( - GetGoldengateConnectionTypeRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof GoldengateConnectionType) { - requests.add(request); - responseObserver.onNext(((GoldengateConnectionType) 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 GetGoldengateConnectionType, expected" - + " %s or %s", - response == null ? "null" : response.getClass().getName(), - GoldengateConnectionType.class.getName(), - Exception.class.getName()))); - } - } - @Override public void listGoldengateConnectionTypes( ListGoldengateConnectionTypesRequest request, diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java index 471a8f4be4ca..7d4f200f4821 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientHttpJsonTest.java @@ -7946,110 +7946,6 @@ public void deleteGoldengateConnectionExceptionTest2() throws Exception { } } - @Test - public void getGoldengateDeploymentVersionTest() throws Exception { - GoldengateDeploymentVersion expectedResponse = - GoldengateDeploymentVersion.newBuilder() - .setName( - GoldengateDeploymentVersionName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]") - .toString()) - .setOcid("ocid3405295") - .setProperties(GoldengateDeploymentVersionProperties.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - GoldengateDeploymentVersionName name = - GoldengateDeploymentVersionName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]"); - - GoldengateDeploymentVersion actualResponse = client.getGoldengateDeploymentVersion(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 getGoldengateDeploymentVersionExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GoldengateDeploymentVersionName name = - GoldengateDeploymentVersionName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]"); - client.getGoldengateDeploymentVersion(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGoldengateDeploymentVersionTest2() throws Exception { - GoldengateDeploymentVersion expectedResponse = - GoldengateDeploymentVersion.newBuilder() - .setName( - GoldengateDeploymentVersionName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]") - .toString()) - .setOcid("ocid3405295") - .setProperties(GoldengateDeploymentVersionProperties.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-820/locations/location-820/goldengateDeploymentVersions/goldengateDeploymentVersion-820"; - - GoldengateDeploymentVersion actualResponse = client.getGoldengateDeploymentVersion(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 getGoldengateDeploymentVersionExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-820/locations/location-820/goldengateDeploymentVersions/goldengateDeploymentVersion-820"; - client.getGoldengateDeploymentVersion(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - @Test public void listGoldengateDeploymentVersionsTest() throws Exception { GoldengateDeploymentVersion responsesElement = GoldengateDeploymentVersion.newBuilder().build(); @@ -8156,121 +8052,6 @@ public void listGoldengateDeploymentVersionsExceptionTest2() throws Exception { } } - @Test - public void getGoldengateDeploymentTypeTest() throws Exception { - GoldengateDeploymentType expectedResponse = - GoldengateDeploymentType.newBuilder() - .setName( - GoldengateDeploymentTypeName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]") - .toString()) - .addAllConnectionTypes(new ArrayList()) - .setDisplayName("displayName1714148973") - .setOggVersion("oggVersion-685279159") - .addAllSourceTechnologies(new ArrayList()) - .addAllSupportedCapabilities(new ArrayList()) - .setSupportedTechnologiesUrl("supportedTechnologiesUrl-159890473") - .addAllTargetTechnologies(new ArrayList()) - .setDefaultUsername("defaultUsername1732375095") - .build(); - mockService.addResponse(expectedResponse); - - GoldengateDeploymentTypeName name = - GoldengateDeploymentTypeName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]"); - - GoldengateDeploymentType actualResponse = client.getGoldengateDeploymentType(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 getGoldengateDeploymentTypeExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GoldengateDeploymentTypeName name = - GoldengateDeploymentTypeName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]"); - client.getGoldengateDeploymentType(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGoldengateDeploymentTypeTest2() throws Exception { - GoldengateDeploymentType expectedResponse = - GoldengateDeploymentType.newBuilder() - .setName( - GoldengateDeploymentTypeName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]") - .toString()) - .addAllConnectionTypes(new ArrayList()) - .setDisplayName("displayName1714148973") - .setOggVersion("oggVersion-685279159") - .addAllSourceTechnologies(new ArrayList()) - .addAllSupportedCapabilities(new ArrayList()) - .setSupportedTechnologiesUrl("supportedTechnologiesUrl-159890473") - .addAllTargetTechnologies(new ArrayList()) - .setDefaultUsername("defaultUsername1732375095") - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-4950/locations/location-4950/goldengateDeploymentTypes/goldengateDeploymentType-4950"; - - GoldengateDeploymentType actualResponse = client.getGoldengateDeploymentType(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 getGoldengateDeploymentTypeExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-4950/locations/location-4950/goldengateDeploymentTypes/goldengateDeploymentType-4950"; - client.getGoldengateDeploymentType(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - @Test public void listGoldengateDeploymentTypesTest() throws Exception { GoldengateDeploymentType responsesElement = GoldengateDeploymentType.newBuilder().build(); @@ -8375,124 +8156,6 @@ public void listGoldengateDeploymentTypesExceptionTest2() throws Exception { } } - @Test - public void getGoldengateDeploymentEnvironmentTest() throws Exception { - GoldengateDeploymentEnvironment expectedResponse = - GoldengateDeploymentEnvironment.newBuilder() - .setName( - GoldengateDeploymentEnvironmentName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]") - .toString()) - .setDisplayName("displayName1714148973") - .setDefaultCpuCoreCount(731109668) - .setAutoScalingEnabled(true) - .setMaxCpuCoreCount(1499430817) - .setMemoryGbPerCpuCore(-1825740194) - .setMinCpuCoreCount(251380979) - .setNetworkBandwidthGbpsPerCpuCore(-1374535526) - .setStorageUsageLimitGbPerCpuCore(-1737003722) - .build(); - mockService.addResponse(expectedResponse); - - GoldengateDeploymentEnvironmentName name = - GoldengateDeploymentEnvironmentName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]"); - - GoldengateDeploymentEnvironment actualResponse = - client.getGoldengateDeploymentEnvironment(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 getGoldengateDeploymentEnvironmentExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GoldengateDeploymentEnvironmentName name = - GoldengateDeploymentEnvironmentName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]"); - client.getGoldengateDeploymentEnvironment(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGoldengateDeploymentEnvironmentTest2() throws Exception { - GoldengateDeploymentEnvironment expectedResponse = - GoldengateDeploymentEnvironment.newBuilder() - .setName( - GoldengateDeploymentEnvironmentName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]") - .toString()) - .setDisplayName("displayName1714148973") - .setDefaultCpuCoreCount(731109668) - .setAutoScalingEnabled(true) - .setMaxCpuCoreCount(1499430817) - .setMemoryGbPerCpuCore(-1825740194) - .setMinCpuCoreCount(251380979) - .setNetworkBandwidthGbpsPerCpuCore(-1374535526) - .setStorageUsageLimitGbPerCpuCore(-1737003722) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-1463/locations/location-1463/goldengateDeploymentEnvironments/goldengateDeploymentEnvironment-1463"; - - GoldengateDeploymentEnvironment actualResponse = - client.getGoldengateDeploymentEnvironment(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 getGoldengateDeploymentEnvironmentExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-1463/locations/location-1463/goldengateDeploymentEnvironments/goldengateDeploymentEnvironment-1463"; - client.getGoldengateDeploymentEnvironment(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - @Test public void listGoldengateDeploymentEnvironmentsTest() throws Exception { GoldengateDeploymentEnvironment responsesElement = @@ -8601,107 +8264,6 @@ public void listGoldengateDeploymentEnvironmentsExceptionTest2() throws Exceptio } } - @Test - public void getGoldengateConnectionTypeTest() throws Exception { - GoldengateConnectionType expectedResponse = - GoldengateConnectionType.newBuilder() - .setName( - GoldengateConnectionTypeName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]") - .toString()) - .addAllTechnologyTypes(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - GoldengateConnectionTypeName name = - GoldengateConnectionTypeName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]"); - - GoldengateConnectionType actualResponse = client.getGoldengateConnectionType(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 getGoldengateConnectionTypeExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GoldengateConnectionTypeName name = - GoldengateConnectionTypeName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]"); - client.getGoldengateConnectionType(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGoldengateConnectionTypeTest2() throws Exception { - GoldengateConnectionType expectedResponse = - GoldengateConnectionType.newBuilder() - .setName( - GoldengateConnectionTypeName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]") - .toString()) - .addAllTechnologyTypes(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-8771/locations/location-8771/goldengateConnectionTypes/goldengateConnectionType-8771"; - - GoldengateConnectionType actualResponse = client.getGoldengateConnectionType(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 getGoldengateConnectionTypeExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-8771/locations/location-8771/goldengateConnectionTypes/goldengateConnectionType-8771"; - client.getGoldengateConnectionType(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - @Test public void listGoldengateConnectionTypesTest() throws Exception { GoldengateConnectionType responsesElement = GoldengateConnectionType.newBuilder().build(); diff --git a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java index 1d2451deddb1..866c29d19bc9 100644 --- a/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java +++ b/java-oracledatabase/google-cloud-oracledatabase/src/test/java/com/google/cloud/oracledatabase/v1/OracleDatabaseClientTest.java @@ -7345,98 +7345,6 @@ public void deleteGoldengateConnectionExceptionTest2() throws Exception { } } - @Test - public void getGoldengateDeploymentVersionTest() throws Exception { - GoldengateDeploymentVersion expectedResponse = - GoldengateDeploymentVersion.newBuilder() - .setName( - GoldengateDeploymentVersionName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]") - .toString()) - .setOcid("ocid3405295") - .setProperties(GoldengateDeploymentVersionProperties.newBuilder().build()) - .build(); - mockOracleDatabase.addResponse(expectedResponse); - - GoldengateDeploymentVersionName name = - GoldengateDeploymentVersionName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]"); - - GoldengateDeploymentVersion actualResponse = client.getGoldengateDeploymentVersion(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockOracleDatabase.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGoldengateDeploymentVersionRequest actualRequest = - ((GetGoldengateDeploymentVersionRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGoldengateDeploymentVersionExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockOracleDatabase.addException(exception); - - try { - GoldengateDeploymentVersionName name = - GoldengateDeploymentVersionName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]"); - client.getGoldengateDeploymentVersion(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGoldengateDeploymentVersionTest2() throws Exception { - GoldengateDeploymentVersion expectedResponse = - GoldengateDeploymentVersion.newBuilder() - .setName( - GoldengateDeploymentVersionName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]") - .toString()) - .setOcid("ocid3405295") - .setProperties(GoldengateDeploymentVersionProperties.newBuilder().build()) - .build(); - mockOracleDatabase.addResponse(expectedResponse); - - String name = "name3373707"; - - GoldengateDeploymentVersion actualResponse = client.getGoldengateDeploymentVersion(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockOracleDatabase.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGoldengateDeploymentVersionRequest actualRequest = - ((GetGoldengateDeploymentVersionRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGoldengateDeploymentVersionExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockOracleDatabase.addException(exception); - - try { - String name = "name3373707"; - client.getGoldengateDeploymentVersion(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - @Test public void listGoldengateDeploymentVersionsTest() throws Exception { GoldengateDeploymentVersion responsesElement = GoldengateDeploymentVersion.newBuilder().build(); @@ -7533,109 +7441,6 @@ public void listGoldengateDeploymentVersionsExceptionTest2() throws Exception { } } - @Test - public void getGoldengateDeploymentTypeTest() throws Exception { - GoldengateDeploymentType expectedResponse = - GoldengateDeploymentType.newBuilder() - .setName( - GoldengateDeploymentTypeName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]") - .toString()) - .addAllConnectionTypes(new ArrayList()) - .setDisplayName("displayName1714148973") - .setOggVersion("oggVersion-685279159") - .addAllSourceTechnologies(new ArrayList()) - .addAllSupportedCapabilities(new ArrayList()) - .setSupportedTechnologiesUrl("supportedTechnologiesUrl-159890473") - .addAllTargetTechnologies(new ArrayList()) - .setDefaultUsername("defaultUsername1732375095") - .build(); - mockOracleDatabase.addResponse(expectedResponse); - - GoldengateDeploymentTypeName name = - GoldengateDeploymentTypeName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]"); - - GoldengateDeploymentType actualResponse = client.getGoldengateDeploymentType(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockOracleDatabase.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGoldengateDeploymentTypeRequest actualRequest = - ((GetGoldengateDeploymentTypeRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGoldengateDeploymentTypeExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockOracleDatabase.addException(exception); - - try { - GoldengateDeploymentTypeName name = - GoldengateDeploymentTypeName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]"); - client.getGoldengateDeploymentType(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGoldengateDeploymentTypeTest2() throws Exception { - GoldengateDeploymentType expectedResponse = - GoldengateDeploymentType.newBuilder() - .setName( - GoldengateDeploymentTypeName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_TYPE]") - .toString()) - .addAllConnectionTypes(new ArrayList()) - .setDisplayName("displayName1714148973") - .setOggVersion("oggVersion-685279159") - .addAllSourceTechnologies(new ArrayList()) - .addAllSupportedCapabilities(new ArrayList()) - .setSupportedTechnologiesUrl("supportedTechnologiesUrl-159890473") - .addAllTargetTechnologies(new ArrayList()) - .setDefaultUsername("defaultUsername1732375095") - .build(); - mockOracleDatabase.addResponse(expectedResponse); - - String name = "name3373707"; - - GoldengateDeploymentType actualResponse = client.getGoldengateDeploymentType(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockOracleDatabase.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGoldengateDeploymentTypeRequest actualRequest = - ((GetGoldengateDeploymentTypeRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGoldengateDeploymentTypeExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockOracleDatabase.addException(exception); - - try { - String name = "name3373707"; - client.getGoldengateDeploymentType(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - @Test public void listGoldengateDeploymentTypesTest() throws Exception { GoldengateDeploymentType responsesElement = GoldengateDeploymentType.newBuilder().build(); @@ -7730,112 +7535,6 @@ public void listGoldengateDeploymentTypesExceptionTest2() throws Exception { } } - @Test - public void getGoldengateDeploymentEnvironmentTest() throws Exception { - GoldengateDeploymentEnvironment expectedResponse = - GoldengateDeploymentEnvironment.newBuilder() - .setName( - GoldengateDeploymentEnvironmentName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]") - .toString()) - .setDisplayName("displayName1714148973") - .setDefaultCpuCoreCount(731109668) - .setAutoScalingEnabled(true) - .setMaxCpuCoreCount(1499430817) - .setMemoryGbPerCpuCore(-1825740194) - .setMinCpuCoreCount(251380979) - .setNetworkBandwidthGbpsPerCpuCore(-1374535526) - .setStorageUsageLimitGbPerCpuCore(-1737003722) - .build(); - mockOracleDatabase.addResponse(expectedResponse); - - GoldengateDeploymentEnvironmentName name = - GoldengateDeploymentEnvironmentName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]"); - - GoldengateDeploymentEnvironment actualResponse = - client.getGoldengateDeploymentEnvironment(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockOracleDatabase.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGoldengateDeploymentEnvironmentRequest actualRequest = - ((GetGoldengateDeploymentEnvironmentRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGoldengateDeploymentEnvironmentExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockOracleDatabase.addException(exception); - - try { - GoldengateDeploymentEnvironmentName name = - GoldengateDeploymentEnvironmentName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]"); - client.getGoldengateDeploymentEnvironment(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGoldengateDeploymentEnvironmentTest2() throws Exception { - GoldengateDeploymentEnvironment expectedResponse = - GoldengateDeploymentEnvironment.newBuilder() - .setName( - GoldengateDeploymentEnvironmentName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]") - .toString()) - .setDisplayName("displayName1714148973") - .setDefaultCpuCoreCount(731109668) - .setAutoScalingEnabled(true) - .setMaxCpuCoreCount(1499430817) - .setMemoryGbPerCpuCore(-1825740194) - .setMinCpuCoreCount(251380979) - .setNetworkBandwidthGbpsPerCpuCore(-1374535526) - .setStorageUsageLimitGbPerCpuCore(-1737003722) - .build(); - mockOracleDatabase.addResponse(expectedResponse); - - String name = "name3373707"; - - GoldengateDeploymentEnvironment actualResponse = - client.getGoldengateDeploymentEnvironment(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockOracleDatabase.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGoldengateDeploymentEnvironmentRequest actualRequest = - ((GetGoldengateDeploymentEnvironmentRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGoldengateDeploymentEnvironmentExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockOracleDatabase.addException(exception); - - try { - String name = "name3373707"; - client.getGoldengateDeploymentEnvironment(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - @Test public void listGoldengateDeploymentEnvironmentsTest() throws Exception { GoldengateDeploymentEnvironment responsesElement = @@ -7934,95 +7633,6 @@ public void listGoldengateDeploymentEnvironmentsExceptionTest2() throws Exceptio } } - @Test - public void getGoldengateConnectionTypeTest() throws Exception { - GoldengateConnectionType expectedResponse = - GoldengateConnectionType.newBuilder() - .setName( - GoldengateConnectionTypeName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]") - .toString()) - .addAllTechnologyTypes(new ArrayList()) - .build(); - mockOracleDatabase.addResponse(expectedResponse); - - GoldengateConnectionTypeName name = - GoldengateConnectionTypeName.of("[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]"); - - GoldengateConnectionType actualResponse = client.getGoldengateConnectionType(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockOracleDatabase.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGoldengateConnectionTypeRequest actualRequest = - ((GetGoldengateConnectionTypeRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGoldengateConnectionTypeExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockOracleDatabase.addException(exception); - - try { - GoldengateConnectionTypeName name = - GoldengateConnectionTypeName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]"); - client.getGoldengateConnectionType(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getGoldengateConnectionTypeTest2() throws Exception { - GoldengateConnectionType expectedResponse = - GoldengateConnectionType.newBuilder() - .setName( - GoldengateConnectionTypeName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_CONNECTION_TYPE]") - .toString()) - .addAllTechnologyTypes(new ArrayList()) - .build(); - mockOracleDatabase.addResponse(expectedResponse); - - String name = "name3373707"; - - GoldengateConnectionType actualResponse = client.getGoldengateConnectionType(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockOracleDatabase.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetGoldengateConnectionTypeRequest actualRequest = - ((GetGoldengateConnectionTypeRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getGoldengateConnectionTypeExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockOracleDatabase.addException(exception); - - try { - String name = "name3373707"; - client.getGoldengateConnectionType(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - @Test public void listGoldengateConnectionTypesTest() throws Exception { GoldengateConnectionType responsesElement = GoldengateConnectionType.newBuilder().build(); diff --git a/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java b/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java index d9e38bad2d32..6de5205f72cc 100644 --- a/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java +++ b/java-oracledatabase/grpc-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/OracleDatabaseGrpc.java @@ -3308,59 +3308,6 @@ private OracleDatabaseGrpc() {} return getDeleteGoldengateConnectionMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest, - com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion> - getGetGoldengateDeploymentVersionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGoldengateDeploymentVersion", - requestType = com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest.class, - responseType = com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest, - com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion> - getGetGoldengateDeploymentVersionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest, - com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion> - getGetGoldengateDeploymentVersionMethod; - if ((getGetGoldengateDeploymentVersionMethod = - OracleDatabaseGrpc.getGetGoldengateDeploymentVersionMethod) - == null) { - synchronized (OracleDatabaseGrpc.class) { - if ((getGetGoldengateDeploymentVersionMethod = - OracleDatabaseGrpc.getGetGoldengateDeploymentVersionMethod) - == null) { - OracleDatabaseGrpc.getGetGoldengateDeploymentVersionMethod = - getGetGoldengateDeploymentVersionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetGoldengateDeploymentVersion")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.oracledatabase.v1 - .GetGoldengateDeploymentVersionRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion - .getDefaultInstance())) - .setSchemaDescriptor( - new OracleDatabaseMethodDescriptorSupplier( - "GetGoldengateDeploymentVersion")) - .build(); - } - } - } - return getGetGoldengateDeploymentVersionMethod; - } - private static volatile io.grpc.MethodDescriptor< com.google.cloud.oracledatabase.v1.ListGoldengateDeploymentVersionsRequest, com.google.cloud.oracledatabase.v1.ListGoldengateDeploymentVersionsResponse> @@ -3417,58 +3364,6 @@ private OracleDatabaseGrpc() {} return getListGoldengateDeploymentVersionsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest, - com.google.cloud.oracledatabase.v1.GoldengateDeploymentType> - getGetGoldengateDeploymentTypeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGoldengateDeploymentType", - requestType = com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest.class, - responseType = com.google.cloud.oracledatabase.v1.GoldengateDeploymentType.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest, - com.google.cloud.oracledatabase.v1.GoldengateDeploymentType> - getGetGoldengateDeploymentTypeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest, - com.google.cloud.oracledatabase.v1.GoldengateDeploymentType> - getGetGoldengateDeploymentTypeMethod; - if ((getGetGoldengateDeploymentTypeMethod = - OracleDatabaseGrpc.getGetGoldengateDeploymentTypeMethod) - == null) { - synchronized (OracleDatabaseGrpc.class) { - if ((getGetGoldengateDeploymentTypeMethod = - OracleDatabaseGrpc.getGetGoldengateDeploymentTypeMethod) - == null) { - OracleDatabaseGrpc.getGetGoldengateDeploymentTypeMethod = - getGetGoldengateDeploymentTypeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetGoldengateDeploymentType")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.oracledatabase.v1.GoldengateDeploymentType - .getDefaultInstance())) - .setSchemaDescriptor( - new OracleDatabaseMethodDescriptorSupplier("GetGoldengateDeploymentType")) - .build(); - } - } - } - return getGetGoldengateDeploymentTypeMethod; - } - private static volatile io.grpc.MethodDescriptor< com.google.cloud.oracledatabase.v1.ListGoldengateDeploymentTypesRequest, com.google.cloud.oracledatabase.v1.ListGoldengateDeploymentTypesResponse> @@ -3522,62 +3417,6 @@ private OracleDatabaseGrpc() {} return getListGoldengateDeploymentTypesMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest, - com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment> - getGetGoldengateDeploymentEnvironmentMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGoldengateDeploymentEnvironment", - requestType = - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest.class, - responseType = com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest, - com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment> - getGetGoldengateDeploymentEnvironmentMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest, - com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment> - getGetGoldengateDeploymentEnvironmentMethod; - if ((getGetGoldengateDeploymentEnvironmentMethod = - OracleDatabaseGrpc.getGetGoldengateDeploymentEnvironmentMethod) - == null) { - synchronized (OracleDatabaseGrpc.class) { - if ((getGetGoldengateDeploymentEnvironmentMethod = - OracleDatabaseGrpc.getGetGoldengateDeploymentEnvironmentMethod) - == null) { - OracleDatabaseGrpc.getGetGoldengateDeploymentEnvironmentMethod = - getGetGoldengateDeploymentEnvironmentMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName( - SERVICE_NAME, "GetGoldengateDeploymentEnvironment")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.oracledatabase.v1 - .GetGoldengateDeploymentEnvironmentRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment - .getDefaultInstance())) - .setSchemaDescriptor( - new OracleDatabaseMethodDescriptorSupplier( - "GetGoldengateDeploymentEnvironment")) - .build(); - } - } - } - return getGetGoldengateDeploymentEnvironmentMethod; - } - private static volatile io.grpc.MethodDescriptor< com.google.cloud.oracledatabase.v1.ListGoldengateDeploymentEnvironmentsRequest, com.google.cloud.oracledatabase.v1.ListGoldengateDeploymentEnvironmentsResponse> @@ -3638,58 +3477,6 @@ private OracleDatabaseGrpc() {} return getListGoldengateDeploymentEnvironmentsMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest, - com.google.cloud.oracledatabase.v1.GoldengateConnectionType> - getGetGoldengateConnectionTypeMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGoldengateConnectionType", - requestType = com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest.class, - responseType = com.google.cloud.oracledatabase.v1.GoldengateConnectionType.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest, - com.google.cloud.oracledatabase.v1.GoldengateConnectionType> - getGetGoldengateConnectionTypeMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest, - com.google.cloud.oracledatabase.v1.GoldengateConnectionType> - getGetGoldengateConnectionTypeMethod; - if ((getGetGoldengateConnectionTypeMethod = - OracleDatabaseGrpc.getGetGoldengateConnectionTypeMethod) - == null) { - synchronized (OracleDatabaseGrpc.class) { - if ((getGetGoldengateConnectionTypeMethod = - OracleDatabaseGrpc.getGetGoldengateConnectionTypeMethod) - == null) { - OracleDatabaseGrpc.getGetGoldengateConnectionTypeMethod = - getGetGoldengateConnectionTypeMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetGoldengateConnectionType")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.oracledatabase.v1.GoldengateConnectionType - .getDefaultInstance())) - .setSchemaDescriptor( - new OracleDatabaseMethodDescriptorSupplier("GetGoldengateConnectionType")) - .build(); - } - } - } - return getGetGoldengateConnectionTypeMethod; - } - private static volatile io.grpc.MethodDescriptor< com.google.cloud.oracledatabase.v1.ListGoldengateConnectionTypesRequest, com.google.cloud.oracledatabase.v1.ListGoldengateConnectionTypesResponse> @@ -5165,21 +4952,6 @@ default void deleteGoldengateConnection( getDeleteGoldengateConnectionMethod(), responseObserver); } - /** - * - * - *
            -     * Gets details of a single GoldengateDeploymentVersion.
            -     * 
            - */ - default void getGoldengateDeploymentVersion( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetGoldengateDeploymentVersionMethod(), responseObserver); - } - /** * * @@ -5196,21 +4968,6 @@ default void listGoldengateDeploymentVersions( getListGoldengateDeploymentVersionsMethod(), responseObserver); } - /** - * - * - *
            -     * Gets details of a single GoldenGateDeploymentType.
            -     * 
            - */ - default void getGoldengateDeploymentType( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetGoldengateDeploymentTypeMethod(), responseObserver); - } - /** * * @@ -5227,22 +4984,6 @@ default void listGoldengateDeploymentTypes( getListGoldengateDeploymentTypesMethod(), responseObserver); } - /** - * - * - *
            -     * Gets details of a single GoldengateDeploymentEnvironment.
            -     * 
            - */ - default void getGoldengateDeploymentEnvironment( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetGoldengateDeploymentEnvironmentMethod(), responseObserver); - } - /** * * @@ -5259,21 +5000,6 @@ default void listGoldengateDeploymentEnvironments( getListGoldengateDeploymentEnvironmentsMethod(), responseObserver); } - /** - * - * - *
            -     * Gets details of a single GoldengateConnectionType.
            -     * 
            - */ - default void getGoldengateConnectionType( - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetGoldengateConnectionTypeMethod(), responseObserver); - } - /** * * @@ -6543,23 +6269,6 @@ public void deleteGoldengateConnection( responseObserver); } - /** - * - * - *
            -     * Gets details of a single GoldengateDeploymentVersion.
            -     * 
            - */ - public void getGoldengateDeploymentVersion( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGoldengateDeploymentVersionMethod(), getCallOptions()), - request, - responseObserver); - } - /** * * @@ -6578,23 +6287,6 @@ public void listGoldengateDeploymentVersions( responseObserver); } - /** - * - * - *
            -     * Gets details of a single GoldenGateDeploymentType.
            -     * 
            - */ - public void getGoldengateDeploymentType( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGoldengateDeploymentTypeMethod(), getCallOptions()), - request, - responseObserver); - } - /** * * @@ -6613,24 +6305,6 @@ public void listGoldengateDeploymentTypes( responseObserver); } - /** - * - * - *
            -     * Gets details of a single GoldengateDeploymentEnvironment.
            -     * 
            - */ - public void getGoldengateDeploymentEnvironment( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGoldengateDeploymentEnvironmentMethod(), getCallOptions()), - request, - responseObserver); - } - /** * * @@ -6649,23 +6323,6 @@ public void listGoldengateDeploymentEnvironments( responseObserver); } - /** - * - * - *
            -     * Gets details of a single GoldengateConnectionType.
            -     * 
            - */ - public void getGoldengateConnectionType( - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGoldengateConnectionTypeMethod(), getCallOptions()), - request, - responseObserver); - } - /** * * @@ -7771,21 +7428,6 @@ public com.google.longrunning.Operation deleteGoldengateConnection( getChannel(), getDeleteGoldengateConnectionMethod(), getCallOptions(), request); } - /** - * - * - *
            -     * Gets details of a single GoldengateDeploymentVersion.
            -     * 
            - */ - public com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion - getGoldengateDeploymentVersion( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetGoldengateDeploymentVersionMethod(), getCallOptions(), request); - } - /** * * @@ -7801,20 +7443,6 @@ public com.google.longrunning.Operation deleteGoldengateConnection( getChannel(), getListGoldengateDeploymentVersionsMethod(), getCallOptions(), request); } - /** - * - * - *
            -     * Gets details of a single GoldenGateDeploymentType.
            -     * 
            - */ - public com.google.cloud.oracledatabase.v1.GoldengateDeploymentType getGoldengateDeploymentType( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetGoldengateDeploymentTypeMethod(), getCallOptions(), request); - } - /** * * @@ -7830,21 +7458,6 @@ public com.google.cloud.oracledatabase.v1.GoldengateDeploymentType getGoldengate getChannel(), getListGoldengateDeploymentTypesMethod(), getCallOptions(), request); } - /** - * - * - *
            -     * Gets details of a single GoldengateDeploymentEnvironment.
            -     * 
            - */ - public com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment - getGoldengateDeploymentEnvironment( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetGoldengateDeploymentEnvironmentMethod(), getCallOptions(), request); - } - /** * * @@ -7860,20 +7473,6 @@ public com.google.cloud.oracledatabase.v1.GoldengateDeploymentType getGoldengate getChannel(), getListGoldengateDeploymentEnvironmentsMethod(), getCallOptions(), request); } - /** - * - * - *
            -     * Gets details of a single GoldengateConnectionType.
            -     * 
            - */ - public com.google.cloud.oracledatabase.v1.GoldengateConnectionType getGoldengateConnectionType( - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetGoldengateConnectionTypeMethod(), getCallOptions(), request); - } - /** * * @@ -8891,20 +8490,6 @@ public com.google.longrunning.Operation deleteGoldengateConnection( getChannel(), getDeleteGoldengateConnectionMethod(), getCallOptions(), request); } - /** - * - * - *
            -     * Gets details of a single GoldengateDeploymentVersion.
            -     * 
            - */ - public com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion - getGoldengateDeploymentVersion( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGoldengateDeploymentVersionMethod(), getCallOptions(), request); - } - /** * * @@ -8919,19 +8504,6 @@ public com.google.longrunning.Operation deleteGoldengateConnection( getChannel(), getListGoldengateDeploymentVersionsMethod(), getCallOptions(), request); } - /** - * - * - *
            -     * Gets details of a single GoldenGateDeploymentType.
            -     * 
            - */ - public com.google.cloud.oracledatabase.v1.GoldengateDeploymentType getGoldengateDeploymentType( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGoldengateDeploymentTypeMethod(), getCallOptions(), request); - } - /** * * @@ -8946,20 +8518,6 @@ public com.google.cloud.oracledatabase.v1.GoldengateDeploymentType getGoldengate getChannel(), getListGoldengateDeploymentTypesMethod(), getCallOptions(), request); } - /** - * - * - *
            -     * Gets details of a single GoldengateDeploymentEnvironment.
            -     * 
            - */ - public com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment - getGoldengateDeploymentEnvironment( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGoldengateDeploymentEnvironmentMethod(), getCallOptions(), request); - } - /** * * @@ -8975,19 +8533,6 @@ public com.google.cloud.oracledatabase.v1.GoldengateDeploymentType getGoldengate getChannel(), getListGoldengateDeploymentEnvironmentsMethod(), getCallOptions(), request); } - /** - * - * - *
            -     * Gets details of a single GoldengateConnectionType.
            -     * 
            - */ - public com.google.cloud.oracledatabase.v1.GoldengateConnectionType getGoldengateConnectionType( - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGoldengateConnectionTypeMethod(), getCallOptions(), request); - } - /** * * @@ -10072,22 +9617,6 @@ protected OracleDatabaseFutureStub build( getChannel().newCall(getDeleteGoldengateConnectionMethod(), getCallOptions()), request); } - /** - * - * - *
            -     * Gets details of a single GoldengateDeploymentVersion.
            -     * 
            - */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion> - getGoldengateDeploymentVersion( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGoldengateDeploymentVersionMethod(), getCallOptions()), - request); - } - /** * * @@ -10104,21 +9633,6 @@ protected OracleDatabaseFutureStub build( request); } - /** - * - * - *
            -     * Gets details of a single GoldenGateDeploymentType.
            -     * 
            - */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oracledatabase.v1.GoldengateDeploymentType> - getGoldengateDeploymentType( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGoldengateDeploymentTypeMethod(), getCallOptions()), request); - } - /** * * @@ -10135,22 +9649,6 @@ protected OracleDatabaseFutureStub build( request); } - /** - * - * - *
            -     * Gets details of a single GoldengateDeploymentEnvironment.
            -     * 
            - */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment> - getGoldengateDeploymentEnvironment( - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGoldengateDeploymentEnvironmentMethod(), getCallOptions()), - request); - } - /** * * @@ -10168,21 +9666,6 @@ protected OracleDatabaseFutureStub build( request); } - /** - * - * - *
            -     * Gets details of a single GoldengateConnectionType.
            -     * 
            - */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.oracledatabase.v1.GoldengateConnectionType> - getGoldengateConnectionType( - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGoldengateConnectionTypeMethod(), getCallOptions()), request); - } - /** * * @@ -10376,21 +9859,17 @@ protected OracleDatabaseFutureStub build( private static final int METHODID_GET_GOLDENGATE_CONNECTION = 63; private static final int METHODID_CREATE_GOLDENGATE_CONNECTION = 64; private static final int METHODID_DELETE_GOLDENGATE_CONNECTION = 65; - private static final int METHODID_GET_GOLDENGATE_DEPLOYMENT_VERSION = 66; - private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_VERSIONS = 67; - private static final int METHODID_GET_GOLDENGATE_DEPLOYMENT_TYPE = 68; - private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_TYPES = 69; - private static final int METHODID_GET_GOLDENGATE_DEPLOYMENT_ENVIRONMENT = 70; - private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_ENVIRONMENTS = 71; - private static final int METHODID_GET_GOLDENGATE_CONNECTION_TYPE = 72; - private static final int METHODID_LIST_GOLDENGATE_CONNECTION_TYPES = 73; - private static final int METHODID_LIST_DB_VERSIONS = 74; - private static final int METHODID_LIST_DATABASE_CHARACTER_SETS = 75; - private static final int METHODID_LIST_GOLDENGATE_CONNECTION_ASSIGNMENTS = 76; - private static final int METHODID_GET_GOLDENGATE_CONNECTION_ASSIGNMENT = 77; - private static final int METHODID_CREATE_GOLDENGATE_CONNECTION_ASSIGNMENT = 78; - private static final int METHODID_DELETE_GOLDENGATE_CONNECTION_ASSIGNMENT = 79; - private static final int METHODID_TEST_GOLDENGATE_CONNECTION_ASSIGNMENT = 80; + private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_VERSIONS = 66; + private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_TYPES = 67; + private static final int METHODID_LIST_GOLDENGATE_DEPLOYMENT_ENVIRONMENTS = 68; + private static final int METHODID_LIST_GOLDENGATE_CONNECTION_TYPES = 69; + private static final int METHODID_LIST_DB_VERSIONS = 70; + private static final int METHODID_LIST_DATABASE_CHARACTER_SETS = 71; + private static final int METHODID_LIST_GOLDENGATE_CONNECTION_ASSIGNMENTS = 72; + private static final int METHODID_GET_GOLDENGATE_CONNECTION_ASSIGNMENT = 73; + private static final int METHODID_CREATE_GOLDENGATE_CONNECTION_ASSIGNMENT = 74; + private static final int METHODID_DELETE_GOLDENGATE_CONNECTION_ASSIGNMENT = 75; + private static final int METHODID_TEST_GOLDENGATE_CONNECTION_ASSIGNMENT = 76; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -10801,13 +10280,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.oracledatabase.v1.DeleteGoldengateConnectionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_GET_GOLDENGATE_DEPLOYMENT_VERSION: - serviceImpl.getGoldengateDeploymentVersion( - (com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion>) - responseObserver); - break; case METHODID_LIST_GOLDENGATE_DEPLOYMENT_VERSIONS: serviceImpl.listGoldengateDeploymentVersions( (com.google.cloud.oracledatabase.v1.ListGoldengateDeploymentVersionsRequest) request, @@ -10815,13 +10287,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.oracledatabase.v1.ListGoldengateDeploymentVersionsResponse>) responseObserver); break; - case METHODID_GET_GOLDENGATE_DEPLOYMENT_TYPE: - serviceImpl.getGoldengateDeploymentType( - (com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.oracledatabase.v1.GoldengateDeploymentType>) - responseObserver); - break; case METHODID_LIST_GOLDENGATE_DEPLOYMENT_TYPES: serviceImpl.listGoldengateDeploymentTypes( (com.google.cloud.oracledatabase.v1.ListGoldengateDeploymentTypesRequest) request, @@ -10829,14 +10294,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.oracledatabase.v1.ListGoldengateDeploymentTypesResponse>) responseObserver); break; - case METHODID_GET_GOLDENGATE_DEPLOYMENT_ENVIRONMENT: - serviceImpl.getGoldengateDeploymentEnvironment( - (com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment>) - responseObserver); - break; case METHODID_LIST_GOLDENGATE_DEPLOYMENT_ENVIRONMENTS: serviceImpl.listGoldengateDeploymentEnvironments( (com.google.cloud.oracledatabase.v1.ListGoldengateDeploymentEnvironmentsRequest) @@ -10846,13 +10303,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv .ListGoldengateDeploymentEnvironmentsResponse>) responseObserver); break; - case METHODID_GET_GOLDENGATE_CONNECTION_TYPE: - serviceImpl.getGoldengateConnectionType( - (com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.oracledatabase.v1.GoldengateConnectionType>) - responseObserver); - break; case METHODID_LIST_GOLDENGATE_CONNECTION_TYPES: serviceImpl.listGoldengateConnectionTypes( (com.google.cloud.oracledatabase.v1.ListGoldengateConnectionTypesRequest) request, @@ -11376,13 +10826,6 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.oracledatabase.v1.DeleteGoldengateConnectionRequest, com.google.longrunning.Operation>( service, METHODID_DELETE_GOLDENGATE_CONNECTION))) - .addMethod( - getGetGoldengateDeploymentVersionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest, - com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion>( - service, METHODID_GET_GOLDENGATE_DEPLOYMENT_VERSION))) .addMethod( getListGoldengateDeploymentVersionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -11390,13 +10833,6 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.oracledatabase.v1.ListGoldengateDeploymentVersionsRequest, com.google.cloud.oracledatabase.v1.ListGoldengateDeploymentVersionsResponse>( service, METHODID_LIST_GOLDENGATE_DEPLOYMENT_VERSIONS))) - .addMethod( - getGetGoldengateDeploymentTypeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentTypeRequest, - com.google.cloud.oracledatabase.v1.GoldengateDeploymentType>( - service, METHODID_GET_GOLDENGATE_DEPLOYMENT_TYPE))) .addMethod( getListGoldengateDeploymentTypesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -11404,13 +10840,6 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.oracledatabase.v1.ListGoldengateDeploymentTypesRequest, com.google.cloud.oracledatabase.v1.ListGoldengateDeploymentTypesResponse>( service, METHODID_LIST_GOLDENGATE_DEPLOYMENT_TYPES))) - .addMethod( - getGetGoldengateDeploymentEnvironmentMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest, - com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment>( - service, METHODID_GET_GOLDENGATE_DEPLOYMENT_ENVIRONMENT))) .addMethod( getListGoldengateDeploymentEnvironmentsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -11419,13 +10848,6 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.oracledatabase.v1 .ListGoldengateDeploymentEnvironmentsResponse>( service, METHODID_LIST_GOLDENGATE_DEPLOYMENT_ENVIRONMENTS))) - .addMethod( - getGetGoldengateConnectionTypeMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.oracledatabase.v1.GetGoldengateConnectionTypeRequest, - com.google.cloud.oracledatabase.v1.GoldengateConnectionType>( - service, METHODID_GET_GOLDENGATE_CONNECTION_TYPE))) .addMethod( getListGoldengateConnectionTypesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -11599,13 +11021,9 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetGoldengateConnectionMethod()) .addMethod(getCreateGoldengateConnectionMethod()) .addMethod(getDeleteGoldengateConnectionMethod()) - .addMethod(getGetGoldengateDeploymentVersionMethod()) .addMethod(getListGoldengateDeploymentVersionsMethod()) - .addMethod(getGetGoldengateDeploymentTypeMethod()) .addMethod(getListGoldengateDeploymentTypesMethod()) - .addMethod(getGetGoldengateDeploymentEnvironmentMethod()) .addMethod(getListGoldengateDeploymentEnvironmentsMethod()) - .addMethod(getGetGoldengateConnectionTypeMethod()) .addMethod(getListGoldengateConnectionTypesMethod()) .addMethod(getListDbVersionsMethod()) .addMethod(getListDatabaseCharacterSetsMethod()) diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateConnectionTypeProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateConnectionTypeProto.java index 18d259e838ce..50173ed17f61 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateConnectionTypeProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateConnectionTypeProto.java @@ -44,10 +44,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_oracledatabase_v1_GoldengateConnectionType_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_oracledatabase_v1_GoldengateConnectionType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_oracledatabase_v1_GetGoldengateConnectionTypeRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_oracledatabase_v1_GetGoldengateConnectionTypeRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_oracledatabase_v1_ListGoldengateConnectionTypesRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -109,13 +105,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007ICEBERG\020\035:\321\001\352A\315\001\n" + "6oracledatabase.googleapis.com/GoldengateConnectionType\022^projects" + "/{project}/locations/{location}/goldengateConnectionTypes/{goldengate_connection" - + "_type}*\031goldengateConnectionTypes2\030goldengateConnectionType\"r\n" - + "\"GetGoldengateConnectionTypeRequest\022L\n" - + "\004name\030\001 \001(\tB>\340A\002\372A8\n" - + "6oracledatabase.googleapis.com/GoldengateConnectionType\"\274\001\n" + + "_type}*\031goldengateConnectionTypes2\030goldengateConnectionType\"\274\001\n" + "$ListGoldengateConnectionTypesRequest\022N\n" - + "\006parent\030\001 \001(\tB>\340A\002\372A8" - + "\0226oracledatabase.googleapis.com/GoldengateConnectionType\022\026\n" + + "\006parent\030\001 \001(\tB>\340A" + + "\002\372A8\0226oracledatabase.googleapis.com/GoldengateConnectionType\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\"\271\001\n" @@ -124,11 +117,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\01328.google.cloud.oracledatabase.v1.GoldengateConnectionType\022\027\n" + "\017next_page_token\030\002 \001(\t\022\030\n" + "\013unreachable\030\003 \003(\tB\003\340A\006B\367\001\n" - + "\"com.google.cloud.oracledatabase.v1B\035Golde" - + "ngateConnectionTypeProtoP\001ZJcloud.google.com/go/oracledatabase/apiv1/oracledatab" - + "asepb;oracledatabasepb\252\002\036Google.Cloud.Or" - + "acleDatabase.V1\312\002\036Google\\Cloud\\OracleDat" - + "abase\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" + + "\"com.google.cloud.oracledatabase.v1B\035GoldengateConnectionTypeProtoP\001ZJcloud.go" + + "ogle.com/go/oracledatabase/apiv1/oracled" + + "atabasepb;oracledatabasepb\252\002\036Google.Clou" + + "d.OracleDatabase.V1\312\002\036Google\\Cloud\\Oracl" + + "eDatabase\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -145,16 +138,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "ConnectionType", "TechnologyTypes", }); - internal_static_google_cloud_oracledatabase_v1_GetGoldengateConnectionTypeRequest_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_oracledatabase_v1_GetGoldengateConnectionTypeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_oracledatabase_v1_GetGoldengateConnectionTypeRequest_descriptor, - new java.lang.String[] { - "Name", - }); internal_static_google_cloud_oracledatabase_v1_ListGoldengateConnectionTypesRequest_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(1); internal_static_google_cloud_oracledatabase_v1_ListGoldengateConnectionTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_ListGoldengateConnectionTypesRequest_descriptor, @@ -162,7 +147,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_oracledatabase_v1_ListGoldengateConnectionTypesResponse_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(2); internal_static_google_cloud_oracledatabase_v1_ListGoldengateConnectionTypesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_ListGoldengateConnectionTypesResponse_descriptor, diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentEnvironmentProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentEnvironmentProto.java index ce6582d4bfdb..0b9181c0dd95 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentEnvironmentProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentEnvironmentProto.java @@ -44,10 +44,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_oracledatabase_v1_GoldengateDeploymentEnvironment_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_oracledatabase_v1_GoldengateDeploymentEnvironment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentEnvironmentRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentEnvironmentRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentEnvironmentsRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -95,25 +91,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "=oracledatabase.googleapis.com/GoldengateDeployme" + "ntEnvironment\022lprojects/{project}/locations/{location}/goldengateDeploymentEnvir" + "onments/{goldengate_deployment_environment}*" - + " goldengateDeploymentEnvironments2\037goldengateDeploymentEnvironment\"\200\001\n" - + ")GetGoldengateDeploymentEnvironmentRequest\022S\n" - + "\004name\030\001 \001(\tBE\340A\002\372A?\n" - + "=oracledatabase.googleapis.com/GoldengateDeploymentEnvironment\"\265\001\n" + + " goldengateDeploymentEnvironments2\037goldengateDeploymentEnvironment\"\265\001\n" + "+ListGoldengateDeploymentEnvironmentsRequest\022U\n" - + "\006parent\030\001 \001(\tBE\340A\002\372A?\022=oracl" - + "edatabase.googleapis.com/GoldengateDeploymentEnvironment\022\026\n" + + "\006parent\030\001 \001(\tBE\340A\002\372A?\022=oracledatabase.g" + + "oogleapis.com/GoldengateDeploymentEnvironment\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\316\001\n" + ",ListGoldengateDeploymentEnvironmentsResponse\022k\n" - + "\"goldengate_deployment_environments\030\001 \003(\0132?" - + ".google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment\022\027\n" + + "\"goldengate_deployment_environments\030\001 \003(\0132?.google.clo" + + "ud.oracledatabase.v1.GoldengateDeploymentEnvironment\022\027\n" + "\017next_page_token\030\002 \001(\t\022\030\n" + "\013unreachable\030\003 \003(\tB\003\340A\006B\376\001\n" - + "\"com.google.cloud.oracledatabase.v1B$GoldengateDeploymentEnvironmentProtoP\001ZJcloud" - + ".google.com/go/oracledatabase/apiv1/orac" - + "ledatabasepb;oracledatabasepb\252\002\036Google.C" - + "loud.OracleDatabase.V1\312\002\036Google\\Cloud\\Or" - + "acleDatabase\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" + + "\"com.google.cloud.oracledatabase.v1B$GoldengateDeploy" + + "mentEnvironmentProtoP\001ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasep" + + "b;oracledatabasepb\252\002\036Google.Cloud.Oracle" + + "Database.V1\312\002\036Google\\Cloud\\OracleDatabas" + + "e\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -140,16 +133,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkBandwidthGbpsPerCpuCore", "StorageUsageLimitGbPerCpuCore", }); - internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentEnvironmentRequest_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentEnvironmentRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentEnvironmentRequest_descriptor, - new java.lang.String[] { - "Name", - }); internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentEnvironmentsRequest_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(1); internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentEnvironmentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentEnvironmentsRequest_descriptor, @@ -157,7 +142,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentEnvironmentsResponse_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(2); internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentEnvironmentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentEnvironmentsResponse_descriptor, diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentTypeProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentTypeProto.java index ae02d6a61805..26382c2c1f3f 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentTypeProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentTypeProto.java @@ -44,10 +44,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_oracledatabase_v1_GoldengateDeploymentType_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_oracledatabase_v1_GoldengateDeploymentType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentTypeRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentTypeRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentTypesRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -103,13 +99,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030DATA_TRANSFORMS_CATEGORY\020\002:\321\001\352A\315\001\n" + "6oracledatabase.googleapis.com/GoldengateDeploymentType\022^projects/{project}/lo" + "cations/{location}/goldengateDeploymentTypes/{goldengate_deployment_type}*\031golde" - + "ngateDeploymentTypes2\030goldengateDeploymentType\"r\n" - + "\"GetGoldengateDeploymentTypeRequest\022L\n" - + "\004name\030\001 \001(\tB>\340A\002\372A8\n" - + "6oracledatabase.googleapis.com/GoldengateDeploymentType\"\323\001\n" + + "ngateDeploymentTypes2\030goldengateDeploymentType\"\323\001\n" + "$ListGoldengateDeploymentTypesRequest\022N\n" - + "\006parent\030\001 \001(\tB>\340A\002\372A8\0226oracledatab" - + "ase.googleapis.com/GoldengateDeploymentType\022\026\n" + + "\006parent\030\001 \001(\tB>\340A\002\372A8\0226oracled" + + "atabase.googleapis.com/GoldengateDeploymentType\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" @@ -119,11 +112,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\01328.google.cloud.oracledatabase.v1.GoldengateDeploymentType\022\027\n" + "\017next_page_token\030\002 \001(\t\022\030\n" + "\013unreachable\030\003 \003(\tB\003\340A\006B\367\001\n" - + "\"com.google.cloud.oracledatabase.v1B\035GoldengateDeploymentTypeProtoP\001ZJcl" - + "oud.google.com/go/oracledatabase/apiv1/o" - + "racledatabasepb;oracledatabasepb\252\002\036Googl" - + "e.Cloud.OracleDatabase.V1\312\002\036Google\\Cloud" - + "\\OracleDatabase\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" + + "\"com.google.cloud.oracledatabase.v1B\035GoldengateDeploymentTypeProtoP\001" + + "ZJcloud.google.com/go/oracledatabase/api" + + "v1/oracledatabasepb;oracledatabasepb\252\002\036G" + + "oogle.Cloud.OracleDatabase.V1\312\002\036Google\\C" + + "loud\\OracleDatabase\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -150,16 +143,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TargetTechnologies", "DefaultUsername", }); - internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentTypeRequest_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentTypeRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentTypeRequest_descriptor, - new java.lang.String[] { - "Name", - }); internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentTypesRequest_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(1); internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentTypesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentTypesRequest_descriptor, @@ -167,7 +152,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentTypesResponse_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(2); internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentTypesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentTypesResponse_descriptor, diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentVersionProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentVersionProto.java index f2c5def056b8..33180d1f7903 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentVersionProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/GoldengateDeploymentVersionProto.java @@ -48,10 +48,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_oracledatabase_v1_GoldengateDeploymentVersionProperties_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_oracledatabase_v1_GoldengateDeploymentVersionProperties_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentVersionRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentVersionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentVersionsRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -108,25 +104,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#DEPLOYMENT_RELEASE_TYPE_UNSPECIFIED\020\000\022\t\n" + "\005MAJOR\020\001\022\n\n" + "\006BUNDLE\020\002\022\t\n" - + "\005MINOR\020\003\"x\n" - + "%GetGoldengateDeploymentVersionRequest\022O\n" - + "\004name\030\001 \001(\tBA\340A\002\372A;\n" - + "9oracledatabase.googleapis.com/GoldengateDeploymentVersion\"\302\001\n" + + "\005MINOR\020\003\"\302\001\n" + "\'ListGoldengateDeploymentVersionsRequest\022Q\n" - + "\006parent\030\001 \001(\tBA" - + "\340A\002\372A;\0229oracledatabase.googleapis.com/GoldengateDeploymentVersion\022\026\n" + + "\006parent\030\001 \001(\tBA\340A" + + "\002\372A;\0229oracledatabase.googleapis.com/GoldengateDeploymentVersion\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\"\302\001\n" + "(ListGoldengateDeploymentVersionsResponse\022c\n" - + "\036goldengate_deployment_versions\030\001 \003(\0132;.google.cloud.orac" - + "ledatabase.v1.GoldengateDeploymentVersion\022\027\n" + + "\036goldengate_deployment_versions\030\001 \003(\0132;.google.cloud.oracle" + + "database.v1.GoldengateDeploymentVersion\022\027\n" + "\017next_page_token\030\002 \001(\t\022\030\n" + "\013unreachable\030\003 \003(\tB\003\340A\006B\372\001\n" - + "\"com.google.cloud.oracledatabase.v1B GoldengateDeploymentVersion" - + "ProtoP\001ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabas" - + "epb\252\002\036Google.Cloud.OracleDatabase.V1\312\002\036G" - + "oogle\\Cloud\\OracleDatabase\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" + + "\"com.google.cloud.oracledatabase.v1B GoldengateDeploymentVersionPr" + + "otoP\001ZJcloud.google.com/go/oracledatabase/apiv1/oracledatabasepb;oracledatabasep" + + "b\252\002\036Google.Cloud.OracleDatabase.V1\312\002\036Goo" + + "gle\\Cloud\\OracleDatabase\\V1\352\002!Google::Cloud::OracleDatabase::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -157,16 +150,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReleaseTime", "SupportEndTime", }); - internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentVersionRequest_descriptor = - getDescriptor().getMessageType(2); - internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentVersionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_oracledatabase_v1_GetGoldengateDeploymentVersionRequest_descriptor, - new java.lang.String[] { - "Name", - }); internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentVersionsRequest_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(2); internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentVersionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentVersionsRequest_descriptor, @@ -174,7 +159,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentVersionsResponse_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(3); internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentVersionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_oracledatabase_v1_ListGoldengateDeploymentVersionsResponse_descriptor, diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java index 958b738b8694..41833a15f8b6 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/java/com/google/cloud/oracledatabase/v1/V1mainProto.java @@ -504,7 +504,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB4\340A\002\372A.\n" + ",oracledatabase.googleapis.com/ExadbVmCluster\022\037\n\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\022\026\n" - + "\thostnames\030\004 \003(\tB\003\340A\0022\221\235\001\n" + + "\thostnames\030\004 \003(\tB\003\340A\0022\271\225\001\n" + "\016OracleDatabase\022\204\002\n" + "\037ListCloudExadataInfrastructures\022F.google.cloud.oracledatabase.v1.Lis" + "tCloudExadataInfrastructuresRequest\032G.google.cloud.oracledatabase.v1.ListCloudEx" @@ -866,122 +866,97 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ng.Operation\"u\312A*\n\025google.protobuf.Empty" + "\022\021OperationMetadata\332A\004name\202\323\344\223\002;*9/v1/{n" + "ame=projects/*/locations/*/goldengateCon" - + "nections/*}\022\365\001\n\036GetGoldengateDeploymentV" - + "ersion\022E.google.cloud.oracledatabase.v1." - + "GetGoldengateDeploymentVersionRequest\032;." - + "google.cloud.oracledatabase.v1.Goldengat" - + "eDeploymentVersion\"O\332A\004name\202\323\344\223\002B\022@/v1/{" - + "name=projects/*/locations/*/goldengateDe" - + "ploymentVersions/*}\022\210\002\n ListGoldengateDe" - + "ploymentVersions\022G.google.cloud.oracleda" - + "tabase.v1.ListGoldengateDeploymentVersio" - + "nsRequest\032H.google.cloud.oracledatabase." - + "v1.ListGoldengateDeploymentVersionsRespo" - + "nse\"Q\332A\006parent\202\323\344\223\002B\022@/v1/{parent=projec" - + "ts/*/locations/*}/goldengateDeploymentVe" - + "rsions\022\351\001\n\033GetGoldengateDeploymentType\022B" - + ".google.cloud.oracledatabase.v1.GetGolde" - + "ngateDeploymentTypeRequest\0328.google.clou" - + "d.oracledatabase.v1.GoldengateDeployment" - + "Type\"L\332A\004name\202\323\344\223\002?\022=/v1/{name=projects/" - + "*/locations/*/goldengateDeploymentTypes/" - + "*}\022\374\001\n\035ListGoldengateDeploymentTypes\022D.g" - + "oogle.cloud.oracledatabase.v1.ListGolden" - + "gateDeploymentTypesRequest\032E.google.clou" - + "d.oracledatabase.v1.ListGoldengateDeploy" - + "mentTypesResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/" - + "{parent=projects/*/locations/*}/goldenga" - + "teDeploymentTypes\022\205\002\n\"GetGoldengateDeplo" - + "ymentEnvironment\022I.google.cloud.oracleda" - + "tabase.v1.GetGoldengateDeploymentEnviron" - + "mentRequest\032?.google.cloud.oracledatabas" - + "e.v1.GoldengateDeploymentEnvironment\"S\332A" - + "\004name\202\323\344\223\002F\022D/v1/{name=projects/*/locati" - + "ons/*/goldengateDeploymentEnvironments/*" - + "}\022\230\002\n$ListGoldengateDeploymentEnvironmen" - + "ts\022K.google.cloud.oracledatabase.v1.List" - + "GoldengateDeploymentEnvironmentsRequest\032" - + "L.google.cloud.oracledatabase.v1.ListGol" - + "dengateDeploymentEnvironmentsResponse\"U\332" - + "A\006parent\202\323\344\223\002F\022D/v1/{parent=projects/*/l" - + "ocations/*}/goldengateDeploymentEnvironm" - + "ents\022\351\001\n\033GetGoldengateConnectionType\022B.g" - + "oogle.cloud.oracledatabase.v1.GetGoldeng" - + "ateConnectionTypeRequest\0328.google.cloud." - + "oracledatabase.v1.GoldengateConnectionTy" - + "pe\"L\332A\004name\202\323\344\223\002?\022=/v1/{name=projects/*/" - + "locations/*/goldengateConnectionTypes/*}" - + "\022\374\001\n\035ListGoldengateConnectionTypes\022D.goo" - + "gle.cloud.oracledatabase.v1.ListGoldenga" - + "teConnectionTypesRequest\032E.google.cloud." - + "oracledatabase.v1.ListGoldengateConnecti" - + "onTypesResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{p" - + "arent=projects/*/locations/*}/goldengate" - + "ConnectionTypes\022\300\001\n\016ListDbVersions\0225.goo" - + "gle.cloud.oracledatabase.v1.ListDbVersio" - + "nsRequest\0326.google.cloud.oracledatabase." - + "v1.ListDbVersionsResponse\"?\332A\006parent\202\323\344\223" - + "\0020\022./v1/{parent=projects/*/locations/*}/" - + "dbVersions\022\354\001\n\031ListDatabaseCharacterSets" - + "\022@.google.cloud.oracledatabase.v1.ListDa" - + "tabaseCharacterSetsRequest\032A.google.clou" - + "d.oracledatabase.v1.ListDatabaseCharacte" - + "rSetsResponse\"J\332A\006parent\202\323\344\223\002;\0229/v1/{par" - + "ent=projects/*/locations/*}/databaseChar" - + "acterSets\022\224\002\n#ListGoldengateConnectionAs" - + "signments\022J.google.cloud.oracledatabase." - + "v1.ListGoldengateConnectionAssignmentsRe" - + "quest\032K.google.cloud.oracledatabase.v1.L" - + "istGoldengateConnectionAssignmentsRespon" - + "se\"T\332A\006parent\202\323\344\223\002E\022C/v1/{parent=project" - + "s/*/locations/*}/goldengateConnectionAss" - + "ignments\022\201\002\n!GetGoldengateConnectionAssi" - + "gnment\022H.google.cloud.oracledatabase.v1." - + "GetGoldengateConnectionAssignmentRequest" - + "\032>.google.cloud.oracledatabase.v1.Golden" - + "gateConnectionAssignment\"R\332A\004name\202\323\344\223\002E\022" - + "C/v1/{name=projects/*/locations/*/golden" - + "gateConnectionAssignments/*}\022\206\003\n$CreateG" - + "oldengateConnectionAssignment\022K.google.c" - + "loud.oracledatabase.v1.CreateGoldengateC" - + "onnectionAssignmentRequest\032\035.google.long" - + "running.Operation\"\361\001\312A3\n\036GoldengateConne" - + "ctionAssignment\022\021OperationMetadata\332AKpar" - + "ent,goldengate_connection_assignment,gol" - + "dengate_connection_assignment_id\202\323\344\223\002g\"C" - + "/v1/{parent=projects/*/locations/*}/gold" - + "engateConnectionAssignments: goldengate_" - + "connection_assignment\022\223\002\n$DeleteGoldenga" - + "teConnectionAssignment\022K.google.cloud.or" - + "acledatabase.v1.DeleteGoldengateConnecti" - + "onAssignmentRequest\032\035.google.longrunning" - + ".Operation\"\177\312A*\n\025google.protobuf.Empty\022\021" - + "OperationMetadata\332A\004name\202\323\344\223\002E*C/v1/{nam" - + "e=projects/*/locations/*/goldengateConne" - + "ctionAssignments/*}\022\227\002\n\"TestGoldengateCo" - + "nnectionAssignment\022I.google.cloud.oracle" - + "database.v1.TestGoldengateConnectionAssi" - + "gnmentRequest\032J.google.cloud.oracledatab" - + "ase.v1.TestGoldengateConnectionAssignmen" - + "tResponse\"Z\332A\004name\202\323\344\223\002M\"H/v1/{name=proj" - + "ects/*/locations/*/goldengateConnectionA" - + "ssignments/*}:test:\001*\032Q\312A\035oracledatabase" - + ".googleapis.com\322A.https://www.googleapis" - + ".com/auth/cloud-platformB\237\004\n\"com.google." - + "cloud.oracledatabase.v1B\013V1mainProtoP\001ZJ" - + "cloud.google.com/go/oracledatabase/apiv1" - + "/oracledatabasepb;oracledatabasepb\252\002\036Goo" - + "gle.Cloud.OracleDatabase.V1\312\002\036Google\\Clo" - + "ud\\OracleDatabase\\V1\352\002!Google::Cloud::Or" - + "acleDatabase::V1\352AN\n\036compute.googleapis." - + "com/Network\022,projects/{project}/global/n" - + "etworks/{network}\352Ax\n!cloudkms.googleapi" - + "s.com/CryptoKey\022Sprojects/{project}/loca" - + "tions/{location}/keyRings/{key_ring}/cry" - + "ptoKeys/{crypto_key}\352Ak\n*secretmanager.g" - + "oogleapis.com/SecretVersion\022=projects/{p" - + "roject}/secrets/{secret}/versions/{secre" - + "t_version}b\006proto3" + + "nections/*}\022\210\002\n ListGoldengateDeployment" + + "Versions\022G.google.cloud.oracledatabase.v" + + "1.ListGoldengateDeploymentVersionsReques" + + "t\032H.google.cloud.oracledatabase.v1.ListG" + + "oldengateDeploymentVersionsResponse\"Q\332A\006" + + "parent\202\323\344\223\002B\022@/v1/{parent=projects/*/loc" + + "ations/*}/goldengateDeploymentVersions\022\374" + + "\001\n\035ListGoldengateDeploymentTypes\022D.googl" + + "e.cloud.oracledatabase.v1.ListGoldengate" + + "DeploymentTypesRequest\032E.google.cloud.or" + + "acledatabase.v1.ListGoldengateDeployment" + + "TypesResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1/{par" + + "ent=projects/*/locations/*}/goldengateDe" + + "ploymentTypes\022\230\002\n$ListGoldengateDeployme" + + "ntEnvironments\022K.google.cloud.oracledata" + + "base.v1.ListGoldengateDeploymentEnvironm" + + "entsRequest\032L.google.cloud.oracledatabas" + + "e.v1.ListGoldengateDeploymentEnvironment" + + "sResponse\"U\332A\006parent\202\323\344\223\002F\022D/v1/{parent=" + + "projects/*/locations/*}/goldengateDeploy" + + "mentEnvironments\022\374\001\n\035ListGoldengateConne" + + "ctionTypes\022D.google.cloud.oracledatabase" + + ".v1.ListGoldengateConnectionTypesRequest" + + "\032E.google.cloud.oracledatabase.v1.ListGo" + + "ldengateConnectionTypesResponse\"N\332A\006pare" + + "nt\202\323\344\223\002?\022=/v1/{parent=projects/*/locatio" + + "ns/*}/goldengateConnectionTypes\022\300\001\n\016List" + + "DbVersions\0225.google.cloud.oracledatabase" + + ".v1.ListDbVersionsRequest\0326.google.cloud" + + ".oracledatabase.v1.ListDbVersionsRespons" + + "e\"?\332A\006parent\202\323\344\223\0020\022./v1/{parent=projects" + + "/*/locations/*}/dbVersions\022\354\001\n\031ListDatab" + + "aseCharacterSets\022@.google.cloud.oracleda" + + "tabase.v1.ListDatabaseCharacterSetsReque" + + "st\032A.google.cloud.oracledatabase.v1.List" + + "DatabaseCharacterSetsResponse\"J\332A\006parent" + + "\202\323\344\223\002;\0229/v1/{parent=projects/*/locations" + + "/*}/databaseCharacterSets\022\224\002\n#ListGolden" + + "gateConnectionAssignments\022J.google.cloud" + + ".oracledatabase.v1.ListGoldengateConnect" + + "ionAssignmentsRequest\032K.google.cloud.ora" + + "cledatabase.v1.ListGoldengateConnectionA" + + "ssignmentsResponse\"T\332A\006parent\202\323\344\223\002E\022C/v1" + + "/{parent=projects/*/locations/*}/goldeng" + + "ateConnectionAssignments\022\201\002\n!GetGoldenga" + + "teConnectionAssignment\022H.google.cloud.or" + + "acledatabase.v1.GetGoldengateConnectionA" + + "ssignmentRequest\032>.google.cloud.oracleda" + + "tabase.v1.GoldengateConnectionAssignment" + + "\"R\332A\004name\202\323\344\223\002E\022C/v1/{name=projects/*/lo" + + "cations/*/goldengateConnectionAssignment" + + "s/*}\022\206\003\n$CreateGoldengateConnectionAssig" + + "nment\022K.google.cloud.oracledatabase.v1.C" + + "reateGoldengateConnectionAssignmentReque" + + "st\032\035.google.longrunning.Operation\"\361\001\312A3\n" + + "\036GoldengateConnectionAssignment\022\021Operati" + + "onMetadata\332AKparent,goldengate_connectio" + + "n_assignment,goldengate_connection_assig" + + "nment_id\202\323\344\223\002g\"C/v1/{parent=projects/*/l" + + "ocations/*}/goldengateConnectionAssignme" + + "nts: goldengate_connection_assignment\022\223\002" + + "\n$DeleteGoldengateConnectionAssignment\022K" + + ".google.cloud.oracledatabase.v1.DeleteGo" + + "ldengateConnectionAssignmentRequest\032\035.go" + + "ogle.longrunning.Operation\"\177\312A*\n\025google." + + "protobuf.Empty\022\021OperationMetadata\332A\004name" + + "\202\323\344\223\002E*C/v1/{name=projects/*/locations/*" + + "/goldengateConnectionAssignments/*}\022\227\002\n\"" + + "TestGoldengateConnectionAssignment\022I.goo" + + "gle.cloud.oracledatabase.v1.TestGoldenga" + + "teConnectionAssignmentRequest\032J.google.c" + + "loud.oracledatabase.v1.TestGoldengateCon" + + "nectionAssignmentResponse\"Z\332A\004name\202\323\344\223\002M" + + "\"H/v1/{name=projects/*/locations/*/golde" + + "ngateConnectionAssignments/*}:test:\001*\032Q\312" + + "A\035oracledatabase.googleapis.com\322A.https:" + + "//www.googleapis.com/auth/cloud-platform" + + "B\237\004\n\"com.google.cloud.oracledatabase.v1B" + + "\013V1mainProtoP\001ZJcloud.google.com/go/orac" + + "ledatabase/apiv1/oracledatabasepb;oracle" + + "databasepb\252\002\036Google.Cloud.OracleDatabase" + + ".V1\312\002\036Google\\Cloud\\OracleDatabase\\V1\352\002!G" + + "oogle::Cloud::OracleDatabase::V1\352AN\n\036com" + + "pute.googleapis.com/Network\022,projects/{p" + + "roject}/global/networks/{network}\352Ax\n!cl" + + "oudkms.googleapis.com/CryptoKey\022Sproject" + + "s/{project}/locations/{location}/keyRing" + + "s/{key_ring}/cryptoKeys/{crypto_key}\352Ak\n" + + "*secretmanager.googleapis.com/SecretVers" + + "ion\022=projects/{project}/secrets/{secret}" + + "/versions/{secret_version}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/goldengate_connection_type.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/goldengate_connection_type.proto index 32026bde31df..ccd471b867fb 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/goldengate_connection_type.proto +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/goldengate_connection_type.proto @@ -145,18 +145,6 @@ message GoldengateConnectionType { [(google.api.field_behavior) = OUTPUT_ONLY]; } -// Message for getting a GoldengateConnectionType. -message GetGoldengateConnectionTypeRequest { - // Required. Name of the resource in the format: - // projects/{project}/locations/{location}/goldengateConnectionTypes/{goldengate_connection_type} - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "oracledatabase.googleapis.com/GoldengateConnectionType" - } - ]; -} - // Message for listing GoldengateConnectionTypes. message ListGoldengateConnectionTypesRequest { // Required. Parent value for ListGoldengateConnectionTypesRequest diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/goldengate_deployment_environment.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/goldengate_deployment_environment.proto index a24de48defcc..6572768308f0 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/goldengate_deployment_environment.proto +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/goldengate_deployment_environment.proto @@ -108,18 +108,6 @@ message GoldengateDeploymentEnvironment { [(google.api.field_behavior) = OUTPUT_ONLY]; } -// Message for getting a GoldengateDeploymentEnvironment. -message GetGoldengateDeploymentEnvironmentRequest { - // Required. Name of the resource with the format: - // projects/{project}/locations/{location}/goldengateDeploymentEnvironments/{goldengate_deployment_environment} - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "oracledatabase.googleapis.com/GoldengateDeploymentEnvironment" - } - ]; -} - // Message for listing GoldengateDeploymentEnvironments. message ListGoldengateDeploymentEnvironmentsRequest { // Required. The parent, which owns this collection of diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/goldengate_deployment_type.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/goldengate_deployment_type.proto index 7a11a676194a..4e8ef5f20394 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/goldengate_deployment_type.proto +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/goldengate_deployment_type.proto @@ -133,19 +133,6 @@ message GoldengateDeploymentType { string default_username = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; } -// Message for getting a GoldengateDeploymentType. -message GetGoldengateDeploymentTypeRequest { - // Required. The name of the GoldengateDeploymentType to retrieve. - // Format: - // projects/{project}/locations/{location}/goldengateDeploymentTypes/{goldengate_deployment_type} - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "oracledatabase.googleapis.com/GoldengateDeploymentType" - } - ]; -} - // Message for listing GoldengateDeploymentTypes. message ListGoldengateDeploymentTypesRequest { // Required. The parent resource. diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/goldengate_deployment_version.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/goldengate_deployment_version.proto index 6bb6e7f2a688..e25c0ebdcb67 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/goldengate_deployment_version.proto +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/goldengate_deployment_version.proto @@ -133,19 +133,6 @@ message GoldengateDeploymentVersionProperties { [(google.api.field_behavior) = OUTPUT_ONLY]; } -// Message for getting a GoldengateDeploymentVersion. -message GetGoldengateDeploymentVersionRequest { - // Required. The name of the GoldengateDeploymentVersion to retrieve. - // Format: - // projects/{project}/locations/{location}/goldengateDeploymentVersions/{goldengate_deployment_version} - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "oracledatabase.googleapis.com/GoldengateDeploymentVersion" - } - ]; -} - // Message for listing GoldengateDeploymentVersions. message ListGoldengateDeploymentVersionsRequest { // Required. Parent value for ListGoldengateDeploymentVersionsRequest diff --git a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/oracledatabase.proto b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/oracledatabase.proto index 60a46557b034..1fb42987f3e7 100644 --- a/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/oracledatabase.proto +++ b/java-oracledatabase/proto-google-cloud-oracledatabase-v1/src/main/proto/google/cloud/oracledatabase/v1/oracledatabase.proto @@ -831,15 +831,6 @@ service OracleDatabase { }; } - // Gets details of a single GoldengateDeploymentVersion. - rpc GetGoldengateDeploymentVersion(GetGoldengateDeploymentVersionRequest) - returns (GoldengateDeploymentVersion) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/goldengateDeploymentVersions/*}" - }; - option (google.api.method_signature) = "name"; - } - // Lists GoldengateDeploymentVersions in a given project and location. rpc ListGoldengateDeploymentVersions(ListGoldengateDeploymentVersionsRequest) returns (ListGoldengateDeploymentVersionsResponse) { @@ -849,15 +840,6 @@ service OracleDatabase { option (google.api.method_signature) = "parent"; } - // Gets details of a single GoldenGateDeploymentType. - rpc GetGoldengateDeploymentType(GetGoldengateDeploymentTypeRequest) - returns (GoldengateDeploymentType) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/goldengateDeploymentTypes/*}" - }; - option (google.api.method_signature) = "name"; - } - // Lists GoldenGateDeploymentTypes in a given project and location. rpc ListGoldengateDeploymentTypes(ListGoldengateDeploymentTypesRequest) returns (ListGoldengateDeploymentTypesResponse) { @@ -867,16 +849,6 @@ service OracleDatabase { option (google.api.method_signature) = "parent"; } - // Gets details of a single GoldengateDeploymentEnvironment. - rpc GetGoldengateDeploymentEnvironment( - GetGoldengateDeploymentEnvironmentRequest) - returns (GoldengateDeploymentEnvironment) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/goldengateDeploymentEnvironments/*}" - }; - option (google.api.method_signature) = "name"; - } - // Lists GoldengateDeploymentEnvironments in a given project and location. rpc ListGoldengateDeploymentEnvironments( ListGoldengateDeploymentEnvironmentsRequest) @@ -887,15 +859,6 @@ service OracleDatabase { option (google.api.method_signature) = "parent"; } - // Gets details of a single GoldengateConnectionType. - rpc GetGoldengateConnectionType(GetGoldengateConnectionTypeRequest) - returns (GoldengateConnectionType) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/goldengateConnectionTypes/*}" - }; - option (google.api.method_signature) = "name"; - } - // Lists GoldengateConnectionTypes in a given project and location. rpc ListGoldengateConnectionTypes(ListGoldengateConnectionTypesRequest) returns (ListGoldengateConnectionTypesResponse) { diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentenvironment/AsyncGetGoldengateDeploymentEnvironment.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentenvironment/AsyncGetGoldengateDeploymentEnvironment.java deleted file mode 100644 index ab354600dfc1..000000000000 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentenvironment/AsyncGetGoldengateDeploymentEnvironment.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.oracledatabase.v1.samples; - -// [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentEnvironment_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironmentName; -import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; - -public class AsyncGetGoldengateDeploymentEnvironment { - - public static void main(String[] args) throws Exception { - asyncGetGoldengateDeploymentEnvironment(); - } - - public static void asyncGetGoldengateDeploymentEnvironment() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - GetGoldengateDeploymentEnvironmentRequest request = - GetGoldengateDeploymentEnvironmentRequest.newBuilder() - .setName( - GoldengateDeploymentEnvironmentName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]") - .toString()) - .build(); - ApiFuture future = - oracleDatabaseClient.getGoldengateDeploymentEnvironmentCallable().futureCall(request); - // Do something. - GoldengateDeploymentEnvironment response = future.get(); - } - } -} -// [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentEnvironment_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentenvironment/SyncGetGoldengateDeploymentEnvironment.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentenvironment/SyncGetGoldengateDeploymentEnvironment.java deleted file mode 100644 index 444c9be0766a..000000000000 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentenvironment/SyncGetGoldengateDeploymentEnvironment.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.oracledatabase.v1.samples; - -// [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentEnvironment_sync] -import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentEnvironmentRequest; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironmentName; -import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; - -public class SyncGetGoldengateDeploymentEnvironment { - - public static void main(String[] args) throws Exception { - syncGetGoldengateDeploymentEnvironment(); - } - - public static void syncGetGoldengateDeploymentEnvironment() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - GetGoldengateDeploymentEnvironmentRequest request = - GetGoldengateDeploymentEnvironmentRequest.newBuilder() - .setName( - GoldengateDeploymentEnvironmentName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]") - .toString()) - .build(); - GoldengateDeploymentEnvironment response = - oracleDatabaseClient.getGoldengateDeploymentEnvironment(request); - } - } -} -// [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentEnvironment_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentenvironment/SyncGetGoldengateDeploymentEnvironmentGoldengatedeploymentenvironmentname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentenvironment/SyncGetGoldengateDeploymentEnvironmentGoldengatedeploymentenvironmentname.java deleted file mode 100644 index bb10908507f9..000000000000 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentenvironment/SyncGetGoldengateDeploymentEnvironmentGoldengatedeploymentenvironmentname.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.oracledatabase.v1.samples; - -// [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentEnvironment_Goldengatedeploymentenvironmentname_sync] -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironment; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentEnvironmentName; -import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; - -public class SyncGetGoldengateDeploymentEnvironmentGoldengatedeploymentenvironmentname { - - public static void main(String[] args) throws Exception { - syncGetGoldengateDeploymentEnvironmentGoldengatedeploymentenvironmentname(); - } - - public static void syncGetGoldengateDeploymentEnvironmentGoldengatedeploymentenvironmentname() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - GoldengateDeploymentEnvironmentName name = - GoldengateDeploymentEnvironmentName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_ENVIRONMENT]"); - GoldengateDeploymentEnvironment response = - oracleDatabaseClient.getGoldengateDeploymentEnvironment(name); - } - } -} -// [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentEnvironment_Goldengatedeploymentenvironmentname_sync] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentversion/AsyncGetGoldengateDeploymentVersion.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentversion/AsyncGetGoldengateDeploymentVersion.java deleted file mode 100644 index cfafb044046e..000000000000 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentversion/AsyncGetGoldengateDeploymentVersion.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.oracledatabase.v1.samples; - -// [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentVersion_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.oracledatabase.v1.GetGoldengateDeploymentVersionRequest; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersionName; -import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; - -public class AsyncGetGoldengateDeploymentVersion { - - public static void main(String[] args) throws Exception { - asyncGetGoldengateDeploymentVersion(); - } - - public static void asyncGetGoldengateDeploymentVersion() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - GetGoldengateDeploymentVersionRequest request = - GetGoldengateDeploymentVersionRequest.newBuilder() - .setName( - GoldengateDeploymentVersionName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]") - .toString()) - .build(); - ApiFuture future = - oracleDatabaseClient.getGoldengateDeploymentVersionCallable().futureCall(request); - // Do something. - GoldengateDeploymentVersion response = future.get(); - } - } -} -// [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentVersion_async] diff --git a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentversion/SyncGetGoldengateDeploymentVersionGoldengatedeploymentversionname.java b/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentversion/SyncGetGoldengateDeploymentVersionGoldengatedeploymentversionname.java deleted file mode 100644 index c548851e6572..000000000000 --- a/java-oracledatabase/samples/snippets/generated/com/google/cloud/oracledatabase/v1/oracledatabase/getgoldengatedeploymentversion/SyncGetGoldengateDeploymentVersionGoldengatedeploymentversionname.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.oracledatabase.v1.samples; - -// [START oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentVersion_Goldengatedeploymentversionname_sync] -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersion; -import com.google.cloud.oracledatabase.v1.GoldengateDeploymentVersionName; -import com.google.cloud.oracledatabase.v1.OracleDatabaseClient; - -public class SyncGetGoldengateDeploymentVersionGoldengatedeploymentversionname { - - public static void main(String[] args) throws Exception { - syncGetGoldengateDeploymentVersionGoldengatedeploymentversionname(); - } - - public static void syncGetGoldengateDeploymentVersionGoldengatedeploymentversionname() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (OracleDatabaseClient oracleDatabaseClient = OracleDatabaseClient.create()) { - GoldengateDeploymentVersionName name = - GoldengateDeploymentVersionName.of( - "[PROJECT]", "[LOCATION]", "[GOLDENGATE_DEPLOYMENT_VERSION]"); - GoldengateDeploymentVersion response = - oracleDatabaseClient.getGoldengateDeploymentVersion(name); - } - } -} -// [END oracledatabase_v1_generated_OracleDatabase_GetGoldengateDeploymentVersion_Goldengatedeploymentversionname_sync] diff --git a/librarian.yaml b/librarian.yaml index 6b0f23ce9960..709d89c4e5a0 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -16,8 +16,8 @@ version: v0.21.1-0.20260617000028-820646f3db93 repo: googleapis/google-cloud-java sources: googleapis: - commit: f7b17174725f43b5cb11b0b8c6bbad20a3dc5bd1 - sha256: e21b1ea623f68161e9c0c464ca9e9df53da80d7133244531aa97d1cfeb411ccc + commit: 7af3f2c7b8927cffb548fd2cf09b04c6371437ee + sha256: fb354b89774f4599bb3559d190fe54e51da76c6339c062900355c874b9defac5 showcase: commit: 328bec7ce4c1fb77c37fdf1868d0506bc02a70fc sha256: 8df187486e37edf5a78c1646c859c311bc452871b9ba4641d93149d3c53450a2 From 9113d80318a0fcd3c8c615b1051b689a14c83025 Mon Sep 17 00:00:00 2001 From: Dhriti07 <56169283+Dhriti07@users.noreply.github.com> Date: Wed, 17 Jun 2026 23:53:56 +0530 Subject: [PATCH 24/82] feat(storage): add full object checksum validation for bidi flow (#13266) Adding full object checksum for bidi flow Refer to: go/full_checksum_java --------- Co-authored-by: Dhriti Chopra --- .../BaseObjectReadSessionStreamRead.java | 10 +- .../storage/ObjectReadSessionStream.java | 15 + ...apicUnbufferedReadableByteChannelTest.java | 1 - .../storage/ObjectReadSessionStreamTest.java | 547 ++++++++++++++++++ 4 files changed, 570 insertions(+), 3 deletions(-) diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/BaseObjectReadSessionStreamRead.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/BaseObjectReadSessionStreamRead.java index dc71350d70ca..0032d1a2da91 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/BaseObjectReadSessionStreamRead.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/BaseObjectReadSessionStreamRead.java @@ -150,7 +150,10 @@ private AccumulatingRead( IOAutoCloseable onCloseCallback) { super(rangeSpec, retryContext, onCloseCallback); this.readId = readId; - this.hasher = hasher; + this.hasher = + (rangeSpec.begin() == 0 && !(hasher instanceof Hasher.NoOpHasher)) + ? new CumulativeHasher(hasher, 0, rangeSpec.maxLength()) + : hasher; this.complete = SettableApiFuture.create(); this.childRefs = Collections.synchronizedList(new ArrayList<>()); } @@ -280,7 +283,10 @@ static class StreamingRead extends BaseObjectReadSessionStreamRead(2); diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ObjectReadSessionStream.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ObjectReadSessionStream.java index 6f02b16866a8..beda7e5f7732 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ObjectReadSessionStream.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ObjectReadSessionStream.java @@ -351,6 +351,12 @@ public void onResponse(BidiReadObjectResponse response) { executor.execute( StorageException.liftToRunnable( () -> { + try { + validateCumulativeChecksum(read); + } catch (UncheckedCumulativeChecksumMismatchException e) { + state.removeOutstandingReadOnFailure(id, read::fail).onFailure(e); + return; + } read.eof(); // don't remove the outstanding read until the future has been resolved state.removeOutstandingRead(id); @@ -545,6 +551,15 @@ public void onComplete() { } } + private void validateCumulativeChecksum(ObjectReadSessionStreamRead read) { + Hasher hasher = read.hasher(); + if (hasher instanceof CumulativeHasher) { + CumulativeHasher cumulativeHasher = (CumulativeHasher) hasher; + com.google.storage.v2.Object metadata = state.getMetadata(); + cumulativeHasher.validateCumulativeChecksum(metadata); + } + } + static ObjectReadSessionStream create( ScheduledExecutorService executor, ZeroCopyBidiStreamingCallable callable, diff --git a/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannelTest.java b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannelTest.java index c4b19e717c88..2305d1634835 100644 --- a/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannelTest.java +++ b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannelTest.java @@ -220,7 +220,6 @@ public void call( } } - @Test public void validateCumulativeChecksum_skippedForRangedRead() throws IOException { ChecksummedTestContent testContent = ChecksummedTestContent.of(DataGenerator.base64Characters().genBytes(10)); diff --git a/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/ObjectReadSessionStreamTest.java b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/ObjectReadSessionStreamTest.java index 75fec2cb2de6..06ba8af7b298 100644 --- a/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/ObjectReadSessionStreamTest.java +++ b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/ObjectReadSessionStreamTest.java @@ -18,6 +18,7 @@ import static com.google.cloud.storage.ByteSizeConstants._2MiB; import static com.google.cloud.storage.TestUtils.assertAll; +import static com.google.cloud.storage.TestUtils.xxd; import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertThrows; @@ -41,14 +42,17 @@ import com.google.cloud.storage.RetryContext.RetryContextProvider; import com.google.cloud.storage.RetryContextTest.BlockingOnSuccess; import com.google.cloud.storage.Retrying.RetryingDependencies; +import com.google.cloud.storage.it.ChecksummedTestContent; import com.google.protobuf.ByteString; import com.google.storage.v2.BidiReadObjectRequest; import com.google.storage.v2.BidiReadObjectResponse; import com.google.storage.v2.BidiReadObjectSpec; import com.google.storage.v2.BucketName; import com.google.storage.v2.Object; +import com.google.storage.v2.ObjectChecksums; import java.io.IOException; import java.nio.ByteBuffer; +import java.util.concurrent.ExecutionException; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; @@ -388,4 +392,547 @@ static TestObjectReadSessionStreamRead of() { id, RangeSpec.of(0, 10), RetryContext.neverRetry()); } } + + @Test + public void validateCumulativeChecksum_bidi_success() throws Exception { + ChecksummedTestContent testContent = + ChecksummedTestContent.of(DataGenerator.base64Characters().genBytes(10)); + + Object bidiMetadata = + Object.newBuilder() + .setSize(testContent.length()) + .setChecksums(ObjectChecksums.newBuilder().setCrc32C(testContent.getCrc32c()).build()) + .build(); + + SettableApiFuture> observerFuture = + SettableApiFuture.create(); + + ZeroCopyBidiStreamingCallable customCallable = + new ZeroCopyBidiStreamingCallable<>( + new BidiStreamingCallable() { + @Override + public ClientStream internalCall( + ResponseObserver responseObserver, + ClientStreamReadyObserver onReady, + ApiCallContext context) { + observerFuture.set(responseObserver); + responseObserver.onStart(TestUtils.nullStreamController()); + return new ClientStream() { + @Override + public void send(BidiReadObjectRequest request) {} + + @Override + public void closeSendWithError(Throwable t) {} + + @Override + public void closeSend() { + responseObserver.onComplete(); + } + + @Override + public boolean isSendReady() { + return true; + } + }; + } + }, + ResponseContentLifecycleManager.noopBidiReadObjectResponse()); + + try (AccumulatingRead read1 = + ObjectReadSessionStreamRead.createByteArrayAccumulatingRead( + 1, RangeSpec.all(), Hasher.defaultHasher(), RetryContext.neverRetry())) { + state.putOutstandingRead(1, read1); + + try (ObjectReadSessionStream stream = + ObjectReadSessionStream.create(exec, customCallable, state, RetryContext.neverRetry())) { + + stream.send(BidiReadObjectRequest.getDefaultInstance()); + + ResponseObserver observer = observerFuture.get(2, TimeUnit.SECONDS); + + BidiReadObjectResponse resp = + BidiReadObjectResponse.newBuilder() + .setMetadata(bidiMetadata) + .addObjectDataRanges( + com.google.storage.v2.ObjectRangeData.newBuilder() + .setReadRange( + com.google.storage.v2.ReadRange.newBuilder() + .setReadId(1) + .setReadOffset(0) + .build()) + .setChecksummedData(testContent.asChecksummedData()) + .setRangeEnd(true) + .build()) + .build(); + + observer.onResponse(resp); + + byte[] resultBytes = read1.get(2, TimeUnit.SECONDS); + assertThat(xxd(ByteBuffer.wrap(resultBytes))).isEqualTo(xxd(testContent.asByteBuffer())); + } + } + } + + @Test + public void validateCumulativeChecksum_bidi_failure() throws Exception { + ChecksummedTestContent testContent = + ChecksummedTestContent.of(DataGenerator.base64Characters().genBytes(10)); + + Object bidiMetadata = + Object.newBuilder() + .setSize(testContent.length()) + .setChecksums( + ObjectChecksums.newBuilder().setCrc32C(testContent.getCrc32c() + 1).build()) + .build(); + + SettableApiFuture> observerFuture = + SettableApiFuture.create(); + + ZeroCopyBidiStreamingCallable customCallable = + new ZeroCopyBidiStreamingCallable<>( + new BidiStreamingCallable() { + @Override + public ClientStream internalCall( + ResponseObserver responseObserver, + ClientStreamReadyObserver onReady, + ApiCallContext context) { + observerFuture.set(responseObserver); + responseObserver.onStart(TestUtils.nullStreamController()); + return new ClientStream() { + @Override + public void send(BidiReadObjectRequest request) {} + + @Override + public void closeSendWithError(Throwable t) {} + + @Override + public void closeSend() { + responseObserver.onComplete(); + } + + @Override + public boolean isSendReady() { + return true; + } + }; + } + }, + ResponseContentLifecycleManager.noopBidiReadObjectResponse()); + + try (AccumulatingRead read1 = + ObjectReadSessionStreamRead.createByteArrayAccumulatingRead( + 1, RangeSpec.all(), Hasher.defaultHasher(), RetryContext.neverRetry())) { + state.putOutstandingRead(1, read1); + + try (ObjectReadSessionStream stream = + ObjectReadSessionStream.create(exec, customCallable, state, RetryContext.neverRetry())) { + + stream.send(BidiReadObjectRequest.getDefaultInstance()); + + ResponseObserver observer = observerFuture.get(2, TimeUnit.SECONDS); + + BidiReadObjectResponse resp = + BidiReadObjectResponse.newBuilder() + .setMetadata(bidiMetadata) + .addObjectDataRanges( + com.google.storage.v2.ObjectRangeData.newBuilder() + .setReadRange( + com.google.storage.v2.ReadRange.newBuilder() + .setReadId(1) + .setReadOffset(0) + .build()) + .setChecksummedData(testContent.asChecksummedData()) + .setRangeEnd(true) + .build()) + .build(); + + observer.onResponse(resp); + + ExecutionException exception = + assertThrows(ExecutionException.class, () -> read1.get(2, TimeUnit.SECONDS)); + assertThat(exception.getCause()) + .isInstanceOf(UncheckedCumulativeChecksumMismatchException.class); + } + } + } + + @Test + public void validateCumulativeChecksum_bidi_disabled_noFailureOnMismatch() throws Exception { + ChecksummedTestContent testContent = + ChecksummedTestContent.of(DataGenerator.base64Characters().genBytes(10)); + + Object bidiMetadata = + Object.newBuilder() + .setSize(testContent.length()) + .setChecksums( + ObjectChecksums.newBuilder().setCrc32C(testContent.getCrc32c() + 1).build()) + .build(); + + SettableApiFuture> observerFuture = + SettableApiFuture.create(); + + ZeroCopyBidiStreamingCallable customCallable = + new ZeroCopyBidiStreamingCallable<>( + new BidiStreamingCallable() { + @Override + public ClientStream internalCall( + ResponseObserver responseObserver, + ClientStreamReadyObserver onReady, + ApiCallContext context) { + observerFuture.set(responseObserver); + responseObserver.onStart(TestUtils.nullStreamController()); + return new ClientStream() { + @Override + public void send(BidiReadObjectRequest request) {} + + @Override + public void closeSendWithError(Throwable t) {} + + @Override + public void closeSend() { + responseObserver.onComplete(); + } + + @Override + public boolean isSendReady() { + return true; + } + }; + } + }, + ResponseContentLifecycleManager.noopBidiReadObjectResponse()); + + try (AccumulatingRead read1 = + ObjectReadSessionStreamRead.createByteArrayAccumulatingRead( + 1, RangeSpec.all(), Hasher.noop(), RetryContext.neverRetry())) { + state.putOutstandingRead(1, read1); + + try (ObjectReadSessionStream stream = + ObjectReadSessionStream.create(exec, customCallable, state, RetryContext.neverRetry())) { + + stream.send(BidiReadObjectRequest.getDefaultInstance()); + + ResponseObserver observer = observerFuture.get(2, TimeUnit.SECONDS); + + BidiReadObjectResponse resp = + BidiReadObjectResponse.newBuilder() + .setMetadata(bidiMetadata) + .addObjectDataRanges( + com.google.storage.v2.ObjectRangeData.newBuilder() + .setReadRange( + com.google.storage.v2.ReadRange.newBuilder() + .setReadId(1) + .setReadOffset(0) + .build()) + .setChecksummedData(testContent.asChecksummedData()) + .setRangeEnd(true) + .build()) + .build(); + + observer.onResponse(resp); + + byte[] resultBytes = read1.get(2, TimeUnit.SECONDS); + assertThat(xxd(ByteBuffer.wrap(resultBytes))).isEqualTo(xxd(testContent.asByteBuffer())); + } + } + } + + @Test + public void validateCumulativeChecksum_bidi_skippedForRangedRead() throws Exception { + ChecksummedTestContent testContent = + ChecksummedTestContent.of(DataGenerator.base64Characters().genBytes(10)); + + Object bidiMetadata = + Object.newBuilder() + .setSize(testContent.length()) + .setChecksums( + ObjectChecksums.newBuilder().setCrc32C(testContent.getCrc32c() + 1).build()) + .build(); + + SettableApiFuture> observerFuture = + SettableApiFuture.create(); + + ZeroCopyBidiStreamingCallable customCallable = + new ZeroCopyBidiStreamingCallable<>( + new BidiStreamingCallable() { + @Override + public ClientStream internalCall( + ResponseObserver responseObserver, + ClientStreamReadyObserver onReady, + ApiCallContext context) { + observerFuture.set(responseObserver); + responseObserver.onStart(TestUtils.nullStreamController()); + return new ClientStream() { + @Override + public void send(BidiReadObjectRequest request) {} + + @Override + public void closeSendWithError(Throwable t) {} + + @Override + public void closeSend() { + responseObserver.onComplete(); + } + + @Override + public boolean isSendReady() { + return true; + } + }; + } + }, + ResponseContentLifecycleManager.noopBidiReadObjectResponse()); + + try (AccumulatingRead read1 = + ObjectReadSessionStreamRead.createByteArrayAccumulatingRead( + 1, RangeSpec.of(0, 5), Hasher.defaultHasher(), RetryContext.neverRetry())) { + state.putOutstandingRead(1, read1); + + try (ObjectReadSessionStream stream = + ObjectReadSessionStream.create(exec, customCallable, state, RetryContext.neverRetry())) { + + stream.send(BidiReadObjectRequest.getDefaultInstance()); + + ResponseObserver observer = observerFuture.get(2, TimeUnit.SECONDS); + + BidiReadObjectResponse resp = + BidiReadObjectResponse.newBuilder() + .setMetadata(bidiMetadata) + .addObjectDataRanges( + com.google.storage.v2.ObjectRangeData.newBuilder() + .setReadRange( + com.google.storage.v2.ReadRange.newBuilder() + .setReadId(1) + .setReadOffset(0) + .build()) + .setChecksummedData(testContent.slice(0, 5).asChecksummedData()) + .setRangeEnd(true) + .build()) + .build(); + + observer.onResponse(resp); + + byte[] resultBytes = read1.get(2, TimeUnit.SECONDS); + assertThat(xxd(ByteBuffer.wrap(resultBytes))) + .isEqualTo(xxd(testContent.slice(0, 5).asByteBuffer())); + } + } + } + + @Test + public void validateCumulativeChecksum_bidi_multipleChunks_success() throws Exception { + ChecksummedTestContent chunk1 = ChecksummedTestContent.of("abcde".getBytes()); + ChecksummedTestContent chunk2 = ChecksummedTestContent.of("fghij".getBytes()); + ChecksummedTestContent chunk3 = ChecksummedTestContent.of("klmno".getBytes()); + byte[] fullBytes = "abcdefghijklmno".getBytes(); + ChecksummedTestContent fullContent = ChecksummedTestContent.of(fullBytes); + + Object bidiMetadata = + Object.newBuilder() + .setSize(fullContent.length()) + .setChecksums(ObjectChecksums.newBuilder().setCrc32C(fullContent.getCrc32c()).build()) + .build(); + + SettableApiFuture> observerFuture = + SettableApiFuture.create(); + + ZeroCopyBidiStreamingCallable customCallable = + new ZeroCopyBidiStreamingCallable<>( + new BidiStreamingCallable() { + @Override + public ClientStream internalCall( + ResponseObserver responseObserver, + ClientStreamReadyObserver onReady, + ApiCallContext context) { + observerFuture.set(responseObserver); + responseObserver.onStart(TestUtils.nullStreamController()); + return new ClientStream() { + @Override + public void send(BidiReadObjectRequest request) {} + + @Override + public void closeSendWithError(Throwable t) {} + + @Override + public void closeSend() { + responseObserver.onComplete(); + } + + @Override + public boolean isSendReady() { + return true; + } + }; + } + }, + ResponseContentLifecycleManager.noopBidiReadObjectResponse()); + + try (AccumulatingRead read1 = + ObjectReadSessionStreamRead.createByteArrayAccumulatingRead( + 1, RangeSpec.all(), Hasher.defaultHasher(), RetryContext.neverRetry())) { + state.putOutstandingRead(1, read1); + + try (ObjectReadSessionStream stream = + ObjectReadSessionStream.create(exec, customCallable, state, RetryContext.neverRetry())) { + + stream.send(BidiReadObjectRequest.getDefaultInstance()); + + ResponseObserver observer = observerFuture.get(2, TimeUnit.SECONDS); + + observer.onResponse( + BidiReadObjectResponse.newBuilder() + .addObjectDataRanges( + com.google.storage.v2.ObjectRangeData.newBuilder() + .setReadRange( + com.google.storage.v2.ReadRange.newBuilder() + .setReadId(1) + .setReadOffset(0) + .build()) + .setChecksummedData(chunk1.asChecksummedData()) + .build()) + .build()); + + observer.onResponse( + BidiReadObjectResponse.newBuilder() + .addObjectDataRanges( + com.google.storage.v2.ObjectRangeData.newBuilder() + .setReadRange( + com.google.storage.v2.ReadRange.newBuilder() + .setReadId(1) + .setReadOffset(5) + .build()) + .setChecksummedData(chunk2.asChecksummedData()) + .build()) + .build()); + + observer.onResponse( + BidiReadObjectResponse.newBuilder() + .setMetadata(bidiMetadata) + .addObjectDataRanges( + com.google.storage.v2.ObjectRangeData.newBuilder() + .setReadRange( + com.google.storage.v2.ReadRange.newBuilder() + .setReadId(1) + .setReadOffset(10) + .build()) + .setChecksummedData(chunk3.asChecksummedData()) + .setRangeEnd(true) + .build()) + .build()); + + byte[] resultBytes = read1.get(2, TimeUnit.SECONDS); + assertThat(xxd(ByteBuffer.wrap(resultBytes))).isEqualTo(xxd(fullContent.asByteBuffer())); + } + } + } + + @Test + public void validateCumulativeChecksum_bidi_multipleChunks_failure() throws Exception { + ChecksummedTestContent chunk1 = ChecksummedTestContent.of("abcde".getBytes()); + ChecksummedTestContent chunk2 = ChecksummedTestContent.of("fghij".getBytes()); + ChecksummedTestContent chunk3 = ChecksummedTestContent.of("klmno".getBytes()); + byte[] fullBytes = "abcdefghijklmno".getBytes(); + ChecksummedTestContent fullContent = ChecksummedTestContent.of(fullBytes); + + Object bidiMetadata = + Object.newBuilder() + .setSize(fullContent.length()) + .setChecksums( + ObjectChecksums.newBuilder().setCrc32C(fullContent.getCrc32c() + 1).build()) + .build(); + + SettableApiFuture> observerFuture = + SettableApiFuture.create(); + + ZeroCopyBidiStreamingCallable customCallable = + new ZeroCopyBidiStreamingCallable<>( + new BidiStreamingCallable() { + @Override + public ClientStream internalCall( + ResponseObserver responseObserver, + ClientStreamReadyObserver onReady, + ApiCallContext context) { + observerFuture.set(responseObserver); + responseObserver.onStart(TestUtils.nullStreamController()); + return new ClientStream() { + @Override + public void send(BidiReadObjectRequest request) {} + + @Override + public void closeSendWithError(Throwable t) {} + + @Override + public void closeSend() { + responseObserver.onComplete(); + } + + @Override + public boolean isSendReady() { + return true; + } + }; + } + }, + ResponseContentLifecycleManager.noopBidiReadObjectResponse()); + + try (AccumulatingRead read1 = + ObjectReadSessionStreamRead.createByteArrayAccumulatingRead( + 1, RangeSpec.all(), Hasher.defaultHasher(), RetryContext.neverRetry())) { + state.putOutstandingRead(1, read1); + + try (ObjectReadSessionStream stream = + ObjectReadSessionStream.create(exec, customCallable, state, RetryContext.neverRetry())) { + + stream.send(BidiReadObjectRequest.getDefaultInstance()); + + ResponseObserver observer = observerFuture.get(2, TimeUnit.SECONDS); + + observer.onResponse( + BidiReadObjectResponse.newBuilder() + .addObjectDataRanges( + com.google.storage.v2.ObjectRangeData.newBuilder() + .setReadRange( + com.google.storage.v2.ReadRange.newBuilder() + .setReadId(1) + .setReadOffset(0) + .build()) + .setChecksummedData(chunk1.asChecksummedData()) + .build()) + .build()); + + observer.onResponse( + BidiReadObjectResponse.newBuilder() + .addObjectDataRanges( + com.google.storage.v2.ObjectRangeData.newBuilder() + .setReadRange( + com.google.storage.v2.ReadRange.newBuilder() + .setReadId(1) + .setReadOffset(5) + .build()) + .setChecksummedData(chunk2.asChecksummedData()) + .build()) + .build()); + + observer.onResponse( + BidiReadObjectResponse.newBuilder() + .setMetadata(bidiMetadata) + .addObjectDataRanges( + com.google.storage.v2.ObjectRangeData.newBuilder() + .setReadRange( + com.google.storage.v2.ReadRange.newBuilder() + .setReadId(1) + .setReadOffset(10) + .build()) + .setChecksummedData(chunk3.asChecksummedData()) + .setRangeEnd(true) + .build()) + .build()); + + ExecutionException exception = + assertThrows(ExecutionException.class, () -> read1.get(2, TimeUnit.SECONDS)); + assertThat(exception.getCause()) + .isInstanceOf(UncheckedCumulativeChecksumMismatchException.class); + } + } + } } From 35804075564723e744a5fb30e291fcfc235bbcad Mon Sep 17 00:00:00 2001 From: Keshav Dandeva Date: Wed, 17 Jun 2026 21:13:33 +0200 Subject: [PATCH 25/82] feat(bigquery): add internal listProjects API to core client (#13429) b/521443900 This PR introduces support for fetching a list of GCP projects via the BigQuery API. This functionality is being exposed primarily to support cross-project dataset resolution in the native BigQuery JDBC driver. **Changes included:** * **Domain Model:** Added `Project` domain model representing a BigQuery project (`@BetaApi`). * **Client Interface:** Added `listProjects(ProjectListOption... options)` to the `BigQuery` client interface, marked as `@InternalApi` to preserve the public GA surface. * **SPI Layer:** Added `listProjects` mapping to `BigQueryRpc` and implemented the underlying HTTP execution in `HttpBigQueryRpc`, including pagination and OpenTelemetry tracing support. * **Implementation:** Implemented `ProjectPageFetcher` inside `BigQueryImpl` to seamlessly handle paginated project results. * **Testing:** Added unit test coverage in `BigQueryImplTest` and `HttpBigQueryRpcTest`. --- .../com/google/cloud/bigquery/BigQuery.java | 27 +++++ .../google/cloud/bigquery/BigQueryImpl.java | 86 ++++++++++++++ .../com/google/cloud/bigquery/Project.java | 108 ++++++++++++++++++ .../cloud/bigquery/spi/v2/BigQueryRpc.java | 10 ++ .../bigquery/spi/v2/HttpBigQueryRpc.java | 44 +++++++ .../cloud/bigquery/BigQueryImplTest.java | 46 ++++++++ .../bigquery/spi/v2/HttpBigQueryRpcTest.java | 25 ++++ 7 files changed, 346 insertions(+) create mode 100644 java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Project.java diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQuery.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQuery.java index ab16ed40f7c9..f92cb96c377a 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQuery.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQuery.java @@ -306,6 +306,24 @@ public static DatasetListOption all() { } } + /** Class for specifying project list options. */ + @BetaApi + class ProjectListOption extends Option { + private static final long serialVersionUID = -7256063598324265038L; + + private ProjectListOption(BigQueryRpc.Option option, Object value) { + super(option, value); + } + + public static ProjectListOption pageSize(long pageSize) { + return new ProjectListOption(BigQueryRpc.Option.MAX_RESULTS, pageSize); + } + + public static ProjectListOption pageToken(String pageToken) { + return new ProjectListOption(BigQueryRpc.Option.PAGE_TOKEN, pageToken); + } + } + /** Class for specifying dataset get, create and update options. */ class DatasetOption extends Option { @@ -951,6 +969,15 @@ public int hashCode() { */ Page listDatasets(DatasetListOption... options); + /** + * Lists the projects accessible to the caller. + * + * @param options options for listing projects + * @return a page of projects + */ + @BetaApi + Page listProjects(ProjectListOption... options); + /** * Lists the datasets in the provided project. This method returns partial information on each * dataset: ({@link Dataset#getDatasetId()}, {@link Dataset#getFriendlyName()} and {@link diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java index 447fe916c5db..e70194766a6f 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java @@ -25,6 +25,7 @@ import com.google.api.gax.paging.Page; import com.google.api.services.bigquery.model.ErrorProto; import com.google.api.services.bigquery.model.GetQueryResultsResponse; +import com.google.api.services.bigquery.model.ProjectList; import com.google.api.services.bigquery.model.QueryRequest; import com.google.api.services.bigquery.model.TableDataInsertAllRequest; import com.google.api.services.bigquery.model.TableDataInsertAllRequest.Rows; @@ -65,6 +66,25 @@ final class BigQueryImpl extends BaseService implements BigQuery { + private static class ProjectPageFetcher implements NextPageFetcher { + + private static final long serialVersionUID = 1L; + private final Map requestOptions; + private final BigQueryOptions serviceOptions; + + ProjectPageFetcher( + BigQueryOptions serviceOptions, String cursor, Map optionMap) { + this.requestOptions = + PageImpl.nextRequestOptions(BigQueryRpc.Option.PAGE_TOKEN, cursor, optionMap); + this.serviceOptions = serviceOptions; + } + + @Override + public Page getNextPage() { + return listProjects(serviceOptions, requestOptions); + } + } + private static class DatasetPageFetcher implements NextPageFetcher { private static final long serialVersionUID = -3057564042439021278L; @@ -307,6 +327,72 @@ public com.google.api.services.bigquery.model.Dataset call() throws IOException } } + @Override + @BetaApi + public Page listProjects(ProjectListOption... options) { + Span projectsList = null; + if (getOptions().isOpenTelemetryTracingEnabled() + && getOptions().getOpenTelemetryTracer() != null) { + projectsList = + getOptions() + .getOpenTelemetryTracer() + .spanBuilder("com.google.cloud.bigquery.BigQuery.listProjects") + .setAllAttributes(otelAttributesFromOptions(options)) + .startSpan(); + } + try (Scope projectsListScope = projectsList != null ? projectsList.makeCurrent() : null) { + return listProjects(getOptions(), optionMap(options)); + } finally { + if (projectsList != null) { + projectsList.end(); + } + } + } + + private static Page listProjects( + final BigQueryOptions serviceOptions, final Map optionsMap) { + try { + Tuple> result = + BigQueryRetryHelper.runWithRetries( + new Callable>>() { + @Override + public Tuple> call() { + return serviceOptions.getBigQueryRpcV2().listProjects(optionsMap); + } + }, + serviceOptions.getRetrySettings(), + serviceOptions.getResultRetryAlgorithm(), + serviceOptions.getClock(), + EMPTY_RETRY_CONFIG, + serviceOptions.isOpenTelemetryTracingEnabled(), + serviceOptions.getOpenTelemetryTracer()); + String nextPageToken = result.x(); + Iterable projects = + Iterables.transform( + result.y() != null ? result.y() : ImmutableList.of(), + new Function() { + @Override + public Project apply(ProjectList.Projects projectPb) { + return new Project( + projectPb.getId(), + projectPb.getNumericId() != null + ? String.valueOf(projectPb.getNumericId()) + : null, + projectPb.getProjectReference() != null + ? projectPb.getProjectReference().getProjectId() + : null, + projectPb.getFriendlyName()); + } + }); + return new PageImpl<>( + new ProjectPageFetcher(serviceOptions, nextPageToken, optionsMap), + nextPageToken, + projects); + } catch (BigQueryRetryHelperException e) { + throw BigQueryException.translateAndThrow(e); + } + } + @Override public Table create(TableInfo tableInfo, TableOption... options) { final com.google.api.services.bigquery.model.Table tablePb = diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Project.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Project.java new file mode 100644 index 000000000000..6020a8d14cf1 --- /dev/null +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/Project.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.bigquery; + +import com.google.api.core.BetaApi; +import java.io.Serializable; +import java.util.Objects; +import javax.annotation.Nullable; + +/** + * Google BigQuery Project information. A project is the top-level container for Google Cloud + * resources, and holds BigQuery dataset collections. This class wraps a BigQuery project resource, + * providing details such as the project's unique alphanumeric ID, numeric project number, and + * friendly display name. + * + *

            Objects of this class can be obtained by listing projects accessible to the caller using + * {@link BigQuery#listProjects(BigQuery.ProjectListOption...)}. + * + * @see Projects: + * list + */ +@BetaApi +public class Project implements Serializable { + private static final long serialVersionUID = -8123877292090683890L; + + private final String id; + private final String numericId; + private final String projectId; + private final String friendlyName; + + public Project(String id, String numericId, String projectId, String friendlyName) { + this.id = id; + this.numericId = numericId; + this.projectId = projectId; + this.friendlyName = friendlyName; + } + + /** Returns the resource ID of the project. */ + public String getId() { + return id; + } + + /** Returns the unique numeric project number. */ + @Nullable + public String getNumericId() { + return numericId; + } + + /** Returns the unique alphanumeric project ID. */ + @Nullable + public String getProjectId() { + return projectId; + } + + /** Returns the user-defined display name of the project. */ + @Nullable + public String getFriendlyName() { + return friendlyName; + } + + @Override + public boolean equals(Object o) { + if (this == o) return true; + if (o == null || getClass() != o.getClass()) return false; + Project project = (Project) o; + return Objects.equals(id, project.id) + && Objects.equals(numericId, project.numericId) + && Objects.equals(projectId, project.projectId) + && Objects.equals(friendlyName, project.friendlyName); + } + + @Override + public int hashCode() { + return Objects.hash(id, numericId, projectId, friendlyName); + } + + @Override + public String toString() { + return "Project{" + + "id='" + + id + + '\'' + + ", numericId='" + + numericId + + '\'' + + ", projectId='" + + projectId + + '\'' + + ", friendlyName='" + + friendlyName + + '\'' + + '}'; + } +} diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/BigQueryRpc.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/BigQueryRpc.java index 65fd45d02a10..3898e6a10d98 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/BigQueryRpc.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/BigQueryRpc.java @@ -16,6 +16,7 @@ package com.google.cloud.bigquery.spi.v2; +import com.google.api.core.InternalApi; import com.google.api.core.InternalExtensionOnly; import com.google.api.services.bigquery.Bigquery.Jobs.Query; import com.google.api.services.bigquery.model.Dataset; @@ -108,6 +109,15 @@ Boolean getBoolean(Map options) { */ Tuple> listDatasets(String projectId, Map options); + /** + * Lists the projects accessible to the caller, keyed by page token. + * + * @throws BigQueryException upon failure + */ + @InternalApi + Tuple> listProjects( + Map options); + /** * Creates a new dataset. * diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java index b89cb99d4d64..41fe993b204e 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpc.java @@ -50,6 +50,7 @@ import com.google.api.services.bigquery.model.Model; import com.google.api.services.bigquery.model.ModelReference; import com.google.api.services.bigquery.model.Policy; +import com.google.api.services.bigquery.model.ProjectList; import com.google.api.services.bigquery.model.QueryRequest; import com.google.api.services.bigquery.model.QueryResponse; import com.google.api.services.bigquery.model.Routine; @@ -261,6 +262,49 @@ public Tuple> listDatasetsSkipExceptionTranslation( }); } + @Override + public Tuple> listProjects(Map options) { + try { + validateRPC(); + Bigquery.Projects.List request = bigquery.projects().list(); + Long maxResults = Option.MAX_RESULTS.getLong(options); + if (maxResults != null) { + request.setMaxResults(maxResults); + } + String pageToken = Option.PAGE_TOKEN.getString(options); + if (pageToken != null) { + request.setPageToken(pageToken); + } + request + .getRequestHeaders() + .set("x-goog-otel-enabled", this.options.isOpenTelemetryTracingEnabled()); + + String gcpResourceDestinationId = RESOURCE_PROJECT_PREFIX + this.options.getProjectId(); + + return executeWithSpan( + createRpcTracingSpan( + "com.google.cloud.bigquery.BigQueryRpc.listProjects", + "ProjectService", + "ListProjects", + gcpResourceDestinationId, + request.getUriTemplate(), + options), + span -> { + if (span != null) { + span.setAttribute("bq.rpc.page_token", request.getPageToken()); + } + ProjectList projectList = request.execute(); + Iterable projects = projectList.getProjects(); + if (span != null) { + span.setAttribute("bq.rpc.next_page_token", projectList.getNextPageToken()); + } + return Tuple.of(projectList.getNextPageToken(), projects); + }); + } catch (IOException e) { + throw translate(e); + } + } + @Override public Dataset create(Dataset dataset, Map options) { try { diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java index 20a6ef679e89..5c8d5b3dc5f0 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java @@ -41,6 +41,8 @@ import com.google.api.services.bigquery.model.GetQueryResultsResponse; import com.google.api.services.bigquery.model.JobConfigurationQuery; import com.google.api.services.bigquery.model.JobStatistics; +import com.google.api.services.bigquery.model.ProjectList; +import com.google.api.services.bigquery.model.ProjectReference; import com.google.api.services.bigquery.model.QueryRequest; import com.google.api.services.bigquery.model.TableCell; import com.google.api.services.bigquery.model.TableDataInsertAllRequest; @@ -777,6 +779,50 @@ void testListDatasetsWithOptions() throws IOException { verify(bigqueryRpcMock).listDatasetsSkipExceptionTranslation(PROJECT, DATASET_LIST_OPTIONS); } + @Test + void testListProjects() { + bigquery = options.getService(); + ProjectList.Projects p1 = + new ProjectList.Projects() + .setId("id1") + .setNumericId(BigInteger.valueOf(111L)) + .setProjectReference(new ProjectReference().setProjectId("p-1")) + .setFriendlyName("fn1"); + ProjectList.Projects p2 = + new ProjectList.Projects() + .setId("id2") + .setNumericId(BigInteger.valueOf(222L)) + .setProjectReference(new ProjectReference().setProjectId("p-2")) + .setFriendlyName("fn2"); + ImmutableList projectsPb = ImmutableList.of(p1, p2); + Tuple> result = Tuple.of(CURSOR, projectsPb); + + when(bigqueryRpcMock.listProjects(EMPTY_RPC_OPTIONS)).thenReturn(result); + + Page page = bigquery.listProjects(); + assertEquals(CURSOR, page.getNextPageToken()); + + Project expected1 = new Project("id1", "111", "p-1", "fn1"); + Project expected2 = new Project("id2", "222", "p-2", "fn2"); + assertArrayEquals( + new Project[] {expected1, expected2}, Iterables.toArray(page.getValues(), Project.class)); + verify(bigqueryRpcMock).listProjects(EMPTY_RPC_OPTIONS); + } + + @Test + void testListEmptyProjects() { + bigquery = options.getService(); + ImmutableList projectsPb = ImmutableList.of(); + Tuple> result = Tuple.of(null, projectsPb); + + when(bigqueryRpcMock.listProjects(EMPTY_RPC_OPTIONS)).thenReturn(result); + + Page page = bigquery.listProjects(); + assertNull(page.getNextPageToken()); + assertArrayEquals(new Project[0], Iterables.toArray(page.getValues(), Project.class)); + verify(bigqueryRpcMock).listProjects(EMPTY_RPC_OPTIONS); + } + @Test void testDeleteDataset() throws IOException { when(bigqueryRpcMock.deleteDatasetSkipExceptionTranslation(PROJECT, DATASET, EMPTY_RPC_OPTIONS)) diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpcTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpcTest.java index c6961ea63d15..4c3bf67921e6 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpcTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/spi/v2/HttpBigQueryRpcTest.java @@ -38,6 +38,7 @@ import com.google.api.services.bigquery.model.Model; import com.google.api.services.bigquery.model.ModelReference; import com.google.api.services.bigquery.model.Policy; +import com.google.api.services.bigquery.model.ProjectList; import com.google.api.services.bigquery.model.QueryRequest; import com.google.api.services.bigquery.model.Routine; import com.google.api.services.bigquery.model.RoutineReference; @@ -279,6 +280,30 @@ public void testListDatasetsTelemetry() throws Exception { Collections.singletonMap("bq.rpc.next_page_token", "next-page-token")); } + @Test + public void testListProjects() throws Exception { + setMockResponse( + "{\"kind\":\"bigquery#projectList\",\"projects\":[{\"id\":\"p1\",\"friendlyName\":\"Project 1\"}], \"nextPageToken\":\"token2\"}"); + + Map options = new java.util.HashMap<>(); + options.put(BigQueryRpc.Option.MAX_RESULTS, 10L); + options.put(BigQueryRpc.Option.PAGE_TOKEN, "token1"); + + com.google.cloud.Tuple> result = + rpc.listProjects(options); + + verifyRequest("GET", "/projects?maxResults=10&pageToken=token1"); + assertEquals("token2", result.x()); + assertNotNull(result.y()); + assertEquals("p1", result.y().iterator().next().getId()); + verifySpan( + "com.google.cloud.bigquery.BigQueryRpc.listProjects", + "ProjectService", + "ListProjects", + RESOURCE_PROJECT_PREFIX + PROJECT_ID, + Collections.singletonMap("bq.rpc.next_page_token", "token2")); + } + @Test public void testCreateDatasetTelemetry() throws Exception { setMockResponse( From 9b073c71286200530f1f82fd15ff22a360427eed Mon Sep 17 00:00:00 2001 From: Blake Li Date: Wed, 17 Jun 2026 16:26:49 -0400 Subject: [PATCH 26/82] refactor(test): migrate remaining wait loops to Awaitility in GAX tests (#13484) This PR migrates all remaining wait loops and polling blocks in GAX tests to use Awaitility. This is the second part of b/505479343, following the initial introduction of Awaitility in #13458. Specifically, this migrates: - Semaphore64Test: replaced mock thread wait loops with Awaitility state waiting. - ScheduledRetryingExecutorTest: migrated future attempt checking, attempt cancellation wait, and first attempt latch count down to Awaitility. - BatcherImplTest: converted GC loops and thread state polling blocks to Awaitility. --- .../api/gax/batching/BatcherImplTest.java | 115 ++++++++---------- .../api/gax/batching/Semaphore64Test.java | 23 ++-- .../ScheduledRetryingExecutorTest.java | 57 +++++---- 3 files changed, 99 insertions(+), 96 deletions(-) diff --git a/sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/batching/BatcherImplTest.java b/sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/batching/BatcherImplTest.java index 1d77df8e0fe6..ce4f43b45c53 100644 --- a/sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/batching/BatcherImplTest.java +++ b/sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/batching/BatcherImplTest.java @@ -33,6 +33,7 @@ import static com.google.api.gax.rpc.testing.FakeBatchableApi.callLabeledIntSquarer; import static com.google.common.truth.Truth.assertThat; import static com.google.common.truth.Truth.assertWithMessage; +import static org.awaitility.Awaitility.await; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.eq; @@ -599,15 +600,14 @@ void testPushCurrentBatchRunnable() throws Exception { // Batcher present inside runnable should be GCed after following loop. batcher.close(); batcher = null; - for (int retry = 0; retry < 3; retry++) { - System.gc(); - System.runFinalization(); - isExecutorCancelled = pushBatchRunnable.isCancelled(); - if (isExecutorCancelled) { - break; - } - Thread.sleep(DELAY_TIME * (1L << retry)); - } + await() + .atMost(Duration.ofSeconds(5)) + .until( + () -> { + System.gc(); + System.runFinalization(); + return pushBatchRunnable.isCancelled(); + }); // ScheduledFuture should be isCancelled now. assertThat(pushBatchRunnable.isCancelled()).isTrue(); } @@ -733,18 +733,14 @@ public void splitResponse( */ @Test void testUnclosedBatchersAreLogged() throws Exception { - final long DELAY_TIME = 30L; - int actualRemaining = 0; - for (int retry = 0; retry < 3; retry++) { - System.gc(); - System.runFinalization(); - actualRemaining = BatcherReference.cleanQueue(); - if (actualRemaining == 0) { - break; - } - Thread.sleep(DELAY_TIME * (1L << retry)); - } - assertThat(actualRemaining).isAtMost(0); + await() + .atMost(Duration.ofSeconds(5)) + .until( + () -> { + System.gc(); + System.runFinalization(); + return BatcherReference.cleanQueue() == 0; + }); underTest = createDefaultBatcherImpl(batchingSettings, null); Batcher extraBatcher = createDefaultBatcherImpl(batchingSettings, null); @@ -771,20 +767,16 @@ public boolean isLoggable(LogRecord record) { underTest = null; // That *should* have been the last reference. Try to reclaim it. - boolean success = false; - for (int retry = 0; retry < 3; retry++) { - System.gc(); - System.runFinalization(); - int orphans = BatcherReference.cleanQueue(); - if (orphans == 1) { - success = true; - break; - } - // Validates that there are no other batcher instance present while GC cleanup. - assertWithMessage("unexpected extra orphans").that(orphans).isEqualTo(0); - Thread.sleep(DELAY_TIME * (1L << retry)); - } - assertWithMessage("Batcher was not garbage collected").that(success).isTrue(); + await() + .atMost(Duration.ofSeconds(5)) + .until( + () -> { + System.gc(); + System.runFinalization(); + int orphans = BatcherReference.cleanQueue(); + assertWithMessage("unexpected extra orphans").that(orphans).isAtMost(1); + return orphans == 1; + }); LogRecord lr; synchronized (records) { @@ -807,18 +799,14 @@ public boolean isLoggable(LogRecord record) { @Test void testClosedBatchersAreNotLogged() throws Exception { // Clean out the existing instances - final long DELAY_TIME = 30L; - int actualRemaining = 0; - for (int retry = 0; retry < 3; retry++) { - System.gc(); - System.runFinalization(); - actualRemaining = BatcherReference.cleanQueue(); - if (actualRemaining == 0) { - break; - } - Thread.sleep(DELAY_TIME * (1L << retry)); - } - assertThat(actualRemaining).isAtMost(0); + await() + .atMost(Duration.ofSeconds(5)) + .until( + () -> { + System.gc(); + System.runFinalization(); + return BatcherReference.cleanQueue() == 0; + }); // Capture logs final List records = new ArrayList<>(1); @@ -849,16 +837,19 @@ public boolean isLoggable(LogRecord record) { } } // Run GC a few times to give the batchers a chance to be collected - for (int retry = 0; retry < 100; retry++) { - System.gc(); - System.runFinalization(); - BatcherReference.cleanQueue(); - Thread.sleep(10); - } - - synchronized (records) { - assertThat(records).isEmpty(); - } + await() + .pollInterval(Duration.ofMillis(10)) + .during(Duration.ofSeconds(1)) + .atMost(Duration.ofSeconds(5)) + .until( + () -> { + System.gc(); + System.runFinalization(); + BatcherReference.cleanQueue(); + synchronized (records) { + return records.isEmpty(); + } + }); } finally { // reset logging batcherLogger.setFilter(oldFilter); @@ -990,10 +981,12 @@ void testThrottlingBlocking() throws Exception { // resulting in a shorter total_throttled_time at the verification of throttledTime // at the end of the test. // https://github.com/googleapis/sdk-platform-java/issues/1193 - do { - Thread.sleep(10); - } while (batcherAddThreadHolder.isEmpty() - || batcherAddThreadHolder.get(0).getState() != Thread.State.WAITING); + await() + .atMost(Duration.ofSeconds(5)) + .until( + () -> + !batcherAddThreadHolder.isEmpty() + && batcherAddThreadHolder.get(0).getState() == Thread.State.WAITING); long beforeGetCall = System.currentTimeMillis(); executor.submit( diff --git a/sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/batching/Semaphore64Test.java b/sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/batching/Semaphore64Test.java index 96fe3c81e943..d1ce30763d89 100644 --- a/sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/batching/Semaphore64Test.java +++ b/sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/batching/Semaphore64Test.java @@ -29,12 +29,14 @@ */ package com.google.api.gax.batching; +import static org.awaitility.Awaitility.await; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.junit.jupiter.api.Assertions.fail; +import java.time.Duration; import java.util.LinkedList; import java.util.List; import java.util.concurrent.TimeUnit; @@ -68,8 +70,7 @@ void testBlocking() throws InterruptedException { Thread t = new Thread(() -> semaphore.acquire(1)); t.start(); - Thread.sleep(50); - assertTrue(t.isAlive()); + await().atMost(Duration.ofSeconds(5)).until(() -> t.getState() == Thread.State.WAITING); semaphore.release(1); t.join(); @@ -95,8 +96,7 @@ void testReducePermitLimitBlocking() throws InterruptedException { Thread t = new Thread(() -> semaphore.acquire(1)); t.start(); - Thread.sleep(50); - assertTrue(t.isAlive()); + await().atMost(Duration.ofSeconds(5)).until(() -> t.getState() == Thread.State.WAITING); semaphore.release(1); t.join(); @@ -124,8 +124,7 @@ void testAcquirePartialBlocking() throws Exception { Thread t1 = new Thread(() -> semaphore.acquire(1)); t1.start(); // wait for thread to start - Thread.sleep(100); - assertTrue(t1.isAlive()); + await().atMost(Duration.ofSeconds(5)).until(() -> t1.getState() == Thread.State.WAITING); semaphore.release(6); t1.join(); @@ -133,8 +132,7 @@ void testAcquirePartialBlocking() throws Exception { Thread t2 = new Thread(() -> semaphore.acquirePartial(6)); t2.start(); // wait fo thread to start - Thread.sleep(100); - assertTrue(t2.isAlive()); + await().atMost(Duration.ofSeconds(5)).until(() -> t2.getState() == Thread.State.WAITING); // limit should still be 5 and get limit should not block assertEquals(5, semaphore.getPermitLimit()); } @@ -158,8 +156,7 @@ void testIncreasePermitLimitBlocking() throws Exception { Thread t = new Thread(() -> semaphore.acquire(1)); t.start(); - Thread.sleep(50); - assertTrue(t.isAlive()); + await().atMost(Duration.ofSeconds(5)).until(() -> t.getState() == Thread.State.WAITING); semaphore.increasePermitLimit(1); t.join(); @@ -208,8 +205,7 @@ void testReleaseWontOverflowBlocking() throws Exception { semaphore.release(10); Thread t = new Thread(() -> semaphore.acquire(11)); t.start(); - Thread.sleep(100); - assertTrue(t.isAlive()); + await().atMost(Duration.ofSeconds(5)).until(() -> t.getState() == Thread.State.WAITING); } @Test @@ -239,7 +235,6 @@ void testPermitLimitUnderflowBlocking() throws Exception { semaphore.release(10); Thread t = new Thread(() -> semaphore.acquire(11)); t.start(); - Thread.sleep(100); - assertTrue(t.isAlive()); + await().atMost(Duration.ofSeconds(5)).until(() -> t.getState() == Thread.State.WAITING); } } diff --git a/sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/retrying/ScheduledRetryingExecutorTest.java b/sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/retrying/ScheduledRetryingExecutorTest.java index 7d57733c5005..89b807bd5610 100644 --- a/sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/retrying/ScheduledRetryingExecutorTest.java +++ b/sdk-platform-java/gax-java/gax/src/test/java/com/google/api/gax/retrying/ScheduledRetryingExecutorTest.java @@ -30,6 +30,7 @@ package com.google.api.gax.retrying; import static com.google.api.gax.retrying.FailingCallable.FAST_RETRY_SETTINGS; +import static org.awaitility.Awaitility.await; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; @@ -41,12 +42,15 @@ import com.google.api.core.NanoClock; import com.google.api.gax.retrying.FailingCallable.CustomException; import com.google.api.gax.rpc.testing.FakeCallContext; +import java.time.Duration; import java.util.concurrent.CancellationException; import java.util.concurrent.ExecutionException; import java.util.concurrent.Executors; import java.util.concurrent.Future; import java.util.concurrent.RejectedExecutionException; import java.util.concurrent.ScheduledExecutorService; +import java.util.concurrent.atomic.AtomicInteger; +import java.util.concurrent.atomic.AtomicReference; import org.junit.jupiter.api.Test; import org.mockito.Mockito; @@ -99,26 +103,32 @@ void testSuccessWithFailuresPeekAttempt() throws Exception { future.setAttemptFuture(executor.submit(future)); - int failedAttempts = 0; - while (!future.isDone()) { - ApiFuture attemptResult = future.peekAttemptResult(); - if (attemptResult != null) { - assertTrue(attemptResult.isDone()); - assertFalse(attemptResult.isCancelled()); - try { - attemptResult.get(); - } catch (ExecutionException e) { - if (e.getCause() instanceof CustomException) { - failedAttempts++; - } - } - } - Thread.sleep(0L, 100); - } + final AtomicInteger failedAttempts = new AtomicInteger(0); + final AtomicReference> lastSeenAttempt = new AtomicReference<>(); + await() + .pollInterval(Duration.ofMillis(2)) + .atMost(Duration.ofSeconds(5)) + .until( + () -> { + ApiFuture attemptResult = future.peekAttemptResult(); + if (attemptResult != null && attemptResult != lastSeenAttempt.get()) { + lastSeenAttempt.set(attemptResult); + assertTrue(attemptResult.isDone()); + assertFalse(attemptResult.isCancelled()); + try { + attemptResult.get(); + } catch (ExecutionException e) { + if (e.getCause() instanceof CustomException) { + failedAttempts.incrementAndGet(); + } + } + } + return future.isDone(); + }); assertFutureSuccess(future); assertEquals(15, future.getAttemptSettings().getAttemptCount()); - assertTrue(failedAttempts > 0); + assertTrue(failedAttempts.get() > 0); } } @@ -260,9 +270,12 @@ void testCancelOuterFutureAfterStart() throws Exception { callable.setExternalFuture(future); future.setAttemptFuture(executor.submit(future)); - // The test sleeps a duration long enough to ensure that the future has been submitted for - // execution - Thread.sleep(150L); + await() + .atMost(Duration.ofSeconds(5)) + .until( + () -> + future.getAttemptSettings() != null + && future.getAttemptSettings().getAttemptCount() > 0); boolean res = future.cancel(false); assertTrue(res); @@ -302,7 +315,9 @@ void testCancelProxiedFutureAfterStart() throws Exception { callable.setExternalFuture(future); future.setAttemptFuture(executor.submit(future)); - Thread.sleep(50L); + await() + .atMost(Duration.ofSeconds(5)) + .until(() -> callable.getFirstAttemptFinishedLatch().getCount() == 0); // Note that shutdownNow() will not cancel internal FutureTasks automatically, which // may potentially cause another thread handing on RetryingFuture#get() call forever. From 7f4c73a447832836fd76ca7bff349b2fb43d678f Mon Sep 17 00:00:00 2001 From: sofisl <55454395+sofisl@users.noreply.github.com> Date: Wed, 17 Jun 2026 14:00:33 -0700 Subject: [PATCH 27/82] chore: add option in librarian for license headers in grafeas (#13510) Adds alternate headers for grafeas. Will wait to regenerate until https://github.com/googleapis/librarian/pull/6481 is merged. For https://github.com/googleapis/librarian/issues/6178 --- java-grafeas/license-header.txt | 15 +++++++++++++++ librarian.yaml | 1 + 2 files changed, 16 insertions(+) create mode 100644 java-grafeas/license-header.txt diff --git a/java-grafeas/license-header.txt b/java-grafeas/license-header.txt new file mode 100644 index 000000000000..360730de8068 --- /dev/null +++ b/java-grafeas/license-header.txt @@ -0,0 +1,15 @@ +/* + * Copyright 2026 The Grafeas Authors. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ \ No newline at end of file diff --git a/librarian.yaml b/librarian.yaml index 709d89c4e5a0..387b65ef2ee4 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -1856,6 +1856,7 @@ libraries: name_pretty_override: Grafeas product_documentation_override: https://grafeas.io skip_pom_updates: true + alternate_headers: license-header.txt - name: gsuite-addons version: 2.94.0-SNAPSHOT apis: From 64cde7f23a2a0186664bc459e5e91d773ebb0b29 Mon Sep 17 00:00:00 2001 From: Jin Seop Kim Date: Wed, 17 Jun 2026 18:30:41 -0400 Subject: [PATCH 28/82] fix(bigquery): route JOB_CREATION_REQUIRED through fast query path (#13437) Routes queries under `JobCreationMode.JOB_CREATION_REQUIRED` to the fast query path (`jobs.query` API / 1 RPC) to avoid the slow fallback path (`jobs.insert` API / 2 RPCs). https://docs.cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#QueryResponse says: > object ([JobReference](https://docs.cloud.google.com/bigquery/docs/reference/rest/v2/JobReference)) > > Reference to the Job that was created to run the query. This field will be present even if the original request timed out, in which case jobs.getQueryResults can be used to read the results once the query has completed. Since this API only returns the first page of results, subsequent pages can be fetched via the same mechanism (jobs.getQueryResults). > > If jobCreationMode was set to JOB_CREATION_OPTIONAL and the query completes without creating a job, this field will be empty. Thus, routing `JOB_CREATION_REQUIRED` through the fast path is preferred. b/522363981 --- .../cloud/bigquery/QueryRequestInfo.java | 3 +- .../cloud/bigquery/BigQueryImplTest.java | 51 +++++++++++++++++++ .../cloud/bigquery/QueryRequestInfoTest.java | 9 ++++ .../cloud/bigquery/it/ITBigQueryTest.java | 12 ++--- 4 files changed, 66 insertions(+), 9 deletions(-) diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryRequestInfo.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryRequestInfo.java index c7033817c367..4e203a26af58 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryRequestInfo.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryRequestInfo.java @@ -87,8 +87,7 @@ boolean isFastQuerySupported(JobId jobId) { && config.getTableDefinitions() == null && config.getTimePartitioning() == null && config.getUserDefinedFunctions() == null - && config.getWriteDisposition() == null - && config.getJobCreationMode() != JobCreationMode.JOB_CREATION_REQUIRED; + && config.getWriteDisposition() == null; } QueryRequest toPb() { diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java index 5c8d5b3dc5f0..0a71ed67edb3 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java @@ -32,6 +32,7 @@ import static org.mockito.ArgumentMatchers.nullable; import static org.mockito.Mockito.doReturn; import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.never; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; @@ -2393,6 +2394,56 @@ void testFastQueryRequestCompleted() throws InterruptedException, IOException { .queryRpcSkipExceptionTranslation(eq(PROJECT), requestPbCapture.capture()); } + @Test + void testQueryRequestRequiredJobCreationCompleted() throws InterruptedException, IOException { + JobId queryJob = JobId.of(PROJECT, JOB); + com.google.api.services.bigquery.model.QueryResponse queryResponsePb = + new com.google.api.services.bigquery.model.QueryResponse() + .setCacheHit(false) + .setJobComplete(true) + .setKind("bigquery#queryResponse") + .setPageToken(null) + .setRows(ImmutableList.of(TABLE_ROW)) + .setSchema(TABLE_SCHEMA.toPb()) + .setTotalBytesProcessed(42L) + .setTotalRows(BigInteger.valueOf(1L)) + .setJobReference(queryJob.toPb()); + + QueryJobConfiguration config = + QUERY_JOB_CONFIGURATION_FOR_QUERY.toBuilder() + .setJobCreationMode(QueryJobConfiguration.JobCreationMode.JOB_CREATION_REQUIRED) + .build(); + + when(bigqueryRpcMock.queryRpcSkipExceptionTranslation(eq(PROJECT), requestPbCapture.capture())) + .thenReturn(queryResponsePb); + + bigquery = options.getService(); + TableResult result = bigquery.query(config); + assertNull(result.getNextPage()); + assertNull(result.getNextPageToken()); + assertFalse(result.hasNextPage()); + assertThat(result.getSchema()).isEqualTo(TABLE_SCHEMA); + assertThat(result.getTotalRows()).isEqualTo(1); + assertThat(result.getJobId()).isEqualTo(queryJob); + for (FieldValueList row : result.getValues()) { + assertThat(row.get(0).getBooleanValue()).isFalse(); + assertThat(row.get(1).getLongValue()).isEqualTo(1); + } + + QueryRequest requestPb = requestPbCapture.getValue(); + assertEquals(config.getQuery(), requestPb.getQuery()); + assertEquals( + config.getDefaultDataset().getDataset(), requestPb.getDefaultDataset().getDatasetId()); + assertEquals(config.useQueryCache(), requestPb.getUseQueryCache()); + assertNull(requestPb.getLocation()); + + verify(bigqueryRpcMock) + .queryRpcSkipExceptionTranslation(eq(PROJECT), requestPbCapture.capture()); + verify(bigqueryRpcMock, never()) + .createSkipExceptionTranslation( + any(com.google.api.services.bigquery.model.Job.class), any()); + } + @Test void testFastQueryRequestCompletedWithLocation() throws InterruptedException, IOException { com.google.api.services.bigquery.model.QueryResponse queryResponsePb = diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryRequestInfoTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryRequestInfoTest.java index be1f0e1982f9..496676e5b788 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryRequestInfoTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryRequestInfoTest.java @@ -159,6 +159,13 @@ public class QueryRequestInfoTest { QueryRequestInfo REQUEST_INFO_SUPPORTED = new QueryRequestInfo( QUERY_JOB_CONFIGURATION_SUPPORTED, DataFormatOptions.newBuilder().build()); + private static final QueryJobConfiguration QUERY_JOB_CONFIGURATION_REQUIRED_SUPPORTED = + QUERY_JOB_CONFIGURATION_SUPPORTED.toBuilder() + .setJobCreationMode(JobCreationMode.JOB_CREATION_REQUIRED) + .build(); + QueryRequestInfo REQUEST_INFO_REQUIRED_SUPPORTED = + new QueryRequestInfo( + QUERY_JOB_CONFIGURATION_REQUIRED_SUPPORTED, DataFormatOptions.newBuilder().build()); @Test public void testIsFastQuerySupported() { @@ -166,8 +173,10 @@ public void testIsFastQuerySupported() { JobId jobIdNotSupported = JobId.newBuilder().setJob("random-job-id").build(); assertEquals(false, REQUEST_INFO.isFastQuerySupported(jobIdSupported)); assertEquals(true, REQUEST_INFO_SUPPORTED.isFastQuerySupported(jobIdSupported)); + assertEquals(true, REQUEST_INFO_REQUIRED_SUPPORTED.isFastQuerySupported(jobIdSupported)); assertEquals(false, REQUEST_INFO.isFastQuerySupported(jobIdNotSupported)); assertEquals(false, REQUEST_INFO_SUPPORTED.isFastQuerySupported(jobIdNotSupported)); + assertEquals(false, REQUEST_INFO_REQUIRED_SUPPORTED.isFastQuerySupported(jobIdNotSupported)); } @Test diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java index dbad4634c52a..a89222a0efb5 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java @@ -7344,10 +7344,9 @@ void testStatelessQueries() throws InterruptedException { (tableResult.getJobId() != null) ^ (tableResult.getQueryId() != null), "Exactly one of jobId or queryId should be non-null"); - // Job creation takes over, no query id is created. bigQuery.getOptions().setDefaultJobCreationMode(JobCreationMode.JOB_CREATION_REQUIRED); tableResult = executeSimpleQuery(bigQuery); - assertNull(tableResult.getQueryId()); + assertNotNull(tableResult.getQueryId()); assertNotNull(tableResult.getJobId()); bigQuery.getOptions().setDefaultJobCreationMode(JobCreationMode.JOB_CREATION_MODE_UNSPECIFIED); @@ -7411,9 +7410,8 @@ void testTableResultJobIdAndQueryId() throws InterruptedException { .setJobCreationMode(JobCreationMode.JOB_CREATION_REQUIRED) .build(); result = bigQuery.query(configWithJob); - result = job.getQueryResults(); assertNotNull(result.getJobId()); - assertNull(result.getQueryId()); + assertNotNull(result.getQueryId()); } @Test @@ -7508,14 +7506,14 @@ void testQueryWithTimeout() throws InterruptedException { // Allow 2 seconds of timeout value to account for random delays assertTrue(millis < 1_000_000 * 2); - // Stateful query returns Job - // Test scenario 3 to ensure job is created if JobCreationMode is set. + // Test scenario 3 to ensure TableResult is returned with JobId if JobCreationMode is REQUIRED config = QueryJobConfiguration.newBuilder(query) .setJobCreationMode(JobCreationMode.JOB_CREATION_REQUIRED) .build(); result = bigQuery.queryWithTimeout(config, null, null); - assertTrue(result instanceof Job); + assertTrue(result instanceof TableResult); + assertNotNull(((TableResult) result).getJobId()); // Stateful query returns Job // Test scenario 4 to ensure job is created if Query is long running. From 1a6f4d5acc5c1c79198d00927e4603431d440795 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Thu, 18 Jun 2026 02:59:58 +0000 Subject: [PATCH 29/82] fix(bigquery): Update fast query path to allow jobTimeoutMs in the request (#13502) --- .../google/cloud/bigquery/BigQueryImpl.java | 10 +- .../google/cloud/bigquery/ConnectionImpl.java | 10 +- .../cloud/bigquery/QueryRequestInfo.java | 63 +++-- .../cloud/bigquery/BigQueryImplTest.java | 55 +++- .../cloud/bigquery/QueryRequestInfoTest.java | 29 +- .../cloud/bigquery/it/ITBigQueryTest.java | 263 ++++++++++-------- 6 files changed, 280 insertions(+), 150 deletions(-) diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java index e70194766a6f..ee138e615c99 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java @@ -2169,11 +2169,15 @@ && getOptions().getOpenTelemetryTracer() != null) { .startSpan(); } try (Scope queryScope = querySpan != null ? querySpan.makeCurrent() : null) { - // If all parameters passed in configuration are supported by the query() method on the - // backend, put on fast path + // The fast query path (jobs.query API) is preferred to reduce latency by avoiding + // the slow fallback path (jobs.insert API). We will opt to use it if the configuration + // and JobId allow (i.e. if all parameters passed in configuration are supported). QueryRequestInfo requestInfo = new QueryRequestInfo(configuration, getOptions().getDataFormatOptions()); - if (requestInfo.isFastQuerySupported(jobId)) { + // Fast query path is not possible if job is specified in the JobID object. + // Respect Job field value in JobId specified by user. + // Specifying it will force the query to take the slower path. + if (requestInfo.isFastQuerySupported() && (jobId == null || jobId.getJob() == null)) { // Be careful when setting the projectID in JobId, if a projectID is specified in the JobId, // the job created by the query method will use that project. This may cause the query to // fail with "Access denied" if the project do not have enough permissions to run the job. diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ConnectionImpl.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ConnectionImpl.java index d31a406e40a6..b8832edb19de 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ConnectionImpl.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/ConnectionImpl.java @@ -245,7 +245,8 @@ private BigQueryResult getExecuteSelectResponse( labelMap = labels[0]; } try { - // use jobs.query if possible + // The fast query path (jobs.query API) is preferred to reduce latency by avoiding + // the slow fallback path (jobs.insert API). We will opt to use it if possible. if (isFastQuerySupported()) { logger.log(Level.INFO, "\n Using Fast Query Path"); final String projectId = bigQueryOptions.getProjectId(); @@ -810,7 +811,8 @@ void flagEndOfStream() { // package-private Level.WARNING, "\n" + Thread.currentThread().getName() - + " Could not flag End of Stream, both the buffer types are null. This might happen when the connection is close without executing a query"); + + " Could not flag End of Stream, both the buffer types are null. This might happen" + + " when the connection is close without executing a query"); } } catch (InterruptedException e) { logger.log( @@ -1260,7 +1262,6 @@ boolean isFastQuerySupported() { && connectionSettings.getCreateDisposition() == null && connectionSettings.getDestinationEncryptionConfiguration() == null && connectionSettings.getDestinationTable() == null - && connectionSettings.getJobTimeoutMs() == null && connectionSettings.getMaximumBillingTier() == null && connectionSettings.getPriority() == null && connectionSettings.getRangePartitioning() == null @@ -1361,6 +1362,9 @@ QueryRequest createQueryRequest( content.setRequestId(requestId); // The new Connection interface only supports StandardSQL dialect content.setUseLegacySql(false); + if (connectionSettings.getJobTimeoutMs() != null) { + content.setJobTimeoutMs(connectionSettings.getJobTimeoutMs()); + } return content; } diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryRequestInfo.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryRequestInfo.java index 4e203a26af58..c224bed5cc58 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryRequestInfo.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/QueryRequestInfo.java @@ -21,10 +21,10 @@ import com.google.api.services.bigquery.model.QueryRequest; import com.google.cloud.bigquery.QueryJobConfiguration.JobCreationMode; import com.google.common.base.MoreObjects; -import com.google.common.base.Objects; import com.google.common.collect.Lists; import java.util.List; import java.util.Map; +import java.util.Objects; import java.util.UUID; final class QueryRequestInfo { @@ -45,6 +45,7 @@ final class QueryRequestInfo { private final JobCreationMode jobCreationMode; private final DataFormatOptions formatOptions; private final String reservation; + private final Long jobTimeoutMs; QueryRequestInfo( QueryJobConfiguration config, com.google.cloud.bigquery.DataFormatOptions dataFormatOptions) { @@ -64,22 +65,26 @@ final class QueryRequestInfo { this.jobCreationMode = config.getJobCreationMode(); this.formatOptions = dataFormatOptions.toPb(); this.reservation = config.getReservation(); + this.jobTimeoutMs = config.getJobTimeoutMs(); } - boolean isFastQuerySupported(JobId jobId) { - // Fast query path is not possible if job is specified in the JobID object - // Respect Job field value in JobId specified by user. - // Specifying it will force the query to take the slower path. - if (jobId != null) { - if (jobId.getJob() != null) { - return false; - } - } + /** + * Determines if the query can be executed via the "fast query" path (jobs.query API) instead of + * the "slow path" (jobs.insert API followed by jobs.getQueryResults). + * + *

            The fast query path is preferred because it completes in a single RPC, significantly + * reducing end-to-end latency for small queries. + * + *

            However, the jobs.query API does not support all configuration options available in + * jobs.insert (e.g., destination table, clustering, time partitioning). This method checks the + * QueryJobConfiguration for any unsupported options. If any are present, we must fall back to the + * jobs.insert path. + */ + boolean isFastQuerySupported() { return config.getClustering() == null && config.getCreateDisposition() == null && config.getDestinationEncryptionConfiguration() == null && config.getDestinationTable() == null - && config.getJobTimeoutMs() == null && config.getMaximumBillingTier() == null && config.getPriority() == null && config.getRangePartitioning() == null @@ -134,6 +139,9 @@ QueryRequest toPb() { if (reservation != null) { request.setReservation(reservation); } + if (jobTimeoutMs != null) { + request.setJobTimeoutMs(jobTimeoutMs); + } return request; } @@ -155,12 +163,13 @@ public String toString() { .add("jobCreationMode", jobCreationMode) .add("formatOptions", formatOptions.getUseInt64Timestamp()) .add("reservation", reservation) + .add("jobTimeoutMs", jobTimeoutMs) .toString(); } @Override public int hashCode() { - return Objects.hashCode( + return Objects.hash( connectionProperties, defaultDataset, dryRun, @@ -175,14 +184,34 @@ public int hashCode() { useLegacySql, jobCreationMode, formatOptions, - reservation); + reservation, + jobTimeoutMs); } @Override public boolean equals(Object obj) { - return obj == this - || obj != null - && obj.getClass().equals(QueryRequestInfo.class) - && java.util.Objects.equals(toPb(), ((QueryRequestInfo) obj).toPb()); + if (obj == this) { + return true; + } + if (obj == null || !obj.getClass().equals(QueryRequestInfo.class)) { + return false; + } + QueryRequestInfo other = (QueryRequestInfo) obj; + return Objects.equals(connectionProperties, other.connectionProperties) + && Objects.equals(defaultDataset, other.defaultDataset) + && Objects.equals(dryRun, other.dryRun) + && Objects.equals(labels, other.labels) + && Objects.equals(maximumBytesBilled, other.maximumBytesBilled) + && Objects.equals(maxResults, other.maxResults) + && Objects.equals(query, other.query) + && Objects.equals(queryParameters, other.queryParameters) + && Objects.equals(requestId, other.requestId) + && Objects.equals(createSession, other.createSession) + && Objects.equals(useQueryCache, other.useQueryCache) + && Objects.equals(useLegacySql, other.useLegacySql) + && Objects.equals(jobCreationMode, other.jobCreationMode) + && Objects.equals(formatOptions, other.formatOptions) + && Objects.equals(reservation, other.reservation) + && Objects.equals(jobTimeoutMs, other.jobTimeoutMs); } } diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java index 0a71ed67edb3..7a0a3faf2db8 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java @@ -240,6 +240,12 @@ public class BigQueryImplTest { .setDefaultDataset(DatasetId.of(PROJECT, DATASET)) .setUseQueryCache(false) .build(); + private static final QueryJobConfiguration QUERY_JOB_CONFIGURATION_WITH_TIMEOUT = + QueryJobConfiguration.newBuilder("SQL") + .setDefaultDataset(DatasetId.of(PROJECT, DATASET)) + .setUseQueryCache(false) + .setJobTimeoutMs(1000L) + .build(); private static final QueryJobConfiguration QUERY_JOB_CONFIGURATION_FOR_DMLQUERY = QueryJobConfiguration.newBuilder("DML") .setDefaultDataset(DatasetId.of(PROJECT, DATASET)) @@ -537,7 +543,8 @@ public class BigQueryImplTest { private HttpBigQueryRpc bigqueryRpcMock; private BigQuery bigquery; private static final String RATE_LIMIT_ERROR_MSG = - "Job exceeded rate limits: Your table exceeded quota for table update operations. For more information, see https://cloud.google.com/bigquery/docs/troubleshoot-quotas"; + "Job exceeded rate limits: Your table exceeded quota for table update operations. For more" + + " information, see https://cloud.google.com/bigquery/docs/troubleshoot-quotas"; @Captor private ArgumentCaptor> capturedOptions; @Captor private ArgumentCaptor jobCapture; @@ -2394,6 +2401,49 @@ void testFastQueryRequestCompleted() throws InterruptedException, IOException { .queryRpcSkipExceptionTranslation(eq(PROJECT), requestPbCapture.capture()); } + @Test + void testFastQueryRequestCompletedWithTimeout() throws InterruptedException, IOException { + com.google.api.services.bigquery.model.QueryResponse queryResponsePb = + new com.google.api.services.bigquery.model.QueryResponse() + .setCacheHit(false) + .setJobComplete(true) + .setKind("bigquery#queryResponse") + .setPageToken(null) + .setRows(ImmutableList.of(TABLE_ROW)) + .setSchema(TABLE_SCHEMA.toPb()) + .setTotalBytesProcessed(42L) + .setTotalRows(BigInteger.valueOf(1L)); + + when(bigqueryRpcMock.queryRpcSkipExceptionTranslation(eq(PROJECT), requestPbCapture.capture())) + .thenReturn(queryResponsePb); + + bigquery = options.getService(); + TableResult result = bigquery.query(QUERY_JOB_CONFIGURATION_WITH_TIMEOUT); + assertNull(result.getNextPage()); + assertNull(result.getNextPageToken()); + assertFalse(result.hasNextPage()); + assertThat(result.getSchema()).isEqualTo(TABLE_SCHEMA); + assertThat(result.getTotalRows()).isEqualTo(1); + for (FieldValueList row : result.getValues()) { + assertThat(row.get(0).getBooleanValue()).isFalse(); + assertThat(row.get(1).getLongValue()).isEqualTo(1); + } + + QueryRequest requestPb = requestPbCapture.getValue(); + assertEquals(QUERY_JOB_CONFIGURATION_WITH_TIMEOUT.getQuery(), requestPb.getQuery()); + assertEquals( + QUERY_JOB_CONFIGURATION_WITH_TIMEOUT.getDefaultDataset().getDataset(), + requestPb.getDefaultDataset().getDatasetId()); + assertEquals( + QUERY_JOB_CONFIGURATION_WITH_TIMEOUT.useQueryCache(), requestPb.getUseQueryCache()); + assertEquals( + QUERY_JOB_CONFIGURATION_WITH_TIMEOUT.getJobTimeoutMs(), requestPb.getJobTimeoutMs()); + assertNull(requestPb.getLocation()); + + verify(bigqueryRpcMock) + .queryRpcSkipExceptionTranslation(eq(PROJECT), requestPbCapture.capture()); + } + @Test void testQueryRequestRequiredJobCreationCompleted() throws InterruptedException, IOException { JobId queryJob = JobId.of(PROJECT, JOB); @@ -3072,7 +3122,8 @@ void testFastQueryRateLimitIdempotency() throws Exception { @Test void testRateLimitRegEx() throws Exception { String msg2 = - "Job eceeded rate limits: Your table exceeded quota for table update operations. For more information, see https://cloud.google.com/bigquery/docs/troubleshoot-quotas"; + "Job eceeded rate limits: Your table exceeded quota for table update operations. For more" + + " information, see https://cloud.google.com/bigquery/docs/troubleshoot-quotas"; String msg3 = "exceeded rate exceeded quota for table update"; String msg4 = "exceeded rate limits"; assertTrue( diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryRequestInfoTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryRequestInfoTest.java index 496676e5b788..de7aca4959ac 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryRequestInfoTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/QueryRequestInfoTest.java @@ -159,6 +159,12 @@ public class QueryRequestInfoTest { QueryRequestInfo REQUEST_INFO_SUPPORTED = new QueryRequestInfo( QUERY_JOB_CONFIGURATION_SUPPORTED, DataFormatOptions.newBuilder().build()); + private static final QueryJobConfiguration QUERY_JOB_CONFIGURATION_WITH_TIMEOUT = + QUERY_JOB_CONFIGURATION_SUPPORTED.toBuilder().setJobTimeoutMs(TIMEOUT).build(); + QueryRequestInfo REQUEST_INFO_WITH_TIMEOUT = + new QueryRequestInfo( + QUERY_JOB_CONFIGURATION_WITH_TIMEOUT, DataFormatOptions.newBuilder().build()); + private static final QueryJobConfiguration QUERY_JOB_CONFIGURATION_REQUIRED_SUPPORTED = QUERY_JOB_CONFIGURATION_SUPPORTED.toBuilder() .setJobCreationMode(JobCreationMode.JOB_CREATION_REQUIRED) @@ -169,20 +175,18 @@ public class QueryRequestInfoTest { @Test public void testIsFastQuerySupported() { - JobId jobIdSupported = JobId.newBuilder().build(); - JobId jobIdNotSupported = JobId.newBuilder().setJob("random-job-id").build(); - assertEquals(false, REQUEST_INFO.isFastQuerySupported(jobIdSupported)); - assertEquals(true, REQUEST_INFO_SUPPORTED.isFastQuerySupported(jobIdSupported)); - assertEquals(true, REQUEST_INFO_REQUIRED_SUPPORTED.isFastQuerySupported(jobIdSupported)); - assertEquals(false, REQUEST_INFO.isFastQuerySupported(jobIdNotSupported)); - assertEquals(false, REQUEST_INFO_SUPPORTED.isFastQuerySupported(jobIdNotSupported)); - assertEquals(false, REQUEST_INFO_REQUIRED_SUPPORTED.isFastQuerySupported(jobIdNotSupported)); + assertFalse(REQUEST_INFO.isFastQuerySupported()); + assertTrue(REQUEST_INFO_SUPPORTED.isFastQuerySupported()); + assertTrue(REQUEST_INFO_WITH_TIMEOUT.isFastQuerySupported()); + assertTrue(REQUEST_INFO_REQUIRED_SUPPORTED.isFastQuerySupported()); } @Test public void testToPb() { QueryRequest requestPb = REQUEST_INFO.toPb(); assertEquals(requestPb, REQUEST_INFO.toPb()); + QueryRequest requestWithTimeoutPb = REQUEST_INFO_WITH_TIMEOUT.toPb(); + assertEquals(TIMEOUT, requestWithTimeoutPb.getJobTimeoutMs()); } @Test @@ -194,6 +198,14 @@ public void equalTo() { compareQueryRequestInfo( new QueryRequestInfo(QUERY_JOB_CONFIGURATION, DataFormatOptions.newBuilder().build()), REQUEST_INFO); + compareQueryRequestInfo( + new QueryRequestInfo( + QUERY_JOB_CONFIGURATION_WITH_TIMEOUT, DataFormatOptions.newBuilder().build()), + REQUEST_INFO_WITH_TIMEOUT); + compareQueryRequestInfo( + new QueryRequestInfo( + QUERY_JOB_CONFIGURATION_REQUIRED_SUPPORTED, DataFormatOptions.newBuilder().build()), + REQUEST_INFO_REQUIRED_SUPPORTED); } @Test @@ -237,5 +249,6 @@ private void compareQueryRequestInfo(QueryRequestInfo expected, QueryRequestInfo assertEquals(expectedQueryReq.get("jobCreationMode"), actualQueryReq.get("jobCreationMode")); assertEquals(expectedQueryReq.getFormatOptions(), actualQueryReq.getFormatOptions()); assertEquals(expectedQueryReq.getReservation(), actualQueryReq.getReservation()); + assertEquals(expectedQueryReq.getJobTimeoutMs(), actualQueryReq.getJobTimeoutMs()); } } diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java index a89222a0efb5..3c9613d20758 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java @@ -651,24 +651,17 @@ class ITBigQueryTest { + " \"BooleanField\": \"true\"," + " \"BytesField\": \"" + BYTES_BASE64 - + "\"" - + " }," - + " \"IntegerField\": \"3\"," - + " \"FloatField\": \"1.2\"," - + " \"GeographyField\": \"POINT(-122.35022 47.649154)\"," - + " \"NumericField\": \"123456.789012345\"," - + " \"BigNumericField\": \"0.33333333333333333333333333333333333333\"," - + " \"BigNumericField1\": \"1e-38\"," - + " \"BigNumericField2\": \"-1e38\"," - + " \"BigNumericField3\": \"578960446186580977117854925043439539266.34992332820282019728792003956564819967\"," - + " \"BigNumericField4\": \"-578960446186580977117854925043439539266.34992332820282019728792003956564819968\"" - + "}\n" - + "{" - + " \"TimestampField\": \"2014-08-19 07:41:35.220 -05:00\"," - + " \"StringField\": \"stringValue\"," - + " \"IntegerArrayField\": [\"0\", \"1\"]," - + " \"BooleanField\": \"false\"," - + " \"BytesField\": \"" + + "\" }, \"IntegerField\": \"3\", \"FloatField\": \"1.2\", \"GeographyField\":" + + " \"POINT(-122.35022 47.649154)\", \"NumericField\": \"123456.789012345\", " + + " \"BigNumericField\": \"0.33333333333333333333333333333333333333\", " + + " \"BigNumericField1\": \"1e-38\", \"BigNumericField2\": \"-1e38\", " + + " \"BigNumericField3\":" + + " \"578960446186580977117854925043439539266.34992332820282019728792003956564819967\", " + + " \"BigNumericField4\":" + + " \"-578960446186580977117854925043439539266.34992332820282019728792003956564819968\"}\n" + + "{ \"TimestampField\": \"2014-08-19 07:41:35.220 -05:00\", \"StringField\":" + + " \"stringValue\", \"IntegerArrayField\": [\"0\", \"1\"], \"BooleanField\":" + + " \"false\", \"BytesField\": \"" + BYTES_BASE64 + "\"," + " \"RecordField\": {" @@ -678,18 +671,14 @@ class ITBigQueryTest { + " \"BooleanField\": \"true\"," + " \"BytesField\": \"" + BYTES_BASE64 - + "\"" - + " }," - + " \"IntegerField\": \"3\"," - + " \"FloatField\": \"1.2\"," - + " \"GeographyField\": \"POINT(-122.35022 47.649154)\"," - + " \"NumericField\": \"123456.789012345\"," - + " \"BigNumericField\": \"0.33333333333333333333333333333333333333\"," - + " \"BigNumericField1\": \"1e-38\"," - + " \"BigNumericField2\": \"-1e38\"," - + " \"BigNumericField3\": \"578960446186580977117854925043439539266.34992332820282019728792003956564819967\"," - + " \"BigNumericField4\": \"-578960446186580977117854925043439539266.34992332820282019728792003956564819968\"" - + "}"; + + "\" }, \"IntegerField\": \"3\", \"FloatField\": \"1.2\", \"GeographyField\":" + + " \"POINT(-122.35022 47.649154)\", \"NumericField\": \"123456.789012345\", " + + " \"BigNumericField\": \"0.33333333333333333333333333333333333333\", " + + " \"BigNumericField1\": \"1e-38\", \"BigNumericField2\": \"-1e38\", " + + " \"BigNumericField3\":" + + " \"578960446186580977117854925043439539266.34992332820282019728792003956564819967\", " + + " \"BigNumericField4\":" + + " \"-578960446186580977117854925043439539266.34992332820282019728792003956564819968\"}"; private static final String JSON_CONTENT_BQ_RESULTSET = "{" @@ -733,21 +722,15 @@ class ITBigQueryTest { + " \"BooleanField\": \"true\"," + " \"BytesField\": \"" + BYTES_BASE64 - + "\"" - + " }," - + " \"IntegerField\": \"1\"," - + " \"FloatField\": \"10.1\"," - + " \"GeographyField\": \"POINT(-122.35022 47.649154)\"," - + " \"NumericField\": \"100\"," - + " \"BigNumericField\": \"0.33333333333333333333333333333333333333\"," - + " \"BigNumericField1\": \"1e-38\"," - + " \"BigNumericField2\": \"-1e38\"," - + " \"BigNumericField3\": \"578960446186580977117854925043439539266.34992332820282019728792003956564819967\"," - + " \"BigNumericField4\": \"-578960446186580977117854925043439539266.34992332820282019728792003956564819968\"," - + " \"TimeField\": \"12:11:35.123456\"," - + " \"DateField\": \"2018-08-19\"," - + " \"DateTimeField\": \"2018-08-19 12:11:35.123456\"" - + "}"; + + "\" }, \"IntegerField\": \"1\", \"FloatField\": \"10.1\", \"GeographyField\":" + + " \"POINT(-122.35022 47.649154)\", \"NumericField\": \"100\", \"BigNumericField\":" + + " \"0.33333333333333333333333333333333333333\", \"BigNumericField1\": \"1e-38\", " + + " \"BigNumericField2\": \"-1e38\", \"BigNumericField3\":" + + " \"578960446186580977117854925043439539266.34992332820282019728792003956564819967\", " + + " \"BigNumericField4\":" + + " \"-578960446186580977117854925043439539266.34992332820282019728792003956564819968\", " + + " \"TimeField\": \"12:11:35.123456\", \"DateField\": \"2018-08-19\", " + + " \"DateTimeField\": \"2018-08-19 12:11:35.123456\"}"; private static final String JSON_CONTENT_SIMPLE = "{" + " \"TimestampField\": \"2014-08-19 07:41:35.220 -05:00\"," @@ -829,26 +812,35 @@ class ITBigQueryTest { private static final String FAKE_JSON_CRED_WITH_GOOGLE_DOMAIN = "{\n" + " \"private_key_id\": \"somekeyid\",\n" - + " \"private_key\": \"-----BEGIN PRIVATE KEY-----\\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggS" - + "kAgEAAoIBAQC+K2hSuFpAdrJI\\nnCgcDz2M7t7bjdlsadsasad+fvRSW6TjNQZ3p5LLQY1kSZRqBqylRkzteMOyHg" - + "aR\\n0Pmxh3ILCND5men43j3h4eDbrhQBuxfEMalkG92sL+PNQSETY2tnvXryOvmBRwa/\\nQP/9dJfIkIDJ9Fw9N4" - + "Bhhhp6mCcRpdQjV38H7JsyJ7lih/oNjECgYAt\\nknddadwkwewcVxHFhcZJO+XWf6ofLUXpRwiTZakGMn8EE1uVa2" - + "LgczOjwWHGi99MFjxSer5m9\\n1tCa3/KEGKiS/YL71JvjwX3mb+cewlkcmweBKZHM2JPTk0ZednFSpVZMtycjkbLa" - + "\\ndYOS8V85AgMBewECggEBAKksaldajfDZDV6nGqbFjMiizAKJolr/M3OQw16K6o3/\\n0S31xIe3sSlgW0+UbYlF" - + "4U8KifhManD1apVSC3csafaspP4RZUHFhtBywLO9pR5c\\nr6S5aLp+gPWFyIp1pfXbWGvc5VY/v9x7ya1VEa6rXvL" - + "sKupSeWAW4tMj3eo/64ge\\nsdaceaLYw52KeBYiT6+vpsnYrEkAHO1fF/LavbLLOFJmFTMxmsNaG0tuiJHgjshB\\" - + "n82DpMCbXG9YcCgI/DbzuIjsdj2JC1cascSP//3PmefWysucBQe7Jryb6NQtASmnv\\nCdDw/0jmZTEjpe4S1lxfHp" - + "lAhHFtdgYTvyYtaLZiVVkCgYEA8eVpof2rceecw/I6\\n5ng1q3Hl2usdWV/4mZMvR0fOemacLLfocX6IYxT1zA1FF" - + "JlbXSRsJMf/Qq39mOR2\\nSpW+hr4jCoHeRVYLgsbggtrevGmILAlNoqCMpGZ6vDmJpq6ECV9olliDvpPgWOP+\\nm" - + "YPDreFBGxWvQrADNbRt2dmGsrsCgYEAyUHqB2wvJHFqdmeBsaacewzV8x9WgmeX\\ngUIi9REwXlGDW0Mz50dxpxcK" - + "CAYn65+7TCnY5O/jmL0VRxU1J2mSWyWTo1C+17L0\\n3fUqjxL1pkefwecxwecvC+gFFYdJ4CQ/MHHXU81Lwl1iWdF" - + "Cd2UoGddYaOF+KNeM\\nHC7cmqra+JsCgYEAlUNywzq8nUg7282E+uICfCB0LfwejuymR93CtsFgb7cRd6ak\\nECR" - + "8FGfCpH8ruWJINllbQfcHVCX47ndLZwqv3oVFKh6pAS/vVI4dpOepP8++7y1u\\ncoOvtreXCX6XqfrWDtKIvv0vjl" - + "HBhhhp6mCcRpdQjV38H7JsyJ7lih/oNjECgYAt\\nkndj5uNl5SiuVxHFhcZJO+XWf6ofLUregtevZakGMn8EE1uVa" - + "2AY7eafmoU/nZPT\\n00YB0TBATdCbn/nBSuKDESkhSg9s2GEKQZG5hBmL5uCMfo09z3SfxZIhJdlerreP\\nJ7gSi" - + "dI12N+EZxYd4xIJh/HFDgp7RRO87f+WJkofMQKBgGTnClK1VMaCRbJZPriw\\nEfeFCoOX75MxKwXs6xgrw4W//AYG" - + "GUjDt83lD6AZP6tws7gJ2IwY/qP7+lyhjEqN\\nHtfPZRGFkGZsdaksdlaksd323423d+15/UvrlRSFPNj1tWQmNKk" - + "XyRDW4IG1Oa2p\\nrALStNBx5Y9t0/LQnFI4w3aG\\n-----END PRIVATE KEY-----\\n\",\n" + + " \"private_key\": \"-----BEGIN PRIVATE KEY-----\\n" + + "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC+K2hSuFpAdrJI\\n" + + "nCgcDz2M7t7bjdlsadsasad+fvRSW6TjNQZ3p5LLQY1kSZRqBqylRkzteMOyHgaR\\n" + + "0Pmxh3ILCND5men43j3h4eDbrhQBuxfEMalkG92sL+PNQSETY2tnvXryOvmBRwa/\\n" + + "QP/9dJfIkIDJ9Fw9N4Bhhhp6mCcRpdQjV38H7JsyJ7lih/oNjECgYAt\\n" + + "knddadwkwewcVxHFhcZJO+XWf6ofLUXpRwiTZakGMn8EE1uVa2LgczOjwWHGi99MFjxSer5m9\\n" + + "1tCa3/KEGKiS/YL71JvjwX3mb+cewlkcmweBKZHM2JPTk0ZednFSpVZMtycjkbLa\\n" + + "dYOS8V85AgMBewECggEBAKksaldajfDZDV6nGqbFjMiizAKJolr/M3OQw16K6o3/\\n" + + "0S31xIe3sSlgW0+UbYlF4U8KifhManD1apVSC3csafaspP4RZUHFhtBywLO9pR5c\\n" + + "r6S5aLp+gPWFyIp1pfXbWGvc5VY/v9x7ya1VEa6rXvLsKupSeWAW4tMj3eo/64ge\\n" + + "sdaceaLYw52KeBYiT6+vpsnYrEkAHO1fF/LavbLLOFJmFTMxmsNaG0tuiJHgjshB\\n" + + "82DpMCbXG9YcCgI/DbzuIjsdj2JC1cascSP//3PmefWysucBQe7Jryb6NQtASmnv\\n" + + "CdDw/0jmZTEjpe4S1lxfHplAhHFtdgYTvyYtaLZiVVkCgYEA8eVpof2rceecw/I6\\n" + + "5ng1q3Hl2usdWV/4mZMvR0fOemacLLfocX6IYxT1zA1FFJlbXSRsJMf/Qq39mOR2\\n" + + "SpW+hr4jCoHeRVYLgsbggtrevGmILAlNoqCMpGZ6vDmJpq6ECV9olliDvpPgWOP+\\n" + + "mYPDreFBGxWvQrADNbRt2dmGsrsCgYEAyUHqB2wvJHFqdmeBsaacewzV8x9WgmeX\\n" + + "gUIi9REwXlGDW0Mz50dxpxcKCAYn65+7TCnY5O/jmL0VRxU1J2mSWyWTo1C+17L0\\n" + + "3fUqjxL1pkefwecxwecvC+gFFYdJ4CQ/MHHXU81Lwl1iWdFCd2UoGddYaOF+KNeM\\n" + + "HC7cmqra+JsCgYEAlUNywzq8nUg7282E+uICfCB0LfwejuymR93CtsFgb7cRd6ak\\n" + + "ECR8FGfCpH8ruWJINllbQfcHVCX47ndLZwqv3oVFKh6pAS/vVI4dpOepP8++7y1u\\n" + + "coOvtreXCX6XqfrWDtKIvv0vjlHBhhhp6mCcRpdQjV38H7JsyJ7lih/oNjECgYAt\\n" + + "kndj5uNl5SiuVxHFhcZJO+XWf6ofLUregtevZakGMn8EE1uVa2AY7eafmoU/nZPT\\n" + + "00YB0TBATdCbn/nBSuKDESkhSg9s2GEKQZG5hBmL5uCMfo09z3SfxZIhJdlerreP\\n" + + "J7gSidI12N+EZxYd4xIJh/HFDgp7RRO87f+WJkofMQKBgGTnClK1VMaCRbJZPriw\\n" + + "EfeFCoOX75MxKwXs6xgrw4W//AYGGUjDt83lD6AZP6tws7gJ2IwY/qP7+lyhjEqN\\n" + + "HtfPZRGFkGZsdaksdlaksd323423d+15/UvrlRSFPNj1tWQmNKkXyRDW4IG1Oa2p\\n" + + "rALStNBx5Y9t0/LQnFI4w3aG\\n" + + "-----END PRIVATE KEY-----\\n" + + "\",\n" + " \"project_id\": \"someprojectid\",\n" + " \"client_email\": \"someclientid@developer.gserviceaccount.com\",\n" + " \"client_id\": \"someclientid.apps.googleusercontent.com\",\n" @@ -858,26 +850,35 @@ class ITBigQueryTest { private static final String FAKE_JSON_CRED_WITH_INVALID_DOMAIN = "{\n" + " \"private_key_id\": \"somekeyid\",\n" - + " \"private_key\": \"-----BEGIN PRIVATE KEY-----\\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggS" - + "kAgEAAoIBAQC+K2hSuFpAdrJI\\nnCgcDz2M7t7bjdlsadsasad+fvRSW6TjNQZ3p5LLQY1kSZRqBqylRkzteMOyHg" - + "aR\\n0Pmxh3ILCND5men43j3h4eDbrhQBuxfEMalkG92sL+PNQSETY2tnvXryOvmBRwa/\\nQP/9dJfIkIDJ9Fw9N4" - + "Bhhhp6mCcRpdQjV38H7JsyJ7lih/oNjECgYAt\\nknddadwkwewcVxHFhcZJO+XWf6ofLUXpRwiTZakGMn8EE1uVa2" - + "LgczOjwWHGi99MFjxSer5m9\\n1tCa3/KEGKiS/YL71JvjwX3mb+cewlkcmweBKZHM2JPTk0ZednFSpVZMtycjkbLa" - + "\\ndYOS8V85AgMBewECggEBAKksaldajfDZDV6nGqbFjMiizAKJolr/M3OQw16K6o3/\\n0S31xIe3sSlgW0+UbYlF" - + "4U8KifhManD1apVSC3csafaspP4RZUHFhtBywLO9pR5c\\nr6S5aLp+gPWFyIp1pfXbWGvc5VY/v9x7ya1VEa6rXvL" - + "sKupSeWAW4tMj3eo/64ge\\nsdaceaLYw52KeBYiT6+vpsnYrEkAHO1fF/LavbLLOFJmFTMxmsNaG0tuiJHgjshB\\" - + "n82DpMCbXG9YcCgI/DbzuIjsdj2JC1cascSP//3PmefWysucBQe7Jryb6NQtASmnv\\nCdDw/0jmZTEjpe4S1lxfHp" - + "lAhHFtdgYTvyYtaLZiVVkCgYEA8eVpof2rceecw/I6\\n5ng1q3Hl2usdWV/4mZMvR0fOemacLLfocX6IYxT1zA1FF" - + "JlbXSRsJMf/Qq39mOR2\\nSpW+hr4jCoHeRVYLgsbggtrevGmILAlNoqCMpGZ6vDmJpq6ECV9olliDvpPgWOP+\\nm" - + "YPDreFBGxWvQrADNbRt2dmGsrsCgYEAyUHqB2wvJHFqdmeBsaacewzV8x9WgmeX\\ngUIi9REwXlGDW0Mz50dxpxcK" - + "CAYn65+7TCnY5O/jmL0VRxU1J2mSWyWTo1C+17L0\\n3fUqjxL1pkefwecxwecvC+gFFYdJ4CQ/MHHXU81Lwl1iWdF" - + "Cd2UoGddYaOF+KNeM\\nHC7cmqra+JsCgYEAlUNywzq8nUg7282E+uICfCB0LfwejuymR93CtsFgb7cRd6ak\\nECR" - + "8FGfCpH8ruWJINllbQfcHVCX47ndLZwqv3oVFKh6pAS/vVI4dpOepP8++7y1u\\ncoOvtreXCX6XqfrWDtKIvv0vjl" - + "HBhhhp6mCcRpdQjV38H7JsyJ7lih/oNjECgYAt\\nkndj5uNl5SiuVxHFhcZJO+XWf6ofLUregtevZakGMn8EE1uVa" - + "2AY7eafmoU/nZPT\\n00YB0TBATdCbn/nBSuKDESkhSg9s2GEKQZG5hBmL5uCMfo09z3SfxZIhJdlerreP\\nJ7gSi" - + "dI12N+EZxYd4xIJh/HFDgp7RRO87f+WJkofMQKBgGTnClK1VMaCRbJZPriw\\nEfeFCoOX75MxKwXs6xgrw4W//AYG" - + "GUjDt83lD6AZP6tws7gJ2IwY/qP7+lyhjEqN\\nHtfPZRGFkGZsdaksdlaksd323423d+15/UvrlRSFPNj1tWQmNKk" - + "XyRDW4IG1Oa2p\\nrALStNBx5Y9t0/LQnFI4w3aG\\n-----END PRIVATE KEY-----\\n\",\n" + + " \"private_key\": \"-----BEGIN PRIVATE KEY-----\\n" + + "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC+K2hSuFpAdrJI\\n" + + "nCgcDz2M7t7bjdlsadsasad+fvRSW6TjNQZ3p5LLQY1kSZRqBqylRkzteMOyHgaR\\n" + + "0Pmxh3ILCND5men43j3h4eDbrhQBuxfEMalkG92sL+PNQSETY2tnvXryOvmBRwa/\\n" + + "QP/9dJfIkIDJ9Fw9N4Bhhhp6mCcRpdQjV38H7JsyJ7lih/oNjECgYAt\\n" + + "knddadwkwewcVxHFhcZJO+XWf6ofLUXpRwiTZakGMn8EE1uVa2LgczOjwWHGi99MFjxSer5m9\\n" + + "1tCa3/KEGKiS/YL71JvjwX3mb+cewlkcmweBKZHM2JPTk0ZednFSpVZMtycjkbLa\\n" + + "dYOS8V85AgMBewECggEBAKksaldajfDZDV6nGqbFjMiizAKJolr/M3OQw16K6o3/\\n" + + "0S31xIe3sSlgW0+UbYlF4U8KifhManD1apVSC3csafaspP4RZUHFhtBywLO9pR5c\\n" + + "r6S5aLp+gPWFyIp1pfXbWGvc5VY/v9x7ya1VEa6rXvLsKupSeWAW4tMj3eo/64ge\\n" + + "sdaceaLYw52KeBYiT6+vpsnYrEkAHO1fF/LavbLLOFJmFTMxmsNaG0tuiJHgjshB\\n" + + "82DpMCbXG9YcCgI/DbzuIjsdj2JC1cascSP//3PmefWysucBQe7Jryb6NQtASmnv\\n" + + "CdDw/0jmZTEjpe4S1lxfHplAhHFtdgYTvyYtaLZiVVkCgYEA8eVpof2rceecw/I6\\n" + + "5ng1q3Hl2usdWV/4mZMvR0fOemacLLfocX6IYxT1zA1FFJlbXSRsJMf/Qq39mOR2\\n" + + "SpW+hr4jCoHeRVYLgsbggtrevGmILAlNoqCMpGZ6vDmJpq6ECV9olliDvpPgWOP+\\n" + + "mYPDreFBGxWvQrADNbRt2dmGsrsCgYEAyUHqB2wvJHFqdmeBsaacewzV8x9WgmeX\\n" + + "gUIi9REwXlGDW0Mz50dxpxcKCAYn65+7TCnY5O/jmL0VRxU1J2mSWyWTo1C+17L0\\n" + + "3fUqjxL1pkefwecxwecvC+gFFYdJ4CQ/MHHXU81Lwl1iWdFCd2UoGddYaOF+KNeM\\n" + + "HC7cmqra+JsCgYEAlUNywzq8nUg7282E+uICfCB0LfwejuymR93CtsFgb7cRd6ak\\n" + + "ECR8FGfCpH8ruWJINllbQfcHVCX47ndLZwqv3oVFKh6pAS/vVI4dpOepP8++7y1u\\n" + + "coOvtreXCX6XqfrWDtKIvv0vjlHBhhhp6mCcRpdQjV38H7JsyJ7lih/oNjECgYAt\\n" + + "kndj5uNl5SiuVxHFhcZJO+XWf6ofLUregtevZakGMn8EE1uVa2AY7eafmoU/nZPT\\n" + + "00YB0TBATdCbn/nBSuKDESkhSg9s2GEKQZG5hBmL5uCMfo09z3SfxZIhJdlerreP\\n" + + "J7gSidI12N+EZxYd4xIJh/HFDgp7RRO87f+WJkofMQKBgGTnClK1VMaCRbJZPriw\\n" + + "EfeFCoOX75MxKwXs6xgrw4W//AYGGUjDt83lD6AZP6tws7gJ2IwY/qP7+lyhjEqN\\n" + + "HtfPZRGFkGZsdaksdlaksd323423d+15/UvrlRSFPNj1tWQmNKkXyRDW4IG1Oa2p\\n" + + "rALStNBx5Y9t0/LQnFI4w3aG\\n" + + "-----END PRIVATE KEY-----\\n" + + "\",\n" + " \"project_id\": \"someprojectid\",\n" + " \"client_email\": \"someclientid@developer.gserviceaccount.com\",\n" + " \"client_id\": \"someclientid.apps.googleusercontent.com\",\n" @@ -2624,7 +2625,8 @@ void testCreateMaterializedViewTable() { MaterializedViewDefinition viewDefinition = MaterializedViewDefinition.newBuilder( String.format( - "SELECT MAX(TimestampField) AS TimestampField,StringField, MAX(BooleanField) AS BooleanField FROM %s.%s.%s GROUP BY StringField", + "SELECT MAX(TimestampField) AS TimestampField,StringField, MAX(BooleanField) AS" + + " BooleanField FROM %s.%s.%s GROUP BY StringField", PROJECT_ID, DATASET, TABLE_ID.getTable())) .build(); TableInfo tableInfo = TableInfo.of(tableId, viewDefinition); @@ -3671,12 +3673,12 @@ void testExecuteSelectWithReadApi() throws SQLException { final String QUERY = "SELECT * FROM bigquery-public-data.new_york_taxi_trips.tlc_yellow_trips_2017 LIMIT %s"; bigquery.getOptions().setDefaultJobCreationMode(JobCreationMode.JOB_CREATION_REQUIRED); - // Job timeout is somewhat arbitrary - just ensures that fast query is not used. + // Set priority explicitly to ensure that fast query is not used. // min result size and page row count ratio ensure that the ReadAPI is used. ConnectionSettings connectionSettingsReadAPIEnabledFastQueryDisabled = ConnectionSettings.newBuilder() .setUseReadAPI(true) - .setJobTimeoutMs(Long.MAX_VALUE) + .setPriority(Priority.INTERACTIVE) .setMinResultSize(500) .setTotalToPageRowCountRatio(1) .build(); @@ -3726,8 +3728,8 @@ void testExecuteSelectWithFastQueryReadApi() throws SQLException { void testExecuteSelectReadApiEmptyResultSet() throws SQLException { ConnectionSettings connectionSettings = ConnectionSettings.newBuilder() - .setJobTimeoutMs( - Long.MAX_VALUE) // Force executeSelect to use ReadAPI instead of fast query. + .setPriority( + Priority.INTERACTIVE) // Force executeSelect to use ReadAPI instead of fast query. .setUseReadAPI(true) .setUseQueryCache(false) .build(); @@ -3927,7 +3929,10 @@ void testQueryExternalHivePartitioningOptionCustomLayout() throws InterruptedExc void testConnectionImplDryRun() throws SQLException { String query = String.format( - "select StringField, BigNumericField, BooleanField, BytesField, IntegerField, TimestampField, FloatField, NumericField, TimeField, DateField, DateTimeField , GeographyField, RecordField.BytesField, RecordField.BooleanField, IntegerArrayField from %s where StringField = ? order by TimestampField", + "select StringField, BigNumericField, BooleanField, BytesField, IntegerField," + + " TimestampField, FloatField, NumericField, TimeField, DateField, DateTimeField" + + " , GeographyField, RecordField.BytesField, RecordField.BooleanField," + + " IntegerArrayField from %s where StringField = ? order by TimestampField", TABLE_ID_FAST_QUERY_BQ_RESULTSET.getTable()); ConnectionSettings connectionSettings = ConnectionSettings.newBuilder() @@ -4010,7 +4015,8 @@ void testBQResultSetPaginationSlowQuery() throws SQLException { String query = "SELECT date, county, state_name, confirmed_cases, deaths FROM " + TABLE_ID_LARGE.getTable() - + " where date is not null and county is not null and state_name is not null order by date limit 300000"; + + " where date is not null and county is not null and state_name is not null order by" + + " date limit 300000"; ConnectionSettings connectionSettings = ConnectionSettings.newBuilder() .setDefaultDataset(DatasetId.of(DATASET)) @@ -4037,8 +4043,10 @@ void testBQResultSetPaginationSlowQuery() throws SQLException { @Test void testExecuteSelectSinglePageTableRow() throws SQLException { String query = - "select StringField, BigNumericField, BooleanField, BytesField, IntegerField, TimestampField, FloatField, " - + "NumericField, TimeField, DateField, DateTimeField , GeographyField, RecordField.BytesField, RecordField.BooleanField, IntegerArrayField from " + "select StringField, BigNumericField, BooleanField, BytesField, IntegerField," + + " TimestampField, FloatField, NumericField, TimeField, DateField, DateTimeField ," + + " GeographyField, RecordField.BytesField, RecordField.BooleanField, IntegerArrayField" + + " from " + TABLE_ID_FAST_QUERY_BQ_RESULTSET.getTable() + " order by TimestampField"; ConnectionSettings connectionSettings = @@ -4101,8 +4109,10 @@ void testExecuteSelectSinglePageTableRow() throws SQLException { @Test void testExecuteSelectSinglePageTableRowWithReadAPI() throws SQLException { String query = - "select StringField, BigNumericField, BooleanField, BytesField, IntegerField, TimestampField, FloatField, " - + "NumericField, TimeField, DateField, DateTimeField , GeographyField, RecordField.BytesField, RecordField.BooleanField, IntegerArrayField from " + "select StringField, BigNumericField, BooleanField, BytesField, IntegerField," + + " TimestampField, FloatField, NumericField, TimeField, DateField, DateTimeField ," + + " GeographyField, RecordField.BytesField, RecordField.BooleanField, IntegerArrayField" + + " from " + TABLE_ID_FAST_QUERY_BQ_RESULTSET.getTable() + " order by TimestampField"; ConnectionSettings connectionSettings = @@ -4168,7 +4178,8 @@ void testConnectionClose() throws SQLException { String query = "SELECT date, county, state_name, confirmed_cases, deaths FROM " + TABLE_ID_LARGE.getTable() - + " where date is not null and county is not null and state_name is not null order by date limit 300000"; + + " where date is not null and county is not null and state_name is not null order by" + + " date limit 300000"; ConnectionSettings connectionSettings = ConnectionSettings.newBuilder() .setDefaultDataset(DatasetId.of(DATASET)) @@ -4194,7 +4205,8 @@ void testBQResultSetPagination() throws SQLException { String query = "SELECT date, county, state_name, confirmed_cases, deaths FROM " + TABLE_ID_LARGE.getTable() - + " where date is not null and county is not null and state_name is not null order by date limit 300000"; + + " where date is not null and county is not null and state_name is not null order by" + + " date limit 300000"; ConnectionSettings connectionSettings = ConnectionSettings.newBuilder() .setDefaultDataset(DatasetId.of(DATASET)) @@ -4221,7 +4233,8 @@ void testReadAPIIterationAndOrder() String query = "SELECT date, county, state_name, confirmed_cases, deaths FROM " + TABLE_ID_LARGE.getTable() - + " where date is not null and county is not null and state_name is not null order by confirmed_cases asc limit 300000"; + + " where date is not null and county is not null and state_name is not null order by" + + " confirmed_cases asc limit 300000"; ConnectionSettings connectionSettings = ConnectionSettings.newBuilder() @@ -4260,7 +4273,8 @@ void testReadAPIIterationAndOrderAsync() String query = "SELECT date, county, state_name, confirmed_cases, deaths / 10 FROM " + TABLE_ID_LARGE.getTable() - + " where date is not null and county is not null and state_name is not null order by confirmed_cases asc limit 300000"; + + " where date is not null and county is not null and state_name is not null order by" + + " confirmed_cases asc limit 300000"; ConnectionSettings connectionSettings = ConnectionSettings.newBuilder() @@ -4308,7 +4322,8 @@ void testExecuteSelectAsyncCancel() String query = "SELECT date, county, state_name, confirmed_cases, deaths FROM " + TABLE_ID_LARGE.getTable() - + " where date is not null and county is not null and state_name is not null order by confirmed_cases asc limit 300000"; + + " where date is not null and county is not null and state_name is not null order by" + + " confirmed_cases asc limit 300000"; ConnectionSettings connectionSettings = ConnectionSettings.newBuilder() @@ -4350,7 +4365,8 @@ void testExecuteSelectAsyncTimeout() String query = "SELECT date, county, state_name, confirmed_cases, deaths FROM " + TABLE_ID_LARGE.getTable() - + " where date is not null and county is not null and state_name is not null order by confirmed_cases asc limit 300000"; + + " where date is not null and county is not null and state_name is not null order by" + + " confirmed_cases asc limit 300000"; ConnectionSettings connectionSettings = ConnectionSettings.newBuilder() @@ -4417,7 +4433,8 @@ void testReadAPIConnectionMultiClose() String query = "SELECT date, county, state_name, confirmed_cases, deaths FROM " + TABLE_ID_LARGE.getTable() - + " where date is not null and county is not null and state_name is not null order by confirmed_cases asc limit 300000"; + + " where date is not null and county is not null and state_name is not null order by" + + " confirmed_cases asc limit 300000"; ConnectionSettings connectionSettings = ConnectionSettings.newBuilder() @@ -4448,8 +4465,10 @@ void testReadAPIConnectionMultiClose() @Test void testExecuteSelectSinglePageTableRowColInd() throws SQLException { String query = - "select StringField, BigNumericField, BooleanField, BytesField, IntegerField, TimestampField, FloatField, " - + "NumericField, TimeField, DateField, DateTimeField , GeographyField, RecordField.BytesField, RecordField.BooleanField, IntegerArrayField from " + "select StringField, BigNumericField, BooleanField, BytesField, IntegerField," + + " TimestampField, FloatField, NumericField, TimeField, DateField, DateTimeField ," + + " GeographyField, RecordField.BytesField, RecordField.BooleanField, IntegerArrayField" + + " from " + TABLE_ID_FAST_QUERY_BQ_RESULTSET.getTable() + " order by TimestampField"; /* @@ -4609,7 +4628,8 @@ void testExecuteSelectArray() throws SQLException { @Test void testExecuteSelectArrayOfStruct() throws SQLException { String query = - "SELECT [STRUCT(\"Vancouver\" as city, 5 as years), STRUCT(\"Boston\" as city, 10 as years)]"; + "SELECT [STRUCT(\"Vancouver\" as city, 5 as years), STRUCT(\"Boston\" as city, 10 as" + + " years)]"; ConnectionSettings connectionSettings = ConnectionSettings.newBuilder().setDefaultDataset(DatasetId.of(DATASET)).build(); Connection connection = bigquery.createConnection(connectionSettings); @@ -4944,7 +4964,9 @@ void testFastQuerySlowDDL() throws InterruptedException { // This query take more than 10s to run and should fall back on the old query path String slowDdlQuery = String.format( - "CREATE OR REPLACE TABLE %s AS SELECT unique_key, agency, complaint_type, descriptor, street_name, city, landmark FROM `bigquery-public-data.new_york.311_service_requests`", + "CREATE OR REPLACE TABLE %s AS SELECT unique_key, agency, complaint_type, descriptor," + + " street_name, city, landmark FROM" + + " `bigquery-public-data.new_york.311_service_requests`", tableName); QueryJobConfiguration ddlConfig = QueryJobConfiguration.newBuilder(slowDdlQuery) @@ -5320,7 +5342,8 @@ void testScriptStatistics() throws InterruptedException { @Test void testQueryParameterModeWithDryRun() { String query = - "SELECT TimestampField, StringField, BooleanField, BigNumericField, BigNumericField1, BigNumericField2, BigNumericField3, BigNumericField4 FROM " + "SELECT TimestampField, StringField, BooleanField, BigNumericField, BigNumericField1," + + " BigNumericField2, BigNumericField3, BigNumericField4 FROM " + TABLE_ID.getTable() + " WHERE StringField = ?" + " AND TimestampField > ?" @@ -5347,7 +5370,8 @@ void testQueryParameterModeWithDryRun() { @Test void testPositionalQueryParameters() throws InterruptedException { String query = - "SELECT TimestampField, StringField, BooleanField, BigNumericField, BigNumericField1, BigNumericField2, BigNumericField3, BigNumericField4 FROM " + "SELECT TimestampField, StringField, BooleanField, BigNumericField, BigNumericField1," + + " BigNumericField2, BigNumericField3, BigNumericField4 FROM " + TABLE_ID.getTable() + " WHERE StringField = ?" + " AND TimestampField > ?" @@ -5573,7 +5597,8 @@ void testUnnestRepeatedRecordNamedQueryParameter() throws InterruptedException { String query = "SELECT * FROM (SELECT STRUCT(" + boolValues[0] - + " AS boolField) AS repeatedRecord) WHERE repeatedRecord IN UNNEST(@repeatedRecordField)"; + + " AS boolField) AS repeatedRecord) WHERE repeatedRecord IN" + + " UNNEST(@repeatedRecordField)"; QueryJobConfiguration config = QueryJobConfiguration.newBuilder(query) .setDefaultDataset(DATASET) @@ -5708,7 +5733,8 @@ void testEmptyRepeatedRecordNamedQueryParameters() throws InterruptedException { QueryParameterValue repeatedRecord = QueryParameterValue.array(tuples, StandardSQLTypeName.STRUCT); String query = - "SELECT * FROM (SELECT STRUCT(false AS boolField) AS repeatedRecord) WHERE repeatedRecord IN UNNEST(@repeatedRecordField)"; + "SELECT * FROM (SELECT STRUCT(false AS boolField) AS repeatedRecord) WHERE repeatedRecord" + + " IN UNNEST(@repeatedRecordField)"; QueryJobConfiguration config = QueryJobConfiguration.newBuilder(query) .setDefaultDataset(DATASET) @@ -5817,7 +5843,8 @@ void testBytesParameter() throws Exception { void testGeographyParameter() throws Exception { // Issues a simple ST_DISTANCE using two geopoints, one being a named geography parameter. String query = - "SELECT ST_DISTANCE(ST_GEOGFROMTEXT(\"POINT(-122.335503 47.625536)\"), @geo) < 3000 as within3k"; + "SELECT ST_DISTANCE(ST_GEOGFROMTEXT(\"POINT(-122.335503 47.625536)\"), @geo) < 3000 as" + + " within3k"; QueryParameterValue geoParameterValue = QueryParameterValue.geography("POINT(-122.3509153 47.6495389)"); QueryJobConfiguration config = @@ -7390,9 +7417,9 @@ void testTableResultJobIdAndQueryId() throws InterruptedException { assertEquals(JobCreationReason.Code.OTHER, result.getJobCreationReason().getCode()); } - // Test scenario 2 by failing stateless check by setting job timeout. + // Test scenario 2 by failing stateless check by setting priority. QueryJobConfiguration configQueryWithJob = - QueryJobConfiguration.newBuilder(query).setJobTimeoutMs(1L).build(); + QueryJobConfiguration.newBuilder(query).setPriority(Priority.INTERACTIVE).build(); result = bigQuery.query(configQueryWithJob); assertNotNull(result.getJobId()); assertNull(result.getQueryId()); @@ -7474,7 +7501,8 @@ void testQueryWithTimeout() throws InterruptedException { BigQuery bigQuery = bigqueryHelper.getOptions().getService(); bigQuery.getOptions().setDefaultJobCreationMode(JobCreationMode.JOB_CREATION_OPTIONAL); String largeQuery = - "SELECT * FROM UNNEST(GENERATE_ARRAY(1, 20000)) CROSS JOIN UNNEST(GENERATE_ARRAY(1, 20000))"; + "SELECT * FROM UNNEST(GENERATE_ARRAY(1, 20000)) CROSS JOIN UNNEST(GENERATE_ARRAY(1," + + " 20000))"; String query = "SELECT 1 as one"; // Test scenario 1. // Stateless query returns TableResult @@ -7799,8 +7827,9 @@ void testStatementType() throws InterruptedException { String tableName = "test_materialized_view_table_statemnt_type"; String createQuery = String.format( - "CREATE MATERIALIZED VIEW %s.%s.%s " - + "AS (SELECT MAX(TimestampField) AS TimestampField,StringField, MAX(BooleanField) AS BooleanField FROM %s.%s.%s GROUP BY StringField)", + "CREATE MATERIALIZED VIEW %s.%s.%s AS (SELECT MAX(TimestampField) AS" + + " TimestampField,StringField, MAX(BooleanField) AS BooleanField FROM %s.%s.%s" + + " GROUP BY StringField)", PROJECT_ID, DATASET, tableName, PROJECT_ID, DATASET, TABLE_ID.getTable()); TableResult result = bigquery.query(QueryJobConfiguration.of(createQuery)); assertNotNull(result); From 396b042298bdfb32abf48b15fe6f70577fb9d4b7 Mon Sep 17 00:00:00 2001 From: Nidhi Date: Thu, 18 Jun 2026 13:55:03 +0000 Subject: [PATCH 30/82] feat(storage): add checksum validation on json read paths (#13269) Enabled default full object checksum validation for the following: `Storage#readAllBytes(bucket,blob)` `Storage.downloadTo(blobId, destination)` `Storage.downloadTo(blob, outputStream)` --------- --- .../cloud/storage/CumulativeHasher.java | 11 + .../java/com/google/cloud/storage/Hasher.java | 13 + .../storage/HttpStorageRpcHasherHelper.java | 166 +++++++++ .../cloud/storage/spi/v1/HttpStorageRpc.java | 20 +- .../HttpStorageRpcHasherHelperTest.java | 172 +++++++++ .../spi/v1/HttpStorageRpcChecksumTest.java | 326 ++++++++++++++++++ 6 files changed, 705 insertions(+), 3 deletions(-) create mode 100644 java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/HttpStorageRpcHasherHelper.java create mode 100644 java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/HttpStorageRpcHasherHelperTest.java create mode 100644 java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/spi/v1/HttpStorageRpcChecksumTest.java diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/CumulativeHasher.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/CumulativeHasher.java index 1614a3595a75..a6a3af42aeb7 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/CumulativeHasher.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/CumulativeHasher.java @@ -90,6 +90,17 @@ public void validateUnchecked(Crc32cValue expected, ByteString byteString) } } + @Override + public void validate(Crc32cValue expected, Crc32cLengthKnown actual) + throws ChecksumMismatchException { + if (actual != null) { + if (expected != null && !actual.eqValue(expected)) { + throw new ChecksumMismatchException(expected, actual); + } + accumulate(actual); + } + } + @Override public > C nullSafeConcat(C r1, Crc32cLengthKnown r2) { return delegate.nullSafeConcat(r1, r2); diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/Hasher.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/Hasher.java index 02dfe9efef41..ed97152b2584 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/Hasher.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/Hasher.java @@ -73,6 +73,8 @@ default Crc32cLengthKnown hash(Supplier b) { void validateUnchecked(Crc32cValue expected, ByteString byteString) throws UncheckedChecksumMismatchException; + void validate(Crc32cValue expected, Crc32cLengthKnown actual) throws ChecksumMismatchException; + @Nullable > C nullSafeConcat( @Nullable C r1, @Nullable Crc32cLengthKnown r2); @@ -122,6 +124,9 @@ public void validate(Crc32cValue expected, ByteString b) {} @Override public void validateUnchecked(Crc32cValue expected, ByteString byteString) {} + @Override + public void validate(Crc32cValue expected, Crc32cLengthKnown actual) {} + @Override public > @Nullable C nullSafeConcat( @Nullable C r1, @Nullable Crc32cLengthKnown r2) { @@ -189,6 +194,14 @@ public void validateUnchecked(Crc32cValue expected, ByteString byteString) } } + @Override + public void validate(Crc32cValue expected, Crc32cLengthKnown actual) + throws ChecksumMismatchException { + if (!actual.eqValue(expected)) { + throw new ChecksumMismatchException(expected, actual); + } + } + @SuppressWarnings("unchecked") @Override public > @Nullable C nullSafeConcat( diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/HttpStorageRpcHasherHelper.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/HttpStorageRpcHasherHelper.java new file mode 100644 index 000000000000..8f6111cb5d5d --- /dev/null +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/HttpStorageRpcHasherHelper.java @@ -0,0 +1,166 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + +package com.google.cloud.storage; + +import com.google.api.client.http.HttpResponse; +import com.google.api.core.InternalApi; +import com.google.common.hash.Hashing; +import com.google.common.hash.HashingOutputStream; +import com.google.common.io.BaseEncoding; +import com.google.common.primitives.Ints; +import java.io.IOException; +import java.io.OutputStream; +import java.nio.ByteBuffer; +import java.util.Map; +import java.util.function.Supplier; + +/** + * Internal utility class to perform client-side CRC32C checksum validation on downloaded data + * specifically for the {@code HttpStorageRpc} transport layer. + */ +@InternalApi +public final class HttpStorageRpcHasherHelper { + + public static final HttpStorageRpcHasherHelper INSTANCE = new HttpStorageRpcHasherHelper(); + + private final Hasher hasher; + + private HttpStorageRpcHasherHelper() { + hasher = Hasher.defaultHasher(); + } + + /** + * Returns a wrapping output stream that hashes the written content if validation is enabled, or + * the original output stream otherwise. + */ + @SuppressWarnings("UnstableApiUsage") + public OutputStream wrap(OutputStream out, boolean isChecksumValidationEnabled) { + boolean isHasherEnabled = !(hasher instanceof Hasher.NoOpHasher); + return (isChecksumValidationEnabled && isHasherEnabled) + ? new HashingOutputStream(Hashing.crc32c(), out) + : out; + } + + /** + * Validates the downloaded output stream against GCS's expected base64-encoded value in response + * headers. + * + * @throws IOException if the checksums do not match. + */ + @SuppressWarnings("UnstableApiUsage") + public void validate(HttpResponse response, OutputStream activeStream) throws IOException { + if (isTranscoded(response) || !isFullObjectResponse(response)) { + return; + } + if (activeStream instanceof HashingOutputStream) { + HashingOutputStream targetStream = (HashingOutputStream) activeStream; + + Map hashes = ChecksumResponseParser.extractHashesFromHeader(response); + String expectedCrc32cBase64 = hashes.get("crc32c"); + if (expectedCrc32cBase64 != null) { + validateCrc32c(expectedCrc32cBase64, targetStream.hash().asInt()); + } + } + } + + /** Determines if client-side validation should be performed on the downloaded object. */ + public boolean shouldValidate(HttpResponse response) { + return !isTranscoded(response) && isFullObjectResponse(response); + } + + private static boolean isFullObjectResponse(HttpResponse response) { + int statusCode = response.getStatusCode(); + if (statusCode == 200) { + return true; + } + if (statusCode == 206) { + String contentRange = response.getHeaders().getContentRange(); + if (contentRange != null) { + try { + HttpContentRange parsedRange = HttpContentRange.parse(contentRange); + if (parsedRange instanceof HttpContentRange.Total) { + HttpContentRange.Total totalRange = (HttpContentRange.Total) parsedRange; + return totalRange.range().beginOffset() == 0 + && totalRange.range().endOffsetInclusive() + 1 == totalRange.getSize(); + } + } catch (Exception e) { + // Ignore and return false + } + } + } + return false; + } + + private boolean isTranscoded(HttpResponse response) { + com.google.api.client.http.HttpHeaders headers = response.getHeaders(); + String storedEncoding = + HttpClientContext.firstHeaderValue(headers, "x-goog-stored-content-encoding"); + String storedLength = + HttpClientContext.firstHeaderValue(headers, "x-goog-stored-content-length"); + return storedEncoding != null || storedLength != null || isDecompressedByClient(response); + } + + private boolean isDecompressedByClient(HttpResponse response) { + boolean returnRaw = response.getRequest().getResponseReturnRawInputStream(); + if (!returnRaw) { + String encoding = response.getHeaders().getContentEncoding(); + return encoding != null && encoding.contains("gzip"); + } + return false; + } + + /** + * Validates a calculated CRC32C value against GCS's expected base64-encoded value. + * + * @throws IOException if the checksums do not match. + */ + public void validateCrc32c(String expectedCrc32cBase64, int calculatedCrc32c) throws IOException { + if (expectedCrc32cBase64 == null) { + return; + } + byte[] decoded = BaseEncoding.base64().decode(expectedCrc32cBase64); + int expectedVal = Ints.fromByteArray(decoded); + + Crc32cValue expected = Crc32cValue.of(expectedVal, 0); + Crc32cValue.Crc32cLengthKnown actual = Crc32cValue.of(calculatedCrc32c, 0); + + hasher.validate(expected, actual); + } + + /** + * Validates a downloaded raw byte array against GCS's expected base64-encoded value. + * + * @throws IOException if the checksums do not match. + */ + public void validateCrc32c(String expectedCrc32cBase64, byte[] content) throws IOException { + if (expectedCrc32cBase64 == null) { + return; + } + byte[] decoded = BaseEncoding.base64().decode(expectedCrc32cBase64); + int expectedVal = Ints.fromByteArray(decoded); + + Crc32cValue expected = Crc32cValue.of(expectedVal, 0); + hasher.validate( + expected, + new Supplier() { + @Override + public ByteBuffer get() { + return ByteBuffer.wrap(content); + } + }); + } +} diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java index 97814b597c37..ec7d8e02e411 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java @@ -80,6 +80,7 @@ import com.google.cloud.Tuple; import com.google.cloud.http.CensusHttpModule; import com.google.cloud.http.HttpTransportOptions; +import com.google.cloud.storage.HttpStorageRpcHasherHelper; import com.google.cloud.storage.StorageException; import com.google.cloud.storage.StorageOptions; import com.google.common.base.Function; @@ -860,9 +861,14 @@ public byte[] load(StorageObject from, Map options) { if (Option.RETURN_RAW_INPUT_STREAM.getBoolean(options) != null) { getRequest.setReturnRawInputStream(Option.RETURN_RAW_INPUT_STREAM.getBoolean(options)); } + HttpResponse response = getRequest.executeMedia(); ByteArrayOutputStream out = new ByteArrayOutputStream(); - getRequest.executeMedia().download(out); - return out.toByteArray(); + boolean shouldValidate = HttpStorageRpcHasherHelper.INSTANCE.shouldValidate(response); + OutputStream activeStream = HttpStorageRpcHasherHelper.INSTANCE.wrap(out, shouldValidate); + response.download(activeStream); + byte[] content = out.toByteArray(); + HttpStorageRpcHasherHelper.INSTANCE.validate(response, activeStream); + return content; } catch (IOException ex) { span.setStatus(Status.UNKNOWN.withDescription(ex.getMessage())); throw translate(ex); @@ -919,7 +925,15 @@ public long read( } MediaHttpDownloader mediaHttpDownloader = req.getMediaHttpDownloader(); mediaHttpDownloader.setDirectDownloadEnabled(true); - req.executeMedia().download(outputStream); + + HttpResponse response = req.executeMedia(); + boolean shouldValidate = HttpStorageRpcHasherHelper.INSTANCE.shouldValidate(response); + OutputStream activeStream = + HttpStorageRpcHasherHelper.INSTANCE.wrap(outputStream, shouldValidate); + response.download(activeStream); + // Validate checksum + HttpStorageRpcHasherHelper.INSTANCE.validate(response, activeStream); + return mediaHttpDownloader.getNumBytesDownloaded(); } catch (IOException ex) { span.setStatus(Status.UNKNOWN.withDescription(ex.getMessage())); diff --git a/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/HttpStorageRpcHasherHelperTest.java b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/HttpStorageRpcHasherHelperTest.java new file mode 100644 index 000000000000..6a8777d5ba92 --- /dev/null +++ b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/HttpStorageRpcHasherHelperTest.java @@ -0,0 +1,172 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + +package com.google.cloud.storage; + +import static org.junit.Assert.assertArrayEquals; +import static org.junit.Assert.assertFalse; +import static org.junit.Assert.assertNotEquals; +import static org.junit.Assert.assertSame; +import static org.junit.Assert.assertThrows; +import static org.junit.Assert.assertTrue; + +import com.google.api.client.http.GenericUrl; +import com.google.api.client.http.HttpRequest; +import com.google.api.client.http.HttpResponse; +import com.google.api.client.http.HttpTransport; +import com.google.api.client.testing.http.MockHttpTransport; +import com.google.api.client.testing.http.MockLowLevelHttpResponse; +import com.google.common.hash.Hashing; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.util.HashMap; +import java.util.Map; +import org.junit.Test; + +public class HttpStorageRpcHasherHelperTest { + + private static final byte[] CONTENT_BYTES = "Hello, World!".getBytes(); + private static final String CONTENT_CRC32C_BASE64 = + "TVUQaA=="; // expected CRC32C of "Hello, World!" + + @Test + public void testWrap_disabled_returnsOriginalStream() { + ByteArrayOutputStream original = new ByteArrayOutputStream(); + OutputStream wrapped = HttpStorageRpcHasherHelper.INSTANCE.wrap(original, false); + assertSame(original, wrapped); + } + + @Test + public void testWrap_enabled_returnsHashingStream() throws IOException { + ByteArrayOutputStream original = new ByteArrayOutputStream(); + OutputStream wrapped = HttpStorageRpcHasherHelper.INSTANCE.wrap(original, true); + assertNotEquals(original, wrapped); + + wrapped.write(CONTENT_BYTES); + wrapped.flush(); + wrapped.close(); + + byte[] writtenBytes = original.toByteArray(); + assertArrayEquals(CONTENT_BYTES, writtenBytes); + } + + @Test + public void testValidateCrc32c_int_expectSuccess() throws IOException { + int calculatedCrc32c = Hashing.crc32c().hashBytes(CONTENT_BYTES).asInt(); + // Should complete cleanly without throwing + HttpStorageRpcHasherHelper.INSTANCE.validateCrc32c(CONTENT_CRC32C_BASE64, calculatedCrc32c); + } + + @Test + public void testValidateCrc32c_int_expectMismatchFailure() { + int calculatedCrc32c = 12345; // Incorrect hash + Hasher.ChecksumMismatchException ex = + assertThrows( + Hasher.ChecksumMismatchException.class, + () -> + HttpStorageRpcHasherHelper.INSTANCE.validateCrc32c( + CONTENT_CRC32C_BASE64, calculatedCrc32c)); + assertTrue(ex.getMessage().contains("Mismatch checksum value")); + } + + @Test + public void testValidateCrc32c_byteArray_expectSuccess() throws IOException { + // Should complete cleanly without throwing + HttpStorageRpcHasherHelper.INSTANCE.validateCrc32c(CONTENT_CRC32C_BASE64, CONTENT_BYTES); + } + + @Test + public void testValidateCrc32c_byteArray_expectMismatchFailure() { + byte[] wrongBytes = "Wrong bytes!".getBytes(); + Hasher.ChecksumMismatchException ex = + assertThrows( + Hasher.ChecksumMismatchException.class, + () -> + HttpStorageRpcHasherHelper.INSTANCE.validateCrc32c( + CONTENT_CRC32C_BASE64, wrongBytes)); + assertTrue(ex.getMessage().contains("Mismatch checksum value")); + } + + private static HttpResponse createHttpResponse( + int statusCode, Map headers, boolean returnRawInputStream) + throws IOException { + MockLowLevelHttpResponse lowLevelResponse = new MockLowLevelHttpResponse(); + lowLevelResponse.setStatusCode(statusCode); + if (headers != null) { + for (Map.Entry entry : headers.entrySet()) { + lowLevelResponse.addHeader(entry.getKey(), entry.getValue()); + } + } + HttpTransport transport = + new MockHttpTransport.Builder().setLowLevelHttpResponse(lowLevelResponse).build(); + HttpRequest request = + transport.createRequestFactory().buildGetRequest(new GenericUrl("http://example.com")); + request.setResponseReturnRawInputStream(returnRawInputStream); + return request.execute(); + } + + @Test + public void testShouldValidate_successStatus200() throws IOException { + HttpResponse response = createHttpResponse(200, null, true); + assertTrue(HttpStorageRpcHasherHelper.INSTANCE.shouldValidate(response)); + } + + @Test + public void testShouldValidate_successStatus206_fullContentRange() throws IOException { + Map headers = new HashMap<>(); + headers.put("Content-Range", "bytes 0-499/500"); + HttpResponse response = createHttpResponse(206, headers, true); + + assertTrue(HttpStorageRpcHasherHelper.INSTANCE.shouldValidate(response)); + } + + @Test + public void testShouldValidate_successStatus206_partialContentRange() throws IOException { + Map headers = new HashMap<>(); + headers.put("Content-Range", "bytes 100-499/500"); + HttpResponse response = createHttpResponse(206, headers, true); + + assertFalse(HttpStorageRpcHasherHelper.INSTANCE.shouldValidate(response)); + } + + @Test + public void testShouldValidate_transcoded_storedEncoding() throws IOException { + Map headers = new HashMap<>(); + headers.put("x-goog-stored-content-encoding", "gzip"); + HttpResponse response = createHttpResponse(200, headers, true); + + assertFalse(HttpStorageRpcHasherHelper.INSTANCE.shouldValidate(response)); + } + + @Test + public void testShouldValidate_transcoded_storedLength() throws IOException { + Map headers = new HashMap<>(); + headers.put("x-goog-stored-content-length", "123"); + HttpResponse response = createHttpResponse(200, headers, true); + + assertFalse(HttpStorageRpcHasherHelper.INSTANCE.shouldValidate(response)); + } + + @Test + public void testShouldValidate_decompressedByClient() throws IOException { + Map headers = new HashMap<>(); + headers.put("Content-Encoding", "gzip"); + HttpResponse response = createHttpResponse(200, headers, false); + + assertFalse(HttpStorageRpcHasherHelper.INSTANCE.shouldValidate(response)); + } +} diff --git a/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/spi/v1/HttpStorageRpcChecksumTest.java b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/spi/v1/HttpStorageRpcChecksumTest.java new file mode 100644 index 000000000000..540e14eb045e --- /dev/null +++ b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/spi/v1/HttpStorageRpcChecksumTest.java @@ -0,0 +1,326 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.storage.spi.v1; + +import static com.google.common.truth.Truth.assertThat; +import static org.junit.Assert.assertThrows; + +import com.google.api.client.testing.http.MockLowLevelHttpResponse; +import com.google.cloud.NoCredentials; +import com.google.cloud.TransportOptions; +import com.google.cloud.http.HttpTransportOptions; +import com.google.cloud.storage.BlobId; +import com.google.cloud.storage.Storage; +import com.google.cloud.storage.StorageException; +import com.google.cloud.storage.StorageOptions; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.io.BaseEncoding; +import com.google.common.primitives.Ints; +import java.io.ByteArrayOutputStream; +import java.nio.charset.StandardCharsets; +import org.junit.Test; + +public final class HttpStorageRpcChecksumTest { + + private static final String BUCKET = "test-bucket"; + private static final String BLOB = "test-blob"; + private static final byte[] CONTENT = + "hello world checksum test".getBytes(StandardCharsets.UTF_8); + + private static final int CONTENT_CRC32C_VAL = + com.google.common.hash.Hashing.crc32c().hashBytes(CONTENT).asInt(); + private static final String CONTENT_CRC32C_BASE64 = + BaseEncoding.base64().encode(Ints.toByteArray(CONTENT_CRC32C_VAL)); + + private static final String BAD_CRC32C_BASE64 = + BaseEncoding.base64().encode(Ints.toByteArray(999999)); + + @Test + public void testReadAllBytes_successfulCrc32cValidation() throws Exception { + MockLowLevelHttpResponse response = + new MockLowLevelHttpResponse() + .setContentType("application/octet-stream") + .setHeaderNames(ImmutableList.of("x-goog-hash")) + .setHeaderValues(ImmutableList.of("crc32c=" + CONTENT_CRC32C_BASE64)) + .setContent(new String(CONTENT, StandardCharsets.UTF_8)) + .setStatusCode(200); + + try (Storage storage = createMockStorage(response)) { + byte[] bytes = storage.readAllBytes(BlobId.of(BUCKET, BLOB)); + assertThat(bytes).isEqualTo(CONTENT); + } + } + + @Test + public void testReadAllBytes_failedCrc32cValidation() throws Exception { + MockLowLevelHttpResponse response = + new MockLowLevelHttpResponse() + .setContentType("application/octet-stream") + .setHeaderNames(ImmutableList.of("x-goog-hash")) + .setHeaderValues(ImmutableList.of("crc32c=" + BAD_CRC32C_BASE64)) + .setContent(new String(CONTENT, StandardCharsets.UTF_8)) + .setStatusCode(200); + + try (Storage storage = createMockStorage(response)) { + StorageException ex = + assertThrows( + StorageException.class, + () -> { + storage.readAllBytes(BlobId.of(BUCKET, BLOB)); + }); + assertThat(ex.getMessage()).contains("Mismatch checksum value"); + assertThat(ex.getCause().getMessage()).contains("Mismatch checksum value"); + } + } + + @Test + public void testDownloadTo_successfulCrc32cValidation() throws Exception { + MockLowLevelHttpResponse response = + new MockLowLevelHttpResponse() + .setContentType("application/octet-stream") + .setHeaderNames(ImmutableList.of("x-goog-hash")) + .setHeaderValues(ImmutableList.of("crc32c=" + CONTENT_CRC32C_BASE64)) + .setContent(new String(CONTENT, StandardCharsets.UTF_8)) + .setStatusCode(200); + + try (Storage storage = createMockStorage(response)) { + ByteArrayOutputStream out = new ByteArrayOutputStream(); + storage.downloadTo(BlobId.of(BUCKET, BLOB), out); + assertThat(out.toByteArray()).isEqualTo(CONTENT); + } + } + + @Test + public void testDownloadTo_failedCrc32cValidation() throws Exception { + MockLowLevelHttpResponse response = + new MockLowLevelHttpResponse() + .setContentType("application/octet-stream") + .setHeaderNames(ImmutableList.of("x-goog-hash")) + .setHeaderValues(ImmutableList.of("crc32c=" + BAD_CRC32C_BASE64)) + .setContent(new String(CONTENT, StandardCharsets.UTF_8)) + .setStatusCode(200); + + try (Storage storage = createMockStorage(response)) { + ByteArrayOutputStream out = new ByteArrayOutputStream(); + StorageException ex = + assertThrows( + StorageException.class, + () -> { + storage.downloadTo(BlobId.of(BUCKET, BLOB), out); + }); + assertThat(ex.getMessage()).contains("Mismatch checksum value"); + assertThat(ex.getCause().getMessage()).contains("Mismatch checksum value"); + } + } + + @Test + public void testReadAllBytes_noChecksumHeader_expectSuccess() throws Exception { + MockLowLevelHttpResponse response = + new MockLowLevelHttpResponse() + .setContentType("application/octet-stream") + .setContent(new String(CONTENT, StandardCharsets.UTF_8)) + .setStatusCode(200); + + try (Storage storage = createMockStorage(response)) { + byte[] bytes = storage.readAllBytes(BlobId.of(BUCKET, BLOB)); + assertThat(bytes).isEqualTo(CONTENT); + } + } + + @Test + public void testDownloadTo_noChecksumHeader_expectSuccess() throws Exception { + MockLowLevelHttpResponse response = + new MockLowLevelHttpResponse() + .setContentType("application/octet-stream") + .setContent(new String(CONTENT, StandardCharsets.UTF_8)) + .setStatusCode(200); + + try (Storage storage = createMockStorage(response)) { + ByteArrayOutputStream out = new ByteArrayOutputStream(); + storage.downloadTo(BlobId.of(BUCKET, BLOB), out); + assertThat(out.toByteArray()).isEqualTo(CONTENT); + } + } + + @Test + public void testRead_rangeZeroToFullLength_successfulCrc32cValidation() throws Exception { + MockLowLevelHttpResponse response = + new MockLowLevelHttpResponse() + .setContentType("application/octet-stream") + .setHeaderNames(ImmutableList.of("x-goog-hash", "Content-Range")) + .setHeaderValues( + ImmutableList.of( + "crc32c=" + CONTENT_CRC32C_BASE64, + "bytes 0-" + (CONTENT.length - 1) + "/" + CONTENT.length)) + .setContent(new String(CONTENT, StandardCharsets.UTF_8)) + .setStatusCode(206); + + HttpStorageRpc rpc = createMockRpc(response); + ByteArrayOutputStream out = new ByteArrayOutputStream(); + com.google.api.services.storage.model.StorageObject pb = + new com.google.api.services.storage.model.StorageObject().setBucket(BUCKET).setName(BLOB); + + ImmutableMap options = + ImmutableMap.of( + StorageRpc.Option.EXTRA_HEADERS, + ImmutableMap.of("Range", "bytes=0-" + (CONTENT.length - 1))); + + rpc.read(pb, options, 0, out); + assertThat(out.toByteArray()).isEqualTo(CONTENT); + } + + @Test + public void testRead_rangeZeroToFullLength_failedCrc32cValidation() throws Exception { + MockLowLevelHttpResponse response = + new MockLowLevelHttpResponse() + .setContentType("application/octet-stream") + .setHeaderNames(ImmutableList.of("x-goog-hash", "Content-Range")) + .setHeaderValues( + ImmutableList.of( + "crc32c=" + BAD_CRC32C_BASE64, + "bytes 0-" + (CONTENT.length - 1) + "/" + CONTENT.length)) + .setContent(new String(CONTENT, StandardCharsets.UTF_8)) + .setStatusCode(206); + + HttpStorageRpc rpc = createMockRpc(response); + ByteArrayOutputStream out = new ByteArrayOutputStream(); + com.google.api.services.storage.model.StorageObject pb = + new com.google.api.services.storage.model.StorageObject().setBucket(BUCKET).setName(BLOB); + + ImmutableMap options = + ImmutableMap.of( + StorageRpc.Option.EXTRA_HEADERS, + ImmutableMap.of("Range", "bytes=0-" + (CONTENT.length - 1))); + + StorageException ex = + assertThrows( + StorageException.class, + () -> { + rpc.read(pb, options, 0, out); + }); + assertThat(ex.getMessage()).contains("Mismatch checksum value"); + assertThat(ex.getCause().getMessage()).contains("Mismatch checksum value"); + } + + @Test + public void testRead_partialRange_skipsCrc32cValidation() throws Exception { + byte[] partialContent = "hello".getBytes(StandardCharsets.UTF_8); + MockLowLevelHttpResponse response = + new MockLowLevelHttpResponse() + .setContentType("application/octet-stream") + .setHeaderNames(ImmutableList.of("x-goog-hash", "Content-Range")) + .setHeaderValues( + ImmutableList.of("crc32c=" + BAD_CRC32C_BASE64, "bytes 0-4/" + CONTENT.length)) + .setContent(new String(partialContent, StandardCharsets.UTF_8)) + .setStatusCode(206); + + HttpStorageRpc rpc = createMockRpc(response); + ByteArrayOutputStream out = new ByteArrayOutputStream(); + com.google.api.services.storage.model.StorageObject pb = + new com.google.api.services.storage.model.StorageObject().setBucket(BUCKET).setName(BLOB); + + ImmutableMap options = + ImmutableMap.of(StorageRpc.Option.EXTRA_HEADERS, ImmutableMap.of("Range", "bytes=0-4")); + + rpc.read(pb, options, 0, out); + assertThat(out.toByteArray()).isEqualTo(partialContent); + } + + @Test + public void testRead_rangeSuffixFullLength_successfulCrc32cValidation() throws Exception { + MockLowLevelHttpResponse response = + new MockLowLevelHttpResponse() + .setContentType("application/octet-stream") + .setHeaderNames(ImmutableList.of("x-goog-hash", "Content-Range")) + .setHeaderValues( + ImmutableList.of( + "crc32c=" + CONTENT_CRC32C_BASE64, + "bytes 0-" + (CONTENT.length - 1) + "/" + CONTENT.length)) + .setContent(new String(CONTENT, StandardCharsets.UTF_8)) + .setStatusCode(206); + + HttpStorageRpc rpc = createMockRpc(response); + ByteArrayOutputStream out = new ByteArrayOutputStream(); + com.google.api.services.storage.model.StorageObject pb = + new com.google.api.services.storage.model.StorageObject().setBucket(BUCKET).setName(BLOB); + + ImmutableMap options = + ImmutableMap.of( + StorageRpc.Option.EXTRA_HEADERS, ImmutableMap.of("Range", "bytes=-" + CONTENT.length)); + + rpc.read(pb, options, 0, out); + assertThat(out.toByteArray()).isEqualTo(CONTENT); + } + + @Test + public void testRead_rangeSuffixFullLength_failedCrc32cValidation() throws Exception { + MockLowLevelHttpResponse response = + new MockLowLevelHttpResponse() + .setContentType("application/octet-stream") + .setHeaderNames(ImmutableList.of("x-goog-hash", "Content-Range")) + .setHeaderValues( + ImmutableList.of( + "crc32c=" + BAD_CRC32C_BASE64, + "bytes 0-" + (CONTENT.length - 1) + "/" + CONTENT.length)) + .setContent(new String(CONTENT, StandardCharsets.UTF_8)) + .setStatusCode(206); + + HttpStorageRpc rpc = createMockRpc(response); + ByteArrayOutputStream out = new ByteArrayOutputStream(); + com.google.api.services.storage.model.StorageObject pb = + new com.google.api.services.storage.model.StorageObject().setBucket(BUCKET).setName(BLOB); + + ImmutableMap options = + ImmutableMap.of( + StorageRpc.Option.EXTRA_HEADERS, ImmutableMap.of("Range", "bytes=-" + CONTENT.length)); + + StorageException ex = + assertThrows( + StorageException.class, + () -> { + rpc.read(pb, options, 0, out); + }); + assertThat(ex.getMessage()).contains("Mismatch checksum value"); + assertThat(ex.getCause().getMessage()).contains("Mismatch checksum value"); + } + + private HttpStorageRpc createMockRpc(MockLowLevelHttpResponse response) { + AuditingHttpTransport transport = new AuditingHttpTransport(response); + TransportOptions transportOptions = + HttpTransportOptions.newBuilder().setHttpTransportFactory(() -> transport).build(); + StorageOptions options = + StorageOptions.getDefaultInstance().toBuilder() + .setProjectId("test-project") + .setCredentials(NoCredentials.getInstance()) + .setTransportOptions(transportOptions) + .build(); + return new HttpStorageRpc(options); + } + + private Storage createMockStorage(MockLowLevelHttpResponse response) { + AuditingHttpTransport transport = new AuditingHttpTransport(response); + TransportOptions transportOptions = + HttpTransportOptions.newBuilder().setHttpTransportFactory(() -> transport).build(); + return StorageOptions.getDefaultInstance().toBuilder() + .setProjectId("test-project") + .setCredentials(NoCredentials.getInstance()) + .setTransportOptions(transportOptions) + .build() + .getService(); + } +} From 872d7b7d83fe91abff7940f9c375752dcf83892f Mon Sep 17 00:00:00 2001 From: Nidhi Date: Thu, 18 Jun 2026 14:40:37 +0000 Subject: [PATCH 31/82] feat(storage): add checksum validation in the json read channel (#13270) Enabled default full object checksum validation for the following: `Storage#reader(blobId)` `Storage#reader(bucketName, blobName)` --- .../ApiaryUnbufferedReadableByteChannel.java | 33 ++- .../storage/HttpDownloadSessionBuilder.java | 9 +- ...iaryUnbufferedReadableByteChannelTest.java | 221 ++++++++++++++++++ 3 files changed, 259 insertions(+), 4 deletions(-) create mode 100644 java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/ApiaryUnbufferedReadableByteChannelTest.java diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ApiaryUnbufferedReadableByteChannel.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ApiaryUnbufferedReadableByteChannel.java index 7907aafe9fca..a9c439dadb56 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ApiaryUnbufferedReadableByteChannel.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ApiaryUnbufferedReadableByteChannel.java @@ -38,7 +38,9 @@ import com.google.common.collect.ImmutableMap; import com.google.common.hash.HashFunction; import com.google.common.hash.Hashing; +import com.google.common.hash.HashingInputStream; import com.google.common.io.BaseEncoding; +import com.google.common.primitives.Ints; import com.google.gson.Gson; import com.google.gson.stream.JsonReader; import java.io.IOException; @@ -61,6 +63,7 @@ import org.checkerframework.checker.nullness.qual.NonNull; import org.checkerframework.checker.nullness.qual.Nullable; +@SuppressWarnings("UnstableApiUsage") class ApiaryUnbufferedReadableByteChannel implements UnbufferedReadableByteChannel { private final ApiaryReadRequest apiaryReadRequest; @@ -68,6 +71,7 @@ class ApiaryUnbufferedReadableByteChannel implements UnbufferedReadableByteChann private final SettableApiFuture result; private final ResultRetryAlgorithm resultRetryAlgorithm; private final Retrier retrier; + private final Hasher hasher; private long position; private ScatteringByteChannel sbc; @@ -77,16 +81,21 @@ class ApiaryUnbufferedReadableByteChannel implements UnbufferedReadableByteChann // returned X-Goog-Generation header value private Long xGoogGeneration; + private HashingInputStream hashingInputStream; + private String expectedCrc32cBase64; + ApiaryUnbufferedReadableByteChannel( ApiaryReadRequest apiaryReadRequest, Storage storage, SettableApiFuture result, Retrier retrier, - ResultRetryAlgorithm resultRetryAlgorithm) { + ResultRetryAlgorithm resultRetryAlgorithm, + Hasher hasher) { this.apiaryReadRequest = apiaryReadRequest; this.storage = storage; this.result = result; this.retrier = retrier; + this.hasher = hasher; this.resultRetryAlgorithm = new BasicResultRetryAlgorithm() { @Override @@ -126,6 +135,16 @@ public long read(ByteBuffer[] dsts, int offset, int length) throws IOException { long read = sbc.read(dsts, offset, length); if (read == -1) { returnEOF = true; + if (hashingInputStream != null && expectedCrc32cBase64 != null) { + int calculatedCrc32c = hashingInputStream.hash().asInt(); + byte[] decoded = BaseEncoding.base64().decode(expectedCrc32cBase64); + int expectedVal = Ints.fromByteArray(decoded); + + Crc32cValue expected = Crc32cValue.of(expectedVal, 0); + Crc32cValue.Crc32cLengthKnown actual = Crc32cValue.of(calculatedCrc32c, 0); + + hasher.validate(expected, actual); + } } else { totalRead += read; } @@ -180,6 +199,10 @@ private ScatteringByteChannel open() { HttpResponse media = get.executeMedia(); InputStream content = media.getContent(); + + Map hashes = ChecksumResponseParser.extractHashesFromHeader(media); + this.expectedCrc32cBase64 = hashes.get("crc32c"); + if (xGoogGeneration == null) { HttpHeaders responseHeaders = media.getHeaders(); @@ -214,6 +237,14 @@ private ScatteringByteChannel open() { } } + boolean isHasherEnabled = !(hasher instanceof Hasher.NoOpHasher); + boolean shouldValidate = + isHasherEnabled && HttpStorageRpcHasherHelper.INSTANCE.shouldValidate(media); + if (shouldValidate && expectedCrc32cBase64 != null) { + this.hashingInputStream = new HashingInputStream(Hashing.crc32c(), content); + content = this.hashingInputStream; + } + ReadableByteChannel rbc = Channels.newChannel(content); return StorageByteChannels.readable().asScatteringByteChannel(rbc); } catch (HttpResponseException e) { diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/HttpDownloadSessionBuilder.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/HttpDownloadSessionBuilder.java index 2b81fac694da..202cf13b3051 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/HttpDownloadSessionBuilder.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/HttpDownloadSessionBuilder.java @@ -54,10 +54,11 @@ public static final class ReadableByteChannelSessionBuilder { private final BlobReadChannelContext blobReadChannelContext; private boolean autoGzipDecompression; - // private Hasher hasher; // TODO: wire in Hasher + private final Hasher hasher; private ReadableByteChannelSessionBuilder(BlobReadChannelContext blobReadChannelContext) { this.blobReadChannelContext = blobReadChannelContext; + this.hasher = Hasher.defaultHasher(); this.autoGzipDecompression = false; } @@ -96,7 +97,8 @@ public UnbufferedReadableByteChannelSessionBuilder unbuffered() { blobReadChannelContext.getApiaryClient(), resultFuture, blobReadChannelContext.getRetrier(), - blobReadChannelContext.getRetryAlgorithmManager().idempotent()), + blobReadChannelContext.getRetryAlgorithmManager().idempotent(), + hasher), ApiFutures.transform( resultFuture, StorageObject::getContentEncoding, MoreExecutors.directExecutor())); } else { @@ -105,7 +107,8 @@ public UnbufferedReadableByteChannelSessionBuilder unbuffered() { blobReadChannelContext.getApiaryClient(), resultFuture, blobReadChannelContext.getRetrier(), - blobReadChannelContext.getRetryAlgorithmManager().idempotent()); + blobReadChannelContext.getRetryAlgorithmManager().idempotent(), + hasher); } }; } diff --git a/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/ApiaryUnbufferedReadableByteChannelTest.java b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/ApiaryUnbufferedReadableByteChannelTest.java new file mode 100644 index 000000000000..ddba508fbfa7 --- /dev/null +++ b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/ApiaryUnbufferedReadableByteChannelTest.java @@ -0,0 +1,221 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.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. + */ + +package com.google.cloud.storage; + +import static org.junit.Assert.assertArrayEquals; +import static org.junit.Assert.assertThrows; +import static org.junit.Assert.assertTrue; + +import com.google.api.client.http.HttpTransport; +import com.google.api.client.json.gson.GsonFactory; +import com.google.api.client.testing.http.MockLowLevelHttpResponse; +import com.google.api.core.SettableApiFuture; +import com.google.api.services.storage.Storage; +import com.google.api.services.storage.model.StorageObject; +import com.google.cloud.storage.ApiaryUnbufferedReadableByteChannel.ApiaryReadRequest; +import com.google.cloud.storage.Retrying.RetrierWithAlg; +import com.google.common.collect.ImmutableMap; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.nio.ByteBuffer; +import java.nio.channels.Channels; +import java.nio.channels.WritableByteChannel; +import java.util.Map; +import org.junit.Test; + +public class ApiaryUnbufferedReadableByteChannelTest { + + private static final byte[] CONTENT_BYTES = "Hello, World!".getBytes(); + private static final String CORRECT_CRC32C_BASE64 = "TVUQaA=="; + private static final String WRONG_CRC32C_BASE64 = "AAAAAA=="; + + private Storage createMockStorageClient(String googHashHeader) { + return createMockStorageClient(200, googHashHeader, null); + } + + private Storage createMockStorageClient( + int statusCode, String googHashHeader, Map extraHeaders) { + HttpTransport transport = + new HttpTransport() { + @Override + protected com.google.api.client.http.LowLevelHttpRequest buildRequest( + String method, String url) throws IOException { + return new com.google.api.client.testing.http.MockLowLevelHttpRequest() { + @Override + public com.google.api.client.http.LowLevelHttpResponse execute() throws IOException { + MockLowLevelHttpResponse lowLevelResponse = + new MockLowLevelHttpResponse() + .setStatusCode(statusCode) + .setContent(CONTENT_BYTES) + .setContentLength(CONTENT_BYTES.length) + .addHeader("Content-Length", String.valueOf(CONTENT_BYTES.length)) + .addHeader("x-goog-generation", "12345"); + if (googHashHeader != null) { + lowLevelResponse.addHeader("x-goog-hash", googHashHeader); + } + if (extraHeaders != null) { + for (Map.Entry entry : extraHeaders.entrySet()) { + lowLevelResponse.addHeader(entry.getKey(), entry.getValue()); + } + } + return lowLevelResponse; + } + }; + } + }; + return new Storage.Builder(transport, GsonFactory.getDefaultInstance(), null) + .setApplicationName("test") + .build(); + } + + @Test + public void testRead_successfulCrc32cValidation() throws IOException { + Storage storageClient = createMockStorageClient("crc32c=" + CORRECT_CRC32C_BASE64); + + StorageObject from = new StorageObject().setBucket("bucket").setName("blob"); + ApiaryReadRequest apiaryReadRequest = + new ApiaryReadRequest(from, ImmutableMap.of(), ByteRangeSpec.nullRange()); + + SettableApiFuture resultFuture = SettableApiFuture.create(); + try (ApiaryUnbufferedReadableByteChannel channel = + new ApiaryUnbufferedReadableByteChannel( + apiaryReadRequest, + storageClient, + resultFuture, + RetrierWithAlg.attemptOnce(), + Retrying.neverRetry(), + Hasher.defaultHasher()); ) { + + ByteArrayOutputStream out = new ByteArrayOutputStream(); + try (WritableByteChannel w = Channels.newChannel(out)) { + ByteBuffer buf = ByteBuffer.allocate(4096); + while (channel.read(new ByteBuffer[] {buf}, 0, 1) != -1) { + buf.flip(); + w.write(buf); + buf.clear(); + } + } + + assertArrayEquals(CONTENT_BYTES, out.toByteArray()); + } + } + + @Test + public void testRead_mismatchedCrc32cValidation_throwsChecksumMismatch() throws IOException { + Storage storageClient = createMockStorageClient("crc32c=" + WRONG_CRC32C_BASE64); + + StorageObject from = new StorageObject().setBucket("bucket").setName("blob"); + ApiaryReadRequest apiaryReadRequest = + new ApiaryReadRequest(from, ImmutableMap.of(), ByteRangeSpec.nullRange()); + + SettableApiFuture resultFuture = SettableApiFuture.create(); + try (ApiaryUnbufferedReadableByteChannel channel = + new ApiaryUnbufferedReadableByteChannel( + apiaryReadRequest, + storageClient, + resultFuture, + RetrierWithAlg.attemptOnce(), + Retrying.neverRetry(), + Hasher.defaultHasher()); ) { + + ByteBuffer buf = ByteBuffer.allocate(4096); + Hasher.ChecksumMismatchException expected = + assertThrows( + Hasher.ChecksumMismatchException.class, + () -> { + while (channel.read(new ByteBuffer[] {buf}, 0, 1) != -1) { + buf.clear(); + } + }); + + assertTrue(expected.getMessage().contains("Mismatch checksum value")); + } + } + + @Test + public void testRead_suffixRangeFullObjectCrc32cValidation() throws IOException { + // Suffix range request resulting in content-range: bytes 0-12/13 + Map extraHeaders = ImmutableMap.of("Content-Range", "bytes 0-12/13"); + Storage storageClient = + createMockStorageClient(206, "crc32c=" + CORRECT_CRC32C_BASE64, extraHeaders); + + StorageObject from = new StorageObject().setBucket("bucket").setName("blob"); + ApiaryReadRequest apiaryReadRequest = + new ApiaryReadRequest(from, ImmutableMap.of(), ByteRangeSpec.nullRange()); + + SettableApiFuture resultFuture = SettableApiFuture.create(); + try (ApiaryUnbufferedReadableByteChannel channel = + new ApiaryUnbufferedReadableByteChannel( + apiaryReadRequest, + storageClient, + resultFuture, + RetrierWithAlg.attemptOnce(), + Retrying.neverRetry(), + Hasher.defaultHasher()); ) { + + ByteArrayOutputStream out = new ByteArrayOutputStream(); + try (WritableByteChannel w = Channels.newChannel(out)) { + ByteBuffer buf = ByteBuffer.allocate(4096); + while (channel.read(new ByteBuffer[] {buf}, 0, 1) != -1) { + buf.flip(); + w.write(buf); + buf.clear(); + } + } + + assertArrayEquals(CONTENT_BYTES, out.toByteArray()); + } + } + + @Test + public void testRead_partialRangeNoCrc32cValidation() throws IOException { + // Partial range request resulting in content-range: bytes 1-12/13 + Map extraHeaders = ImmutableMap.of("Content-Range", "bytes 1-12/13"); + // Even if checksum is wrong, it shouldn't throw ChecksumMismatchException because validation is + // skipped for partial downloads. + Storage storageClient = + createMockStorageClient(206, "crc32c=" + WRONG_CRC32C_BASE64, extraHeaders); + + StorageObject from = new StorageObject().setBucket("bucket").setName("blob"); + ApiaryReadRequest apiaryReadRequest = + new ApiaryReadRequest(from, ImmutableMap.of(), ByteRangeSpec.nullRange()); + + SettableApiFuture resultFuture = SettableApiFuture.create(); + try (ApiaryUnbufferedReadableByteChannel channel = + new ApiaryUnbufferedReadableByteChannel( + apiaryReadRequest, + storageClient, + resultFuture, + RetrierWithAlg.attemptOnce(), + Retrying.neverRetry(), + Hasher.defaultHasher()); ) { + + ByteArrayOutputStream out = new ByteArrayOutputStream(); + try (WritableByteChannel w = Channels.newChannel(out)) { + ByteBuffer buf = ByteBuffer.allocate(4096); + while (channel.read(new ByteBuffer[] {buf}, 0, 1) != -1) { + buf.flip(); + w.write(buf); + buf.clear(); + } + } + + // We read the entire response content successfully (no exception thrown) + assertArrayEquals(CONTENT_BYTES, out.toByteArray()); + } + } +} From 577f6e82ac34b16dc0a63eaa18afbd06ab449780 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 18 Jun 2026 11:22:13 -0400 Subject: [PATCH 32/82] chore(bigquery-jdbc): add the bridge Thread wrap ahead of Executor migration (#13482) --- .../jdbc/BigQueryDatabaseMetaData.java | 77 +++++++++++ .../jdbc/BigQueryDatabaseMetaDataTest.java | 125 ++++++++++++++++++ 2 files changed, 202 insertions(+) diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java index 32ed62d91fd6..8ed1fd8df325 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java @@ -72,6 +72,7 @@ import java.util.concurrent.Future; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; import java.util.concurrent.atomic.AtomicReference; import java.util.function.Function; import java.util.function.Supplier; @@ -5264,4 +5265,80 @@ private void loadDriverVersionProperties() { throw ex; } } + + // TODO(keshav): This is a temporary compatibility bridge to wrap raw Threads into Futures. + // This should be removed when BigQueryDatabaseMetaData is refactored to use the ExecutorService + // directly. + static Future[] wrapThread(final Thread thread) { + if (thread == null) { + return null; + } + return new Future[] { + new Future() { + private volatile boolean cancelled = false; + + @Override + public synchronized boolean cancel(boolean mayInterruptIfRunning) { + if (cancelled || thread.getState() == Thread.State.TERMINATED) { + return false; + } + cancelled = true; + if (mayInterruptIfRunning) { + thread.interrupt(); + } + return true; + } + + @Override + public boolean isCancelled() { + return cancelled; + } + + @Override + public boolean isDone() { + return cancelled || thread.getState() == Thread.State.TERMINATED; + } + + @Override + public Object get() throws InterruptedException, CancellationException { + try { + return get(365, TimeUnit.DAYS); + } catch (TimeoutException e) { + throw new RuntimeException(e); + } + } + + @Override + public Object get(long timeout, TimeUnit unit) + throws InterruptedException, CancellationException, TimeoutException { + if (isCancelled()) { + throw new CancellationException(); + } + long remainingNanos = unit.toNanos(timeout); + long deadline = System.nanoTime() + remainingNanos; + while (thread.getState() != Thread.State.TERMINATED) { + if (isCancelled()) { + throw new CancellationException(); + } + if (remainingNanos <= 0) { + throw new TimeoutException(); + } + long remainingMillis = TimeUnit.NANOSECONDS.toMillis(remainingNanos); + if (remainingMillis == 0) { + remainingMillis = 1; + } + + long delay = Math.min(remainingMillis, 50); + if (thread.getState() == Thread.State.NEW) { + Thread.sleep(delay); + } else { + thread.join(delay); + } + remainingNanos = deadline - System.nanoTime(); + } + return null; + } + } + }; + } } diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaDataTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaDataTest.java index 58a5a7212066..9b2b82644c35 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaDataTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaDataTest.java @@ -44,9 +44,13 @@ import java.sql.Types; import java.util.*; import java.util.concurrent.Callable; +import java.util.concurrent.CancellationException; +import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Future; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; import java.util.regex.Pattern; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -3308,4 +3312,125 @@ public void testMetadataAndResultSetMetadataTypeMappingConsistency(StandardSQLTy assertEquals( metadataTypeInfo.jdbcType, (int) resultSetType, "Type mapping mismatch for " + type); } + + @Test + public void testWrapThread_NullThread() { + assertNull(BigQueryDatabaseMetaData.wrapThread(null)); + } + + @Test + public void testWrapThread_BasicLifecycle() throws Exception { + CountDownLatch startLatch = new CountDownLatch(1); + CountDownLatch finishLatch = new CountDownLatch(1); + Thread t = + new Thread( + () -> { + try { + startLatch.countDown(); + finishLatch.await(); + } catch (InterruptedException e) { + // ignore + } + }); + + Future[] futures = BigQueryDatabaseMetaData.wrapThread(t); + assertNotNull(futures); + assertEquals(1, futures.length); + Future f = futures[0]; + + // Thread is NEW (not started yet). + assertFalse(f.isDone()); + assertFalse(f.isCancelled()); + + t.start(); + startLatch.await(); + + // Thread is running. + assertFalse(f.isDone()); + assertFalse(f.isCancelled()); + + finishLatch.countDown(); + t.join(); + + // Thread is terminated. + assertTrue(f.isDone()); + assertFalse(f.isCancelled()); + assertNull(f.get()); + } + + @Test + public void testWrapThread_CancelBeforeStart() throws Exception { + Thread t = + new Thread( + () -> { + try { + Thread.sleep(1000); + } catch (InterruptedException e) { + // ignore + } + }); + + Future f = BigQueryDatabaseMetaData.wrapThread(t)[0]; + assertTrue(f.cancel(true)); + assertTrue(f.isCancelled()); + assertTrue(f.isDone()); + + // cancel on already cancelled should return false + assertFalse(f.cancel(true)); + + assertThrows(CancellationException.class, () -> f.get()); + assertThrows(CancellationException.class, () -> f.get(1, TimeUnit.SECONDS)); + } + + @Test + public void testWrapThread_CancelRunningWithInterrupt() throws Exception { + CountDownLatch startLatch = new CountDownLatch(1); + CountDownLatch interruptedLatch = new CountDownLatch(1); + Thread t = + new Thread( + () -> { + startLatch.countDown(); + try { + Thread.sleep(10000); + } catch (InterruptedException e) { + interruptedLatch.countDown(); + } + }); + + t.start(); + startLatch.await(); + + Future f = BigQueryDatabaseMetaData.wrapThread(t)[0]; + assertTrue(f.cancel(true)); + assertTrue(f.isCancelled()); + assertTrue(f.isDone()); + + assertTrue(interruptedLatch.await(5, TimeUnit.SECONDS)); + assertThrows(CancellationException.class, () -> f.get()); + } + + @Test + public void testWrapThread_GetTimeout() throws Exception { + CountDownLatch startLatch = new CountDownLatch(1); + Thread t = + new Thread( + () -> { + startLatch.countDown(); + try { + Thread.sleep(10000); + } catch (InterruptedException e) { + // ignore + } + }); + + t.start(); + startLatch.await(); + + Future f = BigQueryDatabaseMetaData.wrapThread(t)[0]; + assertThrows(TimeoutException.class, () -> f.get(100, TimeUnit.MILLISECONDS)); + + // Cleanup: stop the thread + t.interrupt(); + t.join(); + } } From 69689c3bed1de6fe84935180e883df1f2ba9cd3a Mon Sep 17 00:00:00 2001 From: Mattie Fu Date: Thu, 18 Jun 2026 11:42:06 -0400 Subject: [PATCH 33/82] chore: add rules for basic development guidance (#13516) --- java-bigtable/AGENTS.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 java-bigtable/AGENTS.md diff --git a/java-bigtable/AGENTS.md b/java-bigtable/AGENTS.md new file mode 100644 index 000000000000..ca1830dc9201 --- /dev/null +++ b/java-bigtable/AGENTS.md @@ -0,0 +1,26 @@ +# Java Bigtable Development Guidelines + +When developing or modifying code within the `java-bigtable` directory, you must strictly follow these rules and perform these actions: + +## 1. Source Control +- **Always** pull the latest changes from the `main` branch of `git@github.com:googleapis/google-cloud-java.git` before starting work. +- Checkout a new branch for your development instead of committing directly to `main`. + +## 2. Unit Testing +- **Always write unit tests** for any new logic or modifications you implement. +- Follow **JUnit 5** conventions for writing and structuring tests (e.g., using `@Test`, `@BeforeEach`, etc., from `org.junit.jupiter.api`). +- Do not use JUnit 4 unless modifying an existing file that hasn't been migrated yet, but for new tests default to JUnit 5. + +## 3. Clean Up Imports +- After writing or updating code, **always** check that imports are properly cleaned up. +- Avoid using fully qualified class names (e.g., `x.y.z.Class`) directly inline in the code. +- Ensure all required classes are imported in the header of the Java file. +- Remove any unused imports. + +## 4. Code Formatting +- Automatically format the code using the `fmt-maven-plugin`. +- Before finalizing your changes, run the following command in the terminal from the `java-bigtable` directory or the relevant module directory: + ```bash + mvn com.spotify.fmt:fmt-maven-plugin:format + ``` +- **Troubleshooting**: If the formatting command fails, it is usually because of an incompatible JDK version. Ensure you are running it in an environment with the correct JDK version for the project (typically 17+, depending on the project configuration). From 672881620651491ef45b38d9fd14bb1a0b8bebcf Mon Sep 17 00:00:00 2001 From: Min Zhu Date: Thu, 18 Jun 2026 12:05:39 -0400 Subject: [PATCH 34/82] feat(google/cloud/agentregistry/v1): onboard a new library (#13509) Onboard agentregistry. Run commands: ``` API_PATH=google/cloud/agentregistry/v1 V=$(go run github.com/googleapis/librarian/cmd/librarian@latest config get version) go run github.com/googleapis/librarian/cmd/librarian@${V} add "${API_PATH}" go run github.com/googleapis/librarian/cmd/librarian@${V} generate agentregistry ``` b/524671742 --- gapic-libraries-bom/pom.xml | 7 + java-agentregistry/.repo-metadata.json | 16 + java-agentregistry/README.md | 207 + .../google-cloud-agentregistry-bom/pom.xml | 45 + .../google-cloud-agentregistry/pom.xml | 119 + .../agentregistry/v1/AgentRegistryClient.java | 4283 ++++++++ .../v1/AgentRegistrySettings.java | 562 ++ .../agentregistry/v1/gapic_metadata.json | 81 + .../cloud/agentregistry/v1/package-info.java | 44 + .../v1/stub/AgentRegistryStub.java | 251 + .../v1/stub/AgentRegistryStubSettings.java | 1706 ++++ .../GrpcAgentRegistryCallableFactory.java | 113 + .../v1/stub/GrpcAgentRegistryStub.java | 1012 ++ .../HttpJsonAgentRegistryCallableFactory.java | 101 + .../v1/stub/HttpJsonAgentRegistryStub.java | 1668 ++++ .../cloud/agentregistry/v1/stub/Version.java | 27 + .../reflect-config.json | 2567 +++++ .../v1/AgentRegistryClientHttpJsonTest.java | 2098 ++++ .../v1/AgentRegistryClientTest.java | 1880 ++++ .../agentregistry/v1/MockAgentRegistry.java | 59 + .../v1/MockAgentRegistryImpl.java | 458 + .../cloud/agentregistry/v1/MockLocations.java | 59 + .../agentregistry/v1/MockLocationsImpl.java | 105 + .../pom.xml | 45 + .../agentregistry/v1/AgentRegistryGrpc.java | 2775 ++++++ java-agentregistry/owlbot.py | 38 + java-agentregistry/pom.xml | 58 + .../clirr-ignored-differences.xml | 80 + .../pom.xml | 37 + .../google/cloud/agentregistry/v1/Agent.java | 8826 +++++++++++++++++ .../cloud/agentregistry/v1/AgentName.java | 223 + .../agentregistry/v1/AgentOrBuilder.java | 607 ++ .../cloud/agentregistry/v1/AgentProto.java | 214 + .../v1/AgentRegistryServiceProto.java | 679 ++ .../cloud/agentregistry/v1/Binding.java | 5460 ++++++++++ .../cloud/agentregistry/v1/BindingName.java | 223 + .../agentregistry/v1/BindingOrBuilder.java | 325 + .../cloud/agentregistry/v1/BindingProto.java | 164 + .../v1/CreateBindingRequest.java | 1444 +++ .../v1/CreateBindingRequestOrBuilder.java | 193 + .../v1/CreateServiceRequest.java | 1449 +++ .../v1/CreateServiceRequestOrBuilder.java | 194 + .../v1/DeleteBindingRequest.java | 905 ++ .../v1/DeleteBindingRequestOrBuilder.java | 114 + .../v1/DeleteServiceRequest.java | 905 ++ .../v1/DeleteServiceRequestOrBuilder.java | 114 + .../cloud/agentregistry/v1/Endpoint.java | 2855 ++++++ .../cloud/agentregistry/v1/EndpointName.java | 223 + .../agentregistry/v1/EndpointOrBuilder.java | 383 + .../cloud/agentregistry/v1/EndpointProto.java | 139 + .../v1/FetchAvailableBindingsRequest.java | 1634 +++ ...etchAvailableBindingsRequestOrBuilder.java | 207 + .../v1/FetchAvailableBindingsResponse.java | 1119 +++ ...tchAvailableBindingsResponseOrBuilder.java | 110 + .../agentregistry/v1/GetAgentRequest.java | 610 ++ .../v1/GetAgentRequestOrBuilder.java | 58 + .../agentregistry/v1/GetBindingRequest.java | 617 ++ .../v1/GetBindingRequestOrBuilder.java | 60 + .../agentregistry/v1/GetEndpointRequest.java | 617 ++ .../v1/GetEndpointRequestOrBuilder.java | 60 + .../agentregistry/v1/GetMcpServerRequest.java | 611 ++ .../v1/GetMcpServerRequestOrBuilder.java | 58 + .../agentregistry/v1/GetServiceRequest.java | 617 ++ .../v1/GetServiceRequestOrBuilder.java | 60 + .../cloud/agentregistry/v1/Interface.java | 967 ++ .../agentregistry/v1/InterfaceOrBuilder.java | 84 + .../agentregistry/v1/ListAgentsRequest.java | 1278 +++ .../v1/ListAgentsRequestOrBuilder.java | 150 + .../agentregistry/v1/ListAgentsResponse.java | 1110 +++ .../v1/ListAgentsResponseOrBuilder.java | 110 + .../agentregistry/v1/ListBindingsRequest.java | 1297 +++ .../v1/ListBindingsRequestOrBuilder.java | 155 + .../v1/ListBindingsResponse.java | 1172 +++ .../v1/ListBindingsResponseOrBuilder.java | 124 + .../v1/ListEndpointsRequest.java | 1181 +++ .../v1/ListEndpointsRequestOrBuilder.java | 150 + .../v1/ListEndpointsResponse.java | 1174 +++ .../v1/ListEndpointsResponseOrBuilder.java | 124 + .../v1/ListMcpServersRequest.java | 1286 +++ .../v1/ListMcpServersRequestOrBuilder.java | 152 + .../v1/ListMcpServersResponse.java | 1114 +++ .../v1/ListMcpServersResponseOrBuilder.java | 110 + .../agentregistry/v1/ListServicesRequest.java | 1174 +++ .../v1/ListServicesRequestOrBuilder.java | 148 + .../v1/ListServicesResponse.java | 1172 +++ .../v1/ListServicesResponseOrBuilder.java | 124 + .../cloud/agentregistry/v1/LocationName.java | 192 + .../cloud/agentregistry/v1/McpServer.java | 5725 +++++++++++ .../cloud/agentregistry/v1/McpServerName.java | 223 + .../agentregistry/v1/McpServerOrBuilder.java | 454 + .../agentregistry/v1/McpServerProto.java | 177 + .../agentregistry/v1/OperationMetadata.java | 1873 ++++ .../v1/OperationMetadataOrBuilder.java | 230 + .../agentregistry/v1/PropertiesProto.java | 96 + .../agentregistry/v1/SearchAgentsRequest.java | 1382 +++ .../v1/SearchAgentsRequestOrBuilder.java | 207 + .../v1/SearchAgentsResponse.java | 1125 +++ .../v1/SearchAgentsResponseOrBuilder.java | 114 + .../v1/SearchMcpServersRequest.java | 1361 +++ .../v1/SearchMcpServersRequestOrBuilder.java | 201 + .../v1/SearchMcpServersResponse.java | 1128 +++ .../v1/SearchMcpServersResponseOrBuilder.java | 114 + .../cloud/agentregistry/v1/Service.java | 6841 +++++++++++++ .../cloud/agentregistry/v1/ServiceName.java | 223 + .../agentregistry/v1/ServiceOrBuilder.java | 434 + .../cloud/agentregistry/v1/ServiceProto.java | 191 + .../v1/UpdateBindingRequest.java | 1359 +++ .../v1/UpdateBindingRequestOrBuilder.java | 180 + .../v1/UpdateServiceRequest.java | 1371 +++ .../v1/UpdateServiceRequestOrBuilder.java | 183 + .../google/cloud/agentregistry/v1/agent.proto | 168 + .../v1/agentregistry_service.proto | 934 ++ .../cloud/agentregistry/v1/binding.proto | 120 + .../cloud/agentregistry/v1/endpoint.proto | 75 + .../cloud/agentregistry/v1/mcp_server.proto | 120 + .../cloud/agentregistry/v1/properties.proto | 51 + .../cloud/agentregistry/v1/service.proto | 154 + .../SyncCreateSetCredentialsProvider.java | 44 + .../create/SyncCreateSetEndpoint.java | 41 + .../SyncCreateUseHttpJsonTransport.java | 40 + .../createbinding/AsyncCreateBinding.java | 53 + .../createbinding/AsyncCreateBindingLRO.java | 54 + .../createbinding/SyncCreateBinding.java | 49 + ...reateBindingLocationnameBindingString.java | 44 + .../SyncCreateBindingStringBindingString.java | 44 + .../createservice/AsyncCreateService.java | 53 + .../createservice/AsyncCreateServiceLRO.java | 54 + .../createservice/SyncCreateService.java | 49 + ...reateServiceLocationnameServiceString.java | 44 + .../SyncCreateServiceStringServiceString.java | 44 + .../deletebinding/AsyncDeleteBinding.java | 50 + .../deletebinding/AsyncDeleteBindingLRO.java | 52 + .../deletebinding/SyncDeleteBinding.java | 47 + .../SyncDeleteBindingBindingname.java | 42 + .../SyncDeleteBindingString.java | 42 + .../deleteservice/AsyncDeleteService.java | 50 + .../deleteservice/AsyncDeleteServiceLRO.java | 52 + .../deleteservice/SyncDeleteService.java | 47 + .../SyncDeleteServiceServicename.java | 42 + .../SyncDeleteServiceString.java | 42 + .../AsyncFetchAvailableBindings.java | 54 + .../AsyncFetchAvailableBindingsPaged.java | 62 + .../SyncFetchAvailableBindings.java | 50 + ...yncFetchAvailableBindingsLocationname.java | 44 + .../SyncFetchAvailableBindingsString.java | 44 + .../agentregistry/getagent/AsyncGetAgent.java | 49 + .../agentregistry/getagent/SyncGetAgent.java | 46 + .../getagent/SyncGetAgentAgentname.java | 42 + .../getagent/SyncGetAgentString.java | 42 + .../getbinding/AsyncGetBinding.java | 49 + .../getbinding/SyncGetBinding.java | 46 + .../getbinding/SyncGetBindingBindingname.java | 42 + .../getbinding/SyncGetBindingString.java | 42 + .../getendpoint/AsyncGetEndpoint.java | 49 + .../getendpoint/SyncGetEndpoint.java | 46 + .../SyncGetEndpointEndpointname.java | 42 + .../getendpoint/SyncGetEndpointString.java | 42 + .../getlocation/AsyncGetLocation.java | 45 + .../getlocation/SyncGetLocation.java | 42 + .../getmcpserver/AsyncGetMcpServer.java | 49 + .../getmcpserver/SyncGetMcpServer.java | 46 + .../SyncGetMcpServerMcpservername.java | 42 + .../getmcpserver/SyncGetMcpServerString.java | 42 + .../getservice/AsyncGetService.java | 49 + .../getservice/SyncGetService.java | 46 + .../getservice/SyncGetServiceServicename.java | 42 + .../getservice/SyncGetServiceString.java | 42 + .../listagents/AsyncListAgents.java | 55 + .../listagents/AsyncListAgentsPaged.java | 63 + .../listagents/SyncListAgents.java | 52 + .../SyncListAgentsLocationname.java | 44 + .../listagents/SyncListAgentsString.java | 44 + .../listbindings/AsyncListBindings.java | 56 + .../listbindings/AsyncListBindingsPaged.java | 63 + .../listbindings/SyncListBindings.java | 52 + .../SyncListBindingsLocationname.java | 44 + .../listbindings/SyncListBindingsString.java | 44 + .../listendpoints/AsyncListEndpoints.java | 55 + .../AsyncListEndpointsPaged.java | 62 + .../listendpoints/SyncListEndpoints.java | 51 + .../SyncListEndpointsLocationname.java | 44 + .../SyncListEndpointsString.java | 44 + .../listlocations/AsyncListLocations.java | 54 + .../AsyncListLocationsPaged.java | 61 + .../listlocations/SyncListLocations.java | 50 + .../listmcpservers/AsyncListMcpServers.java | 56 + .../AsyncListMcpServersPaged.java | 64 + .../listmcpservers/SyncListMcpServers.java | 52 + .../SyncListMcpServersLocationname.java | 44 + .../SyncListMcpServersString.java | 44 + .../listservices/AsyncListServices.java | 55 + .../listservices/AsyncListServicesPaged.java | 62 + .../listservices/SyncListServices.java | 51 + .../SyncListServicesLocationname.java | 44 + .../listservices/SyncListServicesString.java | 44 + .../searchagents/AsyncSearchAgents.java | 54 + .../searchagents/AsyncSearchAgentsPaged.java | 62 + .../searchagents/SyncSearchAgents.java | 51 + .../SyncSearchAgentsLocationname.java | 44 + .../searchagents/SyncSearchAgentsString.java | 44 + .../AsyncSearchMcpServers.java | 55 + .../AsyncSearchMcpServersPaged.java | 63 + .../SyncSearchMcpServers.java | 51 + .../SyncSearchMcpServersLocationname.java | 44 + .../SyncSearchMcpServersString.java | 44 + .../updatebinding/AsyncUpdateBinding.java | 52 + .../updatebinding/AsyncUpdateBindingLRO.java | 53 + .../updatebinding/SyncUpdateBinding.java | 48 + .../SyncUpdateBindingBindingFieldmask.java | 43 + .../updateservice/AsyncUpdateService.java | 52 + .../updateservice/AsyncUpdateServiceLRO.java | 53 + .../updateservice/SyncUpdateService.java | 48 + .../SyncUpdateServiceServiceFieldmask.java | 43 + .../createservice/SyncCreateService.java | 53 + .../getagent/SyncGetAgent.java | 55 + .../createservice/SyncCreateService.java | 54 + .../getagent/SyncGetAgent.java | 56 + librarian.yaml | 7 + pom.xml | 1 + versions.txt | 5 + 220 files changed, 98844 insertions(+) create mode 100644 java-agentregistry/.repo-metadata.json create mode 100644 java-agentregistry/README.md create mode 100644 java-agentregistry/google-cloud-agentregistry-bom/pom.xml create mode 100644 java-agentregistry/google-cloud-agentregistry/pom.xml create mode 100644 java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryClient.java create mode 100644 java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistrySettings.java create mode 100644 java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/gapic_metadata.json create mode 100644 java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/package-info.java create mode 100644 java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStub.java create mode 100644 java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStubSettings.java create mode 100644 java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/GrpcAgentRegistryCallableFactory.java create mode 100644 java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/GrpcAgentRegistryStub.java create mode 100644 java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/HttpJsonAgentRegistryCallableFactory.java create mode 100644 java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/HttpJsonAgentRegistryStub.java create mode 100644 java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/Version.java create mode 100644 java-agentregistry/google-cloud-agentregistry/src/main/resources/META-INF/native-image/com.google.cloud.agentregistry.v1/reflect-config.json create mode 100644 java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/AgentRegistryClientHttpJsonTest.java create mode 100644 java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/AgentRegistryClientTest.java create mode 100644 java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockAgentRegistry.java create mode 100644 java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockAgentRegistryImpl.java create mode 100644 java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockLocations.java create mode 100644 java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockLocationsImpl.java create mode 100644 java-agentregistry/grpc-google-cloud-agentregistry-v1/pom.xml create mode 100644 java-agentregistry/grpc-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryGrpc.java create mode 100755 java-agentregistry/owlbot.py create mode 100644 java-agentregistry/pom.xml create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/clirr-ignored-differences.xml create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/pom.xml create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Agent.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentName.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentProto.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryServiceProto.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Binding.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/BindingName.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/BindingOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/BindingProto.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateBindingRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateBindingRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateServiceRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateServiceRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteBindingRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteBindingRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteServiceRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteServiceRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Endpoint.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointName.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointProto.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FetchAvailableBindingsRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FetchAvailableBindingsRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FetchAvailableBindingsResponse.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FetchAvailableBindingsResponseOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAgentRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAgentRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetBindingRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetBindingRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetEndpointRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetEndpointRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetMcpServerRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetMcpServerRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetServiceRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetServiceRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Interface.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/InterfaceOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAgentsRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAgentsRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAgentsResponse.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAgentsResponseOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListBindingsRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListBindingsRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListBindingsResponse.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListBindingsResponseOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListEndpointsRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListEndpointsRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListEndpointsResponse.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListEndpointsResponseOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListMcpServersRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListMcpServersRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListMcpServersResponse.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListMcpServersResponseOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListServicesRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListServicesRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListServicesResponse.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListServicesResponseOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/LocationName.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServer.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerName.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerProto.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/OperationMetadata.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/OperationMetadataOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/PropertiesProto.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsResponse.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsResponseOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchMcpServersRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchMcpServersRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchMcpServersResponse.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchMcpServersResponseOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Service.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceName.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceProto.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateBindingRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateBindingRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateServiceRequest.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateServiceRequestOrBuilder.java create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/agent.proto create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/agentregistry_service.proto create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/binding.proto create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/endpoint.proto create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/mcp_server.proto create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/properties.proto create mode 100644 java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/service.proto create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/create/SyncCreateSetEndpoint.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/AsyncCreateBinding.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/AsyncCreateBindingLRO.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/SyncCreateBinding.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/SyncCreateBindingLocationnameBindingString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/SyncCreateBindingStringBindingString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/AsyncCreateService.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/AsyncCreateServiceLRO.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/SyncCreateService.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/SyncCreateServiceLocationnameServiceString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/SyncCreateServiceStringServiceString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/AsyncDeleteBinding.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/AsyncDeleteBindingLRO.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/SyncDeleteBinding.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/SyncDeleteBindingBindingname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/SyncDeleteBindingString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/AsyncDeleteService.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/AsyncDeleteServiceLRO.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/SyncDeleteService.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/SyncDeleteServiceServicename.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/SyncDeleteServiceString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/AsyncFetchAvailableBindings.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/AsyncFetchAvailableBindingsPaged.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/SyncFetchAvailableBindings.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/SyncFetchAvailableBindingsLocationname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/SyncFetchAvailableBindingsString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/AsyncGetAgent.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgent.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgentAgentname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgentString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getbinding/AsyncGetBinding.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getbinding/SyncGetBinding.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getbinding/SyncGetBindingBindingname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getbinding/SyncGetBindingString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/AsyncGetEndpoint.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpoint.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpointEndpointname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpointString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getlocation/AsyncGetLocation.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getlocation/SyncGetLocation.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/AsyncGetMcpServer.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServer.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServerMcpservername.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServerString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getservice/AsyncGetService.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getservice/SyncGetService.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getservice/SyncGetServiceServicename.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getservice/SyncGetServiceString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/AsyncListAgents.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/AsyncListAgentsPaged.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/SyncListAgents.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/SyncListAgentsLocationname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/SyncListAgentsString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/AsyncListBindings.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/AsyncListBindingsPaged.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/SyncListBindings.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/SyncListBindingsLocationname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/SyncListBindingsString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/AsyncListEndpoints.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/AsyncListEndpointsPaged.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/SyncListEndpoints.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/SyncListEndpointsLocationname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/SyncListEndpointsString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listlocations/AsyncListLocations.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listlocations/AsyncListLocationsPaged.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listlocations/SyncListLocations.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/AsyncListMcpServers.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/AsyncListMcpServersPaged.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/SyncListMcpServers.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/SyncListMcpServersLocationname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/SyncListMcpServersString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/AsyncListServices.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/AsyncListServicesPaged.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/SyncListServices.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/SyncListServicesLocationname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/SyncListServicesString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/AsyncSearchAgents.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/AsyncSearchAgentsPaged.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/SyncSearchAgents.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/SyncSearchAgentsLocationname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/SyncSearchAgentsString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/AsyncSearchMcpServers.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/AsyncSearchMcpServersPaged.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/SyncSearchMcpServers.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/SyncSearchMcpServersLocationname.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/SyncSearchMcpServersString.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updatebinding/AsyncUpdateBinding.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updatebinding/AsyncUpdateBindingLRO.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updatebinding/SyncUpdateBinding.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updatebinding/SyncUpdateBindingBindingFieldmask.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateservice/AsyncUpdateService.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateservice/AsyncUpdateServiceLRO.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateservice/SyncUpdateService.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateservice/SyncUpdateServiceServiceFieldmask.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistrysettings/createservice/SyncCreateService.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistrysettings/getagent/SyncGetAgent.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/stub/agentregistrystubsettings/createservice/SyncCreateService.java create mode 100644 java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/stub/agentregistrystubsettings/getagent/SyncGetAgent.java diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index 4df82569ba73..abf38236727a 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -56,6 +56,13 @@ pom import + + com.google.cloud + google-cloud-agentregistry-bom + 0.1.0-SNAPSHOT + pom + import + com.google.cloud google-cloud-aiplatform-bom diff --git a/java-agentregistry/.repo-metadata.json b/java-agentregistry/.repo-metadata.json new file mode 100644 index 000000000000..3a25ccc9bbac --- /dev/null +++ b/java-agentregistry/.repo-metadata.json @@ -0,0 +1,16 @@ +{ + "api_shortname": "agentregistry", + "name_pretty": "Agent Registry", + "product_documentation": "https://docs.cloud.google.com/agent-registry/overview", + "api_description": "Agent Registry is a centralized, unified catalog that lets you store,\ndiscover, and govern Model Context Protocol (MCP) servers, tools, and AI\nagents within Google Cloud.", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-agentregistry/latest/overview", + "release_level": "preview", + "transport": "both", + "language": "java", + "repo": "googleapis/google-cloud-java", + "repo_short": "java-agentregistry", + "distribution_name": "com.google.cloud:google-cloud-agentregistry", + "api_id": "agentregistry.googleapis.com", + "library_type": "GAPIC_AUTO", + "requires_billing": true +} \ No newline at end of file diff --git a/java-agentregistry/README.md b/java-agentregistry/README.md new file mode 100644 index 000000000000..64496d92e1c3 --- /dev/null +++ b/java-agentregistry/README.md @@ -0,0 +1,207 @@ +# Google Agent Registry Client for Java + +Java idiomatic client for [Agent Registry][product-docs]. + +[![Maven][maven-version-image]][maven-version-link] +![Stability][stability-image] + +- [Product Documentation][product-docs] +- [Client Library Documentation][javadocs] + +> Note: This client is a work-in-progress, and may occasionally +> make backwards-incompatible changes. + + +## Quickstart + + +If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: + +```xml + + + + com.google.cloud + libraries-bom + 26.83.0 + pom + import + + + + + + + com.google.cloud + google-cloud-agentregistry + + +``` + +If you are using Maven without the BOM, add this to your dependencies: + + +```xml + + com.google.cloud + google-cloud-agentregistry + 0.0.0 + +``` + +If you are using Gradle without BOM, add this to your dependencies: + +```Groovy +implementation 'com.google.cloud:google-cloud-agentregistry:0.0.0' +``` + +If you are using SBT, add this to your dependencies: + +```Scala +libraryDependencies += "com.google.cloud" % "google-cloud-agentregistry" % "0.0.0" +``` + +## Authentication + +See the [Authentication][authentication] section in the base directory's README. + +## Authorization + +The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired Agent Registry APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Agent Registry API calls. + +## Getting Started + +### Prerequisites + +You will need a [Google Cloud Platform Console][developer-console] project with the Agent Registry [API enabled][enable-api]. +You will need to [enable billing][enable-billing] to use Google Agent Registry. +[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by +[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: +`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. + +### Installation and setup + +You'll need to obtain the `google-cloud-agentregistry` library. See the [Quickstart](#quickstart) section +to add `google-cloud-agentregistry` as a dependency in your code. + +## About Agent Registry + + +[Agent Registry][product-docs] Agent Registry is a centralized, unified catalog that lets you store, +discover, and govern Model Context Protocol (MCP) servers, tools, and AI +agents within Google Cloud. + +See the [Agent Registry client library docs][javadocs] to learn how to +use this Agent Registry Client Library. + + + + + + +## Troubleshooting + +To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. + +## Transport + +Agent Registry uses both gRPC and HTTP/JSON for the transport layer. + +## Supported Java Versions + +Java 8 or above is required for using this client. + +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development + +In general, new feature development occurs with support for the lowest Java +LTS version covered by Oracle's Premier Support (which typically lasts 5 years +from initial General Availability). If the minimum required JVM for a given +library is changed, it is accompanied by a [semver][semver] major release. + +Java 11 and (in September 2021) Java 17 are the best choices for new +development. + +### Keeping production systems current + +Google tests its client libraries with all current LTS versions covered by +Oracle's Extended Support (which typically lasts 8 years from initial +General Availability). + +#### Legacy support + +Google's client libraries support legacy versions of Java runtimes with long +term stable libraries that don't receive feature updates on a best efforts basis +as it may not be possible to backport all patches. + +Google provides updates on a best efforts basis to apps that continue to use +Java 7, though apps might need to upgrade to current versions of the library +that supports their JVM. + +#### Where to find specific information + +The latest versions and the supported Java versions are identified on +the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` +and on [google-cloud-java][g-c-j]. + +## Versioning + + +This library follows [Semantic Versioning](http://semver.org/). + + +It is currently in major version zero (``0.y.z``), which means that anything may change at any time +and the public API should not be considered stable. + + +## Contributing + + +Contributions to this library are always welcome and highly encouraged. + +See [CONTRIBUTING][contributing] for more information how to get started. + +Please note that this project is released with a Contributor Code of Conduct. By participating in +this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more +information. + + +## License + +Apache 2.0 - See [LICENSE][license] for more information. + +Java is a registered trademark of Oracle and/or its affiliates. + +[product-docs]: https://docs.cloud.google.com/agent-registry/overview +[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-agentregistry/latest/overview +[stability-image]: https://img.shields.io/badge/stability-preview-yellow +[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-agentregistry.svg +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-agentregistry/0.0.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 +[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy +[developer-console]: https://console.developers.google.com/ +[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects +[cloud-cli]: https://cloud.google.com/cli +[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md +[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing +[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=agentregistry.googleapis.com +[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png + +[semver]: https://semver.org/ +[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained +[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries +[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html +[g-c-j]: http://github.com/googleapis/google-cloud-java diff --git a/java-agentregistry/google-cloud-agentregistry-bom/pom.xml b/java-agentregistry/google-cloud-agentregistry-bom/pom.xml new file mode 100644 index 000000000000..14a75375df8a --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry-bom/pom.xml @@ -0,0 +1,45 @@ + + + 4.0.0 + com.google.cloud + google-cloud-agentregistry-bom + 0.1.0-SNAPSHOT + pom + + com.google.cloud + google-cloud-pom-parent + 1.88.0-SNAPSHOT + ../../google-cloud-pom-parent/pom.xml + + + Google Agent Registry BOM + + BOM for Agent Registry + + + + true + + + + + + + com.google.cloud + google-cloud-agentregistry + 0.1.0-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-agentregistry-v1 + 0.1.0-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-agentregistry-v1 + 0.1.0-SNAPSHOT + + + + + \ No newline at end of file diff --git a/java-agentregistry/google-cloud-agentregistry/pom.xml b/java-agentregistry/google-cloud-agentregistry/pom.xml new file mode 100644 index 000000000000..74c789dbd674 --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry/pom.xml @@ -0,0 +1,119 @@ + + + 4.0.0 + com.google.cloud + google-cloud-agentregistry + 0.1.0-SNAPSHOT + jar + Google Agent Registry + Agent Registry Agent Registry is a centralized, unified catalog that lets you store, +discover, and govern Model Context Protocol (MCP) servers, tools, and AI +agents within Google Cloud. + + com.google.cloud + google-cloud-agentregistry-parent + 0.1.0-SNAPSHOT + + + google-cloud-agentregistry + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.api + api-common + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + + com.google.api.grpc + proto-google-cloud-agentregistry-v1 + + + + com.google.guava + guava + + + com.google.api + gax + + + com.google.api + gax-grpc + + + com.google.api + gax-httpjson + + + com.google.api.grpc + proto-google-iam-v1 + + + org.threeten + threetenbp + + + + + com.google.api.grpc + grpc-google-common-protos + test + + + com.google.api.grpc + grpc-google-iam-v1 + test + + + junit + junit + test + + + + com.google.api.grpc + grpc-google-cloud-agentregistry-v1 + test + + + + + com.google.api + gax + testlib + test + + + com.google.api + gax-grpc + testlib + test + + + com.google.api + gax-httpjson + testlib + test + + + \ No newline at end of file diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryClient.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryClient.java new file mode 100644 index 000000000000..daa0139ea6b8 --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryClient.java @@ -0,0 +1,4283 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.agentregistry.v1.stub.AgentRegistryStub; +import com.google.cloud.agentregistry.v1.stub.AgentRegistryStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +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; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service for managing Agents, Endpoints, McpServers, Services, and Bindings. + * + *

            This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            + *   AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
            + *   Agent response = agentRegistryClient.getAgent(name);
            + * }
            + * }
            + * + *

            Note: close() needs to be called on the AgentRegistryClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
            Methods
            MethodDescriptionMethod Variants

            ListAgents

            Lists Agents in a given project and location.

            + *

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

            + *
              + *
            • listAgents(ListAgentsRequest request) + *

            + *

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

            + *
              + *
            • listAgents(LocationName parent) + *

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

            + *
              + *
            • listAgentsPagedCallable() + *

            • listAgentsCallable() + *

            + *

            SearchAgents

            Searches Agents in a given project and location.

            + *

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

            + *
              + *
            • searchAgents(SearchAgentsRequest request) + *

            + *

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

            + *
              + *
            • searchAgents(LocationName parent) + *

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

            + *
              + *
            • searchAgentsPagedCallable() + *

            • searchAgentsCallable() + *

            + *

            GetAgent

            Gets details of a single Agent.

            + *

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

            + *
              + *
            • getAgent(GetAgentRequest request) + *

            + *

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

            + *
              + *
            • getAgent(AgentName name) + *

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

            + *
              + *
            • getAgentCallable() + *

            + *

            ListEndpoints

            Lists Endpoints in a given project and location.

            + *

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

            + *
              + *
            • listEndpoints(ListEndpointsRequest request) + *

            + *

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

            + *
              + *
            • listEndpoints(LocationName parent) + *

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

            + *
              + *
            • listEndpointsPagedCallable() + *

            • listEndpointsCallable() + *

            + *

            GetEndpoint

            Gets details of a single Endpoint.

            + *

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

            + *
              + *
            • getEndpoint(GetEndpointRequest request) + *

            + *

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

            + *
              + *
            • getEndpoint(EndpointName name) + *

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

            + *
              + *
            • getEndpointCallable() + *

            + *

            ListMcpServers

            Lists McpServers in a given project and location.

            + *

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

            + *
              + *
            • listMcpServers(ListMcpServersRequest request) + *

            + *

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

            + *
              + *
            • listMcpServers(LocationName parent) + *

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

            + *
              + *
            • listMcpServersPagedCallable() + *

            • listMcpServersCallable() + *

            + *

            SearchMcpServers

            Searches McpServers in a given project and location.

            + *

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

            + *
              + *
            • searchMcpServers(SearchMcpServersRequest request) + *

            + *

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

            + *
              + *
            • searchMcpServers(LocationName parent) + *

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

            + *
              + *
            • searchMcpServersPagedCallable() + *

            • searchMcpServersCallable() + *

            + *

            GetMcpServer

            Gets details of a single McpServer.

            + *

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

            + *
              + *
            • getMcpServer(GetMcpServerRequest request) + *

            + *

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

            + *
              + *
            • getMcpServer(McpServerName name) + *

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

            + *
              + *
            • getMcpServerCallable() + *

            + *

            ListServices

            Lists Services in a given project and location.

            + *

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

            + *
              + *
            • listServices(ListServicesRequest request) + *

            + *

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

            + *
              + *
            • listServices(LocationName parent) + *

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

            + *
              + *
            • listServicesPagedCallable() + *

            • listServicesCallable() + *

            + *

            GetService

            Gets details of a single Service.

            + *

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

            + *
              + *
            • getService(GetServiceRequest request) + *

            + *

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

            + *
              + *
            • getService(ServiceName name) + *

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

            + *
              + *
            • getServiceCallable() + *

            + *

            CreateService

            Creates a new Service in a given project and location.

            + *

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

            + *
              + *
            • createServiceAsync(CreateServiceRequest request) + *

            + *

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

            + *
              + *
            • createServiceAsync(LocationName parent, Service service, String serviceId) + *

            • createServiceAsync(String parent, Service service, String serviceId) + *

            + *

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

            + *
              + *
            • createServiceOperationCallable() + *

            • createServiceCallable() + *

            + *

            UpdateService

            Updates the parameters of a single Service.

            + *

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

            + *
              + *
            • updateServiceAsync(UpdateServiceRequest request) + *

            + *

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

            + *
              + *
            • updateServiceAsync(Service service, 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.

            + *
              + *
            • updateServiceOperationCallable() + *

            • updateServiceCallable() + *

            + *

            DeleteService

            Deletes a single Service.

            + *

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

            + *
              + *
            • deleteServiceAsync(DeleteServiceRequest request) + *

            + *

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

            + *
              + *
            • deleteServiceAsync(ServiceName name) + *

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

            + *
              + *
            • deleteServiceOperationCallable() + *

            • deleteServiceCallable() + *

            + *

            ListBindings

            Lists Bindings in a given project and location.

            + *

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

            + *
              + *
            • listBindings(ListBindingsRequest request) + *

            + *

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

            + *
              + *
            • listBindings(LocationName parent) + *

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

            + *
              + *
            • listBindingsPagedCallable() + *

            • listBindingsCallable() + *

            + *

            GetBinding

            Gets details of a single Binding.

            + *

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

            + *
              + *
            • getBinding(GetBindingRequest request) + *

            + *

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

            + *
              + *
            • getBinding(BindingName name) + *

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

            + *
              + *
            • getBindingCallable() + *

            + *

            CreateBinding

            Creates a new Binding in a given project and location.

            + *

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

            + *
              + *
            • createBindingAsync(CreateBindingRequest request) + *

            + *

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

            + *
              + *
            • createBindingAsync(LocationName parent, Binding binding, String bindingId) + *

            • createBindingAsync(String parent, Binding binding, String bindingId) + *

            + *

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

            + *
              + *
            • createBindingOperationCallable() + *

            • createBindingCallable() + *

            + *

            UpdateBinding

            Updates the parameters of a single Binding.

            + *

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

            + *
              + *
            • updateBindingAsync(UpdateBindingRequest request) + *

            + *

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

            + *
              + *
            • updateBindingAsync(Binding binding, 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.

            + *
              + *
            • updateBindingOperationCallable() + *

            • updateBindingCallable() + *

            + *

            DeleteBinding

            Deletes a single Binding.

            + *

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

            + *
              + *
            • deleteBindingAsync(DeleteBindingRequest request) + *

            + *

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

            + *
              + *
            • deleteBindingAsync(BindingName name) + *

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

            + *
              + *
            • deleteBindingOperationCallable() + *

            • deleteBindingCallable() + *

            + *

            FetchAvailableBindings

            Fetches available Bindings.

            + *

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

            + *
              + *
            • fetchAvailableBindings(FetchAvailableBindingsRequest request) + *

            + *

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

            + *
              + *
            • fetchAvailableBindings(LocationName parent) + *

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

            + *
              + *
            • fetchAvailableBindingsPagedCallable() + *

            • fetchAvailableBindingsCallable() + *

            + *

            ListLocations

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

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

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

            + *

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

            + *
              + *
            • listLocations(ListLocationsRequest request) + *

            + *

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

            + *
              + *
            • listLocationsPagedCallable() + *

            • listLocationsCallable() + *

            + *

            GetLocation

            Gets information about a location.

            + *

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

            + *
              + *
            • getLocation(GetLocationRequest request) + *

            + *

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

            + *
              + *
            • getLocationCallable() + *

            + *
            + * + *

            See the individual methods for example code. + * + *

            Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

            This class can be customized by passing in a custom instance of AgentRegistrySettings to + * create(). For example: + * + *

            To customize credentials: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * AgentRegistrySettings agentRegistrySettings =
            + *     AgentRegistrySettings.newBuilder()
            + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
            + *         .build();
            + * AgentRegistryClient agentRegistryClient = AgentRegistryClient.create(agentRegistrySettings);
            + * }
            + * + *

            To customize the endpoint: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * AgentRegistrySettings agentRegistrySettings =
            + *     AgentRegistrySettings.newBuilder().setEndpoint(myEndpoint).build();
            + * AgentRegistryClient agentRegistryClient = AgentRegistryClient.create(agentRegistrySettings);
            + * }
            + * + *

            To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * AgentRegistrySettings agentRegistrySettings =
            + *     AgentRegistrySettings.newHttpJsonBuilder().build();
            + * AgentRegistryClient agentRegistryClient = AgentRegistryClient.create(agentRegistrySettings);
            + * }
            + * + *

            Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class AgentRegistryClient implements BackgroundResource { + private final AgentRegistrySettings settings; + private final AgentRegistryStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of AgentRegistryClient with default settings. */ + public static final AgentRegistryClient create() throws IOException { + return create(AgentRegistrySettings.newBuilder().build()); + } + + /** + * Constructs an instance of AgentRegistryClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final AgentRegistryClient create(AgentRegistrySettings settings) + throws IOException { + return new AgentRegistryClient(settings); + } + + /** + * Constructs an instance of AgentRegistryClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(AgentRegistrySettings). + */ + public static final AgentRegistryClient create(AgentRegistryStub stub) { + return new AgentRegistryClient(stub); + } + + /** + * Constructs an instance of AgentRegistryClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected AgentRegistryClient(AgentRegistrySettings settings) throws IOException { + this.settings = settings; + this.stub = ((AgentRegistryStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected AgentRegistryClient(AgentRegistryStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final AgentRegistrySettings getSettings() { + return settings; + } + + public AgentRegistryStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Agents 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   for (Agent element : agentRegistryClient.listAgents(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. Parent value for ListAgentsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAgentsPagedResponse listAgents(LocationName parent) { + ListAgentsRequest request = + ListAgentsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); + return listAgents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Agents 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   for (Agent element : agentRegistryClient.listAgents(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. Parent value for ListAgentsRequest + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAgentsPagedResponse listAgents(String parent) { + ListAgentsRequest request = ListAgentsRequest.newBuilder().setParent(parent).build(); + return listAgents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Agents 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ListAgentsRequest request =
            +   *       ListAgentsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .build();
            +   *   for (Agent element : agentRegistryClient.listAgents(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 ListAgentsPagedResponse listAgents(ListAgentsRequest request) { + return listAgentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Agents 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ListAgentsRequest request =
            +   *       ListAgentsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .build();
            +   *   ApiFuture future = agentRegistryClient.listAgentsPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (Agent element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable listAgentsPagedCallable() { + return stub.listAgentsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Agents 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ListAgentsRequest request =
            +   *       ListAgentsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .build();
            +   *   while (true) {
            +   *     ListAgentsResponse response = agentRegistryClient.listAgentsCallable().call(request);
            +   *     for (Agent element : response.getAgentsList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable listAgentsCallable() { + return stub.listAgentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Agents 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   for (Agent element : agentRegistryClient.searchAgents(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. Parent value for SearchAgentsRequest. Format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchAgentsPagedResponse searchAgents(LocationName parent) { + SearchAgentsRequest request = + SearchAgentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return searchAgents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Agents 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   for (Agent element : agentRegistryClient.searchAgents(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. Parent value for SearchAgentsRequest. Format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchAgentsPagedResponse searchAgents(String parent) { + SearchAgentsRequest request = SearchAgentsRequest.newBuilder().setParent(parent).build(); + return searchAgents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Agents 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   SearchAgentsRequest request =
            +   *       SearchAgentsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setSearchString("searchString120312793")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   for (Agent element : agentRegistryClient.searchAgents(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 SearchAgentsPagedResponse searchAgents(SearchAgentsRequest request) { + return searchAgentsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Agents 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   SearchAgentsRequest request =
            +   *       SearchAgentsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setSearchString("searchString120312793")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   ApiFuture future = agentRegistryClient.searchAgentsPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (Agent element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + searchAgentsPagedCallable() { + return stub.searchAgentsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches Agents 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   SearchAgentsRequest request =
            +   *       SearchAgentsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setSearchString("searchString120312793")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   while (true) {
            +   *     SearchAgentsResponse response = agentRegistryClient.searchAgentsCallable().call(request);
            +   *     for (Agent element : response.getAgentsList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable searchAgentsCallable() { + return stub.searchAgentsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Agent. + * + *

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   GetAgentRequest request =
            +   *       GetAgentRequest.newBuilder()
            +   *           .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
            +   *           .build();
            +   *   Agent response = agentRegistryClient.getAgent(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 Agent getAgent(GetAgentRequest request) { + return getAgentCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Agent. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   GetAgentRequest request =
            +   *       GetAgentRequest.newBuilder()
            +   *           .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString())
            +   *           .build();
            +   *   ApiFuture future = agentRegistryClient.getAgentCallable().futureCall(request);
            +   *   // Do something.
            +   *   Agent response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable getAgentCallable() { + return stub.getAgentCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Endpoints 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   for (Endpoint element : agentRegistryClient.listEndpoints(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The project and location to list endpoints in. Expected format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEndpointsPagedResponse listEndpoints(LocationName parent) { + ListEndpointsRequest request = + ListEndpointsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listEndpoints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Endpoints 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   for (Endpoint element : agentRegistryClient.listEndpoints(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The project and location to list endpoints in. Expected format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListEndpointsPagedResponse listEndpoints(String parent) { + ListEndpointsRequest request = ListEndpointsRequest.newBuilder().setParent(parent).build(); + return listEndpoints(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Endpoints 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ListEndpointsRequest request =
            +   *       ListEndpointsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   for (Endpoint element : agentRegistryClient.listEndpoints(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 ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest request) { + return listEndpointsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Endpoints 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ListEndpointsRequest request =
            +   *       ListEndpointsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       agentRegistryClient.listEndpointsPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (Endpoint element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listEndpointsPagedCallable() { + return stub.listEndpointsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Endpoints 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ListEndpointsRequest request =
            +   *       ListEndpointsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   while (true) {
            +   *     ListEndpointsResponse response = agentRegistryClient.listEndpointsCallable().call(request);
            +   *     for (Endpoint element : response.getEndpointsList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable listEndpointsCallable() { + return stub.listEndpointsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Endpoint. + * + *

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   GetEndpointRequest request =
            +   *       GetEndpointRequest.newBuilder()
            +   *           .setName(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString())
            +   *           .build();
            +   *   Endpoint response = agentRegistryClient.getEndpoint(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 Endpoint getEndpoint(GetEndpointRequest request) { + return getEndpointCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Endpoint. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   GetEndpointRequest request =
            +   *       GetEndpointRequest.newBuilder()
            +   *           .setName(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString())
            +   *           .build();
            +   *   ApiFuture future = agentRegistryClient.getEndpointCallable().futureCall(request);
            +   *   // Do something.
            +   *   Endpoint response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable getEndpointCallable() { + return stub.getEndpointCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists McpServers 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   for (McpServer element : agentRegistryClient.listMcpServers(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. Parent value for ListMcpServersRequest. Format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMcpServersPagedResponse listMcpServers(LocationName parent) { + ListMcpServersRequest request = + ListMcpServersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMcpServers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists McpServers 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   for (McpServer element : agentRegistryClient.listMcpServers(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. Parent value for ListMcpServersRequest. Format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMcpServersPagedResponse listMcpServers(String parent) { + ListMcpServersRequest request = ListMcpServersRequest.newBuilder().setParent(parent).build(); + return listMcpServers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists McpServers 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ListMcpServersRequest request =
            +   *       ListMcpServersRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .build();
            +   *   for (McpServer element : agentRegistryClient.listMcpServers(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 ListMcpServersPagedResponse listMcpServers(ListMcpServersRequest request) { + return listMcpServersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists McpServers 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ListMcpServersRequest request =
            +   *       ListMcpServersRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       agentRegistryClient.listMcpServersPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (McpServer element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listMcpServersPagedCallable() { + return stub.listMcpServersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists McpServers 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ListMcpServersRequest request =
            +   *       ListMcpServersRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .build();
            +   *   while (true) {
            +   *     ListMcpServersResponse response =
            +   *         agentRegistryClient.listMcpServersCallable().call(request);
            +   *     for (McpServer element : response.getMcpServersList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listMcpServersCallable() { + return stub.listMcpServersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches McpServers 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   for (McpServer element : agentRegistryClient.searchMcpServers(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. Parent value for SearchMcpServersRequest. Format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchMcpServersPagedResponse searchMcpServers(LocationName parent) { + SearchMcpServersRequest request = + SearchMcpServersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return searchMcpServers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches McpServers 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   for (McpServer element : agentRegistryClient.searchMcpServers(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. Parent value for SearchMcpServersRequest. Format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchMcpServersPagedResponse searchMcpServers(String parent) { + SearchMcpServersRequest request = + SearchMcpServersRequest.newBuilder().setParent(parent).build(); + return searchMcpServers(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches McpServers 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   SearchMcpServersRequest request =
            +   *       SearchMcpServersRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setSearchString("searchString120312793")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   for (McpServer element : agentRegistryClient.searchMcpServers(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 SearchMcpServersPagedResponse searchMcpServers(SearchMcpServersRequest request) { + return searchMcpServersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches McpServers 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   SearchMcpServersRequest request =
            +   *       SearchMcpServersRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setSearchString("searchString120312793")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       agentRegistryClient.searchMcpServersPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (McpServer element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + searchMcpServersPagedCallable() { + return stub.searchMcpServersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches McpServers 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   SearchMcpServersRequest request =
            +   *       SearchMcpServersRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setSearchString("searchString120312793")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   while (true) {
            +   *     SearchMcpServersResponse response =
            +   *         agentRegistryClient.searchMcpServersCallable().call(request);
            +   *     for (McpServer element : response.getMcpServersList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + searchMcpServersCallable() { + return stub.searchMcpServersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single McpServer. + * + *

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   GetMcpServerRequest request =
            +   *       GetMcpServerRequest.newBuilder()
            +   *           .setName(McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString())
            +   *           .build();
            +   *   McpServer response = agentRegistryClient.getMcpServer(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 McpServer getMcpServer(GetMcpServerRequest request) { + return getMcpServerCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single McpServer. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   GetMcpServerRequest request =
            +   *       GetMcpServerRequest.newBuilder()
            +   *           .setName(McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString())
            +   *           .build();
            +   *   ApiFuture future = agentRegistryClient.getMcpServerCallable().futureCall(request);
            +   *   // Do something.
            +   *   McpServer response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable getMcpServerCallable() { + return stub.getMcpServerCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Services 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   for (Service element : agentRegistryClient.listServices(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The project and location to list services in. Expected format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListServicesPagedResponse listServices(LocationName parent) { + ListServicesRequest request = + ListServicesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listServices(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Services 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   for (Service element : agentRegistryClient.listServices(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The project and location to list services in. Expected format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListServicesPagedResponse listServices(String parent) { + ListServicesRequest request = ListServicesRequest.newBuilder().setParent(parent).build(); + return listServices(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Services 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ListServicesRequest request =
            +   *       ListServicesRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   for (Service element : agentRegistryClient.listServices(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 ListServicesPagedResponse listServices(ListServicesRequest request) { + return listServicesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Services 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ListServicesRequest request =
            +   *       ListServicesRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       agentRegistryClient.listServicesPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (Service element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listServicesPagedCallable() { + return stub.listServicesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Services 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ListServicesRequest request =
            +   *       ListServicesRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   while (true) {
            +   *     ListServicesResponse response = agentRegistryClient.listServicesCallable().call(request);
            +   *     for (Service element : response.getServicesList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable listServicesCallable() { + return stub.listServicesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
            +   *   Service response = agentRegistryClient.getService(name);
            +   * }
            +   * }
            + * + * @param name Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Service getService(ServiceName name) { + GetServiceRequest request = + GetServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getService(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
            +   *   Service response = agentRegistryClient.getService(name);
            +   * }
            +   * }
            + * + * @param name Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Service getService(String name) { + GetServiceRequest request = GetServiceRequest.newBuilder().setName(name).build(); + return getService(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   GetServiceRequest request =
            +   *       GetServiceRequest.newBuilder()
            +   *           .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
            +   *           .build();
            +   *   Service response = agentRegistryClient.getService(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 Service getService(GetServiceRequest request) { + return getServiceCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   GetServiceRequest request =
            +   *       GetServiceRequest.newBuilder()
            +   *           .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
            +   *           .build();
            +   *   ApiFuture future = agentRegistryClient.getServiceCallable().futureCall(request);
            +   *   // Do something.
            +   *   Service response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable getServiceCallable() { + return stub.getServiceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Service 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   Service service = Service.newBuilder().build();
            +   *   String serviceId = "serviceId-194185552";
            +   *   Service response = agentRegistryClient.createServiceAsync(parent, service, serviceId).get();
            +   * }
            +   * }
            + * + * @param parent Required. The project and location to create the Service in. Expected format: + * `projects/{project}/locations/{location}`. + * @param service Required. The Service resource that is being created. Format: + * `projects/{project}/locations/{location}/services/{service}`. + * @param serviceId Required. The ID to use for the service, which will become the final component + * of the service's resource name. + *

            This value should be 4-63 characters, and valid characters are `/[a-z][0-9]-/`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createServiceAsync( + LocationName parent, Service service, String serviceId) { + CreateServiceRequest request = + CreateServiceRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setService(service) + .setServiceId(serviceId) + .build(); + return createServiceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Service 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   Service service = Service.newBuilder().build();
            +   *   String serviceId = "serviceId-194185552";
            +   *   Service response = agentRegistryClient.createServiceAsync(parent, service, serviceId).get();
            +   * }
            +   * }
            + * + * @param parent Required. The project and location to create the Service in. Expected format: + * `projects/{project}/locations/{location}`. + * @param service Required. The Service resource that is being created. Format: + * `projects/{project}/locations/{location}/services/{service}`. + * @param serviceId Required. The ID to use for the service, which will become the final component + * of the service's resource name. + *

            This value should be 4-63 characters, and valid characters are `/[a-z][0-9]-/`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createServiceAsync( + String parent, Service service, String serviceId) { + CreateServiceRequest request = + CreateServiceRequest.newBuilder() + .setParent(parent) + .setService(service) + .setServiceId(serviceId) + .build(); + return createServiceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Service 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   CreateServiceRequest request =
            +   *       CreateServiceRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setServiceId("serviceId-194185552")
            +   *           .setService(Service.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   Service response = agentRegistryClient.createServiceAsync(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 createServiceAsync( + CreateServiceRequest request) { + return createServiceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Service 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   CreateServiceRequest request =
            +   *       CreateServiceRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setServiceId("serviceId-194185552")
            +   *           .setService(Service.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   OperationFuture future =
            +   *       agentRegistryClient.createServiceOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   Service response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + createServiceOperationCallable() { + return stub.createServiceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Service 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   CreateServiceRequest request =
            +   *       CreateServiceRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setServiceId("serviceId-194185552")
            +   *           .setService(Service.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   ApiFuture future = agentRegistryClient.createServiceCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable createServiceCallable() { + return stub.createServiceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   Service service = Service.newBuilder().build();
            +   *   FieldMask updateMask = FieldMask.newBuilder().build();
            +   *   Service response = agentRegistryClient.updateServiceAsync(service, updateMask).get();
            +   * }
            +   * }
            + * + * @param service Required. The Service resource that is being updated. Format: + * `projects/{project}/locations/{location}/services/{service}`. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * Service resource by the update. The fields specified in the update_mask are relative to the + * resource, not the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields present in the request will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateServiceAsync( + Service service, FieldMask updateMask) { + UpdateServiceRequest request = + UpdateServiceRequest.newBuilder().setService(service).setUpdateMask(updateMask).build(); + return updateServiceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   UpdateServiceRequest request =
            +   *       UpdateServiceRequest.newBuilder()
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .setService(Service.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   Service response = agentRegistryClient.updateServiceAsync(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 updateServiceAsync( + UpdateServiceRequest request) { + return updateServiceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   UpdateServiceRequest request =
            +   *       UpdateServiceRequest.newBuilder()
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .setService(Service.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   OperationFuture future =
            +   *       agentRegistryClient.updateServiceOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   Service response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + updateServiceOperationCallable() { + return stub.updateServiceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   UpdateServiceRequest request =
            +   *       UpdateServiceRequest.newBuilder()
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .setService(Service.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   ApiFuture future = agentRegistryClient.updateServiceCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable updateServiceCallable() { + return stub.updateServiceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]");
            +   *   agentRegistryClient.deleteServiceAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteServiceAsync(ServiceName name) { + DeleteServiceRequest request = + DeleteServiceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteServiceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString();
            +   *   agentRegistryClient.deleteServiceAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The name of the Service. Format: + * `projects/{project}/locations/{location}/services/{service}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteServiceAsync(String name) { + DeleteServiceRequest request = DeleteServiceRequest.newBuilder().setName(name).build(); + return deleteServiceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   DeleteServiceRequest request =
            +   *       DeleteServiceRequest.newBuilder()
            +   *           .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   agentRegistryClient.deleteServiceAsync(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 deleteServiceAsync( + DeleteServiceRequest request) { + return deleteServiceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   DeleteServiceRequest request =
            +   *       DeleteServiceRequest.newBuilder()
            +   *           .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   OperationFuture future =
            +   *       agentRegistryClient.deleteServiceOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + deleteServiceOperationCallable() { + return stub.deleteServiceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   DeleteServiceRequest request =
            +   *       DeleteServiceRequest.newBuilder()
            +   *           .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   ApiFuture future = agentRegistryClient.deleteServiceCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable deleteServiceCallable() { + return stub.deleteServiceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Bindings 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   for (Binding element : agentRegistryClient.listBindings(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The project and location to list bindings in. Expected format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBindingsPagedResponse listBindings(LocationName parent) { + ListBindingsRequest request = + ListBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Bindings 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   for (Binding element : agentRegistryClient.listBindings(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The project and location to list bindings in. Expected format: + * `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListBindingsPagedResponse listBindings(String parent) { + ListBindingsRequest request = ListBindingsRequest.newBuilder().setParent(parent).build(); + return listBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Bindings 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ListBindingsRequest request =
            +   *       ListBindingsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .build();
            +   *   for (Binding element : agentRegistryClient.listBindings(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 ListBindingsPagedResponse listBindings(ListBindingsRequest request) { + return listBindingsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Bindings 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ListBindingsRequest request =
            +   *       ListBindingsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       agentRegistryClient.listBindingsPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (Binding element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listBindingsPagedCallable() { + return stub.listBindingsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Bindings 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ListBindingsRequest request =
            +   *       ListBindingsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .build();
            +   *   while (true) {
            +   *     ListBindingsResponse response = agentRegistryClient.listBindingsCallable().call(request);
            +   *     for (Binding element : response.getBindingsList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable listBindingsCallable() { + return stub.listBindingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Binding. + * + *

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   GetBindingRequest request =
            +   *       GetBindingRequest.newBuilder()
            +   *           .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
            +   *           .build();
            +   *   Binding response = agentRegistryClient.getBinding(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 Binding getBinding(GetBindingRequest request) { + return getBindingCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Binding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   GetBindingRequest request =
            +   *       GetBindingRequest.newBuilder()
            +   *           .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
            +   *           .build();
            +   *   ApiFuture future = agentRegistryClient.getBindingCallable().futureCall(request);
            +   *   // Do something.
            +   *   Binding response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable getBindingCallable() { + return stub.getBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Binding 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   Binding binding = Binding.newBuilder().build();
            +   *   String bindingId = "bindingId-920966528";
            +   *   Binding response = agentRegistryClient.createBindingAsync(parent, binding, bindingId).get();
            +   * }
            +   * }
            + * + * @param parent Required. The project and location to create the Binding in. Expected format: + * `projects/{project}/locations/{location}`. + * @param binding Required. The Binding resource that is being created. + * @param bindingId Required. The ID to use for the binding, which will become the final component + * of the binding's resource name. + *

            This value should be 4-63 characters, and must conform to RFC-1034. Specifically, it + * must match the regular expression `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createBindingAsync( + LocationName parent, Binding binding, String bindingId) { + CreateBindingRequest request = + CreateBindingRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setBinding(binding) + .setBindingId(bindingId) + .build(); + return createBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Binding 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   Binding binding = Binding.newBuilder().build();
            +   *   String bindingId = "bindingId-920966528";
            +   *   Binding response = agentRegistryClient.createBindingAsync(parent, binding, bindingId).get();
            +   * }
            +   * }
            + * + * @param parent Required. The project and location to create the Binding in. Expected format: + * `projects/{project}/locations/{location}`. + * @param binding Required. The Binding resource that is being created. + * @param bindingId Required. The ID to use for the binding, which will become the final component + * of the binding's resource name. + *

            This value should be 4-63 characters, and must conform to RFC-1034. Specifically, it + * must match the regular expression `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createBindingAsync( + String parent, Binding binding, String bindingId) { + CreateBindingRequest request = + CreateBindingRequest.newBuilder() + .setParent(parent) + .setBinding(binding) + .setBindingId(bindingId) + .build(); + return createBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Binding 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   CreateBindingRequest request =
            +   *       CreateBindingRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setBindingId("bindingId-920966528")
            +   *           .setBinding(Binding.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   Binding response = agentRegistryClient.createBindingAsync(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 createBindingAsync( + CreateBindingRequest request) { + return createBindingOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Binding 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   CreateBindingRequest request =
            +   *       CreateBindingRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setBindingId("bindingId-920966528")
            +   *           .setBinding(Binding.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   OperationFuture future =
            +   *       agentRegistryClient.createBindingOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   Binding response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + createBindingOperationCallable() { + return stub.createBindingOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Binding 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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   CreateBindingRequest request =
            +   *       CreateBindingRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setBindingId("bindingId-920966528")
            +   *           .setBinding(Binding.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   ApiFuture future = agentRegistryClient.createBindingCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable createBindingCallable() { + return stub.createBindingCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Binding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   Binding binding = Binding.newBuilder().build();
            +   *   FieldMask updateMask = FieldMask.newBuilder().build();
            +   *   Binding response = agentRegistryClient.updateBindingAsync(binding, updateMask).get();
            +   * }
            +   * }
            + * + * @param binding Required. The Binding resource that is being updated. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * Binding resource by the update. The fields specified in the update_mask are relative to the + * resource, not the full request. A field will be overwritten if it is in the mask. If the + * user does not provide a mask then all fields present in the request will be overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateBindingAsync( + Binding binding, FieldMask updateMask) { + UpdateBindingRequest request = + UpdateBindingRequest.newBuilder().setBinding(binding).setUpdateMask(updateMask).build(); + return updateBindingAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Binding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   UpdateBindingRequest request =
            +   *       UpdateBindingRequest.newBuilder()
            +   *           .setBinding(Binding.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   Binding response = agentRegistryClient.updateBindingAsync(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 updateBindingAsync( + UpdateBindingRequest request) { + return updateBindingOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Binding. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   UpdateBindingRequest request =
            +   *       UpdateBindingRequest.newBuilder()
            +   *           .setBinding(Binding.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   OperationFuture future =
            +   *       agentRegistryClient.updateBindingOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   Binding response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable + updateBindingOperationCallable() { + return stub.updateBindingOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Binding. + * + *

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   DeleteBindingRequest request =
            +   *       DeleteBindingRequest.newBuilder()
            +   *           .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString())
            +   *           .setRequestId("requestId693933066")
            +   *           .build();
            +   *   agentRegistryClient.deleteBindingAsync(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 deleteBindingAsync( + DeleteBindingRequest request) { + return deleteBindingOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Binding. + * + *

            Sample code: + * + *

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

            Sample code: + * + *

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   for (Binding element : agentRegistryClient.fetchAvailableBindings(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent, in the format `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchAvailableBindingsPagedResponse fetchAvailableBindings(LocationName parent) { + FetchAvailableBindingsRequest request = + FetchAvailableBindingsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return fetchAvailableBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches available Bindings. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   for (Binding element : agentRegistryClient.fetchAvailableBindings(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent, in the format `projects/{project}/locations/{location}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final FetchAvailableBindingsPagedResponse fetchAvailableBindings(String parent) { + FetchAvailableBindingsRequest request = + FetchAvailableBindingsRequest.newBuilder().setParent(parent).build(); + return fetchAvailableBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches available Bindings. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   FetchAvailableBindingsRequest request =
            +   *       FetchAvailableBindingsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   for (Binding element : agentRegistryClient.fetchAvailableBindings(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 FetchAvailableBindingsPagedResponse fetchAvailableBindings( + FetchAvailableBindingsRequest request) { + return fetchAvailableBindingsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Fetches available Bindings. + * + *

            Sample code: + * + *

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

            Sample code: + * + *

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

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

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ListLocationsRequest request =
            +   *       ListLocationsRequest.newBuilder()
            +   *           .setName("name3373707")
            +   *           .setFilter("filter-1274492040")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   for (Location element : agentRegistryClient.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. + * + *

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

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ListLocationsRequest request =
            +   *       ListLocationsRequest.newBuilder()
            +   *           .setName("name3373707")
            +   *           .setFilter("filter-1274492040")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       agentRegistryClient.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. + * + *

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

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

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   ListLocationsRequest request =
            +   *       ListLocationsRequest.newBuilder()
            +   *           .setName("name3373707")
            +   *           .setFilter("filter-1274492040")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   while (true) {
            +   *     ListLocationsResponse response = agentRegistryClient.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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
            +   *   Location response = agentRegistryClient.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 (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
            +   *   ApiFuture future = agentRegistryClient.getLocationCallable().futureCall(request);
            +   *   // Do something.
            +   *   Location response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListAgentsPagedResponse + extends AbstractPagedListResponse< + ListAgentsRequest, + ListAgentsResponse, + Agent, + ListAgentsPage, + ListAgentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAgentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, input -> new ListAgentsPagedResponse(input), MoreExecutors.directExecutor()); + } + + private ListAgentsPagedResponse(ListAgentsPage page) { + super(page, ListAgentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAgentsPage + extends AbstractPage { + + private ListAgentsPage( + PageContext context, + ListAgentsResponse response) { + super(context, response); + } + + private static ListAgentsPage createEmptyPage() { + return new ListAgentsPage(null, null); + } + + @Override + protected ListAgentsPage createPage( + PageContext context, + ListAgentsResponse response) { + return new ListAgentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAgentsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAgentsRequest, + ListAgentsResponse, + Agent, + ListAgentsPage, + ListAgentsFixedSizeCollection> { + + private ListAgentsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAgentsFixedSizeCollection createEmptyCollection() { + return new ListAgentsFixedSizeCollection(null, 0); + } + + @Override + protected ListAgentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAgentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class SearchAgentsPagedResponse + extends AbstractPagedListResponse< + SearchAgentsRequest, + SearchAgentsResponse, + Agent, + SearchAgentsPage, + SearchAgentsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchAgentsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new SearchAgentsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private SearchAgentsPagedResponse(SearchAgentsPage page) { + super(page, SearchAgentsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchAgentsPage + extends AbstractPage { + + private SearchAgentsPage( + PageContext context, + SearchAgentsResponse response) { + super(context, response); + } + + private static SearchAgentsPage createEmptyPage() { + return new SearchAgentsPage(null, null); + } + + @Override + protected SearchAgentsPage createPage( + PageContext context, + SearchAgentsResponse response) { + return new SearchAgentsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchAgentsFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchAgentsRequest, + SearchAgentsResponse, + Agent, + SearchAgentsPage, + SearchAgentsFixedSizeCollection> { + + private SearchAgentsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchAgentsFixedSizeCollection createEmptyCollection() { + return new SearchAgentsFixedSizeCollection(null, 0); + } + + @Override + protected SearchAgentsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchAgentsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListEndpointsPagedResponse + extends AbstractPagedListResponse< + ListEndpointsRequest, + ListEndpointsResponse, + Endpoint, + ListEndpointsPage, + ListEndpointsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListEndpointsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListEndpointsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListEndpointsPagedResponse(ListEndpointsPage page) { + super(page, ListEndpointsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListEndpointsPage + extends AbstractPage< + ListEndpointsRequest, ListEndpointsResponse, Endpoint, ListEndpointsPage> { + + private ListEndpointsPage( + PageContext context, + ListEndpointsResponse response) { + super(context, response); + } + + private static ListEndpointsPage createEmptyPage() { + return new ListEndpointsPage(null, null); + } + + @Override + protected ListEndpointsPage createPage( + PageContext context, + ListEndpointsResponse response) { + return new ListEndpointsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListEndpointsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListEndpointsRequest, + ListEndpointsResponse, + Endpoint, + ListEndpointsPage, + ListEndpointsFixedSizeCollection> { + + private ListEndpointsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListEndpointsFixedSizeCollection createEmptyCollection() { + return new ListEndpointsFixedSizeCollection(null, 0); + } + + @Override + protected ListEndpointsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListEndpointsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListMcpServersPagedResponse + extends AbstractPagedListResponse< + ListMcpServersRequest, + ListMcpServersResponse, + McpServer, + ListMcpServersPage, + ListMcpServersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMcpServersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListMcpServersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListMcpServersPagedResponse(ListMcpServersPage page) { + super(page, ListMcpServersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMcpServersPage + extends AbstractPage< + ListMcpServersRequest, ListMcpServersResponse, McpServer, ListMcpServersPage> { + + private ListMcpServersPage( + PageContext context, + ListMcpServersResponse response) { + super(context, response); + } + + private static ListMcpServersPage createEmptyPage() { + return new ListMcpServersPage(null, null); + } + + @Override + protected ListMcpServersPage createPage( + PageContext context, + ListMcpServersResponse response) { + return new ListMcpServersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMcpServersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMcpServersRequest, + ListMcpServersResponse, + McpServer, + ListMcpServersPage, + ListMcpServersFixedSizeCollection> { + + private ListMcpServersFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMcpServersFixedSizeCollection createEmptyCollection() { + return new ListMcpServersFixedSizeCollection(null, 0); + } + + @Override + protected ListMcpServersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMcpServersFixedSizeCollection(pages, collectionSize); + } + } + + public static class SearchMcpServersPagedResponse + extends AbstractPagedListResponse< + SearchMcpServersRequest, + SearchMcpServersResponse, + McpServer, + SearchMcpServersPage, + SearchMcpServersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchMcpServersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new SearchMcpServersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private SearchMcpServersPagedResponse(SearchMcpServersPage page) { + super(page, SearchMcpServersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchMcpServersPage + extends AbstractPage< + SearchMcpServersRequest, SearchMcpServersResponse, McpServer, SearchMcpServersPage> { + + private SearchMcpServersPage( + PageContext context, + SearchMcpServersResponse response) { + super(context, response); + } + + private static SearchMcpServersPage createEmptyPage() { + return new SearchMcpServersPage(null, null); + } + + @Override + protected SearchMcpServersPage createPage( + PageContext context, + SearchMcpServersResponse response) { + return new SearchMcpServersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchMcpServersFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchMcpServersRequest, + SearchMcpServersResponse, + McpServer, + SearchMcpServersPage, + SearchMcpServersFixedSizeCollection> { + + private SearchMcpServersFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchMcpServersFixedSizeCollection createEmptyCollection() { + return new SearchMcpServersFixedSizeCollection(null, 0); + } + + @Override + protected SearchMcpServersFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchMcpServersFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListServicesPagedResponse + extends AbstractPagedListResponse< + ListServicesRequest, + ListServicesResponse, + Service, + ListServicesPage, + ListServicesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListServicesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListServicesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListServicesPagedResponse(ListServicesPage page) { + super(page, ListServicesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListServicesPage + extends AbstractPage { + + private ListServicesPage( + PageContext context, + ListServicesResponse response) { + super(context, response); + } + + private static ListServicesPage createEmptyPage() { + return new ListServicesPage(null, null); + } + + @Override + protected ListServicesPage createPage( + PageContext context, + ListServicesResponse response) { + return new ListServicesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListServicesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListServicesRequest, + ListServicesResponse, + Service, + ListServicesPage, + ListServicesFixedSizeCollection> { + + private ListServicesFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListServicesFixedSizeCollection createEmptyCollection() { + return new ListServicesFixedSizeCollection(null, 0); + } + + @Override + protected ListServicesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListServicesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListBindingsPagedResponse + extends AbstractPagedListResponse< + ListBindingsRequest, + ListBindingsResponse, + Binding, + ListBindingsPage, + ListBindingsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListBindingsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListBindingsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListBindingsPagedResponse(ListBindingsPage page) { + super(page, ListBindingsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListBindingsPage + extends AbstractPage { + + private ListBindingsPage( + PageContext context, + ListBindingsResponse response) { + super(context, response); + } + + private static ListBindingsPage createEmptyPage() { + return new ListBindingsPage(null, null); + } + + @Override + protected ListBindingsPage createPage( + PageContext context, + ListBindingsResponse response) { + return new ListBindingsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListBindingsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListBindingsRequest, + ListBindingsResponse, + Binding, + ListBindingsPage, + ListBindingsFixedSizeCollection> { + + private ListBindingsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListBindingsFixedSizeCollection createEmptyCollection() { + return new ListBindingsFixedSizeCollection(null, 0); + } + + @Override + protected ListBindingsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListBindingsFixedSizeCollection(pages, collectionSize); + } + } + + public static class FetchAvailableBindingsPagedResponse + extends AbstractPagedListResponse< + FetchAvailableBindingsRequest, + FetchAvailableBindingsResponse, + Binding, + FetchAvailableBindingsPage, + FetchAvailableBindingsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + FetchAvailableBindingsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new FetchAvailableBindingsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private FetchAvailableBindingsPagedResponse(FetchAvailableBindingsPage page) { + super(page, FetchAvailableBindingsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class FetchAvailableBindingsPage + extends AbstractPage< + FetchAvailableBindingsRequest, + FetchAvailableBindingsResponse, + Binding, + FetchAvailableBindingsPage> { + + private FetchAvailableBindingsPage( + PageContext context, + FetchAvailableBindingsResponse response) { + super(context, response); + } + + private static FetchAvailableBindingsPage createEmptyPage() { + return new FetchAvailableBindingsPage(null, null); + } + + @Override + protected FetchAvailableBindingsPage createPage( + PageContext context, + FetchAvailableBindingsResponse response) { + return new FetchAvailableBindingsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class FetchAvailableBindingsFixedSizeCollection + extends AbstractFixedSizeCollection< + FetchAvailableBindingsRequest, + FetchAvailableBindingsResponse, + Binding, + FetchAvailableBindingsPage, + FetchAvailableBindingsFixedSizeCollection> { + + private FetchAvailableBindingsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static FetchAvailableBindingsFixedSizeCollection createEmptyCollection() { + return new FetchAvailableBindingsFixedSizeCollection(null, 0); + } + + @Override + protected FetchAvailableBindingsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new FetchAvailableBindingsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistrySettings.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistrySettings.java new file mode 100644 index 000000000000..e9eb5a028d3c --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistrySettings.java @@ -0,0 +1,562 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1; + +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.FetchAvailableBindingsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListBindingsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListLocationsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListServicesPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchMcpServersPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +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.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.agentregistry.v1.stub.AgentRegistryStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AgentRegistryClient}. + * + *

            The default instance has everything set to sensible defaults: + * + *

              + *
            • The default service address (agentregistry.googleapis.com) and default port (443) are used. + *
            • Credentials are acquired automatically through Application Default Credentials. + *
            • Retries are configured for idempotent methods but not for non-idempotent methods. + *
            + * + *

            The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * AgentRegistrySettings.Builder agentRegistrySettingsBuilder = AgentRegistrySettings.newBuilder();
            + * agentRegistrySettingsBuilder
            + *     .getAgentSettings()
            + *     .setRetrySettings(
            + *         agentRegistrySettingsBuilder
            + *             .getAgentSettings()
            + *             .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());
            + * AgentRegistrySettings agentRegistrySettings = agentRegistrySettingsBuilder.build();
            + * }
            + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

            To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createService: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * AgentRegistrySettings.Builder agentRegistrySettingsBuilder = AgentRegistrySettings.newBuilder();
            + * TimedRetryAlgorithm timedRetryAlgorithm =
            + *     OperationalTimedPollAlgorithm.create(
            + *         RetrySettings.newBuilder()
            + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
            + *             .setRetryDelayMultiplier(1.5)
            + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
            + *             .setTotalTimeoutDuration(Duration.ofHours(24))
            + *             .build());
            + * agentRegistrySettingsBuilder
            + *     .createClusterOperationSettings()
            + *     .setPollingAlgorithm(timedRetryAlgorithm)
            + *     .build();
            + * }
            + */ +@Generated("by gapic-generator-java") +public class AgentRegistrySettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listAgents. */ + public PagedCallSettings + listAgentsSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).listAgentsSettings(); + } + + /** Returns the object with the settings used for calls to searchAgents. */ + public PagedCallSettings + searchAgentsSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).searchAgentsSettings(); + } + + /** Returns the object with the settings used for calls to getAgent. */ + public UnaryCallSettings getAgentSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).getAgentSettings(); + } + + /** Returns the object with the settings used for calls to listEndpoints. */ + public PagedCallSettings + listEndpointsSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).listEndpointsSettings(); + } + + /** Returns the object with the settings used for calls to getEndpoint. */ + public UnaryCallSettings getEndpointSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).getEndpointSettings(); + } + + /** Returns the object with the settings used for calls to listMcpServers. */ + public PagedCallSettings< + ListMcpServersRequest, ListMcpServersResponse, ListMcpServersPagedResponse> + listMcpServersSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).listMcpServersSettings(); + } + + /** Returns the object with the settings used for calls to searchMcpServers. */ + public PagedCallSettings< + SearchMcpServersRequest, SearchMcpServersResponse, SearchMcpServersPagedResponse> + searchMcpServersSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).searchMcpServersSettings(); + } + + /** Returns the object with the settings used for calls to getMcpServer. */ + public UnaryCallSettings getMcpServerSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).getMcpServerSettings(); + } + + /** Returns the object with the settings used for calls to listServices. */ + public PagedCallSettings + listServicesSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).listServicesSettings(); + } + + /** Returns the object with the settings used for calls to getService. */ + public UnaryCallSettings getServiceSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).getServiceSettings(); + } + + /** Returns the object with the settings used for calls to createService. */ + public UnaryCallSettings createServiceSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).createServiceSettings(); + } + + /** Returns the object with the settings used for calls to createService. */ + public OperationCallSettings + createServiceOperationSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).createServiceOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateService. */ + public UnaryCallSettings updateServiceSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).updateServiceSettings(); + } + + /** Returns the object with the settings used for calls to updateService. */ + public OperationCallSettings + updateServiceOperationSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).updateServiceOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteService. */ + public UnaryCallSettings deleteServiceSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).deleteServiceSettings(); + } + + /** Returns the object with the settings used for calls to deleteService. */ + public OperationCallSettings + deleteServiceOperationSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).deleteServiceOperationSettings(); + } + + /** Returns the object with the settings used for calls to listBindings. */ + public PagedCallSettings + listBindingsSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).listBindingsSettings(); + } + + /** Returns the object with the settings used for calls to getBinding. */ + public UnaryCallSettings getBindingSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).getBindingSettings(); + } + + /** Returns the object with the settings used for calls to createBinding. */ + public UnaryCallSettings createBindingSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).createBindingSettings(); + } + + /** Returns the object with the settings used for calls to createBinding. */ + public OperationCallSettings + createBindingOperationSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).createBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to updateBinding. */ + public UnaryCallSettings updateBindingSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).updateBindingSettings(); + } + + /** Returns the object with the settings used for calls to updateBinding. */ + public OperationCallSettings + updateBindingOperationSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).updateBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteBinding. */ + public UnaryCallSettings deleteBindingSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).deleteBindingSettings(); + } + + /** Returns the object with the settings used for calls to deleteBinding. */ + public OperationCallSettings + deleteBindingOperationSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).deleteBindingOperationSettings(); + } + + /** Returns the object with the settings used for calls to fetchAvailableBindings. */ + public PagedCallSettings< + FetchAvailableBindingsRequest, + FetchAvailableBindingsResponse, + FetchAvailableBindingsPagedResponse> + fetchAvailableBindingsSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).fetchAvailableBindingsSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((AgentRegistryStubSettings) getStubSettings()).getLocationSettings(); + } + + public static final AgentRegistrySettings create(AgentRegistryStubSettings stub) + throws IOException { + return new AgentRegistrySettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AgentRegistryStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AgentRegistryStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AgentRegistryStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AgentRegistryStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AgentRegistryStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AgentRegistryStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AgentRegistryStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AgentRegistryStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AgentRegistrySettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AgentRegistrySettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(AgentRegistryStubSettings.newBuilder(clientContext)); + } + + protected Builder(AgentRegistrySettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AgentRegistryStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AgentRegistryStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(AgentRegistryStubSettings.newHttpJsonBuilder()); + } + + public AgentRegistryStubSettings.Builder getStubSettingsBuilder() { + return ((AgentRegistryStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

            Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listAgents. */ + public PagedCallSettings.Builder + listAgentsSettings() { + return getStubSettingsBuilder().listAgentsSettings(); + } + + /** Returns the builder for the settings used for calls to searchAgents. */ + public PagedCallSettings.Builder< + SearchAgentsRequest, SearchAgentsResponse, SearchAgentsPagedResponse> + searchAgentsSettings() { + return getStubSettingsBuilder().searchAgentsSettings(); + } + + /** Returns the builder for the settings used for calls to getAgent. */ + public UnaryCallSettings.Builder getAgentSettings() { + return getStubSettingsBuilder().getAgentSettings(); + } + + /** Returns the builder for the settings used for calls to listEndpoints. */ + public PagedCallSettings.Builder< + ListEndpointsRequest, ListEndpointsResponse, ListEndpointsPagedResponse> + listEndpointsSettings() { + return getStubSettingsBuilder().listEndpointsSettings(); + } + + /** Returns the builder for the settings used for calls to getEndpoint. */ + public UnaryCallSettings.Builder getEndpointSettings() { + return getStubSettingsBuilder().getEndpointSettings(); + } + + /** Returns the builder for the settings used for calls to listMcpServers. */ + public PagedCallSettings.Builder< + ListMcpServersRequest, ListMcpServersResponse, ListMcpServersPagedResponse> + listMcpServersSettings() { + return getStubSettingsBuilder().listMcpServersSettings(); + } + + /** Returns the builder for the settings used for calls to searchMcpServers. */ + public PagedCallSettings.Builder< + SearchMcpServersRequest, SearchMcpServersResponse, SearchMcpServersPagedResponse> + searchMcpServersSettings() { + return getStubSettingsBuilder().searchMcpServersSettings(); + } + + /** Returns the builder for the settings used for calls to getMcpServer. */ + public UnaryCallSettings.Builder getMcpServerSettings() { + return getStubSettingsBuilder().getMcpServerSettings(); + } + + /** Returns the builder for the settings used for calls to listServices. */ + public PagedCallSettings.Builder< + ListServicesRequest, ListServicesResponse, ListServicesPagedResponse> + listServicesSettings() { + return getStubSettingsBuilder().listServicesSettings(); + } + + /** Returns the builder for the settings used for calls to getService. */ + public UnaryCallSettings.Builder getServiceSettings() { + return getStubSettingsBuilder().getServiceSettings(); + } + + /** Returns the builder for the settings used for calls to createService. */ + public UnaryCallSettings.Builder createServiceSettings() { + return getStubSettingsBuilder().createServiceSettings(); + } + + /** Returns the builder for the settings used for calls to createService. */ + public OperationCallSettings.Builder + createServiceOperationSettings() { + return getStubSettingsBuilder().createServiceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateService. */ + public UnaryCallSettings.Builder updateServiceSettings() { + return getStubSettingsBuilder().updateServiceSettings(); + } + + /** Returns the builder for the settings used for calls to updateService. */ + public OperationCallSettings.Builder + updateServiceOperationSettings() { + return getStubSettingsBuilder().updateServiceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteService. */ + public UnaryCallSettings.Builder deleteServiceSettings() { + return getStubSettingsBuilder().deleteServiceSettings(); + } + + /** Returns the builder for the settings used for calls to deleteService. */ + public OperationCallSettings.Builder + deleteServiceOperationSettings() { + return getStubSettingsBuilder().deleteServiceOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listBindings. */ + public PagedCallSettings.Builder< + ListBindingsRequest, ListBindingsResponse, ListBindingsPagedResponse> + listBindingsSettings() { + return getStubSettingsBuilder().listBindingsSettings(); + } + + /** Returns the builder for the settings used for calls to getBinding. */ + public UnaryCallSettings.Builder getBindingSettings() { + return getStubSettingsBuilder().getBindingSettings(); + } + + /** Returns the builder for the settings used for calls to createBinding. */ + public UnaryCallSettings.Builder createBindingSettings() { + return getStubSettingsBuilder().createBindingSettings(); + } + + /** Returns the builder for the settings used for calls to createBinding. */ + public OperationCallSettings.Builder + createBindingOperationSettings() { + return getStubSettingsBuilder().createBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to updateBinding. */ + public UnaryCallSettings.Builder updateBindingSettings() { + return getStubSettingsBuilder().updateBindingSettings(); + } + + /** Returns the builder for the settings used for calls to updateBinding. */ + public OperationCallSettings.Builder + updateBindingOperationSettings() { + return getStubSettingsBuilder().updateBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteBinding. */ + public UnaryCallSettings.Builder deleteBindingSettings() { + return getStubSettingsBuilder().deleteBindingSettings(); + } + + /** Returns the builder for the settings used for calls to deleteBinding. */ + public OperationCallSettings.Builder + deleteBindingOperationSettings() { + return getStubSettingsBuilder().deleteBindingOperationSettings(); + } + + /** Returns the builder for the settings used for calls to fetchAvailableBindings. */ + public PagedCallSettings.Builder< + FetchAvailableBindingsRequest, + FetchAvailableBindingsResponse, + FetchAvailableBindingsPagedResponse> + fetchAvailableBindingsSettings() { + return getStubSettingsBuilder().fetchAvailableBindingsSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + @Override + public AgentRegistrySettings build() throws IOException { + return new AgentRegistrySettings(this); + } + } +} diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/gapic_metadata.json b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/gapic_metadata.json new file mode 100644 index 000000000000..27dc690c6170 --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/gapic_metadata.json @@ -0,0 +1,81 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.agentregistry.v1", + "libraryPackage": "com.google.cloud.agentregistry.v1", + "services": { + "AgentRegistry": { + "clients": { + "grpc": { + "libraryClient": "AgentRegistryClient", + "rpcs": { + "CreateBinding": { + "methods": ["createBindingAsync", "createBindingAsync", "createBindingAsync", "createBindingOperationCallable", "createBindingCallable"] + }, + "CreateService": { + "methods": ["createServiceAsync", "createServiceAsync", "createServiceAsync", "createServiceOperationCallable", "createServiceCallable"] + }, + "DeleteBinding": { + "methods": ["deleteBindingAsync", "deleteBindingAsync", "deleteBindingAsync", "deleteBindingOperationCallable", "deleteBindingCallable"] + }, + "DeleteService": { + "methods": ["deleteServiceAsync", "deleteServiceAsync", "deleteServiceAsync", "deleteServiceOperationCallable", "deleteServiceCallable"] + }, + "FetchAvailableBindings": { + "methods": ["fetchAvailableBindings", "fetchAvailableBindings", "fetchAvailableBindings", "fetchAvailableBindingsPagedCallable", "fetchAvailableBindingsCallable"] + }, + "GetAgent": { + "methods": ["getAgent", "getAgent", "getAgent", "getAgentCallable"] + }, + "GetBinding": { + "methods": ["getBinding", "getBinding", "getBinding", "getBindingCallable"] + }, + "GetEndpoint": { + "methods": ["getEndpoint", "getEndpoint", "getEndpoint", "getEndpointCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetMcpServer": { + "methods": ["getMcpServer", "getMcpServer", "getMcpServer", "getMcpServerCallable"] + }, + "GetService": { + "methods": ["getService", "getService", "getService", "getServiceCallable"] + }, + "ListAgents": { + "methods": ["listAgents", "listAgents", "listAgents", "listAgentsPagedCallable", "listAgentsCallable"] + }, + "ListBindings": { + "methods": ["listBindings", "listBindings", "listBindings", "listBindingsPagedCallable", "listBindingsCallable"] + }, + "ListEndpoints": { + "methods": ["listEndpoints", "listEndpoints", "listEndpoints", "listEndpointsPagedCallable", "listEndpointsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListMcpServers": { + "methods": ["listMcpServers", "listMcpServers", "listMcpServers", "listMcpServersPagedCallable", "listMcpServersCallable"] + }, + "ListServices": { + "methods": ["listServices", "listServices", "listServices", "listServicesPagedCallable", "listServicesCallable"] + }, + "SearchAgents": { + "methods": ["searchAgents", "searchAgents", "searchAgents", "searchAgentsPagedCallable", "searchAgentsCallable"] + }, + "SearchMcpServers": { + "methods": ["searchMcpServers", "searchMcpServers", "searchMcpServers", "searchMcpServersPagedCallable", "searchMcpServersCallable"] + }, + "UpdateBinding": { + "methods": ["updateBindingAsync", "updateBindingAsync", "updateBindingOperationCallable", "updateBindingCallable"] + }, + "UpdateService": { + "methods": ["updateServiceAsync", "updateServiceAsync", "updateServiceOperationCallable", "updateServiceCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/package-info.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/package-info.java new file mode 100644 index 000000000000..d21ff3ab2b69 --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/package-info.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Agent Registry API + * + *

            The interfaces provided are listed below, along with usage samples. + * + *

            ======================= AgentRegistryClient ======================= + * + *

            Service Description: Service for managing Agents, Endpoints, McpServers, Services, and + * Bindings. + * + *

            Sample for AgentRegistryClient: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) {
            + *   AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]");
            + *   Agent response = agentRegistryClient.getAgent(name);
            + * }
            + * }
            + */ +@Generated("by gapic-generator-java") +package com.google.cloud.agentregistry.v1; + +import javax.annotation.Generated; diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStub.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStub.java new file mode 100644 index 000000000000..c2523ee90dfa --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStub.java @@ -0,0 +1,251 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.stub; + +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.FetchAvailableBindingsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListBindingsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListLocationsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListServicesPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchMcpServersPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.CreateBindingRequest; +import com.google.cloud.agentregistry.v1.CreateServiceRequest; +import com.google.cloud.agentregistry.v1.DeleteBindingRequest; +import com.google.cloud.agentregistry.v1.DeleteServiceRequest; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest; +import com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse; +import com.google.cloud.agentregistry.v1.GetAgentRequest; +import com.google.cloud.agentregistry.v1.GetBindingRequest; +import com.google.cloud.agentregistry.v1.GetEndpointRequest; +import com.google.cloud.agentregistry.v1.GetMcpServerRequest; +import com.google.cloud.agentregistry.v1.GetServiceRequest; +import com.google.cloud.agentregistry.v1.ListAgentsRequest; +import com.google.cloud.agentregistry.v1.ListAgentsResponse; +import com.google.cloud.agentregistry.v1.ListBindingsRequest; +import com.google.cloud.agentregistry.v1.ListBindingsResponse; +import com.google.cloud.agentregistry.v1.ListEndpointsRequest; +import com.google.cloud.agentregistry.v1.ListEndpointsResponse; +import com.google.cloud.agentregistry.v1.ListMcpServersRequest; +import com.google.cloud.agentregistry.v1.ListMcpServersResponse; +import com.google.cloud.agentregistry.v1.ListServicesRequest; +import com.google.cloud.agentregistry.v1.ListServicesResponse; +import com.google.cloud.agentregistry.v1.McpServer; +import com.google.cloud.agentregistry.v1.OperationMetadata; +import com.google.cloud.agentregistry.v1.SearchAgentsRequest; +import com.google.cloud.agentregistry.v1.SearchAgentsResponse; +import com.google.cloud.agentregistry.v1.SearchMcpServersRequest; +import com.google.cloud.agentregistry.v1.SearchMcpServersResponse; +import com.google.cloud.agentregistry.v1.Service; +import com.google.cloud.agentregistry.v1.UpdateBindingRequest; +import com.google.cloud.agentregistry.v1.UpdateServiceRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the AgentRegistry service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class AgentRegistryStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public UnaryCallable listAgentsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAgentsPagedCallable()"); + } + + public UnaryCallable listAgentsCallable() { + throw new UnsupportedOperationException("Not implemented: listAgentsCallable()"); + } + + public UnaryCallable searchAgentsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: searchAgentsPagedCallable()"); + } + + public UnaryCallable searchAgentsCallable() { + throw new UnsupportedOperationException("Not implemented: searchAgentsCallable()"); + } + + public UnaryCallable getAgentCallable() { + throw new UnsupportedOperationException("Not implemented: getAgentCallable()"); + } + + public UnaryCallable + listEndpointsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listEndpointsPagedCallable()"); + } + + public UnaryCallable listEndpointsCallable() { + throw new UnsupportedOperationException("Not implemented: listEndpointsCallable()"); + } + + public UnaryCallable getEndpointCallable() { + throw new UnsupportedOperationException("Not implemented: getEndpointCallable()"); + } + + public UnaryCallable + listMcpServersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listMcpServersPagedCallable()"); + } + + public UnaryCallable listMcpServersCallable() { + throw new UnsupportedOperationException("Not implemented: listMcpServersCallable()"); + } + + public UnaryCallable + searchMcpServersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: searchMcpServersPagedCallable()"); + } + + public UnaryCallable + searchMcpServersCallable() { + throw new UnsupportedOperationException("Not implemented: searchMcpServersCallable()"); + } + + public UnaryCallable getMcpServerCallable() { + throw new UnsupportedOperationException("Not implemented: getMcpServerCallable()"); + } + + public UnaryCallable listServicesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listServicesPagedCallable()"); + } + + public UnaryCallable listServicesCallable() { + throw new UnsupportedOperationException("Not implemented: listServicesCallable()"); + } + + public UnaryCallable getServiceCallable() { + throw new UnsupportedOperationException("Not implemented: getServiceCallable()"); + } + + public OperationCallable + createServiceOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createServiceOperationCallable()"); + } + + public UnaryCallable createServiceCallable() { + throw new UnsupportedOperationException("Not implemented: createServiceCallable()"); + } + + public OperationCallable + updateServiceOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateServiceOperationCallable()"); + } + + public UnaryCallable updateServiceCallable() { + throw new UnsupportedOperationException("Not implemented: updateServiceCallable()"); + } + + public OperationCallable + deleteServiceOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteServiceOperationCallable()"); + } + + public UnaryCallable deleteServiceCallable() { + throw new UnsupportedOperationException("Not implemented: deleteServiceCallable()"); + } + + public UnaryCallable listBindingsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listBindingsPagedCallable()"); + } + + public UnaryCallable listBindingsCallable() { + throw new UnsupportedOperationException("Not implemented: listBindingsCallable()"); + } + + public UnaryCallable getBindingCallable() { + throw new UnsupportedOperationException("Not implemented: getBindingCallable()"); + } + + public OperationCallable + createBindingOperationCallable() { + throw new UnsupportedOperationException("Not implemented: createBindingOperationCallable()"); + } + + public UnaryCallable createBindingCallable() { + throw new UnsupportedOperationException("Not implemented: createBindingCallable()"); + } + + public OperationCallable + updateBindingOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateBindingOperationCallable()"); + } + + public UnaryCallable updateBindingCallable() { + throw new UnsupportedOperationException("Not implemented: updateBindingCallable()"); + } + + public OperationCallable + deleteBindingOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteBindingOperationCallable()"); + } + + public UnaryCallable deleteBindingCallable() { + throw new UnsupportedOperationException("Not implemented: deleteBindingCallable()"); + } + + public UnaryCallable + fetchAvailableBindingsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: fetchAvailableBindingsPagedCallable()"); + } + + public UnaryCallable + fetchAvailableBindingsCallable() { + throw new UnsupportedOperationException("Not implemented: fetchAvailableBindingsCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStubSettings.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStubSettings.java new file mode 100644 index 000000000000..0584f40b5516 --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/AgentRegistryStubSettings.java @@ -0,0 +1,1706 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.stub; + +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.FetchAvailableBindingsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListBindingsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListLocationsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListServicesPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchMcpServersPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.CreateBindingRequest; +import com.google.cloud.agentregistry.v1.CreateServiceRequest; +import com.google.cloud.agentregistry.v1.DeleteBindingRequest; +import com.google.cloud.agentregistry.v1.DeleteServiceRequest; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest; +import com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse; +import com.google.cloud.agentregistry.v1.GetAgentRequest; +import com.google.cloud.agentregistry.v1.GetBindingRequest; +import com.google.cloud.agentregistry.v1.GetEndpointRequest; +import com.google.cloud.agentregistry.v1.GetMcpServerRequest; +import com.google.cloud.agentregistry.v1.GetServiceRequest; +import com.google.cloud.agentregistry.v1.ListAgentsRequest; +import com.google.cloud.agentregistry.v1.ListAgentsResponse; +import com.google.cloud.agentregistry.v1.ListBindingsRequest; +import com.google.cloud.agentregistry.v1.ListBindingsResponse; +import com.google.cloud.agentregistry.v1.ListEndpointsRequest; +import com.google.cloud.agentregistry.v1.ListEndpointsResponse; +import com.google.cloud.agentregistry.v1.ListMcpServersRequest; +import com.google.cloud.agentregistry.v1.ListMcpServersResponse; +import com.google.cloud.agentregistry.v1.ListServicesRequest; +import com.google.cloud.agentregistry.v1.ListServicesResponse; +import com.google.cloud.agentregistry.v1.McpServer; +import com.google.cloud.agentregistry.v1.OperationMetadata; +import com.google.cloud.agentregistry.v1.SearchAgentsRequest; +import com.google.cloud.agentregistry.v1.SearchAgentsResponse; +import com.google.cloud.agentregistry.v1.SearchMcpServersRequest; +import com.google.cloud.agentregistry.v1.SearchMcpServersResponse; +import com.google.cloud.agentregistry.v1.Service; +import com.google.cloud.agentregistry.v1.UpdateBindingRequest; +import com.google.cloud.agentregistry.v1.UpdateServiceRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AgentRegistryStub}. + * + *

            The default instance has everything set to sensible defaults: + * + *

              + *
            • The default service address (agentregistry.googleapis.com) and default port (443) are used. + *
            • Credentials are acquired automatically through Application Default Credentials. + *
            • Retries are configured for idempotent methods but not for non-idempotent methods. + *
            + * + *

            The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * AgentRegistryStubSettings.Builder agentRegistrySettingsBuilder =
            + *     AgentRegistryStubSettings.newBuilder();
            + * agentRegistrySettingsBuilder
            + *     .getAgentSettings()
            + *     .setRetrySettings(
            + *         agentRegistrySettingsBuilder
            + *             .getAgentSettings()
            + *             .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());
            + * AgentRegistryStubSettings agentRegistrySettings = agentRegistrySettingsBuilder.build();
            + * }
            + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

            To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createService: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * AgentRegistryStubSettings.Builder agentRegistrySettingsBuilder =
            + *     AgentRegistryStubSettings.newBuilder();
            + * TimedRetryAlgorithm timedRetryAlgorithm =
            + *     OperationalTimedPollAlgorithm.create(
            + *         RetrySettings.newBuilder()
            + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
            + *             .setRetryDelayMultiplier(1.5)
            + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
            + *             .setTotalTimeoutDuration(Duration.ofHours(24))
            + *             .build());
            + * agentRegistrySettingsBuilder
            + *     .createClusterOperationSettings()
            + *     .setPollingAlgorithm(timedRetryAlgorithm)
            + *     .build();
            + * }
            + */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class AgentRegistryStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/agentregistry.read-only") + .add("https://www.googleapis.com/auth/agentregistry.read-write") + .add("https://www.googleapis.com/auth/cloud-platform") + .add("https://www.googleapis.com/auth/cloud-platform.read-only") + .build(); + + private final PagedCallSettings + listAgentsSettings; + private final PagedCallSettings< + SearchAgentsRequest, SearchAgentsResponse, SearchAgentsPagedResponse> + searchAgentsSettings; + private final UnaryCallSettings getAgentSettings; + private final PagedCallSettings< + ListEndpointsRequest, ListEndpointsResponse, ListEndpointsPagedResponse> + listEndpointsSettings; + private final UnaryCallSettings getEndpointSettings; + private final PagedCallSettings< + ListMcpServersRequest, ListMcpServersResponse, ListMcpServersPagedResponse> + listMcpServersSettings; + private final PagedCallSettings< + SearchMcpServersRequest, SearchMcpServersResponse, SearchMcpServersPagedResponse> + searchMcpServersSettings; + private final UnaryCallSettings getMcpServerSettings; + private final PagedCallSettings< + ListServicesRequest, ListServicesResponse, ListServicesPagedResponse> + listServicesSettings; + private final UnaryCallSettings getServiceSettings; + private final UnaryCallSettings createServiceSettings; + private final OperationCallSettings + createServiceOperationSettings; + private final UnaryCallSettings updateServiceSettings; + private final OperationCallSettings + updateServiceOperationSettings; + private final UnaryCallSettings deleteServiceSettings; + private final OperationCallSettings + deleteServiceOperationSettings; + private final PagedCallSettings< + ListBindingsRequest, ListBindingsResponse, ListBindingsPagedResponse> + listBindingsSettings; + private final UnaryCallSettings getBindingSettings; + private final UnaryCallSettings createBindingSettings; + private final OperationCallSettings + createBindingOperationSettings; + private final UnaryCallSettings updateBindingSettings; + private final OperationCallSettings + updateBindingOperationSettings; + private final UnaryCallSettings deleteBindingSettings; + private final OperationCallSettings + deleteBindingOperationSettings; + private final PagedCallSettings< + FetchAvailableBindingsRequest, + FetchAvailableBindingsResponse, + FetchAvailableBindingsPagedResponse> + fetchAvailableBindingsSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + + private static final PagedListDescriptor + LIST_AGENTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAgentsRequest injectToken(ListAgentsRequest payload, String token) { + return ListAgentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAgentsRequest injectPageSize(ListAgentsRequest payload, int pageSize) { + return ListAgentsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAgentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAgentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAgentsResponse payload) { + return payload.getAgentsList(); + } + }; + + private static final PagedListDescriptor + SEARCH_AGENTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchAgentsRequest injectToken(SearchAgentsRequest payload, String token) { + return SearchAgentsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public SearchAgentsRequest injectPageSize(SearchAgentsRequest payload, int pageSize) { + return SearchAgentsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(SearchAgentsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchAgentsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(SearchAgentsResponse payload) { + return payload.getAgentsList(); + } + }; + + private static final PagedListDescriptor + LIST_ENDPOINTS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListEndpointsRequest injectToken(ListEndpointsRequest payload, String token) { + return ListEndpointsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListEndpointsRequest injectPageSize(ListEndpointsRequest payload, int pageSize) { + return ListEndpointsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListEndpointsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListEndpointsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListEndpointsResponse payload) { + return payload.getEndpointsList(); + } + }; + + private static final PagedListDescriptor + LIST_MCP_SERVERS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMcpServersRequest injectToken(ListMcpServersRequest payload, String token) { + return ListMcpServersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListMcpServersRequest injectPageSize( + ListMcpServersRequest payload, int pageSize) { + return ListMcpServersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListMcpServersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMcpServersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListMcpServersResponse payload) { + return payload.getMcpServersList(); + } + }; + + private static final PagedListDescriptor< + SearchMcpServersRequest, SearchMcpServersResponse, McpServer> + SEARCH_MCP_SERVERS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchMcpServersRequest injectToken( + SearchMcpServersRequest payload, String token) { + return SearchMcpServersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public SearchMcpServersRequest injectPageSize( + SearchMcpServersRequest payload, int pageSize) { + return SearchMcpServersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(SearchMcpServersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchMcpServersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(SearchMcpServersResponse payload) { + return payload.getMcpServersList(); + } + }; + + private static final PagedListDescriptor + LIST_SERVICES_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListServicesRequest injectToken(ListServicesRequest payload, String token) { + return ListServicesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListServicesRequest injectPageSize(ListServicesRequest payload, int pageSize) { + return ListServicesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListServicesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListServicesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListServicesResponse payload) { + return payload.getServicesList(); + } + }; + + private static final PagedListDescriptor + LIST_BINDINGS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListBindingsRequest injectToken(ListBindingsRequest payload, String token) { + return ListBindingsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListBindingsRequest injectPageSize(ListBindingsRequest payload, int pageSize) { + return ListBindingsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListBindingsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListBindingsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListBindingsResponse payload) { + return payload.getBindingsList(); + } + }; + + private static final PagedListDescriptor< + FetchAvailableBindingsRequest, FetchAvailableBindingsResponse, Binding> + FETCH_AVAILABLE_BINDINGS_PAGE_STR_DESC = + new PagedListDescriptor< + FetchAvailableBindingsRequest, FetchAvailableBindingsResponse, Binding>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public FetchAvailableBindingsRequest injectToken( + FetchAvailableBindingsRequest payload, String token) { + return FetchAvailableBindingsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public FetchAvailableBindingsRequest injectPageSize( + FetchAvailableBindingsRequest payload, int pageSize) { + return FetchAvailableBindingsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(FetchAvailableBindingsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(FetchAvailableBindingsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(FetchAvailableBindingsResponse payload) { + return payload.getBindingsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListAgentsRequest, ListAgentsResponse, ListAgentsPagedResponse> + LIST_AGENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAgentsRequest, ListAgentsResponse, ListAgentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAgentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_AGENTS_PAGE_STR_DESC, request, context); + return ListAgentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + SearchAgentsRequest, SearchAgentsResponse, SearchAgentsPagedResponse> + SEARCH_AGENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchAgentsRequest, SearchAgentsResponse, SearchAgentsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + SearchAgentsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, SEARCH_AGENTS_PAGE_STR_DESC, request, context); + return SearchAgentsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListEndpointsRequest, ListEndpointsResponse, ListEndpointsPagedResponse> + LIST_ENDPOINTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListEndpointsRequest, ListEndpointsResponse, ListEndpointsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListEndpointsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_ENDPOINTS_PAGE_STR_DESC, request, context); + return ListEndpointsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListMcpServersRequest, ListMcpServersResponse, ListMcpServersPagedResponse> + LIST_MCP_SERVERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMcpServersRequest, ListMcpServersResponse, ListMcpServersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListMcpServersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_MCP_SERVERS_PAGE_STR_DESC, request, context); + return ListMcpServersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + SearchMcpServersRequest, SearchMcpServersResponse, SearchMcpServersPagedResponse> + SEARCH_MCP_SERVERS_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchMcpServersRequest, SearchMcpServersResponse, SearchMcpServersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + SearchMcpServersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, SEARCH_MCP_SERVERS_PAGE_STR_DESC, request, context); + return SearchMcpServersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListServicesRequest, ListServicesResponse, ListServicesPagedResponse> + LIST_SERVICES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListServicesRequest, ListServicesResponse, ListServicesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListServicesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_SERVICES_PAGE_STR_DESC, request, context); + return ListServicesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListBindingsRequest, ListBindingsResponse, ListBindingsPagedResponse> + LIST_BINDINGS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListBindingsRequest, ListBindingsResponse, ListBindingsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListBindingsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_BINDINGS_PAGE_STR_DESC, request, context); + return ListBindingsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + FetchAvailableBindingsRequest, + FetchAvailableBindingsResponse, + FetchAvailableBindingsPagedResponse> + FETCH_AVAILABLE_BINDINGS_PAGE_STR_FACT = + new PagedListResponseFactory< + FetchAvailableBindingsRequest, + FetchAvailableBindingsResponse, + FetchAvailableBindingsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + FetchAvailableBindingsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, FETCH_AVAILABLE_BINDINGS_PAGE_STR_DESC, request, context); + return FetchAvailableBindingsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listAgents. */ + public PagedCallSettings + listAgentsSettings() { + return listAgentsSettings; + } + + /** Returns the object with the settings used for calls to searchAgents. */ + public PagedCallSettings + searchAgentsSettings() { + return searchAgentsSettings; + } + + /** Returns the object with the settings used for calls to getAgent. */ + public UnaryCallSettings getAgentSettings() { + return getAgentSettings; + } + + /** Returns the object with the settings used for calls to listEndpoints. */ + public PagedCallSettings + listEndpointsSettings() { + return listEndpointsSettings; + } + + /** Returns the object with the settings used for calls to getEndpoint. */ + public UnaryCallSettings getEndpointSettings() { + return getEndpointSettings; + } + + /** Returns the object with the settings used for calls to listMcpServers. */ + public PagedCallSettings< + ListMcpServersRequest, ListMcpServersResponse, ListMcpServersPagedResponse> + listMcpServersSettings() { + return listMcpServersSettings; + } + + /** Returns the object with the settings used for calls to searchMcpServers. */ + public PagedCallSettings< + SearchMcpServersRequest, SearchMcpServersResponse, SearchMcpServersPagedResponse> + searchMcpServersSettings() { + return searchMcpServersSettings; + } + + /** Returns the object with the settings used for calls to getMcpServer. */ + public UnaryCallSettings getMcpServerSettings() { + return getMcpServerSettings; + } + + /** Returns the object with the settings used for calls to listServices. */ + public PagedCallSettings + listServicesSettings() { + return listServicesSettings; + } + + /** Returns the object with the settings used for calls to getService. */ + public UnaryCallSettings getServiceSettings() { + return getServiceSettings; + } + + /** Returns the object with the settings used for calls to createService. */ + public UnaryCallSettings createServiceSettings() { + return createServiceSettings; + } + + /** Returns the object with the settings used for calls to createService. */ + public OperationCallSettings + createServiceOperationSettings() { + return createServiceOperationSettings; + } + + /** Returns the object with the settings used for calls to updateService. */ + public UnaryCallSettings updateServiceSettings() { + return updateServiceSettings; + } + + /** Returns the object with the settings used for calls to updateService. */ + public OperationCallSettings + updateServiceOperationSettings() { + return updateServiceOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteService. */ + public UnaryCallSettings deleteServiceSettings() { + return deleteServiceSettings; + } + + /** Returns the object with the settings used for calls to deleteService. */ + public OperationCallSettings + deleteServiceOperationSettings() { + return deleteServiceOperationSettings; + } + + /** Returns the object with the settings used for calls to listBindings. */ + public PagedCallSettings + listBindingsSettings() { + return listBindingsSettings; + } + + /** Returns the object with the settings used for calls to getBinding. */ + public UnaryCallSettings getBindingSettings() { + return getBindingSettings; + } + + /** Returns the object with the settings used for calls to createBinding. */ + public UnaryCallSettings createBindingSettings() { + return createBindingSettings; + } + + /** Returns the object with the settings used for calls to createBinding. */ + public OperationCallSettings + createBindingOperationSettings() { + return createBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to updateBinding. */ + public UnaryCallSettings updateBindingSettings() { + return updateBindingSettings; + } + + /** Returns the object with the settings used for calls to updateBinding. */ + public OperationCallSettings + updateBindingOperationSettings() { + return updateBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteBinding. */ + public UnaryCallSettings deleteBindingSettings() { + return deleteBindingSettings; + } + + /** Returns the object with the settings used for calls to deleteBinding. */ + public OperationCallSettings + deleteBindingOperationSettings() { + return deleteBindingOperationSettings; + } + + /** Returns the object with the settings used for calls to fetchAvailableBindings. */ + public PagedCallSettings< + FetchAvailableBindingsRequest, + FetchAvailableBindingsResponse, + FetchAvailableBindingsPagedResponse> + fetchAvailableBindingsSettings() { + return fetchAvailableBindingsSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + public AgentRegistryStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAgentRegistryStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAgentRegistryStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "agentregistry"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "agentregistry.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "agentregistry.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AgentRegistryStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AgentRegistryStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AgentRegistryStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AgentRegistryStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listAgentsSettings = settingsBuilder.listAgentsSettings().build(); + searchAgentsSettings = settingsBuilder.searchAgentsSettings().build(); + getAgentSettings = settingsBuilder.getAgentSettings().build(); + listEndpointsSettings = settingsBuilder.listEndpointsSettings().build(); + getEndpointSettings = settingsBuilder.getEndpointSettings().build(); + listMcpServersSettings = settingsBuilder.listMcpServersSettings().build(); + searchMcpServersSettings = settingsBuilder.searchMcpServersSettings().build(); + getMcpServerSettings = settingsBuilder.getMcpServerSettings().build(); + listServicesSettings = settingsBuilder.listServicesSettings().build(); + getServiceSettings = settingsBuilder.getServiceSettings().build(); + createServiceSettings = settingsBuilder.createServiceSettings().build(); + createServiceOperationSettings = settingsBuilder.createServiceOperationSettings().build(); + updateServiceSettings = settingsBuilder.updateServiceSettings().build(); + updateServiceOperationSettings = settingsBuilder.updateServiceOperationSettings().build(); + deleteServiceSettings = settingsBuilder.deleteServiceSettings().build(); + deleteServiceOperationSettings = settingsBuilder.deleteServiceOperationSettings().build(); + listBindingsSettings = settingsBuilder.listBindingsSettings().build(); + getBindingSettings = settingsBuilder.getBindingSettings().build(); + createBindingSettings = settingsBuilder.createBindingSettings().build(); + createBindingOperationSettings = settingsBuilder.createBindingOperationSettings().build(); + updateBindingSettings = settingsBuilder.updateBindingSettings().build(); + updateBindingOperationSettings = settingsBuilder.updateBindingOperationSettings().build(); + deleteBindingSettings = settingsBuilder.deleteBindingSettings().build(); + deleteBindingOperationSettings = settingsBuilder.deleteBindingOperationSettings().build(); + fetchAvailableBindingsSettings = settingsBuilder.fetchAvailableBindingsSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-agentregistry") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for AgentRegistryStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListAgentsRequest, ListAgentsResponse, ListAgentsPagedResponse> + listAgentsSettings; + private final PagedCallSettings.Builder< + SearchAgentsRequest, SearchAgentsResponse, SearchAgentsPagedResponse> + searchAgentsSettings; + private final UnaryCallSettings.Builder getAgentSettings; + private final PagedCallSettings.Builder< + ListEndpointsRequest, ListEndpointsResponse, ListEndpointsPagedResponse> + listEndpointsSettings; + private final UnaryCallSettings.Builder getEndpointSettings; + private final PagedCallSettings.Builder< + ListMcpServersRequest, ListMcpServersResponse, ListMcpServersPagedResponse> + listMcpServersSettings; + private final PagedCallSettings.Builder< + SearchMcpServersRequest, SearchMcpServersResponse, SearchMcpServersPagedResponse> + searchMcpServersSettings; + private final UnaryCallSettings.Builder getMcpServerSettings; + private final PagedCallSettings.Builder< + ListServicesRequest, ListServicesResponse, ListServicesPagedResponse> + listServicesSettings; + private final UnaryCallSettings.Builder getServiceSettings; + private final UnaryCallSettings.Builder createServiceSettings; + private final OperationCallSettings.Builder + createServiceOperationSettings; + private final UnaryCallSettings.Builder updateServiceSettings; + private final OperationCallSettings.Builder + updateServiceOperationSettings; + private final UnaryCallSettings.Builder deleteServiceSettings; + private final OperationCallSettings.Builder + deleteServiceOperationSettings; + private final PagedCallSettings.Builder< + ListBindingsRequest, ListBindingsResponse, ListBindingsPagedResponse> + listBindingsSettings; + private final UnaryCallSettings.Builder getBindingSettings; + private final UnaryCallSettings.Builder createBindingSettings; + private final OperationCallSettings.Builder + createBindingOperationSettings; + private final UnaryCallSettings.Builder updateBindingSettings; + private final OperationCallSettings.Builder + updateBindingOperationSettings; + private final UnaryCallSettings.Builder deleteBindingSettings; + private final OperationCallSettings.Builder + deleteBindingOperationSettings; + private final PagedCallSettings.Builder< + FetchAvailableBindingsRequest, + FetchAvailableBindingsResponse, + FetchAvailableBindingsPagedResponse> + fetchAvailableBindingsSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listAgentsSettings = PagedCallSettings.newBuilder(LIST_AGENTS_PAGE_STR_FACT); + searchAgentsSettings = PagedCallSettings.newBuilder(SEARCH_AGENTS_PAGE_STR_FACT); + getAgentSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listEndpointsSettings = PagedCallSettings.newBuilder(LIST_ENDPOINTS_PAGE_STR_FACT); + getEndpointSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listMcpServersSettings = PagedCallSettings.newBuilder(LIST_MCP_SERVERS_PAGE_STR_FACT); + searchMcpServersSettings = PagedCallSettings.newBuilder(SEARCH_MCP_SERVERS_PAGE_STR_FACT); + getMcpServerSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listServicesSettings = PagedCallSettings.newBuilder(LIST_SERVICES_PAGE_STR_FACT); + getServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createServiceOperationSettings = OperationCallSettings.newBuilder(); + updateServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateServiceOperationSettings = OperationCallSettings.newBuilder(); + deleteServiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteServiceOperationSettings = OperationCallSettings.newBuilder(); + listBindingsSettings = PagedCallSettings.newBuilder(LIST_BINDINGS_PAGE_STR_FACT); + getBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createBindingOperationSettings = OperationCallSettings.newBuilder(); + updateBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateBindingOperationSettings = OperationCallSettings.newBuilder(); + deleteBindingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteBindingOperationSettings = OperationCallSettings.newBuilder(); + fetchAvailableBindingsSettings = + PagedCallSettings.newBuilder(FETCH_AVAILABLE_BINDINGS_PAGE_STR_FACT); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listAgentsSettings, + searchAgentsSettings, + getAgentSettings, + listEndpointsSettings, + getEndpointSettings, + listMcpServersSettings, + searchMcpServersSettings, + getMcpServerSettings, + listServicesSettings, + getServiceSettings, + createServiceSettings, + updateServiceSettings, + deleteServiceSettings, + listBindingsSettings, + getBindingSettings, + createBindingSettings, + updateBindingSettings, + deleteBindingSettings, + fetchAvailableBindingsSettings, + listLocationsSettings, + getLocationSettings); + initDefaults(this); + } + + protected Builder(AgentRegistryStubSettings settings) { + super(settings); + + listAgentsSettings = settings.listAgentsSettings.toBuilder(); + searchAgentsSettings = settings.searchAgentsSettings.toBuilder(); + getAgentSettings = settings.getAgentSettings.toBuilder(); + listEndpointsSettings = settings.listEndpointsSettings.toBuilder(); + getEndpointSettings = settings.getEndpointSettings.toBuilder(); + listMcpServersSettings = settings.listMcpServersSettings.toBuilder(); + searchMcpServersSettings = settings.searchMcpServersSettings.toBuilder(); + getMcpServerSettings = settings.getMcpServerSettings.toBuilder(); + listServicesSettings = settings.listServicesSettings.toBuilder(); + getServiceSettings = settings.getServiceSettings.toBuilder(); + createServiceSettings = settings.createServiceSettings.toBuilder(); + createServiceOperationSettings = settings.createServiceOperationSettings.toBuilder(); + updateServiceSettings = settings.updateServiceSettings.toBuilder(); + updateServiceOperationSettings = settings.updateServiceOperationSettings.toBuilder(); + deleteServiceSettings = settings.deleteServiceSettings.toBuilder(); + deleteServiceOperationSettings = settings.deleteServiceOperationSettings.toBuilder(); + listBindingsSettings = settings.listBindingsSettings.toBuilder(); + getBindingSettings = settings.getBindingSettings.toBuilder(); + createBindingSettings = settings.createBindingSettings.toBuilder(); + createBindingOperationSettings = settings.createBindingOperationSettings.toBuilder(); + updateBindingSettings = settings.updateBindingSettings.toBuilder(); + updateBindingOperationSettings = settings.updateBindingOperationSettings.toBuilder(); + deleteBindingSettings = settings.deleteBindingSettings.toBuilder(); + deleteBindingOperationSettings = settings.deleteBindingOperationSettings.toBuilder(); + fetchAvailableBindingsSettings = settings.fetchAvailableBindingsSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listAgentsSettings, + searchAgentsSettings, + getAgentSettings, + listEndpointsSettings, + getEndpointSettings, + listMcpServersSettings, + searchMcpServersSettings, + getMcpServerSettings, + listServicesSettings, + getServiceSettings, + createServiceSettings, + updateServiceSettings, + deleteServiceSettings, + listBindingsSettings, + getBindingSettings, + createBindingSettings, + updateBindingSettings, + deleteBindingSettings, + fetchAvailableBindingsSettings, + listLocationsSettings, + getLocationSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listAgentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .searchAgentsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAgentSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listEndpointsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getEndpointSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listMcpServersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .searchMcpServersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getMcpServerSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listServicesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getServiceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createServiceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateServiceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteServiceSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listBindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .updateBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteBindingSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .fetchAvailableBindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createServiceOperationSettings() + .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(Service.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateServiceOperationSettings() + .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(Service.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteServiceOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .createBindingOperationSettings() + .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(Binding.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateBindingOperationSettings() + .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(Binding.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteBindingOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

            Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listAgents. */ + public PagedCallSettings.Builder + listAgentsSettings() { + return listAgentsSettings; + } + + /** Returns the builder for the settings used for calls to searchAgents. */ + public PagedCallSettings.Builder< + SearchAgentsRequest, SearchAgentsResponse, SearchAgentsPagedResponse> + searchAgentsSettings() { + return searchAgentsSettings; + } + + /** Returns the builder for the settings used for calls to getAgent. */ + public UnaryCallSettings.Builder getAgentSettings() { + return getAgentSettings; + } + + /** Returns the builder for the settings used for calls to listEndpoints. */ + public PagedCallSettings.Builder< + ListEndpointsRequest, ListEndpointsResponse, ListEndpointsPagedResponse> + listEndpointsSettings() { + return listEndpointsSettings; + } + + /** Returns the builder for the settings used for calls to getEndpoint. */ + public UnaryCallSettings.Builder getEndpointSettings() { + return getEndpointSettings; + } + + /** Returns the builder for the settings used for calls to listMcpServers. */ + public PagedCallSettings.Builder< + ListMcpServersRequest, ListMcpServersResponse, ListMcpServersPagedResponse> + listMcpServersSettings() { + return listMcpServersSettings; + } + + /** Returns the builder for the settings used for calls to searchMcpServers. */ + public PagedCallSettings.Builder< + SearchMcpServersRequest, SearchMcpServersResponse, SearchMcpServersPagedResponse> + searchMcpServersSettings() { + return searchMcpServersSettings; + } + + /** Returns the builder for the settings used for calls to getMcpServer. */ + public UnaryCallSettings.Builder getMcpServerSettings() { + return getMcpServerSettings; + } + + /** Returns the builder for the settings used for calls to listServices. */ + public PagedCallSettings.Builder< + ListServicesRequest, ListServicesResponse, ListServicesPagedResponse> + listServicesSettings() { + return listServicesSettings; + } + + /** Returns the builder for the settings used for calls to getService. */ + public UnaryCallSettings.Builder getServiceSettings() { + return getServiceSettings; + } + + /** Returns the builder for the settings used for calls to createService. */ + public UnaryCallSettings.Builder createServiceSettings() { + return createServiceSettings; + } + + /** Returns the builder for the settings used for calls to createService. */ + public OperationCallSettings.Builder + createServiceOperationSettings() { + return createServiceOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateService. */ + public UnaryCallSettings.Builder updateServiceSettings() { + return updateServiceSettings; + } + + /** Returns the builder for the settings used for calls to updateService. */ + public OperationCallSettings.Builder + updateServiceOperationSettings() { + return updateServiceOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteService. */ + public UnaryCallSettings.Builder deleteServiceSettings() { + return deleteServiceSettings; + } + + /** Returns the builder for the settings used for calls to deleteService. */ + public OperationCallSettings.Builder + deleteServiceOperationSettings() { + return deleteServiceOperationSettings; + } + + /** Returns the builder for the settings used for calls to listBindings. */ + public PagedCallSettings.Builder< + ListBindingsRequest, ListBindingsResponse, ListBindingsPagedResponse> + listBindingsSettings() { + return listBindingsSettings; + } + + /** Returns the builder for the settings used for calls to getBinding. */ + public UnaryCallSettings.Builder getBindingSettings() { + return getBindingSettings; + } + + /** Returns the builder for the settings used for calls to createBinding. */ + public UnaryCallSettings.Builder createBindingSettings() { + return createBindingSettings; + } + + /** Returns the builder for the settings used for calls to createBinding. */ + public OperationCallSettings.Builder + createBindingOperationSettings() { + return createBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to updateBinding. */ + public UnaryCallSettings.Builder updateBindingSettings() { + return updateBindingSettings; + } + + /** Returns the builder for the settings used for calls to updateBinding. */ + public OperationCallSettings.Builder + updateBindingOperationSettings() { + return updateBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteBinding. */ + public UnaryCallSettings.Builder deleteBindingSettings() { + return deleteBindingSettings; + } + + /** Returns the builder for the settings used for calls to deleteBinding. */ + public OperationCallSettings.Builder + deleteBindingOperationSettings() { + return deleteBindingOperationSettings; + } + + /** Returns the builder for the settings used for calls to fetchAvailableBindings. */ + public PagedCallSettings.Builder< + FetchAvailableBindingsRequest, + FetchAvailableBindingsResponse, + FetchAvailableBindingsPagedResponse> + fetchAvailableBindingsSettings() { + return fetchAvailableBindingsSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + @Override + public AgentRegistryStubSettings build() throws IOException { + return new AgentRegistryStubSettings(this); + } + } +} diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/GrpcAgentRegistryCallableFactory.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/GrpcAgentRegistryCallableFactory.java new file mode 100644 index 000000000000..a682ec0da295 --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/GrpcAgentRegistryCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the AgentRegistry service API. + * + *

            This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcAgentRegistryCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/GrpcAgentRegistryStub.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/GrpcAgentRegistryStub.java new file mode 100644 index 000000000000..2759de2c93a5 --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/GrpcAgentRegistryStub.java @@ -0,0 +1,1012 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.stub; + +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.FetchAvailableBindingsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListBindingsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListLocationsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListServicesPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchMcpServersPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +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.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.CreateBindingRequest; +import com.google.cloud.agentregistry.v1.CreateServiceRequest; +import com.google.cloud.agentregistry.v1.DeleteBindingRequest; +import com.google.cloud.agentregistry.v1.DeleteServiceRequest; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest; +import com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse; +import com.google.cloud.agentregistry.v1.GetAgentRequest; +import com.google.cloud.agentregistry.v1.GetBindingRequest; +import com.google.cloud.agentregistry.v1.GetEndpointRequest; +import com.google.cloud.agentregistry.v1.GetMcpServerRequest; +import com.google.cloud.agentregistry.v1.GetServiceRequest; +import com.google.cloud.agentregistry.v1.ListAgentsRequest; +import com.google.cloud.agentregistry.v1.ListAgentsResponse; +import com.google.cloud.agentregistry.v1.ListBindingsRequest; +import com.google.cloud.agentregistry.v1.ListBindingsResponse; +import com.google.cloud.agentregistry.v1.ListEndpointsRequest; +import com.google.cloud.agentregistry.v1.ListEndpointsResponse; +import com.google.cloud.agentregistry.v1.ListMcpServersRequest; +import com.google.cloud.agentregistry.v1.ListMcpServersResponse; +import com.google.cloud.agentregistry.v1.ListServicesRequest; +import com.google.cloud.agentregistry.v1.ListServicesResponse; +import com.google.cloud.agentregistry.v1.McpServer; +import com.google.cloud.agentregistry.v1.OperationMetadata; +import com.google.cloud.agentregistry.v1.SearchAgentsRequest; +import com.google.cloud.agentregistry.v1.SearchAgentsResponse; +import com.google.cloud.agentregistry.v1.SearchMcpServersRequest; +import com.google.cloud.agentregistry.v1.SearchMcpServersResponse; +import com.google.cloud.agentregistry.v1.Service; +import com.google.cloud.agentregistry.v1.UpdateBindingRequest; +import com.google.cloud.agentregistry.v1.UpdateServiceRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the AgentRegistry service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcAgentRegistryStub extends AgentRegistryStub { + private static final MethodDescriptor + listAgentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListAgents") + .setRequestMarshaller(ProtoUtils.marshaller(ListAgentsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ListAgentsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + searchAgentsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/SearchAgents") + .setRequestMarshaller(ProtoUtils.marshaller(SearchAgentsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchAgentsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getAgentMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetAgent") + .setRequestMarshaller(ProtoUtils.marshaller(GetAgentRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Agent.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listEndpointsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListEndpoints") + .setRequestMarshaller( + ProtoUtils.marshaller(ListEndpointsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListEndpointsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getEndpointMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetEndpoint") + .setRequestMarshaller(ProtoUtils.marshaller(GetEndpointRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Endpoint.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listMcpServersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListMcpServers") + .setRequestMarshaller( + ProtoUtils.marshaller(ListMcpServersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListMcpServersResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + searchMcpServersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/SearchMcpServers") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchMcpServersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchMcpServersResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getMcpServerMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetMcpServer") + .setRequestMarshaller(ProtoUtils.marshaller(GetMcpServerRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(McpServer.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listServicesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListServices") + .setRequestMarshaller(ProtoUtils.marshaller(ListServicesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListServicesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getServiceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetService") + .setRequestMarshaller(ProtoUtils.marshaller(GetServiceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Service.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createServiceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/CreateService") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateServiceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateServiceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/UpdateService") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateServiceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteServiceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/DeleteService") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteServiceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listBindingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListBindings") + .setRequestMarshaller(ProtoUtils.marshaller(ListBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListBindingsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetBinding") + .setRequestMarshaller(ProtoUtils.marshaller(GetBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Binding.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/CreateBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/UpdateBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/DeleteBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + FetchAvailableBindingsRequest, FetchAvailableBindingsResponse> + fetchAvailableBindingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentregistry.v1.AgentRegistry/FetchAvailableBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(FetchAvailableBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(FetchAvailableBindingsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable listAgentsCallable; + private final UnaryCallable listAgentsPagedCallable; + private final UnaryCallable searchAgentsCallable; + private final UnaryCallable + searchAgentsPagedCallable; + private final UnaryCallable getAgentCallable; + private final UnaryCallable listEndpointsCallable; + private final UnaryCallable + listEndpointsPagedCallable; + private final UnaryCallable getEndpointCallable; + private final UnaryCallable listMcpServersCallable; + private final UnaryCallable + listMcpServersPagedCallable; + private final UnaryCallable + searchMcpServersCallable; + private final UnaryCallable + searchMcpServersPagedCallable; + private final UnaryCallable getMcpServerCallable; + private final UnaryCallable listServicesCallable; + private final UnaryCallable + listServicesPagedCallable; + private final UnaryCallable getServiceCallable; + private final UnaryCallable createServiceCallable; + private final OperationCallable + createServiceOperationCallable; + private final UnaryCallable updateServiceCallable; + private final OperationCallable + updateServiceOperationCallable; + private final UnaryCallable deleteServiceCallable; + private final OperationCallable + deleteServiceOperationCallable; + private final UnaryCallable listBindingsCallable; + private final UnaryCallable + listBindingsPagedCallable; + private final UnaryCallable getBindingCallable; + private final UnaryCallable createBindingCallable; + private final OperationCallable + createBindingOperationCallable; + private final UnaryCallable updateBindingCallable; + private final OperationCallable + updateBindingOperationCallable; + private final UnaryCallable deleteBindingCallable; + private final OperationCallable + deleteBindingOperationCallable; + private final UnaryCallable + fetchAvailableBindingsCallable; + private final UnaryCallable + fetchAvailableBindingsPagedCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAgentRegistryStub create(AgentRegistryStubSettings settings) + throws IOException { + return new GrpcAgentRegistryStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAgentRegistryStub create(ClientContext clientContext) throws IOException { + return new GrpcAgentRegistryStub(AgentRegistryStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAgentRegistryStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAgentRegistryStub( + AgentRegistryStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAgentRegistryStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAgentRegistryStub(AgentRegistryStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcAgentRegistryCallableFactory()); + } + + /** + * Constructs an instance of GrpcAgentRegistryStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAgentRegistryStub( + AgentRegistryStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings listAgentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAgentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings searchAgentsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchAgentsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getAgentTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAgentMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings listEndpointsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listEndpointsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getEndpointTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getEndpointMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listMcpServersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listMcpServersMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + searchMcpServersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(searchMcpServersMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getMcpServerTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getMcpServerMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings listServicesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listServicesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getServiceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getServiceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings createServiceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createServiceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateServiceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateServiceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("service.name", String.valueOf(request.getService().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteServiceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteServiceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings listBindingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings createBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("binding.name", String.valueOf(request.getBinding().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + fetchAvailableBindingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(fetchAvailableBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listAgentsCallable = + callableFactory.createUnaryCallable( + listAgentsTransportSettings, settings.listAgentsSettings(), clientContext); + this.listAgentsPagedCallable = + callableFactory.createPagedCallable( + listAgentsTransportSettings, settings.listAgentsSettings(), clientContext); + this.searchAgentsCallable = + callableFactory.createUnaryCallable( + searchAgentsTransportSettings, settings.searchAgentsSettings(), clientContext); + this.searchAgentsPagedCallable = + callableFactory.createPagedCallable( + searchAgentsTransportSettings, settings.searchAgentsSettings(), clientContext); + this.getAgentCallable = + callableFactory.createUnaryCallable( + getAgentTransportSettings, settings.getAgentSettings(), clientContext); + this.listEndpointsCallable = + callableFactory.createUnaryCallable( + listEndpointsTransportSettings, settings.listEndpointsSettings(), clientContext); + this.listEndpointsPagedCallable = + callableFactory.createPagedCallable( + listEndpointsTransportSettings, settings.listEndpointsSettings(), clientContext); + this.getEndpointCallable = + callableFactory.createUnaryCallable( + getEndpointTransportSettings, settings.getEndpointSettings(), clientContext); + this.listMcpServersCallable = + callableFactory.createUnaryCallable( + listMcpServersTransportSettings, settings.listMcpServersSettings(), clientContext); + this.listMcpServersPagedCallable = + callableFactory.createPagedCallable( + listMcpServersTransportSettings, settings.listMcpServersSettings(), clientContext); + this.searchMcpServersCallable = + callableFactory.createUnaryCallable( + searchMcpServersTransportSettings, settings.searchMcpServersSettings(), clientContext); + this.searchMcpServersPagedCallable = + callableFactory.createPagedCallable( + searchMcpServersTransportSettings, settings.searchMcpServersSettings(), clientContext); + this.getMcpServerCallable = + callableFactory.createUnaryCallable( + getMcpServerTransportSettings, settings.getMcpServerSettings(), clientContext); + this.listServicesCallable = + callableFactory.createUnaryCallable( + listServicesTransportSettings, settings.listServicesSettings(), clientContext); + this.listServicesPagedCallable = + callableFactory.createPagedCallable( + listServicesTransportSettings, settings.listServicesSettings(), clientContext); + this.getServiceCallable = + callableFactory.createUnaryCallable( + getServiceTransportSettings, settings.getServiceSettings(), clientContext); + this.createServiceCallable = + callableFactory.createUnaryCallable( + createServiceTransportSettings, settings.createServiceSettings(), clientContext); + this.createServiceOperationCallable = + callableFactory.createOperationCallable( + createServiceTransportSettings, + settings.createServiceOperationSettings(), + clientContext, + operationsStub); + this.updateServiceCallable = + callableFactory.createUnaryCallable( + updateServiceTransportSettings, settings.updateServiceSettings(), clientContext); + this.updateServiceOperationCallable = + callableFactory.createOperationCallable( + updateServiceTransportSettings, + settings.updateServiceOperationSettings(), + clientContext, + operationsStub); + this.deleteServiceCallable = + callableFactory.createUnaryCallable( + deleteServiceTransportSettings, settings.deleteServiceSettings(), clientContext); + this.deleteServiceOperationCallable = + callableFactory.createOperationCallable( + deleteServiceTransportSettings, + settings.deleteServiceOperationSettings(), + clientContext, + operationsStub); + this.listBindingsCallable = + callableFactory.createUnaryCallable( + listBindingsTransportSettings, settings.listBindingsSettings(), clientContext); + this.listBindingsPagedCallable = + callableFactory.createPagedCallable( + listBindingsTransportSettings, settings.listBindingsSettings(), clientContext); + this.getBindingCallable = + callableFactory.createUnaryCallable( + getBindingTransportSettings, settings.getBindingSettings(), clientContext); + this.createBindingCallable = + callableFactory.createUnaryCallable( + createBindingTransportSettings, settings.createBindingSettings(), clientContext); + this.createBindingOperationCallable = + callableFactory.createOperationCallable( + createBindingTransportSettings, + settings.createBindingOperationSettings(), + clientContext, + operationsStub); + this.updateBindingCallable = + callableFactory.createUnaryCallable( + updateBindingTransportSettings, settings.updateBindingSettings(), clientContext); + this.updateBindingOperationCallable = + callableFactory.createOperationCallable( + updateBindingTransportSettings, + settings.updateBindingOperationSettings(), + clientContext, + operationsStub); + this.deleteBindingCallable = + callableFactory.createUnaryCallable( + deleteBindingTransportSettings, settings.deleteBindingSettings(), clientContext); + this.deleteBindingOperationCallable = + callableFactory.createOperationCallable( + deleteBindingTransportSettings, + settings.deleteBindingOperationSettings(), + clientContext, + operationsStub); + this.fetchAvailableBindingsCallable = + callableFactory.createUnaryCallable( + fetchAvailableBindingsTransportSettings, + settings.fetchAvailableBindingsSettings(), + clientContext); + this.fetchAvailableBindingsPagedCallable = + callableFactory.createPagedCallable( + fetchAvailableBindingsTransportSettings, + settings.fetchAvailableBindingsSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable listAgentsCallable() { + return listAgentsCallable; + } + + @Override + public UnaryCallable listAgentsPagedCallable() { + return listAgentsPagedCallable; + } + + @Override + public UnaryCallable searchAgentsCallable() { + return searchAgentsCallable; + } + + @Override + public UnaryCallable searchAgentsPagedCallable() { + return searchAgentsPagedCallable; + } + + @Override + public UnaryCallable getAgentCallable() { + return getAgentCallable; + } + + @Override + public UnaryCallable listEndpointsCallable() { + return listEndpointsCallable; + } + + @Override + public UnaryCallable + listEndpointsPagedCallable() { + return listEndpointsPagedCallable; + } + + @Override + public UnaryCallable getEndpointCallable() { + return getEndpointCallable; + } + + @Override + public UnaryCallable listMcpServersCallable() { + return listMcpServersCallable; + } + + @Override + public UnaryCallable + listMcpServersPagedCallable() { + return listMcpServersPagedCallable; + } + + @Override + public UnaryCallable + searchMcpServersCallable() { + return searchMcpServersCallable; + } + + @Override + public UnaryCallable + searchMcpServersPagedCallable() { + return searchMcpServersPagedCallable; + } + + @Override + public UnaryCallable getMcpServerCallable() { + return getMcpServerCallable; + } + + @Override + public UnaryCallable listServicesCallable() { + return listServicesCallable; + } + + @Override + public UnaryCallable listServicesPagedCallable() { + return listServicesPagedCallable; + } + + @Override + public UnaryCallable getServiceCallable() { + return getServiceCallable; + } + + @Override + public UnaryCallable createServiceCallable() { + return createServiceCallable; + } + + @Override + public OperationCallable + createServiceOperationCallable() { + return createServiceOperationCallable; + } + + @Override + public UnaryCallable updateServiceCallable() { + return updateServiceCallable; + } + + @Override + public OperationCallable + updateServiceOperationCallable() { + return updateServiceOperationCallable; + } + + @Override + public UnaryCallable deleteServiceCallable() { + return deleteServiceCallable; + } + + @Override + public OperationCallable + deleteServiceOperationCallable() { + return deleteServiceOperationCallable; + } + + @Override + public UnaryCallable listBindingsCallable() { + return listBindingsCallable; + } + + @Override + public UnaryCallable listBindingsPagedCallable() { + return listBindingsPagedCallable; + } + + @Override + public UnaryCallable getBindingCallable() { + return getBindingCallable; + } + + @Override + public UnaryCallable createBindingCallable() { + return createBindingCallable; + } + + @Override + public OperationCallable + createBindingOperationCallable() { + return createBindingOperationCallable; + } + + @Override + public UnaryCallable updateBindingCallable() { + return updateBindingCallable; + } + + @Override + public OperationCallable + updateBindingOperationCallable() { + return updateBindingOperationCallable; + } + + @Override + public UnaryCallable deleteBindingCallable() { + return deleteBindingCallable; + } + + @Override + public OperationCallable + deleteBindingOperationCallable() { + return deleteBindingOperationCallable; + } + + @Override + public UnaryCallable + fetchAvailableBindingsCallable() { + return fetchAvailableBindingsCallable; + } + + @Override + public UnaryCallable + fetchAvailableBindingsPagedCallable() { + return fetchAvailableBindingsPagedCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/HttpJsonAgentRegistryCallableFactory.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/HttpJsonAgentRegistryCallableFactory.java new file mode 100644 index 000000000000..2f41b6daa6cd --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/HttpJsonAgentRegistryCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AgentRegistry service API. + * + *

            This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonAgentRegistryCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/HttpJsonAgentRegistryStub.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/HttpJsonAgentRegistryStub.java new file mode 100644 index 000000000000..fb544297bf6f --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/HttpJsonAgentRegistryStub.java @@ -0,0 +1,1668 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.stub; + +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.FetchAvailableBindingsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListBindingsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListLocationsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListServicesPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchMcpServersPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +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.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.CreateBindingRequest; +import com.google.cloud.agentregistry.v1.CreateServiceRequest; +import com.google.cloud.agentregistry.v1.DeleteBindingRequest; +import com.google.cloud.agentregistry.v1.DeleteServiceRequest; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest; +import com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse; +import com.google.cloud.agentregistry.v1.GetAgentRequest; +import com.google.cloud.agentregistry.v1.GetBindingRequest; +import com.google.cloud.agentregistry.v1.GetEndpointRequest; +import com.google.cloud.agentregistry.v1.GetMcpServerRequest; +import com.google.cloud.agentregistry.v1.GetServiceRequest; +import com.google.cloud.agentregistry.v1.ListAgentsRequest; +import com.google.cloud.agentregistry.v1.ListAgentsResponse; +import com.google.cloud.agentregistry.v1.ListBindingsRequest; +import com.google.cloud.agentregistry.v1.ListBindingsResponse; +import com.google.cloud.agentregistry.v1.ListEndpointsRequest; +import com.google.cloud.agentregistry.v1.ListEndpointsResponse; +import com.google.cloud.agentregistry.v1.ListMcpServersRequest; +import com.google.cloud.agentregistry.v1.ListMcpServersResponse; +import com.google.cloud.agentregistry.v1.ListServicesRequest; +import com.google.cloud.agentregistry.v1.ListServicesResponse; +import com.google.cloud.agentregistry.v1.McpServer; +import com.google.cloud.agentregistry.v1.OperationMetadata; +import com.google.cloud.agentregistry.v1.SearchAgentsRequest; +import com.google.cloud.agentregistry.v1.SearchAgentsResponse; +import com.google.cloud.agentregistry.v1.SearchMcpServersRequest; +import com.google.cloud.agentregistry.v1.SearchMcpServersResponse; +import com.google.cloud.agentregistry.v1.Service; +import com.google.cloud.agentregistry.v1.UpdateBindingRequest; +import com.google.cloud.agentregistry.v1.UpdateServiceRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableMap; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AgentRegistry service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonAgentRegistryStub extends AgentRegistryStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(Binding.getDescriptor()) + .add(Service.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + listAgentsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListAgents") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/agents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAgentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + searchAgentsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/SearchAgents") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/agents:search", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchAgentsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getAgentMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetAgent") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/agents/*}", + 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(Agent.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listEndpointsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListEndpoints") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/endpoints", + 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(ListEndpointsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getEndpointMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetEndpoint") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/endpoints/*}", + 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(Endpoint.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listMcpServersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListMcpServers") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/mcpServers", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListMcpServersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + searchMcpServersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/SearchMcpServers") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/mcpServers:search", + 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, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchMcpServersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getMcpServerMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetMcpServer") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/mcpServers/*}", + 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(McpServer.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listServicesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListServices") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/services", + 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(ListServicesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getServiceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetService") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/services/*}", + 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(Service.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createServiceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/CreateService") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/services", + 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, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "serviceId", request.getServiceId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("service", request.getService(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateServiceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateServiceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/UpdateService") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{service.name=projects/*/locations/*/services/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "service.name", request.getService().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("service", request.getService(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateServiceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteServiceMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/DeleteService") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/services/*}", + 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( + (DeleteServiceRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listBindingsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/ListBindings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/bindings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListBindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/GetBinding") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/bindings/*}", + 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(Binding.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/CreateBinding") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/bindings", + 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, "bindingId", request.getBindingId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("binding", request.getBinding(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + updateBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/UpdateBinding") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{binding.name=projects/*/locations/*/bindings/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "binding.name", request.getBinding().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("binding", request.getBinding(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteBindingMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentregistry.v1.AgentRegistry/DeleteBinding") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/bindings/*}", + 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( + (DeleteBindingRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor< + FetchAvailableBindingsRequest, FetchAvailableBindingsResponse> + fetchAvailableBindingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.agentregistry.v1.AgentRegistry/FetchAvailableBindings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/bindings:fetchAvailable", + 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, "sourceIdentifier", request.getSourceIdentifier()); + serializer.putQueryParam( + fields, "targetIdentifier", request.getTargetIdentifier()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FetchAvailableBindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/locations", + 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(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*}", + 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(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable listAgentsCallable; + private final UnaryCallable listAgentsPagedCallable; + private final UnaryCallable searchAgentsCallable; + private final UnaryCallable + searchAgentsPagedCallable; + private final UnaryCallable getAgentCallable; + private final UnaryCallable listEndpointsCallable; + private final UnaryCallable + listEndpointsPagedCallable; + private final UnaryCallable getEndpointCallable; + private final UnaryCallable listMcpServersCallable; + private final UnaryCallable + listMcpServersPagedCallable; + private final UnaryCallable + searchMcpServersCallable; + private final UnaryCallable + searchMcpServersPagedCallable; + private final UnaryCallable getMcpServerCallable; + private final UnaryCallable listServicesCallable; + private final UnaryCallable + listServicesPagedCallable; + private final UnaryCallable getServiceCallable; + private final UnaryCallable createServiceCallable; + private final OperationCallable + createServiceOperationCallable; + private final UnaryCallable updateServiceCallable; + private final OperationCallable + updateServiceOperationCallable; + private final UnaryCallable deleteServiceCallable; + private final OperationCallable + deleteServiceOperationCallable; + private final UnaryCallable listBindingsCallable; + private final UnaryCallable + listBindingsPagedCallable; + private final UnaryCallable getBindingCallable; + private final UnaryCallable createBindingCallable; + private final OperationCallable + createBindingOperationCallable; + private final UnaryCallable updateBindingCallable; + private final OperationCallable + updateBindingOperationCallable; + private final UnaryCallable deleteBindingCallable; + private final OperationCallable + deleteBindingOperationCallable; + private final UnaryCallable + fetchAvailableBindingsCallable; + private final UnaryCallable + fetchAvailableBindingsPagedCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAgentRegistryStub create(AgentRegistryStubSettings settings) + throws IOException { + return new HttpJsonAgentRegistryStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAgentRegistryStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAgentRegistryStub( + AgentRegistryStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAgentRegistryStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAgentRegistryStub( + AgentRegistryStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAgentRegistryStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAgentRegistryStub( + AgentRegistryStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonAgentRegistryCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAgentRegistryStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAgentRegistryStub( + AgentRegistryStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.CancelOperation", + HttpRule.newBuilder() + .setPost("/v1/{name=projects/*/locations/*/operations/*}:cancel") + .build()) + .put( + "google.longrunning.Operations.DeleteOperation", + HttpRule.newBuilder() + .setDelete("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/operations/*}") + .build()) + .put( + "google.longrunning.Operations.ListOperations", + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*}/operations") + .build()) + .build()); + + HttpJsonCallSettings listAgentsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAgentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings searchAgentsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(searchAgentsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getAgentTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAgentMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listEndpointsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listEndpointsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getEndpointTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getEndpointMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listMcpServersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listMcpServersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + searchMcpServersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(searchMcpServersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getMcpServerTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMcpServerMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings listServicesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listServicesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getServiceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getServiceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings createServiceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createServiceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updateServiceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateServiceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("service.name", String.valueOf(request.getService().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteServiceTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteServiceMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings listBindingsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listBindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings createBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings updateBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("binding.name", String.valueOf(request.getBinding().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteBindingTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteBindingMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + fetchAvailableBindingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(fetchAvailableBindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listAgentsCallable = + callableFactory.createUnaryCallable( + listAgentsTransportSettings, settings.listAgentsSettings(), clientContext); + this.listAgentsPagedCallable = + callableFactory.createPagedCallable( + listAgentsTransportSettings, settings.listAgentsSettings(), clientContext); + this.searchAgentsCallable = + callableFactory.createUnaryCallable( + searchAgentsTransportSettings, settings.searchAgentsSettings(), clientContext); + this.searchAgentsPagedCallable = + callableFactory.createPagedCallable( + searchAgentsTransportSettings, settings.searchAgentsSettings(), clientContext); + this.getAgentCallable = + callableFactory.createUnaryCallable( + getAgentTransportSettings, settings.getAgentSettings(), clientContext); + this.listEndpointsCallable = + callableFactory.createUnaryCallable( + listEndpointsTransportSettings, settings.listEndpointsSettings(), clientContext); + this.listEndpointsPagedCallable = + callableFactory.createPagedCallable( + listEndpointsTransportSettings, settings.listEndpointsSettings(), clientContext); + this.getEndpointCallable = + callableFactory.createUnaryCallable( + getEndpointTransportSettings, settings.getEndpointSettings(), clientContext); + this.listMcpServersCallable = + callableFactory.createUnaryCallable( + listMcpServersTransportSettings, settings.listMcpServersSettings(), clientContext); + this.listMcpServersPagedCallable = + callableFactory.createPagedCallable( + listMcpServersTransportSettings, settings.listMcpServersSettings(), clientContext); + this.searchMcpServersCallable = + callableFactory.createUnaryCallable( + searchMcpServersTransportSettings, settings.searchMcpServersSettings(), clientContext); + this.searchMcpServersPagedCallable = + callableFactory.createPagedCallable( + searchMcpServersTransportSettings, settings.searchMcpServersSettings(), clientContext); + this.getMcpServerCallable = + callableFactory.createUnaryCallable( + getMcpServerTransportSettings, settings.getMcpServerSettings(), clientContext); + this.listServicesCallable = + callableFactory.createUnaryCallable( + listServicesTransportSettings, settings.listServicesSettings(), clientContext); + this.listServicesPagedCallable = + callableFactory.createPagedCallable( + listServicesTransportSettings, settings.listServicesSettings(), clientContext); + this.getServiceCallable = + callableFactory.createUnaryCallable( + getServiceTransportSettings, settings.getServiceSettings(), clientContext); + this.createServiceCallable = + callableFactory.createUnaryCallable( + createServiceTransportSettings, settings.createServiceSettings(), clientContext); + this.createServiceOperationCallable = + callableFactory.createOperationCallable( + createServiceTransportSettings, + settings.createServiceOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateServiceCallable = + callableFactory.createUnaryCallable( + updateServiceTransportSettings, settings.updateServiceSettings(), clientContext); + this.updateServiceOperationCallable = + callableFactory.createOperationCallable( + updateServiceTransportSettings, + settings.updateServiceOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteServiceCallable = + callableFactory.createUnaryCallable( + deleteServiceTransportSettings, settings.deleteServiceSettings(), clientContext); + this.deleteServiceOperationCallable = + callableFactory.createOperationCallable( + deleteServiceTransportSettings, + settings.deleteServiceOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listBindingsCallable = + callableFactory.createUnaryCallable( + listBindingsTransportSettings, settings.listBindingsSettings(), clientContext); + this.listBindingsPagedCallable = + callableFactory.createPagedCallable( + listBindingsTransportSettings, settings.listBindingsSettings(), clientContext); + this.getBindingCallable = + callableFactory.createUnaryCallable( + getBindingTransportSettings, settings.getBindingSettings(), clientContext); + this.createBindingCallable = + callableFactory.createUnaryCallable( + createBindingTransportSettings, settings.createBindingSettings(), clientContext); + this.createBindingOperationCallable = + callableFactory.createOperationCallable( + createBindingTransportSettings, + settings.createBindingOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.updateBindingCallable = + callableFactory.createUnaryCallable( + updateBindingTransportSettings, settings.updateBindingSettings(), clientContext); + this.updateBindingOperationCallable = + callableFactory.createOperationCallable( + updateBindingTransportSettings, + settings.updateBindingOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteBindingCallable = + callableFactory.createUnaryCallable( + deleteBindingTransportSettings, settings.deleteBindingSettings(), clientContext); + this.deleteBindingOperationCallable = + callableFactory.createOperationCallable( + deleteBindingTransportSettings, + settings.deleteBindingOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.fetchAvailableBindingsCallable = + callableFactory.createUnaryCallable( + fetchAvailableBindingsTransportSettings, + settings.fetchAvailableBindingsSettings(), + clientContext); + this.fetchAvailableBindingsPagedCallable = + callableFactory.createPagedCallable( + fetchAvailableBindingsTransportSettings, + settings.fetchAvailableBindingsSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listAgentsMethodDescriptor); + methodDescriptors.add(searchAgentsMethodDescriptor); + methodDescriptors.add(getAgentMethodDescriptor); + methodDescriptors.add(listEndpointsMethodDescriptor); + methodDescriptors.add(getEndpointMethodDescriptor); + methodDescriptors.add(listMcpServersMethodDescriptor); + methodDescriptors.add(searchMcpServersMethodDescriptor); + methodDescriptors.add(getMcpServerMethodDescriptor); + methodDescriptors.add(listServicesMethodDescriptor); + methodDescriptors.add(getServiceMethodDescriptor); + methodDescriptors.add(createServiceMethodDescriptor); + methodDescriptors.add(updateServiceMethodDescriptor); + methodDescriptors.add(deleteServiceMethodDescriptor); + methodDescriptors.add(listBindingsMethodDescriptor); + methodDescriptors.add(getBindingMethodDescriptor); + methodDescriptors.add(createBindingMethodDescriptor); + methodDescriptors.add(updateBindingMethodDescriptor); + methodDescriptors.add(deleteBindingMethodDescriptor); + methodDescriptors.add(fetchAvailableBindingsMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable listAgentsCallable() { + return listAgentsCallable; + } + + @Override + public UnaryCallable listAgentsPagedCallable() { + return listAgentsPagedCallable; + } + + @Override + public UnaryCallable searchAgentsCallable() { + return searchAgentsCallable; + } + + @Override + public UnaryCallable searchAgentsPagedCallable() { + return searchAgentsPagedCallable; + } + + @Override + public UnaryCallable getAgentCallable() { + return getAgentCallable; + } + + @Override + public UnaryCallable listEndpointsCallable() { + return listEndpointsCallable; + } + + @Override + public UnaryCallable + listEndpointsPagedCallable() { + return listEndpointsPagedCallable; + } + + @Override + public UnaryCallable getEndpointCallable() { + return getEndpointCallable; + } + + @Override + public UnaryCallable listMcpServersCallable() { + return listMcpServersCallable; + } + + @Override + public UnaryCallable + listMcpServersPagedCallable() { + return listMcpServersPagedCallable; + } + + @Override + public UnaryCallable + searchMcpServersCallable() { + return searchMcpServersCallable; + } + + @Override + public UnaryCallable + searchMcpServersPagedCallable() { + return searchMcpServersPagedCallable; + } + + @Override + public UnaryCallable getMcpServerCallable() { + return getMcpServerCallable; + } + + @Override + public UnaryCallable listServicesCallable() { + return listServicesCallable; + } + + @Override + public UnaryCallable listServicesPagedCallable() { + return listServicesPagedCallable; + } + + @Override + public UnaryCallable getServiceCallable() { + return getServiceCallable; + } + + @Override + public UnaryCallable createServiceCallable() { + return createServiceCallable; + } + + @Override + public OperationCallable + createServiceOperationCallable() { + return createServiceOperationCallable; + } + + @Override + public UnaryCallable updateServiceCallable() { + return updateServiceCallable; + } + + @Override + public OperationCallable + updateServiceOperationCallable() { + return updateServiceOperationCallable; + } + + @Override + public UnaryCallable deleteServiceCallable() { + return deleteServiceCallable; + } + + @Override + public OperationCallable + deleteServiceOperationCallable() { + return deleteServiceOperationCallable; + } + + @Override + public UnaryCallable listBindingsCallable() { + return listBindingsCallable; + } + + @Override + public UnaryCallable listBindingsPagedCallable() { + return listBindingsPagedCallable; + } + + @Override + public UnaryCallable getBindingCallable() { + return getBindingCallable; + } + + @Override + public UnaryCallable createBindingCallable() { + return createBindingCallable; + } + + @Override + public OperationCallable + createBindingOperationCallable() { + return createBindingOperationCallable; + } + + @Override + public UnaryCallable updateBindingCallable() { + return updateBindingCallable; + } + + @Override + public OperationCallable + updateBindingOperationCallable() { + return updateBindingOperationCallable; + } + + @Override + public UnaryCallable deleteBindingCallable() { + return deleteBindingCallable; + } + + @Override + public OperationCallable + deleteBindingOperationCallable() { + return deleteBindingOperationCallable; + } + + @Override + public UnaryCallable + fetchAvailableBindingsCallable() { + return fetchAvailableBindingsCallable; + } + + @Override + public UnaryCallable + fetchAvailableBindingsPagedCallable() { + return fetchAvailableBindingsPagedCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/Version.java b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/Version.java new file mode 100644 index 000000000000..c62f0e440774 --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry/src/main/java/com/google/cloud/agentregistry/v1/stub/Version.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.stub; + +import com.google.api.core.InternalApi; + +@InternalApi("For internal use only") +final class Version { + // {x-version-update-start:google-cloud-agentregistry:current} + static final String VERSION = "0.0.0-SNAPSHOT"; + // {x-version-update-end} + +} diff --git a/java-agentregistry/google-cloud-agentregistry/src/main/resources/META-INF/native-image/com.google.cloud.agentregistry.v1/reflect-config.json b/java-agentregistry/google-cloud-agentregistry/src/main/resources/META-INF/native-image/com.google.cloud.agentregistry.v1/reflect-config.json new file mode 100644 index 000000000000..56a42f75c994 --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry/src/main/resources/META-INF/native-image/com.google.cloud.agentregistry.v1/reflect-config.json @@ -0,0 +1,2567 @@ +[ + { + "name": "com.google.api.BatchingConfigProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingConfigProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FlowControlLimitExceededBehaviorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": 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.agentregistry.v1.Agent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Agent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Agent$Card", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Agent$Card$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Agent$Card$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Agent$Protocol", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Agent$Protocol$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Agent$Protocol$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Agent$Skill", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Agent$Skill$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Binding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Binding$AuthProviderBinding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Binding$AuthProviderBinding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Binding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Binding$Source", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Binding$Source$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Binding$Target", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Binding$Target$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.CreateBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.CreateBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.CreateServiceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.CreateServiceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.DeleteBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.DeleteBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.DeleteServiceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.DeleteServiceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Endpoint", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Endpoint$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.GetAgentRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.GetAgentRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.GetBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.GetBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.GetEndpointRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.GetEndpointRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.GetMcpServerRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.GetMcpServerRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.GetServiceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.GetServiceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Interface", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Interface$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Interface$ProtocolBinding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListAgentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListAgentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListAgentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListAgentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListBindingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListBindingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListBindingsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListBindingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListEndpointsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListEndpointsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListEndpointsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListEndpointsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListMcpServersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListMcpServersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListMcpServersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListMcpServersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListServicesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListServicesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListServicesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.ListServicesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.McpServer", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.McpServer$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.McpServer$Tool", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.McpServer$Tool$Annotations", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.McpServer$Tool$Annotations$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.McpServer$Tool$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.OperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.OperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchAgentsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchAgentsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchAgentsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchAgentsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchMcpServersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchMcpServersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchMcpServersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.SearchMcpServersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$AgentSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$AgentSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$AgentSpec$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$EndpointSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$EndpointSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$EndpointSpec$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$McpServerSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$McpServerSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.Service$McpServerSpec$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.UpdateBindingRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.UpdateBindingRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.UpdateServiceRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentregistry.v1.UpdateServiceRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.CancelOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.DeleteOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.GetOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.ListOperationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.OperationInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.longrunning.WaitOperationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnforceNamingStyle", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$DefaultSymbolVisibility", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SymbolVisibility", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.ListValue$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.NullValue", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Struct$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.rpc.Status$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/AgentRegistryClientHttpJsonTest.java b/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/AgentRegistryClientHttpJsonTest.java new file mode 100644 index 000000000000..af744bb879bc --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/AgentRegistryClientHttpJsonTest.java @@ -0,0 +1,2098 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1; + +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.FetchAvailableBindingsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListBindingsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListLocationsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListServicesPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchMcpServersPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.agentregistry.v1.stub.HttpJsonAgentRegistryStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Struct; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AgentRegistryClientHttpJsonTest { + private static MockHttpService mockService; + private static AgentRegistryClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAgentRegistryStub.getMethodDescriptors(), + AgentRegistrySettings.getDefaultEndpoint()); + AgentRegistrySettings settings = + AgentRegistrySettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AgentRegistrySettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AgentRegistryClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listAgentsTest() throws Exception { + Agent responsesElement = Agent.newBuilder().build(); + ListAgentsResponse expectedResponse = + ListAgentsResponse.newBuilder() + .setNextPageToken("") + .addAllAgents(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAgentsPagedResponse pagedListResponse = client.listAgents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentsList().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 listAgentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAgents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAgentsTest2() throws Exception { + Agent responsesElement = Agent.newBuilder().build(); + ListAgentsResponse expectedResponse = + ListAgentsResponse.newBuilder() + .setNextPageToken("") + .addAllAgents(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAgentsPagedResponse pagedListResponse = client.listAgents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentsList().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 listAgentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listAgents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchAgentsTest() throws Exception { + Agent responsesElement = Agent.newBuilder().build(); + SearchAgentsResponse expectedResponse = + SearchAgentsResponse.newBuilder() + .setNextPageToken("") + .addAllAgents(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + SearchAgentsPagedResponse pagedListResponse = client.searchAgents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentsList().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 searchAgentsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.searchAgents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchAgentsTest2() throws Exception { + Agent responsesElement = Agent.newBuilder().build(); + SearchAgentsResponse expectedResponse = + SearchAgentsResponse.newBuilder() + .setNextPageToken("") + .addAllAgents(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + SearchAgentsPagedResponse pagedListResponse = client.searchAgents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentsList().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 searchAgentsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.searchAgents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAgentTest() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + .setAgentId("agentId-1060987136") + .setLocation("location1901043637") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setVersion("version351608024") + .addAllProtocols(new ArrayList()) + .addAllSkills(new ArrayList()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .setCard(Agent.Card.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); + + Agent actualResponse = client.getAgent(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 getAgentExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); + client.getAgent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAgentTest2() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + .setAgentId("agentId-1060987136") + .setLocation("location1901043637") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setVersion("version351608024") + .addAllProtocols(new ArrayList()) + .addAllSkills(new ArrayList()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .setCard(Agent.Card.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-2930/locations/location-2930/agents/agent-2930"; + + Agent actualResponse = client.getAgent(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 getAgentExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-2930/locations/location-2930/agents/agent-2930"; + client.getAgent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEndpointsTest() throws Exception { + Endpoint responsesElement = Endpoint.newBuilder().build(); + ListEndpointsResponse expectedResponse = + ListEndpointsResponse.newBuilder() + .setNextPageToken("") + .addAllEndpoints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListEndpointsPagedResponse pagedListResponse = client.listEndpoints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEndpointsList().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 listEndpointsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listEndpoints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEndpointsTest2() throws Exception { + Endpoint responsesElement = Endpoint.newBuilder().build(); + ListEndpointsResponse expectedResponse = + ListEndpointsResponse.newBuilder() + .setNextPageToken("") + .addAllEndpoints(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListEndpointsPagedResponse pagedListResponse = client.listEndpoints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEndpointsList().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 listEndpointsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listEndpoints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEndpointTest() throws Exception { + Endpoint expectedResponse = + Endpoint.newBuilder() + .setName(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) + .setEndpointId("endpointId-1837754992") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); + + Endpoint actualResponse = client.getEndpoint(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 getEndpointExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); + client.getEndpoint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEndpointTest2() throws Exception { + Endpoint expectedResponse = + Endpoint.newBuilder() + .setName(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) + .setEndpointId("endpointId-1837754992") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-6164/locations/location-6164/endpoints/endpoint-6164"; + + Endpoint actualResponse = client.getEndpoint(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 getEndpointExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-6164/locations/location-6164/endpoints/endpoint-6164"; + client.getEndpoint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMcpServersTest() throws Exception { + McpServer responsesElement = McpServer.newBuilder().build(); + ListMcpServersResponse expectedResponse = + ListMcpServersResponse.newBuilder() + .setNextPageToken("") + .addAllMcpServers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListMcpServersPagedResponse pagedListResponse = client.listMcpServers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMcpServersList().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 listMcpServersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listMcpServers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMcpServersTest2() throws Exception { + McpServer responsesElement = McpServer.newBuilder().build(); + ListMcpServersResponse expectedResponse = + ListMcpServersResponse.newBuilder() + .setNextPageToken("") + .addAllMcpServers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListMcpServersPagedResponse pagedListResponse = client.listMcpServers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMcpServersList().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 listMcpServersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listMcpServers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchMcpServersTest() throws Exception { + McpServer responsesElement = McpServer.newBuilder().build(); + SearchMcpServersResponse expectedResponse = + SearchMcpServersResponse.newBuilder() + .setNextPageToken("") + .addAllMcpServers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + SearchMcpServersPagedResponse pagedListResponse = client.searchMcpServers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMcpServersList().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 searchMcpServersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.searchMcpServers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchMcpServersTest2() throws Exception { + McpServer responsesElement = McpServer.newBuilder().build(); + SearchMcpServersResponse expectedResponse = + SearchMcpServersResponse.newBuilder() + .setNextPageToken("") + .addAllMcpServers(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + SearchMcpServersPagedResponse pagedListResponse = client.searchMcpServers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMcpServersList().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 searchMcpServersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.searchMcpServers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMcpServerTest() throws Exception { + McpServer expectedResponse = + McpServer.newBuilder() + .setName(McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString()) + .setMcpServerId("mcpServerId298140536") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .addAllTools(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + McpServerName name = McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]"); + + McpServer actualResponse = client.getMcpServer(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 getMcpServerExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + McpServerName name = McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]"); + client.getMcpServer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMcpServerTest2() throws Exception { + McpServer expectedResponse = + McpServer.newBuilder() + .setName(McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString()) + .setMcpServerId("mcpServerId298140536") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .addAllTools(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5974/locations/location-5974/mcpServers/mcpServer-5974"; + + McpServer actualResponse = client.getMcpServer(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 getMcpServerExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5974/locations/location-5974/mcpServers/mcpServer-5974"; + client.getMcpServer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServicesTest() throws Exception { + Service responsesElement = Service.newBuilder().build(); + ListServicesResponse expectedResponse = + ListServicesResponse.newBuilder() + .setNextPageToken("") + .addAllServices(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListServicesPagedResponse pagedListResponse = client.listServices(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServicesList().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 listServicesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listServices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServicesTest2() throws Exception { + Service responsesElement = Service.newBuilder().build(); + ListServicesResponse expectedResponse = + ListServicesResponse.newBuilder() + .setNextPageToken("") + .addAllServices(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListServicesPagedResponse pagedListResponse = client.listServices(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServicesList().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 listServicesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listServices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getServiceTest() throws Exception { + Service expectedResponse = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setRegistryResource("registryResource1400949611") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + + Service actualResponse = client.getService(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 getServiceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + client.getService(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getServiceTest2() throws Exception { + Service expectedResponse = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setRegistryResource("registryResource1400949611") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-7842/locations/location-7842/services/service-7842"; + + Service actualResponse = client.getService(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 getServiceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7842/locations/location-7842/services/service-7842"; + client.getService(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createServiceTest() throws Exception { + Service expectedResponse = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setRegistryResource("registryResource1400949611") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Service service = Service.newBuilder().build(); + String serviceId = "serviceId-194185552"; + + Service actualResponse = client.createServiceAsync(parent, service, serviceId).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 createServiceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Service service = Service.newBuilder().build(); + String serviceId = "serviceId-194185552"; + client.createServiceAsync(parent, service, serviceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createServiceTest2() throws Exception { + Service expectedResponse = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setRegistryResource("registryResource1400949611") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Service service = Service.newBuilder().build(); + String serviceId = "serviceId-194185552"; + + Service actualResponse = client.createServiceAsync(parent, service, serviceId).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 createServiceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Service service = Service.newBuilder().build(); + String serviceId = "serviceId-194185552"; + client.createServiceAsync(parent, service, serviceId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateServiceTest() throws Exception { + Service expectedResponse = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setRegistryResource("registryResource1400949611") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Service service = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setRegistryResource("registryResource1400949611") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Service actualResponse = client.updateServiceAsync(service, 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 updateServiceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Service service = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setRegistryResource("registryResource1400949611") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateServiceAsync(service, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteServiceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + + client.deleteServiceAsync(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 deleteServiceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + client.deleteServiceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteServiceTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-7842/locations/location-7842/services/service-7842"; + + client.deleteServiceAsync(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 deleteServiceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-7842/locations/location-7842/services/service-7842"; + client.deleteServiceAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listBindingsTest() throws Exception { + Binding responsesElement = Binding.newBuilder().build(); + ListBindingsResponse expectedResponse = + ListBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllBindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListBindingsPagedResponse pagedListResponse = client.listBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBindingsList().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 listBindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBindingsTest2() throws Exception { + Binding responsesElement = Binding.newBuilder().build(); + ListBindingsResponse expectedResponse = + ListBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllBindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListBindingsPagedResponse pagedListResponse = client.listBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBindingsList().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 listBindingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBindingTest() throws Exception { + Binding expectedResponse = + Binding.newBuilder() + .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSource(Binding.Source.newBuilder().build()) + .setTarget(Binding.Target.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + BindingName name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]"); + + Binding actualResponse = client.getBinding(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 getBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BindingName name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]"); + client.getBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBindingTest2() throws Exception { + Binding expectedResponse = + Binding.newBuilder() + .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSource(Binding.Source.newBuilder().build()) + .setTarget(Binding.Target.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5678/locations/location-5678/bindings/binding-5678"; + + Binding actualResponse = client.getBinding(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 getBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5678/locations/location-5678/bindings/binding-5678"; + client.getBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBindingTest() throws Exception { + Binding expectedResponse = + Binding.newBuilder() + .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSource(Binding.Source.newBuilder().build()) + .setTarget(Binding.Target.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Binding binding = Binding.newBuilder().build(); + String bindingId = "bindingId-920966528"; + + Binding actualResponse = client.createBindingAsync(parent, binding, bindingId).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 createBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Binding binding = Binding.newBuilder().build(); + String bindingId = "bindingId-920966528"; + client.createBindingAsync(parent, binding, bindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createBindingTest2() throws Exception { + Binding expectedResponse = + Binding.newBuilder() + .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSource(Binding.Source.newBuilder().build()) + .setTarget(Binding.Target.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + Binding binding = Binding.newBuilder().build(); + String bindingId = "bindingId-920966528"; + + Binding actualResponse = client.createBindingAsync(parent, binding, bindingId).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 createBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + Binding binding = Binding.newBuilder().build(); + String bindingId = "bindingId-920966528"; + client.createBindingAsync(parent, binding, bindingId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void updateBindingTest() throws Exception { + Binding expectedResponse = + Binding.newBuilder() + .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSource(Binding.Source.newBuilder().build()) + .setTarget(Binding.Target.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + Binding binding = + Binding.newBuilder() + .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSource(Binding.Source.newBuilder().build()) + .setTarget(Binding.Target.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Binding actualResponse = client.updateBindingAsync(binding, 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 updateBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Binding binding = + Binding.newBuilder() + .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSource(Binding.Source.newBuilder().build()) + .setTarget(Binding.Target.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBindingAsync(binding, updateMask).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + BindingName name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]"); + + client.deleteBindingAsync(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 deleteBindingExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BindingName name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]"); + client.deleteBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-5678/locations/location-5678/bindings/binding-5678"; + + client.deleteBindingAsync(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 deleteBindingExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-5678/locations/location-5678/bindings/binding-5678"; + client.deleteBindingAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void fetchAvailableBindingsTest() throws Exception { + Binding responsesElement = Binding.newBuilder().build(); + FetchAvailableBindingsResponse expectedResponse = + FetchAvailableBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllBindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + FetchAvailableBindingsPagedResponse pagedListResponse = client.fetchAvailableBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBindingsList().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 fetchAvailableBindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.fetchAvailableBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchAvailableBindingsTest2() throws Exception { + Binding responsesElement = Binding.newBuilder().build(); + FetchAvailableBindingsResponse expectedResponse = + FetchAvailableBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllBindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + FetchAvailableBindingsPagedResponse pagedListResponse = client.fetchAvailableBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBindingsList().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 fetchAvailableBindingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.fetchAvailableBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().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 listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(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 getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/AgentRegistryClientTest.java b/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/AgentRegistryClientTest.java new file mode 100644 index 000000000000..80f6d7eb86f1 --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/AgentRegistryClientTest.java @@ -0,0 +1,1880 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1; + +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.FetchAvailableBindingsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListBindingsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListEndpointsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListLocationsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListMcpServersPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.ListServicesPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchAgentsPagedResponse; +import static com.google.cloud.agentregistry.v1.AgentRegistryClient.SearchMcpServersPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +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.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Struct; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +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; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AgentRegistryClientTest { + private static MockAgentRegistry mockAgentRegistry; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AgentRegistryClient client; + + @BeforeClass + public static void startStaticServer() { + mockAgentRegistry = new MockAgentRegistry(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockAgentRegistry, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AgentRegistrySettings settings = + AgentRegistrySettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AgentRegistryClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listAgentsTest() throws Exception { + Agent responsesElement = Agent.newBuilder().build(); + ListAgentsResponse expectedResponse = + ListAgentsResponse.newBuilder() + .setNextPageToken("") + .addAllAgents(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAgentsPagedResponse pagedListResponse = client.listAgents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAgentsRequest actualRequest = ((ListAgentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAgentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAgents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAgentsTest2() throws Exception { + Agent responsesElement = Agent.newBuilder().build(); + ListAgentsResponse expectedResponse = + ListAgentsResponse.newBuilder() + .setNextPageToken("") + .addAllAgents(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAgentsPagedResponse pagedListResponse = client.listAgents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAgentsRequest actualRequest = ((ListAgentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAgentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAgents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchAgentsTest() throws Exception { + Agent responsesElement = Agent.newBuilder().build(); + SearchAgentsResponse expectedResponse = + SearchAgentsResponse.newBuilder() + .setNextPageToken("") + .addAllAgents(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + SearchAgentsPagedResponse pagedListResponse = client.searchAgents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchAgentsRequest actualRequest = ((SearchAgentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchAgentsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.searchAgents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchAgentsTest2() throws Exception { + Agent responsesElement = Agent.newBuilder().build(); + SearchAgentsResponse expectedResponse = + SearchAgentsResponse.newBuilder() + .setNextPageToken("") + .addAllAgents(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + SearchAgentsPagedResponse pagedListResponse = client.searchAgents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAgentsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchAgentsRequest actualRequest = ((SearchAgentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchAgentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + client.searchAgents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAgentTest() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + .setAgentId("agentId-1060987136") + .setLocation("location1901043637") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setVersion("version351608024") + .addAllProtocols(new ArrayList()) + .addAllSkills(new ArrayList()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .setCard(Agent.Card.newBuilder().build()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); + + Agent actualResponse = client.getAgent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAgentRequest actualRequest = ((GetAgentRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAgentExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); + client.getAgent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAgentTest2() throws Exception { + Agent expectedResponse = + Agent.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + .setAgentId("agentId-1060987136") + .setLocation("location1901043637") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setVersion("version351608024") + .addAllProtocols(new ArrayList()) + .addAllSkills(new ArrayList()) + .setUid("uid115792") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .setCard(Agent.Card.newBuilder().build()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String name = "name3373707"; + + Agent actualResponse = client.getAgent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAgentRequest actualRequest = ((GetAgentRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAgentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String name = "name3373707"; + client.getAgent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEndpointsTest() throws Exception { + Endpoint responsesElement = Endpoint.newBuilder().build(); + ListEndpointsResponse expectedResponse = + ListEndpointsResponse.newBuilder() + .setNextPageToken("") + .addAllEndpoints(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListEndpointsPagedResponse pagedListResponse = client.listEndpoints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEndpointsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEndpointsRequest actualRequest = ((ListEndpointsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEndpointsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listEndpoints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listEndpointsTest2() throws Exception { + Endpoint responsesElement = Endpoint.newBuilder().build(); + ListEndpointsResponse expectedResponse = + ListEndpointsResponse.newBuilder() + .setNextPageToken("") + .addAllEndpoints(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListEndpointsPagedResponse pagedListResponse = client.listEndpoints(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getEndpointsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListEndpointsRequest actualRequest = ((ListEndpointsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listEndpointsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + client.listEndpoints(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEndpointTest() throws Exception { + Endpoint expectedResponse = + Endpoint.newBuilder() + .setName(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) + .setEndpointId("endpointId-1837754992") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); + + Endpoint actualResponse = client.getEndpoint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetEndpointRequest actualRequest = ((GetEndpointRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getEndpointExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); + client.getEndpoint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getEndpointTest2() throws Exception { + Endpoint expectedResponse = + Endpoint.newBuilder() + .setName(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) + .setEndpointId("endpointId-1837754992") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String name = "name3373707"; + + Endpoint actualResponse = client.getEndpoint(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetEndpointRequest actualRequest = ((GetEndpointRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getEndpointExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String name = "name3373707"; + client.getEndpoint(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMcpServersTest() throws Exception { + McpServer responsesElement = McpServer.newBuilder().build(); + ListMcpServersResponse expectedResponse = + ListMcpServersResponse.newBuilder() + .setNextPageToken("") + .addAllMcpServers(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListMcpServersPagedResponse pagedListResponse = client.listMcpServers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMcpServersList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMcpServersRequest actualRequest = ((ListMcpServersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMcpServersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listMcpServers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMcpServersTest2() throws Exception { + McpServer responsesElement = McpServer.newBuilder().build(); + ListMcpServersResponse expectedResponse = + ListMcpServersResponse.newBuilder() + .setNextPageToken("") + .addAllMcpServers(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMcpServersPagedResponse pagedListResponse = client.listMcpServers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMcpServersList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMcpServersRequest actualRequest = ((ListMcpServersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMcpServersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMcpServers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchMcpServersTest() throws Exception { + McpServer responsesElement = McpServer.newBuilder().build(); + SearchMcpServersResponse expectedResponse = + SearchMcpServersResponse.newBuilder() + .setNextPageToken("") + .addAllMcpServers(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + SearchMcpServersPagedResponse pagedListResponse = client.searchMcpServers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMcpServersList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchMcpServersRequest actualRequest = ((SearchMcpServersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchMcpServersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.searchMcpServers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchMcpServersTest2() throws Exception { + McpServer responsesElement = McpServer.newBuilder().build(); + SearchMcpServersResponse expectedResponse = + SearchMcpServersResponse.newBuilder() + .setNextPageToken("") + .addAllMcpServers(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + SearchMcpServersPagedResponse pagedListResponse = client.searchMcpServers(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getMcpServersList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchMcpServersRequest actualRequest = ((SearchMcpServersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchMcpServersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + client.searchMcpServers(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMcpServerTest() throws Exception { + McpServer expectedResponse = + McpServer.newBuilder() + .setName(McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString()) + .setMcpServerId("mcpServerId298140536") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .addAllTools(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + McpServerName name = McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]"); + + McpServer actualResponse = client.getMcpServer(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMcpServerRequest actualRequest = ((GetMcpServerRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMcpServerExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + McpServerName name = McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]"); + client.getMcpServer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMcpServerTest2() throws Exception { + McpServer expectedResponse = + McpServer.newBuilder() + .setName(McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString()) + .setMcpServerId("mcpServerId298140536") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .addAllTools(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllAttributes(new HashMap()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String name = "name3373707"; + + McpServer actualResponse = client.getMcpServer(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMcpServerRequest actualRequest = ((GetMcpServerRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMcpServerExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String name = "name3373707"; + client.getMcpServer(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServicesTest() throws Exception { + Service responsesElement = Service.newBuilder().build(); + ListServicesResponse expectedResponse = + ListServicesResponse.newBuilder() + .setNextPageToken("") + .addAllServices(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListServicesPagedResponse pagedListResponse = client.listServices(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServicesList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListServicesRequest actualRequest = ((ListServicesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listServicesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listServices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listServicesTest2() throws Exception { + Service responsesElement = Service.newBuilder().build(); + ListServicesResponse expectedResponse = + ListServicesResponse.newBuilder() + .setNextPageToken("") + .addAllServices(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListServicesPagedResponse pagedListResponse = client.listServices(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getServicesList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListServicesRequest actualRequest = ((ListServicesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listServicesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + client.listServices(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getServiceTest() throws Exception { + Service expectedResponse = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setRegistryResource("registryResource1400949611") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + + Service actualResponse = client.getService(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetServiceRequest actualRequest = ((GetServiceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getServiceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + client.getService(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getServiceTest2() throws Exception { + Service expectedResponse = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setRegistryResource("registryResource1400949611") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String name = "name3373707"; + + Service actualResponse = client.getService(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetServiceRequest actualRequest = ((GetServiceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getServiceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String name = "name3373707"; + client.getService(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createServiceTest() throws Exception { + Service expectedResponse = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setRegistryResource("registryResource1400949611") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Service service = Service.newBuilder().build(); + String serviceId = "serviceId-194185552"; + + Service actualResponse = client.createServiceAsync(parent, service, serviceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateServiceRequest actualRequest = ((CreateServiceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(service, actualRequest.getService()); + Assert.assertEquals(serviceId, actualRequest.getServiceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createServiceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Service service = Service.newBuilder().build(); + String serviceId = "serviceId-194185552"; + client.createServiceAsync(parent, service, serviceId).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 createServiceTest2() throws Exception { + Service expectedResponse = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setRegistryResource("registryResource1400949611") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + String parent = "parent-995424086"; + Service service = Service.newBuilder().build(); + String serviceId = "serviceId-194185552"; + + Service actualResponse = client.createServiceAsync(parent, service, serviceId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateServiceRequest actualRequest = ((CreateServiceRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(service, actualRequest.getService()); + Assert.assertEquals(serviceId, actualRequest.getServiceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createServiceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + Service service = Service.newBuilder().build(); + String serviceId = "serviceId-194185552"; + client.createServiceAsync(parent, service, serviceId).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 updateServiceTest() throws Exception { + Service expectedResponse = + Service.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllInterfaces(new ArrayList()) + .setRegistryResource("registryResource1400949611") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + Service service = Service.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Service actualResponse = client.updateServiceAsync(service, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateServiceRequest actualRequest = ((UpdateServiceRequest) actualRequests.get(0)); + + Assert.assertEquals(service, actualRequest.getService()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateServiceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + Service service = Service.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateServiceAsync(service, 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 deleteServiceTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + + client.deleteServiceAsync(name).get(); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteServiceRequest actualRequest = ((DeleteServiceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteServiceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + client.deleteServiceAsync(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 deleteServiceTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteServiceTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteServiceAsync(name).get(); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteServiceRequest actualRequest = ((DeleteServiceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteServiceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String name = "name3373707"; + client.deleteServiceAsync(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 listBindingsTest() throws Exception { + Binding responsesElement = Binding.newBuilder().build(); + ListBindingsResponse expectedResponse = + ListBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllBindings(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListBindingsPagedResponse pagedListResponse = client.listBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBindingsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBindingsRequest actualRequest = ((ListBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBindingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listBindingsTest2() throws Exception { + Binding responsesElement = Binding.newBuilder().build(); + ListBindingsResponse expectedResponse = + ListBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllBindings(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListBindingsPagedResponse pagedListResponse = client.listBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBindingsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListBindingsRequest actualRequest = ((ListBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listBindingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + client.listBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBindingTest() throws Exception { + Binding expectedResponse = + Binding.newBuilder() + .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSource(Binding.Source.newBuilder().build()) + .setTarget(Binding.Target.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + BindingName name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]"); + + Binding actualResponse = client.getBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBindingRequest actualRequest = ((GetBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + BindingName name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]"); + client.getBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getBindingTest2() throws Exception { + Binding expectedResponse = + Binding.newBuilder() + .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSource(Binding.Source.newBuilder().build()) + .setTarget(Binding.Target.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String name = "name3373707"; + + Binding actualResponse = client.getBinding(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetBindingRequest actualRequest = ((GetBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String name = "name3373707"; + client.getBinding(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createBindingTest() throws Exception { + Binding expectedResponse = + Binding.newBuilder() + .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSource(Binding.Source.newBuilder().build()) + .setTarget(Binding.Target.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Binding binding = Binding.newBuilder().build(); + String bindingId = "bindingId-920966528"; + + Binding actualResponse = client.createBindingAsync(parent, binding, bindingId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBindingRequest actualRequest = ((CreateBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(binding, actualRequest.getBinding()); + Assert.assertEquals(bindingId, actualRequest.getBindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Binding binding = Binding.newBuilder().build(); + String bindingId = "bindingId-920966528"; + client.createBindingAsync(parent, binding, bindingId).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 createBindingTest2() throws Exception { + Binding expectedResponse = + Binding.newBuilder() + .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSource(Binding.Source.newBuilder().build()) + .setTarget(Binding.Target.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + String parent = "parent-995424086"; + Binding binding = Binding.newBuilder().build(); + String bindingId = "bindingId-920966528"; + + Binding actualResponse = client.createBindingAsync(parent, binding, bindingId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateBindingRequest actualRequest = ((CreateBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(binding, actualRequest.getBinding()); + Assert.assertEquals(bindingId, actualRequest.getBindingId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + Binding binding = Binding.newBuilder().build(); + String bindingId = "bindingId-920966528"; + client.createBindingAsync(parent, binding, bindingId).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 updateBindingTest() throws Exception { + Binding expectedResponse = + Binding.newBuilder() + .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setSource(Binding.Source.newBuilder().build()) + .setTarget(Binding.Target.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + Binding binding = Binding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Binding actualResponse = client.updateBindingAsync(binding, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateBindingRequest actualRequest = ((UpdateBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(binding, actualRequest.getBinding()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + Binding binding = Binding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateBindingAsync(binding, 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 deleteBindingTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + BindingName name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]"); + + client.deleteBindingAsync(name).get(); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBindingRequest actualRequest = ((DeleteBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBindingExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + BindingName name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]"); + client.deleteBindingAsync(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 deleteBindingTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteBindingTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAgentRegistry.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteBindingAsync(name).get(); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteBindingRequest actualRequest = ((DeleteBindingRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteBindingExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String name = "name3373707"; + client.deleteBindingAsync(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 fetchAvailableBindingsTest() throws Exception { + Binding responsesElement = Binding.newBuilder().build(); + FetchAvailableBindingsResponse expectedResponse = + FetchAvailableBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllBindings(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + FetchAvailableBindingsPagedResponse pagedListResponse = client.fetchAvailableBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBindingsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchAvailableBindingsRequest actualRequest = + ((FetchAvailableBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchAvailableBindingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.fetchAvailableBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void fetchAvailableBindingsTest2() throws Exception { + Binding responsesElement = Binding.newBuilder().build(); + FetchAvailableBindingsResponse expectedResponse = + FetchAvailableBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllBindings(Arrays.asList(responsesElement)) + .build(); + mockAgentRegistry.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + FetchAvailableBindingsPagedResponse pagedListResponse = client.fetchAvailableBindings(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getBindingsList().get(0), resources.get(0)); + + List actualRequests = mockAgentRegistry.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FetchAvailableBindingsRequest actualRequest = + ((FetchAvailableBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void fetchAvailableBindingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentRegistry.addException(exception); + + try { + String parent = "parent-995424086"; + client.fetchAvailableBindings(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockAgentRegistry.java b/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockAgentRegistry.java new file mode 100644 index 000000000000..e5892717b947 --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockAgentRegistry.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAgentRegistry implements MockGrpcService { + private final MockAgentRegistryImpl serviceImpl; + + public MockAgentRegistry() { + serviceImpl = new MockAgentRegistryImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockAgentRegistryImpl.java b/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockAgentRegistryImpl.java new file mode 100644 index 000000000000..cd5da34ee8a4 --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockAgentRegistryImpl.java @@ -0,0 +1,458 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.agentregistry.v1.AgentRegistryGrpc.AgentRegistryImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAgentRegistryImpl extends AgentRegistryImplBase { + private List requests; + private Queue responses; + + public MockAgentRegistryImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listAgents( + ListAgentsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAgentsResponse) { + requests.add(request); + responseObserver.onNext(((ListAgentsResponse) 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 ListAgents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAgentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void searchAgents( + SearchAgentsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchAgentsResponse) { + requests.add(request); + responseObserver.onNext(((SearchAgentsResponse) 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 SearchAgents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchAgentsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAgent(GetAgentRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Agent) { + requests.add(request); + responseObserver.onNext(((Agent) 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 GetAgent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Agent.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listEndpoints( + ListEndpointsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListEndpointsResponse) { + requests.add(request); + responseObserver.onNext(((ListEndpointsResponse) 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 ListEndpoints, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListEndpointsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getEndpoint(GetEndpointRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Endpoint) { + requests.add(request); + responseObserver.onNext(((Endpoint) 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 GetEndpoint, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Endpoint.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listMcpServers( + ListMcpServersRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMcpServersResponse) { + requests.add(request); + responseObserver.onNext(((ListMcpServersResponse) 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 ListMcpServers, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListMcpServersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void searchMcpServers( + SearchMcpServersRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchMcpServersResponse) { + requests.add(request); + responseObserver.onNext(((SearchMcpServersResponse) 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 SearchMcpServers, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchMcpServersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getMcpServer( + GetMcpServerRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof McpServer) { + requests.add(request); + responseObserver.onNext(((McpServer) 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 GetMcpServer, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + McpServer.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listServices( + ListServicesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListServicesResponse) { + requests.add(request); + responseObserver.onNext(((ListServicesResponse) 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 ListServices, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListServicesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getService(GetServiceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Service) { + requests.add(request); + responseObserver.onNext(((Service) 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 GetService, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Service.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createService( + CreateServiceRequest 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 CreateService, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateService( + UpdateServiceRequest 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 UpdateService, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteService( + DeleteServiceRequest 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 DeleteService, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listBindings( + ListBindingsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListBindingsResponse) { + requests.add(request); + responseObserver.onNext(((ListBindingsResponse) 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 ListBindings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListBindingsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getBinding(GetBindingRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Binding) { + requests.add(request); + responseObserver.onNext(((Binding) 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 GetBinding, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Binding.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createBinding( + CreateBindingRequest 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 CreateBinding, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateBinding( + UpdateBindingRequest 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 UpdateBinding, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteBinding( + DeleteBindingRequest 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 DeleteBinding, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void fetchAvailableBindings( + FetchAvailableBindingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FetchAvailableBindingsResponse) { + requests.add(request); + responseObserver.onNext(((FetchAvailableBindingsResponse) 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 FetchAvailableBindings, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + FetchAvailableBindingsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockLocations.java b/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockLocations.java new file mode 100644 index 000000000000..f4ef40e99c77 --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockLocationsImpl.java b/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockLocationsImpl.java new file mode 100644 index 000000000000..97716dfebb87 --- /dev/null +++ b/java-agentregistry/google-cloud-agentregistry/src/test/java/com/google/cloud/agentregistry/v1/MockLocationsImpl.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listLocations( + ListLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLocationsResponse) { + requests.add(request); + responseObserver.onNext(((ListLocationsResponse) 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 ListLocations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLocationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLocation(GetLocationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Location) { + requests.add(request); + responseObserver.onNext(((Location) 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 GetLocation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Location.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-agentregistry/grpc-google-cloud-agentregistry-v1/pom.xml b/java-agentregistry/grpc-google-cloud-agentregistry-v1/pom.xml new file mode 100644 index 000000000000..ea9668fcd966 --- /dev/null +++ b/java-agentregistry/grpc-google-cloud-agentregistry-v1/pom.xml @@ -0,0 +1,45 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-agentregistry-v1 + 0.1.0-SNAPSHOT + grpc-google-cloud-agentregistry-v1 + GRPC library for google-cloud-agentregistry + + com.google.cloud + google-cloud-agentregistry-parent + 0.1.0-SNAPSHOT + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-cloud-agentregistry-v1 + + + com.google.guava + guava + + + diff --git a/java-agentregistry/grpc-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryGrpc.java b/java-agentregistry/grpc-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryGrpc.java new file mode 100644 index 000000000000..45abe3ea6a14 --- /dev/null +++ b/java-agentregistry/grpc-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryGrpc.java @@ -0,0 +1,2775 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.agentregistry.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
            + * Service for managing Agents, Endpoints, McpServers, Services, and Bindings.
            + * 
            + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class AgentRegistryGrpc { + + private AgentRegistryGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.agentregistry.v1.AgentRegistry"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListAgentsRequest, + com.google.cloud.agentregistry.v1.ListAgentsResponse> + getListAgentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAgents", + requestType = com.google.cloud.agentregistry.v1.ListAgentsRequest.class, + responseType = com.google.cloud.agentregistry.v1.ListAgentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListAgentsRequest, + com.google.cloud.agentregistry.v1.ListAgentsResponse> + getListAgentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListAgentsRequest, + com.google.cloud.agentregistry.v1.ListAgentsResponse> + getListAgentsMethod; + if ((getListAgentsMethod = AgentRegistryGrpc.getListAgentsMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getListAgentsMethod = AgentRegistryGrpc.getListAgentsMethod) == null) { + AgentRegistryGrpc.getListAgentsMethod = + getListAgentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAgents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListAgentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListAgentsResponse + .getDefaultInstance())) + .setSchemaDescriptor(new AgentRegistryMethodDescriptorSupplier("ListAgents")) + .build(); + } + } + } + return getListAgentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.SearchAgentsRequest, + com.google.cloud.agentregistry.v1.SearchAgentsResponse> + getSearchAgentsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchAgents", + requestType = com.google.cloud.agentregistry.v1.SearchAgentsRequest.class, + responseType = com.google.cloud.agentregistry.v1.SearchAgentsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.SearchAgentsRequest, + com.google.cloud.agentregistry.v1.SearchAgentsResponse> + getSearchAgentsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.SearchAgentsRequest, + com.google.cloud.agentregistry.v1.SearchAgentsResponse> + getSearchAgentsMethod; + if ((getSearchAgentsMethod = AgentRegistryGrpc.getSearchAgentsMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getSearchAgentsMethod = AgentRegistryGrpc.getSearchAgentsMethod) == null) { + AgentRegistryGrpc.getSearchAgentsMethod = + getSearchAgentsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchAgents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.SearchAgentsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.SearchAgentsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("SearchAgents")) + .build(); + } + } + } + return getSearchAgentsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetAgentRequest, + com.google.cloud.agentregistry.v1.Agent> + getGetAgentMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAgent", + requestType = com.google.cloud.agentregistry.v1.GetAgentRequest.class, + responseType = com.google.cloud.agentregistry.v1.Agent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetAgentRequest, + com.google.cloud.agentregistry.v1.Agent> + getGetAgentMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetAgentRequest, + com.google.cloud.agentregistry.v1.Agent> + getGetAgentMethod; + if ((getGetAgentMethod = AgentRegistryGrpc.getGetAgentMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getGetAgentMethod = AgentRegistryGrpc.getGetAgentMethod) == null) { + AgentRegistryGrpc.getGetAgentMethod = + getGetAgentMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAgent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.GetAgentRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.Agent.getDefaultInstance())) + .setSchemaDescriptor(new AgentRegistryMethodDescriptorSupplier("GetAgent")) + .build(); + } + } + } + return getGetAgentMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListEndpointsRequest, + com.google.cloud.agentregistry.v1.ListEndpointsResponse> + getListEndpointsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEndpoints", + requestType = com.google.cloud.agentregistry.v1.ListEndpointsRequest.class, + responseType = com.google.cloud.agentregistry.v1.ListEndpointsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListEndpointsRequest, + com.google.cloud.agentregistry.v1.ListEndpointsResponse> + getListEndpointsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListEndpointsRequest, + com.google.cloud.agentregistry.v1.ListEndpointsResponse> + getListEndpointsMethod; + if ((getListEndpointsMethod = AgentRegistryGrpc.getListEndpointsMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getListEndpointsMethod = AgentRegistryGrpc.getListEndpointsMethod) == null) { + AgentRegistryGrpc.getListEndpointsMethod = + getListEndpointsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEndpoints")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListEndpointsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListEndpointsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("ListEndpoints")) + .build(); + } + } + } + return getListEndpointsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetEndpointRequest, + com.google.cloud.agentregistry.v1.Endpoint> + getGetEndpointMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEndpoint", + requestType = com.google.cloud.agentregistry.v1.GetEndpointRequest.class, + responseType = com.google.cloud.agentregistry.v1.Endpoint.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetEndpointRequest, + com.google.cloud.agentregistry.v1.Endpoint> + getGetEndpointMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetEndpointRequest, + com.google.cloud.agentregistry.v1.Endpoint> + getGetEndpointMethod; + if ((getGetEndpointMethod = AgentRegistryGrpc.getGetEndpointMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getGetEndpointMethod = AgentRegistryGrpc.getGetEndpointMethod) == null) { + AgentRegistryGrpc.getGetEndpointMethod = + getGetEndpointMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEndpoint")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.GetEndpointRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.Endpoint.getDefaultInstance())) + .setSchemaDescriptor(new AgentRegistryMethodDescriptorSupplier("GetEndpoint")) + .build(); + } + } + } + return getGetEndpointMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListMcpServersRequest, + com.google.cloud.agentregistry.v1.ListMcpServersResponse> + getListMcpServersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMcpServers", + requestType = com.google.cloud.agentregistry.v1.ListMcpServersRequest.class, + responseType = com.google.cloud.agentregistry.v1.ListMcpServersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListMcpServersRequest, + com.google.cloud.agentregistry.v1.ListMcpServersResponse> + getListMcpServersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListMcpServersRequest, + com.google.cloud.agentregistry.v1.ListMcpServersResponse> + getListMcpServersMethod; + if ((getListMcpServersMethod = AgentRegistryGrpc.getListMcpServersMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getListMcpServersMethod = AgentRegistryGrpc.getListMcpServersMethod) == null) { + AgentRegistryGrpc.getListMcpServersMethod = + getListMcpServersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMcpServers")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListMcpServersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListMcpServersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("ListMcpServers")) + .build(); + } + } + } + return getListMcpServersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.SearchMcpServersRequest, + com.google.cloud.agentregistry.v1.SearchMcpServersResponse> + getSearchMcpServersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchMcpServers", + requestType = com.google.cloud.agentregistry.v1.SearchMcpServersRequest.class, + responseType = com.google.cloud.agentregistry.v1.SearchMcpServersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.SearchMcpServersRequest, + com.google.cloud.agentregistry.v1.SearchMcpServersResponse> + getSearchMcpServersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.SearchMcpServersRequest, + com.google.cloud.agentregistry.v1.SearchMcpServersResponse> + getSearchMcpServersMethod; + if ((getSearchMcpServersMethod = AgentRegistryGrpc.getSearchMcpServersMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getSearchMcpServersMethod = AgentRegistryGrpc.getSearchMcpServersMethod) == null) { + AgentRegistryGrpc.getSearchMcpServersMethod = + getSearchMcpServersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchMcpServers")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.SearchMcpServersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.SearchMcpServersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("SearchMcpServers")) + .build(); + } + } + } + return getSearchMcpServersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetMcpServerRequest, + com.google.cloud.agentregistry.v1.McpServer> + getGetMcpServerMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMcpServer", + requestType = com.google.cloud.agentregistry.v1.GetMcpServerRequest.class, + responseType = com.google.cloud.agentregistry.v1.McpServer.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetMcpServerRequest, + com.google.cloud.agentregistry.v1.McpServer> + getGetMcpServerMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetMcpServerRequest, + com.google.cloud.agentregistry.v1.McpServer> + getGetMcpServerMethod; + if ((getGetMcpServerMethod = AgentRegistryGrpc.getGetMcpServerMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getGetMcpServerMethod = AgentRegistryGrpc.getGetMcpServerMethod) == null) { + AgentRegistryGrpc.getGetMcpServerMethod = + getGetMcpServerMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMcpServer")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.GetMcpServerRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.McpServer.getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("GetMcpServer")) + .build(); + } + } + } + return getGetMcpServerMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListServicesRequest, + com.google.cloud.agentregistry.v1.ListServicesResponse> + getListServicesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListServices", + requestType = com.google.cloud.agentregistry.v1.ListServicesRequest.class, + responseType = com.google.cloud.agentregistry.v1.ListServicesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListServicesRequest, + com.google.cloud.agentregistry.v1.ListServicesResponse> + getListServicesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListServicesRequest, + com.google.cloud.agentregistry.v1.ListServicesResponse> + getListServicesMethod; + if ((getListServicesMethod = AgentRegistryGrpc.getListServicesMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getListServicesMethod = AgentRegistryGrpc.getListServicesMethod) == null) { + AgentRegistryGrpc.getListServicesMethod = + getListServicesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServices")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListServicesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListServicesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("ListServices")) + .build(); + } + } + } + return getListServicesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetServiceRequest, + com.google.cloud.agentregistry.v1.Service> + getGetServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetService", + requestType = com.google.cloud.agentregistry.v1.GetServiceRequest.class, + responseType = com.google.cloud.agentregistry.v1.Service.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetServiceRequest, + com.google.cloud.agentregistry.v1.Service> + getGetServiceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetServiceRequest, + com.google.cloud.agentregistry.v1.Service> + getGetServiceMethod; + if ((getGetServiceMethod = AgentRegistryGrpc.getGetServiceMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getGetServiceMethod = AgentRegistryGrpc.getGetServiceMethod) == null) { + AgentRegistryGrpc.getGetServiceMethod = + getGetServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.GetServiceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.Service.getDefaultInstance())) + .setSchemaDescriptor(new AgentRegistryMethodDescriptorSupplier("GetService")) + .build(); + } + } + } + return getGetServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.CreateServiceRequest, com.google.longrunning.Operation> + getCreateServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateService", + requestType = com.google.cloud.agentregistry.v1.CreateServiceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.CreateServiceRequest, com.google.longrunning.Operation> + getCreateServiceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.CreateServiceRequest, + com.google.longrunning.Operation> + getCreateServiceMethod; + if ((getCreateServiceMethod = AgentRegistryGrpc.getCreateServiceMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getCreateServiceMethod = AgentRegistryGrpc.getCreateServiceMethod) == null) { + AgentRegistryGrpc.getCreateServiceMethod = + getCreateServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.CreateServiceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("CreateService")) + .build(); + } + } + } + return getCreateServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.UpdateServiceRequest, com.google.longrunning.Operation> + getUpdateServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateService", + requestType = com.google.cloud.agentregistry.v1.UpdateServiceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.UpdateServiceRequest, com.google.longrunning.Operation> + getUpdateServiceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.UpdateServiceRequest, + com.google.longrunning.Operation> + getUpdateServiceMethod; + if ((getUpdateServiceMethod = AgentRegistryGrpc.getUpdateServiceMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getUpdateServiceMethod = AgentRegistryGrpc.getUpdateServiceMethod) == null) { + AgentRegistryGrpc.getUpdateServiceMethod = + getUpdateServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.UpdateServiceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("UpdateService")) + .build(); + } + } + } + return getUpdateServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.DeleteServiceRequest, com.google.longrunning.Operation> + getDeleteServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteService", + requestType = com.google.cloud.agentregistry.v1.DeleteServiceRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.DeleteServiceRequest, com.google.longrunning.Operation> + getDeleteServiceMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.DeleteServiceRequest, + com.google.longrunning.Operation> + getDeleteServiceMethod; + if ((getDeleteServiceMethod = AgentRegistryGrpc.getDeleteServiceMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getDeleteServiceMethod = AgentRegistryGrpc.getDeleteServiceMethod) == null) { + AgentRegistryGrpc.getDeleteServiceMethod = + getDeleteServiceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.DeleteServiceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("DeleteService")) + .build(); + } + } + } + return getDeleteServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListBindingsRequest, + com.google.cloud.agentregistry.v1.ListBindingsResponse> + getListBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBindings", + requestType = com.google.cloud.agentregistry.v1.ListBindingsRequest.class, + responseType = com.google.cloud.agentregistry.v1.ListBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListBindingsRequest, + com.google.cloud.agentregistry.v1.ListBindingsResponse> + getListBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.ListBindingsRequest, + com.google.cloud.agentregistry.v1.ListBindingsResponse> + getListBindingsMethod; + if ((getListBindingsMethod = AgentRegistryGrpc.getListBindingsMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getListBindingsMethod = AgentRegistryGrpc.getListBindingsMethod) == null) { + AgentRegistryGrpc.getListBindingsMethod = + getListBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.ListBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("ListBindings")) + .build(); + } + } + } + return getListBindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetBindingRequest, + com.google.cloud.agentregistry.v1.Binding> + getGetBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBinding", + requestType = com.google.cloud.agentregistry.v1.GetBindingRequest.class, + responseType = com.google.cloud.agentregistry.v1.Binding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetBindingRequest, + com.google.cloud.agentregistry.v1.Binding> + getGetBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.GetBindingRequest, + com.google.cloud.agentregistry.v1.Binding> + getGetBindingMethod; + if ((getGetBindingMethod = AgentRegistryGrpc.getGetBindingMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getGetBindingMethod = AgentRegistryGrpc.getGetBindingMethod) == null) { + AgentRegistryGrpc.getGetBindingMethod = + getGetBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.GetBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.Binding.getDefaultInstance())) + .setSchemaDescriptor(new AgentRegistryMethodDescriptorSupplier("GetBinding")) + .build(); + } + } + } + return getGetBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.CreateBindingRequest, com.google.longrunning.Operation> + getCreateBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateBinding", + requestType = com.google.cloud.agentregistry.v1.CreateBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.CreateBindingRequest, com.google.longrunning.Operation> + getCreateBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.CreateBindingRequest, + com.google.longrunning.Operation> + getCreateBindingMethod; + if ((getCreateBindingMethod = AgentRegistryGrpc.getCreateBindingMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getCreateBindingMethod = AgentRegistryGrpc.getCreateBindingMethod) == null) { + AgentRegistryGrpc.getCreateBindingMethod = + getCreateBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.CreateBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("CreateBinding")) + .build(); + } + } + } + return getCreateBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.UpdateBindingRequest, com.google.longrunning.Operation> + getUpdateBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateBinding", + requestType = com.google.cloud.agentregistry.v1.UpdateBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.UpdateBindingRequest, com.google.longrunning.Operation> + getUpdateBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.UpdateBindingRequest, + com.google.longrunning.Operation> + getUpdateBindingMethod; + if ((getUpdateBindingMethod = AgentRegistryGrpc.getUpdateBindingMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getUpdateBindingMethod = AgentRegistryGrpc.getUpdateBindingMethod) == null) { + AgentRegistryGrpc.getUpdateBindingMethod = + getUpdateBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.UpdateBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("UpdateBinding")) + .build(); + } + } + } + return getUpdateBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.DeleteBindingRequest, com.google.longrunning.Operation> + getDeleteBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteBinding", + requestType = com.google.cloud.agentregistry.v1.DeleteBindingRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.DeleteBindingRequest, com.google.longrunning.Operation> + getDeleteBindingMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.DeleteBindingRequest, + com.google.longrunning.Operation> + getDeleteBindingMethod; + if ((getDeleteBindingMethod = AgentRegistryGrpc.getDeleteBindingMethod) == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getDeleteBindingMethod = AgentRegistryGrpc.getDeleteBindingMethod) == null) { + AgentRegistryGrpc.getDeleteBindingMethod = + getDeleteBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.DeleteBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("DeleteBinding")) + .build(); + } + } + } + return getDeleteBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest, + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse> + getFetchAvailableBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchAvailableBindings", + requestType = com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest.class, + responseType = com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest, + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse> + getFetchAvailableBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest, + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse> + getFetchAvailableBindingsMethod; + if ((getFetchAvailableBindingsMethod = AgentRegistryGrpc.getFetchAvailableBindingsMethod) + == null) { + synchronized (AgentRegistryGrpc.class) { + if ((getFetchAvailableBindingsMethod = AgentRegistryGrpc.getFetchAvailableBindingsMethod) + == null) { + AgentRegistryGrpc.getFetchAvailableBindingsMethod = + getFetchAvailableBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "FetchAvailableBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AgentRegistryMethodDescriptorSupplier("FetchAvailableBindings")) + .build(); + } + } + } + return getFetchAvailableBindingsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AgentRegistryStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentRegistryStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentRegistryStub(channel, callOptions); + } + }; + return AgentRegistryStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static AgentRegistryBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentRegistryBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentRegistryBlockingV2Stub(channel, callOptions); + } + }; + return AgentRegistryBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AgentRegistryBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentRegistryBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentRegistryBlockingStub(channel, callOptions); + } + }; + return AgentRegistryBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AgentRegistryFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentRegistryFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentRegistryFutureStub(channel, callOptions); + } + }; + return AgentRegistryFutureStub.newStub(factory, channel); + } + + /** + * + * + *
            +   * Service for managing Agents, Endpoints, McpServers, Services, and Bindings.
            +   * 
            + */ + public interface AsyncService { + + /** + * + * + *
            +     * Lists Agents in a given project and location.
            +     * 
            + */ + default void listAgents( + com.google.cloud.agentregistry.v1.ListAgentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAgentsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Searches Agents in a given project and location.
            +     * 
            + */ + default void searchAgents( + com.google.cloud.agentregistry.v1.SearchAgentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchAgentsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Gets details of a single Agent.
            +     * 
            + */ + default void getAgent( + com.google.cloud.agentregistry.v1.GetAgentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAgentMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists Endpoints in a given project and location.
            +     * 
            + */ + default void listEndpoints( + com.google.cloud.agentregistry.v1.ListEndpointsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEndpointsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Gets details of a single Endpoint.
            +     * 
            + */ + default void getEndpoint( + com.google.cloud.agentregistry.v1.GetEndpointRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEndpointMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists McpServers in a given project and location.
            +     * 
            + */ + default void listMcpServers( + com.google.cloud.agentregistry.v1.ListMcpServersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMcpServersMethod(), responseObserver); + } + + /** + * + * + *
            +     * Searches McpServers in a given project and location.
            +     * 
            + */ + default void searchMcpServers( + com.google.cloud.agentregistry.v1.SearchMcpServersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchMcpServersMethod(), responseObserver); + } + + /** + * + * + *
            +     * Gets details of a single McpServer.
            +     * 
            + */ + default void getMcpServer( + com.google.cloud.agentregistry.v1.GetMcpServerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMcpServerMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists Services in a given project and location.
            +     * 
            + */ + default void listServices( + com.google.cloud.agentregistry.v1.ListServicesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListServicesMethod(), responseObserver); + } + + /** + * + * + *
            +     * Gets details of a single Service.
            +     * 
            + */ + default void getService( + com.google.cloud.agentregistry.v1.GetServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceMethod(), responseObserver); + } + + /** + * + * + *
            +     * Creates a new Service in a given project and location.
            +     * 
            + */ + default void createService( + com.google.cloud.agentregistry.v1.CreateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateServiceMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates the parameters of a single Service.
            +     * 
            + */ + default void updateService( + com.google.cloud.agentregistry.v1.UpdateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateServiceMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes a single Service.
            +     * 
            + */ + default void deleteService( + com.google.cloud.agentregistry.v1.DeleteServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteServiceMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists Bindings in a given project and location.
            +     * 
            + */ + default void listBindings( + com.google.cloud.agentregistry.v1.ListBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBindingsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Gets details of a single Binding.
            +     * 
            + */ + default void getBinding( + com.google.cloud.agentregistry.v1.GetBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBindingMethod(), responseObserver); + } + + /** + * + * + *
            +     * Creates a new Binding in a given project and location.
            +     * 
            + */ + default void createBinding( + com.google.cloud.agentregistry.v1.CreateBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateBindingMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates the parameters of a single Binding.
            +     * 
            + */ + default void updateBinding( + com.google.cloud.agentregistry.v1.UpdateBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateBindingMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes a single Binding.
            +     * 
            + */ + default void deleteBinding( + com.google.cloud.agentregistry.v1.DeleteBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteBindingMethod(), responseObserver); + } + + /** + * + * + *
            +     * Fetches available Bindings.
            +     * 
            + */ + default void fetchAvailableBindings( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchAvailableBindingsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AgentRegistry. + * + *
            +   * Service for managing Agents, Endpoints, McpServers, Services, and Bindings.
            +   * 
            + */ + public abstract static class AgentRegistryImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AgentRegistryGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AgentRegistry. + * + *
            +   * Service for managing Agents, Endpoints, McpServers, Services, and Bindings.
            +   * 
            + */ + public static final class AgentRegistryStub + extends io.grpc.stub.AbstractAsyncStub { + private AgentRegistryStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AgentRegistryStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentRegistryStub(channel, callOptions); + } + + /** + * + * + *
            +     * Lists Agents in a given project and location.
            +     * 
            + */ + public void listAgents( + com.google.cloud.agentregistry.v1.ListAgentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAgentsMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
            +     * Searches Agents in a given project and location.
            +     * 
            + */ + public void searchAgents( + com.google.cloud.agentregistry.v1.SearchAgentsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchAgentsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Gets details of a single Agent.
            +     * 
            + */ + public void getAgent( + com.google.cloud.agentregistry.v1.GetAgentRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAgentMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
            +     * Lists Endpoints in a given project and location.
            +     * 
            + */ + public void listEndpoints( + com.google.cloud.agentregistry.v1.ListEndpointsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEndpointsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Gets details of a single Endpoint.
            +     * 
            + */ + public void getEndpoint( + com.google.cloud.agentregistry.v1.GetEndpointRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEndpointMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Lists McpServers in a given project and location.
            +     * 
            + */ + public void listMcpServers( + com.google.cloud.agentregistry.v1.ListMcpServersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMcpServersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Searches McpServers in a given project and location.
            +     * 
            + */ + public void searchMcpServers( + com.google.cloud.agentregistry.v1.SearchMcpServersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchMcpServersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Gets details of a single McpServer.
            +     * 
            + */ + public void getMcpServer( + com.google.cloud.agentregistry.v1.GetMcpServerRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMcpServerMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Lists Services in a given project and location.
            +     * 
            + */ + public void listServices( + com.google.cloud.agentregistry.v1.ListServicesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListServicesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Gets details of a single Service.
            +     * 
            + */ + public void getService( + com.google.cloud.agentregistry.v1.GetServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetServiceMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
            +     * Creates a new Service in a given project and location.
            +     * 
            + */ + public void createService( + com.google.cloud.agentregistry.v1.CreateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateServiceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Updates the parameters of a single Service.
            +     * 
            + */ + public void updateService( + com.google.cloud.agentregistry.v1.UpdateServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes a single Service.
            +     * 
            + */ + public void deleteService( + com.google.cloud.agentregistry.v1.DeleteServiceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Lists Bindings in a given project and location.
            +     * 
            + */ + public void listBindings( + com.google.cloud.agentregistry.v1.ListBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Gets details of a single Binding.
            +     * 
            + */ + public void getBinding( + com.google.cloud.agentregistry.v1.GetBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBindingMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
            +     * Creates a new Binding in a given project and location.
            +     * 
            + */ + public void createBinding( + com.google.cloud.agentregistry.v1.CreateBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Updates the parameters of a single Binding.
            +     * 
            + */ + public void updateBinding( + com.google.cloud.agentregistry.v1.UpdateBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes a single Binding.
            +     * 
            + */ + public void deleteBinding( + com.google.cloud.agentregistry.v1.DeleteBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Fetches available Bindings.
            +     * 
            + */ + public void fetchAvailableBindings( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchAvailableBindingsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AgentRegistry. + * + *
            +   * Service for managing Agents, Endpoints, McpServers, Services, and Bindings.
            +   * 
            + */ + public static final class AgentRegistryBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private AgentRegistryBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AgentRegistryBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentRegistryBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
            +     * Lists Agents in a given project and location.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.ListAgentsResponse listAgents( + com.google.cloud.agentregistry.v1.ListAgentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAgentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Searches Agents in a given project and location.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.SearchAgentsResponse searchAgents( + com.google.cloud.agentregistry.v1.SearchAgentsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSearchAgentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets details of a single Agent.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.Agent getAgent( + com.google.cloud.agentregistry.v1.GetAgentRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAgentMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists Endpoints in a given project and location.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.ListEndpointsResponse listEndpoints( + com.google.cloud.agentregistry.v1.ListEndpointsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListEndpointsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets details of a single Endpoint.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.Endpoint getEndpoint( + com.google.cloud.agentregistry.v1.GetEndpointRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetEndpointMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists McpServers in a given project and location.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.ListMcpServersResponse listMcpServers( + com.google.cloud.agentregistry.v1.ListMcpServersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListMcpServersMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Searches McpServers in a given project and location.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.SearchMcpServersResponse searchMcpServers( + com.google.cloud.agentregistry.v1.SearchMcpServersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSearchMcpServersMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets details of a single McpServer.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.McpServer getMcpServer( + com.google.cloud.agentregistry.v1.GetMcpServerRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetMcpServerMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists Services in a given project and location.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.ListServicesResponse listServices( + com.google.cloud.agentregistry.v1.ListServicesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListServicesMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets details of a single Service.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.Service getService( + com.google.cloud.agentregistry.v1.GetServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new Service in a given project and location.
            +     * 
            + */ + public com.google.longrunning.Operation createService( + com.google.cloud.agentregistry.v1.CreateServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates the parameters of a single Service.
            +     * 
            + */ + public com.google.longrunning.Operation updateService( + com.google.cloud.agentregistry.v1.UpdateServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single Service.
            +     * 
            + */ + public com.google.longrunning.Operation deleteService( + com.google.cloud.agentregistry.v1.DeleteServiceRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists Bindings in a given project and location.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.ListBindingsResponse listBindings( + com.google.cloud.agentregistry.v1.ListBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListBindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets details of a single Binding.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.Binding getBinding( + com.google.cloud.agentregistry.v1.GetBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new Binding in a given project and location.
            +     * 
            + */ + public com.google.longrunning.Operation createBinding( + com.google.cloud.agentregistry.v1.CreateBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates the parameters of a single Binding.
            +     * 
            + */ + public com.google.longrunning.Operation updateBinding( + com.google.cloud.agentregistry.v1.UpdateBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single Binding.
            +     * 
            + */ + public com.google.longrunning.Operation deleteBinding( + com.google.cloud.agentregistry.v1.DeleteBindingRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Fetches available Bindings.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse fetchAvailableBindings( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getFetchAvailableBindingsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service AgentRegistry. + * + *
            +   * Service for managing Agents, Endpoints, McpServers, Services, and Bindings.
            +   * 
            + */ + public static final class AgentRegistryBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AgentRegistryBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AgentRegistryBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentRegistryBlockingStub(channel, callOptions); + } + + /** + * + * + *
            +     * Lists Agents in a given project and location.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.ListAgentsResponse listAgents( + com.google.cloud.agentregistry.v1.ListAgentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAgentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Searches Agents in a given project and location.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.SearchAgentsResponse searchAgents( + com.google.cloud.agentregistry.v1.SearchAgentsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchAgentsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets details of a single Agent.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.Agent getAgent( + com.google.cloud.agentregistry.v1.GetAgentRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAgentMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists Endpoints in a given project and location.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.ListEndpointsResponse listEndpoints( + com.google.cloud.agentregistry.v1.ListEndpointsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEndpointsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets details of a single Endpoint.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.Endpoint getEndpoint( + com.google.cloud.agentregistry.v1.GetEndpointRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEndpointMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists McpServers in a given project and location.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.ListMcpServersResponse listMcpServers( + com.google.cloud.agentregistry.v1.ListMcpServersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMcpServersMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Searches McpServers in a given project and location.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.SearchMcpServersResponse searchMcpServers( + com.google.cloud.agentregistry.v1.SearchMcpServersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchMcpServersMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets details of a single McpServer.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.McpServer getMcpServer( + com.google.cloud.agentregistry.v1.GetMcpServerRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMcpServerMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists Services in a given project and location.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.ListServicesResponse listServices( + com.google.cloud.agentregistry.v1.ListServicesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListServicesMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets details of a single Service.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.Service getService( + com.google.cloud.agentregistry.v1.GetServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new Service in a given project and location.
            +     * 
            + */ + public com.google.longrunning.Operation createService( + com.google.cloud.agentregistry.v1.CreateServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates the parameters of a single Service.
            +     * 
            + */ + public com.google.longrunning.Operation updateService( + com.google.cloud.agentregistry.v1.UpdateServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single Service.
            +     * 
            + */ + public com.google.longrunning.Operation deleteService( + com.google.cloud.agentregistry.v1.DeleteServiceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteServiceMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists Bindings in a given project and location.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.ListBindingsResponse listBindings( + com.google.cloud.agentregistry.v1.ListBindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets details of a single Binding.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.Binding getBinding( + com.google.cloud.agentregistry.v1.GetBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Creates a new Binding in a given project and location.
            +     * 
            + */ + public com.google.longrunning.Operation createBinding( + com.google.cloud.agentregistry.v1.CreateBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates the parameters of a single Binding.
            +     * 
            + */ + public com.google.longrunning.Operation updateBinding( + com.google.cloud.agentregistry.v1.UpdateBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes a single Binding.
            +     * 
            + */ + public com.google.longrunning.Operation deleteBinding( + com.google.cloud.agentregistry.v1.DeleteBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Fetches available Bindings.
            +     * 
            + */ + public com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse fetchAvailableBindings( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchAvailableBindingsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AgentRegistry. + * + *
            +   * Service for managing Agents, Endpoints, McpServers, Services, and Bindings.
            +   * 
            + */ + public static final class AgentRegistryFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AgentRegistryFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AgentRegistryFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentRegistryFutureStub(channel, callOptions); + } + + /** + * + * + *
            +     * Lists Agents in a given project and location.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.ListAgentsResponse> + listAgents(com.google.cloud.agentregistry.v1.ListAgentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAgentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Searches Agents in a given project and location.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.SearchAgentsResponse> + searchAgents(com.google.cloud.agentregistry.v1.SearchAgentsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchAgentsMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Gets details of a single Agent.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.Agent> + getAgent(com.google.cloud.agentregistry.v1.GetAgentRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAgentMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Lists Endpoints in a given project and location.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.ListEndpointsResponse> + listEndpoints(com.google.cloud.agentregistry.v1.ListEndpointsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEndpointsMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Gets details of a single Endpoint.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.Endpoint> + getEndpoint(com.google.cloud.agentregistry.v1.GetEndpointRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEndpointMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Lists McpServers in a given project and location.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.ListMcpServersResponse> + listMcpServers(com.google.cloud.agentregistry.v1.ListMcpServersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMcpServersMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Searches McpServers in a given project and location.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.SearchMcpServersResponse> + searchMcpServers(com.google.cloud.agentregistry.v1.SearchMcpServersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchMcpServersMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Gets details of a single McpServer.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.McpServer> + getMcpServer(com.google.cloud.agentregistry.v1.GetMcpServerRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMcpServerMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Lists Services in a given project and location.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.ListServicesResponse> + listServices(com.google.cloud.agentregistry.v1.ListServicesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListServicesMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Gets details of a single Service.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.Service> + getService(com.google.cloud.agentregistry.v1.GetServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetServiceMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Creates a new Service in a given project and location.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + createService(com.google.cloud.agentregistry.v1.CreateServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateServiceMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Updates the parameters of a single Service.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + updateService(com.google.cloud.agentregistry.v1.UpdateServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateServiceMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Deletes a single Service.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + deleteService(com.google.cloud.agentregistry.v1.DeleteServiceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteServiceMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Lists Bindings in a given project and location.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.ListBindingsResponse> + listBindings(com.google.cloud.agentregistry.v1.ListBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Gets details of a single Binding.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.Binding> + getBinding(com.google.cloud.agentregistry.v1.GetBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Creates a new Binding in a given project and location.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + createBinding(com.google.cloud.agentregistry.v1.CreateBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateBindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Updates the parameters of a single Binding.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + updateBinding(com.google.cloud.agentregistry.v1.UpdateBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateBindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Deletes a single Binding.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + deleteBinding(com.google.cloud.agentregistry.v1.DeleteBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteBindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Fetches available Bindings.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse> + fetchAvailableBindings( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchAvailableBindingsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_AGENTS = 0; + private static final int METHODID_SEARCH_AGENTS = 1; + private static final int METHODID_GET_AGENT = 2; + private static final int METHODID_LIST_ENDPOINTS = 3; + private static final int METHODID_GET_ENDPOINT = 4; + private static final int METHODID_LIST_MCP_SERVERS = 5; + private static final int METHODID_SEARCH_MCP_SERVERS = 6; + private static final int METHODID_GET_MCP_SERVER = 7; + private static final int METHODID_LIST_SERVICES = 8; + private static final int METHODID_GET_SERVICE = 9; + private static final int METHODID_CREATE_SERVICE = 10; + private static final int METHODID_UPDATE_SERVICE = 11; + private static final int METHODID_DELETE_SERVICE = 12; + private static final int METHODID_LIST_BINDINGS = 13; + private static final int METHODID_GET_BINDING = 14; + private static final int METHODID_CREATE_BINDING = 15; + private static final int METHODID_UPDATE_BINDING = 16; + private static final int METHODID_DELETE_BINDING = 17; + private static final int METHODID_FETCH_AVAILABLE_BINDINGS = 18; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_AGENTS: + serviceImpl.listAgents( + (com.google.cloud.agentregistry.v1.ListAgentsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SEARCH_AGENTS: + serviceImpl.searchAgents( + (com.google.cloud.agentregistry.v1.SearchAgentsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_AGENT: + serviceImpl.getAgent( + (com.google.cloud.agentregistry.v1.GetAgentRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ENDPOINTS: + serviceImpl.listEndpoints( + (com.google.cloud.agentregistry.v1.ListEndpointsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_ENDPOINT: + serviceImpl.getEndpoint( + (com.google.cloud.agentregistry.v1.GetEndpointRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_MCP_SERVERS: + serviceImpl.listMcpServers( + (com.google.cloud.agentregistry.v1.ListMcpServersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentregistry.v1.ListMcpServersResponse>) + responseObserver); + break; + case METHODID_SEARCH_MCP_SERVERS: + serviceImpl.searchMcpServers( + (com.google.cloud.agentregistry.v1.SearchMcpServersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentregistry.v1.SearchMcpServersResponse>) + responseObserver); + break; + case METHODID_GET_MCP_SERVER: + serviceImpl.getMcpServer( + (com.google.cloud.agentregistry.v1.GetMcpServerRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SERVICES: + serviceImpl.listServices( + (com.google.cloud.agentregistry.v1.ListServicesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_SERVICE: + serviceImpl.getService( + (com.google.cloud.agentregistry.v1.GetServiceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_SERVICE: + serviceImpl.createService( + (com.google.cloud.agentregistry.v1.CreateServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SERVICE: + serviceImpl.updateService( + (com.google.cloud.agentregistry.v1.UpdateServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_SERVICE: + serviceImpl.deleteService( + (com.google.cloud.agentregistry.v1.DeleteServiceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_BINDINGS: + serviceImpl.listBindings( + (com.google.cloud.agentregistry.v1.ListBindingsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_BINDING: + serviceImpl.getBinding( + (com.google.cloud.agentregistry.v1.GetBindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_BINDING: + serviceImpl.createBinding( + (com.google.cloud.agentregistry.v1.CreateBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_BINDING: + serviceImpl.updateBinding( + (com.google.cloud.agentregistry.v1.UpdateBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_BINDING: + serviceImpl.deleteBinding( + (com.google.cloud.agentregistry.v1.DeleteBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_FETCH_AVAILABLE_BINDINGS: + serviceImpl.fetchAvailableBindings( + (com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListAgentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.ListAgentsRequest, + com.google.cloud.agentregistry.v1.ListAgentsResponse>( + service, METHODID_LIST_AGENTS))) + .addMethod( + getSearchAgentsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.SearchAgentsRequest, + com.google.cloud.agentregistry.v1.SearchAgentsResponse>( + service, METHODID_SEARCH_AGENTS))) + .addMethod( + getGetAgentMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.GetAgentRequest, + com.google.cloud.agentregistry.v1.Agent>(service, METHODID_GET_AGENT))) + .addMethod( + getListEndpointsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.ListEndpointsRequest, + com.google.cloud.agentregistry.v1.ListEndpointsResponse>( + service, METHODID_LIST_ENDPOINTS))) + .addMethod( + getGetEndpointMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.GetEndpointRequest, + com.google.cloud.agentregistry.v1.Endpoint>(service, METHODID_GET_ENDPOINT))) + .addMethod( + getListMcpServersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.ListMcpServersRequest, + com.google.cloud.agentregistry.v1.ListMcpServersResponse>( + service, METHODID_LIST_MCP_SERVERS))) + .addMethod( + getSearchMcpServersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.SearchMcpServersRequest, + com.google.cloud.agentregistry.v1.SearchMcpServersResponse>( + service, METHODID_SEARCH_MCP_SERVERS))) + .addMethod( + getGetMcpServerMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.GetMcpServerRequest, + com.google.cloud.agentregistry.v1.McpServer>(service, METHODID_GET_MCP_SERVER))) + .addMethod( + getListServicesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.ListServicesRequest, + com.google.cloud.agentregistry.v1.ListServicesResponse>( + service, METHODID_LIST_SERVICES))) + .addMethod( + getGetServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.GetServiceRequest, + com.google.cloud.agentregistry.v1.Service>(service, METHODID_GET_SERVICE))) + .addMethod( + getCreateServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.CreateServiceRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_SERVICE))) + .addMethod( + getUpdateServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.UpdateServiceRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_SERVICE))) + .addMethod( + getDeleteServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.DeleteServiceRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_SERVICE))) + .addMethod( + getListBindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.ListBindingsRequest, + com.google.cloud.agentregistry.v1.ListBindingsResponse>( + service, METHODID_LIST_BINDINGS))) + .addMethod( + getGetBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.GetBindingRequest, + com.google.cloud.agentregistry.v1.Binding>(service, METHODID_GET_BINDING))) + .addMethod( + getCreateBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.CreateBindingRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_BINDING))) + .addMethod( + getUpdateBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.UpdateBindingRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_BINDING))) + .addMethod( + getDeleteBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.DeleteBindingRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_BINDING))) + .addMethod( + getFetchAvailableBindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest, + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse>( + service, METHODID_FETCH_AVAILABLE_BINDINGS))) + .build(); + } + + private abstract static class AgentRegistryBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AgentRegistryBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AgentRegistry"); + } + } + + private static final class AgentRegistryFileDescriptorSupplier + extends AgentRegistryBaseDescriptorSupplier { + AgentRegistryFileDescriptorSupplier() {} + } + + private static final class AgentRegistryMethodDescriptorSupplier + extends AgentRegistryBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AgentRegistryMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AgentRegistryGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AgentRegistryFileDescriptorSupplier()) + .addMethod(getListAgentsMethod()) + .addMethod(getSearchAgentsMethod()) + .addMethod(getGetAgentMethod()) + .addMethod(getListEndpointsMethod()) + .addMethod(getGetEndpointMethod()) + .addMethod(getListMcpServersMethod()) + .addMethod(getSearchMcpServersMethod()) + .addMethod(getGetMcpServerMethod()) + .addMethod(getListServicesMethod()) + .addMethod(getGetServiceMethod()) + .addMethod(getCreateServiceMethod()) + .addMethod(getUpdateServiceMethod()) + .addMethod(getDeleteServiceMethod()) + .addMethod(getListBindingsMethod()) + .addMethod(getGetBindingMethod()) + .addMethod(getCreateBindingMethod()) + .addMethod(getUpdateBindingMethod()) + .addMethod(getDeleteBindingMethod()) + .addMethod(getFetchAvailableBindingsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-agentregistry/owlbot.py b/java-agentregistry/owlbot.py new file mode 100755 index 000000000000..5caf2fc427bc --- /dev/null +++ b/java-agentregistry/owlbot.py @@ -0,0 +1,38 @@ +# Copyright 2026 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import synthtool as s +from synthtool.languages import java + + +for library in s.get_staging_dirs(): + # put any special-case replacements here + s.move(library) + +s.remove_staging_dirs() +java.common_templates( + monorepo=True, + excludes=[ + ".github/*", + ".kokoro/*", + "samples/*", + "CODE_OF_CONDUCT.md", + "CONTRIBUTING.md", + "LICENSE", + "SECURITY.md", + "java.header", + "license-checks.xml", + "renovate.json", + ".gitignore" +]) diff --git a/java-agentregistry/pom.xml b/java-agentregistry/pom.xml new file mode 100644 index 000000000000..01e5dcc950fe --- /dev/null +++ b/java-agentregistry/pom.xml @@ -0,0 +1,58 @@ + + + 4.0.0 + com.google.cloud + google-cloud-agentregistry-parent + pom + 0.1.0-SNAPSHOT + Google Agent Registry Parent + + Java idiomatic client for Google Cloud Platform services. + + + + com.google.cloud + google-cloud-jar-parent + 1.88.0-SNAPSHOT + ../google-cloud-jar-parent/pom.xml + + + + UTF-8 + UTF-8 + github + google-cloud-agentregistry-parent + + + + + + + com.google.cloud + google-cloud-agentregistry + 0.1.0-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-agentregistry-v1 + 0.1.0-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-agentregistry-v1 + 0.1.0-SNAPSHOT + + + + + + + + google-cloud-agentregistry + grpc-google-cloud-agentregistry-v1 + proto-google-cloud-agentregistry-v1 + + google-cloud-agentregistry-bom + + + \ No newline at end of file diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/clirr-ignored-differences.xml b/java-agentregistry/proto-google-cloud-agentregistry-v1/clirr-ignored-differences.xml new file mode 100644 index 000000000000..bc96e829d313 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/clirr-ignored-differences.xml @@ -0,0 +1,80 @@ + + + + + 7012 + com/google/cloud/agentregistry/v1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/agentregistry/v1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/agentregistry/v1/*OrBuilder + boolean has*(*) + + + + 7006 + com/google/cloud/agentregistry/v1/** + * getDefaultInstanceForType() + ** + + + 7006 + com/google/cloud/agentregistry/v1/** + * addRepeatedField(*) + ** + + + 7006 + com/google/cloud/agentregistry/v1/** + * clear() + ** + + + 7006 + com/google/cloud/agentregistry/v1/** + * clearField(*) + ** + + + 7006 + com/google/cloud/agentregistry/v1/** + * clearOneof(*) + ** + + + 7006 + com/google/cloud/agentregistry/v1/** + * clone() + ** + + + 7006 + com/google/cloud/agentregistry/v1/** + * mergeUnknownFields(*) + ** + + + 7006 + com/google/cloud/agentregistry/v1/** + * setField(*) + ** + + + 7006 + com/google/cloud/agentregistry/v1/** + * setRepeatedField(*) + ** + + + 7006 + com/google/cloud/agentregistry/v1/** + * setUnknownFields(*) + ** + + diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/pom.xml b/java-agentregistry/proto-google-cloud-agentregistry-v1/pom.xml new file mode 100644 index 000000000000..fa40efa41952 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/pom.xml @@ -0,0 +1,37 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-agentregistry-v1 + 0.1.0-SNAPSHOT + proto-google-cloud-agentregistry-v1 + Proto library for google-cloud-agentregistry + + com.google.cloud + google-cloud-agentregistry-parent + 0.1.0-SNAPSHOT + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api + api-common + + + com.google.guava + guava + + + diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Agent.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Agent.java new file mode 100644 index 000000000000..7e9e35459b26 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Agent.java @@ -0,0 +1,8826 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agent.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Represents an Agent.
            + * "A2A" below refers to the Agent-to-Agent protocol.
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Agent} + */ +@com.google.protobuf.Generated +public final class Agent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.Agent) + AgentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Agent"); + } + + // Use Agent.newBuilder() to construct. + private Agent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Agent() { + name_ = ""; + agentId_ = ""; + location_ = ""; + displayName_ = ""; + description_ = ""; + version_ = ""; + protocols_ = java.util.Collections.emptyList(); + skills_ = java.util.Collections.emptyList(); + uid_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 13: + return internalGetAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Agent.class, + com.google.cloud.agentregistry.v1.Agent.Builder.class); + } + + public interface ProtocolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.Agent.Protocol) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Output only. The type of the protocol.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Protocol.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
            +     * Output only. The type of the protocol.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Protocol.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.agentregistry.v1.Agent.Protocol.Type getType(); + + /** + * + * + *
            +     * Output only. The version of the protocol, for example, the A2A Agent Card
            +     * version.
            +     * 
            + * + * string protocol_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The protocolVersion. + */ + java.lang.String getProtocolVersion(); + + /** + * + * + *
            +     * Output only. The version of the protocol, for example, the A2A Agent Card
            +     * version.
            +     * 
            + * + * string protocol_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for protocolVersion. + */ + com.google.protobuf.ByteString getProtocolVersionBytes(); + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getInterfacesList(); + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.agentregistry.v1.Interface getInterfaces(int index); + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getInterfacesCount(); + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getInterfacesOrBuilderList(); + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.agentregistry.v1.InterfaceOrBuilder getInterfacesOrBuilder(int index); + } + + /** + * + * + *
            +   * Represents the protocol of an Agent.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Agent.Protocol} + */ + public static final class Protocol extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.Agent.Protocol) + ProtocolOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Protocol"); + } + + // Use Protocol.newBuilder() to construct. + private Protocol(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Protocol() { + type_ = 0; + protocolVersion_ = ""; + interfaces_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_Protocol_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_Protocol_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Agent.Protocol.class, + com.google.cloud.agentregistry.v1.Agent.Protocol.Builder.class); + } + + /** + * + * + *
            +     * The type of the protocol.
            +     * 
            + * + * Protobuf enum {@code google.cloud.agentregistry.v1.Agent.Protocol.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Unspecified type.
            +       * 
            + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
            +       * The interfaces point to an A2A Agent following the A2A
            +       * specification.
            +       * 
            + * + * A2A_AGENT = 1; + */ + A2A_AGENT(1), + /** + * + * + *
            +       * Agent does not follow any standard protocol.
            +       * 
            + * + * CUSTOM = 2; + */ + CUSTOM(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
            +       * Unspecified type.
            +       * 
            + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +       * The interfaces point to an A2A Agent following the A2A
            +       * specification.
            +       * 
            + * + * A2A_AGENT = 1; + */ + public static final int A2A_AGENT_VALUE = 1; + + /** + * + * + *
            +       * Agent does not follow any standard protocol.
            +       * 
            + * + * CUSTOM = 2; + */ + public static final int CUSTOM_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 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 A2A_AGENT; + case 2: + return CUSTOM; + 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.Agent.Protocol.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.agentregistry.v1.Agent.Protocol.Type) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + + /** + * + * + *
            +     * Output only. The type of the protocol.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Protocol.Type type = 1 [(.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. The type of the protocol.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Protocol.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent.Protocol.Type getType() { + com.google.cloud.agentregistry.v1.Agent.Protocol.Type result = + com.google.cloud.agentregistry.v1.Agent.Protocol.Type.forNumber(type_); + return result == null + ? com.google.cloud.agentregistry.v1.Agent.Protocol.Type.UNRECOGNIZED + : result; + } + + public static final int PROTOCOL_VERSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object protocolVersion_ = ""; + + /** + * + * + *
            +     * Output only. The version of the protocol, for example, the A2A Agent Card
            +     * version.
            +     * 
            + * + * string protocol_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The protocolVersion. + */ + @java.lang.Override + public java.lang.String getProtocolVersion() { + java.lang.Object ref = protocolVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocolVersion_ = s; + return s; + } + } + + /** + * + * + *
            +     * Output only. The version of the protocol, for example, the A2A Agent Card
            +     * version.
            +     * 
            + * + * string protocol_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for protocolVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProtocolVersionBytes() { + java.lang.Object ref = protocolVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocolVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERFACES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List interfaces_; + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getInterfacesList() { + return interfaces_; + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getInterfacesOrBuilderList() { + return interfaces_; + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getInterfacesCount() { + return interfaces_.size(); + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Interface getInterfaces(int index) { + return interfaces_.get(index); + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.InterfaceOrBuilder getInterfacesOrBuilder(int index) { + return interfaces_.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 (type_ + != com.google.cloud.agentregistry.v1.Agent.Protocol.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(protocolVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, protocolVersion_); + } + for (int i = 0; i < interfaces_.size(); i++) { + output.writeMessage(3, interfaces_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.agentregistry.v1.Agent.Protocol.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(protocolVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, protocolVersion_); + } + for (int i = 0; i < interfaces_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, interfaces_.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.agentregistry.v1.Agent.Protocol)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.Agent.Protocol other = + (com.google.cloud.agentregistry.v1.Agent.Protocol) obj; + + if (type_ != other.type_) return false; + if (!getProtocolVersion().equals(other.getProtocolVersion())) return false; + if (!getInterfacesList().equals(other.getInterfacesList())) 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) + PROTOCOL_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getProtocolVersion().hashCode(); + if (getInterfacesCount() > 0) { + hash = (37 * hash) + INTERFACES_FIELD_NUMBER; + hash = (53 * hash) + getInterfacesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.Agent.Protocol parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Agent.Protocol 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.agentregistry.v1.Agent.Protocol parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Agent.Protocol parseFrom( + 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.agentregistry.v1.Agent.Protocol parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Agent.Protocol parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Agent.Protocol parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Agent.Protocol parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Agent.Protocol parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Agent.Protocol parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Agent.Protocol parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Agent.Protocol parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.agentregistry.v1.Agent.Protocol prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Represents the protocol of an Agent.
            +     * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Agent.Protocol} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.Agent.Protocol) + com.google.cloud.agentregistry.v1.Agent.ProtocolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_Protocol_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_Protocol_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Agent.Protocol.class, + com.google.cloud.agentregistry.v1.Agent.Protocol.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.Agent.Protocol.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + protocolVersion_ = ""; + if (interfacesBuilder_ == null) { + interfaces_ = java.util.Collections.emptyList(); + } else { + interfaces_ = null; + interfacesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_Protocol_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent.Protocol getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.Agent.Protocol.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent.Protocol build() { + com.google.cloud.agentregistry.v1.Agent.Protocol result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent.Protocol buildPartial() { + com.google.cloud.agentregistry.v1.Agent.Protocol result = + new com.google.cloud.agentregistry.v1.Agent.Protocol(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentregistry.v1.Agent.Protocol result) { + if (interfacesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + interfaces_ = java.util.Collections.unmodifiableList(interfaces_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.interfaces_ = interfaces_; + } else { + result.interfaces_ = interfacesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.Agent.Protocol result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.protocolVersion_ = protocolVersion_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.Agent.Protocol) { + return mergeFrom((com.google.cloud.agentregistry.v1.Agent.Protocol) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.Agent.Protocol other) { + if (other == com.google.cloud.agentregistry.v1.Agent.Protocol.getDefaultInstance()) + return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getProtocolVersion().isEmpty()) { + protocolVersion_ = other.protocolVersion_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (interfacesBuilder_ == null) { + if (!other.interfaces_.isEmpty()) { + if (interfaces_.isEmpty()) { + interfaces_ = other.interfaces_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureInterfacesIsMutable(); + interfaces_.addAll(other.interfaces_); + } + onChanged(); + } + } else { + if (!other.interfaces_.isEmpty()) { + if (interfacesBuilder_.isEmpty()) { + interfacesBuilder_.dispose(); + interfacesBuilder_ = null; + interfaces_ = other.interfaces_; + bitField0_ = (bitField0_ & ~0x00000004); + interfacesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInterfacesFieldBuilder() + : null; + } else { + interfacesBuilder_.addAllMessages(other.interfaces_); + } + } + } + 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: + { + protocolVersion_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.agentregistry.v1.Interface m = + input.readMessage( + com.google.cloud.agentregistry.v1.Interface.parser(), extensionRegistry); + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.add(m); + } else { + interfacesBuilder_.addMessage(m); + } + 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 type_ = 0; + + /** + * + * + *
            +       * Output only. The type of the protocol.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Protocol.Type type = 1 [(.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. The type of the protocol.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Protocol.Type type = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The type of the protocol.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Protocol.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent.Protocol.Type getType() { + com.google.cloud.agentregistry.v1.Agent.Protocol.Type result = + com.google.cloud.agentregistry.v1.Agent.Protocol.Type.forNumber(type_); + return result == null + ? com.google.cloud.agentregistry.v1.Agent.Protocol.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Output only. The type of the protocol.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Protocol.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.agentregistry.v1.Agent.Protocol.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The type of the protocol.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Protocol.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object protocolVersion_ = ""; + + /** + * + * + *
            +       * Output only. The version of the protocol, for example, the A2A Agent Card
            +       * version.
            +       * 
            + * + * string protocol_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The protocolVersion. + */ + public java.lang.String getProtocolVersion() { + java.lang.Object ref = protocolVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + protocolVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Output only. The version of the protocol, for example, the A2A Agent Card
            +       * version.
            +       * 
            + * + * string protocol_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for protocolVersion. + */ + public com.google.protobuf.ByteString getProtocolVersionBytes() { + java.lang.Object ref = protocolVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + protocolVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Output only. The version of the protocol, for example, the A2A Agent Card
            +       * version.
            +       * 
            + * + * string protocol_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The protocolVersion to set. + * @return This builder for chaining. + */ + public Builder setProtocolVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + protocolVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The version of the protocol, for example, the A2A Agent Card
            +       * version.
            +       * 
            + * + * string protocol_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearProtocolVersion() { + protocolVersion_ = getDefaultInstance().getProtocolVersion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The version of the protocol, for example, the A2A Agent Card
            +       * version.
            +       * 
            + * + * string protocol_version = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for protocolVersion to set. + * @return This builder for chaining. + */ + public Builder setProtocolVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + protocolVersion_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List interfaces_ = + java.util.Collections.emptyList(); + + private void ensureInterfacesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + interfaces_ = + new java.util.ArrayList(interfaces_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Interface, + com.google.cloud.agentregistry.v1.Interface.Builder, + com.google.cloud.agentregistry.v1.InterfaceOrBuilder> + interfacesBuilder_; + + /** + * + * + *
            +       * Output only. The connection details for the Agent.
            +       * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getInterfacesList() { + if (interfacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(interfaces_); + } else { + return interfacesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +       * Output only. The connection details for the Agent.
            +       * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getInterfacesCount() { + if (interfacesBuilder_ == null) { + return interfaces_.size(); + } else { + return interfacesBuilder_.getCount(); + } + } + + /** + * + * + *
            +       * Output only. The connection details for the Agent.
            +       * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Interface getInterfaces(int index) { + if (interfacesBuilder_ == null) { + return interfaces_.get(index); + } else { + return interfacesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +       * Output only. The connection details for the Agent.
            +       * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInterfaces(int index, com.google.cloud.agentregistry.v1.Interface value) { + if (interfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterfacesIsMutable(); + interfaces_.set(index, value); + onChanged(); + } else { + interfacesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Output only. The connection details for the Agent.
            +       * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInterfaces( + int index, com.google.cloud.agentregistry.v1.Interface.Builder builderForValue) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.set(index, builderForValue.build()); + onChanged(); + } else { + interfacesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Output only. The connection details for the Agent.
            +       * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInterfaces(com.google.cloud.agentregistry.v1.Interface value) { + if (interfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterfacesIsMutable(); + interfaces_.add(value); + onChanged(); + } else { + interfacesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +       * Output only. The connection details for the Agent.
            +       * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInterfaces(int index, com.google.cloud.agentregistry.v1.Interface value) { + if (interfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterfacesIsMutable(); + interfaces_.add(index, value); + onChanged(); + } else { + interfacesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Output only. The connection details for the Agent.
            +       * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInterfaces( + com.google.cloud.agentregistry.v1.Interface.Builder builderForValue) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.add(builderForValue.build()); + onChanged(); + } else { + interfacesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Output only. The connection details for the Agent.
            +       * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInterfaces( + int index, com.google.cloud.agentregistry.v1.Interface.Builder builderForValue) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.add(index, builderForValue.build()); + onChanged(); + } else { + interfacesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Output only. The connection details for the Agent.
            +       * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllInterfaces( + java.lang.Iterable values) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, interfaces_); + onChanged(); + } else { + interfacesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * Output only. The connection details for the Agent.
            +       * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearInterfaces() { + if (interfacesBuilder_ == null) { + interfaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + interfacesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Output only. The connection details for the Agent.
            +       * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeInterfaces(int index) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.remove(index); + onChanged(); + } else { + interfacesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * Output only. The connection details for the Agent.
            +       * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Interface.Builder getInterfacesBuilder(int index) { + return internalGetInterfacesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * Output only. The connection details for the Agent.
            +       * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.InterfaceOrBuilder getInterfacesOrBuilder( + int index) { + if (interfacesBuilder_ == null) { + return interfaces_.get(index); + } else { + return interfacesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * Output only. The connection details for the Agent.
            +       * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getInterfacesOrBuilderList() { + if (interfacesBuilder_ != null) { + return interfacesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(interfaces_); + } + } + + /** + * + * + *
            +       * Output only. The connection details for the Agent.
            +       * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Interface.Builder addInterfacesBuilder() { + return internalGetInterfacesFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.Interface.getDefaultInstance()); + } + + /** + * + * + *
            +       * Output only. The connection details for the Agent.
            +       * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Interface.Builder addInterfacesBuilder(int index) { + return internalGetInterfacesFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.Interface.getDefaultInstance()); + } + + /** + * + * + *
            +       * Output only. The connection details for the Agent.
            +       * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getInterfacesBuilderList() { + return internalGetInterfacesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Interface, + com.google.cloud.agentregistry.v1.Interface.Builder, + com.google.cloud.agentregistry.v1.InterfaceOrBuilder> + internalGetInterfacesFieldBuilder() { + if (interfacesBuilder_ == null) { + interfacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Interface, + com.google.cloud.agentregistry.v1.Interface.Builder, + com.google.cloud.agentregistry.v1.InterfaceOrBuilder>( + interfaces_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + interfaces_ = null; + } + return interfacesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.Agent.Protocol) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.Agent.Protocol) + private static final com.google.cloud.agentregistry.v1.Agent.Protocol DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.Agent.Protocol(); + } + + public static com.google.cloud.agentregistry.v1.Agent.Protocol getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Protocol parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.Agent.Protocol getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface SkillOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.Agent.Skill) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Output only. A unique identifier for the agent's skill.
            +     * 
            + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
            +     * Output only. A unique identifier for the agent's skill.
            +     * 
            + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
            +     * Output only. A human-readable name for the agent's skill.
            +     * 
            + * + * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +     * Output only. A human-readable name for the agent's skill.
            +     * 
            + * + * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +     * Output only. A more detailed description of the skill.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
            +     * Output only. A more detailed description of the skill.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
            +     * Output only. Keywords describing the skill.
            +     * 
            + * + * repeated string tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the tags. + */ + java.util.List getTagsList(); + + /** + * + * + *
            +     * Output only. Keywords describing the skill.
            +     * 
            + * + * repeated string tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of tags. + */ + int getTagsCount(); + + /** + * + * + *
            +     * Output only. Keywords describing the skill.
            +     * 
            + * + * repeated string tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The tags at the given index. + */ + java.lang.String getTags(int index); + + /** + * + * + *
            +     * Output only. Keywords describing the skill.
            +     * 
            + * + * repeated string tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + com.google.protobuf.ByteString getTagsBytes(int index); + + /** + * + * + *
            +     * Output only. Example prompts or scenarios this skill can handle.
            +     * 
            + * + * repeated string examples = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the examples. + */ + java.util.List getExamplesList(); + + /** + * + * + *
            +     * Output only. Example prompts or scenarios this skill can handle.
            +     * 
            + * + * repeated string examples = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of examples. + */ + int getExamplesCount(); + + /** + * + * + *
            +     * Output only. Example prompts or scenarios this skill can handle.
            +     * 
            + * + * repeated string examples = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The examples at the given index. + */ + java.lang.String getExamples(int index); + + /** + * + * + *
            +     * Output only. Example prompts or scenarios this skill can handle.
            +     * 
            + * + * repeated string examples = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the examples at the given index. + */ + com.google.protobuf.ByteString getExamplesBytes(int index); + } + + /** + * + * + *
            +   * Represents the skills of an Agent.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Agent.Skill} + */ + public static final class Skill extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.Agent.Skill) + SkillOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Skill"); + } + + // Use Skill.newBuilder() to construct. + private Skill(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Skill() { + id_ = ""; + name_ = ""; + description_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + examples_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_Skill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_Skill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Agent.Skill.class, + com.google.cloud.agentregistry.v1.Agent.Skill.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
            +     * Output only. A unique identifier for the agent's skill.
            +     * 
            + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + + /** + * + * + *
            +     * Output only. A unique identifier for the agent's skill.
            +     * 
            + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Output only. A human-readable name for the agent's skill.
            +     * 
            + * + * string name = 2 [(.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. A human-readable name for the agent's skill.
            +     * 
            + * + * string name = 2 [(.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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
            +     * Output only. A more detailed description of the skill.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
            +     * Output only. A more detailed description of the skill.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TAGS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +     * Output only. Keywords describing the skill.
            +     * 
            + * + * repeated string tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList getTagsList() { + return tags_; + } + + /** + * + * + *
            +     * Output only. Keywords describing the skill.
            +     * 
            + * + * repeated string tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + + /** + * + * + *
            +     * Output only. Keywords describing the skill.
            +     * 
            + * + * repeated string tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + + /** + * + * + *
            +     * Output only. Keywords describing the skill.
            +     * 
            + * + * repeated string tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString getTagsBytes(int index) { + return tags_.getByteString(index); + } + + public static final int EXAMPLES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList examples_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +     * Output only. Example prompts or scenarios this skill can handle.
            +     * 
            + * + * repeated string examples = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the examples. + */ + public com.google.protobuf.ProtocolStringList getExamplesList() { + return examples_; + } + + /** + * + * + *
            +     * Output only. Example prompts or scenarios this skill can handle.
            +     * 
            + * + * repeated string examples = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of examples. + */ + public int getExamplesCount() { + return examples_.size(); + } + + /** + * + * + *
            +     * Output only. Example prompts or scenarios this skill can handle.
            +     * 
            + * + * repeated string examples = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The examples at the given index. + */ + public java.lang.String getExamples(int index) { + return examples_.get(index); + } + + /** + * + * + *
            +     * Output only. Example prompts or scenarios this skill can handle.
            +     * 
            + * + * repeated string examples = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the examples at the given index. + */ + public com.google.protobuf.ByteString getExamplesBytes(int index) { + return examples_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + for (int i = 0; i < tags_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, tags_.getRaw(i)); + } + for (int i = 0; i < examples_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, examples_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + { + int dataSize = 0; + for (int i = 0; i < tags_.size(); i++) { + dataSize += computeStringSizeNoTag(tags_.getRaw(i)); + } + size += dataSize; + size += 1 * getTagsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < examples_.size(); i++) { + dataSize += computeStringSizeNoTag(examples_.getRaw(i)); + } + size += dataSize; + size += 1 * getExamplesList().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.agentregistry.v1.Agent.Skill)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.Agent.Skill other = + (com.google.cloud.agentregistry.v1.Agent.Skill) obj; + + if (!getId().equals(other.getId())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getTagsList().equals(other.getTagsList())) return false; + if (!getExamplesList().equals(other.getExamplesList())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getTagsCount() > 0) { + hash = (37 * hash) + TAGS_FIELD_NUMBER; + hash = (53 * hash) + getTagsList().hashCode(); + } + if (getExamplesCount() > 0) { + hash = (37 * hash) + EXAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getExamplesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.Agent.Skill parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Agent.Skill 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.agentregistry.v1.Agent.Skill parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Agent.Skill parseFrom( + 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.agentregistry.v1.Agent.Skill parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Agent.Skill parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Agent.Skill parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Agent.Skill parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Agent.Skill parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Agent.Skill parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Agent.Skill parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Agent.Skill parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.agentregistry.v1.Agent.Skill prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Represents the skills of an Agent.
            +     * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Agent.Skill} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.Agent.Skill) + com.google.cloud.agentregistry.v1.Agent.SkillOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_Skill_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_Skill_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Agent.Skill.class, + com.google.cloud.agentregistry.v1.Agent.Skill.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.Agent.Skill.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + name_ = ""; + description_ = ""; + tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + examples_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_Skill_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent.Skill getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.Agent.Skill.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent.Skill build() { + com.google.cloud.agentregistry.v1.Agent.Skill result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent.Skill buildPartial() { + com.google.cloud.agentregistry.v1.Agent.Skill result = + new com.google.cloud.agentregistry.v1.Agent.Skill(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.Agent.Skill result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + tags_.makeImmutable(); + result.tags_ = tags_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + examples_.makeImmutable(); + result.examples_ = examples_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.Agent.Skill) { + return mergeFrom((com.google.cloud.agentregistry.v1.Agent.Skill) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.Agent.Skill other) { + if (other == com.google.cloud.agentregistry.v1.Agent.Skill.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.tags_.isEmpty()) { + if (tags_.isEmpty()) { + tags_ = other.tags_; + bitField0_ |= 0x00000008; + } else { + ensureTagsIsMutable(); + tags_.addAll(other.tags_); + } + onChanged(); + } + if (!other.examples_.isEmpty()) { + if (examples_.isEmpty()) { + examples_ = other.examples_; + bitField0_ |= 0x00000010; + } else { + ensureExamplesIsMutable(); + examples_.addAll(other.examples_); + } + 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: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTagsIsMutable(); + tags_.add(s); + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExamplesIsMutable(); + examples_.add(s); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + + /** + * + * + *
            +       * Output only. A unique identifier for the agent's skill.
            +       * 
            + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Output only. A unique identifier for the agent's skill.
            +       * 
            + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Output only. A unique identifier for the agent's skill.
            +       * 
            + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. A unique identifier for the agent's skill.
            +       * 
            + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. A unique identifier for the agent's skill.
            +       * 
            + * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +       * Output only. A human-readable name for the agent's skill.
            +       * 
            + * + * string name = 2 [(.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. A human-readable name for the agent's skill.
            +       * 
            + * + * string name = 2 [(.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. A human-readable name for the agent's skill.
            +       * 
            + * + * string name = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. A human-readable name for the agent's skill.
            +       * 
            + * + * string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. A human-readable name for the agent's skill.
            +       * 
            + * + * string name = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
            +       * Output only. A more detailed description of the skill.
            +       * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Output only. A more detailed description of the skill.
            +       * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Output only. A more detailed description of the skill.
            +       * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. A more detailed description of the skill.
            +       * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. A more detailed description of the skill.
            +       * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList tags_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTagsIsMutable() { + if (!tags_.isModifiable()) { + tags_ = new com.google.protobuf.LazyStringArrayList(tags_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
            +       * Output only. Keywords describing the skill.
            +       * 
            + * + * repeated string tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the tags. + */ + public com.google.protobuf.ProtocolStringList getTagsList() { + tags_.makeImmutable(); + return tags_; + } + + /** + * + * + *
            +       * Output only. Keywords describing the skill.
            +       * 
            + * + * repeated string tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of tags. + */ + public int getTagsCount() { + return tags_.size(); + } + + /** + * + * + *
            +       * Output only. Keywords describing the skill.
            +       * 
            + * + * repeated string tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The tags at the given index. + */ + public java.lang.String getTags(int index) { + return tags_.get(index); + } + + /** + * + * + *
            +       * Output only. Keywords describing the skill.
            +       * 
            + * + * repeated string tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the tags at the given index. + */ + public com.google.protobuf.ByteString getTagsBytes(int index) { + return tags_.getByteString(index); + } + + /** + * + * + *
            +       * Output only. Keywords describing the skill.
            +       * 
            + * + * repeated string tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The tags to set. + * @return This builder for chaining. + */ + public Builder setTags(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Keywords describing the skill.
            +       * 
            + * + * repeated string tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The tags to add. + * @return This builder for chaining. + */ + public Builder addTags(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTagsIsMutable(); + tags_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Keywords describing the skill.
            +       * 
            + * + * repeated string tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The tags to add. + * @return This builder for chaining. + */ + public Builder addAllTags(java.lang.Iterable values) { + ensureTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Keywords describing the skill.
            +       * 
            + * + * repeated string tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTags() { + tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Keywords describing the skill.
            +       * 
            + * + * repeated string tags = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the tags to add. + * @return This builder for chaining. + */ + public Builder addTagsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTagsIsMutable(); + tags_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList examples_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExamplesIsMutable() { + if (!examples_.isModifiable()) { + examples_ = new com.google.protobuf.LazyStringArrayList(examples_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
            +       * Output only. Example prompts or scenarios this skill can handle.
            +       * 
            + * + * repeated string examples = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the examples. + */ + public com.google.protobuf.ProtocolStringList getExamplesList() { + examples_.makeImmutable(); + return examples_; + } + + /** + * + * + *
            +       * Output only. Example prompts or scenarios this skill can handle.
            +       * 
            + * + * repeated string examples = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of examples. + */ + public int getExamplesCount() { + return examples_.size(); + } + + /** + * + * + *
            +       * Output only. Example prompts or scenarios this skill can handle.
            +       * 
            + * + * repeated string examples = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The examples at the given index. + */ + public java.lang.String getExamples(int index) { + return examples_.get(index); + } + + /** + * + * + *
            +       * Output only. Example prompts or scenarios this skill can handle.
            +       * 
            + * + * repeated string examples = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the examples at the given index. + */ + public com.google.protobuf.ByteString getExamplesBytes(int index) { + return examples_.getByteString(index); + } + + /** + * + * + *
            +       * Output only. Example prompts or scenarios this skill can handle.
            +       * 
            + * + * repeated string examples = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The examples to set. + * @return This builder for chaining. + */ + public Builder setExamples(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExamplesIsMutable(); + examples_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Example prompts or scenarios this skill can handle.
            +       * 
            + * + * repeated string examples = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The examples to add. + * @return This builder for chaining. + */ + public Builder addExamples(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExamplesIsMutable(); + examples_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Example prompts or scenarios this skill can handle.
            +       * 
            + * + * repeated string examples = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The examples to add. + * @return This builder for chaining. + */ + public Builder addAllExamples(java.lang.Iterable values) { + ensureExamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, examples_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Example prompts or scenarios this skill can handle.
            +       * 
            + * + * repeated string examples = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearExamples() { + examples_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Example prompts or scenarios this skill can handle.
            +       * 
            + * + * repeated string examples = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the examples to add. + * @return This builder for chaining. + */ + public Builder addExamplesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExamplesIsMutable(); + examples_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.Agent.Skill) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.Agent.Skill) + private static final com.google.cloud.agentregistry.v1.Agent.Skill DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.Agent.Skill(); + } + + public static com.google.cloud.agentregistry.v1.Agent.Skill getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Skill parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.Agent.Skill getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface CardOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.Agent.Card) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Output only. The type of agent card.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
            +     * Output only. The type of agent card.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.agentregistry.v1.Agent.Card.Type getType(); + + /** + * + * + *
            +     * Output only. The content of the agent card.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the content field is set. + */ + boolean hasContent(); + + /** + * + * + *
            +     * Output only. The content of the agent card.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The content. + */ + com.google.protobuf.Struct getContent(); + + /** + * + * + *
            +     * Output only. The content of the agent card.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.StructOrBuilder getContentOrBuilder(); + } + + /** + * + * + *
            +   * Full Agent Card payload, often obtained from the A2A Agent Card.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Agent.Card} + */ + public static final class Card extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.Agent.Card) + CardOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Card"); + } + + // Use Card.newBuilder() to construct. + private Card(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Card() { + type_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_Card_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_Card_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Agent.Card.class, + com.google.cloud.agentregistry.v1.Agent.Card.Builder.class); + } + + /** + * + * + *
            +     * Represents the type of the agent card.
            +     * 
            + * + * Protobuf enum {@code google.cloud.agentregistry.v1.Agent.Card.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Unspecified type.
            +       * 
            + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
            +       * Indicates that the card is an A2A Agent Card.
            +       * 
            + * + * A2A_AGENT_CARD = 1; + */ + A2A_AGENT_CARD(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
            +       * Unspecified type.
            +       * 
            + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +       * Indicates that the card is an A2A Agent Card.
            +       * 
            + * + * A2A_AGENT_CARD = 1; + */ + public static final int A2A_AGENT_CARD_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 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 A2A_AGENT_CARD; + 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.Agent.Card.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.agentregistry.v1.Agent.Card.Type) + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + + /** + * + * + *
            +     * Output only. The type of agent card.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card.Type type = 1 [(.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. The type of agent card.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent.Card.Type getType() { + com.google.cloud.agentregistry.v1.Agent.Card.Type result = + com.google.cloud.agentregistry.v1.Agent.Card.Type.forNumber(type_); + return result == null + ? com.google.cloud.agentregistry.v1.Agent.Card.Type.UNRECOGNIZED + : result; + } + + public static final int CONTENT_FIELD_NUMBER = 2; + private com.google.protobuf.Struct content_; + + /** + * + * + *
            +     * Output only. The content of the agent card.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Output only. The content of the agent card.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The content. + */ + @java.lang.Override + public com.google.protobuf.Struct getContent() { + return content_ == null ? com.google.protobuf.Struct.getDefaultInstance() : content_; + } + + /** + * + * + *
            +     * Output only. The content of the agent card.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getContentOrBuilder() { + return content_ == null ? com.google.protobuf.Struct.getDefaultInstance() : content_; + } + + 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.agentregistry.v1.Agent.Card.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getContent()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ != com.google.cloud.agentregistry.v1.Agent.Card.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContent()); + } + 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.agentregistry.v1.Agent.Card)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.Agent.Card other = + (com.google.cloud.agentregistry.v1.Agent.Card) obj; + + if (type_ != other.type_) return false; + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent().equals(other.getContent())) 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_; + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.Agent.Card parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Agent.Card 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.agentregistry.v1.Agent.Card parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Agent.Card parseFrom( + 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.agentregistry.v1.Agent.Card parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Agent.Card parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Agent.Card parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Agent.Card parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Agent.Card parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Agent.Card parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Agent.Card parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Agent.Card parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.agentregistry.v1.Agent.Card prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Full Agent Card payload, often obtained from the A2A Agent Card.
            +     * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Agent.Card} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.Agent.Card) + com.google.cloud.agentregistry.v1.Agent.CardOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_Card_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_Card_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Agent.Card.class, + com.google.cloud.agentregistry.v1.Agent.Card.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.Agent.Card.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetContentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_Card_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent.Card getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.Agent.Card.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent.Card build() { + com.google.cloud.agentregistry.v1.Agent.Card result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent.Card buildPartial() { + com.google.cloud.agentregistry.v1.Agent.Card result = + new com.google.cloud.agentregistry.v1.Agent.Card(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.Agent.Card result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.Agent.Card) { + return mergeFrom((com.google.cloud.agentregistry.v1.Agent.Card) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.Agent.Card other) { + if (other == com.google.cloud.agentregistry.v1.Agent.Card.getDefaultInstance()) return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasContent()) { + mergeContent(other.getContent()); + } + 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: + { + input.readMessage( + internalGetContentFieldBuilder().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 type_ = 0; + + /** + * + * + *
            +       * Output only. The type of agent card.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card.Type type = 1 [(.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. The type of agent card.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card.Type type = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The type of agent card.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent.Card.Type getType() { + com.google.cloud.agentregistry.v1.Agent.Card.Type result = + com.google.cloud.agentregistry.v1.Agent.Card.Type.forNumber(type_); + return result == null + ? com.google.cloud.agentregistry.v1.Agent.Card.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Output only. The type of agent card.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.agentregistry.v1.Agent.Card.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The type of agent card.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card.Type type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Struct content_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + contentBuilder_; + + /** + * + * + *
            +       * Output only. The content of the agent card.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +       * Output only. The content of the agent card.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The content. + */ + public com.google.protobuf.Struct getContent() { + if (contentBuilder_ == null) { + return content_ == null ? com.google.protobuf.Struct.getDefaultInstance() : content_; + } else { + return contentBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Output only. The content of the agent card.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setContent(com.google.protobuf.Struct value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + } else { + contentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The content of the agent card.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setContent(com.google.protobuf.Struct.Builder builderForValue) { + if (contentBuilder_ == null) { + content_ = builderForValue.build(); + } else { + contentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The content of the agent card.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeContent(com.google.protobuf.Struct value) { + if (contentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && content_ != null + && content_ != com.google.protobuf.Struct.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); + } else { + content_ = value; + } + } else { + contentBuilder_.mergeFrom(value); + } + if (content_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Output only. The content of the agent card.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000002); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The content of the agent card.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Struct.Builder getContentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetContentFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Output only. The content of the agent card.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.StructOrBuilder getContentOrBuilder() { + if (contentBuilder_ != null) { + return contentBuilder_.getMessageOrBuilder(); + } else { + return content_ == null ? com.google.protobuf.Struct.getDefaultInstance() : content_; + } + } + + /** + * + * + *
            +       * Output only. The content of the agent card.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetContentFieldBuilder() { + if (contentBuilder_ == null) { + contentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getContent(), getParentForChildren(), isClean()); + content_ = null; + } + return contentBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.Agent.Card) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.Agent.Card) + private static final com.google.cloud.agentregistry.v1.Agent.Card DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.Agent.Card(); + } + + public static com.google.cloud.agentregistry.v1.Agent.Card getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Card parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.Agent.Card getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Identifier. The resource name of an Agent.
            +   * Format: `projects/{project}/locations/{location}/agents/{agent}`.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Identifier. The resource name of an Agent.
            +   * Format: `projects/{project}/locations/{location}/agents/{agent}`.
            +   * 
            + * + * 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 AGENT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentId_ = ""; + + /** + * + * + *
            +   * Output only. A stable, globally unique identifier for agents.
            +   * 
            + * + * string agent_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The agentId. + */ + @java.lang.Override + public java.lang.String getAgentId() { + java.lang.Object ref = agentId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. A stable, globally unique identifier for agents.
            +   * 
            + * + * string agent_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for agentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentIdBytes() { + java.lang.Object ref = agentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOCATION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
            +   * Output only. The location where agent is hosted. The value is defined by
            +   * the hosting environment (i.e. cloud provider).
            +   * 
            + * + * string location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +   * Output only. The location where agent is hosted. The value is defined by
            +   * the hosting environment (i.e. cloud provider).
            +   * 
            + * + * string location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 DISPLAY_NAME_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
            +   * Output only. The display name of the agent, often obtained from the A2A
            +   * Agent Card.
            +   * 
            + * + * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 display name of the agent, often obtained from the A2A
            +   * Agent Card.
            +   * 
            + * + * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 DESCRIPTION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
            +   * Output only. The description of the Agent, often obtained from the A2A
            +   * Agent Card. Empty if Agent Card has no description.
            +   * 
            + * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. The description of the Agent, often obtained from the A2A
            +   * Agent Card. Empty if Agent Card has no description.
            +   * 
            + * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object version_ = ""; + + /** + * + * + *
            +   * Output only. The version of the Agent, often obtained from the A2A Agent
            +   * Card. Empty if Agent Card has no version or agent is not an A2A Agent.
            +   * 
            + * + * string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +   * Output only. The version of the Agent, often obtained from the A2A Agent
            +   * Card. Empty if Agent Card has no version or agent is not an A2A Agent.
            +   * 
            + * + * string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 PROTOCOLS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List protocols_; + + /** + * + * + *
            +   * Output only. The connection details for the Agent.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getProtocolsList() { + return protocols_; + } + + /** + * + * + *
            +   * Output only. The connection details for the Agent.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getProtocolsOrBuilderList() { + return protocols_; + } + + /** + * + * + *
            +   * Output only. The connection details for the Agent.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getProtocolsCount() { + return protocols_.size(); + } + + /** + * + * + *
            +   * Output only. The connection details for the Agent.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent.Protocol getProtocols(int index) { + return protocols_.get(index); + } + + /** + * + * + *
            +   * Output only. The connection details for the Agent.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent.ProtocolOrBuilder getProtocolsOrBuilder( + int index) { + return protocols_.get(index); + } + + public static final int SKILLS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List skills_; + + /** + * + * + *
            +   * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +   * Card.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getSkillsList() { + return skills_; + } + + /** + * + * + *
            +   * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +   * Card.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getSkillsOrBuilderList() { + return skills_; + } + + /** + * + * + *
            +   * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +   * Card.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getSkillsCount() { + return skills_.size(); + } + + /** + * + * + *
            +   * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +   * Card.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent.Skill getSkills(int index) { + return skills_.get(index); + } + + /** + * + * + *
            +   * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +   * Card.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent.SkillOrBuilder getSkillsOrBuilder(int index) { + return skills_.get(index); + } + + public static final int UID_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
            +   * Output only. A universally unique identifier for the Agent.
            +   * 
            + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @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. A universally unique identifier for the Agent.
            +   * 
            + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @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 = 11; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. Create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 11 [(.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.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 11 [(.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.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 11 [(.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 = 12; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. Update time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 12 [(.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.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 12 [(.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.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 12 [(.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 ATTRIBUTES_FIELD_NUMBER = 13; + + private static final class AttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Struct.getDefaultInstance()); + } + + @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(); + } + + /** + * + * + *
            +   * Output only. Attributes of the Agent.
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/Framework`: {"framework":
            +   * "google-adk"} - the agent framework used to develop the Agent. Example
            +   * values: "google-adk", "langchain", "custom".
            +   * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +   * "principal://..."} - the runtime identity associated with the Agent.
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +   * - the URI of the underlying resource hosting the Agent, for
            +   * example, the Reasoning Engine URI.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @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(); + } + + /** + * + * + *
            +   * Output only. Attributes of the Agent.
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/Framework`: {"framework":
            +   * "google-adk"} - the agent framework used to develop the Agent. Example
            +   * values: "google-adk", "langchain", "custom".
            +   * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +   * "principal://..."} - the runtime identity associated with the Agent.
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +   * - the URI of the underlying resource hosting the Agent, for
            +   * example, the Reasoning Engine URI.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + + /** + * + * + *
            +   * Output only. Attributes of the Agent.
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/Framework`: {"framework":
            +   * "google-adk"} - the agent framework used to develop the Agent. Example
            +   * values: "google-adk", "langchain", "custom".
            +   * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +   * "principal://..."} - the runtime identity associated with the Agent.
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +   * - the URI of the underlying resource hosting the Agent, for
            +   * example, the Reasoning Engine URI.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.protobuf.Struct getAttributesOrDefault( + java.lang.String key, + /* nullable */ + com.google.protobuf.Struct defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Output only. Attributes of the Agent.
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/Framework`: {"framework":
            +   * "google-adk"} - the agent framework used to develop the Agent. Example
            +   * values: "google-adk", "langchain", "custom".
            +   * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +   * "principal://..."} - the runtime identity associated with the Agent.
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +   * - the URI of the underlying resource hosting the Agent, for
            +   * example, the Reasoning Engine URI.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.Struct 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 static final int CARD_FIELD_NUMBER = 14; + private com.google.cloud.agentregistry.v1.Agent.Card card_; + + /** + * + * + *
            +   * Output only. Full Agent Card payload, when available.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the card field is set. + */ + @java.lang.Override + public boolean hasCard() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Output only. Full Agent Card payload, when available.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The card. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent.Card getCard() { + return card_ == null + ? com.google.cloud.agentregistry.v1.Agent.Card.getDefaultInstance() + : card_; + } + + /** + * + * + *
            +   * Output only. Full Agent Card payload, when available.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent.CardOrBuilder getCardOrBuilder() { + return card_ == null + ? com.google.cloud.agentregistry.v1.Agent.Card.getDefaultInstance() + : card_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, agentId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, location_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, version_); + } + for (int i = 0; i < protocols_.size(); i++) { + output.writeMessage(8, protocols_.get(i)); + } + for (int i = 0; i < skills_.size(); i++) { + output.writeMessage(9, skills_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(11, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(12, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 13); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(14, getCard()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, agentId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, location_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, version_); + } + for (int i = 0; i < protocols_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, protocols_.get(i)); + } + for (int i = 0; i < skills_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, skills_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, uid_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getUpdateTime()); + } + 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(13, attributes__); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, getCard()); + } + 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.agentregistry.v1.Agent)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.Agent other = (com.google.cloud.agentregistry.v1.Agent) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAgentId().equals(other.getAgentId())) return false; + if (!getLocation().equals(other.getLocation())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getVersion().equals(other.getVersion())) return false; + if (!getProtocolsList().equals(other.getProtocolsList())) return false; + if (!getSkillsList().equals(other.getSkillsList())) 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 (!internalGetAttributes().equals(other.internalGetAttributes())) return false; + if (hasCard() != other.hasCard()) return false; + if (hasCard()) { + if (!getCard().equals(other.getCard())) 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) + AGENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getAgentId().hashCode(); + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + if (getProtocolsCount() > 0) { + hash = (37 * hash) + PROTOCOLS_FIELD_NUMBER; + hash = (53 * hash) + getProtocolsList().hashCode(); + } + if (getSkillsCount() > 0) { + hash = (37 * hash) + SKILLS_FIELD_NUMBER; + hash = (53 * hash) + getSkillsList().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 (!internalGetAttributes().getMap().isEmpty()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + internalGetAttributes().hashCode(); + } + if (hasCard()) { + hash = (37 * hash) + CARD_FIELD_NUMBER; + hash = (53 * hash) + getCard().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.Agent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Agent 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.agentregistry.v1.Agent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Agent parseFrom( + 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.agentregistry.v1.Agent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Agent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Agent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Agent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Agent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Agent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Agent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Agent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.agentregistry.v1.Agent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents an Agent.
            +   * "A2A" below refers to the Agent-to-Agent protocol.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Agent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.Agent) + com.google.cloud.agentregistry.v1.AgentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 13: + return internalGetAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 13: + return internalGetMutableAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Agent.class, + com.google.cloud.agentregistry.v1.Agent.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.Agent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetProtocolsFieldBuilder(); + internalGetSkillsFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetCardFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + agentId_ = ""; + location_ = ""; + displayName_ = ""; + description_ = ""; + version_ = ""; + if (protocolsBuilder_ == null) { + protocols_ = java.util.Collections.emptyList(); + } else { + protocols_ = null; + protocolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + if (skillsBuilder_ == null) { + skills_ = java.util.Collections.emptyList(); + } else { + skills_ = null; + skillsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + uid_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableAttributes().clear(); + card_ = null; + if (cardBuilder_ != null) { + cardBuilder_.dispose(); + cardBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentProto + .internal_static_google_cloud_agentregistry_v1_Agent_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.Agent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent build() { + com.google.cloud.agentregistry.v1.Agent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent buildPartial() { + com.google.cloud.agentregistry.v1.Agent result = + new com.google.cloud.agentregistry.v1.Agent(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.agentregistry.v1.Agent result) { + if (protocolsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + protocols_ = java.util.Collections.unmodifiableList(protocols_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.protocols_ = protocols_; + } else { + result.protocols_ = protocolsBuilder_.build(); + } + if (skillsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + skills_ = java.util.Collections.unmodifiableList(skills_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.skills_ = skills_; + } else { + result.skills_ = skillsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.Agent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agentId_ = agentId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.location_ = location_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.uid_ = uid_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000200) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.attributes_ = + internalGetAttributes().build(AttributesDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.card_ = cardBuilder_ == null ? card_ : cardBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.Agent) { + return mergeFrom((com.google.cloud.agentregistry.v1.Agent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.Agent other) { + if (other == com.google.cloud.agentregistry.v1.Agent.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAgentId().isEmpty()) { + agentId_ = other.agentId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getVersion().isEmpty()) { + version_ = other.version_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (protocolsBuilder_ == null) { + if (!other.protocols_.isEmpty()) { + if (protocols_.isEmpty()) { + protocols_ = other.protocols_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureProtocolsIsMutable(); + protocols_.addAll(other.protocols_); + } + onChanged(); + } + } else { + if (!other.protocols_.isEmpty()) { + if (protocolsBuilder_.isEmpty()) { + protocolsBuilder_.dispose(); + protocolsBuilder_ = null; + protocols_ = other.protocols_; + bitField0_ = (bitField0_ & ~0x00000040); + protocolsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetProtocolsFieldBuilder() + : null; + } else { + protocolsBuilder_.addAllMessages(other.protocols_); + } + } + } + if (skillsBuilder_ == null) { + if (!other.skills_.isEmpty()) { + if (skills_.isEmpty()) { + skills_ = other.skills_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureSkillsIsMutable(); + skills_.addAll(other.skills_); + } + onChanged(); + } + } else { + if (!other.skills_.isEmpty()) { + if (skillsBuilder_.isEmpty()) { + skillsBuilder_.dispose(); + skillsBuilder_ = null; + skills_ = other.skills_; + bitField0_ = (bitField0_ & ~0x00000080); + skillsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSkillsFieldBuilder() + : null; + } else { + skillsBuilder_.addAllMessages(other.skills_); + } + } + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableAttributes().mergeFrom(other.internalGetAttributes()); + bitField0_ |= 0x00000800; + if (other.hasCard()) { + mergeCard(other.getCard()); + } + 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: + { + agentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + version_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + com.google.cloud.agentregistry.v1.Agent.Protocol m = + input.readMessage( + com.google.cloud.agentregistry.v1.Agent.Protocol.parser(), + extensionRegistry); + if (protocolsBuilder_ == null) { + ensureProtocolsIsMutable(); + protocols_.add(m); + } else { + protocolsBuilder_.addMessage(m); + } + break; + } // case 66 + case 74: + { + com.google.cloud.agentregistry.v1.Agent.Skill m = + input.readMessage( + com.google.cloud.agentregistry.v1.Agent.Skill.parser(), extensionRegistry); + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.add(m); + } else { + skillsBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 90: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 90 + case 98: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 98 + case 106: + { + com.google.protobuf.MapEntry + attributes__ = + input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAttributes() + .ensureBuilderMap() + .put(attributes__.getKey(), attributes__.getValue()); + bitField0_ |= 0x00000800; + break; + } // case 106 + case 114: + { + input.readMessage(internalGetCardFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 114 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Identifier. The resource name of an Agent.
            +     * Format: `projects/{project}/locations/{location}/agents/{agent}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Identifier. The resource name of an Agent.
            +     * Format: `projects/{project}/locations/{location}/agents/{agent}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Identifier. The resource name of an Agent.
            +     * Format: `projects/{project}/locations/{location}/agents/{agent}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The resource name of an Agent.
            +     * Format: `projects/{project}/locations/{location}/agents/{agent}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The resource name of an Agent.
            +     * Format: `projects/{project}/locations/{location}/agents/{agent}`.
            +     * 
            + * + * 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 agentId_ = ""; + + /** + * + * + *
            +     * Output only. A stable, globally unique identifier for agents.
            +     * 
            + * + * string agent_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The agentId. + */ + public java.lang.String getAgentId() { + java.lang.Object ref = agentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. A stable, globally unique identifier for agents.
            +     * 
            + * + * string agent_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for agentId. + */ + public com.google.protobuf.ByteString getAgentIdBytes() { + java.lang.Object ref = agentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. A stable, globally unique identifier for agents.
            +     * 
            + * + * string agent_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The agentId to set. + * @return This builder for chaining. + */ + public Builder setAgentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. A stable, globally unique identifier for agents.
            +     * 
            + * + * string agent_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAgentId() { + agentId_ = getDefaultInstance().getAgentId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. A stable, globally unique identifier for agents.
            +     * 
            + * + * string agent_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for agentId to set. + * @return This builder for chaining. + */ + public Builder setAgentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object location_ = ""; + + /** + * + * + *
            +     * Output only. The location where agent is hosted. The value is defined by
            +     * the hosting environment (i.e. cloud provider).
            +     * 
            + * + * string location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +     * Output only. The location where agent is hosted. The value is defined by
            +     * the hosting environment (i.e. cloud provider).
            +     * 
            + * + * string location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +     * Output only. The location where agent is hosted. The value is defined by
            +     * the hosting environment (i.e. cloud provider).
            +     * 
            + * + * string location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The location where agent is hosted. The value is defined by
            +     * the hosting environment (i.e. cloud provider).
            +     * 
            + * + * string location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The location where agent is hosted. The value is defined by
            +     * the hosting environment (i.e. cloud provider).
            +     * 
            + * + * string location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
            +     * Output only. The display name of the agent, often obtained from the A2A
            +     * Agent Card.
            +     * 
            + * + * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +     * Output only. The display name of the agent, often obtained from the A2A
            +     * Agent Card.
            +     * 
            + * + * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +     * Output only. The display name of the agent, often obtained from the A2A
            +     * Agent Card.
            +     * 
            + * + * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + /** + * + * + *
            +     * Output only. The display name of the agent, often obtained from the A2A
            +     * Agent Card.
            +     * 
            + * + * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The display name of the agent, often obtained from the A2A
            +     * Agent Card.
            +     * 
            + * + * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
            +     * Output only. The description of the Agent, often obtained from the A2A
            +     * Agent Card. Empty if Agent Card has no description.
            +     * 
            + * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. The description of the Agent, often obtained from the A2A
            +     * Agent Card. Empty if Agent Card has no description.
            +     * 
            + * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. The description of the Agent, often obtained from the A2A
            +     * Agent Card. Empty if Agent Card has no description.
            +     * 
            + * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The description of the Agent, often obtained from the A2A
            +     * Agent Card. Empty if Agent Card has no description.
            +     * 
            + * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The description of the Agent, often obtained from the A2A
            +     * Agent Card. Empty if Agent Card has no description.
            +     * 
            + * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + + /** + * + * + *
            +     * Output only. The version of the Agent, often obtained from the A2A Agent
            +     * Card. Empty if Agent Card has no version or agent is not an A2A Agent.
            +     * 
            + * + * string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +     * Output only. The version of the Agent, often obtained from the A2A Agent
            +     * Card. Empty if Agent Card has no version or agent is not an A2A Agent.
            +     * 
            + * + * string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +     * Output only. The version of the Agent, often obtained from the A2A Agent
            +     * Card. Empty if Agent Card has no version or agent is not an A2A Agent.
            +     * 
            + * + * string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The version of the Agent, often obtained from the A2A Agent
            +     * Card. Empty if Agent Card has no version or agent is not an A2A Agent.
            +     * 
            + * + * string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVersion() { + version_ = getDefaultInstance().getVersion(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The version of the Agent, often obtained from the A2A Agent
            +     * Card. Empty if Agent Card has no version or agent is not an A2A Agent.
            +     * 
            + * + * string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000020; + onChanged(); + return this; + } + + private java.util.List protocols_ = + java.util.Collections.emptyList(); + + private void ensureProtocolsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + protocols_ = + new java.util.ArrayList(protocols_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Agent.Protocol, + com.google.cloud.agentregistry.v1.Agent.Protocol.Builder, + com.google.cloud.agentregistry.v1.Agent.ProtocolOrBuilder> + protocolsBuilder_; + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getProtocolsList() { + if (protocolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(protocols_); + } else { + return protocolsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getProtocolsCount() { + if (protocolsBuilder_ == null) { + return protocols_.size(); + } else { + return protocolsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Agent.Protocol getProtocols(int index) { + if (protocolsBuilder_ == null) { + return protocols_.get(index); + } else { + return protocolsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProtocols(int index, com.google.cloud.agentregistry.v1.Agent.Protocol value) { + if (protocolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProtocolsIsMutable(); + protocols_.set(index, value); + onChanged(); + } else { + protocolsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setProtocols( + int index, com.google.cloud.agentregistry.v1.Agent.Protocol.Builder builderForValue) { + if (protocolsBuilder_ == null) { + ensureProtocolsIsMutable(); + protocols_.set(index, builderForValue.build()); + onChanged(); + } else { + protocolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProtocols(com.google.cloud.agentregistry.v1.Agent.Protocol value) { + if (protocolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProtocolsIsMutable(); + protocols_.add(value); + onChanged(); + } else { + protocolsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProtocols(int index, com.google.cloud.agentregistry.v1.Agent.Protocol value) { + if (protocolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureProtocolsIsMutable(); + protocols_.add(index, value); + onChanged(); + } else { + protocolsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProtocols( + com.google.cloud.agentregistry.v1.Agent.Protocol.Builder builderForValue) { + if (protocolsBuilder_ == null) { + ensureProtocolsIsMutable(); + protocols_.add(builderForValue.build()); + onChanged(); + } else { + protocolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addProtocols( + int index, com.google.cloud.agentregistry.v1.Agent.Protocol.Builder builderForValue) { + if (protocolsBuilder_ == null) { + ensureProtocolsIsMutable(); + protocols_.add(index, builderForValue.build()); + onChanged(); + } else { + protocolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllProtocols( + java.lang.Iterable values) { + if (protocolsBuilder_ == null) { + ensureProtocolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, protocols_); + onChanged(); + } else { + protocolsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearProtocols() { + if (protocolsBuilder_ == null) { + protocols_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + protocolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeProtocols(int index) { + if (protocolsBuilder_ == null) { + ensureProtocolsIsMutable(); + protocols_.remove(index); + onChanged(); + } else { + protocolsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Agent.Protocol.Builder getProtocolsBuilder(int index) { + return internalGetProtocolsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Agent.ProtocolOrBuilder getProtocolsOrBuilder( + int index) { + if (protocolsBuilder_ == null) { + return protocols_.get(index); + } else { + return protocolsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getProtocolsOrBuilderList() { + if (protocolsBuilder_ != null) { + return protocolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(protocols_); + } + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Agent.Protocol.Builder addProtocolsBuilder() { + return internalGetProtocolsFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.Agent.Protocol.getDefaultInstance()); + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Agent.Protocol.Builder addProtocolsBuilder(int index) { + return internalGetProtocolsFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.Agent.Protocol.getDefaultInstance()); + } + + /** + * + * + *
            +     * Output only. The connection details for the Agent.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getProtocolsBuilderList() { + return internalGetProtocolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Agent.Protocol, + com.google.cloud.agentregistry.v1.Agent.Protocol.Builder, + com.google.cloud.agentregistry.v1.Agent.ProtocolOrBuilder> + internalGetProtocolsFieldBuilder() { + if (protocolsBuilder_ == null) { + protocolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Agent.Protocol, + com.google.cloud.agentregistry.v1.Agent.Protocol.Builder, + com.google.cloud.agentregistry.v1.Agent.ProtocolOrBuilder>( + protocols_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + protocols_ = null; + } + return protocolsBuilder_; + } + + private java.util.List skills_ = + java.util.Collections.emptyList(); + + private void ensureSkillsIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + skills_ = new java.util.ArrayList(skills_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Agent.Skill, + com.google.cloud.agentregistry.v1.Agent.Skill.Builder, + com.google.cloud.agentregistry.v1.Agent.SkillOrBuilder> + skillsBuilder_; + + /** + * + * + *
            +     * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +     * Card.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getSkillsList() { + if (skillsBuilder_ == null) { + return java.util.Collections.unmodifiableList(skills_); + } else { + return skillsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +     * Card.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getSkillsCount() { + if (skillsBuilder_ == null) { + return skills_.size(); + } else { + return skillsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +     * Card.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Agent.Skill getSkills(int index) { + if (skillsBuilder_ == null) { + return skills_.get(index); + } else { + return skillsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +     * Card.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSkills(int index, com.google.cloud.agentregistry.v1.Agent.Skill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.set(index, value); + onChanged(); + } else { + skillsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +     * Card.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSkills( + int index, com.google.cloud.agentregistry.v1.Agent.Skill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.set(index, builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +     * Card.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSkills(com.google.cloud.agentregistry.v1.Agent.Skill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.add(value); + onChanged(); + } else { + skillsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +     * Card.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSkills(int index, com.google.cloud.agentregistry.v1.Agent.Skill value) { + if (skillsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkillsIsMutable(); + skills_.add(index, value); + onChanged(); + } else { + skillsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +     * Card.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSkills( + com.google.cloud.agentregistry.v1.Agent.Skill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.add(builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +     * Card.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addSkills( + int index, com.google.cloud.agentregistry.v1.Agent.Skill.Builder builderForValue) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.add(index, builderForValue.build()); + onChanged(); + } else { + skillsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +     * Card.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllSkills( + java.lang.Iterable values) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skills_); + onChanged(); + } else { + skillsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +     * Card.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSkills() { + if (skillsBuilder_ == null) { + skills_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + skillsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +     * Card.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeSkills(int index) { + if (skillsBuilder_ == null) { + ensureSkillsIsMutable(); + skills_.remove(index); + onChanged(); + } else { + skillsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +     * Card.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Agent.Skill.Builder getSkillsBuilder(int index) { + return internalGetSkillsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +     * Card.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Agent.SkillOrBuilder getSkillsOrBuilder(int index) { + if (skillsBuilder_ == null) { + return skills_.get(index); + } else { + return skillsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +     * Card.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getSkillsOrBuilderList() { + if (skillsBuilder_ != null) { + return skillsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skills_); + } + } + + /** + * + * + *
            +     * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +     * Card.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Agent.Skill.Builder addSkillsBuilder() { + return internalGetSkillsFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.Agent.Skill.getDefaultInstance()); + } + + /** + * + * + *
            +     * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +     * Card.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Agent.Skill.Builder addSkillsBuilder(int index) { + return internalGetSkillsFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.Agent.Skill.getDefaultInstance()); + } + + /** + * + * + *
            +     * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +     * Card.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getSkillsBuilderList() { + return internalGetSkillsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Agent.Skill, + com.google.cloud.agentregistry.v1.Agent.Skill.Builder, + com.google.cloud.agentregistry.v1.Agent.SkillOrBuilder> + internalGetSkillsFieldBuilder() { + if (skillsBuilder_ == null) { + skillsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Agent.Skill, + com.google.cloud.agentregistry.v1.Agent.Skill.Builder, + com.google.cloud.agentregistry.v1.Agent.SkillOrBuilder>( + skills_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); + skills_ = null; + } + return skillsBuilder_; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
            +     * Output only. A universally unique identifier for the Agent.
            +     * 
            + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @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. A universally unique identifier for the Agent.
            +     * 
            + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @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. A universally unique identifier for the Agent.
            +     * 
            + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. A universally unique identifier for the Agent.
            +     * 
            + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. A universally unique identifier for the Agent.
            +     * 
            + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @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_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 11 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 11 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000200); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 11 [(.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.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 12 [(.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.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 12 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 12 [(.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_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000400); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 12 [(.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.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private static final class AttributesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, com.google.protobuf.StructOrBuilder, com.google.protobuf.Struct> { + @java.lang.Override + public com.google.protobuf.Struct build(com.google.protobuf.StructOrBuilder val) { + if (val instanceof com.google.protobuf.Struct) { + return (com.google.protobuf.Struct) val; + } + return ((com.google.protobuf.Struct.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry + defaultEntry() { + return AttributesDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final AttributesConverter attributesConverter = new AttributesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.protobuf.StructOrBuilder, + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder> + attributes_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.protobuf.StructOrBuilder, + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder> + internalGetAttributes() { + if (attributes_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(attributesConverter); + } + return attributes_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.protobuf.StructOrBuilder, + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder> + internalGetMutableAttributes() { + if (attributes_ == null) { + attributes_ = new com.google.protobuf.MapFieldBuilder<>(attributesConverter); + } + bitField0_ |= 0x00000800; + onChanged(); + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().ensureBuilderMap().size(); + } + + /** + * + * + *
            +     * Output only. Attributes of the Agent.
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/Framework`: {"framework":
            +     * "google-adk"} - the agent framework used to develop the Agent. Example
            +     * values: "google-adk", "langchain", "custom".
            +     * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +     * "principal://..."} - the runtime identity associated with the Agent.
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +     * - the URI of the underlying resource hosting the Agent, for
            +     * example, the Reasoning Engine URI.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAttributes().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getAttributesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + + /** + * + * + *
            +     * Output only. Attributes of the Agent.
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/Framework`: {"framework":
            +     * "google-adk"} - the agent framework used to develop the Agent. Example
            +     * values: "google-adk", "langchain", "custom".
            +     * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +     * "principal://..."} - the runtime identity associated with the Agent.
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +     * - the URI of the underlying resource hosting the Agent, for
            +     * example, the Reasoning Engine URI.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getAttributesMap() { + return internalGetAttributes().getImmutableMap(); + } + + /** + * + * + *
            +     * Output only. Attributes of the Agent.
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/Framework`: {"framework":
            +     * "google-adk"} - the agent framework used to develop the Agent. Example
            +     * values: "google-adk", "langchain", "custom".
            +     * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +     * "principal://..."} - the runtime identity associated with the Agent.
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +     * - the URI of the underlying resource hosting the Agent, for
            +     * example, the Reasoning Engine URI.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.protobuf.Struct getAttributesOrDefault( + java.lang.String key, + /* nullable */ + com.google.protobuf.Struct defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableAttributes().ensureBuilderMap(); + return map.containsKey(key) ? attributesConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
            +     * Output only. Attributes of the Agent.
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/Framework`: {"framework":
            +     * "google-adk"} - the agent framework used to develop the Agent. Example
            +     * values: "google-adk", "langchain", "custom".
            +     * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +     * "principal://..."} - the runtime identity associated with the Agent.
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +     * - the URI of the underlying resource hosting the Agent, for
            +     * example, the Reasoning Engine URI.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.Struct getAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableAttributes().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return attributesConverter.build(map.get(key)); + } + + public Builder clearAttributes() { + bitField0_ = (bitField0_ & ~0x00000800); + internalGetMutableAttributes().clear(); + return this; + } + + /** + * + * + *
            +     * Output only. Attributes of the Agent.
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/Framework`: {"framework":
            +     * "google-adk"} - the agent framework used to develop the Agent. Example
            +     * values: "google-adk", "langchain", "custom".
            +     * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +     * "principal://..."} - the runtime identity associated with the Agent.
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +     * - the URI of the underlying resource hosting the Agent, for
            +     * example, the Reasoning Engine URI.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAttributes().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAttributes() { + bitField0_ |= 0x00000800; + return internalGetMutableAttributes().ensureMessageMap(); + } + + /** + * + * + *
            +     * Output only. Attributes of the Agent.
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/Framework`: {"framework":
            +     * "google-adk"} - the agent framework used to develop the Agent. Example
            +     * values: "google-adk", "langchain", "custom".
            +     * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +     * "principal://..."} - the runtime identity associated with the Agent.
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +     * - the URI of the underlying resource hosting the Agent, for
            +     * example, the Reasoning Engine URI.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAttributes(java.lang.String key, com.google.protobuf.Struct value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAttributes().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000800; + return this; + } + + /** + * + * + *
            +     * Output only. Attributes of the Agent.
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/Framework`: {"framework":
            +     * "google-adk"} - the agent framework used to develop the Agent. Example
            +     * values: "google-adk", "langchain", "custom".
            +     * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +     * "principal://..."} - the runtime identity associated with the Agent.
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +     * - the URI of the underlying resource hosting the Agent, for
            +     * example, the Reasoning Engine URI.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllAttributes( + java.util.Map values) { + for (java.util.Map.Entry e : + values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableAttributes().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000800; + return this; + } + + /** + * + * + *
            +     * Output only. Attributes of the Agent.
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/Framework`: {"framework":
            +     * "google-adk"} - the agent framework used to develop the Agent. Example
            +     * values: "google-adk", "langchain", "custom".
            +     * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +     * "principal://..."} - the runtime identity associated with the Agent.
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +     * - the URI of the underlying resource hosting the Agent, for
            +     * example, the Reasoning Engine URI.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Struct.Builder putAttributesBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = + internalGetMutableAttributes().ensureBuilderMap(); + com.google.protobuf.StructOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.protobuf.Struct.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.protobuf.Struct) { + entry = ((com.google.protobuf.Struct) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.protobuf.Struct.Builder) entry; + } + + private com.google.cloud.agentregistry.v1.Agent.Card card_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Agent.Card, + com.google.cloud.agentregistry.v1.Agent.Card.Builder, + com.google.cloud.agentregistry.v1.Agent.CardOrBuilder> + cardBuilder_; + + /** + * + * + *
            +     * Output only. Full Agent Card payload, when available.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the card field is set. + */ + public boolean hasCard() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
            +     * Output only. Full Agent Card payload, when available.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The card. + */ + public com.google.cloud.agentregistry.v1.Agent.Card getCard() { + if (cardBuilder_ == null) { + return card_ == null + ? com.google.cloud.agentregistry.v1.Agent.Card.getDefaultInstance() + : card_; + } else { + return cardBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Full Agent Card payload, when available.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCard(com.google.cloud.agentregistry.v1.Agent.Card value) { + if (cardBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + card_ = value; + } else { + cardBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Full Agent Card payload, when available.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCard(com.google.cloud.agentregistry.v1.Agent.Card.Builder builderForValue) { + if (cardBuilder_ == null) { + card_ = builderForValue.build(); + } else { + cardBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Full Agent Card payload, when available.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCard(com.google.cloud.agentregistry.v1.Agent.Card value) { + if (cardBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && card_ != null + && card_ != com.google.cloud.agentregistry.v1.Agent.Card.getDefaultInstance()) { + getCardBuilder().mergeFrom(value); + } else { + card_ = value; + } + } else { + cardBuilder_.mergeFrom(value); + } + if (card_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Full Agent Card payload, when available.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCard() { + bitField0_ = (bitField0_ & ~0x00001000); + card_ = null; + if (cardBuilder_ != null) { + cardBuilder_.dispose(); + cardBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Full Agent Card payload, when available.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Agent.Card.Builder getCardBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return internalGetCardFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Full Agent Card payload, when available.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Agent.CardOrBuilder getCardOrBuilder() { + if (cardBuilder_ != null) { + return cardBuilder_.getMessageOrBuilder(); + } else { + return card_ == null + ? com.google.cloud.agentregistry.v1.Agent.Card.getDefaultInstance() + : card_; + } + } + + /** + * + * + *
            +     * Output only. Full Agent Card payload, when available.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Agent.Card, + com.google.cloud.agentregistry.v1.Agent.Card.Builder, + com.google.cloud.agentregistry.v1.Agent.CardOrBuilder> + internalGetCardFieldBuilder() { + if (cardBuilder_ == null) { + cardBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Agent.Card, + com.google.cloud.agentregistry.v1.Agent.Card.Builder, + com.google.cloud.agentregistry.v1.Agent.CardOrBuilder>( + getCard(), getParentForChildren(), isClean()); + card_ = null; + } + return cardBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.Agent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.Agent) + private static final com.google.cloud.agentregistry.v1.Agent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.Agent(); + } + + public static com.google.cloud.agentregistry.v1.Agent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Agent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.Agent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentName.java new file mode 100644 index 000000000000..f3cafcb3418a --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.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 AgentName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_AGENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/agents/{agent}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String agent; + + @Deprecated + protected AgentName() { + project = null; + location = null; + agent = null; + } + + private AgentName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + agent = Preconditions.checkNotNull(builder.getAgent()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAgent() { + return agent; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AgentName of(String project, String location, String agent) { + return newBuilder().setProject(project).setLocation(location).setAgent(agent).build(); + } + + public static String format(String project, String location, String agent) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAgent(agent) + .build() + .toString(); + } + + public static AgentName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AGENT.validatedMatch( + formattedString, "AgentName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("agent")); + } + + 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 (AgentName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_AGENT.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 (agent != null) { + fieldMapBuilder.put("agent", agent); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_AGENT.instantiate( + "project", project, "location", location, "agent", agent); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AgentName that = ((AgentName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.agent, that.agent); + } + 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(agent); + return h; + } + + /** Builder for projects/{project}/locations/{location}/agents/{agent}. */ + public static class Builder { + private String project; + private String location; + private String agent; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAgent() { + return agent; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAgent(String agent) { + this.agent = agent; + return this; + } + + private Builder(AgentName agentName) { + this.project = agentName.project; + this.location = agentName.location; + this.agent = agentName.agent; + } + + public AgentName build() { + return new AgentName(this); + } + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentOrBuilder.java new file mode 100644 index 000000000000..75c2ac887a79 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentOrBuilder.java @@ -0,0 +1,607 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agent.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface AgentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.Agent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Identifier. The resource name of an Agent.
            +   * Format: `projects/{project}/locations/{location}/agents/{agent}`.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Identifier. The resource name of an Agent.
            +   * Format: `projects/{project}/locations/{location}/agents/{agent}`.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Output only. A stable, globally unique identifier for agents.
            +   * 
            + * + * string agent_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The agentId. + */ + java.lang.String getAgentId(); + + /** + * + * + *
            +   * Output only. A stable, globally unique identifier for agents.
            +   * 
            + * + * string agent_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for agentId. + */ + com.google.protobuf.ByteString getAgentIdBytes(); + + /** + * + * + *
            +   * Output only. The location where agent is hosted. The value is defined by
            +   * the hosting environment (i.e. cloud provider).
            +   * 
            + * + * string location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
            +   * Output only. The location where agent is hosted. The value is defined by
            +   * the hosting environment (i.e. cloud provider).
            +   * 
            + * + * string location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
            +   * Output only. The display name of the agent, often obtained from the A2A
            +   * Agent Card.
            +   * 
            + * + * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
            +   * Output only. The display name of the agent, often obtained from the A2A
            +   * Agent Card.
            +   * 
            + * + * string display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
            +   * Output only. The description of the Agent, often obtained from the A2A
            +   * Agent Card. Empty if Agent Card has no description.
            +   * 
            + * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
            +   * Output only. The description of the Agent, often obtained from the A2A
            +   * Agent Card. Empty if Agent Card has no description.
            +   * 
            + * + * string description = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
            +   * Output only. The version of the Agent, often obtained from the A2A Agent
            +   * Card. Empty if Agent Card has no version or agent is not an A2A Agent.
            +   * 
            + * + * string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The version. + */ + java.lang.String getVersion(); + + /** + * + * + *
            +   * Output only. The version of the Agent, often obtained from the A2A Agent
            +   * Card. Empty if Agent Card has no version or agent is not an A2A Agent.
            +   * 
            + * + * string version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for version. + */ + com.google.protobuf.ByteString getVersionBytes(); + + /** + * + * + *
            +   * Output only. The connection details for the Agent.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getProtocolsList(); + + /** + * + * + *
            +   * Output only. The connection details for the Agent.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.agentregistry.v1.Agent.Protocol getProtocols(int index); + + /** + * + * + *
            +   * Output only. The connection details for the Agent.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getProtocolsCount(); + + /** + * + * + *
            +   * Output only. The connection details for the Agent.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getProtocolsOrBuilderList(); + + /** + * + * + *
            +   * Output only. The connection details for the Agent.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Protocol protocols = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.agentregistry.v1.Agent.ProtocolOrBuilder getProtocolsOrBuilder(int index); + + /** + * + * + *
            +   * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +   * Card.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getSkillsList(); + + /** + * + * + *
            +   * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +   * Card.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.agentregistry.v1.Agent.Skill getSkills(int index); + + /** + * + * + *
            +   * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +   * Card.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getSkillsCount(); + + /** + * + * + *
            +   * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +   * Card.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getSkillsOrBuilderList(); + + /** + * + * + *
            +   * Output only. Skills the agent possesses, often obtained from the A2A Agent
            +   * Card.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Agent.Skill skills = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.agentregistry.v1.Agent.SkillOrBuilder getSkillsOrBuilder(int index); + + /** + * + * + *
            +   * Output only. A universally unique identifier for the Agent.
            +   * 
            + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
            +   * Output only. A universally unique identifier for the Agent.
            +   * 
            + * + * + * string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
            +   * Output only. Create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. Create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. Create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Update time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. Update time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. Update time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Attributes of the Agent.
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/Framework`: {"framework":
            +   * "google-adk"} - the agent framework used to develop the Agent. Example
            +   * values: "google-adk", "langchain", "custom".
            +   * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +   * "principal://..."} - the runtime identity associated with the Agent.
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +   * - the URI of the underlying resource hosting the Agent, for
            +   * example, the Reasoning Engine URI.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAttributesCount(); + + /** + * + * + *
            +   * Output only. Attributes of the Agent.
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/Framework`: {"framework":
            +   * "google-adk"} - the agent framework used to develop the Agent. Example
            +   * values: "google-adk", "langchain", "custom".
            +   * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +   * "principal://..."} - the runtime identity associated with the Agent.
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +   * - the URI of the underlying resource hosting the Agent, for
            +   * example, the Reasoning Engine URI.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsAttributes(java.lang.String key); + + /** Use {@link #getAttributesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAttributes(); + + /** + * + * + *
            +   * Output only. Attributes of the Agent.
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/Framework`: {"framework":
            +   * "google-adk"} - the agent framework used to develop the Agent. Example
            +   * values: "google-adk", "langchain", "custom".
            +   * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +   * "principal://..."} - the runtime identity associated with the Agent.
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +   * - the URI of the underlying resource hosting the Agent, for
            +   * example, the Reasoning Engine URI.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getAttributesMap(); + + /** + * + * + *
            +   * Output only. Attributes of the Agent.
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/Framework`: {"framework":
            +   * "google-adk"} - the agent framework used to develop the Agent. Example
            +   * values: "google-adk", "langchain", "custom".
            +   * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +   * "principal://..."} - the runtime identity associated with the Agent.
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +   * - the URI of the underlying resource hosting the Agent, for
            +   * example, the Reasoning Engine URI.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + com.google.protobuf.Struct getAttributesOrDefault( + java.lang.String key, + /* nullable */ + com.google.protobuf.Struct defaultValue); + + /** + * + * + *
            +   * Output only. Attributes of the Agent.
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/Framework`: {"framework":
            +   * "google-adk"} - the agent framework used to develop the Agent. Example
            +   * values: "google-adk", "langchain", "custom".
            +   * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +   * "principal://..."} - the runtime identity associated with the Agent.
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +   * - the URI of the underlying resource hosting the Agent, for
            +   * example, the Reasoning Engine URI.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.Struct getAttributesOrThrow(java.lang.String key); + + /** + * + * + *
            +   * Output only. Full Agent Card payload, when available.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the card field is set. + */ + boolean hasCard(); + + /** + * + * + *
            +   * Output only. Full Agent Card payload, when available.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The card. + */ + com.google.cloud.agentregistry.v1.Agent.Card getCard(); + + /** + * + * + *
            +   * Output only. Full Agent Card payload, when available.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Agent.Card card = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.agentregistry.v1.Agent.CardOrBuilder getCardOrBuilder(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentProto.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentProto.java new file mode 100644 index 000000000000..2769b56ca559 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentProto.java @@ -0,0 +1,214 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agent.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public final class AgentProto extends com.google.protobuf.GeneratedFile { + private AgentProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentProto"); + } + + 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_agentregistry_v1_Agent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Agent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_Agent_Protocol_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Agent_Protocol_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_Agent_Skill_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Agent_Skill_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_Agent_Card_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Agent_Card_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_Agent_AttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Agent_AttributesEntry_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/agentregistry/v1/agent.pr" + + "oto\022\035google.cloud.agentregistry.v1\032\037goog" + + "le/api/field_behavior.proto\032\033google/api/" + + "field_info.proto\032\031google/api/resource.pr" + + "oto\032.google/cloud/agentregistry/v1/prope" + + "rties.proto\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\367" + + "\t\n" + + "\005Agent\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\025\n" + + "\010agent_id\030\002 \001(\tB\003\340A\003\022\025\n" + + "\010location\030\004 \001(\tB\003\340A\003\022\031\n" + + "\014display_name\030\005 \001(\tB\003\340A\003\022\030\n" + + "\013description\030\006 \001(\tB\003\340A\003\022\024\n" + + "\007version\030\007 \001(\tB\003\340A\003\022E\n" + + "\tprotocols\030\010 " + + "\003(\0132-.google.cloud.agentregistry.v1.Agent.ProtocolB\003\340A\003\022?\n" + + "\006skills\030\t \003(\0132*.google" + + ".cloud.agentregistry.v1.Agent.SkillB\003\340A\003\022\030\n" + + "\003uid\030\n" + + " \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\0224\n" + + "\013create_time\030\013 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\014" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022M\n\n" + + "attributes\030\r" + + " \003(\01324.google.cloud.agentregistry.v1.Agent.AttributesEntryB\003\340A\003\022<\n" + + "\004card\030\016" + + " \001(\0132).google.cloud.agentregistry.v1.Agent.CardB\003\340A\003\032\354\001\n" + + "\010Protocol\022E\n" + + "\004type\030\001 \001(\01622.google.cloud.ag" + + "entregistry.v1.Agent.Protocol.TypeB\003\340A\003\022\035\n" + + "\020protocol_version\030\002 \001(\tB\003\340A\003\022A\n\n" + + "interfaces\030\003" + + " \003(\0132(.google.cloud.agentregistry.v1.InterfaceB\003\340A\003\"7\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\r\n" + + "\tA2A_AGENT\020\001\022\n\n" + + "\006CUSTOM\020\002\032o\n" + + "\005Skill\022\017\n" + + "\002id\030\001 \001(\tB\003\340A\003\022\021\n" + + "\004name\030\002 \001(\tB\003\340A\003\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\003\022\021\n" + + "\004tags\030\004 \003(\tB\003\340A\003\022\025\n" + + "\010examples\030\005 \003(\tB\003\340A\003\032\252\001\n" + + "\004Card\022A\n" + + "\004type\030\001" + + " \001(\0162..google.cloud.agentregistry.v1.Agent.Card.TypeB\003\340A\003\022-\n" + + "\007content\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\003\"0\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\022\n" + + "\016A2A_AGENT_CARD\020\001\032J\n" + + "\017AttributesEntry\022\013\n" + + "\003key\030\001 \001(\t\022&\n" + + "\005value\030\002 \001(\0132\027.google.protobuf.Struct:\0028\001:n\352Ak\n" + + "\"agentregistry.googleapis.com/Agent\0226p" + + "rojects/{project}/locations/{location}/agents/{agent}*\006agents2\005agentB\335\001\n" + + "!com.google.cloud.agentregistry.v1B\n" + + "AgentProtoP\001ZGcloud.google.com/go/agentregistry/apiv" + + "1/agentregistrypb;agentregistrypb\252\002\035Goog" + + "le.Cloud.AgentRegistry.V1\312\002\035Google\\Cloud\\AgentRegistry\\V1\352\002" + + " Google::Cloud::AgentRegistry::V1b\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.cloud.agentregistry.v1.PropertiesProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_agentregistry_v1_Agent_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_agentregistry_v1_Agent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Agent_descriptor, + new java.lang.String[] { + "Name", + "AgentId", + "Location", + "DisplayName", + "Description", + "Version", + "Protocols", + "Skills", + "Uid", + "CreateTime", + "UpdateTime", + "Attributes", + "Card", + }); + internal_static_google_cloud_agentregistry_v1_Agent_Protocol_descriptor = + internal_static_google_cloud_agentregistry_v1_Agent_descriptor.getNestedType(0); + internal_static_google_cloud_agentregistry_v1_Agent_Protocol_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Agent_Protocol_descriptor, + new java.lang.String[] { + "Type", "ProtocolVersion", "Interfaces", + }); + internal_static_google_cloud_agentregistry_v1_Agent_Skill_descriptor = + internal_static_google_cloud_agentregistry_v1_Agent_descriptor.getNestedType(1); + internal_static_google_cloud_agentregistry_v1_Agent_Skill_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Agent_Skill_descriptor, + new java.lang.String[] { + "Id", "Name", "Description", "Tags", "Examples", + }); + internal_static_google_cloud_agentregistry_v1_Agent_Card_descriptor = + internal_static_google_cloud_agentregistry_v1_Agent_descriptor.getNestedType(2); + internal_static_google_cloud_agentregistry_v1_Agent_Card_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Agent_Card_descriptor, + new java.lang.String[] { + "Type", "Content", + }); + internal_static_google_cloud_agentregistry_v1_Agent_AttributesEntry_descriptor = + internal_static_google_cloud_agentregistry_v1_Agent_descriptor.getNestedType(3); + internal_static_google_cloud_agentregistry_v1_Agent_AttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Agent_AttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.agentregistry.v1.PropertiesProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + 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); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryServiceProto.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryServiceProto.java new file mode 100644 index 000000000000..a3f74b6660dd --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/AgentRegistryServiceProto.java @@ -0,0 +1,679 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public final class AgentRegistryServiceProto extends com.google.protobuf.GeneratedFile { + private AgentRegistryServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentRegistryServiceProto"); + } + + 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_agentregistry_v1_ListAgentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListAgentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListAgentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListAgentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_SearchAgentsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_SearchAgentsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_SearchAgentsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_SearchAgentsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_GetAgentRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_GetAgentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListEndpointsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListEndpointsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListEndpointsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListEndpointsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_GetEndpointRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_GetEndpointRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListMcpServersRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListMcpServersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListMcpServersResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListMcpServersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_SearchMcpServersRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_SearchMcpServersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_SearchMcpServersResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_SearchMcpServersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_GetMcpServerRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_GetMcpServerRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListServicesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListServicesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListServicesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListServicesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_GetServiceRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_GetServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_CreateServiceRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_CreateServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_UpdateServiceRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_UpdateServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_DeleteServiceRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_DeleteServiceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_OperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_ListBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_ListBindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_GetBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_GetBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_CreateBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_CreateBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_UpdateBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_UpdateBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_DeleteBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_DeleteBindingRequest_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" + + "9google/cloud/agentregistry/v1/agentregistry_service.proto\022\035google.cloud.agentr" + + "egistry.v1\032\034google/api/annotations.proto" + + "\032\027google/api/client.proto\032\037google/api/fi" + + "eld_behavior.proto\032\033google/api/field_inf" + + "o.proto\032\031google/api/resource.proto\032)goog" + + "le/cloud/agentregistry/v1/agent.proto\032+google/cloud/agentregistry/v1/binding.pro" + + "to\032,google/cloud/agentregistry/v1/endpoint.proto\032.google/cloud/agentregistry/v1/" + + "mcp_server.proto\032+google/cloud/agentregistry/v1/service.proto\032#google/longrunnin" + + "g/operations.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\254\001\n" + + "\021ListAgentsRequest\022:\n" + + "\006parent\030\001 \001(" + + "\tB*\340A\002\372A$\022\"agentregistry.googleapis.com/Agent\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"c\n" + + "\022ListAgentsResponse\0224\n" + + "\006agents\030\001 \003(\0132$.google.cloud.agentregistry.v1.Agent\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\236\001\n" + + "\023SearchAgentsRequest\022:\n" + + "\006parent\030\001 \001(" + + "\tB*\340A\002\372A$\022\"agentregistry.googleapis.com/Agent\022\032\n\r" + + "search_string\030\003 \001(\tB\003\340A\001\022\026\n" + + "\tpage_size\030\006 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\007 \001(\tB\003\340A\001\"e\n" + + "\024SearchAgentsResponse\0224\n" + + "\006agents\030\001 \003(\0132$.google.cloud.agentregistry.v1.Agent\022\027\n" + + "\017next_page_token\030\002 \001(\t\"K\n" + + "\017GetAgentRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"agentregistry.googleapis.com/Agent\"\233\001\n" + + "\024ListEndpointsRequest\022=\n" + + "\006parent\030\001 \001(" + + "\tB-\340A\002\372A\'\022%agentregistry.googleapis.com/Endpoint\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\"l\n" + + "\025ListEndpointsResponse\022:\n" + + "\tendpoints\030\001 \003(\0132\'.google.cloud.agentregistry.v1.Endpoint\022\027\n" + + "\017next_page_token\030\002 \001(\t\"Q\n" + + "\022GetEndpointRequest\022;\n" + + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + + "%agentregistry.googleapis.com/Endpoint\"\264\001\n" + + "\025ListMcpServersRequest\022>\n" + + "\006parent\030\001 \001(" + + "\tB.\340A\002\372A(\022&agentregistry.googleapis.com/McpServer\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"p\n" + + "\026ListMcpServersResponse\022=\n" + + "\013mcp_servers\030\001 \003(\0132(.google.cloud.agentregistry.v1.McpServer\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\246\001\n" + + "\027SearchMcpServersRequest\022>\n" + + "\006parent\030\001 \001(" + + "\tB.\340A\002\372A(\022&agentregistry.googleapis.com/McpServer\022\032\n\r" + + "search_string\030\003 \001(\tB\003\340A\001\022\026\n" + + "\tpage_size\030\006 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\007 \001(\tB\003\340A\001\"r\n" + + "\030SearchMcpServersResponse\022=\n" + + "\013mcp_servers\030\001 \003(\0132(.google.cloud.agentregistry.v1.McpServer\022\027\n" + + "\017next_page_token\030\002 \001(\t\"S\n" + + "\023GetMcpServerRequest\022<\n" + + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + + "&agentregistry.googleapis.com/McpServer\"\231\001\n" + + "\023ListServicesRequest\022<\n" + + "\006parent\030\001 \001(" + + "\tB,\340A\002\372A&\022$agentregistry.googleapis.com/Service\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\"i\n" + + "\024ListServicesResponse\0228\n" + + "\010services\030\001 \003(\0132&.google.cloud.agentregistry.v1.Service\022\027\n" + + "\017next_page_token\030\002 \001(\t\"O\n" + + "\021GetServiceRequest\022:\n" + + "\004name\030\001 \001(\tB,\340A\002\372A&\n" + + "$agentregistry.googleapis.com/Service\"\314\001\n" + + "\024CreateServiceRequest\022<\n" + + "\006parent\030\001 \001(" + + "\tB,\340A\002\372A&\022$agentregistry.googleapis.com/Service\022\027\n\n" + + "service_id\030\002 \001(\tB\003\340A\002\022<\n" + + "\007service\030\003" + + " \001(\0132&.google.cloud.agentregistry.v1.ServiceB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\341\001\n" + + "\035FetchAvailableBindingsRequest\022\033\n" + + "\021source_identifier\030\002 \001(\tH\000\022 \n" + + "\021target_identifier\030\003 \001(\tB\003\340A\001H\001\022<\n" + + "\006parent\030\001 \001(" + + "\tB,\340A\002\372A&\022$agentregistry.googleapis.com/Binding\022\026\n" + + "\tpage_size\030\004 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\005 \001(\tB\003\340A\001B\010\n" + + "\006sourceB\010\n" + + "\006target\"s\n" + + "\036FetchAvailableBindingsResponse\0228\n" + + "\010bindings\030\001 \003(\0132&.google.cloud.agentregistry.v1.Binding\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\253\001\n" + + "\024UpdateServiceRequest\0224\n" + + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022<\n" + + "\007service\030\002" + + " \001(\0132&.google.cloud.agentregistry.v1.ServiceB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"s\n" + + "\024DeleteServiceRequest\022:\n" + + "\004name\030\001 \001(\tB,\340A\002\372A&\n" + + "$agentregistry.googleapis.com/Service\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\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" + + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" + + "\013api_version\030\007 \001(\tB\003\340A\003\"\260\001\n" + + "\023ListBindingsRequest\022<\n" + + "\006parent\030\001 \001(\tB,\340A\002" + + "\372A&\022$agentregistry.googleapis.com/Binding\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"i\n" + + "\024ListBindingsResponse\0228\n" + + "\010bindings\030\001 \003(\0132&.google.cloud.agentregistry.v1.Binding\022\027\n" + + "\017next_page_token\030\002 \001(\t\"O\n" + + "\021GetBindingRequest\022:\n" + + "\004name\030\001 \001(\tB,\340A\002\372A&\n" + + "$agentregistry.googleapis.com/Binding\"\314\001\n" + + "\024CreateBindingRequest\022<\n" + + "\006parent\030\001 \001(" + + "\tB,\340A\002\372A&\022$agentregistry.googleapis.com/Binding\022\027\n\n" + + "binding_id\030\002 \001(\tB\003\340A\002\022<\n" + + "\007binding\030\003" + + " \001(\0132&.google.cloud.agentregistry.v1.BindingB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\253\001\n" + + "\024UpdateBindingRequest\022<\n" + + "\007binding\030\001" + + " \001(\0132&.google.cloud.agentregistry.v1.BindingB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"s\n" + + "\024DeleteBindingRequest\022:\n" + + "\004name\030\001 \001(\tB,\340A\002\372A&\n" + + "$agentregistry.googleapis.com/Binding\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\0012\214\037\n\r" + + "AgentRegistry\022\256\001\n\n" + + "ListAgents\0220.google.cloud.agentregistry.v1.ListAgentsRequest\0321.google.cloud.a" + + "gentregistry.v1.ListAgentsResponse\";\332A\006p" + + "arent\202\323\344\223\002,\022*/v1/{parent=projects/*/locations/*}/agents\022\276\001\n" + + "\014SearchAgents\0222.google.cloud.agentregistry.v1.SearchAgentsReq" + + "uest\0323.google.cloud.agentregistry.v1.Sea" + + "rchAgentsResponse\"E\332A\006parent\202\323\344\223\0026\"1/v1/" + + "{parent=projects/*/locations/*}/agents:search:\001*\022\233\001\n" + + "\010GetAgent\022..google.cloud.agentregistry.v1.GetAgentRequest\032$.google.c" + + "loud.agentregistry.v1.Agent\"9\332A\004name\202\323\344\223" + + "\002,\022*/v1/{name=projects/*/locations/*/agents/*}\022\272\001\n\r" + + "ListEndpoints\0223.google.cloud.agentregistry.v1.ListEndpointsRequest\0324." + + "google.cloud.agentregistry.v1.ListEndpoi" + + "ntsResponse\">\332A\006parent\202\323\344\223\002/\022-/v1/{parent=projects/*/locations/*}/endpoints\022\247\001\n" + + "\013GetEndpoint\0221.google.cloud.agentregistry" + + ".v1.GetEndpointRequest\032\'.google.cloud.ag" + + "entregistry.v1.Endpoint\"<\332A\004name\202\323\344\223\002/\022-" + + "/v1/{name=projects/*/locations/*/endpoints/*}\022\276\001\n" + + "\016ListMcpServers\0224.google.cloud.agentregistry.v1.ListMcpServersRequest\0325" + + ".google.cloud.agentregistry.v1.ListMcpSe" + + "rversResponse\"?\332A\006parent\202\323\344\223\0020\022./v1/{par" + + "ent=projects/*/locations/*}/mcpServers\022\316\001\n" + + "\020SearchMcpServers\0226.google.cloud.agent" + + "registry.v1.SearchMcpServersRequest\0327.google.cloud.agentregistry.v1.SearchMcpSer" + + "versResponse\"I\332A\006parent\202\323\344\223\002:\"5/v1/{pare" + + "nt=projects/*/locations/*}/mcpServers:search:\001*\022\253\001\n" + + "\014GetMcpServer\0222.google.cloud.agentregistry.v1.GetMcpServerRequest\032(.g" + + "oogle.cloud.agentregistry.v1.McpServer\"=" + + "\332A\004name\202\323\344\223\0020\022./v1/{name=projects/*/locations/*/mcpServers/*}\022\266\001\n" + + "\014ListServices\0222.google.cloud.agentregistry.v1.ListServi" + + "cesRequest\0323.google.cloud.agentregistry." + + "v1.ListServicesResponse\"=\332A\006parent\202\323\344\223\002." + + "\022,/v1/{parent=projects/*/locations/*}/services\022\243\001\n\n" + + "GetService\0220.google.cloud.agentregistry.v1.GetServiceRequest\032&.google" + + ".cloud.agentregistry.v1.Service\";\332A\004name" + + "\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/services/*}\022\335\001\n\r" + + "CreateService\0223.google." + + "cloud.agentregistry.v1.CreateServiceRequest\032\035.google.longrunning.Operation\"x\312A\034\n" + + "\007Service\022\021OperationMetadata\332A\031parent,ser" + + "vice,service_id\202\323\344\223\0027\",/v1/{parent=projects/*/locations/*}/services:\007service\022\337\001\n" + + "\r" + + "UpdateService\0223.google.cloud.agentregis" + + "try.v1.UpdateServiceRequest\032\035.google.longrunning.Operation\"z\312A\034\n" + + "\007Service\022\021OperationMetadata\332A\023service,update_mask\202\323\344\223\002?2" + + "4/v1/{service.name=projects/*/locations/*/services/*}:\007service\022\315\001\n\r" + + "DeleteService\0223.google.cloud.agentregistry.v1.DeleteS" + + "erviceRequest\032\035.google.longrunning.Operation\"h\312A*\n" + + "\025google.protobuf.Empty\022\021Operat" + + "ionMetadata\332A\004name\202\323\344\223\002.*,/v1/{name=projects/*/locations/*/services/*}\022\266\001\n" + + "\014ListBindings\0222.google.cloud.agentregistry.v1." + + "ListBindingsRequest\0323.google.cloud.agent" + + "registry.v1.ListBindingsResponse\"=\332A\006par" + + "ent\202\323\344\223\002.\022,/v1/{parent=projects/*/locations/*}/bindings\022\243\001\n\n" + + "GetBinding\0220.google.cloud.agentregistry.v1.GetBindingRequest" + + "\032&.google.cloud.agentregistry.v1.Binding" + + "\";\332A\004name\202\323\344\223\002.\022,/v1/{name=projects/*/locations/*/bindings/*}\022\335\001\n\r" + + "CreateBinding\0223.google.cloud.agentregistry.v1.CreateBi" + + "ndingRequest\032\035.google.longrunning.Operation\"x\312A\034\n" + + "\007Binding\022\021OperationMetadata\332A\031p" + + "arent,binding,binding_id\202\323\344\223\0027\",/v1/{par" + + "ent=projects/*/locations/*}/bindings:\007binding\022\337\001\n\r" + + "UpdateBinding\0223.google.cloud.a" + + "gentregistry.v1.UpdateBindingRequest\032\035.google.longrunning.Operation\"z\312A\034\n" + + "\007Binding\022\021OperationMetadata\332A\023binding,update_ma" + + "sk\202\323\344\223\002?24/v1/{binding.name=projects/*/locations/*/bindings/*}:\007binding\022\315\001\n\r" + + "DeleteBinding\0223.google.cloud.agentregistry.v" + + "1.DeleteBindingRequest\032\035.google.longrunning.Operation\"h\312A*\n" + + "\025google.protobuf.Empt" + + "y\022\021OperationMetadata\332A\004name\202\323\344\223\002.*,/v1/{" + + "name=projects/*/locations/*/bindings/*}\022\343\001\n" + + "\026FetchAvailableBindings\022<.google.cloud.agentregistry.v1.FetchAvailableBinding" + + "sRequest\032=.google.cloud.agentregistry.v1" + + ".FetchAvailableBindingsResponse\"L\332A\006pare" + + "nt\202\323\344\223\002=\022;/v1/{parent=projects/*/locatio" + + "ns/*}/bindings:fetchAvailable\032\373\001\312A\034agent" + + "registry.googleapis.com\322A\330\001https://www.g" + + "oogleapis.com/auth/agentregistry.read-only,https://www.googleapis.com/auth/agent" + + "registry.read-write,https://www.googleapis.com/auth/cloud-platform,https://www.g" + + "oogleapis.com/auth/cloud-platform.read-onlyB\354\001\n" + + "!com.google.cloud.agentregistry.v1B\031AgentRegistryServiceProtoP\001ZGcloud.go" + + "ogle.com/go/agentregistry/apiv1/agentreg" + + "istrypb;agentregistrypb\252\002\035Google.Cloud.A" + + "gentRegistry.V1\312\002\035Google\\Cloud\\AgentRegistry\\V1\352\002" + + " Google::Cloud::AgentRegistry::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.agentregistry.v1.AgentProto.getDescriptor(), + com.google.cloud.agentregistry.v1.BindingProto.getDescriptor(), + com.google.cloud.agentregistry.v1.EndpointProto.getDescriptor(), + com.google.cloud.agentregistry.v1.McpServerProto.getDescriptor(), + com.google.cloud.agentregistry.v1.ServiceProto.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_agentregistry_v1_ListAgentsRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_agentregistry_v1_ListAgentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListAgentsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_agentregistry_v1_ListAgentsResponse_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_agentregistry_v1_ListAgentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListAgentsResponse_descriptor, + new java.lang.String[] { + "Agents", "NextPageToken", + }); + internal_static_google_cloud_agentregistry_v1_SearchAgentsRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_agentregistry_v1_SearchAgentsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_SearchAgentsRequest_descriptor, + new java.lang.String[] { + "Parent", "SearchString", "PageSize", "PageToken", + }); + internal_static_google_cloud_agentregistry_v1_SearchAgentsResponse_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_agentregistry_v1_SearchAgentsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_SearchAgentsResponse_descriptor, + new java.lang.String[] { + "Agents", "NextPageToken", + }); + internal_static_google_cloud_agentregistry_v1_GetAgentRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_agentregistry_v1_GetAgentRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_GetAgentRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_agentregistry_v1_ListEndpointsRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_agentregistry_v1_ListEndpointsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListEndpointsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_agentregistry_v1_ListEndpointsResponse_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_agentregistry_v1_ListEndpointsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListEndpointsResponse_descriptor, + new java.lang.String[] { + "Endpoints", "NextPageToken", + }); + internal_static_google_cloud_agentregistry_v1_GetEndpointRequest_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_agentregistry_v1_GetEndpointRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_GetEndpointRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_agentregistry_v1_ListMcpServersRequest_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_agentregistry_v1_ListMcpServersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListMcpServersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_agentregistry_v1_ListMcpServersResponse_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_agentregistry_v1_ListMcpServersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListMcpServersResponse_descriptor, + new java.lang.String[] { + "McpServers", "NextPageToken", + }); + internal_static_google_cloud_agentregistry_v1_SearchMcpServersRequest_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_agentregistry_v1_SearchMcpServersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_SearchMcpServersRequest_descriptor, + new java.lang.String[] { + "Parent", "SearchString", "PageSize", "PageToken", + }); + internal_static_google_cloud_agentregistry_v1_SearchMcpServersResponse_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_agentregistry_v1_SearchMcpServersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_SearchMcpServersResponse_descriptor, + new java.lang.String[] { + "McpServers", "NextPageToken", + }); + internal_static_google_cloud_agentregistry_v1_GetMcpServerRequest_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_agentregistry_v1_GetMcpServerRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_GetMcpServerRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_agentregistry_v1_ListServicesRequest_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_agentregistry_v1_ListServicesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListServicesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_agentregistry_v1_ListServicesResponse_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_agentregistry_v1_ListServicesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListServicesResponse_descriptor, + new java.lang.String[] { + "Services", "NextPageToken", + }); + internal_static_google_cloud_agentregistry_v1_GetServiceRequest_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_agentregistry_v1_GetServiceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_GetServiceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_agentregistry_v1_CreateServiceRequest_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_agentregistry_v1_CreateServiceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_CreateServiceRequest_descriptor, + new java.lang.String[] { + "Parent", "ServiceId", "Service", "RequestId", + }); + internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsRequest_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsRequest_descriptor, + new java.lang.String[] { + "SourceIdentifier", + "TargetIdentifier", + "Parent", + "PageSize", + "PageToken", + "Source", + "Target", + }); + internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsResponse_descriptor = + getDescriptor().getMessageType(18); + internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsResponse_descriptor, + new java.lang.String[] { + "Bindings", "NextPageToken", + }); + internal_static_google_cloud_agentregistry_v1_UpdateServiceRequest_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_cloud_agentregistry_v1_UpdateServiceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_UpdateServiceRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "Service", "RequestId", + }); + internal_static_google_cloud_agentregistry_v1_DeleteServiceRequest_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_cloud_agentregistry_v1_DeleteServiceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_DeleteServiceRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_agentregistry_v1_OperationMetadata_descriptor = + getDescriptor().getMessageType(21); + internal_static_google_cloud_agentregistry_v1_OperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_OperationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "Verb", + "StatusMessage", + "RequestedCancellation", + "ApiVersion", + }); + internal_static_google_cloud_agentregistry_v1_ListBindingsRequest_descriptor = + getDescriptor().getMessageType(22); + internal_static_google_cloud_agentregistry_v1_ListBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListBindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_agentregistry_v1_ListBindingsResponse_descriptor = + getDescriptor().getMessageType(23); + internal_static_google_cloud_agentregistry_v1_ListBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_ListBindingsResponse_descriptor, + new java.lang.String[] { + "Bindings", "NextPageToken", + }); + internal_static_google_cloud_agentregistry_v1_GetBindingRequest_descriptor = + getDescriptor().getMessageType(24); + internal_static_google_cloud_agentregistry_v1_GetBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_GetBindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_agentregistry_v1_CreateBindingRequest_descriptor = + getDescriptor().getMessageType(25); + internal_static_google_cloud_agentregistry_v1_CreateBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_CreateBindingRequest_descriptor, + new java.lang.String[] { + "Parent", "BindingId", "Binding", "RequestId", + }); + internal_static_google_cloud_agentregistry_v1_UpdateBindingRequest_descriptor = + getDescriptor().getMessageType(26); + internal_static_google_cloud_agentregistry_v1_UpdateBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_UpdateBindingRequest_descriptor, + new java.lang.String[] { + "Binding", "UpdateMask", "RequestId", + }); + internal_static_google_cloud_agentregistry_v1_DeleteBindingRequest_descriptor = + getDescriptor().getMessageType(27); + internal_static_google_cloud_agentregistry_v1_DeleteBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_DeleteBindingRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.agentregistry.v1.AgentProto.getDescriptor(); + com.google.cloud.agentregistry.v1.BindingProto.getDescriptor(); + com.google.cloud.agentregistry.v1.EndpointProto.getDescriptor(); + com.google.cloud.agentregistry.v1.McpServerProto.getDescriptor(); + com.google.cloud.agentregistry.v1.ServiceProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); + 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); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Binding.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Binding.java new file mode 100644 index 000000000000..17eebb199675 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Binding.java @@ -0,0 +1,5460 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/binding.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Represents a user-defined Binding.
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Binding} + */ +@com.google.protobuf.Generated +public final class Binding extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.Binding) + BindingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Binding"); + } + + // Use Binding.newBuilder() to construct. + private Binding(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Binding() { + name_ = ""; + displayName_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Binding.class, + com.google.cloud.agentregistry.v1.Binding.Builder.class); + } + + public interface SourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.Binding.Source) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * The identifier of the source Agent.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string identifier = 1; + * + * @return Whether the identifier field is set. + */ + boolean hasIdentifier(); + + /** + * + * + *
            +     * The identifier of the source Agent.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string identifier = 1; + * + * @return The identifier. + */ + java.lang.String getIdentifier(); + + /** + * + * + *
            +     * The identifier of the source Agent.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string identifier = 1; + * + * @return The bytes for identifier. + */ + com.google.protobuf.ByteString getIdentifierBytes(); + + com.google.cloud.agentregistry.v1.Binding.Source.SourceTypeCase getSourceTypeCase(); + } + + /** + * + * + *
            +   * The source of the Binding.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Binding.Source} + */ + public static final class Source extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.Binding.Source) + SourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Source"); + } + + // Use Source.newBuilder() to construct. + private Source(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Source() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_Source_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_Source_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Binding.Source.class, + com.google.cloud.agentregistry.v1.Binding.Source.Builder.class); + } + + private int sourceTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object sourceType_; + + public enum SourceTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + IDENTIFIER(1), + SOURCETYPE_NOT_SET(0); + private final int value; + + private SourceTypeCase(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 SourceTypeCase valueOf(int value) { + return forNumber(value); + } + + public static SourceTypeCase forNumber(int value) { + switch (value) { + case 1: + return IDENTIFIER; + case 0: + return SOURCETYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceTypeCase getSourceTypeCase() { + return SourceTypeCase.forNumber(sourceTypeCase_); + } + + public static final int IDENTIFIER_FIELD_NUMBER = 1; + + /** + * + * + *
            +     * The identifier of the source Agent.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string identifier = 1; + * + * @return Whether the identifier field is set. + */ + public boolean hasIdentifier() { + return sourceTypeCase_ == 1; + } + + /** + * + * + *
            +     * The identifier of the source Agent.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string identifier = 1; + * + * @return The identifier. + */ + public java.lang.String getIdentifier() { + java.lang.Object ref = ""; + if (sourceTypeCase_ == 1) { + ref = sourceType_; + } + if (ref instanceof java.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 (sourceTypeCase_ == 1) { + sourceType_ = s; + } + return s; + } + } + + /** + * + * + *
            +     * The identifier of the source Agent.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string identifier = 1; + * + * @return The bytes for identifier. + */ + public com.google.protobuf.ByteString getIdentifierBytes() { + java.lang.Object ref = ""; + if (sourceTypeCase_ == 1) { + ref = sourceType_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceTypeCase_ == 1) { + sourceType_ = 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 (sourceTypeCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, sourceType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sourceTypeCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sourceType_); + } + 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.agentregistry.v1.Binding.Source)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.Binding.Source other = + (com.google.cloud.agentregistry.v1.Binding.Source) obj; + + if (!getSourceTypeCase().equals(other.getSourceTypeCase())) return false; + switch (sourceTypeCase_) { + case 1: + if (!getIdentifier().equals(other.getIdentifier())) 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 (sourceTypeCase_) { + case 1: + hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getIdentifier().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.Binding.Source parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Binding.Source 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.agentregistry.v1.Binding.Source parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Binding.Source parseFrom( + 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.agentregistry.v1.Binding.Source parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Binding.Source parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Binding.Source parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Binding.Source parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Binding.Source parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Binding.Source parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Binding.Source parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Binding.Source parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.agentregistry.v1.Binding.Source prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * The source of the Binding.
            +     * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Binding.Source} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.Binding.Source) + com.google.cloud.agentregistry.v1.Binding.SourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_Source_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_Source_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Binding.Source.class, + com.google.cloud.agentregistry.v1.Binding.Source.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.Binding.Source.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sourceTypeCase_ = 0; + sourceType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_Source_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding.Source getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.Binding.Source.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding.Source build() { + com.google.cloud.agentregistry.v1.Binding.Source result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding.Source buildPartial() { + com.google.cloud.agentregistry.v1.Binding.Source result = + new com.google.cloud.agentregistry.v1.Binding.Source(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.Binding.Source result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.agentregistry.v1.Binding.Source result) { + result.sourceTypeCase_ = sourceTypeCase_; + result.sourceType_ = this.sourceType_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.Binding.Source) { + return mergeFrom((com.google.cloud.agentregistry.v1.Binding.Source) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.Binding.Source other) { + if (other == com.google.cloud.agentregistry.v1.Binding.Source.getDefaultInstance()) + return this; + switch (other.getSourceTypeCase()) { + case IDENTIFIER: + { + sourceTypeCase_ = 1; + sourceType_ = other.sourceType_; + onChanged(); + break; + } + case SOURCETYPE_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(); + sourceTypeCase_ = 1; + sourceType_ = 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 sourceTypeCase_ = 0; + private java.lang.Object sourceType_; + + public SourceTypeCase getSourceTypeCase() { + return SourceTypeCase.forNumber(sourceTypeCase_); + } + + public Builder clearSourceType() { + sourceTypeCase_ = 0; + sourceType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
            +       * The identifier of the source Agent.
            +       * Format:
            +       *
            +       * * `urn:agent:{publisher}:{namespace}:{name}`
            +       * 
            + * + * string identifier = 1; + * + * @return Whether the identifier field is set. + */ + @java.lang.Override + public boolean hasIdentifier() { + return sourceTypeCase_ == 1; + } + + /** + * + * + *
            +       * The identifier of the source Agent.
            +       * Format:
            +       *
            +       * * `urn:agent:{publisher}:{namespace}:{name}`
            +       * 
            + * + * string identifier = 1; + * + * @return The identifier. + */ + @java.lang.Override + public java.lang.String getIdentifier() { + java.lang.Object ref = ""; + if (sourceTypeCase_ == 1) { + ref = sourceType_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceTypeCase_ == 1) { + sourceType_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * The identifier of the source Agent.
            +       * Format:
            +       *
            +       * * `urn:agent:{publisher}:{namespace}:{name}`
            +       * 
            + * + * string identifier = 1; + * + * @return The bytes for identifier. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentifierBytes() { + java.lang.Object ref = ""; + if (sourceTypeCase_ == 1) { + ref = sourceType_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceTypeCase_ == 1) { + sourceType_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * The identifier of the source Agent.
            +       * Format:
            +       *
            +       * * `urn:agent:{publisher}:{namespace}:{name}`
            +       * 
            + * + * string identifier = 1; + * + * @param value The identifier to set. + * @return This builder for chaining. + */ + public Builder setIdentifier(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceTypeCase_ = 1; + sourceType_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The identifier of the source Agent.
            +       * Format:
            +       *
            +       * * `urn:agent:{publisher}:{namespace}:{name}`
            +       * 
            + * + * string identifier = 1; + * + * @return This builder for chaining. + */ + public Builder clearIdentifier() { + if (sourceTypeCase_ == 1) { + sourceTypeCase_ = 0; + sourceType_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * The identifier of the source Agent.
            +       * Format:
            +       *
            +       * * `urn:agent:{publisher}:{namespace}:{name}`
            +       * 
            + * + * string identifier = 1; + * + * @param value The bytes for identifier to set. + * @return This builder for chaining. + */ + public Builder setIdentifierBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceTypeCase_ = 1; + sourceType_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.Binding.Source) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.Binding.Source) + private static final com.google.cloud.agentregistry.v1.Binding.Source DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.Binding.Source(); + } + + public static com.google.cloud.agentregistry.v1.Binding.Source getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Source parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.Binding.Source getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TargetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.Binding.Target) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * The identifier of the target Agent, MCP Server, or Endpoint.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * * `urn:mcp:{publisher}:{namespace}:{name}`
            +     * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string identifier = 1; + * + * @return Whether the identifier field is set. + */ + boolean hasIdentifier(); + + /** + * + * + *
            +     * The identifier of the target Agent, MCP Server, or Endpoint.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * * `urn:mcp:{publisher}:{namespace}:{name}`
            +     * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string identifier = 1; + * + * @return The identifier. + */ + java.lang.String getIdentifier(); + + /** + * + * + *
            +     * The identifier of the target Agent, MCP Server, or Endpoint.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * * `urn:mcp:{publisher}:{namespace}:{name}`
            +     * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string identifier = 1; + * + * @return The bytes for identifier. + */ + com.google.protobuf.ByteString getIdentifierBytes(); + + com.google.cloud.agentregistry.v1.Binding.Target.TargetTypeCase getTargetTypeCase(); + } + + /** + * + * + *
            +   * The target of the Binding.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Binding.Target} + */ + public static final class Target extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.Binding.Target) + TargetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Target"); + } + + // Use Target.newBuilder() to construct. + private Target(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Target() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_Target_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_Target_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Binding.Target.class, + com.google.cloud.agentregistry.v1.Binding.Target.Builder.class); + } + + private int targetTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object targetType_; + + public enum TargetTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + IDENTIFIER(1), + TARGETTYPE_NOT_SET(0); + private final int value; + + private TargetTypeCase(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 TargetTypeCase valueOf(int value) { + return forNumber(value); + } + + public static TargetTypeCase forNumber(int value) { + switch (value) { + case 1: + return IDENTIFIER; + case 0: + return TARGETTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TargetTypeCase getTargetTypeCase() { + return TargetTypeCase.forNumber(targetTypeCase_); + } + + public static final int IDENTIFIER_FIELD_NUMBER = 1; + + /** + * + * + *
            +     * The identifier of the target Agent, MCP Server, or Endpoint.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * * `urn:mcp:{publisher}:{namespace}:{name}`
            +     * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string identifier = 1; + * + * @return Whether the identifier field is set. + */ + public boolean hasIdentifier() { + return targetTypeCase_ == 1; + } + + /** + * + * + *
            +     * The identifier of the target Agent, MCP Server, or Endpoint.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * * `urn:mcp:{publisher}:{namespace}:{name}`
            +     * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string identifier = 1; + * + * @return The identifier. + */ + public java.lang.String getIdentifier() { + java.lang.Object ref = ""; + if (targetTypeCase_ == 1) { + ref = targetType_; + } + if (ref instanceof java.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 (targetTypeCase_ == 1) { + targetType_ = s; + } + return s; + } + } + + /** + * + * + *
            +     * The identifier of the target Agent, MCP Server, or Endpoint.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * * `urn:mcp:{publisher}:{namespace}:{name}`
            +     * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string identifier = 1; + * + * @return The bytes for identifier. + */ + public com.google.protobuf.ByteString getIdentifierBytes() { + java.lang.Object ref = ""; + if (targetTypeCase_ == 1) { + ref = targetType_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetTypeCase_ == 1) { + targetType_ = 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 (targetTypeCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, targetType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (targetTypeCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, targetType_); + } + 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.agentregistry.v1.Binding.Target)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.Binding.Target other = + (com.google.cloud.agentregistry.v1.Binding.Target) obj; + + if (!getTargetTypeCase().equals(other.getTargetTypeCase())) return false; + switch (targetTypeCase_) { + case 1: + if (!getIdentifier().equals(other.getIdentifier())) 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 (targetTypeCase_) { + case 1: + hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getIdentifier().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.Binding.Target parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Binding.Target 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.agentregistry.v1.Binding.Target parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Binding.Target parseFrom( + 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.agentregistry.v1.Binding.Target parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Binding.Target parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Binding.Target parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Binding.Target parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Binding.Target parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Binding.Target parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Binding.Target parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Binding.Target parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.agentregistry.v1.Binding.Target prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * The target of the Binding.
            +     * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Binding.Target} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.Binding.Target) + com.google.cloud.agentregistry.v1.Binding.TargetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_Target_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_Target_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Binding.Target.class, + com.google.cloud.agentregistry.v1.Binding.Target.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.Binding.Target.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + targetTypeCase_ = 0; + targetType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_Target_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding.Target getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.Binding.Target.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding.Target build() { + com.google.cloud.agentregistry.v1.Binding.Target result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding.Target buildPartial() { + com.google.cloud.agentregistry.v1.Binding.Target result = + new com.google.cloud.agentregistry.v1.Binding.Target(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.Binding.Target result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.agentregistry.v1.Binding.Target result) { + result.targetTypeCase_ = targetTypeCase_; + result.targetType_ = this.targetType_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.Binding.Target) { + return mergeFrom((com.google.cloud.agentregistry.v1.Binding.Target) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.Binding.Target other) { + if (other == com.google.cloud.agentregistry.v1.Binding.Target.getDefaultInstance()) + return this; + switch (other.getTargetTypeCase()) { + case IDENTIFIER: + { + targetTypeCase_ = 1; + targetType_ = other.targetType_; + onChanged(); + break; + } + case TARGETTYPE_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(); + targetTypeCase_ = 1; + targetType_ = 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 targetTypeCase_ = 0; + private java.lang.Object targetType_; + + public TargetTypeCase getTargetTypeCase() { + return TargetTypeCase.forNumber(targetTypeCase_); + } + + public Builder clearTargetType() { + targetTypeCase_ = 0; + targetType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
            +       * The identifier of the target Agent, MCP Server, or Endpoint.
            +       * Format:
            +       *
            +       * * `urn:agent:{publisher}:{namespace}:{name}`
            +       * * `urn:mcp:{publisher}:{namespace}:{name}`
            +       * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +       * 
            + * + * string identifier = 1; + * + * @return Whether the identifier field is set. + */ + @java.lang.Override + public boolean hasIdentifier() { + return targetTypeCase_ == 1; + } + + /** + * + * + *
            +       * The identifier of the target Agent, MCP Server, or Endpoint.
            +       * Format:
            +       *
            +       * * `urn:agent:{publisher}:{namespace}:{name}`
            +       * * `urn:mcp:{publisher}:{namespace}:{name}`
            +       * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +       * 
            + * + * string identifier = 1; + * + * @return The identifier. + */ + @java.lang.Override + public java.lang.String getIdentifier() { + java.lang.Object ref = ""; + if (targetTypeCase_ == 1) { + ref = targetType_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetTypeCase_ == 1) { + targetType_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * The identifier of the target Agent, MCP Server, or Endpoint.
            +       * Format:
            +       *
            +       * * `urn:agent:{publisher}:{namespace}:{name}`
            +       * * `urn:mcp:{publisher}:{namespace}:{name}`
            +       * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +       * 
            + * + * string identifier = 1; + * + * @return The bytes for identifier. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdentifierBytes() { + java.lang.Object ref = ""; + if (targetTypeCase_ == 1) { + ref = targetType_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetTypeCase_ == 1) { + targetType_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * The identifier of the target Agent, MCP Server, or Endpoint.
            +       * Format:
            +       *
            +       * * `urn:agent:{publisher}:{namespace}:{name}`
            +       * * `urn:mcp:{publisher}:{namespace}:{name}`
            +       * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +       * 
            + * + * string identifier = 1; + * + * @param value The identifier to set. + * @return This builder for chaining. + */ + public Builder setIdentifier(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetTypeCase_ = 1; + targetType_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The identifier of the target Agent, MCP Server, or Endpoint.
            +       * Format:
            +       *
            +       * * `urn:agent:{publisher}:{namespace}:{name}`
            +       * * `urn:mcp:{publisher}:{namespace}:{name}`
            +       * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +       * 
            + * + * string identifier = 1; + * + * @return This builder for chaining. + */ + public Builder clearIdentifier() { + if (targetTypeCase_ == 1) { + targetTypeCase_ = 0; + targetType_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * The identifier of the target Agent, MCP Server, or Endpoint.
            +       * Format:
            +       *
            +       * * `urn:agent:{publisher}:{namespace}:{name}`
            +       * * `urn:mcp:{publisher}:{namespace}:{name}`
            +       * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +       * 
            + * + * string identifier = 1; + * + * @param value The bytes for identifier to set. + * @return This builder for chaining. + */ + public Builder setIdentifierBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetTypeCase_ = 1; + targetType_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.Binding.Target) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.Binding.Target) + private static final com.google.cloud.agentregistry.v1.Binding.Target DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.Binding.Target(); + } + + public static com.google.cloud.agentregistry.v1.Binding.Target getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Target parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.Binding.Target getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AuthProviderBindingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.Binding.AuthProviderBinding) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Required. The resource name of the target AuthProvider.
            +     * Format:
            +     *
            +     * * `projects/{project}/locations/{location}/authProviders/{auth_provider}`
            +     * 
            + * + * string auth_provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The authProvider. + */ + java.lang.String getAuthProvider(); + + /** + * + * + *
            +     * Required. The resource name of the target AuthProvider.
            +     * Format:
            +     *
            +     * * `projects/{project}/locations/{location}/authProviders/{auth_provider}`
            +     * 
            + * + * string auth_provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for authProvider. + */ + com.google.protobuf.ByteString getAuthProviderBytes(); + + /** + * + * + *
            +     * Optional. The list of OAuth2 scopes of the AuthProvider.
            +     * 
            + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + java.util.List getScopesList(); + + /** + * + * + *
            +     * Optional. The list of OAuth2 scopes of the AuthProvider.
            +     * 
            + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + int getScopesCount(); + + /** + * + * + *
            +     * Optional. The list of OAuth2 scopes of the AuthProvider.
            +     * 
            + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + + /** + * + * + *
            +     * Optional. The list of OAuth2 scopes of the AuthProvider.
            +     * 
            + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + com.google.protobuf.ByteString getScopesBytes(int index); + + /** + * + * + *
            +     * Optional. The continue URI of the AuthProvider.
            +     * The URI is used to reauthenticate the user and finalize the managed OAuth
            +     * flow.
            +     * 
            + * + * string continue_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The continueUri. + */ + java.lang.String getContinueUri(); + + /** + * + * + *
            +     * Optional. The continue URI of the AuthProvider.
            +     * The URI is used to reauthenticate the user and finalize the managed OAuth
            +     * flow.
            +     * 
            + * + * string continue_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for continueUri. + */ + com.google.protobuf.ByteString getContinueUriBytes(); + } + + /** + * + * + *
            +   * The AuthProvider of the Binding.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Binding.AuthProviderBinding} + */ + public static final class AuthProviderBinding extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.Binding.AuthProviderBinding) + AuthProviderBindingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AuthProviderBinding"); + } + + // Use AuthProviderBinding.newBuilder() to construct. + private AuthProviderBinding(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AuthProviderBinding() { + authProvider_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + continueUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_AuthProviderBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_AuthProviderBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.class, + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.Builder.class); + } + + public static final int AUTH_PROVIDER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object authProvider_ = ""; + + /** + * + * + *
            +     * Required. The resource name of the target AuthProvider.
            +     * Format:
            +     *
            +     * * `projects/{project}/locations/{location}/authProviders/{auth_provider}`
            +     * 
            + * + * string auth_provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The authProvider. + */ + @java.lang.Override + public java.lang.String getAuthProvider() { + java.lang.Object ref = authProvider_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authProvider_ = s; + return s; + } + } + + /** + * + * + *
            +     * Required. The resource name of the target AuthProvider.
            +     * Format:
            +     *
            +     * * `projects/{project}/locations/{location}/authProviders/{auth_provider}`
            +     * 
            + * + * string auth_provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for authProvider. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthProviderBytes() { + java.lang.Object ref = authProvider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +     * Optional. The list of OAuth2 scopes of the AuthProvider.
            +     * 
            + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + return scopes_; + } + + /** + * + * + *
            +     * Optional. The list of OAuth2 scopes of the AuthProvider.
            +     * 
            + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
            +     * Optional. The list of OAuth2 scopes of the AuthProvider.
            +     * 
            + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
            +     * Optional. The list of OAuth2 scopes of the AuthProvider.
            +     * 
            + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + public static final int CONTINUE_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object continueUri_ = ""; + + /** + * + * + *
            +     * Optional. The continue URI of the AuthProvider.
            +     * The URI is used to reauthenticate the user and finalize the managed OAuth
            +     * flow.
            +     * 
            + * + * string continue_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The continueUri. + */ + @java.lang.Override + public java.lang.String getContinueUri() { + java.lang.Object ref = continueUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + continueUri_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. The continue URI of the AuthProvider.
            +     * The URI is used to reauthenticate the user and finalize the managed OAuth
            +     * flow.
            +     * 
            + * + * string continue_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for continueUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContinueUriBytes() { + java.lang.Object ref = continueUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + continueUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authProvider_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, authProvider_); + } + for (int i = 0; i < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, scopes_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(continueUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, continueUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authProvider_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, authProvider_); + } + { + int dataSize = 0; + for (int i = 0; i < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(continueUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, continueUri_); + } + 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.agentregistry.v1.Binding.AuthProviderBinding)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding other = + (com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding) obj; + + if (!getAuthProvider().equals(other.getAuthProvider())) return false; + if (!getScopesList().equals(other.getScopesList())) return false; + if (!getContinueUri().equals(other.getContinueUri())) 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) + AUTH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getAuthProvider().hashCode(); + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + hash = (37 * hash) + CONTINUE_URI_FIELD_NUMBER; + hash = (53 * hash) + getContinueUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding 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.agentregistry.v1.Binding.AuthProviderBinding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding parseFrom( + 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.agentregistry.v1.Binding.AuthProviderBinding parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * The AuthProvider of the Binding.
            +     * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Binding.AuthProviderBinding} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.Binding.AuthProviderBinding) + com.google.cloud.agentregistry.v1.Binding.AuthProviderBindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_AuthProviderBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_AuthProviderBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.class, + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + authProvider_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + continueUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_AuthProviderBinding_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding build() { + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding buildPartial() { + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding result = + new com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.authProvider_ = authProvider_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.continueUri_ = continueUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding) { + return mergeFrom((com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding other) { + if (other + == com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.getDefaultInstance()) + return this; + if (!other.getAuthProvider().isEmpty()) { + authProvider_ = other.authProvider_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000002; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + if (!other.getContinueUri().isEmpty()) { + continueUri_ = other.continueUri_; + 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: + { + authProvider_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 18 + case 26: + { + continueUri_ = 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 authProvider_ = ""; + + /** + * + * + *
            +       * Required. The resource name of the target AuthProvider.
            +       * Format:
            +       *
            +       * * `projects/{project}/locations/{location}/authProviders/{auth_provider}`
            +       * 
            + * + * string auth_provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The authProvider. + */ + public java.lang.String getAuthProvider() { + java.lang.Object ref = authProvider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authProvider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Required. The resource name of the target AuthProvider.
            +       * Format:
            +       *
            +       * * `projects/{project}/locations/{location}/authProviders/{auth_provider}`
            +       * 
            + * + * string auth_provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for authProvider. + */ + public com.google.protobuf.ByteString getAuthProviderBytes() { + java.lang.Object ref = authProvider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Required. The resource name of the target AuthProvider.
            +       * Format:
            +       *
            +       * * `projects/{project}/locations/{location}/authProviders/{auth_provider}`
            +       * 
            + * + * string auth_provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The authProvider to set. + * @return This builder for chaining. + */ + public Builder setAuthProvider(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + authProvider_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The resource name of the target AuthProvider.
            +       * Format:
            +       *
            +       * * `projects/{project}/locations/{location}/authProviders/{auth_provider}`
            +       * 
            + * + * string auth_provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAuthProvider() { + authProvider_ = getDefaultInstance().getAuthProvider(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The resource name of the target AuthProvider.
            +       * Format:
            +       *
            +       * * `projects/{project}/locations/{location}/authProviders/{auth_provider}`
            +       * 
            + * + * string auth_provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for authProvider to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authProvider_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureScopesIsMutable() { + if (!scopes_.isModifiable()) { + scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
            +       * Optional. The list of OAuth2 scopes of the AuthProvider.
            +       * 
            + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + + /** + * + * + *
            +       * Optional. The list of OAuth2 scopes of the AuthProvider.
            +       * 
            + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
            +       * Optional. The list of OAuth2 scopes of the AuthProvider.
            +       * 
            + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
            +       * Optional. The list of OAuth2 scopes of the AuthProvider.
            +       * 
            + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + /** + * + * + *
            +       * Optional. The list of OAuth2 scopes of the AuthProvider.
            +       * 
            + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The scopes to set. + * @return This builder for chaining. + */ + public Builder setScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The list of OAuth2 scopes of the AuthProvider.
            +       * 
            + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The scopes to add. + * @return This builder for chaining. + */ + public Builder addScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The list of OAuth2 scopes of the AuthProvider.
            +       * 
            + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The scopes to add. + * @return This builder for chaining. + */ + public Builder addAllScopes(java.lang.Iterable values) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopes_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The list of OAuth2 scopes of the AuthProvider.
            +       * 
            + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The list of OAuth2 scopes of the AuthProvider.
            +       * 
            + * + * repeated string scopes = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the scopes to add. + * @return This builder for chaining. + */ + public Builder addScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object continueUri_ = ""; + + /** + * + * + *
            +       * Optional. The continue URI of the AuthProvider.
            +       * The URI is used to reauthenticate the user and finalize the managed OAuth
            +       * flow.
            +       * 
            + * + * string continue_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The continueUri. + */ + public java.lang.String getContinueUri() { + java.lang.Object ref = continueUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + continueUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. The continue URI of the AuthProvider.
            +       * The URI is used to reauthenticate the user and finalize the managed OAuth
            +       * flow.
            +       * 
            + * + * string continue_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for continueUri. + */ + public com.google.protobuf.ByteString getContinueUriBytes() { + java.lang.Object ref = continueUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + continueUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. The continue URI of the AuthProvider.
            +       * The URI is used to reauthenticate the user and finalize the managed OAuth
            +       * flow.
            +       * 
            + * + * string continue_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The continueUri to set. + * @return This builder for chaining. + */ + public Builder setContinueUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + continueUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The continue URI of the AuthProvider.
            +       * The URI is used to reauthenticate the user and finalize the managed OAuth
            +       * flow.
            +       * 
            + * + * string continue_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearContinueUri() { + continueUri_ = getDefaultInstance().getContinueUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The continue URI of the AuthProvider.
            +       * The URI is used to reauthenticate the user and finalize the managed OAuth
            +       * flow.
            +       * 
            + * + * string continue_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for continueUri to set. + * @return This builder for chaining. + */ + public Builder setContinueUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + continueUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.Binding.AuthProviderBinding) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.Binding.AuthProviderBinding) + private static final com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding(); + } + + public static com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthProviderBinding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.Binding.AuthProviderBinding + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int bindingCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object binding_; + + public enum BindingCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AUTH_PROVIDER_BINDING(6), + BINDING_NOT_SET(0); + private final int value; + + private BindingCase(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 BindingCase valueOf(int value) { + return forNumber(value); + } + + public static BindingCase forNumber(int value) { + switch (value) { + case 6: + return AUTH_PROVIDER_BINDING; + case 0: + return BINDING_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public BindingCase getBindingCase() { + return BindingCase.forNumber(bindingCase_); + } + + public static final int AUTH_PROVIDER_BINDING_FIELD_NUMBER = 6; + + /** + * + * + *
            +   * The binding for AuthProvider.
            +   * 
            + * + * .google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6; + * + * + * @return Whether the authProviderBinding field is set. + */ + @java.lang.Override + public boolean hasAuthProviderBinding() { + return bindingCase_ == 6; + } + + /** + * + * + *
            +   * The binding for AuthProvider.
            +   * 
            + * + * .google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6; + * + * + * @return The authProviderBinding. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding getAuthProviderBinding() { + if (bindingCase_ == 6) { + return (com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding) binding_; + } + return com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.getDefaultInstance(); + } + + /** + * + * + *
            +   * The binding for AuthProvider.
            +   * 
            + * + * .google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding.AuthProviderBindingOrBuilder + getAuthProviderBindingOrBuilder() { + if (bindingCase_ == 6) { + return (com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding) binding_; + } + return com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. Identifier. The resource name of the Binding.
            +   * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Identifier. The resource name of the Binding.
            +   * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
            +   * Optional. User-defined display name for the Binding.
            +   * Can have a maximum length of `63` characters.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +   * Optional. User-defined display name for the Binding.
            +   * Can have a maximum length of `63` characters.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
            +   * Optional. User-defined description of a Binding.
            +   * Can have a maximum length of `2048` characters.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. User-defined description of a Binding.
            +   * Can have a maximum length of `2048` characters.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 4; + private com.google.cloud.agentregistry.v1.Binding.Source source_; + + /** + * + * + *
            +   * Required. The target Agent of the Binding.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. + */ + @java.lang.Override + public boolean hasSource() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The target Agent of the Binding.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding.Source getSource() { + return source_ == null + ? com.google.cloud.agentregistry.v1.Binding.Source.getDefaultInstance() + : source_; + } + + /** + * + * + *
            +   * Required. The target Agent of the Binding.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding.SourceOrBuilder getSourceOrBuilder() { + return source_ == null + ? com.google.cloud.agentregistry.v1.Binding.Source.getDefaultInstance() + : source_; + } + + public static final int TARGET_FIELD_NUMBER = 5; + private com.google.cloud.agentregistry.v1.Binding.Target target_; + + /** + * + * + *
            +   * Required. The target Agent Registry Resource of the Binding.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the target field is set. + */ + @java.lang.Override + public boolean hasTarget() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Required. The target Agent Registry Resource of the Binding.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The target. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding.Target getTarget() { + return target_ == null + ? com.google.cloud.agentregistry.v1.Binding.Target.getDefaultInstance() + : target_; + } + + /** + * + * + *
            +   * Required. The target Agent Registry Resource of the Binding.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding.TargetOrBuilder getTargetOrBuilder() { + return target_ == null + ? com.google.cloud.agentregistry.v1.Binding.Target.getDefaultInstance() + : target_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. Timestamp when this binding was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Output only. Timestamp when this binding was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. Timestamp when this binding was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. Timestamp when this binding was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Output only. Timestamp when this binding was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Output only. Timestamp when this binding was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getSource()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getTarget()); + } + if (bindingCase_ == 6) { + output.writeMessage( + 6, (com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding) binding_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(8, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getSource()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTarget()); + } + if (bindingCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding) binding_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.agentregistry.v1.Binding)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.Binding other = + (com.google.cloud.agentregistry.v1.Binding) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasSource() != other.hasSource()) return false; + if (hasSource()) { + if (!getSource().equals(other.getSource())) return false; + } + if (hasTarget() != other.hasTarget()) return false; + if (hasTarget()) { + if (!getTarget().equals(other.getTarget())) 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 (!getBindingCase().equals(other.getBindingCase())) return false; + switch (bindingCase_) { + case 6: + if (!getAuthProviderBinding().equals(other.getAuthProviderBinding())) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + } + if (hasTarget()) { + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().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(); + } + switch (bindingCase_) { + case 6: + hash = (37 * hash) + AUTH_PROVIDER_BINDING_FIELD_NUMBER; + hash = (53 * hash) + getAuthProviderBinding().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.Binding parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Binding 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.agentregistry.v1.Binding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Binding parseFrom( + 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.agentregistry.v1.Binding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Binding parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Binding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Binding parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Binding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Binding parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Binding parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Binding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.agentregistry.v1.Binding prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents a user-defined Binding.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Binding} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.Binding) + com.google.cloud.agentregistry.v1.BindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Binding.class, + com.google.cloud.agentregistry.v1.Binding.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.Binding.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSourceFieldBuilder(); + internalGetTargetFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (authProviderBindingBuilder_ != null) { + authProviderBindingBuilder_.clear(); + } + name_ = ""; + displayName_ = ""; + description_ = ""; + source_ = null; + if (sourceBuilder_ != null) { + sourceBuilder_.dispose(); + sourceBuilder_ = null; + } + target_ = null; + if (targetBuilder_ != null) { + targetBuilder_.dispose(); + targetBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + bindingCase_ = 0; + binding_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.BindingProto + .internal_static_google_cloud_agentregistry_v1_Binding_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.Binding.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding build() { + com.google.cloud.agentregistry.v1.Binding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding buildPartial() { + com.google.cloud.agentregistry.v1.Binding result = + new com.google.cloud.agentregistry.v1.Binding(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.Binding result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.source_ = sourceBuilder_ == null ? source_ : sourceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.target_ = targetBuilder_ == null ? target_ : targetBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.agentregistry.v1.Binding result) { + result.bindingCase_ = bindingCase_; + result.binding_ = this.binding_; + if (bindingCase_ == 6 && authProviderBindingBuilder_ != null) { + result.binding_ = authProviderBindingBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.Binding) { + return mergeFrom((com.google.cloud.agentregistry.v1.Binding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.Binding other) { + if (other == com.google.cloud.agentregistry.v1.Binding.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasSource()) { + mergeSource(other.getSource()); + } + if (other.hasTarget()) { + mergeTarget(other.getTarget()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + switch (other.getBindingCase()) { + case AUTH_PROVIDER_BINDING: + { + mergeAuthProviderBinding(other.getAuthProviderBinding()); + break; + } + case BINDING_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_ |= 0x00000002; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + input.readMessage(internalGetSourceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + input.readMessage(internalGetTargetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetAuthProviderBindingFieldBuilder().getBuilder(), extensionRegistry); + bindingCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bindingCase_ = 0; + private java.lang.Object binding_; + + public BindingCase getBindingCase() { + return BindingCase.forNumber(bindingCase_); + } + + public Builder clearBinding() { + bindingCase_ = 0; + binding_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding, + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.Builder, + com.google.cloud.agentregistry.v1.Binding.AuthProviderBindingOrBuilder> + authProviderBindingBuilder_; + + /** + * + * + *
            +     * The binding for AuthProvider.
            +     * 
            + * + * .google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6; + * + * + * @return Whether the authProviderBinding field is set. + */ + @java.lang.Override + public boolean hasAuthProviderBinding() { + return bindingCase_ == 6; + } + + /** + * + * + *
            +     * The binding for AuthProvider.
            +     * 
            + * + * .google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6; + * + * + * @return The authProviderBinding. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding getAuthProviderBinding() { + if (authProviderBindingBuilder_ == null) { + if (bindingCase_ == 6) { + return (com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding) binding_; + } + return com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.getDefaultInstance(); + } else { + if (bindingCase_ == 6) { + return authProviderBindingBuilder_.getMessage(); + } + return com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * The binding for AuthProvider.
            +     * 
            + * + * .google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6; + * + */ + public Builder setAuthProviderBinding( + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding value) { + if (authProviderBindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + binding_ = value; + onChanged(); + } else { + authProviderBindingBuilder_.setMessage(value); + } + bindingCase_ = 6; + return this; + } + + /** + * + * + *
            +     * The binding for AuthProvider.
            +     * 
            + * + * .google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6; + * + */ + public Builder setAuthProviderBinding( + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.Builder builderForValue) { + if (authProviderBindingBuilder_ == null) { + binding_ = builderForValue.build(); + onChanged(); + } else { + authProviderBindingBuilder_.setMessage(builderForValue.build()); + } + bindingCase_ = 6; + return this; + } + + /** + * + * + *
            +     * The binding for AuthProvider.
            +     * 
            + * + * .google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6; + * + */ + public Builder mergeAuthProviderBinding( + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding value) { + if (authProviderBindingBuilder_ == null) { + if (bindingCase_ == 6 + && binding_ + != com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding + .getDefaultInstance()) { + binding_ = + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.newBuilder( + (com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding) binding_) + .mergeFrom(value) + .buildPartial(); + } else { + binding_ = value; + } + onChanged(); + } else { + if (bindingCase_ == 6) { + authProviderBindingBuilder_.mergeFrom(value); + } else { + authProviderBindingBuilder_.setMessage(value); + } + } + bindingCase_ = 6; + return this; + } + + /** + * + * + *
            +     * The binding for AuthProvider.
            +     * 
            + * + * .google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6; + * + */ + public Builder clearAuthProviderBinding() { + if (authProviderBindingBuilder_ == null) { + if (bindingCase_ == 6) { + bindingCase_ = 0; + binding_ = null; + onChanged(); + } + } else { + if (bindingCase_ == 6) { + bindingCase_ = 0; + binding_ = null; + } + authProviderBindingBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The binding for AuthProvider.
            +     * 
            + * + * .google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6; + * + */ + public com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.Builder + getAuthProviderBindingBuilder() { + return internalGetAuthProviderBindingFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * The binding for AuthProvider.
            +     * 
            + * + * .google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding.AuthProviderBindingOrBuilder + getAuthProviderBindingOrBuilder() { + if ((bindingCase_ == 6) && (authProviderBindingBuilder_ != null)) { + return authProviderBindingBuilder_.getMessageOrBuilder(); + } else { + if (bindingCase_ == 6) { + return (com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding) binding_; + } + return com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * The binding for AuthProvider.
            +     * 
            + * + * .google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding, + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.Builder, + com.google.cloud.agentregistry.v1.Binding.AuthProviderBindingOrBuilder> + internalGetAuthProviderBindingFieldBuilder() { + if (authProviderBindingBuilder_ == null) { + if (!(bindingCase_ == 6)) { + binding_ = + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.getDefaultInstance(); + } + authProviderBindingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding, + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding.Builder, + com.google.cloud.agentregistry.v1.Binding.AuthProviderBindingOrBuilder>( + (com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding) binding_, + getParentForChildren(), + isClean()); + binding_ = null; + } + bindingCase_ = 6; + onChanged(); + return authProviderBindingBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. Identifier. The resource name of the Binding.
            +     * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Identifier. The resource name of the Binding.
            +     * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Identifier. The resource name of the Binding.
            +     * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Identifier. The resource name of the Binding.
            +     * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Identifier. The resource name of the Binding.
            +     * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
            +     * Optional. User-defined display name for the Binding.
            +     * Can have a maximum length of `63` characters.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +     * Optional. User-defined display name for the Binding.
            +     * Can have a maximum length of `63` characters.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +     * Optional. User-defined display name for the Binding.
            +     * Can have a maximum length of `63` characters.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. User-defined display name for the Binding.
            +     * Can have a maximum length of `63` characters.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. User-defined display name for the Binding.
            +     * Can have a maximum length of `63` characters.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
            +     * Optional. User-defined description of a Binding.
            +     * Can have a maximum length of `2048` characters.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. User-defined description of a Binding.
            +     * Can have a maximum length of `2048` characters.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. User-defined description of a Binding.
            +     * Can have a maximum length of `2048` characters.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. User-defined description of a Binding.
            +     * Can have a maximum length of `2048` characters.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. User-defined description of a Binding.
            +     * Can have a maximum length of `2048` characters.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.agentregistry.v1.Binding.Source source_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Binding.Source, + com.google.cloud.agentregistry.v1.Binding.Source.Builder, + com.google.cloud.agentregistry.v1.Binding.SourceOrBuilder> + sourceBuilder_; + + /** + * + * + *
            +     * Required. The target Agent of the Binding.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. + */ + public boolean hasSource() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Required. The target Agent of the Binding.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. + */ + public com.google.cloud.agentregistry.v1.Binding.Source getSource() { + if (sourceBuilder_ == null) { + return source_ == null + ? com.google.cloud.agentregistry.v1.Binding.Source.getDefaultInstance() + : source_; + } else { + return sourceBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The target Agent of the Binding.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSource(com.google.cloud.agentregistry.v1.Binding.Source value) { + if (sourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + } else { + sourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The target Agent of the Binding.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSource( + com.google.cloud.agentregistry.v1.Binding.Source.Builder builderForValue) { + if (sourceBuilder_ == null) { + source_ = builderForValue.build(); + } else { + sourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The target Agent of the Binding.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSource(com.google.cloud.agentregistry.v1.Binding.Source value) { + if (sourceBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && source_ != null + && source_ != com.google.cloud.agentregistry.v1.Binding.Source.getDefaultInstance()) { + getSourceBuilder().mergeFrom(value); + } else { + source_ = value; + } + } else { + sourceBuilder_.mergeFrom(value); + } + if (source_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The target Agent of the Binding.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSource() { + bitField0_ = (bitField0_ & ~0x00000010); + source_ = null; + if (sourceBuilder_ != null) { + sourceBuilder_.dispose(); + sourceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The target Agent of the Binding.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.Binding.Source.Builder getSourceBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetSourceFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The target Agent of the Binding.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.Binding.SourceOrBuilder getSourceOrBuilder() { + if (sourceBuilder_ != null) { + return sourceBuilder_.getMessageOrBuilder(); + } else { + return source_ == null + ? com.google.cloud.agentregistry.v1.Binding.Source.getDefaultInstance() + : source_; + } + } + + /** + * + * + *
            +     * Required. The target Agent of the Binding.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Binding.Source, + com.google.cloud.agentregistry.v1.Binding.Source.Builder, + com.google.cloud.agentregistry.v1.Binding.SourceOrBuilder> + internalGetSourceFieldBuilder() { + if (sourceBuilder_ == null) { + sourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Binding.Source, + com.google.cloud.agentregistry.v1.Binding.Source.Builder, + com.google.cloud.agentregistry.v1.Binding.SourceOrBuilder>( + getSource(), getParentForChildren(), isClean()); + source_ = null; + } + return sourceBuilder_; + } + + private com.google.cloud.agentregistry.v1.Binding.Target target_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Binding.Target, + com.google.cloud.agentregistry.v1.Binding.Target.Builder, + com.google.cloud.agentregistry.v1.Binding.TargetOrBuilder> + targetBuilder_; + + /** + * + * + *
            +     * Required. The target Agent Registry Resource of the Binding.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the target field is set. + */ + public boolean hasTarget() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Required. The target Agent Registry Resource of the Binding.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The target. + */ + public com.google.cloud.agentregistry.v1.Binding.Target getTarget() { + if (targetBuilder_ == null) { + return target_ == null + ? com.google.cloud.agentregistry.v1.Binding.Target.getDefaultInstance() + : target_; + } else { + return targetBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The target Agent Registry Resource of the Binding.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTarget(com.google.cloud.agentregistry.v1.Binding.Target value) { + if (targetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + target_ = value; + } else { + targetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The target Agent Registry Resource of the Binding.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setTarget( + com.google.cloud.agentregistry.v1.Binding.Target.Builder builderForValue) { + if (targetBuilder_ == null) { + target_ = builderForValue.build(); + } else { + targetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The target Agent Registry Resource of the Binding.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeTarget(com.google.cloud.agentregistry.v1.Binding.Target value) { + if (targetBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && target_ != null + && target_ != com.google.cloud.agentregistry.v1.Binding.Target.getDefaultInstance()) { + getTargetBuilder().mergeFrom(value); + } else { + target_ = value; + } + } else { + targetBuilder_.mergeFrom(value); + } + if (target_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The target Agent Registry Resource of the Binding.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearTarget() { + bitField0_ = (bitField0_ & ~0x00000020); + target_ = null; + if (targetBuilder_ != null) { + targetBuilder_.dispose(); + targetBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The target Agent Registry Resource of the Binding.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.Binding.Target.Builder getTargetBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetTargetFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The target Agent Registry Resource of the Binding.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.Binding.TargetOrBuilder getTargetOrBuilder() { + if (targetBuilder_ != null) { + return targetBuilder_.getMessageOrBuilder(); + } else { + return target_ == null + ? com.google.cloud.agentregistry.v1.Binding.Target.getDefaultInstance() + : target_; + } + } + + /** + * + * + *
            +     * Required. The target Agent Registry Resource of the Binding.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Binding.Target, + com.google.cloud.agentregistry.v1.Binding.Target.Builder, + com.google.cloud.agentregistry.v1.Binding.TargetOrBuilder> + internalGetTargetFieldBuilder() { + if (targetBuilder_ == null) { + targetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Binding.Target, + com.google.cloud.agentregistry.v1.Binding.Target.Builder, + com.google.cloud.agentregistry.v1.Binding.TargetOrBuilder>( + getTarget(), getParentForChildren(), isClean()); + target_ = null; + } + return targetBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. Timestamp when this binding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +     * Output only. Timestamp when this binding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Timestamp when this binding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Timestamp when this binding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Timestamp when this binding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 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; + } + + /** + * + * + *
            +     * Output only. Timestamp when this binding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Timestamp when this binding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Timestamp when this binding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +     * Output only. Timestamp when this binding was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. Timestamp when this binding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
            +     * Output only. Timestamp when this binding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Timestamp when this binding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Timestamp when this binding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Timestamp when this binding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Timestamp when this binding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Timestamp when this binding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Timestamp when this binding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
            +     * Output only. Timestamp when this binding was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.Binding) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.Binding) + private static final com.google.cloud.agentregistry.v1.Binding DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.Binding(); + } + + public static com.google.cloud.agentregistry.v1.Binding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Binding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.Binding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/BindingName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/BindingName.java new file mode 100644 index 000000000000..1f30c38db2c5 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/BindingName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.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 BindingName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_BINDING = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/bindings/{binding}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String binding; + + @Deprecated + protected BindingName() { + project = null; + location = null; + binding = null; + } + + private BindingName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + binding = Preconditions.checkNotNull(builder.getBinding()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBinding() { + return binding; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static BindingName of(String project, String location, String binding) { + return newBuilder().setProject(project).setLocation(location).setBinding(binding).build(); + } + + public static String format(String project, String location, String binding) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setBinding(binding) + .build() + .toString(); + } + + public static BindingName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_BINDING.validatedMatch( + formattedString, "BindingName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("binding")); + } + + 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 (BindingName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_BINDING.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 (binding != null) { + fieldMapBuilder.put("binding", binding); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_BINDING.instantiate( + "project", project, "location", location, "binding", binding); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + BindingName that = ((BindingName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.binding, that.binding); + } + 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(binding); + return h; + } + + /** Builder for projects/{project}/locations/{location}/bindings/{binding}. */ + public static class Builder { + private String project; + private String location; + private String binding; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getBinding() { + return binding; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setBinding(String binding) { + this.binding = binding; + return this; + } + + private Builder(BindingName bindingName) { + this.project = bindingName.project; + this.location = bindingName.location; + this.binding = bindingName.binding; + } + + public BindingName build() { + return new BindingName(this); + } + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/BindingOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/BindingOrBuilder.java new file mode 100644 index 000000000000..bb7f735aeb5b --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/BindingOrBuilder.java @@ -0,0 +1,325 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/binding.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface BindingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.Binding) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The binding for AuthProvider.
            +   * 
            + * + * .google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6; + * + * + * @return Whether the authProviderBinding field is set. + */ + boolean hasAuthProviderBinding(); + + /** + * + * + *
            +   * The binding for AuthProvider.
            +   * 
            + * + * .google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6; + * + * + * @return The authProviderBinding. + */ + com.google.cloud.agentregistry.v1.Binding.AuthProviderBinding getAuthProviderBinding(); + + /** + * + * + *
            +   * The binding for AuthProvider.
            +   * 
            + * + * .google.cloud.agentregistry.v1.Binding.AuthProviderBinding auth_provider_binding = 6; + * + */ + com.google.cloud.agentregistry.v1.Binding.AuthProviderBindingOrBuilder + getAuthProviderBindingOrBuilder(); + + /** + * + * + *
            +   * Required. Identifier. The resource name of the Binding.
            +   * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. Identifier. The resource name of the Binding.
            +   * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. User-defined display name for the Binding.
            +   * Can have a maximum length of `63` characters.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
            +   * Optional. User-defined display name for the Binding.
            +   * Can have a maximum length of `63` characters.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
            +   * Optional. User-defined description of a Binding.
            +   * Can have a maximum length of `2048` characters.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
            +   * Optional. User-defined description of a Binding.
            +   * Can have a maximum length of `2048` characters.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
            +   * Required. The target Agent of the Binding.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the source field is set. + */ + boolean hasSource(); + + /** + * + * + *
            +   * Required. The target Agent of the Binding.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The source. + */ + com.google.cloud.agentregistry.v1.Binding.Source getSource(); + + /** + * + * + *
            +   * Required. The target Agent of the Binding.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Source source = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.agentregistry.v1.Binding.SourceOrBuilder getSourceOrBuilder(); + + /** + * + * + *
            +   * Required. The target Agent Registry Resource of the Binding.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the target field is set. + */ + boolean hasTarget(); + + /** + * + * + *
            +   * Required. The target Agent Registry Resource of the Binding.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The target. + */ + com.google.cloud.agentregistry.v1.Binding.Target getTarget(); + + /** + * + * + *
            +   * Required. The target Agent Registry Resource of the Binding.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding.Target target = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.agentregistry.v1.Binding.TargetOrBuilder getTargetOrBuilder(); + + /** + * + * + *
            +   * Output only. Timestamp when this binding was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. Timestamp when this binding was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. Timestamp when this binding was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Timestamp when this binding was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. Timestamp when this binding was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. Timestamp when this binding was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + com.google.cloud.agentregistry.v1.Binding.BindingCase getBindingCase(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/BindingProto.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/BindingProto.java new file mode 100644 index 000000000000..6cfaee48cec1 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/BindingProto.java @@ -0,0 +1,164 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/binding.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public final class BindingProto extends com.google.protobuf.GeneratedFile { + private BindingProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "BindingProto"); + } + + 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_agentregistry_v1_Binding_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Binding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_Binding_Source_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Binding_Source_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_Binding_Target_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Binding_Target_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_Binding_AuthProviderBinding_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Binding_AuthProviderBinding_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/agentregistry/v1/binding." + + "proto\022\035google.cloud.agentregistry.v1\032\037go" + + "ogle/api/field_behavior.proto\032\031google/ap" + + "i/resource.proto\032\037google/protobuf/timestamp.proto\"\353\005\n" + + "\007Binding\022[\n" + + "\025auth_provider_binding\030\006" + + " \001(\0132:.google.cloud.agentregistry.v1.Binding.AuthProviderBindingH\000\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\010\340A\002\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\001\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\001\022B\n" + + "\006source\030\004" + + " \001(\0132-.google.cloud.agentregistry.v1.Binding.SourceB\003\340A\002\022B\n" + + "\006target\030\005 \001(\0132-.goog" + + "le.cloud.agentregistry.v1.Binding.TargetB\003\340A\002\0224\n" + + "\013create_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032-\n" + + "\006Source\022\024\n\n" + + "identifier\030\001 \001(\tH\000B\r\n" + + "\013source_type\032-\n" + + "\006Target\022\024\n\n" + + "identifier\030\001 \001(\tH\000B\r\n" + + "\013target_type\032a\n" + + "\023AuthProviderBinding\022\032\n\r" + + "auth_provider\030\001 \001(\tB\003\340A\002\022\023\n" + + "\006scopes\030\002 \003(\tB\003\340A\001\022\031\n" + + "\014continue_uri\030\003 \001(\tB\003\340A\001:x\352Au\n" + + "$agentregistry.googleapis.com/Binding\022:projects/" + + "{project}/locations/{location}/bindings/{binding}*\010bindings2\007bindingB\t\n" + + "\007bindingB\337\001\n" + + "!com.google.cloud.agentregistry.v1B\014BindingProtoP\001ZGcloud.google.com/go/agent" + + "registry/apiv1/agentregistrypb;agentregi" + + "strypb\252\002\035Google.Cloud.AgentRegistry.V1\312\002\035Google\\Cloud\\AgentRegistry\\V1\352\002" + + " Google::Cloud::AgentRegistry::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_cloud_agentregistry_v1_Binding_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_agentregistry_v1_Binding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Binding_descriptor, + new java.lang.String[] { + "AuthProviderBinding", + "Name", + "DisplayName", + "Description", + "Source", + "Target", + "CreateTime", + "UpdateTime", + "Binding", + }); + internal_static_google_cloud_agentregistry_v1_Binding_Source_descriptor = + internal_static_google_cloud_agentregistry_v1_Binding_descriptor.getNestedType(0); + internal_static_google_cloud_agentregistry_v1_Binding_Source_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Binding_Source_descriptor, + new java.lang.String[] { + "Identifier", "SourceType", + }); + internal_static_google_cloud_agentregistry_v1_Binding_Target_descriptor = + internal_static_google_cloud_agentregistry_v1_Binding_descriptor.getNestedType(1); + internal_static_google_cloud_agentregistry_v1_Binding_Target_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Binding_Target_descriptor, + new java.lang.String[] { + "Identifier", "TargetType", + }); + internal_static_google_cloud_agentregistry_v1_Binding_AuthProviderBinding_descriptor = + internal_static_google_cloud_agentregistry_v1_Binding_descriptor.getNestedType(2); + internal_static_google_cloud_agentregistry_v1_Binding_AuthProviderBinding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Binding_AuthProviderBinding_descriptor, + new java.lang.String[] { + "AuthProvider", "Scopes", "ContinueUri", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + 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); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateBindingRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateBindingRequest.java new file mode 100644 index 000000000000..01a5d5b63443 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateBindingRequest.java @@ -0,0 +1,1444 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for creating a Binding
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.CreateBindingRequest} + */ +@com.google.protobuf.Generated +public final class CreateBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.CreateBindingRequest) + CreateBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateBindingRequest"); + } + + // Use CreateBindingRequest.newBuilder() to construct. + private CreateBindingRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateBindingRequest() { + parent_ = ""; + bindingId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.CreateBindingRequest.class, + com.google.cloud.agentregistry.v1.CreateBindingRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The project and location to create the Binding in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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 project and location to create the Binding in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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 BINDING_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object bindingId_ = ""; + + /** + * + * + *
            +   * Required. The ID to use for the binding, which will become the final
            +   * component of the binding's resource name.
            +   *
            +   * This value should be 4-63 characters, and must conform to RFC-1034.
            +   * Specifically, it must match the regular expression
            +   * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
            +   * 
            + * + * string binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bindingId. + */ + @java.lang.Override + public java.lang.String getBindingId() { + java.lang.Object ref = bindingId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bindingId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The ID to use for the binding, which will become the final
            +   * component of the binding's resource name.
            +   *
            +   * This value should be 4-63 characters, and must conform to RFC-1034.
            +   * Specifically, it must match the regular expression
            +   * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
            +   * 
            + * + * string binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bindingId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBindingIdBytes() { + java.lang.Object ref = bindingId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BINDING_FIELD_NUMBER = 3; + private com.google.cloud.agentregistry.v1.Binding binding_; + + /** + * + * + *
            +   * Required. The Binding resource that is being created.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the binding field is set. + */ + @java.lang.Override + public boolean hasBinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The Binding resource that is being created.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The binding. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding getBinding() { + return binding_ == null + ? com.google.cloud.agentregistry.v1.Binding.getDefaultInstance() + : binding_; + } + + /** + * + * + *
            +   * Required. The Binding resource that is being created.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.BindingOrBuilder getBindingOrBuilder() { + return binding_ == null + ? com.google.cloud.agentregistry.v1.Binding.getDefaultInstance() + : binding_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
            +   * Optional. An optional request ID to identify requests. Specify a unique
            +   * request ID so that if you must retry your request, the server will know to
            +   * ignore the request if it has already been completed. The server will
            +   * guarantee that for at least 60 minutes 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
            +   * 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, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. An optional request ID to identify requests. Specify a unique
            +   * request ID so that if you must retry your request, the server will know to
            +   * ignore the request if it has already been completed. The server will
            +   * guarantee that for at least 60 minutes 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
            +   * 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, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bindingId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, bindingId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getBinding()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bindingId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, bindingId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getBinding()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.agentregistry.v1.CreateBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.CreateBindingRequest other = + (com.google.cloud.agentregistry.v1.CreateBindingRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getBindingId().equals(other.getBindingId())) return false; + if (hasBinding() != other.hasBinding()) return false; + if (hasBinding()) { + if (!getBinding().equals(other.getBinding())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + BINDING_ID_FIELD_NUMBER; + hash = (53 * hash) + getBindingId().hashCode(); + if (hasBinding()) { + hash = (37 * hash) + BINDING_FIELD_NUMBER; + hash = (53 * hash) + getBinding().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.agentregistry.v1.CreateBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.CreateBindingRequest 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.agentregistry.v1.CreateBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.CreateBindingRequest parseFrom( + 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.agentregistry.v1.CreateBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.CreateBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.CreateBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.CreateBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.CreateBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.CreateBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.CreateBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.CreateBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.CreateBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for creating a Binding
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.CreateBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.CreateBindingRequest) + com.google.cloud.agentregistry.v1.CreateBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.CreateBindingRequest.class, + com.google.cloud.agentregistry.v1.CreateBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.CreateBindingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBindingFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + bindingId_ = ""; + binding_ = null; + if (bindingBuilder_ != null) { + bindingBuilder_.dispose(); + bindingBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.CreateBindingRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.CreateBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.CreateBindingRequest build() { + com.google.cloud.agentregistry.v1.CreateBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.CreateBindingRequest buildPartial() { + com.google.cloud.agentregistry.v1.CreateBindingRequest result = + new com.google.cloud.agentregistry.v1.CreateBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.CreateBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bindingId_ = bindingId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.binding_ = bindingBuilder_ == null ? binding_ : bindingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.CreateBindingRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.CreateBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.CreateBindingRequest other) { + if (other == com.google.cloud.agentregistry.v1.CreateBindingRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBindingId().isEmpty()) { + bindingId_ = other.bindingId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasBinding()) { + mergeBinding(other.getBinding()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + bindingId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetBindingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The project and location to create the Binding in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to create the Binding in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to create the Binding in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to create the Binding in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to create the Binding in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 bindingId_ = ""; + + /** + * + * + *
            +     * Required. The ID to use for the binding, which will become the final
            +     * component of the binding's resource name.
            +     *
            +     * This value should be 4-63 characters, and must conform to RFC-1034.
            +     * Specifically, it must match the regular expression
            +     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
            +     * 
            + * + * string binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bindingId. + */ + public java.lang.String getBindingId() { + java.lang.Object ref = bindingId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bindingId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The ID to use for the binding, which will become the final
            +     * component of the binding's resource name.
            +     *
            +     * This value should be 4-63 characters, and must conform to RFC-1034.
            +     * Specifically, it must match the regular expression
            +     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
            +     * 
            + * + * string binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bindingId. + */ + public com.google.protobuf.ByteString getBindingIdBytes() { + java.lang.Object ref = bindingId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bindingId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The ID to use for the binding, which will become the final
            +     * component of the binding's resource name.
            +     *
            +     * This value should be 4-63 characters, and must conform to RFC-1034.
            +     * Specifically, it must match the regular expression
            +     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
            +     * 
            + * + * string binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bindingId to set. + * @return This builder for chaining. + */ + public Builder setBindingId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bindingId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The ID to use for the binding, which will become the final
            +     * component of the binding's resource name.
            +     *
            +     * This value should be 4-63 characters, and must conform to RFC-1034.
            +     * Specifically, it must match the regular expression
            +     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
            +     * 
            + * + * string binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBindingId() { + bindingId_ = getDefaultInstance().getBindingId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The ID to use for the binding, which will become the final
            +     * component of the binding's resource name.
            +     *
            +     * This value should be 4-63 characters, and must conform to RFC-1034.
            +     * Specifically, it must match the regular expression
            +     * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
            +     * 
            + * + * string binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for bindingId to set. + * @return This builder for chaining. + */ + public Builder setBindingIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bindingId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.agentregistry.v1.Binding binding_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Binding, + com.google.cloud.agentregistry.v1.Binding.Builder, + com.google.cloud.agentregistry.v1.BindingOrBuilder> + bindingBuilder_; + + /** + * + * + *
            +     * Required. The Binding resource that is being created.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the binding field is set. + */ + public boolean hasBinding() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Required. The Binding resource that is being created.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The binding. + */ + public com.google.cloud.agentregistry.v1.Binding getBinding() { + if (bindingBuilder_ == null) { + return binding_ == null + ? com.google.cloud.agentregistry.v1.Binding.getDefaultInstance() + : binding_; + } else { + return bindingBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The Binding resource that is being created.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBinding(com.google.cloud.agentregistry.v1.Binding value) { + if (bindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + binding_ = value; + } else { + bindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Binding resource that is being created.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBinding(com.google.cloud.agentregistry.v1.Binding.Builder builderForValue) { + if (bindingBuilder_ == null) { + binding_ = builderForValue.build(); + } else { + bindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Binding resource that is being created.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeBinding(com.google.cloud.agentregistry.v1.Binding value) { + if (bindingBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && binding_ != null + && binding_ != com.google.cloud.agentregistry.v1.Binding.getDefaultInstance()) { + getBindingBuilder().mergeFrom(value); + } else { + binding_ = value; + } + } else { + bindingBuilder_.mergeFrom(value); + } + if (binding_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The Binding resource that is being created.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBinding() { + bitField0_ = (bitField0_ & ~0x00000004); + binding_ = null; + if (bindingBuilder_ != null) { + bindingBuilder_.dispose(); + bindingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Binding resource that is being created.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.Binding.Builder getBindingBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetBindingFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The Binding resource that is being created.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.BindingOrBuilder getBindingOrBuilder() { + if (bindingBuilder_ != null) { + return bindingBuilder_.getMessageOrBuilder(); + } else { + return binding_ == null + ? com.google.cloud.agentregistry.v1.Binding.getDefaultInstance() + : binding_; + } + } + + /** + * + * + *
            +     * Required. The Binding resource that is being created.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Binding, + com.google.cloud.agentregistry.v1.Binding.Builder, + com.google.cloud.agentregistry.v1.BindingOrBuilder> + internalGetBindingFieldBuilder() { + if (bindingBuilder_ == null) { + bindingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Binding, + com.google.cloud.agentregistry.v1.Binding.Builder, + com.google.cloud.agentregistry.v1.BindingOrBuilder>( + getBinding(), getParentForChildren(), isClean()); + binding_ = null; + } + return bindingBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
            +     * Optional. An optional request ID to identify requests. Specify a unique
            +     * request ID so that if you must retry your request, the server will know to
            +     * ignore the request if it has already been completed. The server will
            +     * guarantee that for at least 60 minutes 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
            +     * 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, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. An optional request ID to identify requests. Specify a unique
            +     * request ID so that if you must retry your request, the server will know to
            +     * ignore the request if it has already been completed. The server will
            +     * guarantee that for at least 60 minutes 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
            +     * 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, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. An optional request ID to identify requests. Specify a unique
            +     * request ID so that if you must retry your request, the server will know to
            +     * ignore the request if it has already been completed. The server will
            +     * guarantee that for at least 60 minutes 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
            +     * 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, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. 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.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. 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.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.CreateBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.CreateBindingRequest) + private static final com.google.cloud.agentregistry.v1.CreateBindingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.CreateBindingRequest(); + } + + public static com.google.cloud.agentregistry.v1.CreateBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.CreateBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateBindingRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateBindingRequestOrBuilder.java new file mode 100644 index 000000000000..5b38df2786cf --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateBindingRequestOrBuilder.java @@ -0,0 +1,193 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface CreateBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.CreateBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The project and location to create the Binding in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The project and location to create the Binding in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. The ID to use for the binding, which will become the final
            +   * component of the binding's resource name.
            +   *
            +   * This value should be 4-63 characters, and must conform to RFC-1034.
            +   * Specifically, it must match the regular expression
            +   * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
            +   * 
            + * + * string binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bindingId. + */ + java.lang.String getBindingId(); + + /** + * + * + *
            +   * Required. The ID to use for the binding, which will become the final
            +   * component of the binding's resource name.
            +   *
            +   * This value should be 4-63 characters, and must conform to RFC-1034.
            +   * Specifically, it must match the regular expression
            +   * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
            +   * 
            + * + * string binding_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bindingId. + */ + com.google.protobuf.ByteString getBindingIdBytes(); + + /** + * + * + *
            +   * Required. The Binding resource that is being created.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the binding field is set. + */ + boolean hasBinding(); + + /** + * + * + *
            +   * Required. The Binding resource that is being created.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The binding. + */ + com.google.cloud.agentregistry.v1.Binding getBinding(); + + /** + * + * + *
            +   * Required. The Binding resource that is being created.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.agentregistry.v1.BindingOrBuilder getBindingOrBuilder(); + + /** + * + * + *
            +   * 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.
            +   *
            +   * For example, consider a situation where you make an initial request and the
            +   * request times out. If you make the request again with the same request
            +   * ID, the server can check if original operation with the same request ID
            +   * was received, and if so, will ignore the second request. This prevents
            +   * clients from accidentally creating duplicate commitments.
            +   *
            +   * The request ID must be a valid UUID with the exception that zero UUID is
            +   * not supported (00000000-0000-0000-0000-000000000000).
            +   * 
            + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
            +   * Optional. An optional request ID to identify requests. Specify a unique
            +   * request ID so that if you must retry your request, the server will know to
            +   * ignore the request if it has already been completed. The server will
            +   * guarantee that for at least 60 minutes 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
            +   * 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, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateServiceRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateServiceRequest.java new file mode 100644 index 000000000000..3577b67ebebb --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateServiceRequest.java @@ -0,0 +1,1449 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for creating a Service
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.CreateServiceRequest} + */ +@com.google.protobuf.Generated +public final class CreateServiceRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.CreateServiceRequest) + CreateServiceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateServiceRequest"); + } + + // Use CreateServiceRequest.newBuilder() to construct. + private CreateServiceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateServiceRequest() { + parent_ = ""; + serviceId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.CreateServiceRequest.class, + com.google.cloud.agentregistry.v1.CreateServiceRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The project and location to create the Service in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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 project and location to create the Service in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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 SERVICE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object serviceId_ = ""; + + /** + * + * + *
            +   * Required. The ID to use for the service, which will become the final
            +   * component of the service's resource name.
            +   *
            +   * This value should be 4-63 characters, and valid characters
            +   * are `/[a-z][0-9]-/`.
            +   * 
            + * + * string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serviceId. + */ + @java.lang.Override + public java.lang.String getServiceId() { + java.lang.Object ref = serviceId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The ID to use for the service, which will become the final
            +   * component of the service's resource name.
            +   *
            +   * This value should be 4-63 characters, and valid characters
            +   * are `/[a-z][0-9]-/`.
            +   * 
            + * + * string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serviceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getServiceIdBytes() { + java.lang.Object ref = serviceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_FIELD_NUMBER = 3; + private com.google.cloud.agentregistry.v1.Service service_; + + /** + * + * + *
            +   * Required. The Service resource that is being created.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the service field is set. + */ + @java.lang.Override + public boolean hasService() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The Service resource that is being created.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The service. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service getService() { + return service_ == null + ? com.google.cloud.agentregistry.v1.Service.getDefaultInstance() + : service_; + } + + /** + * + * + *
            +   * Required. The Service resource that is being created.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.ServiceOrBuilder getServiceOrBuilder() { + return service_ == null + ? com.google.cloud.agentregistry.v1.Service.getDefaultInstance() + : service_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
            +   * Optional. An optional request ID to identify requests. Specify a unique
            +   * request ID so that if you must retry your request, the server will know to
            +   * ignore the request if it has already been completed. The server will
            +   * guarantee that for at least 60 minutes 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
            +   * 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, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. An optional request ID to identify requests. Specify a unique
            +   * request ID so that if you must retry your request, the server will know to
            +   * ignore the request if it has already been completed. The server will
            +   * guarantee that for at least 60 minutes 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
            +   * 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, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, serviceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getService()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(serviceId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, serviceId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getService()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.agentregistry.v1.CreateServiceRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.CreateServiceRequest other = + (com.google.cloud.agentregistry.v1.CreateServiceRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getServiceId().equals(other.getServiceId())) return false; + if (hasService() != other.hasService()) return false; + if (hasService()) { + if (!getService().equals(other.getService())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + SERVICE_ID_FIELD_NUMBER; + hash = (53 * hash) + getServiceId().hashCode(); + if (hasService()) { + hash = (37 * hash) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getService().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.agentregistry.v1.CreateServiceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.CreateServiceRequest 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.agentregistry.v1.CreateServiceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.CreateServiceRequest parseFrom( + 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.agentregistry.v1.CreateServiceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.CreateServiceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.CreateServiceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.CreateServiceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.CreateServiceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.CreateServiceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.CreateServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.CreateServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.CreateServiceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for creating a Service
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.CreateServiceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.CreateServiceRequest) + com.google.cloud.agentregistry.v1.CreateServiceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.CreateServiceRequest.class, + com.google.cloud.agentregistry.v1.CreateServiceRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.CreateServiceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetServiceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + serviceId_ = ""; + service_ = null; + if (serviceBuilder_ != null) { + serviceBuilder_.dispose(); + serviceBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_CreateServiceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.CreateServiceRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.CreateServiceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.CreateServiceRequest build() { + com.google.cloud.agentregistry.v1.CreateServiceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.CreateServiceRequest buildPartial() { + com.google.cloud.agentregistry.v1.CreateServiceRequest result = + new com.google.cloud.agentregistry.v1.CreateServiceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.CreateServiceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.serviceId_ = serviceId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.service_ = serviceBuilder_ == null ? service_ : serviceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.CreateServiceRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.CreateServiceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.CreateServiceRequest other) { + if (other == com.google.cloud.agentregistry.v1.CreateServiceRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getServiceId().isEmpty()) { + serviceId_ = other.serviceId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasService()) { + mergeService(other.getService()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + serviceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetServiceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The project and location to create the Service in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to create the Service in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to create the Service in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to create the Service in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to create the Service in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 serviceId_ = ""; + + /** + * + * + *
            +     * Required. The ID to use for the service, which will become the final
            +     * component of the service's resource name.
            +     *
            +     * This value should be 4-63 characters, and valid characters
            +     * are `/[a-z][0-9]-/`.
            +     * 
            + * + * string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serviceId. + */ + public java.lang.String getServiceId() { + java.lang.Object ref = serviceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + serviceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The ID to use for the service, which will become the final
            +     * component of the service's resource name.
            +     *
            +     * This value should be 4-63 characters, and valid characters
            +     * are `/[a-z][0-9]-/`.
            +     * 
            + * + * string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serviceId. + */ + public com.google.protobuf.ByteString getServiceIdBytes() { + java.lang.Object ref = serviceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + serviceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The ID to use for the service, which will become the final
            +     * component of the service's resource name.
            +     *
            +     * This value should be 4-63 characters, and valid characters
            +     * are `/[a-z][0-9]-/`.
            +     * 
            + * + * string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The serviceId to set. + * @return This builder for chaining. + */ + public Builder setServiceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + serviceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The ID to use for the service, which will become the final
            +     * component of the service's resource name.
            +     *
            +     * This value should be 4-63 characters, and valid characters
            +     * are `/[a-z][0-9]-/`.
            +     * 
            + * + * string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearServiceId() { + serviceId_ = getDefaultInstance().getServiceId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The ID to use for the service, which will become the final
            +     * component of the service's resource name.
            +     *
            +     * This value should be 4-63 characters, and valid characters
            +     * are `/[a-z][0-9]-/`.
            +     * 
            + * + * string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for serviceId to set. + * @return This builder for chaining. + */ + public Builder setServiceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + serviceId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.agentregistry.v1.Service service_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Service, + com.google.cloud.agentregistry.v1.Service.Builder, + com.google.cloud.agentregistry.v1.ServiceOrBuilder> + serviceBuilder_; + + /** + * + * + *
            +     * Required. The Service resource that is being created.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the service field is set. + */ + public boolean hasService() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Required. The Service resource that is being created.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The service. + */ + public com.google.cloud.agentregistry.v1.Service getService() { + if (serviceBuilder_ == null) { + return service_ == null + ? com.google.cloud.agentregistry.v1.Service.getDefaultInstance() + : service_; + } else { + return serviceBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The Service resource that is being created.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setService(com.google.cloud.agentregistry.v1.Service value) { + if (serviceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + service_ = value; + } else { + serviceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Service resource that is being created.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setService(com.google.cloud.agentregistry.v1.Service.Builder builderForValue) { + if (serviceBuilder_ == null) { + service_ = builderForValue.build(); + } else { + serviceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Service resource that is being created.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeService(com.google.cloud.agentregistry.v1.Service value) { + if (serviceBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && service_ != null + && service_ != com.google.cloud.agentregistry.v1.Service.getDefaultInstance()) { + getServiceBuilder().mergeFrom(value); + } else { + service_ = value; + } + } else { + serviceBuilder_.mergeFrom(value); + } + if (service_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The Service resource that is being created.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearService() { + bitField0_ = (bitField0_ & ~0x00000004); + service_ = null; + if (serviceBuilder_ != null) { + serviceBuilder_.dispose(); + serviceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Service resource that is being created.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.Service.Builder getServiceBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetServiceFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The Service resource that is being created.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.ServiceOrBuilder getServiceOrBuilder() { + if (serviceBuilder_ != null) { + return serviceBuilder_.getMessageOrBuilder(); + } else { + return service_ == null + ? com.google.cloud.agentregistry.v1.Service.getDefaultInstance() + : service_; + } + } + + /** + * + * + *
            +     * Required. The Service resource that is being created.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Service, + com.google.cloud.agentregistry.v1.Service.Builder, + com.google.cloud.agentregistry.v1.ServiceOrBuilder> + internalGetServiceFieldBuilder() { + if (serviceBuilder_ == null) { + serviceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Service, + com.google.cloud.agentregistry.v1.Service.Builder, + com.google.cloud.agentregistry.v1.ServiceOrBuilder>( + getService(), getParentForChildren(), isClean()); + service_ = null; + } + return serviceBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
            +     * Optional. An optional request ID to identify requests. Specify a unique
            +     * request ID so that if you must retry your request, the server will know to
            +     * ignore the request if it has already been completed. The server will
            +     * guarantee that for at least 60 minutes 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
            +     * 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, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. An optional request ID to identify requests. Specify a unique
            +     * request ID so that if you must retry your request, the server will know to
            +     * ignore the request if it has already been completed. The server will
            +     * guarantee that for at least 60 minutes 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
            +     * 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, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. An optional request ID to identify requests. Specify a unique
            +     * request ID so that if you must retry your request, the server will know to
            +     * ignore the request if it has already been completed. The server will
            +     * guarantee that for at least 60 minutes 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
            +     * 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, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. 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.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. 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.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.CreateServiceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.CreateServiceRequest) + private static final com.google.cloud.agentregistry.v1.CreateServiceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.CreateServiceRequest(); + } + + public static com.google.cloud.agentregistry.v1.CreateServiceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.CreateServiceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateServiceRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateServiceRequestOrBuilder.java new file mode 100644 index 000000000000..329596cd0db6 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/CreateServiceRequestOrBuilder.java @@ -0,0 +1,194 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface CreateServiceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.CreateServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The project and location to create the Service in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The project and location to create the Service in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. The ID to use for the service, which will become the final
            +   * component of the service's resource name.
            +   *
            +   * This value should be 4-63 characters, and valid characters
            +   * are `/[a-z][0-9]-/`.
            +   * 
            + * + * string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The serviceId. + */ + java.lang.String getServiceId(); + + /** + * + * + *
            +   * Required. The ID to use for the service, which will become the final
            +   * component of the service's resource name.
            +   *
            +   * This value should be 4-63 characters, and valid characters
            +   * are `/[a-z][0-9]-/`.
            +   * 
            + * + * string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for serviceId. + */ + com.google.protobuf.ByteString getServiceIdBytes(); + + /** + * + * + *
            +   * Required. The Service resource that is being created.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the service field is set. + */ + boolean hasService(); + + /** + * + * + *
            +   * Required. The Service resource that is being created.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The service. + */ + com.google.cloud.agentregistry.v1.Service getService(); + + /** + * + * + *
            +   * Required. The Service resource that is being created.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.agentregistry.v1.ServiceOrBuilder getServiceOrBuilder(); + + /** + * + * + *
            +   * 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.
            +   *
            +   * For example, consider a situation where you make an initial request and the
            +   * request times out. If you make the request again with the same request
            +   * ID, the server can check if original operation with the same request ID
            +   * was received, and if so, will ignore the second request. This prevents
            +   * clients from accidentally creating duplicate commitments.
            +   *
            +   * The request ID must be a valid UUID with the exception that zero UUID is
            +   * not supported (00000000-0000-0000-0000-000000000000).
            +   * 
            + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
            +   * Optional. An optional request ID to identify requests. Specify a unique
            +   * request ID so that if you must retry your request, the server will know to
            +   * ignore the request if it has already been completed. The server will
            +   * guarantee that for at least 60 minutes 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
            +   * 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, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteBindingRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteBindingRequest.java new file mode 100644 index 000000000000..e270b2bc5836 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteBindingRequest.java @@ -0,0 +1,905 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for deleting a Binding
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.DeleteBindingRequest} + */ +@com.google.protobuf.Generated +public final class DeleteBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.DeleteBindingRequest) + DeleteBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteBindingRequest"); + } + + // Use DeleteBindingRequest.newBuilder() to construct. + private DeleteBindingRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteBindingRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.DeleteBindingRequest.class, + com.google.cloud.agentregistry.v1.DeleteBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The name of the Binding.
            +   * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * + * 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 Binding.
            +   * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
            +   * Optional. An optional request ID to identify requests. Specify a unique
            +   * request ID so that if you must retry your request, the server will know to
            +   * ignore the request if it has already been completed. The server will
            +   * guarantee that for at least 60 minutes after the first request.
            +   *
            +   * For example, consider a situation where you make an initial request and the
            +   * request times out. If you make the request again with the same request
            +   * ID, the server can check if original operation with the same request ID
            +   * was received, and if so, will ignore the second request. This prevents
            +   * clients from accidentally creating duplicate commitments.
            +   *
            +   * The request ID must be a valid UUID with the exception that zero UUID is
            +   * not supported (00000000-0000-0000-0000-000000000000).
            +   * 
            + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. An optional request ID to identify requests. Specify a unique
            +   * request ID so that if you must retry your request, the server will know to
            +   * ignore the request if it has already been completed. The server will
            +   * guarantee that for at least 60 minutes after the first request.
            +   *
            +   * For example, consider a situation where you make an initial request and the
            +   * request times out. If you make the request again with the same request
            +   * ID, the server can check if original operation with the same request ID
            +   * was received, and if so, will ignore the second request. This prevents
            +   * clients from accidentally creating duplicate commitments.
            +   *
            +   * The request ID must be a valid UUID with the exception that zero UUID is
            +   * not supported (00000000-0000-0000-0000-000000000000).
            +   * 
            + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + 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.agentregistry.v1.DeleteBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.DeleteBindingRequest other = + (com.google.cloud.agentregistry.v1.DeleteBindingRequest) 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.agentregistry.v1.DeleteBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.DeleteBindingRequest 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.agentregistry.v1.DeleteBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.DeleteBindingRequest parseFrom( + 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.agentregistry.v1.DeleteBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.DeleteBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.DeleteBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.DeleteBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.DeleteBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.DeleteBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.DeleteBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.DeleteBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.DeleteBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for deleting a Binding
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.DeleteBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.DeleteBindingRequest) + com.google.cloud.agentregistry.v1.DeleteBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.DeleteBindingRequest.class, + com.google.cloud.agentregistry.v1.DeleteBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.DeleteBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.DeleteBindingRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.DeleteBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.DeleteBindingRequest build() { + com.google.cloud.agentregistry.v1.DeleteBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.DeleteBindingRequest buildPartial() { + com.google.cloud.agentregistry.v1.DeleteBindingRequest result = + new com.google.cloud.agentregistry.v1.DeleteBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.DeleteBindingRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.DeleteBindingRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.DeleteBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.DeleteBindingRequest other) { + if (other == com.google.cloud.agentregistry.v1.DeleteBindingRequest.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 Binding.
            +     * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * + * 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 Binding.
            +     * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * + * 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 Binding.
            +     * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * + * 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 Binding.
            +     * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * + * 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 Binding.
            +     * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
            +     * Optional. An optional request ID to identify requests. Specify a unique
            +     * request ID so that if you must retry your request, the server will know to
            +     * ignore the request if it has already been completed. The server will
            +     * guarantee that for at least 60 minutes after the first request.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. An optional request ID to identify requests. Specify a unique
            +     * request ID so that if you must retry your request, the server will know to
            +     * ignore the request if it has already been completed. The server will
            +     * guarantee that for at least 60 minutes after the first request.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. An optional request ID to identify requests. Specify a unique
            +     * request ID so that if you must retry your request, the server will know to
            +     * ignore the request if it has already been completed. The server will
            +     * guarantee that for at least 60 minutes after the first request.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. An optional request ID to identify requests. Specify a unique
            +     * request ID so that if you must retry your request, the server will know to
            +     * ignore the request if it has already been completed. The server will
            +     * guarantee that for at least 60 minutes after the first request.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. An optional request ID to identify requests. Specify a unique
            +     * request ID so that if you must retry your request, the server will know to
            +     * ignore the request if it has already been completed. The server will
            +     * guarantee that for at least 60 minutes after the first request.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.DeleteBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.DeleteBindingRequest) + private static final com.google.cloud.agentregistry.v1.DeleteBindingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.DeleteBindingRequest(); + } + + public static com.google.cloud.agentregistry.v1.DeleteBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.DeleteBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteBindingRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteBindingRequestOrBuilder.java new file mode 100644 index 000000000000..329cec9817cb --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteBindingRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface DeleteBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.DeleteBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The name of the Binding.
            +   * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The name of the Binding.
            +   * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. An optional request ID to identify requests. Specify a unique
            +   * request ID so that if you must retry your request, the server will know to
            +   * ignore the request if it has already been completed. The server will
            +   * guarantee that for at least 60 minutes after the first request.
            +   *
            +   * For example, consider a situation where you make an initial request and the
            +   * request times out. If you make the request again with the same request
            +   * ID, the server can check if original operation with the same request ID
            +   * was received, and if so, will ignore the second request. This prevents
            +   * clients from accidentally creating duplicate commitments.
            +   *
            +   * The request ID must be a valid UUID with the exception that zero UUID is
            +   * not supported (00000000-0000-0000-0000-000000000000).
            +   * 
            + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
            +   * Optional. An optional request ID to identify requests. Specify a unique
            +   * request ID so that if you must retry your request, the server will know to
            +   * ignore the request if it has already been completed. The server will
            +   * guarantee that for at least 60 minutes after the first request.
            +   *
            +   * For example, consider a situation where you make an initial request and the
            +   * request times out. If you make the request again with the same request
            +   * ID, the server can check if original operation with the same request ID
            +   * was received, and if so, will ignore the second request. This prevents
            +   * clients from accidentally creating duplicate commitments.
            +   *
            +   * The request ID must be a valid UUID with the exception that zero UUID is
            +   * not supported (00000000-0000-0000-0000-000000000000).
            +   * 
            + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteServiceRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteServiceRequest.java new file mode 100644 index 000000000000..4a022c43d595 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteServiceRequest.java @@ -0,0 +1,905 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for deleting a Service
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.DeleteServiceRequest} + */ +@com.google.protobuf.Generated +public final class DeleteServiceRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.DeleteServiceRequest) + DeleteServiceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteServiceRequest"); + } + + // Use DeleteServiceRequest.newBuilder() to construct. + private DeleteServiceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteServiceRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.DeleteServiceRequest.class, + com.google.cloud.agentregistry.v1.DeleteServiceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The name of the Service.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * 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 Service.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
            +   * Optional. An optional request ID to identify requests. Specify a unique
            +   * request ID so that if you must retry your request, the server will know to
            +   * ignore the request if it has already been completed. The server will
            +   * guarantee that for at least 60 minutes after the first request.
            +   *
            +   * For example, consider a situation where you make an initial request and the
            +   * request times out. If you make the request again with the same request
            +   * ID, the server can check if original operation with the same request ID
            +   * was received, and if so, will ignore the second request. This prevents
            +   * clients from accidentally creating duplicate commitments.
            +   *
            +   * The request ID must be a valid UUID with the exception that zero UUID is
            +   * not supported (00000000-0000-0000-0000-000000000000).
            +   * 
            + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. An optional request ID to identify requests. Specify a unique
            +   * request ID so that if you must retry your request, the server will know to
            +   * ignore the request if it has already been completed. The server will
            +   * guarantee that for at least 60 minutes after the first request.
            +   *
            +   * For example, consider a situation where you make an initial request and the
            +   * request times out. If you make the request again with the same request
            +   * ID, the server can check if original operation with the same request ID
            +   * was received, and if so, will ignore the second request. This prevents
            +   * clients from accidentally creating duplicate commitments.
            +   *
            +   * The request ID must be a valid UUID with the exception that zero UUID is
            +   * not supported (00000000-0000-0000-0000-000000000000).
            +   * 
            + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + 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.agentregistry.v1.DeleteServiceRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.DeleteServiceRequest other = + (com.google.cloud.agentregistry.v1.DeleteServiceRequest) 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.agentregistry.v1.DeleteServiceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.DeleteServiceRequest 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.agentregistry.v1.DeleteServiceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.DeleteServiceRequest parseFrom( + 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.agentregistry.v1.DeleteServiceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.DeleteServiceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.DeleteServiceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.DeleteServiceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.DeleteServiceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.DeleteServiceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.DeleteServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.DeleteServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.DeleteServiceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for deleting a Service
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.DeleteServiceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.DeleteServiceRequest) + com.google.cloud.agentregistry.v1.DeleteServiceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.DeleteServiceRequest.class, + com.google.cloud.agentregistry.v1.DeleteServiceRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.DeleteServiceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_DeleteServiceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.DeleteServiceRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.DeleteServiceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.DeleteServiceRequest build() { + com.google.cloud.agentregistry.v1.DeleteServiceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.DeleteServiceRequest buildPartial() { + com.google.cloud.agentregistry.v1.DeleteServiceRequest result = + new com.google.cloud.agentregistry.v1.DeleteServiceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.DeleteServiceRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.DeleteServiceRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.DeleteServiceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.DeleteServiceRequest other) { + if (other == com.google.cloud.agentregistry.v1.DeleteServiceRequest.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 Service.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * 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 Service.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * 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 Service.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * 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 Service.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * 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 Service.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
            +     * Optional. An optional request ID to identify requests. Specify a unique
            +     * request ID so that if you must retry your request, the server will know to
            +     * ignore the request if it has already been completed. The server will
            +     * guarantee that for at least 60 minutes after the first request.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. An optional request ID to identify requests. Specify a unique
            +     * request ID so that if you must retry your request, the server will know to
            +     * ignore the request if it has already been completed. The server will
            +     * guarantee that for at least 60 minutes after the first request.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. An optional request ID to identify requests. Specify a unique
            +     * request ID so that if you must retry your request, the server will know to
            +     * ignore the request if it has already been completed. The server will
            +     * guarantee that for at least 60 minutes after the first request.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. An optional request ID to identify requests. Specify a unique
            +     * request ID so that if you must retry your request, the server will know to
            +     * ignore the request if it has already been completed. The server will
            +     * guarantee that for at least 60 minutes after the first request.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. An optional request ID to identify requests. Specify a unique
            +     * request ID so that if you must retry your request, the server will know to
            +     * ignore the request if it has already been completed. The server will
            +     * guarantee that for at least 60 minutes after the first request.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.DeleteServiceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.DeleteServiceRequest) + private static final com.google.cloud.agentregistry.v1.DeleteServiceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.DeleteServiceRequest(); + } + + public static com.google.cloud.agentregistry.v1.DeleteServiceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.DeleteServiceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteServiceRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteServiceRequestOrBuilder.java new file mode 100644 index 000000000000..303bf2afd050 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/DeleteServiceRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface DeleteServiceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.DeleteServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The name of the Service.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The name of the Service.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. An optional request ID to identify requests. Specify a unique
            +   * request ID so that if you must retry your request, the server will know to
            +   * ignore the request if it has already been completed. The server will
            +   * guarantee that for at least 60 minutes after the first request.
            +   *
            +   * For example, consider a situation where you make an initial request and the
            +   * request times out. If you make the request again with the same request
            +   * ID, the server can check if original operation with the same request ID
            +   * was received, and if so, will ignore the second request. This prevents
            +   * clients from accidentally creating duplicate commitments.
            +   *
            +   * The request ID must be a valid UUID with the exception that zero UUID is
            +   * not supported (00000000-0000-0000-0000-000000000000).
            +   * 
            + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
            +   * Optional. An optional request ID to identify requests. Specify a unique
            +   * request ID so that if you must retry your request, the server will know to
            +   * ignore the request if it has already been completed. The server will
            +   * guarantee that for at least 60 minutes after the first request.
            +   *
            +   * For example, consider a situation where you make an initial request and the
            +   * request times out. If you make the request again with the same request
            +   * ID, the server can check if original operation with the same request ID
            +   * was received, and if so, will ignore the second request. This prevents
            +   * clients from accidentally creating duplicate commitments.
            +   *
            +   * The request ID must be a valid UUID with the exception that zero UUID is
            +   * not supported (00000000-0000-0000-0000-000000000000).
            +   * 
            + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Endpoint.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Endpoint.java new file mode 100644 index 000000000000..f971c5ba1b8d --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Endpoint.java @@ -0,0 +1,2855 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/endpoint.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Represents an Endpoint.
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Endpoint} + */ +@com.google.protobuf.Generated +public final class Endpoint extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.Endpoint) + EndpointOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Endpoint"); + } + + // Use Endpoint.newBuilder() to construct. + private Endpoint(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Endpoint() { + name_ = ""; + endpointId_ = ""; + displayName_ = ""; + description_ = ""; + interfaces_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.EndpointProto + .internal_static_google_cloud_agentregistry_v1_Endpoint_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.EndpointProto + .internal_static_google_cloud_agentregistry_v1_Endpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Endpoint.class, + com.google.cloud.agentregistry.v1.Endpoint.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Identifier. The resource name of the Endpoint.
            +   * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Identifier. The resource name of the Endpoint.
            +   * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +   * 
            + * + * 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 ENDPOINT_ID_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object endpointId_ = ""; + + /** + * + * + *
            +   * Output only. A stable, globally unique identifier for Endpoint.
            +   * 
            + * + * string endpoint_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The endpointId. + */ + @java.lang.Override + public java.lang.String getEndpointId() { + java.lang.Object ref = endpointId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpointId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. A stable, globally unique identifier for Endpoint.
            +   * 
            + * + * string endpoint_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for endpointId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndpointIdBytes() { + java.lang.Object ref = endpointId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpointId_ = 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_ = ""; + + /** + * + * + *
            +   * Output only. Display name for the Endpoint.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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. Display name for the Endpoint.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
            +   * Output only. Description of an Endpoint.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. Description of an Endpoint.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERFACES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List interfaces_; + + /** + * + * + *
            +   * Required. The connection details for the Endpoint.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getInterfacesList() { + return interfaces_; + } + + /** + * + * + *
            +   * Required. The connection details for the Endpoint.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getInterfacesOrBuilderList() { + return interfaces_; + } + + /** + * + * + *
            +   * Required. The connection details for the Endpoint.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getInterfacesCount() { + return interfaces_.size(); + } + + /** + * + * + *
            +   * Required. The connection details for the Endpoint.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Interface getInterfaces(int index) { + return interfaces_.get(index); + } + + /** + * + * + *
            +   * Required. The connection details for the Endpoint.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.InterfaceOrBuilder getInterfacesOrBuilder(int index) { + return interfaces_.get(index); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. Create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.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.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.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.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.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 = 6; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. Update time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.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.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.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.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.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 ATTRIBUTES_FIELD_NUMBER = 7; + + private static final class AttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.agentregistry.v1.EndpointProto + .internal_static_google_cloud_agentregistry_v1_Endpoint_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Struct.getDefaultInstance()); + } + + @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(); + } + + /** + * + * + *
            +   * Output only. Attributes of the Endpoint.
            +   *
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`:
            +   * {"uri": "//..."} - the URI of the underlying resource hosting the
            +   * Endpoint, for example, the GKE Deployment.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @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(); + } + + /** + * + * + *
            +   * Output only. Attributes of the Endpoint.
            +   *
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`:
            +   * {"uri": "//..."} - the URI of the underlying resource hosting the
            +   * Endpoint, for example, the GKE Deployment.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + + /** + * + * + *
            +   * Output only. Attributes of the Endpoint.
            +   *
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`:
            +   * {"uri": "//..."} - the URI of the underlying resource hosting the
            +   * Endpoint, for example, the GKE Deployment.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.protobuf.Struct getAttributesOrDefault( + java.lang.String key, + /* nullable */ + com.google.protobuf.Struct defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Output only. Attributes of the Endpoint.
            +   *
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`:
            +   * {"uri": "//..."} - the URI of the underlying resource hosting the
            +   * Endpoint, for example, the GKE Deployment.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.Struct 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + for (int i = 0; i < interfaces_.size(); i++) { + output.writeMessage(4, interfaces_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 7); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(endpointId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, endpointId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + for (int i = 0; i < interfaces_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, interfaces_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + } + 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(7, attributes__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(endpointId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, endpointId_); + } + 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.agentregistry.v1.Endpoint)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.Endpoint other = + (com.google.cloud.agentregistry.v1.Endpoint) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEndpointId().equals(other.getEndpointId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getInterfacesList().equals(other.getInterfacesList())) 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 (!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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ENDPOINT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEndpointId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getInterfacesCount() > 0) { + hash = (37 * hash) + INTERFACES_FIELD_NUMBER; + hash = (53 * hash) + getInterfacesList().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 (!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.agentregistry.v1.Endpoint parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Endpoint 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.agentregistry.v1.Endpoint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Endpoint parseFrom( + 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.agentregistry.v1.Endpoint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Endpoint parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Endpoint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Endpoint parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Endpoint parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Endpoint parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Endpoint parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Endpoint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.agentregistry.v1.Endpoint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents an Endpoint.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Endpoint} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.Endpoint) + com.google.cloud.agentregistry.v1.EndpointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.EndpointProto + .internal_static_google_cloud_agentregistry_v1_Endpoint_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetMutableAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.EndpointProto + .internal_static_google_cloud_agentregistry_v1_Endpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Endpoint.class, + com.google.cloud.agentregistry.v1.Endpoint.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.Endpoint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetInterfacesFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + endpointId_ = ""; + displayName_ = ""; + description_ = ""; + if (interfacesBuilder_ == null) { + interfaces_ = java.util.Collections.emptyList(); + } else { + interfaces_ = null; + interfacesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableAttributes().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.EndpointProto + .internal_static_google_cloud_agentregistry_v1_Endpoint_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Endpoint getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.Endpoint.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Endpoint build() { + com.google.cloud.agentregistry.v1.Endpoint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Endpoint buildPartial() { + com.google.cloud.agentregistry.v1.Endpoint result = + new com.google.cloud.agentregistry.v1.Endpoint(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.agentregistry.v1.Endpoint result) { + if (interfacesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + interfaces_ = java.util.Collections.unmodifiableList(interfaces_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.interfaces_ = interfaces_; + } else { + result.interfaces_ = interfacesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.Endpoint result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endpointId_ = endpointId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + 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.attributes_ = + internalGetAttributes().build(AttributesDefaultEntryHolder.defaultEntry); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.Endpoint) { + return mergeFrom((com.google.cloud.agentregistry.v1.Endpoint) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.Endpoint other) { + if (other == com.google.cloud.agentregistry.v1.Endpoint.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEndpointId().isEmpty()) { + endpointId_ = other.endpointId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (interfacesBuilder_ == null) { + if (!other.interfaces_.isEmpty()) { + if (interfaces_.isEmpty()) { + interfaces_ = other.interfaces_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureInterfacesIsMutable(); + interfaces_.addAll(other.interfaces_); + } + onChanged(); + } + } else { + if (!other.interfaces_.isEmpty()) { + if (interfacesBuilder_.isEmpty()) { + interfacesBuilder_.dispose(); + interfacesBuilder_ = null; + interfaces_ = other.interfaces_; + bitField0_ = (bitField0_ & ~0x00000010); + interfacesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInterfacesFieldBuilder() + : null; + } else { + interfacesBuilder_.addAllMessages(other.interfaces_); + } + } + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableAttributes().mergeFrom(other.internalGetAttributes()); + bitField0_ |= 0x00000080; + 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_ |= 0x00000004; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + com.google.cloud.agentregistry.v1.Interface m = + input.readMessage( + com.google.cloud.agentregistry.v1.Interface.parser(), extensionRegistry); + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.add(m); + } else { + interfacesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry + attributes__ = + input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAttributes() + .ensureBuilderMap() + .put(attributes__.getKey(), attributes__.getValue()); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + endpointId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Identifier. The resource name of the Endpoint.
            +     * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Identifier. The resource name of the Endpoint.
            +     * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Identifier. The resource name of the Endpoint.
            +     * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The resource name of the Endpoint.
            +     * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The resource name of the Endpoint.
            +     * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * 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 endpointId_ = ""; + + /** + * + * + *
            +     * Output only. A stable, globally unique identifier for Endpoint.
            +     * 
            + * + * string endpoint_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The endpointId. + */ + public java.lang.String getEndpointId() { + java.lang.Object ref = endpointId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpointId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. A stable, globally unique identifier for Endpoint.
            +     * 
            + * + * string endpoint_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for endpointId. + */ + public com.google.protobuf.ByteString getEndpointIdBytes() { + java.lang.Object ref = endpointId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpointId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. A stable, globally unique identifier for Endpoint.
            +     * 
            + * + * string endpoint_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The endpointId to set. + * @return This builder for chaining. + */ + public Builder setEndpointId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + endpointId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. A stable, globally unique identifier for Endpoint.
            +     * 
            + * + * string endpoint_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEndpointId() { + endpointId_ = getDefaultInstance().getEndpointId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. A stable, globally unique identifier for Endpoint.
            +     * 
            + * + * string endpoint_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for endpointId to set. + * @return This builder for chaining. + */ + public Builder setEndpointIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endpointId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
            +     * Output only. Display name for the Endpoint.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +     * Output only. Display name for the Endpoint.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +     * Output only. Display name for the Endpoint.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Display name for the Endpoint.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Display name for the Endpoint.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
            +     * Output only. Description of an Endpoint.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. Description of an Endpoint.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. Description of an Endpoint.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Description of an Endpoint.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Description of an Endpoint.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List interfaces_ = + java.util.Collections.emptyList(); + + private void ensureInterfacesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + interfaces_ = + new java.util.ArrayList(interfaces_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Interface, + com.google.cloud.agentregistry.v1.Interface.Builder, + com.google.cloud.agentregistry.v1.InterfaceOrBuilder> + interfacesBuilder_; + + /** + * + * + *
            +     * Required. The connection details for the Endpoint.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getInterfacesList() { + if (interfacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(interfaces_); + } else { + return interfacesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Required. The connection details for the Endpoint.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getInterfacesCount() { + if (interfacesBuilder_ == null) { + return interfaces_.size(); + } else { + return interfacesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Required. The connection details for the Endpoint.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.Interface getInterfaces(int index) { + if (interfacesBuilder_ == null) { + return interfaces_.get(index); + } else { + return interfacesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Required. The connection details for the Endpoint.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterfaces(int index, com.google.cloud.agentregistry.v1.Interface value) { + if (interfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterfacesIsMutable(); + interfaces_.set(index, value); + onChanged(); + } else { + interfacesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Required. The connection details for the Endpoint.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setInterfaces( + int index, com.google.cloud.agentregistry.v1.Interface.Builder builderForValue) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.set(index, builderForValue.build()); + onChanged(); + } else { + interfacesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Required. The connection details for the Endpoint.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInterfaces(com.google.cloud.agentregistry.v1.Interface value) { + if (interfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterfacesIsMutable(); + interfaces_.add(value); + onChanged(); + } else { + interfacesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Required. The connection details for the Endpoint.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInterfaces(int index, com.google.cloud.agentregistry.v1.Interface value) { + if (interfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterfacesIsMutable(); + interfaces_.add(index, value); + onChanged(); + } else { + interfacesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Required. The connection details for the Endpoint.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInterfaces( + com.google.cloud.agentregistry.v1.Interface.Builder builderForValue) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.add(builderForValue.build()); + onChanged(); + } else { + interfacesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Required. The connection details for the Endpoint.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addInterfaces( + int index, com.google.cloud.agentregistry.v1.Interface.Builder builderForValue) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.add(index, builderForValue.build()); + onChanged(); + } else { + interfacesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Required. The connection details for the Endpoint.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllInterfaces( + java.lang.Iterable values) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, interfaces_); + onChanged(); + } else { + interfacesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Required. The connection details for the Endpoint.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearInterfaces() { + if (interfacesBuilder_ == null) { + interfaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + interfacesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Required. The connection details for the Endpoint.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeInterfaces(int index) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.remove(index); + onChanged(); + } else { + interfacesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Required. The connection details for the Endpoint.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.Interface.Builder getInterfacesBuilder(int index) { + return internalGetInterfacesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Required. The connection details for the Endpoint.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.InterfaceOrBuilder getInterfacesOrBuilder(int index) { + if (interfacesBuilder_ == null) { + return interfaces_.get(index); + } else { + return interfacesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Required. The connection details for the Endpoint.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInterfacesOrBuilderList() { + if (interfacesBuilder_ != null) { + return interfacesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(interfaces_); + } + } + + /** + * + * + *
            +     * Required. The connection details for the Endpoint.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.Interface.Builder addInterfacesBuilder() { + return internalGetInterfacesFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.Interface.getDefaultInstance()); + } + + /** + * + * + *
            +     * Required. The connection details for the Endpoint.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.Interface.Builder addInterfacesBuilder(int index) { + return internalGetInterfacesFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.Interface.getDefaultInstance()); + } + + /** + * + * + *
            +     * Required. The connection details for the Endpoint.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getInterfacesBuilderList() { + return internalGetInterfacesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Interface, + com.google.cloud.agentregistry.v1.Interface.Builder, + com.google.cloud.agentregistry.v1.InterfaceOrBuilder> + internalGetInterfacesFieldBuilder() { + if (interfacesBuilder_ == null) { + interfacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Interface, + com.google.cloud.agentregistry.v1.Interface.Builder, + com.google.cloud.agentregistry.v1.InterfaceOrBuilder>( + interfaces_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + interfaces_ = null; + } + return interfacesBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.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.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.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.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.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.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.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.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.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.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.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.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.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.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private static final class AttributesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, com.google.protobuf.StructOrBuilder, com.google.protobuf.Struct> { + @java.lang.Override + public com.google.protobuf.Struct build(com.google.protobuf.StructOrBuilder val) { + if (val instanceof com.google.protobuf.Struct) { + return (com.google.protobuf.Struct) val; + } + return ((com.google.protobuf.Struct.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry + defaultEntry() { + return AttributesDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final AttributesConverter attributesConverter = new AttributesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.protobuf.StructOrBuilder, + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder> + attributes_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.protobuf.StructOrBuilder, + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder> + internalGetAttributes() { + if (attributes_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(attributesConverter); + } + return attributes_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.protobuf.StructOrBuilder, + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder> + internalGetMutableAttributes() { + if (attributes_ == null) { + attributes_ = new com.google.protobuf.MapFieldBuilder<>(attributesConverter); + } + bitField0_ |= 0x00000080; + onChanged(); + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().ensureBuilderMap().size(); + } + + /** + * + * + *
            +     * Output only. Attributes of the Endpoint.
            +     *
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`:
            +     * {"uri": "//..."} - the URI of the underlying resource hosting the
            +     * Endpoint, for example, the GKE Deployment.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAttributes().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getAttributesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + + /** + * + * + *
            +     * Output only. Attributes of the Endpoint.
            +     *
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`:
            +     * {"uri": "//..."} - the URI of the underlying resource hosting the
            +     * Endpoint, for example, the GKE Deployment.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getAttributesMap() { + return internalGetAttributes().getImmutableMap(); + } + + /** + * + * + *
            +     * Output only. Attributes of the Endpoint.
            +     *
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`:
            +     * {"uri": "//..."} - the URI of the underlying resource hosting the
            +     * Endpoint, for example, the GKE Deployment.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.protobuf.Struct getAttributesOrDefault( + java.lang.String key, + /* nullable */ + com.google.protobuf.Struct defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableAttributes().ensureBuilderMap(); + return map.containsKey(key) ? attributesConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
            +     * Output only. Attributes of the Endpoint.
            +     *
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`:
            +     * {"uri": "//..."} - the URI of the underlying resource hosting the
            +     * Endpoint, for example, the GKE Deployment.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.Struct getAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableAttributes().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return attributesConverter.build(map.get(key)); + } + + public Builder clearAttributes() { + bitField0_ = (bitField0_ & ~0x00000080); + internalGetMutableAttributes().clear(); + return this; + } + + /** + * + * + *
            +     * Output only. Attributes of the Endpoint.
            +     *
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`:
            +     * {"uri": "//..."} - the URI of the underlying resource hosting the
            +     * Endpoint, for example, the GKE Deployment.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAttributes().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAttributes() { + bitField0_ |= 0x00000080; + return internalGetMutableAttributes().ensureMessageMap(); + } + + /** + * + * + *
            +     * Output only. Attributes of the Endpoint.
            +     *
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`:
            +     * {"uri": "//..."} - the URI of the underlying resource hosting the
            +     * Endpoint, for example, the GKE Deployment.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAttributes(java.lang.String key, com.google.protobuf.Struct value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAttributes().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000080; + return this; + } + + /** + * + * + *
            +     * Output only. Attributes of the Endpoint.
            +     *
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`:
            +     * {"uri": "//..."} - the URI of the underlying resource hosting the
            +     * Endpoint, for example, the GKE Deployment.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllAttributes( + java.util.Map values) { + for (java.util.Map.Entry e : + values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableAttributes().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000080; + return this; + } + + /** + * + * + *
            +     * Output only. Attributes of the Endpoint.
            +     *
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`:
            +     * {"uri": "//..."} - the URI of the underlying resource hosting the
            +     * Endpoint, for example, the GKE Deployment.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Struct.Builder putAttributesBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = + internalGetMutableAttributes().ensureBuilderMap(); + com.google.protobuf.StructOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.protobuf.Struct.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.protobuf.Struct) { + entry = ((com.google.protobuf.Struct) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.protobuf.Struct.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.Endpoint) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.Endpoint) + private static final com.google.cloud.agentregistry.v1.Endpoint DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.Endpoint(); + } + + public static com.google.cloud.agentregistry.v1.Endpoint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Endpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.Endpoint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointName.java new file mode 100644 index 000000000000..25c8907fdf6a --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.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 EndpointName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ENDPOINT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/endpoints/{endpoint}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String endpoint; + + @Deprecated + protected EndpointName() { + project = null; + location = null; + endpoint = null; + } + + private EndpointName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + endpoint = Preconditions.checkNotNull(builder.getEndpoint()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getEndpoint() { + return endpoint; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static EndpointName of(String project, String location, String endpoint) { + return newBuilder().setProject(project).setLocation(location).setEndpoint(endpoint).build(); + } + + public static String format(String project, String location, String endpoint) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setEndpoint(endpoint) + .build() + .toString(); + } + + public static EndpointName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ENDPOINT.validatedMatch( + formattedString, "EndpointName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("endpoint")); + } + + 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 (EndpointName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ENDPOINT.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 (endpoint != null) { + fieldMapBuilder.put("endpoint", endpoint); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ENDPOINT.instantiate( + "project", project, "location", location, "endpoint", endpoint); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + EndpointName that = ((EndpointName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.endpoint, that.endpoint); + } + 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(endpoint); + return h; + } + + /** Builder for projects/{project}/locations/{location}/endpoints/{endpoint}. */ + public static class Builder { + private String project; + private String location; + private String endpoint; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getEndpoint() { + return endpoint; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setEndpoint(String endpoint) { + this.endpoint = endpoint; + return this; + } + + private Builder(EndpointName endpointName) { + this.project = endpointName.project; + this.location = endpointName.location; + this.endpoint = endpointName.endpoint; + } + + public EndpointName build() { + return new EndpointName(this); + } + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointOrBuilder.java new file mode 100644 index 000000000000..f874679a6cbc --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointOrBuilder.java @@ -0,0 +1,383 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/endpoint.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface EndpointOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.Endpoint) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Identifier. The resource name of the Endpoint.
            +   * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Identifier. The resource name of the Endpoint.
            +   * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Output only. A stable, globally unique identifier for Endpoint.
            +   * 
            + * + * string endpoint_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The endpointId. + */ + java.lang.String getEndpointId(); + + /** + * + * + *
            +   * Output only. A stable, globally unique identifier for Endpoint.
            +   * 
            + * + * string endpoint_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for endpointId. + */ + com.google.protobuf.ByteString getEndpointIdBytes(); + + /** + * + * + *
            +   * Output only. Display name for the Endpoint.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
            +   * Output only. Display name for the Endpoint.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
            +   * Output only. Description of an Endpoint.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
            +   * Output only. Description of an Endpoint.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
            +   * Required. The connection details for the Endpoint.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getInterfacesList(); + + /** + * + * + *
            +   * Required. The connection details for the Endpoint.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.agentregistry.v1.Interface getInterfaces(int index); + + /** + * + * + *
            +   * Required. The connection details for the Endpoint.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getInterfacesCount(); + + /** + * + * + *
            +   * Required. The connection details for the Endpoint.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getInterfacesOrBuilderList(); + + /** + * + * + *
            +   * Required. The connection details for the Endpoint.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.agentregistry.v1.InterfaceOrBuilder getInterfacesOrBuilder(int index); + + /** + * + * + *
            +   * Output only. Create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. Create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. Create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Update time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. Update time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. Update time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Attributes of the Endpoint.
            +   *
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`:
            +   * {"uri": "//..."} - the URI of the underlying resource hosting the
            +   * Endpoint, for example, the GKE Deployment.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAttributesCount(); + + /** + * + * + *
            +   * Output only. Attributes of the Endpoint.
            +   *
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`:
            +   * {"uri": "//..."} - the URI of the underlying resource hosting the
            +   * Endpoint, for example, the GKE Deployment.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsAttributes(java.lang.String key); + + /** Use {@link #getAttributesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAttributes(); + + /** + * + * + *
            +   * Output only. Attributes of the Endpoint.
            +   *
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`:
            +   * {"uri": "//..."} - the URI of the underlying resource hosting the
            +   * Endpoint, for example, the GKE Deployment.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getAttributesMap(); + + /** + * + * + *
            +   * Output only. Attributes of the Endpoint.
            +   *
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`:
            +   * {"uri": "//..."} - the URI of the underlying resource hosting the
            +   * Endpoint, for example, the GKE Deployment.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + com.google.protobuf.Struct getAttributesOrDefault( + java.lang.String key, + /* nullable */ + com.google.protobuf.Struct defaultValue); + + /** + * + * + *
            +   * Output only. Attributes of the Endpoint.
            +   *
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`:
            +   * {"uri": "//..."} - the URI of the underlying resource hosting the
            +   * Endpoint, for example, the GKE Deployment.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.Struct getAttributesOrThrow(java.lang.String key); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointProto.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointProto.java new file mode 100644 index 000000000000..5e48d4c40ad8 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/EndpointProto.java @@ -0,0 +1,139 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/endpoint.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public final class EndpointProto extends com.google.protobuf.GeneratedFile { + private EndpointProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EndpointProto"); + } + + 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_agentregistry_v1_Endpoint_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Endpoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_Endpoint_AttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Endpoint_AttributesEntry_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/agentregistry/v1/endpoint" + + ".proto\022\035google.cloud.agentregistry.v1\032\037g" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\032.google/cloud/agentreg" + + "istry/v1/properties.proto\032\034google/protob" + + "uf/struct.proto\032\037google/protobuf/timestamp.proto\"\270\004\n" + + "\010Endpoint\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\030\n" + + "\013endpoint_id\030\010 \001(\tB\003\340A\003\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\003\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\003\022A\n\n" + + "interfaces\030\004" + + " \003(\0132(.google.cloud.agentregistry.v1.InterfaceB\003\340A\002\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\022P\n\n" + + "attributes\030\007 \003(\01327.goo" + + "gle.cloud.agentregistry.v1.Endpoint.AttributesEntryB\003\340A\003\032J\n" + + "\017AttributesEntry\022\013\n" + + "\003key\030\001 \001(\t\022&\n" + + "\005value\030\002 \001(\0132\027.google.protobuf.Struct:\0028\001:}\352Az\n" + + "%agentregistry.googlea" + + "pis.com/Endpoint\022 + * Message for fetching available Bindings. + * + * + * Protobuf type {@code google.cloud.agentregistry.v1.FetchAvailableBindingsRequest} + */ +@com.google.protobuf.Generated +public final class FetchAvailableBindingsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.FetchAvailableBindingsRequest) + FetchAvailableBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FetchAvailableBindingsRequest"); + } + + // Use FetchAvailableBindingsRequest.newBuilder() to construct. + private FetchAvailableBindingsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchAvailableBindingsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest.class, + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest.Builder.class); + } + + private int sourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SOURCE_IDENTIFIER(2), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: + return SOURCE_IDENTIFIER; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + private int targetCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object target_; + + public enum TargetCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TARGET_IDENTIFIER(3), + TARGET_NOT_SET(0); + private final int value; + + private TargetCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TargetCase valueOf(int value) { + return forNumber(value); + } + + public static TargetCase forNumber(int value) { + switch (value) { + case 3: + return TARGET_IDENTIFIER; + case 0: + return TARGET_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); + } + + public static final int SOURCE_IDENTIFIER_FIELD_NUMBER = 2; + + /** + * + * + *
            +   * The identifier of the source Agent.
            +   * Format:
            +   *
            +   * * `urn:agent:{publisher}:{namespace}:{name}`
            +   * 
            + * + * string source_identifier = 2; + * + * @return Whether the sourceIdentifier field is set. + */ + public boolean hasSourceIdentifier() { + return sourceCase_ == 2; + } + + /** + * + * + *
            +   * The identifier of the source Agent.
            +   * Format:
            +   *
            +   * * `urn:agent:{publisher}:{namespace}:{name}`
            +   * 
            + * + * string source_identifier = 2; + * + * @return The sourceIdentifier. + */ + public java.lang.String getSourceIdentifier() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof java.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 (sourceCase_ == 2) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
            +   * The identifier of the source Agent.
            +   * Format:
            +   *
            +   * * `urn:agent:{publisher}:{namespace}:{name}`
            +   * 
            + * + * string source_identifier = 2; + * + * @return The bytes for sourceIdentifier. + */ + public com.google.protobuf.ByteString getSourceIdentifierBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 2) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_IDENTIFIER_FIELD_NUMBER = 3; + + /** + * + * + *
            +   * Optional. The identifier of the target Agent, MCP Server, or Endpoint.
            +   * Format:
            +   *
            +   * * `urn:agent:{publisher}:{namespace}:{name}`
            +   * * `urn:mcp:{publisher}:{namespace}:{name}`
            +   * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +   * 
            + * + * string target_identifier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the targetIdentifier field is set. + */ + public boolean hasTargetIdentifier() { + return targetCase_ == 3; + } + + /** + * + * + *
            +   * Optional. The identifier of the target Agent, MCP Server, or Endpoint.
            +   * Format:
            +   *
            +   * * `urn:agent:{publisher}:{namespace}:{name}`
            +   * * `urn:mcp:{publisher}:{namespace}:{name}`
            +   * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +   * 
            + * + * string target_identifier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The targetIdentifier. + */ + public java.lang.String getTargetIdentifier() { + java.lang.Object ref = ""; + if (targetCase_ == 3) { + 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(); + if (targetCase_ == 3) { + target_ = s; + } + return s; + } + } + + /** + * + * + *
            +   * Optional. The identifier of the target Agent, MCP Server, or Endpoint.
            +   * Format:
            +   *
            +   * * `urn:agent:{publisher}:{namespace}:{name}`
            +   * * `urn:mcp:{publisher}:{namespace}:{name}`
            +   * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +   * 
            + * + * string target_identifier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for targetIdentifier. + */ + public com.google.protobuf.ByteString getTargetIdentifierBytes() { + java.lang.Object ref = ""; + if (targetCase_ == 3) { + ref = target_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetCase_ == 3) { + target_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent, in the format
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent, in the format
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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 = 4; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. Requested page size. Server may return fewer items than
            +   * requested. Page size is 500 if unspecified and is capped at `500` even if a
            +   * larger value is given.
            +   * 
            + * + * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. A token identifying a page of results the server should return.
            +   * 
            + * + * string page_token = 5 [(.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 token identifying a page of results the server should return.
            +   * 
            + * + * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (sourceCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, source_); + } + if (targetCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, target_); + } + if (pageSize_ != 0) { + output.writeInt32(4, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (sourceCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, source_); + } + if (targetCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, target_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, 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.agentregistry.v1.FetchAvailableBindingsRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest other = + (com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getSourceIdentifier().equals(other.getSourceIdentifier())) return false; + break; + case 0: + default: + } + if (!getTargetCase().equals(other.getTargetCase())) return false; + switch (targetCase_) { + case 3: + if (!getTargetIdentifier().equals(other.getTargetIdentifier())) 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) + 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(); + switch (sourceCase_) { + case 2: + hash = (37 * hash) + SOURCE_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getSourceIdentifier().hashCode(); + break; + case 0: + default: + } + switch (targetCase_) { + case 3: + hash = (37 * hash) + TARGET_IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getTargetIdentifier().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest 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.agentregistry.v1.FetchAvailableBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest parseFrom( + 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.agentregistry.v1.FetchAvailableBindingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for fetching available Bindings.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.FetchAvailableBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.FetchAvailableBindingsRequest) + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest.class, + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + sourceCase_ = 0; + source_ = null; + targetCase_ = 0; + target_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest build() { + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest buildPartial() { + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest result = + new com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.pageToken_ = pageToken_; + } + } + + private void buildPartialOneofs( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + result.targetCase_ = targetCase_; + result.target_ = this.target_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest other) { + if (other + == com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000010; + onChanged(); + } + switch (other.getSourceCase()) { + case SOURCE_IDENTIFIER: + { + sourceCase_ = 2; + source_ = other.source_; + onChanged(); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + switch (other.getTargetCase()) { + case TARGET_IDENTIFIER: + { + targetCase_ = 3; + target_ = other.target_; + onChanged(); + break; + } + case TARGET_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 2; + source_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + targetCase_ = 3; + target_ = s; + break; + } // case 26 + case 32: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + pageToken_ = 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 sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int targetCase_ = 0; + private java.lang.Object target_; + + public TargetCase getTargetCase() { + return TargetCase.forNumber(targetCase_); + } + + public Builder clearTarget() { + targetCase_ = 0; + target_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
            +     * The identifier of the source Agent.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string source_identifier = 2; + * + * @return Whether the sourceIdentifier field is set. + */ + @java.lang.Override + public boolean hasSourceIdentifier() { + return sourceCase_ == 2; + } + + /** + * + * + *
            +     * The identifier of the source Agent.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string source_identifier = 2; + * + * @return The sourceIdentifier. + */ + @java.lang.Override + public java.lang.String getSourceIdentifier() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 2) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * The identifier of the source Agent.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string source_identifier = 2; + * + * @return The bytes for sourceIdentifier. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceIdentifierBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 2) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 2) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * The identifier of the source Agent.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string source_identifier = 2; + * + * @param value The sourceIdentifier to set. + * @return This builder for chaining. + */ + public Builder setSourceIdentifier(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 2; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The identifier of the source Agent.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string source_identifier = 2; + * + * @return This builder for chaining. + */ + public Builder clearSourceIdentifier() { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * The identifier of the source Agent.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string source_identifier = 2; + * + * @param value The bytes for sourceIdentifier to set. + * @return This builder for chaining. + */ + public Builder setSourceIdentifierBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 2; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The identifier of the target Agent, MCP Server, or Endpoint.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * * `urn:mcp:{publisher}:{namespace}:{name}`
            +     * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string target_identifier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the targetIdentifier field is set. + */ + @java.lang.Override + public boolean hasTargetIdentifier() { + return targetCase_ == 3; + } + + /** + * + * + *
            +     * Optional. The identifier of the target Agent, MCP Server, or Endpoint.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * * `urn:mcp:{publisher}:{namespace}:{name}`
            +     * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string target_identifier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The targetIdentifier. + */ + @java.lang.Override + public java.lang.String getTargetIdentifier() { + java.lang.Object ref = ""; + if (targetCase_ == 3) { + ref = target_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetCase_ == 3) { + target_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The identifier of the target Agent, MCP Server, or Endpoint.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * * `urn:mcp:{publisher}:{namespace}:{name}`
            +     * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string target_identifier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for targetIdentifier. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetIdentifierBytes() { + java.lang.Object ref = ""; + if (targetCase_ == 3) { + ref = target_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetCase_ == 3) { + target_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The identifier of the target Agent, MCP Server, or Endpoint.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * * `urn:mcp:{publisher}:{namespace}:{name}`
            +     * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string target_identifier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The targetIdentifier to set. + * @return This builder for chaining. + */ + public Builder setTargetIdentifier(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetCase_ = 3; + target_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The identifier of the target Agent, MCP Server, or Endpoint.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * * `urn:mcp:{publisher}:{namespace}:{name}`
            +     * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string target_identifier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTargetIdentifier() { + if (targetCase_ == 3) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The identifier of the target Agent, MCP Server, or Endpoint.
            +     * Format:
            +     *
            +     * * `urn:agent:{publisher}:{namespace}:{name}`
            +     * * `urn:mcp:{publisher}:{namespace}:{name}`
            +     * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +     * 
            + * + * string target_identifier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for targetIdentifier to set. + * @return This builder for chaining. + */ + public Builder setTargetIdentifierBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetCase_ = 3; + target_ = value; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The parent, in the format
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent, in the format
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent, in the format
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent, in the format
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent, in the format
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. Requested page size. Server may return fewer items than
            +     * requested. Page size is 500 if unspecified and is capped at `500` even if a
            +     * larger value is given.
            +     * 
            + * + * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. Requested page size. Server may return fewer items than
            +     * requested. Page size is 500 if unspecified and is capped at `500` even if a
            +     * larger value is given.
            +     * 
            + * + * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Requested page size. Server may return fewer items than
            +     * requested. Page size is 500 if unspecified and is capped at `500` even if a
            +     * larger value is given.
            +     * 
            + * + * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000008); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. A token identifying a page of results the server should return.
            +     * 
            + * + * string page_token = 5 [(.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 token identifying a page of results the server should return.
            +     * 
            + * + * string page_token = 5 [(.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 token identifying a page of results the server should return.
            +     * 
            + * + * string page_token = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A token identifying a page of results the server should return.
            +     * 
            + * + * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A token identifying a page of results the server should return.
            +     * 
            + * + * string page_token = 5 [(.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_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.FetchAvailableBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.FetchAvailableBindingsRequest) + private static final com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest(); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchAvailableBindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.FetchAvailableBindingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FetchAvailableBindingsRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FetchAvailableBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..1da6a0553ec4 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FetchAvailableBindingsRequestOrBuilder.java @@ -0,0 +1,207 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface FetchAvailableBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.FetchAvailableBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The identifier of the source Agent.
            +   * Format:
            +   *
            +   * * `urn:agent:{publisher}:{namespace}:{name}`
            +   * 
            + * + * string source_identifier = 2; + * + * @return Whether the sourceIdentifier field is set. + */ + boolean hasSourceIdentifier(); + + /** + * + * + *
            +   * The identifier of the source Agent.
            +   * Format:
            +   *
            +   * * `urn:agent:{publisher}:{namespace}:{name}`
            +   * 
            + * + * string source_identifier = 2; + * + * @return The sourceIdentifier. + */ + java.lang.String getSourceIdentifier(); + + /** + * + * + *
            +   * The identifier of the source Agent.
            +   * Format:
            +   *
            +   * * `urn:agent:{publisher}:{namespace}:{name}`
            +   * 
            + * + * string source_identifier = 2; + * + * @return The bytes for sourceIdentifier. + */ + com.google.protobuf.ByteString getSourceIdentifierBytes(); + + /** + * + * + *
            +   * Optional. The identifier of the target Agent, MCP Server, or Endpoint.
            +   * Format:
            +   *
            +   * * `urn:agent:{publisher}:{namespace}:{name}`
            +   * * `urn:mcp:{publisher}:{namespace}:{name}`
            +   * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +   * 
            + * + * string target_identifier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the targetIdentifier field is set. + */ + boolean hasTargetIdentifier(); + + /** + * + * + *
            +   * Optional. The identifier of the target Agent, MCP Server, or Endpoint.
            +   * Format:
            +   *
            +   * * `urn:agent:{publisher}:{namespace}:{name}`
            +   * * `urn:mcp:{publisher}:{namespace}:{name}`
            +   * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +   * 
            + * + * string target_identifier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The targetIdentifier. + */ + java.lang.String getTargetIdentifier(); + + /** + * + * + *
            +   * Optional. The identifier of the target Agent, MCP Server, or Endpoint.
            +   * Format:
            +   *
            +   * * `urn:agent:{publisher}:{namespace}:{name}`
            +   * * `urn:mcp:{publisher}:{namespace}:{name}`
            +   * * `urn:endpoint:{publisher}:{namespace}:{name}`
            +   * 
            + * + * string target_identifier = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for targetIdentifier. + */ + com.google.protobuf.ByteString getTargetIdentifierBytes(); + + /** + * + * + *
            +   * Required. The parent, in the format
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent, in the format
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. Requested page size. Server may return fewer items than
            +   * requested. Page size is 500 if unspecified and is capped at `500` even if a
            +   * larger value is given.
            +   * 
            + * + * int32 page_size = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. A token identifying a page of results the server should return.
            +   * 
            + * + * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. A token identifying a page of results the server should return.
            +   * 
            + * + * string page_token = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest.SourceCase getSourceCase(); + + com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest.TargetCase getTargetCase(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FetchAvailableBindingsResponse.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FetchAvailableBindingsResponse.java new file mode 100644 index 000000000000..3f9c8aa6eee1 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FetchAvailableBindingsResponse.java @@ -0,0 +1,1119 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for response to fetching available Bindings.
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.FetchAvailableBindingsResponse} + */ +@com.google.protobuf.Generated +public final class FetchAvailableBindingsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.FetchAvailableBindingsResponse) + FetchAvailableBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FetchAvailableBindingsResponse"); + } + + // Use FetchAvailableBindingsResponse.newBuilder() to construct. + private FetchAvailableBindingsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FetchAvailableBindingsResponse() { + bindings_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse.class, + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse.Builder.class); + } + + public static final int BINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List bindings_; + + /** + * + * + *
            +   * The list of Bindings.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + @java.lang.Override + public java.util.List getBindingsList() { + return bindings_; + } + + /** + * + * + *
            +   * The list of Bindings.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + @java.lang.Override + public java.util.List + getBindingsOrBuilderList() { + return bindings_; + } + + /** + * + * + *
            +   * The list of Bindings.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + @java.lang.Override + public int getBindingsCount() { + return bindings_.size(); + } + + /** + * + * + *
            +   * The list of Bindings.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding getBindings(int index) { + return bindings_.get(index); + } + + /** + * + * + *
            +   * The list of Bindings.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.BindingOrBuilder getBindingsOrBuilder(int index) { + return bindings_.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 < bindings_.size(); i++) { + output.writeMessage(1, bindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < bindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, bindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.agentregistry.v1.FetchAvailableBindingsResponse)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse other = + (com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse) obj; + + if (!getBindingsList().equals(other.getBindingsList())) 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 (getBindingsCount() > 0) { + hash = (37 * hash) + BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getBindingsList().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.agentregistry.v1.FetchAvailableBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse 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.agentregistry.v1.FetchAvailableBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse parseFrom( + 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.agentregistry.v1.FetchAvailableBindingsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for response to fetching available Bindings.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.FetchAvailableBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.FetchAvailableBindingsResponse) + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse.class, + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (bindingsBuilder_ == null) { + bindings_ = java.util.Collections.emptyList(); + } else { + bindings_ = null; + bindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_FetchAvailableBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse build() { + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse buildPartial() { + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse result = + new com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse result) { + if (bindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + bindings_ = java.util.Collections.unmodifiableList(bindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.bindings_ = bindings_; + } else { + result.bindings_ = bindingsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse) { + return mergeFrom((com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse other) { + if (other + == com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse.getDefaultInstance()) + return this; + if (bindingsBuilder_ == null) { + if (!other.bindings_.isEmpty()) { + if (bindings_.isEmpty()) { + bindings_ = other.bindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBindingsIsMutable(); + bindings_.addAll(other.bindings_); + } + onChanged(); + } + } else { + if (!other.bindings_.isEmpty()) { + if (bindingsBuilder_.isEmpty()) { + bindingsBuilder_.dispose(); + bindingsBuilder_ = null; + bindings_ = other.bindings_; + bitField0_ = (bitField0_ & ~0x00000001); + bindingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBindingsFieldBuilder() + : null; + } else { + bindingsBuilder_.addAllMessages(other.bindings_); + } + } + } + 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.agentregistry.v1.Binding m = + input.readMessage( + com.google.cloud.agentregistry.v1.Binding.parser(), extensionRegistry); + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.add(m); + } else { + bindingsBuilder_.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 bindings_ = + java.util.Collections.emptyList(); + + private void ensureBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + bindings_ = new java.util.ArrayList(bindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Binding, + com.google.cloud.agentregistry.v1.Binding.Builder, + com.google.cloud.agentregistry.v1.BindingOrBuilder> + bindingsBuilder_; + + /** + * + * + *
            +     * The list of Bindings.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public java.util.List getBindingsList() { + if (bindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(bindings_); + } else { + return bindingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * The list of Bindings.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public int getBindingsCount() { + if (bindingsBuilder_ == null) { + return bindings_.size(); + } else { + return bindingsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * The list of Bindings.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public com.google.cloud.agentregistry.v1.Binding getBindings(int index) { + if (bindingsBuilder_ == null) { + return bindings_.get(index); + } else { + return bindingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * The list of Bindings.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public Builder setBindings(int index, com.google.cloud.agentregistry.v1.Binding value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.set(index, value); + onChanged(); + } else { + bindingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of Bindings.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public Builder setBindings( + int index, com.google.cloud.agentregistry.v1.Binding.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.set(index, builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Bindings.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public Builder addBindings(com.google.cloud.agentregistry.v1.Binding value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.add(value); + onChanged(); + } else { + bindingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * The list of Bindings.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public Builder addBindings(int index, com.google.cloud.agentregistry.v1.Binding value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.add(index, value); + onChanged(); + } else { + bindingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of Bindings.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public Builder addBindings(com.google.cloud.agentregistry.v1.Binding.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.add(builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Bindings.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public Builder addBindings( + int index, com.google.cloud.agentregistry.v1.Binding.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.add(index, builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Bindings.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public Builder addAllBindings( + java.lang.Iterable values) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bindings_); + onChanged(); + } else { + bindingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * The list of Bindings.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public Builder clearBindings() { + if (bindingsBuilder_ == null) { + bindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + bindingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The list of Bindings.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public Builder removeBindings(int index) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.remove(index); + onChanged(); + } else { + bindingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * The list of Bindings.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public com.google.cloud.agentregistry.v1.Binding.Builder getBindingsBuilder(int index) { + return internalGetBindingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * The list of Bindings.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public com.google.cloud.agentregistry.v1.BindingOrBuilder getBindingsOrBuilder(int index) { + if (bindingsBuilder_ == null) { + return bindings_.get(index); + } else { + return bindingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * The list of Bindings.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public java.util.List + getBindingsOrBuilderList() { + if (bindingsBuilder_ != null) { + return bindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bindings_); + } + } + + /** + * + * + *
            +     * The list of Bindings.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public com.google.cloud.agentregistry.v1.Binding.Builder addBindingsBuilder() { + return internalGetBindingsFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.Binding.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of Bindings.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public com.google.cloud.agentregistry.v1.Binding.Builder addBindingsBuilder(int index) { + return internalGetBindingsFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.Binding.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of Bindings.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public java.util.List + getBindingsBuilderList() { + return internalGetBindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Binding, + com.google.cloud.agentregistry.v1.Binding.Builder, + com.google.cloud.agentregistry.v1.BindingOrBuilder> + internalGetBindingsFieldBuilder() { + if (bindingsBuilder_ == null) { + bindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Binding, + com.google.cloud.agentregistry.v1.Binding.Builder, + com.google.cloud.agentregistry.v1.BindingOrBuilder>( + bindings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + bindings_ = null; + } + return bindingsBuilder_; + } + + 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.FetchAvailableBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.FetchAvailableBindingsResponse) + private static final com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse(); + } + + public static com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchAvailableBindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.FetchAvailableBindingsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FetchAvailableBindingsResponseOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FetchAvailableBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..228be9d669f0 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/FetchAvailableBindingsResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface FetchAvailableBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.FetchAvailableBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The list of Bindings.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + java.util.List getBindingsList(); + + /** + * + * + *
            +   * The list of Bindings.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + com.google.cloud.agentregistry.v1.Binding getBindings(int index); + + /** + * + * + *
            +   * The list of Bindings.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + int getBindingsCount(); + + /** + * + * + *
            +   * The list of Bindings.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + java.util.List + getBindingsOrBuilderList(); + + /** + * + * + *
            +   * The list of Bindings.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + com.google.cloud.agentregistry.v1.BindingOrBuilder getBindingsOrBuilder(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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAgentRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAgentRequest.java new file mode 100644 index 000000000000..33ba85eb960a --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAgentRequest.java @@ -0,0 +1,610 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for getting a Agent
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.GetAgentRequest} + */ +@com.google.protobuf.Generated +public final class GetAgentRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.GetAgentRequest) + GetAgentRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetAgentRequest"); + } + + // Use GetAgentRequest.newBuilder() to construct. + private GetAgentRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAgentRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAgentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAgentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetAgentRequest.class, + com.google.cloud.agentregistry.v1.GetAgentRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. Name of the resource
            +   * 
            + * + * + * 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 resource
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.agentregistry.v1.GetAgentRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.GetAgentRequest other = + (com.google.cloud.agentregistry.v1.GetAgentRequest) 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.agentregistry.v1.GetAgentRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetAgentRequest 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.agentregistry.v1.GetAgentRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetAgentRequest parseFrom( + 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.agentregistry.v1.GetAgentRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetAgentRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetAgentRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetAgentRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetAgentRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetAgentRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetAgentRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetAgentRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.agentregistry.v1.GetAgentRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for getting a Agent
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.GetAgentRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.GetAgentRequest) + com.google.cloud.agentregistry.v1.GetAgentRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAgentRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAgentRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetAgentRequest.class, + com.google.cloud.agentregistry.v1.GetAgentRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.GetAgentRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetAgentRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetAgentRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.GetAgentRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetAgentRequest build() { + com.google.cloud.agentregistry.v1.GetAgentRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetAgentRequest buildPartial() { + com.google.cloud.agentregistry.v1.GetAgentRequest result = + new com.google.cloud.agentregistry.v1.GetAgentRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.GetAgentRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.GetAgentRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.GetAgentRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.GetAgentRequest other) { + if (other == com.google.cloud.agentregistry.v1.GetAgentRequest.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 resource
            +     * 
            + * + * + * 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 resource
            +     * 
            + * + * + * 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 resource
            +     * 
            + * + * + * 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 resource
            +     * 
            + * + * + * 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 resource
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.GetAgentRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.GetAgentRequest) + private static final com.google.cloud.agentregistry.v1.GetAgentRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.GetAgentRequest(); + } + + public static com.google.cloud.agentregistry.v1.GetAgentRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAgentRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.GetAgentRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAgentRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAgentRequestOrBuilder.java new file mode 100644 index 000000000000..5e489e2735cd --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetAgentRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface GetAgentRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.GetAgentRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Name of the resource
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. Name of the resource
            +   * 
            + * + * + * 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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetBindingRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetBindingRequest.java new file mode 100644 index 000000000000..b64742009a91 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetBindingRequest.java @@ -0,0 +1,617 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for getting a Binding
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.GetBindingRequest} + */ +@com.google.protobuf.Generated +public final class GetBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.GetBindingRequest) + GetBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetBindingRequest"); + } + + // Use GetBindingRequest.newBuilder() to construct. + private GetBindingRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetBindingRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetBindingRequest.class, + com.google.cloud.agentregistry.v1.GetBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The name of the Binding.
            +   * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * + * 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 Binding.
            +   * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.agentregistry.v1.GetBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.GetBindingRequest other = + (com.google.cloud.agentregistry.v1.GetBindingRequest) 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.agentregistry.v1.GetBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetBindingRequest 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.agentregistry.v1.GetBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetBindingRequest parseFrom( + 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.agentregistry.v1.GetBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.agentregistry.v1.GetBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for getting a Binding
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.GetBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.GetBindingRequest) + com.google.cloud.agentregistry.v1.GetBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetBindingRequest.class, + com.google.cloud.agentregistry.v1.GetBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.GetBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetBindingRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.GetBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetBindingRequest build() { + com.google.cloud.agentregistry.v1.GetBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetBindingRequest buildPartial() { + com.google.cloud.agentregistry.v1.GetBindingRequest result = + new com.google.cloud.agentregistry.v1.GetBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.GetBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.GetBindingRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.GetBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.GetBindingRequest other) { + if (other == com.google.cloud.agentregistry.v1.GetBindingRequest.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 Binding.
            +     * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * + * 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 Binding.
            +     * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * + * 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 Binding.
            +     * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * + * 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 Binding.
            +     * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * + * 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 Binding.
            +     * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.GetBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.GetBindingRequest) + private static final com.google.cloud.agentregistry.v1.GetBindingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.GetBindingRequest(); + } + + public static com.google.cloud.agentregistry.v1.GetBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.GetBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetBindingRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetBindingRequestOrBuilder.java new file mode 100644 index 000000000000..3e01e8d35f23 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetBindingRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface GetBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.GetBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The name of the Binding.
            +   * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The name of the Binding.
            +   * Format: `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * + * 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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetEndpointRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetEndpointRequest.java new file mode 100644 index 000000000000..567a87c035a5 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetEndpointRequest.java @@ -0,0 +1,617 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for getting a Endpoint
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.GetEndpointRequest} + */ +@com.google.protobuf.Generated +public final class GetEndpointRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.GetEndpointRequest) + GetEndpointRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetEndpointRequest"); + } + + // Use GetEndpointRequest.newBuilder() to construct. + private GetEndpointRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetEndpointRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetEndpointRequest.class, + com.google.cloud.agentregistry.v1.GetEndpointRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The name of the endpoint to retrieve.
            +   * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
            +   * 
            + * + * + * 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 endpoint to retrieve.
            +   * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.agentregistry.v1.GetEndpointRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.GetEndpointRequest other = + (com.google.cloud.agentregistry.v1.GetEndpointRequest) 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.agentregistry.v1.GetEndpointRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetEndpointRequest 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.agentregistry.v1.GetEndpointRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetEndpointRequest parseFrom( + 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.agentregistry.v1.GetEndpointRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetEndpointRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetEndpointRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetEndpointRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetEndpointRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetEndpointRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetEndpointRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetEndpointRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.agentregistry.v1.GetEndpointRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for getting a Endpoint
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.GetEndpointRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.GetEndpointRequest) + com.google.cloud.agentregistry.v1.GetEndpointRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetEndpointRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetEndpointRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetEndpointRequest.class, + com.google.cloud.agentregistry.v1.GetEndpointRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.GetEndpointRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetEndpointRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetEndpointRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.GetEndpointRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetEndpointRequest build() { + com.google.cloud.agentregistry.v1.GetEndpointRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetEndpointRequest buildPartial() { + com.google.cloud.agentregistry.v1.GetEndpointRequest result = + new com.google.cloud.agentregistry.v1.GetEndpointRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.GetEndpointRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.GetEndpointRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.GetEndpointRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.GetEndpointRequest other) { + if (other == com.google.cloud.agentregistry.v1.GetEndpointRequest.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 endpoint to retrieve.
            +     * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
            +     * 
            + * + * + * 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 endpoint to retrieve.
            +     * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
            +     * 
            + * + * + * 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 endpoint to retrieve.
            +     * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
            +     * 
            + * + * + * 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 endpoint to retrieve.
            +     * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
            +     * 
            + * + * + * 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 endpoint to retrieve.
            +     * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.GetEndpointRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.GetEndpointRequest) + private static final com.google.cloud.agentregistry.v1.GetEndpointRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.GetEndpointRequest(); + } + + public static com.google.cloud.agentregistry.v1.GetEndpointRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEndpointRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.GetEndpointRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetEndpointRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetEndpointRequestOrBuilder.java new file mode 100644 index 000000000000..4df347449e0c --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetEndpointRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface GetEndpointRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.GetEndpointRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The name of the endpoint to retrieve.
            +   * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The name of the endpoint to retrieve.
            +   * Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`
            +   * 
            + * + * + * 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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetMcpServerRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetMcpServerRequest.java new file mode 100644 index 000000000000..c3ee405b4bdd --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetMcpServerRequest.java @@ -0,0 +1,611 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for getting a McpServer
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.GetMcpServerRequest} + */ +@com.google.protobuf.Generated +public final class GetMcpServerRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.GetMcpServerRequest) + GetMcpServerRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetMcpServerRequest"); + } + + // Use GetMcpServerRequest.newBuilder() to construct. + private GetMcpServerRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetMcpServerRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetMcpServerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetMcpServerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetMcpServerRequest.class, + com.google.cloud.agentregistry.v1.GetMcpServerRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. Name of the resource
            +   * 
            + * + * + * 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 resource
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.agentregistry.v1.GetMcpServerRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.GetMcpServerRequest other = + (com.google.cloud.agentregistry.v1.GetMcpServerRequest) 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.agentregistry.v1.GetMcpServerRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetMcpServerRequest 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.agentregistry.v1.GetMcpServerRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetMcpServerRequest parseFrom( + 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.agentregistry.v1.GetMcpServerRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetMcpServerRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetMcpServerRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetMcpServerRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetMcpServerRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetMcpServerRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetMcpServerRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetMcpServerRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.GetMcpServerRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for getting a McpServer
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.GetMcpServerRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.GetMcpServerRequest) + com.google.cloud.agentregistry.v1.GetMcpServerRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetMcpServerRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetMcpServerRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetMcpServerRequest.class, + com.google.cloud.agentregistry.v1.GetMcpServerRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.GetMcpServerRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetMcpServerRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetMcpServerRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.GetMcpServerRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetMcpServerRequest build() { + com.google.cloud.agentregistry.v1.GetMcpServerRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetMcpServerRequest buildPartial() { + com.google.cloud.agentregistry.v1.GetMcpServerRequest result = + new com.google.cloud.agentregistry.v1.GetMcpServerRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.GetMcpServerRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.GetMcpServerRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.GetMcpServerRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.GetMcpServerRequest other) { + if (other == com.google.cloud.agentregistry.v1.GetMcpServerRequest.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 resource
            +     * 
            + * + * + * 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 resource
            +     * 
            + * + * + * 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 resource
            +     * 
            + * + * + * 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 resource
            +     * 
            + * + * + * 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 resource
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.GetMcpServerRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.GetMcpServerRequest) + private static final com.google.cloud.agentregistry.v1.GetMcpServerRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.GetMcpServerRequest(); + } + + public static com.google.cloud.agentregistry.v1.GetMcpServerRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMcpServerRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.GetMcpServerRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetMcpServerRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetMcpServerRequestOrBuilder.java new file mode 100644 index 000000000000..962313f08bef --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetMcpServerRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface GetMcpServerRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.GetMcpServerRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Name of the resource
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. Name of the resource
            +   * 
            + * + * + * 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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetServiceRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetServiceRequest.java new file mode 100644 index 000000000000..725066fa19cf --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetServiceRequest.java @@ -0,0 +1,617 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for getting a Service
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.GetServiceRequest} + */ +@com.google.protobuf.Generated +public final class GetServiceRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.GetServiceRequest) + GetServiceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetServiceRequest"); + } + + // Use GetServiceRequest.newBuilder() to construct. + private GetServiceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetServiceRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetServiceRequest.class, + com.google.cloud.agentregistry.v1.GetServiceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The name of the Service.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * 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 Service.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.agentregistry.v1.GetServiceRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.GetServiceRequest other = + (com.google.cloud.agentregistry.v1.GetServiceRequest) 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.agentregistry.v1.GetServiceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetServiceRequest 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.agentregistry.v1.GetServiceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetServiceRequest parseFrom( + 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.agentregistry.v1.GetServiceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.GetServiceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetServiceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetServiceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetServiceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetServiceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.GetServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.GetServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.agentregistry.v1.GetServiceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for getting a Service
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.GetServiceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.GetServiceRequest) + com.google.cloud.agentregistry.v1.GetServiceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.GetServiceRequest.class, + com.google.cloud.agentregistry.v1.GetServiceRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.GetServiceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_GetServiceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetServiceRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.GetServiceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetServiceRequest build() { + com.google.cloud.agentregistry.v1.GetServiceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.GetServiceRequest buildPartial() { + com.google.cloud.agentregistry.v1.GetServiceRequest result = + new com.google.cloud.agentregistry.v1.GetServiceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.GetServiceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.GetServiceRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.GetServiceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.GetServiceRequest other) { + if (other == com.google.cloud.agentregistry.v1.GetServiceRequest.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 Service.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * 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 Service.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * 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 Service.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * 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 Service.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * 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 Service.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.GetServiceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.GetServiceRequest) + private static final com.google.cloud.agentregistry.v1.GetServiceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.GetServiceRequest(); + } + + public static com.google.cloud.agentregistry.v1.GetServiceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.GetServiceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetServiceRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetServiceRequestOrBuilder.java new file mode 100644 index 000000000000..5ba13fc8d0b1 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/GetServiceRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface GetServiceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.GetServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The name of the Service.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The name of the Service.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * 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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Interface.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Interface.java new file mode 100644 index 000000000000..db956e5b36e4 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Interface.java @@ -0,0 +1,967 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/properties.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Represents the connection details for an Agent or MCP Server.
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Interface} + */ +@com.google.protobuf.Generated +public final class Interface extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.Interface) + InterfaceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Interface"); + } + + // Use Interface.newBuilder() to construct. + private Interface(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Interface() { + url_ = ""; + protocolBinding_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.PropertiesProto + .internal_static_google_cloud_agentregistry_v1_Interface_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.PropertiesProto + .internal_static_google_cloud_agentregistry_v1_Interface_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Interface.class, + com.google.cloud.agentregistry.v1.Interface.Builder.class); + } + + /** + * + * + *
            +   * The protocol binding of the interface.
            +   * 
            + * + * Protobuf enum {@code google.cloud.agentregistry.v1.Interface.ProtocolBinding} + */ + public enum ProtocolBinding implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Unspecified transport protocol.
            +     * 
            + * + * PROTOCOL_BINDING_UNSPECIFIED = 0; + */ + PROTOCOL_BINDING_UNSPECIFIED(0), + /** + * + * + *
            +     * JSON-RPC specification.
            +     * 
            + * + * JSONRPC = 1; + */ + JSONRPC(1), + /** + * + * + *
            +     * gRPC specification.
            +     * 
            + * + * GRPC = 2; + */ + GRPC(2), + /** + * + * + *
            +     * HTTP+JSON specification.
            +     * 
            + * + * HTTP_JSON = 3; + */ + HTTP_JSON(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ProtocolBinding"); + } + + /** + * + * + *
            +     * Unspecified transport protocol.
            +     * 
            + * + * PROTOCOL_BINDING_UNSPECIFIED = 0; + */ + public static final int PROTOCOL_BINDING_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * JSON-RPC specification.
            +     * 
            + * + * JSONRPC = 1; + */ + public static final int JSONRPC_VALUE = 1; + + /** + * + * + *
            +     * gRPC specification.
            +     * 
            + * + * GRPC = 2; + */ + public static final int GRPC_VALUE = 2; + + /** + * + * + *
            +     * HTTP+JSON specification.
            +     * 
            + * + * HTTP_JSON = 3; + */ + public static final int HTTP_JSON_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 ProtocolBinding 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 ProtocolBinding forNumber(int value) { + switch (value) { + case 0: + return PROTOCOL_BINDING_UNSPECIFIED; + case 1: + return JSONRPC; + case 2: + return GRPC; + case 3: + return HTTP_JSON; + 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 ProtocolBinding findValueByNumber(int number) { + return ProtocolBinding.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.Interface.getDescriptor().getEnumTypes().get(0); + } + + private static final ProtocolBinding[] VALUES = values(); + + public static ProtocolBinding 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 ProtocolBinding(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.agentregistry.v1.Interface.ProtocolBinding) + } + + public static final int URL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object url_ = ""; + + /** + * + * + *
            +   * Required. The destination URL.
            +   * 
            + * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The url. + */ + @java.lang.Override + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The destination URL.
            +   * 
            + * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for url. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROTOCOL_BINDING_FIELD_NUMBER = 2; + private int protocolBinding_ = 0; + + /** + * + * + *
            +   * Required. The protocol binding of the interface.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Interface.ProtocolBinding protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for protocolBinding. + */ + @java.lang.Override + public int getProtocolBindingValue() { + return protocolBinding_; + } + + /** + * + * + *
            +   * Required. The protocol binding of the interface.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Interface.ProtocolBinding protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The protocolBinding. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Interface.ProtocolBinding getProtocolBinding() { + com.google.cloud.agentregistry.v1.Interface.ProtocolBinding result = + com.google.cloud.agentregistry.v1.Interface.ProtocolBinding.forNumber(protocolBinding_); + return result == null + ? com.google.cloud.agentregistry.v1.Interface.ProtocolBinding.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, url_); + } + if (protocolBinding_ + != com.google.cloud.agentregistry.v1.Interface.ProtocolBinding.PROTOCOL_BINDING_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, protocolBinding_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, url_); + } + if (protocolBinding_ + != com.google.cloud.agentregistry.v1.Interface.ProtocolBinding.PROTOCOL_BINDING_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, protocolBinding_); + } + 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.agentregistry.v1.Interface)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.Interface other = + (com.google.cloud.agentregistry.v1.Interface) obj; + + if (!getUrl().equals(other.getUrl())) return false; + if (protocolBinding_ != other.protocolBinding_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + URL_FIELD_NUMBER; + hash = (53 * hash) + getUrl().hashCode(); + hash = (37 * hash) + PROTOCOL_BINDING_FIELD_NUMBER; + hash = (53 * hash) + protocolBinding_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.Interface parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Interface 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.agentregistry.v1.Interface parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Interface parseFrom( + 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.agentregistry.v1.Interface parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Interface parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Interface parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Interface parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Interface parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Interface parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Interface parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Interface parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.agentregistry.v1.Interface prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents the connection details for an Agent or MCP Server.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Interface} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.Interface) + com.google.cloud.agentregistry.v1.InterfaceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.PropertiesProto + .internal_static_google_cloud_agentregistry_v1_Interface_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.PropertiesProto + .internal_static_google_cloud_agentregistry_v1_Interface_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Interface.class, + com.google.cloud.agentregistry.v1.Interface.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.Interface.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + url_ = ""; + protocolBinding_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.PropertiesProto + .internal_static_google_cloud_agentregistry_v1_Interface_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Interface getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.Interface.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Interface build() { + com.google.cloud.agentregistry.v1.Interface result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Interface buildPartial() { + com.google.cloud.agentregistry.v1.Interface result = + new com.google.cloud.agentregistry.v1.Interface(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.Interface result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.url_ = url_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.protocolBinding_ = protocolBinding_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.Interface) { + return mergeFrom((com.google.cloud.agentregistry.v1.Interface) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.Interface other) { + if (other == com.google.cloud.agentregistry.v1.Interface.getDefaultInstance()) return this; + if (!other.getUrl().isEmpty()) { + url_ = other.url_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.protocolBinding_ != 0) { + setProtocolBindingValue(other.getProtocolBindingValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + url_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + protocolBinding_ = 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 url_ = ""; + + /** + * + * + *
            +     * Required. The destination URL.
            +     * 
            + * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The url. + */ + public java.lang.String getUrl() { + java.lang.Object ref = url_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + url_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The destination URL.
            +     * 
            + * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for url. + */ + public com.google.protobuf.ByteString getUrlBytes() { + java.lang.Object ref = url_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + url_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The destination URL.
            +     * 
            + * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The url to set. + * @return This builder for chaining. + */ + public Builder setUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + url_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The destination URL.
            +     * 
            + * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUrl() { + url_ = getDefaultInstance().getUrl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The destination URL.
            +     * 
            + * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for url to set. + * @return This builder for chaining. + */ + public Builder setUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + url_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int protocolBinding_ = 0; + + /** + * + * + *
            +     * Required. The protocol binding of the interface.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Interface.ProtocolBinding protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for protocolBinding. + */ + @java.lang.Override + public int getProtocolBindingValue() { + return protocolBinding_; + } + + /** + * + * + *
            +     * Required. The protocol binding of the interface.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Interface.ProtocolBinding protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for protocolBinding to set. + * @return This builder for chaining. + */ + public Builder setProtocolBindingValue(int value) { + protocolBinding_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The protocol binding of the interface.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Interface.ProtocolBinding protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The protocolBinding. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Interface.ProtocolBinding getProtocolBinding() { + com.google.cloud.agentregistry.v1.Interface.ProtocolBinding result = + com.google.cloud.agentregistry.v1.Interface.ProtocolBinding.forNumber(protocolBinding_); + return result == null + ? com.google.cloud.agentregistry.v1.Interface.ProtocolBinding.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Required. The protocol binding of the interface.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Interface.ProtocolBinding protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The protocolBinding to set. + * @return This builder for chaining. + */ + public Builder setProtocolBinding( + com.google.cloud.agentregistry.v1.Interface.ProtocolBinding value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + protocolBinding_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The protocol binding of the interface.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Interface.ProtocolBinding protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearProtocolBinding() { + bitField0_ = (bitField0_ & ~0x00000002); + protocolBinding_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.Interface) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.Interface) + private static final com.google.cloud.agentregistry.v1.Interface DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.Interface(); + } + + public static com.google.cloud.agentregistry.v1.Interface getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Interface parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.Interface getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/InterfaceOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/InterfaceOrBuilder.java new file mode 100644 index 000000000000..a7cf6ef4165b --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/InterfaceOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/properties.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface InterfaceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.Interface) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The destination URL.
            +   * 
            + * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The url. + */ + java.lang.String getUrl(); + + /** + * + * + *
            +   * Required. The destination URL.
            +   * 
            + * + * string url = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for url. + */ + com.google.protobuf.ByteString getUrlBytes(); + + /** + * + * + *
            +   * Required. The protocol binding of the interface.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Interface.ProtocolBinding protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for protocolBinding. + */ + int getProtocolBindingValue(); + + /** + * + * + *
            +   * Required. The protocol binding of the interface.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Interface.ProtocolBinding protocol_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The protocolBinding. + */ + com.google.cloud.agentregistry.v1.Interface.ProtocolBinding getProtocolBinding(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAgentsRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAgentsRequest.java new file mode 100644 index 000000000000..dbcc69063f86 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAgentsRequest.java @@ -0,0 +1,1278 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for requesting list of Agents
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAgentsRequest} + */ +@com.google.protobuf.Generated +public final class ListAgentsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListAgentsRequest) + ListAgentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAgentsRequest"); + } + + // Use ListAgentsRequest.newBuilder() to construct. + private ListAgentsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAgentsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAgentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAgentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAgentsRequest.class, + com.google.cloud.agentregistry.v1.ListAgentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. Parent value for ListAgentsRequest
            +   * 
            + * + * + * 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 ListAgentsRequest
            +   * 
            + * + * + * 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. Requested page size. Server may return fewer items than
            +   * requested. If unspecified, server will pick an appropriate default.
            +   * 
            + * + * 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 token identifying a page of results the server should return.
            +   * 
            + * + * 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 token identifying a page of results the server should return.
            +   * 
            + * + * 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
            +   * 
            + * + * 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
            +   * 
            + * + * 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. Hint for how to order the results
            +   * 
            + * + * 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. Hint for how to order the results
            +   * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.agentregistry.v1.ListAgentsRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListAgentsRequest other = + (com.google.cloud.agentregistry.v1.ListAgentsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.ListAgentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsRequest 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.agentregistry.v1.ListAgentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsRequest parseFrom( + 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.agentregistry.v1.ListAgentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.agentregistry.v1.ListAgentsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for requesting list of Agents
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAgentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListAgentsRequest) + com.google.cloud.agentregistry.v1.ListAgentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAgentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAgentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAgentsRequest.class, + com.google.cloud.agentregistry.v1.ListAgentsRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListAgentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAgentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAgentsRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListAgentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAgentsRequest build() { + com.google.cloud.agentregistry.v1.ListAgentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAgentsRequest buildPartial() { + com.google.cloud.agentregistry.v1.ListAgentsRequest result = + new com.google.cloud.agentregistry.v1.ListAgentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ListAgentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.ListAgentsRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListAgentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListAgentsRequest other) { + if (other == com.google.cloud.agentregistry.v1.ListAgentsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. Parent value for ListAgentsRequest
            +     * 
            + * + * + * 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 ListAgentsRequest
            +     * 
            + * + * + * 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 ListAgentsRequest
            +     * 
            + * + * + * 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 ListAgentsRequest
            +     * 
            + * + * + * 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 ListAgentsRequest
            +     * 
            + * + * + * 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. Requested page size. Server may return fewer items than
            +     * requested. If unspecified, server will pick an appropriate default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. Requested page size. Server may return fewer items than
            +     * requested. If unspecified, server will pick an appropriate default.
            +     * 
            + * + * 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. Requested page size. Server may return fewer items than
            +     * requested. If unspecified, server will pick an appropriate default.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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
            +     * 
            + * + * 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
            +     * 
            + * + * 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
            +     * 
            + * + * 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
            +     * 
            + * + * 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
            +     * 
            + * + * 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. Hint for how to order the results
            +     * 
            + * + * 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. Hint for how to order the results
            +     * 
            + * + * 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. Hint for how to order the results
            +     * 
            + * + * 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. Hint for how to order the results
            +     * 
            + * + * 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. Hint for how to order the results
            +     * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.ListAgentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListAgentsRequest) + private static final com.google.cloud.agentregistry.v1.ListAgentsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListAgentsRequest(); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAgentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.ListAgentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAgentsRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAgentsRequestOrBuilder.java new file mode 100644 index 000000000000..dab569c6848c --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAgentsRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListAgentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListAgentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Parent value for ListAgentsRequest
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. Parent value for ListAgentsRequest
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. Requested page size. Server may return fewer items than
            +   * requested. If unspecified, server will pick an appropriate default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. A token identifying a page of results the server should return.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. A token identifying a page of results the server should return.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. Filtering results
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Optional. Filtering results
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
            +   * Optional. Hint for how to order the results
            +   * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
            +   * Optional. Hint for how to order the results
            +   * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAgentsResponse.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAgentsResponse.java new file mode 100644 index 000000000000..7aaa52d073f0 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAgentsResponse.java @@ -0,0 +1,1110 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for response to listing Agents
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAgentsResponse} + */ +@com.google.protobuf.Generated +public final class ListAgentsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListAgentsResponse) + ListAgentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAgentsResponse"); + } + + // Use ListAgentsResponse.newBuilder() to construct. + private ListAgentsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAgentsResponse() { + agents_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAgentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAgentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAgentsResponse.class, + com.google.cloud.agentregistry.v1.ListAgentsResponse.Builder.class); + } + + public static final int AGENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List agents_; + + /** + * + * + *
            +   * The list of Agents.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + @java.lang.Override + public java.util.List getAgentsList() { + return agents_; + } + + /** + * + * + *
            +   * The list of Agents.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + @java.lang.Override + public java.util.List + getAgentsOrBuilderList() { + return agents_; + } + + /** + * + * + *
            +   * The list of Agents.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + @java.lang.Override + public int getAgentsCount() { + return agents_.size(); + } + + /** + * + * + *
            +   * The list of Agents.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent getAgents(int index) { + return agents_.get(index); + } + + /** + * + * + *
            +   * The list of Agents.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.AgentOrBuilder getAgentsOrBuilder(int index) { + return agents_.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 < agents_.size(); i++) { + output.writeMessage(1, agents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < agents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, agents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.agentregistry.v1.ListAgentsResponse)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListAgentsResponse other = + (com.google.cloud.agentregistry.v1.ListAgentsResponse) obj; + + if (!getAgentsList().equals(other.getAgentsList())) 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 (getAgentsCount() > 0) { + hash = (37 * hash) + AGENTS_FIELD_NUMBER; + hash = (53 * hash) + getAgentsList().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.agentregistry.v1.ListAgentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsResponse 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.agentregistry.v1.ListAgentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsResponse parseFrom( + 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.agentregistry.v1.ListAgentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.agentregistry.v1.ListAgentsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for response to listing Agents
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListAgentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListAgentsResponse) + com.google.cloud.agentregistry.v1.ListAgentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAgentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAgentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListAgentsResponse.class, + com.google.cloud.agentregistry.v1.ListAgentsResponse.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListAgentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (agentsBuilder_ == null) { + agents_ = java.util.Collections.emptyList(); + } else { + agents_ = null; + agentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListAgentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAgentsResponse getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListAgentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAgentsResponse build() { + com.google.cloud.agentregistry.v1.ListAgentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListAgentsResponse buildPartial() { + com.google.cloud.agentregistry.v1.ListAgentsResponse result = + new com.google.cloud.agentregistry.v1.ListAgentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentregistry.v1.ListAgentsResponse result) { + if (agentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + agents_ = java.util.Collections.unmodifiableList(agents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.agents_ = agents_; + } else { + result.agents_ = agentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ListAgentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.ListAgentsResponse) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListAgentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListAgentsResponse other) { + if (other == com.google.cloud.agentregistry.v1.ListAgentsResponse.getDefaultInstance()) + return this; + if (agentsBuilder_ == null) { + if (!other.agents_.isEmpty()) { + if (agents_.isEmpty()) { + agents_ = other.agents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAgentsIsMutable(); + agents_.addAll(other.agents_); + } + onChanged(); + } + } else { + if (!other.agents_.isEmpty()) { + if (agentsBuilder_.isEmpty()) { + agentsBuilder_.dispose(); + agentsBuilder_ = null; + agents_ = other.agents_; + bitField0_ = (bitField0_ & ~0x00000001); + agentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAgentsFieldBuilder() + : null; + } else { + agentsBuilder_.addAllMessages(other.agents_); + } + } + } + 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.agentregistry.v1.Agent m = + input.readMessage( + com.google.cloud.agentregistry.v1.Agent.parser(), extensionRegistry); + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.add(m); + } else { + agentsBuilder_.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 agents_ = + java.util.Collections.emptyList(); + + private void ensureAgentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + agents_ = new java.util.ArrayList(agents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Agent, + com.google.cloud.agentregistry.v1.Agent.Builder, + com.google.cloud.agentregistry.v1.AgentOrBuilder> + agentsBuilder_; + + /** + * + * + *
            +     * The list of Agents.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public java.util.List getAgentsList() { + if (agentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(agents_); + } else { + return agentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * The list of Agents.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public int getAgentsCount() { + if (agentsBuilder_ == null) { + return agents_.size(); + } else { + return agentsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * The list of Agents.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public com.google.cloud.agentregistry.v1.Agent getAgents(int index) { + if (agentsBuilder_ == null) { + return agents_.get(index); + } else { + return agentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * The list of Agents.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder setAgents(int index, com.google.cloud.agentregistry.v1.Agent value) { + if (agentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentsIsMutable(); + agents_.set(index, value); + onChanged(); + } else { + agentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of Agents.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder setAgents( + int index, com.google.cloud.agentregistry.v1.Agent.Builder builderForValue) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.set(index, builderForValue.build()); + onChanged(); + } else { + agentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Agents.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder addAgents(com.google.cloud.agentregistry.v1.Agent value) { + if (agentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentsIsMutable(); + agents_.add(value); + onChanged(); + } else { + agentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * The list of Agents.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder addAgents(int index, com.google.cloud.agentregistry.v1.Agent value) { + if (agentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentsIsMutable(); + agents_.add(index, value); + onChanged(); + } else { + agentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of Agents.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder addAgents(com.google.cloud.agentregistry.v1.Agent.Builder builderForValue) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.add(builderForValue.build()); + onChanged(); + } else { + agentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Agents.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder addAgents( + int index, com.google.cloud.agentregistry.v1.Agent.Builder builderForValue) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.add(index, builderForValue.build()); + onChanged(); + } else { + agentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Agents.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder addAllAgents( + java.lang.Iterable values) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, agents_); + onChanged(); + } else { + agentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * The list of Agents.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder clearAgents() { + if (agentsBuilder_ == null) { + agents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + agentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The list of Agents.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder removeAgents(int index) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.remove(index); + onChanged(); + } else { + agentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * The list of Agents.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public com.google.cloud.agentregistry.v1.Agent.Builder getAgentsBuilder(int index) { + return internalGetAgentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * The list of Agents.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public com.google.cloud.agentregistry.v1.AgentOrBuilder getAgentsOrBuilder(int index) { + if (agentsBuilder_ == null) { + return agents_.get(index); + } else { + return agentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * The list of Agents.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public java.util.List + getAgentsOrBuilderList() { + if (agentsBuilder_ != null) { + return agentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(agents_); + } + } + + /** + * + * + *
            +     * The list of Agents.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public com.google.cloud.agentregistry.v1.Agent.Builder addAgentsBuilder() { + return internalGetAgentsFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.Agent.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of Agents.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public com.google.cloud.agentregistry.v1.Agent.Builder addAgentsBuilder(int index) { + return internalGetAgentsFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.Agent.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of Agents.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public java.util.List getAgentsBuilderList() { + return internalGetAgentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Agent, + com.google.cloud.agentregistry.v1.Agent.Builder, + com.google.cloud.agentregistry.v1.AgentOrBuilder> + internalGetAgentsFieldBuilder() { + if (agentsBuilder_ == null) { + agentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Agent, + com.google.cloud.agentregistry.v1.Agent.Builder, + com.google.cloud.agentregistry.v1.AgentOrBuilder>( + agents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + agents_ = null; + } + return agentsBuilder_; + } + + 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.ListAgentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListAgentsResponse) + private static final com.google.cloud.agentregistry.v1.ListAgentsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListAgentsResponse(); + } + + public static com.google.cloud.agentregistry.v1.ListAgentsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAgentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.ListAgentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAgentsResponseOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAgentsResponseOrBuilder.java new file mode 100644 index 000000000000..465d495c7339 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListAgentsResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListAgentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListAgentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The list of Agents.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + java.util.List getAgentsList(); + + /** + * + * + *
            +   * The list of Agents.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + com.google.cloud.agentregistry.v1.Agent getAgents(int index); + + /** + * + * + *
            +   * The list of Agents.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + int getAgentsCount(); + + /** + * + * + *
            +   * The list of Agents.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + java.util.List + getAgentsOrBuilderList(); + + /** + * + * + *
            +   * The list of Agents.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + com.google.cloud.agentregistry.v1.AgentOrBuilder getAgentsOrBuilder(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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListBindingsRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListBindingsRequest.java new file mode 100644 index 000000000000..62172f25912f --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListBindingsRequest.java @@ -0,0 +1,1297 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for requesting a list of Bindings.
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListBindingsRequest} + */ +@com.google.protobuf.Generated +public final class ListBindingsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListBindingsRequest) + ListBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListBindingsRequest"); + } + + // Use ListBindingsRequest.newBuilder() to construct. + private ListBindingsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListBindingsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListBindingsRequest.class, + com.google.cloud.agentregistry.v1.ListBindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The project and location to list bindings in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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 project and location to list bindings in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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. Requested page size. Server may return fewer items than
            +   * requested. Page size is 500 if unspecified and is capped at `500` even if a
            +   * larger value is given.
            +   * 
            + * + * 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 token identifying a page of results the server should return.
            +   * 
            + * + * 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 token identifying a page of results the server should return.
            +   * 
            + * + * 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. A query string used to filter the list of bindings returned.
            +   * The filter expression must follow AIP-160 syntax.
            +   * 
            + * + * 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. A query string used to filter the list of bindings returned.
            +   * The filter expression must follow AIP-160 syntax.
            +   * 
            + * + * 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. Hint for how to order the results
            +   * 
            + * + * 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. Hint for how to order the results
            +   * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.agentregistry.v1.ListBindingsRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListBindingsRequest other = + (com.google.cloud.agentregistry.v1.ListBindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.ListBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsRequest 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.agentregistry.v1.ListBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsRequest parseFrom( + 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.agentregistry.v1.ListBindingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.ListBindingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for requesting a list of Bindings.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListBindingsRequest) + com.google.cloud.agentregistry.v1.ListBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListBindingsRequest.class, + com.google.cloud.agentregistry.v1.ListBindingsRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListBindingsRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListBindingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListBindingsRequest build() { + com.google.cloud.agentregistry.v1.ListBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListBindingsRequest buildPartial() { + com.google.cloud.agentregistry.v1.ListBindingsRequest result = + new com.google.cloud.agentregistry.v1.ListBindingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ListBindingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.ListBindingsRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListBindingsRequest other) { + if (other == com.google.cloud.agentregistry.v1.ListBindingsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The project and location to list bindings in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to list bindings in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to list bindings in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to list bindings in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to list bindings in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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. Requested page size. Server may return fewer items than
            +     * requested. Page size is 500 if unspecified and is capped at `500` even if a
            +     * larger value is given.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. Requested page size. Server may return fewer items than
            +     * requested. Page size is 500 if unspecified and is capped at `500` even if a
            +     * larger value is given.
            +     * 
            + * + * 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. Requested page size. Server may return fewer items than
            +     * requested. Page size is 500 if unspecified and is capped at `500` even if a
            +     * larger value is given.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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. A query string used to filter the list of bindings returned.
            +     * The filter expression must follow AIP-160 syntax.
            +     * 
            + * + * 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. A query string used to filter the list of bindings returned.
            +     * The filter expression must follow AIP-160 syntax.
            +     * 
            + * + * 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. A query string used to filter the list of bindings returned.
            +     * The filter expression must follow AIP-160 syntax.
            +     * 
            + * + * 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. A query string used to filter the list of bindings returned.
            +     * The filter expression must follow AIP-160 syntax.
            +     * 
            + * + * 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. A query string used to filter the list of bindings returned.
            +     * The filter expression must follow AIP-160 syntax.
            +     * 
            + * + * 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. Hint for how to order the results
            +     * 
            + * + * 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. Hint for how to order the results
            +     * 
            + * + * 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. Hint for how to order the results
            +     * 
            + * + * 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. Hint for how to order the results
            +     * 
            + * + * 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. Hint for how to order the results
            +     * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.ListBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListBindingsRequest) + private static final com.google.cloud.agentregistry.v1.ListBindingsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListBindingsRequest(); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.ListBindingsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListBindingsRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..1ea27fa0c4ec --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListBindingsRequestOrBuilder.java @@ -0,0 +1,155 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The project and location to list bindings in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The project and location to list bindings in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. Requested page size. Server may return fewer items than
            +   * requested. Page size is 500 if unspecified and is capped at `500` even if a
            +   * larger value is given.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. A token identifying a page of results the server should return.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. A token identifying a page of results the server should return.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. A query string used to filter the list of bindings returned.
            +   * The filter expression must follow AIP-160 syntax.
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Optional. A query string used to filter the list of bindings returned.
            +   * The filter expression must follow AIP-160 syntax.
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
            +   * Optional. Hint for how to order the results
            +   * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
            +   * Optional. Hint for how to order the results
            +   * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListBindingsResponse.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListBindingsResponse.java new file mode 100644 index 000000000000..62b8bc4f6f61 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListBindingsResponse.java @@ -0,0 +1,1172 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for response to listing Bindings
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListBindingsResponse} + */ +@com.google.protobuf.Generated +public final class ListBindingsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListBindingsResponse) + ListBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListBindingsResponse"); + } + + // Use ListBindingsResponse.newBuilder() to construct. + private ListBindingsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListBindingsResponse() { + bindings_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListBindingsResponse.class, + com.google.cloud.agentregistry.v1.ListBindingsResponse.Builder.class); + } + + public static final int BINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List bindings_; + + /** + * + * + *
            +   * The list of Binding resources matching the parent and filter criteria in
            +   * the request. Each Binding resource follows the format:
            +   * `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + @java.lang.Override + public java.util.List getBindingsList() { + return bindings_; + } + + /** + * + * + *
            +   * The list of Binding resources matching the parent and filter criteria in
            +   * the request. Each Binding resource follows the format:
            +   * `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + @java.lang.Override + public java.util.List + getBindingsOrBuilderList() { + return bindings_; + } + + /** + * + * + *
            +   * The list of Binding resources matching the parent and filter criteria in
            +   * the request. Each Binding resource follows the format:
            +   * `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + @java.lang.Override + public int getBindingsCount() { + return bindings_.size(); + } + + /** + * + * + *
            +   * The list of Binding resources matching the parent and filter criteria in
            +   * the request. Each Binding resource follows the format:
            +   * `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding getBindings(int index) { + return bindings_.get(index); + } + + /** + * + * + *
            +   * The list of Binding resources matching the parent and filter criteria in
            +   * the request. Each Binding resource follows the format:
            +   * `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.BindingOrBuilder getBindingsOrBuilder(int index) { + return bindings_.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.
            +   * Used in
            +   * [page_token][google.cloud.agentregistry.v1main.ListBindingsRequest.page_token].
            +   * 
            + * + * 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.
            +   * Used in
            +   * [page_token][google.cloud.agentregistry.v1main.ListBindingsRequest.page_token].
            +   * 
            + * + * 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 < bindings_.size(); i++) { + output.writeMessage(1, bindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < bindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, bindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.agentregistry.v1.ListBindingsResponse)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListBindingsResponse other = + (com.google.cloud.agentregistry.v1.ListBindingsResponse) obj; + + if (!getBindingsList().equals(other.getBindingsList())) 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 (getBindingsCount() > 0) { + hash = (37 * hash) + BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getBindingsList().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.agentregistry.v1.ListBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsResponse 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.agentregistry.v1.ListBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsResponse parseFrom( + 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.agentregistry.v1.ListBindingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.ListBindingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for response to listing Bindings
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListBindingsResponse) + com.google.cloud.agentregistry.v1.ListBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListBindingsResponse.class, + com.google.cloud.agentregistry.v1.ListBindingsResponse.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (bindingsBuilder_ == null) { + bindings_ = java.util.Collections.emptyList(); + } else { + bindings_ = null; + bindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListBindingsResponse getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListBindingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListBindingsResponse build() { + com.google.cloud.agentregistry.v1.ListBindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListBindingsResponse buildPartial() { + com.google.cloud.agentregistry.v1.ListBindingsResponse result = + new com.google.cloud.agentregistry.v1.ListBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentregistry.v1.ListBindingsResponse result) { + if (bindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + bindings_ = java.util.Collections.unmodifiableList(bindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.bindings_ = bindings_; + } else { + result.bindings_ = bindingsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ListBindingsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.ListBindingsResponse) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListBindingsResponse other) { + if (other == com.google.cloud.agentregistry.v1.ListBindingsResponse.getDefaultInstance()) + return this; + if (bindingsBuilder_ == null) { + if (!other.bindings_.isEmpty()) { + if (bindings_.isEmpty()) { + bindings_ = other.bindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBindingsIsMutable(); + bindings_.addAll(other.bindings_); + } + onChanged(); + } + } else { + if (!other.bindings_.isEmpty()) { + if (bindingsBuilder_.isEmpty()) { + bindingsBuilder_.dispose(); + bindingsBuilder_ = null; + bindings_ = other.bindings_; + bitField0_ = (bitField0_ & ~0x00000001); + bindingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetBindingsFieldBuilder() + : null; + } else { + bindingsBuilder_.addAllMessages(other.bindings_); + } + } + } + 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.agentregistry.v1.Binding m = + input.readMessage( + com.google.cloud.agentregistry.v1.Binding.parser(), extensionRegistry); + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.add(m); + } else { + bindingsBuilder_.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 bindings_ = + java.util.Collections.emptyList(); + + private void ensureBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + bindings_ = new java.util.ArrayList(bindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Binding, + com.google.cloud.agentregistry.v1.Binding.Builder, + com.google.cloud.agentregistry.v1.BindingOrBuilder> + bindingsBuilder_; + + /** + * + * + *
            +     * The list of Binding resources matching the parent and filter criteria in
            +     * the request. Each Binding resource follows the format:
            +     * `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public java.util.List getBindingsList() { + if (bindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(bindings_); + } else { + return bindingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * The list of Binding resources matching the parent and filter criteria in
            +     * the request. Each Binding resource follows the format:
            +     * `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public int getBindingsCount() { + if (bindingsBuilder_ == null) { + return bindings_.size(); + } else { + return bindingsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * The list of Binding resources matching the parent and filter criteria in
            +     * the request. Each Binding resource follows the format:
            +     * `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public com.google.cloud.agentregistry.v1.Binding getBindings(int index) { + if (bindingsBuilder_ == null) { + return bindings_.get(index); + } else { + return bindingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * The list of Binding resources matching the parent and filter criteria in
            +     * the request. Each Binding resource follows the format:
            +     * `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public Builder setBindings(int index, com.google.cloud.agentregistry.v1.Binding value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.set(index, value); + onChanged(); + } else { + bindingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of Binding resources matching the parent and filter criteria in
            +     * the request. Each Binding resource follows the format:
            +     * `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public Builder setBindings( + int index, com.google.cloud.agentregistry.v1.Binding.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.set(index, builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Binding resources matching the parent and filter criteria in
            +     * the request. Each Binding resource follows the format:
            +     * `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public Builder addBindings(com.google.cloud.agentregistry.v1.Binding value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.add(value); + onChanged(); + } else { + bindingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * The list of Binding resources matching the parent and filter criteria in
            +     * the request. Each Binding resource follows the format:
            +     * `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public Builder addBindings(int index, com.google.cloud.agentregistry.v1.Binding value) { + if (bindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingsIsMutable(); + bindings_.add(index, value); + onChanged(); + } else { + bindingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of Binding resources matching the parent and filter criteria in
            +     * the request. Each Binding resource follows the format:
            +     * `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public Builder addBindings(com.google.cloud.agentregistry.v1.Binding.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.add(builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Binding resources matching the parent and filter criteria in
            +     * the request. Each Binding resource follows the format:
            +     * `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public Builder addBindings( + int index, com.google.cloud.agentregistry.v1.Binding.Builder builderForValue) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.add(index, builderForValue.build()); + onChanged(); + } else { + bindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Binding resources matching the parent and filter criteria in
            +     * the request. Each Binding resource follows the format:
            +     * `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public Builder addAllBindings( + java.lang.Iterable values) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bindings_); + onChanged(); + } else { + bindingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * The list of Binding resources matching the parent and filter criteria in
            +     * the request. Each Binding resource follows the format:
            +     * `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public Builder clearBindings() { + if (bindingsBuilder_ == null) { + bindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + bindingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The list of Binding resources matching the parent and filter criteria in
            +     * the request. Each Binding resource follows the format:
            +     * `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public Builder removeBindings(int index) { + if (bindingsBuilder_ == null) { + ensureBindingsIsMutable(); + bindings_.remove(index); + onChanged(); + } else { + bindingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * The list of Binding resources matching the parent and filter criteria in
            +     * the request. Each Binding resource follows the format:
            +     * `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public com.google.cloud.agentregistry.v1.Binding.Builder getBindingsBuilder(int index) { + return internalGetBindingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * The list of Binding resources matching the parent and filter criteria in
            +     * the request. Each Binding resource follows the format:
            +     * `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public com.google.cloud.agentregistry.v1.BindingOrBuilder getBindingsOrBuilder(int index) { + if (bindingsBuilder_ == null) { + return bindings_.get(index); + } else { + return bindingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * The list of Binding resources matching the parent and filter criteria in
            +     * the request. Each Binding resource follows the format:
            +     * `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public java.util.List + getBindingsOrBuilderList() { + if (bindingsBuilder_ != null) { + return bindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bindings_); + } + } + + /** + * + * + *
            +     * The list of Binding resources matching the parent and filter criteria in
            +     * the request. Each Binding resource follows the format:
            +     * `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public com.google.cloud.agentregistry.v1.Binding.Builder addBindingsBuilder() { + return internalGetBindingsFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.Binding.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of Binding resources matching the parent and filter criteria in
            +     * the request. Each Binding resource follows the format:
            +     * `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public com.google.cloud.agentregistry.v1.Binding.Builder addBindingsBuilder(int index) { + return internalGetBindingsFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.Binding.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of Binding resources matching the parent and filter criteria in
            +     * the request. Each Binding resource follows the format:
            +     * `projects/{project}/locations/{location}/bindings/{binding}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + public java.util.List + getBindingsBuilderList() { + return internalGetBindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Binding, + com.google.cloud.agentregistry.v1.Binding.Builder, + com.google.cloud.agentregistry.v1.BindingOrBuilder> + internalGetBindingsFieldBuilder() { + if (bindingsBuilder_ == null) { + bindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Binding, + com.google.cloud.agentregistry.v1.Binding.Builder, + com.google.cloud.agentregistry.v1.BindingOrBuilder>( + bindings_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + bindings_ = null; + } + return bindingsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token identifying a page of results the server should return.
            +     * Used in
            +     * [page_token][google.cloud.agentregistry.v1main.ListBindingsRequest.page_token].
            +     * 
            + * + * 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.
            +     * Used in
            +     * [page_token][google.cloud.agentregistry.v1main.ListBindingsRequest.page_token].
            +     * 
            + * + * 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.
            +     * Used in
            +     * [page_token][google.cloud.agentregistry.v1main.ListBindingsRequest.page_token].
            +     * 
            + * + * 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.
            +     * Used in
            +     * [page_token][google.cloud.agentregistry.v1main.ListBindingsRequest.page_token].
            +     * 
            + * + * 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.
            +     * Used in
            +     * [page_token][google.cloud.agentregistry.v1main.ListBindingsRequest.page_token].
            +     * 
            + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.ListBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListBindingsResponse) + private static final com.google.cloud.agentregistry.v1.ListBindingsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListBindingsResponse(); + } + + public static com.google.cloud.agentregistry.v1.ListBindingsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.ListBindingsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListBindingsResponseOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..946f9ecf4be5 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListBindingsResponseOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The list of Binding resources matching the parent and filter criteria in
            +   * the request. Each Binding resource follows the format:
            +   * `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + java.util.List getBindingsList(); + + /** + * + * + *
            +   * The list of Binding resources matching the parent and filter criteria in
            +   * the request. Each Binding resource follows the format:
            +   * `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + com.google.cloud.agentregistry.v1.Binding getBindings(int index); + + /** + * + * + *
            +   * The list of Binding resources matching the parent and filter criteria in
            +   * the request. Each Binding resource follows the format:
            +   * `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + int getBindingsCount(); + + /** + * + * + *
            +   * The list of Binding resources matching the parent and filter criteria in
            +   * the request. Each Binding resource follows the format:
            +   * `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + java.util.List + getBindingsOrBuilderList(); + + /** + * + * + *
            +   * The list of Binding resources matching the parent and filter criteria in
            +   * the request. Each Binding resource follows the format:
            +   * `projects/{project}/locations/{location}/bindings/{binding}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Binding bindings = 1; + */ + com.google.cloud.agentregistry.v1.BindingOrBuilder getBindingsOrBuilder(int index); + + /** + * + * + *
            +   * A token identifying a page of results the server should return.
            +   * Used in
            +   * [page_token][google.cloud.agentregistry.v1main.ListBindingsRequest.page_token].
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token identifying a page of results the server should return.
            +   * Used in
            +   * [page_token][google.cloud.agentregistry.v1main.ListBindingsRequest.page_token].
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListEndpointsRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListEndpointsRequest.java new file mode 100644 index 000000000000..3c9e53b5ae3d --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListEndpointsRequest.java @@ -0,0 +1,1181 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for requesting list of Endpoints
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListEndpointsRequest} + */ +@com.google.protobuf.Generated +public final class ListEndpointsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListEndpointsRequest) + ListEndpointsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListEndpointsRequest"); + } + + // Use ListEndpointsRequest.newBuilder() to construct. + private ListEndpointsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListEndpointsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListEndpointsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListEndpointsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListEndpointsRequest.class, + com.google.cloud.agentregistry.v1.ListEndpointsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The project and location to list endpoints in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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 project and location to list endpoints in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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. Requested page size. Server may return fewer items than
            +   * requested. If unspecified, server will pick an appropriate default.
            +   * 
            + * + * 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 token identifying a page of results the server should return.
            +   * 
            + * + * 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 token identifying a page of results the server should return.
            +   * 
            + * + * 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. A query string used to filter the list of endpoints returned.
            +   * The filter expression must follow AIP-160 syntax.
            +   *
            +   * Filtering is supported on the `name`, `display_name`, `description`,
            +   * `version`, and `interfaces` fields.
            +   *
            +   * Some examples:
            +   *
            +   * * `name = "projects/p1/locations/l1/endpoints/e1"`
            +   * * `display_name = "my-endpoint"`
            +   * * `description = "my-endpoint-description"`
            +   * * `version = "v1"`
            +   * * `interfaces.transport = "HTTP_JSON"`
            +   * 
            + * + * 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. A query string used to filter the list of endpoints returned.
            +   * The filter expression must follow AIP-160 syntax.
            +   *
            +   * Filtering is supported on the `name`, `display_name`, `description`,
            +   * `version`, and `interfaces` fields.
            +   *
            +   * Some examples:
            +   *
            +   * * `name = "projects/p1/locations/l1/endpoints/e1"`
            +   * * `display_name = "my-endpoint"`
            +   * * `description = "my-endpoint-description"`
            +   * * `version = "v1"`
            +   * * `interfaces.transport = "HTTP_JSON"`
            +   * 
            + * + * 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + 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.agentregistry.v1.ListEndpointsRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListEndpointsRequest other = + (com.google.cloud.agentregistry.v1.ListEndpointsRequest) 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.agentregistry.v1.ListEndpointsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsRequest 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.agentregistry.v1.ListEndpointsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsRequest parseFrom( + 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.agentregistry.v1.ListEndpointsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.ListEndpointsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for requesting list of Endpoints
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListEndpointsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListEndpointsRequest) + com.google.cloud.agentregistry.v1.ListEndpointsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListEndpointsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListEndpointsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListEndpointsRequest.class, + com.google.cloud.agentregistry.v1.ListEndpointsRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListEndpointsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListEndpointsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListEndpointsRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListEndpointsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListEndpointsRequest build() { + com.google.cloud.agentregistry.v1.ListEndpointsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListEndpointsRequest buildPartial() { + com.google.cloud.agentregistry.v1.ListEndpointsRequest result = + new com.google.cloud.agentregistry.v1.ListEndpointsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ListEndpointsRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.ListEndpointsRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListEndpointsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListEndpointsRequest other) { + if (other == com.google.cloud.agentregistry.v1.ListEndpointsRequest.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. The project and location to list endpoints in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to list endpoints in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to list endpoints in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to list endpoints in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to list endpoints in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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. Requested page size. Server may return fewer items than
            +     * requested. If unspecified, server will pick an appropriate default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. Requested page size. Server may return fewer items than
            +     * requested. If unspecified, server will pick an appropriate default.
            +     * 
            + * + * 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. Requested page size. Server may return fewer items than
            +     * requested. If unspecified, server will pick an appropriate default.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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. A query string used to filter the list of endpoints returned.
            +     * The filter expression must follow AIP-160 syntax.
            +     *
            +     * Filtering is supported on the `name`, `display_name`, `description`,
            +     * `version`, and `interfaces` fields.
            +     *
            +     * Some examples:
            +     *
            +     * * `name = "projects/p1/locations/l1/endpoints/e1"`
            +     * * `display_name = "my-endpoint"`
            +     * * `description = "my-endpoint-description"`
            +     * * `version = "v1"`
            +     * * `interfaces.transport = "HTTP_JSON"`
            +     * 
            + * + * 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. A query string used to filter the list of endpoints returned.
            +     * The filter expression must follow AIP-160 syntax.
            +     *
            +     * Filtering is supported on the `name`, `display_name`, `description`,
            +     * `version`, and `interfaces` fields.
            +     *
            +     * Some examples:
            +     *
            +     * * `name = "projects/p1/locations/l1/endpoints/e1"`
            +     * * `display_name = "my-endpoint"`
            +     * * `description = "my-endpoint-description"`
            +     * * `version = "v1"`
            +     * * `interfaces.transport = "HTTP_JSON"`
            +     * 
            + * + * 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. A query string used to filter the list of endpoints returned.
            +     * The filter expression must follow AIP-160 syntax.
            +     *
            +     * Filtering is supported on the `name`, `display_name`, `description`,
            +     * `version`, and `interfaces` fields.
            +     *
            +     * Some examples:
            +     *
            +     * * `name = "projects/p1/locations/l1/endpoints/e1"`
            +     * * `display_name = "my-endpoint"`
            +     * * `description = "my-endpoint-description"`
            +     * * `version = "v1"`
            +     * * `interfaces.transport = "HTTP_JSON"`
            +     * 
            + * + * 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. A query string used to filter the list of endpoints returned.
            +     * The filter expression must follow AIP-160 syntax.
            +     *
            +     * Filtering is supported on the `name`, `display_name`, `description`,
            +     * `version`, and `interfaces` fields.
            +     *
            +     * Some examples:
            +     *
            +     * * `name = "projects/p1/locations/l1/endpoints/e1"`
            +     * * `display_name = "my-endpoint"`
            +     * * `description = "my-endpoint-description"`
            +     * * `version = "v1"`
            +     * * `interfaces.transport = "HTTP_JSON"`
            +     * 
            + * + * 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. A query string used to filter the list of endpoints returned.
            +     * The filter expression must follow AIP-160 syntax.
            +     *
            +     * Filtering is supported on the `name`, `display_name`, `description`,
            +     * `version`, and `interfaces` fields.
            +     *
            +     * Some examples:
            +     *
            +     * * `name = "projects/p1/locations/l1/endpoints/e1"`
            +     * * `display_name = "my-endpoint"`
            +     * * `description = "my-endpoint-description"`
            +     * * `version = "v1"`
            +     * * `interfaces.transport = "HTTP_JSON"`
            +     * 
            + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.ListEndpointsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListEndpointsRequest) + private static final com.google.cloud.agentregistry.v1.ListEndpointsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListEndpointsRequest(); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEndpointsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.ListEndpointsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListEndpointsRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListEndpointsRequestOrBuilder.java new file mode 100644 index 000000000000..8fb3a2cf58f5 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListEndpointsRequestOrBuilder.java @@ -0,0 +1,150 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListEndpointsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListEndpointsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The project and location to list endpoints in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The project and location to list endpoints in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. Requested page size. Server may return fewer items than
            +   * requested. If unspecified, server will pick an appropriate default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. A token identifying a page of results the server should return.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. A token identifying a page of results the server should return.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. A query string used to filter the list of endpoints returned.
            +   * The filter expression must follow AIP-160 syntax.
            +   *
            +   * Filtering is supported on the `name`, `display_name`, `description`,
            +   * `version`, and `interfaces` fields.
            +   *
            +   * Some examples:
            +   *
            +   * * `name = "projects/p1/locations/l1/endpoints/e1"`
            +   * * `display_name = "my-endpoint"`
            +   * * `description = "my-endpoint-description"`
            +   * * `version = "v1"`
            +   * * `interfaces.transport = "HTTP_JSON"`
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Optional. A query string used to filter the list of endpoints returned.
            +   * The filter expression must follow AIP-160 syntax.
            +   *
            +   * Filtering is supported on the `name`, `display_name`, `description`,
            +   * `version`, and `interfaces` fields.
            +   *
            +   * Some examples:
            +   *
            +   * * `name = "projects/p1/locations/l1/endpoints/e1"`
            +   * * `display_name = "my-endpoint"`
            +   * * `description = "my-endpoint-description"`
            +   * * `version = "v1"`
            +   * * `interfaces.transport = "HTTP_JSON"`
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListEndpointsResponse.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListEndpointsResponse.java new file mode 100644 index 000000000000..b5042e191fd6 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListEndpointsResponse.java @@ -0,0 +1,1174 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for response to listing Endpoints
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListEndpointsResponse} + */ +@com.google.protobuf.Generated +public final class ListEndpointsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListEndpointsResponse) + ListEndpointsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListEndpointsResponse"); + } + + // Use ListEndpointsResponse.newBuilder() to construct. + private ListEndpointsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListEndpointsResponse() { + endpoints_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListEndpointsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListEndpointsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListEndpointsResponse.class, + com.google.cloud.agentregistry.v1.ListEndpointsResponse.Builder.class); + } + + public static final int ENDPOINTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List endpoints_; + + /** + * + * + *
            +   * The list of Endpoint resources matching the parent and filter criteria in
            +   * the request. Each Endpoint resource follows the format:
            +   * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + @java.lang.Override + public java.util.List getEndpointsList() { + return endpoints_; + } + + /** + * + * + *
            +   * The list of Endpoint resources matching the parent and filter criteria in
            +   * the request. Each Endpoint resource follows the format:
            +   * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + @java.lang.Override + public java.util.List + getEndpointsOrBuilderList() { + return endpoints_; + } + + /** + * + * + *
            +   * The list of Endpoint resources matching the parent and filter criteria in
            +   * the request. Each Endpoint resource follows the format:
            +   * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + @java.lang.Override + public int getEndpointsCount() { + return endpoints_.size(); + } + + /** + * + * + *
            +   * The list of Endpoint resources matching the parent and filter criteria in
            +   * the request. Each Endpoint resource follows the format:
            +   * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Endpoint getEndpoints(int index) { + return endpoints_.get(index); + } + + /** + * + * + *
            +   * The list of Endpoint resources matching the parent and filter criteria in
            +   * the request. Each Endpoint resource follows the format:
            +   * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.EndpointOrBuilder getEndpointsOrBuilder(int index) { + return endpoints_.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.
            +   * Used in
            +   * [page_token][google.cloud.agentregistry.v1main.ListEndpointsRequest.page_token].
            +   * 
            + * + * 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.
            +   * Used in
            +   * [page_token][google.cloud.agentregistry.v1main.ListEndpointsRequest.page_token].
            +   * 
            + * + * 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 < endpoints_.size(); i++) { + output.writeMessage(1, endpoints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < endpoints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, endpoints_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.agentregistry.v1.ListEndpointsResponse)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListEndpointsResponse other = + (com.google.cloud.agentregistry.v1.ListEndpointsResponse) obj; + + if (!getEndpointsList().equals(other.getEndpointsList())) 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 (getEndpointsCount() > 0) { + hash = (37 * hash) + ENDPOINTS_FIELD_NUMBER; + hash = (53 * hash) + getEndpointsList().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.agentregistry.v1.ListEndpointsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsResponse 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.agentregistry.v1.ListEndpointsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsResponse parseFrom( + 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.agentregistry.v1.ListEndpointsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.ListEndpointsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for response to listing Endpoints
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListEndpointsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListEndpointsResponse) + com.google.cloud.agentregistry.v1.ListEndpointsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListEndpointsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListEndpointsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListEndpointsResponse.class, + com.google.cloud.agentregistry.v1.ListEndpointsResponse.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListEndpointsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (endpointsBuilder_ == null) { + endpoints_ = java.util.Collections.emptyList(); + } else { + endpoints_ = null; + endpointsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListEndpointsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListEndpointsResponse getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListEndpointsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListEndpointsResponse build() { + com.google.cloud.agentregistry.v1.ListEndpointsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListEndpointsResponse buildPartial() { + com.google.cloud.agentregistry.v1.ListEndpointsResponse result = + new com.google.cloud.agentregistry.v1.ListEndpointsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentregistry.v1.ListEndpointsResponse result) { + if (endpointsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + endpoints_ = java.util.Collections.unmodifiableList(endpoints_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.endpoints_ = endpoints_; + } else { + result.endpoints_ = endpointsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ListEndpointsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.ListEndpointsResponse) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListEndpointsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListEndpointsResponse other) { + if (other == com.google.cloud.agentregistry.v1.ListEndpointsResponse.getDefaultInstance()) + return this; + if (endpointsBuilder_ == null) { + if (!other.endpoints_.isEmpty()) { + if (endpoints_.isEmpty()) { + endpoints_ = other.endpoints_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEndpointsIsMutable(); + endpoints_.addAll(other.endpoints_); + } + onChanged(); + } + } else { + if (!other.endpoints_.isEmpty()) { + if (endpointsBuilder_.isEmpty()) { + endpointsBuilder_.dispose(); + endpointsBuilder_ = null; + endpoints_ = other.endpoints_; + bitField0_ = (bitField0_ & ~0x00000001); + endpointsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEndpointsFieldBuilder() + : null; + } else { + endpointsBuilder_.addAllMessages(other.endpoints_); + } + } + } + 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.agentregistry.v1.Endpoint m = + input.readMessage( + com.google.cloud.agentregistry.v1.Endpoint.parser(), extensionRegistry); + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.add(m); + } else { + endpointsBuilder_.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 endpoints_ = + java.util.Collections.emptyList(); + + private void ensureEndpointsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + endpoints_ = + new java.util.ArrayList(endpoints_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Endpoint, + com.google.cloud.agentregistry.v1.Endpoint.Builder, + com.google.cloud.agentregistry.v1.EndpointOrBuilder> + endpointsBuilder_; + + /** + * + * + *
            +     * The list of Endpoint resources matching the parent and filter criteria in
            +     * the request. Each Endpoint resource follows the format:
            +     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public java.util.List getEndpointsList() { + if (endpointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(endpoints_); + } else { + return endpointsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * The list of Endpoint resources matching the parent and filter criteria in
            +     * the request. Each Endpoint resource follows the format:
            +     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public int getEndpointsCount() { + if (endpointsBuilder_ == null) { + return endpoints_.size(); + } else { + return endpointsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * The list of Endpoint resources matching the parent and filter criteria in
            +     * the request. Each Endpoint resource follows the format:
            +     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public com.google.cloud.agentregistry.v1.Endpoint getEndpoints(int index) { + if (endpointsBuilder_ == null) { + return endpoints_.get(index); + } else { + return endpointsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * The list of Endpoint resources matching the parent and filter criteria in
            +     * the request. Each Endpoint resource follows the format:
            +     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public Builder setEndpoints(int index, com.google.cloud.agentregistry.v1.Endpoint value) { + if (endpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEndpointsIsMutable(); + endpoints_.set(index, value); + onChanged(); + } else { + endpointsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of Endpoint resources matching the parent and filter criteria in
            +     * the request. Each Endpoint resource follows the format:
            +     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public Builder setEndpoints( + int index, com.google.cloud.agentregistry.v1.Endpoint.Builder builderForValue) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.set(index, builderForValue.build()); + onChanged(); + } else { + endpointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Endpoint resources matching the parent and filter criteria in
            +     * the request. Each Endpoint resource follows the format:
            +     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public Builder addEndpoints(com.google.cloud.agentregistry.v1.Endpoint value) { + if (endpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEndpointsIsMutable(); + endpoints_.add(value); + onChanged(); + } else { + endpointsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * The list of Endpoint resources matching the parent and filter criteria in
            +     * the request. Each Endpoint resource follows the format:
            +     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public Builder addEndpoints(int index, com.google.cloud.agentregistry.v1.Endpoint value) { + if (endpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEndpointsIsMutable(); + endpoints_.add(index, value); + onChanged(); + } else { + endpointsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of Endpoint resources matching the parent and filter criteria in
            +     * the request. Each Endpoint resource follows the format:
            +     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public Builder addEndpoints( + com.google.cloud.agentregistry.v1.Endpoint.Builder builderForValue) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.add(builderForValue.build()); + onChanged(); + } else { + endpointsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Endpoint resources matching the parent and filter criteria in
            +     * the request. Each Endpoint resource follows the format:
            +     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public Builder addEndpoints( + int index, com.google.cloud.agentregistry.v1.Endpoint.Builder builderForValue) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.add(index, builderForValue.build()); + onChanged(); + } else { + endpointsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Endpoint resources matching the parent and filter criteria in
            +     * the request. Each Endpoint resource follows the format:
            +     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public Builder addAllEndpoints( + java.lang.Iterable values) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, endpoints_); + onChanged(); + } else { + endpointsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * The list of Endpoint resources matching the parent and filter criteria in
            +     * the request. Each Endpoint resource follows the format:
            +     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public Builder clearEndpoints() { + if (endpointsBuilder_ == null) { + endpoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + endpointsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The list of Endpoint resources matching the parent and filter criteria in
            +     * the request. Each Endpoint resource follows the format:
            +     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public Builder removeEndpoints(int index) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.remove(index); + onChanged(); + } else { + endpointsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * The list of Endpoint resources matching the parent and filter criteria in
            +     * the request. Each Endpoint resource follows the format:
            +     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public com.google.cloud.agentregistry.v1.Endpoint.Builder getEndpointsBuilder(int index) { + return internalGetEndpointsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * The list of Endpoint resources matching the parent and filter criteria in
            +     * the request. Each Endpoint resource follows the format:
            +     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public com.google.cloud.agentregistry.v1.EndpointOrBuilder getEndpointsOrBuilder(int index) { + if (endpointsBuilder_ == null) { + return endpoints_.get(index); + } else { + return endpointsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * The list of Endpoint resources matching the parent and filter criteria in
            +     * the request. Each Endpoint resource follows the format:
            +     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public java.util.List + getEndpointsOrBuilderList() { + if (endpointsBuilder_ != null) { + return endpointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(endpoints_); + } + } + + /** + * + * + *
            +     * The list of Endpoint resources matching the parent and filter criteria in
            +     * the request. Each Endpoint resource follows the format:
            +     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public com.google.cloud.agentregistry.v1.Endpoint.Builder addEndpointsBuilder() { + return internalGetEndpointsFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.Endpoint.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of Endpoint resources matching the parent and filter criteria in
            +     * the request. Each Endpoint resource follows the format:
            +     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public com.google.cloud.agentregistry.v1.Endpoint.Builder addEndpointsBuilder(int index) { + return internalGetEndpointsFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.Endpoint.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of Endpoint resources matching the parent and filter criteria in
            +     * the request. Each Endpoint resource follows the format:
            +     * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + public java.util.List + getEndpointsBuilderList() { + return internalGetEndpointsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Endpoint, + com.google.cloud.agentregistry.v1.Endpoint.Builder, + com.google.cloud.agentregistry.v1.EndpointOrBuilder> + internalGetEndpointsFieldBuilder() { + if (endpointsBuilder_ == null) { + endpointsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Endpoint, + com.google.cloud.agentregistry.v1.Endpoint.Builder, + com.google.cloud.agentregistry.v1.EndpointOrBuilder>( + endpoints_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + endpoints_ = null; + } + return endpointsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token identifying a page of results the server should return.
            +     * Used in
            +     * [page_token][google.cloud.agentregistry.v1main.ListEndpointsRequest.page_token].
            +     * 
            + * + * 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.
            +     * Used in
            +     * [page_token][google.cloud.agentregistry.v1main.ListEndpointsRequest.page_token].
            +     * 
            + * + * 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.
            +     * Used in
            +     * [page_token][google.cloud.agentregistry.v1main.ListEndpointsRequest.page_token].
            +     * 
            + * + * 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.
            +     * Used in
            +     * [page_token][google.cloud.agentregistry.v1main.ListEndpointsRequest.page_token].
            +     * 
            + * + * 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.
            +     * Used in
            +     * [page_token][google.cloud.agentregistry.v1main.ListEndpointsRequest.page_token].
            +     * 
            + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.ListEndpointsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListEndpointsResponse) + private static final com.google.cloud.agentregistry.v1.ListEndpointsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListEndpointsResponse(); + } + + public static com.google.cloud.agentregistry.v1.ListEndpointsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEndpointsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.ListEndpointsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListEndpointsResponseOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListEndpointsResponseOrBuilder.java new file mode 100644 index 000000000000..c4c1fb82eb4e --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListEndpointsResponseOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListEndpointsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListEndpointsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The list of Endpoint resources matching the parent and filter criteria in
            +   * the request. Each Endpoint resource follows the format:
            +   * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + java.util.List getEndpointsList(); + + /** + * + * + *
            +   * The list of Endpoint resources matching the parent and filter criteria in
            +   * the request. Each Endpoint resource follows the format:
            +   * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + com.google.cloud.agentregistry.v1.Endpoint getEndpoints(int index); + + /** + * + * + *
            +   * The list of Endpoint resources matching the parent and filter criteria in
            +   * the request. Each Endpoint resource follows the format:
            +   * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + int getEndpointsCount(); + + /** + * + * + *
            +   * The list of Endpoint resources matching the parent and filter criteria in
            +   * the request. Each Endpoint resource follows the format:
            +   * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + java.util.List + getEndpointsOrBuilderList(); + + /** + * + * + *
            +   * The list of Endpoint resources matching the parent and filter criteria in
            +   * the request. Each Endpoint resource follows the format:
            +   * `projects/{project}/locations/{location}/endpoints/{endpoint}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Endpoint endpoints = 1; + */ + com.google.cloud.agentregistry.v1.EndpointOrBuilder getEndpointsOrBuilder(int index); + + /** + * + * + *
            +   * A token identifying a page of results the server should return.
            +   * Used in
            +   * [page_token][google.cloud.agentregistry.v1main.ListEndpointsRequest.page_token].
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token identifying a page of results the server should return.
            +   * Used in
            +   * [page_token][google.cloud.agentregistry.v1main.ListEndpointsRequest.page_token].
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListMcpServersRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListMcpServersRequest.java new file mode 100644 index 000000000000..ad2987c51f58 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListMcpServersRequest.java @@ -0,0 +1,1286 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for requesting list of McpServers
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListMcpServersRequest} + */ +@com.google.protobuf.Generated +public final class ListMcpServersRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListMcpServersRequest) + ListMcpServersRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMcpServersRequest"); + } + + // Use ListMcpServersRequest.newBuilder() to construct. + private ListMcpServersRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMcpServersRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListMcpServersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListMcpServersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListMcpServersRequest.class, + com.google.cloud.agentregistry.v1.ListMcpServersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. Parent value for ListMcpServersRequest. Format:
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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 ListMcpServersRequest. Format:
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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. Requested page size. Server may return fewer items than
            +   * requested. If unspecified, server will pick an appropriate default.
            +   * 
            + * + * 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 token identifying a page of results the server should return.
            +   * 
            + * + * 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 token identifying a page of results the server should return.
            +   * 
            + * + * 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
            +   * 
            + * + * 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
            +   * 
            + * + * 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. Hint for how to order the results
            +   * 
            + * + * 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. Hint for how to order the results
            +   * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.agentregistry.v1.ListMcpServersRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListMcpServersRequest other = + (com.google.cloud.agentregistry.v1.ListMcpServersRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersRequest 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.agentregistry.v1.ListMcpServersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersRequest parseFrom( + 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.agentregistry.v1.ListMcpServersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.ListMcpServersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for requesting list of McpServers
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListMcpServersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListMcpServersRequest) + com.google.cloud.agentregistry.v1.ListMcpServersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListMcpServersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListMcpServersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListMcpServersRequest.class, + com.google.cloud.agentregistry.v1.ListMcpServersRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListMcpServersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListMcpServersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListMcpServersRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListMcpServersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListMcpServersRequest build() { + com.google.cloud.agentregistry.v1.ListMcpServersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListMcpServersRequest buildPartial() { + com.google.cloud.agentregistry.v1.ListMcpServersRequest result = + new com.google.cloud.agentregistry.v1.ListMcpServersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ListMcpServersRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.ListMcpServersRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListMcpServersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListMcpServersRequest other) { + if (other == com.google.cloud.agentregistry.v1.ListMcpServersRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. Parent value for ListMcpServersRequest. Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 ListMcpServersRequest. Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 ListMcpServersRequest. Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 ListMcpServersRequest. Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 ListMcpServersRequest. Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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. Requested page size. Server may return fewer items than
            +     * requested. If unspecified, server will pick an appropriate default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. Requested page size. Server may return fewer items than
            +     * requested. If unspecified, server will pick an appropriate default.
            +     * 
            + * + * 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. Requested page size. Server may return fewer items than
            +     * requested. If unspecified, server will pick an appropriate default.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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
            +     * 
            + * + * 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
            +     * 
            + * + * 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
            +     * 
            + * + * 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
            +     * 
            + * + * 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
            +     * 
            + * + * 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. Hint for how to order the results
            +     * 
            + * + * 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. Hint for how to order the results
            +     * 
            + * + * 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. Hint for how to order the results
            +     * 
            + * + * 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. Hint for how to order the results
            +     * 
            + * + * 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. Hint for how to order the results
            +     * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.ListMcpServersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListMcpServersRequest) + private static final com.google.cloud.agentregistry.v1.ListMcpServersRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListMcpServersRequest(); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMcpServersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.ListMcpServersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListMcpServersRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListMcpServersRequestOrBuilder.java new file mode 100644 index 000000000000..fcfc678930ad --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListMcpServersRequestOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListMcpServersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListMcpServersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Parent value for ListMcpServersRequest. Format:
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. Parent value for ListMcpServersRequest. Format:
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. Requested page size. Server may return fewer items than
            +   * requested. If unspecified, server will pick an appropriate default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. A token identifying a page of results the server should return.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. A token identifying a page of results the server should return.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. Filtering results
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Optional. Filtering results
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
            +   * Optional. Hint for how to order the results
            +   * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
            +   * Optional. Hint for how to order the results
            +   * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListMcpServersResponse.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListMcpServersResponse.java new file mode 100644 index 000000000000..28c0f87a75f7 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListMcpServersResponse.java @@ -0,0 +1,1114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for response to listing McpServers
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListMcpServersResponse} + */ +@com.google.protobuf.Generated +public final class ListMcpServersResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListMcpServersResponse) + ListMcpServersResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListMcpServersResponse"); + } + + // Use ListMcpServersResponse.newBuilder() to construct. + private ListMcpServersResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListMcpServersResponse() { + mcpServers_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListMcpServersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListMcpServersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListMcpServersResponse.class, + com.google.cloud.agentregistry.v1.ListMcpServersResponse.Builder.class); + } + + public static final int MCP_SERVERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List mcpServers_; + + /** + * + * + *
            +   * The list of McpServers.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + @java.lang.Override + public java.util.List getMcpServersList() { + return mcpServers_; + } + + /** + * + * + *
            +   * The list of McpServers.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + @java.lang.Override + public java.util.List + getMcpServersOrBuilderList() { + return mcpServers_; + } + + /** + * + * + *
            +   * The list of McpServers.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + @java.lang.Override + public int getMcpServersCount() { + return mcpServers_.size(); + } + + /** + * + * + *
            +   * The list of McpServers.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.McpServer getMcpServers(int index) { + return mcpServers_.get(index); + } + + /** + * + * + *
            +   * The list of McpServers.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.McpServerOrBuilder getMcpServersOrBuilder(int index) { + return mcpServers_.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 < mcpServers_.size(); i++) { + output.writeMessage(1, mcpServers_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < mcpServers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, mcpServers_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.agentregistry.v1.ListMcpServersResponse)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListMcpServersResponse other = + (com.google.cloud.agentregistry.v1.ListMcpServersResponse) obj; + + if (!getMcpServersList().equals(other.getMcpServersList())) 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 (getMcpServersCount() > 0) { + hash = (37 * hash) + MCP_SERVERS_FIELD_NUMBER; + hash = (53 * hash) + getMcpServersList().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.agentregistry.v1.ListMcpServersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersResponse 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.agentregistry.v1.ListMcpServersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersResponse parseFrom( + 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.agentregistry.v1.ListMcpServersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.ListMcpServersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for response to listing McpServers
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListMcpServersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListMcpServersResponse) + com.google.cloud.agentregistry.v1.ListMcpServersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListMcpServersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListMcpServersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListMcpServersResponse.class, + com.google.cloud.agentregistry.v1.ListMcpServersResponse.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListMcpServersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mcpServersBuilder_ == null) { + mcpServers_ = java.util.Collections.emptyList(); + } else { + mcpServers_ = null; + mcpServersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListMcpServersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListMcpServersResponse getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListMcpServersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListMcpServersResponse build() { + com.google.cloud.agentregistry.v1.ListMcpServersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListMcpServersResponse buildPartial() { + com.google.cloud.agentregistry.v1.ListMcpServersResponse result = + new com.google.cloud.agentregistry.v1.ListMcpServersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentregistry.v1.ListMcpServersResponse result) { + if (mcpServersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + mcpServers_ = java.util.Collections.unmodifiableList(mcpServers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mcpServers_ = mcpServers_; + } else { + result.mcpServers_ = mcpServersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ListMcpServersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.ListMcpServersResponse) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListMcpServersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListMcpServersResponse other) { + if (other == com.google.cloud.agentregistry.v1.ListMcpServersResponse.getDefaultInstance()) + return this; + if (mcpServersBuilder_ == null) { + if (!other.mcpServers_.isEmpty()) { + if (mcpServers_.isEmpty()) { + mcpServers_ = other.mcpServers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMcpServersIsMutable(); + mcpServers_.addAll(other.mcpServers_); + } + onChanged(); + } + } else { + if (!other.mcpServers_.isEmpty()) { + if (mcpServersBuilder_.isEmpty()) { + mcpServersBuilder_.dispose(); + mcpServersBuilder_ = null; + mcpServers_ = other.mcpServers_; + bitField0_ = (bitField0_ & ~0x00000001); + mcpServersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMcpServersFieldBuilder() + : null; + } else { + mcpServersBuilder_.addAllMessages(other.mcpServers_); + } + } + } + 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.agentregistry.v1.McpServer m = + input.readMessage( + com.google.cloud.agentregistry.v1.McpServer.parser(), extensionRegistry); + if (mcpServersBuilder_ == null) { + ensureMcpServersIsMutable(); + mcpServers_.add(m); + } else { + mcpServersBuilder_.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 mcpServers_ = + java.util.Collections.emptyList(); + + private void ensureMcpServersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + mcpServers_ = + new java.util.ArrayList(mcpServers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.McpServer, + com.google.cloud.agentregistry.v1.McpServer.Builder, + com.google.cloud.agentregistry.v1.McpServerOrBuilder> + mcpServersBuilder_; + + /** + * + * + *
            +     * The list of McpServers.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public java.util.List getMcpServersList() { + if (mcpServersBuilder_ == null) { + return java.util.Collections.unmodifiableList(mcpServers_); + } else { + return mcpServersBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * The list of McpServers.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public int getMcpServersCount() { + if (mcpServersBuilder_ == null) { + return mcpServers_.size(); + } else { + return mcpServersBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * The list of McpServers.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public com.google.cloud.agentregistry.v1.McpServer getMcpServers(int index) { + if (mcpServersBuilder_ == null) { + return mcpServers_.get(index); + } else { + return mcpServersBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * The list of McpServers.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder setMcpServers(int index, com.google.cloud.agentregistry.v1.McpServer value) { + if (mcpServersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMcpServersIsMutable(); + mcpServers_.set(index, value); + onChanged(); + } else { + mcpServersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of McpServers.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder setMcpServers( + int index, com.google.cloud.agentregistry.v1.McpServer.Builder builderForValue) { + if (mcpServersBuilder_ == null) { + ensureMcpServersIsMutable(); + mcpServers_.set(index, builderForValue.build()); + onChanged(); + } else { + mcpServersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of McpServers.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder addMcpServers(com.google.cloud.agentregistry.v1.McpServer value) { + if (mcpServersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMcpServersIsMutable(); + mcpServers_.add(value); + onChanged(); + } else { + mcpServersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * The list of McpServers.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder addMcpServers(int index, com.google.cloud.agentregistry.v1.McpServer value) { + if (mcpServersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMcpServersIsMutable(); + mcpServers_.add(index, value); + onChanged(); + } else { + mcpServersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of McpServers.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder addMcpServers( + com.google.cloud.agentregistry.v1.McpServer.Builder builderForValue) { + if (mcpServersBuilder_ == null) { + ensureMcpServersIsMutable(); + mcpServers_.add(builderForValue.build()); + onChanged(); + } else { + mcpServersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of McpServers.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder addMcpServers( + int index, com.google.cloud.agentregistry.v1.McpServer.Builder builderForValue) { + if (mcpServersBuilder_ == null) { + ensureMcpServersIsMutable(); + mcpServers_.add(index, builderForValue.build()); + onChanged(); + } else { + mcpServersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of McpServers.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder addAllMcpServers( + java.lang.Iterable values) { + if (mcpServersBuilder_ == null) { + ensureMcpServersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mcpServers_); + onChanged(); + } else { + mcpServersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * The list of McpServers.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder clearMcpServers() { + if (mcpServersBuilder_ == null) { + mcpServers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mcpServersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The list of McpServers.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder removeMcpServers(int index) { + if (mcpServersBuilder_ == null) { + ensureMcpServersIsMutable(); + mcpServers_.remove(index); + onChanged(); + } else { + mcpServersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * The list of McpServers.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public com.google.cloud.agentregistry.v1.McpServer.Builder getMcpServersBuilder(int index) { + return internalGetMcpServersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * The list of McpServers.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public com.google.cloud.agentregistry.v1.McpServerOrBuilder getMcpServersOrBuilder(int index) { + if (mcpServersBuilder_ == null) { + return mcpServers_.get(index); + } else { + return mcpServersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * The list of McpServers.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public java.util.List + getMcpServersOrBuilderList() { + if (mcpServersBuilder_ != null) { + return mcpServersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mcpServers_); + } + } + + /** + * + * + *
            +     * The list of McpServers.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public com.google.cloud.agentregistry.v1.McpServer.Builder addMcpServersBuilder() { + return internalGetMcpServersFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.McpServer.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of McpServers.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public com.google.cloud.agentregistry.v1.McpServer.Builder addMcpServersBuilder(int index) { + return internalGetMcpServersFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.McpServer.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of McpServers.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public java.util.List + getMcpServersBuilderList() { + return internalGetMcpServersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.McpServer, + com.google.cloud.agentregistry.v1.McpServer.Builder, + com.google.cloud.agentregistry.v1.McpServerOrBuilder> + internalGetMcpServersFieldBuilder() { + if (mcpServersBuilder_ == null) { + mcpServersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.McpServer, + com.google.cloud.agentregistry.v1.McpServer.Builder, + com.google.cloud.agentregistry.v1.McpServerOrBuilder>( + mcpServers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + mcpServers_ = null; + } + return mcpServersBuilder_; + } + + 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.ListMcpServersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListMcpServersResponse) + private static final com.google.cloud.agentregistry.v1.ListMcpServersResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListMcpServersResponse(); + } + + public static com.google.cloud.agentregistry.v1.ListMcpServersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMcpServersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.ListMcpServersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListMcpServersResponseOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListMcpServersResponseOrBuilder.java new file mode 100644 index 000000000000..5afac75094c0 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListMcpServersResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListMcpServersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListMcpServersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The list of McpServers.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + java.util.List getMcpServersList(); + + /** + * + * + *
            +   * The list of McpServers.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + com.google.cloud.agentregistry.v1.McpServer getMcpServers(int index); + + /** + * + * + *
            +   * The list of McpServers.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + int getMcpServersCount(); + + /** + * + * + *
            +   * The list of McpServers.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + java.util.List + getMcpServersOrBuilderList(); + + /** + * + * + *
            +   * The list of McpServers.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + com.google.cloud.agentregistry.v1.McpServerOrBuilder getMcpServersOrBuilder(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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListServicesRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListServicesRequest.java new file mode 100644 index 000000000000..61e644b1f2f0 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListServicesRequest.java @@ -0,0 +1,1174 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for requesting list of Services
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListServicesRequest} + */ +@com.google.protobuf.Generated +public final class ListServicesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListServicesRequest) + ListServicesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListServicesRequest"); + } + + // Use ListServicesRequest.newBuilder() to construct. + private ListServicesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListServicesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListServicesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListServicesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListServicesRequest.class, + com.google.cloud.agentregistry.v1.ListServicesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The project and location to list services in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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 project and location to list services in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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. Requested page size. Server may return fewer items than
            +   * requested. If unspecified, server will pick an appropriate default.
            +   * 
            + * + * 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 token identifying a page of results the server should return.
            +   * 
            + * + * 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 token identifying a page of results the server should return.
            +   * 
            + * + * 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. A query string used to filter the list of services returned.
            +   * The filter expression must follow AIP-160 syntax.
            +   *
            +   * Filtering is supported on the `name`, `display_name`, `description`,
            +   * and `labels` fields.
            +   *
            +   * Some examples:
            +   *
            +   * * `name = "projects/p1/locations/l1/services/s1"`
            +   * * `display_name = "my-service"`
            +   * * `description : "myservice description"`
            +   * * `labels.env = "prod"`
            +   * 
            + * + * 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. A query string used to filter the list of services returned.
            +   * The filter expression must follow AIP-160 syntax.
            +   *
            +   * Filtering is supported on the `name`, `display_name`, `description`,
            +   * and `labels` fields.
            +   *
            +   * Some examples:
            +   *
            +   * * `name = "projects/p1/locations/l1/services/s1"`
            +   * * `display_name = "my-service"`
            +   * * `description : "myservice description"`
            +   * * `labels.env = "prod"`
            +   * 
            + * + * 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + 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.agentregistry.v1.ListServicesRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListServicesRequest other = + (com.google.cloud.agentregistry.v1.ListServicesRequest) 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.agentregistry.v1.ListServicesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListServicesRequest 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.agentregistry.v1.ListServicesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListServicesRequest parseFrom( + 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.agentregistry.v1.ListServicesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListServicesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListServicesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListServicesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListServicesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListServicesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListServicesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListServicesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.ListServicesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for requesting list of Services
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListServicesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListServicesRequest) + com.google.cloud.agentregistry.v1.ListServicesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListServicesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListServicesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListServicesRequest.class, + com.google.cloud.agentregistry.v1.ListServicesRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListServicesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListServicesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListServicesRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListServicesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListServicesRequest build() { + com.google.cloud.agentregistry.v1.ListServicesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListServicesRequest buildPartial() { + com.google.cloud.agentregistry.v1.ListServicesRequest result = + new com.google.cloud.agentregistry.v1.ListServicesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ListServicesRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.ListServicesRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListServicesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListServicesRequest other) { + if (other == com.google.cloud.agentregistry.v1.ListServicesRequest.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. The project and location to list services in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to list services in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to list services in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to list services in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 project and location to list services in.
            +     * Expected format: `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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. Requested page size. Server may return fewer items than
            +     * requested. If unspecified, server will pick an appropriate default.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. Requested page size. Server may return fewer items than
            +     * requested. If unspecified, server will pick an appropriate default.
            +     * 
            + * + * 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. Requested page size. Server may return fewer items than
            +     * requested. If unspecified, server will pick an appropriate default.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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 token identifying a page of results the server should return.
            +     * 
            + * + * 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. A query string used to filter the list of services returned.
            +     * The filter expression must follow AIP-160 syntax.
            +     *
            +     * Filtering is supported on the `name`, `display_name`, `description`,
            +     * and `labels` fields.
            +     *
            +     * Some examples:
            +     *
            +     * * `name = "projects/p1/locations/l1/services/s1"`
            +     * * `display_name = "my-service"`
            +     * * `description : "myservice description"`
            +     * * `labels.env = "prod"`
            +     * 
            + * + * 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. A query string used to filter the list of services returned.
            +     * The filter expression must follow AIP-160 syntax.
            +     *
            +     * Filtering is supported on the `name`, `display_name`, `description`,
            +     * and `labels` fields.
            +     *
            +     * Some examples:
            +     *
            +     * * `name = "projects/p1/locations/l1/services/s1"`
            +     * * `display_name = "my-service"`
            +     * * `description : "myservice description"`
            +     * * `labels.env = "prod"`
            +     * 
            + * + * 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. A query string used to filter the list of services returned.
            +     * The filter expression must follow AIP-160 syntax.
            +     *
            +     * Filtering is supported on the `name`, `display_name`, `description`,
            +     * and `labels` fields.
            +     *
            +     * Some examples:
            +     *
            +     * * `name = "projects/p1/locations/l1/services/s1"`
            +     * * `display_name = "my-service"`
            +     * * `description : "myservice description"`
            +     * * `labels.env = "prod"`
            +     * 
            + * + * 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. A query string used to filter the list of services returned.
            +     * The filter expression must follow AIP-160 syntax.
            +     *
            +     * Filtering is supported on the `name`, `display_name`, `description`,
            +     * and `labels` fields.
            +     *
            +     * Some examples:
            +     *
            +     * * `name = "projects/p1/locations/l1/services/s1"`
            +     * * `display_name = "my-service"`
            +     * * `description : "myservice description"`
            +     * * `labels.env = "prod"`
            +     * 
            + * + * 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. A query string used to filter the list of services returned.
            +     * The filter expression must follow AIP-160 syntax.
            +     *
            +     * Filtering is supported on the `name`, `display_name`, `description`,
            +     * and `labels` fields.
            +     *
            +     * Some examples:
            +     *
            +     * * `name = "projects/p1/locations/l1/services/s1"`
            +     * * `display_name = "my-service"`
            +     * * `description : "myservice description"`
            +     * * `labels.env = "prod"`
            +     * 
            + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.ListServicesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListServicesRequest) + private static final com.google.cloud.agentregistry.v1.ListServicesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListServicesRequest(); + } + + public static com.google.cloud.agentregistry.v1.ListServicesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServicesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.ListServicesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListServicesRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListServicesRequestOrBuilder.java new file mode 100644 index 000000000000..293526d8c731 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListServicesRequestOrBuilder.java @@ -0,0 +1,148 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListServicesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListServicesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The project and location to list services in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The project and location to list services in.
            +   * Expected format: `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. Requested page size. Server may return fewer items than
            +   * requested. If unspecified, server will pick an appropriate default.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. A token identifying a page of results the server should return.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. A token identifying a page of results the server should return.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. A query string used to filter the list of services returned.
            +   * The filter expression must follow AIP-160 syntax.
            +   *
            +   * Filtering is supported on the `name`, `display_name`, `description`,
            +   * and `labels` fields.
            +   *
            +   * Some examples:
            +   *
            +   * * `name = "projects/p1/locations/l1/services/s1"`
            +   * * `display_name = "my-service"`
            +   * * `description : "myservice description"`
            +   * * `labels.env = "prod"`
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Optional. A query string used to filter the list of services returned.
            +   * The filter expression must follow AIP-160 syntax.
            +   *
            +   * Filtering is supported on the `name`, `display_name`, `description`,
            +   * and `labels` fields.
            +   *
            +   * Some examples:
            +   *
            +   * * `name = "projects/p1/locations/l1/services/s1"`
            +   * * `display_name = "my-service"`
            +   * * `description : "myservice description"`
            +   * * `labels.env = "prod"`
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListServicesResponse.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListServicesResponse.java new file mode 100644 index 000000000000..02253a84eeb9 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListServicesResponse.java @@ -0,0 +1,1172 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for response to listing Services
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListServicesResponse} + */ +@com.google.protobuf.Generated +public final class ListServicesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.ListServicesResponse) + ListServicesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListServicesResponse"); + } + + // Use ListServicesResponse.newBuilder() to construct. + private ListServicesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListServicesResponse() { + services_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListServicesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListServicesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListServicesResponse.class, + com.google.cloud.agentregistry.v1.ListServicesResponse.Builder.class); + } + + public static final int SERVICES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List services_; + + /** + * + * + *
            +   * The list of Service resources matching the parent and filter criteria in
            +   * the request. Each Service resource follows the format:
            +   * `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + @java.lang.Override + public java.util.List getServicesList() { + return services_; + } + + /** + * + * + *
            +   * The list of Service resources matching the parent and filter criteria in
            +   * the request. Each Service resource follows the format:
            +   * `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + @java.lang.Override + public java.util.List + getServicesOrBuilderList() { + return services_; + } + + /** + * + * + *
            +   * The list of Service resources matching the parent and filter criteria in
            +   * the request. Each Service resource follows the format:
            +   * `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + @java.lang.Override + public int getServicesCount() { + return services_.size(); + } + + /** + * + * + *
            +   * The list of Service resources matching the parent and filter criteria in
            +   * the request. Each Service resource follows the format:
            +   * `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service getServices(int index) { + return services_.get(index); + } + + /** + * + * + *
            +   * The list of Service resources matching the parent and filter criteria in
            +   * the request. Each Service resource follows the format:
            +   * `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.ServiceOrBuilder getServicesOrBuilder(int index) { + return services_.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.
            +   * Used in
            +   * [page_token][google.cloud.agentregistry.v1main.ListServicesRequest.page_token].
            +   * 
            + * + * 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.
            +   * Used in
            +   * [page_token][google.cloud.agentregistry.v1main.ListServicesRequest.page_token].
            +   * 
            + * + * 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 < services_.size(); i++) { + output.writeMessage(1, services_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < services_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, services_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.agentregistry.v1.ListServicesResponse)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.ListServicesResponse other = + (com.google.cloud.agentregistry.v1.ListServicesResponse) obj; + + if (!getServicesList().equals(other.getServicesList())) 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 (getServicesCount() > 0) { + hash = (37 * hash) + SERVICES_FIELD_NUMBER; + hash = (53 * hash) + getServicesList().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.agentregistry.v1.ListServicesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListServicesResponse 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.agentregistry.v1.ListServicesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListServicesResponse parseFrom( + 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.agentregistry.v1.ListServicesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.ListServicesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListServicesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListServicesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListServicesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListServicesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.ListServicesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.ListServicesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.ListServicesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for response to listing Services
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.ListServicesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.ListServicesResponse) + com.google.cloud.agentregistry.v1.ListServicesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListServicesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListServicesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.ListServicesResponse.class, + com.google.cloud.agentregistry.v1.ListServicesResponse.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.ListServicesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (servicesBuilder_ == null) { + services_ = java.util.Collections.emptyList(); + } else { + services_ = null; + servicesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_ListServicesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListServicesResponse getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.ListServicesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListServicesResponse build() { + com.google.cloud.agentregistry.v1.ListServicesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.ListServicesResponse buildPartial() { + com.google.cloud.agentregistry.v1.ListServicesResponse result = + new com.google.cloud.agentregistry.v1.ListServicesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentregistry.v1.ListServicesResponse result) { + if (servicesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + services_ = java.util.Collections.unmodifiableList(services_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.services_ = services_; + } else { + result.services_ = servicesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.ListServicesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.ListServicesResponse) { + return mergeFrom((com.google.cloud.agentregistry.v1.ListServicesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.ListServicesResponse other) { + if (other == com.google.cloud.agentregistry.v1.ListServicesResponse.getDefaultInstance()) + return this; + if (servicesBuilder_ == null) { + if (!other.services_.isEmpty()) { + if (services_.isEmpty()) { + services_ = other.services_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureServicesIsMutable(); + services_.addAll(other.services_); + } + onChanged(); + } + } else { + if (!other.services_.isEmpty()) { + if (servicesBuilder_.isEmpty()) { + servicesBuilder_.dispose(); + servicesBuilder_ = null; + services_ = other.services_; + bitField0_ = (bitField0_ & ~0x00000001); + servicesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetServicesFieldBuilder() + : null; + } else { + servicesBuilder_.addAllMessages(other.services_); + } + } + } + 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.agentregistry.v1.Service m = + input.readMessage( + com.google.cloud.agentregistry.v1.Service.parser(), extensionRegistry); + if (servicesBuilder_ == null) { + ensureServicesIsMutable(); + services_.add(m); + } else { + servicesBuilder_.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 services_ = + java.util.Collections.emptyList(); + + private void ensureServicesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + services_ = new java.util.ArrayList(services_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Service, + com.google.cloud.agentregistry.v1.Service.Builder, + com.google.cloud.agentregistry.v1.ServiceOrBuilder> + servicesBuilder_; + + /** + * + * + *
            +     * The list of Service resources matching the parent and filter criteria in
            +     * the request. Each Service resource follows the format:
            +     * `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + public java.util.List getServicesList() { + if (servicesBuilder_ == null) { + return java.util.Collections.unmodifiableList(services_); + } else { + return servicesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * The list of Service resources matching the parent and filter criteria in
            +     * the request. Each Service resource follows the format:
            +     * `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + public int getServicesCount() { + if (servicesBuilder_ == null) { + return services_.size(); + } else { + return servicesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * The list of Service resources matching the parent and filter criteria in
            +     * the request. Each Service resource follows the format:
            +     * `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + public com.google.cloud.agentregistry.v1.Service getServices(int index) { + if (servicesBuilder_ == null) { + return services_.get(index); + } else { + return servicesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * The list of Service resources matching the parent and filter criteria in
            +     * the request. Each Service resource follows the format:
            +     * `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + public Builder setServices(int index, com.google.cloud.agentregistry.v1.Service value) { + if (servicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServicesIsMutable(); + services_.set(index, value); + onChanged(); + } else { + servicesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of Service resources matching the parent and filter criteria in
            +     * the request. Each Service resource follows the format:
            +     * `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + public Builder setServices( + int index, com.google.cloud.agentregistry.v1.Service.Builder builderForValue) { + if (servicesBuilder_ == null) { + ensureServicesIsMutable(); + services_.set(index, builderForValue.build()); + onChanged(); + } else { + servicesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Service resources matching the parent and filter criteria in
            +     * the request. Each Service resource follows the format:
            +     * `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + public Builder addServices(com.google.cloud.agentregistry.v1.Service value) { + if (servicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServicesIsMutable(); + services_.add(value); + onChanged(); + } else { + servicesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * The list of Service resources matching the parent and filter criteria in
            +     * the request. Each Service resource follows the format:
            +     * `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + public Builder addServices(int index, com.google.cloud.agentregistry.v1.Service value) { + if (servicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureServicesIsMutable(); + services_.add(index, value); + onChanged(); + } else { + servicesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The list of Service resources matching the parent and filter criteria in
            +     * the request. Each Service resource follows the format:
            +     * `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + public Builder addServices(com.google.cloud.agentregistry.v1.Service.Builder builderForValue) { + if (servicesBuilder_ == null) { + ensureServicesIsMutable(); + services_.add(builderForValue.build()); + onChanged(); + } else { + servicesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Service resources matching the parent and filter criteria in
            +     * the request. Each Service resource follows the format:
            +     * `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + public Builder addServices( + int index, com.google.cloud.agentregistry.v1.Service.Builder builderForValue) { + if (servicesBuilder_ == null) { + ensureServicesIsMutable(); + services_.add(index, builderForValue.build()); + onChanged(); + } else { + servicesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The list of Service resources matching the parent and filter criteria in
            +     * the request. Each Service resource follows the format:
            +     * `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + public Builder addAllServices( + java.lang.Iterable values) { + if (servicesBuilder_ == null) { + ensureServicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, services_); + onChanged(); + } else { + servicesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * The list of Service resources matching the parent and filter criteria in
            +     * the request. Each Service resource follows the format:
            +     * `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + public Builder clearServices() { + if (servicesBuilder_ == null) { + services_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + servicesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The list of Service resources matching the parent and filter criteria in
            +     * the request. Each Service resource follows the format:
            +     * `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + public Builder removeServices(int index) { + if (servicesBuilder_ == null) { + ensureServicesIsMutable(); + services_.remove(index); + onChanged(); + } else { + servicesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * The list of Service resources matching the parent and filter criteria in
            +     * the request. Each Service resource follows the format:
            +     * `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + public com.google.cloud.agentregistry.v1.Service.Builder getServicesBuilder(int index) { + return internalGetServicesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * The list of Service resources matching the parent and filter criteria in
            +     * the request. Each Service resource follows the format:
            +     * `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + public com.google.cloud.agentregistry.v1.ServiceOrBuilder getServicesOrBuilder(int index) { + if (servicesBuilder_ == null) { + return services_.get(index); + } else { + return servicesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * The list of Service resources matching the parent and filter criteria in
            +     * the request. Each Service resource follows the format:
            +     * `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + public java.util.List + getServicesOrBuilderList() { + if (servicesBuilder_ != null) { + return servicesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(services_); + } + } + + /** + * + * + *
            +     * The list of Service resources matching the parent and filter criteria in
            +     * the request. Each Service resource follows the format:
            +     * `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + public com.google.cloud.agentregistry.v1.Service.Builder addServicesBuilder() { + return internalGetServicesFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.Service.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of Service resources matching the parent and filter criteria in
            +     * the request. Each Service resource follows the format:
            +     * `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + public com.google.cloud.agentregistry.v1.Service.Builder addServicesBuilder(int index) { + return internalGetServicesFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.Service.getDefaultInstance()); + } + + /** + * + * + *
            +     * The list of Service resources matching the parent and filter criteria in
            +     * the request. Each Service resource follows the format:
            +     * `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + public java.util.List + getServicesBuilderList() { + return internalGetServicesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Service, + com.google.cloud.agentregistry.v1.Service.Builder, + com.google.cloud.agentregistry.v1.ServiceOrBuilder> + internalGetServicesFieldBuilder() { + if (servicesBuilder_ == null) { + servicesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Service, + com.google.cloud.agentregistry.v1.Service.Builder, + com.google.cloud.agentregistry.v1.ServiceOrBuilder>( + services_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + services_ = null; + } + return servicesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token identifying a page of results the server should return.
            +     * Used in
            +     * [page_token][google.cloud.agentregistry.v1main.ListServicesRequest.page_token].
            +     * 
            + * + * 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.
            +     * Used in
            +     * [page_token][google.cloud.agentregistry.v1main.ListServicesRequest.page_token].
            +     * 
            + * + * 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.
            +     * Used in
            +     * [page_token][google.cloud.agentregistry.v1main.ListServicesRequest.page_token].
            +     * 
            + * + * 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.
            +     * Used in
            +     * [page_token][google.cloud.agentregistry.v1main.ListServicesRequest.page_token].
            +     * 
            + * + * 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.
            +     * Used in
            +     * [page_token][google.cloud.agentregistry.v1main.ListServicesRequest.page_token].
            +     * 
            + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.ListServicesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.ListServicesResponse) + private static final com.google.cloud.agentregistry.v1.ListServicesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.ListServicesResponse(); + } + + public static com.google.cloud.agentregistry.v1.ListServicesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListServicesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.ListServicesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListServicesResponseOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListServicesResponseOrBuilder.java new file mode 100644 index 000000000000..5afe8c22c8a9 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ListServicesResponseOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ListServicesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.ListServicesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The list of Service resources matching the parent and filter criteria in
            +   * the request. Each Service resource follows the format:
            +   * `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + java.util.List getServicesList(); + + /** + * + * + *
            +   * The list of Service resources matching the parent and filter criteria in
            +   * the request. Each Service resource follows the format:
            +   * `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + com.google.cloud.agentregistry.v1.Service getServices(int index); + + /** + * + * + *
            +   * The list of Service resources matching the parent and filter criteria in
            +   * the request. Each Service resource follows the format:
            +   * `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + int getServicesCount(); + + /** + * + * + *
            +   * The list of Service resources matching the parent and filter criteria in
            +   * the request. Each Service resource follows the format:
            +   * `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + java.util.List + getServicesOrBuilderList(); + + /** + * + * + *
            +   * The list of Service resources matching the parent and filter criteria in
            +   * the request. Each Service resource follows the format:
            +   * `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Service services = 1; + */ + com.google.cloud.agentregistry.v1.ServiceOrBuilder getServicesOrBuilder(int index); + + /** + * + * + *
            +   * A token identifying a page of results the server should return.
            +   * Used in
            +   * [page_token][google.cloud.agentregistry.v1main.ListServicesRequest.page_token].
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token identifying a page of results the server should return.
            +   * Used in
            +   * [page_token][google.cloud.agentregistry.v1main.ListServicesRequest.page_token].
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/LocationName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/LocationName.java new file mode 100644 index 000000000000..e57dd2193634 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/LocationName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.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-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServer.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServer.java new file mode 100644 index 000000000000..89bc6699b268 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServer.java @@ -0,0 +1,5725 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/mcp_server.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Represents an MCP (Model Context Protocol) Server.
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.McpServer} + */ +@com.google.protobuf.Generated +public final class McpServer extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.McpServer) + McpServerOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "McpServer"); + } + + // Use McpServer.newBuilder() to construct. + private McpServer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private McpServer() { + name_ = ""; + mcpServerId_ = ""; + displayName_ = ""; + description_ = ""; + interfaces_ = java.util.Collections.emptyList(); + tools_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.McpServerProto + .internal_static_google_cloud_agentregistry_v1_McpServer_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.McpServerProto + .internal_static_google_cloud_agentregistry_v1_McpServer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.McpServer.class, + com.google.cloud.agentregistry.v1.McpServer.Builder.class); + } + + public interface ToolOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.McpServer.Tool) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Output only. Human-readable name of the tool.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +     * Output only. Human-readable name of the tool.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +     * Output only. Description of what the tool does.
            +     * 
            + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
            +     * Output only. Description of what the tool does.
            +     * 
            + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
            +     * Output only. Annotations associated with the tool.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the annotations field is set. + */ + boolean hasAnnotations(); + + /** + * + * + *
            +     * Output only. Annotations associated with the tool.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The annotations. + */ + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations getAnnotations(); + + /** + * + * + *
            +     * Output only. Annotations associated with the tool.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.agentregistry.v1.McpServer.Tool.AnnotationsOrBuilder getAnnotationsOrBuilder(); + } + + /** + * + * + *
            +   * Represents a single tool provided by an MCP Server.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.McpServer.Tool} + */ + public static final class Tool extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.McpServer.Tool) + ToolOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Tool"); + } + + // Use Tool.newBuilder() to construct. + private Tool(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Tool() { + name_ = ""; + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.McpServerProto + .internal_static_google_cloud_agentregistry_v1_McpServer_Tool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.McpServerProto + .internal_static_google_cloud_agentregistry_v1_McpServer_Tool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.McpServer.Tool.class, + com.google.cloud.agentregistry.v1.McpServer.Tool.Builder.class); + } + + public interface AnnotationsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.McpServer.Tool.Annotations) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Output only. A human-readable title for the tool.
            +       * 
            + * + * string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
            +       * Output only. A human-readable title for the tool.
            +       * 
            + * + * string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
            +       * Output only. If true, the tool may perform destructive updates to its
            +       * environment. If false, the tool performs only additive updates. NOTE:
            +       * This property is meaningful only when `read_only_hint == false`
            +       * Default: true
            +       * 
            + * + * bool destructive_hint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The destructiveHint. + */ + boolean getDestructiveHint(); + + /** + * + * + *
            +       * Output only. If true, calling the tool repeatedly with the same
            +       * arguments will have no additional effect on its environment. NOTE: This
            +       * property is meaningful only when `read_only_hint == false` Default:
            +       * false
            +       * 
            + * + * bool idempotent_hint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The idempotentHint. + */ + boolean getIdempotentHint(); + + /** + * + * + *
            +       * Output only. If true, this tool may interact with an "open world" of
            +       * external entities. If false, the tool's domain of interaction is
            +       * closed. For example, the world of a web search tool is open, whereas
            +       * that of a memory tool is not. Default: true
            +       * 
            + * + * bool open_world_hint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The openWorldHint. + */ + boolean getOpenWorldHint(); + + /** + * + * + *
            +       * Output only. If true, the tool does not modify its environment.
            +       * Default: false
            +       * 
            + * + * bool read_only_hint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The readOnlyHint. + */ + boolean getReadOnlyHint(); + } + + /** + * + * + *
            +     * Annotations describing the characteristics and behavior of a tool or
            +     * operation.
            +     * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.McpServer.Tool.Annotations} + */ + public static final class Annotations extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.McpServer.Tool.Annotations) + AnnotationsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Annotations"); + } + + // Use Annotations.newBuilder() to construct. + private Annotations(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Annotations() { + title_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.McpServerProto + .internal_static_google_cloud_agentregistry_v1_McpServer_Tool_Annotations_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.McpServerProto + .internal_static_google_cloud_agentregistry_v1_McpServer_Tool_Annotations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.class, + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.Builder.class); + } + + public static final int TITLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
            +       * Output only. A human-readable title for the tool.
            +       * 
            + * + * string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +       * Output only. A human-readable title for the tool.
            +       * 
            + * + * string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + public static final int DESTRUCTIVE_HINT_FIELD_NUMBER = 2; + private boolean destructiveHint_ = false; + + /** + * + * + *
            +       * Output only. If true, the tool may perform destructive updates to its
            +       * environment. If false, the tool performs only additive updates. NOTE:
            +       * This property is meaningful only when `read_only_hint == false`
            +       * Default: true
            +       * 
            + * + * bool destructive_hint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The destructiveHint. + */ + @java.lang.Override + public boolean getDestructiveHint() { + return destructiveHint_; + } + + public static final int IDEMPOTENT_HINT_FIELD_NUMBER = 3; + private boolean idempotentHint_ = false; + + /** + * + * + *
            +       * Output only. If true, calling the tool repeatedly with the same
            +       * arguments will have no additional effect on its environment. NOTE: This
            +       * property is meaningful only when `read_only_hint == false` Default:
            +       * false
            +       * 
            + * + * bool idempotent_hint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The idempotentHint. + */ + @java.lang.Override + public boolean getIdempotentHint() { + return idempotentHint_; + } + + public static final int OPEN_WORLD_HINT_FIELD_NUMBER = 4; + private boolean openWorldHint_ = false; + + /** + * + * + *
            +       * Output only. If true, this tool may interact with an "open world" of
            +       * external entities. If false, the tool's domain of interaction is
            +       * closed. For example, the world of a web search tool is open, whereas
            +       * that of a memory tool is not. Default: true
            +       * 
            + * + * bool open_world_hint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The openWorldHint. + */ + @java.lang.Override + public boolean getOpenWorldHint() { + return openWorldHint_; + } + + public static final int READ_ONLY_HINT_FIELD_NUMBER = 5; + private boolean readOnlyHint_ = false; + + /** + * + * + *
            +       * Output only. If true, the tool does not modify its environment.
            +       * Default: false
            +       * 
            + * + * bool read_only_hint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The readOnlyHint. + */ + @java.lang.Override + public boolean getReadOnlyHint() { + return readOnlyHint_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, title_); + } + if (destructiveHint_ != false) { + output.writeBool(2, destructiveHint_); + } + if (idempotentHint_ != false) { + output.writeBool(3, idempotentHint_); + } + if (openWorldHint_ != false) { + output.writeBool(4, openWorldHint_); + } + if (readOnlyHint_ != false) { + output.writeBool(5, readOnlyHint_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, title_); + } + if (destructiveHint_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, destructiveHint_); + } + if (idempotentHint_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, idempotentHint_); + } + if (openWorldHint_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, openWorldHint_); + } + if (readOnlyHint_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, readOnlyHint_); + } + 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.agentregistry.v1.McpServer.Tool.Annotations)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations other = + (com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations) obj; + + if (!getTitle().equals(other.getTitle())) return false; + if (getDestructiveHint() != other.getDestructiveHint()) return false; + if (getIdempotentHint() != other.getIdempotentHint()) return false; + if (getOpenWorldHint() != other.getOpenWorldHint()) return false; + if (getReadOnlyHint() != other.getReadOnlyHint()) 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) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + DESTRUCTIVE_HINT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDestructiveHint()); + hash = (37 * hash) + IDEMPOTENT_HINT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIdempotentHint()); + hash = (37 * hash) + OPEN_WORLD_HINT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOpenWorldHint()); + hash = (37 * hash) + READ_ONLY_HINT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReadOnlyHint()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations 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.agentregistry.v1.McpServer.Tool.Annotations parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations parseFrom( + 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.agentregistry.v1.McpServer.Tool.Annotations parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Annotations describing the characteristics and behavior of a tool or
            +       * operation.
            +       * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.McpServer.Tool.Annotations} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.McpServer.Tool.Annotations) + com.google.cloud.agentregistry.v1.McpServer.Tool.AnnotationsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.McpServerProto + .internal_static_google_cloud_agentregistry_v1_McpServer_Tool_Annotations_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.McpServerProto + .internal_static_google_cloud_agentregistry_v1_McpServer_Tool_Annotations_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.class, + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + title_ = ""; + destructiveHint_ = false; + idempotentHint_ = false; + openWorldHint_ = false; + readOnlyHint_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.McpServerProto + .internal_static_google_cloud_agentregistry_v1_McpServer_Tool_Annotations_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations + getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations build() { + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations buildPartial() { + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations result = + new com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.destructiveHint_ = destructiveHint_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.idempotentHint_ = idempotentHint_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.openWorldHint_ = openWorldHint_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.readOnlyHint_ = readOnlyHint_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations) { + return mergeFrom((com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations other) { + if (other + == com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.getDefaultInstance()) + return this; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getDestructiveHint() != false) { + setDestructiveHint(other.getDestructiveHint()); + } + if (other.getIdempotentHint() != false) { + setIdempotentHint(other.getIdempotentHint()); + } + if (other.getOpenWorldHint() != false) { + setOpenWorldHint(other.getOpenWorldHint()); + } + if (other.getReadOnlyHint() != false) { + setReadOnlyHint(other.getReadOnlyHint()); + } + 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: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + destructiveHint_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + idempotentHint_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + openWorldHint_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + readOnlyHint_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object title_ = ""; + + /** + * + * + *
            +         * Output only. A human-readable title for the tool.
            +         * 
            + * + * string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +         * Output only. A human-readable title for the tool.
            +         * 
            + * + * string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +         * Output only. A human-readable title for the tool.
            +         * 
            + * + * string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. A human-readable title for the tool.
            +         * 
            + * + * string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. A human-readable title for the tool.
            +         * 
            + * + * string title = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean destructiveHint_; + + /** + * + * + *
            +         * Output only. If true, the tool may perform destructive updates to its
            +         * environment. If false, the tool performs only additive updates. NOTE:
            +         * This property is meaningful only when `read_only_hint == false`
            +         * Default: true
            +         * 
            + * + * bool destructive_hint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The destructiveHint. + */ + @java.lang.Override + public boolean getDestructiveHint() { + return destructiveHint_; + } + + /** + * + * + *
            +         * Output only. If true, the tool may perform destructive updates to its
            +         * environment. If false, the tool performs only additive updates. NOTE:
            +         * This property is meaningful only when `read_only_hint == false`
            +         * Default: true
            +         * 
            + * + * bool destructive_hint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The destructiveHint to set. + * @return This builder for chaining. + */ + public Builder setDestructiveHint(boolean value) { + + destructiveHint_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. If true, the tool may perform destructive updates to its
            +         * environment. If false, the tool performs only additive updates. NOTE:
            +         * This property is meaningful only when `read_only_hint == false`
            +         * Default: true
            +         * 
            + * + * bool destructive_hint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDestructiveHint() { + bitField0_ = (bitField0_ & ~0x00000002); + destructiveHint_ = false; + onChanged(); + return this; + } + + private boolean idempotentHint_; + + /** + * + * + *
            +         * Output only. If true, calling the tool repeatedly with the same
            +         * arguments will have no additional effect on its environment. NOTE: This
            +         * property is meaningful only when `read_only_hint == false` Default:
            +         * false
            +         * 
            + * + * bool idempotent_hint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The idempotentHint. + */ + @java.lang.Override + public boolean getIdempotentHint() { + return idempotentHint_; + } + + /** + * + * + *
            +         * Output only. If true, calling the tool repeatedly with the same
            +         * arguments will have no additional effect on its environment. NOTE: This
            +         * property is meaningful only when `read_only_hint == false` Default:
            +         * false
            +         * 
            + * + * bool idempotent_hint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The idempotentHint to set. + * @return This builder for chaining. + */ + public Builder setIdempotentHint(boolean value) { + + idempotentHint_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. If true, calling the tool repeatedly with the same
            +         * arguments will have no additional effect on its environment. NOTE: This
            +         * property is meaningful only when `read_only_hint == false` Default:
            +         * false
            +         * 
            + * + * bool idempotent_hint = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIdempotentHint() { + bitField0_ = (bitField0_ & ~0x00000004); + idempotentHint_ = false; + onChanged(); + return this; + } + + private boolean openWorldHint_; + + /** + * + * + *
            +         * Output only. If true, this tool may interact with an "open world" of
            +         * external entities. If false, the tool's domain of interaction is
            +         * closed. For example, the world of a web search tool is open, whereas
            +         * that of a memory tool is not. Default: true
            +         * 
            + * + * bool open_world_hint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The openWorldHint. + */ + @java.lang.Override + public boolean getOpenWorldHint() { + return openWorldHint_; + } + + /** + * + * + *
            +         * Output only. If true, this tool may interact with an "open world" of
            +         * external entities. If false, the tool's domain of interaction is
            +         * closed. For example, the world of a web search tool is open, whereas
            +         * that of a memory tool is not. Default: true
            +         * 
            + * + * bool open_world_hint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The openWorldHint to set. + * @return This builder for chaining. + */ + public Builder setOpenWorldHint(boolean value) { + + openWorldHint_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. If true, this tool may interact with an "open world" of
            +         * external entities. If false, the tool's domain of interaction is
            +         * closed. For example, the world of a web search tool is open, whereas
            +         * that of a memory tool is not. Default: true
            +         * 
            + * + * bool open_world_hint = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearOpenWorldHint() { + bitField0_ = (bitField0_ & ~0x00000008); + openWorldHint_ = false; + onChanged(); + return this; + } + + private boolean readOnlyHint_; + + /** + * + * + *
            +         * Output only. If true, the tool does not modify its environment.
            +         * Default: false
            +         * 
            + * + * bool read_only_hint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The readOnlyHint. + */ + @java.lang.Override + public boolean getReadOnlyHint() { + return readOnlyHint_; + } + + /** + * + * + *
            +         * Output only. If true, the tool does not modify its environment.
            +         * Default: false
            +         * 
            + * + * bool read_only_hint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The readOnlyHint to set. + * @return This builder for chaining. + */ + public Builder setReadOnlyHint(boolean value) { + + readOnlyHint_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Output only. If true, the tool does not modify its environment.
            +         * Default: false
            +         * 
            + * + * bool read_only_hint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearReadOnlyHint() { + bitField0_ = (bitField0_ & ~0x00000010); + readOnlyHint_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.McpServer.Tool.Annotations) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.McpServer.Tool.Annotations) + private static final com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations(); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Annotations parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.McpServer.Tool.Annotations + 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. Human-readable name of the tool.
            +     * 
            + * + * 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. Human-readable name of the tool.
            +     * 
            + * + * 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 DESCRIPTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
            +     * Output only. Description of what the tool does.
            +     * 
            + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
            +     * Output only. Description of what the tool does.
            +     * 
            + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 3; + private com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations_; + + /** + * + * + *
            +     * Output only. Annotations associated with the tool.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the annotations field is set. + */ + @java.lang.Override + public boolean hasAnnotations() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Output only. Annotations associated with the tool.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The annotations. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations getAnnotations() { + return annotations_ == null + ? com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.getDefaultInstance() + : annotations_; + } + + /** + * + * + *
            +     * Output only. Annotations associated with the tool.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.McpServer.Tool.AnnotationsOrBuilder + getAnnotationsOrBuilder() { + return annotations_ == null + ? com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.getDefaultInstance() + : annotations_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAnnotations()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAnnotations()); + } + 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.agentregistry.v1.McpServer.Tool)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.McpServer.Tool other = + (com.google.cloud.agentregistry.v1.McpServer.Tool) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (hasAnnotations() != other.hasAnnotations()) return false; + if (hasAnnotations()) { + if (!getAnnotations().equals(other.getAnnotations())) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasAnnotations()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAnnotations().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool 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.agentregistry.v1.McpServer.Tool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool parseFrom( + 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.agentregistry.v1.McpServer.Tool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.agentregistry.v1.McpServer.Tool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Represents a single tool provided by an MCP Server.
            +     * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.McpServer.Tool} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.McpServer.Tool) + com.google.cloud.agentregistry.v1.McpServer.ToolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.McpServerProto + .internal_static_google_cloud_agentregistry_v1_McpServer_Tool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.McpServerProto + .internal_static_google_cloud_agentregistry_v1_McpServer_Tool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.McpServer.Tool.class, + com.google.cloud.agentregistry.v1.McpServer.Tool.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.McpServer.Tool.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAnnotationsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + description_ = ""; + annotations_ = null; + if (annotationsBuilder_ != null) { + annotationsBuilder_.dispose(); + annotationsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.McpServerProto + .internal_static_google_cloud_agentregistry_v1_McpServer_Tool_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.McpServer.Tool getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.McpServer.Tool.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.McpServer.Tool build() { + com.google.cloud.agentregistry.v1.McpServer.Tool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.McpServer.Tool buildPartial() { + com.google.cloud.agentregistry.v1.McpServer.Tool result = + new com.google.cloud.agentregistry.v1.McpServer.Tool(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.McpServer.Tool result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.annotations_ = + annotationsBuilder_ == null ? annotations_ : annotationsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.McpServer.Tool) { + return mergeFrom((com.google.cloud.agentregistry.v1.McpServer.Tool) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.McpServer.Tool other) { + if (other == com.google.cloud.agentregistry.v1.McpServer.Tool.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAnnotations()) { + mergeAnnotations(other.getAnnotations()); + } + 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: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAnnotationsFieldBuilder().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 name_ = ""; + + /** + * + * + *
            +       * Output only. Human-readable name of the tool.
            +       * 
            + * + * 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; + } + } + + /** + * + * + *
            +       * Output only. Human-readable name of the tool.
            +       * 
            + * + * 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. Human-readable name of the tool.
            +       * 
            + * + * 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. Human-readable name of the tool.
            +       * 
            + * + * 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. Human-readable name of the tool.
            +       * 
            + * + * 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; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
            +       * Output only. Description of what the tool does.
            +       * 
            + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Output only. Description of what the tool does.
            +       * 
            + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Output only. Description of what the tool does.
            +       * 
            + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Description of what the tool does.
            +       * 
            + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Description of what the tool does.
            +       * 
            + * + * string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations, + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.Builder, + com.google.cloud.agentregistry.v1.McpServer.Tool.AnnotationsOrBuilder> + annotationsBuilder_; + + /** + * + * + *
            +       * Output only. Annotations associated with the tool.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the annotations field is set. + */ + public boolean hasAnnotations() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +       * Output only. Annotations associated with the tool.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The annotations. + */ + public com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations getAnnotations() { + if (annotationsBuilder_ == null) { + return annotations_ == null + ? com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.getDefaultInstance() + : annotations_; + } else { + return annotationsBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Output only. Annotations associated with the tool.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAnnotations( + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations value) { + if (annotationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annotations_ = value; + } else { + annotationsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Annotations associated with the tool.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAnnotations( + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.Builder builderForValue) { + if (annotationsBuilder_ == null) { + annotations_ = builderForValue.build(); + } else { + annotationsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Annotations associated with the tool.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAnnotations( + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations value) { + if (annotationsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && annotations_ != null + && annotations_ + != com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations + .getDefaultInstance()) { + getAnnotationsBuilder().mergeFrom(value); + } else { + annotations_ = value; + } + } else { + annotationsBuilder_.mergeFrom(value); + } + if (annotations_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Output only. Annotations associated with the tool.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000004); + annotations_ = null; + if (annotationsBuilder_ != null) { + annotationsBuilder_.dispose(); + annotationsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Annotations associated with the tool.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.Builder + getAnnotationsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAnnotationsFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Output only. Annotations associated with the tool.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.McpServer.Tool.AnnotationsOrBuilder + getAnnotationsOrBuilder() { + if (annotationsBuilder_ != null) { + return annotationsBuilder_.getMessageOrBuilder(); + } else { + return annotations_ == null + ? com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.getDefaultInstance() + : annotations_; + } + } + + /** + * + * + *
            +       * Output only. Annotations associated with the tool.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.McpServer.Tool.Annotations annotations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations, + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.Builder, + com.google.cloud.agentregistry.v1.McpServer.Tool.AnnotationsOrBuilder> + internalGetAnnotationsFieldBuilder() { + if (annotationsBuilder_ == null) { + annotationsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations, + com.google.cloud.agentregistry.v1.McpServer.Tool.Annotations.Builder, + com.google.cloud.agentregistry.v1.McpServer.Tool.AnnotationsOrBuilder>( + getAnnotations(), getParentForChildren(), isClean()); + annotations_ = null; + } + return annotationsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.McpServer.Tool) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.McpServer.Tool) + private static final com.google.cloud.agentregistry.v1.McpServer.Tool DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.McpServer.Tool(); + } + + public static com.google.cloud.agentregistry.v1.McpServer.Tool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.McpServer.Tool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Identifier. The resource name of the MCP Server.
            +   * Format: `projects/{project}/locations/{location}/mcpServers/{mcp_server}`.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Identifier. The resource name of the MCP Server.
            +   * Format: `projects/{project}/locations/{location}/mcpServers/{mcp_server}`.
            +   * 
            + * + * 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 MCP_SERVER_ID_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object mcpServerId_ = ""; + + /** + * + * + *
            +   * Output only. A stable, globally unique identifier for MCP Servers.
            +   * 
            + * + * string mcp_server_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mcpServerId. + */ + @java.lang.Override + public java.lang.String getMcpServerId() { + java.lang.Object ref = mcpServerId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mcpServerId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. A stable, globally unique identifier for MCP Servers.
            +   * 
            + * + * string mcp_server_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mcpServerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMcpServerIdBytes() { + java.lang.Object ref = mcpServerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mcpServerId_ = 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_ = ""; + + /** + * + * + *
            +   * Output only. The display name of the MCP Server.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 display name of the MCP Server.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
            +   * Output only. The description of the MCP Server.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. The description of the MCP Server.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERFACES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List interfaces_; + + /** + * + * + *
            +   * Output only. The connection details for the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getInterfacesList() { + return interfaces_; + } + + /** + * + * + *
            +   * Output only. The connection details for the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getInterfacesOrBuilderList() { + return interfaces_; + } + + /** + * + * + *
            +   * Output only. The connection details for the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getInterfacesCount() { + return interfaces_.size(); + } + + /** + * + * + *
            +   * Output only. The connection details for the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Interface getInterfaces(int index) { + return interfaces_.get(index); + } + + /** + * + * + *
            +   * Output only. The connection details for the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.InterfaceOrBuilder getInterfacesOrBuilder(int index) { + return interfaces_.get(index); + } + + public static final int TOOLS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List tools_; + + /** + * + * + *
            +   * Output only. Tools provided by the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getToolsList() { + return tools_; + } + + /** + * + * + *
            +   * Output only. Tools provided by the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getToolsOrBuilderList() { + return tools_; + } + + /** + * + * + *
            +   * Output only. Tools provided by the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getToolsCount() { + return tools_.size(); + } + + /** + * + * + *
            +   * Output only. Tools provided by the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.McpServer.Tool getTools(int index) { + return tools_.get(index); + } + + /** + * + * + *
            +   * Output only. Tools provided by the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.McpServer.ToolOrBuilder getToolsOrBuilder(int index) { + return tools_.get(index); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. Create time.
            +   * 
            + * + * .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. Create time.
            +   * 
            + * + * .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. Create time.
            +   * 
            + * + * .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. Update time.
            +   * 
            + * + * .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. Update time.
            +   * 
            + * + * .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. Update time.
            +   * 
            + * + * .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 ATTRIBUTES_FIELD_NUMBER = 8; + + private static final class AttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry + defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.agentregistry.v1.McpServerProto + .internal_static_google_cloud_agentregistry_v1_McpServer_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.protobuf.Struct.getDefaultInstance()); + } + + @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(); + } + + /** + * + * + *
            +   * Output only. Attributes of the MCP Server.
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +   * "principal://..."} - the runtime identity associated with the MCP Server.
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +   * - the URI of the underlying resource hosting the MCP Server, for
            +   * example, the GKE Deployment.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @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(); + } + + /** + * + * + *
            +   * Output only. Attributes of the MCP Server.
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +   * "principal://..."} - the runtime identity associated with the MCP Server.
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +   * - the URI of the underlying resource hosting the MCP Server, for
            +   * example, the GKE Deployment.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + + /** + * + * + *
            +   * Output only. Attributes of the MCP Server.
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +   * "principal://..."} - the runtime identity associated with the MCP Server.
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +   * - the URI of the underlying resource hosting the MCP Server, for
            +   * example, the GKE Deployment.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.protobuf.Struct getAttributesOrDefault( + java.lang.String key, + /* nullable */ + com.google.protobuf.Struct defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Output only. Attributes of the MCP Server.
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +   * "principal://..."} - the runtime identity associated with the MCP Server.
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +   * - the URI of the underlying resource hosting the MCP Server, for
            +   * example, the GKE Deployment.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.Struct 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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + for (int i = 0; i < interfaces_.size(); i++) { + output.writeMessage(4, interfaces_.get(i)); + } + for (int i = 0; i < tools_.size(); i++) { + output.writeMessage(5, tools_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetAttributes(), AttributesDefaultEntryHolder.defaultEntry, 8); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mcpServerId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, mcpServerId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + for (int i = 0; i < interfaces_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, interfaces_.get(i)); + } + for (int i = 0; i < tools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, tools_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + } + 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(8, attributes__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mcpServerId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, mcpServerId_); + } + 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.agentregistry.v1.McpServer)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.McpServer other = + (com.google.cloud.agentregistry.v1.McpServer) obj; + + if (!getName().equals(other.getName())) return false; + if (!getMcpServerId().equals(other.getMcpServerId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getInterfacesList().equals(other.getInterfacesList())) return false; + if (!getToolsList().equals(other.getToolsList())) 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 (!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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + MCP_SERVER_ID_FIELD_NUMBER; + hash = (53 * hash) + getMcpServerId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getInterfacesCount() > 0) { + hash = (37 * hash) + INTERFACES_FIELD_NUMBER; + hash = (53 * hash) + getInterfacesList().hashCode(); + } + if (getToolsCount() > 0) { + hash = (37 * hash) + TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getToolsList().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 (!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.agentregistry.v1.McpServer parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.McpServer 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.agentregistry.v1.McpServer parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.McpServer parseFrom( + 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.agentregistry.v1.McpServer parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.McpServer parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.McpServer parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.McpServer parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.McpServer parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.McpServer parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.McpServer parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.McpServer parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.agentregistry.v1.McpServer prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents an MCP (Model Context Protocol) Server.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.McpServer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.McpServer) + com.google.cloud.agentregistry.v1.McpServerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.McpServerProto + .internal_static_google_cloud_agentregistry_v1_McpServer_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 8: + return internalGetMutableAttributes(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.McpServerProto + .internal_static_google_cloud_agentregistry_v1_McpServer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.McpServer.class, + com.google.cloud.agentregistry.v1.McpServer.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.McpServer.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetInterfacesFieldBuilder(); + internalGetToolsFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + mcpServerId_ = ""; + displayName_ = ""; + description_ = ""; + if (interfacesBuilder_ == null) { + interfaces_ = java.util.Collections.emptyList(); + } else { + interfaces_ = null; + interfacesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + } else { + tools_ = null; + toolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableAttributes().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.McpServerProto + .internal_static_google_cloud_agentregistry_v1_McpServer_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.McpServer getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.McpServer.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.McpServer build() { + com.google.cloud.agentregistry.v1.McpServer result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.McpServer buildPartial() { + com.google.cloud.agentregistry.v1.McpServer result = + new com.google.cloud.agentregistry.v1.McpServer(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.agentregistry.v1.McpServer result) { + if (interfacesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + interfaces_ = java.util.Collections.unmodifiableList(interfaces_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.interfaces_ = interfaces_; + } else { + result.interfaces_ = interfacesBuilder_.build(); + } + if (toolsBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + tools_ = java.util.Collections.unmodifiableList(tools_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.tools_ = tools_; + } else { + result.tools_ = toolsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.McpServer result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.mcpServerId_ = mcpServerId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + 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.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.attributes_ = + internalGetAttributes().build(AttributesDefaultEntryHolder.defaultEntry); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.McpServer) { + return mergeFrom((com.google.cloud.agentregistry.v1.McpServer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.McpServer other) { + if (other == com.google.cloud.agentregistry.v1.McpServer.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getMcpServerId().isEmpty()) { + mcpServerId_ = other.mcpServerId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (interfacesBuilder_ == null) { + if (!other.interfaces_.isEmpty()) { + if (interfaces_.isEmpty()) { + interfaces_ = other.interfaces_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureInterfacesIsMutable(); + interfaces_.addAll(other.interfaces_); + } + onChanged(); + } + } else { + if (!other.interfaces_.isEmpty()) { + if (interfacesBuilder_.isEmpty()) { + interfacesBuilder_.dispose(); + interfacesBuilder_ = null; + interfaces_ = other.interfaces_; + bitField0_ = (bitField0_ & ~0x00000010); + interfacesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInterfacesFieldBuilder() + : null; + } else { + interfacesBuilder_.addAllMessages(other.interfaces_); + } + } + } + if (toolsBuilder_ == null) { + if (!other.tools_.isEmpty()) { + if (tools_.isEmpty()) { + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureToolsIsMutable(); + tools_.addAll(other.tools_); + } + onChanged(); + } + } else { + if (!other.tools_.isEmpty()) { + if (toolsBuilder_.isEmpty()) { + toolsBuilder_.dispose(); + toolsBuilder_ = null; + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000020); + toolsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolsFieldBuilder() + : null; + } else { + toolsBuilder_.addAllMessages(other.tools_); + } + } + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableAttributes().mergeFrom(other.internalGetAttributes()); + bitField0_ |= 0x00000100; + 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_ |= 0x00000004; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + com.google.cloud.agentregistry.v1.Interface m = + input.readMessage( + com.google.cloud.agentregistry.v1.Interface.parser(), extensionRegistry); + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.add(m); + } else { + interfacesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.cloud.agentregistry.v1.McpServer.Tool m = + input.readMessage( + com.google.cloud.agentregistry.v1.McpServer.Tool.parser(), + extensionRegistry); + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(m); + } else { + toolsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + com.google.protobuf.MapEntry + attributes__ = + input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAttributes() + .ensureBuilderMap() + .put(attributes__.getKey(), attributes__.getValue()); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: + { + mcpServerId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + 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_ = ""; + + /** + * + * + *
            +     * Identifier. The resource name of the MCP Server.
            +     * Format: `projects/{project}/locations/{location}/mcpServers/{mcp_server}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Identifier. The resource name of the MCP Server.
            +     * Format: `projects/{project}/locations/{location}/mcpServers/{mcp_server}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Identifier. The resource name of the MCP Server.
            +     * Format: `projects/{project}/locations/{location}/mcpServers/{mcp_server}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The resource name of the MCP Server.
            +     * Format: `projects/{project}/locations/{location}/mcpServers/{mcp_server}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The resource name of the MCP Server.
            +     * Format: `projects/{project}/locations/{location}/mcpServers/{mcp_server}`.
            +     * 
            + * + * 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 mcpServerId_ = ""; + + /** + * + * + *
            +     * Output only. A stable, globally unique identifier for MCP Servers.
            +     * 
            + * + * string mcp_server_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mcpServerId. + */ + public java.lang.String getMcpServerId() { + java.lang.Object ref = mcpServerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mcpServerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. A stable, globally unique identifier for MCP Servers.
            +     * 
            + * + * string mcp_server_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mcpServerId. + */ + public com.google.protobuf.ByteString getMcpServerIdBytes() { + java.lang.Object ref = mcpServerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mcpServerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. A stable, globally unique identifier for MCP Servers.
            +     * 
            + * + * string mcp_server_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The mcpServerId to set. + * @return This builder for chaining. + */ + public Builder setMcpServerId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mcpServerId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. A stable, globally unique identifier for MCP Servers.
            +     * 
            + * + * string mcp_server_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMcpServerId() { + mcpServerId_ = getDefaultInstance().getMcpServerId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. A stable, globally unique identifier for MCP Servers.
            +     * 
            + * + * string mcp_server_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for mcpServerId to set. + * @return This builder for chaining. + */ + public Builder setMcpServerIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mcpServerId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
            +     * Output only. The display name of the MCP Server.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +     * Output only. The display name of the MCP Server.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +     * Output only. The display name of the MCP Server.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The display name of the MCP Server.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The display name of the MCP Server.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
            +     * Output only. The description of the MCP Server.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. The description of the MCP Server.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. The description of the MCP Server.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The description of the MCP Server.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The description of the MCP Server.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List interfaces_ = + java.util.Collections.emptyList(); + + private void ensureInterfacesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + interfaces_ = + new java.util.ArrayList(interfaces_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Interface, + com.google.cloud.agentregistry.v1.Interface.Builder, + com.google.cloud.agentregistry.v1.InterfaceOrBuilder> + interfacesBuilder_; + + /** + * + * + *
            +     * Output only. The connection details for the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getInterfacesList() { + if (interfacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(interfaces_); + } else { + return interfacesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Output only. The connection details for the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getInterfacesCount() { + if (interfacesBuilder_ == null) { + return interfaces_.size(); + } else { + return interfacesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Output only. The connection details for the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Interface getInterfaces(int index) { + if (interfacesBuilder_ == null) { + return interfaces_.get(index); + } else { + return interfacesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Output only. The connection details for the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInterfaces(int index, com.google.cloud.agentregistry.v1.Interface value) { + if (interfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterfacesIsMutable(); + interfaces_.set(index, value); + onChanged(); + } else { + interfacesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Output only. The connection details for the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInterfaces( + int index, com.google.cloud.agentregistry.v1.Interface.Builder builderForValue) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.set(index, builderForValue.build()); + onChanged(); + } else { + interfacesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. The connection details for the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInterfaces(com.google.cloud.agentregistry.v1.Interface value) { + if (interfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterfacesIsMutable(); + interfaces_.add(value); + onChanged(); + } else { + interfacesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Output only. The connection details for the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInterfaces(int index, com.google.cloud.agentregistry.v1.Interface value) { + if (interfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterfacesIsMutable(); + interfaces_.add(index, value); + onChanged(); + } else { + interfacesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Output only. The connection details for the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInterfaces( + com.google.cloud.agentregistry.v1.Interface.Builder builderForValue) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.add(builderForValue.build()); + onChanged(); + } else { + interfacesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. The connection details for the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInterfaces( + int index, com.google.cloud.agentregistry.v1.Interface.Builder builderForValue) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.add(index, builderForValue.build()); + onChanged(); + } else { + interfacesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. The connection details for the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllInterfaces( + java.lang.Iterable values) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, interfaces_); + onChanged(); + } else { + interfacesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Output only. The connection details for the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearInterfaces() { + if (interfacesBuilder_ == null) { + interfaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + interfacesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The connection details for the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeInterfaces(int index) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.remove(index); + onChanged(); + } else { + interfacesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Output only. The connection details for the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Interface.Builder getInterfacesBuilder(int index) { + return internalGetInterfacesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Output only. The connection details for the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.InterfaceOrBuilder getInterfacesOrBuilder(int index) { + if (interfacesBuilder_ == null) { + return interfaces_.get(index); + } else { + return interfacesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Output only. The connection details for the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getInterfacesOrBuilderList() { + if (interfacesBuilder_ != null) { + return interfacesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(interfaces_); + } + } + + /** + * + * + *
            +     * Output only. The connection details for the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Interface.Builder addInterfacesBuilder() { + return internalGetInterfacesFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.Interface.getDefaultInstance()); + } + + /** + * + * + *
            +     * Output only. The connection details for the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.Interface.Builder addInterfacesBuilder(int index) { + return internalGetInterfacesFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.Interface.getDefaultInstance()); + } + + /** + * + * + *
            +     * Output only. The connection details for the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getInterfacesBuilderList() { + return internalGetInterfacesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Interface, + com.google.cloud.agentregistry.v1.Interface.Builder, + com.google.cloud.agentregistry.v1.InterfaceOrBuilder> + internalGetInterfacesFieldBuilder() { + if (interfacesBuilder_ == null) { + interfacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Interface, + com.google.cloud.agentregistry.v1.Interface.Builder, + com.google.cloud.agentregistry.v1.InterfaceOrBuilder>( + interfaces_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + interfaces_ = null; + } + return interfacesBuilder_; + } + + private java.util.List tools_ = + java.util.Collections.emptyList(); + + private void ensureToolsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + tools_ = new java.util.ArrayList(tools_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.McpServer.Tool, + com.google.cloud.agentregistry.v1.McpServer.Tool.Builder, + com.google.cloud.agentregistry.v1.McpServer.ToolOrBuilder> + toolsBuilder_; + + /** + * + * + *
            +     * Output only. Tools provided by the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getToolsList() { + if (toolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tools_); + } else { + return toolsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Output only. Tools provided by the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getToolsCount() { + if (toolsBuilder_ == null) { + return tools_.size(); + } else { + return toolsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Output only. Tools provided by the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.McpServer.Tool getTools(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Output only. Tools provided by the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTools(int index, com.google.cloud.agentregistry.v1.McpServer.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.set(index, value); + onChanged(); + } else { + toolsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Output only. Tools provided by the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTools( + int index, com.google.cloud.agentregistry.v1.McpServer.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.set(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. Tools provided by the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTools(com.google.cloud.agentregistry.v1.McpServer.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(value); + onChanged(); + } else { + toolsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Output only. Tools provided by the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTools(int index, com.google.cloud.agentregistry.v1.McpServer.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(index, value); + onChanged(); + } else { + toolsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Output only. Tools provided by the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTools( + com.google.cloud.agentregistry.v1.McpServer.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. Tools provided by the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addTools( + int index, com.google.cloud.agentregistry.v1.McpServer.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. Tools provided by the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllTools( + java.lang.Iterable values) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tools_); + onChanged(); + } else { + toolsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Output only. Tools provided by the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTools() { + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + toolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Tools provided by the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeTools(int index) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.remove(index); + onChanged(); + } else { + toolsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Output only. Tools provided by the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.McpServer.Tool.Builder getToolsBuilder(int index) { + return internalGetToolsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Output only. Tools provided by the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.McpServer.ToolOrBuilder getToolsOrBuilder(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Output only. Tools provided by the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getToolsOrBuilderList() { + if (toolsBuilder_ != null) { + return toolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tools_); + } + } + + /** + * + * + *
            +     * Output only. Tools provided by the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.McpServer.Tool.Builder addToolsBuilder() { + return internalGetToolsFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.McpServer.Tool.getDefaultInstance()); + } + + /** + * + * + *
            +     * Output only. Tools provided by the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.agentregistry.v1.McpServer.Tool.Builder addToolsBuilder(int index) { + return internalGetToolsFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.McpServer.Tool.getDefaultInstance()); + } + + /** + * + * + *
            +     * Output only. Tools provided by the MCP Server.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getToolsBuilderList() { + return internalGetToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.McpServer.Tool, + com.google.cloud.agentregistry.v1.McpServer.Tool.Builder, + com.google.cloud.agentregistry.v1.McpServer.ToolOrBuilder> + internalGetToolsFieldBuilder() { + if (toolsBuilder_ == null) { + toolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.McpServer.Tool, + com.google.cloud.agentregistry.v1.McpServer.Tool.Builder, + com.google.cloud.agentregistry.v1.McpServer.ToolOrBuilder>( + tools_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + tools_ = null; + } + return toolsBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .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. Create time.
            +     * 
            + * + * + * .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_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .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_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .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_ & 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; + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .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. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .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. Update time.
            +     * 
            + * + * + * .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_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .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_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .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_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .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. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private static final class AttributesConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, com.google.protobuf.StructOrBuilder, com.google.protobuf.Struct> { + @java.lang.Override + public com.google.protobuf.Struct build(com.google.protobuf.StructOrBuilder val) { + if (val instanceof com.google.protobuf.Struct) { + return (com.google.protobuf.Struct) val; + } + return ((com.google.protobuf.Struct.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry + defaultEntry() { + return AttributesDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final AttributesConverter attributesConverter = new AttributesConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.protobuf.StructOrBuilder, + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder> + attributes_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.protobuf.StructOrBuilder, + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder> + internalGetAttributes() { + if (attributes_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(attributesConverter); + } + return attributes_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.protobuf.StructOrBuilder, + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder> + internalGetMutableAttributes() { + if (attributes_ == null) { + attributes_ = new com.google.protobuf.MapFieldBuilder<>(attributesConverter); + } + bitField0_ |= 0x00000100; + onChanged(); + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().ensureBuilderMap().size(); + } + + /** + * + * + *
            +     * Output only. Attributes of the MCP Server.
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +     * "principal://..."} - the runtime identity associated with the MCP Server.
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +     * - the URI of the underlying resource hosting the MCP Server, for
            +     * example, the GKE Deployment.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAttributes().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getAttributesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + + /** + * + * + *
            +     * Output only. Attributes of the MCP Server.
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +     * "principal://..."} - the runtime identity associated with the MCP Server.
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +     * - the URI of the underlying resource hosting the MCP Server, for
            +     * example, the GKE Deployment.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getAttributesMap() { + return internalGetAttributes().getImmutableMap(); + } + + /** + * + * + *
            +     * Output only. Attributes of the MCP Server.
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +     * "principal://..."} - the runtime identity associated with the MCP Server.
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +     * - the URI of the underlying resource hosting the MCP Server, for
            +     * example, the GKE Deployment.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ com.google.protobuf.Struct getAttributesOrDefault( + java.lang.String key, + /* nullable */ + com.google.protobuf.Struct defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableAttributes().ensureBuilderMap(); + return map.containsKey(key) ? attributesConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
            +     * Output only. Attributes of the MCP Server.
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +     * "principal://..."} - the runtime identity associated with the MCP Server.
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +     * - the URI of the underlying resource hosting the MCP Server, for
            +     * example, the GKE Deployment.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.Struct getAttributesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableAttributes().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return attributesConverter.build(map.get(key)); + } + + public Builder clearAttributes() { + bitField0_ = (bitField0_ & ~0x00000100); + internalGetMutableAttributes().clear(); + return this; + } + + /** + * + * + *
            +     * Output only. Attributes of the MCP Server.
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +     * "principal://..."} - the runtime identity associated with the MCP Server.
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +     * - the URI of the underlying resource hosting the MCP Server, for
            +     * example, the GKE Deployment.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAttributes(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAttributes().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAttributes() { + bitField0_ |= 0x00000100; + return internalGetMutableAttributes().ensureMessageMap(); + } + + /** + * + * + *
            +     * Output only. Attributes of the MCP Server.
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +     * "principal://..."} - the runtime identity associated with the MCP Server.
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +     * - the URI of the underlying resource hosting the MCP Server, for
            +     * example, the GKE Deployment.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAttributes(java.lang.String key, com.google.protobuf.Struct value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAttributes().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000100; + return this; + } + + /** + * + * + *
            +     * Output only. Attributes of the MCP Server.
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +     * "principal://..."} - the runtime identity associated with the MCP Server.
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +     * - the URI of the underlying resource hosting the MCP Server, for
            +     * example, the GKE Deployment.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllAttributes( + java.util.Map values) { + for (java.util.Map.Entry e : + values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableAttributes().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000100; + return this; + } + + /** + * + * + *
            +     * Output only. Attributes of the MCP Server.
            +     * Valid values:
            +     *
            +     * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +     * "principal://..."} - the runtime identity associated with the MCP Server.
            +     * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +     * - the URI of the underlying resource hosting the MCP Server, for
            +     * example, the GKE Deployment.
            +     * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Struct.Builder putAttributesBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = + internalGetMutableAttributes().ensureBuilderMap(); + com.google.protobuf.StructOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.protobuf.Struct.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.protobuf.Struct) { + entry = ((com.google.protobuf.Struct) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.protobuf.Struct.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.McpServer) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.McpServer) + private static final com.google.cloud.agentregistry.v1.McpServer DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.McpServer(); + } + + public static com.google.cloud.agentregistry.v1.McpServer getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public McpServer parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.McpServer getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerName.java new file mode 100644 index 000000000000..c87bcc17a927 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.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 McpServerName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_MCP_SERVER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/mcpServers/{mcp_server}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String mcpServer; + + @Deprecated + protected McpServerName() { + project = null; + location = null; + mcpServer = null; + } + + private McpServerName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + mcpServer = Preconditions.checkNotNull(builder.getMcpServer()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMcpServer() { + return mcpServer; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static McpServerName of(String project, String location, String mcpServer) { + return newBuilder().setProject(project).setLocation(location).setMcpServer(mcpServer).build(); + } + + public static String format(String project, String location, String mcpServer) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setMcpServer(mcpServer) + .build() + .toString(); + } + + public static McpServerName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_MCP_SERVER.validatedMatch( + formattedString, "McpServerName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("mcp_server")); + } + + 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 (McpServerName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_MCP_SERVER.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 (mcpServer != null) { + fieldMapBuilder.put("mcp_server", mcpServer); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_MCP_SERVER.instantiate( + "project", project, "location", location, "mcp_server", mcpServer); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + McpServerName that = ((McpServerName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.mcpServer, that.mcpServer); + } + 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(mcpServer); + return h; + } + + /** Builder for projects/{project}/locations/{location}/mcpServers/{mcp_server}. */ + public static class Builder { + private String project; + private String location; + private String mcpServer; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getMcpServer() { + return mcpServer; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setMcpServer(String mcpServer) { + this.mcpServer = mcpServer; + return this; + } + + private Builder(McpServerName mcpServerName) { + this.project = mcpServerName.project; + this.location = mcpServerName.location; + this.mcpServer = mcpServerName.mcpServer; + } + + public McpServerName build() { + return new McpServerName(this); + } + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerOrBuilder.java new file mode 100644 index 000000000000..96d1e33dfde1 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerOrBuilder.java @@ -0,0 +1,454 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/mcp_server.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface McpServerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.McpServer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Identifier. The resource name of the MCP Server.
            +   * Format: `projects/{project}/locations/{location}/mcpServers/{mcp_server}`.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Identifier. The resource name of the MCP Server.
            +   * Format: `projects/{project}/locations/{location}/mcpServers/{mcp_server}`.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Output only. A stable, globally unique identifier for MCP Servers.
            +   * 
            + * + * string mcp_server_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mcpServerId. + */ + java.lang.String getMcpServerId(); + + /** + * + * + *
            +   * Output only. A stable, globally unique identifier for MCP Servers.
            +   * 
            + * + * string mcp_server_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mcpServerId. + */ + com.google.protobuf.ByteString getMcpServerIdBytes(); + + /** + * + * + *
            +   * Output only. The display name of the MCP Server.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
            +   * Output only. The display name of the MCP Server.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
            +   * Output only. The description of the MCP Server.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
            +   * Output only. The description of the MCP Server.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
            +   * Output only. The connection details for the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getInterfacesList(); + + /** + * + * + *
            +   * Output only. The connection details for the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.agentregistry.v1.Interface getInterfaces(int index); + + /** + * + * + *
            +   * Output only. The connection details for the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getInterfacesCount(); + + /** + * + * + *
            +   * Output only. The connection details for the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getInterfacesOrBuilderList(); + + /** + * + * + *
            +   * Output only. The connection details for the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.agentregistry.v1.InterfaceOrBuilder getInterfacesOrBuilder(int index); + + /** + * + * + *
            +   * Output only. Tools provided by the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getToolsList(); + + /** + * + * + *
            +   * Output only. Tools provided by the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.agentregistry.v1.McpServer.Tool getTools(int index); + + /** + * + * + *
            +   * Output only. Tools provided by the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getToolsCount(); + + /** + * + * + *
            +   * Output only. Tools provided by the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getToolsOrBuilderList(); + + /** + * + * + *
            +   * Output only. Tools provided by the MCP Server.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.McpServer.Tool tools = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.agentregistry.v1.McpServer.ToolOrBuilder getToolsOrBuilder(int index); + + /** + * + * + *
            +   * Output only. Create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. Create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. Create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Update time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. Update time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. Update time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Attributes of the MCP Server.
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +   * "principal://..."} - the runtime identity associated with the MCP Server.
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +   * - the URI of the underlying resource hosting the MCP Server, for
            +   * example, the GKE Deployment.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAttributesCount(); + + /** + * + * + *
            +   * Output only. Attributes of the MCP Server.
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +   * "principal://..."} - the runtime identity associated with the MCP Server.
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +   * - the URI of the underlying resource hosting the MCP Server, for
            +   * example, the GKE Deployment.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsAttributes(java.lang.String key); + + /** Use {@link #getAttributesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAttributes(); + + /** + * + * + *
            +   * Output only. Attributes of the MCP Server.
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +   * "principal://..."} - the runtime identity associated with the MCP Server.
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +   * - the URI of the underlying resource hosting the MCP Server, for
            +   * example, the GKE Deployment.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getAttributesMap(); + + /** + * + * + *
            +   * Output only. Attributes of the MCP Server.
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +   * "principal://..."} - the runtime identity associated with the MCP Server.
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +   * - the URI of the underlying resource hosting the MCP Server, for
            +   * example, the GKE Deployment.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + com.google.protobuf.Struct getAttributesOrDefault( + java.lang.String key, + /* nullable */ + com.google.protobuf.Struct defaultValue); + + /** + * + * + *
            +   * Output only. Attributes of the MCP Server.
            +   * Valid values:
            +   *
            +   * * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal":
            +   * "principal://..."} - the runtime identity associated with the MCP Server.
            +   * * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."}
            +   * - the URI of the underlying resource hosting the MCP Server, for
            +   * example, the GKE Deployment.
            +   * 
            + * + * + * map<string, .google.protobuf.Struct> attributes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.Struct getAttributesOrThrow(java.lang.String key); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerProto.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerProto.java new file mode 100644 index 000000000000..0e33ceaa2e3e --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/McpServerProto.java @@ -0,0 +1,177 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/mcp_server.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public final class McpServerProto extends com.google.protobuf.GeneratedFile { + private McpServerProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "McpServerProto"); + } + + 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_agentregistry_v1_McpServer_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_McpServer_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_McpServer_Tool_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_McpServer_Tool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_McpServer_Tool_Annotations_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_McpServer_Tool_Annotations_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_McpServer_AttributesEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_McpServer_AttributesEntry_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/agentregistry/v1/mcp_serv" + + "er.proto\022\035google.cloud.agentregistry.v1\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\032.google/cloud/agentr" + + "egistry/v1/properties.proto\032\034google/prot" + + "obuf/struct.proto\032\037google/protobuf/timestamp.proto\"\256\007\n" + + "\tMcpServer\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\032\n\r" + + "mcp_server_id\030\t \001(\tB\003\340A\003\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\003\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\003\022A\n\n" + + "interfaces\030\004" + + " \003(\0132(.google.cloud.agentregistry.v1.InterfaceB\003\340A\003\022A\n" + + "\005tools\030\005" + + " \003(\0132-.google.cloud.agentregistry.v1.McpServer.ToolB\003\340A\003\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\022Q\n\n" + + "attributes\030\010 \003(\01328.google.clou" + + "d.agentregistry.v1.McpServer.AttributesEntryB\003\340A\003\032\244\002\n" + + "\004Tool\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\003\022\030\n" + + "\013description\030\002 \001(\tB\003\340A\003\022S\n" + + "\013annotations\030\003" + + " \001(\01329.google.cloud.agentregistry.v1.McpServer.Tool.AnnotationsB\003\340A\003\032\231\001\n" + + "\013Annotations\022\022\n" + + "\005title\030\001 \001(\tB\003\340A\003\022\035\n" + + "\020destructive_hint\030\002 \001(\010B\003\340A\003\022\034\n" + + "\017idempotent_hint\030\003 \001(\010B\003\340A\003\022\034\n" + + "\017open_world_hint\030\004 \001(\010B\003\340A\003\022\033\n" + + "\016read_only_hint\030\005 \001(\010B\003\340A\003\032J\n" + + "\017AttributesEntry\022\013\n" + + "\003key\030\001 \001(\t\022&\n" + + "\005value\030\002" + + " \001(\0132\027.google.protobuf.Struct:\0028\001:\204\001\352A\200\001\n" + + "&agentregistry.googleapis.com/McpServer\022?projects/{p" + + "roject}/locations/{location}/mcpServers/{mcp_server}*\n" + + "mcpServers2\tmcpServerB\341\001\n" + + "!com.google.cloud.agentregistry.v1B\016McpSe" + + "rverProtoP\001ZGcloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregist" + + "rypb\252\002\035Google.Cloud.AgentRegistry.V1\312\002\035Google\\Cloud\\AgentRegistry\\V1\352\002" + + " Google::Cloud::AgentRegistry::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.cloud.agentregistry.v1.PropertiesProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_agentregistry_v1_McpServer_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_agentregistry_v1_McpServer_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_McpServer_descriptor, + new java.lang.String[] { + "Name", + "McpServerId", + "DisplayName", + "Description", + "Interfaces", + "Tools", + "CreateTime", + "UpdateTime", + "Attributes", + }); + internal_static_google_cloud_agentregistry_v1_McpServer_Tool_descriptor = + internal_static_google_cloud_agentregistry_v1_McpServer_descriptor.getNestedType(0); + internal_static_google_cloud_agentregistry_v1_McpServer_Tool_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_McpServer_Tool_descriptor, + new java.lang.String[] { + "Name", "Description", "Annotations", + }); + internal_static_google_cloud_agentregistry_v1_McpServer_Tool_Annotations_descriptor = + internal_static_google_cloud_agentregistry_v1_McpServer_Tool_descriptor.getNestedType(0); + internal_static_google_cloud_agentregistry_v1_McpServer_Tool_Annotations_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_McpServer_Tool_Annotations_descriptor, + new java.lang.String[] { + "Title", "DestructiveHint", "IdempotentHint", "OpenWorldHint", "ReadOnlyHint", + }); + internal_static_google_cloud_agentregistry_v1_McpServer_AttributesEntry_descriptor = + internal_static_google_cloud_agentregistry_v1_McpServer_descriptor.getNestedType(1); + internal_static_google_cloud_agentregistry_v1_McpServer_AttributesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_McpServer_AttributesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.agentregistry.v1.PropertiesProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + 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); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/OperationMetadata.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/OperationMetadata.java new file mode 100644 index 000000000000..2e5b41f69382 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/OperationMetadata.java @@ -0,0 +1,1873 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Represents the metadata of the long-running operation.
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.OperationMetadata} + */ +@com.google.protobuf.Generated +public final class OperationMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.OperationMetadata) + OperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OperationMetadata"); + } + + // Use OperationMetadata.newBuilder() to construct. + private OperationMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OperationMetadata() { + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + apiVersion_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.OperationMetadata.class, + com.google.cloud.agentregistry.v1.OperationMetadata.Builder.class); + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.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 END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int TARGET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 VERB_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object verb_ = ""; + + /** + * + * + *
            +   * Output only. Name of the verb executed by the operation.
            +   * 
            + * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + @java.lang.Override + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. Name of the verb executed by the operation.
            +   * 
            + * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object statusMessage_ = ""; + + /** + * + * + *
            +   * Output only. Human-readable status of the operation, if any.
            +   * 
            + * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + @java.lang.Override + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. Human-readable status of the operation, if any.
            +   * 
            + * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTED_CANCELLATION_FIELD_NUMBER = 6; + private boolean requestedCancellation_ = false; + + /** + * + * + *
            +   * Output only. Identifies whether the user has requested cancellation
            +   * of the operation. Operations that have been cancelled successfully
            +   * have
            +   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
            +   * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
            +   * corresponding to `Code.CANCELLED`.
            +   * 
            + * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + public static final int API_VERSION_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiVersion_ = ""; + + /** + * + * + *
            +   * Output only. API version used to start the operation.
            +   * 
            + * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + @java.lang.Override + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. API version used to start the operation.
            +   * 
            + * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, target_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(verb_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, verb_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(statusMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, statusMessage_); + } + if (requestedCancellation_ != false) { + output.writeBool(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, apiVersion_); + } + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, target_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(verb_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, verb_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(statusMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, statusMessage_); + } + if (requestedCancellation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, requestedCancellation_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, apiVersion_); + } + 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.agentregistry.v1.OperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.OperationMetadata other = + (com.google.cloud.agentregistry.v1.OperationMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (!getVerb().equals(other.getVerb())) return false; + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + if (getRequestedCancellation() != other.getRequestedCancellation()) return false; + if (!getApiVersion().equals(other.getApiVersion())) 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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + VERB_FIELD_NUMBER; + hash = (53 * hash) + getVerb().hashCode(); + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (37 * hash) + REQUESTED_CANCELLATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequestedCancellation()); + hash = (37 * hash) + API_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getApiVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.OperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.OperationMetadata 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.agentregistry.v1.OperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.OperationMetadata parseFrom( + 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.agentregistry.v1.OperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.OperationMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.OperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.OperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.OperationMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.OperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.agentregistry.v1.OperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents the metadata of the long-running operation.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.OperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.OperationMetadata) + com.google.cloud.agentregistry.v1.OperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.OperationMetadata.class, + com.google.cloud.agentregistry.v1.OperationMetadata.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.OperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + verb_ = ""; + statusMessage_ = ""; + requestedCancellation_ = false; + apiVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.OperationMetadata getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.OperationMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.OperationMetadata build() { + com.google.cloud.agentregistry.v1.OperationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.OperationMetadata buildPartial() { + com.google.cloud.agentregistry.v1.OperationMetadata result = + new com.google.cloud.agentregistry.v1.OperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.OperationMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.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.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.verb_ = verb_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.statusMessage_ = statusMessage_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.requestedCancellation_ = requestedCancellation_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.apiVersion_ = apiVersion_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.OperationMetadata) { + return mergeFrom((com.google.cloud.agentregistry.v1.OperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.OperationMetadata other) { + if (other == com.google.cloud.agentregistry.v1.OperationMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getVerb().isEmpty()) { + verb_ = other.verb_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getStatusMessage().isEmpty()) { + statusMessage_ = other.statusMessage_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getRequestedCancellation() != false) { + setRequestedCancellation(other.getRequestedCancellation()); + } + if (!other.getApiVersion().isEmpty()) { + apiVersion_ = other.apiVersion_; + 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 10: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + verb_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + statusMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + requestedCancellation_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + apiVersion_ = 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 com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The time the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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(); + } + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
            +     * Output only. The time the operation finished running.
            +     * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object target_ = ""; + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Server-defined resource path for the target of the operation.
            +     * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object verb_ = ""; + + /** + * + * + *
            +     * Output only. Name of the verb executed by the operation.
            +     * 
            + * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + public java.lang.String getVerb() { + java.lang.Object ref = verb_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + verb_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. Name of the verb executed by the operation.
            +     * 
            + * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + public com.google.protobuf.ByteString getVerbBytes() { + java.lang.Object ref = verb_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + verb_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. Name of the verb executed by the operation.
            +     * 
            + * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The verb to set. + * @return This builder for chaining. + */ + public Builder setVerb(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + verb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Name of the verb executed by the operation.
            +     * 
            + * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearVerb() { + verb_ = getDefaultInstance().getVerb(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Name of the verb executed by the operation.
            +     * 
            + * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for verb to set. + * @return This builder for chaining. + */ + public Builder setVerbBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + verb_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object statusMessage_ = ""; + + /** + * + * + *
            +     * Output only. Human-readable status of the operation, if any.
            +     * 
            + * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = statusMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + statusMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. Human-readable status of the operation, if any.
            +     * 
            + * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. Human-readable status of the operation, if any.
            +     * 
            + * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + statusMessage_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Human-readable status of the operation, if any.
            +     * 
            + * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearStatusMessage() { + statusMessage_ = getDefaultInstance().getStatusMessage(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Human-readable status of the operation, if any.
            +     * 
            + * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + statusMessage_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean requestedCancellation_; + + /** + * + * + *
            +     * Output only. Identifies whether the user has requested cancellation
            +     * of the operation. Operations that have been cancelled successfully
            +     * have
            +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
            +     * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
            +     * corresponding to `Code.CANCELLED`.
            +     * 
            + * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + @java.lang.Override + public boolean getRequestedCancellation() { + return requestedCancellation_; + } + + /** + * + * + *
            +     * Output only. Identifies whether the user has requested cancellation
            +     * of the operation. Operations that have been cancelled successfully
            +     * have
            +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
            +     * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
            +     * corresponding to `Code.CANCELLED`.
            +     * 
            + * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The requestedCancellation to set. + * @return This builder for chaining. + */ + public Builder setRequestedCancellation(boolean value) { + + requestedCancellation_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Identifies whether the user has requested cancellation
            +     * of the operation. Operations that have been cancelled successfully
            +     * have
            +     * [google.longrunning.Operation.error][google.longrunning.Operation.error]
            +     * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
            +     * corresponding to `Code.CANCELLED`.
            +     * 
            + * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRequestedCancellation() { + bitField0_ = (bitField0_ & ~0x00000020); + requestedCancellation_ = false; + onChanged(); + return this; + } + + private java.lang.Object apiVersion_ = ""; + + /** + * + * + *
            +     * Output only. API version used to start the operation.
            +     * 
            + * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + public java.lang.String getApiVersion() { + java.lang.Object ref = apiVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. API version used to start the operation.
            +     * 
            + * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + public com.google.protobuf.ByteString getApiVersionBytes() { + java.lang.Object ref = apiVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. API version used to start the operation.
            +     * 
            + * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apiVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. API version used to start the operation.
            +     * 
            + * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearApiVersion() { + apiVersion_ = getDefaultInstance().getApiVersion(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. API version used to start the operation.
            +     * 
            + * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for apiVersion to set. + * @return This builder for chaining. + */ + public Builder setApiVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiVersion_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.OperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.OperationMetadata) + private static final com.google.cloud.agentregistry.v1.OperationMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.OperationMetadata(); + } + + public static com.google.cloud.agentregistry.v1.OperationMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.OperationMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/OperationMetadataOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/OperationMetadataOrBuilder.java new file mode 100644 index 000000000000..ddb429d03ea8 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/OperationMetadataOrBuilder.java @@ -0,0 +1,230 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface OperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.OperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. The time the operation was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
            +   * Output only. The time the operation finished running.
            +   * 
            + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + + /** + * + * + *
            +   * Output only. Server-defined resource path for the target of the operation.
            +   * 
            + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
            +   * Output only. Name of the verb executed by the operation.
            +   * 
            + * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The verb. + */ + java.lang.String getVerb(); + + /** + * + * + *
            +   * Output only. Name of the verb executed by the operation.
            +   * 
            + * + * string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for verb. + */ + com.google.protobuf.ByteString getVerbBytes(); + + /** + * + * + *
            +   * Output only. Human-readable status of the operation, if any.
            +   * 
            + * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The statusMessage. + */ + java.lang.String getStatusMessage(); + + /** + * + * + *
            +   * Output only. Human-readable status of the operation, if any.
            +   * 
            + * + * string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for statusMessage. + */ + com.google.protobuf.ByteString getStatusMessageBytes(); + + /** + * + * + *
            +   * Output only. Identifies whether the user has requested cancellation
            +   * of the operation. Operations that have been cancelled successfully
            +   * have
            +   * [google.longrunning.Operation.error][google.longrunning.Operation.error]
            +   * value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`,
            +   * corresponding to `Code.CANCELLED`.
            +   * 
            + * + * bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestedCancellation. + */ + boolean getRequestedCancellation(); + + /** + * + * + *
            +   * Output only. API version used to start the operation.
            +   * 
            + * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The apiVersion. + */ + java.lang.String getApiVersion(); + + /** + * + * + *
            +   * Output only. API version used to start the operation.
            +   * 
            + * + * string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for apiVersion. + */ + com.google.protobuf.ByteString getApiVersionBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/PropertiesProto.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/PropertiesProto.java new file mode 100644 index 000000000000..ee4fb48b0b2d --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/PropertiesProto.java @@ -0,0 +1,96 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/properties.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public final class PropertiesProto extends com.google.protobuf.GeneratedFile { + private PropertiesProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "PropertiesProto"); + } + + 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_agentregistry_v1_Interface_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Interface_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/agentregistry/v1/properti" + + "es.proto\022\035google.cloud.agentregistry.v1\032" + + "\037google/api/field_behavior.proto\"\321\001\n\tInt" + + "erface\022\020\n\003url\030\001 \001(\tB\003\340A\002\022W\n\020protocol_bin" + + "ding\030\002 \001(\01628.google.cloud.agentregistry." + + "v1.Interface.ProtocolBindingB\003\340A\002\"Y\n\017Pro" + + "tocolBinding\022 \n\034PROTOCOL_BINDING_UNSPECI" + + "FIED\020\000\022\013\n\007JSONRPC\020\001\022\010\n\004GRPC\020\002\022\r\n\tHTTP_JS" + + "ON\020\003B\342\001\n!com.google.cloud.agentregistry." + + "v1B\017PropertiesProtoP\001ZGcloud.google.com/" + + "go/agentregistry/apiv1/agentregistrypb;a" + + "gentregistrypb\252\002\035Google.Cloud.AgentRegis" + + "try.V1\312\002\035Google\\Cloud\\AgentRegistry\\V1\352\002" + + " Google::Cloud::AgentRegistry::V1b\006proto" + + "3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_agentregistry_v1_Interface_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_agentregistry_v1_Interface_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Interface_descriptor, + new java.lang.String[] { + "Url", "ProtocolBinding", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsRequest.java new file mode 100644 index 000000000000..52f136cba295 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsRequest.java @@ -0,0 +1,1382 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for searching Agents
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.SearchAgentsRequest} + */ +@com.google.protobuf.Generated +public final class SearchAgentsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.SearchAgentsRequest) + SearchAgentsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchAgentsRequest"); + } + + // Use SearchAgentsRequest.newBuilder() to construct. + private SearchAgentsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchAgentsRequest() { + parent_ = ""; + searchString_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchAgentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchAgentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.SearchAgentsRequest.class, + com.google.cloud.agentregistry.v1.SearchAgentsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. Parent value for SearchAgentsRequest. Format:
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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 SearchAgentsRequest. Format:
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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 SEARCH_STRING_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object searchString_ = ""; + + /** + * + * + *
            +   * Optional. Search criteria used to select the Agents to return. If no search
            +   * criteria is specified then all accessible Agents will be returned.
            +   *
            +   * Search expressions can be used to restrict results based upon searchable
            +   * fields, where the operators can be used along with the suffix wildcard
            +   * symbol `*`. See
            +   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
            +   * for more details.
            +   *
            +   * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
            +   *
            +   * Searchable fields:
            +   *
            +   * | Field              | `=` | `:` | `*` | Keyword Search |
            +   * |--------------------|-----|-----|-----|----------------|
            +   * | agentId            | Yes | Yes | Yes | Included       |
            +   * | name               | No  | Yes | Yes | Included       |
            +   * | displayName        | No  | Yes | Yes | Included       |
            +   * | description        | No  | Yes | No  | Included       |
            +   * | skills             | No  | Yes | No  | Included       |
            +   * | skills.id          | No  | Yes | No  | Included       |
            +   * | skills.name        | No  | Yes | No  | Included       |
            +   * | skills.description | No  | Yes | No  | Included       |
            +   * | skills.tags        | No  | Yes | No  | Included       |
            +   * | skills.examples    | No  | Yes | No  | Included       |
            +   *
            +   * Examples:
            +   *
            +   * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"`
            +   * to find the agent with the specified agent ID.
            +   * * `name:important` to find agents whose name contains `important` as a
            +   * word.
            +   * * `displayName:works*` to find agents whose display name contains words
            +   * that start with `works`.
            +   * * `skills.tags:test` to find agents whose skills tags contain `test`.
            +   * * `planner OR booking` to find agents whose metadata contains the words
            +   * `planner` or `booking`.
            +   * 
            + * + * string search_string = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The searchString. + */ + @java.lang.Override + public java.lang.String getSearchString() { + java.lang.Object ref = searchString_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchString_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Search criteria used to select the Agents to return. If no search
            +   * criteria is specified then all accessible Agents will be returned.
            +   *
            +   * Search expressions can be used to restrict results based upon searchable
            +   * fields, where the operators can be used along with the suffix wildcard
            +   * symbol `*`. See
            +   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
            +   * for more details.
            +   *
            +   * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
            +   *
            +   * Searchable fields:
            +   *
            +   * | Field              | `=` | `:` | `*` | Keyword Search |
            +   * |--------------------|-----|-----|-----|----------------|
            +   * | agentId            | Yes | Yes | Yes | Included       |
            +   * | name               | No  | Yes | Yes | Included       |
            +   * | displayName        | No  | Yes | Yes | Included       |
            +   * | description        | No  | Yes | No  | Included       |
            +   * | skills             | No  | Yes | No  | Included       |
            +   * | skills.id          | No  | Yes | No  | Included       |
            +   * | skills.name        | No  | Yes | No  | Included       |
            +   * | skills.description | No  | Yes | No  | Included       |
            +   * | skills.tags        | No  | Yes | No  | Included       |
            +   * | skills.examples    | No  | Yes | No  | Included       |
            +   *
            +   * Examples:
            +   *
            +   * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"`
            +   * to find the agent with the specified agent ID.
            +   * * `name:important` to find agents whose name contains `important` as a
            +   * word.
            +   * * `displayName:works*` to find agents whose display name contains words
            +   * that start with `works`.
            +   * * `skills.tags:test` to find agents whose skills tags contain `test`.
            +   * * `planner OR booking` to find agents whose metadata contains the words
            +   * `planner` or `booking`.
            +   * 
            + * + * string search_string = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for searchString. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSearchStringBytes() { + java.lang.Object ref = searchString_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + searchString_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 6; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. The maximum number of search results to return per page. The page
            +   * size is capped at `100`, even if a larger value is specified. A negative
            +   * value will result in an `INVALID_ARGUMENT` error. If unspecified or set to
            +   * `0`, a default value of `20` will be used. The server may return fewer
            +   * results than requested.
            +   * 
            + * + * int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. If present, retrieve the next batch of results from the preceding
            +   * call to this method. `page_token` must be the value of `next_page_token`
            +   * from the previous response. The values of all other method parameters, must
            +   * be identical to those in the previous call.
            +   * 
            + * + * string page_token = 7 [(.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. If present, retrieve the next batch of results from the preceding
            +   * call to this method. `page_token` must be the value of `next_page_token`
            +   * from the previous response. The values of all other method parameters, must
            +   * be identical to those in the previous call.
            +   * 
            + * + * string page_token = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchString_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, searchString_); + } + if (pageSize_ != 0) { + output.writeInt32(6, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchString_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, searchString_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, 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.agentregistry.v1.SearchAgentsRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.SearchAgentsRequest other = + (com.google.cloud.agentregistry.v1.SearchAgentsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getSearchString().equals(other.getSearchString())) 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) + SEARCH_STRING_FIELD_NUMBER; + hash = (53 * hash) + getSearchString().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.agentregistry.v1.SearchAgentsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsRequest 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.agentregistry.v1.SearchAgentsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsRequest parseFrom( + 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.agentregistry.v1.SearchAgentsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.SearchAgentsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for searching Agents
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.SearchAgentsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.SearchAgentsRequest) + com.google.cloud.agentregistry.v1.SearchAgentsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchAgentsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchAgentsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.SearchAgentsRequest.class, + com.google.cloud.agentregistry.v1.SearchAgentsRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.SearchAgentsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + searchString_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchAgentsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchAgentsRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.SearchAgentsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchAgentsRequest build() { + com.google.cloud.agentregistry.v1.SearchAgentsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchAgentsRequest buildPartial() { + com.google.cloud.agentregistry.v1.SearchAgentsRequest result = + new com.google.cloud.agentregistry.v1.SearchAgentsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.SearchAgentsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.searchString_ = searchString_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.SearchAgentsRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.SearchAgentsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.SearchAgentsRequest other) { + if (other == com.google.cloud.agentregistry.v1.SearchAgentsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSearchString().isEmpty()) { + searchString_ = other.searchString_; + 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 26: + { + searchString_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 48: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 48 + case 58: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + 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 parent_ = ""; + + /** + * + * + *
            +     * Required. Parent value for SearchAgentsRequest. Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 SearchAgentsRequest. Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 SearchAgentsRequest. Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 SearchAgentsRequest. Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 SearchAgentsRequest. Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 searchString_ = ""; + + /** + * + * + *
            +     * Optional. Search criteria used to select the Agents to return. If no search
            +     * criteria is specified then all accessible Agents will be returned.
            +     *
            +     * Search expressions can be used to restrict results based upon searchable
            +     * fields, where the operators can be used along with the suffix wildcard
            +     * symbol `*`. See
            +     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
            +     * for more details.
            +     *
            +     * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
            +     *
            +     * Searchable fields:
            +     *
            +     * | Field              | `=` | `:` | `*` | Keyword Search |
            +     * |--------------------|-----|-----|-----|----------------|
            +     * | agentId            | Yes | Yes | Yes | Included       |
            +     * | name               | No  | Yes | Yes | Included       |
            +     * | displayName        | No  | Yes | Yes | Included       |
            +     * | description        | No  | Yes | No  | Included       |
            +     * | skills             | No  | Yes | No  | Included       |
            +     * | skills.id          | No  | Yes | No  | Included       |
            +     * | skills.name        | No  | Yes | No  | Included       |
            +     * | skills.description | No  | Yes | No  | Included       |
            +     * | skills.tags        | No  | Yes | No  | Included       |
            +     * | skills.examples    | No  | Yes | No  | Included       |
            +     *
            +     * Examples:
            +     *
            +     * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"`
            +     * to find the agent with the specified agent ID.
            +     * * `name:important` to find agents whose name contains `important` as a
            +     * word.
            +     * * `displayName:works*` to find agents whose display name contains words
            +     * that start with `works`.
            +     * * `skills.tags:test` to find agents whose skills tags contain `test`.
            +     * * `planner OR booking` to find agents whose metadata contains the words
            +     * `planner` or `booking`.
            +     * 
            + * + * string search_string = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The searchString. + */ + public java.lang.String getSearchString() { + java.lang.Object ref = searchString_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchString_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Search criteria used to select the Agents to return. If no search
            +     * criteria is specified then all accessible Agents will be returned.
            +     *
            +     * Search expressions can be used to restrict results based upon searchable
            +     * fields, where the operators can be used along with the suffix wildcard
            +     * symbol `*`. See
            +     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
            +     * for more details.
            +     *
            +     * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
            +     *
            +     * Searchable fields:
            +     *
            +     * | Field              | `=` | `:` | `*` | Keyword Search |
            +     * |--------------------|-----|-----|-----|----------------|
            +     * | agentId            | Yes | Yes | Yes | Included       |
            +     * | name               | No  | Yes | Yes | Included       |
            +     * | displayName        | No  | Yes | Yes | Included       |
            +     * | description        | No  | Yes | No  | Included       |
            +     * | skills             | No  | Yes | No  | Included       |
            +     * | skills.id          | No  | Yes | No  | Included       |
            +     * | skills.name        | No  | Yes | No  | Included       |
            +     * | skills.description | No  | Yes | No  | Included       |
            +     * | skills.tags        | No  | Yes | No  | Included       |
            +     * | skills.examples    | No  | Yes | No  | Included       |
            +     *
            +     * Examples:
            +     *
            +     * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"`
            +     * to find the agent with the specified agent ID.
            +     * * `name:important` to find agents whose name contains `important` as a
            +     * word.
            +     * * `displayName:works*` to find agents whose display name contains words
            +     * that start with `works`.
            +     * * `skills.tags:test` to find agents whose skills tags contain `test`.
            +     * * `planner OR booking` to find agents whose metadata contains the words
            +     * `planner` or `booking`.
            +     * 
            + * + * string search_string = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for searchString. + */ + public com.google.protobuf.ByteString getSearchStringBytes() { + java.lang.Object ref = searchString_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + searchString_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Search criteria used to select the Agents to return. If no search
            +     * criteria is specified then all accessible Agents will be returned.
            +     *
            +     * Search expressions can be used to restrict results based upon searchable
            +     * fields, where the operators can be used along with the suffix wildcard
            +     * symbol `*`. See
            +     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
            +     * for more details.
            +     *
            +     * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
            +     *
            +     * Searchable fields:
            +     *
            +     * | Field              | `=` | `:` | `*` | Keyword Search |
            +     * |--------------------|-----|-----|-----|----------------|
            +     * | agentId            | Yes | Yes | Yes | Included       |
            +     * | name               | No  | Yes | Yes | Included       |
            +     * | displayName        | No  | Yes | Yes | Included       |
            +     * | description        | No  | Yes | No  | Included       |
            +     * | skills             | No  | Yes | No  | Included       |
            +     * | skills.id          | No  | Yes | No  | Included       |
            +     * | skills.name        | No  | Yes | No  | Included       |
            +     * | skills.description | No  | Yes | No  | Included       |
            +     * | skills.tags        | No  | Yes | No  | Included       |
            +     * | skills.examples    | No  | Yes | No  | Included       |
            +     *
            +     * Examples:
            +     *
            +     * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"`
            +     * to find the agent with the specified agent ID.
            +     * * `name:important` to find agents whose name contains `important` as a
            +     * word.
            +     * * `displayName:works*` to find agents whose display name contains words
            +     * that start with `works`.
            +     * * `skills.tags:test` to find agents whose skills tags contain `test`.
            +     * * `planner OR booking` to find agents whose metadata contains the words
            +     * `planner` or `booking`.
            +     * 
            + * + * string search_string = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The searchString to set. + * @return This builder for chaining. + */ + public Builder setSearchString(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + searchString_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Search criteria used to select the Agents to return. If no search
            +     * criteria is specified then all accessible Agents will be returned.
            +     *
            +     * Search expressions can be used to restrict results based upon searchable
            +     * fields, where the operators can be used along with the suffix wildcard
            +     * symbol `*`. See
            +     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
            +     * for more details.
            +     *
            +     * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
            +     *
            +     * Searchable fields:
            +     *
            +     * | Field              | `=` | `:` | `*` | Keyword Search |
            +     * |--------------------|-----|-----|-----|----------------|
            +     * | agentId            | Yes | Yes | Yes | Included       |
            +     * | name               | No  | Yes | Yes | Included       |
            +     * | displayName        | No  | Yes | Yes | Included       |
            +     * | description        | No  | Yes | No  | Included       |
            +     * | skills             | No  | Yes | No  | Included       |
            +     * | skills.id          | No  | Yes | No  | Included       |
            +     * | skills.name        | No  | Yes | No  | Included       |
            +     * | skills.description | No  | Yes | No  | Included       |
            +     * | skills.tags        | No  | Yes | No  | Included       |
            +     * | skills.examples    | No  | Yes | No  | Included       |
            +     *
            +     * Examples:
            +     *
            +     * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"`
            +     * to find the agent with the specified agent ID.
            +     * * `name:important` to find agents whose name contains `important` as a
            +     * word.
            +     * * `displayName:works*` to find agents whose display name contains words
            +     * that start with `works`.
            +     * * `skills.tags:test` to find agents whose skills tags contain `test`.
            +     * * `planner OR booking` to find agents whose metadata contains the words
            +     * `planner` or `booking`.
            +     * 
            + * + * string search_string = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSearchString() { + searchString_ = getDefaultInstance().getSearchString(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Search criteria used to select the Agents to return. If no search
            +     * criteria is specified then all accessible Agents will be returned.
            +     *
            +     * Search expressions can be used to restrict results based upon searchable
            +     * fields, where the operators can be used along with the suffix wildcard
            +     * symbol `*`. See
            +     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
            +     * for more details.
            +     *
            +     * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
            +     *
            +     * Searchable fields:
            +     *
            +     * | Field              | `=` | `:` | `*` | Keyword Search |
            +     * |--------------------|-----|-----|-----|----------------|
            +     * | agentId            | Yes | Yes | Yes | Included       |
            +     * | name               | No  | Yes | Yes | Included       |
            +     * | displayName        | No  | Yes | Yes | Included       |
            +     * | description        | No  | Yes | No  | Included       |
            +     * | skills             | No  | Yes | No  | Included       |
            +     * | skills.id          | No  | Yes | No  | Included       |
            +     * | skills.name        | No  | Yes | No  | Included       |
            +     * | skills.description | No  | Yes | No  | Included       |
            +     * | skills.tags        | No  | Yes | No  | Included       |
            +     * | skills.examples    | No  | Yes | No  | Included       |
            +     *
            +     * Examples:
            +     *
            +     * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"`
            +     * to find the agent with the specified agent ID.
            +     * * `name:important` to find agents whose name contains `important` as a
            +     * word.
            +     * * `displayName:works*` to find agents whose display name contains words
            +     * that start with `works`.
            +     * * `skills.tags:test` to find agents whose skills tags contain `test`.
            +     * * `planner OR booking` to find agents whose metadata contains the words
            +     * `planner` or `booking`.
            +     * 
            + * + * string search_string = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for searchString to set. + * @return This builder for chaining. + */ + public Builder setSearchStringBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + searchString_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. The maximum number of search results to return per page. The page
            +     * size is capped at `100`, even if a larger value is specified. A negative
            +     * value will result in an `INVALID_ARGUMENT` error. If unspecified or set to
            +     * `0`, a default value of `20` will be used. The server may return fewer
            +     * results than requested.
            +     * 
            + * + * int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. The maximum number of search results to return per page. The page
            +     * size is capped at `100`, even if a larger value is specified. A negative
            +     * value will result in an `INVALID_ARGUMENT` error. If unspecified or set to
            +     * `0`, a default value of `20` will be used. The server may return fewer
            +     * results than requested.
            +     * 
            + * + * int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The maximum number of search results to return per page. The page
            +     * size is capped at `100`, even if a larger value is specified. A negative
            +     * value will result in an `INVALID_ARGUMENT` error. If unspecified or set to
            +     * `0`, a default value of `20` will be used. The server may return fewer
            +     * results than requested.
            +     * 
            + * + * int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. If present, retrieve the next batch of results from the preceding
            +     * call to this method. `page_token` must be the value of `next_page_token`
            +     * from the previous response. The values of all other method parameters, must
            +     * be identical to those in the previous call.
            +     * 
            + * + * string page_token = 7 [(.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. If present, retrieve the next batch of results from the preceding
            +     * call to this method. `page_token` must be the value of `next_page_token`
            +     * from the previous response. The values of all other method parameters, must
            +     * be identical to those in the previous call.
            +     * 
            + * + * string page_token = 7 [(.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. If present, retrieve the next batch of results from the preceding
            +     * call to this method. `page_token` must be the value of `next_page_token`
            +     * from the previous response. The values of all other method parameters, must
            +     * be identical to those in the previous call.
            +     * 
            + * + * string page_token = 7 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If present, retrieve the next batch of results from the preceding
            +     * call to this method. `page_token` must be the value of `next_page_token`
            +     * from the previous response. The values of all other method parameters, must
            +     * be identical to those in the previous call.
            +     * 
            + * + * string page_token = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If present, retrieve the next batch of results from the preceding
            +     * call to this method. `page_token` must be the value of `next_page_token`
            +     * from the previous response. The values of all other method parameters, must
            +     * be identical to those in the previous call.
            +     * 
            + * + * string page_token = 7 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.SearchAgentsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.SearchAgentsRequest) + private static final com.google.cloud.agentregistry.v1.SearchAgentsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.SearchAgentsRequest(); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAgentsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.SearchAgentsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsRequestOrBuilder.java new file mode 100644 index 000000000000..042180f6f1f1 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsRequestOrBuilder.java @@ -0,0 +1,207 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface SearchAgentsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.SearchAgentsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Parent value for SearchAgentsRequest. Format:
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. Parent value for SearchAgentsRequest. Format:
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. Search criteria used to select the Agents to return. If no search
            +   * criteria is specified then all accessible Agents will be returned.
            +   *
            +   * Search expressions can be used to restrict results based upon searchable
            +   * fields, where the operators can be used along with the suffix wildcard
            +   * symbol `*`. See
            +   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
            +   * for more details.
            +   *
            +   * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
            +   *
            +   * Searchable fields:
            +   *
            +   * | Field              | `=` | `:` | `*` | Keyword Search |
            +   * |--------------------|-----|-----|-----|----------------|
            +   * | agentId            | Yes | Yes | Yes | Included       |
            +   * | name               | No  | Yes | Yes | Included       |
            +   * | displayName        | No  | Yes | Yes | Included       |
            +   * | description        | No  | Yes | No  | Included       |
            +   * | skills             | No  | Yes | No  | Included       |
            +   * | skills.id          | No  | Yes | No  | Included       |
            +   * | skills.name        | No  | Yes | No  | Included       |
            +   * | skills.description | No  | Yes | No  | Included       |
            +   * | skills.tags        | No  | Yes | No  | Included       |
            +   * | skills.examples    | No  | Yes | No  | Included       |
            +   *
            +   * Examples:
            +   *
            +   * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"`
            +   * to find the agent with the specified agent ID.
            +   * * `name:important` to find agents whose name contains `important` as a
            +   * word.
            +   * * `displayName:works*` to find agents whose display name contains words
            +   * that start with `works`.
            +   * * `skills.tags:test` to find agents whose skills tags contain `test`.
            +   * * `planner OR booking` to find agents whose metadata contains the words
            +   * `planner` or `booking`.
            +   * 
            + * + * string search_string = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The searchString. + */ + java.lang.String getSearchString(); + + /** + * + * + *
            +   * Optional. Search criteria used to select the Agents to return. If no search
            +   * criteria is specified then all accessible Agents will be returned.
            +   *
            +   * Search expressions can be used to restrict results based upon searchable
            +   * fields, where the operators can be used along with the suffix wildcard
            +   * symbol `*`. See
            +   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
            +   * for more details.
            +   *
            +   * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
            +   *
            +   * Searchable fields:
            +   *
            +   * | Field              | `=` | `:` | `*` | Keyword Search |
            +   * |--------------------|-----|-----|-----|----------------|
            +   * | agentId            | Yes | Yes | Yes | Included       |
            +   * | name               | No  | Yes | Yes | Included       |
            +   * | displayName        | No  | Yes | Yes | Included       |
            +   * | description        | No  | Yes | No  | Included       |
            +   * | skills             | No  | Yes | No  | Included       |
            +   * | skills.id          | No  | Yes | No  | Included       |
            +   * | skills.name        | No  | Yes | No  | Included       |
            +   * | skills.description | No  | Yes | No  | Included       |
            +   * | skills.tags        | No  | Yes | No  | Included       |
            +   * | skills.examples    | No  | Yes | No  | Included       |
            +   *
            +   * Examples:
            +   *
            +   * * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"`
            +   * to find the agent with the specified agent ID.
            +   * * `name:important` to find agents whose name contains `important` as a
            +   * word.
            +   * * `displayName:works*` to find agents whose display name contains words
            +   * that start with `works`.
            +   * * `skills.tags:test` to find agents whose skills tags contain `test`.
            +   * * `planner OR booking` to find agents whose metadata contains the words
            +   * `planner` or `booking`.
            +   * 
            + * + * string search_string = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for searchString. + */ + com.google.protobuf.ByteString getSearchStringBytes(); + + /** + * + * + *
            +   * Optional. The maximum number of search results to return per page. The page
            +   * size is capped at `100`, even if a larger value is specified. A negative
            +   * value will result in an `INVALID_ARGUMENT` error. If unspecified or set to
            +   * `0`, a default value of `20` will be used. The server may return fewer
            +   * results than requested.
            +   * 
            + * + * int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. If present, retrieve the next batch of results from the preceding
            +   * call to this method. `page_token` must be the value of `next_page_token`
            +   * from the previous response. The values of all other method parameters, must
            +   * be identical to those in the previous call.
            +   * 
            + * + * string page_token = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. If present, retrieve the next batch of results from the preceding
            +   * call to this method. `page_token` must be the value of `next_page_token`
            +   * from the previous response. The values of all other method parameters, must
            +   * be identical to those in the previous call.
            +   * 
            + * + * string page_token = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsResponse.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsResponse.java new file mode 100644 index 000000000000..490c5d321d10 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsResponse.java @@ -0,0 +1,1125 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for response to searching Agents
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.SearchAgentsResponse} + */ +@com.google.protobuf.Generated +public final class SearchAgentsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.SearchAgentsResponse) + SearchAgentsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchAgentsResponse"); + } + + // Use SearchAgentsResponse.newBuilder() to construct. + private SearchAgentsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchAgentsResponse() { + agents_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchAgentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchAgentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.SearchAgentsResponse.class, + com.google.cloud.agentregistry.v1.SearchAgentsResponse.Builder.class); + } + + public static final int AGENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List agents_; + + /** + * + * + *
            +   * A list of Agents that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + @java.lang.Override + public java.util.List getAgentsList() { + return agents_; + } + + /** + * + * + *
            +   * A list of Agents that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + @java.lang.Override + public java.util.List + getAgentsOrBuilderList() { + return agents_; + } + + /** + * + * + *
            +   * A list of Agents that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + @java.lang.Override + public int getAgentsCount() { + return agents_.size(); + } + + /** + * + * + *
            +   * A list of Agents that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Agent getAgents(int index) { + return agents_.get(index); + } + + /** + * + * + *
            +   * A list of Agents that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.AgentOrBuilder getAgentsOrBuilder(int index) { + return agents_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * If there are more results than those appearing in this response, then
            +   * `next_page_token` is included. To get the next set of results, call this
            +   * method again using the value of `next_page_token` as `page_token`.
            +   * 
            + * + * 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; + } + } + + /** + * + * + *
            +   * If there are more results than those appearing in this response, then
            +   * `next_page_token` is included. To get the next set of results, call this
            +   * method again using the value of `next_page_token` as `page_token`.
            +   * 
            + * + * 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 < agents_.size(); i++) { + output.writeMessage(1, agents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < agents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, agents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.agentregistry.v1.SearchAgentsResponse)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.SearchAgentsResponse other = + (com.google.cloud.agentregistry.v1.SearchAgentsResponse) obj; + + if (!getAgentsList().equals(other.getAgentsList())) 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 (getAgentsCount() > 0) { + hash = (37 * hash) + AGENTS_FIELD_NUMBER; + hash = (53 * hash) + getAgentsList().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.agentregistry.v1.SearchAgentsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsResponse 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.agentregistry.v1.SearchAgentsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsResponse parseFrom( + 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.agentregistry.v1.SearchAgentsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.SearchAgentsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for response to searching Agents
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.SearchAgentsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.SearchAgentsResponse) + com.google.cloud.agentregistry.v1.SearchAgentsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchAgentsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchAgentsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.SearchAgentsResponse.class, + com.google.cloud.agentregistry.v1.SearchAgentsResponse.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.SearchAgentsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (agentsBuilder_ == null) { + agents_ = java.util.Collections.emptyList(); + } else { + agents_ = null; + agentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchAgentsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchAgentsResponse getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.SearchAgentsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchAgentsResponse build() { + com.google.cloud.agentregistry.v1.SearchAgentsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchAgentsResponse buildPartial() { + com.google.cloud.agentregistry.v1.SearchAgentsResponse result = + new com.google.cloud.agentregistry.v1.SearchAgentsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentregistry.v1.SearchAgentsResponse result) { + if (agentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + agents_ = java.util.Collections.unmodifiableList(agents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.agents_ = agents_; + } else { + result.agents_ = agentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.SearchAgentsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.SearchAgentsResponse) { + return mergeFrom((com.google.cloud.agentregistry.v1.SearchAgentsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.SearchAgentsResponse other) { + if (other == com.google.cloud.agentregistry.v1.SearchAgentsResponse.getDefaultInstance()) + return this; + if (agentsBuilder_ == null) { + if (!other.agents_.isEmpty()) { + if (agents_.isEmpty()) { + agents_ = other.agents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAgentsIsMutable(); + agents_.addAll(other.agents_); + } + onChanged(); + } + } else { + if (!other.agents_.isEmpty()) { + if (agentsBuilder_.isEmpty()) { + agentsBuilder_.dispose(); + agentsBuilder_ = null; + agents_ = other.agents_; + bitField0_ = (bitField0_ & ~0x00000001); + agentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAgentsFieldBuilder() + : null; + } else { + agentsBuilder_.addAllMessages(other.agents_); + } + } + } + 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.agentregistry.v1.Agent m = + input.readMessage( + com.google.cloud.agentregistry.v1.Agent.parser(), extensionRegistry); + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.add(m); + } else { + agentsBuilder_.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 agents_ = + java.util.Collections.emptyList(); + + private void ensureAgentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + agents_ = new java.util.ArrayList(agents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Agent, + com.google.cloud.agentregistry.v1.Agent.Builder, + com.google.cloud.agentregistry.v1.AgentOrBuilder> + agentsBuilder_; + + /** + * + * + *
            +     * A list of Agents that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public java.util.List getAgentsList() { + if (agentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(agents_); + } else { + return agentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * A list of Agents that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public int getAgentsCount() { + if (agentsBuilder_ == null) { + return agents_.size(); + } else { + return agentsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * A list of Agents that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public com.google.cloud.agentregistry.v1.Agent getAgents(int index) { + if (agentsBuilder_ == null) { + return agents_.get(index); + } else { + return agentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * A list of Agents that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder setAgents(int index, com.google.cloud.agentregistry.v1.Agent value) { + if (agentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentsIsMutable(); + agents_.set(index, value); + onChanged(); + } else { + agentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * A list of Agents that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder setAgents( + int index, com.google.cloud.agentregistry.v1.Agent.Builder builderForValue) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.set(index, builderForValue.build()); + onChanged(); + } else { + agentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * A list of Agents that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder addAgents(com.google.cloud.agentregistry.v1.Agent value) { + if (agentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentsIsMutable(); + agents_.add(value); + onChanged(); + } else { + agentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * A list of Agents that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder addAgents(int index, com.google.cloud.agentregistry.v1.Agent value) { + if (agentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAgentsIsMutable(); + agents_.add(index, value); + onChanged(); + } else { + agentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * A list of Agents that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder addAgents(com.google.cloud.agentregistry.v1.Agent.Builder builderForValue) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.add(builderForValue.build()); + onChanged(); + } else { + agentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * A list of Agents that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder addAgents( + int index, com.google.cloud.agentregistry.v1.Agent.Builder builderForValue) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.add(index, builderForValue.build()); + onChanged(); + } else { + agentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * A list of Agents that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder addAllAgents( + java.lang.Iterable values) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, agents_); + onChanged(); + } else { + agentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * A list of Agents that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder clearAgents() { + if (agentsBuilder_ == null) { + agents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + agentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * A list of Agents that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public Builder removeAgents(int index) { + if (agentsBuilder_ == null) { + ensureAgentsIsMutable(); + agents_.remove(index); + onChanged(); + } else { + agentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * A list of Agents that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public com.google.cloud.agentregistry.v1.Agent.Builder getAgentsBuilder(int index) { + return internalGetAgentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * A list of Agents that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public com.google.cloud.agentregistry.v1.AgentOrBuilder getAgentsOrBuilder(int index) { + if (agentsBuilder_ == null) { + return agents_.get(index); + } else { + return agentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * A list of Agents that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public java.util.List + getAgentsOrBuilderList() { + if (agentsBuilder_ != null) { + return agentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(agents_); + } + } + + /** + * + * + *
            +     * A list of Agents that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public com.google.cloud.agentregistry.v1.Agent.Builder addAgentsBuilder() { + return internalGetAgentsFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.Agent.getDefaultInstance()); + } + + /** + * + * + *
            +     * A list of Agents that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public com.google.cloud.agentregistry.v1.Agent.Builder addAgentsBuilder(int index) { + return internalGetAgentsFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.Agent.getDefaultInstance()); + } + + /** + * + * + *
            +     * A list of Agents that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + public java.util.List getAgentsBuilderList() { + return internalGetAgentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Agent, + com.google.cloud.agentregistry.v1.Agent.Builder, + com.google.cloud.agentregistry.v1.AgentOrBuilder> + internalGetAgentsFieldBuilder() { + if (agentsBuilder_ == null) { + agentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Agent, + com.google.cloud.agentregistry.v1.Agent.Builder, + com.google.cloud.agentregistry.v1.AgentOrBuilder>( + agents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + agents_ = null; + } + return agentsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * If there are more results than those appearing in this response, then
            +     * `next_page_token` is included. To get the next set of results, call this
            +     * method again using the value of `next_page_token` as `page_token`.
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * If there are more results than those appearing in this response, then
            +     * `next_page_token` is included. To get the next set of results, call this
            +     * method again using the value of `next_page_token` as `page_token`.
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * If there are more results than those appearing in this response, then
            +     * `next_page_token` is included. To get the next set of results, call this
            +     * method again using the value of `next_page_token` as `page_token`.
            +     * 
            + * + * 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; + } + + /** + * + * + *
            +     * If there are more results than those appearing in this response, then
            +     * `next_page_token` is included. To get the next set of results, call this
            +     * method again using the value of `next_page_token` as `page_token`.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * If there are more results than those appearing in this response, then
            +     * `next_page_token` is included. To get the next set of results, call this
            +     * method again using the value of `next_page_token` as `page_token`.
            +     * 
            + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.SearchAgentsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.SearchAgentsResponse) + private static final com.google.cloud.agentregistry.v1.SearchAgentsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.SearchAgentsResponse(); + } + + public static com.google.cloud.agentregistry.v1.SearchAgentsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAgentsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.SearchAgentsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsResponseOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsResponseOrBuilder.java new file mode 100644 index 000000000000..2028357860f1 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchAgentsResponseOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface SearchAgentsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.SearchAgentsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * A list of Agents that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + java.util.List getAgentsList(); + + /** + * + * + *
            +   * A list of Agents that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + com.google.cloud.agentregistry.v1.Agent getAgents(int index); + + /** + * + * + *
            +   * A list of Agents that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + int getAgentsCount(); + + /** + * + * + *
            +   * A list of Agents that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + java.util.List + getAgentsOrBuilderList(); + + /** + * + * + *
            +   * A list of Agents that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.Agent agents = 1; + */ + com.google.cloud.agentregistry.v1.AgentOrBuilder getAgentsOrBuilder(int index); + + /** + * + * + *
            +   * If there are more results than those appearing in this response, then
            +   * `next_page_token` is included. To get the next set of results, call this
            +   * method again using the value of `next_page_token` as `page_token`.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * If there are more results than those appearing in this response, then
            +   * `next_page_token` is included. To get the next set of results, call this
            +   * method again using the value of `next_page_token` as `page_token`.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchMcpServersRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchMcpServersRequest.java new file mode 100644 index 000000000000..872a89048d43 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchMcpServersRequest.java @@ -0,0 +1,1361 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for searching MCP Servers
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.SearchMcpServersRequest} + */ +@com.google.protobuf.Generated +public final class SearchMcpServersRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.SearchMcpServersRequest) + SearchMcpServersRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchMcpServersRequest"); + } + + // Use SearchMcpServersRequest.newBuilder() to construct. + private SearchMcpServersRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchMcpServersRequest() { + parent_ = ""; + searchString_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchMcpServersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchMcpServersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.SearchMcpServersRequest.class, + com.google.cloud.agentregistry.v1.SearchMcpServersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. Parent value for SearchMcpServersRequest. Format:
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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 SearchMcpServersRequest. Format:
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * 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 SEARCH_STRING_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object searchString_ = ""; + + /** + * + * + *
            +   * Optional. Search criteria used to select the MCP Servers to return. If no
            +   * search criteria is specified then all accessible MCP Servers will be
            +   * returned.
            +   *
            +   * Search expressions can be used to restrict results based upon searchable
            +   * fields, where the operators can be used along with the suffix wildcard
            +   * symbol `*`. See
            +   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
            +   * for more details.
            +   *
            +   * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
            +   *
            +   * Searchable fields:
            +   *
            +   * | Field              | `=` | `:` | `*` | Keyword Search |
            +   * |--------------------|-----|-----|-----|----------------|
            +   * | mcpServerId        | Yes | Yes | Yes | Included       |
            +   * | name               | No  | Yes | Yes | Included       |
            +   * | displayName        | No  | Yes | Yes | Included       |
            +   *
            +   * Examples:
            +   *
            +   * * `mcpServerId="urn:mcp:projects-123:projects:123:locations:us-central1:agentregistry:services:service-id"`
            +   * to find the MCP Server with the specified MCP Server ID.
            +   * * `name:important` to find MCP Servers whose name contains `important` as a
            +   * word.
            +   * * `displayName:works*` to find MCP Servers whose display name contains
            +   * words that start with `works`.
            +   * * `planner OR booking` to find MCP Servers whose metadata contains the
            +   * words `planner` or `booking`.
            +   * * `mcpServerId:service-id AND (displayName:planner OR
            +   * displayName:booking)` to find MCP Servers whose MCP Server ID contains
            +   * `service-id` and whose display name contains `planner` or
            +   * `booking`.
            +   * 
            + * + * string search_string = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The searchString. + */ + @java.lang.Override + public java.lang.String getSearchString() { + java.lang.Object ref = searchString_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchString_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Search criteria used to select the MCP Servers to return. If no
            +   * search criteria is specified then all accessible MCP Servers will be
            +   * returned.
            +   *
            +   * Search expressions can be used to restrict results based upon searchable
            +   * fields, where the operators can be used along with the suffix wildcard
            +   * symbol `*`. See
            +   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
            +   * for more details.
            +   *
            +   * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
            +   *
            +   * Searchable fields:
            +   *
            +   * | Field              | `=` | `:` | `*` | Keyword Search |
            +   * |--------------------|-----|-----|-----|----------------|
            +   * | mcpServerId        | Yes | Yes | Yes | Included       |
            +   * | name               | No  | Yes | Yes | Included       |
            +   * | displayName        | No  | Yes | Yes | Included       |
            +   *
            +   * Examples:
            +   *
            +   * * `mcpServerId="urn:mcp:projects-123:projects:123:locations:us-central1:agentregistry:services:service-id"`
            +   * to find the MCP Server with the specified MCP Server ID.
            +   * * `name:important` to find MCP Servers whose name contains `important` as a
            +   * word.
            +   * * `displayName:works*` to find MCP Servers whose display name contains
            +   * words that start with `works`.
            +   * * `planner OR booking` to find MCP Servers whose metadata contains the
            +   * words `planner` or `booking`.
            +   * * `mcpServerId:service-id AND (displayName:planner OR
            +   * displayName:booking)` to find MCP Servers whose MCP Server ID contains
            +   * `service-id` and whose display name contains `planner` or
            +   * `booking`.
            +   * 
            + * + * string search_string = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for searchString. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSearchStringBytes() { + java.lang.Object ref = searchString_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + searchString_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 6; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. The maximum number of search results to return per page. The page
            +   * size is capped at `100`, even if a larger value is specified. A negative
            +   * value will result in an `INVALID_ARGUMENT` error. If unspecified or set to
            +   * `0`, a default value of `20` will be used. The server may return fewer
            +   * results than requested.
            +   * 
            + * + * int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. If present, retrieve the next batch of results from the preceding
            +   * call to this method. `page_token` must be the value of `next_page_token`
            +   * from the previous response. The values of all other method parameters, must
            +   * be identical to those in the previous call.
            +   * 
            + * + * string page_token = 7 [(.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. If present, retrieve the next batch of results from the preceding
            +   * call to this method. `page_token` must be the value of `next_page_token`
            +   * from the previous response. The values of all other method parameters, must
            +   * be identical to those in the previous call.
            +   * 
            + * + * string page_token = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchString_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, searchString_); + } + if (pageSize_ != 0) { + output.writeInt32(6, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchString_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, searchString_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, 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.agentregistry.v1.SearchMcpServersRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.SearchMcpServersRequest other = + (com.google.cloud.agentregistry.v1.SearchMcpServersRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getSearchString().equals(other.getSearchString())) 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) + SEARCH_STRING_FIELD_NUMBER; + hash = (53 * hash) + getSearchString().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.agentregistry.v1.SearchMcpServersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersRequest 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.agentregistry.v1.SearchMcpServersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersRequest parseFrom( + 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.agentregistry.v1.SearchMcpServersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.SearchMcpServersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for searching MCP Servers
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.SearchMcpServersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.SearchMcpServersRequest) + com.google.cloud.agentregistry.v1.SearchMcpServersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchMcpServersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchMcpServersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.SearchMcpServersRequest.class, + com.google.cloud.agentregistry.v1.SearchMcpServersRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.SearchMcpServersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + searchString_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchMcpServersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchMcpServersRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.SearchMcpServersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchMcpServersRequest build() { + com.google.cloud.agentregistry.v1.SearchMcpServersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchMcpServersRequest buildPartial() { + com.google.cloud.agentregistry.v1.SearchMcpServersRequest result = + new com.google.cloud.agentregistry.v1.SearchMcpServersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.SearchMcpServersRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.searchString_ = searchString_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.SearchMcpServersRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.SearchMcpServersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.SearchMcpServersRequest other) { + if (other == com.google.cloud.agentregistry.v1.SearchMcpServersRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSearchString().isEmpty()) { + searchString_ = other.searchString_; + 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 26: + { + searchString_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 48: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 48 + case 58: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + 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 parent_ = ""; + + /** + * + * + *
            +     * Required. Parent value for SearchMcpServersRequest. Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 SearchMcpServersRequest. Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 SearchMcpServersRequest. Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 SearchMcpServersRequest. Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 SearchMcpServersRequest. Format:
            +     * `projects/{project}/locations/{location}`.
            +     * 
            + * + * + * 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 searchString_ = ""; + + /** + * + * + *
            +     * Optional. Search criteria used to select the MCP Servers to return. If no
            +     * search criteria is specified then all accessible MCP Servers will be
            +     * returned.
            +     *
            +     * Search expressions can be used to restrict results based upon searchable
            +     * fields, where the operators can be used along with the suffix wildcard
            +     * symbol `*`. See
            +     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
            +     * for more details.
            +     *
            +     * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
            +     *
            +     * Searchable fields:
            +     *
            +     * | Field              | `=` | `:` | `*` | Keyword Search |
            +     * |--------------------|-----|-----|-----|----------------|
            +     * | mcpServerId        | Yes | Yes | Yes | Included       |
            +     * | name               | No  | Yes | Yes | Included       |
            +     * | displayName        | No  | Yes | Yes | Included       |
            +     *
            +     * Examples:
            +     *
            +     * * `mcpServerId="urn:mcp:projects-123:projects:123:locations:us-central1:agentregistry:services:service-id"`
            +     * to find the MCP Server with the specified MCP Server ID.
            +     * * `name:important` to find MCP Servers whose name contains `important` as a
            +     * word.
            +     * * `displayName:works*` to find MCP Servers whose display name contains
            +     * words that start with `works`.
            +     * * `planner OR booking` to find MCP Servers whose metadata contains the
            +     * words `planner` or `booking`.
            +     * * `mcpServerId:service-id AND (displayName:planner OR
            +     * displayName:booking)` to find MCP Servers whose MCP Server ID contains
            +     * `service-id` and whose display name contains `planner` or
            +     * `booking`.
            +     * 
            + * + * string search_string = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The searchString. + */ + public java.lang.String getSearchString() { + java.lang.Object ref = searchString_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + searchString_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Search criteria used to select the MCP Servers to return. If no
            +     * search criteria is specified then all accessible MCP Servers will be
            +     * returned.
            +     *
            +     * Search expressions can be used to restrict results based upon searchable
            +     * fields, where the operators can be used along with the suffix wildcard
            +     * symbol `*`. See
            +     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
            +     * for more details.
            +     *
            +     * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
            +     *
            +     * Searchable fields:
            +     *
            +     * | Field              | `=` | `:` | `*` | Keyword Search |
            +     * |--------------------|-----|-----|-----|----------------|
            +     * | mcpServerId        | Yes | Yes | Yes | Included       |
            +     * | name               | No  | Yes | Yes | Included       |
            +     * | displayName        | No  | Yes | Yes | Included       |
            +     *
            +     * Examples:
            +     *
            +     * * `mcpServerId="urn:mcp:projects-123:projects:123:locations:us-central1:agentregistry:services:service-id"`
            +     * to find the MCP Server with the specified MCP Server ID.
            +     * * `name:important` to find MCP Servers whose name contains `important` as a
            +     * word.
            +     * * `displayName:works*` to find MCP Servers whose display name contains
            +     * words that start with `works`.
            +     * * `planner OR booking` to find MCP Servers whose metadata contains the
            +     * words `planner` or `booking`.
            +     * * `mcpServerId:service-id AND (displayName:planner OR
            +     * displayName:booking)` to find MCP Servers whose MCP Server ID contains
            +     * `service-id` and whose display name contains `planner` or
            +     * `booking`.
            +     * 
            + * + * string search_string = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for searchString. + */ + public com.google.protobuf.ByteString getSearchStringBytes() { + java.lang.Object ref = searchString_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + searchString_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Search criteria used to select the MCP Servers to return. If no
            +     * search criteria is specified then all accessible MCP Servers will be
            +     * returned.
            +     *
            +     * Search expressions can be used to restrict results based upon searchable
            +     * fields, where the operators can be used along with the suffix wildcard
            +     * symbol `*`. See
            +     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
            +     * for more details.
            +     *
            +     * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
            +     *
            +     * Searchable fields:
            +     *
            +     * | Field              | `=` | `:` | `*` | Keyword Search |
            +     * |--------------------|-----|-----|-----|----------------|
            +     * | mcpServerId        | Yes | Yes | Yes | Included       |
            +     * | name               | No  | Yes | Yes | Included       |
            +     * | displayName        | No  | Yes | Yes | Included       |
            +     *
            +     * Examples:
            +     *
            +     * * `mcpServerId="urn:mcp:projects-123:projects:123:locations:us-central1:agentregistry:services:service-id"`
            +     * to find the MCP Server with the specified MCP Server ID.
            +     * * `name:important` to find MCP Servers whose name contains `important` as a
            +     * word.
            +     * * `displayName:works*` to find MCP Servers whose display name contains
            +     * words that start with `works`.
            +     * * `planner OR booking` to find MCP Servers whose metadata contains the
            +     * words `planner` or `booking`.
            +     * * `mcpServerId:service-id AND (displayName:planner OR
            +     * displayName:booking)` to find MCP Servers whose MCP Server ID contains
            +     * `service-id` and whose display name contains `planner` or
            +     * `booking`.
            +     * 
            + * + * string search_string = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The searchString to set. + * @return This builder for chaining. + */ + public Builder setSearchString(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + searchString_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Search criteria used to select the MCP Servers to return. If no
            +     * search criteria is specified then all accessible MCP Servers will be
            +     * returned.
            +     *
            +     * Search expressions can be used to restrict results based upon searchable
            +     * fields, where the operators can be used along with the suffix wildcard
            +     * symbol `*`. See
            +     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
            +     * for more details.
            +     *
            +     * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
            +     *
            +     * Searchable fields:
            +     *
            +     * | Field              | `=` | `:` | `*` | Keyword Search |
            +     * |--------------------|-----|-----|-----|----------------|
            +     * | mcpServerId        | Yes | Yes | Yes | Included       |
            +     * | name               | No  | Yes | Yes | Included       |
            +     * | displayName        | No  | Yes | Yes | Included       |
            +     *
            +     * Examples:
            +     *
            +     * * `mcpServerId="urn:mcp:projects-123:projects:123:locations:us-central1:agentregistry:services:service-id"`
            +     * to find the MCP Server with the specified MCP Server ID.
            +     * * `name:important` to find MCP Servers whose name contains `important` as a
            +     * word.
            +     * * `displayName:works*` to find MCP Servers whose display name contains
            +     * words that start with `works`.
            +     * * `planner OR booking` to find MCP Servers whose metadata contains the
            +     * words `planner` or `booking`.
            +     * * `mcpServerId:service-id AND (displayName:planner OR
            +     * displayName:booking)` to find MCP Servers whose MCP Server ID contains
            +     * `service-id` and whose display name contains `planner` or
            +     * `booking`.
            +     * 
            + * + * string search_string = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSearchString() { + searchString_ = getDefaultInstance().getSearchString(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Search criteria used to select the MCP Servers to return. If no
            +     * search criteria is specified then all accessible MCP Servers will be
            +     * returned.
            +     *
            +     * Search expressions can be used to restrict results based upon searchable
            +     * fields, where the operators can be used along with the suffix wildcard
            +     * symbol `*`. See
            +     * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
            +     * for more details.
            +     *
            +     * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
            +     *
            +     * Searchable fields:
            +     *
            +     * | Field              | `=` | `:` | `*` | Keyword Search |
            +     * |--------------------|-----|-----|-----|----------------|
            +     * | mcpServerId        | Yes | Yes | Yes | Included       |
            +     * | name               | No  | Yes | Yes | Included       |
            +     * | displayName        | No  | Yes | Yes | Included       |
            +     *
            +     * Examples:
            +     *
            +     * * `mcpServerId="urn:mcp:projects-123:projects:123:locations:us-central1:agentregistry:services:service-id"`
            +     * to find the MCP Server with the specified MCP Server ID.
            +     * * `name:important` to find MCP Servers whose name contains `important` as a
            +     * word.
            +     * * `displayName:works*` to find MCP Servers whose display name contains
            +     * words that start with `works`.
            +     * * `planner OR booking` to find MCP Servers whose metadata contains the
            +     * words `planner` or `booking`.
            +     * * `mcpServerId:service-id AND (displayName:planner OR
            +     * displayName:booking)` to find MCP Servers whose MCP Server ID contains
            +     * `service-id` and whose display name contains `planner` or
            +     * `booking`.
            +     * 
            + * + * string search_string = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for searchString to set. + * @return This builder for chaining. + */ + public Builder setSearchStringBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + searchString_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. The maximum number of search results to return per page. The page
            +     * size is capped at `100`, even if a larger value is specified. A negative
            +     * value will result in an `INVALID_ARGUMENT` error. If unspecified or set to
            +     * `0`, a default value of `20` will be used. The server may return fewer
            +     * results than requested.
            +     * 
            + * + * int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. The maximum number of search results to return per page. The page
            +     * size is capped at `100`, even if a larger value is specified. A negative
            +     * value will result in an `INVALID_ARGUMENT` error. If unspecified or set to
            +     * `0`, a default value of `20` will be used. The server may return fewer
            +     * results than requested.
            +     * 
            + * + * int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The maximum number of search results to return per page. The page
            +     * size is capped at `100`, even if a larger value is specified. A negative
            +     * value will result in an `INVALID_ARGUMENT` error. If unspecified or set to
            +     * `0`, a default value of `20` will be used. The server may return fewer
            +     * results than requested.
            +     * 
            + * + * int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. If present, retrieve the next batch of results from the preceding
            +     * call to this method. `page_token` must be the value of `next_page_token`
            +     * from the previous response. The values of all other method parameters, must
            +     * be identical to those in the previous call.
            +     * 
            + * + * string page_token = 7 [(.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. If present, retrieve the next batch of results from the preceding
            +     * call to this method. `page_token` must be the value of `next_page_token`
            +     * from the previous response. The values of all other method parameters, must
            +     * be identical to those in the previous call.
            +     * 
            + * + * string page_token = 7 [(.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. If present, retrieve the next batch of results from the preceding
            +     * call to this method. `page_token` must be the value of `next_page_token`
            +     * from the previous response. The values of all other method parameters, must
            +     * be identical to those in the previous call.
            +     * 
            + * + * string page_token = 7 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If present, retrieve the next batch of results from the preceding
            +     * call to this method. `page_token` must be the value of `next_page_token`
            +     * from the previous response. The values of all other method parameters, must
            +     * be identical to those in the previous call.
            +     * 
            + * + * string page_token = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If present, retrieve the next batch of results from the preceding
            +     * call to this method. `page_token` must be the value of `next_page_token`
            +     * from the previous response. The values of all other method parameters, must
            +     * be identical to those in the previous call.
            +     * 
            + * + * string page_token = 7 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.SearchMcpServersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.SearchMcpServersRequest) + private static final com.google.cloud.agentregistry.v1.SearchMcpServersRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.SearchMcpServersRequest(); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchMcpServersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.SearchMcpServersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchMcpServersRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchMcpServersRequestOrBuilder.java new file mode 100644 index 000000000000..1b9b28ada89d --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchMcpServersRequestOrBuilder.java @@ -0,0 +1,201 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface SearchMcpServersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.SearchMcpServersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Parent value for SearchMcpServersRequest. Format:
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. Parent value for SearchMcpServersRequest. Format:
            +   * `projects/{project}/locations/{location}`.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. Search criteria used to select the MCP Servers to return. If no
            +   * search criteria is specified then all accessible MCP Servers will be
            +   * returned.
            +   *
            +   * Search expressions can be used to restrict results based upon searchable
            +   * fields, where the operators can be used along with the suffix wildcard
            +   * symbol `*`. See
            +   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
            +   * for more details.
            +   *
            +   * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
            +   *
            +   * Searchable fields:
            +   *
            +   * | Field              | `=` | `:` | `*` | Keyword Search |
            +   * |--------------------|-----|-----|-----|----------------|
            +   * | mcpServerId        | Yes | Yes | Yes | Included       |
            +   * | name               | No  | Yes | Yes | Included       |
            +   * | displayName        | No  | Yes | Yes | Included       |
            +   *
            +   * Examples:
            +   *
            +   * * `mcpServerId="urn:mcp:projects-123:projects:123:locations:us-central1:agentregistry:services:service-id"`
            +   * to find the MCP Server with the specified MCP Server ID.
            +   * * `name:important` to find MCP Servers whose name contains `important` as a
            +   * word.
            +   * * `displayName:works*` to find MCP Servers whose display name contains
            +   * words that start with `works`.
            +   * * `planner OR booking` to find MCP Servers whose metadata contains the
            +   * words `planner` or `booking`.
            +   * * `mcpServerId:service-id AND (displayName:planner OR
            +   * displayName:booking)` to find MCP Servers whose MCP Server ID contains
            +   * `service-id` and whose display name contains `planner` or
            +   * `booking`.
            +   * 
            + * + * string search_string = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The searchString. + */ + java.lang.String getSearchString(); + + /** + * + * + *
            +   * Optional. Search criteria used to select the MCP Servers to return. If no
            +   * search criteria is specified then all accessible MCP Servers will be
            +   * returned.
            +   *
            +   * Search expressions can be used to restrict results based upon searchable
            +   * fields, where the operators can be used along with the suffix wildcard
            +   * symbol `*`. See
            +   * [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools)
            +   * for more details.
            +   *
            +   * Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`.
            +   *
            +   * Searchable fields:
            +   *
            +   * | Field              | `=` | `:` | `*` | Keyword Search |
            +   * |--------------------|-----|-----|-----|----------------|
            +   * | mcpServerId        | Yes | Yes | Yes | Included       |
            +   * | name               | No  | Yes | Yes | Included       |
            +   * | displayName        | No  | Yes | Yes | Included       |
            +   *
            +   * Examples:
            +   *
            +   * * `mcpServerId="urn:mcp:projects-123:projects:123:locations:us-central1:agentregistry:services:service-id"`
            +   * to find the MCP Server with the specified MCP Server ID.
            +   * * `name:important` to find MCP Servers whose name contains `important` as a
            +   * word.
            +   * * `displayName:works*` to find MCP Servers whose display name contains
            +   * words that start with `works`.
            +   * * `planner OR booking` to find MCP Servers whose metadata contains the
            +   * words `planner` or `booking`.
            +   * * `mcpServerId:service-id AND (displayName:planner OR
            +   * displayName:booking)` to find MCP Servers whose MCP Server ID contains
            +   * `service-id` and whose display name contains `planner` or
            +   * `booking`.
            +   * 
            + * + * string search_string = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for searchString. + */ + com.google.protobuf.ByteString getSearchStringBytes(); + + /** + * + * + *
            +   * Optional. The maximum number of search results to return per page. The page
            +   * size is capped at `100`, even if a larger value is specified. A negative
            +   * value will result in an `INVALID_ARGUMENT` error. If unspecified or set to
            +   * `0`, a default value of `20` will be used. The server may return fewer
            +   * results than requested.
            +   * 
            + * + * int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. If present, retrieve the next batch of results from the preceding
            +   * call to this method. `page_token` must be the value of `next_page_token`
            +   * from the previous response. The values of all other method parameters, must
            +   * be identical to those in the previous call.
            +   * 
            + * + * string page_token = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. If present, retrieve the next batch of results from the preceding
            +   * call to this method. `page_token` must be the value of `next_page_token`
            +   * from the previous response. The values of all other method parameters, must
            +   * be identical to those in the previous call.
            +   * 
            + * + * string page_token = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchMcpServersResponse.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchMcpServersResponse.java new file mode 100644 index 000000000000..afa794bfbf76 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchMcpServersResponse.java @@ -0,0 +1,1128 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for response to searching MCP Servers
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.SearchMcpServersResponse} + */ +@com.google.protobuf.Generated +public final class SearchMcpServersResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.SearchMcpServersResponse) + SearchMcpServersResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchMcpServersResponse"); + } + + // Use SearchMcpServersResponse.newBuilder() to construct. + private SearchMcpServersResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchMcpServersResponse() { + mcpServers_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchMcpServersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchMcpServersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.SearchMcpServersResponse.class, + com.google.cloud.agentregistry.v1.SearchMcpServersResponse.Builder.class); + } + + public static final int MCP_SERVERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List mcpServers_; + + /** + * + * + *
            +   * A list of McpServers that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + @java.lang.Override + public java.util.List getMcpServersList() { + return mcpServers_; + } + + /** + * + * + *
            +   * A list of McpServers that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + @java.lang.Override + public java.util.List + getMcpServersOrBuilderList() { + return mcpServers_; + } + + /** + * + * + *
            +   * A list of McpServers that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + @java.lang.Override + public int getMcpServersCount() { + return mcpServers_.size(); + } + + /** + * + * + *
            +   * A list of McpServers that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.McpServer getMcpServers(int index) { + return mcpServers_.get(index); + } + + /** + * + * + *
            +   * A list of McpServers that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.McpServerOrBuilder getMcpServersOrBuilder(int index) { + return mcpServers_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * If there are more results than those appearing in this response, then
            +   * `next_page_token` is included. To get the next set of results, call this
            +   * method again using the value of `next_page_token` as `page_token`.
            +   * 
            + * + * 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; + } + } + + /** + * + * + *
            +   * If there are more results than those appearing in this response, then
            +   * `next_page_token` is included. To get the next set of results, call this
            +   * method again using the value of `next_page_token` as `page_token`.
            +   * 
            + * + * 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 < mcpServers_.size(); i++) { + output.writeMessage(1, mcpServers_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < mcpServers_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, mcpServers_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.agentregistry.v1.SearchMcpServersResponse)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.SearchMcpServersResponse other = + (com.google.cloud.agentregistry.v1.SearchMcpServersResponse) obj; + + if (!getMcpServersList().equals(other.getMcpServersList())) 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 (getMcpServersCount() > 0) { + hash = (37 * hash) + MCP_SERVERS_FIELD_NUMBER; + hash = (53 * hash) + getMcpServersList().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.agentregistry.v1.SearchMcpServersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersResponse 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.agentregistry.v1.SearchMcpServersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersResponse parseFrom( + 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.agentregistry.v1.SearchMcpServersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.SearchMcpServersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for response to searching MCP Servers
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.SearchMcpServersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.SearchMcpServersResponse) + com.google.cloud.agentregistry.v1.SearchMcpServersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchMcpServersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchMcpServersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.SearchMcpServersResponse.class, + com.google.cloud.agentregistry.v1.SearchMcpServersResponse.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.SearchMcpServersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mcpServersBuilder_ == null) { + mcpServers_ = java.util.Collections.emptyList(); + } else { + mcpServers_ = null; + mcpServersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_SearchMcpServersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchMcpServersResponse getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.SearchMcpServersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchMcpServersResponse build() { + com.google.cloud.agentregistry.v1.SearchMcpServersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.SearchMcpServersResponse buildPartial() { + com.google.cloud.agentregistry.v1.SearchMcpServersResponse result = + new com.google.cloud.agentregistry.v1.SearchMcpServersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentregistry.v1.SearchMcpServersResponse result) { + if (mcpServersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + mcpServers_ = java.util.Collections.unmodifiableList(mcpServers_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mcpServers_ = mcpServers_; + } else { + result.mcpServers_ = mcpServersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.SearchMcpServersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.SearchMcpServersResponse) { + return mergeFrom((com.google.cloud.agentregistry.v1.SearchMcpServersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.SearchMcpServersResponse other) { + if (other == com.google.cloud.agentregistry.v1.SearchMcpServersResponse.getDefaultInstance()) + return this; + if (mcpServersBuilder_ == null) { + if (!other.mcpServers_.isEmpty()) { + if (mcpServers_.isEmpty()) { + mcpServers_ = other.mcpServers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMcpServersIsMutable(); + mcpServers_.addAll(other.mcpServers_); + } + onChanged(); + } + } else { + if (!other.mcpServers_.isEmpty()) { + if (mcpServersBuilder_.isEmpty()) { + mcpServersBuilder_.dispose(); + mcpServersBuilder_ = null; + mcpServers_ = other.mcpServers_; + bitField0_ = (bitField0_ & ~0x00000001); + mcpServersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMcpServersFieldBuilder() + : null; + } else { + mcpServersBuilder_.addAllMessages(other.mcpServers_); + } + } + } + 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.agentregistry.v1.McpServer m = + input.readMessage( + com.google.cloud.agentregistry.v1.McpServer.parser(), extensionRegistry); + if (mcpServersBuilder_ == null) { + ensureMcpServersIsMutable(); + mcpServers_.add(m); + } else { + mcpServersBuilder_.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 mcpServers_ = + java.util.Collections.emptyList(); + + private void ensureMcpServersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + mcpServers_ = + new java.util.ArrayList(mcpServers_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.McpServer, + com.google.cloud.agentregistry.v1.McpServer.Builder, + com.google.cloud.agentregistry.v1.McpServerOrBuilder> + mcpServersBuilder_; + + /** + * + * + *
            +     * A list of McpServers that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public java.util.List getMcpServersList() { + if (mcpServersBuilder_ == null) { + return java.util.Collections.unmodifiableList(mcpServers_); + } else { + return mcpServersBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * A list of McpServers that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public int getMcpServersCount() { + if (mcpServersBuilder_ == null) { + return mcpServers_.size(); + } else { + return mcpServersBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * A list of McpServers that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public com.google.cloud.agentregistry.v1.McpServer getMcpServers(int index) { + if (mcpServersBuilder_ == null) { + return mcpServers_.get(index); + } else { + return mcpServersBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * A list of McpServers that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder setMcpServers(int index, com.google.cloud.agentregistry.v1.McpServer value) { + if (mcpServersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMcpServersIsMutable(); + mcpServers_.set(index, value); + onChanged(); + } else { + mcpServersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * A list of McpServers that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder setMcpServers( + int index, com.google.cloud.agentregistry.v1.McpServer.Builder builderForValue) { + if (mcpServersBuilder_ == null) { + ensureMcpServersIsMutable(); + mcpServers_.set(index, builderForValue.build()); + onChanged(); + } else { + mcpServersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * A list of McpServers that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder addMcpServers(com.google.cloud.agentregistry.v1.McpServer value) { + if (mcpServersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMcpServersIsMutable(); + mcpServers_.add(value); + onChanged(); + } else { + mcpServersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * A list of McpServers that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder addMcpServers(int index, com.google.cloud.agentregistry.v1.McpServer value) { + if (mcpServersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMcpServersIsMutable(); + mcpServers_.add(index, value); + onChanged(); + } else { + mcpServersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * A list of McpServers that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder addMcpServers( + com.google.cloud.agentregistry.v1.McpServer.Builder builderForValue) { + if (mcpServersBuilder_ == null) { + ensureMcpServersIsMutable(); + mcpServers_.add(builderForValue.build()); + onChanged(); + } else { + mcpServersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * A list of McpServers that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder addMcpServers( + int index, com.google.cloud.agentregistry.v1.McpServer.Builder builderForValue) { + if (mcpServersBuilder_ == null) { + ensureMcpServersIsMutable(); + mcpServers_.add(index, builderForValue.build()); + onChanged(); + } else { + mcpServersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * A list of McpServers that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder addAllMcpServers( + java.lang.Iterable values) { + if (mcpServersBuilder_ == null) { + ensureMcpServersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mcpServers_); + onChanged(); + } else { + mcpServersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * A list of McpServers that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder clearMcpServers() { + if (mcpServersBuilder_ == null) { + mcpServers_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mcpServersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * A list of McpServers that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public Builder removeMcpServers(int index) { + if (mcpServersBuilder_ == null) { + ensureMcpServersIsMutable(); + mcpServers_.remove(index); + onChanged(); + } else { + mcpServersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * A list of McpServers that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public com.google.cloud.agentregistry.v1.McpServer.Builder getMcpServersBuilder(int index) { + return internalGetMcpServersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * A list of McpServers that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public com.google.cloud.agentregistry.v1.McpServerOrBuilder getMcpServersOrBuilder(int index) { + if (mcpServersBuilder_ == null) { + return mcpServers_.get(index); + } else { + return mcpServersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * A list of McpServers that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public java.util.List + getMcpServersOrBuilderList() { + if (mcpServersBuilder_ != null) { + return mcpServersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mcpServers_); + } + } + + /** + * + * + *
            +     * A list of McpServers that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public com.google.cloud.agentregistry.v1.McpServer.Builder addMcpServersBuilder() { + return internalGetMcpServersFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.McpServer.getDefaultInstance()); + } + + /** + * + * + *
            +     * A list of McpServers that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public com.google.cloud.agentregistry.v1.McpServer.Builder addMcpServersBuilder(int index) { + return internalGetMcpServersFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.McpServer.getDefaultInstance()); + } + + /** + * + * + *
            +     * A list of McpServers that match the `search_string`.
            +     * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + public java.util.List + getMcpServersBuilderList() { + return internalGetMcpServersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.McpServer, + com.google.cloud.agentregistry.v1.McpServer.Builder, + com.google.cloud.agentregistry.v1.McpServerOrBuilder> + internalGetMcpServersFieldBuilder() { + if (mcpServersBuilder_ == null) { + mcpServersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.McpServer, + com.google.cloud.agentregistry.v1.McpServer.Builder, + com.google.cloud.agentregistry.v1.McpServerOrBuilder>( + mcpServers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + mcpServers_ = null; + } + return mcpServersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * If there are more results than those appearing in this response, then
            +     * `next_page_token` is included. To get the next set of results, call this
            +     * method again using the value of `next_page_token` as `page_token`.
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * If there are more results than those appearing in this response, then
            +     * `next_page_token` is included. To get the next set of results, call this
            +     * method again using the value of `next_page_token` as `page_token`.
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * If there are more results than those appearing in this response, then
            +     * `next_page_token` is included. To get the next set of results, call this
            +     * method again using the value of `next_page_token` as `page_token`.
            +     * 
            + * + * 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; + } + + /** + * + * + *
            +     * If there are more results than those appearing in this response, then
            +     * `next_page_token` is included. To get the next set of results, call this
            +     * method again using the value of `next_page_token` as `page_token`.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * If there are more results than those appearing in this response, then
            +     * `next_page_token` is included. To get the next set of results, call this
            +     * method again using the value of `next_page_token` as `page_token`.
            +     * 
            + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.SearchMcpServersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.SearchMcpServersResponse) + private static final com.google.cloud.agentregistry.v1.SearchMcpServersResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.SearchMcpServersResponse(); + } + + public static com.google.cloud.agentregistry.v1.SearchMcpServersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchMcpServersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.SearchMcpServersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchMcpServersResponseOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchMcpServersResponseOrBuilder.java new file mode 100644 index 000000000000..ad4c125ca2f1 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/SearchMcpServersResponseOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface SearchMcpServersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.SearchMcpServersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * A list of McpServers that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + java.util.List getMcpServersList(); + + /** + * + * + *
            +   * A list of McpServers that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + com.google.cloud.agentregistry.v1.McpServer getMcpServers(int index); + + /** + * + * + *
            +   * A list of McpServers that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + int getMcpServersCount(); + + /** + * + * + *
            +   * A list of McpServers that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + java.util.List + getMcpServersOrBuilderList(); + + /** + * + * + *
            +   * A list of McpServers that match the `search_string`.
            +   * 
            + * + * repeated .google.cloud.agentregistry.v1.McpServer mcp_servers = 1; + */ + com.google.cloud.agentregistry.v1.McpServerOrBuilder getMcpServersOrBuilder(int index); + + /** + * + * + *
            +   * If there are more results than those appearing in this response, then
            +   * `next_page_token` is included. To get the next set of results, call this
            +   * method again using the value of `next_page_token` as `page_token`.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * If there are more results than those appearing in this response, then
            +   * `next_page_token` is included. To get the next set of results, call this
            +   * method again using the value of `next_page_token` as `page_token`.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Service.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Service.java new file mode 100644 index 000000000000..1f1c5a062eaf --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/Service.java @@ -0,0 +1,6841 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Represents a user-defined Service.
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Service} + */ +@com.google.protobuf.Generated +public final class Service extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.Service) + ServiceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Service"); + } + + // Use Service.newBuilder() to construct. + private Service(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Service() { + name_ = ""; + displayName_ = ""; + description_ = ""; + interfaces_ = java.util.Collections.emptyList(); + registryResource_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Service.class, + com.google.cloud.agentregistry.v1.Service.Builder.class); + } + + public interface AgentSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.Service.AgentSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Required. The type of the agent spec content.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
            +     * Required. The type of the agent spec content.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + com.google.cloud.agentregistry.v1.Service.AgentSpec.Type getType(); + + /** + * + * + *
            +     * Optional. The content of the Agent spec in the JSON format.
            +     * This payload is validated against the schema for the specified type.
            +     * The content size is limited to `10KB`.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the content field is set. + */ + boolean hasContent(); + + /** + * + * + *
            +     * Optional. The content of the Agent spec in the JSON format.
            +     * This payload is validated against the schema for the specified type.
            +     * The content size is limited to `10KB`.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The content. + */ + com.google.protobuf.Struct getContent(); + + /** + * + * + *
            +     * Optional. The content of the Agent spec in the JSON format.
            +     * This payload is validated against the schema for the specified type.
            +     * The content size is limited to `10KB`.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getContentOrBuilder(); + } + + /** + * + * + *
            +   * The spec of the agent.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Service.AgentSpec} + */ + public static final class AgentSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.Service.AgentSpec) + AgentSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentSpec"); + } + + // Use AgentSpec.newBuilder() to construct. + private AgentSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentSpec() { + type_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_AgentSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_AgentSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Service.AgentSpec.class, + com.google.cloud.agentregistry.v1.Service.AgentSpec.Builder.class); + } + + /** + * + * + *
            +     * The type of the agent spec.
            +     * 
            + * + * Protobuf enum {@code google.cloud.agentregistry.v1.Service.AgentSpec.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Unspecified type.
            +       * 
            + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
            +       * There is no spec for the Agent. The `content` field must be empty.
            +       * 
            + * + * NO_SPEC = 1; + */ + NO_SPEC(1), + /** + * + * + *
            +       * The content is an A2A Agent Card following the A2A specification.
            +       * The `interfaces` field must be empty.
            +       * 
            + * + * A2A_AGENT_CARD = 2; + */ + A2A_AGENT_CARD(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
            +       * Unspecified type.
            +       * 
            + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +       * There is no spec for the Agent. The `content` field must be empty.
            +       * 
            + * + * NO_SPEC = 1; + */ + public static final int NO_SPEC_VALUE = 1; + + /** + * + * + *
            +       * The content is an A2A Agent Card following the A2A specification.
            +       * The `interfaces` field must be empty.
            +       * 
            + * + * A2A_AGENT_CARD = 2; + */ + public static final int A2A_AGENT_CARD_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 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 NO_SPEC; + case 2: + return A2A_AGENT_CARD; + 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.Service.AgentSpec.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.agentregistry.v1.Service.AgentSpec.Type) + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + + /** + * + * + *
            +     * Required. The type of the agent spec content.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
            +     * Required. The type of the agent spec content.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.AgentSpec.Type getType() { + com.google.cloud.agentregistry.v1.Service.AgentSpec.Type result = + com.google.cloud.agentregistry.v1.Service.AgentSpec.Type.forNumber(type_); + return result == null + ? com.google.cloud.agentregistry.v1.Service.AgentSpec.Type.UNRECOGNIZED + : result; + } + + public static final int CONTENT_FIELD_NUMBER = 2; + private com.google.protobuf.Struct content_; + + /** + * + * + *
            +     * Optional. The content of the Agent spec in the JSON format.
            +     * This payload is validated against the schema for the specified type.
            +     * The content size is limited to `10KB`.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. The content of the Agent spec in the JSON format.
            +     * This payload is validated against the schema for the specified type.
            +     * The content size is limited to `10KB`.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The content. + */ + @java.lang.Override + public com.google.protobuf.Struct getContent() { + return content_ == null ? com.google.protobuf.Struct.getDefaultInstance() : content_; + } + + /** + * + * + *
            +     * Optional. The content of the Agent spec in the JSON format.
            +     * This payload is validated against the schema for the specified type.
            +     * The content size is limited to `10KB`.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getContentOrBuilder() { + return content_ == null ? com.google.protobuf.Struct.getDefaultInstance() : content_; + } + + 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.agentregistry.v1.Service.AgentSpec.Type.TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getContent()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.agentregistry.v1.Service.AgentSpec.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContent()); + } + 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.agentregistry.v1.Service.AgentSpec)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.Service.AgentSpec other = + (com.google.cloud.agentregistry.v1.Service.AgentSpec) obj; + + if (type_ != other.type_) return false; + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent().equals(other.getContent())) 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_; + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.Service.AgentSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Service.AgentSpec 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.agentregistry.v1.Service.AgentSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Service.AgentSpec parseFrom( + 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.agentregistry.v1.Service.AgentSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Service.AgentSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Service.AgentSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Service.AgentSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Service.AgentSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Service.AgentSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Service.AgentSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Service.AgentSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.Service.AgentSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * The spec of the agent.
            +     * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Service.AgentSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.Service.AgentSpec) + com.google.cloud.agentregistry.v1.Service.AgentSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_AgentSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_AgentSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Service.AgentSpec.class, + com.google.cloud.agentregistry.v1.Service.AgentSpec.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.Service.AgentSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetContentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_AgentSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.AgentSpec getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.Service.AgentSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.AgentSpec build() { + com.google.cloud.agentregistry.v1.Service.AgentSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.AgentSpec buildPartial() { + com.google.cloud.agentregistry.v1.Service.AgentSpec result = + new com.google.cloud.agentregistry.v1.Service.AgentSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.Service.AgentSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.Service.AgentSpec) { + return mergeFrom((com.google.cloud.agentregistry.v1.Service.AgentSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.Service.AgentSpec other) { + if (other == com.google.cloud.agentregistry.v1.Service.AgentSpec.getDefaultInstance()) + return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasContent()) { + mergeContent(other.getContent()); + } + 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: + { + input.readMessage( + internalGetContentFieldBuilder().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 type_ = 0; + + /** + * + * + *
            +       * Required. The type of the agent spec content.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
            +       * Required. The type of the agent spec content.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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; + } + + /** + * + * + *
            +       * Required. The type of the agent spec content.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.AgentSpec.Type getType() { + com.google.cloud.agentregistry.v1.Service.AgentSpec.Type result = + com.google.cloud.agentregistry.v1.Service.AgentSpec.Type.forNumber(type_); + return result == null + ? com.google.cloud.agentregistry.v1.Service.AgentSpec.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Required. The type of the agent spec content.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.agentregistry.v1.Service.AgentSpec.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The type of the agent spec content.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Struct content_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + contentBuilder_; + + /** + * + * + *
            +       * Optional. The content of the Agent spec in the JSON format.
            +       * This payload is validated against the schema for the specified type.
            +       * The content size is limited to `10KB`.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +       * Optional. The content of the Agent spec in the JSON format.
            +       * This payload is validated against the schema for the specified type.
            +       * The content size is limited to `10KB`.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The content. + */ + public com.google.protobuf.Struct getContent() { + if (contentBuilder_ == null) { + return content_ == null ? com.google.protobuf.Struct.getDefaultInstance() : content_; + } else { + return contentBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. The content of the Agent spec in the JSON format.
            +       * This payload is validated against the schema for the specified type.
            +       * The content size is limited to `10KB`.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setContent(com.google.protobuf.Struct value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + } else { + contentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The content of the Agent spec in the JSON format.
            +       * This payload is validated against the schema for the specified type.
            +       * The content size is limited to `10KB`.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setContent(com.google.protobuf.Struct.Builder builderForValue) { + if (contentBuilder_ == null) { + content_ = builderForValue.build(); + } else { + contentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The content of the Agent spec in the JSON format.
            +       * This payload is validated against the schema for the specified type.
            +       * The content size is limited to `10KB`.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeContent(com.google.protobuf.Struct value) { + if (contentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && content_ != null + && content_ != com.google.protobuf.Struct.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); + } else { + content_ = value; + } + } else { + contentBuilder_.mergeFrom(value); + } + if (content_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. The content of the Agent spec in the JSON format.
            +       * This payload is validated against the schema for the specified type.
            +       * The content size is limited to `10KB`.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000002); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The content of the Agent spec in the JSON format.
            +       * This payload is validated against the schema for the specified type.
            +       * The content size is limited to `10KB`.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getContentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetContentFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. The content of the Agent spec in the JSON format.
            +       * This payload is validated against the schema for the specified type.
            +       * The content size is limited to `10KB`.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.StructOrBuilder getContentOrBuilder() { + if (contentBuilder_ != null) { + return contentBuilder_.getMessageOrBuilder(); + } else { + return content_ == null ? com.google.protobuf.Struct.getDefaultInstance() : content_; + } + } + + /** + * + * + *
            +       * Optional. The content of the Agent spec in the JSON format.
            +       * This payload is validated against the schema for the specified type.
            +       * The content size is limited to `10KB`.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetContentFieldBuilder() { + if (contentBuilder_ == null) { + contentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getContent(), getParentForChildren(), isClean()); + content_ = null; + } + return contentBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.Service.AgentSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.Service.AgentSpec) + private static final com.google.cloud.agentregistry.v1.Service.AgentSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.Service.AgentSpec(); + } + + public static com.google.cloud.agentregistry.v1.Service.AgentSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.Service.AgentSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface McpServerSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.Service.McpServerSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Required. The type of the MCP Server spec content.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
            +     * Required. The type of the MCP Server spec content.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + com.google.cloud.agentregistry.v1.Service.McpServerSpec.Type getType(); + + /** + * + * + *
            +     * Optional. The content of the MCP Server spec.
            +     * This payload is validated against the schema for the specified type.
            +     * The content size is limited to `10KB`.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the content field is set. + */ + boolean hasContent(); + + /** + * + * + *
            +     * Optional. The content of the MCP Server spec.
            +     * This payload is validated against the schema for the specified type.
            +     * The content size is limited to `10KB`.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The content. + */ + com.google.protobuf.Struct getContent(); + + /** + * + * + *
            +     * Optional. The content of the MCP Server spec.
            +     * This payload is validated against the schema for the specified type.
            +     * The content size is limited to `10KB`.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getContentOrBuilder(); + } + + /** + * + * + *
            +   * The spec of the MCP Server.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Service.McpServerSpec} + */ + public static final class McpServerSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.Service.McpServerSpec) + McpServerSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "McpServerSpec"); + } + + // Use McpServerSpec.newBuilder() to construct. + private McpServerSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private McpServerSpec() { + type_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_McpServerSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_McpServerSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Service.McpServerSpec.class, + com.google.cloud.agentregistry.v1.Service.McpServerSpec.Builder.class); + } + + /** + * + * + *
            +     * The type of the MCP Server spec.
            +     * 
            + * + * Protobuf enum {@code google.cloud.agentregistry.v1.Service.McpServerSpec.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Unspecified type.
            +       * 
            + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
            +       * There is no spec for the MCP Server. The `content` field must be empty.
            +       * 
            + * + * NO_SPEC = 1; + */ + NO_SPEC(1), + /** + * + * + *
            +       * The content is a MCP Tool Spec following the One MCP specification.
            +       * The payload is the same as the `tools/list` response.
            +       * 
            + * + * TOOL_SPEC = 2; + */ + TOOL_SPEC(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
            +       * Unspecified type.
            +       * 
            + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +       * There is no spec for the MCP Server. The `content` field must be empty.
            +       * 
            + * + * NO_SPEC = 1; + */ + public static final int NO_SPEC_VALUE = 1; + + /** + * + * + *
            +       * The content is a MCP Tool Spec following the One MCP specification.
            +       * The payload is the same as the `tools/list` response.
            +       * 
            + * + * TOOL_SPEC = 2; + */ + public static final int TOOL_SPEC_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 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 NO_SPEC; + case 2: + return TOOL_SPEC; + 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.Service.McpServerSpec.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.agentregistry.v1.Service.McpServerSpec.Type) + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + + /** + * + * + *
            +     * Required. The type of the MCP Server spec content.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
            +     * Required. The type of the MCP Server spec content.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.McpServerSpec.Type getType() { + com.google.cloud.agentregistry.v1.Service.McpServerSpec.Type result = + com.google.cloud.agentregistry.v1.Service.McpServerSpec.Type.forNumber(type_); + return result == null + ? com.google.cloud.agentregistry.v1.Service.McpServerSpec.Type.UNRECOGNIZED + : result; + } + + public static final int CONTENT_FIELD_NUMBER = 2; + private com.google.protobuf.Struct content_; + + /** + * + * + *
            +     * Optional. The content of the MCP Server spec.
            +     * This payload is validated against the schema for the specified type.
            +     * The content size is limited to `10KB`.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. The content of the MCP Server spec.
            +     * This payload is validated against the schema for the specified type.
            +     * The content size is limited to `10KB`.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The content. + */ + @java.lang.Override + public com.google.protobuf.Struct getContent() { + return content_ == null ? com.google.protobuf.Struct.getDefaultInstance() : content_; + } + + /** + * + * + *
            +     * Optional. The content of the MCP Server spec.
            +     * This payload is validated against the schema for the specified type.
            +     * The content size is limited to `10KB`.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getContentOrBuilder() { + return content_ == null ? com.google.protobuf.Struct.getDefaultInstance() : content_; + } + + 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.agentregistry.v1.Service.McpServerSpec.Type.TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getContent()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.agentregistry.v1.Service.McpServerSpec.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContent()); + } + 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.agentregistry.v1.Service.McpServerSpec)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.Service.McpServerSpec other = + (com.google.cloud.agentregistry.v1.Service.McpServerSpec) obj; + + if (type_ != other.type_) return false; + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent().equals(other.getContent())) 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_; + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.Service.McpServerSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Service.McpServerSpec 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.agentregistry.v1.Service.McpServerSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Service.McpServerSpec parseFrom( + 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.agentregistry.v1.Service.McpServerSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Service.McpServerSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Service.McpServerSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Service.McpServerSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Service.McpServerSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Service.McpServerSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Service.McpServerSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Service.McpServerSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.Service.McpServerSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * The spec of the MCP Server.
            +     * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Service.McpServerSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.Service.McpServerSpec) + com.google.cloud.agentregistry.v1.Service.McpServerSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_McpServerSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_McpServerSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Service.McpServerSpec.class, + com.google.cloud.agentregistry.v1.Service.McpServerSpec.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.Service.McpServerSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetContentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_McpServerSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.McpServerSpec getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.Service.McpServerSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.McpServerSpec build() { + com.google.cloud.agentregistry.v1.Service.McpServerSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.McpServerSpec buildPartial() { + com.google.cloud.agentregistry.v1.Service.McpServerSpec result = + new com.google.cloud.agentregistry.v1.Service.McpServerSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.Service.McpServerSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.Service.McpServerSpec) { + return mergeFrom((com.google.cloud.agentregistry.v1.Service.McpServerSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.Service.McpServerSpec other) { + if (other == com.google.cloud.agentregistry.v1.Service.McpServerSpec.getDefaultInstance()) + return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasContent()) { + mergeContent(other.getContent()); + } + 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: + { + input.readMessage( + internalGetContentFieldBuilder().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 type_ = 0; + + /** + * + * + *
            +       * Required. The type of the MCP Server spec content.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
            +       * Required. The type of the MCP Server spec content.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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; + } + + /** + * + * + *
            +       * Required. The type of the MCP Server spec content.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.McpServerSpec.Type getType() { + com.google.cloud.agentregistry.v1.Service.McpServerSpec.Type result = + com.google.cloud.agentregistry.v1.Service.McpServerSpec.Type.forNumber(type_); + return result == null + ? com.google.cloud.agentregistry.v1.Service.McpServerSpec.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Required. The type of the MCP Server spec content.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.agentregistry.v1.Service.McpServerSpec.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The type of the MCP Server spec content.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Struct content_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + contentBuilder_; + + /** + * + * + *
            +       * Optional. The content of the MCP Server spec.
            +       * This payload is validated against the schema for the specified type.
            +       * The content size is limited to `10KB`.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +       * Optional. The content of the MCP Server spec.
            +       * This payload is validated against the schema for the specified type.
            +       * The content size is limited to `10KB`.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The content. + */ + public com.google.protobuf.Struct getContent() { + if (contentBuilder_ == null) { + return content_ == null ? com.google.protobuf.Struct.getDefaultInstance() : content_; + } else { + return contentBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. The content of the MCP Server spec.
            +       * This payload is validated against the schema for the specified type.
            +       * The content size is limited to `10KB`.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setContent(com.google.protobuf.Struct value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + } else { + contentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The content of the MCP Server spec.
            +       * This payload is validated against the schema for the specified type.
            +       * The content size is limited to `10KB`.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setContent(com.google.protobuf.Struct.Builder builderForValue) { + if (contentBuilder_ == null) { + content_ = builderForValue.build(); + } else { + contentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The content of the MCP Server spec.
            +       * This payload is validated against the schema for the specified type.
            +       * The content size is limited to `10KB`.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeContent(com.google.protobuf.Struct value) { + if (contentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && content_ != null + && content_ != com.google.protobuf.Struct.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); + } else { + content_ = value; + } + } else { + contentBuilder_.mergeFrom(value); + } + if (content_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. The content of the MCP Server spec.
            +       * This payload is validated against the schema for the specified type.
            +       * The content size is limited to `10KB`.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000002); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The content of the MCP Server spec.
            +       * This payload is validated against the schema for the specified type.
            +       * The content size is limited to `10KB`.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getContentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetContentFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. The content of the MCP Server spec.
            +       * This payload is validated against the schema for the specified type.
            +       * The content size is limited to `10KB`.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.StructOrBuilder getContentOrBuilder() { + if (contentBuilder_ != null) { + return contentBuilder_.getMessageOrBuilder(); + } else { + return content_ == null ? com.google.protobuf.Struct.getDefaultInstance() : content_; + } + } + + /** + * + * + *
            +       * Optional. The content of the MCP Server spec.
            +       * This payload is validated against the schema for the specified type.
            +       * The content size is limited to `10KB`.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetContentFieldBuilder() { + if (contentBuilder_ == null) { + contentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getContent(), getParentForChildren(), isClean()); + content_ = null; + } + return contentBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.Service.McpServerSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.Service.McpServerSpec) + private static final com.google.cloud.agentregistry.v1.Service.McpServerSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.Service.McpServerSpec(); + } + + public static com.google.cloud.agentregistry.v1.Service.McpServerSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public McpServerSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.Service.McpServerSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EndpointSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.Service.EndpointSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Required. The type of the endpoint spec content.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
            +     * Required. The type of the endpoint spec content.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + com.google.cloud.agentregistry.v1.Service.EndpointSpec.Type getType(); + + /** + * + * + *
            +     * Optional. The content of the endpoint spec.
            +     * Reserved for future use.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the content field is set. + */ + boolean hasContent(); + + /** + * + * + *
            +     * Optional. The content of the endpoint spec.
            +     * Reserved for future use.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The content. + */ + com.google.protobuf.Struct getContent(); + + /** + * + * + *
            +     * Optional. The content of the endpoint spec.
            +     * Reserved for future use.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getContentOrBuilder(); + } + + /** + * + * + *
            +   * The spec of the endpoint.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Service.EndpointSpec} + */ + public static final class EndpointSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.Service.EndpointSpec) + EndpointSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EndpointSpec"); + } + + // Use EndpointSpec.newBuilder() to construct. + private EndpointSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EndpointSpec() { + type_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_EndpointSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_EndpointSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Service.EndpointSpec.class, + com.google.cloud.agentregistry.v1.Service.EndpointSpec.Builder.class); + } + + /** + * + * + *
            +     * The type of the endpoint spec.
            +     * 
            + * + * Protobuf enum {@code google.cloud.agentregistry.v1.Service.EndpointSpec.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +       * Unspecified type.
            +       * 
            + * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
            +       * There is no spec for the Endpoint. The `content` field must be empty.
            +       * 
            + * + * NO_SPEC = 1; + */ + NO_SPEC(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
            +       * Unspecified type.
            +       * 
            + * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +       * There is no spec for the Endpoint. The `content` field must be empty.
            +       * 
            + * + * NO_SPEC = 1; + */ + public static final int NO_SPEC_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 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 NO_SPEC; + 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.Service.EndpointSpec.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.agentregistry.v1.Service.EndpointSpec.Type) + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + + /** + * + * + *
            +     * Required. The type of the endpoint spec content.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
            +     * Required. The type of the endpoint spec content.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.EndpointSpec.Type getType() { + com.google.cloud.agentregistry.v1.Service.EndpointSpec.Type result = + com.google.cloud.agentregistry.v1.Service.EndpointSpec.Type.forNumber(type_); + return result == null + ? com.google.cloud.agentregistry.v1.Service.EndpointSpec.Type.UNRECOGNIZED + : result; + } + + public static final int CONTENT_FIELD_NUMBER = 2; + private com.google.protobuf.Struct content_; + + /** + * + * + *
            +     * Optional. The content of the endpoint spec.
            +     * Reserved for future use.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. The content of the endpoint spec.
            +     * Reserved for future use.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The content. + */ + @java.lang.Override + public com.google.protobuf.Struct getContent() { + return content_ == null ? com.google.protobuf.Struct.getDefaultInstance() : content_; + } + + /** + * + * + *
            +     * Optional. The content of the endpoint spec.
            +     * Reserved for future use.
            +     * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getContentOrBuilder() { + return content_ == null ? com.google.protobuf.Struct.getDefaultInstance() : content_; + } + + 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.agentregistry.v1.Service.EndpointSpec.Type.TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getContent()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.agentregistry.v1.Service.EndpointSpec.Type.TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContent()); + } + 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.agentregistry.v1.Service.EndpointSpec)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.Service.EndpointSpec other = + (com.google.cloud.agentregistry.v1.Service.EndpointSpec) obj; + + if (type_ != other.type_) return false; + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent().equals(other.getContent())) 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_; + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.Service.EndpointSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Service.EndpointSpec 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.agentregistry.v1.Service.EndpointSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Service.EndpointSpec parseFrom( + 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.agentregistry.v1.Service.EndpointSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Service.EndpointSpec parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Service.EndpointSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Service.EndpointSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Service.EndpointSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Service.EndpointSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Service.EndpointSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Service.EndpointSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.Service.EndpointSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * The spec of the endpoint.
            +     * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Service.EndpointSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.Service.EndpointSpec) + com.google.cloud.agentregistry.v1.Service.EndpointSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_EndpointSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_EndpointSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Service.EndpointSpec.class, + com.google.cloud.agentregistry.v1.Service.EndpointSpec.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.Service.EndpointSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetContentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_EndpointSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.EndpointSpec getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.Service.EndpointSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.EndpointSpec build() { + com.google.cloud.agentregistry.v1.Service.EndpointSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.EndpointSpec buildPartial() { + com.google.cloud.agentregistry.v1.Service.EndpointSpec result = + new com.google.cloud.agentregistry.v1.Service.EndpointSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.Service.EndpointSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.Service.EndpointSpec) { + return mergeFrom((com.google.cloud.agentregistry.v1.Service.EndpointSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.Service.EndpointSpec other) { + if (other == com.google.cloud.agentregistry.v1.Service.EndpointSpec.getDefaultInstance()) + return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.hasContent()) { + mergeContent(other.getContent()); + } + 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: + { + input.readMessage( + internalGetContentFieldBuilder().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 type_ = 0; + + /** + * + * + *
            +       * Required. The type of the endpoint spec content.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
            +       * Required. The type of the endpoint spec content.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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; + } + + /** + * + * + *
            +       * Required. The type of the endpoint spec content.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.EndpointSpec.Type getType() { + com.google.cloud.agentregistry.v1.Service.EndpointSpec.Type result = + com.google.cloud.agentregistry.v1.Service.EndpointSpec.Type.forNumber(type_); + return result == null + ? com.google.cloud.agentregistry.v1.Service.EndpointSpec.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Required. The type of the endpoint spec content.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.agentregistry.v1.Service.EndpointSpec.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The type of the endpoint spec content.
            +       * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec.Type type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Struct content_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + contentBuilder_; + + /** + * + * + *
            +       * Optional. The content of the endpoint spec.
            +       * Reserved for future use.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +       * Optional. The content of the endpoint spec.
            +       * Reserved for future use.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The content. + */ + public com.google.protobuf.Struct getContent() { + if (contentBuilder_ == null) { + return content_ == null ? com.google.protobuf.Struct.getDefaultInstance() : content_; + } else { + return contentBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. The content of the endpoint spec.
            +       * Reserved for future use.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setContent(com.google.protobuf.Struct value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + } else { + contentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The content of the endpoint spec.
            +       * Reserved for future use.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setContent(com.google.protobuf.Struct.Builder builderForValue) { + if (contentBuilder_ == null) { + content_ = builderForValue.build(); + } else { + contentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The content of the endpoint spec.
            +       * Reserved for future use.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeContent(com.google.protobuf.Struct value) { + if (contentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && content_ != null + && content_ != com.google.protobuf.Struct.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); + } else { + content_ = value; + } + } else { + contentBuilder_.mergeFrom(value); + } + if (content_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. The content of the endpoint spec.
            +       * Reserved for future use.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000002); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The content of the endpoint spec.
            +       * Reserved for future use.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getContentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetContentFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. The content of the endpoint spec.
            +       * Reserved for future use.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.StructOrBuilder getContentOrBuilder() { + if (contentBuilder_ != null) { + return contentBuilder_.getMessageOrBuilder(); + } else { + return content_ == null ? com.google.protobuf.Struct.getDefaultInstance() : content_; + } + } + + /** + * + * + *
            +       * Optional. The content of the endpoint spec.
            +       * Reserved for future use.
            +       * 
            + * + * .google.protobuf.Struct content = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetContentFieldBuilder() { + if (contentBuilder_ == null) { + contentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getContent(), getParentForChildren(), isClean()); + content_ = null; + } + return contentBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.Service.EndpointSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.Service.EndpointSpec) + private static final com.google.cloud.agentregistry.v1.Service.EndpointSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.Service.EndpointSpec(); + } + + public static com.google.cloud.agentregistry.v1.Service.EndpointSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndpointSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.Service.EndpointSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int specCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object spec_; + + public enum SpecCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AGENT_SPEC(5), + MCP_SERVER_SPEC(6), + ENDPOINT_SPEC(7), + SPEC_NOT_SET(0); + private final int value; + + private SpecCase(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 SpecCase valueOf(int value) { + return forNumber(value); + } + + public static SpecCase forNumber(int value) { + switch (value) { + case 5: + return AGENT_SPEC; + case 6: + return MCP_SERVER_SPEC; + case 7: + return ENDPOINT_SPEC; + case 0: + return SPEC_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SpecCase getSpecCase() { + return SpecCase.forNumber(specCase_); + } + + public static final int AGENT_SPEC_FIELD_NUMBER = 5; + + /** + * + * + *
            +   * Optional. The spec of the Agent. When `agent_spec` is set, the type of
            +   * the service is Agent.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentSpec field is set. + */ + @java.lang.Override + public boolean hasAgentSpec() { + return specCase_ == 5; + } + + /** + * + * + *
            +   * Optional. The spec of the Agent. When `agent_spec` is set, the type of
            +   * the service is Agent.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentSpec. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.AgentSpec getAgentSpec() { + if (specCase_ == 5) { + return (com.google.cloud.agentregistry.v1.Service.AgentSpec) spec_; + } + return com.google.cloud.agentregistry.v1.Service.AgentSpec.getDefaultInstance(); + } + + /** + * + * + *
            +   * Optional. The spec of the Agent. When `agent_spec` is set, the type of
            +   * the service is Agent.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.AgentSpecOrBuilder getAgentSpecOrBuilder() { + if (specCase_ == 5) { + return (com.google.cloud.agentregistry.v1.Service.AgentSpec) spec_; + } + return com.google.cloud.agentregistry.v1.Service.AgentSpec.getDefaultInstance(); + } + + public static final int MCP_SERVER_SPEC_FIELD_NUMBER = 6; + + /** + * + * + *
            +   * Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the
            +   * type of the service is MCP Server.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mcpServerSpec field is set. + */ + @java.lang.Override + public boolean hasMcpServerSpec() { + return specCase_ == 6; + } + + /** + * + * + *
            +   * Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the
            +   * type of the service is MCP Server.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mcpServerSpec. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.McpServerSpec getMcpServerSpec() { + if (specCase_ == 6) { + return (com.google.cloud.agentregistry.v1.Service.McpServerSpec) spec_; + } + return com.google.cloud.agentregistry.v1.Service.McpServerSpec.getDefaultInstance(); + } + + /** + * + * + *
            +   * Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the
            +   * type of the service is MCP Server.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.McpServerSpecOrBuilder + getMcpServerSpecOrBuilder() { + if (specCase_ == 6) { + return (com.google.cloud.agentregistry.v1.Service.McpServerSpec) spec_; + } + return com.google.cloud.agentregistry.v1.Service.McpServerSpec.getDefaultInstance(); + } + + public static final int ENDPOINT_SPEC_FIELD_NUMBER = 7; + + /** + * + * + *
            +   * Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type
            +   * of the service is Endpoint.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endpointSpec field is set. + */ + @java.lang.Override + public boolean hasEndpointSpec() { + return specCase_ == 7; + } + + /** + * + * + *
            +   * Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type
            +   * of the service is Endpoint.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endpointSpec. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.EndpointSpec getEndpointSpec() { + if (specCase_ == 7) { + return (com.google.cloud.agentregistry.v1.Service.EndpointSpec) spec_; + } + return com.google.cloud.agentregistry.v1.Service.EndpointSpec.getDefaultInstance(); + } + + /** + * + * + *
            +   * Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type
            +   * of the service is Endpoint.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.EndpointSpecOrBuilder + getEndpointSpecOrBuilder() { + if (specCase_ == 7) { + return (com.google.cloud.agentregistry.v1.Service.EndpointSpec) spec_; + } + return com.google.cloud.agentregistry.v1.Service.EndpointSpec.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Identifier. The resource name of the Service.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Identifier. The resource name of the Service.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
            +   * Optional. User-defined display name for the Service.
            +   * Can have a maximum length of `63` characters.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +   * Optional. User-defined display name for the Service.
            +   * Can have a maximum length of `63` characters.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
            +   * Optional. User-defined description of an Service.
            +   * Can have a maximum length of `2048` characters.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. User-defined description of an Service.
            +   * Can have a maximum length of `2048` characters.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTERFACES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List interfaces_; + + /** + * + * + *
            +   * Optional. The connection details for the Service.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getInterfacesList() { + return interfaces_; + } + + /** + * + * + *
            +   * Optional. The connection details for the Service.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getInterfacesOrBuilderList() { + return interfaces_; + } + + /** + * + * + *
            +   * Optional. The connection details for the Service.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getInterfacesCount() { + return interfaces_.size(); + } + + /** + * + * + *
            +   * Optional. The connection details for the Service.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Interface getInterfaces(int index) { + return interfaces_.get(index); + } + + /** + * + * + *
            +   * Optional. The connection details for the Service.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.InterfaceOrBuilder getInterfacesOrBuilder(int index) { + return interfaces_.get(index); + } + + public static final int REGISTRY_RESOURCE_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object registryResource_ = ""; + + /** + * + * + *
            +   * Output only. The resource name of the resulting Agent, MCP Server, or
            +   * Endpoint. Format:
            +   *
            +   * * `projects/{project}/locations/{location}/mcpServers/{mcp_server}`
            +   * * `projects/{project}/locations/{location}/agents/{agent}`
            +   * * `projects/{project}/locations/{location}/endpoints/{endpoint}`
            +   * 
            + * + * string registry_resource = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The registryResource. + */ + @java.lang.Override + public java.lang.String getRegistryResource() { + java.lang.Object ref = registryResource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + registryResource_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output only. The resource name of the resulting Agent, MCP Server, or
            +   * Endpoint. Format:
            +   *
            +   * * `projects/{project}/locations/{location}/mcpServers/{mcp_server}`
            +   * * `projects/{project}/locations/{location}/agents/{agent}`
            +   * * `projects/{project}/locations/{location}/endpoints/{endpoint}`
            +   * 
            + * + * string registry_resource = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for registryResource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegistryResourceBytes() { + java.lang.Object ref = registryResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + registryResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. Create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 8 [(.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.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 8 [(.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.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 8 [(.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 = 9; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. Update time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 9 [(.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.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 9 [(.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.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + for (int i = 0; i < interfaces_.size(); i++) { + output.writeMessage(4, interfaces_.get(i)); + } + if (specCase_ == 5) { + output.writeMessage(5, (com.google.cloud.agentregistry.v1.Service.AgentSpec) spec_); + } + if (specCase_ == 6) { + output.writeMessage(6, (com.google.cloud.agentregistry.v1.Service.McpServerSpec) spec_); + } + if (specCase_ == 7) { + output.writeMessage(7, (com.google.cloud.agentregistry.v1.Service.EndpointSpec) spec_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(9, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(registryResource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, registryResource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + for (int i = 0; i < interfaces_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, interfaces_.get(i)); + } + if (specCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.agentregistry.v1.Service.AgentSpec) spec_); + } + if (specCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.agentregistry.v1.Service.McpServerSpec) spec_); + } + if (specCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.agentregistry.v1.Service.EndpointSpec) spec_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(registryResource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, registryResource_); + } + 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.agentregistry.v1.Service)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.Service other = + (com.google.cloud.agentregistry.v1.Service) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getInterfacesList().equals(other.getInterfacesList())) return false; + if (!getRegistryResource().equals(other.getRegistryResource())) 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 (!getSpecCase().equals(other.getSpecCase())) return false; + switch (specCase_) { + case 5: + if (!getAgentSpec().equals(other.getAgentSpec())) return false; + break; + case 6: + if (!getMcpServerSpec().equals(other.getMcpServerSpec())) return false; + break; + case 7: + if (!getEndpointSpec().equals(other.getEndpointSpec())) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getInterfacesCount() > 0) { + hash = (37 * hash) + INTERFACES_FIELD_NUMBER; + hash = (53 * hash) + getInterfacesList().hashCode(); + } + hash = (37 * hash) + REGISTRY_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getRegistryResource().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(); + } + switch (specCase_) { + case 5: + hash = (37 * hash) + AGENT_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getAgentSpec().hashCode(); + break; + case 6: + hash = (37 * hash) + MCP_SERVER_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getMcpServerSpec().hashCode(); + break; + case 7: + hash = (37 * hash) + ENDPOINT_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getEndpointSpec().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.Service parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Service 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.agentregistry.v1.Service parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Service parseFrom( + 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.agentregistry.v1.Service parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.Service parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Service parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Service parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Service parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Service parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.Service parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.Service parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.agentregistry.v1.Service prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents a user-defined Service.
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.Service} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.Service) + com.google.cloud.agentregistry.v1.ServiceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.Service.class, + com.google.cloud.agentregistry.v1.Service.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.Service.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetInterfacesFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (agentSpecBuilder_ != null) { + agentSpecBuilder_.clear(); + } + if (mcpServerSpecBuilder_ != null) { + mcpServerSpecBuilder_.clear(); + } + if (endpointSpecBuilder_ != null) { + endpointSpecBuilder_.clear(); + } + name_ = ""; + displayName_ = ""; + description_ = ""; + if (interfacesBuilder_ == null) { + interfaces_ = java.util.Collections.emptyList(); + } else { + interfaces_ = null; + interfacesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + registryResource_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + specCase_ = 0; + spec_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.ServiceProto + .internal_static_google_cloud_agentregistry_v1_Service_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.Service.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service build() { + com.google.cloud.agentregistry.v1.Service result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service buildPartial() { + com.google.cloud.agentregistry.v1.Service result = + new com.google.cloud.agentregistry.v1.Service(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.agentregistry.v1.Service result) { + if (interfacesBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + interfaces_ = java.util.Collections.unmodifiableList(interfaces_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.interfaces_ = interfaces_; + } else { + result.interfaces_ = interfacesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.Service result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.registryResource_ = registryResource_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000100) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.agentregistry.v1.Service result) { + result.specCase_ = specCase_; + result.spec_ = this.spec_; + if (specCase_ == 5 && agentSpecBuilder_ != null) { + result.spec_ = agentSpecBuilder_.build(); + } + if (specCase_ == 6 && mcpServerSpecBuilder_ != null) { + result.spec_ = mcpServerSpecBuilder_.build(); + } + if (specCase_ == 7 && endpointSpecBuilder_ != null) { + result.spec_ = endpointSpecBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.Service) { + return mergeFrom((com.google.cloud.agentregistry.v1.Service) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.Service other) { + if (other == com.google.cloud.agentregistry.v1.Service.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (interfacesBuilder_ == null) { + if (!other.interfaces_.isEmpty()) { + if (interfaces_.isEmpty()) { + interfaces_ = other.interfaces_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureInterfacesIsMutable(); + interfaces_.addAll(other.interfaces_); + } + onChanged(); + } + } else { + if (!other.interfaces_.isEmpty()) { + if (interfacesBuilder_.isEmpty()) { + interfacesBuilder_.dispose(); + interfacesBuilder_ = null; + interfaces_ = other.interfaces_; + bitField0_ = (bitField0_ & ~0x00000040); + interfacesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInterfacesFieldBuilder() + : null; + } else { + interfacesBuilder_.addAllMessages(other.interfaces_); + } + } + } + if (!other.getRegistryResource().isEmpty()) { + registryResource_ = other.registryResource_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + switch (other.getSpecCase()) { + case AGENT_SPEC: + { + mergeAgentSpec(other.getAgentSpec()); + break; + } + case MCP_SERVER_SPEC: + { + mergeMcpServerSpec(other.getMcpServerSpec()); + break; + } + case ENDPOINT_SPEC: + { + mergeEndpointSpec(other.getEndpointSpec()); + break; + } + case SPEC_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_ |= 0x00000008; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 26 + case 34: + { + com.google.cloud.agentregistry.v1.Interface m = + input.readMessage( + com.google.cloud.agentregistry.v1.Interface.parser(), extensionRegistry); + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.add(m); + } else { + interfacesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetAgentSpecFieldBuilder().getBuilder(), extensionRegistry); + specCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetMcpServerSpecFieldBuilder().getBuilder(), extensionRegistry); + specCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetEndpointSpecFieldBuilder().getBuilder(), extensionRegistry); + specCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 82: + { + registryResource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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 specCase_ = 0; + private java.lang.Object spec_; + + public SpecCase getSpecCase() { + return SpecCase.forNumber(specCase_); + } + + public Builder clearSpec() { + specCase_ = 0; + spec_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Service.AgentSpec, + com.google.cloud.agentregistry.v1.Service.AgentSpec.Builder, + com.google.cloud.agentregistry.v1.Service.AgentSpecOrBuilder> + agentSpecBuilder_; + + /** + * + * + *
            +     * Optional. The spec of the Agent. When `agent_spec` is set, the type of
            +     * the service is Agent.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentSpec field is set. + */ + @java.lang.Override + public boolean hasAgentSpec() { + return specCase_ == 5; + } + + /** + * + * + *
            +     * Optional. The spec of the Agent. When `agent_spec` is set, the type of
            +     * the service is Agent.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentSpec. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.AgentSpec getAgentSpec() { + if (agentSpecBuilder_ == null) { + if (specCase_ == 5) { + return (com.google.cloud.agentregistry.v1.Service.AgentSpec) spec_; + } + return com.google.cloud.agentregistry.v1.Service.AgentSpec.getDefaultInstance(); + } else { + if (specCase_ == 5) { + return agentSpecBuilder_.getMessage(); + } + return com.google.cloud.agentregistry.v1.Service.AgentSpec.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. The spec of the Agent. When `agent_spec` is set, the type of
            +     * the service is Agent.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentSpec(com.google.cloud.agentregistry.v1.Service.AgentSpec value) { + if (agentSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + agentSpecBuilder_.setMessage(value); + } + specCase_ = 5; + return this; + } + + /** + * + * + *
            +     * Optional. The spec of the Agent. When `agent_spec` is set, the type of
            +     * the service is Agent.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentSpec( + com.google.cloud.agentregistry.v1.Service.AgentSpec.Builder builderForValue) { + if (agentSpecBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + agentSpecBuilder_.setMessage(builderForValue.build()); + } + specCase_ = 5; + return this; + } + + /** + * + * + *
            +     * Optional. The spec of the Agent. When `agent_spec` is set, the type of
            +     * the service is Agent.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAgentSpec(com.google.cloud.agentregistry.v1.Service.AgentSpec value) { + if (agentSpecBuilder_ == null) { + if (specCase_ == 5 + && spec_ != com.google.cloud.agentregistry.v1.Service.AgentSpec.getDefaultInstance()) { + spec_ = + com.google.cloud.agentregistry.v1.Service.AgentSpec.newBuilder( + (com.google.cloud.agentregistry.v1.Service.AgentSpec) spec_) + .mergeFrom(value) + .buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + if (specCase_ == 5) { + agentSpecBuilder_.mergeFrom(value); + } else { + agentSpecBuilder_.setMessage(value); + } + } + specCase_ = 5; + return this; + } + + /** + * + * + *
            +     * Optional. The spec of the Agent. When `agent_spec` is set, the type of
            +     * the service is Agent.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAgentSpec() { + if (agentSpecBuilder_ == null) { + if (specCase_ == 5) { + specCase_ = 0; + spec_ = null; + onChanged(); + } + } else { + if (specCase_ == 5) { + specCase_ = 0; + spec_ = null; + } + agentSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The spec of the Agent. When `agent_spec` is set, the type of
            +     * the service is Agent.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.agentregistry.v1.Service.AgentSpec.Builder getAgentSpecBuilder() { + return internalGetAgentSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The spec of the Agent. When `agent_spec` is set, the type of
            +     * the service is Agent.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.AgentSpecOrBuilder getAgentSpecOrBuilder() { + if ((specCase_ == 5) && (agentSpecBuilder_ != null)) { + return agentSpecBuilder_.getMessageOrBuilder(); + } else { + if (specCase_ == 5) { + return (com.google.cloud.agentregistry.v1.Service.AgentSpec) spec_; + } + return com.google.cloud.agentregistry.v1.Service.AgentSpec.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. The spec of the Agent. When `agent_spec` is set, the type of
            +     * the service is Agent.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Service.AgentSpec, + com.google.cloud.agentregistry.v1.Service.AgentSpec.Builder, + com.google.cloud.agentregistry.v1.Service.AgentSpecOrBuilder> + internalGetAgentSpecFieldBuilder() { + if (agentSpecBuilder_ == null) { + if (!(specCase_ == 5)) { + spec_ = com.google.cloud.agentregistry.v1.Service.AgentSpec.getDefaultInstance(); + } + agentSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Service.AgentSpec, + com.google.cloud.agentregistry.v1.Service.AgentSpec.Builder, + com.google.cloud.agentregistry.v1.Service.AgentSpecOrBuilder>( + (com.google.cloud.agentregistry.v1.Service.AgentSpec) spec_, + getParentForChildren(), + isClean()); + spec_ = null; + } + specCase_ = 5; + onChanged(); + return agentSpecBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Service.McpServerSpec, + com.google.cloud.agentregistry.v1.Service.McpServerSpec.Builder, + com.google.cloud.agentregistry.v1.Service.McpServerSpecOrBuilder> + mcpServerSpecBuilder_; + + /** + * + * + *
            +     * Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the
            +     * type of the service is MCP Server.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mcpServerSpec field is set. + */ + @java.lang.Override + public boolean hasMcpServerSpec() { + return specCase_ == 6; + } + + /** + * + * + *
            +     * Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the
            +     * type of the service is MCP Server.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mcpServerSpec. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.McpServerSpec getMcpServerSpec() { + if (mcpServerSpecBuilder_ == null) { + if (specCase_ == 6) { + return (com.google.cloud.agentregistry.v1.Service.McpServerSpec) spec_; + } + return com.google.cloud.agentregistry.v1.Service.McpServerSpec.getDefaultInstance(); + } else { + if (specCase_ == 6) { + return mcpServerSpecBuilder_.getMessage(); + } + return com.google.cloud.agentregistry.v1.Service.McpServerSpec.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the
            +     * type of the service is MCP Server.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMcpServerSpec(com.google.cloud.agentregistry.v1.Service.McpServerSpec value) { + if (mcpServerSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + mcpServerSpecBuilder_.setMessage(value); + } + specCase_ = 6; + return this; + } + + /** + * + * + *
            +     * Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the
            +     * type of the service is MCP Server.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMcpServerSpec( + com.google.cloud.agentregistry.v1.Service.McpServerSpec.Builder builderForValue) { + if (mcpServerSpecBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + mcpServerSpecBuilder_.setMessage(builderForValue.build()); + } + specCase_ = 6; + return this; + } + + /** + * + * + *
            +     * Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the
            +     * type of the service is MCP Server.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMcpServerSpec( + com.google.cloud.agentregistry.v1.Service.McpServerSpec value) { + if (mcpServerSpecBuilder_ == null) { + if (specCase_ == 6 + && spec_ + != com.google.cloud.agentregistry.v1.Service.McpServerSpec.getDefaultInstance()) { + spec_ = + com.google.cloud.agentregistry.v1.Service.McpServerSpec.newBuilder( + (com.google.cloud.agentregistry.v1.Service.McpServerSpec) spec_) + .mergeFrom(value) + .buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + if (specCase_ == 6) { + mcpServerSpecBuilder_.mergeFrom(value); + } else { + mcpServerSpecBuilder_.setMessage(value); + } + } + specCase_ = 6; + return this; + } + + /** + * + * + *
            +     * Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the
            +     * type of the service is MCP Server.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMcpServerSpec() { + if (mcpServerSpecBuilder_ == null) { + if (specCase_ == 6) { + specCase_ = 0; + spec_ = null; + onChanged(); + } + } else { + if (specCase_ == 6) { + specCase_ = 0; + spec_ = null; + } + mcpServerSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the
            +     * type of the service is MCP Server.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.agentregistry.v1.Service.McpServerSpec.Builder + getMcpServerSpecBuilder() { + return internalGetMcpServerSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the
            +     * type of the service is MCP Server.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.McpServerSpecOrBuilder + getMcpServerSpecOrBuilder() { + if ((specCase_ == 6) && (mcpServerSpecBuilder_ != null)) { + return mcpServerSpecBuilder_.getMessageOrBuilder(); + } else { + if (specCase_ == 6) { + return (com.google.cloud.agentregistry.v1.Service.McpServerSpec) spec_; + } + return com.google.cloud.agentregistry.v1.Service.McpServerSpec.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the
            +     * type of the service is MCP Server.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Service.McpServerSpec, + com.google.cloud.agentregistry.v1.Service.McpServerSpec.Builder, + com.google.cloud.agentregistry.v1.Service.McpServerSpecOrBuilder> + internalGetMcpServerSpecFieldBuilder() { + if (mcpServerSpecBuilder_ == null) { + if (!(specCase_ == 6)) { + spec_ = com.google.cloud.agentregistry.v1.Service.McpServerSpec.getDefaultInstance(); + } + mcpServerSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Service.McpServerSpec, + com.google.cloud.agentregistry.v1.Service.McpServerSpec.Builder, + com.google.cloud.agentregistry.v1.Service.McpServerSpecOrBuilder>( + (com.google.cloud.agentregistry.v1.Service.McpServerSpec) spec_, + getParentForChildren(), + isClean()); + spec_ = null; + } + specCase_ = 6; + onChanged(); + return mcpServerSpecBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Service.EndpointSpec, + com.google.cloud.agentregistry.v1.Service.EndpointSpec.Builder, + com.google.cloud.agentregistry.v1.Service.EndpointSpecOrBuilder> + endpointSpecBuilder_; + + /** + * + * + *
            +     * Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type
            +     * of the service is Endpoint.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endpointSpec field is set. + */ + @java.lang.Override + public boolean hasEndpointSpec() { + return specCase_ == 7; + } + + /** + * + * + *
            +     * Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type
            +     * of the service is Endpoint.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endpointSpec. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.EndpointSpec getEndpointSpec() { + if (endpointSpecBuilder_ == null) { + if (specCase_ == 7) { + return (com.google.cloud.agentregistry.v1.Service.EndpointSpec) spec_; + } + return com.google.cloud.agentregistry.v1.Service.EndpointSpec.getDefaultInstance(); + } else { + if (specCase_ == 7) { + return endpointSpecBuilder_.getMessage(); + } + return com.google.cloud.agentregistry.v1.Service.EndpointSpec.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type
            +     * of the service is Endpoint.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndpointSpec(com.google.cloud.agentregistry.v1.Service.EndpointSpec value) { + if (endpointSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + endpointSpecBuilder_.setMessage(value); + } + specCase_ = 7; + return this; + } + + /** + * + * + *
            +     * Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type
            +     * of the service is Endpoint.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndpointSpec( + com.google.cloud.agentregistry.v1.Service.EndpointSpec.Builder builderForValue) { + if (endpointSpecBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + endpointSpecBuilder_.setMessage(builderForValue.build()); + } + specCase_ = 7; + return this; + } + + /** + * + * + *
            +     * Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type
            +     * of the service is Endpoint.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEndpointSpec(com.google.cloud.agentregistry.v1.Service.EndpointSpec value) { + if (endpointSpecBuilder_ == null) { + if (specCase_ == 7 + && spec_ + != com.google.cloud.agentregistry.v1.Service.EndpointSpec.getDefaultInstance()) { + spec_ = + com.google.cloud.agentregistry.v1.Service.EndpointSpec.newBuilder( + (com.google.cloud.agentregistry.v1.Service.EndpointSpec) spec_) + .mergeFrom(value) + .buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + if (specCase_ == 7) { + endpointSpecBuilder_.mergeFrom(value); + } else { + endpointSpecBuilder_.setMessage(value); + } + } + specCase_ = 7; + return this; + } + + /** + * + * + *
            +     * Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type
            +     * of the service is Endpoint.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEndpointSpec() { + if (endpointSpecBuilder_ == null) { + if (specCase_ == 7) { + specCase_ = 0; + spec_ = null; + onChanged(); + } + } else { + if (specCase_ == 7) { + specCase_ = 0; + spec_ = null; + } + endpointSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type
            +     * of the service is Endpoint.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.agentregistry.v1.Service.EndpointSpec.Builder getEndpointSpecBuilder() { + return internalGetEndpointSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type
            +     * of the service is Endpoint.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service.EndpointSpecOrBuilder + getEndpointSpecOrBuilder() { + if ((specCase_ == 7) && (endpointSpecBuilder_ != null)) { + return endpointSpecBuilder_.getMessageOrBuilder(); + } else { + if (specCase_ == 7) { + return (com.google.cloud.agentregistry.v1.Service.EndpointSpec) spec_; + } + return com.google.cloud.agentregistry.v1.Service.EndpointSpec.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type
            +     * of the service is Endpoint.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Service.EndpointSpec, + com.google.cloud.agentregistry.v1.Service.EndpointSpec.Builder, + com.google.cloud.agentregistry.v1.Service.EndpointSpecOrBuilder> + internalGetEndpointSpecFieldBuilder() { + if (endpointSpecBuilder_ == null) { + if (!(specCase_ == 7)) { + spec_ = com.google.cloud.agentregistry.v1.Service.EndpointSpec.getDefaultInstance(); + } + endpointSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Service.EndpointSpec, + com.google.cloud.agentregistry.v1.Service.EndpointSpec.Builder, + com.google.cloud.agentregistry.v1.Service.EndpointSpecOrBuilder>( + (com.google.cloud.agentregistry.v1.Service.EndpointSpec) spec_, + getParentForChildren(), + isClean()); + spec_ = null; + } + specCase_ = 7; + onChanged(); + return endpointSpecBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Identifier. The resource name of the Service.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Identifier. The resource name of the Service.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Identifier. The resource name of the Service.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The resource name of the Service.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The resource name of the Service.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * 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_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
            +     * Optional. User-defined display name for the Service.
            +     * Can have a maximum length of `63` characters.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +     * Optional. User-defined display name for the Service.
            +     * Can have a maximum length of `63` characters.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
            +     * Optional. User-defined display name for the Service.
            +     * Can have a maximum length of `63` characters.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. User-defined display name for the Service.
            +     * Can have a maximum length of `63` characters.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. User-defined display name for the Service.
            +     * Can have a maximum length of `63` characters.
            +     * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
            +     * Optional. User-defined description of an Service.
            +     * Can have a maximum length of `2048` characters.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. User-defined description of an Service.
            +     * Can have a maximum length of `2048` characters.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. User-defined description of an Service.
            +     * Can have a maximum length of `2048` characters.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. User-defined description of an Service.
            +     * Can have a maximum length of `2048` characters.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. User-defined description of an Service.
            +     * Can have a maximum length of `2048` characters.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.util.List interfaces_ = + java.util.Collections.emptyList(); + + private void ensureInterfacesIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + interfaces_ = + new java.util.ArrayList(interfaces_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Interface, + com.google.cloud.agentregistry.v1.Interface.Builder, + com.google.cloud.agentregistry.v1.InterfaceOrBuilder> + interfacesBuilder_; + + /** + * + * + *
            +     * Optional. The connection details for the Service.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getInterfacesList() { + if (interfacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(interfaces_); + } else { + return interfacesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Optional. The connection details for the Service.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getInterfacesCount() { + if (interfacesBuilder_ == null) { + return interfaces_.size(); + } else { + return interfacesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Optional. The connection details for the Service.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.agentregistry.v1.Interface getInterfaces(int index) { + if (interfacesBuilder_ == null) { + return interfaces_.get(index); + } else { + return interfacesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Optional. The connection details for the Service.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInterfaces(int index, com.google.cloud.agentregistry.v1.Interface value) { + if (interfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterfacesIsMutable(); + interfaces_.set(index, value); + onChanged(); + } else { + interfacesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The connection details for the Service.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInterfaces( + int index, com.google.cloud.agentregistry.v1.Interface.Builder builderForValue) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.set(index, builderForValue.build()); + onChanged(); + } else { + interfacesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The connection details for the Service.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInterfaces(com.google.cloud.agentregistry.v1.Interface value) { + if (interfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterfacesIsMutable(); + interfaces_.add(value); + onChanged(); + } else { + interfacesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The connection details for the Service.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInterfaces(int index, com.google.cloud.agentregistry.v1.Interface value) { + if (interfacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInterfacesIsMutable(); + interfaces_.add(index, value); + onChanged(); + } else { + interfacesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The connection details for the Service.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInterfaces( + com.google.cloud.agentregistry.v1.Interface.Builder builderForValue) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.add(builderForValue.build()); + onChanged(); + } else { + interfacesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The connection details for the Service.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInterfaces( + int index, com.google.cloud.agentregistry.v1.Interface.Builder builderForValue) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.add(index, builderForValue.build()); + onChanged(); + } else { + interfacesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The connection details for the Service.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllInterfaces( + java.lang.Iterable values) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, interfaces_); + onChanged(); + } else { + interfacesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Optional. The connection details for the Service.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInterfaces() { + if (interfacesBuilder_ == null) { + interfaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + interfacesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The connection details for the Service.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeInterfaces(int index) { + if (interfacesBuilder_ == null) { + ensureInterfacesIsMutable(); + interfaces_.remove(index); + onChanged(); + } else { + interfacesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Optional. The connection details for the Service.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.agentregistry.v1.Interface.Builder getInterfacesBuilder(int index) { + return internalGetInterfacesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Optional. The connection details for the Service.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.agentregistry.v1.InterfaceOrBuilder getInterfacesOrBuilder(int index) { + if (interfacesBuilder_ == null) { + return interfaces_.get(index); + } else { + return interfacesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Optional. The connection details for the Service.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInterfacesOrBuilderList() { + if (interfacesBuilder_ != null) { + return interfacesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(interfaces_); + } + } + + /** + * + * + *
            +     * Optional. The connection details for the Service.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.agentregistry.v1.Interface.Builder addInterfacesBuilder() { + return internalGetInterfacesFieldBuilder() + .addBuilder(com.google.cloud.agentregistry.v1.Interface.getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. The connection details for the Service.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.agentregistry.v1.Interface.Builder addInterfacesBuilder(int index) { + return internalGetInterfacesFieldBuilder() + .addBuilder(index, com.google.cloud.agentregistry.v1.Interface.getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. The connection details for the Service.
            +     * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInterfacesBuilderList() { + return internalGetInterfacesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Interface, + com.google.cloud.agentregistry.v1.Interface.Builder, + com.google.cloud.agentregistry.v1.InterfaceOrBuilder> + internalGetInterfacesFieldBuilder() { + if (interfacesBuilder_ == null) { + interfacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentregistry.v1.Interface, + com.google.cloud.agentregistry.v1.Interface.Builder, + com.google.cloud.agentregistry.v1.InterfaceOrBuilder>( + interfaces_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + interfaces_ = null; + } + return interfacesBuilder_; + } + + private java.lang.Object registryResource_ = ""; + + /** + * + * + *
            +     * Output only. The resource name of the resulting Agent, MCP Server, or
            +     * Endpoint. Format:
            +     *
            +     * * `projects/{project}/locations/{location}/mcpServers/{mcp_server}`
            +     * * `projects/{project}/locations/{location}/agents/{agent}`
            +     * * `projects/{project}/locations/{location}/endpoints/{endpoint}`
            +     * 
            + * + * string registry_resource = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The registryResource. + */ + public java.lang.String getRegistryResource() { + java.lang.Object ref = registryResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + registryResource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. The resource name of the resulting Agent, MCP Server, or
            +     * Endpoint. Format:
            +     *
            +     * * `projects/{project}/locations/{location}/mcpServers/{mcp_server}`
            +     * * `projects/{project}/locations/{location}/agents/{agent}`
            +     * * `projects/{project}/locations/{location}/endpoints/{endpoint}`
            +     * 
            + * + * string registry_resource = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for registryResource. + */ + public com.google.protobuf.ByteString getRegistryResourceBytes() { + java.lang.Object ref = registryResource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + registryResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. The resource name of the resulting Agent, MCP Server, or
            +     * Endpoint. Format:
            +     *
            +     * * `projects/{project}/locations/{location}/mcpServers/{mcp_server}`
            +     * * `projects/{project}/locations/{location}/agents/{agent}`
            +     * * `projects/{project}/locations/{location}/endpoints/{endpoint}`
            +     * 
            + * + * string registry_resource = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The registryResource to set. + * @return This builder for chaining. + */ + public Builder setRegistryResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + registryResource_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The resource name of the resulting Agent, MCP Server, or
            +     * Endpoint. Format:
            +     *
            +     * * `projects/{project}/locations/{location}/mcpServers/{mcp_server}`
            +     * * `projects/{project}/locations/{location}/agents/{agent}`
            +     * * `projects/{project}/locations/{location}/endpoints/{endpoint}`
            +     * 
            + * + * string registry_resource = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRegistryResource() { + registryResource_ = getDefaultInstance().getRegistryResource(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The resource name of the resulting Agent, MCP Server, or
            +     * Endpoint. Format:
            +     *
            +     * * `projects/{project}/locations/{location}/mcpServers/{mcp_server}`
            +     * * `projects/{project}/locations/{location}/agents/{agent}`
            +     * * `projects/{project}/locations/{location}/endpoints/{endpoint}`
            +     * 
            + * + * string registry_resource = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for registryResource to set. + * @return This builder for chaining. + */ + public Builder setRegistryResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + registryResource_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 8 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 8 [(.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_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Create time.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 8 [(.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.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 9 [(.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.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 9 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 9 [(.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_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000200); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Update time.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 9 [(.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.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.Service) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.Service) + private static final com.google.cloud.agentregistry.v1.Service DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.Service(); + } + + public static com.google.cloud.agentregistry.v1.Service getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Service parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.Service getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceName.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceName.java new file mode 100644 index 000000000000..cf3232a7535f --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceName.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.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 ServiceName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_SERVICE = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/services/{service}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String service; + + @Deprecated + protected ServiceName() { + project = null; + location = null; + service = null; + } + + private ServiceName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + service = Preconditions.checkNotNull(builder.getService()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getService() { + return service; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ServiceName of(String project, String location, String service) { + return newBuilder().setProject(project).setLocation(location).setService(service).build(); + } + + public static String format(String project, String location, String service) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setService(service) + .build() + .toString(); + } + + public static ServiceName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_SERVICE.validatedMatch( + formattedString, "ServiceName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("service")); + } + + 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 (ServiceName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_SERVICE.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 (service != null) { + fieldMapBuilder.put("service", service); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_SERVICE.instantiate( + "project", project, "location", location, "service", service); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + ServiceName that = ((ServiceName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.service, that.service); + } + 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(service); + return h; + } + + /** Builder for projects/{project}/locations/{location}/services/{service}. */ + public static class Builder { + private String project; + private String location; + private String service; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getService() { + return service; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setService(String service) { + this.service = service; + return this; + } + + private Builder(ServiceName serviceName) { + this.project = serviceName.project; + this.location = serviceName.location; + this.service = serviceName.service; + } + + public ServiceName build() { + return new ServiceName(this); + } + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceOrBuilder.java new file mode 100644 index 000000000000..5a798be532ee --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceOrBuilder.java @@ -0,0 +1,434 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface ServiceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.Service) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. The spec of the Agent. When `agent_spec` is set, the type of
            +   * the service is Agent.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentSpec field is set. + */ + boolean hasAgentSpec(); + + /** + * + * + *
            +   * Optional. The spec of the Agent. When `agent_spec` is set, the type of
            +   * the service is Agent.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentSpec. + */ + com.google.cloud.agentregistry.v1.Service.AgentSpec getAgentSpec(); + + /** + * + * + *
            +   * Optional. The spec of the Agent. When `agent_spec` is set, the type of
            +   * the service is Agent.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service.AgentSpec agent_spec = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.agentregistry.v1.Service.AgentSpecOrBuilder getAgentSpecOrBuilder(); + + /** + * + * + *
            +   * Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the
            +   * type of the service is MCP Server.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mcpServerSpec field is set. + */ + boolean hasMcpServerSpec(); + + /** + * + * + *
            +   * Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the
            +   * type of the service is MCP Server.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mcpServerSpec. + */ + com.google.cloud.agentregistry.v1.Service.McpServerSpec getMcpServerSpec(); + + /** + * + * + *
            +   * Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the
            +   * type of the service is MCP Server.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service.McpServerSpec mcp_server_spec = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.agentregistry.v1.Service.McpServerSpecOrBuilder getMcpServerSpecOrBuilder(); + + /** + * + * + *
            +   * Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type
            +   * of the service is Endpoint.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endpointSpec field is set. + */ + boolean hasEndpointSpec(); + + /** + * + * + *
            +   * Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type
            +   * of the service is Endpoint.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endpointSpec. + */ + com.google.cloud.agentregistry.v1.Service.EndpointSpec getEndpointSpec(); + + /** + * + * + *
            +   * Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type
            +   * of the service is Endpoint.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service.EndpointSpec endpoint_spec = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.agentregistry.v1.Service.EndpointSpecOrBuilder getEndpointSpecOrBuilder(); + + /** + * + * + *
            +   * Identifier. The resource name of the Service.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Identifier. The resource name of the Service.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. User-defined display name for the Service.
            +   * Can have a maximum length of `63` characters.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
            +   * Optional. User-defined display name for the Service.
            +   * Can have a maximum length of `63` characters.
            +   * 
            + * + * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
            +   * Optional. User-defined description of an Service.
            +   * Can have a maximum length of `2048` characters.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
            +   * Optional. User-defined description of an Service.
            +   * Can have a maximum length of `2048` characters.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
            +   * Optional. The connection details for the Service.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getInterfacesList(); + + /** + * + * + *
            +   * Optional. The connection details for the Service.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.agentregistry.v1.Interface getInterfaces(int index); + + /** + * + * + *
            +   * Optional. The connection details for the Service.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getInterfacesCount(); + + /** + * + * + *
            +   * Optional. The connection details for the Service.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getInterfacesOrBuilderList(); + + /** + * + * + *
            +   * Optional. The connection details for the Service.
            +   * 
            + * + * + * repeated .google.cloud.agentregistry.v1.Interface interfaces = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.agentregistry.v1.InterfaceOrBuilder getInterfacesOrBuilder(int index); + + /** + * + * + *
            +   * Output only. The resource name of the resulting Agent, MCP Server, or
            +   * Endpoint. Format:
            +   *
            +   * * `projects/{project}/locations/{location}/mcpServers/{mcp_server}`
            +   * * `projects/{project}/locations/{location}/agents/{agent}`
            +   * * `projects/{project}/locations/{location}/endpoints/{endpoint}`
            +   * 
            + * + * string registry_resource = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The registryResource. + */ + java.lang.String getRegistryResource(); + + /** + * + * + *
            +   * Output only. The resource name of the resulting Agent, MCP Server, or
            +   * Endpoint. Format:
            +   *
            +   * * `projects/{project}/locations/{location}/mcpServers/{mcp_server}`
            +   * * `projects/{project}/locations/{location}/agents/{agent}`
            +   * * `projects/{project}/locations/{location}/endpoints/{endpoint}`
            +   * 
            + * + * string registry_resource = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for registryResource. + */ + com.google.protobuf.ByteString getRegistryResourceBytes(); + + /** + * + * + *
            +   * Output only. Create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. Create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. Create time.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Update time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. Update time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. Update time.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + com.google.cloud.agentregistry.v1.Service.SpecCase getSpecCase(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceProto.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceProto.java new file mode 100644 index 000000000000..653967bbadec --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/ServiceProto.java @@ -0,0 +1,191 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public final class ServiceProto extends com.google.protobuf.GeneratedFile { + private ServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ServiceProto"); + } + + 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_agentregistry_v1_Service_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Service_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_Service_AgentSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Service_AgentSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_Service_McpServerSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Service_McpServerSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentregistry_v1_Service_EndpointSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentregistry_v1_Service_EndpointSpec_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/agentregistry/v1/service." + + "proto\022\035google.cloud.agentregistry.v1\032\037go" + + "ogle/api/field_behavior.proto\032\031google/ap" + + "i/resource.proto\032.google/cloud/agentregi" + + "stry/v1/properties.proto\032\034google/protobu" + + "f/struct.proto\032\037google/protobuf/timestamp.proto\"\337\t\n" + + "\007Service\022K\n\n" + + "agent_spec\030\005 \001(\0132" + + "0.google.cloud.agentregistry.v1.Service.AgentSpecB\003\340A\001H\000\022T\n" + + "\017mcp_server_spec\030\006 \001(" + + "\01324.google.cloud.agentregistry.v1.Service.McpServerSpecB\003\340A\001H\000\022Q\n\r" + + "endpoint_spec\030\007" + + " \001(\01323.google.cloud.agentregistry.v1.Service.EndpointSpecB\003\340A\001H\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + + "\014display_name\030\002 \001(\tB\003\340A\001\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\001\022A\n\n" + + "interfaces\030\004 \003(\0132(." + + "google.cloud.agentregistry.v1.InterfaceB\003\340A\001\022\036\n" + + "\021registry_resource\030\n" + + " \001(\tB\003\340A\003\0224\n" + + "\013create_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\t" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032\303\001\n" + + "\tAgentSpec\022H\n" + + "\004type\030\001" + + " \001(\01625.google.cloud.agentregistry.v1.Service.AgentSpec.TypeB\003\340A\002\022-\n" + + "\007content\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\"=\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\013\n" + + "\007NO_SPEC\020\001\022\022\n" + + "\016A2A_AGENT_CARD\020\002\032\306\001\n\r" + + "McpServerSpec\022L\n" + + "\004type\030\001 \001(\01629.google.cloud.agentregis" + + "try.v1.Service.McpServerSpec.TypeB\003\340A\002\022-\n" + + "\007content\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\"8\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\013\n" + + "\007NO_SPEC\020\001\022\r\n" + + "\tTOOL_SPEC\020\002\032\265\001\n" + + "\014EndpointSpec\022K\n" + + "\004type\030\001" + + " \001(\01628.google.cloud.agentregistry.v1.Service.EndpointSpec.TypeB\003\340A\002\022-\n" + + "\007content\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\")\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\013\n" + + "\007NO_SPEC\020\001:x\352Au\n" + + "$agentregistry.googleapis.com/Service\022:projects/{project}/locations" + + "/{location}/services/{service}*\010services2\007serviceB\006\n" + + "\004specB\337\001\n" + + "!com.google.cloud.agentregistry.v1B\014ServiceProtoP\001ZGcloud.g" + + "oogle.com/go/agentregistry/apiv1/agentre" + + "gistrypb;agentregistrypb\252\002\035Google.Cloud." + + "AgentRegistry.V1\312\002\035Google\\Cloud\\AgentRegistry\\V1\352\002" + + " Google::Cloud::AgentRegistry::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.cloud.agentregistry.v1.PropertiesProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_agentregistry_v1_Service_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_agentregistry_v1_Service_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Service_descriptor, + new java.lang.String[] { + "AgentSpec", + "McpServerSpec", + "EndpointSpec", + "Name", + "DisplayName", + "Description", + "Interfaces", + "RegistryResource", + "CreateTime", + "UpdateTime", + "Spec", + }); + internal_static_google_cloud_agentregistry_v1_Service_AgentSpec_descriptor = + internal_static_google_cloud_agentregistry_v1_Service_descriptor.getNestedType(0); + internal_static_google_cloud_agentregistry_v1_Service_AgentSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Service_AgentSpec_descriptor, + new java.lang.String[] { + "Type", "Content", + }); + internal_static_google_cloud_agentregistry_v1_Service_McpServerSpec_descriptor = + internal_static_google_cloud_agentregistry_v1_Service_descriptor.getNestedType(1); + internal_static_google_cloud_agentregistry_v1_Service_McpServerSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Service_McpServerSpec_descriptor, + new java.lang.String[] { + "Type", "Content", + }); + internal_static_google_cloud_agentregistry_v1_Service_EndpointSpec_descriptor = + internal_static_google_cloud_agentregistry_v1_Service_descriptor.getNestedType(2); + internal_static_google_cloud_agentregistry_v1_Service_EndpointSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentregistry_v1_Service_EndpointSpec_descriptor, + new java.lang.String[] { + "Type", "Content", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.agentregistry.v1.PropertiesProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + 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); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateBindingRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateBindingRequest.java new file mode 100644 index 000000000000..fb82702704c3 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateBindingRequest.java @@ -0,0 +1,1359 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for updating a Binding
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.UpdateBindingRequest} + */ +@com.google.protobuf.Generated +public final class UpdateBindingRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.UpdateBindingRequest) + UpdateBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateBindingRequest"); + } + + // Use UpdateBindingRequest.newBuilder() to construct. + private UpdateBindingRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateBindingRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.UpdateBindingRequest.class, + com.google.cloud.agentregistry.v1.UpdateBindingRequest.Builder.class); + } + + private int bitField0_; + public static final int BINDING_FIELD_NUMBER = 1; + private com.google.cloud.agentregistry.v1.Binding binding_; + + /** + * + * + *
            +   * Required. The Binding resource that is being updated.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the binding field is set. + */ + @java.lang.Override + public boolean hasBinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The Binding resource that is being updated.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The binding. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Binding getBinding() { + return binding_ == null + ? com.google.cloud.agentregistry.v1.Binding.getDefaultInstance() + : binding_; + } + + /** + * + * + *
            +   * Required. The Binding resource that is being updated.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.BindingOrBuilder getBindingOrBuilder() { + return binding_ == null + ? com.google.cloud.agentregistry.v1.Binding.getDefaultInstance() + : binding_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
            +   * Optional. Field mask is used to specify the fields to be overwritten in the
            +   * Binding resource by the update.
            +   * The fields specified in the update_mask are relative to the resource, not
            +   * the full request. A field will be overwritten if it is in the mask. If the
            +   * user does not provide a mask then all fields present in the request will be
            +   * overwritten.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. Field mask is used to specify the fields to be overwritten in the
            +   * Binding resource by the update.
            +   * The fields specified in the update_mask are relative to the resource, not
            +   * the full request. A field will be overwritten if it is in the mask. If the
            +   * user does not provide a mask then all fields present in the request will be
            +   * overwritten.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
            +   * Optional. Field mask is used to specify the fields to be overwritten in the
            +   * Binding resource by the update.
            +   * The fields specified in the update_mask are relative to the resource, not
            +   * the full request. A field will be overwritten if it is in the mask. If the
            +   * user does not provide a mask then all fields present in the request will be
            +   * overwritten.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
            +   * Optional. 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.
            +   *
            +   * For example, consider a situation where you make an initial request and the
            +   * request times out. If you make the request again with the same request
            +   * ID, the server can check if original operation with the same request ID
            +   * was received, and if so, will ignore the second request. This prevents
            +   * clients from accidentally creating duplicate commitments.
            +   *
            +   * The request ID must be a valid UUID with the exception that zero UUID is
            +   * not supported (00000000-0000-0000-0000-000000000000).
            +   * 
            + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. 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.
            +   *
            +   * For example, consider a situation where you make an initial request and the
            +   * request times out. If you make the request again with the same request
            +   * ID, the server can check if original operation with the same request ID
            +   * was received, and if so, will ignore the second request. This prevents
            +   * clients from accidentally creating duplicate commitments.
            +   *
            +   * The request ID must be a valid UUID with the exception that zero UUID is
            +   * not supported (00000000-0000-0000-0000-000000000000).
            +   * 
            + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getBinding()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBinding()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.agentregistry.v1.UpdateBindingRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.UpdateBindingRequest other = + (com.google.cloud.agentregistry.v1.UpdateBindingRequest) obj; + + if (hasBinding() != other.hasBinding()) return false; + if (hasBinding()) { + if (!getBinding().equals(other.getBinding())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBinding()) { + hash = (37 * hash) + BINDING_FIELD_NUMBER; + hash = (53 * hash) + getBinding().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentregistry.v1.UpdateBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.UpdateBindingRequest 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.agentregistry.v1.UpdateBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.UpdateBindingRequest parseFrom( + 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.agentregistry.v1.UpdateBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.UpdateBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.UpdateBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.UpdateBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.UpdateBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.UpdateBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.UpdateBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.UpdateBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.UpdateBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for updating a Binding
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.UpdateBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.UpdateBindingRequest) + com.google.cloud.agentregistry.v1.UpdateBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.UpdateBindingRequest.class, + com.google.cloud.agentregistry.v1.UpdateBindingRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.UpdateBindingRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetBindingFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + binding_ = null; + if (bindingBuilder_ != null) { + bindingBuilder_.dispose(); + bindingBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.UpdateBindingRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.UpdateBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.UpdateBindingRequest build() { + com.google.cloud.agentregistry.v1.UpdateBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.UpdateBindingRequest buildPartial() { + com.google.cloud.agentregistry.v1.UpdateBindingRequest result = + new com.google.cloud.agentregistry.v1.UpdateBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.UpdateBindingRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.binding_ = bindingBuilder_ == null ? binding_ : bindingBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.UpdateBindingRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.UpdateBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.UpdateBindingRequest other) { + if (other == com.google.cloud.agentregistry.v1.UpdateBindingRequest.getDefaultInstance()) + return this; + if (other.hasBinding()) { + mergeBinding(other.getBinding()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetBindingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.agentregistry.v1.Binding binding_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Binding, + com.google.cloud.agentregistry.v1.Binding.Builder, + com.google.cloud.agentregistry.v1.BindingOrBuilder> + bindingBuilder_; + + /** + * + * + *
            +     * Required. The Binding resource that is being updated.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the binding field is set. + */ + public boolean hasBinding() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. The Binding resource that is being updated.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The binding. + */ + public com.google.cloud.agentregistry.v1.Binding getBinding() { + if (bindingBuilder_ == null) { + return binding_ == null + ? com.google.cloud.agentregistry.v1.Binding.getDefaultInstance() + : binding_; + } else { + return bindingBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The Binding resource that is being updated.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBinding(com.google.cloud.agentregistry.v1.Binding value) { + if (bindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + binding_ = value; + } else { + bindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Binding resource that is being updated.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setBinding(com.google.cloud.agentregistry.v1.Binding.Builder builderForValue) { + if (bindingBuilder_ == null) { + binding_ = builderForValue.build(); + } else { + bindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Binding resource that is being updated.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeBinding(com.google.cloud.agentregistry.v1.Binding value) { + if (bindingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && binding_ != null + && binding_ != com.google.cloud.agentregistry.v1.Binding.getDefaultInstance()) { + getBindingBuilder().mergeFrom(value); + } else { + binding_ = value; + } + } else { + bindingBuilder_.mergeFrom(value); + } + if (binding_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The Binding resource that is being updated.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearBinding() { + bitField0_ = (bitField0_ & ~0x00000001); + binding_ = null; + if (bindingBuilder_ != null) { + bindingBuilder_.dispose(); + bindingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Binding resource that is being updated.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.Binding.Builder getBindingBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetBindingFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The Binding resource that is being updated.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.BindingOrBuilder getBindingOrBuilder() { + if (bindingBuilder_ != null) { + return bindingBuilder_.getMessageOrBuilder(); + } else { + return binding_ == null + ? com.google.cloud.agentregistry.v1.Binding.getDefaultInstance() + : binding_; + } + } + + /** + * + * + *
            +     * Required. The Binding resource that is being updated.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Binding, + com.google.cloud.agentregistry.v1.Binding.Builder, + com.google.cloud.agentregistry.v1.BindingOrBuilder> + internalGetBindingFieldBuilder() { + if (bindingBuilder_ == null) { + bindingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Binding, + com.google.cloud.agentregistry.v1.Binding.Builder, + com.google.cloud.agentregistry.v1.BindingOrBuilder>( + getBinding(), getParentForChildren(), isClean()); + binding_ = null; + } + return bindingBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * Binding resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields present in the request will be
            +     * overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * Binding resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields present in the request will be
            +     * overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * Binding resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields present in the request will be
            +     * overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * Binding resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields present in the request will be
            +     * overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * Binding resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields present in the request will be
            +     * overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * Binding resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields present in the request will be
            +     * overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * Binding resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields present in the request will be
            +     * overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * Binding resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields present in the request will be
            +     * overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * Binding resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields present in the request will be
            +     * overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
            +     * Optional. 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.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. 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.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. 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.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. 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.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. 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.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.UpdateBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.UpdateBindingRequest) + private static final com.google.cloud.agentregistry.v1.UpdateBindingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.UpdateBindingRequest(); + } + + public static com.google.cloud.agentregistry.v1.UpdateBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.UpdateBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateBindingRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateBindingRequestOrBuilder.java new file mode 100644 index 000000000000..676bb14783a4 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateBindingRequestOrBuilder.java @@ -0,0 +1,180 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface UpdateBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.UpdateBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The Binding resource that is being updated.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the binding field is set. + */ + boolean hasBinding(); + + /** + * + * + *
            +   * Required. The Binding resource that is being updated.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The binding. + */ + com.google.cloud.agentregistry.v1.Binding getBinding(); + + /** + * + * + *
            +   * Required. The Binding resource that is being updated.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Binding binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.agentregistry.v1.BindingOrBuilder getBindingOrBuilder(); + + /** + * + * + *
            +   * Optional. Field mask is used to specify the fields to be overwritten in the
            +   * Binding resource by the update.
            +   * The fields specified in the update_mask are relative to the resource, not
            +   * the full request. A field will be overwritten if it is in the mask. If the
            +   * user does not provide a mask then all fields present in the request will be
            +   * overwritten.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
            +   * Optional. Field mask is used to specify the fields to be overwritten in the
            +   * Binding resource by the update.
            +   * The fields specified in the update_mask are relative to the resource, not
            +   * the full request. A field will be overwritten if it is in the mask. If the
            +   * user does not provide a mask then all fields present in the request will be
            +   * overwritten.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
            +   * Optional. Field mask is used to specify the fields to be overwritten in the
            +   * Binding resource by the update.
            +   * The fields specified in the update_mask are relative to the resource, not
            +   * the full request. A field will be overwritten if it is in the mask. If the
            +   * user does not provide a mask then all fields present in the request will be
            +   * overwritten.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
            +   * 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.
            +   *
            +   * For example, consider a situation where you make an initial request and the
            +   * request times out. If you make the request again with the same request
            +   * ID, the server can check if original operation with the same request ID
            +   * was received, and if so, will ignore the second request. This prevents
            +   * clients from accidentally creating duplicate commitments.
            +   *
            +   * The request ID must be a valid UUID with the exception that zero UUID is
            +   * not supported (00000000-0000-0000-0000-000000000000).
            +   * 
            + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
            +   * Optional. An optional request ID to identify requests. Specify a unique
            +   * request ID so that if you must retry your request, the server will know to
            +   * ignore the request if it has already been completed. The server will
            +   * guarantee that for at least 60 minutes 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
            +   * 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, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateServiceRequest.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateServiceRequest.java new file mode 100644 index 000000000000..dc9691604b24 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateServiceRequest.java @@ -0,0 +1,1371 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +/** + * + * + *
            + * Message for updating a Service
            + * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.UpdateServiceRequest} + */ +@com.google.protobuf.Generated +public final class UpdateServiceRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentregistry.v1.UpdateServiceRequest) + UpdateServiceRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateServiceRequest"); + } + + // Use UpdateServiceRequest.newBuilder() to construct. + private UpdateServiceRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateServiceRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.UpdateServiceRequest.class, + com.google.cloud.agentregistry.v1.UpdateServiceRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
            +   * Optional. Field mask is used to specify the fields to be overwritten in the
            +   * Service resource by the update.
            +   * The fields specified in the update_mask are relative to the resource, not
            +   * the full request. A field will be overwritten if it is in the mask. If the
            +   * user does not provide a mask then all fields present in the request will be
            +   * overwritten.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Field mask is used to specify the fields to be overwritten in the
            +   * Service resource by the update.
            +   * The fields specified in the update_mask are relative to the resource, not
            +   * the full request. A field will be overwritten if it is in the mask. If the
            +   * user does not provide a mask then all fields present in the request will be
            +   * overwritten.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
            +   * Optional. Field mask is used to specify the fields to be overwritten in the
            +   * Service resource by the update.
            +   * The fields specified in the update_mask are relative to the resource, not
            +   * the full request. A field will be overwritten if it is in the mask. If the
            +   * user does not provide a mask then all fields present in the request will be
            +   * overwritten.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int SERVICE_FIELD_NUMBER = 2; + private com.google.cloud.agentregistry.v1.Service service_; + + /** + * + * + *
            +   * Required. The Service resource that is being updated.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the service field is set. + */ + @java.lang.Override + public boolean hasService() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Required. The Service resource that is being updated.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The service. + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.Service getService() { + return service_ == null + ? com.google.cloud.agentregistry.v1.Service.getDefaultInstance() + : service_; + } + + /** + * + * + *
            +   * Required. The Service resource that is being updated.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.agentregistry.v1.ServiceOrBuilder getServiceOrBuilder() { + return service_ == null + ? com.google.cloud.agentregistry.v1.Service.getDefaultInstance() + : service_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
            +   * Optional. An optional request ID to identify requests. Specify a unique
            +   * request ID so that if you must retry your request, the server will know to
            +   * ignore the request if it has already been completed. The server will
            +   * guarantee that for at least 60 minutes 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
            +   * 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, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. An optional request ID to identify requests. Specify a unique
            +   * request ID so that if you must retry your request, the server will know to
            +   * ignore the request if it has already been completed. The server will
            +   * guarantee that for at least 60 minutes 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
            +   * 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, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getService()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getService()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.agentregistry.v1.UpdateServiceRequest)) { + return super.equals(obj); + } + com.google.cloud.agentregistry.v1.UpdateServiceRequest other = + (com.google.cloud.agentregistry.v1.UpdateServiceRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasService() != other.hasService()) return false; + if (hasService()) { + if (!getService().equals(other.getService())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasService()) { + hash = (37 * hash) + SERVICE_FIELD_NUMBER; + hash = (53 * hash) + getService().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.agentregistry.v1.UpdateServiceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.UpdateServiceRequest 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.agentregistry.v1.UpdateServiceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.UpdateServiceRequest parseFrom( + 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.agentregistry.v1.UpdateServiceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentregistry.v1.UpdateServiceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.UpdateServiceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.UpdateServiceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.UpdateServiceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.UpdateServiceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentregistry.v1.UpdateServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentregistry.v1.UpdateServiceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.agentregistry.v1.UpdateServiceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message for updating a Service
            +   * 
            + * + * Protobuf type {@code google.cloud.agentregistry.v1.UpdateServiceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentregistry.v1.UpdateServiceRequest) + com.google.cloud.agentregistry.v1.UpdateServiceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateServiceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateServiceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentregistry.v1.UpdateServiceRequest.class, + com.google.cloud.agentregistry.v1.UpdateServiceRequest.Builder.class); + } + + // Construct using com.google.cloud.agentregistry.v1.UpdateServiceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetServiceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + service_ = null; + if (serviceBuilder_ != null) { + serviceBuilder_.dispose(); + serviceBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentregistry.v1.AgentRegistryServiceProto + .internal_static_google_cloud_agentregistry_v1_UpdateServiceRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.UpdateServiceRequest getDefaultInstanceForType() { + return com.google.cloud.agentregistry.v1.UpdateServiceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.UpdateServiceRequest build() { + com.google.cloud.agentregistry.v1.UpdateServiceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentregistry.v1.UpdateServiceRequest buildPartial() { + com.google.cloud.agentregistry.v1.UpdateServiceRequest result = + new com.google.cloud.agentregistry.v1.UpdateServiceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentregistry.v1.UpdateServiceRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.service_ = serviceBuilder_ == null ? service_ : serviceBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentregistry.v1.UpdateServiceRequest) { + return mergeFrom((com.google.cloud.agentregistry.v1.UpdateServiceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentregistry.v1.UpdateServiceRequest other) { + if (other == com.google.cloud.agentregistry.v1.UpdateServiceRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasService()) { + mergeService(other.getService()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetServiceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * Service resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields present in the request will be
            +     * overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * Service resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields present in the request will be
            +     * overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * Service resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields present in the request will be
            +     * overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * Service resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields present in the request will be
            +     * overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * Service resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields present in the request will be
            +     * overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * Service resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields present in the request will be
            +     * overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * Service resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields present in the request will be
            +     * overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * Service resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields present in the request will be
            +     * overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
            +     * Optional. Field mask is used to specify the fields to be overwritten in the
            +     * Service resource by the update.
            +     * The fields specified in the update_mask are relative to the resource, not
            +     * the full request. A field will be overwritten if it is in the mask. If the
            +     * user does not provide a mask then all fields present in the request will be
            +     * overwritten.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.agentregistry.v1.Service service_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Service, + com.google.cloud.agentregistry.v1.Service.Builder, + com.google.cloud.agentregistry.v1.ServiceOrBuilder> + serviceBuilder_; + + /** + * + * + *
            +     * Required. The Service resource that is being updated.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the service field is set. + */ + public boolean hasService() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The Service resource that is being updated.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The service. + */ + public com.google.cloud.agentregistry.v1.Service getService() { + if (serviceBuilder_ == null) { + return service_ == null + ? com.google.cloud.agentregistry.v1.Service.getDefaultInstance() + : service_; + } else { + return serviceBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The Service resource that is being updated.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setService(com.google.cloud.agentregistry.v1.Service value) { + if (serviceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + service_ = value; + } else { + serviceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Service resource that is being updated.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setService(com.google.cloud.agentregistry.v1.Service.Builder builderForValue) { + if (serviceBuilder_ == null) { + service_ = builderForValue.build(); + } else { + serviceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Service resource that is being updated.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeService(com.google.cloud.agentregistry.v1.Service value) { + if (serviceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && service_ != null + && service_ != com.google.cloud.agentregistry.v1.Service.getDefaultInstance()) { + getServiceBuilder().mergeFrom(value); + } else { + service_ = value; + } + } else { + serviceBuilder_.mergeFrom(value); + } + if (service_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The Service resource that is being updated.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearService() { + bitField0_ = (bitField0_ & ~0x00000002); + service_ = null; + if (serviceBuilder_ != null) { + serviceBuilder_.dispose(); + serviceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The Service resource that is being updated.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.Service.Builder getServiceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetServiceFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The Service resource that is being updated.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentregistry.v1.ServiceOrBuilder getServiceOrBuilder() { + if (serviceBuilder_ != null) { + return serviceBuilder_.getMessageOrBuilder(); + } else { + return service_ == null + ? com.google.cloud.agentregistry.v1.Service.getDefaultInstance() + : service_; + } + } + + /** + * + * + *
            +     * Required. The Service resource that is being updated.
            +     * Format: `projects/{project}/locations/{location}/services/{service}`.
            +     * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Service, + com.google.cloud.agentregistry.v1.Service.Builder, + com.google.cloud.agentregistry.v1.ServiceOrBuilder> + internalGetServiceFieldBuilder() { + if (serviceBuilder_ == null) { + serviceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentregistry.v1.Service, + com.google.cloud.agentregistry.v1.Service.Builder, + com.google.cloud.agentregistry.v1.ServiceOrBuilder>( + getService(), getParentForChildren(), isClean()); + service_ = null; + } + return serviceBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
            +     * Optional. An optional request ID to identify requests. Specify a unique
            +     * request ID so that if you must retry your request, the server will know to
            +     * ignore the request if it has already been completed. The server will
            +     * guarantee that for at least 60 minutes 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
            +     * 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, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. An optional request ID to identify requests. Specify a unique
            +     * request ID so that if you must retry your request, the server will know to
            +     * ignore the request if it has already been completed. The server will
            +     * guarantee that for at least 60 minutes 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
            +     * 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, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. An optional request ID to identify requests. Specify a unique
            +     * request ID so that if you must retry your request, the server will know to
            +     * ignore the request if it has already been completed. The server will
            +     * guarantee that for at least 60 minutes 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
            +     * 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, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. 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.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. 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.
            +     *
            +     * For example, consider a situation where you make an initial request and the
            +     * request times out. If you make the request again with the same request
            +     * ID, the server can check if original operation with the same request ID
            +     * was received, and if so, will ignore the second request. This prevents
            +     * clients from accidentally creating duplicate commitments.
            +     *
            +     * The request ID must be a valid UUID with the exception that zero UUID is
            +     * not supported (00000000-0000-0000-0000-000000000000).
            +     * 
            + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentregistry.v1.UpdateServiceRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentregistry.v1.UpdateServiceRequest) + private static final com.google.cloud.agentregistry.v1.UpdateServiceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentregistry.v1.UpdateServiceRequest(); + } + + public static com.google.cloud.agentregistry.v1.UpdateServiceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateServiceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.agentregistry.v1.UpdateServiceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateServiceRequestOrBuilder.java b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateServiceRequestOrBuilder.java new file mode 100644 index 000000000000..0adaac9ac5f5 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/java/com/google/cloud/agentregistry/v1/UpdateServiceRequestOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentregistry/v1/agentregistry_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentregistry.v1; + +@com.google.protobuf.Generated +public interface UpdateServiceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentregistry.v1.UpdateServiceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. Field mask is used to specify the fields to be overwritten in the
            +   * Service resource by the update.
            +   * The fields specified in the update_mask are relative to the resource, not
            +   * the full request. A field will be overwritten if it is in the mask. If the
            +   * user does not provide a mask then all fields present in the request will be
            +   * overwritten.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
            +   * Optional. Field mask is used to specify the fields to be overwritten in the
            +   * Service resource by the update.
            +   * The fields specified in the update_mask are relative to the resource, not
            +   * the full request. A field will be overwritten if it is in the mask. If the
            +   * user does not provide a mask then all fields present in the request will be
            +   * overwritten.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
            +   * Optional. Field mask is used to specify the fields to be overwritten in the
            +   * Service resource by the update.
            +   * The fields specified in the update_mask are relative to the resource, not
            +   * the full request. A field will be overwritten if it is in the mask. If the
            +   * user does not provide a mask then all fields present in the request will be
            +   * overwritten.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
            +   * Required. The Service resource that is being updated.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the service field is set. + */ + boolean hasService(); + + /** + * + * + *
            +   * Required. The Service resource that is being updated.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The service. + */ + com.google.cloud.agentregistry.v1.Service getService(); + + /** + * + * + *
            +   * Required. The Service resource that is being updated.
            +   * Format: `projects/{project}/locations/{location}/services/{service}`.
            +   * 
            + * + * + * .google.cloud.agentregistry.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.agentregistry.v1.ServiceOrBuilder getServiceOrBuilder(); + + /** + * + * + *
            +   * 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.
            +   *
            +   * For example, consider a situation where you make an initial request and the
            +   * request times out. If you make the request again with the same request
            +   * ID, the server can check if original operation with the same request ID
            +   * was received, and if so, will ignore the second request. This prevents
            +   * clients from accidentally creating duplicate commitments.
            +   *
            +   * The request ID must be a valid UUID with the exception that zero UUID is
            +   * not supported (00000000-0000-0000-0000-000000000000).
            +   * 
            + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
            +   * Optional. An optional request ID to identify requests. Specify a unique
            +   * request ID so that if you must retry your request, the server will know to
            +   * ignore the request if it has already been completed. The server will
            +   * guarantee that for at least 60 minutes 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
            +   * 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, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/agent.proto b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/agent.proto new file mode 100644 index 000000000000..c5c3081f4562 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/agent.proto @@ -0,0 +1,168 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.agentregistry.v1; + +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/cloud/agentregistry/v1/properties.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AgentRegistry.V1"; +option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb"; +option java_multiple_files = true; +option java_outer_classname = "AgentProto"; +option java_package = "com.google.cloud.agentregistry.v1"; +option php_namespace = "Google\\Cloud\\AgentRegistry\\V1"; +option ruby_package = "Google::Cloud::AgentRegistry::V1"; + +// Represents an Agent. +// "A2A" below refers to the Agent-to-Agent protocol. +message Agent { + option (google.api.resource) = { + type: "agentregistry.googleapis.com/Agent" + pattern: "projects/{project}/locations/{location}/agents/{agent}" + plural: "agents" + singular: "agent" + }; + + // Represents the protocol of an Agent. + message Protocol { + // The type of the protocol. + enum Type { + // Unspecified type. + TYPE_UNSPECIFIED = 0; + + // The interfaces point to an A2A Agent following the A2A + // specification. + A2A_AGENT = 1; + + // Agent does not follow any standard protocol. + CUSTOM = 2; + } + + // Output only. The type of the protocol. + Type type = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The version of the protocol, for example, the A2A Agent Card + // version. + string protocol_version = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The connection details for the Agent. + repeated Interface interfaces = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Represents the skills of an Agent. + message Skill { + // Output only. A unique identifier for the agent's skill. + string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A human-readable name for the agent's skill. + string name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A more detailed description of the skill. + string description = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Keywords describing the skill. + repeated string tags = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Example prompts or scenarios this skill can handle. + repeated string examples = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Full Agent Card payload, often obtained from the A2A Agent Card. + message Card { + // Represents the type of the agent card. + enum Type { + // Unspecified type. + TYPE_UNSPECIFIED = 0; + + // Indicates that the card is an A2A Agent Card. + A2A_AGENT_CARD = 1; + } + + // Output only. The type of agent card. + Type type = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The content of the agent card. + google.protobuf.Struct content = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Identifier. The resource name of an Agent. + // Format: `projects/{project}/locations/{location}/agents/{agent}`. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. A stable, globally unique identifier for agents. + string agent_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The location where agent is hosted. The value is defined by + // the hosting environment (i.e. cloud provider). + string location = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The display name of the agent, often obtained from the A2A + // Agent Card. + string display_name = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The description of the Agent, often obtained from the A2A + // Agent Card. Empty if Agent Card has no description. + string description = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The version of the Agent, often obtained from the A2A Agent + // Card. Empty if Agent Card has no version or agent is not an A2A Agent. + string version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The connection details for the Agent. + repeated Protocol protocols = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Skills the agent possesses, often obtained from the A2A Agent + // Card. + repeated Skill skills = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A universally unique identifier for the Agent. + string uid = 10 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Output only. Create time. + google.protobuf.Timestamp create_time = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Update time. + google.protobuf.Timestamp update_time = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Attributes of the Agent. + // Valid values: + // + // * `agentregistry.googleapis.com/system/Framework`: {"framework": + // "google-adk"} - the agent framework used to develop the Agent. Example + // values: "google-adk", "langchain", "custom". + // * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal": + // "principal://..."} - the runtime identity associated with the Agent. + // * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."} + // - the URI of the underlying resource hosting the Agent, for + // example, the Reasoning Engine URI. + map attributes = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Full Agent Card payload, when available. + Card card = 14 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/agentregistry_service.proto b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/agentregistry_service.proto new file mode 100644 index 000000000000..682a95bf32a1 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/agentregistry_service.proto @@ -0,0 +1,934 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.agentregistry.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/agentregistry/v1/agent.proto"; +import "google/cloud/agentregistry/v1/binding.proto"; +import "google/cloud/agentregistry/v1/endpoint.proto"; +import "google/cloud/agentregistry/v1/mcp_server.proto"; +import "google/cloud/agentregistry/v1/service.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.AgentRegistry.V1"; +option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb"; +option java_multiple_files = true; +option java_outer_classname = "AgentRegistryServiceProto"; +option java_package = "com.google.cloud.agentregistry.v1"; +option php_namespace = "Google\\Cloud\\AgentRegistry\\V1"; +option ruby_package = "Google::Cloud::AgentRegistry::V1"; + +// Service for managing Agents, Endpoints, McpServers, Services, and Bindings. +service AgentRegistry { + option (google.api.default_host) = "agentregistry.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/agentregistry.read-only," + "https://www.googleapis.com/auth/agentregistry.read-write," + "https://www.googleapis.com/auth/cloud-platform," + "https://www.googleapis.com/auth/cloud-platform.read-only"; + + // Lists Agents in a given project and location. + rpc ListAgents(ListAgentsRequest) returns (ListAgentsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/agents" + }; + option (google.api.method_signature) = "parent"; + } + + // Searches Agents in a given project and location. + rpc SearchAgents(SearchAgentsRequest) returns (SearchAgentsResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/agents:search" + body: "*" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Agent. + rpc GetAgent(GetAgentRequest) returns (Agent) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/agents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Endpoints in a given project and location. + rpc ListEndpoints(ListEndpointsRequest) returns (ListEndpointsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/endpoints" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Endpoint. + rpc GetEndpoint(GetEndpointRequest) returns (Endpoint) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/endpoints/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists McpServers in a given project and location. + rpc ListMcpServers(ListMcpServersRequest) returns (ListMcpServersResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/mcpServers" + }; + option (google.api.method_signature) = "parent"; + } + + // Searches McpServers in a given project and location. + rpc SearchMcpServers(SearchMcpServersRequest) + returns (SearchMcpServersResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/mcpServers:search" + body: "*" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single McpServer. + rpc GetMcpServer(GetMcpServerRequest) returns (McpServer) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/mcpServers/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Services in a given project and location. + rpc ListServices(ListServicesRequest) returns (ListServicesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/services" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Service. + rpc GetService(GetServiceRequest) returns (Service) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/services/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new Service in a given project and location. + rpc CreateService(CreateServiceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/services" + body: "service" + }; + option (google.api.method_signature) = "parent,service,service_id"; + option (google.longrunning.operation_info) = { + response_type: "Service" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of a single Service. + rpc UpdateService(UpdateServiceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{service.name=projects/*/locations/*/services/*}" + body: "service" + }; + option (google.api.method_signature) = "service,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Service" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single Service. + rpc DeleteService(DeleteServiceRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/services/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists Bindings in a given project and location. + rpc ListBindings(ListBindingsRequest) returns (ListBindingsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/bindings" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Binding. + rpc GetBinding(GetBindingRequest) returns (Binding) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/bindings/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new Binding in a given project and location. + rpc CreateBinding(CreateBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/bindings" + body: "binding" + }; + option (google.api.method_signature) = "parent,binding,binding_id"; + option (google.longrunning.operation_info) = { + response_type: "Binding" + metadata_type: "OperationMetadata" + }; + } + + // Updates the parameters of a single Binding. + rpc UpdateBinding(UpdateBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{binding.name=projects/*/locations/*/bindings/*}" + body: "binding" + }; + option (google.api.method_signature) = "binding,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "Binding" + metadata_type: "OperationMetadata" + }; + } + + // Deletes a single Binding. + rpc DeleteBinding(DeleteBindingRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/bindings/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Fetches available Bindings. + rpc FetchAvailableBindings(FetchAvailableBindingsRequest) + returns (FetchAvailableBindingsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/bindings:fetchAvailable" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Message for requesting list of Agents +message ListAgentsRequest { + // Required. Parent value for ListAgentsRequest + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentregistry.googleapis.com/Agent" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filtering results + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint for how to order the results + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing Agents +message ListAgentsResponse { + // The list of Agents. + repeated Agent agents = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} + +// Message for searching Agents +message SearchAgentsRequest { + // Required. Parent value for SearchAgentsRequest. Format: + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentregistry.googleapis.com/Agent" + } + ]; + + // Optional. Search criteria used to select the Agents to return. If no search + // criteria is specified then all accessible Agents will be returned. + // + // Search expressions can be used to restrict results based upon searchable + // fields, where the operators can be used along with the suffix wildcard + // symbol `*`. See + // [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools) + // for more details. + // + // Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`. + // + // Searchable fields: + // + // | Field | `=` | `:` | `*` | Keyword Search | + // |--------------------|-----|-----|-----|----------------| + // | agentId | Yes | Yes | Yes | Included | + // | name | No | Yes | Yes | Included | + // | displayName | No | Yes | Yes | Included | + // | description | No | Yes | No | Included | + // | skills | No | Yes | No | Included | + // | skills.id | No | Yes | No | Included | + // | skills.name | No | Yes | No | Included | + // | skills.description | No | Yes | No | Included | + // | skills.tags | No | Yes | No | Included | + // | skills.examples | No | Yes | No | Included | + // + // Examples: + // + // * `agentId="urn:agent:projects-123:projects:123:locations:us-central1:reasoningEngines:1234"` + // to find the agent with the specified agent ID. + // * `name:important` to find agents whose name contains `important` as a + // word. + // * `displayName:works*` to find agents whose display name contains words + // that start with `works`. + // * `skills.tags:test` to find agents whose skills tags contain `test`. + // * `planner OR booking` to find agents whose metadata contains the words + // `planner` or `booking`. + string search_string = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of search results to return per page. The page + // size is capped at `100`, even if a larger value is specified. A negative + // value will result in an `INVALID_ARGUMENT` error. If unspecified or set to + // `0`, a default value of `20` will be used. The server may return fewer + // results than requested. + int32 page_size = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, retrieve the next batch of results from the preceding + // call to this method. `page_token` must be the value of `next_page_token` + // from the previous response. The values of all other method parameters, must + // be identical to those in the previous call. + string page_token = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to searching Agents +message SearchAgentsResponse { + // A list of Agents that match the `search_string`. + repeated Agent agents = 1; + + // If there are more results than those appearing in this response, then + // `next_page_token` is included. To get the next set of results, call this + // method again using the value of `next_page_token` as `page_token`. + string next_page_token = 2; +} + +// Message for getting a Agent +message GetAgentRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/Agent" + } + ]; +} + +// Message for requesting list of Endpoints +message ListEndpointsRequest { + // Required. The project and location to list endpoints in. + // Expected format: `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentregistry.googleapis.com/Endpoint" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A query string used to filter the list of endpoints returned. + // The filter expression must follow AIP-160 syntax. + // + // Filtering is supported on the `name`, `display_name`, `description`, + // `version`, and `interfaces` fields. + // + // Some examples: + // + // * `name = "projects/p1/locations/l1/endpoints/e1"` + // * `display_name = "my-endpoint"` + // * `description = "my-endpoint-description"` + // * `version = "v1"` + // * `interfaces.transport = "HTTP_JSON"` + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing Endpoints +message ListEndpointsResponse { + // The list of Endpoint resources matching the parent and filter criteria in + // the request. Each Endpoint resource follows the format: + // `projects/{project}/locations/{location}/endpoints/{endpoint}`. + repeated Endpoint endpoints = 1; + + // A token identifying a page of results the server should return. + // Used in + // [page_token][google.cloud.agentregistry.v1main.ListEndpointsRequest.page_token]. + string next_page_token = 2; +} + +// Message for getting a Endpoint +message GetEndpointRequest { + // Required. The name of the endpoint to retrieve. + // Format: `projects/{project}/locations/{location}/endpoints/{endpoint}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/Endpoint" + } + ]; +} + +// Message for requesting list of McpServers +message ListMcpServersRequest { + // Required. Parent value for ListMcpServersRequest. Format: + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentregistry.googleapis.com/McpServer" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filtering results + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint for how to order the results + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing McpServers +message ListMcpServersResponse { + // The list of McpServers. + repeated McpServer mcp_servers = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} + +// Message for searching MCP Servers +message SearchMcpServersRequest { + // Required. Parent value for SearchMcpServersRequest. Format: + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentregistry.googleapis.com/McpServer" + } + ]; + + // Optional. Search criteria used to select the MCP Servers to return. If no + // search criteria is specified then all accessible MCP Servers will be + // returned. + // + // Search expressions can be used to restrict results based upon searchable + // fields, where the operators can be used along with the suffix wildcard + // symbol `*`. See + // [instructions](https://docs.cloud.google.com/agent-registry/search-agents-and-tools) + // for more details. + // + // Allowed operators: `=`, `:`, `NOT`, `AND`, `OR`, and `()`. + // + // Searchable fields: + // + // | Field | `=` | `:` | `*` | Keyword Search | + // |--------------------|-----|-----|-----|----------------| + // | mcpServerId | Yes | Yes | Yes | Included | + // | name | No | Yes | Yes | Included | + // | displayName | No | Yes | Yes | Included | + // + // Examples: + // + // * `mcpServerId="urn:mcp:projects-123:projects:123:locations:us-central1:agentregistry:services:service-id"` + // to find the MCP Server with the specified MCP Server ID. + // * `name:important` to find MCP Servers whose name contains `important` as a + // word. + // * `displayName:works*` to find MCP Servers whose display name contains + // words that start with `works`. + // * `planner OR booking` to find MCP Servers whose metadata contains the + // words `planner` or `booking`. + // * `mcpServerId:service-id AND (displayName:planner OR + // displayName:booking)` to find MCP Servers whose MCP Server ID contains + // `service-id` and whose display name contains `planner` or + // `booking`. + string search_string = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of search results to return per page. The page + // size is capped at `100`, even if a larger value is specified. A negative + // value will result in an `INVALID_ARGUMENT` error. If unspecified or set to + // `0`, a default value of `20` will be used. The server may return fewer + // results than requested. + int32 page_size = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If present, retrieve the next batch of results from the preceding + // call to this method. `page_token` must be the value of `next_page_token` + // from the previous response. The values of all other method parameters, must + // be identical to those in the previous call. + string page_token = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to searching MCP Servers +message SearchMcpServersResponse { + // A list of McpServers that match the `search_string`. + repeated McpServer mcp_servers = 1; + + // If there are more results than those appearing in this response, then + // `next_page_token` is included. To get the next set of results, call this + // method again using the value of `next_page_token` as `page_token`. + string next_page_token = 2; +} + +// Message for getting a McpServer +message GetMcpServerRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/McpServer" + } + ]; +} + +// Message for requesting list of Services +message ListServicesRequest { + // Required. The project and location to list services in. + // Expected format: `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentregistry.googleapis.com/Service" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A query string used to filter the list of services returned. + // The filter expression must follow AIP-160 syntax. + // + // Filtering is supported on the `name`, `display_name`, `description`, + // and `labels` fields. + // + // Some examples: + // + // * `name = "projects/p1/locations/l1/services/s1"` + // * `display_name = "my-service"` + // * `description : "myservice description"` + // * `labels.env = "prod"` + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing Services +message ListServicesResponse { + // The list of Service resources matching the parent and filter criteria in + // the request. Each Service resource follows the format: + // `projects/{project}/locations/{location}/services/{service}`. + repeated Service services = 1; + + // A token identifying a page of results the server should return. + // Used in + // [page_token][google.cloud.agentregistry.v1main.ListServicesRequest.page_token]. + string next_page_token = 2; +} + +// Message for getting a Service +message GetServiceRequest { + // Required. The name of the Service. + // Format: `projects/{project}/locations/{location}/services/{service}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/Service" + } + ]; +} + +// Message for creating a Service +message CreateServiceRequest { + // Required. The project and location to create the Service in. + // Expected format: `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentregistry.googleapis.com/Service" + } + ]; + + // Required. The ID to use for the service, which will become the final + // component of the service's resource name. + // + // This value should be 4-63 characters, and valid characters + // are `/[a-z][0-9]-/`. + string service_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Service resource that is being created. + // Format: `projects/{project}/locations/{location}/services/{service}`. + Service service = 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. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for fetching available Bindings. +message FetchAvailableBindingsRequest { + // The reference of the source Agent. + oneof source { + // The identifier of the source Agent. + // Format: + // + // * `urn:agent:{publisher}:{namespace}:{name}` + string source_identifier = 2; + } + + // The reference of the target Agent Registry resource. + oneof target { + // Optional. The identifier of the target Agent, MCP Server, or Endpoint. + // Format: + // + // * `urn:agent:{publisher}:{namespace}:{name}` + // * `urn:mcp:{publisher}:{namespace}:{name}` + // * `urn:endpoint:{publisher}:{namespace}:{name}` + string target_identifier = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. The parent, in the format + // `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentregistry.googleapis.com/Binding" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. Page size is 500 if unspecified and is capped at `500` even if a + // larger value is given. + int32 page_size = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to fetching available Bindings. +message FetchAvailableBindingsResponse { + // The list of Bindings. + repeated Binding bindings = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; +} + +// Message for updating a Service +message UpdateServiceRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // Service resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields present in the request will be + // overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The Service resource that is being updated. + // Format: `projects/{project}/locations/{location}/services/{service}`. + Service service = 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. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for deleting a Service +message DeleteServiceRequest { + // Required. The name of the Service. + // Format: `projects/{project}/locations/{location}/services/{service}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/Service" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Represents the metadata of the long-running operation. +message OperationMetadata { + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the verb executed by the operation. + string verb = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable status of the operation, if any. + string status_message = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Identifies whether the user has requested cancellation + // of the operation. Operations that have been cancelled successfully + // have + // [google.longrunning.Operation.error][google.longrunning.Operation.error] + // value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`, + // corresponding to `Code.CANCELLED`. + bool requested_cancellation = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. API version used to start the operation. + string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Message for requesting a list of Bindings. +message ListBindingsRequest { + // Required. The project and location to list bindings in. + // Expected format: `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentregistry.googleapis.com/Binding" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. Page size is 500 if unspecified and is capped at `500` even if a + // larger value is given. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A query string used to filter the list of bindings returned. + // The filter expression must follow AIP-160 syntax. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hint for how to order the results + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing Bindings +message ListBindingsResponse { + // The list of Binding resources matching the parent and filter criteria in + // the request. Each Binding resource follows the format: + // `projects/{project}/locations/{location}/bindings/{binding}`. + repeated Binding bindings = 1; + + // A token identifying a page of results the server should return. + // Used in + // [page_token][google.cloud.agentregistry.v1main.ListBindingsRequest.page_token]. + string next_page_token = 2; +} + +// Message for getting a Binding +message GetBindingRequest { + // Required. The name of the Binding. + // Format: `projects/{project}/locations/{location}/bindings/{binding}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/Binding" + } + ]; +} + +// Message for creating a Binding +message CreateBindingRequest { + // Required. The project and location to create the Binding in. + // Expected format: `projects/{project}/locations/{location}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentregistry.googleapis.com/Binding" + } + ]; + + // Required. The ID to use for the binding, which will become the final + // component of the binding's resource name. + // + // This value should be 4-63 characters, and must conform to RFC-1034. + // Specifically, it must match the regular expression + // `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + string binding_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The Binding resource that is being created. + Binding binding = 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. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for updating a Binding +message UpdateBindingRequest { + // Required. The Binding resource that is being updated. + Binding binding = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Field mask is used to specify the fields to be overwritten in the + // Binding resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields present in the request will be + // overwritten. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // 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. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for deleting a Binding +message DeleteBindingRequest { + // Required. The name of the Binding. + // Format: `projects/{project}/locations/{location}/bindings/{binding}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentregistry.googleapis.com/Binding" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/binding.proto b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/binding.proto new file mode 100644 index 000000000000..6a9ce81c3313 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/binding.proto @@ -0,0 +1,120 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// 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.agentregistry.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AgentRegistry.V1"; +option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb"; +option java_multiple_files = true; +option java_outer_classname = "BindingProto"; +option java_package = "com.google.cloud.agentregistry.v1"; +option php_namespace = "Google\\Cloud\\AgentRegistry\\V1"; +option ruby_package = "Google::Cloud::AgentRegistry::V1"; + +// Represents a user-defined Binding. +message Binding { + option (google.api.resource) = { + type: "agentregistry.googleapis.com/Binding" + pattern: "projects/{project}/locations/{location}/bindings/{binding}" + plural: "bindings" + singular: "binding" + }; + + // The source of the Binding. + message Source { + // The type of the source, currently only supports Agents. + // Potential future fields include 'tag', etc. + oneof source_type { + // The identifier of the source Agent. + // Format: + // + // * `urn:agent:{publisher}:{namespace}:{name}` + string identifier = 1; + } + } + + // The target of the Binding. + message Target { + // The type of the target, currently only supports an AgentRegistry + // Resource. + // Potential future fields include 'tag', etc. + oneof target_type { + // The identifier of the target Agent, MCP Server, or Endpoint. + // Format: + // + // * `urn:agent:{publisher}:{namespace}:{name}` + // * `urn:mcp:{publisher}:{namespace}:{name}` + // * `urn:endpoint:{publisher}:{namespace}:{name}` + string identifier = 1; + } + } + + // The AuthProvider of the Binding. + message AuthProviderBinding { + // Required. The resource name of the target AuthProvider. + // Format: + // + // * `projects/{project}/locations/{location}/authProviders/{auth_provider}` + string auth_provider = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of OAuth2 scopes of the AuthProvider. + repeated string scopes = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The continue URI of the AuthProvider. + // The URI is used to reauthenticate the user and finalize the managed OAuth + // flow. + string continue_uri = 3 [(google.api.field_behavior) = OPTIONAL]; + } + + // The configuration for the Binding. + oneof binding { + // The binding for AuthProvider. + AuthProviderBinding auth_provider_binding = 6; + } + + // Required. Identifier. The resource name of the Binding. + // Format: `projects/{project}/locations/{location}/bindings/{binding}`. + string name = 1 [ + (google.api.field_behavior) = IDENTIFIER, + (google.api.field_behavior) = REQUIRED + ]; + + // Optional. User-defined display name for the Binding. + // Can have a maximum length of `63` characters. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. User-defined description of a Binding. + // Can have a maximum length of `2048` characters. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The target Agent of the Binding. + Source source = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The target Agent Registry Resource of the Binding. + Target target = 5 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Timestamp when this binding was created. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this binding was last updated. + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/endpoint.proto b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/endpoint.proto new file mode 100644 index 000000000000..29978c2197e4 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/endpoint.proto @@ -0,0 +1,75 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// 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.agentregistry.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/agentregistry/v1/properties.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AgentRegistry.V1"; +option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb"; +option java_multiple_files = true; +option java_outer_classname = "EndpointProto"; +option java_package = "com.google.cloud.agentregistry.v1"; +option php_namespace = "Google\\Cloud\\AgentRegistry\\V1"; +option ruby_package = "Google::Cloud::AgentRegistry::V1"; + +// Represents an Endpoint. +message Endpoint { + option (google.api.resource) = { + type: "agentregistry.googleapis.com/Endpoint" + pattern: "projects/{project}/locations/{location}/endpoints/{endpoint}" + plural: "endpoints" + singular: "endpoint" + }; + + // Identifier. The resource name of the Endpoint. + // Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. A stable, globally unique identifier for Endpoint. + string endpoint_id = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Display name for the Endpoint. + string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Description of an Endpoint. + string description = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The connection details for the Endpoint. + repeated Interface interfaces = 4 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Create time. + google.protobuf.Timestamp create_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Update time. + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Attributes of the Endpoint. + // + // Valid values: + // + // * `agentregistry.googleapis.com/system/RuntimeReference`: + // {"uri": "//..."} - the URI of the underlying resource hosting the + // Endpoint, for example, the GKE Deployment. + map attributes = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/mcp_server.proto b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/mcp_server.proto new file mode 100644 index 000000000000..dfea8e01504d --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/mcp_server.proto @@ -0,0 +1,120 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// 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.agentregistry.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/agentregistry/v1/properties.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AgentRegistry.V1"; +option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb"; +option java_multiple_files = true; +option java_outer_classname = "McpServerProto"; +option java_package = "com.google.cloud.agentregistry.v1"; +option php_namespace = "Google\\Cloud\\AgentRegistry\\V1"; +option ruby_package = "Google::Cloud::AgentRegistry::V1"; + +// Represents an MCP (Model Context Protocol) Server. +message McpServer { + option (google.api.resource) = { + type: "agentregistry.googleapis.com/McpServer" + pattern: "projects/{project}/locations/{location}/mcpServers/{mcp_server}" + plural: "mcpServers" + singular: "mcpServer" + }; + + // Represents a single tool provided by an MCP Server. + message Tool { + // Annotations describing the characteristics and behavior of a tool or + // operation. + message Annotations { + // Output only. A human-readable title for the tool. + string title = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If true, the tool may perform destructive updates to its + // environment. If false, the tool performs only additive updates. NOTE: + // This property is meaningful only when `read_only_hint == false` + // Default: true + bool destructive_hint = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If true, calling the tool repeatedly with the same + // arguments will have no additional effect on its environment. NOTE: This + // property is meaningful only when `read_only_hint == false` Default: + // false + bool idempotent_hint = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If true, this tool may interact with an "open world" of + // external entities. If false, the tool's domain of interaction is + // closed. For example, the world of a web search tool is open, whereas + // that of a memory tool is not. Default: true + bool open_world_hint = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If true, the tool does not modify its environment. + // Default: false + bool read_only_hint = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Output only. Human-readable name of the tool. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Description of what the tool does. + string description = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Annotations associated with the tool. + Annotations annotations = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // Identifier. The resource name of the MCP Server. + // Format: `projects/{project}/locations/{location}/mcpServers/{mcp_server}`. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. A stable, globally unique identifier for MCP Servers. + string mcp_server_id = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The display name of the MCP Server. + string display_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The description of the MCP Server. + string description = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The connection details for the MCP Server. + repeated Interface interfaces = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Tools provided by the MCP Server. + repeated Tool tools = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Create time. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Update time. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Attributes of the MCP Server. + // Valid values: + // + // * `agentregistry.googleapis.com/system/RuntimeIdentity`: {"principal": + // "principal://..."} - the runtime identity associated with the MCP Server. + // * `agentregistry.googleapis.com/system/RuntimeReference`: {"uri": "//..."} + // - the URI of the underlying resource hosting the MCP Server, for + // example, the GKE Deployment. + map attributes = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/properties.proto b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/properties.proto new file mode 100644 index 000000000000..86a0f1c10467 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/properties.proto @@ -0,0 +1,51 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// 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.agentregistry.v1; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.AgentRegistry.V1"; +option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb"; +option java_multiple_files = true; +option java_outer_classname = "PropertiesProto"; +option java_package = "com.google.cloud.agentregistry.v1"; +option php_namespace = "Google\\Cloud\\AgentRegistry\\V1"; +option ruby_package = "Google::Cloud::AgentRegistry::V1"; + +// Represents the connection details for an Agent or MCP Server. +message Interface { + // The protocol binding of the interface. + enum ProtocolBinding { + // Unspecified transport protocol. + PROTOCOL_BINDING_UNSPECIFIED = 0; + + // JSON-RPC specification. + JSONRPC = 1; + + // gRPC specification. + GRPC = 2; + + // HTTP+JSON specification. + HTTP_JSON = 3; + } + + // Required. The destination URL. + string url = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The protocol binding of the interface. + ProtocolBinding protocol_binding = 2 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/service.proto b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/service.proto new file mode 100644 index 000000000000..174bd716cda9 --- /dev/null +++ b/java-agentregistry/proto-google-cloud-agentregistry-v1/src/main/proto/google/cloud/agentregistry/v1/service.proto @@ -0,0 +1,154 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.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.agentregistry.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/agentregistry/v1/properties.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AgentRegistry.V1"; +option go_package = "cloud.google.com/go/agentregistry/apiv1/agentregistrypb;agentregistrypb"; +option java_multiple_files = true; +option java_outer_classname = "ServiceProto"; +option java_package = "com.google.cloud.agentregistry.v1"; +option php_namespace = "Google\\Cloud\\AgentRegistry\\V1"; +option ruby_package = "Google::Cloud::AgentRegistry::V1"; + +// Represents a user-defined Service. +message Service { + option (google.api.resource) = { + type: "agentregistry.googleapis.com/Service" + pattern: "projects/{project}/locations/{location}/services/{service}" + plural: "services" + singular: "service" + }; + + // The spec of the agent. + message AgentSpec { + // The type of the agent spec. + enum Type { + // Unspecified type. + TYPE_UNSPECIFIED = 0; + + // There is no spec for the Agent. The `content` field must be empty. + NO_SPEC = 1; + + // The content is an A2A Agent Card following the A2A specification. + // The `interfaces` field must be empty. + A2A_AGENT_CARD = 2; + } + + // Required. The type of the agent spec content. + Type type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The content of the Agent spec in the JSON format. + // This payload is validated against the schema for the specified type. + // The content size is limited to `10KB`. + google.protobuf.Struct content = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // The spec of the MCP Server. + message McpServerSpec { + // The type of the MCP Server spec. + enum Type { + // Unspecified type. + TYPE_UNSPECIFIED = 0; + + // There is no spec for the MCP Server. The `content` field must be empty. + NO_SPEC = 1; + + // The content is a MCP Tool Spec following the One MCP specification. + // The payload is the same as the `tools/list` response. + TOOL_SPEC = 2; + } + + // Required. The type of the MCP Server spec content. + Type type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The content of the MCP Server spec. + // This payload is validated against the schema for the specified type. + // The content size is limited to `10KB`. + google.protobuf.Struct content = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // The spec of the endpoint. + message EndpointSpec { + // The type of the endpoint spec. + enum Type { + // Unspecified type. + TYPE_UNSPECIFIED = 0; + + // There is no spec for the Endpoint. The `content` field must be empty. + NO_SPEC = 1; + } + + // Required. The type of the endpoint spec content. + Type type = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The content of the endpoint spec. + // Reserved for future use. + google.protobuf.Struct content = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // The spec of the service. At least one of the specs must be set. + oneof spec { + // Optional. The spec of the Agent. When `agent_spec` is set, the type of + // the service is Agent. + AgentSpec agent_spec = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the + // type of the service is MCP Server. + McpServerSpec mcp_server_spec = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type + // of the service is Endpoint. + EndpointSpec endpoint_spec = 7 [(google.api.field_behavior) = OPTIONAL]; + } + + // Identifier. The resource name of the Service. + // Format: `projects/{project}/locations/{location}/services/{service}`. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. User-defined display name for the Service. + // Can have a maximum length of `63` characters. + string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. User-defined description of an Service. + // Can have a maximum length of `2048` characters. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The connection details for the Service. + repeated Interface interfaces = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The resource name of the resulting Agent, MCP Server, or + // Endpoint. Format: + // + // * `projects/{project}/locations/{location}/mcpServers/{mcp_server}` + // * `projects/{project}/locations/{location}/agents/{agent}` + // * `projects/{project}/locations/{location}/endpoints/{endpoint}` + string registry_resource = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Create time. + google.protobuf.Timestamp create_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Update time. + google.protobuf.Timestamp update_time = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/create/SyncCreateSetCredentialsProvider.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..d1863fe5b94a --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AgentRegistrySettings; +import com.google.cloud.agentregistry.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AgentRegistrySettings agentRegistrySettings = + AgentRegistrySettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AgentRegistryClient agentRegistryClient = AgentRegistryClient.create(agentRegistrySettings); + } +} +// [END agentregistry_v1_generated_AgentRegistry_Create_SetCredentialsProvider_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/create/SyncCreateSetEndpoint.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..959bd5e924a7 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/create/SyncCreateSetEndpoint.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_Create_SetEndpoint_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AgentRegistrySettings; +import com.google.cloud.agentregistry.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AgentRegistrySettings agentRegistrySettings = + AgentRegistrySettings.newBuilder().setEndpoint(myEndpoint).build(); + AgentRegistryClient agentRegistryClient = AgentRegistryClient.create(agentRegistrySettings); + } +} +// [END agentregistry_v1_generated_AgentRegistry_Create_SetEndpoint_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/create/SyncCreateUseHttpJsonTransport.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..f18c7fed4568 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,40 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_Create_UseHttpJsonTransport_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.AgentRegistrySettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AgentRegistrySettings agentRegistrySettings = + AgentRegistrySettings.newHttpJsonBuilder().build(); + AgentRegistryClient agentRegistryClient = AgentRegistryClient.create(agentRegistrySettings); + } +} +// [END agentregistry_v1_generated_AgentRegistry_Create_UseHttpJsonTransport_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/AsyncCreateBinding.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/AsyncCreateBinding.java new file mode 100644 index 000000000000..8819a0d8d2b8 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/AsyncCreateBinding.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.CreateBindingRequest; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncCreateBinding { + + public static void main(String[] args) throws Exception { + asyncCreateBinding(); + } + + public static void asyncCreateBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + CreateBindingRequest request = + CreateBindingRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBindingId("bindingId-920966528") + .setBinding(Binding.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = agentRegistryClient.createBindingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateBinding_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/AsyncCreateBindingLRO.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/AsyncCreateBindingLRO.java new file mode 100644 index 000000000000..8b98a5d2eb05 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/AsyncCreateBindingLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.CreateBindingRequest; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.OperationMetadata; + +public class AsyncCreateBindingLRO { + + public static void main(String[] args) throws Exception { + asyncCreateBindingLRO(); + } + + public static void asyncCreateBindingLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + CreateBindingRequest request = + CreateBindingRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBindingId("bindingId-920966528") + .setBinding(Binding.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + agentRegistryClient.createBindingOperationCallable().futureCall(request); + // Do something. + Binding response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateBinding_LRO_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/SyncCreateBinding.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/SyncCreateBinding.java new file mode 100644 index 000000000000..5367c4a723bc --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/SyncCreateBinding.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateBinding_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.CreateBindingRequest; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncCreateBinding { + + public static void main(String[] args) throws Exception { + syncCreateBinding(); + } + + public static void syncCreateBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + CreateBindingRequest request = + CreateBindingRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setBindingId("bindingId-920966528") + .setBinding(Binding.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Binding response = agentRegistryClient.createBindingAsync(request).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateBinding_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/SyncCreateBindingLocationnameBindingString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/SyncCreateBindingLocationnameBindingString.java new file mode 100644 index 000000000000..5499b68695e6 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/SyncCreateBindingLocationnameBindingString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateBinding_LocationnameBindingString_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncCreateBindingLocationnameBindingString { + + public static void main(String[] args) throws Exception { + syncCreateBindingLocationnameBindingString(); + } + + public static void syncCreateBindingLocationnameBindingString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Binding binding = Binding.newBuilder().build(); + String bindingId = "bindingId-920966528"; + Binding response = agentRegistryClient.createBindingAsync(parent, binding, bindingId).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateBinding_LocationnameBindingString_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/SyncCreateBindingStringBindingString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/SyncCreateBindingStringBindingString.java new file mode 100644 index 000000000000..21af0c629672 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createbinding/SyncCreateBindingStringBindingString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateBinding_StringBindingString_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncCreateBindingStringBindingString { + + public static void main(String[] args) throws Exception { + syncCreateBindingStringBindingString(); + } + + public static void syncCreateBindingStringBindingString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Binding binding = Binding.newBuilder().build(); + String bindingId = "bindingId-920966528"; + Binding response = agentRegistryClient.createBindingAsync(parent, binding, bindingId).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateBinding_StringBindingString_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/AsyncCreateService.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/AsyncCreateService.java new file mode 100644 index 000000000000..aa9d49504674 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/AsyncCreateService.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateService_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.CreateServiceRequest; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Service; +import com.google.longrunning.Operation; + +public class AsyncCreateService { + + public static void main(String[] args) throws Exception { + asyncCreateService(); + } + + public static void asyncCreateService() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + CreateServiceRequest request = + CreateServiceRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setServiceId("serviceId-194185552") + .setService(Service.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = agentRegistryClient.createServiceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateService_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/AsyncCreateServiceLRO.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/AsyncCreateServiceLRO.java new file mode 100644 index 000000000000..e7f82f9ac1c8 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/AsyncCreateServiceLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateService_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.CreateServiceRequest; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.OperationMetadata; +import com.google.cloud.agentregistry.v1.Service; + +public class AsyncCreateServiceLRO { + + public static void main(String[] args) throws Exception { + asyncCreateServiceLRO(); + } + + public static void asyncCreateServiceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + CreateServiceRequest request = + CreateServiceRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setServiceId("serviceId-194185552") + .setService(Service.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + agentRegistryClient.createServiceOperationCallable().futureCall(request); + // Do something. + Service response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateService_LRO_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/SyncCreateService.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/SyncCreateService.java new file mode 100644 index 000000000000..c57b0c70626d --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/SyncCreateService.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateService_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.CreateServiceRequest; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Service; + +public class SyncCreateService { + + public static void main(String[] args) throws Exception { + syncCreateService(); + } + + public static void syncCreateService() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + CreateServiceRequest request = + CreateServiceRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setServiceId("serviceId-194185552") + .setService(Service.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Service response = agentRegistryClient.createServiceAsync(request).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateService_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/SyncCreateServiceLocationnameServiceString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/SyncCreateServiceLocationnameServiceString.java new file mode 100644 index 000000000000..914dc403a1c7 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/SyncCreateServiceLocationnameServiceString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateService_LocationnameServiceString_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Service; + +public class SyncCreateServiceLocationnameServiceString { + + public static void main(String[] args) throws Exception { + syncCreateServiceLocationnameServiceString(); + } + + public static void syncCreateServiceLocationnameServiceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Service service = Service.newBuilder().build(); + String serviceId = "serviceId-194185552"; + Service response = agentRegistryClient.createServiceAsync(parent, service, serviceId).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateService_LocationnameServiceString_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/SyncCreateServiceStringServiceString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/SyncCreateServiceStringServiceString.java new file mode 100644 index 000000000000..99a0a5a06a4e --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/createservice/SyncCreateServiceStringServiceString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_CreateService_StringServiceString_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Service; + +public class SyncCreateServiceStringServiceString { + + public static void main(String[] args) throws Exception { + syncCreateServiceStringServiceString(); + } + + public static void syncCreateServiceStringServiceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + Service service = Service.newBuilder().build(); + String serviceId = "serviceId-194185552"; + Service response = agentRegistryClient.createServiceAsync(parent, service, serviceId).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_CreateService_StringServiceString_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/AsyncDeleteBinding.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/AsyncDeleteBinding.java new file mode 100644 index 000000000000..9724f4d01a1f --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/AsyncDeleteBinding.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.BindingName; +import com.google.cloud.agentregistry.v1.DeleteBindingRequest; +import com.google.longrunning.Operation; + +public class AsyncDeleteBinding { + + public static void main(String[] args) throws Exception { + asyncDeleteBinding(); + } + + public static void asyncDeleteBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + DeleteBindingRequest request = + DeleteBindingRequest.newBuilder() + .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = agentRegistryClient.deleteBindingCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteBinding_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/AsyncDeleteBindingLRO.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/AsyncDeleteBindingLRO.java new file mode 100644 index 000000000000..60ca12e8ff8d --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/AsyncDeleteBindingLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.BindingName; +import com.google.cloud.agentregistry.v1.DeleteBindingRequest; +import com.google.cloud.agentregistry.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteBindingLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteBindingLRO(); + } + + public static void asyncDeleteBindingLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + DeleteBindingRequest request = + DeleteBindingRequest.newBuilder() + .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + agentRegistryClient.deleteBindingOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteBinding_LRO_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/SyncDeleteBinding.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/SyncDeleteBinding.java new file mode 100644 index 000000000000..a5f87bd7166d --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/SyncDeleteBinding.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteBinding_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.BindingName; +import com.google.cloud.agentregistry.v1.DeleteBindingRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteBinding { + + public static void main(String[] args) throws Exception { + syncDeleteBinding(); + } + + public static void syncDeleteBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + DeleteBindingRequest request = + DeleteBindingRequest.newBuilder() + .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString()) + .setRequestId("requestId693933066") + .build(); + agentRegistryClient.deleteBindingAsync(request).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteBinding_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/SyncDeleteBindingBindingname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/SyncDeleteBindingBindingname.java new file mode 100644 index 000000000000..b1ba73f80dd0 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/SyncDeleteBindingBindingname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteBinding_Bindingname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.BindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteBindingBindingname { + + public static void main(String[] args) throws Exception { + syncDeleteBindingBindingname(); + } + + public static void syncDeleteBindingBindingname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + BindingName name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]"); + agentRegistryClient.deleteBindingAsync(name).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteBinding_Bindingname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/SyncDeleteBindingString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/SyncDeleteBindingString.java new file mode 100644 index 000000000000..2ecfa70993e5 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deletebinding/SyncDeleteBindingString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteBinding_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.BindingName; +import com.google.protobuf.Empty; + +public class SyncDeleteBindingString { + + public static void main(String[] args) throws Exception { + syncDeleteBindingString(); + } + + public static void syncDeleteBindingString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString(); + agentRegistryClient.deleteBindingAsync(name).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteBinding_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/AsyncDeleteService.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/AsyncDeleteService.java new file mode 100644 index 000000000000..9dd67321473e --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/AsyncDeleteService.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteService_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.DeleteServiceRequest; +import com.google.cloud.agentregistry.v1.ServiceName; +import com.google.longrunning.Operation; + +public class AsyncDeleteService { + + public static void main(String[] args) throws Exception { + asyncDeleteService(); + } + + public static void asyncDeleteService() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + DeleteServiceRequest request = + DeleteServiceRequest.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = agentRegistryClient.deleteServiceCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteService_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/AsyncDeleteServiceLRO.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/AsyncDeleteServiceLRO.java new file mode 100644 index 000000000000..2a8f222ef03e --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/AsyncDeleteServiceLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteService_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.DeleteServiceRequest; +import com.google.cloud.agentregistry.v1.OperationMetadata; +import com.google.cloud.agentregistry.v1.ServiceName; +import com.google.protobuf.Empty; + +public class AsyncDeleteServiceLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteServiceLRO(); + } + + public static void asyncDeleteServiceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + DeleteServiceRequest request = + DeleteServiceRequest.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + agentRegistryClient.deleteServiceOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteService_LRO_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/SyncDeleteService.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/SyncDeleteService.java new file mode 100644 index 000000000000..fe0c996909eb --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/SyncDeleteService.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteService_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.DeleteServiceRequest; +import com.google.cloud.agentregistry.v1.ServiceName; +import com.google.protobuf.Empty; + +public class SyncDeleteService { + + public static void main(String[] args) throws Exception { + syncDeleteService(); + } + + public static void syncDeleteService() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + DeleteServiceRequest request = + DeleteServiceRequest.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .setRequestId("requestId693933066") + .build(); + agentRegistryClient.deleteServiceAsync(request).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteService_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/SyncDeleteServiceServicename.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/SyncDeleteServiceServicename.java new file mode 100644 index 000000000000..3b5cfd2d296a --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/SyncDeleteServiceServicename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteService_Servicename_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ServiceName; +import com.google.protobuf.Empty; + +public class SyncDeleteServiceServicename { + + public static void main(String[] args) throws Exception { + syncDeleteServiceServicename(); + } + + public static void syncDeleteServiceServicename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + agentRegistryClient.deleteServiceAsync(name).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteService_Servicename_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/SyncDeleteServiceString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/SyncDeleteServiceString.java new file mode 100644 index 000000000000..7850728cfeb0 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/deleteservice/SyncDeleteServiceString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_DeleteService_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ServiceName; +import com.google.protobuf.Empty; + +public class SyncDeleteServiceString { + + public static void main(String[] args) throws Exception { + syncDeleteServiceString(); + } + + public static void syncDeleteServiceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString(); + agentRegistryClient.deleteServiceAsync(name).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_DeleteService_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/AsyncFetchAvailableBindings.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/AsyncFetchAvailableBindings.java new file mode 100644 index 000000000000..2acaad54e34b --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/AsyncFetchAvailableBindings.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_FetchAvailableBindings_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest; +import com.google.cloud.agentregistry.v1.LocationName; + +public class AsyncFetchAvailableBindings { + + public static void main(String[] args) throws Exception { + asyncFetchAvailableBindings(); + } + + public static void asyncFetchAvailableBindings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + FetchAvailableBindingsRequest request = + FetchAvailableBindingsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + agentRegistryClient.fetchAvailableBindingsPagedCallable().futureCall(request); + // Do something. + for (Binding element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_FetchAvailableBindings_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/AsyncFetchAvailableBindingsPaged.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/AsyncFetchAvailableBindingsPaged.java new file mode 100644 index 000000000000..52b7eec59fd4 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/AsyncFetchAvailableBindingsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_FetchAvailableBindings_Paged_async] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest; +import com.google.cloud.agentregistry.v1.FetchAvailableBindingsResponse; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncFetchAvailableBindingsPaged { + + public static void main(String[] args) throws Exception { + asyncFetchAvailableBindingsPaged(); + } + + public static void asyncFetchAvailableBindingsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + FetchAvailableBindingsRequest request = + FetchAvailableBindingsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + FetchAvailableBindingsResponse response = + agentRegistryClient.fetchAvailableBindingsCallable().call(request); + for (Binding element : response.getBindingsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_FetchAvailableBindings_Paged_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/SyncFetchAvailableBindings.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/SyncFetchAvailableBindings.java new file mode 100644 index 000000000000..9136a9683d2a --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/SyncFetchAvailableBindings.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_FetchAvailableBindings_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.FetchAvailableBindingsRequest; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncFetchAvailableBindings { + + public static void main(String[] args) throws Exception { + syncFetchAvailableBindings(); + } + + public static void syncFetchAvailableBindings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + FetchAvailableBindingsRequest request = + FetchAvailableBindingsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Binding element : agentRegistryClient.fetchAvailableBindings(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_FetchAvailableBindings_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/SyncFetchAvailableBindingsLocationname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/SyncFetchAvailableBindingsLocationname.java new file mode 100644 index 000000000000..b967eb170deb --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/SyncFetchAvailableBindingsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_FetchAvailableBindings_Locationname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncFetchAvailableBindingsLocationname { + + public static void main(String[] args) throws Exception { + syncFetchAvailableBindingsLocationname(); + } + + public static void syncFetchAvailableBindingsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Binding element : agentRegistryClient.fetchAvailableBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_FetchAvailableBindings_Locationname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/SyncFetchAvailableBindingsString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/SyncFetchAvailableBindingsString.java new file mode 100644 index 000000000000..f4e94b88a709 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/fetchavailablebindings/SyncFetchAvailableBindingsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_FetchAvailableBindings_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncFetchAvailableBindingsString { + + public static void main(String[] args) throws Exception { + syncFetchAvailableBindingsString(); + } + + public static void syncFetchAvailableBindingsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Binding element : agentRegistryClient.fetchAvailableBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_FetchAvailableBindings_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/AsyncGetAgent.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/AsyncGetAgent.java new file mode 100644 index 000000000000..88caa0037e99 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/AsyncGetAgent.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAgent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentName; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.GetAgentRequest; + +public class AsyncGetAgent { + + public static void main(String[] args) throws Exception { + asyncGetAgent(); + } + + public static void asyncGetAgent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetAgentRequest request = + GetAgentRequest.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + .build(); + ApiFuture future = agentRegistryClient.getAgentCallable().futureCall(request); + // Do something. + Agent response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAgent_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgent.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgent.java new file mode 100644 index 000000000000..267631db37e2 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgent.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAgent_sync] +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentName; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.GetAgentRequest; + +public class SyncGetAgent { + + public static void main(String[] args) throws Exception { + syncGetAgent(); + } + + public static void syncGetAgent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetAgentRequest request = + GetAgentRequest.newBuilder() + .setName(AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString()) + .build(); + Agent response = agentRegistryClient.getAgent(request); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAgent_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgentAgentname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgentAgentname.java new file mode 100644 index 000000000000..dba3768b48b3 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgentAgentname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAgent_Agentname_sync] +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentName; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; + +public class SyncGetAgentAgentname { + + public static void main(String[] args) throws Exception { + syncGetAgentAgentname(); + } + + public static void syncGetAgentAgentname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + AgentName name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]"); + Agent response = agentRegistryClient.getAgent(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAgent_Agentname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgentString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgentString.java new file mode 100644 index 000000000000..902097b3f001 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getagent/SyncGetAgentString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetAgent_String_sync] +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentName; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; + +public class SyncGetAgentString { + + public static void main(String[] args) throws Exception { + syncGetAgentString(); + } + + public static void syncGetAgentString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String name = AgentName.of("[PROJECT]", "[LOCATION]", "[AGENT]").toString(); + Agent response = agentRegistryClient.getAgent(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetAgent_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getbinding/AsyncGetBinding.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getbinding/AsyncGetBinding.java new file mode 100644 index 000000000000..df300a7c54c5 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getbinding/AsyncGetBinding.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.BindingName; +import com.google.cloud.agentregistry.v1.GetBindingRequest; + +public class AsyncGetBinding { + + public static void main(String[] args) throws Exception { + asyncGetBinding(); + } + + public static void asyncGetBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetBindingRequest request = + GetBindingRequest.newBuilder() + .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString()) + .build(); + ApiFuture future = agentRegistryClient.getBindingCallable().futureCall(request); + // Do something. + Binding response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetBinding_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getbinding/SyncGetBinding.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getbinding/SyncGetBinding.java new file mode 100644 index 000000000000..d350443d00e3 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getbinding/SyncGetBinding.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetBinding_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.BindingName; +import com.google.cloud.agentregistry.v1.GetBindingRequest; + +public class SyncGetBinding { + + public static void main(String[] args) throws Exception { + syncGetBinding(); + } + + public static void syncGetBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetBindingRequest request = + GetBindingRequest.newBuilder() + .setName(BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString()) + .build(); + Binding response = agentRegistryClient.getBinding(request); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetBinding_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getbinding/SyncGetBindingBindingname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getbinding/SyncGetBindingBindingname.java new file mode 100644 index 000000000000..9699478f7f22 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getbinding/SyncGetBindingBindingname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetBinding_Bindingname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.BindingName; + +public class SyncGetBindingBindingname { + + public static void main(String[] args) throws Exception { + syncGetBindingBindingname(); + } + + public static void syncGetBindingBindingname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + BindingName name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]"); + Binding response = agentRegistryClient.getBinding(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetBinding_Bindingname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getbinding/SyncGetBindingString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getbinding/SyncGetBindingString.java new file mode 100644 index 000000000000..b28f73f4020d --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getbinding/SyncGetBindingString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetBinding_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.BindingName; + +public class SyncGetBindingString { + + public static void main(String[] args) throws Exception { + syncGetBindingString(); + } + + public static void syncGetBindingString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String name = BindingName.of("[PROJECT]", "[LOCATION]", "[BINDING]").toString(); + Binding response = agentRegistryClient.getBinding(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetBinding_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/AsyncGetEndpoint.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/AsyncGetEndpoint.java new file mode 100644 index 000000000000..b1cf8ea3e343 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/AsyncGetEndpoint.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetEndpoint_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.EndpointName; +import com.google.cloud.agentregistry.v1.GetEndpointRequest; + +public class AsyncGetEndpoint { + + public static void main(String[] args) throws Exception { + asyncGetEndpoint(); + } + + public static void asyncGetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetEndpointRequest request = + GetEndpointRequest.newBuilder() + .setName(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) + .build(); + ApiFuture future = agentRegistryClient.getEndpointCallable().futureCall(request); + // Do something. + Endpoint response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetEndpoint_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpoint.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpoint.java new file mode 100644 index 000000000000..79d634d3bb16 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpoint.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetEndpoint_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.EndpointName; +import com.google.cloud.agentregistry.v1.GetEndpointRequest; + +public class SyncGetEndpoint { + + public static void main(String[] args) throws Exception { + syncGetEndpoint(); + } + + public static void syncGetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetEndpointRequest request = + GetEndpointRequest.newBuilder() + .setName(EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString()) + .build(); + Endpoint response = agentRegistryClient.getEndpoint(request); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetEndpoint_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpointEndpointname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpointEndpointname.java new file mode 100644 index 000000000000..f4f4cbc4f314 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpointEndpointname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetEndpoint_Endpointname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.EndpointName; + +public class SyncGetEndpointEndpointname { + + public static void main(String[] args) throws Exception { + syncGetEndpointEndpointname(); + } + + public static void syncGetEndpointEndpointname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]"); + Endpoint response = agentRegistryClient.getEndpoint(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetEndpoint_Endpointname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpointString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpointString.java new file mode 100644 index 000000000000..a777c22d70a4 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getendpoint/SyncGetEndpointString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetEndpoint_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.EndpointName; + +public class SyncGetEndpointString { + + public static void main(String[] args) throws Exception { + syncGetEndpointString(); + } + + public static void syncGetEndpointString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String name = EndpointName.of("[PROJECT]", "[LOCATION]", "[ENDPOINT]").toString(); + Endpoint response = agentRegistryClient.getEndpoint(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetEndpoint_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getlocation/AsyncGetLocation.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..99c6b64a0393 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getlocation/AsyncGetLocation.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = agentRegistryClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetLocation_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getlocation/SyncGetLocation.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..f45cc61e062b --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetLocation_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = agentRegistryClient.getLocation(request); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetLocation_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/AsyncGetMcpServer.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/AsyncGetMcpServer.java new file mode 100644 index 000000000000..b5ab91038c25 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/AsyncGetMcpServer.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetMcpServer_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.GetMcpServerRequest; +import com.google.cloud.agentregistry.v1.McpServer; +import com.google.cloud.agentregistry.v1.McpServerName; + +public class AsyncGetMcpServer { + + public static void main(String[] args) throws Exception { + asyncGetMcpServer(); + } + + public static void asyncGetMcpServer() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetMcpServerRequest request = + GetMcpServerRequest.newBuilder() + .setName(McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString()) + .build(); + ApiFuture future = agentRegistryClient.getMcpServerCallable().futureCall(request); + // Do something. + McpServer response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetMcpServer_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServer.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServer.java new file mode 100644 index 000000000000..d897c88ec4a1 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServer.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetMcpServer_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.GetMcpServerRequest; +import com.google.cloud.agentregistry.v1.McpServer; +import com.google.cloud.agentregistry.v1.McpServerName; + +public class SyncGetMcpServer { + + public static void main(String[] args) throws Exception { + syncGetMcpServer(); + } + + public static void syncGetMcpServer() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetMcpServerRequest request = + GetMcpServerRequest.newBuilder() + .setName(McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString()) + .build(); + McpServer response = agentRegistryClient.getMcpServer(request); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetMcpServer_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServerMcpservername.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServerMcpservername.java new file mode 100644 index 000000000000..e46db4b0edcf --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServerMcpservername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetMcpServer_Mcpservername_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.McpServer; +import com.google.cloud.agentregistry.v1.McpServerName; + +public class SyncGetMcpServerMcpservername { + + public static void main(String[] args) throws Exception { + syncGetMcpServerMcpservername(); + } + + public static void syncGetMcpServerMcpservername() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + McpServerName name = McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]"); + McpServer response = agentRegistryClient.getMcpServer(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetMcpServer_Mcpservername_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServerString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServerString.java new file mode 100644 index 000000000000..6d127a111720 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getmcpserver/SyncGetMcpServerString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetMcpServer_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.McpServer; +import com.google.cloud.agentregistry.v1.McpServerName; + +public class SyncGetMcpServerString { + + public static void main(String[] args) throws Exception { + syncGetMcpServerString(); + } + + public static void syncGetMcpServerString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String name = McpServerName.of("[PROJECT]", "[LOCATION]", "[MCP_SERVER]").toString(); + McpServer response = agentRegistryClient.getMcpServer(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetMcpServer_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getservice/AsyncGetService.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getservice/AsyncGetService.java new file mode 100644 index 000000000000..40d1e9d5606c --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getservice/AsyncGetService.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetService_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.GetServiceRequest; +import com.google.cloud.agentregistry.v1.Service; +import com.google.cloud.agentregistry.v1.ServiceName; + +public class AsyncGetService { + + public static void main(String[] args) throws Exception { + asyncGetService(); + } + + public static void asyncGetService() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetServiceRequest request = + GetServiceRequest.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .build(); + ApiFuture future = agentRegistryClient.getServiceCallable().futureCall(request); + // Do something. + Service response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetService_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getservice/SyncGetService.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getservice/SyncGetService.java new file mode 100644 index 000000000000..eb93796bd1e2 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getservice/SyncGetService.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetService_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.GetServiceRequest; +import com.google.cloud.agentregistry.v1.Service; +import com.google.cloud.agentregistry.v1.ServiceName; + +public class SyncGetService { + + public static void main(String[] args) throws Exception { + syncGetService(); + } + + public static void syncGetService() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + GetServiceRequest request = + GetServiceRequest.newBuilder() + .setName(ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString()) + .build(); + Service response = agentRegistryClient.getService(request); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetService_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getservice/SyncGetServiceServicename.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getservice/SyncGetServiceServicename.java new file mode 100644 index 000000000000..52aea0779e71 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getservice/SyncGetServiceServicename.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetService_Servicename_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Service; +import com.google.cloud.agentregistry.v1.ServiceName; + +public class SyncGetServiceServicename { + + public static void main(String[] args) throws Exception { + syncGetServiceServicename(); + } + + public static void syncGetServiceServicename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]"); + Service response = agentRegistryClient.getService(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetService_Servicename_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getservice/SyncGetServiceString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getservice/SyncGetServiceString.java new file mode 100644 index 000000000000..f4beac332683 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/getservice/SyncGetServiceString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_GetService_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Service; +import com.google.cloud.agentregistry.v1.ServiceName; + +public class SyncGetServiceString { + + public static void main(String[] args) throws Exception { + syncGetServiceString(); + } + + public static void syncGetServiceString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[SERVICE]").toString(); + Service response = agentRegistryClient.getService(name); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_GetService_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/AsyncListAgents.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/AsyncListAgents.java new file mode 100644 index 000000000000..48eb5c84d014 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/AsyncListAgents.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAgents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ListAgentsRequest; +import com.google.cloud.agentregistry.v1.LocationName; + +public class AsyncListAgents { + + public static void main(String[] args) throws Exception { + asyncListAgents(); + } + + public static void asyncListAgents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListAgentsRequest request = + ListAgentsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = agentRegistryClient.listAgentsPagedCallable().futureCall(request); + // Do something. + for (Agent element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAgents_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/AsyncListAgentsPaged.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/AsyncListAgentsPaged.java new file mode 100644 index 000000000000..565f1eae14af --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/AsyncListAgentsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAgents_Paged_async] +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ListAgentsRequest; +import com.google.cloud.agentregistry.v1.ListAgentsResponse; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListAgentsPaged { + + public static void main(String[] args) throws Exception { + asyncListAgentsPaged(); + } + + public static void asyncListAgentsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListAgentsRequest request = + ListAgentsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListAgentsResponse response = agentRegistryClient.listAgentsCallable().call(request); + for (Agent element : response.getAgentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAgents_Paged_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/SyncListAgents.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/SyncListAgents.java new file mode 100644 index 000000000000..e7dd2c361ca5 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/SyncListAgents.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAgents_sync] +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ListAgentsRequest; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncListAgents { + + public static void main(String[] args) throws Exception { + syncListAgents(); + } + + public static void syncListAgents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListAgentsRequest request = + ListAgentsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Agent element : agentRegistryClient.listAgents(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAgents_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/SyncListAgentsLocationname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/SyncListAgentsLocationname.java new file mode 100644 index 000000000000..2e1ef5f39832 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/SyncListAgentsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAgents_Locationname_sync] +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncListAgentsLocationname { + + public static void main(String[] args) throws Exception { + syncListAgentsLocationname(); + } + + public static void syncListAgentsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Agent element : agentRegistryClient.listAgents(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAgents_Locationname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/SyncListAgentsString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/SyncListAgentsString.java new file mode 100644 index 000000000000..bcfbacb5b25a --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listagents/SyncListAgentsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListAgents_String_sync] +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncListAgentsString { + + public static void main(String[] args) throws Exception { + syncListAgentsString(); + } + + public static void syncListAgentsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Agent element : agentRegistryClient.listAgents(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListAgents_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/AsyncListBindings.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/AsyncListBindings.java new file mode 100644 index 000000000000..2ba0d3222a06 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/AsyncListBindings.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListBindings_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.ListBindingsRequest; +import com.google.cloud.agentregistry.v1.LocationName; + +public class AsyncListBindings { + + public static void main(String[] args) throws Exception { + asyncListBindings(); + } + + public static void asyncListBindings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListBindingsRequest request = + ListBindingsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + agentRegistryClient.listBindingsPagedCallable().futureCall(request); + // Do something. + for (Binding element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListBindings_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/AsyncListBindingsPaged.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/AsyncListBindingsPaged.java new file mode 100644 index 000000000000..d4162fc958a6 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/AsyncListBindingsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListBindings_Paged_async] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.ListBindingsRequest; +import com.google.cloud.agentregistry.v1.ListBindingsResponse; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListBindingsPaged { + + public static void main(String[] args) throws Exception { + asyncListBindingsPaged(); + } + + public static void asyncListBindingsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListBindingsRequest request = + ListBindingsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListBindingsResponse response = agentRegistryClient.listBindingsCallable().call(request); + for (Binding element : response.getBindingsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListBindings_Paged_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/SyncListBindings.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/SyncListBindings.java new file mode 100644 index 000000000000..e4239b9ed6fa --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/SyncListBindings.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListBindings_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.ListBindingsRequest; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncListBindings { + + public static void main(String[] args) throws Exception { + syncListBindings(); + } + + public static void syncListBindings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListBindingsRequest request = + ListBindingsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Binding element : agentRegistryClient.listBindings(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListBindings_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/SyncListBindingsLocationname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/SyncListBindingsLocationname.java new file mode 100644 index 000000000000..bf226d31bbcb --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/SyncListBindingsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListBindings_Locationname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncListBindingsLocationname { + + public static void main(String[] args) throws Exception { + syncListBindingsLocationname(); + } + + public static void syncListBindingsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Binding element : agentRegistryClient.listBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListBindings_Locationname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/SyncListBindingsString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/SyncListBindingsString.java new file mode 100644 index 000000000000..8f6da1301ec0 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listbindings/SyncListBindingsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListBindings_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncListBindingsString { + + public static void main(String[] args) throws Exception { + syncListBindingsString(); + } + + public static void syncListBindingsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Binding element : agentRegistryClient.listBindings(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListBindings_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/AsyncListEndpoints.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/AsyncListEndpoints.java new file mode 100644 index 000000000000..2927b2404a0b --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/AsyncListEndpoints.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListEndpoints_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.ListEndpointsRequest; +import com.google.cloud.agentregistry.v1.LocationName; + +public class AsyncListEndpoints { + + public static void main(String[] args) throws Exception { + asyncListEndpoints(); + } + + public static void asyncListEndpoints() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListEndpointsRequest request = + ListEndpointsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + agentRegistryClient.listEndpointsPagedCallable().futureCall(request); + // Do something. + for (Endpoint element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListEndpoints_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/AsyncListEndpointsPaged.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/AsyncListEndpointsPaged.java new file mode 100644 index 000000000000..4bbaa3dab9f2 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/AsyncListEndpointsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListEndpoints_Paged_async] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.ListEndpointsRequest; +import com.google.cloud.agentregistry.v1.ListEndpointsResponse; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListEndpointsPaged { + + public static void main(String[] args) throws Exception { + asyncListEndpointsPaged(); + } + + public static void asyncListEndpointsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListEndpointsRequest request = + ListEndpointsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListEndpointsResponse response = agentRegistryClient.listEndpointsCallable().call(request); + for (Endpoint element : response.getEndpointsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListEndpoints_Paged_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/SyncListEndpoints.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/SyncListEndpoints.java new file mode 100644 index 000000000000..039488c63ce8 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/SyncListEndpoints.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListEndpoints_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.ListEndpointsRequest; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncListEndpoints { + + public static void main(String[] args) throws Exception { + syncListEndpoints(); + } + + public static void syncListEndpoints() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListEndpointsRequest request = + ListEndpointsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (Endpoint element : agentRegistryClient.listEndpoints(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListEndpoints_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/SyncListEndpointsLocationname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/SyncListEndpointsLocationname.java new file mode 100644 index 000000000000..7c2345add784 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/SyncListEndpointsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListEndpoints_Locationname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncListEndpointsLocationname { + + public static void main(String[] args) throws Exception { + syncListEndpointsLocationname(); + } + + public static void syncListEndpointsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Endpoint element : agentRegistryClient.listEndpoints(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListEndpoints_Locationname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/SyncListEndpointsString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/SyncListEndpointsString.java new file mode 100644 index 000000000000..0b8cbbe25de7 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listendpoints/SyncListEndpointsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListEndpoints_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Endpoint; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncListEndpointsString { + + public static void main(String[] args) throws Exception { + syncListEndpointsString(); + } + + public static void syncListEndpointsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Endpoint element : agentRegistryClient.listEndpoints(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListEndpoints_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listlocations/AsyncListLocations.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..14e1c7e01c93 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + agentRegistryClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListLocations_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listlocations/AsyncListLocationsPaged.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..2b2ea96e7dfa --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListLocations_Paged_async] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = agentRegistryClient.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; + } + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListLocations_Paged_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listlocations/SyncListLocations.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..fc495f45e5a4 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListLocations_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : agentRegistryClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListLocations_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/AsyncListMcpServers.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/AsyncListMcpServers.java new file mode 100644 index 000000000000..89b455f62283 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/AsyncListMcpServers.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListMcpServers_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ListMcpServersRequest; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.McpServer; + +public class AsyncListMcpServers { + + public static void main(String[] args) throws Exception { + asyncListMcpServers(); + } + + public static void asyncListMcpServers() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListMcpServersRequest request = + ListMcpServersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + agentRegistryClient.listMcpServersPagedCallable().futureCall(request); + // Do something. + for (McpServer element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListMcpServers_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/AsyncListMcpServersPaged.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/AsyncListMcpServersPaged.java new file mode 100644 index 000000000000..b0de38724ba6 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/AsyncListMcpServersPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListMcpServers_Paged_async] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ListMcpServersRequest; +import com.google.cloud.agentregistry.v1.ListMcpServersResponse; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.McpServer; +import com.google.common.base.Strings; + +public class AsyncListMcpServersPaged { + + public static void main(String[] args) throws Exception { + asyncListMcpServersPaged(); + } + + public static void asyncListMcpServersPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListMcpServersRequest request = + ListMcpServersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListMcpServersResponse response = + agentRegistryClient.listMcpServersCallable().call(request); + for (McpServer element : response.getMcpServersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListMcpServers_Paged_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/SyncListMcpServers.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/SyncListMcpServers.java new file mode 100644 index 000000000000..a179c31978ca --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/SyncListMcpServers.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListMcpServers_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ListMcpServersRequest; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.McpServer; + +public class SyncListMcpServers { + + public static void main(String[] args) throws Exception { + syncListMcpServers(); + } + + public static void syncListMcpServers() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListMcpServersRequest request = + ListMcpServersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (McpServer element : agentRegistryClient.listMcpServers(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListMcpServers_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/SyncListMcpServersLocationname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/SyncListMcpServersLocationname.java new file mode 100644 index 000000000000..4a169aa41dc4 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/SyncListMcpServersLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListMcpServers_Locationname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.McpServer; + +public class SyncListMcpServersLocationname { + + public static void main(String[] args) throws Exception { + syncListMcpServersLocationname(); + } + + public static void syncListMcpServersLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (McpServer element : agentRegistryClient.listMcpServers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListMcpServers_Locationname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/SyncListMcpServersString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/SyncListMcpServersString.java new file mode 100644 index 000000000000..accc7a228be1 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listmcpservers/SyncListMcpServersString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListMcpServers_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.McpServer; + +public class SyncListMcpServersString { + + public static void main(String[] args) throws Exception { + syncListMcpServersString(); + } + + public static void syncListMcpServersString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (McpServer element : agentRegistryClient.listMcpServers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListMcpServers_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/AsyncListServices.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/AsyncListServices.java new file mode 100644 index 000000000000..ff65d921cd4e --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/AsyncListServices.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListServices_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ListServicesRequest; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Service; + +public class AsyncListServices { + + public static void main(String[] args) throws Exception { + asyncListServices(); + } + + public static void asyncListServices() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListServicesRequest request = + ListServicesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + agentRegistryClient.listServicesPagedCallable().futureCall(request); + // Do something. + for (Service element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListServices_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/AsyncListServicesPaged.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/AsyncListServicesPaged.java new file mode 100644 index 000000000000..6f5493df9385 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/AsyncListServicesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListServices_Paged_async] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ListServicesRequest; +import com.google.cloud.agentregistry.v1.ListServicesResponse; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Service; +import com.google.common.base.Strings; + +public class AsyncListServicesPaged { + + public static void main(String[] args) throws Exception { + asyncListServicesPaged(); + } + + public static void asyncListServicesPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListServicesRequest request = + ListServicesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListServicesResponse response = agentRegistryClient.listServicesCallable().call(request); + for (Service element : response.getServicesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListServices_Paged_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/SyncListServices.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/SyncListServices.java new file mode 100644 index 000000000000..8d060c418b66 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/SyncListServices.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListServices_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.ListServicesRequest; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Service; + +public class SyncListServices { + + public static void main(String[] args) throws Exception { + syncListServices(); + } + + public static void syncListServices() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + ListServicesRequest request = + ListServicesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (Service element : agentRegistryClient.listServices(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListServices_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/SyncListServicesLocationname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/SyncListServicesLocationname.java new file mode 100644 index 000000000000..43a7ea25b1c1 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/SyncListServicesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListServices_Locationname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Service; + +public class SyncListServicesLocationname { + + public static void main(String[] args) throws Exception { + syncListServicesLocationname(); + } + + public static void syncListServicesLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Service element : agentRegistryClient.listServices(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListServices_Locationname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/SyncListServicesString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/SyncListServicesString.java new file mode 100644 index 000000000000..8c3003b0e604 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/listservices/SyncListServicesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_ListServices_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.Service; + +public class SyncListServicesString { + + public static void main(String[] args) throws Exception { + syncListServicesString(); + } + + public static void syncListServicesString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Service element : agentRegistryClient.listServices(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_ListServices_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/AsyncSearchAgents.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/AsyncSearchAgents.java new file mode 100644 index 000000000000..e0d743daaac4 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/AsyncSearchAgents.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_SearchAgents_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.SearchAgentsRequest; + +public class AsyncSearchAgents { + + public static void main(String[] args) throws Exception { + asyncSearchAgents(); + } + + public static void asyncSearchAgents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + SearchAgentsRequest request = + SearchAgentsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSearchString("searchString120312793") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = agentRegistryClient.searchAgentsPagedCallable().futureCall(request); + // Do something. + for (Agent element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_SearchAgents_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/AsyncSearchAgentsPaged.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/AsyncSearchAgentsPaged.java new file mode 100644 index 000000000000..5e91fc35e486 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/AsyncSearchAgentsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_SearchAgents_Paged_async] +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.SearchAgentsRequest; +import com.google.cloud.agentregistry.v1.SearchAgentsResponse; +import com.google.common.base.Strings; + +public class AsyncSearchAgentsPaged { + + public static void main(String[] args) throws Exception { + asyncSearchAgentsPaged(); + } + + public static void asyncSearchAgentsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + SearchAgentsRequest request = + SearchAgentsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSearchString("searchString120312793") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + SearchAgentsResponse response = agentRegistryClient.searchAgentsCallable().call(request); + for (Agent element : response.getAgentsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_SearchAgents_Paged_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/SyncSearchAgents.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/SyncSearchAgents.java new file mode 100644 index 000000000000..7a34af5f8808 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/SyncSearchAgents.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_SearchAgents_sync] +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.SearchAgentsRequest; + +public class SyncSearchAgents { + + public static void main(String[] args) throws Exception { + syncSearchAgents(); + } + + public static void syncSearchAgents() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + SearchAgentsRequest request = + SearchAgentsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSearchString("searchString120312793") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Agent element : agentRegistryClient.searchAgents(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_SearchAgents_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/SyncSearchAgentsLocationname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/SyncSearchAgentsLocationname.java new file mode 100644 index 000000000000..444e8b60f60c --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/SyncSearchAgentsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_SearchAgents_Locationname_sync] +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncSearchAgentsLocationname { + + public static void main(String[] args) throws Exception { + syncSearchAgentsLocationname(); + } + + public static void syncSearchAgentsLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Agent element : agentRegistryClient.searchAgents(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_SearchAgents_Locationname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/SyncSearchAgentsString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/SyncSearchAgentsString.java new file mode 100644 index 000000000000..391b1280b77d --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchagents/SyncSearchAgentsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_SearchAgents_String_sync] +import com.google.cloud.agentregistry.v1.Agent; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; + +public class SyncSearchAgentsString { + + public static void main(String[] args) throws Exception { + syncSearchAgentsString(); + } + + public static void syncSearchAgentsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (Agent element : agentRegistryClient.searchAgents(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_SearchAgents_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/AsyncSearchMcpServers.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/AsyncSearchMcpServers.java new file mode 100644 index 000000000000..4d998f2a0e63 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/AsyncSearchMcpServers.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_SearchMcpServers_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.McpServer; +import com.google.cloud.agentregistry.v1.SearchMcpServersRequest; + +public class AsyncSearchMcpServers { + + public static void main(String[] args) throws Exception { + asyncSearchMcpServers(); + } + + public static void asyncSearchMcpServers() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + SearchMcpServersRequest request = + SearchMcpServersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSearchString("searchString120312793") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + agentRegistryClient.searchMcpServersPagedCallable().futureCall(request); + // Do something. + for (McpServer element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_SearchMcpServers_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/AsyncSearchMcpServersPaged.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/AsyncSearchMcpServersPaged.java new file mode 100644 index 000000000000..1b7eeb983aaa --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/AsyncSearchMcpServersPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_SearchMcpServers_Paged_async] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.McpServer; +import com.google.cloud.agentregistry.v1.SearchMcpServersRequest; +import com.google.cloud.agentregistry.v1.SearchMcpServersResponse; +import com.google.common.base.Strings; + +public class AsyncSearchMcpServersPaged { + + public static void main(String[] args) throws Exception { + asyncSearchMcpServersPaged(); + } + + public static void asyncSearchMcpServersPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + SearchMcpServersRequest request = + SearchMcpServersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSearchString("searchString120312793") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + SearchMcpServersResponse response = + agentRegistryClient.searchMcpServersCallable().call(request); + for (McpServer element : response.getMcpServersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_SearchMcpServers_Paged_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/SyncSearchMcpServers.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/SyncSearchMcpServers.java new file mode 100644 index 000000000000..f4f536f672b3 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/SyncSearchMcpServers.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_SearchMcpServers_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.McpServer; +import com.google.cloud.agentregistry.v1.SearchMcpServersRequest; + +public class SyncSearchMcpServers { + + public static void main(String[] args) throws Exception { + syncSearchMcpServers(); + } + + public static void syncSearchMcpServers() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + SearchMcpServersRequest request = + SearchMcpServersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setSearchString("searchString120312793") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (McpServer element : agentRegistryClient.searchMcpServers(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_SearchMcpServers_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/SyncSearchMcpServersLocationname.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/SyncSearchMcpServersLocationname.java new file mode 100644 index 000000000000..4d62e3083aa1 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/SyncSearchMcpServersLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_SearchMcpServers_Locationname_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.McpServer; + +public class SyncSearchMcpServersLocationname { + + public static void main(String[] args) throws Exception { + syncSearchMcpServersLocationname(); + } + + public static void syncSearchMcpServersLocationname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (McpServer element : agentRegistryClient.searchMcpServers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_SearchMcpServers_Locationname_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/SyncSearchMcpServersString.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/SyncSearchMcpServersString.java new file mode 100644 index 000000000000..527ce930e873 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/searchmcpservers/SyncSearchMcpServersString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_SearchMcpServers_String_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.LocationName; +import com.google.cloud.agentregistry.v1.McpServer; + +public class SyncSearchMcpServersString { + + public static void main(String[] args) throws Exception { + syncSearchMcpServersString(); + } + + public static void syncSearchMcpServersString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (McpServer element : agentRegistryClient.searchMcpServers(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_SearchMcpServers_String_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updatebinding/AsyncUpdateBinding.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updatebinding/AsyncUpdateBinding.java new file mode 100644 index 000000000000..f0e23ef035de --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updatebinding/AsyncUpdateBinding.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_UpdateBinding_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.UpdateBindingRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateBinding { + + public static void main(String[] args) throws Exception { + asyncUpdateBinding(); + } + + public static void asyncUpdateBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + UpdateBindingRequest request = + UpdateBindingRequest.newBuilder() + .setBinding(Binding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = agentRegistryClient.updateBindingCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_UpdateBinding_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updatebinding/AsyncUpdateBindingLRO.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updatebinding/AsyncUpdateBindingLRO.java new file mode 100644 index 000000000000..92a55f9f8f5c --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updatebinding/AsyncUpdateBindingLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_UpdateBinding_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.OperationMetadata; +import com.google.cloud.agentregistry.v1.UpdateBindingRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateBindingLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateBindingLRO(); + } + + public static void asyncUpdateBindingLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + UpdateBindingRequest request = + UpdateBindingRequest.newBuilder() + .setBinding(Binding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + agentRegistryClient.updateBindingOperationCallable().futureCall(request); + // Do something. + Binding response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_UpdateBinding_LRO_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updatebinding/SyncUpdateBinding.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updatebinding/SyncUpdateBinding.java new file mode 100644 index 000000000000..d32e071050d8 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updatebinding/SyncUpdateBinding.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_UpdateBinding_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.cloud.agentregistry.v1.UpdateBindingRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateBinding { + + public static void main(String[] args) throws Exception { + syncUpdateBinding(); + } + + public static void syncUpdateBinding() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + UpdateBindingRequest request = + UpdateBindingRequest.newBuilder() + .setBinding(Binding.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Binding response = agentRegistryClient.updateBindingAsync(request).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_UpdateBinding_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updatebinding/SyncUpdateBindingBindingFieldmask.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updatebinding/SyncUpdateBindingBindingFieldmask.java new file mode 100644 index 000000000000..339dff480b20 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updatebinding/SyncUpdateBindingBindingFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_UpdateBinding_BindingFieldmask_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Binding; +import com.google.protobuf.FieldMask; + +public class SyncUpdateBindingBindingFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateBindingBindingFieldmask(); + } + + public static void syncUpdateBindingBindingFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + Binding binding = Binding.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Binding response = agentRegistryClient.updateBindingAsync(binding, updateMask).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_UpdateBinding_BindingFieldmask_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateservice/AsyncUpdateService.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateservice/AsyncUpdateService.java new file mode 100644 index 000000000000..19aa3e9d4cea --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateservice/AsyncUpdateService.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_UpdateService_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Service; +import com.google.cloud.agentregistry.v1.UpdateServiceRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateService { + + public static void main(String[] args) throws Exception { + asyncUpdateService(); + } + + public static void asyncUpdateService() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + UpdateServiceRequest request = + UpdateServiceRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setService(Service.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = agentRegistryClient.updateServiceCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_UpdateService_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateservice/AsyncUpdateServiceLRO.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateservice/AsyncUpdateServiceLRO.java new file mode 100644 index 000000000000..a6647ab1047f --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateservice/AsyncUpdateServiceLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_UpdateService_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.OperationMetadata; +import com.google.cloud.agentregistry.v1.Service; +import com.google.cloud.agentregistry.v1.UpdateServiceRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateServiceLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateServiceLRO(); + } + + public static void asyncUpdateServiceLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + UpdateServiceRequest request = + UpdateServiceRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setService(Service.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + agentRegistryClient.updateServiceOperationCallable().futureCall(request); + // Do something. + Service response = future.get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_UpdateService_LRO_async] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateservice/SyncUpdateService.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateservice/SyncUpdateService.java new file mode 100644 index 000000000000..97784ff1b351 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateservice/SyncUpdateService.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_UpdateService_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Service; +import com.google.cloud.agentregistry.v1.UpdateServiceRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateService { + + public static void main(String[] args) throws Exception { + syncUpdateService(); + } + + public static void syncUpdateService() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + UpdateServiceRequest request = + UpdateServiceRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setService(Service.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + Service response = agentRegistryClient.updateServiceAsync(request).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_UpdateService_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateservice/SyncUpdateServiceServiceFieldmask.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateservice/SyncUpdateServiceServiceFieldmask.java new file mode 100644 index 000000000000..865b491a6d61 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistry/updateservice/SyncUpdateServiceServiceFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistry_UpdateService_ServiceFieldmask_sync] +import com.google.cloud.agentregistry.v1.AgentRegistryClient; +import com.google.cloud.agentregistry.v1.Service; +import com.google.protobuf.FieldMask; + +public class SyncUpdateServiceServiceFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateServiceServiceFieldmask(); + } + + public static void syncUpdateServiceServiceFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AgentRegistryClient agentRegistryClient = AgentRegistryClient.create()) { + Service service = Service.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Service response = agentRegistryClient.updateServiceAsync(service, updateMask).get(); + } + } +} +// [END agentregistry_v1_generated_AgentRegistry_UpdateService_ServiceFieldmask_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistrysettings/createservice/SyncCreateService.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistrysettings/createservice/SyncCreateService.java new file mode 100644 index 000000000000..c3bad267acd6 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistrysettings/createservice/SyncCreateService.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistrySettings_CreateService_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.agentregistry.v1.AgentRegistrySettings; +import java.time.Duration; + +public class SyncCreateService { + + public static void main(String[] args) throws Exception { + syncCreateService(); + } + + public static void syncCreateService() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AgentRegistrySettings.Builder agentRegistrySettingsBuilder = AgentRegistrySettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + agentRegistrySettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END agentregistry_v1_generated_AgentRegistrySettings_CreateService_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistrysettings/getagent/SyncGetAgent.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistrysettings/getagent/SyncGetAgent.java new file mode 100644 index 000000000000..ecd4af77cd3e --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/agentregistrysettings/getagent/SyncGetAgent.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.samples; + +// [START agentregistry_v1_generated_AgentRegistrySettings_GetAgent_sync] +import com.google.cloud.agentregistry.v1.AgentRegistrySettings; +import java.time.Duration; + +public class SyncGetAgent { + + public static void main(String[] args) throws Exception { + syncGetAgent(); + } + + public static void syncGetAgent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AgentRegistrySettings.Builder agentRegistrySettingsBuilder = AgentRegistrySettings.newBuilder(); + agentRegistrySettingsBuilder + .getAgentSettings() + .setRetrySettings( + agentRegistrySettingsBuilder + .getAgentSettings() + .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()); + AgentRegistrySettings agentRegistrySettings = agentRegistrySettingsBuilder.build(); + } +} +// [END agentregistry_v1_generated_AgentRegistrySettings_GetAgent_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/stub/agentregistrystubsettings/createservice/SyncCreateService.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/stub/agentregistrystubsettings/createservice/SyncCreateService.java new file mode 100644 index 000000000000..cd0fd343fa4c --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/stub/agentregistrystubsettings/createservice/SyncCreateService.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.stub.samples; + +// [START agentregistry_v1_generated_AgentRegistryStubSettings_CreateService_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.agentregistry.v1.stub.AgentRegistryStubSettings; +import java.time.Duration; + +public class SyncCreateService { + + public static void main(String[] args) throws Exception { + syncCreateService(); + } + + public static void syncCreateService() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AgentRegistryStubSettings.Builder agentRegistrySettingsBuilder = + AgentRegistryStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + agentRegistrySettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END agentregistry_v1_generated_AgentRegistryStubSettings_CreateService_sync] diff --git a/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/stub/agentregistrystubsettings/getagent/SyncGetAgent.java b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/stub/agentregistrystubsettings/getagent/SyncGetAgent.java new file mode 100644 index 000000000000..add643c90c06 --- /dev/null +++ b/java-agentregistry/samples/snippets/generated/com/google/cloud/agentregistry/v1/stub/agentregistrystubsettings/getagent/SyncGetAgent.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.agentregistry.v1.stub.samples; + +// [START agentregistry_v1_generated_AgentRegistryStubSettings_GetAgent_sync] +import com.google.cloud.agentregistry.v1.stub.AgentRegistryStubSettings; +import java.time.Duration; + +public class SyncGetAgent { + + public static void main(String[] args) throws Exception { + syncGetAgent(); + } + + public static void syncGetAgent() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + AgentRegistryStubSettings.Builder agentRegistrySettingsBuilder = + AgentRegistryStubSettings.newBuilder(); + agentRegistrySettingsBuilder + .getAgentSettings() + .setRetrySettings( + agentRegistrySettingsBuilder + .getAgentSettings() + .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()); + AgentRegistryStubSettings agentRegistrySettings = agentRegistrySettingsBuilder.build(); + } +} +// [END agentregistry_v1_generated_AgentRegistryStubSettings_GetAgent_sync] diff --git a/librarian.yaml b/librarian.yaml index 387b65ef2ee4..6de04e15fcdd 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -98,6 +98,13 @@ libraries: api_description_override: An API for accessing Advisory Notifications in Google Cloud. name_pretty_override: Advisory Notifications API product_documentation_override: https://cloud.google.com/advisory-notifications/ + - name: agentregistry + version: 0.1.0-SNAPSHOT + apis: + - path: google/cloud/agentregistry/v1 + java: + additional_protos: + - path: google/cloud/location/locations.proto - name: aiplatform version: 3.95.0-SNAPSHOT apis: diff --git a/pom.xml b/pom.xml index 35237a8eb2a4..418733084c36 100644 --- a/pom.xml +++ b/pom.xml @@ -20,6 +20,7 @@ java-accesscontextmanager java-admanager java-advisorynotifications + java-agentregistry java-aiplatform java-alloydb java-alloydb-connectors diff --git a/versions.txt b/versions.txt index 0134e3b1aeb0..65fea36e1238 100644 --- a/versions.txt +++ b/versions.txt @@ -1059,3 +1059,8 @@ google-cloud-developer-knowledge:0.1.0:0.2.0-SNAPSHOT proto-google-cloud-developer-knowledge-v1:0.1.0:0.2.0-SNAPSHOT grpc-google-cloud-developer-knowledge-v1:0.1.0:0.2.0-SNAPSHOT google-cloud-backstory:0.1.0:0.2.0-SNAPSHOT +proto-google-cloud-agentregistry-v1:0.0.0:0.1.0-SNAPSHOT +grpc-google-cloud-agentregistry-v1:0.0.0:0.1.0-SNAPSHOT +google-cloud-agentregistry:0.0.0:0.1.0-SNAPSHOT +google-cloud-agentregistry-bom:0.0.0:0.1.0-SNAPSHOT +google-cloud-agentregistry-parent:0.0.0:0.1.0-SNAPSHOT From 06d0cde944f76a2e54348430c5e189645054d35f Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Thu, 18 Jun 2026 12:10:15 -0400 Subject: [PATCH 35/82] chore: update googleapis commitish to db88feb (#13513) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated googleapis commitish in librarian.yaml and generation_config.yaml to https://github.com/googleapis/googleapis/commit/db88feb4756963c6aa9b5996a880cfe5572d0320 💡 **Note:** Please merge or close this PR so that the daily update workflow can continue to run successfully the next day. Alternatively, you can manually trigger the workflow once this PR is merged or closed. --- generation_config.yaml | 2 +- .../google/chat/v1/CreateMessageRequest.java | 14 +- .../v1/CreateMessageRequestOrBuilder.java | 4 +- .../java/com/google/chat/v1/MessageProto.java | 42 +- .../google/chat/v1/QuotedMessageMetadata.java | 47 +- .../main/proto/google/chat/v1/message.proto | 15 +- .../v1/ReferenceListServiceClient.java | 78 + .../v1/ReferenceListServiceSettings.java | 12 + .../v1/RuleExecutionErrorServiceClient.java | 498 +++++ .../v1/RuleExecutionErrorServiceSettings.java | 230 +++ .../cloud/chronicle/v1/RuleServiceClient.java | 143 ++ .../chronicle/v1/RuleServiceSettings.java | 11 + .../cloud/chronicle/v1/gapic_metadata.json | 18 + .../cloud/chronicle/v1/package-info.java | 23 + .../v1/stub/GrpcReferenceListServiceStub.java | 40 + ...eExecutionErrorServiceCallableFactory.java | 113 ++ .../GrpcRuleExecutionErrorServiceStub.java | 190 ++ .../v1/stub/GrpcRuleServiceStub.java | 35 + .../HttpJsonReferenceListServiceStub.java | 68 + ...eExecutionErrorServiceCallableFactory.java | 101 + ...HttpJsonRuleExecutionErrorServiceStub.java | 228 +++ .../v1/stub/HttpJsonRuleServiceStub.java | 62 + .../v1/stub/ReferenceListServiceStub.java | 7 + .../ReferenceListServiceStubSettings.java | 38 +- .../stub/RuleExecutionErrorServiceStub.java | 49 + ...RuleExecutionErrorServiceStubSettings.java | 457 +++++ .../chronicle/v1/stub/RuleServiceStub.java | 6 + .../v1/stub/RuleServiceStubSettings.java | 33 +- .../reflect-config.json | 144 ++ .../v1/MockReferenceListServiceImpl.java | 22 + .../v1/MockRuleExecutionErrorService.java | 59 + .../v1/MockRuleExecutionErrorServiceImpl.java | 83 + .../chronicle/v1/MockRuleServiceImpl.java | 21 + ...eferenceListServiceClientHttpJsonTest.java | 55 + .../v1/ReferenceListServiceClientTest.java | 51 + ...ecutionErrorServiceClientHttpJsonTest.java | 177 ++ .../RuleExecutionErrorServiceClientTest.java | 171 ++ .../v1/RuleServiceClientHttpJsonTest.java | 94 + .../chronicle/v1/RuleServiceClientTest.java | 84 + .../v1/ReferenceListServiceGrpc.java | 139 ++ .../v1/RuleExecutionErrorServiceGrpc.java | 445 ++++ .../cloud/chronicle/v1/RuleServiceGrpc.java | 149 +- .../v1/ListRuleExecutionErrorsRequest.java | 1277 ++++++++++++ ...stRuleExecutionErrorsRequestOrBuilder.java | 176 ++ .../v1/ListRuleExecutionErrorsResponse.java | 1158 +++++++++++ ...tRuleExecutionErrorsResponseOrBuilder.java | 113 ++ .../chronicle/v1/ReferenceListError.java | 697 +++++++ .../v1/ReferenceListErrorOrBuilder.java | 68 + .../chronicle/v1/ReferenceListProto.java | 227 ++- .../chronicle/v1/RuleExecutionError.java | 1803 +++++++++++++++++ .../chronicle/v1/RuleExecutionErrorName.java | 269 +++ .../v1/RuleExecutionErrorOrBuilder.java | 233 +++ .../chronicle/v1/RuleExecutionErrorProto.java | 166 ++ .../google/cloud/chronicle/v1/RuleProto.java | 190 +- .../v1/VerifyReferenceListRequest.java | 1392 +++++++++++++ .../VerifyReferenceListRequestOrBuilder.java | 163 ++ .../v1/VerifyReferenceListResponse.java | 1023 ++++++++++ .../VerifyReferenceListResponseOrBuilder.java | 97 + .../chronicle/v1/VerifyRuleTextRequest.java | 813 ++++++++ .../v1/VerifyRuleTextRequestOrBuilder.java | 88 + .../chronicle/v1/VerifyRuleTextResponse.java | 1088 ++++++++++ .../v1/VerifyRuleTextResponseOrBuilder.java | 109 + .../cloud/chronicle/v1/reference_list.proto | 54 +- .../google/cloud/chronicle/v1/rule.proto | 39 +- .../chronicle/v1/rule_execution_error.proto | 156 ++ .../AsyncVerifyReferenceList.java | 56 + .../SyncVerifyReferenceList.java | 53 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../AsyncListRuleExecutionErrors.java | 58 + .../AsyncListRuleExecutionErrorsPaged.java | 64 + .../SyncListRuleExecutionErrors.java | 53 + ...ncListRuleExecutionErrorsInstancename.java | 46 + .../SyncListRuleExecutionErrorsString.java | 46 + .../SyncListRuleExecutionErrors.java | 57 + .../verifyruletext/AsyncVerifyRuleText.java | 51 + .../verifyruletext/SyncVerifyRuleText.java | 47 + .../SyncVerifyRuleTextInstancenameString.java | 43 + .../SyncVerifyRuleTextStringString.java | 43 + .../SyncListRuleExecutionErrors.java | 57 + .../networkservices/v1/AgentGateway.java | 26 +- .../v1/AgentGatewayOrBuilder.java | 8 +- .../networkservices/v1/agent_gateway.proto | 2 +- librarian.yaml | 6 +- 85 files changed, 16253 insertions(+), 248 deletions(-) create mode 100644 java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceClient.java create mode 100644 java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceSettings.java create mode 100644 java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcRuleExecutionErrorServiceCallableFactory.java create mode 100644 java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcRuleExecutionErrorServiceStub.java create mode 100644 java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonRuleExecutionErrorServiceCallableFactory.java create mode 100644 java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonRuleExecutionErrorServiceStub.java create mode 100644 java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleExecutionErrorServiceStub.java create mode 100644 java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleExecutionErrorServiceStubSettings.java create mode 100644 java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockRuleExecutionErrorService.java create mode 100644 java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockRuleExecutionErrorServiceImpl.java create mode 100644 java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceClientHttpJsonTest.java create mode 100644 java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceClientTest.java create mode 100644 java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceGrpc.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListRuleExecutionErrorsRequest.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListRuleExecutionErrorsRequestOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListRuleExecutionErrorsResponse.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListRuleExecutionErrorsResponseOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListError.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListErrorOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionError.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorName.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorProto.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyReferenceListRequest.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyReferenceListRequestOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyReferenceListResponse.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyReferenceListResponseOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyRuleTextRequest.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyRuleTextRequestOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyRuleTextResponse.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyRuleTextResponseOrBuilder.java create mode 100644 java-chronicle/proto-google-cloud-chronicle-v1/src/main/proto/google/cloud/chronicle/v1/rule_execution_error.proto create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/referencelistservice/verifyreferencelist/AsyncVerifyReferenceList.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/referencelistservice/verifyreferencelist/SyncVerifyReferenceList.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/create/SyncCreateSetEndpoint.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/AsyncListRuleExecutionErrors.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/AsyncListRuleExecutionErrorsPaged.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/SyncListRuleExecutionErrors.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/SyncListRuleExecutionErrorsInstancename.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/SyncListRuleExecutionErrorsString.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservicesettings/listruleexecutionerrors/SyncListRuleExecutionErrors.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleservice/verifyruletext/AsyncVerifyRuleText.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleservice/verifyruletext/SyncVerifyRuleText.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleservice/verifyruletext/SyncVerifyRuleTextInstancenameString.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleservice/verifyruletext/SyncVerifyRuleTextStringString.java create mode 100644 java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/stub/ruleexecutionerrorservicestubsettings/listruleexecutionerrors/SyncListRuleExecutionErrors.java diff --git a/generation_config.yaml b/generation_config.yaml index e5add8939823..0436082edd91 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,4 +1,4 @@ -googleapis_commitish: 7af3f2c7b8927cffb548fd2cf09b04c6371437ee +googleapis_commitish: db88feb4756963c6aa9b5996a880cfe5572d0320 libraries_bom_version: 26.83.0 is_monorepo: true libraries: diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java index 02453f332248..1c2296ab5e68 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequest.java @@ -398,7 +398,7 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=617 + * google/chat/v1/message.proto;l=618 * @return The threadKey. */ @java.lang.Override @@ -432,7 +432,7 @@ public java.lang.String getThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=617 + * google/chat/v1/message.proto;l=618 * @return The bytes for threadKey. */ @java.lang.Override @@ -1543,7 +1543,7 @@ public com.google.chat.v1.MessageOrBuilder getMessageOrBuilder() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=617 + * google/chat/v1/message.proto;l=618 * @return The threadKey. */ @java.lang.Deprecated @@ -1576,7 +1576,7 @@ public java.lang.String getThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=617 + * google/chat/v1/message.proto;l=618 * @return The bytes for threadKey. */ @java.lang.Deprecated @@ -1609,7 +1609,7 @@ public com.google.protobuf.ByteString getThreadKeyBytes() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=617 + * google/chat/v1/message.proto;l=618 * @param value The threadKey to set. * @return This builder for chaining. */ @@ -1641,7 +1641,7 @@ public Builder setThreadKey(java.lang.String value) { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=617 + * google/chat/v1/message.proto;l=618 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1669,7 +1669,7 @@ public Builder clearThreadKey() { * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=617 + * google/chat/v1/message.proto;l=618 * @param value The bytes for threadKey to set. * @return This builder for chaining. */ diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java index c55c22a111de..9c7ff66eb7e2 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CreateMessageRequestOrBuilder.java @@ -114,7 +114,7 @@ public interface CreateMessageRequestOrBuilder * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=617 + * google/chat/v1/message.proto;l=618 * @return The threadKey. */ @java.lang.Deprecated @@ -137,7 +137,7 @@ public interface CreateMessageRequestOrBuilder * * * @deprecated google.chat.v1.CreateMessageRequest.thread_key is deprecated. See - * google/chat/v1/message.proto;l=617 + * google/chat/v1/message.proto;l=618 * @return The bytes for threadKey. */ @java.lang.Deprecated diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java index 420790588d9d..56550ff3f86f 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java @@ -186,7 +186,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132\037.google.chat.v1.AccessoryWidgetB\003\340A\001:C\352A@\n" + "\033chat.googleapis.com/Message\022!spaces/{space}/messages/{message}\"\037\n" + "\013AttachedGif\022\020\n" - + "\003uri\030\001 \001(\tB\003\340A\003\"\230\004\n" + + "\003uri\030\001 \001(\tB\003\340A\003\"\245\004\n" + "\025QuotedMessageMetadata\0221\n" + "\004name\030\001 \001(\tB#\340A\002\372A\035\n" + "\033chat.googleapis.com/Message\0229\n" @@ -197,12 +197,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027quoted_message_snapshot\030\005" + " \001(\0132%.google.chat.v1.QuotedMessageSnapshotB\003\340A\003\022B\n" + "\022forwarded_metadata\030\006 \001(\0132!" - + ".google.chat.v1.ForwardedMetadataB\003\340A\003\"2\n" + + ".google.chat.v1.ForwardedMetadataB\003\340A\003\"?\n" + "\tQuoteType\022\032\n" + "\026QUOTE_TYPE_UNSPECIFIED\020\000\022\t\n" - + "\005REPLY\020\001:\201\001\352A~\n" - + ")chat.googleapis.com/QuotedMessageMetadata\022Qspaces/{space}/mess" - + "ages/{message}/quotedMessageMetadata/{quoted_message_metadata}\"\310\001\n" + + "\005REPLY\020\001\022\013\n" + + "\007FORWARD\020\002:\201\001\352A~\n" + + ")chat.googleapis.com/QuotedMessageMetadata\022Qspaces" + + "/{space}/messages/{message}/quotedMessageMetadata/{quoted_message_metadata}\"\310\001\n" + "\025QuotedMessageSnapshot\022\023\n" + "\006sender\030\001 \001(\tB\003\340A\003\022\021\n" + "\004text\030\002 \001(\tB\003\340A\003\022\033\n" @@ -218,15 +219,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "thread_key\030\003 \001(\tB\003\340A\001:@\352A=\n" + "\032chat.googleapis.com/Thread\022\037spaces/{space}/threads/{thread}\"\322\004\n" + "\016ActionResponse\022>\n" - + "\004type\030\001 \001" - + "(\0162+.google.chat.v1.ActionResponse.ResponseTypeB\003\340A\004\022\020\n" + + "\004type\030\001" + + " \001(\0162+.google.chat.v1.ActionResponse.ResponseTypeB\003\340A\004\022\020\n" + "\003url\030\002 \001(\tB\003\340A\004\0228\n\r" + "dialog_action\030\003 \001(\0132\034.google.chat.v1.DialogActionB\003\340A\004\022I\n" - + "\016updated_widget\030\004 \001(\0132,.googl" - + "e.chat.v1.ActionResponse.UpdatedWidgetB\003\340A\004\032R\n" + + "\016updated_widget\030\004" + + " \001(\0132,.google.chat.v1.ActionResponse.UpdatedWidgetB\003\340A\004\032R\n" + "\016SelectionItems\022@\n" - + "\005items\030\001 \003(\01321.g" - + "oogle.apps.card.v1.SelectionInput.SelectionItem\032w\n\r" + + "\005items\030\001" + + " \003(\01321.google.apps.card.v1.SelectionInput.SelectionItem\032w\n\r" + "UpdatedWidget\022D\n" + "\013suggestions\030\001" + " \001(\0132-.google.chat.v1.ActionResponse.SelectionItemsH\000\022\016\n" @@ -253,7 +254,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024UpdateMessageRequest\022-\n" + "\007message\030\001 \001(\0132\027.google.chat.v1.MessageB\003\340A\002\0224\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\032\n\r" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022\032\n" + + "\r" + "allow_missing\030\004 \001(\010B\003\340A\001\"\210\004\n" + "\024CreateMessageRequest\0223\n" + "\006parent\030\001 \001(" @@ -261,8 +263,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007message\030\004 \001(\0132\027.google.chat.v1.MessageB\003\340A\002\022\031\n\n" + "thread_key\030\006 \001(\tB\005\030\001\340A\001\022\027\n\n" + "request_id\030\007 \001(\tB\003\340A\001\022Z\n" - + "\024message_reply_option\030\010 \001(\01627.google.chat.v1.Cre" - + "ateMessageRequest.MessageReplyOptionB\003\340A\001\022\027\n\n" + + "\024message_reply_option\030\010 \001(\01627.googl" + + "e.chat.v1.CreateMessageRequest.MessageReplyOptionB\003\340A\001\022\027\n\n" + "message_id\030\t \001(\tB\003\340A\001\022b\n" + "#create_message_notification_options\030\n" + " \001(\01320.google.chat.v1.CreateMessageNotificationOptionsB\003\340A\001\"\177\n" @@ -271,8 +273,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD\020\001\022\031\n" + "\025REPLY_MESSAGE_OR_FAIL\020\002\"\362\001\n" + " CreateMessageNotificationOptions\022\\\n" - + "\021notification_type\030\001 \001(\0162" - + "A.google.chat.v1.CreateMessageNotificationOptions.NotificationType\"p\n" + + "\021notification_type\030\001 \001(\0162A.google.chat.v1.CreateMess" + + "ageNotificationOptions.NotificationType\"p\n" + "\020NotificationType\022\032\n" + "\026NOTIFICATION_TYPE_NONE\020\000\022\"\n" + "\036NOTIFICATION_TYPE_FORCE_NOTIFY\020\002\022\034\n" @@ -297,10 +299,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "CardWithId\022\017\n" + "\007card_id\030\001 \001(\t\022\'\n" + "\004card\030\002 \001(\0132\031.google.apps.card.v1.CardB\245\001\n" - + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.google.com/go/chat/apiv1" - + "/chatpb;chatpb\242\002\013DYNAPIProto\252\002\023Google.Ap" - + "ps.Chat.V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Googl" - + "e::Apps::Chat::V1b\006proto3" + + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.google.com/" + + "go/chat/apiv1/chatpb;chatpb\242\002\013DYNAPIProt" + + "o\252\002\023Google.Apps.Chat.V1\312\002\023Google\\Apps\\Ch" + + "at\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java index 9377b036a1bc..245b7d32f8de 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/QuotedMessageMetadata.java @@ -26,10 +26,6 @@ *
              * Information about a message that another message quotes.
              *
            - * When you create a message, you can quote messages within the same
            - * thread, or quote a root message to create a new root message.
            - * However, you can't quote a message reply from a different thread.
            - *
              * When you update a message, you can't add or replace the
              * `quotedMessageMetadata` field, but you can remove it.
              *
            @@ -105,20 +101,32 @@ public enum QuoteType implements com.google.protobuf.ProtocolMessageEnum {
                  *
                  *
                  * 
            -     * If quote_type is `REPLY`, you can do the following:
            +     * When `quote_type` is `REPLY`, you can do the following:
                  *
                  * * If you're replying in a thread, you can quote another message in that
                  * thread.
                  *
                  * * If you're creating a root message, you can quote another root message
                  * in that space.
            -     *
            -     * You can't quote a message reply from a different thread.
                  * 
            * * REPLY = 1; */ REPLY(1), + /** + * + * + *
            +     * When `quote_type` is `FORWARD`, you can quote a:
            +     *
            +     * * Message from a different space.
            +     *
            +     * * Message reply from a different thread in the same space.
            +     * 
            + * + * FORWARD = 2; + */ + FORWARD(2), UNRECOGNIZED(-1), ; @@ -147,21 +155,34 @@ public enum QuoteType implements com.google.protobuf.ProtocolMessageEnum { * * *
            -     * If quote_type is `REPLY`, you can do the following:
            +     * When `quote_type` is `REPLY`, you can do the following:
                  *
                  * * If you're replying in a thread, you can quote another message in that
                  * thread.
                  *
                  * * If you're creating a root message, you can quote another root message
                  * in that space.
            -     *
            -     * You can't quote a message reply from a different thread.
                  * 
            * * REPLY = 1; */ public static final int REPLY_VALUE = 1; + /** + * + * + *
            +     * When `quote_type` is `FORWARD`, you can quote a:
            +     *
            +     * * Message from a different space.
            +     *
            +     * * Message reply from a different thread in the same space.
            +     * 
            + * + * FORWARD = 2; + */ + public static final int FORWARD_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -190,6 +211,8 @@ public static QuoteType forNumber(int value) { return QUOTE_TYPE_UNSPECIFIED; case 1: return REPLY; + case 2: + return FORWARD; default: return null; } @@ -770,10 +793,6 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder *
                * Information about a message that another message quotes.
                *
            -   * When you create a message, you can quote messages within the same
            -   * thread, or quote a root message to create a new root message.
            -   * However, you can't quote a message reply from a different thread.
            -   *
                * When you update a message, you can't add or replace the
                * `quotedMessageMetadata` field, but you can remove it.
                *
            diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto
            index 52a4d6f711a6..ed78f5e50c99 100644
            --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto
            +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto
            @@ -281,10 +281,6 @@ message AttachedGif {
             
             // Information about a message that another message quotes.
             //
            -// When you create a message, you can quote messages within the same
            -// thread, or quote a root message to create a new root message.
            -// However, you can't quote a message reply from a different thread.
            -//
             // When you update a message, you can't add or replace the
             // `quotedMessageMetadata` field, but you can remove it.
             //
            @@ -301,16 +297,21 @@ message QuotedMessageMetadata {
                 // Reserved. This value is unused.
                 QUOTE_TYPE_UNSPECIFIED = 0;
             
            -    // If quote_type is `REPLY`, you can do the following:
            +    // When `quote_type` is `REPLY`, you can do the following:
                 //
                 // * If you're replying in a thread, you can quote another message in that
                 // thread.
                 //
                 // * If you're creating a root message, you can quote another root message
                 // in that space.
            -    //
            -    // You can't quote a message reply from a different thread.
                 REPLY = 1;
            +
            +    // When `quote_type` is `FORWARD`, you can quote a:
            +    //
            +    // * Message from a different space.
            +    //
            +    // * Message reply from a different thread in the same space.
            +    FORWARD = 2;
               }
             
               // Required. Resource name of the message that is quoted.
            diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceClient.java
            index 44958a7c197f..a85a0bb8a1e5 100644
            --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceClient.java
            +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceClient.java
            @@ -141,6 +141,20 @@
              *      
              *       
              *    
            + *    
            + *      

            VerifyReferenceList + *

            VerifyReferenceList validates list content and returns line errors, if any. + * + *

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

            + *
              + *
            • verifyReferenceList(VerifyReferenceListRequest request) + *

            + *

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

            + *
              + *
            • verifyReferenceListCallable() + *

            + * + * * * *

            See the individual methods for example code. @@ -800,6 +814,70 @@ public final ReferenceList updateReferenceList(UpdateReferenceListRequest reques return stub.updateReferenceListCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * VerifyReferenceList validates list content and returns line errors, if any. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (ReferenceListServiceClient referenceListServiceClient =
            +   *     ReferenceListServiceClient.create()) {
            +   *   VerifyReferenceListRequest request =
            +   *       VerifyReferenceListRequest.newBuilder()
            +   *           .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
            +   *           .setSyntaxType(ReferenceListSyntaxType.forNumber(0))
            +   *           .addAllEntries(new ArrayList())
            +   *           .build();
            +   *   VerifyReferenceListResponse response =
            +   *       referenceListServiceClient.verifyReferenceList(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 VerifyReferenceListResponse verifyReferenceList(VerifyReferenceListRequest request) { + return verifyReferenceListCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * VerifyReferenceList validates list content and returns line errors, if any. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (ReferenceListServiceClient referenceListServiceClient =
            +   *     ReferenceListServiceClient.create()) {
            +   *   VerifyReferenceListRequest request =
            +   *       VerifyReferenceListRequest.newBuilder()
            +   *           .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
            +   *           .setSyntaxType(ReferenceListSyntaxType.forNumber(0))
            +   *           .addAllEntries(new ArrayList())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       referenceListServiceClient.verifyReferenceListCallable().futureCall(request);
            +   *   // Do something.
            +   *   VerifyReferenceListResponse response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + verifyReferenceListCallable() { + return stub.verifyReferenceListCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceSettings.java index 7724d72087d5..900ef1b297ed 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceSettings.java @@ -113,6 +113,12 @@ public UnaryCallSettings getReferenceLis return ((ReferenceListServiceStubSettings) getStubSettings()).updateReferenceListSettings(); } + /** Returns the object with the settings used for calls to verifyReferenceList. */ + public UnaryCallSettings + verifyReferenceListSettings() { + return ((ReferenceListServiceStubSettings) getStubSettings()).verifyReferenceListSettings(); + } + public static final ReferenceListServiceSettings create(ReferenceListServiceStubSettings stub) throws IOException { return new ReferenceListServiceSettings.Builder(stub.toBuilder()).build(); @@ -251,6 +257,12 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().updateReferenceListSettings(); } + /** Returns the builder for the settings used for calls to verifyReferenceList. */ + public UnaryCallSettings.Builder + verifyReferenceListSettings() { + return getStubSettingsBuilder().verifyReferenceListSettings(); + } + @Override public ReferenceListServiceSettings build() throws IOException { return new ReferenceListServiceSettings(this); diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceClient.java new file mode 100644 index 000000000000..5caed1c3ede5 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceClient.java @@ -0,0 +1,498 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.stub.RuleExecutionErrorServiceStub; +import com.google.cloud.chronicle.v1.stub.RuleExecutionErrorServiceStubSettings; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: RuleExecutionErrorService contains endpoints related to rule execution + * errors. + * + *

            This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * try (RuleExecutionErrorServiceClient ruleExecutionErrorServiceClient =
            + *     RuleExecutionErrorServiceClient.create()) {
            + *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
            + *   for (RuleExecutionError element :
            + *       ruleExecutionErrorServiceClient.listRuleExecutionErrors(parent).iterateAll()) {
            + *     // doThingsWith(element);
            + *   }
            + * }
            + * }
            + * + *

            Note: close() needs to be called on the RuleExecutionErrorServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + *
            Methods
            MethodDescriptionMethod Variants

            ListRuleExecutionErrors

            Lists rule execution errors.

            + *

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

            + *
              + *
            • listRuleExecutionErrors(ListRuleExecutionErrorsRequest request) + *

            + *

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

            + *
              + *
            • listRuleExecutionErrors(InstanceName parent) + *

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

            + *
              + *
            • listRuleExecutionErrorsPagedCallable() + *

            • listRuleExecutionErrorsCallable() + *

            + *
            + * + *

            See the individual methods for example code. + * + *

            Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

            This class can be customized by passing in a custom instance of + * RuleExecutionErrorServiceSettings to create(). For example: + * + *

            To customize credentials: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * RuleExecutionErrorServiceSettings ruleExecutionErrorServiceSettings =
            + *     RuleExecutionErrorServiceSettings.newBuilder()
            + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
            + *         .build();
            + * RuleExecutionErrorServiceClient ruleExecutionErrorServiceClient =
            + *     RuleExecutionErrorServiceClient.create(ruleExecutionErrorServiceSettings);
            + * }
            + * + *

            To customize the endpoint: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * RuleExecutionErrorServiceSettings ruleExecutionErrorServiceSettings =
            + *     RuleExecutionErrorServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
            + * RuleExecutionErrorServiceClient ruleExecutionErrorServiceClient =
            + *     RuleExecutionErrorServiceClient.create(ruleExecutionErrorServiceSettings);
            + * }
            + * + *

            To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * RuleExecutionErrorServiceSettings ruleExecutionErrorServiceSettings =
            + *     RuleExecutionErrorServiceSettings.newHttpJsonBuilder().build();
            + * RuleExecutionErrorServiceClient ruleExecutionErrorServiceClient =
            + *     RuleExecutionErrorServiceClient.create(ruleExecutionErrorServiceSettings);
            + * }
            + * + *

            Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class RuleExecutionErrorServiceClient implements BackgroundResource { + private final RuleExecutionErrorServiceSettings settings; + private final RuleExecutionErrorServiceStub stub; + + /** Constructs an instance of RuleExecutionErrorServiceClient with default settings. */ + public static final RuleExecutionErrorServiceClient create() throws IOException { + return create(RuleExecutionErrorServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of RuleExecutionErrorServiceClient, using the given settings. The + * channels are created based on the settings passed in, or defaults for any settings that are not + * set. + */ + public static final RuleExecutionErrorServiceClient create( + RuleExecutionErrorServiceSettings settings) throws IOException { + return new RuleExecutionErrorServiceClient(settings); + } + + /** + * Constructs an instance of RuleExecutionErrorServiceClient, using the given stub for making + * calls. This is for advanced usage - prefer using create(RuleExecutionErrorServiceSettings). + */ + public static final RuleExecutionErrorServiceClient create(RuleExecutionErrorServiceStub stub) { + return new RuleExecutionErrorServiceClient(stub); + } + + /** + * Constructs an instance of RuleExecutionErrorServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected RuleExecutionErrorServiceClient(RuleExecutionErrorServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((RuleExecutionErrorServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected RuleExecutionErrorServiceClient(RuleExecutionErrorServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final RuleExecutionErrorServiceSettings getSettings() { + return settings; + } + + public RuleExecutionErrorServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists rule execution 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 (RuleExecutionErrorServiceClient ruleExecutionErrorServiceClient =
            +   *     RuleExecutionErrorServiceClient.create()) {
            +   *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
            +   *   for (RuleExecutionError element :
            +   *       ruleExecutionErrorServiceClient.listRuleExecutionErrors(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The instance to list rule execution errors from. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRuleExecutionErrorsPagedResponse listRuleExecutionErrors(InstanceName parent) { + ListRuleExecutionErrorsRequest request = + ListRuleExecutionErrorsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listRuleExecutionErrors(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists rule execution 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 (RuleExecutionErrorServiceClient ruleExecutionErrorServiceClient =
            +   *     RuleExecutionErrorServiceClient.create()) {
            +   *   String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
            +   *   for (RuleExecutionError element :
            +   *       ruleExecutionErrorServiceClient.listRuleExecutionErrors(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The instance to list rule execution errors from. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListRuleExecutionErrorsPagedResponse listRuleExecutionErrors(String parent) { + ListRuleExecutionErrorsRequest request = + ListRuleExecutionErrorsRequest.newBuilder().setParent(parent).build(); + return listRuleExecutionErrors(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists rule execution 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 (RuleExecutionErrorServiceClient ruleExecutionErrorServiceClient =
            +   *     RuleExecutionErrorServiceClient.create()) {
            +   *   ListRuleExecutionErrorsRequest request =
            +   *       ListRuleExecutionErrorsRequest.newBuilder()
            +   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   for (RuleExecutionError element :
            +   *       ruleExecutionErrorServiceClient.listRuleExecutionErrors(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 ListRuleExecutionErrorsPagedResponse listRuleExecutionErrors( + ListRuleExecutionErrorsRequest request) { + return listRuleExecutionErrorsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists rule execution 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 (RuleExecutionErrorServiceClient ruleExecutionErrorServiceClient =
            +   *     RuleExecutionErrorServiceClient.create()) {
            +   *   ListRuleExecutionErrorsRequest request =
            +   *       ListRuleExecutionErrorsRequest.newBuilder()
            +   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       ruleExecutionErrorServiceClient
            +   *           .listRuleExecutionErrorsPagedCallable()
            +   *           .futureCall(request);
            +   *   // Do something.
            +   *   for (RuleExecutionError element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listRuleExecutionErrorsPagedCallable() { + return stub.listRuleExecutionErrorsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists rule execution 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 (RuleExecutionErrorServiceClient ruleExecutionErrorServiceClient =
            +   *     RuleExecutionErrorServiceClient.create()) {
            +   *   ListRuleExecutionErrorsRequest request =
            +   *       ListRuleExecutionErrorsRequest.newBuilder()
            +   *           .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .build();
            +   *   while (true) {
            +   *     ListRuleExecutionErrorsResponse response =
            +   *         ruleExecutionErrorServiceClient.listRuleExecutionErrorsCallable().call(request);
            +   *     for (RuleExecutionError element : response.getRuleExecutionErrorsList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listRuleExecutionErrorsCallable() { + return stub.listRuleExecutionErrorsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListRuleExecutionErrorsPagedResponse + extends AbstractPagedListResponse< + ListRuleExecutionErrorsRequest, + ListRuleExecutionErrorsResponse, + RuleExecutionError, + ListRuleExecutionErrorsPage, + ListRuleExecutionErrorsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListRuleExecutionErrorsRequest, ListRuleExecutionErrorsResponse, RuleExecutionError> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListRuleExecutionErrorsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListRuleExecutionErrorsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListRuleExecutionErrorsPagedResponse(ListRuleExecutionErrorsPage page) { + super(page, ListRuleExecutionErrorsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListRuleExecutionErrorsPage + extends AbstractPage< + ListRuleExecutionErrorsRequest, + ListRuleExecutionErrorsResponse, + RuleExecutionError, + ListRuleExecutionErrorsPage> { + + private ListRuleExecutionErrorsPage( + PageContext< + ListRuleExecutionErrorsRequest, ListRuleExecutionErrorsResponse, RuleExecutionError> + context, + ListRuleExecutionErrorsResponse response) { + super(context, response); + } + + private static ListRuleExecutionErrorsPage createEmptyPage() { + return new ListRuleExecutionErrorsPage(null, null); + } + + @Override + protected ListRuleExecutionErrorsPage createPage( + PageContext< + ListRuleExecutionErrorsRequest, ListRuleExecutionErrorsResponse, RuleExecutionError> + context, + ListRuleExecutionErrorsResponse response) { + return new ListRuleExecutionErrorsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListRuleExecutionErrorsRequest, ListRuleExecutionErrorsResponse, RuleExecutionError> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListRuleExecutionErrorsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListRuleExecutionErrorsRequest, + ListRuleExecutionErrorsResponse, + RuleExecutionError, + ListRuleExecutionErrorsPage, + ListRuleExecutionErrorsFixedSizeCollection> { + + private ListRuleExecutionErrorsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListRuleExecutionErrorsFixedSizeCollection createEmptyCollection() { + return new ListRuleExecutionErrorsFixedSizeCollection(null, 0); + } + + @Override + protected ListRuleExecutionErrorsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListRuleExecutionErrorsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceSettings.java new file mode 100644 index 000000000000..43fab7ef825a --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceSettings.java @@ -0,0 +1,230 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import static com.google.cloud.chronicle.v1.RuleExecutionErrorServiceClient.ListRuleExecutionErrorsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +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.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.chronicle.v1.stub.RuleExecutionErrorServiceStubSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link RuleExecutionErrorServiceClient}. + * + *

            The default instance has everything set to sensible defaults: + * + *

              + *
            • The default service address (chronicle.googleapis.com) and default port (443) are used. + *
            • Credentials are acquired automatically through Application Default Credentials. + *
            • Retries are configured for idempotent methods but not for non-idempotent methods. + *
            + * + *

            The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * RuleExecutionErrorServiceSettings.Builder ruleExecutionErrorServiceSettingsBuilder =
            + *     RuleExecutionErrorServiceSettings.newBuilder();
            + * ruleExecutionErrorServiceSettingsBuilder
            + *     .listRuleExecutionErrorsSettings()
            + *     .setRetrySettings(
            + *         ruleExecutionErrorServiceSettingsBuilder
            + *             .listRuleExecutionErrorsSettings()
            + *             .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());
            + * RuleExecutionErrorServiceSettings ruleExecutionErrorServiceSettings =
            + *     ruleExecutionErrorServiceSettingsBuilder.build();
            + * }
            + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +public class RuleExecutionErrorServiceSettings + extends ClientSettings { + + /** Returns the object with the settings used for calls to listRuleExecutionErrors. */ + public PagedCallSettings< + ListRuleExecutionErrorsRequest, + ListRuleExecutionErrorsResponse, + ListRuleExecutionErrorsPagedResponse> + listRuleExecutionErrorsSettings() { + return ((RuleExecutionErrorServiceStubSettings) getStubSettings()) + .listRuleExecutionErrorsSettings(); + } + + public static final RuleExecutionErrorServiceSettings create( + RuleExecutionErrorServiceStubSettings stub) throws IOException { + return new RuleExecutionErrorServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return RuleExecutionErrorServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return RuleExecutionErrorServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return RuleExecutionErrorServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return RuleExecutionErrorServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return RuleExecutionErrorServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return RuleExecutionErrorServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return RuleExecutionErrorServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return RuleExecutionErrorServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected RuleExecutionErrorServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for RuleExecutionErrorServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(RuleExecutionErrorServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(RuleExecutionErrorServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(RuleExecutionErrorServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(RuleExecutionErrorServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(RuleExecutionErrorServiceStubSettings.newHttpJsonBuilder()); + } + + public RuleExecutionErrorServiceStubSettings.Builder getStubSettingsBuilder() { + return ((RuleExecutionErrorServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

            Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to listRuleExecutionErrors. */ + public PagedCallSettings.Builder< + ListRuleExecutionErrorsRequest, + ListRuleExecutionErrorsResponse, + ListRuleExecutionErrorsPagedResponse> + listRuleExecutionErrorsSettings() { + return getStubSettingsBuilder().listRuleExecutionErrorsSettings(); + } + + @Override + public RuleExecutionErrorServiceSettings build() throws IOException { + return new RuleExecutionErrorServiceSettings(this); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleServiceClient.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleServiceClient.java index 907f02e0393e..457c656ac7ea 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleServiceClient.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleServiceClient.java @@ -165,6 +165,25 @@ * * * + *

            VerifyRuleText + *

            Verifies the given rule text. + * + *

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

            + *
              + *
            • verifyRuleText(VerifyRuleTextRequest request) + *

            + *

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

            + *
              + *
            • verifyRuleText(InstanceName instance, String ruleText) + *

            • verifyRuleText(String instance, String ruleText) + *

            + *

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

            + *
              + *
            • verifyRuleTextCallable() + *

            + * + * + * *

            ListRuleRevisions *

            Lists all revisions of the rule. * @@ -1029,6 +1048,130 @@ public final UnaryCallable deleteRuleCallable() { return stub.deleteRuleCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Verifies the given rule text. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (RuleServiceClient ruleServiceClient = RuleServiceClient.create()) {
            +   *   InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
            +   *   String ruleText = "ruleText763458121";
            +   *   VerifyRuleTextResponse response = ruleServiceClient.verifyRuleText(instance, ruleText);
            +   * }
            +   * }
            + * + * @param instance Required. The name of the parent resource, which is the SecOps instance + * associated with the request. Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * @param ruleText Required. The rule text to verify as a UTF-8 string. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VerifyRuleTextResponse verifyRuleText(InstanceName instance, String ruleText) { + VerifyRuleTextRequest request = + VerifyRuleTextRequest.newBuilder() + .setInstance(instance == null ? null : instance.toString()) + .setRuleText(ruleText) + .build(); + return verifyRuleText(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Verifies the given rule text. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (RuleServiceClient ruleServiceClient = RuleServiceClient.create()) {
            +   *   String instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
            +   *   String ruleText = "ruleText763458121";
            +   *   VerifyRuleTextResponse response = ruleServiceClient.verifyRuleText(instance, ruleText);
            +   * }
            +   * }
            + * + * @param instance Required. The name of the parent resource, which is the SecOps instance + * associated with the request. Format: + * `projects/{project}/locations/{location}/instances/{instance}` + * @param ruleText Required. The rule text to verify as a UTF-8 string. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final VerifyRuleTextResponse verifyRuleText(String instance, String ruleText) { + VerifyRuleTextRequest request = + VerifyRuleTextRequest.newBuilder().setInstance(instance).setRuleText(ruleText).build(); + return verifyRuleText(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Verifies the given rule text. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (RuleServiceClient ruleServiceClient = RuleServiceClient.create()) {
            +   *   VerifyRuleTextRequest request =
            +   *       VerifyRuleTextRequest.newBuilder()
            +   *           .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
            +   *           .setRuleText("ruleText763458121")
            +   *           .build();
            +   *   VerifyRuleTextResponse response = ruleServiceClient.verifyRuleText(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 VerifyRuleTextResponse verifyRuleText(VerifyRuleTextRequest request) { + return verifyRuleTextCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Verifies the given rule text. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (RuleServiceClient ruleServiceClient = RuleServiceClient.create()) {
            +   *   VerifyRuleTextRequest request =
            +   *       VerifyRuleTextRequest.newBuilder()
            +   *           .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
            +   *           .setRuleText("ruleText763458121")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       ruleServiceClient.verifyRuleTextCallable().futureCall(request);
            +   *   // Do something.
            +   *   VerifyRuleTextResponse response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + verifyRuleTextCallable() { + return stub.verifyRuleTextCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists all revisions of the rule. diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleServiceSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleServiceSettings.java index 1b3c90b53412..eeea68c78840 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleServiceSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/RuleServiceSettings.java @@ -144,6 +144,11 @@ public UnaryCallSettings deleteRuleSettings() { return ((RuleServiceStubSettings) getStubSettings()).deleteRuleSettings(); } + /** Returns the object with the settings used for calls to verifyRuleText. */ + public UnaryCallSettings verifyRuleTextSettings() { + return ((RuleServiceStubSettings) getStubSettings()).verifyRuleTextSettings(); + } + /** Returns the object with the settings used for calls to listRuleRevisions. */ public PagedCallSettings< ListRuleRevisionsRequest, ListRuleRevisionsResponse, ListRuleRevisionsPagedResponse> @@ -329,6 +334,12 @@ public UnaryCallSettings.Builder deleteRuleSettings() return getStubSettingsBuilder().deleteRuleSettings(); } + /** Returns the builder for the settings used for calls to verifyRuleText. */ + public UnaryCallSettings.Builder + verifyRuleTextSettings() { + return getStubSettingsBuilder().verifyRuleTextSettings(); + } + /** Returns the builder for the settings used for calls to listRuleRevisions. */ public PagedCallSettings.Builder< ListRuleRevisionsRequest, ListRuleRevisionsResponse, ListRuleRevisionsPagedResponse> diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/gapic_metadata.json b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/gapic_metadata.json index 86e8723a51eb..e6b7c170b89b 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/gapic_metadata.json +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/gapic_metadata.json @@ -261,6 +261,9 @@ }, "UpdateReferenceList": { "methods": ["updateReferenceList", "updateReferenceList", "updateReferenceListCallable"] + }, + "VerifyReferenceList": { + "methods": ["verifyReferenceList", "verifyReferenceListCallable"] } } } @@ -306,6 +309,21 @@ }, "UpdateRuleDeployment": { "methods": ["updateRuleDeployment", "updateRuleDeployment", "updateRuleDeploymentCallable"] + }, + "VerifyRuleText": { + "methods": ["verifyRuleText", "verifyRuleText", "verifyRuleText", "verifyRuleTextCallable"] + } + } + } + } + }, + "RuleExecutionErrorService": { + "clients": { + "grpc": { + "libraryClient": "RuleExecutionErrorServiceClient", + "rpcs": { + "ListRuleExecutionErrors": { + "methods": ["listRuleExecutionErrors", "listRuleExecutionErrors", "listRuleExecutionErrors", "listRuleExecutionErrorsPagedCallable", "listRuleExecutionErrorsCallable"] } } } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/package-info.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/package-info.java index bbf0be59f2e0..0d902ffffd26 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/package-info.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/package-info.java @@ -241,6 +241,29 @@ * Rule response = ruleServiceClient.createRule(parent, rule); * } * }
            + * + *

            ======================= RuleExecutionErrorServiceClient ======================= + * + *

            Service Description: RuleExecutionErrorService contains endpoints related to rule execution + * errors. + * + *

            Sample for RuleExecutionErrorServiceClient: + * + *

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * try (RuleExecutionErrorServiceClient ruleExecutionErrorServiceClient =
            + *     RuleExecutionErrorServiceClient.create()) {
            + *   InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
            + *   for (RuleExecutionError element :
            + *       ruleExecutionErrorServiceClient.listRuleExecutionErrors(parent).iterateAll()) {
            + *     // doThingsWith(element);
            + *   }
            + * }
            + * }
            */ @Generated("by gapic-generator-java") package com.google.cloud.chronicle.v1; diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcReferenceListServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcReferenceListServiceStub.java index 3610b580164b..e74496e6dc55 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcReferenceListServiceStub.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcReferenceListServiceStub.java @@ -31,6 +31,8 @@ import com.google.cloud.chronicle.v1.ListReferenceListsResponse; import com.google.cloud.chronicle.v1.ReferenceList; import com.google.cloud.chronicle.v1.UpdateReferenceListRequest; +import com.google.cloud.chronicle.v1.VerifyReferenceListRequest; +import com.google.cloud.chronicle.v1.VerifyReferenceListResponse; import com.google.longrunning.stub.GrpcOperationsStub; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; @@ -94,6 +96,19 @@ public class GrpcReferenceListServiceStub extends ReferenceListServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + verifyReferenceListMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.ReferenceListService/VerifyReferenceList") + .setRequestMarshaller( + ProtoUtils.marshaller(VerifyReferenceListRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(VerifyReferenceListResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private final UnaryCallable getReferenceListCallable; private final UnaryCallable listReferenceListsCallable; @@ -103,6 +118,8 @@ public class GrpcReferenceListServiceStub extends ReferenceListServiceStub { createReferenceListCallable; private final UnaryCallable updateReferenceListCallable; + private final UnaryCallable + verifyReferenceListCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -196,6 +213,18 @@ protected GrpcReferenceListServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + verifyReferenceListTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(verifyReferenceListMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("instance", String.valueOf(request.getInstance())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getInstance()) + .build(); this.getReferenceListCallable = callableFactory.createUnaryCallable( @@ -220,6 +249,11 @@ protected GrpcReferenceListServiceStub( updateReferenceListTransportSettings, settings.updateReferenceListSettings(), clientContext); + this.verifyReferenceListCallable = + callableFactory.createUnaryCallable( + verifyReferenceListTransportSettings, + settings.verifyReferenceListSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -256,6 +290,12 @@ public UnaryCallable updateReferenceL return updateReferenceListCallable; } + @Override + public UnaryCallable + verifyReferenceListCallable() { + return verifyReferenceListCallable; + } + @Override public final void close() { try { diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcRuleExecutionErrorServiceCallableFactory.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcRuleExecutionErrorServiceCallableFactory.java new file mode 100644 index 000000000000..db758d5fc746 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcRuleExecutionErrorServiceCallableFactory.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the RuleExecutionErrorService service API. + * + *

            This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class GrpcRuleExecutionErrorServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcRuleExecutionErrorServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcRuleExecutionErrorServiceStub.java new file mode 100644 index 000000000000..ccb6c509834c --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcRuleExecutionErrorServiceStub.java @@ -0,0 +1,190 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import static com.google.cloud.chronicle.v1.RuleExecutionErrorServiceClient.ListRuleExecutionErrorsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +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.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest; +import com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse; +import com.google.longrunning.stub.GrpcOperationsStub; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the RuleExecutionErrorService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class GrpcRuleExecutionErrorServiceStub extends RuleExecutionErrorServiceStub { + private static final MethodDescriptor< + ListRuleExecutionErrorsRequest, ListRuleExecutionErrorsResponse> + listRuleExecutionErrorsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.chronicle.v1.RuleExecutionErrorService/ListRuleExecutionErrors") + .setRequestMarshaller( + ProtoUtils.marshaller(ListRuleExecutionErrorsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListRuleExecutionErrorsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + listRuleExecutionErrorsCallable; + private final UnaryCallable + listRuleExecutionErrorsPagedCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcRuleExecutionErrorServiceStub create( + RuleExecutionErrorServiceStubSettings settings) throws IOException { + return new GrpcRuleExecutionErrorServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcRuleExecutionErrorServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcRuleExecutionErrorServiceStub( + RuleExecutionErrorServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcRuleExecutionErrorServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcRuleExecutionErrorServiceStub( + RuleExecutionErrorServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcRuleExecutionErrorServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcRuleExecutionErrorServiceStub( + RuleExecutionErrorServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcRuleExecutionErrorServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcRuleExecutionErrorServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcRuleExecutionErrorServiceStub( + RuleExecutionErrorServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listRuleExecutionErrorsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listRuleExecutionErrorsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + + this.listRuleExecutionErrorsCallable = + callableFactory.createUnaryCallable( + listRuleExecutionErrorsTransportSettings, + settings.listRuleExecutionErrorsSettings(), + clientContext); + this.listRuleExecutionErrorsPagedCallable = + callableFactory.createPagedCallable( + listRuleExecutionErrorsTransportSettings, + settings.listRuleExecutionErrorsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listRuleExecutionErrorsCallable() { + return listRuleExecutionErrorsCallable; + } + + @Override + public UnaryCallable + listRuleExecutionErrorsPagedCallable() { + return listRuleExecutionErrorsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcRuleServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcRuleServiceStub.java index 275ac4466236..eea3a005f9af 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcRuleServiceStub.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/GrpcRuleServiceStub.java @@ -49,6 +49,8 @@ import com.google.cloud.chronicle.v1.RuleDeployment; import com.google.cloud.chronicle.v1.UpdateRuleDeploymentRequest; import com.google.cloud.chronicle.v1.UpdateRuleRequest; +import com.google.cloud.chronicle.v1.VerifyRuleTextRequest; +import com.google.cloud.chronicle.v1.VerifyRuleTextResponse; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import com.google.protobuf.Empty; @@ -112,6 +114,18 @@ public class GrpcRuleServiceStub extends RuleServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + verifyRuleTextMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.chronicle.v1.RuleService/VerifyRuleText") + .setRequestMarshaller( + ProtoUtils.marshaller(VerifyRuleTextRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(VerifyRuleTextResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listRuleRevisionsMethodDescriptor = MethodDescriptor.newBuilder() @@ -197,6 +211,7 @@ public class GrpcRuleServiceStub extends RuleServiceStub { private final UnaryCallable listRulesPagedCallable; private final UnaryCallable updateRuleCallable; private final UnaryCallable deleteRuleCallable; + private final UnaryCallable verifyRuleTextCallable; private final UnaryCallable listRuleRevisionsCallable; private final UnaryCallable @@ -312,6 +327,18 @@ protected GrpcRuleServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings + verifyRuleTextTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(verifyRuleTextMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("instance", String.valueOf(request.getInstance())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getInstance()) + .build(); GrpcCallSettings listRuleRevisionsTransportSettings = GrpcCallSettings.newBuilder() @@ -413,6 +440,9 @@ protected GrpcRuleServiceStub( this.deleteRuleCallable = callableFactory.createUnaryCallable( deleteRuleTransportSettings, settings.deleteRuleSettings(), clientContext); + this.verifyRuleTextCallable = + callableFactory.createUnaryCallable( + verifyRuleTextTransportSettings, settings.verifyRuleTextSettings(), clientContext); this.listRuleRevisionsCallable = callableFactory.createUnaryCallable( listRuleRevisionsTransportSettings, @@ -500,6 +530,11 @@ public UnaryCallable deleteRuleCallable() { return deleteRuleCallable; } + @Override + public UnaryCallable verifyRuleTextCallable() { + return verifyRuleTextCallable; + } + @Override public UnaryCallable listRuleRevisionsCallable() { diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonReferenceListServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonReferenceListServiceStub.java index 983b1ef13fb9..56b61ca1b1cf 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonReferenceListServiceStub.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonReferenceListServiceStub.java @@ -36,6 +36,8 @@ import com.google.cloud.chronicle.v1.ListReferenceListsResponse; import com.google.cloud.chronicle.v1.ReferenceList; import com.google.cloud.chronicle.v1.UpdateReferenceListRequest; +import com.google.cloud.chronicle.v1.VerifyReferenceListRequest; +import com.google.cloud.chronicle.v1.VerifyReferenceListResponse; import com.google.protobuf.TypeRegistry; import java.io.IOException; import java.util.ArrayList; @@ -208,6 +210,44 @@ public class HttpJsonReferenceListServiceStub extends ReferenceListServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + verifyReferenceListMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.ReferenceListService/VerifyReferenceList") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{instance=projects/*/locations/*/instances/*}:verifyReferenceList", + 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(VerifyReferenceListResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable getReferenceListCallable; private final UnaryCallable listReferenceListsCallable; @@ -217,6 +257,8 @@ public class HttpJsonReferenceListServiceStub extends ReferenceListServiceStub { createReferenceListCallable; private final UnaryCallable updateReferenceListCallable; + private final UnaryCallable + verifyReferenceListCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -314,6 +356,20 @@ protected HttpJsonReferenceListServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + verifyReferenceListTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(verifyReferenceListMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("instance", String.valueOf(request.getInstance())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getInstance()) + .build(); this.getReferenceListCallable = callableFactory.createUnaryCallable( @@ -338,6 +394,11 @@ protected HttpJsonReferenceListServiceStub( updateReferenceListTransportSettings, settings.updateReferenceListSettings(), clientContext); + this.verifyReferenceListCallable = + callableFactory.createUnaryCallable( + verifyReferenceListTransportSettings, + settings.verifyReferenceListSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -350,6 +411,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(listReferenceListsMethodDescriptor); methodDescriptors.add(createReferenceListMethodDescriptor); methodDescriptors.add(updateReferenceListMethodDescriptor); + methodDescriptors.add(verifyReferenceListMethodDescriptor); return methodDescriptors; } @@ -380,6 +442,12 @@ public UnaryCallable updateReferenceL return updateReferenceListCallable; } + @Override + public UnaryCallable + verifyReferenceListCallable() { + return verifyReferenceListCallable; + } + @Override public final void close() { try { diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonRuleExecutionErrorServiceCallableFactory.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonRuleExecutionErrorServiceCallableFactory.java new file mode 100644 index 000000000000..2a5112dfbd15 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonRuleExecutionErrorServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the RuleExecutionErrorService service API. + * + *

            This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonRuleExecutionErrorServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonRuleExecutionErrorServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonRuleExecutionErrorServiceStub.java new file mode 100644 index 000000000000..0af422521c42 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonRuleExecutionErrorServiceStub.java @@ -0,0 +1,228 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import static com.google.cloud.chronicle.v1.RuleExecutionErrorServiceClient.ListRuleExecutionErrorsPagedResponse; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +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.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest; +import com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the RuleExecutionErrorService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonRuleExecutionErrorServiceStub extends RuleExecutionErrorServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor< + ListRuleExecutionErrorsRequest, ListRuleExecutionErrorsResponse> + listRuleExecutionErrorsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.cloud.chronicle.v1.RuleExecutionErrorService/ListRuleExecutionErrors") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/instances/*}/ruleExecutionErrors", + 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(ListRuleExecutionErrorsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + listRuleExecutionErrorsCallable; + private final UnaryCallable + listRuleExecutionErrorsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonRuleExecutionErrorServiceStub create( + RuleExecutionErrorServiceStubSettings settings) throws IOException { + return new HttpJsonRuleExecutionErrorServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonRuleExecutionErrorServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonRuleExecutionErrorServiceStub( + RuleExecutionErrorServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonRuleExecutionErrorServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonRuleExecutionErrorServiceStub( + RuleExecutionErrorServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonRuleExecutionErrorServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonRuleExecutionErrorServiceStub( + RuleExecutionErrorServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonRuleExecutionErrorServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonRuleExecutionErrorServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonRuleExecutionErrorServiceStub( + RuleExecutionErrorServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + listRuleExecutionErrorsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listRuleExecutionErrorsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + + this.listRuleExecutionErrorsCallable = + callableFactory.createUnaryCallable( + listRuleExecutionErrorsTransportSettings, + settings.listRuleExecutionErrorsSettings(), + clientContext); + this.listRuleExecutionErrorsPagedCallable = + callableFactory.createPagedCallable( + listRuleExecutionErrorsTransportSettings, + settings.listRuleExecutionErrorsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listRuleExecutionErrorsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + listRuleExecutionErrorsCallable() { + return listRuleExecutionErrorsCallable; + } + + @Override + public UnaryCallable + listRuleExecutionErrorsPagedCallable() { + return listRuleExecutionErrorsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonRuleServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonRuleServiceStub.java index edc183843f74..8aa697ae16ff 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonRuleServiceStub.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/HttpJsonRuleServiceStub.java @@ -57,6 +57,8 @@ import com.google.cloud.chronicle.v1.RuleDeployment; import com.google.cloud.chronicle.v1.UpdateRuleDeploymentRequest; import com.google.cloud.chronicle.v1.UpdateRuleRequest; +import com.google.cloud.chronicle.v1.VerifyRuleTextRequest; +import com.google.cloud.chronicle.v1.VerifyRuleTextResponse; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; import com.google.protobuf.Empty; @@ -260,6 +262,43 @@ public class HttpJsonRuleServiceStub extends RuleServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + verifyRuleTextMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.chronicle.v1.RuleService/VerifyRuleText") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{instance=projects/*/locations/*/instances/*}:verifyRuleText", + 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(VerifyRuleTextResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listRuleRevisionsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -526,6 +565,7 @@ public class HttpJsonRuleServiceStub extends RuleServiceStub { private final UnaryCallable listRulesPagedCallable; private final UnaryCallable updateRuleCallable; private final UnaryCallable deleteRuleCallable; + private final UnaryCallable verifyRuleTextCallable; private final UnaryCallable listRuleRevisionsCallable; private final UnaryCallable @@ -675,6 +715,19 @@ protected HttpJsonRuleServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + HttpJsonCallSettings + verifyRuleTextTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(verifyRuleTextMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("instance", String.valueOf(request.getInstance())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getInstance()) + .build(); HttpJsonCallSettings listRuleRevisionsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -785,6 +838,9 @@ protected HttpJsonRuleServiceStub( this.deleteRuleCallable = callableFactory.createUnaryCallable( deleteRuleTransportSettings, settings.deleteRuleSettings(), clientContext); + this.verifyRuleTextCallable = + callableFactory.createUnaryCallable( + verifyRuleTextTransportSettings, settings.verifyRuleTextSettings(), clientContext); this.listRuleRevisionsCallable = callableFactory.createUnaryCallable( listRuleRevisionsTransportSettings, @@ -846,6 +902,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(listRulesMethodDescriptor); methodDescriptors.add(updateRuleMethodDescriptor); methodDescriptors.add(deleteRuleMethodDescriptor); + methodDescriptors.add(verifyRuleTextMethodDescriptor); methodDescriptors.add(listRuleRevisionsMethodDescriptor); methodDescriptors.add(createRetrohuntMethodDescriptor); methodDescriptors.add(getRetrohuntMethodDescriptor); @@ -890,6 +947,11 @@ public UnaryCallable deleteRuleCallable() { return deleteRuleCallable; } + @Override + public UnaryCallable verifyRuleTextCallable() { + return verifyRuleTextCallable; + } + @Override public UnaryCallable listRuleRevisionsCallable() { diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/ReferenceListServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/ReferenceListServiceStub.java index 138aaaf7049b..4098ead0c319 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/ReferenceListServiceStub.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/ReferenceListServiceStub.java @@ -26,6 +26,8 @@ import com.google.cloud.chronicle.v1.ListReferenceListsResponse; import com.google.cloud.chronicle.v1.ReferenceList; import com.google.cloud.chronicle.v1.UpdateReferenceListRequest; +import com.google.cloud.chronicle.v1.VerifyReferenceListRequest; +import com.google.cloud.chronicle.v1.VerifyReferenceListResponse; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. @@ -59,6 +61,11 @@ public UnaryCallable updateReferenceL throw new UnsupportedOperationException("Not implemented: updateReferenceListCallable()"); } + public UnaryCallable + verifyReferenceListCallable() { + throw new UnsupportedOperationException("Not implemented: verifyReferenceListCallable()"); + } + @Override public abstract void close(); } diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/ReferenceListServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/ReferenceListServiceStubSettings.java index 3c766abbc5fc..3fb340d35c36 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/ReferenceListServiceStubSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/ReferenceListServiceStubSettings.java @@ -51,6 +51,8 @@ import com.google.cloud.chronicle.v1.ListReferenceListsResponse; import com.google.cloud.chronicle.v1.ReferenceList; import com.google.cloud.chronicle.v1.UpdateReferenceListRequest; +import com.google.cloud.chronicle.v1.VerifyReferenceListRequest; +import com.google.cloud.chronicle.v1.VerifyReferenceListResponse; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -117,7 +119,11 @@ public class ReferenceListServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/chronicle") + .add("https://www.googleapis.com/auth/chronicle.readonly") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); private final UnaryCallSettings getReferenceListSettings; private final PagedCallSettings< @@ -127,6 +133,8 @@ public class ReferenceListServiceStubSettings createReferenceListSettings; private final UnaryCallSettings updateReferenceListSettings; + private final UnaryCallSettings + verifyReferenceListSettings; private static final PagedListDescriptor< ListReferenceListsRequest, ListReferenceListsResponse, ReferenceList> @@ -211,6 +219,12 @@ public UnaryCallSettings getReferenceLis return updateReferenceListSettings; } + /** Returns the object with the settings used for calls to verifyReferenceList. */ + public UnaryCallSettings + verifyReferenceListSettings() { + return verifyReferenceListSettings; + } + public ReferenceListServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -326,6 +340,7 @@ protected ReferenceListServiceStubSettings(Builder settingsBuilder) throws IOExc listReferenceListsSettings = settingsBuilder.listReferenceListsSettings().build(); createReferenceListSettings = settingsBuilder.createReferenceListSettings().build(); updateReferenceListSettings = settingsBuilder.updateReferenceListSettings().build(); + verifyReferenceListSettings = settingsBuilder.verifyReferenceListSettings().build(); } @Override @@ -350,6 +365,8 @@ public static class Builder createReferenceListSettings; private final UnaryCallSettings.Builder updateReferenceListSettings; + private final UnaryCallSettings.Builder + verifyReferenceListSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -402,13 +419,15 @@ protected Builder(ClientContext clientContext) { listReferenceListsSettings = PagedCallSettings.newBuilder(LIST_REFERENCE_LISTS_PAGE_STR_FACT); createReferenceListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateReferenceListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + verifyReferenceListSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( getReferenceListSettings, listReferenceListsSettings, createReferenceListSettings, - updateReferenceListSettings); + updateReferenceListSettings, + verifyReferenceListSettings); initDefaults(this); } @@ -419,13 +438,15 @@ protected Builder(ReferenceListServiceStubSettings settings) { listReferenceListsSettings = settings.listReferenceListsSettings.toBuilder(); createReferenceListSettings = settings.createReferenceListSettings.toBuilder(); updateReferenceListSettings = settings.updateReferenceListSettings.toBuilder(); + verifyReferenceListSettings = settings.verifyReferenceListSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( getReferenceListSettings, listReferenceListsSettings, createReferenceListSettings, - updateReferenceListSettings); + updateReferenceListSettings, + verifyReferenceListSettings); } private static Builder createDefault() { @@ -473,6 +494,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); + builder + .verifyReferenceListSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + return builder; } @@ -516,6 +542,12 @@ public Builder applyToAllUnaryMethods( return updateReferenceListSettings; } + /** Returns the builder for the settings used for calls to verifyReferenceList. */ + public UnaryCallSettings.Builder + verifyReferenceListSettings() { + return verifyReferenceListSettings; + } + @Override public ReferenceListServiceStubSettings build() throws IOException { return new ReferenceListServiceStubSettings(this); diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleExecutionErrorServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleExecutionErrorServiceStub.java new file mode 100644 index 000000000000..2902adc5dc0b --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleExecutionErrorServiceStub.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import static com.google.cloud.chronicle.v1.RuleExecutionErrorServiceClient.ListRuleExecutionErrorsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest; +import com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the RuleExecutionErrorService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class RuleExecutionErrorServiceStub implements BackgroundResource { + + public UnaryCallable + listRuleExecutionErrorsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listRuleExecutionErrorsPagedCallable()"); + } + + public UnaryCallable + listRuleExecutionErrorsCallable() { + throw new UnsupportedOperationException("Not implemented: listRuleExecutionErrorsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleExecutionErrorServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleExecutionErrorServiceStubSettings.java new file mode 100644 index 000000000000..5a2edabfc46a --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleExecutionErrorServiceStubSettings.java @@ -0,0 +1,457 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub; + +import static com.google.cloud.chronicle.v1.RuleExecutionErrorServiceClient.ListRuleExecutionErrorsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest; +import com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse; +import com.google.cloud.chronicle.v1.RuleExecutionError; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link RuleExecutionErrorServiceStub}. + * + *

            The default instance has everything set to sensible defaults: + * + *

              + *
            • The default service address (chronicle.googleapis.com) and default port (443) are used. + *
            • Credentials are acquired automatically through Application Default Credentials. + *
            • Retries are configured for idempotent methods but not for non-idempotent methods. + *
            + * + *

            The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

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

            {@code
            + * // This snippet has been automatically generated and should be regarded as a code template only.
            + * // It will require modifications to work:
            + * // - It may require correct/in-range values for request initialization.
            + * // - It may require specifying regional endpoints when creating the service client as shown in
            + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            + * RuleExecutionErrorServiceStubSettings.Builder ruleExecutionErrorServiceSettingsBuilder =
            + *     RuleExecutionErrorServiceStubSettings.newBuilder();
            + * ruleExecutionErrorServiceSettingsBuilder
            + *     .listRuleExecutionErrorsSettings()
            + *     .setRetrySettings(
            + *         ruleExecutionErrorServiceSettingsBuilder
            + *             .listRuleExecutionErrorsSettings()
            + *             .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());
            + * RuleExecutionErrorServiceStubSettings ruleExecutionErrorServiceSettings =
            + *     ruleExecutionErrorServiceSettingsBuilder.build();
            + * }
            + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class RuleExecutionErrorServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder() + .add("https://www.googleapis.com/auth/chronicle") + .add("https://www.googleapis.com/auth/chronicle.readonly") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); + + private final PagedCallSettings< + ListRuleExecutionErrorsRequest, + ListRuleExecutionErrorsResponse, + ListRuleExecutionErrorsPagedResponse> + listRuleExecutionErrorsSettings; + + private static final PagedListDescriptor< + ListRuleExecutionErrorsRequest, ListRuleExecutionErrorsResponse, RuleExecutionError> + LIST_RULE_EXECUTION_ERRORS_PAGE_STR_DESC = + new PagedListDescriptor< + ListRuleExecutionErrorsRequest, + ListRuleExecutionErrorsResponse, + RuleExecutionError>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListRuleExecutionErrorsRequest injectToken( + ListRuleExecutionErrorsRequest payload, String token) { + return ListRuleExecutionErrorsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListRuleExecutionErrorsRequest injectPageSize( + ListRuleExecutionErrorsRequest payload, int pageSize) { + return ListRuleExecutionErrorsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListRuleExecutionErrorsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListRuleExecutionErrorsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListRuleExecutionErrorsResponse payload) { + return payload.getRuleExecutionErrorsList(); + } + }; + + private static final PagedListResponseFactory< + ListRuleExecutionErrorsRequest, + ListRuleExecutionErrorsResponse, + ListRuleExecutionErrorsPagedResponse> + LIST_RULE_EXECUTION_ERRORS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListRuleExecutionErrorsRequest, + ListRuleExecutionErrorsResponse, + ListRuleExecutionErrorsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + ListRuleExecutionErrorsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListRuleExecutionErrorsRequest, + ListRuleExecutionErrorsResponse, + RuleExecutionError> + pageContext = + PageContext.create( + callable, LIST_RULE_EXECUTION_ERRORS_PAGE_STR_DESC, request, context); + return ListRuleExecutionErrorsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listRuleExecutionErrors. */ + public PagedCallSettings< + ListRuleExecutionErrorsRequest, + ListRuleExecutionErrorsResponse, + ListRuleExecutionErrorsPagedResponse> + listRuleExecutionErrorsSettings() { + return listRuleExecutionErrorsSettings; + } + + public RuleExecutionErrorServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcRuleExecutionErrorServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonRuleExecutionErrorServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "chronicle"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "chronicle.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "chronicle.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(RuleExecutionErrorServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(RuleExecutionErrorServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return RuleExecutionErrorServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected RuleExecutionErrorServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listRuleExecutionErrorsSettings = settingsBuilder.listRuleExecutionErrorsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-chronicle") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for RuleExecutionErrorServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListRuleExecutionErrorsRequest, + ListRuleExecutionErrorsResponse, + ListRuleExecutionErrorsPagedResponse> + listRuleExecutionErrorsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "retry_policy_4_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(600000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(600000L)) + .setTotalTimeoutDuration(Duration.ofMillis(600000L)) + .build(); + definitions.put("retry_policy_4_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + listRuleExecutionErrorsSettings = + PagedCallSettings.newBuilder(LIST_RULE_EXECUTION_ERRORS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of(listRuleExecutionErrorsSettings); + initDefaults(this); + } + + protected Builder(RuleExecutionErrorServiceStubSettings settings) { + super(settings); + + listRuleExecutionErrorsSettings = settings.listRuleExecutionErrorsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(listRuleExecutionErrorsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listRuleExecutionErrorsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_4_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

            Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to listRuleExecutionErrors. */ + public PagedCallSettings.Builder< + ListRuleExecutionErrorsRequest, + ListRuleExecutionErrorsResponse, + ListRuleExecutionErrorsPagedResponse> + listRuleExecutionErrorsSettings() { + return listRuleExecutionErrorsSettings; + } + + @Override + public RuleExecutionErrorServiceStubSettings build() throws IOException { + return new RuleExecutionErrorServiceStubSettings(this); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStub.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStub.java index ae5392bac72c..9f16c84d7770 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStub.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStub.java @@ -44,6 +44,8 @@ import com.google.cloud.chronicle.v1.RuleDeployment; import com.google.cloud.chronicle.v1.UpdateRuleDeploymentRequest; import com.google.cloud.chronicle.v1.UpdateRuleRequest; +import com.google.cloud.chronicle.v1.VerifyRuleTextRequest; +import com.google.cloud.chronicle.v1.VerifyRuleTextResponse; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; @@ -90,6 +92,10 @@ public UnaryCallable deleteRuleCallable() { throw new UnsupportedOperationException("Not implemented: deleteRuleCallable()"); } + public UnaryCallable verifyRuleTextCallable() { + throw new UnsupportedOperationException("Not implemented: verifyRuleTextCallable()"); + } + public UnaryCallable listRuleRevisionsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listRuleRevisionsPagedCallable()"); diff --git a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStubSettings.java b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStubSettings.java index 710be4b739c3..882a026ab9a8 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStubSettings.java +++ b/java-chronicle/google-cloud-chronicle/src/main/java/com/google/cloud/chronicle/v1/stub/RuleServiceStubSettings.java @@ -72,6 +72,8 @@ import com.google.cloud.chronicle.v1.RuleDeployment; import com.google.cloud.chronicle.v1.UpdateRuleDeploymentRequest; import com.google.cloud.chronicle.v1.UpdateRuleRequest; +import com.google.cloud.chronicle.v1.VerifyRuleTextRequest; +import com.google.cloud.chronicle.v1.VerifyRuleTextResponse; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -164,7 +166,11 @@ public class RuleServiceStubSettings extends StubSettings { /** The default scopes of the service. */ private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/chronicle") + .add("https://www.googleapis.com/auth/chronicle.readonly") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); private final UnaryCallSettings createRuleSettings; private final UnaryCallSettings getRuleSettings; @@ -172,6 +178,8 @@ public class RuleServiceStubSettings extends StubSettings updateRuleSettings; private final UnaryCallSettings deleteRuleSettings; + private final UnaryCallSettings + verifyRuleTextSettings; private final PagedCallSettings< ListRuleRevisionsRequest, ListRuleRevisionsResponse, ListRuleRevisionsPagedResponse> listRuleRevisionsSettings; @@ -434,6 +442,11 @@ public UnaryCallSettings deleteRuleSettings() { return deleteRuleSettings; } + /** Returns the object with the settings used for calls to verifyRuleText. */ + public UnaryCallSettings verifyRuleTextSettings() { + return verifyRuleTextSettings; + } + /** Returns the object with the settings used for calls to listRuleRevisions. */ public PagedCallSettings< ListRuleRevisionsRequest, ListRuleRevisionsResponse, ListRuleRevisionsPagedResponse> @@ -598,6 +611,7 @@ protected RuleServiceStubSettings(Builder settingsBuilder) throws IOException { listRulesSettings = settingsBuilder.listRulesSettings().build(); updateRuleSettings = settingsBuilder.updateRuleSettings().build(); deleteRuleSettings = settingsBuilder.deleteRuleSettings().build(); + verifyRuleTextSettings = settingsBuilder.verifyRuleTextSettings().build(); listRuleRevisionsSettings = settingsBuilder.listRuleRevisionsSettings().build(); createRetrohuntSettings = settingsBuilder.createRetrohuntSettings().build(); createRetrohuntOperationSettings = settingsBuilder.createRetrohuntOperationSettings().build(); @@ -627,6 +641,8 @@ public static class Builder extends StubSettings.Builder updateRuleSettings; private final UnaryCallSettings.Builder deleteRuleSettings; + private final UnaryCallSettings.Builder + verifyRuleTextSettings; private final PagedCallSettings.Builder< ListRuleRevisionsRequest, ListRuleRevisionsResponse, ListRuleRevisionsPagedResponse> listRuleRevisionsSettings; @@ -725,6 +741,7 @@ protected Builder(ClientContext clientContext) { listRulesSettings = PagedCallSettings.newBuilder(LIST_RULES_PAGE_STR_FACT); updateRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteRuleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + verifyRuleTextSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listRuleRevisionsSettings = PagedCallSettings.newBuilder(LIST_RULE_REVISIONS_PAGE_STR_FACT); createRetrohuntSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createRetrohuntOperationSettings = OperationCallSettings.newBuilder(); @@ -742,6 +759,7 @@ protected Builder(ClientContext clientContext) { listRulesSettings, updateRuleSettings, deleteRuleSettings, + verifyRuleTextSettings, listRuleRevisionsSettings, createRetrohuntSettings, getRetrohuntSettings, @@ -760,6 +778,7 @@ protected Builder(RuleServiceStubSettings settings) { listRulesSettings = settings.listRulesSettings.toBuilder(); updateRuleSettings = settings.updateRuleSettings.toBuilder(); deleteRuleSettings = settings.deleteRuleSettings.toBuilder(); + verifyRuleTextSettings = settings.verifyRuleTextSettings.toBuilder(); listRuleRevisionsSettings = settings.listRuleRevisionsSettings.toBuilder(); createRetrohuntSettings = settings.createRetrohuntSettings.toBuilder(); createRetrohuntOperationSettings = settings.createRetrohuntOperationSettings.toBuilder(); @@ -776,6 +795,7 @@ protected Builder(RuleServiceStubSettings settings) { listRulesSettings, updateRuleSettings, deleteRuleSettings, + verifyRuleTextSettings, listRuleRevisionsSettings, createRetrohuntSettings, getRetrohuntSettings, @@ -835,6 +855,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_5_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_5_params")); + builder + .verifyRuleTextSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listRuleRevisionsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_4_codes")) @@ -938,6 +963,12 @@ public UnaryCallSettings.Builder deleteRuleSettings() return deleteRuleSettings; } + /** Returns the builder for the settings used for calls to verifyRuleText. */ + public UnaryCallSettings.Builder + verifyRuleTextSettings() { + return verifyRuleTextSettings; + } + /** Returns the builder for the settings used for calls to listRuleRevisions. */ public PagedCallSettings.Builder< ListRuleRevisionsRequest, ListRuleRevisionsResponse, ListRuleRevisionsPagedResponse> diff --git a/java-chronicle/google-cloud-chronicle/src/main/resources/META-INF/native-image/com.google.cloud.chronicle.v1/reflect-config.json b/java-chronicle/google-cloud-chronicle/src/main/resources/META-INF/native-image/com.google.cloud.chronicle.v1/reflect-config.json index 05f4d474435d..e2501d49b07f 100644 --- a/java-chronicle/google-cloud-chronicle/src/main/resources/META-INF/native-image/com.google.cloud.chronicle.v1/reflect-config.json +++ b/java-chronicle/google-cloud-chronicle/src/main/resources/META-INF/native-image/com.google.cloud.chronicle.v1/reflect-config.json @@ -3347,6 +3347,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.ListRuleRevisionsRequest", "queryAllDeclaredConstructors": true, @@ -3698,6 +3734,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.ReferenceListError", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.ReferenceListError$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.ReferenceListScope", "queryAllDeclaredConstructors": true, @@ -3860,6 +3914,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.RuleExecutionError", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.RuleExecutionError$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.RuleType", "queryAllDeclaredConstructors": true, @@ -4166,6 +4238,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.chronicle.v1.VerifyReferenceListRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.VerifyReferenceListRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.VerifyReferenceListResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.VerifyReferenceListResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.VerifyRuleTextRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.VerifyRuleTextRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.VerifyRuleTextResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.chronicle.v1.VerifyRuleTextResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.chronicle.v1.VisualMapType", "queryAllDeclaredConstructors": true, diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockReferenceListServiceImpl.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockReferenceListServiceImpl.java index 2d41f2233bba..3cad3f627539 100644 --- a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockReferenceListServiceImpl.java +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockReferenceListServiceImpl.java @@ -142,4 +142,26 @@ public void updateReferenceList( Exception.class.getName()))); } } + + @Override + public void verifyReferenceList( + VerifyReferenceListRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof VerifyReferenceListResponse) { + requests.add(request); + responseObserver.onNext(((VerifyReferenceListResponse) 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 VerifyReferenceList, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + VerifyReferenceListResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockRuleExecutionErrorService.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockRuleExecutionErrorService.java new file mode 100644 index 000000000000..fc0fefad85ff --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockRuleExecutionErrorService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockRuleExecutionErrorService implements MockGrpcService { + private final MockRuleExecutionErrorServiceImpl serviceImpl; + + public MockRuleExecutionErrorService() { + serviceImpl = new MockRuleExecutionErrorServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockRuleExecutionErrorServiceImpl.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockRuleExecutionErrorServiceImpl.java new file mode 100644 index 000000000000..6567e8c2f482 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockRuleExecutionErrorServiceImpl.java @@ -0,0 +1,83 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.chronicle.v1.RuleExecutionErrorServiceGrpc.RuleExecutionErrorServiceImplBase; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockRuleExecutionErrorServiceImpl extends RuleExecutionErrorServiceImplBase { + private List requests; + private Queue responses; + + public MockRuleExecutionErrorServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listRuleExecutionErrors( + ListRuleExecutionErrorsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListRuleExecutionErrorsResponse) { + requests.add(request); + responseObserver.onNext(((ListRuleExecutionErrorsResponse) 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 ListRuleExecutionErrors, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListRuleExecutionErrorsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockRuleServiceImpl.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockRuleServiceImpl.java index 0e6d1f794b02..213780e70002 100644 --- a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockRuleServiceImpl.java +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/MockRuleServiceImpl.java @@ -161,6 +161,27 @@ public void deleteRule(DeleteRuleRequest request, StreamObserver response } } + @Override + public void verifyRuleText( + VerifyRuleTextRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof VerifyRuleTextResponse) { + requests.add(request); + responseObserver.onNext(((VerifyRuleTextResponse) 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 VerifyRuleText, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + VerifyRuleTextResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void listRuleRevisions( ListRuleRevisionsRequest request, diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/ReferenceListServiceClientHttpJsonTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/ReferenceListServiceClientHttpJsonTest.java index 055d3071dc0f..95b6e2b8fba1 100644 --- a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/ReferenceListServiceClientHttpJsonTest.java +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/ReferenceListServiceClientHttpJsonTest.java @@ -489,4 +489,59 @@ public void updateReferenceListExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void verifyReferenceListTest() throws Exception { + VerifyReferenceListResponse expectedResponse = + VerifyReferenceListResponse.newBuilder() + .setSuccess(true) + .addAllErrors(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + VerifyReferenceListRequest request = + VerifyReferenceListRequest.newBuilder() + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSyntaxType(ReferenceListSyntaxType.forNumber(0)) + .addAllEntries(new ArrayList()) + .build(); + + VerifyReferenceListResponse actualResponse = client.verifyReferenceList(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 verifyReferenceListExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + VerifyReferenceListRequest request = + VerifyReferenceListRequest.newBuilder() + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSyntaxType(ReferenceListSyntaxType.forNumber(0)) + .addAllEntries(new ArrayList()) + .build(); + client.verifyReferenceList(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/ReferenceListServiceClientTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/ReferenceListServiceClientTest.java index 0ec494188c24..b1303ecff49e 100644 --- a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/ReferenceListServiceClientTest.java +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/ReferenceListServiceClientTest.java @@ -427,4 +427,55 @@ public void updateReferenceListExceptionTest() throws Exception { // Expected exception. } } + + @Test + public void verifyReferenceListTest() throws Exception { + VerifyReferenceListResponse expectedResponse = + VerifyReferenceListResponse.newBuilder() + .setSuccess(true) + .addAllErrors(new ArrayList()) + .build(); + mockReferenceListService.addResponse(expectedResponse); + + VerifyReferenceListRequest request = + VerifyReferenceListRequest.newBuilder() + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSyntaxType(ReferenceListSyntaxType.forNumber(0)) + .addAllEntries(new ArrayList()) + .build(); + + VerifyReferenceListResponse actualResponse = client.verifyReferenceList(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockReferenceListService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + VerifyReferenceListRequest actualRequest = ((VerifyReferenceListRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getInstance(), actualRequest.getInstance()); + Assert.assertEquals(request.getSyntaxType(), actualRequest.getSyntaxType()); + Assert.assertEquals(request.getEntriesList(), actualRequest.getEntriesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void verifyReferenceListExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReferenceListService.addException(exception); + + try { + VerifyReferenceListRequest request = + VerifyReferenceListRequest.newBuilder() + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSyntaxType(ReferenceListSyntaxType.forNumber(0)) + .addAllEntries(new ArrayList()) + .build(); + client.verifyReferenceList(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceClientHttpJsonTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..dea8e5a1c667 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceClientHttpJsonTest.java @@ -0,0 +1,177 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import static com.google.cloud.chronicle.v1.RuleExecutionErrorServiceClient.ListRuleExecutionErrorsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.chronicle.v1.stub.HttpJsonRuleExecutionErrorServiceStub; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class RuleExecutionErrorServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static RuleExecutionErrorServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonRuleExecutionErrorServiceStub.getMethodDescriptors(), + RuleExecutionErrorServiceSettings.getDefaultEndpoint()); + RuleExecutionErrorServiceSettings settings = + RuleExecutionErrorServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + RuleExecutionErrorServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = RuleExecutionErrorServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listRuleExecutionErrorsTest() throws Exception { + RuleExecutionError responsesElement = RuleExecutionError.newBuilder().build(); + ListRuleExecutionErrorsResponse expectedResponse = + ListRuleExecutionErrorsResponse.newBuilder() + .setNextPageToken("") + .addAllRuleExecutionErrors(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + ListRuleExecutionErrorsPagedResponse pagedListResponse = client.listRuleExecutionErrors(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRuleExecutionErrorsList().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 listRuleExecutionErrorsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.listRuleExecutionErrors(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRuleExecutionErrorsTest2() throws Exception { + RuleExecutionError responsesElement = RuleExecutionError.newBuilder().build(); + ListRuleExecutionErrorsResponse expectedResponse = + ListRuleExecutionErrorsResponse.newBuilder() + .setNextPageToken("") + .addAllRuleExecutionErrors(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + + ListRuleExecutionErrorsPagedResponse pagedListResponse = client.listRuleExecutionErrors(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRuleExecutionErrorsList().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 listRuleExecutionErrorsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5197/locations/location-5197/instances/instance-5197"; + client.listRuleExecutionErrors(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceClientTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceClientTest.java new file mode 100644 index 000000000000..f2be1acc1b40 --- /dev/null +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceClientTest.java @@ -0,0 +1,171 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1; + +import static com.google.cloud.chronicle.v1.RuleExecutionErrorServiceClient.ListRuleExecutionErrorsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +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.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class RuleExecutionErrorServiceClientTest { + private static MockRuleExecutionErrorService mockRuleExecutionErrorService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private RuleExecutionErrorServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockRuleExecutionErrorService = new MockRuleExecutionErrorService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockRuleExecutionErrorService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + RuleExecutionErrorServiceSettings settings = + RuleExecutionErrorServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = RuleExecutionErrorServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listRuleExecutionErrorsTest() throws Exception { + RuleExecutionError responsesElement = RuleExecutionError.newBuilder().build(); + ListRuleExecutionErrorsResponse expectedResponse = + ListRuleExecutionErrorsResponse.newBuilder() + .setNextPageToken("") + .addAllRuleExecutionErrors(Arrays.asList(responsesElement)) + .build(); + mockRuleExecutionErrorService.addResponse(expectedResponse); + + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + + ListRuleExecutionErrorsPagedResponse pagedListResponse = client.listRuleExecutionErrors(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRuleExecutionErrorsList().get(0), resources.get(0)); + + List actualRequests = mockRuleExecutionErrorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRuleExecutionErrorsRequest actualRequest = + ((ListRuleExecutionErrorsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRuleExecutionErrorsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockRuleExecutionErrorService.addException(exception); + + try { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + client.listRuleExecutionErrors(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRuleExecutionErrorsTest2() throws Exception { + RuleExecutionError responsesElement = RuleExecutionError.newBuilder().build(); + ListRuleExecutionErrorsResponse expectedResponse = + ListRuleExecutionErrorsResponse.newBuilder() + .setNextPageToken("") + .addAllRuleExecutionErrors(Arrays.asList(responsesElement)) + .build(); + mockRuleExecutionErrorService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListRuleExecutionErrorsPagedResponse pagedListResponse = client.listRuleExecutionErrors(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRuleExecutionErrorsList().get(0), resources.get(0)); + + List actualRequests = mockRuleExecutionErrorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRuleExecutionErrorsRequest actualRequest = + ((ListRuleExecutionErrorsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRuleExecutionErrorsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockRuleExecutionErrorService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listRuleExecutionErrors(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/RuleServiceClientHttpJsonTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/RuleServiceClientHttpJsonTest.java index de80c1d2ef1f..9b89060a7882 100644 --- a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/RuleServiceClientHttpJsonTest.java +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/RuleServiceClientHttpJsonTest.java @@ -636,6 +636,100 @@ public void deleteRuleExceptionTest2() throws Exception { } } + @Test + public void verifyRuleTextTest() throws Exception { + VerifyRuleTextResponse expectedResponse = + VerifyRuleTextResponse.newBuilder() + .setSuccess(true) + .addAllCompilationDiagnostics(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + String ruleText = "ruleText763458121"; + + VerifyRuleTextResponse actualResponse = client.verifyRuleText(instance, ruleText); + 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 verifyRuleTextExceptionTest() 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]", "[INSTANCE]"); + String ruleText = "ruleText763458121"; + client.verifyRuleText(instance, ruleText); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void verifyRuleTextTest2() throws Exception { + VerifyRuleTextResponse expectedResponse = + VerifyRuleTextResponse.newBuilder() + .setSuccess(true) + .addAllCompilationDiagnostics(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String instance = "projects/project-2526/locations/location-2526/instances/instance-2526"; + String ruleText = "ruleText763458121"; + + VerifyRuleTextResponse actualResponse = client.verifyRuleText(instance, ruleText); + 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 verifyRuleTextExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String instance = "projects/project-2526/locations/location-2526/instances/instance-2526"; + String ruleText = "ruleText763458121"; + client.verifyRuleText(instance, ruleText); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listRuleRevisionsTest() throws Exception { Rule responsesElement = Rule.newBuilder().build(); diff --git a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/RuleServiceClientTest.java b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/RuleServiceClientTest.java index 01f0742a3e80..8fa50d03a6dd 100644 --- a/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/RuleServiceClientTest.java +++ b/java-chronicle/google-cloud-chronicle/src/test/java/com/google/cloud/chronicle/v1/RuleServiceClientTest.java @@ -541,6 +541,90 @@ public void deleteRuleExceptionTest2() throws Exception { } } + @Test + public void verifyRuleTextTest() throws Exception { + VerifyRuleTextResponse expectedResponse = + VerifyRuleTextResponse.newBuilder() + .setSuccess(true) + .addAllCompilationDiagnostics(new ArrayList()) + .build(); + mockRuleService.addResponse(expectedResponse); + + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + String ruleText = "ruleText763458121"; + + VerifyRuleTextResponse actualResponse = client.verifyRuleText(instance, ruleText); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockRuleService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + VerifyRuleTextRequest actualRequest = ((VerifyRuleTextRequest) actualRequests.get(0)); + + Assert.assertEquals(instance.toString(), actualRequest.getInstance()); + Assert.assertEquals(ruleText, actualRequest.getRuleText()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void verifyRuleTextExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockRuleService.addException(exception); + + try { + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + String ruleText = "ruleText763458121"; + client.verifyRuleText(instance, ruleText); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void verifyRuleTextTest2() throws Exception { + VerifyRuleTextResponse expectedResponse = + VerifyRuleTextResponse.newBuilder() + .setSuccess(true) + .addAllCompilationDiagnostics(new ArrayList()) + .build(); + mockRuleService.addResponse(expectedResponse); + + String instance = "instance555127957"; + String ruleText = "ruleText763458121"; + + VerifyRuleTextResponse actualResponse = client.verifyRuleText(instance, ruleText); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockRuleService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + VerifyRuleTextRequest actualRequest = ((VerifyRuleTextRequest) actualRequests.get(0)); + + Assert.assertEquals(instance, actualRequest.getInstance()); + Assert.assertEquals(ruleText, actualRequest.getRuleText()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void verifyRuleTextExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockRuleService.addException(exception); + + try { + String instance = "instance555127957"; + String ruleText = "ruleText763458121"; + client.verifyRuleText(instance, ruleText); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listRuleRevisionsTest() throws Exception { Rule responsesElement = Rule.newBuilder().build(); diff --git a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceGrpc.java b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceGrpc.java index bdb3528f3a8f..5caa028461c1 100644 --- a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceGrpc.java +++ b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListServiceGrpc.java @@ -227,6 +227,56 @@ private ReferenceListServiceGrpc() {} return getUpdateReferenceListMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.VerifyReferenceListRequest, + com.google.cloud.chronicle.v1.VerifyReferenceListResponse> + getVerifyReferenceListMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "VerifyReferenceList", + requestType = com.google.cloud.chronicle.v1.VerifyReferenceListRequest.class, + responseType = com.google.cloud.chronicle.v1.VerifyReferenceListResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.VerifyReferenceListRequest, + com.google.cloud.chronicle.v1.VerifyReferenceListResponse> + getVerifyReferenceListMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.VerifyReferenceListRequest, + com.google.cloud.chronicle.v1.VerifyReferenceListResponse> + getVerifyReferenceListMethod; + if ((getVerifyReferenceListMethod = ReferenceListServiceGrpc.getVerifyReferenceListMethod) + == null) { + synchronized (ReferenceListServiceGrpc.class) { + if ((getVerifyReferenceListMethod = ReferenceListServiceGrpc.getVerifyReferenceListMethod) + == null) { + ReferenceListServiceGrpc.getVerifyReferenceListMethod = + getVerifyReferenceListMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "VerifyReferenceList")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.VerifyReferenceListRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.VerifyReferenceListResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ReferenceListServiceMethodDescriptorSupplier("VerifyReferenceList")) + .build(); + } + } + } + return getVerifyReferenceListMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static ReferenceListServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -346,6 +396,21 @@ default void updateReferenceList( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getUpdateReferenceListMethod(), responseObserver); } + + /** + * + * + *
            +     * VerifyReferenceList validates list content and returns line errors, if any.
            +     * 
            + */ + default void verifyReferenceList( + com.google.cloud.chronicle.v1.VerifyReferenceListRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getVerifyReferenceListMethod(), responseObserver); + } } /** @@ -447,6 +512,23 @@ public void updateReferenceList( request, responseObserver); } + + /** + * + * + *
            +     * VerifyReferenceList validates list content and returns line errors, if any.
            +     * 
            + */ + public void verifyReferenceList( + com.google.cloud.chronicle.v1.VerifyReferenceListRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getVerifyReferenceListMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -524,6 +606,20 @@ public com.google.cloud.chronicle.v1.ReferenceList updateReferenceList( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getUpdateReferenceListMethod(), getCallOptions(), request); } + + /** + * + * + *
            +     * VerifyReferenceList validates list content and returns line errors, if any.
            +     * 
            + */ + public com.google.cloud.chronicle.v1.VerifyReferenceListResponse verifyReferenceList( + com.google.cloud.chronicle.v1.VerifyReferenceListRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getVerifyReferenceListMethod(), getCallOptions(), request); + } } /** @@ -597,6 +693,19 @@ public com.google.cloud.chronicle.v1.ReferenceList updateReferenceList( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateReferenceListMethod(), getCallOptions(), request); } + + /** + * + * + *
            +     * VerifyReferenceList validates list content and returns line errors, if any.
            +     * 
            + */ + public com.google.cloud.chronicle.v1.VerifyReferenceListResponse verifyReferenceList( + com.google.cloud.chronicle.v1.VerifyReferenceListRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getVerifyReferenceListMethod(), getCallOptions(), request); + } } /** @@ -674,12 +783,27 @@ protected ReferenceListServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateReferenceListMethod(), getCallOptions()), request); } + + /** + * + * + *
            +     * VerifyReferenceList validates list content and returns line errors, if any.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.VerifyReferenceListResponse> + verifyReferenceList(com.google.cloud.chronicle.v1.VerifyReferenceListRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getVerifyReferenceListMethod(), getCallOptions()), request); + } } private static final int METHODID_GET_REFERENCE_LIST = 0; private static final int METHODID_LIST_REFERENCE_LISTS = 1; private static final int METHODID_CREATE_REFERENCE_LIST = 2; private static final int METHODID_UPDATE_REFERENCE_LIST = 3; + private static final int METHODID_VERIFY_REFERENCE_LIST = 4; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -723,6 +847,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_VERIFY_REFERENCE_LIST: + serviceImpl.verifyReferenceList( + (com.google.cloud.chronicle.v1.VerifyReferenceListRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.VerifyReferenceListResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -769,6 +900,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.chronicle.v1.UpdateReferenceListRequest, com.google.cloud.chronicle.v1.ReferenceList>( service, METHODID_UPDATE_REFERENCE_LIST))) + .addMethod( + getVerifyReferenceListMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.VerifyReferenceListRequest, + com.google.cloud.chronicle.v1.VerifyReferenceListResponse>( + service, METHODID_VERIFY_REFERENCE_LIST))) .build(); } @@ -824,6 +962,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListReferenceListsMethod()) .addMethod(getCreateReferenceListMethod()) .addMethod(getUpdateReferenceListMethod()) + .addMethod(getVerifyReferenceListMethod()) .build(); } } diff --git a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceGrpc.java b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceGrpc.java new file mode 100644 index 000000000000..f4eb29aae3ba --- /dev/null +++ b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorServiceGrpc.java @@ -0,0 +1,445 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.chronicle.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
            + * RuleExecutionErrorService contains endpoints related to rule execution
            + * errors.
            + * 
            + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class RuleExecutionErrorServiceGrpc { + + private RuleExecutionErrorServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.chronicle.v1.RuleExecutionErrorService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest, + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse> + getListRuleExecutionErrorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRuleExecutionErrors", + requestType = com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest.class, + responseType = com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest, + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse> + getListRuleExecutionErrorsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest, + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse> + getListRuleExecutionErrorsMethod; + if ((getListRuleExecutionErrorsMethod = + RuleExecutionErrorServiceGrpc.getListRuleExecutionErrorsMethod) + == null) { + synchronized (RuleExecutionErrorServiceGrpc.class) { + if ((getListRuleExecutionErrorsMethod = + RuleExecutionErrorServiceGrpc.getListRuleExecutionErrorsMethod) + == null) { + RuleExecutionErrorServiceGrpc.getListRuleExecutionErrorsMethod = + getListRuleExecutionErrorsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListRuleExecutionErrors")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new RuleExecutionErrorServiceMethodDescriptorSupplier( + "ListRuleExecutionErrors")) + .build(); + } + } + } + return getListRuleExecutionErrorsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static RuleExecutionErrorServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RuleExecutionErrorServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleExecutionErrorServiceStub(channel, callOptions); + } + }; + return RuleExecutionErrorServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static RuleExecutionErrorServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RuleExecutionErrorServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleExecutionErrorServiceBlockingV2Stub(channel, callOptions); + } + }; + return RuleExecutionErrorServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static RuleExecutionErrorServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RuleExecutionErrorServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleExecutionErrorServiceBlockingStub(channel, callOptions); + } + }; + return RuleExecutionErrorServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static RuleExecutionErrorServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public RuleExecutionErrorServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleExecutionErrorServiceFutureStub(channel, callOptions); + } + }; + return RuleExecutionErrorServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
            +   * RuleExecutionErrorService contains endpoints related to rule execution
            +   * errors.
            +   * 
            + */ + public interface AsyncService { + + /** + * + * + *
            +     * Lists rule execution errors.
            +     * 
            + */ + default void listRuleExecutionErrors( + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRuleExecutionErrorsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service RuleExecutionErrorService. + * + *
            +   * RuleExecutionErrorService contains endpoints related to rule execution
            +   * errors.
            +   * 
            + */ + public abstract static class RuleExecutionErrorServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return RuleExecutionErrorServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service RuleExecutionErrorService. + * + *
            +   * RuleExecutionErrorService contains endpoints related to rule execution
            +   * errors.
            +   * 
            + */ + public static final class RuleExecutionErrorServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private RuleExecutionErrorServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RuleExecutionErrorServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleExecutionErrorServiceStub(channel, callOptions); + } + + /** + * + * + *
            +     * Lists rule execution errors.
            +     * 
            + */ + public void listRuleExecutionErrors( + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRuleExecutionErrorsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service RuleExecutionErrorService. + * + *
            +   * RuleExecutionErrorService contains endpoints related to rule execution
            +   * errors.
            +   * 
            + */ + public static final class RuleExecutionErrorServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private RuleExecutionErrorServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RuleExecutionErrorServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleExecutionErrorServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
            +     * Lists rule execution errors.
            +     * 
            + */ + public com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse listRuleExecutionErrors( + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListRuleExecutionErrorsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service + * RuleExecutionErrorService. + * + *
            +   * RuleExecutionErrorService contains endpoints related to rule execution
            +   * errors.
            +   * 
            + */ + public static final class RuleExecutionErrorServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private RuleExecutionErrorServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RuleExecutionErrorServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleExecutionErrorServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
            +     * Lists rule execution errors.
            +     * 
            + */ + public com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse listRuleExecutionErrors( + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRuleExecutionErrorsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * RuleExecutionErrorService. + * + *
            +   * RuleExecutionErrorService contains endpoints related to rule execution
            +   * errors.
            +   * 
            + */ + public static final class RuleExecutionErrorServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private RuleExecutionErrorServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected RuleExecutionErrorServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new RuleExecutionErrorServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
            +     * Lists rule execution errors.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse> + listRuleExecutionErrors( + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRuleExecutionErrorsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_RULE_EXECUTION_ERRORS = 0; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_LIST_RULE_EXECUTION_ERRORS: + serviceImpl.listRuleExecutionErrors( + (com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListRuleExecutionErrorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest, + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse>( + service, METHODID_LIST_RULE_EXECUTION_ERRORS))) + .build(); + } + + private abstract static class RuleExecutionErrorServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + RuleExecutionErrorServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.chronicle.v1.RuleExecutionErrorProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("RuleExecutionErrorService"); + } + } + + private static final class RuleExecutionErrorServiceFileDescriptorSupplier + extends RuleExecutionErrorServiceBaseDescriptorSupplier { + RuleExecutionErrorServiceFileDescriptorSupplier() {} + } + + private static final class RuleExecutionErrorServiceMethodDescriptorSupplier + extends RuleExecutionErrorServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + RuleExecutionErrorServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (RuleExecutionErrorServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new RuleExecutionErrorServiceFileDescriptorSupplier()) + .addMethod(getListRuleExecutionErrorsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleServiceGrpc.java b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleServiceGrpc.java index 2132e4942a50..39c23c4bc11e 100644 --- a/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleServiceGrpc.java +++ b/java-chronicle/grpc-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleServiceGrpc.java @@ -239,6 +239,53 @@ private RuleServiceGrpc() {} return getDeleteRuleMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.VerifyRuleTextRequest, + com.google.cloud.chronicle.v1.VerifyRuleTextResponse> + getVerifyRuleTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "VerifyRuleText", + requestType = com.google.cloud.chronicle.v1.VerifyRuleTextRequest.class, + responseType = com.google.cloud.chronicle.v1.VerifyRuleTextResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.VerifyRuleTextRequest, + com.google.cloud.chronicle.v1.VerifyRuleTextResponse> + getVerifyRuleTextMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.chronicle.v1.VerifyRuleTextRequest, + com.google.cloud.chronicle.v1.VerifyRuleTextResponse> + getVerifyRuleTextMethod; + if ((getVerifyRuleTextMethod = RuleServiceGrpc.getVerifyRuleTextMethod) == null) { + synchronized (RuleServiceGrpc.class) { + if ((getVerifyRuleTextMethod = RuleServiceGrpc.getVerifyRuleTextMethod) == null) { + RuleServiceGrpc.getVerifyRuleTextMethod = + getVerifyRuleTextMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyRuleText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.VerifyRuleTextRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.chronicle.v1.VerifyRuleTextResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new RuleServiceMethodDescriptorSupplier("VerifyRuleText")) + .build(); + } + } + } + return getVerifyRuleTextMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.chronicle.v1.ListRuleRevisionsRequest, com.google.cloud.chronicle.v1.ListRuleRevisionsResponse> @@ -691,6 +738,21 @@ default void deleteRule( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRuleMethod(), responseObserver); } + /** + * + * + *
            +     * Verifies the given rule text.
            +     * 
            + */ + default void verifyRuleText( + com.google.cloud.chronicle.v1.VerifyRuleTextRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getVerifyRuleTextMethod(), responseObserver); + } + /** * * @@ -903,6 +965,23 @@ public void deleteRule( getChannel().newCall(getDeleteRuleMethod(), getCallOptions()), request, responseObserver); } + /** + * + * + *
            +     * Verifies the given rule text.
            +     * 
            + */ + public void verifyRuleText( + com.google.cloud.chronicle.v1.VerifyRuleTextRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getVerifyRuleTextMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1108,6 +1187,20 @@ public com.google.protobuf.Empty deleteRule( getChannel(), getDeleteRuleMethod(), getCallOptions(), request); } + /** + * + * + *
            +     * Verifies the given rule text.
            +     * 
            + */ + public com.google.cloud.chronicle.v1.VerifyRuleTextResponse verifyRuleText( + com.google.cloud.chronicle.v1.VerifyRuleTextRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getVerifyRuleTextMethod(), getCallOptions(), request); + } + /** * * @@ -1293,6 +1386,19 @@ public com.google.protobuf.Empty deleteRule( getChannel(), getDeleteRuleMethod(), getCallOptions(), request); } + /** + * + * + *
            +     * Verifies the given rule text.
            +     * 
            + */ + public com.google.cloud.chronicle.v1.VerifyRuleTextResponse verifyRuleText( + com.google.cloud.chronicle.v1.VerifyRuleTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getVerifyRuleTextMethod(), getCallOptions(), request); + } + /** * * @@ -1473,6 +1579,20 @@ public com.google.common.util.concurrent.ListenableFuture + * Verifies the given rule text. + * + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.chronicle.v1.VerifyRuleTextResponse> + verifyRuleText(com.google.cloud.chronicle.v1.VerifyRuleTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getVerifyRuleTextMethod(), getCallOptions()), request); + } + /** * * @@ -1579,13 +1699,14 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1630,6 +1751,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.chronicle.v1.DeleteRuleRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_VERIFY_RULE_TEXT: + serviceImpl.verifyRuleText( + (com.google.cloud.chronicle.v1.VerifyRuleTextRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_LIST_RULE_REVISIONS: serviceImpl.listRuleRevisions( (com.google.cloud.chronicle.v1.ListRuleRevisionsRequest) request, @@ -1720,6 +1847,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.chronicle.v1.DeleteRuleRequest, com.google.protobuf.Empty>( service, METHODID_DELETE_RULE))) + .addMethod( + getVerifyRuleTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.chronicle.v1.VerifyRuleTextRequest, + com.google.cloud.chronicle.v1.VerifyRuleTextResponse>( + service, METHODID_VERIFY_RULE_TEXT))) .addMethod( getListRuleRevisionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1823,6 +1957,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListRulesMethod()) .addMethod(getUpdateRuleMethod()) .addMethod(getDeleteRuleMethod()) + .addMethod(getVerifyRuleTextMethod()) .addMethod(getListRuleRevisionsMethod()) .addMethod(getCreateRetrohuntMethod()) .addMethod(getGetRetrohuntMethod()) diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListRuleExecutionErrorsRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListRuleExecutionErrorsRequest.java new file mode 100644 index 000000000000..1d605285c7bf --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListRuleExecutionErrorsRequest.java @@ -0,0 +1,1277 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/rule_execution_error.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
            + * Request message for ListRuleExecutionErrors.
            + * 
            + * + * Protobuf type {@code google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest} + */ +@com.google.protobuf.Generated +public final class ListRuleExecutionErrorsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest) + ListRuleExecutionErrorsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListRuleExecutionErrorsRequest"); + } + + // Use ListRuleExecutionErrorsRequest.newBuilder() to construct. + private ListRuleExecutionErrorsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListRuleExecutionErrorsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.RuleExecutionErrorProto + .internal_static_google_cloud_chronicle_v1_ListRuleExecutionErrorsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.RuleExecutionErrorProto + .internal_static_google_cloud_chronicle_v1_ListRuleExecutionErrorsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest.class, + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The instance to list rule execution errors from.
            +   * Format:
            +   * projects/{project}/locations/{location}/instances/{instance}
            +   * 
            + * + * + * 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 instance to list rule execution errors from.
            +   * Format:
            +   * projects/{project}/locations/{location}/instances/{instance}
            +   * 
            + * + * + * 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 rule execution errors to return. The service may
            +   * return fewer than this value. If unspecified, at most 1000 rule execution
            +   * errors will be returned. The maximum value is 10000; values above 10000
            +   * will be coerced to 10000.
            +   * 
            + * + * 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_ = ""; + + /** + * + * + *
            +   * A page token, received from a previous `ListRuleExecutionErrors` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to `ListRuleExecutionErrors`
            +   * must match the call that provided the page token.
            +   * 
            + * + * 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; + } + } + + /** + * + * + *
            +   * A page token, received from a previous `ListRuleExecutionErrors` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to `ListRuleExecutionErrors`
            +   * must match the call that provided the page token.
            +   * 
            + * + * 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; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
            +   * A filter that can be used to retrieve specific rule execution errors.
            +   * Only the following filters are allowed:
            +   * ```
            +   * rule = "{Rule.name}"
            +   * curated_rule = "{CuratedRule.name}"
            +   * ```
            +   * The value for rule or curated_rule must be a valid rule resource name or a
            +   * valid curated rule resource name specified in quotes.
            +   *
            +   * For 'rule', an optional 'revision_id' can be specified which can be used to
            +   * fetch errors for a given revision of the rule. A '-' is also allowed to
            +   * fetch errors across all revisions of the rule. If unspecified, only errors
            +   * corresponding to the most recent revision of the rule will be returned. So
            +   * these variations are all allowed:
            +   * ```
            +   * rule = "{Rule.name}"
            +   * rule = "{Rule.name}@{Rule.revision_id}"
            +   * rule = "{Rule.name}@-"
            +   * ```
            +   * Revision IDs are not supported for curated rules.
            +   * 
            + * + * string filter = 4; + * + * @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; + } + } + + /** + * + * + *
            +   * A filter that can be used to retrieve specific rule execution errors.
            +   * Only the following filters are allowed:
            +   * ```
            +   * rule = "{Rule.name}"
            +   * curated_rule = "{CuratedRule.name}"
            +   * ```
            +   * The value for rule or curated_rule must be a valid rule resource name or a
            +   * valid curated rule resource name specified in quotes.
            +   *
            +   * For 'rule', an optional 'revision_id' can be specified which can be used to
            +   * fetch errors for a given revision of the rule. A '-' is also allowed to
            +   * fetch errors across all revisions of the rule. If unspecified, only errors
            +   * corresponding to the most recent revision of the rule will be returned. So
            +   * these variations are all allowed:
            +   * ```
            +   * rule = "{Rule.name}"
            +   * rule = "{Rule.name}@{Rule.revision_id}"
            +   * rule = "{Rule.name}@-"
            +   * ```
            +   * Revision IDs are not supported for curated rules.
            +   * 
            + * + * string filter = 4; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + 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.chronicle.v1.ListRuleExecutionErrorsRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest other = + (com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest) 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.chronicle.v1.ListRuleExecutionErrorsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest 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.chronicle.v1.ListRuleExecutionErrorsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest parseFrom( + 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.chronicle.v1.ListRuleExecutionErrorsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for ListRuleExecutionErrors.
            +   * 
            + * + * Protobuf type {@code google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest) + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.RuleExecutionErrorProto + .internal_static_google_cloud_chronicle_v1_ListRuleExecutionErrorsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.RuleExecutionErrorProto + .internal_static_google_cloud_chronicle_v1_ListRuleExecutionErrorsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest.class, + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.RuleExecutionErrorProto + .internal_static_google_cloud_chronicle_v1_ListRuleExecutionErrorsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest build() { + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest buildPartial() { + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest result = + new com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest other) { + if (other + == com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest.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. The instance to list rule execution errors from.
            +     * Format:
            +     * projects/{project}/locations/{location}/instances/{instance}
            +     * 
            + * + * + * 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 instance to list rule execution errors from.
            +     * Format:
            +     * projects/{project}/locations/{location}/instances/{instance}
            +     * 
            + * + * + * 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 instance to list rule execution errors from.
            +     * Format:
            +     * projects/{project}/locations/{location}/instances/{instance}
            +     * 
            + * + * + * 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 instance to list rule execution errors from.
            +     * Format:
            +     * projects/{project}/locations/{location}/instances/{instance}
            +     * 
            + * + * + * 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 instance to list rule execution errors from.
            +     * Format:
            +     * projects/{project}/locations/{location}/instances/{instance}
            +     * 
            + * + * + * 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 rule execution errors to return. The service may
            +     * return fewer than this value. If unspecified, at most 1000 rule execution
            +     * errors will be returned. The maximum value is 10000; values above 10000
            +     * will be coerced to 10000.
            +     * 
            + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * The maximum number of rule execution errors to return. The service may
            +     * return fewer than this value. If unspecified, at most 1000 rule execution
            +     * errors will be returned. The maximum value is 10000; values above 10000
            +     * will be coerced to 10000.
            +     * 
            + * + * 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 rule execution errors to return. The service may
            +     * return fewer than this value. If unspecified, at most 1000 rule execution
            +     * errors will be returned. The maximum value is 10000; values above 10000
            +     * will be coerced to 10000.
            +     * 
            + * + * 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_ = ""; + + /** + * + * + *
            +     * A page token, received from a previous `ListRuleExecutionErrors` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to `ListRuleExecutionErrors`
            +     * must match the call that provided the page token.
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * A page token, received from a previous `ListRuleExecutionErrors` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to `ListRuleExecutionErrors`
            +     * must match the call that provided the page token.
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * A page token, received from a previous `ListRuleExecutionErrors` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to `ListRuleExecutionErrors`
            +     * must match the call that provided the page token.
            +     * 
            + * + * 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; + } + + /** + * + * + *
            +     * A page token, received from a previous `ListRuleExecutionErrors` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to `ListRuleExecutionErrors`
            +     * must match the call that provided the page token.
            +     * 
            + * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A page token, received from a previous `ListRuleExecutionErrors` call.
            +     * Provide this to retrieve the subsequent page.
            +     *
            +     * When paginating, all other parameters provided to `ListRuleExecutionErrors`
            +     * must match the call that provided the page token.
            +     * 
            + * + * 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; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
            +     * A filter that can be used to retrieve specific rule execution errors.
            +     * Only the following filters are allowed:
            +     * ```
            +     * rule = "{Rule.name}"
            +     * curated_rule = "{CuratedRule.name}"
            +     * ```
            +     * The value for rule or curated_rule must be a valid rule resource name or a
            +     * valid curated rule resource name specified in quotes.
            +     *
            +     * For 'rule', an optional 'revision_id' can be specified which can be used to
            +     * fetch errors for a given revision of the rule. A '-' is also allowed to
            +     * fetch errors across all revisions of the rule. If unspecified, only errors
            +     * corresponding to the most recent revision of the rule will be returned. So
            +     * these variations are all allowed:
            +     * ```
            +     * rule = "{Rule.name}"
            +     * rule = "{Rule.name}@{Rule.revision_id}"
            +     * rule = "{Rule.name}@-"
            +     * ```
            +     * Revision IDs are not supported for curated rules.
            +     * 
            + * + * string filter = 4; + * + * @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; + } + } + + /** + * + * + *
            +     * A filter that can be used to retrieve specific rule execution errors.
            +     * Only the following filters are allowed:
            +     * ```
            +     * rule = "{Rule.name}"
            +     * curated_rule = "{CuratedRule.name}"
            +     * ```
            +     * The value for rule or curated_rule must be a valid rule resource name or a
            +     * valid curated rule resource name specified in quotes.
            +     *
            +     * For 'rule', an optional 'revision_id' can be specified which can be used to
            +     * fetch errors for a given revision of the rule. A '-' is also allowed to
            +     * fetch errors across all revisions of the rule. If unspecified, only errors
            +     * corresponding to the most recent revision of the rule will be returned. So
            +     * these variations are all allowed:
            +     * ```
            +     * rule = "{Rule.name}"
            +     * rule = "{Rule.name}@{Rule.revision_id}"
            +     * rule = "{Rule.name}@-"
            +     * ```
            +     * Revision IDs are not supported for curated rules.
            +     * 
            + * + * string filter = 4; + * + * @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; + } + } + + /** + * + * + *
            +     * A filter that can be used to retrieve specific rule execution errors.
            +     * Only the following filters are allowed:
            +     * ```
            +     * rule = "{Rule.name}"
            +     * curated_rule = "{CuratedRule.name}"
            +     * ```
            +     * The value for rule or curated_rule must be a valid rule resource name or a
            +     * valid curated rule resource name specified in quotes.
            +     *
            +     * For 'rule', an optional 'revision_id' can be specified which can be used to
            +     * fetch errors for a given revision of the rule. A '-' is also allowed to
            +     * fetch errors across all revisions of the rule. If unspecified, only errors
            +     * corresponding to the most recent revision of the rule will be returned. So
            +     * these variations are all allowed:
            +     * ```
            +     * rule = "{Rule.name}"
            +     * rule = "{Rule.name}@{Rule.revision_id}"
            +     * rule = "{Rule.name}@-"
            +     * ```
            +     * Revision IDs are not supported for curated rules.
            +     * 
            + * + * string filter = 4; + * + * @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; + } + + /** + * + * + *
            +     * A filter that can be used to retrieve specific rule execution errors.
            +     * Only the following filters are allowed:
            +     * ```
            +     * rule = "{Rule.name}"
            +     * curated_rule = "{CuratedRule.name}"
            +     * ```
            +     * The value for rule or curated_rule must be a valid rule resource name or a
            +     * valid curated rule resource name specified in quotes.
            +     *
            +     * For 'rule', an optional 'revision_id' can be specified which can be used to
            +     * fetch errors for a given revision of the rule. A '-' is also allowed to
            +     * fetch errors across all revisions of the rule. If unspecified, only errors
            +     * corresponding to the most recent revision of the rule will be returned. So
            +     * these variations are all allowed:
            +     * ```
            +     * rule = "{Rule.name}"
            +     * rule = "{Rule.name}@{Rule.revision_id}"
            +     * rule = "{Rule.name}@-"
            +     * ```
            +     * Revision IDs are not supported for curated rules.
            +     * 
            + * + * string filter = 4; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A filter that can be used to retrieve specific rule execution errors.
            +     * Only the following filters are allowed:
            +     * ```
            +     * rule = "{Rule.name}"
            +     * curated_rule = "{CuratedRule.name}"
            +     * ```
            +     * The value for rule or curated_rule must be a valid rule resource name or a
            +     * valid curated rule resource name specified in quotes.
            +     *
            +     * For 'rule', an optional 'revision_id' can be specified which can be used to
            +     * fetch errors for a given revision of the rule. A '-' is also allowed to
            +     * fetch errors across all revisions of the rule. If unspecified, only errors
            +     * corresponding to the most recent revision of the rule will be returned. So
            +     * these variations are all allowed:
            +     * ```
            +     * rule = "{Rule.name}"
            +     * rule = "{Rule.name}@{Rule.revision_id}"
            +     * rule = "{Rule.name}@-"
            +     * ```
            +     * Revision IDs are not supported for curated rules.
            +     * 
            + * + * string filter = 4; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest) + private static final com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest(); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuleExecutionErrorsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.chronicle.v1.ListRuleExecutionErrorsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListRuleExecutionErrorsRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListRuleExecutionErrorsRequestOrBuilder.java new file mode 100644 index 000000000000..16749d4533ec --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListRuleExecutionErrorsRequestOrBuilder.java @@ -0,0 +1,176 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/rule_execution_error.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface ListRuleExecutionErrorsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The instance to list rule execution errors from.
            +   * Format:
            +   * projects/{project}/locations/{location}/instances/{instance}
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The instance to list rule execution errors from.
            +   * Format:
            +   * projects/{project}/locations/{location}/instances/{instance}
            +   * 
            + * + * + * 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 rule execution errors to return. The service may
            +   * return fewer than this value. If unspecified, at most 1000 rule execution
            +   * errors will be returned. The maximum value is 10000; values above 10000
            +   * will be coerced to 10000.
            +   * 
            + * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * A page token, received from a previous `ListRuleExecutionErrors` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to `ListRuleExecutionErrors`
            +   * must match the call that provided the page token.
            +   * 
            + * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * A page token, received from a previous `ListRuleExecutionErrors` call.
            +   * Provide this to retrieve the subsequent page.
            +   *
            +   * When paginating, all other parameters provided to `ListRuleExecutionErrors`
            +   * must match the call that provided the page token.
            +   * 
            + * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * A filter that can be used to retrieve specific rule execution errors.
            +   * Only the following filters are allowed:
            +   * ```
            +   * rule = "{Rule.name}"
            +   * curated_rule = "{CuratedRule.name}"
            +   * ```
            +   * The value for rule or curated_rule must be a valid rule resource name or a
            +   * valid curated rule resource name specified in quotes.
            +   *
            +   * For 'rule', an optional 'revision_id' can be specified which can be used to
            +   * fetch errors for a given revision of the rule. A '-' is also allowed to
            +   * fetch errors across all revisions of the rule. If unspecified, only errors
            +   * corresponding to the most recent revision of the rule will be returned. So
            +   * these variations are all allowed:
            +   * ```
            +   * rule = "{Rule.name}"
            +   * rule = "{Rule.name}@{Rule.revision_id}"
            +   * rule = "{Rule.name}@-"
            +   * ```
            +   * Revision IDs are not supported for curated rules.
            +   * 
            + * + * string filter = 4; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * A filter that can be used to retrieve specific rule execution errors.
            +   * Only the following filters are allowed:
            +   * ```
            +   * rule = "{Rule.name}"
            +   * curated_rule = "{CuratedRule.name}"
            +   * ```
            +   * The value for rule or curated_rule must be a valid rule resource name or a
            +   * valid curated rule resource name specified in quotes.
            +   *
            +   * For 'rule', an optional 'revision_id' can be specified which can be used to
            +   * fetch errors for a given revision of the rule. A '-' is also allowed to
            +   * fetch errors across all revisions of the rule. If unspecified, only errors
            +   * corresponding to the most recent revision of the rule will be returned. So
            +   * these variations are all allowed:
            +   * ```
            +   * rule = "{Rule.name}"
            +   * rule = "{Rule.name}@{Rule.revision_id}"
            +   * rule = "{Rule.name}@-"
            +   * ```
            +   * Revision IDs are not supported for curated rules.
            +   * 
            + * + * string filter = 4; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListRuleExecutionErrorsResponse.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListRuleExecutionErrorsResponse.java new file mode 100644 index 000000000000..e7ebbd465030 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListRuleExecutionErrorsResponse.java @@ -0,0 +1,1158 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/rule_execution_error.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
            + * Response message for ListRuleExecutionErrors.
            + * 
            + * + * Protobuf type {@code google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse} + */ +@com.google.protobuf.Generated +public final class ListRuleExecutionErrorsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse) + ListRuleExecutionErrorsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListRuleExecutionErrorsResponse"); + } + + // Use ListRuleExecutionErrorsResponse.newBuilder() to construct. + private ListRuleExecutionErrorsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListRuleExecutionErrorsResponse() { + ruleExecutionErrors_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.RuleExecutionErrorProto + .internal_static_google_cloud_chronicle_v1_ListRuleExecutionErrorsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.RuleExecutionErrorProto + .internal_static_google_cloud_chronicle_v1_ListRuleExecutionErrorsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse.class, + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse.Builder.class); + } + + public static final int RULE_EXECUTION_ERRORS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List ruleExecutionErrors_; + + /** + * + * + *
            +   * List of rule execution errors.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + */ + @java.lang.Override + public java.util.List + getRuleExecutionErrorsList() { + return ruleExecutionErrors_; + } + + /** + * + * + *
            +   * List of rule execution errors.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + */ + @java.lang.Override + public java.util.List + getRuleExecutionErrorsOrBuilderList() { + return ruleExecutionErrors_; + } + + /** + * + * + *
            +   * List of rule execution errors.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + */ + @java.lang.Override + public int getRuleExecutionErrorsCount() { + return ruleExecutionErrors_.size(); + } + + /** + * + * + *
            +   * List of rule execution errors.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.RuleExecutionError getRuleExecutionErrors(int index) { + return ruleExecutionErrors_.get(index); + } + + /** + * + * + *
            +   * List of rule execution errors.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.RuleExecutionErrorOrBuilder getRuleExecutionErrorsOrBuilder( + int index) { + return ruleExecutionErrors_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * 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, which can be sent as `page_token` to retrieve the next page.
            +   * 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 < ruleExecutionErrors_.size(); i++) { + output.writeMessage(1, ruleExecutionErrors_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < ruleExecutionErrors_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, ruleExecutionErrors_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.chronicle.v1.ListRuleExecutionErrorsResponse)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse other = + (com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse) obj; + + if (!getRuleExecutionErrorsList().equals(other.getRuleExecutionErrorsList())) 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 (getRuleExecutionErrorsCount() > 0) { + hash = (37 * hash) + RULE_EXECUTION_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getRuleExecutionErrorsList().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.chronicle.v1.ListRuleExecutionErrorsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse 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.chronicle.v1.ListRuleExecutionErrorsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse parseFrom( + 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.chronicle.v1.ListRuleExecutionErrorsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response message for ListRuleExecutionErrors.
            +   * 
            + * + * Protobuf type {@code google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse) + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.RuleExecutionErrorProto + .internal_static_google_cloud_chronicle_v1_ListRuleExecutionErrorsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.RuleExecutionErrorProto + .internal_static_google_cloud_chronicle_v1_ListRuleExecutionErrorsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse.class, + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (ruleExecutionErrorsBuilder_ == null) { + ruleExecutionErrors_ = java.util.Collections.emptyList(); + } else { + ruleExecutionErrors_ = null; + ruleExecutionErrorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.RuleExecutionErrorProto + .internal_static_google_cloud_chronicle_v1_ListRuleExecutionErrorsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse + getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse build() { + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse buildPartial() { + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse result = + new com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse result) { + if (ruleExecutionErrorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + ruleExecutionErrors_ = java.util.Collections.unmodifiableList(ruleExecutionErrors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ruleExecutionErrors_ = ruleExecutionErrors_; + } else { + result.ruleExecutionErrors_ = ruleExecutionErrorsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse) { + return mergeFrom((com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse other) { + if (other + == com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse.getDefaultInstance()) + return this; + if (ruleExecutionErrorsBuilder_ == null) { + if (!other.ruleExecutionErrors_.isEmpty()) { + if (ruleExecutionErrors_.isEmpty()) { + ruleExecutionErrors_ = other.ruleExecutionErrors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRuleExecutionErrorsIsMutable(); + ruleExecutionErrors_.addAll(other.ruleExecutionErrors_); + } + onChanged(); + } + } else { + if (!other.ruleExecutionErrors_.isEmpty()) { + if (ruleExecutionErrorsBuilder_.isEmpty()) { + ruleExecutionErrorsBuilder_.dispose(); + ruleExecutionErrorsBuilder_ = null; + ruleExecutionErrors_ = other.ruleExecutionErrors_; + bitField0_ = (bitField0_ & ~0x00000001); + ruleExecutionErrorsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRuleExecutionErrorsFieldBuilder() + : null; + } else { + ruleExecutionErrorsBuilder_.addAllMessages(other.ruleExecutionErrors_); + } + } + } + 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.chronicle.v1.RuleExecutionError m = + input.readMessage( + com.google.cloud.chronicle.v1.RuleExecutionError.parser(), + extensionRegistry); + if (ruleExecutionErrorsBuilder_ == null) { + ensureRuleExecutionErrorsIsMutable(); + ruleExecutionErrors_.add(m); + } else { + ruleExecutionErrorsBuilder_.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 ruleExecutionErrors_ = + java.util.Collections.emptyList(); + + private void ensureRuleExecutionErrorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + ruleExecutionErrors_ = + new java.util.ArrayList( + ruleExecutionErrors_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.RuleExecutionError, + com.google.cloud.chronicle.v1.RuleExecutionError.Builder, + com.google.cloud.chronicle.v1.RuleExecutionErrorOrBuilder> + ruleExecutionErrorsBuilder_; + + /** + * + * + *
            +     * List of rule execution errors.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + * + */ + public java.util.List + getRuleExecutionErrorsList() { + if (ruleExecutionErrorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(ruleExecutionErrors_); + } else { + return ruleExecutionErrorsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * List of rule execution errors.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + * + */ + public int getRuleExecutionErrorsCount() { + if (ruleExecutionErrorsBuilder_ == null) { + return ruleExecutionErrors_.size(); + } else { + return ruleExecutionErrorsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * List of rule execution errors.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + * + */ + public com.google.cloud.chronicle.v1.RuleExecutionError getRuleExecutionErrors(int index) { + if (ruleExecutionErrorsBuilder_ == null) { + return ruleExecutionErrors_.get(index); + } else { + return ruleExecutionErrorsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * List of rule execution errors.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + * + */ + public Builder setRuleExecutionErrors( + int index, com.google.cloud.chronicle.v1.RuleExecutionError value) { + if (ruleExecutionErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleExecutionErrorsIsMutable(); + ruleExecutionErrors_.set(index, value); + onChanged(); + } else { + ruleExecutionErrorsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of rule execution errors.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + * + */ + public Builder setRuleExecutionErrors( + int index, com.google.cloud.chronicle.v1.RuleExecutionError.Builder builderForValue) { + if (ruleExecutionErrorsBuilder_ == null) { + ensureRuleExecutionErrorsIsMutable(); + ruleExecutionErrors_.set(index, builderForValue.build()); + onChanged(); + } else { + ruleExecutionErrorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of rule execution errors.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + * + */ + public Builder addRuleExecutionErrors(com.google.cloud.chronicle.v1.RuleExecutionError value) { + if (ruleExecutionErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleExecutionErrorsIsMutable(); + ruleExecutionErrors_.add(value); + onChanged(); + } else { + ruleExecutionErrorsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * List of rule execution errors.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + * + */ + public Builder addRuleExecutionErrors( + int index, com.google.cloud.chronicle.v1.RuleExecutionError value) { + if (ruleExecutionErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleExecutionErrorsIsMutable(); + ruleExecutionErrors_.add(index, value); + onChanged(); + } else { + ruleExecutionErrorsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * List of rule execution errors.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + * + */ + public Builder addRuleExecutionErrors( + com.google.cloud.chronicle.v1.RuleExecutionError.Builder builderForValue) { + if (ruleExecutionErrorsBuilder_ == null) { + ensureRuleExecutionErrorsIsMutable(); + ruleExecutionErrors_.add(builderForValue.build()); + onChanged(); + } else { + ruleExecutionErrorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of rule execution errors.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + * + */ + public Builder addRuleExecutionErrors( + int index, com.google.cloud.chronicle.v1.RuleExecutionError.Builder builderForValue) { + if (ruleExecutionErrorsBuilder_ == null) { + ensureRuleExecutionErrorsIsMutable(); + ruleExecutionErrors_.add(index, builderForValue.build()); + onChanged(); + } else { + ruleExecutionErrorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * List of rule execution errors.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + * + */ + public Builder addAllRuleExecutionErrors( + java.lang.Iterable values) { + if (ruleExecutionErrorsBuilder_ == null) { + ensureRuleExecutionErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ruleExecutionErrors_); + onChanged(); + } else { + ruleExecutionErrorsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * List of rule execution errors.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + * + */ + public Builder clearRuleExecutionErrors() { + if (ruleExecutionErrorsBuilder_ == null) { + ruleExecutionErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + ruleExecutionErrorsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * List of rule execution errors.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + * + */ + public Builder removeRuleExecutionErrors(int index) { + if (ruleExecutionErrorsBuilder_ == null) { + ensureRuleExecutionErrorsIsMutable(); + ruleExecutionErrors_.remove(index); + onChanged(); + } else { + ruleExecutionErrorsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * List of rule execution errors.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + * + */ + public com.google.cloud.chronicle.v1.RuleExecutionError.Builder getRuleExecutionErrorsBuilder( + int index) { + return internalGetRuleExecutionErrorsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * List of rule execution errors.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + * + */ + public com.google.cloud.chronicle.v1.RuleExecutionErrorOrBuilder + getRuleExecutionErrorsOrBuilder(int index) { + if (ruleExecutionErrorsBuilder_ == null) { + return ruleExecutionErrors_.get(index); + } else { + return ruleExecutionErrorsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * List of rule execution errors.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + * + */ + public java.util.List + getRuleExecutionErrorsOrBuilderList() { + if (ruleExecutionErrorsBuilder_ != null) { + return ruleExecutionErrorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ruleExecutionErrors_); + } + } + + /** + * + * + *
            +     * List of rule execution errors.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + * + */ + public com.google.cloud.chronicle.v1.RuleExecutionError.Builder + addRuleExecutionErrorsBuilder() { + return internalGetRuleExecutionErrorsFieldBuilder() + .addBuilder(com.google.cloud.chronicle.v1.RuleExecutionError.getDefaultInstance()); + } + + /** + * + * + *
            +     * List of rule execution errors.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + * + */ + public com.google.cloud.chronicle.v1.RuleExecutionError.Builder addRuleExecutionErrorsBuilder( + int index) { + return internalGetRuleExecutionErrorsFieldBuilder() + .addBuilder(index, com.google.cloud.chronicle.v1.RuleExecutionError.getDefaultInstance()); + } + + /** + * + * + *
            +     * List of rule execution errors.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + * + */ + public java.util.List + getRuleExecutionErrorsBuilderList() { + return internalGetRuleExecutionErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.RuleExecutionError, + com.google.cloud.chronicle.v1.RuleExecutionError.Builder, + com.google.cloud.chronicle.v1.RuleExecutionErrorOrBuilder> + internalGetRuleExecutionErrorsFieldBuilder() { + if (ruleExecutionErrorsBuilder_ == null) { + ruleExecutionErrorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.RuleExecutionError, + com.google.cloud.chronicle.v1.RuleExecutionError.Builder, + com.google.cloud.chronicle.v1.RuleExecutionErrorOrBuilder>( + ruleExecutionErrors_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + ruleExecutionErrors_ = null; + } + return ruleExecutionErrorsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token, which can be sent as `page_token` to retrieve the next page.
            +     * 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, which can be sent as `page_token` to retrieve the next page.
            +     * 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, which can be sent as `page_token` to retrieve the next page.
            +     * 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, which can be sent as `page_token` to retrieve the next page.
            +     * 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, which can be sent as `page_token` to retrieve the next page.
            +     * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse) + private static final com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse(); + } + + public static com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRuleExecutionErrorsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.chronicle.v1.ListRuleExecutionErrorsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListRuleExecutionErrorsResponseOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListRuleExecutionErrorsResponseOrBuilder.java new file mode 100644 index 000000000000..9483b333240c --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ListRuleExecutionErrorsResponseOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/rule_execution_error.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface ListRuleExecutionErrorsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * List of rule execution errors.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + */ + java.util.List getRuleExecutionErrorsList(); + + /** + * + * + *
            +   * List of rule execution errors.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + */ + com.google.cloud.chronicle.v1.RuleExecutionError getRuleExecutionErrors(int index); + + /** + * + * + *
            +   * List of rule execution errors.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + */ + int getRuleExecutionErrorsCount(); + + /** + * + * + *
            +   * List of rule execution errors.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + */ + java.util.List + getRuleExecutionErrorsOrBuilderList(); + + /** + * + * + *
            +   * List of rule execution errors.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.RuleExecutionError rule_execution_errors = 1; + */ + com.google.cloud.chronicle.v1.RuleExecutionErrorOrBuilder getRuleExecutionErrorsOrBuilder( + int index); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * If this field is omitted, there are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token, which can be sent as `page_token` to retrieve the next page.
            +   * 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-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListError.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListError.java new file mode 100644 index 000000000000..b16f68ea6b1a --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListError.java @@ -0,0 +1,697 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/reference_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
            + * The error generated when verifying the reference list.
            + * 
            + * + * Protobuf type {@code google.cloud.chronicle.v1.ReferenceListError} + */ +@com.google.protobuf.Generated +public final class ReferenceListError extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.ReferenceListError) + ReferenceListErrorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ReferenceListError"); + } + + // Use ReferenceListError.newBuilder() to construct. + private ReferenceListError(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ReferenceListError() { + errorMessage_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.ReferenceListProto + .internal_static_google_cloud_chronicle_v1_ReferenceListError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.ReferenceListProto + .internal_static_google_cloud_chronicle_v1_ReferenceListError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ReferenceListError.class, + com.google.cloud.chronicle.v1.ReferenceListError.Builder.class); + } + + public static final int LINE_NUMBER_FIELD_NUMBER = 1; + private int lineNumber_ = 0; + + /** + * + * + *
            +   * 1-indexed line number where the error occurs.
            +   * General list errors are indexed at -1.
            +   * 
            + * + * int32 line_number = 1; + * + * @return The lineNumber. + */ + @java.lang.Override + public int getLineNumber() { + return lineNumber_; + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + + /** + * + * + *
            +   * Message explaining why the line is invalid.
            +   * 
            + * + * string error_message = 2; + * + * @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; + } + } + + /** + * + * + *
            +   * Message explaining why the line is invalid.
            +   * 
            + * + * string error_message = 2; + * + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (lineNumber_ != 0) { + output.writeInt32(1, lineNumber_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, errorMessage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (lineNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, lineNumber_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, errorMessage_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.chronicle.v1.ReferenceListError)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.ReferenceListError other = + (com.google.cloud.chronicle.v1.ReferenceListError) obj; + + if (getLineNumber() != other.getLineNumber()) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LINE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getLineNumber(); + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.ReferenceListError parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ReferenceListError 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.chronicle.v1.ReferenceListError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ReferenceListError parseFrom( + 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.chronicle.v1.ReferenceListError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.ReferenceListError parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ReferenceListError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ReferenceListError parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ReferenceListError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ReferenceListError parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.ReferenceListError parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.ReferenceListError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.chronicle.v1.ReferenceListError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * The error generated when verifying the reference list.
            +   * 
            + * + * Protobuf type {@code google.cloud.chronicle.v1.ReferenceListError} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.ReferenceListError) + com.google.cloud.chronicle.v1.ReferenceListErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.ReferenceListProto + .internal_static_google_cloud_chronicle_v1_ReferenceListError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.ReferenceListProto + .internal_static_google_cloud_chronicle_v1_ReferenceListError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.ReferenceListError.class, + com.google.cloud.chronicle.v1.ReferenceListError.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.ReferenceListError.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + lineNumber_ = 0; + errorMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.ReferenceListProto + .internal_static_google_cloud_chronicle_v1_ReferenceListError_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ReferenceListError getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.ReferenceListError.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ReferenceListError build() { + com.google.cloud.chronicle.v1.ReferenceListError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.ReferenceListError buildPartial() { + com.google.cloud.chronicle.v1.ReferenceListError result = + new com.google.cloud.chronicle.v1.ReferenceListError(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.ReferenceListError result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.lineNumber_ = lineNumber_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.errorMessage_ = errorMessage_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.ReferenceListError) { + return mergeFrom((com.google.cloud.chronicle.v1.ReferenceListError) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.ReferenceListError other) { + if (other == com.google.cloud.chronicle.v1.ReferenceListError.getDefaultInstance()) + return this; + if (other.getLineNumber() != 0) { + setLineNumber(other.getLineNumber()); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + 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: + { + lineNumber_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + errorMessage_ = 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 lineNumber_; + + /** + * + * + *
            +     * 1-indexed line number where the error occurs.
            +     * General list errors are indexed at -1.
            +     * 
            + * + * int32 line_number = 1; + * + * @return The lineNumber. + */ + @java.lang.Override + public int getLineNumber() { + return lineNumber_; + } + + /** + * + * + *
            +     * 1-indexed line number where the error occurs.
            +     * General list errors are indexed at -1.
            +     * 
            + * + * int32 line_number = 1; + * + * @param value The lineNumber to set. + * @return This builder for chaining. + */ + public Builder setLineNumber(int value) { + + lineNumber_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * 1-indexed line number where the error occurs.
            +     * General list errors are indexed at -1.
            +     * 
            + * + * int32 line_number = 1; + * + * @return This builder for chaining. + */ + public Builder clearLineNumber() { + bitField0_ = (bitField0_ & ~0x00000001); + lineNumber_ = 0; + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + + /** + * + * + *
            +     * Message explaining why the line is invalid.
            +     * 
            + * + * string error_message = 2; + * + * @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; + } + } + + /** + * + * + *
            +     * Message explaining why the line is invalid.
            +     * 
            + * + * string error_message = 2; + * + * @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; + } + } + + /** + * + * + *
            +     * Message explaining why the line is invalid.
            +     * 
            + * + * string error_message = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Message explaining why the line is invalid.
            +     * 
            + * + * string error_message = 2; + * + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Message explaining why the line is invalid.
            +     * 
            + * + * string error_message = 2; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.ReferenceListError) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.ReferenceListError) + private static final com.google.cloud.chronicle.v1.ReferenceListError DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.ReferenceListError(); + } + + public static com.google.cloud.chronicle.v1.ReferenceListError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReferenceListError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.chronicle.v1.ReferenceListError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListErrorOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListErrorOrBuilder.java new file mode 100644 index 000000000000..1a5bb3edfa7f --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListErrorOrBuilder.java @@ -0,0 +1,68 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/reference_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface ReferenceListErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.ReferenceListError) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * 1-indexed line number where the error occurs.
            +   * General list errors are indexed at -1.
            +   * 
            + * + * int32 line_number = 1; + * + * @return The lineNumber. + */ + int getLineNumber(); + + /** + * + * + *
            +   * Message explaining why the line is invalid.
            +   * 
            + * + * string error_message = 2; + * + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + + /** + * + * + *
            +   * Message explaining why the line is invalid.
            +   * 
            + * + * string error_message = 2; + * + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString getErrorMessageBytes(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListProto.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListProto.java index 45d572bfc4a4..697dd5e5973b 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListProto.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/ReferenceListProto.java @@ -68,6 +68,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_chronicle_v1_UpdateReferenceListRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_chronicle_v1_UpdateReferenceListRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_VerifyReferenceListRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_VerifyReferenceListRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_VerifyReferenceListResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_VerifyReferenceListResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_chronicle_v1_ReferenceList_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -76,6 +84,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_chronicle_v1_ReferenceListEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_chronicle_v1_ReferenceListEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_ReferenceListError_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_ReferenceListError_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -85,94 +97,109 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + ".google/cloud/chronicle/v1/reference_li" + "\n.google/cloud/chronicle/v1/reference_li" + "st.proto\022\031google.cloud.chronicle.v1\032\034goo" + "gle/api/annotations.proto\032\027google/api/cl" - + "ient.proto\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"]\n" - + "\tScopeInfo\022P\n" - + "\024reference_list_scope\030\002" - + " \001(\0132-.google.cloud.chronicle.v1.ReferenceListScopeB\003\340A\002\".\n" - + "\022ReferenceListScope\022\030\n" - + "\013scope_names\030\001 \003(\tB\003\340A\001\"\223\001\n" - + "\027GetReferenceListRequest\022<\n" - + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&chronicle.googleapis.com/ReferenceList\022:\n" - + "\004view\030\002 \001(\0162,.google.cloud.chronicle.v1.ReferenceListView\"\276\001\n" - + "\031ListReferenceListsRequest\022>\n" - + "\006parent\030\001 \001(\tB.\340A" - + "\002\372A(\022&chronicle.googleapis.com/ReferenceList\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\022:\n" - + "\004view\030\004 \001(\0162,.google.cloud.chronicle.v1.ReferenceListView\"x\n" - + "\032ListReferenceListsResponse\022A\n" - + "\017reference_lists\030\001 \003(\0132(" - + ".google.cloud.chronicle.v1.ReferenceList\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\303\001\n" - + "\032CreateReferenceListRequest\022>\n" - + "\006parent\030\001 \001(\tB.\340A\002\372A(" - + "\022&chronicle.googleapis.com/ReferenceList\022E\n" - + "\016reference_list\030\002" - + " \001(\0132(.google.cloud.chronicle.v1.ReferenceListB\003\340A\002\022\036\n" - + "\021reference_list_id\030\003 \001(\tB\003\340A\002\"\224\001\n" - + "\032UpdateReferenceListRequest\022E\n" - + "\016reference_list\030\001 \001(\0132(" - + ".google.cloud.chronicle.v1.ReferenceListB\003\340A\002\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\252\004\n\r" - + "ReferenceList\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" - + "\014display_name\030\002 \001(\tB\003\340A\003\022=\n" - + "\024revision_create_time\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\030\n" - + "\013description\030\004 \001(\tB\003\340A\002\022C\n" - + "\007entries\030\005" - + " \003(\0132-.google.cloud.chronicle.v1.ReferenceListEntryB\003\340A\002\022\022\n" - + "\005rules\030\006 \003(\tB\003\340A\003\022L\n" - + "\013syntax_type\030\010 \001(\01622." - + "google.cloud.chronicle.v1.ReferenceListSyntaxTypeB\003\340A\002\022$\n" - + "\027rule_associations_count\030\t \001(\005B\003\340A\003\0228\n\n" - + "scope_info\030\013" - + " \001(\0132$.google.cloud.chronicle.v1.ScopeInfo:\212\001\352A\206\001\n" - + "&chronicle.googleapis.com/ReferenceList\022\\projects/{project}/locations/{location}/i" - + "nstances/{instance}/referenceLists/{reference_list}\"(\n" - + "\022ReferenceListEntry\022\022\n" - + "\005value\030\001 \001(\tB\003\340A\002*\302\001\n" - + "\027ReferenceListSyntaxType\022*\n" - + "&REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED\020\000\0220\n" - + ",REFERENCE_LIST_SYNTAX_TYPE_PLAIN_TEXT_STRING\020\001\022$\n" - + " REFERENCE_LIST_SYNTAX_TYPE_REGEX\020\002\022#\n" - + "\037REFERENCE_LIST_SYNTAX_TYPE_CIDR\020\003*u\n" - + "\021ReferenceListView\022#\n" - + "\037REFERENCE_LIST_VIEW_UNSPECIFIED\020\000\022\035\n" - + "\031REFERENCE_LIST_VIEW_BASIC\020\001\022\034\n" - + "\030REFERENCE_LIST_VIEW_FULL\020\0022\365\007\n" - + "\024ReferenceListService\022\277\001\n" - + "\020GetReferenceList\0222.google.cloud.chronicle" - + ".v1.GetReferenceListRequest\032(.google.clo" - + "ud.chronicle.v1.ReferenceList\"M\332A\004name\202\323" - + "\344\223\002@\022>/v1/{name=projects/*/locations/*/instances/*/referenceLists/*}\022\322\001\n" - + "\022ListReferenceLists\0224.google.cloud.chronicle.v1." - + "ListReferenceListsRequest\0325.google.cloud.chronicle.v1.ListReferenceListsResponse" - + "\"O\332A\006parent\202\323\344\223\002@\022>/v1/{parent=projects/" - + "*/locations/*/instances/*}/referenceLists\022\371\001\n" - + "\023CreateReferenceList\0225.google.cloud.chronicle.v1.CreateReferenceListRequest" - + "\032(.google.cloud.chronicle.v1.ReferenceLi" - + "st\"\200\001\332A\'parent,reference_list,reference_" - + "list_id\202\323\344\223\002P\">/v1/{parent=projects/*/lo" - + "cations/*/instances/*}/referenceLists:\016reference_list\022\373\001\n" - + "\023UpdateReferenceList\0225.google.cloud.chronicle.v1.UpdateReferenc" - + "eListRequest\032(.google.cloud.chronicle.v1" - + ".ReferenceList\"\202\001\332A\032reference_list,updat" - + "e_mask\202\323\344\223\002_2M/v1/{reference_list.name=p" - + "rojects/*/locations/*/instances/*/refere" - + "nceLists/*}:\016reference_list\032L\312A\030chronicl" - + "e.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\311\001\n" - + "\035com.google.cloud.chronicle.v1B\022ReferenceListProtoP" - + "\001Z;cloud.google.com/go/chronicle/apiv1/c" - + "hroniclepb;chroniclepb\252\002\031Google.Cloud.Ch" - + "ronicle.V1\312\002\031Google\\Cloud\\Chronicle\\V1\352\002" - + "\034Google::Cloud::Chronicle::V1b\006proto3" + + "ient.proto\032\037google/api/field_behavior.pr" + + "oto\032\031google/api/resource.proto\032 google/p" + + "rotobuf/field_mask.proto\032\037google/protobu" + + "f/timestamp.proto\"]\n\tScopeInfo\022P\n\024refere" + + "nce_list_scope\030\002 \001(\0132-.google.cloud.chro" + + "nicle.v1.ReferenceListScopeB\003\340A\002\".\n\022Refe" + + "renceListScope\022\030\n\013scope_names\030\001 \003(\tB\003\340A\001" + + "\"\223\001\n\027GetReferenceListRequest\022<\n\004name\030\001 \001" + + "(\tB.\340A\002\372A(\n&chronicle.googleapis.com/Ref" + + "erenceList\022:\n\004view\030\002 \001(\0162,.google.cloud." + + "chronicle.v1.ReferenceListView\"\276\001\n\031ListR" + + "eferenceListsRequest\022>\n\006parent\030\001 \001(\tB.\340A" + + "\002\372A(\022&chronicle.googleapis.com/Reference" + + "List\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\022:\n\004view\030\004 \001(\0162,.google.cloud.chronic" + + "le.v1.ReferenceListView\"x\n\032ListReference" + + "ListsResponse\022A\n\017reference_lists\030\001 \003(\0132(" + + ".google.cloud.chronicle.v1.ReferenceList" + + "\022\027\n\017next_page_token\030\002 \001(\t\"\303\001\n\032CreateRefe" + + "renceListRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(" + + "\022&chronicle.googleapis.com/ReferenceList" + + "\022E\n\016reference_list\030\002 \001(\0132(.google.cloud." + + "chronicle.v1.ReferenceListB\003\340A\002\022\036\n\021refer" + + "ence_list_id\030\003 \001(\tB\003\340A\002\"\224\001\n\032UpdateRefere" + + "nceListRequest\022E\n\016reference_list\030\001 \001(\0132(" + + ".google.cloud.chronicle.v1.ReferenceList" + + "B\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMask\"\354\001\n\032VerifyReferenceListRe" + + "quest\022;\n\010instance\030\001 \001(\tB)\340A\002\372A#\n!chronic" + + "le.googleapis.com/Instance\022L\n\013syntax_typ" + + "e\030\002 \001(\01622.google.cloud.chronicle.v1.Refe" + + "renceListSyntaxTypeB\003\340A\002\022C\n\007entries\030\003 \003(" + + "\0132-.google.cloud.chronicle.v1.ReferenceL" + + "istEntryB\003\340A\002\"m\n\033VerifyReferenceListResp" + + "onse\022\017\n\007success\030\001 \001(\010\022=\n\006errors\030\002 \003(\0132-." + + "google.cloud.chronicle.v1.ReferenceListE" + + "rror\"\252\004\n\rReferenceList\022\021\n\004name\030\001 \001(\tB\003\340A" + + "\010\022\031\n\014display_name\030\002 \001(\tB\003\340A\003\022=\n\024revision" + + "_create_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estampB\003\340A\003\022\030\n\013description\030\004 \001(\tB\003\340A\002\022C\n" + + "\007entries\030\005 \003(\0132-.google.cloud.chronicle." + + "v1.ReferenceListEntryB\003\340A\002\022\022\n\005rules\030\006 \003(" + + "\tB\003\340A\003\022L\n\013syntax_type\030\010 \001(\01622.google.clo" + + "ud.chronicle.v1.ReferenceListSyntaxTypeB" + + "\003\340A\002\022$\n\027rule_associations_count\030\t \001(\005B\003\340" + + "A\003\0228\n\nscope_info\030\013 \001(\0132$.google.cloud.ch" + + "ronicle.v1.ScopeInfo:\212\001\352A\206\001\n&chronicle.g" + + "oogleapis.com/ReferenceList\022\\projects/{p" + + "roject}/locations/{location}/instances/{" + + "instance}/referenceLists/{reference_list" + + "}\"(\n\022ReferenceListEntry\022\022\n\005value\030\001 \001(\tB\003" + + "\340A\002\"@\n\022ReferenceListError\022\023\n\013line_number" + + "\030\001 \001(\005\022\025\n\rerror_message\030\002 \001(\t*\302\001\n\027Refere" + + "nceListSyntaxType\022*\n&REFERENCE_LIST_SYNT" + + "AX_TYPE_UNSPECIFIED\020\000\0220\n,REFERENCE_LIST_" + + "SYNTAX_TYPE_PLAIN_TEXT_STRING\020\001\022$\n REFER" + + "ENCE_LIST_SYNTAX_TYPE_REGEX\020\002\022#\n\037REFEREN" + + "CE_LIST_SYNTAX_TYPE_CIDR\020\003*u\n\021ReferenceL" + + "istView\022#\n\037REFERENCE_LIST_VIEW_UNSPECIFI" + + "ED\020\000\022\035\n\031REFERENCE_LIST_VIEW_BASIC\020\001\022\034\n\030R" + + "EFERENCE_LIST_VIEW_FULL\020\0022\255\n\n\024ReferenceL" + + "istService\022\277\001\n\020GetReferenceList\0222.google" + + ".cloud.chronicle.v1.GetReferenceListRequ" + + "est\032(.google.cloud.chronicle.v1.Referenc" + + "eList\"M\332A\004name\202\323\344\223\002@\022>/v1/{name=projects" + + "/*/locations/*/instances/*/referenceList" + + "s/*}\022\322\001\n\022ListReferenceLists\0224.google.clo" + + "ud.chronicle.v1.ListReferenceListsReques" + + "t\0325.google.cloud.chronicle.v1.ListRefere" + + "nceListsResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1/{" + + "parent=projects/*/locations/*/instances/" + + "*}/referenceLists\022\371\001\n\023CreateReferenceLis" + + "t\0225.google.cloud.chronicle.v1.CreateRefe" + + "renceListRequest\032(.google.cloud.chronicl" + + "e.v1.ReferenceList\"\200\001\332A\'parent,reference" + + "_list,reference_list_id\202\323\344\223\002P\">/v1/{pare" + + "nt=projects/*/locations/*/instances/*}/r" + + "eferenceLists:\016reference_list\022\373\001\n\023Update" + + "ReferenceList\0225.google.cloud.chronicle.v" + + "1.UpdateReferenceListRequest\032(.google.cl" + + "oud.chronicle.v1.ReferenceList\"\202\001\332A\032refe" + + "rence_list,update_mask\202\323\344\223\002_2M/v1/{refer" + + "ence_list.name=projects/*/locations/*/in" + + "stances/*/referenceLists/*}:\016reference_l" + + "ist\022\326\001\n\023VerifyReferenceList\0225.google.clo" + + "ud.chronicle.v1.VerifyReferenceListReque" + + "st\0326.google.cloud.chronicle.v1.VerifyRef" + + "erenceListResponse\"P\202\323\344\223\002J\"E/v1/{instanc" + + "e=projects/*/locations/*/instances/*}:ve" + + "rifyReferenceList:\001*\032\252\001\312A\030chronicle.goog" + + "leapis.com\322A\213\001https://www.googleapis.com" + + "/auth/chronicle,https://www.googleapis.c" + + "om/auth/chronicle.readonly,https://www.g" + + "oogleapis.com/auth/cloud-platformB\311\001\n\035co" + + "m.google.cloud.chronicle.v1B\022ReferenceLi" + + "stProtoP\001Z;cloud.google.com/go/chronicle" + + "/apiv1/chroniclepb;chroniclepb\252\002\031Google." + + "Cloud.Chronicle.V1\312\002\031Google\\Cloud\\Chroni" + + "cle\\V1\352\002\034Google::Cloud::Chronicle::V1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -241,8 +268,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ReferenceList", "UpdateMask", }); - internal_static_google_cloud_chronicle_v1_ReferenceList_descriptor = + internal_static_google_cloud_chronicle_v1_VerifyReferenceListRequest_descriptor = getDescriptor().getMessageType(7); + internal_static_google_cloud_chronicle_v1_VerifyReferenceListRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_VerifyReferenceListRequest_descriptor, + new java.lang.String[] { + "Instance", "SyntaxType", "Entries", + }); + internal_static_google_cloud_chronicle_v1_VerifyReferenceListResponse_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_chronicle_v1_VerifyReferenceListResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_VerifyReferenceListResponse_descriptor, + new java.lang.String[] { + "Success", "Errors", + }); + internal_static_google_cloud_chronicle_v1_ReferenceList_descriptor = + getDescriptor().getMessageType(9); internal_static_google_cloud_chronicle_v1_ReferenceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_chronicle_v1_ReferenceList_descriptor, @@ -258,13 +301,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ScopeInfo", }); internal_static_google_cloud_chronicle_v1_ReferenceListEntry_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(10); internal_static_google_cloud_chronicle_v1_ReferenceListEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_chronicle_v1_ReferenceListEntry_descriptor, new java.lang.String[] { "Value", }); + internal_static_google_cloud_chronicle_v1_ReferenceListError_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_chronicle_v1_ReferenceListError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_ReferenceListError_descriptor, + new java.lang.String[] { + "LineNumber", "ErrorMessage", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionError.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionError.java new file mode 100644 index 000000000000..bc83c4a70fa3 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionError.java @@ -0,0 +1,1803 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/rule_execution_error.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
            + * The RuleExecutionError resource represents an error generated from
            + * running/deploying a rule.
            + * 
            + * + * Protobuf type {@code google.cloud.chronicle.v1.RuleExecutionError} + */ +@com.google.protobuf.Generated +public final class RuleExecutionError extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.RuleExecutionError) + RuleExecutionErrorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RuleExecutionError"); + } + + // Use RuleExecutionError.newBuilder() to construct. + private RuleExecutionError(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RuleExecutionError() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.RuleExecutionErrorProto + .internal_static_google_cloud_chronicle_v1_RuleExecutionError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.RuleExecutionErrorProto + .internal_static_google_cloud_chronicle_v1_RuleExecutionError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.RuleExecutionError.class, + com.google.cloud.chronicle.v1.RuleExecutionError.Builder.class); + } + + 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 { + RULE(4), + CURATED_RULE(5), + 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 4: + return RULE; + case 5: + return CURATED_RULE; + 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 RULE_FIELD_NUMBER = 4; + + /** + * + * + *
            +   * Output only. The resource name of the rule that generated the rule
            +   * execution error.
            +   * 
            + * + * + * string rule = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the rule field is set. + */ + public boolean hasRule() { + return sourceCase_ == 4; + } + + /** + * + * + *
            +   * Output only. The resource name of the rule that generated the rule
            +   * execution error.
            +   * 
            + * + * + * string rule = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The rule. + */ + public java.lang.String getRule() { + java.lang.Object ref = ""; + if (sourceCase_ == 4) { + ref = source_; + } + if (ref instanceof java.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 (sourceCase_ == 4) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
            +   * Output only. The resource name of the rule that generated the rule
            +   * execution error.
            +   * 
            + * + * + * string rule = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rule. + */ + public com.google.protobuf.ByteString getRuleBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 4) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 4) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CURATED_RULE_FIELD_NUMBER = 5; + + /** + * + * + *
            +   * Output only. The resource name of the curated rule that generated the
            +   * rule execution error.
            +   * 
            + * + * + * string curated_rule = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the curatedRule field is set. + */ + public boolean hasCuratedRule() { + return sourceCase_ == 5; + } + + /** + * + * + *
            +   * Output only. The resource name of the curated rule that generated the
            +   * rule execution error.
            +   * 
            + * + * + * string curated_rule = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The curatedRule. + */ + public java.lang.String getCuratedRule() { + java.lang.Object ref = ""; + if (sourceCase_ == 5) { + ref = source_; + } + if (ref instanceof java.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 (sourceCase_ == 5) { + source_ = s; + } + return s; + } + } + + /** + * + * + *
            +   * Output only. The resource name of the curated rule that generated the
            +   * rule execution error.
            +   * 
            + * + * + * string curated_rule = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for curatedRule. + */ + public com.google.protobuf.ByteString getCuratedRuleBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 5) { + ref = source_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 5) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Output only. The resource name of the rule execution error.
            +   * Format:
            +   * projects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error}
            +   * 
            + * + * 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 resource name of the rule execution error.
            +   * Format:
            +   * projects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error}
            +   * 
            + * + * 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 ERROR_FIELD_NUMBER = 2; + private com.google.rpc.Status error_; + + /** + * + * + *
            +   * Output only. The error status corresponding with the rule execution error.
            +   * 
            + * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Output only. The error status corresponding with the rule execution error.
            +   * 
            + * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + /** + * + * + *
            +   * Output only. The error status corresponding with the rule execution error.
            +   * 
            + * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + public static final int TIME_RANGE_FIELD_NUMBER = 3; + private com.google.type.Interval timeRange_; + + /** + * + * + *
            +   * Output only. The event time range that the rule execution error corresponds
            +   * with.
            +   * 
            + * + * .google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the timeRange field is set. + */ + @java.lang.Override + public boolean hasTimeRange() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. The event time range that the rule execution error corresponds
            +   * with.
            +   * 
            + * + * .google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The timeRange. + */ + @java.lang.Override + public com.google.type.Interval getTimeRange() { + return timeRange_ == null ? com.google.type.Interval.getDefaultInstance() : timeRange_; + } + + /** + * + * + *
            +   * Output only. The event time range that the rule execution error corresponds
            +   * with.
            +   * 
            + * + * .google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() { + return timeRange_ == null ? com.google.type.Interval.getDefaultInstance() : timeRange_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getError()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getTimeRange()); + } + if (sourceCase_ == 4) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, source_); + } + if (sourceCase_ == 5) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, source_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getError()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTimeRange()); + } + if (sourceCase_ == 4) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, source_); + } + if (sourceCase_ == 5) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, 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.chronicle.v1.RuleExecutionError)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.RuleExecutionError other = + (com.google.cloud.chronicle.v1.RuleExecutionError) obj; + + if (!getName().equals(other.getName())) return false; + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError().equals(other.getError())) return false; + } + if (hasTimeRange() != other.hasTimeRange()) return false; + if (hasTimeRange()) { + if (!getTimeRange().equals(other.getTimeRange())) return false; + } + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 4: + if (!getRule().equals(other.getRule())) return false; + break; + case 5: + if (!getCuratedRule().equals(other.getCuratedRule())) 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(); + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + if (hasTimeRange()) { + hash = (37 * hash) + TIME_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getTimeRange().hashCode(); + } + switch (sourceCase_) { + case 4: + hash = (37 * hash) + RULE_FIELD_NUMBER; + hash = (53 * hash) + getRule().hashCode(); + break; + case 5: + hash = (37 * hash) + CURATED_RULE_FIELD_NUMBER; + hash = (53 * hash) + getCuratedRule().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.RuleExecutionError parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.RuleExecutionError 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.chronicle.v1.RuleExecutionError parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.RuleExecutionError parseFrom( + 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.chronicle.v1.RuleExecutionError parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.RuleExecutionError parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.RuleExecutionError parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.RuleExecutionError parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.RuleExecutionError parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.RuleExecutionError parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.RuleExecutionError parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.RuleExecutionError parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.chronicle.v1.RuleExecutionError prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * The RuleExecutionError resource represents an error generated from
            +   * running/deploying a rule.
            +   * 
            + * + * Protobuf type {@code google.cloud.chronicle.v1.RuleExecutionError} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.RuleExecutionError) + com.google.cloud.chronicle.v1.RuleExecutionErrorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.RuleExecutionErrorProto + .internal_static_google_cloud_chronicle_v1_RuleExecutionError_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.RuleExecutionErrorProto + .internal_static_google_cloud_chronicle_v1_RuleExecutionError_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.RuleExecutionError.class, + com.google.cloud.chronicle.v1.RuleExecutionError.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.RuleExecutionError.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetErrorFieldBuilder(); + internalGetTimeRangeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + timeRange_ = null; + if (timeRangeBuilder_ != null) { + timeRangeBuilder_.dispose(); + timeRangeBuilder_ = null; + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.RuleExecutionErrorProto + .internal_static_google_cloud_chronicle_v1_RuleExecutionError_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.RuleExecutionError getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.RuleExecutionError.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.RuleExecutionError build() { + com.google.cloud.chronicle.v1.RuleExecutionError result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.RuleExecutionError buildPartial() { + com.google.cloud.chronicle.v1.RuleExecutionError result = + new com.google.cloud.chronicle.v1.RuleExecutionError(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.RuleExecutionError result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.timeRange_ = timeRangeBuilder_ == null ? timeRange_ : timeRangeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.chronicle.v1.RuleExecutionError result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.RuleExecutionError) { + return mergeFrom((com.google.cloud.chronicle.v1.RuleExecutionError) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.RuleExecutionError other) { + if (other == com.google.cloud.chronicle.v1.RuleExecutionError.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasError()) { + mergeError(other.getError()); + } + if (other.hasTimeRange()) { + mergeTimeRange(other.getTimeRange()); + } + switch (other.getSourceCase()) { + case RULE: + { + sourceCase_ = 4; + source_ = other.source_; + onChanged(); + break; + } + case CURATED_RULE: + { + sourceCase_ = 5; + source_ = other.source_; + onChanged(); + 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: + { + input.readMessage(internalGetErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetTimeRangeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 4; + source_ = s; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + sourceCase_ = 5; + source_ = 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 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_; + + /** + * + * + *
            +     * Output only. The resource name of the rule that generated the rule
            +     * execution error.
            +     * 
            + * + * + * string rule = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the rule field is set. + */ + @java.lang.Override + public boolean hasRule() { + return sourceCase_ == 4; + } + + /** + * + * + *
            +     * Output only. The resource name of the rule that generated the rule
            +     * execution error.
            +     * 
            + * + * + * string rule = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The rule. + */ + @java.lang.Override + public java.lang.String getRule() { + java.lang.Object ref = ""; + if (sourceCase_ == 4) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 4) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. The resource name of the rule that generated the rule
            +     * execution error.
            +     * 
            + * + * + * string rule = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRuleBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 4) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 4) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. The resource name of the rule that generated the rule
            +     * execution error.
            +     * 
            + * + * + * string rule = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The rule to set. + * @return This builder for chaining. + */ + public Builder setRule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 4; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The resource name of the rule that generated the rule
            +     * execution error.
            +     * 
            + * + * + * string rule = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRule() { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The resource name of the rule that generated the rule
            +     * execution error.
            +     * 
            + * + * + * string rule = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for rule to set. + * @return This builder for chaining. + */ + public Builder setRuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 4; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The resource name of the curated rule that generated the
            +     * rule execution error.
            +     * 
            + * + * + * string curated_rule = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the curatedRule field is set. + */ + @java.lang.Override + public boolean hasCuratedRule() { + return sourceCase_ == 5; + } + + /** + * + * + *
            +     * Output only. The resource name of the curated rule that generated the
            +     * rule execution error.
            +     * 
            + * + * + * string curated_rule = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The curatedRule. + */ + @java.lang.Override + public java.lang.String getCuratedRule() { + java.lang.Object ref = ""; + if (sourceCase_ == 5) { + ref = source_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (sourceCase_ == 5) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output only. The resource name of the curated rule that generated the
            +     * rule execution error.
            +     * 
            + * + * + * string curated_rule = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for curatedRule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCuratedRuleBytes() { + java.lang.Object ref = ""; + if (sourceCase_ == 5) { + ref = source_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (sourceCase_ == 5) { + source_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output only. The resource name of the curated rule that generated the
            +     * rule execution error.
            +     * 
            + * + * + * string curated_rule = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The curatedRule to set. + * @return This builder for chaining. + */ + public Builder setCuratedRule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceCase_ = 5; + source_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The resource name of the curated rule that generated the
            +     * rule execution error.
            +     * 
            + * + * + * string curated_rule = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearCuratedRule() { + if (sourceCase_ == 5) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The resource name of the curated rule that generated the
            +     * rule execution error.
            +     * 
            + * + * + * string curated_rule = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for curatedRule to set. + * @return This builder for chaining. + */ + public Builder setCuratedRuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceCase_ = 5; + source_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Output only. The resource name of the rule execution error.
            +     * Format:
            +     * projects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error}
            +     * 
            + * + * 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; + } + } + + /** + * + * + *
            +     * Output only. The resource name of the rule execution error.
            +     * Format:
            +     * projects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error}
            +     * 
            + * + * 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 resource name of the rule execution error.
            +     * Format:
            +     * projects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error}
            +     * 
            + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The resource name of the rule execution error.
            +     * Format:
            +     * projects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error}
            +     * 
            + * + * 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 resource name of the rule execution error.
            +     * Format:
            +     * projects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error}
            +     * 
            + * + * 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_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + + /** + * + * + *
            +     * Output only. The error status corresponding with the rule execution error.
            +     * 
            + * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Output only. The error status corresponding with the rule execution error.
            +     * 
            + * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + public com.google.rpc.Status getError() { + if (errorBuilder_ == null) { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } else { + return errorBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The error status corresponding with the rule execution error.
            +     * 
            + * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + } else { + errorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The error status corresponding with the rule execution error.
            +     * 
            + * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The error status corresponding with the rule execution error.
            +     * 
            + * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } + } else { + errorBuilder_.mergeFrom(value); + } + if (error_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The error status corresponding with the rule execution error.
            +     * 
            + * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00000008); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The error status corresponding with the rule execution error.
            +     * 
            + * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetErrorFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The error status corresponding with the rule execution error.
            +     * 
            + * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + + /** + * + * + *
            +     * Output only. The error status corresponding with the rule execution error.
            +     * 
            + * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + internalGetErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + private com.google.type.Interval timeRange_; + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + timeRangeBuilder_; + + /** + * + * + *
            +     * Output only. The event time range that the rule execution error corresponds
            +     * with.
            +     * 
            + * + * .google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the timeRange field is set. + */ + public boolean hasTimeRange() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Output only. The event time range that the rule execution error corresponds
            +     * with.
            +     * 
            + * + * .google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The timeRange. + */ + public com.google.type.Interval getTimeRange() { + if (timeRangeBuilder_ == null) { + return timeRange_ == null ? com.google.type.Interval.getDefaultInstance() : timeRange_; + } else { + return timeRangeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. The event time range that the rule execution error corresponds
            +     * with.
            +     * 
            + * + * .google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTimeRange(com.google.type.Interval value) { + if (timeRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeRange_ = value; + } else { + timeRangeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The event time range that the rule execution error corresponds
            +     * with.
            +     * 
            + * + * .google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setTimeRange(com.google.type.Interval.Builder builderForValue) { + if (timeRangeBuilder_ == null) { + timeRange_ = builderForValue.build(); + } else { + timeRangeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The event time range that the rule execution error corresponds
            +     * with.
            +     * 
            + * + * .google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeTimeRange(com.google.type.Interval value) { + if (timeRangeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && timeRange_ != null + && timeRange_ != com.google.type.Interval.getDefaultInstance()) { + getTimeRangeBuilder().mergeFrom(value); + } else { + timeRange_ = value; + } + } else { + timeRangeBuilder_.mergeFrom(value); + } + if (timeRange_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. The event time range that the rule execution error corresponds
            +     * with.
            +     * 
            + * + * .google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearTimeRange() { + bitField0_ = (bitField0_ & ~0x00000010); + timeRange_ = null; + if (timeRangeBuilder_ != null) { + timeRangeBuilder_.dispose(); + timeRangeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The event time range that the rule execution error corresponds
            +     * with.
            +     * 
            + * + * .google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.Interval.Builder getTimeRangeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetTimeRangeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. The event time range that the rule execution error corresponds
            +     * with.
            +     * 
            + * + * .google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.IntervalOrBuilder getTimeRangeOrBuilder() { + if (timeRangeBuilder_ != null) { + return timeRangeBuilder_.getMessageOrBuilder(); + } else { + return timeRange_ == null ? com.google.type.Interval.getDefaultInstance() : timeRange_; + } + } + + /** + * + * + *
            +     * Output only. The event time range that the rule execution error corresponds
            +     * with.
            +     * 
            + * + * .google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder> + internalGetTimeRangeFieldBuilder() { + if (timeRangeBuilder_ == null) { + timeRangeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.type.Interval, + com.google.type.Interval.Builder, + com.google.type.IntervalOrBuilder>( + getTimeRange(), getParentForChildren(), isClean()); + timeRange_ = null; + } + return timeRangeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.RuleExecutionError) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.RuleExecutionError) + private static final com.google.cloud.chronicle.v1.RuleExecutionError DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.RuleExecutionError(); + } + + public static com.google.cloud.chronicle.v1.RuleExecutionError getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuleExecutionError parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.chronicle.v1.RuleExecutionError getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorName.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorName.java new file mode 100644 index 000000000000..f0c1336e521e --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorName.java @@ -0,0 +1,269 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.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 RuleExecutionErrorName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_INSTANCE_RULE_EXECUTION_ERROR = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String instance; + private final String ruleExecutionError; + + @Deprecated + protected RuleExecutionErrorName() { + project = null; + location = null; + instance = null; + ruleExecutionError = null; + } + + private RuleExecutionErrorName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + instance = Preconditions.checkNotNull(builder.getInstance()); + ruleExecutionError = Preconditions.checkNotNull(builder.getRuleExecutionError()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public String getRuleExecutionError() { + return ruleExecutionError; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static RuleExecutionErrorName of( + String project, String location, String instance, String ruleExecutionError) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInstance(instance) + .setRuleExecutionError(ruleExecutionError) + .build(); + } + + public static String format( + String project, String location, String instance, String ruleExecutionError) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setInstance(instance) + .setRuleExecutionError(ruleExecutionError) + .build() + .toString(); + } + + public static RuleExecutionErrorName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_INSTANCE_RULE_EXECUTION_ERROR.validatedMatch( + formattedString, "RuleExecutionErrorName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("instance"), + matchMap.get("rule_execution_error")); + } + + 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 (RuleExecutionErrorName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_INSTANCE_RULE_EXECUTION_ERROR.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 (instance != null) { + fieldMapBuilder.put("instance", instance); + } + if (ruleExecutionError != null) { + fieldMapBuilder.put("rule_execution_error", ruleExecutionError); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_INSTANCE_RULE_EXECUTION_ERROR.instantiate( + "project", + project, + "location", + location, + "instance", + instance, + "rule_execution_error", + ruleExecutionError); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + RuleExecutionErrorName that = ((RuleExecutionErrorName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.instance, that.instance) + && Objects.equals(this.ruleExecutionError, that.ruleExecutionError); + } + 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(instance); + h *= 1000003; + h ^= Objects.hashCode(ruleExecutionError); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error}. + */ + public static class Builder { + private String project; + private String location; + private String instance; + private String ruleExecutionError; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getInstance() { + return instance; + } + + public String getRuleExecutionError() { + return ruleExecutionError; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setInstance(String instance) { + this.instance = instance; + return this; + } + + public Builder setRuleExecutionError(String ruleExecutionError) { + this.ruleExecutionError = ruleExecutionError; + return this; + } + + private Builder(RuleExecutionErrorName ruleExecutionErrorName) { + this.project = ruleExecutionErrorName.project; + this.location = ruleExecutionErrorName.location; + this.instance = ruleExecutionErrorName.instance; + this.ruleExecutionError = ruleExecutionErrorName.ruleExecutionError; + } + + public RuleExecutionErrorName build() { + return new RuleExecutionErrorName(this); + } + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorOrBuilder.java new file mode 100644 index 000000000000..bd598ca3eca6 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorOrBuilder.java @@ -0,0 +1,233 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/rule_execution_error.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface RuleExecutionErrorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.RuleExecutionError) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. The resource name of the rule that generated the rule
            +   * execution error.
            +   * 
            + * + * + * string rule = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the rule field is set. + */ + boolean hasRule(); + + /** + * + * + *
            +   * Output only. The resource name of the rule that generated the rule
            +   * execution error.
            +   * 
            + * + * + * string rule = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The rule. + */ + java.lang.String getRule(); + + /** + * + * + *
            +   * Output only. The resource name of the rule that generated the rule
            +   * execution error.
            +   * 
            + * + * + * string rule = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for rule. + */ + com.google.protobuf.ByteString getRuleBytes(); + + /** + * + * + *
            +   * Output only. The resource name of the curated rule that generated the
            +   * rule execution error.
            +   * 
            + * + * + * string curated_rule = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the curatedRule field is set. + */ + boolean hasCuratedRule(); + + /** + * + * + *
            +   * Output only. The resource name of the curated rule that generated the
            +   * rule execution error.
            +   * 
            + * + * + * string curated_rule = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The curatedRule. + */ + java.lang.String getCuratedRule(); + + /** + * + * + *
            +   * Output only. The resource name of the curated rule that generated the
            +   * rule execution error.
            +   * 
            + * + * + * string curated_rule = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for curatedRule. + */ + com.google.protobuf.ByteString getCuratedRuleBytes(); + + /** + * + * + *
            +   * Output only. The resource name of the rule execution error.
            +   * Format:
            +   * projects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error}
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Output only. The resource name of the rule execution error.
            +   * Format:
            +   * projects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error}
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Output only. The error status corresponding with the rule execution error.
            +   * 
            + * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the error field is set. + */ + boolean hasError(); + + /** + * + * + *
            +   * Output only. The error status corresponding with the rule execution error.
            +   * 
            + * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The error. + */ + com.google.rpc.Status getError(); + + /** + * + * + *
            +   * Output only. The error status corresponding with the rule execution error.
            +   * 
            + * + * .google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + /** + * + * + *
            +   * Output only. The event time range that the rule execution error corresponds
            +   * with.
            +   * 
            + * + * .google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the timeRange field is set. + */ + boolean hasTimeRange(); + + /** + * + * + *
            +   * Output only. The event time range that the rule execution error corresponds
            +   * with.
            +   * 
            + * + * .google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The timeRange. + */ + com.google.type.Interval getTimeRange(); + + /** + * + * + *
            +   * Output only. The event time range that the rule execution error corresponds
            +   * with.
            +   * 
            + * + * .google.type.Interval time_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.type.IntervalOrBuilder getTimeRangeOrBuilder(); + + com.google.cloud.chronicle.v1.RuleExecutionError.SourceCase getSourceCase(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorProto.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorProto.java new file mode 100644 index 000000000000..c4024580c259 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleExecutionErrorProto.java @@ -0,0 +1,166 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/rule_execution_error.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public final class RuleExecutionErrorProto extends com.google.protobuf.GeneratedFile { + private RuleExecutionErrorProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RuleExecutionErrorProto"); + } + + 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_chronicle_v1_ListRuleExecutionErrorsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_ListRuleExecutionErrorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_ListRuleExecutionErrorsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_ListRuleExecutionErrorsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_RuleExecutionError_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_RuleExecutionError_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/cloud/chronicle/v1/rule_executi" + + "on_error.proto\022\031google.cloud.chronicle.v" + + "1\032\034google/api/annotations.proto\032\027google/" + + "api/client.proto\032\037google/api/field_behav" + + "ior.proto\032\031google/api/resource.proto\032\027go" + + "ogle/rpc/status.proto\032\032google/type/inter" + + "val.proto\"\234\001\n\036ListRuleExecutionErrorsReq" + + "uest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+chronicle." + + "googleapis.com/RuleExecutionError\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\"\210\001\n\037ListRuleExecutionErrorsResp" + + "onse\022L\n\025rule_execution_errors\030\001 \003(\0132-.go" + + "ogle.cloud.chronicle.v1.RuleExecutionErr" + + "or\022\027\n\017next_page_token\030\002 \001(\t\"\243\003\n\022RuleExec" + + "utionError\0225\n\004rule\030\004 \001(\tB%\340A\003\372A\037\n\035chroni" + + "cle.googleapis.com/RuleH\000\022D\n\014curated_rul" + + "e\030\005 \001(\tB,\340A\003\372A&\n$chronicle.googleapis.co" + + "m/CuratedRuleH\000\022\021\n\004name\030\001 \001(\tB\003\340A\003\022&\n\005er" + + "ror\030\002 \001(\0132\022.google.rpc.StatusB\003\340A\003\022.\n\nti" + + "me_range\030\003 \001(\0132\025.google.type.IntervalB\003\340" + + "A\003:\232\001\352A\226\001\n+chronicle.googleapis.com/Rule" + + "ExecutionError\022gprojects/{project}/locat" + + "ions/{location}/instances/{instance}/rul" + + "eExecutionErrors/{rule_execution_error}B" + + "\010\n\006source2\261\003\n\031RuleExecutionErrorService\022" + + "\346\001\n\027ListRuleExecutionErrors\0229.google.clo" + + "ud.chronicle.v1.ListRuleExecutionErrorsR" + + "equest\032:.google.cloud.chronicle.v1.ListR" + + "uleExecutionErrorsResponse\"T\332A\006parent\202\323\344" + + "\223\002E\022C/v1/{parent=projects/*/locations/*/" + + "instances/*}/ruleExecutionErrors\032\252\001\312A\030ch" + + "ronicle.googleapis.com\322A\213\001https://www.go" + + "ogleapis.com/auth/chronicle,https://www." + + "googleapis.com/auth/chronicle.readonly,h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tformB\320\002\n\035com.google.cloud.chronicle.v1B" + + "\027RuleExecutionErrorProtoP\001Z;cloud.google" + + ".com/go/chronicle/apiv1/chroniclepb;chro" + + "niclepb\252\002\031Google.Cloud.Chronicle.V1\312\002\031Go" + + "ogle\\Cloud\\Chronicle\\V1\352\002\034Google::Cloud:" + + ":Chronicle::V1\352A\177\n$chronicle.googleapis." + + "com/CuratedRule\022Wprojects/{project}/loca" + + "tions/{location}/instances/{instance}/cu" + + "ratedRules/{curatedRule}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.type.IntervalProto.getDescriptor(), + }); + internal_static_google_cloud_chronicle_v1_ListRuleExecutionErrorsRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_chronicle_v1_ListRuleExecutionErrorsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_ListRuleExecutionErrorsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_chronicle_v1_ListRuleExecutionErrorsResponse_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_chronicle_v1_ListRuleExecutionErrorsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_ListRuleExecutionErrorsResponse_descriptor, + new java.lang.String[] { + "RuleExecutionErrors", "NextPageToken", + }); + internal_static_google_cloud_chronicle_v1_RuleExecutionError_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_chronicle_v1_RuleExecutionError_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_RuleExecutionError_descriptor, + new java.lang.String[] { + "Rule", "CuratedRule", "Name", "Error", "TimeRange", "Source", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.type.IntervalProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + 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.resource); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleProto.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleProto.java index 270e0d3d4139..b7f2f1d83f72 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleProto.java +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/RuleProto.java @@ -80,6 +80,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_chronicle_v1_DeleteRuleRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_chronicle_v1_DeleteRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_VerifyRuleTextRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_VerifyRuleTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_chronicle_v1_VerifyRuleTextResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_chronicle_v1_VerifyRuleTextResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_chronicle_v1_ListRuleRevisionsRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -260,7 +268,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021DeleteRuleRequest\0223\n" + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" + "\035chronicle.googleapis.com/Rule\022\022\n" - + "\005force\030\002 \001(\010B\003\340A\001\"\251\001\n" + + "\005force\030\002 \001(\010B\003\340A\001\"l\n" + + "\025VerifyRuleTextRequest\022;\n" + + "\010instance\030\001 \001(\tB)\340A\002\372A#\n" + + "!chronicle.googleapis.com/Instance\022\026\n" + + "\trule_text\030\002 \001(\tB\003\340A\002\"|\n" + + "\026VerifyRuleTextResponse\022\017\n" + + "\007success\030\001 \001(\010\022Q\n" + + "\027compilation_diagnostics\030\003" + + " \003(\01320.google.cloud.chronicle.v1.CompilationDiagnostic\"\251\001\n" + "\030ListRuleRevisionsRequest\0223\n" + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" + "\035chronicle.googleapis.com/Rule\022\021\n" @@ -280,7 +296,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025ListRetrohuntsRequest\022:\n" + "\006parent\030\001 \001(" + "\tB*\340A\002\372A$\022\"chronicle.googleapis.com/Retrohunt\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" + + "\tpage_size\030\002 \001(\005\022\022\n" + + "\n" + "page_token\030\003 \001(\t\022\016\n" + "\006filter\030\004 \001(\t\"k\n" + "\026ListRetrohuntsResponse\0228\n\n" @@ -290,14 +307,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB/\340A\002\372A)\n" + "\'chronicle.googleapis.com/RuleDeployment\"\224\001\n" + "\032ListRuleDeploymentsRequest\022?\n" - + "\006parent\030\001 \001(" - + "\tB/\340A\002\372A)\022\'chronicle.googleapis.com/RuleDeployment\022\021\n" + + "\006parent\030\001 \001(\t" + + "B/\340A\002\372A)\022\'chronicle.googleapis.com/RuleDeployment\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\022\016\n" + "\006filter\030\004 \001(\t\"{\n" + "\033ListRuleDeploymentsResponse\022C\n" - + "\020rule_deployments\030\001" - + " \003(\0132).google.cloud.chronicle.v1.RuleDeployment\022\027\n" + + "\020rule_deployments\030\001 \003(" + + "\0132).google.cloud.chronicle.v1.RuleDeployment\022\027\n" + "\017next_page_token\030\002 \001(\t\"\234\001\n" + "\033UpdateRuleDeploymentRequest\022G\n" + "\017rule_deployment\030\001" @@ -343,61 +360,68 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025RULE_VIEW_UNSPECIFIED\020\000\022\t\n" + "\005BASIC\020\001\022\010\n" + "\004FULL\020\002\022\032\n" - + "\026REVISION_METADATA_ONLY\020\0032\251\023\n" + + "\026REVISION_METADATA_ONLY\020\0032\342\025\n" + "\013RuleService\022\256\001\n\n" - + "CreateRule\022,.google.cloud.chronicle.v1.CreateRuleRequest\032\037" - + ".google.cloud.chronicle.v1.Rule\"Q\332A\013pare" - + "nt,rule\202\323\344\223\002=\"5/v1/{parent=projects/*/locations/*/instances/*}/rules:\004rule\022\233\001\n" - + "\007GetRule\022).google.cloud.chronicle.v1.GetRu" - + "leRequest\032\037.google.cloud.chronicle.v1.Ru" - + "le\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=projects/*/locations/*/instances/*/rules/*}\022\256\001\n" - + "\tListRules\022+.google.cloud.chronicle.v1.ListR" - + "ulesRequest\032,.google.cloud.chronicle.v1." - + "ListRulesResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1/" - + "{parent=projects/*/locations/*/instances/*}/rules\022\270\001\n\n" - + "UpdateRule\022,.google.cloud.chronicle.v1.UpdateRuleRequest\032\037.google." - + "cloud.chronicle.v1.Rule\"[\332A\020rule,update_" - + "mask\202\323\344\223\002B2:/v1/{rule.name=projects/*/locations/*/instances/*/rules/*}:\004rule\022\230\001\n" - + "\n" - + "DeleteRule\022,.google.cloud.chronicle.v1." - + "DeleteRuleRequest\032\026.google.protobuf.Empt" - + "y\"D\332A\004name\202\323\344\223\0027*5/v1/{name=projects/*/locations/*/instances/*/rules/*}\022\322\001\n" - + "\021ListRuleRevisions\0223.google.cloud.chronicle.v" - + "1.ListRuleRevisionsRequest\0324.google.cloud.chronicle.v1.ListRuleRevisionsResponse" - + "\"R\332A\004name\202\323\344\223\002E\022C/v1/{name=projects/*/lo" - + "cations/*/instances/*/rules/*}:listRevisions\022\357\001\n" - + "\017CreateRetrohunt\0221.google.cloud." - + "chronicle.v1.CreateRetrohuntRequest\032\035.google.longrunning.Operation\"\211\001\312A\036\n" - + "\tRetrohunt\022\021RetrohuntMetadata\332A\020parent,retrohun" - + "t\202\323\344\223\002O\"B/v1/{parent=projects/*/locations/*/instances/*/rules/*}/retrohunts:" - + "\tretrohunt\022\267\001\n" - + "\014GetRetrohunt\022..google.cloud.chronicle.v1.GetRetrohuntRequest\032$.google" - + ".cloud.chronicle.v1.Retrohunt\"Q\332A\004name\202\323" - + "\344\223\002D\022B/v1/{name=projects/*/locations/*/instances/*/rules/*/retrohunts/*}\022\312\001\n" - + "\016ListRetrohunts\0220.google.cloud.chronicle.v1." - + "ListRetrohuntsRequest\0321.google.cloud.chr" - + "onicle.v1.ListRetrohuntsResponse\"S\332A\006par" - + "ent\202\323\344\223\002D\022B/v1/{parent=projects/*/locati" - + "ons/*/instances/*/rules/*}/retrohunts\022\304\001\n" - + "\021GetRuleDeployment\0223.google.cloud.chron" - + "icle.v1.GetRuleDeploymentRequest\032).googl" - + "e.cloud.chronicle.v1.RuleDeployment\"O\332A\004" - + "name\202\323\344\223\002B\022@/v1/{name=projects/*/locations/*/instances/*/rules/*/deployment}\022\332\001\n" - + "\023ListRuleDeployments\0225.google.cloud.chro" - + "nicle.v1.ListRuleDeploymentsRequest\0326.google.cloud.chronicle.v1.ListRuleDeployme" - + "ntsResponse\"T\332A\006parent\202\323\344\223\002E\022C/v1/{paren" - + "t=projects/*/locations/*/instances/*/rules/*}/deployments\022\203\002\n" - + "\024UpdateRuleDeployment\0226.google.cloud.chronicle.v1.UpdateRul" - + "eDeploymentRequest\032).google.cloud.chroni" - + "cle.v1.RuleDeployment\"\207\001\332A\033rule_deployme" - + "nt,update_mask\202\323\344\223\002c2P/v1/{rule_deployme" - + "nt.name=projects/*/locations/*/instances/*/rules/*/deployment}:\017rule_deployment\032" - + "L\312A\030chronicle.googleapis.com\322A.https://w" - + "ww.googleapis.com/auth/cloud-platformB\300\001\n" - + "\035com.google.cloud.chronicle.v1B\tRuleProtoP\001Z;cloud.google.com/go/chronicle/apiv" - + "1/chroniclepb;chroniclepb\252\002\031Google.Cloud" - + ".Chronicle.V1\312\002\031Google\\Cloud\\Chronicle\\V" - + "1\352\002\034Google::Cloud::Chronicle::V1b\006proto3" + + "CreateRule\022,.google.cloud.chronicle.v1.CreateRuleRequest\032\037.goo" + + "gle.cloud.chronicle.v1.Rule\"Q\332A\013parent,r" + + "ule\202\323\344\223\002=\"5/v1/{parent=projects/*/locations/*/instances/*}/rules:\004rule\022\233\001\n" + + "\007GetRule\022).google.cloud.chronicle.v1.GetRuleRe" + + "quest\032\037.google.cloud.chronicle.v1.Rule\"D" + + "\332A\004name\202\323\344\223\0027\0225/v1/{name=projects/*/locations/*/instances/*/rules/*}\022\256\001\n" + + "\tListRules\022+.google.cloud.chronicle.v1.ListRules" + + "Request\032,.google.cloud.chronicle.v1.List" + + "RulesResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{par" + + "ent=projects/*/locations/*/instances/*}/rules\022\270\001\n\n" + + "UpdateRule\022,.google.cloud.chronicle.v1.UpdateRuleRequest\032\037.google.clou" + + "d.chronicle.v1.Rule\"[\332A\020rule,update_mask" + + "\202\323\344\223\002B2:/v1/{rule.name=projects/*/locations/*/instances/*/rules/*}:\004rule\022\230\001\n\n" + + "DeleteRule\022,.google.cloud.chronicle.v1.Dele" + + "teRuleRequest\032\026.google.protobuf.Empty\"D\332" + + "A\004name\202\323\344\223\0027*5/v1/{name=projects/*/locations/*/instances/*/rules/*}\022\327\001\n" + + "\016VerifyRuleText\0220.google.cloud.chronicle.v1.Verif" + + "yRuleTextRequest\0321.google.cloud.chronicl" + + "e.v1.VerifyRuleTextResponse\"`\332A\022instance" + + ",rule_text\202\323\344\223\002E\"@/v1/{instance=projects" + + "/*/locations/*/instances/*}:verifyRuleText:\001*\022\322\001\n" + + "\021ListRuleRevisions\0223.google.cloud.chronicle.v1.ListRuleRevisionsRequest" + + "\0324.google.cloud.chronicle.v1.ListRuleRev" + + "isionsResponse\"R\332A\004name\202\323\344\223\002E\022C/v1/{name" + + "=projects/*/locations/*/instances/*/rules/*}:listRevisions\022\357\001\n" + + "\017CreateRetrohunt\0221.google.cloud.chronicle.v1.CreateRetrohu" + + "ntRequest\032\035.google.longrunning.Operation\"\211\001\312A\036\n" + + "\tRetrohunt\022\021RetrohuntMetadata\332A\020p" + + "arent,retrohunt\202\323\344\223\002O\"B/v1/{parent=proje" + + "cts/*/locations/*/instances/*/rules/*}/retrohunts:\tretrohunt\022\267\001\n" + + "\014GetRetrohunt\022..google.cloud.chronicle.v1.GetRetrohuntRe" + + "quest\032$.google.cloud.chronicle.v1.Retroh" + + "unt\"Q\332A\004name\202\323\344\223\002D\022B/v1/{name=projects/*" + + "/locations/*/instances/*/rules/*/retrohunts/*}\022\312\001\n" + + "\016ListRetrohunts\0220.google.cloud.chronicle.v1.ListRetrohuntsRequest\0321.go" + + "ogle.cloud.chronicle.v1.ListRetrohuntsRe" + + "sponse\"S\332A\006parent\202\323\344\223\002D\022B/v1/{parent=pro" + + "jects/*/locations/*/instances/*/rules/*}/retrohunts\022\304\001\n" + + "\021GetRuleDeployment\0223.google.cloud.chronicle.v1.GetRuleDeploymentR" + + "equest\032).google.cloud.chronicle.v1.RuleD" + + "eployment\"O\332A\004name\202\323\344\223\002B\022@/v1/{name=proj" + + "ects/*/locations/*/instances/*/rules/*/deployment}\022\332\001\n" + + "\023ListRuleDeployments\0225.google.cloud.chronicle.v1.ListRuleDeploymen" + + "tsRequest\0326.google.cloud.chronicle.v1.Li" + + "stRuleDeploymentsResponse\"T\332A\006parent\202\323\344\223" + + "\002E\022C/v1/{parent=projects/*/locations/*/instances/*/rules/*}/deployments\022\203\002\n" + + "\024UpdateRuleDeployment\0226.google.cloud.chronicl" + + "e.v1.UpdateRuleDeploymentRequest\032).googl" + + "e.cloud.chronicle.v1.RuleDeployment\"\207\001\332A" + + "\033rule_deployment,update_mask\202\323\344\223\002c2P/v1/" + + "{rule_deployment.name=projects/*/locations/*/instances/*/rules/*/deployment}:\017ru" + + "le_deployment\032\252\001\312A\030chronicle.googleapis." + + "com\322A\213\001https://www.googleapis.com/auth/c" + + "hronicle,https://www.googleapis.com/auth" + + "/chronicle.readonly,https://www.googleapis.com/auth/cloud-platformB\300\001\n" + + "\035com.google.cloud.chronicle.v1B\tRuleProtoP\001Z;cloud" + + ".google.com/go/chronicle/apiv1/chronicle" + + "pb;chroniclepb\252\002\031Google.Cloud.Chronicle." + + "V1\312\002\031Google\\Cloud\\Chronicle\\V1\352\002\034Google:" + + ":Cloud::Chronicle::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -518,8 +542,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Force", }); - internal_static_google_cloud_chronicle_v1_ListRuleRevisionsRequest_descriptor = + internal_static_google_cloud_chronicle_v1_VerifyRuleTextRequest_descriptor = getDescriptor().getMessageType(9); + internal_static_google_cloud_chronicle_v1_VerifyRuleTextRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_VerifyRuleTextRequest_descriptor, + new java.lang.String[] { + "Instance", "RuleText", + }); + internal_static_google_cloud_chronicle_v1_VerifyRuleTextResponse_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_chronicle_v1_VerifyRuleTextResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_chronicle_v1_VerifyRuleTextResponse_descriptor, + new java.lang.String[] { + "Success", "CompilationDiagnostics", + }); + internal_static_google_cloud_chronicle_v1_ListRuleRevisionsRequest_descriptor = + getDescriptor().getMessageType(11); internal_static_google_cloud_chronicle_v1_ListRuleRevisionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_chronicle_v1_ListRuleRevisionsRequest_descriptor, @@ -527,7 +567,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PageSize", "PageToken", "View", }); internal_static_google_cloud_chronicle_v1_ListRuleRevisionsResponse_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(12); internal_static_google_cloud_chronicle_v1_ListRuleRevisionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_chronicle_v1_ListRuleRevisionsResponse_descriptor, @@ -535,7 +575,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Rules", "NextPageToken", }); internal_static_google_cloud_chronicle_v1_CreateRetrohuntRequest_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(13); internal_static_google_cloud_chronicle_v1_CreateRetrohuntRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_chronicle_v1_CreateRetrohuntRequest_descriptor, @@ -543,7 +583,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Retrohunt", }); internal_static_google_cloud_chronicle_v1_GetRetrohuntRequest_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(14); internal_static_google_cloud_chronicle_v1_GetRetrohuntRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_chronicle_v1_GetRetrohuntRequest_descriptor, @@ -551,7 +591,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_chronicle_v1_ListRetrohuntsRequest_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(15); internal_static_google_cloud_chronicle_v1_ListRetrohuntsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_chronicle_v1_ListRetrohuntsRequest_descriptor, @@ -559,7 +599,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_chronicle_v1_ListRetrohuntsResponse_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(16); internal_static_google_cloud_chronicle_v1_ListRetrohuntsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_chronicle_v1_ListRetrohuntsResponse_descriptor, @@ -567,7 +607,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Retrohunts", "NextPageToken", }); internal_static_google_cloud_chronicle_v1_GetRuleDeploymentRequest_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(17); internal_static_google_cloud_chronicle_v1_GetRuleDeploymentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_chronicle_v1_GetRuleDeploymentRequest_descriptor, @@ -575,7 +615,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_chronicle_v1_ListRuleDeploymentsRequest_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(18); internal_static_google_cloud_chronicle_v1_ListRuleDeploymentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_chronicle_v1_ListRuleDeploymentsRequest_descriptor, @@ -583,7 +623,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_chronicle_v1_ListRuleDeploymentsResponse_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(19); internal_static_google_cloud_chronicle_v1_ListRuleDeploymentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_chronicle_v1_ListRuleDeploymentsResponse_descriptor, @@ -591,7 +631,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RuleDeployments", "NextPageToken", }); internal_static_google_cloud_chronicle_v1_UpdateRuleDeploymentRequest_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(20); internal_static_google_cloud_chronicle_v1_UpdateRuleDeploymentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_chronicle_v1_UpdateRuleDeploymentRequest_descriptor, @@ -599,7 +639,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RuleDeployment", "UpdateMask", }); internal_static_google_cloud_chronicle_v1_CompilationPosition_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(21); internal_static_google_cloud_chronicle_v1_CompilationPosition_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_chronicle_v1_CompilationPosition_descriptor, @@ -607,7 +647,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartLine", "StartColumn", "EndLine", "EndColumn", }); internal_static_google_cloud_chronicle_v1_CompilationDiagnostic_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(22); internal_static_google_cloud_chronicle_v1_CompilationDiagnostic_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_chronicle_v1_CompilationDiagnostic_descriptor, @@ -615,7 +655,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Message", "Position", "Severity", "Uri", }); internal_static_google_cloud_chronicle_v1_Severity_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(23); internal_static_google_cloud_chronicle_v1_Severity_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_chronicle_v1_Severity_descriptor, @@ -623,7 +663,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", }); internal_static_google_cloud_chronicle_v1_RetrohuntMetadata_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(24); internal_static_google_cloud_chronicle_v1_RetrohuntMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_chronicle_v1_RetrohuntMetadata_descriptor, @@ -631,7 +671,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Retrohunt", "ExecutionInterval", "ProgressPercentage", }); internal_static_google_cloud_chronicle_v1_InputsUsed_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(25); internal_static_google_cloud_chronicle_v1_InputsUsed_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_chronicle_v1_InputsUsed_descriptor, diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyReferenceListRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyReferenceListRequest.java new file mode 100644 index 000000000000..7994af21544c --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyReferenceListRequest.java @@ -0,0 +1,1392 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/reference_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
            + * VerifyReferenceList request message.
            + * 
            + * + * Protobuf type {@code google.cloud.chronicle.v1.VerifyReferenceListRequest} + */ +@com.google.protobuf.Generated +public final class VerifyReferenceListRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.VerifyReferenceListRequest) + VerifyReferenceListRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VerifyReferenceListRequest"); + } + + // Use VerifyReferenceListRequest.newBuilder() to construct. + private VerifyReferenceListRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VerifyReferenceListRequest() { + instance_ = ""; + syntaxType_ = 0; + entries_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.ReferenceListProto + .internal_static_google_cloud_chronicle_v1_VerifyReferenceListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.ReferenceListProto + .internal_static_google_cloud_chronicle_v1_VerifyReferenceListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.VerifyReferenceListRequest.class, + com.google.cloud.chronicle.v1.VerifyReferenceListRequest.Builder.class); + } + + public static final int INSTANCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object instance_ = ""; + + /** + * + * + *
            +   * Required. The name of the parent resource, which is the SecOps instance
            +   * associated with the request. Format:
            +   * `projects/{project}/locations/{location}/instances/{instance}`
            +   * 
            + * + * + * 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 name of the parent resource, which is the SecOps instance
            +   * associated with the request. Format:
            +   * `projects/{project}/locations/{location}/instances/{instance}`
            +   * 
            + * + * + * 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 SYNTAX_TYPE_FIELD_NUMBER = 2; + private int syntaxType_ = 0; + + /** + * + * + *
            +   * Required. Type (format) of list lines.
            +   * 
            + * + * + * .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for syntaxType. + */ + @java.lang.Override + public int getSyntaxTypeValue() { + return syntaxType_; + } + + /** + * + * + *
            +   * Required. Type (format) of list lines.
            +   * 
            + * + * + * .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The syntaxType. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.ReferenceListSyntaxType getSyntaxType() { + com.google.cloud.chronicle.v1.ReferenceListSyntaxType result = + com.google.cloud.chronicle.v1.ReferenceListSyntaxType.forNumber(syntaxType_); + return result == null + ? com.google.cloud.chronicle.v1.ReferenceListSyntaxType.UNRECOGNIZED + : result; + } + + public static final int ENTRIES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List entries_; + + /** + * + * + *
            +   * Required. The entries of the reference list.
            +   * Each line may be either an item in the list or a comment.
            +   * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getEntriesList() { + return entries_; + } + + /** + * + * + *
            +   * Required. The entries of the reference list.
            +   * Each line may be either an item in the list or a comment.
            +   * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getEntriesOrBuilderList() { + return entries_; + } + + /** + * + * + *
            +   * Required. The entries of the reference list.
            +   * Each line may be either an item in the list or a comment.
            +   * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getEntriesCount() { + return entries_.size(); + } + + /** + * + * + *
            +   * Required. The entries of the reference list.
            +   * Each line may be either an item in the list or a comment.
            +   * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.ReferenceListEntry getEntries(int index) { + return entries_.get(index); + } + + /** + * + * + *
            +   * Required. The entries of the reference list.
            +   * Each line may be either an item in the list or a comment.
            +   * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.ReferenceListEntryOrBuilder getEntriesOrBuilder(int index) { + return entries_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instance_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, instance_); + } + if (syntaxType_ + != com.google.cloud.chronicle.v1.ReferenceListSyntaxType + .REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, syntaxType_); + } + for (int i = 0; i < entries_.size(); i++) { + output.writeMessage(3, entries_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instance_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, instance_); + } + if (syntaxType_ + != com.google.cloud.chronicle.v1.ReferenceListSyntaxType + .REFERENCE_LIST_SYNTAX_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, syntaxType_); + } + for (int i = 0; i < entries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, entries_.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.chronicle.v1.VerifyReferenceListRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.VerifyReferenceListRequest other = + (com.google.cloud.chronicle.v1.VerifyReferenceListRequest) obj; + + if (!getInstance().equals(other.getInstance())) return false; + if (syntaxType_ != other.syntaxType_) return false; + if (!getEntriesList().equals(other.getEntriesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); + hash = (37 * hash) + SYNTAX_TYPE_FIELD_NUMBER; + hash = (53 * hash) + syntaxType_; + if (getEntriesCount() > 0) { + hash = (37 * hash) + ENTRIES_FIELD_NUMBER; + hash = (53 * hash) + getEntriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListRequest 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.chronicle.v1.VerifyReferenceListRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListRequest parseFrom( + 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.chronicle.v1.VerifyReferenceListRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.VerifyReferenceListRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * VerifyReferenceList request message.
            +   * 
            + * + * Protobuf type {@code google.cloud.chronicle.v1.VerifyReferenceListRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.VerifyReferenceListRequest) + com.google.cloud.chronicle.v1.VerifyReferenceListRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.ReferenceListProto + .internal_static_google_cloud_chronicle_v1_VerifyReferenceListRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.ReferenceListProto + .internal_static_google_cloud_chronicle_v1_VerifyReferenceListRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.VerifyReferenceListRequest.class, + com.google.cloud.chronicle.v1.VerifyReferenceListRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.VerifyReferenceListRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instance_ = ""; + syntaxType_ = 0; + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + } else { + entries_ = null; + entriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.ReferenceListProto + .internal_static_google_cloud_chronicle_v1_VerifyReferenceListRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.VerifyReferenceListRequest getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.VerifyReferenceListRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.VerifyReferenceListRequest build() { + com.google.cloud.chronicle.v1.VerifyReferenceListRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.VerifyReferenceListRequest buildPartial() { + com.google.cloud.chronicle.v1.VerifyReferenceListRequest result = + new com.google.cloud.chronicle.v1.VerifyReferenceListRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.VerifyReferenceListRequest result) { + if (entriesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + entries_ = java.util.Collections.unmodifiableList(entries_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.entries_ = entries_; + } else { + result.entries_ = entriesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.chronicle.v1.VerifyReferenceListRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instance_ = instance_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.syntaxType_ = syntaxType_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.VerifyReferenceListRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.VerifyReferenceListRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.VerifyReferenceListRequest other) { + if (other == com.google.cloud.chronicle.v1.VerifyReferenceListRequest.getDefaultInstance()) + return this; + if (!other.getInstance().isEmpty()) { + instance_ = other.instance_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.syntaxType_ != 0) { + setSyntaxTypeValue(other.getSyntaxTypeValue()); + } + if (entriesBuilder_ == null) { + if (!other.entries_.isEmpty()) { + if (entries_.isEmpty()) { + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureEntriesIsMutable(); + entries_.addAll(other.entries_); + } + onChanged(); + } + } else { + if (!other.entries_.isEmpty()) { + if (entriesBuilder_.isEmpty()) { + entriesBuilder_.dispose(); + entriesBuilder_ = null; + entries_ = other.entries_; + bitField0_ = (bitField0_ & ~0x00000004); + entriesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEntriesFieldBuilder() + : null; + } else { + entriesBuilder_.addAllMessages(other.entries_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + instance_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + syntaxType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + com.google.cloud.chronicle.v1.ReferenceListEntry m = + input.readMessage( + com.google.cloud.chronicle.v1.ReferenceListEntry.parser(), + extensionRegistry); + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(m); + } else { + entriesBuilder_.addMessage(m); + } + 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 instance_ = ""; + + /** + * + * + *
            +     * Required. The name of the parent resource, which is the SecOps instance
            +     * associated with the request. Format:
            +     * `projects/{project}/locations/{location}/instances/{instance}`
            +     * 
            + * + * + * 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 name of the parent resource, which is the SecOps instance
            +     * associated with the request. Format:
            +     * `projects/{project}/locations/{location}/instances/{instance}`
            +     * 
            + * + * + * 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 name of the parent resource, which is the SecOps instance
            +     * associated with the request. Format:
            +     * `projects/{project}/locations/{location}/instances/{instance}`
            +     * 
            + * + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the parent resource, which is the SecOps instance
            +     * associated with the request. Format:
            +     * `projects/{project}/locations/{location}/instances/{instance}`
            +     * 
            + * + * + * 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_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the parent resource, which is the SecOps instance
            +     * associated with the request. Format:
            +     * `projects/{project}/locations/{location}/instances/{instance}`
            +     * 
            + * + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private int syntaxType_ = 0; + + /** + * + * + *
            +     * Required. Type (format) of list lines.
            +     * 
            + * + * + * .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for syntaxType. + */ + @java.lang.Override + public int getSyntaxTypeValue() { + return syntaxType_; + } + + /** + * + * + *
            +     * Required. Type (format) of list lines.
            +     * 
            + * + * + * .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for syntaxType to set. + * @return This builder for chaining. + */ + public Builder setSyntaxTypeValue(int value) { + syntaxType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Type (format) of list lines.
            +     * 
            + * + * + * .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The syntaxType. + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.ReferenceListSyntaxType getSyntaxType() { + com.google.cloud.chronicle.v1.ReferenceListSyntaxType result = + com.google.cloud.chronicle.v1.ReferenceListSyntaxType.forNumber(syntaxType_); + return result == null + ? com.google.cloud.chronicle.v1.ReferenceListSyntaxType.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Required. Type (format) of list lines.
            +     * 
            + * + * + * .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The syntaxType to set. + * @return This builder for chaining. + */ + public Builder setSyntaxType(com.google.cloud.chronicle.v1.ReferenceListSyntaxType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + syntaxType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Type (format) of list lines.
            +     * 
            + * + * + * .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearSyntaxType() { + bitField0_ = (bitField0_ & ~0x00000002); + syntaxType_ = 0; + onChanged(); + return this; + } + + private java.util.List entries_ = + java.util.Collections.emptyList(); + + private void ensureEntriesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + entries_ = + new java.util.ArrayList(entries_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.ReferenceListEntry, + com.google.cloud.chronicle.v1.ReferenceListEntry.Builder, + com.google.cloud.chronicle.v1.ReferenceListEntryOrBuilder> + entriesBuilder_; + + /** + * + * + *
            +     * Required. The entries of the reference list.
            +     * Each line may be either an item in the list or a comment.
            +     * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getEntriesList() { + if (entriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(entries_); + } else { + return entriesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Required. The entries of the reference list.
            +     * Each line may be either an item in the list or a comment.
            +     * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getEntriesCount() { + if (entriesBuilder_ == null) { + return entries_.size(); + } else { + return entriesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Required. The entries of the reference list.
            +     * Each line may be either an item in the list or a comment.
            +     * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.ReferenceListEntry getEntries(int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Required. The entries of the reference list.
            +     * Each line may be either an item in the list or a comment.
            +     * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEntries(int index, com.google.cloud.chronicle.v1.ReferenceListEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.set(index, value); + onChanged(); + } else { + entriesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Required. The entries of the reference list.
            +     * Each line may be either an item in the list or a comment.
            +     * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEntries( + int index, com.google.cloud.chronicle.v1.ReferenceListEntry.Builder builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.set(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Required. The entries of the reference list.
            +     * Each line may be either an item in the list or a comment.
            +     * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEntries(com.google.cloud.chronicle.v1.ReferenceListEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(value); + onChanged(); + } else { + entriesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Required. The entries of the reference list.
            +     * Each line may be either an item in the list or a comment.
            +     * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEntries(int index, com.google.cloud.chronicle.v1.ReferenceListEntry value) { + if (entriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEntriesIsMutable(); + entries_.add(index, value); + onChanged(); + } else { + entriesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Required. The entries of the reference list.
            +     * Each line may be either an item in the list or a comment.
            +     * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEntries( + com.google.cloud.chronicle.v1.ReferenceListEntry.Builder builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Required. The entries of the reference list.
            +     * Each line may be either an item in the list or a comment.
            +     * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEntries( + int index, com.google.cloud.chronicle.v1.ReferenceListEntry.Builder builderForValue) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.add(index, builderForValue.build()); + onChanged(); + } else { + entriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Required. The entries of the reference list.
            +     * Each line may be either an item in the list or a comment.
            +     * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllEntries( + java.lang.Iterable values) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + onChanged(); + } else { + entriesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Required. The entries of the reference list.
            +     * Each line may be either an item in the list or a comment.
            +     * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEntries() { + if (entriesBuilder_ == null) { + entries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + entriesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Required. The entries of the reference list.
            +     * Each line may be either an item in the list or a comment.
            +     * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeEntries(int index) { + if (entriesBuilder_ == null) { + ensureEntriesIsMutable(); + entries_.remove(index); + onChanged(); + } else { + entriesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Required. The entries of the reference list.
            +     * Each line may be either an item in the list or a comment.
            +     * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.ReferenceListEntry.Builder getEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Required. The entries of the reference list.
            +     * Each line may be either an item in the list or a comment.
            +     * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.ReferenceListEntryOrBuilder getEntriesOrBuilder( + int index) { + if (entriesBuilder_ == null) { + return entries_.get(index); + } else { + return entriesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Required. The entries of the reference list.
            +     * Each line may be either an item in the list or a comment.
            +     * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getEntriesOrBuilderList() { + if (entriesBuilder_ != null) { + return entriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(entries_); + } + } + + /** + * + * + *
            +     * Required. The entries of the reference list.
            +     * Each line may be either an item in the list or a comment.
            +     * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.ReferenceListEntry.Builder addEntriesBuilder() { + return internalGetEntriesFieldBuilder() + .addBuilder(com.google.cloud.chronicle.v1.ReferenceListEntry.getDefaultInstance()); + } + + /** + * + * + *
            +     * Required. The entries of the reference list.
            +     * Each line may be either an item in the list or a comment.
            +     * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.chronicle.v1.ReferenceListEntry.Builder addEntriesBuilder(int index) { + return internalGetEntriesFieldBuilder() + .addBuilder(index, com.google.cloud.chronicle.v1.ReferenceListEntry.getDefaultInstance()); + } + + /** + * + * + *
            +     * Required. The entries of the reference list.
            +     * Each line may be either an item in the list or a comment.
            +     * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getEntriesBuilderList() { + return internalGetEntriesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.ReferenceListEntry, + com.google.cloud.chronicle.v1.ReferenceListEntry.Builder, + com.google.cloud.chronicle.v1.ReferenceListEntryOrBuilder> + internalGetEntriesFieldBuilder() { + if (entriesBuilder_ == null) { + entriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.ReferenceListEntry, + com.google.cloud.chronicle.v1.ReferenceListEntry.Builder, + com.google.cloud.chronicle.v1.ReferenceListEntryOrBuilder>( + entries_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + entries_ = null; + } + return entriesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.VerifyReferenceListRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.VerifyReferenceListRequest) + private static final com.google.cloud.chronicle.v1.VerifyReferenceListRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.VerifyReferenceListRequest(); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyReferenceListRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.chronicle.v1.VerifyReferenceListRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyReferenceListRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyReferenceListRequestOrBuilder.java new file mode 100644 index 000000000000..dc79e96b7ae5 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyReferenceListRequestOrBuilder.java @@ -0,0 +1,163 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/reference_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface VerifyReferenceListRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.VerifyReferenceListRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The name of the parent resource, which is the SecOps instance
            +   * associated with the request. Format:
            +   * `projects/{project}/locations/{location}/instances/{instance}`
            +   * 
            + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The instance. + */ + java.lang.String getInstance(); + + /** + * + * + *
            +   * Required. The name of the parent resource, which is the SecOps instance
            +   * associated with the request. Format:
            +   * `projects/{project}/locations/{location}/instances/{instance}`
            +   * 
            + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instance. + */ + com.google.protobuf.ByteString getInstanceBytes(); + + /** + * + * + *
            +   * Required. Type (format) of list lines.
            +   * 
            + * + * + * .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for syntaxType. + */ + int getSyntaxTypeValue(); + + /** + * + * + *
            +   * Required. Type (format) of list lines.
            +   * 
            + * + * + * .google.cloud.chronicle.v1.ReferenceListSyntaxType syntax_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The syntaxType. + */ + com.google.cloud.chronicle.v1.ReferenceListSyntaxType getSyntaxType(); + + /** + * + * + *
            +   * Required. The entries of the reference list.
            +   * Each line may be either an item in the list or a comment.
            +   * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getEntriesList(); + + /** + * + * + *
            +   * Required. The entries of the reference list.
            +   * Each line may be either an item in the list or a comment.
            +   * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.ReferenceListEntry getEntries(int index); + + /** + * + * + *
            +   * Required. The entries of the reference list.
            +   * Each line may be either an item in the list or a comment.
            +   * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getEntriesCount(); + + /** + * + * + *
            +   * Required. The entries of the reference list.
            +   * Each line may be either an item in the list or a comment.
            +   * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getEntriesOrBuilderList(); + + /** + * + * + *
            +   * Required. The entries of the reference list.
            +   * Each line may be either an item in the list or a comment.
            +   * 
            + * + * + * repeated .google.cloud.chronicle.v1.ReferenceListEntry entries = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.chronicle.v1.ReferenceListEntryOrBuilder getEntriesOrBuilder(int index); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyReferenceListResponse.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyReferenceListResponse.java new file mode 100644 index 000000000000..c465800aec35 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyReferenceListResponse.java @@ -0,0 +1,1023 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/reference_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
            + * VerifyListResponse response message.
            + * 
            + * + * Protobuf type {@code google.cloud.chronicle.v1.VerifyReferenceListResponse} + */ +@com.google.protobuf.Generated +public final class VerifyReferenceListResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.VerifyReferenceListResponse) + VerifyReferenceListResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VerifyReferenceListResponse"); + } + + // Use VerifyReferenceListResponse.newBuilder() to construct. + private VerifyReferenceListResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VerifyReferenceListResponse() { + errors_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.ReferenceListProto + .internal_static_google_cloud_chronicle_v1_VerifyReferenceListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.ReferenceListProto + .internal_static_google_cloud_chronicle_v1_VerifyReferenceListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.VerifyReferenceListResponse.class, + com.google.cloud.chronicle.v1.VerifyReferenceListResponse.Builder.class); + } + + public static final int SUCCESS_FIELD_NUMBER = 1; + private boolean success_ = false; + + /** + * + * + *
            +   * Validity of list - true if no errors found.
            +   * 
            + * + * bool success = 1; + * + * @return The success. + */ + @java.lang.Override + public boolean getSuccess() { + return success_; + } + + public static final int ERRORS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List errors_; + + /** + * + * + *
            +   * Line-level errors causing the list to be invalid.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + @java.lang.Override + public java.util.List getErrorsList() { + return errors_; + } + + /** + * + * + *
            +   * Line-level errors causing the list to be invalid.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + @java.lang.Override + public java.util.List + getErrorsOrBuilderList() { + return errors_; + } + + /** + * + * + *
            +   * Line-level errors causing the list to be invalid.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + @java.lang.Override + public int getErrorsCount() { + return errors_.size(); + } + + /** + * + * + *
            +   * Line-level errors causing the list to be invalid.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.ReferenceListError getErrors(int index) { + return errors_.get(index); + } + + /** + * + * + *
            +   * Line-level errors causing the list to be invalid.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.ReferenceListErrorOrBuilder getErrorsOrBuilder(int index) { + return errors_.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 (success_ != false) { + output.writeBool(1, success_); + } + for (int i = 0; i < errors_.size(); i++) { + output.writeMessage(2, errors_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (success_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, success_); + } + for (int i = 0; i < errors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, errors_.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.chronicle.v1.VerifyReferenceListResponse)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.VerifyReferenceListResponse other = + (com.google.cloud.chronicle.v1.VerifyReferenceListResponse) obj; + + if (getSuccess() != other.getSuccess()) return false; + if (!getErrorsList().equals(other.getErrorsList())) 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) + SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSuccess()); + if (getErrorsCount() > 0) { + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getErrorsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListResponse 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.chronicle.v1.VerifyReferenceListResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListResponse parseFrom( + 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.chronicle.v1.VerifyReferenceListResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.chronicle.v1.VerifyReferenceListResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * VerifyListResponse response message.
            +   * 
            + * + * Protobuf type {@code google.cloud.chronicle.v1.VerifyReferenceListResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.VerifyReferenceListResponse) + com.google.cloud.chronicle.v1.VerifyReferenceListResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.ReferenceListProto + .internal_static_google_cloud_chronicle_v1_VerifyReferenceListResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.ReferenceListProto + .internal_static_google_cloud_chronicle_v1_VerifyReferenceListResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.VerifyReferenceListResponse.class, + com.google.cloud.chronicle.v1.VerifyReferenceListResponse.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.VerifyReferenceListResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + success_ = false; + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + } else { + errors_ = null; + errorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.ReferenceListProto + .internal_static_google_cloud_chronicle_v1_VerifyReferenceListResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.VerifyReferenceListResponse getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.VerifyReferenceListResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.VerifyReferenceListResponse build() { + com.google.cloud.chronicle.v1.VerifyReferenceListResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.VerifyReferenceListResponse buildPartial() { + com.google.cloud.chronicle.v1.VerifyReferenceListResponse result = + new com.google.cloud.chronicle.v1.VerifyReferenceListResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.VerifyReferenceListResponse result) { + if (errorsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + errors_ = java.util.Collections.unmodifiableList(errors_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.errors_ = errors_; + } else { + result.errors_ = errorsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.chronicle.v1.VerifyReferenceListResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.success_ = success_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.VerifyReferenceListResponse) { + return mergeFrom((com.google.cloud.chronicle.v1.VerifyReferenceListResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.VerifyReferenceListResponse other) { + if (other == com.google.cloud.chronicle.v1.VerifyReferenceListResponse.getDefaultInstance()) + return this; + if (other.getSuccess() != false) { + setSuccess(other.getSuccess()); + } + if (errorsBuilder_ == null) { + if (!other.errors_.isEmpty()) { + if (errors_.isEmpty()) { + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureErrorsIsMutable(); + errors_.addAll(other.errors_); + } + onChanged(); + } + } else { + if (!other.errors_.isEmpty()) { + if (errorsBuilder_.isEmpty()) { + errorsBuilder_.dispose(); + errorsBuilder_ = null; + errors_ = other.errors_; + bitField0_ = (bitField0_ & ~0x00000002); + errorsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetErrorsFieldBuilder() + : null; + } else { + errorsBuilder_.addAllMessages(other.errors_); + } + } + } + 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: + { + success_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.cloud.chronicle.v1.ReferenceListError m = + input.readMessage( + com.google.cloud.chronicle.v1.ReferenceListError.parser(), + extensionRegistry); + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(m); + } else { + errorsBuilder_.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 boolean success_; + + /** + * + * + *
            +     * Validity of list - true if no errors found.
            +     * 
            + * + * bool success = 1; + * + * @return The success. + */ + @java.lang.Override + public boolean getSuccess() { + return success_; + } + + /** + * + * + *
            +     * Validity of list - true if no errors found.
            +     * 
            + * + * bool success = 1; + * + * @param value The success to set. + * @return This builder for chaining. + */ + public Builder setSuccess(boolean value) { + + success_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Validity of list - true if no errors found.
            +     * 
            + * + * bool success = 1; + * + * @return This builder for chaining. + */ + public Builder clearSuccess() { + bitField0_ = (bitField0_ & ~0x00000001); + success_ = false; + onChanged(); + return this; + } + + private java.util.List errors_ = + java.util.Collections.emptyList(); + + private void ensureErrorsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + errors_ = + new java.util.ArrayList(errors_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.ReferenceListError, + com.google.cloud.chronicle.v1.ReferenceListError.Builder, + com.google.cloud.chronicle.v1.ReferenceListErrorOrBuilder> + errorsBuilder_; + + /** + * + * + *
            +     * Line-level errors causing the list to be invalid.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + public java.util.List getErrorsList() { + if (errorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(errors_); + } else { + return errorsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Line-level errors causing the list to be invalid.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + public int getErrorsCount() { + if (errorsBuilder_ == null) { + return errors_.size(); + } else { + return errorsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Line-level errors causing the list to be invalid.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + public com.google.cloud.chronicle.v1.ReferenceListError getErrors(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Line-level errors causing the list to be invalid.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + public Builder setErrors(int index, com.google.cloud.chronicle.v1.ReferenceListError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.set(index, value); + onChanged(); + } else { + errorsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Line-level errors causing the list to be invalid.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + public Builder setErrors( + int index, com.google.cloud.chronicle.v1.ReferenceListError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.set(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Line-level errors causing the list to be invalid.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + public Builder addErrors(com.google.cloud.chronicle.v1.ReferenceListError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(value); + onChanged(); + } else { + errorsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Line-level errors causing the list to be invalid.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + public Builder addErrors(int index, com.google.cloud.chronicle.v1.ReferenceListError value) { + if (errorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureErrorsIsMutable(); + errors_.add(index, value); + onChanged(); + } else { + errorsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Line-level errors causing the list to be invalid.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + public Builder addErrors( + com.google.cloud.chronicle.v1.ReferenceListError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Line-level errors causing the list to be invalid.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + public Builder addErrors( + int index, com.google.cloud.chronicle.v1.ReferenceListError.Builder builderForValue) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.add(index, builderForValue.build()); + onChanged(); + } else { + errorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Line-level errors causing the list to be invalid.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + public Builder addAllErrors( + java.lang.Iterable values) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errors_); + onChanged(); + } else { + errorsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Line-level errors causing the list to be invalid.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + public Builder clearErrors() { + if (errorsBuilder_ == null) { + errors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + errorsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Line-level errors causing the list to be invalid.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + public Builder removeErrors(int index) { + if (errorsBuilder_ == null) { + ensureErrorsIsMutable(); + errors_.remove(index); + onChanged(); + } else { + errorsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Line-level errors causing the list to be invalid.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + public com.google.cloud.chronicle.v1.ReferenceListError.Builder getErrorsBuilder(int index) { + return internalGetErrorsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Line-level errors causing the list to be invalid.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + public com.google.cloud.chronicle.v1.ReferenceListErrorOrBuilder getErrorsOrBuilder(int index) { + if (errorsBuilder_ == null) { + return errors_.get(index); + } else { + return errorsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Line-level errors causing the list to be invalid.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + public java.util.List + getErrorsOrBuilderList() { + if (errorsBuilder_ != null) { + return errorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(errors_); + } + } + + /** + * + * + *
            +     * Line-level errors causing the list to be invalid.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + public com.google.cloud.chronicle.v1.ReferenceListError.Builder addErrorsBuilder() { + return internalGetErrorsFieldBuilder() + .addBuilder(com.google.cloud.chronicle.v1.ReferenceListError.getDefaultInstance()); + } + + /** + * + * + *
            +     * Line-level errors causing the list to be invalid.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + public com.google.cloud.chronicle.v1.ReferenceListError.Builder addErrorsBuilder(int index) { + return internalGetErrorsFieldBuilder() + .addBuilder(index, com.google.cloud.chronicle.v1.ReferenceListError.getDefaultInstance()); + } + + /** + * + * + *
            +     * Line-level errors causing the list to be invalid.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + public java.util.List + getErrorsBuilderList() { + return internalGetErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.ReferenceListError, + com.google.cloud.chronicle.v1.ReferenceListError.Builder, + com.google.cloud.chronicle.v1.ReferenceListErrorOrBuilder> + internalGetErrorsFieldBuilder() { + if (errorsBuilder_ == null) { + errorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.ReferenceListError, + com.google.cloud.chronicle.v1.ReferenceListError.Builder, + com.google.cloud.chronicle.v1.ReferenceListErrorOrBuilder>( + errors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + errors_ = null; + } + return errorsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.VerifyReferenceListResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.VerifyReferenceListResponse) + private static final com.google.cloud.chronicle.v1.VerifyReferenceListResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.VerifyReferenceListResponse(); + } + + public static com.google.cloud.chronicle.v1.VerifyReferenceListResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyReferenceListResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.chronicle.v1.VerifyReferenceListResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyReferenceListResponseOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyReferenceListResponseOrBuilder.java new file mode 100644 index 000000000000..43a8f4de4028 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyReferenceListResponseOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/reference_list.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface VerifyReferenceListResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.VerifyReferenceListResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Validity of list - true if no errors found.
            +   * 
            + * + * bool success = 1; + * + * @return The success. + */ + boolean getSuccess(); + + /** + * + * + *
            +   * Line-level errors causing the list to be invalid.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + java.util.List getErrorsList(); + + /** + * + * + *
            +   * Line-level errors causing the list to be invalid.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + com.google.cloud.chronicle.v1.ReferenceListError getErrors(int index); + + /** + * + * + *
            +   * Line-level errors causing the list to be invalid.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + int getErrorsCount(); + + /** + * + * + *
            +   * Line-level errors causing the list to be invalid.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + java.util.List + getErrorsOrBuilderList(); + + /** + * + * + *
            +   * Line-level errors causing the list to be invalid.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.ReferenceListError errors = 2; + */ + com.google.cloud.chronicle.v1.ReferenceListErrorOrBuilder getErrorsOrBuilder(int index); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyRuleTextRequest.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyRuleTextRequest.java new file mode 100644 index 000000000000..2eb46d5259b1 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyRuleTextRequest.java @@ -0,0 +1,813 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/rule.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
            + * Request message for VerifyRuleText method.
            + * 
            + * + * Protobuf type {@code google.cloud.chronicle.v1.VerifyRuleTextRequest} + */ +@com.google.protobuf.Generated +public final class VerifyRuleTextRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.VerifyRuleTextRequest) + VerifyRuleTextRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VerifyRuleTextRequest"); + } + + // Use VerifyRuleTextRequest.newBuilder() to construct. + private VerifyRuleTextRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VerifyRuleTextRequest() { + instance_ = ""; + ruleText_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.RuleProto + .internal_static_google_cloud_chronicle_v1_VerifyRuleTextRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.RuleProto + .internal_static_google_cloud_chronicle_v1_VerifyRuleTextRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.VerifyRuleTextRequest.class, + com.google.cloud.chronicle.v1.VerifyRuleTextRequest.Builder.class); + } + + public static final int INSTANCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object instance_ = ""; + + /** + * + * + *
            +   * Required. The name of the parent resource, which is the SecOps instance
            +   * associated with the request. Format:
            +   * `projects/{project}/locations/{location}/instances/{instance}`
            +   * 
            + * + * + * 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 name of the parent resource, which is the SecOps instance
            +   * associated with the request. Format:
            +   * `projects/{project}/locations/{location}/instances/{instance}`
            +   * 
            + * + * + * 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 RULE_TEXT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object ruleText_ = ""; + + /** + * + * + *
            +   * Required. The rule text to verify as a UTF-8 string.
            +   * 
            + * + * string rule_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ruleText. + */ + @java.lang.Override + public java.lang.String getRuleText() { + java.lang.Object ref = ruleText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ruleText_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The rule text to verify as a UTF-8 string.
            +   * 
            + * + * string rule_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ruleText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRuleTextBytes() { + java.lang.Object ref = ruleText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ruleText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instance_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, instance_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ruleText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, ruleText_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instance_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, instance_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(ruleText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, ruleText_); + } + 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.chronicle.v1.VerifyRuleTextRequest)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.VerifyRuleTextRequest other = + (com.google.cloud.chronicle.v1.VerifyRuleTextRequest) obj; + + if (!getInstance().equals(other.getInstance())) return false; + if (!getRuleText().equals(other.getRuleText())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); + hash = (37 * hash) + RULE_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getRuleText().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextRequest 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.chronicle.v1.VerifyRuleTextRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextRequest parseFrom( + 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.chronicle.v1.VerifyRuleTextRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.chronicle.v1.VerifyRuleTextRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for VerifyRuleText method.
            +   * 
            + * + * Protobuf type {@code google.cloud.chronicle.v1.VerifyRuleTextRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.VerifyRuleTextRequest) + com.google.cloud.chronicle.v1.VerifyRuleTextRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.RuleProto + .internal_static_google_cloud_chronicle_v1_VerifyRuleTextRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.RuleProto + .internal_static_google_cloud_chronicle_v1_VerifyRuleTextRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.VerifyRuleTextRequest.class, + com.google.cloud.chronicle.v1.VerifyRuleTextRequest.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.VerifyRuleTextRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instance_ = ""; + ruleText_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.RuleProto + .internal_static_google_cloud_chronicle_v1_VerifyRuleTextRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.VerifyRuleTextRequest getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.VerifyRuleTextRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.VerifyRuleTextRequest build() { + com.google.cloud.chronicle.v1.VerifyRuleTextRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.VerifyRuleTextRequest buildPartial() { + com.google.cloud.chronicle.v1.VerifyRuleTextRequest result = + new com.google.cloud.chronicle.v1.VerifyRuleTextRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.chronicle.v1.VerifyRuleTextRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instance_ = instance_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.ruleText_ = ruleText_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.VerifyRuleTextRequest) { + return mergeFrom((com.google.cloud.chronicle.v1.VerifyRuleTextRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.VerifyRuleTextRequest other) { + if (other == com.google.cloud.chronicle.v1.VerifyRuleTextRequest.getDefaultInstance()) + return this; + if (!other.getInstance().isEmpty()) { + instance_ = other.instance_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRuleText().isEmpty()) { + ruleText_ = other.ruleText_; + 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: + { + instance_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + ruleText_ = 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 instance_ = ""; + + /** + * + * + *
            +     * Required. The name of the parent resource, which is the SecOps instance
            +     * associated with the request. Format:
            +     * `projects/{project}/locations/{location}/instances/{instance}`
            +     * 
            + * + * + * 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 name of the parent resource, which is the SecOps instance
            +     * associated with the request. Format:
            +     * `projects/{project}/locations/{location}/instances/{instance}`
            +     * 
            + * + * + * 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 name of the parent resource, which is the SecOps instance
            +     * associated with the request. Format:
            +     * `projects/{project}/locations/{location}/instances/{instance}`
            +     * 
            + * + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the parent resource, which is the SecOps instance
            +     * associated with the request. Format:
            +     * `projects/{project}/locations/{location}/instances/{instance}`
            +     * 
            + * + * + * 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_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the parent resource, which is the SecOps instance
            +     * associated with the request. Format:
            +     * `projects/{project}/locations/{location}/instances/{instance}`
            +     * 
            + * + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object ruleText_ = ""; + + /** + * + * + *
            +     * Required. The rule text to verify as a UTF-8 string.
            +     * 
            + * + * string rule_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ruleText. + */ + public java.lang.String getRuleText() { + java.lang.Object ref = ruleText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ruleText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The rule text to verify as a UTF-8 string.
            +     * 
            + * + * string rule_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ruleText. + */ + public com.google.protobuf.ByteString getRuleTextBytes() { + java.lang.Object ref = ruleText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ruleText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The rule text to verify as a UTF-8 string.
            +     * 
            + * + * string rule_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The ruleText to set. + * @return This builder for chaining. + */ + public Builder setRuleText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ruleText_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The rule text to verify as a UTF-8 string.
            +     * 
            + * + * string rule_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRuleText() { + ruleText_ = getDefaultInstance().getRuleText(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The rule text to verify as a UTF-8 string.
            +     * 
            + * + * string rule_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for ruleText to set. + * @return This builder for chaining. + */ + public Builder setRuleTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ruleText_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.VerifyRuleTextRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.VerifyRuleTextRequest) + private static final com.google.cloud.chronicle.v1.VerifyRuleTextRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.VerifyRuleTextRequest(); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyRuleTextRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.chronicle.v1.VerifyRuleTextRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyRuleTextRequestOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyRuleTextRequestOrBuilder.java new file mode 100644 index 000000000000..4c5bad825a3f --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyRuleTextRequestOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/rule.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface VerifyRuleTextRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.VerifyRuleTextRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The name of the parent resource, which is the SecOps instance
            +   * associated with the request. Format:
            +   * `projects/{project}/locations/{location}/instances/{instance}`
            +   * 
            + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The instance. + */ + java.lang.String getInstance(); + + /** + * + * + *
            +   * Required. The name of the parent resource, which is the SecOps instance
            +   * associated with the request. Format:
            +   * `projects/{project}/locations/{location}/instances/{instance}`
            +   * 
            + * + * + * string instance = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instance. + */ + com.google.protobuf.ByteString getInstanceBytes(); + + /** + * + * + *
            +   * Required. The rule text to verify as a UTF-8 string.
            +   * 
            + * + * string rule_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The ruleText. + */ + java.lang.String getRuleText(); + + /** + * + * + *
            +   * Required. The rule text to verify as a UTF-8 string.
            +   * 
            + * + * string rule_text = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for ruleText. + */ + com.google.protobuf.ByteString getRuleTextBytes(); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyRuleTextResponse.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyRuleTextResponse.java new file mode 100644 index 000000000000..b72ad174916f --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyRuleTextResponse.java @@ -0,0 +1,1088 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/rule.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +/** + * + * + *
            + * Response message for VerifyRuleText method.
            + * 
            + * + * Protobuf type {@code google.cloud.chronicle.v1.VerifyRuleTextResponse} + */ +@com.google.protobuf.Generated +public final class VerifyRuleTextResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.chronicle.v1.VerifyRuleTextResponse) + VerifyRuleTextResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VerifyRuleTextResponse"); + } + + // Use VerifyRuleTextResponse.newBuilder() to construct. + private VerifyRuleTextResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VerifyRuleTextResponse() { + compilationDiagnostics_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.RuleProto + .internal_static_google_cloud_chronicle_v1_VerifyRuleTextResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.RuleProto + .internal_static_google_cloud_chronicle_v1_VerifyRuleTextResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.VerifyRuleTextResponse.class, + com.google.cloud.chronicle.v1.VerifyRuleTextResponse.Builder.class); + } + + public static final int SUCCESS_FIELD_NUMBER = 1; + private boolean success_ = false; + + /** + * + * + *
            +   * Whether or not the rule text was successfully verified.
            +   * 
            + * + * bool success = 1; + * + * @return The success. + */ + @java.lang.Override + public boolean getSuccess() { + return success_; + } + + public static final int COMPILATION_DIAGNOSTICS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + compilationDiagnostics_; + + /** + * + * + *
            +   * A list of a rule's corresponding compilation diagnostic messages
            +   * such as compilation errors and compilation warnings.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + @java.lang.Override + public java.util.List + getCompilationDiagnosticsList() { + return compilationDiagnostics_; + } + + /** + * + * + *
            +   * A list of a rule's corresponding compilation diagnostic messages
            +   * such as compilation errors and compilation warnings.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + @java.lang.Override + public java.util.List + getCompilationDiagnosticsOrBuilderList() { + return compilationDiagnostics_; + } + + /** + * + * + *
            +   * A list of a rule's corresponding compilation diagnostic messages
            +   * such as compilation errors and compilation warnings.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + @java.lang.Override + public int getCompilationDiagnosticsCount() { + return compilationDiagnostics_.size(); + } + + /** + * + * + *
            +   * A list of a rule's corresponding compilation diagnostic messages
            +   * such as compilation errors and compilation warnings.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.CompilationDiagnostic getCompilationDiagnostics(int index) { + return compilationDiagnostics_.get(index); + } + + /** + * + * + *
            +   * A list of a rule's corresponding compilation diagnostic messages
            +   * such as compilation errors and compilation warnings.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + @java.lang.Override + public com.google.cloud.chronicle.v1.CompilationDiagnosticOrBuilder + getCompilationDiagnosticsOrBuilder(int index) { + return compilationDiagnostics_.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 (success_ != false) { + output.writeBool(1, success_); + } + for (int i = 0; i < compilationDiagnostics_.size(); i++) { + output.writeMessage(3, compilationDiagnostics_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (success_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, success_); + } + for (int i = 0; i < compilationDiagnostics_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, compilationDiagnostics_.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.chronicle.v1.VerifyRuleTextResponse)) { + return super.equals(obj); + } + com.google.cloud.chronicle.v1.VerifyRuleTextResponse other = + (com.google.cloud.chronicle.v1.VerifyRuleTextResponse) obj; + + if (getSuccess() != other.getSuccess()) return false; + if (!getCompilationDiagnosticsList().equals(other.getCompilationDiagnosticsList())) + 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) + SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSuccess()); + if (getCompilationDiagnosticsCount() > 0) { + hash = (37 * hash) + COMPILATION_DIAGNOSTICS_FIELD_NUMBER; + hash = (53 * hash) + getCompilationDiagnosticsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextResponse 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.chronicle.v1.VerifyRuleTextResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextResponse parseFrom( + 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.chronicle.v1.VerifyRuleTextResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.chronicle.v1.VerifyRuleTextResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response message for VerifyRuleText method.
            +   * 
            + * + * Protobuf type {@code google.cloud.chronicle.v1.VerifyRuleTextResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.chronicle.v1.VerifyRuleTextResponse) + com.google.cloud.chronicle.v1.VerifyRuleTextResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.chronicle.v1.RuleProto + .internal_static_google_cloud_chronicle_v1_VerifyRuleTextResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.chronicle.v1.RuleProto + .internal_static_google_cloud_chronicle_v1_VerifyRuleTextResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.chronicle.v1.VerifyRuleTextResponse.class, + com.google.cloud.chronicle.v1.VerifyRuleTextResponse.Builder.class); + } + + // Construct using com.google.cloud.chronicle.v1.VerifyRuleTextResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + success_ = false; + if (compilationDiagnosticsBuilder_ == null) { + compilationDiagnostics_ = java.util.Collections.emptyList(); + } else { + compilationDiagnostics_ = null; + compilationDiagnosticsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.chronicle.v1.RuleProto + .internal_static_google_cloud_chronicle_v1_VerifyRuleTextResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.VerifyRuleTextResponse getDefaultInstanceForType() { + return com.google.cloud.chronicle.v1.VerifyRuleTextResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.VerifyRuleTextResponse build() { + com.google.cloud.chronicle.v1.VerifyRuleTextResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.chronicle.v1.VerifyRuleTextResponse buildPartial() { + com.google.cloud.chronicle.v1.VerifyRuleTextResponse result = + new com.google.cloud.chronicle.v1.VerifyRuleTextResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.chronicle.v1.VerifyRuleTextResponse result) { + if (compilationDiagnosticsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + compilationDiagnostics_ = java.util.Collections.unmodifiableList(compilationDiagnostics_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.compilationDiagnostics_ = compilationDiagnostics_; + } else { + result.compilationDiagnostics_ = compilationDiagnosticsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.chronicle.v1.VerifyRuleTextResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.success_ = success_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.chronicle.v1.VerifyRuleTextResponse) { + return mergeFrom((com.google.cloud.chronicle.v1.VerifyRuleTextResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.chronicle.v1.VerifyRuleTextResponse other) { + if (other == com.google.cloud.chronicle.v1.VerifyRuleTextResponse.getDefaultInstance()) + return this; + if (other.getSuccess() != false) { + setSuccess(other.getSuccess()); + } + if (compilationDiagnosticsBuilder_ == null) { + if (!other.compilationDiagnostics_.isEmpty()) { + if (compilationDiagnostics_.isEmpty()) { + compilationDiagnostics_ = other.compilationDiagnostics_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCompilationDiagnosticsIsMutable(); + compilationDiagnostics_.addAll(other.compilationDiagnostics_); + } + onChanged(); + } + } else { + if (!other.compilationDiagnostics_.isEmpty()) { + if (compilationDiagnosticsBuilder_.isEmpty()) { + compilationDiagnosticsBuilder_.dispose(); + compilationDiagnosticsBuilder_ = null; + compilationDiagnostics_ = other.compilationDiagnostics_; + bitField0_ = (bitField0_ & ~0x00000002); + compilationDiagnosticsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCompilationDiagnosticsFieldBuilder() + : null; + } else { + compilationDiagnosticsBuilder_.addAllMessages(other.compilationDiagnostics_); + } + } + } + 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: + { + success_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 26: + { + com.google.cloud.chronicle.v1.CompilationDiagnostic m = + input.readMessage( + com.google.cloud.chronicle.v1.CompilationDiagnostic.parser(), + extensionRegistry); + if (compilationDiagnosticsBuilder_ == null) { + ensureCompilationDiagnosticsIsMutable(); + compilationDiagnostics_.add(m); + } else { + compilationDiagnosticsBuilder_.addMessage(m); + } + 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 boolean success_; + + /** + * + * + *
            +     * Whether or not the rule text was successfully verified.
            +     * 
            + * + * bool success = 1; + * + * @return The success. + */ + @java.lang.Override + public boolean getSuccess() { + return success_; + } + + /** + * + * + *
            +     * Whether or not the rule text was successfully verified.
            +     * 
            + * + * bool success = 1; + * + * @param value The success to set. + * @return This builder for chaining. + */ + public Builder setSuccess(boolean value) { + + success_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Whether or not the rule text was successfully verified.
            +     * 
            + * + * bool success = 1; + * + * @return This builder for chaining. + */ + public Builder clearSuccess() { + bitField0_ = (bitField0_ & ~0x00000001); + success_ = false; + onChanged(); + return this; + } + + private java.util.List + compilationDiagnostics_ = java.util.Collections.emptyList(); + + private void ensureCompilationDiagnosticsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + compilationDiagnostics_ = + new java.util.ArrayList( + compilationDiagnostics_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.CompilationDiagnostic, + com.google.cloud.chronicle.v1.CompilationDiagnostic.Builder, + com.google.cloud.chronicle.v1.CompilationDiagnosticOrBuilder> + compilationDiagnosticsBuilder_; + + /** + * + * + *
            +     * A list of a rule's corresponding compilation diagnostic messages
            +     * such as compilation errors and compilation warnings.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + public java.util.List + getCompilationDiagnosticsList() { + if (compilationDiagnosticsBuilder_ == null) { + return java.util.Collections.unmodifiableList(compilationDiagnostics_); + } else { + return compilationDiagnosticsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * A list of a rule's corresponding compilation diagnostic messages
            +     * such as compilation errors and compilation warnings.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + public int getCompilationDiagnosticsCount() { + if (compilationDiagnosticsBuilder_ == null) { + return compilationDiagnostics_.size(); + } else { + return compilationDiagnosticsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * A list of a rule's corresponding compilation diagnostic messages
            +     * such as compilation errors and compilation warnings.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + public com.google.cloud.chronicle.v1.CompilationDiagnostic getCompilationDiagnostics( + int index) { + if (compilationDiagnosticsBuilder_ == null) { + return compilationDiagnostics_.get(index); + } else { + return compilationDiagnosticsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * A list of a rule's corresponding compilation diagnostic messages
            +     * such as compilation errors and compilation warnings.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + public Builder setCompilationDiagnostics( + int index, com.google.cloud.chronicle.v1.CompilationDiagnostic value) { + if (compilationDiagnosticsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompilationDiagnosticsIsMutable(); + compilationDiagnostics_.set(index, value); + onChanged(); + } else { + compilationDiagnosticsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * A list of a rule's corresponding compilation diagnostic messages
            +     * such as compilation errors and compilation warnings.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + public Builder setCompilationDiagnostics( + int index, com.google.cloud.chronicle.v1.CompilationDiagnostic.Builder builderForValue) { + if (compilationDiagnosticsBuilder_ == null) { + ensureCompilationDiagnosticsIsMutable(); + compilationDiagnostics_.set(index, builderForValue.build()); + onChanged(); + } else { + compilationDiagnosticsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * A list of a rule's corresponding compilation diagnostic messages
            +     * such as compilation errors and compilation warnings.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + public Builder addCompilationDiagnostics( + com.google.cloud.chronicle.v1.CompilationDiagnostic value) { + if (compilationDiagnosticsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompilationDiagnosticsIsMutable(); + compilationDiagnostics_.add(value); + onChanged(); + } else { + compilationDiagnosticsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * A list of a rule's corresponding compilation diagnostic messages
            +     * such as compilation errors and compilation warnings.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + public Builder addCompilationDiagnostics( + int index, com.google.cloud.chronicle.v1.CompilationDiagnostic value) { + if (compilationDiagnosticsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCompilationDiagnosticsIsMutable(); + compilationDiagnostics_.add(index, value); + onChanged(); + } else { + compilationDiagnosticsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * A list of a rule's corresponding compilation diagnostic messages
            +     * such as compilation errors and compilation warnings.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + public Builder addCompilationDiagnostics( + com.google.cloud.chronicle.v1.CompilationDiagnostic.Builder builderForValue) { + if (compilationDiagnosticsBuilder_ == null) { + ensureCompilationDiagnosticsIsMutable(); + compilationDiagnostics_.add(builderForValue.build()); + onChanged(); + } else { + compilationDiagnosticsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * A list of a rule's corresponding compilation diagnostic messages
            +     * such as compilation errors and compilation warnings.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + public Builder addCompilationDiagnostics( + int index, com.google.cloud.chronicle.v1.CompilationDiagnostic.Builder builderForValue) { + if (compilationDiagnosticsBuilder_ == null) { + ensureCompilationDiagnosticsIsMutable(); + compilationDiagnostics_.add(index, builderForValue.build()); + onChanged(); + } else { + compilationDiagnosticsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * A list of a rule's corresponding compilation diagnostic messages
            +     * such as compilation errors and compilation warnings.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + public Builder addAllCompilationDiagnostics( + java.lang.Iterable values) { + if (compilationDiagnosticsBuilder_ == null) { + ensureCompilationDiagnosticsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, compilationDiagnostics_); + onChanged(); + } else { + compilationDiagnosticsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * A list of a rule's corresponding compilation diagnostic messages
            +     * such as compilation errors and compilation warnings.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + public Builder clearCompilationDiagnostics() { + if (compilationDiagnosticsBuilder_ == null) { + compilationDiagnostics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + compilationDiagnosticsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * A list of a rule's corresponding compilation diagnostic messages
            +     * such as compilation errors and compilation warnings.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + public Builder removeCompilationDiagnostics(int index) { + if (compilationDiagnosticsBuilder_ == null) { + ensureCompilationDiagnosticsIsMutable(); + compilationDiagnostics_.remove(index); + onChanged(); + } else { + compilationDiagnosticsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * A list of a rule's corresponding compilation diagnostic messages
            +     * such as compilation errors and compilation warnings.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + public com.google.cloud.chronicle.v1.CompilationDiagnostic.Builder + getCompilationDiagnosticsBuilder(int index) { + return internalGetCompilationDiagnosticsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * A list of a rule's corresponding compilation diagnostic messages
            +     * such as compilation errors and compilation warnings.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + public com.google.cloud.chronicle.v1.CompilationDiagnosticOrBuilder + getCompilationDiagnosticsOrBuilder(int index) { + if (compilationDiagnosticsBuilder_ == null) { + return compilationDiagnostics_.get(index); + } else { + return compilationDiagnosticsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * A list of a rule's corresponding compilation diagnostic messages
            +     * such as compilation errors and compilation warnings.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + public java.util.List + getCompilationDiagnosticsOrBuilderList() { + if (compilationDiagnosticsBuilder_ != null) { + return compilationDiagnosticsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(compilationDiagnostics_); + } + } + + /** + * + * + *
            +     * A list of a rule's corresponding compilation diagnostic messages
            +     * such as compilation errors and compilation warnings.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + public com.google.cloud.chronicle.v1.CompilationDiagnostic.Builder + addCompilationDiagnosticsBuilder() { + return internalGetCompilationDiagnosticsFieldBuilder() + .addBuilder(com.google.cloud.chronicle.v1.CompilationDiagnostic.getDefaultInstance()); + } + + /** + * + * + *
            +     * A list of a rule's corresponding compilation diagnostic messages
            +     * such as compilation errors and compilation warnings.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + public com.google.cloud.chronicle.v1.CompilationDiagnostic.Builder + addCompilationDiagnosticsBuilder(int index) { + return internalGetCompilationDiagnosticsFieldBuilder() + .addBuilder( + index, com.google.cloud.chronicle.v1.CompilationDiagnostic.getDefaultInstance()); + } + + /** + * + * + *
            +     * A list of a rule's corresponding compilation diagnostic messages
            +     * such as compilation errors and compilation warnings.
            +     * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + public java.util.List + getCompilationDiagnosticsBuilderList() { + return internalGetCompilationDiagnosticsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.CompilationDiagnostic, + com.google.cloud.chronicle.v1.CompilationDiagnostic.Builder, + com.google.cloud.chronicle.v1.CompilationDiagnosticOrBuilder> + internalGetCompilationDiagnosticsFieldBuilder() { + if (compilationDiagnosticsBuilder_ == null) { + compilationDiagnosticsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.chronicle.v1.CompilationDiagnostic, + com.google.cloud.chronicle.v1.CompilationDiagnostic.Builder, + com.google.cloud.chronicle.v1.CompilationDiagnosticOrBuilder>( + compilationDiagnostics_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + compilationDiagnostics_ = null; + } + return compilationDiagnosticsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.chronicle.v1.VerifyRuleTextResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.chronicle.v1.VerifyRuleTextResponse) + private static final com.google.cloud.chronicle.v1.VerifyRuleTextResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.chronicle.v1.VerifyRuleTextResponse(); + } + + public static com.google.cloud.chronicle.v1.VerifyRuleTextResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyRuleTextResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.chronicle.v1.VerifyRuleTextResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyRuleTextResponseOrBuilder.java b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyRuleTextResponseOrBuilder.java new file mode 100644 index 000000000000..b1969635e766 --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/java/com/google/cloud/chronicle/v1/VerifyRuleTextResponseOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/chronicle/v1/rule.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.chronicle.v1; + +@com.google.protobuf.Generated +public interface VerifyRuleTextResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.chronicle.v1.VerifyRuleTextResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Whether or not the rule text was successfully verified.
            +   * 
            + * + * bool success = 1; + * + * @return The success. + */ + boolean getSuccess(); + + /** + * + * + *
            +   * A list of a rule's corresponding compilation diagnostic messages
            +   * such as compilation errors and compilation warnings.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + java.util.List + getCompilationDiagnosticsList(); + + /** + * + * + *
            +   * A list of a rule's corresponding compilation diagnostic messages
            +   * such as compilation errors and compilation warnings.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + com.google.cloud.chronicle.v1.CompilationDiagnostic getCompilationDiagnostics(int index); + + /** + * + * + *
            +   * A list of a rule's corresponding compilation diagnostic messages
            +   * such as compilation errors and compilation warnings.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + int getCompilationDiagnosticsCount(); + + /** + * + * + *
            +   * A list of a rule's corresponding compilation diagnostic messages
            +   * such as compilation errors and compilation warnings.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + java.util.List + getCompilationDiagnosticsOrBuilderList(); + + /** + * + * + *
            +   * A list of a rule's corresponding compilation diagnostic messages
            +   * such as compilation errors and compilation warnings.
            +   * 
            + * + * repeated .google.cloud.chronicle.v1.CompilationDiagnostic compilation_diagnostics = 3; + * + */ + com.google.cloud.chronicle.v1.CompilationDiagnosticOrBuilder getCompilationDiagnosticsOrBuilder( + int index); +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/proto/google/cloud/chronicle/v1/reference_list.proto b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/proto/google/cloud/chronicle/v1/reference_list.proto index 9c18e6726efc..57837fd98228 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/proto/google/cloud/chronicle/v1/reference_list.proto +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/proto/google/cloud/chronicle/v1/reference_list.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -35,6 +35,8 @@ option ruby_package = "Google::Cloud::Chronicle::V1"; service ReferenceListService { option (google.api.default_host) = "chronicle.googleapis.com"; option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/chronicle," + "https://www.googleapis.com/auth/chronicle.readonly," "https://www.googleapis.com/auth/cloud-platform"; // Gets a single reference list. @@ -72,6 +74,15 @@ service ReferenceListService { }; option (google.api.method_signature) = "reference_list,update_mask"; } + + // VerifyReferenceList validates list content and returns line errors, if any. + rpc VerifyReferenceList(VerifyReferenceListRequest) + returns (VerifyReferenceListResponse) { + option (google.api.http) = { + post: "/v1/{instance=projects/*/locations/*/instances/*}:verifyReferenceList" + body: "*" + }; + } } // The syntax type indicating how list entries should be validated. @@ -219,6 +230,37 @@ message UpdateReferenceListRequest { google.protobuf.FieldMask update_mask = 2; } +// VerifyReferenceList request message. +message VerifyReferenceListRequest { + // Required. The name of the parent resource, which is the SecOps instance + // associated with the request. Format: + // `projects/{project}/locations/{location}/instances/{instance}` + string instance = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "chronicle.googleapis.com/Instance" + } + ]; + + // Required. Type (format) of list lines. + ReferenceListSyntaxType syntax_type = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The entries of the reference list. + // Each line may be either an item in the list or a comment. + repeated ReferenceListEntry entries = 3 + [(google.api.field_behavior) = REQUIRED]; +} + +// VerifyListResponse response message. +message VerifyReferenceListResponse { + // Validity of list - true if no errors found. + bool success = 1; + + // Line-level errors causing the list to be invalid. + repeated ReferenceListError errors = 2; +} + // A reference list. // Reference lists are user-defined lists of values which users can // use in multiple Rules. @@ -276,3 +318,13 @@ message ReferenceListEntry { // Required. The value of the entry. Maximum length is 512 characters. string value = 1 [(google.api.field_behavior) = REQUIRED]; } + +// The error generated when verifying the reference list. +message ReferenceListError { + // 1-indexed line number where the error occurs. + // General list errors are indexed at -1. + int32 line_number = 1; + + // Message explaining why the line is invalid. + string error_message = 2; +} diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/proto/google/cloud/chronicle/v1/rule.proto b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/proto/google/cloud/chronicle/v1/rule.proto index ba8b1cd7d328..8847a2c51152 100644 --- a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/proto/google/cloud/chronicle/v1/rule.proto +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/proto/google/cloud/chronicle/v1/rule.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -38,6 +38,8 @@ option ruby_package = "Google::Cloud::Chronicle::V1"; service RuleService { option (google.api.default_host) = "chronicle.googleapis.com"; option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/chronicle," + "https://www.googleapis.com/auth/chronicle.readonly," "https://www.googleapis.com/auth/cloud-platform"; // Creates a new Rule. @@ -82,6 +84,15 @@ service RuleService { option (google.api.method_signature) = "name"; } + // Verifies the given rule text. + rpc VerifyRuleText(VerifyRuleTextRequest) returns (VerifyRuleTextResponse) { + option (google.api.http) = { + post: "/v1/{instance=projects/*/locations/*/instances/*}:verifyRuleText" + body: "*" + }; + option (google.api.method_signature) = "instance,rule_text"; + } + // Lists all revisions of the rule. rpc ListRuleRevisions(ListRuleRevisionsRequest) returns (ListRuleRevisionsResponse) { @@ -573,6 +584,32 @@ message DeleteRuleRequest { bool force = 2 [(google.api.field_behavior) = OPTIONAL]; } +// Request message for VerifyRuleText method. +message VerifyRuleTextRequest { + // Required. The name of the parent resource, which is the SecOps instance + // associated with the request. Format: + // `projects/{project}/locations/{location}/instances/{instance}` + string instance = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "chronicle.googleapis.com/Instance" + } + ]; + + // Required. The rule text to verify as a UTF-8 string. + string rule_text = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for VerifyRuleText method. +message VerifyRuleTextResponse { + // Whether or not the rule text was successfully verified. + bool success = 1; + + // A list of a rule's corresponding compilation diagnostic messages + // such as compilation errors and compilation warnings. + repeated CompilationDiagnostic compilation_diagnostics = 3; +} + // Request message for ListRuleRevisions method. message ListRuleRevisionsRequest { // Required. The name of the rule to list revisions for. diff --git a/java-chronicle/proto-google-cloud-chronicle-v1/src/main/proto/google/cloud/chronicle/v1/rule_execution_error.proto b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/proto/google/cloud/chronicle/v1/rule_execution_error.proto new file mode 100644 index 000000000000..452f5ca4f28b --- /dev/null +++ b/java-chronicle/proto-google-cloud-chronicle-v1/src/main/proto/google/cloud/chronicle/v1/rule_execution_error.proto @@ -0,0 +1,156 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// 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.chronicle.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/rpc/status.proto"; +import "google/type/interval.proto"; + +option csharp_namespace = "Google.Cloud.Chronicle.V1"; +option go_package = "cloud.google.com/go/chronicle/apiv1/chroniclepb;chroniclepb"; +option java_multiple_files = true; +option java_outer_classname = "RuleExecutionErrorProto"; +option java_package = "com.google.cloud.chronicle.v1"; +option php_namespace = "Google\\Cloud\\Chronicle\\V1"; +option ruby_package = "Google::Cloud::Chronicle::V1"; +option (google.api.resource_definition) = { + type: "chronicle.googleapis.com/CuratedRule" + pattern: "projects/{project}/locations/{location}/instances/{instance}/curatedRules/{curatedRule}" +}; + +// RuleExecutionErrorService contains endpoints related to rule execution +// errors. +service RuleExecutionErrorService { + option (google.api.default_host) = "chronicle.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/chronicle," + "https://www.googleapis.com/auth/chronicle.readonly," + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists rule execution errors. + rpc ListRuleExecutionErrors(ListRuleExecutionErrorsRequest) + returns (ListRuleExecutionErrorsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/instances/*}/ruleExecutionErrors" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request message for ListRuleExecutionErrors. +message ListRuleExecutionErrorsRequest { + // Required. The instance to list rule execution errors from. + // Format: + // projects/{project}/locations/{location}/instances/{instance} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "chronicle.googleapis.com/RuleExecutionError" + } + ]; + + // The maximum number of rule execution errors to return. The service may + // return fewer than this value. If unspecified, at most 1000 rule execution + // errors will be returned. The maximum value is 10000; values above 10000 + // will be coerced to 10000. + int32 page_size = 2; + + // A page token, received from a previous `ListRuleExecutionErrors` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListRuleExecutionErrors` + // must match the call that provided the page token. + string page_token = 3; + + // A filter that can be used to retrieve specific rule execution errors. + // Only the following filters are allowed: + // ``` + // rule = "{Rule.name}" + // curated_rule = "{CuratedRule.name}" + // ``` + // The value for rule or curated_rule must be a valid rule resource name or a + // valid curated rule resource name specified in quotes. + // + // For 'rule', an optional 'revision_id' can be specified which can be used to + // fetch errors for a given revision of the rule. A '-' is also allowed to + // fetch errors across all revisions of the rule. If unspecified, only errors + // corresponding to the most recent revision of the rule will be returned. So + // these variations are all allowed: + // ``` + // rule = "{Rule.name}" + // rule = "{Rule.name}@{Rule.revision_id}" + // rule = "{Rule.name}@-" + // ``` + // Revision IDs are not supported for curated rules. + string filter = 4; +} + +// Response message for ListRuleExecutionErrors. +message ListRuleExecutionErrorsResponse { + // List of rule execution errors. + repeated RuleExecutionError rule_execution_errors = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// The RuleExecutionError resource represents an error generated from +// running/deploying a rule. +message RuleExecutionError { + option (google.api.resource) = { + type: "chronicle.googleapis.com/RuleExecutionError" + pattern: "projects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error}" + }; + + // The resource name of the source that generated the rule execution error. + oneof source { + // Output only. The resource name of the rule that generated the rule + // execution error. + string rule = 4 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "chronicle.googleapis.com/Rule" + } + ]; + + // Output only. The resource name of the curated rule that generated the + // rule execution error. + string curated_rule = 5 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "chronicle.googleapis.com/CuratedRule" + } + ]; + } + + // Output only. The resource name of the rule execution error. + // Format: + // projects/{project}/locations/{location}/instances/{instance}/ruleExecutionErrors/{rule_execution_error} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The error status corresponding with the rule execution error. + google.rpc.Status error = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The event time range that the rule execution error corresponds + // with. + google.type.Interval time_range = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/referencelistservice/verifyreferencelist/AsyncVerifyReferenceList.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/referencelistservice/verifyreferencelist/AsyncVerifyReferenceList.java new file mode 100644 index 000000000000..bf03122216b1 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/referencelistservice/verifyreferencelist/AsyncVerifyReferenceList.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.samples; + +// [START chronicle_v1_generated_ReferenceListService_VerifyReferenceList_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.ReferenceListEntry; +import com.google.cloud.chronicle.v1.ReferenceListServiceClient; +import com.google.cloud.chronicle.v1.ReferenceListSyntaxType; +import com.google.cloud.chronicle.v1.VerifyReferenceListRequest; +import com.google.cloud.chronicle.v1.VerifyReferenceListResponse; +import java.util.ArrayList; + +public class AsyncVerifyReferenceList { + + public static void main(String[] args) throws Exception { + asyncVerifyReferenceList(); + } + + public static void asyncVerifyReferenceList() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReferenceListServiceClient referenceListServiceClient = + ReferenceListServiceClient.create()) { + VerifyReferenceListRequest request = + VerifyReferenceListRequest.newBuilder() + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSyntaxType(ReferenceListSyntaxType.forNumber(0)) + .addAllEntries(new ArrayList()) + .build(); + ApiFuture future = + referenceListServiceClient.verifyReferenceListCallable().futureCall(request); + // Do something. + VerifyReferenceListResponse response = future.get(); + } + } +} +// [END chronicle_v1_generated_ReferenceListService_VerifyReferenceList_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/referencelistservice/verifyreferencelist/SyncVerifyReferenceList.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/referencelistservice/verifyreferencelist/SyncVerifyReferenceList.java new file mode 100644 index 000000000000..9e7b98deaba9 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/referencelistservice/verifyreferencelist/SyncVerifyReferenceList.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.samples; + +// [START chronicle_v1_generated_ReferenceListService_VerifyReferenceList_sync] +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.ReferenceListEntry; +import com.google.cloud.chronicle.v1.ReferenceListServiceClient; +import com.google.cloud.chronicle.v1.ReferenceListSyntaxType; +import com.google.cloud.chronicle.v1.VerifyReferenceListRequest; +import com.google.cloud.chronicle.v1.VerifyReferenceListResponse; +import java.util.ArrayList; + +public class SyncVerifyReferenceList { + + public static void main(String[] args) throws Exception { + syncVerifyReferenceList(); + } + + public static void syncVerifyReferenceList() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ReferenceListServiceClient referenceListServiceClient = + ReferenceListServiceClient.create()) { + VerifyReferenceListRequest request = + VerifyReferenceListRequest.newBuilder() + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setSyntaxType(ReferenceListSyntaxType.forNumber(0)) + .addAllEntries(new ArrayList()) + .build(); + VerifyReferenceListResponse response = + referenceListServiceClient.verifyReferenceList(request); + } + } +} +// [END chronicle_v1_generated_ReferenceListService_VerifyReferenceList_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/create/SyncCreateSetCredentialsProvider.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..730df1688d20 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.samples; + +// [START chronicle_v1_generated_RuleExecutionErrorService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.chronicle.v1.RuleExecutionErrorServiceClient; +import com.google.cloud.chronicle.v1.RuleExecutionErrorServiceSettings; +import com.google.cloud.chronicle.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RuleExecutionErrorServiceSettings ruleExecutionErrorServiceSettings = + RuleExecutionErrorServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + RuleExecutionErrorServiceClient ruleExecutionErrorServiceClient = + RuleExecutionErrorServiceClient.create(ruleExecutionErrorServiceSettings); + } +} +// [END chronicle_v1_generated_RuleExecutionErrorService_Create_SetCredentialsProvider_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/create/SyncCreateSetEndpoint.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..6ee09e48b42d --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.samples; + +// [START chronicle_v1_generated_RuleExecutionErrorService_Create_SetEndpoint_sync] +import com.google.cloud.chronicle.v1.RuleExecutionErrorServiceClient; +import com.google.cloud.chronicle.v1.RuleExecutionErrorServiceSettings; +import com.google.cloud.chronicle.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RuleExecutionErrorServiceSettings ruleExecutionErrorServiceSettings = + RuleExecutionErrorServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + RuleExecutionErrorServiceClient ruleExecutionErrorServiceClient = + RuleExecutionErrorServiceClient.create(ruleExecutionErrorServiceSettings); + } +} +// [END chronicle_v1_generated_RuleExecutionErrorService_Create_SetEndpoint_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/create/SyncCreateUseHttpJsonTransport.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..3661d1ddd7db --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.samples; + +// [START chronicle_v1_generated_RuleExecutionErrorService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.chronicle.v1.RuleExecutionErrorServiceClient; +import com.google.cloud.chronicle.v1.RuleExecutionErrorServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RuleExecutionErrorServiceSettings ruleExecutionErrorServiceSettings = + RuleExecutionErrorServiceSettings.newHttpJsonBuilder().build(); + RuleExecutionErrorServiceClient ruleExecutionErrorServiceClient = + RuleExecutionErrorServiceClient.create(ruleExecutionErrorServiceSettings); + } +} +// [END chronicle_v1_generated_RuleExecutionErrorService_Create_UseHttpJsonTransport_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/AsyncListRuleExecutionErrors.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/AsyncListRuleExecutionErrors.java new file mode 100644 index 000000000000..1525d4043a3a --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/AsyncListRuleExecutionErrors.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.samples; + +// [START chronicle_v1_generated_RuleExecutionErrorService_ListRuleExecutionErrors_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest; +import com.google.cloud.chronicle.v1.RuleExecutionError; +import com.google.cloud.chronicle.v1.RuleExecutionErrorServiceClient; + +public class AsyncListRuleExecutionErrors { + + public static void main(String[] args) throws Exception { + asyncListRuleExecutionErrors(); + } + + public static void asyncListRuleExecutionErrors() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (RuleExecutionErrorServiceClient ruleExecutionErrorServiceClient = + RuleExecutionErrorServiceClient.create()) { + ListRuleExecutionErrorsRequest request = + ListRuleExecutionErrorsRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + ApiFuture future = + ruleExecutionErrorServiceClient + .listRuleExecutionErrorsPagedCallable() + .futureCall(request); + // Do something. + for (RuleExecutionError element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_RuleExecutionErrorService_ListRuleExecutionErrors_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/AsyncListRuleExecutionErrorsPaged.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/AsyncListRuleExecutionErrorsPaged.java new file mode 100644 index 000000000000..8c4008a7d7cd --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/AsyncListRuleExecutionErrorsPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.samples; + +// [START chronicle_v1_generated_RuleExecutionErrorService_ListRuleExecutionErrors_Paged_async] +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest; +import com.google.cloud.chronicle.v1.ListRuleExecutionErrorsResponse; +import com.google.cloud.chronicle.v1.RuleExecutionError; +import com.google.cloud.chronicle.v1.RuleExecutionErrorServiceClient; +import com.google.common.base.Strings; + +public class AsyncListRuleExecutionErrorsPaged { + + public static void main(String[] args) throws Exception { + asyncListRuleExecutionErrorsPaged(); + } + + public static void asyncListRuleExecutionErrorsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (RuleExecutionErrorServiceClient ruleExecutionErrorServiceClient = + RuleExecutionErrorServiceClient.create()) { + ListRuleExecutionErrorsRequest request = + ListRuleExecutionErrorsRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + while (true) { + ListRuleExecutionErrorsResponse response = + ruleExecutionErrorServiceClient.listRuleExecutionErrorsCallable().call(request); + for (RuleExecutionError element : response.getRuleExecutionErrorsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END chronicle_v1_generated_RuleExecutionErrorService_ListRuleExecutionErrors_Paged_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/SyncListRuleExecutionErrors.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/SyncListRuleExecutionErrors.java new file mode 100644 index 000000000000..16ac356f61e2 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/SyncListRuleExecutionErrors.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.samples; + +// [START chronicle_v1_generated_RuleExecutionErrorService_ListRuleExecutionErrors_sync] +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.ListRuleExecutionErrorsRequest; +import com.google.cloud.chronicle.v1.RuleExecutionError; +import com.google.cloud.chronicle.v1.RuleExecutionErrorServiceClient; + +public class SyncListRuleExecutionErrors { + + public static void main(String[] args) throws Exception { + syncListRuleExecutionErrors(); + } + + public static void syncListRuleExecutionErrors() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (RuleExecutionErrorServiceClient ruleExecutionErrorServiceClient = + RuleExecutionErrorServiceClient.create()) { + ListRuleExecutionErrorsRequest request = + ListRuleExecutionErrorsRequest.newBuilder() + .setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .build(); + for (RuleExecutionError element : + ruleExecutionErrorServiceClient.listRuleExecutionErrors(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_RuleExecutionErrorService_ListRuleExecutionErrors_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/SyncListRuleExecutionErrorsInstancename.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/SyncListRuleExecutionErrorsInstancename.java new file mode 100644 index 000000000000..1db98893c7ee --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/SyncListRuleExecutionErrorsInstancename.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.samples; + +// [START chronicle_v1_generated_RuleExecutionErrorService_ListRuleExecutionErrors_Instancename_sync] +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.RuleExecutionError; +import com.google.cloud.chronicle.v1.RuleExecutionErrorServiceClient; + +public class SyncListRuleExecutionErrorsInstancename { + + public static void main(String[] args) throws Exception { + syncListRuleExecutionErrorsInstancename(); + } + + public static void syncListRuleExecutionErrorsInstancename() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (RuleExecutionErrorServiceClient ruleExecutionErrorServiceClient = + RuleExecutionErrorServiceClient.create()) { + InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + for (RuleExecutionError element : + ruleExecutionErrorServiceClient.listRuleExecutionErrors(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_RuleExecutionErrorService_ListRuleExecutionErrors_Instancename_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/SyncListRuleExecutionErrorsString.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/SyncListRuleExecutionErrorsString.java new file mode 100644 index 000000000000..462827d7c881 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservice/listruleexecutionerrors/SyncListRuleExecutionErrorsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.samples; + +// [START chronicle_v1_generated_RuleExecutionErrorService_ListRuleExecutionErrors_String_sync] +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.RuleExecutionError; +import com.google.cloud.chronicle.v1.RuleExecutionErrorServiceClient; + +public class SyncListRuleExecutionErrorsString { + + public static void main(String[] args) throws Exception { + syncListRuleExecutionErrorsString(); + } + + public static void syncListRuleExecutionErrorsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (RuleExecutionErrorServiceClient ruleExecutionErrorServiceClient = + RuleExecutionErrorServiceClient.create()) { + String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + for (RuleExecutionError element : + ruleExecutionErrorServiceClient.listRuleExecutionErrors(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chronicle_v1_generated_RuleExecutionErrorService_ListRuleExecutionErrors_String_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservicesettings/listruleexecutionerrors/SyncListRuleExecutionErrors.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservicesettings/listruleexecutionerrors/SyncListRuleExecutionErrors.java new file mode 100644 index 000000000000..4258fc2b693e --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleexecutionerrorservicesettings/listruleexecutionerrors/SyncListRuleExecutionErrors.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.samples; + +// [START chronicle_v1_generated_RuleExecutionErrorServiceSettings_ListRuleExecutionErrors_sync] +import com.google.cloud.chronicle.v1.RuleExecutionErrorServiceSettings; +import java.time.Duration; + +public class SyncListRuleExecutionErrors { + + public static void main(String[] args) throws Exception { + syncListRuleExecutionErrors(); + } + + public static void syncListRuleExecutionErrors() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RuleExecutionErrorServiceSettings.Builder ruleExecutionErrorServiceSettingsBuilder = + RuleExecutionErrorServiceSettings.newBuilder(); + ruleExecutionErrorServiceSettingsBuilder + .listRuleExecutionErrorsSettings() + .setRetrySettings( + ruleExecutionErrorServiceSettingsBuilder + .listRuleExecutionErrorsSettings() + .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()); + RuleExecutionErrorServiceSettings ruleExecutionErrorServiceSettings = + ruleExecutionErrorServiceSettingsBuilder.build(); + } +} +// [END chronicle_v1_generated_RuleExecutionErrorServiceSettings_ListRuleExecutionErrors_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleservice/verifyruletext/AsyncVerifyRuleText.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleservice/verifyruletext/AsyncVerifyRuleText.java new file mode 100644 index 000000000000..e9ef2680aca0 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleservice/verifyruletext/AsyncVerifyRuleText.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.samples; + +// [START chronicle_v1_generated_RuleService_VerifyRuleText_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.RuleServiceClient; +import com.google.cloud.chronicle.v1.VerifyRuleTextRequest; +import com.google.cloud.chronicle.v1.VerifyRuleTextResponse; + +public class AsyncVerifyRuleText { + + public static void main(String[] args) throws Exception { + asyncVerifyRuleText(); + } + + public static void asyncVerifyRuleText() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (RuleServiceClient ruleServiceClient = RuleServiceClient.create()) { + VerifyRuleTextRequest request = + VerifyRuleTextRequest.newBuilder() + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setRuleText("ruleText763458121") + .build(); + ApiFuture future = + ruleServiceClient.verifyRuleTextCallable().futureCall(request); + // Do something. + VerifyRuleTextResponse response = future.get(); + } + } +} +// [END chronicle_v1_generated_RuleService_VerifyRuleText_async] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleservice/verifyruletext/SyncVerifyRuleText.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleservice/verifyruletext/SyncVerifyRuleText.java new file mode 100644 index 000000000000..259f03d55234 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleservice/verifyruletext/SyncVerifyRuleText.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.samples; + +// [START chronicle_v1_generated_RuleService_VerifyRuleText_sync] +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.RuleServiceClient; +import com.google.cloud.chronicle.v1.VerifyRuleTextRequest; +import com.google.cloud.chronicle.v1.VerifyRuleTextResponse; + +public class SyncVerifyRuleText { + + public static void main(String[] args) throws Exception { + syncVerifyRuleText(); + } + + public static void syncVerifyRuleText() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (RuleServiceClient ruleServiceClient = RuleServiceClient.create()) { + VerifyRuleTextRequest request = + VerifyRuleTextRequest.newBuilder() + .setInstance(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + .setRuleText("ruleText763458121") + .build(); + VerifyRuleTextResponse response = ruleServiceClient.verifyRuleText(request); + } + } +} +// [END chronicle_v1_generated_RuleService_VerifyRuleText_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleservice/verifyruletext/SyncVerifyRuleTextInstancenameString.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleservice/verifyruletext/SyncVerifyRuleTextInstancenameString.java new file mode 100644 index 000000000000..d2623cc7d5ea --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleservice/verifyruletext/SyncVerifyRuleTextInstancenameString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.samples; + +// [START chronicle_v1_generated_RuleService_VerifyRuleText_InstancenameString_sync] +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.RuleServiceClient; +import com.google.cloud.chronicle.v1.VerifyRuleTextResponse; + +public class SyncVerifyRuleTextInstancenameString { + + public static void main(String[] args) throws Exception { + syncVerifyRuleTextInstancenameString(); + } + + public static void syncVerifyRuleTextInstancenameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (RuleServiceClient ruleServiceClient = RuleServiceClient.create()) { + InstanceName instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + String ruleText = "ruleText763458121"; + VerifyRuleTextResponse response = ruleServiceClient.verifyRuleText(instance, ruleText); + } + } +} +// [END chronicle_v1_generated_RuleService_VerifyRuleText_InstancenameString_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleservice/verifyruletext/SyncVerifyRuleTextStringString.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleservice/verifyruletext/SyncVerifyRuleTextStringString.java new file mode 100644 index 000000000000..d5b05aedec69 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/ruleservice/verifyruletext/SyncVerifyRuleTextStringString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.samples; + +// [START chronicle_v1_generated_RuleService_VerifyRuleText_StringString_sync] +import com.google.cloud.chronicle.v1.InstanceName; +import com.google.cloud.chronicle.v1.RuleServiceClient; +import com.google.cloud.chronicle.v1.VerifyRuleTextResponse; + +public class SyncVerifyRuleTextStringString { + + public static void main(String[] args) throws Exception { + syncVerifyRuleTextStringString(); + } + + public static void syncVerifyRuleTextStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (RuleServiceClient ruleServiceClient = RuleServiceClient.create()) { + String instance = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + String ruleText = "ruleText763458121"; + VerifyRuleTextResponse response = ruleServiceClient.verifyRuleText(instance, ruleText); + } + } +} +// [END chronicle_v1_generated_RuleService_VerifyRuleText_StringString_sync] diff --git a/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/stub/ruleexecutionerrorservicestubsettings/listruleexecutionerrors/SyncListRuleExecutionErrors.java b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/stub/ruleexecutionerrorservicestubsettings/listruleexecutionerrors/SyncListRuleExecutionErrors.java new file mode 100644 index 000000000000..85e195ffaa72 --- /dev/null +++ b/java-chronicle/samples/snippets/generated/com/google/cloud/chronicle/v1/stub/ruleexecutionerrorservicestubsettings/listruleexecutionerrors/SyncListRuleExecutionErrors.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.chronicle.v1.stub.samples; + +// [START chronicle_v1_generated_RuleExecutionErrorServiceStubSettings_ListRuleExecutionErrors_sync] +import com.google.cloud.chronicle.v1.stub.RuleExecutionErrorServiceStubSettings; +import java.time.Duration; + +public class SyncListRuleExecutionErrors { + + public static void main(String[] args) throws Exception { + syncListRuleExecutionErrors(); + } + + public static void syncListRuleExecutionErrors() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + RuleExecutionErrorServiceStubSettings.Builder ruleExecutionErrorServiceSettingsBuilder = + RuleExecutionErrorServiceStubSettings.newBuilder(); + ruleExecutionErrorServiceSettingsBuilder + .listRuleExecutionErrorsSettings() + .setRetrySettings( + ruleExecutionErrorServiceSettingsBuilder + .listRuleExecutionErrorsSettings() + .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()); + RuleExecutionErrorServiceStubSettings ruleExecutionErrorServiceSettings = + ruleExecutionErrorServiceSettingsBuilder.build(); + } +} +// [END chronicle_v1_generated_RuleExecutionErrorServiceStubSettings_ListRuleExecutionErrors_sync] diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGateway.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGateway.java index 2d4aec8070b5..372a462b29be 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGateway.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGateway.java @@ -7904,7 +7904,7 @@ public int getProtocolsValue(int index) { * Optional. A list of Agent registries containing the agents, MCP servers and * tools governed by the Agent Gateway. Note: Currently limited to * project-scoped registries Must be of format - * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` * * * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -7922,7 +7922,7 @@ public com.google.protobuf.ProtocolStringList getRegistriesList() { * Optional. A list of Agent registries containing the agents, MCP servers and * tools governed by the Agent Gateway. Note: Currently limited to * project-scoped registries Must be of format - * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` * * * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -7940,7 +7940,7 @@ public int getRegistriesCount() { * Optional. A list of Agent registries containing the agents, MCP servers and * tools governed by the Agent Gateway. Note: Currently limited to * project-scoped registries Must be of format - * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` * * * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -7959,7 +7959,7 @@ public java.lang.String getRegistries(int index) { * Optional. A list of Agent registries containing the agents, MCP servers and * tools governed by the Agent Gateway. Note: Currently limited to * project-scoped registries Must be of format - * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` * * * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -10635,7 +10635,7 @@ private void ensureRegistriesIsMutable() { * Optional. A list of Agent registries containing the agents, MCP servers and * tools governed by the Agent Gateway. Note: Currently limited to * project-scoped registries Must be of format - * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` * * * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -10654,7 +10654,7 @@ public com.google.protobuf.ProtocolStringList getRegistriesList() { * Optional. A list of Agent registries containing the agents, MCP servers and * tools governed by the Agent Gateway. Note: Currently limited to * project-scoped registries Must be of format - * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` * * * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -10672,7 +10672,7 @@ public int getRegistriesCount() { * Optional. A list of Agent registries containing the agents, MCP servers and * tools governed by the Agent Gateway. Note: Currently limited to * project-scoped registries Must be of format - * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` * * * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -10691,7 +10691,7 @@ public java.lang.String getRegistries(int index) { * Optional. A list of Agent registries containing the agents, MCP servers and * tools governed by the Agent Gateway. Note: Currently limited to * project-scoped registries Must be of format - * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` * * * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -10710,7 +10710,7 @@ public com.google.protobuf.ByteString getRegistriesBytes(int index) { * Optional. A list of Agent registries containing the agents, MCP servers and * tools governed by the Agent Gateway. Note: Currently limited to * project-scoped registries Must be of format - * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` * * * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -10737,7 +10737,7 @@ public Builder setRegistries(int index, java.lang.String value) { * Optional. A list of Agent registries containing the agents, MCP servers and * tools governed by the Agent Gateway. Note: Currently limited to * project-scoped registries Must be of format - * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` * * * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -10763,7 +10763,7 @@ public Builder addRegistries(java.lang.String value) { * Optional. A list of Agent registries containing the agents, MCP servers and * tools governed by the Agent Gateway. Note: Currently limited to * project-scoped registries Must be of format - * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` * * * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -10786,7 +10786,7 @@ public Builder addAllRegistries(java.lang.Iterable values) { * Optional. A list of Agent registries containing the agents, MCP servers and * tools governed by the Agent Gateway. Note: Currently limited to * project-scoped registries Must be of format - * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` * * * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -10808,7 +10808,7 @@ public Builder clearRegistries() { * Optional. A list of Agent registries containing the agents, MCP servers and * tools governed by the Agent Gateway. Note: Currently limited to * project-scoped registries Must be of format - * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` * * * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayOrBuilder.java b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayOrBuilder.java index cad10ef1832a..27ef5e14828b 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayOrBuilder.java +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/java/com/google/cloud/networkservices/v1/AgentGatewayOrBuilder.java @@ -449,7 +449,7 @@ java.lang.String getLabelsOrDefault( * Optional. A list of Agent registries containing the agents, MCP servers and * tools governed by the Agent Gateway. Note: Currently limited to * project-scoped registries Must be of format - * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` * * * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -465,7 +465,7 @@ java.lang.String getLabelsOrDefault( * Optional. A list of Agent registries containing the agents, MCP servers and * tools governed by the Agent Gateway. Note: Currently limited to * project-scoped registries Must be of format - * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` * * * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -481,7 +481,7 @@ java.lang.String getLabelsOrDefault( * Optional. A list of Agent registries containing the agents, MCP servers and * tools governed by the Agent Gateway. Note: Currently limited to * project-scoped registries Must be of format - * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` * * * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; @@ -498,7 +498,7 @@ java.lang.String getLabelsOrDefault( * Optional. A list of Agent registries containing the agents, MCP servers and * tools governed by the Agent Gateway. Note: Currently limited to * project-scoped registries Must be of format - * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + * `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` * * * repeated string registries = 13 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/agent_gateway.proto b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/agent_gateway.proto index 1ecb015e6553..1b0120409ca0 100644 --- a/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/agent_gateway.proto +++ b/java-networkservices/proto-google-cloud-networkservices-v1/src/main/proto/google/cloud/networkservices/v1/agent_gateway.proto @@ -187,7 +187,7 @@ message AgentGateway { // Optional. A list of Agent registries containing the agents, MCP servers and // tools governed by the Agent Gateway. Note: Currently limited to // project-scoped registries Must be of format - // `//agentregistry.googleapis.com/projects/{project}/locations/{location}/ + // `//agentregistry.googleapis.com/projects/{project}/locations/{location}/` repeated string registries = 13 [(google.api.field_behavior) = OPTIONAL]; // Optional. Network configuration for the AgentGateway. diff --git a/librarian.yaml b/librarian.yaml index 6de04e15fcdd..7a285b9b6d25 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -16,8 +16,8 @@ version: v0.21.1-0.20260617000028-820646f3db93 repo: googleapis/google-cloud-java sources: googleapis: - commit: 7af3f2c7b8927cffb548fd2cf09b04c6371437ee - sha256: fb354b89774f4599bb3559d190fe54e51da76c6339c062900355c874b9defac5 + commit: db88feb4756963c6aa9b5996a880cfe5572d0320 + sha256: ba3f018c32dae09803b3c8759ef79c59fc9cc1200d097026ac52a1490bec3b3e showcase: commit: 328bec7ce4c1fb77c37fdf1868d0506bc02a70fc sha256: 8df187486e37edf5a78c1646c859c311bc452871b9ba4641d93149d3c53450a2 @@ -1855,6 +1855,7 @@ libraries: keep: - src/main/java/io/grafeas/v1/stub/Version.java java: + alternate_headers: license-header.txt api_description_override: n/a artifact_id: grafeas client_documentation_override: https://cloud.google.com/java/docs/reference/grafeas/latest/overview @@ -1863,7 +1864,6 @@ libraries: name_pretty_override: Grafeas product_documentation_override: https://grafeas.io skip_pom_updates: true - alternate_headers: license-header.txt - name: gsuite-addons version: 2.94.0-SNAPSHOT apis: From 341e51ad213290e54f004d84da42ae9f1d7844c7 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 18 Jun 2026 13:59:42 -0400 Subject: [PATCH 36/82] feat(bigquery-jdbc): migrate statement execution thread tracking to connection-scoped executor (#13454) b/519201498 This PR migrates the asynchronous processing tasks of the JDBC driver away from the legacy static global thread pool (`queryTaskExecutor`) to the modern, connection-scoped `ExecutorService` (`connection.getExecutorService()`). ### Key Changes 1. **Statement & Stream Refactoring**: - Removed the static `queryTaskExecutor` from `BigQueryStatement`. - Updated `populateArrowBufferedQueue` to submit streaming and buffering tasks to the connection-scoped executor pool. - Converted background thread tracking in `BigQueryStatement` and `BigQueryArrowResultSet` from raw `Thread` references to modern, cancelable `Future` task handles. 2. **Isolated Backward-Compatibility Wrapper**: - Isolated the legacy raw thread wrapping to `BigQueryDatabaseMetaData` (which is still pending future refactoring to the executor pool). - Implemented a temporary `wrapThread(Thread)` helper method inside `BigQueryDatabaseMetaData` to wrap raw background threads into cancelable `Future` adapters on the fly before passing them to the result set. - Hardened the anonymous `Future` wrapper state tracking to strictly satisfy the `Future` specification contract (handling `cancel`, `isCancelled`, and `isDone` correctly using a volatile boolean flag to prevent duplicate cancellation triggers). --- .../bigquery/jdbc/BigQueryArrowResultSet.java | 25 +-- .../bigquery/jdbc/BigQueryConnection.java | 11 +- .../jdbc/BigQueryDatabaseMetaData.java | 23 +-- .../cloud/bigquery/jdbc/BigQueryJdbcMdc.java | 41 ++--- .../bigquery/jdbc/BigQueryJdbcUrlUtility.java | 1 + .../bigquery/jdbc/BigQueryJsonResultSet.java | 29 ++-- .../jdbc/BigQueryResultSetFinalizers.java | 25 ++- .../bigquery/jdbc/BigQueryStatement.java | 144 +++++++++++------- .../cloud/bigquery/jdbc/DataSource.java | 1 + .../jdbc/BigQueryArrowResultSetTest.java | 11 +- .../bigquery/jdbc/BigQueryJdbcMdcTest.java | 67 ++++++-- .../jdbc/BigQueryJsonResultSetTest.java | 15 +- .../jdbc/BigQueryResultSetFinalizersTest.java | 41 ++--- .../jdbc/BigQueryResultSetMetadataTest.java | 7 +- .../bigquery/jdbc/BigQueryStatementTest.java | 6 +- .../jdbc/PerConnectionFileHandlerTest.java | 4 +- 16 files changed, 270 insertions(+), 181 deletions(-) diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryArrowResultSet.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryArrowResultSet.java index 64269c7f74be..e4ba837643f8 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryArrowResultSet.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryArrowResultSet.java @@ -38,6 +38,7 @@ import java.util.ArrayList; import java.util.List; import java.util.concurrent.BlockingQueue; +import java.util.concurrent.Future; import org.apache.arrow.memory.BufferAllocator; import org.apache.arrow.memory.RootAllocator; import org.apache.arrow.vector.FieldVector; @@ -80,8 +81,8 @@ class BigQueryArrowResultSet extends BigQueryBaseResultSet { // Decoder object will be reused to avoid re-allocation and too much garbage collection. private VectorSchemaRoot vectorSchemaRoot; private VectorLoader vectorLoader; - // producer thread's reference - private final Thread ownedThread; + // producer task's reference + private final Future ownedTask; private BigQueryArrowResultSet( Schema schema, @@ -93,7 +94,7 @@ private BigQueryArrowResultSet( boolean isNested, int fromIndex, int toIndexExclusive, - Thread ownedThread, + Future ownedTask, BigQuery bigQuery, Job job) throws SQLException { @@ -105,7 +106,7 @@ private BigQueryArrowResultSet( this.fromIndex = fromIndex; this.toIndexExclusive = toIndexExclusive; this.nestedRowIndex = fromIndex - 1; - this.ownedThread = ownedThread; + this.ownedTask = ownedTask; if (!isNested && arrowSchema != null) { try { this.arrowDeserializer = new ArrowDeserializer(arrowSchema); @@ -127,10 +128,10 @@ static BigQueryArrowResultSet of( long totalRows, BigQueryStatement statement, BlockingQueue buffer, - Thread ownedThread, + Future ownedTask, BigQuery bigQuery) throws SQLException { - return of(schema, arrowSchema, totalRows, statement, buffer, ownedThread, bigQuery, null); + return of(schema, arrowSchema, totalRows, statement, buffer, ownedTask, bigQuery, null); } static BigQueryArrowResultSet of( @@ -139,7 +140,7 @@ static BigQueryArrowResultSet of( long totalRows, BigQueryStatement statement, BlockingQueue buffer, - Thread ownedThread, + Future ownedTask, BigQuery bigQuery, Job job) throws SQLException { @@ -153,7 +154,7 @@ static BigQueryArrowResultSet of( false, -1, -1, - ownedThread, + ownedTask, bigQuery, job); } @@ -165,7 +166,7 @@ static BigQueryArrowResultSet of( this.currentNestedBatch = null; this.fromIndex = 0; this.toIndexExclusive = 0; - this.ownedThread = null; + this.ownedTask = null; this.arrowDeserializer = null; this.vectorSchemaRoot = null; this.vectorLoader = null; @@ -484,9 +485,9 @@ private String formatRangeElement(Object element, StandardSQLTypeName elementTyp public void close() { LOG.fineTrace("close", () -> String.format("Closing BigqueryArrowResultSet %s.", this)); this.isClosed = true; - if (ownedThread != null && !ownedThread.isInterrupted()) { - // interrupt the producer thread when result set is closed - ownedThread.interrupt(); + if (ownedTask != null) { + // cancel the producer task when result set is closed + ownedTask.cancel(true); } super.close(); } diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java index 586a5c329405..1146f4d46d95 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java @@ -347,8 +347,15 @@ public class BigQueryConnection extends BigQueryNoOpsConnection { this.headerProvider = createHeaderProvider(); this.bigQuery = getBigQueryConnection(); - this.metadataExecutor = BigQueryJdbcMdc.newFixedThreadPool(metadataFetchThreadCount); - this.queryExecutor = BigQueryJdbcMdc.newCachedThreadPool(); + // Fixed thread pool queues tasks to limit concurrent metadata calls and prevent API + // throttling. + this.metadataExecutor = + BigQueryJdbcMdc.newFixedThreadPool( + String.format("BQ-Metadata-%s", connectionId), metadataFetchThreadCount); + // Cached pool executes queries immediately without queueing and reclaims all idle threads + // when inactive, minimizing resources. + this.queryExecutor = + BigQueryJdbcMdc.newCachedThreadPool(String.format("BQ-Query-%s", connectionId)); } } diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java index 8ed1fd8df325..73da585db087 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java @@ -945,7 +945,7 @@ public ResultSet getProcedures( Thread fetcherThread = new Thread(procedureFetcher, "getProcedures-fetcher-" + catalog); BigQueryJsonResultSet resultSet = - BigQueryJsonResultSet.of(resultSchema, -1, queue, null, new Thread[] {fetcherThread}); + BigQueryJsonResultSet.of(resultSchema, -1, queue, null, wrapThread(fetcherThread)); fetcherThread.start(); LOG.info("Started background thread for getProcedures"); @@ -1207,7 +1207,7 @@ public ResultSet getProcedureColumns( Thread fetcherThread = new Thread(procedureColumnFetcher, "getProcedureColumns-fetcher-" + catalog); BigQueryJsonResultSet resultSet = - BigQueryJsonResultSet.of(resultSchema, -1, queue, null, new Thread[] {fetcherThread}); + BigQueryJsonResultSet.of(resultSchema, -1, queue, null, wrapThread(fetcherThread)); fetcherThread.start(); LOG.info("Started background thread for getProcedureColumns for catalog: " + catalog); @@ -1878,7 +1878,7 @@ public ResultSet getTables( Thread fetcherThread = new Thread(tableFetcher, "getTables-fetcher-" + effectiveCatalog); BigQueryJsonResultSet resultSet = - BigQueryJsonResultSet.of(resultSchema, -1, queue, null, new Thread[] {fetcherThread}); + BigQueryJsonResultSet.of(resultSchema, -1, queue, null, wrapThread(fetcherThread)); fetcherThread.start(); LOG.info("Started background thread for getTables"); @@ -2018,7 +2018,8 @@ public ResultSet getCatalogs() { populateQueue(catalogRows, queue, schemaFields); signalEndOfData(queue, schemaFields); - return BigQueryJsonResultSet.of(catalogsSchema, catalogRows.size(), queue, null, new Thread[0]); + return BigQueryJsonResultSet.of( + catalogsSchema, catalogRows.size(), queue, null, new Future[0]); } Schema defineGetCatalogsSchema() { @@ -2050,7 +2051,7 @@ public ResultSet getTableTypes() { signalEndOfData(queue, tableTypesSchema.getFields()); return BigQueryJsonResultSet.of( - tableTypesSchema, tableTypeRows.size(), queue, null, new Thread[0]); + tableTypesSchema, tableTypeRows.size(), queue, null, new Future[0]); } static Schema defineGetTableTypesSchema() { @@ -2204,7 +2205,7 @@ public ResultSet getColumns( Thread fetcherThread = new Thread(columnFetcher, "getColumns-fetcher-" + effectiveCatalog); BigQueryJsonResultSet resultSet = - BigQueryJsonResultSet.of(resultSchema, -1, queue, null, new Thread[] {fetcherThread}); + BigQueryJsonResultSet.of(resultSchema, -1, queue, null, wrapThread(fetcherThread)); fetcherThread.start(); LOG.info("Started background thread for getColumns"); @@ -2719,7 +2720,7 @@ public ResultSet getTypeInfo() { populateQueue(typeInfoRows, queue, schemaFields); signalEndOfData(queue, schemaFields); return BigQueryJsonResultSet.of( - typeInfoSchema, typeInfoRows.size(), queue, null, new Thread[0]); + typeInfoSchema, typeInfoRows.size(), queue, null, new Future[0]); } Schema defineGetTypeInfoSchema() { @@ -3714,7 +3715,7 @@ public ResultSet getSchemas(String catalog, String schemaPattern) { Thread fetcherThread = new Thread(schemaFetcher, "getSchemas-fetcher-" + catalog); BigQueryJsonResultSet resultSet = - BigQueryJsonResultSet.of(resultSchema, -1, queue, null, new Thread[] {fetcherThread}); + BigQueryJsonResultSet.of(resultSchema, -1, queue, null, wrapThread(fetcherThread)); fetcherThread.start(); LOG.info("Started background thread for getSchemas"); @@ -3833,7 +3834,7 @@ public ResultSet getClientInfoProperties() { signalEndOfData(queue, resultSchemaFields); } return BigQueryJsonResultSet.of( - resultSchema, collectedResults.size(), queue, null, new Thread[0]); + resultSchema, collectedResults.size(), queue, null, new Future[0]); } Schema defineGetClientInfoPropertiesSchema() { @@ -4008,7 +4009,7 @@ public ResultSet getFunctions(String catalog, String schemaPattern, String funct Thread fetcherThread = new Thread(functionFetcher, "getFunctions-fetcher-" + catalog); BigQueryJsonResultSet resultSet = - BigQueryJsonResultSet.of(resultSchema, -1, queue, null, new Thread[] {fetcherThread}); + BigQueryJsonResultSet.of(resultSchema, -1, queue, null, wrapThread(fetcherThread)); fetcherThread.start(); LOG.info("Started background thread for getFunctions"); @@ -4262,7 +4263,7 @@ public ResultSet getFunctionColumns( Thread fetcherThread = new Thread(functionColumnFetcher, "getFunctionColumns-fetcher-" + catalog); BigQueryJsonResultSet resultSet = - BigQueryJsonResultSet.of(resultSchema, -1, queue, null, new Thread[] {fetcherThread}); + BigQueryJsonResultSet.of(resultSchema, -1, queue, null, wrapThread(fetcherThread)); fetcherThread.start(); LOG.info("Started background thread for getFunctionColumns for catalog: " + catalog); diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcMdc.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcMdc.java index 5f2416753c4d..254cdc5cc2fa 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcMdc.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcMdc.java @@ -59,54 +59,53 @@ static void clear() { * Creates a new fixed thread pool ExecutorService that automatically propagates MDC connection * context from the submitting thread to the executing thread. */ - static ExecutorService newFixedThreadPool(int nThreads, ThreadFactory threadFactory) { + static ExecutorService newFixedThreadPool( + String threadName, int nThreads, ThreadFactory threadFactory) { MdcThreadPoolExecutor executor = new MdcThreadPoolExecutor( + threadName, nThreads, nThreads, 60L, TimeUnit.SECONDS, new LinkedBlockingQueue<>(), - new MdcThreadFactory(threadFactory)); + new MdcThreadFactory(threadFactory, threadName)); executor.allowCoreThreadTimeOut(true); return executor; } - /** - * Creates a new fixed thread pool ExecutorService that automatically propagates MDC connection - * context from the submitting thread to the executing thread. - */ - static ExecutorService newFixedThreadPool(int nThreads) { - return newFixedThreadPool(nThreads, Executors.defaultThreadFactory()); + static ExecutorService newFixedThreadPool(String threadName, int nThreads) { + return newFixedThreadPool(threadName, nThreads, Executors.defaultThreadFactory()); } /** * Creates a new cached thread pool ExecutorService that automatically propagates MDC connection * context from the submitting thread to the executing thread. */ - static ExecutorService newCachedThreadPool(ThreadFactory threadFactory) { + static ExecutorService newCachedThreadPool(String threadName, ThreadFactory threadFactory) { return new MdcThreadPoolExecutor( + threadName, 0, Integer.MAX_VALUE, 60L, TimeUnit.SECONDS, new java.util.concurrent.SynchronousQueue<>(), - new MdcThreadFactory(threadFactory)); + new MdcThreadFactory(threadFactory, threadName)); } - /** - * Creates a new cached thread pool ExecutorService that automatically propagates MDC connection - * context from the submitting thread to the executing thread. - */ - static ExecutorService newCachedThreadPool() { - return newCachedThreadPool(Executors.defaultThreadFactory()); + static ExecutorService newCachedThreadPool(String threadName) { + return newCachedThreadPool(threadName, Executors.defaultThreadFactory()); } private static class MdcThreadFactory implements ThreadFactory { private final ThreadFactory delegate; + private final String threadName; + private final java.util.concurrent.atomic.AtomicInteger count = + new java.util.concurrent.atomic.AtomicInteger(1); - public MdcThreadFactory(ThreadFactory delegate) { + public MdcThreadFactory(ThreadFactory delegate, String threadName) { this.delegate = delegate; + this.threadName = threadName; } @Override @@ -119,14 +118,17 @@ public Thread newThread(Runnable r) { }); if (t != null) { t.setDaemon(true); + t.setName(threadName + "-" + count.getAndIncrement()); } return t; } } private static class MdcThreadPoolExecutor extends ThreadPoolExecutor { + private final String poolName; public MdcThreadPoolExecutor( + String poolName, int corePoolSize, int maximumPoolSize, long keepAliveTime, @@ -134,6 +136,7 @@ public MdcThreadPoolExecutor( BlockingQueue workQueue, ThreadFactory threadFactory) { super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, threadFactory); + this.poolName = poolName; } private final AtomicBoolean warningLogged = new AtomicBoolean(false); @@ -149,8 +152,8 @@ private void monitorQueueSaturation(int queueSize) { if (queueSize >= warnThreshold) { if (warningLogged.compareAndSet(false, true)) { LOG.warning( - "Thread pool is saturating. Max pool size: %d, Active threads: %d, Queued tasks: %d. Consider increasing the thread count property.", - maxPoolSize, getActiveCount(), queueSize); + "[%s] Thread pool is saturating. Max pool size: %d, Active threads: %d, Queued tasks: %d. Consider increasing the metadataFetchThreadCount property.", + poolName, maxPoolSize, getActiveCount(), queueSize); } } else if (queueSize <= recoveryThreshold) { if (warningLogged.get()) { diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcUrlUtility.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcUrlUtility.java index 0a19bed7a2c8..dd46dae44188 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcUrlUtility.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcUrlUtility.java @@ -142,6 +142,7 @@ protected boolean removeEldestEntry(Map.Entry> eldes Pattern.CASE_INSENSITIVE); static final String METADATA_FETCH_THREAD_COUNT_PROPERTY_NAME = "MetaDataFetchThreadCount"; static final int DEFAULT_METADATA_FETCH_THREAD_COUNT_VALUE = 32; + static final String RETRY_TIMEOUT_IN_SECS_PROPERTY_NAME = "Timeout"; static final long DEFAULT_RETRY_TIMEOUT_IN_SECS_VALUE = 0L; static final String JOB_TIMEOUT_PROPERTY_NAME = "JobTimeout"; diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJsonResultSet.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJsonResultSet.java index eeb4baf2d03e..4bebadca258c 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJsonResultSet.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJsonResultSet.java @@ -29,6 +29,7 @@ import java.sql.ResultSet; import java.sql.SQLException; import java.util.concurrent.BlockingQueue; +import java.util.concurrent.Future; /** {@link ResultSet} Implementation for JSON datasource (Using REST APIs) */ class BigQueryJsonResultSet extends BigQueryBaseResultSet { @@ -43,7 +44,7 @@ class BigQueryJsonResultSet extends BigQueryBaseResultSet { private boolean afterLast = false; private final int fromIndex; private final int toIndexExclusive; - private final Thread[] ownedThreads; + private final Future[] ownedTasks; private BigQueryJsonResultSet( Schema schema, @@ -54,7 +55,7 @@ private BigQueryJsonResultSet( BigQueryFieldValueListWrapper cursor, int fromIndex, int toIndexExclusive, - Thread[] ownedThreads, + Future[] ownedTasks, BigQuery bigQuery, Job job) { super(bigQuery, statement, schema, isNested, job); @@ -64,7 +65,7 @@ private BigQueryJsonResultSet( this.fromIndex = fromIndex; this.toIndexExclusive = toIndexExclusive; this.nestedRowIndex = fromIndex - 1; - this.ownedThreads = ownedThreads; + this.ownedTasks = ownedTasks; } /** @@ -78,10 +79,10 @@ static BigQueryJsonResultSet of( long totalRows, BlockingQueue buffer, BigQueryStatement statement, - Thread[] ownedThreads, + Future[] ownedTasks, BigQuery bigQuery) { - return of(schema, totalRows, buffer, statement, ownedThreads, bigQuery, null); + return of(schema, totalRows, buffer, statement, ownedTasks, bigQuery, null); } static BigQueryJsonResultSet of( @@ -89,12 +90,12 @@ static BigQueryJsonResultSet of( long totalRows, BlockingQueue buffer, BigQueryStatement statement, - Thread[] ownedThreads, + Future[] ownedTasks, BigQuery bigQuery, Job job) { return new BigQueryJsonResultSet( - schema, totalRows, buffer, statement, false, null, -1, -1, ownedThreads, bigQuery, job); + schema, totalRows, buffer, statement, false, null, -1, -1, ownedTasks, bigQuery, job); } static BigQueryJsonResultSet of( @@ -102,10 +103,10 @@ static BigQueryJsonResultSet of( long totalRows, BlockingQueue buffer, BigQueryStatement statement, - Thread[] ownedThreads) { + Future[] ownedTasks) { return new BigQueryJsonResultSet( - schema, totalRows, buffer, statement, false, null, -1, -1, ownedThreads, null, null); + schema, totalRows, buffer, statement, false, null, -1, -1, ownedTasks, null, null); } BigQueryJsonResultSet() { @@ -113,7 +114,7 @@ static BigQueryJsonResultSet of( totalRows = 0; buffer = null; fromIndex = 0; - ownedThreads = new Thread[0]; + ownedTasks = new Future[0]; toIndexExclusive = 0; } @@ -291,11 +292,9 @@ private FieldValue getObjectInternal(int columnIndex) throws SQLException { public void close() { LOG.fineTrace("close", () -> String.format("Closing BigqueryJsonResultSet %s.", this)); this.isClosed = true; - if (ownedThreads != null) { - for (Thread ownedThread : ownedThreads) { - if (!ownedThread.isInterrupted()) { - ownedThread.interrupt(); - } + if (ownedTasks != null) { + for (Future ownedTask : ownedTasks) { + ownedTask.cancel(true); } } super.close(); diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryResultSetFinalizers.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryResultSetFinalizers.java index 85a00214376f..57f764979f53 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryResultSetFinalizers.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryResultSetFinalizers.java @@ -19,6 +19,7 @@ import com.google.api.core.InternalApi; import java.lang.ref.PhantomReference; import java.lang.ref.ReferenceQueue; +import java.util.concurrent.Future; @InternalApi class BigQueryResultSetFinalizers { @@ -27,45 +28,43 @@ class BigQueryResultSetFinalizers { @InternalApi static class ArrowResultSetFinalizer extends PhantomReference { - Thread ownedThread; + Future ownedTask; public ArrowResultSetFinalizer( BigQueryArrowResultSet referent, ReferenceQueue q, - Thread ownedThread) { + Future ownedTask) { super(referent, q); - this.ownedThread = ownedThread; + this.ownedTask = ownedTask; } // Free resources. Remove all the hard refs public void finalizeResources() { LOG.finestTrace("finalizeResources"); - if (ownedThread != null && !ownedThread.isInterrupted()) { - ownedThread.interrupt(); + if (ownedTask != null) { + ownedTask.cancel(true); } } } @InternalApi static class JsonResultSetFinalizer extends PhantomReference { - Thread[] ownedThreads; + Future[] ownedTasks; public JsonResultSetFinalizer( BigQueryJsonResultSet referent, ReferenceQueue q, - Thread[] ownedThreads) { + Future[] ownedTasks) { super(referent, q); - this.ownedThreads = ownedThreads; + this.ownedTasks = ownedTasks; } // Free resources. Remove all the hard refs public void finalizeResources() { LOG.finestTrace("finalizeResources"); - if (ownedThreads != null) { - for (Thread ownedThread : ownedThreads) { - if (!ownedThread.isInterrupted()) { - ownedThread.interrupt(); - } + if (ownedTasks != null) { + for (Future ownedTask : ownedTasks) { + ownedTask.cancel(true); } } } diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java index 09cc6cda6940..cc05489c89d2 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java @@ -76,8 +76,9 @@ import java.util.UUID; import java.util.concurrent.BlockingQueue; import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; +import java.util.concurrent.Future; import java.util.concurrent.LinkedBlockingDeque; +import java.util.concurrent.RejectedExecutionException; import java.util.concurrent.ThreadFactory; import java.util.logging.Level; @@ -90,10 +91,6 @@ */ public class BigQueryStatement extends BigQueryNoOpsStatement { - // TODO (obada): Update this after benchmarking - private static final int MAX_PROCESS_QUERY_THREADS_CNT = 50; - protected static ExecutorService queryTaskExecutor = - Executors.newFixedThreadPool(MAX_PROCESS_QUERY_THREADS_CNT); private final BigQueryJdbcCustomLogger LOG = new BigQueryJdbcCustomLogger(this.toString()); public static final int DEFAULT_BUFFER_SIZE = BigQuerySettings.DEFAULT_NUM_BUFFERED_ROWS * 2; private static final String DEFAULT_DATASET_NAME = "_google_jdbc"; @@ -813,6 +810,7 @@ ResultSet processArrowResultSet(TableResult results, Job job) throws SQLExceptio JobId currentJobId = results.getJobId(); TableId destinationTable = getDestinationTable(currentJobId); Schema schema = results.getSchema(); + Future populateBufferWorker = null; try { String parent = String.format("projects/%s", destinationTable.getProject()); String srcTable = @@ -836,9 +834,9 @@ ResultSet processArrowResultSet(TableResult results, Job job) throws SQLExceptio ReadSession readSession = getReadSession(builder.build()); this.arrowBatchWrapperBlockingQueue = new LinkedBlockingDeque<>(getBufferSize()); // deserialize and populate the buffer async, so that the client isn't blocked - Thread populateBufferWorker = + populateBufferWorker = populateArrowBufferedQueue( - readSession, this.arrowBatchWrapperBlockingQueue, this.bigQueryReadClient); + readSession, this.arrowBatchWrapperBlockingQueue, getBigQueryReadClient()); BigQueryArrowResultSet arrowResultSet = BigQueryArrowResultSet.of( @@ -857,19 +855,39 @@ ResultSet processArrowResultSet(TableResult results, Job job) throws SQLExceptio arrowResultSet.setQueryId(results.getQueryId()); return arrowResultSet; - } catch (Exception ex) { + } catch (Exception | OutOfMemoryError ex) { + if (populateBufferWorker != null) { + populateBufferWorker.cancel(true); + } + if (ex instanceof OutOfMemoryError || ex instanceof RejectedExecutionException) { + throw new BigQueryJdbcException( + "Failed to execute query: Unable to allocate background threads to process the query results. Connection-scoped thread pool limit of 100 threads was reached or system is out of memory.", + ex); + } + if (ex instanceof RuntimeException) { + throw (ex instanceof BigQueryJdbcRuntimeException) + ? (BigQueryJdbcRuntimeException) ex + : new BigQueryJdbcRuntimeException(ex); + } + if (ex instanceof SQLException) { + throw (ex instanceof BigQueryJdbcException) + ? (BigQueryJdbcException) ex + : new BigQueryJdbcException(ex); + } throw new BigQueryJdbcException(ex.getMessage(), ex); } } /** Asynchronously reads results and populates an arrow record queue */ @InternalApi - Thread populateArrowBufferedQueue( + Future populateArrowBufferedQueue( ReadSession readSession, BlockingQueue arrowBatchWrapperBlockingQueue, BigQueryReadClient bqReadClient) { LOG.finer("++enter++"); + ExecutorService executor = connection.getExecutorService(); + Runnable arrowStreamProcessor = () -> { long rowsRead = 0; @@ -890,7 +908,7 @@ Thread populateArrowBufferedQueue( com.google.api.gax.rpc.ServerStream stream = bqReadClient.readRowsCallable().call(readRowsRequest); for (ReadRowsResponse response : stream) { - if (Thread.currentThread().isInterrupted() || queryTaskExecutor.isShutdown()) { + if (Thread.currentThread().isInterrupted() || executor.isShutdown()) { break; } @@ -952,9 +970,7 @@ Thread populateArrowBufferedQueue( } }; - Thread populateBufferWorker = JDBC_THREAD_FACTORY.newThread(arrowStreamProcessor); - populateBufferWorker.start(); - return populateBufferWorker; + return executor.submit(arrowStreamProcessor); } /** Executes SQL query using either fast query path or read API */ @@ -1040,8 +1056,8 @@ private boolean meetsReadRatio(TableResult results) { return totalRows / pageSize > querySettings.getHighThroughputActivationRatio(); } - BigQueryJsonResultSet processJsonResultSet(TableResult results, Job job) { - List threadList = new ArrayList(); + BigQueryJsonResultSet processJsonResultSet(TableResult results, Job job) throws SQLException { + List> taskList = new ArrayList<>(); Schema schema = results.getSchema(); long totalRows = (getMaxRows() > 0) ? getMaxRows() : results.getTotalRows(); @@ -1050,34 +1066,60 @@ BigQueryJsonResultSet processJsonResultSet(TableResult results, Job job) { new LinkedBlockingDeque<>(getPageCacheSize(getBufferSize(), schema)); JobId jobId = results.getJobId(); - if (jobId != null) { - // Thread to make rpc calls to fetch data from the server - Thread nextPageWorker = - runNextPageTaskAsync( - results, - results.getNextPageToken(), - jobId, - rpcResponseQueue, - this.bigQueryFieldValueListWrapperBlockingQueue); - threadList.add(nextPageWorker); - } else { - try { - populateFirstPage(results, rpcResponseQueue); - rpcResponseQueue.put(Tuple.of(null, false)); - } catch (InterruptedException e) { - LOG.warning( - "%s Interrupted @ processJsonQueryResponseResults: %s", - Thread.currentThread().getName(), e.getMessage()); + try { + if (jobId != null) { + // Task to make rpc calls to fetch data from the server + Future nextPageWorker = + runNextPageTaskAsync( + results, + results.getNextPageToken(), + jobId, + rpcResponseQueue, + this.bigQueryFieldValueListWrapperBlockingQueue); + taskList.add(nextPageWorker); + } else { + try { + populateFirstPage(results, rpcResponseQueue); + rpcResponseQueue.put(Tuple.of(null, false)); + } catch (InterruptedException e) { + LOG.warning( + "%s Interrupted @ processJsonQueryResponseResults: %s", + Thread.currentThread().getName(), e.getMessage()); + Thread.currentThread().interrupt(); + throw new BigQueryJdbcException("Query execution was interrupted.", e); + } } - } - // Thread to parse data received from the server to client library objects - Thread populateBufferWorker = - parseAndPopulateRpcDataAsync( - schema, this.bigQueryFieldValueListWrapperBlockingQueue, rpcResponseQueue); - threadList.add(populateBufferWorker); + // Task to parse data received from the server to client library objects + Future populateBufferWorker = + parseAndPopulateRpcDataAsync( + schema, this.bigQueryFieldValueListWrapperBlockingQueue, rpcResponseQueue); + taskList.add(populateBufferWorker); + } catch (Exception | OutOfMemoryError e) { + for (Future task : taskList) { + if (task != null) { + task.cancel(true); + } + } + if (e instanceof RejectedExecutionException || e instanceof OutOfMemoryError) { + throw new BigQueryJdbcException( + "Failed to execute query: Unable to allocate background threads to process the query results. Connection-scoped thread pool limit of 100 threads was reached or system is out of memory.", + e); + } + if (e instanceof RuntimeException) { + throw (e instanceof BigQueryJdbcRuntimeException) + ? (BigQueryJdbcRuntimeException) e + : new BigQueryJdbcRuntimeException(e); + } + if (e instanceof SQLException) { + throw (e instanceof BigQueryJdbcException) + ? (BigQueryJdbcException) e + : new BigQueryJdbcException(e); + } + throw new BigQueryJdbcException(e.getMessage(), e); + } - Thread[] jsonWorkers = threadList.toArray(new Thread[0]); + Future[] jsonWorkers = taskList.toArray(new Future[0]); BigQueryJsonResultSet jsonResultSet = BigQueryJsonResultSet.of( @@ -1120,7 +1162,7 @@ public void setFetchDirection(int direction) throws SQLException { } @VisibleForTesting - Thread runNextPageTaskAsync( + Future runNextPageTaskAsync( TableResult result, String firstPageToken, JobId jobId, @@ -1131,6 +1173,8 @@ Thread runNextPageTaskAsync( // calls populateFirstPage(result, rpcResponseQueue); + ExecutorService executor = connection.getExecutorService(); + // This thread makes the RPC calls and paginates Runnable nextPageTask = () -> { @@ -1144,7 +1188,7 @@ Thread runNextPageTaskAsync( try { while (currentPageToken != null) { // do not process further pages and shutdown - if (Thread.currentThread().isInterrupted() || queryTaskExecutor.isShutdown()) { + if (Thread.currentThread().isInterrupted() || executor.isShutdown()) { LOG.warning( "%s Interrupted @ runNextPageTaskAsync", Thread.currentThread().getName()); break; @@ -1179,9 +1223,7 @@ Thread runNextPageTaskAsync( // have finished processing the records and even that will be interrupted }; - Thread nextPageWorker = JDBC_THREAD_FACTORY.newThread(nextPageTask); - nextPageWorker.start(); - return nextPageWorker; + return executor.submit(nextPageTask); } /** @@ -1189,12 +1231,14 @@ Thread runNextPageTaskAsync( * bigQueryFieldValueListWrapperBlockingQueue with FieldValueList */ @VisibleForTesting - Thread parseAndPopulateRpcDataAsync( + Future parseAndPopulateRpcDataAsync( Schema schema, BlockingQueue bigQueryFieldValueListWrapperBlockingQueue, BlockingQueue> rpcResponseQueue) { LOG.finer("++enter++"); + ExecutorService executor = connection.getExecutorService(); + Runnable populateBufferRunnable = () -> { // producer thread populating the buffer try { @@ -1219,7 +1263,7 @@ Thread parseAndPopulateRpcDataAsync( } if (Thread.currentThread().isInterrupted() - || queryTaskExecutor.isShutdown() + || executor.isShutdown() || fieldValueLists == null) { // do not process further pages and shutdown (outerloop) break; @@ -1229,7 +1273,7 @@ Thread parseAndPopulateRpcDataAsync( long results = 0; for (FieldValueList fieldValueList : fieldValueLists) { - if (Thread.currentThread().isInterrupted() || queryTaskExecutor.isShutdown()) { + if (Thread.currentThread().isInterrupted() || executor.isShutdown()) { // do not process further pages and shutdown (inner loop) break; } @@ -1264,9 +1308,7 @@ Thread parseAndPopulateRpcDataAsync( } }; - Thread populateBufferWorker = JDBC_THREAD_FACTORY.newThread(populateBufferRunnable); - populateBufferWorker.start(); - return populateBufferWorker; + return executor.submit(populateBufferRunnable); } /** diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/DataSource.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/DataSource.java index d7de950a935f..9e82fee605b5 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/DataSource.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/DataSource.java @@ -565,6 +565,7 @@ Properties createProperties() { BigQueryJdbcUrlUtility.METADATA_FETCH_THREAD_COUNT_PROPERTY_NAME, String.valueOf(this.metadataFetchThreadCount)); } + if (this.sslTrustStorePath != null) { connectionProperties.setProperty( BigQueryJdbcUrlUtility.SSL_TRUST_STORE_PROPERTY_NAME, diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryArrowResultSetTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryArrowResultSetTest.java index 93eb573f3c35..1ffd05ff4cd6 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryArrowResultSetTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryArrowResultSetTest.java @@ -49,6 +49,7 @@ import java.util.List; import java.util.TimeZone; import java.util.concurrent.BlockingQueue; +import java.util.concurrent.Future; import java.util.concurrent.LinkedBlockingDeque; import java.util.stream.Stream; import org.apache.arrow.memory.RootAllocator; @@ -237,10 +238,10 @@ public void setUp() throws SQLException, IOException { ArrowSchema.newBuilder() .setSerializedSchema(serializeSchema(vectorSchemaRoot.getSchema())) .build(); - Thread workerThread = new Thread(); + Future workerTask = mock(Future.class); bigQueryArrowResultSet = BigQueryArrowResultSet.of( - QUERY_SCHEMA, arrowSchema, 1, statement, buffer, workerThread, null); + QUERY_SCHEMA, arrowSchema, 1, statement, buffer, workerTask, null); // nested result set data setup JsonStringArrayList jsonStringArrayList = getJsonStringArrayList(); @@ -275,17 +276,17 @@ public void testRowCount() throws SQLException, IOException { ArrowSchema.newBuilder() .setSerializedSchema(serializeSchema(vectorSchemaRoot.getSchema())) .build(); - Thread workerThread = new Thread(); + Future workerTask = mock(Future.class); // ResultSet with 1 row buffer and 1 total rows. BigQueryArrowResultSet bigQueryArrowResultSet2 = BigQueryArrowResultSet.of( - QUERY_SCHEMA, arrowSchema, 1, statement, buffer, workerThread, null); + QUERY_SCHEMA, arrowSchema, 1, statement, buffer, workerTask, null); assertThat(resultSetRowCount(bigQueryArrowResultSet2)).isEqualTo(1); // ResultSet with 2 rows buffer and 1 total rows. bigQueryArrowResultSet2 = BigQueryArrowResultSet.of( - QUERY_SCHEMA, arrowSchema, 1, statement, bufferWithTwoRows, workerThread, null); + QUERY_SCHEMA, arrowSchema, 1, statement, bufferWithTwoRows, workerTask, null); assertThat(resultSetRowCount(bigQueryArrowResultSet2)).isEqualTo(1); } diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcMdcTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcMdcTest.java index 387e769bae0a..1194f4e580b4 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcMdcTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcMdcTest.java @@ -141,7 +141,7 @@ public void testMdcCloseableClearsContext() { @Test public void testExecutorPropagatesMdc() throws Exception { BigQueryJdbcMdc.registerInstance("JdbcConnection-Executor-Test"); - ExecutorService executor = BigQueryJdbcMdc.newFixedThreadPool(2); + ExecutorService executor = BigQueryJdbcMdc.newFixedThreadPool("Metadata Fetch Pool", 2); try { // Test Runnable submission @@ -196,7 +196,7 @@ public void testExecutorPropagatesMdc() throws Exception { @Test public void testExecutorThrowsNpeOnNullCommand() { - ExecutorService executor = BigQueryJdbcMdc.newFixedThreadPool(2); + ExecutorService executor = BigQueryJdbcMdc.newFixedThreadPool("Metadata Fetch Pool", 2); try { assertThrows(NullPointerException.class, () -> executor.execute(null)); } finally { @@ -207,7 +207,7 @@ public void testExecutorThrowsNpeOnNullCommand() { @Test public void testExecutorWrapsCustomRunnableFuture() throws Exception { BigQueryJdbcMdc.registerInstance("JdbcConnection-CustomFuture-Test"); - ExecutorService executor = BigQueryJdbcMdc.newFixedThreadPool(2); + ExecutorService executor = BigQueryJdbcMdc.newFixedThreadPool("Metadata Fetch Pool", 2); try { CountDownLatch latch = new CountDownLatch(1); AtomicReference mdcVal = new AtomicReference<>(); @@ -230,7 +230,7 @@ public void testExecutorWrapsCustomRunnableFuture() throws Exception { @Test public void testPoolThreadInheritanceSevered() throws Exception { BigQueryJdbcMdc.registerInstance("JdbcConnection-ParentContext"); - ExecutorService executor = BigQueryJdbcMdc.newFixedThreadPool(1); + ExecutorService executor = BigQueryJdbcMdc.newFixedThreadPool("Metadata Fetch Pool", 1); try { CountDownLatch initLatch = new CountDownLatch(1); executor.execute(initLatch::countDown); @@ -255,11 +255,11 @@ public void testPoolThreadInheritanceSevered() throws Exception { @Test public void testNewFixedThreadPoolTimeout() { - ExecutorService exec2 = BigQueryJdbcMdc.newFixedThreadPool(2); - ExecutorService exec3 = BigQueryJdbcMdc.newFixedThreadPool(3); - ExecutorService exec4 = BigQueryJdbcMdc.newFixedThreadPool(4); - ExecutorService exec5 = BigQueryJdbcMdc.newFixedThreadPool(5); - ExecutorService exec10 = BigQueryJdbcMdc.newFixedThreadPool(10); + ExecutorService exec2 = BigQueryJdbcMdc.newFixedThreadPool("Metadata Fetch Pool", 2); + ExecutorService exec3 = BigQueryJdbcMdc.newFixedThreadPool("Metadata Fetch Pool", 3); + ExecutorService exec4 = BigQueryJdbcMdc.newFixedThreadPool("Metadata Fetch Pool", 4); + ExecutorService exec5 = BigQueryJdbcMdc.newFixedThreadPool("Metadata Fetch Pool", 5); + ExecutorService exec10 = BigQueryJdbcMdc.newFixedThreadPool("Metadata Fetch Pool", 10); try { assertEquals(2, ((ThreadPoolExecutor) exec2).getCorePoolSize()); @@ -358,7 +358,7 @@ public void testConnectionScopedExecutorLifecycle() throws Exception { @Test public void testThreadPoolSaturatingWarning() throws Exception { - ExecutorService executor = BigQueryJdbcMdc.newFixedThreadPool(1); + ExecutorService executor = BigQueryJdbcMdc.newFixedThreadPool("Metadata Fetch Pool", 1); try { CountDownLatch blockLatch = new CountDownLatch(1); @@ -391,7 +391,7 @@ public void testThreadPoolSaturatingWarning() throws Exception { @Test public void testThreadPoolHysteresisWarning() throws Exception { - ExecutorService executor = BigQueryJdbcMdc.newFixedThreadPool(1); + ExecutorService executor = BigQueryJdbcMdc.newFixedThreadPool("Metadata Fetch Pool", 1); try { CountDownLatch blockLatch1 = new CountDownLatch(1); @@ -452,4 +452,49 @@ public void testThreadPoolHysteresisWarning() throws Exception { executor.shutdownNow(); } } + + @Test + public void testThreadNaming() throws Exception { + String fixedPoolNamePrefix = "Test Fixed Pool"; + ExecutorService fixedExecutor = BigQueryJdbcMdc.newFixedThreadPool(fixedPoolNamePrefix, 1); + try { + AtomicReference threadNameRef = new AtomicReference<>(); + CountDownLatch latch = new CountDownLatch(1); + fixedExecutor.execute( + () -> { + threadNameRef.set(Thread.currentThread().getName()); + latch.countDown(); + }); + assertTrue(latch.await(5, TimeUnit.SECONDS)); + assertTrue( + threadNameRef.get().startsWith(fixedPoolNamePrefix + "-"), + "Expected thread name to start with '" + + fixedPoolNamePrefix + + "-', but was: " + + threadNameRef.get()); + } finally { + fixedExecutor.shutdownNow(); + } + + String cachedPoolNamePrefix = "Test Cached Pool"; + ExecutorService cachedExecutor = BigQueryJdbcMdc.newCachedThreadPool(cachedPoolNamePrefix); + try { + AtomicReference threadNameRef = new AtomicReference<>(); + CountDownLatch latch = new CountDownLatch(1); + cachedExecutor.execute( + () -> { + threadNameRef.set(Thread.currentThread().getName()); + latch.countDown(); + }); + assertTrue(latch.await(5, TimeUnit.SECONDS)); + assertTrue( + threadNameRef.get().startsWith(cachedPoolNamePrefix + "-"), + "Expected thread name to start with '" + + cachedPoolNamePrefix + + "-', but was: " + + threadNameRef.get()); + } finally { + cachedExecutor.shutdownNow(); + } + } } diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJsonResultSetTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJsonResultSetTest.java index 1e9a3830cd90..b75f8493be80 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJsonResultSetTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJsonResultSetTest.java @@ -53,6 +53,7 @@ import java.time.LocalTime; import java.util.TimeZone; import java.util.concurrent.BlockingQueue; +import java.util.concurrent.Future; import java.util.concurrent.LinkedBlockingDeque; import java.util.concurrent.TimeUnit; import java.util.stream.Stream; @@ -168,9 +169,9 @@ public void setUp() { statement = mock(BigQueryStatement.class); buffer.add(BigQueryFieldValueListWrapper.of(fieldList, fieldValues)); buffer.add(BigQueryFieldValueListWrapper.of(null, null, true)); // last marker - Thread[] workerThreads = {new Thread()}; + Future[] workerTasks = {mock(Future.class)}; bigQueryJsonResultSet = - BigQueryJsonResultSet.of(QUERY_SCHEMA, 1L, buffer, statement, workerThreads); + BigQueryJsonResultSet.of(QUERY_SCHEMA, 1L, buffer, statement, workerTasks); // Buffer with 2 rows. bufferWithTwoRows = new LinkedBlockingDeque<>(3); @@ -196,9 +197,9 @@ public void setUp() { private boolean resetResultSet() throws SQLException { // re-initialises the resultset and moves the cursor to the first row - Thread[] workerThreads = {new Thread()}; + Future[] workerTasks = {mock(Future.class)}; bigQueryJsonResultSet = - BigQueryJsonResultSet.of(QUERY_SCHEMA, 1L, buffer, statement, workerThreads); + BigQueryJsonResultSet.of(QUERY_SCHEMA, 1L, buffer, statement, workerTasks); return bigQueryJsonResultSet.next(); // move to the first row } @@ -214,15 +215,15 @@ public void testClose() { @Test public void testRowCount() throws SQLException { - Thread[] workerThreads = {new Thread()}; + Future[] workerTasks = {mock(Future.class)}; // ResultSet with 1 row buffer and 1 total rows. BigQueryJsonResultSet bigQueryJsonResultSet2 = - BigQueryJsonResultSet.of(QUERY_SCHEMA, 1L, buffer, statement, workerThreads); + BigQueryJsonResultSet.of(QUERY_SCHEMA, 1L, buffer, statement, workerTasks); assertThat(resultSetRowCount(bigQueryJsonResultSet2)).isEqualTo(1); // ResultSet with 2 rows buffer and 1 total rows. bigQueryJsonResultSet2 = BigQueryJsonResultSet.of( - QUERY_SCHEMA, 1L, bufferWithTwoRows, statementForTwoRows, workerThreads); + QUERY_SCHEMA, 1L, bufferWithTwoRows, statementForTwoRows, workerTasks); assertThat(resultSetRowCount(bigQueryJsonResultSet2)).isEqualTo(1); } diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryResultSetFinalizersTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryResultSetFinalizersTest.java index ee4d6047b931..460e5b68c3c5 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryResultSetFinalizersTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryResultSetFinalizersTest.java @@ -16,52 +16,33 @@ package com.google.cloud.bigquery.jdbc; -import static com.google.common.truth.Truth.assertThat; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.verify; +import java.util.concurrent.Future; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; public class BigQueryResultSetFinalizersTest { - Thread arrowWorker; - Thread[] jsonWorkers; + Future[] jsonWorkers; @BeforeEach public void setUp() { - // create and start the demon threads - arrowWorker = - new Thread( - () -> { - while (true) { - if (Thread.currentThread().isInterrupted()) { - break; - } - } - }); - arrowWorker.setDaemon(true); - Thread jsonWorker = - new Thread( - () -> { - while (true) { - if (Thread.currentThread().isInterrupted()) { - break; - } - } - }); - jsonWorker.setDaemon(true); - jsonWorkers = new Thread[] {jsonWorker}; - arrowWorker.start(); - jsonWorker.start(); + Future mockFuture = mock(Future.class); + jsonWorkers = new Future[] {mockFuture}; } @Test public void testFinalizeResources() { + Future mockFuture = mock(Future.class); BigQueryResultSetFinalizers.ArrowResultSetFinalizer arrowResultSetFinalizer = - new BigQueryResultSetFinalizers.ArrowResultSetFinalizer(null, null, arrowWorker); + new BigQueryResultSetFinalizers.ArrowResultSetFinalizer(null, null, mockFuture); arrowResultSetFinalizer.finalizeResources(); - assertThat(arrowWorker.isInterrupted()).isTrue(); + verify(mockFuture).cancel(true); + BigQueryResultSetFinalizers.JsonResultSetFinalizer jsonResultSetFinalizer = new BigQueryResultSetFinalizers.JsonResultSetFinalizer(null, null, jsonWorkers); jsonResultSetFinalizer.finalizeResources(); - assertThat(jsonWorkers[0].isInterrupted()).isTrue(); + verify(jsonWorkers[0]).cancel(true); } } diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryResultSetMetadataTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryResultSetMetadataTest.java index b95bb0e056b5..8261a14dc981 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryResultSetMetadataTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryResultSetMetadataTest.java @@ -31,6 +31,7 @@ import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.sql.Types; +import java.util.concurrent.Future; import java.util.stream.Stream; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -84,9 +85,9 @@ public class BigQueryResultSetMetadataTest { @BeforeEach public void setUp() throws SQLException { statement = mock(BigQueryStatement.class); - Thread[] workerThreads = {new Thread()}; + Future[] workerTasks = {mock(Future.class)}; BigQueryJsonResultSet bigQueryJsonResultSet = - BigQueryJsonResultSet.of(QUERY_SCHEMA, 1L, null, statement, workerThreads); + BigQueryJsonResultSet.of(QUERY_SCHEMA, 1L, null, statement, workerTasks); // values for nested types resultSetMetaData = bigQueryJsonResultSet.getMetaData(); @@ -290,7 +291,7 @@ public void testIsSearchableForAllTypes(StandardSQLTypeName type) throws SQLExce FieldList schemaFields = FieldList.of(field); BigQueryJsonResultSet resultSet = BigQueryJsonResultSet.of( - Schema.of(schemaFields), 1L, null, statement, new Thread[] {new Thread()}); + Schema.of(schemaFields), 1L, null, statement, new Future[] {mock(Future.class)}); ResultSetMetaData metaData = resultSet.getMetaData(); assertThat(metaData.isSearchable(1)).isTrue(); } diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java index 674eb0df64e0..189aeedfaed0 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java @@ -67,6 +67,8 @@ import java.util.Map; import java.util.UUID; import java.util.concurrent.BlockingQueue; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Future; import org.apache.arrow.memory.RootAllocator; import org.apache.arrow.vector.BitVector; import org.apache.arrow.vector.FieldVector; @@ -150,6 +152,8 @@ public void setUp() throws IOException, SQLException { .when(bigQueryConnection) .getQueryDialect(); doReturn(1000L).when(bigQueryConnection).getMaxResults(); + ExecutorService executorService = mock(ExecutorService.class); + doReturn(executorService).when(bigQueryConnection).getExecutorService(); bigQueryStatement = new BigQueryStatement(bigQueryConnection); VectorSchemaRoot vectorSchemaRoot = getTestVectorSchemaRoot(); arrowSchema = @@ -252,7 +256,7 @@ public void getArrowResultSetTest() throws SQLException { doReturn(readSession) .when(bigQueryStatementSpy) .getReadSession(any(CreateReadSessionRequest.class)); - Thread mockWorker = new Thread(); + Future mockWorker = mock(Future.class); doReturn(mockWorker) .when(bigQueryStatementSpy) .populateArrowBufferedQueue( diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/PerConnectionFileHandlerTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/PerConnectionFileHandlerTest.java index fda5112703fd..db77acc58342 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/PerConnectionFileHandlerTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/PerConnectionFileHandlerTest.java @@ -31,6 +31,7 @@ import java.sql.SQLException; import java.sql.Statement; import java.util.Optional; +import java.util.concurrent.Future; import java.util.logging.Level; import java.util.logging.LogRecord; import org.junit.jupiter.api.AfterEach; @@ -195,7 +196,8 @@ public void testResultSetExceptionLogRouting() throws Exception { // Instantiate a real BigQueryJsonResultSet (which extends BigQueryBaseResultSet) // passing the mock statement carrying connectionId "c789" - BigQueryJsonResultSet rs = BigQueryJsonResultSet.of(schema, 0, null, mockStmt, new Thread[0]); + BigQueryJsonResultSet rs = + BigQueryJsonResultSet.of(schema, 0, null, mockStmt, new Future[0]); // Calling findColumn(null) throws SQLException because column label is null assertThrows(SQLException.class, () -> rs.findColumn(null)); From 40cd0a7c7700baec2d6f50d580e4566ab82236b3 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 18 Jun 2026 15:24:46 -0400 Subject: [PATCH 37/82] fix(bigquery-jdbc): explicitly set location when available for temporary dataset (#13508) b/524850173 --- .../bigquery/jdbc/BigQueryStatement.java | 11 ++-- .../bigquery/jdbc/BigQueryStatementTest.java | 44 +++++++++++++ .../bigquery/jdbc/it/ITStatementTest.java | 63 +++++++++++++++++++ 3 files changed, 114 insertions(+), 4 deletions(-) diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java index cc05489c89d2..f582c9d79181 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java @@ -1419,11 +1419,14 @@ private void checkIfDatasetExistElseCreate(String datasetName) { Dataset dataset = bigQuery.getDataset(DatasetId.of(datasetName)); if (dataset == null) { LOG.info("Creating a hidden dataset: %s ", datasetName); - DatasetInfo datasetInfo = + DatasetInfo.Builder datasetInfoBuilder = DatasetInfo.newBuilder(datasetName) - .setDefaultTableLifetime(this.querySettings.getDestinationDatasetExpirationTime()) - .build(); - bigQuery.create(datasetInfo); + .setDefaultTableLifetime(this.querySettings.getDestinationDatasetExpirationTime()); + String location = this.connection.getLocation(); + if (location != null && !location.isEmpty()) { + datasetInfoBuilder.setLocation(location); + } + bigQuery.create(datasetInfoBuilder.build()); } } diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java index 189aeedfaed0..dd89f45cbd57 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java @@ -34,6 +34,8 @@ import com.google.cloud.bigquery.BigQuery; import com.google.cloud.bigquery.BigQuery.QueryResultsOption; import com.google.cloud.bigquery.BigQueryOptions; +import com.google.cloud.bigquery.DatasetId; +import com.google.cloud.bigquery.DatasetInfo; import com.google.cloud.bigquery.Field; import com.google.cloud.bigquery.FieldList; import com.google.cloud.bigquery.FieldValueList; @@ -711,4 +713,46 @@ public void testSetAndGetFetchSize() throws SQLException { bigQueryStatement.setFetchSize(100); assertEquals(100, bigQueryStatement.getFetchSize()); } + + @Test + public void testTemporaryDatasetCreationRespectsConnectionLocation() + throws SQLException, InterruptedException { + // 1. Setup mock connection with location and destination dataset + doReturn("europe-west3").when(bigQueryConnection).getLocation(); + doReturn("temp_dataset").when(bigQueryConnection).getDestinationDataset(); + + // Re-instantiate bigQueryStatement so it regenerates querySettings with these mocked connection + // values + BigQueryStatement statement = new BigQueryStatement(bigQueryConnection); + BigQueryStatement statementSpy = Mockito.spy(statement); + + // 2. Mock bigQuery.getDataset to return null (triggering creation) + doReturn(null).when(bigquery).getDataset(eq(DatasetId.of("temp_dataset"))); + + // 2b. Mock bigQuery.create for dry run during getStatementType + Job dryRunJobMock = getJobMock(null, null, StatementType.SELECT); + doReturn(dryRunJobMock).when(bigquery).create(any(JobInfo.class)); + + // 3. Mock bigquery.queryWithTimeout(...) to return tableResult (so execution doesn't fail on + // query execution) + TableResult result = mock(TableResult.class); + doReturn(result) + .when(bigquery) + .queryWithTimeout(any(QueryJobConfiguration.class), any(JobId.class), any()); + doReturn(mock(BigQueryJsonResultSet.class)) + .when(statementSpy) + .processJsonResultSet(eq(result), any()); + + // 4. Capture DatasetInfo passed to bigQuery.create() + ArgumentCaptor datasetInfoCaptor = ArgumentCaptor.forClass(DatasetInfo.class); + + // 5. Execute query + statementSpy.executeQuery("SELECT 1"); + + // 6. Verify dataset was created with correct location + verify(bigquery).create(datasetInfoCaptor.capture()); + DatasetInfo createdDatasetInfo = datasetInfoCaptor.getValue(); + assertEquals("temp_dataset", createdDatasetInfo.getDatasetId().getDataset()); + assertEquals("europe-west3", createdDatasetInfo.getLocation()); + } } diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITStatementTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITStatementTest.java index bc3a995d837a..eaafdd3ef0a3 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITStatementTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITStatementTest.java @@ -24,7 +24,15 @@ import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; +import com.google.api.gax.paging.Page; import com.google.cloud.ServiceOptions; +import com.google.cloud.bigquery.BigQuery; +import com.google.cloud.bigquery.BigQueryOptions; +import com.google.cloud.bigquery.Dataset; +import com.google.cloud.bigquery.DatasetId; +import com.google.cloud.bigquery.FieldValueList; +import com.google.cloud.bigquery.Table; +import com.google.cloud.bigquery.TableResult; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; @@ -412,4 +420,59 @@ int getSizeOfResultSet(ResultSet resultSet) throws SQLException { } return count; } + + @Test + public void testTemporaryDatasetLocation() throws SQLException, InterruptedException { + String projectId = DEFAULT_CATALOG; + String location = "europe-west3"; + String randomSuffix = String.valueOf(100 + new Random().nextInt(900)); + String tempDatasetName = "jdbc_temp_dataset_" + System.currentTimeMillis() + "_" + randomSuffix; + + String customConnectionUrl = + "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=" + + projectId + + ";OAuthType=3;Timeout=3600;Location=" + + location + + ";AllowLargeResults=true;LargeResultDataset=" + + tempDatasetName + + ";"; + + BigQuery bigQuery = BigQueryOptions.getDefaultInstance().getService(); + try (Connection connection = DriverManager.getConnection(customConnectionUrl)) { + Statement statement = connection.createStatement(); + String query = "SELECT 1 as val;"; + try (ResultSet rs = statement.executeQuery(query)) { + assertTrue(rs.next()); + assertEquals(1, rs.getInt("val")); + } + + Dataset dataset = bigQuery.getDataset(DatasetId.of(tempDatasetName)); + assertNotNull(dataset); + assertEquals(location, dataset.getLocation()); + + // Validate that the query results were written to a table in this dataset + Page tables = dataset.list(); + boolean tableFound = false; + for (Table table : tables.iterateAll()) { + if (table.getTableId().getTable().startsWith("temp_table_")) { + tableFound = true; + TableResult tableData = bigQuery.listTableData(table.getTableId()); + assertNotNull(tableData); + assertEquals(1, tableData.getTotalRows()); + for (FieldValueList row : tableData.iterateAll()) { + assertEquals(1, row.get(0).getLongValue()); + } + break; + } + } + assertTrue(tableFound, "Expected temporary table was not found in the dataset"); + } finally { + try { + bigQuery.delete( + DatasetId.of(tempDatasetName), BigQuery.DatasetDeleteOption.deleteContents()); + } catch (Exception e) { + // Ignore cleanup exceptions to avoid masking the primary test failure + } + } + } } From edc41b95619ba0005a8a4c212d9912f5006951e6 Mon Sep 17 00:00:00 2001 From: Sakthivel Subramanian <179120858+sakthivelmanii@users.noreply.github.com> Date: Fri, 19 Jun 2026 03:51:53 +0000 Subject: [PATCH 38/82] chore(spanner): extract ErrorDetails from grpc-status-details-bin for raw gRPC exceptions (#13320) --- .../cloud/spanner/SpannerException.java | 15 ++++- .../spanner/SpannerExceptionFactory.java | 32 ++++++++-- .../cloud/spanner/ITTransactionRetryTest.java | 59 ------------------- .../spanner/SpannerExceptionFactoryTest.java | 25 ++++++++ .../it/ITRetryDmlAsPartitionedDmlTest.java | 12 ---- 5 files changed, 66 insertions(+), 77 deletions(-) diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerException.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerException.java index 0829cc35d62a..d75fa6a735a8 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerException.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerException.java @@ -137,10 +137,21 @@ enum DoNotConstructDirectly { * retry delay. */ public long getRetryDelayInMillis() { - return extractRetryDelay(this.getCause()); + return extractRetryDelay(this, this.apiException); } static long extractRetryDelay(Throwable cause) { + return extractRetryDelay(cause, null); + } + + static long extractRetryDelay(Throwable cause, @Nullable ApiException apiException) { + ErrorDetails details = SpannerExceptionFactory.extractErrorDetails(cause, apiException); + if (details != null && details.getRetryInfo() != null) { + RetryInfo retryInfo = details.getRetryInfo(); + if (retryInfo.hasRetryDelay()) { + return Durations.toMillis(retryInfo.getRetryDelay()); + } + } if (cause != null) { Metadata trailers = Status.trailersFromThrowable(cause); if (trailers != null && trailers.containsKey(KEY_RETRY_INFO)) { @@ -227,7 +238,7 @@ public ErrorDetails getErrorDetails() { if (this.apiException != null) { return this.apiException.getErrorDetails(); } - return null; + return SpannerExceptionFactory.extractErrorDetails(getCause(), null); } void setStatement(String statement) { diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerExceptionFactory.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerExceptionFactory.java index 185f98b54332..fde4478a9502 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerExceptionFactory.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerExceptionFactory.java @@ -26,6 +26,7 @@ import com.google.cloud.spanner.SpannerException.DoNotConstructDirectly; import com.google.common.base.MoreObjects; import com.google.common.base.Predicate; +import com.google.protobuf.InvalidProtocolBufferException; import com.google.rpc.ErrorInfo; import com.google.rpc.ResourceInfo; import com.google.rpc.RetryInfo; @@ -56,6 +57,8 @@ public final class SpannerExceptionFactory { ProtoUtils.keyForProto(ResourceInfo.getDefaultInstance()); private static final Metadata.Key KEY_ERROR_INFO = ProtoUtils.keyForProto(ErrorInfo.getDefaultInstance()); + private static final Metadata.Key KEY_ERROR_DETAILS = + Metadata.Key.of("grpc-status-details-bin", Metadata.BINARY_BYTE_MARSHALLER); public static SpannerException newSpannerException(ErrorCode code, @Nullable String message) { return newSpannerException(code, message, null); @@ -247,6 +250,10 @@ private static String formatMessage(ErrorCode code, @Nullable String message) { } private static ResourceInfo extractResourceInfo(Throwable cause) { + ErrorDetails details = extractErrorDetails(cause, null); + if (details != null && details.getResourceInfo() != null) { + return details.getResourceInfo(); + } if (cause != null) { Metadata trailers = Status.trailersFromThrowable(cause); if (trailers != null) { @@ -257,8 +264,9 @@ private static ResourceInfo extractResourceInfo(Throwable cause) { } private static ErrorInfo extractErrorInfo(Throwable cause, ApiException apiException) { - if (apiException != null && apiException.getErrorDetails() != null) { - return apiException.getErrorDetails().getErrorInfo(); + ErrorDetails details = extractErrorDetails(cause, apiException); + if (details != null && details.getErrorInfo() != null) { + return details.getErrorInfo(); } if (cause != null) { Metadata trailers = Status.trailersFromThrowable(cause); @@ -277,10 +285,26 @@ static ErrorDetails extractErrorDetails(Throwable cause, ApiException apiExcepti Throwable prevCause = null; while (cause != null && cause != prevCause) { if (cause instanceof ApiException) { - return ((ApiException) cause).getErrorDetails(); + if (((ApiException) cause).getErrorDetails() != null) { + return ((ApiException) cause).getErrorDetails(); + } } if (cause instanceof SpannerException) { - return ((SpannerException) cause).getErrorDetails(); + if (((SpannerException) cause).getErrorDetails() != null) { + return ((SpannerException) cause).getErrorDetails(); + } + } + Metadata trailers = Status.trailersFromThrowable(cause); + if (trailers != null) { + byte[] bytes = trailers.get(KEY_ERROR_DETAILS); + if (bytes != null) { + try { + com.google.rpc.Status status = com.google.rpc.Status.parseFrom(bytes); + return ErrorDetails.builder().setRawErrorMessages(status.getDetailsList()).build(); + } catch (InvalidProtocolBufferException e) { + // ignore and continue + } + } } prevCause = cause; cause = cause.getCause(); diff --git a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/ITTransactionRetryTest.java b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/ITTransactionRetryTest.java index 0316b7ea8416..42042957d539 100644 --- a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/ITTransactionRetryTest.java +++ b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/ITTransactionRetryTest.java @@ -19,10 +19,8 @@ import static com.google.cloud.spanner.testing.EmulatorSpannerHelper.isUsingEmulator; import static com.google.cloud.spanner.testing.SpannerOmniHelper.isSpannerOmni; import static com.google.common.truth.Truth.assertThat; -import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.junit.Assume.assumeFalse; -import static org.junit.Assume.assumeTrue; import org.junit.ClassRule; import org.junit.Test; @@ -39,12 +37,7 @@ public class ITTransactionRetryTest { @Test public void TestRetryInfo() { assumeFalse("emulator does not support parallel transaction", isUsingEmulator()); - // TODO(sakthivelmani) - Re-enable once b/422916293 is resolved - assumeFalse( - "Skipping the test due to a known bug b/422916293", - env.getTestHelper().getOptions().isEnableDirectAccess()); assumeFalse("Skipping the test due to a known bug b/422916293", isSpannerOmni()); - // Creating a database with the table which contains INT64 columns Database db = env.getTestHelper() @@ -88,56 +81,4 @@ public void TestRetryInfo() { assertTrue("Transaction is not aborted with the trailers", isAbortedWithRetryInfo); } - - @Test - public void TestRetryInfoWithDirectPath() { - assumeFalse("emulator does not support parallel transaction", isUsingEmulator()); - // TODO(sakthivelmani) - Re-enable once b/422916293 is resolved - assumeTrue( - "Enabling this test due to bug b/422916293", - env.getTestHelper().getOptions().isEnableDirectAccess()); - - // Creating a database with the table which contains INT64 columns - Database db = - env.getTestHelper() - .createTestDatabase("CREATE TABLE Test(ID INT64, " + "EMPID INT64) PRIMARY KEY (ID)"); - DatabaseClient databaseClient = env.getTestHelper().getClient().getDatabaseClient(db.getId()); - - // Inserting one row - databaseClient - .readWriteTransaction() - .run( - transaction -> { - transaction.buffer( - Mutation.newInsertBuilder("Test").set("ID").to(1).set("EMPID").to(1).build()); - return null; - }); - - int numRetries = 10; - boolean isAbortedWithRetryInfo = false; - while (numRetries-- > 0) { - try (TransactionManager transactionManager1 = databaseClient.transactionManager()) { - try (TransactionManager transactionManager2 = databaseClient.transactionManager()) { - try { - TransactionContext transaction1 = transactionManager1.begin(); - TransactionContext transaction2 = transactionManager2.begin(); - transaction1.executeUpdate( - Statement.of("UPDATE Test SET EMPID = EMPID + 1 WHERE ID = 1")); - transaction2.executeUpdate( - Statement.of("UPDATE Test SET EMPID = EMPID + 1 WHERE ID = 1")); - transactionManager1.commit(); - transactionManager2.commit(); - } catch (AbortedException abortedException) { - assertThat(abortedException.getErrorCode()).isEqualTo(ErrorCode.ABORTED); - if (abortedException.getRetryDelayInMillis() > 0) { - isAbortedWithRetryInfo = true; - break; - } - } - } - } - } - - assertFalse("Transaction is aborted with the trailers", isAbortedWithRetryInfo); - } } diff --git a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/SpannerExceptionFactoryTest.java b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/SpannerExceptionFactoryTest.java index 55b9523d7db0..e7d45cee864c 100644 --- a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/SpannerExceptionFactoryTest.java +++ b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/SpannerExceptionFactoryTest.java @@ -251,4 +251,29 @@ private Metadata createResourceTypeMetadata(String resourceType, String resource return trailers; } + + @Test + public void resourceExhaustedWithGrpcStatusDetails() { + Status status = + Status.fromCodeValue(Status.Code.RESOURCE_EXHAUSTED.value()) + .withDescription("Memory pushback"); + Metadata trailers = new Metadata(); + Metadata.Key key = + Metadata.Key.of("grpc-status-details-bin", Metadata.BINARY_BYTE_MARSHALLER); + RetryInfo retryInfo = + RetryInfo.newBuilder() + .setRetryDelay(Duration.newBuilder().setNanos(1000000).setSeconds(1L)) + .build(); + com.google.rpc.Status rpcStatus = + com.google.rpc.Status.newBuilder() + .setCode(com.google.rpc.Code.RESOURCE_EXHAUSTED_VALUE) + .setMessage("Memory pushback") + .addDetails(com.google.protobuf.Any.pack(retryInfo)) + .build(); + trailers.put(key, rpcStatus.toByteArray()); + SpannerException e = + SpannerExceptionFactory.newSpannerException(new StatusRuntimeException(status, trailers)); + assertThat(e.isRetryable()).isTrue(); + assertThat(e.getRetryDelayInMillis()).isEqualTo(1001); + } } diff --git a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/it/ITRetryDmlAsPartitionedDmlTest.java b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/it/ITRetryDmlAsPartitionedDmlTest.java index 5437218a20cf..8f4441db11f5 100644 --- a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/it/ITRetryDmlAsPartitionedDmlTest.java +++ b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/connection/it/ITRetryDmlAsPartitionedDmlTest.java @@ -88,10 +88,6 @@ public static void setupTestData() { @Test public void testDmlFailsIfMutationLimitExceeded() { - // TODO(sakthivelmani) - Re-enable once b/422916293 is resolved - assumeFalse( - "Skipping the test due to a known bug b/422916293", - env.getTestHelper().getOptions().isEnableDirectAccess()); try (Connection connection = createConnection()) { connection.setAutocommit(true); assertThrows( @@ -104,10 +100,6 @@ public void testDmlFailsIfMutationLimitExceeded() { @Test public void testRetryDmlAsPartitionedDml() throws Exception { - // TODO(sakthivelmani) - Re-enable once b/422916293 is resolved - assumeFalse( - "Skipping the test due to a known bug b/422916293", - env.getTestHelper().getOptions().isEnableDirectAccess()); try (Connection connection = createConnection()) { connection.setAutocommit(true); connection.setAutocommitDmlMode( @@ -148,10 +140,6 @@ public void retryDmlAsPartitionedDmlFinished( @Test public void testRetryDmlAsPartitionedDml_failsForLargeInserts() throws Exception { - // TODO(sakthivelmani) - Re-enable once b/422916293 is resolved - assumeFalse( - "Skipping the test due to a known bug b/422916293", - env.getTestHelper().getOptions().isEnableDirectAccess()); try (Connection connection = createConnection()) { connection.setAutocommit(true); connection.setAutocommitDmlMode( From 40f72f78e6781170c7f552b8fc18d242b29de625 Mon Sep 17 00:00:00 2001 From: rahul2393 Date: Fri, 19 Jun 2026 10:05:28 +0530 Subject: [PATCH 39/82] test(spanner): deflake R/W transaction test with in-memory harness test for omni (#13514) --- .../LocationAwareSharedBackendReplicaHarnessTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/LocationAwareSharedBackendReplicaHarnessTest.java b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/LocationAwareSharedBackendReplicaHarnessTest.java index 84643ad21207..dbb1aecb052e 100644 --- a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/LocationAwareSharedBackendReplicaHarnessTest.java +++ b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/LocationAwareSharedBackendReplicaHarnessTest.java @@ -398,7 +398,11 @@ public void readWriteTransactionAbortedCommitUsesReadAffinityReplicaForBypassTra }); assertEquals(2, attempts.get()); - assertEquals(1, firstReplicaIndex.get()); + assertNotEquals( + "Expected read-write transaction read to route to a bypass replica.\n" + + routingDiagnostics(harness), + -1, + firstReplicaIndex.get()); int secondReplicaIndex = 1 - firstReplicaIndex.get(); assertEquals( 2, From 35eb04114702a207ef73c98e53241d0263ddb09a Mon Sep 17 00:00:00 2001 From: Jin Seop Kim Date: Fri, 19 Jun 2026 12:39:58 -0400 Subject: [PATCH 40/82] fix(bigquery): retry cancel job and routine creation on transient HTTP 5xx errors (#13416) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Retries are applied to: ### 1. Read Metadata RPCs * **`bigQueryRpc.getDatasetSkipExceptionTranslation`** (via `getDataset(...)`) * **`bigQueryRpc.getTableSkipExceptionTranslation`** (via `getTable(...)`) * **`bigQueryRpc.getJobSkipExceptionTranslation`** (via `getJob(...)`) * **`bigQueryRpc.getIamPolicySkipExceptionTranslation`** (via `getIamPolicy(...)`) ### 2. List RPCs * **`bigQueryRpc.listDatasetsSkipExceptionTranslation`** (via `listDatasets(...)`) * **`bigQueryRpc.listTablesSkipExceptionTranslation`** (via `listTables(...)`) * **`bigQueryRpc.listJobsSkipExceptionTranslation`** (via `listJobs(...)`) * **`bigQueryRpc.listModelsSkipExceptionTranslation`** (via `listModels(...)`) * **`bigQueryRpc.listRoutinesSkipExceptionTranslation`** (via `listRoutines(...)`) * **`bigQueryRpc.listTableDataSkipExceptionTranslation`** (via `listTableData(...)`) * **`bigQueryRpc.getQueryResultsSkipExceptionTranslation`** (via `getQueryResults(...)`) ### 3. Job Actions * **`bigQueryRpc.cancelSkipExceptionTranslation`** (via `cancel(...)` — resolves `b/467066417`) ### 4. IAM & Permissions * **`bigQueryRpc.testIamPermissionsSkipExceptionTranslation`** (via `testIamPermissions(...)`) ### 5. Routine Creation (Specifically added for UDF Test) * **`bigQueryRpc.createSkipExceptionTranslation` (Routines only)** (via `createRoutine(...)` — resolves `b/467066596`) b/467066417, b/467066596 --- .../google/cloud/bigquery/BigQueryImpl.java | 32 +++---- .../cloud/bigquery/BigQueryRetryHelper.java | 46 ++++++++++ .../cloud/bigquery/BigQueryImplTest.java | 84 +++++++++++++++++++ 3 files changed, 146 insertions(+), 16 deletions(-) diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java index ee138e615c99..a5e91886d030 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryImpl.java @@ -482,7 +482,7 @@ public com.google.api.services.bigquery.model.Routine call() throws IOException } }, getOptions().getRetrySettings(), - getOptions().getResultRetryAlgorithm(), + BigQueryRetryHelper.maybeWrapForHttpRetry(getOptions().getResultRetryAlgorithm()), getOptions().getClock(), EMPTY_RETRY_CONFIG, getOptions().isOpenTelemetryTracingEnabled(), @@ -678,7 +678,7 @@ public com.google.api.services.bigquery.model.Dataset call() throws IOException } }, getOptions().getRetrySettings(), - getOptions().getResultRetryAlgorithm(), + BigQueryRetryHelper.maybeWrapForHttpRetry(getOptions().getResultRetryAlgorithm()), getOptions().getClock(), EMPTY_RETRY_CONFIG, getOptions().isOpenTelemetryTracingEnabled(), @@ -744,7 +744,7 @@ private static Page listDatasets( } }, serviceOptions.getRetrySettings(), - serviceOptions.getResultRetryAlgorithm(), + BigQueryRetryHelper.maybeWrapForHttpRetry(serviceOptions.getResultRetryAlgorithm()), serviceOptions.getClock(), EMPTY_RETRY_CONFIG, serviceOptions.isOpenTelemetryTracingEnabled(), @@ -1217,7 +1217,7 @@ public com.google.api.services.bigquery.model.Table call() throws IOException { } }, getOptions().getRetrySettings(), - getOptions().getResultRetryAlgorithm(), + BigQueryRetryHelper.maybeWrapForHttpRetry(getOptions().getResultRetryAlgorithm()), getOptions().getClock(), EMPTY_RETRY_CONFIG, getOptions().isOpenTelemetryTracingEnabled(), @@ -1276,7 +1276,7 @@ public com.google.api.services.bigquery.model.Model call() throws IOException { } }, getOptions().getRetrySettings(), - getOptions().getResultRetryAlgorithm(), + BigQueryRetryHelper.maybeWrapForHttpRetry(getOptions().getResultRetryAlgorithm()), getOptions().getClock(), EMPTY_RETRY_CONFIG, getOptions().isOpenTelemetryTracingEnabled(), @@ -1335,7 +1335,7 @@ public com.google.api.services.bigquery.model.Routine call() throws IOException } }, getOptions().getRetrySettings(), - getOptions().getResultRetryAlgorithm(), + BigQueryRetryHelper.maybeWrapForHttpRetry(getOptions().getResultRetryAlgorithm()), getOptions().getClock(), EMPTY_RETRY_CONFIG, getOptions().isOpenTelemetryTracingEnabled(), @@ -1553,7 +1553,7 @@ public Tuple> cal } }, serviceOptions.getRetrySettings(), - serviceOptions.getResultRetryAlgorithm(), + BigQueryRetryHelper.maybeWrapForHttpRetry(serviceOptions.getResultRetryAlgorithm()), serviceOptions.getClock(), EMPTY_RETRY_CONFIG, serviceOptions.isOpenTelemetryTracingEnabled(), @@ -1594,7 +1594,7 @@ public Tuple> cal } }, serviceOptions.getRetrySettings(), - serviceOptions.getResultRetryAlgorithm(), + BigQueryRetryHelper.maybeWrapForHttpRetry(serviceOptions.getResultRetryAlgorithm()), serviceOptions.getClock(), EMPTY_RETRY_CONFIG, serviceOptions.isOpenTelemetryTracingEnabled(), @@ -1635,7 +1635,7 @@ private static Page listRoutines( } }, serviceOptions.getRetrySettings(), - serviceOptions.getResultRetryAlgorithm(), + BigQueryRetryHelper.maybeWrapForHttpRetry(serviceOptions.getResultRetryAlgorithm()), serviceOptions.getClock(), EMPTY_RETRY_CONFIG, serviceOptions.isOpenTelemetryTracingEnabled(), @@ -1812,7 +1812,7 @@ public TableDataList call() throws IOException { } }, serviceOptions.getRetrySettings(), - serviceOptions.getResultRetryAlgorithm(), + BigQueryRetryHelper.maybeWrapForHttpRetry(serviceOptions.getResultRetryAlgorithm()), serviceOptions.getClock(), EMPTY_RETRY_CONFIG, serviceOptions.isOpenTelemetryTracingEnabled(), @@ -1889,7 +1889,7 @@ public com.google.api.services.bigquery.model.Job call() throws IOException { } }, getOptions().getRetrySettings(), - getOptions().getResultRetryAlgorithm(), + BigQueryRetryHelper.maybeWrapForHttpRetry(getOptions().getResultRetryAlgorithm()), getOptions().getClock(), EMPTY_RETRY_CONFIG, getOptions().isOpenTelemetryTracingEnabled(), @@ -1946,7 +1946,7 @@ public Tuple> call( } }, serviceOptions.getRetrySettings(), - serviceOptions.getResultRetryAlgorithm(), + BigQueryRetryHelper.maybeWrapForHttpRetry(serviceOptions.getResultRetryAlgorithm()), serviceOptions.getClock(), EMPTY_RETRY_CONFIG, serviceOptions.isOpenTelemetryTracingEnabled(), @@ -2001,7 +2001,7 @@ public Boolean call() throws IOException { } }, getOptions().getRetrySettings(), - getOptions().getResultRetryAlgorithm(), + BigQueryRetryHelper.maybeWrapForHttpRetry(getOptions().getResultRetryAlgorithm()), getOptions().getClock(), EMPTY_RETRY_CONFIG, getOptions().isOpenTelemetryTracingEnabled(), @@ -2262,7 +2262,7 @@ public GetQueryResultsResponse call() throws IOException { } }, serviceOptions.getRetrySettings(), - serviceOptions.getResultRetryAlgorithm(), + BigQueryRetryHelper.maybeWrapForHttpRetry(serviceOptions.getResultRetryAlgorithm()), serviceOptions.getClock(), DEFAULT_RETRY_CONFIG, serviceOptions.isOpenTelemetryTracingEnabled(), @@ -2333,7 +2333,7 @@ public com.google.api.services.bigquery.model.Policy call() throws IOException { } }, getOptions().getRetrySettings(), - getOptions().getResultRetryAlgorithm(), + BigQueryRetryHelper.maybeWrapForHttpRetry(getOptions().getResultRetryAlgorithm()), getOptions().getClock(), EMPTY_RETRY_CONFIG, getOptions().isOpenTelemetryTracingEnabled(), @@ -2427,7 +2427,7 @@ public com.google.api.services.bigquery.model.TestIamPermissionsResponse call() } }, getOptions().getRetrySettings(), - getOptions().getResultRetryAlgorithm(), + BigQueryRetryHelper.maybeWrapForHttpRetry(getOptions().getResultRetryAlgorithm()), getOptions().getClock(), EMPTY_RETRY_CONFIG, getOptions().isOpenTelemetryTracingEnabled(), diff --git a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryRetryHelper.java b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryRetryHelper.java index 98adb0b273e1..6b7847c59892 100644 --- a/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryRetryHelper.java +++ b/java-bigquery/google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/BigQueryRetryHelper.java @@ -15,6 +15,7 @@ */ package com.google.cloud.bigquery; +import com.google.api.client.http.HttpResponseException; import com.google.api.core.ApiClock; import com.google.api.gax.retrying.DirectRetryingExecutor; import com.google.api.gax.retrying.ExponentialRetryAlgorithm; @@ -23,6 +24,7 @@ import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.retrying.RetryingExecutor; import com.google.api.gax.retrying.RetryingFuture; +import com.google.api.gax.retrying.TimedAttemptSettings; import com.google.api.gax.retrying.TimedRetryAlgorithm; import com.google.cloud.RetryHelper; import io.opentelemetry.api.trace.Span; @@ -119,6 +121,50 @@ private static V run( return retryingFuture.get(); } + /** + * Conditionally wraps the provided retry algorithm with a wrapper that retries on transient HTTP + * errors. + * + *

            Wrapping only occurs if the provided algorithm is the default {@link + * BigQueryBaseService#DEFAULT_BIGQUERY_EXCEPTION_HANDLER}. Custom user-defined retry algorithms + * are returned unmodified to preserve custom retry policies. + */ + @SuppressWarnings("unchecked") + static ResultRetryAlgorithm maybeWrapForHttpRetry(ResultRetryAlgorithm algorithm) { + if (algorithm == BigQueryBaseService.DEFAULT_BIGQUERY_EXCEPTION_HANDLER) { + return wrapDefaultAlgorithm((ResultRetryAlgorithm) algorithm); + } + return (ResultRetryAlgorithm) algorithm; + } + + /** + * Wraps the default retry algorithm to additionally retry on transient HTTP status codes 500, + * 502, 503, and 504. Other retry decisions and timing logic are delegated back to the default + * algorithm. + */ + private static ResultRetryAlgorithm wrapDefaultAlgorithm( + ResultRetryAlgorithm defaultAlgorithm) { + return new ResultRetryAlgorithm() { + @Override + public TimedAttemptSettings createNextAttempt( + Throwable previousThrowable, V previousResponse, TimedAttemptSettings previousSettings) { + return defaultAlgorithm.createNextAttempt( + previousThrowable, previousResponse, previousSettings); + } + + @Override + public boolean shouldRetry(Throwable previousThrowable, V previousResponse) { + if (previousThrowable instanceof HttpResponseException) { + int statusCode = ((HttpResponseException) previousThrowable).getStatusCode(); + if (statusCode == 500 || statusCode == 502 || statusCode == 503 || statusCode == 504) { + return true; + } + } + return defaultAlgorithm.shouldRetry(previousThrowable, previousResponse); + } + }; + } + public static class BigQueryRetryHelperException extends RuntimeException { private static final long serialVersionUID = -8519852520090965314L; diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java index 7a0a3faf2db8..9f2320ab3c35 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/BigQueryImplTest.java @@ -26,6 +26,7 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertSame; +import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.eq; @@ -37,7 +38,13 @@ import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; +import com.google.api.client.googleapis.json.GoogleJsonError; +import com.google.api.client.googleapis.json.GoogleJsonResponseException; +import com.google.api.client.http.HttpHeaders; +import com.google.api.client.http.HttpResponseException; import com.google.api.gax.paging.Page; +import com.google.api.gax.retrying.ResultRetryAlgorithm; +import com.google.api.gax.retrying.TimedAttemptSettings; import com.google.api.services.bigquery.model.ErrorProto; import com.google.api.services.bigquery.model.GetQueryResultsResponse; import com.google.api.services.bigquery.model.JobConfigurationQuery; @@ -989,6 +996,83 @@ void testGetTable() throws IOException { .getTableSkipExceptionTranslation(PROJECT, DATASET, TABLE, EMPTY_RPC_OPTIONS); } + @Test + void testGetTableFailureShouldRetryServerErrors() throws IOException { + GoogleJsonError error = new GoogleJsonError(); + error.setMessage("Visibility check was unavailable. Please retry the request"); + error.setCode(503); + GoogleJsonError.ErrorInfo errorInfo = new GoogleJsonError.ErrorInfo(); + errorInfo.setReason("backendError"); + error.setErrors(ImmutableList.of(errorInfo)); + + when(bigqueryRpcMock.getTableSkipExceptionTranslation( + PROJECT, DATASET, TABLE, EMPTY_RPC_OPTIONS)) + .thenThrow(new GoogleJsonResponseException(serverErrorResponse(), error)) + .thenReturn(TABLE_INFO_WITH_PROJECT.toPb()); + + bigquery = + options.toBuilder() + .setRetrySettings(ServiceOptions.getDefaultRetrySettings()) + .build() + .getService(); + + Table table = bigquery.getTable(DATASET, TABLE); + + assertEquals(new Table(bigquery, new TableInfo.BuilderImpl(TABLE_INFO_WITH_PROJECT)), table); + verify(bigqueryRpcMock, times(2)) + .getTableSkipExceptionTranslation(PROJECT, DATASET, TABLE, EMPTY_RPC_OPTIONS); + } + + @Test + void testGetTableFailureWithCustomRetryAlgorithmShouldNotRetry() throws IOException { + GoogleJsonError error = new GoogleJsonError(); + error.setMessage("Visibility check was unavailable. Please retry the request"); + error.setCode(503); + GoogleJsonError.ErrorInfo errorInfo = new GoogleJsonError.ErrorInfo(); + errorInfo.setReason("backendError"); + error.setErrors(ImmutableList.of(errorInfo)); + + when(bigqueryRpcMock.getTableSkipExceptionTranslation( + PROJECT, DATASET, TABLE, EMPTY_RPC_OPTIONS)) + .thenThrow(new GoogleJsonResponseException(serverErrorResponse(), error)); + + ResultRetryAlgorithm customAlgorithm = + new ResultRetryAlgorithm() { + @Override + public TimedAttemptSettings createNextAttempt( + Throwable previousThrowable, + Object previousResponse, + TimedAttemptSettings previousSettings) { + return null; + } + + @Override + public boolean shouldRetry(Throwable previousThrowable, Object previousResponse) { + return false; + } + }; + + bigquery = + options.toBuilder() + .setRetrySettings(ServiceOptions.getDefaultRetrySettings()) + .setResultRetryAlgorithm(customAlgorithm) + .build() + .getService(); + + assertThrows( + BigQueryException.class, + () -> { + bigquery.getTable(DATASET, TABLE); + }); + + verify(bigqueryRpcMock, times(1)) + .getTableSkipExceptionTranslation(PROJECT, DATASET, TABLE, EMPTY_RPC_OPTIONS); + } + + private static HttpResponseException.Builder serverErrorResponse() { + return new HttpResponseException.Builder(503, "Service Unavailable", new HttpHeaders()); + } + @Test void testGetModel() throws IOException { when(bigqueryRpcMock.getModelSkipExceptionTranslation( From b59e07ad8b8edffd39636d546ee2e106661ec32d Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Sat, 20 Jun 2026 14:34:15 -0400 Subject: [PATCH 41/82] chore: update googleapis commitish to 1df255f (#13525) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated googleapis commitish in librarian.yaml and generation_config.yaml to https://github.com/googleapis/googleapis/commit/1df255f1feb82e85ec0c8a3b558857e8ca3d3372 💡 **Note:** Please merge or close this PR so that the daily update workflow can continue to run successfully the next day. Alternatively, you can manually trigger the workflow once this PR is merged or closed. --- generation_config.yaml | 2 +- .../v1alpha/AnalyticsAdminServiceClient.java | 122 + .../AnalyticsAdminServiceSettings.java | 14 + .../admin/v1alpha/gapic_metadata.json | 3 + .../stub/AnalyticsAdminServiceStub.java | 7 + .../AnalyticsAdminServiceStubSettings.java | 31 + .../stub/GrpcAnalyticsAdminServiceStub.java | 44 + .../HttpJsonAnalyticsAdminServiceStub.java | 77 + .../reflect-config.json | 18 + ...alyticsAdminServiceClientHttpJsonTest.java | 53 + .../AnalyticsAdminServiceClientTest.java | 45 + .../MockAnalyticsAdminServiceImpl.java | 23 + .../v1alpha/AnalyticsAdminServiceGrpc.java | 148 +- .../admin/v1alpha/AnalyticsAdminProto.java | 1818 +-- .../admin/v1alpha/PropertySummary.java | 101 + .../v1alpha/PropertySummaryOrBuilder.java | 14 + .../admin/v1alpha/ResourcesProto.java | 377 +- ...pdateReportingIdentitySettingsRequest.java | 1109 ++ ...rtingIdentitySettingsRequestOrBuilder.java | 127 + .../admin/v1alpha/analytics_admin.proto | 27 + .../analytics/admin/v1alpha/resources.proto | 4 + .../analytics/admin/v1beta/Account.java | 28 +- .../admin/v1beta/AccountOrBuilder.java | 8 +- .../admin/v1beta/AccountSummary.java | 28 +- .../admin/v1beta/AccountSummaryOrBuilder.java | 8 +- .../admin/v1beta/AnalyticsAdminProto.java | 680 +- .../admin/v1beta/ConversionEvent.java | 28 +- .../v1beta/ConversionEventOrBuilder.java | 8 +- .../admin/v1beta/CustomDimension.java | 28 +- .../v1beta/CustomDimensionOrBuilder.java | 8 +- .../analytics/admin/v1beta/CustomMetric.java | 28 +- .../admin/v1beta/CustomMetricOrBuilder.java | 8 +- .../admin/v1beta/DataRetentionSettings.java | 28 +- .../DataRetentionSettingsOrBuilder.java | 8 +- .../admin/v1beta/DataSharingSettings.java | 192 +- .../v1beta/DataSharingSettingsOrBuilder.java | 49 +- .../analytics/admin/v1beta/DataStream.java | 28 +- .../admin/v1beta/DataStreamOrBuilder.java | 8 +- .../analytics/admin/v1beta/FirebaseLink.java | 28 +- .../admin/v1beta/FirebaseLinkOrBuilder.java | 8 +- .../analytics/admin/v1beta/GoogleAdsLink.java | 28 +- .../admin/v1beta/GoogleAdsLinkOrBuilder.java | 8 +- .../v1beta/ListAccountSummariesRequest.java | 110 +- .../ListAccountSummariesRequestOrBuilder.java | 30 +- .../admin/v1beta/ListAccountsRequest.java | 44 +- .../v1beta/ListAccountsRequestOrBuilder.java | 12 +- .../v1beta/ListConversionEventsRequest.java | 86 +- .../ListConversionEventsRequestOrBuilder.java | 24 +- .../v1beta/ListCustomDimensionsRequest.java | 58 +- .../ListCustomDimensionsRequestOrBuilder.java | 16 +- .../v1beta/ListFirebaseLinksRequest.java | 44 +- .../ListFirebaseLinksRequestOrBuilder.java | 12 +- .../v1beta/ListGoogleAdsLinksRequest.java | 44 +- .../ListGoogleAdsLinksRequestOrBuilder.java | 12 +- .../admin/v1beta/ListKeyEventsRequest.java | 44 +- .../v1beta/ListKeyEventsRequestOrBuilder.java | 12 +- ...ListMeasurementProtocolSecretsRequest.java | 93 +- ...rementProtocolSecretsRequestOrBuilder.java | 26 +- .../admin/v1beta/ListPropertiesRequest.java | 44 +- .../ListPropertiesRequestOrBuilder.java | 12 +- .../v1beta/MeasurementProtocolSecret.java | 42 +- .../MeasurementProtocolSecretOrBuilder.java | 12 +- .../analytics/admin/v1beta/Property.java | 28 +- .../admin/v1beta/PropertyOrBuilder.java | 8 +- .../admin/v1beta/PropertySummary.java | 101 + .../v1beta/PropertySummaryOrBuilder.java | 14 + .../admin/v1beta/ResourcesProto.java | 222 +- .../admin/v1beta/access_report.proto | 2 +- .../admin/v1beta/analytics_admin.proto | 101 +- .../analytics/admin/v1beta/resources.proto | 117 +- .../AsyncUpdateReportingIdentitySettings.java | 52 + .../SyncUpdateReportingIdentitySettings.java | 49 + ...ngsReportingidentitysettingsFieldmask.java | 48 + .../reflect-config.json | 9 + .../cloud/dataproc/v1/ClustersProto.java | 238 +- .../v1/ConfidentialInstanceConfig.java | 443 +- .../ConfidentialInstanceConfigOrBuilder.java | 42 +- .../cloud/dataproc/v1/GceClusterConfig.java | 416 +- .../v1/GceClusterConfigOrBuilder.java | 94 +- .../google/cloud/dataproc/v1/clusters.proto | 42 +- .../cloud/dialogflow/cx/v3/AgentsClient.java | 18 +- .../dialogflow/cx/v3/ChangelogsClient.java | 18 +- .../dialogflow/cx/v3/DeploymentsClient.java | 18 +- .../dialogflow/cx/v3/EntityTypesClient.java | 18 +- .../dialogflow/cx/v3/EnvironmentsClient.java | 18 +- .../dialogflow/cx/v3/ExamplesClient.java | 18 +- .../dialogflow/cx/v3/ExperimentsClient.java | 18 +- .../cloud/dialogflow/cx/v3/FlowsClient.java | 18 +- .../dialogflow/cx/v3/GeneratorsClient.java | 18 +- .../cloud/dialogflow/cx/v3/IntentsClient.java | 18 +- .../cloud/dialogflow/cx/v3/PagesClient.java | 18 +- .../dialogflow/cx/v3/PlaybooksClient.java | 18 +- .../cx/v3/SecuritySettingsServiceClient.java | 18 +- .../cx/v3/SessionEntityTypesClient.java | 18 +- .../dialogflow/cx/v3/SessionsClient.java | 18 +- .../dialogflow/cx/v3/TestCasesClient.java | 18 +- .../cloud/dialogflow/cx/v3/ToolsClient.java | 18 +- .../cx/v3/TransitionRouteGroupsClient.java | 18 +- .../dialogflow/cx/v3/VersionsClient.java | 18 +- .../dialogflow/cx/v3/WebhooksClient.java | 18 +- .../dialogflow/cx/v3beta1/AgentsClient.java | 18 +- .../cx/v3beta1/ChangelogsClient.java | 18 +- .../cx/v3beta1/ConversationHistoryClient.java | 18 +- .../cx/v3beta1/DeploymentsClient.java | 18 +- .../cx/v3beta1/EntityTypesClient.java | 18 +- .../cx/v3beta1/EnvironmentsClient.java | 18 +- .../dialogflow/cx/v3beta1/ExamplesClient.java | 18 +- .../cx/v3beta1/ExperimentsClient.java | 18 +- .../dialogflow/cx/v3beta1/FlowsClient.java | 18 +- .../cx/v3beta1/GeneratorsClient.java | 18 +- .../dialogflow/cx/v3beta1/IntentsClient.java | 18 +- .../dialogflow/cx/v3beta1/PagesClient.java | 18 +- .../cx/v3beta1/PlaybooksClient.java | 18 +- .../SecuritySettingsServiceClient.java | 18 +- .../cx/v3beta1/SessionEntityTypesClient.java | 18 +- .../dialogflow/cx/v3beta1/SessionsClient.java | 18 +- .../cx/v3beta1/TestCasesClient.java | 18 +- .../dialogflow/cx/v3beta1/ToolsClient.java | 18 +- .../v3beta1/TransitionRouteGroupsClient.java | 18 +- .../dialogflow/cx/v3beta1/VersionsClient.java | 18 +- .../dialogflow/cx/v3beta1/WebhooksClient.java | 18 +- .../dialogflow/cx/v3/AudioConfigProto.java | 26 +- .../cx/v3/DetectIntentResponseView.java | 10 + .../dialogflow/cx/v3/OutputAudioEncoding.java | 11 +- .../cloud/dialogflow/cx/v3/audio_config.proto | 4 +- .../cloud/dialogflow/cx/v3/session.proto | 5 + .../cx/v3beta1/AudioConfigProto.java | 28 +- .../cx/v3beta1/DetectIntentResponseView.java | 8 + .../cx/v3beta1/OutputAudioEncoding.java | 11 +- .../dialogflow/cx/v3beta1/audio_config.proto | 4 +- .../cloud/dialogflow/cx/v3beta1/session.proto | 4 + .../cloud/dialogflow/v2/AgentsClient.java | 18 +- .../dialogflow/v2/AnswerRecordsClient.java | 18 +- .../cloud/dialogflow/v2/ContextsClient.java | 18 +- .../v2/ConversationDatasetsClient.java | 18 +- .../v2/ConversationModelsClient.java | 18 +- .../v2/ConversationProfilesClient.java | 18 +- .../dialogflow/v2/ConversationsClient.java | 18 +- .../cloud/dialogflow/v2/DocumentsClient.java | 18 +- .../v2/EncryptionSpecServiceClient.java | 18 +- .../dialogflow/v2/EntityTypesClient.java | 18 +- .../dialogflow/v2/EnvironmentsClient.java | 18 +- .../dialogflow/v2/FulfillmentsClient.java | 18 +- .../v2/GeneratorEvaluationsClient.java | 18 +- .../cloud/dialogflow/v2/GeneratorsClient.java | 18 +- .../cloud/dialogflow/v2/IntentsClient.java | 18 +- .../dialogflow/v2/KnowledgeBasesClient.java | 18 +- .../dialogflow/v2/ParticipantsClient.java | 18 +- .../v2/SessionEntityTypesClient.java | 18 +- .../cloud/dialogflow/v2/SessionsClient.java | 18 +- .../cloud/dialogflow/v2/SipTrunksClient.java | 18 +- .../cloud/dialogflow/v2/ToolsClient.java | 18 +- .../cloud/dialogflow/v2/VersionsClient.java | 18 +- .../dialogflow/v2beta1/AgentsClient.java | 18 +- .../v2beta1/AnswerRecordsClient.java | 18 +- .../dialogflow/v2beta1/ContextsClient.java | 18 +- .../v2beta1/ConversationProfilesClient.java | 18 +- .../v2beta1/ConversationsClient.java | 18 +- .../dialogflow/v2beta1/DocumentsClient.java | 18 +- .../v2beta1/EncryptionSpecServiceClient.java | 18 +- .../dialogflow/v2beta1/EntityTypesClient.java | 18 +- .../v2beta1/EnvironmentsClient.java | 18 +- .../v2beta1/FulfillmentsClient.java | 18 +- .../v2beta1/GeneratorEvaluationsClient.java | 18 +- .../dialogflow/v2beta1/GeneratorsClient.java | 18 +- .../dialogflow/v2beta1/IntentsClient.java | 18 +- .../v2beta1/KnowledgeBasesClient.java | 18 +- .../v2beta1/ParticipantsClient.java | 18 +- .../v2beta1/PhoneNumbersClient.java | 18 +- .../v2beta1/SessionEntityTypesClient.java | 18 +- .../dialogflow/v2beta1/SessionsClient.java | 18 +- .../dialogflow/v2beta1/SipTrunksClient.java | 18 +- .../cloud/dialogflow/v2beta1/ToolsClient.java | 18 +- .../dialogflow/v2beta1/VersionsClient.java | 18 +- .../reflect-config.json | 90 + .../reflect-config.json | 180 +- ...onversationProfilesClientHttpJsonTest.java | 12 + .../v2/ConversationProfilesClientTest.java | 10 + .../v2/ParticipantsClientHttpJsonTest.java | 2 + .../dialogflow/v2/ParticipantsClientTest.java | 2 + ...onversationProfilesClientHttpJsonTest.java | 12 + .../ConversationProfilesClientTest.java | 10 + .../ParticipantsClientHttpJsonTest.java | 2 + .../v2beta1/ParticipantsClientTest.java | 2 + .../cloud/dialogflow/v2/AudioConfigProto.java | 20 +- .../cloud/dialogflow/v2/CesAppProto.java | 31 +- .../cloud/dialogflow/v2/CesAppSpec.java | 309 + .../dialogflow/v2/CesAppSpecOrBuilder.java | 64 + .../dialogflow/v2/ConversationProfile.java | 349 +- .../v2/ConversationProfileOrBuilder.java | 43 + .../v2/ConversationProfileProto.java | 547 +- .../dialogflow/v2/ConversationProto.java | 151 +- .../v2/HumanAgentAssistantConfig.java | 458 +- .../dialogflow/v2/KnowledgeAssistAnswer.java | 11450 ++++++++++----- .../v2/KnowledgeAssistDebugInfo.java | 1368 ++ .../v2/KnowledgeAssistDebugInfoOrBuilder.java | 82 + .../dialogflow/v2/OutputAudioEncoding.java | 11 +- .../cloud/dialogflow/v2/Participant.java | 77 +- .../dialogflow/v2/ParticipantOrBuilder.java | 22 +- .../cloud/dialogflow/v2/ParticipantProto.java | 331 +- .../dialogflow/v2/SearchKnowledgeAnswer.java | 46 + .../google/cloud/dialogflow/v2/SipConfig.java | 1536 +++ .../dialogflow/v2/SipConfigOrBuilder.java | 197 + .../v2/StreamingAnalyzeContentResponse.java | 14 +- .../v2/StreamingRecognitionResult.java | 50 +- .../v2/SuggestKnowledgeAssistResponse.java | 676 + ...ggestKnowledgeAssistResponseOrBuilder.java | 83 + .../cloud/dialogflow/v2/audio_config.proto | 4 +- .../google/cloud/dialogflow/v2/ces_app.proto | 12 + .../cloud/dialogflow/v2/conversation.proto | 6 + .../dialogflow/v2/conversation_profile.proto | 49 + .../cloud/dialogflow/v2/participant.proto | 94 +- .../google/cloud/dialogflow/v2/session.proto | 25 +- .../dialogflow/v2beta1/AudioConfigProto.java | 21 +- .../v2beta1/AutomatedAgentConfig.java | 14 +- .../AutomatedAgentConfigOrBuilder.java | 4 +- .../v2beta1/AutomatedAgentReply.java | 8 +- .../v2beta1/AutomatedAgentReplyOrBuilder.java | 4 +- .../BidiStreamingAnalyzeContentRequest.java | 2845 +++- .../BidiStreamingAnalyzeContentResponse.java | 2666 ++++ ...eamingAnalyzeContentResponseOrBuilder.java | 44 + .../cloud/dialogflow/v2beta1/CesAppProto.java | 21 +- .../cloud/dialogflow/v2beta1/CesAppSpec.java | 309 + .../v2beta1/CesAppSpecOrBuilder.java | 64 + .../v2beta1/ConversationProfile.java | 350 +- .../v2beta1/ConversationProfileOrBuilder.java | 43 + .../v2beta1/ConversationProfileProto.java | 626 +- .../dialogflow/v2beta1/ConversationProto.java | 179 +- .../v2beta1/HumanAgentAssistantConfig.java | 2019 +-- .../v2beta1/KnowledgeAssistAnswer.java | 11468 +++++++++++----- .../v2beta1/KnowledgeAssistDebugInfo.java | 3737 +++-- .../KnowledgeAssistDebugInfoOrBuilder.java | 82 + .../v2beta1/OutputAudioEncoding.java | 11 +- .../cloud/dialogflow/v2beta1/Participant.java | 63 +- .../v2beta1/ParticipantOrBuilder.java | 18 +- .../dialogflow/v2beta1/ParticipantProto.java | 462 +- .../v2beta1/SearchKnowledgeAnswer.java | 46 + .../cloud/dialogflow/v2beta1/SipConfig.java | 1537 +++ .../v2beta1/SipConfigOrBuilder.java | 197 + .../StreamingAnalyzeContentResponse.java | 14 +- .../v2beta1/StreamingRecognitionResult.java | 52 +- .../SuggestKnowledgeAssistResponse.java | 688 + ...ggestKnowledgeAssistResponseOrBuilder.java | 83 + .../dialogflow/v2beta1/audio_config.proto | 4 +- .../cloud/dialogflow/v2beta1/ces_app.proto | 12 + .../dialogflow/v2beta1/conversation.proto | 6 + .../v2beta1/conversation_profile.proto | 81 +- .../dialogflow/v2beta1/participant.proto | 136 +- .../cloud/dialogflow/v2beta1/session.proto | 26 +- librarian.yaml | 4 +- 250 files changed, 41975 insertions(+), 14231 deletions(-) create mode 100644 java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateReportingIdentitySettingsRequest.java create mode 100644 java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateReportingIdentitySettingsRequestOrBuilder.java create mode 100644 java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/AsyncUpdateReportingIdentitySettings.java create mode 100644 java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/SyncUpdateReportingIdentitySettings.java create mode 100644 java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/SyncUpdateReportingIdentitySettingsReportingidentitysettingsFieldmask.java create mode 100644 java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipConfig.java create mode 100644 java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipConfigOrBuilder.java create mode 100644 java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipConfig.java create mode 100644 java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipConfigOrBuilder.java diff --git a/generation_config.yaml b/generation_config.yaml index 0436082edd91..dd89c38cc1b2 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,4 +1,4 @@ -googleapis_commitish: db88feb4756963c6aa9b5996a880cfe5572d0320 +googleapis_commitish: 1df255f1feb82e85ec0c8a3b558857e8ca3d3372 libraries_bom_version: 26.83.0 is_monorepo: true libraries: diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java index 236b0f6ac9e3..56c2bd1f6210 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java @@ -2926,6 +2926,24 @@ * * *

            + * + * + * + * + * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * + * + * + * + * + * * * * * * + * + * + * + * + * * * * * * + * + * + * + * + * * * * * * - * + * *

            UpdateReportingIdentitySettings

            Updates the reporting identity settings for this property.

            + *

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

            + *
              + *
            • updateReportingIdentitySettings(UpdateReportingIdentitySettingsRequest request) + *

            + *

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

            + *
              + *
            • updateReportingIdentitySettings(ReportingIdentitySettings reportingIdentitySettings, 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.

            + *
              + *
            • updateReportingIdentitySettingsCallable() + *

            + *

            GetUserProvidedDataSettings

            Looks up settings related to user-provided data for a property.

            @@ -22341,6 +22359,110 @@ public final ReportingIdentitySettings getReportingIdentitySettings( return stub.getReportingIdentitySettingsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the reporting identity settings for this property. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
            +   *     AnalyticsAdminServiceClient.create()) {
            +   *   ReportingIdentitySettings reportingIdentitySettings =
            +   *       ReportingIdentitySettings.newBuilder().build();
            +   *   FieldMask updateMask = FieldMask.newBuilder().build();
            +   *   ReportingIdentitySettings response =
            +   *       analyticsAdminServiceClient.updateReportingIdentitySettings(
            +   *           reportingIdentitySettings, updateMask);
            +   * }
            +   * }
            + * + * @param reportingIdentitySettings Required. The reporting identity settings to update. The + * settings' `name` field is used to identify the settings. + * @param updateMask Optional. The list of fields to be updated. Field names must be in snake case + * (for example, "field_to_update"). Omitted fields will not be updated. To replace the entire + * entity, use one path with the string "*" to match all fields. If omitted, the service + * will treat it as an implied field mask equivalent to all fields that are populated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ReportingIdentitySettings updateReportingIdentitySettings( + ReportingIdentitySettings reportingIdentitySettings, FieldMask updateMask) { + UpdateReportingIdentitySettingsRequest request = + UpdateReportingIdentitySettingsRequest.newBuilder() + .setReportingIdentitySettings(reportingIdentitySettings) + .setUpdateMask(updateMask) + .build(); + return updateReportingIdentitySettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the reporting identity settings for this property. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
            +   *     AnalyticsAdminServiceClient.create()) {
            +   *   UpdateReportingIdentitySettingsRequest request =
            +   *       UpdateReportingIdentitySettingsRequest.newBuilder()
            +   *           .setReportingIdentitySettings(ReportingIdentitySettings.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   ReportingIdentitySettings response =
            +   *       analyticsAdminServiceClient.updateReportingIdentitySettings(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 ReportingIdentitySettings updateReportingIdentitySettings( + UpdateReportingIdentitySettingsRequest request) { + return updateReportingIdentitySettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the reporting identity settings for this property. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
            +   *     AnalyticsAdminServiceClient.create()) {
            +   *   UpdateReportingIdentitySettingsRequest request =
            +   *       UpdateReportingIdentitySettingsRequest.newBuilder()
            +   *           .setReportingIdentitySettings(ReportingIdentitySettings.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       analyticsAdminServiceClient.updateReportingIdentitySettingsCallable().futureCall(request);
            +   *   // Do something.
            +   *   ReportingIdentitySettings response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + updateReportingIdentitySettingsCallable() { + return stub.updateReportingIdentitySettingsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Looks up settings related to user-provided data for a property. diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java index f846a3b7501c..85e685dac97f 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java @@ -1168,6 +1168,13 @@ public UnaryCallSettings deleteCalculatedM .getReportingIdentitySettingsSettings(); } + /** Returns the object with the settings used for calls to updateReportingIdentitySettings. */ + public UnaryCallSettings + updateReportingIdentitySettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateReportingIdentitySettingsSettings(); + } + /** Returns the object with the settings used for calls to getUserProvidedDataSettings. */ public UnaryCallSettings getUserProvidedDataSettingsSettings() { @@ -2339,6 +2346,13 @@ public UnaryCallSettings.Builder deleteAdSenseL return getStubSettingsBuilder().getReportingIdentitySettingsSettings(); } + /** Returns the builder for the settings used for calls to updateReportingIdentitySettings. */ + public UnaryCallSettings.Builder< + UpdateReportingIdentitySettingsRequest, ReportingIdentitySettings> + updateReportingIdentitySettingsSettings() { + return getStubSettingsBuilder().updateReportingIdentitySettingsSettings(); + } + /** Returns the builder for the settings used for calls to getUserProvidedDataSettings. */ public UnaryCallSettings.Builder getUserProvidedDataSettingsSettings() { diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json index 3ca72cd0beb4..4d882a0094b0 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json @@ -463,6 +463,9 @@ "UpdateReportingDataAnnotation": { "methods": ["updateReportingDataAnnotation", "updateReportingDataAnnotation", "updateReportingDataAnnotationCallable"] }, + "UpdateReportingIdentitySettings": { + "methods": ["updateReportingIdentitySettings", "updateReportingIdentitySettings", "updateReportingIdentitySettingsCallable"] + }, "UpdateSKAdNetworkConversionValueSchema": { "methods": ["updateSKAdNetworkConversionValueSchema", "updateSKAdNetworkConversionValueSchema", "updateSKAdNetworkConversionValueSchemaCallable"] }, diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java index 95c4a8f885cf..faafdcd657df 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java @@ -271,6 +271,7 @@ import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; import com.google.analytics.admin.v1alpha.UpdateReportingDataAnnotationRequest; +import com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest; import com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest; @@ -1221,6 +1222,12 @@ public UnaryCallable deleteCalculatedMetri "Not implemented: getReportingIdentitySettingsCallable()"); } + public UnaryCallable + updateReportingIdentitySettingsCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateReportingIdentitySettingsCallable()"); + } + public UnaryCallable getUserProvidedDataSettingsCallable() { throw new UnsupportedOperationException( diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java index 542b462b37ac..af4b7a5b700f 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java @@ -273,6 +273,7 @@ import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; import com.google.analytics.admin.v1alpha.UpdateReportingDataAnnotationRequest; +import com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest; import com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest; @@ -731,6 +732,8 @@ public class AnalyticsAdminServiceStubSettings getSubpropertySyncConfigSettings; private final UnaryCallSettings getReportingIdentitySettingsSettings; + private final UnaryCallSettings + updateReportingIdentitySettingsSettings; private final UnaryCallSettings getUserProvidedDataSettingsSettings; @@ -3604,6 +3607,12 @@ public UnaryCallSettings deleteCalculatedM return getReportingIdentitySettingsSettings; } + /** Returns the object with the settings used for calls to updateReportingIdentitySettings. */ + public UnaryCallSettings + updateReportingIdentitySettingsSettings() { + return updateReportingIdentitySettingsSettings; + } + /** Returns the object with the settings used for calls to getUserProvidedDataSettings. */ public UnaryCallSettings getUserProvidedDataSettingsSettings() { @@ -3918,6 +3927,8 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx getSubpropertySyncConfigSettings = settingsBuilder.getSubpropertySyncConfigSettings().build(); getReportingIdentitySettingsSettings = settingsBuilder.getReportingIdentitySettingsSettings().build(); + updateReportingIdentitySettingsSettings = + settingsBuilder.updateReportingIdentitySettingsSettings().build(); getUserProvidedDataSettingsSettings = settingsBuilder.getUserProvidedDataSettingsSettings().build(); } @@ -4327,6 +4338,9 @@ public static class Builder private final UnaryCallSettings.Builder< GetReportingIdentitySettingsRequest, ReportingIdentitySettings> getReportingIdentitySettingsSettings; + private final UnaryCallSettings.Builder< + UpdateReportingIdentitySettingsRequest, ReportingIdentitySettings> + updateReportingIdentitySettingsSettings; private final UnaryCallSettings.Builder< GetUserProvidedDataSettingsRequest, UserProvidedDataSettings> getUserProvidedDataSettingsSettings; @@ -4561,6 +4575,7 @@ protected Builder(ClientContext clientContext) { updateSubpropertySyncConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getSubpropertySyncConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getReportingIdentitySettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateReportingIdentitySettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getUserProvidedDataSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = @@ -4719,6 +4734,7 @@ protected Builder(ClientContext clientContext) { updateSubpropertySyncConfigSettings, getSubpropertySyncConfigSettings, getReportingIdentitySettingsSettings, + updateReportingIdentitySettingsSettings, getUserProvidedDataSettingsSettings); initDefaults(this); } @@ -4921,6 +4937,8 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { getSubpropertySyncConfigSettings = settings.getSubpropertySyncConfigSettings.toBuilder(); getReportingIdentitySettingsSettings = settings.getReportingIdentitySettingsSettings.toBuilder(); + updateReportingIdentitySettingsSettings = + settings.updateReportingIdentitySettingsSettings.toBuilder(); getUserProvidedDataSettingsSettings = settings.getUserProvidedDataSettingsSettings.toBuilder(); @@ -5080,6 +5098,7 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { updateSubpropertySyncConfigSettings, getSubpropertySyncConfigSettings, getReportingIdentitySettingsSettings, + updateReportingIdentitySettingsSettings, getUserProvidedDataSettingsSettings); } @@ -5878,6 +5897,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 + .updateReportingIdentitySettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .getUserProvidedDataSettingsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -6952,6 +6976,13 @@ public UnaryCallSettings.Builder deleteAdSenseL return getReportingIdentitySettingsSettings; } + /** Returns the builder for the settings used for calls to updateReportingIdentitySettings. */ + public UnaryCallSettings.Builder< + UpdateReportingIdentitySettingsRequest, ReportingIdentitySettings> + updateReportingIdentitySettingsSettings() { + return updateReportingIdentitySettingsSettings; + } + /** Returns the builder for the settings used for calls to getUserProvidedDataSettings. */ public UnaryCallSettings.Builder getUserProvidedDataSettingsSettings() { diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java index 27f5287590e1..e3e10b82cb9c 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java @@ -271,6 +271,7 @@ import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; import com.google.analytics.admin.v1alpha.UpdateReportingDataAnnotationRequest; +import com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest; import com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest; @@ -2325,6 +2326,22 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor< + UpdateReportingIdentitySettingsRequest, ReportingIdentitySettings> + updateReportingIdentitySettingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateReportingIdentitySettings") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateReportingIdentitySettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ReportingIdentitySettings.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor< GetUserProvidedDataSettingsRequest, UserProvidedDataSettings> getUserProvidedDataSettingsMethodDescriptor = @@ -2686,6 +2703,8 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { getSubpropertySyncConfigCallable; private final UnaryCallable getReportingIdentitySettingsCallable; + private final UnaryCallable + updateReportingIdentitySettingsCallable; private final UnaryCallable getUserProvidedDataSettingsCallable; @@ -4573,6 +4592,20 @@ protected GrpcAnalyticsAdminServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings + updateReportingIdentitySettingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(updateReportingIdentitySettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "reporting_identity_settings.name", + String.valueOf(request.getReportingIdentitySettings().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings getUserProvidedDataSettingsTransportSettings = GrpcCallSettings @@ -5424,6 +5457,11 @@ protected GrpcAnalyticsAdminServiceStub( getReportingIdentitySettingsTransportSettings, settings.getReportingIdentitySettingsSettings(), clientContext); + this.updateReportingIdentitySettingsCallable = + callableFactory.createUnaryCallable( + updateReportingIdentitySettingsTransportSettings, + settings.updateReportingIdentitySettingsSettings(), + clientContext); this.getUserProvidedDataSettingsCallable = callableFactory.createUnaryCallable( getUserProvidedDataSettingsTransportSettings, @@ -6490,6 +6528,12 @@ public UnaryCallable deleteCalculatedMetri return getReportingIdentitySettingsCallable; } + @Override + public UnaryCallable + updateReportingIdentitySettingsCallable() { + return updateReportingIdentitySettingsCallable; + } + @Override public UnaryCallable getUserProvidedDataSettingsCallable() { diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java index 8b0a3a55b3e7..4ebcc1d0e25e 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java @@ -271,6 +271,7 @@ import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; import com.google.analytics.admin.v1alpha.UpdateReportingDataAnnotationRequest; +import com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest; import com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest; import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest; @@ -6275,6 +6276,53 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .build()) .build(); + private static final ApiMethodDescriptor< + UpdateReportingIdentitySettingsRequest, ReportingIdentitySettings> + updateReportingIdentitySettingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateReportingIdentitySettings") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{reportingIdentitySettings.name=properties/*/reportingIdentitySettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "reportingIdentitySettings.name", + request.getReportingIdentitySettings().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( + "reportingIdentitySettings", + request.getReportingIdentitySettings(), + true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ReportingIdentitySettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor< GetUserProvidedDataSettingsRequest, UserProvidedDataSettings> getUserProvidedDataSettingsMethodDescriptor = @@ -6658,6 +6706,8 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub getSubpropertySyncConfigCallable; private final UnaryCallable getReportingIdentitySettingsCallable; + private final UnaryCallable + updateReportingIdentitySettingsCallable; private final UnaryCallable getUserProvidedDataSettingsCallable; @@ -8739,6 +8789,21 @@ protected HttpJsonAnalyticsAdminServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + HttpJsonCallSettings + updateReportingIdentitySettingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(updateReportingIdentitySettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "reporting_identity_settings.name", + String.valueOf(request.getReportingIdentitySettings().getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings getUserProvidedDataSettingsTransportSettings = HttpJsonCallSettings @@ -9591,6 +9656,11 @@ protected HttpJsonAnalyticsAdminServiceStub( getReportingIdentitySettingsTransportSettings, settings.getReportingIdentitySettingsSettings(), clientContext); + this.updateReportingIdentitySettingsCallable = + callableFactory.createUnaryCallable( + updateReportingIdentitySettingsTransportSettings, + settings.updateReportingIdentitySettingsSettings(), + clientContext); this.getUserProvidedDataSettingsCallable = callableFactory.createUnaryCallable( getUserProvidedDataSettingsTransportSettings, @@ -9758,6 +9828,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateSubpropertySyncConfigMethodDescriptor); methodDescriptors.add(getSubpropertySyncConfigMethodDescriptor); methodDescriptors.add(getReportingIdentitySettingsMethodDescriptor); + methodDescriptors.add(updateReportingIdentitySettingsMethodDescriptor); methodDescriptors.add(getUserProvidedDataSettingsMethodDescriptor); return methodDescriptors; } @@ -10814,6 +10885,12 @@ public UnaryCallable deleteCalculatedMetri return getReportingIdentitySettingsCallable; } + @Override + public UnaryCallable + updateReportingIdentitySettingsCallable() { + return updateReportingIdentitySettingsCallable; + } + @Override public UnaryCallable getUserProvidedDataSettingsCallable() { 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 d26e54152eb1..b6b294ee94c0 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 @@ -5651,6 +5651,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest", "queryAllDeclaredConstructors": true, diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java index e9ef7a96429b..0a70882c781f 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java @@ -13606,6 +13606,59 @@ public void getReportingIdentitySettingsExceptionTest2() throws Exception { } } + @Test + public void updateReportingIdentitySettingsTest() throws Exception { + ReportingIdentitySettings expectedResponse = + ReportingIdentitySettings.newBuilder() + .setName(ReportingIdentitySettingsName.of("[PROPERTY]").toString()) + .build(); + mockService.addResponse(expectedResponse); + + ReportingIdentitySettings reportingIdentitySettings = + ReportingIdentitySettings.newBuilder() + .setName(ReportingIdentitySettingsName.of("[PROPERTY]").toString()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ReportingIdentitySettings actualResponse = + client.updateReportingIdentitySettings(reportingIdentitySettings, 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 updateReportingIdentitySettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ReportingIdentitySettings reportingIdentitySettings = + ReportingIdentitySettings.newBuilder() + .setName(ReportingIdentitySettingsName.of("[PROPERTY]").toString()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateReportingIdentitySettings(reportingIdentitySettings, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getUserProvidedDataSettingsTest() throws Exception { UserProvidedDataSettings expectedResponse = diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java index 604514faf54f..2b0f0b874137 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java @@ -11810,6 +11810,51 @@ public void getReportingIdentitySettingsExceptionTest2() throws Exception { } } + @Test + public void updateReportingIdentitySettingsTest() throws Exception { + ReportingIdentitySettings expectedResponse = + ReportingIdentitySettings.newBuilder() + .setName(ReportingIdentitySettingsName.of("[PROPERTY]").toString()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + ReportingIdentitySettings reportingIdentitySettings = + ReportingIdentitySettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + ReportingIdentitySettings actualResponse = + client.updateReportingIdentitySettings(reportingIdentitySettings, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateReportingIdentitySettingsRequest actualRequest = + ((UpdateReportingIdentitySettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(reportingIdentitySettings, actualRequest.getReportingIdentitySettings()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateReportingIdentitySettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + ReportingIdentitySettings reportingIdentitySettings = + ReportingIdentitySettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateReportingIdentitySettings(reportingIdentitySettings, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void getUserProvidedDataSettingsTest() throws Exception { UserProvidedDataSettings expectedResponse = diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java index bd67d75d7365..45e0a4f8a761 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java @@ -3439,6 +3439,29 @@ public void getReportingIdentitySettings( } } + @Override + public void updateReportingIdentitySettings( + UpdateReportingIdentitySettingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ReportingIdentitySettings) { + requests.add(request); + responseObserver.onNext(((ReportingIdentitySettings) 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 UpdateReportingIdentitySettings," + + " expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ReportingIdentitySettings.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getUserProvidedDataSettings( GetUserProvidedDataSettingsRequest request, diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java index f25c25559766..3b14b870daa9 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java +++ b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java @@ -7840,6 +7840,59 @@ private AnalyticsAdminServiceGrpc() {} return getGetReportingIdentitySettingsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest, + com.google.analytics.admin.v1alpha.ReportingIdentitySettings> + getUpdateReportingIdentitySettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateReportingIdentitySettings", + requestType = com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ReportingIdentitySettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest, + com.google.analytics.admin.v1alpha.ReportingIdentitySettings> + getUpdateReportingIdentitySettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest, + com.google.analytics.admin.v1alpha.ReportingIdentitySettings> + getUpdateReportingIdentitySettingsMethod; + if ((getUpdateReportingIdentitySettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateReportingIdentitySettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateReportingIdentitySettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateReportingIdentitySettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateReportingIdentitySettingsMethod = + getUpdateReportingIdentitySettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateReportingIdentitySettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .UpdateReportingIdentitySettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ReportingIdentitySettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateReportingIdentitySettings")) + .build(); + } + } + } + return getUpdateReportingIdentitySettingsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest, com.google.analytics.admin.v1alpha.UserProvidedDataSettings> @@ -10352,6 +10405,21 @@ default void getReportingIdentitySettings( getGetReportingIdentitySettingsMethod(), responseObserver); } + /** + * + * + *
            +     * Updates the reporting identity settings for this property.
            +     * 
            + */ + default void updateReportingIdentitySettings( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateReportingIdentitySettingsMethod(), responseObserver); + } + /** * * @@ -13112,6 +13180,23 @@ public void getReportingIdentitySettings( responseObserver); } + /** + * + * + *
            +     * Updates the reporting identity settings for this property.
            +     * 
            + */ + public void updateReportingIdentitySettings( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateReportingIdentitySettingsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -15466,6 +15551,21 @@ public com.google.analytics.admin.v1alpha.SubpropertySyncConfig getSubpropertySy getChannel(), getGetReportingIdentitySettingsMethod(), getCallOptions(), request); } + /** + * + * + *
            +     * Updates the reporting identity settings for this property.
            +     * 
            + */ + public com.google.analytics.admin.v1alpha.ReportingIdentitySettings + updateReportingIdentitySettings( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateReportingIdentitySettingsMethod(), getCallOptions(), request); + } + /** * * @@ -17664,6 +17764,20 @@ public com.google.analytics.admin.v1alpha.SubpropertySyncConfig getSubpropertySy getChannel(), getGetReportingIdentitySettingsMethod(), getCallOptions(), request); } + /** + * + * + *
            +     * Updates the reporting identity settings for this property.
            +     * 
            + */ + public com.google.analytics.admin.v1alpha.ReportingIdentitySettings + updateReportingIdentitySettings( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateReportingIdentitySettingsMethod(), getCallOptions(), request); + } + /** * * @@ -20051,6 +20165,22 @@ protected AnalyticsAdminServiceFutureStub build( getChannel().newCall(getGetReportingIdentitySettingsMethod(), getCallOptions()), request); } + /** + * + * + *
            +     * Updates the reporting identity settings for this property.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ReportingIdentitySettings> + updateReportingIdentitySettings( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateReportingIdentitySettingsMethod(), getCallOptions()), + request); + } + /** * * @@ -20221,7 +20351,8 @@ protected AnalyticsAdminServiceFutureStub build( private static final int METHODID_UPDATE_SUBPROPERTY_SYNC_CONFIG = 151; private static final int METHODID_GET_SUBPROPERTY_SYNC_CONFIG = 152; private static final int METHODID_GET_REPORTING_IDENTITY_SETTINGS = 153; - private static final int METHODID_GET_USER_PROVIDED_DATA_SETTINGS = 154; + private static final int METHODID_UPDATE_REPORTING_IDENTITY_SETTINGS = 154; + private static final int METHODID_GET_USER_PROVIDED_DATA_SETTINGS = 155; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -21229,6 +21360,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.analytics.admin.v1alpha.ReportingIdentitySettings>) responseObserver); break; + case METHODID_UPDATE_REPORTING_IDENTITY_SETTINGS: + serviceImpl.updateReportingIdentitySettings( + (com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ReportingIdentitySettings>) + responseObserver); + break; case METHODID_GET_USER_PROVIDED_DATA_SETTINGS: serviceImpl.getUserProvidedDataSettings( (com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) request, @@ -22317,6 +22455,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.analytics.admin.v1alpha.GetReportingIdentitySettingsRequest, com.google.analytics.admin.v1alpha.ReportingIdentitySettings>( service, METHODID_GET_REPORTING_IDENTITY_SETTINGS))) + .addMethod( + getUpdateReportingIdentitySettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest, + com.google.analytics.admin.v1alpha.ReportingIdentitySettings>( + service, METHODID_UPDATE_REPORTING_IDENTITY_SETTINGS))) .addMethod( getGetUserProvidedDataSettingsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -22529,6 +22674,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateSubpropertySyncConfigMethod()) .addMethod(getGetSubpropertySyncConfigMethod()) .addMethod(getGetReportingIdentitySettingsMethod()) + .addMethod(getUpdateReportingIdentitySettingsMethod()) .addMethod(getGetUserProvidedDataSettingsMethod()) .build(); } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java index 5dd30719a5e1..00a6e9aebd03 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java @@ -812,6 +812,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_GetReportingIdentitySettingsRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_GetReportingIdentitySettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -1593,912 +1597,926 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "askB\003\340A\001\"t\n#GetReportingIdentitySettings" + "Request\022M\n\004name\030\001 \001(\tB?\340A\002\372A9\n7analytics" + "admin.googleapis.com/ReportingIdentitySe" - + "ttings\"r\n\"GetUserProvidedDataSettingsReq" - + "uest\022L\n\004name\030\001 \001(\tB>\340A\002\372A8\n6analyticsadm" - + "in.googleapis.com/UserProvidedDataSettin" - + "gs2\210\231\002\n\025AnalyticsAdminService\022\223\001\n\nGetAcc" - + "ount\0221.google.analytics.admin.v1alpha.Ge" - + "tAccountRequest\032\'.google.analytics.admin" - + ".v1alpha.Account\")\332A\004name\202\323\344\223\002\034\022\032/v1alph" - + "a/{name=accounts/*}\022\224\001\n\014ListAccounts\0223.g" - + "oogle.analytics.admin.v1alpha.ListAccoun" - + "tsRequest\0324.google.analytics.admin.v1alp" - + "ha.ListAccountsResponse\"\031\202\323\344\223\002\023\022\021/v1alph" - + "a/accounts\022\210\001\n\rDeleteAccount\0224.google.an" - + "alytics.admin.v1alpha.DeleteAccountReque" - + "st\032\026.google.protobuf.Empty\")\332A\004name\202\323\344\223\002" - + "\034*\032/v1alpha/{name=accounts/*}\022\271\001\n\rUpdate" - + "Account\0224.google.analytics.admin.v1alpha" - + ".UpdateAccountRequest\032\'.google.analytics" - + ".admin.v1alpha.Account\"I\332A\023account,updat" - + "e_mask\202\323\344\223\002-2\"/v1alpha/{account.name=acc" - + "ounts/*}:\007account\022\314\001\n\026ProvisionAccountTi" - + "cket\022=.google.analytics.admin.v1alpha.Pr" - + "ovisionAccountTicketRequest\032>.google.ana" - + "lytics.admin.v1alpha.ProvisionAccountTic" - + "ketResponse\"3\202\323\344\223\002-\"(/v1alpha/accounts:p" - + "rovisionAccountTicket:\001*\022\264\001\n\024ListAccount" - + "Summaries\022;.google.analytics.admin.v1alp" - + "ha.ListAccountSummariesRequest\032<.google." - + "analytics.admin.v1alpha.ListAccountSumma" - + "riesResponse\"!\202\323\344\223\002\033\022\031/v1alpha/accountSu" - + "mmaries\022\230\001\n\013GetProperty\0222.google.analyti" - + "cs.admin.v1alpha.GetPropertyRequest\032(.go" - + "ogle.analytics.admin.v1alpha.Property\"+\332" - + "A\004name\202\323\344\223\002\036\022\034/v1alpha/{name=properties/" - + "*}\022\234\001\n\016ListProperties\0225.google.analytics" - + ".admin.v1alpha.ListPropertiesRequest\0326.g" - + "oogle.analytics.admin.v1alpha.ListProper" - + "tiesResponse\"\033\202\323\344\223\002\025\022\023/v1alpha/propertie" - + "s\022\243\001\n\016CreateProperty\0225.google.analytics." - + "admin.v1alpha.CreatePropertyRequest\032(.go" - + "ogle.analytics.admin.v1alpha.Property\"0\332" - + "A\010property\202\323\344\223\002\037\"\023/v1alpha/properties:\010p" - + "roperty\022\236\001\n\016DeleteProperty\0225.google.anal" - + "ytics.admin.v1alpha.DeletePropertyReques" - + "t\032(.google.analytics.admin.v1alpha.Prope" - + "rty\"+\332A\004name\202\323\344\223\002\036*\034/v1alpha/{name=prope" - + "rties/*}\022\301\001\n\016UpdateProperty\0225.google.ana" - + "lytics.admin.v1alpha.UpdatePropertyReque" - + "st\032(.google.analytics.admin.v1alpha.Prop" - + "erty\"N\332A\024property,update_mask\202\323\344\223\00212%/v1" - + "alpha/{property.name=properties/*}:\010prop" - + "erty\022\331\001\n\022CreateFirebaseLink\0229.google.ana" - + "lytics.admin.v1alpha.CreateFirebaseLinkR" - + "equest\032,.google.analytics.admin.v1alpha." - + "FirebaseLink\"Z\332A\024parent,firebase_link\202\323\344" - + "\223\002=\",/v1alpha/{parent=properties/*}/fire" - + "baseLinks:\rfirebase_link\022\244\001\n\022DeleteFireb" - + "aseLink\0229.google.analytics.admin.v1alpha" - + ".DeleteFirebaseLinkRequest\032\026.google.prot" - + "obuf.Empty\";\332A\004name\202\323\344\223\002.*,/v1alpha/{nam" - + "e=properties/*/firebaseLinks/*}\022\307\001\n\021List" - + "FirebaseLinks\0228.google.analytics.admin.v" - + "1alpha.ListFirebaseLinksRequest\0329.google" - + ".analytics.admin.v1alpha.ListFirebaseLin" - + "ksResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha/{p" - + "arent=properties/*}/firebaseLinks\022\303\001\n\020Ge" - + "tGlobalSiteTag\0227.google.analytics.admin." - + "v1alpha.GetGlobalSiteTagRequest\032-.google" - + ".analytics.admin.v1alpha.GlobalSiteTag\"G" - + "\332A\004name\202\323\344\223\002:\0228/v1alpha/{name=properties" - + "/*/dataStreams/*/globalSiteTag}\022\341\001\n\023Crea" - + "teGoogleAdsLink\022:.google.analytics.admin" - + ".v1alpha.CreateGoogleAdsLinkRequest\032-.go" - + "ogle.analytics.admin.v1alpha.GoogleAdsLi" - + "nk\"_\332A\026parent,google_ads_link\202\323\344\223\002@\"-/v1" - + "alpha/{parent=properties/*}/googleAdsLin", - "ks:\017google_ads_link\022\366\001\n\023UpdateGoogleAdsL" - + "ink\022:.google.analytics.admin.v1alpha.Upd" - + "ateGoogleAdsLinkRequest\032-.google.analyti" - + "cs.admin.v1alpha.GoogleAdsLink\"t\332A\033googl" - + "e_ads_link,update_mask\202\323\344\223\002P2=/v1alpha/{" - + "google_ads_link.name=properties/*/google" - + "AdsLinks/*}:\017google_ads_link\022\247\001\n\023DeleteG" - + "oogleAdsLink\022:.google.analytics.admin.v1" - + "alpha.DeleteGoogleAdsLinkRequest\032\026.googl" - + "e.protobuf.Empty\"<\332A\004name\202\323\344\223\002/*-/v1alph" - + "a/{name=properties/*/googleAdsLinks/*}\022\313" - + "\001\n\022ListGoogleAdsLinks\0229.google.analytics" - + ".admin.v1alpha.ListGoogleAdsLinksRequest" - + "\032:.google.analytics.admin.v1alpha.ListGo" - + "ogleAdsLinksResponse\">\332A\006parent\202\323\344\223\002/\022-/" - + "v1alpha/{parent=properties/*}/googleAdsL" - + "inks\022\313\001\n\026GetDataSharingSettings\022=.google" - + ".analytics.admin.v1alpha.GetDataSharingS" - + "ettingsRequest\0323.google.analytics.admin." - + "v1alpha.DataSharingSettings\"=\332A\004name\202\323\344\223" - + "\0020\022./v1alpha/{name=accounts/*/dataSharin" - + "gSettings}\022\366\001\n\034GetMeasurementProtocolSec" - + "ret\022C.google.analytics.admin.v1alpha.Get" - + "MeasurementProtocolSecretRequest\0329.googl" - + "e.analytics.admin.v1alpha.MeasurementPro" - + "tocolSecret\"V\332A\004name\202\323\344\223\002I\022G/v1alpha/{na" - + "me=properties/*/dataStreams/*/measuremen" - + "tProtocolSecrets/*}\022\211\002\n\036ListMeasurementP" - + "rotocolSecrets\022E.google.analytics.admin." - + "v1alpha.ListMeasurementProtocolSecretsRe" - + "quest\032F.google.analytics.admin.v1alpha.L" - + "istMeasurementProtocolSecretsResponse\"X\332" - + "A\006parent\202\323\344\223\002I\022G/v1alpha/{parent=propert" - + "ies/*/dataStreams/*}/measurementProtocol" - + "Secrets\022\270\002\n\037CreateMeasurementProtocolSec" - + "ret\022F.google.analytics.admin.v1alpha.Cre" - + "ateMeasurementProtocolSecretRequest\0329.go" - + "ogle.analytics.admin.v1alpha.Measurement" - + "ProtocolSecret\"\221\001\332A\"parent,measurement_p" - + "rotocol_secret\202\323\344\223\002f\"G/v1alpha/{parent=p" - + "roperties/*/dataStreams/*}/measurementPr" - + "otocolSecrets:\033measurement_protocol_secr" - + "et\022\331\001\n\037DeleteMeasurementProtocolSecret\022F" - + ".google.analytics.admin.v1alpha.DeleteMe" - + "asurementProtocolSecretRequest\032\026.google." - + "protobuf.Empty\"V\332A\004name\202\323\344\223\002I*G/v1alpha/" - + "{name=properties/*/dataStreams/*/measure" - + "mentProtocolSecrets/*}\022\332\002\n\037UpdateMeasure" - + "mentProtocolSecret\022F.google.analytics.ad" - + "min.v1alpha.UpdateMeasurementProtocolSec" - + "retRequest\0329.google.analytics.admin.v1al" - + "pha.MeasurementProtocolSecret\"\263\001\332A\'measu" - + "rement_protocol_secret,update_mask\202\323\344\223\002\202" - + "\0012c/v1alpha/{measurement_protocol_secret" - + ".name=properties/*/dataStreams/*/measure" - + "mentProtocolSecrets/*}:\033measurement_prot" - + "ocol_secret\022\367\001\n\035AcknowledgeUserDataColle" - + "ction\022D.google.analytics.admin.v1alpha.A" - + "cknowledgeUserDataCollectionRequest\032E.go" - + "ogle.analytics.admin.v1alpha.Acknowledge" - + "UserDataCollectionResponse\"I\202\323\344\223\002C\">/v1a" - + "lpha/{property=properties/*}:acknowledge" - + "UserDataCollection:\001*\022\221\002\n#GetSKAdNetwork" - + "ConversionValueSchema\022J.google.analytics" - + ".admin.v1alpha.GetSKAdNetworkConversionV" - + "alueSchemaRequest\032@.google.analytics.adm" - + "in.v1alpha.SKAdNetworkConversionValueSch" - + "ema\"\\\332A\004name\202\323\344\223\002O\022M/v1alpha/{name=prope" - + "rties/*/dataStreams/*/sKAdNetworkConvers" - + "ionValueSchema/*}\022\343\002\n&CreateSKAdNetworkC" - + "onversionValueSchema\022M.google.analytics." - + "admin.v1alpha.CreateSKAdNetworkConversio" - + "nValueSchemaRequest\032@.google.analytics.a" - + "dmin.v1alpha.SKAdNetworkConversionValueS" - + "chema\"\247\001\332A*parent,skadnetwork_conversion" - + "_value_schema\202\323\344\223\002t\"M/v1alpha/{parent=pr" - + "operties/*/dataStreams/*}/sKAdNetworkCon" - + "versionValueSchema:#skadnetwork_conversi" - + "on_value_schema\022\355\001\n&DeleteSKAdNetworkCon" - + "versionValueSchema\022M.google.analytics.ad" - + "min.v1alpha.DeleteSKAdNetworkConversionV" - + "alueSchemaRequest\032\026.google.protobuf.Empt" - + "y\"\\\332A\004name\202\323\344\223\002O*M/v1alpha/{name=propert" + + "ttings\"\303\001\n&UpdateReportingIdentitySettin" + + "gsRequest\022c\n\033reporting_identity_settings" + + "\030\001 \001(\01329.google.analytics.admin.v1alpha." + + "ReportingIdentitySettingsB\003\340A\002\0224\n\013update" + + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB" + + "\003\340A\001\"r\n\"GetUserProvidedDataSettingsReque" + + "st\022L\n\004name\030\001 \001(\tB>\340A\002\372A8\n6analyticsadmin" + + ".googleapis.com/UserProvidedDataSettings" + + "2\323\233\002\n\025AnalyticsAdminService\022\223\001\n\nGetAccou" + + "nt\0221.google.analytics.admin.v1alpha.GetA" + + "ccountRequest\032\'.google.analytics.admin.v" + + "1alpha.Account\")\332A\004name\202\323\344\223\002\034\022\032/v1alpha/" + + "{name=accounts/*}\022\224\001\n\014ListAccounts\0223.goo" + + "gle.analytics.admin.v1alpha.ListAccounts" + + "Request\0324.google.analytics.admin.v1alpha" + + ".ListAccountsResponse\"\031\202\323\344\223\002\023\022\021/v1alpha/" + + "accounts\022\210\001\n\rDeleteAccount\0224.google.anal" + + "ytics.admin.v1alpha.DeleteAccountRequest" + + "\032\026.google.protobuf.Empty\")\332A\004name\202\323\344\223\002\034*" + + "\032/v1alpha/{name=accounts/*}\022\271\001\n\rUpdateAc" + + "count\0224.google.analytics.admin.v1alpha.U" + + "pdateAccountRequest\032\'.google.analytics.a" + + "dmin.v1alpha.Account\"I\332A\023account,update_" + + "mask\202\323\344\223\002-2\"/v1alpha/{account.name=accou" + + "nts/*}:\007account\022\314\001\n\026ProvisionAccountTick" + + "et\022=.google.analytics.admin.v1alpha.Prov" + + "isionAccountTicketRequest\032>.google.analy" + + "tics.admin.v1alpha.ProvisionAccountTicke" + + "tResponse\"3\202\323\344\223\002-\"(/v1alpha/accounts:pro" + + "visionAccountTicket:\001*\022\264\001\n\024ListAccountSu" + + "mmaries\022;.google.analytics.admin.v1alpha" + + ".ListAccountSummariesRequest\032<.google.an" + + "alytics.admin.v1alpha.ListAccountSummari" + + "esResponse\"!\202\323\344\223\002\033\022\031/v1alpha/accountSumm" + + "aries\022\230\001\n\013GetProperty\0222.google.analytics" + + ".admin.v1alpha.GetPropertyRequest\032(.goog" + + "le.analytics.admin.v1alpha.Property\"+\332A\004" + + "name\202\323\344\223\002\036\022\034/v1alpha/{name=properties/*}" + + "\022\234\001\n\016ListProperties\0225.google.analytics.a" + + "dmin.v1alpha.ListPropertiesRequest\0326.goo" + + "gle.analytics.admin.v1alpha.ListProperti" + + "esResponse\"\033\202\323\344\223\002\025\022\023/v1alpha/properties\022" + + "\243\001\n\016CreateProperty\0225.google.analytics.ad" + + "min.v1alpha.CreatePropertyRequest\032(.goog" + + "le.analytics.admin.v1alpha.Property\"0\332A\010" + + "property\202\323\344\223\002\037\"\023/v1alpha/properties:\010pro" + + "perty\022\236\001\n\016DeleteProperty\0225.google.analyt" + + "ics.admin.v1alpha.DeletePropertyRequest\032" + + "(.google.analytics.admin.v1alpha.Propert" + + "y\"+\332A\004name\202\323\344\223\002\036*\034/v1alpha/{name=propert" + + "ies/*}\022\301\001\n\016UpdateProperty\0225.google.analy" + + "tics.admin.v1alpha.UpdatePropertyRequest" + + "\032(.google.analytics.admin.v1alpha.Proper" + + "ty\"N\332A\024property,update_mask\202\323\344\223\00212%/v1al" + + "pha/{property.name=properties/*}:\010proper" + + "ty\022\331\001\n\022CreateFirebaseLink\0229.google.analy" + + "tics.admin.v1alpha.CreateFirebaseLinkReq" + + "uest\032,.google.analytics.admin.v1alpha.Fi" + + "rebaseLink\"Z\332A\024parent,firebase_link\202\323\344\223\002" + + "=\",/v1alpha/{parent=properties/*}/fireba" + + "seLinks:\rfirebase_link\022\244\001\n\022DeleteFirebas" + + "eLink\0229.google.analytics.admin.v1alpha.D" + + "eleteFirebaseLinkRequest\032\026.google.protob" + + "uf.Empty\";\332A\004name\202\323\344\223\002.*,/v1alpha/{name=" + + "properties/*/firebaseLinks/*}\022\307\001\n\021ListFi" + + "rebaseLinks\0228.google.analytics.admin.v1a" + + "lpha.ListFirebaseLinksRequest\0329.google.a" + + "nalytics.admin.v1alpha.ListFirebaseLinks" + + "Response\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha/{par" + + "ent=properties/*}/firebaseLinks\022\303\001\n\020GetG" + + "lobalSiteTag\0227.google.analytics.admin.v1" + + "alpha.GetGlobalSiteTagRequest\032-.google.a" + + "nalytics.admin.v1alpha.GlobalSiteTag\"G\332A" + + "\004name\202\323\344\223\002:\0228/v1alpha/{name=properties/*" + + "/dataStreams/*/globalSiteTag}\022\341\001\n\023Create", + "GoogleAdsLink\022:.google.analytics.admin.v" + + "1alpha.CreateGoogleAdsLinkRequest\032-.goog" + + "le.analytics.admin.v1alpha.GoogleAdsLink" + + "\"_\332A\026parent,google_ads_link\202\323\344\223\002@\"-/v1al" + + "pha/{parent=properties/*}/googleAdsLinks" + + ":\017google_ads_link\022\366\001\n\023UpdateGoogleAdsLin" + + "k\022:.google.analytics.admin.v1alpha.Updat" + + "eGoogleAdsLinkRequest\032-.google.analytics" + + ".admin.v1alpha.GoogleAdsLink\"t\332A\033google_" + + "ads_link,update_mask\202\323\344\223\002P2=/v1alpha/{go" + + "ogle_ads_link.name=properties/*/googleAd" + + "sLinks/*}:\017google_ads_link\022\247\001\n\023DeleteGoo" + + "gleAdsLink\022:.google.analytics.admin.v1al" + + "pha.DeleteGoogleAdsLinkRequest\032\026.google." + + "protobuf.Empty\"<\332A\004name\202\323\344\223\002/*-/v1alpha/" + + "{name=properties/*/googleAdsLinks/*}\022\313\001\n" + + "\022ListGoogleAdsLinks\0229.google.analytics.a" + + "dmin.v1alpha.ListGoogleAdsLinksRequest\032:" + + ".google.analytics.admin.v1alpha.ListGoog" + + "leAdsLinksResponse\">\332A\006parent\202\323\344\223\002/\022-/v1" + + "alpha/{parent=properties/*}/googleAdsLin" + + "ks\022\313\001\n\026GetDataSharingSettings\022=.google.a" + + "nalytics.admin.v1alpha.GetDataSharingSet" + + "tingsRequest\0323.google.analytics.admin.v1" + + "alpha.DataSharingSettings\"=\332A\004name\202\323\344\223\0020" + + "\022./v1alpha/{name=accounts/*/dataSharingS" + + "ettings}\022\366\001\n\034GetMeasurementProtocolSecre" + + "t\022C.google.analytics.admin.v1alpha.GetMe" + + "asurementProtocolSecretRequest\0329.google." + + "analytics.admin.v1alpha.MeasurementProto" + + "colSecret\"V\332A\004name\202\323\344\223\002I\022G/v1alpha/{name" + + "=properties/*/dataStreams/*/measurementP" + + "rotocolSecrets/*}\022\211\002\n\036ListMeasurementPro" + + "tocolSecrets\022E.google.analytics.admin.v1" + + "alpha.ListMeasurementProtocolSecretsRequ" + + "est\032F.google.analytics.admin.v1alpha.Lis" + + "tMeasurementProtocolSecretsResponse\"X\332A\006" + + "parent\202\323\344\223\002I\022G/v1alpha/{parent=propertie" + + "s/*/dataStreams/*}/measurementProtocolSe" + + "crets\022\270\002\n\037CreateMeasurementProtocolSecre" + + "t\022F.google.analytics.admin.v1alpha.Creat" + + "eMeasurementProtocolSecretRequest\0329.goog" + + "le.analytics.admin.v1alpha.MeasurementPr" + + "otocolSecret\"\221\001\332A\"parent,measurement_pro" + + "tocol_secret\202\323\344\223\002f\"G/v1alpha/{parent=pro" + + "perties/*/dataStreams/*}/measurementProt" + + "ocolSecrets:\033measurement_protocol_secret" + + "\022\331\001\n\037DeleteMeasurementProtocolSecret\022F.g" + + "oogle.analytics.admin.v1alpha.DeleteMeas" + + "urementProtocolSecretRequest\032\026.google.pr" + + "otobuf.Empty\"V\332A\004name\202\323\344\223\002I*G/v1alpha/{n" + + "ame=properties/*/dataStreams/*/measureme" + + "ntProtocolSecrets/*}\022\332\002\n\037UpdateMeasureme" + + "ntProtocolSecret\022F.google.analytics.admi" + + "n.v1alpha.UpdateMeasurementProtocolSecre" + + "tRequest\0329.google.analytics.admin.v1alph" + + "a.MeasurementProtocolSecret\"\263\001\332A\'measure" + + "ment_protocol_secret,update_mask\202\323\344\223\002\202\0012" + + "c/v1alpha/{measurement_protocol_secret.n" + + "ame=properties/*/dataStreams/*/measureme" + + "ntProtocolSecrets/*}:\033measurement_protoc" + + "ol_secret\022\367\001\n\035AcknowledgeUserDataCollect" + + "ion\022D.google.analytics.admin.v1alpha.Ack" + + "nowledgeUserDataCollectionRequest\032E.goog" + + "le.analytics.admin.v1alpha.AcknowledgeUs" + + "erDataCollectionResponse\"I\202\323\344\223\002C\">/v1alp" + + "ha/{property=properties/*}:acknowledgeUs" + + "erDataCollection:\001*\022\221\002\n#GetSKAdNetworkCo" + + "nversionValueSchema\022J.google.analytics.a" + + "dmin.v1alpha.GetSKAdNetworkConversionVal" + + "ueSchemaRequest\032@.google.analytics.admin" + + ".v1alpha.SKAdNetworkConversionValueSchem" + + "a\"\\\332A\004name\202\323\344\223\002O\022M/v1alpha/{name=propert" + "ies/*/dataStreams/*/sKAdNetworkConversio" - + "nValueSchema/*}\022\215\003\n&UpdateSKAdNetworkCon" + + "nValueSchema/*}\022\343\002\n&CreateSKAdNetworkCon" + "versionValueSchema\022M.google.analytics.ad" - + "min.v1alpha.UpdateSKAdNetworkConversionV" + + "min.v1alpha.CreateSKAdNetworkConversionV" + "alueSchemaRequest\032@.google.analytics.adm" + "in.v1alpha.SKAdNetworkConversionValueSch" - + "ema\"\321\001\332A/skadnetwork_conversion_value_sc" - + "hema,update_mask\202\323\344\223\002\230\0012q/v1alpha/{skadn" - + "etwork_conversion_value_schema.name=prop" - + "erties/*/dataStreams/*/sKAdNetworkConver" - + "sionValueSchema/*}:#skadnetwork_conversi" - + "on_value_schema\022\244\002\n%ListSKAdNetworkConve" - + "rsionValueSchemas\022L.google.analytics.adm" - + "in.v1alpha.ListSKAdNetworkConversionValu" - + "eSchemasRequest\032M.google.analytics.admin" + + "ema\"\247\001\332A*parent,skadnetwork_conversion_v" + + "alue_schema\202\323\344\223\002t\"M/v1alpha/{parent=prop" + + "erties/*/dataStreams/*}/sKAdNetworkConve" + + "rsionValueSchema:#skadnetwork_conversion" + + "_value_schema\022\355\001\n&DeleteSKAdNetworkConve" + + "rsionValueSchema\022M.google.analytics.admi" + + "n.v1alpha.DeleteSKAdNetworkConversionVal" + + "ueSchemaRequest\032\026.google.protobuf.Empty\"" + + "\\\332A\004name\202\323\344\223\002O*M/v1alpha/{name=propertie" + + "s/*/dataStreams/*/sKAdNetworkConversionV" + + "alueSchema/*}\022\215\003\n&UpdateSKAdNetworkConve" + + "rsionValueSchema\022M.google.analytics.admi" + + "n.v1alpha.UpdateSKAdNetworkConversionVal" + + "ueSchemaRequest\032@.google.analytics.admin" + + ".v1alpha.SKAdNetworkConversionValueSchem" + + "a\"\321\001\332A/skadnetwork_conversion_value_sche" + + "ma,update_mask\202\323\344\223\002\230\0012q/v1alpha/{skadnet" + + "work_conversion_value_schema.name=proper" + + "ties/*/dataStreams/*/sKAdNetworkConversi" + + "onValueSchema/*}:#skadnetwork_conversion" + + "_value_schema\022\244\002\n%ListSKAdNetworkConvers" + + "ionValueSchemas\022L.google.analytics.admin" + ".v1alpha.ListSKAdNetworkConversionValueS" - + "chemasResponse\"^\332A\006parent\202\323\344\223\002O\022M/v1alph" - + "a/{parent=properties/*/dataStreams/*}/sK" - + "AdNetworkConversionValueSchema\022\344\001\n\031Searc" - + "hChangeHistoryEvents\022@.google.analytics." - + "admin.v1alpha.SearchChangeHistoryEventsR" - + "equest\032A.google.analytics.admin.v1alpha." - + "SearchChangeHistoryEventsResponse\"B\202\323\344\223\002" - + "<\"7/v1alpha/{account=accounts/*}:searchC" - + "hangeHistoryEvents:\001*\022\325\001\n\030GetGoogleSigna" - + "lsSettings\022?.google.analytics.admin.v1al" - + "pha.GetGoogleSignalsSettingsRequest\0325.go" - + "ogle.analytics.admin.v1alpha.GoogleSigna" - + "lsSettings\"A\332A\004name\202\323\344\223\0024\0222/v1alpha/{nam" - + "e=properties/*/googleSignalsSettings}\022\254\002" - + "\n\033UpdateGoogleSignalsSettings\022B.google.a" - + "nalytics.admin.v1alpha.UpdateGoogleSigna" - + "lsSettingsRequest\0325.google.analytics.adm" - + "in.v1alpha.GoogleSignalsSettings\"\221\001\332A#go" - + "ogle_signals_settings,update_mask\202\323\344\223\002e2" - + "J/v1alpha/{google_signals_settings.name=" - + "properties/*/googleSignalsSettings}:\027goo" - + "gle_signals_settings\022\356\001\n\025CreateConversio" - + "nEvent\022<.google.analytics.admin.v1alpha." - + "CreateConversionEventRequest\032/.google.an" - + "alytics.admin.v1alpha.ConversionEvent\"f\210" - + "\002\001\332A\027parent,conversion_event\202\323\344\223\002C\"//v1a" - + "lpha/{parent=properties/*}/conversionEve" - + "nts:\020conversion_event\022\204\002\n\025UpdateConversi" - + "onEvent\022<.google.analytics.admin.v1alpha" - + ".UpdateConversionEventRequest\032/.google.a" - + "nalytics.admin.v1alpha.ConversionEvent\"|" - + "\210\002\001\332A\034conversion_event,update_mask\202\323\344\223\002T" - + "2@/v1alpha/{conversion_event.name=proper" - + "ties/*/conversionEvents/*}:\020conversion_e" - + "vent\022\303\001\n\022GetConversionEvent\0229.google.ana" - + "lytics.admin.v1alpha.GetConversionEventR" - + "equest\032/.google.analytics.admin.v1alpha." - + "ConversionEvent\"A\210\002\001\332A\004name\202\323\344\223\0021\022//v1al" - + "pha/{name=properties/*/conversionEvents/" - + "*}\022\260\001\n\025DeleteConversionEvent\022<.google.an" - + "alytics.admin.v1alpha.DeleteConversionEv" - + "entRequest\032\026.google.protobuf.Empty\"A\210\002\001\332" - + "A\004name\202\323\344\223\0021*//v1alpha/{name=properties/" - + "*/conversionEvents/*}\022\326\001\n\024ListConversion" - + "Events\022;.google.analytics.admin.v1alpha." - + "ListConversionEventsRequest\032<.google.ana" - + "lytics.admin.v1alpha.ListConversionEvent" - + "sResponse\"C\210\002\001\332A\006parent\202\323\344\223\0021\022//v1alpha/" - + "{parent=properties/*}/conversionEvents\022\301" - + "\001\n\016CreateKeyEvent\0225.google.analytics.adm" - + "in.v1alpha.CreateKeyEventRequest\032(.googl" - + "e.analytics.admin.v1alpha.KeyEvent\"N\332A\020p" - + "arent,key_event\202\323\344\223\0025\"(/v1alpha/{parent=" - + "properties/*}/keyEvents:\tkey_event\022\320\001\n\016U" - + "pdateKeyEvent\0225.google.analytics.admin.v" - + "1alpha.UpdateKeyEventRequest\032(.google.an" - + "alytics.admin.v1alpha.KeyEvent\"]\332A\025key_e" - + "vent,update_mask\202\323\344\223\002?22/v1alpha/{key_ev" - + "ent.name=properties/*/keyEvents/*}:\tkey_" - + "event\022\244\001\n\013GetKeyEvent\0222.google.analytics" - + ".admin.v1alpha.GetKeyEventRequest\032(.goog" - + "le.analytics.admin.v1alpha.KeyEvent\"7\332A\004" - + "name\202\323\344\223\002*\022(/v1alpha/{name=properties/*/" - + "keyEvents/*}\022\230\001\n\016DeleteKeyEvent\0225.google" - + ".analytics.admin.v1alpha.DeleteKeyEventR" - + "equest\032\026.google.protobuf.Empty\"7\332A\004name\202" - + "\323\344\223\002**(/v1alpha/{name=properties/*/keyEv" - + "ents/*}\022\267\001\n\rListKeyEvents\0224.google.analy" - + "tics.admin.v1alpha.ListKeyEventsRequest\032" - + "5.google.analytics.admin.v1alpha.ListKey" - + "EventsResponse\"9\332A\006parent\202\323\344\223\002*\022(/v1alph" - + "a/{parent=properties/*}/keyEvents\022\370\001\n Ge" - + "tDisplayVideo360AdvertiserLink\022G.google." - + "analytics.admin.v1alpha.GetDisplayVideo3" - + "60AdvertiserLinkRequest\032=.google.analyti" - + "cs.admin.v1alpha.DisplayVideo360Advertis" - + "erLink\"L\332A\004name\202\323\344\223\002?\022=/v1alpha/{name=pr" - + "operties/*/displayVideo360AdvertiserLink" - + "s/*}\022\213\002\n\"ListDisplayVideo360AdvertiserLi" - + "nks\022I.google.analytics.admin.v1alpha.Lis" - + "tDisplayVideo360AdvertiserLinksRequest\032J" + + "chemasRequest\032M.google.analytics.admin.v" + + "1alpha.ListSKAdNetworkConversionValueSch" + + "emasResponse\"^\332A\006parent\202\323\344\223\002O\022M/v1alpha/" + + "{parent=properties/*/dataStreams/*}/sKAd" + + "NetworkConversionValueSchema\022\344\001\n\031SearchC" + + "hangeHistoryEvents\022@.google.analytics.ad" + + "min.v1alpha.SearchChangeHistoryEventsReq" + + "uest\032A.google.analytics.admin.v1alpha.Se" + + "archChangeHistoryEventsResponse\"B\202\323\344\223\002<\"" + + "7/v1alpha/{account=accounts/*}:searchCha" + + "ngeHistoryEvents:\001*\022\325\001\n\030GetGoogleSignals" + + "Settings\022?.google.analytics.admin.v1alph" + + "a.GetGoogleSignalsSettingsRequest\0325.goog" + + "le.analytics.admin.v1alpha.GoogleSignals" + + "Settings\"A\332A\004name\202\323\344\223\0024\0222/v1alpha/{name=" + + "properties/*/googleSignalsSettings}\022\254\002\n\033" + + "UpdateGoogleSignalsSettings\022B.google.ana" + + "lytics.admin.v1alpha.UpdateGoogleSignals" + + "SettingsRequest\0325.google.analytics.admin" + + ".v1alpha.GoogleSignalsSettings\"\221\001\332A#goog" + + "le_signals_settings,update_mask\202\323\344\223\002e2J/" + + "v1alpha/{google_signals_settings.name=pr" + + "operties/*/googleSignalsSettings}:\027googl" + + "e_signals_settings\022\356\001\n\025CreateConversionE" + + "vent\022<.google.analytics.admin.v1alpha.Cr" + + "eateConversionEventRequest\032/.google.anal" + + "ytics.admin.v1alpha.ConversionEvent\"f\210\002\001" + + "\332A\027parent,conversion_event\202\323\344\223\002C\"//v1alp" + + "ha/{parent=properties/*}/conversionEvent" + + "s:\020conversion_event\022\204\002\n\025UpdateConversion" + + "Event\022<.google.analytics.admin.v1alpha.U" + + "pdateConversionEventRequest\032/.google.ana" + + "lytics.admin.v1alpha.ConversionEvent\"|\210\002" + + "\001\332A\034conversion_event,update_mask\202\323\344\223\002T2@" + + "/v1alpha/{conversion_event.name=properti" + + "es/*/conversionEvents/*}:\020conversion_eve" + + "nt\022\303\001\n\022GetConversionEvent\0229.google.analy" + + "tics.admin.v1alpha.GetConversionEventReq" + + "uest\032/.google.analytics.admin.v1alpha.Co" + + "nversionEvent\"A\210\002\001\332A\004name\202\323\344\223\0021\022//v1alph" + + "a/{name=properties/*/conversionEvents/*}" + + "\022\260\001\n\025DeleteConversionEvent\022<.google.anal" + + "ytics.admin.v1alpha.DeleteConversionEven" + + "tRequest\032\026.google.protobuf.Empty\"A\210\002\001\332A\004" + + "name\202\323\344\223\0021*//v1alpha/{name=properties/*/" + + "conversionEvents/*}\022\326\001\n\024ListConversionEv" + + "ents\022;.google.analytics.admin.v1alpha.Li" + + "stConversionEventsRequest\032<.google.analy" + + "tics.admin.v1alpha.ListConversionEventsR" + + "esponse\"C\210\002\001\332A\006parent\202\323\344\223\0021\022//v1alpha/{p" + + "arent=properties/*}/conversionEvents\022\301\001\n" + + "\016CreateKeyEvent\0225.google.analytics.admin" + + ".v1alpha.CreateKeyEventRequest\032(.google." + + "analytics.admin.v1alpha.KeyEvent\"N\332A\020par" + + "ent,key_event\202\323\344\223\0025\"(/v1alpha/{parent=pr" + + "operties/*}/keyEvents:\tkey_event\022\320\001\n\016Upd" + + "ateKeyEvent\0225.google.analytics.admin.v1a" + + "lpha.UpdateKeyEventRequest\032(.google.anal" + + "ytics.admin.v1alpha.KeyEvent\"]\332A\025key_eve" + + "nt,update_mask\202\323\344\223\002?22/v1alpha/{key_even" + + "t.name=properties/*/keyEvents/*}:\tkey_ev" + + "ent\022\244\001\n\013GetKeyEvent\0222.google.analytics.a" + + "dmin.v1alpha.GetKeyEventRequest\032(.google" + + ".analytics.admin.v1alpha.KeyEvent\"7\332A\004na" + + "me\202\323\344\223\002*\022(/v1alpha/{name=properties/*/ke" + + "yEvents/*}\022\230\001\n\016DeleteKeyEvent\0225.google.a" + + "nalytics.admin.v1alpha.DeleteKeyEventReq" + + "uest\032\026.google.protobuf.Empty\"7\332A\004name\202\323\344" + + "\223\002**(/v1alpha/{name=properties/*/keyEven" + + "ts/*}\022\267\001\n\rListKeyEvents\0224.google.analyti" + + "cs.admin.v1alpha.ListKeyEventsRequest\0325." + + "google.analytics.admin.v1alpha.ListKeyEv" + + "entsResponse\"9\332A\006parent\202\323\344\223\002*\022(/v1alpha/" + + "{parent=properties/*}/keyEvents\022\370\001\n GetD" + + "isplayVideo360AdvertiserLink\022G.google.an" + + "alytics.admin.v1alpha.GetDisplayVideo360" + + "AdvertiserLinkRequest\032=.google.analytics" + + ".admin.v1alpha.DisplayVideo360Advertiser" + + "Link\"L\332A\004name\202\323\344\223\002?\022=/v1alpha/{name=prop" + + "erties/*/displayVideo360AdvertiserLinks/" + + "*}\022\213\002\n\"ListDisplayVideo360AdvertiserLink" + + "s\022I.google.analytics.admin.v1alpha.ListD" + + "isplayVideo360AdvertiserLinksRequest\032J.g" + + "oogle.analytics.admin.v1alpha.ListDispla" + + "yVideo360AdvertiserLinksResponse\"N\332A\006par" + + "ent\202\323\344\223\002?\022=/v1alpha/{parent=properties/*" + + "}/displayVideo360AdvertiserLinks\022\306\002\n#Cre" + + "ateDisplayVideo360AdvertiserLink\022J.googl" + + "e.analytics.admin.v1alpha.CreateDisplayV" + + "ideo360AdvertiserLinkRequest\032=.google.an" + + "alytics.admin.v1alpha.DisplayVideo360Adv" + + "ertiserLink\"\223\001\332A(parent,display_video_36" + + "0_advertiser_link\202\323\344\223\002b\"=/v1alpha/{paren" + + "t=properties/*}/displayVideo360Advertise" + + "rLinks:!display_video_360_advertiser_lin" + + "k\022\327\001\n#DeleteDisplayVideo360AdvertiserLin" + + "k\022J.google.analytics.admin.v1alpha.Delet" + + "eDisplayVideo360AdvertiserLinkRequest\032\026." + + "google.protobuf.Empty\"L\332A\004name\202\323\344\223\002?*=/v" + + "1alpha/{name=properties/*/displayVideo36" + + "0AdvertiserLinks/*}\022\356\002\n#UpdateDisplayVid" + + "eo360AdvertiserLink\022J.google.analytics.a" + + "dmin.v1alpha.UpdateDisplayVideo360Advert" + + "iserLinkRequest\032=.google.analytics.admin" + + ".v1alpha.DisplayVideo360AdvertiserLink\"\273" + + "\001\332A-display_video_360_advertiser_link,up" + + "date_mask\202\323\344\223\002\204\0012_/v1alpha/{display_vide" + + "o_360_advertiser_link.name=properties/*/" + + "displayVideo360AdvertiserLinks/*}:!displ" + + "ay_video_360_advertiser_link\022\230\002\n(GetDisp" + + "layVideo360AdvertiserLinkProposal\022O.goog" + + "le.analytics.admin.v1alpha.GetDisplayVid" + + "eo360AdvertiserLinkProposalRequest\032E.goo" + + "gle.analytics.admin.v1alpha.DisplayVideo" + + "360AdvertiserLinkProposal\"T\332A\004name\202\323\344\223\002G" + + "\022E/v1alpha/{name=properties/*/displayVid" + + "eo360AdvertiserLinkProposals/*}\022\253\002\n*List" + + "DisplayVideo360AdvertiserLinkProposals\022Q" + ".google.analytics.admin.v1alpha.ListDisp" - + "layVideo360AdvertiserLinksResponse\"N\332A\006p" - + "arent\202\323\344\223\002?\022=/v1alpha/{parent=properties" - + "/*}/displayVideo360AdvertiserLinks\022\306\002\n#C" - + "reateDisplayVideo360AdvertiserLink\022J.goo" - + "gle.analytics.admin.v1alpha.CreateDispla" - + "yVideo360AdvertiserLinkRequest\032=.google." - + "analytics.admin.v1alpha.DisplayVideo360A" - + "dvertiserLink\"\223\001\332A(parent,display_video_" - + "360_advertiser_link\202\323\344\223\002b\"=/v1alpha/{par" - + "ent=properties/*}/displayVideo360Adverti" - + "serLinks:!display_video_360_advertiser_l" - + "ink\022\327\001\n#DeleteDisplayVideo360AdvertiserL" - + "ink\022J.google.analytics.admin.v1alpha.Del" - + "eteDisplayVideo360AdvertiserLinkRequest\032" - + "\026.google.protobuf.Empty\"L\332A\004name\202\323\344\223\002?*=" - + "/v1alpha/{name=properties/*/displayVideo" - + "360AdvertiserLinks/*}\022\356\002\n#UpdateDisplayV" - + "ideo360AdvertiserLink\022J.google.analytics" - + ".admin.v1alpha.UpdateDisplayVideo360Adve" - + "rtiserLinkRequest\032=.google.analytics.adm" - + "in.v1alpha.DisplayVideo360AdvertiserLink" - + "\"\273\001\332A-display_video_360_advertiser_link," - + "update_mask\202\323\344\223\002\204\0012_/v1alpha/{display_vi" - + "deo_360_advertiser_link.name=properties/" - + "*/displayVideo360AdvertiserLinks/*}:!dis" - + "play_video_360_advertiser_link\022\230\002\n(GetDi" - + "splayVideo360AdvertiserLinkProposal\022O.go" - + "ogle.analytics.admin.v1alpha.GetDisplayV" + + "layVideo360AdvertiserLinkProposalsReques" + + "t\032R.google.analytics.admin.v1alpha.ListD" + + "isplayVideo360AdvertiserLinkProposalsRes" + + "ponse\"V\332A\006parent\202\323\344\223\002G\022E/v1alpha/{parent" + + "=properties/*}/displayVideo360Advertiser" + + "LinkProposals\022\370\002\n+CreateDisplayVideo360A" + + "dvertiserLinkProposal\022R.google.analytics" + + ".admin.v1alpha.CreateDisplayVideo360Adve" + + "rtiserLinkProposalRequest\032E.google.analy" + + "tics.admin.v1alpha.DisplayVideo360Advert" + + "iserLinkProposal\"\255\001\332A1parent,display_vid" + + "eo_360_advertiser_link_proposal\202\323\344\223\002s\"E/" + + "v1alpha/{parent=properties/*}/displayVid" + + "eo360AdvertiserLinkProposals:*display_vi" + + "deo_360_advertiser_link_proposal\022\357\001\n+Del" + + "eteDisplayVideo360AdvertiserLinkProposal" + + "\022R.google.analytics.admin.v1alpha.Delete" + + "DisplayVideo360AdvertiserLinkProposalReq" + + "uest\032\026.google.protobuf.Empty\"T\332A\004name\202\323\344" + + "\223\002G*E/v1alpha/{name=properties/*/display" + + "Video360AdvertiserLinkProposals/*}\022\263\002\n,A" + + "pproveDisplayVideo360AdvertiserLinkPropo" + + "sal\022S.google.analytics.admin.v1alpha.App" + + "roveDisplayVideo360AdvertiserLinkProposa" + + "lRequest\032T.google.analytics.admin.v1alph" + + "a.ApproveDisplayVideo360AdvertiserLinkPr" + + "oposalResponse\"X\202\323\344\223\002R\"M/v1alpha/{name=p" + + "roperties/*/displayVideo360AdvertiserLin" + + "kProposals/*}:approve:\001*\022\241\002\n+CancelDispl" + + "ayVideo360AdvertiserLinkProposal\022R.googl" + + "e.analytics.admin.v1alpha.CancelDisplayV" + "ideo360AdvertiserLinkProposalRequest\032E.g" + "oogle.analytics.admin.v1alpha.DisplayVid" - + "eo360AdvertiserLinkProposal\"T\332A\004name\202\323\344\223" - + "\002G\022E/v1alpha/{name=properties/*/displayV" - + "ideo360AdvertiserLinkProposals/*}\022\253\002\n*Li" - + "stDisplayVideo360AdvertiserLinkProposals" - + "\022Q.google.analytics.admin.v1alpha.ListDi" - + "splayVideo360AdvertiserLinkProposalsRequ" - + "est\032R.google.analytics.admin.v1alpha.Lis" - + "tDisplayVideo360AdvertiserLinkProposalsR" - + "esponse\"V\332A\006parent\202\323\344\223\002G\022E/v1alpha/{pare" - + "nt=properties/*}/displayVideo360Advertis" - + "erLinkProposals\022\370\002\n+CreateDisplayVideo36" - + "0AdvertiserLinkProposal\022R.google.analyti" - + "cs.admin.v1alpha.CreateDisplayVideo360Ad" - + "vertiserLinkProposalRequest\032E.google.ana" - + "lytics.admin.v1alpha.DisplayVideo360Adve" - + "rtiserLinkProposal\"\255\001\332A1parent,display_v" - + "ideo_360_advertiser_link_proposal\202\323\344\223\002s\"" - + "E/v1alpha/{parent=properties/*}/displayV" - + "ideo360AdvertiserLinkProposals:*display_" - + "video_360_advertiser_link_proposal\022\357\001\n+D" - + "eleteDisplayVideo360AdvertiserLinkPropos" - + "al\022R.google.analytics.admin.v1alpha.Dele" - + "teDisplayVideo360AdvertiserLinkProposalR" - + "equest\032\026.google.protobuf.Empty\"T\332A\004name\202" - + "\323\344\223\002G*E/v1alpha/{name=properties/*/displ" - + "ayVideo360AdvertiserLinkProposals/*}\022\263\002\n" - + ",ApproveDisplayVideo360AdvertiserLinkPro" - + "posal\022S.google.analytics.admin.v1alpha.A" - + "pproveDisplayVideo360AdvertiserLinkPropo" - + "salRequest\032T.google.analytics.admin.v1al" - + "pha.ApproveDisplayVideo360AdvertiserLink" - + "ProposalResponse\"X\202\323\344\223\002R\"M/v1alpha/{name" - + "=properties/*/displayVideo360AdvertiserL" - + "inkProposals/*}:approve:\001*\022\241\002\n+CancelDis" - + "playVideo360AdvertiserLinkProposal\022R.goo" - + "gle.analytics.admin.v1alpha.CancelDispla" - + "yVideo360AdvertiserLinkProposalRequest\032E" - + ".google.analytics.admin.v1alpha.DisplayV" - + "ideo360AdvertiserLinkProposal\"W\202\323\344\223\002Q\"L/" - + "v1alpha/{name=properties/*/displayVideo3" - + "60AdvertiserLinkProposals/*}:cancel:\001*\022\353" - + "\001\n\025CreateCustomDimension\022<.google.analyt" - + "ics.admin.v1alpha.CreateCustomDimensionR" - + "equest\032/.google.analytics.admin.v1alpha." - + "CustomDimension\"c\332A\027parent,custom_dimens" - + "ion\202\323\344\223\002C\"//v1alpha/{parent=properties/*" - + "}/customDimensions:\020custom_dimension\022\201\002\n" - + "\025UpdateCustomDimension\022<.google.analytic" - + "s.admin.v1alpha.UpdateCustomDimensionReq" + + "eo360AdvertiserLinkProposal\"W\202\323\344\223\002Q\"L/v1" + + "alpha/{name=properties/*/displayVideo360" + + "AdvertiserLinkProposals/*}:cancel:\001*\022\353\001\n" + + "\025CreateCustomDimension\022<.google.analytic" + + "s.admin.v1alpha.CreateCustomDimensionReq" + "uest\032/.google.analytics.admin.v1alpha.Cu" - + "stomDimension\"y\332A\034custom_dimension,updat" - + "e_mask\202\323\344\223\002T2@/v1alpha/{custom_dimension" - + ".name=properties/*/customDimensions/*}:\020" - + "custom_dimension\022\323\001\n\024ListCustomDimension" - + "s\022;.google.analytics.admin.v1alpha.ListC" - + "ustomDimensionsRequest\032<.google.analytic" - + "s.admin.v1alpha.ListCustomDimensionsResp" - + "onse\"@\332A\006parent\202\323\344\223\0021\022//v1alpha/{parent=" - + "properties/*}/customDimensions\022\272\001\n\026Archi" - + "veCustomDimension\022=.google.analytics.adm" - + "in.v1alpha.ArchiveCustomDimensionRequest" - + "\032\026.google.protobuf.Empty\"I\332A\004name\202\323\344\223\002<\"" - + "7/v1alpha/{name=properties/*/customDimen" - + "sions/*}:archive:\001*\022\300\001\n\022GetCustomDimensi" - + "on\0229.google.analytics.admin.v1alpha.GetC" - + "ustomDimensionRequest\032/.google.analytics" - + ".admin.v1alpha.CustomDimension\">\332A\004name\202" - + "\323\344\223\0021\022//v1alpha/{name=properties/*/custo" - + "mDimensions/*}\022\331\001\n\022CreateCustomMetric\0229." - + "google.analytics.admin.v1alpha.CreateCus" - + "tomMetricRequest\032,.google.analytics.admi" - + "n.v1alpha.CustomMetric\"Z\332A\024parent,custom" - + "_metric\202\323\344\223\002=\",/v1alpha/{parent=properti" - + "es/*}/customMetrics:\rcustom_metric\022\354\001\n\022U" - + "pdateCustomMetric\0229.google.analytics.adm" - + "in.v1alpha.UpdateCustomMetricRequest\032,.g" - + "oogle.analytics.admin.v1alpha.CustomMetr" - + "ic\"m\332A\031custom_metric,update_mask\202\323\344\223\002K2:" - + "/v1alpha/{custom_metric.name=properties/" - + "*/customMetrics/*}:\rcustom_metric\022\307\001\n\021Li" - + "stCustomMetrics\0228.google.analytics.admin" - + ".v1alpha.ListCustomMetricsRequest\0329.goog" - + "le.analytics.admin.v1alpha.ListCustomMet" - + "ricsResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha/" - + "{parent=properties/*}/customMetrics\022\261\001\n\023" - + "ArchiveCustomMetric\022:.google.analytics.a" - + "dmin.v1alpha.ArchiveCustomMetricRequest\032" - + "\026.google.protobuf.Empty\"F\332A\004name\202\323\344\223\0029\"4" - + "/v1alpha/{name=properties/*/customMetric" - + "s/*}:archive:\001*\022\264\001\n\017GetCustomMetric\0226.go" - + "ogle.analytics.admin.v1alpha.GetCustomMe" - + "tricRequest\032,.google.analytics.admin.v1a" - + "lpha.CustomMetric\";\332A\004name\202\323\344\223\002.\022,/v1alp" - + "ha/{name=properties/*/customMetrics/*}\022\325" - + "\001\n\030GetDataRetentionSettings\022?.google.ana" - + "lytics.admin.v1alpha.GetDataRetentionSet" - + "tingsRequest\0325.google.analytics.admin.v1" - + "alpha.DataRetentionSettings\"A\332A\004name\202\323\344\223" - + "\0024\0222/v1alpha/{name=properties/*/dataRete" - + "ntionSettings}\022\254\002\n\033UpdateDataRetentionSe" - + "ttings\022B.google.analytics.admin.v1alpha." - + "UpdateDataRetentionSettingsRequest\0325.goo" - + "gle.analytics.admin.v1alpha.DataRetentio" - + "nSettings\"\221\001\332A#data_retention_settings,u" - + "pdate_mask\202\323\344\223\002e2J/v1alpha/{data_retenti" - + "on_settings.name=properties/*/dataRetent" - + "ionSettings}:\027data_retention_settings\022\315\001" - + "\n\020CreateDataStream\0227.google.analytics.ad" - + "min.v1alpha.CreateDataStreamRequest\032*.go" - + "ogle.analytics.admin.v1alpha.DataStream\"" - + "T\332A\022parent,data_stream\202\323\344\223\0029\"*/v1alpha/{" - + "parent=properties/*}/dataStreams:\013data_s" - + "tream\022\236\001\n\020DeleteDataStream\0227.google.anal" - + "ytics.admin.v1alpha.DeleteDataStreamRequ" - + "est\032\026.google.protobuf.Empty\"9\332A\004name\202\323\344\223" - + "\002,**/v1alpha/{name=properties/*/dataStre" - + "ams/*}\022\336\001\n\020UpdateDataStream\0227.google.ana" - + "lytics.admin.v1alpha.UpdateDataStreamReq" - + "uest\032*.google.analytics.admin.v1alpha.Da" - + "taStream\"e\332A\027data_stream,update_mask\202\323\344\223" - + "\002E26/v1alpha/{data_stream.name=propertie" - + "s/*/dataStreams/*}:\013data_stream\022\277\001\n\017List" - + "DataStreams\0226.google.analytics.admin.v1a" - + "lpha.ListDataStreamsRequest\0327.google.ana" - + "lytics.admin.v1alpha.ListDataStreamsResp" - + "onse\";\332A\006parent\202\323\344\223\002,\022*/v1alpha/{parent=" - + "properties/*}/dataStreams\022\254\001\n\rGetDataStr" - + "eam\0224.google.analytics.admin.v1alpha.Get" - + "DataStreamRequest\032*.google.analytics.adm" - + "in.v1alpha.DataStream\"9\332A\004name\202\323\344\223\002,\022*/v" - + "1alpha/{name=properties/*/dataStreams/*}" - + "\022\244\001\n\013GetAudience\0222.google.analytics.admi" - + "n.v1alpha.GetAudienceRequest\032(.google.an" - + "alytics.admin.v1alpha.Audience\"7\332A\004name\202" - + "\323\344\223\002*\022(/v1alpha/{name=properties/*/audie" - + "nces/*}\022\267\001\n\rListAudiences\0224.google.analy" - + "tics.admin.v1alpha.ListAudiencesRequest\032" - + "5.google.analytics.admin.v1alpha.ListAud" - + "iencesResponse\"9\332A\006parent\202\323\344\223\002*\022(/v1alph" - + "a/{parent=properties/*}/audiences\022\277\001\n\016Cr" - + "eateAudience\0225.google.analytics.admin.v1" - + "alpha.CreateAudienceRequest\032(.google.ana" - + "lytics.admin.v1alpha.Audience\"L\332A\017parent" - + ",audience\202\323\344\223\0024\"(/v1alpha/{parent=proper" - + "ties/*}/audiences:\010audience\022\315\001\n\016UpdateAu" - + "dience\0225.google.analytics.admin.v1alpha." - + "UpdateAudienceRequest\032(.google.analytics" - + ".admin.v1alpha.Audience\"Z\332A\024audience,upd" - + "ate_mask\202\323\344\223\002=21/v1alpha/{audience.name=" - + "properties/*/audiences/*}:\010audience\022\236\001\n\017" - + "ArchiveAudience\0226.google.analytics.admin" - + ".v1alpha.ArchiveAudienceRequest\032\026.google" - + ".protobuf.Empty\";\202\323\344\223\0025\"0/v1alpha/{name=" - + "properties/*/audiences/*}:archive:\001*\022\304\001\n" - + "\023GetSearchAds360Link\022:.google.analytics." - + "admin.v1alpha.GetSearchAds360LinkRequest" - + "\0320.google.analytics.admin.v1alpha.Search" - + "Ads360Link\"?\332A\004name\202\323\344\223\0022\0220/v1alpha/{nam" - + "e=properties/*/searchAds360Links/*}\022\327\001\n\025" - + "ListSearchAds360Links\022<.google.analytics" - + ".admin.v1alpha.ListSearchAds360LinksRequ" - + "est\032=.google.analytics.admin.v1alpha.Lis" - + "tSearchAds360LinksResponse\"A\332A\006parent\202\323\344" - + "\223\0022\0220/v1alpha/{parent=properties/*}/sear" - + "chAds360Links\022\365\001\n\026CreateSearchAds360Link" - + "\022=.google.analytics.admin.v1alpha.Create" - + "SearchAds360LinkRequest\0320.google.analyti" - + "cs.admin.v1alpha.SearchAds360Link\"j\332A\032pa" - + "rent,search_ads_360_link\202\323\344\223\002G\"0/v1alpha" - + "/{parent=properties/*}/searchAds360Links" - + ":\023search_ads_360_link\022\260\001\n\026DeleteSearchAd" - + "s360Link\022=.google.analytics.admin.v1alph" - + "a.DeleteSearchAds360LinkRequest\032\026.google" - + ".protobuf.Empty\"?\332A\004name\202\323\344\223\0022*0/v1alpha" - + "/{name=properties/*/searchAds360Links/*}" - + "\022\217\002\n\026UpdateSearchAds360Link\022=.google.ana" - + "lytics.admin.v1alpha.UpdateSearchAds360L" - + "inkRequest\0320.google.analytics.admin.v1al" - + "pha.SearchAds360Link\"\203\001\332A\037search_ads_360" - + "_link,update_mask\202\323\344\223\002[2D/v1alpha/{searc" - + "h_ads_360_link.name=properties/*/searchA" - + "ds360Links/*}:\023search_ads_360_link\022\315\001\n\026G" - + "etAttributionSettings\022=.google.analytics" - + ".admin.v1alpha.GetAttributionSettingsReq" - + "uest\0323.google.analytics.admin.v1alpha.At" - + "tributionSettings\"?\332A\004name\202\323\344\223\0022\0220/v1alp" - + "ha/{name=properties/*/attributionSetting" - + "s}\022\233\002\n\031UpdateAttributionSettings\022@.googl" - + "e.analytics.admin.v1alpha.UpdateAttribut", - "ionSettingsRequest\0323.google.analytics.ad" - + "min.v1alpha.AttributionSettings\"\206\001\332A att" - + "ribution_settings,update_mask\202\323\344\223\002]2E/v1" - + "alpha/{attribution_settings.name=propert" - + "ies/*/attributionSettings}:\024attribution_" - + "settings\022\360\001\n\017RunAccessReport\0226.google.an" - + "alytics.admin.v1alpha.RunAccessReportReq" - + "uest\0327.google.analytics.admin.v1alpha.Ru" - + "nAccessReportResponse\"l\202\323\344\223\002f\"./v1alpha/" - + "{entity=properties/*}:runAccessReport:\001*" - + "Z1\",/v1alpha/{entity=accounts/*}:runAcce" - + "ssReport:\001*\022\237\002\n\023CreateAccessBinding\022:.go" - + "ogle.analytics.admin.v1alpha.CreateAcces" - + "sBindingRequest\032-.google.analytics.admin" - + ".v1alpha.AccessBinding\"\234\001\332A\025parent,acces" - + "s_binding\202\323\344\223\002~\"+/v1alpha/{parent=accoun" - + "ts/*}/accessBindings:\016access_bindingZ?\"-" - + "/v1alpha/{parent=properties/*}/accessBin" - + "dings:\016access_binding\022\347\001\n\020GetAccessBindi" - + "ng\0227.google.analytics.admin.v1alpha.GetA" - + "ccessBindingRequest\032-.google.analytics.a" - + "dmin.v1alpha.AccessBinding\"k\332A\004name\202\323\344\223\002" - + "^\022+/v1alpha/{name=accounts/*/accessBindi" - + "ngs/*}Z/\022-/v1alpha/{name=properties/*/ac" - + "cessBindings/*}\022\267\002\n\023UpdateAccessBinding\022" - + ":.google.analytics.admin.v1alpha.UpdateA" - + "ccessBindingRequest\032-.google.analytics.a" - + "dmin.v1alpha.AccessBinding\"\264\001\332A\016access_b" - + "inding\202\323\344\223\002\234\0012:/v1alpha/{access_binding." - + "name=accounts/*/accessBindings/*}:\016acces" - + "s_bindingZN2\"9/v1al" - + "pha/{parent=properties/*}/accessBindings" - + ":batchCreate:\001*\022\217\002\n\026BatchGetAccessBindin" - + "gs\022=.google.analytics.admin.v1alpha.Batc" - + "hGetAccessBindingsRequest\032>.google.analy" - + "tics.admin.v1alpha.BatchGetAccessBinding" - + "sResponse\"v\202\323\344\223\002p\0224/v1alpha/{parent=acco" - + "unts/*}/accessBindings:batchGetZ8\0226/v1al" - + "pha/{parent=properties/*}/accessBindings" - + ":batchGet\022\245\002\n\031BatchUpdateAccessBindings\022" - + "@.google.analytics.admin.v1alpha.BatchUp" - + "dateAccessBindingsRequest\032A.google.analy" - + "tics.admin.v1alpha.BatchUpdateAccessBind" - + "ingsResponse\"\202\001\202\323\344\223\002|\"7/v1alpha/{parent=" - + "accounts/*}/accessBindings:batchUpdate:\001" - + "*Z>\"9/v1alpha/{parent=properties/*}/acce" - + "ssBindings:batchUpdate:\001*\022\372\001\n\031BatchDelet" - + "eAccessBindings\022@.google.analytics.admin" - + ".v1alpha.BatchDeleteAccessBindingsReques" - + "t\032\026.google.protobuf.Empty\"\202\001\202\323\344\223\002|\"7/v1a" - + "lpha/{parent=accounts/*}/accessBindings:" - + "batchDelete:\001*Z>\"9/v1alpha/{parent=prope" - + "rties/*}/accessBindings:batchDelete:\001*\022\300" - + "\001\n\022GetExpandedDataSet\0229.google.analytics" - + ".admin.v1alpha.GetExpandedDataSetRequest" - + "\032/.google.analytics.admin.v1alpha.Expand" - + "edDataSet\">\332A\004name\202\323\344\223\0021\022//v1alpha/{name" - + "=properties/*/expandedDataSets/*}\022\323\001\n\024Li" - + "stExpandedDataSets\022;.google.analytics.ad" - + "min.v1alpha.ListExpandedDataSetsRequest\032" - + "<.google.analytics.admin.v1alpha.ListExp" - + "andedDataSetsResponse\"@\332A\006parent\202\323\344\223\0021\022/" - + "/v1alpha/{parent=properties/*}/expandedD" - + "ataSets\022\355\001\n\025CreateExpandedDataSet\022<.goog" - + "le.analytics.admin.v1alpha.CreateExpande" - + "dDataSetRequest\032/.google.analytics.admin" - + ".v1alpha.ExpandedDataSet\"e\332A\030parent,expa" - + "nded_data_set\202\323\344\223\002D\"//v1alpha/{parent=pr" - + "operties/*}/expandedDataSets:\021expanded_d" - + "ata_set\022\204\002\n\025UpdateExpandedDataSet\022<.goog" - + "le.analytics.admin.v1alpha.UpdateExpande" - + "dDataSetRequest\032/.google.analytics.admin" - + ".v1alpha.ExpandedDataSet\"|\332A\035expanded_da" - + "ta_set,update_mask\202\323\344\223\002V2A/v1alpha/{expa" - + "nded_data_set.name=properties/*/expanded" - + "DataSets/*}:\021expanded_data_set\022\255\001\n\025Delet" - + "eExpandedDataSet\022<.google.analytics.admi" - + "n.v1alpha.DeleteExpandedDataSetRequest\032\026" - + ".google.protobuf.Empty\">\332A\004name\202\323\344\223\0021*//" - + "v1alpha/{name=properties/*/expandedDataS" - + "ets/*}\022\264\001\n\017GetChannelGroup\0226.google.anal" - + "ytics.admin.v1alpha.GetChannelGroupReque" - + "st\032,.google.analytics.admin.v1alpha.Chan" - + "nelGroup\";\332A\004name\202\323\344\223\002.\022,/v1alpha/{name=" - + "properties/*/channelGroups/*}\022\307\001\n\021ListCh" - + "annelGroups\0228.google.analytics.admin.v1a" - + "lpha.ListChannelGroupsRequest\0329.google.a" - + "nalytics.admin.v1alpha.ListChannelGroups" - + "Response\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha/{par" - + "ent=properties/*}/channelGroups\022\331\001\n\022Crea" - + "teChannelGroup\0229.google.analytics.admin." - + "v1alpha.CreateChannelGroupRequest\032,.goog" - + "le.analytics.admin.v1alpha.ChannelGroup\"" - + "Z\332A\024parent,channel_group\202\323\344\223\002=\",/v1alpha" - + "/{parent=properties/*}/channelGroups:\rch" - + "annel_group\022\354\001\n\022UpdateChannelGroup\0229.goo" - + "gle.analytics.admin.v1alpha.UpdateChanne" - + "lGroupRequest\032,.google.analytics.admin.v" - + "1alpha.ChannelGroup\"m\332A\031channel_group,up" - + "date_mask\202\323\344\223\002K2:/v1alpha/{channel_group" - + ".name=properties/*/channelGroups/*}:\rcha" - + "nnel_group\022\244\001\n\022DeleteChannelGroup\0229.goog" - + "le.analytics.admin.v1alpha.DeleteChannel" - + "GroupRequest\032\026.google.protobuf.Empty\";\332A" - + "\004name\202\323\344\223\002.*,/v1alpha/{name=properties/*" - + "/channelGroups/*}\022\331\001\n\022CreateBigQueryLink" - + "\0229.google.analytics.admin.v1alpha.Create" - + "BigQueryLinkRequest\032,.google.analytics.a" - + "dmin.v1alpha.BigQueryLink\"Z\332A\024parent,big" - + "query_link\202\323\344\223\002=\",/v1alpha/{parent=prope" - + "rties/*}/bigQueryLinks:\rbigquery_link\022\264\001" - + "\n\017GetBigQueryLink\0226.google.analytics.adm" - + "in.v1alpha.GetBigQueryLinkRequest\032,.goog" - + "le.analytics.admin.v1alpha.BigQueryLink\"" - + ";\332A\004name\202\323\344\223\002.\022,/v1alpha/{name=propertie" - + "s/*/bigQueryLinks/*}\022\307\001\n\021ListBigQueryLin" - + "ks\0228.google.analytics.admin.v1alpha.List" - + "BigQueryLinksRequest\0329.google.analytics." - + "admin.v1alpha.ListBigQueryLinksResponse\"" - + "=\332A\006parent\202\323\344\223\002.\022,/v1alpha/{parent=prope" - + "rties/*}/bigQueryLinks\022\244\001\n\022DeleteBigQuer" - + "yLink\0229.google.analytics.admin.v1alpha.D" - + "eleteBigQueryLinkRequest\032\026.google.protob" - + "uf.Empty\";\332A\004name\202\323\344\223\002.*,/v1alpha/{name=" - + "properties/*/bigQueryLinks/*}\022\354\001\n\022Update" - + "BigQueryLink\0229.google.analytics.admin.v1" - + "alpha.UpdateBigQueryLinkRequest\032,.google" - + ".analytics.admin.v1alpha.BigQueryLink\"m\332" - + "A\031bigquery_link,update_mask\202\323\344\223\002K2:/v1al" - + "pha/{bigquery_link.name=properties/*/big" - + "QueryLinks/*}:\rbigquery_link\022\373\001\n\036GetEnha" - + "ncedMeasurementSettings\022E.google.analyti" - + "cs.admin.v1alpha.GetEnhancedMeasurementS" - + "ettingsRequest\032;.google.analytics.admin." - + "v1alpha.EnhancedMeasurementSettings\"U\332A\004" - + "name\202\323\344\223\002H\022F/v1alpha/{name=properties/*/" - + "dataStreams/*/enhancedMeasurementSetting" - + "s}\022\345\002\n!UpdateEnhancedMeasurementSettings" - + "\022H.google.analytics.admin.v1alpha.Update" - + "EnhancedMeasurementSettingsRequest\032;.goo" - + "gle.analytics.admin.v1alpha.EnhancedMeas" - + "urementSettings\"\270\001\332A)enhanced_measuremen" - + "t_settings,update_mask\202\323\344\223\002\205\0012d/v1alpha/" - + "{enhanced_measurement_settings.name=prop" - + "erties/*/dataStreams/*/enhancedMeasureme" - + "ntSettings}:\035enhanced_measurement_settin" - + "gs\022\260\001\n\016GetAdSenseLink\0225.google.analytics" - + ".admin.v1alpha.GetAdSenseLinkRequest\032+.g" - + "oogle.analytics.admin.v1alpha.AdSenseLin" - + "k\":\332A\004name\202\323\344\223\002-\022+/v1alpha/{name=propert" - + "ies/*/adSenseLinks/*}\022\323\001\n\021CreateAdSenseL" - + "ink\0228.google.analytics.admin.v1alpha.Cre" - + "ateAdSenseLinkRequest\032+.google.analytics" - + ".admin.v1alpha.AdSenseLink\"W\332A\023parent,ad" - + "sense_link\202\323\344\223\002;\"+/v1alpha/{parent=prope" - + "rties/*}/adSenseLinks:\014adsense_link\022\241\001\n\021" - + "DeleteAdSenseLink\0228.google.analytics.adm" - + "in.v1alpha.DeleteAdSenseLinkRequest\032\026.go" - + "ogle.protobuf.Empty\":\332A\004name\202\323\344\223\002-*+/v1a" - + "lpha/{name=properties/*/adSenseLinks/*}\022" - + "\303\001\n\020ListAdSenseLinks\0227.google.analytics." - + "admin.v1alpha.ListAdSenseLinksRequest\0328." - + "google.analytics.admin.v1alpha.ListAdSen" - + "seLinksResponse\"<\332A\006parent\202\323\344\223\002-\022+/v1alp" - + "ha/{parent=properties/*}/adSenseLinks\022\316\001" - + "\n\022GetEventCreateRule\0229.google.analytics." - + "admin.v1alpha.GetEventCreateRuleRequest\032" - + "/.google.analytics.admin.v1alpha.EventCr" - + "eateRule\"L\332A\004name\202\323\344\223\002?\022=/v1alpha/{name=" - + "properties/*/dataStreams/*/eventCreateRu" - + "les/*}\022\341\001\n\024ListEventCreateRules\022;.google" - + ".analytics.admin.v1alpha.ListEventCreate" - + "RulesRequest\032<.google.analytics.admin.v1" - + "alpha.ListEventCreateRulesResponse\"N\332A\006p" - + "arent\202\323\344\223\002?\022=/v1alpha/{parent=properties" - + "/*/dataStreams/*}/eventCreateRules\022\373\001\n\025C" - + "reateEventCreateRule\022<.google.analytics." - + "admin.v1alpha.CreateEventCreateRuleReque" - + "st\032/.google.analytics.admin.v1alpha.Even" - + "tCreateRule\"s\332A\030parent,event_create_rule" - + "\202\323\344\223\002R\"=/v1alpha/{parent=properties/*/da" - + "taStreams/*}/eventCreateRules:\021event_cre" - + "ate_rule\022\223\002\n\025UpdateEventCreateRule\022<.goo" - + "gle.analytics.admin.v1alpha.UpdateEventC" - + "reateRuleRequest\032/.google.analytics.admi" - + "n.v1alpha.EventCreateRule\"\212\001\332A\035event_cre" - + "ate_rule,update_mask\202\323\344\223\002d2O/v1alpha/{ev" - + "ent_create_rule.name=properties/*/dataSt" - + "reams/*/eventCreateRules/*}:\021event_creat" - + "e_rule\022\273\001\n\025DeleteEventCreateRule\022<.googl" - + "e.analytics.admin.v1alpha.DeleteEventCre" - + "ateRuleRequest\032\026.google.protobuf.Empty\"L" - + "\332A\004name\202\323\344\223\002?*=/v1alpha/{name=properties" - + "/*/dataStreams/*/eventCreateRules/*}\022\306\001\n" - + "\020GetEventEditRule\0227.google.analytics.adm" - + "in.v1alpha.GetEventEditRuleRequest\032-.goo" - + "gle.analytics.admin.v1alpha.EventEditRul" - + "e\"J\332A\004name\202\323\344\223\002=\022;/v1alpha/{name=propert" - + "ies/*/dataStreams/*/eventEditRules/*}\022\331\001" - + "\n\022ListEventEditRules\0229.google.analytics." - + "admin.v1alpha.ListEventEditRulesRequest\032" - + ":.google.analytics.admin.v1alpha.ListEve" - + "ntEditRulesResponse\"L\332A\006parent\202\323\344\223\002=\022;/v" - + "1alpha/{parent=properties/*/dataStreams/" - + "*}/eventEditRules\022\357\001\n\023CreateEventEditRul" - + "e\022:.google.analytics.admin.v1alpha.Creat" + + "stomDimension\"c\332A\027parent,custom_dimensio" + + "n\202\323\344\223\002C\"//v1alpha/{parent=properties/*}/" + + "customDimensions:\020custom_dimension\022\201\002\n\025U" + + "pdateCustomDimension\022<.google.analytics." + + "admin.v1alpha.UpdateCustomDimensionReque" + + "st\032/.google.analytics.admin.v1alpha.Cust" + + "omDimension\"y\332A\034custom_dimension,update_" + + "mask\202\323\344\223\002T2@/v1alpha/{custom_dimension.n" + + "ame=properties/*/customDimensions/*}:\020cu" + + "stom_dimension\022\323\001\n\024ListCustomDimensions\022" + + ";.google.analytics.admin.v1alpha.ListCus" + + "tomDimensionsRequest\032<.google.analytics." + + "admin.v1alpha.ListCustomDimensionsRespon" + + "se\"@\332A\006parent\202\323\344\223\0021\022//v1alpha/{parent=pr" + + "operties/*}/customDimensions\022\272\001\n\026Archive" + + "CustomDimension\022=.google.analytics.admin" + + ".v1alpha.ArchiveCustomDimensionRequest\032\026" + + ".google.protobuf.Empty\"I\332A\004name\202\323\344\223\002<\"7/" + + "v1alpha/{name=properties/*/customDimensi" + + "ons/*}:archive:\001*\022\300\001\n\022GetCustomDimension" + + "\0229.google.analytics.admin.v1alpha.GetCus" + + "tomDimensionRequest\032/.google.analytics.a" + + "dmin.v1alpha.CustomDimension\">\332A\004name\202\323\344" + + "\223\0021\022//v1alpha/{name=properties/*/customD" + + "imensions/*}\022\331\001\n\022CreateCustomMetric\0229.go" + + "ogle.analytics.admin.v1alpha.CreateCusto" + + "mMetricRequest\032,.google.analytics.admin." + + "v1alpha.CustomMetric\"Z\332A\024parent,custom_m" + + "etric\202\323\344\223\002=\",/v1alpha/{parent=properties" + + "/*}/customMetrics:\rcustom_metric\022\354\001\n\022Upd" + + "ateCustomMetric\0229.google.analytics.admin" + + ".v1alpha.UpdateCustomMetricRequest\032,.goo" + + "gle.analytics.admin.v1alpha.CustomMetric" + + "\"m\332A\031custom_metric,update_mask\202\323\344\223\002K2:/v" + + "1alpha/{custom_metric.name=properties/*/" + + "customMetrics/*}:\rcustom_metric\022\307\001\n\021List" + + "CustomMetrics\0228.google.analytics.admin.v" + + "1alpha.ListCustomMetricsRequest\0329.google" + + ".analytics.admin.v1alpha.ListCustomMetri" + + "csResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha/{p" + + "arent=properties/*}/customMetrics\022\261\001\n\023Ar" + + "chiveCustomMetric\022:.google.analytics.adm" + + "in.v1alpha.ArchiveCustomMetricRequest\032\026." + + "google.protobuf.Empty\"F\332A\004name\202\323\344\223\0029\"4/v" + + "1alpha/{name=properties/*/customMetrics/" + + "*}:archive:\001*\022\264\001\n\017GetCustomMetric\0226.goog" + + "le.analytics.admin.v1alpha.GetCustomMetr" + + "icRequest\032,.google.analytics.admin.v1alp" + + "ha.CustomMetric\";\332A\004name\202\323\344\223\002.\022,/v1alpha" + + "/{name=properties/*/customMetrics/*}\022\325\001\n" + + "\030GetDataRetentionSettings\022?.google.analy" + + "tics.admin.v1alpha.GetDataRetentionSetti" + + "ngsRequest\0325.google.analytics.admin.v1al" + + "pha.DataRetentionSettings\"A\332A\004name\202\323\344\223\0024" + + "\0222/v1alpha/{name=properties/*/dataRetent" + + "ionSettings}\022\254\002\n\033UpdateDataRetentionSett" + + "ings\022B.google.analytics.admin.v1alpha.Up" + + "dateDataRetentionSettingsRequest\0325.googl" + + "e.analytics.admin.v1alpha.DataRetentionS" + + "ettings\"\221\001\332A#data_retention_settings,upd" + + "ate_mask\202\323\344\223\002e2J/v1alpha/{data_retention" + + "_settings.name=properties/*/dataRetentio" + + "nSettings}:\027data_retention_settings\022\315\001\n\020" + + "CreateDataStream\0227.google.analytics.admi" + + "n.v1alpha.CreateDataStreamRequest\032*.goog" + + "le.analytics.admin.v1alpha.DataStream\"T\332" + + "A\022parent,data_stream\202\323\344\223\0029\"*/v1alpha/{pa" + + "rent=properties/*}/dataStreams:\013data_str" + + "eam\022\236\001\n\020DeleteDataStream\0227.google.analyt" + + "ics.admin.v1alpha.DeleteDataStreamReques" + + "t\032\026.google.protobuf.Empty\"9\332A\004name\202\323\344\223\002," + + "**/v1alpha/{name=properties/*/dataStream" + + "s/*}\022\336\001\n\020UpdateDataStream\0227.google.analy" + + "tics.admin.v1alpha.UpdateDataStreamReque" + + "st\032*.google.analytics.admin.v1alpha.Data" + + "Stream\"e\332A\027data_stream,update_mask\202\323\344\223\002E" + + "26/v1alpha/{data_stream.name=properties/" + + "*/dataStreams/*}:\013data_stream\022\277\001\n\017ListDa" + + "taStreams\0226.google.analytics.admin.v1alp" + + "ha.ListDataStreamsRequest\0327.google.analy" + + "tics.admin.v1alpha.ListDataStreamsRespon" + + "se\";\332A\006parent\202\323\344\223\002,\022*/v1alpha/{parent=pr" + + "operties/*}/dataStreams\022\254\001\n\rGetDataStrea" + + "m\0224.google.analytics.admin.v1alpha.GetDa" + + "taStreamRequest\032*.google.analytics.admin" + + ".v1alpha.DataStream\"9\332A\004name\202\323\344\223\002,\022*/v1a" + + "lpha/{name=properties/*/dataStreams/*}\022\244" + + "\001\n\013GetAudience\0222.google.analytics.admin." + + "v1alpha.GetAudienceRequest\032(.google.anal" + + "ytics.admin.v1alpha.Audience\"7\332A\004name\202\323\344" + + "\223\002*\022(/v1alpha/{name=properties/*/audienc" + + "es/*}\022\267\001\n\rListAudiences\0224.google.analyti" + + "cs.admin.v1alpha.ListAudiencesRequest\0325." + + "google.analytics.admin.v1alpha.ListAudie" + + "ncesResponse\"9\332A\006parent\202\323\344\223\002*\022(/v1alpha/" + + "{parent=properties/*}/audiences\022\277\001\n\016Crea" + + "teAudience\0225.google.analytics.admin.v1al" + + "pha.CreateAudienceRequest\032(.google.analy" + + "tics.admin.v1alpha.Audience\"L\332A\017parent,a" + + "udience\202\323\344\223\0024\"(/v1alpha/{parent=properti" + + "es/*}/audiences:\010audience\022\315\001\n\016UpdateAudi" + + "ence\0225.google.analytics.admin.v1alpha.Up" + + "dateAudienceRequest\032(.google.analytics.a" + + "dmin.v1alpha.Audience\"Z\332A\024audience,updat" + + "e_mask\202\323\344\223\002=21/v1alpha/{audience.name=pr" + + "operties/*/audiences/*}:\010audience\022\236\001\n\017Ar" + + "chiveAudience\0226.google.analytics.admin.v" + + "1alpha.ArchiveAudienceRequest\032\026.google.p" + + "rotobuf.Empty\";\202\323\344\223\0025\"0/v1alpha/{name=pr" + + "operties/*/audiences/*}:archive:\001*\022\304\001\n\023G" + + "etSearchAds360Link\022:.google.analytics.ad" + + "min.v1alpha.GetSearchAds360LinkRequest\0320" + + ".google.analytics.admin.v1alpha.SearchAd" + + "s360Link\"?\332A\004name\202\323\344\223\0022\0220/v1alpha/{name=" + + "properties/*/searchAds360Links/*}\022\327\001\n\025Li" + + "stSearchAds360Links\022<.google.analytics.a" + + "dmin.v1alpha.ListSearchAds360LinksReques" + + "t\032=.google.analytics.admin.v1alpha.ListS" + + "earchAds360LinksResponse\"A\332A\006parent\202\323\344\223\002" + + "2\0220/v1alpha/{parent=properties/*}/search" + + "Ads360Links\022\365\001\n\026CreateSearchAds360Link\022=" + + ".google.analytics.admin.v1alpha.CreateSe" + + "archAds360LinkRequest\0320.google.analytics" + + ".admin.v1alpha.SearchAds360Link\"j\332A\032pare" + + "nt,search_ads_360_link\202\323\344\223\002G\"0/v1alpha/{" + + "parent=properties/*}/searchAds360Links:\023" + + "search_ads_360_link\022\260\001\n\026DeleteSearchAds3" + + "60Link\022=.google.analytics.admin.v1alpha." + + "DeleteSearchAds360LinkRequest\032\026.google.p" + + "rotobuf.Empty\"?\332A\004name\202\323\344\223\0022*0/v1alpha/{" + + "name=properties/*/searchAds360Links/*}\022\217" + + "\002\n\026UpdateSearchAds360Link\022=.google.analy" + + "tics.admin.v1alpha.UpdateSearchAds360Lin" + + "kRequest\0320.google.analytics.admin.v1alph" + + "a.SearchAds360Link\"\203\001\332A\037search_ads_360_l" + + "ink,update_mask\202\323\344\223\002[2D/v1alpha/{search_" + + "ads_360_link.name=properties/*/searchAds" + + "360Links/*}:\023search_ads_360_link\022\315\001\n\026Get" + + "AttributionSettings\022=.google.analytics.a" + + "dmin.v1alpha.GetAttributionSettingsReque", + "st\0323.google.analytics.admin.v1alpha.Attr" + + "ibutionSettings\"?\332A\004name\202\323\344\223\0022\0220/v1alpha" + + "/{name=properties/*/attributionSettings}" + + "\022\233\002\n\031UpdateAttributionSettings\022@.google." + + "analytics.admin.v1alpha.UpdateAttributio" + + "nSettingsRequest\0323.google.analytics.admi" + + "n.v1alpha.AttributionSettings\"\206\001\332A attri" + + "bution_settings,update_mask\202\323\344\223\002]2E/v1al" + + "pha/{attribution_settings.name=propertie" + + "s/*/attributionSettings}:\024attribution_se" + + "ttings\022\360\001\n\017RunAccessReport\0226.google.anal" + + "ytics.admin.v1alpha.RunAccessReportReque" + + "st\0327.google.analytics.admin.v1alpha.RunA" + + "ccessReportResponse\"l\202\323\344\223\002f\"./v1alpha/{e" + + "ntity=properties/*}:runAccessReport:\001*Z1" + + "\",/v1alpha/{entity=accounts/*}:runAccess" + + "Report:\001*\022\237\002\n\023CreateAccessBinding\022:.goog" + + "le.analytics.admin.v1alpha.CreateAccessB" + + "indingRequest\032-.google.analytics.admin.v" + + "1alpha.AccessBinding\"\234\001\332A\025parent,access_" + + "binding\202\323\344\223\002~\"+/v1alpha/{parent=accounts" + + "/*}/accessBindings:\016access_bindingZ?\"-/v" + + "1alpha/{parent=properties/*}/accessBindi" + + "ngs:\016access_binding\022\347\001\n\020GetAccessBinding" + + "\0227.google.analytics.admin.v1alpha.GetAcc" + + "essBindingRequest\032-.google.analytics.adm" + + "in.v1alpha.AccessBinding\"k\332A\004name\202\323\344\223\002^\022" + + "+/v1alpha/{name=accounts/*/accessBinding" + + "s/*}Z/\022-/v1alpha/{name=properties/*/acce" + + "ssBindings/*}\022\267\002\n\023UpdateAccessBinding\022:." + + "google.analytics.admin.v1alpha.UpdateAcc" + + "essBindingRequest\032-.google.analytics.adm" + + "in.v1alpha.AccessBinding\"\264\001\332A\016access_bin" + + "ding\202\323\344\223\002\234\0012:/v1alpha/{access_binding.na" + + "me=accounts/*/accessBindings/*}:\016access_" + + "bindingZN2\"9/v1alph" + + "a/{parent=properties/*}/accessBindings:b" + + "atchCreate:\001*\022\217\002\n\026BatchGetAccessBindings" + + "\022=.google.analytics.admin.v1alpha.BatchG" + + "etAccessBindingsRequest\032>.google.analyti" + + "cs.admin.v1alpha.BatchGetAccessBindingsR" + + "esponse\"v\202\323\344\223\002p\0224/v1alpha/{parent=accoun" + + "ts/*}/accessBindings:batchGetZ8\0226/v1alph" + + "a/{parent=properties/*}/accessBindings:b" + + "atchGet\022\245\002\n\031BatchUpdateAccessBindings\022@." + + "google.analytics.admin.v1alpha.BatchUpda" + + "teAccessBindingsRequest\032A.google.analyti" + + "cs.admin.v1alpha.BatchUpdateAccessBindin" + + "gsResponse\"\202\001\202\323\344\223\002|\"7/v1alpha/{parent=ac" + + "counts/*}/accessBindings:batchUpdate:\001*Z" + + ">\"9/v1alpha/{parent=properties/*}/access" + + "Bindings:batchUpdate:\001*\022\372\001\n\031BatchDeleteA" + + "ccessBindings\022@.google.analytics.admin.v" + + "1alpha.BatchDeleteAccessBindingsRequest\032" + + "\026.google.protobuf.Empty\"\202\001\202\323\344\223\002|\"7/v1alp" + + "ha/{parent=accounts/*}/accessBindings:ba" + + "tchDelete:\001*Z>\"9/v1alpha/{parent=propert" + + "ies/*}/accessBindings:batchDelete:\001*\022\300\001\n" + + "\022GetExpandedDataSet\0229.google.analytics.a" + + "dmin.v1alpha.GetExpandedDataSetRequest\032/" + + ".google.analytics.admin.v1alpha.Expanded" + + "DataSet\">\332A\004name\202\323\344\223\0021\022//v1alpha/{name=p" + + "roperties/*/expandedDataSets/*}\022\323\001\n\024List" + + "ExpandedDataSets\022;.google.analytics.admi" + + "n.v1alpha.ListExpandedDataSetsRequest\032<." + + "google.analytics.admin.v1alpha.ListExpan" + + "dedDataSetsResponse\"@\332A\006parent\202\323\344\223\0021\022//v" + + "1alpha/{parent=properties/*}/expandedDat" + + "aSets\022\355\001\n\025CreateExpandedDataSet\022<.google" + + ".analytics.admin.v1alpha.CreateExpandedD" + + "ataSetRequest\032/.google.analytics.admin.v" + + "1alpha.ExpandedDataSet\"e\332A\030parent,expand" + + "ed_data_set\202\323\344\223\002D\"//v1alpha/{parent=prop" + + "erties/*}/expandedDataSets:\021expanded_dat" + + "a_set\022\204\002\n\025UpdateExpandedDataSet\022<.google" + + ".analytics.admin.v1alpha.UpdateExpandedD" + + "ataSetRequest\032/.google.analytics.admin.v" + + "1alpha.ExpandedDataSet\"|\332A\035expanded_data" + + "_set,update_mask\202\323\344\223\002V2A/v1alpha/{expand" + + "ed_data_set.name=properties/*/expandedDa" + + "taSets/*}:\021expanded_data_set\022\255\001\n\025DeleteE" + + "xpandedDataSet\022<.google.analytics.admin." + + "v1alpha.DeleteExpandedDataSetRequest\032\026.g" + + "oogle.protobuf.Empty\">\332A\004name\202\323\344\223\0021*//v1" + + "alpha/{name=properties/*/expandedDataSet" + + "s/*}\022\264\001\n\017GetChannelGroup\0226.google.analyt" + + "ics.admin.v1alpha.GetChannelGroupRequest" + + "\032,.google.analytics.admin.v1alpha.Channe" + + "lGroup\";\332A\004name\202\323\344\223\002.\022,/v1alpha/{name=pr" + + "operties/*/channelGroups/*}\022\307\001\n\021ListChan" + + "nelGroups\0228.google.analytics.admin.v1alp" + + "ha.ListChannelGroupsRequest\0329.google.ana" + + "lytics.admin.v1alpha.ListChannelGroupsRe" + + "sponse\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha/{paren" + + "t=properties/*}/channelGroups\022\331\001\n\022Create" + + "ChannelGroup\0229.google.analytics.admin.v1" + + "alpha.CreateChannelGroupRequest\032,.google" + + ".analytics.admin.v1alpha.ChannelGroup\"Z\332" + + "A\024parent,channel_group\202\323\344\223\002=\",/v1alpha/{" + + "parent=properties/*}/channelGroups:\rchan" + + "nel_group\022\354\001\n\022UpdateChannelGroup\0229.googl" + + "e.analytics.admin.v1alpha.UpdateChannelG" + + "roupRequest\032,.google.analytics.admin.v1a" + + "lpha.ChannelGroup\"m\332A\031channel_group,upda" + + "te_mask\202\323\344\223\002K2:/v1alpha/{channel_group.n" + + "ame=properties/*/channelGroups/*}:\rchann" + + "el_group\022\244\001\n\022DeleteChannelGroup\0229.google" + + ".analytics.admin.v1alpha.DeleteChannelGr" + + "oupRequest\032\026.google.protobuf.Empty\";\332A\004n" + + "ame\202\323\344\223\002.*,/v1alpha/{name=properties/*/c" + + "hannelGroups/*}\022\331\001\n\022CreateBigQueryLink\0229" + + ".google.analytics.admin.v1alpha.CreateBi" + + "gQueryLinkRequest\032,.google.analytics.adm" + + "in.v1alpha.BigQueryLink\"Z\332A\024parent,bigqu" + + "ery_link\202\323\344\223\002=\",/v1alpha/{parent=propert" + + "ies/*}/bigQueryLinks:\rbigquery_link\022\264\001\n\017" + + "GetBigQueryLink\0226.google.analytics.admin" + + ".v1alpha.GetBigQueryLinkRequest\032,.google" + + ".analytics.admin.v1alpha.BigQueryLink\";\332" + + "A\004name\202\323\344\223\002.\022,/v1alpha/{name=properties/" + + "*/bigQueryLinks/*}\022\307\001\n\021ListBigQueryLinks" + + "\0228.google.analytics.admin.v1alpha.ListBi" + + "gQueryLinksRequest\0329.google.analytics.ad" + + "min.v1alpha.ListBigQueryLinksResponse\"=\332" + + "A\006parent\202\323\344\223\002.\022,/v1alpha/{parent=propert" + + "ies/*}/bigQueryLinks\022\244\001\n\022DeleteBigQueryL" + + "ink\0229.google.analytics.admin.v1alpha.Del" + + "eteBigQueryLinkRequest\032\026.google.protobuf" + + ".Empty\";\332A\004name\202\323\344\223\002.*,/v1alpha/{name=pr" + + "operties/*/bigQueryLinks/*}\022\354\001\n\022UpdateBi" + + "gQueryLink\0229.google.analytics.admin.v1al" + + "pha.UpdateBigQueryLinkRequest\032,.google.a" + + "nalytics.admin.v1alpha.BigQueryLink\"m\332A\031" + + "bigquery_link,update_mask\202\323\344\223\002K2:/v1alph" + + "a/{bigquery_link.name=properties/*/bigQu" + + "eryLinks/*}:\rbigquery_link\022\373\001\n\036GetEnhanc" + + "edMeasurementSettings\022E.google.analytics" + + ".admin.v1alpha.GetEnhancedMeasurementSet" + + "tingsRequest\032;.google.analytics.admin.v1" + + "alpha.EnhancedMeasurementSettings\"U\332A\004na" + + "me\202\323\344\223\002H\022F/v1alpha/{name=properties/*/da" + + "taStreams/*/enhancedMeasurementSettings}" + + "\022\345\002\n!UpdateEnhancedMeasurementSettings\022H" + + ".google.analytics.admin.v1alpha.UpdateEn" + + "hancedMeasurementSettingsRequest\032;.googl" + + "e.analytics.admin.v1alpha.EnhancedMeasur" + + "ementSettings\"\270\001\332A)enhanced_measurement_" + + "settings,update_mask\202\323\344\223\002\205\0012d/v1alpha/{e" + + "nhanced_measurement_settings.name=proper" + + "ties/*/dataStreams/*/enhancedMeasurement" + + "Settings}:\035enhanced_measurement_settings" + + "\022\260\001\n\016GetAdSenseLink\0225.google.analytics.a" + + "dmin.v1alpha.GetAdSenseLinkRequest\032+.goo" + + "gle.analytics.admin.v1alpha.AdSenseLink\"" + + ":\332A\004name\202\323\344\223\002-\022+/v1alpha/{name=propertie" + + "s/*/adSenseLinks/*}\022\323\001\n\021CreateAdSenseLin" + + "k\0228.google.analytics.admin.v1alpha.Creat" + + "eAdSenseLinkRequest\032+.google.analytics.a" + + "dmin.v1alpha.AdSenseLink\"W\332A\023parent,adse" + + "nse_link\202\323\344\223\002;\"+/v1alpha/{parent=propert" + + "ies/*}/adSenseLinks:\014adsense_link\022\241\001\n\021De" + + "leteAdSenseLink\0228.google.analytics.admin" + + ".v1alpha.DeleteAdSenseLinkRequest\032\026.goog" + + "le.protobuf.Empty\":\332A\004name\202\323\344\223\002-*+/v1alp" + + "ha/{name=properties/*/adSenseLinks/*}\022\303\001" + + "\n\020ListAdSenseLinks\0227.google.analytics.ad" + + "min.v1alpha.ListAdSenseLinksRequest\0328.go" + + "ogle.analytics.admin.v1alpha.ListAdSense" + + "LinksResponse\"<\332A\006parent\202\323\344\223\002-\022+/v1alpha" + + "/{parent=properties/*}/adSenseLinks\022\316\001\n\022" + + "GetEventCreateRule\0229.google.analytics.ad" + + "min.v1alpha.GetEventCreateRuleRequest\032/." + + "google.analytics.admin.v1alpha.EventCrea" + + "teRule\"L\332A\004name\202\323\344\223\002?\022=/v1alpha/{name=pr" + + "operties/*/dataStreams/*/eventCreateRule" + + "s/*}\022\341\001\n\024ListEventCreateRules\022;.google.a" + + "nalytics.admin.v1alpha.ListEventCreateRu" + + "lesRequest\032<.google.analytics.admin.v1al" + + "pha.ListEventCreateRulesResponse\"N\332A\006par" + + "ent\202\323\344\223\002?\022=/v1alpha/{parent=properties/*" + + "/dataStreams/*}/eventCreateRules\022\373\001\n\025Cre" + + "ateEventCreateRule\022<.google.analytics.ad" + + "min.v1alpha.CreateEventCreateRuleRequest" + + "\032/.google.analytics.admin.v1alpha.EventC" + + "reateRule\"s\332A\030parent,event_create_rule\202\323" + + "\344\223\002R\"=/v1alpha/{parent=properties/*/data" + + "Streams/*}/eventCreateRules:\021event_creat" + + "e_rule\022\223\002\n\025UpdateEventCreateRule\022<.googl" + + "e.analytics.admin.v1alpha.UpdateEventCre" + + "ateRuleRequest\032/.google.analytics.admin." + + "v1alpha.EventCreateRule\"\212\001\332A\035event_creat" + + "e_rule,update_mask\202\323\344\223\002d2O/v1alpha/{even" + + "t_create_rule.name=properties/*/dataStre" + + "ams/*/eventCreateRules/*}:\021event_create_" + + "rule\022\273\001\n\025DeleteEventCreateRule\022<.google." + + "analytics.admin.v1alpha.DeleteEventCreat" + + "eRuleRequest\032\026.google.protobuf.Empty\"L\332A" + + "\004name\202\323\344\223\002?*=/v1alpha/{name=properties/*" + + "/dataStreams/*/eventCreateRules/*}\022\306\001\n\020G" + + "etEventEditRule\0227.google.analytics.admin" + + ".v1alpha.GetEventEditRuleRequest\032-.googl" + + "e.analytics.admin.v1alpha.EventEditRule\"" + + "J\332A\004name\202\323\344\223\002=\022;/v1alpha/{name=propertie" + + "s/*/dataStreams/*/eventEditRules/*}\022\331\001\n\022" + + "ListEventEditRules\0229.google.analytics.ad" + + "min.v1alpha.ListEventEditRulesRequest\032:." + + "google.analytics.admin.v1alpha.ListEvent" + + "EditRulesResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1a" + + "lpha/{parent=properties/*/dataStreams/*}" + + "/eventEditRules\022\357\001\n\023CreateEventEditRule\022" + + ":.google.analytics.admin.v1alpha.CreateE" + + "ventEditRuleRequest\032-.google.analytics.a" + + "dmin.v1alpha.EventEditRule\"m\332A\026parent,ev" + + "ent_edit_rule\202\323\344\223\002N\";/v1alpha/{parent=pr" + + "operties/*/dataStreams/*}/eventEditRules" + + ":\017event_edit_rule\022\205\002\n\023UpdateEventEditRul" + + "e\022:.google.analytics.admin.v1alpha.Updat" + "eEventEditRuleRequest\032-.google.analytics" - + ".admin.v1alpha.EventEditRule\"m\332A\026parent," - + "event_edit_rule\202\323\344\223\002N\";/v1alpha/{parent=" - + "properties/*/dataStreams/*}/eventEditRul" - + "es:\017event_edit_rule\022\205\002\n\023UpdateEventEditR" - + "ule\022:.google.analytics.admin.v1alpha.Upd" - + "ateEventEditRuleRequest\032-.google.analyti" - + "cs.admin.v1alpha.EventEditRule\"\202\001\332A\033even" - + "t_edit_rule,update_mask\202\323\344\223\002^2K/v1alpha/" - + "{event_edit_rule.name=properties/*/dataS" - + "treams/*/eventEditRules/*}:\017event_edit_r" - + "ule\022\265\001\n\023DeleteEventEditRule\022:.google.ana" - + "lytics.admin.v1alpha.DeleteEventEditRule" - + "Request\032\026.google.protobuf.Empty\"J\332A\004name" - + "\202\323\344\223\002=*;/v1alpha/{name=properties/*/data" - + "Streams/*/eventEditRules/*}\022\275\001\n\025ReorderE" - + "ventEditRules\022<.google.analytics.admin.v" - + "1alpha.ReorderEventEditRulesRequest\032\026.go" - + "ogle.protobuf.Empty\"N\202\323\344\223\002H\"C/v1alpha/{p" - + "arent=properties/*/dataStreams/*}/eventE" - + "ditRules:reorder:\001*\022\272\002\n\033UpdateDataRedact" - + "ionSettings\022B.google.analytics.admin.v1a" - + "lpha.UpdateDataRedactionSettingsRequest\032" - + "5.google.analytics.admin.v1alpha.DataRed" - + "actionSettings\"\237\001\332A#data_redaction_setti" - + "ngs,update_mask\202\323\344\223\002s2X/v1alpha/{data_re" - + "daction_settings.name=properties/*/dataS" - + "treams/*/dataRedactionSettings}:\027data_re" - + "daction_settings\022\343\001\n\030GetDataRedactionSet" - + "tings\022?.google.analytics.admin.v1alpha.G" - + "etDataRedactionSettingsRequest\0325.google." - + "analytics.admin.v1alpha.DataRedactionSet" - + "tings\"O\332A\004name\202\323\344\223\002B\022@/v1alpha/{name=pro" - + "perties/*/dataStreams/*/dataRedactionSet" - + "tings}\022\304\001\n\023GetCalculatedMetric\022:.google." - + "analytics.admin.v1alpha.GetCalculatedMet" - + "ricRequest\0320.google.analytics.admin.v1al" - + "pha.CalculatedMetric\"?\332A\004name\202\323\344\223\0022\0220/v1" - + "alpha/{name=properties/*/calculatedMetri" - + "cs/*}\022\206\002\n\026CreateCalculatedMetric\022=.googl" - + "e.analytics.admin.v1alpha.CreateCalculat" - + "edMetricRequest\0320.google.analytics.admin" - + ".v1alpha.CalculatedMetric\"{\332A-parent,cal" - + "culated_metric,calculated_metric_id\202\323\344\223\002" - + "E\"0/v1alpha/{parent=properties/*}/calcul" - + "atedMetrics:\021calculated_metric\022\327\001\n\025ListC" - + "alculatedMetrics\022<.google.analytics.admi" - + "n.v1alpha.ListCalculatedMetricsRequest\032=" - + ".google.analytics.admin.v1alpha.ListCalc" - + "ulatedMetricsResponse\"A\332A\006parent\202\323\344\223\0022\0220" - + "/v1alpha/{parent=properties/*}/calculate" - + "dMetrics\022\210\002\n\026UpdateCalculatedMetric\022=.go" - + "ogle.analytics.admin.v1alpha.UpdateCalcu" - + "latedMetricRequest\0320.google.analytics.ad" - + "min.v1alpha.CalculatedMetric\"}\332A\035calcula" - + "ted_metric,update_mask\202\323\344\223\002W2B/v1alpha/{" - + "calculated_metric.name=properties/*/calc" - + "ulatedMetrics/*}:\021calculated_metric\022\260\001\n\026" - + "DeleteCalculatedMetric\022=.google.analytic" - + "s.admin.v1alpha.DeleteCalculatedMetricRe" - + "quest\032\026.google.protobuf.Empty\"?\332A\004name\202\323" - + "\344\223\0022*0/v1alpha/{name=properties/*/calcul" - + "atedMetrics/*}\022\306\001\n\024CreateRollupProperty\022" - + ";.google.analytics.admin.v1alpha.CreateR" - + "ollupPropertyRequest\032<.google.analytics." - + "admin.v1alpha.CreateRollupPropertyRespon" - + "se\"3\202\323\344\223\002-\"(/v1alpha/properties:createRo" - + "llupProperty:\001*\022\344\001\n\033GetRollupPropertySou" - + "rceLink\022B.google.analytics.admin.v1alpha" - + ".GetRollupPropertySourceLinkRequest\0328.go" - + "ogle.analytics.admin.v1alpha.RollupPrope" - + "rtySourceLink\"G\332A\004name\202\323\344\223\002:\0228/v1alpha/{" - + "name=properties/*/rollupPropertySourceLi" - + "nks/*}\022\367\001\n\035ListRollupPropertySourceLinks" - + "\022D.google.analytics.admin.v1alpha.ListRo" - + "llupPropertySourceLinksRequest\032E.google." - + "analytics.admin.v1alpha.ListRollupProper" - + "tySourceLinksResponse\"I\332A\006parent\202\323\344\223\002:\0228" - + "/v1alpha/{parent=properties/*}/rollupPro" - + "pertySourceLinks\022\246\002\n\036CreateRollupPropert" - + "ySourceLink\022E.google.analytics.admin.v1a" - + "lpha.CreateRollupPropertySourceLinkReque" - + "st\0328.google.analytics.admin.v1alpha.Roll" - + "upPropertySourceLink\"\202\001\332A\"parent,rollup_" - + "property_source_link\202\323\344\223\002W\"8/v1alpha/{pa" - + "rent=properties/*}/rollupPropertySourceL" - + "inks:\033rollup_property_source_link\022\310\001\n\036De" - + "leteRollupPropertySourceLink\022E.google.an" - + "alytics.admin.v1alpha.DeleteRollupProper" - + "tySourceLinkRequest\032\026.google.protobuf.Em" - + "pty\"G\332A\004name\202\323\344\223\002:*8/v1alpha/{name=prope" - + "rties/*/rollupPropertySourceLinks/*}\022\306\001\n" - + "\024ProvisionSubproperty\022;.google.analytics" - + ".admin.v1alpha.ProvisionSubpropertyReque" - + "st\032<.google.analytics.admin.v1alpha.Prov" - + "isionSubpropertyResponse\"3\202\323\344\223\002-\"(/v1alp" - + "ha/properties:provisionSubproperty:\001*\022\227\002" - + "\n\034CreateSubpropertyEventFilter\022C.google." - + "analytics.admin.v1alpha.CreateSubpropert" - + "yEventFilterRequest\0326.google.analytics.a" - + "dmin.v1alpha.SubpropertyEventFilter\"z\332A\037" - + "parent,subproperty_event_filter\202\323\344\223\002R\"6/" - + "v1alpha/{parent=properties/*}/subpropert" - + "yEventFilters:\030subproperty_event_filter\022" - + "\334\001\n\031GetSubpropertyEventFilter\022@.google.a" - + "nalytics.admin.v1alpha.GetSubpropertyEve" - + "ntFilterRequest\0326.google.analytics.admin" - + ".v1alpha.SubpropertyEventFilter\"E\332A\004name" - + "\202\323\344\223\0028\0226/v1alpha/{name=properties/*/subp" - + "ropertyEventFilters/*}\022\357\001\n\033ListSubproper" - + "tyEventFilters\022B.google.analytics.admin." - + "v1alpha.ListSubpropertyEventFiltersReque" - + "st\032C.google.analytics.admin.v1alpha.List" - + "SubpropertyEventFiltersResponse\"G\332A\006pare" - + "nt\202\323\344\223\0028\0226/v1alpha/{parent=properties/*}" - + "/subpropertyEventFilters\022\266\002\n\034UpdateSubpr" - + "opertyEventFilter\022C.google.analytics.adm" - + "in.v1alpha.UpdateSubpropertyEventFilterR" - + "equest\0326.google.analytics.admin.v1alpha." - + "SubpropertyEventFilter\"\230\001\332A$subproperty_" - + "event_filter,update_mask\202\323\344\223\002k2O/v1alpha" - + "/{subproperty_event_filter.name=properti" - + "es/*/subpropertyEventFilters/*}:\030subprop" - + "erty_event_filter\022\302\001\n\034DeleteSubpropertyE" - + "ventFilter\022C.google.analytics.admin.v1al" - + "pha.DeleteSubpropertyEventFilterRequest\032" - + "\026.google.protobuf.Empty\"E\332A\004name\202\323\344\223\0028*6" - + "/v1alpha/{name=properties/*/subpropertyE" - + "ventFilters/*}\022\235\002\n\035CreateReportingDataAn" - + "notation\022D.google.analytics.admin.v1alph" - + "a.CreateReportingDataAnnotationRequest\0327" + + ".admin.v1alpha.EventEditRule\"\202\001\332A\033event_" + + "edit_rule,update_mask\202\323\344\223\002^2K/v1alpha/{e" + + "vent_edit_rule.name=properties/*/dataStr" + + "eams/*/eventEditRules/*}:\017event_edit_rul" + + "e\022\265\001\n\023DeleteEventEditRule\022:.google.analy" + + "tics.admin.v1alpha.DeleteEventEditRuleRe" + + "quest\032\026.google.protobuf.Empty\"J\332A\004name\202\323" + + "\344\223\002=*;/v1alpha/{name=properties/*/dataSt" + + "reams/*/eventEditRules/*}\022\275\001\n\025ReorderEve" + + "ntEditRules\022<.google.analytics.admin.v1a" + + "lpha.ReorderEventEditRulesRequest\032\026.goog" + + "le.protobuf.Empty\"N\202\323\344\223\002H\"C/v1alpha/{par" + + "ent=properties/*/dataStreams/*}/eventEdi" + + "tRules:reorder:\001*\022\272\002\n\033UpdateDataRedactio" + + "nSettings\022B.google.analytics.admin.v1alp" + + "ha.UpdateDataRedactionSettingsRequest\0325." + + "google.analytics.admin.v1alpha.DataRedac" + + "tionSettings\"\237\001\332A#data_redaction_setting" + + "s,update_mask\202\323\344\223\002s2X/v1alpha/{data_reda" + + "ction_settings.name=properties/*/dataStr" + + "eams/*/dataRedactionSettings}:\027data_reda" + + "ction_settings\022\343\001\n\030GetDataRedactionSetti" + + "ngs\022?.google.analytics.admin.v1alpha.Get" + + "DataRedactionSettingsRequest\0325.google.an" + + "alytics.admin.v1alpha.DataRedactionSetti" + + "ngs\"O\332A\004name\202\323\344\223\002B\022@/v1alpha/{name=prope" + + "rties/*/dataStreams/*/dataRedactionSetti" + + "ngs}\022\304\001\n\023GetCalculatedMetric\022:.google.an" + + "alytics.admin.v1alpha.GetCalculatedMetri" + + "cRequest\0320.google.analytics.admin.v1alph" + + "a.CalculatedMetric\"?\332A\004name\202\323\344\223\0022\0220/v1al" + + "pha/{name=properties/*/calculatedMetrics" + + "/*}\022\206\002\n\026CreateCalculatedMetric\022=.google." + + "analytics.admin.v1alpha.CreateCalculated" + + "MetricRequest\0320.google.analytics.admin.v" + + "1alpha.CalculatedMetric\"{\332A-parent,calcu" + + "lated_metric,calculated_metric_id\202\323\344\223\002E\"" + + "0/v1alpha/{parent=properties/*}/calculat" + + "edMetrics:\021calculated_metric\022\327\001\n\025ListCal" + + "culatedMetrics\022<.google.analytics.admin." + + "v1alpha.ListCalculatedMetricsRequest\032=.g" + + "oogle.analytics.admin.v1alpha.ListCalcul" + + "atedMetricsResponse\"A\332A\006parent\202\323\344\223\0022\0220/v" + + "1alpha/{parent=properties/*}/calculatedM" + + "etrics\022\210\002\n\026UpdateCalculatedMetric\022=.goog" + + "le.analytics.admin.v1alpha.UpdateCalcula" + + "tedMetricRequest\0320.google.analytics.admi" + + "n.v1alpha.CalculatedMetric\"}\332A\035calculate" + + "d_metric,update_mask\202\323\344\223\002W2B/v1alpha/{ca" + + "lculated_metric.name=properties/*/calcul" + + "atedMetrics/*}:\021calculated_metric\022\260\001\n\026De" + + "leteCalculatedMetric\022=.google.analytics." + + "admin.v1alpha.DeleteCalculatedMetricRequ" + + "est\032\026.google.protobuf.Empty\"?\332A\004name\202\323\344\223" + + "\0022*0/v1alpha/{name=properties/*/calculat" + + "edMetrics/*}\022\306\001\n\024CreateRollupProperty\022;." + + "google.analytics.admin.v1alpha.CreateRol" + + "lupPropertyRequest\032<.google.analytics.ad" + + "min.v1alpha.CreateRollupPropertyResponse" + + "\"3\202\323\344\223\002-\"(/v1alpha/properties:createRoll" + + "upProperty:\001*\022\344\001\n\033GetRollupPropertySourc" + + "eLink\022B.google.analytics.admin.v1alpha.G" + + "etRollupPropertySourceLinkRequest\0328.goog" + + "le.analytics.admin.v1alpha.RollupPropert" + + "ySourceLink\"G\332A\004name\202\323\344\223\002:\0228/v1alpha/{na" + + "me=properties/*/rollupPropertySourceLink" + + "s/*}\022\367\001\n\035ListRollupPropertySourceLinks\022D" + + ".google.analytics.admin.v1alpha.ListRoll" + + "upPropertySourceLinksRequest\032E.google.an" + + "alytics.admin.v1alpha.ListRollupProperty" + + "SourceLinksResponse\"I\332A\006parent\202\323\344\223\002:\0228/v" + + "1alpha/{parent=properties/*}/rollupPrope" + + "rtySourceLinks\022\246\002\n\036CreateRollupPropertyS" + + "ourceLink\022E.google.analytics.admin.v1alp" + + "ha.CreateRollupPropertySourceLinkRequest" + + "\0328.google.analytics.admin.v1alpha.Rollup" + + "PropertySourceLink\"\202\001\332A\"parent,rollup_pr" + + "operty_source_link\202\323\344\223\002W\"8/v1alpha/{pare" + + "nt=properties/*}/rollupPropertySourceLin" + + "ks:\033rollup_property_source_link\022\310\001\n\036Dele" + + "teRollupPropertySourceLink\022E.google.anal" + + "ytics.admin.v1alpha.DeleteRollupProperty" + + "SourceLinkRequest\032\026.google.protobuf.Empt" + + "y\"G\332A\004name\202\323\344\223\002:*8/v1alpha/{name=propert" + + "ies/*/rollupPropertySourceLinks/*}\022\306\001\n\024P" + + "rovisionSubproperty\022;.google.analytics.a" + + "dmin.v1alpha.ProvisionSubpropertyRequest" + + "\032<.google.analytics.admin.v1alpha.Provis" + + "ionSubpropertyResponse\"3\202\323\344\223\002-\"(/v1alpha" + + "/properties:provisionSubproperty:\001*\022\227\002\n\034" + + "CreateSubpropertyEventFilter\022C.google.an" + + "alytics.admin.v1alpha.CreateSubpropertyE" + + "ventFilterRequest\0326.google.analytics.adm" + + "in.v1alpha.SubpropertyEventFilter\"z\332A\037pa" + + "rent,subproperty_event_filter\202\323\344\223\002R\"6/v1" + + "alpha/{parent=properties/*}/subpropertyE" + + "ventFilters:\030subproperty_event_filter\022\334\001" + + "\n\031GetSubpropertyEventFilter\022@.google.ana" + + "lytics.admin.v1alpha.GetSubpropertyEvent" + + "FilterRequest\0326.google.analytics.admin.v" + + "1alpha.SubpropertyEventFilter\"E\332A\004name\202\323" + + "\344\223\0028\0226/v1alpha/{name=properties/*/subpro" + + "pertyEventFilters/*}\022\357\001\n\033ListSubproperty" + + "EventFilters\022B.google.analytics.admin.v1" + + "alpha.ListSubpropertyEventFiltersRequest" + + "\032C.google.analytics.admin.v1alpha.ListSu" + + "bpropertyEventFiltersResponse\"G\332A\006parent" + + "\202\323\344\223\0028\0226/v1alpha/{parent=properties/*}/s" + + "ubpropertyEventFilters\022\266\002\n\034UpdateSubprop" + + "ertyEventFilter\022C.google.analytics.admin" + + ".v1alpha.UpdateSubpropertyEventFilterReq" + + "uest\0326.google.analytics.admin.v1alpha.Su" + + "bpropertyEventFilter\"\230\001\332A$subproperty_ev" + + "ent_filter,update_mask\202\323\344\223\002k2O/v1alpha/{" + + "subproperty_event_filter.name=properties" + + "/*/subpropertyEventFilters/*}:\030subproper" + + "ty_event_filter\022\302\001\n\034DeleteSubpropertyEve" + + "ntFilter\022C.google.analytics.admin.v1alph" + + "a.DeleteSubpropertyEventFilterRequest\032\026." + + "google.protobuf.Empty\"E\332A\004name\202\323\344\223\0028*6/v" + + "1alpha/{name=properties/*/subpropertyEve" + + "ntFilters/*}\022\235\002\n\035CreateReportingDataAnno" + + "tation\022D.google.analytics.admin.v1alpha." + + "CreateReportingDataAnnotationRequest\0327.g" + + "oogle.analytics.admin.v1alpha.ReportingD" + + "ataAnnotation\"}\332A parent,reporting_data_" + + "annotation\202\323\344\223\002T\"7/v1alpha/{parent=prope" + + "rties/*}/reportingDataAnnotations:\031repor" + + "ting_data_annotation\022\340\001\n\032GetReportingDat" + + "aAnnotation\022A.google.analytics.admin.v1a" + + "lpha.GetReportingDataAnnotationRequest\0327" + ".google.analytics.admin.v1alpha.Reportin" - + "gDataAnnotation\"}\332A parent,reporting_dat" - + "a_annotation\202\323\344\223\002T\"7/v1alpha/{parent=pro" - + "perties/*}/reportingDataAnnotations:\031rep" - + "orting_data_annotation\022\340\001\n\032GetReportingD" - + "ataAnnotation\022A.google.analytics.admin.v" - + "1alpha.GetReportingDataAnnotationRequest" - + "\0327.google.analytics.admin.v1alpha.Report" - + "ingDataAnnotation\"F\332A\004name\202\323\344\223\0029\0227/v1alp" - + "ha/{name=properties/*/reportingDataAnnot" - + "ations/*}\022\363\001\n\034ListReportingDataAnnotatio" - + "ns\022C.google.analytics.admin.v1alpha.List" - + "ReportingDataAnnotationsRequest\032D.google" - + ".analytics.admin.v1alpha.ListReportingDa" - + "taAnnotationsResponse\"H\332A\006parent\202\323\344\223\0029\0227" - + "/v1alpha/{parent=properties/*}/reporting" - + "DataAnnotations\022\275\002\n\035UpdateReportingDataA" - + "nnotation\022D.google.analytics.admin.v1alp" - + "ha.UpdateReportingDataAnnotationRequest\032" - + "7.google.analytics.admin.v1alpha.Reporti" - + "ngDataAnnotation\"\234\001\332A%reporting_data_ann" - + "otation,update_mask\202\323\344\223\002n2Q/v1alpha/{rep" - + "orting_data_annotation.name=properties/*" - + "/reportingDataAnnotations/*}:\031reporting_" - + "data_annotation\022\305\001\n\035DeleteReportingDataA" - + "nnotation\022D.google.analytics.admin.v1alp" - + "ha.DeleteReportingDataAnnotationRequest\032" - + "\026.google.protobuf.Empty\"F\332A\004name\202\323\344\223\0029*7" - + "/v1alpha/{name=properties/*/reportingDat" - + "aAnnotations/*}\022\316\001\n\022SubmitUserDeletion\0229" - + ".google.analytics.admin.v1alpha.SubmitUs" - + "erDeletionRequest\032:.google.analytics.adm" - + "in.v1alpha.SubmitUserDeletionResponse\"A\332" - + "A\004name\202\323\344\223\0024\"//v1alpha/{name=properties/" - + "*}:submitUserDeletion:\001*\022\353\001\n\032ListSubprop" - + "ertySyncConfigs\022A.google.analytics.admin" - + ".v1alpha.ListSubpropertySyncConfigsReque" - + "st\032B.google.analytics.admin.v1alpha.List" - + "SubpropertySyncConfigsResponse\"F\332A\006paren" - + "t\202\323\344\223\0027\0225/v1alpha/{parent=properties/*}/" - + "subpropertySyncConfigs\022\257\002\n\033UpdateSubprop" - + "ertySyncConfig\022B.google.analytics.admin." - + "v1alpha.UpdateSubpropertySyncConfigReque" - + "st\0325.google.analytics.admin.v1alpha.Subp", - "ropertySyncConfig\"\224\001\332A#subproperty_sync_" - + "config,update_mask\202\323\344\223\002h2M/v1alpha/{subp" - + "roperty_sync_config.name=properties/*/su" - + "bpropertySyncConfigs/*}:\027subproperty_syn" - + "c_config\022\330\001\n\030GetSubpropertySyncConfig\022?." - + "google.analytics.admin.v1alpha.GetSubpro" - + "pertySyncConfigRequest\0325.google.analytic" - + "s.admin.v1alpha.SubpropertySyncConfig\"D\332" - + "A\004name\202\323\344\223\0027\0225/v1alpha/{name=properties/" - + "*/subpropertySyncConfigs/*}\022\345\001\n\034GetRepor" - + "tingIdentitySettings\022C.google.analytics." - + "admin.v1alpha.GetReportingIdentitySettin" - + "gsRequest\0329.google.analytics.admin.v1alp" - + "ha.ReportingIdentitySettings\"E\332A\004name\202\323\344" - + "\223\0028\0226/v1alpha/{name=properties/*/reporti" - + "ngIdentitySettings}\022\341\001\n\033GetUserProvidedD" - + "ataSettings\022B.google.analytics.admin.v1a" - + "lpha.GetUserProvidedDataSettingsRequest\032" - + "8.google.analytics.admin.v1alpha.UserPro" - + "videdDataSettings\"D\332A\004name\202\323\344\223\0027\0225/v1alp" - + "ha/{name=properties/*/userProvidedDataSe" - + "ttings}\032\374\001\312A\035analyticsadmin.googleapis.c" - + "om\322A\330\001https://www.googleapis.com/auth/an" - + "alytics.edit,https://www.googleapis.com/" - + "auth/analytics.manage.users,https://www." - + "googleapis.com/auth/analytics.manage.use" - + "rs.readonly,https://www.googleapis.com/a" - + "uth/analytics.readonlyB{\n\"com.google.ana" - + "lytics.admin.v1alphaB\023AnalyticsAdminProt" - + "oP\001Z>cloud.google.com/go/analytics/admin" - + "/apiv1alpha/adminpb;adminpbb\006proto3" + + "gDataAnnotation\"F\332A\004name\202\323\344\223\0029\0227/v1alpha" + + "/{name=properties/*/reportingDataAnnotat" + + "ions/*}\022\363\001\n\034ListReportingDataAnnotations" + + "\022C.google.analytics.admin.v1alpha.ListRe" + + "portingDataAnnotationsRequest\032D.google.a" + + "nalytics.admin.v1alpha.ListReportingData" + + "AnnotationsResponse\"H\332A\006parent\202\323\344\223\0029\0227/v" + + "1alpha/{parent=properties/*}/reportingDa" + + "taAnnotations\022\275\002\n\035UpdateReportingDataAnn" + + "otation\022D.google.analytics.admin.v1alpha" + + ".UpdateReportingDataAnnotationRequest\0327." + + "google.analytics.admin.v1alpha.Reporting" + + "DataAnnotation\"\234\001\332A%reporting_data_annot" + + "ation,update_mask\202\323\344\223\002n2Q/v1alpha/{repor" + + "ting_data_annotation.name=properties/*/r" + + "eportingDataAnnotations/*}:\031reporting_da" + + "ta_annotation\022\305\001\n\035DeleteReportingDataAnn" + + "otation\022D.google.analytics.admin.v1alpha" + + ".DeleteReportingDataAnnotationRequest\032\026." + + "google.protobuf.Empty\"F\332A\004name\202\323\344\223\0029*7/v" + + "1alpha/{name=properties/*/reportingDataA" + + "nnotations/*}\022\316\001\n\022SubmitUserDeletion\0229.g" + + "oogle.analytics.admin.v1alpha.SubmitUser" + + "DeletionRequest\032:.google.analytics.admin" + + ".v1alpha.SubmitUserDeletionResponse\"A\332A\004" + + "name\202\323\344\223\0024\"//v1alpha/{name=properties/*}" + + ":submitUserDeletion:\001*\022\353\001\n\032ListSubproper" + + "tySyncConfigs\022A.google.analytics.admin.v" + + "1alpha.ListSubpropertySyncConfigsRequest" + + "\032B.google.analytics.admin.v1alpha.ListSu" + + "bpropertySyncConfigsResponse\"F\332A\006parent\202", + "\323\344\223\0027\0225/v1alpha/{parent=properties/*}/su" + + "bpropertySyncConfigs\022\257\002\n\033UpdateSubproper" + + "tySyncConfig\022B.google.analytics.admin.v1" + + "alpha.UpdateSubpropertySyncConfigRequest" + + "\0325.google.analytics.admin.v1alpha.Subpro" + + "pertySyncConfig\"\224\001\332A#subproperty_sync_co" + + "nfig,update_mask\202\323\344\223\002h2M/v1alpha/{subpro" + + "perty_sync_config.name=properties/*/subp" + + "ropertySyncConfigs/*}:\027subproperty_sync_" + + "config\022\330\001\n\030GetSubpropertySyncConfig\022?.go" + + "ogle.analytics.admin.v1alpha.GetSubprope" + + "rtySyncConfigRequest\0325.google.analytics." + + "admin.v1alpha.SubpropertySyncConfig\"D\332A\004" + + "name\202\323\344\223\0027\0225/v1alpha/{name=properties/*/" + + "subpropertySyncConfigs/*}\022\345\001\n\034GetReporti" + + "ngIdentitySettings\022C.google.analytics.ad" + + "min.v1alpha.GetReportingIdentitySettings" + + "Request\0329.google.analytics.admin.v1alpha" + + ".ReportingIdentitySettings\"E\332A\004name\202\323\344\223\002" + + "8\0226/v1alpha/{name=properties/*/reporting" + + "IdentitySettings}\022\310\002\n\037UpdateReportingIde" + + "ntitySettings\022F.google.analytics.admin.v" + + "1alpha.UpdateReportingIdentitySettingsRe" + + "quest\0329.google.analytics.admin.v1alpha.R" + + "eportingIdentitySettings\"\241\001\332A\'reporting_" + + "identity_settings,update_mask\202\323\344\223\002q2R/v1" + + "alpha/{reporting_identity_settings.name=" + + "properties/*/reportingIdentitySettings}:" + + "\033reporting_identity_settings\022\341\001\n\033GetUser" + + "ProvidedDataSettings\022B.google.analytics." + + "admin.v1alpha.GetUserProvidedDataSetting" + + "sRequest\0328.google.analytics.admin.v1alph" + + "a.UserProvidedDataSettings\"D\332A\004name\202\323\344\223\002" + + "7\0225/v1alpha/{name=properties/*/userProvi" + + "dedDataSettings}\032\374\001\312A\035analyticsadmin.goo" + + "gleapis.com\322A\330\001https://www.googleapis.co" + + "m/auth/analytics.edit,https://www.google" + + "apis.com/auth/analytics.manage.users,htt" + + "ps://www.googleapis.com/auth/analytics.m" + + "anage.users.readonly,https://www.googlea" + + "pis.com/auth/analytics.readonlyB{\n\"com.g" + + "oogle.analytics.admin.v1alphaB\023Analytics" + + "AdminProtoP\001Z>cloud.google.com/go/analyt" + + "ics/admin/apiv1alpha/adminpb;adminpbb\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -4083,8 +4101,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor = + internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_descriptor = getDescriptor().getMessageType(193); + internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_descriptor, + new java.lang.String[] { + "ReportingIdentitySettings", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor = + getDescriptor().getMessageType(194); internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor, diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java index decb5b26bcaf..926777d57581 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java @@ -281,6 +281,26 @@ public com.google.protobuf.ByteString getParentBytes() { } } + public static final int CAN_EDIT_FIELD_NUMBER = 5; + private boolean canEdit_ = false; + + /** + * + * + *
            +   * If true, then the user has a Google Analytics role that permits them to
            +   * edit the property.
            +   * 
            + * + * bool can_edit = 5; + * + * @return The canEdit. + */ + @java.lang.Override + public boolean getCanEdit() { + return canEdit_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -308,6 +328,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, parent_); } + if (canEdit_ != false) { + output.writeBool(5, canEdit_); + } getUnknownFields().writeTo(output); } @@ -330,6 +353,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, parent_); } + if (canEdit_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, canEdit_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -350,6 +376,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDisplayName().equals(other.getDisplayName())) return false; if (propertyType_ != other.propertyType_) return false; if (!getParent().equals(other.getParent())) return false; + if (getCanEdit() != other.getCanEdit()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -369,6 +396,8 @@ public int hashCode() { hash = (53 * hash) + propertyType_; hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + CAN_EDIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCanEdit()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -513,6 +542,7 @@ public Builder clear() { displayName_ = ""; propertyType_ = 0; parent_ = ""; + canEdit_ = false; return this; } @@ -561,6 +591,9 @@ private void buildPartial0(com.google.analytics.admin.v1alpha.PropertySummary re if (((from_bitField0_ & 0x00000008) != 0)) { result.parent_ = parent_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.canEdit_ = canEdit_; + } } @java.lang.Override @@ -594,6 +627,9 @@ public Builder mergeFrom(com.google.analytics.admin.v1alpha.PropertySummary othe bitField0_ |= 0x00000008; onChanged(); } + if (other.getCanEdit() != false) { + setCanEdit(other.getCanEdit()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -644,6 +680,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 40: + { + canEdit_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1121,6 +1163,65 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } + private boolean canEdit_; + + /** + * + * + *
            +     * If true, then the user has a Google Analytics role that permits them to
            +     * edit the property.
            +     * 
            + * + * bool can_edit = 5; + * + * @return The canEdit. + */ + @java.lang.Override + public boolean getCanEdit() { + return canEdit_; + } + + /** + * + * + *
            +     * If true, then the user has a Google Analytics role that permits them to
            +     * edit the property.
            +     * 
            + * + * bool can_edit = 5; + * + * @param value The canEdit to set. + * @return This builder for chaining. + */ + public Builder setCanEdit(boolean value) { + + canEdit_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * If true, then the user has a Google Analytics role that permits them to
            +     * edit the property.
            +     * 
            + * + * bool can_edit = 5; + * + * @return This builder for chaining. + */ + public Builder clearCanEdit() { + bitField0_ = (bitField0_ & ~0x00000010); + canEdit_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.PropertySummary) } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java index d43abced655c..04a41f9285f5 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java @@ -141,4 +141,18 @@ public interface PropertySummaryOrBuilder * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * If true, then the user has a Google Analytics role that permits them to
            +   * edit the property.
            +   * 
            + * + * bool can_edit = 5; + * + * @return The canEdit. + */ + boolean getCanEdit(); } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java index c9088665a89c..5482bc2b6690 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java @@ -347,50 +347,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022property_summaries\030\004 \003(\013" + "2/.google.analytics.admin.v1alpha.PropertySummary:w\352At\n" + ",analyticsadmin.googleapis.com/AccountSummary\022\"accountSummaries/{" - + "account_summary}*\020accountSummaries2\016accountSummary\"\273\001\n" + + "account_summary}*\020accountSummaries2\016accountSummary\"\315\001\n" + "\017PropertySummary\022=\n" + "\010property\030\001 \001(\tB+\372A(\n" + "&analyticsadmin.googleapis.com/Property\022\024\n" + "\014display_name\030\002 \001(\t\022C\n\r" + "property_type\030\003" + " \001(\0162,.google.analytics.admin.v1alpha.PropertyType\022\016\n" - + "\006parent\030\004 \001(\t\"\305\002\n" + + "\006parent\030\004 \001(\t\022\020\n" + + "\010can_edit\030\005 \001(\010\"\305\002\n" + "\031MeasurementProtocolSecret\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\031\n" + "\014secret_value\030\003 \001(\tB\003\340A\003:\336\001\352A\332\001\n" - + "7analyticsadmin.googleapis.com/MeasurementProtoco" - + "lSecret\022hproperties/{property}/dataStreams/{data_stream}/measurementProtocolSecr" - + "ets/{measurement_protocol_secret}*\032measu" - + "rementProtocolSecrets2\031measurementProtocolSecret\"\310\004\n" + + "7analyticsadmin.googleapis.com/MeasurementProtocolSecret\022hproperties/{p" + + "roperty}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_proto" + + "col_secret}*\032measurementProtocolSecrets2\031measurementProtocolSecret\"\310\004\n" + " SKAdNetworkConversionValueSchema\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022P\n" - + "\023postback_window_one\030\002" - + " \001(\0132..google.analytics.admin.v1alpha.PostbackWindowB\003\340A\002\022K\n" - + "\023postback_window_two\030\003" - + " \001(\0132..google.analytics.admin.v1alpha.PostbackWindow\022M\n" - + "\025postback_window_three\030\004" - + " \001(\0132..google.analytics.admin.v1alpha.PostbackWindow\022\037\n" + + "\023postback_window_one\030\002 \001(\0132..google" + + ".analytics.admin.v1alpha.PostbackWindowB\003\340A\002\022K\n" + + "\023postback_window_two\030\003 \001(\0132..goog" + + "le.analytics.admin.v1alpha.PostbackWindow\022M\n" + + "\025postback_window_three\030\004 \001(\0132..googl" + + "e.analytics.admin.v1alpha.PostbackWindow\022\037\n" + "\027apply_conversion_values\030\005 \001(\010:\201\002\352A\375\001\n" - + ">analyticsadmin.googleapis.com/SKAdNetworkConversionValue" - + "Schema\022vproperties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionVal" - + "ueSchema/{skadnetwork_conversion_value_schema}*!skAdNetworkConversionValueSchemas2" + + ">analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\022vproperties/{pr" + + "operty}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_" + + "conversion_value_schema}*!skAdNetworkConversionValueSchemas2" + " skAdNetworkConversionValueSchema\"\207\001\n" + "\016PostbackWindow\022K\n" - + "\021conversion_values\030\001 \003(" - + "\01320.google.analytics.admin.v1alpha.ConversionValues\022(\n" + + "\021conversion_values\030\001" + + " \003(\01320.google.analytics.admin.v1alpha.ConversionValues\022(\n" + " postback_window_settings_enabled\030\002 \001(\010\"\364\001\n" + "\020ConversionValues\022\024\n" + "\014display_name\030\001 \001(\t\022\027\n\n" + "fine_value\030\002 \001(\005H\000\210\001\001\022F\n" - + "\014coarse_value\030\003" - + " \001(\0162+.google.analytics.admin.v1alpha.CoarseValueB\003\340A\002\022D\n" - + "\016event_mappings\030\004" - + " \003(\0132,.google.analytics.admin.v1alpha.EventMapping\022\024\n" + + "\014coarse_value\030\003 \001(" + + "\0162+.google.analytics.admin.v1alpha.CoarseValueB\003\340A\002\022D\n" + + "\016event_mappings\030\004 \003(\0132,.go" + + "ogle.analytics.admin.v1alpha.EventMapping\022\024\n" + "\014lock_enabled\030\005 \001(\010B\r\n" + "\013_fine_value\"\357\001\n" - + "\014EventMapping\022\027\n" - + "\n" + + "\014EventMapping\022\027\n\n" + "event_name\030\001 \001(\tB\003\340A\002\022\034\n" + "\017min_event_count\030\002 \001(\003H\000\210\001\001\022\034\n" + "\017max_event_count\030\003 \001(\003H\001\210\001\001\022\034\n" @@ -406,73 +405,73 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "actor_type\030\003 \001(\0162).google.analytics.admin.v1alpha.ActorType\022\030\n" + "\020user_actor_email\030\004 \001(\t\022\030\n" + "\020changes_filtered\030\005 \001(\010\022D\n" - + "\007changes\030\006 \003(\01323" - + ".google.analytics.admin.v1alpha.ChangeHistoryChange\"\231\026\n" + + "\007changes\030\006" + + " \003(\01323.google.analytics.admin.v1alpha.ChangeHistoryChange\"\231\026\n" + "\023ChangeHistoryChange\022\020\n" + "\010resource\030\001 \001(\t\022:\n" + "\006action\030\002 \001(\0162*.google.analytics.admin.v1alpha.ActionType\022i\n" - + "\026resource_before_change\030\003 \001(\0132I.google.analy" - + "tics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource\022h\n" - + "\025resource_after_change\030\004 \001(\0132I.google.analytics.admin.v1a" - + "lpha.ChangeHistoryChange.ChangeHistoryResource\032\336\023\n" + + "\026resource_before_change\030\003 \001(\0132I.google.analytics.admin.v1alpha.Cha" + + "ngeHistoryChange.ChangeHistoryResource\022h\n" + + "\025resource_after_change\030\004 \001(\0132I.google.a" + + "nalytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource\032\336\023\n" + "\025ChangeHistoryResource\022:\n" + "\007account\030\001 \001(\0132\'.google.analytics.admin.v1alpha.AccountH\000\022<\n" + "\010property\030\002 \001(\0132(.google.analytics.admin.v1alpha.PropertyH\000\022E\n\r" - + "firebase_link\030\006" - + " \001(\0132,.google.analytics.admin.v1alpha.FirebaseLinkH\000\022H\n" + + "firebase_link\030\006 \001(\0132,.go" + + "ogle.analytics.admin.v1alpha.FirebaseLinkH\000\022H\n" + "\017google_ads_link\030\007" + " \001(\0132-.google.analytics.admin.v1alpha.GoogleAdsLinkH\000\022X\n" - + "\027google_signals_settings\030\010" - + " \001(\01325.google.analytics.admin.v1alpha.GoogleSignalsSettingsH\000\022j\n" - + "!display_video_360_advertiser_link\030\t \001(\0132=.googl" - + "e.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkH\000\022{\n" + + "\027google_signals_settings\030\010 \001(\01325.google." + + "analytics.admin.v1alpha.GoogleSignalsSettingsH\000\022j\n" + + "!display_video_360_advertiser_link\030\t" + + " \001(\0132=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkH\000\022{\n" + "*display_video_360_advertiser_link_proposal\030\n" - + " \001(\0132E.google.a" - + "nalytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalH\000\022K\n" + + " \001(\0132E.google.analytics.admin.v1alpha" + + ".DisplayVideo360AdvertiserLinkProposalH\000\022K\n" + "\020conversion_event\030\013" + " \001(\0132/.google.analytics.admin.v1alpha.ConversionEventH\000\022`\n" - + "\033measurement_protocol_secret\030\014" - + " \001(\01329.google.analytics.admin.v1alpha.MeasurementProtocolSecretH\000\022K\n" + + "\033measurement_protocol_secret\030\014 \001(\01329.goo" + + "gle.analytics.admin.v1alpha.MeasurementProtocolSecretH\000\022K\n" + "\020custom_dimension\030\r" + " \001(\0132/.google.analytics.admin.v1alpha.CustomDimensionH\000\022E\n\r" - + "custom_metric\030\016" - + " \001(\0132,.google.analytics.admin.v1alpha.CustomMetricH\000\022X\n" - + "\027data_retention_settings\030\017" - + " \001(\01325.google.analytics.admin.v1alpha.DataRetentionSettingsH\000\022O\n" - + "\023search_ads_360_link\030\020" - + " \001(\01320.google.analytics.admin.v1alpha.SearchAds360LinkH\000\022A\n" - + "\013data_stream\030\022" - + " \001(\0132*.google.analytics.admin.v1alpha.DataStreamH\000\022S\n" - + "\024attribution_settings\030\024" - + " \001(\01323.google.analytics.admin.v1alpha.AttributionSettingsH\000\022L\n" - + "\021expanded_data_set\030\025" - + " \001(\0132/.google.analytics.admin.v1alpha.ExpandedDataSetH\000\022E\n\r" + + "custom_metric\030\016 \001(\0132,.go" + + "ogle.analytics.admin.v1alpha.CustomMetricH\000\022X\n" + + "\027data_retention_settings\030\017 \001(\01325.g" + + "oogle.analytics.admin.v1alpha.DataRetentionSettingsH\000\022O\n" + + "\023search_ads_360_link\030\020 \001" + + "(\01320.google.analytics.admin.v1alpha.SearchAds360LinkH\000\022A\n" + + "\013data_stream\030\022 \001(\0132*.go" + + "ogle.analytics.admin.v1alpha.DataStreamH\000\022S\n" + + "\024attribution_settings\030\024 \001(\01323.google" + + ".analytics.admin.v1alpha.AttributionSettingsH\000\022L\n" + + "\021expanded_data_set\030\025 \001(\0132/.goog" + + "le.analytics.admin.v1alpha.ExpandedDataSetH\000\022E\n\r" + "channel_group\030\026" + " \001(\0132,.google.analytics.admin.v1alpha.ChannelGroupH\000\022E\n\r" - + "bigquery_link\030\027 \001(\013" - + "2,.google.analytics.admin.v1alpha.BigQueryLinkH\000\022d\n" - + "\035enhanced_measurement_settings\030\030" - + " \001(\0132;.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsH\000\022X\n" - + "\027data_redaction_settings\030\031 \001(\01325.google.analyti" - + "cs.admin.v1alpha.DataRedactionSettingsH\000\022o\n" - + "#skadnetwork_conversion_value_schema\030\032" - + " \001(\0132@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaH\000\022C\n" - + "\014adsense_link\030\033" - + " \001(\0132+.google.analytics.admin.v1alpha.AdSenseLinkH\000\022<\n" + + "bigquery_link\030\027" + + " \001(\0132,.google.analytics.admin.v1alpha.BigQueryLinkH\000\022d\n" + + "\035enhanced_measurement_settings\030\030 \001(\0132;.google.analy" + + "tics.admin.v1alpha.EnhancedMeasurementSettingsH\000\022X\n" + + "\027data_redaction_settings\030\031 \001(" + + "\01325.google.analytics.admin.v1alpha.DataRedactionSettingsH\000\022o\n" + + "#skadnetwork_conversion_value_schema\030\032 \001(\0132@.google.analyti" + + "cs.admin.v1alpha.SKAdNetworkConversionValueSchemaH\000\022C\n" + + "\014adsense_link\030\033 \001(\0132+.goog" + + "le.analytics.admin.v1alpha.AdSenseLinkH\000\022<\n" + "\010audience\030\034 \001(\0132(.google.analytics.admin.v1alpha.AudienceH\000\022L\n" - + "\021event_create_rule\030\035 \001(\0132/.google" - + ".analytics.admin.v1alpha.EventCreateRuleH\000\022=\n" + + "\021event_create_rule\030\035" + + " \001(\0132/.google.analytics.admin.v1alpha.EventCreateRuleH\000\022=\n" + "\tkey_event\030\036 \001(\0132(.google.analytics.admin.v1alpha.KeyEventH\000\022M\n" - + "\021calculated_metric\030\037" - + " \001(\01320.google.analytics.admin.v1alpha.CalculatedMetricH\000\022\\\n" - + "\031reporting_data_annotation\030 \001(\01327.google.analytics.a" - + "dmin.v1alpha.ReportingDataAnnotationH\000\022X\n" - + "\027subproperty_sync_config\030! \001(\01325.google" - + ".analytics.admin.v1alpha.SubpropertySyncConfigH\000\022`\n" - + "\033reporting_identity_settings\030\"" - + " \001(\01329.google.analytics.admin.v1alpha.ReportingIdentitySettingsH\000\022_\n" - + "\033user_provided_data_settings\030# \001(\01328.google.analyti" - + "cs.admin.v1alpha.UserProvidedDataSettingsH\000B\n\n" + + "\021calculated_metric\030\037 \001(\01320.google." + + "analytics.admin.v1alpha.CalculatedMetricH\000\022\\\n" + + "\031reporting_data_annotation\030 \001(\01327." + + "google.analytics.admin.v1alpha.ReportingDataAnnotationH\000\022X\n" + + "\027subproperty_sync_config\030!" + + " \001(\01325.google.analytics.admin.v1alpha.SubpropertySyncConfigH\000\022`\n" + + "\033reporting_identity_settings\030\" \001(\01329.google.analyti" + + "cs.admin.v1alpha.ReportingIdentitySettingsH\000\022_\n" + + "\033user_provided_data_settings\030# \001(" + + "\01328.google.analytics.admin.v1alpha.UserProvidedDataSettingsH\000B\n\n" + "\010resource\"\236\004\n" + "\035DisplayVideo360AdvertiserLink\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\032\n\r" @@ -484,15 +483,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005\022B\n" + "\031cost_data_sharing_enabled\030\006" + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005:\332\001\352A\326\001\n" - + ";analyticsadmin.googleapis.com/DisplayVideo360Adverti" - + "serLink\022Xproperties/{property}/displayVideo360AdvertiserLinks/{display_video_360" - + "_advertiser_link}*\036displayVideo360Advert" - + "iserLinks2\035displayVideo360AdvertiserLink\"\331\005\n" + + ";analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\022Xproperties/{p" + + "roperty}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}*\036dis" + + "playVideo360AdvertiserLinks2\035displayVideo360AdvertiserLink\"\331\005\n" + "%DisplayVideo360AdvertiserLinkProposal\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\032\n\r" + "advertiser_id\030\002 \001(\tB\003\340A\005\022d\n" - + "\034link_proposal_status_details\030\003" - + " \001(\01329.google.analytics.admin.v1alpha.LinkProposalStatusDetailsB\003\340A\003\022$\n" + + "\034link_proposal_status_details\030\003 \001(\01329.google.analy" + + "tics.admin.v1alpha.LinkProposalStatusDetailsB\003\340A\003\022$\n" + "\027advertiser_display_name\030\004 \001(\tB\003\340A\003\022\035\n" + "\020validation_email\030\005 \001(\tB\003\340A\004\022D\n" + "\033ads_personalization_enabled\030\006" @@ -501,10 +499,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005\022B\n" + "\031cost_data_sharing_enabled\030\010" + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005:\203\002\352A\377\001\n" - + "Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\022iproperties/{" - + "property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_l" - + "ink_proposal}*&displayVideo360Advertiser" - + "LinkProposals2%displayVideo360AdvertiserLinkProposal\"\217\004\n" + + "Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProp" + + "osal\022iproperties/{property}/displayVideo360AdvertiserLinkProposals/{display_vide" + + "o_360_advertiser_link_proposal}*&display" + + "Video360AdvertiserLinkProposals2%displayVideo360AdvertiserLinkProposal\"\217\004\n" + "\020SearchAds360Link\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\032\n\r" + "advertiser_id\030\002 \001(\tB\003\340A\005\022F\n" @@ -517,15 +515,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.BoolValue\022>\n" + "\032site_stats_sharing_enabled\030\007" + " \001(\0132\032.google.protobuf.BoolValue:\230\001\352A\224\001\n" - + ".analyticsadmin.googleapis.com/SearchAds360Li" - + "nk\022=properties/{property}/searchAds360Li" - + "nks/{search_ads_360_link}*\021searchAds360Links2\020searchAds360Link\"\374\001\n" + + ".analyticsadmin.googleapis.com/SearchAds360Link\022=properties/{proper" + + "ty}/searchAds360Links/{search_ads_360_li" + + "nk}*\021searchAds360Links2\020searchAds360Link\"\374\001\n" + "\031LinkProposalStatusDetails\022l\n" - + " link_proposal_initiating_product\030\001 \001(\0162=.google.analytics.admin." - + "v1alpha.LinkProposalInitiatingProductB\003\340A\003\022\034\n" + + " link_proposal_initiating_product\030\001 \001(\0162=.googl" + + "e.analytics.admin.v1alpha.LinkProposalInitiatingProductB\003\340A\003\022\034\n" + "\017requestor_email\030\002 \001(\tB\003\340A\003\022S\n" - + "\023link_proposal_state\030\003 \001(\01621.google.analytics" - + ".admin.v1alpha.LinkProposalStateB\003\340A\003\"\205\006\n" + + "\023link_proposal_state\030\003 \001(\0162" + + "1.google.analytics.admin.v1alpha.LinkProposalStateB\003\340A\003\"\205\006\n" + "\017ConversionEvent\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\027\n\n" + "event_name\030\002 \001(\tB\003\340A\005\0224\n" @@ -533,10 +531,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\026\n" + "\tdeletable\030\004 \001(\010B\003\340A\003\022\023\n" + "\006custom\030\005 \001(\010B\003\340A\003\022f\n" - + "\017counting_method\030\006 \001(\0162H.google.analy" - + "tics.admin.v1alpha.ConversionEvent.ConversionCountingMethodB\003\340A\001\022r\n" - + "\030default_conversion_value\030\007 \001(\0132F.google.analytics.ad" - + "min.v1alpha.ConversionEvent.DefaultConversionValueB\003\340A\001H\000\210\001\001\032d\n" + + "\017counting_method\030\006 \001(\0162H.google.analytics.admin.v1alpha.Con" + + "versionEvent.ConversionCountingMethodB\003\340A\001\022r\n" + + "\030default_conversion_value\030\007 \001(\0132F.g" + + "oogle.analytics.admin.v1alpha.Conversion" + + "Event.DefaultConversionValueB\003\340A\001H\000\210\001\001\032d\n" + "\026DefaultConversionValue\022\022\n" + "\005value\030\001 \001(\001H\000\210\001\001\022\032\n\r" + "currency_code\030\002 \001(\tH\001\210\001\001B\010\n" @@ -546,8 +545,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&CONVERSION_COUNTING_METHOD_UNSPECIFIED\020\000\022\022\n" + "\016ONCE_PER_EVENT\020\001\022\024\n" + "\020ONCE_PER_SESSION\020\002:\221\001\352A\215\001\n" - + "-analyticsadmin.googleapis.com/ConversionEvent\0229properties/{property}/conver" - + "sionEvents/{conversion_event}*\020conversionEvents2\017conversionEventB\033\n" + + "-analyticsadmin.googleapis.com/ConversionEvent\0229properties" + + "/{property}/conversionEvents/{conversion" + + "_event}*\020conversionEvents2\017conversionEventB\033\n" + "\031_default_conversion_value\"\327\004\n" + "\010KeyEvent\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\027\n\n" @@ -556,10 +556,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\026\n" + "\tdeletable\030\004 \001(\010B\003\340A\003\022\023\n" + "\006custom\030\005 \001(\010B\003\340A\003\022U\n" - + "\017counting_method\030\006 \001(\01627.goo" - + "gle.analytics.admin.v1alpha.KeyEvent.CountingMethodB\003\340A\002\022Q\n\r" - + "default_value\030\007 \001(\0132" - + "5.google.analytics.admin.v1alpha.KeyEvent.DefaultValueB\003\340A\001\032F\n" + + "\017counting_method\030\006" + + " \001(\01627.google.analytics.admin.v1alpha.KeyEvent.CountingMethodB\003\340A\002\022Q\n\r" + + "default_value\030\007" + + " \001(\01325.google.analytics.admin.v1alpha.KeyEvent.DefaultValueB\003\340A\001\032F\n" + "\014DefaultValue\022\032\n\r" + "numeric_value\030\001 \001(\001B\003\340A\002\022\032\n\r" + "currency_code\030\002 \001(\tB\003\340A\002\"[\n" @@ -567,42 +567,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033COUNTING_METHOD_UNSPECIFIED\020\000\022\022\n" + "\016ONCE_PER_EVENT\020\001\022\024\n" + "\020ONCE_PER_SESSION\020\002:m\352Aj\n" - + "&analytics" - + "admin.googleapis.com/KeyEvent\022+properties/{property}/keyEvents/{key_event}*" + + "&analyticsadmin.googleapis.com/K" + + "eyEvent\022+properties/{property}/keyEvents/{key_event}*" + "\tkeyEvents2\010keyEvent\"\240\002\n" + "\025GoogleSignalsSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022A\n" + "\005state\030\003 \001(\01622.google.analytics.admin.v1alpha.GoogleSignalsState\022J\n" - + "\007consent\030\004 \001(\01624.google.analyt" - + "ics.admin.v1alpha.GoogleSignalsConsentB\003\340A\003:e\352Ab\n" - + "3analyticsadmin.googleapis.com/" - + "GoogleSignalsSettings\022+properties/{property}/googleSignalsSettings\"\341\003\n" + + "\007consent\030\004 \001" + + "(\01624.google.analytics.admin.v1alpha.GoogleSignalsConsentB\003\340A\003:e\352Ab\n" + + "3analyticsadmin.googleapis.com/GoogleSignalsSettings\022" + + "+properties/{property}/googleSignalsSettings\"\341\003\n" + "\017CustomDimension\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + "\016parameter_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022\030\n" + "\013description\030\004 \001(\tB\003\340A\001\022U\n" - + "\005scope\030\005" - + " \001(\0162>.google.analytics.admin.v1alpha.CustomDimension.DimensionScopeB\006\340A\002\340A\005\022)\n" + + "\005scope\030\005 \001(\0162>.google.analyti" + + "cs.admin.v1alpha.CustomDimension.DimensionScopeB\006\340A\002\340A\005\022)\n" + "\034disallow_ads_personalization\030\006 \001(\010B\003\340A\001\"P\n" + "\016DimensionScope\022\037\n" + "\033DIMENSION_SCOPE_UNSPECIFIED\020\000\022\t\n" + "\005EVENT\020\001\022\010\n" + "\004USER\020\002\022\010\n" + "\004ITEM\020\003:\221\001\352A\215\001\n" - + "-analyticsadmin.googleapis.com/CustomDimension\0229properties/{property}/" - + "customDimensions/{custom_dimension}*\020customDimensions2\017customDimension\"\343\006\n" + + "-analyticsadmin.googleapis.com/CustomDimension\0229prop" + + "erties/{property}/customDimensions/{cust" + + "om_dimension}*\020customDimensions2\017customDimension\"\343\006\n" + "\014CustomMetric\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + "\016parameter_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022\030\n" + "\013description\030\004 \001(\tB\003\340A\001\022[\n" - + "\020measurement_unit\030\005 \001(\0162<.google.analytics.adm" - + "in.v1alpha.CustomMetric.MeasurementUnitB\003\340A\002\022O\n" - + "\005scope\030\006 \001(\01628.google.analytics.a" - + "dmin.v1alpha.CustomMetric.MetricScopeB\006\340A\002\340A\005\022f\n" - + "\026restricted_metric_type\030\010 \003(\0162A." - + "google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricTypeB\003\340A\001\"\267\001\n" + + "\020measurement_unit\030\005 \001(\0162<.go" + + "ogle.analytics.admin.v1alpha.CustomMetric.MeasurementUnitB\003\340A\002\022O\n" + + "\005scope\030\006 \001(\01628." + + "google.analytics.admin.v1alpha.CustomMetric.MetricScopeB\006\340A\002\340A\005\022f\n" + + "\026restricted_metric_type\030\010 \003(\0162A.google.analytics.admin" + + ".v1alpha.CustomMetric.RestrictedMetricTypeB\003\340A\001\"\267\001\n" + "\017MeasurementUnit\022 \n" + "\034MEASUREMENT_UNIT_UNSPECIFIED\020\000\022\014\n" + "\010STANDARD\020\001\022\014\n" @@ -623,18 +624,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tCOST_DATA\020\001\022\020\n" + "\014REVENUE_DATA\020\002:\201\001\352A~\n" - + "*analyticsadmin.googleapi" - + "s.com/CustomMetric\0223properties/{property}/customMetrics/{custom_metric}*\r" + + "*analyticsadmin.googleapis.com/CustomMetric\0223pr" + + "operties/{property}/customMetrics/{custom_metric}*\r" + "customMetrics2\014customMetric\"\247\006\n" + "\020CalculatedMetric\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022!\n" + "\024calculated_metric_id\030\004 \001(\tB\003\340A\003\022U\n" - + "\013metric_unit\030\005" - + " \001(\0162;.google.analytics.admin.v1alpha.CalculatedMetric.MetricUnitB\003\340A\002\022j\n" - + "\026restricted_metric_type\030\006 \003(\0162E.google.ana" - + "lytics.admin.v1alpha.CalculatedMetric.RestrictedMetricTypeB\003\340A\003\022\024\n" + + "\013metric_unit\030\005 \001(\0162;.google.ana" + + "lytics.admin.v1alpha.CalculatedMetric.MetricUnitB\003\340A\002\022j\n" + + "\026restricted_metric_type\030\006 \003(\0162E.google.analytics.admin.v1alpha.C" + + "alculatedMetric.RestrictedMetricTypeB\003\340A\003\022\024\n" + "\007formula\030\007 \001(\tB\003\340A\002\022%\n" + "\030invalid_metric_reference\030\t \001(\010B\003\340A\003\"\255\001\n\n" + "MetricUnit\022\033\n" @@ -654,14 +655,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tCOST_DATA\020\001\022\020\n" + "\014REVENUE_DATA\020\002:\226\001\352A\222\001\n" - + ".analyticsadmin.googleapis.com/CalculatedMetric\022;properties/{property}/calc" - + "ulatedMetrics/{calculated_metric}*\021calculatedMetrics2\020calculatedMetric\"\342\004\n" + + ".analyticsadmin.googleapis.com/CalculatedMetric\022;properti" + + "es/{property}/calculatedMetrics/{calcula" + + "ted_metric}*\021calculatedMetrics2\020calculatedMetric\"\342\004\n" + "\025DataRetentionSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022j\n" - + "\024event_data_retention\030\002 \001(\0162G.google.analy" - + "tics.admin.v1alpha.DataRetentionSettings.RetentionDurationB\003\340A\002\022i\n" - + "\023user_data_retention\030\004 \001(\0162G.google.analytics.admin.v1" - + "alpha.DataRetentionSettings.RetentionDurationB\003\340A\002\022\'\n" + + "\024event_data_retention\030\002 \001(\0162G.google.analytics.admin.v1alpha.Dat" + + "aRetentionSettings.RetentionDurationB\003\340A\002\022i\n" + + "\023user_data_retention\030\004 \001(\0162G.google." + + "analytics.admin.v1alpha.DataRetentionSettings.RetentionDurationB\003\340A\002\022\'\n" + "\037reset_user_data_on_new_activity\030\003 \001(\010\"\236\001\n" + "\021RetentionDuration\022\"\n" + "\036RETENTION_DURATION_UNSPECIFIED\020\000\022\016\n\n" @@ -670,23 +672,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021TWENTY_SIX_MONTHS\020\004\022\027\n" + "\023THIRTY_EIGHT_MONTHS\020\005\022\020\n" + "\014FIFTY_MONTHS\020\006:\224\001\352A\220\001\n" - + "3analyticsadmin.googleapis.com/DataRetentionSettings\022+proper" - + "ties/{property}/dataRetentionSettings*\025d" - + "ataRetentionSettings2\025dataRetentionSettings\"\374\013\n" + + "3analyticsadmin.googleapis.com/DataRetentionSettings\022+properties/{property}/dataRe" + + "tentionSettings*\025dataRetentionSettings2\025dataRetentionSettings\"\374\013\n" + "\023AttributionSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\227\001\n" - + ",acquisition_conversion_event_lookback_window\030\002 \001(\0162\\.google.analytics" - + ".admin.v1alpha.AttributionSettings.Acqui" - + "sitionConversionEventLookbackWindowB\003\340A\002\022\213\001\n" - + "&other_conversion_event_lookback_window\030\003" - + " \001(\0162V.google.analytics.admin.v1alp" - + "ha.AttributionSettings.OtherConversionEventLookbackWindowB\003\340A\002\022w\n" - + "\033reporting_attribution_model\030\004 \001(\0162M.google.analytics.a" - + "dmin.v1alpha.AttributionSettings.Reporti", - "ngAttributionModelB\003\340A\002\022\206\001\n" - + "$ads_web_conversion_data_export_scope\030\005 \001(\0162S.google." - + "analytics.admin.v1alpha.AttributionSetti" - + "ngs.AdsWebConversionDataExportScopeB\003\340A\002\"\333\001\n" + + ",acquisition_conversion_event_lookback_window\030\002 \001(\0162" + + "\\.google.analytics.admin.v1alpha.Attribu" + + "tionSettings.AcquisitionConversionEventLookbackWindowB\003\340A\002\022\213\001\n" + + "&other_conversion_event_lookback_window\030\003 \001(\0162V.google.ana" + + "lytics.admin.v1alpha.AttributionSettings" + + ".OtherConversionEventLookbackWindowB\003\340A\002\022w\n" + + "\033reporting_attribution_model\030\004 \001(\0162M." + + "google.analytics.admin.v1alpha.Attributi", + "onSettings.ReportingAttributionModelB\003\340A\002\022\206\001\n" + + "$ads_web_conversion_data_export_scope\030\005" + + " \001(\0162S.google.analytics.admin.v1alph" + + "a.AttributionSettings.AdsWebConversionDataExportScopeB\003\340A\002\"\333\001\n" + "(AcquisitionConversionEventLookbackWindow\022<\n" + "8ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED\020\000\0227\n" + "3ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS\020\001\0228\n" @@ -706,15 +707,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020NOT_SELECTED_YET\020\001\022\035\n" + "\031PAID_AND_ORGANIC_CHANNELS\020\002\022\030\n" + "\024GOOGLE_PAID_CHANNELS\020\003:a\352A^\n" - + "1analyticsadmin.googleapis.com/Attr" - + "ibutionSettings\022)properties/{property}/attributionSettings\"\361\001\n\r" + + "1analyticsadmin.g" + + "oogleapis.com/AttributionSettings\022)properties/{property}/attributionSettings\"\361\001\n" + + "\r" + "AccessBinding\022\016\n" + "\004user\030\002 \001(\tH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\r\n" + "\005roles\030\003 \003(\t:\234\001\352A\230\001\n" - + "+analyticsadmin.googleapis.com/AccessBinding\0222accounts/{account}/a" - + "ccessBindings/{access_binding}\0225properti" - + "es/{property}/accessBindings/{access_binding}B\017\n\r" + + "+analyticsadmin.googleapis.com/AccessBinding\0222ac" + + "counts/{account}/accessBindings/{access_" + + "binding}\0225properties/{property}/accessBindings/{access_binding}B\017\n\r" + "access_target\"\252\003\n" + "\014BigQueryLink\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" @@ -729,8 +731,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017excluded_events\030\010 \003(\t\022 \n" + "\020dataset_location\030\n" + " \001(\tB\006\340A\005\340A\002:d\352Aa\n" - + "*analyticsadmin.googleapis.com/BigQueryLink\0223" - + "properties/{property}/bigQueryLinks/{bigquery_link}\"\363\003\n" + + "*analyticsadmin.googleapis." + + "com/BigQueryLink\0223properties/{property}/bigQueryLinks/{bigquery_link}\"\363\003\n" + "\033EnhancedMeasurementSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\026\n" + "\016stream_enabled\030\002 \001(\010\022\027\n" @@ -744,35 +746,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026search_query_parameter\030\n" + " \001(\tB\003\340A\002\022\033\n" + "\023uri_query_parameter\030\013 \001(\t:\214\001\352A\210\001\n" - + "9analyticsadmin.googleapis.com/EnhancedMeasurementSettings\022Kpr" - + "operties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings\"\225\002\n" + + "9analyticsadmin.googleapis.com/EnhancedMeasu" + + "rementSettings\022Kproperties/{property}/da" + + "taStreams/{data_stream}/enhancedMeasurementSettings\"\225\002\n" + "\025DataRedactionSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\037\n" + "\027email_redaction_enabled\030\002 \001(\010\022)\n" + "!query_parameter_redaction_enabled\030\003 \001(\010\022\034\n" + "\024query_parameter_keys\030\004 \003(\t:\177\352A|\n" - + "3analyticsadmin.googleapis.com/DataRedactionSettin" - + "gs\022Eproperties/{property}/dataStreams/{data_stream}/dataRedactionSettings\"\240\001\n" + + "3analyticsadmin.googleapis.com/DataRedactionSettings\022Eproperties/{proper" + + "ty}/dataStreams/{data_stream}/dataRedactionSettings\"\240\001\n" + "\013AdSenseLink\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\033\n" + "\016ad_client_code\030\002 \001(\tB\003\340A\005:a\352A^\n" - + ")analyticsadmin.g" - + "oogleapis.com/AdSenseLink\0221properties/{property}/adSenseLinks/{adsense_link}\"\216\002\n" + + ")analyticsadmin.googleapis.com/AdSenseL" + + "ink\0221properties/{property}/adSenseLinks/{adsense_link}\"\216\002\n" + "\030RollupPropertySourceLink\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\034\n" + "\017source_property\030\002 \001(\tB\003\340A\005:\300\001\352A\274\001\n" - + "6analyticsadmin.googleapis.com/RollupPropertySourceLink\022Mproperties/{property}" - + "/rollupPropertySourceLinks/{rollup_prope" - + "rty_source_link}*\031rollupPropertySourceLinks2\030rollupPropertySourceLink\"\366\005\n" + + "6analyticsadmin.googleapis.com/RollupPropertySourceLink\022Mpro" + + "perties/{property}/rollupPropertySourceLinks/{rollup_property_source_link}*\031roll" + + "upPropertySourceLinks2\030rollupPropertySourceLink\"\366\005\n" + "\027ReportingDataAnnotation\022,\n" + "\017annotation_date\030\004 \001(\0132\021.google.type.DateH\000\022b\n" - + "\025annotation_date_range\030\005 \001(\0132A.google.analytics.admin." - + "v1alpha.ReportingDataAnnotation.DateRangeH\000\022\024\n" + + "\025annotation_date_range\030\005 \001(\0132A.googl" + + "e.analytics.admin.v1alpha.ReportingDataAnnotation.DateRangeH\000\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\002\022\022\n" + "\005title\030\002 \001(\tB\003\340A\002\022\030\n" + "\013description\030\003 \001(\tB\003\340A\001\022Q\n" - + "\005color\030\006" - + " \001(\0162=.google.analytics.admin.v1alpha.ReportingDataAnnotation.ColorB\003\340A\002\022\035\n" + + "\005color\030\006 \001(\0162=.google.analyt" + + "ics.admin.v1alpha.ReportingDataAnnotation.ColorB\003\340A\002\022\035\n" + "\020system_generated\030\007 \001(\010B\003\340A\003\032a\n" + "\tDateRange\022*\n\n" + "start_date\030\001 \001(\0132\021.google.type.DateB\003\340A\002\022(\n" @@ -786,48 +789,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003RED\020\005\022\010\n" + "\004CYAN\020\006\022\n\n" + "\006ORANGE\020\007:\272\001\352A\266\001\n" - + "5analyticsadmin.googleapis.com/ReportingDataAnnotation\022Jproperties/{property}/rep" - + "ortingDataAnnotations/{reporting_data_an" - + "notation}*\030reportingDataAnnotations2\027reportingDataAnnotationB\010\n" + + "5analyticsadmin.googleapis.com/ReportingDataAnnotation\022Jpropert" + + "ies/{property}/reportingDataAnnotations/{reporting_data_annotation}*\030reportingDa" + + "taAnnotations2\027reportingDataAnnotationB\010\n" + "\006target\"\322\003\n" + "\025SubpropertySyncConfig\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022!\n" + "\021apply_to_property\030\002 \001(\tB\006\340A\005\340A\003\022}\n" - + "%custom_dimension_and_metric_sync_mode\030\003 \001(\016" - + "2I.google.analytics.admin.v1alpha.Subpro" - + "pertySyncConfig.SynchronizationModeB\003\340A\002\"N\n" + + "%custom_dimension_and_metric_sync_mode\030\003 \001(\0162I.google.analytics.ad" + + "min.v1alpha.SubpropertySyncConfig.SynchronizationModeB\003\340A\002\"N\n" + "\023SynchronizationMode\022$\n" + " SYNCHRONIZATION_MODE_UNSPECIFIED\020\000\022\010\n" + "\004NONE\020\001\022\007\n" + "\003ALL\020\002:\260\001\352A\254\001\n" - + "3analyticsadmin.googleapis.com/SubpropertySyncConfig\022Fproperties/{proper" - + "ty}/subpropertySyncConfigs/{subproperty_" - + "sync_config}*\026subpropertySyncConfigs2\025subpropertySyncConfig\"\257\003\n" + + "3analyticsadmin.googleapis.com/SubpropertySyncConfig\022F" + + "properties/{property}/subpropertySyncConfigs/{subproperty_sync_config}*\026subprope" + + "rtySyncConfigs2\025subpropertySyncConfig\"\257\003\n" + "\031ReportingIdentitySettings\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022g\n" - + "\022reporting_identity\030\002 \001(\0162K.google.analytics.a" - + "dmin.v1alpha.ReportingIdentitySettings.ReportingIdentity\"l\n" + + "\022reporting_identity\030\002 \001(\0162K." + + "google.analytics.admin.v1alpha.ReportingIdentitySettings.ReportingIdentity\"l\n" + "\021ReportingIdentity\022*\n" + "&IDENTITY_BLENDING_STRATEGY_UNSPECIFIED\020\000\022\013\n" + "\007BLENDED\020\001\022\014\n" + "\010OBSERVED\020\002\022\020\n" + "\014DEVICE_BASED\020\003:\244\001\352A\240\001\n" - + "7analyticsadmin.googleapis.com/ReportingIdentitySettings\022/properti" - + "es/{property}/reportingIdentitySettings*" - + "\031reportingIdentitySettings2\031reportingIdentitySettings\"\301\002\n" + + "7analyticsadmin.googleapis.com/ReportingIdentity" + + "Settings\022/properties/{property}/reportin" + + "gIdentitySettings*\031reportingIdentitySettings2\031reportingIdentitySettings\"\301\002\n" + "\030UserProvidedDataSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0222\n" + "%user_provided_data_collection_enabled\030\002 \001(\010B\003\340A\001\022;\n" + ".automatically_detected_data_collection_enabled\030\003" + " \001(\010B\003\340A\001:\240\001\352A\234\001\n" - + "6analyticsadmin.googleapis.com/UserProvidedDataSettings\022.p" - + "roperties/{property}/userProvidedDataSet" - + "tings*\030userProvidedDataSettings2\030userProvidedDataSettings*\252\004\n" + + "6analyticsadmin.googleapis.com/UserProvidedDataSettings\022.properties/{property}/u" + + "serProvidedDataSettings*\030userProvidedDataSettings2\030userProvidedDataSettings*\252\004\n" + "\020IndustryCategory\022!\n" + "\035INDUSTRY_CATEGORY_UNSPECIFIED\020\000\022\016\n\n" + "AUTOMOTIVE\020\001\022#\n" + "\037BUSINESS_AND_INDUSTRIAL_MARKETS\020\002\022\013\n" - + "\007FINANCE\020\003\022\016\n\n" + + "\007FINANCE\020\003\022\016\n" + + "\n" + "HEALTHCARE\020\004\022\016\n\n" + "TECHNOLOGY\020\005\022\n\n" + "\006TRAVEL\020\006\022\t\n" @@ -870,7 +872,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031ChangeHistoryResourceType\022,\n" + "(CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED\020\000\022\013\n" + "\007ACCOUNT\020\001\022\014\n" - + "\010PROPERTY\020\002\022\021\n\r" + + "\010PROPERTY\020\002\022\021\n" + + "\r" + "FIREBASE_LINK\020\006\022\023\n" + "\017GOOGLE_ADS_LINK\020\007\022\033\n" + "\027GOOGLE_SIGNALS_SETTINGS\020\010\022\024\n" @@ -931,10 +934,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020COARSE_VALUE_LOW\020\001\022\027\n" + "\023COARSE_VALUE_MEDIUM\020\002\022\025\n" + "\021COARSE_VALUE_HIGH\020\003B\313\001\n" - + "\"com.google.analytics.admin.v1alphaB\016ResourcesPro" - + "toP\001Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpb\352AR\n" - + "2marketingplatformadmin.googleapis.com/Organizat" - + "ion\022\034organizations/{organization}b\006proto3" + + "\"com.google.analytics.admin.v1alphaB\016ResourcesProtoP\001Z>cloud.google.com" + + "/go/analytics/admin/apiv1alpha/adminpb;adminpb\352AR\n" + + "2marketingplatformadmin.googleapis.com/Organization\022\034organizations/{or" + + "ganization}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1081,7 +1084,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor, new java.lang.String[] { - "Property", "DisplayName", "PropertyType", "Parent", + "Property", "DisplayName", "PropertyType", "Parent", "CanEdit", }); internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor = getDescriptor().getMessageType(9); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateReportingIdentitySettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateReportingIdentitySettingsRequest.java new file mode 100644 index 000000000000..e4c59c5baa04 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateReportingIdentitySettingsRequest.java @@ -0,0 +1,1109 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/admin/v1alpha/analytics_admin.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
            + * Request message for UpdateReportingIdentitySettings RPC.
            + * 
            + * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest} + */ +@com.google.protobuf.Generated +public final class UpdateReportingIdentitySettingsRequest + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest) + UpdateReportingIdentitySettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateReportingIdentitySettingsRequest"); + } + + // Use UpdateReportingIdentitySettingsRequest.newBuilder() to construct. + private UpdateReportingIdentitySettingsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateReportingIdentitySettingsRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest.Builder + .class); + } + + private int bitField0_; + public static final int REPORTING_IDENTITY_SETTINGS_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.ReportingIdentitySettings reportingIdentitySettings_; + + /** + * + * + *
            +   * Required. The reporting identity settings to update.
            +   * The settings' `name` field is used to identify the settings.
            +   * 
            + * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the reportingIdentitySettings field is set. + */ + @java.lang.Override + public boolean hasReportingIdentitySettings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The reporting identity settings to update.
            +   * The settings' `name` field is used to identify the settings.
            +   * 
            + * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reportingIdentitySettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ReportingIdentitySettings + getReportingIdentitySettings() { + return reportingIdentitySettings_ == null + ? com.google.analytics.admin.v1alpha.ReportingIdentitySettings.getDefaultInstance() + : reportingIdentitySettings_; + } + + /** + * + * + *
            +   * Required. The reporting identity settings to update.
            +   * The settings' `name` field is used to identify the settings.
            +   * 
            + * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ReportingIdentitySettingsOrBuilder + getReportingIdentitySettingsOrBuilder() { + return reportingIdentitySettings_ == null + ? com.google.analytics.admin.v1alpha.ReportingIdentitySettings.getDefaultInstance() + : reportingIdentitySettings_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
            +   * Optional. The list of fields to be updated. Field names must be in snake
            +   * case (for example, "field_to_update"). Omitted fields will not be updated.
            +   * To replace the entire entity, use one path with the string "*" to match all
            +   * fields. If omitted, the service will treat it as an implied field mask
            +   * equivalent to all fields that are populated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. The list of fields to be updated. Field names must be in snake
            +   * case (for example, "field_to_update"). Omitted fields will not be updated.
            +   * To replace the entire entity, use one path with the string "*" to match all
            +   * fields. If omitted, the service will treat it as an implied field mask
            +   * equivalent to all fields that are populated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
            +   * Optional. The list of fields to be updated. Field names must be in snake
            +   * case (for example, "field_to_update"). Omitted fields will not be updated.
            +   * To replace the entire entity, use one path with the string "*" to match all
            +   * fields. If omitted, the service will treat it as an implied field mask
            +   * equivalent to all fields that are populated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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, getReportingIdentitySettings()); + } + 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, getReportingIdentitySettings()); + } + 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.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest other = + (com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest) obj; + + if (hasReportingIdentitySettings() != other.hasReportingIdentitySettings()) return false; + if (hasReportingIdentitySettings()) { + if (!getReportingIdentitySettings().equals(other.getReportingIdentitySettings())) + 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 (hasReportingIdentitySettings()) { + hash = (37 * hash) + REPORTING_IDENTITY_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getReportingIdentitySettings().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.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for UpdateReportingIdentitySettings RPC.
            +   * 
            + * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest) + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetReportingIdentitySettingsFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + reportingIdentitySettings_ = null; + if (reportingIdentitySettingsBuilder_ != null) { + reportingIdentitySettingsBuilder_.dispose(); + reportingIdentitySettingsBuilder_ = 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.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateReportingIdentitySettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest build() { + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest + buildPartial() { + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest result = + new com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.reportingIdentitySettings_ = + reportingIdentitySettingsBuilder_ == null + ? reportingIdentitySettings_ + : reportingIdentitySettingsBuilder_.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 mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest + .getDefaultInstance()) return this; + if (other.hasReportingIdentitySettings()) { + mergeReportingIdentitySettings(other.getReportingIdentitySettings()); + } + 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( + internalGetReportingIdentitySettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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.analytics.admin.v1alpha.ReportingIdentitySettings reportingIdentitySettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.admin.v1alpha.ReportingIdentitySettings, + com.google.analytics.admin.v1alpha.ReportingIdentitySettings.Builder, + com.google.analytics.admin.v1alpha.ReportingIdentitySettingsOrBuilder> + reportingIdentitySettingsBuilder_; + + /** + * + * + *
            +     * Required. The reporting identity settings to update.
            +     * The settings' `name` field is used to identify the settings.
            +     * 
            + * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the reportingIdentitySettings field is set. + */ + public boolean hasReportingIdentitySettings() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. The reporting identity settings to update.
            +     * The settings' `name` field is used to identify the settings.
            +     * 
            + * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reportingIdentitySettings. + */ + public com.google.analytics.admin.v1alpha.ReportingIdentitySettings + getReportingIdentitySettings() { + if (reportingIdentitySettingsBuilder_ == null) { + return reportingIdentitySettings_ == null + ? com.google.analytics.admin.v1alpha.ReportingIdentitySettings.getDefaultInstance() + : reportingIdentitySettings_; + } else { + return reportingIdentitySettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The reporting identity settings to update.
            +     * The settings' `name` field is used to identify the settings.
            +     * 
            + * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReportingIdentitySettings( + com.google.analytics.admin.v1alpha.ReportingIdentitySettings value) { + if (reportingIdentitySettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reportingIdentitySettings_ = value; + } else { + reportingIdentitySettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The reporting identity settings to update.
            +     * The settings' `name` field is used to identify the settings.
            +     * 
            + * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setReportingIdentitySettings( + com.google.analytics.admin.v1alpha.ReportingIdentitySettings.Builder builderForValue) { + if (reportingIdentitySettingsBuilder_ == null) { + reportingIdentitySettings_ = builderForValue.build(); + } else { + reportingIdentitySettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The reporting identity settings to update.
            +     * The settings' `name` field is used to identify the settings.
            +     * 
            + * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeReportingIdentitySettings( + com.google.analytics.admin.v1alpha.ReportingIdentitySettings value) { + if (reportingIdentitySettingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && reportingIdentitySettings_ != null + && reportingIdentitySettings_ + != com.google.analytics.admin.v1alpha.ReportingIdentitySettings + .getDefaultInstance()) { + getReportingIdentitySettingsBuilder().mergeFrom(value); + } else { + reportingIdentitySettings_ = value; + } + } else { + reportingIdentitySettingsBuilder_.mergeFrom(value); + } + if (reportingIdentitySettings_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The reporting identity settings to update.
            +     * The settings' `name` field is used to identify the settings.
            +     * 
            + * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearReportingIdentitySettings() { + bitField0_ = (bitField0_ & ~0x00000001); + reportingIdentitySettings_ = null; + if (reportingIdentitySettingsBuilder_ != null) { + reportingIdentitySettingsBuilder_.dispose(); + reportingIdentitySettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The reporting identity settings to update.
            +     * The settings' `name` field is used to identify the settings.
            +     * 
            + * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ReportingIdentitySettings.Builder + getReportingIdentitySettingsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetReportingIdentitySettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The reporting identity settings to update.
            +     * The settings' `name` field is used to identify the settings.
            +     * 
            + * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ReportingIdentitySettingsOrBuilder + getReportingIdentitySettingsOrBuilder() { + if (reportingIdentitySettingsBuilder_ != null) { + return reportingIdentitySettingsBuilder_.getMessageOrBuilder(); + } else { + return reportingIdentitySettings_ == null + ? com.google.analytics.admin.v1alpha.ReportingIdentitySettings.getDefaultInstance() + : reportingIdentitySettings_; + } + } + + /** + * + * + *
            +     * Required. The reporting identity settings to update.
            +     * The settings' `name` field is used to identify the settings.
            +     * 
            + * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.admin.v1alpha.ReportingIdentitySettings, + com.google.analytics.admin.v1alpha.ReportingIdentitySettings.Builder, + com.google.analytics.admin.v1alpha.ReportingIdentitySettingsOrBuilder> + internalGetReportingIdentitySettingsFieldBuilder() { + if (reportingIdentitySettingsBuilder_ == null) { + reportingIdentitySettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.analytics.admin.v1alpha.ReportingIdentitySettings, + com.google.analytics.admin.v1alpha.ReportingIdentitySettings.Builder, + com.google.analytics.admin.v1alpha.ReportingIdentitySettingsOrBuilder>( + getReportingIdentitySettings(), getParentForChildren(), isClean()); + reportingIdentitySettings_ = null; + } + return reportingIdentitySettingsBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
            +     * Optional. The list of fields to be updated. Field names must be in snake
            +     * case (for example, "field_to_update"). Omitted fields will not be updated.
            +     * To replace the entire entity, use one path with the string "*" to match all
            +     * fields. If omitted, the service will treat it as an implied field mask
            +     * equivalent to all fields that are populated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. The list of fields to be updated. Field names must be in snake
            +     * case (for example, "field_to_update"). Omitted fields will not be updated.
            +     * To replace the entire entity, use one path with the string "*" to match all
            +     * fields. If omitted, the service will treat it as an implied field mask
            +     * equivalent to all fields that are populated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. The list of fields to be updated. Field names must be in snake
            +     * case (for example, "field_to_update"). Omitted fields will not be updated.
            +     * To replace the entire entity, use one path with the string "*" to match all
            +     * fields. If omitted, the service will treat it as an implied field mask
            +     * equivalent to all fields that are populated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The list of fields to be updated. Field names must be in snake
            +     * case (for example, "field_to_update"). Omitted fields will not be updated.
            +     * To replace the entire entity, use one path with the string "*" to match all
            +     * fields. If omitted, the service will treat it as an implied field mask
            +     * equivalent to all fields that are populated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The list of fields to be updated. Field names must be in snake
            +     * case (for example, "field_to_update"). Omitted fields will not be updated.
            +     * To replace the entire entity, use one path with the string "*" to match all
            +     * fields. If omitted, the service will treat it as an implied field mask
            +     * equivalent to all fields that are populated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of fields to be updated. Field names must be in snake
            +     * case (for example, "field_to_update"). Omitted fields will not be updated.
            +     * To replace the entire entity, use one path with the string "*" to match all
            +     * fields. If omitted, the service will treat it as an implied field mask
            +     * equivalent to all fields that are populated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The list of fields to be updated. Field names must be in snake
            +     * case (for example, "field_to_update"). Omitted fields will not be updated.
            +     * To replace the entire entity, use one path with the string "*" to match all
            +     * fields. If omitted, the service will treat it as an implied field mask
            +     * equivalent to all fields that are populated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The list of fields to be updated. Field names must be in snake
            +     * case (for example, "field_to_update"). Omitted fields will not be updated.
            +     * To replace the entire entity, use one path with the string "*" to match all
            +     * fields. If omitted, the service will treat it as an implied field mask
            +     * equivalent to all fields that are populated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
            +     * Optional. The list of fields to be updated. Field names must be in snake
            +     * case (for example, "field_to_update"). Omitted fields will not be updated.
            +     * To replace the entire entity, use one path with the string "*" to match all
            +     * fields. If omitted, the service will treat it as an implied field mask
            +     * equivalent to all fields that are populated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest) + private static final com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateReportingIdentitySettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateReportingIdentitySettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateReportingIdentitySettingsRequestOrBuilder.java new file mode 100644 index 000000000000..2133c1a0ceef --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateReportingIdentitySettingsRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/admin/v1alpha/analytics_admin.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.admin.v1alpha; + +@com.google.protobuf.Generated +public interface UpdateReportingIdentitySettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The reporting identity settings to update.
            +   * The settings' `name` field is used to identify the settings.
            +   * 
            + * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the reportingIdentitySettings field is set. + */ + boolean hasReportingIdentitySettings(); + + /** + * + * + *
            +   * Required. The reporting identity settings to update.
            +   * The settings' `name` field is used to identify the settings.
            +   * 
            + * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reportingIdentitySettings. + */ + com.google.analytics.admin.v1alpha.ReportingIdentitySettings getReportingIdentitySettings(); + + /** + * + * + *
            +   * Required. The reporting identity settings to update.
            +   * The settings' `name` field is used to identify the settings.
            +   * 
            + * + * + * .google.analytics.admin.v1alpha.ReportingIdentitySettings reporting_identity_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.ReportingIdentitySettingsOrBuilder + getReportingIdentitySettingsOrBuilder(); + + /** + * + * + *
            +   * Optional. The list of fields to be updated. Field names must be in snake
            +   * case (for example, "field_to_update"). Omitted fields will not be updated.
            +   * To replace the entire entity, use one path with the string "*" to match all
            +   * fields. If omitted, the service will treat it as an implied field mask
            +   * equivalent to all fields that are populated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
            +   * Optional. The list of fields to be updated. Field names must be in snake
            +   * case (for example, "field_to_update"). Omitted fields will not be updated.
            +   * To replace the entire entity, use one path with the string "*" to match all
            +   * fields. If omitted, the service will treat it as an implied field mask
            +   * equivalent to all fields that are populated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
            +   * Optional. The list of fields to be updated. Field names must be in snake
            +   * case (for example, "field_to_update"). Omitted fields will not be updated.
            +   * To replace the entire entity, use one path with the string "*" to match all
            +   * fields. If omitted, the service will treat it as an implied field mask
            +   * equivalent to all fields that are populated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto index af2055300082..2293f93e23a8 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto @@ -1611,6 +1611,17 @@ service AnalyticsAdminService { option (google.api.method_signature) = "name"; } + // Updates the reporting identity settings for this property. + rpc UpdateReportingIdentitySettings(UpdateReportingIdentitySettingsRequest) + returns (ReportingIdentitySettings) { + option (google.api.http) = { + patch: "/v1alpha/{reporting_identity_settings.name=properties/*/reportingIdentitySettings}" + body: "reporting_identity_settings" + }; + option (google.api.method_signature) = + "reporting_identity_settings,update_mask"; + } + // Looks up settings related to user-provided data for a property. rpc GetUserProvidedDataSettings(GetUserProvidedDataSettingsRequest) returns (UserProvidedDataSettings) { @@ -4636,6 +4647,22 @@ message GetReportingIdentitySettingsRequest { ]; } +// Request message for UpdateReportingIdentitySettings RPC. +message UpdateReportingIdentitySettingsRequest { + // Required. The reporting identity settings to update. + // The settings' `name` field is used to identify the settings. + ReportingIdentitySettings reporting_identity_settings = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. The list of fields to be updated. Field names must be in snake + // case (for example, "field_to_update"). Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match all + // fields. If omitted, the service will treat it as an implied field mask + // equivalent to all fields that are populated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + // Request message for GetUserProvidedDataSettings RPC message GetUserProvidedDataSettingsRequest { // Required. The name of the user provided data settings to retrieve. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto index d253a61e5c84..62a589c8bdab 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto @@ -791,6 +791,10 @@ message PropertySummary { // Format: accounts/{account}, properties/{property} // Example: "accounts/100", "properties/200" string parent = 4; + + // If true, then the user has a Google Analytics role that permits them to + // edit the property. + bool can_edit = 5; } // A secret value used for sending hits to Measurement Protocol. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java index 7923d6f472b6..16eb2145f519 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java @@ -83,12 +83,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Output only. Resource name of this account.
            +   * Identifier. Resource name of this account.
                * Format: accounts/{account}
                * Example: "accounts/100"
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -109,12 +109,12 @@ public java.lang.String getName() { * * *
            -   * Output only. Resource name of this account.
            +   * Identifier. Resource name of this account.
                * Format: accounts/{account}
                * Example: "accounts/100"
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -909,12 +909,12 @@ public Builder mergeFrom( * * *
            -     * Output only. Resource name of this account.
            +     * Identifier. Resource name of this account.
                  * Format: accounts/{account}
                  * Example: "accounts/100"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -934,12 +934,12 @@ public java.lang.String getName() { * * *
            -     * Output only. Resource name of this account.
            +     * Identifier. Resource name of this account.
                  * Format: accounts/{account}
                  * Example: "accounts/100"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -959,12 +959,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Output only. Resource name of this account.
            +     * Identifier. Resource name of this account.
                  * Format: accounts/{account}
                  * Example: "accounts/100"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -983,12 +983,12 @@ public Builder setName(java.lang.String value) { * * *
            -     * Output only. Resource name of this account.
            +     * Identifier. Resource name of this account.
                  * Format: accounts/{account}
                  * Example: "accounts/100"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1003,12 +1003,12 @@ public Builder clearName() { * * *
            -     * Output only. Resource name of this account.
            +     * Identifier. Resource name of this account.
                  * Format: accounts/{account}
                  * Example: "accounts/100"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * 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-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java index e836e68ba5c7..1e217a25dc9e 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java @@ -30,12 +30,12 @@ public interface AccountOrBuilder * * *
            -   * Output only. Resource name of this account.
            +   * Identifier. Resource name of this account.
                * Format: accounts/{account}
                * Example: "accounts/100"
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface AccountOrBuilder * * *
            -   * Output only. Resource name of this account.
            +   * Identifier. Resource name of this account.
                * Format: accounts/{account}
                * Example: "accounts/100"
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummary.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummary.java index ee355d67b266..ed2a0180c6c2 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummary.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummary.java @@ -83,12 +83,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Resource name for this account summary.
            +   * Identifier. Resource name for this account summary.
                * Format: accountSummaries/{account_id}
                * Example: "accountSummaries/1000"
                * 
            * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -109,12 +109,12 @@ public java.lang.String getName() { * * *
            -   * Resource name for this account summary.
            +   * Identifier. Resource name for this account summary.
                * Format: accountSummaries/{account_id}
                * Example: "accountSummaries/1000"
                * 
            * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -758,12 +758,12 @@ public Builder mergeFrom( * * *
            -     * Resource name for this account summary.
            +     * Identifier. Resource name for this account summary.
                  * Format: accountSummaries/{account_id}
                  * Example: "accountSummaries/1000"
                  * 
            * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -783,12 +783,12 @@ public java.lang.String getName() { * * *
            -     * Resource name for this account summary.
            +     * Identifier. Resource name for this account summary.
                  * Format: accountSummaries/{account_id}
                  * Example: "accountSummaries/1000"
                  * 
            * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -808,12 +808,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Resource name for this account summary.
            +     * Identifier. Resource name for this account summary.
                  * Format: accountSummaries/{account_id}
                  * Example: "accountSummaries/1000"
                  * 
            * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -832,12 +832,12 @@ public Builder setName(java.lang.String value) { * * *
            -     * Resource name for this account summary.
            +     * Identifier. Resource name for this account summary.
                  * Format: accountSummaries/{account_id}
                  * Example: "accountSummaries/1000"
                  * 
            * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -852,12 +852,12 @@ public Builder clearName() { * * *
            -     * Resource name for this account summary.
            +     * Identifier. Resource name for this account summary.
                  * Format: accountSummaries/{account_id}
                  * Example: "accountSummaries/1000"
                  * 
            * - * string name = 1; + * 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-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummaryOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummaryOrBuilder.java index d1460ea498b4..46bcdde1f71f 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummaryOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummaryOrBuilder.java @@ -30,12 +30,12 @@ public interface AccountSummaryOrBuilder * * *
            -   * Resource name for this account summary.
            +   * Identifier. Resource name for this account summary.
                * Format: accountSummaries/{account_id}
                * Example: "accountSummaries/1000"
                * 
            * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface AccountSummaryOrBuilder * * *
            -   * Resource name for this account summary.
            +   * Identifier. Resource name for this account summary.
                * Format: accountSummaries/{account_id}
                * Example: "accountSummaries/1000"
                * 
            * - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java index d8418a4554f2..715268e2ef26 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java @@ -362,10 +362,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005quota\030\005 \001(\0132*.google.analytics.admin.v1beta.AccessQuota\"P\n" + "\021GetAccountRequest\022;\n" + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" - + "%analyticsadmin.googleapis.com/Account\"R\n" - + "\023ListAccountsRequest\022\021\n" - + "\tpage_size\030\001 \001(\005\022\022\n\n" - + "page_token\030\002 \001(\t\022\024\n" + + "%analyticsadmin.googleapis.com/Account\"\\\n" + + "\023ListAccountsRequest\022\026\n" + + "\tpage_size\030\001 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\002 \001(\tB\003\340A\001\022\024\n" + "\014show_deleted\030\003 \001(\010\"i\n" + "\024ListAccountsResponse\0228\n" + "\010accounts\030\001 \003(\0132&.google.analytics.admin.v1beta.Account\022\027\n" @@ -374,8 +374,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + "%analyticsadmin.googleapis.com/Account\"\212\001\n" + "\024UpdateAccountRequest\022<\n" - + "\007account\030\001 \001(\0132&.g" - + "oogle.analytics.admin.v1beta.AccountB\003\340A\002\0224\n" + + "\007account\030\001" + + " \001(\0132&.google.analytics.admin.v1beta.AccountB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"n\n" + "\035ProvisionAccountTicketRequest\0227\n" + "\007account\030\001 \001(\0132&.google.analytics.admin.v1beta.Account\022\024\n" @@ -384,38 +384,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021account_ticket_id\030\001 \001(\t\"R\n" + "\022GetPropertyRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&analyticsadmin.googleapis.com/Property\"i\n" + + "&analyticsadmin.googleapis.com/Property\"s\n" + "\025ListPropertiesRequest\022\023\n" - + "\006filter\030\001 \001(\tB\003\340A\002\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\022\024\n" + + "\006filter\030\001 \001(\tB\003\340A\002\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\024\n" + "\014show_deleted\030\004 \001(\010\"n\n" + "\026ListPropertiesResponse\022;\n\n" + "properties\030\001 \003(\0132\'.google.analytics.admin.v1beta.Property\022\027\n" + "\017next_page_token\030\002 \001(\t\"\215\001\n" + "\025UpdatePropertyRequest\022>\n" - + "\010property\030\001" - + " \001(\0132\'.google.analytics.admin.v1beta.PropertyB\003\340A\002\0224\n" + + "\010property\030\001 \001(\0132\'.go" + + "ogle.analytics.admin.v1beta.PropertyB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"W\n" + "\025CreatePropertyRequest\022>\n" - + "\010property\030\001 \001(\0132\'" - + ".google.analytics.admin.v1beta.PropertyB\003\340A\002\"U\n" + + "\010property\030\001" + + " \001(\0132\'.google.analytics.admin.v1beta.PropertyB\003\340A\002\"U\n" + "\025DeletePropertyRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + "&analyticsadmin.googleapis.com/Property\"\250\001\n" + "\031CreateFirebaseLinkRequest\022B\n" - + "\006parent\030\001 \001(" - + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/FirebaseLink\022G\n\r" - + "firebase_link\030\002" - + " \001(\0132+.google.analytics.admin.v1beta.FirebaseLinkB\003\340A\002\"]\n" + + "\006parent\030\001 \001(\tB2\340" + + "A\002\372A,\022*analyticsadmin.googleapis.com/FirebaseLink\022G\n\r" + + "firebase_link\030\002 \001(\0132+.googl" + + "e.analytics.admin.v1beta.FirebaseLinkB\003\340A\002\"]\n" + "\031DeleteFirebaseLinkRequest\022@\n" + "\004name\030\001 \001(\tB2\340A\002\372A,\n" - + "*analyticsadmin.googleapis.com/FirebaseLink\"\205\001\n" + + "*analyticsadmin.googleapis.com/FirebaseLink\"\217\001\n" + "\030ListFirebaseLinksRequest\022B\n" + "\006parent\030\001 \001(" - + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/FirebaseLink\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"y\n" + + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/FirebaseLink\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"y\n" + "\031ListFirebaseLinksResponse\022C\n" + "\016firebase_links\030\001" + " \003(\0132+.google.analytics.admin.v1beta.FirebaseLink\022\027\n" @@ -426,30 +426,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017google_ads_link\030\002" + " \001(\0132,.google.analytics.admin.v1beta.GoogleAdsLinkB\003\340A\002\"\231\001\n" + "\032UpdateGoogleAdsLinkRequest\022E\n" - + "\017google_ads_link\030\001" - + " \001(\0132,.google.analytics.admin.v1beta.GoogleAdsLink\0224\n" + + "\017google_ads_link\030\001 \001(\0132," + + ".google.analytics.admin.v1beta.GoogleAdsLink\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"_\n" + "\032DeleteGoogleAdsLinkRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+analyticsadmin.googleapis.com/GoogleAdsLink\"\207\001\n" + + "+analyticsadmin.googleapis.com/GoogleAdsLink\"\221\001\n" + "\031ListGoogleAdsLinksRequest\022C\n" + "\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+analyticsadmin.googleapis.com/GoogleAdsLink\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"}\n" + + "\tB3\340A\002\372A-\022+analyticsadmin.googleapis.com/GoogleAdsLink\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"}\n" + "\032ListGoogleAdsLinksResponse\022F\n" + "\020google_ads_links\030\001 \003(\0132" + ",.google.analytics.admin.v1beta.GoogleAdsLink\022\027\n" + "\017next_page_token\030\002 \001(\t\"h\n" + "\035GetDataSharingSettingsRequest\022G\n" + "\004name\030\001 \001(\tB9\340A\002\372A3\n" - + "1analyticsadmin.googleapis.com/DataSharingSettings\"D\n" - + "\033ListAccountSummariesRequest\022\021\n" - + "\tpage_size\030\001 \001(\005\022\022\n\n" - + "page_token\030\002 \001(\t\"\201\001\n" + + "1analyticsadmin.googleapis.com/DataSharingSettings\"N\n" + + "\033ListAccountSummariesRequest\022\026\n" + + "\tpage_size\030\001 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\002 \001(\tB\003\340A\001\"\201\001\n" + "\034ListAccountSummariesResponse\022H\n" - + "\021account_summaries\030\001" - + " \003(\0132-.google.analytics.admin.v1beta.AccountSummary\022\027\n" + + "\021account_summaries\030\001 \003(\0132-.g" + + "oogle.analytics.admin.v1beta.AccountSummary\022\027\n" + "\017next_page_token\030\002 \001(\t\"\206\001\n" + "$AcknowledgeUserDataCollectionRequest\022@\n" + "\010property\030\001 \001(\tB.\340A\002\372A(\n" @@ -461,10 +461,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%analyticsadmin.googleapis.com/Account\022@\n" + "\010property\030\002 \001(\tB.\340A\001\372A(\n" + "&analyticsadmin.googleapis.com/Property\022T\n\r" - + "resource_type\030\003 \003(\01628.google.anal" - + "ytics.admin.v1beta.ChangeHistoryResourceTypeB\003\340A\001\022>\n" - + "\006action\030\004" - + " \003(\0162).google.analytics.admin.v1beta.ActionTypeB\003\340A\001\022\030\n" + + "resource_type\030\003 \003(\01628.g" + + "oogle.analytics.admin.v1beta.ChangeHistoryResourceTypeB\003\340A\001\022>\n" + + "\006action\030\004 \003(\0162).go" + + "ogle.analytics.admin.v1beta.ActionTypeB\003\340A\001\022\030\n" + "\013actor_email\030\005 \003(\tB\003\340A\001\022=\n" + "\024earliest_change_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n" @@ -473,57 +473,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\010 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\t \001(\tB\003\340A\001\"\216\001\n" + "!SearchChangeHistoryEventsResponse\022P\n" - + "\025change_history_events\030\001" - + " \003(\01321.google.analytics.admin.v1beta.ChangeHistoryEvent\022\027\n" + + "\025change_history_events\030\001 \003(\01321.google" + + ".analytics.admin.v1beta.ChangeHistoryEvent\022\027\n" + "\017next_page_token\030\002 \001(\t\"t\n" + "#GetMeasurementProtocolSecretRequest\022M\n" + "\004name\030\001 \001(\tB?\340A\002\372A9\n" + "7analyticsadmin.googleapis.com/MeasurementProtocolSecret\"\335\001\n" + "&CreateMeasurementProtocolSecretRequest\022O\n" - + "\006parent\030\001 \001(\tB?\340A\002\372" - + "A9\0227analyticsadmin.googleapis.com/MeasurementProtocolSecret\022b\n" - + "\033measurement_protocol_secret\030\002 \001(\01328.google.analytics.admi" - + "n.v1beta.MeasurementProtocolSecretB\003\340A\002\"w\n" + + "\006parent\030\001 \001(" + + "\tB?\340A\002\372A9\0227analyticsadmin.googleapis.com/MeasurementProtocolSecret\022b\n" + + "\033measurement_protocol_secret\030\002 \001(\01328.google.anal" + + "ytics.admin.v1beta.MeasurementProtocolSecretB\003\340A\002\"w\n" + "&DeleteMeasurementProtocolSecretRequest\022M\n" + "\004name\030\001 \001(\tB?\340A\002\372A9\n" + "7analyticsadmin.googleapis.com/MeasurementProtocolSecret\"\302\001\n" + "&UpdateMeasurementProtocolSecretRequest\022b\n" - + "\033measurement_protocol_secret\030\001 \001(\013" - + "28.google.analytics.admin.v1beta.MeasurementProtocolSecretB\003\340A\002\0224\n" + + "\033measurement_protocol_secret\030\001" + + " \001(\01328.google.analytics.admin.v1beta.MeasurementProtocolSecretB\003\340A\002\0224\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\237\001\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\251\001\n" + "%ListMeasurementProtocolSecretsRequest\022O\n" - + "\006parent\030\001 \001(\tB?\340A\002\372A9\0227analyticsadmin." - + "googleapis.com/MeasurementProtocolSecret\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\241\001\n" + + "\006parent\030\001 \001(\tB?\340A\002\372A9\0227analy" + + "ticsadmin.googleapis.com/MeasurementProtocolSecret\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\241\001\n" + "&ListMeasurementProtocolSecretsResponse\022^\n" - + "\034measurement_protocol_secrets\030\001 \003(\013" - + "28.google.analytics.admin.v1beta.MeasurementProtocolSecret\022\027\n" + + "\034measurement_protocol_secrets\030\001 \003(\01328.google.analytics." + + "admin.v1beta.MeasurementProtocolSecret\022\027\n" + "\017next_page_token\030\002 \001(\t\"\264\001\n" + "\034CreateConversionEventRequest\022M\n" - + "\020conversion_event\030\001" - + " \001(\0132..google.analytics.admin.v1beta.ConversionEventB\003\340A\002\022E\n" - + "\006parent\030\002 \001(" - + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/ConversionEvent\"\243\001\n" + + "\020conversion_event\030\001 \001" + + "(\0132..google.analytics.admin.v1beta.ConversionEventB\003\340A\002\022E\n" + + "\006parent\030\002 \001(\tB5\340A\002\372A/\022" + + "-analyticsadmin.googleapis.com/ConversionEvent\"\243\001\n" + "\034UpdateConversionEventRequest\022M\n" - + "\020conversion_event\030\001" - + " \001(\0132..google.analytics.admin.v1beta.ConversionEventB\003\340A\002\0224\n" + + "\020conversion_event\030\001 \001(\0132..google.analy" + + "tics.admin.v1beta.ConversionEventB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"`\n" + "\031GetConversionEventRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-analyticsadmin.googleapis.com/ConversionEvent\"c\n" + "\034DeleteConversionEventRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-analyticsadmin.googleapis.com/ConversionEvent\"\213\001\n" + + "-analyticsadmin.googleapis.com/ConversionEvent\"\225\001\n" + "\033ListConversionEventsRequest\022E\n" - + "\006parent\030\001 \001(\tB" - + "5\340A\002\372A/\022-analyticsadmin.googleapis.com/ConversionEvent\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\202\001\n" + + "\006parent\030\001 \001(" + + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/ConversionEvent\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\202\001\n" + "\034ListConversionEventsResponse\022I\n" - + "\021conversion_events\030\001 \003(\0132..goog" - + "le.analytics.admin.v1beta.ConversionEvent\022\027\n" + + "\021conversion_events\030\001" + + " \003(\0132..google.analytics.admin.v1beta.ConversionEvent\022\027\n" + "\017next_page_token\030\002 \001(\t\"\230\001\n" + "\025CreateKeyEventRequest\022?\n" + "\tkey_event\030\001" @@ -539,33 +539,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&analyticsadmin.googleapis.com/KeyEvent\"U\n" + "\025DeleteKeyEventRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&analyticsadmin.googleapis.com/KeyEvent\"}\n" + + "&analyticsadmin.googleapis.com/KeyEvent\"\207\001\n" + "\024ListKeyEventsRequest\022>\n" + "\006parent\030\001 \001(" - + "\tB.\340A\002\372A(\022&analyticsadmin.googleapis.com/KeyEvent\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"m\n" + + "\tB.\340A\002\372A(\022&analyticsadmin.googleapis.com/KeyEvent\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"m\n" + "\025ListKeyEventsResponse\022;\n\n" + "key_events\030\001 \003(\0132\'.google.analytics.admin.v1beta.KeyEvent\022\027\n" + "\017next_page_token\030\002 \001(\t\"\264\001\n" + "\034CreateCustomDimensionRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-analyt" - + "icsadmin.googleapis.com/CustomDimension\022M\n" - + "\020custom_dimension\030\002 \001(\0132..google.analy" - + "tics.admin.v1beta.CustomDimensionB\003\340A\002\"\236\001\n" + + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-analy" + + "ticsadmin.googleapis.com/CustomDimension\022M\n" + + "\020custom_dimension\030\002 \001(\0132..google.anal" + + "ytics.admin.v1beta.CustomDimensionB\003\340A\002\"\236\001\n" + "\034UpdateCustomDimensionRequest\022H\n" + "\020custom_dimension\030\001" + " \001(\0132..google.analytics.admin.v1beta.CustomDimension\0224\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\213\001\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\225\001\n" + "\033ListCustomDimensionsRequest\022E\n" + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/CustomDimension\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\202\001\n" + + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/CustomDimension\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"\202\001\n" + "\034ListCustomDimensionsResponse\022I\n" - + "\021custom_dimensions\030\001 \003(" - + "\0132..google.analytics.admin.v1beta.CustomDimension\022\027\n" + + "\021custom_dimensions\030\001" + + " \003(\0132..google.analytics.admin.v1beta.CustomDimension\022\027\n" + "\017next_page_token\030\002 \001(\t\"d\n" + "\035ArchiveCustomDimensionRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" @@ -574,10 +574,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-analyticsadmin.googleapis.com/CustomDimension\"\250\001\n" + "\031CreateCustomMetricRequest\022B\n" - + "\006parent\030\001 \001(\t" - + "B2\340A\002\372A,\022*analyticsadmin.googleapis.com/CustomMetric\022G\n\r" - + "custom_metric\030\002 \001(\0132+.go" - + "ogle.analytics.admin.v1beta.CustomMetricB\003\340A\002\"\225\001\n" + + "\006parent\030\001 \001(" + + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/CustomMetric\022G\n\r" + + "custom_metric\030\002" + + " \001(\0132+.google.analytics.admin.v1beta.CustomMetricB\003\340A\002\"\225\001\n" + "\031UpdateCustomMetricRequest\022B\n\r" + "custom_metric\030\001 \001(\0132+.google.analytics.admin.v1beta.CustomMetric\0224\n" + "\013update_mask\030\002" @@ -588,8 +588,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"y\n" + "\031ListCustomMetricsResponse\022C\n" - + "\016custom_metrics\030\001" - + " \003(\0132+.google.analytics.admin.v1beta.CustomMetric\022\027\n" + + "\016custom_metrics\030\001 \003(\0132+." + + "google.analytics.admin.v1beta.CustomMetric\022\027\n" + "\017next_page_token\030\002 \001(\t\"^\n" + "\032ArchiveCustomMetricRequest\022@\n" + "\004name\030\001 \001(\tB2\340A\002\372A,\n" @@ -601,13 +601,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB;\340A\002\372A5\n" + "3analyticsadmin.googleapis.com/DataRetentionSettings\"\266\001\n" + "\"UpdateDataRetentionSettingsRequest\022Z\n" - + "\027data_retention_settings\030\001 \001(\01324.google.anal" - + "ytics.admin.v1beta.DataRetentionSettingsB\003\340A\002\0224\n" + + "\027data_retention_settings\030\001 \001(\01324." + + "google.analytics.admin.v1beta.DataRetentionSettingsB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\240\001\n" + "\027CreateDataStreamRequest\022@\n" - + "\006parent\030\001 \001(" - + "\tB0\340A\002\372A*\022(analyticsadmin.googleapis.com/DataStream\022C\n" + + "\006parent\030\001 \001(\tB0\340A\002\372" + + "A*\022(analyticsadmin.googleapis.com/DataStream\022C\n" + "\013data_stream\030\002" + " \001(\0132).google.analytics.admin.v1beta.DataStreamB\003\340A\002\"Y\n" + "\027DeleteDataStreamRequest\022>\n" @@ -618,267 +618,267 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\201\001\n" + "\026ListDataStreamsRequest\022@\n" - + "\006parent\030\001 \001(" - + "\tB0\340A\002\372A*\022(analyticsadmin.googleapis.com/DataStream\022\021\n" + + "\006parent\030\001 \001(\tB0\340A\002\372A" + + "*\022(analyticsadmin.googleapis.com/DataStream\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"s\n" + "\027ListDataStreamsResponse\022?\n" - + "\014data_streams\030\001 \003(\013" - + "2).google.analytics.admin.v1beta.DataStream\022\027\n" + + "\014data_streams\030\001" + + " \003(\0132).google.analytics.admin.v1beta.DataStream\022\027\n" + "\017next_page_token\030\002 \001(\t\"V\n" + "\024GetDataStreamRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" + "(analyticsadmin.googleapis.com/DataStream2\357W\n" + "\025AnalyticsAdminService\022\220\001\n\n" - + "GetAccount\0220.google.analytics.admin.v1beta.GetAccount" - + "Request\032&.google.analytics.admin.v1beta." - + "Account\"(\332A\004name\202\323\344\223\002\033\022\031/v1beta/{name=accounts/*}\022\221\001\n" - + "\014ListAccounts\0222.google.analytics.admin.v1beta.ListAccountsRequest\0323" - + ".google.analytics.admin.v1beta.ListAccou" - + "ntsResponse\"\030\202\323\344\223\002\022\022\020/v1beta/accounts\022\206\001\n\r" - + "DeleteAccount\0223.google.analytics.admin" - + ".v1beta.DeleteAccountRequest\032\026.google.pr" - + "otobuf.Empty\"(\332A\004name\202\323\344\223\002\033*\031/v1beta/{name=accounts/*}\022\266\001\n\r" - + "UpdateAccount\0223.google.analytics.admin.v1beta.UpdateAccountRe" - + "quest\032&.google.analytics.admin.v1beta.Ac" - + "count\"H\332A\023account,update_mask\202\323\344\223\002,2!/v1" - + "beta/{account.name=accounts/*}:\007account\022\311\001\n" - + "\026ProvisionAccountTicket\022<.google.analytics.admin.v1beta.ProvisionAccountTicke" - + "tRequest\032=.google.analytics.admin.v1beta" - + ".ProvisionAccountTicketResponse\"2\202\323\344\223\002,\"" - + "\'/v1beta/accounts:provisionAccountTicket:\001*\022\261\001\n" - + "\024ListAccountSummaries\022:.google.analytics.admin.v1beta.ListAccountSummarie" - + "sRequest\032;.google.analytics.admin.v1beta.ListAccountSummariesResponse\"" + + "GetAccount\0220.google.analytics.admin.v1beta" + + ".GetAccountRequest\032&.google.analytics.ad" + + "min.v1beta.Account\"(\332A\004name\202\323\344\223\002\033\022\031/v1beta/{name=accounts/*}\022\221\001\n" + + "\014ListAccounts\0222.google.analytics.admin.v1beta.ListAccoun" + + "tsRequest\0323.google.analytics.admin.v1bet" + + "a.ListAccountsResponse\"\030\202\323\344\223\002\022\022\020/v1beta/accounts\022\206\001\n\r" + + "DeleteAccount\0223.google.analytics.admin.v1beta.DeleteAccountRequest\032" + + "\026.google.protobuf.Empty\"(\332A\004name\202\323\344\223\002\033*\031/v1beta/{name=accounts/*}\022\266\001\n\r" + + "UpdateAccount\0223.google.analytics.admin.v1beta.Upda" + + "teAccountRequest\032&.google.analytics.admi" + + "n.v1beta.Account\"H\332A\023account,update_mask" + + "\202\323\344\223\002,2!/v1beta/{account.name=accounts/*}:\007account\022\311\001\n" + + "\026ProvisionAccountTicket\022<.google.analytics.admin.v1beta.ProvisionA" + + "ccountTicketRequest\032=.google.analytics.admin.v1beta.ProvisionAccountTicketRespon" + + "se\"2\202\323\344\223\002,\"\'/v1beta/accounts:provisionAccountTicket:\001*\022\261\001\n" + + "\024ListAccountSummaries\022:.google.analytics.admin.v1beta.ListAcco" + + "untSummariesRequest\032;.google.analytics.admin.v1beta.ListAccountSummariesResponse\"" + " \202\323\344\223\002\032\022\030/v1beta/accountSummaries\022\225\001\n" - + "\013GetProperty\0221.google.analytics.admin.v1beta.GetPrope" - + "rtyRequest\032\'.google.analytics.admin.v1be" - + "ta.Property\"*\332A\004name\202\323\344\223\002\035\022\033/v1beta/{name=properties/*}\022\231\001\n" - + "\016ListProperties\0224.google.analytics.admin.v1beta.ListPropertie" - + "sRequest\0325.google.analytics.admin.v1beta" - + ".ListPropertiesResponse\"\032\202\323\344\223\002\024\022\022/v1beta/properties\022\240\001\n" - + "\016CreateProperty\0224.google.analytics.admin.v1beta.CreatePropertyReq" - + "uest\032\'.google.analytics.admin.v1beta.Pro" - + "perty\"/\332A\010property\202\323\344\223\002\036\"\022/v1beta/properties:\010property\022\233\001\n" - + "\016DeleteProperty\0224.google.analytics.admin.v1beta.DeleteProperty" - + "Request\032\'.google.analytics.admin.v1beta." - + "Property\"*\332A\004name\202\323\344\223\002\035*\033/v1beta/{name=properties/*}\022\276\001\n" - + "\016UpdateProperty\0224.google.analytics.admin.v1beta.UpdatePropertyRe" - + "quest\032\'.google.analytics.admin.v1beta.Pr" - + "operty\"M\332A\024property,update_mask\202\323\344\223\00202$/" - + "v1beta/{property.name=properties/*}:\010property\022\326\001\n" - + "\022CreateFirebaseLink\0228.google.analytics.admin.v1beta.CreateFirebaseLinkR" - + "equest\032+.google.analytics.admin.v1beta.F" - + "irebaseLink\"Y\332A\024parent,firebase_link\202\323\344\223" - + "\002<\"+/v1beta/{parent=properties/*}/firebaseLinks:\r" + + "\013GetProperty\0221.google.analytics.admin.v1be" + + "ta.GetPropertyRequest\032\'.google.analytics" + + ".admin.v1beta.Property\"*\332A\004name\202\323\344\223\002\035\022\033/v1beta/{name=properties/*}\022\231\001\n" + + "\016ListProperties\0224.google.analytics.admin.v1beta.Li" + + "stPropertiesRequest\0325.google.analytics.a" + + "dmin.v1beta.ListPropertiesResponse\"\032\202\323\344\223\002\024\022\022/v1beta/properties\022\240\001\n" + + "\016CreateProperty\0224.google.analytics.admin.v1beta.Create" + + "PropertyRequest\032\'.google.analytics.admin" + + ".v1beta.Property\"/\332A\010property\202\323\344\223\002\036\"\022/v1beta/properties:\010property\022\233\001\n" + + "\016DeleteProperty\0224.google.analytics.admin.v1beta.Del" + + "etePropertyRequest\032\'.google.analytics.ad" + + "min.v1beta.Property\"*\332A\004name\202\323\344\223\002\035*\033/v1beta/{name=properties/*}\022\276\001\n" + + "\016UpdateProperty\0224.google.analytics.admin.v1beta.Updat" + + "ePropertyRequest\032\'.google.analytics.admi" + + "n.v1beta.Property\"M\332A\024property,update_ma" + + "sk\202\323\344\223\00202$/v1beta/{property.name=properties/*}:\010property\022\326\001\n" + + "\022CreateFirebaseLink\0228.google.analytics.admin.v1beta.CreateFi" + + "rebaseLinkRequest\032+.google.analytics.adm" + + "in.v1beta.FirebaseLink\"Y\332A\024parent,fireba" + + "se_link\202\323\344\223\002<\"+/v1beta/{parent=properties/*}/firebaseLinks:\r" + "firebase_link\022\242\001\n" - + "\022DeleteFirebaseLink\0228.google.analytics.admin.v1beta.De" - + "leteFirebaseLinkRequest\032\026.google.protobu" - + "f.Empty\":\332A\004name\202\323\344\223\002-*+/v1beta/{name=properties/*/firebaseLinks/*}\022\304\001\n" - + "\021ListFirebaseLinks\0227.google.analytics.admin.v1bet" - + "a.ListFirebaseLinksRequest\0328.google.analytics.admin.v1beta.ListFirebaseLinksResp" - + "onse\"<\332A\006parent\202\323\344\223\002-\022+/v1beta/{parent=properties/*}/firebaseLinks\022\336\001\n" - + "\023CreateGoogleAdsLink\0229.google.analytics.admin.v1be" - + "ta.CreateGoogleAdsLinkRequest\032,.google.a" - + "nalytics.admin.v1beta.GoogleAdsLink\"^\332A\026" - + "parent,google_ads_link\202\323\344\223\002?\",/v1beta/{p" - + "arent=properties/*}/googleAdsLinks:\017google_ads_link\022\363\001\n" - + "\023UpdateGoogleAdsLink\0229.google.analytics.admin.v1beta.UpdateGoogle" - + "AdsLinkRequest\032,.google.analytics.admin." - + "v1beta.GoogleAdsLink\"s\332A\033google_ads_link" - + ",update_mask\202\323\344\223\002O221/v" - + "1beta/{key_event.name=properties/*/keyEv" - + "ents/*}:\tkey_event\022\241\001\n\013GetKeyEvent\0221.goo" - + "gle.analytics.admin.v1beta.GetKeyEventRe" - + "quest\032\'.google.analytics.admin.v1beta.Ke" - + "yEvent\"6\332A\004name\202\323\344\223\002)\022\'/v1beta/{name=pro" - + "perties/*/keyEvents/*}\022\226\001\n\016DeleteKeyEven" - + "t\0224.google.analytics.admin.v1beta.Delete" - + "KeyEventRequest\032\026.google.protobuf.Empty\"" - + "6\332A\004name\202\323\344\223\002)*\'/v1beta/{name=properties" - + "/*/keyEvents/*}\022\264\001\n\rListKeyEvents\0223.goog" - + "le.analytics.admin.v1beta.ListKeyEventsR" - + "equest\0324.google.analytics.admin.v1beta.L" - + "istKeyEventsResponse\"8\332A\006parent\202\323\344\223\002)\022\'/" - + "v1beta/{parent=properties/*}/keyEvents\022\350" - + "\001\n\025CreateCustomDimension\022;.google.analyt" - + "ics.admin.v1beta.CreateCustomDimensionRe" - + "quest\032..google.analytics.admin.v1beta.Cu" - + "stomDimension\"b\332A\027parent,custom_dimensio" - + "n\202\323\344\223\002B\"./v1beta/{parent=properties/*}/c" - + "ustomDimensions:\020custom_dimension\022\376\001\n\025Up" - + "dateCustomDimension\022;.google.analytics.a" - + "dmin.v1beta.UpdateCustomDimensionRequest" - + "\032..google.analytics.admin.v1beta.CustomD" - + "imension\"x\332A\034custom_dimension,update_mas" - + "k\202\323\344\223\002S2?/v1beta/{custom_dimension.name=" - + "properties/*/customDimensions/*}:\020custom" - + "_dimension\022\320\001\n\024ListCustomDimensions\022:.go" - + "ogle.analytics.admin.v1beta.ListCustomDi" - + "mensionsRequest\032;.google.analytics.admin" - + ".v1beta.ListCustomDimensionsResponse\"?\332A" - + "\006parent\202\323\344\223\0020\022./v1beta/{parent=propertie" - + "s/*}/customDimensions\022\270\001\n\026ArchiveCustomD" - + "imension\022<.google.analytics.admin.v1beta" - + ".ArchiveCustomDimensionRequest\032\026.google." - + "protobuf.Empty\"H\332A\004name\202\323\344\223\002;\"6/v1beta/{" - + "name=properties/*/customDimensions/*}:ar" - + "chive:\001*\022\275\001\n\022GetCustomDimension\0228.google" - + ".analytics.admin.v1beta.GetCustomDimensi" - + "onRequest\032..google.analytics.admin.v1bet" - + "a.CustomDimension\"=\332A\004name\202\323\344\223\0020\022./v1bet" - + "a/{name=properties/*/customDimensions/*}" - + "\022\326\001\n\022CreateCustomMetric\0228.google.analyti" - + "cs.admin.v1beta.CreateCustomMetricReques" - + "t\032+.google.analytics.admin.v1beta.Custom" - + "Metric\"Y\332A\024parent,custom_metric\202\323\344\223\002<\"+/" - + "v1beta/{parent=properties/*}/customMetri" - + "cs:\rcustom_metric\022\351\001\n\022UpdateCustomMetric" - + "\0228.google.analytics.admin.v1beta.UpdateC" - + "ustomMetricRequest\032+.google.analytics.ad" - + "min.v1beta.CustomMetric\"l\332A\031custom_metri" - + "c,update_mask\202\323\344\223\002J29/v1beta/{custom_met" - + "ric.name=properties/*/customMetrics/*}:\r" - + "custom_metric\022\304\001\n\021ListCustomMetrics\0227.go" - + "ogle.analytics.admin.v1beta.ListCustomMe" - + "tricsRequest\0328.google.analytics.admin.v1" - + "beta.ListCustomMetricsResponse\"<\332A\006paren" - + "t\202\323\344\223\002-\022+/v1beta/{parent=properties/*}/c" - + "ustomMetrics\022\257\001\n\023ArchiveCustomMetric\0229.g" - + "oogle.analytics.admin.v1beta.ArchiveCust" - + "omMetricRequest\032\026.google.protobuf.Empty\"" - + "E\332A\004name\202\323\344\223\0028\"3/v1beta/{name=properties" - + "/*/customMetrics/*}:archive:\001*\022\261\001\n\017GetCu" - + "stomMetric\0225.google.analytics.admin.v1be" - + "ta.GetCustomMetricRequest\032+.google.analy" - + "tics.admin.v1beta.CustomMetric\":\332A\004name\202" - + "\323\344\223\002-\022+/v1beta/{name=properties/*/custom" - + "Metrics/*}\022\322\001\n\030GetDataRetentionSettings\022" - + ">.google.analytics.admin.v1beta.GetDataR" - + "etentionSettingsRequest\0324.google.analyti" - + "cs.admin.v1beta.DataRetentionSettings\"@\332" - + "A\004name\202\323\344\223\0023\0221/v1beta/{name=properties/*" - + "/dataRetentionSettings}\022\251\002\n\033UpdateDataRe" - + "tentionSettings\022A.google.analytics.admin" - + ".v1beta.UpdateDataRetentionSettingsReque" - + "st\0324.google.analytics.admin.v1beta.DataR" - + "etentionSettings\"\220\001\332A#data_retention_set" - + "tings,update_mask\202\323\344\223\002d2I/v1beta/{data_r" - + "etention_settings.name=properties/*/data" - + "RetentionSettings}:\027data_retention_setti" - + "ngs\022\312\001\n\020CreateDataStream\0226.google.analyt" - + "ics.admin.v1beta.CreateDataStreamRequest" - + "\032).google.analytics.admin.v1beta.DataStr" - + "eam\"S\332A\022parent,data_stream\202\323\344\223\0028\")/v1bet" - + "a/{parent=properties/*}/dataStreams:\013dat" - + "a_stream\022\234\001\n\020DeleteDataStream\0226.google.a" - + "nalytics.admin.v1beta.DeleteDataStreamRe" - + "quest\032\026.google.protobuf.Empty\"8\332A\004name\202\323" - + "\344\223\002+*)/v1beta/{name=properties/*/dataStr" - + "eams/*}\022\333\001\n\020UpdateDataStream\0226.google.an" - + "alytics.admin.v1beta.UpdateDataStreamReq" - + "uest\032).google.analytics.admin.v1beta.Dat" - + "aStream\"d\332A\027data_stream,update_mask\202\323\344\223\002" - + "D25/v1beta/{data_stream.name=properties/" - + "*/dataStreams/*}:\013data_stream\022\274\001\n\017ListDa" - + "taStreams\0225.google.analytics.admin.v1bet" - + "a.ListDataStreamsRequest\0326.google.analyt" - + "ics.admin.v1beta.ListDataStreamsResponse" - + "\":\332A\006parent\202\323\344\223\002+\022)/v1beta/{parent=prope" - + "rties/*}/dataStreams\022\251\001\n\rGetDataStream\0223" - + ".google.analytics.admin.v1beta.GetDataSt" + + "\022DeleteFirebaseLink\0228.google.analytics.admi" + + "n.v1beta.DeleteFirebaseLinkRequest\032\026.goo" + + "gle.protobuf.Empty\":\332A\004name\202\323\344\223\002-*+/v1be" + + "ta/{name=properties/*/firebaseLinks/*}\022\304\001\n" + + "\021ListFirebaseLinks\0227.google.analytics." + + "admin.v1beta.ListFirebaseLinksRequest\0328.google.analytics.admin.v1beta.ListFireba" + + "seLinksResponse\"<\332A\006parent\202\323\344\223\002-\022+/v1bet" + + "a/{parent=properties/*}/firebaseLinks\022\336\001\n" + + "\023CreateGoogleAdsLink\0229.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest" + + "\032,.google.analytics.admin.v1beta.GoogleA" + + "dsLink\"^\332A\026parent,google_ads_link\202\323\344\223\002?\"" + + ",/v1beta/{parent=properties/*}/googleAdsLinks:\017google_ads_link\022\363\001\n" + + "\023UpdateGoogleAdsLink\0229.google.analytics.admin.v1beta.U" + + "pdateGoogleAdsLinkRequest\032,.google.analy" + + "tics.admin.v1beta.GoogleAdsLink\"s\332A\033goog" + + "le_ads_link,update_mask\202\323\344\223\002O221/v1beta/{key_event.name=propert" + + "ies/*/keyEvents/*}:\tkey_event\022\241\001\n\013GetKey" + + "Event\0221.google.analytics.admin.v1beta.Ge" + + "tKeyEventRequest\032\'.google.analytics.admi" + + "n.v1beta.KeyEvent\"6\332A\004name\202\323\344\223\002)\022\'/v1bet" + + "a/{name=properties/*/keyEvents/*}\022\226\001\n\016De" + + "leteKeyEvent\0224.google.analytics.admin.v1" + + "beta.DeleteKeyEventRequest\032\026.google.prot" + + "obuf.Empty\"6\332A\004name\202\323\344\223\002)*\'/v1beta/{name" + + "=properties/*/keyEvents/*}\022\264\001\n\rListKeyEv" + + "ents\0223.google.analytics.admin.v1beta.Lis" + + "tKeyEventsRequest\0324.google.analytics.adm" + + "in.v1beta.ListKeyEventsResponse\"8\332A\006pare" + + "nt\202\323\344\223\002)\022\'/v1beta/{parent=properties/*}/" + + "keyEvents\022\350\001\n\025CreateCustomDimension\022;.go" + + "ogle.analytics.admin.v1beta.CreateCustom" + + "DimensionRequest\032..google.analytics.admi" + + "n.v1beta.CustomDimension\"b\332A\027parent,cust" + + "om_dimension\202\323\344\223\002B\"./v1beta/{parent=prop" + + "erties/*}/customDimensions:\020custom_dimen" + + "sion\022\376\001\n\025UpdateCustomDimension\022;.google." + + "analytics.admin.v1beta.UpdateCustomDimen" + + "sionRequest\032..google.analytics.admin.v1b" + + "eta.CustomDimension\"x\332A\034custom_dimension" + + ",update_mask\202\323\344\223\002S2?/v1beta/{custom_dime" + + "nsion.name=properties/*/customDimensions" + + "/*}:\020custom_dimension\022\320\001\n\024ListCustomDime" + + "nsions\022:.google.analytics.admin.v1beta.L" + + "istCustomDimensionsRequest\032;.google.anal" + + "ytics.admin.v1beta.ListCustomDimensionsR" + + "esponse\"?\332A\006parent\202\323\344\223\0020\022./v1beta/{paren" + + "t=properties/*}/customDimensions\022\270\001\n\026Arc" + + "hiveCustomDimension\022<.google.analytics.a" + + "dmin.v1beta.ArchiveCustomDimensionReques" + + "t\032\026.google.protobuf.Empty\"H\332A\004name\202\323\344\223\002;" + + "\"6/v1beta/{name=properties/*/customDimen" + + "sions/*}:archive:\001*\022\275\001\n\022GetCustomDimensi" + + "on\0228.google.analytics.admin.v1beta.GetCu" + + "stomDimensionRequest\032..google.analytics." + + "admin.v1beta.CustomDimension\"=\332A\004name\202\323\344" + + "\223\0020\022./v1beta/{name=properties/*/customDi" + + "mensions/*}\022\326\001\n\022CreateCustomMetric\0228.goo" + + "gle.analytics.admin.v1beta.CreateCustomM" + + "etricRequest\032+.google.analytics.admin.v1" + + "beta.CustomMetric\"Y\332A\024parent,custom_metr" + + "ic\202\323\344\223\002<\"+/v1beta/{parent=properties/*}/" + + "customMetrics:\rcustom_metric\022\351\001\n\022UpdateC" + + "ustomMetric\0228.google.analytics.admin.v1b" + + "eta.UpdateCustomMetricRequest\032+.google.a" + + "nalytics.admin.v1beta.CustomMetric\"l\332A\031c" + + "ustom_metric,update_mask\202\323\344\223\002J29/v1beta/" + + "{custom_metric.name=properties/*/customM" + + "etrics/*}:\rcustom_metric\022\304\001\n\021ListCustomM" + + "etrics\0227.google.analytics.admin.v1beta.L" + + "istCustomMetricsRequest\0328.google.analyti" + + "cs.admin.v1beta.ListCustomMetricsRespons" + + "e\"<\332A\006parent\202\323\344\223\002-\022+/v1beta/{parent=prop" + + "erties/*}/customMetrics\022\257\001\n\023ArchiveCusto" + + "mMetric\0229.google.analytics.admin.v1beta." + + "ArchiveCustomMetricRequest\032\026.google.prot" + + "obuf.Empty\"E\332A\004name\202\323\344\223\0028\"3/v1beta/{name" + + "=properties/*/customMetrics/*}:archive:\001" + + "*\022\261\001\n\017GetCustomMetric\0225.google.analytics" + + ".admin.v1beta.GetCustomMetricRequest\032+.g" + + "oogle.analytics.admin.v1beta.CustomMetri" + + "c\":\332A\004name\202\323\344\223\002-\022+/v1beta/{name=properti" + + "es/*/customMetrics/*}\022\322\001\n\030GetDataRetenti" + + "onSettings\022>.google.analytics.admin.v1be" + + "ta.GetDataRetentionSettingsRequest\0324.goo" + + "gle.analytics.admin.v1beta.DataRetention" + + "Settings\"@\332A\004name\202\323\344\223\0023\0221/v1beta/{name=p" + + "roperties/*/dataRetentionSettings}\022\251\002\n\033U" + + "pdateDataRetentionSettings\022A.google.anal" + + "ytics.admin.v1beta.UpdateDataRetentionSe" + + "ttingsRequest\0324.google.analytics.admin.v" + + "1beta.DataRetentionSettings\"\220\001\332A#data_re" + + "tention_settings,update_mask\202\323\344\223\002d2I/v1b" + + "eta/{data_retention_settings.name=proper" + + "ties/*/dataRetentionSettings}:\027data_rete" + + "ntion_settings\022\312\001\n\020CreateDataStream\0226.go" + + "ogle.analytics.admin.v1beta.CreateDataSt" + "reamRequest\032).google.analytics.admin.v1b" - + "eta.DataStream\"8\332A\004name\202\323\344\223\002+\022)/v1beta/{" - + "name=properties/*/dataStreams/*}\022\354\001\n\017Run" - + "AccessReport\0225.google.analytics.admin.v1" - + "beta.RunAccessReportRequest\0326.google.ana" - + "lytics.admin.v1beta.RunAccessReportRespo" - + "nse\"j\202\323\344\223\002d\"-/v1beta/{entity=properties/" - + "*}:runAccessReport:\001*Z0\"+/v1beta/{entity" - + "=accounts/*}:runAccessReport:\001*\032\204\001\312A\035ana" - + "lyticsadmin.googleapis.com\322Aahttps://www" - + ".googleapis.com/auth/analytics.edit,http" - + "s://www.googleapis.com/auth/analytics.re" - + "adonlyBy\n!com.google.analytics.admin.v1b" - + "etaB\023AnalyticsAdminProtoP\001Z=cloud.google" - + ".com/go/analytics/admin/apiv1beta/adminp" - + "b;adminpbb\006proto3" + + "eta.DataStream\"S\332A\022parent,data_stream\202\323\344" + + "\223\0028\")/v1beta/{parent=properties/*}/dataS" + + "treams:\013data_stream\022\234\001\n\020DeleteDataStream" + + "\0226.google.analytics.admin.v1beta.DeleteD" + + "ataStreamRequest\032\026.google.protobuf.Empty" + + "\"8\332A\004name\202\323\344\223\002+*)/v1beta/{name=propertie" + + "s/*/dataStreams/*}\022\333\001\n\020UpdateDataStream\022" + + "6.google.analytics.admin.v1beta.UpdateDa" + + "taStreamRequest\032).google.analytics.admin" + + ".v1beta.DataStream\"d\332A\027data_stream,updat" + + "e_mask\202\323\344\223\002D25/v1beta/{data_stream.name=" + + "properties/*/dataStreams/*}:\013data_stream" + + "\022\274\001\n\017ListDataStreams\0225.google.analytics." + + "admin.v1beta.ListDataStreamsRequest\0326.go" + + "ogle.analytics.admin.v1beta.ListDataStre" + + "amsResponse\":\332A\006parent\202\323\344\223\002+\022)/v1beta/{p" + + "arent=properties/*}/dataStreams\022\251\001\n\rGetD" + + "ataStream\0223.google.analytics.admin.v1bet" + + "a.GetDataStreamRequest\032).google.analytic" + + "s.admin.v1beta.DataStream\"8\332A\004name\202\323\344\223\002+" + + "\022)/v1beta/{name=properties/*/dataStreams" + + "/*}\022\354\001\n\017RunAccessReport\0225.google.analyti" + + "cs.admin.v1beta.RunAccessReportRequest\0326" + + ".google.analytics.admin.v1beta.RunAccess" + + "ReportResponse\"j\202\323\344\223\002d\"-/v1beta/{entity=" + + "properties/*}:runAccessReport:\001*Z0\"+/v1b" + + "eta/{entity=accounts/*}:runAccessReport:" + + "\001*\032\204\001\312A\035analyticsadmin.googleapis.com\322Aa" + + "https://www.googleapis.com/auth/analytic" + + "s.edit,https://www.googleapis.com/auth/a" + + "nalytics.readonlyBy\n!com.google.analytic" + + "s.admin.v1betaB\023AnalyticsAdminProtoP\001Z=c" + + "loud.google.com/go/analytics/admin/apiv1" + + "beta/adminpb;adminpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java index 5b61bd772959..64653d2dc83f 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java @@ -1154,11 +1154,11 @@ public com.google.protobuf.Parser getParserForType() { * * *
            -   * Output only. Resource name of this conversion event.
            +   * Identifier. Resource name of this conversion event.
                * Format: properties/{property}/conversionEvents/{conversion_event}
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1179,11 +1179,11 @@ public java.lang.String getName() { * * *
            -   * Output only. Resource name of this conversion event.
            +   * Identifier. Resource name of this conversion event.
                * Format: properties/{property}/conversionEvents/{conversion_event}
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1959,11 +1959,11 @@ public Builder mergeFrom( * * *
            -     * Output only. Resource name of this conversion event.
            +     * Identifier. Resource name of this conversion event.
                  * Format: properties/{property}/conversionEvents/{conversion_event}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1983,11 +1983,11 @@ public java.lang.String getName() { * * *
            -     * Output only. Resource name of this conversion event.
            +     * Identifier. Resource name of this conversion event.
                  * Format: properties/{property}/conversionEvents/{conversion_event}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -2007,11 +2007,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Output only. Resource name of this conversion event.
            +     * Identifier. Resource name of this conversion event.
                  * Format: properties/{property}/conversionEvents/{conversion_event}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -2030,11 +2030,11 @@ public Builder setName(java.lang.String value) { * * *
            -     * Output only. Resource name of this conversion event.
            +     * Identifier. Resource name of this conversion event.
                  * Format: properties/{property}/conversionEvents/{conversion_event}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -2049,11 +2049,11 @@ public Builder clearName() { * * *
            -     * Output only. Resource name of this conversion event.
            +     * Identifier. Resource name of this conversion event.
                  * Format: properties/{property}/conversionEvents/{conversion_event}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * 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-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java index 8dc3f3fa2038..f835a0d376f6 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java @@ -30,11 +30,11 @@ public interface ConversionEventOrBuilder * * *
            -   * Output only. Resource name of this conversion event.
            +   * Identifier. Resource name of this conversion event.
                * Format: properties/{property}/conversionEvents/{conversion_event}
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,11 +44,11 @@ public interface ConversionEventOrBuilder * * *
            -   * Output only. Resource name of this conversion event.
            +   * Identifier. Resource name of this conversion event.
                * Format: properties/{property}/conversionEvents/{conversion_event}
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimension.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimension.java index 526331316dbe..e0196448d595 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimension.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimension.java @@ -277,11 +277,11 @@ private DimensionScope(int value) { * * *
            -   * Output only. Resource name for this CustomDimension resource.
            +   * Identifier. Resource name for this CustomDimension resource.
                * Format: properties/{property}/customDimensions/{customDimension}
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -302,11 +302,11 @@ public java.lang.String getName() { * * *
            -   * Output only. Resource name for this CustomDimension resource.
            +   * Identifier. Resource name for this CustomDimension resource.
                * Format: properties/{property}/customDimensions/{customDimension}
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1021,11 +1021,11 @@ public Builder mergeFrom( * * *
            -     * Output only. Resource name for this CustomDimension resource.
            +     * Identifier. Resource name for this CustomDimension resource.
                  * Format: properties/{property}/customDimensions/{customDimension}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1045,11 +1045,11 @@ public java.lang.String getName() { * * *
            -     * Output only. Resource name for this CustomDimension resource.
            +     * Identifier. Resource name for this CustomDimension resource.
                  * Format: properties/{property}/customDimensions/{customDimension}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1069,11 +1069,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Output only. Resource name for this CustomDimension resource.
            +     * Identifier. Resource name for this CustomDimension resource.
                  * Format: properties/{property}/customDimensions/{customDimension}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1092,11 +1092,11 @@ public Builder setName(java.lang.String value) { * * *
            -     * Output only. Resource name for this CustomDimension resource.
            +     * Identifier. Resource name for this CustomDimension resource.
                  * Format: properties/{property}/customDimensions/{customDimension}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1111,11 +1111,11 @@ public Builder clearName() { * * *
            -     * Output only. Resource name for this CustomDimension resource.
            +     * Identifier. Resource name for this CustomDimension resource.
                  * Format: properties/{property}/customDimensions/{customDimension}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * 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-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionOrBuilder.java index beb357d9e747..06e57b52035c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionOrBuilder.java @@ -30,11 +30,11 @@ public interface CustomDimensionOrBuilder * * *
            -   * Output only. Resource name for this CustomDimension resource.
            +   * Identifier. Resource name for this CustomDimension resource.
                * Format: properties/{property}/customDimensions/{customDimension}
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,11 +44,11 @@ public interface CustomDimensionOrBuilder * * *
            -   * Output only. Resource name for this CustomDimension resource.
            +   * Identifier. Resource name for this CustomDimension resource.
                * Format: properties/{property}/customDimensions/{customDimension}
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetric.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetric.java index 5ecd84685b4b..df7960c04b57 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetric.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetric.java @@ -762,11 +762,11 @@ private RestrictedMetricType(int value) { * * *
            -   * Output only. Resource name for this CustomMetric resource.
            +   * Identifier. Resource name for this CustomMetric resource.
                * Format: properties/{property}/customMetrics/{customMetric}
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -787,11 +787,11 @@ public java.lang.String getName() { * * *
            -   * Output only. Resource name for this CustomMetric resource.
            +   * Identifier. Resource name for this CustomMetric resource.
                * Format: properties/{property}/customMetrics/{customMetric}
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1710,11 +1710,11 @@ public Builder mergeFrom( * * *
            -     * Output only. Resource name for this CustomMetric resource.
            +     * Identifier. Resource name for this CustomMetric resource.
                  * Format: properties/{property}/customMetrics/{customMetric}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1734,11 +1734,11 @@ public java.lang.String getName() { * * *
            -     * Output only. Resource name for this CustomMetric resource.
            +     * Identifier. Resource name for this CustomMetric resource.
                  * Format: properties/{property}/customMetrics/{customMetric}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1758,11 +1758,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Output only. Resource name for this CustomMetric resource.
            +     * Identifier. Resource name for this CustomMetric resource.
                  * Format: properties/{property}/customMetrics/{customMetric}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1781,11 +1781,11 @@ public Builder setName(java.lang.String value) { * * *
            -     * Output only. Resource name for this CustomMetric resource.
            +     * Identifier. Resource name for this CustomMetric resource.
                  * Format: properties/{property}/customMetrics/{customMetric}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1800,11 +1800,11 @@ public Builder clearName() { * * *
            -     * Output only. Resource name for this CustomMetric resource.
            +     * Identifier. Resource name for this CustomMetric resource.
                  * Format: properties/{property}/customMetrics/{customMetric}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * 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-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricOrBuilder.java index 625e80a00427..ef611f3b16f3 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricOrBuilder.java @@ -30,11 +30,11 @@ public interface CustomMetricOrBuilder * * *
            -   * Output only. Resource name for this CustomMetric resource.
            +   * Identifier. Resource name for this CustomMetric resource.
                * Format: properties/{property}/customMetrics/{customMetric}
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,11 +44,11 @@ public interface CustomMetricOrBuilder * * *
            -   * Output only. Resource name for this CustomMetric resource.
            +   * Identifier. Resource name for this CustomMetric resource.
                * Format: properties/{property}/customMetrics/{customMetric}
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettings.java index c5e6212c280e..d54999f0075d 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettings.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettings.java @@ -330,11 +330,11 @@ private RetentionDuration(int value) { * * *
            -   * Output only. Resource name for this DataRetentionSetting resource.
            +   * Identifier. Resource name for this DataRetentionSetting resource.
                * Format: properties/{property}/dataRetentionSettings
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -355,11 +355,11 @@ public java.lang.String getName() { * * *
            -   * Output only. Resource name for this DataRetentionSetting resource.
            +   * Identifier. Resource name for this DataRetentionSetting resource.
                * Format: properties/{property}/dataRetentionSettings
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -881,11 +881,11 @@ public Builder mergeFrom( * * *
            -     * Output only. Resource name for this DataRetentionSetting resource.
            +     * Identifier. Resource name for this DataRetentionSetting resource.
                  * Format: properties/{property}/dataRetentionSettings
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -905,11 +905,11 @@ public java.lang.String getName() { * * *
            -     * Output only. Resource name for this DataRetentionSetting resource.
            +     * Identifier. Resource name for this DataRetentionSetting resource.
                  * Format: properties/{property}/dataRetentionSettings
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -929,11 +929,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Output only. Resource name for this DataRetentionSetting resource.
            +     * Identifier. Resource name for this DataRetentionSetting resource.
                  * Format: properties/{property}/dataRetentionSettings
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -952,11 +952,11 @@ public Builder setName(java.lang.String value) { * * *
            -     * Output only. Resource name for this DataRetentionSetting resource.
            +     * Identifier. Resource name for this DataRetentionSetting resource.
                  * Format: properties/{property}/dataRetentionSettings
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -971,11 +971,11 @@ public Builder clearName() { * * *
            -     * Output only. Resource name for this DataRetentionSetting resource.
            +     * Identifier. Resource name for this DataRetentionSetting resource.
                  * Format: properties/{property}/dataRetentionSettings
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * 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-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsOrBuilder.java index 06d985330c34..bf18b49fa049 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsOrBuilder.java @@ -30,11 +30,11 @@ public interface DataRetentionSettingsOrBuilder * * *
            -   * Output only. Resource name for this DataRetentionSetting resource.
            +   * Identifier. Resource name for this DataRetentionSetting resource.
                * Format: properties/{property}/dataRetentionSettings
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,11 +44,11 @@ public interface DataRetentionSettingsOrBuilder * * *
            -   * Output only. Resource name for this DataRetentionSetting resource.
            +   * Identifier. Resource name for this DataRetentionSetting resource.
                * Format: properties/{property}/dataRetentionSettings
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettings.java index afc8ab4bd8f2..2ab92e88e2e7 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettings.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettings.java @@ -80,12 +80,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Output only. Resource name.
            +   * Identifier. Resource name.
                * Format: accounts/{account}/dataSharingSettings
                * Example: "accounts/1000/dataSharingSettings"
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -106,12 +106,12 @@ public java.lang.String getName() { * * *
            -   * Output only. Resource name.
            +   * Identifier. Resource name.
                * Format: accounts/{account}/dataSharingSettings
                * Example: "accounts/1000/dataSharingSettings"
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -135,8 +135,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -   * Allows Google support to access the data in order to help troubleshoot
            -   * issues.
            +   * Allows Google technical support representatives access to your Google
            +   * Analytics data and account when necessary to provide service and find
            +   * solutions to technical issues.
            +   *
            +   * This field maps to the "Technical support" field in the Google Analytics
            +   * Admin UI.
                * 
            * * bool sharing_with_google_support_enabled = 2; @@ -155,9 +159,15 @@ public boolean getSharingWithGoogleSupportEnabled() { * * *
            -   * Allows Google sales teams that are assigned to the customer to access the
            -   * data in order to suggest configuration changes to improve results.
            -   * Sales team restrictions still apply when enabled.
            +   * Allows Google access to your Google Analytics account data, including
            +   * account usage and configuration data, product spending, and users
            +   * associated with your Google Analytics account, so that Google can help you
            +   * make the most of Google products, providing you with insights, offers,
            +   * recommendations, and optimization tips across Google Analytics and other
            +   * Google products for business.
            +   *
            +   * This field maps to the "Recommendations for your business" field in the
            +   * Google Analytics Admin UI.
                * 
            * * bool sharing_with_google_assigned_sales_enabled = 3; @@ -176,15 +186,18 @@ public boolean getSharingWithGoogleAssignedSalesEnabled() { * * *
            -   * Allows any of Google sales to access the data in order to suggest
            -   * configuration changes to improve results.
            +   * Deprecated. This field is no longer used and always returns false.
                * 
            * - * bool sharing_with_google_any_sales_enabled = 4; + * bool sharing_with_google_any_sales_enabled = 4 [deprecated = true]; * + * @deprecated + * google.analytics.admin.v1beta.DataSharingSettings.sharing_with_google_any_sales_enabled is + * deprecated. See google/analytics/admin/v1beta/resources.proto;l=561 * @return The sharingWithGoogleAnySalesEnabled. */ @java.lang.Override + @java.lang.Deprecated public boolean getSharingWithGoogleAnySalesEnabled() { return sharingWithGoogleAnySalesEnabled_; } @@ -197,6 +210,9 @@ public boolean getSharingWithGoogleAnySalesEnabled() { * *
                * Allows Google to use the data to improve other Google products or services.
            +   *
            +   * This fields maps to the "Google products & services" field in the Google
            +   * Analytics Admin UI.
                * 
            * * bool sharing_with_google_products_enabled = 5; @@ -215,7 +231,14 @@ public boolean getSharingWithGoogleProductsEnabled() { * * *
            -   * Allows Google to share the data anonymously in aggregate form with others.
            +   * Enable features like predictions, modeled data, and benchmarking that can
            +   * provide you with richer business insights when you contribute aggregated
            +   * measurement data. The data you share (including information about the
            +   * property from which it is shared) is aggregated and de-identified before
            +   * being used to generate business insights.
            +   *
            +   * This field maps to the "Modeling contributions & business insights" field
            +   * in the Google Analytics Admin UI.
                * 
            * * bool sharing_with_others_enabled = 6; @@ -675,12 +698,12 @@ public Builder mergeFrom( * * *
            -     * Output only. Resource name.
            +     * Identifier. Resource name.
                  * Format: accounts/{account}/dataSharingSettings
                  * Example: "accounts/1000/dataSharingSettings"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -700,12 +723,12 @@ public java.lang.String getName() { * * *
            -     * Output only. Resource name.
            +     * Identifier. Resource name.
                  * Format: accounts/{account}/dataSharingSettings
                  * Example: "accounts/1000/dataSharingSettings"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -725,12 +748,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Output only. Resource name.
            +     * Identifier. Resource name.
                  * Format: accounts/{account}/dataSharingSettings
                  * Example: "accounts/1000/dataSharingSettings"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -749,12 +772,12 @@ public Builder setName(java.lang.String value) { * * *
            -     * Output only. Resource name.
            +     * Identifier. Resource name.
                  * Format: accounts/{account}/dataSharingSettings
                  * Example: "accounts/1000/dataSharingSettings"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -769,12 +792,12 @@ public Builder clearName() { * * *
            -     * Output only. Resource name.
            +     * Identifier. Resource name.
                  * Format: accounts/{account}/dataSharingSettings
                  * Example: "accounts/1000/dataSharingSettings"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -796,8 +819,12 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
            -     * Allows Google support to access the data in order to help troubleshoot
            -     * issues.
            +     * Allows Google technical support representatives access to your Google
            +     * Analytics data and account when necessary to provide service and find
            +     * solutions to technical issues.
            +     *
            +     * This field maps to the "Technical support" field in the Google Analytics
            +     * Admin UI.
                  * 
            * * bool sharing_with_google_support_enabled = 2; @@ -813,8 +840,12 @@ public boolean getSharingWithGoogleSupportEnabled() { * * *
            -     * Allows Google support to access the data in order to help troubleshoot
            -     * issues.
            +     * Allows Google technical support representatives access to your Google
            +     * Analytics data and account when necessary to provide service and find
            +     * solutions to technical issues.
            +     *
            +     * This field maps to the "Technical support" field in the Google Analytics
            +     * Admin UI.
                  * 
            * * bool sharing_with_google_support_enabled = 2; @@ -834,8 +865,12 @@ public Builder setSharingWithGoogleSupportEnabled(boolean value) { * * *
            -     * Allows Google support to access the data in order to help troubleshoot
            -     * issues.
            +     * Allows Google technical support representatives access to your Google
            +     * Analytics data and account when necessary to provide service and find
            +     * solutions to technical issues.
            +     *
            +     * This field maps to the "Technical support" field in the Google Analytics
            +     * Admin UI.
                  * 
            * * bool sharing_with_google_support_enabled = 2; @@ -855,9 +890,15 @@ public Builder clearSharingWithGoogleSupportEnabled() { * * *
            -     * Allows Google sales teams that are assigned to the customer to access the
            -     * data in order to suggest configuration changes to improve results.
            -     * Sales team restrictions still apply when enabled.
            +     * Allows Google access to your Google Analytics account data, including
            +     * account usage and configuration data, product spending, and users
            +     * associated with your Google Analytics account, so that Google can help you
            +     * make the most of Google products, providing you with insights, offers,
            +     * recommendations, and optimization tips across Google Analytics and other
            +     * Google products for business.
            +     *
            +     * This field maps to the "Recommendations for your business" field in the
            +     * Google Analytics Admin UI.
                  * 
            * * bool sharing_with_google_assigned_sales_enabled = 3; @@ -873,9 +914,15 @@ public boolean getSharingWithGoogleAssignedSalesEnabled() { * * *
            -     * Allows Google sales teams that are assigned to the customer to access the
            -     * data in order to suggest configuration changes to improve results.
            -     * Sales team restrictions still apply when enabled.
            +     * Allows Google access to your Google Analytics account data, including
            +     * account usage and configuration data, product spending, and users
            +     * associated with your Google Analytics account, so that Google can help you
            +     * make the most of Google products, providing you with insights, offers,
            +     * recommendations, and optimization tips across Google Analytics and other
            +     * Google products for business.
            +     *
            +     * This field maps to the "Recommendations for your business" field in the
            +     * Google Analytics Admin UI.
                  * 
            * * bool sharing_with_google_assigned_sales_enabled = 3; @@ -895,9 +942,15 @@ public Builder setSharingWithGoogleAssignedSalesEnabled(boolean value) { * * *
            -     * Allows Google sales teams that are assigned to the customer to access the
            -     * data in order to suggest configuration changes to improve results.
            -     * Sales team restrictions still apply when enabled.
            +     * Allows Google access to your Google Analytics account data, including
            +     * account usage and configuration data, product spending, and users
            +     * associated with your Google Analytics account, so that Google can help you
            +     * make the most of Google products, providing you with insights, offers,
            +     * recommendations, and optimization tips across Google Analytics and other
            +     * Google products for business.
            +     *
            +     * This field maps to the "Recommendations for your business" field in the
            +     * Google Analytics Admin UI.
                  * 
            * * bool sharing_with_google_assigned_sales_enabled = 3; @@ -917,15 +970,18 @@ public Builder clearSharingWithGoogleAssignedSalesEnabled() { * * *
            -     * Allows any of Google sales to access the data in order to suggest
            -     * configuration changes to improve results.
            +     * Deprecated. This field is no longer used and always returns false.
                  * 
            * - * bool sharing_with_google_any_sales_enabled = 4; + * bool sharing_with_google_any_sales_enabled = 4 [deprecated = true]; * + * @deprecated + * google.analytics.admin.v1beta.DataSharingSettings.sharing_with_google_any_sales_enabled + * is deprecated. See google/analytics/admin/v1beta/resources.proto;l=561 * @return The sharingWithGoogleAnySalesEnabled. */ @java.lang.Override + @java.lang.Deprecated public boolean getSharingWithGoogleAnySalesEnabled() { return sharingWithGoogleAnySalesEnabled_; } @@ -934,15 +990,18 @@ public boolean getSharingWithGoogleAnySalesEnabled() { * * *
            -     * Allows any of Google sales to access the data in order to suggest
            -     * configuration changes to improve results.
            +     * Deprecated. This field is no longer used and always returns false.
                  * 
            * - * bool sharing_with_google_any_sales_enabled = 4; + * bool sharing_with_google_any_sales_enabled = 4 [deprecated = true]; * + * @deprecated + * google.analytics.admin.v1beta.DataSharingSettings.sharing_with_google_any_sales_enabled + * is deprecated. See google/analytics/admin/v1beta/resources.proto;l=561 * @param value The sharingWithGoogleAnySalesEnabled to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setSharingWithGoogleAnySalesEnabled(boolean value) { sharingWithGoogleAnySalesEnabled_ = value; @@ -955,14 +1014,17 @@ public Builder setSharingWithGoogleAnySalesEnabled(boolean value) { * * *
            -     * Allows any of Google sales to access the data in order to suggest
            -     * configuration changes to improve results.
            +     * Deprecated. This field is no longer used and always returns false.
                  * 
            * - * bool sharing_with_google_any_sales_enabled = 4; + * bool sharing_with_google_any_sales_enabled = 4 [deprecated = true]; * + * @deprecated + * google.analytics.admin.v1beta.DataSharingSettings.sharing_with_google_any_sales_enabled + * is deprecated. See google/analytics/admin/v1beta/resources.proto;l=561 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearSharingWithGoogleAnySalesEnabled() { bitField0_ = (bitField0_ & ~0x00000008); sharingWithGoogleAnySalesEnabled_ = false; @@ -977,6 +1039,9 @@ public Builder clearSharingWithGoogleAnySalesEnabled() { * *
                  * Allows Google to use the data to improve other Google products or services.
            +     *
            +     * This fields maps to the "Google products & services" field in the Google
            +     * Analytics Admin UI.
                  * 
            * * bool sharing_with_google_products_enabled = 5; @@ -993,6 +1058,9 @@ public boolean getSharingWithGoogleProductsEnabled() { * *
                  * Allows Google to use the data to improve other Google products or services.
            +     *
            +     * This fields maps to the "Google products & services" field in the Google
            +     * Analytics Admin UI.
                  * 
            * * bool sharing_with_google_products_enabled = 5; @@ -1013,6 +1081,9 @@ public Builder setSharingWithGoogleProductsEnabled(boolean value) { * *
                  * Allows Google to use the data to improve other Google products or services.
            +     *
            +     * This fields maps to the "Google products & services" field in the Google
            +     * Analytics Admin UI.
                  * 
            * * bool sharing_with_google_products_enabled = 5; @@ -1032,7 +1103,14 @@ public Builder clearSharingWithGoogleProductsEnabled() { * * *
            -     * Allows Google to share the data anonymously in aggregate form with others.
            +     * Enable features like predictions, modeled data, and benchmarking that can
            +     * provide you with richer business insights when you contribute aggregated
            +     * measurement data. The data you share (including information about the
            +     * property from which it is shared) is aggregated and de-identified before
            +     * being used to generate business insights.
            +     *
            +     * This field maps to the "Modeling contributions & business insights" field
            +     * in the Google Analytics Admin UI.
                  * 
            * * bool sharing_with_others_enabled = 6; @@ -1048,7 +1126,14 @@ public boolean getSharingWithOthersEnabled() { * * *
            -     * Allows Google to share the data anonymously in aggregate form with others.
            +     * Enable features like predictions, modeled data, and benchmarking that can
            +     * provide you with richer business insights when you contribute aggregated
            +     * measurement data. The data you share (including information about the
            +     * property from which it is shared) is aggregated and de-identified before
            +     * being used to generate business insights.
            +     *
            +     * This field maps to the "Modeling contributions & business insights" field
            +     * in the Google Analytics Admin UI.
                  * 
            * * bool sharing_with_others_enabled = 6; @@ -1068,7 +1153,14 @@ public Builder setSharingWithOthersEnabled(boolean value) { * * *
            -     * Allows Google to share the data anonymously in aggregate form with others.
            +     * Enable features like predictions, modeled data, and benchmarking that can
            +     * provide you with richer business insights when you contribute aggregated
            +     * measurement data. The data you share (including information about the
            +     * property from which it is shared) is aggregated and de-identified before
            +     * being used to generate business insights.
            +     *
            +     * This field maps to the "Modeling contributions & business insights" field
            +     * in the Google Analytics Admin UI.
                  * 
            * * bool sharing_with_others_enabled = 6; diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsOrBuilder.java index fdbe21868c1d..e9536302590b 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsOrBuilder.java @@ -30,12 +30,12 @@ public interface DataSharingSettingsOrBuilder * * *
            -   * Output only. Resource name.
            +   * Identifier. Resource name.
                * Format: accounts/{account}/dataSharingSettings
                * Example: "accounts/1000/dataSharingSettings"
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface DataSharingSettingsOrBuilder * * *
            -   * Output only. Resource name.
            +   * Identifier. Resource name.
                * Format: accounts/{account}/dataSharingSettings
                * Example: "accounts/1000/dataSharingSettings"
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -60,8 +60,12 @@ public interface DataSharingSettingsOrBuilder * * *
            -   * Allows Google support to access the data in order to help troubleshoot
            -   * issues.
            +   * Allows Google technical support representatives access to your Google
            +   * Analytics data and account when necessary to provide service and find
            +   * solutions to technical issues.
            +   *
            +   * This field maps to the "Technical support" field in the Google Analytics
            +   * Admin UI.
                * 
            * * bool sharing_with_google_support_enabled = 2; @@ -74,9 +78,15 @@ public interface DataSharingSettingsOrBuilder * * *
            -   * Allows Google sales teams that are assigned to the customer to access the
            -   * data in order to suggest configuration changes to improve results.
            -   * Sales team restrictions still apply when enabled.
            +   * Allows Google access to your Google Analytics account data, including
            +   * account usage and configuration data, product spending, and users
            +   * associated with your Google Analytics account, so that Google can help you
            +   * make the most of Google products, providing you with insights, offers,
            +   * recommendations, and optimization tips across Google Analytics and other
            +   * Google products for business.
            +   *
            +   * This field maps to the "Recommendations for your business" field in the
            +   * Google Analytics Admin UI.
                * 
            * * bool sharing_with_google_assigned_sales_enabled = 3; @@ -89,14 +99,17 @@ public interface DataSharingSettingsOrBuilder * * *
            -   * Allows any of Google sales to access the data in order to suggest
            -   * configuration changes to improve results.
            +   * Deprecated. This field is no longer used and always returns false.
                * 
            * - * bool sharing_with_google_any_sales_enabled = 4; + * bool sharing_with_google_any_sales_enabled = 4 [deprecated = true]; * + * @deprecated + * google.analytics.admin.v1beta.DataSharingSettings.sharing_with_google_any_sales_enabled is + * deprecated. See google/analytics/admin/v1beta/resources.proto;l=561 * @return The sharingWithGoogleAnySalesEnabled. */ + @java.lang.Deprecated boolean getSharingWithGoogleAnySalesEnabled(); /** @@ -104,6 +117,9 @@ public interface DataSharingSettingsOrBuilder * *
                * Allows Google to use the data to improve other Google products or services.
            +   *
            +   * This fields maps to the "Google products & services" field in the Google
            +   * Analytics Admin UI.
                * 
            * * bool sharing_with_google_products_enabled = 5; @@ -116,7 +132,14 @@ public interface DataSharingSettingsOrBuilder * * *
            -   * Allows Google to share the data anonymously in aggregate form with others.
            +   * Enable features like predictions, modeled data, and benchmarking that can
            +   * provide you with richer business insights when you contribute aggregated
            +   * measurement data. The data you share (including information about the
            +   * property from which it is shared) is aggregated and de-identified before
            +   * being used to generate business insights.
            +   *
            +   * This field maps to the "Modeling contributions & business insights" field
            +   * in the Google Analytics Admin UI.
                * 
            * * bool sharing_with_others_enabled = 6; diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStream.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStream.java index c32c737571aa..e54ae09174ea 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStream.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStream.java @@ -3307,12 +3307,12 @@ public com.google.analytics.admin.v1beta.DataStream.IosAppStreamData getIosAppSt * * *
            -   * Output only. Resource name of this Data Stream.
            +   * Identifier. Resource name of this Data Stream.
                * Format: properties/{property_id}/dataStreams/{stream_id}
                * Example: "properties/1000/dataStreams/2000"
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -3333,12 +3333,12 @@ public java.lang.String getName() { * * *
            -   * Output only. Resource name of this Data Stream.
            +   * Identifier. Resource name of this Data Stream.
                * Format: properties/{property_id}/dataStreams/{stream_id}
                * Example: "properties/1000/dataStreams/2000"
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -4880,12 +4880,12 @@ public Builder clearIosAppStreamData() { * * *
            -     * Output only. Resource name of this Data Stream.
            +     * Identifier. Resource name of this Data Stream.
                  * Format: properties/{property_id}/dataStreams/{stream_id}
                  * Example: "properties/1000/dataStreams/2000"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -4905,12 +4905,12 @@ public java.lang.String getName() { * * *
            -     * Output only. Resource name of this Data Stream.
            +     * Identifier. Resource name of this Data Stream.
                  * Format: properties/{property_id}/dataStreams/{stream_id}
                  * Example: "properties/1000/dataStreams/2000"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -4930,12 +4930,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Output only. Resource name of this Data Stream.
            +     * Identifier. Resource name of this Data Stream.
                  * Format: properties/{property_id}/dataStreams/{stream_id}
                  * Example: "properties/1000/dataStreams/2000"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -4954,12 +4954,12 @@ public Builder setName(java.lang.String value) { * * *
            -     * Output only. Resource name of this Data Stream.
            +     * Identifier. Resource name of this Data Stream.
                  * Format: properties/{property_id}/dataStreams/{stream_id}
                  * Example: "properties/1000/dataStreams/2000"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -4974,12 +4974,12 @@ public Builder clearName() { * * *
            -     * Output only. Resource name of this Data Stream.
            +     * Identifier. Resource name of this Data Stream.
                  * Format: properties/{property_id}/dataStreams/{stream_id}
                  * Example: "properties/1000/dataStreams/2000"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * 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-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamOrBuilder.java index 0bd738bd483d..d834ad7b4416 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamOrBuilder.java @@ -161,12 +161,12 @@ public interface DataStreamOrBuilder * * *
            -   * Output only. Resource name of this Data Stream.
            +   * Identifier. Resource name of this Data Stream.
                * Format: properties/{property_id}/dataStreams/{stream_id}
                * Example: "properties/1000/dataStreams/2000"
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -176,12 +176,12 @@ public interface DataStreamOrBuilder * * *
            -   * Output only. Resource name of this Data Stream.
            +   * Identifier. Resource name of this Data Stream.
                * Format: properties/{property_id}/dataStreams/{stream_id}
                * Example: "properties/1000/dataStreams/2000"
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLink.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLink.java index d115fbb36fbe..3486e19ee6c9 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLink.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLink.java @@ -81,10 +81,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Output only. Example format: properties/1234/firebaseLinks/5678
            +   * Identifier. Example format: properties/1234/firebaseLinks/5678
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -105,10 +105,10 @@ public java.lang.String getName() { * * *
            -   * Output only. Example format: properties/1234/firebaseLinks/5678
            +   * Identifier. Example format: properties/1234/firebaseLinks/5678
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -625,10 +625,10 @@ public Builder mergeFrom( * * *
            -     * Output only. Example format: properties/1234/firebaseLinks/5678
            +     * Identifier. Example format: properties/1234/firebaseLinks/5678
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -648,10 +648,10 @@ public java.lang.String getName() { * * *
            -     * Output only. Example format: properties/1234/firebaseLinks/5678
            +     * Identifier. Example format: properties/1234/firebaseLinks/5678
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -671,10 +671,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Output only. Example format: properties/1234/firebaseLinks/5678
            +     * Identifier. Example format: properties/1234/firebaseLinks/5678
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -693,10 +693,10 @@ public Builder setName(java.lang.String value) { * * *
            -     * Output only. Example format: properties/1234/firebaseLinks/5678
            +     * Identifier. Example format: properties/1234/firebaseLinks/5678
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -711,10 +711,10 @@ public Builder clearName() { * * *
            -     * Output only. Example format: properties/1234/firebaseLinks/5678
            +     * Identifier. Example format: properties/1234/firebaseLinks/5678
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * 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-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkOrBuilder.java index 30e504762d4a..b7add34cb06f 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkOrBuilder.java @@ -30,10 +30,10 @@ public interface FirebaseLinkOrBuilder * * *
            -   * Output only. Example format: properties/1234/firebaseLinks/5678
            +   * Identifier. Example format: properties/1234/firebaseLinks/5678
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -43,10 +43,10 @@ public interface FirebaseLinkOrBuilder * * *
            -   * Output only. Example format: properties/1234/firebaseLinks/5678
            +   * Identifier. Example format: properties/1234/firebaseLinks/5678
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLink.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLink.java index 67907d19fb9f..7b66e0a10fc0 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLink.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLink.java @@ -82,13 +82,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Output only. Format:
            +   * Identifier. Format:
                * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
                *
                * Note: googleAdsLinkId is not the Google Ads customer ID.
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -109,13 +109,13 @@ public java.lang.String getName() { * * *
            -   * Output only. Format:
            +   * Identifier. Format:
                * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
                *
                * Note: googleAdsLinkId is not the Google Ads customer ID.
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -930,13 +930,13 @@ public Builder mergeFrom( * * *
            -     * Output only. Format:
            +     * Identifier. Format:
                  * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
                  *
                  * Note: googleAdsLinkId is not the Google Ads customer ID.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -956,13 +956,13 @@ public java.lang.String getName() { * * *
            -     * Output only. Format:
            +     * Identifier. Format:
                  * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
                  *
                  * Note: googleAdsLinkId is not the Google Ads customer ID.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -982,13 +982,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Output only. Format:
            +     * Identifier. Format:
                  * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
                  *
                  * Note: googleAdsLinkId is not the Google Ads customer ID.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1007,13 +1007,13 @@ public Builder setName(java.lang.String value) { * * *
            -     * Output only. Format:
            +     * Identifier. Format:
                  * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
                  *
                  * Note: googleAdsLinkId is not the Google Ads customer ID.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1028,13 +1028,13 @@ public Builder clearName() { * * *
            -     * Output only. Format:
            +     * Identifier. Format:
                  * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
                  *
                  * Note: googleAdsLinkId is not the Google Ads customer ID.
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * 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-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkOrBuilder.java index 16dc55c0de42..f035e1cd9326 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkOrBuilder.java @@ -30,13 +30,13 @@ public interface GoogleAdsLinkOrBuilder * * *
            -   * Output only. Format:
            +   * Identifier. Format:
                * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
                *
                * Note: googleAdsLinkId is not the Google Ads customer ID.
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -46,13 +46,13 @@ public interface GoogleAdsLinkOrBuilder * * *
            -   * Output only. Format:
            +   * Identifier. Format:
                * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
                *
                * Note: googleAdsLinkId is not the Google Ads customer ID.
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequest.java index 1f4a45ed158c..0acb74324465 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequest.java @@ -77,13 +77,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * The maximum number of AccountSummary resources to return. The service may
            -   * return fewer than this value, even if there are additional pages.
            -   * If unspecified, at most 50 resources will be returned.
            -   * The maximum value is 200; (higher values will be coerced to the maximum)
            +   * Optional. The maximum number of AccountSummary resources to return. The
            +   * service may return fewer than this value, even if there are additional
            +   * pages. If unspecified, at most 50 resources will be returned. The maximum
            +   * value is 200; (higher values will be coerced to the maximum)
                * 
            * - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -101,13 +101,13 @@ public int getPageSize() { * * *
            -   * A page token, received from a previous `ListAccountSummaries` call.
            -   * Provide this to retrieve the subsequent page.
            -   * When paginating, all other parameters provided to `ListAccountSummaries`
            -   * must match the call that provided the page token.
            +   * Optional. A page token, received from a previous `ListAccountSummaries`
            +   * call. Provide this to retrieve the subsequent page. When paginating, all
            +   * other parameters provided to `ListAccountSummaries` must match the call
            +   * that provided the page token.
                * 
            * - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -128,13 +128,13 @@ public java.lang.String getPageToken() { * * *
            -   * A page token, received from a previous `ListAccountSummaries` call.
            -   * Provide this to retrieve the subsequent page.
            -   * When paginating, all other parameters provided to `ListAccountSummaries`
            -   * must match the call that provided the page token.
            +   * Optional. A page token, received from a previous `ListAccountSummaries`
            +   * call. Provide this to retrieve the subsequent page. When paginating, all
            +   * other parameters provided to `ListAccountSummaries` must match the call
            +   * that provided the page token.
                * 
            * - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -493,13 +493,13 @@ public Builder mergeFrom( * * *
            -     * The maximum number of AccountSummary resources to return. The service may
            -     * return fewer than this value, even if there are additional pages.
            -     * If unspecified, at most 50 resources will be returned.
            -     * The maximum value is 200; (higher values will be coerced to the maximum)
            +     * Optional. The maximum number of AccountSummary resources to return. The
            +     * service may return fewer than this value, even if there are additional
            +     * pages. If unspecified, at most 50 resources will be returned. The maximum
            +     * value is 200; (higher values will be coerced to the maximum)
                  * 
            * - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -512,13 +512,13 @@ public int getPageSize() { * * *
            -     * The maximum number of AccountSummary resources to return. The service may
            -     * return fewer than this value, even if there are additional pages.
            -     * If unspecified, at most 50 resources will be returned.
            -     * The maximum value is 200; (higher values will be coerced to the maximum)
            +     * Optional. The maximum number of AccountSummary resources to return. The
            +     * service may return fewer than this value, even if there are additional
            +     * pages. If unspecified, at most 50 resources will be returned. The maximum
            +     * value is 200; (higher values will be coerced to the maximum)
                  * 
            * - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -535,13 +535,13 @@ public Builder setPageSize(int value) { * * *
            -     * The maximum number of AccountSummary resources to return. The service may
            -     * return fewer than this value, even if there are additional pages.
            -     * If unspecified, at most 50 resources will be returned.
            -     * The maximum value is 200; (higher values will be coerced to the maximum)
            +     * Optional. The maximum number of AccountSummary resources to return. The
            +     * service may return fewer than this value, even if there are additional
            +     * pages. If unspecified, at most 50 resources will be returned. The maximum
            +     * value is 200; (higher values will be coerced to the maximum)
                  * 
            * - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -558,13 +558,13 @@ public Builder clearPageSize() { * * *
            -     * A page token, received from a previous `ListAccountSummaries` call.
            -     * Provide this to retrieve the subsequent page.
            -     * When paginating, all other parameters provided to `ListAccountSummaries`
            -     * must match the call that provided the page token.
            +     * Optional. A page token, received from a previous `ListAccountSummaries`
            +     * call. Provide this to retrieve the subsequent page. When paginating, all
            +     * other parameters provided to `ListAccountSummaries` must match the call
            +     * that provided the page token.
                  * 
            * - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -584,13 +584,13 @@ public java.lang.String getPageToken() { * * *
            -     * A page token, received from a previous `ListAccountSummaries` call.
            -     * Provide this to retrieve the subsequent page.
            -     * When paginating, all other parameters provided to `ListAccountSummaries`
            -     * must match the call that provided the page token.
            +     * Optional. A page token, received from a previous `ListAccountSummaries`
            +     * call. Provide this to retrieve the subsequent page. When paginating, all
            +     * other parameters provided to `ListAccountSummaries` must match the call
            +     * that provided the page token.
                  * 
            * - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -610,13 +610,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
            -     * A page token, received from a previous `ListAccountSummaries` call.
            -     * Provide this to retrieve the subsequent page.
            -     * When paginating, all other parameters provided to `ListAccountSummaries`
            -     * must match the call that provided the page token.
            +     * Optional. A page token, received from a previous `ListAccountSummaries`
            +     * call. Provide this to retrieve the subsequent page. When paginating, all
            +     * other parameters provided to `ListAccountSummaries` must match the call
            +     * that provided the page token.
                  * 
            * - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -635,13 +635,13 @@ public Builder setPageToken(java.lang.String value) { * * *
            -     * A page token, received from a previous `ListAccountSummaries` call.
            -     * Provide this to retrieve the subsequent page.
            -     * When paginating, all other parameters provided to `ListAccountSummaries`
            -     * must match the call that provided the page token.
            +     * Optional. A page token, received from a previous `ListAccountSummaries`
            +     * call. Provide this to retrieve the subsequent page. When paginating, all
            +     * other parameters provided to `ListAccountSummaries` must match the call
            +     * that provided the page token.
                  * 
            * - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -656,13 +656,13 @@ public Builder clearPageToken() { * * *
            -     * A page token, received from a previous `ListAccountSummaries` call.
            -     * Provide this to retrieve the subsequent page.
            -     * When paginating, all other parameters provided to `ListAccountSummaries`
            -     * must match the call that provided the page token.
            +     * Optional. A page token, received from a previous `ListAccountSummaries`
            +     * call. Provide this to retrieve the subsequent page. When paginating, all
            +     * other parameters provided to `ListAccountSummaries` must match the call
            +     * that provided the page token.
                  * 
            * - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequestOrBuilder.java index d76cbaa070ad..cb2913a96b72 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequestOrBuilder.java @@ -30,13 +30,13 @@ public interface ListAccountSummariesRequestOrBuilder * * *
            -   * The maximum number of AccountSummary resources to return. The service may
            -   * return fewer than this value, even if there are additional pages.
            -   * If unspecified, at most 50 resources will be returned.
            -   * The maximum value is 200; (higher values will be coerced to the maximum)
            +   * Optional. The maximum number of AccountSummary resources to return. The
            +   * service may return fewer than this value, even if there are additional
            +   * pages. If unspecified, at most 50 resources will be returned. The maximum
            +   * value is 200; (higher values will be coerced to the maximum)
                * 
            * - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -46,13 +46,13 @@ public interface ListAccountSummariesRequestOrBuilder * * *
            -   * A page token, received from a previous `ListAccountSummaries` call.
            -   * Provide this to retrieve the subsequent page.
            -   * When paginating, all other parameters provided to `ListAccountSummaries`
            -   * must match the call that provided the page token.
            +   * Optional. A page token, received from a previous `ListAccountSummaries`
            +   * call. Provide this to retrieve the subsequent page. When paginating, all
            +   * other parameters provided to `ListAccountSummaries` must match the call
            +   * that provided the page token.
                * 
            * - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -62,13 +62,13 @@ public interface ListAccountSummariesRequestOrBuilder * * *
            -   * A page token, received from a previous `ListAccountSummaries` call.
            -   * Provide this to retrieve the subsequent page.
            -   * When paginating, all other parameters provided to `ListAccountSummaries`
            -   * must match the call that provided the page token.
            +   * Optional. A page token, received from a previous `ListAccountSummaries`
            +   * call. Provide this to retrieve the subsequent page. When paginating, all
            +   * other parameters provided to `ListAccountSummaries` must match the call
            +   * that provided the page token.
                * 
            * - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequest.java index bc739e9c9bc7..987c7e2eacb9 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequest.java @@ -77,13 +77,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * The maximum number of resources to return. The service may return
            +   * Optional. The maximum number of resources to return. The service may return
                * fewer than this value, even if there are additional pages.
                * If unspecified, at most 50 resources will be returned.
                * The maximum value is 200; (higher values will be coerced to the maximum)
                * 
            * - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -101,13 +101,13 @@ public int getPageSize() { * * *
            -   * A page token, received from a previous `ListAccounts` call.
            +   * Optional. A page token, received from a previous `ListAccounts` call.
                * Provide this to retrieve the subsequent page.
                * When paginating, all other parameters provided to `ListAccounts` must
                * match the call that provided the page token.
                * 
            * - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -128,13 +128,13 @@ public java.lang.String getPageToken() { * * *
            -   * A page token, received from a previous `ListAccounts` call.
            +   * Optional. A page token, received from a previous `ListAccounts` call.
                * Provide this to retrieve the subsequent page.
                * When paginating, all other parameters provided to `ListAccounts` must
                * match the call that provided the page token.
                * 
            * - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -533,13 +533,13 @@ public Builder mergeFrom( * * *
            -     * The maximum number of resources to return. The service may return
            +     * Optional. The maximum number of resources to return. The service may return
                  * fewer than this value, even if there are additional pages.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200; (higher values will be coerced to the maximum)
                  * 
            * - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -552,13 +552,13 @@ public int getPageSize() { * * *
            -     * The maximum number of resources to return. The service may return
            +     * Optional. The maximum number of resources to return. The service may return
                  * fewer than this value, even if there are additional pages.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200; (higher values will be coerced to the maximum)
                  * 
            * - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -575,13 +575,13 @@ public Builder setPageSize(int value) { * * *
            -     * The maximum number of resources to return. The service may return
            +     * Optional. The maximum number of resources to return. The service may return
                  * fewer than this value, even if there are additional pages.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200; (higher values will be coerced to the maximum)
                  * 
            * - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -598,13 +598,13 @@ public Builder clearPageSize() { * * *
            -     * A page token, received from a previous `ListAccounts` call.
            +     * Optional. A page token, received from a previous `ListAccounts` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListAccounts` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -624,13 +624,13 @@ public java.lang.String getPageToken() { * * *
            -     * A page token, received from a previous `ListAccounts` call.
            +     * Optional. A page token, received from a previous `ListAccounts` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListAccounts` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -650,13 +650,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
            -     * A page token, received from a previous `ListAccounts` call.
            +     * Optional. A page token, received from a previous `ListAccounts` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListAccounts` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -675,13 +675,13 @@ public Builder setPageToken(java.lang.String value) { * * *
            -     * A page token, received from a previous `ListAccounts` call.
            +     * Optional. A page token, received from a previous `ListAccounts` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListAccounts` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -696,13 +696,13 @@ public Builder clearPageToken() { * * *
            -     * A page token, received from a previous `ListAccounts` call.
            +     * Optional. A page token, received from a previous `ListAccounts` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListAccounts` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequestOrBuilder.java index 7e96de060cd0..bb83518340f8 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequestOrBuilder.java @@ -30,13 +30,13 @@ public interface ListAccountsRequestOrBuilder * * *
            -   * The maximum number of resources to return. The service may return
            +   * Optional. The maximum number of resources to return. The service may return
                * fewer than this value, even if there are additional pages.
                * If unspecified, at most 50 resources will be returned.
                * The maximum value is 200; (higher values will be coerced to the maximum)
                * 
            * - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -46,13 +46,13 @@ public interface ListAccountsRequestOrBuilder * * *
            -   * A page token, received from a previous `ListAccounts` call.
            +   * Optional. A page token, received from a previous `ListAccounts` call.
                * Provide this to retrieve the subsequent page.
                * When paginating, all other parameters provided to `ListAccounts` must
                * match the call that provided the page token.
                * 
            * - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -62,13 +62,13 @@ public interface ListAccountsRequestOrBuilder * * *
            -   * A page token, received from a previous `ListAccounts` call.
            +   * Optional. A page token, received from a previous `ListAccounts` call.
                * Provide this to retrieve the subsequent page.
                * When paginating, all other parameters provided to `ListAccounts` must
                * match the call that provided the page token.
                * 
            * - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequest.java index db4b45b3cd57..c04ec8e3c1ce 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequest.java @@ -137,12 +137,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
            -   * The maximum number of resources to return.
            +   * Optional. The maximum number of resources to return.
                * If unspecified, at most 50 resources will be returned.
                * The maximum value is 200; (higher values will be coerced to the maximum)
                * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -160,13 +160,13 @@ public int getPageSize() { * * *
            -   * A page token, received from a previous `ListConversionEvents` call.
            -   * Provide this to retrieve the subsequent page.
            -   * When paginating, all other parameters provided to `ListConversionEvents`
            -   * must match the call that provided the page token.
            +   * Optional. A page token, received from a previous `ListConversionEvents`
            +   * call. Provide this to retrieve the subsequent page. When paginating, all
            +   * other parameters provided to `ListConversionEvents` must match the call
            +   * that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -187,13 +187,13 @@ public java.lang.String getPageToken() { * * *
            -   * A page token, received from a previous `ListConversionEvents` call.
            -   * Provide this to retrieve the subsequent page.
            -   * When paginating, all other parameters provided to `ListConversionEvents`
            -   * must match the call that provided the page token.
            +   * Optional. A page token, received from a previous `ListConversionEvents`
            +   * call. Provide this to retrieve the subsequent page. When paginating, all
            +   * other parameters provided to `ListConversionEvents` must match the call
            +   * that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -702,12 +702,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
            -     * The maximum number of resources to return.
            +     * Optional. The maximum number of resources to return.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200; (higher values will be coerced to the maximum)
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -720,12 +720,12 @@ public int getPageSize() { * * *
            -     * The maximum number of resources to return.
            +     * Optional. The maximum number of resources to return.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200; (higher values will be coerced to the maximum)
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -742,12 +742,12 @@ public Builder setPageSize(int value) { * * *
            -     * The maximum number of resources to return.
            +     * Optional. The maximum number of resources to return.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200; (higher values will be coerced to the maximum)
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -764,13 +764,13 @@ public Builder clearPageSize() { * * *
            -     * A page token, received from a previous `ListConversionEvents` call.
            -     * Provide this to retrieve the subsequent page.
            -     * When paginating, all other parameters provided to `ListConversionEvents`
            -     * must match the call that provided the page token.
            +     * Optional. A page token, received from a previous `ListConversionEvents`
            +     * call. Provide this to retrieve the subsequent page. When paginating, all
            +     * other parameters provided to `ListConversionEvents` must match the call
            +     * that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -790,13 +790,13 @@ public java.lang.String getPageToken() { * * *
            -     * A page token, received from a previous `ListConversionEvents` call.
            -     * Provide this to retrieve the subsequent page.
            -     * When paginating, all other parameters provided to `ListConversionEvents`
            -     * must match the call that provided the page token.
            +     * Optional. A page token, received from a previous `ListConversionEvents`
            +     * call. Provide this to retrieve the subsequent page. When paginating, all
            +     * other parameters provided to `ListConversionEvents` must match the call
            +     * that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -816,13 +816,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
            -     * A page token, received from a previous `ListConversionEvents` call.
            -     * Provide this to retrieve the subsequent page.
            -     * When paginating, all other parameters provided to `ListConversionEvents`
            -     * must match the call that provided the page token.
            +     * Optional. A page token, received from a previous `ListConversionEvents`
            +     * call. Provide this to retrieve the subsequent page. When paginating, all
            +     * other parameters provided to `ListConversionEvents` must match the call
            +     * that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -841,13 +841,13 @@ public Builder setPageToken(java.lang.String value) { * * *
            -     * A page token, received from a previous `ListConversionEvents` call.
            -     * Provide this to retrieve the subsequent page.
            -     * When paginating, all other parameters provided to `ListConversionEvents`
            -     * must match the call that provided the page token.
            +     * Optional. A page token, received from a previous `ListConversionEvents`
            +     * call. Provide this to retrieve the subsequent page. When paginating, all
            +     * other parameters provided to `ListConversionEvents` must match the call
            +     * that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -862,13 +862,13 @@ public Builder clearPageToken() { * * *
            -     * A page token, received from a previous `ListConversionEvents` call.
            -     * Provide this to retrieve the subsequent page.
            -     * When paginating, all other parameters provided to `ListConversionEvents`
            -     * must match the call that provided the page token.
            +     * Optional. A page token, received from a previous `ListConversionEvents`
            +     * call. Provide this to retrieve the subsequent page. When paginating, all
            +     * other parameters provided to `ListConversionEvents` must match the call
            +     * that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequestOrBuilder.java index 75fa06bff867..303a183633e1 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequestOrBuilder.java @@ -62,12 +62,12 @@ public interface ListConversionEventsRequestOrBuilder * * *
            -   * The maximum number of resources to return.
            +   * Optional. The maximum number of resources to return.
                * If unspecified, at most 50 resources will be returned.
                * The maximum value is 200; (higher values will be coerced to the maximum)
                * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -77,13 +77,13 @@ public interface ListConversionEventsRequestOrBuilder * * *
            -   * A page token, received from a previous `ListConversionEvents` call.
            -   * Provide this to retrieve the subsequent page.
            -   * When paginating, all other parameters provided to `ListConversionEvents`
            -   * must match the call that provided the page token.
            +   * Optional. A page token, received from a previous `ListConversionEvents`
            +   * call. Provide this to retrieve the subsequent page. When paginating, all
            +   * other parameters provided to `ListConversionEvents` must match the call
            +   * that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -93,13 +93,13 @@ public interface ListConversionEventsRequestOrBuilder * * *
            -   * A page token, received from a previous `ListConversionEvents` call.
            -   * Provide this to retrieve the subsequent page.
            -   * When paginating, all other parameters provided to `ListConversionEvents`
            -   * must match the call that provided the page token.
            +   * Optional. A page token, received from a previous `ListConversionEvents`
            +   * call. Provide this to retrieve the subsequent page. When paginating, all
            +   * other parameters provided to `ListConversionEvents` must match the call
            +   * that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequest.java index 6d1c3bd34279..91e99b18dbce 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequest.java @@ -135,12 +135,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
            -   * The maximum number of resources to return.
            +   * Optional. The maximum number of resources to return.
                * If unspecified, at most 50 resources will be returned.
                * The maximum value is 200 (higher values will be coerced to the maximum).
                * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -158,14 +158,14 @@ public int getPageSize() { * * *
            -   * A page token, received from a previous `ListCustomDimensions` call.
            -   * Provide this to retrieve the subsequent page.
            +   * Optional. A page token, received from a previous `ListCustomDimensions`
            +   * call. Provide this to retrieve the subsequent page.
                *
                * When paginating, all other parameters provided to `ListCustomDimensions`
                * must match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -186,14 +186,14 @@ public java.lang.String getPageToken() { * * *
            -   * A page token, received from a previous `ListCustomDimensions` call.
            -   * Provide this to retrieve the subsequent page.
            +   * Optional. A page token, received from a previous `ListCustomDimensions`
            +   * call. Provide this to retrieve the subsequent page.
                *
                * When paginating, all other parameters provided to `ListCustomDimensions`
                * must match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -697,12 +697,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
            -     * The maximum number of resources to return.
            +     * Optional. The maximum number of resources to return.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200 (higher values will be coerced to the maximum).
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -715,12 +715,12 @@ public int getPageSize() { * * *
            -     * The maximum number of resources to return.
            +     * Optional. The maximum number of resources to return.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200 (higher values will be coerced to the maximum).
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -737,12 +737,12 @@ public Builder setPageSize(int value) { * * *
            -     * The maximum number of resources to return.
            +     * Optional. The maximum number of resources to return.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200 (higher values will be coerced to the maximum).
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -759,14 +759,14 @@ public Builder clearPageSize() { * * *
            -     * A page token, received from a previous `ListCustomDimensions` call.
            -     * Provide this to retrieve the subsequent page.
            +     * Optional. A page token, received from a previous `ListCustomDimensions`
            +     * call. Provide this to retrieve the subsequent page.
                  *
                  * When paginating, all other parameters provided to `ListCustomDimensions`
                  * must match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -786,14 +786,14 @@ public java.lang.String getPageToken() { * * *
            -     * A page token, received from a previous `ListCustomDimensions` call.
            -     * Provide this to retrieve the subsequent page.
            +     * Optional. A page token, received from a previous `ListCustomDimensions`
            +     * call. Provide this to retrieve the subsequent page.
                  *
                  * When paginating, all other parameters provided to `ListCustomDimensions`
                  * must match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -813,14 +813,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
            -     * A page token, received from a previous `ListCustomDimensions` call.
            -     * Provide this to retrieve the subsequent page.
            +     * Optional. A page token, received from a previous `ListCustomDimensions`
            +     * call. Provide this to retrieve the subsequent page.
                  *
                  * When paginating, all other parameters provided to `ListCustomDimensions`
                  * must match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -839,14 +839,14 @@ public Builder setPageToken(java.lang.String value) { * * *
            -     * A page token, received from a previous `ListCustomDimensions` call.
            -     * Provide this to retrieve the subsequent page.
            +     * Optional. A page token, received from a previous `ListCustomDimensions`
            +     * call. Provide this to retrieve the subsequent page.
                  *
                  * When paginating, all other parameters provided to `ListCustomDimensions`
                  * must match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -861,14 +861,14 @@ public Builder clearPageToken() { * * *
            -     * A page token, received from a previous `ListCustomDimensions` call.
            -     * Provide this to retrieve the subsequent page.
            +     * Optional. A page token, received from a previous `ListCustomDimensions`
            +     * call. Provide this to retrieve the subsequent page.
                  *
                  * When paginating, all other parameters provided to `ListCustomDimensions`
                  * must match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequestOrBuilder.java index ad7e39424549..9ca5d9fd8a7b 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequestOrBuilder.java @@ -60,12 +60,12 @@ public interface ListCustomDimensionsRequestOrBuilder * * *
            -   * The maximum number of resources to return.
            +   * Optional. The maximum number of resources to return.
                * If unspecified, at most 50 resources will be returned.
                * The maximum value is 200 (higher values will be coerced to the maximum).
                * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -75,14 +75,14 @@ public interface ListCustomDimensionsRequestOrBuilder * * *
            -   * A page token, received from a previous `ListCustomDimensions` call.
            -   * Provide this to retrieve the subsequent page.
            +   * Optional. A page token, received from a previous `ListCustomDimensions`
            +   * call. Provide this to retrieve the subsequent page.
                *
                * When paginating, all other parameters provided to `ListCustomDimensions`
                * must match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -92,14 +92,14 @@ public interface ListCustomDimensionsRequestOrBuilder * * *
            -   * A page token, received from a previous `ListCustomDimensions` call.
            -   * Provide this to retrieve the subsequent page.
            +   * Optional. A page token, received from a previous `ListCustomDimensions`
            +   * call. Provide this to retrieve the subsequent page.
                *
                * When paginating, all other parameters provided to `ListCustomDimensions`
                * must match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java index 9a5d24628d5b..fa79aaef40ab 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java @@ -139,13 +139,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
            -   * The maximum number of resources to return. The service may return
            +   * Optional. The maximum number of resources to return. The service may return
                * fewer than this value, even if there are additional pages.
                * If unspecified, at most 50 resources will be returned.
                * The maximum value is 200; (higher values will be coerced to the maximum)
                * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -163,13 +163,13 @@ public int getPageSize() { * * *
            -   * A page token, received from a previous `ListFirebaseLinks` call.
            +   * Optional. A page token, received from a previous `ListFirebaseLinks` call.
                * Provide this to retrieve the subsequent page.
                * When paginating, all other parameters provided to `ListFirebaseLinks` must
                * match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -190,13 +190,13 @@ public java.lang.String getPageToken() { * * *
            -   * A page token, received from a previous `ListFirebaseLinks` call.
            +   * Optional. A page token, received from a previous `ListFirebaseLinks` call.
                * Provide this to retrieve the subsequent page.
                * When paginating, all other parameters provided to `ListFirebaseLinks` must
                * match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -707,13 +707,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
            -     * The maximum number of resources to return. The service may return
            +     * Optional. The maximum number of resources to return. The service may return
                  * fewer than this value, even if there are additional pages.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200; (higher values will be coerced to the maximum)
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -726,13 +726,13 @@ public int getPageSize() { * * *
            -     * The maximum number of resources to return. The service may return
            +     * Optional. The maximum number of resources to return. The service may return
                  * fewer than this value, even if there are additional pages.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200; (higher values will be coerced to the maximum)
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -749,13 +749,13 @@ public Builder setPageSize(int value) { * * *
            -     * The maximum number of resources to return. The service may return
            +     * Optional. The maximum number of resources to return. The service may return
                  * fewer than this value, even if there are additional pages.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200; (higher values will be coerced to the maximum)
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -772,13 +772,13 @@ public Builder clearPageSize() { * * *
            -     * A page token, received from a previous `ListFirebaseLinks` call.
            +     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListFirebaseLinks` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -798,13 +798,13 @@ public java.lang.String getPageToken() { * * *
            -     * A page token, received from a previous `ListFirebaseLinks` call.
            +     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListFirebaseLinks` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -824,13 +824,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
            -     * A page token, received from a previous `ListFirebaseLinks` call.
            +     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListFirebaseLinks` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -849,13 +849,13 @@ public Builder setPageToken(java.lang.String value) { * * *
            -     * A page token, received from a previous `ListFirebaseLinks` call.
            +     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListFirebaseLinks` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -870,13 +870,13 @@ public Builder clearPageToken() { * * *
            -     * A page token, received from a previous `ListFirebaseLinks` call.
            +     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListFirebaseLinks` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java index ea61d3bc236f..0b186a4b2f74 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java @@ -64,13 +64,13 @@ public interface ListFirebaseLinksRequestOrBuilder * * *
            -   * The maximum number of resources to return. The service may return
            +   * Optional. The maximum number of resources to return. The service may return
                * fewer than this value, even if there are additional pages.
                * If unspecified, at most 50 resources will be returned.
                * The maximum value is 200; (higher values will be coerced to the maximum)
                * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -80,13 +80,13 @@ public interface ListFirebaseLinksRequestOrBuilder * * *
            -   * A page token, received from a previous `ListFirebaseLinks` call.
            +   * Optional. A page token, received from a previous `ListFirebaseLinks` call.
                * Provide this to retrieve the subsequent page.
                * When paginating, all other parameters provided to `ListFirebaseLinks` must
                * match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -96,13 +96,13 @@ public interface ListFirebaseLinksRequestOrBuilder * * *
            -   * A page token, received from a previous `ListFirebaseLinks` call.
            +   * Optional. A page token, received from a previous `ListFirebaseLinks` call.
                * Provide this to retrieve the subsequent page.
                * When paginating, all other parameters provided to `ListFirebaseLinks` must
                * match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequest.java index 69ee64e10c5e..1098b63c6b97 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequest.java @@ -135,12 +135,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
            -   * The maximum number of resources to return.
            +   * Optional. The maximum number of resources to return.
                * If unspecified, at most 50 resources will be returned.
                * The maximum value is 200 (higher values will be coerced to the maximum).
                * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -158,14 +158,14 @@ public int getPageSize() { * * *
            -   * A page token, received from a previous `ListGoogleAdsLinks` call.
            +   * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
                * Provide this to retrieve the subsequent page.
                *
                * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
                * match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -186,14 +186,14 @@ public java.lang.String getPageToken() { * * *
            -   * A page token, received from a previous `ListGoogleAdsLinks` call.
            +   * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
                * Provide this to retrieve the subsequent page.
                *
                * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
                * match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -694,12 +694,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
            -     * The maximum number of resources to return.
            +     * Optional. The maximum number of resources to return.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200 (higher values will be coerced to the maximum).
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -712,12 +712,12 @@ public int getPageSize() { * * *
            -     * The maximum number of resources to return.
            +     * Optional. The maximum number of resources to return.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200 (higher values will be coerced to the maximum).
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -734,12 +734,12 @@ public Builder setPageSize(int value) { * * *
            -     * The maximum number of resources to return.
            +     * Optional. The maximum number of resources to return.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200 (higher values will be coerced to the maximum).
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -756,14 +756,14 @@ public Builder clearPageSize() { * * *
            -     * A page token, received from a previous `ListGoogleAdsLinks` call.
            +     * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
                  * Provide this to retrieve the subsequent page.
                  *
                  * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -783,14 +783,14 @@ public java.lang.String getPageToken() { * * *
            -     * A page token, received from a previous `ListGoogleAdsLinks` call.
            +     * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
                  * Provide this to retrieve the subsequent page.
                  *
                  * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -810,14 +810,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
            -     * A page token, received from a previous `ListGoogleAdsLinks` call.
            +     * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
                  * Provide this to retrieve the subsequent page.
                  *
                  * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -836,14 +836,14 @@ public Builder setPageToken(java.lang.String value) { * * *
            -     * A page token, received from a previous `ListGoogleAdsLinks` call.
            +     * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
                  * Provide this to retrieve the subsequent page.
                  *
                  * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -858,14 +858,14 @@ public Builder clearPageToken() { * * *
            -     * A page token, received from a previous `ListGoogleAdsLinks` call.
            +     * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
                  * Provide this to retrieve the subsequent page.
                  *
                  * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequestOrBuilder.java index 695192660ee1..bd262b2e4f1a 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequestOrBuilder.java @@ -60,12 +60,12 @@ public interface ListGoogleAdsLinksRequestOrBuilder * * *
            -   * The maximum number of resources to return.
            +   * Optional. The maximum number of resources to return.
                * If unspecified, at most 50 resources will be returned.
                * The maximum value is 200 (higher values will be coerced to the maximum).
                * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -75,14 +75,14 @@ public interface ListGoogleAdsLinksRequestOrBuilder * * *
            -   * A page token, received from a previous `ListGoogleAdsLinks` call.
            +   * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
                * Provide this to retrieve the subsequent page.
                *
                * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
                * match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -92,14 +92,14 @@ public interface ListGoogleAdsLinksRequestOrBuilder * * *
            -   * A page token, received from a previous `ListGoogleAdsLinks` call.
            +   * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
                * Provide this to retrieve the subsequent page.
                *
                * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
                * match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequest.java index 4c15a3a9f46f..6896989d29ff 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequest.java @@ -137,12 +137,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
            -   * The maximum number of resources to return.
            +   * Optional. The maximum number of resources to return.
                * If unspecified, at most 50 resources will be returned.
                * The maximum value is 200; (higher values will be coerced to the maximum)
                * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -160,13 +160,13 @@ public int getPageSize() { * * *
            -   * A page token, received from a previous `ListKeyEvents` call.
            +   * Optional. A page token, received from a previous `ListKeyEvents` call.
                * Provide this to retrieve the subsequent page.
                * When paginating, all other parameters provided to `ListKeyEvents`
                * must match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -187,13 +187,13 @@ public java.lang.String getPageToken() { * * *
            -   * A page token, received from a previous `ListKeyEvents` call.
            +   * Optional. A page token, received from a previous `ListKeyEvents` call.
                * Provide this to retrieve the subsequent page.
                * When paginating, all other parameters provided to `ListKeyEvents`
                * must match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -699,12 +699,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
            -     * The maximum number of resources to return.
            +     * Optional. The maximum number of resources to return.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200; (higher values will be coerced to the maximum)
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -717,12 +717,12 @@ public int getPageSize() { * * *
            -     * The maximum number of resources to return.
            +     * Optional. The maximum number of resources to return.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200; (higher values will be coerced to the maximum)
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -739,12 +739,12 @@ public Builder setPageSize(int value) { * * *
            -     * The maximum number of resources to return.
            +     * Optional. The maximum number of resources to return.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200; (higher values will be coerced to the maximum)
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -761,13 +761,13 @@ public Builder clearPageSize() { * * *
            -     * A page token, received from a previous `ListKeyEvents` call.
            +     * Optional. A page token, received from a previous `ListKeyEvents` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListKeyEvents`
                  * must match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -787,13 +787,13 @@ public java.lang.String getPageToken() { * * *
            -     * A page token, received from a previous `ListKeyEvents` call.
            +     * Optional. A page token, received from a previous `ListKeyEvents` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListKeyEvents`
                  * must match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -813,13 +813,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
            -     * A page token, received from a previous `ListKeyEvents` call.
            +     * Optional. A page token, received from a previous `ListKeyEvents` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListKeyEvents`
                  * must match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -838,13 +838,13 @@ public Builder setPageToken(java.lang.String value) { * * *
            -     * A page token, received from a previous `ListKeyEvents` call.
            +     * Optional. A page token, received from a previous `ListKeyEvents` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListKeyEvents`
                  * must match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -859,13 +859,13 @@ public Builder clearPageToken() { * * *
            -     * A page token, received from a previous `ListKeyEvents` call.
            +     * Optional. A page token, received from a previous `ListKeyEvents` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListKeyEvents`
                  * must match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequestOrBuilder.java index 708847f236b9..9135771c73eb 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListKeyEventsRequestOrBuilder.java @@ -62,12 +62,12 @@ public interface ListKeyEventsRequestOrBuilder * * *
            -   * The maximum number of resources to return.
            +   * Optional. The maximum number of resources to return.
                * If unspecified, at most 50 resources will be returned.
                * The maximum value is 200; (higher values will be coerced to the maximum)
                * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -77,13 +77,13 @@ public interface ListKeyEventsRequestOrBuilder * * *
            -   * A page token, received from a previous `ListKeyEvents` call.
            +   * Optional. A page token, received from a previous `ListKeyEvents` call.
                * Provide this to retrieve the subsequent page.
                * When paginating, all other parameters provided to `ListKeyEvents`
                * must match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -93,13 +93,13 @@ public interface ListKeyEventsRequestOrBuilder * * *
            -   * A page token, received from a previous `ListKeyEvents` call.
            +   * Optional. A page token, received from a previous `ListKeyEvents` call.
                * Provide this to retrieve the subsequent page.
                * When paginating, all other parameters provided to `ListKeyEvents`
                * must match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequest.java index 2ed397f8e111..32772e5f0e68 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequest.java @@ -141,12 +141,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
            -   * The maximum number of resources to return.
            +   * Optional. The maximum number of resources to return.
                * If unspecified, at most 10 resources will be returned.
                * The maximum value is 10. Higher values will be coerced to the maximum.
                * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -164,13 +164,14 @@ public int getPageSize() { * * *
            -   * A page token, received from a previous `ListMeasurementProtocolSecrets`
            -   * call. Provide this to retrieve the subsequent page. When paginating, all
            -   * other parameters provided to `ListMeasurementProtocolSecrets` must match
            -   * the call that provided the page token.
            +   * Optional. A page token, received from a previous
            +   * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
            +   * subsequent page. When paginating, all other parameters provided to
            +   * `ListMeasurementProtocolSecrets` must match the call that provided the page
            +   * token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -191,13 +192,14 @@ public java.lang.String getPageToken() { * * *
            -   * A page token, received from a previous `ListMeasurementProtocolSecrets`
            -   * call. Provide this to retrieve the subsequent page. When paginating, all
            -   * other parameters provided to `ListMeasurementProtocolSecrets` must match
            -   * the call that provided the page token.
            +   * Optional. A page token, received from a previous
            +   * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
            +   * subsequent page. When paginating, all other parameters provided to
            +   * `ListMeasurementProtocolSecrets` must match the call that provided the page
            +   * token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -719,12 +721,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
            -     * The maximum number of resources to return.
            +     * Optional. The maximum number of resources to return.
                  * If unspecified, at most 10 resources will be returned.
                  * The maximum value is 10. Higher values will be coerced to the maximum.
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -737,12 +739,12 @@ public int getPageSize() { * * *
            -     * The maximum number of resources to return.
            +     * Optional. The maximum number of resources to return.
                  * If unspecified, at most 10 resources will be returned.
                  * The maximum value is 10. Higher values will be coerced to the maximum.
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -759,12 +761,12 @@ public Builder setPageSize(int value) { * * *
            -     * The maximum number of resources to return.
            +     * Optional. The maximum number of resources to return.
                  * If unspecified, at most 10 resources will be returned.
                  * The maximum value is 10. Higher values will be coerced to the maximum.
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -781,13 +783,14 @@ public Builder clearPageSize() { * * *
            -     * A page token, received from a previous `ListMeasurementProtocolSecrets`
            -     * call. Provide this to retrieve the subsequent page. When paginating, all
            -     * other parameters provided to `ListMeasurementProtocolSecrets` must match
            -     * the call that provided the page token.
            +     * Optional. A page token, received from a previous
            +     * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
            +     * subsequent page. When paginating, all other parameters provided to
            +     * `ListMeasurementProtocolSecrets` must match the call that provided the page
            +     * token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -807,13 +810,14 @@ public java.lang.String getPageToken() { * * *
            -     * A page token, received from a previous `ListMeasurementProtocolSecrets`
            -     * call. Provide this to retrieve the subsequent page. When paginating, all
            -     * other parameters provided to `ListMeasurementProtocolSecrets` must match
            -     * the call that provided the page token.
            +     * Optional. A page token, received from a previous
            +     * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
            +     * subsequent page. When paginating, all other parameters provided to
            +     * `ListMeasurementProtocolSecrets` must match the call that provided the page
            +     * token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -833,13 +837,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
            -     * A page token, received from a previous `ListMeasurementProtocolSecrets`
            -     * call. Provide this to retrieve the subsequent page. When paginating, all
            -     * other parameters provided to `ListMeasurementProtocolSecrets` must match
            -     * the call that provided the page token.
            +     * Optional. A page token, received from a previous
            +     * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
            +     * subsequent page. When paginating, all other parameters provided to
            +     * `ListMeasurementProtocolSecrets` must match the call that provided the page
            +     * token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -858,13 +863,14 @@ public Builder setPageToken(java.lang.String value) { * * *
            -     * A page token, received from a previous `ListMeasurementProtocolSecrets`
            -     * call. Provide this to retrieve the subsequent page. When paginating, all
            -     * other parameters provided to `ListMeasurementProtocolSecrets` must match
            -     * the call that provided the page token.
            +     * Optional. A page token, received from a previous
            +     * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
            +     * subsequent page. When paginating, all other parameters provided to
            +     * `ListMeasurementProtocolSecrets` must match the call that provided the page
            +     * token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -879,13 +885,14 @@ public Builder clearPageToken() { * * *
            -     * A page token, received from a previous `ListMeasurementProtocolSecrets`
            -     * call. Provide this to retrieve the subsequent page. When paginating, all
            -     * other parameters provided to `ListMeasurementProtocolSecrets` must match
            -     * the call that provided the page token.
            +     * Optional. A page token, received from a previous
            +     * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
            +     * subsequent page. When paginating, all other parameters provided to
            +     * `ListMeasurementProtocolSecrets` must match the call that provided the page
            +     * token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequestOrBuilder.java index c4b2c6a339ef..d1f643c8eae7 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequestOrBuilder.java @@ -64,12 +64,12 @@ public interface ListMeasurementProtocolSecretsRequestOrBuilder * * *
            -   * The maximum number of resources to return.
            +   * Optional. The maximum number of resources to return.
                * If unspecified, at most 10 resources will be returned.
                * The maximum value is 10. Higher values will be coerced to the maximum.
                * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -79,13 +79,14 @@ public interface ListMeasurementProtocolSecretsRequestOrBuilder * * *
            -   * A page token, received from a previous `ListMeasurementProtocolSecrets`
            -   * call. Provide this to retrieve the subsequent page. When paginating, all
            -   * other parameters provided to `ListMeasurementProtocolSecrets` must match
            -   * the call that provided the page token.
            +   * Optional. A page token, received from a previous
            +   * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
            +   * subsequent page. When paginating, all other parameters provided to
            +   * `ListMeasurementProtocolSecrets` must match the call that provided the page
            +   * token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -95,13 +96,14 @@ public interface ListMeasurementProtocolSecretsRequestOrBuilder * * *
            -   * A page token, received from a previous `ListMeasurementProtocolSecrets`
            -   * call. Provide this to retrieve the subsequent page. When paginating, all
            -   * other parameters provided to `ListMeasurementProtocolSecrets` must match
            -   * the call that provided the page token.
            +   * Optional. A page token, received from a previous
            +   * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
            +   * subsequent page. When paginating, all other parameters provided to
            +   * `ListMeasurementProtocolSecrets` must match the call that provided the page
            +   * token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequest.java index 5ae791789b2b..07a0c86993b9 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequest.java @@ -161,13 +161,13 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
            -   * The maximum number of resources to return. The service may return
            +   * Optional. The maximum number of resources to return. The service may return
                * fewer than this value, even if there are additional pages.
                * If unspecified, at most 50 resources will be returned.
                * The maximum value is 200; (higher values will be coerced to the maximum)
                * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -185,13 +185,13 @@ public int getPageSize() { * * *
            -   * A page token, received from a previous `ListProperties` call.
            +   * Optional. A page token, received from a previous `ListProperties` call.
                * Provide this to retrieve the subsequent page.
                * When paginating, all other parameters provided to `ListProperties` must
                * match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -212,13 +212,13 @@ public java.lang.String getPageToken() { * * *
            -   * A page token, received from a previous `ListProperties` call.
            +   * Optional. A page token, received from a previous `ListProperties` call.
                * Provide this to retrieve the subsequent page.
                * When paginating, all other parameters provided to `ListProperties` must
                * match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -827,13 +827,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
            -     * The maximum number of resources to return. The service may return
            +     * Optional. The maximum number of resources to return. The service may return
                  * fewer than this value, even if there are additional pages.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200; (higher values will be coerced to the maximum)
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -846,13 +846,13 @@ public int getPageSize() { * * *
            -     * The maximum number of resources to return. The service may return
            +     * Optional. The maximum number of resources to return. The service may return
                  * fewer than this value, even if there are additional pages.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200; (higher values will be coerced to the maximum)
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -869,13 +869,13 @@ public Builder setPageSize(int value) { * * *
            -     * The maximum number of resources to return. The service may return
            +     * Optional. The maximum number of resources to return. The service may return
                  * fewer than this value, even if there are additional pages.
                  * If unspecified, at most 50 resources will be returned.
                  * The maximum value is 200; (higher values will be coerced to the maximum)
                  * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -892,13 +892,13 @@ public Builder clearPageSize() { * * *
            -     * A page token, received from a previous `ListProperties` call.
            +     * Optional. A page token, received from a previous `ListProperties` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListProperties` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -918,13 +918,13 @@ public java.lang.String getPageToken() { * * *
            -     * A page token, received from a previous `ListProperties` call.
            +     * Optional. A page token, received from a previous `ListProperties` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListProperties` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -944,13 +944,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
            -     * A page token, received from a previous `ListProperties` call.
            +     * Optional. A page token, received from a previous `ListProperties` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListProperties` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -969,13 +969,13 @@ public Builder setPageToken(java.lang.String value) { * * *
            -     * A page token, received from a previous `ListProperties` call.
            +     * Optional. A page token, received from a previous `ListProperties` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListProperties` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -990,13 +990,13 @@ public Builder clearPageToken() { * * *
            -     * A page token, received from a previous `ListProperties` call.
            +     * Optional. A page token, received from a previous `ListProperties` call.
                  * Provide this to retrieve the subsequent page.
                  * When paginating, all other parameters provided to `ListProperties` must
                  * match the call that provided the page token.
                  * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequestOrBuilder.java index 688d85d5598e..6ff2d8622b8e 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequestOrBuilder.java @@ -86,13 +86,13 @@ public interface ListPropertiesRequestOrBuilder * * *
            -   * The maximum number of resources to return. The service may return
            +   * Optional. The maximum number of resources to return. The service may return
                * fewer than this value, even if there are additional pages.
                * If unspecified, at most 50 resources will be returned.
                * The maximum value is 200; (higher values will be coerced to the maximum)
                * 
            * - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -102,13 +102,13 @@ public interface ListPropertiesRequestOrBuilder * * *
            -   * A page token, received from a previous `ListProperties` call.
            +   * Optional. A page token, received from a previous `ListProperties` call.
                * Provide this to retrieve the subsequent page.
                * When paginating, all other parameters provided to `ListProperties` must
                * match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -118,13 +118,13 @@ public interface ListPropertiesRequestOrBuilder * * *
            -   * A page token, received from a previous `ListProperties` call.
            +   * Optional. A page token, received from a previous `ListProperties` call.
                * Provide this to retrieve the subsequent page.
                * When paginating, all other parameters provided to `ListProperties` must
                * match the call that provided the page token.
                * 
            * - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecret.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecret.java index 0f7bde7a9142..8906a2e4c94a 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecret.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecret.java @@ -81,12 +81,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Output only. Resource name of this secret. This secret may be a child of
            -   * any type of stream. Format:
            +   * Identifier. Resource name of this secret. This secret may be a child of any
            +   * type of stream. Format:
                * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -107,12 +107,12 @@ public java.lang.String getName() { * * *
            -   * Output only. Resource name of this secret. This secret may be a child of
            -   * any type of stream. Format:
            +   * Identifier. Resource name of this secret. This secret may be a child of any
            +   * type of stream. Format:
                * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -604,12 +604,12 @@ public Builder mergeFrom( * * *
            -     * Output only. Resource name of this secret. This secret may be a child of
            -     * any type of stream. Format:
            +     * Identifier. Resource name of this secret. This secret may be a child of any
            +     * type of stream. Format:
                  * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -629,12 +629,12 @@ public java.lang.String getName() { * * *
            -     * Output only. Resource name of this secret. This secret may be a child of
            -     * any type of stream. Format:
            +     * Identifier. Resource name of this secret. This secret may be a child of any
            +     * type of stream. Format:
                  * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -654,12 +654,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Output only. Resource name of this secret. This secret may be a child of
            -     * any type of stream. Format:
            +     * Identifier. Resource name of this secret. This secret may be a child of any
            +     * type of stream. Format:
                  * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -678,12 +678,12 @@ public Builder setName(java.lang.String value) { * * *
            -     * Output only. Resource name of this secret. This secret may be a child of
            -     * any type of stream. Format:
            +     * Identifier. Resource name of this secret. This secret may be a child of any
            +     * type of stream. Format:
                  * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -698,12 +698,12 @@ public Builder clearName() { * * *
            -     * Output only. Resource name of this secret. This secret may be a child of
            -     * any type of stream. Format:
            +     * Identifier. Resource name of this secret. This secret may be a child of any
            +     * type of stream. Format:
                  * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * 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-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretOrBuilder.java index b59ccee35f4e..07ca4ca3048b 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretOrBuilder.java @@ -30,12 +30,12 @@ public interface MeasurementProtocolSecretOrBuilder * * *
            -   * Output only. Resource name of this secret. This secret may be a child of
            -   * any type of stream. Format:
            +   * Identifier. Resource name of this secret. This secret may be a child of any
            +   * type of stream. Format:
                * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface MeasurementProtocolSecretOrBuilder * * *
            -   * Output only. Resource name of this secret. This secret may be a child of
            -   * any type of stream. Format:
            +   * Identifier. Resource name of this secret. This secret may be a child of any
            +   * type of stream. Format:
                * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java index d657c7570fb4..f78ca54feec1 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java @@ -88,12 +88,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Output only. Resource name of this property.
            +   * Identifier. Resource name of this property.
                * Format: properties/{property_id}
                * Example: "properties/1000"
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -114,12 +114,12 @@ public java.lang.String getName() { * * *
            -   * Output only. Resource name of this property.
            +   * Identifier. Resource name of this property.
                * Format: properties/{property_id}
                * Example: "properties/1000"
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1446,12 +1446,12 @@ public Builder mergeFrom( * * *
            -     * Output only. Resource name of this property.
            +     * Identifier. Resource name of this property.
                  * Format: properties/{property_id}
                  * Example: "properties/1000"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1471,12 +1471,12 @@ public java.lang.String getName() { * * *
            -     * Output only. Resource name of this property.
            +     * Identifier. Resource name of this property.
                  * Format: properties/{property_id}
                  * Example: "properties/1000"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1496,12 +1496,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
            -     * Output only. Resource name of this property.
            +     * Identifier. Resource name of this property.
                  * Format: properties/{property_id}
                  * Example: "properties/1000"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1520,12 +1520,12 @@ public Builder setName(java.lang.String value) { * * *
            -     * Output only. Resource name of this property.
            +     * Identifier. Resource name of this property.
                  * Format: properties/{property_id}
                  * Example: "properties/1000"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1540,12 +1540,12 @@ public Builder clearName() { * * *
            -     * Output only. Resource name of this property.
            +     * Identifier. Resource name of this property.
                  * Format: properties/{property_id}
                  * Example: "properties/1000"
                  * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * 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-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java index a2b2524ec7eb..f2c93200639a 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java @@ -30,12 +30,12 @@ public interface PropertyOrBuilder * * *
            -   * Output only. Resource name of this property.
            +   * Identifier. Resource name of this property.
                * Format: properties/{property_id}
                * Example: "properties/1000"
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface PropertyOrBuilder * * *
            -   * Output only. Resource name of this property.
            +   * Identifier. Resource name of this property.
                * Format: properties/{property_id}
                * Example: "properties/1000"
                * 
            * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummary.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummary.java index eb23bd54c899..b7177a604d33 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummary.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummary.java @@ -281,6 +281,26 @@ public com.google.protobuf.ByteString getParentBytes() { } } + public static final int CAN_EDIT_FIELD_NUMBER = 5; + private boolean canEdit_ = false; + + /** + * + * + *
            +   * If true, then the user has a Google Analytics role that permits them to
            +   * edit the property.
            +   * 
            + * + * bool can_edit = 5; + * + * @return The canEdit. + */ + @java.lang.Override + public boolean getCanEdit() { + return canEdit_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -308,6 +328,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, parent_); } + if (canEdit_ != false) { + output.writeBool(5, canEdit_); + } getUnknownFields().writeTo(output); } @@ -330,6 +353,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, parent_); } + if (canEdit_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, canEdit_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -350,6 +376,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDisplayName().equals(other.getDisplayName())) return false; if (propertyType_ != other.propertyType_) return false; if (!getParent().equals(other.getParent())) return false; + if (getCanEdit() != other.getCanEdit()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -369,6 +396,8 @@ public int hashCode() { hash = (53 * hash) + propertyType_; hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + CAN_EDIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCanEdit()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -513,6 +542,7 @@ public Builder clear() { displayName_ = ""; propertyType_ = 0; parent_ = ""; + canEdit_ = false; return this; } @@ -561,6 +591,9 @@ private void buildPartial0(com.google.analytics.admin.v1beta.PropertySummary res if (((from_bitField0_ & 0x00000008) != 0)) { result.parent_ = parent_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.canEdit_ = canEdit_; + } } @java.lang.Override @@ -594,6 +627,9 @@ public Builder mergeFrom(com.google.analytics.admin.v1beta.PropertySummary other bitField0_ |= 0x00000008; onChanged(); } + if (other.getCanEdit() != false) { + setCanEdit(other.getCanEdit()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -644,6 +680,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 40: + { + canEdit_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1121,6 +1163,65 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } + private boolean canEdit_; + + /** + * + * + *
            +     * If true, then the user has a Google Analytics role that permits them to
            +     * edit the property.
            +     * 
            + * + * bool can_edit = 5; + * + * @return The canEdit. + */ + @java.lang.Override + public boolean getCanEdit() { + return canEdit_; + } + + /** + * + * + *
            +     * If true, then the user has a Google Analytics role that permits them to
            +     * edit the property.
            +     * 
            + * + * bool can_edit = 5; + * + * @param value The canEdit to set. + * @return This builder for chaining. + */ + public Builder setCanEdit(boolean value) { + + canEdit_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * If true, then the user has a Google Analytics role that permits them to
            +     * edit the property.
            +     * 
            + * + * bool can_edit = 5; + * + * @return This builder for chaining. + */ + public Builder clearCanEdit() { + bitField0_ = (bitField0_ & ~0x00000010); + canEdit_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.PropertySummary) } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummaryOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummaryOrBuilder.java index 3b177221eadc..9ae5fa0eb801 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummaryOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummaryOrBuilder.java @@ -141,4 +141,18 @@ public interface PropertySummaryOrBuilder * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * If true, then the user has a Google Analytics role that permits them to
            +   * edit the property.
            +   * 
            + * + * bool can_edit = 5; + * + * @return The canEdit. + */ + boolean getCanEdit(); } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java index 3153eddd8455..c5ddc532c08c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java @@ -142,9 +142,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "s.proto\022\035google.analytics.admin.v1beta\032\037" + "google/api/field_behavior.proto\032\031google/" + "api/resource.proto\032\037google/protobuf/time" - + "stamp.proto\032\036google/protobuf/wrappers.proto\"\344\002\n" + + "stamp.proto\032\036google/protobuf/wrappers.proto\"\367\002\n" + "\007Account\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\0224\n" + + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\031\n" @@ -152,19 +152,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013region_code\030\005 \001(\t\022\024\n" + "\007deleted\030\006 \001(\010B\003\340A\003\022T\n" + "\020gmp_organization\030\007 \001(\tB:\340A\003\372A4\n" - + "2marketingplatformadmin.googleapis.com/Organization:>\352A;\n" - + "%analyticsadmin.googleapis.com/Account\022\022accounts/{account}\"\266\005\n" + + "2marketingplatformadmin.googleapis.com/Organization:Q\352AN\n" + + "%analyticsadmin." + + "googleapis.com/Account\022\022accounts/{account}*\010accounts2\007account\"\314\005\n" + "\010Property\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022G\n\r" - + "property_type\030\016" - + " \001(\0162+.google.analytics.admin.v1beta.PropertyTypeB\003\340A\005\0224\n" + + "\004name\030\001 \001(\tB\003\340A\010\022G\n\r" + + "property_type\030\016 \001(\0162+.g" + + "oogle.analytics.admin.v1beta.PropertyTypeB\003\340A\005\0224\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + "\006parent\030\002 \001(\tB\003\340A\005\022\031\n" + "\014display_name\030\005 \001(\tB\003\340A\002\022J\n" - + "\021industry_category\030\006" - + " \001(\0162/.google.analytics.admin.v1beta.IndustryCategory\022\026\n" + + "\021industry_category\030\006 \001(\0162/.google.a" + + "nalytics.admin.v1beta.IndustryCategory\022\026\n" + "\ttime_zone\030\007 \001(\tB\003\340A\002\022\025\n\r" + "currency_code\030\010 \001(\t\022G\n\r" + "service_level\030\n" @@ -173,18 +174,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013expire_time\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022>\n" + "\007account\030\r" + " \001(\tB-\340A\005\372A\'\n" - + "%analyticsadmin.googleapis.com/Account:B\352A?\n" - + "&analyticsadmin.googleapis.com/Property\022\025properties/{property}\"\360\007\n\n" + + "%analyticsadmin.googleapis.com/Account:X\352AU\n" + + "&analyticsadmin.googleapis.com/Property\022\025properties/{property}*\n" + + "properties2\010property\"\211\010\n\n" + "DataStream\022R\n" - + "\017web_stream_data\030\006 \001(\01327.google.analytics.a" - + "dmin.v1beta.DataStream.WebStreamDataH\000\022a\n" - + "\027android_app_stream_data\030\007 \001(\0132>.google" - + ".analytics.admin.v1beta.DataStream.AndroidAppStreamDataH\000\022Y\n" + + "\017web_stream_data\030\006 \001(\01327.google.analytics." + + "admin.v1beta.DataStream.WebStreamDataH\000\022a\n" + + "\027android_app_stream_data\030\007 \001(\0132>.googl" + + "e.analytics.admin.v1beta.DataStream.AndroidAppStreamDataH\000\022Y\n" + "\023ios_app_stream_data\030\010" + " \001(\0132:.google.analytics.admin.v1beta.DataStream.IosAppStreamDataH\000\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022N\n" - + "\004type\030\002 \001(\01628.google.analytics" - + ".admin.v1beta.DataStream.DataStreamTypeB\006\340A\005\340A\002\022\024\n" + + "\004name\030\001 \001(\tB\003\340A\010\022N\n" + + "\004type\030\002 \001(\01628.google.analytic" + + "s.admin.v1beta.DataStream.DataStreamTypeB\006\340A\005\340A\002\022\024\n" + "\014display_name\030\003 \001(\t\0224\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\005" @@ -203,113 +205,119 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034DATA_STREAM_TYPE_UNSPECIFIED\020\000\022\023\n" + "\017WEB_DATA_STREAM\020\001\022\033\n" + "\027ANDROID_APP_DATA_STREAM\020\002\022\027\n" - + "\023IOS_APP_DATA_STREAM\020\003:^\352A[\n" - + "(analyticsadmin.googleapis.com/Data" - + "Stream\022/properties/{property}/dataStreams/{data_stream}B\r\n" - + "\013stream_data\"\323\001\n" + + "\023IOS_APP_DATA_STREAM\020\003:w\352At\n" + + "(analyticsadmin.googleapis.com/Dat" + + "aStream\022/properties/{property}/dataStreams/{data_stream}*\013dataStreams2\n" + + "dataStreamB\r\n" + + "\013stream_data\"\361\001\n" + "\014FirebaseLink\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" + "\007project\030\002 \001(\tB\003\340A\005\0224\n" + "\013create_time\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:d\352Aa\n" - + "*analyticsadmin.googleapis.com/FirebaseLink\0223propert" - + "ies/{property}/firebaseLinks/{firebase_link}\"\230\003\n\r" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\201\001\352A~\n" + + "*analyticsadmin.googleapi" + + "s.com/FirebaseLink\0223properties/{property}/firebaseLinks/{firebase_link}*\r" + + "firebaseLinks2\014firebaseLink\"\271\003\n\r" + "GoogleAdsLink\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\030\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\030\n" + "\013customer_id\030\003 \001(\tB\003\340A\005\022\037\n" + "\022can_manage_clients\030\004 \001(\010B\003\340A\003\022?\n" + "\033ads_personalization_enabled\030\005" + " \001(\0132\032.google.protobuf.BoolValue\0224\n" + "\013create_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\"\n" - + "\025creator_email_address\030\t \001(\tB\003\340A\003:h\352Ae\n" - + "+analyticsadmin.googleapis.com/GoogleAdsLink\022" - + "6properties/{property}/googleAdsLinks/{google_ads_link}\"\353\002\n" + + "\025creator_email_address\030\t \001(\tB\003\340A\003:\210\001\352A\204\001\n" + + "+analyticsadmin.googleapis.com/GoogleAdsLink\0226properties/{property}" + + "/googleAdsLinks/{google_ads_link}*\016googleAdsLinks2\r" + + "googleAdsLink\"\233\003\n" + "\023DataSharingSettings\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022+\n" + + "\004name\030\001 \001(\tB\003\340A\010\022+\n" + "#sharing_with_google_support_enabled\030\002 \001(\010\0222\n" - + "*sharing_with_google_assigned_sales_enabled\030\003 \001(\010\022-\n" - + "%sharing_with_google_any_sales_enabled\030\004 \001(\010\022,\n" + + "*sharing_with_google_assigned_sales_enabled\030\003 \001(\010\0221\n" + + "%sharing_with_google_any_sales_enabled\030\004 \001(\010B\002\030\001\022,\n" + "$sharing_with_google_products_enabled\030\005 \001(\010\022#\n" - + "\033sharing_with_others_enabled\030\006 \001(\010:^\352A[\n" - + "1analyticsadmin.googleapis.co" - + "m/DataSharingSettings\022&accounts/{account}/dataSharingSettings\"\224\002\n" - + "\016AccountSummary\022\014\n" - + "\004name\030\001 \001(\t\022;\n" + + "\033sharing_with_others_enabled\030\006 \001(\010:\211\001\352A\205\001\n" + + "1analyticsadmin.googleapis.com/DataSharingSettings\022&ac" + + "counts/{account}/dataSharingSettings*\023da" + + "taSharingSettings2\023dataSharingSettings\"\273\002\n" + + "\016AccountSummary\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022;\n" + "\007account\030\002 \001(\tB*\372A\'\n" + "%analyticsadmin.googleapis.com/Account\022\024\n" + "\014display_name\030\003 \001(\t\022J\n" - + "\022property_summaries\030\004" - + " \003(\0132..google.analytics.admin.v1beta.PropertySummary:U\352AR\n" - + ",analyticsadmin.googl" - + "eapis.com/AccountSummary\022\"accountSummaries/{account_summary}\"\272\001\n" + + "\022property_summaries\030\004 \003(\0132..google.ana" + + "lytics.admin.v1beta.PropertySummary:w\352At\n" + + ",analyticsadmin.googleapis.com/AccountS" + + "ummary\022\"accountSummaries/{account_summary}*\020accountSummaries2\016accountSummary\"\314\001\n" + "\017PropertySummary\022=\n" + "\010property\030\001 \001(\tB+\372A(\n" + "&analyticsadmin.googleapis.com/Property\022\024\n" + "\014display_name\030\002 \001(\t\022B\n\r" + "property_type\030\003 \001(\0162+.google.analytics.admin.v1beta.PropertyType\022\016\n" - + "\006parent\030\004 \001(\t\"\216\002\n" + + "\006parent\030\004 \001(\t\022\020\n" + + "\010can_edit\030\005 \001(\010\"\305\002\n" + "\031MeasurementProtocolSecret\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\031\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\031\n" - + "\014secret_value\030\003 \001(\tB\003\340A\003:\247\001\352A\243\001\n" - + "7analyticsadmin.googleapis.com/MeasurementProtocolSecret\022hproperties/{property}/" - + "dataStreams/{data_stream}/measurementPro" - + "tocolSecrets/{measurement_protocol_secret}\"\210\002\n" + + "\014secret_value\030\003 \001(\tB\003\340A\003:\336\001\352A\332\001\n" + + "7analyticsadmin.googleapis.com/MeasurementProt" + + "ocolSecret\022hproperties/{property}/dataStreams/{data_stream}/measurementProtocolS" + + "ecrets/{measurement_protocol_secret}*\032me" + + "asurementProtocolSecrets2\031measurementProtocolSecret\"\210\002\n" + "\022ChangeHistoryEvent\022\n\n" + "\002id\030\001 \001(\t\022/\n" + "\013change_time\030\002 \001(\0132\032.google.protobuf.Timestamp\022<\n\n" + "actor_type\030\003 \001(\0162(.google.analytics.admin.v1beta.ActorType\022\030\n" + "\020user_actor_email\030\004 \001(\t\022\030\n" + "\020changes_filtered\030\005 \001(\010\022C\n" - + "\007changes\030\006" - + " \003(\01322.google.analytics.admin.v1beta.ChangeHistoryChange\"\252\007\n" + + "\007changes\030\006 \003(\01322.google.anal" + + "ytics.admin.v1beta.ChangeHistoryChange\"\252\007\n" + "\023ChangeHistoryChange\022\020\n" + "\010resource\030\001 \001(\t\0229\n" + "\006action\030\002 \001(\0162).google.analytics.admin.v1beta.ActionType\022h\n" - + "\026resource_before_change\030\003 \001" - + "(\0132H.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource\022g\n" - + "\025resource_after_change\030\004 \001(\0132H.google.ana" - + "lytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource\032\362\004\n" + + "\026resource_before_change\030\003 \001(\0132H.google.analytics.admin.v1b" + + "eta.ChangeHistoryChange.ChangeHistoryResource\022g\n" + + "\025resource_after_change\030\004 \001(\0132H.g" + + "oogle.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource\032\362\004\n" + "\025ChangeHistoryResource\0229\n" + "\007account\030\001 \001(\0132&.google.analytics.admin.v1beta.AccountH\000\022;\n" + "\010property\030\002 \001(\0132\'.google.analytics.admin.v1beta.PropertyH\000\022D\n\r" - + "firebase_link\030\006" - + " \001(\0132+.google.analytics.admin.v1beta.FirebaseLinkH\000\022G\n" - + "\017google_ads_link\030\007" - + " \001(\0132,.google.analytics.admin.v1beta.GoogleAdsLinkH\000\022J\n" + + "firebase_link\030\006 \001(\0132" + + "+.google.analytics.admin.v1beta.FirebaseLinkH\000\022G\n" + + "\017google_ads_link\030\007 \001(\0132,.google" + + ".analytics.admin.v1beta.GoogleAdsLinkH\000\022J\n" + "\020conversion_event\030\013" + " \001(\0132..google.analytics.admin.v1beta.ConversionEventH\000\022_\n" - + "\033measurement_protocol_secret\030\014 \001(\01328.google.analyti" - + "cs.admin.v1beta.MeasurementProtocolSecretH\000\022W\n" - + "\027data_retention_settings\030\017 \001(\01324.g" - + "oogle.analytics.admin.v1beta.DataRetentionSettingsH\000\022@\n" - + "\013data_stream\030\022 \001(\0132).google.analytics.admin.v1beta.DataStreamH\000B\n" - + "\n" - + "\010resource\"\336\005\n" + + "\033measurement_protocol_secret\030\014 \001(\01328.googl" + + "e.analytics.admin.v1beta.MeasurementProtocolSecretH\000\022W\n" + + "\027data_retention_settings\030\017" + + " \001(\01324.google.analytics.admin.v1beta.DataRetentionSettingsH\000\022@\n" + + "\013data_stream\030\022 \001(\0132).google.analytics.admin.v1beta.DataStreamH\000B\n\n" + + "\010resource\"\203\006\n" + "\017ConversionEvent\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\027\n\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\027\n\n" + "event_name\030\002 \001(\tB\003\340A\005\0224\n" + "\013create_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\026\n" + "\tdeletable\030\004 \001(\010B\003\340A\003\022\023\n" + "\006custom\030\005 \001(\010B\003\340A\003\022e\n" - + "\017counting_method\030\006 \001(\0162G" - + ".google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethodB\003\340A\001\022q\n" - + "\030default_conversion_value\030\007 \001(\0132E.google." - + "analytics.admin.v1beta.ConversionEvent.DefaultConversionValueB\003\340A\001H\000\210\001\001\032d\n" + + "\017counting_method\030\006 \001(\0162G.google.analytics.admin.v1beta." + + "ConversionEvent.ConversionCountingMethodB\003\340A\001\022q\n" + + "\030default_conversion_value\030\007 \001(\0132" + + "E.google.analytics.admin.v1beta.Conversi" + + "onEvent.DefaultConversionValueB\003\340A\001H\000\210\001\001\032d\n" + "\026DefaultConversionValue\022\022\n" - + "\005value\030\001 \001(\001H\000\210\001\001\022\032\n" - + "\r" + + "\005value\030\001 \001(\001H\000\210\001\001\022\032\n\r" + "currency_code\030\002 \001(\tH\001\210\001\001B\010\n" + "\006_valueB\020\n" + "\016_currency_code\"p\n" + "\030ConversionCountingMethod\022*\n" + "&CONVERSION_COUNTING_METHOD_UNSPECIFIED\020\000\022\022\n" + "\016ONCE_PER_EVENT\020\001\022\024\n" - + "\020ONCE_PER_SESSION\020\002:m\352Aj\n" - + "-analyticsadmin.googleapis.com/ConversionEvent\0229properties/{propert" - + "y}/conversionEvents/{conversion_event}B\033\n" + + "\020ONCE_PER_SESSION\020\002:\221\001\352A\215\001\n" + + "-analyticsadmin.googleapis.com/ConversionEvent\0229properti" + + "es/{property}/conversionEvents/{conversi" + + "on_event}*\020conversionEvents2\017conversionEventB\033\n" + "\031_default_conversion_value\"\325\004\n" + "\010KeyEvent\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\027\n\n" @@ -329,34 +337,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033COUNTING_METHOD_UNSPECIFIED\020\000\022\022\n" + "\016ONCE_PER_EVENT\020\001\022\024\n" + "\020ONCE_PER_SESSION\020\002:m\352Aj\n" - + "&analyticsadmin.googleapis.com/KeyEven" - + "t\022+properties/{property}/keyEvents/{key_event}*\tkeyEvents2\010keyEvent\"\273\003\n" + + "&analyticsadmin.googleapis.com/K" + + "eyEvent\022+properties/{property}/keyEvents/{key_event}*" + + "\tkeyEvents2\010keyEvent\"\340\003\n" + "\017CustomDimension\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\036\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + "\016parameter_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022\030\n" + "\013description\030\004 \001(\tB\003\340A\001\022T\n" - + "\005scope\030\005" - + " \001(\0162=.google.analytics.admin.v1beta.CustomDimension.DimensionScopeB\006\340A\002\340A\005\022)\n" + + "\005scope\030\005 \001(\0162=.google.analytics.admin.v1" + + "beta.CustomDimension.DimensionScopeB\006\340A\002\340A\005\022)\n" + "\034disallow_ads_personalization\030\006 \001(\010B\003\340A\001\"P\n" + "\016DimensionScope\022\037\n" + "\033DIMENSION_SCOPE_UNSPECIFIED\020\000\022\t\n" + "\005EVENT\020\001\022\010\n" + "\004USER\020\002\022\010\n" - + "\004ITEM\020\003:m\352Aj\n" - + "-analyticsadmin.googleapis.com/C" - + "ustomDimension\0229properties/{property}/customDimensions/{custom_dimension}\"\302\006\n" + + "\004ITEM\020\003:\221\001\352A\215\001\n" + + "-analyticsadmin.googleapis.com/CustomDimension\0229properties/{prop" + + "erty}/customDimensions/{custom_dimension}*\020customDimensions2\017customDimension\"\340\006\n" + "\014CustomMetric\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\036\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + "\016parameter_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022\030\n" + "\013description\030\004 \001(\tB\003\340A\001\022Z\n" - + "\020measurement_unit\030\005 \001(\0162;.google.analytics." - + "admin.v1beta.CustomMetric.MeasurementUnitB\003\340A\002\022N\n" - + "\005scope\030\006 \001(\01627.google.analytics" - + ".admin.v1beta.CustomMetric.MetricScopeB\006\340A\002\340A\005\022e\n" - + "\026restricted_metric_type\030\010 \003(\0162@" - + ".google.analytics.admin.v1beta.CustomMetric.RestrictedMetricTypeB\003\340A\001\"\267\001\n" + + "\020measurement_unit\030\005 \001(\0162;.google.analyti" + + "cs.admin.v1beta.CustomMetric.MeasurementUnitB\003\340A\002\022N\n" + + "\005scope\030\006 \001(\01627.google.analyt" + + "ics.admin.v1beta.CustomMetric.MetricScopeB\006\340A\002\340A\005\022e\n" + + "\026restricted_metric_type\030\010 \003(" + + "\0162@.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricTypeB\003\340A\001\"\267\001\n" + "\017MeasurementUnit\022 \n" + "\034MEASUREMENT_UNIT_UNSPECIFIED\020\000\022\014\n" + "\010STANDARD\020\001\022\014\n" @@ -376,15 +385,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024RestrictedMetricType\022&\n" + "\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tCOST_DATA\020\001\022\020\n" - + "\014REVENUE_DATA\020\002:d\352Aa\n" - + "*analyticsadmin.googleapis" - + ".com/CustomMetric\0223properties/{property}/customMetrics/{custom_metric}\"\260\004\n" + + "\014REVENUE_DATA\020\002:\201\001\352A~\n" + + "*analyticsadmin.google" + + "apis.com/CustomMetric\0223properties/{property}/customMetrics/{custom_metric}*\r" + + "customMetrics2\014customMetric\"\340\004\n" + "\025DataRetentionSettings\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022i\n" - + "\024event_data_retention\030\002 \001(\0162F.google.analy" - + "tics.admin.v1beta.DataRetentionSettings.RetentionDurationB\003\340A\002\022h\n" - + "\023user_data_retention\030\004 \001(\0162F.google.analytics.admin.v1b" - + "eta.DataRetentionSettings.RetentionDurationB\003\340A\002\022\'\n" + + "\004name\030\001 \001(\tB\003\340A\010\022i\n" + + "\024event_data_retention\030\002 \001(\0162F.google.analytics.ad" + + "min.v1beta.DataRetentionSettings.RetentionDurationB\003\340A\002\022h\n" + + "\023user_data_retention\030\004 \001(\0162F.google.analytics.admin.v1beta.Dat" + + "aRetentionSettings.RetentionDurationB\003\340A\002\022\'\n" + "\037reset_user_data_on_new_activity\030\003 \001(\010\"\236\001\n" + "\021RetentionDuration\022\"\n" + "\036RETENTION_DURATION_UNSPECIFIED\020\000\022\016\n\n" @@ -392,9 +402,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017FOURTEEN_MONTHS\020\003\022\025\n" + "\021TWENTY_SIX_MONTHS\020\004\022\027\n" + "\023THIRTY_EIGHT_MONTHS\020\005\022\020\n" - + "\014FIFTY_MONTHS\020\006:e\352Ab\n" - + "3analyticsadmin.googleap" - + "is.com/DataRetentionSettings\022+properties/{property}/dataRetentionSettings*\252\004\n" + + "\014FIFTY_MONTHS\020\006:\224\001\352A\220\001\n" + + "3analyticsadmin.googleapis.com/DataRetentionSettings\022+properties/{pro" + + "perty}/dataRetentionSettings*\025dataRetentionSettings2\025dataRetentionSettings*\252\004\n" + "\020IndustryCategory\022!\n" + "\035INDUSTRY_CATEGORY_UNSPECIFIED\020\000\022\016\n\n" + "AUTOMOTIVE\020\001\022#\n" @@ -462,10 +472,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026PROPERTY_TYPE_ORDINARY\020\001\022\035\n" + "\031PROPERTY_TYPE_SUBPROPERTY\020\002\022\030\n" + "\024PROPERTY_TYPE_ROLLUP\020\003B\311\001\n" - + "!com.google.analytics.admin.v1betaB\016ResourcesProtoP\001Z=cloud.goog" - + "le.com/go/analytics/admin/apiv1beta/adminpb;adminpb\352AR\n" - + "2marketingplatformadmin.googleapis.com/Organization\022\034organization" - + "s/{organization}b\006proto3" + + "!com.google.analytics.admin.v1betaB\016ResourcesProtoP\001Z=cloud.goo" + + "gle.com/go/analytics/admin/apiv1beta/adminpb;adminpb\352AR\n" + + "2marketingplatformadmin.googleapis.com/Organization\022\034organizatio" + + "ns/{organization}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -599,7 +609,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_analytics_admin_v1beta_PropertySummary_descriptor, new java.lang.String[] { - "Property", "DisplayName", "PropertyType", "Parent", + "Property", "DisplayName", "PropertyType", "Parent", "CanEdit", }); internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_descriptor = getDescriptor().getMessageType(8); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/access_report.proto b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/access_report.proto index 38c25d7cbb94..b73ebc29d774 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/access_report.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/access_report.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto index 7f61587d964d..78ec8e40db36 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -736,17 +736,17 @@ message GetAccountRequest { // Request message for ListAccounts RPC. message ListAccountsRequest { - // The maximum number of resources to return. The service may return + // Optional. The maximum number of resources to return. The service may return // fewer than this value, even if there are additional pages. // If unspecified, at most 50 resources will be returned. // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 1; + int32 page_size = 1 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListAccounts` call. + // Optional. A page token, received from a previous `ListAccounts` call. // Provide this to retrieve the subsequent page. // When paginating, all other parameters provided to `ListAccounts` must // match the call that provided the page token. - string page_token = 2; + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; // Whether to include soft-deleted (ie: "trashed") Accounts in the // results. Accounts can be inspected to determine whether they are deleted or @@ -840,17 +840,17 @@ message ListPropertiesRequest { // ``` string filter = 1 [(google.api.field_behavior) = REQUIRED]; - // The maximum number of resources to return. The service may return + // Optional. The maximum number of resources to return. The service may return // fewer than this value, even if there are additional pages. // If unspecified, at most 50 resources will be returned. // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListProperties` call. + // Optional. A page token, received from a previous `ListProperties` call. // Provide this to retrieve the subsequent page. // When paginating, all other parameters provided to `ListProperties` must // match the call that provided the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; // Whether to include soft-deleted (ie: "trashed") Properties in the // results. Properties can be inspected to determine whether they are deleted @@ -944,17 +944,17 @@ message ListFirebaseLinksRequest { } ]; - // The maximum number of resources to return. The service may return + // Optional. The maximum number of resources to return. The service may return // fewer than this value, even if there are additional pages. // If unspecified, at most 50 resources will be returned. // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListFirebaseLinks` call. + // Optional. A page token, received from a previous `ListFirebaseLinks` call. // Provide this to retrieve the subsequent page. // When paginating, all other parameters provided to `ListFirebaseLinks` must // match the call that provided the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListFirebaseLinks RPC @@ -1017,17 +1017,17 @@ message ListGoogleAdsLinksRequest { } ]; - // The maximum number of resources to return. + // Optional. The maximum number of resources to return. // If unspecified, at most 50 resources will be returned. // The maximum value is 200 (higher values will be coerced to the maximum). - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListGoogleAdsLinks` call. + // Optional. A page token, received from a previous `ListGoogleAdsLinks` call. // Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to `ListGoogleAdsLinks` must // match the call that provided the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListGoogleAdsLinks RPC. @@ -1056,17 +1056,17 @@ message GetDataSharingSettingsRequest { // Request message for ListAccountSummaries RPC. message ListAccountSummariesRequest { - // The maximum number of AccountSummary resources to return. The service may - // return fewer than this value, even if there are additional pages. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 1; + // Optional. The maximum number of AccountSummary resources to return. The + // service may return fewer than this value, even if there are additional + // pages. If unspecified, at most 50 resources will be returned. The maximum + // value is 200; (higher values will be coerced to the maximum) + int32 page_size = 1 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListAccountSummaries` call. - // Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `ListAccountSummaries` - // must match the call that provided the page token. - string page_token = 2; + // Optional. A page token, received from a previous `ListAccountSummaries` + // call. Provide this to retrieve the subsequent page. When paginating, all + // other parameters provided to `ListAccountSummaries` must match the call + // that provided the page token. + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListAccountSummaries RPC. @@ -1244,16 +1244,17 @@ message ListMeasurementProtocolSecretsRequest { } ]; - // The maximum number of resources to return. + // Optional. The maximum number of resources to return. // If unspecified, at most 10 resources will be returned. // The maximum value is 10. Higher values will be coerced to the maximum. - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListMeasurementProtocolSecrets` - // call. Provide this to retrieve the subsequent page. When paginating, all - // other parameters provided to `ListMeasurementProtocolSecrets` must match - // the call that provided the page token. - string page_token = 3; + // Optional. A page token, received from a previous + // `ListMeasurementProtocolSecrets` call. Provide this to retrieve the + // subsequent page. When paginating, all other parameters provided to + // `ListMeasurementProtocolSecrets` must match the call that provided the page + // token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListMeasurementProtocolSecret RPC @@ -1332,16 +1333,16 @@ message ListConversionEventsRequest { } ]; - // The maximum number of resources to return. + // Optional. The maximum number of resources to return. // If unspecified, at most 50 resources will be returned. // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListConversionEvents` call. - // Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `ListConversionEvents` - // must match the call that provided the page token. - string page_token = 3; + // Optional. A page token, received from a previous `ListConversionEvents` + // call. Provide this to retrieve the subsequent page. When paginating, all + // other parameters provided to `ListConversionEvents` must match the call + // that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListConversionEvents RPC. @@ -1420,16 +1421,16 @@ message ListKeyEventsRequest { } ]; - // The maximum number of resources to return. + // Optional. The maximum number of resources to return. // If unspecified, at most 50 resources will be returned. // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListKeyEvents` call. + // Optional. A page token, received from a previous `ListKeyEvents` call. // Provide this to retrieve the subsequent page. // When paginating, all other parameters provided to `ListKeyEvents` // must match the call that provided the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListKeyEvents RPC. @@ -1478,17 +1479,17 @@ message ListCustomDimensionsRequest { } ]; - // The maximum number of resources to return. + // Optional. The maximum number of resources to return. // If unspecified, at most 50 resources will be returned. // The maximum value is 200 (higher values will be coerced to the maximum). - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListCustomDimensions` call. - // Provide this to retrieve the subsequent page. + // Optional. A page token, received from a previous `ListCustomDimensions` + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to `ListCustomDimensions` // must match the call that provided the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListCustomDimensions RPC. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto index 7908fa764755..58fa6f965f34 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -225,12 +225,14 @@ message Account { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/Account" pattern: "accounts/{account}" + plural: "accounts" + singular: "account" }; - // Output only. Resource name of this account. + // Identifier. Resource name of this account. // Format: accounts/{account} // Example: "accounts/100" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Time when this account was originally created. google.protobuf.Timestamp create_time = 2 @@ -266,12 +268,14 @@ message Property { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/Property" pattern: "properties/{property}" + plural: "properties" + singular: "property" }; - // Output only. Resource name of this property. + // Identifier. Resource name of this property. // Format: properties/{property_id} // Example: "properties/1000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. The property type for this Property resource. When creating a // property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then @@ -351,6 +355,8 @@ message DataStream { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/DataStream" pattern: "properties/{property}/dataStreams/{data_stream}" + plural: "dataStreams" + singular: "dataStream" }; // Data specific to web streams. @@ -425,10 +431,10 @@ message DataStream { IosAppStreamData ios_app_stream_data = 8; } - // Output only. Resource name of this Data Stream. + // Identifier. Resource name of this Data Stream. // Format: properties/{property_id}/dataStreams/{stream_id} // Example: "properties/1000/dataStreams/2000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Immutable. The type of this DataStream resource. DataStreamType type = 2 [ @@ -457,10 +463,12 @@ message FirebaseLink { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/FirebaseLink" pattern: "properties/{property}/firebaseLinks/{firebase_link}" + plural: "firebaseLinks" + singular: "firebaseLink" }; - // Output only. Example format: properties/1234/firebaseLinks/5678 - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Identifier. Example format: properties/1234/firebaseLinks/5678 + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. Firebase project resource name. When creating a FirebaseLink, // you may provide this resource name using either a project number or project @@ -481,13 +489,15 @@ message GoogleAdsLink { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/GoogleAdsLink" pattern: "properties/{property}/googleAdsLinks/{google_ads_link}" + plural: "googleAdsLinks" + singular: "googleAdsLink" }; - // Output only. Format: + // Identifier. Format: // properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} // // Note: googleAdsLinkId is not the Google Ads customer ID. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. Google Ads customer ID. string customer_id = 3 [(google.api.field_behavior) = IMMUTABLE]; @@ -520,30 +530,51 @@ message DataSharingSettings { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/DataSharingSettings" pattern: "accounts/{account}/dataSharingSettings" + plural: "dataSharingSettings" + singular: "dataSharingSettings" }; - // Output only. Resource name. + // Identifier. Resource name. // Format: accounts/{account}/dataSharingSettings // Example: "accounts/1000/dataSharingSettings" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - // Allows Google support to access the data in order to help troubleshoot - // issues. + // Allows Google technical support representatives access to your Google + // Analytics data and account when necessary to provide service and find + // solutions to technical issues. + // + // This field maps to the "Technical support" field in the Google Analytics + // Admin UI. bool sharing_with_google_support_enabled = 2; - // Allows Google sales teams that are assigned to the customer to access the - // data in order to suggest configuration changes to improve results. - // Sales team restrictions still apply when enabled. + // Allows Google access to your Google Analytics account data, including + // account usage and configuration data, product spending, and users + // associated with your Google Analytics account, so that Google can help you + // make the most of Google products, providing you with insights, offers, + // recommendations, and optimization tips across Google Analytics and other + // Google products for business. + // + // This field maps to the "Recommendations for your business" field in the + // Google Analytics Admin UI. bool sharing_with_google_assigned_sales_enabled = 3; - // Allows any of Google sales to access the data in order to suggest - // configuration changes to improve results. - bool sharing_with_google_any_sales_enabled = 4; + // Deprecated. This field is no longer used and always returns false. + bool sharing_with_google_any_sales_enabled = 4 [deprecated = true]; // Allows Google to use the data to improve other Google products or services. + // + // This fields maps to the "Google products & services" field in the Google + // Analytics Admin UI. bool sharing_with_google_products_enabled = 5; - // Allows Google to share the data anonymously in aggregate form with others. + // Enable features like predictions, modeled data, and benchmarking that can + // provide you with richer business insights when you contribute aggregated + // measurement data. The data you share (including information about the + // property from which it is shared) is aggregated and de-identified before + // being used to generate business insights. + // + // This field maps to the "Modeling contributions & business insights" field + // in the Google Analytics Admin UI. bool sharing_with_others_enabled = 6; } @@ -553,12 +584,14 @@ message AccountSummary { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/AccountSummary" pattern: "accountSummaries/{account_summary}" + plural: "accountSummaries" + singular: "accountSummary" }; - // Resource name for this account summary. + // Identifier. Resource name for this account summary. // Format: accountSummaries/{account_id} // Example: "accountSummaries/1000" - string name = 1; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Resource name of account referred to by this account summary // Format: accounts/{account_id} @@ -595,6 +628,10 @@ message PropertySummary { // Format: accounts/{account}, properties/{property} // Example: "accounts/100", "properties/200" string parent = 4; + + // If true, then the user has a Google Analytics role that permits them to + // edit the property. + bool can_edit = 5; } // A secret value used for sending hits to Measurement Protocol. @@ -602,12 +639,14 @@ message MeasurementProtocolSecret { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" pattern: "properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" + plural: "measurementProtocolSecrets" + singular: "measurementProtocolSecret" }; - // Output only. Resource name of this secret. This secret may be a child of - // any type of stream. Format: + // Identifier. Resource name of this secret. This secret may be a child of any + // type of stream. Format: // properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Human-readable display name for this secret. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; @@ -698,6 +737,8 @@ message ConversionEvent { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/ConversionEvent" pattern: "properties/{property}/conversionEvents/{conversion_event}" + plural: "conversionEvents" + singular: "conversionEvent" }; // Defines a default value/currency for a conversion event. Both value and @@ -728,9 +769,9 @@ message ConversionEvent { ONCE_PER_SESSION = 2; } - // Output only. Resource name of this conversion event. + // Identifier. Resource name of this conversion event. // Format: properties/{property}/conversionEvents/{conversion_event} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. The event name for this conversion event. // Examples: 'click', 'purchase' @@ -837,6 +878,8 @@ message CustomDimension { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/CustomDimension" pattern: "properties/{property}/customDimensions/{custom_dimension}" + plural: "customDimensions" + singular: "customDimension" }; // Valid values for the scope of this dimension. @@ -854,9 +897,9 @@ message CustomDimension { ITEM = 3; } - // Output only. Resource name for this CustomDimension resource. + // Identifier. Resource name for this CustomDimension resource. // Format: properties/{property}/customDimensions/{customDimension} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Immutable. Tagging parameter name for this custom dimension. // @@ -905,6 +948,8 @@ message CustomMetric { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/CustomMetric" pattern: "properties/{property}/customMetrics/{custom_metric}" + plural: "customMetrics" + singular: "customMetric" }; // Possible types of representing the custom metric's value. @@ -968,9 +1013,9 @@ message CustomMetric { REVENUE_DATA = 2; } - // Output only. Resource name for this CustomMetric resource. + // Identifier. Resource name for this CustomMetric resource. // Format: properties/{property}/customMetrics/{customMetric} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Immutable. Tagging name for this custom metric. // @@ -1016,6 +1061,8 @@ message DataRetentionSettings { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/DataRetentionSettings" pattern: "properties/{property}/dataRetentionSettings" + plural: "dataRetentionSettings" + singular: "dataRetentionSettings" }; // Valid values for the data retention duration. @@ -1042,9 +1089,9 @@ message DataRetentionSettings { FIFTY_MONTHS = 6; } - // Output only. Resource name for this DataRetentionSetting resource. + // Identifier. Resource name for this DataRetentionSetting resource. // Format: properties/{property}/dataRetentionSettings - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. The length of time that event-level data is retained. RetentionDuration event_data_retention = 2 diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/AsyncUpdateReportingIdentitySettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/AsyncUpdateReportingIdentitySettings.java new file mode 100644 index 000000000000..fa45b3832e93 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/AsyncUpdateReportingIdentitySettings.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingIdentitySettings_async] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ReportingIdentitySettings; +import com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest; +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateReportingIdentitySettings { + + public static void main(String[] args) throws Exception { + asyncUpdateReportingIdentitySettings(); + } + + public static void asyncUpdateReportingIdentitySettings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + UpdateReportingIdentitySettingsRequest request = + UpdateReportingIdentitySettingsRequest.newBuilder() + .setReportingIdentitySettings(ReportingIdentitySettings.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.updateReportingIdentitySettingsCallable().futureCall(request); + // Do something. + ReportingIdentitySettings response = future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingIdentitySettings_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/SyncUpdateReportingIdentitySettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/SyncUpdateReportingIdentitySettings.java new file mode 100644 index 000000000000..4ba3da6dc896 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/SyncUpdateReportingIdentitySettings.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingIdentitySettings_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ReportingIdentitySettings; +import com.google.analytics.admin.v1alpha.UpdateReportingIdentitySettingsRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateReportingIdentitySettings { + + public static void main(String[] args) throws Exception { + syncUpdateReportingIdentitySettings(); + } + + public static void syncUpdateReportingIdentitySettings() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + UpdateReportingIdentitySettingsRequest request = + UpdateReportingIdentitySettingsRequest.newBuilder() + .setReportingIdentitySettings(ReportingIdentitySettings.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ReportingIdentitySettings response = + analyticsAdminServiceClient.updateReportingIdentitySettings(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingIdentitySettings_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/SyncUpdateReportingIdentitySettingsReportingidentitysettingsFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/SyncUpdateReportingIdentitySettingsReportingidentitysettingsFieldmask.java new file mode 100644 index 000000000000..d50bfb614ad2 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatereportingidentitysettings/SyncUpdateReportingIdentitySettingsReportingidentitysettingsFieldmask.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingIdentitySettings_ReportingidentitysettingsFieldmask_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.ReportingIdentitySettings; +import com.google.protobuf.FieldMask; + +public class SyncUpdateReportingIdentitySettingsReportingidentitysettingsFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateReportingIdentitySettingsReportingidentitysettingsFieldmask(); + } + + public static void syncUpdateReportingIdentitySettingsReportingidentitysettingsFieldmask() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + ReportingIdentitySettings reportingIdentitySettings = + ReportingIdentitySettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + ReportingIdentitySettings response = + analyticsAdminServiceClient.updateReportingIdentitySettings( + reportingIdentitySettings, updateMask); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_UpdateReportingIdentitySettings_ReportingidentitysettingsFieldmask_sync] 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 6f7a87548ae4..6f64a62796b8 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 @@ -980,6 +980,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dataproc.v1.ConfidentialInstanceConfig$ConfidentialInstanceType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dataproc.v1.CreateAutoscalingPolicyRequest", "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 47f7b52a582d..6dbf904a1848 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 @@ -84,6 +84,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataproc_v1_GceClusterConfig_ResourceManagerTagsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataproc_v1_GceClusterConfig_ResourceManagerTagsEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -366,7 +370,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020EncryptionConfig\022 \n" + "\023gce_pd_kms_key_name\030\001 \001(\tB\003\340A\001\022:\n" + "\007kms_key\030\002 \001(\tB)\340A\001\372A#\n" - + "!cloudkms.googleapis.com/CryptoKey\"\272\007\n" + + "!cloudkms.googleapis.com/CryptoKey\"\337\010\n" + "\020GceClusterConfig\022\025\n" + "\010zone_uri\030\001 \001(\tB\003\340A\001\022\030\n" + "\013network_uri\030\002 \001(\tB\003\340A\001\022\033\n" @@ -386,9 +390,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030shielded_instance_config\030\016" + " \001(\01320.google.cloud.dataproc.v1.ShieldedInstanceConfigB\003\340A\001\022_\n" + "\034confidential_instance_config\030\017 \001(\01324.google.cloud.datap" - + "roc.v1.ConfidentialInstanceConfigB\003\340A\001\032/\n\r" + + "roc.v1.ConfidentialInstanceConfigB\003\340A\001\022g\n" + + "\025resource_manager_tags\030\020 \003(\0132C.google.c" + + "loud.dataproc.v1.GceClusterConfig.ResourceManagerTagsEntryB\003\340A\001\032/\n\r" + "MetadataEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032:\n" + + "\030ResourceManagerTagsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\203\001\n" + "\027PrivateIpv6GoogleAccess\022*\n" + "&PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED\020\000\022\033\n" @@ -405,32 +414,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\010B\003\340A\001H\002\210\001\001B\025\n" + "\023_enable_secure_bootB\016\n" + "\014_enable_vtpmB\036\n" - + "\034_enable_integrity_monitoring\"F\n" - + "\032ConfidentialInstanceConfig\022(\n" - + "\033enable_confidential_compute\030\001 \001(\010B\003\340A\001\"\353\006\n" + + "\034_enable_integrity_monitoring\"\247\002\n" + + "\032ConfidentialInstanceConfig\022*\n" + + "\033enable_confidential_compute\030\001 \001(\010B\005\030\001\340A\001\022v\n" + + "\032confidential_instance_type\030\002 \001(\0162M.google.cloud.da" + + "taproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceTypeB\003\340A\001\"e\n" + + "\030ConfidentialInstanceType\022*\n" + + "&CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED\020\000\022\007\n" + + "\003SEV\020\001\022\013\n" + + "\007SEV_SNP\020\002\022\007\n" + + "\003TDX\020\003\"\353\006\n" + "\023InstanceGroupConfig\022\032\n\r" + "num_instances\030\001 \001(\005B\003\340A\001\022\033\n" + "\016instance_names\030\002 \003(\tB\003\340A\003\022M\n" - + "\023instance_references\030\013" - + " \003(\0132+.google.cloud.dataproc.v1.InstanceReferenceB\003\340A\003\022\026\n" + + "\023instance_references\030\013 \003(\0132" + + "+.google.cloud.dataproc.v1.InstanceReferenceB\003\340A\003\022\026\n" + "\timage_uri\030\003 \001(\tB\003\340A\001\022\035\n" + "\020machine_type_uri\030\004 \001(\tB\003\340A\001\022>\n" + "\013disk_config\030\005" + " \001(\0132$.google.cloud.dataproc.v1.DiskConfigB\003\340A\001\022\033\n" + "\016is_preemptible\030\006 \001(\010B\003\340A\003\022Y\n" + "\016preemptibility\030\n" - + " \001(\0162<.google." - + "cloud.dataproc.v1.InstanceGroupConfig.PreemptibilityB\003\340A\001\022O\n" - + "\024managed_group_config\030\007" - + " \001(\0132,.google.cloud.dataproc.v1.ManagedGroupConfigB\003\340A\003\022F\n" - + "\014accelerators\030\010 \003(\013" - + "2+.google.cloud.dataproc.v1.AcceleratorConfigB\003\340A\001\022\035\n" + + " \001(\0162<.google.cloud.dat" + + "aproc.v1.InstanceGroupConfig.PreemptibilityB\003\340A\001\022O\n" + + "\024managed_group_config\030\007 \001(\0132," + + ".google.cloud.dataproc.v1.ManagedGroupConfigB\003\340A\003\022F\n" + + "\014accelerators\030\010 \003(\0132+.google" + + ".cloud.dataproc.v1.AcceleratorConfigB\003\340A\001\022\035\n" + "\020min_cpu_platform\030\t \001(\tB\003\340A\001\022\036\n" + "\021min_num_instances\030\014 \001(\005B\003\340A\001\022]\n" + "\033instance_flexibility_policy\030\r" + " \001(\01323.google.cloud.dataproc.v1.InstanceFlexibilityPolicyB\003\340A\001\022D\n" - + "\016startup_config\030\016 \001(\0132\'.googl" - + "e.cloud.dataproc.v1.StartupConfigB\003\340A\001\"`\n" + + "\016startup_config\030\016" + + " \001(\0132\'.google.cloud.dataproc.v1.StartupConfigB\003\340A\001\"`\n" + "\016Preemptibility\022\036\n" + "\032PREEMPTIBILITY_UNSPECIFIED\020\000\022\023\n" + "\017NON_PREEMPTIBLE\020\001\022\017\n" @@ -450,12 +466,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033instance_group_manager_name\030\002 \001(\tB\003\340A\003\022\'\n" + "\032instance_group_manager_uri\030\003 \001(\tB\003\340A\003\"\345\005\n" + "\031InstanceFlexibilityPolicy\022m\n" - + "\026provisioning_model_mix\030\001 \001(\0132H.goo" - + "gle.cloud.dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMixB\003\340A\001\022k\n" - + "\027instance_selection_list\030\002 \003(\0132E.google.clou" - + "d.dataproc.v1.InstanceFlexibilityPolicy.InstanceSelectionB\003\340A\001\022t\n" - + "\032instance_selection_results\030\003 \003(\0132K.google.cloud.datapr" - + "oc.v1.InstanceFlexibilityPolicy.InstanceSelectionResultB\003\340A\003\032\274\001\n" + + "\026provisioning_model_mix\030\001 \001(\0132H.google.cloud" + + ".dataproc.v1.InstanceFlexibilityPolicy.ProvisioningModelMixB\003\340A\001\022k\n" + + "\027instance_selection_list\030\002 \003(\0132E.google.cloud.datapro" + + "c.v1.InstanceFlexibilityPolicy.InstanceSelectionB\003\340A\001\022t\n" + + "\032instance_selection_results\030\003 \003(\0132K.google.cloud.dataproc.v1.Ins" + + "tanceFlexibilityPolicy.InstanceSelectionResultB\003\340A\003\032\274\001\n" + "\024ProvisioningModelMix\022(\n" + "\026standard_capacity_base\030\001 \001(\005B\003\340A\001H\000\210\001\001\0226\n" + "$standard_capacity_percent_above_base\030\002" @@ -467,7 +483,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004rank\030\002 \001(\005B\003\340A\001\032s\n" + "\027InstanceSelectionResult\022\036\n" + "\014machine_type\030\001 \001(\tB\003\340A\003H\000\210\001\001\022\032\n" - + "\010vm_count\030\002 \001(\005B\003\340A\003H\001\210\001\001B\017\n\r" + + "\010vm_count\030\002 \001(\005B\003\340A\003H\001\210\001\001B\017\n" + + "\r" + "_machine_typeB\013\n" + "\t_vm_count\"L\n" + "\021AcceleratorConfig\022\034\n" @@ -491,31 +508,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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_config\030\003" - + " \001(\0132-.google.cloud.dataproc.v1.InstanceGroupConfigB\003\340A\001\022D\n" - + "\006labels\030\004 \003(\0132/.g" - + "oogle.cloud.dataproc.v1.NodeGroup.LabelsEntryB\003\340A\001\032-\n" + + "\021node_group_config\030\003 \001(\0132" + + "-.google.cloud.dataproc.v1.InstanceGroupConfigB\003\340A\001\022D\n" + + "\006labels\030\004 \003(\0132/.google.clo" + + "ud.dataproc.v1.NodeGroup.LabelsEntryB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" - + "\n" + + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"(\n" + "\004Role\022\024\n" - + "\020ROLE_UNSPECIFIED\020\000\022\n\n" + + "\020ROLE_UNSPECIFIED\020\000\022\n" + + "\n" + "\006DRIVER\020\001:v\352As\n" - + "!dataproc.googleapis.com/NodeGroup\022Nprojects/{project}/" - + "regions/{region}/clusters/{cluster}/nodeGroups/{node_group}\"s\n" + + "!dataproc.googleapis.com/NodeGroup\022Nprojects/{project}/regions/{" + + "region}/clusters/{cluster}/nodeGroups/{node_group}\"s\n" + "\030NodeInitializationAction\022\034\n" + "\017executable_file\030\001 \001(\tB\003\340A\002\0229\n" + "\021execution_timeout\030\002" + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\326\003\n\r" + "ClusterStatus\022A\n" - + "\005state\030\001" - + " \001(\0162-.google.cloud.dataproc.v1.ClusterStatus.StateB\003\340A\003\022\026\n" + + "\005state\030\001 \001(\016" + + "2-.google.cloud.dataproc.v1.ClusterStatus.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.ClusterStatus.SubstateB\003\340A\003\"\247\001\n" + + "\010substate\030\004 \001(\01620.goog" + + "le.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" @@ -536,8 +553,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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.IdentityConfigB\003\340A\001\"\220\004\n" + + "\017identity_config\030\002 \001(\0132(.g" + + "oogle.cloud.dataproc.v1.IdentityConfigB\003\340A\001\"\220\004\n" + "\016KerberosConfig\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" @@ -557,16 +574,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022tgt_lifetime_hours\030\016 \001(\005B\003\340A\001\022\022\n" + "\005realm\030\017 \001(\tB\003\340A\001\"\306\001\n" + "\016IdentityConfig\022r\n" - + "\034user_service_account_mapping\030\001 \003(\013" - + "2G.google.cloud.dataproc.v1.IdentityConf" - + "ig.UserServiceAccountMappingEntryB\003\340A\002\032@\n" + + "\034user_service_account_mapping\030\001 \003(\0132G.google" + + ".cloud.dataproc.v1.IdentityConfig.UserServiceAccountMappingEntryB\003\340A\002\032@\n" + "\036UserServiceAccountMappingEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\371\001\n" + "\016SoftwareConfig\022\032\n\r" + "image_version\030\001 \001(\tB\003\340A\001\022Q\n\n" - + "properties\030\002" - + " \003(\01328.google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntryB\003\340A\001\022E\n" + + "properties\030\002 \003" + + "(\01328.google.cloud.dataproc.v1.SoftwareConfig.PropertiesEntryB\003\340A\001\022E\n" + "\023optional_components\030\003" + " \003(\0162#.google.cloud.dataproc.v1.ComponentB\003\340A\001\0321\n" + "\017PropertiesEntry\022\013\n" @@ -592,10 +608,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032dataproc_metastore_service\030\001 \001(\tB(\340A\002\372A\"\n" + " metastore.googleapis.com/Service\"\232\002\n" + "\016ClusterMetrics\022O\n" - + "\014hdfs_metrics\030\001 \003(\01329.google.cloud.datap" - + "roc.v1.ClusterMetrics.HdfsMetricsEntry\022O\n" - + "\014yarn_metrics\030\002 \003(\01329.google.cloud.data" - + "proc.v1.ClusterMetrics.YarnMetricsEntry\0322\n" + + "\014hdfs_metrics\030\001" + + " \003(\01329.google.cloud.dataproc.v1.ClusterMetrics.HdfsMetricsEntry\022O\n" + + "\014yarn_metrics\030\002" + + " \003(\01329.google.cloud.dataproc.v1.ClusterMetrics.YarnMetricsEntry\0322\n" + "\020HdfsMetricsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\003:\0028\001\0322\n" @@ -603,11 +619,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\003:\0028\001\"\235\003\n" + "\024DataprocMetricConfig\022K\n" - + "\007metrics\030\001 \003(\01325.google.cloud" - + ".dataproc.v1.DataprocMetricConfig.MetricB\003\340A\002\032\200\001\n" + + "\007metrics\030\001" + + " \003(\01325.google.cloud.dataproc.v1.DataprocMetricConfig.MetricB\003\340A\002\032\200\001\n" + "\006Metric\022W\n\r" - + "metric_source\030\001 \001(\0162" - + ";.google.cloud.dataproc.v1.DataprocMetricConfig.MetricSourceB\003\340A\002\022\035\n" + + "metric_source\030\001 \001(\0162;.google." + + "cloud.dataproc.v1.DataprocMetricConfig.MetricSourceB\003\340A\002\022\035\n" + "\020metric_overrides\030\002 \003(\tB\003\340A\001\"\264\001\n" + "\014MetricSource\022\035\n" + "\031METRIC_SOURCE_UNSPECIFIED\020\000\022\035\n" @@ -622,11 +638,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024CreateClusterRequest\022\027\n\n" + "project_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.dataproc.v1.ClusterB\003\340A\002\022\027\n\n" + + "\007cluster\030\002 \001(\0132!" + + ".google.cloud.dataproc.v1.ClusterB\003\340A\002\022\027\n\n" + "request_id\030\004 \001(\tB\003\340A\001\022V\n" - + " action_on_failed_primary_workers\030\005 \001(\0162\'.goo" - + "gle.cloud.dataproc.v1.FailureActionB\003\340A\001\"\256\002\n" + + " action_on_failed_primary_workers\030\005" + + " \001(\0162\'.google.cloud.dataproc.v1.FailureActionB\003\340A\001\"\256\002\n" + "\024UpdateClusterRequest\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006region\030\005 \001(\tB\003\340A\002\022\031\n" @@ -643,8 +659,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014cluster_name\030\003 \001(\tB\003\340A\002\022\031\n" + "\014cluster_uuid\030\004 \001(\tB\003\340A\001\022\027\n\n" + "request_id\030\005 \001(\tB\003\340A\001\"\222\001\n" - + "\023StartClusterRequest\022\027\n" - + "\n" + + "\023StartClusterRequest\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006region\030\002 \001(\tB\003\340A\002\022\031\n" + "\014cluster_name\030\003 \001(\tB\003\340A\002\022\031\n" @@ -675,8 +690,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006region\030\003 \001(\tB\003\340A\002\022\031\n" + "\014cluster_name\030\002 \001(\tB\003\340A\002\022\034\n" + "\017tarball_gcs_dir\030\004 \001(\tB\003\340A\001\022[\n" - + "\016tarball_access\030\005 \001(\0162>.google.cloud.dataproc.v1." - + "DiagnoseClusterRequest.TarballAccessB\003\340A\001\0226\n" + + "\016tarball_access\030\005 " + + "\001(\0162>.google.cloud.dataproc.v1.DiagnoseClusterRequest.TarballAccessB\003\340A\001\0226\n" + "\022diagnosis_interval\030\006" + " \001(\0132\025.google.type.IntervalB\003\340A\001\022\021\n" + "\004jobs\030\n" @@ -689,8 +704,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026DiagnoseClusterResults\022\027\n\n" + "output_uri\030\001 \001(\tB\003\340A\003\"\370\001\n" + "\023ReservationAffinity\022Y\n" - + "\030consume_reservation_type\030\001" - + " \001(\01622.google.cloud.dataproc.v1.ReservationAffinity.TypeB\003\340A\001\022\020\n" + + "\030consume_reservation_type\030\001 \001(\01622.g" + + "oogle.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" @@ -699,53 +714,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017ANY_RESERVATION\020\002\022\030\n" + "\024SPECIFIC_RESERVATION\020\0032\344\020\n" + "\021ClusterController\022\200\002\n\r" - + "CreateCluster\022..google.cloud.dataproc.v1.CreateClusterR" - + "equest\032\035.google.longrunning.Operation\"\237\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.C" - + "lusterOperationMetadata\332A\031project_id,reg" - + "ion,cluster\202\323\344\223\002>\"3/v1/projects/{project" - + "_id}/regions/{region}/clusters:\007cluster\022\250\002\n\r" - + "UpdateCluster\022..google.cloud.datapro" - + "c.v1.UpdateClusterRequest\032\035.google.longrunning.Operation\"\307\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMetada" - + "ta\332A2project_id,region,cluster_name,clus" - + "ter,update_mask\202\323\344\223\002M2B/v1/projects/{pro" - + "ject_id}/regions/{region}/clusters/{cluster_name}:\007cluster\022\356\001\n" - + "\013StopCluster\022,.goo" - + "gle.cloud.dataproc.v1.StopClusterRequest\032\035.google.longrunning.Operation\"\221\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.Cluster" - + "OperationMetadata\202\323\344\223\002L\"G/v1/projects/{p" - + "roject_id}/regions/{region}/clusters/{cluster_name}:stop:\001*\022\361\001\n" - + "\014StartCluster\022-.google.cloud.dataproc.v1.StartClusterRequ" - + "est\032\035.google.longrunning.Operation\"\222\001\312A<\n" - + "\007Cluster\0221google.cloud.dataproc.v1.Clus" - + "terOperationMetadata\202\323\344\223\002M\"H/v1/projects" - + "/{project_id}/regions/{region}/clusters/{cluster_name}:start:\001*\022\231\002\n\r" - + "DeleteCluster\022..google.cloud.dataproc.v1.DeleteClust" - + "erRequest\032\035.google.longrunning.Operation\"\270\001\312AJ\n" - + "\025google.protobuf.Empty\0221google.cloud.dataproc.v1.ClusterOperationMetadata" - + "\332A\036project_id,region,cluster_name\202\323\344\223\002D*" - + "B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\022\311\001\n\n" - + "GetCluster\022+.google.cloud.dataproc.v1.GetCluster" - + "Request\032!.google.cloud.dataproc.v1.Clust" - + "er\"k\332A\036project_id,region,cluster_name\202\323\344" - + "\223\002D\022B/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}\022\331\001\n" - + "\014ListClusters\022-.google.cloud.dataproc.v1.List" - + "ClustersRequest\032..google.cloud.dataproc." - + "v1.ListClustersResponse\"j\332A\021project_id,r" - + "egion\332A\030project_id,region,filter\202\323\344\223\0025\0223" - + "/v1/projects/{project_id}/regions/{region}/clusters\022\252\002\n" - + "\017DiagnoseCluster\0220.google" - + ".cloud.dataproc.v1.DiagnoseClusterRequest\032\035.google.longrunning.Operation\"\305\001\312AK\n" - + "\026DiagnoseClusterResults\0221google.cloud.dat" - + "aproc.v1.ClusterOperationMetadata\332A\036proj" - + "ect_id,region,cluster_name\202\323\344\223\002P\"K/v1/pr" - + "ojects/{project_id}/regions/{region}/clu" - + "sters/{cluster_name}:diagnose:\001*\032K\312A\027dat" - + "aproc.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformBl\n" + + "CreateCluster\022..google.c" + + "loud.dataproc.v1.CreateClusterRequest\032\035.google.longrunning.Operation\"\237\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOpe" + + "rationMetadata\332A\031project_id,region,clust" + + "er\202\323\344\223\002>\"3/v1/projects/{project_id}/regions/{region}/clusters:\007cluster\022\250\002\n\r" + + "UpdateCluster\022..google.cloud.dataproc.v1.Upda" + + "teClusterRequest\032\035.google.longrunning.Operation\"\307\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperationMetadata\332A2proj" + + "ect_id,region,cluster_name,cluster,updat" + + "e_mask\202\323\344\223\002M2B/v1/projects/{project_id}/" + + "regions/{region}/clusters/{cluster_name}:\007cluster\022\356\001\n" + + "\013StopCluster\022,.google.cloud" + + ".dataproc.v1.StopClusterRequest\032\035.google.longrunning.Operation\"\221\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperation" + + "Metadata\202\323\344\223\002L\"G/v1/projects/{project_id" + + "}/regions/{region}/clusters/{cluster_name}:stop:\001*\022\361\001\n" + + "\014StartCluster\022-.google.clo" + + "ud.dataproc.v1.StartClusterRequest\032\035.google.longrunning.Operation\"\222\001\312A<\n" + + "\007Cluster\0221google.cloud.dataproc.v1.ClusterOperat" + + "ionMetadata\202\323\344\223\002M\"H/v1/projects/{project" + + "_id}/regions/{region}/clusters/{cluster_name}:start:\001*\022\231\002\n\r" + + "DeleteCluster\022..googl" + + "e.cloud.dataproc.v1.DeleteClusterRequest\032\035.google.longrunning.Operation\"\270\001\312AJ\n" + + "\025google.protobuf.Empty\0221google.cloud.datap" + + "roc.v1.ClusterOperationMetadata\332A\036projec" + + "t_id,region,cluster_name\202\323\344\223\002D*B/v1/proj" + + "ects/{project_id}/regions/{region}/clusters/{cluster_name}\022\311\001\n\n" + + "GetCluster\022+.google.cloud.dataproc.v1.GetClusterRequest\032!" + + ".google.cloud.dataproc.v1.Cluster\"k\332A\036pr" + + "oject_id,region,cluster_name\202\323\344\223\002D\022B/v1/" + + "projects/{project_id}/regions/{region}/clusters/{cluster_name}\022\331\001\n" + + "\014ListClusters\022-.google.cloud.dataproc.v1.ListClustersR" + + "equest\032..google.cloud.dataproc.v1.ListCl" + + "ustersResponse\"j\332A\021project_id,region\332A\030p" + + "roject_id,region,filter\202\323\344\223\0025\0223/v1/proje" + + "cts/{project_id}/regions/{region}/clusters\022\252\002\n" + + "\017DiagnoseCluster\0220.google.cloud.da" + + "taproc.v1.DiagnoseClusterRequest\032\035.google.longrunning.Operation\"\305\001\312AK\n" + + "\026DiagnoseClusterResults\0221google.cloud.dataproc.v1." + + "ClusterOperationMetadata\332A\036project_id,re" + + "gion,cluster_name\202\323\344\223\002P\"K/v1/projects/{p" + + "roject_id}/regions/{region}/clusters/{cl" + + "uster_name}:diagnose:\001*\032K\312A\027dataproc.goo" + + "gleapis.com\322A.https://www.googleapis.com/auth/cloud-platformBl\n" + "\034com.google.cloud.dataproc.v1B\r" - + "ClustersProtoP\001Z;cloud.google.com/go/dataproc/v2/apiv1/da" - + "taprocpb;dataprocpbb\006proto3" + + "ClustersProtoP\001Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;" + + "dataprocpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -884,6 +899,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NodeGroupAffinity", "ShieldedInstanceConfig", "ConfidentialInstanceConfig", + "ResourceManagerTags", }); internal_static_google_cloud_dataproc_v1_GceClusterConfig_MetadataEntry_descriptor = internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor.getNestedType(0); @@ -893,6 +909,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_dataproc_v1_GceClusterConfig_ResourceManagerTagsEntry_descriptor = + internal_static_google_cloud_dataproc_v1_GceClusterConfig_descriptor.getNestedType(1); + internal_static_google_cloud_dataproc_v1_GceClusterConfig_ResourceManagerTagsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataproc_v1_GceClusterConfig_ResourceManagerTagsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_descriptor = getDescriptor().getMessageType(8); internal_static_google_cloud_dataproc_v1_NodeGroupAffinity_fieldAccessorTable = @@ -915,7 +939,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataproc_v1_ConfidentialInstanceConfig_descriptor, new java.lang.String[] { - "EnableConfidentialCompute", + "EnableConfidentialCompute", "ConfidentialInstanceType", }); internal_static_google_cloud_dataproc_v1_InstanceGroupConfig_descriptor = getDescriptor().getMessageType(11); diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java index 7f4cda28774f..04b1e1538bbb 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfig.java @@ -25,7 +25,7 @@ * *
              * Confidential Instance Config for clusters using [Confidential
            - * VMs](https://cloud.google.com/compute/confidential-vm/docs)
            + * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs)
              * 
            * * Protobuf type {@code google.cloud.dataproc.v1.ConfidentialInstanceConfig} @@ -52,7 +52,9 @@ private ConfidentialInstanceConfig(com.google.protobuf.GeneratedMessage.Builder< super(builder); } - private ConfidentialInstanceConfig() {} + private ConfidentialInstanceConfig() { + confidentialInstanceType_ = 0; + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dataproc.v1.ClustersProto @@ -69,6 +71,212 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.Builder.class); } + /** + * + * + *
            +   * The type of Confidential Compute technology as per [Confidential Computing
            +   * types](https://cloud.google.com/confidential-computing/confidential-vm/docs/create-a-confidential-vm-instance#create-instance).
            +   * New values may be added in the future.
            +   * 
            + * + * Protobuf enum {@code + * google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType} + */ + public enum ConfidentialInstanceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Confidential Instance Type is not specified.
            +     * 
            + * + * CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED = 0; + */ + CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED(0), + /** + * + * + *
            +     * [AMD Secure Encrypted
            +     * Virtualization](https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview#amd_sev)
            +     * 
            + * + * SEV = 1; + */ + SEV(1), + /** + * + * + *
            +     * [AMD Secure Encrypted Virtualization-Secure Nested
            +     * Paging](https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview#amd_sev-snp)
            +     * 
            + * + * SEV_SNP = 2; + */ + SEV_SNP(2), + /** + * + * + *
            +     * [Intel Trust Domain
            +     * Extensions](https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview#intel_tdx)
            +     * 
            + * + * TDX = 3; + */ + TDX(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConfidentialInstanceType"); + } + + /** + * + * + *
            +     * Confidential Instance Type is not specified.
            +     * 
            + * + * CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED = 0; + */ + public static final int CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * [AMD Secure Encrypted
            +     * Virtualization](https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview#amd_sev)
            +     * 
            + * + * SEV = 1; + */ + public static final int SEV_VALUE = 1; + + /** + * + * + *
            +     * [AMD Secure Encrypted Virtualization-Secure Nested
            +     * Paging](https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview#amd_sev-snp)
            +     * 
            + * + * SEV_SNP = 2; + */ + public static final int SEV_SNP_VALUE = 2; + + /** + * + * + *
            +     * [Intel Trust Domain
            +     * Extensions](https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview#intel_tdx)
            +     * 
            + * + * TDX = 3; + */ + public static final int TDX_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 ConfidentialInstanceType 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 ConfidentialInstanceType forNumber(int value) { + switch (value) { + case 0: + return CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED; + case 1: + return SEV; + case 2: + return SEV_SNP; + case 3: + return TDX; + 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 ConfidentialInstanceType findValueByNumber(int number) { + return ConfidentialInstanceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ConfidentialInstanceType[] VALUES = values(); + + public static ConfidentialInstanceType 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 ConfidentialInstanceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType) + } + public static final int ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER = 1; private boolean enableConfidentialCompute_ = false; @@ -76,19 +284,70 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Optional. Defines whether the instance should have confidential compute
            -   * enabled.
            +   * Optional. Deprecated: Use 'confidential_instance_type' instead.
            +   * Defines whether the instance should have confidential compute enabled.
                * 
            * - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_confidential_compute = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute is + * deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 * @return The enableConfidentialCompute. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnableConfidentialCompute() { return enableConfidentialCompute_; } + public static final int CONFIDENTIAL_INSTANCE_TYPE_FIELD_NUMBER = 2; + private int confidentialInstanceType_ = 0; + + /** + * + * + *
            +   * Optional. Defines the type of Confidential Compute technology to use.
            +   * 
            + * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType confidential_instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confidentialInstanceType. + */ + @java.lang.Override + public int getConfidentialInstanceTypeValue() { + return confidentialInstanceType_; + } + + /** + * + * + *
            +   * Optional. Defines the type of Confidential Compute technology to use.
            +   * 
            + * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType confidential_instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confidentialInstanceType. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType + getConfidentialInstanceType() { + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType result = + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType.forNumber( + confidentialInstanceType_); + return result == null + ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType + .UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -106,6 +365,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (enableConfidentialCompute_ != false) { output.writeBool(1, enableConfidentialCompute_); } + if (confidentialInstanceType_ + != com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType + .CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, confidentialInstanceType_); + } getUnknownFields().writeTo(output); } @@ -118,6 +383,12 @@ public int getSerializedSize() { if (enableConfidentialCompute_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableConfidentialCompute_); } + if (confidentialInstanceType_ + != com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType + .CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, confidentialInstanceType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -135,6 +406,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.dataproc.v1.ConfidentialInstanceConfig) obj; if (getEnableConfidentialCompute() != other.getEnableConfidentialCompute()) return false; + if (confidentialInstanceType_ != other.confidentialInstanceType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -148,6 +420,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_CONFIDENTIAL_COMPUTE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableConfidentialCompute()); + hash = (37 * hash) + CONFIDENTIAL_INSTANCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + confidentialInstanceType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -255,7 +529,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * *
                * Confidential Instance Config for clusters using [Confidential
            -   * VMs](https://cloud.google.com/compute/confidential-vm/docs)
            +   * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs)
                * 
            * * Protobuf type {@code google.cloud.dataproc.v1.ConfidentialInstanceConfig} @@ -291,6 +565,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; enableConfidentialCompute_ = false; + confidentialInstanceType_ = 0; return this; } @@ -330,6 +605,9 @@ private void buildPartial0(com.google.cloud.dataproc.v1.ConfidentialInstanceConf if (((from_bitField0_ & 0x00000001) != 0)) { result.enableConfidentialCompute_ = enableConfidentialCompute_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.confidentialInstanceType_ = confidentialInstanceType_; + } } @java.lang.Override @@ -348,6 +626,9 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.ConfidentialInstanceConfig if (other.getEnableConfidentialCompute() != false) { setEnableConfidentialCompute(other.getEnableConfidentialCompute()); } + if (other.confidentialInstanceType_ != 0) { + setConfidentialInstanceTypeValue(other.getConfidentialInstanceTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -380,6 +661,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 16: + { + confidentialInstanceType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -405,15 +692,20 @@ public Builder mergeFrom( * * *
            -     * Optional. Defines whether the instance should have confidential compute
            -     * enabled.
            +     * Optional. Deprecated: Use 'confidential_instance_type' instead.
            +     * Defines whether the instance should have confidential compute enabled.
                  * 
            * - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_confidential_compute = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute + * is deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 * @return The enableConfidentialCompute. */ @java.lang.Override + @java.lang.Deprecated public boolean getEnableConfidentialCompute() { return enableConfidentialCompute_; } @@ -422,15 +714,20 @@ public boolean getEnableConfidentialCompute() { * * *
            -     * Optional. Defines whether the instance should have confidential compute
            -     * enabled.
            +     * Optional. Deprecated: Use 'confidential_instance_type' instead.
            +     * Defines whether the instance should have confidential compute enabled.
                  * 
            * - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_confidential_compute = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute + * is deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 * @param value The enableConfidentialCompute to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setEnableConfidentialCompute(boolean value) { enableConfidentialCompute_ = value; @@ -443,14 +740,19 @@ public Builder setEnableConfidentialCompute(boolean value) { * * *
            -     * Optional. Defines whether the instance should have confidential compute
            -     * enabled.
            +     * Optional. Deprecated: Use 'confidential_instance_type' instead.
            +     * Defines whether the instance should have confidential compute enabled.
                  * 
            * - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_confidential_compute = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute + * is deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearEnableConfidentialCompute() { bitField0_ = (bitField0_ & ~0x00000001); enableConfidentialCompute_ = false; @@ -458,6 +760,117 @@ public Builder clearEnableConfidentialCompute() { return this; } + private int confidentialInstanceType_ = 0; + + /** + * + * + *
            +     * Optional. Defines the type of Confidential Compute technology to use.
            +     * 
            + * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType confidential_instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confidentialInstanceType. + */ + @java.lang.Override + public int getConfidentialInstanceTypeValue() { + return confidentialInstanceType_; + } + + /** + * + * + *
            +     * Optional. Defines the type of Confidential Compute technology to use.
            +     * 
            + * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType confidential_instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for confidentialInstanceType to set. + * @return This builder for chaining. + */ + public Builder setConfidentialInstanceTypeValue(int value) { + confidentialInstanceType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Defines the type of Confidential Compute technology to use.
            +     * 
            + * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType confidential_instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confidentialInstanceType. + */ + @java.lang.Override + public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType + getConfidentialInstanceType() { + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType result = + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType + .forNumber(confidentialInstanceType_); + return result == null + ? com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Optional. Defines the type of Confidential Compute technology to use.
            +     * 
            + * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType confidential_instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The confidentialInstanceType to set. + * @return This builder for chaining. + */ + public Builder setConfidentialInstanceType( + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + confidentialInstanceType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Defines the type of Confidential Compute technology to use.
            +     * 
            + * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType confidential_instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearConfidentialInstanceType() { + bitField0_ = (bitField0_ & ~0x00000002); + confidentialInstanceType_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.ConfidentialInstanceConfig) } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java index d50f9df843af..23b4550b525e 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/ConfidentialInstanceConfigOrBuilder.java @@ -30,13 +30,49 @@ public interface ConfidentialInstanceConfigOrBuilder * * *
            -   * Optional. Defines whether the instance should have confidential compute
            -   * enabled.
            +   * Optional. Deprecated: Use 'confidential_instance_type' instead.
            +   * Defines whether the instance should have confidential compute enabled.
                * 
            * - * bool enable_confidential_compute = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * bool enable_confidential_compute = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * * + * @deprecated google.cloud.dataproc.v1.ConfidentialInstanceConfig.enable_confidential_compute is + * deprecated. See google/cloud/dataproc/v1/clusters.proto;l=678 * @return The enableConfidentialCompute. */ + @java.lang.Deprecated boolean getEnableConfidentialCompute(); + + /** + * + * + *
            +   * Optional. Defines the type of Confidential Compute technology to use.
            +   * 
            + * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType confidential_instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for confidentialInstanceType. + */ + int getConfidentialInstanceTypeValue(); + + /** + * + * + *
            +   * Optional. Defines the type of Confidential Compute technology to use.
            +   * 
            + * + * + * .google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType confidential_instance_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The confidentialInstanceType. + */ + com.google.cloud.dataproc.v1.ConfidentialInstanceConfig.ConfidentialInstanceType + getConfidentialInstanceType(); } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java index b8b57d164b39..62d37a307b88 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfig.java @@ -74,6 +74,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 5: return internalGetMetadata(); + case 16: + return internalGetResourceManagerTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -1199,7 +1201,7 @@ public com.google.cloud.dataproc.v1.ShieldedInstanceConfig getShieldedInstanceCo * *
                * Optional. Confidential Instance Config for clusters using [Confidential
            -   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
            +   * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
                * 
            * * @@ -1218,7 +1220,7 @@ public boolean hasConfidentialInstanceConfig() { * *
                * Optional. Confidential Instance Config for clusters using [Confidential
            -   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
            +   * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
                * 
            * * @@ -1239,7 +1241,7 @@ public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getConfidentialIn * *
                * Optional. Confidential Instance Config for clusters using [Confidential
            -   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
            +   * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
                * 
            * * @@ -1254,6 +1256,137 @@ public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getConfidentialIn : confidentialInstanceConfig_; } + public static final int RESOURCE_MANAGER_TAGS_FIELD_NUMBER = 16; + + private static final class ResourceManagerTagsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.dataproc.v1.ClustersProto + .internal_static_google_cloud_dataproc_v1_GceClusterConfig_ResourceManagerTagsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField resourceManagerTags_; + + private com.google.protobuf.MapField + internalGetResourceManagerTags() { + if (resourceManagerTags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceManagerTagsDefaultEntryHolder.defaultEntry); + } + return resourceManagerTags_; + } + + public int getResourceManagerTagsCount() { + return internalGetResourceManagerTags().getMap().size(); + } + + /** + * + * + *
            +   * Optional. [Resource manager tags]
            +   * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
            +   * to add to all instances (see [Use secure tags]
            +   * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
            +   * 
            + * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsResourceManagerTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetResourceManagerTags().getMap().containsKey(key); + } + + /** Use {@link #getResourceManagerTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResourceManagerTags() { + return getResourceManagerTagsMap(); + } + + /** + * + * + *
            +   * Optional. [Resource manager tags]
            +   * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
            +   * to add to all instances (see [Use secure tags]
            +   * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
            +   * 
            + * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getResourceManagerTagsMap() { + return internalGetResourceManagerTags().getMap(); + } + + /** + * + * + *
            +   * Optional. [Resource manager tags]
            +   * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
            +   * to add to all instances (see [Use secure tags]
            +   * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
            +   * 
            + * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getResourceManagerTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourceManagerTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Optional. [Resource manager tags]
            +   * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
            +   * to add to all instances (see [Use secure tags]
            +   * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
            +   * 
            + * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getResourceManagerTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourceManagerTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1309,6 +1442,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(15, getConfidentialInstanceConfig()); } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetResourceManagerTags(), + ResourceManagerTagsDefaultEntryHolder.defaultEntry, + 16); getUnknownFields().writeTo(output); } @@ -1381,6 +1519,16 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 15, getConfidentialInstanceConfig()); } + for (java.util.Map.Entry entry : + internalGetResourceManagerTags().getMap().entrySet()) { + com.google.protobuf.MapEntry resourceManagerTags__ = + ResourceManagerTagsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, resourceManagerTags__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1426,6 +1574,8 @@ public boolean equals(final java.lang.Object obj) { if (!getConfidentialInstanceConfig().equals(other.getConfidentialInstanceConfig())) return false; } + if (!internalGetResourceManagerTags().equals(other.internalGetResourceManagerTags())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1479,6 +1629,10 @@ public int hashCode() { hash = (37 * hash) + CONFIDENTIAL_INSTANCE_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConfidentialInstanceConfig().hashCode(); } + if (!internalGetResourceManagerTags().getMap().isEmpty()) { + hash = (37 * hash) + RESOURCE_MANAGER_TAGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetResourceManagerTags().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1605,6 +1759,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl switch (number) { case 5: return internalGetMetadata(); + case 16: + return internalGetResourceManagerTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -1616,6 +1772,8 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFi switch (number) { case 5: return internalGetMutableMetadata(); + case 16: + return internalGetMutableResourceManagerTags(); default: throw new RuntimeException("Invalid map field number: " + number); } @@ -1683,6 +1841,7 @@ public Builder clear() { confidentialInstanceConfigBuilder_.dispose(); confidentialInstanceConfigBuilder_ = null; } + internalGetMutableResourceManagerTags().clear(); return this; } @@ -1779,6 +1938,10 @@ private void buildPartial0(com.google.cloud.dataproc.v1.GceClusterConfig result) : confidentialInstanceConfigBuilder_.build(); to_bitField0_ |= 0x00000010; } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.resourceManagerTags_ = internalGetResourceManagerTags(); + result.resourceManagerTags_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -1854,6 +2017,8 @@ public Builder mergeFrom(com.google.cloud.dataproc.v1.GceClusterConfig other) { if (other.hasConfidentialInstanceConfig()) { mergeConfidentialInstanceConfig(other.getConfidentialInstanceConfig()); } + internalGetMutableResourceManagerTags().mergeFrom(other.internalGetResourceManagerTags()); + bitField0_ |= 0x00002000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1972,6 +2137,19 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 122 + case 130: + { + com.google.protobuf.MapEntry + resourceManagerTags__ = + input.readMessage( + ResourceManagerTagsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableResourceManagerTags() + .getMutableMap() + .put(resourceManagerTags__.getKey(), resourceManagerTags__.getValue()); + bitField0_ |= 0x00002000; + break; + } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4231,7 +4409,7 @@ public Builder clearShieldedInstanceConfig() { * *
                  * Optional. Confidential Instance Config for clusters using [Confidential
            -     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
            +     * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
                  * 
            * * @@ -4249,7 +4427,7 @@ public boolean hasConfidentialInstanceConfig() { * *
                  * Optional. Confidential Instance Config for clusters using [Confidential
            -     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
            +     * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
                  * 
            * * @@ -4273,7 +4451,7 @@ public com.google.cloud.dataproc.v1.ConfidentialInstanceConfig getConfidentialIn * *
                  * Optional. Confidential Instance Config for clusters using [Confidential
            -     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
            +     * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
                  * 
            * * @@ -4300,7 +4478,7 @@ public Builder setConfidentialInstanceConfig( * *
                  * Optional. Confidential Instance Config for clusters using [Confidential
            -     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
            +     * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
                  * 
            * * @@ -4324,7 +4502,7 @@ public Builder setConfidentialInstanceConfig( * *
                  * Optional. Confidential Instance Config for clusters using [Confidential
            -     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
            +     * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
                  * 
            * * @@ -4357,7 +4535,7 @@ public Builder mergeConfidentialInstanceConfig( * *
                  * Optional. Confidential Instance Config for clusters using [Confidential
            -     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
            +     * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
                  * 
            * * @@ -4380,7 +4558,7 @@ public Builder clearConfidentialInstanceConfig() { * *
                  * Optional. Confidential Instance Config for clusters using [Confidential
            -     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
            +     * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
                  * 
            * * @@ -4399,7 +4577,7 @@ public Builder clearConfidentialInstanceConfig() { * *
                  * Optional. Confidential Instance Config for clusters using [Confidential
            -     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
            +     * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
                  * 
            * * @@ -4422,7 +4600,7 @@ public Builder clearConfidentialInstanceConfig() { * *
                  * Optional. Confidential Instance Config for clusters using [Confidential
            -     * VMs](https://cloud.google.com/compute/confidential-vm/docs).
            +     * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
                  * 
            * * @@ -4446,6 +4624,220 @@ public Builder clearConfidentialInstanceConfig() { return confidentialInstanceConfigBuilder_; } + private com.google.protobuf.MapField resourceManagerTags_; + + private com.google.protobuf.MapField + internalGetResourceManagerTags() { + if (resourceManagerTags_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourceManagerTagsDefaultEntryHolder.defaultEntry); + } + return resourceManagerTags_; + } + + private com.google.protobuf.MapField + internalGetMutableResourceManagerTags() { + if (resourceManagerTags_ == null) { + resourceManagerTags_ = + com.google.protobuf.MapField.newMapField( + ResourceManagerTagsDefaultEntryHolder.defaultEntry); + } + if (!resourceManagerTags_.isMutable()) { + resourceManagerTags_ = resourceManagerTags_.copy(); + } + bitField0_ |= 0x00002000; + onChanged(); + return resourceManagerTags_; + } + + public int getResourceManagerTagsCount() { + return internalGetResourceManagerTags().getMap().size(); + } + + /** + * + * + *
            +     * Optional. [Resource manager tags]
            +     * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
            +     * to add to all instances (see [Use secure tags]
            +     * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
            +     * 
            + * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsResourceManagerTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetResourceManagerTags().getMap().containsKey(key); + } + + /** Use {@link #getResourceManagerTagsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getResourceManagerTags() { + return getResourceManagerTagsMap(); + } + + /** + * + * + *
            +     * Optional. [Resource manager tags]
            +     * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
            +     * to add to all instances (see [Use secure tags]
            +     * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
            +     * 
            + * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getResourceManagerTagsMap() { + return internalGetResourceManagerTags().getMap(); + } + + /** + * + * + *
            +     * Optional. [Resource manager tags]
            +     * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
            +     * to add to all instances (see [Use secure tags]
            +     * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
            +     * 
            + * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getResourceManagerTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourceManagerTags().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +     * Optional. [Resource manager tags]
            +     * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
            +     * to add to all instances (see [Use secure tags]
            +     * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
            +     * 
            + * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getResourceManagerTagsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetResourceManagerTags().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearResourceManagerTags() { + bitField0_ = (bitField0_ & ~0x00002000); + internalGetMutableResourceManagerTags().getMutableMap().clear(); + return this; + } + + /** + * + * + *
            +     * Optional. [Resource manager tags]
            +     * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
            +     * to add to all instances (see [Use secure tags]
            +     * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
            +     * 
            + * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeResourceManagerTags(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableResourceManagerTags().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableResourceManagerTags() { + bitField0_ |= 0x00002000; + return internalGetMutableResourceManagerTags().getMutableMap(); + } + + /** + * + * + *
            +     * Optional. [Resource manager tags]
            +     * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
            +     * to add to all instances (see [Use secure tags]
            +     * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
            +     * 
            + * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putResourceManagerTags(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableResourceManagerTags().getMutableMap().put(key, value); + bitField0_ |= 0x00002000; + return this; + } + + /** + * + * + *
            +     * Optional. [Resource manager tags]
            +     * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
            +     * to add to all instances (see [Use secure tags]
            +     * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
            +     * 
            + * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllResourceManagerTags( + java.util.Map values) { + internalGetMutableResourceManagerTags().getMutableMap().putAll(values); + bitField0_ |= 0x00002000; + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataproc.v1.GceClusterConfig) } diff --git a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java index 1cacc3e006af..c85e93697bea 100644 --- a/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java +++ b/java-dataproc/proto-google-cloud-dataproc-v1/src/main/java/com/google/cloud/dataproc/v1/GceClusterConfigOrBuilder.java @@ -670,7 +670,7 @@ java.lang.String getMetadataOrDefault( * *
                * Optional. Confidential Instance Config for clusters using [Confidential
            -   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
            +   * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
                * 
            * * @@ -686,7 +686,7 @@ java.lang.String getMetadataOrDefault( * *
                * Optional. Confidential Instance Config for clusters using [Confidential
            -   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
            +   * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
                * 
            * * @@ -702,7 +702,7 @@ java.lang.String getMetadataOrDefault( * *
                * Optional. Confidential Instance Config for clusters using [Confidential
            -   * VMs](https://cloud.google.com/compute/confidential-vm/docs).
            +   * VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs).
                * 
            * * @@ -711,4 +711,92 @@ java.lang.String getMetadataOrDefault( */ com.google.cloud.dataproc.v1.ConfidentialInstanceConfigOrBuilder getConfidentialInstanceConfigOrBuilder(); + + /** + * + * + *
            +   * Optional. [Resource manager tags]
            +   * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
            +   * to add to all instances (see [Use secure tags]
            +   * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
            +   * 
            + * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getResourceManagerTagsCount(); + + /** + * + * + *
            +   * Optional. [Resource manager tags]
            +   * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
            +   * to add to all instances (see [Use secure tags]
            +   * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
            +   * 
            + * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsResourceManagerTags(java.lang.String key); + + /** Use {@link #getResourceManagerTagsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getResourceManagerTags(); + + /** + * + * + *
            +   * Optional. [Resource manager tags]
            +   * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
            +   * to add to all instances (see [Use secure tags]
            +   * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
            +   * 
            + * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getResourceManagerTagsMap(); + + /** + * + * + *
            +   * Optional. [Resource manager tags]
            +   * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
            +   * to add to all instances (see [Use secure tags]
            +   * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
            +   * 
            + * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getResourceManagerTagsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
            +   * Optional. [Resource manager tags]
            +   * (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing)
            +   * to add to all instances (see [Use secure tags]
            +   * (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)).
            +   * 
            + * + * + * map<string, string> resource_manager_tags = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getResourceManagerTagsOrThrow(java.lang.String key); } 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 f1bc59a225e6..984f3ebbdadc 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 @@ -608,9 +608,16 @@ message GceClusterConfig { [(google.api.field_behavior) = OPTIONAL]; // Optional. Confidential Instance Config for clusters using [Confidential - // VMs](https://cloud.google.com/compute/confidential-vm/docs). + // VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs). ConfidentialInstanceConfig confidential_instance_config = 15 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. [Resource manager tags] + // (https://cloud.google.com/resource-manager/docs/tags/tags-creating-and-managing) + // to add to all instances (see [Use secure tags] + // (https://cloud.google.com/dataproc/docs/guides/use-secure-tags)). + map resource_manager_tags = 16 + [(google.api.field_behavior) = OPTIONAL]; } // Node Group Affinity for clusters using sole-tenant node groups. @@ -645,11 +652,36 @@ message ShieldedInstanceConfig { } // Confidential Instance Config for clusters using [Confidential -// VMs](https://cloud.google.com/compute/confidential-vm/docs) +// VMs](https://cloud.google.com/confidential-computing/confidential-vm/docs) message ConfidentialInstanceConfig { - // Optional. Defines whether the instance should have confidential compute - // enabled. - bool enable_confidential_compute = 1 [(google.api.field_behavior) = OPTIONAL]; + // The type of Confidential Compute technology as per [Confidential Computing + // types](https://cloud.google.com/confidential-computing/confidential-vm/docs/create-a-confidential-vm-instance#create-instance). + // New values may be added in the future. + enum ConfidentialInstanceType { + // Confidential Instance Type is not specified. + CONFIDENTIAL_INSTANCE_TYPE_UNSPECIFIED = 0; + + // [AMD Secure Encrypted + // Virtualization](https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview#amd_sev) + SEV = 1; + + // [AMD Secure Encrypted Virtualization-Secure Nested + // Paging](https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview#amd_sev-snp) + SEV_SNP = 2; + + // [Intel Trust Domain + // Extensions](https://cloud.google.com/confidential-computing/confidential-vm/docs/confidential-vm-overview#intel_tdx) + TDX = 3; + } + + // Optional. Deprecated: Use 'confidential_instance_type' instead. + // Defines whether the instance should have confidential compute enabled. + bool enable_confidential_compute = 1 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Defines the type of Confidential Compute technology to use. + ConfidentialInstanceType confidential_instance_type = 2 + [(google.api.field_behavior) = OPTIONAL]; } // The config settings for Compute Engine resources in diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java index d237807d65cd..9fbffc7c1103 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/AgentsClient.java @@ -279,8 +279,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1714,9 +1713,8 @@ public final GenerativeSettings updateGenerativeSettings( * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1760,9 +1758,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1806,9 +1803,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java index 654777b5f0c4..f1fbdb7df2d0 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ChangelogsClient.java @@ -107,8 +107,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -524,9 +523,8 @@ public final UnaryCallable getChangelogCallable( * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -570,9 +568,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -617,9 +614,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java index 8c3598221f4e..4b64b46d9214 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/DeploymentsClient.java @@ -109,8 +109,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -548,9 +547,8 @@ public final UnaryCallable getDeploymentCallab * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -594,9 +592,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -641,9 +638,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java index 9a815f8a3321..620ad2b93891 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EntityTypesClient.java @@ -205,8 +205,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1209,9 +1208,8 @@ public final UnaryCallable importEntityType * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1255,9 +1253,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1302,9 +1299,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java index 23ccbee3a8e7..92ea117bc1ca 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/EnvironmentsClient.java @@ -253,8 +253,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1787,9 +1786,8 @@ public final UnaryCallable deployFlowCallable() { * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1833,9 +1831,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1880,9 +1877,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesClient.java index 8dab5dcbf8a5..3fed534b9dd9 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExamplesClient.java @@ -166,8 +166,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -916,9 +915,8 @@ public final UnaryCallable updateExampleCallable( * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -962,9 +960,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1008,9 +1005,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java index 66be0e03ba36..1ce4a085af46 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ExperimentsClient.java @@ -205,8 +205,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1235,9 +1234,8 @@ public final UnaryCallable stopExperimentCall * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1281,9 +1279,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1328,9 +1325,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java index 57899f3802a9..4f4b513f3f8c 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/FlowsClient.java @@ -266,8 +266,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1676,9 +1675,8 @@ public final UnaryCallable exportFlowCallable() { * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1722,9 +1720,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1768,9 +1765,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java index 794f8891e8bc..5105787d3d87 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/GeneratorsClient.java @@ -165,8 +165,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -913,9 +912,8 @@ public final UnaryCallable deleteGeneratorCallabl * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -959,9 +957,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1006,9 +1003,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java index c994f0a5f8ee..874593460980 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/IntentsClient.java @@ -207,8 +207,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1217,9 +1216,8 @@ public final UnaryCallable exportIntentsCallabl * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1263,9 +1261,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1309,9 +1306,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java index 53337d1ace27..bcd4b31f542e 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PagesClient.java @@ -168,8 +168,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -940,9 +939,8 @@ public final UnaryCallable deletePageCallable() { * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -986,9 +984,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1032,9 +1029,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksClient.java index a2a15b5f36f3..a8119025355b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/PlaybooksClient.java @@ -299,8 +299,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1919,9 +1918,8 @@ public final UnaryCallable deletePlaybookVe * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1965,9 +1963,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2011,9 +2008,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java index 7ad44b3aebc0..feae18a6d3f3 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SecuritySettingsServiceClient.java @@ -169,8 +169,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -977,9 +976,8 @@ public final void deleteSecuritySettings(DeleteSecuritySettingsRequest request) * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1024,9 +1022,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1072,9 +1069,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java index 0e571ecf81e7..7cf37ee8183c 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionEntityTypesClient.java @@ -169,8 +169,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1009,9 +1008,8 @@ public final void deleteSessionEntityType(DeleteSessionEntityTypeRequest request * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1055,9 +1053,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1102,9 +1099,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java index 850c8e7ed79a..bbc5804c39ff 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/SessionsClient.java @@ -160,8 +160,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -666,9 +665,8 @@ public final AnswerFeedback submitAnswerFeedback(SubmitAnswerFeedbackRequest req * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -712,9 +710,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -758,9 +755,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java index 43dd27191f69..ff2d0dba9e00 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TestCasesClient.java @@ -292,8 +292,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1888,9 +1887,8 @@ public final UnaryCallable getTestCase * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1934,9 +1932,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1980,9 +1977,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java index f86af4ad0fea..ed0e4c39f789 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/ToolsClient.java @@ -262,8 +262,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1636,9 +1635,8 @@ public final RestoreToolVersionResponse restoreToolVersion(RestoreToolVersionReq * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1682,9 +1680,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1728,9 +1725,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java index 375754d68145..fc578661736b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/TransitionRouteGroupsClient.java @@ -175,8 +175,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1163,9 +1162,8 @@ public final void deleteTransitionRouteGroup(DeleteTransitionRouteGroupRequest r * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1210,9 +1208,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1258,9 +1255,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java index 00958e9104e8..3ada2dcfa4a7 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/VersionsClient.java @@ -216,8 +216,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1392,9 +1391,8 @@ public final CompareVersionsResponse compareVersions(CompareVersionsRequest requ * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1438,9 +1436,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1484,9 +1481,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java index 95294db20806..bc126836dafe 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3/WebhooksClient.java @@ -165,8 +165,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -893,9 +892,8 @@ public final UnaryCallable deleteWebhookCallable() * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -939,9 +937,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -985,9 +982,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java index d3aa9430db7d..75e1de3c5e0a 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AgentsClient.java @@ -279,8 +279,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1715,9 +1714,8 @@ public final GenerativeSettings updateGenerativeSettings( * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1761,9 +1759,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1807,9 +1804,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java index 5da2bf417658..5e7928cbe348 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ChangelogsClient.java @@ -109,8 +109,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -527,9 +526,8 @@ public final UnaryCallable getChangelogCallable( * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -573,9 +571,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -620,9 +617,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryClient.java index 0354ba305357..e843cb6ce573 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ConversationHistoryClient.java @@ -130,8 +130,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -683,9 +682,8 @@ public final UnaryCallable deleteConversationC * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -729,9 +727,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -776,9 +773,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java index 516534f6b4e4..700448b4b1cd 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DeploymentsClient.java @@ -110,8 +110,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -550,9 +549,8 @@ public final UnaryCallable getDeploymentCallab * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -596,9 +594,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -643,9 +640,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java index 0f5b43633956..a08a31ecd8dd 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EntityTypesClient.java @@ -204,8 +204,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1197,9 +1196,8 @@ public final UnaryCallable importEntityType * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1243,9 +1241,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1290,9 +1287,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java index 5230585990f6..7d85549ead37 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/EnvironmentsClient.java @@ -253,8 +253,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1793,9 +1792,8 @@ public final UnaryCallable deployFlowCallable() { * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1839,9 +1837,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1886,9 +1883,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesClient.java index 5fc01b9a17d0..89494c0b834b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExamplesClient.java @@ -167,8 +167,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -918,9 +917,8 @@ public final UnaryCallable updateExampleCallable( * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -964,9 +962,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1010,9 +1007,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java index dcf41b27540f..1134e1eae4d8 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ExperimentsClient.java @@ -206,8 +206,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1237,9 +1236,8 @@ public final UnaryCallable stopExperimentCall * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1283,9 +1281,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1330,9 +1327,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java index fa4c53d7788c..c7209edb21a2 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/FlowsClient.java @@ -266,8 +266,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1677,9 +1676,8 @@ public final UnaryCallable exportFlowCallable() { * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1723,9 +1721,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1769,9 +1766,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java index f4ee0f01d038..2f31eb6e0a28 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/GeneratorsClient.java @@ -167,8 +167,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -916,9 +915,8 @@ public final UnaryCallable deleteGeneratorCallabl * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -962,9 +960,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1009,9 +1006,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java index 3d43cf54872f..3440802b59fc 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/IntentsClient.java @@ -207,8 +207,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1224,9 +1223,8 @@ public final UnaryCallable exportIntentsCallabl * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1270,9 +1268,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1316,9 +1313,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java index 52e68125e739..397b606d13c2 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PagesClient.java @@ -166,8 +166,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -906,9 +905,8 @@ public final UnaryCallable deletePageCallable() { * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -952,9 +950,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -998,9 +995,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClient.java index 4dc7c4e875d1..bce643339ef5 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/PlaybooksClient.java @@ -300,8 +300,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1921,9 +1920,8 @@ public final UnaryCallable deletePlaybookVe * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1967,9 +1965,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2013,9 +2010,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java index 1ac82caced29..8a5f319f3c8f 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SecuritySettingsServiceClient.java @@ -170,8 +170,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -983,9 +982,8 @@ public final void deleteSecuritySettings(DeleteSecuritySettingsRequest request) * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1030,9 +1028,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1078,9 +1075,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java index 901612ffb983..c6741957c499 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionEntityTypesClient.java @@ -170,8 +170,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1011,9 +1010,8 @@ public final void deleteSessionEntityType(DeleteSessionEntityTypeRequest request * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1057,9 +1055,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1104,9 +1101,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java index 21ce784cebd3..185f805805df 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/SessionsClient.java @@ -161,8 +161,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -668,9 +667,8 @@ public final AnswerFeedback submitAnswerFeedback(SubmitAnswerFeedbackRequest req * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -714,9 +712,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -760,9 +757,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java index 83964b72542f..08ce55ee3056 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TestCasesClient.java @@ -293,8 +293,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1896,9 +1895,8 @@ public final UnaryCallable getTestCase * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1942,9 +1940,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1988,9 +1985,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClient.java index 40d7f4d614dd..984941792be5 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/ToolsClient.java @@ -282,8 +282,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1770,9 +1769,8 @@ public final RestoreToolVersionResponse restoreToolVersion(RestoreToolVersionReq * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1816,9 +1814,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1862,9 +1859,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java index 0edee41fedd3..7ee4df84f68b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/TransitionRouteGroupsClient.java @@ -176,8 +176,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1168,9 +1167,8 @@ public final void deleteTransitionRouteGroup(DeleteTransitionRouteGroupRequest r * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1215,9 +1213,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1263,9 +1260,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java index 9e27db6e267e..71e53f98f23b 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/VersionsClient.java @@ -216,8 +216,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1400,9 +1399,8 @@ public final CompareVersionsResponse compareVersions(CompareVersionsRequest requ * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1446,9 +1444,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1492,9 +1489,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java index 4ae643a5d6eb..21aecb0fd513 100644 --- a/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java +++ b/java-dialogflow-cx/google-cloud-dialogflow-cx/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/WebhooksClient.java @@ -166,8 +166,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -895,9 +894,8 @@ public final UnaryCallable deleteWebhookCallable() * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -941,9 +939,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -987,9 +984,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AudioConfigProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AudioConfigProto.java index 99ec78961e49..4496f895b473 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AudioConfigProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/AudioConfigProto.java @@ -135,20 +135,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\035SSML_VOICE_GENDER_UNSPECIFIED\020\000\022\032\n\026SSM" + "L_VOICE_GENDER_MALE\020\001\022\034\n\030SSML_VOICE_GEND" + "ER_FEMALE\020\002\022\035\n\031SSML_VOICE_GENDER_NEUTRAL" - + "\020\003*\214\002\n\023OutputAudioEncoding\022%\n!OUTPUT_AUD" + + "\020\003*\220\002\n\023OutputAudioEncoding\022%\n!OUTPUT_AUD" + "IO_ENCODING_UNSPECIFIED\020\000\022#\n\037OUTPUT_AUDI" - + "O_ENCODING_LINEAR_16\020\001\022\035\n\031OUTPUT_AUDIO_E" - + "NCODING_MP3\020\002\022%\n!OUTPUT_AUDIO_ENCODING_M" - + "P3_64_KBPS\020\004\022\"\n\036OUTPUT_AUDIO_ENCODING_OG" - + "G_OPUS\020\003\022\037\n\033OUTPUT_AUDIO_ENCODING_MULAW\020" - + "\005\022\036\n\032OUTPUT_AUDIO_ENCODING_ALAW\020\006B\213\002\n!co" - + "m.google.cloud.dialogflow.cx.v3B\020AudioCo" - + "nfigProtoP\001Z1cloud.google.com/go/dialogf" - + "low/cx/apiv3/cxpb;cxpb\242\002\002DF\252\002\035Google.Clo" - + "ud.Dialogflow.Cx.V3\352\002!Google::Cloud::Dia" - + "logflow::CX::V3\352AU\n\033automl.googleapis.co" - + "m/Model\0226projects/{project}/locations/{l" - + "ocation}/models/{model}b\006proto3" + + "O_ENCODING_LINEAR_16\020\001\022!\n\031OUTPUT_AUDIO_E" + + "NCODING_MP3\020\002\032\002\010\001\022%\n!OUTPUT_AUDIO_ENCODI" + + "NG_MP3_64_KBPS\020\004\022\"\n\036OUTPUT_AUDIO_ENCODIN" + + "G_OGG_OPUS\020\003\022\037\n\033OUTPUT_AUDIO_ENCODING_MU" + + "LAW\020\005\022\036\n\032OUTPUT_AUDIO_ENCODING_ALAW\020\006B\213\002" + + "\n!com.google.cloud.dialogflow.cx.v3B\020Aud" + + "ioConfigProtoP\001Z1cloud.google.com/go/dia" + + "logflow/cx/apiv3/cxpb;cxpb\242\002\002DF\252\002\035Google" + + ".Cloud.Dialogflow.Cx.V3\352\002!Google::Cloud:" + + ":Dialogflow::CX::V3\352AU\n\033automl.googleapi" + + "s.com/Model\0226projects/{project}/location" + + "s/{location}/models/{model}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponseView.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponseView.java index fd0300b81376..1af76bae74de 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponseView.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/DetectIntentResponseView.java @@ -59,6 +59,11 @@ public enum DetectIntentResponseView implements com.google.protobuf.ProtocolMess * Basic response view omits the following fields: * - * [QueryResult.diagnostic_info][google.cloud.dialogflow.cx.v3.QueryResult.diagnostic_info] + * - [QueryResult.generative_info][] + * - + * [QueryResult.trace_blocks][google.cloud.dialogflow.cx.v3.QueryResult.trace_blocks] + * - + * [QueryResult.data_store_connection_signals][google.cloud.dialogflow.cx.v3.QueryResult.data_store_connection_signals] * * * DETECT_INTENT_RESPONSE_VIEW_BASIC = 2; @@ -118,6 +123,11 @@ public enum DetectIntentResponseView implements com.google.protobuf.ProtocolMess * Basic response view omits the following fields: * - * [QueryResult.diagnostic_info][google.cloud.dialogflow.cx.v3.QueryResult.diagnostic_info] + * - [QueryResult.generative_info][] + * - + * [QueryResult.trace_blocks][google.cloud.dialogflow.cx.v3.QueryResult.trace_blocks] + * - + * [QueryResult.data_store_connection_signals][google.cloud.dialogflow.cx.v3.QueryResult.data_store_connection_signals] * * * DETECT_INTENT_RESPONSE_VIEW_BASIC = 2; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/OutputAudioEncoding.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/OutputAudioEncoding.java index 51b027002c2e..0ee0799935c1 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/OutputAudioEncoding.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/OutputAudioEncoding.java @@ -57,11 +57,12 @@ public enum OutputAudioEncoding implements com.google.protobuf.ProtocolMessageEn * * *

            -   * MP3 audio at 32kbps.
            +   * MP3 audio at 64kbps.
                * 
            * - * OUTPUT_AUDIO_ENCODING_MP3 = 2; + * OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; */ + @java.lang.Deprecated OUTPUT_AUDIO_ENCODING_MP3(2), /** * @@ -148,12 +149,12 @@ public enum OutputAudioEncoding implements com.google.protobuf.ProtocolMessageEn * * *
            -   * MP3 audio at 32kbps.
            +   * MP3 audio at 64kbps.
                * 
            * - * OUTPUT_AUDIO_ENCODING_MP3 = 2; + * OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; */ - public static final int OUTPUT_AUDIO_ENCODING_MP3_VALUE = 2; + @java.lang.Deprecated public static final int OUTPUT_AUDIO_ENCODING_MP3_VALUE = 2; /** * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/audio_config.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/audio_config.proto index c29a088c3040..8c17ea3b261a 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/audio_config.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/audio_config.proto @@ -314,8 +314,8 @@ enum OutputAudioEncoding { // LINT: LEGACY_NAMES OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1; - // MP3 audio at 32kbps. - OUTPUT_AUDIO_ENCODING_MP3 = 2; + // MP3 audio at 64kbps. + OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; // MP3 audio at 64kbps. // LINT: LEGACY_NAMES diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto index bf7a6f42f352..498d06d63a2c 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto @@ -1406,6 +1406,11 @@ enum DetectIntentResponseView { // Basic response view omits the following fields: // - // [QueryResult.diagnostic_info][google.cloud.dialogflow.cx.v3.QueryResult.diagnostic_info] + // - [QueryResult.generative_info][] + // - + // [QueryResult.trace_blocks][google.cloud.dialogflow.cx.v3.QueryResult.trace_blocks] + // - + // [QueryResult.data_store_connection_signals][google.cloud.dialogflow.cx.v3.QueryResult.data_store_connection_signals] DETECT_INTENT_RESPONSE_VIEW_BASIC = 2; // Default response view omits the following fields: diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AudioConfigProto.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AudioConfigProto.java index b0a7db5ef0fa..7a37ea9333e2 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AudioConfigProto.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/AudioConfigProto.java @@ -136,21 +136,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "mlVoiceGender\022!\n\035SSML_VOICE_GENDER_UNSPE" + "CIFIED\020\000\022\032\n\026SSML_VOICE_GENDER_MALE\020\001\022\034\n\030" + "SSML_VOICE_GENDER_FEMALE\020\002\022\035\n\031SSML_VOICE" - + "_GENDER_NEUTRAL\020\003*\214\002\n\023OutputAudioEncodin" + + "_GENDER_NEUTRAL\020\003*\220\002\n\023OutputAudioEncodin" + "g\022%\n!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\020\000" - + "\022#\n\037OUTPUT_AUDIO_ENCODING_LINEAR_16\020\001\022\035\n" - + "\031OUTPUT_AUDIO_ENCODING_MP3\020\002\022%\n!OUTPUT_A" - + "UDIO_ENCODING_MP3_64_KBPS\020\004\022\"\n\036OUTPUT_AU" - + "DIO_ENCODING_OGG_OPUS\020\003\022\037\n\033OUTPUT_AUDIO_" - + "ENCODING_MULAW\020\005\022\036\n\032OUTPUT_AUDIO_ENCODIN" - + "G_ALAW\020\006B\237\002\n&com.google.cloud.dialogflow" - + ".cx.v3beta1B\020AudioConfigProtoP\001Z6cloud.g" - + "oogle.com/go/dialogflow/cx/apiv3beta1/cx" - + "pb;cxpb\242\002\002DF\252\002\"Google.Cloud.Dialogflow.C" - + "x.V3Beta1\352\002&Google::Cloud::Dialogflow::C" - + "X::V3beta1\352AU\n\033automl.googleapis.com/Mod" - + "el\0226projects/{project}/locations/{locati" - + "on}/models/{model}b\006proto3" + + "\022#\n\037OUTPUT_AUDIO_ENCODING_LINEAR_16\020\001\022!\n" + + "\031OUTPUT_AUDIO_ENCODING_MP3\020\002\032\002\010\001\022%\n!OUTP" + + "UT_AUDIO_ENCODING_MP3_64_KBPS\020\004\022\"\n\036OUTPU" + + "T_AUDIO_ENCODING_OGG_OPUS\020\003\022\037\n\033OUTPUT_AU" + + "DIO_ENCODING_MULAW\020\005\022\036\n\032OUTPUT_AUDIO_ENC" + + "ODING_ALAW\020\006B\237\002\n&com.google.cloud.dialog" + + "flow.cx.v3beta1B\020AudioConfigProtoP\001Z6clo" + + "ud.google.com/go/dialogflow/cx/apiv3beta" + + "1/cxpb;cxpb\242\002\002DF\252\002\"Google.Cloud.Dialogfl" + + "ow.Cx.V3Beta1\352\002&Google::Cloud::Dialogflo" + + "w::CX::V3beta1\352AU\n\033automl.googleapis.com" + + "/Model\0226projects/{project}/locations/{lo" + + "cation}/models/{model}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponseView.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponseView.java index b2611ec562e9..d86aba442b39 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponseView.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/DetectIntentResponseView.java @@ -61,6 +61,10 @@ public enum DetectIntentResponseView implements com.google.protobuf.ProtocolMess * [QueryResult.diagnostic_info][google.cloud.dialogflow.cx.v3beta1.QueryResult.diagnostic_info] * - * [QueryResult.generative_info][google.cloud.dialogflow.cx.v3beta1.QueryResult.generative_info] + * - + * [QueryResult.trace_blocks][google.cloud.dialogflow.cx.v3beta1.QueryResult.trace_blocks] + * - + * [QueryResult.data_store_connection_signals][google.cloud.dialogflow.cx.v3beta1.QueryResult.data_store_connection_signals] * * * DETECT_INTENT_RESPONSE_VIEW_BASIC = 2; @@ -122,6 +126,10 @@ public enum DetectIntentResponseView implements com.google.protobuf.ProtocolMess * [QueryResult.diagnostic_info][google.cloud.dialogflow.cx.v3beta1.QueryResult.diagnostic_info] * - * [QueryResult.generative_info][google.cloud.dialogflow.cx.v3beta1.QueryResult.generative_info] + * - + * [QueryResult.trace_blocks][google.cloud.dialogflow.cx.v3beta1.QueryResult.trace_blocks] + * - + * [QueryResult.data_store_connection_signals][google.cloud.dialogflow.cx.v3beta1.QueryResult.data_store_connection_signals] * * * DETECT_INTENT_RESPONSE_VIEW_BASIC = 2; diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/OutputAudioEncoding.java b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/OutputAudioEncoding.java index 894e4222acf3..301ddd72d535 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/OutputAudioEncoding.java +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/java/com/google/cloud/dialogflow/cx/v3beta1/OutputAudioEncoding.java @@ -57,11 +57,12 @@ public enum OutputAudioEncoding implements com.google.protobuf.ProtocolMessageEn * * *
            -   * MP3 audio at 32kbps.
            +   * MP3 audio at 64kbps.
                * 
            * - * OUTPUT_AUDIO_ENCODING_MP3 = 2; + * OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; */ + @java.lang.Deprecated OUTPUT_AUDIO_ENCODING_MP3(2), /** * @@ -148,12 +149,12 @@ public enum OutputAudioEncoding implements com.google.protobuf.ProtocolMessageEn * * *
            -   * MP3 audio at 32kbps.
            +   * MP3 audio at 64kbps.
                * 
            * - * OUTPUT_AUDIO_ENCODING_MP3 = 2; + * OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; */ - public static final int OUTPUT_AUDIO_ENCODING_MP3_VALUE = 2; + @java.lang.Deprecated public static final int OUTPUT_AUDIO_ENCODING_MP3_VALUE = 2; /** * diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/audio_config.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/audio_config.proto index 7a93fb1d6653..9ae05c99f8f3 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/audio_config.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/audio_config.proto @@ -314,8 +314,8 @@ enum OutputAudioEncoding { // LINT: LEGACY_NAMES OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1; - // MP3 audio at 32kbps. - OUTPUT_AUDIO_ENCODING_MP3 = 2; + // MP3 audio at 64kbps. + OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; // MP3 audio at 64kbps. // LINT: LEGACY_NAMES diff --git a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto index d0d5ec02200c..e87990b0f12f 100644 --- a/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto +++ b/java-dialogflow-cx/proto-google-cloud-dialogflow-cx-v3beta1/src/main/proto/google/cloud/dialogflow/cx/v3beta1/session.proto @@ -1443,6 +1443,10 @@ enum DetectIntentResponseView { // [QueryResult.diagnostic_info][google.cloud.dialogflow.cx.v3beta1.QueryResult.diagnostic_info] // - // [QueryResult.generative_info][google.cloud.dialogflow.cx.v3beta1.QueryResult.generative_info] + // - + // [QueryResult.trace_blocks][google.cloud.dialogflow.cx.v3beta1.QueryResult.trace_blocks] + // - + // [QueryResult.data_store_connection_signals][google.cloud.dialogflow.cx.v3beta1.QueryResult.data_store_connection_signals] DETECT_INTENT_RESPONSE_VIEW_BASIC = 2; // Default response view omits the following fields: diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java index 1865fe2a86f3..fff95f531bc1 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AgentsClient.java @@ -257,8 +257,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1812,9 +1811,8 @@ public final ValidationResult getValidationResult(GetValidationResultRequest req * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1858,9 +1856,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1904,9 +1901,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java index 529cb3afe1a4..a8e230a22daf 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/AnswerRecordsClient.java @@ -110,8 +110,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -541,9 +540,8 @@ public final UnaryCallable updateAnswer * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -587,9 +585,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -634,9 +631,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java index 0c3b0c5b53f4..efb9926790f7 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ContextsClient.java @@ -186,8 +186,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1078,9 +1077,8 @@ public final UnaryCallable deleteAllContextsCal * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1124,9 +1122,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1170,9 +1167,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java index 334c3ed866c7..a2a3946785d3 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationDatasetsClient.java @@ -179,8 +179,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1164,9 +1163,8 @@ public final ListConversationDatasetsPagedResponse listConversationDatasets( * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1211,9 +1209,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1259,9 +1256,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java index 3cce465d6dfe..493a30746911 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelsClient.java @@ -245,8 +245,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1590,9 +1589,8 @@ public final ListConversationModelEvaluationsPagedResponse listConversationModel * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1636,9 +1634,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1683,9 +1680,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java index 1b004e718765..6b120b235c23 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfilesClient.java @@ -224,8 +224,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1664,9 +1663,8 @@ public final void deleteConversationProfile(DeleteConversationProfileRequest req * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1711,9 +1709,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1759,9 +1756,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java index 4e9f777a93c3..cb02762be056 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ConversationsClient.java @@ -273,8 +273,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1954,9 +1953,8 @@ public final GenerateSuggestionsResponse generateSuggestions(GenerateSuggestions * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2000,9 +1998,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2047,9 +2044,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java index e82c366ed258..8f2e0ee35787 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/DocumentsClient.java @@ -239,8 +239,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1752,9 +1751,8 @@ public final UnaryCallable exportDocumentCalla * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1798,9 +1796,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1844,9 +1841,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java index 076cadadc67f..ee0ba9093770 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EncryptionSpecServiceClient.java @@ -113,8 +113,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -536,9 +535,8 @@ public final UnaryCallable getEncrypti * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -583,9 +581,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -631,9 +628,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java index ac34fe16dc17..2d70add01ac6 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EntityTypesClient.java @@ -296,8 +296,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -2710,9 +2709,8 @@ public final UnaryCallable batchDeleteEnt * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2756,9 +2754,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2803,9 +2800,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java index b2ff195f4a8a..03c70f71af32 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/EnvironmentsClient.java @@ -165,8 +165,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -834,9 +833,8 @@ public final GetEnvironmentHistoryPagedResponse getEnvironmentHistory( * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -880,9 +878,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -927,9 +924,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java index 2fea4c43a379..85a5074fd732 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/FulfillmentsClient.java @@ -106,8 +106,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -445,9 +444,8 @@ public final UnaryCallable updateFulfillm * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -491,9 +489,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -538,9 +535,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java index baa94027c703..c5462b6fe0f7 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorEvaluationsClient.java @@ -155,8 +155,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -937,9 +936,8 @@ public final void deleteGeneratorEvaluation(DeleteGeneratorEvaluationRequest req * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -984,9 +982,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1032,9 +1029,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java index 1006649c04aa..629bded86d05 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/GeneratorsClient.java @@ -170,8 +170,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -927,9 +926,8 @@ public final UnaryCallable updateGeneratorCal * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -973,9 +971,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1020,9 +1017,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java index 91469ac7b216..e87d5f093d28 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/IntentsClient.java @@ -229,8 +229,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1858,9 +1857,8 @@ public final UnaryCallable batchDeleteInte * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1904,9 +1902,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1950,9 +1947,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java index dcad96966805..5ba85e67b312 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeBasesClient.java @@ -169,8 +169,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1001,9 +1000,8 @@ public final KnowledgeBase updateKnowledgeBase(UpdateKnowledgeBaseRequest reques * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1047,9 +1045,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1094,9 +1091,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java index 1c4f2e224e28..89b31fc595bd 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ParticipantsClient.java @@ -255,8 +255,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1788,9 +1787,8 @@ public final SuggestKnowledgeAssistResponse suggestKnowledgeAssist( * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1834,9 +1832,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1881,9 +1878,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java index 1d242260d5f5..e49c9543aa02 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionEntityTypesClient.java @@ -176,8 +176,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1090,9 +1089,8 @@ public final void deleteSessionEntityType(DeleteSessionEntityTypeRequest request * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1136,9 +1134,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1183,9 +1180,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java index f959485f41c0..a837a392626c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SessionsClient.java @@ -106,8 +106,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -494,9 +493,8 @@ public final UnaryCallable detectInte * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -540,9 +538,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -586,9 +583,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java index 655e68435be5..76259569f728 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/SipTrunksClient.java @@ -166,8 +166,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -892,9 +891,8 @@ public final UnaryCallable updateSipTrunkCallab * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -938,9 +936,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -984,9 +981,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java index 16d8192d8710..b8525c442a8d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/ToolsClient.java @@ -168,8 +168,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -909,9 +908,8 @@ public final UnaryCallable updateToolCallable() { * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -955,9 +953,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1001,9 +998,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java index eac319a2bee0..f5fb8141d8dd 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2/VersionsClient.java @@ -167,8 +167,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -924,9 +923,8 @@ public final UnaryCallable deleteVersionCallable() * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -970,9 +968,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1016,9 +1013,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java index a1d9016b8c9c..53d497339e11 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentsClient.java @@ -256,8 +256,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1812,9 +1811,8 @@ public final ValidationResult getValidationResult(GetValidationResultRequest req * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1858,9 +1856,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1904,9 +1901,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java index e2053860f98f..0cad54abdc68 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/AnswerRecordsClient.java @@ -125,8 +125,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -614,9 +613,8 @@ public final UnaryCallable updateAnswer * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -660,9 +658,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -707,9 +704,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java index 83942101a190..bcbf00c7d973 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ContextsClient.java @@ -188,8 +188,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1157,9 +1156,8 @@ public final UnaryCallable deleteAllContextsCal * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1203,9 +1201,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1249,9 +1246,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java index 4f43c5d878fc..a53df4cb19fd 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClient.java @@ -224,8 +224,7 @@ *

            ListLocations

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

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

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

            *

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

            @@ -1649,9 +1648,8 @@ public final void deleteConversationProfile(DeleteConversationProfileRequest req * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1696,9 +1694,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1744,9 +1741,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java index b3ba35035005..d925a04ce2e5 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationsClient.java @@ -290,8 +290,7 @@ *

            ListLocations

            Lists information about the supported locations for this service. - *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

            *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -2114,9 +2113,8 @@ public final GenerateSuggestionsResponse generateSuggestions(GenerateSuggestions * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2160,9 +2158,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2207,9 +2204,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java index 1cd765c617fe..42a63a591ebd 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/DocumentsClient.java @@ -228,8 +228,7 @@ *

            ListLocations

            Lists information about the supported locations for this service. - *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

            *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -1732,9 +1731,8 @@ public final UnaryCallable reloadDocumentCalla * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1778,9 +1776,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1824,9 +1821,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java index 9132a17ebc25..7d94d8ba0b12 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EncryptionSpecServiceClient.java @@ -113,8 +113,7 @@ *

            ListLocations

            Lists information about the supported locations for this service. - *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

            *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -537,9 +536,8 @@ public final UnaryCallable getEncrypti * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -584,9 +582,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -632,9 +629,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java index c2baf76d7358..0d20bb1576c3 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EntityTypesClient.java @@ -299,8 +299,7 @@ *

            ListLocations

            Lists information about the supported locations for this service. - *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

            *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -2799,9 +2798,8 @@ public final UnaryCallable batchDeleteEnt * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2845,9 +2843,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2892,9 +2889,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java index 64a7b01939e3..c5d35af91d63 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/EnvironmentsClient.java @@ -167,8 +167,7 @@ *

            ListLocations

            Lists information about the supported locations for this service. - *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

            *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -837,9 +836,8 @@ public final GetEnvironmentHistoryPagedResponse getEnvironmentHistory( * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -883,9 +881,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -930,9 +927,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java index 7f079a0bd964..3e1fa83d2bc2 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/FulfillmentsClient.java @@ -108,8 +108,7 @@ *

            ListLocations

            Lists information about the supported locations for this service. - *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

            *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -450,9 +449,8 @@ public final UnaryCallable updateFulfillm * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -496,9 +494,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -543,9 +540,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java index bae33359a342..b8edc1bd752e 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorEvaluationsClient.java @@ -155,8 +155,7 @@ *

            ListLocations

            Lists information about the supported locations for this service. - *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

            *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -938,9 +937,8 @@ public final void deleteGeneratorEvaluation(DeleteGeneratorEvaluationRequest req * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -985,9 +983,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1033,9 +1030,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java index 53de3a85af25..2dbe7b6e8c0d 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/GeneratorsClient.java @@ -171,8 +171,7 @@ *

            ListLocations

            Lists information about the supported locations for this service. - *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

            *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -929,9 +928,8 @@ public final UnaryCallable updateGeneratorCal * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -975,9 +973,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1022,9 +1019,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java index a8fda931343c..57715f91f14e 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/IntentsClient.java @@ -231,8 +231,7 @@ *

            ListLocations

            Lists information about the supported locations for this service. - *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

            *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -1946,9 +1945,8 @@ public final UnaryCallable batchDeleteInte * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1992,9 +1990,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2038,9 +2035,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java index 8305f3471e01..ba9dfbbd4959 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeBasesClient.java @@ -176,8 +176,7 @@ *

            ListLocations

            Lists information about the supported locations for this service. - *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

            *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -1105,9 +1104,8 @@ public final KnowledgeBase updateKnowledgeBase(UpdateKnowledgeBaseRequest reques * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1151,9 +1149,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1198,9 +1195,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java index 244aaa9456ed..6f75d04c1e4c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClient.java @@ -301,8 +301,7 @@ *

            ListLocations

            Lists information about the supported locations for this service. - *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

            *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -2132,9 +2131,8 @@ public final CompileSuggestionResponse compileSuggestion(CompileSuggestionReques * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2178,9 +2176,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -2225,9 +2222,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java index 0bb78e93ec1e..68ec09d61972 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/PhoneNumbersClient.java @@ -149,8 +149,7 @@ *

            ListLocations

            Lists information about the supported locations for this service. - *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

            *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -858,9 +857,8 @@ public final PhoneNumber undeletePhoneNumber(UndeletePhoneNumberRequest request) * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -904,9 +902,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -951,9 +948,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java index f186ab41e280..d3504e20d18e 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionEntityTypesClient.java @@ -177,8 +177,7 @@ *

            ListLocations

            Lists information about the supported locations for this service. - *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

            *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -1136,9 +1135,8 @@ public final void deleteSessionEntityType(DeleteSessionEntityTypeRequest request * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1182,9 +1180,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1229,9 +1226,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java index c9bda589f8de..12cc883c309f 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SessionsClient.java @@ -107,8 +107,7 @@ *

            ListLocations

            Lists information about the supported locations for this service. - *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

            *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -504,9 +503,8 @@ public final UnaryCallable detectInte * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -550,9 +548,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -596,9 +593,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java index b76d81766279..4a1e627db526 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/SipTrunksClient.java @@ -167,8 +167,7 @@ *

            ListLocations

            Lists information about the supported locations for this service. - *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

            *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -894,9 +893,8 @@ public final UnaryCallable updateSipTrunkCallab * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -940,9 +938,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -986,9 +983,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java index b97defe0a0be..c2aa759d225b 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/ToolsClient.java @@ -169,8 +169,7 @@ *

            ListLocations

            Lists information about the supported locations for this service. - *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

            *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -911,9 +910,8 @@ public final UnaryCallable updateToolCallable() { * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -957,9 +955,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1003,9 +1000,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java index b49737579b00..e261e584a99c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java +++ b/java-dialogflow/google-cloud-dialogflow/src/main/java/com/google/cloud/dialogflow/v2beta1/VersionsClient.java @@ -168,8 +168,7 @@ *

            ListLocations

            Lists information about the supported locations for this service. - *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: - *

            * **Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

            *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            @@ -921,9 +920,8 @@ public final UnaryCallable deleteVersionCallable() * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -967,9 +965,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled @@ -1013,9 +1010,8 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * Lists information about the supported locations for this service. * *

            This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name] field: - * - *

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled 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 9fca4cc73f03..42e4f821b263 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 @@ -5327,6 +5327,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer$AdditionalSuggestedQueryResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer$AdditionalSuggestedQueryResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer$Builder", "queryAllDeclaredConstructors": true, @@ -5354,6 +5372,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer$KnowledgeAnswer$EventSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer$KnowledgeAnswer$EventSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer$KnowledgeAnswer$FaqSource", "queryAllDeclaredConstructors": true, @@ -5426,6 +5462,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer$SuggestedQuery$SearchContext", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer$SuggestedQuery$SearchContext$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo", "queryAllDeclaredConstructors": true, @@ -5471,6 +5525,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo$QueryGenerationDebugInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo$QueryGenerationDebugInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo$QueryGenerationFailureReason", "queryAllDeclaredConstructors": true, @@ -7073,6 +7145,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2.SipConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2.SipConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2.SipTrunk", "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 c0a815309d27..e2243105db6c 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 @@ -1340,6 +1340,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest$TurnInput$ToolResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest$TurnInput$ToolResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest$TurnInput$ToolResponses", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest$TurnInput$ToolResponses$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse", "queryAllDeclaredConstructors": true, @@ -1376,6 +1412,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse$ToolCall", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse$ToolCall$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse$ToolCalls", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse$ToolCalls$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse$TurnComplete", "queryAllDeclaredConstructors": true, @@ -3788,24 +3860,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$ConversationModelConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$ConversationModelConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig$ConversationProcessConfig", "queryAllDeclaredConstructors": true, @@ -5426,6 +5480,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$AdditionalSuggestedQueryResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$AdditionalSuggestedQueryResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$Builder", "queryAllDeclaredConstructors": true, @@ -5453,6 +5525,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$EventSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$EventSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$KnowledgeAnswer$FaqSource", "queryAllDeclaredConstructors": true, @@ -5525,6 +5615,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$SuggestedQuery$SearchContext", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer$SuggestedQuery$SearchContext$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo", "queryAllDeclaredConstructors": true, @@ -5570,6 +5678,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo$QueryGenerationDebugInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo$QueryGenerationDebugInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo$QueryGenerationFailureReason", "queryAllDeclaredConstructors": true, @@ -7307,6 +7433,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.dialogflow.v2beta1.SipConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.dialogflow.v2beta1.SipConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.dialogflow.v2beta1.SipTrunk", "queryAllDeclaredConstructors": true, diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientHttpJsonTest.java index f2dda47935f0..7e3801ceb185 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientHttpJsonTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientHttpJsonTest.java @@ -260,6 +260,7 @@ public void getConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -326,6 +327,7 @@ public void getConversationProfileTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -388,6 +390,7 @@ public void createConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -453,6 +456,7 @@ public void createConversationProfileTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -518,6 +522,7 @@ public void createConversationProfileTest3() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -583,6 +588,7 @@ public void updateConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -607,6 +613,7 @@ public void updateConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -658,6 +665,7 @@ public void updateConversationProfileExceptionTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -774,6 +782,7 @@ public void setSuggestionFeatureConfigTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -844,6 +853,7 @@ public void setSuggestionFeatureConfigTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -926,6 +936,7 @@ public void clearSuggestionFeatureConfigTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -996,6 +1007,7 @@ public void clearSuggestionFeatureConfigTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientTest.java index a6ba961b9b1d..e79abd105797 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ConversationProfilesClientTest.java @@ -252,6 +252,7 @@ public void getConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -313,6 +314,7 @@ public void getConversationProfileTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -370,6 +372,7 @@ public void createConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -431,6 +434,7 @@ public void createConversationProfileTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -492,6 +496,7 @@ public void createConversationProfileTest3() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -553,6 +558,7 @@ public void updateConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -688,6 +694,7 @@ public void setSuggestionFeatureConfigTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -754,6 +761,7 @@ public void setSuggestionFeatureConfigTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -834,6 +842,7 @@ public void clearSuggestionFeatureConfigTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -900,6 +909,7 @@ public void clearSuggestionFeatureConfigTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientHttpJsonTest.java index 257dedf6eb43..8273fe3be79e 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientHttpJsonTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientHttpJsonTest.java @@ -1111,6 +1111,8 @@ public void suggestKnowledgeAssistTest() throws Exception { .setKnowledgeAssistAnswer(KnowledgeAssistAnswer.newBuilder().build()) .setLatestMessage("latestMessage-1424305536") .setContextSize(1116903569) + .addAllAdditionalSuggestedQueryResults( + new ArrayList()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java index c1d7ba44aa3c..a57f496a1f75 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ParticipantsClientTest.java @@ -1068,6 +1068,8 @@ public void suggestKnowledgeAssistTest() throws Exception { .setKnowledgeAssistAnswer(KnowledgeAssistAnswer.newBuilder().build()) .setLatestMessage("latestMessage-1424305536") .setContextSize(1116903569) + .addAllAdditionalSuggestedQueryResults( + new ArrayList()) .build(); mockParticipants.addResponse(expectedResponse); diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientHttpJsonTest.java index e86e200b272b..ec8ea6409bcf 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientHttpJsonTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientHttpJsonTest.java @@ -261,6 +261,7 @@ public void getConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -328,6 +329,7 @@ public void getConversationProfileTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -391,6 +393,7 @@ public void createConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -457,6 +460,7 @@ public void createConversationProfileTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -523,6 +527,7 @@ public void createConversationProfileTest3() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -589,6 +594,7 @@ public void updateConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -614,6 +620,7 @@ public void updateConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -666,6 +673,7 @@ public void updateConversationProfileExceptionTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -783,6 +791,7 @@ public void setSuggestionFeatureConfigTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -854,6 +863,7 @@ public void setSuggestionFeatureConfigTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -937,6 +947,7 @@ public void clearSuggestionFeatureConfigTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -1008,6 +1019,7 @@ public void clearSuggestionFeatureConfigTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientTest.java index f33ab4cbf1b8..06f9be0c205c 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ConversationProfilesClientTest.java @@ -253,6 +253,7 @@ public void getConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -315,6 +316,7 @@ public void getConversationProfileTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -373,6 +375,7 @@ public void createConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -435,6 +438,7 @@ public void createConversationProfileTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -497,6 +501,7 @@ public void createConversationProfileTest3() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -559,6 +564,7 @@ public void updateConversationProfileTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -695,6 +701,7 @@ public void setSuggestionFeatureConfigTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -762,6 +769,7 @@ public void setSuggestionFeatureConfigTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -843,6 +851,7 @@ public void clearSuggestionFeatureConfigTest() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) @@ -910,6 +919,7 @@ public void clearSuggestionFeatureConfigTest2() throws Exception { .setNewRecognitionResultNotificationConfig(NotificationConfig.newBuilder().build()) .setSttConfig(SpeechToTextConfig.newBuilder().build()) .setLanguageCode("languageCode-2092349083") + .setSipConfig(SipConfig.newBuilder().build()) .setTimeZone("timeZone-2077180903") .setSecuritySettings("securitySettings-1062971517") .setTtsConfig(SynthesizeSpeechConfig.newBuilder().build()) diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientHttpJsonTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientHttpJsonTest.java index 1bee2a45b9e1..28c0d310539a 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientHttpJsonTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientHttpJsonTest.java @@ -1111,6 +1111,8 @@ public void suggestKnowledgeAssistTest() throws Exception { .setKnowledgeAssistAnswer(KnowledgeAssistAnswer.newBuilder().build()) .setLatestMessage("latestMessage-1424305536") .setContextSize(1116903569) + .addAllAdditionalSuggestedQueryResults( + new ArrayList()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java index 52736ec0d5b3..78996790aa35 100644 --- a/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java +++ b/java-dialogflow/google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2beta1/ParticipantsClientTest.java @@ -1117,6 +1117,8 @@ public void suggestKnowledgeAssistTest() throws Exception { .setKnowledgeAssistAnswer(KnowledgeAssistAnswer.newBuilder().build()) .setLatestMessage("latestMessage-1424305536") .setContextSize(1116903569) + .addAllAdditionalSuggestedQueryResults( + new ArrayList()) .build(); mockParticipants.addResponse(expectedResponse); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java index 93f4ebed744e..0016486bf8f8 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/AudioConfigProto.java @@ -199,22 +199,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035SSML_VOICE_GENDER_UNSPECIFIED\020\000\022\032\n" + "\026SSML_VOICE_GENDER_MALE\020\001\022\034\n" + "\030SSML_VOICE_GENDER_FEMALE\020\002\022\035\n" - + "\031SSML_VOICE_GENDER_NEUTRAL\020\003*\214\002\n" + + "\031SSML_VOICE_GENDER_NEUTRAL\020\003*\220\002\n" + "\023OutputAudioEncoding\022%\n" + "!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\020\000\022#\n" - + "\037OUTPUT_AUDIO_ENCODING_LINEAR_16\020\001\022\035\n" - + "\031OUTPUT_AUDIO_ENCODING_MP3\020\002\022%\n" + + "\037OUTPUT_AUDIO_ENCODING_LINEAR_16\020\001\022!\n" + + "\031OUTPUT_AUDIO_ENCODING_MP3\020\002\032\002\010\001\022%\n" + "!OUTPUT_AUDIO_ENCODING_MP3_64_KBPS\020\004\022\"\n" + "\036OUTPUT_AUDIO_ENCODING_OGG_OPUS\020\003\022\037\n" + "\033OUTPUT_AUDIO_ENCODING_MULAW\020\005\022\036\n" + "\032OUTPUT_AUDIO_ENCODING_ALAW\020\006B\323\002\n" - + "\036com.google.cloud.dialogflow.v2B\020AudioConfigProtoP\001Z>clo" - + "ud.google.com/go/dialogflow/apiv2/dialog" - + "flowpb;dialogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352AU\n" - + "\033automl.googleapis.com/" - + "Model\0226projects/{project}/locations/{location}/models/{model}\352Ab\n" - + "\037speech.googleapis.com/PhraseSet\022?projects/{project}/lo" - + "cations/{location}/phraseSets/{phrase_set}b\006proto3" + + "\036com.google.cloud.dialogflow.v2B\020AudioConfigProtoP\001Z" + + ">cloud.google.com/go/dialogflow/apiv2/di" + + "alogflowpb;dialogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352AU\n" + + "\033automl.googleapis." + + "com/Model\0226projects/{project}/locations/{location}/models/{model}\352Ab\n" + + "\037speech.googleapis.com/PhraseSet\022?projects/{project" + + "}/locations/{location}/phraseSets/{phrase_set}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppProto.java index cbe55897c7de..f729386235ad 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppProto.java @@ -53,21 +53,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n(google/cloud/dialogflow/v2/ces_app.pro" + "\n" + + "(google/cloud/dialogflow/v2/ces_app.pro" + "to\022\032google.cloud.dialogflow.v2\032\037google/a" + "pi/field_behavior.proto\032\031google/api/reso" - + "urce.proto\032%google/cloud/dialogflow/v2/t" - + "ool.proto\"\236\001\n\nCesAppSpec\022/\n\007ces_app\030\001 \001(" - + "\tB\036\340A\001\372A\030\n\026ces.googleapis.com/App\022_\n\030con" - + "firmation_requirement\030\002 \001(\01628.google.clo" - + "ud.dialogflow.v2.Tool.ConfirmationRequir" - + "ementB\003\340A\001B\340\001\n\036com.google.cloud.dialogfl" - + "ow.v2B\013CesAppProtoP\001Z>cloud.google.com/g" - + "o/dialogflow/apiv2/dialogflowpb;dialogfl" - + "owpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A" - + "L\n\026ces.googleapis.com/App\0222projects/{pro" - + "ject}/locations/{location}/apps/{app}b\006p" - + "roto3" + + "urce.proto\032%google/cloud/dialogflow/v2/tool.proto\"\222\002\n\n" + + "CesAppSpec\022/\n" + + "\007ces_app\030\001 \001(\tB\036\340A\001\372A\030\n" + + "\026ces.googleapis.com/App\022_\n" + + "\030confirmation_requirement\030\002 \001(\01628.google.clo" + + "ud.dialogflow.v2.Tool.ConfirmationRequirementB\003\340A\001\022#\n" + + "\021proactive_enabled\030\003 \001(\010B\003\340A\001H\000\210\001\001\022\"\n" + + "\020reactive_enabled\030\004 \001(\010B\003\340A\001H\001\210\001\001B\024\n" + + "\022_proactive_enabledB\023\n" + + "\021_reactive_enabledB\340\001\n" + + "\036com.google.cloud.dialogflow.v2B\013CesAppProtoP\001Z>cloud.google.com/go/di" + + "alogflow/apiv2/dialogflowpb;dialogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352AL\n" + + "\026ces.googleapis.com/App\0222projects/{project" + + "}/locations/{location}/apps/{app}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -83,7 +86,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_CesAppSpec_descriptor, new java.lang.String[] { - "CesApp", "ConfirmationRequirement", + "CesApp", "ConfirmationRequirement", "ProactiveEnabled", "ReactiveEnabled", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpec.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpec.java index 6b27b0255070..17fe486c3d7a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpec.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpec.java @@ -71,6 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.v2.CesAppSpec.Builder.class); } + private int bitField0_; public static final int CES_APP_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -174,6 +175,88 @@ public com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement getConfirmati : result; } + public static final int PROACTIVE_ENABLED_FIELD_NUMBER = 3; + private boolean proactiveEnabled_ = false; + + /** + * + * + *

            +   * Optional. Only applicable for CompanionAgent.
            +   * Indicates whether the ces app is enabled in proactive mode.
            +   * At least one of `proactive_enabled` or `reactive_enabled` should be
            +   * true; otherwise, the ces app will be ignored.
            +   * 
            + * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the proactiveEnabled field is set. + */ + @java.lang.Override + public boolean hasProactiveEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Only applicable for CompanionAgent.
            +   * Indicates whether the ces app is enabled in proactive mode.
            +   * At least one of `proactive_enabled` or `reactive_enabled` should be
            +   * true; otherwise, the ces app will be ignored.
            +   * 
            + * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proactiveEnabled. + */ + @java.lang.Override + public boolean getProactiveEnabled() { + return proactiveEnabled_; + } + + public static final int REACTIVE_ENABLED_FIELD_NUMBER = 4; + private boolean reactiveEnabled_ = false; + + /** + * + * + *
            +   * Optional. Only applicable for CompanionAgent.
            +   * Indicates whether the ces app is enabled in reactive mode.
            +   * At least one of `proactive_enabled` or `reactive_enabled` should be
            +   * true; otherwise, the ces app will be ignored.
            +   * 
            + * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the reactiveEnabled field is set. + */ + @java.lang.Override + public boolean hasReactiveEnabled() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. Only applicable for CompanionAgent.
            +   * Indicates whether the ces app is enabled in reactive mode.
            +   * At least one of `proactive_enabled` or `reactive_enabled` should be
            +   * true; otherwise, the ces app will be ignored.
            +   * 
            + * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reactiveEnabled. + */ + @java.lang.Override + public boolean getReactiveEnabled() { + return reactiveEnabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -197,6 +280,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(2, confirmationRequirement_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(3, proactiveEnabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(4, reactiveEnabled_); + } getUnknownFields().writeTo(output); } @@ -215,6 +304,12 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, confirmationRequirement_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, proactiveEnabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reactiveEnabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -233,6 +328,14 @@ public boolean equals(final java.lang.Object obj) { if (!getCesApp().equals(other.getCesApp())) return false; if (confirmationRequirement_ != other.confirmationRequirement_) return false; + if (hasProactiveEnabled() != other.hasProactiveEnabled()) return false; + if (hasProactiveEnabled()) { + if (getProactiveEnabled() != other.getProactiveEnabled()) return false; + } + if (hasReactiveEnabled() != other.hasReactiveEnabled()) return false; + if (hasReactiveEnabled()) { + if (getReactiveEnabled() != other.getReactiveEnabled()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -248,6 +351,14 @@ public int hashCode() { hash = (53 * hash) + getCesApp().hashCode(); hash = (37 * hash) + CONFIRMATION_REQUIREMENT_FIELD_NUMBER; hash = (53 * hash) + confirmationRequirement_; + if (hasProactiveEnabled()) { + hash = (37 * hash) + PROACTIVE_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProactiveEnabled()); + } + if (hasReactiveEnabled()) { + hash = (37 * hash) + REACTIVE_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReactiveEnabled()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -390,6 +501,8 @@ public Builder clear() { bitField0_ = 0; cesApp_ = ""; confirmationRequirement_ = 0; + proactiveEnabled_ = false; + reactiveEnabled_ = false; return this; } @@ -432,6 +545,16 @@ private void buildPartial0(com.google.cloud.dialogflow.v2.CesAppSpec result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.confirmationRequirement_ = confirmationRequirement_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.proactiveEnabled_ = proactiveEnabled_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.reactiveEnabled_ = reactiveEnabled_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -454,6 +577,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.CesAppSpec other) { if (other.confirmationRequirement_ != 0) { setConfirmationRequirementValue(other.getConfirmationRequirementValue()); } + if (other.hasProactiveEnabled()) { + setProactiveEnabled(other.getProactiveEnabled()); + } + if (other.hasReactiveEnabled()) { + setReactiveEnabled(other.getReactiveEnabled()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -492,6 +621,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 24: + { + proactiveEnabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + reactiveEnabled_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -747,6 +888,174 @@ public Builder clearConfirmationRequirement() { return this; } + private boolean proactiveEnabled_; + + /** + * + * + *
            +     * Optional. Only applicable for CompanionAgent.
            +     * Indicates whether the ces app is enabled in proactive mode.
            +     * At least one of `proactive_enabled` or `reactive_enabled` should be
            +     * true; otherwise, the ces app will be ignored.
            +     * 
            + * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the proactiveEnabled field is set. + */ + @java.lang.Override + public boolean hasProactiveEnabled() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Optional. Only applicable for CompanionAgent.
            +     * Indicates whether the ces app is enabled in proactive mode.
            +     * At least one of `proactive_enabled` or `reactive_enabled` should be
            +     * true; otherwise, the ces app will be ignored.
            +     * 
            + * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proactiveEnabled. + */ + @java.lang.Override + public boolean getProactiveEnabled() { + return proactiveEnabled_; + } + + /** + * + * + *
            +     * Optional. Only applicable for CompanionAgent.
            +     * Indicates whether the ces app is enabled in proactive mode.
            +     * At least one of `proactive_enabled` or `reactive_enabled` should be
            +     * true; otherwise, the ces app will be ignored.
            +     * 
            + * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The proactiveEnabled to set. + * @return This builder for chaining. + */ + public Builder setProactiveEnabled(boolean value) { + + proactiveEnabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Only applicable for CompanionAgent.
            +     * Indicates whether the ces app is enabled in proactive mode.
            +     * At least one of `proactive_enabled` or `reactive_enabled` should be
            +     * true; otherwise, the ces app will be ignored.
            +     * 
            + * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProactiveEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + proactiveEnabled_ = false; + onChanged(); + return this; + } + + private boolean reactiveEnabled_; + + /** + * + * + *
            +     * Optional. Only applicable for CompanionAgent.
            +     * Indicates whether the ces app is enabled in reactive mode.
            +     * At least one of `proactive_enabled` or `reactive_enabled` should be
            +     * true; otherwise, the ces app will be ignored.
            +     * 
            + * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the reactiveEnabled field is set. + */ + @java.lang.Override + public boolean hasReactiveEnabled() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Optional. Only applicable for CompanionAgent.
            +     * Indicates whether the ces app is enabled in reactive mode.
            +     * At least one of `proactive_enabled` or `reactive_enabled` should be
            +     * true; otherwise, the ces app will be ignored.
            +     * 
            + * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reactiveEnabled. + */ + @java.lang.Override + public boolean getReactiveEnabled() { + return reactiveEnabled_; + } + + /** + * + * + *
            +     * Optional. Only applicable for CompanionAgent.
            +     * Indicates whether the ces app is enabled in reactive mode.
            +     * At least one of `proactive_enabled` or `reactive_enabled` should be
            +     * true; otherwise, the ces app will be ignored.
            +     * 
            + * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The reactiveEnabled to set. + * @return This builder for chaining. + */ + public Builder setReactiveEnabled(boolean value) { + + reactiveEnabled_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Only applicable for CompanionAgent.
            +     * Indicates whether the ces app is enabled in reactive mode.
            +     * At least one of `proactive_enabled` or `reactive_enabled` should be
            +     * true; otherwise, the ces app will be ignored.
            +     * 
            + * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReactiveEnabled() { + bitField0_ = (bitField0_ & ~0x00000008); + reactiveEnabled_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.CesAppSpec) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpecOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpecOrBuilder.java index ec85a9bb4949..4807e5cd1c9a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpecOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/CesAppSpecOrBuilder.java @@ -87,4 +87,68 @@ public interface CesAppSpecOrBuilder * @return The confirmationRequirement. */ com.google.cloud.dialogflow.v2.Tool.ConfirmationRequirement getConfirmationRequirement(); + + /** + * + * + *
            +   * Optional. Only applicable for CompanionAgent.
            +   * Indicates whether the ces app is enabled in proactive mode.
            +   * At least one of `proactive_enabled` or `reactive_enabled` should be
            +   * true; otherwise, the ces app will be ignored.
            +   * 
            + * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the proactiveEnabled field is set. + */ + boolean hasProactiveEnabled(); + + /** + * + * + *
            +   * Optional. Only applicable for CompanionAgent.
            +   * Indicates whether the ces app is enabled in proactive mode.
            +   * At least one of `proactive_enabled` or `reactive_enabled` should be
            +   * true; otherwise, the ces app will be ignored.
            +   * 
            + * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proactiveEnabled. + */ + boolean getProactiveEnabled(); + + /** + * + * + *
            +   * Optional. Only applicable for CompanionAgent.
            +   * Indicates whether the ces app is enabled in reactive mode.
            +   * At least one of `proactive_enabled` or `reactive_enabled` should be
            +   * true; otherwise, the ces app will be ignored.
            +   * 
            + * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the reactiveEnabled field is set. + */ + boolean hasReactiveEnabled(); + + /** + * + * + *
            +   * Optional. Only applicable for CompanionAgent.
            +   * Indicates whether the ces app is enabled in reactive mode.
            +   * At least one of `proactive_enabled` or `reactive_enabled` should be
            +   * true; otherwise, the ces app will be ignored.
            +   * 
            + * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reactiveEnabled. + */ + boolean getReactiveEnabled(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfile.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfile.java index f6bcc316cda6..29e299d1ffa8 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfile.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfile.java @@ -832,6 +832,65 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } + public static final int SIP_CONFIG_FIELD_NUMBER = 16; + private com.google.cloud.dialogflow.v2.SipConfig sipConfig_; + + /** + * + * + *
            +   * Optional. Configuration for SIP connections.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sipConfig field is set. + */ + @java.lang.Override + public boolean hasSipConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
            +   * Optional. Configuration for SIP connections.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sipConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.SipConfig getSipConfig() { + return sipConfig_ == null + ? com.google.cloud.dialogflow.v2.SipConfig.getDefaultInstance() + : sipConfig_; + } + + /** + * + * + *
            +   * Optional. Configuration for SIP connections.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.SipConfigOrBuilder getSipConfigOrBuilder() { + return sipConfig_ == null + ? com.google.cloud.dialogflow.v2.SipConfig.getDefaultInstance() + : sipConfig_; + } + public static final int TIME_ZONE_FIELD_NUMBER = 14; @SuppressWarnings("serial") @@ -965,7 +1024,7 @@ public com.google.protobuf.ByteString getSecuritySettingsBytes() { */ @java.lang.Override public boolean hasTtsConfig() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -1065,6 +1124,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessage.writeString(output, 14, timeZone_); } if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(16, getSipConfig()); + } + if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(18, getTtsConfig()); } if (((bitField0_ & 0x00000100) != 0)) { @@ -1128,6 +1190,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessage.computeStringSize(14, timeZone_); } if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getSipConfig()); + } + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getTtsConfig()); } if (((bitField0_ & 0x00000100) != 0)) { @@ -1199,6 +1264,10 @@ public boolean equals(final java.lang.Object obj) { if (!getSttConfig().equals(other.getSttConfig())) return false; } if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (hasSipConfig() != other.hasSipConfig()) return false; + if (hasSipConfig()) { + if (!getSipConfig().equals(other.getSipConfig())) return false; + } if (!getTimeZone().equals(other.getTimeZone())) return false; if (!getSecuritySettings().equals(other.getSecuritySettings())) return false; if (hasTtsConfig() != other.hasTtsConfig()) return false; @@ -1262,6 +1331,10 @@ public int hashCode() { } hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); + if (hasSipConfig()) { + hash = (37 * hash) + SIP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSipConfig().hashCode(); + } hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; hash = (53 * hash) + getTimeZone().hashCode(); hash = (37 * hash) + SECURITY_SETTINGS_FIELD_NUMBER; @@ -1421,6 +1494,7 @@ private void maybeForceBuilderInitialization() { internalGetNewMessageEventNotificationConfigFieldBuilder(); internalGetNewRecognitionResultNotificationConfigFieldBuilder(); internalGetSttConfigFieldBuilder(); + internalGetSipConfigFieldBuilder(); internalGetTtsConfigFieldBuilder(); } } @@ -1482,6 +1556,11 @@ public Builder clear() { sttConfigBuilder_ = null; } languageCode_ = ""; + sipConfig_ = null; + if (sipConfigBuilder_ != null) { + sipConfigBuilder_.dispose(); + sipConfigBuilder_ = null; + } timeZone_ = ""; securitySettings_ = ""; ttsConfig_ = null; @@ -1595,14 +1674,18 @@ private void buildPartial0(com.google.cloud.dialogflow.v2.ConversationProfile re result.languageCode_ = languageCode_; } if (((from_bitField0_ & 0x00002000) != 0)) { - result.timeZone_ = timeZone_; + result.sipConfig_ = sipConfigBuilder_ == null ? sipConfig_ : sipConfigBuilder_.build(); + to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.securitySettings_ = securitySettings_; + result.timeZone_ = timeZone_; } if (((from_bitField0_ & 0x00008000) != 0)) { + result.securitySettings_ = securitySettings_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { result.ttsConfig_ = ttsConfigBuilder_ == null ? ttsConfig_ : ttsConfigBuilder_.build(); - to_bitField0_ |= 0x00000400; + to_bitField0_ |= 0x00000800; } result.bitField0_ |= to_bitField0_; } @@ -1666,14 +1749,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.ConversationProfile othe bitField0_ |= 0x00001000; onChanged(); } + if (other.hasSipConfig()) { + mergeSipConfig(other.getSipConfig()); + } if (!other.getTimeZone().isEmpty()) { timeZone_ = other.timeZone_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } if (!other.getSecuritySettings().isEmpty()) { securitySettings_ = other.securitySettings_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } if (other.hasTtsConfig()) { @@ -1792,20 +1878,27 @@ public Builder mergeFrom( case 106: { securitySettings_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 106 case 114: { timeZone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 114 + case 130: + { + input.readMessage( + internalGetSipConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 130 case 146: { input.readMessage( internalGetTtsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 146 case 170: @@ -4378,6 +4471,218 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dialogflow.v2.SipConfig sipConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.SipConfig, + com.google.cloud.dialogflow.v2.SipConfig.Builder, + com.google.cloud.dialogflow.v2.SipConfigOrBuilder> + sipConfigBuilder_; + + /** + * + * + *
            +     * Optional. Configuration for SIP connections.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sipConfig field is set. + */ + public boolean hasSipConfig() { + return ((bitField0_ & 0x00002000) != 0); + } + + /** + * + * + *
            +     * Optional. Configuration for SIP connections.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sipConfig. + */ + public com.google.cloud.dialogflow.v2.SipConfig getSipConfig() { + if (sipConfigBuilder_ == null) { + return sipConfig_ == null + ? com.google.cloud.dialogflow.v2.SipConfig.getDefaultInstance() + : sipConfig_; + } else { + return sipConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Configuration for SIP connections.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSipConfig(com.google.cloud.dialogflow.v2.SipConfig value) { + if (sipConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sipConfig_ = value; + } else { + sipConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for SIP connections.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSipConfig(com.google.cloud.dialogflow.v2.SipConfig.Builder builderForValue) { + if (sipConfigBuilder_ == null) { + sipConfig_ = builderForValue.build(); + } else { + sipConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for SIP connections.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSipConfig(com.google.cloud.dialogflow.v2.SipConfig value) { + if (sipConfigBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) + && sipConfig_ != null + && sipConfig_ != com.google.cloud.dialogflow.v2.SipConfig.getDefaultInstance()) { + getSipConfigBuilder().mergeFrom(value); + } else { + sipConfig_ = value; + } + } else { + sipConfigBuilder_.mergeFrom(value); + } + if (sipConfig_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for SIP connections.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSipConfig() { + bitField0_ = (bitField0_ & ~0x00002000); + sipConfig_ = null; + if (sipConfigBuilder_ != null) { + sipConfigBuilder_.dispose(); + sipConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for SIP connections.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.SipConfig.Builder getSipConfigBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return internalGetSipConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Configuration for SIP connections.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.SipConfigOrBuilder getSipConfigOrBuilder() { + if (sipConfigBuilder_ != null) { + return sipConfigBuilder_.getMessageOrBuilder(); + } else { + return sipConfig_ == null + ? com.google.cloud.dialogflow.v2.SipConfig.getDefaultInstance() + : sipConfig_; + } + } + + /** + * + * + *
            +     * Optional. Configuration for SIP connections.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.SipConfig, + com.google.cloud.dialogflow.v2.SipConfig.Builder, + com.google.cloud.dialogflow.v2.SipConfigOrBuilder> + internalGetSipConfigFieldBuilder() { + if (sipConfigBuilder_ == null) { + sipConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.SipConfig, + com.google.cloud.dialogflow.v2.SipConfig.Builder, + com.google.cloud.dialogflow.v2.SipConfigOrBuilder>( + getSipConfig(), getParentForChildren(), isClean()); + sipConfig_ = null; + } + return sipConfigBuilder_; + } + private java.lang.Object timeZone_ = ""; /** @@ -4449,7 +4754,7 @@ public Builder setTimeZone(java.lang.String value) { throw new NullPointerException(); } timeZone_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4469,7 +4774,7 @@ public Builder setTimeZone(java.lang.String value) { */ public Builder clearTimeZone() { timeZone_ = getDefaultInstance().getTimeZone(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -4494,7 +4799,7 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); timeZone_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -4570,7 +4875,7 @@ public Builder setSecuritySettings(java.lang.String value) { throw new NullPointerException(); } securitySettings_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4590,7 +4895,7 @@ public Builder setSecuritySettings(java.lang.String value) { */ public Builder clearSecuritySettings() { securitySettings_ = getDefaultInstance().getSecuritySettings(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -4615,7 +4920,7 @@ public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); securitySettings_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4642,7 +4947,7 @@ public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) { * @return Whether the ttsConfig field is set. */ public boolean hasTtsConfig() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -4690,7 +4995,7 @@ public Builder setTtsConfig(com.google.cloud.dialogflow.v2.SynthesizeSpeechConfi } else { ttsConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4714,7 +5019,7 @@ public Builder setTtsConfig( } else { ttsConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4733,7 +5038,7 @@ public Builder setTtsConfig( */ public Builder mergeTtsConfig(com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig value) { if (ttsConfigBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && ttsConfig_ != null && ttsConfig_ != com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig.getDefaultInstance()) { @@ -4745,7 +5050,7 @@ public Builder mergeTtsConfig(com.google.cloud.dialogflow.v2.SynthesizeSpeechCon ttsConfigBuilder_.mergeFrom(value); } if (ttsConfig_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -4764,7 +5069,7 @@ public Builder mergeTtsConfig(com.google.cloud.dialogflow.v2.SynthesizeSpeechCon * .google.cloud.dialogflow.v2.SynthesizeSpeechConfig tts_config = 18; */ public Builder clearTtsConfig() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); ttsConfig_ = null; if (ttsConfigBuilder_ != null) { ttsConfigBuilder_.dispose(); @@ -4787,7 +5092,7 @@ public Builder clearTtsConfig() { * .google.cloud.dialogflow.v2.SynthesizeSpeechConfig tts_config = 18; */ public com.google.cloud.dialogflow.v2.SynthesizeSpeechConfig.Builder getTtsConfigBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return internalGetTtsConfigFieldBuilder().getBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileOrBuilder.java index 32e204385458..f51389286732 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileOrBuilder.java @@ -547,6 +547,49 @@ public interface ConversationProfileOrBuilder */ com.google.protobuf.ByteString getLanguageCodeBytes(); + /** + * + * + *
            +   * Optional. Configuration for SIP connections.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sipConfig field is set. + */ + boolean hasSipConfig(); + + /** + * + * + *
            +   * Optional. Configuration for SIP connections.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sipConfig. + */ + com.google.cloud.dialogflow.v2.SipConfig getSipConfig(); + + /** + * + * + *
            +   * Optional. Configuration for SIP connections.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.SipConfigOrBuilder getSipConfigOrBuilder(); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java index 0ca9d892264d..57632c2050ea 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProfileProto.java @@ -148,6 +148,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_LoggingConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_LoggingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_SipConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_SipConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2_SuggestionFeature_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -189,7 +193,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ations.proto\032\036google/protobuf/duration.p" + "roto\032\033google/protobuf/empty.proto\032 googl" + "e/protobuf/field_mask.proto\032\037google/prot" - + "obuf/timestamp.proto\"\331\t\n\023ConversationPro" + + "obuf/timestamp.proto\"\231\n\n\023ConversationPro" + "file\022\014\n\004name\030\001 \001(\t\022\031\n\014display_name\030\002 \001(\t" + "B\003\340A\002\0224\n\013create_time\030\013 \001(\0132\032.google.prot" + "obuf.TimestampB\003\340A\003\0224\n\013update_time\030\014 \001(\013" @@ -211,261 +215,273 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oud.dialogflow.v2.NotificationConfigB\003\340A" + "\001\022B\n\nstt_config\030\t \001(\0132..google.cloud.dia" + "logflow.v2.SpeechToTextConfig\022\025\n\rlanguag" - + "e_code\030\n \001(\t\022\021\n\ttime_zone\030\016 \001(\t\022L\n\021secur" - + "ity_settings\030\r \001(\tB1\372A.\n,dialogflow.goog" - + "leapis.com/CXSecuritySettings\022F\n\ntts_con" - + "fig\030\022 \001(\01322.google.cloud.dialogflow.v2.S" - + "ynthesizeSpeechConfig:\310\001\352A\304\001\n-dialogflow" - + ".googleapis.com/ConversationProfile\022>pro" - + "jects/{project}/conversationProfiles/{co" - + "nversation_profile}\022Sprojects/{project}/" - + "locations/{location}/conversationProfile" - + "s/{conversation_profile}\"\217\001\n\037ListConvers" - + "ationProfilesRequest\022E\n\006parent\030\001 \001(\tB5\340A" - + "\002\372A/\022-dialogflow.googleapis.com/Conversa" - + "tionProfile\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\"\213\001\n ListConversationProfilesR" - + "esponse\022N\n\025conversation_profiles\030\001 \003(\0132/" - + ".google.cloud.dialogflow.v2.Conversation" - + "Profile\022\027\n\017next_page_token\030\002 \001(\t\"d\n\035GetC" - + "onversationProfileRequest\022C\n\004name\030\001 \001(\tB" - + "5\340A\002\372A/\n-dialogflow.googleapis.com/Conve" - + "rsationProfile\"\275\001\n CreateConversationPro" - + "fileRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-dia" - + "logflow.googleapis.com/ConversationProfi" - + "le\022R\n\024conversation_profile\030\002 \001(\0132/.googl" - + "e.cloud.dialogflow.v2.ConversationProfil" - + "eB\003\340A\002\"\254\001\n UpdateConversationProfileRequ" - + "est\022R\n\024conversation_profile\030\001 \001(\0132/.goog" - + "le.cloud.dialogflow.v2.ConversationProfi" - + "leB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.pr" - + "otobuf.FieldMaskB\003\340A\002\"g\n DeleteConversat" - + "ionProfileRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-dialogflow.googleapis.com/ConversationP" - + "rofile\"\203\001\n\024AutomatedAgentConfig\0226\n\005agent" - + "\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.googleapis.co" - + "m/Agent\0223\n\013session_ttl\030\003 \001(\0132\031.google.pr" - + "otobuf.DurationB\003\340A\001\"\362\035\n\031HumanAgentAssis" - + "tantConfig\022K\n\023notification_config\030\002 \001(\0132" - + "..google.cloud.dialogflow.v2.Notificatio" - + "nConfig\022m\n\035human_agent_suggestion_config" - + "\030\003 \001(\0132F.google.cloud.dialogflow.v2.Huma" - + "nAgentAssistantConfig.SuggestionConfig\022j" - + "\n\032end_user_suggestion_config\030\004 \001(\0132F.goo" - + "gle.cloud.dialogflow.v2.HumanAgentAssist" - + "antConfig.SuggestionConfig\022l\n\027message_an" - + "alysis_config\030\005 \001(\0132K.google.cloud.dialo" - + "gflow.v2.HumanAgentAssistantConfig.Messa" - + "geAnalysisConfig\032H\n\031SuggestionTriggerSet" - + "tings\022\024\n\014no_smalltalk\030\001 \001(\010\022\025\n\ronly_end_" - + "user\030\002 \001(\010\032\365\006\n\027SuggestionFeatureConfig\022I" - + "\n\022suggestion_feature\030\005 \001(\0132-.google.clou" - + "d.dialogflow.v2.SuggestionFeature\022%\n\035ena" - + "ble_event_based_suggestion\030\003 \001(\010\022(\n\033disa" - + "ble_agent_query_logging\030\016 \001(\010B\003\340A\001\0223\n&en" - + "able_query_suggestion_when_no_answer\030\017 \001" - + "(\010B\003\340A\001\0220\n#enable_conversation_augmented" - + "_query\030\020 \001(\010B\003\340A\001\022)\n\034enable_query_sugges" - + "tion_only\030\021 \001(\010B\003\340A\001\022\'\n\032enable_response_" - + "debug_info\030\022 \001(\010B\003\340A\001\022B\n\014rai_settings\030\023 " - + "\001(\0132\'.google.cloud.dialogflow.v2.RaiSett" - + "ingsB\003\340A\001\022t\n\033suggestion_trigger_settings" - + "\030\n \001(\0132O.google.cloud.dialogflow.v2.Huma" - + "nAgentAssistantConfig.SuggestionTriggerS" - + "ettings\022a\n\014query_config\030\006 \001(\0132K.google.c" - + "loud.dialogflow.v2.HumanAgentAssistantCo" - + "nfig.SuggestionQueryConfig\022p\n\031conversati" - + "on_model_config\030\007 \001(\0132M.google.cloud.dia" - + "logflow.v2.HumanAgentAssistantConfig.Con" - + "versationModelConfig\022t\n\033conversation_pro" - + "cess_config\030\010 \001(\0132O.google.cloud.dialogf" - + "low.v2.HumanAgentAssistantConfig.Convers" - + "ationProcessConfig\032\235\003\n\020SuggestionConfig\022" - + "f\n\017feature_configs\030\002 \003(\0132M.google.cloud." - + "dialogflow.v2.HumanAgentAssistantConfig." - + "SuggestionFeatureConfig\022\"\n\032group_suggest" - + "ion_responses\030\003 \001(\010\022?\n\ngenerators\030\004 \003(\tB" - + "+\340A\001\372A%\n#dialogflow.googleapis.com/Gener" - + "ator\0228\n+disable_high_latency_features_sy" - + "nc_delivery\030\005 \001(\010B\003\340A\001\022.\n!skip_empty_eve" - + "nt_based_suggestion\030\006 \001(\010B\003\340A\001\022-\n use_un" - + "redacted_conversation_data\030\010 \001(\010B\003\340A\001\022#\n" - + "\026enable_async_tool_call\030\t \001(\010B\003\340A\001\032\231\r\n\025S" - + "uggestionQueryConfig\022\213\001\n\033knowledge_base_" - + "query_source\030\001 \001(\0132d.google.cloud.dialog" + + "e_code\030\n \001(\t\022>\n\nsip_config\030\020 \001(\0132%.googl" + + "e.cloud.dialogflow.v2.SipConfigB\003\340A\001\022\021\n\t" + + "time_zone\030\016 \001(\t\022L\n\021security_settings\030\r \001" + + "(\tB1\372A.\n,dialogflow.googleapis.com/CXSec" + + "uritySettings\022F\n\ntts_config\030\022 \001(\01322.goog" + + "le.cloud.dialogflow.v2.SynthesizeSpeechC" + + "onfig:\310\001\352A\304\001\n-dialogflow.googleapis.com/" + + "ConversationProfile\022>projects/{project}/" + + "conversationProfiles/{conversation_profi" + + "le}\022Sprojects/{project}/locations/{locat" + + "ion}/conversationProfiles/{conversation_" + + "profile}\"\217\001\n\037ListConversationProfilesReq" + + "uest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-dialogflow" + + ".googleapis.com/ConversationProfile\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\213\001\n L" + + "istConversationProfilesResponse\022N\n\025conve" + + "rsation_profiles\030\001 \003(\0132/.google.cloud.di" + + "alogflow.v2.ConversationProfile\022\027\n\017next_" + + "page_token\030\002 \001(\t\"d\n\035GetConversationProfi" + + "leRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-dialogf" + + "low.googleapis.com/ConversationProfile\"\275" + + "\001\n CreateConversationProfileRequest\022E\n\006p" + + "arent\030\001 \001(\tB5\340A\002\372A/\022-dialogflow.googleap" + + "is.com/ConversationProfile\022R\n\024conversati" + + "on_profile\030\002 \001(\0132/.google.cloud.dialogfl" + + "ow.v2.ConversationProfileB\003\340A\002\"\254\001\n Updat" + + "eConversationProfileRequest\022R\n\024conversat" + + "ion_profile\030\001 \001(\0132/.google.cloud.dialogf" + + "low.v2.ConversationProfileB\003\340A\002\0224\n\013updat" + + "e_mask\030\002 \001(\0132\032.google.protobuf.FieldMask" + + "B\003\340A\002\"g\n DeleteConversationProfileReques" + + "t\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-dialogflow.goog" + + "leapis.com/ConversationProfile\"\203\001\n\024Autom" + + "atedAgentConfig\0226\n\005agent\030\001 \001(\tB\'\340A\002\372A!\n\037" + + "dialogflow.googleapis.com/Agent\0223\n\013sessi" + + "on_ttl\030\003 \001(\0132\031.google.protobuf.DurationB" + + "\003\340A\001\"\356\036\n\031HumanAgentAssistantConfig\022K\n\023no" + + "tification_config\030\002 \001(\0132..google.cloud.d" + + "ialogflow.v2.NotificationConfig\022m\n\035human" + + "_agent_suggestion_config\030\003 \001(\0132F.google." + + "cloud.dialogflow.v2.HumanAgentAssistantC" + + "onfig.SuggestionConfig\022j\n\032end_user_sugge" + + "stion_config\030\004 \001(\0132F.google.cloud.dialog" + "flow.v2.HumanAgentAssistantConfig.Sugges" - + "tionQueryConfig.KnowledgeBaseQuerySource" - + "H\000\022\200\001\n\025document_query_source\030\002 \001(\0132_.goo" + + "tionConfig\022l\n\027message_analysis_config\030\005 " + + "\001(\0132K.google.cloud.dialogflow.v2.HumanAg" + + "entAssistantConfig.MessageAnalysisConfig" + + "\032H\n\031SuggestionTriggerSettings\022\024\n\014no_smal" + + "ltalk\030\001 \001(\010\022\025\n\ronly_end_user\030\002 \001(\010\032\361\007\n\027S" + + "uggestionFeatureConfig\022I\n\022suggestion_fea" + + "ture\030\005 \001(\0132-.google.cloud.dialogflow.v2." + + "SuggestionFeature\022%\n\035enable_event_based_" + + "suggestion\030\003 \001(\010\022(\n\033disable_agent_query_" + + "logging\030\016 \001(\010B\003\340A\001\0223\n&enable_query_sugge" + + "stion_when_no_answer\030\017 \001(\010B\003\340A\001\0220\n#enabl" + + "e_conversation_augmented_query\030\020 \001(\010B\003\340A" + + "\001\022)\n\034enable_query_suggestion_only\030\021 \001(\010B" + + "\003\340A\001\022\'\n\032enable_response_debug_info\030\022 \001(\010" + + "B\003\340A\001\022B\n\014rai_settings\030\023 \001(\0132\'.google.clo" + + "ud.dialogflow.v2.RaiSettingsB\003\340A\001\022O\n\030sug" + + "gestion_trigger_event\030\024 \001(\0162(.google.clo" + + "ud.dialogflow.v2.TriggerEventB\003\340A\001\022)\n\034di" + + "sable_query_search_context\030\025 \001(\010B\003\340A\001\022t\n" + + "\033suggestion_trigger_settings\030\n \001(\0132O.goo" + "gle.cloud.dialogflow.v2.HumanAgentAssist" - + "antConfig.SuggestionQueryConfig.Document" - + "QuerySourceH\000\022\204\001\n\027dialogflow_query_sourc" - + "e\030\003 \001(\0132a.google.cloud.dialogflow.v2.Hum" - + "anAgentAssistantConfig.SuggestionQueryCo" - + "nfig.DialogflowQuerySourceH\000\022\023\n\013max_resu" - + "lts\030\004 \001(\005\022\034\n\024confidence_threshold\030\005 \001(\002\022" - + "\202\001\n\027context_filter_settings\030\007 \001(\0132a.goog" - + "le.cloud.dialogflow.v2.HumanAgentAssista" - + "ntConfig.SuggestionQueryConfig.ContextFi" - + "lterSettings\022k\n\010sections\030\010 \001(\0132T.google." - + "cloud.dialogflow.v2.HumanAgentAssistantC" - + "onfig.SuggestionQueryConfig.SectionsB\003\340A" - + "\001\022\031\n\014context_size\030\t \001(\005B\003\340A\001\032d\n\030Knowledg" - + "eBaseQuerySource\022H\n\017knowledge_bases\030\001 \003(" - + "\tB/\340A\002\372A)\n\'dialogflow.googleapis.com/Kno" - + "wledgeBase\032T\n\023DocumentQuerySource\022=\n\tdoc" - + "uments\030\001 \003(\tB*\340A\002\372A$\n\"dialogflow.googlea" - + "pis.com/Document\032\276\002\n\025DialogflowQuerySour" - + "ce\0226\n\005agent\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.go" - + "ogleapis.com/Agent\022\234\001\n\027human_agent_side_" - + "config\030\003 \001(\0132v.google.cloud.dialogflow.v" - + "2.HumanAgentAssistantConfig.SuggestionQu" - + "eryConfig.DialogflowQuerySource.HumanAge" - + "ntSideConfigB\003\340A\001\032N\n\024HumanAgentSideConfi" - + "g\0226\n\005agent\030\001 \001(\tB\'\340A\001\372A!\n\037dialogflow.goo" - + "gleapis.com/Agent\032v\n\025ContextFilterSettin" - + "gs\022\035\n\025drop_handoff_messages\030\001 \001(\010\022#\n\033dro" - + "p_virtual_agent_messages\030\002 \001(\010\022\031\n\021drop_i" - + "vr_messages\030\003 \001(\010\032\242\002\n\010Sections\022w\n\rsectio" - + "n_types\030\001 \003(\0162`.google.cloud.dialogflow." - + "v2.HumanAgentAssistantConfig.SuggestionQ" - + "ueryConfig.Sections.SectionType\"\234\001\n\013Sect" - + "ionType\022\034\n\030SECTION_TYPE_UNSPECIFIED\020\000\022\r\n" - + "\tSITUATION\020\001\022\n\n\006ACTION\020\002\022\016\n\nRESOLUTION\020\003" - + "\022\033\n\027REASON_FOR_CANCELLATION\020\004\022\031\n\025CUSTOME" - + "R_SATISFACTION\020\005\022\014\n\010ENTITIES\020\006B\016\n\014query_" - + "source\032z\n\027ConversationModelConfig\022?\n\005mod" - + "el\030\001 \001(\tB0\372A-\n+dialogflow.googleapis.com" - + "/ConversationModel\022\036\n\026baseline_model_ver" - + "sion\030\010 \001(\t\032;\n\031ConversationProcessConfig\022" - + "\036\n\026recent_sentences_count\030\002 \001(\005\032\207\001\n\025Mess" - + "ageAnalysisConfig\022 \n\030enable_entity_extra" - + "ction\030\002 \001(\010\022!\n\031enable_sentiment_analysis" - + "\030\003 \001(\010\022)\n\034enable_sentiment_analysis_v3\030\005" - + " \001(\010B\003\340A\001\"\304\003\n\027HumanAgentHandoffConfig\022b\n" - + "\022live_person_config\030\001 \001(\0132D.google.cloud" - + ".dialogflow.v2.HumanAgentHandoffConfig.L" - + "ivePersonConfigH\000\022u\n\034salesforce_live_age" - + "nt_config\030\002 \001(\0132M.google.cloud.dialogflo" - + "w.v2.HumanAgentHandoffConfig.SalesforceL" - + "iveAgentConfigH\000\032/\n\020LivePersonConfig\022\033\n\016" - + "account_number\030\001 \001(\tB\003\340A\002\032\213\001\n\031Salesforce" - + "LiveAgentConfig\022\034\n\017organization_id\030\001 \001(\t" - + "B\003\340A\002\022\032\n\rdeployment_id\030\002 \001(\tB\003\340A\002\022\026\n\tbut" - + "ton_id\030\003 \001(\tB\003\340A\002\022\034\n\017endpoint_domain\030\004 \001" - + "(\tB\003\340A\002B\017\n\ragent_service\"\277\001\n\022Notificatio" - + "nConfig\022\r\n\005topic\030\001 \001(\t\022T\n\016message_format" - + "\030\002 \001(\0162<.google.cloud.dialogflow.v2.Noti" - + "ficationConfig.MessageFormat\"D\n\rMessageF" - + "ormat\022\036\n\032MESSAGE_FORMAT_UNSPECIFIED\020\000\022\t\n" - + "\005PROTO\020\001\022\010\n\004JSON\020\002\"3\n\rLoggingConfig\022\"\n\032e" - + "nable_stackdriver_logging\030\003 \001(\010\"\362\001\n\021Sugg" - + "estionFeature\022@\n\004type\030\001 \001(\01622.google.clo" - + "ud.dialogflow.v2.SuggestionFeature.Type\"" - + "\232\001\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\026\n\022ARTICL" - + "E_SUGGESTION\020\001\022\007\n\003FAQ\020\002\022\017\n\013SMART_REPLY\020\003" - + "\022\036\n\032CONVERSATION_SUMMARIZATION\020\010\022\024\n\020KNOW" - + "LEDGE_SEARCH\020\016\022\024\n\020KNOWLEDGE_ASSIST\020\017\"\212\002\n" - + "!SetSuggestionFeatureConfigRequest\022!\n\024co" - + "nversation_profile\030\001 \001(\tB\003\340A\002\022K\n\020partici" - + "pant_role\030\002 \001(\0162,.google.cloud.dialogflo" - + "w.v2.Participant.RoleB\003\340A\002\022u\n\031suggestion" - + "_feature_config\030\003 \001(\0132M.google.cloud.dia" + + "antConfig.SuggestionTriggerSettings\022a\n\014q" + + "uery_config\030\006 \001(\0132K.google.cloud.dialogf" + + "low.v2.HumanAgentAssistantConfig.Suggest" + + "ionQueryConfig\022p\n\031conversation_model_con" + + "fig\030\007 \001(\0132M.google.cloud.dialogflow.v2.H" + + "umanAgentAssistantConfig.ConversationMod" + + "elConfig\022t\n\033conversation_process_config\030" + + "\010 \001(\0132O.google.cloud.dialogflow.v2.Human" + + "AgentAssistantConfig.ConversationProcess" + + "Config\032\235\003\n\020SuggestionConfig\022f\n\017feature_c" + + "onfigs\030\002 \003(\0132M.google.cloud.dialogflow.v" + + "2.HumanAgentAssistantConfig.SuggestionFe" + + "atureConfig\022\"\n\032group_suggestion_response" + + "s\030\003 \001(\010\022?\n\ngenerators\030\004 \003(\tB+\340A\001\372A%\n#dia" + + "logflow.googleapis.com/Generator\0228\n+disa" + + "ble_high_latency_features_sync_delivery\030" + + "\005 \001(\010B\003\340A\001\022.\n!skip_empty_event_based_sug" + + "gestion\030\006 \001(\010B\003\340A\001\022-\n use_unredacted_con" + + "versation_data\030\010 \001(\010B\003\340A\001\022#\n\026enable_asyn" + + "c_tool_call\030\t \001(\010B\003\340A\001\032\231\r\n\025SuggestionQue" + + "ryConfig\022\213\001\n\033knowledge_base_query_source" + + "\030\001 \001(\0132d.google.cloud.dialogflow.v2.Huma" + + "nAgentAssistantConfig.SuggestionQueryCon" + + "fig.KnowledgeBaseQuerySourceH\000\022\200\001\n\025docum" + + "ent_query_source\030\002 \001(\0132_.google.cloud.di" + + "alogflow.v2.HumanAgentAssistantConfig.Su" + + "ggestionQueryConfig.DocumentQuerySourceH" + + "\000\022\204\001\n\027dialogflow_query_source\030\003 \001(\0132a.go" + + "ogle.cloud.dialogflow.v2.HumanAgentAssis" + + "tantConfig.SuggestionQueryConfig.Dialogf" + + "lowQuerySourceH\000\022\023\n\013max_results\030\004 \001(\005\022\034\n" + + "\024confidence_threshold\030\005 \001(\002\022\202\001\n\027context_" + + "filter_settings\030\007 \001(\0132a.google.cloud.dia" + "logflow.v2.HumanAgentAssistantConfig.Sug" - + "gestionFeatureConfigB\003\340A\002\"\357\001\n#ClearSugge" - + "stionFeatureConfigRequest\022!\n\024conversatio" - + "n_profile\030\001 \001(\tB\003\340A\002\022K\n\020participant_role" - + "\030\002 \001(\0162,.google.cloud.dialogflow.v2.Part" - + "icipant.RoleB\003\340A\002\022X\n\027suggestion_feature_" - + "type\030\003 \001(\01622.google.cloud.dialogflow.v2." - + "SuggestionFeature.TypeB\003\340A\002\"\243\002\n+SetSugge" - + "stionFeatureConfigOperationMetadata\022\034\n\024c" - + "onversation_profile\030\001 \001(\t\022K\n\020participant" - + "_role\030\002 \001(\0162,.google.cloud.dialogflow.v2" - + ".Participant.RoleB\003\340A\002\022X\n\027suggestion_fea" - + "ture_type\030\003 \001(\01622.google.cloud.dialogflo" - + "w.v2.SuggestionFeature.TypeB\003\340A\002\022/\n\013crea" - + "te_time\030\004 \001(\0132\032.google.protobuf.Timestam" - + "p\"\245\002\n-ClearSuggestionFeatureConfigOperat" - + "ionMetadata\022\034\n\024conversation_profile\030\001 \001(" - + "\t\022K\n\020participant_role\030\002 \001(\0162,.google.clo" - + "ud.dialogflow.v2.Participant.RoleB\003\340A\002\022X" - + "\n\027suggestion_feature_type\030\003 \001(\01622.google" - + ".cloud.dialogflow.v2.SuggestionFeature.T" - + "ypeB\003\340A\002\022/\n\013create_time\030\004 \001(\0132\032.google.p" - + "rotobuf.Timestamp2\263\024\n\024ConversationProfil" - + "es\022\220\002\n\030ListConversationProfiles\022;.google" - + ".cloud.dialogflow.v2.ListConversationPro" - + "filesRequest\032<.google.cloud.dialogflow.v" - + "2.ListConversationProfilesResponse\"y\332A\006p" - + "arent\202\323\344\223\002j\022,/v2/{parent=projects/*}/con" - + "versationProfilesZ:\0228/v2/{parent=project" - + "s/*/locations/*}/conversationProfiles\022\375\001" - + "\n\026GetConversationProfile\0229.google.cloud." - + "dialogflow.v2.GetConversationProfileRequ" + + "gestionQueryConfig.ContextFilterSettings" + + "\022k\n\010sections\030\010 \001(\0132T.google.cloud.dialog" + + "flow.v2.HumanAgentAssistantConfig.Sugges" + + "tionQueryConfig.SectionsB\003\340A\001\022\031\n\014context" + + "_size\030\t \001(\005B\003\340A\001\032d\n\030KnowledgeBaseQuerySo" + + "urce\022H\n\017knowledge_bases\030\001 \003(\tB/\340A\002\372A)\n\'d" + + "ialogflow.googleapis.com/KnowledgeBase\032T" + + "\n\023DocumentQuerySource\022=\n\tdocuments\030\001 \003(\t" + + "B*\340A\002\372A$\n\"dialogflow.googleapis.com/Docu" + + "ment\032\276\002\n\025DialogflowQuerySource\0226\n\005agent\030" + + "\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.googleapis.com" + + "/Agent\022\234\001\n\027human_agent_side_config\030\003 \001(\013" + + "2v.google.cloud.dialogflow.v2.HumanAgent" + + "AssistantConfig.SuggestionQueryConfig.Di" + + "alogflowQuerySource.HumanAgentSideConfig" + + "B\003\340A\001\032N\n\024HumanAgentSideConfig\0226\n\005agent\030\001" + + " \001(\tB\'\340A\001\372A!\n\037dialogflow.googleapis.com/" + + "Agent\032v\n\025ContextFilterSettings\022\035\n\025drop_h" + + "andoff_messages\030\001 \001(\010\022#\n\033drop_virtual_ag" + + "ent_messages\030\002 \001(\010\022\031\n\021drop_ivr_messages\030" + + "\003 \001(\010\032\242\002\n\010Sections\022w\n\rsection_types\030\001 \003(" + + "\0162`.google.cloud.dialogflow.v2.HumanAgen" + + "tAssistantConfig.SuggestionQueryConfig.S" + + "ections.SectionType\"\234\001\n\013SectionType\022\034\n\030S" + + "ECTION_TYPE_UNSPECIFIED\020\000\022\r\n\tSITUATION\020\001" + + "\022\n\n\006ACTION\020\002\022\016\n\nRESOLUTION\020\003\022\033\n\027REASON_F" + + "OR_CANCELLATION\020\004\022\031\n\025CUSTOMER_SATISFACTI" + + "ON\020\005\022\014\n\010ENTITIES\020\006B\016\n\014query_source\032z\n\027Co" + + "nversationModelConfig\022?\n\005model\030\001 \001(\tB0\372A" + + "-\n+dialogflow.googleapis.com/Conversatio" + + "nModel\022\036\n\026baseline_model_version\030\010 \001(\t\032;" + + "\n\031ConversationProcessConfig\022\036\n\026recent_se" + + "ntences_count\030\002 \001(\005\032\207\001\n\025MessageAnalysisC" + + "onfig\022 \n\030enable_entity_extraction\030\002 \001(\010\022" + + "!\n\031enable_sentiment_analysis\030\003 \001(\010\022)\n\034en" + + "able_sentiment_analysis_v3\030\005 \001(\010B\003\340A\001\"\304\003" + + "\n\027HumanAgentHandoffConfig\022b\n\022live_person" + + "_config\030\001 \001(\0132D.google.cloud.dialogflow." + + "v2.HumanAgentHandoffConfig.LivePersonCon" + + "figH\000\022u\n\034salesforce_live_agent_config\030\002 " + + "\001(\0132M.google.cloud.dialogflow.v2.HumanAg" + + "entHandoffConfig.SalesforceLiveAgentConf" + + "igH\000\032/\n\020LivePersonConfig\022\033\n\016account_numb" + + "er\030\001 \001(\tB\003\340A\002\032\213\001\n\031SalesforceLiveAgentCon" + + "fig\022\034\n\017organization_id\030\001 \001(\tB\003\340A\002\022\032\n\rdep" + + "loyment_id\030\002 \001(\tB\003\340A\002\022\026\n\tbutton_id\030\003 \001(\t" + + "B\003\340A\002\022\034\n\017endpoint_domain\030\004 \001(\tB\003\340A\002B\017\n\ra" + + "gent_service\"\277\001\n\022NotificationConfig\022\r\n\005t" + + "opic\030\001 \001(\t\022T\n\016message_format\030\002 \001(\0162<.goo" + + "gle.cloud.dialogflow.v2.NotificationConf" + + "ig.MessageFormat\"D\n\rMessageFormat\022\036\n\032MES" + + "SAGE_FORMAT_UNSPECIFIED\020\000\022\t\n\005PROTO\020\001\022\010\n\004" + + "JSON\020\002\"3\n\rLoggingConfig\022\"\n\032enable_stackd" + + "river_logging\030\003 \001(\010\"\250\002\n\tSipConfig\022&\n\036cre" + + "ate_conversation_on_the_fly\030\001 \001(\010\022\026\n\016ina" + + "ctive_start\030\003 \001(\010\022?\n\034max_audio_recording" + + "_duration\030\004 \001(\0132\031.google.protobuf.Durati" + + "on\022\'\n\037allow_virtual_agent_interaction\030\005 " + + "\001(\010\022!\n\031keep_conversation_running\030\006 \001(\010\022%" + + "\n\035copy_inbound_call_leg_headers\030\010 \003(\t\022\'\n" + + "\037ignore_reinvite_media_direction\030\t \001(\010\"\362" + + "\001\n\021SuggestionFeature\022@\n\004type\030\001 \001(\01622.goo" + + "gle.cloud.dialogflow.v2.SuggestionFeatur" + + "e.Type\"\232\001\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\026\n" + + "\022ARTICLE_SUGGESTION\020\001\022\007\n\003FAQ\020\002\022\017\n\013SMART_" + + "REPLY\020\003\022\036\n\032CONVERSATION_SUMMARIZATION\020\010\022" + + "\024\n\020KNOWLEDGE_SEARCH\020\016\022\024\n\020KNOWLEDGE_ASSIS" + + "T\020\017\"\212\002\n!SetSuggestionFeatureConfigReques" + + "t\022!\n\024conversation_profile\030\001 \001(\tB\003\340A\002\022K\n\020" + + "participant_role\030\002 \001(\0162,.google.cloud.di" + + "alogflow.v2.Participant.RoleB\003\340A\002\022u\n\031sug" + + "gestion_feature_config\030\003 \001(\0132M.google.cl" + + "oud.dialogflow.v2.HumanAgentAssistantCon" + + "fig.SuggestionFeatureConfigB\003\340A\002\"\357\001\n#Cle" + + "arSuggestionFeatureConfigRequest\022!\n\024conv" + + "ersation_profile\030\001 \001(\tB\003\340A\002\022K\n\020participa" + + "nt_role\030\002 \001(\0162,.google.cloud.dialogflow." + + "v2.Participant.RoleB\003\340A\002\022X\n\027suggestion_f" + + "eature_type\030\003 \001(\01622.google.cloud.dialogf" + + "low.v2.SuggestionFeature.TypeB\003\340A\002\"\243\002\n+S" + + "etSuggestionFeatureConfigOperationMetada" + + "ta\022\034\n\024conversation_profile\030\001 \001(\t\022K\n\020part" + + "icipant_role\030\002 \001(\0162,.google.cloud.dialog" + + "flow.v2.Participant.RoleB\003\340A\002\022X\n\027suggest" + + "ion_feature_type\030\003 \001(\01622.google.cloud.di" + + "alogflow.v2.SuggestionFeature.TypeB\003\340A\002\022" + + "/\n\013create_time\030\004 \001(\0132\032.google.protobuf.T" + + "imestamp\"\245\002\n-ClearSuggestionFeatureConfi" + + "gOperationMetadata\022\034\n\024conversation_profi" + + "le\030\001 \001(\t\022K\n\020participant_role\030\002 \001(\0162,.goo" + + "gle.cloud.dialogflow.v2.Participant.Role" + + "B\003\340A\002\022X\n\027suggestion_feature_type\030\003 \001(\01622" + + ".google.cloud.dialogflow.v2.SuggestionFe" + + "ature.TypeB\003\340A\002\022/\n\013create_time\030\004 \001(\0132\032.g" + + "oogle.protobuf.Timestamp2\263\024\n\024Conversatio" + + "nProfiles\022\220\002\n\030ListConversationProfiles\022;" + + ".google.cloud.dialogflow.v2.ListConversa" + + "tionProfilesRequest\032<.google.cloud.dialo" + + "gflow.v2.ListConversationProfilesRespons" + + "e\"y\332A\006parent\202\323\344\223\002j\022,/v2/{parent=projects" + + "/*}/conversationProfilesZ:\0228/v2/{parent=" + + "projects/*/locations/*}/conversationProf" + + "iles\022\375\001\n\026GetConversationProfile\0229.google" + + ".cloud.dialogflow.v2.GetConversationProf" + + "ileRequest\032/.google.cloud.dialogflow.v2." + + "ConversationProfile\"w\332A\004name\202\323\344\223\002j\022,/v2/" + + "{name=projects/*/conversationProfiles/*}" + + "Z:\0228/v2/{name=projects/*/locations/*/con" + + "versationProfiles/*}\022\310\002\n\031CreateConversat" + + "ionProfile\022<.google.cloud.dialogflow.v2." + + "CreateConversationProfileRequest\032/.googl" + + "e.cloud.dialogflow.v2.ConversationProfil" + + "e\"\273\001\332A\033parent,conversation_profile\202\323\344\223\002\226" + + "\001\",/v2/{parent=projects/*}/conversationP" + + "rofiles:\024conversation_profileZP\"8/v2/{pa" + + "rent=projects/*/locations/*}/conversatio" + + "nProfiles:\024conversation_profile\022\367\002\n\031Upda" + + "teConversationProfile\022<.google.cloud.dia" + + "logflow.v2.UpdateConversationProfileRequ" + "est\032/.google.cloud.dialogflow.v2.Convers" - + "ationProfile\"w\332A\004name\202\323\344\223\002j\022,/v2/{name=p" - + "rojects/*/conversationProfiles/*}Z:\0228/v2" - + "/{name=projects/*/locations/*/conversati" - + "onProfiles/*}\022\310\002\n\031CreateConversationProf" - + "ile\022<.google.cloud.dialogflow.v2.CreateC" - + "onversationProfileRequest\032/.google.cloud" - + ".dialogflow.v2.ConversationProfile\"\273\001\332A\033" - + "parent,conversation_profile\202\323\344\223\002\226\001\",/v2/" - + "{parent=projects/*}/conversationProfiles" - + ":\024conversation_profileZP\"8/v2/{parent=pr" - + "ojects/*/locations/*}/conversationProfil" - + "es:\024conversation_profile\022\367\002\n\031UpdateConve" - + "rsationProfile\022<.google.cloud.dialogflow" - + ".v2.UpdateConversationProfileRequest\032/.g" - + "oogle.cloud.dialogflow.v2.ConversationPr" - + "ofile\"\352\001\332A conversation_profile,update_m" - + "ask\202\323\344\223\002\300\0012A/v2/{conversation_profile.na" - + "me=projects/*/conversationProfiles/*}:\024c" - + "onversation_profileZe2M/v2/{conversation" - + "_profile.name=projects/*/locations/*/con" - + "versationProfiles/*}:\024conversation_profi" - + "le\022\352\001\n\031DeleteConversationProfile\022<.googl" - + "e.cloud.dialogflow.v2.DeleteConversation" - + "ProfileRequest\032\026.google.protobuf.Empty\"w" - + "\332A\004name\202\323\344\223\002j*,/v2/{name=projects/*/conv" - + "ersationProfiles/*}Z:*8/v2/{name=project" - + "s/*/locations/*/conversationProfiles/*}\022" - + "\350\003\n\032SetSuggestionFeatureConfig\022=.google." - + "cloud.dialogflow.v2.SetSuggestionFeature" - + "ConfigRequest\032\035.google.longrunning.Opera" - + "tion\"\353\002\312AB\n\023ConversationProfile\022+SetSugg" - + "estionFeatureConfigOperationMetadata\332A\024c" - + "onversation_profile\332A?conversation_profi" - + "le,participant_role,suggestion_feature_c" - + "onfig\202\323\344\223\002\306\001\"W/v2/{conversation_profile=" - + "projects/*/conversationProfiles/*}:setSu" - + "ggestionFeatureConfig:\001*Zh\"c/v2/{convers" - + "ation_profile=projects/*/locations/*/con" - + "versationProfiles/*}:setSuggestionFeatur" - + "eConfig:\001*\022\360\003\n\034ClearSuggestionFeatureCon" - + "fig\022?.google.cloud.dialogflow.v2.ClearSu" - + "ggestionFeatureConfigRequest\032\035.google.lo" - + "ngrunning.Operation\"\357\002\312AD\n\023ConversationP" - + "rofile\022-ClearSuggestionFeatureConfigOper" - + "ationMetadata\332A\024conversation_profile\332A=c" - + "onversation_profile,participant_role,sug" - + "gestion_feature_type\202\323\344\223\002\312\001\"Y/v2/{conver" - + "sation_profile=projects/*/conversationPr" - + "ofiles/*}:clearSuggestionFeatureConfig:\001" - + "*Zj\"e/v2/{conversation_profile=projects/" - + "*/locations/*/conversationProfiles/*}:cl" - + "earSuggestionFeatureConfig:\001*\032x\312A\031dialog" - + "flow.googleapis.com\322AYhttps://www.google" - + "apis.com/auth/cloud-platform,https://www" - + ".googleapis.com/auth/dialogflowB\235\002\n\036com." - + "google.cloud.dialogflow.v2B\030Conversation" - + "ProfileProtoP\001Z>cloud.google.com/go/dial" - + "ogflow/apiv2/dialogflowpb;dialogflowpb\242\002" - + "\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A|\n,dia" - + "logflow.googleapis.com/CXSecuritySetting" - + "s\022Lprojects/{project}/locations/{locatio" - + "n}/securitySettings/{security_settings}b" - + "\006proto3" + + "ationProfile\"\352\001\332A conversation_profile,u" + + "pdate_mask\202\323\344\223\002\300\0012A/v2/{conversation_pro" + + "file.name=projects/*/conversationProfile" + + "s/*}:\024conversation_profileZe2M/v2/{conve" + + "rsation_profile.name=projects/*/location" + + "s/*/conversationProfiles/*}:\024conversatio" + + "n_profile\022\352\001\n\031DeleteConversationProfile\022" + + "<.google.cloud.dialogflow.v2.DeleteConve" + + "rsationProfileRequest\032\026.google.protobuf." + + "Empty\"w\332A\004name\202\323\344\223\002j*,/v2/{name=projects" + + "/*/conversationProfiles/*}Z:*8/v2/{name=" + + "projects/*/locations/*/conversationProfi" + + "les/*}\022\350\003\n\032SetSuggestionFeatureConfig\022=." + + "google.cloud.dialogflow.v2.SetSuggestion" + + "FeatureConfigRequest\032\035.google.longrunnin" + + "g.Operation\"\353\002\312AB\n\023ConversationProfile\022+" + + "SetSuggestionFeatureConfigOperationMetad" + + "ata\332A\024conversation_profile\332A?conversatio" + + "n_profile,participant_role,suggestion_fe" + + "ature_config\202\323\344\223\002\306\001\"W/v2/{conversation_p" + + "rofile=projects/*/conversationProfiles/*" + + "}:setSuggestionFeatureConfig:\001*Zh\"c/v2/{" + + "conversation_profile=projects/*/location" + + "s/*/conversationProfiles/*}:setSuggestio" + + "nFeatureConfig:\001*\022\360\003\n\034ClearSuggestionFea" + + "tureConfig\022?.google.cloud.dialogflow.v2." + + "ClearSuggestionFeatureConfigRequest\032\035.go" + + "ogle.longrunning.Operation\"\357\002\312AD\n\023Conver" + + "sationProfile\022-ClearSuggestionFeatureCon" + + "figOperationMetadata\332A\024conversation_prof" + + "ile\332A=conversation_profile,participant_r" + + "ole,suggestion_feature_type\202\323\344\223\002\312\001\"Y/v2/" + + "{conversation_profile=projects/*/convers" + + "ationProfiles/*}:clearSuggestionFeatureC" + + "onfig:\001*Zj\"e/v2/{conversation_profile=pr" + + "ojects/*/locations/*/conversationProfile" + + "s/*}:clearSuggestionFeatureConfig:\001*\032x\312A" + + "\031dialogflow.googleapis.com\322AYhttps://www" + + ".googleapis.com/auth/cloud-platform,http" + + "s://www.googleapis.com/auth/dialogflowB\235" + + "\002\n\036com.google.cloud.dialogflow.v2B\030Conve" + + "rsationProfileProtoP\001Z>cloud.google.com/" + + "go/dialogflow/apiv2/dialogflowpb;dialogf" + + "lowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352" + + "A|\n,dialogflow.googleapis.com/CXSecurity" + + "Settings\022Lprojects/{project}/locations/{" + + "location}/securitySettings/{security_set" + + "tings}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -503,6 +519,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NewRecognitionResultNotificationConfig", "SttConfig", "LanguageCode", + "SipConfig", "TimeZone", "SecuritySettings", "TtsConfig", @@ -598,6 +615,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableQuerySuggestionOnly", "EnableResponseDebugInfo", "RaiSettings", + "SuggestionTriggerEvent", + "DisableQuerySearchContext", "SuggestionTriggerSettings", "QueryConfig", "ConversationModelConfig", @@ -758,8 +777,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "EnableStackdriverLogging", }); - internal_static_google_cloud_dialogflow_v2_SuggestionFeature_descriptor = + internal_static_google_cloud_dialogflow_v2_SipConfig_descriptor = getDescriptor().getMessageType(12); + internal_static_google_cloud_dialogflow_v2_SipConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_SipConfig_descriptor, + new java.lang.String[] { + "CreateConversationOnTheFly", + "InactiveStart", + "MaxAudioRecordingDuration", + "AllowVirtualAgentInteraction", + "KeepConversationRunning", + "CopyInboundCallLegHeaders", + "IgnoreReinviteMediaDirection", + }); + internal_static_google_cloud_dialogflow_v2_SuggestionFeature_descriptor = + getDescriptor().getMessageType(13); internal_static_google_cloud_dialogflow_v2_SuggestionFeature_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SuggestionFeature_descriptor, @@ -767,7 +800,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", }); internal_static_google_cloud_dialogflow_v2_SetSuggestionFeatureConfigRequest_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(14); internal_static_google_cloud_dialogflow_v2_SetSuggestionFeatureConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SetSuggestionFeatureConfigRequest_descriptor, @@ -775,7 +808,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationProfile", "ParticipantRole", "SuggestionFeatureConfig", }); internal_static_google_cloud_dialogflow_v2_ClearSuggestionFeatureConfigRequest_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(15); internal_static_google_cloud_dialogflow_v2_ClearSuggestionFeatureConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_ClearSuggestionFeatureConfigRequest_descriptor, @@ -783,7 +816,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationProfile", "ParticipantRole", "SuggestionFeatureType", }); internal_static_google_cloud_dialogflow_v2_SetSuggestionFeatureConfigOperationMetadata_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(16); internal_static_google_cloud_dialogflow_v2_SetSuggestionFeatureConfigOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SetSuggestionFeatureConfigOperationMetadata_descriptor, @@ -791,7 +824,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationProfile", "ParticipantRole", "SuggestionFeatureType", "CreateTime", }); internal_static_google_cloud_dialogflow_v2_ClearSuggestionFeatureConfigOperationMetadata_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(17); internal_static_google_cloud_dialogflow_v2_ClearSuggestionFeatureConfigOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_ClearSuggestionFeatureConfigOperationMetadata_descriptor, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java index fe7459b38375..a6207c3f1837 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationProto.java @@ -551,7 +551,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\01321.google.cloud.dialogflow.v2.SearchKnowledgeAnswer\022\027\n" + "\017rewritten_query\030\003 \001(\t\022Y\n" + "\033search_knowledge_debug_info\030\004 \001(\01324." - + "google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo\"\316\003\n" + + "google.cloud.dialogflow.v2.SearchKnowledgeDebugInfo\"\347\003\n" + "\025SearchKnowledgeAnswer\022\016\n" + "\006answer\030\001 \001(\t\022Q\n" + "\013answer_type\030\002 \001(\0162<.goo" @@ -564,12 +564,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005title\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\017\n" + "\007snippet\030\003 \001(\t\022)\n" - + "\010metadata\030\005 \001(\0132\027.google.protobuf.Struct\"N\n\n" + + "\010metadata\030\005 \001(\0132\027.google.protobuf.Struct\"g\n\n" + "AnswerType\022\033\n" + "\027ANSWER_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003FAQ\020\001\022\016\n\n" + "GENERATIVE\020\002\022\n\n" - + "\006INTENT\020\003\"\354\001\n" + + "\006INTENT\020\003\022\014\n" + + "\010PLAYBOOK\020\004\022\t\n" + + "\005EVENT\020\005\"\354\001\n" + "\032GenerateSuggestionsRequest\022D\n" + "\014conversation\030\001 \001(\tB.\340A\002\372A(\n" + "&dialogflow.googleapis.com/Conversation\022A\n" @@ -578,79 +580,76 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016trigger_events\030\003" + " \003(\0162(.google.cloud.dialogflow.v2.TriggerEventB\003\340A\0012\246\032\n\r" + "Conversations\022\214\002\n" - + "\022CreateConversation\0225.google.cloud.dialogflow.v2.CreateConversa" - + "tionRequest\032(.google.cloud.dialogflow.v2" - + ".Conversation\"\224\001\332A\023parent,conversation\202\323" - + "\344\223\002x\"%/v2/{parent=projects/*}/conversati" - + "ons:\014conversationZA\"1/v2/{parent=project" - + "s/*/locations/*}/conversations:\014conversation\022\355\001\n" - + "\021ListConversations\0224.google.cloud.dialogflow.v2.ListConversationsRequest" - + "\0325.google.cloud.dialogflow.v2.ListConver" - + "sationsResponse\"k\332A\006parent\202\323\344\223\002\\\022%/v2/{p" - + "arent=projects/*}/conversationsZ3\0221/v2/{" - + "parent=projects/*/locations/*}/conversations\022\332\001\n" - + "\017GetConversation\0222.google.cloud.dialogflow.v2.GetConversationRequest\032(.g" - + "oogle.cloud.dialogflow.v2.Conversation\"i" - + "\332A\004name\202\323\344\223\002\\\022%/v2/{name=projects/*/conv" - + "ersations/*}Z3\0221/v2/{name=projects/*/locations/*/conversations/*}\022\375\001\n" - + "\024CompleteConversation\0227.google.cloud.dialogflow.v2." - + "CompleteConversationRequest\032(.google.clo" - + "ud.dialogflow.v2.Conversation\"\201\001\332A\004name\202" - + "\323\344\223\002t\"./v2/{name=projects/*/conversation" - + "s/*}:complete:\001*Z?\":/v2/{name=projects/*" - + "/locations/*/conversations/*}:complete:\001*\022\222\002\n" - + "\027IngestContextReferences\022:.google.cloud.dialogflow.v2.IngestContextReferenc" - + "esRequest\032;.google.cloud.dialogflow.v2.I" - + "ngestContextReferencesResponse\"~\332A\037conve" - + "rsation,context_references\202\323\344\223\002V\"Q/v2/{c" - + "onversation=projects/*/locations/*/conve" - + "rsations/*}:ingestContextReferences:\001*\022\365\001\n" - + "\014ListMessages\022/.google.cloud.dialogflo" - + "w.v2.ListMessagesRequest\0320.google.cloud." - + "dialogflow.v2.ListMessagesResponse\"\201\001\332A\006" - + "parent\202\323\344\223\002r\0220/v2/{parent=projects/*/con" - + "versations/*}/messagesZ>\022.google.cloud.dialogflow.v2.SuggestConversationSummaryResp" - + "onse\"\326\001\332A\014conversation\202\323\344\223\002\300\001\"T/v2/{conv" - + "ersation=projects/*/conversations/*}/suggestions:suggestConversationSummary:\001*Ze" - + "\"`/v2/{conversation=projects/*/locations" - + "/*/conversations/*}/suggestions:suggestConversationSummary:\001*\022\335\002\n" - + "\030GenerateStatelessSummary\022;.google.cloud.dialogflow.v2." - + "GenerateStatelessSummaryRequest\032<.google.cloud.dialogflow.v2.GenerateStatelessSu" - + "mmaryResponse\"\305\001\202\323\344\223\002\276\001\"S/v2/{stateless_" - + "conversation.parent=projects/*}/suggestions:generateStatelessSummary:\001*Zd\"_/v2/{" - + "stateless_conversation.parent=projects/*" - + "/locations/*}/suggestions:generateStatelessSummary:\001*\022\353\001\n" - + "\033GenerateStatelessSuggestion\022>.google.cloud.dialogflow.v2.Gener" - + "ateStatelessSuggestionRequest\032?.google.cloud.dialogflow.v2.GenerateStatelessSugg" - + "estionResponse\"K\202\323\344\223\002E\"@/v2/{parent=proj" - + "ects/*/locations/*}/statelessSuggestion:generate:\001*\022\256\003\n" - + "\017SearchKnowledge\0222.google.cloud.dialogflow.v2.SearchKnowledgeRequ" - + "est\0323.google.cloud.dialogflow.v2.SearchK" - + "nowledgeResponse\"\261\002\202\323\344\223\002\252\002\"3/v2/{parent=" - + "projects/*}/suggestions:searchKnowledge:\001*ZD\"?/v2/{parent=projects/*/locations/*" - + "}/suggestions:searchKnowledge:\001*ZN\"I/v2/{conversation=projects/*/conversations/*" - + "}/suggestions:searchKnowledge:\001*ZZ\"U/v2/{conversation=projects/*/locations/*/con" - + "versations/*}/suggestions:searchKnowledge:\001*\022\273\002\n" - + "\023GenerateSuggestions\0226.google.cloud.dialogflow.v2.GenerateSuggestionsReq" - + "uest\0327.google.cloud.dialogflow.v2.Genera" - + "teSuggestionsResponse\"\262\001\332A\014conversation\202" - + "\323\344\223\002\234\001\"B/v2/{conversation=projects/*/con" - + "versations/*}/suggestions:generate:\001*ZS\"N/v2/{conversation=projects/*/locations/" - + "*/conversations/*}/suggestions:generate:" - + "\001*\032x\312A\031dialogflow.googleapis.com\322AYhttps" - + "://www.googleapis.com/auth/cloud-platfor" - + "m,https://www.googleapis.com/auth/dialogflowB\275\003\n" - + "\036com.google.cloud.dialogflow.v2B\021ConversationProtoP\001Z>cloud.google.com/g" - + "o/dialogflow/apiv2/dialogflowpb;dialogfl" - + "owpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A\305\001\n" - + "(discoveryengine.googleapis.com/DataStore\022Xprojects/{project}/locations/{loca" - + "tion}/collections/{collection}/dataStores/{data_store}\022?projects/{project}/locat" - + "ions/{location}/dataStores/{data_store}\352AZ\n" - + "\027ces.googleapis.com/Tool\022?projects/{project}/locations/{location}/apps/{app}/" - + "tools/{tool}b\006proto3" + + "\022CreateConversation\0225.google.cloud.dia" + + "logflow.v2.CreateConversationRequest\032(.g" + + "oogle.cloud.dialogflow.v2.Conversation\"\224" + + "\001\332A\023parent,conversation\202\323\344\223\002x\"%/v2/{pare" + + "nt=projects/*}/conversations:\014conversati" + + "onZA\"1/v2/{parent=projects/*/locations/*}/conversations:\014conversation\022\355\001\n" + + "\021ListConversations\0224.google.cloud.dialogflow.v2" + + ".ListConversationsRequest\0325.google.cloud.dialogflow.v2.ListConversationsResponse" + + "\"k\332A\006parent\202\323\344\223\002\\\022%/v2/{parent=projects/" + + "*}/conversationsZ3\0221/v2/{parent=projects/*/locations/*}/conversations\022\332\001\n" + + "\017GetConversation\0222.google.cloud.dialogflow.v2.G" + + "etConversationRequest\032(.google.cloud.dia" + + "logflow.v2.Conversation\"i\332A\004name\202\323\344\223\002\\\022%" + + "/v2/{name=projects/*/conversations/*}Z3\022" + + "1/v2/{name=projects/*/locations/*/conversations/*}\022\375\001\n" + + "\024CompleteConversation\0227.google.cloud.dialogflow.v2.CompleteConvers" + + "ationRequest\032(.google.cloud.dialogflow.v" + + "2.Conversation\"\201\001\332A\004name\202\323\344\223\002t\"./v2/{nam" + + "e=projects/*/conversations/*}:complete:\001" + + "*Z?\":/v2/{name=projects/*/locations/*/conversations/*}:complete:\001*\022\222\002\n" + + "\027IngestContextReferences\022:.google.cloud.dialogflow" + + ".v2.IngestContextReferencesRequest\032;.google.cloud.dialogflow.v2.IngestContextRef" + + "erencesResponse\"~\332A\037conversation,context" + + "_references\202\323\344\223\002V\"Q/v2/{conversation=pro" + + "jects/*/locations/*/conversations/*}:ingestContextReferences:\001*\022\365\001\n" + + "\014ListMessages\022/.google.cloud.dialogflow.v2.ListMessag" + + "esRequest\0320.google.cloud.dialogflow.v2.L" + + "istMessagesResponse\"\201\001\332A\006parent\202\323\344\223\002r\0220/" + + "v2/{parent=projects/*/conversations/*}/m" + + "essagesZ>\022.google.cloud.dialogflow.v2.Sugge" + + "stConversationSummaryResponse\"\326\001\332A\014conve" + + "rsation\202\323\344\223\002\300\001\"T/v2/{conversation=projec" + + "ts/*/conversations/*}/suggestions:suggestConversationSummary:\001*Ze\"`/v2/{conversa" + + "tion=projects/*/locations/*/conversation" + + "s/*}/suggestions:suggestConversationSummary:\001*\022\335\002\n" + + "\030GenerateStatelessSummary\022;.google.cloud.dialogflow.v2.GenerateStatele" + + "ssSummaryRequest\032<.google.cloud.dialogfl" + + "ow.v2.GenerateStatelessSummaryResponse\"\305" + + "\001\202\323\344\223\002\276\001\"S/v2/{stateless_conversation.pa" + + "rent=projects/*}/suggestions:generateStatelessSummary:\001*Zd\"_/v2/{stateless_conve" + + "rsation.parent=projects/*/locations/*}/s" + + "uggestions:generateStatelessSummary:\001*\022\353\001\n" + + "\033GenerateStatelessSuggestion\022>.google.cloud.dialogflow.v2.GenerateStatelessSug" + + "gestionRequest\032?.google.cloud.dialogflow.v2.GenerateStatelessSuggestionResponse\"" + + "K\202\323\344\223\002E\"@/v2/{parent=projects/*/locations/*}/statelessSuggestion:generate:\001*\022\256\003\n" + + "\017SearchKnowledge\0222.google.cloud.dialogfl" + + "ow.v2.SearchKnowledgeRequest\0323.google.cloud.dialogflow.v2.SearchKnowledgeRespons" + + "e\"\261\002\202\323\344\223\002\252\002\"3/v2/{parent=projects/*}/sug" + + "gestions:searchKnowledge:\001*ZD\"?/v2/{parent=projects/*/locations/*}/suggestions:s" + + "earchKnowledge:\001*ZN\"I/v2/{conversation=projects/*/conversations/*}/suggestions:s" + + "earchKnowledge:\001*ZZ\"U/v2/{conversation=p" + + "rojects/*/locations/*/conversations/*}/suggestions:searchKnowledge:\001*\022\273\002\n" + + "\023GenerateSuggestions\0226.google.cloud.dialogflow." + + "v2.GenerateSuggestionsRequest\0327.google.cloud.dialogflow.v2.GenerateSuggestionsRe" + + "sponse\"\262\001\332A\014conversation\202\323\344\223\002\234\001\"B/v2/{co" + + "nversation=projects/*/conversations/*}/suggestions:generate:\001*ZS\"N/v2/{conversat" + + "ion=projects/*/locations/*/conversations" + + "/*}/suggestions:generate:\001*\032x\312A\031dialogfl" + + "ow.googleapis.com\322AYhttps://www.googleap" + + "is.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\275\003\n" + + "\036com.google.cloud.dialogflow.v2B\021ConversationPr" + + "otoP\001Z>cloud.google.com/go/dialogflow/ap" + + "iv2/dialogflowpb;dialogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2\352A\305\001\n" + + "(discoveryengine.googleapis.com/DataStore\022Xprojects/" + + "{project}/locations/{location}/collections/{collection}/dataStores/{data_store}\022" + + "?projects/{project}/locations/{location}/dataStores/{data_store}\352AZ\n" + + "\027ces.googleapis.com/Tool\022?projects/{project}/locatio" + + "ns/{location}/apps/{app}/tools/{tool}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java index 67cca5aa60a6..fba4c240e063 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/HumanAgentAssistantConfig.java @@ -911,6 +911,65 @@ public interface SuggestionFeatureConfigOrBuilder */ com.google.cloud.dialogflow.v2.RaiSettingsOrBuilder getRaiSettingsOrBuilder(); + /** + * + * + *
            +     * Optional. The trigger event for suggestion.
            +     * If unspecified, it will be `CUSTOMER_MESSAGE`.
            +     * Supported features: KNOWLEDGE_ASSIST
            +     * For KNOWLEDGE_ASSIST, these four trigger events are supported:
            +     * 1. TRIGGER_EVENT_UNSPECIFIED
            +     * 2. END_OF_UTTERANCE
            +     * 3. CUSTOMER_MESSAGE
            +     * 4. AGENT_MESSAGE
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for suggestionTriggerEvent. + */ + int getSuggestionTriggerEventValue(); + + /** + * + * + *
            +     * Optional. The trigger event for suggestion.
            +     * If unspecified, it will be `CUSTOMER_MESSAGE`.
            +     * Supported features: KNOWLEDGE_ASSIST
            +     * For KNOWLEDGE_ASSIST, these four trigger events are supported:
            +     * 1. TRIGGER_EVENT_UNSPECIFIED
            +     * 2. END_OF_UTTERANCE
            +     * 3. CUSTOMER_MESSAGE
            +     * 4. AGENT_MESSAGE
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The suggestionTriggerEvent. + */ + com.google.cloud.dialogflow.v2.TriggerEvent getSuggestionTriggerEvent(); + + /** + * + * + *
            +     * Optional. If true, disable appending available search context to the
            +     * search query. Supported features: KNOWLEDGE_ASSIST
            +     * 
            + * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableQuerySearchContext. + */ + boolean getDisableQuerySearchContext(); + /** * * @@ -1128,7 +1187,9 @@ private SuggestionFeatureConfig(com.google.protobuf.GeneratedMessage.Builder super(builder); } - private SuggestionFeatureConfig() {} + private SuggestionFeatureConfig() { + suggestionTriggerEvent_ = 0; + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.ConversationProfileProto @@ -1401,6 +1462,82 @@ public com.google.cloud.dialogflow.v2.RaiSettingsOrBuilder getRaiSettingsOrBuild : raiSettings_; } + public static final int SUGGESTION_TRIGGER_EVENT_FIELD_NUMBER = 20; + private int suggestionTriggerEvent_ = 0; + + /** + * + * + *
            +     * Optional. The trigger event for suggestion.
            +     * If unspecified, it will be `CUSTOMER_MESSAGE`.
            +     * Supported features: KNOWLEDGE_ASSIST
            +     * For KNOWLEDGE_ASSIST, these four trigger events are supported:
            +     * 1. TRIGGER_EVENT_UNSPECIFIED
            +     * 2. END_OF_UTTERANCE
            +     * 3. CUSTOMER_MESSAGE
            +     * 4. AGENT_MESSAGE
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for suggestionTriggerEvent. + */ + @java.lang.Override + public int getSuggestionTriggerEventValue() { + return suggestionTriggerEvent_; + } + + /** + * + * + *
            +     * Optional. The trigger event for suggestion.
            +     * If unspecified, it will be `CUSTOMER_MESSAGE`.
            +     * Supported features: KNOWLEDGE_ASSIST
            +     * For KNOWLEDGE_ASSIST, these four trigger events are supported:
            +     * 1. TRIGGER_EVENT_UNSPECIFIED
            +     * 2. END_OF_UTTERANCE
            +     * 3. CUSTOMER_MESSAGE
            +     * 4. AGENT_MESSAGE
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The suggestionTriggerEvent. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.TriggerEvent getSuggestionTriggerEvent() { + com.google.cloud.dialogflow.v2.TriggerEvent result = + com.google.cloud.dialogflow.v2.TriggerEvent.forNumber(suggestionTriggerEvent_); + return result == null ? com.google.cloud.dialogflow.v2.TriggerEvent.UNRECOGNIZED : result; + } + + public static final int DISABLE_QUERY_SEARCH_CONTEXT_FIELD_NUMBER = 21; + private boolean disableQuerySearchContext_ = false; + + /** + * + * + *
            +     * Optional. If true, disable appending available search context to the
            +     * search query. Supported features: KNOWLEDGE_ASSIST
            +     * 
            + * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableQuerySearchContext. + */ + @java.lang.Override + public boolean getDisableQuerySearchContext() { + return disableQuerySearchContext_; + } + public static final int SUGGESTION_TRIGGER_SETTINGS_FIELD_NUMBER = 10; private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestionTriggerSettings_; @@ -1715,6 +1852,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(19, getRaiSettings()); } + if (suggestionTriggerEvent_ + != com.google.cloud.dialogflow.v2.TriggerEvent.TRIGGER_EVENT_UNSPECIFIED.getNumber()) { + output.writeEnum(20, suggestionTriggerEvent_); + } + if (disableQuerySearchContext_ != false) { + output.writeBool(21, disableQuerySearchContext_); + } getUnknownFields().writeTo(output); } @@ -1773,6 +1917,14 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getRaiSettings()); } + if (suggestionTriggerEvent_ + != com.google.cloud.dialogflow.v2.TriggerEvent.TRIGGER_EVENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, suggestionTriggerEvent_); + } + if (disableQuerySearchContext_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(21, disableQuerySearchContext_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1807,6 +1959,8 @@ public boolean equals(final java.lang.Object obj) { if (hasRaiSettings()) { if (!getRaiSettings().equals(other.getRaiSettings())) return false; } + if (suggestionTriggerEvent_ != other.suggestionTriggerEvent_) return false; + if (getDisableQuerySearchContext() != other.getDisableQuerySearchContext()) return false; if (hasSuggestionTriggerSettings() != other.hasSuggestionTriggerSettings()) return false; if (hasSuggestionTriggerSettings()) { if (!getSuggestionTriggerSettings().equals(other.getSuggestionTriggerSettings())) @@ -1861,6 +2015,10 @@ public int hashCode() { hash = (37 * hash) + RAI_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getRaiSettings().hashCode(); } + hash = (37 * hash) + SUGGESTION_TRIGGER_EVENT_FIELD_NUMBER; + hash = (53 * hash) + suggestionTriggerEvent_; + hash = (37 * hash) + DISABLE_QUERY_SEARCH_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableQuerySearchContext()); if (hasSuggestionTriggerSettings()) { hash = (37 * hash) + SUGGESTION_TRIGGER_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSuggestionTriggerSettings().hashCode(); @@ -2059,6 +2217,8 @@ public Builder clear() { raiSettingsBuilder_.dispose(); raiSettingsBuilder_ = null; } + suggestionTriggerEvent_ = 0; + disableQuerySearchContext_ = false; suggestionTriggerSettings_ = null; if (suggestionTriggerSettingsBuilder_ != null) { suggestionTriggerSettingsBuilder_.dispose(); @@ -2154,25 +2314,31 @@ private void buildPartial0( to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000100) != 0)) { + result.suggestionTriggerEvent_ = suggestionTriggerEvent_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.disableQuerySearchContext_ = disableQuerySearchContext_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { result.suggestionTriggerSettings_ = suggestionTriggerSettingsBuilder_ == null ? suggestionTriggerSettings_ : suggestionTriggerSettingsBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.queryConfig_ = queryConfigBuilder_ == null ? queryConfig_ : queryConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.conversationModelConfig_ = conversationModelConfigBuilder_ == null ? conversationModelConfig_ : conversationModelConfigBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.conversationProcessConfig_ = conversationProcessConfigBuilder_ == null ? conversationProcessConfig_ @@ -2225,6 +2391,12 @@ public Builder mergeFrom( if (other.hasRaiSettings()) { mergeRaiSettings(other.getRaiSettings()); } + if (other.suggestionTriggerEvent_ != 0) { + setSuggestionTriggerEventValue(other.getSuggestionTriggerEventValue()); + } + if (other.getDisableQuerySearchContext() != false) { + setDisableQuerySearchContext(other.getDisableQuerySearchContext()); + } if (other.hasSuggestionTriggerSettings()) { mergeSuggestionTriggerSettings(other.getSuggestionTriggerSettings()); } @@ -2280,7 +2452,7 @@ public Builder mergeFrom( { input.readMessage( internalGetQueryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; break; } // case 50 case 58: @@ -2288,7 +2460,7 @@ public Builder mergeFrom( input.readMessage( internalGetConversationModelConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; break; } // case 58 case 66: @@ -2296,7 +2468,7 @@ public Builder mergeFrom( input.readMessage( internalGetConversationProcessConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; break; } // case 66 case 82: @@ -2304,7 +2476,7 @@ public Builder mergeFrom( input.readMessage( internalGetSuggestionTriggerSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; break; } // case 82 case 112: @@ -2344,6 +2516,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 154 + case 160: + { + suggestionTriggerEvent_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 160 + case 168: + { + disableQuerySearchContext_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 168 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3195,6 +3379,208 @@ public com.google.cloud.dialogflow.v2.RaiSettingsOrBuilder getRaiSettingsOrBuild return raiSettingsBuilder_; } + private int suggestionTriggerEvent_ = 0; + + /** + * + * + *
            +       * Optional. The trigger event for suggestion.
            +       * If unspecified, it will be `CUSTOMER_MESSAGE`.
            +       * Supported features: KNOWLEDGE_ASSIST
            +       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
            +       * 1. TRIGGER_EVENT_UNSPECIFIED
            +       * 2. END_OF_UTTERANCE
            +       * 3. CUSTOMER_MESSAGE
            +       * 4. AGENT_MESSAGE
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for suggestionTriggerEvent. + */ + @java.lang.Override + public int getSuggestionTriggerEventValue() { + return suggestionTriggerEvent_; + } + + /** + * + * + *
            +       * Optional. The trigger event for suggestion.
            +       * If unspecified, it will be `CUSTOMER_MESSAGE`.
            +       * Supported features: KNOWLEDGE_ASSIST
            +       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
            +       * 1. TRIGGER_EVENT_UNSPECIFIED
            +       * 2. END_OF_UTTERANCE
            +       * 3. CUSTOMER_MESSAGE
            +       * 4. AGENT_MESSAGE
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for suggestionTriggerEvent to set. + * @return This builder for chaining. + */ + public Builder setSuggestionTriggerEventValue(int value) { + suggestionTriggerEvent_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The trigger event for suggestion.
            +       * If unspecified, it will be `CUSTOMER_MESSAGE`.
            +       * Supported features: KNOWLEDGE_ASSIST
            +       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
            +       * 1. TRIGGER_EVENT_UNSPECIFIED
            +       * 2. END_OF_UTTERANCE
            +       * 3. CUSTOMER_MESSAGE
            +       * 4. AGENT_MESSAGE
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The suggestionTriggerEvent. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.TriggerEvent getSuggestionTriggerEvent() { + com.google.cloud.dialogflow.v2.TriggerEvent result = + com.google.cloud.dialogflow.v2.TriggerEvent.forNumber(suggestionTriggerEvent_); + return result == null ? com.google.cloud.dialogflow.v2.TriggerEvent.UNRECOGNIZED : result; + } + + /** + * + * + *
            +       * Optional. The trigger event for suggestion.
            +       * If unspecified, it will be `CUSTOMER_MESSAGE`.
            +       * Supported features: KNOWLEDGE_ASSIST
            +       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
            +       * 1. TRIGGER_EVENT_UNSPECIFIED
            +       * 2. END_OF_UTTERANCE
            +       * 3. CUSTOMER_MESSAGE
            +       * 4. AGENT_MESSAGE
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The suggestionTriggerEvent to set. + * @return This builder for chaining. + */ + public Builder setSuggestionTriggerEvent(com.google.cloud.dialogflow.v2.TriggerEvent value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + suggestionTriggerEvent_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The trigger event for suggestion.
            +       * If unspecified, it will be `CUSTOMER_MESSAGE`.
            +       * Supported features: KNOWLEDGE_ASSIST
            +       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
            +       * 1. TRIGGER_EVENT_UNSPECIFIED
            +       * 2. END_OF_UTTERANCE
            +       * 3. CUSTOMER_MESSAGE
            +       * 4. AGENT_MESSAGE
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSuggestionTriggerEvent() { + bitField0_ = (bitField0_ & ~0x00000100); + suggestionTriggerEvent_ = 0; + onChanged(); + return this; + } + + private boolean disableQuerySearchContext_; + + /** + * + * + *
            +       * Optional. If true, disable appending available search context to the
            +       * search query. Supported features: KNOWLEDGE_ASSIST
            +       * 
            + * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableQuerySearchContext. + */ + @java.lang.Override + public boolean getDisableQuerySearchContext() { + return disableQuerySearchContext_; + } + + /** + * + * + *
            +       * Optional. If true, disable appending available search context to the
            +       * search query. Supported features: KNOWLEDGE_ASSIST
            +       * 
            + * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The disableQuerySearchContext to set. + * @return This builder for chaining. + */ + public Builder setDisableQuerySearchContext(boolean value) { + + disableQuerySearchContext_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. If true, disable appending available search context to the
            +       * search query. Supported features: KNOWLEDGE_ASSIST
            +       * 
            + * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDisableQuerySearchContext() { + bitField0_ = (bitField0_ & ~0x00000200); + disableQuerySearchContext_ = false; + onChanged(); + return this; + } + private com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestionTriggerSettings_; private com.google.protobuf.SingleFieldBuilder< @@ -3221,7 +3607,7 @@ public com.google.cloud.dialogflow.v2.RaiSettingsOrBuilder getRaiSettingsOrBuild * @return Whether the suggestionTriggerSettings field is set. */ public boolean hasSuggestionTriggerSettings() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -3275,7 +3661,7 @@ public Builder setSuggestionTriggerSettings( } else { suggestionTriggerSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3301,7 +3687,7 @@ public Builder setSuggestionTriggerSettings( } else { suggestionTriggerSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3323,7 +3709,7 @@ public Builder mergeSuggestionTriggerSettings( com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings value) { if (suggestionTriggerSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000400) != 0) && suggestionTriggerSettings_ != null && suggestionTriggerSettings_ != com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig @@ -3336,7 +3722,7 @@ public Builder mergeSuggestionTriggerSettings( suggestionTriggerSettingsBuilder_.mergeFrom(value); } if (suggestionTriggerSettings_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -3356,7 +3742,7 @@ public Builder mergeSuggestionTriggerSettings( * */ public Builder clearSuggestionTriggerSettings() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); suggestionTriggerSettings_ = null; if (suggestionTriggerSettingsBuilder_ != null) { suggestionTriggerSettingsBuilder_.dispose(); @@ -3382,7 +3768,7 @@ public Builder clearSuggestionTriggerSettings() { public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionTriggerSettings .Builder getSuggestionTriggerSettingsBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return internalGetSuggestionTriggerSettingsFieldBuilder().getBuilder(); } @@ -3472,7 +3858,7 @@ public Builder clearSuggestionTriggerSettings() { * @return Whether the queryConfig field is set. */ public boolean hasQueryConfig() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -3521,7 +3907,7 @@ public Builder setQueryConfig( } else { queryConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3545,7 +3931,7 @@ public Builder setQueryConfig( } else { queryConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3564,7 +3950,7 @@ public Builder setQueryConfig( public Builder mergeQueryConfig( com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig value) { if (queryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000800) != 0) && queryConfig_ != null && queryConfig_ != com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig @@ -3577,7 +3963,7 @@ public Builder mergeQueryConfig( queryConfigBuilder_.mergeFrom(value); } if (queryConfig_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -3595,7 +3981,7 @@ public Builder mergeQueryConfig( * */ public Builder clearQueryConfig() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000800); queryConfig_ = null; if (queryConfigBuilder_ != null) { queryConfigBuilder_.dispose(); @@ -3618,7 +4004,7 @@ public Builder clearQueryConfig() { */ public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.SuggestionQueryConfig.Builder getQueryConfigBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return internalGetQueryConfigFieldBuilder().getBuilder(); } @@ -3702,7 +4088,7 @@ public Builder clearQueryConfig() { * @return Whether the conversationModelConfig field is set. */ public boolean hasConversationModelConfig() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -3751,7 +4137,7 @@ public Builder setConversationModelConfig( } else { conversationModelConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3775,7 +4161,7 @@ public Builder setConversationModelConfig( } else { conversationModelConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3794,7 +4180,7 @@ public Builder setConversationModelConfig( public Builder mergeConversationModelConfig( com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig value) { if (conversationModelConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00001000) != 0) && conversationModelConfig_ != null && conversationModelConfig_ != com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig @@ -3807,7 +4193,7 @@ public Builder mergeConversationModelConfig( conversationModelConfigBuilder_.mergeFrom(value); } if (conversationModelConfig_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -3825,7 +4211,7 @@ public Builder mergeConversationModelConfig( * */ public Builder clearConversationModelConfig() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00001000); conversationModelConfig_ = null; if (conversationModelConfigBuilder_ != null) { conversationModelConfigBuilder_.dispose(); @@ -3849,7 +4235,7 @@ public Builder clearConversationModelConfig() { public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationModelConfig .Builder getConversationModelConfigBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return internalGetConversationModelConfigFieldBuilder().getBuilder(); } @@ -3934,7 +4320,7 @@ public Builder clearConversationModelConfig() { * @return Whether the conversationProcessConfig field is set. */ public boolean hasConversationProcessConfig() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -3984,7 +4370,7 @@ public Builder setConversationProcessConfig( } else { conversationProcessConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4008,7 +4394,7 @@ public Builder setConversationProcessConfig( } else { conversationProcessConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -4028,7 +4414,7 @@ public Builder mergeConversationProcessConfig( com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationProcessConfig value) { if (conversationProcessConfigBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00002000) != 0) && conversationProcessConfig_ != null && conversationProcessConfig_ != com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig @@ -4041,7 +4427,7 @@ public Builder mergeConversationProcessConfig( conversationProcessConfigBuilder_.mergeFrom(value); } if (conversationProcessConfig_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -4059,7 +4445,7 @@ public Builder mergeConversationProcessConfig( * */ public Builder clearConversationProcessConfig() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00002000); conversationProcessConfig_ = null; if (conversationProcessConfigBuilder_ != null) { conversationProcessConfigBuilder_.dispose(); @@ -4083,7 +4469,7 @@ public Builder clearConversationProcessConfig() { public com.google.cloud.dialogflow.v2.HumanAgentAssistantConfig.ConversationProcessConfig .Builder getConversationProcessConfigBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00002000; onChanged(); return internalGetConversationProcessConfigFieldBuilder().getBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswer.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswer.java index 0fe3e83e9a37..6a6836953d7c 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswer.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistAnswer.java @@ -100,6 +100,79 @@ public interface SuggestedQueryOrBuilder * @return The bytes for queryText. */ com.google.protobuf.ByteString getQueryTextBytes(); + + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext> + getSearchContextsList(); + + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + getSearchContexts(int index); + + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSearchContextsCount(); + + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + getSearchContextsOrBuilderList(); + + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContextOrBuilder + getSearchContextsOrBuilder(int index); } /** @@ -134,6 +207,7 @@ private SuggestedQuery(com.google.protobuf.GeneratedMessage.Builder builder) private SuggestedQuery() { queryText_ = ""; + searchContexts_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -151,3040 +225,6914 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.Builder.class); } - public static final int QUERY_TEXT_FIELD_NUMBER = 1; + public interface SearchContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object queryText_ = ""; + /** + * + * + *
            +       * Optional. The key of the search context, e.g. "application name".
            +       * 
            + * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The key. + */ + java.lang.String getKey(); - /** - * - * - *
            -     * Suggested query text.
            -     * 
            - * - * string query_text = 1; - * - * @return The queryText. - */ - @java.lang.Override - public java.lang.String getQueryText() { - java.lang.Object ref = queryText_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - queryText_ = s; - return s; - } + /** + * + * + *
            +       * Optional. The key of the search context, e.g. "application name".
            +       * 
            + * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
            +       * Optional. The value of the search context, e.g. "DesignApp".
            +       * 
            + * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + * + * + *
            +       * Optional. The value of the search context, e.g. "DesignApp".
            +       * 
            + * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); } /** * * *
            -     * Suggested query text.
            +     * Search context is information useful for knowledge search that helps
            +     * enrich the query.
            +     * Example:
            +     * search_context {
            +     * key: "application name"
            +     * value: "DesignApp"
            +     * }
                  * 
            * - * string query_text = 1; - * - * @return The bytes for queryText. + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext} */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryTextBytes() { - java.lang.Object ref = queryText_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - queryText_ = 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 class SearchContext extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + SearchContextOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryText_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, queryText_); + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchContext"); } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + // Use SearchContext.newBuilder() to construct. + private SearchContext(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryText_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, queryText_); + private SearchContext() { + key_ = ""; + value_ = ""; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor; } - if (!(obj instanceof com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery)) { - return super.equals(obj); + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder.class); } - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery other = - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) obj; - if (!getQueryText().equals(other.getQueryText())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static final int KEY_FIELD_NUMBER = 1; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + + /** + * + * + *
            +       * Optional. The key of the search context, e.g. "application name".
            +       * 
            + * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUERY_TEXT_FIELD_NUMBER; - hash = (53 * hash) + getQueryText().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +       * Optional. The key of the search context, e.g. "application name".
            +       * 
            + * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int VALUE_FIELD_NUMBER = 2; - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - 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.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
            -     * Represents a suggested query.
            -     * 
            - * - * Protobuf type {@code google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_descriptor; + /** + * + * + *
            +       * Optional. The value of the search context, e.g. "DesignApp".
            +       * 
            + * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } } + /** + * + * + *
            +       * Optional. The value of the search context, e.g. "DesignApp".
            +       * 
            + * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for value. + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.class, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.Builder.class); + 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; + } } - // Construct using - // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + private byte memoizedIsInitialized = -1; @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - queryText_ = ""; - 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.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_descriptor; + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, key_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, value_); + } + getUnknownFields().writeTo(output); } @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery - .getDefaultInstance(); + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, key_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, value_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery build() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery 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.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) obj; + + if (!getKey().equals(other.getKey())) return false; + if (!getValue().equals(other.getValue())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery buildPartial() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery result = - new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery(this); - if (bitField0_ != 0) { - buildPartial0(result); + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - onBuilt(); - return result; + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - private void buildPartial0( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.queryText_ = queryText_; - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) other); - } else { - super.mergeFrom(other); - return this; - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery other) { - if (other - == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery - .getDefaultInstance()) return this; - if (!other.getQueryText().isEmpty()) { - queryText_ = other.queryText_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public final boolean isInitialized() { - return true; + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + 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 mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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: - { - queryText_ = 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; + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - private int bitField0_; + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private java.lang.Object queryText_ = ""; + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - /** - * - * - *
            -       * Suggested query text.
            -       * 
            - * - * string query_text = 1; - * - * @return The queryText. - */ - public java.lang.String getQueryText() { - java.lang.Object ref = queryText_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - queryText_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - /** - * - * - *
            -       * Suggested query text.
            -       * 
            - * - * string query_text = 1; - * - * @return The bytes for queryText. - */ - public com.google.protobuf.ByteString getQueryTextBytes() { - java.lang.Object ref = queryText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - queryText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - /** - * - * - *
            -       * Suggested query text.
            -       * 
            - * - * string query_text = 1; - * - * @param value The queryText to set. - * @return This builder for chaining. - */ - public Builder setQueryText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - queryText_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - /** - * - * - *
            -       * Suggested query text.
            -       * 
            - * - * string query_text = 1; - * - * @return This builder for chaining. - */ - public Builder clearQueryText() { - queryText_ = getDefaultInstance().getQueryText(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * * *
            -       * Suggested query text.
            +       * Search context is information useful for knowledge search that helps
            +       * enrich the query.
            +       * Example:
            +       * search_context {
            +       * key: "application name"
            +       * value: "DesignApp"
            +       * }
                    * 
            * - * string query_text = 1; - * - * @param value The bytes for queryText to set. - * @return This builder for chaining. + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext} */ - public Builder setQueryTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor; } - checkByteStringIsUtf8(value); - queryText_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder.class); + } - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) - private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery - DEFAULT_INSTANCE; + // Construct using + // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext.newBuilder() + private Builder() {} - static { - DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery(); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = ""; + value_ = ""; + return this; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SuggestedQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .getDefaultInstance(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public interface KnowledgeAnswerOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) - com.google.protobuf.MessageOrBuilder { + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - /** - * - * - *
            -     * The piece of text from the `source` that answers this suggested query.
            -     * 
            - * - * string answer_text = 1; - * - * @return The answerText. - */ - java.lang.String getAnswerText(); + private void buildPartial0( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + } - /** - * - * - *
            -     * The piece of text from the `source` that answers this suggested query.
            -     * 
            - * - * string answer_text = 1; - * - * @return The bytes for answerText. - */ - com.google.protobuf.ByteString getAnswerTextBytes(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * - * - *
            -     * Populated if the prediction came from FAQ.
            -     * 
            - * - * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; - * - * - * @return Whether the faqSource field is set. - */ - boolean hasFaqSource(); + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
            -     * Populated if the prediction came from FAQ.
            -     * 
            - * - * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; - * - * - * @return The faqSource. - */ - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource getFaqSource(); + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * - * - *
            -     * Populated if the prediction came from FAQ.
            -     * 
            - * - * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; - * - */ - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceOrBuilder - getFaqSourceOrBuilder(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + value_ = 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; + } - /** - * - * - *
            -     * Populated if the prediction was Generative.
            -     * 
            - * - * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; - * - * - * @return Whether the generativeSource field is set. - */ - boolean hasGenerativeSource(); + private int bitField0_; - /** - * - * - *
            -     * Populated if the prediction was Generative.
            -     * 
            - * - * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; - * - * - * @return The generativeSource. - */ - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - getGenerativeSource(); + private java.lang.Object key_ = ""; - /** - * - * - *
            -     * Populated if the prediction was Generative.
            -     * 
            - * - * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; - * - */ - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceOrBuilder - getGenerativeSourceOrBuilder(); + /** + * + * + *
            +         * Optional. The key of the search context, e.g. "application name".
            +         * 
            + * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.SourceCase getSourceCase(); - } + /** + * + * + *
            +         * Optional. The key of the search context, e.g. "application name".
            +         * 
            + * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - /** - * - * - *
            -   * Represents an answer from Knowledge. Currently supports FAQ and Generative
            -   * answers.
            -   * 
            - * - * Protobuf type {@code google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer} - */ - public static final class KnowledgeAnswer extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) - KnowledgeAnswerOrBuilder { - private static final long serialVersionUID = 0L; + /** + * + * + *
            +         * Optional. The key of the search context, e.g. "application name".
            +         * 
            + * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "KnowledgeAnswer"); - } + /** + * + * + *
            +         * Optional. The key of the search context, e.g. "application name".
            +         * 
            + * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - // Use KnowledgeAnswer.newBuilder() to construct. - private KnowledgeAnswer(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + /** + * + * + *
            +         * Optional. The key of the search context, e.g. "application name".
            +         * 
            + * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - private KnowledgeAnswer() { - answerText_ = ""; - } + private java.lang.Object value_ = ""; - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; - } + /** + * + * + *
            +         * Optional. The value of the search context, e.g. "DesignApp".
            +         * 
            + * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.class, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.Builder.class); - } + /** + * + * + *
            +         * Optional. The value of the search context, e.g. "DesignApp".
            +         * 
            + * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } - public interface FaqSourceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
            +         * Optional. The value of the search context, e.g. "DesignApp".
            +         * 
            + * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } - /** - * - * - *
            -       * The corresponding FAQ question.
            -       * 
            - * - * string question = 2; - * - * @return The question. - */ - java.lang.String getQuestion(); + /** + * + * + *
            +         * Optional. The value of the search context, e.g. "DesignApp".
            +         * 
            + * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } - /** - * - * - *
            -       * The corresponding FAQ question.
            -       * 
            - * - * string question = 2; - * - * @return The bytes for question. - */ - com.google.protobuf.ByteString getQuestionBytes(); - } + /** + * + * + *
            +         * Optional. The value of the search context, e.g. "DesignApp".
            +         * 
            + * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } - /** - * - * - *
            -     * Details about source of FAQ answer.
            -     * 
            - * - * Protobuf type {@code - * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource} - */ - public static final class FaqSource extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - FaqSourceOrBuilder { - private static final long serialVersionUID = 0L; + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + DEFAULT_INSTANCE; static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "FaqSource"); + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext(); } - // Use FaqSource.newBuilder() to construct. - private FaqSource(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + getDefaultInstance() { + return DEFAULT_INSTANCE; } - private FaqSource() { - question_ = ""; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .class, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .Builder.class); + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - public static final int QUESTION_FIELD_NUMBER = 2; + public static final int QUERY_TEXT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object question_ = ""; + @SuppressWarnings("serial") + private volatile java.lang.Object queryText_ = ""; - /** - * - * - *
            -       * The corresponding FAQ question.
            -       * 
            - * - * string question = 2; - * - * @return The question. - */ - @java.lang.Override - public java.lang.String getQuestion() { - java.lang.Object ref = question_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - question_ = s; - return s; - } + /** + * + * + *
            +     * Suggested query text.
            +     * 
            + * + * string query_text = 1; + * + * @return The queryText. + */ + @java.lang.Override + public java.lang.String getQueryText() { + java.lang.Object ref = queryText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryText_ = s; + return s; } + } - /** - * - * - *
            -       * The corresponding FAQ question.
            -       * 
            - * - * string question = 2; - * - * @return The bytes for question. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQuestionBytes() { - java.lang.Object ref = question_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - question_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** + * + * + *
            +     * Suggested query text.
            +     * 
            + * + * string query_text = 1; + * + * @return The bytes for queryText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryTextBytes() { + java.lang.Object ref = queryText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - private byte memoizedIsInitialized = -1; + public static final int SEARCH_CONTEXTS_FIELD_NUMBER = 4; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext> + searchContexts_; - memoizedIsInitialized = 1; - return true; - } + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext> + getSearchContextsList() { + return searchContexts_; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, question_); - } - getUnknownFields().writeTo(output); - } + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + getSearchContextsOrBuilderList() { + return searchContexts_; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSearchContextsCount() { + return searchContexts_.size(); + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, question_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + getSearchContexts(int index) { + return searchContexts_.get(index); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource)) { - return super.equals(obj); - } - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource other = - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) obj; + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder + getSearchContextsOrBuilder(int index) { + return searchContexts_.get(index); + } - if (!getQuestion().equals(other.getQuestion())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUESTION_FIELD_NUMBER; - hash = (53 * hash) + getQuestion().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + memoizedIsInitialized = 1; + return true; + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, queryText_); } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + for (int i = 0; i < searchContexts_.size(); i++) { + output.writeMessage(4, searchContexts_.get(i)); } + getUnknownFields().writeTo(output); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - 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 int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, queryText_); } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + for (int i = 0; i < searchContexts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, searchContexts_.get(i)); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + if (!(obj instanceof com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery)) { + return super.equals(obj); } + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) obj; - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + if (!getQueryText().equals(other.getQueryText())) return false; + if (!getSearchContextsList().equals(other.getSearchContextsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getQueryText().hashCode(); + if (getSearchContextsCount() > 0) { + hash = (37 * hash) + SEARCH_CONTEXTS_FIELD_NUMBER; + hash = (53 * hash) + getSearchContextsList().hashCode(); } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery 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.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( + 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.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Represents a suggested query.
            +     * 
            + * + * Protobuf type {@code google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_descriptor; } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.Builder.class); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + // Construct using + // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); } - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + queryText_ = ""; + if (searchContextsBuilder_ == null) { + searchContexts_ = java.util.Collections.emptyList(); + } else { + searchContexts_ = null; + searchContextsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; } @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_descriptor; } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance(); } - /** - * - * - *
            -       * Details about source of FAQ answer.
            -       * 
            - * - * Protobuf type {@code - * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .class, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .Builder.class); + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } - // Construct using - // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery result) { + if (searchContextsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + searchContexts_ = java.util.Collections.unmodifiableList(searchContexts_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.searchContexts_ = searchContexts_; + } else { + result.searchContexts_ = searchContextsBuilder_.build(); } + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - question_ = ""; - return this; + private void buildPartial0( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.queryText_ = queryText_; } + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) other); + } else { + super.mergeFrom(other); + return this; } + } - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance()) return this; + if (!other.getQueryText().isEmpty()) { + queryText_ = other.queryText_; + bitField0_ |= 0x00000001; + onChanged(); } - - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - build() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + if (searchContextsBuilder_ == null) { + if (!other.searchContexts_.isEmpty()) { + if (searchContexts_.isEmpty()) { + searchContexts_ = other.searchContexts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSearchContextsIsMutable(); + searchContexts_.addAll(other.searchContexts_); + } + onChanged(); } - return result; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - buildPartial() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource result = - new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource( - this); - if (bitField0_ != 0) { - buildPartial0(result); + } else { + if (!other.searchContexts_.isEmpty()) { + if (searchContextsBuilder_.isEmpty()) { + searchContextsBuilder_.dispose(); + searchContextsBuilder_ = null; + searchContexts_ = other.searchContexts_; + bitField0_ = (bitField0_ & ~0x00000002); + searchContextsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSearchContextsFieldBuilder() + : null; + } else { + searchContextsBuilder_.addAllMessages(other.searchContexts_); + } } - onBuilt(); - return result; } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - private void buildPartial0( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.question_ = question_; - } - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - other); - } else { - super.mergeFrom(other); - return 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(); } - - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource other) { - if (other - == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance()) return this; - if (!other.getQuestion().isEmpty()) { - question_ = other.question_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + queryText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 34: + { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + m = + input.readMessage( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.parser(), + extensionRegistry); + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.add(m); + } else { + searchContextsBuilder_.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(); - return this; - } + } // finally + return this; + } - @java.lang.Override - public final boolean isInitialized() { - return true; - } + private int bitField0_; - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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: - { - question_ = input.readStringRequireUtf8(); - 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 java.lang.Object queryText_ = ""; + + /** + * + * + *
            +       * Suggested query text.
            +       * 
            + * + * string query_text = 1; + * + * @return The queryText. + */ + public java.lang.String getQueryText() { + java.lang.Object ref = queryText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryText_ = s; + return s; + } else { + return (java.lang.String) ref; } + } - private int bitField0_; + /** + * + * + *
            +       * Suggested query text.
            +       * 
            + * + * string query_text = 1; + * + * @return The bytes for queryText. + */ + public com.google.protobuf.ByteString getQueryTextBytes() { + java.lang.Object ref = queryText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private java.lang.Object question_ = ""; - - /** - * - * - *
            -         * The corresponding FAQ question.
            -         * 
            - * - * string question = 2; - * - * @return The question. - */ - public java.lang.String getQuestion() { - java.lang.Object ref = question_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - question_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
            -         * The corresponding FAQ question.
            -         * 
            - * - * string question = 2; - * - * @return The bytes for question. - */ - public com.google.protobuf.ByteString getQuestionBytes() { - java.lang.Object ref = question_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - question_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
            -         * The corresponding FAQ question.
            -         * 
            - * - * string question = 2; - * - * @param value The question to set. - * @return This builder for chaining. - */ - public Builder setQuestion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - question_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
            -         * The corresponding FAQ question.
            -         * 
            - * - * string question = 2; - * - * @return This builder for chaining. - */ - public Builder clearQuestion() { - question_ = getDefaultInstance().getQuestion(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
            -         * The corresponding FAQ question.
            -         * 
            - * - * string question = 2; - * - * @param value The bytes for question to set. - * @return This builder for chaining. - */ - public Builder setQuestionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - question_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + /** + * + * + *
            +       * Suggested query text.
            +       * 
            + * + * string query_text = 1; + * + * @param value The queryText to set. + * @return This builder for chaining. + */ + public Builder setQueryText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource(); + queryText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - getDefaultInstance() { - return DEFAULT_INSTANCE; + /** + * + * + *
            +       * Suggested query text.
            +       * 
            + * + * string query_text = 1; + * + * @return This builder for chaining. + */ + public Builder clearQueryText() { + queryText_ = getDefaultInstance().getQueryText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaqSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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; + /** + * + * + *
            +       * Suggested query text.
            +       * 
            + * + * string query_text = 1; + * + * @param value The bytes for queryText to set. + * @return This builder for chaining. + */ + public Builder setQueryTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext> + searchContexts_ = java.util.Collections.emptyList(); - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + private void ensureSearchContextsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + searchContexts_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext>(searchContexts_); + bitField0_ |= 0x00000002; + } } - } - public interface GenerativeSourceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) - com.google.protobuf.MessageOrBuilder { + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + searchContextsBuilder_; /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Optional. The search contexts for the query.
                    * 
            * * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - java.util.List< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet> - getSnippetsList(); + public java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext> + getSearchContextsList() { + if (searchContextsBuilder_ == null) { + return java.util.Collections.unmodifiableList(searchContexts_); + } else { + return searchContextsBuilder_.getMessageList(); + } + } /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Optional. The search contexts for the query.
                    * 
            * * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet - getSnippets(int index); + public int getSearchContextsCount() { + if (searchContextsBuilder_ == null) { + return searchContexts_.size(); + } else { + return searchContextsBuilder_.getCount(); + } + } /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Optional. The search contexts for the query.
                    * 
            * * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - int getSnippetsCount(); + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + getSearchContexts(int index) { + if (searchContextsBuilder_ == null) { + return searchContexts_.get(index); + } else { + return searchContextsBuilder_.getMessage(index); + } + } /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Optional. The search contexts for the query.
                    * 
            * * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - java.util.List< - ? extends - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> - getSnippetsOrBuilderList(); - + public Builder setSearchContexts( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext value) { + if (searchContextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchContextsIsMutable(); + searchContexts_.set(index, value); + onChanged(); + } else { + searchContextsBuilder_.setMessage(index, value); + } + return this; + } + /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Optional. The search contexts for the query.
                    * 
            * * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .SnippetOrBuilder - getSnippetsOrBuilder(int index); - } - - /** - * - * - *
            -     * Details about source of Generative answer.
            -     * 
            - * - * Protobuf type {@code - * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource} - */ - public static final class GenerativeSource extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) - GenerativeSourceOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "GenerativeSource"); - } - - // Use GenerativeSource.newBuilder() to construct. - private GenerativeSource(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + public Builder setSearchContexts( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext.Builder + builderForValue) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.set(index, builderForValue.build()); + onChanged(); + } else { + searchContextsBuilder_.setMessage(index, builderForValue.build()); + } + return this; } - private GenerativeSource() { - snippets_ = java.util.Collections.emptyList(); + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchContexts( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext value) { + if (searchContextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchContextsIsMutable(); + searchContexts_.add(value); + onChanged(); + } else { + searchContextsBuilder_.addMessage(value); + } + return this; } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchContexts( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext value) { + if (searchContextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchContextsIsMutable(); + searchContexts_.add(index, value); + onChanged(); + } else { + searchContextsBuilder_.addMessage(index, value); + } + return this; } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.class, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Builder.class); + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchContexts( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext.Builder + builderForValue) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.add(builderForValue.build()); + onChanged(); + } else { + searchContextsBuilder_.addMessage(builderForValue.build()); + } + return this; } - public interface SnippetOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
            -         * URI the data is sourced from.
            -         * 
            - * - * string uri = 2; - * - * @return The uri. - */ - java.lang.String getUri(); - - /** - * - * - *
            -         * URI the data is sourced from.
            -         * 
            - * - * string uri = 2; - * - * @return The bytes for uri. - */ - com.google.protobuf.ByteString getUriBytes(); - - /** - * - * - *
            -         * Text taken from that URI.
            -         * 
            - * - * string text = 3; - * - * @return The text. - */ - java.lang.String getText(); - - /** - * - * - *
            -         * Text taken from that URI.
            -         * 
            - * - * string text = 3; - * - * @return The bytes for text. - */ - com.google.protobuf.ByteString getTextBytes(); - - /** - * - * - *
            -         * Title of the document.
            -         * 
            - * - * string title = 4; - * - * @return The title. - */ - java.lang.String getTitle(); - - /** - * - * - *
            -         * Title of the document.
            -         * 
            - * - * string title = 4; - * - * @return The bytes for title. - */ - com.google.protobuf.ByteString getTitleBytes(); - - /** - * - * - *
            -         * Metadata of the document.
            -         * 
            - * - * .google.protobuf.Struct metadata = 5; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - - /** - * - * - *
            -         * Metadata of the document.
            -         * 
            - * - * .google.protobuf.Struct metadata = 5; - * - * @return The metadata. - */ - com.google.protobuf.Struct getMetadata(); - - /** - * - * - *
            -         * Metadata of the document.
            -         * 
            - * - * .google.protobuf.Struct metadata = 5; - */ - com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchContexts( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext.Builder + builderForValue) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.add(index, builderForValue.build()); + onChanged(); + } else { + searchContextsBuilder_.addMessage(index, builderForValue.build()); + } + return this; } /** * * *
            -       * Snippet Source for a Generative Prediction.
            +       * Optional. The search contexts for the query.
                    * 
            * - * Protobuf type {@code - * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet} + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public static final class Snippet extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - SnippetOrBuilder { - private static final long serialVersionUID = 0L; + public Builder addAllSearchContexts( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext> + values) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, searchContexts_); + onChanged(); + } else { + searchContextsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSearchContexts() { + if (searchContextsBuilder_ == null) { + searchContexts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + searchContextsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeSearchContexts(int index) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.remove(index); + onChanged(); + } else { + searchContextsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder + getSearchContextsBuilder(int index) { + return internalGetSearchContextsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder + getSearchContextsOrBuilder(int index) { + if (searchContextsBuilder_ == null) { + return searchContexts_.get(index); + } else { + return searchContextsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + getSearchContextsOrBuilderList() { + if (searchContextsBuilder_ != null) { + return searchContextsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(searchContexts_); + } + } + + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder + addSearchContextsBuilder() { + return internalGetSearchContextsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .getDefaultInstance()); + } + + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder + addSearchContextsBuilder(int index) { + return internalGetSearchContextsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .getDefaultInstance()); + } + + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder> + getSearchContextsBuilderList() { + return internalGetSearchContextsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + internalGetSearchContextsFieldBuilder() { + if (searchContextsBuilder_ == null) { + searchContextsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder>( + searchContexts_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + searchContexts_ = null; + } + return searchContextsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery) + private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery(); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuggestedQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AdditionalSuggestedQueryResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Output only. The suggested query based on the context.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the suggestedQuery field is set. + */ + boolean hasSuggestedQuery(); + + /** + * + * + *
            +     * Output only. The suggested query based on the context.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The suggestedQuery. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery getSuggestedQuery(); + + /** + * + * + *
            +     * Output only. The suggested query based on the context.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQueryOrBuilder + getSuggestedQueryOrBuilder(); + + /** + * + * + *
            +     * Output only. The name of the answer record.
            +     * Format: `projects/<Project ID>/locations/<Location
            +     * ID>/answerRecords/<Answer Record ID>`
            +     * 
            + * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The answerRecord. + */ + java.lang.String getAnswerRecord(); + + /** + * + * + *
            +     * Output only. The name of the answer record.
            +     * Format: `projects/<Project ID>/locations/<Location
            +     * ID>/answerRecords/<Answer Record ID>`
            +     * 
            + * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for answerRecord. + */ + com.google.protobuf.ByteString getAnswerRecordBytes(); + } + + /** + * + * + *
            +   * Represents a single suggested query result.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult} + */ + public static final class AdditionalSuggestedQueryResult + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + AdditionalSuggestedQueryResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AdditionalSuggestedQueryResult"); + } + + // Use AdditionalSuggestedQueryResult.newBuilder() to construct. + private AdditionalSuggestedQueryResult( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AdditionalSuggestedQueryResult() { + answerRecord_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder.class); + } + + private int bitField0_; + public static final int SUGGESTED_QUERY_FIELD_NUMBER = 1; + private com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggestedQuery_; + + /** + * + * + *
            +     * Output only. The suggested query based on the context.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the suggestedQuery field is set. + */ + @java.lang.Override + public boolean hasSuggestedQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Output only. The suggested query based on the context.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The suggestedQuery. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery getSuggestedQuery() { + return suggestedQuery_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.getDefaultInstance() + : suggestedQuery_; + } + + /** + * + * + *
            +     * Output only. The suggested query based on the context.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQueryOrBuilder + getSuggestedQueryOrBuilder() { + return suggestedQuery_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.getDefaultInstance() + : suggestedQuery_; + } + + public static final int ANSWER_RECORD_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object answerRecord_ = ""; + + /** + * + * + *
            +     * Output only. The name of the answer record.
            +     * Format: `projects/<Project ID>/locations/<Location
            +     * ID>/answerRecords/<Answer Record ID>`
            +     * 
            + * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The answerRecord. + */ + @java.lang.Override + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerRecord_ = s; + return s; + } + } + + /** + * + * + *
            +     * Output only. The name of the answer record.
            +     * Format: `projects/<Project ID>/locations/<Location
            +     * ID>/answerRecords/<Answer Record ID>`
            +     * 
            + * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for answerRecord. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSuggestedQuery()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, answerRecord_); + } + 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, getSuggestedQuery()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, answerRecord_); + } + 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.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) obj; + + if (hasSuggestedQuery() != other.hasSuggestedQuery()) return false; + if (hasSuggestedQuery()) { + if (!getSuggestedQuery().equals(other.getSuggestedQuery())) return false; + } + if (!getAnswerRecord().equals(other.getAnswerRecord())) 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 (hasSuggestedQuery()) { + hash = (37 * hash) + SUGGESTED_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getSuggestedQuery().hashCode(); + } + hash = (37 * hash) + ANSWER_RECORD_FIELD_NUMBER; + hash = (53 * hash) + getAnswerRecord().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + 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.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom( + 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.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Represents a single suggested query result.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSuggestedQueryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + suggestedQuery_ = null; + if (suggestedQueryBuilder_ != null) { + suggestedQueryBuilder_.dispose(); + suggestedQueryBuilder_ = null; + } + answerRecord_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.suggestedQuery_ = + suggestedQueryBuilder_ == null ? suggestedQuery_ : suggestedQueryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.answerRecord_ = answerRecord_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .getDefaultInstance()) return this; + if (other.hasSuggestedQuery()) { + mergeSuggestedQuery(other.getSuggestedQuery()); + } + if (!other.getAnswerRecord().isEmpty()) { + answerRecord_ = other.answerRecord_; + 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: + { + input.readMessage( + internalGetSuggestedQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 42: + { + answerRecord_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggestedQuery_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQueryOrBuilder> + suggestedQueryBuilder_; + + /** + * + * + *
            +       * Output only. The suggested query based on the context.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the suggestedQuery field is set. + */ + public boolean hasSuggestedQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Output only. The suggested query based on the context.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The suggestedQuery. + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + getSuggestedQuery() { + if (suggestedQueryBuilder_ == null) { + return suggestedQuery_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance() + : suggestedQuery_; + } else { + return suggestedQueryBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Output only. The suggested query based on the context.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSuggestedQuery( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery value) { + if (suggestedQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + suggestedQuery_ = value; + } else { + suggestedQueryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The suggested query based on the context.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSuggestedQuery( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.Builder + builderForValue) { + if (suggestedQueryBuilder_ == null) { + suggestedQuery_ = builderForValue.build(); + } else { + suggestedQueryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The suggested query based on the context.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSuggestedQuery( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery value) { + if (suggestedQueryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && suggestedQuery_ != null + && suggestedQuery_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance()) { + getSuggestedQueryBuilder().mergeFrom(value); + } else { + suggestedQuery_ = value; + } + } else { + suggestedQueryBuilder_.mergeFrom(value); + } + if (suggestedQuery_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Output only. The suggested query based on the context.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSuggestedQuery() { + bitField0_ = (bitField0_ & ~0x00000001); + suggestedQuery_ = null; + if (suggestedQueryBuilder_ != null) { + suggestedQueryBuilder_.dispose(); + suggestedQueryBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The suggested query based on the context.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.Builder + getSuggestedQueryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSuggestedQueryFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Output only. The suggested query based on the context.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQueryOrBuilder + getSuggestedQueryOrBuilder() { + if (suggestedQueryBuilder_ != null) { + return suggestedQueryBuilder_.getMessageOrBuilder(); + } else { + return suggestedQuery_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance() + : suggestedQuery_; + } + } + + /** + * + * + *
            +       * Output only. The suggested query based on the context.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQueryOrBuilder> + internalGetSuggestedQueryFieldBuilder() { + if (suggestedQueryBuilder_ == null) { + suggestedQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQueryOrBuilder>( + getSuggestedQuery(), getParentForChildren(), isClean()); + suggestedQuery_ = null; + } + return suggestedQueryBuilder_; + } + + private java.lang.Object answerRecord_ = ""; + + /** + * + * + *
            +       * Output only. The name of the answer record.
            +       * Format: `projects/<Project ID>/locations/<Location
            +       * ID>/answerRecords/<Answer Record ID>`
            +       * 
            + * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The answerRecord. + */ + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerRecord_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Output only. The name of the answer record.
            +       * Format: `projects/<Project ID>/locations/<Location
            +       * ID>/answerRecords/<Answer Record ID>`
            +       * 
            + * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for answerRecord. + */ + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Output only. The name of the answer record.
            +       * Format: `projects/<Project ID>/locations/<Location
            +       * ID>/answerRecords/<Answer Record ID>`
            +       * 
            + * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecord(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + answerRecord_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The name of the answer record.
            +       * Format: `projects/<Project ID>/locations/<Location
            +       * ID>/answerRecords/<Answer Record ID>`
            +       * 
            + * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAnswerRecord() { + answerRecord_ = getDefaultInstance().getAnswerRecord(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The name of the answer record.
            +       * Format: `projects/<Project ID>/locations/<Location
            +       * ID>/answerRecords/<Answer Record ID>`
            +       * 
            + * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerRecord_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult(); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdditionalSuggestedQueryResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface KnowledgeAnswerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * The piece of text from the `source` that answers this suggested query.
            +     * 
            + * + * string answer_text = 1; + * + * @return The answerText. + */ + java.lang.String getAnswerText(); + + /** + * + * + *
            +     * The piece of text from the `source` that answers this suggested query.
            +     * 
            + * + * string answer_text = 1; + * + * @return The bytes for answerText. + */ + com.google.protobuf.ByteString getAnswerTextBytes(); + + /** + * + * + *
            +     * Populated if the prediction came from FAQ.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + * + * @return Whether the faqSource field is set. + */ + boolean hasFaqSource(); + + /** + * + * + *
            +     * Populated if the prediction came from FAQ.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + * + * @return The faqSource. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource getFaqSource(); + + /** + * + * + *
            +     * Populated if the prediction came from FAQ.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceOrBuilder + getFaqSourceOrBuilder(); + + /** + * + * + *
            +     * Populated if the prediction was Generative.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + * + * @return Whether the generativeSource field is set. + */ + boolean hasGenerativeSource(); + + /** + * + * + *
            +     * Populated if the prediction was Generative.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + * + * @return The generativeSource. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getGenerativeSource(); + + /** + * + * + *
            +     * Populated if the prediction was Generative.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceOrBuilder + getGenerativeSourceOrBuilder(); + + /** + * + * + *
            +     * Populated if the prediction was from Playbook.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + * + * @return Whether the playbookSource field is set. + */ + boolean hasPlaybookSource(); + + /** + * + * + *
            +     * Populated if the prediction was from Playbook.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + * + * @return The playbookSource. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getPlaybookSource(); + + /** + * + * + *
            +     * Populated if the prediction was from Playbook.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceOrBuilder + getPlaybookSourceOrBuilder(); + + /** + * + * + *
            +     * Populated if the prediction was from an event.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + * + * @return Whether the eventSource field is set. + */ + boolean hasEventSource(); + + /** + * + * + *
            +     * Populated if the prediction was from an event.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + * + * @return The eventSource. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + getEventSource(); + + /** + * + * + *
            +     * Populated if the prediction was from an event.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSourceOrBuilder + getEventSourceOrBuilder(); + + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.SourceCase getSourceCase(); + } + + /** + * + * + *
            +   * Represents an answer from Knowledge. Currently supports FAQ and Generative
            +   * answers.
            +   * 
            + * + * Protobuf type {@code google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer} + */ + public static final class KnowledgeAnswer extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) + KnowledgeAnswerOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "KnowledgeAnswer"); + } + + // Use KnowledgeAnswer.newBuilder() to construct. + private KnowledgeAnswer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private KnowledgeAnswer() { + answerText_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.Builder.class); + } + + public interface FaqSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * The corresponding FAQ question.
            +       * 
            + * + * string question = 2; + * + * @return The question. + */ + java.lang.String getQuestion(); + + /** + * + * + *
            +       * The corresponding FAQ question.
            +       * 
            + * + * string question = 2; + * + * @return The bytes for question. + */ + com.google.protobuf.ByteString getQuestionBytes(); + } + + /** + * + * + *
            +     * Details about source of FAQ answer.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource} + */ + public static final class FaqSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + FaqSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FaqSource"); + } + + // Use FaqSource.newBuilder() to construct. + private FaqSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FaqSource() { + question_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder.class); + } + + public static final int QUESTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object question_ = ""; + + /** + * + * + *
            +       * The corresponding FAQ question.
            +       * 
            + * + * string question = 2; + * + * @return The question. + */ + @java.lang.Override + public java.lang.String getQuestion() { + java.lang.Object ref = question_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + question_ = s; + return s; + } + } + + /** + * + * + *
            +       * The corresponding FAQ question.
            +       * 
            + * + * string question = 2; + * + * @return The bytes for question. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQuestionBytes() { + java.lang.Object ref = question_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + question_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, question_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, question_); + } + 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.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) obj; + + if (!getQuestion().equals(other.getQuestion())) 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) + QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getQuestion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + 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.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseFrom( + 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.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Details about source of FAQ answer.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + question_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.question_ = question_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance()) return this; + if (!other.getQuestion().isEmpty()) { + question_ = other.question_; + 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 18: + { + question_ = input.readStringRequireUtf8(); + 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 java.lang.Object question_ = ""; + + /** + * + * + *
            +         * The corresponding FAQ question.
            +         * 
            + * + * string question = 2; + * + * @return The question. + */ + public java.lang.String getQuestion() { + java.lang.Object ref = question_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + question_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * The corresponding FAQ question.
            +         * 
            + * + * string question = 2; + * + * @return The bytes for question. + */ + public com.google.protobuf.ByteString getQuestionBytes() { + java.lang.Object ref = question_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + question_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * The corresponding FAQ question.
            +         * 
            + * + * string question = 2; + * + * @param value The question to set. + * @return This builder for chaining. + */ + public Builder setQuestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + question_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * The corresponding FAQ question.
            +         * 
            + * + * string question = 2; + * + * @return This builder for chaining. + */ + public Builder clearQuestion() { + question_ = getDefaultInstance().getQuestion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * The corresponding FAQ question.
            +         * 
            + * + * string question = 2; + * + * @param value The bytes for question to set. + * @return This builder for chaining. + */ + public Builder setQuestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + question_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource(); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaqSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GenerativeSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet> + getSnippetsList(); + + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet + getSnippets(int index); + + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + int getSnippetsCount(); + + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + getSnippetsOrBuilderList(); + + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .SnippetOrBuilder + getSnippetsOrBuilder(int index); + } + + /** + * + * + *
            +     * Details about source of Generative answer.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource} + */ + public static final class GenerativeSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + GenerativeSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GenerativeSource"); + } + + // Use GenerativeSource.newBuilder() to construct. + private GenerativeSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerativeSource() { + snippets_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder.class); + } + + public interface SnippetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +         * URI the data is sourced from.
            +         * 
            + * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
            +         * URI the data is sourced from.
            +         * 
            + * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
            +         * Text taken from that URI.
            +         * 
            + * + * string text = 3; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
            +         * Text taken from that URI.
            +         * 
            + * + * string text = 3; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
            +         * Title of the document.
            +         * 
            + * + * string title = 4; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
            +         * Title of the document.
            +         * 
            + * + * string title = 4; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
            +         * Metadata of the document.
            +         * 
            + * + * .google.protobuf.Struct metadata = 5; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + + /** + * + * + *
            +         * Metadata of the document.
            +         * 
            + * + * .google.protobuf.Struct metadata = 5; + * + * @return The metadata. + */ + com.google.protobuf.Struct getMetadata(); + + /** + * + * + *
            +         * Metadata of the document.
            +         * 
            + * + * .google.protobuf.Struct metadata = 5; + */ + com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); + } + + /** + * + * + *
            +       * Snippet Source for a Generative Prediction.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet} + */ + public static final class Snippet extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + SnippetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Snippet"); + } + + // Use Snippet.newBuilder() to construct. + private Snippet(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Snippet() { + uri_ = ""; + text_ = ""; + title_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder.class); + } + + private int bitField0_; + public static final int URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
            +         * URI the data is sourced from.
            +         * 
            + * + * 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 the data is sourced from.
            +         * 
            + * + * 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 TEXT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + + /** + * + * + *
            +         * Text taken from that URI.
            +         * 
            + * + * 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 taken from that URI.
            +         * 
            + * + * 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; + } + } + + public static final int TITLE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
            +         * Title of the document.
            +         * 
            + * + * string title = 4; + * + * @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 = 4; + * + * @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; + } + } + + public static final int METADATA_FIELD_NUMBER = 5; + private com.google.protobuf.Struct metadata_; + + /** + * + * + *
            +         * Metadata of the document.
            +         * 
            + * + * .google.protobuf.Struct metadata = 5; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +         * Metadata of the document.
            +         * 
            + * + * .google.protobuf.Struct metadata = 5; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.Struct getMetadata() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + + /** + * + * + *
            +         * Metadata of the document.
            +         * 
            + * + * .google.protobuf.Struct metadata = 5; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? com.google.protobuf.Struct.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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, text_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, title_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, text_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, title_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, 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.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet) + obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getText().equals(other.getText())) return false; + if (!getTitle().equals(other.getTitle())) 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(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().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.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + 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.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom( + 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.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +         * Snippet Source for a Generative Prediction.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .SnippetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + text_ = ""; + title_ = ""; + 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.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.text_ = text_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.title_ = title_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getText().isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000004; + onChanged(); + } + 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 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); + 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 java.lang.Object uri_ = ""; + + /** + * + * + *
            +           * URI the data is sourced from.
            +           * 
            + * + * 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 the data is sourced from.
            +           * 
            + * + * 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 the data is sourced from.
            +           * 
            + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +           * URI the data is sourced from.
            +           * 
            + * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +           * URI the data is sourced from.
            +           * 
            + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object text_ = ""; + + /** + * + * + *
            +           * Text taken from that URI.
            +           * 
            + * + * 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 taken from that URI.
            +           * 
            + * + * 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 taken from that URI.
            +           * 
            + * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Text taken from that URI.
            +           * 
            + * + * string text = 3; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +           * Text taken from that URI.
            +           * 
            + * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
            +           * Title of the document.
            +           * 
            + * + * string title = 4; + * + * @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 = 4; + * + * @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 = 4; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Title of the document.
            +           * 
            + * + * string title = 4; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +           * Title of the document.
            +           * 
            + * + * string title = 4; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Struct metadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + metadataBuilder_; + + /** + * + * + *
            +           * Metadata of the document.
            +           * 
            + * + * .google.protobuf.Struct metadata = 5; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +           * Metadata of the document.
            +           * 
            + * + * .google.protobuf.Struct metadata = 5; + * + * @return The metadata. + */ + public com.google.protobuf.Struct getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +           * Metadata of the document.
            +           * 
            + * + * .google.protobuf.Struct metadata = 5; + */ + public Builder setMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Metadata of the document.
            +           * 
            + * + * .google.protobuf.Struct metadata = 5; + */ + public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "Snippet"); - } + /** + * + * + *
            +           * Metadata of the document.
            +           * 
            + * + * .google.protobuf.Struct metadata = 5; + */ + public Builder mergeMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } - // Use Snippet.newBuilder() to construct. - private Snippet(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + /** + * + * + *
            +           * Metadata of the document.
            +           * 
            + * + * .google.protobuf.Struct metadata = 5; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000008); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } - private Snippet() { - uri_ = ""; - text_ = ""; - title_ = ""; - } + /** + * + * + *
            +           * Metadata of the document.
            +           * 
            + * + * .google.protobuf.Struct metadata = 5; + */ + public com.google.protobuf.Struct.Builder getMetadataBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetMetadataFieldBuilder().getBuilder(); + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; - } + /** + * + * + *
            +           * Metadata of the document.
            +           * 
            + * + * .google.protobuf.Struct metadata = 5; + */ + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : metadata_; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.class, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder.class); - } + /** + * + * + *
            +           * Metadata of the document.
            +           * 
            + * + * .google.protobuf.Struct metadata = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } - private int bitField0_; - public static final int URI_FIELD_NUMBER = 2; + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + } - @SuppressWarnings("serial") - private volatile java.lang.Object uri_ = ""; + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + DEFAULT_INSTANCE; - /** - * - * - *
            -         * URI the data is sourced from.
            -         * 
            - * - * 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; - } + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet(); } - /** - * - * - *
            -         * URI the data is sourced from.
            -         * 
            - * - * 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 com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + getDefaultInstance() { + return DEFAULT_INSTANCE; } - public static final int TEXT_FIELD_NUMBER = 3; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Snippet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - @SuppressWarnings("serial") - private volatile java.lang.Object text_ = ""; + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
            -         * Text taken from that URI.
            -         * 
            - * - * 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; - } + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - /** - * - * - *
            -         * Text taken from that URI.
            -         * 
            - * - * 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; - } + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - public static final int TITLE_FIELD_NUMBER = 4; + public static final int SNIPPETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object title_ = ""; + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet> + snippets_; - /** - * - * - *
            -         * Title of the document.
            -         * 
            - * - * string title = 4; - * - * @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; - } - } + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet> + getSnippetsList() { + return snippets_; + } - /** - * - * - *
            -         * Title of the document.
            -         * 
            - * - * string title = 4; - * - * @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; - } - } + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + getSnippetsOrBuilderList() { + return snippets_; + } - public static final int METADATA_FIELD_NUMBER = 5; - private com.google.protobuf.Struct metadata_; + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public int getSnippetsCount() { + return snippets_.size(); + } - /** - * - * - *
            -         * Metadata of the document.
            -         * 
            - * - * .google.protobuf.Struct metadata = 5; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) != 0); + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + getSnippets(int index) { + return snippets_.get(index); + } + + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .SnippetOrBuilder + getSnippetsOrBuilder(int index) { + return snippets_.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 < snippets_.size(); i++) { + output.writeMessage(1, snippets_.get(i)); } + getUnknownFields().writeTo(output); + } - /** - * - * - *
            -         * Metadata of the document.
            -         * 
            - * - * .google.protobuf.Struct metadata = 5; - * - * @return The metadata. - */ - @java.lang.Override - public com.google.protobuf.Struct getMetadata() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < snippets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, snippets_.get(i)); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - /** - * - * - *
            -         * Metadata of the document.
            -         * 
            - * - * .google.protobuf.Struct metadata = 5; - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource)) { + return super.equals(obj); } + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + obj; - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + if (!getSnippetsList().equals(other.getSnippetsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - memoizedIsInitialized = 1; - return true; + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, text_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, title_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getMetadata()); - } - getUnknownFields().writeTo(output); + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSnippetsCount() > 0) { + hash = (37 * hash) + SNIPPETS_FIELD_NUMBER; + hash = (53 * hash) + getSnippetsList().hashCode(); } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, text_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, title_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMetadata()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet)) { - return super.equals(obj); - } - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - other = - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet) - obj; + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - if (!getUri().equals(other.getUri())) return false; - if (!getText().equals(other.getText())) return false; - if (!getTitle().equals(other.getTitle())) 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; - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + 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 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) + TEXT_FIELD_NUMBER; - hash = (53 * hash) + getText().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().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.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - 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.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom( - 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.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + /** + * + * + *
            +       * Details about source of Generative answer.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder.class); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + // Construct using + // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.newBuilder() + private Builder() {} - public static Builder newBuilder( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); } @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (snippetsBuilder_ == null) { + snippets_ = java.util.Collections.emptyList(); + } else { + snippets_ = null; + snippetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; } - /** - * - * - *
            -         * Snippet Source for a Generative Prediction.
            -         * 
            - * - * Protobuf type {@code - * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .SnippetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.class, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder.class); - } - - // Construct using - // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetMetadataFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - uri_ = ""; - text_ = ""; - title_ = ""; - 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.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - build() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - buildPartial() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - result = - new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.uri_ = uri_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.text_ = text_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.title_ = title_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet) - other); - } else { - super.mergeFrom(other); - return this; - } - } + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); + } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - other) { - if (other - == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.getDefaultInstance()) return this; - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getText().isEmpty()) { - text_ = other.text_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - @java.lang.Override - public final boolean isInitialized() { - return true; + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + result) { + if (snippetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + snippets_ = java.util.Collections.unmodifiableList(snippets_); + bitField0_ = (bitField0_ & ~0x00000001); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: - { - text_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: - { - title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - input.readMessage( - internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); - 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; + result.snippets_ = snippets_; + } else { + result.snippets_ = snippetsBuilder_.build(); } + } - private int bitField0_; - - private java.lang.Object uri_ = ""; + private void buildPartial0( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + result) { + int from_bitField0_ = bitField0_; + } - /** - * - * - *
            -           * URI the data is sourced from.
            -           * 
            - * - * 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; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + other); + } else { + super.mergeFrom(other); + return this; } + } - /** - * - * - *
            -           * URI the data is sourced from.
            -           * 
            - * - * 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; + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance()) return this; + if (snippetsBuilder_ == null) { + if (!other.snippets_.isEmpty()) { + if (snippets_.isEmpty()) { + snippets_ = other.snippets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSnippetsIsMutable(); + snippets_.addAll(other.snippets_); + } + onChanged(); + } + } else { + if (!other.snippets_.isEmpty()) { + if (snippetsBuilder_.isEmpty()) { + snippetsBuilder_.dispose(); + snippetsBuilder_ = null; + snippets_ = other.snippets_; + bitField0_ = (bitField0_ & ~0x00000001); + snippetsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSnippetsFieldBuilder() + : null; + } else { + snippetsBuilder_.addAllMessages(other.snippets_); + } } } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
            -           * URI the data is sourced from.
            -           * 
            - * - * 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_ |= 0x00000001; + @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.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + m = + input.readMessage( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.parser(), + extensionRegistry); + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.add(m); + } else { + snippetsBuilder_.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(); - return this; - } + } // finally + return this; + } - /** - * - * - *
            -           * URI the data is sourced from.
            -           * 
            - * - * string uri = 2; - * - * @return This builder for chaining. - */ - public Builder clearUri() { - uri_ = getDefaultInstance().getUri(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } + private int bitField0_; - /** - * - * - *
            -           * URI the data is sourced from.
            -           * 
            - * - * 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; + private java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet> + snippets_ = java.util.Collections.emptyList(); + + private void ensureSnippetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + snippets_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet>(snippets_); bitField0_ |= 0x00000001; - onChanged(); - return this; } + } - private java.lang.Object text_ = ""; + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + snippetsBuilder_; - /** - * - * - *
            -           * Text taken from that URI.
            -           * 
            - * - * 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; - } + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet> + getSnippetsList() { + if (snippetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(snippets_); + } else { + return snippetsBuilder_.getMessageList(); } + } - /** - * - * - *
            -           * Text taken from that URI.
            -           * 
            - * - * 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; - } + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public int getSnippetsCount() { + if (snippetsBuilder_ == null) { + return snippets_.size(); + } else { + return snippetsBuilder_.getCount(); } + } - /** - * - * - *
            -           * Text taken from that URI.
            -           * 
            - * - * string text = 3; - * - * @param value The text to set. - * @return This builder for chaining. - */ - public Builder setText(java.lang.String value) { + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + getSnippets(int index) { + if (snippetsBuilder_ == null) { + return snippets_.get(index); + } else { + return snippetsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder setSnippets( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + value) { + if (snippetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - text_ = value; - bitField0_ |= 0x00000002; + ensureSnippetsIsMutable(); + snippets_.set(index, value); + onChanged(); + } else { + snippetsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder setSnippets( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet.Builder + builderForValue) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.set(index, builderForValue.build()); onChanged(); - return this; + } else { + snippetsBuilder_.setMessage(index, builderForValue.build()); } + return this; + } - /** - * - * - *
            -           * Text taken from that URI.
            -           * 
            - * - * string text = 3; - * - * @return This builder for chaining. - */ - public Builder clearText() { - text_ = getDefaultInstance().getText(); - bitField0_ = (bitField0_ & ~0x00000002); + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addSnippets( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + value) { + if (snippetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSnippetsIsMutable(); + snippets_.add(value); onChanged(); - return this; + } else { + snippetsBuilder_.addMessage(value); } + return this; + } - /** - * - * - *
            -           * Text taken from that URI.
            -           * 
            - * - * string text = 3; - * - * @param value The bytes for text to set. - * @return This builder for chaining. - */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addSnippets( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + value) { + if (snippetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - text_ = value; - bitField0_ |= 0x00000002; + ensureSnippetsIsMutable(); + snippets_.add(index, value); onChanged(); - return this; + } else { + snippetsBuilder_.addMessage(index, value); } + return this; + } - private java.lang.Object title_ = ""; - - /** - * - * - *
            -           * Title of the document.
            -           * 
            - * - * string title = 4; - * - * @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; - } + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addSnippets( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet.Builder + builderForValue) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.add(builderForValue.build()); + onChanged(); + } else { + snippetsBuilder_.addMessage(builderForValue.build()); } + return this; + } - /** - * - * - *
            -           * Title of the document.
            -           * 
            - * - * string title = 4; - * - * @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; - } + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addSnippets( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet.Builder + builderForValue) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.add(index, builderForValue.build()); + onChanged(); + } else { + snippetsBuilder_.addMessage(index, builderForValue.build()); } + return this; + } - /** - * - * - *
            -           * Title of the document.
            -           * 
            - * - * string title = 4; - * - * @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_ |= 0x00000004; + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addAllSnippets( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet> + values) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snippets_); onChanged(); - return this; + } else { + snippetsBuilder_.addAllMessages(values); } + return this; + } - /** - * - * - *
            -           * Title of the document.
            -           * 
            - * - * string title = 4; - * - * @return This builder for chaining. - */ - public Builder clearTitle() { - title_ = getDefaultInstance().getTitle(); - bitField0_ = (bitField0_ & ~0x00000004); + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder clearSnippets() { + if (snippetsBuilder_ == null) { + snippets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); - return this; + } else { + snippetsBuilder_.clear(); } + return this; + } - /** - * - * - *
            -           * Title of the document.
            -           * 
            - * - * string title = 4; - * - * @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_ |= 0x00000004; + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder removeSnippets(int index) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.remove(index); onChanged(); - return this; + } else { + snippetsBuilder_.remove(index); } + return this; + } - private com.google.protobuf.Struct metadata_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - metadataBuilder_; + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet.Builder + getSnippetsBuilder(int index) { + return internalGetSnippetsFieldBuilder().getBuilder(index); + } - /** - * - * - *
            -           * Metadata of the document.
            -           * 
            - * - * .google.protobuf.Struct metadata = 5; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000008) != 0); + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .SnippetOrBuilder + getSnippetsOrBuilder(int index) { + if (snippetsBuilder_ == null) { + return snippets_.get(index); + } else { + return snippetsBuilder_.getMessageOrBuilder(index); } + } - /** - * - * - *
            -           * Metadata of the document.
            -           * 
            - * - * .google.protobuf.Struct metadata = 5; - * - * @return The metadata. - */ - public com.google.protobuf.Struct getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : metadata_; - } else { - return metadataBuilder_.getMessage(); - } + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + getSnippetsOrBuilderList() { + if (snippetsBuilder_ != null) { + return snippetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(snippets_); } + } - /** - * - * - *
            -           * Metadata of the document.
            -           * 
            - * - * .google.protobuf.Struct metadata = 5; - */ - public Builder setMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - } else { - metadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet.Builder + addSnippetsBuilder() { + return internalGetSnippetsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.getDefaultInstance()); + } - /** - * - * - *
            -           * Metadata of the document.
            -           * 
            - * - * .google.protobuf.Struct metadata = 5; - */ - public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet.Builder + addSnippetsBuilder(int index) { + return internalGetSnippetsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.getDefaultInstance()); + } + + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder> + getSnippetsBuilderList() { + return internalGetSnippetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + internalGetSnippetsFieldBuilder() { + if (snippetsBuilder_ == null) { + snippetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder>( + snippets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + snippets_ = null; } + return snippetsBuilder_; + } - /** - * - * - *
            -           * Metadata of the document.
            -           * 
            - * - * .google.protobuf.Struct metadata = 5; - */ - public Builder mergeMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && metadata_ != null - && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { - getMetadataBuilder().mergeFrom(value); - } else { - metadata_ = value; + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource(); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); } - } else { - metadataBuilder_.mergeFrom(value); - } - if (metadata_ != null) { - bitField0_ |= 0x00000008; - onChanged(); + return builder.buildPartial(); } - return this; - } + }; - /** - * - * - *
            -           * Metadata of the document.
            -           * 
            - * - * .google.protobuf.Struct metadata = 5; - */ - public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000008); - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - onChanged(); - return this; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
            -           * Metadata of the document.
            -           * 
            - * - * .google.protobuf.Struct metadata = 5; - */ - public com.google.protobuf.Struct.Builder getMetadataBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetMetadataFieldBuilder().getBuilder(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * - * - *
            -           * Metadata of the document.
            -           * 
            - * - * .google.protobuf.Struct metadata = 5; - */ - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : metadata_; - } - } + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - /** - * - * - *
            -           * Metadata of the document.
            -           * 
            - * - * .google.protobuf.Struct metadata = 5; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - internalGetMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } + public interface EventSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) + com.google.protobuf.MessageOrBuilder { - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - } + /** + * + * + *
            +       * Name of the triggered event.
            +       * 
            + * + * string event = 1; + * + * @return The event. + */ + java.lang.String getEvent(); - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - DEFAULT_INSTANCE; + /** + * + * + *
            +       * Name of the triggered event.
            +       * 
            + * + * string event = 1; + * + * @return The bytes for event. + */ + com.google.protobuf.ByteString getEventBytes(); - static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet(); - } + /** + * + * + *
            +       * Sources used in event fulfillment.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; + * + * + * @return Whether the snippets field is set. + */ + boolean hasSnippets(); - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
            +       * Sources used in event fulfillment.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; + * + * + * @return The snippets. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getSnippets(); - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Snippet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + /** + * + * + *
            +       * Sources used in event fulfillment.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceOrBuilder + getSnippetsOrBuilder(); + } + + /** + * + * + *
            +     * Details about source of Event answer.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource} + */ + public static final class EventSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) + EventSourceOrBuilder { + private static final long serialVersionUID = 0L; - public static com.google.protobuf.Parser parser() { - return PARSER; - } + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EventSource"); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + // Use EventSource.newBuilder() to construct. + private EventSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + private EventSource() { + event_ = ""; } - public static final int SNIPPETS_FIELD_NUMBER = 1; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .Builder.class); + } + + private int bitField0_; + public static final int EVENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet> - snippets_; + private volatile java.lang.Object event_ = ""; /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Name of the triggered event.
                    * 
            * - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * string event = 1; + * + * @return The event. */ @java.lang.Override - public java.util.List< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet> - getSnippetsList() { - return snippets_; + public java.lang.String getEvent() { + java.lang.Object ref = event_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + event_ = s; + return s; + } } /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Name of the triggered event.
                    * 
            * - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * string event = 1; + * + * @return The bytes for event. */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> - getSnippetsOrBuilderList() { - return snippets_; + public com.google.protobuf.ByteString getEventBytes() { + java.lang.Object ref = event_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + event_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + public static final int SNIPPETS_FIELD_NUMBER = 2; + private com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + snippets_; + /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Sources used in event fulfillment.
                    * 
            * * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * + * + * @return Whether the snippets field is set. */ @java.lang.Override - public int getSnippetsCount() { - return snippets_.size(); + public boolean hasSnippets() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Sources used in event fulfillment.
                    * 
            * * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * + * + * @return The snippets. */ @java.lang.Override public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - getSnippets(int index) { - return snippets_.get(index); + getSnippets() { + return snippets_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .getDefaultInstance() + : snippets_; } /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Sources used in event fulfillment.
                    * 
            * * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .SnippetOrBuilder - getSnippetsOrBuilder(int index) { - return snippets_.get(index); + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getSnippetsOrBuilder() { + return snippets_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .getDefaultInstance() + : snippets_; } private byte memoizedIsInitialized = -1; @@ -3201,8 +7149,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < snippets_.size(); i++) { - output.writeMessage(1, snippets_.get(i)); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(event_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, event_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSnippets()); } getUnknownFields().writeTo(output); } @@ -3213,8 +7164,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (int i = 0; i < snippets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, snippets_.get(i)); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(event_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, event_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSnippets()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3228,17 +7182,17 @@ public boolean equals(final java.lang.Object obj) { } if (!(obj instanceof - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource)) { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - other = - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) - obj; + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) obj; - if (!getSnippetsList().equals(other.getSnippetsList())) return false; + if (!getEvent().equals(other.getEvent())) return false; + if (hasSnippets() != other.hasSnippets()) return false; + if (hasSnippets()) { + if (!getSnippets().equals(other.getSnippets())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3250,39 +7204,37 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getSnippetsCount() > 0) { + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + if (hasSnippets()) { hash = (37 * hash) + SNIPPETS_FIELD_NUMBER; - hash = (53 * hash) + getSnippetsList().hashCode(); + hash = (53 * hash) + getSnippets().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource 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.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3290,27 +7242,23 @@ public int hashCode() { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3319,14 +7267,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3335,14 +7281,12 @@ public int hashCode() { PARSER, input, extensionRegistry); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3361,7 +7305,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -3382,75 +7326,83 @@ protected Builder newBuilderForType( * * *
            -       * Details about source of Generative answer.
            +       * Details about source of Event answer.
                    * 
            * * Protobuf type {@code - * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource} + * google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder { + .EventSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_fieldAccessorTable + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.class, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Builder.class); + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .Builder.class); } // Construct using - // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.newBuilder() - private Builder() {} + // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSnippetsFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - if (snippetsBuilder_ == null) { - snippets_ = java.util.Collections.emptyList(); - } else { - snippets_ = null; - snippetsBuilder_.clear(); + event_ = ""; + snippets_ = null; + if (snippetsBuilder_ != null) { + snippetsBuilder_.dispose(); + snippetsBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource build() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - result = buildPartial(); + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3458,13 +7410,11 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource buildPartial() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - result = - new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource(this); - buildPartialRepeatedFields(result); + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource( + this); if (bitField0_ != 0) { buildPartial0(result); } @@ -3472,74 +7422,48 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return result; } - private void buildPartialRepeatedFields( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - result) { - if (snippetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - snippets_ = java.util.Collections.unmodifiableList(snippets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.snippets_ = snippets_; - } else { - result.snippets_ = snippetsBuilder_.build(); - } - } - private void buildPartial0( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.event_ = event_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.snippets_ = snippetsBuilder_ == null ? snippets_ : snippetsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) { return mergeFrom( - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - other) { - if (other - == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance()) return this; - if (snippetsBuilder_ == null) { - if (!other.snippets_.isEmpty()) { - if (snippets_.isEmpty()) { - snippets_ = other.snippets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSnippetsIsMutable(); - snippets_.addAll(other.snippets_); - } - onChanged(); - } - } else { - if (!other.snippets_.isEmpty()) { - if (snippetsBuilder_.isEmpty()) { - snippetsBuilder_.dispose(); - snippetsBuilder_ = null; - snippets_ = other.snippets_; - bitField0_ = (bitField0_ & ~0x00000001); - snippetsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetSnippetsFieldBuilder() - : null; - } else { - snippetsBuilder_.addAllMessages(other.snippets_); - } - } + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .getDefaultInstance()) return this; + if (!other.getEvent().isEmpty()) { + event_ = other.event_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSnippets()) { + mergeSnippets(other.getSnippets()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3569,21 +7493,17 @@ public Builder mergeFrom( break; case 10: { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - m = - input.readMessage( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.parser(), - extensionRegistry); - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.add(m); - } else { - snippetsBuilder_.addMessage(m); - } + event_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + input.readMessage( + internalGetSnippetsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3603,70 +7523,28 @@ public Builder mergeFrom( private int bitField0_; - private java.util.List< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet> - snippets_ = java.util.Collections.emptyList(); - - private void ensureSnippetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - snippets_ = - new java.util.ArrayList< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet>(snippets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> - snippetsBuilder_; + private java.lang.Object event_ = ""; /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Name of the triggered event.
                      * 
            * - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * - */ - public java.util.List< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet> - getSnippetsList() { - if (snippetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(snippets_); - } else { - return snippetsBuilder_.getMessageList(); - } - } - - /** - * - * - *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            -         * 
            + * string event = 1; * - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * @return The event. */ - public int getSnippetsCount() { - if (snippetsBuilder_ == null) { - return snippets_.size(); + public java.lang.String getEvent() { + java.lang.Object ref = event_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + event_ = s; + return s; } else { - return snippetsBuilder_.getCount(); + return (java.lang.String) ref; } } @@ -3674,107 +7552,44 @@ public int getSnippetsCount() { * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Name of the triggered event.
                      * 
            * - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * - */ - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - getSnippets(int index) { - if (snippetsBuilder_ == null) { - return snippets_.get(index); - } else { - return snippetsBuilder_.getMessage(index); - } - } - - /** - * - * - *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            -         * 
            + * string event = 1; * - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * @return The bytes for event. */ - public Builder setSnippets( - int index, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - value) { - if (snippetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnippetsIsMutable(); - snippets_.set(index, value); - onChanged(); + public com.google.protobuf.ByteString getEventBytes() { + java.lang.Object ref = event_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + event_ = b; + return b; } else { - snippetsBuilder_.setMessage(index, value); + return (com.google.protobuf.ByteString) ref; } - return this; } /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Name of the triggered event.
                      * 
            * - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * - */ - public Builder setSnippets( - int index, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet.Builder - builderForValue) { - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.set(index, builderForValue.build()); - onChanged(); - } else { - snippetsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            -         * 
            + * string event = 1; * - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * @param value The event to set. + * @return This builder for chaining. */ - public Builder addSnippets( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - value) { - if (snippetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnippetsIsMutable(); - snippets_.add(value); - onChanged(); - } else { - snippetsBuilder_.addMessage(value); + public Builder setEvent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + event_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } @@ -3782,55 +7597,17 @@ public Builder addSnippets( * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Name of the triggered event.
                      * 
            * - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * - */ - public Builder addSnippets( - int index, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - value) { - if (snippetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnippetsIsMutable(); - snippets_.add(index, value); - onChanged(); - } else { - snippetsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            -         * 
            + * string event = 1; * - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * @return This builder for chaining. */ - public Builder addSnippets( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet.Builder - builderForValue) { - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.add(builderForValue.build()); - onChanged(); - } else { - snippetsBuilder_.addMessage(builderForValue.build()); - } + public Builder clearEvent() { + event_ = getDefaultInstance().getEvent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } @@ -3838,100 +7615,103 @@ public Builder addSnippets( * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Name of the triggered event.
                      * 
            * - * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * string event = 1; + * + * @param value The bytes for event to set. + * @return This builder for chaining. */ - public Builder addSnippets( - int index, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet.Builder - builderForValue) { - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.add(index, builderForValue.build()); - onChanged(); - } else { - snippetsBuilder_.addMessage(index, builderForValue.build()); + public Builder setEventBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + event_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } + private com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + snippets_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder> + snippetsBuilder_; + /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Sources used in event fulfillment.
                      * 
            * * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * + * + * @return Whether the snippets field is set. */ - public Builder addAllSnippets( - java.lang.Iterable< - ? extends - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet> - values) { - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snippets_); - onChanged(); - } else { - snippetsBuilder_.addAllMessages(values); - } - return this; + public boolean hasSnippets() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Sources used in event fulfillment.
                      * 
            * * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * + * + * @return The snippets. */ - public Builder clearSnippets() { + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getSnippets() { if (snippetsBuilder_ == null) { - snippets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + return snippets_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance() + : snippets_; } else { - snippetsBuilder_.clear(); + return snippetsBuilder_.getMessage(); } - return this; } /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Sources used in event fulfillment.
                      * 
            * * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public Builder removeSnippets(int index) { + public Builder setSnippets( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + value) { if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.remove(index); - onChanged(); + if (value == null) { + throw new NullPointerException(); + } + snippets_ = value; } else { - snippetsBuilder_.remove(index); + snippetsBuilder_.setMessage(value); } + bitField0_ |= 0x00000002; + onChanged(); return this; } @@ -3939,175 +7719,182 @@ public Builder removeSnippets(int index) { * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Sources used in event fulfillment.
                      * 
            * * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet.Builder - getSnippetsBuilder(int index) { - return internalGetSnippetsFieldBuilder().getBuilder(index); + public Builder setSnippets( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Builder + builderForValue) { + if (snippetsBuilder_ == null) { + snippets_ = builderForValue.build(); + } else { + snippetsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; } /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Sources used in event fulfillment.
                      * 
            * * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .SnippetOrBuilder - getSnippetsOrBuilder(int index) { + public Builder mergeSnippets( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + value) { if (snippetsBuilder_ == null) { - return snippets_.get(index); + if (((bitField0_ & 0x00000002) != 0) + && snippets_ != null + && snippets_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance()) { + getSnippetsBuilder().mergeFrom(value); + } else { + snippets_ = value; + } } else { - return snippetsBuilder_.getMessageOrBuilder(index); + snippetsBuilder_.mergeFrom(value); } + if (snippets_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; } /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Sources used in event fulfillment.
                      * 
            * * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public java.util.List< - ? extends - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> - getSnippetsOrBuilderList() { + public Builder clearSnippets() { + bitField0_ = (bitField0_ & ~0x00000002); + snippets_ = null; if (snippetsBuilder_ != null) { - return snippetsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(snippets_); + snippetsBuilder_.dispose(); + snippetsBuilder_ = null; } + onChanged(); + return this; } /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Sources used in event fulfillment.
                      * 
            * * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet.Builder - addSnippetsBuilder() { - return internalGetSnippetsFieldBuilder() - .addBuilder( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.getDefaultInstance()); + .Builder + getSnippetsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSnippetsFieldBuilder().getBuilder(); } /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Sources used in event fulfillment.
                      * 
            * * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet.Builder - addSnippetsBuilder(int index) { - return internalGetSnippetsFieldBuilder() - .addBuilder( - index, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.getDefaultInstance()); + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getSnippetsOrBuilder() { + if (snippetsBuilder_ != null) { + return snippetsBuilder_.getMessageOrBuilder(); + } else { + return snippets_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance() + : snippets_; + } } /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Sources used in event fulfillment.
                      * 
            * * - * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public java.util.List< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder> - getSnippetsBuilderList() { - return internalGetSnippetsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.SingleFieldBuilder< com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet, + .GenerativeSource, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder, + .GenerativeSource.Builder, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> + .GenerativeSourceOrBuilder> internalGetSnippetsFieldBuilder() { if (snippetsBuilder_ == null) { snippetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< + new com.google.protobuf.SingleFieldBuilder< com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet, + .GenerativeSource, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder, + .GenerativeSource.Builder, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder>( - snippets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + .GenerativeSourceOrBuilder>( + getSnippets(), getParentForChildren(), isClean()); snippets_ = null; } return snippetsBuilder_; } - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) } - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) private static final com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource(); + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource(); } - public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public static com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource 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 GenerativeSource parsePartialFrom( + public EventSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4127,17 +7914,17 @@ public GenerativeSource 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.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -4154,6 +7941,8 @@ public enum SourceCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { FAQ_SOURCE(3), GENERATIVE_SOURCE(4), + PLAYBOOK_SOURCE(7), + EVENT_SOURCE(8), SOURCE_NOT_SET(0); private final int value; @@ -4177,6 +7966,10 @@ public static SourceCase forNumber(int value) { return FAQ_SOURCE; case 4: return GENERATIVE_SOURCE; + case 7: + return PLAYBOOK_SOURCE; + case 8: + return EVENT_SOURCE; case 0: return SOURCE_NOT_SET; default: @@ -4369,15 +8162,150 @@ public boolean hasGenerativeSource() { * */ @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder - getGenerativeSourceOrBuilder() { - if (sourceCase_ == 4) { - return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getGenerativeSourceOrBuilder() { + if (sourceCase_ == 4) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .getDefaultInstance(); + } + + public static final int PLAYBOOK_SOURCE_FIELD_NUMBER = 7; + + /** + * + * + *
            +     * Populated if the prediction was from Playbook.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + * + * @return Whether the playbookSource field is set. + */ + @java.lang.Override + public boolean hasPlaybookSource() { + return sourceCase_ == 7; + } + + /** + * + * + *
            +     * Populated if the prediction was from Playbook.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + * + * @return The playbookSource. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getPlaybookSource() { + if (sourceCase_ == 7) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .getDefaultInstance(); + } + + /** + * + * + *
            +     * Populated if the prediction was from Playbook.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getPlaybookSourceOrBuilder() { + if (sourceCase_ == 7) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .getDefaultInstance(); + } + + public static final int EVENT_SOURCE_FIELD_NUMBER = 8; + + /** + * + * + *
            +     * Populated if the prediction was from an event.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + * + * @return Whether the eventSource field is set. + */ + @java.lang.Override + public boolean hasEventSource() { + return sourceCase_ == 8; + } + + /** + * + * + *
            +     * Populated if the prediction was from an event.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + * + * @return The eventSource. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + getEventSource() { + if (sourceCase_ == 8) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) + source_; + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .getDefaultInstance(); + } + + /** + * + * + *
            +     * Populated if the prediction was from an event.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSourceOrBuilder + getEventSourceOrBuilder() { + if (sourceCase_ == 8) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) source_; } - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource .getDefaultInstance(); } @@ -4410,6 +8338,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) source_); } + if (sourceCase_ == 7) { + output.writeMessage( + 7, + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + source_); + } + if (sourceCase_ == 8) { + output.writeMessage( + 8, + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) + source_); + } getUnknownFields().writeTo(output); } @@ -4437,6 +8377,21 @@ public int getSerializedSize() { .GenerativeSource) source_); } + if (sourceCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_); + } + if (sourceCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) + source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4462,6 +8417,12 @@ public boolean equals(final java.lang.Object obj) { case 4: if (!getGenerativeSource().equals(other.getGenerativeSource())) return false; break; + case 7: + if (!getPlaybookSource().equals(other.getPlaybookSource())) return false; + break; + case 8: + if (!getEventSource().equals(other.getEventSource())) return false; + break; case 0: default: } @@ -4487,6 +8448,14 @@ public int hashCode() { hash = (37 * hash) + GENERATIVE_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getGenerativeSource().hashCode(); break; + case 7: + hash = (37 * hash) + PLAYBOOK_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getPlaybookSource().hashCode(); + break; + case 8: + hash = (37 * hash) + EVENT_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getEventSource().hashCode(); + break; case 0: default: } @@ -4587,258 +8556,700 @@ public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Represents an answer from Knowledge. Currently supports FAQ and Generative
            +     * answers.
            +     * 
            + * + * Protobuf type {@code google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.class, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + answerText_ = ""; + if (faqSourceBuilder_ != null) { + faqSourceBuilder_.clear(); + } + if (generativeSourceBuilder_ != null) { + generativeSourceBuilder_.clear(); + } + if (playbookSourceBuilder_ != null) { + playbookSourceBuilder_.clear(); + } + if (eventSourceBuilder_ != null) { + eventSourceBuilder_.clear(); + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.answerText_ = answerText_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 3 && faqSourceBuilder_ != null) { + result.source_ = faqSourceBuilder_.build(); + } + if (sourceCase_ == 4 && generativeSourceBuilder_ != null) { + result.source_ = generativeSourceBuilder_.build(); + } + if (sourceCase_ == 7 && playbookSourceBuilder_ != null) { + result.source_ = playbookSourceBuilder_.build(); + } + if (sourceCase_ == 8 && eventSourceBuilder_ != null) { + result.source_ = eventSourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .getDefaultInstance()) return this; + if (!other.getAnswerText().isEmpty()) { + answerText_ = other.answerText_; + bitField0_ |= 0x00000001; + onChanged(); + } + switch (other.getSourceCase()) { + case FAQ_SOURCE: + { + mergeFaqSource(other.getFaqSource()); + break; + } + case GENERATIVE_SOURCE: + { + mergeGenerativeSource(other.getGenerativeSource()); + break; + } + case PLAYBOOK_SOURCE: + { + mergePlaybookSource(other.getPlaybookSource()); + break; + } + case EVENT_SOURCE: + { + mergeEventSource(other.getEventSource()); + 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: + { + answerText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage( + internalGetFaqSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetGenerativeSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 4; + break; + } // case 34 + case 58: + { + input.readMessage( + internalGetPlaybookSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetEventSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 8; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; - /** - * - * - *
            -     * Represents an answer from Knowledge. Currently supports FAQ and Generative
            -     * answers.
            -     * 
            - * - * Protobuf type {@code google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.class, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.Builder.class); + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; } - // Construct using - // com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.newBuilder() - private Builder() {} + private int bitField0_; - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + private java.lang.Object answerText_ = ""; + + /** + * + * + *
            +       * The piece of text from the `source` that answers this suggested query.
            +       * 
            + * + * string answer_text = 1; + * + * @return The answerText. + */ + public java.lang.String getAnswerText() { + java.lang.Object ref = answerText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerText_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - answerText_ = ""; - if (faqSourceBuilder_ != null) { - faqSourceBuilder_.clear(); + /** + * + * + *
            +       * The piece of text from the `source` that answers this suggested query.
            +       * 
            + * + * string answer_text = 1; + * + * @return The bytes for answerText. + */ + public com.google.protobuf.ByteString getAnswerTextBytes() { + java.lang.Object ref = answerText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - if (generativeSourceBuilder_ != null) { - generativeSourceBuilder_.clear(); + } + + /** + * + * + *
            +       * The piece of text from the `source` that answers this suggested query.
            +       * 
            + * + * string answer_text = 1; + * + * @param value The answerText to set. + * @return This builder for chaining. + */ + public Builder setAnswerText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - sourceCase_ = 0; - source_ = null; + answerText_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2.ParticipantProto - .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + /** + * + * + *
            +       * The piece of text from the `source` that answers this suggested query.
            +       * 
            + * + * string answer_text = 1; + * + * @return This builder for chaining. + */ + public Builder clearAnswerText() { + answerText_ = getDefaultInstance().getAnswerText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .getDefaultInstance(); + /** + * + * + *
            +       * The piece of text from the `source` that answers this suggested query.
            +       * 
            + * + * string answer_text = 1; + * + * @param value The bytes for answerText to set. + * @return This builder for chaining. + */ + public Builder setAnswerTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSourceOrBuilder> + faqSourceBuilder_; + + /** + * + * + *
            +       * Populated if the prediction came from FAQ.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + * + * @return Whether the faqSource field is set. + */ @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer build() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public boolean hasFaqSource() { + return sourceCase_ == 3; } + /** + * + * + *
            +       * Populated if the prediction came from FAQ.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + * + * @return The faqSource. + */ @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer buildPartial() { - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer result = - new com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer(this); - if (bitField0_ != 0) { - buildPartial0(result); + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + getFaqSource() { + if (faqSourceBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + source_; + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return faqSourceBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); } - buildPartialOneofs(result); - onBuilt(); - return result; } - private void buildPartial0( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.answerText_ = answerText_; + /** + * + * + *
            +       * Populated if the prediction came from FAQ.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public Builder setFaqSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource value) { + if (faqSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + faqSourceBuilder_.setMessage(value); } + sourceCase_ = 3; + return this; } - private void buildPartialOneofs( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer result) { - result.sourceCase_ = sourceCase_; - result.source_ = this.source_; - if (sourceCase_ == 3 && faqSourceBuilder_ != null) { - result.source_ = faqSourceBuilder_.build(); - } - if (sourceCase_ == 4 && generativeSourceBuilder_ != null) { - result.source_ = generativeSourceBuilder_.build(); + /** + * + * + *
            +       * Populated if the prediction came from FAQ.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public Builder setFaqSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource.Builder + builderForValue) { + if (faqSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + faqSourceBuilder_.setMessage(builderForValue.build()); } + sourceCase_ = 3; + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) { - return mergeFrom( - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) other); + /** + * + * + *
            +       * Populated if the prediction came from FAQ.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public Builder mergeFaqSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource value) { + if (faqSourceBuilder_ == null) { + if (sourceCase_ == 3 + && source_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance()) { + source_ = + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .newBuilder( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); } else { - super.mergeFrom(other); - return this; + if (sourceCase_ == 3) { + faqSourceBuilder_.mergeFrom(value); + } else { + faqSourceBuilder_.setMessage(value); + } } + sourceCase_ = 3; + return this; } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer other) { - if (other - == com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .getDefaultInstance()) return this; - if (!other.getAnswerText().isEmpty()) { - answerText_ = other.answerText_; - bitField0_ |= 0x00000001; - onChanged(); - } - switch (other.getSourceCase()) { - case FAQ_SOURCE: - { - mergeFaqSource(other.getFaqSource()); - break; - } - case GENERATIVE_SOURCE: - { - mergeGenerativeSource(other.getGenerativeSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + /** + * + * + *
            +       * Populated if the prediction came from FAQ.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public Builder clearFaqSource() { + if (faqSourceBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + faqSourceBuilder_.clear(); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
            +       * Populated if the prediction came from FAQ.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource.Builder + getFaqSourceBuilder() { + return internalGetFaqSourceFieldBuilder().getBuilder(); } + /** + * + * + *
            +       * Populated if the prediction came from FAQ.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ @java.lang.Override - public 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.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceOrBuilder + getFaqSourceOrBuilder() { + if ((sourceCase_ == 3) && (faqSourceBuilder_ != null)) { + return faqSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + source_; + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - answerText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - input.readMessage( - internalGetFaqSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetGenerativeSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 4; - 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 sourceCase_ = 0; - private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); } - public Builder clearSource() { - sourceCase_ = 0; - source_ = null; + /** + * + * + *
            +       * Populated if the prediction came from FAQ.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSourceOrBuilder> + internalGetFaqSourceFieldBuilder() { + if (faqSourceBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); + } + faqSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSourceOrBuilder>( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; onChanged(); - return this; + return faqSourceBuilder_; } - private int bitField0_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder> + generativeSourceBuilder_; - private java.lang.Object answerText_ = ""; + /** + * + * + *
            +       * Populated if the prediction was Generative.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + * + * @return Whether the generativeSource field is set. + */ + @java.lang.Override + public boolean hasGenerativeSource() { + return sourceCase_ == 4; + } /** * * *
            -       * The piece of text from the `source` that answers this suggested query.
            +       * Populated if the prediction was Generative.
                    * 
            * - * string answer_text = 1; + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * * - * @return The answerText. + * @return The generativeSource. */ - public java.lang.String getAnswerText() { - java.lang.Object ref = answerText_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - answerText_ = s; - return s; + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getGenerativeSource() { + if (generativeSourceBuilder_ == null) { + if (sourceCase_ == 4) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } else { - return (java.lang.String) ref; + if (sourceCase_ == 4) { + return generativeSourceBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } } @@ -4846,44 +9257,51 @@ public java.lang.String getAnswerText() { * * *
            -       * The piece of text from the `source` that answers this suggested query.
            +       * Populated if the prediction was Generative.
                    * 
            * - * string answer_text = 1; - * - * @return The bytes for answerText. + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * */ - public com.google.protobuf.ByteString getAnswerTextBytes() { - java.lang.Object ref = answerText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - answerText_ = b; - return b; + public Builder setGenerativeSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + value) { + if (generativeSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + generativeSourceBuilder_.setMessage(value); } + sourceCase_ = 4; + return this; } /** * * *
            -       * The piece of text from the `source` that answers this suggested query.
            +       * Populated if the prediction was Generative.
                    * 
            * - * string answer_text = 1; - * - * @param value The answerText to set. - * @return This builder for chaining. + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * */ - public Builder setAnswerText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setGenerativeSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Builder + builderForValue) { + if (generativeSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + generativeSourceBuilder_.setMessage(builderForValue.build()); } - answerText_ = value; - bitField0_ |= 0x00000001; - onChanged(); + sourceCase_ = 4; return this; } @@ -4891,17 +9309,69 @@ public Builder setAnswerText(java.lang.String value) { * * *
            -       * The piece of text from the `source` that answers this suggested query.
            +       * Populated if the prediction was Generative.
                    * 
            * - * string answer_text = 1; + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + */ + public Builder mergeGenerativeSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + value) { + if (generativeSourceBuilder_ == null) { + if (sourceCase_ == 4 + && source_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance()) { + source_ = + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.newBuilder( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 4) { + generativeSourceBuilder_.mergeFrom(value); + } else { + generativeSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 4; + return this; + } + + /** * - * @return This builder for chaining. + * + *
            +       * Populated if the prediction was Generative.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * */ - public Builder clearAnswerText() { - answerText_ = getDefaultInstance().getAnswerText(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + public Builder clearGenerativeSource() { + if (generativeSourceBuilder_ == null) { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + } + generativeSourceBuilder_.clear(); + } return this; } @@ -4909,80 +9379,147 @@ public Builder clearAnswerText() { * * *
            -       * The piece of text from the `source` that answers this suggested query.
            +       * Populated if the prediction was Generative.
                    * 
            * - * string answer_text = 1; + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Builder + getGenerativeSourceBuilder() { + return internalGetGenerativeSourceFieldBuilder().getBuilder(); + } + + /** * - * @param value The bytes for answerText to set. - * @return This builder for chaining. + * + *
            +       * Populated if the prediction was Generative.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * */ - public Builder setAnswerTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getGenerativeSourceOrBuilder() { + if ((sourceCase_ == 4) && (generativeSourceBuilder_ != null)) { + return generativeSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 4) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * Populated if the prediction was Generative.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder> + internalGetGenerativeSourceFieldBuilder() { + if (generativeSourceBuilder_ == null) { + if (!(sourceCase_ == 4)) { + source_ = + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); + } + generativeSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder>( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; } - checkByteStringIsUtf8(value); - answerText_ = value; - bitField0_ |= 0x00000001; + sourceCase_ = 4; onChanged(); - return this; + return generativeSourceBuilder_; } private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource .Builder, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSourceOrBuilder> - faqSourceBuilder_; + .GenerativeSourceOrBuilder> + playbookSourceBuilder_; /** * * *
            -       * Populated if the prediction came from FAQ.
            +       * Populated if the prediction was from Playbook.
                    * 
            * * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * * - * @return Whether the faqSource field is set. + * @return Whether the playbookSource field is set. */ @java.lang.Override - public boolean hasFaqSource() { - return sourceCase_ == 3; + public boolean hasPlaybookSource() { + return sourceCase_ == 7; } /** * * *
            -       * Populated if the prediction came from FAQ.
            +       * Populated if the prediction was from Playbook.
                    * 
            * * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * * - * @return The faqSource. + * @return The playbookSource. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - getFaqSource() { - if (faqSourceBuilder_ == null) { - if (sourceCase_ == 3) { - return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getPlaybookSource() { + if (playbookSourceBuilder_ == null) { + if (sourceCase_ == 7) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) source_; } - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } else { - if (sourceCase_ == 3) { - return faqSourceBuilder_.getMessage(); + if (sourceCase_ == 7) { + return playbookSourceBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } } @@ -4990,25 +9527,26 @@ public boolean hasFaqSource() { * * *
            -       * Populated if the prediction came from FAQ.
            +       * Populated if the prediction was from Playbook.
                    * 
            * * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public Builder setFaqSource( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource value) { - if (faqSourceBuilder_ == null) { + public Builder setPlaybookSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + value) { + if (playbookSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { - faqSourceBuilder_.setMessage(value); + playbookSourceBuilder_.setMessage(value); } - sourceCase_ = 3; + sourceCase_ = 7; return this; } @@ -5016,23 +9554,24 @@ public Builder setFaqSource( * * *
            -       * Populated if the prediction came from FAQ.
            +       * Populated if the prediction was from Playbook.
                    * 
            * * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public Builder setFaqSource( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource.Builder + public Builder setPlaybookSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Builder builderForValue) { - if (faqSourceBuilder_ == null) { + if (playbookSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { - faqSourceBuilder_.setMessage(builderForValue.build()); + playbookSourceBuilder_.setMessage(builderForValue.build()); } - sourceCase_ = 3; + sourceCase_ = 7; return this; } @@ -5040,25 +9579,26 @@ public Builder setFaqSource( * * *
            -       * Populated if the prediction came from FAQ.
            +       * Populated if the prediction was from Playbook.
                    * 
            * * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public Builder mergeFaqSource( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource value) { - if (faqSourceBuilder_ == null) { - if (sourceCase_ == 3 + public Builder mergePlaybookSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + value) { + if (playbookSourceBuilder_ == null) { + if (sourceCase_ == 7 && source_ - != com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance()) { + != com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance()) { source_ = - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.newBuilder( (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource) + .GenerativeSource) source_) .mergeFrom(value) .buildPartial(); @@ -5067,13 +9607,13 @@ public Builder mergeFaqSource( } onChanged(); } else { - if (sourceCase_ == 3) { - faqSourceBuilder_.mergeFrom(value); + if (sourceCase_ == 7) { + playbookSourceBuilder_.mergeFrom(value); } else { - faqSourceBuilder_.setMessage(value); + playbookSourceBuilder_.setMessage(value); } } - sourceCase_ = 3; + sourceCase_ = 7; return this; } @@ -5081,26 +9621,26 @@ public Builder mergeFaqSource( * * *
            -       * Populated if the prediction came from FAQ.
            +       * Populated if the prediction was from Playbook.
                    * 
            * * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public Builder clearFaqSource() { - if (faqSourceBuilder_ == null) { - if (sourceCase_ == 3) { + public Builder clearPlaybookSource() { + if (playbookSourceBuilder_ == null) { + if (sourceCase_ == 7) { sourceCase_ = 0; source_ = null; onChanged(); } } else { - if (sourceCase_ == 3) { + if (sourceCase_ == 7) { sourceCase_ = 0; source_ = null; } - faqSourceBuilder_.clear(); + playbookSourceBuilder_.clear(); } return this; } @@ -5109,41 +9649,44 @@ public Builder clearFaqSource() { * * *
            -       * Populated if the prediction came from FAQ.
            +       * Populated if the prediction was from Playbook.
                    * 
            * * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource.Builder - getFaqSourceBuilder() { - return internalGetFaqSourceFieldBuilder().getBuilder(); + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Builder + getPlaybookSourceBuilder() { + return internalGetPlaybookSourceFieldBuilder().getBuilder(); } /** * * *
            -       * Populated if the prediction came from FAQ.
            +       * Populated if the prediction was from Playbook.
                    * 
            * * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceOrBuilder - getFaqSourceOrBuilder() { - if ((sourceCase_ == 3) && (faqSourceBuilder_ != null)) { - return faqSourceBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getPlaybookSourceOrBuilder() { + if ((sourceCase_ == 7) && (playbookSourceBuilder_ != null)) { + return playbookSourceBuilder_.getMessageOrBuilder(); } else { - if (sourceCase_ == 3) { - return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + if (sourceCase_ == 7) { + return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) source_; } - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } } @@ -5151,100 +9694,102 @@ public Builder clearFaqSource() { * * *
            -       * Populated if the prediction came from FAQ.
            +       * Populated if the prediction was from Playbook.
                    * 
            * * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource .Builder, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSourceOrBuilder> - internalGetFaqSourceFieldBuilder() { - if (faqSourceBuilder_ == null) { - if (!(sourceCase_ == 3)) { + .GenerativeSourceOrBuilder> + internalGetPlaybookSourceFieldBuilder() { + if (playbookSourceBuilder_ == null) { + if (!(sourceCase_ == 7)) { source_ = - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } - faqSourceBuilder_ = + playbookSourceBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .Builder, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSourceOrBuilder>( - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + .GenerativeSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder>( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) source_, getParentForChildren(), isClean()); source_ = null; } - sourceCase_ = 3; + sourceCase_ = 7; onChanged(); - return faqSourceBuilder_; + return playbookSourceBuilder_; } private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource .Builder, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder> - generativeSourceBuilder_; + .EventSourceOrBuilder> + eventSourceBuilder_; /** * * *
            -       * Populated if the prediction was Generative.
            +       * Populated if the prediction was from an event.
                    * 
            * * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * * - * @return Whether the generativeSource field is set. + * @return Whether the eventSource field is set. */ @java.lang.Override - public boolean hasGenerativeSource() { - return sourceCase_ == 4; + public boolean hasEventSource() { + return sourceCase_ == 8; } /** * * *
            -       * Populated if the prediction was Generative.
            +       * Populated if the prediction was from an event.
                    * 
            * * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * * - * @return The generativeSource. + * @return The eventSource. */ @java.lang.Override - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - getGenerativeSource() { - if (generativeSourceBuilder_ == null) { - if (sourceCase_ == 4) { + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + getEventSource() { + if (eventSourceBuilder_ == null) { + if (sourceCase_ == 8) { return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) source_; } - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .getDefaultInstance(); } else { - if (sourceCase_ == 4) { - return generativeSourceBuilder_.getMessage(); + if (sourceCase_ == 8) { + return eventSourceBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .getDefaultInstance(); } } @@ -5252,26 +9797,25 @@ public boolean hasGenerativeSource() { * * *
            -       * Populated if the prediction was Generative.
            +       * Populated if the prediction was from an event.
                    * 
            * * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public Builder setGenerativeSource( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - value) { - if (generativeSourceBuilder_ == null) { + public Builder setEventSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource value) { + if (eventSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { - generativeSourceBuilder_.setMessage(value); + eventSourceBuilder_.setMessage(value); } - sourceCase_ = 4; + sourceCase_ = 8; return this; } @@ -5279,24 +9823,23 @@ public Builder setGenerativeSource( * * *
            -       * Populated if the prediction was Generative.
            +       * Populated if the prediction was from an event.
                    * 
            * * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public Builder setGenerativeSource( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Builder + public Builder setEventSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource.Builder builderForValue) { - if (generativeSourceBuilder_ == null) { + if (eventSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { - generativeSourceBuilder_.setMessage(builderForValue.build()); + eventSourceBuilder_.setMessage(builderForValue.build()); } - sourceCase_ = 4; + sourceCase_ = 8; return this; } @@ -5304,26 +9847,25 @@ public Builder setGenerativeSource( * * *
            -       * Populated if the prediction was Generative.
            +       * Populated if the prediction was from an event.
                    * 
            * * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public Builder mergeGenerativeSource( - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - value) { - if (generativeSourceBuilder_ == null) { - if (sourceCase_ == 4 + public Builder mergeEventSource( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource value) { + if (eventSourceBuilder_ == null) { + if (sourceCase_ == 8 && source_ != com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance()) { + .EventSource.getDefaultInstance()) { source_ = - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .newBuilder( (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) source_) .mergeFrom(value) .buildPartial(); @@ -5332,13 +9874,13 @@ public Builder mergeGenerativeSource( } onChanged(); } else { - if (sourceCase_ == 4) { - generativeSourceBuilder_.mergeFrom(value); + if (sourceCase_ == 8) { + eventSourceBuilder_.mergeFrom(value); } else { - generativeSourceBuilder_.setMessage(value); + eventSourceBuilder_.setMessage(value); } } - sourceCase_ = 4; + sourceCase_ = 8; return this; } @@ -5346,26 +9888,26 @@ public Builder mergeGenerativeSource( * * *
            -       * Populated if the prediction was Generative.
            +       * Populated if the prediction was from an event.
                    * 
            * * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public Builder clearGenerativeSource() { - if (generativeSourceBuilder_ == null) { - if (sourceCase_ == 4) { + public Builder clearEventSource() { + if (eventSourceBuilder_ == null) { + if (sourceCase_ == 8) { sourceCase_ = 0; source_ = null; onChanged(); } } else { - if (sourceCase_ == 4) { + if (sourceCase_ == 8) { sourceCase_ = 0; source_ = null; } - generativeSourceBuilder_.clear(); + eventSourceBuilder_.clear(); } return this; } @@ -5374,44 +9916,44 @@ public Builder clearGenerativeSource() { * * *
            -       * Populated if the prediction was Generative.
            +       * Populated if the prediction was from an event.
                    * 
            * * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource .Builder - getGenerativeSourceBuilder() { - return internalGetGenerativeSourceFieldBuilder().getBuilder(); + getEventSourceBuilder() { + return internalGetEventSourceFieldBuilder().getBuilder(); } /** * * *
            -       * Populated if the prediction was Generative.
            +       * Populated if the prediction was from an event.
                    * 
            * * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ @java.lang.Override public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder - getGenerativeSourceOrBuilder() { - if ((sourceCase_ == 4) && (generativeSourceBuilder_ != null)) { - return generativeSourceBuilder_.getMessageOrBuilder(); + .EventSourceOrBuilder + getEventSourceOrBuilder() { + if ((sourceCase_ == 8) && (eventSourceBuilder_ != null)) { + return eventSourceBuilder_.getMessageOrBuilder(); } else { - if (sourceCase_ == 4) { + if (sourceCase_ == 8) { return (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) source_; } - return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .getDefaultInstance(); } } @@ -5419,44 +9961,42 @@ public Builder clearGenerativeSource() { * * *
            -       * Populated if the prediction was Generative.
            +       * Populated if the prediction was from an event.
                    * 
            * * - * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource .Builder, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder> - internalGetGenerativeSourceFieldBuilder() { - if (generativeSourceBuilder_ == null) { - if (!(sourceCase_ == 4)) { + .EventSourceOrBuilder> + internalGetEventSourceFieldBuilder() { + if (eventSourceBuilder_ == null) { + if (!(sourceCase_ == 8)) { source_ = - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .getDefaultInstance(); } - generativeSourceBuilder_ = + eventSourceBuilder_ = new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .Builder, com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Builder, - com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder>( - (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSourceOrBuilder>( + (com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) source_, getParentForChildren(), isClean()); source_ = null; } - sourceCase_ = 4; + sourceCase_ = 8; onChanged(); - return generativeSourceBuilder_; + return eventSourceBuilder_; } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer) diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfo.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfo.java index 7f1838a4aa52..8027c331971a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfo.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfo.java @@ -3012,6 +3012,762 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface QueryGenerationDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * The total number of tokens in the prompt.
            +     * 
            + * + * int32 prompt_token_count = 1; + * + * @return The promptTokenCount. + */ + int getPromptTokenCount(); + + /** + * + * + *
            +     * The total number of tokens in the generated candidates.
            +     * 
            + * + * int32 candidates_token_count = 2; + * + * @return The candidatesTokenCount. + */ + int getCandidatesTokenCount(); + + /** + * + * + *
            +     * The total number of tokens for the entire request.
            +     * 
            + * + * int32 total_token_count = 3; + * + * @return The totalTokenCount. + */ + int getTotalTokenCount(); + } + + /** + * + * + *
            +   * Token usage metadata for query generation.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo} + */ + public static final class QueryGenerationDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + QueryGenerationDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryGenerationDebugInfo"); + } + + // Use QueryGenerationDebugInfo.newBuilder() to construct. + private QueryGenerationDebugInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryGenerationDebugInfo() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder.class); + } + + public static final int PROMPT_TOKEN_COUNT_FIELD_NUMBER = 1; + private int promptTokenCount_ = 0; + + /** + * + * + *
            +     * The total number of tokens in the prompt.
            +     * 
            + * + * int32 prompt_token_count = 1; + * + * @return The promptTokenCount. + */ + @java.lang.Override + public int getPromptTokenCount() { + return promptTokenCount_; + } + + public static final int CANDIDATES_TOKEN_COUNT_FIELD_NUMBER = 2; + private int candidatesTokenCount_ = 0; + + /** + * + * + *
            +     * The total number of tokens in the generated candidates.
            +     * 
            + * + * int32 candidates_token_count = 2; + * + * @return The candidatesTokenCount. + */ + @java.lang.Override + public int getCandidatesTokenCount() { + return candidatesTokenCount_; + } + + public static final int TOTAL_TOKEN_COUNT_FIELD_NUMBER = 3; + private int totalTokenCount_ = 0; + + /** + * + * + *
            +     * The total number of tokens for the entire request.
            +     * 
            + * + * int32 total_token_count = 3; + * + * @return The totalTokenCount. + */ + @java.lang.Override + public int getTotalTokenCount() { + return totalTokenCount_; + } + + 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 (promptTokenCount_ != 0) { + output.writeInt32(1, promptTokenCount_); + } + if (candidatesTokenCount_ != 0) { + output.writeInt32(2, candidatesTokenCount_); + } + if (totalTokenCount_ != 0) { + output.writeInt32(3, totalTokenCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (promptTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, promptTokenCount_); + } + if (candidatesTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, candidatesTokenCount_); + } + if (totalTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalTokenCount_); + } + 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.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo other = + (com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) obj; + + if (getPromptTokenCount() != other.getPromptTokenCount()) return false; + if (getCandidatesTokenCount() != other.getCandidatesTokenCount()) return false; + if (getTotalTokenCount() != other.getTotalTokenCount()) 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) + PROMPT_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getPromptTokenCount(); + hash = (37 * hash) + CANDIDATES_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCandidatesTokenCount(); + hash = (37 * hash) + TOTAL_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalTokenCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + 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.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseFrom( + 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.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Token usage metadata for query generation.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .class, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + promptTokenCount_ = 0; + candidatesTokenCount_ = 0; + totalTokenCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ParticipantProto + .internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + build() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + buildPartial() { + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo result = + new com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.promptTokenCount_ = promptTokenCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.candidatesTokenCount_ = candidatesTokenCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalTokenCount_ = totalTokenCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) { + return mergeFrom( + (com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo other) { + if (other + == com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance()) return this; + if (other.getPromptTokenCount() != 0) { + setPromptTokenCount(other.getPromptTokenCount()); + } + if (other.getCandidatesTokenCount() != 0) { + setCandidatesTokenCount(other.getCandidatesTokenCount()); + } + if (other.getTotalTokenCount() != 0) { + setTotalTokenCount(other.getTotalTokenCount()); + } + 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: + { + promptTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + candidatesTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + totalTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int promptTokenCount_; + + /** + * + * + *
            +       * The total number of tokens in the prompt.
            +       * 
            + * + * int32 prompt_token_count = 1; + * + * @return The promptTokenCount. + */ + @java.lang.Override + public int getPromptTokenCount() { + return promptTokenCount_; + } + + /** + * + * + *
            +       * The total number of tokens in the prompt.
            +       * 
            + * + * int32 prompt_token_count = 1; + * + * @param value The promptTokenCount to set. + * @return This builder for chaining. + */ + public Builder setPromptTokenCount(int value) { + + promptTokenCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The total number of tokens in the prompt.
            +       * 
            + * + * int32 prompt_token_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearPromptTokenCount() { + bitField0_ = (bitField0_ & ~0x00000001); + promptTokenCount_ = 0; + onChanged(); + return this; + } + + private int candidatesTokenCount_; + + /** + * + * + *
            +       * The total number of tokens in the generated candidates.
            +       * 
            + * + * int32 candidates_token_count = 2; + * + * @return The candidatesTokenCount. + */ + @java.lang.Override + public int getCandidatesTokenCount() { + return candidatesTokenCount_; + } + + /** + * + * + *
            +       * The total number of tokens in the generated candidates.
            +       * 
            + * + * int32 candidates_token_count = 2; + * + * @param value The candidatesTokenCount to set. + * @return This builder for chaining. + */ + public Builder setCandidatesTokenCount(int value) { + + candidatesTokenCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The total number of tokens in the generated candidates.
            +       * 
            + * + * int32 candidates_token_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearCandidatesTokenCount() { + bitField0_ = (bitField0_ & ~0x00000002); + candidatesTokenCount_ = 0; + onChanged(); + return this; + } + + private int totalTokenCount_; + + /** + * + * + *
            +       * The total number of tokens for the entire request.
            +       * 
            + * + * int32 total_token_count = 3; + * + * @return The totalTokenCount. + */ + @java.lang.Override + public int getTotalTokenCount() { + return totalTokenCount_; + } + + /** + * + * + *
            +       * The total number of tokens for the entire request.
            +       * 
            + * + * int32 total_token_count = 3; + * + * @param value The totalTokenCount to set. + * @return This builder for chaining. + */ + public Builder setTotalTokenCount(int value) { + + totalTokenCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The total number of tokens for the entire request.
            +       * 
            + * + * int32 total_token_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalTokenCount() { + bitField0_ = (bitField0_ & ~0x00000004); + totalTokenCount_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + private static final com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryGenerationDebugInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int bitField0_; public static final int QUERY_GENERATION_FAILURE_REASON_FIELD_NUMBER = 1; private int queryGenerationFailureReason_ = 0; @@ -3326,6 +4082,119 @@ public com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder getServiceLatencyO : serviceLatency_; } + public static final int QUERY_GENERATION_DEBUG_INFO_FIELD_NUMBER = 7; + private com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + queryGenerationDebugInfo_; + + /** + * + * + *
            +   * Token usage metadata for query generation.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return Whether the queryGenerationDebugInfo field is set. + */ + @java.lang.Override + public boolean hasQueryGenerationDebugInfo() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Token usage metadata for query generation.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return The queryGenerationDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getQueryGenerationDebugInfo() { + return queryGenerationDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance() + : queryGenerationDebugInfo_; + } + + /** + * + * + *
            +   * Token usage metadata for query generation.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfoOrBuilder + getQueryGenerationDebugInfoOrBuilder() { + return queryGenerationDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance() + : queryGenerationDebugInfo_; + } + + public static final int CES_DEBUG_INFO_FIELD_NUMBER = 8; + private com.google.protobuf.Struct cesDebugInfo_; + + /** + * + * + *
            +   * Debug information from CES runtime API.
            +   * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return Whether the cesDebugInfo field is set. + */ + @java.lang.Override + public boolean hasCesDebugInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +   * Debug information from CES runtime API.
            +   * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return The cesDebugInfo. + */ + @java.lang.Override + public com.google.protobuf.Struct getCesDebugInfo() { + return cesDebugInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : cesDebugInfo_; + } + + /** + * + * + *
            +   * Debug information from CES runtime API.
            +   * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCesDebugInfoOrBuilder() { + return cesDebugInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : cesDebugInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3367,6 +4236,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(6, getServiceLatency()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(7, getQueryGenerationDebugInfo()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(8, getCesDebugInfo()); + } getUnknownFields().writeTo(output); } @@ -3409,6 +4284,14 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getServiceLatency()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getQueryGenerationDebugInfo()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCesDebugInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3442,6 +4325,14 @@ public boolean equals(final java.lang.Object obj) { if (hasServiceLatency()) { if (!getServiceLatency().equals(other.getServiceLatency())) return false; } + if (hasQueryGenerationDebugInfo() != other.hasQueryGenerationDebugInfo()) return false; + if (hasQueryGenerationDebugInfo()) { + if (!getQueryGenerationDebugInfo().equals(other.getQueryGenerationDebugInfo())) return false; + } + if (hasCesDebugInfo() != other.hasCesDebugInfo()) return false; + if (hasCesDebugInfo()) { + if (!getCesDebugInfo().equals(other.getCesDebugInfo())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3471,6 +4362,14 @@ public int hashCode() { hash = (37 * hash) + SERVICE_LATENCY_FIELD_NUMBER; hash = (53 * hash) + getServiceLatency().hashCode(); } + if (hasQueryGenerationDebugInfo()) { + hash = (37 * hash) + QUERY_GENERATION_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getQueryGenerationDebugInfo().hashCode(); + } + if (hasCesDebugInfo()) { + hash = (37 * hash) + CES_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCesDebugInfo().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3616,6 +4515,8 @@ private void maybeForceBuilderInitialization() { internalGetKnowledgeAssistBehaviorFieldBuilder(); internalGetIngestedContextReferenceDebugInfoFieldBuilder(); internalGetServiceLatencyFieldBuilder(); + internalGetQueryGenerationDebugInfoFieldBuilder(); + internalGetCesDebugInfoFieldBuilder(); } } @@ -3641,6 +4542,16 @@ public Builder clear() { serviceLatencyBuilder_.dispose(); serviceLatencyBuilder_ = null; } + queryGenerationDebugInfo_ = null; + if (queryGenerationDebugInfoBuilder_ != null) { + queryGenerationDebugInfoBuilder_.dispose(); + queryGenerationDebugInfoBuilder_ = null; + } + cesDebugInfo_ = null; + if (cesDebugInfoBuilder_ != null) { + cesDebugInfoBuilder_.dispose(); + cesDebugInfoBuilder_ = null; + } return this; } @@ -3706,6 +4617,18 @@ private void buildPartial0(com.google.cloud.dialogflow.v2.KnowledgeAssistDebugIn serviceLatencyBuilder_ == null ? serviceLatency_ : serviceLatencyBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.queryGenerationDebugInfo_ = + queryGenerationDebugInfoBuilder_ == null + ? queryGenerationDebugInfo_ + : queryGenerationDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.cesDebugInfo_ = + cesDebugInfoBuilder_ == null ? cesDebugInfo_ : cesDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -3740,6 +4663,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo if (other.hasServiceLatency()) { mergeServiceLatency(other.getServiceLatency()); } + if (other.hasQueryGenerationDebugInfo()) { + mergeQueryGenerationDebugInfo(other.getQueryGenerationDebugInfo()); + } + if (other.hasCesDebugInfo()) { + mergeCesDebugInfo(other.getCesDebugInfo()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3807,6 +4736,21 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 50 + case 58: + { + input.readMessage( + internalGetQueryGenerationDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetCesDebugInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4805,6 +5749,430 @@ public com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder getServiceLatencyO return serviceLatencyBuilder_; } + private com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + queryGenerationDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfoOrBuilder> + queryGenerationDebugInfoBuilder_; + + /** + * + * + *
            +     * Token usage metadata for query generation.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return Whether the queryGenerationDebugInfo field is set. + */ + public boolean hasQueryGenerationDebugInfo() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +     * Token usage metadata for query generation.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return The queryGenerationDebugInfo. + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getQueryGenerationDebugInfo() { + if (queryGenerationDebugInfoBuilder_ == null) { + return queryGenerationDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance() + : queryGenerationDebugInfo_; + } else { + return queryGenerationDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Token usage metadata for query generation.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + public Builder setQueryGenerationDebugInfo( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo value) { + if (queryGenerationDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryGenerationDebugInfo_ = value; + } else { + queryGenerationDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Token usage metadata for query generation.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + public Builder setQueryGenerationDebugInfo( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder + builderForValue) { + if (queryGenerationDebugInfoBuilder_ == null) { + queryGenerationDebugInfo_ = builderForValue.build(); + } else { + queryGenerationDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Token usage metadata for query generation.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + public Builder mergeQueryGenerationDebugInfo( + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo value) { + if (queryGenerationDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && queryGenerationDebugInfo_ != null + && queryGenerationDebugInfo_ + != com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance()) { + getQueryGenerationDebugInfoBuilder().mergeFrom(value); + } else { + queryGenerationDebugInfo_ = value; + } + } else { + queryGenerationDebugInfoBuilder_.mergeFrom(value); + } + if (queryGenerationDebugInfo_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Token usage metadata for query generation.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + public Builder clearQueryGenerationDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000040); + queryGenerationDebugInfo_ = null; + if (queryGenerationDebugInfoBuilder_ != null) { + queryGenerationDebugInfoBuilder_.dispose(); + queryGenerationDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Token usage metadata for query generation.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.Builder + getQueryGenerationDebugInfoBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetQueryGenerationDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Token usage metadata for query generation.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfoOrBuilder + getQueryGenerationDebugInfoOrBuilder() { + if (queryGenerationDebugInfoBuilder_ != null) { + return queryGenerationDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return queryGenerationDebugInfo_ == null + ? com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance() + : queryGenerationDebugInfo_; + } + } + + /** + * + * + *
            +     * Token usage metadata for query generation.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfoOrBuilder> + internalGetQueryGenerationDebugInfoFieldBuilder() { + if (queryGenerationDebugInfoBuilder_ == null) { + queryGenerationDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfoOrBuilder>( + getQueryGenerationDebugInfo(), getParentForChildren(), isClean()); + queryGenerationDebugInfo_ = null; + } + return queryGenerationDebugInfoBuilder_; + } + + private com.google.protobuf.Struct cesDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + cesDebugInfoBuilder_; + + /** + * + * + *
            +     * Debug information from CES runtime API.
            +     * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return Whether the cesDebugInfo field is set. + */ + public boolean hasCesDebugInfo() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
            +     * Debug information from CES runtime API.
            +     * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return The cesDebugInfo. + */ + public com.google.protobuf.Struct getCesDebugInfo() { + if (cesDebugInfoBuilder_ == null) { + return cesDebugInfo_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : cesDebugInfo_; + } else { + return cesDebugInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Debug information from CES runtime API.
            +     * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + */ + public Builder setCesDebugInfo(com.google.protobuf.Struct value) { + if (cesDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cesDebugInfo_ = value; + } else { + cesDebugInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Debug information from CES runtime API.
            +     * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + */ + public Builder setCesDebugInfo(com.google.protobuf.Struct.Builder builderForValue) { + if (cesDebugInfoBuilder_ == null) { + cesDebugInfo_ = builderForValue.build(); + } else { + cesDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Debug information from CES runtime API.
            +     * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + */ + public Builder mergeCesDebugInfo(com.google.protobuf.Struct value) { + if (cesDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && cesDebugInfo_ != null + && cesDebugInfo_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCesDebugInfoBuilder().mergeFrom(value); + } else { + cesDebugInfo_ = value; + } + } else { + cesDebugInfoBuilder_.mergeFrom(value); + } + if (cesDebugInfo_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Debug information from CES runtime API.
            +     * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + */ + public Builder clearCesDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000080); + cesDebugInfo_ = null; + if (cesDebugInfoBuilder_ != null) { + cesDebugInfoBuilder_.dispose(); + cesDebugInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Debug information from CES runtime API.
            +     * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + */ + public com.google.protobuf.Struct.Builder getCesDebugInfoBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetCesDebugInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Debug information from CES runtime API.
            +     * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + */ + public com.google.protobuf.StructOrBuilder getCesDebugInfoOrBuilder() { + if (cesDebugInfoBuilder_ != null) { + return cesDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return cesDebugInfo_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : cesDebugInfo_; + } + } + + /** + * + * + *
            +     * Debug information from CES runtime API.
            +     * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetCesDebugInfoFieldBuilder() { + if (cesDebugInfoBuilder_ == null) { + cesDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCesDebugInfo(), getParentForChildren(), isClean()); + cesDebugInfo_ = null; + } + return cesDebugInfoBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfoOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfoOrBuilder.java index e98334a4f44f..2b5f83e94e69 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfoOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/KnowledgeAssistDebugInfoOrBuilder.java @@ -242,4 +242,86 @@ public interface KnowledgeAssistDebugInfoOrBuilder * .google.cloud.dialogflow.v2.ServiceLatency service_latency = 6; */ com.google.cloud.dialogflow.v2.ServiceLatencyOrBuilder getServiceLatencyOrBuilder(); + + /** + * + * + *
            +   * Token usage metadata for query generation.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return Whether the queryGenerationDebugInfo field is set. + */ + boolean hasQueryGenerationDebugInfo(); + + /** + * + * + *
            +   * Token usage metadata for query generation.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return The queryGenerationDebugInfo. + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getQueryGenerationDebugInfo(); + + /** + * + * + *
            +   * Token usage metadata for query generation.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.QueryGenerationDebugInfoOrBuilder + getQueryGenerationDebugInfoOrBuilder(); + + /** + * + * + *
            +   * Debug information from CES runtime API.
            +   * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return Whether the cesDebugInfo field is set. + */ + boolean hasCesDebugInfo(); + + /** + * + * + *
            +   * Debug information from CES runtime API.
            +   * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return The cesDebugInfo. + */ + com.google.protobuf.Struct getCesDebugInfo(); + + /** + * + * + *
            +   * Debug information from CES runtime API.
            +   * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + */ + com.google.protobuf.StructOrBuilder getCesDebugInfoOrBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java index c2d1514174fd..943b37e3c16b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/OutputAudioEncoding.java @@ -56,11 +56,12 @@ public enum OutputAudioEncoding implements com.google.protobuf.ProtocolMessageEn * * *
            -   * MP3 audio at 32kbps.
            +   * MP3 audio at 64kbps.
                * 
            * - * OUTPUT_AUDIO_ENCODING_MP3 = 2; + * OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; */ + @java.lang.Deprecated OUTPUT_AUDIO_ENCODING_MP3(2), /** * @@ -145,12 +146,12 @@ public enum OutputAudioEncoding implements com.google.protobuf.ProtocolMessageEn * * *
            -   * MP3 audio at 32kbps.
            +   * MP3 audio at 64kbps.
                * 
            * - * OUTPUT_AUDIO_ENCODING_MP3 = 2; + * OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; */ - public static final int OUTPUT_AUDIO_ENCODING_MP3_VALUE = 2; + @java.lang.Deprecated public static final int OUTPUT_AUDIO_ENCODING_MP3_VALUE = 2; /** * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Participant.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Participant.java index bf49c6763a85..83dd58c5f826 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Participant.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/Participant.java @@ -702,9 +702,9 @@ public com.google.protobuf.ByteString getSipRecordingMediaLabelBytes() { * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -716,6 +716,11 @@ public com.google.protobuf.ByteString getSipRecordingMediaLabelBytes() { * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -758,9 +763,9 @@ public java.lang.String getObfuscatedExternalUserId() { * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -772,6 +777,11 @@ public java.lang.String getObfuscatedExternalUserId() { * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -1888,9 +1898,9 @@ public Builder setSipRecordingMediaLabelBytes(com.google.protobuf.ByteString val * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -1902,6 +1912,11 @@ public Builder setSipRecordingMediaLabelBytes(com.google.protobuf.ByteString val * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -1944,9 +1959,9 @@ public java.lang.String getObfuscatedExternalUserId() { * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -1958,6 +1973,11 @@ public java.lang.String getObfuscatedExternalUserId() { * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -2000,9 +2020,9 @@ public com.google.protobuf.ByteString getObfuscatedExternalUserIdBytes() { * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -2014,6 +2034,11 @@ public com.google.protobuf.ByteString getObfuscatedExternalUserIdBytes() { * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -2055,9 +2080,9 @@ public Builder setObfuscatedExternalUserId(java.lang.String value) { * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -2069,6 +2094,11 @@ public Builder setObfuscatedExternalUserId(java.lang.String value) { * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -2106,9 +2136,9 @@ public Builder clearObfuscatedExternalUserId() { * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -2120,6 +2150,11 @@ public Builder clearObfuscatedExternalUserId() { * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantOrBuilder.java index 15b853482f9e..648f26a1492c 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantOrBuilder.java @@ -134,9 +134,9 @@ public interface ParticipantOrBuilder * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -148,6 +148,11 @@ public interface ParticipantOrBuilder * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -179,9 +184,9 @@ public interface ParticipantOrBuilder * Dialogflow adds the obfuscated user id with the participant. * * 2. If you set this field in - * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + * [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. * @@ -193,6 +198,11 @@ public interface ParticipantOrBuilder * example, Dialogflow determines whether a user in one conversation returned * in a later conversation. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java index ec6904ff8ae5..309e1f2ceab7 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ParticipantProto.java @@ -224,6 +224,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -232,6 +236,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -248,6 +260,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -558,22 +574,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016latest_message\030\002 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\031\n" + "\014context_size\030\003 \001(\005B\003\340A\001\022%\n" - + "\030previous_suggested_query\030\004 \001(\tB\003\340A\001\"\247\001\n" + + "\030previous_suggested_query\030\004 \001(\tB\003\340A\001\"\253\002\n" + "\036SuggestKnowledgeAssistResponse\022W\n" + "\027knowledge_assist_answer\030\001" + " \001(\01321.google.cloud.dialogflow.v2.KnowledgeAssistAnswerB\003\340A\003\022\026\n" + "\016latest_message\030\002 \001(\t\022\024\n" - + "\014context_size\030\003 \001(\005\"\271\005\n" + + "\014context_size\030\003 \001(\005\022\201\001\n" + + "\"additional_suggested_query_results\030\004 \003(\0132P." + + "google.cloud.dialogflow.v2.KnowledgeAssi" + + "stAnswer.AdditionalSuggestedQueryResultB\003\340A\001\"\271\005\n" + "!IngestedContextReferenceDebugInfo\022\037\n" + "\027project_not_allowlisted\030\001 \001(\010\022#\n" + "\033context_reference_retrieved\030\002 \001(\010\022\200\001\n" - + "\036ingested_parameters_debug_info\030\003 \003(\0132X.google.cloud.dia" - + "logflow.v2.IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo\032\312\003\n" + + "\036ingested_parameters_debug_info\030\003 \003(\0132X.goog" + + "le.cloud.dialogflow.v2.IngestedContextRe" + + "ferenceDebugInfo.IngestedParameterDebugInfo\032\312\003\n" + "\032IngestedParameterDebugInfo\022\021\n" + "\tparameter\030\001 \001(\t\022\202\001\n" - + "\020ingestion_status\030\002 \001(\0162h.google.cl" - + "oud.dialogflow.v2.IngestedContextReferen" - + "ceDebugInfo.IngestedParameterDebugInfo.IngestionStatus\"\223\002\n" + + "\020ingestion_status\030\002 \001(\0162h.google.cloud.dialogflow.v2.IngestedCo" + + "ntextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus\"\223\002\n" + "\017IngestionStatus\022 \n" + "\034INGESTION_STATUS_UNSPECIFIED\020\000\022\036\n" + "\032INGESTION_STATUS_SUCCEEDED\020\001\022*\n" @@ -583,27 +602,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037INGESTION_STATUS_INVALID_FORMAT\020\005\022&\n" + "\"INGESTION_STATUS_LANGUAGE_MISMATCH\020\006\"\227\002\n" + "\016ServiceLatency\022e\n" - + "\032internal_service_latencies\030\001 \003(\0132A.google.clo" - + "ud.dialogflow.v2.ServiceLatency.InternalServiceLatency\032\235\001\n" + + "\032internal_service_latencies\030\001 \003(\0132" + + "A.google.cloud.dialogflow.v2.ServiceLatency.InternalServiceLatency\032\235\001\n" + "\026InternalServiceLatency\022\014\n" + "\004step\030\001 \001(\t\022\022\n\n" + "latency_ms\030\002 \001(\002\022.\n\n" + "start_time\030\003 \001(\0132\032.google.protobuf.Timestamp\0221\n\r" - + "complete_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\364\017\n" + + "complete_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\214\022\n" + "\030KnowledgeAssistDebugInfo\022z\n" - + "\037query_generation_failure_reason\030\001" - + " \001(\0162Q.google.cloud.dialogflow.v2.Knowle" - + "dgeAssistDebugInfo.QueryGenerationFailureReason\022\202\001\n" - + "#query_categorization_failure_reason\030\002 \001(\0162U.google.cloud.dialogflow." - + "v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason\022V\n" - + "\031datastore_response_reason\030\003" - + " \001(\01623.google.cloud.dialogflow.v2.DatastoreResponseReason\022o\n" - + "\031knowledge_assist_behavior\030\004 \001(\0132L.google.cloud.d" - + "ialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior\022l\n" - + "%ingested_context_reference_debug_info\030\005 \001(\0132=.google.cl" - + "oud.dialogflow.v2.IngestedContextReferenceDebugInfo\022C\n" - + "\017service_latency\030\006 \001(\0132*.g" - + "oogle.cloud.dialogflow.v2.ServiceLatency\032\271\005\n" + + "\037query_generation_failure_reason\030\001 \001(\0162Q.google.cloud.dialogfl" + + "ow.v2.KnowledgeAssistDebugInfo.QueryGenerationFailureReason\022\202\001\n" + + "#query_categorization_failure_reason\030\002 \001(\0162U.google.cloud" + + ".dialogflow.v2.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason\022V\n" + + "\031datastore_response_reason\030\003 \001(\01623.google.clo" + + "ud.dialogflow.v2.DatastoreResponseReason\022o\n" + + "\031knowledge_assist_behavior\030\004 \001(\0132L.go" + + "ogle.cloud.dialogflow.v2.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior\022l\n" + + "%ingested_context_reference_debug_info\030\005 \001(\013" + + "2=.google.cloud.dialogflow.v2.IngestedContextReferenceDebugInfo\022C\n" + + "\017service_latency\030\006" + + " \001(\0132*.google.cloud.dialogflow.v2.ServiceLatency\022r\n" + + "\033query_generation_debug_info\030\007 \001(\0132M.google.cloud.dialogflow.v2.K" + + "nowledgeAssistDebugInfo.QueryGenerationDebugInfo\022/\n" + + "\016ces_debug_info\030\010 \001(\0132\027.google.protobuf.Struct\032\271\005\n" + "\027KnowledgeAssistBehavior\022%\n" + "\035answer_generation_rewriter_on\030\001 \001(\010\022\"\n" + "\032end_user_metadata_included\030\002 \001(\010\022\031\n" @@ -623,7 +644,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036query_contained_search_context\030\017 \001(\010\022.\n" + "&invalid_items_query_suggestion_skipped\030\020 \001(\010\022+\n" + "#primary_query_redacted_and_replaced\030\021 \001(\010\022%\n" - + "\035appended_search_context_count\030\022 \001(\005\"\317\003\n" + + "\035appended_search_context_count\030\022 \001(\005\032q\n" + + "\030QueryGenerationDebugInfo\022\032\n" + + "\022prompt_token_count\030\001 \001(\005\022\036\n" + + "\026candidates_token_count\030\002 \001(\005\022\031\n" + + "\021total_token_count\030\003 \001(\005\"\317\003\n" + "\034QueryGenerationFailureReason\022/\n" + "+QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED\020\000\022!\n" + "\035QUERY_GENERATION_OUT_OF_QUOTA\020\001\022\033\n" @@ -642,33 +667,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED\020\000\022\'\n" + "#QUERY_CATEGORIZATION_INVALID_CONFIG\020\001\022)\n" + "%QUERY_CATEGORIZATION_RESULT_NOT_FOUND\020\002\022\037\n" - + "\033QUERY_CATEGORIZATION_FAILED\020\003\"\366\006\n" + + "\033QUERY_CATEGORIZATION_FAILED\020\003\"\301\014\n" + "\025KnowledgeAssistAnswer\022Y\n" - + "\017suggested_query\030\001 \001(\0132@.google.cloud." - + "dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery\022a\n" - + "\026suggested_query_answer\030\002 \001" - + "(\0132A.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + + "\017suggested_query\030\001 \001(\0132@.g" + + "oogle.cloud.dialogflow.v2.KnowledgeAssistAnswer.SuggestedQuery\022a\n" + + "\026suggested_query_answer\030\002 \001(\0132A.google.cloud.dialogflow" + + ".v2.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + "answer_record\030\003 \001(\t\022Y\n" + "\033knowledge_assist_debug_info\030\007" - + " \001(\01324.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo\032$\n" + + " \001(\01324.google.cloud.dialogflow.v2.KnowledgeAssistDebugInfo\032\311\001\n" + "\016SuggestedQuery\022\022\n\n" - + "query_text\030\001 \001(\t\032\206\004\n" + + "query_text\030\001 \001(\t\022l\n" + + "\017search_contexts\030\004 \003(\0132N.google.cloud.dialo" + + "gflow.v2.KnowledgeAssistAnswer.SuggestedQuery.SearchContextB\003\340A\001\0325\n\r" + + "SearchContext\022\020\n" + + "\003key\030\001 \001(\tB\003\340A\001\022\022\n" + + "\005value\030\002 \001(\tB\003\340A\001\032\307\001\n" + + "\036AdditionalSuggestedQueryResult\022^\n" + + "\017suggested_query\030\001 \001(\0132@.google.cloud.dialo" + + "gflow.v2.KnowledgeAssistAnswer.SuggestedQueryB\003\340A\003\022E\n\r" + + "answer_record\030\005 \001(\tB.\340A\003\372A(\n" + + "&dialogflow.googleapis.com/AnswerRecord\032\341\006\n" + "\017KnowledgeAnswer\022\023\n" + "\013answer_text\030\001 \001(\t\022a\n\n" - + "faq_source\030\003 \001(\0132K.google.cloud.dialogflow.v2.Knowledg" - + "eAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022o\n" - + "\021generative_source\030\004 \001(\0132R.google.cl" - + "oud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\032\035\n" + + "faq_source\030\003 \001(\0132K.google.cloud.di" + + "alogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022o\n" + + "\021generative_source\030\004 \001(\0132R.google.cloud.dialogflow.v2.Kn" + + "owledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\022m\n" + + "\017playbook_source\030\007 \001(\0132R.google.cloud.dialogflow.v2.KnowledgeAs" + + "sistAnswer.KnowledgeAnswer.GenerativeSourceH\000\022e\n" + + "\014event_source\030\010 \001(\0132M.google.clo" + + "ud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.EventSourceH\000\032\035\n" + "\tFaqSource\022\020\n" + "\010question\030\002 \001(\t\032\340\001\n" + "\020GenerativeSource\022l\n" - + "\010snippets\030\001 \003(\0132Z.google.cloud." - + "dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + + "\010snippets\030\001 \003(\0132Z.google.cloud.dialog" + + "flow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + "\007Snippet\022\013\n" + "\003uri\030\002 \001(\t\022\014\n" + "\004text\030\003 \001(\t\022\r\n" + "\005title\030\004 \001(\t\022)\n" - + "\010metadata\030\005 \001(\0132\027.google.protobuf.StructB\010\n" + + "\010metadata\030\005 \001(\0132\027.google.protobuf.Struct\032\202\001\n" + + "\013EventSource\022\r\n" + + "\005event\030\001 \001(\t\022d\n" + + "\010snippets\030\002 \001(\0132R.google.cloud.dialogflo" + + "w.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceB\010\n" + "\006source*\326\002\n" + "\027DatastoreResponseReason\022)\n" + "%DATASTORE_RESPONSE_REASON_UNSPECIFIED\020\000\022\010\n" @@ -682,82 +725,88 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034ANSWER_GENERATION_RAI_FAILED\020\010\022\"\n" + "\036ANSWER_GENERATION_NOT_GROUNDED\020\t2\372\030\n" + "\014Participants\022\245\002\n" - + "\021CreateParticipant\0224.google.cloud.dialogflow.v2.Crea" - + "teParticipantRequest\032\'.google.cloud.dial" - + "ogflow.v2.Participant\"\260\001\332A\022parent,partic" - + "ipant\202\323\344\223\002\224\001\"4/v2/{parent=projects/*/con" - + "versations/*}/participants:\013participantZO\"@/v2/{parent=projects/*/locations/*/co" - + "nversations/*}/participants:\013participant\022\366\001\n" - + "\016GetParticipant\0221.google.cloud.dialogflow.v2.GetParticipantRequest\032\'.google." - + "cloud.dialogflow.v2.Participant\"\207\001\332A\004nam" - + "e\202\323\344\223\002z\0224/v2/{name=projects/*/conversati" - + "ons/*/participants/*}ZB\022@/v2/{name=proje" - + "cts/*/locations/*/conversations/*/participants/*}\022\211\002\n" - + "\020ListParticipants\0223.google.cloud.dialogflow.v2.ListParticipantsRequ" - + "est\0324.google.cloud.dialogflow.v2.ListPar" - + "ticipantsResponse\"\211\001\332A\006parent\202\323\344\223\002z\0224/v2" - + "/{parent=projects/*/conversations/*}/participantsZB\022@/v2/{parent=projects/*/loca" - + "tions/*/conversations/*}/participants\022\302\002\n" - + "\021UpdateParticipant\0224.google.cloud.dialo" - + "gflow.v2.UpdateParticipantRequest\032\'.goog" - + "le.cloud.dialogflow.v2.Participant\"\315\001\332A\027" - + "participant,update_mask\202\323\344\223\002\254\0012@/v2/{par" - + "ticipant.name=projects/*/conversations/*/participants/*}:\013participantZ[2L/v2/{pa" - + "rticipant.name=projects/*/locations/*/co" - + "nversations/*/participants/*}:\013participant\022\372\002\n" - + "\016AnalyzeContent\0221.google.cloud.dialogflow.v2.AnalyzeContentRequest\0322.googl" - + "e.cloud.dialogflow.v2.AnalyzeContentResp" - + "onse\"\200\002\332A\026participant,text_input\332A\027parti" - + "cipant,event_input\332A\027participant,audio_i" - + "nput\202\323\344\223\002\254\001\"J/v2/{participant=projects/*" - + "/conversations/*/participants/*}:analyzeContent:\001*Z[\"V/v2/{participant=projects/" - + "*/locations/*/conversations/*/participants/*}:analyzeContent:\001*\022\230\001\n" - + "\027StreamingAnalyzeContent\022:.google.cloud.dialogflow.v2", - ".StreamingAnalyzeContentRequest\032;.google" - + ".cloud.dialogflow.v2.StreamingAnalyzeCon" - + "tentResponse\"\000(\0010\001\022\311\002\n\017SuggestArticles\0222" - + ".google.cloud.dialogflow.v2.SuggestArtic" - + "lesRequest\0323.google.cloud.dialogflow.v2." - + "SuggestArticlesResponse\"\314\001\332A\006parent\202\323\344\223\002" - + "\274\001\"R/v2/{parent=projects/*/conversations" - + "/*/participants/*}/suggestions:suggestAr" - + "ticles:\001*Zc\"^/v2/{parent=projects/*/loca" - + "tions/*/conversations/*/participants/*}/" - + "suggestions:suggestArticles:\001*\022\323\002\n\021Sugge" - + "stFaqAnswers\0224.google.cloud.dialogflow.v" - + "2.SuggestFaqAnswersRequest\0325.google.clou" - + "d.dialogflow.v2.SuggestFaqAnswersRespons" - + "e\"\320\001\332A\006parent\202\323\344\223\002\300\001\"T/v2/{parent=projec" - + "ts/*/conversations/*/participants/*}/sug" - + "gestions:suggestFaqAnswers:\001*Ze\"`/v2/{pa" - + "rent=projects/*/locations/*/conversation" - + "s/*/participants/*}/suggestions:suggestF" - + "aqAnswers:\001*\022\335\002\n\023SuggestSmartReplies\0226.g" - + "oogle.cloud.dialogflow.v2.SuggestSmartRe" - + "pliesRequest\0327.google.cloud.dialogflow.v" - + "2.SuggestSmartRepliesResponse\"\324\001\332A\006paren" - + "t\202\323\344\223\002\304\001\"V/v2/{parent=projects/*/convers" - + "ations/*/participants/*}/suggestions:sug" - + "gestSmartReplies:\001*Zg\"b/v2/{parent=proje" - + "cts/*/locations/*/conversations/*/partic" - + "ipants/*}/suggestions:suggestSmartReplie" - + "s:\001*\022\343\002\n\026SuggestKnowledgeAssist\0229.google" - + ".cloud.dialogflow.v2.SuggestKnowledgeAss" - + "istRequest\032:.google.cloud.dialogflow.v2." - + "SuggestKnowledgeAssistResponse\"\321\001\202\323\344\223\002\312\001" - + "\"Y/v2/{parent=projects/*/conversations/*" - + "/participants/*}/suggestions:suggestKnow" - + "ledgeAssist:\001*Zj\"e/v2/{parent=projects/*" - + "/locations/*/conversations/*/participant" - + "s/*}/suggestions:suggestKnowledgeAssist:" - + "\001*\032x\312A\031dialogflow.googleapis.com\322AYhttps" - + "://www.googleapis.com/auth/cloud-platfor" - + "m,https://www.googleapis.com/auth/dialog" - + "flowB\226\001\n\036com.google.cloud.dialogflow.v2B" - + "\020ParticipantProtoP\001Z>cloud.google.com/go" - + "/dialogflow/apiv2/dialogflowpb;dialogflo" - + "wpb\242\002\002DF\252\002\032Google.Cloud.Dialogflow.V2b\006p" - + "roto3" + + "\021CreateParticipant\0224.google.cloud.dialogflow." + + "v2.CreateParticipantRequest\032\'.google.clo" + + "ud.dialogflow.v2.Participant\"\260\001\332A\022parent" + + ",participant\202\323\344\223\002\224\001\"4/v2/{parent=project" + + "s/*/conversations/*}/participants:\013participantZO\"@/v2/{parent=projects/*/locatio" + + "ns/*/conversations/*}/participants:\013participant\022\366\001\n" + + "\016GetParticipant\0221.google.cloud.dialogflow.v2.GetParticipantRequest\032\'." + + "google.cloud.dialogflow.v2.Participant\"\207" + + "\001\332A\004name\202\323\344\223\002z\0224/v2/{name=projects/*/con", + "versations/*/participants/*}ZB\022@/v2/{nam" + + "e=projects/*/locations/*/conversations/*" + + "/participants/*}\022\211\002\n\020ListParticipants\0223." + + "google.cloud.dialogflow.v2.ListParticipa" + + "ntsRequest\0324.google.cloud.dialogflow.v2." + + "ListParticipantsResponse\"\211\001\332A\006parent\202\323\344\223" + + "\002z\0224/v2/{parent=projects/*/conversations" + + "/*}/participantsZB\022@/v2/{parent=projects" + + "/*/locations/*/conversations/*}/particip" + + "ants\022\302\002\n\021UpdateParticipant\0224.google.clou" + + "d.dialogflow.v2.UpdateParticipantRequest" + + "\032\'.google.cloud.dialogflow.v2.Participan" + + "t\"\315\001\332A\027participant,update_mask\202\323\344\223\002\254\0012@/" + + "v2/{participant.name=projects/*/conversa" + + "tions/*/participants/*}:\013participantZ[2L" + + "/v2/{participant.name=projects/*/locatio" + + "ns/*/conversations/*/participants/*}:\013pa" + + "rticipant\022\372\002\n\016AnalyzeContent\0221.google.cl" + + "oud.dialogflow.v2.AnalyzeContentRequest\032" + + "2.google.cloud.dialogflow.v2.AnalyzeCont" + + "entResponse\"\200\002\332A\026participant,text_input\332" + + "A\027participant,event_input\332A\027participant," + + "audio_input\202\323\344\223\002\254\001\"J/v2/{participant=pro" + + "jects/*/conversations/*/participants/*}:" + + "analyzeContent:\001*Z[\"V/v2/{participant=pr" + + "ojects/*/locations/*/conversations/*/par" + + "ticipants/*}:analyzeContent:\001*\022\230\001\n\027Strea" + + "mingAnalyzeContent\022:.google.cloud.dialog" + + "flow.v2.StreamingAnalyzeContentRequest\032;" + + ".google.cloud.dialogflow.v2.StreamingAna" + + "lyzeContentResponse\"\000(\0010\001\022\311\002\n\017SuggestArt" + + "icles\0222.google.cloud.dialogflow.v2.Sugge" + + "stArticlesRequest\0323.google.cloud.dialogf" + + "low.v2.SuggestArticlesResponse\"\314\001\332A\006pare" + + "nt\202\323\344\223\002\274\001\"R/v2/{parent=projects/*/conver" + + "sations/*/participants/*}/suggestions:su" + + "ggestArticles:\001*Zc\"^/v2/{parent=projects" + + "/*/locations/*/conversations/*/participa" + + "nts/*}/suggestions:suggestArticles:\001*\022\323\002" + + "\n\021SuggestFaqAnswers\0224.google.cloud.dialo" + + "gflow.v2.SuggestFaqAnswersRequest\0325.goog" + + "le.cloud.dialogflow.v2.SuggestFaqAnswers" + + "Response\"\320\001\332A\006parent\202\323\344\223\002\300\001\"T/v2/{parent" + + "=projects/*/conversations/*/participants" + + "/*}/suggestions:suggestFaqAnswers:\001*Ze\"`" + + "/v2/{parent=projects/*/locations/*/conve" + + "rsations/*/participants/*}/suggestions:s" + + "uggestFaqAnswers:\001*\022\335\002\n\023SuggestSmartRepl" + + "ies\0226.google.cloud.dialogflow.v2.Suggest" + + "SmartRepliesRequest\0327.google.cloud.dialo" + + "gflow.v2.SuggestSmartRepliesResponse\"\324\001\332" + + "A\006parent\202\323\344\223\002\304\001\"V/v2/{parent=projects/*/" + + "conversations/*/participants/*}/suggesti" + + "ons:suggestSmartReplies:\001*Zg\"b/v2/{paren" + + "t=projects/*/locations/*/conversations/*" + + "/participants/*}/suggestions:suggestSmar" + + "tReplies:\001*\022\343\002\n\026SuggestKnowledgeAssist\0229" + + ".google.cloud.dialogflow.v2.SuggestKnowl" + + "edgeAssistRequest\032:.google.cloud.dialogf" + + "low.v2.SuggestKnowledgeAssistResponse\"\321\001" + + "\202\323\344\223\002\312\001\"Y/v2/{parent=projects/*/conversa" + + "tions/*/participants/*}/suggestions:sugg" + + "estKnowledgeAssist:\001*Zj\"e/v2/{parent=pro" + + "jects/*/locations/*/conversations/*/part" + + "icipants/*}/suggestions:suggestKnowledge" + + "Assist:\001*\032x\312A\031dialogflow.googleapis.com\322" + + "AYhttps://www.googleapis.com/auth/cloud-" + + "platform,https://www.googleapis.com/auth" + + "/dialogflowB\226\001\n\036com.google.cloud.dialogf" + + "low.v2B\020ParticipantProtoP\001Z>cloud.google" + + ".com/go/dialogflow/apiv2/dialogflowpb;di" + + "alogflowpb\242\002\002DF\252\002\032Google.Cloud.Dialogflo" + + "w.V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1157,7 +1206,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_SuggestKnowledgeAssistResponse_descriptor, new java.lang.String[] { - "KnowledgeAssistAnswer", "LatestMessage", "ContextSize", + "KnowledgeAssistAnswer", + "LatestMessage", + "ContextSize", + "AdditionalSuggestedQueryResults", }); internal_static_google_cloud_dialogflow_v2_IngestedContextReferenceDebugInfo_descriptor = getDescriptor().getMessageType(35); @@ -1204,6 +1256,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "KnowledgeAssistBehavior", "IngestedContextReferenceDebugInfo", "ServiceLatency", + "QueryGenerationDebugInfo", + "CesDebugInfo", }); internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor = internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor @@ -1230,6 +1284,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrimaryQueryRedactedAndReplaced", "AppendedSearchContextCount", }); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor = + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_descriptor + .getNestedType(1); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor, + new java.lang.String[] { + "PromptTokenCount", "CandidatesTokenCount", "TotalTokenCount", + }); internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor = getDescriptor().getMessageType(38); internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_fieldAccessorTable = @@ -1245,16 +1308,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_descriptor, new java.lang.String[] { - "QueryText", + "QueryText", "SearchContexts", }); - internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor = + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor = + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_descriptor + .getNestedType(0); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor = internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor.getNestedType( 1); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor, + new java.lang.String[] { + "SuggestedQuery", "AnswerRecord", + }); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor = + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_descriptor.getNestedType( + 2); internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor, new java.lang.String[] { - "AnswerText", "FaqSource", "GenerativeSource", "Source", + "AnswerText", + "FaqSource", + "GenerativeSource", + "PlaybookSource", + "EventSource", + "Source", }); internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor = internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor @@ -1283,6 +1369,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Uri", "Text", "Title", "Metadata", }); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor = + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor + .getNestedType(2); + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor, + new java.lang.String[] { + "Event", "Snippets", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeAnswer.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeAnswer.java index 7687991945c7..e6c439ccfcf1 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeAnswer.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SearchKnowledgeAnswer.java @@ -123,6 +123,26 @@ public enum AnswerType implements com.google.protobuf.ProtocolMessageEnum { * INTENT = 3; */ INTENT(3), + /** + * + * + *
            +     * The answer is from Playbook.
            +     * 
            + * + * PLAYBOOK = 4; + */ + PLAYBOOK(4), + /** + * + * + *
            +     * The answer is from event.
            +     * 
            + * + * EVENT = 5; + */ + EVENT(5), UNRECOGNIZED(-1), ; @@ -180,6 +200,28 @@ public enum AnswerType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INTENT_VALUE = 3; + /** + * + * + *
            +     * The answer is from Playbook.
            +     * 
            + * + * PLAYBOOK = 4; + */ + public static final int PLAYBOOK_VALUE = 4; + + /** + * + * + *
            +     * The answer is from event.
            +     * 
            + * + * EVENT = 5; + */ + public static final int EVENT_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -212,6 +254,10 @@ public static AnswerType forNumber(int value) { return GENERATIVE; case 3: return INTENT; + case 4: + return PLAYBOOK; + case 5: + return EVENT; default: return null; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipConfig.java new file mode 100644 index 000000000000..d53b779289e2 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipConfig.java @@ -0,0 +1,1536 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/conversation_profile.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +/** + * + * + *
            + * Defines the SIP configuration.
            + * 
            + * + * Protobuf type {@code google.cloud.dialogflow.v2.SipConfig} + */ +@com.google.protobuf.Generated +public final class SipConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2.SipConfig) + SipConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SipConfig"); + } + + // Use SipConfig.newBuilder() to construct. + private SipConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SipConfig() { + copyInboundCallLegHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2_SipConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2_SipConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.SipConfig.class, + com.google.cloud.dialogflow.v2.SipConfig.Builder.class); + } + + private int bitField0_; + public static final int CREATE_CONVERSATION_ON_THE_FLY_FIELD_NUMBER = 1; + private boolean createConversationOnTheFly_ = false; + + /** + * + * + *
            +   * Asks Dialogflow Telephony to create the conversation provided in the SIP
            +   * header on the fly when the call comes in.
            +   * 
            + * + * bool create_conversation_on_the_fly = 1; + * + * @return The createConversationOnTheFly. + */ + @java.lang.Override + public boolean getCreateConversationOnTheFly() { + return createConversationOnTheFly_; + } + + public static final int INACTIVE_START_FIELD_NUMBER = 3; + private boolean inactiveStart_ = false; + + /** + * + * + *
            +   * Starts the conversation with inactive SDP directives
            +   * 
            + * + * bool inactive_start = 3; + * + * @return The inactiveStart. + */ + @java.lang.Override + public boolean getInactiveStart() { + return inactiveStart_; + } + + public static final int MAX_AUDIO_RECORDING_DURATION_FIELD_NUMBER = 4; + private com.google.protobuf.Duration maxAudioRecordingDuration_; + + /** + * + * + *
            +   * Max duration for audio recording.
            +   * Overrides the default value of 15 min.
            +   * Max value is 8 hours.
            +   * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return Whether the maxAudioRecordingDuration field is set. + */ + @java.lang.Override + public boolean hasMaxAudioRecordingDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Max duration for audio recording.
            +   * Overrides the default value of 15 min.
            +   * Max value is 8 hours.
            +   * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return The maxAudioRecordingDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getMaxAudioRecordingDuration() { + return maxAudioRecordingDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxAudioRecordingDuration_; + } + + /** + * + * + *
            +   * Max duration for audio recording.
            +   * Overrides the default value of 15 min.
            +   * Max value is 8 hours.
            +   * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getMaxAudioRecordingDurationOrBuilder() { + return maxAudioRecordingDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxAudioRecordingDuration_; + } + + public static final int ALLOW_VIRTUAL_AGENT_INTERACTION_FIELD_NUMBER = 5; + private boolean allowVirtualAgentInteraction_ = false; + + /** + * + * + *
            +   * Allows interactions with a Dialogflow virtual agent even if the call is
            +   * connected for SIPREC purposes.
            +   * 
            + * + * bool allow_virtual_agent_interaction = 5; + * + * @return The allowVirtualAgentInteraction. + */ + @java.lang.Override + public boolean getAllowVirtualAgentInteraction() { + return allowVirtualAgentInteraction_; + } + + public static final int KEEP_CONVERSATION_RUNNING_FIELD_NUMBER = 6; + private boolean keepConversationRunning_ = false; + + /** + * + * + *
            +   * Keeps the conversation running even if the call is disconnected.
            +   * 
            + * + * bool keep_conversation_running = 6; + * + * @return The keepConversationRunning. + */ + @java.lang.Override + public boolean getKeepConversationRunning() { + return keepConversationRunning_; + } + + public static final int COPY_INBOUND_CALL_LEG_HEADERS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList copyInboundCallLegHeaders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * List of inbound call leg headers to be copied to outbound call legs created
            +   * later.
            +   * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return A list containing the copyInboundCallLegHeaders. + */ + public com.google.protobuf.ProtocolStringList getCopyInboundCallLegHeadersList() { + return copyInboundCallLegHeaders_; + } + + /** + * + * + *
            +   * List of inbound call leg headers to be copied to outbound call legs created
            +   * later.
            +   * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return The count of copyInboundCallLegHeaders. + */ + public int getCopyInboundCallLegHeadersCount() { + return copyInboundCallLegHeaders_.size(); + } + + /** + * + * + *
            +   * List of inbound call leg headers to be copied to outbound call legs created
            +   * later.
            +   * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the element to return. + * @return The copyInboundCallLegHeaders at the given index. + */ + public java.lang.String getCopyInboundCallLegHeaders(int index) { + return copyInboundCallLegHeaders_.get(index); + } + + /** + * + * + *
            +   * List of inbound call leg headers to be copied to outbound call legs created
            +   * later.
            +   * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the value to return. + * @return The bytes of the copyInboundCallLegHeaders at the given index. + */ + public com.google.protobuf.ByteString getCopyInboundCallLegHeadersBytes(int index) { + return copyInboundCallLegHeaders_.getByteString(index); + } + + public static final int IGNORE_REINVITE_MEDIA_DIRECTION_FIELD_NUMBER = 9; + private boolean ignoreReinviteMediaDirection_ = false; + + /** + * + * + *
            +   * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
            +   * media direction.
            +   * 
            + * + * bool ignore_reinvite_media_direction = 9; + * + * @return The ignoreReinviteMediaDirection. + */ + @java.lang.Override + public boolean getIgnoreReinviteMediaDirection() { + return ignoreReinviteMediaDirection_; + } + + 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 (createConversationOnTheFly_ != false) { + output.writeBool(1, createConversationOnTheFly_); + } + if (inactiveStart_ != false) { + output.writeBool(3, inactiveStart_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getMaxAudioRecordingDuration()); + } + if (allowVirtualAgentInteraction_ != false) { + output.writeBool(5, allowVirtualAgentInteraction_); + } + if (keepConversationRunning_ != false) { + output.writeBool(6, keepConversationRunning_); + } + for (int i = 0; i < copyInboundCallLegHeaders_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 8, copyInboundCallLegHeaders_.getRaw(i)); + } + if (ignoreReinviteMediaDirection_ != false) { + output.writeBool(9, ignoreReinviteMediaDirection_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createConversationOnTheFly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, createConversationOnTheFly_); + } + if (inactiveStart_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, inactiveStart_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getMaxAudioRecordingDuration()); + } + if (allowVirtualAgentInteraction_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(5, allowVirtualAgentInteraction_); + } + if (keepConversationRunning_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, keepConversationRunning_); + } + { + int dataSize = 0; + for (int i = 0; i < copyInboundCallLegHeaders_.size(); i++) { + dataSize += computeStringSizeNoTag(copyInboundCallLegHeaders_.getRaw(i)); + } + size += dataSize; + size += 1 * getCopyInboundCallLegHeadersList().size(); + } + if (ignoreReinviteMediaDirection_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(9, ignoreReinviteMediaDirection_); + } + 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.dialogflow.v2.SipConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2.SipConfig other = (com.google.cloud.dialogflow.v2.SipConfig) obj; + + if (getCreateConversationOnTheFly() != other.getCreateConversationOnTheFly()) return false; + if (getInactiveStart() != other.getInactiveStart()) return false; + if (hasMaxAudioRecordingDuration() != other.hasMaxAudioRecordingDuration()) return false; + if (hasMaxAudioRecordingDuration()) { + if (!getMaxAudioRecordingDuration().equals(other.getMaxAudioRecordingDuration())) + return false; + } + if (getAllowVirtualAgentInteraction() != other.getAllowVirtualAgentInteraction()) return false; + if (getKeepConversationRunning() != other.getKeepConversationRunning()) return false; + if (!getCopyInboundCallLegHeadersList().equals(other.getCopyInboundCallLegHeadersList())) + return false; + if (getIgnoreReinviteMediaDirection() != other.getIgnoreReinviteMediaDirection()) 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) + CREATE_CONVERSATION_ON_THE_FLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCreateConversationOnTheFly()); + hash = (37 * hash) + INACTIVE_START_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInactiveStart()); + if (hasMaxAudioRecordingDuration()) { + hash = (37 * hash) + MAX_AUDIO_RECORDING_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getMaxAudioRecordingDuration().hashCode(); + } + hash = (37 * hash) + ALLOW_VIRTUAL_AGENT_INTERACTION_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowVirtualAgentInteraction()); + hash = (37 * hash) + KEEP_CONVERSATION_RUNNING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeepConversationRunning()); + if (getCopyInboundCallLegHeadersCount() > 0) { + hash = (37 * hash) + COPY_INBOUND_CALL_LEG_HEADERS_FIELD_NUMBER; + hash = (53 * hash) + getCopyInboundCallLegHeadersList().hashCode(); + } + hash = (37 * hash) + IGNORE_REINVITE_MEDIA_DIRECTION_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreReinviteMediaDirection()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SipConfig 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.dialogflow.v2.SipConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseFrom( + 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.dialogflow.v2.SipConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2.SipConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2.SipConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Defines the SIP configuration.
            +   * 
            + * + * Protobuf type {@code google.cloud.dialogflow.v2.SipConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2.SipConfig) + com.google.cloud.dialogflow.v2.SipConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2_SipConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2_SipConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2.SipConfig.class, + com.google.cloud.dialogflow.v2.SipConfig.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2.SipConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMaxAudioRecordingDurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createConversationOnTheFly_ = false; + inactiveStart_ = false; + maxAudioRecordingDuration_ = null; + if (maxAudioRecordingDurationBuilder_ != null) { + maxAudioRecordingDurationBuilder_.dispose(); + maxAudioRecordingDurationBuilder_ = null; + } + allowVirtualAgentInteraction_ = false; + keepConversationRunning_ = false; + copyInboundCallLegHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + ignoreReinviteMediaDirection_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2_SipConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SipConfig getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2.SipConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SipConfig build() { + com.google.cloud.dialogflow.v2.SipConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2.SipConfig buildPartial() { + com.google.cloud.dialogflow.v2.SipConfig result = + new com.google.cloud.dialogflow.v2.SipConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2.SipConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createConversationOnTheFly_ = createConversationOnTheFly_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inactiveStart_ = inactiveStart_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxAudioRecordingDuration_ = + maxAudioRecordingDurationBuilder_ == null + ? maxAudioRecordingDuration_ + : maxAudioRecordingDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.allowVirtualAgentInteraction_ = allowVirtualAgentInteraction_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.keepConversationRunning_ = keepConversationRunning_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + copyInboundCallLegHeaders_.makeImmutable(); + result.copyInboundCallLegHeaders_ = copyInboundCallLegHeaders_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.ignoreReinviteMediaDirection_ = ignoreReinviteMediaDirection_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2.SipConfig) { + return mergeFrom((com.google.cloud.dialogflow.v2.SipConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2.SipConfig other) { + if (other == com.google.cloud.dialogflow.v2.SipConfig.getDefaultInstance()) return this; + if (other.getCreateConversationOnTheFly() != false) { + setCreateConversationOnTheFly(other.getCreateConversationOnTheFly()); + } + if (other.getInactiveStart() != false) { + setInactiveStart(other.getInactiveStart()); + } + if (other.hasMaxAudioRecordingDuration()) { + mergeMaxAudioRecordingDuration(other.getMaxAudioRecordingDuration()); + } + if (other.getAllowVirtualAgentInteraction() != false) { + setAllowVirtualAgentInteraction(other.getAllowVirtualAgentInteraction()); + } + if (other.getKeepConversationRunning() != false) { + setKeepConversationRunning(other.getKeepConversationRunning()); + } + if (!other.copyInboundCallLegHeaders_.isEmpty()) { + if (copyInboundCallLegHeaders_.isEmpty()) { + copyInboundCallLegHeaders_ = other.copyInboundCallLegHeaders_; + bitField0_ |= 0x00000020; + } else { + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.addAll(other.copyInboundCallLegHeaders_); + } + onChanged(); + } + if (other.getIgnoreReinviteMediaDirection() != false) { + setIgnoreReinviteMediaDirection(other.getIgnoreReinviteMediaDirection()); + } + 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: + { + createConversationOnTheFly_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 24: + { + inactiveStart_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetMaxAudioRecordingDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 40: + { + allowVirtualAgentInteraction_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + keepConversationRunning_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.add(s); + break; + } // case 66 + case 72: + { + ignoreReinviteMediaDirection_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean createConversationOnTheFly_; + + /** + * + * + *
            +     * Asks Dialogflow Telephony to create the conversation provided in the SIP
            +     * header on the fly when the call comes in.
            +     * 
            + * + * bool create_conversation_on_the_fly = 1; + * + * @return The createConversationOnTheFly. + */ + @java.lang.Override + public boolean getCreateConversationOnTheFly() { + return createConversationOnTheFly_; + } + + /** + * + * + *
            +     * Asks Dialogflow Telephony to create the conversation provided in the SIP
            +     * header on the fly when the call comes in.
            +     * 
            + * + * bool create_conversation_on_the_fly = 1; + * + * @param value The createConversationOnTheFly to set. + * @return This builder for chaining. + */ + public Builder setCreateConversationOnTheFly(boolean value) { + + createConversationOnTheFly_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Asks Dialogflow Telephony to create the conversation provided in the SIP
            +     * header on the fly when the call comes in.
            +     * 
            + * + * bool create_conversation_on_the_fly = 1; + * + * @return This builder for chaining. + */ + public Builder clearCreateConversationOnTheFly() { + bitField0_ = (bitField0_ & ~0x00000001); + createConversationOnTheFly_ = false; + onChanged(); + return this; + } + + private boolean inactiveStart_; + + /** + * + * + *
            +     * Starts the conversation with inactive SDP directives
            +     * 
            + * + * bool inactive_start = 3; + * + * @return The inactiveStart. + */ + @java.lang.Override + public boolean getInactiveStart() { + return inactiveStart_; + } + + /** + * + * + *
            +     * Starts the conversation with inactive SDP directives
            +     * 
            + * + * bool inactive_start = 3; + * + * @param value The inactiveStart to set. + * @return This builder for chaining. + */ + public Builder setInactiveStart(boolean value) { + + inactiveStart_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Starts the conversation with inactive SDP directives
            +     * 
            + * + * bool inactive_start = 3; + * + * @return This builder for chaining. + */ + public Builder clearInactiveStart() { + bitField0_ = (bitField0_ & ~0x00000002); + inactiveStart_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Duration maxAudioRecordingDuration_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + maxAudioRecordingDurationBuilder_; + + /** + * + * + *
            +     * Max duration for audio recording.
            +     * Overrides the default value of 15 min.
            +     * Max value is 8 hours.
            +     * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return Whether the maxAudioRecordingDuration field is set. + */ + public boolean hasMaxAudioRecordingDuration() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Max duration for audio recording.
            +     * Overrides the default value of 15 min.
            +     * Max value is 8 hours.
            +     * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return The maxAudioRecordingDuration. + */ + public com.google.protobuf.Duration getMaxAudioRecordingDuration() { + if (maxAudioRecordingDurationBuilder_ == null) { + return maxAudioRecordingDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxAudioRecordingDuration_; + } else { + return maxAudioRecordingDurationBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Max duration for audio recording.
            +     * Overrides the default value of 15 min.
            +     * Max value is 8 hours.
            +     * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public Builder setMaxAudioRecordingDuration(com.google.protobuf.Duration value) { + if (maxAudioRecordingDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxAudioRecordingDuration_ = value; + } else { + maxAudioRecordingDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Max duration for audio recording.
            +     * Overrides the default value of 15 min.
            +     * Max value is 8 hours.
            +     * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public Builder setMaxAudioRecordingDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (maxAudioRecordingDurationBuilder_ == null) { + maxAudioRecordingDuration_ = builderForValue.build(); + } else { + maxAudioRecordingDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Max duration for audio recording.
            +     * Overrides the default value of 15 min.
            +     * Max value is 8 hours.
            +     * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public Builder mergeMaxAudioRecordingDuration(com.google.protobuf.Duration value) { + if (maxAudioRecordingDurationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && maxAudioRecordingDuration_ != null + && maxAudioRecordingDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMaxAudioRecordingDurationBuilder().mergeFrom(value); + } else { + maxAudioRecordingDuration_ = value; + } + } else { + maxAudioRecordingDurationBuilder_.mergeFrom(value); + } + if (maxAudioRecordingDuration_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Max duration for audio recording.
            +     * Overrides the default value of 15 min.
            +     * Max value is 8 hours.
            +     * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public Builder clearMaxAudioRecordingDuration() { + bitField0_ = (bitField0_ & ~0x00000004); + maxAudioRecordingDuration_ = null; + if (maxAudioRecordingDurationBuilder_ != null) { + maxAudioRecordingDurationBuilder_.dispose(); + maxAudioRecordingDurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Max duration for audio recording.
            +     * Overrides the default value of 15 min.
            +     * Max value is 8 hours.
            +     * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public com.google.protobuf.Duration.Builder getMaxAudioRecordingDurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetMaxAudioRecordingDurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Max duration for audio recording.
            +     * Overrides the default value of 15 min.
            +     * Max value is 8 hours.
            +     * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public com.google.protobuf.DurationOrBuilder getMaxAudioRecordingDurationOrBuilder() { + if (maxAudioRecordingDurationBuilder_ != null) { + return maxAudioRecordingDurationBuilder_.getMessageOrBuilder(); + } else { + return maxAudioRecordingDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxAudioRecordingDuration_; + } + } + + /** + * + * + *
            +     * Max duration for audio recording.
            +     * Overrides the default value of 15 min.
            +     * Max value is 8 hours.
            +     * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetMaxAudioRecordingDurationFieldBuilder() { + if (maxAudioRecordingDurationBuilder_ == null) { + maxAudioRecordingDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaxAudioRecordingDuration(), getParentForChildren(), isClean()); + maxAudioRecordingDuration_ = null; + } + return maxAudioRecordingDurationBuilder_; + } + + private boolean allowVirtualAgentInteraction_; + + /** + * + * + *
            +     * Allows interactions with a Dialogflow virtual agent even if the call is
            +     * connected for SIPREC purposes.
            +     * 
            + * + * bool allow_virtual_agent_interaction = 5; + * + * @return The allowVirtualAgentInteraction. + */ + @java.lang.Override + public boolean getAllowVirtualAgentInteraction() { + return allowVirtualAgentInteraction_; + } + + /** + * + * + *
            +     * Allows interactions with a Dialogflow virtual agent even if the call is
            +     * connected for SIPREC purposes.
            +     * 
            + * + * bool allow_virtual_agent_interaction = 5; + * + * @param value The allowVirtualAgentInteraction to set. + * @return This builder for chaining. + */ + public Builder setAllowVirtualAgentInteraction(boolean value) { + + allowVirtualAgentInteraction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Allows interactions with a Dialogflow virtual agent even if the call is
            +     * connected for SIPREC purposes.
            +     * 
            + * + * bool allow_virtual_agent_interaction = 5; + * + * @return This builder for chaining. + */ + public Builder clearAllowVirtualAgentInteraction() { + bitField0_ = (bitField0_ & ~0x00000008); + allowVirtualAgentInteraction_ = false; + onChanged(); + return this; + } + + private boolean keepConversationRunning_; + + /** + * + * + *
            +     * Keeps the conversation running even if the call is disconnected.
            +     * 
            + * + * bool keep_conversation_running = 6; + * + * @return The keepConversationRunning. + */ + @java.lang.Override + public boolean getKeepConversationRunning() { + return keepConversationRunning_; + } + + /** + * + * + *
            +     * Keeps the conversation running even if the call is disconnected.
            +     * 
            + * + * bool keep_conversation_running = 6; + * + * @param value The keepConversationRunning to set. + * @return This builder for chaining. + */ + public Builder setKeepConversationRunning(boolean value) { + + keepConversationRunning_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Keeps the conversation running even if the call is disconnected.
            +     * 
            + * + * bool keep_conversation_running = 6; + * + * @return This builder for chaining. + */ + public Builder clearKeepConversationRunning() { + bitField0_ = (bitField0_ & ~0x00000010); + keepConversationRunning_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList copyInboundCallLegHeaders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCopyInboundCallLegHeadersIsMutable() { + if (!copyInboundCallLegHeaders_.isModifiable()) { + copyInboundCallLegHeaders_ = + new com.google.protobuf.LazyStringArrayList(copyInboundCallLegHeaders_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
            +     * List of inbound call leg headers to be copied to outbound call legs created
            +     * later.
            +     * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return A list containing the copyInboundCallLegHeaders. + */ + public com.google.protobuf.ProtocolStringList getCopyInboundCallLegHeadersList() { + copyInboundCallLegHeaders_.makeImmutable(); + return copyInboundCallLegHeaders_; + } + + /** + * + * + *
            +     * List of inbound call leg headers to be copied to outbound call legs created
            +     * later.
            +     * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return The count of copyInboundCallLegHeaders. + */ + public int getCopyInboundCallLegHeadersCount() { + return copyInboundCallLegHeaders_.size(); + } + + /** + * + * + *
            +     * List of inbound call leg headers to be copied to outbound call legs created
            +     * later.
            +     * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the element to return. + * @return The copyInboundCallLegHeaders at the given index. + */ + public java.lang.String getCopyInboundCallLegHeaders(int index) { + return copyInboundCallLegHeaders_.get(index); + } + + /** + * + * + *
            +     * List of inbound call leg headers to be copied to outbound call legs created
            +     * later.
            +     * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the value to return. + * @return The bytes of the copyInboundCallLegHeaders at the given index. + */ + public com.google.protobuf.ByteString getCopyInboundCallLegHeadersBytes(int index) { + return copyInboundCallLegHeaders_.getByteString(index); + } + + /** + * + * + *
            +     * List of inbound call leg headers to be copied to outbound call legs created
            +     * later.
            +     * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index to set the value at. + * @param value The copyInboundCallLegHeaders to set. + * @return This builder for chaining. + */ + public Builder setCopyInboundCallLegHeaders(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of inbound call leg headers to be copied to outbound call legs created
            +     * later.
            +     * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param value The copyInboundCallLegHeaders to add. + * @return This builder for chaining. + */ + public Builder addCopyInboundCallLegHeaders(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of inbound call leg headers to be copied to outbound call legs created
            +     * later.
            +     * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param values The copyInboundCallLegHeaders to add. + * @return This builder for chaining. + */ + public Builder addAllCopyInboundCallLegHeaders(java.lang.Iterable values) { + ensureCopyInboundCallLegHeadersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, copyInboundCallLegHeaders_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of inbound call leg headers to be copied to outbound call legs created
            +     * later.
            +     * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return This builder for chaining. + */ + public Builder clearCopyInboundCallLegHeaders() { + copyInboundCallLegHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of inbound call leg headers to be copied to outbound call legs created
            +     * later.
            +     * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param value The bytes of the copyInboundCallLegHeaders to add. + * @return This builder for chaining. + */ + public Builder addCopyInboundCallLegHeadersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean ignoreReinviteMediaDirection_; + + /** + * + * + *
            +     * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
            +     * media direction.
            +     * 
            + * + * bool ignore_reinvite_media_direction = 9; + * + * @return The ignoreReinviteMediaDirection. + */ + @java.lang.Override + public boolean getIgnoreReinviteMediaDirection() { + return ignoreReinviteMediaDirection_; + } + + /** + * + * + *
            +     * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
            +     * media direction.
            +     * 
            + * + * bool ignore_reinvite_media_direction = 9; + * + * @param value The ignoreReinviteMediaDirection to set. + * @return This builder for chaining. + */ + public Builder setIgnoreReinviteMediaDirection(boolean value) { + + ignoreReinviteMediaDirection_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
            +     * media direction.
            +     * 
            + * + * bool ignore_reinvite_media_direction = 9; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreReinviteMediaDirection() { + bitField0_ = (bitField0_ & ~0x00000040); + ignoreReinviteMediaDirection_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.SipConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2.SipConfig) + private static final com.google.cloud.dialogflow.v2.SipConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2.SipConfig(); + } + + public static com.google.cloud.dialogflow.v2.SipConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SipConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.dialogflow.v2.SipConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipConfigOrBuilder.java new file mode 100644 index 000000000000..27b5719c5d4d --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SipConfigOrBuilder.java @@ -0,0 +1,197 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2/conversation_profile.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2; + +@com.google.protobuf.Generated +public interface SipConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.SipConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Asks Dialogflow Telephony to create the conversation provided in the SIP
            +   * header on the fly when the call comes in.
            +   * 
            + * + * bool create_conversation_on_the_fly = 1; + * + * @return The createConversationOnTheFly. + */ + boolean getCreateConversationOnTheFly(); + + /** + * + * + *
            +   * Starts the conversation with inactive SDP directives
            +   * 
            + * + * bool inactive_start = 3; + * + * @return The inactiveStart. + */ + boolean getInactiveStart(); + + /** + * + * + *
            +   * Max duration for audio recording.
            +   * Overrides the default value of 15 min.
            +   * Max value is 8 hours.
            +   * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return Whether the maxAudioRecordingDuration field is set. + */ + boolean hasMaxAudioRecordingDuration(); + + /** + * + * + *
            +   * Max duration for audio recording.
            +   * Overrides the default value of 15 min.
            +   * Max value is 8 hours.
            +   * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return The maxAudioRecordingDuration. + */ + com.google.protobuf.Duration getMaxAudioRecordingDuration(); + + /** + * + * + *
            +   * Max duration for audio recording.
            +   * Overrides the default value of 15 min.
            +   * Max value is 8 hours.
            +   * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + com.google.protobuf.DurationOrBuilder getMaxAudioRecordingDurationOrBuilder(); + + /** + * + * + *
            +   * Allows interactions with a Dialogflow virtual agent even if the call is
            +   * connected for SIPREC purposes.
            +   * 
            + * + * bool allow_virtual_agent_interaction = 5; + * + * @return The allowVirtualAgentInteraction. + */ + boolean getAllowVirtualAgentInteraction(); + + /** + * + * + *
            +   * Keeps the conversation running even if the call is disconnected.
            +   * 
            + * + * bool keep_conversation_running = 6; + * + * @return The keepConversationRunning. + */ + boolean getKeepConversationRunning(); + + /** + * + * + *
            +   * List of inbound call leg headers to be copied to outbound call legs created
            +   * later.
            +   * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return A list containing the copyInboundCallLegHeaders. + */ + java.util.List getCopyInboundCallLegHeadersList(); + + /** + * + * + *
            +   * List of inbound call leg headers to be copied to outbound call legs created
            +   * later.
            +   * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return The count of copyInboundCallLegHeaders. + */ + int getCopyInboundCallLegHeadersCount(); + + /** + * + * + *
            +   * List of inbound call leg headers to be copied to outbound call legs created
            +   * later.
            +   * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the element to return. + * @return The copyInboundCallLegHeaders at the given index. + */ + java.lang.String getCopyInboundCallLegHeaders(int index); + + /** + * + * + *
            +   * List of inbound call leg headers to be copied to outbound call legs created
            +   * later.
            +   * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the value to return. + * @return The bytes of the copyInboundCallLegHeaders at the given index. + */ + com.google.protobuf.ByteString getCopyInboundCallLegHeadersBytes(int index); + + /** + * + * + *
            +   * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
            +   * media direction.
            +   * 
            + * + * bool ignore_reinvite_media_direction = 9; + * + * @return The ignoreReinviteMediaDirection. + */ + boolean getIgnoreReinviteMediaDirection(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentResponse.java index 1ec5f79267f6..9c39e5336e02 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingAnalyzeContentResponse.java @@ -30,8 +30,11 @@ * * 1. If the input was set to streaming audio, the first one or more messages * contain `recognition_result`. Each `recognition_result` represents a more - * complete transcript of what the user said. The last `recognition_result` - * has `is_final` set to `true`. + * complete transcript of what the user said. When a user speaks multiple + * sentences, the API will emit multiple messages where `is_final = true`. + * Each time the system detects a distinct pause or completed thought, it + * locks in that segment, marks it `is_final = true`, and then immediately + * starts a new recognition cycle for the next sentence on the same stream. * * 2. In virtual agent stage: if `enable_partial_automated_agent_reply` is * true, the following N (currently 1 <= N <= 4) messages @@ -1061,8 +1064,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * 1. If the input was set to streaming audio, the first one or more messages * contain `recognition_result`. Each `recognition_result` represents a more - * complete transcript of what the user said. The last `recognition_result` - * has `is_final` set to `true`. + * complete transcript of what the user said. When a user speaks multiple + * sentences, the API will emit multiple messages where `is_final = true`. + * Each time the system detects a distinct pause or completed thought, it + * locks in that segment, marks it `is_final = true`, and then immediately + * starts a new recognition cycle for the next sentence on the same stream. * * 2. In virtual agent stage: if `enable_partial_automated_agent_reply` is * true, the following N (currently 1 <= N <= 4) messages diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java index 0f1945cb95bb..c7a40300cd42 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/StreamingRecognitionResult.java @@ -44,19 +44,22 @@ * finalized transcript values received for the series of results. * * In the following example, single utterance is enabled. In the case where - * single utterance is not enabled, result 7 would not occur. + * single utterance is not enabled, result 8 would not occur. * * ``` - * Num | transcript | message_type | is_final - * --- | ----------------------- | ----------------------- | -------- - * 1 | "tube" | TRANSCRIPT | false - * 2 | "to be a" | TRANSCRIPT | false - * 3 | "to be" | TRANSCRIPT | false - * 4 | "to be or not to be" | TRANSCRIPT | true - * 5 | "that's" | TRANSCRIPT | false - * 6 | "that is | TRANSCRIPT | false - * 7 | unset | END_OF_SINGLE_UTTERANCE | unset - * 8 | " that is the question" | TRANSCRIPT | true + * Num | transcript | message_type | is_final + * --- | ------------------------ | ----------------------- | -------- + * 1 | "tube" | TRANSCRIPT | false + * 2 | "to be a" | TRANSCRIPT | false + * 3 | "to be" | TRANSCRIPT | false + * 4 | "to be or not to be" | TRANSCRIPT | true + * 5 | "that's" | TRANSCRIPT | false + * 6 | "that is | TRANSCRIPT | false + * 7 | " that is the question" | TRANSCRIPT | true + * 8 | unset | END_OF_SINGLE_UTTERANCE | unset + * 9 | ". Whether 'tis nobler" | TRANSCRIPT | true + * 10 | " in the mind" | TRANSCRIPT | false + * 11 | " in the mind to suffer" | TRANSCRIPT | true * ``` * * Concatenating the finalized transcripts with `is_final` set to true, @@ -893,19 +896,22 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * finalized transcript values received for the series of results. * * In the following example, single utterance is enabled. In the case where - * single utterance is not enabled, result 7 would not occur. + * single utterance is not enabled, result 8 would not occur. * * ``` - * Num | transcript | message_type | is_final - * --- | ----------------------- | ----------------------- | -------- - * 1 | "tube" | TRANSCRIPT | false - * 2 | "to be a" | TRANSCRIPT | false - * 3 | "to be" | TRANSCRIPT | false - * 4 | "to be or not to be" | TRANSCRIPT | true - * 5 | "that's" | TRANSCRIPT | false - * 6 | "that is | TRANSCRIPT | false - * 7 | unset | END_OF_SINGLE_UTTERANCE | unset - * 8 | " that is the question" | TRANSCRIPT | true + * Num | transcript | message_type | is_final + * --- | ------------------------ | ----------------------- | -------- + * 1 | "tube" | TRANSCRIPT | false + * 2 | "to be a" | TRANSCRIPT | false + * 3 | "to be" | TRANSCRIPT | false + * 4 | "to be or not to be" | TRANSCRIPT | true + * 5 | "that's" | TRANSCRIPT | false + * 6 | "that is | TRANSCRIPT | false + * 7 | " that is the question" | TRANSCRIPT | true + * 8 | unset | END_OF_SINGLE_UTTERANCE | unset + * 9 | ". Whether 'tis nobler" | TRANSCRIPT | true + * 10 | " in the mind" | TRANSCRIPT | false + * 11 | " in the mind to suffer" | TRANSCRIPT | true * ``` * * Concatenating the finalized transcripts with `is_final` set to true, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestKnowledgeAssistResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestKnowledgeAssistResponse.java index 2b7c867a40d6..5e7d27d21021 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestKnowledgeAssistResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestKnowledgeAssistResponse.java @@ -54,6 +54,7 @@ private SuggestKnowledgeAssistResponse(com.google.protobuf.GeneratedMessage.Buil private SuggestKnowledgeAssistResponse() { latestMessage_ = ""; + additionalSuggestedQueryResults_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -212,6 +213,112 @@ public int getContextSize() { return contextSize_; } + public static final int ADDITIONAL_SUGGESTED_QUERY_RESULTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult> + additionalSuggestedQueryResults_; + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult> + getAdditionalSuggestedQueryResultsList() { + return additionalSuggestedQueryResults_; + } + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + getAdditionalSuggestedQueryResultsOrBuilderList() { + return additionalSuggestedQueryResults_; + } + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAdditionalSuggestedQueryResultsCount() { + return additionalSuggestedQueryResults_.size(); + } + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + getAdditionalSuggestedQueryResults(int index) { + return additionalSuggestedQueryResults_.get(index); + } + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder + getAdditionalSuggestedQueryResultsOrBuilder(int index) { + return additionalSuggestedQueryResults_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -235,6 +342,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (contextSize_ != 0) { output.writeInt32(3, contextSize_); } + for (int i = 0; i < additionalSuggestedQueryResults_.size(); i++) { + output.writeMessage(4, additionalSuggestedQueryResults_.get(i)); + } getUnknownFields().writeTo(output); } @@ -254,6 +364,11 @@ public int getSerializedSize() { if (contextSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, contextSize_); } + for (int i = 0; i < additionalSuggestedQueryResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, additionalSuggestedQueryResults_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -276,6 +391,8 @@ public boolean equals(final java.lang.Object obj) { } if (!getLatestMessage().equals(other.getLatestMessage())) return false; if (getContextSize() != other.getContextSize()) return false; + if (!getAdditionalSuggestedQueryResultsList() + .equals(other.getAdditionalSuggestedQueryResultsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -295,6 +412,10 @@ public int hashCode() { hash = (53 * hash) + getLatestMessage().hashCode(); hash = (37 * hash) + CONTEXT_SIZE_FIELD_NUMBER; hash = (53 * hash) + getContextSize(); + if (getAdditionalSuggestedQueryResultsCount() > 0) { + hash = (37 * hash) + ADDITIONAL_SUGGESTED_QUERY_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalSuggestedQueryResultsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -439,6 +560,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetKnowledgeAssistAnswerFieldBuilder(); + internalGetAdditionalSuggestedQueryResultsFieldBuilder(); } } @@ -453,6 +575,13 @@ public Builder clear() { } latestMessage_ = ""; contextSize_ = 0; + if (additionalSuggestedQueryResultsBuilder_ == null) { + additionalSuggestedQueryResults_ = java.util.Collections.emptyList(); + } else { + additionalSuggestedQueryResults_ = null; + additionalSuggestedQueryResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -481,6 +610,7 @@ public com.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse build() { public com.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse buildPartial() { com.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse result = new com.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -488,6 +618,20 @@ public com.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse buildPartia return result; } + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse result) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + additionalSuggestedQueryResults_ = + java.util.Collections.unmodifiableList(additionalSuggestedQueryResults_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.additionalSuggestedQueryResults_ = additionalSuggestedQueryResults_; + } else { + result.additionalSuggestedQueryResults_ = additionalSuggestedQueryResultsBuilder_.build(); + } + } + private void buildPartial0( com.google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse result) { int from_bitField0_ = bitField0_; @@ -533,6 +677,34 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2.SuggestKnowledgeAssistRe if (other.getContextSize() != 0) { setContextSize(other.getContextSize()); } + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (!other.additionalSuggestedQueryResults_.isEmpty()) { + if (additionalSuggestedQueryResults_.isEmpty()) { + additionalSuggestedQueryResults_ = other.additionalSuggestedQueryResults_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.addAll(other.additionalSuggestedQueryResults_); + } + onChanged(); + } + } else { + if (!other.additionalSuggestedQueryResults_.isEmpty()) { + if (additionalSuggestedQueryResultsBuilder_.isEmpty()) { + additionalSuggestedQueryResultsBuilder_.dispose(); + additionalSuggestedQueryResultsBuilder_ = null; + additionalSuggestedQueryResults_ = other.additionalSuggestedQueryResults_; + bitField0_ = (bitField0_ & ~0x00000008); + additionalSuggestedQueryResultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAdditionalSuggestedQueryResultsFieldBuilder() + : null; + } else { + additionalSuggestedQueryResultsBuilder_.addAllMessages( + other.additionalSuggestedQueryResults_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -578,6 +750,22 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 34: + { + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + m = + input.readMessage( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.parser(), + extensionRegistry); + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(m); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(m); + } + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1004,6 +1192,494 @@ public Builder clearContextSize() { return this; } + private java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult> + additionalSuggestedQueryResults_ = java.util.Collections.emptyList(); + + private void ensureAdditionalSuggestedQueryResultsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + additionalSuggestedQueryResults_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult>(additionalSuggestedQueryResults_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + additionalSuggestedQueryResultsBuilder_; + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult> + getAdditionalSuggestedQueryResultsList() { + if (additionalSuggestedQueryResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(additionalSuggestedQueryResults_); + } else { + return additionalSuggestedQueryResultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAdditionalSuggestedQueryResultsCount() { + if (additionalSuggestedQueryResultsBuilder_ == null) { + return additionalSuggestedQueryResults_.size(); + } else { + return additionalSuggestedQueryResultsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + getAdditionalSuggestedQueryResults(int index) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + return additionalSuggestedQueryResults_.get(index); + } else { + return additionalSuggestedQueryResultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalSuggestedQueryResults( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult value) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.set(index, value); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalSuggestedQueryResults( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult.Builder + builderForValue) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.set(index, builderForValue.build()); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAdditionalSuggestedQueryResults( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult value) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(value); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAdditionalSuggestedQueryResults( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult value) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(index, value); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAdditionalSuggestedQueryResults( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult.Builder + builderForValue) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(builderForValue.build()); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAdditionalSuggestedQueryResults( + int index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult.Builder + builderForValue) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(index, builderForValue.build()); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAdditionalSuggestedQueryResults( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult> + values) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, additionalSuggestedQueryResults_); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAdditionalSuggestedQueryResults() { + if (additionalSuggestedQueryResultsBuilder_ == null) { + additionalSuggestedQueryResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAdditionalSuggestedQueryResults(int index) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.remove(index); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder + getAdditionalSuggestedQueryResultsBuilder(int index) { + return internalGetAdditionalSuggestedQueryResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder + getAdditionalSuggestedQueryResultsOrBuilder(int index) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + return additionalSuggestedQueryResults_.get(index); + } else { + return additionalSuggestedQueryResultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + getAdditionalSuggestedQueryResultsOrBuilderList() { + if (additionalSuggestedQueryResultsBuilder_ != null) { + return additionalSuggestedQueryResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(additionalSuggestedQueryResults_); + } + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder + addAdditionalSuggestedQueryResultsBuilder() { + return internalGetAdditionalSuggestedQueryResultsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder + addAdditionalSuggestedQueryResultsBuilder(int index) { + return internalGetAdditionalSuggestedQueryResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder> + getAdditionalSuggestedQueryResultsBuilderList() { + return internalGetAdditionalSuggestedQueryResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + internalGetAdditionalSuggestedQueryResultsFieldBuilder() { + if (additionalSuggestedQueryResultsBuilder_ == null) { + additionalSuggestedQueryResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder, + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder>( + additionalSuggestedQueryResults_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + additionalSuggestedQueryResults_ = null; + } + return additionalSuggestedQueryResultsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2.SuggestKnowledgeAssistResponse) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestKnowledgeAssistResponseOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestKnowledgeAssistResponseOrBuilder.java index 1f94d691e9da..d42ec102a546 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestKnowledgeAssistResponseOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/SuggestKnowledgeAssistResponseOrBuilder.java @@ -115,4 +115,87 @@ public interface SuggestKnowledgeAssistResponseOrBuilder * @return The contextSize. */ int getContextSize(); + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult> + getAdditionalSuggestedQueryResultsList(); + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + getAdditionalSuggestedQueryResults(int index); + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAdditionalSuggestedQueryResultsCount(); + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + getAdditionalSuggestedQueryResultsOrBuilderList(); + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.AdditionalSuggestedQueryResultOrBuilder + getAdditionalSuggestedQueryResultsOrBuilder(int index); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto index af0626faf2f8..a93f171ddfdb 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/audio_config.proto @@ -542,8 +542,8 @@ enum OutputAudioEncoding { // Audio content returned as LINEAR16 also contains a WAV header. OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1; - // MP3 audio at 32kbps. - OUTPUT_AUDIO_ENCODING_MP3 = 2; + // MP3 audio at 64kbps. + OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; // MP3 audio at 64kbps. OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_app.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_app.proto index bb2e780590b0..b02f5eecf29f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_app.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/ces_app.proto @@ -43,4 +43,16 @@ message CesAppSpec { // Optional. Indicates whether the app requires human confirmation. Tool.ConfirmationRequirement confirmation_requirement = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Only applicable for CompanionAgent. + // Indicates whether the ces app is enabled in proactive mode. + // At least one of `proactive_enabled` or `reactive_enabled` should be + // true; otherwise, the ces app will be ignored. + optional bool proactive_enabled = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Only applicable for CompanionAgent. + // Indicates whether the ces app is enabled in reactive mode. + // At least one of `proactive_enabled` or `reactive_enabled` should be + // true; otherwise, the ces app will be ignored. + optional bool reactive_enabled = 4 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto index 75020dc96d69..f7254b186ff4 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation.proto @@ -1233,6 +1233,12 @@ message SearchKnowledgeAnswer { // The answer is from intent matching. INTENT = 3; + + // The answer is from Playbook. + PLAYBOOK = 4; + + // The answer is from event. + EVENT = 5; } // The sources of the answers. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto index 3cbee623c8e6..37e0457f61a3 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/conversation_profile.proto @@ -262,6 +262,9 @@ message ConversationProfile { // language tag. Example: "en-US". string language_code = 10; + // Optional. Configuration for SIP connections. + SipConfig sip_config = 16 [(google.api.field_behavior) = OPTIONAL]; + // The time zone of this conversational profile from the // [time zone database](https://www.iana.org/time-zones), e.g., // America/New_York, Europe/Paris. Defaults to America/New_York. @@ -469,6 +472,22 @@ message HumanAgentAssistantConfig { // Supported features: KNOWLEDGE_ASSIST RaiSettings rai_settings = 19 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The trigger event for suggestion. + // If unspecified, it will be `CUSTOMER_MESSAGE`. + // Supported features: KNOWLEDGE_ASSIST + // For KNOWLEDGE_ASSIST, these four trigger events are supported: + // 1. TRIGGER_EVENT_UNSPECIFIED + // 2. END_OF_UTTERANCE + // 3. CUSTOMER_MESSAGE + // 4. AGENT_MESSAGE + TriggerEvent suggestion_trigger_event = 20 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, disable appending available search context to the + // search query. Supported features: KNOWLEDGE_ASSIST + bool disable_query_search_context = 21 + [(google.api.field_behavior) = OPTIONAL]; + // Settings of suggestion trigger. // // Currently, only ARTICLE_SUGGESTION and FAQ will use this field. @@ -914,6 +933,36 @@ message LoggingConfig { bool enable_stackdriver_logging = 3; } +// Defines the SIP configuration. +message SipConfig { + // Asks Dialogflow Telephony to create the conversation provided in the SIP + // header on the fly when the call comes in. + bool create_conversation_on_the_fly = 1; + + // Starts the conversation with inactive SDP directives + bool inactive_start = 3; + + // Max duration for audio recording. + // Overrides the default value of 15 min. + // Max value is 8 hours. + google.protobuf.Duration max_audio_recording_duration = 4; + + // Allows interactions with a Dialogflow virtual agent even if the call is + // connected for SIPREC purposes. + bool allow_virtual_agent_interaction = 5; + + // Keeps the conversation running even if the call is disconnected. + bool keep_conversation_running = 6; + + // List of inbound call leg headers to be copied to outbound call legs created + // later. + repeated string copy_inbound_call_leg_headers = 8; + + // Ignores any media direction in the reINVITE SDP offer. Reuse the previous + // media direction. + bool ignore_reinvite_media_direction = 9; +} + // The type of Human Agent Assistant API suggestion to perform, and the maximum // number of results to return for that type. Multiple `Feature` objects can // be specified in the `features` list. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto index d60c6bb8619f..8e5dc0758db0 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/participant.proto @@ -261,9 +261,9 @@ message Participant { // Dialogflow adds the obfuscated user id with the participant. // // 2. If you set this field in - // [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.participant] - // or - // [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.participant], + // [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] + // or [StreamingAnalyzeContent] + // [google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id], // Dialogflow will update // [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2.Participant.obfuscated_external_user_id]. // @@ -275,6 +275,11 @@ message Participant { // example, Dialogflow determines whether a user in one conversation returned // in a later conversation. // + // Additionally, to link an escalated Virtual Agent conversation + // with its corresponding Agent Assist conversation for analytics, this field + // in Agent Assist conversations should be populated to indicate the user id + // of the `END_USER` participant in the escalated conversation. + // // Note: // // * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -705,8 +710,11 @@ message StreamingAnalyzeContentRequest { // // 1. If the input was set to streaming audio, the first one or more messages // contain `recognition_result`. Each `recognition_result` represents a more -// complete transcript of what the user said. The last `recognition_result` -// has `is_final` set to `true`. +// complete transcript of what the user said. When a user speaks multiple +// sentences, the API will emit multiple messages where `is_final = true`. +// Each time the system detects a distinct pause or completed thought, it +// locks in that segment, marks it `is_final = true`, and then immediately +// starts a new recognition cycle for the next sentence on the same stream. // // 2. In virtual agent stage: if `enable_partial_automated_agent_reply` is // true, the following N (currently 1 <= N <= 4) messages @@ -1343,6 +1351,13 @@ message SuggestKnowledgeAssistResponse { // [SuggestKnowledgeAssistRequest.context_size][google.cloud.dialogflow.v2.SuggestKnowledgeAssistRequest.context_size] // field in the request if there are fewer messages in the conversation. int32 context_size = 3; + + // Optional. The list of additional suggested queries based on the context. + // This is used for the cases when we want to generate multiple queries + // for a single request. + repeated KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + additional_suggested_query_results = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Debug information related to ingested context reference. @@ -1536,6 +1551,18 @@ message KnowledgeAssistDebugInfo { int32 appended_search_context_count = 18; } + // Token usage metadata for query generation. + message QueryGenerationDebugInfo { + // The total number of tokens in the prompt. + int32 prompt_token_count = 1; + + // The total number of tokens in the generated candidates. + int32 candidates_token_count = 2; + + // The total number of tokens for the entire request. + int32 total_token_count = 3; + } + // Reason for query generation. QueryGenerationFailureReason query_generation_failure_reason = 1; @@ -1554,14 +1581,56 @@ message KnowledgeAssistDebugInfo { // The latency of the service. ServiceLatency service_latency = 6; + + // Token usage metadata for query generation. + QueryGenerationDebugInfo query_generation_debug_info = 7; + + // Debug information from CES runtime API. + google.protobuf.Struct ces_debug_info = 8; } // Represents a Knowledge Assist answer. message KnowledgeAssistAnswer { // Represents a suggested query. message SuggestedQuery { + // Search context is information useful for knowledge search that helps + // enrich the query. + // Example: + // search_context { + // key: "application name" + // value: "DesignApp" + // } + message SearchContext { + // Optional. The key of the search context, e.g. "application name". + string key = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The value of the search context, e.g. "DesignApp". + string value = 2 [(google.api.field_behavior) = OPTIONAL]; + } + // Suggested query text. string query_text = 1; + + // Optional. The search contexts for the query. + repeated SearchContext search_contexts = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Represents a single suggested query result. + message AdditionalSuggestedQueryResult { + // Output only. The suggested query based on the context. + SuggestedQuery suggested_query = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The name of the answer record. + // Format: `projects//locations//answerRecords/` + string answer_record = 5 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/AnswerRecord" + } + ]; } // Represents an answer from Knowledge. Currently supports FAQ and Generative @@ -1595,6 +1664,15 @@ message KnowledgeAssistAnswer { repeated Snippet snippets = 1; } + // Details about source of Event answer. + message EventSource { + // Name of the triggered event. + string event = 1; + + // Sources used in event fulfillment. + GenerativeSource snippets = 2; + } + // The piece of text from the `source` that answers this suggested query. string answer_text = 1; @@ -1605,6 +1683,12 @@ message KnowledgeAssistAnswer { // Populated if the prediction was Generative. GenerativeSource generative_source = 4; + + // Populated if the prediction was from Playbook. + GenerativeSource playbook_source = 7; + + // Populated if the prediction was from an event. + EventSource event_source = 8; } } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto index a4b6c2cd7b37..71f1075c7ba8 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2/src/main/proto/google/cloud/dialogflow/v2/session.proto @@ -630,19 +630,22 @@ message StreamingDetectIntentResponse { // finalized transcript values received for the series of results. // // In the following example, single utterance is enabled. In the case where -// single utterance is not enabled, result 7 would not occur. +// single utterance is not enabled, result 8 would not occur. // // ``` -// Num | transcript | message_type | is_final -// --- | ----------------------- | ----------------------- | -------- -// 1 | "tube" | TRANSCRIPT | false -// 2 | "to be a" | TRANSCRIPT | false -// 3 | "to be" | TRANSCRIPT | false -// 4 | "to be or not to be" | TRANSCRIPT | true -// 5 | "that's" | TRANSCRIPT | false -// 6 | "that is | TRANSCRIPT | false -// 7 | unset | END_OF_SINGLE_UTTERANCE | unset -// 8 | " that is the question" | TRANSCRIPT | true +// Num | transcript | message_type | is_final +// --- | ------------------------ | ----------------------- | -------- +// 1 | "tube" | TRANSCRIPT | false +// 2 | "to be a" | TRANSCRIPT | false +// 3 | "to be" | TRANSCRIPT | false +// 4 | "to be or not to be" | TRANSCRIPT | true +// 5 | "that's" | TRANSCRIPT | false +// 6 | "that is | TRANSCRIPT | false +// 7 | " that is the question" | TRANSCRIPT | true +// 8 | unset | END_OF_SINGLE_UTTERANCE | unset +// 9 | ". Whether 'tis nobler" | TRANSCRIPT | true +// 10 | " in the mind" | TRANSCRIPT | false +// 11 | " in the mind to suffer" | TRANSCRIPT | true // ``` // // Concatenating the finalized transcripts with `is_final` set to true, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java index 42c1e9c480c8..17c2f62cdbff 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AudioConfigProto.java @@ -208,22 +208,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035SSML_VOICE_GENDER_UNSPECIFIED\020\000\022\032\n" + "\026SSML_VOICE_GENDER_MALE\020\001\022\034\n" + "\030SSML_VOICE_GENDER_FEMALE\020\002\022\035\n" - + "\031SSML_VOICE_GENDER_NEUTRAL\020\003*\214\002\n" + + "\031SSML_VOICE_GENDER_NEUTRAL\020\003*\220\002\n" + "\023OutputAudioEncoding\022%\n" + "!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\020\000\022#\n" - + "\037OUTPUT_AUDIO_ENCODING_LINEAR_16\020\001\022\035\n" - + "\031OUTPUT_AUDIO_ENCODING_MP3\020\002\022%\n" + + "\037OUTPUT_AUDIO_ENCODING_LINEAR_16\020\001\022!\n" + + "\031OUTPUT_AUDIO_ENCODING_MP3\020\002\032\002\010\001\022%\n" + "!OUTPUT_AUDIO_ENCODING_MP3_64_KBPS\020\004\022\"\n" + "\036OUTPUT_AUDIO_ENCODING_OGG_OPUS\020\003\022\037\n" + "\033OUTPUT_AUDIO_ENCODING_MULAW\020\005\022\036\n" + "\032OUTPUT_AUDIO_ENCODING_ALAW\020\006B\342\002\n" - + "#com.google.cloud.dialogflow.v2beta1B\020AudioConfigPr" - + "otoP\001ZCcloud.google.com/go/dialogflow/ap" - + "iv2beta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352AU\n" - + "\033automl.googleapis.com/Model\0226projects/{pro" - + "ject}/locations/{location}/models/{model}\352Ab\n" - + "\037speech.googleapis.com/PhraseSet\022?projects/{project}/locations/{location}/p" - + "hraseSets/{phrase_set}b\006proto3" + + "#com.google.cloud.dialogflow.v2beta1B\020AudioConf" + + "igProtoP\001ZCcloud.google.com/go/dialogflo" + + "w/apiv2beta1/dialogflowpb;dialogflowpb\242\002" + + "\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352AU\n" + + "\033automl.googleapis.com/Model\0226projects/" + + "{project}/locations/{location}/models/{model}\352Ab\n" + + "\037speech.googleapis.com/PhraseSet\022?projects/{project}/locations/{locatio" + + "n}/phraseSets/{phrase_set}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfig.java index 88c2c4b2a6f2..33e9b4d9c2e1 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfig.java @@ -80,7 +80,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
            -   * Required. ID of the Dialogflow agent environment to use.
            +   * Required. The resource name of the Dialogflow agent environment to use.
                *
                * This project needs to either be the same project as the conversation or you
                * need to grant `service-<Conversation Project
            @@ -122,7 +122,7 @@ public java.lang.String getAgent() {
                *
                *
                * 
            -   * Required. ID of the Dialogflow agent environment to use.
            +   * Required. The resource name of the Dialogflow agent environment to use.
                *
                * This project needs to either be the same project as the conversation or you
                * need to grant `service-<Conversation Project
            @@ -582,7 +582,7 @@ public Builder mergeFrom(
                  *
                  *
                  * 
            -     * Required. ID of the Dialogflow agent environment to use.
            +     * Required. The resource name of the Dialogflow agent environment to use.
                  *
                  * This project needs to either be the same project as the conversation or you
                  * need to grant `service-<Conversation Project
            @@ -623,7 +623,7 @@ public java.lang.String getAgent() {
                  *
                  *
                  * 
            -     * Required. ID of the Dialogflow agent environment to use.
            +     * Required. The resource name of the Dialogflow agent environment to use.
                  *
                  * This project needs to either be the same project as the conversation or you
                  * need to grant `service-<Conversation Project
            @@ -664,7 +664,7 @@ public com.google.protobuf.ByteString getAgentBytes() {
                  *
                  *
                  * 
            -     * Required. ID of the Dialogflow agent environment to use.
            +     * Required. The resource name of the Dialogflow agent environment to use.
                  *
                  * This project needs to either be the same project as the conversation or you
                  * need to grant `service-<Conversation Project
            @@ -704,7 +704,7 @@ public Builder setAgent(java.lang.String value) {
                  *
                  *
                  * 
            -     * Required. ID of the Dialogflow agent environment to use.
            +     * Required. The resource name of the Dialogflow agent environment to use.
                  *
                  * This project needs to either be the same project as the conversation or you
                  * need to grant `service-<Conversation Project
            @@ -740,7 +740,7 @@ public Builder clearAgent() {
                  *
                  *
                  * 
            -     * Required. ID of the Dialogflow agent environment to use.
            +     * Required. The resource name of the Dialogflow agent environment to use.
                  *
                  * This project needs to either be the same project as the conversation or you
                  * need to grant `service-<Conversation Project
            diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfigOrBuilder.java
            index 538290b2e916..2f7dc7fe52e2 100644
            --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfigOrBuilder.java
            +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentConfigOrBuilder.java
            @@ -30,7 +30,7 @@ public interface AutomatedAgentConfigOrBuilder
                *
                *
                * 
            -   * Required. ID of the Dialogflow agent environment to use.
            +   * Required. The resource name of the Dialogflow agent environment to use.
                *
                * This project needs to either be the same project as the conversation or you
                * need to grant `service-<Conversation Project
            @@ -61,7 +61,7 @@ public interface AutomatedAgentConfigOrBuilder
                *
                *
                * 
            -   * Required. ID of the Dialogflow agent environment to use.
            +   * Required. The resource name of the Dialogflow agent environment to use.
                *
                * This project needs to either be the same project as the conversation or you
                * need to grant `service-<Conversation Project
            diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java
            index c6a640cdeae0..c7b78fe7c47d 100644
            --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java
            +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReply.java
            @@ -735,7 +735,7 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
                * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];
                *
                * @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
            -   *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584
            +   *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=589
                * @return Whether the cxSessionParameters field is set.
                */
               @java.lang.Override
            @@ -756,7 +756,7 @@ public boolean hasCxSessionParameters() {
                * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];
                *
                * @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
            -   *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584
            +   *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=589
                * @return The cxSessionParameters.
                */
               @java.lang.Override
            @@ -2861,7 +2861,7 @@ public com.google.protobuf.StructOrBuilder getParametersOrBuilder() {
                  * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];
                  *
                  * @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
            -     *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584
            +     *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=589
                  * @return Whether the cxSessionParameters field is set.
                  */
                 @java.lang.Deprecated
            @@ -2881,7 +2881,7 @@ public boolean hasCxSessionParameters() {
                  * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];
                  *
                  * @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
            -     *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584
            +     *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=589
                  * @return The cxSessionParameters.
                  */
                 @java.lang.Deprecated
            diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java
            index ba5a52611e1a..4b4471a7b55f 100644
            --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java
            +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AutomatedAgentReplyOrBuilder.java
            @@ -284,7 +284,7 @@ com.google.cloud.dialogflow.v2beta1.ResponseMessageOrBuilder getResponseMessages
                * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];
                *
                * @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
            -   *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584
            +   *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=589
                * @return Whether the cxSessionParameters field is set.
                */
               @java.lang.Deprecated
            @@ -302,7 +302,7 @@ com.google.cloud.dialogflow.v2beta1.ResponseMessageOrBuilder getResponseMessages
                * .google.protobuf.Struct cx_session_parameters = 6 [deprecated = true];
                *
                * @deprecated google.cloud.dialogflow.v2beta1.AutomatedAgentReply.cx_session_parameters is
            -   *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=584
            +   *     deprecated. See google/cloud/dialogflow/v2beta1/participant.proto;l=589
                * @return The cxSessionParameters.
                */
               @java.lang.Deprecated
            diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentRequest.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentRequest.java
            index a403023faa03..d9100d4a9b54 100644
            --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentRequest.java
            +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentRequest.java
            @@ -3507,6 +3507,52 @@ public interface TurnInputOrBuilder
                  */
                 com.google.protobuf.StructOrBuilder getVirtualAgentParametersOrBuilder();
             
            +    /**
            +     *
            +     *
            +     * 
            +     * Optional. The tool responses from the client.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolResponses field is set. + */ + boolean hasToolResponses(); + + /** + * + * + *
            +     * Optional. The tool responses from the client.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolResponses. + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses + getToolResponses(); + + /** + * + * + *
            +     * Optional. The tool responses from the client.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponsesOrBuilder + getToolResponsesOrBuilder(); + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.MainContentCase getMainContentCase(); } @@ -3537,28 +3583,2445 @@ public static final class TurnInput extends com.google.protobuf.GeneratedMessage "TurnInput"); } - // Use TurnInput.newBuilder() to construct. - private TurnInput(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + // Use TurnInput.newBuilder() to construct. + private TurnInput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TurnInput() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .Builder.class); + } + + public interface ToolResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Required. The matching ID of the tool call the response is for.
            +       * 
            + * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
            +       * Required. The matching ID of the tool call the response is for.
            +       * 
            + * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
            +       * Required. The identifier of the tool that got executed.
            +       * 
            + * + * string tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tool. + */ + java.lang.String getTool(); + + /** + * + * + *
            +       * Required. The identifier of the tool that got executed.
            +       * 
            + * + * string tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tool. + */ + com.google.protobuf.ByteString getToolBytes(); + + /** + * + * + *
            +       * Optional. The tool execution result in JSON object format.
            +       * 
            + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the response field is set. + */ + boolean hasResponse(); + + /** + * + * + *
            +       * Optional. The tool execution result in JSON object format.
            +       * 
            + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The response. + */ + com.google.protobuf.Struct getResponse(); + + /** + * + * + *
            +       * Optional. The tool execution result in JSON object format.
            +       * 
            + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getResponseOrBuilder(); + } + + /** + * + * + *
            +     * The execution result of a specific tool from the client.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse} + */ + public static final class ToolResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse) + ToolResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolResponse"); + } + + // Use ToolResponse.newBuilder() to construct. + private ToolResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolResponse() { + id_ = ""; + tool_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
            +       * Required. The matching ID of the tool call the response is for.
            +       * 
            + * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + + /** + * + * + *
            +       * Required. The matching ID of the tool call the response is for.
            +       * 
            + * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object tool_ = ""; + + /** + * + * + *
            +       * Required. The identifier of the tool that got executed.
            +       * 
            + * + * string tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tool. + */ + @java.lang.Override + public java.lang.String getTool() { + java.lang.Object ref = tool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tool_ = s; + return s; + } + } + + /** + * + * + *
            +       * Required. The identifier of the tool that got executed.
            +       * 
            + * + * string tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESPONSE_FIELD_NUMBER = 3; + private com.google.protobuf.Struct response_; + + /** + * + * + *
            +       * Optional. The tool execution result in JSON object format.
            +       * 
            + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the response field is set. + */ + @java.lang.Override + public boolean hasResponse() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Optional. The tool execution result in JSON object format.
            +       * 
            + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The response. + */ + @java.lang.Override + public com.google.protobuf.Struct getResponse() { + return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; + } + + /** + * + * + *
            +       * Optional. The tool execution result in JSON object format.
            +       * 
            + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getResponseOrBuilder() { + return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tool_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, tool_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getResponse()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tool_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, tool_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResponse()); + } + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + other = + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse) + obj; + + if (!getId().equals(other.getId())) return false; + if (!getTool().equals(other.getTool())) return false; + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse().equals(other.getResponse())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseFrom( + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * The execution result of a specific tool from the client.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse) + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetResponseFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + tool_ = ""; + response_ = null; + if (responseBuilder_ != null) { + responseBuilder_.dispose(); + responseBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + build() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + buildPartial() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + result = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInput.ToolResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tool_ = tool_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.response_ = responseBuilder_ == null ? response_ : responseBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTool().isEmpty()) { + tool_ = other.tool_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + 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: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + tool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetResponseFieldBuilder().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 id_ = ""; + + /** + * + * + *
            +         * Required. The matching ID of the tool call the response is for.
            +         * 
            + * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Required. The matching ID of the tool call the response is for.
            +         * 
            + * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Required. The matching ID of the tool call the response is for.
            +         * 
            + * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The matching ID of the tool call the response is for.
            +         * 
            + * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The matching ID of the tool call the response is for.
            +         * 
            + * + * string id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object tool_ = ""; + + /** + * + * + *
            +         * Required. The identifier of the tool that got executed.
            +         * 
            + * + * string tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tool. + */ + public java.lang.String getTool() { + java.lang.Object ref = tool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Required. The identifier of the tool that got executed.
            +         * 
            + * + * string tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tool. + */ + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Required. The identifier of the tool that got executed.
            +         * 
            + * + * string tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The tool to set. + * @return This builder for chaining. + */ + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tool_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The identifier of the tool that got executed.
            +         * 
            + * + * string tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTool() { + tool_ = getDefaultInstance().getTool(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The identifier of the tool that got executed.
            +         * 
            + * + * string tool = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tool_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Struct response_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + responseBuilder_; + + /** + * + * + *
            +         * Optional. The tool execution result in JSON object format.
            +         * 
            + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the response field is set. + */ + public boolean hasResponse() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +         * Optional. The tool execution result in JSON object format.
            +         * 
            + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The response. + */ + public com.google.protobuf.Struct getResponse() { + if (responseBuilder_ == null) { + return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; + } else { + return responseBuilder_.getMessage(); + } + } + + /** + * + * + *
            +         * Optional. The tool execution result in JSON object format.
            +         * 
            + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResponse(com.google.protobuf.Struct value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + } else { + responseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The tool execution result in JSON object format.
            +         * 
            + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResponse(com.google.protobuf.Struct.Builder builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The tool execution result in JSON object format.
            +         * 
            + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeResponse(com.google.protobuf.Struct value) { + if (responseBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && response_ != null + && response_ != com.google.protobuf.Struct.getDefaultInstance()) { + getResponseBuilder().mergeFrom(value); + } else { + response_ = value; + } + } else { + responseBuilder_.mergeFrom(value); + } + if (response_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * Optional. The tool execution result in JSON object format.
            +         * 
            + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearResponse() { + bitField0_ = (bitField0_ & ~0x00000004); + response_ = null; + if (responseBuilder_ != null) { + responseBuilder_.dispose(); + responseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The tool execution result in JSON object format.
            +         * 
            + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getResponseBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetResponseFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Optional. The tool execution result in JSON object format.
            +         * 
            + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null ? com.google.protobuf.Struct.getDefaultInstance() : response_; + } + } + + /** + * + * + *
            +         * Optional. The tool execution result in JSON object format.
            +         * 
            + * + * .google.protobuf.Struct response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getResponse(), getParentForChildren(), isClean()); + response_ = null; + } + return responseBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse) + private static final com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInput.ToolResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse(); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ToolResponsesOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Optional. The list of tool responses.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse> + getToolResponsesList(); + + /** + * + * + *
            +       * Optional. The list of tool responses.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse + getToolResponses(int index); + + /** + * + * + *
            +       * Optional. The list of tool responses.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getToolResponsesCount(); + + /** + * + * + *
            +       * Optional. The list of tool responses.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder> + getToolResponsesOrBuilderList(); + + /** + * + * + *
            +       * Optional. The list of tool responses.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder + getToolResponsesOrBuilder(int index); + } + + /** + * + * + *
            +     * The tool responses from the client.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses} + */ + public static final class ToolResponses extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses) + ToolResponsesOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolResponses"); + } + + // Use ToolResponses.newBuilder() to construct. + private ToolResponses(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolResponses() { + toolResponses_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.Builder.class); + } + + public static final int TOOL_RESPONSES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse> + toolResponses_; + + /** + * + * + *
            +       * Optional. The list of tool responses.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse> + getToolResponsesList() { + return toolResponses_; + } + + /** + * + * + *
            +       * Optional. The list of tool responses.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder> + getToolResponsesOrBuilderList() { + return toolResponses_; + } + + /** + * + * + *
            +       * Optional. The list of tool responses.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getToolResponsesCount() { + return toolResponses_.size(); + } + + /** + * + * + *
            +       * Optional. The list of tool responses.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + getToolResponses(int index) { + return toolResponses_.get(index); + } + + /** + * + * + *
            +       * Optional. The list of tool responses.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder + getToolResponsesOrBuilder(int index) { + return toolResponses_.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 < toolResponses_.size(); i++) { + output.writeMessage(1, toolResponses_.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 < toolResponses_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, toolResponses_.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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + other = + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses) + obj; + + if (!getToolResponsesList().equals(other.getToolResponsesList())) 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 (getToolResponsesCount() > 0) { + hash = (37 * hash) + TOOL_RESPONSES_FIELD_NUMBER; + hash = (53 * hash) + getToolResponsesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseFrom( + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * The tool responses from the client.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses) + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponsesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolResponsesBuilder_ == null) { + toolResponses_ = java.util.Collections.emptyList(); + } else { + toolResponses_ = null; + toolResponsesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + build() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + buildPartial() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + result = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInput.ToolResponses(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + result) { + if (toolResponsesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + toolResponses_ = java.util.Collections.unmodifiableList(toolResponses_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.toolResponses_ = toolResponses_; + } else { + result.toolResponses_ = toolResponsesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.getDefaultInstance()) return this; + if (toolResponsesBuilder_ == null) { + if (!other.toolResponses_.isEmpty()) { + if (toolResponses_.isEmpty()) { + toolResponses_ = other.toolResponses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolResponsesIsMutable(); + toolResponses_.addAll(other.toolResponses_); + } + onChanged(); + } + } else { + if (!other.toolResponses_.isEmpty()) { + if (toolResponsesBuilder_.isEmpty()) { + toolResponsesBuilder_.dispose(); + toolResponsesBuilder_ = null; + toolResponses_ = other.toolResponses_; + bitField0_ = (bitField0_ & ~0x00000001); + toolResponsesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolResponsesFieldBuilder() + : null; + } else { + toolResponsesBuilder_.addAllMessages(other.toolResponses_); + } + } + } + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1 + .BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse + .parser(), + extensionRegistry); + if (toolResponsesBuilder_ == null) { + ensureToolResponsesIsMutable(); + toolResponses_.add(m); + } else { + toolResponsesBuilder_.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.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse> + toolResponses_ = java.util.Collections.emptyList(); + + private void ensureToolResponsesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + toolResponses_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse>(toolResponses_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder> + toolResponsesBuilder_; + + /** + * + * + *
            +         * Optional. The list of tool responses.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse> + getToolResponsesList() { + if (toolResponsesBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolResponses_); + } else { + return toolResponsesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +         * Optional. The list of tool responses.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getToolResponsesCount() { + if (toolResponsesBuilder_ == null) { + return toolResponses_.size(); + } else { + return toolResponsesBuilder_.getCount(); + } + } + + /** + * + * + *
            +         * Optional. The list of tool responses.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + getToolResponses(int index) { + if (toolResponsesBuilder_ == null) { + return toolResponses_.get(index); + } else { + return toolResponsesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +         * Optional. The list of tool responses.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolResponses( + int index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + value) { + if (toolResponsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolResponsesIsMutable(); + toolResponses_.set(index, value); + onChanged(); + } else { + toolResponsesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of tool responses.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolResponses( + int index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder + builderForValue) { + if (toolResponsesBuilder_ == null) { + ensureToolResponsesIsMutable(); + toolResponses_.set(index, builderForValue.build()); + onChanged(); + } else { + toolResponsesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of tool responses.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolResponses( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + value) { + if (toolResponsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolResponsesIsMutable(); + toolResponses_.add(value); + onChanged(); + } else { + toolResponsesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of tool responses.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolResponses( + int index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse + value) { + if (toolResponsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolResponsesIsMutable(); + toolResponses_.add(index, value); + onChanged(); + } else { + toolResponsesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of tool responses.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolResponses( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder + builderForValue) { + if (toolResponsesBuilder_ == null) { + ensureToolResponsesIsMutable(); + toolResponses_.add(builderForValue.build()); + onChanged(); + } else { + toolResponsesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of tool responses.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addToolResponses( + int index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder + builderForValue) { + if (toolResponsesBuilder_ == null) { + ensureToolResponsesIsMutable(); + toolResponses_.add(index, builderForValue.build()); + onChanged(); + } else { + toolResponsesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of tool responses.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllToolResponses( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInput.ToolResponse> + values) { + if (toolResponsesBuilder_ == null) { + ensureToolResponsesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolResponses_); + onChanged(); + } else { + toolResponsesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of tool responses.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolResponses() { + if (toolResponsesBuilder_ == null) { + toolResponses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolResponsesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of tool responses.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeToolResponses(int index) { + if (toolResponsesBuilder_ == null) { + ensureToolResponsesIsMutable(); + toolResponses_.remove(index); + onChanged(); + } else { + toolResponsesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of tool responses.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder + getToolResponsesBuilder(int index) { + return internalGetToolResponsesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +         * Optional. The list of tool responses.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder + getToolResponsesOrBuilder(int index) { + if (toolResponsesBuilder_ == null) { + return toolResponses_.get(index); + } else { + return toolResponsesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +         * Optional. The list of tool responses.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder> + getToolResponsesOrBuilderList() { + if (toolResponsesBuilder_ != null) { + return toolResponsesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolResponses_); + } + } + + /** + * + * + *
            +         * Optional. The list of tool responses.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder + addToolResponsesBuilder() { + return internalGetToolResponsesFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. The list of tool responses.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder + addToolResponsesBuilder(int index) { + return internalGetToolResponsesFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. The list of tool responses.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponse tool_responses = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder> + getToolResponsesBuilderList() { + return internalGetToolResponsesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder> + internalGetToolResponsesFieldBuilder() { + if (toolResponsesBuilder_ == null) { + toolResponsesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponse.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponseOrBuilder>( + toolResponses_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + toolResponses_ = null; + } + return toolResponsesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses) + private static final com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInput.ToolResponses + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses(); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - private TurnInput() {} + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolResponses parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_descriptor; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput - .class, - com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput - .Builder.class); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } } private int bitField0_; @@ -3911,6 +6374,73 @@ public com.google.protobuf.StructOrBuilder getVirtualAgentParametersOrBuilder() : virtualAgentParameters_; } + public static final int TOOL_RESPONSES_FIELD_NUMBER = 5; + private com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + toolResponses_; + + /** + * + * + *
            +     * Optional. The tool responses from the client.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolResponses field is set. + */ + @java.lang.Override + public boolean hasToolResponses() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. The tool responses from the client.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolResponses. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + getToolResponses() { + return toolResponses_ == null + ? com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.getDefaultInstance() + : toolResponses_; + } + + /** + * + * + *
            +     * Optional. The tool responses from the client.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponsesOrBuilder + getToolResponsesOrBuilder() { + return toolResponses_ == null + ? com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.getDefaultInstance() + : toolResponses_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3937,6 +6467,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(4, getVirtualAgentParameters()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getToolResponses()); + } getUnknownFields().writeTo(output); } @@ -3960,6 +6493,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 4, getVirtualAgentParameters()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getToolResponses()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3982,6 +6518,10 @@ public boolean equals(final java.lang.Object obj) { if (hasVirtualAgentParameters()) { if (!getVirtualAgentParameters().equals(other.getVirtualAgentParameters())) return false; } + if (hasToolResponses() != other.hasToolResponses()) return false; + if (hasToolResponses()) { + if (!getToolResponses().equals(other.getToolResponses())) return false; + } if (!getMainContentCase().equals(other.getMainContentCase())) return false; switch (mainContentCase_) { case 1: @@ -4011,6 +6551,10 @@ public int hashCode() { hash = (37 * hash) + VIRTUAL_AGENT_PARAMETERS_FIELD_NUMBER; hash = (53 * hash) + getVirtualAgentParameters().hashCode(); } + if (hasToolResponses()) { + hash = (37 * hash) + TOOL_RESPONSES_FIELD_NUMBER; + hash = (53 * hash) + getToolResponses().hashCode(); + } switch (mainContentCase_) { case 1: hash = (37 * hash) + TEXT_FIELD_NUMBER; @@ -4181,6 +6725,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetVirtualAgentParametersFieldBuilder(); + internalGetToolResponsesFieldBuilder(); } } @@ -4193,6 +6738,11 @@ public Builder clear() { virtualAgentParametersBuilder_.dispose(); virtualAgentParametersBuilder_ = null; } + toolResponses_ = null; + if (toolResponsesBuilder_ != null) { + toolResponsesBuilder_.dispose(); + toolResponsesBuilder_ = null; + } mainContentCase_ = 0; mainContent_ = null; return this; @@ -4247,6 +6797,11 @@ private void buildPartial0( : virtualAgentParametersBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.toolResponses_ = + toolResponsesBuilder_ == null ? toolResponses_ : toolResponsesBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -4278,6 +6833,9 @@ public Builder mergeFrom( if (other.hasVirtualAgentParameters()) { mergeVirtualAgentParameters(other.getVirtualAgentParameters()); } + if (other.hasToolResponses()) { + mergeToolResponses(other.getToolResponses()); + } switch (other.getMainContentCase()) { case TEXT: { @@ -4360,6 +6918,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + input.readMessage( + internalGetToolResponsesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5058,6 +7623,248 @@ public com.google.protobuf.StructOrBuilder getVirtualAgentParametersOrBuilder() return virtualAgentParametersBuilder_; } + private com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + toolResponses_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponsesOrBuilder> + toolResponsesBuilder_; + + /** + * + * + *
            +       * Optional. The tool responses from the client.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolResponses field is set. + */ + public boolean hasToolResponses() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +       * Optional. The tool responses from the client.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolResponses. + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + getToolResponses() { + if (toolResponsesBuilder_ == null) { + return toolResponses_ == null + ? com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.getDefaultInstance() + : toolResponses_; + } else { + return toolResponsesBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. The tool responses from the client.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolResponses( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + value) { + if (toolResponsesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolResponses_ = value; + } else { + toolResponsesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The tool responses from the client.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolResponses( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.Builder + builderForValue) { + if (toolResponsesBuilder_ == null) { + toolResponses_ = builderForValue.build(); + } else { + toolResponsesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The tool responses from the client.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeToolResponses( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses + value) { + if (toolResponsesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && toolResponses_ != null + && toolResponses_ + != com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest + .TurnInput.ToolResponses.getDefaultInstance()) { + getToolResponsesBuilder().mergeFrom(value); + } else { + toolResponses_ = value; + } + } else { + toolResponsesBuilder_.mergeFrom(value); + } + if (toolResponses_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. The tool responses from the client.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolResponses() { + bitField0_ = (bitField0_ & ~0x00000010); + toolResponses_ = null; + if (toolResponsesBuilder_ != null) { + toolResponsesBuilder_.dispose(); + toolResponsesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The tool responses from the client.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.Builder + getToolResponsesBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetToolResponsesFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. The tool responses from the client.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponsesOrBuilder + getToolResponsesOrBuilder() { + if (toolResponsesBuilder_ != null) { + return toolResponsesBuilder_.getMessageOrBuilder(); + } else { + return toolResponses_ == null + ? com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.getDefaultInstance() + : toolResponses_; + } + } + + /** + * + * + *
            +       * Optional. The tool responses from the client.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput.ToolResponses tool_responses = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponsesOrBuilder> + internalGetToolResponsesFieldBuilder() { + if (toolResponsesBuilder_ == null) { + toolResponsesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponses.Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput + .ToolResponsesOrBuilder>( + getToolResponses(), getParentForChildren(), isClean()); + toolResponses_ = null; + } + return toolResponsesBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInput) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponse.java index dc795f96f815..77f508465dd0 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponse.java @@ -935,6 +935,2303 @@ public com.google.protobuf.Parser getParserForType() { } } + public interface ToolCallOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * The unique identifier of the tool call.
            +     * 
            + * + * string id = 1; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
            +     * The unique identifier of the tool call.
            +     * 
            + * + * string id = 1; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
            +     * The identifier of the tool to execute.
            +     * 
            + * + * string tool = 2; + * + * @return The tool. + */ + java.lang.String getTool(); + + /** + * + * + *
            +     * The identifier of the tool to execute.
            +     * 
            + * + * string tool = 2; + * + * @return The bytes for tool. + */ + com.google.protobuf.ByteString getToolBytes(); + + /** + * + * + *
            +     * The input parameters and values for the tool in JSON object format.
            +     * 
            + * + * .google.protobuf.Struct args = 3; + * + * @return Whether the args field is set. + */ + boolean hasArgs(); + + /** + * + * + *
            +     * The input parameters and values for the tool in JSON object format.
            +     * 
            + * + * .google.protobuf.Struct args = 3; + * + * @return The args. + */ + com.google.protobuf.Struct getArgs(); + + /** + * + * + *
            +     * The input parameters and values for the tool in JSON object format.
            +     * 
            + * + * .google.protobuf.Struct args = 3; + */ + com.google.protobuf.StructOrBuilder getArgsOrBuilder(); + } + + /** + * + * + *
            +   * Request for the client to execute the specified tool.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall} + */ + public static final class ToolCall extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall) + ToolCallOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolCall"); + } + + // Use ToolCall.newBuilder() to construct. + private ToolCall(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolCall() { + id_ = ""; + tool_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
            +     * The unique identifier of the tool call.
            +     * 
            + * + * string id = 1; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + + /** + * + * + *
            +     * The unique identifier of the tool call.
            +     * 
            + * + * string id = 1; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object tool_ = ""; + + /** + * + * + *
            +     * The identifier of the tool to execute.
            +     * 
            + * + * string tool = 2; + * + * @return The tool. + */ + @java.lang.Override + public java.lang.String getTool() { + java.lang.Object ref = tool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tool_ = s; + return s; + } + } + + /** + * + * + *
            +     * The identifier of the tool to execute.
            +     * 
            + * + * string tool = 2; + * + * @return The bytes for tool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ARGS_FIELD_NUMBER = 3; + private com.google.protobuf.Struct args_; + + /** + * + * + *
            +     * The input parameters and values for the tool in JSON object format.
            +     * 
            + * + * .google.protobuf.Struct args = 3; + * + * @return Whether the args field is set. + */ + @java.lang.Override + public boolean hasArgs() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * The input parameters and values for the tool in JSON object format.
            +     * 
            + * + * .google.protobuf.Struct args = 3; + * + * @return The args. + */ + @java.lang.Override + public com.google.protobuf.Struct getArgs() { + return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; + } + + /** + * + * + *
            +     * The input parameters and values for the tool in JSON object format.
            +     * 
            + * + * .google.protobuf.Struct args = 3; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getArgsOrBuilder() { + return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tool_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, tool_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getArgs()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tool_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, tool_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getArgs()); + } + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall other = + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall) obj; + + if (!getId().equals(other.getId())) return false; + if (!getTool().equals(other.getTool())) return false; + if (hasArgs() != other.hasArgs()) return false; + if (hasArgs()) { + if (!getArgs().equals(other.getArgs())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + if (hasArgs()) { + hash = (37 * hash) + ARGS_FIELD_NUMBER; + hash = (53 * hash) + getArgs().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseFrom( + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Request for the client to execute the specified tool.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall) + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCallOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetArgsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + tool_ = ""; + args_ = null; + if (argsBuilder_ != null) { + argsBuilder_.dispose(); + argsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + build() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + buildPartial() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall result = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tool_ = tool_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.args_ = argsBuilder_ == null ? args_ : argsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall other) { + if (other + == com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTool().isEmpty()) { + tool_ = other.tool_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasArgs()) { + mergeArgs(other.getArgs()); + } + 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: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + tool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetArgsFieldBuilder().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 id_ = ""; + + /** + * + * + *
            +       * The unique identifier of the tool call.
            +       * 
            + * + * string id = 1; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * The unique identifier of the tool call.
            +       * 
            + * + * string id = 1; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * The unique identifier of the tool call.
            +       * 
            + * + * string id = 1; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The unique identifier of the tool call.
            +       * 
            + * + * string id = 1; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The unique identifier of the tool call.
            +       * 
            + * + * string id = 1; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object tool_ = ""; + + /** + * + * + *
            +       * The identifier of the tool to execute.
            +       * 
            + * + * string tool = 2; + * + * @return The tool. + */ + public java.lang.String getTool() { + java.lang.Object ref = tool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * The identifier of the tool to execute.
            +       * 
            + * + * string tool = 2; + * + * @return The bytes for tool. + */ + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * The identifier of the tool to execute.
            +       * 
            + * + * string tool = 2; + * + * @param value The tool to set. + * @return This builder for chaining. + */ + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tool_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The identifier of the tool to execute.
            +       * 
            + * + * string tool = 2; + * + * @return This builder for chaining. + */ + public Builder clearTool() { + tool_ = getDefaultInstance().getTool(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +       * The identifier of the tool to execute.
            +       * 
            + * + * string tool = 2; + * + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tool_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Struct args_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + argsBuilder_; + + /** + * + * + *
            +       * The input parameters and values for the tool in JSON object format.
            +       * 
            + * + * .google.protobuf.Struct args = 3; + * + * @return Whether the args field is set. + */ + public boolean hasArgs() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +       * The input parameters and values for the tool in JSON object format.
            +       * 
            + * + * .google.protobuf.Struct args = 3; + * + * @return The args. + */ + public com.google.protobuf.Struct getArgs() { + if (argsBuilder_ == null) { + return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; + } else { + return argsBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * The input parameters and values for the tool in JSON object format.
            +       * 
            + * + * .google.protobuf.Struct args = 3; + */ + public Builder setArgs(com.google.protobuf.Struct value) { + if (argsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + args_ = value; + } else { + argsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The input parameters and values for the tool in JSON object format.
            +       * 
            + * + * .google.protobuf.Struct args = 3; + */ + public Builder setArgs(com.google.protobuf.Struct.Builder builderForValue) { + if (argsBuilder_ == null) { + args_ = builderForValue.build(); + } else { + argsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * The input parameters and values for the tool in JSON object format.
            +       * 
            + * + * .google.protobuf.Struct args = 3; + */ + public Builder mergeArgs(com.google.protobuf.Struct value) { + if (argsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && args_ != null + && args_ != com.google.protobuf.Struct.getDefaultInstance()) { + getArgsBuilder().mergeFrom(value); + } else { + args_ = value; + } + } else { + argsBuilder_.mergeFrom(value); + } + if (args_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * The input parameters and values for the tool in JSON object format.
            +       * 
            + * + * .google.protobuf.Struct args = 3; + */ + public Builder clearArgs() { + bitField0_ = (bitField0_ & ~0x00000004); + args_ = null; + if (argsBuilder_ != null) { + argsBuilder_.dispose(); + argsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * The input parameters and values for the tool in JSON object format.
            +       * 
            + * + * .google.protobuf.Struct args = 3; + */ + public com.google.protobuf.Struct.Builder getArgsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetArgsFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * The input parameters and values for the tool in JSON object format.
            +       * 
            + * + * .google.protobuf.Struct args = 3; + */ + public com.google.protobuf.StructOrBuilder getArgsOrBuilder() { + if (argsBuilder_ != null) { + return argsBuilder_.getMessageOrBuilder(); + } else { + return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; + } + } + + /** + * + * + *
            +       * The input parameters and values for the tool in JSON object format.
            +       * 
            + * + * .google.protobuf.Struct args = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetArgsFieldBuilder() { + if (argsBuilder_ == null) { + argsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getArgs(), getParentForChildren(), isClean()); + args_ = null; + } + return argsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall) + private static final com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCall + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall(); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolCall parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ToolCallsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * The list of tool calls.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + java.util.List + getToolCallsList(); + + /** + * + * + *
            +     * The list of tool calls.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall getToolCalls( + int index); + + /** + * + * + *
            +     * The list of tool calls.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + int getToolCallsCount(); + + /** + * + * + *
            +     * The list of tool calls.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallOrBuilder> + getToolCallsOrBuilderList(); + + /** + * + * + *
            +     * The list of tool calls.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCallOrBuilder + getToolCallsOrBuilder(int index); + } + + /** + * + * + *
            +   * The tool calls from the server.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls} + */ + public static final class ToolCalls extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + ToolCallsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ToolCalls"); + } + + // Use ToolCalls.newBuilder() to construct. + private ToolCalls(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ToolCalls() { + toolCalls_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .Builder.class); + } + + public static final int TOOL_CALLS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall> + toolCalls_; + + /** + * + * + *
            +     * The list of tool calls.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall> + getToolCallsList() { + return toolCalls_; + } + + /** + * + * + *
            +     * The list of tool calls.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallOrBuilder> + getToolCallsOrBuilderList() { + return toolCalls_; + } + + /** + * + * + *
            +     * The list of tool calls.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + @java.lang.Override + public int getToolCallsCount() { + return toolCalls_.size(); + } + + /** + * + * + *
            +     * The list of tool calls.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + getToolCalls(int index) { + return toolCalls_.get(index); + } + + /** + * + * + *
            +     * The list of tool calls.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCallOrBuilder + getToolCallsOrBuilder(int index) { + return toolCalls_.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 < toolCalls_.size(); i++) { + output.writeMessage(1, toolCalls_.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 < toolCalls_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, toolCalls_.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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls other = + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) obj; + + if (!getToolCallsList().equals(other.getToolCallsList())) 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 (getToolCallsCount() > 0) { + hash = (37 * hash) + TOOL_CALLS_FIELD_NUMBER; + hash = (53 * hash) + getToolCallsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseFrom( + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * The tool calls from the server.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCallsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .class, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolCallsBuilder_ == null) { + toolCalls_ = java.util.Collections.emptyList(); + } else { + toolCalls_ = null; + toolCallsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + build() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + buildPartial() { + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls result = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + result) { + if (toolCallsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + toolCalls_ = java.util.Collections.unmodifiableList(toolCalls_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.toolCalls_ = toolCalls_; + } else { + result.toolCalls_ = toolCallsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls other) { + if (other + == com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .getDefaultInstance()) return this; + if (toolCallsBuilder_ == null) { + if (!other.toolCalls_.isEmpty()) { + if (toolCalls_.isEmpty()) { + toolCalls_ = other.toolCalls_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolCallsIsMutable(); + toolCalls_.addAll(other.toolCalls_); + } + onChanged(); + } + } else { + if (!other.toolCalls_.isEmpty()) { + if (toolCallsBuilder_.isEmpty()) { + toolCallsBuilder_.dispose(); + toolCallsBuilder_ = null; + toolCalls_ = other.toolCalls_; + bitField0_ = (bitField0_ & ~0x00000001); + toolCallsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolCallsFieldBuilder() + : null; + } else { + toolCallsBuilder_.addAllMessages(other.toolCalls_); + } + } + } + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1 + .BidiStreamingAnalyzeContentResponse.ToolCall.parser(), + extensionRegistry); + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.add(m); + } else { + toolCallsBuilder_.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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall> + toolCalls_ = java.util.Collections.emptyList(); + + private void ensureToolCallsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + toolCalls_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall>( + toolCalls_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallOrBuilder> + toolCallsBuilder_; + + /** + * + * + *
            +       * The list of tool calls.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall> + getToolCallsList() { + if (toolCallsBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolCalls_); + } else { + return toolCallsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +       * The list of tool calls.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public int getToolCallsCount() { + if (toolCallsBuilder_ == null) { + return toolCalls_.size(); + } else { + return toolCallsBuilder_.getCount(); + } + } + + /** + * + * + *
            +       * The list of tool calls.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + getToolCalls(int index) { + if (toolCallsBuilder_ == null) { + return toolCalls_.get(index); + } else { + return toolCallsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +       * The list of tool calls.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public Builder setToolCalls( + int index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall value) { + if (toolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallsIsMutable(); + toolCalls_.set(index, value); + onChanged(); + } else { + toolCallsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * The list of tool calls.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public Builder setToolCalls( + int index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall.Builder + builderForValue) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.set(index, builderForValue.build()); + onChanged(); + } else { + toolCallsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * The list of tool calls.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public Builder addToolCalls( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall value) { + if (toolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallsIsMutable(); + toolCalls_.add(value); + onChanged(); + } else { + toolCallsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +       * The list of tool calls.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public Builder addToolCalls( + int index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall value) { + if (toolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallsIsMutable(); + toolCalls_.add(index, value); + onChanged(); + } else { + toolCallsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * The list of tool calls.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public Builder addToolCalls( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall.Builder + builderForValue) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.add(builderForValue.build()); + onChanged(); + } else { + toolCallsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * The list of tool calls.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public Builder addToolCalls( + int index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall.Builder + builderForValue) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.add(index, builderForValue.build()); + onChanged(); + } else { + toolCallsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * The list of tool calls.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public Builder addAllToolCalls( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCall> + values) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolCalls_); + onChanged(); + } else { + toolCallsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * The list of tool calls.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public Builder clearToolCalls() { + if (toolCallsBuilder_ == null) { + toolCalls_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolCallsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * The list of tool calls.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public Builder removeToolCalls(int index) { + if (toolCallsBuilder_ == null) { + ensureToolCallsIsMutable(); + toolCalls_.remove(index); + onChanged(); + } else { + toolCallsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * The list of tool calls.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .Builder + getToolCallsBuilder(int index) { + return internalGetToolCallsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * The list of tool calls.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallOrBuilder + getToolCallsOrBuilder(int index) { + if (toolCallsBuilder_ == null) { + return toolCalls_.get(index); + } else { + return toolCallsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * The list of tool calls.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallOrBuilder> + getToolCallsOrBuilderList() { + if (toolCallsBuilder_ != null) { + return toolCallsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolCalls_); + } + } + + /** + * + * + *
            +       * The list of tool calls.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .Builder + addToolCallsBuilder() { + return internalGetToolCallsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .getDefaultInstance()); + } + + /** + * + * + *
            +       * The list of tool calls.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .Builder + addToolCallsBuilder(int index) { + return internalGetToolCallsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .getDefaultInstance()); + } + + /** + * + * + *
            +       * The list of tool calls.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall tool_calls = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .Builder> + getToolCallsBuilderList() { + return internalGetToolCallsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallOrBuilder> + internalGetToolCallsFieldBuilder() { + if (toolCallsBuilder_ == null) { + toolCallsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCall + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallOrBuilder>( + toolCalls_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + toolCalls_ = null; + } + return toolCallsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + private static final com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCalls + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls(); + } + + public static com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolCalls parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + private int responseCase_ = 0; @SuppressWarnings("serial") @@ -948,6 +3245,7 @@ public enum ResponseCase BARGE_IN_SIGNAL(2), ANALYZE_CONTENT_RESPONSE(3), TURN_COMPLETE(4), + TOOL_CALLS(5), RESPONSE_NOT_SET(0); private final int value; @@ -975,6 +3273,8 @@ public static ResponseCase forNumber(int value) { return ANALYZE_CONTENT_RESPONSE; case 4: return TURN_COMPLETE; + case 5: + return TOOL_CALLS; case 0: return RESPONSE_NOT_SET; default: @@ -1247,6 +3547,72 @@ public boolean hasTurnComplete() { .getDefaultInstance(); } + public static final int TOOL_CALLS_FIELD_NUMBER = 5; + + /** + * + * + *
            +   * The tool calls from the server.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + * + * @return Whether the toolCalls field is set. + */ + @java.lang.Override + public boolean hasToolCalls() { + return responseCase_ == 5; + } + + /** + * + * + *
            +   * The tool calls from the server.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + * + * @return The toolCalls. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + getToolCalls() { + if (responseCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + response_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .getDefaultInstance(); + } + + /** + * + * + *
            +   * The tool calls from the server.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCallsOrBuilder + getToolCallsOrBuilder() { + if (responseCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + response_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1281,6 +3647,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete) response_); } + if (responseCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + response_); + } getUnknownFields().writeTo(output); } @@ -1315,6 +3687,13 @@ public int getSerializedSize() { (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnComplete) response_); } + if (responseCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + response_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1345,6 +3724,9 @@ public boolean equals(final java.lang.Object obj) { case 4: if (!getTurnComplete().equals(other.getTurnComplete())) return false; break; + case 5: + if (!getToolCalls().equals(other.getToolCalls())) return false; + break; case 0: default: } @@ -1376,6 +3758,10 @@ public int hashCode() { hash = (37 * hash) + TURN_COMPLETE_FIELD_NUMBER; hash = (53 * hash) + getTurnComplete().hashCode(); break; + case 5: + hash = (37 * hash) + TOOL_CALLS_FIELD_NUMBER; + hash = (53 * hash) + getToolCalls().hashCode(); + break; case 0: default: } @@ -1536,6 +3922,9 @@ public Builder clear() { if (turnCompleteBuilder_ != null) { turnCompleteBuilder_.clear(); } + if (toolCallsBuilder_ != null) { + toolCallsBuilder_.clear(); + } responseCase_ = 0; response_ = null; return this; @@ -1597,6 +3986,9 @@ private void buildPartialOneofs( if (responseCase_ == 4 && turnCompleteBuilder_ != null) { result.response_ = turnCompleteBuilder_.build(); } + if (responseCase_ == 5 && toolCallsBuilder_ != null) { + result.response_ = toolCallsBuilder_.build(); + } } @java.lang.Override @@ -1637,6 +4029,11 @@ public Builder mergeFrom( mergeTurnComplete(other.getTurnComplete()); break; } + case TOOL_CALLS: + { + mergeToolCalls(other.getToolCalls()); + break; + } case RESPONSE_NOT_SET: { break; @@ -1697,6 +4094,13 @@ public Builder mergeFrom( responseCase_ = 4; break; } // case 34 + case 42: + { + input.readMessage( + internalGetToolCallsFieldBuilder().getBuilder(), extensionRegistry); + responseCase_ = 5; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2755,6 +5159,268 @@ public Builder clearTurnComplete() { return turnCompleteBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallsOrBuilder> + toolCallsBuilder_; + + /** + * + * + *
            +     * The tool calls from the server.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + * + * @return Whether the toolCalls field is set. + */ + @java.lang.Override + public boolean hasToolCalls() { + return responseCase_ == 5; + } + + /** + * + * + *
            +     * The tool calls from the server.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + * + * @return The toolCalls. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + getToolCalls() { + if (toolCallsBuilder_ == null) { + if (responseCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + response_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .getDefaultInstance(); + } else { + if (responseCase_ == 5) { + return toolCallsBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * The tool calls from the server.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + */ + public Builder setToolCalls( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls value) { + if (toolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + onChanged(); + } else { + toolCallsBuilder_.setMessage(value); + } + responseCase_ = 5; + return this; + } + + /** + * + * + *
            +     * The tool calls from the server.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + */ + public Builder setToolCalls( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls.Builder + builderForValue) { + if (toolCallsBuilder_ == null) { + response_ = builderForValue.build(); + onChanged(); + } else { + toolCallsBuilder_.setMessage(builderForValue.build()); + } + responseCase_ = 5; + return this; + } + + /** + * + * + *
            +     * The tool calls from the server.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + */ + public Builder mergeToolCalls( + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls value) { + if (toolCallsBuilder_ == null) { + if (responseCase_ == 5 + && response_ + != com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .getDefaultInstance()) { + response_ = + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .newBuilder( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCalls) + response_) + .mergeFrom(value) + .buildPartial(); + } else { + response_ = value; + } + onChanged(); + } else { + if (responseCase_ == 5) { + toolCallsBuilder_.mergeFrom(value); + } else { + toolCallsBuilder_.setMessage(value); + } + } + responseCase_ = 5; + return this; + } + + /** + * + * + *
            +     * The tool calls from the server.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + */ + public Builder clearToolCalls() { + if (toolCallsBuilder_ == null) { + if (responseCase_ == 5) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + } else { + if (responseCase_ == 5) { + responseCase_ = 0; + response_ = null; + } + toolCallsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The tool calls from the server.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + */ + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls.Builder + getToolCallsBuilder() { + return internalGetToolCallsFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * The tool calls from the server.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallsOrBuilder + getToolCallsOrBuilder() { + if ((responseCase_ == 5) && (toolCallsBuilder_ != null)) { + return toolCallsBuilder_.getMessageOrBuilder(); + } else { + if (responseCase_ == 5) { + return (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + response_; + } + return com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * The tool calls from the server.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallsOrBuilder> + internalGetToolCallsFieldBuilder() { + if (toolCallsBuilder_ == null) { + if (!(responseCase_ == 5)) { + response_ = + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .getDefaultInstance(); + } + toolCallsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls + .Builder, + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse + .ToolCallsOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls) + response_, + getParentForChildren(), + isClean()); + response_ = null; + } + responseCase_ = 5; + onChanged(); + return toolCallsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponseOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponseOrBuilder.java index 5c7d5f9c1293..6cf60c79638b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponseOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/BidiStreamingAnalyzeContentResponseOrBuilder.java @@ -204,6 +204,50 @@ public interface BidiStreamingAnalyzeContentResponseOrBuilder com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnCompleteOrBuilder getTurnCompleteOrBuilder(); + /** + * + * + *
            +   * The tool calls from the server.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + * + * @return Whether the toolCalls field is set. + */ + boolean hasToolCalls(); + + /** + * + * + *
            +   * The tool calls from the server.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + * + * @return The toolCalls. + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls getToolCalls(); + + /** + * + * + *
            +   * The tool calls from the server.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCalls tool_calls = 5; + * + */ + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCallsOrBuilder + getToolCallsOrBuilder(); + com.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ResponseCase getResponseCase(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppProto.java index 33651db0df69..a739bcc1997f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppProto.java @@ -57,17 +57,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "p.proto\022\037google.cloud.dialogflow.v2beta1" + "\032\037google/api/field_behavior.proto\032\031googl" + "e/api/resource.proto\032*google/cloud/dialo" - + "gflow/v2beta1/tool.proto\"\243\001\n\nCesAppSpec\022" + + "gflow/v2beta1/tool.proto\"\227\002\n\nCesAppSpec\022" + "/\n\007ces_app\030\001 \001(\tB\036\340A\001\372A\030\n\026ces.googleapis" + ".com/App\022d\n\030confirmation_requirement\030\002 \001" + "(\0162=.google.cloud.dialogflow.v2beta1.Too" - + "l.ConfirmationRequirementB\003\340A\001B\357\001\n#com.g" - + "oogle.cloud.dialogflow.v2beta1B\013CesAppPr" - + "otoP\001ZCcloud.google.com/go/dialogflow/ap" - + "iv2beta1/dialogflowpb;dialogflowpb\242\002\002DF\252" - + "\002\037Google.Cloud.Dialogflow.V2Beta1\352AL\n\026ce" - + "s.googleapis.com/App\0222projects/{project}" - + "/locations/{location}/apps/{app}b\006proto3" + + "l.ConfirmationRequirementB\003\340A\001\022#\n\021proact" + + "ive_enabled\030\003 \001(\010B\003\340A\001H\000\210\001\001\022\"\n\020reactive_" + + "enabled\030\004 \001(\010B\003\340A\001H\001\210\001\001B\024\n\022_proactive_en" + + "abledB\023\n\021_reactive_enabledB\357\001\n#com.googl" + + "e.cloud.dialogflow.v2beta1B\013CesAppProtoP" + + "\001ZCcloud.google.com/go/dialogflow/apiv2b" + + "eta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Go" + + "ogle.Cloud.Dialogflow.V2Beta1\352AL\n\026ces.go" + + "ogleapis.com/App\0222projects/{project}/loc" + + "ations/{location}/apps/{app}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -83,7 +86,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_CesAppSpec_descriptor, new java.lang.String[] { - "CesApp", "ConfirmationRequirement", + "CesApp", "ConfirmationRequirement", "ProactiveEnabled", "ReactiveEnabled", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpec.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpec.java index c52ee5f60455..ff426dec4a19 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpec.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpec.java @@ -71,6 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dialogflow.v2beta1.CesAppSpec.Builder.class); } + private int bitField0_; public static final int CES_APP_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -175,6 +176,88 @@ public int getConfirmationRequirementValue() { : result; } + public static final int PROACTIVE_ENABLED_FIELD_NUMBER = 3; + private boolean proactiveEnabled_ = false; + + /** + * + * + *
            +   * Optional. Only applicable for CompanionAgent.
            +   * Indicates whether the ces app is enabled in proactive mode.
            +   * At least one of `proactive_enabled` or `reactive_enabled` should be
            +   * true; otherwise, the ces app will be ignored.
            +   * 
            + * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the proactiveEnabled field is set. + */ + @java.lang.Override + public boolean hasProactiveEnabled() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Only applicable for CompanionAgent.
            +   * Indicates whether the ces app is enabled in proactive mode.
            +   * At least one of `proactive_enabled` or `reactive_enabled` should be
            +   * true; otherwise, the ces app will be ignored.
            +   * 
            + * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proactiveEnabled. + */ + @java.lang.Override + public boolean getProactiveEnabled() { + return proactiveEnabled_; + } + + public static final int REACTIVE_ENABLED_FIELD_NUMBER = 4; + private boolean reactiveEnabled_ = false; + + /** + * + * + *
            +   * Optional. Only applicable for CompanionAgent.
            +   * Indicates whether the ces app is enabled in reactive mode.
            +   * At least one of `proactive_enabled` or `reactive_enabled` should be
            +   * true; otherwise, the ces app will be ignored.
            +   * 
            + * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the reactiveEnabled field is set. + */ + @java.lang.Override + public boolean hasReactiveEnabled() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. Only applicable for CompanionAgent.
            +   * Indicates whether the ces app is enabled in reactive mode.
            +   * At least one of `proactive_enabled` or `reactive_enabled` should be
            +   * true; otherwise, the ces app will be ignored.
            +   * 
            + * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reactiveEnabled. + */ + @java.lang.Override + public boolean getReactiveEnabled() { + return reactiveEnabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -198,6 +281,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(2, confirmationRequirement_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(3, proactiveEnabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeBool(4, reactiveEnabled_); + } getUnknownFields().writeTo(output); } @@ -216,6 +305,12 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, confirmationRequirement_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, proactiveEnabled_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, reactiveEnabled_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -234,6 +329,14 @@ public boolean equals(final java.lang.Object obj) { if (!getCesApp().equals(other.getCesApp())) return false; if (confirmationRequirement_ != other.confirmationRequirement_) return false; + if (hasProactiveEnabled() != other.hasProactiveEnabled()) return false; + if (hasProactiveEnabled()) { + if (getProactiveEnabled() != other.getProactiveEnabled()) return false; + } + if (hasReactiveEnabled() != other.hasReactiveEnabled()) return false; + if (hasReactiveEnabled()) { + if (getReactiveEnabled() != other.getReactiveEnabled()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -249,6 +352,14 @@ public int hashCode() { hash = (53 * hash) + getCesApp().hashCode(); hash = (37 * hash) + CONFIRMATION_REQUIREMENT_FIELD_NUMBER; hash = (53 * hash) + confirmationRequirement_; + if (hasProactiveEnabled()) { + hash = (37 * hash) + PROACTIVE_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getProactiveEnabled()); + } + if (hasReactiveEnabled()) { + hash = (37 * hash) + REACTIVE_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReactiveEnabled()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -391,6 +502,8 @@ public Builder clear() { bitField0_ = 0; cesApp_ = ""; confirmationRequirement_ = 0; + proactiveEnabled_ = false; + reactiveEnabled_ = false; return this; } @@ -433,6 +546,16 @@ private void buildPartial0(com.google.cloud.dialogflow.v2beta1.CesAppSpec result if (((from_bitField0_ & 0x00000002) != 0)) { result.confirmationRequirement_ = confirmationRequirement_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.proactiveEnabled_ = proactiveEnabled_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.reactiveEnabled_ = reactiveEnabled_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -455,6 +578,12 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.CesAppSpec other) { if (other.confirmationRequirement_ != 0) { setConfirmationRequirementValue(other.getConfirmationRequirementValue()); } + if (other.hasProactiveEnabled()) { + setProactiveEnabled(other.getProactiveEnabled()); + } + if (other.hasReactiveEnabled()) { + setReactiveEnabled(other.getReactiveEnabled()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -493,6 +622,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 16 + case 24: + { + proactiveEnabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + reactiveEnabled_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -748,6 +889,174 @@ public Builder clearConfirmationRequirement() { return this; } + private boolean proactiveEnabled_; + + /** + * + * + *
            +     * Optional. Only applicable for CompanionAgent.
            +     * Indicates whether the ces app is enabled in proactive mode.
            +     * At least one of `proactive_enabled` or `reactive_enabled` should be
            +     * true; otherwise, the ces app will be ignored.
            +     * 
            + * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the proactiveEnabled field is set. + */ + @java.lang.Override + public boolean hasProactiveEnabled() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Optional. Only applicable for CompanionAgent.
            +     * Indicates whether the ces app is enabled in proactive mode.
            +     * At least one of `proactive_enabled` or `reactive_enabled` should be
            +     * true; otherwise, the ces app will be ignored.
            +     * 
            + * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proactiveEnabled. + */ + @java.lang.Override + public boolean getProactiveEnabled() { + return proactiveEnabled_; + } + + /** + * + * + *
            +     * Optional. Only applicable for CompanionAgent.
            +     * Indicates whether the ces app is enabled in proactive mode.
            +     * At least one of `proactive_enabled` or `reactive_enabled` should be
            +     * true; otherwise, the ces app will be ignored.
            +     * 
            + * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The proactiveEnabled to set. + * @return This builder for chaining. + */ + public Builder setProactiveEnabled(boolean value) { + + proactiveEnabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Only applicable for CompanionAgent.
            +     * Indicates whether the ces app is enabled in proactive mode.
            +     * At least one of `proactive_enabled` or `reactive_enabled` should be
            +     * true; otherwise, the ces app will be ignored.
            +     * 
            + * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearProactiveEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + proactiveEnabled_ = false; + onChanged(); + return this; + } + + private boolean reactiveEnabled_; + + /** + * + * + *
            +     * Optional. Only applicable for CompanionAgent.
            +     * Indicates whether the ces app is enabled in reactive mode.
            +     * At least one of `proactive_enabled` or `reactive_enabled` should be
            +     * true; otherwise, the ces app will be ignored.
            +     * 
            + * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the reactiveEnabled field is set. + */ + @java.lang.Override + public boolean hasReactiveEnabled() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Optional. Only applicable for CompanionAgent.
            +     * Indicates whether the ces app is enabled in reactive mode.
            +     * At least one of `proactive_enabled` or `reactive_enabled` should be
            +     * true; otherwise, the ces app will be ignored.
            +     * 
            + * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reactiveEnabled. + */ + @java.lang.Override + public boolean getReactiveEnabled() { + return reactiveEnabled_; + } + + /** + * + * + *
            +     * Optional. Only applicable for CompanionAgent.
            +     * Indicates whether the ces app is enabled in reactive mode.
            +     * At least one of `proactive_enabled` or `reactive_enabled` should be
            +     * true; otherwise, the ces app will be ignored.
            +     * 
            + * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The reactiveEnabled to set. + * @return This builder for chaining. + */ + public Builder setReactiveEnabled(boolean value) { + + reactiveEnabled_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Only applicable for CompanionAgent.
            +     * Indicates whether the ces app is enabled in reactive mode.
            +     * At least one of `proactive_enabled` or `reactive_enabled` should be
            +     * true; otherwise, the ces app will be ignored.
            +     * 
            + * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearReactiveEnabled() { + bitField0_ = (bitField0_ & ~0x00000008); + reactiveEnabled_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.CesAppSpec) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpecOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpecOrBuilder.java index ad0919cce9c8..828a35235433 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpecOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/CesAppSpecOrBuilder.java @@ -87,4 +87,68 @@ public interface CesAppSpecOrBuilder * @return The confirmationRequirement. */ com.google.cloud.dialogflow.v2beta1.Tool.ConfirmationRequirement getConfirmationRequirement(); + + /** + * + * + *
            +   * Optional. Only applicable for CompanionAgent.
            +   * Indicates whether the ces app is enabled in proactive mode.
            +   * At least one of `proactive_enabled` or `reactive_enabled` should be
            +   * true; otherwise, the ces app will be ignored.
            +   * 
            + * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the proactiveEnabled field is set. + */ + boolean hasProactiveEnabled(); + + /** + * + * + *
            +   * Optional. Only applicable for CompanionAgent.
            +   * Indicates whether the ces app is enabled in proactive mode.
            +   * At least one of `proactive_enabled` or `reactive_enabled` should be
            +   * true; otherwise, the ces app will be ignored.
            +   * 
            + * + * optional bool proactive_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The proactiveEnabled. + */ + boolean getProactiveEnabled(); + + /** + * + * + *
            +   * Optional. Only applicable for CompanionAgent.
            +   * Indicates whether the ces app is enabled in reactive mode.
            +   * At least one of `proactive_enabled` or `reactive_enabled` should be
            +   * true; otherwise, the ces app will be ignored.
            +   * 
            + * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the reactiveEnabled field is set. + */ + boolean hasReactiveEnabled(); + + /** + * + * + *
            +   * Optional. Only applicable for CompanionAgent.
            +   * Indicates whether the ces app is enabled in reactive mode.
            +   * At least one of `proactive_enabled` or `reactive_enabled` should be
            +   * true; otherwise, the ces app will be ignored.
            +   * 
            + * + * optional bool reactive_enabled = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The reactiveEnabled. + */ + boolean getReactiveEnabled(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfile.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfile.java index ec8a35a14efd..54b2833d8ddb 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfile.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfile.java @@ -864,6 +864,65 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } + public static final int SIP_CONFIG_FIELD_NUMBER = 16; + private com.google.cloud.dialogflow.v2beta1.SipConfig sipConfig_; + + /** + * + * + *
            +   * Optional. Configuration for SIP connections.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sipConfig field is set. + */ + @java.lang.Override + public boolean hasSipConfig() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
            +   * Optional. Configuration for SIP connections.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sipConfig. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SipConfig getSipConfig() { + return sipConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.SipConfig.getDefaultInstance() + : sipConfig_; + } + + /** + * + * + *
            +   * Optional. Configuration for SIP connections.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SipConfigOrBuilder getSipConfigOrBuilder() { + return sipConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.SipConfig.getDefaultInstance() + : sipConfig_; + } + public static final int TIME_ZONE_FIELD_NUMBER = 14; @SuppressWarnings("serial") @@ -997,7 +1056,7 @@ public com.google.protobuf.ByteString getSecuritySettingsBytes() { */ @java.lang.Override public boolean hasTtsConfig() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -1098,6 +1157,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessage.writeString(output, 14, timeZone_); } if (((bitField0_ & 0x00000400) != 0)) { + output.writeMessage(16, getSipConfig()); + } + if (((bitField0_ & 0x00000800) != 0)) { output.writeMessage(18, getTtsConfig()); } if (((bitField0_ & 0x00000100) != 0)) { @@ -1164,6 +1226,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessage.computeStringSize(14, timeZone_); } if (((bitField0_ & 0x00000400) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getSipConfig()); + } + if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getTtsConfig()); } if (((bitField0_ & 0x00000100) != 0)) { @@ -1239,6 +1304,10 @@ public boolean equals(final java.lang.Object obj) { if (!getSttConfig().equals(other.getSttConfig())) return false; } if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (hasSipConfig() != other.hasSipConfig()) return false; + if (hasSipConfig()) { + if (!getSipConfig().equals(other.getSipConfig())) return false; + } if (!getTimeZone().equals(other.getTimeZone())) return false; if (!getSecuritySettings().equals(other.getSecuritySettings())) return false; if (hasTtsConfig() != other.hasTtsConfig()) return false; @@ -1304,6 +1373,10 @@ public int hashCode() { } hash = (37 * hash) + LANGUAGE_CODE_FIELD_NUMBER; hash = (53 * hash) + getLanguageCode().hashCode(); + if (hasSipConfig()) { + hash = (37 * hash) + SIP_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSipConfig().hashCode(); + } hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; hash = (53 * hash) + getTimeZone().hashCode(); hash = (37 * hash) + SECURITY_SETTINGS_FIELD_NUMBER; @@ -1464,6 +1537,7 @@ private void maybeForceBuilderInitialization() { internalGetNewMessageEventNotificationConfigFieldBuilder(); internalGetNewRecognitionResultNotificationConfigFieldBuilder(); internalGetSttConfigFieldBuilder(); + internalGetSipConfigFieldBuilder(); internalGetTtsConfigFieldBuilder(); } } @@ -1526,6 +1600,11 @@ public Builder clear() { sttConfigBuilder_ = null; } languageCode_ = ""; + sipConfig_ = null; + if (sipConfigBuilder_ != null) { + sipConfigBuilder_.dispose(); + sipConfigBuilder_ = null; + } timeZone_ = ""; securitySettings_ = ""; ttsConfig_ = null; @@ -1642,14 +1721,18 @@ private void buildPartial0(com.google.cloud.dialogflow.v2beta1.ConversationProfi result.languageCode_ = languageCode_; } if (((from_bitField0_ & 0x00004000) != 0)) { - result.timeZone_ = timeZone_; + result.sipConfig_ = sipConfigBuilder_ == null ? sipConfig_ : sipConfigBuilder_.build(); + to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00008000) != 0)) { - result.securitySettings_ = securitySettings_; + result.timeZone_ = timeZone_; } if (((from_bitField0_ & 0x00010000) != 0)) { + result.securitySettings_ = securitySettings_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { result.ttsConfig_ = ttsConfigBuilder_ == null ? ttsConfig_ : ttsConfigBuilder_.build(); - to_bitField0_ |= 0x00000400; + to_bitField0_ |= 0x00000800; } result.bitField0_ |= to_bitField0_; } @@ -1716,14 +1799,17 @@ public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.ConversationProfile bitField0_ |= 0x00002000; onChanged(); } + if (other.hasSipConfig()) { + mergeSipConfig(other.getSipConfig()); + } if (!other.getTimeZone().isEmpty()) { timeZone_ = other.timeZone_; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } if (!other.getSecuritySettings().isEmpty()) { securitySettings_ = other.securitySettings_; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } if (other.hasTtsConfig()) { @@ -1842,20 +1928,27 @@ public Builder mergeFrom( case 106: { securitySettings_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 106 case 114: { timeZone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 114 + case 130: + { + input.readMessage( + internalGetSipConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 130 case 146: { input.readMessage( internalGetTtsConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 146 case 170: @@ -4536,6 +4629,219 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dialogflow.v2beta1.SipConfig sipConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SipConfig, + com.google.cloud.dialogflow.v2beta1.SipConfig.Builder, + com.google.cloud.dialogflow.v2beta1.SipConfigOrBuilder> + sipConfigBuilder_; + + /** + * + * + *
            +     * Optional. Configuration for SIP connections.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sipConfig field is set. + */ + public boolean hasSipConfig() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
            +     * Optional. Configuration for SIP connections.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sipConfig. + */ + public com.google.cloud.dialogflow.v2beta1.SipConfig getSipConfig() { + if (sipConfigBuilder_ == null) { + return sipConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.SipConfig.getDefaultInstance() + : sipConfig_; + } else { + return sipConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Configuration for SIP connections.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSipConfig(com.google.cloud.dialogflow.v2beta1.SipConfig value) { + if (sipConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sipConfig_ = value; + } else { + sipConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for SIP connections.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSipConfig( + com.google.cloud.dialogflow.v2beta1.SipConfig.Builder builderForValue) { + if (sipConfigBuilder_ == null) { + sipConfig_ = builderForValue.build(); + } else { + sipConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for SIP connections.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSipConfig(com.google.cloud.dialogflow.v2beta1.SipConfig value) { + if (sipConfigBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) + && sipConfig_ != null + && sipConfig_ != com.google.cloud.dialogflow.v2beta1.SipConfig.getDefaultInstance()) { + getSipConfigBuilder().mergeFrom(value); + } else { + sipConfig_ = value; + } + } else { + sipConfigBuilder_.mergeFrom(value); + } + if (sipConfig_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for SIP connections.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSipConfig() { + bitField0_ = (bitField0_ & ~0x00004000); + sipConfig_ = null; + if (sipConfigBuilder_ != null) { + sipConfigBuilder_.dispose(); + sipConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Configuration for SIP connections.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SipConfig.Builder getSipConfigBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return internalGetSipConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Configuration for SIP connections.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.SipConfigOrBuilder getSipConfigOrBuilder() { + if (sipConfigBuilder_ != null) { + return sipConfigBuilder_.getMessageOrBuilder(); + } else { + return sipConfig_ == null + ? com.google.cloud.dialogflow.v2beta1.SipConfig.getDefaultInstance() + : sipConfig_; + } + } + + /** + * + * + *
            +     * Optional. Configuration for SIP connections.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SipConfig, + com.google.cloud.dialogflow.v2beta1.SipConfig.Builder, + com.google.cloud.dialogflow.v2beta1.SipConfigOrBuilder> + internalGetSipConfigFieldBuilder() { + if (sipConfigBuilder_ == null) { + sipConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.SipConfig, + com.google.cloud.dialogflow.v2beta1.SipConfig.Builder, + com.google.cloud.dialogflow.v2beta1.SipConfigOrBuilder>( + getSipConfig(), getParentForChildren(), isClean()); + sipConfig_ = null; + } + return sipConfigBuilder_; + } + private java.lang.Object timeZone_ = ""; /** @@ -4607,7 +4913,7 @@ public Builder setTimeZone(java.lang.String value) { throw new NullPointerException(); } timeZone_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4627,7 +4933,7 @@ public Builder setTimeZone(java.lang.String value) { */ public Builder clearTimeZone() { timeZone_ = getDefaultInstance().getTimeZone(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -4652,7 +4958,7 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); timeZone_ = value; - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -4728,7 +5034,7 @@ public Builder setSecuritySettings(java.lang.String value) { throw new NullPointerException(); } securitySettings_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4748,7 +5054,7 @@ public Builder setSecuritySettings(java.lang.String value) { */ public Builder clearSecuritySettings() { securitySettings_ = getDefaultInstance().getSecuritySettings(); - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); onChanged(); return this; } @@ -4773,7 +5079,7 @@ public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); securitySettings_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -4800,7 +5106,7 @@ public Builder setSecuritySettingsBytes(com.google.protobuf.ByteString value) { * @return Whether the ttsConfig field is set. */ public boolean hasTtsConfig() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -4848,7 +5154,7 @@ public Builder setTtsConfig(com.google.cloud.dialogflow.v2beta1.SynthesizeSpeech } else { ttsConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -4872,7 +5178,7 @@ public Builder setTtsConfig( } else { ttsConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -4892,7 +5198,7 @@ public Builder setTtsConfig( public Builder mergeTtsConfig( com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig value) { if (ttsConfigBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && ttsConfig_ != null && ttsConfig_ != com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig @@ -4905,7 +5211,7 @@ public Builder mergeTtsConfig( ttsConfigBuilder_.mergeFrom(value); } if (ttsConfig_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -4924,7 +5230,7 @@ public Builder mergeTtsConfig( * .google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig tts_config = 18; */ public Builder clearTtsConfig() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); ttsConfig_ = null; if (ttsConfigBuilder_ != null) { ttsConfigBuilder_.dispose(); @@ -4948,7 +5254,7 @@ public Builder clearTtsConfig() { */ public com.google.cloud.dialogflow.v2beta1.SynthesizeSpeechConfig.Builder getTtsConfigBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return internalGetTtsConfigFieldBuilder().getBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileOrBuilder.java index d0e9002565c1..cf2136463435 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileOrBuilder.java @@ -572,6 +572,49 @@ public interface ConversationProfileOrBuilder */ com.google.protobuf.ByteString getLanguageCodeBytes(); + /** + * + * + *
            +   * Optional. Configuration for SIP connections.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sipConfig field is set. + */ + boolean hasSipConfig(); + + /** + * + * + *
            +   * Optional. Configuration for SIP connections.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sipConfig. + */ + com.google.cloud.dialogflow.v2beta1.SipConfig getSipConfig(); + + /** + * + * + *
            +   * Optional. Configuration for SIP connections.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.SipConfig sip_config = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.SipConfigOrBuilder getSipConfigOrBuilder(); + /** * * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java index 0d8d7cfc2a44..378badf7967f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProfileProto.java @@ -92,10 +92,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionQueryConfig_Sections_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationProcessConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -124,6 +120,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_LoggingConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_LoggingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_SipConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_SipConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_ListConversationProfilesRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -173,288 +173,305 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + ":google/cloud/dialogflow/v2beta1/conversation_profile.proto\022\037google.cloud.dialo" + "\n:google/cloud/dialogflow/v2beta1/conver" + + "sation_profile.proto\022\037google.cloud.dialo" + "gflow.v2beta1\032\034google/api/annotations.pr" + "oto\032\027google/api/client.proto\032\037google/api" + "/field_behavior.proto\032\031google/api/resour" - + "ce.proto\0322google/cloud/dialogflow/v2beta1/audio_config.proto\032/google/cloud/dialo" - + "gflow/v2beta1/generator.proto\0321google/cloud/dialogflow/v2beta1/participant.proto" + + "ce.proto\0322google/cloud/dialogflow/v2beta" + + "1/audio_config.proto\032/google/cloud/dialo" + + "gflow/v2beta1/generator.proto\0321google/cl" + + "oud/dialogflow/v2beta1/participant.proto" + "\032#google/longrunning/operations.proto\032\036g" - + "oogle/protobuf/duration.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\247\n\n" - + "\023ConversationProfile\022\014\n" - + "\004name\030\001 \001(\t\022\031\n" - + "\014display_name\030\002 \001(\tB\003\340A\002\0224\n" - + "\013create_time\030\013 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" - + "\013update_time\030\014" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\037\n" - + "\022use_bidi_streaming\030\027 \001(\010B\003\340A\001\022U\n" - + "\026automated_agent_config\030\003 " - + "\001(\01325.google.cloud.dialogflow.v2beta1.AutomatedAgentConfig\022`\n" - + "\034human_agent_assistant_config\030\004" - + " \001(\0132:.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig\022\\\n" - + "\032human_agent_handoff_config\030\005 \001(\01328.googl" - + "e.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig\022P\n" - + "\023notification_config\030\006 \001(\0132" - + "3.google.cloud.dialogflow.v2beta1.NotificationConfig\022F\n" - + "\016logging_config\030\007 \001(\0132..g" - + "oogle.cloud.dialogflow.v2beta1.LoggingConfig\022b\n" - + "%new_message_event_notification_config\030\010" - + " \001(\01323.google.cloud.dialogflow.v2beta1.NotificationConfig\022l\n" - + "*new_recognition_result_notification_config\030\025 \001(\01323.g" - + "oogle.cloud.dialogflow.v2beta1.NotificationConfigB\003\340A\001\022G\n\n" - + "stt_config\030\t \001(\01323.goo" - + "gle.cloud.dialogflow.v2beta1.SpeechToTextConfig\022\025\n\r" - + "language_code\030\n" - + " \001(\t\022\021\n" - + "\ttime_zone\030\016 \001(\t\022L\n" - + "\021security_settings\030\r" - + " \001(\tB1\372A.\n" - + ",dialogflow.googleapis.com/CXSecuritySettings\022K\n\n" - + "tts_config\030\022 \001(\01327.google.clo" - + "ud.dialogflow.v2beta1.SynthesizeSpeechConfig:\310\001\352A\304\001\n" - + "-dialogflow.googleapis.com/ConversationProfile\022>projects/{project}/c" - + "onversationProfiles/{conversation_profile}\022Sprojects/{project}/locations/{locati" - + "on}/conversationProfiles/{conversation_profile}\"\203\001\n" - + "\024AutomatedAgentConfig\0226\n" - + "\005agent\030\001 \001(\tB\'\340A\002\372A!\n" - + "\037dialogflow.googleapis.com/Agent\0223\n" - + "\013session_ttl\030\003" - + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"\310\036\n" - + "\031HumanAgentAssistantConfig\022P\n" - + "\023notification_config\030\002 \001(\013" - + "23.google.cloud.dialogflow.v2beta1.NotificationConfig\022r\n" - + "\035human_agent_suggestion_config\030\003 \001(\0132K.google.cloud.dialogflow.v" - + "2beta1.HumanAgentAssistantConfig.SuggestionConfig\022o\n" - + "\032end_user_suggestion_config\030\004 \001(\0132K.google.cloud.dialogflow.v2beta1." - + "HumanAgentAssistantConfig.SuggestionConfig\022q\n" - + "\027message_analysis_config\030\005 \001(\0132P.go" - + "ogle.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.MessageAnalysisConfig\032I\n" - + "\031SuggestionTriggerSettings\022\025\n\r" - + "no_small_talk\030\001 \001(\010\022\025\n\r" - + "only_end_user\030\002 \001(\010\032\223\007\n" - + "\027SuggestionFeatureConfig\022N\n" - + "\022suggestion_feature\030\005" - + " \001(\01322.google.cloud.dialogflow.v2beta1.SuggestionFeature\022%\n" - + "\035enable_event_based_suggestion\030\003 \001(\010\022(\n" - + "\033disable_agent_query_logging\030\016 \001(\010B\003\340A\001\0223\n" - + "&enable_query_suggestion_when_no_answer\030\017 \001(\010B\003\340A\001\0220\n" - + "#enable_conversation_augmented_query\030\020 \001(\010B\003\340A\001\022)\n" - + "\034enable_query_suggestion_only\030\021 \001(\010B\003\340A\001\022\'\n" - + "\032enable_response_debug_info\030\022 \001(\010B\003\340A\001\022G\n" - + "\014rai_settings\030\023 \001(\0132,.google." - + "cloud.dialogflow.v2beta1.RaiSettingsB\003\340A\001\022y\n" - + "\033suggestion_trigger_settings\030\n" - + " \001(\0132T.google.cloud.dialogflow.v2beta1.HumanAg" - + "entAssistantConfig.SuggestionTriggerSettings\022f\n" - + "\014query_config\030\006 \001(\0132P.google.clou" - + "d.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig\022u\n" - + "\031conversation_model_config\030\007 \001(\0132R.google.cloud.d" - + "ialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig\022y\n" - + "\033conversation_process_config\030\010 \001(\0132T.google.cloud." - + "dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig\032\242\003\n" - + "\020SuggestionConfig\022k\n" - + "\017feature_configs\030\002 \003(\0132R.google.cloud.dialogflow.v2beta1.HumanAgen" - + "tAssistantConfig.SuggestionFeatureConfig\022\"\n" - + "\032group_suggestion_responses\030\003 \001(\010\022?\n\n" - + "generators\030\004 \003(\tB+\340A\001\372A%\n" - + "#dialogflow.googleapis.com/Generator\0228\n" - + "+disable_high_latency_features_sync_delivery\030\005 \001(\010B\003\340A\001\022.\n" - + "!skip_empty_event_based_suggestion\030\006 \001(\010B\003\340A\001\022-\n" - + " use_unredacted_conversation_data\030\010 \001(\010B\003\340A\001\022#\n" - + "\026enable_async_tool_call\030\t \001(\010B\003\340A\001\032\267\r\n" - + "\025SuggestionQueryConfig\022\220\001\n" - + "\033knowledge_base_query_source\030\001 \001(\0132i.go" + + "oogle/protobuf/duration.proto\032\033google/pr" + + "otobuf/empty.proto\032 google/protobuf/fiel" + + "d_mask.proto\032\037google/protobuf/timestamp." + + "proto\"\354\n\n\023ConversationProfile\022\014\n\004name\030\001 " + + "\001(\t\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\0224\n\013create" + + "_time\030\013 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\0224\n\013update_time\030\014 \001(\0132\032.google.proto" + + "buf.TimestampB\003\340A\003\022\037\n\022use_bidi_streaming" + + "\030\027 \001(\010B\003\340A\001\022U\n\026automated_agent_config\030\003 " + + "\001(\01325.google.cloud.dialogflow.v2beta1.Au" + + "tomatedAgentConfig\022`\n\034human_agent_assist" + + "ant_config\030\004 \001(\0132:.google.cloud.dialogfl" + + "ow.v2beta1.HumanAgentAssistantConfig\022\\\n\032" + + "human_agent_handoff_config\030\005 \001(\01328.googl" + + "e.cloud.dialogflow.v2beta1.HumanAgentHan" + + "doffConfig\022P\n\023notification_config\030\006 \001(\0132" + + "3.google.cloud.dialogflow.v2beta1.Notifi" + + "cationConfig\022F\n\016logging_config\030\007 \001(\0132..g" + + "oogle.cloud.dialogflow.v2beta1.LoggingCo" + + "nfig\022b\n%new_message_event_notification_c" + + "onfig\030\010 \001(\01323.google.cloud.dialogflow.v2" + + "beta1.NotificationConfig\022l\n*new_recognit" + + "ion_result_notification_config\030\025 \001(\01323.g" + + "oogle.cloud.dialogflow.v2beta1.Notificat" + + "ionConfigB\003\340A\001\022G\n\nstt_config\030\t \001(\01323.goo" + + "gle.cloud.dialogflow.v2beta1.SpeechToTex" + + "tConfig\022\025\n\rlanguage_code\030\n \001(\t\022C\n\nsip_co" + + "nfig\030\020 \001(\0132*.google.cloud.dialogflow.v2b" + + "eta1.SipConfigB\003\340A\001\022\021\n\ttime_zone\030\016 \001(\t\022L" + + "\n\021security_settings\030\r \001(\tB1\372A.\n,dialogfl" + + "ow.googleapis.com/CXSecuritySettings\022K\n\n" + + "tts_config\030\022 \001(\01327.google.cloud.dialogfl" + + "ow.v2beta1.SynthesizeSpeechConfig:\310\001\352A\304\001" + + "\n-dialogflow.googleapis.com/Conversation" + + "Profile\022>projects/{project}/conversation" + + "Profiles/{conversation_profile}\022Sproject" + + "s/{project}/locations/{location}/convers" + + "ationProfiles/{conversation_profile}\"\203\001\n" + + "\024AutomatedAgentConfig\0226\n\005agent\030\001 \001(\tB\'\340A" + + "\002\372A!\n\037dialogflow.googleapis.com/Agent\0223\n" + + "\013session_ttl\030\003 \001(\0132\031.google.protobuf.Dur" + + "ationB\003\340A\001\"\326\035\n\031HumanAgentAssistantConfig" + + "\022P\n\023notification_config\030\002 \001(\01323.google.c" + + "loud.dialogflow.v2beta1.NotificationConf" + + "ig\022r\n\035human_agent_suggestion_config\030\003 \001(" + + "\0132K.google.cloud.dialogflow.v2beta1.Huma" + + "nAgentAssistantConfig.SuggestionConfig\022o" + + "\n\032end_user_suggestion_config\030\004 \001(\0132K.goo" + + "gle.cloud.dialogflow.v2beta1.HumanAgentA" + + "ssistantConfig.SuggestionConfig\022q\n\027messa" + + "ge_analysis_config\030\005 \001(\0132P.google.cloud." + + "dialogflow.v2beta1.HumanAgentAssistantCo" + + "nfig.MessageAnalysisConfig\032I\n\031Suggestion" + + "TriggerSettings\022\025\n\rno_small_talk\030\001 \001(\010\022\025" + + "\n\ronly_end_user\030\002 \001(\010\032\235\007\n\027SuggestionFeat" + + "ureConfig\022N\n\022suggestion_feature\030\005 \001(\01322." + + "google.cloud.dialogflow.v2beta1.Suggesti" + + "onFeature\022%\n\035enable_event_based_suggesti" + + "on\030\003 \001(\010\022(\n\033disable_agent_query_logging\030" + + "\016 \001(\010B\003\340A\001\0223\n&enable_query_suggestion_wh" + + "en_no_answer\030\017 \001(\010B\003\340A\001\0220\n#enable_conver" + + "sation_augmented_query\030\020 \001(\010B\003\340A\001\022)\n\034ena" + + "ble_query_suggestion_only\030\021 \001(\010B\003\340A\001\022\'\n\032" + + "enable_response_debug_info\030\022 \001(\010B\003\340A\001\022G\n" + + "\014rai_settings\030\023 \001(\0132,.google.cloud.dialo" + + "gflow.v2beta1.RaiSettingsB\003\340A\001\022T\n\030sugges" + + "tion_trigger_event\030\024 \001(\0162-.google.cloud." + + "dialogflow.v2beta1.TriggerEventB\003\340A\001\022)\n\034" + + "disable_query_search_context\030\025 \001(\010B\003\340A\001\022" + + "y\n\033suggestion_trigger_settings\030\n \001(\0132T.g" + + "oogle.cloud.dialogflow.v2beta1.HumanAgen" + + "tAssistantConfig.SuggestionTriggerSettin" + + "gs\022f\n\014query_config\030\006 \001(\0132P.google.cloud." + + "dialogflow.v2beta1.HumanAgentAssistantCo" + + "nfig.SuggestionQueryConfig\022y\n\033conversati" + + "on_process_config\030\010 \001(\0132T.google.cloud.d" + + "ialogflow.v2beta1.HumanAgentAssistantCon" + + "fig.ConversationProcessConfig\032\242\003\n\020Sugges" + + "tionConfig\022k\n\017feature_configs\030\002 \003(\0132R.go" + "ogle.cloud.dialogflow.v2beta1.HumanAgent" - + "AssistantConfig.SuggestionQueryConfig.KnowledgeBaseQuerySourceH\000\022\205\001\n" - + "\025document_query_source\030\002 \001(\0132d.google.cloud.dialogfl" - + "ow.v2beta1.HumanAgentAssistantConfig.Sug" - + "gestionQueryConfig.DocumentQuerySourceH\000\022\211\001\n" - + "\027dialogflow_query_source\030\003 \001(\0132f.goo" + + "AssistantConfig.SuggestionFeatureConfig\022" + + "\"\n\032group_suggestion_responses\030\003 \001(\010\022?\n\ng" + + "enerators\030\004 \003(\tB+\340A\001\372A%\n#dialogflow.goog" + + "leapis.com/Generator\0228\n+disable_high_lat" + + "ency_features_sync_delivery\030\005 \001(\010B\003\340A\001\022." + + "\n!skip_empty_event_based_suggestion\030\006 \001(" + + "\010B\003\340A\001\022-\n use_unredacted_conversation_da" + + "ta\030\010 \001(\010B\003\340A\001\022#\n\026enable_async_tool_call\030" + + "\t \001(\010B\003\340A\001\032\267\r\n\025SuggestionQueryConfig\022\220\001\n" + + "\033knowledge_base_query_source\030\001 \001(\0132i.goo" + "gle.cloud.dialogflow.v2beta1.HumanAgentA" - + "ssistantConfig.SuggestionQueryConfig.DialogflowQuerySourceH\000\022\023\n" - + "\013max_results\030\004 \001(\005\022\034\n" - + "\024confidence_threshold\030\005 \001(\002\022\207\001\n" - + "\027context_filter_settings\030\007 \001(\0132f.google.cloud" - + ".dialogflow.v2beta1.HumanAgentAssistantC" - + "onfig.SuggestionQueryConfig.ContextFilterSettings\022p\n" - + "\010sections\030\010 \001(\0132Y.google.cloud.dialogflow.v2beta1.HumanAgentAssistan" - + "tConfig.SuggestionQueryConfig.SectionsB\003\340A\001\022\031\n" - + "\014context_size\030\t \001(\005B\003\340A\001\032d\n" - + "\030KnowledgeBaseQuerySource\022H\n" - + "\017knowledge_bases\030\001 \003(\tB/\340A\002\372A)\n" - + "\'dialogflow.googleapis.com/KnowledgeBase\032T\n" - + "\023DocumentQuerySource\022=\n" - + "\tdocuments\030\001 \003(\tB*\340A\002\372A$\n" - + "\"dialogflow.googleapis.com/Document\032\276\002\n" - + "\025DialogflowQuerySource\0226\n" - + "\005agent\030\001 \001(\tB\'\340A\002\372A!\n" - + "\037dialogflow.googleapis.com/Agent\022\234\001\n" - + "\027human_agent_side_config\030\003 \001(\0132{.google.cloud.dialogflow" - + ".v2beta1.HumanAgentAssistantConfig.Sugge" - + "stionQueryConfig.DialogflowQuerySource.HumanAgentSideConfig\032N\n" - + "\024HumanAgentSideConfig\0226\n" - + "\005agent\030\001 \001(\tB\'\340A\001\372A!\n" - + "\037dialogflow.googleapis.com/Agent\032v\n" - + "\025ContextFilterSettings\022\035\n" - + "\025drop_handoff_messages\030\001 \001(\010\022#\n" - + "\033drop_virtual_agent_messages\030\002 \001(\010\022\031\n" - + "\021drop_ivr_messages\030\003 \001(\010\032\247\002\n" - + "\010Sections\022|\n\r" - + "section_types\030\001 \003(\0162e.google.cloud.dialogflo" + + "ssistantConfig.SuggestionQueryConfig.Kno" + + "wledgeBaseQuerySourceH\000\022\205\001\n\025document_que" + + "ry_source\030\002 \001(\0132d.google.cloud.dialogflo" + "w.v2beta1.HumanAgentAssistantConfig.Sugg" - + "estionQueryConfig.Sections.SectionType\"\234\001\n" - + "\013SectionType\022\034\n" - + "\030SECTION_TYPE_UNSPECIFIED\020\000\022\r\n" - + "\tSITUATION\020\001\022\n\n" - + "\006ACTION\020\002\022\016\n\n" - + "RESOLUTION\020\003\022\033\n" - + "\027REASON_FOR_CANCELLATION\020\004\022\031\n" - + "\025CUSTOMER_SATISFACTION\020\005\022\014\n" - + "\010ENTITIES\020\006B\016\n" - + "\014query_source\032z\n" - + "\027ConversationModelConfig\022?\n" - + "\005model\030\001 \001(\tB0\372A-\n" - + "+dialogflow.googleapis.com/ConversationModel\022\036\n" - + "\026baseline_model_version\030\010 \001(\t\032;\n" - + "\031ConversationProcessConfig\022\036\n" - + "\026recent_sentences_count\030\002 \001(\005\032\207\001\n" - + "\025MessageAnalysisConfig\022 \n" - + "\030enable_entity_extraction\030\002 \001(\010\022!\n" - + "\031enable_sentiment_analysis\030\003 \001(\010\022)\n" - + "\034enable_sentiment_analysis_v3\030\005 \001(\010B\003\340A\001\"\316\003\n" - + "\027HumanAgentHandoffConfig\022g\n" - + "\022live_person_config\030\001 \001(\0132I.googl" - + "e.cloud.dialogflow.v2beta1.HumanAgentHandoffConfig.LivePersonConfigH\000\022z\n" - + "\034salesforce_live_agent_config\030\002 \001(\0132R.google.clo" - + "ud.dialogflow.v2beta1.HumanAgentHandoffConfig.SalesforceLiveAgentConfigH\000\032/\n" - + "\020LivePersonConfig\022\033\n" - + "\016account_number\030\001 \001(\tB\003\340A\002\032\213\001\n" - + "\031SalesforceLiveAgentConfig\022\034\n" - + "\017organization_id\030\001 \001(\tB\003\340A\002\022\032\n\r" - + "deployment_id\030\002 \001(\tB\003\340A\002\022\026\n" - + "\tbutton_id\030\003 \001(\tB\003\340A\002\022\034\n" - + "\017endpoint_domain\030\004 \001(\tB\003\340A\002B\017\n\r" - + "agent_service\"\304\001\n" - + "\022NotificationConfig\022\r\n" - + "\005topic\030\001 \001(\t\022Y\n" - + "\016message_format\030\002 \001(\0162A.google.cloud.d" - + "ialogflow.v2beta1.NotificationConfig.MessageFormat\"D\n\r" - + "MessageFormat\022\036\n" - + "\032MESSAGE_FORMAT_UNSPECIFIED\020\000\022\t\n" - + "\005PROTO\020\001\022\010\n" - + "\004JSON\020\002\"3\n\r" - + "LoggingConfig\022\"\n" - + "\032enable_stackdriver_logging\030\003 \001(\010\"\217\001\n" - + "\037ListConversationProfilesRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-dialo" - + "gflow.googleapis.com/ConversationProfile\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\220\001\n" - + " ListConversationProfilesResponse\022S\n" - + "\025conversation_profiles\030\001 \003(\01324.google.clo" - + "ud.dialogflow.v2beta1.ConversationProfile\022\027\n" - + "\017next_page_token\030\002 \001(\t\"d\n" - + "\035GetConversationProfileRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-dialogflow.googleapis.com/ConversationProfile\"\302\001\n" - + " CreateConversationProfileRequest\022E\n" - + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-dialogflow.googleapis.com/ConversationProfile\022W\n" - + "\024conversation_profile\030\002 \001(\01324.google.clou" - + "d.dialogflow.v2beta1.ConversationProfileB\003\340A\002\"\261\001\n" - + " UpdateConversationProfileRequest\022W\n" - + "\024conversation_profile\030\001 \001(\01324.googl" - + "e.cloud.dialogflow.v2beta1.ConversationProfileB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"g\n" - + " DeleteConversationProfileRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-dialogflow.googleapis.com/ConversationProfile\"\224\002\n" - + "!SetSuggestionFeatureConfigRequest\022!\n" - + "\024conversation_profile\030\001 \001(\tB\003\340A\002\022P\n" - + "\020participant_role\030\002 \001(\01621.google.c" - + "loud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022z\n" - + "\031suggestion_feature_config\030\003 \001(\013" - + "2R.google.cloud.dialogflow.v2beta1.Human" - + "AgentAssistantConfig.SuggestionFeatureConfigB\003\340A\002\"\371\001\n" - + "#ClearSuggestionFeatureConfigRequest\022!\n" - + "\024conversation_profile\030\001 \001(\tB\003\340A\002\022P\n" - + "\020participant_role\030\002 \001(\01621.google." - + "cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" - + "\027suggestion_feature_type\030\003 \001(\0162" - + "7.google.cloud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\"\255\002\n" - + "+SetSuggestionFeatureConfigOperationMetadata\022\034\n" - + "\024conversation_profile\030\001 \001(\t\022P\n" - + "\020participant_role\030\002" - + " \001(\01621.google.cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" - + "\027suggestion_feature_type\030\003" - + " \001(\01627.google.cloud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\022/\n" - + "\013create_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\257\002\n" - + "-ClearSuggestionFeatureConfigOperationMetadata\022\034\n" - + "\024conversation_profile\030\001 \001(\t\022P\n" - + "\020participant_role\030\002 \001(\01621.google" - + ".cloud.dialogflow.v2beta1.Participant.RoleB\003\340A\002\022]\n" - + "\027suggestion_feature_type\030\003 \001(\016" - + "27.google.cloud.dialogflow.v2beta1.SuggestionFeature.TypeB\003\340A\002\022/\n" - + "\013create_time\030\004 \001(\0132\032.google.protobuf.Timestamp2\263\025\n" - + "\024ConversationProfiles\022\245\002\n" - + "\030ListConversationProfiles\022@.google.cloud.dialogflow.v2beta1." - + "ListConversationProfilesRequest\032A.google.cloud.dialogflow.v2beta1.ListConversati" - + "onProfilesResponse\"\203\001\332A\006parent\202\323\344\223\002t\0221/v" - + "2beta1/{parent=projects/*}/conversationP" - + "rofilesZ?\022=/v2beta1/{parent=projects/*/locations/*}/conversationProfiles\022\222\002\n" - + "\026GetConversationProfile\022>.google.cloud.dialo" - + "gflow.v2beta1.GetConversationProfileRequest\0324.google.cloud.dialogflow.v2beta1.Co" - + "nversationProfile\"\201\001\332A\004name\202\323\344\223\002t\0221/v2be" - + "ta1/{name=projects/*/conversationProfile" - + "s/*}Z?\022=/v2beta1/{name=projects/*/locations/*/conversationProfiles/*}\022\334\002\n" - + "\031CreateConversationProfile\022A.google.cloud.dialo" - + "gflow.v2beta1.CreateConversationProfileRequest\0324.google.cloud.dialogflow.v2beta1" - + ".ConversationProfile\"\305\001\332A\033parent,convers" - + "ation_profile\202\323\344\223\002\240\001\"1/v2beta1/{parent=p" - + "rojects/*}/conversationProfiles:\024conversation_profileZU\"=/v2beta1/{parent=projec" - + "ts/*/locations/*}/conversationProfiles:\024conversation_profile\022\213\003\n" - + "\031UpdateConversationProfile\022A.google.cloud.dialogflow.v2b" - + "eta1.UpdateConversationProfileRequest\0324." - + "google.cloud.dialogflow.v2beta1.ConversationProfile\"\364\001\332A" - + " conversation_profile,update_mask\202\323\344\223\002\312\0012F/v2beta1/{conversation" - + "_profile.name=projects/*/conversationProfiles/*}:\024conversation_profileZj2R/v2bet" - + "a1/{conversation_profile.name=projects/*" - + "/locations/*/conversationProfiles/*}:\024conversation_profile\022\372\001\n" - + "\031DeleteConversationProfile\022A.google.cloud.dialogflow.v2bet" - + "a1.DeleteConversationProfileRequest\032\026.go" - + "ogle.protobuf.Empty\"\201\001\332A\004name\202\323\344\223\002t*1/v2" - + "beta1/{name=projects/*/conversationProfi" - + "les/*}Z?*=/v2beta1/{name=projects/*/locations/*/conversationProfiles/*}\022\367\003\n" - + "\032SetSuggestionFeatureConfig\022B.google.cloud.di" - + "alogflow.v2beta1.SetSuggestionFeatureCon" - + "figRequest\032\035.google.longrunning.Operation\"\365\002\312AB\n" - + "\023ConversationProfile\022+SetSuggestionFeatureConfigOperationMetadata\332A\024conv" - + "ersation_profile\332A?conversation_profile,participant_role,suggestion_feature_conf" - + "ig\202\323\344\223\002\320\001\"\\/v2beta1/{conversation_profil" - + "e=projects/*/conversationProfiles/*}:setSuggestionFeatureConfig:\001*Zm\"h/v2beta1/{" - + "conversation_profile=projects/*/location" - + "s/*/conversationProfiles/*}:setSuggestionFeatureConfig:\001*\022\377\003\n" - + "\034ClearSuggestionFeatureConfig\022D.google.cloud.dialogflow.v2b" - + "eta1.ClearSuggestionFeatureConfigRequest\032\035.google.longrunning.Operation\"\371\002\312AD\n" - + "\023ConversationProfile\022-ClearSuggestionFeatu" - + "reConfigOperationMetadata\332A\024conversation" - + "_profile\332A=conversation_profile,particip" - + "ant_role,suggestion_feature_type\202\323\344\223\002\324\001\"" - + "^/v2beta1/{conversation_profile=projects/*/conversationProfiles/*}:clearSuggesti" - + "onFeatureConfig:\001*Zo\"j/v2beta1/{conversation_profile=projects/*/locations/*/conv" - + "ersationProfiles/*}:clearSuggestionFeatu" - + "reConfig:\001*\032x\312A\031dialogflow.googleapis.co" - + "m\322AYhttps://www.googleapis.com/auth/clou" - + "d-platform,https://www.googleapis.com/auth/dialogflowB\255\003\n" - + "#com.google.cloud.dialogflow.v2beta1B\030ConversationProfileProtoP" - + "\001ZCcloud.google.com/go/dialogflow/apiv2b" - + "eta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1\352A|\n" - + ",dialogflow.googleapis.com/CXSecuritySettings\022L" - + "projects/{project}/locations/{location}/securitySettings/{security_settings}\352A~\n" - + "+dialogflow.googleapis.com/ConversationModel\022Oprojects/{project}/locations/{loca" - + "tion}/conversationModels/{conversation_model}b\006proto3" + + "estionQueryConfig.DocumentQuerySourceH\000\022" + + "\211\001\n\027dialogflow_query_source\030\003 \001(\0132f.goog" + + "le.cloud.dialogflow.v2beta1.HumanAgentAs" + + "sistantConfig.SuggestionQueryConfig.Dial" + + "ogflowQuerySourceH\000\022\023\n\013max_results\030\004 \001(\005" + + "\022\034\n\024confidence_threshold\030\005 \001(\002\022\207\001\n\027conte" + + "xt_filter_settings\030\007 \001(\0132f.google.cloud." + + "dialogflow.v2beta1.HumanAgentAssistantCo" + + "nfig.SuggestionQueryConfig.ContextFilter" + + "Settings\022p\n\010sections\030\010 \001(\0132Y.google.clou" + + "d.dialogflow.v2beta1.HumanAgentAssistant" + + "Config.SuggestionQueryConfig.SectionsB\003\340" + + "A\001\022\031\n\014context_size\030\t \001(\005B\003\340A\001\032d\n\030Knowled" + + "geBaseQuerySource\022H\n\017knowledge_bases\030\001 \003" + + "(\tB/\340A\002\372A)\n\'dialogflow.googleapis.com/Kn" + + "owledgeBase\032T\n\023DocumentQuerySource\022=\n\tdo" + + "cuments\030\001 \003(\tB*\340A\002\372A$\n\"dialogflow.google" + + "apis.com/Document\032\276\002\n\025DialogflowQuerySou" + + "rce\0226\n\005agent\030\001 \001(\tB\'\340A\002\372A!\n\037dialogflow.g" + + "oogleapis.com/Agent\022\234\001\n\027human_agent_side" + + "_config\030\003 \001(\0132{.google.cloud.dialogflow." + + "v2beta1.HumanAgentAssistantConfig.Sugges" + + "tionQueryConfig.DialogflowQuerySource.Hu" + + "manAgentSideConfig\032N\n\024HumanAgentSideConf" + + "ig\0226\n\005agent\030\001 \001(\tB\'\340A\001\372A!\n\037dialogflow.go" + + "ogleapis.com/Agent\032v\n\025ContextFilterSetti" + + "ngs\022\035\n\025drop_handoff_messages\030\001 \001(\010\022#\n\033dr" + + "op_virtual_agent_messages\030\002 \001(\010\022\031\n\021drop_" + + "ivr_messages\030\003 \001(\010\032\247\002\n\010Sections\022|\n\rsecti" + + "on_types\030\001 \003(\0162e.google.cloud.dialogflow" + + ".v2beta1.HumanAgentAssistantConfig.Sugge" + + "stionQueryConfig.Sections.SectionType\"\234\001" + + "\n\013SectionType\022\034\n\030SECTION_TYPE_UNSPECIFIE" + + "D\020\000\022\r\n\tSITUATION\020\001\022\n\n\006ACTION\020\002\022\016\n\nRESOLU" + + "TION\020\003\022\033\n\027REASON_FOR_CANCELLATION\020\004\022\031\n\025C" + + "USTOMER_SATISFACTION\020\005\022\014\n\010ENTITIES\020\006B\016\n\014" + + "query_source\032;\n\031ConversationProcessConfi" + + "g\022\036\n\026recent_sentences_count\030\002 \001(\005\032\207\001\n\025Me" + + "ssageAnalysisConfig\022 \n\030enable_entity_ext" + + "raction\030\002 \001(\010\022!\n\031enable_sentiment_analys" + + "is\030\003 \001(\010\022)\n\034enable_sentiment_analysis_v3" + + "\030\005 \001(\010B\003\340A\001\"\316\003\n\027HumanAgentHandoffConfig\022" + + "g\n\022live_person_config\030\001 \001(\0132I.google.clo" + + "ud.dialogflow.v2beta1.HumanAgentHandoffC" + + "onfig.LivePersonConfigH\000\022z\n\034salesforce_l" + + "ive_agent_config\030\002 \001(\0132R.google.cloud.di" + + "alogflow.v2beta1.HumanAgentHandoffConfig" + + ".SalesforceLiveAgentConfigH\000\032/\n\020LivePers" + + "onConfig\022\033\n\016account_number\030\001 \001(\tB\003\340A\002\032\213\001" + + "\n\031SalesforceLiveAgentConfig\022\034\n\017organizat" + + "ion_id\030\001 \001(\tB\003\340A\002\022\032\n\rdeployment_id\030\002 \001(\t" + + "B\003\340A\002\022\026\n\tbutton_id\030\003 \001(\tB\003\340A\002\022\034\n\017endpoin" + + "t_domain\030\004 \001(\tB\003\340A\002B\017\n\ragent_service\"\304\001\n" + + "\022NotificationConfig\022\r\n\005topic\030\001 \001(\t\022Y\n\016me" + + "ssage_format\030\002 \001(\0162A.google.cloud.dialog" + + "flow.v2beta1.NotificationConfig.MessageF" + + "ormat\"D\n\rMessageFormat\022\036\n\032MESSAGE_FORMAT" + + "_UNSPECIFIED\020\000\022\t\n\005PROTO\020\001\022\010\n\004JSON\020\002\"3\n\rL" + + "oggingConfig\022\"\n\032enable_stackdriver_loggi" + + "ng\030\003 \001(\010\"\250\002\n\tSipConfig\022&\n\036create_convers" + + "ation_on_the_fly\030\001 \001(\010\022\026\n\016inactive_start" + + "\030\003 \001(\010\022?\n\034max_audio_recording_duration\030\004" + + " \001(\0132\031.google.protobuf.Duration\022\'\n\037allow" + + "_virtual_agent_interaction\030\005 \001(\010\022!\n\031keep" + + "_conversation_running\030\006 \001(\010\022%\n\035copy_inbo" + + "und_call_leg_headers\030\010 \003(\t\022\'\n\037ignore_rei" + + "nvite_media_direction\030\t \001(\010\"\217\001\n\037ListConv" + + "ersationProfilesRequest\022E\n\006parent\030\001 \001(\tB" + + "5\340A\002\372A/\022-dialogflow.googleapis.com/Conve" + + "rsationProfile\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" + + "e_token\030\003 \001(\t\"\220\001\n ListConversationProfil" + + "esResponse\022S\n\025conversation_profiles\030\001 \003(" + + "\01324.google.cloud.dialogflow.v2beta1.Conv" + + "ersationProfile\022\027\n\017next_page_token\030\002 \001(\t" + + "\"d\n\035GetConversationProfileRequest\022C\n\004nam" + + "e\030\001 \001(\tB5\340A\002\372A/\n-dialogflow.googleapis.c" + + "om/ConversationProfile\"\302\001\n CreateConvers" + + "ationProfileRequest\022E\n\006parent\030\001 \001(\tB5\340A\002" + + "\372A/\022-dialogflow.googleapis.com/Conversat" + + "ionProfile\022W\n\024conversation_profile\030\002 \001(\013" + + "24.google.cloud.dialogflow.v2beta1.Conve" + + "rsationProfileB\003\340A\002\"\261\001\n UpdateConversati" + + "onProfileRequest\022W\n\024conversation_profile" + + "\030\001 \001(\01324.google.cloud.dialogflow.v2beta1" + + ".ConversationProfileB\003\340A\002\0224\n\013update_mask" + + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"" + + "g\n DeleteConversationProfileRequest\022C\n\004n" + + "ame\030\001 \001(\tB5\340A\002\372A/\n-dialogflow.googleapis" + + ".com/ConversationProfile\"\224\002\n!SetSuggesti" + + "onFeatureConfigRequest\022!\n\024conversation_p" + + "rofile\030\001 \001(\tB\003\340A\002\022P\n\020participant_role\030\002 " + + "\001(\01621.google.cloud.dialogflow.v2beta1.Pa" + + "rticipant.RoleB\003\340A\002\022z\n\031suggestion_featur" + + "e_config\030\003 \001(\0132R.google.cloud.dialogflow" + + ".v2beta1.HumanAgentAssistantConfig.Sugge" + + "stionFeatureConfigB\003\340A\002\"\371\001\n#ClearSuggest" + + "ionFeatureConfigRequest\022!\n\024conversation_" + + "profile\030\001 \001(\tB\003\340A\002\022P\n\020participant_role\030\002" + + " \001(\01621.google.cloud.dialogflow.v2beta1.P" + + "articipant.RoleB\003\340A\002\022]\n\027suggestion_featu" + + "re_type\030\003 \001(\01627.google.cloud.dialogflow." + + "v2beta1.SuggestionFeature.TypeB\003\340A\002\"\255\002\n+" + + "SetSuggestionFeatureConfigOperationMetad" + + "ata\022\034\n\024conversation_profile\030\001 \001(\t\022P\n\020par" + + "ticipant_role\030\002 \001(\01621.google.cloud.dialo" + + "gflow.v2beta1.Participant.RoleB\003\340A\002\022]\n\027s" + + "uggestion_feature_type\030\003 \001(\01627.google.cl" + + "oud.dialogflow.v2beta1.SuggestionFeature" + + ".TypeB\003\340A\002\022/\n\013create_time\030\004 \001(\0132\032.google" + + ".protobuf.Timestamp\"\257\002\n-ClearSuggestionF" + + "eatureConfigOperationMetadata\022\034\n\024convers" + + "ation_profile\030\001 \001(\t\022P\n\020participant_role\030" + + "\002 \001(\01621.google.cloud.dialogflow.v2beta1." + + "Participant.RoleB\003\340A\002\022]\n\027suggestion_feat" + + "ure_type\030\003 \001(\01627.google.cloud.dialogflow" + + ".v2beta1.SuggestionFeature.TypeB\003\340A\002\022/\n\013" + + "create_time\030\004 \001(\0132\032.google.protobuf.Time" + + "stamp2\263\025\n\024ConversationProfiles\022\245\002\n\030ListC" + + "onversationProfiles\022@.google.cloud.dialo" + + "gflow.v2beta1.ListConversationProfilesRe" + + "quest\032A.google.cloud.dialogflow.v2beta1." + + "ListConversationProfilesResponse\"\203\001\332A\006pa" + + "rent\202\323\344\223\002t\0221/v2beta1/{parent=projects/*}" + + "/conversationProfilesZ?\022=/v2beta1/{paren" + + "t=projects/*/locations/*}/conversationPr" + + "ofiles\022\222\002\n\026GetConversationProfile\022>.goog" + + "le.cloud.dialogflow.v2beta1.GetConversat" + + "ionProfileRequest\0324.google.cloud.dialogf" + + "low.v2beta1.ConversationProfile\"\201\001\332A\004nam" + + "e\202\323\344\223\002t\0221/v2beta1/{name=projects/*/conve" + + "rsationProfiles/*}Z?\022=/v2beta1/{name=pro" + + "jects/*/locations/*/conversationProfiles" + + "/*}\022\334\002\n\031CreateConversationProfile\022A.goog" + + "le.cloud.dialogflow.v2beta1.CreateConver" + + "sationProfileRequest\0324.google.cloud.dial" + + "ogflow.v2beta1.ConversationProfile\"\305\001\332A\033" + + "parent,conversation_profile\202\323\344\223\002\240\001\"1/v2b" + + "eta1/{parent=projects/*}/conversationPro" + + "files:\024conversation_profileZU\"=/v2beta1/" + + "{parent=projects/*/locations/*}/conversa" + + "tionProfiles:\024conversation_profile\022\213\003\n\031U" + + "pdateConversationProfile\022A.google.cloud." + + "dialogflow.v2beta1.UpdateConversationPro" + + "fileRequest\0324.google.cloud.dialogflow.v2" + + "beta1.ConversationProfile\"\364\001\332A conversat" + + "ion_profile,update_mask\202\323\344\223\002\312\0012F/v2beta1" + + "/{conversation_profile.name=projects/*/c" + + "onversationProfiles/*}:\024conversation_pro" + + "fileZj2R/v2beta1/{conversation_profile.n" + + "ame=projects/*/locations/*/conversationP" + + "rofiles/*}:\024conversation_profile\022\372\001\n\031Del" + + "eteConversationProfile\022A.google.cloud.di" + + "alogflow.v2beta1.DeleteConversationProfi" + + "leRequest\032\026.google.protobuf.Empty\"\201\001\332A\004n" + + "ame\202\323\344\223\002t*1/v2beta1/{name=projects/*/con" + + "versationProfiles/*}Z?*=/v2beta1/{name=p" + + "rojects/*/locations/*/conversationProfil" + + "es/*}\022\367\003\n\032SetSuggestionFeatureConfig\022B.g" + + "oogle.cloud.dialogflow.v2beta1.SetSugges" + + "tionFeatureConfigRequest\032\035.google.longru" + + "nning.Operation\"\365\002\312AB\n\023ConversationProfi" + + "le\022+SetSuggestionFeatureConfigOperationM" + + "etadata\332A\024conversation_profile\332A?convers" + + "ation_profile,participant_role,suggestio" + + "n_feature_config\202\323\344\223\002\320\001\"\\/v2beta1/{conve" + + "rsation_profile=projects/*/conversationP" + + "rofiles/*}:setSuggestionFeatureConfig:\001*" + + "Zm\"h/v2beta1/{conversation_profile=proje" + + "cts/*/locations/*/conversationProfiles/*" + + "}:setSuggestionFeatureConfig:\001*\022\377\003\n\034Clea" + + "rSuggestionFeatureConfig\022D.google.cloud." + + "dialogflow.v2beta1.ClearSuggestionFeatur" + + "eConfigRequest\032\035.google.longrunning.Oper" + + "ation\"\371\002\312AD\n\023ConversationProfile\022-ClearS" + + "uggestionFeatureConfigOperationMetadata\332" + + "A\024conversation_profile\332A=conversation_pr" + + "ofile,participant_role,suggestion_featur" + + "e_type\202\323\344\223\002\324\001\"^/v2beta1/{conversation_pr" + + "ofile=projects/*/conversationProfiles/*}" + + ":clearSuggestionFeatureConfig:\001*Zo\"j/v2b" + + "eta1/{conversation_profile=projects/*/lo" + + "cations/*/conversationProfiles/*}:clearS" + + "uggestionFeatureConfig:\001*\032x\312A\031dialogflow" + + ".googleapis.com\322AYhttps://www.googleapis" + + ".com/auth/cloud-platform,https://www.goo" + + "gleapis.com/auth/dialogflowB\254\002\n#com.goog" + + "le.cloud.dialogflow.v2beta1B\030Conversatio" + + "nProfileProtoP\001ZCcloud.google.com/go/dia" + + "logflow/apiv2beta1/dialogflowpb;dialogfl" + + "owpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Be" + + "ta1\352A|\n,dialogflow.googleapis.com/CXSecu" + + "ritySettings\022Lprojects/{project}/locatio" + + "ns/{location}/securitySettings/{security" + + "_settings}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -493,6 +510,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NewRecognitionResultNotificationConfig", "SttConfig", "LanguageCode", + "SipConfig", "TimeZone", "SecuritySettings", "TtsConfig", @@ -540,9 +558,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableQuerySuggestionOnly", "EnableResponseDebugInfo", "RaiSettings", + "SuggestionTriggerEvent", + "DisableQuerySearchContext", "SuggestionTriggerSettings", "QueryConfig", - "ConversationModelConfig", "ConversationProcessConfig", }); internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_SuggestionConfig_descriptor = @@ -631,18 +650,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "SectionTypes", }); - internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_descriptor = - internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_descriptor - .getNestedType(4); - internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_descriptor, - new java.lang.String[] { - "Model", "BaselineModelVersion", - }); internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationProcessConfig_descriptor = internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_descriptor - .getNestedType(5); + .getNestedType(4); internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationProcessConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationProcessConfig_descriptor, @@ -651,7 +661,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { }); internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_MessageAnalysisConfig_descriptor = internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_descriptor - .getNestedType(6); + .getNestedType(5); internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_MessageAnalysisConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_MessageAnalysisConfig_descriptor, @@ -700,8 +710,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "EnableStackdriverLogging", }); - internal_static_google_cloud_dialogflow_v2beta1_ListConversationProfilesRequest_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_SipConfig_descriptor = getDescriptor().getMessageType(6); + internal_static_google_cloud_dialogflow_v2beta1_SipConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_SipConfig_descriptor, + new java.lang.String[] { + "CreateConversationOnTheFly", + "InactiveStart", + "MaxAudioRecordingDuration", + "AllowVirtualAgentInteraction", + "KeepConversationRunning", + "CopyInboundCallLegHeaders", + "IgnoreReinviteMediaDirection", + }); + internal_static_google_cloud_dialogflow_v2beta1_ListConversationProfilesRequest_descriptor = + getDescriptor().getMessageType(7); internal_static_google_cloud_dialogflow_v2beta1_ListConversationProfilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_ListConversationProfilesRequest_descriptor, @@ -709,7 +733,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_dialogflow_v2beta1_ListConversationProfilesResponse_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(8); internal_static_google_cloud_dialogflow_v2beta1_ListConversationProfilesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_ListConversationProfilesResponse_descriptor, @@ -717,7 +741,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationProfiles", "NextPageToken", }); internal_static_google_cloud_dialogflow_v2beta1_GetConversationProfileRequest_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(9); internal_static_google_cloud_dialogflow_v2beta1_GetConversationProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_GetConversationProfileRequest_descriptor, @@ -725,7 +749,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dialogflow_v2beta1_CreateConversationProfileRequest_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(10); internal_static_google_cloud_dialogflow_v2beta1_CreateConversationProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_CreateConversationProfileRequest_descriptor, @@ -733,7 +757,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ConversationProfile", }); internal_static_google_cloud_dialogflow_v2beta1_UpdateConversationProfileRequest_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(11); internal_static_google_cloud_dialogflow_v2beta1_UpdateConversationProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_UpdateConversationProfileRequest_descriptor, @@ -741,7 +765,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationProfile", "UpdateMask", }); internal_static_google_cloud_dialogflow_v2beta1_DeleteConversationProfileRequest_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(12); internal_static_google_cloud_dialogflow_v2beta1_DeleteConversationProfileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_DeleteConversationProfileRequest_descriptor, @@ -749,7 +773,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dialogflow_v2beta1_SetSuggestionFeatureConfigRequest_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(13); internal_static_google_cloud_dialogflow_v2beta1_SetSuggestionFeatureConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SetSuggestionFeatureConfigRequest_descriptor, @@ -757,7 +781,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationProfile", "ParticipantRole", "SuggestionFeatureConfig", }); internal_static_google_cloud_dialogflow_v2beta1_ClearSuggestionFeatureConfigRequest_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(14); internal_static_google_cloud_dialogflow_v2beta1_ClearSuggestionFeatureConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_ClearSuggestionFeatureConfigRequest_descriptor, @@ -765,7 +789,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationProfile", "ParticipantRole", "SuggestionFeatureType", }); internal_static_google_cloud_dialogflow_v2beta1_SetSuggestionFeatureConfigOperationMetadata_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(15); internal_static_google_cloud_dialogflow_v2beta1_SetSuggestionFeatureConfigOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SetSuggestionFeatureConfigOperationMetadata_descriptor, @@ -773,7 +797,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationProfile", "ParticipantRole", "SuggestionFeatureType", "CreateTime", }); internal_static_google_cloud_dialogflow_v2beta1_ClearSuggestionFeatureConfigOperationMetadata_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(16); internal_static_google_cloud_dialogflow_v2beta1_ClearSuggestionFeatureConfigOperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_ClearSuggestionFeatureConfigOperationMetadata_descriptor, diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java index 9c808c556ba9..8740fa7d8e4b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationProto.java @@ -576,7 +576,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "gle.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer\022\027\n" + "\017rewritten_query\030\003 \001(\t\022^\n" + "\033search_knowledge_debug_info\030\004 \001(\01329.googl" - + "e.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo\"\330\003\n" + + "e.cloud.dialogflow.v2beta1.SearchKnowledgeDebugInfo\"\361\003\n" + "\025SearchKnowledgeAnswer\022\016\n" + "\006answer\030\001 \001(\t\022V\n" + "\013answer_type\030\002 \001(\0162A.goo" @@ -590,105 +590,104 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005title\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\017\n" + "\007snippet\030\003 \001(\t\022)\n" - + "\010metadata\030\005 \001(\0132\027.google.protobuf.Struct\"N\n\n" + + "\010metadata\030\005 \001(\0132\027.google.protobuf.Struct\"g\n\n" + "AnswerType\022\033\n" + "\027ANSWER_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003FAQ\020\001\022\016\n\n" + "GENERATIVE\020\002\022\n\n" - + "\006INTENT\020\003\"\361\001\n" + + "\006INTENT\020\003\022\014\n" + + "\010PLAYBOOK\020\004\022\t\n" + + "\005EVENT\020\005\"\361\001\n" + "\032GenerateSuggestionsRequest\022D\n" + "\014conversation\030\001 \001(\tB.\340A\002\372A(\n" + "&dialogflow.googleapis.com/Conversation\022A\n" + "\016latest_message\030\002 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022J\n" - + "\016trigger_events\030\003 \003(\0162-" - + ".google.cloud.dialogflow.v2beta1.TriggerEventB\003\340A\0012\315\036\n\r" + + "\016trigger_events\030\003" + + " \003(\0162-.google.cloud.dialogflow.v2beta1.TriggerEventB\003\340A\0012\315\036\n\r" + "Conversations\022\241\002\n" - + "\022CreateConversation\022:.google.cloud.dialogflow.v2" - + "beta1.CreateConversationRequest\032-.google" - + ".cloud.dialogflow.v2beta1.Conversation\"\237" - + "\001\332A\023parent,conversation\202\323\344\223\002\202\001\"*/v2beta1" - + "/{parent=projects/*}/conversations:\014conversationZF\"6/v2beta1/{parent=projects/*/" - + "locations/*}/conversations:\014conversation\022\201\002\n" - + "\021ListConversations\0229.google.cloud.dialogflow.v2beta1.ListConversationsReques" - + "t\032:.google.cloud.dialogflow.v2beta1.List" - + "ConversationsResponse\"u\332A\006parent\202\323\344\223\002f\022*" - + "/v2beta1/{parent=projects/*}/conversatio" - + "nsZ8\0226/v2beta1/{parent=projects/*/locations/*}/conversations\022\356\001\n" - + "\017GetConversation\0227.google.cloud.dialogflow.v2beta1.GetCo" - + "nversationRequest\032-.google.cloud.dialogf" - + "low.v2beta1.Conversation\"s\332A\004name\202\323\344\223\002f\022" - + "*/v2beta1/{name=projects/*/conversations" - + "/*}Z8\0226/v2beta1/{name=projects/*/locations/*/conversations/*}\022\221\002\n" - + "\024CompleteConversation\022<.google.cloud.dialogflow.v2beta1" - + ".CompleteConversationRequest\032-.google.cl" - + "oud.dialogflow.v2beta1.Conversation\"\213\001\332A" - + "\004name\202\323\344\223\002~\"3/v2beta1/{name=projects/*/c" - + "onversations/*}:complete:\001*ZD\"?/v2beta1/" - + "{name=projects/*/locations/*/conversations/*}:complete:\001*\022\242\002\n" - + "\027IngestContextReferences\022?.google.cloud.dialogflow.v2beta1." - + "IngestContextReferencesRequest\032@.google.cloud.dialogflow.v2beta1.IngestContextRe" - + "ferencesResponse\"\203\001\332A\037conversation,conte" - + "xt_references\202\323\344\223\002[\"V/v2beta1/{conversat" - + "ion=projects/*/locations/*/conversations/*}:ingestContextReferences:\001*\022\306\002\n" - + "\023BatchCreateMessages\022;.google.cloud.dialogflow" - + ".v2beta1.BatchCreateMessagesRequest\032<.google.cloud.dialogflow.v2beta1.BatchCreat" - + "eMessagesResponse\"\263\001\332A\017parent,requests\202\323" - + "\344\223\002\232\001\"A/v2beta1/{parent=projects/*/conve" - + "rsations/*}/messages:batchCreate:\001*ZR\"M/v2beta1/{parent=projects/*/locations/*/c" - + "onversations/*}/messages:batchCreate:\001*\022\211\002\n" - + "\014ListMessages\0224.google.cloud.dialogflow.v2beta1.ListMessagesRequest\0325.google." - + "cloud.dialogflow.v2beta1.ListMessagesRes" - + "ponse\"\213\001\332A\006parent\202\323\344\223\002|\0225/v2beta1/{paren" - + "t=projects/*/conversations/*}/messagesZC" - + "\022A/v2beta1/{parent=projects/*/locations/*/conversations/*}/messages\022\210\003\n" - + "\032SuggestConversationSummary\022B.google.cloud.dialog" - + "flow.v2beta1.SuggestConversationSummaryRequest\032C.google.cloud.dialogflow.v2beta1" - + ".SuggestConversationSummaryResponse\"\340\001\332A" - + "\014conversation\202\323\344\223\002\312\001\"Y/v2beta1/{conversa" - + "tion=projects/*/conversations/*}/suggestions:suggestConversationSummary:\001*Zj\"e/v" - + "2beta1/{conversation=projects/*/location" - + "s/*/conversations/*}/suggestions:suggestConversationSummary:\001*\022\361\002\n" - + "\030GenerateStatelessSummary\022@.google.cloud.dialogflow.v2" - + "beta1.GenerateStatelessSummaryRequest\032A.google.cloud.dialogflow.v2beta1.Generate" - + "StatelessSummaryResponse\"\317\001\202\323\344\223\002\310\001\"X/v2b" - + "eta1/{stateless_conversation.parent=projects/*}/suggestions:generateStatelessSum" - + "mary:\001*Zi\"d/v2beta1/{stateless_conversat" - + "ion.parent=projects/*/locations/*}/suggestions:generateStatelessSummary:\001*\022\372\001\n" - + "\033GenerateStatelessSuggestion\022C.google.clou" - + "d.dialogflow.v2beta1.GenerateStatelessSuggestionRequest\032D.google.cloud.dialogflo" - + "w.v2beta1.GenerateStatelessSuggestionRes" - + "ponse\"P\202\323\344\223\002J\"E/v2beta1/{parent=projects" - + "/*/locations/*}/statelessSuggestion:generate:\001*\022\314\003\n" - + "\017SearchKnowledge\0227.google.cloud.dialogflow.v2beta1.SearchKnowledgeReq" - + "uest\0328.google.cloud.dialogflow.v2beta1.S" - + "earchKnowledgeResponse\"\305\002\202\323\344\223\002\276\002\"8/v2bet" - + "a1/{parent=projects/*}/suggestions:searchKnowledge:\001*ZI\"D/v2beta1/{parent=projec" - + "ts/*/locations/*}/suggestions:searchKnowledge:\001*ZS\"N/v2beta1/{conversation=proje" - + "cts/*/conversations/*}/suggestions:searchKnowledge:\001*Z_\"Z/v2beta1/{conversation=" - + "projects/*/locations/*/conversations/*}/suggestions:searchKnowledge:\001*\022\317\002\n" - + "\023GenerateSuggestions\022;.google.cloud.dialogflow" - + ".v2beta1.GenerateSuggestionsRequest\032<.google.cloud.dialogflow.v2beta1.GenerateSu" - + "ggestionsResponse\"\274\001\332A\014conversation\202\323\344\223\002" - + "\246\001\"G/v2beta1/{conversation=projects/*/co" - + "nversations/*}/suggestions:generate:\001*ZX\"S/v2beta1/{conversation=projects/*/loca" - + "tions/*/conversations/*}/suggestions:gen" - + "erate:\001*\032x\312A\031dialogflow.googleapis.com\322A", - "Yhttps://www.googleapis.com/auth/cloud-p" - + "latform,https://www.googleapis.com/auth/" - + "dialogflowB\314\003\n#com.google.cloud.dialogfl" - + "ow.v2beta1B\021ConversationProtoP\001ZCcloud.g" - + "oogle.com/go/dialogflow/apiv2beta1/dialo" - + "gflowpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud" - + ".Dialogflow.V2Beta1\352A\305\001\n(discoveryengine" - + ".googleapis.com/DataStore\022Xprojects/{pro" - + "ject}/locations/{location}/collections/{" - + "collection}/dataStores/{data_store}\022?pro" - + "jects/{project}/locations/{location}/dat" - + "aStores/{data_store}\352AZ\n\027ces.googleapis." - + "com/Tool\022?projects/{project}/locations/{" - + "location}/apps/{app}/tools/{tool}b\006proto" - + "3" + + "\022CreateConversation\022:.google.cloud.dialogflow.v2beta1.CreateCon" + + "versationRequest\032-.google.cloud.dialogfl" + + "ow.v2beta1.Conversation\"\237\001\332A\023parent,conv" + + "ersation\202\323\344\223\002\202\001\"*/v2beta1/{parent=projec" + + "ts/*}/conversations:\014conversationZF\"6/v2" + + "beta1/{parent=projects/*/locations/*}/conversations:\014conversation\022\201\002\n" + + "\021ListConversations\0229.google.cloud.dialogflow.v2beta" + + "1.ListConversationsRequest\032:.google.cloud.dialogflow.v2beta1.ListConversationsRe" + + "sponse\"u\332A\006parent\202\323\344\223\002f\022*/v2beta1/{paren" + + "t=projects/*}/conversationsZ8\0226/v2beta1/" + + "{parent=projects/*/locations/*}/conversations\022\356\001\n" + + "\017GetConversation\0227.google.cloud.dialogflow.v2beta1.GetConversationReque" + + "st\032-.google.cloud.dialogflow.v2beta1.Con" + + "versation\"s\332A\004name\202\323\344\223\002f\022*/v2beta1/{name" + + "=projects/*/conversations/*}Z8\0226/v2beta1" + + "/{name=projects/*/locations/*/conversations/*}\022\221\002\n" + + "\024CompleteConversation\022<.google.cloud.dialogflow.v2beta1.CompleteConver" + + "sationRequest\032-.google.cloud.dialogflow." + + "v2beta1.Conversation\"\213\001\332A\004name\202\323\344\223\002~\"3/v" + + "2beta1/{name=projects/*/conversations/*}:complete:\001*ZD\"?/v2beta1/{name=projects/" + + "*/locations/*/conversations/*}:complete:\001*\022\242\002\n" + + "\027IngestContextReferences\022?.google.cloud.dialogflow.v2beta1.IngestContextRe" + + "ferencesRequest\032@.google.cloud.dialogflow.v2beta1.IngestContextReferencesRespons" + + "e\"\203\001\332A\037conversation,context_references\202\323" + + "\344\223\002[\"V/v2beta1/{conversation=projects/*/" + + "locations/*/conversations/*}:ingestContextReferences:\001*\022\306\002\n" + + "\023BatchCreateMessages\022;.google.cloud.dialogflow.v2beta1.BatchC" + + "reateMessagesRequest\032<.google.cloud.dialogflow.v2beta1.BatchCreateMessagesRespon" + + "se\"\263\001\332A\017parent,requests\202\323\344\223\002\232\001\"A/v2beta1" + + "/{parent=projects/*/conversations/*}/messages:batchCreate:\001*ZR\"M/v2beta1/{parent" + + "=projects/*/locations/*/conversations/*}/messages:batchCreate:\001*\022\211\002\n" + + "\014ListMessages\0224.google.cloud.dialogflow.v2beta1.List" + + "MessagesRequest\0325.google.cloud.dialogflo" + + "w.v2beta1.ListMessagesResponse\"\213\001\332A\006pare" + + "nt\202\323\344\223\002|\0225/v2beta1/{parent=projects/*/co" + + "nversations/*}/messagesZC\022A/v2beta1/{par" + + "ent=projects/*/locations/*/conversations/*}/messages\022\210\003\n" + + "\032SuggestConversationSummary\022B.google.cloud.dialogflow.v2beta1.Su" + + "ggestConversationSummaryRequest\032C.google.cloud.dialogflow.v2beta1.SuggestConvers" + + "ationSummaryResponse\"\340\001\332A\014conversation\202\323" + + "\344\223\002\312\001\"Y/v2beta1/{conversation=projects/*" + + "/conversations/*}/suggestions:suggestConversationSummary:\001*Zj\"e/v2beta1/{convers" + + "ation=projects/*/locations/*/conversatio" + + "ns/*}/suggestions:suggestConversationSummary:\001*\022\361\002\n" + + "\030GenerateStatelessSummary\022@.google.cloud.dialogflow.v2beta1.GenerateS" + + "tatelessSummaryRequest\032A.google.cloud.dialogflow.v2beta1.GenerateStatelessSummar" + + "yResponse\"\317\001\202\323\344\223\002\310\001\"X/v2beta1/{stateless" + + "_conversation.parent=projects/*}/suggestions:generateStatelessSummary:\001*Zi\"d/v2b" + + "eta1/{stateless_conversation.parent=proj" + + "ects/*/locations/*}/suggestions:generateStatelessSummary:\001*\022\372\001\n" + + "\033GenerateStatelessSuggestion\022C.google.cloud.dialogflow.v2" + + "beta1.GenerateStatelessSuggestionRequest\032D.google.cloud.dialogflow.v2beta1.Gener" + + "ateStatelessSuggestionResponse\"P\202\323\344\223\002J\"E" + + "/v2beta1/{parent=projects/*/locations/*}/statelessSuggestion:generate:\001*\022\314\003\n" + + "\017SearchKnowledge\0227.google.cloud.dialogflow.v" + + "2beta1.SearchKnowledgeRequest\0328.google.cloud.dialogflow.v2beta1.SearchKnowledgeR" + + "esponse\"\305\002\202\323\344\223\002\276\002\"8/v2beta1/{parent=proj" + + "ects/*}/suggestions:searchKnowledge:\001*ZI\"D/v2beta1/{parent=projects/*/locations/" + + "*}/suggestions:searchKnowledge:\001*ZS\"N/v2beta1/{conversation=projects/*/conversat" + + "ions/*}/suggestions:searchKnowledge:\001*Z_\"Z/v2beta1/{conversation=projects/*/loca" + + "tions/*/conversations/*}/suggestions:searchKnowledge:\001*\022\317\002\n" + + "\023GenerateSuggestions\022;.google.cloud.dialogflow.v2beta1.Genera" + + "teSuggestionsRequest\032<.google.cloud.dialogflow.v2beta1.GenerateSuggestionsRespon" + + "se\"\274\001\332A\014conversation\202\323\344\223\002\246\001\"G/v2beta1/{c" + + "onversation=projects/*/conversations/*}/suggestions:generate:\001*ZX\"S/v2beta1/{con" + + "versation=projects/*/locations/*/convers" + + "ations/*}/suggestions:generate:\001*\032x\312A\031di", + "alogflow.googleapis.com\322AYhttps://www.go" + + "ogleapis.com/auth/cloud-platform,https:/" + + "/www.googleapis.com/auth/dialogflowB\314\003\n#" + + "com.google.cloud.dialogflow.v2beta1B\021Con" + + "versationProtoP\001ZCcloud.google.com/go/di" + + "alogflow/apiv2beta1/dialogflowpb;dialogf" + + "lowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2B" + + "eta1\352A\305\001\n(discoveryengine.googleapis.com" + + "/DataStore\022Xprojects/{project}/locations" + + "/{location}/collections/{collection}/dat" + + "aStores/{data_store}\022?projects/{project}" + + "/locations/{location}/dataStores/{data_s" + + "tore}\352AZ\n\027ces.googleapis.com/Tool\022?proje" + + "cts/{project}/locations/{location}/apps/" + + "{app}/tools/{tool}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java index b46be1fef9fa..48d86b4abdb7 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/HumanAgentAssistantConfig.java @@ -932,6 +932,65 @@ public interface SuggestionFeatureConfigOrBuilder */ com.google.cloud.dialogflow.v2beta1.RaiSettingsOrBuilder getRaiSettingsOrBuilder(); + /** + * + * + *
            +     * Optional. The trigger event for suggestion.
            +     * If unspecified, it will be `CUSTOMER_MESSAGE`.
            +     * Supported features: KNOWLEDGE_ASSIST
            +     * For KNOWLEDGE_ASSIST, these four trigger events are supported:
            +     * 1. TRIGGER_EVENT_UNSPECIFIED
            +     * 2. END_OF_UTTERANCE
            +     * 3. CUSTOMER_MESSAGE
            +     * 4. AGENT_MESSAGE
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for suggestionTriggerEvent. + */ + int getSuggestionTriggerEventValue(); + + /** + * + * + *
            +     * Optional. The trigger event for suggestion.
            +     * If unspecified, it will be `CUSTOMER_MESSAGE`.
            +     * Supported features: KNOWLEDGE_ASSIST
            +     * For KNOWLEDGE_ASSIST, these four trigger events are supported:
            +     * 1. TRIGGER_EVENT_UNSPECIFIED
            +     * 2. END_OF_UTTERANCE
            +     * 3. CUSTOMER_MESSAGE
            +     * 4. AGENT_MESSAGE
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The suggestionTriggerEvent. + */ + com.google.cloud.dialogflow.v2beta1.TriggerEvent getSuggestionTriggerEvent(); + + /** + * + * + *
            +     * Optional. If true, disable appending available search context to the
            +     * search query. Supported features: KNOWLEDGE_ASSIST
            +     * 
            + * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableQuerySearchContext. + */ + boolean getDisableQuerySearchContext(); + /** * * @@ -1031,51 +1090,6 @@ public interface SuggestionFeatureConfigOrBuilder com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfigOrBuilder getQueryConfigOrBuilder(); - /** - * - * - *
            -     * Configs of custom conversation model.
            -     * 
            - * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - * - * @return Whether the conversationModelConfig field is set. - */ - boolean hasConversationModelConfig(); - - /** - * - * - *
            -     * Configs of custom conversation model.
            -     * 
            - * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - * - * @return The conversationModelConfig. - */ - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - getConversationModelConfig(); - - /** - * - * - *
            -     * Configs of custom conversation model.
            -     * 
            - * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - */ - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfigOrBuilder - getConversationModelConfigOrBuilder(); - /** * * @@ -1153,7 +1167,9 @@ private SuggestionFeatureConfig(com.google.protobuf.GeneratedMessage.Builder super(builder); } - private SuggestionFeatureConfig() {} + private SuggestionFeatureConfig() { + suggestionTriggerEvent_ = 0; + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto @@ -1426,6 +1442,84 @@ public com.google.cloud.dialogflow.v2beta1.RaiSettingsOrBuilder getRaiSettingsOr : raiSettings_; } + public static final int SUGGESTION_TRIGGER_EVENT_FIELD_NUMBER = 20; + private int suggestionTriggerEvent_ = 0; + + /** + * + * + *
            +     * Optional. The trigger event for suggestion.
            +     * If unspecified, it will be `CUSTOMER_MESSAGE`.
            +     * Supported features: KNOWLEDGE_ASSIST
            +     * For KNOWLEDGE_ASSIST, these four trigger events are supported:
            +     * 1. TRIGGER_EVENT_UNSPECIFIED
            +     * 2. END_OF_UTTERANCE
            +     * 3. CUSTOMER_MESSAGE
            +     * 4. AGENT_MESSAGE
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for suggestionTriggerEvent. + */ + @java.lang.Override + public int getSuggestionTriggerEventValue() { + return suggestionTriggerEvent_; + } + + /** + * + * + *
            +     * Optional. The trigger event for suggestion.
            +     * If unspecified, it will be `CUSTOMER_MESSAGE`.
            +     * Supported features: KNOWLEDGE_ASSIST
            +     * For KNOWLEDGE_ASSIST, these four trigger events are supported:
            +     * 1. TRIGGER_EVENT_UNSPECIFIED
            +     * 2. END_OF_UTTERANCE
            +     * 3. CUSTOMER_MESSAGE
            +     * 4. AGENT_MESSAGE
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The suggestionTriggerEvent. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.TriggerEvent getSuggestionTriggerEvent() { + com.google.cloud.dialogflow.v2beta1.TriggerEvent result = + com.google.cloud.dialogflow.v2beta1.TriggerEvent.forNumber(suggestionTriggerEvent_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.TriggerEvent.UNRECOGNIZED + : result; + } + + public static final int DISABLE_QUERY_SEARCH_CONTEXT_FIELD_NUMBER = 21; + private boolean disableQuerySearchContext_ = false; + + /** + * + * + *
            +     * Optional. If true, disable appending available search context to the
            +     * search query. Supported features: KNOWLEDGE_ASSIST
            +     * 
            + * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableQuerySearchContext. + */ + @java.lang.Override + public boolean getDisableQuerySearchContext() { + return disableQuerySearchContext_; + } + public static final int SUGGESTION_TRIGGER_SETTINGS_FIELD_NUMBER = 10; private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestionTriggerSettings_; @@ -1565,71 +1659,6 @@ public boolean hasQueryConfig() { : queryConfig_; } - public static final int CONVERSATION_MODEL_CONFIG_FIELD_NUMBER = 7; - private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - conversationModelConfig_; - - /** - * - * - *
            -     * Configs of custom conversation model.
            -     * 
            - * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - * - * @return Whether the conversationModelConfig field is set. - */ - @java.lang.Override - public boolean hasConversationModelConfig() { - return ((bitField0_ & 0x00000010) != 0); - } - - /** - * - * - *
            -     * Configs of custom conversation model.
            -     * 
            - * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - * - * @return The conversationModelConfig. - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - getConversationModelConfig() { - return conversationModelConfig_ == null - ? com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - .getDefaultInstance() - : conversationModelConfig_; - } - - /** - * - * - *
            -     * Configs of custom conversation model.
            -     * 
            - * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfigOrBuilder - getConversationModelConfigOrBuilder() { - return conversationModelConfig_ == null - ? com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - .getDefaultInstance() - : conversationModelConfig_; - } - public static final int CONVERSATION_PROCESS_CONFIG_FIELD_NUMBER = 8; private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversationProcessConfig_; @@ -1649,7 +1678,7 @@ public boolean hasConversationModelConfig() { */ @java.lang.Override public boolean hasConversationProcessConfig() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1719,9 +1748,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(6, getQueryConfig()); } if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(7, getConversationModelConfig()); - } - if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(8, getConversationProcessConfig()); } if (((bitField0_ & 0x00000004) != 0)) { @@ -1745,6 +1771,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(19, getRaiSettings()); } + if (suggestionTriggerEvent_ + != com.google.cloud.dialogflow.v2beta1.TriggerEvent.TRIGGER_EVENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(20, suggestionTriggerEvent_); + } + if (disableQuerySearchContext_ != false) { + output.writeBool(21, disableQuerySearchContext_); + } getUnknownFields().writeTo(output); } @@ -1765,11 +1799,6 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getQueryConfig()); } if (((bitField0_ & 0x00000010) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, getConversationModelConfig()); - } - if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 8, getConversationProcessConfig()); @@ -1803,6 +1832,15 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getRaiSettings()); } + if (suggestionTriggerEvent_ + != com.google.cloud.dialogflow.v2beta1.TriggerEvent.TRIGGER_EVENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(20, suggestionTriggerEvent_); + } + if (disableQuerySearchContext_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(21, disableQuerySearchContext_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1838,6 +1876,8 @@ public boolean equals(final java.lang.Object obj) { if (hasRaiSettings()) { if (!getRaiSettings().equals(other.getRaiSettings())) return false; } + if (suggestionTriggerEvent_ != other.suggestionTriggerEvent_) return false; + if (getDisableQuerySearchContext() != other.getDisableQuerySearchContext()) return false; if (hasSuggestionTriggerSettings() != other.hasSuggestionTriggerSettings()) return false; if (hasSuggestionTriggerSettings()) { if (!getSuggestionTriggerSettings().equals(other.getSuggestionTriggerSettings())) @@ -1847,10 +1887,6 @@ public boolean equals(final java.lang.Object obj) { if (hasQueryConfig()) { if (!getQueryConfig().equals(other.getQueryConfig())) return false; } - if (hasConversationModelConfig() != other.hasConversationModelConfig()) return false; - if (hasConversationModelConfig()) { - if (!getConversationModelConfig().equals(other.getConversationModelConfig())) return false; - } if (hasConversationProcessConfig() != other.hasConversationProcessConfig()) return false; if (hasConversationProcessConfig()) { if (!getConversationProcessConfig().equals(other.getConversationProcessConfig())) @@ -1892,6 +1928,10 @@ public int hashCode() { hash = (37 * hash) + RAI_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getRaiSettings().hashCode(); } + hash = (37 * hash) + SUGGESTION_TRIGGER_EVENT_FIELD_NUMBER; + hash = (53 * hash) + suggestionTriggerEvent_; + hash = (37 * hash) + DISABLE_QUERY_SEARCH_CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableQuerySearchContext()); if (hasSuggestionTriggerSettings()) { hash = (37 * hash) + SUGGESTION_TRIGGER_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSuggestionTriggerSettings().hashCode(); @@ -1900,10 +1940,6 @@ public int hashCode() { hash = (37 * hash) + QUERY_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getQueryConfig().hashCode(); } - if (hasConversationModelConfig()) { - hash = (37 * hash) + CONVERSATION_MODEL_CONFIG_FIELD_NUMBER; - hash = (53 * hash) + getConversationModelConfig().hashCode(); - } if (hasConversationProcessConfig()) { hash = (37 * hash) + CONVERSATION_PROCESS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConversationProcessConfig().hashCode(); @@ -2078,7 +2114,6 @@ private void maybeForceBuilderInitialization() { internalGetRaiSettingsFieldBuilder(); internalGetSuggestionTriggerSettingsFieldBuilder(); internalGetQueryConfigFieldBuilder(); - internalGetConversationModelConfigFieldBuilder(); internalGetConversationProcessConfigFieldBuilder(); } } @@ -2103,6 +2138,8 @@ public Builder clear() { raiSettingsBuilder_.dispose(); raiSettingsBuilder_ = null; } + suggestionTriggerEvent_ = 0; + disableQuerySearchContext_ = false; suggestionTriggerSettings_ = null; if (suggestionTriggerSettingsBuilder_ != null) { suggestionTriggerSettingsBuilder_.dispose(); @@ -2113,11 +2150,6 @@ public Builder clear() { queryConfigBuilder_.dispose(); queryConfigBuilder_ = null; } - conversationModelConfig_ = null; - if (conversationModelConfigBuilder_ != null) { - conversationModelConfigBuilder_.dispose(); - conversationModelConfigBuilder_ = null; - } conversationProcessConfig_ = null; if (conversationProcessConfigBuilder_ != null) { conversationProcessConfigBuilder_.dispose(); @@ -2200,30 +2232,29 @@ private void buildPartial0( to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000100) != 0)) { + result.suggestionTriggerEvent_ = suggestionTriggerEvent_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.disableQuerySearchContext_ = disableQuerySearchContext_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { result.suggestionTriggerSettings_ = suggestionTriggerSettingsBuilder_ == null ? suggestionTriggerSettings_ : suggestionTriggerSettingsBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.queryConfig_ = queryConfigBuilder_ == null ? queryConfig_ : queryConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.conversationModelConfig_ = - conversationModelConfigBuilder_ == null - ? conversationModelConfig_ - : conversationModelConfigBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.conversationProcessConfig_ = conversationProcessConfigBuilder_ == null ? conversationProcessConfig_ : conversationProcessConfigBuilder_.build(); - to_bitField0_ |= 0x00000020; + to_bitField0_ |= 0x00000010; } result.bitField0_ |= to_bitField0_; } @@ -2273,15 +2304,18 @@ public Builder mergeFrom( if (other.hasRaiSettings()) { mergeRaiSettings(other.getRaiSettings()); } + if (other.suggestionTriggerEvent_ != 0) { + setSuggestionTriggerEventValue(other.getSuggestionTriggerEventValue()); + } + if (other.getDisableQuerySearchContext() != false) { + setDisableQuerySearchContext(other.getDisableQuerySearchContext()); + } if (other.hasSuggestionTriggerSettings()) { mergeSuggestionTriggerSettings(other.getSuggestionTriggerSettings()); } if (other.hasQueryConfig()) { mergeQueryConfig(other.getQueryConfig()); } - if (other.hasConversationModelConfig()) { - mergeConversationModelConfig(other.getConversationModelConfig()); - } if (other.hasConversationProcessConfig()) { mergeConversationProcessConfig(other.getConversationProcessConfig()); } @@ -2328,23 +2362,15 @@ public Builder mergeFrom( { input.readMessage( internalGetQueryConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; break; } // case 50 - case 58: - { - input.readMessage( - internalGetConversationModelConfigFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 58 case 66: { input.readMessage( internalGetConversationProcessConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 66 case 82: @@ -2352,7 +2378,7 @@ public Builder mergeFrom( input.readMessage( internalGetSuggestionTriggerSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; break; } // case 82 case 112: @@ -2392,6 +2418,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 154 + case 160: + { + suggestionTriggerEvent_ = input.readEnum(); + bitField0_ |= 0x00000100; + break; + } // case 160 + case 168: + { + disableQuerySearchContext_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 168 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3245,92 +3283,297 @@ public com.google.cloud.dialogflow.v2beta1.RaiSettingsOrBuilder getRaiSettingsOr return raiSettingsBuilder_; } - private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .SuggestionTriggerSettings - suggestionTriggerSettings_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .SuggestionTriggerSettings, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .SuggestionTriggerSettings.Builder, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .SuggestionTriggerSettingsOrBuilder> - suggestionTriggerSettingsBuilder_; + private int suggestionTriggerEvent_ = 0; /** * * *
            -       * Settings of suggestion trigger.
            -       *
            -       * Currently, only ARTICLE_SUGGESTION, FAQ, and DIALOGFLOW_ASSIST will use
            -       * this field.
            +       * Optional. The trigger event for suggestion.
            +       * If unspecified, it will be `CUSTOMER_MESSAGE`.
            +       * Supported features: KNOWLEDGE_ASSIST
            +       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
            +       * 1. TRIGGER_EVENT_UNSPECIFIED
            +       * 2. END_OF_UTTERANCE
            +       * 3. CUSTOMER_MESSAGE
            +       * 4. AGENT_MESSAGE
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; + * .google.cloud.dialogflow.v2beta1.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the suggestionTriggerSettings field is set. + * @return The enum numeric value on the wire for suggestionTriggerEvent. */ - public boolean hasSuggestionTriggerSettings() { - return ((bitField0_ & 0x00000100) != 0); + @java.lang.Override + public int getSuggestionTriggerEventValue() { + return suggestionTriggerEvent_; } /** * * *
            -       * Settings of suggestion trigger.
            -       *
            -       * Currently, only ARTICLE_SUGGESTION, FAQ, and DIALOGFLOW_ASSIST will use
            -       * this field.
            +       * Optional. The trigger event for suggestion.
            +       * If unspecified, it will be `CUSTOMER_MESSAGE`.
            +       * Supported features: KNOWLEDGE_ASSIST
            +       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
            +       * 1. TRIGGER_EVENT_UNSPECIFIED
            +       * 2. END_OF_UTTERANCE
            +       * 3. CUSTOMER_MESSAGE
            +       * 4. AGENT_MESSAGE
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; + * .google.cloud.dialogflow.v2beta1.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The suggestionTriggerSettings. + * @param value The enum numeric value on the wire for suggestionTriggerEvent to set. + * @return This builder for chaining. */ - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings - getSuggestionTriggerSettings() { - if (suggestionTriggerSettingsBuilder_ == null) { - return suggestionTriggerSettings_ == null - ? com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .SuggestionTriggerSettings.getDefaultInstance() - : suggestionTriggerSettings_; - } else { - return suggestionTriggerSettingsBuilder_.getMessage(); - } + public Builder setSuggestionTriggerEventValue(int value) { + suggestionTriggerEvent_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; } /** * * *
            -       * Settings of suggestion trigger.
            -       *
            -       * Currently, only ARTICLE_SUGGESTION, FAQ, and DIALOGFLOW_ASSIST will use
            -       * this field.
            +       * Optional. The trigger event for suggestion.
            +       * If unspecified, it will be `CUSTOMER_MESSAGE`.
            +       * Supported features: KNOWLEDGE_ASSIST
            +       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
            +       * 1. TRIGGER_EVENT_UNSPECIFIED
            +       * 2. END_OF_UTTERANCE
            +       * 3. CUSTOMER_MESSAGE
            +       * 4. AGENT_MESSAGE
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; + * .google.cloud.dialogflow.v2beta1.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; * + * + * @return The suggestionTriggerEvent. */ - public Builder setSuggestionTriggerSettings( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings - value) { - if (suggestionTriggerSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - suggestionTriggerSettings_ = value; - } else { - suggestionTriggerSettingsBuilder_.setMessage(value); - } + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.TriggerEvent getSuggestionTriggerEvent() { + com.google.cloud.dialogflow.v2beta1.TriggerEvent result = + com.google.cloud.dialogflow.v2beta1.TriggerEvent.forNumber(suggestionTriggerEvent_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.TriggerEvent.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +       * Optional. The trigger event for suggestion.
            +       * If unspecified, it will be `CUSTOMER_MESSAGE`.
            +       * Supported features: KNOWLEDGE_ASSIST
            +       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
            +       * 1. TRIGGER_EVENT_UNSPECIFIED
            +       * 2. END_OF_UTTERANCE
            +       * 3. CUSTOMER_MESSAGE
            +       * 4. AGENT_MESSAGE
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The suggestionTriggerEvent to set. + * @return This builder for chaining. + */ + public Builder setSuggestionTriggerEvent( + com.google.cloud.dialogflow.v2beta1.TriggerEvent value) { + if (value == null) { + throw new NullPointerException(); + } bitField0_ |= 0x00000100; + suggestionTriggerEvent_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The trigger event for suggestion.
            +       * If unspecified, it will be `CUSTOMER_MESSAGE`.
            +       * Supported features: KNOWLEDGE_ASSIST
            +       * For KNOWLEDGE_ASSIST, these four trigger events are supported:
            +       * 1. TRIGGER_EVENT_UNSPECIFIED
            +       * 2. END_OF_UTTERANCE
            +       * 3. CUSTOMER_MESSAGE
            +       * 4. AGENT_MESSAGE
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.TriggerEvent suggestion_trigger_event = 20 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSuggestionTriggerEvent() { + bitField0_ = (bitField0_ & ~0x00000100); + suggestionTriggerEvent_ = 0; + onChanged(); + return this; + } + + private boolean disableQuerySearchContext_; + + /** + * + * + *
            +       * Optional. If true, disable appending available search context to the
            +       * search query. Supported features: KNOWLEDGE_ASSIST
            +       * 
            + * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The disableQuerySearchContext. + */ + @java.lang.Override + public boolean getDisableQuerySearchContext() { + return disableQuerySearchContext_; + } + + /** + * + * + *
            +       * Optional. If true, disable appending available search context to the
            +       * search query. Supported features: KNOWLEDGE_ASSIST
            +       * 
            + * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The disableQuerySearchContext to set. + * @return This builder for chaining. + */ + public Builder setDisableQuerySearchContext(boolean value) { + + disableQuerySearchContext_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. If true, disable appending available search context to the
            +       * search query. Supported features: KNOWLEDGE_ASSIST
            +       * 
            + * + * bool disable_query_search_context = 21 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDisableQuerySearchContext() { + bitField0_ = (bitField0_ & ~0x00000200); + disableQuerySearchContext_ = false; + onChanged(); + return this; + } + + private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionTriggerSettings + suggestionTriggerSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionTriggerSettings, + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionTriggerSettings.Builder, + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionTriggerSettingsOrBuilder> + suggestionTriggerSettingsBuilder_; + + /** + * + * + *
            +       * Settings of suggestion trigger.
            +       *
            +       * Currently, only ARTICLE_SUGGESTION, FAQ, and DIALOGFLOW_ASSIST will use
            +       * this field.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; + * + * + * @return Whether the suggestionTriggerSettings field is set. + */ + public boolean hasSuggestionTriggerSettings() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
            +       * Settings of suggestion trigger.
            +       *
            +       * Currently, only ARTICLE_SUGGESTION, FAQ, and DIALOGFLOW_ASSIST will use
            +       * this field.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; + * + * + * @return The suggestionTriggerSettings. + */ + public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings + getSuggestionTriggerSettings() { + if (suggestionTriggerSettingsBuilder_ == null) { + return suggestionTriggerSettings_ == null + ? com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .SuggestionTriggerSettings.getDefaultInstance() + : suggestionTriggerSettings_; + } else { + return suggestionTriggerSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Settings of suggestion trigger.
            +       *
            +       * Currently, only ARTICLE_SUGGESTION, FAQ, and DIALOGFLOW_ASSIST will use
            +       * this field.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings suggestion_trigger_settings = 10; + * + */ + public Builder setSuggestionTriggerSettings( + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings + value) { + if (suggestionTriggerSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + suggestionTriggerSettings_ = value; + } else { + suggestionTriggerSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3358,7 +3601,7 @@ public Builder setSuggestionTriggerSettings( } else { suggestionTriggerSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -3381,7 +3624,7 @@ public Builder mergeSuggestionTriggerSettings( com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings value) { if (suggestionTriggerSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000100) != 0) + if (((bitField0_ & 0x00000400) != 0) && suggestionTriggerSettings_ != null && suggestionTriggerSettings_ != com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig @@ -3394,7 +3637,7 @@ public Builder mergeSuggestionTriggerSettings( suggestionTriggerSettingsBuilder_.mergeFrom(value); } if (suggestionTriggerSettings_ != null) { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -3415,7 +3658,7 @@ public Builder mergeSuggestionTriggerSettings( * */ public Builder clearSuggestionTriggerSettings() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000400); suggestionTriggerSettings_ = null; if (suggestionTriggerSettingsBuilder_ != null) { suggestionTriggerSettingsBuilder_.dispose(); @@ -3442,7 +3685,7 @@ public Builder clearSuggestionTriggerSettings() { public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionTriggerSettings .Builder getSuggestionTriggerSettingsBuilder() { - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000400; onChanged(); return internalGetSuggestionTriggerSettingsFieldBuilder().getBuilder(); } @@ -3535,7 +3778,7 @@ public Builder clearSuggestionTriggerSettings() { * @return Whether the queryConfig field is set. */ public boolean hasQueryConfig() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -3585,7 +3828,7 @@ public Builder setQueryConfig( } else { queryConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3610,7 +3853,7 @@ public Builder setQueryConfig( } else { queryConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3630,7 +3873,7 @@ public Builder mergeQueryConfig( com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig value) { if (queryConfigBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000800) != 0) && queryConfig_ != null && queryConfig_ != com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig @@ -3643,7 +3886,7 @@ public Builder mergeQueryConfig( queryConfigBuilder_.mergeFrom(value); } if (queryConfig_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -3661,7 +3904,7 @@ public Builder mergeQueryConfig( * */ public Builder clearQueryConfig() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000800); queryConfig_ = null; if (queryConfigBuilder_ != null) { queryConfigBuilder_.dispose(); @@ -3685,7 +3928,7 @@ public Builder clearQueryConfig() { public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.SuggestionQueryConfig .Builder getQueryConfigBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000800; onChanged(); return internalGetQueryConfigFieldBuilder().getBuilder(); } @@ -3747,55 +3990,57 @@ public Builder clearQueryConfig() { return queryConfigBuilder_; } - private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - conversationModelConfig_; + private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .ConversationProcessConfig + conversationProcessConfig_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - .Builder, com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfigOrBuilder> - conversationModelConfigBuilder_; + .ConversationProcessConfig, + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .ConversationProcessConfig.Builder, + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig + .ConversationProcessConfigOrBuilder> + conversationProcessConfigBuilder_; /** * * *
            -       * Configs of custom conversation model.
            +       * Configs for processing conversation.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; * * - * @return Whether the conversationModelConfig field is set. + * @return Whether the conversationProcessConfig field is set. */ - public boolean hasConversationModelConfig() { - return ((bitField0_ & 0x00000400) != 0); + public boolean hasConversationProcessConfig() { + return ((bitField0_ & 0x00001000) != 0); } /** * * *
            -       * Configs of custom conversation model.
            +       * Configs for processing conversation.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; * * - * @return The conversationModelConfig. + * @return The conversationProcessConfig. */ - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - getConversationModelConfig() { - if (conversationModelConfigBuilder_ == null) { - return conversationModelConfig_ == null + public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig + getConversationProcessConfig() { + if (conversationProcessConfigBuilder_ == null) { + return conversationProcessConfig_ == null ? com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig.getDefaultInstance() - : conversationModelConfig_; + .ConversationProcessConfig.getDefaultInstance() + : conversationProcessConfig_; } else { - return conversationModelConfigBuilder_.getMessage(); + return conversationProcessConfigBuilder_.getMessage(); } } @@ -3803,25 +4048,25 @@ public boolean hasConversationModelConfig() { * * *
            -       * Configs of custom conversation model.
            +       * Configs for processing conversation.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; * */ - public Builder setConversationModelConfig( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig + public Builder setConversationProcessConfig( + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig value) { - if (conversationModelConfigBuilder_ == null) { + if (conversationProcessConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - conversationModelConfig_ = value; + conversationProcessConfig_ = value; } else { - conversationModelConfigBuilder_.setMessage(value); + conversationProcessConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3830,23 +4075,23 @@ public Builder setConversationModelConfig( * * *
            -       * Configs of custom conversation model.
            +       * Configs for processing conversation.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; * */ - public Builder setConversationModelConfig( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig + public Builder setConversationProcessConfig( + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig .Builder builderForValue) { - if (conversationModelConfigBuilder_ == null) { - conversationModelConfig_ = builderForValue.build(); + if (conversationProcessConfigBuilder_ == null) { + conversationProcessConfig_ = builderForValue.build(); } else { - conversationModelConfigBuilder_.setMessage(builderForValue.build()); + conversationProcessConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -3855,31 +4100,31 @@ public Builder setConversationModelConfig( * * *
            -       * Configs of custom conversation model.
            +       * Configs for processing conversation.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; * */ - public Builder mergeConversationModelConfig( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig + public Builder mergeConversationProcessConfig( + com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig value) { - if (conversationModelConfigBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) - && conversationModelConfig_ != null - && conversationModelConfig_ + if (conversationProcessConfigBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && conversationProcessConfig_ != null + && conversationProcessConfig_ != com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig.getDefaultInstance()) { - getConversationModelConfigBuilder().mergeFrom(value); + .ConversationProcessConfig.getDefaultInstance()) { + getConversationProcessConfigBuilder().mergeFrom(value); } else { - conversationModelConfig_ = value; + conversationProcessConfig_ = value; } } else { - conversationModelConfigBuilder_.mergeFrom(value); + conversationProcessConfigBuilder_.mergeFrom(value); } - if (conversationModelConfig_ != null) { - bitField0_ |= 0x00000400; + if (conversationProcessConfig_ != null) { + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -3889,19 +4134,19 @@ public Builder mergeConversationModelConfig( * * *
            -       * Configs of custom conversation model.
            +       * Configs for processing conversation.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; * */ - public Builder clearConversationModelConfig() { - bitField0_ = (bitField0_ & ~0x00000400); - conversationModelConfig_ = null; - if (conversationModelConfigBuilder_ != null) { - conversationModelConfigBuilder_.dispose(); - conversationModelConfigBuilder_ = null; + public Builder clearConversationProcessConfig() { + bitField0_ = (bitField0_ & ~0x00001000); + conversationProcessConfig_ = null; + if (conversationProcessConfigBuilder_ != null) { + conversationProcessConfigBuilder_.dispose(); + conversationProcessConfigBuilder_ = null; } onChanged(); return this; @@ -3911,255 +4156,17 @@ public Builder clearConversationModelConfig() { * * *
            -       * Configs of custom conversation model.
            +       * Configs for processing conversation.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; + * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; * */ - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig + public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig .Builder - getConversationModelConfigBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return internalGetConversationModelConfigFieldBuilder().getBuilder(); - } - - /** - * - * - *
            -       * Configs of custom conversation model.
            -       * 
            - * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - */ - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfigOrBuilder - getConversationModelConfigOrBuilder() { - if (conversationModelConfigBuilder_ != null) { - return conversationModelConfigBuilder_.getMessageOrBuilder(); - } else { - return conversationModelConfig_ == null - ? com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig.getDefaultInstance() - : conversationModelConfig_; - } - } - - /** - * - * - *
            -       * Configs of custom conversation model.
            -       * 
            - * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig conversation_model_config = 7; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - .Builder, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfigOrBuilder> - internalGetConversationModelConfigFieldBuilder() { - if (conversationModelConfigBuilder_ == null) { - conversationModelConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig.Builder, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfigOrBuilder>( - getConversationModelConfig(), getParentForChildren(), isClean()); - conversationModelConfig_ = null; - } - return conversationModelConfigBuilder_; - } - - private com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationProcessConfig - conversationProcessConfig_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationProcessConfig, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationProcessConfig.Builder, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationProcessConfigOrBuilder> - conversationProcessConfigBuilder_; - - /** - * - * - *
            -       * Configs for processing conversation.
            -       * 
            - * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; - * - * - * @return Whether the conversationProcessConfig field is set. - */ - public boolean hasConversationProcessConfig() { - return ((bitField0_ & 0x00000800) != 0); - } - - /** - * - * - *
            -       * Configs for processing conversation.
            -       * 
            - * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; - * - * - * @return The conversationProcessConfig. - */ - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig - getConversationProcessConfig() { - if (conversationProcessConfigBuilder_ == null) { - return conversationProcessConfig_ == null - ? com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationProcessConfig.getDefaultInstance() - : conversationProcessConfig_; - } else { - return conversationProcessConfigBuilder_.getMessage(); - } - } - - /** - * - * - *
            -       * Configs for processing conversation.
            -       * 
            - * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; - * - */ - public Builder setConversationProcessConfig( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig - value) { - if (conversationProcessConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - conversationProcessConfig_ = value; - } else { - conversationProcessConfigBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - - /** - * - * - *
            -       * Configs for processing conversation.
            -       * 
            - * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; - * - */ - public Builder setConversationProcessConfig( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig - .Builder - builderForValue) { - if (conversationProcessConfigBuilder_ == null) { - conversationProcessConfig_ = builderForValue.build(); - } else { - conversationProcessConfigBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - - /** - * - * - *
            -       * Configs for processing conversation.
            -       * 
            - * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; - * - */ - public Builder mergeConversationProcessConfig( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig - value) { - if (conversationProcessConfigBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && conversationProcessConfig_ != null - && conversationProcessConfig_ - != com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationProcessConfig.getDefaultInstance()) { - getConversationProcessConfigBuilder().mergeFrom(value); - } else { - conversationProcessConfig_ = value; - } - } else { - conversationProcessConfigBuilder_.mergeFrom(value); - } - if (conversationProcessConfig_ != null) { - bitField0_ |= 0x00000800; - onChanged(); - } - return this; - } - - /** - * - * - *
            -       * Configs for processing conversation.
            -       * 
            - * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; - * - */ - public Builder clearConversationProcessConfig() { - bitField0_ = (bitField0_ & ~0x00000800); - conversationProcessConfig_ = null; - if (conversationProcessConfigBuilder_ != null) { - conversationProcessConfigBuilder_.dispose(); - conversationProcessConfigBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
            -       * Configs for processing conversation.
            -       * 
            - * - * - * .google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig conversation_process_config = 8; - * - */ - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig - .Builder - getConversationProcessConfigBuilder() { - bitField0_ |= 0x00000800; + getConversationProcessConfigBuilder() { + bitField0_ |= 0x00001000; onChanged(); return internalGetConversationProcessConfigFieldBuilder().getBuilder(); } @@ -15514,970 +15521,6 @@ public com.google.protobuf.Parser getParserForType() { } } - public interface ConversationModelConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
            -     * Conversation model resource name. Format: `projects/<Project
            -     * ID>/conversationModels/<Model ID>`.
            -     * 
            - * - * string model = 1 [(.google.api.resource_reference) = { ... } - * - * @return The model. - */ - java.lang.String getModel(); - - /** - * - * - *
            -     * Conversation model resource name. Format: `projects/<Project
            -     * ID>/conversationModels/<Model ID>`.
            -     * 
            - * - * string model = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for model. - */ - com.google.protobuf.ByteString getModelBytes(); - - /** - * - * - *
            -     * Version of current baseline model. It will be ignored if
            -     * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model]
            -     * is set. Valid versions are:
            -     *
            -     * - Article Suggestion baseline model:
            -     * - 0.9
            -     * - 1.0 (default)
            -     * - Summarization baseline model:
            -     * - 1.0
            -     * 
            - * - * string baseline_model_version = 8; - * - * @return The baselineModelVersion. - */ - java.lang.String getBaselineModelVersion(); - - /** - * - * - *
            -     * Version of current baseline model. It will be ignored if
            -     * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model]
            -     * is set. Valid versions are:
            -     *
            -     * - Article Suggestion baseline model:
            -     * - 0.9
            -     * - 1.0 (default)
            -     * - Summarization baseline model:
            -     * - 1.0
            -     * 
            - * - * string baseline_model_version = 8; - * - * @return The bytes for baselineModelVersion. - */ - com.google.protobuf.ByteString getBaselineModelVersionBytes(); - } - - /** - * - * - *
            -   * Custom conversation models used in agent assist feature.
            -   *
            -   * Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY,
            -   * CONVERSATION_SUMMARIZATION.
            -   * 
            - * - * Protobuf type {@code - * google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig} - */ - public static final class ConversationModelConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig) - ConversationModelConfigOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "ConversationModelConfig"); - } - - // Use ConversationModelConfig.newBuilder() to construct. - private ConversationModelConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ConversationModelConfig() { - model_ = ""; - baselineModelVersion_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - .class, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - .Builder.class); - } - - public static final int MODEL_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object model_ = ""; - - /** - * - * - *
            -     * Conversation model resource name. Format: `projects/<Project
            -     * ID>/conversationModels/<Model ID>`.
            -     * 
            - * - * string model = 1 [(.google.api.resource_reference) = { ... } - * - * @return The model. - */ - @java.lang.Override - public java.lang.String getModel() { - java.lang.Object ref = model_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - model_ = s; - return s; - } - } - - /** - * - * - *
            -     * Conversation model resource name. Format: `projects/<Project
            -     * ID>/conversationModels/<Model ID>`.
            -     * 
            - * - * string model = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for model. - */ - @java.lang.Override - public com.google.protobuf.ByteString getModelBytes() { - java.lang.Object ref = model_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - model_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BASELINE_MODEL_VERSION_FIELD_NUMBER = 8; - - @SuppressWarnings("serial") - private volatile java.lang.Object baselineModelVersion_ = ""; - - /** - * - * - *
            -     * Version of current baseline model. It will be ignored if
            -     * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model]
            -     * is set. Valid versions are:
            -     *
            -     * - Article Suggestion baseline model:
            -     * - 0.9
            -     * - 1.0 (default)
            -     * - Summarization baseline model:
            -     * - 1.0
            -     * 
            - * - * string baseline_model_version = 8; - * - * @return The baselineModelVersion. - */ - @java.lang.Override - public java.lang.String getBaselineModelVersion() { - java.lang.Object ref = baselineModelVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - baselineModelVersion_ = s; - return s; - } - } - - /** - * - * - *
            -     * Version of current baseline model. It will be ignored if
            -     * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model]
            -     * is set. Valid versions are:
            -     *
            -     * - Article Suggestion baseline model:
            -     * - 0.9
            -     * - 1.0 (default)
            -     * - Summarization baseline model:
            -     * - 1.0
            -     * 
            - * - * string baseline_model_version = 8; - * - * @return The bytes for baselineModelVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBaselineModelVersionBytes() { - java.lang.Object ref = baselineModelVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - baselineModelVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(model_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, model_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baselineModelVersion_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 8, baselineModelVersion_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(model_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, model_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(baselineModelVersion_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(8, baselineModelVersion_); - } - 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.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig)) { - return super.equals(obj); - } - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig other = - (com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig) - obj; - - if (!getModel().equals(other.getModel())) return false; - if (!getBaselineModelVersion().equals(other.getBaselineModelVersion())) 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_FIELD_NUMBER; - hash = (53 * hash) + getModel().hashCode(); - hash = (37 * hash) + BASELINE_MODEL_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getBaselineModelVersion().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - 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.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseFrom( - 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.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
            -     * Custom conversation models used in agent assist feature.
            -     *
            -     * Supported feature: ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY,
            -     * CONVERSATION_SUMMARIZATION.
            -     * 
            - * - * Protobuf type {@code - * google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig) - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig.class, - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig.Builder.class); - } - - // Construct using - // com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - model_ = ""; - baselineModelVersion_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto - .internal_static_google_cloud_dialogflow_v2beta1_HumanAgentAssistantConfig_ConversationModelConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - build() { - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - buildPartial() { - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - result = - new com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.model_ = model_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.baselineModelVersion_ = baselineModelVersion_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig) { - return mergeFrom( - (com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - other) { - if (other - == com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - .getDefaultInstance()) return this; - if (!other.getModel().isEmpty()) { - model_ = other.model_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getBaselineModelVersion().isEmpty()) { - baselineModelVersion_ = other.baselineModelVersion_; - 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: - { - model_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 66: - { - baselineModelVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object model_ = ""; - - /** - * - * - *
            -       * Conversation model resource name. Format: `projects/<Project
            -       * ID>/conversationModels/<Model ID>`.
            -       * 
            - * - * string model = 1 [(.google.api.resource_reference) = { ... } - * - * @return The model. - */ - public java.lang.String getModel() { - java.lang.Object ref = model_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - model_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
            -       * Conversation model resource name. Format: `projects/<Project
            -       * ID>/conversationModels/<Model ID>`.
            -       * 
            - * - * string model = 1 [(.google.api.resource_reference) = { ... } - * - * @return The bytes for model. - */ - public com.google.protobuf.ByteString getModelBytes() { - java.lang.Object ref = model_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - model_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
            -       * Conversation model resource name. Format: `projects/<Project
            -       * ID>/conversationModels/<Model ID>`.
            -       * 
            - * - * string model = 1 [(.google.api.resource_reference) = { ... } - * - * @param value The model to set. - * @return This builder for chaining. - */ - public Builder setModel(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - model_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
            -       * Conversation model resource name. Format: `projects/<Project
            -       * ID>/conversationModels/<Model ID>`.
            -       * 
            - * - * string model = 1 [(.google.api.resource_reference) = { ... } - * - * @return This builder for chaining. - */ - public Builder clearModel() { - model_ = getDefaultInstance().getModel(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
            -       * Conversation model resource name. Format: `projects/<Project
            -       * ID>/conversationModels/<Model ID>`.
            -       * 
            - * - * string model = 1 [(.google.api.resource_reference) = { ... } - * - * @param value The bytes for model to set. - * @return This builder for chaining. - */ - public Builder setModelBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - model_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object baselineModelVersion_ = ""; - - /** - * - * - *
            -       * Version of current baseline model. It will be ignored if
            -       * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model]
            -       * is set. Valid versions are:
            -       *
            -       * - Article Suggestion baseline model:
            -       * - 0.9
            -       * - 1.0 (default)
            -       * - Summarization baseline model:
            -       * - 1.0
            -       * 
            - * - * string baseline_model_version = 8; - * - * @return The baselineModelVersion. - */ - public java.lang.String getBaselineModelVersion() { - java.lang.Object ref = baselineModelVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - baselineModelVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
            -       * Version of current baseline model. It will be ignored if
            -       * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model]
            -       * is set. Valid versions are:
            -       *
            -       * - Article Suggestion baseline model:
            -       * - 0.9
            -       * - 1.0 (default)
            -       * - Summarization baseline model:
            -       * - 1.0
            -       * 
            - * - * string baseline_model_version = 8; - * - * @return The bytes for baselineModelVersion. - */ - public com.google.protobuf.ByteString getBaselineModelVersionBytes() { - java.lang.Object ref = baselineModelVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - baselineModelVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
            -       * Version of current baseline model. It will be ignored if
            -       * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model]
            -       * is set. Valid versions are:
            -       *
            -       * - Article Suggestion baseline model:
            -       * - 0.9
            -       * - 1.0 (default)
            -       * - Summarization baseline model:
            -       * - 1.0
            -       * 
            - * - * string baseline_model_version = 8; - * - * @param value The baselineModelVersion to set. - * @return This builder for chaining. - */ - public Builder setBaselineModelVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - baselineModelVersion_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
            -       * Version of current baseline model. It will be ignored if
            -       * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model]
            -       * is set. Valid versions are:
            -       *
            -       * - Article Suggestion baseline model:
            -       * - 0.9
            -       * - 1.0 (default)
            -       * - Summarization baseline model:
            -       * - 1.0
            -       * 
            - * - * string baseline_model_version = 8; - * - * @return This builder for chaining. - */ - public Builder clearBaselineModelVersion() { - baselineModelVersion_ = getDefaultInstance().getBaselineModelVersion(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
            -       * Version of current baseline model. It will be ignored if
            -       * [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model]
            -       * is set. Valid versions are:
            -       *
            -       * - Article Suggestion baseline model:
            -       * - 0.9
            -       * - 1.0 (default)
            -       * - Summarization baseline model:
            -       * - 1.0
            -       * 
            - * - * string baseline_model_version = 8; - * - * @param value The bytes for baselineModelVersion to set. - * @return This builder for chaining. - */ - public Builder setBaselineModelVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - baselineModelVersion_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig) - private static final com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig(); - } - - public static com.google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig - .ConversationModelConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConversationModelConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - 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.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - public interface ConversationProcessConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationProcessConfig) diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswer.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswer.java index f15e0f14a638..3c42ce852340 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswer.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistAnswer.java @@ -100,6 +100,79 @@ public interface SuggestedQueryOrBuilder * @return The bytes for queryText. */ com.google.protobuf.ByteString getQueryTextBytes(); + + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext> + getSearchContextsList(); + + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + getSearchContexts(int index); + + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getSearchContextsCount(); + + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + getSearchContextsOrBuilderList(); + + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContextOrBuilder + getSearchContextsOrBuilder(int index); } /** @@ -134,6 +207,7 @@ private SuggestedQuery(com.google.protobuf.GeneratedMessage.Builder builder) private SuggestedQuery() { queryText_ = ""; + searchContexts_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -152,3076 +226,7001 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .class); } - public static final int QUERY_TEXT_FIELD_NUMBER = 1; + public interface SearchContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + com.google.protobuf.MessageOrBuilder { - @SuppressWarnings("serial") - private volatile java.lang.Object queryText_ = ""; + /** + * + * + *
            +       * Optional. The key of the search context, e.g. "application name".
            +       * 
            + * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The key. + */ + java.lang.String getKey(); - /** - * - * - *
            -     * Suggested query text.
            -     * 
            - * - * string query_text = 1; - * - * @return The queryText. - */ - @java.lang.Override - public java.lang.String getQueryText() { - java.lang.Object ref = queryText_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - queryText_ = s; - return s; - } + /** + * + * + *
            +       * Optional. The key of the search context, e.g. "application name".
            +       * 
            + * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for key. + */ + com.google.protobuf.ByteString getKeyBytes(); + + /** + * + * + *
            +       * Optional. The value of the search context, e.g. "DesignApp".
            +       * 
            + * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + * + * + *
            +       * Optional. The value of the search context, e.g. "DesignApp".
            +       * 
            + * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); } /** * * *
            -     * Suggested query text.
            +     * Search context is information useful for knowledge search that helps
            +     * enrich the query.
            +     * Example:
            +     * search_context {
            +     * key: "application name"
            +     * value: "DesignApp"
            +     * }
                  * 
            * - * string query_text = 1; - * - * @return The bytes for queryText. + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext} */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryTextBytes() { - java.lang.Object ref = queryText_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - queryText_ = 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 class SearchContext extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + SearchContextOrBuilder { + private static final long serialVersionUID = 0L; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryText_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, queryText_); + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchContext"); } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + // Use SearchContext.newBuilder() to construct. + private SearchContext(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryText_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, queryText_); + private SearchContext() { + key_ = ""; + value_ = ""; } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor; } - if (!(obj - instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery)) { - return super.equals(obj); + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.Builder.class); } - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery other = - (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) obj; - if (!getQueryText().equals(other.getQueryText())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + public static final int KEY_FIELD_NUMBER = 1; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + + /** + * + * + *
            +       * Optional. The key of the search context, e.g. "application name".
            +       * 
            + * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUERY_TEXT_FIELD_NUMBER; - hash = (53 * hash) + getQueryText().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +       * Optional. The key of the search context, e.g. "application name".
            +       * 
            + * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + public static final int VALUE_FIELD_NUMBER = 2; - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom( - 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.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
            -     * Represents a suggested query.
            -     * 
            - * - * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQueryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_descriptor; + /** + * + * + *
            +       * Optional. The value of the search context, e.g. "DesignApp".
            +       * 
            + * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } } + /** + * + * + *
            +       * Optional. The value of the search context, e.g. "DesignApp".
            +       * 
            + * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for value. + */ @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.class, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.Builder - .class); + 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; + } } - // Construct using - // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } + private byte memoizedIsInitialized = -1; @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - queryText_ = ""; - return this; - } + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_descriptor; + memoizedIsInitialized = 1; + return true; } @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - .getDefaultInstance(); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, key_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, value_); + } + getUnknownFields().writeTo(output); } @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery build() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, key_); } - return result; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, value_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; } @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - buildPartial() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery result = - new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery(this); - if (bitField0_ != 0) { - buildPartial0(result); + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.queryText_ = queryText_; + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext)) { + return super.equals(obj); } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext) + obj; + + if (!getKey().equals(other.getKey())) return false; + if (!getValue().equals(other.getValue())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) { - return mergeFrom( - (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) other); - } else { - super.mergeFrom(other); - return this; + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery other) { - if (other - == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - .getDefaultInstance()) return this; - if (!other.getQueryText().isEmpty()) { - queryText_ = other.queryText_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - @java.lang.Override - public final boolean isInitialized() { - return true; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + 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 mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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: - { - queryText_ = 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; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - private int bitField0_; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - private java.lang.Object queryText_ = ""; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - /** - * - * - *
            -       * Suggested query text.
            -       * 
            - * - * string query_text = 1; - * - * @return The queryText. - */ - public java.lang.String getQueryText() { - java.lang.Object ref = queryText_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - queryText_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - /** - * - * - *
            -       * Suggested query text.
            -       * 
            - * - * string query_text = 1; - * - * @return The bytes for queryText. - */ - public com.google.protobuf.ByteString getQueryTextBytes() { - java.lang.Object ref = queryText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - queryText_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - /** - * - * - *
            -       * Suggested query text.
            -       * 
            - * - * string query_text = 1; - * - * @param value The queryText to set. - * @return This builder for chaining. - */ - public Builder setQueryText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - queryText_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - /** - * - * - *
            -       * Suggested query text.
            -       * 
            - * - * string query_text = 1; - * - * @return This builder for chaining. - */ - public Builder clearQueryText() { - queryText_ = getDefaultInstance().getQueryText(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } /** * * *
            -       * Suggested query text.
            +       * Search context is information useful for knowledge search that helps
            +       * enrich the query.
            +       * Example:
            +       * search_context {
            +       * key: "application name"
            +       * value: "DesignApp"
            +       * }
                    * 
            * - * string query_text = 1; - * - * @param value The bytes for queryText to set. - * @return This builder for chaining. + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext} */ - public Builder setQueryTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor; } - checkByteStringIsUtf8(value); - queryText_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.Builder.class); + } - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) - private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - DEFAULT_INSTANCE; + // Construct using + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext.newBuilder() + private Builder() {} - static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery(); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = ""; + value_ = ""; + return this; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SuggestedQuery parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.getDefaultInstance(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - public interface KnowledgeAnswerOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) - com.google.protobuf.MessageOrBuilder { + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + } - /** - * - * - *
            -     * The piece of text from the `source` that answers this suggested query.
            -     * 
            - * - * string answer_text = 1; - * - * @return The answerText. - */ - java.lang.String getAnswerText(); + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext) + other); + } else { + super.mergeFrom(other); + return this; + } + } - /** - * - * - *
            -     * The piece of text from the `source` that answers this suggested query.
            -     * 
            - * - * string answer_text = 1; - * - * @return The bytes for answerText. - */ - com.google.protobuf.ByteString getAnswerTextBytes(); + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
            -     * Populated if the prediction came from FAQ.
            -     * 
            - * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; - * - * - * @return Whether the faqSource field is set. - */ - boolean hasFaqSource(); + @java.lang.Override + public final boolean isInitialized() { + return true; + } - /** - * - * - *
            -     * Populated if the prediction came from FAQ.
            -     * 
            - * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; - * - * - * @return The faqSource. - */ - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - getFaqSource(); + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + value_ = 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; + } - /** - * - * - *
            -     * Populated if the prediction came from FAQ.
            -     * 
            - * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; - * - */ - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceOrBuilder - getFaqSourceOrBuilder(); + private int bitField0_; - /** - * - * - *
            -     * Populated if the prediction was Generative.
            -     * 
            - * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; - * - * - * @return Whether the generativeSource field is set. - */ - boolean hasGenerativeSource(); + private java.lang.Object key_ = ""; - /** - * - * - *
            -     * Populated if the prediction was Generative.
            -     * 
            - * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; - * - * - * @return The generativeSource. - */ - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - getGenerativeSource(); + /** + * + * + *
            +         * Optional. The key of the search context, e.g. "application name".
            +         * 
            + * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } - /** - * - * - *
            -     * Populated if the prediction was Generative.
            -     * 
            - * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; - * - */ - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder - getGenerativeSourceOrBuilder(); + /** + * + * + *
            +         * Optional. The key of the search context, e.g. "application name".
            +         * 
            + * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.SourceCase - getSourceCase(); - } + /** + * + * + *
            +         * Optional. The key of the search context, e.g. "application name".
            +         * 
            + * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
            -   * Represents an answer from Knowledge. Currently supports FAQ and Generative
            -   * answers.
            -   * 
            - * - * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer} - */ - public static final class KnowledgeAnswer extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) - KnowledgeAnswerOrBuilder { - private static final long serialVersionUID = 0L; + /** + * + * + *
            +         * Optional. The key of the search context, e.g. "application name".
            +         * 
            + * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "KnowledgeAnswer"); - } + /** + * + * + *
            +         * Optional. The key of the search context, e.g. "application name".
            +         * 
            + * + * string key = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - // Use KnowledgeAnswer.newBuilder() to construct. - private KnowledgeAnswer(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + private java.lang.Object value_ = ""; - private KnowledgeAnswer() { - answerText_ = ""; - } + /** + * + * + *
            +         * Optional. The value of the search context, e.g. "DesignApp".
            +         * 
            + * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; - } + /** + * + * + *
            +         * Optional. The value of the search context, e.g. "DesignApp".
            +         * 
            + * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.class, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.Builder - .class); - } + /** + * + * + *
            +         * Optional. The value of the search context, e.g. "DesignApp".
            +         * 
            + * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } - public interface FaqSourceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
            +         * Optional. The value of the search context, e.g. "DesignApp".
            +         * 
            + * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } - /** - * - * - *
            -       * The corresponding FAQ question.
            -       * 
            - * - * string question = 2; - * - * @return The question. - */ - java.lang.String getQuestion(); + /** + * + * + *
            +         * Optional. The value of the search context, e.g. "DesignApp".
            +         * 
            + * + * string value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } - /** - * - * - *
            -       * The corresponding FAQ question.
            -       * 
            - * - * string question = 2; - * - * @return The bytes for question. - */ - com.google.protobuf.ByteString getQuestionBytes(); - } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + } - /** - * - * - *
            -     * Details about source of FAQ answer.
            -     * 
            - * - * Protobuf type {@code - * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource} - */ - public static final class FaqSource extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - FaqSourceOrBuilder { - private static final long serialVersionUID = 0L; + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + DEFAULT_INSTANCE; static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "FaqSource"); + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext(); } - // Use FaqSource.newBuilder() to construct. - private FaqSource(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + getDefaultInstance() { + return DEFAULT_INSTANCE; } - private FaqSource() { - question_ = ""; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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; } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; } @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .class, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .Builder.class); + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - public static final int QUESTION_FIELD_NUMBER = 2; + public static final int QUERY_TEXT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object question_ = ""; + @SuppressWarnings("serial") + private volatile java.lang.Object queryText_ = ""; - /** - * - * - *
            -       * The corresponding FAQ question.
            -       * 
            - * - * string question = 2; - * - * @return The question. - */ - @java.lang.Override - public java.lang.String getQuestion() { - java.lang.Object ref = question_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - question_ = s; - return s; - } + /** + * + * + *
            +     * Suggested query text.
            +     * 
            + * + * string query_text = 1; + * + * @return The queryText. + */ + @java.lang.Override + public java.lang.String getQueryText() { + java.lang.Object ref = queryText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryText_ = s; + return s; } + } - /** - * - * - *
            -       * The corresponding FAQ question.
            -       * 
            - * - * string question = 2; - * - * @return The bytes for question. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQuestionBytes() { - java.lang.Object ref = question_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - question_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + /** + * + * + *
            +     * Suggested query text.
            +     * 
            + * + * string query_text = 1; + * + * @return The bytes for queryText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryTextBytes() { + java.lang.Object ref = queryText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - private byte memoizedIsInitialized = -1; + public static final int SEARCH_CONTEXTS_FIELD_NUMBER = 4; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext> + searchContexts_; - memoizedIsInitialized = 1; - return true; - } + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext> + getSearchContextsList() { + return searchContexts_; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, question_); - } - getUnknownFields().writeTo(output); - } + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + getSearchContextsOrBuilderList() { + return searchContexts_; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getSearchContextsCount() { + return searchContexts_.size(); + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, question_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + getSearchContexts(int index) { + return searchContexts_.get(index); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource)) { - return super.equals(obj); - } - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource other = - (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - obj; + /** + * + * + *
            +     * Optional. The search contexts for the query.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder + getSearchContextsOrBuilder(int index) { + return searchContexts_.get(index); + } - if (!getQuestion().equals(other.getQuestion())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + private byte memoizedIsInitialized = -1; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUESTION_FIELD_NUMBER; - hash = (53 * hash) + getQuestion().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + memoizedIsInitialized = 1; + return true; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, queryText_); } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + for (int i = 0; i < searchContexts_.size(); i++) { + output.writeMessage(4, searchContexts_.get(i)); } + getUnknownFields().writeTo(output); + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - 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 int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(queryText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, queryText_); } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); + for (int i = 0; i < searchContexts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, searchContexts_.get(i)); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + if (!(obj + instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery)) { + return super.equals(obj); } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) obj; - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + if (!getQueryText().equals(other.getQueryText())) return false; + if (!getSearchContextsList().equals(other.getSearchContextsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + QUERY_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getQueryText().hashCode(); + if (getSearchContextsCount() > 0) { + hash = (37 * hash) + SEARCH_CONTEXTS_FIELD_NUMBER; + hash = (53 * hash) + getSearchContextsList().hashCode(); } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + 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.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseFrom( + 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.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Represents a suggested query.
            +     * 
            + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQueryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_descriptor; } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.Builder + .class); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); + // Construct using + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); } - public static Builder newBuilder( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + queryText_ = ""; + if (searchContextsBuilder_ == null) { + searchContexts_ = java.util.Collections.emptyList(); + } else { + searchContexts_ = null; + searchContextsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; } @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_descriptor; } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance(); } - /** - * - * - *
            -       * Details about source of FAQ answer.
            -       * 
            - * - * Protobuf type {@code - * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource.class, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource.Builder.class); + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } - // Construct using - // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery result) { + if (searchContextsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + searchContexts_ = java.util.Collections.unmodifiableList(searchContexts_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.searchContexts_ = searchContexts_; + } else { + result.searchContexts_ = searchContextsBuilder_.build(); } + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - question_ = ""; - return this; + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.queryText_ = queryText_; } + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) other); + } else { + super.mergeFrom(other); + return this; } + } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance()) return this; + if (!other.getQueryText().isEmpty()) { + queryText_ = other.queryText_; + bitField0_ |= 0x00000001; + onChanged(); } - - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - build() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + if (searchContextsBuilder_ == null) { + if (!other.searchContexts_.isEmpty()) { + if (searchContexts_.isEmpty()) { + searchContexts_ = other.searchContexts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSearchContextsIsMutable(); + searchContexts_.addAll(other.searchContexts_); + } + onChanged(); } - return result; - } - - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - buildPartial() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - result = - new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource(this); - if (bitField0_ != 0) { - buildPartial0(result); + } else { + if (!other.searchContexts_.isEmpty()) { + if (searchContextsBuilder_.isEmpty()) { + searchContextsBuilder_.dispose(); + searchContextsBuilder_ = null; + searchContexts_ = other.searchContexts_; + bitField0_ = (bitField0_ & ~0x00000002); + searchContextsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSearchContextsFieldBuilder() + : null; + } else { + searchContextsBuilder_.addAllMessages(other.searchContexts_); + } } - onBuilt(); - return result; } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - private void buildPartial0( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.question_ = question_; - } - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) { - return mergeFrom( - (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource) - other); - } else { - super.mergeFrom(other); - return 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(); } - - public Builder mergeFrom( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - other) { - if (other - == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance()) return this; - if (!other.getQuestion().isEmpty()) { - question_ = other.question_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + queryText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 34: + { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .SuggestedQuery.SearchContext.parser(), + extensionRegistry); + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.add(m); + } else { + searchContextsBuilder_.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(); - return this; + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object queryText_ = ""; + + /** + * + * + *
            +       * Suggested query text.
            +       * 
            + * + * string query_text = 1; + * + * @return The queryText. + */ + public java.lang.String getQueryText() { + java.lang.Object ref = queryText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryText_ = s; + return s; + } else { + return (java.lang.String) ref; } + } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
            +       * Suggested query text.
            +       * 
            + * + * string query_text = 1; + * + * @return The bytes for queryText. + */ + public com.google.protobuf.ByteString getQueryTextBytes() { + java.lang.Object ref = queryText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (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: - { - question_ = input.readStringRequireUtf8(); - 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; + /** + * + * + *
            +       * Suggested query text.
            +       * 
            + * + * string query_text = 1; + * + * @param value The queryText to set. + * @return This builder for chaining. + */ + public Builder setQueryText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + queryText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - private int bitField0_; + /** + * + * + *
            +       * Suggested query text.
            +       * 
            + * + * string query_text = 1; + * + * @return This builder for chaining. + */ + public Builder clearQueryText() { + queryText_ = getDefaultInstance().getQueryText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } - private java.lang.Object question_ = ""; + /** + * + * + *
            +       * Suggested query text.
            +       * 
            + * + * string query_text = 1; + * + * @param value The bytes for queryText to set. + * @return This builder for chaining. + */ + public Builder setQueryTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - /** - * - * - *
            -         * The corresponding FAQ question.
            -         * 
            - * - * string question = 2; - * - * @return The question. - */ - public java.lang.String getQuestion() { - java.lang.Object ref = question_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - question_ = s; - return s; - } else { - return (java.lang.String) ref; - } + private java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext> + searchContexts_ = java.util.Collections.emptyList(); + + private void ensureSearchContextsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + searchContexts_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext>(searchContexts_); + bitField0_ |= 0x00000002; } + } - /** - * - * - *
            -         * The corresponding FAQ question.
            -         * 
            - * - * string question = 2; - * - * @return The bytes for question. - */ - public com.google.protobuf.ByteString getQuestionBytes() { - java.lang.Object ref = question_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - question_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + searchContextsBuilder_; + + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext> + getSearchContextsList() { + if (searchContextsBuilder_ == null) { + return java.util.Collections.unmodifiableList(searchContexts_); + } else { + return searchContextsBuilder_.getMessageList(); } + } - /** - * - * - *
            -         * The corresponding FAQ question.
            -         * 
            - * - * string question = 2; - * - * @param value The question to set. - * @return This builder for chaining. - */ - public Builder setQuestion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - question_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getSearchContextsCount() { + if (searchContextsBuilder_ == null) { + return searchContexts_.size(); + } else { + return searchContextsBuilder_.getCount(); } + } - /** - * - * - *
            -         * The corresponding FAQ question.
            -         * 
            - * - * string question = 2; - * - * @return This builder for chaining. - */ - public Builder clearQuestion() { - question_ = getDefaultInstance().getQuestion(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + getSearchContexts(int index) { + if (searchContextsBuilder_ == null) { + return searchContexts_.get(index); + } else { + return searchContextsBuilder_.getMessage(index); } + } - /** - * - * - *
            -         * The corresponding FAQ question.
            -         * 
            - * - * string question = 2; - * - * @param value The bytes for question to set. - * @return This builder for chaining. - */ - public Builder setQuestionBytes(com.google.protobuf.ByteString value) { + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchContexts( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + value) { + if (searchContextsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - question_ = value; - bitField0_ |= 0x00000001; + ensureSearchContextsIsMutable(); + searchContexts_.set(index, value); onChanged(); - return this; + } else { + searchContextsBuilder_.setMessage(index, value); } - - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + return this; } - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) - private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource(); - } + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchContexts( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder + builderForValue) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.set(index, builderForValue.build()); + onChanged(); + } else { + searchContextsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource - getDefaultInstance() { - return DEFAULT_INSTANCE; + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchContexts( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + value) { + if (searchContextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchContextsIsMutable(); + searchContexts_.add(value); + onChanged(); + } else { + searchContextsBuilder_.addMessage(value); + } + return this; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FaqSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchContexts( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + value) { + if (searchContextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchContextsIsMutable(); + searchContexts_.add(index, value); + onChanged(); + } else { + searchContextsBuilder_.addMessage(index, value); + } + return this; + } - public static com.google.protobuf.Parser parser() { - return PARSER; + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchContexts( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder + builderForValue) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.add(builderForValue.build()); + onChanged(); + } else { + searchContextsBuilder_.addMessage(builderForValue.build()); + } + return this; } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addSearchContexts( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder + builderForValue) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.add(index, builderForValue.build()); + onChanged(); + } else { + searchContextsBuilder_.addMessage(index, builderForValue.build()); + } + return this; } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllSearchContexts( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext> + values) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, searchContexts_); + onChanged(); + } else { + searchContextsBuilder_.addAllMessages(values); + } + return this; } - } - public interface GenerativeSourceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSearchContexts() { + if (searchContextsBuilder_ == null) { + searchContexts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + searchContextsBuilder_.clear(); + } + return this; + } /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Optional. The search contexts for the query.
                    * 
            * * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - java.util.List< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet> - getSnippetsList(); + public Builder removeSearchContexts(int index) { + if (searchContextsBuilder_ == null) { + ensureSearchContextsIsMutable(); + searchContexts_.remove(index); + onChanged(); + } else { + searchContextsBuilder_.remove(index); + } + return this; + } /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Optional. The search contexts for the query.
                    * 
            * * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - getSnippets(int index); + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder + getSearchContextsBuilder(int index) { + return internalGetSearchContextsFieldBuilder().getBuilder(index); + } /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Optional. The search contexts for the query.
                    * 
            * * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - int getSnippetsCount(); + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder + getSearchContextsOrBuilder(int index) { + if (searchContextsBuilder_ == null) { + return searchContexts_.get(index); + } else { + return searchContextsBuilder_.getMessageOrBuilder(index); + } + } /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Optional. The search contexts for the query.
                    * 
            * * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - java.util.List< + public java.util.List< ? extends - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> - getSnippetsOrBuilderList(); + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + getSearchContextsOrBuilderList() { + if (searchContextsBuilder_ != null) { + return searchContextsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(searchContexts_); + } + } /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Optional. The search contexts for the query.
                    * 
            * * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; * */ - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .SnippetOrBuilder - getSnippetsOrBuilder(int index); - } - - /** - * - * - *
            -     * Details about source of Generative answer.
            -     * 
            - * - * Protobuf type {@code - * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource} - */ - public static final class GenerativeSource extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) - GenerativeSourceOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "GenerativeSource"); + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder + addSearchContextsBuilder() { + return internalGetSearchContextsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.getDefaultInstance()); } - // Use GenerativeSource.newBuilder() to construct. - private GenerativeSource(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder + addSearchContextsBuilder(int index) { + return internalGetSearchContextsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.getDefaultInstance()); } - private GenerativeSource() { - snippets_ = java.util.Collections.emptyList(); + /** + * + * + *
            +       * Optional. The search contexts for the query.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext search_contexts = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder> + getSearchContextsBuilderList() { + return internalGetSearchContextsFieldBuilder().getBuilderList(); } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContext + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder> + internalGetSearchContextsFieldBuilder() { + if (searchContextsBuilder_ == null) { + searchContextsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContext.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .SearchContextOrBuilder>( + searchContexts_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + searchContexts_ = null; + } + return searchContextsBuilder_; } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.class, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Builder.class); - } - - public interface SnippetOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - com.google.protobuf.MessageOrBuilder { + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) + } - /** - * - * - *
            -         * URI the data is sourced from.
            -         * 
            - * - * string uri = 2; - * - * @return The uri. - */ - java.lang.String getUri(); + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + DEFAULT_INSTANCE; - /** - * - * - *
            -         * URI the data is sourced from.
            -         * 
            - * - * string uri = 2; - * - * @return The bytes for uri. - */ - com.google.protobuf.ByteString getUriBytes(); + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery(); + } - /** - * - * - *
            -         * Text taken from that URI.
            -         * 
            - * - * string text = 3; - * - * @return The text. - */ - java.lang.String getText(); + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + getDefaultInstance() { + return DEFAULT_INSTANCE; + } - /** - * - * - *
            -         * Text taken from that URI.
            -         * 
            - * - * string text = 3; - * - * @return The bytes for text. - */ - com.google.protobuf.ByteString getTextBytes(); + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuggestedQuery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - /** - * - * - *
            -         * Title of the document.
            -         * 
            - * - * string title = 4; - * - * @return The title. - */ - java.lang.String getTitle(); + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
            -         * Title of the document.
            -         * 
            - * - * string title = 4; - * - * @return The bytes for title. - */ - com.google.protobuf.ByteString getTitleBytes(); + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * - * - *
            -         * Metadata of the document.
            -         * 
            - * - * .google.protobuf.Struct metadata = 5; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - /** - * - * - *
            -         * Metadata of the document.
            -         * 
            - * - * .google.protobuf.Struct metadata = 5; - * - * @return The metadata. - */ - com.google.protobuf.Struct getMetadata(); + public interface AdditionalSuggestedQueryResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
            -         * Metadata of the document.
            -         * 
            - * - * .google.protobuf.Struct metadata = 5; - */ - com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); - } + /** + * + * + *
            +     * Output only. The suggested query based on the context.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the suggestedQuery field is set. + */ + boolean hasSuggestedQuery(); - /** - * - * - *
            -       * Snippet Source for a Generative Prediction.
            -       * 
            - * - * Protobuf type {@code - * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet} - */ - public static final class Snippet extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - SnippetOrBuilder { - private static final long serialVersionUID = 0L; + /** + * + * + *
            +     * Output only. The suggested query based on the context.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The suggestedQuery. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery getSuggestedQuery(); - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 2, - /* suffix= */ "", - "Snippet"); - } + /** + * + * + *
            +     * Output only. The suggested query based on the context.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQueryOrBuilder + getSuggestedQueryOrBuilder(); - // Use Snippet.newBuilder() to construct. - private Snippet(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } + /** + * + * + *
            +     * Output only. The name of the answer record.
            +     * Format: `projects/<Project ID>/locations/<Location
            +     * ID>/answerRecords/<Answer Record ID>`
            +     * 
            + * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The answerRecord. + */ + java.lang.String getAnswerRecord(); - private Snippet() { - uri_ = ""; - text_ = ""; - title_ = ""; - } + /** + * + * + *
            +     * Output only. The name of the answer record.
            +     * Format: `projects/<Project ID>/locations/<Location
            +     * ID>/answerRecords/<Answer Record ID>`
            +     * 
            + * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for answerRecord. + */ + com.google.protobuf.ByteString getAnswerRecordBytes(); + } + + /** + * + * + *
            +   * Represents a single suggested query result.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult} + */ + public static final class AdditionalSuggestedQueryResult + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + AdditionalSuggestedQueryResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AdditionalSuggestedQueryResult"); + } + + // Use AdditionalSuggestedQueryResult.newBuilder() to construct. + private AdditionalSuggestedQueryResult( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AdditionalSuggestedQueryResult() { + answerRecord_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.Builder.class); + } + + private int bitField0_; + public static final int SUGGESTED_QUERY_FIELD_NUMBER = 1; + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + suggestedQuery_; + + /** + * + * + *
            +     * Output only. The suggested query based on the context.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the suggestedQuery field is set. + */ + @java.lang.Override + public boolean hasSuggestedQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Output only. The suggested query based on the context.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The suggestedQuery. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + getSuggestedQuery() { + return suggestedQuery_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance() + : suggestedQuery_; + } + + /** + * + * + *
            +     * Output only. The suggested query based on the context.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQueryOrBuilder + getSuggestedQueryOrBuilder() { + return suggestedQuery_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance() + : suggestedQuery_; + } + + public static final int ANSWER_RECORD_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object answerRecord_ = ""; + + /** + * + * + *
            +     * Output only. The name of the answer record.
            +     * Format: `projects/<Project ID>/locations/<Location
            +     * ID>/answerRecords/<Answer Record ID>`
            +     * 
            + * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The answerRecord. + */ + @java.lang.Override + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerRecord_ = s; + return s; + } + } + + /** + * + * + *
            +     * Output only. The name of the answer record.
            +     * Format: `projects/<Project ID>/locations/<Location
            +     * ID>/answerRecords/<Answer Record ID>`
            +     * 
            + * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for answerRecord. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSuggestedQuery()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, answerRecord_); + } + 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, getSuggestedQuery()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(answerRecord_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, answerRecord_); + } + 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.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult) + obj; + + if (hasSuggestedQuery() != other.hasSuggestedQuery()) return false; + if (hasSuggestedQuery()) { + if (!getSuggestedQuery().equals(other.getSuggestedQuery())) return false; + } + if (!getAnswerRecord().equals(other.getAnswerRecord())) 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 (hasSuggestedQuery()) { + hash = (37 * hash) + SUGGESTED_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getSuggestedQuery().hashCode(); + } + hash = (37 * hash) + ANSWER_RECORD_FIELD_NUMBER; + hash = (53 * hash) + getAnswerRecord().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + 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.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom( + 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.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Represents a single suggested query result.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSuggestedQueryFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + suggestedQuery_ = null; + if (suggestedQueryBuilder_ != null) { + suggestedQueryBuilder_.dispose(); + suggestedQueryBuilder_ = null; + } + answerRecord_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.suggestedQuery_ = + suggestedQueryBuilder_ == null ? suggestedQuery_ : suggestedQueryBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.answerRecord_ = answerRecord_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.getDefaultInstance()) return this; + if (other.hasSuggestedQuery()) { + mergeSuggestedQuery(other.getSuggestedQuery()); + } + if (!other.getAnswerRecord().isEmpty()) { + answerRecord_ = other.answerRecord_; + 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: + { + input.readMessage( + internalGetSuggestedQueryFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 42: + { + answerRecord_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + suggestedQuery_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQueryOrBuilder> + suggestedQueryBuilder_; + + /** + * + * + *
            +       * Output only. The suggested query based on the context.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the suggestedQuery field is set. + */ + public boolean hasSuggestedQuery() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Output only. The suggested query based on the context.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The suggestedQuery. + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + getSuggestedQuery() { + if (suggestedQueryBuilder_ == null) { + return suggestedQuery_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance() + : suggestedQuery_; + } else { + return suggestedQueryBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Output only. The suggested query based on the context.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSuggestedQuery( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery value) { + if (suggestedQueryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + suggestedQuery_ = value; + } else { + suggestedQueryBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The suggested query based on the context.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSuggestedQuery( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.Builder + builderForValue) { + if (suggestedQueryBuilder_ == null) { + suggestedQuery_ = builderForValue.build(); + } else { + suggestedQueryBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The suggested query based on the context.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSuggestedQuery( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery value) { + if (suggestedQueryBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && suggestedQuery_ != null + && suggestedQuery_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance()) { + getSuggestedQueryBuilder().mergeFrom(value); + } else { + suggestedQuery_ = value; + } + } else { + suggestedQueryBuilder_.mergeFrom(value); + } + if (suggestedQuery_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Output only. The suggested query based on the context.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSuggestedQuery() { + bitField0_ = (bitField0_ & ~0x00000001); + suggestedQuery_ = null; + if (suggestedQueryBuilder_ != null) { + suggestedQueryBuilder_.dispose(); + suggestedQueryBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The suggested query based on the context.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.Builder + getSuggestedQueryBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetSuggestedQueryFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Output only. The suggested query based on the context.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQueryOrBuilder + getSuggestedQueryOrBuilder() { + if (suggestedQueryBuilder_ != null) { + return suggestedQueryBuilder_.getMessageOrBuilder(); + } else { + return suggestedQuery_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery + .getDefaultInstance() + : suggestedQuery_; + } + } + + /** + * + * + *
            +       * Output only. The suggested query based on the context.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery suggested_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQueryOrBuilder> + internalGetSuggestedQueryFieldBuilder() { + if (suggestedQueryBuilder_ == null) { + suggestedQueryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .SuggestedQueryOrBuilder>( + getSuggestedQuery(), getParentForChildren(), isClean()); + suggestedQuery_ = null; + } + return suggestedQueryBuilder_; + } + + private java.lang.Object answerRecord_ = ""; + + /** + * + * + *
            +       * Output only. The name of the answer record.
            +       * Format: `projects/<Project ID>/locations/<Location
            +       * ID>/answerRecords/<Answer Record ID>`
            +       * 
            + * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The answerRecord. + */ + public java.lang.String getAnswerRecord() { + java.lang.Object ref = answerRecord_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerRecord_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Output only. The name of the answer record.
            +       * Format: `projects/<Project ID>/locations/<Location
            +       * ID>/answerRecords/<Answer Record ID>`
            +       * 
            + * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for answerRecord. + */ + public com.google.protobuf.ByteString getAnswerRecordBytes() { + java.lang.Object ref = answerRecord_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerRecord_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Output only. The name of the answer record.
            +       * Format: `projects/<Project ID>/locations/<Location
            +       * ID>/answerRecords/<Answer Record ID>`
            +       * 
            + * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecord(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + answerRecord_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The name of the answer record.
            +       * Format: `projects/<Project ID>/locations/<Location
            +       * ID>/answerRecords/<Answer Record ID>`
            +       * 
            + * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAnswerRecord() { + answerRecord_ = getDefaultInstance().getAnswerRecord(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. The name of the answer record.
            +       * Format: `projects/<Project ID>/locations/<Location
            +       * ID>/answerRecords/<Answer Record ID>`
            +       * 
            + * + * + * string answer_record = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for answerRecord to set. + * @return This builder for chaining. + */ + public Builder setAnswerRecordBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerRecord_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult(); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdditionalSuggestedQueryResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface KnowledgeAnswerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * The piece of text from the `source` that answers this suggested query.
            +     * 
            + * + * string answer_text = 1; + * + * @return The answerText. + */ + java.lang.String getAnswerText(); + + /** + * + * + *
            +     * The piece of text from the `source` that answers this suggested query.
            +     * 
            + * + * string answer_text = 1; + * + * @return The bytes for answerText. + */ + com.google.protobuf.ByteString getAnswerTextBytes(); + + /** + * + * + *
            +     * Populated if the prediction came from FAQ.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + * + * @return Whether the faqSource field is set. + */ + boolean hasFaqSource(); + + /** + * + * + *
            +     * Populated if the prediction came from FAQ.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + * + * @return The faqSource. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + getFaqSource(); + + /** + * + * + *
            +     * Populated if the prediction came from FAQ.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceOrBuilder + getFaqSourceOrBuilder(); + + /** + * + * + *
            +     * Populated if the prediction was Generative.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + * + * @return Whether the generativeSource field is set. + */ + boolean hasGenerativeSource(); + + /** + * + * + *
            +     * Populated if the prediction was Generative.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + * + * @return The generativeSource. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getGenerativeSource(); + + /** + * + * + *
            +     * Populated if the prediction was Generative.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getGenerativeSourceOrBuilder(); + + /** + * + * + *
            +     * Populated if the prediction was from Playbook.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + * + * @return Whether the playbookSource field is set. + */ + boolean hasPlaybookSource(); + + /** + * + * + *
            +     * Populated if the prediction was from Playbook.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + * + * @return The playbookSource. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getPlaybookSource(); + + /** + * + * + *
            +     * Populated if the prediction was from Playbook.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getPlaybookSourceOrBuilder(); + + /** + * + * + *
            +     * Populated if the prediction was from an event.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + * + * @return Whether the eventSource field is set. + */ + boolean hasEventSource(); + + /** + * + * + *
            +     * Populated if the prediction was from an event.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + * + * @return The eventSource. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + getEventSource(); + + /** + * + * + *
            +     * Populated if the prediction was from an event.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSourceOrBuilder + getEventSourceOrBuilder(); + + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.SourceCase + getSourceCase(); + } + + /** + * + * + *
            +   * Represents an answer from Knowledge. Currently supports FAQ and Generative
            +   * answers.
            +   * 
            + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer} + */ + public static final class KnowledgeAnswer extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) + KnowledgeAnswerOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "KnowledgeAnswer"); + } + + // Use KnowledgeAnswer.newBuilder() to construct. + private KnowledgeAnswer(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private KnowledgeAnswer() { + answerText_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.Builder + .class); + } + + public interface FaqSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * The corresponding FAQ question.
            +       * 
            + * + * string question = 2; + * + * @return The question. + */ + java.lang.String getQuestion(); + + /** + * + * + *
            +       * The corresponding FAQ question.
            +       * 
            + * + * string question = 2; + * + * @return The bytes for question. + */ + com.google.protobuf.ByteString getQuestionBytes(); + } + + /** + * + * + *
            +     * Details about source of FAQ answer.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource} + */ + public static final class FaqSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + FaqSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FaqSource"); + } + + // Use FaqSource.newBuilder() to construct. + private FaqSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FaqSource() { + question_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder.class); + } + + public static final int QUESTION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object question_ = ""; + + /** + * + * + *
            +       * The corresponding FAQ question.
            +       * 
            + * + * string question = 2; + * + * @return The question. + */ + @java.lang.Override + public java.lang.String getQuestion() { + java.lang.Object ref = question_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + question_ = s; + return s; + } + } + + /** + * + * + *
            +       * The corresponding FAQ question.
            +       * 
            + * + * string question = 2; + * + * @return The bytes for question. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQuestionBytes() { + java.lang.Object ref = question_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + question_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, question_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(question_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, question_); + } + 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.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + obj; + + if (!getQuestion().equals(other.getQuestion())) 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) + QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getQuestion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + 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.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseFrom( + 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.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Details about source of FAQ answer.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + question_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.question_ = question_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance()) return this; + if (!other.getQuestion().isEmpty()) { + question_ = other.question_; + 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 18: + { + question_ = input.readStringRequireUtf8(); + 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 java.lang.Object question_ = ""; + + /** + * + * + *
            +         * The corresponding FAQ question.
            +         * 
            + * + * string question = 2; + * + * @return The question. + */ + public java.lang.String getQuestion() { + java.lang.Object ref = question_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + question_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * The corresponding FAQ question.
            +         * 
            + * + * string question = 2; + * + * @return The bytes for question. + */ + public com.google.protobuf.ByteString getQuestionBytes() { + java.lang.Object ref = question_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + question_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * The corresponding FAQ question.
            +         * 
            + * + * string question = 2; + * + * @param value The question to set. + * @return This builder for chaining. + */ + public Builder setQuestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + question_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * The corresponding FAQ question.
            +         * 
            + * + * string question = 2; + * + * @return This builder for chaining. + */ + public Builder clearQuestion() { + question_ = getDefaultInstance().getQuestion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * The corresponding FAQ question.
            +         * 
            + * + * string question = 2; + * + * @param value The bytes for question to set. + * @return This builder for chaining. + */ + public Builder setQuestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + question_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource(); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FaqSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface GenerativeSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet> + getSnippetsList(); + + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + getSnippets(int index); + + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + int getSnippetsCount(); + + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + getSnippetsOrBuilderList(); + + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .SnippetOrBuilder + getSnippetsOrBuilder(int index); + } + + /** + * + * + *
            +     * Details about source of Generative answer.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource} + */ + public static final class GenerativeSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + GenerativeSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GenerativeSource"); + } + + // Use GenerativeSource.newBuilder() to construct. + private GenerativeSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerativeSource() { + snippets_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder.class); + } + + public interface SnippetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +         * URI the data is sourced from.
            +         * 
            + * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
            +         * URI the data is sourced from.
            +         * 
            + * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
            +         * Text taken from that URI.
            +         * 
            + * + * string text = 3; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
            +         * Text taken from that URI.
            +         * 
            + * + * string text = 3; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
            +         * Title of the document.
            +         * 
            + * + * string title = 4; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
            +         * Title of the document.
            +         * 
            + * + * string title = 4; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
            +         * Metadata of the document.
            +         * 
            + * + * .google.protobuf.Struct metadata = 5; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + + /** + * + * + *
            +         * Metadata of the document.
            +         * 
            + * + * .google.protobuf.Struct metadata = 5; + * + * @return The metadata. + */ + com.google.protobuf.Struct getMetadata(); + + /** + * + * + *
            +         * Metadata of the document.
            +         * 
            + * + * .google.protobuf.Struct metadata = 5; + */ + com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); + } + + /** + * + * + *
            +       * Snippet Source for a Generative Prediction.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet} + */ + public static final class Snippet extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + SnippetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Snippet"); + } + + // Use Snippet.newBuilder() to construct. + private Snippet(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Snippet() { + uri_ = ""; + text_ = ""; + title_ = ""; + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2beta1.ParticipantProto .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.class, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder.class); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder.class); + } + + private int bitField0_; + public static final int URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uri_ = ""; + + /** + * + * + *
            +         * URI the data is sourced from.
            +         * 
            + * + * 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 the data is sourced from.
            +         * 
            + * + * 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 TEXT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object text_ = ""; + + /** + * + * + *
            +         * Text taken from that URI.
            +         * 
            + * + * 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 taken from that URI.
            +         * 
            + * + * 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; + } + } + + public static final int TITLE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
            +         * Title of the document.
            +         * 
            + * + * string title = 4; + * + * @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 = 4; + * + * @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; + } + } + + public static final int METADATA_FIELD_NUMBER = 5; + private com.google.protobuf.Struct metadata_; + + /** + * + * + *
            +         * Metadata of the document.
            +         * 
            + * + * .google.protobuf.Struct metadata = 5; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +         * Metadata of the document.
            +         * 
            + * + * .google.protobuf.Struct metadata = 5; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.Struct getMetadata() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + + /** + * + * + *
            +         * Metadata of the document.
            +         * 
            + * + * .google.protobuf.Struct metadata = 5; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? com.google.protobuf.Struct.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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, text_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, title_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, text_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, title_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, 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.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Snippet + other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet) + obj; + + if (!getUri().equals(other.getUri())) return false; + if (!getText().equals(other.getText())) return false; + if (!getTitle().equals(other.getTitle())) 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(); + hash = (37 * hash) + URI_FIELD_NUMBER; + hash = (53 * hash) + getUri().hashCode(); + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + hash = (37 * hash) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().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.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + 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.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom( + 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.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +         * Snippet Source for a Generative Prediction.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder.class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + uri_ = ""; + text_ = ""; + title_ = ""; + 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.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.uri_ = uri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.text_ = text_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.title_ = title_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.getDefaultInstance()) return this; + if (!other.getUri().isEmpty()) { + uri_ = other.uri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getText().isEmpty()) { + text_ = other.text_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000004; + onChanged(); + } + 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 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 18 + case 26: + { + text_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); + 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 java.lang.Object uri_ = ""; + + /** + * + * + *
            +           * URI the data is sourced from.
            +           * 
            + * + * 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 the data is sourced from.
            +           * 
            + * + * 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 the data is sourced from.
            +           * 
            + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +           * URI the data is sourced from.
            +           * 
            + * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +           * URI the data is sourced from.
            +           * 
            + * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object text_ = ""; + + /** + * + * + *
            +           * Text taken from that URI.
            +           * 
            + * + * 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 taken from that URI.
            +           * 
            + * + * 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 taken from that URI.
            +           * 
            + * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Text taken from that URI.
            +           * 
            + * + * string text = 3; + * + * @return This builder for chaining. + */ + public Builder clearText() { + text_ = getDefaultInstance().getText(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +           * Text taken from that URI.
            +           * 
            + * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object title_ = ""; + + /** + * + * + *
            +           * Title of the document.
            +           * 
            + * + * string title = 4; + * + * @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 = 4; + * + * @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 = 4; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +           * Title of the document.
            +           * 
            + * + * string title = 4; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +           * Title of the document.
            +           * 
            + * + * string title = 4; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Struct metadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + metadataBuilder_; - private int bitField0_; - public static final int URI_FIELD_NUMBER = 2; + /** + * + * + *
            +           * Metadata of the document.
            +           * 
            + * + * .google.protobuf.Struct metadata = 5; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000008) != 0); + } - @SuppressWarnings("serial") - private volatile java.lang.Object uri_ = ""; + /** + * + * + *
            +           * Metadata of the document.
            +           * 
            + * + * .google.protobuf.Struct metadata = 5; + * + * @return The metadata. + */ + public com.google.protobuf.Struct getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } - /** - * - * - *
            -         * URI the data is sourced from.
            -         * 
            - * - * 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; + /** + * + * + *
            +           * Metadata of the document.
            +           * 
            + * + * .google.protobuf.Struct metadata = 5; + */ + public Builder setMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; } - } - /** - * - * - *
            -         * URI the data is sourced from.
            -         * 
            - * - * 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; + /** + * + * + *
            +           * Metadata of the document.
            +           * 
            + * + * .google.protobuf.Struct metadata = 5; + */ + public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; } - } - public static final int TEXT_FIELD_NUMBER = 3; + /** + * + * + *
            +           * Metadata of the document.
            +           * 
            + * + * .google.protobuf.Struct metadata = 5; + */ + public Builder mergeMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } - @SuppressWarnings("serial") - private volatile java.lang.Object text_ = ""; + /** + * + * + *
            +           * Metadata of the document.
            +           * 
            + * + * .google.protobuf.Struct metadata = 5; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000008); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } - /** - * - * - *
            -         * Text taken from that URI.
            -         * 
            - * - * 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; + /** + * + * + *
            +           * Metadata of the document.
            +           * 
            + * + * .google.protobuf.Struct metadata = 5; + */ + public com.google.protobuf.Struct.Builder getMetadataBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetMetadataFieldBuilder().getBuilder(); } - } - /** - * - * - *
            -         * Text taken from that URI.
            -         * 
            - * - * 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; + /** + * + * + *
            +           * Metadata of the document.
            +           * 
            + * + * .google.protobuf.Struct metadata = 5; + */ + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : metadata_; + } + } + + /** + * + * + *
            +           * Metadata of the document.
            +           * 
            + * + * .google.protobuf.Struct metadata = 5; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; } - } - public static final int TITLE_FIELD_NUMBER = 4; + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + } - @SuppressWarnings("serial") - private volatile java.lang.Object title_ = ""; + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .KnowledgeAnswer.GenerativeSource.Snippet + DEFAULT_INSTANCE; - /** - * - * - *
            -         * Title of the document.
            -         * 
            - * - * string title = 4; - * - * @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; - } + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet(); } - /** - * - * - *
            -         * Title of the document.
            -         * 
            - * - * string title = 4; - * - * @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; - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + getDefaultInstance() { + return DEFAULT_INSTANCE; } - public static final int METADATA_FIELD_NUMBER = 5; - private com.google.protobuf.Struct metadata_; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Snippet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; - /** - * - * - *
            -         * Metadata of the document.
            -         * 
            - * - * .google.protobuf.Struct metadata = 5; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) != 0); + public static com.google.protobuf.Parser parser() { + return PARSER; } - /** - * - * - *
            -         * Metadata of the document.
            -         * 
            - * - * .google.protobuf.Struct metadata = 5; - * - * @return The metadata. - */ @java.lang.Override - public com.google.protobuf.Struct getMetadata() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + public com.google.protobuf.Parser getParserForType() { + return PARSER; } - /** - * - * - *
            -         * Metadata of the document.
            -         * 
            - * - * .google.protobuf.Struct metadata = 5; - */ @java.lang.Override - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; } + } - private byte memoizedIsInitialized = -1; + public static final int SNIPPETS_FIELD_NUMBER = 1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet> + snippets_; - memoizedIsInitialized = 1; - return true; - } + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet> + getSnippetsList() { + return snippets_; + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, text_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, title_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getMetadata()); - } - getUnknownFields().writeTo(output); - } + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + getSnippetsOrBuilderList() { + return snippets_; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public int getSnippetsCount() { + return snippets_.size(); + } + + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + getSnippets(int index) { + return snippets_.get(index); + } - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(text_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, text_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, title_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMetadata()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + /** + * + * + *
            +       * All snippets used for this Generative Prediction, with their source URI
            +       * and data.
            +       * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder + getSnippetsOrBuilder(int index) { + return snippets_.get(index); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet)) { - return super.equals(obj); - } - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource - .Snippet - other = - (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet) - obj; + private byte memoizedIsInitialized = -1; - if (!getUri().equals(other.getUri())) return false; - if (!getText().equals(other.getText())) return false; - if (!getTitle().equals(other.getTitle())) 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 final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @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) + TEXT_FIELD_NUMBER; - hash = (53 * hash) + getText().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + memoizedIsInitialized = 1; + return true; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < snippets_.size(); i++) { + output.writeMessage(1, snippets_.get(i)); } + getUnknownFields().writeTo(output); + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + size = 0; + for (int i = 0; i < snippets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, snippets_.get(i)); } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - 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 boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource)) { + return super.equals(obj); } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + obj; - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + if (!getSnippetsList().equals(other.getSnippetsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSnippetsCount() > 0) { + hash = (37 * hash) + SNIPPETS_FIELD_NUMBER; + hash = (53 * hash) + getSnippetsList().hashCode(); } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + 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.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + 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 newBuilderForType() { - return newBuilder(); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } - public static Builder newBuilder( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } - /** - * - * - *
            -         * Snippet Source for a Generative Prediction.
            -         * 
            - * - * Protobuf type {@code - * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.class, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder.class); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } - // Construct using - // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetMetadataFieldBuilder(); - } - } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - uri_ = ""; - text_ = ""; - title_ = ""; - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - return this; - } + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; - } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.getDefaultInstance(); - } + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - build() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } + /** + * + * + *
            +       * Details about source of Generative answer.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - buildPartial() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - result = - new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder.class); + } - private void buildPartial0( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.uri_ = uri_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.text_ = text_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.title_ = title_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } + // Construct using + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.newBuilder() + private Builder() {} - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet) { - return mergeFrom( - (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet) - other); - } else { - super.mergeFrom(other); - return this; - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (snippetsBuilder_ == null) { + snippets_ = java.util.Collections.emptyList(); + } else { + snippets_ = null; + snippetsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - other) { - if (other - == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.getDefaultInstance()) return this; - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getText().isEmpty()) { - text_ = other.text_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); } + return result; + } - @java.lang.Override - public final boolean isInitialized() { - return true; + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); } + onBuilt(); + return result; + } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + result) { + if (snippetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + snippets_ = java.util.Collections.unmodifiableList(snippets_); + bitField0_ = (bitField0_ & ~0x00000001); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 18: - { - uri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 18 - case 26: - { - text_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: - { - title_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - input.readMessage( - internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); - 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; + result.snippets_ = snippets_; + } else { + result.snippets_ = snippetsBuilder_.build(); } + } - private int bitField0_; - - private java.lang.Object uri_ = ""; + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + result) { + int from_bitField0_ = bitField0_; + } - /** - * - * - *
            -           * URI the data is sourced from.
            -           * 
            - * - * 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; - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + other); + } else { + super.mergeFrom(other); + return this; } + } - /** - * - * - *
            -           * URI the data is sourced from.
            -           * 
            - * - * 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; + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance()) return this; + if (snippetsBuilder_ == null) { + if (!other.snippets_.isEmpty()) { + if (snippets_.isEmpty()) { + snippets_ = other.snippets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSnippetsIsMutable(); + snippets_.addAll(other.snippets_); + } + onChanged(); } - } - - /** - * - * - *
            -           * URI the data is sourced from.
            -           * 
            - * - * 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(); + } else { + if (!other.snippets_.isEmpty()) { + if (snippetsBuilder_.isEmpty()) { + snippetsBuilder_.dispose(); + snippetsBuilder_ = null; + snippets_ = other.snippets_; + bitField0_ = (bitField0_ & ~0x00000001); + snippetsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSnippetsFieldBuilder() + : null; + } else { + snippetsBuilder_.addAllMessages(other.snippets_); + } } - uri_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - /** - * - * - *
            -           * URI the data is sourced from.
            -           * 
            - * - * string uri = 2; - * - * @return This builder for chaining. - */ - public Builder clearUri() { - uri_ = getDefaultInstance().getUri(); - bitField0_ = (bitField0_ & ~0x00000001); - 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.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .KnowledgeAnswer.GenerativeSource.Snippet.parser(), + extensionRegistry); + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.add(m); + } else { + snippetsBuilder_.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; + } - /** - * - * - *
            -           * URI the data is sourced from.
            -           * 
            - * - * 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; + private int bitField0_; + + private java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet> + snippets_ = java.util.Collections.emptyList(); + + private void ensureSnippetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + snippets_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet>(snippets_); bitField0_ |= 0x00000001; - onChanged(); - return this; } + } - private java.lang.Object text_ = ""; + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + snippetsBuilder_; - /** - * - * - *
            -           * Text taken from that URI.
            -           * 
            - * - * 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; - } + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet> + getSnippetsList() { + if (snippetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(snippets_); + } else { + return snippetsBuilder_.getMessageList(); } + } - /** - * - * - *
            -           * Text taken from that URI.
            -           * 
            - * - * 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; - } + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public int getSnippetsCount() { + if (snippetsBuilder_ == null) { + return snippets_.size(); + } else { + return snippetsBuilder_.getCount(); } + } - /** - * - * - *
            -           * Text taken from that URI.
            -           * 
            - * - * string text = 3; - * - * @param value The text to set. - * @return This builder for chaining. - */ - public Builder setText(java.lang.String value) { + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + getSnippets(int index) { + if (snippetsBuilder_ == null) { + return snippets_.get(index); + } else { + return snippetsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder setSnippets( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + value) { + if (snippetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - text_ = value; - bitField0_ |= 0x00000002; + ensureSnippetsIsMutable(); + snippets_.set(index, value); onChanged(); - return this; + } else { + snippetsBuilder_.setMessage(index, value); } + return this; + } - /** - * - * - *
            -           * Text taken from that URI.
            -           * 
            - * - * string text = 3; - * - * @return This builder for chaining. - */ - public Builder clearText() { - text_ = getDefaultInstance().getText(); - bitField0_ = (bitField0_ & ~0x00000002); + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder setSnippets( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder + builderForValue) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.set(index, builderForValue.build()); onChanged(); - return this; + } else { + snippetsBuilder_.setMessage(index, builderForValue.build()); } + return this; + } - /** - * - * - *
            -           * Text taken from that URI.
            -           * 
            - * - * string text = 3; - * - * @param value The bytes for text to set. - * @return This builder for chaining. - */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addSnippets( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + value) { + if (snippetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - text_ = value; - bitField0_ |= 0x00000002; + ensureSnippetsIsMutable(); + snippets_.add(value); onChanged(); - return this; + } else { + snippetsBuilder_.addMessage(value); } + return this; + } - private java.lang.Object title_ = ""; - - /** - * - * - *
            -           * Title of the document.
            -           * 
            - * - * string title = 4; - * - * @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; + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addSnippets( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet + value) { + if (snippetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureSnippetsIsMutable(); + snippets_.add(index, value); + onChanged(); + } else { + snippetsBuilder_.addMessage(index, value); } + return this; + } - /** - * - * - *
            -           * Title of the document.
            -           * 
            - * - * string title = 4; - * - * @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; - } + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addSnippets( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder + builderForValue) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.add(builderForValue.build()); + onChanged(); + } else { + snippetsBuilder_.addMessage(builderForValue.build()); } + return this; + } - /** - * - * - *
            -           * Title of the document.
            -           * 
            - * - * string title = 4; - * - * @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_ |= 0x00000004; + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addSnippets( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder + builderForValue) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.add(index, builderForValue.build()); onChanged(); - return this; + } else { + snippetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder addAllSnippets( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet> + values) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snippets_); + onChanged(); + } else { + snippetsBuilder_.addAllMessages(values); } + return this; + } - /** - * - * - *
            -           * Title of the document.
            -           * 
            - * - * string title = 4; - * - * @return This builder for chaining. - */ - public Builder clearTitle() { - title_ = getDefaultInstance().getTitle(); - bitField0_ = (bitField0_ & ~0x00000004); + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder clearSnippets() { + if (snippetsBuilder_ == null) { + snippets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); - return this; + } else { + snippetsBuilder_.clear(); } + return this; + } - /** - * - * - *
            -           * Title of the document.
            -           * 
            - * - * string title = 4; - * - * @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_ |= 0x00000004; + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public Builder removeSnippets(int index) { + if (snippetsBuilder_ == null) { + ensureSnippetsIsMutable(); + snippets_.remove(index); onChanged(); - return this; + } else { + snippetsBuilder_.remove(index); } + return this; + } - private com.google.protobuf.Struct metadata_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - metadataBuilder_; + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder + getSnippetsBuilder(int index) { + return internalGetSnippetsFieldBuilder().getBuilder(index); + } - /** - * - * - *
            -           * Metadata of the document.
            -           * 
            - * - * .google.protobuf.Struct metadata = 5; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000008) != 0); + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder + getSnippetsOrBuilder(int index) { + if (snippetsBuilder_ == null) { + return snippets_.get(index); + } else { + return snippetsBuilder_.getMessageOrBuilder(index); } + } - /** - * - * - *
            -           * Metadata of the document.
            -           * 
            - * - * .google.protobuf.Struct metadata = 5; - * - * @return The metadata. - */ - public com.google.protobuf.Struct getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : metadata_; - } else { - return metadataBuilder_.getMessage(); - } + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + getSnippetsOrBuilderList() { + if (snippetsBuilder_ != null) { + return snippetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(snippets_); } + } - /** - * - * - *
            -           * Metadata of the document.
            -           * 
            - * - * .google.protobuf.Struct metadata = 5; - */ - public Builder setMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - } else { - metadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder + addSnippetsBuilder() { + return internalGetSnippetsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.getDefaultInstance()); + } + + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder + addSnippetsBuilder(int index) { + return internalGetSnippetsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.getDefaultInstance()); + } + + /** + * + * + *
            +         * All snippets used for this Generative Prediction, with their source URI
            +         * and data.
            +         * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder> + getSnippetsBuilderList() { + return internalGetSnippetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder> + internalGetSnippetsFieldBuilder() { + if (snippetsBuilder_ == null) { + snippetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Snippet.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.SnippetOrBuilder>( + snippets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + snippets_ = null; } + return snippetsBuilder_; + } - /** - * - * - *
            -           * Metadata of the document.
            -           * 
            - * - * .google.protobuf.Struct metadata = 5; - */ - public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + } - /** - * - * - *
            -           * Metadata of the document.
            -           * 
            - * - * .google.protobuf.Struct metadata = 5; - */ - public Builder mergeMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && metadata_ != null - && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { - getMetadataBuilder().mergeFrom(value); - } else { - metadata_ = value; + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource(); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerativeSource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); } - } else { - metadataBuilder_.mergeFrom(value); - } - if (metadata_ != null) { - bitField0_ |= 0x00000008; - onChanged(); + return builder.buildPartial(); } - return this; - } + }; - /** - * - * - *
            -           * Metadata of the document.
            -           * 
            - * - * .google.protobuf.Struct metadata = 5; - */ - public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000008); - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - onChanged(); - return this; - } + public static com.google.protobuf.Parser parser() { + return PARSER; + } - /** - * - * - *
            -           * Metadata of the document.
            -           * 
            - * - * .google.protobuf.Struct metadata = 5; - */ - public com.google.protobuf.Struct.Builder getMetadataBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetMetadataFieldBuilder().getBuilder(); - } + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } - /** - * - * - *
            -           * Metadata of the document.
            -           * 
            - * - * .google.protobuf.Struct metadata = 5; - */ - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null - ? com.google.protobuf.Struct.getDefaultInstance() - : metadata_; - } - } + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - /** - * - * - *
            -           * Metadata of the document.
            -           * 
            - * - * .google.protobuf.Struct metadata = 5; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - internalGetMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } + public interface EventSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) + com.google.protobuf.MessageOrBuilder { - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - } + /** + * + * + *
            +       * Name of the triggered event.
            +       * 
            + * + * string event = 1; + * + * @return The event. + */ + java.lang.String getEvent(); - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet) - private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer - .KnowledgeAnswer.GenerativeSource.Snippet - DEFAULT_INSTANCE; + /** + * + * + *
            +       * Name of the triggered event.
            +       * 
            + * + * string event = 1; + * + * @return The bytes for event. + */ + com.google.protobuf.ByteString getEventBytes(); - static { - DEFAULT_INSTANCE = - new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet(); - } + /** + * + * + *
            +       * Sources used in event fulfillment.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; + * + * + * @return Whether the snippets field is set. + */ + boolean hasSnippets(); + + /** + * + * + *
            +       * Sources used in event fulfillment.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; + * + * + * @return The snippets. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + getSnippets(); + + /** + * + * + *
            +       * Sources used in event fulfillment.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getSnippetsOrBuilder(); + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - getDefaultInstance() { - return DEFAULT_INSTANCE; - } + /** + * + * + *
            +     * Details about source of Event answer.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource} + */ + public static final class EventSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) + EventSourceOrBuilder { + private static final long serialVersionUID = 0L; - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Snippet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EventSource"); + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + // Use EventSource.newBuilder() to construct. + private EventSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + private EventSource() { + event_ = ""; + } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor; } - public static final int SNIPPETS_FIELD_NUMBER = 1; + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .EventSource.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .EventSource.Builder.class); + } + + private int bitField0_; + public static final int EVENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet> - snippets_; + private volatile java.lang.Object event_ = ""; /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Name of the triggered event.
                    * 
            * - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * string event = 1; + * + * @return The event. */ @java.lang.Override - public java.util.List< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet> - getSnippetsList() { - return snippets_; + public java.lang.String getEvent() { + java.lang.Object ref = event_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + event_ = s; + return s; + } } /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Name of the triggered event.
                    * 
            * - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * string event = 1; + * + * @return The bytes for event. */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> - getSnippetsOrBuilderList() { - return snippets_; + public com.google.protobuf.ByteString getEventBytes() { + java.lang.Object ref = event_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + event_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + public static final int SNIPPETS_FIELD_NUMBER = 2; + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + snippets_; + /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Sources used in event fulfillment.
                    * 
            * * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * + * + * @return Whether the snippets field is set. */ @java.lang.Override - public int getSnippetsCount() { - return snippets_.size(); + public boolean hasSnippets() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Sources used in event fulfillment.
                    * 
            * * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * + * + * @return The snippets. */ @java.lang.Override public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - getSnippets(int index) { - return snippets_.get(index); + .GenerativeSource + getSnippets() { + return snippets_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance() + : snippets_; } /** * * *
            -       * All snippets used for this Generative Prediction, with their source URI
            -       * and data.
            +       * Sources used in event fulfillment.
                    * 
            * * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ @java.lang.Override public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder - getSnippetsOrBuilder(int index) { - return snippets_.get(index); + .GenerativeSourceOrBuilder + getSnippetsOrBuilder() { + return snippets_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance() + : snippets_; } private byte memoizedIsInitialized = -1; @@ -3238,8 +7237,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < snippets_.size(); i++) { - output.writeMessage(1, snippets_.get(i)); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(event_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, event_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getSnippets()); } getUnknownFields().writeTo(output); } @@ -3250,8 +7252,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (int i = 0; i < snippets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, snippets_.get(i)); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(event_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, event_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSnippets()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3266,16 +7271,20 @@ public boolean equals(final java.lang.Object obj) { if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource)) { + .EventSource)) { return super.equals(obj); } - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource other = (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) obj; - if (!getSnippetsList().equals(other.getSnippetsList())) return false; + if (!getEvent().equals(other.getEvent())) return false; + if (hasSnippets() != other.hasSnippets()) return false; + if (hasSnippets()) { + if (!getSnippets().equals(other.getSnippets())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3287,9 +7296,11 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getSnippetsCount() > 0) { + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEvent().hashCode(); + if (hasSnippets()) { hash = (37 * hash) + SNIPPETS_FIELD_NUMBER; - hash = (53 * hash) + getSnippetsList().hashCode(); + hash = (53 * hash) + getSnippets().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; @@ -3297,14 +7308,14 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3312,14 +7323,14 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3328,26 +7339,26 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3357,13 +7368,13 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3373,13 +7384,13 @@ public int hashCode() { } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -3398,7 +7409,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -3419,76 +7430,82 @@ protected Builder newBuilderForType( * * *
            -       * Details about source of Generative answer.
            +       * Details about source of Event answer.
                    * 
            * * Protobuf type {@code - * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource} + * google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder { + .EventSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_fieldAccessorTable + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.class, + .EventSource.class, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Builder.class); + .EventSource.Builder.class); } // Construct using - // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.newBuilder() - private Builder() {} + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSnippetsFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - if (snippetsBuilder_ == null) { - snippets_ = java.util.Collections.emptyList(); - } else { - snippets_ = null; - snippetsBuilder_.clear(); + event_ = ""; + snippets_ = null; + if (snippetsBuilder_ != null) { + snippetsBuilder_.dispose(); + snippetsBuilder_ = null; } - bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_descriptor; + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor; } @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource getDefaultInstanceForType() { return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + .EventSource.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource build() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); @@ -3497,14 +7514,12 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource buildPartial() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource result = new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource(this); - buildPartialRepeatedFields(result); + .EventSource(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -3512,26 +7527,19 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return result; } - private void buildPartialRepeatedFields( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource - result) { - if (snippetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - snippets_ = java.util.Collections.unmodifiableList(snippets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.snippets_ = snippets_; - } else { - result.snippets_ = snippetsBuilder_.build(); - } - } - private void buildPartial0( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.event_ = event_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.snippets_ = snippetsBuilder_ == null ? snippets_ : snippetsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -3539,50 +7547,30 @@ public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) { + .EventSource) { return mergeFrom( (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) other); } else { super.mergeFrom(other); return this; } } - - public Builder mergeFrom( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource - other) { - if (other - == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance()) return this; - if (snippetsBuilder_ == null) { - if (!other.snippets_.isEmpty()) { - if (snippets_.isEmpty()) { - snippets_ = other.snippets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSnippetsIsMutable(); - snippets_.addAll(other.snippets_); - } - onChanged(); - } - } else { - if (!other.snippets_.isEmpty()) { - if (snippetsBuilder_.isEmpty()) { - snippetsBuilder_.dispose(); - snippetsBuilder_ = null; - snippets_ = other.snippets_; - bitField0_ = (bitField0_ & ~0x00000001); - snippetsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetSnippetsFieldBuilder() - : null; - } else { - snippetsBuilder_.addAllMessages(other.snippets_); - } - } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .EventSource.getDefaultInstance()) return this; + if (!other.getEvent().isEmpty()) { + event_ = other.event_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSnippets()) { + mergeSnippets(other.getSnippets()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3612,21 +7600,17 @@ public Builder mergeFrom( break; case 10: { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - m = - input.readMessage( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer - .KnowledgeAnswer.GenerativeSource.Snippet.parser(), - extensionRegistry); - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.add(m); - } else { - snippetsBuilder_.addMessage(m); - } + event_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + input.readMessage( + internalGetSnippetsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3646,70 +7630,28 @@ public Builder mergeFrom( private int bitField0_; - private java.util.List< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet> - snippets_ = java.util.Collections.emptyList(); - - private void ensureSnippetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - snippets_ = - new java.util.ArrayList< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet>(snippets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> - snippetsBuilder_; + private java.lang.Object event_ = ""; /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Name of the triggered event.
                      * 
            * - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * - */ - public java.util.List< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet> - getSnippetsList() { - if (snippetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(snippets_); - } else { - return snippetsBuilder_.getMessageList(); - } - } - - /** - * - * - *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            -         * 
            + * string event = 1; * - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * @return The event. */ - public int getSnippetsCount() { - if (snippetsBuilder_ == null) { - return snippets_.size(); + public java.lang.String getEvent() { + java.lang.Object ref = event_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + event_ = s; + return s; } else { - return snippetsBuilder_.getCount(); + return (java.lang.String) ref; } } @@ -3717,107 +7659,44 @@ public int getSnippetsCount() { * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Name of the triggered event.
                      * 
            * - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * - */ - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - getSnippets(int index) { - if (snippetsBuilder_ == null) { - return snippets_.get(index); - } else { - return snippetsBuilder_.getMessage(index); - } - } - - /** - * - * - *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            -         * 
            + * string event = 1; * - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * @return The bytes for event. */ - public Builder setSnippets( - int index, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - value) { - if (snippetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnippetsIsMutable(); - snippets_.set(index, value); - onChanged(); + public com.google.protobuf.ByteString getEventBytes() { + java.lang.Object ref = event_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + event_ = b; + return b; } else { - snippetsBuilder_.setMessage(index, value); + return (com.google.protobuf.ByteString) ref; } - return this; } /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Name of the triggered event.
                      * 
            * - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * - */ - public Builder setSnippets( - int index, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder - builderForValue) { - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.set(index, builderForValue.build()); - onChanged(); - } else { - snippetsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            -         * 
            + * string event = 1; * - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * @param value The event to set. + * @return This builder for chaining. */ - public Builder addSnippets( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - value) { - if (snippetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnippetsIsMutable(); - snippets_.add(value); - onChanged(); - } else { - snippetsBuilder_.addMessage(value); + public Builder setEvent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } + event_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } @@ -3825,55 +7704,17 @@ public Builder addSnippets( * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Name of the triggered event.
                      * 
            * - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * - */ - public Builder addSnippets( - int index, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet - value) { - if (snippetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSnippetsIsMutable(); - snippets_.add(index, value); - onChanged(); - } else { - snippetsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            -         * 
            + * string event = 1; * - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * @return This builder for chaining. */ - public Builder addSnippets( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder - builderForValue) { - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.add(builderForValue.build()); - onChanged(); - } else { - snippetsBuilder_.addMessage(builderForValue.build()); - } + public Builder clearEvent() { + event_ = getDefaultInstance().getEvent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); return this; } @@ -3881,100 +7722,105 @@ public Builder addSnippets( * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Name of the triggered event.
                      * 
            * - * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; - * + * string event = 1; + * + * @param value The bytes for event to set. + * @return This builder for chaining. */ - public Builder addSnippets( - int index, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder - builderForValue) { - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.add(index, builderForValue.build()); - onChanged(); - } else { - snippetsBuilder_.addMessage(index, builderForValue.build()); + public Builder setEventBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + event_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + snippets_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder> + snippetsBuilder_; + /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Sources used in event fulfillment.
                      * 
            * * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * + * + * @return Whether the snippets field is set. */ - public Builder addAllSnippets( - java.lang.Iterable< - ? extends - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet> - values) { - if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, snippets_); - onChanged(); - } else { - snippetsBuilder_.addAllMessages(values); - } - return this; + public boolean hasSnippets() { + return ((bitField0_ & 0x00000002) != 0); } /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Sources used in event fulfillment.
                      * 
            * * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * + * + * @return The snippets. */ - public Builder clearSnippets() { + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + getSnippets() { if (snippetsBuilder_ == null) { - snippets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + return snippets_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance() + : snippets_; } else { - snippetsBuilder_.clear(); + return snippetsBuilder_.getMessage(); } - return this; } /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Sources used in event fulfillment.
                      * 
            * * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public Builder removeSnippets(int index) { + public Builder setSnippets( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + value) { if (snippetsBuilder_ == null) { - ensureSnippetsIsMutable(); - snippets_.remove(index); - onChanged(); + if (value == null) { + throw new NullPointerException(); + } + snippets_ = value; } else { - snippetsBuilder_.remove(index); + snippetsBuilder_.setMessage(value); } + bitField0_ |= 0x00000002; + onChanged(); return this; } @@ -3982,175 +7828,185 @@ public Builder removeSnippets(int index) { * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Sources used in event fulfillment.
                      * 
            * * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder - getSnippetsBuilder(int index) { - return internalGetSnippetsFieldBuilder().getBuilder(index); + public Builder setSnippets( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder + builderForValue) { + if (snippetsBuilder_ == null) { + snippets_ = builderForValue.build(); + } else { + snippetsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; } /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Sources used in event fulfillment.
                      * 
            * * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder - getSnippetsOrBuilder(int index) { + public Builder mergeSnippets( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + value) { if (snippetsBuilder_ == null) { - return snippets_.get(index); + if (((bitField0_ & 0x00000002) != 0) + && snippets_ != null + && snippets_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance()) { + getSnippetsBuilder().mergeFrom(value); + } else { + snippets_ = value; + } } else { - return snippetsBuilder_.getMessageOrBuilder(index); + snippetsBuilder_.mergeFrom(value); + } + if (snippets_ != null) { + bitField0_ |= 0x00000002; + onChanged(); } + return this; } /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Sources used in event fulfillment.
                      * 
            * * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public java.util.List< - ? extends - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> - getSnippetsOrBuilderList() { + public Builder clearSnippets() { + bitField0_ = (bitField0_ & ~0x00000002); + snippets_ = null; if (snippetsBuilder_ != null) { - return snippetsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(snippets_); + snippetsBuilder_.dispose(); + snippetsBuilder_ = null; } + onChanged(); + return this; } /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Sources used in event fulfillment.
                      * 
            * * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder - addSnippetsBuilder() { - return internalGetSnippetsFieldBuilder() - .addBuilder( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.getDefaultInstance()); + .GenerativeSource.Builder + getSnippetsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetSnippetsFieldBuilder().getBuilder(); } /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Sources used in event fulfillment.
                      * 
            * * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder - addSnippetsBuilder(int index) { - return internalGetSnippetsFieldBuilder() - .addBuilder( - index, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.getDefaultInstance()); + .GenerativeSourceOrBuilder + getSnippetsOrBuilder() { + if (snippetsBuilder_ != null) { + return snippetsBuilder_.getMessageOrBuilder(); + } else { + return snippets_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance() + : snippets_; + } } /** * * *
            -         * All snippets used for this Generative Prediction, with their source URI
            -         * and data.
            +         * Sources used in event fulfillment.
                      * 
            * * - * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet snippets = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource snippets = 2; * */ - public java.util.List< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder> - getSnippetsBuilderList() { - return internalGetSnippetsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< + private com.google.protobuf.SingleFieldBuilder< com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet, + .GenerativeSource, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder, + .GenerativeSource.Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder> + .GenerativeSourceOrBuilder> internalGetSnippetsFieldBuilder() { if (snippetsBuilder_ == null) { snippetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< + new com.google.protobuf.SingleFieldBuilder< com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet, + .GenerativeSource, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Snippet.Builder, + .GenerativeSource.Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.SnippetOrBuilder>( - snippets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + .GenerativeSourceOrBuilder>( + getSnippets(), getParentForChildren(), isClean()); snippets_ = null; } return snippetsBuilder_; } - // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) } - // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource) + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource(); + .EventSource(); } public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + .EventSource 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 GenerativeSource parsePartialFrom( + public EventSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -4170,18 +8026,17 @@ public GenerativeSource 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.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -4198,6 +8053,8 @@ public enum SourceCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { FAQ_SOURCE(3), GENERATIVE_SOURCE(4), + PLAYBOOK_SOURCE(7), + EVENT_SOURCE(8), SOURCE_NOT_SET(0); private final int value; @@ -4221,6 +8078,10 @@ public static SourceCase forNumber(int value) { return FAQ_SOURCE; case 4: return GENERATIVE_SOURCE; + case 7: + return PLAYBOOK_SOURCE; + case 8: + return EVENT_SOURCE; case 0: return SOURCE_NOT_SET; default: @@ -4407,24 +8268,163 @@ public boolean hasGenerativeSource() { * * *
            -     * Populated if the prediction was Generative.
            +     * Populated if the prediction was Generative.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getGenerativeSourceOrBuilder() { + if (sourceCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); + } + + public static final int PLAYBOOK_SOURCE_FIELD_NUMBER = 7; + + /** + * + * + *
            +     * Populated if the prediction was from Playbook.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + * + * @return Whether the playbookSource field is set. + */ + @java.lang.Override + public boolean hasPlaybookSource() { + return sourceCase_ == 7; + } + + /** + * + * + *
            +     * Populated if the prediction was from Playbook.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + * + * @return The playbookSource. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + getPlaybookSource() { + if (sourceCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); + } + + /** + * + * + *
            +     * Populated if the prediction was from Playbook.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getPlaybookSourceOrBuilder() { + if (sourceCase_ == 7) { + return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); + } + + public static final int EVENT_SOURCE_FIELD_NUMBER = 8; + + /** + * + * + *
            +     * Populated if the prediction was from an event.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + * + * @return Whether the eventSource field is set. + */ + @java.lang.Override + public boolean hasEventSource() { + return sourceCase_ == 8; + } + + /** + * + * + *
            +     * Populated if the prediction was from an event.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; + * + * + * @return The eventSource. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + getEventSource() { + if (sourceCase_ == 8) { + return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .EventSource) + source_; + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .getDefaultInstance(); + } + + /** + * + * + *
            +     * Populated if the prediction was from an event.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ @java.lang.Override public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder - getGenerativeSourceOrBuilder() { - if (sourceCase_ == 4) { + .EventSourceOrBuilder + getEventSourceOrBuilder() { + if (sourceCase_ == 8) { return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) source_; } - return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -4457,6 +8457,19 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .GenerativeSource) source_); } + if (sourceCase_ == 7) { + output.writeMessage( + 7, + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_); + } + if (sourceCase_ == 8) { + output.writeMessage( + 8, + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource) + source_); + } getUnknownFields().writeTo(output); } @@ -4485,6 +8498,22 @@ public int getSerializedSize() { .GenerativeSource) source_); } + if (sourceCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_); + } + if (sourceCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .EventSource) + source_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4511,6 +8540,12 @@ public boolean equals(final java.lang.Object obj) { case 4: if (!getGenerativeSource().equals(other.getGenerativeSource())) return false; break; + case 7: + if (!getPlaybookSource().equals(other.getPlaybookSource())) return false; + break; + case 8: + if (!getEventSource().equals(other.getEventSource())) return false; + break; case 0: default: } @@ -4536,6 +8571,14 @@ public int hashCode() { hash = (37 * hash) + GENERATIVE_SOURCE_FIELD_NUMBER; hash = (53 * hash) + getGenerativeSource().hashCode(); break; + case 7: + hash = (37 * hash) + PLAYBOOK_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getPlaybookSource().hashCode(); + break; + case 8: + hash = (37 * hash) + EVENT_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getEventSource().hashCode(); + break; case 0: default: } @@ -4647,255 +8690,708 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder return builder; } - /** - * - * - *
            -     * Represents an answer from Knowledge. Currently supports FAQ and Generative
            -     * answers.
            -     * 
            - * - * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + /** + * + * + *
            +     * Represents an answer from Knowledge. Currently supports FAQ and Generative
            +     * answers.
            +     * 
            + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.Builder + .class); + } + + // Construct using + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + answerText_ = ""; + if (faqSourceBuilder_ != null) { + faqSourceBuilder_.clear(); + } + if (generativeSourceBuilder_ != null) { + generativeSourceBuilder_.clear(); + } + if (playbookSourceBuilder_ != null) { + playbookSourceBuilder_.clear(); + } + if (eventSourceBuilder_ != null) { + eventSourceBuilder_.clear(); + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.answerText_ = answerText_; + } + } + + private void buildPartialOneofs( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 3 && faqSourceBuilder_ != null) { + result.source_ = faqSourceBuilder_.build(); + } + if (sourceCase_ == 4 && generativeSourceBuilder_ != null) { + result.source_ = generativeSourceBuilder_.build(); + } + if (sourceCase_ == 7 && playbookSourceBuilder_ != null) { + result.source_ = playbookSourceBuilder_.build(); + } + if (sourceCase_ == 8 && eventSourceBuilder_ != null) { + result.source_ = eventSourceBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .getDefaultInstance()) return this; + if (!other.getAnswerText().isEmpty()) { + answerText_ = other.answerText_; + bitField0_ |= 0x00000001; + onChanged(); + } + switch (other.getSourceCase()) { + case FAQ_SOURCE: + { + mergeFaqSource(other.getFaqSource()); + break; + } + case GENERATIVE_SOURCE: + { + mergeGenerativeSource(other.getGenerativeSource()); + break; + } + case PLAYBOOK_SOURCE: + { + mergePlaybookSource(other.getPlaybookSource()); + break; + } + case EVENT_SOURCE: + { + mergeEventSource(other.getEventSource()); + 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: + { + answerText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage( + internalGetFaqSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetGenerativeSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 4; + break; + } // case 34 + case 58: + { + input.readMessage( + internalGetPlaybookSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetEventSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 8; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); } - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.class, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.Builder - .class); + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; } - // Construct using - // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.newBuilder() - private Builder() {} + private int bitField0_; - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); + private java.lang.Object answerText_ = ""; + + /** + * + * + *
            +       * The piece of text from the `source` that answers this suggested query.
            +       * 
            + * + * string answer_text = 1; + * + * @return The answerText. + */ + public java.lang.String getAnswerText() { + java.lang.Object ref = answerText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + answerText_ = s; + return s; + } else { + return (java.lang.String) ref; + } } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - answerText_ = ""; - if (faqSourceBuilder_ != null) { - faqSourceBuilder_.clear(); + /** + * + * + *
            +       * The piece of text from the `source` that answers this suggested query.
            +       * 
            + * + * string answer_text = 1; + * + * @return The bytes for answerText. + */ + public com.google.protobuf.ByteString getAnswerTextBytes() { + java.lang.Object ref = answerText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + answerText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - if (generativeSourceBuilder_ != null) { - generativeSourceBuilder_.clear(); + } + + /** + * + * + *
            +       * The piece of text from the `source` that answers this suggested query.
            +       * 
            + * + * string answer_text = 1; + * + * @param value The answerText to set. + * @return This builder for chaining. + */ + public Builder setAnswerText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - sourceCase_ = 0; - source_ = null; + answerText_ = value; + bitField0_ |= 0x00000001; + onChanged(); return this; } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; + /** + * + * + *
            +       * The piece of text from the `source` that answers this suggested query.
            +       * 
            + * + * string answer_text = 1; + * + * @return This builder for chaining. + */ + public Builder clearAnswerText() { + answerText_ = getDefaultInstance().getAnswerText(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .getDefaultInstance(); + /** + * + * + *
            +       * The piece of text from the `source` that answers this suggested query.
            +       * 
            + * + * string answer_text = 1; + * + * @param value The bytes for answerText to set. + * @return This builder for chaining. + */ + public Builder setAnswerTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + answerText_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSourceOrBuilder> + faqSourceBuilder_; + + /** + * + * + *
            +       * Populated if the prediction came from FAQ.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + * + * @return Whether the faqSource field is set. + */ @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer build() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; + public boolean hasFaqSource() { + return sourceCase_ == 3; } + /** + * + * + *
            +       * Populated if the prediction came from FAQ.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + * + * @return The faqSource. + */ @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - buildPartial() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer result = - new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer(this); - if (bitField0_ != 0) { - buildPartial0(result); + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + getFaqSource() { + if (faqSourceBuilder_ == null) { + if (sourceCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource) + source_; + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); + } else { + if (sourceCase_ == 3) { + return faqSourceBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); } - buildPartialOneofs(result); - onBuilt(); - return result; } - private void buildPartial0( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.answerText_ = answerText_; + /** + * + * + *
            +       * Populated if the prediction came from FAQ.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public Builder setFaqSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + value) { + if (faqSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + faqSourceBuilder_.setMessage(value); } + sourceCase_ = 3; + return this; } - private void buildPartialOneofs( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer result) { - result.sourceCase_ = sourceCase_; - result.source_ = this.source_; - if (sourceCase_ == 3 && faqSourceBuilder_ != null) { - result.source_ = faqSourceBuilder_.build(); - } - if (sourceCase_ == 4 && generativeSourceBuilder_ != null) { - result.source_ = generativeSourceBuilder_.build(); + /** + * + * + *
            +       * Populated if the prediction came from FAQ.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public Builder setFaqSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder + builderForValue) { + if (faqSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + faqSourceBuilder_.setMessage(builderForValue.build()); } + sourceCase_ = 3; + return this; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) { - return mergeFrom( - (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) other); + /** + * + * + *
            +       * Populated if the prediction came from FAQ.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public Builder mergeFaqSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + value) { + if (faqSourceBuilder_ == null) { + if (sourceCase_ == 3 + && source_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource.getDefaultInstance()) { + source_ = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .newBuilder( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); } else { - super.mergeFrom(other); - return this; + if (sourceCase_ == 3) { + faqSourceBuilder_.mergeFrom(value); + } else { + faqSourceBuilder_.setMessage(value); + } } + sourceCase_ = 3; + return this; } - public Builder mergeFrom( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer other) { - if (other - == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .getDefaultInstance()) return this; - if (!other.getAnswerText().isEmpty()) { - answerText_ = other.answerText_; - bitField0_ |= 0x00000001; - onChanged(); - } - switch (other.getSourceCase()) { - case FAQ_SOURCE: - { - mergeFaqSource(other.getFaqSource()); - break; - } - case GENERATIVE_SOURCE: - { - mergeGenerativeSource(other.getGenerativeSource()); - break; - } - case SOURCE_NOT_SET: - { - break; - } + /** + * + * + *
            +       * Populated if the prediction came from FAQ.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public Builder clearFaqSource() { + if (faqSourceBuilder_ == null) { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 3) { + sourceCase_ = 0; + source_ = null; + } + faqSourceBuilder_.clear(); } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
            +       * Populated if the prediction came from FAQ.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder + getFaqSourceBuilder() { + return internalGetFaqSourceFieldBuilder().getBuilder(); } + /** + * + * + *
            +       * Populated if the prediction came from FAQ.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ @java.lang.Override - public 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.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSourceOrBuilder + getFaqSourceOrBuilder() { + if ((sourceCase_ == 3) && (faqSourceBuilder_ != null)) { + return faqSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 3) { + return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource) + source_; + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - answerText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - input.readMessage( - internalGetFaqSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetGenerativeSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 4; - 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 sourceCase_ = 0; - private java.lang.Object source_; - - public SourceCase getSourceCase() { - return SourceCase.forNumber(sourceCase_); } - public Builder clearSource() { - sourceCase_ = 0; - source_ = null; + /** + * + * + *
            +       * Populated if the prediction came from FAQ.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSourceOrBuilder> + internalGetFaqSourceFieldBuilder() { + if (faqSourceBuilder_ == null) { + if (!(sourceCase_ == 3)) { + source_ = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + .getDefaultInstance(); + } + faqSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSourceOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .FaqSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 3; onChanged(); - return this; + return faqSourceBuilder_; } - private int bitField0_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder> + generativeSourceBuilder_; - private java.lang.Object answerText_ = ""; + /** + * + * + *
            +       * Populated if the prediction was Generative.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + * + * @return Whether the generativeSource field is set. + */ + @java.lang.Override + public boolean hasGenerativeSource() { + return sourceCase_ == 4; + } /** * * *
            -       * The piece of text from the `source` that answers this suggested query.
            +       * Populated if the prediction was Generative.
                    * 
            * - * string answer_text = 1; + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * * - * @return The answerText. + * @return The generativeSource. */ - public java.lang.String getAnswerText() { - java.lang.Object ref = answerText_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - answerText_ = s; - return s; + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + getGenerativeSource() { + if (generativeSourceBuilder_ == null) { + if (sourceCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } else { - return (java.lang.String) ref; + if (sourceCase_ == 4) { + return generativeSourceBuilder_.getMessage(); + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } } @@ -4903,44 +9399,51 @@ public java.lang.String getAnswerText() { * * *
            -       * The piece of text from the `source` that answers this suggested query.
            +       * Populated if the prediction was Generative.
                    * 
            * - * string answer_text = 1; - * - * @return The bytes for answerText. + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * */ - public com.google.protobuf.ByteString getAnswerTextBytes() { - java.lang.Object ref = answerText_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - answerText_ = b; - return b; + public Builder setGenerativeSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + value) { + if (generativeSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + generativeSourceBuilder_.setMessage(value); } + sourceCase_ = 4; + return this; } /** * * *
            -       * The piece of text from the `source` that answers this suggested query.
            +       * Populated if the prediction was Generative.
                    * 
            * - * string answer_text = 1; - * - * @param value The answerText to set. - * @return This builder for chaining. + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * */ - public Builder setAnswerText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setGenerativeSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + .Builder + builderForValue) { + if (generativeSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + generativeSourceBuilder_.setMessage(builderForValue.build()); } - answerText_ = value; - bitField0_ |= 0x00000001; - onChanged(); + sourceCase_ = 4; return this; } @@ -4948,17 +9451,69 @@ public Builder setAnswerText(java.lang.String value) { * * *
            -       * The piece of text from the `source` that answers this suggested query.
            +       * Populated if the prediction was Generative.
                    * 
            * - * string answer_text = 1; + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + */ + public Builder mergeGenerativeSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + value) { + if (generativeSourceBuilder_ == null) { + if (sourceCase_ == 4 + && source_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance()) { + source_ = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.newBuilder( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 4) { + generativeSourceBuilder_.mergeFrom(value); + } else { + generativeSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 4; + return this; + } + + /** * - * @return This builder for chaining. + * + *
            +       * Populated if the prediction was Generative.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * */ - public Builder clearAnswerText() { - answerText_ = getDefaultInstance().getAnswerText(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); + public Builder clearGenerativeSource() { + if (generativeSourceBuilder_ == null) { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 4) { + sourceCase_ = 0; + source_ = null; + } + generativeSourceBuilder_.clear(); + } return this; } @@ -4966,81 +9521,150 @@ public Builder clearAnswerText() { * * *
            -       * The piece of text from the `source` that answers this suggested query.
            +       * Populated if the prediction was Generative.
                    * 
            * - * string answer_text = 1; + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder + getGenerativeSourceBuilder() { + return internalGetGenerativeSourceFieldBuilder().getBuilder(); + } + + /** * - * @param value The bytes for answerText to set. - * @return This builder for chaining. + * + *
            +       * Populated if the prediction was Generative.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * */ - public Builder setAnswerTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder + getGenerativeSourceOrBuilder() { + if ((sourceCase_ == 4) && (generativeSourceBuilder_ != null)) { + return generativeSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 4) { + return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_; + } + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * Populated if the prediction was Generative.
            +       * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder> + internalGetGenerativeSourceFieldBuilder() { + if (generativeSourceBuilder_ == null) { + if (!(sourceCase_ == 4)) { + source_ = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); + } + generativeSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder>( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; } - checkByteStringIsUtf8(value); - answerText_ = value; - bitField0_ |= 0x00000001; + sourceCase_ = 4; onChanged(); - return this; + return generativeSourceBuilder_; } private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSourceOrBuilder> - faqSourceBuilder_; + .GenerativeSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder> + playbookSourceBuilder_; /** * * *
            -       * Populated if the prediction came from FAQ.
            +       * Populated if the prediction was from Playbook.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * * - * @return Whether the faqSource field is set. + * @return Whether the playbookSource field is set. */ @java.lang.Override - public boolean hasFaqSource() { - return sourceCase_ == 3; + public boolean hasPlaybookSource() { + return sourceCase_ == 7; } /** * * *
            -       * Populated if the prediction came from FAQ.
            +       * Populated if the prediction was from Playbook.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * * - * @return The faqSource. + * @return The playbookSource. */ @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - getFaqSource() { - if (faqSourceBuilder_ == null) { - if (sourceCase_ == 3) { + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource + getPlaybookSource() { + if (playbookSourceBuilder_ == null) { + if (sourceCase_ == 7) { return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource) + .GenerativeSource) source_; } - return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } else { - if (sourceCase_ == 3) { - return faqSourceBuilder_.getMessage(); + if (sourceCase_ == 7) { + return playbookSourceBuilder_.getMessage(); } - return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } } @@ -5048,26 +9672,26 @@ public boolean hasFaqSource() { * * *
            -       * Populated if the prediction came from FAQ.
            +       * Populated if the prediction was from Playbook.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public Builder setFaqSource( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + public Builder setPlaybookSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource value) { - if (faqSourceBuilder_ == null) { + if (playbookSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { - faqSourceBuilder_.setMessage(value); + playbookSourceBuilder_.setMessage(value); } - sourceCase_ = 3; + sourceCase_ = 7; return this; } @@ -5075,24 +9699,24 @@ public Builder setFaqSource( * * *
            -       * Populated if the prediction came from FAQ.
            +       * Populated if the prediction was from Playbook.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public Builder setFaqSource( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + public Builder setPlaybookSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource .Builder builderForValue) { - if (faqSourceBuilder_ == null) { + if (playbookSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { - faqSourceBuilder_.setMessage(builderForValue.build()); + playbookSourceBuilder_.setMessage(builderForValue.build()); } - sourceCase_ = 3; + sourceCase_ = 7; return this; } @@ -5100,26 +9724,26 @@ public Builder setFaqSource( * * *
            -       * Populated if the prediction came from FAQ.
            +       * Populated if the prediction was from Playbook.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public Builder mergeFaqSource( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource + public Builder mergePlaybookSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource value) { - if (faqSourceBuilder_ == null) { - if (sourceCase_ == 3 + if (playbookSourceBuilder_ == null) { + if (sourceCase_ == 7 && source_ != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource.getDefaultInstance()) { + .GenerativeSource.getDefaultInstance()) { source_ = - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.newBuilder( (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource) + .GenerativeSource) source_) .mergeFrom(value) .buildPartial(); @@ -5128,13 +9752,13 @@ public Builder mergeFaqSource( } onChanged(); } else { - if (sourceCase_ == 3) { - faqSourceBuilder_.mergeFrom(value); + if (sourceCase_ == 7) { + playbookSourceBuilder_.mergeFrom(value); } else { - faqSourceBuilder_.setMessage(value); + playbookSourceBuilder_.setMessage(value); } } - sourceCase_ = 3; + sourceCase_ = 7; return this; } @@ -5142,26 +9766,26 @@ public Builder mergeFaqSource( * * *
            -       * Populated if the prediction came from FAQ.
            +       * Populated if the prediction was from Playbook.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public Builder clearFaqSource() { - if (faqSourceBuilder_ == null) { - if (sourceCase_ == 3) { + public Builder clearPlaybookSource() { + if (playbookSourceBuilder_ == null) { + if (sourceCase_ == 7) { sourceCase_ = 0; source_ = null; onChanged(); } } else { - if (sourceCase_ == 3) { + if (sourceCase_ == 7) { sourceCase_ = 0; source_ = null; } - faqSourceBuilder_.clear(); + playbookSourceBuilder_.clear(); } return this; } @@ -5170,44 +9794,44 @@ public Builder clearFaqSource() { * * *
            -       * Populated if the prediction came from FAQ.
            +       * Populated if the prediction was from Playbook.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .Builder - getFaqSourceBuilder() { - return internalGetFaqSourceFieldBuilder().getBuilder(); + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder + getPlaybookSourceBuilder() { + return internalGetPlaybookSourceFieldBuilder().getBuilder(); } /** * * *
            -       * Populated if the prediction came from FAQ.
            +       * Populated if the prediction was from Playbook.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ @java.lang.Override public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSourceOrBuilder - getFaqSourceOrBuilder() { - if ((sourceCase_ == 3) && (faqSourceBuilder_ != null)) { - return faqSourceBuilder_.getMessageOrBuilder(); + .GenerativeSourceOrBuilder + getPlaybookSourceOrBuilder() { + if ((sourceCase_ == 7) && (playbookSourceBuilder_ != null)) { + return playbookSourceBuilder_.getMessageOrBuilder(); } else { - if (sourceCase_ == 3) { + if (sourceCase_ == 7) { return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource) + .GenerativeSource) source_; } - return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } } @@ -5215,104 +9839,103 @@ public Builder clearFaqSource() { * * *
            -       * Populated if the prediction came from FAQ.
            +       * Populated if the prediction was from Playbook.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource playbook_source = 7; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSourceOrBuilder> - internalGetFaqSourceFieldBuilder() { - if (faqSourceBuilder_ == null) { - if (!(sourceCase_ == 3)) { + .GenerativeSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSourceOrBuilder> + internalGetPlaybookSourceFieldBuilder() { + if (playbookSourceBuilder_ == null) { + if (!(sourceCase_ == 7)) { source_ = - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource - .getDefaultInstance(); + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer + .GenerativeSource.getDefaultInstance(); } - faqSourceBuilder_ = + playbookSourceBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource, + .GenerativeSource, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource.Builder, + .GenerativeSource.Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSourceOrBuilder>( + .GenerativeSourceOrBuilder>( (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .FaqSource) + .GenerativeSource) source_, getParentForChildren(), isClean()); source_ = null; } - sourceCase_ = 3; + sourceCase_ = 7; onChanged(); - return faqSourceBuilder_; + return playbookSourceBuilder_; } private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Builder, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder> - generativeSourceBuilder_; + .EventSourceOrBuilder> + eventSourceBuilder_; /** * * *
            -       * Populated if the prediction was Generative.
            +       * Populated if the prediction was from an event.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * * - * @return Whether the generativeSource field is set. + * @return Whether the eventSource field is set. */ @java.lang.Override - public boolean hasGenerativeSource() { - return sourceCase_ == 4; + public boolean hasEventSource() { + return sourceCase_ == 8; } /** * * *
            -       * Populated if the prediction was Generative.
            +       * Populated if the prediction was from an event.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * * - * @return The generativeSource. + * @return The eventSource. */ @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource - getGenerativeSource() { - if (generativeSourceBuilder_ == null) { - if (sourceCase_ == 4) { + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + getEventSource() { + if (eventSourceBuilder_ == null) { + if (sourceCase_ == 8) { return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) source_; } return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + .EventSource.getDefaultInstance(); } else { - if (sourceCase_ == 4) { - return generativeSourceBuilder_.getMessage(); + if (sourceCase_ == 8) { + return eventSourceBuilder_.getMessage(); } return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + .EventSource.getDefaultInstance(); } } @@ -5320,26 +9943,26 @@ public boolean hasGenerativeSource() { * * *
            -       * Populated if the prediction was Generative.
            +       * Populated if the prediction was from an event.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public Builder setGenerativeSource( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + public Builder setEventSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource value) { - if (generativeSourceBuilder_ == null) { + if (eventSourceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } source_ = value; onChanged(); } else { - generativeSourceBuilder_.setMessage(value); + eventSourceBuilder_.setMessage(value); } - sourceCase_ = 4; + sourceCase_ = 8; return this; } @@ -5347,24 +9970,24 @@ public Builder setGenerativeSource( * * *
            -       * Populated if the prediction was Generative.
            +       * Populated if the prediction was from an event.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public Builder setGenerativeSource( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + public Builder setEventSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource .Builder builderForValue) { - if (generativeSourceBuilder_ == null) { + if (eventSourceBuilder_ == null) { source_ = builderForValue.build(); onChanged(); } else { - generativeSourceBuilder_.setMessage(builderForValue.build()); + eventSourceBuilder_.setMessage(builderForValue.build()); } - sourceCase_ = 4; + sourceCase_ = 8; return this; } @@ -5372,26 +9995,26 @@ public Builder setGenerativeSource( * * *
            -       * Populated if the prediction was Generative.
            +       * Populated if the prediction was from an event.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public Builder mergeGenerativeSource( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource + public Builder mergeEventSource( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource value) { - if (generativeSourceBuilder_ == null) { - if (sourceCase_ == 4 + if (eventSourceBuilder_ == null) { + if (sourceCase_ == 8 && source_ != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance()) { + .EventSource.getDefaultInstance()) { source_ = com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.newBuilder( + .EventSource.newBuilder( (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) source_) .mergeFrom(value) .buildPartial(); @@ -5400,13 +10023,13 @@ public Builder mergeGenerativeSource( } onChanged(); } else { - if (sourceCase_ == 4) { - generativeSourceBuilder_.mergeFrom(value); + if (sourceCase_ == 8) { + eventSourceBuilder_.mergeFrom(value); } else { - generativeSourceBuilder_.setMessage(value); + eventSourceBuilder_.setMessage(value); } } - sourceCase_ = 4; + sourceCase_ = 8; return this; } @@ -5414,26 +10037,26 @@ public Builder mergeGenerativeSource( * * *
            -       * Populated if the prediction was Generative.
            +       * Populated if the prediction was from an event.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public Builder clearGenerativeSource() { - if (generativeSourceBuilder_ == null) { - if (sourceCase_ == 4) { + public Builder clearEventSource() { + if (eventSourceBuilder_ == null) { + if (sourceCase_ == 8) { sourceCase_ = 0; source_ = null; onChanged(); } } else { - if (sourceCase_ == 4) { + if (sourceCase_ == 8) { sourceCase_ = 0; source_ = null; } - generativeSourceBuilder_.clear(); + eventSourceBuilder_.clear(); } return this; } @@ -5442,44 +10065,44 @@ public Builder clearGenerativeSource() { * * *
            -       * Populated if the prediction was Generative.
            +       * Populated if the prediction was from an event.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Builder - getGenerativeSourceBuilder() { - return internalGetGenerativeSourceFieldBuilder().getBuilder(); + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .Builder + getEventSourceBuilder() { + return internalGetEventSourceFieldBuilder().getBuilder(); } /** * * *
            -       * Populated if the prediction was Generative.
            +       * Populated if the prediction was from an event.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ @java.lang.Override public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder - getGenerativeSourceOrBuilder() { - if ((sourceCase_ == 4) && (generativeSourceBuilder_ != null)) { - return generativeSourceBuilder_.getMessageOrBuilder(); + .EventSourceOrBuilder + getEventSourceOrBuilder() { + if ((sourceCase_ == 8) && (eventSourceBuilder_ != null)) { + return eventSourceBuilder_.getMessageOrBuilder(); } else { - if (sourceCase_ == 4) { + if (sourceCase_ == 8) { return (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) source_; } return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + .EventSource.getDefaultInstance(); } } @@ -5487,45 +10110,44 @@ public Builder clearGenerativeSource() { * * *
            -       * Populated if the prediction was Generative.
            +       * Populated if the prediction was from an event.
                    * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource event_source = 8; * */ private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSource + .Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Builder, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder> - internalGetGenerativeSourceFieldBuilder() { - if (generativeSourceBuilder_ == null) { - if (!(sourceCase_ == 4)) { + .EventSourceOrBuilder> + internalGetEventSourceFieldBuilder() { + if (eventSourceBuilder_ == null) { + if (!(sourceCase_ == 8)) { source_ = com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.getDefaultInstance(); + .EventSource.getDefaultInstance(); } - generativeSourceBuilder_ = + eventSourceBuilder_ = new com.google.protobuf.SingleFieldBuilder< com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource, + .EventSource, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource.Builder, + .EventSource.Builder, com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSourceOrBuilder>( + .EventSourceOrBuilder>( (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer - .GenerativeSource) + .EventSource) source_, getParentForChildren(), isClean()); source_ = null; } - sourceCase_ = 4; + sourceCase_ = 8; onChanged(); - return generativeSourceBuilder_; + return eventSourceBuilder_; } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer) diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfo.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfo.java index c0831883f277..2923fd0e592a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfo.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfo.java @@ -3033,667 +3033,1599 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; - public static final int QUERY_GENERATION_FAILURE_REASON_FIELD_NUMBER = 1; - private int queryGenerationFailureReason_ = 0; - - /** - * - * - *
            -   * Reason for query generation.
            -   * 
            - * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; - * - * - * @return The enum numeric value on the wire for queryGenerationFailureReason. - */ - @java.lang.Override - public int getQueryGenerationFailureReasonValue() { - return queryGenerationFailureReason_; - } + public interface QueryGenerationDebugInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + com.google.protobuf.MessageOrBuilder { - /** - * - * - *
            -   * Reason for query generation.
            -   * 
            - * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; - * - * - * @return The queryGenerationFailureReason. - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason - getQueryGenerationFailureReason() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason - result = - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryGenerationFailureReason.forNumber(queryGenerationFailureReason_); - return result == null - ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason - .UNRECOGNIZED - : result; - } + /** + * + * + *
            +     * The total number of tokens in the prompt.
            +     * 
            + * + * int32 prompt_token_count = 1; + * + * @return The promptTokenCount. + */ + int getPromptTokenCount(); - public static final int QUERY_CATEGORIZATION_FAILURE_REASON_FIELD_NUMBER = 2; - private int queryCategorizationFailureReason_ = 0; + /** + * + * + *
            +     * The total number of tokens in the generated candidates.
            +     * 
            + * + * int32 candidates_token_count = 2; + * + * @return The candidatesTokenCount. + */ + int getCandidatesTokenCount(); - /** - * - * - *
            -   * Reason for query categorization.
            -   * 
            - * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; - * - * - * @return The enum numeric value on the wire for queryCategorizationFailureReason. - */ - @java.lang.Override - public int getQueryCategorizationFailureReasonValue() { - return queryCategorizationFailureReason_; + /** + * + * + *
            +     * The total number of tokens for the entire request.
            +     * 
            + * + * int32 total_token_count = 3; + * + * @return The totalTokenCount. + */ + int getTotalTokenCount(); } /** * * *
            -   * Reason for query categorization.
            +   * Token usage metadata for query generation.
                * 
            * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; - * - * - * @return The queryCategorizationFailureReason. + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo} */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryCategorizationFailureReason - getQueryCategorizationFailureReason() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason - result = - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryCategorizationFailureReason.forNumber(queryCategorizationFailureReason_); - return result == null - ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryCategorizationFailureReason.UNRECOGNIZED - : result; - } + public static final class QueryGenerationDebugInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + QueryGenerationDebugInfoOrBuilder { + private static final long serialVersionUID = 0L; - public static final int DATASTORE_RESPONSE_REASON_FIELD_NUMBER = 3; - private int datastoreResponseReason_ = 0; + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryGenerationDebugInfo"); + } - /** - * - * - *
            -   * Response reason from datastore which indicates data serving status or
            -   * answer quality degradation.
            -   * 
            - * - * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; - * - * - * @return The enum numeric value on the wire for datastoreResponseReason. - */ - @java.lang.Override - public int getDatastoreResponseReasonValue() { - return datastoreResponseReason_; - } + // Use QueryGenerationDebugInfo.newBuilder() to construct. + private QueryGenerationDebugInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } - /** - * - * - *
            -   * Response reason from datastore which indicates data serving status or
            -   * answer quality degradation.
            -   * 
            - * - * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; - * - * - * @return The datastoreResponseReason. - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason getDatastoreResponseReason() { - com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason result = - com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.forNumber( - datastoreResponseReason_); - return result == null - ? com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.UNRECOGNIZED - : result; - } + private QueryGenerationDebugInfo() {} - public static final int KNOWLEDGE_ASSIST_BEHAVIOR_FIELD_NUMBER = 4; - private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - knowledgeAssistBehavior_; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor; + } - /** - * - * - *
            -   * Configured behaviors for Knowedge Assist.
            -   * 
            - * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * - * - * @return Whether the knowledgeAssistBehavior field is set. - */ - @java.lang.Override - public boolean hasKnowledgeAssistBehavior() { - return ((bitField0_ & 0x00000001) != 0); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder.class); + } - /** - * - * - *
            -   * Configured behaviors for Knowedge Assist.
            -   * 
            - * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * - * - * @return The knowledgeAssistBehavior. - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - getKnowledgeAssistBehavior() { - return knowledgeAssistBehavior_ == null - ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - .getDefaultInstance() - : knowledgeAssistBehavior_; - } + public static final int PROMPT_TOKEN_COUNT_FIELD_NUMBER = 1; + private int promptTokenCount_ = 0; - /** - * - * - *
            -   * Configured behaviors for Knowedge Assist.
            -   * 
            - * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .KnowledgeAssistBehaviorOrBuilder - getKnowledgeAssistBehaviorOrBuilder() { - return knowledgeAssistBehavior_ == null - ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - .getDefaultInstance() - : knowledgeAssistBehavior_; - } + /** + * + * + *
            +     * The total number of tokens in the prompt.
            +     * 
            + * + * int32 prompt_token_count = 1; + * + * @return The promptTokenCount. + */ + @java.lang.Override + public int getPromptTokenCount() { + return promptTokenCount_; + } - public static final int INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER = 5; - private com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo - ingestedContextReferenceDebugInfo_; + public static final int CANDIDATES_TOKEN_COUNT_FIELD_NUMBER = 2; + private int candidatesTokenCount_ = 0; - /** - * - * - *
            -   * Information about parameters ingested for search knowledge.
            -   * 
            - * - * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; - * - * - * @return Whether the ingestedContextReferenceDebugInfo field is set. - */ - @java.lang.Override - public boolean hasIngestedContextReferenceDebugInfo() { - return ((bitField0_ & 0x00000002) != 0); - } + /** + * + * + *
            +     * The total number of tokens in the generated candidates.
            +     * 
            + * + * int32 candidates_token_count = 2; + * + * @return The candidatesTokenCount. + */ + @java.lang.Override + public int getCandidatesTokenCount() { + return candidatesTokenCount_; + } - /** - * - * - *
            -   * Information about parameters ingested for search knowledge.
            -   * 
            - * - * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; - * - * - * @return The ingestedContextReferenceDebugInfo. - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo - getIngestedContextReferenceDebugInfo() { - return ingestedContextReferenceDebugInfo_ == null - ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.getDefaultInstance() - : ingestedContextReferenceDebugInfo_; - } + public static final int TOTAL_TOKEN_COUNT_FIELD_NUMBER = 3; + private int totalTokenCount_ = 0; - /** - * - * - *
            -   * Information about parameters ingested for search knowledge.
            -   * 
            - * - * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; - * - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder - getIngestedContextReferenceDebugInfoOrBuilder() { - return ingestedContextReferenceDebugInfo_ == null - ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.getDefaultInstance() - : ingestedContextReferenceDebugInfo_; - } + /** + * + * + *
            +     * The total number of tokens for the entire request.
            +     * 
            + * + * int32 total_token_count = 3; + * + * @return The totalTokenCount. + */ + @java.lang.Override + public int getTotalTokenCount() { + return totalTokenCount_; + } - public static final int SERVICE_LATENCY_FIELD_NUMBER = 6; - private com.google.cloud.dialogflow.v2beta1.ServiceLatency serviceLatency_; + private byte memoizedIsInitialized = -1; - /** - * - * - *
            -   * The latency of the service.
            -   * 
            - * - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; - * - * @return Whether the serviceLatency field is set. - */ - @java.lang.Override - public boolean hasServiceLatency() { - return ((bitField0_ & 0x00000004) != 0); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - /** - * - * - *
            -   * The latency of the service.
            -   * 
            - * - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; - * - * @return The serviceLatency. - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency() { - return serviceLatency_ == null - ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() - : serviceLatency_; - } + memoizedIsInitialized = 1; + return true; + } - /** - * - * - *
            -   * The latency of the service.
            -   * 
            - * - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; - */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder getServiceLatencyOrBuilder() { - return serviceLatency_ == null - ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() - : serviceLatency_; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (promptTokenCount_ != 0) { + output.writeInt32(1, promptTokenCount_); + } + if (candidatesTokenCount_ != 0) { + output.writeInt32(2, candidatesTokenCount_); + } + if (totalTokenCount_ != 0) { + output.writeInt32(3, totalTokenCount_); + } + getUnknownFields().writeTo(output); + } - private byte memoizedIsInitialized = -1; + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + size = 0; + if (promptTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, promptTokenCount_); + } + if (candidatesTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, candidatesTokenCount_); + } + if (totalTokenCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalTokenCount_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + obj; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (queryGenerationFailureReason_ - != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason - .QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, queryGenerationFailureReason_); + if (getPromptTokenCount() != other.getPromptTokenCount()) return false; + if (getCandidatesTokenCount() != other.getCandidatesTokenCount()) return false; + if (getTotalTokenCount() != other.getTotalTokenCount()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; } - if (queryCategorizationFailureReason_ - != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryCategorizationFailureReason.QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, queryCategorizationFailureReason_); + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PROMPT_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getPromptTokenCount(); + hash = (37 * hash) + CANDIDATES_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCandidatesTokenCount(); + hash = (37 * hash) + TOTAL_TOKEN_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalTokenCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; } - if (datastoreResponseReason_ - != com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason - .DATASTORE_RESPONSE_REASON_UNSPECIFIED - .getNumber()) { - output.writeEnum(3, datastoreResponseReason_); + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getKnowledgeAssistBehavior()); + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(5, getIngestedContextReferenceDebugInfo()); + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(6, getServiceLatency()); + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - getUnknownFields().writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - size = 0; - if (queryGenerationFailureReason_ - != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason - .QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED - .getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(1, queryGenerationFailureReason_); + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); } - if (queryCategorizationFailureReason_ - != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryCategorizationFailureReason.QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED - .getNumber()) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 2, queryCategorizationFailureReason_); + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - if (datastoreResponseReason_ - != com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason - .DATASTORE_RESPONSE_REASON_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, datastoreResponseReason_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getKnowledgeAssistBehavior()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, getIngestedContextReferenceDebugInfo()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getServiceLatency()); + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - if (!(obj instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo)) { - return super.equals(obj); + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo other = - (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) obj; - if (queryGenerationFailureReason_ != other.queryGenerationFailureReason_) return false; - if (queryCategorizationFailureReason_ != other.queryCategorizationFailureReason_) return false; - if (datastoreResponseReason_ != other.datastoreResponseReason_) return false; - if (hasKnowledgeAssistBehavior() != other.hasKnowledgeAssistBehavior()) return false; - if (hasKnowledgeAssistBehavior()) { - if (!getKnowledgeAssistBehavior().equals(other.getKnowledgeAssistBehavior())) return false; + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - if (hasIngestedContextReferenceDebugInfo() != other.hasIngestedContextReferenceDebugInfo()) - return false; - if (hasIngestedContextReferenceDebugInfo()) { - if (!getIngestedContextReferenceDebugInfo() - .equals(other.getIngestedContextReferenceDebugInfo())) return false; + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); } - if (hasServiceLatency() != other.hasServiceLatency()) return false; - if (hasServiceLatency()) { - if (!getServiceLatency().equals(other.getServiceLatency())) return false; + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + QUERY_GENERATION_FAILURE_REASON_FIELD_NUMBER; - hash = (53 * hash) + queryGenerationFailureReason_; - hash = (37 * hash) + QUERY_CATEGORIZATION_FAILURE_REASON_FIELD_NUMBER; - hash = (53 * hash) + queryCategorizationFailureReason_; - hash = (37 * hash) + DATASTORE_RESPONSE_REASON_FIELD_NUMBER; - hash = (53 * hash) + datastoreResponseReason_; - if (hasKnowledgeAssistBehavior()) { - hash = (37 * hash) + KNOWLEDGE_ASSIST_BEHAVIOR_FIELD_NUMBER; - hash = (53 * hash) + getKnowledgeAssistBehavior().hashCode(); + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - if (hasIngestedContextReferenceDebugInfo()) { - hash = (37 * hash) + INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER; - hash = (53 * hash) + getIngestedContextReferenceDebugInfo().hashCode(); + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } - if (hasServiceLatency()) { - hash = (37 * hash) + SERVICE_LATENCY_FIELD_NUMBER; - hash = (53 * hash) + getServiceLatency().hashCode(); + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + /** + * + * + *
            +     * Token usage metadata for query generation.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo.Builder.class); + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + // Construct using + // com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo.newBuilder() + private Builder() {} - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + promptTokenCount_ = 0; + candidatesTokenCount_ = 0; + totalTokenCount_ = 0; + return this; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance(); + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + buildPartial() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + result = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.promptTokenCount_ = promptTokenCount_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.candidatesTokenCount_ = candidatesTokenCount_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalTokenCount_ = totalTokenCount_; + } + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) { + return mergeFrom( + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo) + other); + } else { + super.mergeFrom(other); + return this; + } + } - public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } + public Builder mergeFrom( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance()) return this; + if (other.getPromptTokenCount() != 0) { + setPromptTokenCount(other.getPromptTokenCount()); + } + if (other.getCandidatesTokenCount() != 0) { + setCandidatesTokenCount(other.getCandidatesTokenCount()); + } + if (other.getTotalTokenCount() != 0) { + setTotalTokenCount(other.getTotalTokenCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @java.lang.Override + public final boolean isInitialized() { + return true; + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (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: + { + promptTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + candidatesTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + totalTokenCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } - public static Builder newBuilder( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + private int bitField0_; - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + private int promptTokenCount_; - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } + /** + * + * + *
            +       * The total number of tokens in the prompt.
            +       * 
            + * + * int32 prompt_token_count = 1; + * + * @return The promptTokenCount. + */ + @java.lang.Override + public int getPromptTokenCount() { + return promptTokenCount_; + } - /** - * - * - *
            -   * Debug information related to Knowledge Assist feature.
            -   * 
            - * - * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor; - } + /** + * + * + *
            +       * The total number of tokens in the prompt.
            +       * 
            + * + * int32 prompt_token_count = 1; + * + * @param value The promptTokenCount to set. + * @return This builder for chaining. + */ + public Builder setPromptTokenCount(int value) { - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.class, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.Builder.class); - } + promptTokenCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } - // Construct using com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + /** + * + * + *
            +       * The total number of tokens in the prompt.
            +       * 
            + * + * int32 prompt_token_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearPromptTokenCount() { + bitField0_ = (bitField0_ & ~0x00000001); + promptTokenCount_ = 0; + onChanged(); + return this; + } - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } + private int candidatesTokenCount_; - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetKnowledgeAssistBehaviorFieldBuilder(); - internalGetIngestedContextReferenceDebugInfoFieldBuilder(); - internalGetServiceLatencyFieldBuilder(); + /** + * + * + *
            +       * The total number of tokens in the generated candidates.
            +       * 
            + * + * int32 candidates_token_count = 2; + * + * @return The candidatesTokenCount. + */ + @java.lang.Override + public int getCandidatesTokenCount() { + return candidatesTokenCount_; } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - queryGenerationFailureReason_ = 0; - queryCategorizationFailureReason_ = 0; - datastoreResponseReason_ = 0; - knowledgeAssistBehavior_ = null; - if (knowledgeAssistBehaviorBuilder_ != null) { - knowledgeAssistBehaviorBuilder_.dispose(); - knowledgeAssistBehaviorBuilder_ = null; - } - ingestedContextReferenceDebugInfo_ = null; - if (ingestedContextReferenceDebugInfoBuilder_ != null) { - ingestedContextReferenceDebugInfoBuilder_.dispose(); - ingestedContextReferenceDebugInfoBuilder_ = null; + /** + * + * + *
            +       * The total number of tokens in the generated candidates.
            +       * 
            + * + * int32 candidates_token_count = 2; + * + * @param value The candidatesTokenCount to set. + * @return This builder for chaining. + */ + public Builder setCandidatesTokenCount(int value) { + + candidatesTokenCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; } - serviceLatency_ = null; - if (serviceLatencyBuilder_ != null) { - serviceLatencyBuilder_.dispose(); - serviceLatencyBuilder_ = null; + + /** + * + * + *
            +       * The total number of tokens in the generated candidates.
            +       * 
            + * + * int32 candidates_token_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearCandidatesTokenCount() { + bitField0_ = (bitField0_ & ~0x00000002); + candidatesTokenCount_ = 0; + onChanged(); + return this; } - return this; - } - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.dialogflow.v2beta1.ParticipantProto - .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor; - } + private int totalTokenCount_; - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - getDefaultInstanceForType() { - return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance(); - } + /** + * + * + *
            +       * The total number of tokens for the entire request.
            +       * 
            + * + * int32 total_token_count = 3; + * + * @return The totalTokenCount. + */ + @java.lang.Override + public int getTotalTokenCount() { + return totalTokenCount_; + } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo build() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + * + * + *
            +       * The total number of tokens for the entire request.
            +       * 
            + * + * int32 total_token_count = 3; + * + * @param value The totalTokenCount to set. + * @return This builder for chaining. + */ + public Builder setTotalTokenCount(int value) { + + totalTokenCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } - return result; - } - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo buildPartial() { + /** + * + * + *
            +       * The total number of tokens for the entire request.
            +       * 
            + * + * int32 total_token_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalTokenCount() { + bitField0_ = (bitField0_ & ~0x00000004); + totalTokenCount_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo) + private static final com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo(); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryGenerationDebugInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int QUERY_GENERATION_FAILURE_REASON_FIELD_NUMBER = 1; + private int queryGenerationFailureReason_ = 0; + + /** + * + * + *
            +   * Reason for query generation.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The enum numeric value on the wire for queryGenerationFailureReason. + */ + @java.lang.Override + public int getQueryGenerationFailureReasonValue() { + return queryGenerationFailureReason_; + } + + /** + * + * + *
            +   * Reason for query generation.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The queryGenerationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + getQueryGenerationFailureReason() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + result = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationFailureReason.forNumber(queryGenerationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .UNRECOGNIZED + : result; + } + + public static final int QUERY_CATEGORIZATION_FAILURE_REASON_FIELD_NUMBER = 2; + private int queryCategorizationFailureReason_ = 0; + + /** + * + * + *
            +   * Reason for query categorization.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The enum numeric value on the wire for queryCategorizationFailureReason. + */ + @java.lang.Override + public int getQueryCategorizationFailureReasonValue() { + return queryCategorizationFailureReason_; + } + + /** + * + * + *
            +   * Reason for query categorization.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The queryCategorizationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason + getQueryCategorizationFailureReason() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + result = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.forNumber(queryCategorizationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.UNRECOGNIZED + : result; + } + + public static final int DATASTORE_RESPONSE_REASON_FIELD_NUMBER = 3; + private int datastoreResponseReason_ = 0; + + /** + * + * + *
            +   * Response reason from datastore which indicates data serving status or
            +   * answer quality degradation.
            +   * 
            + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
            +   * Response reason from datastore which indicates data serving status or
            +   * answer quality degradation.
            +   * 
            + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The datastoreResponseReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.forNumber( + datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.UNRECOGNIZED + : result; + } + + public static final int KNOWLEDGE_ASSIST_BEHAVIOR_FIELD_NUMBER = 4; + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + knowledgeAssistBehavior_; + + /** + * + * + *
            +   * Configured behaviors for Knowedge Assist.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return Whether the knowledgeAssistBehavior field is set. + */ + @java.lang.Override + public boolean hasKnowledgeAssistBehavior() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Configured behaviors for Knowedge Assist.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return The knowledgeAssistBehavior. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getKnowledgeAssistBehavior() { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } + + /** + * + * + *
            +   * Configured behaviors for Knowedge Assist.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder + getKnowledgeAssistBehaviorOrBuilder() { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } + + public static final int INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER = 5; + private com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + + /** + * + * + *
            +   * Information about parameters ingested for search knowledge.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return Whether the ingestedContextReferenceDebugInfo field is set. + */ + @java.lang.Override + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Information about parameters ingested for search knowledge.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + * + * @return The ingestedContextReferenceDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + /** + * + * + *
            +   * Information about parameters ingested for search knowledge.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } + + public static final int SERVICE_LATENCY_FIELD_NUMBER = 6; + private com.google.cloud.dialogflow.v2beta1.ServiceLatency serviceLatency_; + + /** + * + * + *
            +   * The latency of the service.
            +   * 
            + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * + * @return Whether the serviceLatency field is set. + */ + @java.lang.Override + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * The latency of the service.
            +   * 
            + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * + * @return The serviceLatency. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + /** + * + * + *
            +   * The latency of the service.
            +   * 
            + * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder getServiceLatencyOrBuilder() { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; + } + + public static final int QUERY_GENERATION_DEBUG_INFO_FIELD_NUMBER = 7; + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + queryGenerationDebugInfo_; + + /** + * + * + *
            +   * Token usage metadata for query generation.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return Whether the queryGenerationDebugInfo field is set. + */ + @java.lang.Override + public boolean hasQueryGenerationDebugInfo() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Token usage metadata for query generation.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return The queryGenerationDebugInfo. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getQueryGenerationDebugInfo() { + return queryGenerationDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance() + : queryGenerationDebugInfo_; + } + + /** + * + * + *
            +   * Token usage metadata for query generation.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfoOrBuilder + getQueryGenerationDebugInfoOrBuilder() { + return queryGenerationDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .getDefaultInstance() + : queryGenerationDebugInfo_; + } + + public static final int CES_DEBUG_INFO_FIELD_NUMBER = 8; + private com.google.protobuf.Struct cesDebugInfo_; + + /** + * + * + *
            +   * Debug information from CES runtime API.
            +   * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return Whether the cesDebugInfo field is set. + */ + @java.lang.Override + public boolean hasCesDebugInfo() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +   * Debug information from CES runtime API.
            +   * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return The cesDebugInfo. + */ + @java.lang.Override + public com.google.protobuf.Struct getCesDebugInfo() { + return cesDebugInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : cesDebugInfo_; + } + + /** + * + * + *
            +   * Debug information from CES runtime API.
            +   * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCesDebugInfoOrBuilder() { + return cesDebugInfo_ == null ? com.google.protobuf.Struct.getDefaultInstance() : cesDebugInfo_; + } + + 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 (queryGenerationFailureReason_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, queryGenerationFailureReason_); + } + if (queryCategorizationFailureReason_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, queryCategorizationFailureReason_); + } + if (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getKnowledgeAssistBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getServiceLatency()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(7, getQueryGenerationDebugInfo()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(8, getCesDebugInfo()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (queryGenerationFailureReason_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + .QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, queryGenerationFailureReason_); + } + if (queryCategorizationFailureReason_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 2, queryCategorizationFailureReason_); + } + if (datastoreResponseReason_ + != com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason + .DATASTORE_RESPONSE_REASON_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, datastoreResponseReason_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getKnowledgeAssistBehavior()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getIngestedContextReferenceDebugInfo()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getServiceLatency()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getQueryGenerationDebugInfo()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCesDebugInfo()); + } + 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.dialogflow.v2beta1.KnowledgeAssistDebugInfo)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo other = + (com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) obj; + + if (queryGenerationFailureReason_ != other.queryGenerationFailureReason_) return false; + if (queryCategorizationFailureReason_ != other.queryCategorizationFailureReason_) return false; + if (datastoreResponseReason_ != other.datastoreResponseReason_) return false; + if (hasKnowledgeAssistBehavior() != other.hasKnowledgeAssistBehavior()) return false; + if (hasKnowledgeAssistBehavior()) { + if (!getKnowledgeAssistBehavior().equals(other.getKnowledgeAssistBehavior())) return false; + } + if (hasIngestedContextReferenceDebugInfo() != other.hasIngestedContextReferenceDebugInfo()) + return false; + if (hasIngestedContextReferenceDebugInfo()) { + if (!getIngestedContextReferenceDebugInfo() + .equals(other.getIngestedContextReferenceDebugInfo())) return false; + } + if (hasServiceLatency() != other.hasServiceLatency()) return false; + if (hasServiceLatency()) { + if (!getServiceLatency().equals(other.getServiceLatency())) return false; + } + if (hasQueryGenerationDebugInfo() != other.hasQueryGenerationDebugInfo()) return false; + if (hasQueryGenerationDebugInfo()) { + if (!getQueryGenerationDebugInfo().equals(other.getQueryGenerationDebugInfo())) return false; + } + if (hasCesDebugInfo() != other.hasCesDebugInfo()) return false; + if (hasCesDebugInfo()) { + if (!getCesDebugInfo().equals(other.getCesDebugInfo())) 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) + QUERY_GENERATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + queryGenerationFailureReason_; + hash = (37 * hash) + QUERY_CATEGORIZATION_FAILURE_REASON_FIELD_NUMBER; + hash = (53 * hash) + queryCategorizationFailureReason_; + hash = (37 * hash) + DATASTORE_RESPONSE_REASON_FIELD_NUMBER; + hash = (53 * hash) + datastoreResponseReason_; + if (hasKnowledgeAssistBehavior()) { + hash = (37 * hash) + KNOWLEDGE_ASSIST_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + getKnowledgeAssistBehavior().hashCode(); + } + if (hasIngestedContextReferenceDebugInfo()) { + hash = (37 * hash) + INGESTED_CONTEXT_REFERENCE_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getIngestedContextReferenceDebugInfo().hashCode(); + } + if (hasServiceLatency()) { + hash = (37 * hash) + SERVICE_LATENCY_FIELD_NUMBER; + hash = (53 * hash) + getServiceLatency().hashCode(); + } + if (hasQueryGenerationDebugInfo()) { + hash = (37 * hash) + QUERY_GENERATION_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getQueryGenerationDebugInfo().hashCode(); + } + if (hasCesDebugInfo()) { + hash = (37 * hash) + CES_DEBUG_INFO_FIELD_NUMBER; + hash = (53 * hash) + getCesDebugInfo().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo 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.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + 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.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Debug information related to Knowledge Assist feature.
            +   * 
            + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.class, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetKnowledgeAssistBehaviorFieldBuilder(); + internalGetIngestedContextReferenceDebugInfoFieldBuilder(); + internalGetServiceLatencyFieldBuilder(); + internalGetQueryGenerationDebugInfoFieldBuilder(); + internalGetCesDebugInfoFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + queryGenerationFailureReason_ = 0; + queryCategorizationFailureReason_ = 0; + datastoreResponseReason_ = 0; + knowledgeAssistBehavior_ = null; + if (knowledgeAssistBehaviorBuilder_ != null) { + knowledgeAssistBehaviorBuilder_.dispose(); + knowledgeAssistBehaviorBuilder_ = null; + } + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; + } + queryGenerationDebugInfo_ = null; + if (queryGenerationDebugInfoBuilder_ != null) { + queryGenerationDebugInfoBuilder_.dispose(); + queryGenerationDebugInfoBuilder_ = null; + } + cesDebugInfo_ = null; + if (cesDebugInfoBuilder_ != null) { + cesDebugInfoBuilder_.dispose(); + cesDebugInfoBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ParticipantProto + .internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo build() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo buildPartial() { com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo result = new com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo(this); if (bitField0_ != 0) { @@ -3703,197 +4635,664 @@ public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo buildPartial return result; } - private void buildPartial0( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.queryGenerationFailureReason_ = queryGenerationFailureReason_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.queryCategorizationFailureReason_ = queryCategorizationFailureReason_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.datastoreResponseReason_ = datastoreResponseReason_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.knowledgeAssistBehavior_ = - knowledgeAssistBehaviorBuilder_ == null - ? knowledgeAssistBehavior_ - : knowledgeAssistBehaviorBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.ingestedContextReferenceDebugInfo_ = - ingestedContextReferenceDebugInfoBuilder_ == null - ? ingestedContextReferenceDebugInfo_ - : ingestedContextReferenceDebugInfoBuilder_.build(); - to_bitField0_ |= 0x00000002; + private void buildPartial0( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.queryGenerationFailureReason_ = queryGenerationFailureReason_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.queryCategorizationFailureReason_ = queryCategorizationFailureReason_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.datastoreResponseReason_ = datastoreResponseReason_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.knowledgeAssistBehavior_ = + knowledgeAssistBehaviorBuilder_ == null + ? knowledgeAssistBehavior_ + : knowledgeAssistBehaviorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.ingestedContextReferenceDebugInfo_ = + ingestedContextReferenceDebugInfoBuilder_ == null + ? ingestedContextReferenceDebugInfo_ + : ingestedContextReferenceDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.serviceLatency_ = + serviceLatencyBuilder_ == null ? serviceLatency_ : serviceLatencyBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.queryGenerationDebugInfo_ = + queryGenerationDebugInfoBuilder_ == null + ? queryGenerationDebugInfo_ + : queryGenerationDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.cesDebugInfo_ = + cesDebugInfoBuilder_ == null ? cesDebugInfo_ : cesDebugInfoBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo other) { + if (other + == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance()) + return this; + if (other.queryGenerationFailureReason_ != 0) { + setQueryGenerationFailureReasonValue(other.getQueryGenerationFailureReasonValue()); + } + if (other.queryCategorizationFailureReason_ != 0) { + setQueryCategorizationFailureReasonValue(other.getQueryCategorizationFailureReasonValue()); + } + if (other.datastoreResponseReason_ != 0) { + setDatastoreResponseReasonValue(other.getDatastoreResponseReasonValue()); + } + if (other.hasKnowledgeAssistBehavior()) { + mergeKnowledgeAssistBehavior(other.getKnowledgeAssistBehavior()); + } + if (other.hasIngestedContextReferenceDebugInfo()) { + mergeIngestedContextReferenceDebugInfo(other.getIngestedContextReferenceDebugInfo()); + } + if (other.hasServiceLatency()) { + mergeServiceLatency(other.getServiceLatency()); + } + if (other.hasQueryGenerationDebugInfo()) { + mergeQueryGenerationDebugInfo(other.getQueryGenerationDebugInfo()); + } + if (other.hasCesDebugInfo()) { + mergeCesDebugInfo(other.getCesDebugInfo()); + } + 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: + { + queryGenerationFailureReason_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + queryCategorizationFailureReason_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + datastoreResponseReason_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetKnowledgeAssistBehaviorFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetServiceLatencyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetQueryGenerationDebugInfoFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetCesDebugInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int queryGenerationFailureReason_ = 0; + + /** + * + * + *
            +     * Reason for query generation.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The enum numeric value on the wire for queryGenerationFailureReason. + */ + @java.lang.Override + public int getQueryGenerationFailureReasonValue() { + return queryGenerationFailureReason_; + } + + /** + * + * + *
            +     * Reason for query generation.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @param value The enum numeric value on the wire for queryGenerationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationFailureReasonValue(int value) { + queryGenerationFailureReason_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Reason for query generation.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return The queryGenerationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + getQueryGenerationFailureReason() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + result = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationFailureReason.forNumber(queryGenerationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationFailureReason.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Reason for query generation.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @param value The queryGenerationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryGenerationFailureReason( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason + value) { + if (value == null) { + throw new NullPointerException(); } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.serviceLatency_ = - serviceLatencyBuilder_ == null ? serviceLatency_ : serviceLatencyBuilder_.build(); - to_bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; + queryGenerationFailureReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Reason for query generation.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearQueryGenerationFailureReason() { + bitField0_ = (bitField0_ & ~0x00000001); + queryGenerationFailureReason_ = 0; + onChanged(); + return this; + } + + private int queryCategorizationFailureReason_ = 0; + + /** + * + * + *
            +     * Reason for query categorization.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The enum numeric value on the wire for queryCategorizationFailureReason. + */ + @java.lang.Override + public int getQueryCategorizationFailureReasonValue() { + return queryCategorizationFailureReason_; + } + + /** + * + * + *
            +     * Reason for query categorization.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @param value The enum numeric value on the wire for queryCategorizationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryCategorizationFailureReasonValue(int value) { + queryCategorizationFailureReason_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Reason for query categorization.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return The queryCategorizationFailureReason. + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason + getQueryCategorizationFailureReason() { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason + result = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.forNumber(queryCategorizationFailureReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Reason for query categorization.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @param value The queryCategorizationFailureReason to set. + * @return This builder for chaining. + */ + public Builder setQueryCategorizationFailureReason( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryCategorizationFailureReason + value) { + if (value == null) { + throw new NullPointerException(); } - result.bitField0_ |= to_bitField0_; + bitField0_ |= 0x00000002; + queryCategorizationFailureReason_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Reason for query categorization.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearQueryCategorizationFailureReason() { + bitField0_ = (bitField0_ & ~0x00000002); + queryCategorizationFailureReason_ = 0; + onChanged(); + return this; + } + + private int datastoreResponseReason_ = 0; + + /** + * + * + *
            +     * Response reason from datastore which indicates data serving status or
            +     * answer quality degradation.
            +     * 
            + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The enum numeric value on the wire for datastoreResponseReason. + */ + @java.lang.Override + public int getDatastoreResponseReasonValue() { + return datastoreResponseReason_; + } + + /** + * + * + *
            +     * Response reason from datastore which indicates data serving status or
            +     * answer quality degradation.
            +     * 
            + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @param value The enum numeric value on the wire for datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReasonValue(int value) { + datastoreResponseReason_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; } + /** + * + * + *
            +     * Response reason from datastore which indicates data serving status or
            +     * answer quality degradation.
            +     * 
            + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return The datastoreResponseReason. + */ @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) { - return mergeFrom((com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) other); - } else { - super.mergeFrom(other); - return this; - } + public com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason + getDatastoreResponseReason() { + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason result = + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.forNumber( + datastoreResponseReason_); + return result == null + ? com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.UNRECOGNIZED + : result; } - public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo other) { - if (other - == com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.getDefaultInstance()) - return this; - if (other.queryGenerationFailureReason_ != 0) { - setQueryGenerationFailureReasonValue(other.getQueryGenerationFailureReasonValue()); - } - if (other.queryCategorizationFailureReason_ != 0) { - setQueryCategorizationFailureReasonValue(other.getQueryCategorizationFailureReasonValue()); - } - if (other.datastoreResponseReason_ != 0) { - setDatastoreResponseReasonValue(other.getDatastoreResponseReasonValue()); - } - if (other.hasKnowledgeAssistBehavior()) { - mergeKnowledgeAssistBehavior(other.getKnowledgeAssistBehavior()); - } - if (other.hasIngestedContextReferenceDebugInfo()) { - mergeIngestedContextReferenceDebugInfo(other.getIngestedContextReferenceDebugInfo()); - } - if (other.hasServiceLatency()) { - mergeServiceLatency(other.getServiceLatency()); + /** + * + * + *
            +     * Response reason from datastore which indicates data serving status or
            +     * answer quality degradation.
            +     * 
            + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @param value The datastoreResponseReason to set. + * @return This builder for chaining. + */ + public Builder setDatastoreResponseReason( + com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason value) { + if (value == null) { + throw new NullPointerException(); } - this.mergeUnknownFields(other.getUnknownFields()); + bitField0_ |= 0x00000004; + datastoreResponseReason_ = value.getNumber(); onChanged(); return this; } - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
            +     * Response reason from datastore which indicates data serving status or
            +     * answer quality degradation.
            +     * 
            + * + * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * + * @return This builder for chaining. + */ + public Builder clearDatastoreResponseReason() { + bitField0_ = (bitField0_ & ~0x00000004); + datastoreResponseReason_ = 0; + onChanged(); + return 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(); + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + knowledgeAssistBehavior_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder> + knowledgeAssistBehaviorBuilder_; + + /** + * + * + *
            +     * Configured behaviors for Knowedge Assist.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return Whether the knowledgeAssistBehavior field is set. + */ + public boolean hasKnowledgeAssistBehavior() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Configured behaviors for Knowedge Assist.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + * + * @return The knowledgeAssistBehavior. + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + getKnowledgeAssistBehavior() { + if (knowledgeAssistBehaviorBuilder_ == null) { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } else { + return knowledgeAssistBehaviorBuilder_.getMessage(); } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - queryGenerationFailureReason_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - queryCategorizationFailureReason_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - datastoreResponseReason_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage( - internalGetKnowledgeAssistBehaviorFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - input.readMessage( - internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage( - internalGetServiceLatencyFieldBuilder().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 + } + + /** + * + * + *
            +     * Configured behaviors for Knowedge Assist.
            +     * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; + * + */ + public Builder setKnowledgeAssistBehavior( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + value) { + if (knowledgeAssistBehaviorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + knowledgeAssistBehavior_ = value; + } else { + knowledgeAssistBehaviorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); return this; } - private int bitField0_; - - private int queryGenerationFailureReason_ = 0; - /** * * *
            -     * Reason for query generation.
            +     * Configured behaviors for Knowedge Assist.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; * - * - * @return The enum numeric value on the wire for queryGenerationFailureReason. */ - @java.lang.Override - public int getQueryGenerationFailureReasonValue() { - return queryGenerationFailureReason_; + public Builder setKnowledgeAssistBehavior( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.Builder + builderForValue) { + if (knowledgeAssistBehaviorBuilder_ == null) { + knowledgeAssistBehavior_ = builderForValue.build(); + } else { + knowledgeAssistBehaviorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; } /** * * *
            -     * Reason for query generation.
            +     * Configured behaviors for Knowedge Assist.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; * - * - * @param value The enum numeric value on the wire for queryGenerationFailureReason to set. - * @return This builder for chaining. */ - public Builder setQueryGenerationFailureReasonValue(int value) { - queryGenerationFailureReason_ = value; - bitField0_ |= 0x00000001; - onChanged(); + public Builder mergeKnowledgeAssistBehavior( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + value) { + if (knowledgeAssistBehaviorBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && knowledgeAssistBehavior_ != null + && knowledgeAssistBehavior_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior.getDefaultInstance()) { + getKnowledgeAssistBehaviorBuilder().mergeFrom(value); + } else { + knowledgeAssistBehavior_ = value; + } + } else { + knowledgeAssistBehaviorBuilder_.mergeFrom(value); + } + if (knowledgeAssistBehavior_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } return this; } @@ -3901,165 +5300,172 @@ public Builder setQueryGenerationFailureReasonValue(int value) { * * *
            -     * Reason for query generation.
            +     * Configured behaviors for Knowedge Assist.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; * - * - * @return The queryGenerationFailureReason. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason - getQueryGenerationFailureReason() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason - result = - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryGenerationFailureReason.forNumber(queryGenerationFailureReason_); - return result == null - ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryGenerationFailureReason.UNRECOGNIZED - : result; + public Builder clearKnowledgeAssistBehavior() { + bitField0_ = (bitField0_ & ~0x00000008); + knowledgeAssistBehavior_ = null; + if (knowledgeAssistBehaviorBuilder_ != null) { + knowledgeAssistBehaviorBuilder_.dispose(); + knowledgeAssistBehaviorBuilder_ = null; + } + onChanged(); + return this; } /** * * *
            -     * Reason for query generation.
            +     * Configured behaviors for Knowedge Assist.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; * - * - * @param value The queryGenerationFailureReason to set. - * @return This builder for chaining. */ - public Builder setQueryGenerationFailureReason( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason - value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - queryGenerationFailureReason_ = value.getNumber(); + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder + getKnowledgeAssistBehaviorBuilder() { + bitField0_ |= 0x00000008; onChanged(); - return this; + return internalGetKnowledgeAssistBehaviorFieldBuilder().getBuilder(); } /** * * *
            -     * Reason for query generation.
            +     * Configured behaviors for Knowedge Assist.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason query_generation_failure_reason = 1; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; * - * - * @return This builder for chaining. */ - public Builder clearQueryGenerationFailureReason() { - bitField0_ = (bitField0_ & ~0x00000001); - queryGenerationFailureReason_ = 0; - onChanged(); - return this; + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder + getKnowledgeAssistBehaviorOrBuilder() { + if (knowledgeAssistBehaviorBuilder_ != null) { + return knowledgeAssistBehaviorBuilder_.getMessageOrBuilder(); + } else { + return knowledgeAssistBehavior_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .getDefaultInstance() + : knowledgeAssistBehavior_; + } } - private int queryCategorizationFailureReason_ = 0; - /** * * *
            -     * Reason for query categorization.
            +     * Configured behaviors for Knowedge Assist.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; * - * - * @return The enum numeric value on the wire for queryCategorizationFailureReason. */ - @java.lang.Override - public int getQueryCategorizationFailureReasonValue() { - return queryCategorizationFailureReason_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder> + internalGetKnowledgeAssistBehaviorFieldBuilder() { + if (knowledgeAssistBehaviorBuilder_ == null) { + knowledgeAssistBehaviorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehavior, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .KnowledgeAssistBehaviorOrBuilder>( + getKnowledgeAssistBehavior(), getParentForChildren(), isClean()); + knowledgeAssistBehavior_ = null; + } + return knowledgeAssistBehaviorBuilder_; } + private com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + ingestedContextReferenceDebugInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder> + ingestedContextReferenceDebugInfoBuilder_; + /** * * *
            -     * Reason for query categorization.
            +     * Information about parameters ingested for search knowledge.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; * * - * @param value The enum numeric value on the wire for queryCategorizationFailureReason to set. - * @return This builder for chaining. + * @return Whether the ingestedContextReferenceDebugInfo field is set. */ - public Builder setQueryCategorizationFailureReasonValue(int value) { - queryCategorizationFailureReason_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; + public boolean hasIngestedContextReferenceDebugInfo() { + return ((bitField0_ & 0x00000010) != 0); } /** * * *
            -     * Reason for query categorization.
            +     * Information about parameters ingested for search knowledge.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; * * - * @return The queryCategorizationFailureReason. + * @return The ingestedContextReferenceDebugInfo. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryCategorizationFailureReason - getQueryCategorizationFailureReason() { - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason - result = - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryCategorizationFailureReason.forNumber(queryCategorizationFailureReason_); - return result == null - ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryCategorizationFailureReason.UNRECOGNIZED - : result; + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + getIngestedContextReferenceDebugInfo() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance() + : ingestedContextReferenceDebugInfo_; + } else { + return ingestedContextReferenceDebugInfoBuilder_.getMessage(); + } } /** * * *
            -     * Reason for query categorization.
            +     * Information about parameters ingested for search knowledge.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; * - * - * @param value The queryCategorizationFailureReason to set. - * @return This builder for chaining. */ - public Builder setQueryCategorizationFailureReason( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .QueryCategorizationFailureReason - value) { - if (value == null) { - throw new NullPointerException(); + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ingestedContextReferenceDebugInfo_ = value; + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; - queryCategorizationFailureReason_ = value.getNumber(); + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -4068,59 +5474,77 @@ public Builder setQueryCategorizationFailureReason( * * *
            -     * Reason for query categorization.
            +     * Information about parameters ingested for search knowledge.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason query_categorization_failure_reason = 2; + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; * - * - * @return This builder for chaining. */ - public Builder clearQueryCategorizationFailureReason() { - bitField0_ = (bitField0_ & ~0x00000002); - queryCategorizationFailureReason_ = 0; + public Builder setIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder + builderForValue) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfo_ = builderForValue.build(); + } else { + ingestedContextReferenceDebugInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; onChanged(); return this; } - private int datastoreResponseReason_ = 0; - /** * * *
            -     * Response reason from datastore which indicates data serving status or
            -     * answer quality degradation.
            +     * Information about parameters ingested for search knowledge.
                  * 
            * - * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; - * - * - * @return The enum numeric value on the wire for datastoreResponseReason. + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * */ - @java.lang.Override - public int getDatastoreResponseReasonValue() { - return datastoreResponseReason_; + public Builder mergeIngestedContextReferenceDebugInfo( + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo value) { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && ingestedContextReferenceDebugInfo_ != null + && ingestedContextReferenceDebugInfo_ + != com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance()) { + getIngestedContextReferenceDebugInfoBuilder().mergeFrom(value); + } else { + ingestedContextReferenceDebugInfo_ = value; + } + } else { + ingestedContextReferenceDebugInfoBuilder_.mergeFrom(value); + } + if (ingestedContextReferenceDebugInfo_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; } /** * * *
            -     * Response reason from datastore which indicates data serving status or
            -     * answer quality degradation.
            +     * Information about parameters ingested for search knowledge.
                  * 
            * - * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; * - * - * @param value The enum numeric value on the wire for datastoreResponseReason to set. - * @return This builder for chaining. */ - public Builder setDatastoreResponseReasonValue(int value) { - datastoreResponseReason_ = value; - bitField0_ |= 0x00000004; + public Builder clearIngestedContextReferenceDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000010); + ingestedContextReferenceDebugInfo_ = null; + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + ingestedContextReferenceDebugInfoBuilder_.dispose(); + ingestedContextReferenceDebugInfoBuilder_ = null; + } onChanged(); return this; } @@ -4129,120 +5553,111 @@ public Builder setDatastoreResponseReasonValue(int value) { * * *
            -     * Response reason from datastore which indicates data serving status or
            -     * answer quality degradation.
            +     * Information about parameters ingested for search knowledge.
                  * 
            * - * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; * - * - * @return The datastoreResponseReason. */ - @java.lang.Override - public com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason - getDatastoreResponseReason() { - com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason result = - com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.forNumber( - datastoreResponseReason_); - return result == null - ? com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason.UNRECOGNIZED - : result; + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder + getIngestedContextReferenceDebugInfoBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(); } /** * * *
            -     * Response reason from datastore which indicates data serving status or
            -     * answer quality degradation.
            +     * Information about parameters ingested for search knowledge.
                  * 
            * - * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; * - * - * @param value The datastoreResponseReason to set. - * @return This builder for chaining. */ - public Builder setDatastoreResponseReason( - com.google.cloud.dialogflow.v2beta1.DatastoreResponseReason value) { - if (value == null) { - throw new NullPointerException(); + public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder + getIngestedContextReferenceDebugInfoOrBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ != null) { + return ingestedContextReferenceDebugInfoBuilder_.getMessageOrBuilder(); + } else { + return ingestedContextReferenceDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + .getDefaultInstance() + : ingestedContextReferenceDebugInfo_; } - bitField0_ |= 0x00000004; - datastoreResponseReason_ = value.getNumber(); - onChanged(); - return this; } /** * * *
            -     * Response reason from datastore which indicates data serving status or
            -     * answer quality degradation.
            +     * Information about parameters ingested for search knowledge.
                  * 
            * - * .google.cloud.dialogflow.v2beta1.DatastoreResponseReason datastore_response_reason = 3; + * + * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; * - * - * @return This builder for chaining. */ - public Builder clearDatastoreResponseReason() { - bitField0_ = (bitField0_ & ~0x00000004); - datastoreResponseReason_ = 0; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder> + internalGetIngestedContextReferenceDebugInfoFieldBuilder() { + if (ingestedContextReferenceDebugInfoBuilder_ == null) { + ingestedContextReferenceDebugInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder>( + getIngestedContextReferenceDebugInfo(), getParentForChildren(), isClean()); + ingestedContextReferenceDebugInfo_ = null; + } + return ingestedContextReferenceDebugInfoBuilder_; } - private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - knowledgeAssistBehavior_; + private com.google.cloud.dialogflow.v2beta1.ServiceLatency serviceLatency_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - .Builder, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .KnowledgeAssistBehaviorOrBuilder> - knowledgeAssistBehaviorBuilder_; + com.google.cloud.dialogflow.v2beta1.ServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder> + serviceLatencyBuilder_; /** * * *
            -     * Configured behaviors for Knowedge Assist.
            +     * The latency of the service.
                  * 
            * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; * - * @return Whether the knowledgeAssistBehavior field is set. + * @return Whether the serviceLatency field is set. */ - public boolean hasKnowledgeAssistBehavior() { - return ((bitField0_ & 0x00000008) != 0); + public boolean hasServiceLatency() { + return ((bitField0_ & 0x00000020) != 0); } /** * * *
            -     * Configured behaviors for Knowedge Assist.
            +     * The latency of the service.
                  * 
            * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; * - * @return The knowledgeAssistBehavior. + * @return The serviceLatency. */ - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - getKnowledgeAssistBehavior() { - if (knowledgeAssistBehaviorBuilder_ == null) { - return knowledgeAssistBehavior_ == null - ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - .getDefaultInstance() - : knowledgeAssistBehavior_; + public com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency() { + if (serviceLatencyBuilder_ == null) { + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; } else { - return knowledgeAssistBehaviorBuilder_.getMessage(); + return serviceLatencyBuilder_.getMessage(); } } @@ -4250,25 +5665,21 @@ public boolean hasKnowledgeAssistBehavior() { * * *
            -     * Configured behaviors for Knowedge Assist.
            +     * The latency of the service.
                  * 
            * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; */ - public Builder setKnowledgeAssistBehavior( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - value) { - if (knowledgeAssistBehaviorBuilder_ == null) { + public Builder setServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - knowledgeAssistBehavior_ = value; + serviceLatency_ = value; } else { - knowledgeAssistBehaviorBuilder_.setMessage(value); + serviceLatencyBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4277,22 +5688,19 @@ public Builder setKnowledgeAssistBehavior( * * *
            -     * Configured behaviors for Knowedge Assist.
            +     * The latency of the service.
                  * 
            * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; */ - public Builder setKnowledgeAssistBehavior( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior.Builder - builderForValue) { - if (knowledgeAssistBehaviorBuilder_ == null) { - knowledgeAssistBehavior_ = builderForValue.build(); + public Builder setServiceLatency( + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder builderForValue) { + if (serviceLatencyBuilder_ == null) { + serviceLatency_ = builderForValue.build(); } else { - knowledgeAssistBehaviorBuilder_.setMessage(builderForValue.build()); + serviceLatencyBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -4301,31 +5709,26 @@ public Builder setKnowledgeAssistBehavior( * * *
            -     * Configured behaviors for Knowedge Assist.
            +     * The latency of the service.
                  * 
            * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; */ - public Builder mergeKnowledgeAssistBehavior( - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - value) { - if (knowledgeAssistBehaviorBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && knowledgeAssistBehavior_ != null - && knowledgeAssistBehavior_ - != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .KnowledgeAssistBehavior.getDefaultInstance()) { - getKnowledgeAssistBehaviorBuilder().mergeFrom(value); + public Builder mergeServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLatency value) { + if (serviceLatencyBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && serviceLatency_ != null + && serviceLatency_ + != com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance()) { + getServiceLatencyBuilder().mergeFrom(value); } else { - knowledgeAssistBehavior_ = value; + serviceLatency_ = value; } } else { - knowledgeAssistBehaviorBuilder_.mergeFrom(value); + serviceLatencyBuilder_.mergeFrom(value); } - if (knowledgeAssistBehavior_ != null) { - bitField0_ |= 0x00000008; + if (serviceLatency_ != null) { + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -4335,19 +5738,17 @@ public Builder mergeKnowledgeAssistBehavior( * * *
            -     * Configured behaviors for Knowedge Assist.
            +     * The latency of the service.
                  * 
            * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; */ - public Builder clearKnowledgeAssistBehavior() { - bitField0_ = (bitField0_ & ~0x00000008); - knowledgeAssistBehavior_ = null; - if (knowledgeAssistBehaviorBuilder_ != null) { - knowledgeAssistBehaviorBuilder_.dispose(); - knowledgeAssistBehaviorBuilder_ = null; + public Builder clearServiceLatency() { + bitField0_ = (bitField0_ & ~0x00000020); + serviceLatency_ = null; + if (serviceLatencyBuilder_ != null) { + serviceLatencyBuilder_.dispose(); + serviceLatencyBuilder_ = null; } onChanged(); return this; @@ -4357,42 +5758,34 @@ public Builder clearKnowledgeAssistBehavior() { * * *
            -     * Configured behaviors for Knowedge Assist.
            +     * The latency of the service.
                  * 
            * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; */ - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - .Builder - getKnowledgeAssistBehaviorBuilder() { - bitField0_ |= 0x00000008; + public com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder getServiceLatencyBuilder() { + bitField0_ |= 0x00000020; onChanged(); - return internalGetKnowledgeAssistBehaviorFieldBuilder().getBuilder(); + return internalGetServiceLatencyFieldBuilder().getBuilder(); } /** * * *
            -     * Configured behaviors for Knowedge Assist.
            +     * The latency of the service.
                  * 
            * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; */ - public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .KnowledgeAssistBehaviorOrBuilder - getKnowledgeAssistBehaviorOrBuilder() { - if (knowledgeAssistBehaviorBuilder_ != null) { - return knowledgeAssistBehaviorBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder + getServiceLatencyOrBuilder() { + if (serviceLatencyBuilder_ != null) { + return serviceLatencyBuilder_.getMessageOrBuilder(); } else { - return knowledgeAssistBehavior_ == null - ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - .getDefaultInstance() - : knowledgeAssistBehavior_; + return serviceLatency_ == null + ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() + : serviceLatency_; } } @@ -4400,82 +5793,77 @@ public Builder clearKnowledgeAssistBehavior() { * * *
            -     * Configured behaviors for Knowedge Assist.
            +     * The latency of the service.
                  * 
            * - * - * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior knowledge_assist_behavior = 4; - * + * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - .Builder, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .KnowledgeAssistBehaviorOrBuilder> - internalGetKnowledgeAssistBehaviorFieldBuilder() { - if (knowledgeAssistBehaviorBuilder_ == null) { - knowledgeAssistBehaviorBuilder_ = + com.google.cloud.dialogflow.v2beta1.ServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder> + internalGetServiceLatencyFieldBuilder() { + if (serviceLatencyBuilder_ == null) { + serviceLatencyBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .KnowledgeAssistBehavior, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior - .Builder, - com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo - .KnowledgeAssistBehaviorOrBuilder>( - getKnowledgeAssistBehavior(), getParentForChildren(), isClean()); - knowledgeAssistBehavior_ = null; + com.google.cloud.dialogflow.v2beta1.ServiceLatency, + com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, + com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder>( + getServiceLatency(), getParentForChildren(), isClean()); + serviceLatency_ = null; } - return knowledgeAssistBehaviorBuilder_; + return serviceLatencyBuilder_; } - private com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo - ingestedContextReferenceDebugInfo_; + private com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + queryGenerationDebugInfo_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder> - ingestedContextReferenceDebugInfoBuilder_; + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfoOrBuilder> + queryGenerationDebugInfoBuilder_; /** * * *
            -     * Information about parameters ingested for search knowledge.
            +     * Token usage metadata for query generation.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; * * - * @return Whether the ingestedContextReferenceDebugInfo field is set. + * @return Whether the queryGenerationDebugInfo field is set. */ - public boolean hasIngestedContextReferenceDebugInfo() { - return ((bitField0_ & 0x00000010) != 0); + public boolean hasQueryGenerationDebugInfo() { + return ((bitField0_ & 0x00000040) != 0); } /** * * *
            -     * Information about parameters ingested for search knowledge.
            +     * Token usage metadata for query generation.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; * * - * @return The ingestedContextReferenceDebugInfo. + * @return The queryGenerationDebugInfo. */ - public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo - getIngestedContextReferenceDebugInfo() { - if (ingestedContextReferenceDebugInfoBuilder_ == null) { - return ingestedContextReferenceDebugInfo_ == null - ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getQueryGenerationDebugInfo() { + if (queryGenerationDebugInfoBuilder_ == null) { + return queryGenerationDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo .getDefaultInstance() - : ingestedContextReferenceDebugInfo_; + : queryGenerationDebugInfo_; } else { - return ingestedContextReferenceDebugInfoBuilder_.getMessage(); + return queryGenerationDebugInfoBuilder_.getMessage(); } } @@ -4483,24 +5871,25 @@ public boolean hasIngestedContextReferenceDebugInfo() { * * *
            -     * Information about parameters ingested for search knowledge.
            +     * Token usage metadata for query generation.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; * */ - public Builder setIngestedContextReferenceDebugInfo( - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo value) { - if (ingestedContextReferenceDebugInfoBuilder_ == null) { + public Builder setQueryGenerationDebugInfo( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + value) { + if (queryGenerationDebugInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ingestedContextReferenceDebugInfo_ = value; + queryGenerationDebugInfo_ = value; } else { - ingestedContextReferenceDebugInfoBuilder_.setMessage(value); + queryGenerationDebugInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4509,22 +5898,23 @@ public Builder setIngestedContextReferenceDebugInfo( * * *
            -     * Information about parameters ingested for search knowledge.
            +     * Token usage metadata for query generation.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; * */ - public Builder setIngestedContextReferenceDebugInfo( - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder + public Builder setQueryGenerationDebugInfo( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder builderForValue) { - if (ingestedContextReferenceDebugInfoBuilder_ == null) { - ingestedContextReferenceDebugInfo_ = builderForValue.build(); + if (queryGenerationDebugInfoBuilder_ == null) { + queryGenerationDebugInfo_ = builderForValue.build(); } else { - ingestedContextReferenceDebugInfoBuilder_.setMessage(builderForValue.build()); + queryGenerationDebugInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -4533,30 +5923,31 @@ public Builder setIngestedContextReferenceDebugInfo( * * *
            -     * Information about parameters ingested for search knowledge.
            +     * Token usage metadata for query generation.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; * */ - public Builder mergeIngestedContextReferenceDebugInfo( - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo value) { - if (ingestedContextReferenceDebugInfoBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && ingestedContextReferenceDebugInfo_ != null - && ingestedContextReferenceDebugInfo_ - != com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo - .getDefaultInstance()) { - getIngestedContextReferenceDebugInfoBuilder().mergeFrom(value); + public Builder mergeQueryGenerationDebugInfo( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + value) { + if (queryGenerationDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && queryGenerationDebugInfo_ != null + && queryGenerationDebugInfo_ + != com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo.getDefaultInstance()) { + getQueryGenerationDebugInfoBuilder().mergeFrom(value); } else { - ingestedContextReferenceDebugInfo_ = value; + queryGenerationDebugInfo_ = value; } } else { - ingestedContextReferenceDebugInfoBuilder_.mergeFrom(value); + queryGenerationDebugInfoBuilder_.mergeFrom(value); } - if (ingestedContextReferenceDebugInfo_ != null) { - bitField0_ |= 0x00000010; + if (queryGenerationDebugInfo_ != null) { + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -4566,19 +5957,19 @@ public Builder mergeIngestedContextReferenceDebugInfo( * * *
            -     * Information about parameters ingested for search knowledge.
            +     * Token usage metadata for query generation.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; * */ - public Builder clearIngestedContextReferenceDebugInfo() { - bitField0_ = (bitField0_ & ~0x00000010); - ingestedContextReferenceDebugInfo_ = null; - if (ingestedContextReferenceDebugInfoBuilder_ != null) { - ingestedContextReferenceDebugInfoBuilder_.dispose(); - ingestedContextReferenceDebugInfoBuilder_ = null; + public Builder clearQueryGenerationDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000040); + queryGenerationDebugInfo_ = null; + if (queryGenerationDebugInfoBuilder_ != null) { + queryGenerationDebugInfoBuilder_.dispose(); + queryGenerationDebugInfoBuilder_ = null; } onChanged(); return this; @@ -4588,40 +5979,42 @@ public Builder clearIngestedContextReferenceDebugInfo() { * * *
            -     * Information about parameters ingested for search knowledge.
            +     * Token usage metadata for query generation.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; * */ - public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder - getIngestedContextReferenceDebugInfoBuilder() { - bitField0_ |= 0x00000010; + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder + getQueryGenerationDebugInfoBuilder() { + bitField0_ |= 0x00000040; onChanged(); - return internalGetIngestedContextReferenceDebugInfoFieldBuilder().getBuilder(); + return internalGetQueryGenerationDebugInfoFieldBuilder().getBuilder(); } /** * * *
            -     * Information about parameters ingested for search knowledge.
            +     * Token usage metadata for query generation.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; * */ - public com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder - getIngestedContextReferenceDebugInfoOrBuilder() { - if (ingestedContextReferenceDebugInfoBuilder_ != null) { - return ingestedContextReferenceDebugInfoBuilder_.getMessageOrBuilder(); + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfoOrBuilder + getQueryGenerationDebugInfoOrBuilder() { + if (queryGenerationDebugInfoBuilder_ != null) { + return queryGenerationDebugInfoBuilder_.getMessageOrBuilder(); } else { - return ingestedContextReferenceDebugInfo_ == null - ? com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo + return queryGenerationDebugInfo_ == null + ? com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo .getDefaultInstance() - : ingestedContextReferenceDebugInfo_; + : queryGenerationDebugInfo_; } } @@ -4629,70 +6022,75 @@ public Builder clearIngestedContextReferenceDebugInfo() { * * *
            -     * Information about parameters ingested for search knowledge.
            +     * Token usage metadata for query generation.
                  * 
            * * - * .google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo ingested_context_reference_debug_info = 5; + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder> - internalGetIngestedContextReferenceDebugInfoFieldBuilder() { - if (ingestedContextReferenceDebugInfoBuilder_ == null) { - ingestedContextReferenceDebugInfoBuilder_ = + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfoOrBuilder> + internalGetQueryGenerationDebugInfoFieldBuilder() { + if (queryGenerationDebugInfoBuilder_ == null) { + queryGenerationDebugInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo, - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo.Builder, - com.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfoOrBuilder>( - getIngestedContextReferenceDebugInfo(), getParentForChildren(), isClean()); - ingestedContextReferenceDebugInfo_ = null; + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfo.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo + .QueryGenerationDebugInfoOrBuilder>( + getQueryGenerationDebugInfo(), getParentForChildren(), isClean()); + queryGenerationDebugInfo_ = null; } - return ingestedContextReferenceDebugInfoBuilder_; + return queryGenerationDebugInfoBuilder_; } - private com.google.cloud.dialogflow.v2beta1.ServiceLatency serviceLatency_; + private com.google.protobuf.Struct cesDebugInfo_; private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.ServiceLatency, - com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, - com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder> - serviceLatencyBuilder_; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + cesDebugInfoBuilder_; /** * * *
            -     * The latency of the service.
            +     * Debug information from CES runtime API.
                  * 
            * - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * .google.protobuf.Struct ces_debug_info = 8; * - * @return Whether the serviceLatency field is set. + * @return Whether the cesDebugInfo field is set. */ - public boolean hasServiceLatency() { - return ((bitField0_ & 0x00000020) != 0); + public boolean hasCesDebugInfo() { + return ((bitField0_ & 0x00000080) != 0); } /** * * *
            -     * The latency of the service.
            +     * Debug information from CES runtime API.
                  * 
            * - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * .google.protobuf.Struct ces_debug_info = 8; * - * @return The serviceLatency. + * @return The cesDebugInfo. */ - public com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency() { - if (serviceLatencyBuilder_ == null) { - return serviceLatency_ == null - ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() - : serviceLatency_; + public com.google.protobuf.Struct getCesDebugInfo() { + if (cesDebugInfoBuilder_ == null) { + return cesDebugInfo_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : cesDebugInfo_; } else { - return serviceLatencyBuilder_.getMessage(); + return cesDebugInfoBuilder_.getMessage(); } } @@ -4700,21 +6098,21 @@ public com.google.cloud.dialogflow.v2beta1.ServiceLatency getServiceLatency() { * * *
            -     * The latency of the service.
            +     * Debug information from CES runtime API.
                  * 
            * - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * .google.protobuf.Struct ces_debug_info = 8; */ - public Builder setServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLatency value) { - if (serviceLatencyBuilder_ == null) { + public Builder setCesDebugInfo(com.google.protobuf.Struct value) { + if (cesDebugInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - serviceLatency_ = value; + cesDebugInfo_ = value; } else { - serviceLatencyBuilder_.setMessage(value); + cesDebugInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4723,19 +6121,18 @@ public Builder setServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLate * * *
            -     * The latency of the service.
            +     * Debug information from CES runtime API.
                  * 
            * - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * .google.protobuf.Struct ces_debug_info = 8; */ - public Builder setServiceLatency( - com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder builderForValue) { - if (serviceLatencyBuilder_ == null) { - serviceLatency_ = builderForValue.build(); + public Builder setCesDebugInfo(com.google.protobuf.Struct.Builder builderForValue) { + if (cesDebugInfoBuilder_ == null) { + cesDebugInfo_ = builderForValue.build(); } else { - serviceLatencyBuilder_.setMessage(builderForValue.build()); + cesDebugInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4744,26 +6141,25 @@ public Builder setServiceLatency( * * *
            -     * The latency of the service.
            +     * Debug information from CES runtime API.
                  * 
            * - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * .google.protobuf.Struct ces_debug_info = 8; */ - public Builder mergeServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLatency value) { - if (serviceLatencyBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && serviceLatency_ != null - && serviceLatency_ - != com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance()) { - getServiceLatencyBuilder().mergeFrom(value); + public Builder mergeCesDebugInfo(com.google.protobuf.Struct value) { + if (cesDebugInfoBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && cesDebugInfo_ != null + && cesDebugInfo_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCesDebugInfoBuilder().mergeFrom(value); } else { - serviceLatency_ = value; + cesDebugInfo_ = value; } } else { - serviceLatencyBuilder_.mergeFrom(value); + cesDebugInfoBuilder_.mergeFrom(value); } - if (serviceLatency_ != null) { - bitField0_ |= 0x00000020; + if (cesDebugInfo_ != null) { + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -4773,17 +6169,17 @@ public Builder mergeServiceLatency(com.google.cloud.dialogflow.v2beta1.ServiceLa * * *
            -     * The latency of the service.
            +     * Debug information from CES runtime API.
                  * 
            * - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * .google.protobuf.Struct ces_debug_info = 8; */ - public Builder clearServiceLatency() { - bitField0_ = (bitField0_ & ~0x00000020); - serviceLatency_ = null; - if (serviceLatencyBuilder_ != null) { - serviceLatencyBuilder_.dispose(); - serviceLatencyBuilder_ = null; + public Builder clearCesDebugInfo() { + bitField0_ = (bitField0_ & ~0x00000080); + cesDebugInfo_ = null; + if (cesDebugInfoBuilder_ != null) { + cesDebugInfoBuilder_.dispose(); + cesDebugInfoBuilder_ = null; } onChanged(); return this; @@ -4793,34 +6189,33 @@ public Builder clearServiceLatency() { * * *
            -     * The latency of the service.
            +     * Debug information from CES runtime API.
                  * 
            * - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * .google.protobuf.Struct ces_debug_info = 8; */ - public com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder getServiceLatencyBuilder() { - bitField0_ |= 0x00000020; + public com.google.protobuf.Struct.Builder getCesDebugInfoBuilder() { + bitField0_ |= 0x00000080; onChanged(); - return internalGetServiceLatencyFieldBuilder().getBuilder(); + return internalGetCesDebugInfoFieldBuilder().getBuilder(); } /** * * *
            -     * The latency of the service.
            +     * Debug information from CES runtime API.
                  * 
            * - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * .google.protobuf.Struct ces_debug_info = 8; */ - public com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder - getServiceLatencyOrBuilder() { - if (serviceLatencyBuilder_ != null) { - return serviceLatencyBuilder_.getMessageOrBuilder(); + public com.google.protobuf.StructOrBuilder getCesDebugInfoOrBuilder() { + if (cesDebugInfoBuilder_ != null) { + return cesDebugInfoBuilder_.getMessageOrBuilder(); } else { - return serviceLatency_ == null - ? com.google.cloud.dialogflow.v2beta1.ServiceLatency.getDefaultInstance() - : serviceLatency_; + return cesDebugInfo_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : cesDebugInfo_; } } @@ -4828,26 +6223,26 @@ public com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder getServiceLate * * *
            -     * The latency of the service.
            +     * Debug information from CES runtime API.
                  * 
            * - * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; + * .google.protobuf.Struct ces_debug_info = 8; */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.ServiceLatency, - com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, - com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder> - internalGetServiceLatencyFieldBuilder() { - if (serviceLatencyBuilder_ == null) { - serviceLatencyBuilder_ = + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetCesDebugInfoFieldBuilder() { + if (cesDebugInfoBuilder_ == null) { + cesDebugInfoBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.dialogflow.v2beta1.ServiceLatency, - com.google.cloud.dialogflow.v2beta1.ServiceLatency.Builder, - com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder>( - getServiceLatency(), getParentForChildren(), isClean()); - serviceLatency_ = null; + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getCesDebugInfo(), getParentForChildren(), isClean()); + cesDebugInfo_ = null; } - return serviceLatencyBuilder_; + return cesDebugInfoBuilder_; } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo) diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfoOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfoOrBuilder.java index 152900bb067e..3f930a806ca1 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfoOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/KnowledgeAssistDebugInfoOrBuilder.java @@ -244,4 +244,86 @@ public interface KnowledgeAssistDebugInfoOrBuilder * .google.cloud.dialogflow.v2beta1.ServiceLatency service_latency = 6; */ com.google.cloud.dialogflow.v2beta1.ServiceLatencyOrBuilder getServiceLatencyOrBuilder(); + + /** + * + * + *
            +   * Token usage metadata for query generation.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return Whether the queryGenerationDebugInfo field is set. + */ + boolean hasQueryGenerationDebugInfo(); + + /** + * + * + *
            +   * Token usage metadata for query generation.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + * + * @return The queryGenerationDebugInfo. + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo + getQueryGenerationDebugInfo(); + + /** + * + * + *
            +   * Token usage metadata for query generation.
            +   * 
            + * + * + * .google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo query_generation_debug_info = 7; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfoOrBuilder + getQueryGenerationDebugInfoOrBuilder(); + + /** + * + * + *
            +   * Debug information from CES runtime API.
            +   * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return Whether the cesDebugInfo field is set. + */ + boolean hasCesDebugInfo(); + + /** + * + * + *
            +   * Debug information from CES runtime API.
            +   * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + * + * @return The cesDebugInfo. + */ + com.google.protobuf.Struct getCesDebugInfo(); + + /** + * + * + *
            +   * Debug information from CES runtime API.
            +   * 
            + * + * .google.protobuf.Struct ces_debug_info = 8; + */ + com.google.protobuf.StructOrBuilder getCesDebugInfoOrBuilder(); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java index 7e25b70ee5cc..4ab092572273 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/OutputAudioEncoding.java @@ -56,11 +56,12 @@ public enum OutputAudioEncoding implements com.google.protobuf.ProtocolMessageEn * * *
            -   * MP3 audio at 32kbps.
            +   * MP3 audio at 64kbps.
                * 
            * - * OUTPUT_AUDIO_ENCODING_MP3 = 2; + * OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; */ + @java.lang.Deprecated OUTPUT_AUDIO_ENCODING_MP3(2), /** * @@ -145,12 +146,12 @@ public enum OutputAudioEncoding implements com.google.protobuf.ProtocolMessageEn * * *
            -   * MP3 audio at 32kbps.
            +   * MP3 audio at 64kbps.
                * 
            * - * OUTPUT_AUDIO_ENCODING_MP3 = 2; + * OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; */ - public static final int OUTPUT_AUDIO_ENCODING_MP3_VALUE = 2; + @java.lang.Deprecated public static final int OUTPUT_AUDIO_ENCODING_MP3_VALUE = 2; /** * diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Participant.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Participant.java index 1879bcc7ce8a..044d9164902f 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Participant.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/Participant.java @@ -647,8 +647,8 @@ public com.google.cloud.dialogflow.v2beta1.Participant.Role getRole() { * * 2. If you set this field in * [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * @@ -660,6 +660,11 @@ public com.google.cloud.dialogflow.v2beta1.Participant.Role getRole() { * personalization. For example, Dialogflow can use it to provide personalized * smart reply suggestions for this user. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -703,8 +708,8 @@ public java.lang.String getObfuscatedExternalUserId() { * * 2. If you set this field in * [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * @@ -716,6 +721,11 @@ public java.lang.String getObfuscatedExternalUserId() { * personalization. For example, Dialogflow can use it to provide personalized * smart reply suggestions for this user. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -1694,8 +1704,8 @@ public Builder clearRole() { * * 2. If you set this field in * [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * @@ -1707,6 +1717,11 @@ public Builder clearRole() { * personalization. For example, Dialogflow can use it to provide personalized * smart reply suggestions for this user. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -1750,8 +1765,8 @@ public java.lang.String getObfuscatedExternalUserId() { * * 2. If you set this field in * [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * @@ -1763,6 +1778,11 @@ public java.lang.String getObfuscatedExternalUserId() { * personalization. For example, Dialogflow can use it to provide personalized * smart reply suggestions for this user. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -1806,8 +1826,8 @@ public com.google.protobuf.ByteString getObfuscatedExternalUserIdBytes() { * * 2. If you set this field in * [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * @@ -1819,6 +1839,11 @@ public com.google.protobuf.ByteString getObfuscatedExternalUserIdBytes() { * personalization. For example, Dialogflow can use it to provide personalized * smart reply suggestions for this user. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -1861,8 +1886,8 @@ public Builder setObfuscatedExternalUserId(java.lang.String value) { * * 2. If you set this field in * [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * @@ -1874,6 +1899,11 @@ public Builder setObfuscatedExternalUserId(java.lang.String value) { * personalization. For example, Dialogflow can use it to provide personalized * smart reply suggestions for this user. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -1912,8 +1942,8 @@ public Builder clearObfuscatedExternalUserId() { * * 2. If you set this field in * [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * @@ -1925,6 +1955,11 @@ public Builder clearObfuscatedExternalUserId() { * personalization. For example, Dialogflow can use it to provide personalized * smart reply suggestions for this user. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantOrBuilder.java index 212e25aeb52d..a02d6497f55b 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantOrBuilder.java @@ -105,8 +105,8 @@ public interface ParticipantOrBuilder * * 2. If you set this field in * [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * @@ -118,6 +118,11 @@ public interface ParticipantOrBuilder * personalization. For example, Dialogflow can use it to provide personalized * smart reply suggestions for this user. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -150,8 +155,8 @@ public interface ParticipantOrBuilder * * 2. If you set this field in * [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - * or - * [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + * or [StreamingAnalyzeContent] + * [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], * Dialogflow will update * [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. * @@ -163,6 +168,11 @@ public interface ParticipantOrBuilder * personalization. For example, Dialogflow can use it to provide personalized * smart reply suggestions for this user. * + * Additionally, to link an escalated Virtual Agent conversation + * with its corresponding Agent Assist conversation for analytics, this field + * in Agent Assist conversations should be populated to indicate the user id + * of the `END_USER` participant in the escalated conversation. + * * Note: * * * Please never pass raw user ids to Dialogflow. Always obfuscate your user diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java index e4c78d9777d9..e0a5af0a5102 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ParticipantProto.java @@ -300,6 +300,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -308,6 +312,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -324,6 +336,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_GenerativeSource_Snippet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -340,6 +356,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Input_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -356,6 +380,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_TurnComplete_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_TurnComplete_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -796,22 +828,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016latest_message\030\002 \001(\tB)\340A\001\372A#\n" + "!dialogflow.googleapis.com/Message\022\031\n" + "\014context_size\030\003 \001(\005B\003\340A\001\022%\n" - + "\030previous_suggested_query\030\004 \001(\tB\003\340A\001\"\254\001\n" + + "\030previous_suggested_query\030\004 \001(\tB\003\340A\001\"\265\002\n" + "\036SuggestKnowledgeAssistResponse\022\\\n" + "\027knowledge_assist_answer\030\001" + " \001(\01326.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswerB\003\340A\003\022\026\n" + "\016latest_message\030\002 \001(\t\022\024\n" - + "\014context_size\030\003 \001(\005\"\303\005\n" + + "\014context_size\030\003 \001(\005\022\206\001\n" + + "\"additional_suggested_query_results\030\004" + + " \003(\0132U.google.cloud.dialogflow.v2beta1.K" + + "nowledgeAssistAnswer.AdditionalSuggestedQueryResultB\003\340A\001\"\303\005\n" + "!IngestedContextReferenceDebugInfo\022\037\n" + "\027project_not_allowlisted\030\001 \001(\010\022#\n" + "\033context_reference_retrieved\030\002 \001(\010\022\205\001\n" - + "\036ingested_parameters_debug_info\030\003 \003(\0132].google.cl" - + "oud.dialogflow.v2beta1.IngestedContextRe" - + "ferenceDebugInfo.IngestedParameterDebugInfo\032\317\003\n" + + "\036ingested_parameters_debug_info\030\003" + + " \003(\0132].google.cloud.dialogflow.v2beta1." + + "IngestedContextReferenceDebugInfo.IngestedParameterDebugInfo\032\317\003\n" + "\032IngestedParameterDebugInfo\022\021\n" + "\tparameter\030\001 \001(\t\022\207\001\n" - + "\020ingestion_status\030\002 \001(\0162m.google.cloud.dialogflow.v2beta1.Inges" - + "tedContextReferenceDebugInfo.IngestedParameterDebugInfo.IngestionStatus\"\223\002\n" + + "\020ingestion_status\030\002 \001(\0162m.google.cloud.dialogf" + + "low.v2beta1.IngestedContextReferenceDebu" + + "gInfo.IngestedParameterDebugInfo.IngestionStatus\"\223\002\n" + "\017IngestionStatus\022 \n" + "\034INGESTION_STATUS_UNSPECIFIED\020\000\022\036\n" + "\032INGESTION_STATUS_SUCCEEDED\020\001\022*\n" @@ -821,28 +857,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037INGESTION_STATUS_INVALID_FORMAT\020\005\022&\n" + "\"INGESTION_STATUS_LANGUAGE_MISMATCH\020\006\"\234\002\n" + "\016ServiceLatency\022j\n" - + "\032internal_service_latencies\030\001" - + " \003(\0132F.google.cloud.dialogflow.v2beta1.ServiceLatency.InternalServiceLatency\032\235\001\n" + + "\032internal_service_latencies\030\001 \003(\0132F.google.cloud.dia" + + "logflow.v2beta1.ServiceLatency.InternalServiceLatency\032\235\001\n" + "\026InternalServiceLatency\022\014\n" - + "\004step\030\001 \001(\t\022\022\n" - + "\n" + + "\004step\030\001 \001(\t\022\022\n\n" + "latency_ms\030\002 \001(\002\022.\n\n" + "start_time\030\003 \001(\0132\032.google.protobuf.Timestamp\0221\n\r" - + "complete_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\222\020\n" + + "complete_time\030\004 \001(\0132\032.google.protobuf.Timestamp\"\257\022\n" + "\030KnowledgeAssistDebugInfo\022\177\n" - + "\037query_generation_failure_reason\030\001 \001(\0162V.google.clou" - + "d.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationFailureReason\022\207\001\n" - + "#query_categorization_failure_reason\030\002 \001(\016" - + "2Z.google.cloud.dialogflow.v2beta1.Knowl" - + "edgeAssistDebugInfo.QueryCategorizationFailureReason\022[\n" - + "\031datastore_response_reason\030\003" - + " \001(\01628.google.cloud.dialogflow.v2beta1.DatastoreResponseReason\022t\n" - + "\031knowledge_assist_behavior\030\004 \001(\0132Q.google.cloud.dial" - + "ogflow.v2beta1.KnowledgeAssistDebugInfo.KnowledgeAssistBehavior\022q\n" - + "%ingested_context_reference_debug_info\030\005 \001(\0132B.google." - + "cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo\022H\n" - + "\017service_latency\030\006 " - + "\001(\0132/.google.cloud.dialogflow.v2beta1.ServiceLatency\032\271\005\n" + + "\037query_generation_failure_reason\030\001 " + + "\001(\0162V.google.cloud.dialogflow.v2beta1.Kn" + + "owledgeAssistDebugInfo.QueryGenerationFailureReason\022\207\001\n" + + "#query_categorization_failure_reason\030\002 \001(\0162Z.google.cloud.dialogf" + + "low.v2beta1.KnowledgeAssistDebugInfo.QueryCategorizationFailureReason\022[\n" + + "\031datastore_response_reason\030\003 \001(\01628.google.cloud." + + "dialogflow.v2beta1.DatastoreResponseReason\022t\n" + + "\031knowledge_assist_behavior\030\004 \001(\0132Q." + + "google.cloud.dialogflow.v2beta1.Knowledg" + + "eAssistDebugInfo.KnowledgeAssistBehavior\022q\n" + + "%ingested_context_reference_debug_info\030\005" + + " \001(\0132B.google.cloud.dialogflow.v2beta1.IngestedContextReferenceDebugInfo\022H\n" + + "\017service_latency\030\006" + + " \001(\0132/.google.cloud.dialogflow.v2beta1.ServiceLatency\022w\n" + + "\033query_generation_debug_info\030\007 \001(\0132R.google.clou" + + "d.dialogflow.v2beta1.KnowledgeAssistDebugInfo.QueryGenerationDebugInfo\022/\n" + + "\016ces_debug_info\030\010 \001(\0132\027.google.protobuf.Struct\032", + "\271\005\n" + "\027KnowledgeAssistBehavior\022%\n" + "\035answer_generation_rewriter_on\030\001 \001(\010\022\"\n" + "\032end_user_metadata_included\030\002 \001(\010\022\031\n" @@ -852,8 +892,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031previous_queries_included\030\007 \001(\010\022\036\n" + "\026use_translated_message\030\010 \001(\010\022&\n" + "\036use_custom_safety_filter_level\030\t \001(\010\0223\n" - + "+convers", - "ation_transcript_has_mixed_languages\030\n" + + "+conversation_transcript_has_mixed_languages\030\n" + " \001(\010\0220\n" + "(query_generation_agent_language_mismatch\030\013 \001(\010\0223\n" + "+query_generation_end_user_language_mismatch\030\014 \001(\010\022%\n" @@ -863,7 +902,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036query_contained_search_context\030\017 \001(\010\022.\n" + "&invalid_items_query_suggestion_skipped\030\020 \001(\010\022+\n" + "#primary_query_redacted_and_replaced\030\021 \001(\010\022%\n" - + "\035appended_search_context_count\030\022 \001(\005\"\317\003\n" + + "\035appended_search_context_count\030\022 \001(\005\032q\n" + + "\030QueryGenerationDebugInfo\022\032\n" + + "\022prompt_token_count\030\001 \001(\005\022\036\n" + + "\026candidates_token_count\030\002 \001(\005\022\031\n" + + "\021total_token_count\030\003 \001(\005\"\317\003\n" + "\034QueryGenerationFailureReason\022/\n" + "+QUERY_GENERATION_FAILURE_REASON_UNSPECIFIED\020\000\022!\n" + "\035QUERY_GENERATION_OUT_OF_QUOTA\020\001\022\033\n" @@ -882,86 +925,122 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/QUERY_CATEGORIZATION_FAILURE_REASON_UNSPECIFIED\020\000\022\'\n" + "#QUERY_CATEGORIZATION_INVALID_CONFIG\020\001\022)\n" + "%QUERY_CATEGORIZATION_RESULT_NOT_FOUND\020\002\022\037\n" - + "\033QUERY_CATEGORIZATION_FAILED\020\003\"\224\007\n" + + "\033QUERY_CATEGORIZATION_FAILED\020\003\"\370\014\n" + "\025KnowledgeAssistAnswer\022^\n" - + "\017suggested_query\030\001 \001(\0132E.g" - + "oogle.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery\022f\n" - + "\026suggested_query_answer\030\002 \001(\0132F.google.cloud.dialo" - + "gflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + + "\017suggested_query\030\001 \001(\0132E.google.cloud.dialog" + + "flow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery\022f\n" + + "\026suggested_query_answer\030\002 \001(" + + "\0132F.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer\022\025\n\r" + "answer_record\030\003 \001(\t\022^\n" - + "\033knowledge_assist_debug_info\030\007 \001(\01329.google" - + ".cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo\032$\n" + + "\033knowledge_assist_debug_info\030\007" + + " \001(\01329.google.cloud.dialogflow.v2beta1.KnowledgeAssistDebugInfo\032\316\001\n" + "\016SuggestedQuery\022\022\n\n" - + "query_text\030\001 \001(\t\032\225\004\n" + + "query_text\030\001 \001(\t\022q\n" + + "\017search_contexts\030\004 \003(\0132S.google.cloud.dialogfl" + + "ow.v2beta1.KnowledgeAssistAnswer.SuggestedQuery.SearchContextB\003\340A\001\0325\n\r" + + "SearchContext\022\020\n" + + "\003key\030\001 \001(\tB\003\340A\001\022\022\n" + + "\005value\030\002 \001(\tB\003\340A\001\032\314\001\n" + + "\036AdditionalSuggestedQueryResult\022c\n" + + "\017suggested_query\030\001 \001(\0132E.google.cloud.dia" + + "logflow.v2beta1.KnowledgeAssistAnswer.SuggestedQueryB\003\340A\003\022E\n\r" + + "answer_record\030\005 \001(\tB.\340A\003\372A(\n" + + "&dialogflow.googleapis.com/AnswerRecord\032\377\006\n" + "\017KnowledgeAnswer\022\023\n" + "\013answer_text\030\001 \001(\t\022f\n\n" + "faq_source\030\003 \001(\0132P.google.c" + "loud.dialogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceH\000\022t\n" + "\021generative_source\030\004 \001(\0132W.google.cloud.dial" - + "ogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\032\035\n" + + "ogflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\022r\n" + + "\017playbook_source\030\007 \001(\0132W.google.cloud.dialogfl" + + "ow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceH\000\022j\n" + + "\014event_source\030\010 \001(\0132R.google.cloud.dialogflow.v2be" + + "ta1.KnowledgeAssistAnswer.KnowledgeAnswer.EventSourceH\000\032\035\n" + "\tFaqSource\022\020\n" + "\010question\030\002 \001(\t\032\345\001\n" + "\020GenerativeSource\022q\n" - + "\010snippets\030\001 \003(\0132_.google.cloud.dia" - + "logflow.v2beta1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + + "\010snippets\030\001 \003(\0132_.google.cloud.dialogflow.v2beta1." + + "KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource.Snippet\032^\n" + "\007Snippet\022\013\n" + "\003uri\030\002 \001(\t\022\014\n" + "\004text\030\003 \001(\t\022\r\n" + "\005title\030\004 \001(\t\022)\n" - + "\010metadata\030\005 \001(\0132\027.google.protobuf.StructB\010\n" - + "\006source\"\327\n\n" + + "\010metadata\030\005 \001(\0132\027.google.protobuf.Struct\032\207\001\n" + + "\013EventSource\022\r\n" + + "\005event\030\001 \001(\t\022i\n" + + "\010snippets\030\002 \001(\0132W.google.cloud.dialogflow.v2beta" + + "1.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceB\010\n" + + "\006source\"\300\r\n" + "\"BidiStreamingAnalyzeContentRequest\022\\\n" - + "\006config\030\001 \001(\0132" - + "J.google.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentRequest.ConfigH\000\022Z\n" - + "\005input\030\002 \001(\0132I.google.cloud.dialogflow.v" - + "2beta1.BidiStreamingAnalyzeContentRequest.InputH\000\032\352\005\n" + + "\006config\030\001 \001(\0132J.google.cloud.dialogflow.v2beta1.Bidi" + + "StreamingAnalyzeContentRequest.ConfigH\000\022Z\n" + + "\005input\030\002 \001(\0132I.google.cloud.dialogflow" + + ".v2beta1.BidiStreamingAnalyzeContentRequest.InputH\000\032\352\005\n" + "\006Config\022B\n" + "\013participant\030\001 \001(\tB-\340A\002\372A\'\n" + "%dialogflow.googleapis.com/Participant\022}\n" - + "\024voice_session_config\030\002 \001(\0132].google.cloud.dialogflow.v2beta1.BidiStr" - + "eamingAnalyzeContentRequest.Config.VoiceSessionConfigH\000\022A\n" + + "\024voice_session_config\030\002 \001(\0132].google.cloud.dialogflow.v2beta1.BidiS" + + "treamingAnalyzeContentRequest.Config.VoiceSessionConfigH\000\022A\n" + " initial_virtual_agent_parameters\030\003" + " \001(\0132\027.google.protobuf.Struct\022\\\n" + "\"initial_virtual_agent_query_params\030\004" + " \001(\01320.google.cloud.dialogflow.v2beta1.QueryParameters\032\361\002\n" + "\022VoiceSessionConfig\022Q\n" - + "\024input_audio_encoding\030\001 \001(\0162..google.c" - + "loud.dialogflow.v2beta1.AudioEncodingB\003\340A\002\022*\n" + + "\024input_audio_encoding\030\001 \001(\0162..google" + + ".cloud.dialogflow.v2beta1.AudioEncodingB\003\340A\002\022*\n" + "\035input_audio_sample_rate_hertz\030\002 \001(\005B\003\340A\002\022X\n" - + "\025output_audio_encoding\030\003 \001(\01624." - + "google.cloud.dialogflow.v2beta1.OutputAudioEncodingB\003\340A\002\022+\n" + + "\025output_audio_encoding\030\003 \001(\0162" + + "4.google.cloud.dialogflow.v2beta1.OutputAudioEncodingB\003\340A\002\022+\n" + "\036output_audio_sample_rate_hertz\030\004 \001(\005B\003\340A\002\022+\n" + "\036enable_cx_proactive_processing\030\005 \001(\010B\003\340A\001\022(\n" + "\033enable_streaming_synthesize\030\027 \001(\010B\003\340A\001B\010\n" - + "\006config\032\265\001\n" + + "\006config\032\236\004\n" + "\tTurnInput\022\016\n" + "\004text\030\001 \001(\tH\000\0227\n" + "\006intent\030\002 \001(\tB%\372A\"\n" + " dialogflow.googleapis.com/IntentH\000\022\017\n" + "\005event\030\003 \001(\tH\000\022>\n" + "\030virtual_agent_parameters\030\004" - + " \001(\0132\027.google.protobuf.StructB\003\340A\001B\016\n" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001\022x\n" + + "\016tool_responses\030\005 \001(\0132[.google.cloud.dialogflow.v2beta1.BidiStreaming" + + "AnalyzeContentRequest.TurnInput.ToolResponsesB\003\340A\001\032b\n" + + "\014ToolResponse\022\017\n" + + "\002id\030\001 \001(\tB\003\340A\002\022\021\n" + + "\004tool\030\002 \001(\tB\003\340A\002\022.\n" + + "\010response\030\003" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001\032\210\001\n\r" + + "ToolResponses\022w\n" + + "\016tool_responses\030\001 \003(\0132Z.google.cloud.dialogflow.v2beta1.BidiStreaming" + + "AnalyzeContentRequest.TurnInput.ToolResponseB\003\340A\001B\016\n" + "\014main_content\032\306\001\n" + "\005Input\022\017\n" + "\005audio\030\001 \001(\014H\000\022D\n" - + "\004dtmf\030\002 \001(\01324.google.cloud.d" - + "ialogflow.v2beta1.TelephonyDtmfEventsH\000\022]\n" - + "\004turn\030\003 \001(\0132M.google.cloud.dialogflow." - + "v2beta1.BidiStreamingAnalyzeContentRequest.TurnInputH\000B\007\n" + + "\004dtmf\030\002 \001(\01324.google.clou" + + "d.dialogflow.v2beta1.TelephonyDtmfEventsH\000\022]\n" + + "\004turn\030\003 \001(\0132M.google.cloud.dialogfl" + + "ow.v2beta1.BidiStreamingAnalyzeContentRequest.TurnInputH\000B\007\n" + "\005inputB\t\n" - + "\007request\"\345\003\n" + + "\007request\"\210\006\n" + "#BidiStreamingAnalyzeContentResponse\022Y\n" - + "\022recognition_result\030\001 \001(\0132;.google.cloud.di" - + "alogflow.v2beta1.StreamingRecognitionResultH\000\022m\n" - + "\017barge_in_signal\030\002 \001(\0132R.google." - + "cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.BargeInSignalH\000\022[\n" - + "\030analyze_content_response\030\003 \001(\01327.google." - + "cloud.dialogflow.v2beta1.AnalyzeContentResponseH\000\022j\n\r" - + "turn_complete\030\004 \001(\0132Q.googl" - + "e.cloud.dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse.TurnCompleteH\000\032\017\n" - + "\r" + + "\022recognition_result\030\001 \001(\0132;.google.cloud" + + ".dialogflow.v2beta1.StreamingRecognitionResultH\000\022m\n" + + "\017barge_in_signal\030\002 \001(\0132R.google.cloud.dialogflow.v2beta1.BidiStreamin" + + "gAnalyzeContentResponse.BargeInSignalH\000\022[\n" + + "\030analyze_content_response\030\003 \001(\01327.goog" + + "le.cloud.dialogflow.v2beta1.AnalyzeContentResponseH\000\022j\n\r" + + "turn_complete\030\004 \001(\0132Q.google.cloud.dialogflow.v2beta1.BidiStream" + + "ingAnalyzeContentResponse.TurnCompleteH\000\022d\n\n" + + "tool_calls\030\005 \001(\0132N.google.cloud.dial" + + "ogflow.v2beta1.BidiStreamingAnalyzeContentResponse.ToolCallsH\000\032\017\n\r" + "BargeInSignal\032\016\n" - + "\014TurnCompleteB\n\n" + + "\014TurnComplete\032K\n" + + "\010ToolCall\022\n\n" + + "\002id\030\001 \001(\t\022\014\n" + + "\004tool\030\002 \001(\t\022%\n" + + "\004args\030\003 \001(\0132\027.google.protobuf.Struct\032n\n" + + "\tToolCalls\022a\n\n" + + "tool_calls\030\001 \003(\0132M.google.cloud.dialogflow.v2beta1." + + "BidiStreamingAnalyzeContentResponse.ToolCallB\n\n" + "\010response*\326\002\n" + "\027DatastoreResponseReason\022)\n" + "%DATASTORE_RESPONSE_REASON_UNSPECIFIED\020\000\022\010\n" @@ -975,81 +1054,85 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034ANSWER_GENERATION_RAI_FAILED\020\010\022\"\n" + "\036ANSWER_GENERATION_NOT_GROUNDED\020\t2\262\037\n" + "\014Participants\022\271\002\n" - + "\021CreateParticipant\0229.google.cloud.dialogflow.v2beta1.CreateParticipantRe" - + "quest\032,.google.cloud.dialogflow.v2beta1." - + "Participant\"\272\001\332A\022parent,participant\202\323\344\223\002" - + "\236\001\"9/v2beta1/{parent=projects/*/conversa" - + "tions/*}/participants:\013participantZT\"E/v2beta1/{parent=projects/*/locations/*/co" - + "nversations/*}/participants:\013participant\022\213\002\n" - + "\016GetParticipant\0226.google.cloud.dialogflow.v2beta1.GetParticipantRequest\032,.go" - + "ogle.cloud.dialogflow.v2beta1.Participan" - + "t\"\222\001\332A\004name\202\323\344\223\002\204\001\0229/v2beta1/{name=proje" - + "cts/*/conversations/*/participants/*}ZG\022" - + "E/v2beta1/{name=projects/*/locations/*/conversations/*/participants/*}\022\236\002\n" - + "\020ListParticipants\0228.google.cloud.dialogflow.v2" - + "beta1.ListParticipantsRequest\0329.google.cloud.dialogflow.v2beta1.ListParticipants" - + "Response\"\224\001\332A\006parent\202\323\344\223\002\204\001\0229/v2beta1/{p" - + "arent=projects/*/conversations/*}/participantsZG\022E/v2beta1/{parent=projects/*/lo" - + "cations/*/conversations/*}/participants\022\326\002\n" - + "\021UpdateParticipant\0229.google.cloud.dialogflow.v2beta1.UpdateParticipantRequest" - + "\032,.google.cloud.dialogflow.v2beta1.Parti" - + "cipant\"\327\001\332A\027participant,update_mask\202\323\344\223\002" - + "\266\0012E/v2beta1/{participant.name=projects/" - + "*/conversations/*/participants/*}:\013participantZ`2Q/v2beta1/{participant.name=pro" - + "jects/*/locations/*/conversations/*/participants/*}:\013participant\022\216\003\n" - + "\016AnalyzeContent\0226.google.cloud.dialogflow.v2beta1.An" - + "alyzeContentRequest\0327.google.cloud.dialo" - + "gflow.v2beta1.AnalyzeContentResponse\"\212\002\332" - + "A\026participant,text_input\332A\027participant,a" - + "udio_input\332A\027participant,event_input\202\323\344\223" - + "\002\266\001\"O/v2beta1/{participant=projects/*/co" - + "nversations/*/participants/*}:analyzeContent:\001*Z`\"[/v2beta1/{participant=project" - + "s/*/locations/*/conversations/*/participants/*}:analyzeContent:\001*\022\242\001\n" - + "\027StreamingAnalyzeContent\022?.google.cloud.dialogflow." - + "v2beta1.StreamingAnalyzeContentRequest\032@" - + ".google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentResponse\"\000(\0010\001\022\256\001\n" - + "\033BidiStreamingAnalyzeContent\022C.google.cloud.di" - + "alogflow.v2beta1.BidiStreamingAnalyzeContentRequest\032D.google.cloud.dialogflow.v2" - + "beta1.BidiStreamingAnalyzeContentResponse\"\000(\0010\001\022\335\002\n" - + "\017SuggestArticles\0227.google.cloud.dialogflow.v2beta1.SuggestArticlesReq" - + "uest\0328.google.cloud.dialogflow.v2beta1.S" - + "uggestArticlesResponse\"\326\001\332A\006parent\202\323\344\223\002\306" - + "\001\"W/v2beta1/{parent=projects/*/conversations/*/participants/*}/suggestions:sugge" - + "stArticles:\001*Zh\"c/v2beta1/{parent=projects/*/locations/*/conversations/*/partici" - + "pants/*}/suggestions:suggestArticles:\001*\022\347\002\n" - + "\021SuggestFaqAnswers\0229.google.cloud.dialogflow.v2beta1.SuggestFaqAnswersRequest" - + "\032:.google.cloud.dialogflow.v2beta1.Sugge" - + "stFaqAnswersResponse\"\332\001\332A\006parent\202\323\344\223\002\312\001\"" - + "Y/v2beta1/{parent=projects/*/conversations/*/participants/*}/suggestions:suggest" - + "FaqAnswers:\001*Zj\"e/v2beta1/{parent=projects/*/locations/*/conversations/*/partici" - + "pants/*}/suggestions:suggestFaqAnswers:\001*\022\361\002\n" - + "\023SuggestSmartReplies\022;.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesR" - + "equest\032<.google.cloud.dialogflow.v2beta1" - + ".SuggestSmartRepliesResponse\"\336\001\332A\006parent" - + "\202\323\344\223\002\316\001\"[/v2beta1/{parent=projects/*/con" - + "versations/*/participants/*}/suggestions:suggestSmartReplies:\001*Zl\"g/v2beta1/{par" - + "ent=projects/*/locations/*/conversations" - + "/*/participants/*}/suggestions:suggestSmartReplies:\001*\022\367\002\n" - + "\026SuggestKnowledgeAssist\022>.google.cloud.dialogflow.v2beta1.Sugge" - + "stKnowledgeAssistRequest\032?.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssis" - + "tResponse\"\333\001\202\323\344\223\002\324\001\"^/v2beta1/{parent=pr" - + "ojects/*/conversations/*/participants/*}/suggestions:suggestKnowledgeAssist:\001*Zo" - + "\"j/v2beta1/{parent=projects/*/locations/" - + "*/conversations/*/participants/*}/suggestions:suggestKnowledgeAssist:\001*\022\330\001\n" - + "\017ListSuggestions\0227.google.cloud.dialogflow.v2" - + "beta1.ListSuggestionsRequest\0328.google.cloud.dialogflow.v2beta1.ListSuggestionsRe" - + "sponse\"R\210\002\001\202\323\344\223\002I\022G/v2beta1/{parent=proj" - + "ects/*/conversations/*/participants/*}/suggestions\022\351\001\n" - + "\021CompileSuggestion\0229.google.cloud.dialogflow.v2beta1.CompileSugges" - + "tionRequest\032:.google.cloud.dialogflow.v2" - + "beta1.CompileSuggestionResponse\"]\210\002\001\202\323\344\223" - + "\002T\"O/v2beta1/{parent=projects/*/conversations/*/participants/*}/suggestions:comp" - + "ile:\001*\032x\312A\031dialogflow.googleapis.com\322AYh" - + "ttps://www.googleapis.com/auth/cloud-pla" - + "tform,https://www.googleapis.com/auth/dialogflowB\245\001\n" - + "#com.google.cloud.dialogflow.v2beta1B\020ParticipantProtoP\001ZCcloud.goog" - + "le.com/go/dialogflow/apiv2beta1/dialogfl" - + "owpb;dialogflowpb\242\002\002DF\252\002\037Google.Cloud.Dialogflow.V2Beta1b\006proto3" + + "\021CreateParticipant\0229.google.cloud.dialogflow.v2beta1.Creat" + + "eParticipantRequest\032,.google.cloud.dialo" + + "gflow.v2beta1.Participant\"\272\001\332A\022parent,pa" + + "rticipant\202\323\344\223\002\236\001\"9/v2beta1/{parent=proje" + + "cts/*/conversations/*}/participants:\013participantZT\"E/v2beta1/{parent=projects/*/" + + "locations/*/conversations/*}/participants:\013participant\022\213\002\n" + + "\016GetParticipant\0226.google.cloud.dialogflow.v2beta1.GetParticipa" + + "ntRequest\032,.google.cloud.dialogflow.v2be" + + "ta1.Participant\"\222\001\332A\004name\202\323\344\223\002\204\001\0229/v2bet" + + "a1/{name=projects/*/conversations/*/participants/*}ZG\022E/v2beta1/{name=projects/*" + + "/locations/*/conversations/*/participants/*}\022\236\002\n" + + "\020ListParticipants\0228.google.cloud.dialogflow.v2beta1.ListParticipantsRequ" + + "est\0329.google.cloud.dialogflow.v2beta1.Li" + + "stParticipantsResponse\"\224\001\332A\006parent\202\323\344\223\002\204" + + "\001\0229/v2beta1/{parent=projects/*/conversat" + + "ions/*}/participantsZG\022E/v2beta1/{parent" + + "=projects/*/locations/*/conversations/*}/participants\022\326\002\n" + + "\021UpdateParticipant\0229.google.cloud.dialogflow.v2beta1.UpdatePart" + + "icipantRequest\032,.google.cloud.dialogflow" + + ".v2beta1.Participant\"\327\001\332A\027participant,up" + + "date_mask\202\323\344\223\002\266\0012E/v2beta1/{participant." + + "name=projects/*/conversations/*/participants/*}:\013participantZ`2Q/v2beta1/{partic" + + "ipant.name=projects/*/locations/*/conver" + + "sations/*/participants/*}:\013participant\022\216\003\n" + + "\016AnalyzeContent\0226.google.cloud.dialogf" + + "low.v2beta1.AnalyzeContentRequest\0327.google.cloud.dialogflow.v2beta1.AnalyzeConte" + + "ntResponse\"\212\002\332A\026participant,text_input\332A" + + "\027participant,audio_input\332A\027participant,e" + + "vent_input\202\323\344\223\002\266\001\"O/v2beta1/{participant" + + "=projects/*/conversations/*/participants/*}:analyzeContent:\001*Z`\"[/v2beta1/{parti" + + "cipant=projects/*/locations/*/conversati" + + "ons/*/participants/*}:analyzeContent:\001*\022\242\001\n" + + "\027StreamingAnalyzeContent\022?.google.cloud.dialogflow.v2beta1.StreamingAnalyzeCo" + + "ntentRequest\032@.google.cloud.dialogflow.v" + + "2beta1.StreamingAnalyzeContentResponse\"\000(\0010\001\022\256\001\n" + + "\033BidiStreamingAnalyzeContent\022C.google.cloud.dialogflow.v2beta1.BidiStrea" + + "mingAnalyzeContentRequest\032D.google.cloud" + + ".dialogflow.v2beta1.BidiStreamingAnalyzeContentResponse\"\000(\0010\001\022\335\002\n" + + "\017SuggestArticles\0227.google.cloud.dialogflow.v2beta1.Sugg" + + "estArticlesRequest\0328.google.cloud.dialog" + + "flow.v2beta1.SuggestArticlesResponse\"\326\001\332" + + "A\006parent\202\323\344\223\002\306\001\"W/v2beta1/{parent=projec" + + "ts/*/conversations/*/participants/*}/suggestions:suggestArticles:\001*Zh\"c/v2beta1/" + + "{parent=projects/*/locations/*/conversat" + + "ions/*/participants/*}/suggestions:suggestArticles:\001*\022\347\002\n" + + "\021SuggestFaqAnswers\0229.google.cloud.dialogflow.v2beta1.SuggestFaq" + + "AnswersRequest\032:.google.cloud.dialogflow" + + ".v2beta1.SuggestFaqAnswersResponse\"\332\001\332A\006" + + "parent\202\323\344\223\002\312\001\"Y/v2beta1/{parent=projects" + + "/*/conversations/*/participants/*}/suggestions:suggestFaqAnswers:\001*Zj\"e/v2beta1/" + + "{parent=projects/*/locations/*/conversat" + + "ions/*/participants/*}/suggestions:suggestFaqAnswers:\001*\022\361\002\n" + + "\023SuggestSmartReplies\022;.google.cloud.dialogflow.v2beta1.Sugges" + + "tSmartRepliesRequest\032<.google.cloud.dialogflow.v2beta1.SuggestSmartRepliesRespon" + + "se\"\336\001\332A\006parent\202\323\344\223\002\316\001\"[/v2beta1/{parent=" + + "projects/*/conversations/*/participants/*}/suggestions:suggestSmartReplies:\001*Zl\"" + + "g/v2beta1/{parent=projects/*/locations/*" + + "/conversations/*/participants/*}/suggestions:suggestSmartReplies:\001*\022\367\002\n" + + "\026SuggestKnowledgeAssist\022>.google.cloud.dialogflow" + + ".v2beta1.SuggestKnowledgeAssistRequest\032?.google.cloud.dialogflow.v2beta1.Suggest" + + "KnowledgeAssistResponse\"\333\001\202\323\344\223\002\324\001\"^/v2be" + + "ta1/{parent=projects/*/conversations/*/participants/*}/suggestions:suggestKnowle" + + "dgeAssist:\001*Zo\"j/v2beta1/{parent=projects/*/locations/*/conversations/*/particip" + + "ants/*}/suggestions:suggestKnowledgeAssist:\001*\022\330\001\n" + + "\017ListSuggestions\0227.google.cloud.dialogflow.v2beta1.ListSuggestionsReque" + + "st\0328.google.cloud.dialogflow.v2beta1.Lis" + + "tSuggestionsResponse\"R\210\002\001\202\323\344\223\002I\022G/v2beta" + + "1/{parent=projects/*/conversations/*/participants/*}/suggestions\022\351\001\n" + + "\021CompileSuggestion\0229.google.cloud.dialogflow.v2beta1" + + ".CompileSuggestionRequest\032:.google.cloud.dialogflow.v2beta1.CompileSuggestionRes" + + "ponse\"]\210\002\001\202\323\344\223\002T\"O/v2beta1/{parent=proje" + + "cts/*/conversations/*/participants/*}/su" + + "ggestions:compile:\001*\032x\312A\031dialogflow.goog" + + "leapis.com\322AYhttps://www.googleapis.com/" + + "auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\245\001\n" + + "#com.google.cloud.dialogflow.v2beta1B\020ParticipantProto" + + "P\001ZCcloud.google.com/go/dialogflow/apiv2" + + "beta1/dialogflowpb;dialogflowpb\242\002\002DF\252\002\037G" + + "oogle.Cloud.Dialogflow.V2Beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1625,7 +1708,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_SuggestKnowledgeAssistResponse_descriptor, new java.lang.String[] { - "KnowledgeAssistAnswer", "LatestMessage", "ContextSize", + "KnowledgeAssistAnswer", + "LatestMessage", + "ContextSize", + "AdditionalSuggestedQueryResults", }); internal_static_google_cloud_dialogflow_v2beta1_IngestedContextReferenceDebugInfo_descriptor = getDescriptor().getMessageType(44); @@ -1672,6 +1758,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "KnowledgeAssistBehavior", "IngestedContextReferenceDebugInfo", "ServiceLatency", + "QueryGenerationDebugInfo", + "CesDebugInfo", }); internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_KnowledgeAssistBehavior_descriptor = internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor @@ -1698,6 +1786,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrimaryQueryRedactedAndReplaced", "AppendedSearchContextCount", }); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_descriptor + .getNestedType(1); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistDebugInfo_QueryGenerationDebugInfo_descriptor, + new java.lang.String[] { + "PromptTokenCount", "CandidatesTokenCount", "TotalTokenCount", + }); internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_descriptor = getDescriptor().getMessageType(47); internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_fieldAccessorTable = @@ -1713,16 +1810,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_descriptor, new java.lang.String[] { - "QueryText", + "QueryText", "SearchContexts", }); - internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_descriptor + .getNestedType(0); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_SuggestedQuery_SearchContext_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor = internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_descriptor .getNestedType(1); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_AdditionalSuggestedQueryResult_descriptor, + new java.lang.String[] { + "SuggestedQuery", "AnswerRecord", + }); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_descriptor + .getNestedType(2); internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor, new java.lang.String[] { - "AnswerText", "FaqSource", "GenerativeSource", "Source", + "AnswerText", + "FaqSource", + "GenerativeSource", + "PlaybookSource", + "EventSource", + "Source", }); internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_FaqSource_descriptor = internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor @@ -1751,6 +1871,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Uri", "Text", "Title", "Metadata", }); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_descriptor + .getNestedType(2); + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_KnowledgeAssistAnswer_KnowledgeAnswer_EventSource_descriptor, + new java.lang.String[] { + "Event", "Snippets", + }); internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_descriptor = getDescriptor().getMessageType(48); internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_fieldAccessorTable = @@ -1793,7 +1922,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_descriptor, new java.lang.String[] { - "Text", "Intent", "Event", "VirtualAgentParameters", "MainContent", + "Text", "Intent", "Event", "VirtualAgentParameters", "ToolResponses", "MainContent", + }); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_descriptor + .getNestedType(0); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponse_descriptor, + new java.lang.String[] { + "Id", "Tool", "Response", + }); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_descriptor + .getNestedType(1); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_TurnInput_ToolResponses_descriptor, + new java.lang.String[] { + "ToolResponses", }); internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_Input_descriptor = internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentRequest_descriptor @@ -1814,6 +1961,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BargeInSignal", "AnalyzeContentResponse", "TurnComplete", + "ToolCalls", "Response", }); internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_BargeInSignal_descriptor = @@ -1830,6 +1978,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_TurnComplete_descriptor, new java.lang.String[] {}); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_descriptor + .getNestedType(2); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCall_descriptor, + new java.lang.String[] { + "Id", "Tool", "Args", + }); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_descriptor = + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_descriptor + .getNestedType(3); + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dialogflow_v2beta1_BidiStreamingAnalyzeContentResponse_ToolCalls_descriptor, + new java.lang.String[] { + "ToolCalls", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeAnswer.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeAnswer.java index 9b60449330db..29dd3c4a9110 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeAnswer.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SearchKnowledgeAnswer.java @@ -123,6 +123,26 @@ public enum AnswerType implements com.google.protobuf.ProtocolMessageEnum { * INTENT = 3; */ INTENT(3), + /** + * + * + *
            +     * The answer is from Playbook.
            +     * 
            + * + * PLAYBOOK = 4; + */ + PLAYBOOK(4), + /** + * + * + *
            +     * The answer is from event.
            +     * 
            + * + * EVENT = 5; + */ + EVENT(5), UNRECOGNIZED(-1), ; @@ -180,6 +200,28 @@ public enum AnswerType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int INTENT_VALUE = 3; + /** + * + * + *
            +     * The answer is from Playbook.
            +     * 
            + * + * PLAYBOOK = 4; + */ + public static final int PLAYBOOK_VALUE = 4; + + /** + * + * + *
            +     * The answer is from event.
            +     * 
            + * + * EVENT = 5; + */ + public static final int EVENT_VALUE = 5; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -212,6 +254,10 @@ public static AnswerType forNumber(int value) { return GENERATIVE; case 3: return INTENT; + case 4: + return PLAYBOOK; + case 5: + return EVENT; default: return null; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipConfig.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipConfig.java new file mode 100644 index 000000000000..3c897281bdfc --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipConfig.java @@ -0,0 +1,1537 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/conversation_profile.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +/** + * + * + *
            + * Defines the SIP configuration.
            + * 
            + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SipConfig} + */ +@com.google.protobuf.Generated +public final class SipConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.v2beta1.SipConfig) + SipConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SipConfig"); + } + + // Use SipConfig.newBuilder() to construct. + private SipConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SipConfig() { + copyInboundCallLegHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2beta1_SipConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2beta1_SipConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SipConfig.class, + com.google.cloud.dialogflow.v2beta1.SipConfig.Builder.class); + } + + private int bitField0_; + public static final int CREATE_CONVERSATION_ON_THE_FLY_FIELD_NUMBER = 1; + private boolean createConversationOnTheFly_ = false; + + /** + * + * + *
            +   * Asks Dialogflow Telephony to create the conversation provided in the SIP
            +   * header on the fly when the call comes in.
            +   * 
            + * + * bool create_conversation_on_the_fly = 1; + * + * @return The createConversationOnTheFly. + */ + @java.lang.Override + public boolean getCreateConversationOnTheFly() { + return createConversationOnTheFly_; + } + + public static final int INACTIVE_START_FIELD_NUMBER = 3; + private boolean inactiveStart_ = false; + + /** + * + * + *
            +   * Starts the conversation with inactive SDP directives
            +   * 
            + * + * bool inactive_start = 3; + * + * @return The inactiveStart. + */ + @java.lang.Override + public boolean getInactiveStart() { + return inactiveStart_; + } + + public static final int MAX_AUDIO_RECORDING_DURATION_FIELD_NUMBER = 4; + private com.google.protobuf.Duration maxAudioRecordingDuration_; + + /** + * + * + *
            +   * Max duration for audio recording.
            +   * Overrides the default value of 15 min.
            +   * Max value is 8 hours.
            +   * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return Whether the maxAudioRecordingDuration field is set. + */ + @java.lang.Override + public boolean hasMaxAudioRecordingDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Max duration for audio recording.
            +   * Overrides the default value of 15 min.
            +   * Max value is 8 hours.
            +   * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return The maxAudioRecordingDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getMaxAudioRecordingDuration() { + return maxAudioRecordingDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxAudioRecordingDuration_; + } + + /** + * + * + *
            +   * Max duration for audio recording.
            +   * Overrides the default value of 15 min.
            +   * Max value is 8 hours.
            +   * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getMaxAudioRecordingDurationOrBuilder() { + return maxAudioRecordingDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxAudioRecordingDuration_; + } + + public static final int ALLOW_VIRTUAL_AGENT_INTERACTION_FIELD_NUMBER = 5; + private boolean allowVirtualAgentInteraction_ = false; + + /** + * + * + *
            +   * Allows interactions with a Dialogflow virtual agent even if the call is
            +   * connected for SIPREC purposes.
            +   * 
            + * + * bool allow_virtual_agent_interaction = 5; + * + * @return The allowVirtualAgentInteraction. + */ + @java.lang.Override + public boolean getAllowVirtualAgentInteraction() { + return allowVirtualAgentInteraction_; + } + + public static final int KEEP_CONVERSATION_RUNNING_FIELD_NUMBER = 6; + private boolean keepConversationRunning_ = false; + + /** + * + * + *
            +   * Keeps the conversation running even if the call is disconnected.
            +   * 
            + * + * bool keep_conversation_running = 6; + * + * @return The keepConversationRunning. + */ + @java.lang.Override + public boolean getKeepConversationRunning() { + return keepConversationRunning_; + } + + public static final int COPY_INBOUND_CALL_LEG_HEADERS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList copyInboundCallLegHeaders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * List of inbound call leg headers to be copied to outbound call legs created
            +   * later.
            +   * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return A list containing the copyInboundCallLegHeaders. + */ + public com.google.protobuf.ProtocolStringList getCopyInboundCallLegHeadersList() { + return copyInboundCallLegHeaders_; + } + + /** + * + * + *
            +   * List of inbound call leg headers to be copied to outbound call legs created
            +   * later.
            +   * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return The count of copyInboundCallLegHeaders. + */ + public int getCopyInboundCallLegHeadersCount() { + return copyInboundCallLegHeaders_.size(); + } + + /** + * + * + *
            +   * List of inbound call leg headers to be copied to outbound call legs created
            +   * later.
            +   * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the element to return. + * @return The copyInboundCallLegHeaders at the given index. + */ + public java.lang.String getCopyInboundCallLegHeaders(int index) { + return copyInboundCallLegHeaders_.get(index); + } + + /** + * + * + *
            +   * List of inbound call leg headers to be copied to outbound call legs created
            +   * later.
            +   * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the value to return. + * @return The bytes of the copyInboundCallLegHeaders at the given index. + */ + public com.google.protobuf.ByteString getCopyInboundCallLegHeadersBytes(int index) { + return copyInboundCallLegHeaders_.getByteString(index); + } + + public static final int IGNORE_REINVITE_MEDIA_DIRECTION_FIELD_NUMBER = 9; + private boolean ignoreReinviteMediaDirection_ = false; + + /** + * + * + *
            +   * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
            +   * media direction.
            +   * 
            + * + * bool ignore_reinvite_media_direction = 9; + * + * @return The ignoreReinviteMediaDirection. + */ + @java.lang.Override + public boolean getIgnoreReinviteMediaDirection() { + return ignoreReinviteMediaDirection_; + } + + 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 (createConversationOnTheFly_ != false) { + output.writeBool(1, createConversationOnTheFly_); + } + if (inactiveStart_ != false) { + output.writeBool(3, inactiveStart_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getMaxAudioRecordingDuration()); + } + if (allowVirtualAgentInteraction_ != false) { + output.writeBool(5, allowVirtualAgentInteraction_); + } + if (keepConversationRunning_ != false) { + output.writeBool(6, keepConversationRunning_); + } + for (int i = 0; i < copyInboundCallLegHeaders_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 8, copyInboundCallLegHeaders_.getRaw(i)); + } + if (ignoreReinviteMediaDirection_ != false) { + output.writeBool(9, ignoreReinviteMediaDirection_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createConversationOnTheFly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, createConversationOnTheFly_); + } + if (inactiveStart_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, inactiveStart_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getMaxAudioRecordingDuration()); + } + if (allowVirtualAgentInteraction_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(5, allowVirtualAgentInteraction_); + } + if (keepConversationRunning_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, keepConversationRunning_); + } + { + int dataSize = 0; + for (int i = 0; i < copyInboundCallLegHeaders_.size(); i++) { + dataSize += computeStringSizeNoTag(copyInboundCallLegHeaders_.getRaw(i)); + } + size += dataSize; + size += 1 * getCopyInboundCallLegHeadersList().size(); + } + if (ignoreReinviteMediaDirection_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(9, ignoreReinviteMediaDirection_); + } + 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.dialogflow.v2beta1.SipConfig)) { + return super.equals(obj); + } + com.google.cloud.dialogflow.v2beta1.SipConfig other = + (com.google.cloud.dialogflow.v2beta1.SipConfig) obj; + + if (getCreateConversationOnTheFly() != other.getCreateConversationOnTheFly()) return false; + if (getInactiveStart() != other.getInactiveStart()) return false; + if (hasMaxAudioRecordingDuration() != other.hasMaxAudioRecordingDuration()) return false; + if (hasMaxAudioRecordingDuration()) { + if (!getMaxAudioRecordingDuration().equals(other.getMaxAudioRecordingDuration())) + return false; + } + if (getAllowVirtualAgentInteraction() != other.getAllowVirtualAgentInteraction()) return false; + if (getKeepConversationRunning() != other.getKeepConversationRunning()) return false; + if (!getCopyInboundCallLegHeadersList().equals(other.getCopyInboundCallLegHeadersList())) + return false; + if (getIgnoreReinviteMediaDirection() != other.getIgnoreReinviteMediaDirection()) 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) + CREATE_CONVERSATION_ON_THE_FLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCreateConversationOnTheFly()); + hash = (37 * hash) + INACTIVE_START_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInactiveStart()); + if (hasMaxAudioRecordingDuration()) { + hash = (37 * hash) + MAX_AUDIO_RECORDING_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getMaxAudioRecordingDuration().hashCode(); + } + hash = (37 * hash) + ALLOW_VIRTUAL_AGENT_INTERACTION_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowVirtualAgentInteraction()); + hash = (37 * hash) + KEEP_CONVERSATION_RUNNING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getKeepConversationRunning()); + if (getCopyInboundCallLegHeadersCount() > 0) { + hash = (37 * hash) + COPY_INBOUND_CALL_LEG_HEADERS_FIELD_NUMBER; + hash = (53 * hash) + getCopyInboundCallLegHeadersList().hashCode(); + } + hash = (37 * hash) + IGNORE_REINVITE_MEDIA_DIRECTION_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIgnoreReinviteMediaDirection()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig 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.dialogflow.v2beta1.SipConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseFrom( + 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.dialogflow.v2beta1.SipConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.dialogflow.v2beta1.SipConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Defines the SIP configuration.
            +   * 
            + * + * Protobuf type {@code google.cloud.dialogflow.v2beta1.SipConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.v2beta1.SipConfig) + com.google.cloud.dialogflow.v2beta1.SipConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2beta1_SipConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2beta1_SipConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dialogflow.v2beta1.SipConfig.class, + com.google.cloud.dialogflow.v2beta1.SipConfig.Builder.class); + } + + // Construct using com.google.cloud.dialogflow.v2beta1.SipConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMaxAudioRecordingDurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createConversationOnTheFly_ = false; + inactiveStart_ = false; + maxAudioRecordingDuration_ = null; + if (maxAudioRecordingDurationBuilder_ != null) { + maxAudioRecordingDurationBuilder_.dispose(); + maxAudioRecordingDurationBuilder_ = null; + } + allowVirtualAgentInteraction_ = false; + keepConversationRunning_ = false; + copyInboundCallLegHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + ignoreReinviteMediaDirection_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dialogflow.v2beta1.ConversationProfileProto + .internal_static_google_cloud_dialogflow_v2beta1_SipConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SipConfig getDefaultInstanceForType() { + return com.google.cloud.dialogflow.v2beta1.SipConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SipConfig build() { + com.google.cloud.dialogflow.v2beta1.SipConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.SipConfig buildPartial() { + com.google.cloud.dialogflow.v2beta1.SipConfig result = + new com.google.cloud.dialogflow.v2beta1.SipConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dialogflow.v2beta1.SipConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createConversationOnTheFly_ = createConversationOnTheFly_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inactiveStart_ = inactiveStart_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxAudioRecordingDuration_ = + maxAudioRecordingDurationBuilder_ == null + ? maxAudioRecordingDuration_ + : maxAudioRecordingDurationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.allowVirtualAgentInteraction_ = allowVirtualAgentInteraction_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.keepConversationRunning_ = keepConversationRunning_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + copyInboundCallLegHeaders_.makeImmutable(); + result.copyInboundCallLegHeaders_ = copyInboundCallLegHeaders_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.ignoreReinviteMediaDirection_ = ignoreReinviteMediaDirection_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dialogflow.v2beta1.SipConfig) { + return mergeFrom((com.google.cloud.dialogflow.v2beta1.SipConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dialogflow.v2beta1.SipConfig other) { + if (other == com.google.cloud.dialogflow.v2beta1.SipConfig.getDefaultInstance()) return this; + if (other.getCreateConversationOnTheFly() != false) { + setCreateConversationOnTheFly(other.getCreateConversationOnTheFly()); + } + if (other.getInactiveStart() != false) { + setInactiveStart(other.getInactiveStart()); + } + if (other.hasMaxAudioRecordingDuration()) { + mergeMaxAudioRecordingDuration(other.getMaxAudioRecordingDuration()); + } + if (other.getAllowVirtualAgentInteraction() != false) { + setAllowVirtualAgentInteraction(other.getAllowVirtualAgentInteraction()); + } + if (other.getKeepConversationRunning() != false) { + setKeepConversationRunning(other.getKeepConversationRunning()); + } + if (!other.copyInboundCallLegHeaders_.isEmpty()) { + if (copyInboundCallLegHeaders_.isEmpty()) { + copyInboundCallLegHeaders_ = other.copyInboundCallLegHeaders_; + bitField0_ |= 0x00000020; + } else { + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.addAll(other.copyInboundCallLegHeaders_); + } + onChanged(); + } + if (other.getIgnoreReinviteMediaDirection() != false) { + setIgnoreReinviteMediaDirection(other.getIgnoreReinviteMediaDirection()); + } + 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: + { + createConversationOnTheFly_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 24: + { + inactiveStart_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 34: + { + input.readMessage( + internalGetMaxAudioRecordingDurationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 40: + { + allowVirtualAgentInteraction_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 48: + { + keepConversationRunning_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 48 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.add(s); + break; + } // case 66 + case 72: + { + ignoreReinviteMediaDirection_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean createConversationOnTheFly_; + + /** + * + * + *
            +     * Asks Dialogflow Telephony to create the conversation provided in the SIP
            +     * header on the fly when the call comes in.
            +     * 
            + * + * bool create_conversation_on_the_fly = 1; + * + * @return The createConversationOnTheFly. + */ + @java.lang.Override + public boolean getCreateConversationOnTheFly() { + return createConversationOnTheFly_; + } + + /** + * + * + *
            +     * Asks Dialogflow Telephony to create the conversation provided in the SIP
            +     * header on the fly when the call comes in.
            +     * 
            + * + * bool create_conversation_on_the_fly = 1; + * + * @param value The createConversationOnTheFly to set. + * @return This builder for chaining. + */ + public Builder setCreateConversationOnTheFly(boolean value) { + + createConversationOnTheFly_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Asks Dialogflow Telephony to create the conversation provided in the SIP
            +     * header on the fly when the call comes in.
            +     * 
            + * + * bool create_conversation_on_the_fly = 1; + * + * @return This builder for chaining. + */ + public Builder clearCreateConversationOnTheFly() { + bitField0_ = (bitField0_ & ~0x00000001); + createConversationOnTheFly_ = false; + onChanged(); + return this; + } + + private boolean inactiveStart_; + + /** + * + * + *
            +     * Starts the conversation with inactive SDP directives
            +     * 
            + * + * bool inactive_start = 3; + * + * @return The inactiveStart. + */ + @java.lang.Override + public boolean getInactiveStart() { + return inactiveStart_; + } + + /** + * + * + *
            +     * Starts the conversation with inactive SDP directives
            +     * 
            + * + * bool inactive_start = 3; + * + * @param value The inactiveStart to set. + * @return This builder for chaining. + */ + public Builder setInactiveStart(boolean value) { + + inactiveStart_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Starts the conversation with inactive SDP directives
            +     * 
            + * + * bool inactive_start = 3; + * + * @return This builder for chaining. + */ + public Builder clearInactiveStart() { + bitField0_ = (bitField0_ & ~0x00000002); + inactiveStart_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Duration maxAudioRecordingDuration_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + maxAudioRecordingDurationBuilder_; + + /** + * + * + *
            +     * Max duration for audio recording.
            +     * Overrides the default value of 15 min.
            +     * Max value is 8 hours.
            +     * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return Whether the maxAudioRecordingDuration field is set. + */ + public boolean hasMaxAudioRecordingDuration() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Max duration for audio recording.
            +     * Overrides the default value of 15 min.
            +     * Max value is 8 hours.
            +     * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return The maxAudioRecordingDuration. + */ + public com.google.protobuf.Duration getMaxAudioRecordingDuration() { + if (maxAudioRecordingDurationBuilder_ == null) { + return maxAudioRecordingDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxAudioRecordingDuration_; + } else { + return maxAudioRecordingDurationBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Max duration for audio recording.
            +     * Overrides the default value of 15 min.
            +     * Max value is 8 hours.
            +     * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public Builder setMaxAudioRecordingDuration(com.google.protobuf.Duration value) { + if (maxAudioRecordingDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + maxAudioRecordingDuration_ = value; + } else { + maxAudioRecordingDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Max duration for audio recording.
            +     * Overrides the default value of 15 min.
            +     * Max value is 8 hours.
            +     * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public Builder setMaxAudioRecordingDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (maxAudioRecordingDurationBuilder_ == null) { + maxAudioRecordingDuration_ = builderForValue.build(); + } else { + maxAudioRecordingDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Max duration for audio recording.
            +     * Overrides the default value of 15 min.
            +     * Max value is 8 hours.
            +     * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public Builder mergeMaxAudioRecordingDuration(com.google.protobuf.Duration value) { + if (maxAudioRecordingDurationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && maxAudioRecordingDuration_ != null + && maxAudioRecordingDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getMaxAudioRecordingDurationBuilder().mergeFrom(value); + } else { + maxAudioRecordingDuration_ = value; + } + } else { + maxAudioRecordingDurationBuilder_.mergeFrom(value); + } + if (maxAudioRecordingDuration_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Max duration for audio recording.
            +     * Overrides the default value of 15 min.
            +     * Max value is 8 hours.
            +     * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public Builder clearMaxAudioRecordingDuration() { + bitField0_ = (bitField0_ & ~0x00000004); + maxAudioRecordingDuration_ = null; + if (maxAudioRecordingDurationBuilder_ != null) { + maxAudioRecordingDurationBuilder_.dispose(); + maxAudioRecordingDurationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Max duration for audio recording.
            +     * Overrides the default value of 15 min.
            +     * Max value is 8 hours.
            +     * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public com.google.protobuf.Duration.Builder getMaxAudioRecordingDurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetMaxAudioRecordingDurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Max duration for audio recording.
            +     * Overrides the default value of 15 min.
            +     * Max value is 8 hours.
            +     * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + public com.google.protobuf.DurationOrBuilder getMaxAudioRecordingDurationOrBuilder() { + if (maxAudioRecordingDurationBuilder_ != null) { + return maxAudioRecordingDurationBuilder_.getMessageOrBuilder(); + } else { + return maxAudioRecordingDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : maxAudioRecordingDuration_; + } + } + + /** + * + * + *
            +     * Max duration for audio recording.
            +     * Overrides the default value of 15 min.
            +     * Max value is 8 hours.
            +     * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetMaxAudioRecordingDurationFieldBuilder() { + if (maxAudioRecordingDurationBuilder_ == null) { + maxAudioRecordingDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getMaxAudioRecordingDuration(), getParentForChildren(), isClean()); + maxAudioRecordingDuration_ = null; + } + return maxAudioRecordingDurationBuilder_; + } + + private boolean allowVirtualAgentInteraction_; + + /** + * + * + *
            +     * Allows interactions with a Dialogflow virtual agent even if the call is
            +     * connected for SIPREC purposes.
            +     * 
            + * + * bool allow_virtual_agent_interaction = 5; + * + * @return The allowVirtualAgentInteraction. + */ + @java.lang.Override + public boolean getAllowVirtualAgentInteraction() { + return allowVirtualAgentInteraction_; + } + + /** + * + * + *
            +     * Allows interactions with a Dialogflow virtual agent even if the call is
            +     * connected for SIPREC purposes.
            +     * 
            + * + * bool allow_virtual_agent_interaction = 5; + * + * @param value The allowVirtualAgentInteraction to set. + * @return This builder for chaining. + */ + public Builder setAllowVirtualAgentInteraction(boolean value) { + + allowVirtualAgentInteraction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Allows interactions with a Dialogflow virtual agent even if the call is
            +     * connected for SIPREC purposes.
            +     * 
            + * + * bool allow_virtual_agent_interaction = 5; + * + * @return This builder for chaining. + */ + public Builder clearAllowVirtualAgentInteraction() { + bitField0_ = (bitField0_ & ~0x00000008); + allowVirtualAgentInteraction_ = false; + onChanged(); + return this; + } + + private boolean keepConversationRunning_; + + /** + * + * + *
            +     * Keeps the conversation running even if the call is disconnected.
            +     * 
            + * + * bool keep_conversation_running = 6; + * + * @return The keepConversationRunning. + */ + @java.lang.Override + public boolean getKeepConversationRunning() { + return keepConversationRunning_; + } + + /** + * + * + *
            +     * Keeps the conversation running even if the call is disconnected.
            +     * 
            + * + * bool keep_conversation_running = 6; + * + * @param value The keepConversationRunning to set. + * @return This builder for chaining. + */ + public Builder setKeepConversationRunning(boolean value) { + + keepConversationRunning_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Keeps the conversation running even if the call is disconnected.
            +     * 
            + * + * bool keep_conversation_running = 6; + * + * @return This builder for chaining. + */ + public Builder clearKeepConversationRunning() { + bitField0_ = (bitField0_ & ~0x00000010); + keepConversationRunning_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList copyInboundCallLegHeaders_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureCopyInboundCallLegHeadersIsMutable() { + if (!copyInboundCallLegHeaders_.isModifiable()) { + copyInboundCallLegHeaders_ = + new com.google.protobuf.LazyStringArrayList(copyInboundCallLegHeaders_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
            +     * List of inbound call leg headers to be copied to outbound call legs created
            +     * later.
            +     * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return A list containing the copyInboundCallLegHeaders. + */ + public com.google.protobuf.ProtocolStringList getCopyInboundCallLegHeadersList() { + copyInboundCallLegHeaders_.makeImmutable(); + return copyInboundCallLegHeaders_; + } + + /** + * + * + *
            +     * List of inbound call leg headers to be copied to outbound call legs created
            +     * later.
            +     * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return The count of copyInboundCallLegHeaders. + */ + public int getCopyInboundCallLegHeadersCount() { + return copyInboundCallLegHeaders_.size(); + } + + /** + * + * + *
            +     * List of inbound call leg headers to be copied to outbound call legs created
            +     * later.
            +     * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the element to return. + * @return The copyInboundCallLegHeaders at the given index. + */ + public java.lang.String getCopyInboundCallLegHeaders(int index) { + return copyInboundCallLegHeaders_.get(index); + } + + /** + * + * + *
            +     * List of inbound call leg headers to be copied to outbound call legs created
            +     * later.
            +     * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the value to return. + * @return The bytes of the copyInboundCallLegHeaders at the given index. + */ + public com.google.protobuf.ByteString getCopyInboundCallLegHeadersBytes(int index) { + return copyInboundCallLegHeaders_.getByteString(index); + } + + /** + * + * + *
            +     * List of inbound call leg headers to be copied to outbound call legs created
            +     * later.
            +     * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index to set the value at. + * @param value The copyInboundCallLegHeaders to set. + * @return This builder for chaining. + */ + public Builder setCopyInboundCallLegHeaders(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of inbound call leg headers to be copied to outbound call legs created
            +     * later.
            +     * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param value The copyInboundCallLegHeaders to add. + * @return This builder for chaining. + */ + public Builder addCopyInboundCallLegHeaders(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of inbound call leg headers to be copied to outbound call legs created
            +     * later.
            +     * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param values The copyInboundCallLegHeaders to add. + * @return This builder for chaining. + */ + public Builder addAllCopyInboundCallLegHeaders(java.lang.Iterable values) { + ensureCopyInboundCallLegHeadersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, copyInboundCallLegHeaders_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of inbound call leg headers to be copied to outbound call legs created
            +     * later.
            +     * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return This builder for chaining. + */ + public Builder clearCopyInboundCallLegHeaders() { + copyInboundCallLegHeaders_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * List of inbound call leg headers to be copied to outbound call legs created
            +     * later.
            +     * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param value The bytes of the copyInboundCallLegHeaders to add. + * @return This builder for chaining. + */ + public Builder addCopyInboundCallLegHeadersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureCopyInboundCallLegHeadersIsMutable(); + copyInboundCallLegHeaders_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private boolean ignoreReinviteMediaDirection_; + + /** + * + * + *
            +     * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
            +     * media direction.
            +     * 
            + * + * bool ignore_reinvite_media_direction = 9; + * + * @return The ignoreReinviteMediaDirection. + */ + @java.lang.Override + public boolean getIgnoreReinviteMediaDirection() { + return ignoreReinviteMediaDirection_; + } + + /** + * + * + *
            +     * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
            +     * media direction.
            +     * 
            + * + * bool ignore_reinvite_media_direction = 9; + * + * @param value The ignoreReinviteMediaDirection to set. + * @return This builder for chaining. + */ + public Builder setIgnoreReinviteMediaDirection(boolean value) { + + ignoreReinviteMediaDirection_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
            +     * media direction.
            +     * 
            + * + * bool ignore_reinvite_media_direction = 9; + * + * @return This builder for chaining. + */ + public Builder clearIgnoreReinviteMediaDirection() { + bitField0_ = (bitField0_ & ~0x00000040); + ignoreReinviteMediaDirection_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SipConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.v2beta1.SipConfig) + private static final com.google.cloud.dialogflow.v2beta1.SipConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dialogflow.v2beta1.SipConfig(); + } + + public static com.google.cloud.dialogflow.v2beta1.SipConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SipConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.dialogflow.v2beta1.SipConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipConfigOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipConfigOrBuilder.java new file mode 100644 index 000000000000..bc8c2e8d8b55 --- /dev/null +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SipConfigOrBuilder.java @@ -0,0 +1,197 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dialogflow/v2beta1/conversation_profile.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dialogflow.v2beta1; + +@com.google.protobuf.Generated +public interface SipConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2beta1.SipConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Asks Dialogflow Telephony to create the conversation provided in the SIP
            +   * header on the fly when the call comes in.
            +   * 
            + * + * bool create_conversation_on_the_fly = 1; + * + * @return The createConversationOnTheFly. + */ + boolean getCreateConversationOnTheFly(); + + /** + * + * + *
            +   * Starts the conversation with inactive SDP directives
            +   * 
            + * + * bool inactive_start = 3; + * + * @return The inactiveStart. + */ + boolean getInactiveStart(); + + /** + * + * + *
            +   * Max duration for audio recording.
            +   * Overrides the default value of 15 min.
            +   * Max value is 8 hours.
            +   * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return Whether the maxAudioRecordingDuration field is set. + */ + boolean hasMaxAudioRecordingDuration(); + + /** + * + * + *
            +   * Max duration for audio recording.
            +   * Overrides the default value of 15 min.
            +   * Max value is 8 hours.
            +   * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + * + * @return The maxAudioRecordingDuration. + */ + com.google.protobuf.Duration getMaxAudioRecordingDuration(); + + /** + * + * + *
            +   * Max duration for audio recording.
            +   * Overrides the default value of 15 min.
            +   * Max value is 8 hours.
            +   * 
            + * + * .google.protobuf.Duration max_audio_recording_duration = 4; + */ + com.google.protobuf.DurationOrBuilder getMaxAudioRecordingDurationOrBuilder(); + + /** + * + * + *
            +   * Allows interactions with a Dialogflow virtual agent even if the call is
            +   * connected for SIPREC purposes.
            +   * 
            + * + * bool allow_virtual_agent_interaction = 5; + * + * @return The allowVirtualAgentInteraction. + */ + boolean getAllowVirtualAgentInteraction(); + + /** + * + * + *
            +   * Keeps the conversation running even if the call is disconnected.
            +   * 
            + * + * bool keep_conversation_running = 6; + * + * @return The keepConversationRunning. + */ + boolean getKeepConversationRunning(); + + /** + * + * + *
            +   * List of inbound call leg headers to be copied to outbound call legs created
            +   * later.
            +   * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return A list containing the copyInboundCallLegHeaders. + */ + java.util.List getCopyInboundCallLegHeadersList(); + + /** + * + * + *
            +   * List of inbound call leg headers to be copied to outbound call legs created
            +   * later.
            +   * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @return The count of copyInboundCallLegHeaders. + */ + int getCopyInboundCallLegHeadersCount(); + + /** + * + * + *
            +   * List of inbound call leg headers to be copied to outbound call legs created
            +   * later.
            +   * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the element to return. + * @return The copyInboundCallLegHeaders at the given index. + */ + java.lang.String getCopyInboundCallLegHeaders(int index); + + /** + * + * + *
            +   * List of inbound call leg headers to be copied to outbound call legs created
            +   * later.
            +   * 
            + * + * repeated string copy_inbound_call_leg_headers = 8; + * + * @param index The index of the value to return. + * @return The bytes of the copyInboundCallLegHeaders at the given index. + */ + com.google.protobuf.ByteString getCopyInboundCallLegHeadersBytes(int index); + + /** + * + * + *
            +   * Ignores any media direction in the reINVITE SDP offer. Reuse the previous
            +   * media direction.
            +   * 
            + * + * bool ignore_reinvite_media_direction = 9; + * + * @return The ignoreReinviteMediaDirection. + */ + boolean getIgnoreReinviteMediaDirection(); +} diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentResponse.java index 858337eea809..d9e8905555c7 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingAnalyzeContentResponse.java @@ -30,8 +30,11 @@ * * 1. If the input was set to streaming audio, the first one or more messages * contain `recognition_result`. Each `recognition_result` represents a more - * complete transcript of what the user said. The last `recognition_result` - * has `is_final` set to `true`. + * complete transcript of what the user said. When a user speaks multiple + * sentences, the API will emit multiple messages where `is_final = true`. + * Each time the system detects a distinct pause or completed thought, it + * locks in that segment, marks it `is_final = true`, and then immediately + * starts a new recognition cycle for the next sentence on the same stream. * * 2. In virtual agent stage: if `enable_partial_automated_agent_reply` is * true, the following N (currently 1 <= N <= 4) messages @@ -1081,8 +1084,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * 1. If the input was set to streaming audio, the first one or more messages * contain `recognition_result`. Each `recognition_result` represents a more - * complete transcript of what the user said. The last `recognition_result` - * has `is_final` set to `true`. + * complete transcript of what the user said. When a user speaks multiple + * sentences, the API will emit multiple messages where `is_final = true`. + * Each time the system detects a distinct pause or completed thought, it + * locks in that segment, marks it `is_final = true`, and then immediately + * starts a new recognition cycle for the next sentence on the same stream. * * 2. In virtual agent stage: if `enable_partial_automated_agent_reply` is * true, the following N (currently 1 <= N <= 4) messages diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java index bbedef36fd34..25f637d31ec6 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/StreamingRecognitionResult.java @@ -44,20 +44,24 @@ * finalized transcript values received for the series of results. * * In the following example, single utterance is enabled. In the case where - * single utterance is not enabled, result 7 would not occur. + * single utterance is not enabled, result 8 would not occur. * * ``` - * Num | transcript | message_type | is_final - * --- | ----------------------- | ----------------------- | -------- - * 1 | "tube" | TRANSCRIPT | false - * 2 | "to be a" | TRANSCRIPT | false - * 3 | "to be" | TRANSCRIPT | false - * 4 | "to be or not to be" | TRANSCRIPT | true - * 5 | "that's" | TRANSCRIPT | false - * 6 | "that is | TRANSCRIPT | false - * 7 | unset | END_OF_SINGLE_UTTERANCE | unset - * 8 | " that is the question" | TRANSCRIPT | true + * Num | transcript | message_type | is_final + * --- | ------------------------ | ----------------------- | -------- + * 1 | "tube" | TRANSCRIPT | false + * 2 | "to be a" | TRANSCRIPT | false + * 3 | "to be" | TRANSCRIPT | false + * 4 | "to be or not to be" | TRANSCRIPT | true + * 5 | "that's" | TRANSCRIPT | false + * 6 | "that is | TRANSCRIPT | false + * 7 | " that is the question" | TRANSCRIPT | true + * 8 | unset | END_OF_SINGLE_UTTERANCE | unset + * 9 | ". Whether 'tis nobler" | TRANSCRIPT | true + * 10 | " in the mind" | TRANSCRIPT | false + * 11 | " in the mind to suffer" | TRANSCRIPT | true * ``` + * * Concatenating the finalized transcripts with `is_final` set to true, * the complete utterance becomes "to be or not to be that is the question". *
            @@ -1045,20 +1049,24 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * finalized transcript values received for the series of results. * * In the following example, single utterance is enabled. In the case where - * single utterance is not enabled, result 7 would not occur. + * single utterance is not enabled, result 8 would not occur. * * ``` - * Num | transcript | message_type | is_final - * --- | ----------------------- | ----------------------- | -------- - * 1 | "tube" | TRANSCRIPT | false - * 2 | "to be a" | TRANSCRIPT | false - * 3 | "to be" | TRANSCRIPT | false - * 4 | "to be or not to be" | TRANSCRIPT | true - * 5 | "that's" | TRANSCRIPT | false - * 6 | "that is | TRANSCRIPT | false - * 7 | unset | END_OF_SINGLE_UTTERANCE | unset - * 8 | " that is the question" | TRANSCRIPT | true + * Num | transcript | message_type | is_final + * --- | ------------------------ | ----------------------- | -------- + * 1 | "tube" | TRANSCRIPT | false + * 2 | "to be a" | TRANSCRIPT | false + * 3 | "to be" | TRANSCRIPT | false + * 4 | "to be or not to be" | TRANSCRIPT | true + * 5 | "that's" | TRANSCRIPT | false + * 6 | "that is | TRANSCRIPT | false + * 7 | " that is the question" | TRANSCRIPT | true + * 8 | unset | END_OF_SINGLE_UTTERANCE | unset + * 9 | ". Whether 'tis nobler" | TRANSCRIPT | true + * 10 | " in the mind" | TRANSCRIPT | false + * 11 | " in the mind to suffer" | TRANSCRIPT | true * ``` + * * Concatenating the finalized transcripts with `is_final` set to true, * the complete utterance becomes "to be or not to be that is the question". *
            diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestKnowledgeAssistResponse.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestKnowledgeAssistResponse.java index 4cc433352fcf..28b784796496 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestKnowledgeAssistResponse.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestKnowledgeAssistResponse.java @@ -54,6 +54,7 @@ private SuggestKnowledgeAssistResponse(com.google.protobuf.GeneratedMessage.Buil private SuggestKnowledgeAssistResponse() { latestMessage_ = ""; + additionalSuggestedQueryResults_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -212,6 +213,112 @@ public int getContextSize() { return contextSize_; } + public static final int ADDITIONAL_SUGGESTED_QUERY_RESULTS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult> + additionalSuggestedQueryResults_; + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult> + getAdditionalSuggestedQueryResultsList() { + return additionalSuggestedQueryResults_; + } + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + getAdditionalSuggestedQueryResultsOrBuilderList() { + return additionalSuggestedQueryResults_; + } + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAdditionalSuggestedQueryResultsCount() { + return additionalSuggestedQueryResults_.size(); + } + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + getAdditionalSuggestedQueryResults(int index) { + return additionalSuggestedQueryResults_.get(index); + } + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder + getAdditionalSuggestedQueryResultsOrBuilder(int index) { + return additionalSuggestedQueryResults_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -235,6 +342,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (contextSize_ != 0) { output.writeInt32(3, contextSize_); } + for (int i = 0; i < additionalSuggestedQueryResults_.size(); i++) { + output.writeMessage(4, additionalSuggestedQueryResults_.get(i)); + } getUnknownFields().writeTo(output); } @@ -254,6 +364,11 @@ public int getSerializedSize() { if (contextSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, contextSize_); } + for (int i = 0; i < additionalSuggestedQueryResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, additionalSuggestedQueryResults_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -276,6 +391,8 @@ public boolean equals(final java.lang.Object obj) { } if (!getLatestMessage().equals(other.getLatestMessage())) return false; if (getContextSize() != other.getContextSize()) return false; + if (!getAdditionalSuggestedQueryResultsList() + .equals(other.getAdditionalSuggestedQueryResultsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -295,6 +412,10 @@ public int hashCode() { hash = (53 * hash) + getLatestMessage().hashCode(); hash = (37 * hash) + CONTEXT_SIZE_FIELD_NUMBER; hash = (53 * hash) + getContextSize(); + if (getAdditionalSuggestedQueryResultsCount() > 0) { + hash = (37 * hash) + ADDITIONAL_SUGGESTED_QUERY_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalSuggestedQueryResultsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -441,6 +562,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetKnowledgeAssistAnswerFieldBuilder(); + internalGetAdditionalSuggestedQueryResultsFieldBuilder(); } } @@ -455,6 +577,13 @@ public Builder clear() { } latestMessage_ = ""; contextSize_ = 0; + if (additionalSuggestedQueryResultsBuilder_ == null) { + additionalSuggestedQueryResults_ = java.util.Collections.emptyList(); + } else { + additionalSuggestedQueryResults_ = null; + additionalSuggestedQueryResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); return this; } @@ -484,6 +613,7 @@ public com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse build( public com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse buildPartial() { com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse result = new com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -491,6 +621,20 @@ public com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse buildP return result; } + private void buildPartialRepeatedFields( + com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse result) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + additionalSuggestedQueryResults_ = + java.util.Collections.unmodifiableList(additionalSuggestedQueryResults_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.additionalSuggestedQueryResults_ = additionalSuggestedQueryResults_; + } else { + result.additionalSuggestedQueryResults_ = additionalSuggestedQueryResultsBuilder_.build(); + } + } + private void buildPartial0( com.google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse result) { int from_bitField0_ = bitField0_; @@ -538,6 +682,34 @@ public Builder mergeFrom( if (other.getContextSize() != 0) { setContextSize(other.getContextSize()); } + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (!other.additionalSuggestedQueryResults_.isEmpty()) { + if (additionalSuggestedQueryResults_.isEmpty()) { + additionalSuggestedQueryResults_ = other.additionalSuggestedQueryResults_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.addAll(other.additionalSuggestedQueryResults_); + } + onChanged(); + } + } else { + if (!other.additionalSuggestedQueryResults_.isEmpty()) { + if (additionalSuggestedQueryResultsBuilder_.isEmpty()) { + additionalSuggestedQueryResultsBuilder_.dispose(); + additionalSuggestedQueryResultsBuilder_ = null; + additionalSuggestedQueryResults_ = other.additionalSuggestedQueryResults_; + bitField0_ = (bitField0_ & ~0x00000008); + additionalSuggestedQueryResultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAdditionalSuggestedQueryResultsFieldBuilder() + : null; + } else { + additionalSuggestedQueryResultsBuilder_.addAllMessages( + other.additionalSuggestedQueryResults_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -583,6 +755,23 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 34: + { + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult + m = + input.readMessage( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.parser(), + extensionRegistry); + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(m); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(m); + } + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1009,6 +1198,505 @@ public Builder clearContextSize() { return this; } + private java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult> + additionalSuggestedQueryResults_ = java.util.Collections.emptyList(); + + private void ensureAdditionalSuggestedQueryResultsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + additionalSuggestedQueryResults_ = + new java.util.ArrayList< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult>(additionalSuggestedQueryResults_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + additionalSuggestedQueryResultsBuilder_; + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult> + getAdditionalSuggestedQueryResultsList() { + if (additionalSuggestedQueryResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(additionalSuggestedQueryResults_); + } else { + return additionalSuggestedQueryResultsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAdditionalSuggestedQueryResultsCount() { + if (additionalSuggestedQueryResultsBuilder_ == null) { + return additionalSuggestedQueryResults_.size(); + } else { + return additionalSuggestedQueryResultsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + getAdditionalSuggestedQueryResults(int index) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + return additionalSuggestedQueryResults_.get(index); + } else { + return additionalSuggestedQueryResultsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalSuggestedQueryResults( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + value) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.set(index, value); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAdditionalSuggestedQueryResults( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder + builderForValue) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.set(index, builderForValue.build()); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAdditionalSuggestedQueryResults( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + value) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(value); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAdditionalSuggestedQueryResults( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + value) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(index, value); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAdditionalSuggestedQueryResults( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder + builderForValue) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(builderForValue.build()); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAdditionalSuggestedQueryResults( + int index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder + builderForValue) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.add(index, builderForValue.build()); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAdditionalSuggestedQueryResults( + java.lang.Iterable< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult> + values) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, additionalSuggestedQueryResults_); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAdditionalSuggestedQueryResults() { + if (additionalSuggestedQueryResultsBuilder_ == null) { + additionalSuggestedQueryResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAdditionalSuggestedQueryResults(int index) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + ensureAdditionalSuggestedQueryResultsIsMutable(); + additionalSuggestedQueryResults_.remove(index); + onChanged(); + } else { + additionalSuggestedQueryResultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder + getAdditionalSuggestedQueryResultsBuilder(int index) { + return internalGetAdditionalSuggestedQueryResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder + getAdditionalSuggestedQueryResultsOrBuilder(int index) { + if (additionalSuggestedQueryResultsBuilder_ == null) { + return additionalSuggestedQueryResults_.get(index); + } else { + return additionalSuggestedQueryResultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + getAdditionalSuggestedQueryResultsOrBuilderList() { + if (additionalSuggestedQueryResultsBuilder_ != null) { + return additionalSuggestedQueryResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(additionalSuggestedQueryResults_); + } + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder + addAdditionalSuggestedQueryResultsBuilder() { + return internalGetAdditionalSuggestedQueryResultsFieldBuilder() + .addBuilder( + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder + addAdditionalSuggestedQueryResultsBuilder(int index) { + return internalGetAdditionalSuggestedQueryResultsFieldBuilder() + .addBuilder( + index, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. The list of additional suggested queries based on the context.
            +     * This is used for the cases when we want to generate multiple queries
            +     * for a single request.
            +     * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder> + getAdditionalSuggestedQueryResultsBuilderList() { + return internalGetAdditionalSuggestedQueryResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + .Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + internalGetAdditionalSuggestedQueryResultsFieldBuilder() { + if (additionalSuggestedQueryResultsBuilder_ == null) { + additionalSuggestedQueryResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResult.Builder, + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder>( + additionalSuggestedQueryResults_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + additionalSuggestedQueryResults_ = null; + } + return additionalSuggestedQueryResultsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistResponse) } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestKnowledgeAssistResponseOrBuilder.java b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestKnowledgeAssistResponseOrBuilder.java index 1cedfae7dcff..04946ef21bc5 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestKnowledgeAssistResponseOrBuilder.java +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/SuggestKnowledgeAssistResponseOrBuilder.java @@ -116,4 +116,87 @@ public interface SuggestKnowledgeAssistResponseOrBuilder * @return The contextSize. */ int getContextSize(); + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult> + getAdditionalSuggestedQueryResultsList(); + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + getAdditionalSuggestedQueryResults(int index); + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAdditionalSuggestedQueryResultsCount(); + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer + .AdditionalSuggestedQueryResultOrBuilder> + getAdditionalSuggestedQueryResultsOrBuilderList(); + + /** + * + * + *
            +   * Optional. The list of additional suggested queries based on the context.
            +   * This is used for the cases when we want to generate multiple queries
            +   * for a single request.
            +   * 
            + * + * + * repeated .google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResult additional_suggested_query_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer.AdditionalSuggestedQueryResultOrBuilder + getAdditionalSuggestedQueryResultsOrBuilder(int index); } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto index be89c0b9b754..c94b691a1407 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/audio_config.proto @@ -597,8 +597,8 @@ enum OutputAudioEncoding { // Audio content returned as LINEAR16 also contains a WAV header. OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1; - // MP3 audio at 32kbps. - OUTPUT_AUDIO_ENCODING_MP3 = 2; + // MP3 audio at 64kbps. + OUTPUT_AUDIO_ENCODING_MP3 = 2 [deprecated = true]; // MP3 audio at 64kbps. OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4; diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_app.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_app.proto index 7ca2c052537e..144a691c9f78 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_app.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/ces_app.proto @@ -43,4 +43,16 @@ message CesAppSpec { // Optional. Indicates whether the app requires human confirmation. Tool.ConfirmationRequirement confirmation_requirement = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Only applicable for CompanionAgent. + // Indicates whether the ces app is enabled in proactive mode. + // At least one of `proactive_enabled` or `reactive_enabled` should be + // true; otherwise, the ces app will be ignored. + optional bool proactive_enabled = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Only applicable for CompanionAgent. + // Indicates whether the ces app is enabled in reactive mode. + // At least one of `proactive_enabled` or `reactive_enabled` should be + // true; otherwise, the ces app will be ignored. + optional bool reactive_enabled = 4 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto index baf437a5b5e1..2fdc05c14a08 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation.proto @@ -1289,6 +1289,12 @@ message SearchKnowledgeAnswer { // The answer is from intent matching. INTENT = 3; + + // The answer is from Playbook. + PLAYBOOK = 4; + + // The answer is from event. + EVENT = 5; } // The sources of the answers. diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto index 68a5f84631a3..f677102f15ef 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/conversation_profile.proto @@ -39,10 +39,6 @@ option (google.api.resource_definition) = { type: "dialogflow.googleapis.com/CXSecuritySettings" pattern: "projects/{project}/locations/{location}/securitySettings/{security_settings}" }; -option (google.api.resource_definition) = { - type: "dialogflow.googleapis.com/ConversationModel" - pattern: "projects/{project}/locations/{location}/conversationModels/{conversation_model}" -}; // Service for managing // [ConversationProfiles][google.cloud.dialogflow.v2beta1.ConversationProfile]. @@ -267,6 +263,9 @@ message ConversationProfile { // language tag. Example: "en-US". string language_code = 10; + // Optional. Configuration for SIP connections. + SipConfig sip_config = 16 [(google.api.field_behavior) = OPTIONAL]; + // The time zone of this conversational profile from the // [time zone database](https://www.iana.org/time-zones), e.g., // America/New_York, Europe/Paris. Defaults to America/New_York. @@ -288,7 +287,7 @@ message ConversationProfile { // Defines the Automated Agent to connect to a conversation. message AutomatedAgentConfig { - // Required. ID of the Dialogflow agent environment to use. + // Required. The resource name of the Dialogflow agent environment to use. // // This project needs to either be the same project as the conversation or you // need to grant `service-/conversationModels/`. - string model = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/ConversationModel" - }]; - - // Version of current baseline model. It will be ignored if - // [model][google.cloud.dialogflow.v2beta1.HumanAgentAssistantConfig.ConversationModelConfig.model] - // is set. Valid versions are: - // - // - Article Suggestion baseline model: - // - 0.9 - // - 1.0 (default) - // - Summarization baseline model: - // - 1.0 - string baseline_model_version = 8; - } - // Config to process conversation. message ConversationProcessConfig { // Number of recent non-small-talk sentences to use as context for article @@ -830,6 +819,36 @@ message LoggingConfig { bool enable_stackdriver_logging = 3; } +// Defines the SIP configuration. +message SipConfig { + // Asks Dialogflow Telephony to create the conversation provided in the SIP + // header on the fly when the call comes in. + bool create_conversation_on_the_fly = 1; + + // Starts the conversation with inactive SDP directives + bool inactive_start = 3; + + // Max duration for audio recording. + // Overrides the default value of 15 min. + // Max value is 8 hours. + google.protobuf.Duration max_audio_recording_duration = 4; + + // Allows interactions with a Dialogflow virtual agent even if the call is + // connected for SIPREC purposes. + bool allow_virtual_agent_interaction = 5; + + // Keeps the conversation running even if the call is disconnected. + bool keep_conversation_running = 6; + + // List of inbound call leg headers to be copied to outbound call legs created + // later. + repeated string copy_inbound_call_leg_headers = 8; + + // Ignores any media direction in the reINVITE SDP offer. Reuse the previous + // media direction. + bool ignore_reinvite_media_direction = 9; +} + // The request message for // [ConversationProfiles.ListConversationProfiles][google.cloud.dialogflow.v2beta1.ConversationProfiles.ListConversationProfiles]. message ListConversationProfilesRequest { diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto index b15ae6e9561b..4a8d24ff25f8 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/participant.proto @@ -322,8 +322,8 @@ message Participant { // // 2. If you set this field in // [AnalyzeContent][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest.obfuscated_external_user_id] - // or - // [StreamingAnalyzeContent][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], + // or [StreamingAnalyzeContent] + // [google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest.obfuscated_external_user_id], // Dialogflow will update // [Participant.obfuscated_external_user_id][google.cloud.dialogflow.v2beta1.Participant.obfuscated_external_user_id]. // @@ -335,6 +335,11 @@ message Participant { // personalization. For example, Dialogflow can use it to provide personalized // smart reply suggestions for this user. // + // Additionally, to link an escalated Virtual Agent conversation + // with its corresponding Agent Assist conversation for analytics, this field + // in Agent Assist conversations should be populated to indicate the user id + // of the `END_USER` participant in the escalated conversation. + // // Note: // // * Please never pass raw user ids to Dialogflow. Always obfuscate your user @@ -1060,8 +1065,11 @@ message StreamingAnalyzeContentRequest { // // 1. If the input was set to streaming audio, the first one or more messages // contain `recognition_result`. Each `recognition_result` represents a more -// complete transcript of what the user said. The last `recognition_result` -// has `is_final` set to `true`. +// complete transcript of what the user said. When a user speaks multiple +// sentences, the API will emit multiple messages where `is_final = true`. +// Each time the system detects a distinct pause or completed thought, it +// locks in that segment, marks it `is_final = true`, and then immediately +// starts a new recognition cycle for the next sentence on the same stream. // // 2. In virtual agent stage: if `enable_partial_automated_agent_reply` is // true, the following N (currently 1 <= N <= 4) messages @@ -1857,6 +1865,13 @@ message SuggestKnowledgeAssistResponse { // [SuggestKnowledgeAssistRequest.context_size][google.cloud.dialogflow.v2beta1.SuggestKnowledgeAssistRequest.context_size] // field in the request if there are fewer messages in the conversation. int32 context_size = 3; + + // Optional. The list of additional suggested queries based on the context. + // This is used for the cases when we want to generate multiple queries + // for a single request. + repeated KnowledgeAssistAnswer.AdditionalSuggestedQueryResult + additional_suggested_query_results = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Debug information related to ingested context reference. @@ -2050,6 +2065,18 @@ message KnowledgeAssistDebugInfo { int32 appended_search_context_count = 18; } + // Token usage metadata for query generation. + message QueryGenerationDebugInfo { + // The total number of tokens in the prompt. + int32 prompt_token_count = 1; + + // The total number of tokens in the generated candidates. + int32 candidates_token_count = 2; + + // The total number of tokens for the entire request. + int32 total_token_count = 3; + } + // Reason for query generation. QueryGenerationFailureReason query_generation_failure_reason = 1; @@ -2068,14 +2095,56 @@ message KnowledgeAssistDebugInfo { // The latency of the service. ServiceLatency service_latency = 6; + + // Token usage metadata for query generation. + QueryGenerationDebugInfo query_generation_debug_info = 7; + + // Debug information from CES runtime API. + google.protobuf.Struct ces_debug_info = 8; } // Represents a Knowledge Assist answer. message KnowledgeAssistAnswer { // Represents a suggested query. message SuggestedQuery { + // Search context is information useful for knowledge search that helps + // enrich the query. + // Example: + // search_context { + // key: "application name" + // value: "DesignApp" + // } + message SearchContext { + // Optional. The key of the search context, e.g. "application name". + string key = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The value of the search context, e.g. "DesignApp". + string value = 2 [(google.api.field_behavior) = OPTIONAL]; + } + // Suggested query text. string query_text = 1; + + // Optional. The search contexts for the query. + repeated SearchContext search_contexts = 4 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Represents a single suggested query result. + message AdditionalSuggestedQueryResult { + // Output only. The suggested query based on the context. + SuggestedQuery suggested_query = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The name of the answer record. + // Format: `projects//locations//answerRecords/` + string answer_record = 5 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "dialogflow.googleapis.com/AnswerRecord" + } + ]; } // Represents an answer from Knowledge. Currently supports FAQ and Generative @@ -2109,6 +2178,15 @@ message KnowledgeAssistAnswer { repeated Snippet snippets = 1; } + // Details about source of Event answer. + message EventSource { + // Name of the triggered event. + string event = 1; + + // Sources used in event fulfillment. + GenerativeSource snippets = 2; + } + // The piece of text from the `source` that answers this suggested query. string answer_text = 1; @@ -2119,6 +2197,12 @@ message KnowledgeAssistAnswer { // Populated if the prediction was Generative. GenerativeSource generative_source = 4; + + // Populated if the prediction was from Playbook. + GenerativeSource playbook_source = 7; + + // Populated if the prediction was from an event. + EventSource event_source = 8; } } @@ -2197,6 +2281,26 @@ message BidiStreamingAnalyzeContentRequest { // Input that forms data for a single turn. message TurnInput { + // The execution result of a specific tool from the client. + message ToolResponse { + // Required. The matching ID of the tool call the response is for. + string id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The identifier of the tool that got executed. + string tool = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The tool execution result in JSON object format. + google.protobuf.Struct response = 3 + [(google.api.field_behavior) = OPTIONAL]; + } + + // The tool responses from the client. + message ToolResponses { + // Optional. The list of tool responses. + repeated ToolResponse tool_responses = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + // Content that indicates the end of the turn. oneof main_content { // The UTF-8 encoded natural language text to be processed. @@ -2220,6 +2324,9 @@ message BidiStreamingAnalyzeContentRequest { // Optional. Parameters to be passed to the virtual agent. google.protobuf.Struct virtual_agent_parameters = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The tool responses from the client. + ToolResponses tool_responses = 5 [(google.api.field_behavior) = OPTIONAL]; } // Input for the conversation. @@ -2259,6 +2366,24 @@ message BidiStreamingAnalyzeContentResponse { // Indicate that the turn is complete. message TurnComplete {} + // Request for the client to execute the specified tool. + message ToolCall { + // The unique identifier of the tool call. + string id = 1; + + // The identifier of the tool to execute. + string tool = 2; + + // The input parameters and values for the tool in JSON object format. + google.protobuf.Struct args = 3; + } + + // The tool calls from the server. + message ToolCalls { + // The list of tool calls. + repeated ToolCall tool_calls = 1; + } + // The output response. oneof response { // The result of speech recognition. @@ -2274,6 +2399,9 @@ message BidiStreamingAnalyzeContentResponse { // Indicate that the turn is complete. TurnComplete turn_complete = 4; + + // The tool calls from the server. + ToolCalls tool_calls = 5; } } diff --git a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto index 159b2c9f0818..f5985a7d1b3a 100644 --- a/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto +++ b/java-dialogflow/proto-google-cloud-dialogflow-v2beta1/src/main/proto/google/cloud/dialogflow/v2beta1/session.proto @@ -744,20 +744,24 @@ message StreamingDetectIntentResponse { // finalized transcript values received for the series of results. // // In the following example, single utterance is enabled. In the case where -// single utterance is not enabled, result 7 would not occur. +// single utterance is not enabled, result 8 would not occur. // // ``` -// Num | transcript | message_type | is_final -// --- | ----------------------- | ----------------------- | -------- -// 1 | "tube" | TRANSCRIPT | false -// 2 | "to be a" | TRANSCRIPT | false -// 3 | "to be" | TRANSCRIPT | false -// 4 | "to be or not to be" | TRANSCRIPT | true -// 5 | "that's" | TRANSCRIPT | false -// 6 | "that is | TRANSCRIPT | false -// 7 | unset | END_OF_SINGLE_UTTERANCE | unset -// 8 | " that is the question" | TRANSCRIPT | true +// Num | transcript | message_type | is_final +// --- | ------------------------ | ----------------------- | -------- +// 1 | "tube" | TRANSCRIPT | false +// 2 | "to be a" | TRANSCRIPT | false +// 3 | "to be" | TRANSCRIPT | false +// 4 | "to be or not to be" | TRANSCRIPT | true +// 5 | "that's" | TRANSCRIPT | false +// 6 | "that is | TRANSCRIPT | false +// 7 | " that is the question" | TRANSCRIPT | true +// 8 | unset | END_OF_SINGLE_UTTERANCE | unset +// 9 | ". Whether 'tis nobler" | TRANSCRIPT | true +// 10 | " in the mind" | TRANSCRIPT | false +// 11 | " in the mind to suffer" | TRANSCRIPT | true // ``` +// // Concatenating the finalized transcripts with `is_final` set to true, // the complete utterance becomes "to be or not to be that is the question". message StreamingRecognitionResult { diff --git a/librarian.yaml b/librarian.yaml index 7a285b9b6d25..e59852a4a4dc 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -16,8 +16,8 @@ version: v0.21.1-0.20260617000028-820646f3db93 repo: googleapis/google-cloud-java sources: googleapis: - commit: db88feb4756963c6aa9b5996a880cfe5572d0320 - sha256: ba3f018c32dae09803b3c8759ef79c59fc9cc1200d097026ac52a1490bec3b3e + commit: 1df255f1feb82e85ec0c8a3b558857e8ca3d3372 + sha256: 75d9ff8bb7174f6bea0e5ee24aae7b59238a906a878392dccc9b3e0e1226d179 showcase: commit: 328bec7ce4c1fb77c37fdf1868d0506bc02a70fc sha256: 8df187486e37edf5a78c1646c859c311bc452871b9ba4641d93149d3c53450a2 From 825f7dde23ac3d4c8509269e8cd9e8747d8828aa Mon Sep 17 00:00:00 2001 From: Kirill Logachev Date: Sat, 20 Jun 2026 22:11:00 -0700 Subject: [PATCH 42/82] chore(bigquery-jdbc): update perf client to run custom queries (#13521) --- .../tools/client/JDBCClient.java | 18 ++++++++- java-bigquery-jdbc/tools/client/Makefile | 12 +++++- java-bigquery-jdbc/tools/perf/Makefile | 15 ++++++- java-bigquery-jdbc/tools/perf/README.md | 31 +++++++++++---- java-bigquery-jdbc/tools/perf/run_perf.py | 39 +++++++++++++------ 5 files changed, 90 insertions(+), 25 deletions(-) diff --git a/java-bigquery-jdbc/tools/client/JDBCClient.java b/java-bigquery-jdbc/tools/client/JDBCClient.java index 007b2be06c97..8bf331c561bd 100644 --- a/java-bigquery-jdbc/tools/client/JDBCClient.java +++ b/java-bigquery-jdbc/tools/client/JDBCClient.java @@ -23,6 +23,7 @@ public static void main(String[] args) throws Exception { String driverClass = "com.google.cloud.bigquery.jdbc.BigQueryDriver"; String action = null; String query = null; + String queryFile = null; boolean noOutput = false; int generateRows = 0; int generateCols = 5; @@ -53,6 +54,7 @@ public static void main(String[] args) throws Exception { case "driver-class": driverClass = val; break; case "action": action = val; break; case "query": query = val; break; + case "query-file": queryFile = val; break; case "no-output": noOutput = true; break; case "generate-rows": generateRows = Integer.parseInt(val); break; case "generate-cols": generateCols = Integer.parseInt(val); break; @@ -88,11 +90,19 @@ public static void main(String[] args) throws Exception { System.out.println("Connection successful.\n"); if ("query".equals(action)) { - if (generateRows > 0) { + if (query == null && queryFile != null) { + try { + query = readQueryFromFile(queryFile); + } catch (Exception e) { + System.err.println("Error reading query from file: " + e.getMessage()); + System.exit(1); + } + } + if (query == null && generateRows > 0) { query = generateDataQuery(generateRows, generateCols); } if (query == null) { - System.err.println("Error: --query or --generate-rows is required when action is 'query'"); + System.err.println("Error: --query, --query-file, or --generate-rows is required when action is 'query'"); System.exit(1); } warmup(conn); @@ -122,6 +132,10 @@ private static void warmup(Connection conn) { System.out.println("Warmup complete.\n"); } + private static String readQueryFromFile(String path) throws Exception { + return new String(java.nio.file.Files.readAllBytes(java.nio.file.Paths.get(path)), java.nio.charset.StandardCharsets.UTF_8); + } + private static String generateDataQuery(int rows, int cols) { int N = (int) Math.ceil(Math.sqrt(rows)); String idxExpr = "(i - 1) * " + N + " + j"; diff --git a/java-bigquery-jdbc/tools/client/Makefile b/java-bigquery-jdbc/tools/client/Makefile index 16460397b1ad..15184e938897 100644 --- a/java-bigquery-jdbc/tools/client/Makefile +++ b/java-bigquery-jdbc/tools/client/Makefile @@ -27,12 +27,20 @@ PARAMS = ProjectId=bigquery-devtools-drivers;OAuthType=0;OAuthServiceAcctEmail=; # Additional connection parameters EXTRA_PARAMS ?= +METHOD ?= getTables + ROWS ?= 10 COLS ?= 5 -METHOD ?= getTables OUTPUT ?= false QUERY ?= SELECT 1 +QUERY_FILE ?= + +ifneq ($(QUERY_FILE),) + QUERY_FLAG = --query-file "$(QUERY_FILE)" +else + QUERY_FLAG = --query "$(QUERY)" +endif ifeq ($(OUTPUT),false) OUTPUT_FLAG = --no-output @@ -53,7 +61,7 @@ COMMON_FLAGS = --url "$(URL);$(DEFAULT_PARAMS);$(PARAMS);$(EXTRA_PARAMS)" \ --driver-class "$(DRIVER_CLASS)" query: classes - $(J) $(JFR_FLAGS) -cp .:$(DRIVER_JAR) JDBCClient --action query $(COMMON_FLAGS) --query "$(QUERY)" $(OUTPUT_FLAG) $(EXTRA_ARGS) + $(J) $(JFR_FLAGS) -cp .:$(DRIVER_JAR) JDBCClient --action query $(COMMON_FLAGS) $(QUERY_FLAG) $(OUTPUT_FLAG) $(EXTRA_ARGS) query-generated: classes $(J) $(JFR_FLAGS) -cp .:$(DRIVER_JAR) JDBCClient --action query $(COMMON_FLAGS) $(OUTPUT_FLAG) --generate-rows $(ROWS) --generate-cols $(COLS) $(EXTRA_ARGS) diff --git a/java-bigquery-jdbc/tools/perf/Makefile b/java-bigquery-jdbc/tools/perf/Makefile index 2f985d3c5857..e4b8a4dbf430 100644 --- a/java-bigquery-jdbc/tools/perf/Makefile +++ b/java-bigquery-jdbc/tools/perf/Makefile @@ -2,6 +2,8 @@ # Defaults ITERATIONS ?= 5 +QUERY ?= +QUERY_FILE ?= ROWS ?= 1000 COLS ?= 5 VERSION ?= $(shell sed -n 's/.*\([^<]*\)<\/version>.*/\1/p' ../../pom.xml | head -n 1) @@ -25,7 +27,18 @@ HTAPI_OPTS = EnableHighThroughputAPI=1;HighThroughputActivationRatio=0;HighThrou RUN_PERF = python3 run_perf.py # Common flags for run_perf.py -COMMON_FLAGS = -n $(ITERATIONS) --generate-rows $(ROWS) --generate-cols $(COLS) --jar1 $(JAR1) --class1 $(CLASS1) +COMMON_FLAGS = -n $(ITERATIONS) --jar1 $(JAR1) --class1 $(CLASS1) + +ifeq ($(QUERY)$(QUERY_FILE),) + COMMON_FLAGS += --generate-rows $(ROWS) --generate-cols $(COLS) +else + ifneq ($(QUERY),) + COMMON_FLAGS += --query "$(QUERY)" + endif + ifneq ($(QUERY_FILE),) + COMMON_FLAGS += --query-file "$(QUERY_FILE)" + endif +endif ifneq ($(JAR2),) COMMON_FLAGS += --jar2 $(JAR2) --class2 $(CLASS2) diff --git a/java-bigquery-jdbc/tools/perf/README.md b/java-bigquery-jdbc/tools/perf/README.md index 243d06fc0367..59f50ce4fa87 100644 --- a/java-bigquery-jdbc/tools/perf/README.md +++ b/java-bigquery-jdbc/tools/perf/README.md @@ -24,24 +24,32 @@ The easiest way to run tests is using the provided `Makefile`. It defines target The Makefile uses the following defaults which can be overridden: - `ITERATIONS`: 5 -- `ROWS`: 1000 -- `COLS`: 5 +- `ROWS`: 1000 (default, used if no query/query_file is specified) +- `COLS`: 5 (default, used if no query/query_file is specified) +- `QUERY`: Optional custom query to run +- `QUERY_FILE`: Optional path to a SQL file containing the query to run - `JAR1`: `../../drivers/google-cloud-bigquery-jdbc-0.9.0-all.jar` - `PROJECT_ID`: `bigquery-devtools-drivers` - `CREDENTIALS`: Value of `$GOOGLE_APPLICATION_CREDENTIALS` ### Examples -#### Run REST API tests with defaults +#### Run REST API tests with defaults (generates 1000 rows, 5 columns) ```bash make run-rest ``` -#### Run HTAPI tests with custom iterations and rows +#### Run REST API tests with custom generated data size ```bash -make run-htapi ITERATIONS=3 ROWS=50000 +make run-rest ROWS=50000 COLS=10 +``` + +#### Run HTAPI tests with custom iterations and query + +```bash +make run-htapi ITERATIONS=3 QUERY="SELECT * FROM my_dataset.my_table LIMIT 50000" ``` #### Compare two drivers @@ -64,14 +72,21 @@ For more control, you can run `run_perf.py` directly. - `--class1`: Class name for the first driver (default: `com.google.cloud.bigquery.jdbc.BigQueryDriver`). - `--class2`: Class name for the second driver (default: `com.google.cloud.bigquery.jdbc.BigQueryDriver`). - `-n`, `--iterations`: Number of iterations to run (default: 5). -- `--generate-rows`: Number of rows to generate via query (default: 0). -- `--generate-cols`: Number of columns to generate via query (default: 5). -- `--query`: A specific query to run (if not using generated data). +- `--query`: The query to run. +- `--query-file`: Path to a SQL file containing the query to run. +- `--generate-rows`: Number of rows to generate (default: 0, used if no query/query_file is specified). +- `--generate-cols`: Number of columns to generate (default: 5). - `--output-md`: Append results as a markdown table to this file. - `--filter-metrics`: Comma-separated list of metrics to include in the markdown table. ### Examples +#### Run a single driver with a custom query + +```bash +python3 run_perf.py --url "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=my-project;OAuthType=3" --jar1 path/to/driver.jar --query "SELECT * FROM my_dataset.my_table LIMIT 1000" -n 3 +``` + #### Run a single driver with generated data ```bash diff --git a/java-bigquery-jdbc/tools/perf/run_perf.py b/java-bigquery-jdbc/tools/perf/run_perf.py index dd05423ce462..c7eab95bfed8 100644 --- a/java-bigquery-jdbc/tools/perf/run_perf.py +++ b/java-bigquery-jdbc/tools/perf/run_perf.py @@ -21,7 +21,7 @@ # Base directory of the script BASE_DIR = os.path.dirname(os.path.abspath(__file__)) -def run_test(url, driver_jar, driver_class, query=None, generate_rows=0, generate_cols=5, no_output=True): +def run_test(url, driver_jar, driver_class, query=None, query_file=None, generate_rows=0, generate_cols=5, no_output=True): # Base client folder is tools/client. Relative to tools/perf it is ../client. client_dir = os.path.join(os.path.dirname(BASE_DIR), "client") @@ -41,7 +41,9 @@ def run_test(url, driver_jar, driver_class, query=None, generate_rows=0, generat if query: cmd.extend(["--query", query]) - if generate_rows > 0: + elif query_file: + cmd.extend(["--query-file", query_file]) + elif generate_rows > 0: cmd.extend(["--generate-rows", str(generate_rows)]) cmd.extend(["--generate-cols", str(generate_cols)]) if no_output: @@ -227,14 +229,24 @@ def main(): parser.add_argument("--class1", default="com.google.cloud.bigquery.jdbc.BigQueryDriver", help="Class name for first driver") parser.add_argument("--class2", default="com.google.cloud.bigquery.jdbc.BigQueryDriver", help="Class name for second driver") parser.add_argument("-n", "--iterations", type=int, default=5, help="Number of iterations to run (default 5)") + parser.add_argument("--query", help="Query to run") + parser.add_argument("--query-file", help="Path to a SQL file containing the query to run") parser.add_argument("--generate-rows", type=int, default=0, help="Number of rows to generate") parser.add_argument("--generate-cols", type=int, default=5, help="Number of columns to generate") - parser.add_argument("--query", help="Query to run (if not using generated data)") parser.add_argument("--output-md", help="Append markdown table to this file containing the results") parser.add_argument("--filter-metrics", help="Comma-separated list of metrics to include in markdown tables") args = parser.parse_args() + query = args.query + query_file = args.query_file + generate_rows = args.generate_rows + generate_cols = args.generate_cols + + if not query and not query_file and generate_rows == 0: + generate_rows = 1000 + generate_cols = 5 + print("=" * 70) print(f"JDBC Performance Runner") print(f"URL : {args.url}") @@ -242,11 +254,13 @@ def main(): print(f"Jar 1 : {args.jar1} ({args.class1})") if args.jar2: print(f"Jar 2 : {args.jar2} ({args.class2})") - if args.generate_rows > 0: - print(f"Generate Rows: {args.generate_rows}") - print(f"Generate Cols: {args.generate_cols}") - elif args.query: - print(f"Query : {args.query}") + if query: + print(f"Query : {query}") + elif query_file: + print(f"Query File : {query_file}") + elif generate_rows > 0: + print(f"Generate Rows: {generate_rows}") + print(f"Generate Cols: {generate_cols}") print("=" * 70) driver_results = {} @@ -270,9 +284,10 @@ def main(): url=args.url, driver_jar=driver_jar, driver_class=driver_class, - query=args.query, - generate_rows=args.generate_rows, - generate_cols=args.generate_cols, + query=query, + query_file=query_file, + generate_rows=generate_rows, + generate_cols=generate_cols, no_output=True ) if res: @@ -284,7 +299,7 @@ def main(): base_label=base_label, new_label=new_label, diff_label=diff_label, - spec_name=f"Rows: {args.generate_rows}, Cols: {args.generate_cols}" if args.generate_rows > 0 else args.query, + spec_name=query if query else (f"File: {query_file}" if query_file else f"Rows: {generate_rows}, Cols: {generate_cols}"), output_md=args.output_md, filter_metrics=args.filter_metrics ) From 0806ab66430366ed2c9c88b115a86cceea99fde7 Mon Sep 17 00:00:00 2001 From: Sagnik Ghosh Date: Mon, 22 Jun 2026 16:01:59 +0530 Subject: [PATCH 43/82] chore(spanner): cleanup external host reference (#13426) Cleanup references of EXTERNAL_HOST and uptake SPANNER_OMNI from java-spanner --- .../com/google/cloud/spanner/jdbc/JdbcDriver.java | 12 ++++++------ .../google/cloud/spanner/jdbc/JdbcDriverTest.java | 14 +++++++------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/java-spanner-jdbc/src/main/java/com/google/cloud/spanner/jdbc/JdbcDriver.java b/java-spanner-jdbc/src/main/java/com/google/cloud/spanner/jdbc/JdbcDriver.java index 8e8bd0726317..77362b605d02 100644 --- a/java-spanner-jdbc/src/main/java/com/google/cloud/spanner/jdbc/JdbcDriver.java +++ b/java-spanner-jdbc/src/main/java/com/google/cloud/spanner/jdbc/JdbcDriver.java @@ -147,11 +147,11 @@ public class JdbcDriver implements Driver { private static final String JDBC_URL_FORMAT = "jdbc:" + ConnectionOptions.Builder.SPANNER_URI_FORMAT; private static final Pattern URL_PATTERN = Pattern.compile(JDBC_URL_FORMAT); - private static final String JDBC_EXTERNAL_HOST_FORMAT = - "jdbc:" + ConnectionOptions.Builder.EXTERNAL_HOST_FORMAT; + private static final String JDBC_SPANNER_OMNI_FORMAT = + "jdbc:" + ConnectionOptions.Builder.SPANNER_OMNI_FORMAT; @VisibleForTesting - static final Pattern EXTERNAL_HOST_URL_PATTERN = Pattern.compile(JDBC_EXTERNAL_HOST_FORMAT); + static final Pattern SPANNER_OMNI_URL_PATTERN = Pattern.compile(JDBC_SPANNER_OMNI_FORMAT); @InternalApi public static String getClientLibToken() { @@ -222,8 +222,8 @@ public Connection connect(String url, Properties info) throws SQLException { if (url != null && (url.startsWith("jdbc:cloudspanner") || url.startsWith("jdbc:spanner"))) { try { Matcher matcher = URL_PATTERN.matcher(url); - Matcher matcherExternalHost = EXTERNAL_HOST_URL_PATTERN.matcher(url); - if (matcher.matches() || matcherExternalHost.matches()) { + Matcher matcherSpannerOmni = SPANNER_OMNI_URL_PATTERN.matcher(url); + if (matcher.matches() || matcherSpannerOmni.matches()) { // strip 'jdbc:' from the URL, add any extra properties and pass on to the generic // Connection API. Also set the user-agent if we detect that the connection // comes from known framework like Hibernate, and there is no other user-agent set. @@ -320,7 +320,7 @@ static String appendPropertiesToUrl(String url, Properties info) { @Override public boolean acceptsURL(String url) { - return URL_PATTERN.matcher(url).matches() || EXTERNAL_HOST_URL_PATTERN.matcher(url).matches(); + return URL_PATTERN.matcher(url).matches() || SPANNER_OMNI_URL_PATTERN.matcher(url).matches(); } @Override diff --git a/java-spanner-jdbc/src/test/java/com/google/cloud/spanner/jdbc/JdbcDriverTest.java b/java-spanner-jdbc/src/test/java/com/google/cloud/spanner/jdbc/JdbcDriverTest.java index 9ae33fa6f294..3acc194348d7 100644 --- a/java-spanner-jdbc/src/test/java/com/google/cloud/spanner/jdbc/JdbcDriverTest.java +++ b/java-spanner-jdbc/src/test/java/com/google/cloud/spanner/jdbc/JdbcDriverTest.java @@ -16,7 +16,7 @@ package com.google.cloud.spanner.jdbc; -import static com.google.cloud.spanner.jdbc.JdbcDriver.EXTERNAL_HOST_URL_PATTERN; +import static com.google.cloud.spanner.jdbc.JdbcDriver.SPANNER_OMNI_URL_PATTERN; import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; @@ -227,29 +227,29 @@ public void testAcceptsURL() throws SQLException { } @Test - public void testJdbcExternalHostFormat() { + public void testJdbcSpannerOmniFormat() { Matcher matcherWithoutInstance = - EXTERNAL_HOST_URL_PATTERN.matcher("jdbc:cloudspanner://localhost:15000/databases/test-db"); + SPANNER_OMNI_URL_PATTERN.matcher("jdbc:cloudspanner://localhost:15000/databases/test-db"); assertTrue(matcherWithoutInstance.matches()); assertEquals("test-db", matcherWithoutInstance.group("DATABASEGROUP")); Matcher matcherWithProperty = - EXTERNAL_HOST_URL_PATTERN.matcher( + SPANNER_OMNI_URL_PATTERN.matcher( "jdbc:cloudspanner://localhost:15000/instances/default/databases/singers-db?usePlainText=true"); assertTrue(matcherWithProperty.matches()); assertEquals("default", matcherWithProperty.group("INSTANCEGROUP")); assertEquals("singers-db", matcherWithProperty.group("DATABASEGROUP")); Matcher matcherWithoutPort = - EXTERNAL_HOST_URL_PATTERN.matcher( + SPANNER_OMNI_URL_PATTERN.matcher( "jdbc:cloudspanner://localhost/instances/default/databases/test-db"); assertTrue(matcherWithoutPort.matches()); assertEquals("default", matcherWithoutPort.group("INSTANCEGROUP")); assertEquals("test-db", matcherWithoutPort.group("DATABASEGROUP")); Matcher matcherWithProject = - EXTERNAL_HOST_URL_PATTERN.matcher( + SPANNER_OMNI_URL_PATTERN.matcher( "jdbc:cloudspanner://localhost:15000/projects/default/instances/default/databases/singers-db"); assertFalse(matcherWithProject.matches()); Matcher matcherWithoutHost = - EXTERNAL_HOST_URL_PATTERN.matcher( + SPANNER_OMNI_URL_PATTERN.matcher( "jdbc:cloudspanner:/instances/default/databases/singers-db"); assertFalse(matcherWithoutHost.matches()); } From 94315ce3d80eab06295cceabedb70077e65778da Mon Sep 17 00:00:00 2001 From: rahul2393 Date: Mon, 22 Jun 2026 18:41:04 +0530 Subject: [PATCH 44/82] fix(spanner): fail fast when inline-begin DML returns no transaction id (#13536) Sync executeUpdate/executeBatchUpdate and async batchUpdateAsync left transactionIdFuture unresolved when a begin-requesting DML response carried no transaction metadata, so commit blocked on the 60s wait and surfaced DEADLINE_EXCEEDED. Mirror executeUpdateAsync: raise FAILED_PRECONDITION via onError so the future resolves and the transaction retries or propagates. Use getId().isEmpty() consistently and add regression coverage via a mock omit-transaction hook. --- .../cloud/spanner/TransactionRunnerImpl.java | 38 +++++++++++++----- .../spanner/InlineBeginTransactionTest.java | 29 ++++++++++---- .../cloud/spanner/MockSpannerServiceImpl.java | 40 ++++++++++--------- 3 files changed, 70 insertions(+), 37 deletions(-) diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/TransactionRunnerImpl.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/TransactionRunnerImpl.java index 4ffe87104d9b..d6353bfcdb86 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/TransactionRunnerImpl.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/TransactionRunnerImpl.java @@ -49,6 +49,7 @@ import com.google.spanner.v1.MultiplexedSessionPrecommitToken; import com.google.spanner.v1.RequestOptions; import com.google.spanner.v1.ResultSet; +import com.google.spanner.v1.ResultSetMetadata; import com.google.spanner.v1.ResultSetStats; import com.google.spanner.v1.RollbackRequest; import com.google.spanner.v1.Transaction; @@ -742,7 +743,7 @@ options, getPreviousTransactionId()))) @Override public void onTransactionMetadata(Transaction transaction, boolean shouldIncludeId) { Preconditions.checkNotNull(transaction); - if (transaction.getId() != ByteString.EMPTY) { + if (!transaction.getId().isEmpty()) { // A transaction has been returned by a statement that was executed. Set the id of the // transaction on this instance and release the lock to allow other statements to proceed. if ((transactionIdFuture == null || !this.transactionIdFuture.isDone()) @@ -757,6 +758,18 @@ public void onTransactionMetadata(Transaction transaction, boolean shouldInclude } } + private boolean hasNonEmptyTransactionId(ResultSetMetadata metadata) { + return metadata.hasTransaction() && !metadata.getTransaction().getId().isEmpty(); + } + + private void throwIfBeginDidNotReturnTransaction( + TransactionSelector transactionSelector, boolean sawNonEmptyTransactionId) { + if (transactionSelector.hasBegin() && !sawNonEmptyTransactionId) { + throw SpannerExceptionFactory.newSpannerException( + ErrorCode.FAILED_PRECONDITION, NO_TRANSACTION_RETURNED_MSG); + } + } + /** * In read-write transactions, the precommit token with the highest sequence number from this * transaction attempt will be tracked and included in the @@ -980,7 +993,8 @@ private ResultSet internalExecuteUpdate( com.google.spanner.v1.ResultSet resultSet = rpc.executeQuery(builder.build(), getTransactionChannelHint(), isRouteToLeader()); session.markUsed(clock.instant()); - if (resultSet.getMetadata().hasTransaction()) { + boolean sawNonEmptyTransactionId = hasNonEmptyTransactionId(resultSet.getMetadata()); + if (sawNonEmptyTransactionId) { onTransactionMetadata( resultSet.getMetadata().getTransaction(), builder.getTransaction().hasBegin()); } @@ -988,6 +1002,7 @@ private ResultSet internalExecuteUpdate( throw new IllegalArgumentException( "DML response missing stats possibly due to non-DML statement as input"); } + throwIfBeginDidNotReturnTransaction(builder.getTransaction(), sawNonEmptyTransactionId); if (resultSet.hasPrecommitToken()) { onPrecommitToken(resultSet.getPrecommitToken()); } @@ -1037,12 +1052,8 @@ public ApiFuture executeUpdateAsync(Statement statement, UpdateOption... u ErrorCode.INVALID_ARGUMENT, "DML response missing stats possibly due to non-DML statement as input"); } - if (builder.getTransaction().hasBegin() - && !(input.getMetadata().hasTransaction() - && input.getMetadata().getTransaction().getId() != ByteString.EMPTY)) { - throw SpannerExceptionFactory.newSpannerException( - ErrorCode.FAILED_PRECONDITION, NO_TRANSACTION_RETURNED_MSG); - } + throwIfBeginDidNotReturnTransaction( + builder.getTransaction(), hasNonEmptyTransactionId(input.getMetadata())); // For standard DML, using the exact row count. return input.getStats().getRowCountExact(); }, @@ -1116,9 +1127,11 @@ public long[] batchUpdate(Iterable statements, UpdateOption... update rpc.executeBatchDml(builder.build(), getTransactionChannelHint()); session.markUsed(clock.instant()); long[] results = new long[response.getResultSetsCount()]; + boolean sawNonEmptyTransactionId = false; for (int i = 0; i < response.getResultSetsCount(); ++i) { results[i] = response.getResultSets(i).getStats().getRowCountExact(); - if (response.getResultSets(i).getMetadata().hasTransaction()) { + if (hasNonEmptyTransactionId(response.getResultSets(i).getMetadata())) { + sawNonEmptyTransactionId = true; onTransactionMetadata( response.getResultSets(i).getMetadata().getTransaction(), builder.getTransaction().hasBegin()); @@ -1139,6 +1152,7 @@ public long[] batchUpdate(Iterable statements, UpdateOption... update response.getStatus().getMessage(), results); } + throwIfBeginDidNotReturnTransaction(builder.getTransaction(), sawNonEmptyTransactionId); return results; } catch (Throwable e) { throw onError( @@ -1187,9 +1201,11 @@ public ApiFuture batchUpdateAsync( response, batchDmlResponse -> { long[] results = new long[batchDmlResponse.getResultSetsCount()]; + boolean sawNonEmptyTransactionId = false; for (int i = 0; i < batchDmlResponse.getResultSetsCount(); ++i) { results[i] = batchDmlResponse.getResultSets(i).getStats().getRowCountExact(); - if (batchDmlResponse.getResultSets(i).getMetadata().hasTransaction()) { + if (hasNonEmptyTransactionId(batchDmlResponse.getResultSets(i).getMetadata())) { + sawNonEmptyTransactionId = true; onTransactionMetadata( batchDmlResponse.getResultSets(i).getMetadata().getTransaction(), builder.getTransaction().hasBegin()); @@ -1208,6 +1224,8 @@ public ApiFuture batchUpdateAsync( batchDmlResponse.getStatus().getMessage(), results); } + throwIfBeginDidNotReturnTransaction( + builder.getTransaction(), sawNonEmptyTransactionId); return results; }, MoreExecutors.directExecutor()); diff --git a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/InlineBeginTransactionTest.java b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/InlineBeginTransactionTest.java index db1b39ac0a0b..5161821c96ac 100644 --- a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/InlineBeginTransactionTest.java +++ b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/InlineBeginTransactionTest.java @@ -1677,6 +1677,10 @@ static void runWithIgnoreInlineBegin(Runnable runnable) { } } + static void useShortTransactionWait(TransactionContext transaction) { + ((TransactionContextImpl) transaction).waitForTransactionTimeoutMillis = 1L; + } + @Test public void testQueryWithInlineBeginDidNotReturnTransaction() { runWithIgnoreInlineBegin( @@ -1738,7 +1742,11 @@ public void testUpdateWithInlineBeginDidNotReturnTransaction() { () -> client .readWriteTransaction() - .run(transaction -> transaction.executeUpdate(UPDATE_STATEMENT))); + .run( + transaction -> { + useShortTransactionWait(transaction); + return transaction.executeUpdate(UPDATE_STATEMENT); + })); assertEquals(ErrorCode.FAILED_PRECONDITION, e.getErrorCode()); assertThat(e.getMessage()).contains(AbstractReadContext.NO_TRANSACTION_RETURNED_MSG); assertThat(countRequests(BeginTransactionRequest.class)).isEqualTo(0); @@ -1760,6 +1768,7 @@ public void testBatchUpdateWithInlineBeginDidNotReturnTransaction() { .readWriteTransaction() .run( transaction -> { + useShortTransactionWait(transaction); transaction.batchUpdate( Collections.singletonList(UPDATE_STATEMENT)); return null; @@ -1831,9 +1840,11 @@ public void testUpdateAsyncWithInlineBeginDidNotReturnTransaction() { client .readWriteTransaction() .run( - transaction -> - SpannerApiFutures.get( - transaction.executeUpdateAsync(UPDATE_STATEMENT)))); + transaction -> { + useShortTransactionWait(transaction); + return SpannerApiFutures.get( + transaction.executeUpdateAsync(UPDATE_STATEMENT)); + })); assertEquals(ErrorCode.FAILED_PRECONDITION, e.getErrorCode()); assertThat(e.getMessage()).contains(AbstractReadContext.NO_TRANSACTION_RETURNED_MSG); assertThat(countRequests(BeginTransactionRequest.class)).isEqualTo(0); @@ -1854,10 +1865,12 @@ public void testBatchUpdateAsyncWithInlineBeginDidNotReturnTransaction() { client .readWriteTransaction() .run( - transaction -> - SpannerApiFutures.get( - transaction.batchUpdateAsync( - Collections.singletonList(UPDATE_STATEMENT))))); + transaction -> { + useShortTransactionWait(transaction); + return SpannerApiFutures.get( + transaction.batchUpdateAsync( + Collections.singletonList(UPDATE_STATEMENT))); + })); assertEquals(ErrorCode.FAILED_PRECONDITION, e.getErrorCode()); assertThat(e.getMessage()).contains(AbstractReadContext.NO_TRANSACTION_RETURNED_MSG); assertThat(countRequests(BeginTransactionRequest.class)).isEqualTo(0); diff --git a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/MockSpannerServiceImpl.java b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/MockSpannerServiceImpl.java index a34cabe1bbcb..cc44ba2f3f81 100644 --- a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/MockSpannerServiceImpl.java +++ b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/MockSpannerServiceImpl.java @@ -813,6 +813,10 @@ public void setIgnoreInlineBeginRequest(boolean ignore) { ignoreInlineBeginRequest.set(ignore); } + private boolean shouldOmitInlineBeginTransaction(TransactionSelector transactionSelector) { + return ignoreInlineBeginRequest.get() && transactionSelector.hasBegin(); + } + public void freeze() { synchronized (lock) { freezeLock = new CountDownLatch(1); @@ -1100,12 +1104,12 @@ public void executeSql(ExecuteSqlRequest request, StreamObserver resp .setRowCountExact(result.getUpdateCount()) .build()) .setMetadata( - ResultSetMetadata.newBuilder() - .setTransaction( - ignoreInlineBeginRequest.get() - ? Transaction.getDefaultInstance() - : Transaction.newBuilder().setId(transactionId).build()) - .build()); + shouldOmitInlineBeginTransaction(request.getTransaction()) + ? ResultSetMetadata.getDefaultInstance() + : ResultSetMetadata.newBuilder() + .setTransaction( + Transaction.newBuilder().setId(transactionId).build()) + .build()); if (session.getMultiplexed() && isReadWriteTransaction(transactionId)) { resultSetBuilder.setPrecommitToken(getResultSetPrecommitToken(transactionId)); } @@ -1131,13 +1135,12 @@ private void returnResultSet( Session session) { ResultSetMetadata metadata = resultSet.getMetadata(); if (transactionId != null) { - metadata = - metadata.toBuilder() - .setTransaction( - ignoreInlineBeginRequest.get() - ? Transaction.getDefaultInstance() - : Transaction.newBuilder().setId(transactionId).build()) - .build(); + if (!shouldOmitInlineBeginTransaction(transactionSelector)) { + metadata = + metadata.toBuilder() + .setTransaction(Transaction.newBuilder().setId(transactionId).build()) + .build(); + } } else if (transactionSelector.hasBegin() || transactionSelector.hasSingleUse()) { Transaction transaction = getTemporaryTransactionOrNull(transactionSelector); metadata = metadata.toBuilder().setTransaction(transaction).build(); @@ -1234,12 +1237,11 @@ public void executeBatchDml( ResultSet.newBuilder() .setStats(ResultSetStats.newBuilder().setRowCountExact(updateCount).build()) .setMetadata( - ResultSetMetadata.newBuilder() - .setTransaction( - ignoreInlineBeginRequest.get() - ? Transaction.getDefaultInstance() - : Transaction.newBuilder().setId(transactionId).build()) - .build()) + shouldOmitInlineBeginTransaction(request.getTransaction()) + ? ResultSetMetadata.getDefaultInstance() + : ResultSetMetadata.newBuilder() + .setTransaction(Transaction.newBuilder().setId(transactionId).build()) + .build()) .build()); } builder.setStatus(status); From 75eae36e672da9411c1d8d4ae7d04d127913ef7e Mon Sep 17 00:00:00 2001 From: Igor Bernstein Date: Mon, 22 Jun 2026 12:27:58 -0400 Subject: [PATCH 45/82] chore(bigtable): correct sparse-bootstrap dep discovery and install ordering (#13523) The previous script missed cross-project SNAPSHOT deps and could fail on clean-m2 runs. Fixes: - Walk regular edges (not just parent + BOM imports) so monorepo SNAPSHOTs like api-common-java are discovered. - Version-aware edge following: skip edges whose declared version doesn't match the local pom, so pinned released BOM imports (e.g. google-cloud-pubsub-bom:1.140.0 from google-cloud-jar-parent) aren't mistakenly followed to the local SNAPSHOT, which created cycles and phantom projects in the install list. - Verify the local pom's coord+version matches before accepting the shortcut; the Maven default '../pom.xml' otherwise resolves to the unrelated repo-root pom. - Enqueue each project's aggregator /pom.xml when any pom under it is visited, since 'cd && mvn' forces Maven to load the aggregator regardless of -pl. - Flush the install batch on every top-level project change so interleaved topo orders (A1, A2, B1, A3 when A3 depends on B1) install in dep order instead of being collapsed per project. - Match pom filenames by exact basename so test resources like src/test/resources/gax-example-pom.xml aren't picked up as modules. --- java-bigtable/scripts/sparse-bootstrap.py | 134 +++++++++++++++++----- 1 file changed, 106 insertions(+), 28 deletions(-) diff --git a/java-bigtable/scripts/sparse-bootstrap.py b/java-bigtable/scripts/sparse-bootstrap.py index 75a642d8f68b..571da5b6fe51 100755 --- a/java-bigtable/scripts/sparse-bootstrap.py +++ b/java-bigtable/scripts/sparse-bootstrap.py @@ -2,9 +2,10 @@ """ sparse-bootstrap.py -Given a seed module directory, walks its parent-chain and BOM-import graph, -adds the discovered dependency directories to the sparse checkout, and -installs them into ~/.m2 in dependency order. +Given a seed module directory, walks its parent chain, BOM-import graph, and +regular edges that resolve to other poms in this monorepo, adds +the discovered directories to the sparse checkout, and installs them into +~/.m2 in dependency order. Prerequisites: git clone --sparse git@github.com:googleapis/google-cloud-java.git @@ -46,6 +47,7 @@ class GitBlob: @dataclass(frozen=True) class ParentRef: coord: Coord + version: str relative_path: str # '' means was explicit → fetch from ~/.m2 @@ -68,7 +70,9 @@ def ls_tree_poms() -> list[GitBlob]: results: list[GitBlob] = [] for line in out.splitlines(): meta, path = line.split('\t', 1) - if not path.endswith('pom.xml'): + # Match the basename exactly — endswith('pom.xml') would also accept + # things like src/test/resources/gax-example-pom.xml. + if Path(path).name != 'pom.xml': continue _, _, sha = meta.split() results.append(GitBlob(sha=sha, path=Path(path))) @@ -123,6 +127,11 @@ def get_coordinates(root: ET.Element) -> Coord: return Coord(group_id=g, artifact_id=a) +def get_version(root: ET.Element) -> Optional[str]: + """The pom's own version (or inherited from ).""" + return child_text(root, 'version') or child_text(root, 'parent/version') + + def get_parent(root: ET.Element) -> Optional[ParentRef]: p = root.find(t('parent')) if p is None: @@ -137,21 +146,41 @@ def get_parent(root: ET.Element) -> Optional[ParentRef]: group_id=child_text(p, 'groupId'), artifact_id=child_text(p, 'artifactId'), ), + version=child_text(p, 'version') or '', relative_path=rel, ) -def get_bom_imports(root: ET.Element) -> list[Coord]: - """Coord for every scope=import dependency.""" - results: list[Coord] = [] +def get_bom_imports(root: ET.Element) -> list[tuple[Coord, str]]: + """(Coord, version) for every scope=import dependency.""" + results: list[tuple[Coord, str]] = [] for dep in root.findall( f'.//{t("dependencyManagement")}/{t("dependencies")}/{t("dependency")}' ): if child_text(dep, 'scope') == 'import': g = child_text(dep, 'groupId') a = child_text(dep, 'artifactId') - if g and a: - results.append(Coord(group_id=g, artifact_id=a)) + v = child_text(dep, 'version') + if g and a and v: + results.append((Coord(group_id=g, artifact_id=a), v)) + return results + + +def get_regular_deps(root: ET.Element) -> list[tuple[Coord, Optional[str]]]: + """(Coord, version) for every under . + + version is None when the dep relies on dependencyManagement to supply it. + """ + results: list[tuple[Coord, Optional[str]]] = [] + deps = root.find(t('dependencies')) + if deps is None: + return results + for dep in deps.findall(t('dependency')): + g = child_text(dep, 'groupId') + a = child_text(dep, 'artifactId') + v = child_text(dep, 'version') + if g and a: + results.append((Coord(group_id=g, artifact_id=a), v)) return results @@ -182,6 +211,27 @@ def enqueue(pom_path: Path, required_by: Optional[Path] = None) -> None: needed.add(pom_path) queue.append(pom_path) + def resolve_local(coord: Coord, declared_version: Optional[str]) -> Optional[Path]: + """Local pom whose version matches the declared version, or None. + + - No coord match in the monorepo → None. + - declared_version is None (regular dep inheriting from depMgmt) → follow + the local pom optimistically; we'd need full Maven evaluation to know + the resolved version, and in this monorepo unversioned deps virtually + always inherit from a SNAPSHOT BOM. + - Either version contains a Maven property (${…}) → follow optimistically. + - Otherwise the versions must equal. + """ + local = coord_to_pom.get(coord) + if local is None: + return None + if declared_version is None: + return local + local_version = get_version(ET.fromstring(pom_contents[local])) or '' + if '${' in declared_version or '${' in local_version: + return local + return local if local_version == declared_version else None + # Seed: every pom under seed_dir — pre-visited so they won't enter `needed` for path in pom_contents: if path.is_relative_to(seed_dir): @@ -203,17 +253,41 @@ def enqueue(pom_path: Path, required_by: Optional[Path] = None) -> None: if local_parent.name != 'pom.xml': local_parent = local_parent / 'pom.xml' if local_parent in pom_contents: - resolved = local_parent - # fall back to coordinate lookup if relativePath missing or not found locally - if resolved is None and parent.coord in coord_to_pom: - resolved = coord_to_pom[parent.coord] + # Maven only uses the pom at if its coords AND + # version match ; otherwise it falls back to the repo. + # The default ../pom.xml routinely resolves to an unrelated + # repo-root pom. + local_root = ET.fromstring(pom_contents[local_parent]) + if (get_coordinates(local_root) == parent.coord + and (get_version(local_root) or '') == parent.version): + resolved = local_parent + # fall back to coordinate lookup if relativePath missing, not found + # locally, or the local pom didn't match the declared parent + if resolved is None: + resolved = resolve_local(parent.coord, parent.version) if resolved is not None: enqueue(resolved, required_by=pom_path) # Follow BOM imports - for coord in get_bom_imports(root): - if coord in coord_to_pom: - enqueue(coord_to_pom[coord], required_by=pom_path) + for coord, version in get_bom_imports(root): + local = resolve_local(coord, version) + if local is not None: + enqueue(local, required_by=pom_path) + + # Follow regular edges that resolve to another pom in this repo + for coord, version in get_regular_deps(root): + local = resolve_local(coord, version) + if local is not None: + enqueue(local, required_by=pom_path) + + # Operational dep on the project's aggregator pom: we'll `cd ` + # to run mvn, which forces Maven to load /pom.xml regardless + # of -pl, so its parent chain must already be installed. The aggregator + # is often unrelated to the module's own parent chain (e.g. pubsub-bom + # parents to a shared pom, not java-pubsub/pom.xml). + project_root = Path(pom_path.parts[0]) / 'pom.xml' + if project_root != pom_path and project_root in pom_contents: + enqueue(project_root, required_by=pom_path) return needed, dep_edges @@ -244,25 +318,29 @@ def visit(n: Path) -> None: # ── install command generation ───────────────────────────────────────────────── def make_install_commands(sorted_poms: list[Path]) -> list[InstallCommand]: - """One mvn install command per top-level project, in dependency order.""" - by_project: dict[str, list[str]] = defaultdict(list) - project_order: list[str] = [] - seen_projects: set[str] = set() + """One mvn install per consecutive run of poms in the same top-level project. + + We can't collapse all poms under a project into a single mvn invocation: + the topo order may interleave projects (e.g. A1, A2, B1, A3) when A3 has + a cross-project dep on B1. Flushing on project change preserves the order. + """ + groups: list[tuple[str, list[str]]] = [] # [(project, [module_rel_paths])] for pom_path in sorted_poms: project = pom_path.parts[0] - if project not in seen_projects: - seen_projects.add(project) - project_order.append(project) - pom_dir = pom_path.parent rel = str(pom_dir.relative_to(project)) if pom_dir != Path(project) else '.' - if rel not in by_project[project]: - by_project[project].append(rel) + + if groups and groups[-1][0] == project: + modules = groups[-1][1] + if rel not in modules: + modules.append(rel) + else: + groups.append((project, [rel])) commands: list[InstallCommand] = [] - for project in project_order: - sub_modules = [m for m in by_project[project] if m != '.'] + for project, modules in groups: + sub_modules = [m for m in modules if m != '.'] cmd = ['mvn', 'install', '-T', '1C', '-DskipTests', '-P', 'quick-build'] if sub_modules: for m in sub_modules: From 1df72d260aaf2df7249238133768983e0b2add92 Mon Sep 17 00:00:00 2001 From: Jin Seop Kim Date: Mon, 22 Jun 2026 15:23:25 -0400 Subject: [PATCH 46/82] chore: migrate java-shared-config to monorepo (#13481) b/519273974 --------- Co-authored-by: Alice <65933803+alicejli@users.noreply.github.com> Co-authored-by: Mridula <66699525+mpeddada1@users.noreply.github.com> Co-authored-by: Mend Renovate Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Min Zhu Co-authored-by: Tomo Suzuki Co-authored-by: Owl Bot Co-authored-by: Burke Davison <40617934+burkedavison@users.noreply.github.com> Co-authored-by: Diego Marquez Co-authored-by: gcf-owl-bot[bot] <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Lawrence Qiu Co-authored-by: Mike Eltsufin Co-authored-by: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Co-authored-by: ldetmer <1771267+ldetmer@users.noreply.github.com> Co-authored-by: Blake Li --- .github/CODEOWNERS | 1 + .github/workflows/ci.yaml | 6 +- .github/workflows/java-shared-config-ci.yaml | 156 +++ ...shared-config-downstream-dependencies.yaml | 91 ++ ...hared-config-downstream-maven-plugins.yaml | 164 ++++ .../sdk-platform-java-downstream.yaml | 1 - ..._protobuf_compatibility_check_nightly.yaml | 54 -- .kokoro/build.sh | 5 +- .kokoro/client-library-check-doclet.sh | 150 +++ .kokoro/client-library-check.sh | 191 ++++ .kokoro/common.sh | 5 + ...torage-expected-flattened-dependencies.txt | 86 ++ .kokoro/presubmit/downstream-build.sh | 72 ++ .../presubmit/shared-config-integration.cfg | 39 + generation/apply_versions.sh | 8 +- .../check_non_release_please_versions.sh | 1 + .../util/ClientConfigurationManagerTest.java | 1 + .../v1/StreamingSubscriberConnectionTest.java | 2 + .../.cloudbuild/cloudbuild-test-a.yaml | 36 + .../.cloudbuild/cloudbuild-test-b.yaml | 36 + .../.cloudbuild/cloudbuild-test-c.yaml | 36 + .../.cloudbuild/cloudbuild.yaml | 69 ++ java-shared-config/.cloudbuild/docker-ce.repo | 6 + .../.cloudbuild/google-cloud-sdk.repo | 8 + .../.cloudbuild/graalvm-a.Dockerfile | 49 + java-shared-config/.cloudbuild/graalvm-a.yaml | 29 + .../.cloudbuild/graalvm-b.Dockerfile | 51 + java-shared-config/.cloudbuild/graalvm-b.yaml | 29 + .../.cloudbuild/graalvm-c.Dockerfile | 49 + java-shared-config/.cloudbuild/graalvm-c.yaml | 29 + java-shared-config/.cloudbuild/hashicorp.repo | 13 + java-shared-config/.gitattributes | 2 + java-shared-config/.repo-metadata.json | 11 + java-shared-config/CHANGELOG.md | 915 ++++++++++++++++++ java-shared-config/README.md | 60 ++ .../java-shared-config/java.header | 15 + .../java-shared-config/license-checks.xml | 10 + java-shared-config/java-shared-config/pom.xml | 747 ++++++++++++++ .../native-image-shared-config/pom.xml | 292 ++++++ java-shared-config/pom.xml | 105 ++ java-shared-config/settings.xml | 23 + pom.xml | 1 + .../gapic-generator-java-pom-parent/pom.xml | 3 +- .../sdk-platform-java-config/pom.xml | 4 +- versions.txt | 1 + 45 files changed, 3598 insertions(+), 64 deletions(-) create mode 100644 .github/workflows/java-shared-config-ci.yaml create mode 100644 .github/workflows/java-shared-config-downstream-dependencies.yaml create mode 100644 .github/workflows/java-shared-config-downstream-maven-plugins.yaml delete mode 100644 .github/workflows/sdk-platform-java-downstream_protobuf_compatibility_check_nightly.yaml create mode 100755 .kokoro/client-library-check-doclet.sh create mode 100755 .kokoro/client-library-check.sh create mode 100644 .kokoro/java-storage-expected-flattened-dependencies.txt create mode 100755 .kokoro/presubmit/downstream-build.sh create mode 100644 .kokoro/presubmit/shared-config-integration.cfg create mode 100644 java-shared-config/.cloudbuild/cloudbuild-test-a.yaml create mode 100644 java-shared-config/.cloudbuild/cloudbuild-test-b.yaml create mode 100644 java-shared-config/.cloudbuild/cloudbuild-test-c.yaml create mode 100644 java-shared-config/.cloudbuild/cloudbuild.yaml create mode 100644 java-shared-config/.cloudbuild/docker-ce.repo create mode 100644 java-shared-config/.cloudbuild/google-cloud-sdk.repo create mode 100644 java-shared-config/.cloudbuild/graalvm-a.Dockerfile create mode 100644 java-shared-config/.cloudbuild/graalvm-a.yaml create mode 100644 java-shared-config/.cloudbuild/graalvm-b.Dockerfile create mode 100644 java-shared-config/.cloudbuild/graalvm-b.yaml create mode 100644 java-shared-config/.cloudbuild/graalvm-c.Dockerfile create mode 100644 java-shared-config/.cloudbuild/graalvm-c.yaml create mode 100644 java-shared-config/.cloudbuild/hashicorp.repo create mode 100644 java-shared-config/.gitattributes create mode 100644 java-shared-config/.repo-metadata.json create mode 100644 java-shared-config/CHANGELOG.md create mode 100644 java-shared-config/README.md create mode 100644 java-shared-config/java-shared-config/java.header create mode 100644 java-shared-config/java-shared-config/license-checks.xml create mode 100644 java-shared-config/java-shared-config/pom.xml create mode 100644 java-shared-config/native-image-shared-config/pom.xml create mode 100644 java-shared-config/pom.xml create mode 100644 java-shared-config/settings.xml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 54dccfba735a..e379fc535ffc 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -20,3 +20,4 @@ /java-bigtable/ @googleapis/bigtable-team @googleapis/cloud-sdk-java-team @googleapis/cloud-sdk-librarian-team /java-firestore/ @googleapis/firestore-team @googleapis/cloud-sdk-java-team @googleapis/cloud-sdk-librarian-team /librarian.yaml @googleapis/cloud-sdk-java-team @googleapis/cloud-sdk-librarian-team +/java-shared-config/ @googleapis/cloud-sdk-java-team @googleapis/cloud-sdk-librarian-team diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e50686c059fa..da9d472adaf0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -46,8 +46,8 @@ jobs: workflows: - '.github/workflows/**' src: - - '!(google-auth-library-java|grpc-gcp-java|java-bigquery|java-bigquery-jdbc|java-bigquerystorage|java-bigtable|java-datastore|java-firestore|java-logging|java-logging-logback|java-pubsub|java-spanner|java-storage)/**/*.java' - - '!(google-auth-library-java|grpc-gcp-java|java-bigquery|java-bigquery-jdbc|java-bigquerystorage|java-bigtable|java-datastore|java-firestore|java-logging|java-logging-logback|java-pubsub|java-spanner|java-storage)/**/pom.xml' + - '!(google-auth-library-java|grpc-gcp-java|java-bigquery|java-bigquery-jdbc|java-bigquerystorage|java-bigtable|java-datastore|java-firestore|java-logging|java-logging-logback|java-pubsub|java-shared-config|java-spanner|java-storage)/**/*.java' + - '!(google-auth-library-java|grpc-gcp-java|java-bigquery|java-bigquery-jdbc|java-bigquerystorage|java-bigtable|java-datastore|java-firestore|java-logging|java-logging-logback|java-pubsub|java-shared-config|java-spanner|java-storage)/**/pom.xml' - 'pom.xml' ci: - '.github/workflows/ci.yaml' @@ -219,6 +219,8 @@ jobs: - 'sdk-platform-java/**/*.java' - 'sdk-platform-java/java-shared-dependencies/**/pom.xml' - 'sdk-platform-java/gapic-generator-java-pom-parent/pom.xml' + java-shared-config: + - 'java-shared-config/**' split-units: runs-on: ubuntu-latest needs: changes diff --git a/.github/workflows/java-shared-config-ci.yaml b/.github/workflows/java-shared-config-ci.yaml new file mode 100644 index 000000000000..b480c92ceff5 --- /dev/null +++ b/.github/workflows/java-shared-config-ci.yaml @@ -0,0 +1,156 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.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. +# Github action job to test core java library features on +# downstream client libraries before they are released. +on: + push: + branches: + - main + pull_request: +name: java-shared-config ci +env: + BUILD_SUBDIR: java-shared-config +jobs: + filter: + runs-on: ubuntu-latest + outputs: + library: ${{ steps.filter.outputs.library }} + steps: + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v3 + id: filter + with: + filters: | + library: + - 'java-shared-config/**' + units: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + java: [11, 17, 21] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: ${{matrix.java}} + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: test + units-java8: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + # Building using Java 17 and run the tests with Java 8 runtime + name: "units (8)" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + java-version: 11 + distribution: temurin + - name: "Set jvm system property environment variable for surefire plugin (unit tests)" + # Maven surefire plugin (unit tests) allows us to specify JVM to run the tests. + # https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#jvm + run: echo "SUREFIRE_JVM_OPT=-Djvm=${JAVA_HOME}/bin/java -P !java17" >> $GITHUB_ENV + shell: bash + - uses: actions/setup-java@v4 + with: + java-version: 17 + distribution: temurin + - run: .kokoro/build.sh + env: + JOB_TYPE: test + windows: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: windows-latest + steps: + - name: Support longpaths + run: git config --system core.longpaths true + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 11 + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: test + dependencies: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-latest + strategy: + matrix: + java: [17] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: ${{matrix.java}} + - run: java -version + - run: .kokoro/dependencies.sh + javadoc: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: javadoc + lint: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 11 + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: lint + HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }} + BASE_SHA: ${{ github.event.pull_request.base.sha || github.event.before }} + clirr: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 11 + - run: java -version + - run: .kokoro/build.sh + env: + JOB_TYPE: clirr + BUILD_SUBDIR: java-shared-config diff --git a/.github/workflows/java-shared-config-downstream-dependencies.yaml b/.github/workflows/java-shared-config-downstream-dependencies.yaml new file mode 100644 index 000000000000..923068923ba3 --- /dev/null +++ b/.github/workflows/java-shared-config-downstream-dependencies.yaml @@ -0,0 +1,91 @@ +on: + push: + branches: + - main + pull_request: +name: java-shared-config downstream (dependencies) +env: + BUILD_SUBDIR: java-shared-config +jobs: + filter: + runs-on: ubuntu-latest + outputs: + library: ${{ steps.filter.outputs.library }} + steps: + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v3 + id: filter + with: + filters: | + library: + - 'java-shared-config/**' + dependencies: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + java: [11] + repo: + - java-bigquery + - java-bigquerystorage + - java-spanner + - java-storage + - java-pubsub + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - uses: actions/setup-java@v4 + with: + distribution: zulu + java-version: ${{matrix.java}} + - run: java -version + - run: sudo apt-get update -y + - run: sudo apt-get install libxml2-utils + - name: Install java-shared-dependencies and common dependencies + run: | + .kokoro/build.sh + env: + JOB_TYPE: install + - name: Pre-build dependencies + run: | + LIB_DIR="${{matrix.repo}}" + LIB_NAME="google-cloud-${LIB_DIR#java-}" + TARGET_PATH="${LIB_DIR}/${LIB_NAME}" + # Check if target matches standard structure (e.g. java-bigquery/google-cloud-bigquery) + if [ ! -d "${TARGET_PATH}" ]; then + # Fallback 1: Look for any google-cloud-* directory, excluding samples, retrofit, or BOMs (e.g. java-storage-nio/google-cloud-nio) + ALT_PATH=$(find "${LIB_DIR}" -maxdepth 1 -type d -name "google-cloud-*" ! -name "*-bom" ! -name "*-parent" ! -name "*-deps-bom" ! -name "*-examples" ! -name "*samples" ! -name "*-retrofit" | head -n 1) + if [ -n "${ALT_PATH}" ]; then + TARGET_PATH="${ALT_PATH}" + else + # Fallback 2: Assume single-module project where pom.xml is in the root directory (e.g. java-logging-logback) + TARGET_PATH="${LIB_DIR}" + fi + fi + mvn install -pl ${TARGET_PATH} -am -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V -q + - run: .kokoro/client-library-check.sh ${{matrix.repo}} dependencies + + flatten-plugin-check: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - uses: actions/setup-java@v4 + with: + distribution: zulu + java-version: 11 + - run: java -version + - run: sudo apt-get update -y + - run: sudo apt-get install libxml2-utils + - name: Install java-shared-dependencies and common dependencies + run: | + .kokoro/build.sh + env: + JOB_TYPE: install + - name: Pre-build dependencies + run: mvn install -pl java-storage/google-cloud-storage -am -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V -q + - run: .kokoro/client-library-check.sh java-storage flatten-plugin + env: + EXPECTED_DEPENDENCIES_LIST: java-storage-expected-flattened-dependencies.txt diff --git a/.github/workflows/java-shared-config-downstream-maven-plugins.yaml b/.github/workflows/java-shared-config-downstream-maven-plugins.yaml new file mode 100644 index 000000000000..68428c6b68b1 --- /dev/null +++ b/.github/workflows/java-shared-config-downstream-maven-plugins.yaml @@ -0,0 +1,164 @@ +on: + push: + branches: + - main + pull_request: + +# Keeping this file separate as the dependencies check would use more +# repositories than needed this downstream check for GraalVM native image and +# other Maven plugins. +name: java-shared-config downstream (maven-plugins) +env: + BUILD_SUBDIR: java-shared-config +jobs: + filter: + runs-on: ubuntu-latest + outputs: + library: ${{ steps.filter.outputs.library }} + steps: + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v3 + id: filter + with: + filters: | + library: + - 'java-shared-config/**' + build: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + java: [8, 11] + repo: + - java-bigquery + - java-bigtable + job-type: + - test # maven-surefire-plugin + - clirr # clirr-maven-plugin + - javadoc # maven-javadoc-plugin + - javadoc-with-doclet # test javadoc generation with doclet + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - uses: actions/setup-java@v4 + with: + distribution: zulu + java-version: 11 + - name: Install java-shared-dependencies and common dependencies + run: | + .kokoro/build.sh + env: + JOB_TYPE: install + - name: Pre-build dependencies + run: | + LIB_DIR="${{matrix.repo}}" + LIB_NAME="google-cloud-${LIB_DIR#java-}" + mvn install -pl ${LIB_DIR}/${LIB_NAME} -am -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V -q + - uses: actions/setup-java@v4 + with: + distribution: zulu + java-version: ${{matrix.java}} + - run: java -version + - run: sudo apt-get update -y + - run: sudo apt-get install libxml2-utils + - run: .kokoro/client-library-check.sh ${{matrix.repo}} ${{matrix.job-type}} + lint: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + java: [17, 21] + repo: + - java-bigquery + - java-bigtable + job-type: + - lint # fmt-maven-plugin and google-java-format + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-java@v4 + with: + distribution: zulu + java-version: ${{matrix.java}} + - run: java -version + - run: sudo apt-get update -y + - run: sudo apt-get install libxml2-utils + - name: Install java-shared-dependencies and common dependencies + run: | + .kokoro/build.sh + env: + JOB_TYPE: install + - name: Pre-build dependencies + run: | + LIB_DIR="${{matrix.repo}}" + LIB_NAME="google-cloud-${LIB_DIR#java-}" + TARGET_PATH="${LIB_DIR}/${LIB_NAME}" + # Check if target matches standard structure (e.g. java-bigquery/google-cloud-bigquery) + if [ ! -d "${TARGET_PATH}" ]; then + # Fallback 1: Look for any google-cloud-* directory, excluding samples, retrofit, or BOMs (e.g. java-storage-nio/google-cloud-nio) + ALT_PATH=$(find "${LIB_DIR}" -maxdepth 1 -type d -name "google-cloud-*" ! -name "*-bom" ! -name "*-parent" ! -name "*-deps-bom" ! -name "*-examples" ! -name "*samples" ! -name "*-retrofit" | head -n 1) + if [ -n "${ALT_PATH}" ]; then + TARGET_PATH="${ALT_PATH}" + else + # Fallback 2: Assume single-module project where pom.xml is in the root directory (e.g. java-logging-logback) + TARGET_PATH="${LIB_DIR}" + fi + fi + mvn install -pl ${TARGET_PATH} -am -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V -q + - run: .kokoro/client-library-check.sh ${{matrix.repo}} ${{matrix.job-type}} + javadoc-with-doclet: + needs: filter + if: ${{ needs.filter.outputs.library == 'true' }} + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + repo: + - java-bigtable + - java-bigquery + - java-storage + - java-storage-nio + - java-spanner + - java-spanner-jdbc + - java-pubsub + - java-logging + - java-logging-logback + - java-firestore + - java-datastore + - java-bigquerystorage + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + - run: java -version + - run: sudo apt-get update -y + - run: sudo apt-get install libxml2-utils + - name: Install java-shared-dependencies and common dependencies + run: | + .kokoro/build.sh + env: + JOB_TYPE: install + - name: Pre-build dependencies + run: | + LIB_DIR="${{matrix.repo}}" + LIB_NAME="google-cloud-${LIB_DIR#java-}" + TARGET_PATH="${LIB_DIR}/${LIB_NAME}" + # Check if target matches standard structure (e.g. java-bigquery/google-cloud-bigquery) + if [ ! -d "${TARGET_PATH}" ]; then + # Fallback 1: Look for any google-cloud-* directory, excluding samples, retrofit, or BOMs (e.g. java-storage-nio/google-cloud-nio) + ALT_PATH=$(find "${LIB_DIR}" -maxdepth 1 -type d -name "google-cloud-*" ! -name "*-bom" ! -name "*-parent" ! -name "*-deps-bom" ! -name "*-examples" ! -name "*samples" ! -name "*-retrofit" | head -n 1) + if [ -n "${ALT_PATH}" ]; then + TARGET_PATH="${ALT_PATH}" + else + # Fallback 2: Assume single-module project where pom.xml is in the root directory (e.g. java-logging-logback) + TARGET_PATH="${LIB_DIR}" + fi + fi + mvn install -pl ${TARGET_PATH} -am -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V -q + - run: .kokoro/client-library-check-doclet.sh ${{matrix.repo}} diff --git a/.github/workflows/sdk-platform-java-downstream.yaml b/.github/workflows/sdk-platform-java-downstream.yaml index 1180a801ce25..f865c2224dd8 100644 --- a/.github/workflows/sdk-platform-java-downstream.yaml +++ b/.github/workflows/sdk-platform-java-downstream.yaml @@ -37,7 +37,6 @@ jobs: - java-bigtable - java-firestore - java-pubsub - - java-pubsublite steps: - uses: actions/checkout@v3 - uses: actions/setup-java@v3 diff --git a/.github/workflows/sdk-platform-java-downstream_protobuf_compatibility_check_nightly.yaml b/.github/workflows/sdk-platform-java-downstream_protobuf_compatibility_check_nightly.yaml deleted file mode 100644 index f32fcfdb33a6..000000000000 --- a/.github/workflows/sdk-platform-java-downstream_protobuf_compatibility_check_nightly.yaml +++ /dev/null @@ -1,54 +0,0 @@ -on: - pull_request: - # Runs on PRs targeting main, but will be filtered for Release PRs - branches: - - 'main' - workflow_dispatch: - inputs: - protobuf_runtime_versions: - description: 'Comma separated list of Protobuf-Java versions (i.e. "3.25.x","4.x.y"). - Note: Surround each version in the list with quotes ("")' - required: true - schedule: - - cron: '0 1 * * *' # Nightly at 1am - -# This job intends to test the compatibility of the Protobuf version against repos not in the -# monorepo. As repos are migrated to the monorepo, this job will be obsolete and turned off. -name: sdk-platform-java Downstream Protobuf Compatibility Check Nightly -jobs: - downstream-protobuf-test: - # This job runs if any of the three conditions match: - # 1. PR is raised from Release-Please (PR comes from branch: release-please--branches-main) - # 2. Job is invoked by the nightly job (scheduled event) - # 3. Job is manually invoked via Github UI (workflow_dispatch event) - if: github.head_ref == 'release-please--branches--main' || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' - runs-on: ubuntu-22.04 - strategy: - fail-fast: false - matrix: - repo: - - java-pubsublite - # Default Protobuf-Java versions to use are specified here. Without this, the nightly workflow won't know - # which values to use and would resolve to ''. - protobuf-version: ${{ fromJSON(format('[{0}]', inputs.protobuf_runtime_versions || '"4.35.0"')) }} - steps: - - name: Checkout sdk-platform-java repo - uses: actions/checkout@v4 - - uses: actions/setup-java@v4 - with: - java-version: 8 - distribution: temurin - - run: echo "JAVA8_HOME=${JAVA_HOME}" >> $GITHUB_ENV - # Java Client Libraries are compiled with Java 11 and target Java 8. Java 11 is required because GraalVM - # minimum support is for Java 11. - - uses: actions/setup-java@v4 - with: - java-version: 11 - distribution: temurin - - name: Print Protobuf-Java testing version - run: echo "Testing with Protobuf-Java v${{ matrix.protobuf-version }}" - - name: Perform downstream source compatibility testing - run: REPOS_UNDER_TEST="${{ matrix.repo }}" PROTOBUF_RUNTIME_VERSION="${{ matrix.protobuf-version }}" ./sdk-platform-java/.kokoro/nightly/downstream-protobuf-source-compatibility.sh - - name: Perform downstream binary compatibility testing - run: REPOS_UNDER_TEST="${{ matrix.repo }}" PROTOBUF_RUNTIME_VERSION="${{ matrix.protobuf-version }}" ./sdk-platform-java/.kokoro/nightly/downstream-protobuf-binary-compatibility.sh - diff --git a/.kokoro/build.sh b/.kokoro/build.sh index b439241bbdb6..92e714cb451e 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -212,7 +212,10 @@ case ${JOB_TYPE} in MODULE_FILTER="" - if [ -n "${BASE_SHA}" ] && [ -n "${HEAD_SHA}" ]; then + if [ -n "${BUILD_SUBDIR}" ] && ( [ -z "${BASE_SHA}" ] || [ -z "${HEAD_SHA}" ] ); then + echo "BASE_SHA or HEAD_SHA is empty, but BUILD_SUBDIR is set. Running full lint check on ${BUILD_SUBDIR}." + MODULE_FILTER="" + elif [ -n "${BASE_SHA}" ] && [ -n "${HEAD_SHA}" ]; then # Optimize the build by identifying ONLY the Maven modules that contain changed Java source files. # Format those specific modules instead of the entire codebase, reducing format check time. # The --relative flag is when building in the submodule as only files modified in the module diff --git a/.kokoro/client-library-check-doclet.sh b/.kokoro/client-library-check-doclet.sh new file mode 100755 index 000000000000..3c774c62582f --- /dev/null +++ b/.kokoro/client-library-check-doclet.sh @@ -0,0 +1,150 @@ +#!/bin/bash +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.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. + +# Presubmit to ensure the dependencies of the Google Libraries BOM, with the modification of change +# in the PR, pick up the highest versions among transitive dependencies. +# https://maven.apache.org/enforcer/enforcer-rules/requireUpperBoundDeps.html + +set -eo pipefail +# Display commands being run. +set -x + +function get_current_version_from_versions_txt() { + versions=$1 + key=$2 + version=$(grep "$key:" "${versions}" | cut -d: -f3) # 3rd field is current + echo "${version}" +} + +function get_released_version_from_versions_txt() { + versions=$1 + key=$2 + version=$(grep "$key:" "${versions}" | cut -d: -f2) # 2nd field is release + echo "${version}" +} + +function replace_java_shared_config_version() { + version=$1 + # replace version + xmllint --shell <(cat pom.xml) << EOF + setns x=http://maven.apache.org/POM/4.0.0 + cd .//x:artifactId[text()="google-cloud-shared-config"] + cd ../x:version + set ${version} + save pom.xml +EOF +} + +function replace_java_shared_dependencies_version() { + version=$1 + # replace version + xmllint --shell <(cat pom.xml) << EOF + setns x=http://maven.apache.org/POM/4.0.0 + cd .//x:properties/x:google-cloud-shared-dependencies.version + set ${version} + save pom.xml +EOF +} + +function replace_sdk_platform_java_config_version() { + version=$1 + # replace version in the shared parent POM + xmllint --shell <(cat ../google-cloud-pom-parent/pom.xml) << EOF + setns x=http://maven.apache.org/POM/4.0.0 + cd .//x:artifactId[text()="sdk-platform-java-config"] + cd ../x:version + set ${version} + save ../google-cloud-pom-parent/pom.xml +EOF +} +REPO=$1 +# Get the directory of the build script +scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) +## cd to the parent directory, i.e. the root of the git repo +cd ${scriptDir}/.. + +# Make artifacts available for 'mvn validate' at the bottom +pushd java-shared-config +mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V -q --no-transfer-progress +popd + +# Get version of doclet used to generate Cloud RAD for javadoc testing with the doclet below +rm -rf java-docfx-doclet +git clone https://github.com/googleapis/java-docfx-doclet.git +pushd java-docfx-doclet/third_party/docfx-doclet-143274 +git checkout 1.9.0 +mvn package -Dmaven.test.skip=true -B -V --no-transfer-progress + +# work from the root directory +popd +docletPath=$(realpath "java-docfx-doclet/third_party/docfx-doclet-143274/target/docfx-doclet-1.0-SNAPSHOT-jar-with-dependencies.jar") +echo "This is the doclet path: ${docletPath}" + +# Read the current version of this BOM in the POM. Example version: '0.116.1-alpha-SNAPSHOT' +VERSION_POM=java-shared-config/java-shared-config/pom.xml +# Namespace (xmlns) prevents xmllint from specifying tag names in XPath +JAVA_SHARED_CONFIG_VERSION=`sed -e 's/xmlns=".*"//' ${VERSION_POM} | xmllint --xpath '/project/version/text()' -` + +if [ -z "${JAVA_SHARED_CONFIG_VERSION}" ]; then + echo "Version is not found in ${VERSION_POM}" + exit 1 +fi +echo "Version: ${JAVA_SHARED_CONFIG_VERSION}" + +# Update java-shared-config in sdk-platform-java-config +rm -rf google-cloud-java +# Find the latest tag matching v* and use it +LATEST_TAG=$(git ls-remote --tags https://github.com/googleapis/google-cloud-java.git | grep 'refs/tags/v' | sort -k2,2 -V | tail -n 1 | awk '{print $2}' | sed 's|refs/tags/||') +echo "Cloning google-cloud-java at tag: ${LATEST_TAG}" +git clone "https://github.com/googleapis/google-cloud-java.git" -b "${LATEST_TAG}" --depth=1 +pushd google-cloud-java/sdk-platform-java +SDK_PLATFORM_JAVA_CONFIG_VERSION=$(sed -e 's/xmlns=".*"//' sdk-platform-java-config/pom.xml | xmllint --xpath '/project/version/text()' -) + +pushd sdk-platform-java-config +# Use released version of google-cloud-shared-dependencies to avoid verifying SNAPSHOT changes. +replace_java_shared_config_version "${JAVA_SHARED_CONFIG_VERSION}" +echo "The diff in sdk-platform-java-config:" +git --no-pager diff +echo "--------" +mvn install "-DskipTests=true" "-Dmaven.javadoc.skip=true" "-Dgcloud.download.skip=true" "-Dcheckstyle.skip=true" -B -V -q --no-transfer-progress +popd +popd + +# Check javadoc generation with the doclet +pushd ${REPO} +replace_sdk_platform_java_config_version "${SDK_PLATFORM_JAVA_CONFIG_VERSION}" + +mvn clean -B --no-transfer-progress \ + -P docFX \ + -DdocletPath="${docletPath}" \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -Dorg.slf4j.simpleLogger.showDateTime=true -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS \ + -Dcheckstyle.skip=true \ + -Dflatten.skip=true \ + -Danimal.sniffer.skip=true \ + javadoc:aggregate + +RETURN_CODE=$? +if [ "${RETURN_CODE}" == 0 ]; then + echo "Javadocs generated successfully with doclet" +else + echo "Javadoc generation FAILED with doclet" +fi + +popd +git checkout -- ${REPO} + +exit ${RETURN_CODE} diff --git a/.kokoro/client-library-check.sh b/.kokoro/client-library-check.sh new file mode 100755 index 000000000000..0c59a6404efb --- /dev/null +++ b/.kokoro/client-library-check.sh @@ -0,0 +1,191 @@ +#!/bin/bash +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.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. + +# Presubmit to ensure the dependencies of the Google Libraries BOM, with the modification of change +# in the PR, pick up the highest versions among transitive dependencies. +# https://maven.apache.org/enforcer/enforcer-rules/requireUpperBoundDeps.html + +set -eo pipefail +# Display commands being run. +set -x + +function get_current_version_from_versions_txt() { + versions=$1 + key=$2 + version=$(grep "$key:" "${versions}" | cut -d: -f3) # 3rd field is current + echo "${version}" +} + +function get_released_version_from_versions_txt() { + versions=$1 + key=$2 + version=$(grep "$key:" "${versions}" | cut -d: -f2) # 2nd field is release + echo "${version}" +} + +function replace_java_shared_config_version() { + version=$1 + # replace version + xmllint --shell <(cat pom.xml) << EOF + setns x=http://maven.apache.org/POM/4.0.0 + cd .//x:artifactId[text()="google-cloud-shared-config"] + cd ../x:version + set ${version} + save pom.xml +EOF +} + +function replace_java_shared_dependencies_version() { + version=$1 + # replace version + xmllint --shell <(cat pom.xml) << EOF + setns x=http://maven.apache.org/POM/4.0.0 + cd .//x:properties/x:google-cloud-shared-dependencies.version + set ${version} + save pom.xml +EOF +} + +function replace_sdk_platform_java_config_version() { + version=$1 + # replace version in the shared parent POM + xmllint --shell <(cat ../google-cloud-pom-parent/pom.xml) << EOF + setns x=http://maven.apache.org/POM/4.0.0 + cd .//x:artifactId[text()="sdk-platform-java-config"] + cd ../x:version + set ${version} + save ../google-cloud-pom-parent/pom.xml +EOF +} + +if [[ $# -ne 2 ]]; +then + echo "Usage: $0 " + echo "where repo-name is java-XXX and check-type is dependencies, lint, or clirr" + exit 1 +fi +REPO=$1 +LIBRARY_NAME="google-cloud-${REPO#java-}" +# build.sh uses this environment variable +export JOB_TYPE=$2 + +## Get the directory of the build script +scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) +## cd to the parent directory, i.e. the root of the git repo +cd ${scriptDir}/.. + +# Make artifacts available for 'mvn validate' at the bottom +pushd java-shared-config +mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Dgcloud.download.skip=true -B -V -q +popd + +# Read the current version of this BOM in the POM. Example version: '0.116.1-alpha-SNAPSHOT' +VERSION_POM=java-shared-config/java-shared-config/pom.xml +# Namespace (xmlns) prevents xmllint from specifying tag names in XPath +JAVA_SHARED_CONFIG_VERSION=`sed -e 's/xmlns=".*"//' ${VERSION_POM} | xmllint --xpath '/project/version/text()' -` + +if [ -z "${JAVA_SHARED_CONFIG_VERSION}" ]; then + echo "Version is not found in ${VERSION_POM}" + exit 1 +fi +echo "Version: ${JAVA_SHARED_CONFIG_VERSION}" + +# Update java-shared-config in sdk-platform-java-config +rm -rf google-cloud-java +# Find the latest tag matching v* and use it +LATEST_TAG=$(git ls-remote --tags https://github.com/googleapis/google-cloud-java.git | grep 'refs/tags/v' | sort -k2,2 -V | tail -n 1 | awk '{print $2}' | sed 's|refs/tags/||') +echo "Cloning google-cloud-java at tag: ${LATEST_TAG}" +git clone "https://github.com/googleapis/google-cloud-java.git" -b "${LATEST_TAG}" --depth=1 +pushd google-cloud-java/sdk-platform-java +SDK_PLATFORM_JAVA_CONFIG_VERSION=$(sed -e 's/xmlns=".*"//' sdk-platform-java-config/pom.xml | xmllint --xpath '/project/version/text()' -) + +pushd sdk-platform-java-config +# Use released version of google-cloud-shared-dependencies to avoid verifying SNAPSHOT changes. +replace_java_shared_config_version "${JAVA_SHARED_CONFIG_VERSION}" +echo "The diff in sdk-platform-java-config:" +git --no-pager diff +echo "--------" +mvn install "-DskipTests=true" "-Dmaven.javadoc.skip=true" "-Dgcloud.download.skip=true" "-Dcheckstyle.skip=true" -B -V -q +popd + +popd + +# Check this BOM against a few java client libraries +pushd ${REPO} + +# If using an older version of java-storage, continue replacing java-shared-config version otherwise replace +# the version of sdk-platform-java-config. +if [ "${REPO_TAG}" == "v2.9.3" ] && [ "${REPO}" == "java-storage" ]; then + replace_java_shared_config_version "${JAVA_SHARED_CONFIG_VERSION}" +else + replace_sdk_platform_java_config_version "${SDK_PLATFORM_JAVA_CONFIG_VERSION}" +fi + +export BUILD_SUBDIR=${REPO} + +case ${JOB_TYPE} in +dependencies) + ../.kokoro/dependencies.sh + RETURN_CODE=$? + ;; +flatten-plugin) + # This creates .flattened-pom.xml + echo "Before running ../.kokoro/build.sh" + ../.kokoro/build.sh + echo "After running ../.kokoro/build.sh" + pushd ${LIBRARY_NAME} + mvn dependency:list -f .flattened-pom.xml -DincludeScope=runtime -Dsort=true \ + | grep '\[INFO] .*:.*:.*:.*:.*' |awk '{print $2}' > .actual-flattened-dependencies-list.txt + echo "Diff from the expected file (${EXPECTED_DEPENDENCIES_LIST}):" + diff "${scriptDir}/${EXPECTED_DEPENDENCIES_LIST}" .actual-flattened-dependencies-list.txt + RETURN_CODE=$? + if [ "${RETURN_CODE}" == 0 ]; then + echo "No diff." + else + echo "There was a diff." + fi + popd + ;; +*) + # For clirr and test, run directly in the subdirectory to avoid building monorepo dependencies (like gax) from source. + # This is necessary because some monorepo dependencies (like gax) use GraalVM 25+ which cannot be compiled under Java 8. + if [ "${JOB_TYPE}" == "clirr" ]; then + mvn -B -ntp \ + -Dfmt.skip=true \ + -Denforcer.skip=true \ + -Dcheckstyle.skip=true \ + clirr:check + RETURN_CODE=$? + elif [ "${JOB_TYPE}" == "test" ]; then + mvn test \ + -B -ntp \ + -Pquick-build \ + -Dorg.slf4j.simpleLogger.showDateTime=true \ + -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS \ + -Dmaven.wagon.http.retryHandler.count=5 \ + ${SUREFIRE_JVM_OPT} + RETURN_CODE=$? + else + # For other job types (like javadoc, javadoc-with-doclet), they were previously no-ops in build.sh, so we keep them as no-ops. + RETURN_CODE=0 + fi + ;; +esac + +popd +git checkout -- ${REPO} + +echo "exiting with ${RETURN_CODE}" +exit ${RETURN_CODE} diff --git a/.kokoro/common.sh b/.kokoro/common.sh index 07e97d92bf61..1d1e88a99e7d 100644 --- a/.kokoro/common.sh +++ b/.kokoro/common.sh @@ -37,6 +37,7 @@ excluded_modules=( 'google-auth-library-java/oauth2_http' 'java-storage' 'java-storage-nio' + 'java-shared-config' 'java-firestore' 'java-bigtable' 'java-pubsub' @@ -405,6 +406,8 @@ function install_modules() { -Dorg.slf4j.simpleLogger.showDateTime=true \ -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS \ -DskipTests=true \ + -Dmaven.javadoc.skip=true \ + -Dgcloud.download.skip=true \ -T 1C else printf "Installing modules:\n%s\n" "$1" @@ -472,6 +475,8 @@ function install_modules() { -Dorg.slf4j.simpleLogger.showDateTime=true \ -Dorg.slf4j.simpleLogger.dateTimeFormat=HH:mm:ss:SSS \ -DskipTests=true \ + -Dmaven.javadoc.skip=true \ + -Dgcloud.download.skip=true \ -T 1C fi } diff --git a/.kokoro/java-storage-expected-flattened-dependencies.txt b/.kokoro/java-storage-expected-flattened-dependencies.txt new file mode 100644 index 000000000000..3e63ad9f51af --- /dev/null +++ b/.kokoro/java-storage-expected-flattened-dependencies.txt @@ -0,0 +1,86 @@ +com.fasterxml.jackson.core:jackson-annotations:jar:2.18.3:compile +com.fasterxml.jackson.core:jackson-core:jar:2.18.3:compile +com.fasterxml.jackson.core:jackson-databind:jar:2.18.3:compile +com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.18.3:compile +com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.18.3:compile +com.fasterxml.woodstox:woodstox-core:jar:7.0.0:compile +com.google.android:annotations:jar:4.1.1.4:runtime +com.google.api-client:google-api-client:jar:2.7.2:compile +com.google.api.grpc:gapic-google-cloud-storage-v2:jar:2.70.0-SNAPSHOT:compile +com.google.api.grpc:grpc-google-cloud-storage-v2:jar:2.70.0-SNAPSHOT:compile +com.google.api.grpc:proto-google-cloud-monitoring-v3:jar:3.52.0:compile +com.google.api.grpc:proto-google-cloud-storage-v2:jar:2.70.0-SNAPSHOT:compile +com.google.api.grpc:proto-google-common-protos:jar:2.73.0-SNAPSHOT:compile +com.google.api.grpc:proto-google-iam-v1:jar:1.68.0-SNAPSHOT:compile +com.google.api:api-common:jar:2.65.0-SNAPSHOT:compile +com.google.api:gax-grpc:jar:2.82.0-SNAPSHOT:compile +com.google.api:gax-httpjson:jar:2.82.0-SNAPSHOT:compile +com.google.api:gax:jar:2.82.0-SNAPSHOT:compile +com.google.apis:google-api-services-storage:jar:v1-rev20260204-2.0.0:compile +com.google.auth:google-auth-library-credentials:jar:1.49.0-SNAPSHOT:compile +com.google.auth:google-auth-library-oauth2-http:jar:1.49.0-SNAPSHOT:compile +com.google.auto.value:auto-value-annotations:jar:1.11.0:compile +com.google.cloud.opentelemetry:detector-resources-support:jar:0.33.0:runtime +com.google.cloud.opentelemetry:exporter-metrics:jar:0.33.0:compile +com.google.cloud.opentelemetry:shared-resourcemapping:jar:0.33.0:runtime +com.google.cloud:google-cloud-core-grpc:jar:2.72.0-SNAPSHOT:compile +com.google.cloud:google-cloud-core-http:jar:2.72.0-SNAPSHOT:compile +com.google.cloud:google-cloud-core:jar:2.72.0-SNAPSHOT:compile +com.google.cloud:google-cloud-monitoring:jar:3.52.0:compile +com.google.code.findbugs:jsr305:jar:3.0.2:compile +com.google.code.gson:gson:jar:2.13.2:compile +com.google.errorprone:error_prone_annotations:jar:2.48.0:compile +com.google.guava:failureaccess:jar:1.0.3:compile +com.google.guava:guava:jar:33.5.0-jre:compile +com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile +com.google.http-client:google-http-client-apache-v2:jar:2.1.0:compile +com.google.http-client:google-http-client-appengine:jar:2.1.0:compile +com.google.http-client:google-http-client-gson:jar:2.1.0:compile +com.google.http-client:google-http-client-jackson2:jar:2.1.0:compile +com.google.http-client:google-http-client:jar:2.1.0:compile +com.google.j2objc:j2objc-annotations:jar:3.1:compile +com.google.oauth-client:google-oauth-client:jar:1.39.0:compile +com.google.protobuf:protobuf-java-util:jar:4.33.2:compile +com.google.protobuf:protobuf-java:jar:4.33.2:compile +com.google.re2j:re2j:jar:1.8:runtime +commons-codec:commons-codec:jar:1.18.0:compile +io.grpc:grpc-alts:jar:1.81.0:compile +io.grpc:grpc-api:jar:1.81.0:compile +io.grpc:grpc-auth:jar:1.81.0:compile +io.grpc:grpc-context:jar:1.81.0:compile +io.grpc:grpc-core:jar:1.81.0:compile +io.grpc:grpc-googleapis:jar:1.81.0:runtime +io.grpc:grpc-grpclb:jar:1.81.0:compile +io.grpc:grpc-inprocess:jar:1.81.0:compile +io.grpc:grpc-netty-shaded:jar:1.81.0:runtime +io.grpc:grpc-opentelemetry:jar:1.81.0:compile +io.grpc:grpc-protobuf-lite:jar:1.81.0:runtime +io.grpc:grpc-protobuf:jar:1.81.0:compile +io.grpc:grpc-rls:jar:1.81.0:runtime +io.grpc:grpc-services:jar:1.81.0:runtime +io.grpc:grpc-stub:jar:1.81.0:compile +io.grpc:grpc-util:jar:1.81.0:runtime +io.grpc:grpc-xds:jar:1.81.0:runtime +io.opencensus:opencensus-api:jar:0.31.1:compile +io.opencensus:opencensus-contrib-http-util:jar:0.31.1:compile +io.opentelemetry.contrib:opentelemetry-gcp-resources:jar:1.37.0-alpha:compile +io.opentelemetry.semconv:opentelemetry-semconv:jar:1.29.0-alpha:compile +io.opentelemetry:opentelemetry-api:jar:1.62.0:compile +io.opentelemetry:opentelemetry-common:jar:1.62.0:compile +io.opentelemetry:opentelemetry-context:jar:1.62.0:compile +io.opentelemetry:opentelemetry-sdk-common:jar:1.62.0:compile +io.opentelemetry:opentelemetry-sdk-extension-autoconfigure-spi:jar:1.62.0:compile +io.opentelemetry:opentelemetry-sdk-logs:jar:1.62.0:compile +io.opentelemetry:opentelemetry-sdk-metrics:jar:1.62.0:compile +io.opentelemetry:opentelemetry-sdk-trace:jar:1.62.0:compile +io.opentelemetry:opentelemetry-sdk:jar:1.62.0:compile +io.perfmark:perfmark-api:jar:0.27.0:runtime +org.apache.httpcomponents:httpclient:jar:4.5.14:compile +org.apache.httpcomponents:httpcore:jar:4.4.16:compile +org.checkerframework:checker-qual:jar:3.49.0:compile +org.codehaus.mojo:animal-sniffer-annotations:jar:1.27:compile +org.codehaus.woodstox:stax2-api:jar:4.2.2:compile +org.conscrypt:conscrypt-openjdk-uber:jar:2.5.2:compile +org.jspecify:jspecify:jar:1.0.0:compile +org.slf4j:slf4j-api:jar:2.0.16:compile +org.threeten:threetenbp:jar:1.7.0:compile diff --git a/.kokoro/presubmit/downstream-build.sh b/.kokoro/presubmit/downstream-build.sh new file mode 100755 index 000000000000..aa6781b1ffee --- /dev/null +++ b/.kokoro/presubmit/downstream-build.sh @@ -0,0 +1,72 @@ +#!/bin/bash +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.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. + +set -eo pipefail +set -x + +function modify_shared_config() { + xmllint --shell pom.xml <.*<\/version>|$V<\/version>|;}" >> "$SED_SCRIPT_FILE" done echo "Running sed command. It may take few minutes." -find . -maxdepth 3 -name pom.xml |sort --dictionary-order |xargs sed -i.bak $SED_OPTIONS +find . -maxdepth 3 -name pom.xml |sort --dictionary-order |xargs sed -i.bak -f "$SED_SCRIPT_FILE" find . -maxdepth 3 -name pom.xml.bak |xargs rm + diff --git a/generation/check_non_release_please_versions.sh b/generation/check_non_release_please_versions.sh index 65d035f4a6f0..3e142f5629cb 100755 --- a/generation/check_non_release_please_versions.sh +++ b/generation/check_non_release_please_versions.sh @@ -25,6 +25,7 @@ for pomFile in $(find . -mindepth 2 -name pom.xml | sort ); do [[ "${pomFile}" =~ .*java-pubsub.* ]] || \ [[ "${pomFile}" =~ .*java-bigtable.* ]] || \ [[ "${pomFile}" =~ .*java-firestore.* ]] || \ + [[ "${pomFile}" =~ .*java-shared-config.* ]] || \ [[ "${pomFile}" =~ .*java-vertexai.* ]] || \ [[ "${pomFile}" =~ .*java-compute.* ]] || \ [[ "${pomFile}" =~ .*.github*. ]]; then diff --git a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/util/ClientConfigurationManagerTest.java b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/util/ClientConfigurationManagerTest.java index 5bb0c0c26d69..421e442831b8 100644 --- a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/util/ClientConfigurationManagerTest.java +++ b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/util/ClientConfigurationManagerTest.java @@ -359,6 +359,7 @@ public void onChange(SessionClientConfiguration newValue) { } } }); + threadB.setDaemon(true); threadB.start(); // Wait for Thread B to acquire the alien lock diff --git a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java index 6979963a5d30..0d6c65665c6d 100644 --- a/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java +++ b/java-pubsub/google-cloud-pubsub/src/test/java/com/google/cloud/pubsub/v1/StreamingSubscriberConnectionTest.java @@ -101,6 +101,7 @@ public class StreamingSubscriberConnectionTest { @Before public void setUp() { systemExecutor = new FakeScheduledExecutorService(); + executor = new FakeScheduledExecutorService(); clock = systemExecutor.getClock(); mockSubscriberStub = mock(SubscriberStub.class, RETURNS_DEEP_STUBS); } @@ -108,6 +109,7 @@ public void setUp() { @After public void tearDown() { systemExecutor.shutdown(); + executor.shutdown(); } @Test diff --git a/java-shared-config/.cloudbuild/cloudbuild-test-a.yaml b/java-shared-config/.cloudbuild/cloudbuild-test-a.yaml new file mode 100644 index 000000000000..becc62785bd6 --- /dev/null +++ b/java-shared-config/.cloudbuild/cloudbuild-test-a.yaml @@ -0,0 +1,36 @@ +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.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. + +timeout: 7200s # 2 hours +substitutions: + _JAVA_SHARED_CONFIG_VERSION: '1.17.1-SNAPSHOT' # {x-version-update:google-cloud-shared-config:current} + +steps: + # GraalVM A build + - name: gcr.io/cloud-builders/docker + args: ["build", "-t", "us-docker.pkg.dev/java-graalvm-ci-prod/graalvm-integration-testing/graalvm_a:${_JAVA_SHARED_CONFIG_VERSION}", "--file", "graalvm-a.Dockerfile", "."] + dir: java-shared-config/.cloudbuild + id: graalvm-a-build + waitFor: ["-"] + - name: gcr.io/gcp-runtimes/structure_test + args: + ["-i", "us-docker.pkg.dev/java-graalvm-ci-prod/graalvm-integration-testing/graalvm_a:${_JAVA_SHARED_CONFIG_VERSION}", "--config", "java-shared-config/.cloudbuild/graalvm-a.yaml", "-v"] + waitFor: ["graalvm-a-build"] + - name: us-docker.pkg.dev/java-graalvm-ci-prod/graalvm-integration-testing/graalvm_a:${_JAVA_SHARED_CONFIG_VERSION} + entrypoint: bash + args: [ './.kokoro/presubmit/downstream-build.sh' ] + waitFor: [ "graalvm-a-build" ] + +options: + logging: CLOUD_LOGGING_ONLY diff --git a/java-shared-config/.cloudbuild/cloudbuild-test-b.yaml b/java-shared-config/.cloudbuild/cloudbuild-test-b.yaml new file mode 100644 index 000000000000..a63abd0e162b --- /dev/null +++ b/java-shared-config/.cloudbuild/cloudbuild-test-b.yaml @@ -0,0 +1,36 @@ +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.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. + +timeout: 7200s # 2 hours +substitutions: + _JAVA_SHARED_CONFIG_VERSION: '1.17.1-SNAPSHOT' # {x-version-update:google-cloud-shared-config:current} + +steps: + # GraalVM B build + - name: gcr.io/cloud-builders/docker + args: ["build", "-t", "us-docker.pkg.dev/java-graalvm-ci-prod/graalvm-integration-testing/graalvm_b:${_JAVA_SHARED_CONFIG_VERSION}", "--file", "graalvm-b.Dockerfile", "."] + dir: java-shared-config/.cloudbuild + id: graalvm-b-build + waitFor: ["-"] + - name: gcr.io/gcp-runtimes/structure_test + args: + ["-i", "us-docker.pkg.dev/java-graalvm-ci-prod/graalvm-integration-testing/graalvm_b:${_JAVA_SHARED_CONFIG_VERSION}", "--config", "java-shared-config/.cloudbuild/graalvm-b.yaml", "-v"] + waitFor: ["graalvm-b-build"] + - name: us-docker.pkg.dev/java-graalvm-ci-prod/graalvm-integration-testing/graalvm_b:${_JAVA_SHARED_CONFIG_VERSION} + entrypoint: bash + args: [ './.kokoro/presubmit/downstream-build.sh' ] + waitFor: [ "graalvm-b-build" ] + +options: + logging: CLOUD_LOGGING_ONLY \ No newline at end of file diff --git a/java-shared-config/.cloudbuild/cloudbuild-test-c.yaml b/java-shared-config/.cloudbuild/cloudbuild-test-c.yaml new file mode 100644 index 000000000000..467bb300ee58 --- /dev/null +++ b/java-shared-config/.cloudbuild/cloudbuild-test-c.yaml @@ -0,0 +1,36 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.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. + +timeout: 7200s # 2 hours +substitutions: + _JAVA_SHARED_CONFIG_VERSION: '1.17.1-SNAPSHOT' # {x-version-update:google-cloud-shared-config:current} + +steps: + # GraalVM C build + - name: gcr.io/cloud-builders/docker + args: ["build", "-t", "us-docker.pkg.dev/java-graalvm-ci-prod/graalvm-integration-testing/graalvm_c:${_JAVA_SHARED_CONFIG_VERSION}", "--file", "graalvm-c.Dockerfile", "."] + dir: java-shared-config/.cloudbuild + id: graalvm-c-build + waitFor: ["-"] + - name: gcr.io/gcp-runtimes/structure_test + args: + ["-i", "us-docker.pkg.dev/java-graalvm-ci-prod/graalvm-integration-testing/graalvm_c:${_JAVA_SHARED_CONFIG_VERSION}", "--config", "java-shared-config/.cloudbuild/graalvm-c.yaml", "-v"] + waitFor: ["graalvm-c-build"] + - name: us-docker.pkg.dev/java-graalvm-ci-prod/graalvm-integration-testing/graalvm_c:${_JAVA_SHARED_CONFIG_VERSION} + entrypoint: bash + args: [ './.kokoro/presubmit/downstream-build.sh' ] + waitFor: [ "graalvm-c-build" ] + +options: + logging: CLOUD_LOGGING_ONLY \ No newline at end of file diff --git a/java-shared-config/.cloudbuild/cloudbuild.yaml b/java-shared-config/.cloudbuild/cloudbuild.yaml new file mode 100644 index 000000000000..c448f1aca279 --- /dev/null +++ b/java-shared-config/.cloudbuild/cloudbuild.yaml @@ -0,0 +1,69 @@ +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.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. + +timeout: 7200s # 2 hours +substitutions: + _JAVA_SHARED_CONFIG_VERSION: '1.17.1-SNAPSHOT' # {x-version-update:google-cloud-shared-config:current} + _IMAGE_REPOSITORY: us-docker.pkg.dev/java-graalvm-ci-prod/graalvm-integration-testing + _COMMIT_HASH_TAG: infrastructure-public-image-${SHORT_SHA} +steps: + # GraalVM A build + - name: gcr.io/cloud-builders/docker + args: ["build", + "-t", "${_IMAGE_REPOSITORY}/graalvm_a:${_JAVA_SHARED_CONFIG_VERSION}", + "-t", "${_IMAGE_REPOSITORY}/graalvm_a:${_COMMIT_HASH_TAG}", + "--file", "graalvm-a.Dockerfile", "."] + dir: java-shared-config/.cloudbuild + id: graalvm-a-build + waitFor: ["-"] + - name: gcr.io/gcp-runtimes/structure_test + args: + ["-i", "${_IMAGE_REPOSITORY}/graalvm_a:${_JAVA_SHARED_CONFIG_VERSION}", "--config", "java-shared-config/.cloudbuild/graalvm-a.yaml", "-v"] + waitFor: ["graalvm-a-build"] + + # GraalVM B build + - name: gcr.io/cloud-builders/docker + args: [ "build", "-t", "${_IMAGE_REPOSITORY}/graalvm_b:${_JAVA_SHARED_CONFIG_VERSION}", + "-t", "${_IMAGE_REPOSITORY}/graalvm_b:${_COMMIT_HASH_TAG}", + "--file", "graalvm-b.Dockerfile", "." ] + dir: java-shared-config/.cloudbuild + id: graalvm-b-build + waitFor: [ "-" ] + - name: gcr.io/gcp-runtimes/structure_test + args: + [ "-i", "${_IMAGE_REPOSITORY}/graalvm_b:${_JAVA_SHARED_CONFIG_VERSION}", "--config", "java-shared-config/.cloudbuild/graalvm-b.yaml", "-v" ] + waitFor: [ "graalvm-b-build" ] + + # GraalVM C build + - name: gcr.io/cloud-builders/docker + args: [ "build", "-t", "${_IMAGE_REPOSITORY}/graalvm_c:${_JAVA_SHARED_CONFIG_VERSION}", + "-t", "${_IMAGE_REPOSITORY}/graalvm_c:${_COMMIT_HASH_TAG}", + "--file", "graalvm-c.Dockerfile", "." ] + dir: java-shared-config/.cloudbuild + id: graalvm-c-build + waitFor: [ "-" ] + - name: gcr.io/gcp-runtimes/structure_test + args: + [ "-i", "${_IMAGE_REPOSITORY}/graalvm_c:${_JAVA_SHARED_CONFIG_VERSION}", "--config", "java-shared-config/.cloudbuild/graalvm-c.yaml", "-v" ] + waitFor: [ "graalvm-c-build" ] +options: + logging: CLOUD_LOGGING_ONLY + +images: + - ${_IMAGE_REPOSITORY}/graalvm_a:${_JAVA_SHARED_CONFIG_VERSION} + - ${_IMAGE_REPOSITORY}/graalvm_b:${_JAVA_SHARED_CONFIG_VERSION} + - ${_IMAGE_REPOSITORY}/graalvm_c:${_JAVA_SHARED_CONFIG_VERSION} + - ${_IMAGE_REPOSITORY}/graalvm_a:${_COMMIT_HASH_TAG} + - ${_IMAGE_REPOSITORY}/graalvm_b:${_COMMIT_HASH_TAG} + - ${_IMAGE_REPOSITORY}/graalvm_c:${_COMMIT_HASH_TAG} diff --git a/java-shared-config/.cloudbuild/docker-ce.repo b/java-shared-config/.cloudbuild/docker-ce.repo new file mode 100644 index 000000000000..4ca9a24a6468 --- /dev/null +++ b/java-shared-config/.cloudbuild/docker-ce.repo @@ -0,0 +1,6 @@ +[docker-ce-stable] +name=Docker CE Stable - $basearch +baseurl=https://download.docker.com/linux/rhel/$releasever/$basearch/stable +enabled=1 +gpgcheck=1 +gpgkey=https://download.docker.com/linux/rhel/gpg \ No newline at end of file diff --git a/java-shared-config/.cloudbuild/google-cloud-sdk.repo b/java-shared-config/.cloudbuild/google-cloud-sdk.repo new file mode 100644 index 000000000000..8c654dc3177c --- /dev/null +++ b/java-shared-config/.cloudbuild/google-cloud-sdk.repo @@ -0,0 +1,8 @@ +[google-cloud-sdk] +name=Google Cloud SDK +baseurl=https://packages.cloud.google.com/yum/repos/cloud-sdk-el7-x86_64 +enabled=1 +gpgcheck=1 +repo_gpgcheck=0 +gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg + https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg diff --git a/java-shared-config/.cloudbuild/graalvm-a.Dockerfile b/java-shared-config/.cloudbuild/graalvm-a.Dockerfile new file mode 100644 index 000000000000..dd2c160b520b --- /dev/null +++ b/java-shared-config/.cloudbuild/graalvm-a.Dockerfile @@ -0,0 +1,49 @@ +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.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. + +FROM ghcr.io/graalvm/graalvm-community:21.0.2-ol9-20240116 + +# use microdnf, see https://github.com/graalvm/container/issues/10 +RUN microdnf update -y oraclelinux-release-el9 && \ + microdnf install -y wget unzip git && \ + # Install maven + wget -q https://archive.apache.org/dist/maven/maven-3/3.9.4/binaries/apache-maven-3.9.4-bin.zip -O /tmp/maven.zip && \ + unzip /tmp/maven.zip -d /tmp/maven && \ + mv /tmp/maven/apache-maven-3.9.4 /usr/local/lib/maven && \ + rm /tmp/maven.zip && \ + ln -s $JAVA_HOME/lib $JAVA_HOME/conf + +ENV PATH $PATH:/usr/local/lib/maven/bin + +# Install gcloud SDK +COPY google-cloud-sdk.repo /etc/yum.repos.d/google-cloud-sdk.repo +RUN microdnf install -y google-cloud-sdk + +# Adding the package path to local +ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin + +# Install docker +# See also https://docs.docker.com/engine/install/rhel/#set-up-the-repository +COPY docker-ce.repo /etc/yum.repos.d/docker-ce.repo +RUN microdnf install -y docker-ce docker-ce-cli + +# Install terraform +# See also https://www.hashicorp.com/official-packaging-guide +COPY hashicorp.repo /etc/yum.repos.d/hashicorp.repo +RUN microdnf -y install terraform + +# Install jq +RUN microdnf -y install jq + +WORKDIR /workspace diff --git a/java-shared-config/.cloudbuild/graalvm-a.yaml b/java-shared-config/.cloudbuild/graalvm-a.yaml new file mode 100644 index 000000000000..50f8dc14c6be --- /dev/null +++ b/java-shared-config/.cloudbuild/graalvm-a.yaml @@ -0,0 +1,29 @@ +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.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. + +schemaVersion: 1.0.0 +commandTests: + - name: "version" + command: ["java", "-version"] + # java -version outputs to stderr... + expectedError: ["openjdk version \"21.0.2\"", "GraalVM CE 21.0.2"] + - name: "maven" + command: ["mvn", "-version"] + expectedOutput: ["Apache Maven 3.9.4"] + - name: "gcloud" + command: ["gcloud", "version"] + expectedOutput: ["Google Cloud SDK"] + - name: "docker" + command: ["docker", "--version"] + expectedOutput: ["Docker version *"] diff --git a/java-shared-config/.cloudbuild/graalvm-b.Dockerfile b/java-shared-config/.cloudbuild/graalvm-b.Dockerfile new file mode 100644 index 000000000000..ba39d3d27c5e --- /dev/null +++ b/java-shared-config/.cloudbuild/graalvm-b.Dockerfile @@ -0,0 +1,51 @@ +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.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. + +FROM ghcr.io/graalvm/graalvm-community:25.0.0-ol9-20250916 + +# native-image comes out of the box +RUN native-image --version + +RUN microdnf update -y oraclelinux-release-el9 && \ + microdnf install -y wget unzip git && \ + # Install maven + wget -q https://archive.apache.org/dist/maven/maven-3/3.9.4/binaries/apache-maven-3.9.4-bin.zip -O /tmp/maven.zip && \ + unzip /tmp/maven.zip -d /tmp/maven && \ + mv /tmp/maven/apache-maven-3.9.4 /usr/local/lib/maven && \ + rm /tmp/maven.zip && \ + ln -s $JAVA_HOME/lib $JAVA_HOME/conf + +ENV PATH $PATH:/usr/local/lib/maven/bin + +# Install gcloud SDK +COPY google-cloud-sdk.repo /etc/yum.repos.d/google-cloud-sdk.repo +RUN microdnf install -y google-cloud-sdk + +# Adding the package path to local +ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin + +# Install docker +# See also https://docs.docker.com/engine/install/rhel/#set-up-the-repository +COPY docker-ce.repo /etc/yum.repos.d/docker-ce.repo +RUN microdnf install -y docker-ce docker-ce-cli + +# Install terraform +# See also https://www.hashicorp.com/official-packaging-guide +COPY hashicorp.repo /etc/yum.repos.d/hashicorp.repo +RUN microdnf -y install terraform + +# Install jq +RUN microdnf -y install jq + +WORKDIR /workspace diff --git a/java-shared-config/.cloudbuild/graalvm-b.yaml b/java-shared-config/.cloudbuild/graalvm-b.yaml new file mode 100644 index 000000000000..32be9f4d7a0b --- /dev/null +++ b/java-shared-config/.cloudbuild/graalvm-b.yaml @@ -0,0 +1,29 @@ +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.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. + +schemaVersion: 1.0.0 +commandTests: + - name: "version" + command: ["java", "-version"] + # java -version outputs to stderr... + expectedError: ["openjdk version \"25\"", "GraalVM CE 25"] + - name: "maven" + command: ["mvn", "-version"] + expectedOutput: ["Apache Maven 3.9.4"] + - name: "gcloud" + command: ["gcloud", "version"] + expectedOutput: ["Google Cloud SDK"] + - name: "docker" + command: ["docker", "--version"] + expectedOutput: ["Docker version *"] diff --git a/java-shared-config/.cloudbuild/graalvm-c.Dockerfile b/java-shared-config/.cloudbuild/graalvm-c.Dockerfile new file mode 100644 index 000000000000..11686b3c4948 --- /dev/null +++ b/java-shared-config/.cloudbuild/graalvm-c.Dockerfile @@ -0,0 +1,49 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.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. + +FROM ghcr.io/graalvm/graalvm-community:17.0.9-ol9-20231024 + +# use microdnf, see https://github.com/graalvm/container/issues/10 +RUN microdnf update -y oraclelinux-release-el9 && \ + microdnf install -y wget unzip git && \ + # Install maven + wget -q https://archive.apache.org/dist/maven/maven-3/3.9.4/binaries/apache-maven-3.9.4-bin.zip -O /tmp/maven.zip && \ + unzip /tmp/maven.zip -d /tmp/maven && \ + mv /tmp/maven/apache-maven-3.9.4 /usr/local/lib/maven && \ + rm /tmp/maven.zip && \ + ln -s $JAVA_HOME/lib $JAVA_HOME/conf + +ENV PATH $PATH:/usr/local/lib/maven/bin + +# Install gcloud SDK +COPY google-cloud-sdk.repo /etc/yum.repos.d/google-cloud-sdk.repo +RUN microdnf install -y google-cloud-sdk + +# Adding the package path to local +ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin + +# Install docker +# See also https://docs.docker.com/engine/install/rhel/#set-up-the-repository +COPY docker-ce.repo /etc/yum.repos.d/docker-ce.repo +RUN microdnf install -y docker-ce docker-ce-cli + +# Install terraform +# See also https://www.hashicorp.com/official-packaging-guide +COPY hashicorp.repo /etc/yum.repos.d/hashicorp.repo +RUN microdnf -y install terraform + +# Install jq +RUN microdnf -y install jq + +WORKDIR /workspace diff --git a/java-shared-config/.cloudbuild/graalvm-c.yaml b/java-shared-config/.cloudbuild/graalvm-c.yaml new file mode 100644 index 000000000000..b2081c0f16e8 --- /dev/null +++ b/java-shared-config/.cloudbuild/graalvm-c.yaml @@ -0,0 +1,29 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.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. + +schemaVersion: 1.0.0 +commandTests: + - name: "version" + command: ["java", "-version"] + # java -version outputs to stderr... + expectedError: ["openjdk version \"17.0.9\"", "GraalVM CE 17.0.9"] + - name: "maven" + command: ["mvn", "-version"] + expectedOutput: ["Apache Maven 3.9.4"] + - name: "gcloud" + command: ["gcloud", "version"] + expectedOutput: ["Google Cloud SDK"] + - name: "docker" + command: ["docker", "--version"] + expectedOutput: ["Docker version *"] diff --git a/java-shared-config/.cloudbuild/hashicorp.repo b/java-shared-config/.cloudbuild/hashicorp.repo new file mode 100644 index 000000000000..390e8ff4262d --- /dev/null +++ b/java-shared-config/.cloudbuild/hashicorp.repo @@ -0,0 +1,13 @@ +[hashicorp] +name=Hashicorp Stable - $basearch +baseurl=https://rpm.releases.hashicorp.com/RHEL/9/$basearch/stable +enabled=1 +gpgcheck=1 +gpgkey=https://rpm.releases.hashicorp.com/gpg + +[hashicorp-test] +name=Hashicorp Test - $basearch +baseurl=https://rpm.releases.hashicorp.com/RHEL/9/$basearch/test +enabled=0 +gpgcheck=1 +gpgkey=https://rpm.releases.hashicorp.com/gpg \ No newline at end of file diff --git a/java-shared-config/.gitattributes b/java-shared-config/.gitattributes new file mode 100644 index 000000000000..3c1b9d4384f2 --- /dev/null +++ b/java-shared-config/.gitattributes @@ -0,0 +1,2 @@ +# to change language of repo from Shell to Java +*.sh linguist-language=Java diff --git a/java-shared-config/.repo-metadata.json b/java-shared-config/.repo-metadata.json new file mode 100644 index 000000000000..d5bf6915ea9c --- /dev/null +++ b/java-shared-config/.repo-metadata.json @@ -0,0 +1,11 @@ +{ + "api_shortname": "google-cloud-shared-config", + "name_pretty": "Google Cloud Shared Build Configs", + "release_level": "preview", + "client_documentation": "https://n/a", + "language": "java", + "repo": "googleapis/google-cloud-java", + "repo_short": "java-shared-config", + "distribution_name": "com.google.cloud:google-cloud-shared-config", + "library_type": "OTHER" +} diff --git a/java-shared-config/CHANGELOG.md b/java-shared-config/CHANGELOG.md new file mode 100644 index 000000000000..a33c6a06cc6c --- /dev/null +++ b/java-shared-config/CHANGELOG.md @@ -0,0 +1,915 @@ +# Changelog + +## [1.17.0](https://github.com/googleapis/java-shared-config/compare/v1.16.1...v1.17.0) (2025-10-10) + + +### Features + +* Upgrade GraalVM image B to 25 ([#1037](https://github.com/googleapis/java-shared-config/issues/1037)) ([fde1cf4](https://github.com/googleapis/java-shared-config/commit/fde1cf446b245dafcbeea4ce58e00ec2e0880c58)) + + +### Dependencies + +* Update dependency org.graalvm.sdk:graal-sdk to v25 ([#1034](https://github.com/googleapis/java-shared-config/issues/1034)) ([e260c95](https://github.com/googleapis/java-shared-config/commit/e260c95a122d9667e54376a3342a2ba83996a48c)) +* Update dependency org.graalvm.sdk:nativeimage to v24.2.2 ([#1029](https://github.com/googleapis/java-shared-config/issues/1029)) ([4a2f59c](https://github.com/googleapis/java-shared-config/commit/4a2f59c491f9731d371c23e9cd2a89b7ec4b3e0b)) +* Update dependency org.graalvm.sdk:nativeimage to v25 ([#1035](https://github.com/googleapis/java-shared-config/issues/1035)) ([1182a88](https://github.com/googleapis/java-shared-config/commit/1182a8879158075aa58dc22cfa5da28d1cdf8858)) + +## [1.16.1](https://github.com/googleapis/java-shared-config/compare/v1.16.0...v1.16.1) (2025-06-06) + + +### Dependencies + +* Latest maven-deploy-plugin 3.1.4 ([#1026](https://github.com/googleapis/java-shared-config/issues/1026)) ([6f83f0b](https://github.com/googleapis/java-shared-config/commit/6f83f0bab04c01f577e42d2b8076f4d557675a57)) + +## [1.16.0](https://github.com/googleapis/java-shared-config/compare/v1.15.4...v1.16.0) (2025-05-27) + + +### Features + +* Update GraalVM image B to GraalVM for JDK 24 ([#1024](https://github.com/googleapis/java-shared-config/issues/1024)) ([9ef9d8b](https://github.com/googleapis/java-shared-config/commit/9ef9d8bc0abedc59d9337cb5f3426bcadfaeb4a3)) + + +### Dependencies + +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.6 ([#1004](https://github.com/googleapis/java-shared-config/issues/1004)) ([f123860](https://github.com/googleapis/java-shared-config/commit/f123860c0919c542d34f4b96e54e3378b0b5b433)) +* Update dependency org.graalvm.sdk:graal-sdk to v24.2.1 ([#1021](https://github.com/googleapis/java-shared-config/issues/1021)) ([28a41c7](https://github.com/googleapis/java-shared-config/commit/28a41c787a00514d7515e7f7f9242769cbb450b5)) + +## [1.15.4](https://github.com/googleapis/java-shared-config/compare/v1.15.3...v1.15.4) (2025-04-15) + + +### Bug Fixes + +* Use recommended variable expansion syntax ([#1016](https://github.com/googleapis/java-shared-config/issues/1016)) ([6ff6dc4](https://github.com/googleapis/java-shared-config/commit/6ff6dc48b8d92604164da7c68e268476b5a16578)) + +## [1.15.3](https://github.com/googleapis/java-shared-config/compare/v1.15.2...v1.15.3) (2025-04-15) + + +### Bug Fixes + +* Reintroduce support for GraalVM 17 ([75879e3](https://github.com/googleapis/java-shared-config/commit/75879e39eae3f119a40524d6ac8d22af8b8407d5)) + +## [1.15.2](https://github.com/googleapis/java-shared-config/compare/v1.15.1...v1.15.2) (2025-04-15) + + +### Bug Fixes + +* Reintroduce support for GraalVM 17 ([#1010](https://github.com/googleapis/java-shared-config/issues/1010)) ([1906261](https://github.com/googleapis/java-shared-config/commit/19062614fd71a78c9cb88a7ff6f33b196ebba660)) + + +### Dependencies + +* Update dependency org.graalvm.sdk:graal-sdk to v24.2.0 ([#1005](https://github.com/googleapis/java-shared-config/issues/1005)) ([8186e31](https://github.com/googleapis/java-shared-config/commit/8186e31129eaa35257fd07cd23e8af4f1fc7742e)) + +## [1.15.1](https://github.com/googleapis/java-shared-config/compare/v1.15.0...v1.15.1) (2025-03-26) + + +### Dependencies + +* Update google-java-format to the latest ([aa78b13](https://github.com/googleapis/java-shared-config/commit/aa78b13e765259d70c20e8a50bde92b3ab33a8a1)) + +## [1.15.0](https://github.com/googleapis/java-shared-config/compare/v1.14.4...v1.15.0) (2025-03-04) + + +### Features + +* Google-java-format version as a property ([#997](https://github.com/googleapis/java-shared-config/issues/997)) ([6838220](https://github.com/googleapis/java-shared-config/commit/6838220bee2c8041f860274dc985aa99f01be51a)) + +## [1.14.4](https://github.com/googleapis/java-shared-config/compare/v1.14.3...v1.14.4) (2025-02-24) + + +### Dependencies + +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.5 ([#979](https://github.com/googleapis/java-shared-config/issues/979)) ([06c8547](https://github.com/googleapis/java-shared-config/commit/06c854718c39e658cdead0584cfb1cc698143ffd)) + +## [1.14.3](https://github.com/googleapis/java-shared-config/compare/v1.14.2...v1.14.3) (2025-02-18) + + +### Bug Fixes + +* Introducing "flatten" profile to use the plugin ([#984](https://github.com/googleapis/java-shared-config/issues/984)) ([436aa7c](https://github.com/googleapis/java-shared-config/commit/436aa7c9e9914a830e3172ae0ee93131bb641e07)) + +## [1.14.2](https://github.com/googleapis/java-shared-config/compare/v1.14.1...v1.14.2) (2025-02-05) + + +### Bug Fixes + +* Declare Maven plugin versions ([#980](https://github.com/googleapis/java-shared-config/issues/980)) ([3975f66](https://github.com/googleapis/java-shared-config/commit/3975f662d6150064af03a5f1b473b9eea849d906)) + +## [1.14.1](https://github.com/googleapis/java-shared-config/compare/v1.14.0...v1.14.1) (2025-02-04) + + +### Bug Fixes + +* Animalsniffer to a profile ([#975](https://github.com/googleapis/java-shared-config/issues/975)) ([83fe0f3](https://github.com/googleapis/java-shared-config/commit/83fe0f3e61afa0b85193ec36a7a5e7d7cdd2230e)) + + +### Dependencies + +* Update dependency com.puppycrawl.tools:checkstyle to v10.21.2 ([#972](https://github.com/googleapis/java-shared-config/issues/972)) ([8d7c796](https://github.com/googleapis/java-shared-config/commit/8d7c7967660637ec4c4c7823b435bba1b80a0ebb)) +* Update dependency org.graalvm.sdk:graal-sdk to v24.1.2 ([#968](https://github.com/googleapis/java-shared-config/issues/968)) ([d2d5736](https://github.com/googleapis/java-shared-config/commit/d2d57366de4962ca5bde212f36ed5c829412ad79)) +* Update dependency org.graalvm.sdk:nativeimage to v24.1.2 ([#969](https://github.com/googleapis/java-shared-config/issues/969)) ([c8cf518](https://github.com/googleapis/java-shared-config/commit/c8cf518ffe2bc604242964583b3c2fd50c536300)) + +## [1.14.0](https://github.com/googleapis/java-shared-config/compare/v1.13.0...v1.14.0) (2025-01-24) + + +### Features + +* Update GraalVM image B to GraalVM for JDK 23 ([79c31bc](https://github.com/googleapis/java-shared-config/commit/79c31bcfb0ae4767eaa8ea5045b20729d9cb3fb8)) + +## [1.13.0](https://github.com/googleapis/java-shared-config/compare/v1.12.3...v1.13.0) (2025-01-07) + + +### Features + +* Ability to avoid CLIRR dependency resolution ([#959](https://github.com/googleapis/java-shared-config/issues/959)) ([50198dd](https://github.com/googleapis/java-shared-config/commit/50198dd2f809752f1e483650a134f4439840f7c7)) + + +### Dependencies + +* Declare Maven clean and install plugins versions ([#960](https://github.com/googleapis/java-shared-config/issues/960)) ([22c5fa5](https://github.com/googleapis/java-shared-config/commit/22c5fa5740d4a077121d33bfeb556949fcb4a7e6)) + +## [1.12.3](https://github.com/googleapis/java-shared-config/compare/v1.12.2...v1.12.3) (2025-01-06) + + +### Dependencies + +* Update dependency com.google.cloud.artifactregistry:artifactregistry-maven-wagon to v2.2.4 ([#945](https://github.com/googleapis/java-shared-config/issues/945)) ([279bff2](https://github.com/googleapis/java-shared-config/commit/279bff267c8e1ce899a0c00cee72b3cd44c85f91)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.21.1 ([#953](https://github.com/googleapis/java-shared-config/issues/953)) ([10c198d](https://github.com/googleapis/java-shared-config/commit/10c198dc1c0976a29997569bbd2add64564c0579)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.11.4 ([#954](https://github.com/googleapis/java-shared-config/issues/954)) ([c4e0159](https://github.com/googleapis/java-shared-config/commit/c4e0159d4bf7cf2d561b8bda9ef335c59966bec8)) + +## [1.12.2](https://github.com/googleapis/java-shared-config/compare/v1.12.1...v1.12.2) (2024-12-10) + + +### Bug Fixes + +* Fixed the profile for Artifact Registry deployment ([#950](https://github.com/googleapis/java-shared-config/issues/950)) ([8a496d3](https://github.com/googleapis/java-shared-config/commit/8a496d3c4efafee21c07ebca0836657882e76b2e)) + +## [1.12.1](https://github.com/googleapis/java-shared-config/compare/v1.12.0...v1.12.1) (2024-12-09) + + +### Dependencies + +* Update dependency com.puppycrawl.tools:checkstyle to v10.20.2 ([#938](https://github.com/googleapis/java-shared-config/issues/938)) ([d5c3385](https://github.com/googleapis/java-shared-config/commit/d5c3385396815bcd57f5717b5e2db22185cf223c)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.4 ([#939](https://github.com/googleapis/java-shared-config/issues/939)) ([1c5920c](https://github.com/googleapis/java-shared-config/commit/1c5920c3cdca5163b4290ec85b3c1d804377e3e1)) + +## [1.12.0](https://github.com/googleapis/java-shared-config/compare/v1.11.3...v1.12.0) (2024-11-13) + + +### Features + +* Maven profile for Airlock ([#928](https://github.com/googleapis/java-shared-config/issues/928)) ([10da584](https://github.com/googleapis/java-shared-config/commit/10da5843f6c3fa50c3fff4a4fd01326a1cc68158)) +* Publish graalvm images to new java-graalvm-ci-prod project ([#922](https://github.com/googleapis/java-shared-config/issues/922)) ([69ccd0f](https://github.com/googleapis/java-shared-config/commit/69ccd0f0dce6d4b3b01ac067000007292d7fff95)) + + +### Dependencies + +* Update actions/checkout digest to 11bd719 ([#919](https://github.com/googleapis/java-shared-config/issues/919)) ([eb0ae86](https://github.com/googleapis/java-shared-config/commit/eb0ae8622b330045efd76cf6d14f0a9b79071fd7)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.20.1 ([#932](https://github.com/googleapis/java-shared-config/issues/932)) ([ba72db5](https://github.com/googleapis/java-shared-config/commit/ba72db54f809e8a1dbed4f70736328e3f6bf06ee)) +* Update dependency org.graalvm.sdk:graal-sdk to v24.1.1 ([#923](https://github.com/googleapis/java-shared-config/issues/923)) ([b22170a](https://github.com/googleapis/java-shared-config/commit/b22170a8fb8fddfb79927ab98cb2e299152cbc8e)) +* Update dependency org.graalvm.sdk:nativeimage to v24.1.1 ([#924](https://github.com/googleapis/java-shared-config/issues/924)) ([fa97ca8](https://github.com/googleapis/java-shared-config/commit/fa97ca825159016aee31dbac7e9967a572b02a33)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.11.3 ([#917](https://github.com/googleapis/java-shared-config/issues/917)) ([13766a3](https://github.com/googleapis/java-shared-config/commit/13766a3837c647398f2c8fea6a3b089287f07a25)) + +## [1.11.3](https://github.com/googleapis/java-shared-config/compare/v1.11.2...v1.11.3) (2024-10-01) + + +### Dependencies + +* Update dependency com.puppycrawl.tools:checkstyle to v10.18.2 ([#913](https://github.com/googleapis/java-shared-config/issues/913)) ([0144982](https://github.com/googleapis/java-shared-config/commit/014498208f4bb825ae708c1aa07695c554397db2)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.11.1 ([#910](https://github.com/googleapis/java-shared-config/issues/910)) ([29fa51b](https://github.com/googleapis/java-shared-config/commit/29fa51b59e161db6eaded919552c2fd119a8fd5d)) +* Update dependency ubuntu to v24 ([#911](https://github.com/googleapis/java-shared-config/issues/911)) ([e69e1dd](https://github.com/googleapis/java-shared-config/commit/e69e1ddfd512b17da240386e7778f0e08822a159)) + +## [1.11.2](https://github.com/googleapis/java-shared-config/compare/v1.11.1...v1.11.2) (2024-09-19) + + +### Dependencies + +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.3 ([#903](https://github.com/googleapis/java-shared-config/issues/903)) ([86debb4](https://github.com/googleapis/java-shared-config/commit/86debb4ec4d5aebb746c06b793e91884ce8b0287)) +* Update dependency org.graalvm.sdk:graal-sdk to v24.1.0 ([#905](https://github.com/googleapis/java-shared-config/issues/905)) ([8be882d](https://github.com/googleapis/java-shared-config/commit/8be882de14af7a3bdb8d7f51c18fd66795035f80)) +* Update dependency org.graalvm.sdk:nativeimage to v24.1.0 ([#906](https://github.com/googleapis/java-shared-config/issues/906)) ([9a48630](https://github.com/googleapis/java-shared-config/commit/9a486305ecb77d83ecb1d089e8272108af32d77e)) + +## [1.11.1](https://github.com/googleapis/java-shared-config/compare/v1.11.0...v1.11.1) (2024-09-03) + + +### Dependencies + +* Update dependency com.puppycrawl.tools:checkstyle to v10.18.1 ([#899](https://github.com/googleapis/java-shared-config/issues/899)) ([47317ef](https://github.com/googleapis/java-shared-config/commit/47317efcc5db0beee90ae20adfd85d51f8c838e7)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.11.0 ([#882](https://github.com/googleapis/java-shared-config/issues/882)) ([893967e](https://github.com/googleapis/java-shared-config/commit/893967e34347c14c1abcf778893e3b2fe790c215)) + +## [1.11.0](https://github.com/googleapis/java-shared-config/compare/v1.10.0...v1.11.0) (2024-08-16) + + +### Features + +* Update test image to ol9 ([#877](https://github.com/googleapis/java-shared-config/issues/877)) ([0dd80f0](https://github.com/googleapis/java-shared-config/commit/0dd80f007e75afffb28aa7daefd179007bf38068)) + + +### Dependencies + +* Update com.google.auto.value:auto-value-annotations to 1.11.0 ([#886](https://github.com/googleapis/java-shared-config/issues/886)) ([97cceb3](https://github.com/googleapis/java-shared-config/commit/97cceb38ea3b23b959be74dd19371dfd836e5b9d)) + +## [1.10.0](https://github.com/googleapis/java-shared-config/compare/v1.9.1...v1.10.0) (2024-08-13) + + +### Features + +* Update graal-sdk to 24 and graalvm-A to 21.x ([#815](https://github.com/googleapis/java-shared-config/issues/815)) ([3c3c630](https://github.com/googleapis/java-shared-config/commit/3c3c6307ea88dc56f5901a95c295d1b2d53a3559)) + + +### Bug Fixes + +* Address terraform installation failure by updating hashicorp baseurl ([#881](https://github.com/googleapis/java-shared-config/issues/881)) ([0b7164f](https://github.com/googleapis/java-shared-config/commit/0b7164fd15150cb26668d381dbcd89671f1e66e4)) + +## [1.9.1](https://github.com/googleapis/java-shared-config/compare/v1.9.0...v1.9.1) (2024-07-22) + + +### Dependencies + +* Update dependency org.graalvm.sdk:nativeimage to v24.0.2 ([#867](https://github.com/googleapis/java-shared-config/issues/867)) ([3f45150](https://github.com/googleapis/java-shared-config/commit/3f45150ae55eb7dfc0adf56e2ceb5e93ae513bda)) + +## [1.9.0](https://github.com/googleapis/java-shared-config/compare/v1.8.1...v1.9.0) (2024-07-09) + + +### Features + +* Add org.graalvm.sdk:nativeimage dependency ([#852](https://github.com/googleapis/java-shared-config/issues/852)) ([658ebed](https://github.com/googleapis/java-shared-config/commit/658ebed528d2fedca69356979b3201089176da10)) + + +### Dependencies + +* Update dependency org.junit.vintage:junit-vintage-engine to v5.10.3 ([#850](https://github.com/googleapis/java-shared-config/issues/850)) ([43e0d7d](https://github.com/googleapis/java-shared-config/commit/43e0d7dc9f103de1846c117454a7fba3edbee06a)) + +## [1.8.1](https://github.com/googleapis/java-shared-config/compare/v1.8.0...v1.8.1) (2024-06-24) + + +### Dependencies + +* Update actions/checkout digest to 692973e ([#814](https://github.com/googleapis/java-shared-config/issues/814)) ([ebece6b](https://github.com/googleapis/java-shared-config/commit/ebece6b7df6208527450c12368fcc0c6ce07ac67)) + +## [1.8.0](https://github.com/googleapis/java-shared-config/compare/v1.7.7...v1.8.0) (2024-05-29) + + +### Features + +* [java] allow passing libraries_bom_version from env ([#1967](https://github.com/googleapis/java-shared-config/issues/1967)) ([#825](https://github.com/googleapis/java-shared-config/issues/825)) ([07c7cec](https://github.com/googleapis/java-shared-config/commit/07c7cece6ddc793e01b108e96416750fd00c09da)) +* Add `libraries_bom_version` in metadata ([#1956](https://github.com/googleapis/java-shared-config/issues/1956)) ([#805](https://github.com/googleapis/java-shared-config/issues/805)) ([a30f02d](https://github.com/googleapis/java-shared-config/commit/a30f02d78d39ee8a2a2be0fd8401a647871d10ca)) +* Use maven properties to manage dependency versions for native profile ([#824](https://github.com/googleapis/java-shared-config/issues/824)) ([465bb39](https://github.com/googleapis/java-shared-config/commit/465bb399aef9aa8383f11c23f10a97df49c1d057)) + + +### Dependencies + +* Update actions/setup-node action to v4 ([#811](https://github.com/googleapis/java-shared-config/issues/811)) ([fdb1044](https://github.com/googleapis/java-shared-config/commit/fdb1044693c2175782f02a670b550e96f1c15d0b)) +* Update actions/setup-node action to v4 ([#818](https://github.com/googleapis/java-shared-config/issues/818)) ([6222364](https://github.com/googleapis/java-shared-config/commit/6222364b4795661f282593b135d415827700d635)) +* Update actions/setup-node action to v4 ([#819](https://github.com/googleapis/java-shared-config/issues/819)) ([ffb2a7a](https://github.com/googleapis/java-shared-config/commit/ffb2a7a3ff131a8d5af869098fdd69d0cdd87c4d)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.16.0 ([#816](https://github.com/googleapis/java-shared-config/issues/816)) ([efc5585](https://github.com/googleapis/java-shared-config/commit/efc5585ec817e327e0381412c2b2436e3ef0510d)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.17.0 ([#831](https://github.com/googleapis/java-shared-config/issues/831)) ([b0c9e75](https://github.com/googleapis/java-shared-config/commit/b0c9e75e778950401df28adb10998a676d6a24ff)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.2 ([#826](https://github.com/googleapis/java-shared-config/issues/826)) ([881e72f](https://github.com/googleapis/java-shared-config/commit/881e72f7e5dc1304929b89e9ec9d1ba9d4d0bead)) + +## [1.7.7](https://github.com/googleapis/java-shared-config/compare/v1.7.6...v1.7.7) (2024-04-17) + + +### Bug Fixes + +* Graalvm image terraform install ([#806](https://github.com/googleapis/java-shared-config/issues/806)) ([96589ef](https://github.com/googleapis/java-shared-config/commit/96589efd2d4abbda8623c855c92be092293133ce)) + + +### Dependencies + +* Update dependency com.puppycrawl.tools:checkstyle to v10.15.0 ([#792](https://github.com/googleapis/java-shared-config/issues/792)) ([984f434](https://github.com/googleapis/java-shared-config/commit/984f434ddbb9ddbf60d80d14dae6a92d8639596a)) +* Update dependency org.apache.maven.plugins:maven-compiler-plugin to v3.13.0 ([8136d33](https://github.com/googleapis/java-shared-config/commit/8136d33b21a7492bee3673836db035be14240c44)) +* Update dependency org.apache.maven.plugins:maven-gpg-plugin to v3.2.3 ([e485b45](https://github.com/googleapis/java-shared-config/commit/e485b45aff22a0528feabfa9348152c20a146560)) +* Update dependency org.apache.maven.plugins:maven-jar-plugin to v3.4.0 ([567ba39](https://github.com/googleapis/java-shared-config/commit/567ba397399c67fbbad3558358a7d86f30e8b3e7)) +* Update dependency org.apache.maven.plugins:maven-source-plugin to v3.3.1 ([8b625c0](https://github.com/googleapis/java-shared-config/commit/8b625c0c05f90c0df5fa5f2e11da8e8b8067ce85)) +* Update dependency org.jacoco:jacoco-maven-plugin to v0.8.12 ([15870f4](https://github.com/googleapis/java-shared-config/commit/15870f491eba6132ae60239eda1ebec5b307b4e6)) + +## [1.7.6](https://github.com/googleapis/java-shared-config/compare/v1.7.5...v1.7.6) (2024-03-14) + + +### Bug Fixes + +* Revert update dependency `org.codehaus.mojo:flatten-maven-plugin` to `v1.6.0` ([597683f](https://github.com/googleapis/java-shared-config/commit/597683fb59047d92c86b728885433163f736590e)) + +## [1.7.5](https://github.com/googleapis/java-shared-config/compare/v1.7.4...v1.7.5) (2024-03-13) + + +### Dependencies + +* Update actions/github-script action to v7 ([#753](https://github.com/googleapis/java-shared-config/issues/753)) ([863c03e](https://github.com/googleapis/java-shared-config/commit/863c03e21e23e8c1d4ba6f81f55df234fc4d8931)) +* Update actions/setup-java action to v4 ([#782](https://github.com/googleapis/java-shared-config/issues/782)) ([cecc8bb](https://github.com/googleapis/java-shared-config/commit/cecc8bb13076be2e398851bd4b567f594dcc5fbc)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.14.1 ([#780](https://github.com/googleapis/java-shared-config/issues/780)) ([0b787c6](https://github.com/googleapis/java-shared-config/commit/0b787c618486abfcbb171d89d4b7b682200f42e8)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.1 ([#781](https://github.com/googleapis/java-shared-config/issues/781)) ([9dcac17](https://github.com/googleapis/java-shared-config/commit/9dcac17c1824ae33c3adee7cb2d0acb7087d4e3b)) + +## [1.7.4](https://github.com/googleapis/java-shared-config/compare/v1.7.3...v1.7.4) (2024-02-28) + + +### Bug Fixes + +* **deps:** Revert dependency org.codehaus.mojo:flatten-maven-plugin to v1.3.0 ([2c3e38a](https://github.com/googleapis/java-shared-config/commit/2c3e38a531105b8c3ad5f70d3c17e0ef641ed24b)) + +## [1.7.3](https://github.com/googleapis/java-shared-config/compare/v1.7.2...v1.7.3) (2024-02-27) + + +### Dependencies + +* Update dependency org.graalvm.sdk:graal-sdk to v22.3.5 ([#751](https://github.com/googleapis/java-shared-config/issues/751)) ([4d76805](https://github.com/googleapis/java-shared-config/commit/4d7680580f30a26f7e6bb55ed5175948754b25f7)) + +## [1.7.2](https://github.com/googleapis/java-shared-config/compare/v1.7.1...v1.7.2) (2024-02-26) + + +### Bug Fixes + +* Update docFX config ([#744](https://github.com/googleapis/java-shared-config/issues/744)) ([096cd22](https://github.com/googleapis/java-shared-config/commit/096cd225e22d39a0d2a03cb0dd5beafedc289454)) + + +### Dependencies + +* Update actions/github-script action to v7 ([#708](https://github.com/googleapis/java-shared-config/issues/708)) ([a4738d1](https://github.com/googleapis/java-shared-config/commit/a4738d13277edd15bb3f5f0cf69f2600cf93c607)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.28 ([#647](https://github.com/googleapis/java-shared-config/issues/647)) ([28b2c77](https://github.com/googleapis/java-shared-config/commit/28b2c77ddd2078d628cb8f2b16fae8efd0e673a5)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.10.2 ([#638](https://github.com/googleapis/java-shared-config/issues/638)) ([4fa0021](https://github.com/googleapis/java-shared-config/commit/4fa0021ec8d187d9c7c5775f0518aee83059ef65)) + +## [1.7.1](https://github.com/googleapis/java-shared-config/compare/v1.7.0...v1.7.1) (2023-12-07) + + +### Bug Fixes + +* Move release configs to native-image-shared-config ([#725](https://github.com/googleapis/java-shared-config/issues/725)) ([58ffb4e](https://github.com/googleapis/java-shared-config/commit/58ffb4e8218ac98b516e01b68b34b54b4cecec98)) + +## [1.7.0](https://github.com/googleapis/java-shared-config/compare/v1.6.1...v1.7.0) (2023-12-04) + + +### Features + +* Separate native-image-shared-config into its own module ([#712](https://github.com/googleapis/java-shared-config/issues/712)) ([567fecb](https://github.com/googleapis/java-shared-config/commit/567fecb2fd80bd6e2fe509e4c2a97685f35e2b84)) + +## [1.6.1](https://github.com/googleapis/java-shared-config/compare/v1.6.0...v1.6.1) (2023-10-31) + + +### Dependencies + +* Update actions/checkout digest to b4ffde6 ([#696](https://github.com/googleapis/java-shared-config/issues/696)) ([6d69223](https://github.com/googleapis/java-shared-config/commit/6d692231d80049b7b88f24c1c6a0fe8eaa19c76f)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.12.4 ([#665](https://github.com/googleapis/java-shared-config/issues/665)) ([6018b84](https://github.com/googleapis/java-shared-config/commit/6018b84b8da88d5022d064c5d950cbacbf3deab2)) +* Update graal-sdk to 22.3.3 ([#703](https://github.com/googleapis/java-shared-config/issues/703)) ([05c3057](https://github.com/googleapis/java-shared-config/commit/05c30571d61bba3e232584bdb5e941519e32f68a)) + +## [1.6.0](https://github.com/googleapis/java-shared-config/compare/v1.5.8...v1.6.0) (2023-10-17) + + +### Features + +* Add graal-sdk dependency management to java-shared-config ([#683](https://github.com/googleapis/java-shared-config/issues/683)) ([5cd1d84](https://github.com/googleapis/java-shared-config/commit/5cd1d84bf2d68dbe8f9fa7e02d9065082bd56726)) + +## [1.5.8](https://github.com/googleapis/java-shared-config/compare/v1.5.7...v1.5.8) (2023-10-05) + + +### Dependencies + +* Update actions/checkout action to v4 ([#653](https://github.com/googleapis/java-shared-config/issues/653)) ([cdf79f8](https://github.com/googleapis/java-shared-config/commit/cdf79f841657b234d3e6a0aaecd63444e637ff68)) +* Update auto-value-annotation.version to v1.10.4 ([#669](https://github.com/googleapis/java-shared-config/issues/669)) ([4a11c28](https://github.com/googleapis/java-shared-config/commit/4a11c2861e4f22aa00f98254f69b072b2376b808)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.12.2 ([#644](https://github.com/googleapis/java-shared-config/issues/644)) ([763419a](https://github.com/googleapis/java-shared-config/commit/763419aefd7efb40b30641641198ca6491b380d2)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.12.3 ([#652](https://github.com/googleapis/java-shared-config/issues/652)) ([62f6be7](https://github.com/googleapis/java-shared-config/commit/62f6be71cc9939d2151a6ab3981603ea88ae50fb)) +* Update dependency org.opentest4j:opentest4j to v1.3.0 ([#640](https://github.com/googleapis/java-shared-config/issues/640)) ([f3570a2](https://github.com/googleapis/java-shared-config/commit/f3570a227f82b8942d671b6b324ae4940cdd65c4)) + + +### Documentation + +* Update README.md with AutoValue ([#676](https://github.com/googleapis/java-shared-config/issues/676)) ([78d4661](https://github.com/googleapis/java-shared-config/commit/78d4661e566574b395c8891561c1e0d9603bed33)) + +## [1.5.7](https://github.com/googleapis/java-shared-config/compare/v1.5.6...v1.5.7) (2023-07-19) + + +### Dependencies + +* Update auto-value-annotation.version to v1.10.2 ([#632](https://github.com/googleapis/java-shared-config/issues/632)) ([bfa9559](https://github.com/googleapis/java-shared-config/commit/bfa9559bf96802cc717b3e8452d09f495f7e1e90)) +* Update dependency com.google.auto.service:auto-service-annotations to v1.1.1 ([#623](https://github.com/googleapis/java-shared-config/issues/623)) ([3405245](https://github.com/googleapis/java-shared-config/commit/3405245576821db2a10ae6efe22c5a8b656ce026)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.12.1 ([#630](https://github.com/googleapis/java-shared-config/issues/630)) ([3d5a358](https://github.com/googleapis/java-shared-config/commit/3d5a358f7a82fa91869a39d770f4826cfb50e6b9)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.23 ([#627](https://github.com/googleapis/java-shared-config/issues/627)) ([274f269](https://github.com/googleapis/java-shared-config/commit/274f2692e20e8f9e4b390a3da14f7fcd4ecf7bdf)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.9.3 ([#624](https://github.com/googleapis/java-shared-config/issues/624)) ([88f4043](https://github.com/googleapis/java-shared-config/commit/88f4043f869406cf2a4544dbabdfd9b52365aca8)) + +## [1.5.6](https://github.com/googleapis/java-shared-config/compare/v1.5.5...v1.5.6) (2023-06-02) + + +### Bug Fixes + +* Add junit-vintage dep to avoid skipping post-compilation native tests ([#586](https://github.com/googleapis/java-shared-config/issues/586)) ([f6e6f69](https://github.com/googleapis/java-shared-config/commit/f6e6f690d58e2a86db721926049b0132310724bf)) +* **java:** Skip fixing poms for special modules ([#1744](https://github.com/googleapis/java-shared-config/issues/1744)) ([#556](https://github.com/googleapis/java-shared-config/issues/556)) ([cc433c2](https://github.com/googleapis/java-shared-config/commit/cc433c246f1b6edbc093e6af37aced652d884a65)) +* Remove java-trace checks ([#612](https://github.com/googleapis/java-shared-config/issues/612)) ([cfcdba8](https://github.com/googleapis/java-shared-config/commit/cfcdba834f27b6bb03460cd09f076068f67a892b)) + + +### Dependencies + +* Update dependency com.google.auto.service:auto-service-annotations to v1.1.0 ([#610](https://github.com/googleapis/java-shared-config/issues/610)) ([aeefcbe](https://github.com/googleapis/java-shared-config/commit/aeefcbec212dc102bd15027984895a4ba51d045f)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.10.0 ([#598](https://github.com/googleapis/java-shared-config/issues/598)) ([29309c3](https://github.com/googleapis/java-shared-config/commit/29309c36cb6ffe2aea221d3cc8cde036441d21b1)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.11.0 ([#602](https://github.com/googleapis/java-shared-config/issues/602)) ([61b9c5f](https://github.com/googleapis/java-shared-config/commit/61b9c5f04422bc8edf8a249e3dfb7290bd188a8d)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.12.0 ([#614](https://github.com/googleapis/java-shared-config/issues/614)) ([8559d0d](https://github.com/googleapis/java-shared-config/commit/8559d0dc634e238ee640d68439839f50a938ce76)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.6.0 ([#554](https://github.com/googleapis/java-shared-config/issues/554)) ([44a77b0](https://github.com/googleapis/java-shared-config/commit/44a77b0faf5b4f3f9208117ccab0a3717d059efd)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.7.0 ([#563](https://github.com/googleapis/java-shared-config/issues/563)) ([5c51e07](https://github.com/googleapis/java-shared-config/commit/5c51e07af8e37019d462211d47307155c630adb9)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.8.1 ([#573](https://github.com/googleapis/java-shared-config/issues/573)) ([e5c6e54](https://github.com/googleapis/java-shared-config/commit/e5c6e5406488c0a204ef2afcbe8582176fa373e4)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.9.2 ([#579](https://github.com/googleapis/java-shared-config/issues/579)) ([a67a7c8](https://github.com/googleapis/java-shared-config/commit/a67a7c8d05bab4c8dbeaf5b5874170084e75abb7)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.9.3 ([#582](https://github.com/googleapis/java-shared-config/issues/582)) ([c87ff96](https://github.com/googleapis/java-shared-config/commit/c87ff962304efd82e2f79458976c627d1ff622d8)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.21 ([#593](https://github.com/googleapis/java-shared-config/issues/593)) ([12ac165](https://github.com/googleapis/java-shared-config/commit/12ac165f36b6b5257f7928f8a2c21ae936af3794)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.22 ([#603](https://github.com/googleapis/java-shared-config/issues/603)) ([9ea7833](https://github.com/googleapis/java-shared-config/commit/9ea783312cc9e136f8bdb6f4dae5591221e42773)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.9.2 ([#560](https://github.com/googleapis/java-shared-config/issues/560)) ([60a80bd](https://github.com/googleapis/java-shared-config/commit/60a80bd272dd7483db8e4a5773125a9c57b9899e)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.9.3 ([#597](https://github.com/googleapis/java-shared-config/issues/597)) ([61064b9](https://github.com/googleapis/java-shared-config/commit/61064b9c767c528139b025e3d629d12fc64d7809)) +* Update doclet version to 1.9.0 ([#611](https://github.com/googleapis/java-shared-config/issues/611)) ([cd8c762](https://github.com/googleapis/java-shared-config/commit/cd8c76208ab3d10ab451545a180474c6270368d3)) +* Update graalvm native-image dependencies to v0.9.19 ([#550](https://github.com/googleapis/java-shared-config/issues/550)) ([3313229](https://github.com/googleapis/java-shared-config/commit/3313229155be704b50e499379936e16598a348a6)) +* Update graalvm native-image dependencies to v0.9.20 ([#568](https://github.com/googleapis/java-shared-config/issues/568)) ([79d7b4b](https://github.com/googleapis/java-shared-config/commit/79d7b4be908cc9e24a48d89eeb97b0c6155493d1)) + +## [1.5.5](https://github.com/googleapis/java-shared-config/compare/v1.5.4...v1.5.5) (2022-11-28) + + +### Dependencies + +* Updata java-docfx-doclet to v1.8.0 ([#540](https://github.com/googleapis/java-shared-config/issues/540)) ([29e20eb](https://github.com/googleapis/java-shared-config/commit/29e20eb8809fc3dc985111bbaecd09c281222484)) +* Update auto-value-annotation.version to v1.10.1 ([#543](https://github.com/googleapis/java-shared-config/issues/543)) ([b83ac8b](https://github.com/googleapis/java-shared-config/commit/b83ac8b0d0b121f522d850983421d9a7a31a8627)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.4 ([#535](https://github.com/googleapis/java-shared-config/issues/535)) ([eeeda5d](https://github.com/googleapis/java-shared-config/commit/eeeda5d41a4e2d3632afa95cede3174b44a135eb)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.5.0 ([#545](https://github.com/googleapis/java-shared-config/issues/545)) ([30c48d1](https://github.com/googleapis/java-shared-config/commit/30c48d17a4d2b0e86cac2f58bf6b6df2865a0fbd)) +* update dependency org.codehaus.mojo:flatten-maven-plugin to v1.3.0 ([ce1a04e](https://github.com/googleapis/java-shared-config/commit/ce1a04e5a319754963a6da6f9da0055e53449b3c)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.16 ([#528](https://github.com/googleapis/java-shared-config/issues/528)) ([a6db032](https://github.com/googleapis/java-shared-config/commit/a6db032d261ec1534e9b54a055adde1c7b3ebdd6)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.17 ([#537](https://github.com/googleapis/java-shared-config/issues/537)) ([5d34fff](https://github.com/googleapis/java-shared-config/commit/5d34fff2d487f5b88614c076df1928ae8f7ef810)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.16 ([#529](https://github.com/googleapis/java-shared-config/issues/529)) ([e802be9](https://github.com/googleapis/java-shared-config/commit/e802be90f2ff121e403fdc8cc590ec29e4b98729)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.17 ([#538](https://github.com/googleapis/java-shared-config/issues/538)) ([bf7fd02](https://github.com/googleapis/java-shared-config/commit/bf7fd02be0bb5934664d35d7e8e4effb4716f58e)) +* Update graalvm native-image dependencies to v0.9.18 ([#544](https://github.com/googleapis/java-shared-config/issues/544)) ([59a7b6d](https://github.com/googleapis/java-shared-config/commit/59a7b6d612aee531342410d0adc3ea161c26fea0)) + +## [1.5.4](https://github.com/googleapis/java-shared-config/compare/v1.5.3...v1.5.4) (2022-10-19) + + +### Dependencies + +* Update auto-value-annotation.version to v1.10 ([#521](https://github.com/googleapis/java-shared-config/issues/521)) ([601235c](https://github.com/googleapis/java-shared-config/commit/601235c32b6f1233d81a27788f6691cda05787af)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.3.2 ([#501](https://github.com/googleapis/java-shared-config/issues/501)) ([2b2c611](https://github.com/googleapis/java-shared-config/commit/2b2c611815cafd1809e27c769577ae55d481a170)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.3.3 ([#510](https://github.com/googleapis/java-shared-config/issues/510)) ([8d7f75d](https://github.com/googleapis/java-shared-config/commit/8d7f75de442cb3a274004faae430e9edf60730f3)) +* Update dependency com.puppycrawl.tools:checkstyle to v10.3.4 ([#517](https://github.com/googleapis/java-shared-config/issues/517)) ([1119ba2](https://github.com/googleapis/java-shared-config/commit/1119ba29e4fe3a74a58c18961c3431570186cc27)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.14 ([#515](https://github.com/googleapis/java-shared-config/issues/515)) ([779a239](https://github.com/googleapis/java-shared-config/commit/779a2398f1310a2f23555dc5c861a5203364d7a1)) +* Update dependency org.graalvm.buildtools:junit-platform-native to v0.9.15 ([#522](https://github.com/googleapis/java-shared-config/issues/522)) ([5dd225d](https://github.com/googleapis/java-shared-config/commit/5dd225dc5a66562c8496366986ef9dc401d9be92)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.14 ([#516](https://github.com/googleapis/java-shared-config/issues/516)) ([5605094](https://github.com/googleapis/java-shared-config/commit/56050943045d5e3d94c8598791c695d3fefcfef0)) +* Update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.15 ([#523](https://github.com/googleapis/java-shared-config/issues/523)) ([45752ad](https://github.com/googleapis/java-shared-config/commit/45752ad7083f07d2ce81a23ea930aa9737473940)) +* Update dependency org.junit.vintage:junit-vintage-engine to v5.9.1 ([#514](https://github.com/googleapis/java-shared-config/issues/514)) ([60c000c](https://github.com/googleapis/java-shared-config/commit/60c000c3736288b98382aae79eb21a5cb15258fb)) + +## [1.5.3](https://github.com/googleapis/java-shared-config/compare/v1.5.2...v1.5.3) (2022-07-27) + + +### Dependencies + +* update dependency org.junit.vintage:junit-vintage-engine to v5.9.0 ([#497](https://github.com/googleapis/java-shared-config/issues/497)) ([1fc6ab4](https://github.com/googleapis/java-shared-config/commit/1fc6ab445624cd4f9c8b161d109f346a9e5ed09a)) +* Update doclet to latest version 1.6.0 ([38fb7c3](https://github.com/googleapis/java-shared-config/commit/38fb7c3957fb6c9b2da10f9e463cc93a8b80a3a4)) + +## [1.5.2](https://github.com/googleapis/java-shared-config/compare/v1.5.1...v1.5.2) (2022-07-25) + + +### Dependencies + +* update dependency com.puppycrawl.tools:checkstyle to v10 ([#435](https://github.com/googleapis/java-shared-config/issues/435)) ([bfc8ce1](https://github.com/googleapis/java-shared-config/commit/bfc8ce1deca6292147d002d3afe22a09840aa5d6)) +* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.13 ([#488](https://github.com/googleapis/java-shared-config/issues/488)) ([39b91ee](https://github.com/googleapis/java-shared-config/commit/39b91ee1283f0a5fbbe63e8bfd1ec97ab4ab377e)) +* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.13 ([#489](https://github.com/googleapis/java-shared-config/issues/489)) ([cc3bcfa](https://github.com/googleapis/java-shared-config/commit/cc3bcfa2d6717441a8d5b5048fa78c2cf7aabf2b)) + +## [1.5.1](https://github.com/googleapis/java-shared-config/compare/v1.5.0...v1.5.1) (2022-06-30) + + +### Dependencies + +* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.12 ([#482](https://github.com/googleapis/java-shared-config/issues/482)) ([fbfc6dc](https://github.com/googleapis/java-shared-config/commit/fbfc6dc1329faaead3a3114c8599d9267722e7f0)) +* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.12 ([#483](https://github.com/googleapis/java-shared-config/issues/483)) ([336cb78](https://github.com/googleapis/java-shared-config/commit/336cb7827b36583228c9e2b85871ae72f4c55975)) + +## [1.5.0](https://github.com/googleapis/java-shared-config/compare/v1.4.0...v1.5.0) (2022-06-10) + + +### Features + +* add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-shared-config/issues/1440)) ([#475](https://github.com/googleapis/java-shared-config/issues/475)) ([e4dfc1b](https://github.com/googleapis/java-shared-config/commit/e4dfc1ba29295158c78c8fcf94467d2a6a33538a)) +* to produce Java 8 compatible bytecode when using JDK 9+ ([2468276](https://github.com/googleapis/java-shared-config/commit/2468276145cdfe1ca911b52f765e026e77661a09)) + + +### Dependencies + +* update surefire.version to v3.0.0-m7 ([bbfe663](https://github.com/googleapis/java-shared-config/commit/bbfe66393af3e49612c9c1e4334ba39c133ea1d0)) + +## [1.4.0](https://github.com/googleapis/java-shared-config/compare/v1.3.3...v1.4.0) (2022-04-28) + + +### Features + +* **java:** remove native image module ([#471](https://github.com/googleapis/java-shared-config/issues/471)) ([7fcba01](https://github.com/googleapis/java-shared-config/commit/7fcba016b3138d7beaa4e962853f9bc80f59438c)) + +### [1.3.3](https://github.com/googleapis/java-shared-config/compare/v1.3.2...v1.3.3) (2022-04-19) + + +### Bug Fixes + +* **java:** remove protobuf feature from native profile ([#461](https://github.com/googleapis/java-shared-config/issues/461)) ([ffd07cb](https://github.com/googleapis/java-shared-config/commit/ffd07cb18ee7d45d4daee1d9ea6f6d321fdca874)) + + +### Dependencies + +* update dependency com.google.cloud:native-image-support to v0.12.11 ([#459](https://github.com/googleapis/java-shared-config/issues/459)) ([d20008d](https://github.com/googleapis/java-shared-config/commit/d20008df15209708fdf9d06828b567778190f4d0)) +* update dependency com.google.cloud:native-image-support to v0.13.1 ([#465](https://github.com/googleapis/java-shared-config/issues/465)) ([b202064](https://github.com/googleapis/java-shared-config/commit/b2020648816feb4740ad70acedfed470d7da5bcf)) + +### [1.3.2](https://github.com/googleapis/java-shared-config/compare/v1.3.1...v1.3.2) (2022-03-28) + + +### Dependencies + +* revert google-java-format to 1.7 ([#453](https://github.com/googleapis/java-shared-config/issues/453)) ([cbc777f](https://github.com/googleapis/java-shared-config/commit/cbc777f3e9ab75edb6fa2e0268a7446ae4111725)) + +### [1.3.1](https://github.com/googleapis/java-shared-config/compare/v1.3.0...v1.3.1) (2022-03-25) + + +### Dependencies + +* update dependency com.google.cloud:native-image-support to v0.12.10 ([#443](https://github.com/googleapis/java-shared-config/issues/443)) ([5b39d5e](https://github.com/googleapis/java-shared-config/commit/5b39d5ee15121f052226ff873b6ab101e9c71de5)) +* update dependency com.google.googlejavaformat:google-java-format to v1.15.0 ([#426](https://github.com/googleapis/java-shared-config/issues/426)) ([4c3c4b6](https://github.com/googleapis/java-shared-config/commit/4c3c4b66129632181e6bc363a0ecccf4f5aac914)) +* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.11 ([#448](https://github.com/googleapis/java-shared-config/issues/448)) ([f7f518e](https://github.com/googleapis/java-shared-config/commit/f7f518e87d1d9feb9ac54d7c099f97d8751ee3da)) +* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.11 ([#449](https://github.com/googleapis/java-shared-config/issues/449)) ([3e1c0b5](https://github.com/googleapis/java-shared-config/commit/3e1c0b5a1d2f4a0db88c06a0d683ed90cbc745e2)) + +## [1.3.0](https://github.com/googleapis/java-shared-config/compare/v1.2.7...v1.3.0) (2022-03-07) + + +### Features + +* increase IT timeout from 20 to 60 mins ([#440](https://github.com/googleapis/java-shared-config/issues/440)) ([a4427bc](https://github.com/googleapis/java-shared-config/commit/a4427bceebd0624e23f0b02bb24d7ed46ea4b3a6)) + + +### Dependencies + +* update dependency com.google.cloud:native-image-support to v0.12.6 ([#423](https://github.com/googleapis/java-shared-config/issues/423)) ([9a0cb79](https://github.com/googleapis/java-shared-config/commit/9a0cb79896d5c97dc3c5648a6740d53eb9ada673)) +* update dependency com.puppycrawl.tools:checkstyle to v9.3 ([#415](https://github.com/googleapis/java-shared-config/issues/415)) ([9e2d3fd](https://github.com/googleapis/java-shared-config/commit/9e2d3fd8bd42bc210dae5798f7d5dfe950c29f51)) +* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.10 ([#429](https://github.com/googleapis/java-shared-config/issues/429)) ([0355f29](https://github.com/googleapis/java-shared-config/commit/0355f2988ebcff19615b72bc65523555e4844523)) +* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.10 ([#430](https://github.com/googleapis/java-shared-config/issues/430)) ([16984d2](https://github.com/googleapis/java-shared-config/commit/16984d25a84aa6a8daf2a0925ea57cd0d3f0ee24)) + +### [1.2.7](https://github.com/googleapis/java-shared-config/compare/v1.2.6...v1.2.7) (2022-02-04) + + +### Dependencies + +* update dependency com.google.cloud:native-image-support to v0.12.0 ([#414](https://github.com/googleapis/java-shared-config/issues/414)) ([2133cc0](https://github.com/googleapis/java-shared-config/commit/2133cc093efd8420e352274f3eab09de819ff796)) + +### [1.2.6](https://github.com/googleapis/java-shared-config/compare/v1.2.5...v1.2.6) (2022-01-19) + + +### Bug Fixes + +* library should released as 1.2.6 ([#408](https://github.com/googleapis/java-shared-config/issues/408)) ([4972daa](https://github.com/googleapis/java-shared-config/commit/4972daa60467797566c4b043cebd322577b8eb73)) + +### [1.2.5](https://github.com/googleapis/java-shared-config/compare/v1.2.4...v1.2.5) (2022-01-11) + + +### Bug Fixes + +* **java:** Enable unit tests in generated libraries for native image testing ([#394](https://github.com/googleapis/java-shared-config/issues/394)) ([a453b9f](https://github.com/googleapis/java-shared-config/commit/a453b9f141c7555f2fd5333eb17d223410ab66eb)) + +### [1.2.4](https://www.github.com/googleapis/java-shared-config/compare/v1.2.3...v1.2.4) (2022-01-06) + + +### Dependencies + +* revert dependency com.google.googlejavaformat:google-java-format to v1.7 ([#391](https://www.github.com/googleapis/java-shared-config/issues/391)) ([17077fb](https://www.github.com/googleapis/java-shared-config/commit/17077fb1a58eef7098dc5e1e9b2c78a63c5c11e1)) + +### [1.2.3](https://www.github.com/googleapis/java-shared-config/compare/v1.2.2...v1.2.3) (2022-01-04) + + +### Bug Fixes + +* **java:** add -ntp flag to native image testing command ([#1299](https://www.github.com/googleapis/java-shared-config/issues/1299)) ([#376](https://www.github.com/googleapis/java-shared-config/issues/376)) ([50e7a10](https://www.github.com/googleapis/java-shared-config/commit/50e7a10a8dca0505fd831e3dd929577d2f82b011)) +* **java:** Only enable integration tests for native image testing ([#375](https://www.github.com/googleapis/java-shared-config/issues/375)) ([663f421](https://www.github.com/googleapis/java-shared-config/commit/663f421de342afcba24703079f778738045d3ff2)) +* **java:** Pass missing integration test flags to native image test commands ([#1309](https://www.github.com/googleapis/java-shared-config/issues/1309)) ([#383](https://www.github.com/googleapis/java-shared-config/issues/383)) ([b17b44e](https://www.github.com/googleapis/java-shared-config/commit/b17b44e37fe44ba61616417189c6b2271f3a4d18)) + + +### Dependencies + +* update auto-value-annotation.version to v1.9 ([#378](https://www.github.com/googleapis/java-shared-config/issues/378)) ([5e1cd0e](https://www.github.com/googleapis/java-shared-config/commit/5e1cd0e39910548ec4eb6639da979c3b66411503)) +* update dependency com.google.googlejavaformat:google-java-format to v1.13.0 ([#361](https://www.github.com/googleapis/java-shared-config/issues/361)) ([095d60a](https://www.github.com/googleapis/java-shared-config/commit/095d60a061a574dcf84b9fcf26dff48617a306b1)) +* update dependency com.puppycrawl.tools:checkstyle to v9.2 ([#366](https://www.github.com/googleapis/java-shared-config/issues/366)) ([061df67](https://www.github.com/googleapis/java-shared-config/commit/061df676d8b2fef5bbb0ce9661d3c96fcb57e73a)) +* update dependency com.puppycrawl.tools:checkstyle to v9.2.1 ([#382](https://www.github.com/googleapis/java-shared-config/issues/382)) ([1a182c5](https://www.github.com/googleapis/java-shared-config/commit/1a182c52e7c5431875296940d68c9bdfcf74be00)) +* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.9 ([#379](https://www.github.com/googleapis/java-shared-config/issues/379)) ([0a2b05f](https://www.github.com/googleapis/java-shared-config/commit/0a2b05ff7f649331efbc4dd540705da10691a2f1)) +* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.8 ([#372](https://www.github.com/googleapis/java-shared-config/issues/372)) ([6fe795e](https://www.github.com/googleapis/java-shared-config/commit/6fe795ede39575656ef1609bf7aac28c1d170976)) +* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.9 ([#380](https://www.github.com/googleapis/java-shared-config/issues/380)) ([f2efad5](https://www.github.com/googleapis/java-shared-config/commit/f2efad585b431fe186c7900a8171a999c689405b)) +* update dependency org.junit.vintage:junit-vintage-engine to v5.8.2 ([#365](https://www.github.com/googleapis/java-shared-config/issues/365)) ([604058d](https://www.github.com/googleapis/java-shared-config/commit/604058d52dc962db9a506762926576542687285e)) + +### [1.2.2](https://www.github.com/googleapis/java-shared-config/compare/v1.2.1...v1.2.2) (2021-11-16) + + +### Bug Fixes + +* update dependency com.google.cloud:native-image-support to v0.10.0 ([#358](https://www.github.com/googleapis/java-shared-config/issues/358)) ([0441958](https://www.github.com/googleapis/java-shared-config/commit/044195865a1122d419cadae90fddbf8dc5b4a32d)) + +### [1.2.1](https://www.github.com/googleapis/java-shared-config/compare/v1.2.0...v1.2.1) (2021-11-08) + + +### Bug Fixes + +* Add native image feature to register protobuf reflection in tests ([#347](https://www.github.com/googleapis/java-shared-config/issues/347)) ([88c3e3b](https://www.github.com/googleapis/java-shared-config/commit/88c3e3b0ad1e480e0fdbe9f6fe1f9df183066ee6)) + + +### Dependencies + +* update dependency com.google.auto.service:auto-service-annotations to v1.0.1 ([#346](https://www.github.com/googleapis/java-shared-config/issues/346)) ([9c1f943](https://www.github.com/googleapis/java-shared-config/commit/9c1f94345fb47346fe66f901976c2347b8102bc8)) +* update dependency com.google.cloud:native-image-support to v0.9.0 ([#350](https://www.github.com/googleapis/java-shared-config/issues/350)) ([3b496b0](https://www.github.com/googleapis/java-shared-config/commit/3b496b03bd95e59fcd1a3a1eb6cc0dfd330db769)) +* update dependency com.puppycrawl.tools:checkstyle to v9.1 ([#345](https://www.github.com/googleapis/java-shared-config/issues/345)) ([f5c03d3](https://www.github.com/googleapis/java-shared-config/commit/f5c03d35684ef4e0bb3178ab6056f231f3f4faf6)) + +## [1.2.0](https://www.github.com/googleapis/java-shared-config/compare/v1.1.0...v1.2.0) (2021-10-21) + + +### Features + +* Introduce Native Image testing build script changes ([#1240](https://www.github.com/googleapis/java-shared-config/issues/1240)) ([#334](https://www.github.com/googleapis/java-shared-config/issues/334)) ([4643cf1](https://www.github.com/googleapis/java-shared-config/commit/4643cf15be0b37fa8fa905d544d438cda7ef2ecd)) + + +### Bug Fixes + +* **java:** downgrade native maven plugin version ([#335](https://www.github.com/googleapis/java-shared-config/issues/335)) ([5834284](https://www.github.com/googleapis/java-shared-config/commit/5834284176fb34713d10082ce04f3b6abba85ad8)) + +## [1.1.0](https://www.github.com/googleapis/java-shared-config/compare/v1.0.3...v1.1.0) (2021-10-12) + + +### Features + +* introduce Maven configuration for GraalVM testing ([#314](https://www.github.com/googleapis/java-shared-config/issues/314)) ([28fbeb8](https://www.github.com/googleapis/java-shared-config/commit/28fbeb86c4466a58a05d6933584564dbf3352e79)) + + +### Bug Fixes + +* update doclet version ([#332](https://www.github.com/googleapis/java-shared-config/issues/332)) ([3fd0350](https://www.github.com/googleapis/java-shared-config/commit/3fd035030e4f0954dd1f62f7b8ea62583685880c)) + + +### Dependencies + +* update dependency com.puppycrawl.tools:checkstyle to v9.0.1 ([#327](https://www.github.com/googleapis/java-shared-config/issues/327)) ([b6c9b65](https://www.github.com/googleapis/java-shared-config/commit/b6c9b657550db2dee6b36edbb9a6084baee125e2)) +* update dependency org.graalvm.buildtools:junit-platform-native to v0.9.6 ([#330](https://www.github.com/googleapis/java-shared-config/issues/330)) ([271ed7d](https://www.github.com/googleapis/java-shared-config/commit/271ed7dba35623e22fc8a7f7d477e6043e772014)) +* update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.6 ([#331](https://www.github.com/googleapis/java-shared-config/issues/331)) ([4f9ba15](https://www.github.com/googleapis/java-shared-config/commit/4f9ba1551df0a2d4fc8c9acca8a951afbe8cb78a)) +* update dependency org.junit.vintage:junit-vintage-engine to v5.8.1 ([#329](https://www.github.com/googleapis/java-shared-config/issues/329)) ([4a8789e](https://www.github.com/googleapis/java-shared-config/commit/4a8789ee814ba8a3480beecc76c16fd1cb4e5f12)) + +### [1.0.3](https://www.github.com/googleapis/java-shared-config/compare/v1.0.2...v1.0.3) (2021-09-21) + + +### Bug Fixes + +* update java-docfx-doclet version ([#315](https://www.github.com/googleapis/java-shared-config/issues/315)) ([07af07c](https://www.github.com/googleapis/java-shared-config/commit/07af07c188447ea5728ecd2700121ff477d1c58a)) + +### [1.0.2](https://www.github.com/googleapis/java-shared-config/compare/v1.0.1...v1.0.2) (2021-09-13) + + +### Bug Fixes + +* specify animal-sniffer-maven-plugin version ([#308](https://www.github.com/googleapis/java-shared-config/issues/308)) ([378bf43](https://www.github.com/googleapis/java-shared-config/commit/378bf431383306c1cdd0a4f922956c87edf321b5)) +* update java docfx doclet version ([#312](https://www.github.com/googleapis/java-shared-config/issues/312)) ([dd7f6e0](https://www.github.com/googleapis/java-shared-config/commit/dd7f6e0c1a7cc73831b74b4475457611a8c097d3)) + + +### Dependencies + +* update dependency com.puppycrawl.tools:checkstyle to v9 ([#303](https://www.github.com/googleapis/java-shared-config/issues/303)) ([71faea3](https://www.github.com/googleapis/java-shared-config/commit/71faea38d4132407598550e2bb4c77f9d4a4d83d)) + +### [1.0.1](https://www.github.com/googleapis/java-shared-config/compare/v1.0.0...v1.0.1) (2021-08-18) + + +### Dependencies + +* update dependency com.puppycrawl.tools:checkstyle to v8.45.1 ([#292](https://www.github.com/googleapis/java-shared-config/issues/292)) ([66bf6e6](https://www.github.com/googleapis/java-shared-config/commit/66bf6e6fb95997b9eb4b34268b8d20c2fbe9ed5a)) + +## [1.0.0](https://www.github.com/googleapis/java-shared-config/compare/v0.13.1...v1.0.0) (2021-07-29) + + +### ⚠ BREAKING CHANGES + +* update shared-config to java 1.8 (#277) + +### Features + +* update shared-config to java 1.8 ([#277](https://www.github.com/googleapis/java-shared-config/issues/277)) ([9c297a2](https://www.github.com/googleapis/java-shared-config/commit/9c297a27bc236092aab3ae292c7bed206293bc51)) + +### [0.13.1](https://www.github.com/googleapis/java-shared-config/compare/v0.13.0...v0.13.1) (2021-07-27) + + +### Bug Fixes + +* revert update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.2.0 ([#280](https://www.github.com/googleapis/java-shared-config/issues/280)) ([bdbbb9c](https://www.github.com/googleapis/java-shared-config/commit/bdbbb9c13571d0ef06009ebf03bc25c6e6fcbc17)) + +## [0.12.0](https://www.github.com/googleapis/java-shared-config/compare/v0.11.4...v0.12.0) (2021-07-26) + + +### Features + +* add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#264](https://www.github.com/googleapis/java-shared-config/issues/264)) ([d274af8](https://www.github.com/googleapis/java-shared-config/commit/d274af836ac9b3e98be84e551b7e9e552397ecc1)) + + +### Bug Fixes + +* Add shopt -s nullglob to dependencies script ([865ca3c](https://www.github.com/googleapis/java-shared-config/commit/865ca3cbf106a7aaae1a989320a1ad5a47b6ffaf)) +* Update dependencies.sh to not break on mac ([#276](https://www.github.com/googleapis/java-shared-config/issues/276)) ([865ca3c](https://www.github.com/googleapis/java-shared-config/commit/865ca3cbf106a7aaae1a989320a1ad5a47b6ffaf)) + + +### Dependencies + +* update auto-value-annotation.version to v1.8.2 ([#275](https://www.github.com/googleapis/java-shared-config/issues/275)) ([4d15246](https://www.github.com/googleapis/java-shared-config/commit/4d152461a5592940a8be762c7a8698a02dbe26cf)) +* update dependency com.puppycrawl.tools:checkstyle to v8.43 ([#266](https://www.github.com/googleapis/java-shared-config/issues/266)) ([fae7961](https://www.github.com/googleapis/java-shared-config/commit/fae7961412b33e34e8fcfec78d1451894d4e61d9)) +* update dependency com.puppycrawl.tools:checkstyle to v8.44 ([#274](https://www.github.com/googleapis/java-shared-config/issues/274)) ([d53d0e0](https://www.github.com/googleapis/java-shared-config/commit/d53d0e0935e908d16f4e7cf763577cf3fd8128d3)) + +### [0.11.4](https://www.github.com/googleapis/java-shared-config/compare/v0.11.2...v0.11.4) (2021-05-19) + + +### Features + +* update cloud-rad doclet ([#260](https://www.github.com/googleapis/java-shared-config/issues/260)) ([9f73e89](https://www.github.com/googleapis/java-shared-config/commit/9f73e89660956b90c235e99cfbdf440996a844e5)) + + +### Dependencies + +* update dependency com.puppycrawl.tools:checkstyle to v8.42 ([#234](https://www.github.com/googleapis/java-shared-config/issues/234)) ([3ff0730](https://www.github.com/googleapis/java-shared-config/commit/3ff073033378e8a3fde62c52dbf3ad9820cc4538)) + +### [0.11.2](https://www.github.com/googleapis/java-shared-config/compare/v0.11.1...v0.11.2) (2021-04-22) + + +### Dependencies + +* update auto-value-annotation.version to v1.8.1 ([#250](https://www.github.com/googleapis/java-shared-config/issues/250)) ([bc01005](https://www.github.com/googleapis/java-shared-config/commit/bc01005be3baeb7b11cbb2a402d5b421113234a7)) + +### [0.11.1](https://www.github.com/googleapis/java-shared-config/compare/v0.11.0...v0.11.1) (2021-04-14) + + +### Dependencies + +* update auto-value-annotation.version to v1.8 ([#239](https://www.github.com/googleapis/java-shared-config/issues/239)) ([7fa8a9c](https://www.github.com/googleapis/java-shared-config/commit/7fa8a9c7d0020dd99fbccc3a9e7d24cbcf27a0f3)) +* update dependency com.google.auto.service:auto-service-annotations to v1.0 ([#246](https://www.github.com/googleapis/java-shared-config/issues/246)) ([a11638b](https://www.github.com/googleapis/java-shared-config/commit/a11638bf44d1d450aff8de494902bdd407988772)) + +## [0.11.0](https://www.github.com/googleapis/java-shared-config/compare/v0.10.0...v0.11.0) (2021-02-25) + + +### Features + +* migrate releases to the new Google Sonatype endpoint to address Sonatype errors. ([#230](https://www.github.com/googleapis/java-shared-config/issues/230)) ([ff6a95f](https://www.github.com/googleapis/java-shared-config/commit/ff6a95f7b0d24a1c37c38ba8ac6c6624ee97cc15)) + + +### Dependencies + +* update dependency com.puppycrawl.tools:checkstyle to v8.40 ([#221](https://www.github.com/googleapis/java-shared-config/issues/221)) ([d9b2d4a](https://www.github.com/googleapis/java-shared-config/commit/d9b2d4aab9a9bba1c2df6fcb52ac96ee8b001ad6)) +* update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.1.2 ([#219](https://www.github.com/googleapis/java-shared-config/issues/219)) ([f7c3f79](https://www.github.com/googleapis/java-shared-config/commit/f7c3f798ef8ad1bc59ae673c84fbdd9f93ee2413)) + +## [0.10.0](https://www.github.com/googleapis/java-shared-config/compare/v0.9.4...v0.10.0) (2021-01-21) + + +### Features + +* adding pom profile to generate docfx yml from javadoc ([#213](https://www.github.com/googleapis/java-shared-config/issues/213)) ([3527c47](https://www.github.com/googleapis/java-shared-config/commit/3527c47ff413d415f87fccca84358da2c837841d)) + + +### Dependencies + +* update dependency com.puppycrawl.tools:checkstyle to v8.39 ([#209](https://www.github.com/googleapis/java-shared-config/issues/209)) ([fb53922](https://www.github.com/googleapis/java-shared-config/commit/fb539226d407001822a56c7fff792922cd85d1fe)) + +### [0.9.4](https://www.github.com/googleapis/java-shared-config/compare/v0.9.3...v0.9.4) (2020-10-21) + + +### Documentation + +* Latest for Cloud-RAD ([#199](https://www.github.com/googleapis/java-shared-config/issues/199)) ([34712af](https://www.github.com/googleapis/java-shared-config/commit/34712afac58aa0d148f0843026b3ff770ee030c2)) + +### [0.9.3](https://www.github.com/googleapis/java-shared-config/compare/v0.9.2...v0.9.3) (2020-10-15) + + +### Dependencies + +* update auto-value-annotation.version to v1.7.4 ([#157](https://www.github.com/googleapis/java-shared-config/issues/157)) ([5d7e394](https://www.github.com/googleapis/java-shared-config/commit/5d7e394d964010a3e32af492cec4be85aabc3ebf)) + +### [0.9.2](https://www.github.com/googleapis/java-shared-config/compare/v0.9.1...v0.9.2) (2020-07-02) + + +### Dependencies + +* update dependency org.apache.maven.surefire:surefire-junit47 to v3.0.0-M5 ([#180](https://www.github.com/googleapis/java-shared-config/issues/180)) ([802d9c5](https://www.github.com/googleapis/java-shared-config/commit/802d9c528d34b386face69ca75a014ce57fc3ac1)) + +### [0.9.1](https://www.github.com/googleapis/java-shared-config/compare/v0.9.0...v0.9.1) (2020-07-01) + + +### Bug Fixes + +* maven-dependency-plugin configuration breaking downstream config ([#174](https://www.github.com/googleapis/java-shared-config/issues/174)) ([507217f](https://www.github.com/googleapis/java-shared-config/commit/507217fe509cd4f16eb50c8075ab43229238e08d)) + + +### Documentation + +* change Devsite output path to /java/docs/reference ([#176](https://www.github.com/googleapis/java-shared-config/issues/176)) ([8b98af5](https://www.github.com/googleapis/java-shared-config/commit/8b98af54bf503d97bb86b6d02a5c4301b39384e1)) + +## [0.9.0](https://www.github.com/googleapis/java-shared-config/compare/v0.8.1...v0.9.0) (2020-06-25) + + +### Features + +* add ignore rule for javax annotations to handle error in java11 ([#171](https://www.github.com/googleapis/java-shared-config/issues/171)) ([cd635ad](https://www.github.com/googleapis/java-shared-config/commit/cd635ad6e8e5d71ac3a30e7656eb788027f1c370)) + +### [0.8.1](https://www.github.com/googleapis/java-shared-config/compare/v0.8.0...v0.8.1) (2020-06-15) + + +### Bug Fixes + +* bump flatten plugin version to fix missing version in profile section issue ([#159](https://www.github.com/googleapis/java-shared-config/issues/159)) ([5b34939](https://www.github.com/googleapis/java-shared-config/commit/5b349399a590b589718b7049f66c82ee38742372)) + +## [0.8.0](https://www.github.com/googleapis/java-shared-config/compare/v0.7.0...v0.8.0) (2020-06-10) + + +### Features + +* revert "feat: mark auto-value-annotations scope as provided" ([#154](https://www.github.com/googleapis/java-shared-config/issues/154)) ([88afb4e](https://www.github.com/googleapis/java-shared-config/commit/88afb4e7c57cb6e00929c098135314a926d9da30)) + +## [0.7.0](https://www.github.com/googleapis/java-shared-config/compare/v0.6.0...v0.7.0) (2020-06-10) + + +### Features + +* mark auto-value-annotations scope as provided ([#151](https://www.github.com/googleapis/java-shared-config/issues/151)) ([44ea4cb](https://www.github.com/googleapis/java-shared-config/commit/44ea4cbbf92b4ad35ffaffb7a01a1bce05063daf)) + + +### Bug Fixes + +* lock the google-java-format version used by formatter plugin ([#149](https://www.github.com/googleapis/java-shared-config/issues/149)) ([d58c054](https://www.github.com/googleapis/java-shared-config/commit/d58c05437a4ea8767db2bebfcc405ec77aeb9705)) + +## [0.6.0](https://www.github.com/googleapis/java-shared-config/compare/v0.5.0...v0.6.0) (2020-05-19) + + +### Features + +* add new configuration necessary to support auto-value ([#136](https://www.github.com/googleapis/java-shared-config/issues/136)) ([c14689b](https://www.github.com/googleapis/java-shared-config/commit/c14689b8791c173687f719d73156a989aedd7ba6)) + +## [0.5.0](https://www.github.com/googleapis/java-shared-config/compare/v0.4.0...v0.5.0) (2020-04-07) + + +### Features + +* add ban duplicate classes rule ([#126](https://www.github.com/googleapis/java-shared-config/issues/126)) ([e38a7cc](https://www.github.com/googleapis/java-shared-config/commit/e38a7cc949396f8f5696e62cd060e0c076047b8d)) +* add devsite javadoc profile ([#121](https://www.github.com/googleapis/java-shared-config/issues/121)) ([7f452fb](https://www.github.com/googleapis/java-shared-config/commit/7f452fb6c5704f6ce0f731085479a28fb99ebcb9)) +* add maven flatten plugin ([#127](https://www.github.com/googleapis/java-shared-config/issues/127)) ([fb00799](https://www.github.com/googleapis/java-shared-config/commit/fb00799c416d324d68da5b660a26f7ef595c26d9)) + + +### Bug Fixes + +* declare com.coveo:fmt-maven-plugin version/configuration ([#90](https://www.github.com/googleapis/java-shared-config/issues/90)) ([5cf71a6](https://www.github.com/googleapis/java-shared-config/commit/5cf71a6ed699907082756e70c2fdee6ad3632f38)) + + +### Dependencies + +* update dependency com.google.cloud.samples:shared-configuration to v1.0.13 ([#118](https://www.github.com/googleapis/java-shared-config/issues/118)) ([58ae69e](https://www.github.com/googleapis/java-shared-config/commit/58ae69eb5ba037963cdaed0c2b0e30663bc873eb)) +* update dependency com.puppycrawl.tools:checkstyle to v8.29 ([f62292d](https://www.github.com/googleapis/java-shared-config/commit/f62292dab75699a75f8a7d499fe2ccfb7ee93783)) +* update dependency org.apache.maven.plugins:maven-antrun-plugin to v1.8 ([#124](https://www.github.com/googleapis/java-shared-config/issues/124)) ([a681536](https://www.github.com/googleapis/java-shared-config/commit/a68153643400c3f3b5c5959cda4dc3b552336427)) +* update dependency org.apache.maven.plugins:maven-dependency-plugin to v3.1.2 ([#107](https://www.github.com/googleapis/java-shared-config/issues/107)) ([c9b096b](https://www.github.com/googleapis/java-shared-config/commit/c9b096b81b1f4f8dc2d1302f259f0321722e1ca5)) +* update dependency org.apache.maven.plugins:maven-site-plugin to v3.9.0 ([#103](https://www.github.com/googleapis/java-shared-config/issues/103)) ([abe7140](https://www.github.com/googleapis/java-shared-config/commit/abe714060e858c70a83888fb34438c45d97b1168)) +* update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.1.0 ([#101](https://www.github.com/googleapis/java-shared-config/issues/101)) ([ac69572](https://www.github.com/googleapis/java-shared-config/commit/ac69572be76e4462fdf65fa6e7f0935c3d51d827)) + +## [0.4.0](https://www.github.com/googleapis/java-shared-config/compare/v0.3.1...v0.4.0) (2020-01-08) + + +### Features + +* add new enable-integration-tests profile ([#75](https://www.github.com/googleapis/java-shared-config/issues/75)) ([836c442](https://www.github.com/googleapis/java-shared-config/commit/836c44294a3cae9ea38b1464431ebac1bef6633d)) + +### [0.3.1](https://www.github.com/googleapis/java-shared-config/compare/v0.3.0...v0.3.1) (2020-01-03) + + +### Bug Fixes + +* use surefire-junit47 provider for surefire/failsafe plugins ([#81](https://www.github.com/googleapis/java-shared-config/issues/81)) ([d3bc105](https://www.github.com/googleapis/java-shared-config/commit/d3bc1057731787578188397dceca58c1389dec08)) + + +### Dependencies + +* update dependency org.apache.maven.plugins:maven-enforcer-plugin to v3.0.0-m3 ([#72](https://www.github.com/googleapis/java-shared-config/issues/72)) ([fc10148](https://www.github.com/googleapis/java-shared-config/commit/fc1014801fc17ec26474594ac420fe5c64e7a692)) +* update dependency org.apache.maven.plugins:maven-failsafe-plugin to v3.0.0-m4 ([#64](https://www.github.com/googleapis/java-shared-config/issues/64)) ([9ae5d78](https://www.github.com/googleapis/java-shared-config/commit/9ae5d7875bf9a286459ef06a60d35a1f93be971e)) +* update dependency org.apache.maven.plugins:maven-source-plugin to v3.2.1 ([#78](https://www.github.com/googleapis/java-shared-config/issues/78)) ([9eb9daf](https://www.github.com/googleapis/java-shared-config/commit/9eb9daf0cf48f19755e1c35e41707d59a8d10a25)) +* update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.0.0-m4 ([#65](https://www.github.com/googleapis/java-shared-config/issues/65)) ([48e8ea9](https://www.github.com/googleapis/java-shared-config/commit/48e8ea9dec3587b08a766d27260c9f9a313f6148)) +* update dependency org.apache.maven.surefire:surefire-junit4 to v3.0.0-m4 ([#66](https://www.github.com/googleapis/java-shared-config/issues/66)) ([b1086d5](https://www.github.com/googleapis/java-shared-config/commit/b1086d58de1056650906380768fc3c5635d724be)) + +## [0.3.0](https://www.github.com/googleapis/java-shared-config/compare/v0.2.1...v0.3.0) (2019-11-14) + + +### Features + +* add profile which allows the use of snapshots ([#38](https://www.github.com/googleapis/java-shared-config/issues/38)) ([678d898](https://www.github.com/googleapis/java-shared-config/commit/678d8984fb6663191a2ec1691db723ccf60b0c23)) + + +### Bug Fixes + +* bump release staging timeout to 15 minutes ([#42](https://www.github.com/googleapis/java-shared-config/issues/42)) ([3261d94](https://www.github.com/googleapis/java-shared-config/commit/3261d948b6ea941bc81d8c5347d8a37332e5159e)) +* only look at src/main and src/test for checkstyle ([#56](https://www.github.com/googleapis/java-shared-config/issues/56)) ([00bbe4c](https://www.github.com/googleapis/java-shared-config/commit/00bbe4cb3ce0c760a7a7a40d7cd10449b2268c43)) +* remove autovalue profiles ([#62](https://www.github.com/googleapis/java-shared-config/issues/62)) ([07258db](https://www.github.com/googleapis/java-shared-config/commit/07258dbbc12baa549ac7a3314c7efd3f77703558)) + + +### Dependencies + +* update dependency org.apache.maven.plugins:maven-jar-plugin to v3.2.0 ([#59](https://www.github.com/googleapis/java-shared-config/issues/59)) ([ab2f4ba](https://www.github.com/googleapis/java-shared-config/commit/ab2f4ba6b4522e34a277017f9e5bc56bcedab823)) +* update dependency org.apache.maven.plugins:maven-source-plugin to v3.2.0 ([#60](https://www.github.com/googleapis/java-shared-config/issues/60)) ([8621c23](https://www.github.com/googleapis/java-shared-config/commit/8621c23260e3751dfc14510d2035fa55685d2d10)) +* update dependency org.jacoco:jacoco-maven-plugin to v0.8.5 ([#46](https://www.github.com/googleapis/java-shared-config/issues/46)) ([f2fcc2f](https://www.github.com/googleapis/java-shared-config/commit/f2fcc2f4ba259cda43daeb62b23c943c4c87ac7c)) + +### [0.2.1](https://www.github.com/googleapis/java-shared-config/compare/v0.2.0...v0.2.1) (2019-10-08) + + +### Bug Fixes + +* specify surefire-junit4 build dependency for offline tests ([#37](https://www.github.com/googleapis/java-shared-config/issues/37)) ([f93f18e](https://www.github.com/googleapis/java-shared-config/commit/f93f18e)) + +## [0.2.0](https://www.github.com/googleapis/java-shared-config/compare/v0.1.4...v0.2.0) (2019-10-07) + + +### Features + +* enable clirr-maven-plugin ([#34](https://www.github.com/googleapis/java-shared-config/issues/34)) ([48cb08e](https://www.github.com/googleapis/java-shared-config/commit/48cb08e)) + +### [0.1.3](https://www.github.com/googleapis/java-shared-config/compare/v0.1.2...v0.1.3) (2019-09-20) + + +### Bug Fixes + +* add autovalue profiles ([#26](https://www.github.com/googleapis/java-shared-config/issues/26)) ([895bd68](https://www.github.com/googleapis/java-shared-config/commit/895bd68)) diff --git a/java-shared-config/README.md b/java-shared-config/README.md new file mode 100644 index 000000000000..f836bfc45328 --- /dev/null +++ b/java-shared-config/README.md @@ -0,0 +1,60 @@ +# Google Cloud Shared Build Configs + +Shared Maven build configuration for Google Cloud Java client libraries. +This is not intended for library users. + +[![Maven][maven-version-image]][maven-version-link] + +## Quickstart + +[//]: # ({x-version-update-start:google-cloud-shared-config:released}) +If you are using Maven, use this artifact as your project's parent. +```xml + + + com.google.cloud + google-cloud-shared-config + 1.2.4 + + +``` +[//]: # ({x-version-update-end}) + +## Versioning + +This library follows [Semantic Versioning](http://semver.org/). + +It is currently in major version zero (``0.y.z``), which means that anything may change at any time +and the public API should not be considered stable. + +## Usages + +Declare this artifact as the parent of Maven projects of Google Cloud libraries. +This brings useful Maven plugins and their configurations to the Maven projects, +such as compilations, document generation, and library publication. + +### AutoValue + +If you want to use AutoValue in your project, place an empty file `EnableAutoValue.txt` +in the module that requires AutoValue's annotation processing. +Example pull request: https://github.com/googleapis/java-pubsub/pull/1761/files. + +## Contributing + +Contributions to this library are always welcome and highly encouraged. + +See [CONTRIBUTING.md][contributing] documentation for more information on how to get started. + +Please note that this project is released with a Contributor Code of Conduct. By participating in +this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more +information. + +## License + +Apache 2.0 - See [LICENSE][license] for more information. + +[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-shared-config.svg +[maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-shared-config&core=gav +[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md +[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE diff --git a/java-shared-config/java-shared-config/java.header b/java-shared-config/java-shared-config/java.header new file mode 100644 index 000000000000..d0970ba7d375 --- /dev/null +++ b/java-shared-config/java-shared-config/java.header @@ -0,0 +1,15 @@ +^/\*$ +^ \* Copyright \d\d\d\d,? Google (Inc\.|LLC)$ +^ \*$ +^ \* Licensed under the Apache License, Version 2\.0 \(the "License"\);$ +^ \* you may not use this file except in compliance with the License\.$ +^ \* You may obtain a copy of the License at$ +^ \*$ +^ \*[ ]+https?://www.apache.org/licenses/LICENSE-2\.0$ +^ \*$ +^ \* Unless required by applicable law or agreed to in writing, software$ +^ \* distributed under the License is distributed on an "AS IS" BASIS,$ +^ \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.$ +^ \* See the License for the specific language governing permissions and$ +^ \* limitations under the License\.$ +^ \*/$ diff --git a/java-shared-config/java-shared-config/license-checks.xml b/java-shared-config/java-shared-config/license-checks.xml new file mode 100644 index 000000000000..6597fced808e --- /dev/null +++ b/java-shared-config/java-shared-config/license-checks.xml @@ -0,0 +1,10 @@ + + + + + + + + diff --git a/java-shared-config/java-shared-config/pom.xml b/java-shared-config/java-shared-config/pom.xml new file mode 100644 index 000000000000..b22fe21174e2 --- /dev/null +++ b/java-shared-config/java-shared-config/pom.xml @@ -0,0 +1,747 @@ + + + 4.0.0 + com.google.cloud + google-cloud-shared-config + pom + 1.17.1-SNAPSHOT + Google Cloud Shared Config + https://github.com/googleapis/google-cloud-java + + Shared build configuration for Google Cloud Java libraries. + + + + com.google.cloud + native-image-shared-config + 1.17.1-SNAPSHOT + ../native-image-shared-config + + + + UTF-8 + + ${project.artifactId} + false + true + 1.11.0 + /java/docs/reference/ + 1.25.2 + + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${surefire.version} + + + + **/*SmokeTest.java + **/IT*.java + + sponge_log + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.5.0 + + + org.codehaus.mojo + extra-enforcer-rules + 1.9.0 + + + + + org.codehaus.mojo + exec-maven-plugin + 3.5.0 + + + -1 + + + + org.apache.maven.plugins + maven-failsafe-plugin + + ${surefire.version} + + 3600 + sponge_log + + **/IT*.java + **/*SmokeTest.java + + + + + org.apache.maven.surefire + surefire-junit47 + ${surefire.version} + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.4.2 + + + true + true + + true + true + + + ${project.artifactId} + ${project.groupId} + ${project.version} + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.13.0 + + 1.8 + 1.8 + UTF-8 + -Xlint:unchecked + -Xlint:deprecation + true + + + + org.apache.maven.plugins + maven-site-plugin + 3.21.0 + + true + + + + org.jacoco + jacoco-maven-plugin + 0.8.12 + + + org.apache.maven.plugins + maven-dependency-plugin + 3.8.1 + + + javax.annotation:javax.annotation-api + + + + io.grpc:* + com.google.protobuf:* + com.google.api.grpc:* + + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.6.0 + + + org.codehaus.mojo + clirr-maven-plugin + 2.8 + + + com.spotify.fmt + fmt-maven-plugin + 2.25 + + + true + + + + com.google.googlejavaformat + google-java-format + ${google-java-format.version} + + + + + org.codehaus.mojo + flatten-maven-plugin + 1.3.0 + + + + flatten + process-resources + + flatten + + + + + flatten.clean + clean + + clean + + + + + oss + all + + remove + + + + + org.apache.maven.plugins + maven-clean-plugin + 3.4.0 + + + org.apache.maven.plugins + maven-install-plugin + 3.1.3 + + + org.apache.maven.plugins + maven-deploy-plugin + 3.1.4 + + + + + + org.apache.maven.plugins + maven-surefire-plugin + + + org.apache.maven.plugins + maven-enforcer-plugin + + + enforce + + enforce + + + + + [3.0,) + + + [1.7,) + + + + + compile + provided + + true + true + + + + + + + + org.codehaus.mojo + exec-maven-plugin + + + + java + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + + + + integration-test + verify + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + + test-jar + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + org.apache.maven.plugins + maven-site-plugin + + + org.jacoco + jacoco-maven-plugin + + + + prepare-agent + + + + report + test + + report + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + add-main-proto-resources + generate-resources + + add-resource + + + + + src/main/proto + + + + + + add-test-proto-resources + generate-test-resources + + add-test-resource + + + + + src/test/proto + + + + + + + + + + + + + org.apache.maven.plugins + maven-project-info-reports-plugin + 3.8.0 + + + + index + dependency-info + team + ci-management + issue-management + licenses + scm + dependency-management + distribution-management + summary + modules + + + + + true + ${site.installationModule} + jar + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.11.2 + + + html + + javadoc + aggregate + aggregate-jar + + + + + none + protected + true + ${project.build.directory}/javadoc + + + Test helpers packages + com.google.cloud.testing + + + SPI packages + com.google.cloud.spi* + + + + + https://googleapis.dev/java/api-common/ + https://googleapis.dev/java/gax/ + https://googleapis.dev/java/google-auth-library/ + + https://developers.google.com/protocol-buffers/docs/reference/java/ + https://googleapis.github.io/common-protos-java/apidocs/ + https://grpc.io/grpc-java/javadoc/ + + + + + org.apache.maven.plugins + maven-jxr-plugin + 3.6.0 + + true + + + + aggregate + ${report.jxr.inherited} + + jxr + aggregate + + + + + + + + + + + + com.google.auto.value + auto-value-annotations + ${auto-value.version} + + + + + + + allow-snapshots + + + sonatype-snapshots + https://google.oss.sonatype.org/content/repositories/snapshots + + false + + + true + + + + + + + checkstyle-tests + + [1.11,) + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + 3.6.0 + + + com.puppycrawl.tools + checkstyle + 10.21.2 + + + + + checkstyle + validate + + check + + + java.header + license-checks.xml + true + true + error + true + true + + + src/main + + + src/test + + + + + + + + + + + enable-integration-tests + + false + + + + + + docFX + + + + docFX + + + + + ${project.build.directory}/docfx-yml + ${project.artifactId} + 17 + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.11.2 + + com.microsoft.doclet.DocFxDoclet + false + + -outputpath ${outputpath} + -projectname ${projectname} + + none + protected + true + ${source} + + + + + + + + autovalue-java8 + + [1.8,) + + ${basedir}/EnableAutoValue.txt + + + + + + maven-compiler-plugin + + + + com.google.auto.value + auto-value + ${auto-value.version} + + + + com.google.auto.service + auto-service-annotations + 1.1.1 + + + + + + + + + + + compiler-release-8 + + [9,] + + + 8 + + + + + airlock-trusted + + + airlock + Airlock + artifactregistry://us-maven.pkg.dev/artifact-foundry-prod/maven-3p-trusted + default + + true + + + true + + + + central + + Maven Central remote repository + https://repo1.maven.org/maven2 + default + + false + + + false + + + + + + clirr-compatibility-check + + + + [1.8,) + + + + + org.codehaus.mojo + clirr-maven-plugin + + clirr-ignored-differences.xml + true + + + + + check + + + + + + + + + animal-sniffer + + + [1.8,) + + + + + org.codehaus.mojo + animal-sniffer-maven-plugin + 1.24 + + + java8 + + check + + + + org.codehaus.mojo.signature + java18 + 1.0 + + + + + + + + + + + flatten + + + + org.codehaus.mojo + flatten-maven-plugin + + + + + + diff --git a/java-shared-config/native-image-shared-config/pom.xml b/java-shared-config/native-image-shared-config/pom.xml new file mode 100644 index 000000000000..04dc3ba80d44 --- /dev/null +++ b/java-shared-config/native-image-shared-config/pom.xml @@ -0,0 +1,292 @@ + + + 4.0.0 + com.google.cloud + native-image-shared-config + pom + 1.17.1-SNAPSHOT + Native Image Shared Config + https://github.com/googleapis/google-cloud-java + + Native Image build configuration for Google Cloud Java libraries. + + + + chingor13 + Jeff Ching + chingor@google.com + Google + + Developer + + + + + Google LLC + + + scm:git:git@github.com:googleapis/google-cloud-java.git + scm:git:git@github.com:googleapis/google-cloud-java.git + https://github.com/googleapis/google-cloud-java + HEAD + + + + https://github.com/googleapis/google-cloud-java/issues + GitHub Issues + + + + + sonatype-nexus-snapshots + https://google.oss.sonatype.org/content/repositories/snapshots + + + sonatype-nexus-staging + https://google.oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + Apache-2.0 + https://www.apache.org/licenses/LICENSE-2.0.txt + + + + + 3.5.2 + 25.0.0 + 0.10.6 + 5.11.4 + 1.3.0 + org.graalvm.sdk:nativeimage + + + + + + org.graalvm.sdk + graal-sdk + ${graal-sdk-nativeimage.version} + + + org.graalvm.sdk + nativeimage + ${graal-sdk-nativeimage.version} + + + + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.7.0 + true + + ossrh + https://google.oss.sonatype.org/ + false + 15 + + + + org.apache.maven.plugins + maven-deploy-plugin + 3.1.4 + + + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.6.3 + false + + + enforce + + true + + + + + + + + + + release-sonatype + + + + !artifact-registry-url + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + + + + + + + release-gcp-artifact-registry + + artifactregistry://undefined-artifact-registry-url-value + + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + + + release + + + performRelease + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.3.1 + + + attach-sources + + jar-no-fork + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.11.2 + + + attach-javadocs + + jar + + + none + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.7 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + + + + native + + + + org.opentest4j + opentest4j + ${opentest4j.version} + + + org.junit.vintage + junit-vintage-engine + ${junit-vintage-engine.version} + test + + + + + + org.apache.maven.plugins + maven-surefire-plugin + ${surefire.version} + + + org.junit.vintage + junit-vintage-engine + ${junit-vintage-engine.version} + + + + + + + **/IT*.java + + **/*ClientTest.java + + + + + org.graalvm.buildtools + native-maven-plugin + ${native-maven-plugin.version} + true + + + test-native + + test + + test + + + + + --no-fallback + --no-server + + + + + + + + diff --git a/java-shared-config/pom.xml b/java-shared-config/pom.xml new file mode 100644 index 000000000000..067a535007dc --- /dev/null +++ b/java-shared-config/pom.xml @@ -0,0 +1,105 @@ + + 4.0.0 + com.google.cloud + google-cloud-shared-config-parent + pom + + Shared build configuration for Google Cloud Java libraries (Parent) + + + 0.1.0-SNAPSHOT + + + native-image-shared-config + java-shared-config + + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.3.1 + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.11.2 + + + + + + org.apache.maven.plugins + maven-deploy-plugin + 3.1.4 + + + true + + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.6.3 + + + enforce + + true + + + + + + + + + sonatype-nexus-snapshots + https://google.oss.sonatype.org/content/repositories/snapshots + + + sonatype-nexus-staging + https://google.oss.sonatype.org/service/local/staging/deploy/maven2/ + + + + + + + release-staging-repository + + + + !gpg.executable + + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.7.0 + true + + sonatype-nexus-staging + https://google.oss.sonatype.org/ + false + + + + + + + bulkTests + + true + + + + + \ No newline at end of file diff --git a/java-shared-config/settings.xml b/java-shared-config/settings.xml new file mode 100644 index 000000000000..5df3ab0b2a1a --- /dev/null +++ b/java-shared-config/settings.xml @@ -0,0 +1,23 @@ + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 418733084c36..d4d062e47f67 100644 --- a/pom.xml +++ b/pom.xml @@ -222,6 +222,7 @@ java-service-usage java-servicedirectory java-servicehealth + java-shared-config java-shell java-shopping-css java-shopping-merchant-accounts diff --git a/sdk-platform-java/gapic-generator-java-pom-parent/pom.xml b/sdk-platform-java/gapic-generator-java-pom-parent/pom.xml index 5dc35542ccdc..d21454567dfb 100644 --- a/sdk-platform-java/gapic-generator-java-pom-parent/pom.xml +++ b/sdk-platform-java/gapic-generator-java-pom-parent/pom.xml @@ -15,7 +15,8 @@ com.google.cloud google-cloud-shared-config - 1.17.0 + 1.17.1-SNAPSHOT + ../../java-shared-config/java-shared-config/pom.xml diff --git a/sdk-platform-java/sdk-platform-java-config/pom.xml b/sdk-platform-java/sdk-platform-java-config/pom.xml index 1eacdd319448..38bebe77330e 100644 --- a/sdk-platform-java/sdk-platform-java-config/pom.xml +++ b/sdk-platform-java/sdk-platform-java-config/pom.xml @@ -13,8 +13,8 @@ com.google.cloud google-cloud-shared-config - 1.17.0 - + 1.17.1-SNAPSHOT + ../../java-shared-config/java-shared-config/pom.xml diff --git a/versions.txt b/versions.txt index 65fea36e1238..6def2aa45fc0 100644 --- a/versions.txt +++ b/versions.txt @@ -1059,6 +1059,7 @@ google-cloud-developer-knowledge:0.1.0:0.2.0-SNAPSHOT proto-google-cloud-developer-knowledge-v1:0.1.0:0.2.0-SNAPSHOT grpc-google-cloud-developer-knowledge-v1:0.1.0:0.2.0-SNAPSHOT google-cloud-backstory:0.1.0:0.2.0-SNAPSHOT +google-cloud-shared-config:1.17.0:1.17.1-SNAPSHOT proto-google-cloud-agentregistry-v1:0.0.0:0.1.0-SNAPSHOT grpc-google-cloud-agentregistry-v1:0.0.0:0.1.0-SNAPSHOT google-cloud-agentregistry:0.0.0:0.1.0-SNAPSHOT From 1c9cd69631cea51d0e4fd2169edee15d56b5e632 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Mon, 22 Jun 2026 19:35:51 +0000 Subject: [PATCH 47/82] ci(sdk-platform-java): use macos-15-intel (x64) to support Temurin Java 8 nightly (#13538) Manual run passes: https://github.com/googleapis/google-cloud-java/actions/runs/27971965629 --- .github/workflows/sdk-platform-java-nightly.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sdk-platform-java-nightly.yaml b/.github/workflows/sdk-platform-java-nightly.yaml index 27edfd43e5a0..91efdc0ed3c5 100644 --- a/.github/workflows/sdk-platform-java-nightly.yaml +++ b/.github/workflows/sdk-platform-java-nightly.yaml @@ -41,10 +41,11 @@ jobs: --title "Nightly build for Java ${{ matrix.java }} on ${{ matrix.os }} failed." \ --body "The build has failed : https://github.com/googleapis/google-cloud-java/actions/runs/${GITHUB_RUN_ID}" nightly-java8: # Compile with JDK 11. Run tests with JDK 8. + # We use macos-15-intel (x64) because Temurin JDK 8 is not available for macOS arm64 (macos-15) strategy: fail-fast: false matrix: - os: [ macos-15, ubuntu-24.04, windows-2025 ] + os: [ macos-15-intel, ubuntu-24.04, windows-2025 ] runs-on: ${{ matrix.os }} steps: - run: git config --global core.longpaths true From a7d8f75be7a7972f687d962ac807219983ab2e52 Mon Sep 17 00:00:00 2001 From: cloud-java-bot <122572305+cloud-java-bot@users.noreply.github.com> Date: Mon, 22 Jun 2026 15:50:45 -0400 Subject: [PATCH 48/82] chore: update googleapis commitish to 4679f0c (#13533) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated googleapis commitish in librarian.yaml and generation_config.yaml to https://github.com/googleapis/googleapis/commit/4679f0c8e33ba14d27612bd607649e1f867a881c 💡 **Note:** Please merge or close this PR so that the daily update workflow can continue to run successfully the next day. Alternatively, you can manually trigger the workflow once this PR is merged or closed. --- generation_config.yaml | 2 +- .../dataform/v1beta1/DataformClient.java | 641 +++++- .../dataform/v1beta1/DataformSettings.java | 80 +- .../dataform/v1beta1/gapic_metadata.json | 9 + .../dataform/v1beta1/stub/DataformStub.java | 40 + .../v1beta1/stub/DataformStubSettings.java | 236 +- .../v1beta1/stub/GrpcDataformStub.java | 155 ++ .../v1beta1/stub/HttpJsonDataformStub.java | 253 +++ .../reflect-config.json | 153 ++ .../v1beta1/DataformClientHttpJsonTest.java | 290 +++ .../dataform/v1beta1/DataformClientTest.java | 283 +++ .../dataform/v1beta1/MockDataformImpl.java | 65 + .../cloud/dataform/v1beta1/DataformGrpc.java | 538 ++++- ...teRepositoryAccessTokenStatusResponse.java | 23 + .../dataform/v1beta1/CreateFolderRequest.java | 49 +- .../v1beta1/CreateFolderRequestOrBuilder.java | 14 +- .../v1beta1/CreateTeamFolderRequest.java | 49 +- .../CreateTeamFolderRequestOrBuilder.java | 14 +- .../cloud/dataform/v1beta1/DataformProto.java | 1742 ++++++++------- .../v1beta1/DeleteFolderTreeMetadata.java | 1700 +++++++++++++++ .../DeleteFolderTreeMetadataOrBuilder.java | 181 ++ .../v1beta1/DeleteFolderTreeRequest.java | 739 +++++++ .../DeleteFolderTreeRequestOrBuilder.java | 79 + .../DeleteRepositoryLongRunningMetadata.java | 1901 +++++++++++++++++ ...epositoryLongRunningMetadataOrBuilder.java | 211 ++ .../DeleteRepositoryLongRunningRequest.java | 744 +++++++ ...RepositoryLongRunningRequestOrBuilder.java | 77 + .../DeleteRepositoryLongRunningResponse.java | 408 ++++ ...epositoryLongRunningResponseOrBuilder.java | 27 + .../v1beta1/DeleteTeamFolderTreeRequest.java | 743 +++++++ .../DeleteTeamFolderTreeRequestOrBuilder.java | 79 + .../v1beta1/DirectoryContentsView.java | 196 ++ .../dataform/v1beta1/DirectoryEntry.java | 351 ++- .../v1beta1/DirectoryEntryOrBuilder.java | 55 +- .../v1beta1/FilesystemEntryMetadata.java | 817 +++++++ .../FilesystemEntryMetadataOrBuilder.java | 82 + .../google/cloud/dataform/v1beta1/Folder.java | 28 +- .../dataform/v1beta1/FolderOrBuilder.java | 8 +- .../QueryDirectoryContentsRequest.java | 200 ++ ...ueryDirectoryContentsRequestOrBuilder.java | 36 + .../v1beta1/QueryFolderContentsRequest.java | 70 +- .../QueryFolderContentsRequestOrBuilder.java | 20 +- .../QueryTeamFolderContentsRequest.java | 70 +- ...eryTeamFolderContentsRequestOrBuilder.java | 20 +- .../v1beta1/QueryUserRootContentsRequest.java | 70 +- ...QueryUserRootContentsRequestOrBuilder.java | 20 +- .../cloud/dataform/v1beta1/Repository.java | 656 +++++- .../v1beta1/SearchTeamFoldersRequest.java | 80 +- .../SearchTeamFoldersRequestOrBuilder.java | 22 +- .../v1beta1/WorkflowInvocationAction.java | 63 +- .../cloud/dataform/v1beta1/dataform.proto | 333 ++- .../AsyncDeleteFolderTree.java | 50 + .../AsyncDeleteFolderTreeLRO.java | 52 + .../SyncDeleteFolderTree.java | 47 + ...SyncDeleteFolderTreeFoldernameBoolean.java | 43 + .../SyncDeleteFolderTreeStringBoolean.java | 43 + .../AsyncDeleteRepositoryLongRunning.java | 51 + .../AsyncDeleteRepositoryLongRunningLRO.java | 53 + .../SyncDeleteRepositoryLongRunning.java | 48 + ...itoryLongRunningRepositorynameBoolean.java | 44 + ...eteRepositoryLongRunningStringBoolean.java | 44 + .../AsyncDeleteTeamFolderTree.java | 51 + .../AsyncDeleteTeamFolderTreeLRO.java | 52 + .../SyncDeleteTeamFolderTree.java | 47 + ...SyncDeleteTeamFolderTreeStringBoolean.java | 43 + ...teTeamFolderTreeTeamfoldernameBoolean.java | 43 + .../AsyncQueryDirectoryContents.java | 2 + .../AsyncQueryDirectoryContentsPaged.java | 2 + .../SyncQueryDirectoryContents.java | 2 + .../SyncDeleteTeamFolderTree.java} | 10 +- .../SyncDeleteTeamFolderTree.java} | 10 +- .../reflect-config.json | 18 + .../networkmanagement/v1/CloudRunJobInfo.java | 975 +++++++++ .../v1/CloudRunJobInfoOrBuilder.java | 106 + .../networkmanagement/v1/DeliverInfo.java | 23 + .../cloud/networkmanagement/v1/DropInfo.java | 23 + .../cloud/networkmanagement/v1/Endpoint.java | 249 ++- .../v1/EndpointOrBuilder.java | 34 + .../networkmanagement/v1/InstanceInfo.java | 22 +- .../v1/InstanceInfoOrBuilder.java | 6 +- .../v1/LoadBalancerInfo.java | 14 +- .../v1/LoadBalancerInfoOrBuilder.java | 4 +- .../cloud/networkmanagement/v1/RouteInfo.java | 46 +- .../v1/RouteInfoOrBuilder.java | 14 +- .../cloud/networkmanagement/v1/Step.java | 343 ++- .../networkmanagement/v1/StepOrBuilder.java | 41 +- .../networkmanagement/v1/TestOuterClass.java | 63 +- .../networkmanagement/v1/TraceProto.java | 176 +- .../v1/connectivity_test.proto | 7 + .../cloud/networkmanagement/v1/trace.proto | 25 + librarian.yaml | 4 +- 91 files changed, 16264 insertions(+), 1388 deletions(-) create mode 100644 java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderTreeMetadata.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderTreeMetadataOrBuilder.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderTreeRequest.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderTreeRequestOrBuilder.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningMetadata.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningMetadataOrBuilder.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningRequest.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningRequestOrBuilder.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningResponse.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningResponseOrBuilder.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteTeamFolderTreeRequest.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteTeamFolderTreeRequestOrBuilder.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DirectoryContentsView.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FilesystemEntryMetadata.java create mode 100644 java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FilesystemEntryMetadataOrBuilder.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/AsyncDeleteFolderTree.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/AsyncDeleteFolderTreeLRO.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/SyncDeleteFolderTree.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/SyncDeleteFolderTreeFoldernameBoolean.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/SyncDeleteFolderTreeStringBoolean.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/AsyncDeleteRepositoryLongRunning.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/AsyncDeleteRepositoryLongRunningLRO.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/SyncDeleteRepositoryLongRunning.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/SyncDeleteRepositoryLongRunningRepositorynameBoolean.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/SyncDeleteRepositoryLongRunningStringBoolean.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTree.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTreeLRO.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTree.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeStringBoolean.java create mode 100644 java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeTeamfoldernameBoolean.java rename java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataformsettings/{movefolder/SyncMoveFolder.java => deleteteamfoldertree/SyncDeleteTeamFolderTree.java} (87%) rename java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/stub/dataformstubsettings/{movefolder/SyncMoveFolder.java => deleteteamfoldertree/SyncDeleteTeamFolderTree.java} (86%) create mode 100644 java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CloudRunJobInfo.java create mode 100644 java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CloudRunJobInfoOrBuilder.java diff --git a/generation_config.yaml b/generation_config.yaml index dd89c38cc1b2..f790a33d2426 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,4 +1,4 @@ -googleapis_commitish: 1df255f1feb82e85ec0c8a3b558857e8ca3d3372 +googleapis_commitish: 4679f0c8e33ba14d27612bd607649e1f867a881c libraries_bom_version: 26.83.0 is_monorepo: true libraries: diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java index 1f163e401450..0427ab814d13 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformClient.java @@ -155,6 +155,26 @@ *

            DeleteTeamFolderTree

            Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and WorkflowConfigs).

            + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • deleteTeamFolderTreeAsync(DeleteTeamFolderTreeRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • deleteTeamFolderTreeAsync(TeamFolderName name, boolean force) + *

            • deleteTeamFolderTreeAsync(String name, boolean force) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • deleteTeamFolderTreeOperationCallable() + *

            • deleteTeamFolderTreeCallable() + *

            + *

            QueryTeamFolderContents

            Returns the contents of a given TeamFolder.

            @@ -265,6 +285,26 @@ *

            DeleteFolderTree

            Deletes a Folder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and WorkflowConfigs).

            + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • deleteFolderTreeAsync(DeleteFolderTreeRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • deleteFolderTreeAsync(FolderName name, boolean force) + *

            • deleteFolderTreeAsync(String name, boolean force) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • deleteFolderTreeOperationCallable() + *

            • deleteFolderTreeCallable() + *

            + *

            QueryFolderContents

            Returns the contents of a given Folder.

            @@ -422,6 +462,26 @@ *

            DeleteRepositoryLongRunning

            Deletes a single repository asynchronously.

            + *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            + *
              + *
            • deleteRepositoryLongRunningAsync(DeleteRepositoryLongRunningRequest request) + *

            + *

            Methods that return long-running operations have "Async" method variants that return `OperationFuture`, which is used to track polling of the service.

            + *
              + *
            • deleteRepositoryLongRunningAsync(RepositoryName name, boolean force) + *

            • deleteRepositoryLongRunningAsync(String name, boolean force) + *

            + *

            Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

            + *
              + *
            • deleteRepositoryLongRunningOperationCallable() + *

            • deleteRepositoryLongRunningCallable() + *

            + *

            MoveRepository

            Moves a Repository to a new location.

            @@ -1304,8 +1364,9 @@ *

            ListLocations

            Lists information about the supported locations for this service.This method can be called in two ways: - *

            * **List all public locations:** Use the path `GET /v1/locations`.* **List project-visible locations:** Use the path`GET /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or other locations specifically visibleto the project.

            Lists information about the supported locations for this service. + *

            This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

            For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

            *

            Request object method variants only take one parameter, a request object, which must be constructed before the call.

            *
              @@ -1888,6 +1949,174 @@ public final UnaryCallable deleteTeamFolderCalla return stub.deleteTeamFolderCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). + * + *

              Sample code: + * + *

              {@code
              +   * // This snippet has been automatically generated and should be regarded as a code template only.
              +   * // It will require modifications to work:
              +   * // - It may require correct/in-range values for request initialization.
              +   * // - It may require specifying regional endpoints when creating the service client as shown in
              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
              +   * try (DataformClient dataformClient = DataformClient.create()) {
              +   *   TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]");
              +   *   boolean force = true;
              +   *   dataformClient.deleteTeamFolderTreeAsync(name, force).get();
              +   * }
              +   * }
              + * + * @param name Required. The TeamFolder's name. Format: + * projects/{project}/locations/{location}/teamFolders/{team_folder} + * @param force Optional. If `false` (default): The operation will fail if any Repository within + * the folder hierarchy has associated Release Configs or Workflow Configs. + *

              If `true`: The operation will attempt to delete everything, including any Release + * Configs and Workflow Configs linked to Repositories within the folder hierarchy. This + * permanently removes schedules and resources. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteTeamFolderTreeAsync( + TeamFolderName name, boolean force) { + DeleteTeamFolderTreeRequest request = + DeleteTeamFolderTreeRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setForce(force) + .build(); + return deleteTeamFolderTreeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). + * + *

              Sample code: + * + *

              {@code
              +   * // This snippet has been automatically generated and should be regarded as a code template only.
              +   * // It will require modifications to work:
              +   * // - It may require correct/in-range values for request initialization.
              +   * // - It may require specifying regional endpoints when creating the service client as shown in
              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
              +   * try (DataformClient dataformClient = DataformClient.create()) {
              +   *   String name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString();
              +   *   boolean force = true;
              +   *   dataformClient.deleteTeamFolderTreeAsync(name, force).get();
              +   * }
              +   * }
              + * + * @param name Required. The TeamFolder's name. Format: + * projects/{project}/locations/{location}/teamFolders/{team_folder} + * @param force Optional. If `false` (default): The operation will fail if any Repository within + * the folder hierarchy has associated Release Configs or Workflow Configs. + *

              If `true`: The operation will attempt to delete everything, including any Release + * Configs and Workflow Configs linked to Repositories within the folder hierarchy. This + * permanently removes schedules and resources. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteTeamFolderTreeAsync( + String name, boolean force) { + DeleteTeamFolderTreeRequest request = + DeleteTeamFolderTreeRequest.newBuilder().setName(name).setForce(force).build(); + return deleteTeamFolderTreeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). + * + *

              Sample code: + * + *

              {@code
              +   * // This snippet has been automatically generated and should be regarded as a code template only.
              +   * // It will require modifications to work:
              +   * // - It may require correct/in-range values for request initialization.
              +   * // - It may require specifying regional endpoints when creating the service client as shown in
              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
              +   * try (DataformClient dataformClient = DataformClient.create()) {
              +   *   DeleteTeamFolderTreeRequest request =
              +   *       DeleteTeamFolderTreeRequest.newBuilder()
              +   *           .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString())
              +   *           .setForce(true)
              +   *           .build();
              +   *   dataformClient.deleteTeamFolderTreeAsync(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 deleteTeamFolderTreeAsync( + DeleteTeamFolderTreeRequest request) { + return deleteTeamFolderTreeOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). + * + *

              Sample code: + * + *

              {@code
              +   * // This snippet has been automatically generated and should be regarded as a code template only.
              +   * // It will require modifications to work:
              +   * // - It may require correct/in-range values for request initialization.
              +   * // - It may require specifying regional endpoints when creating the service client as shown in
              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
              +   * try (DataformClient dataformClient = DataformClient.create()) {
              +   *   DeleteTeamFolderTreeRequest request =
              +   *       DeleteTeamFolderTreeRequest.newBuilder()
              +   *           .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString())
              +   *           .setForce(true)
              +   *           .build();
              +   *   OperationFuture future =
              +   *       dataformClient.deleteTeamFolderTreeOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable + deleteTeamFolderTreeOperationCallable() { + return stub.deleteTeamFolderTreeOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). + * + *

              Sample code: + * + *

              {@code
              +   * // This snippet has been automatically generated and should be regarded as a code template only.
              +   * // It will require modifications to work:
              +   * // - It may require correct/in-range values for request initialization.
              +   * // - It may require specifying regional endpoints when creating the service client as shown in
              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
              +   * try (DataformClient dataformClient = DataformClient.create()) {
              +   *   DeleteTeamFolderTreeRequest request =
              +   *       DeleteTeamFolderTreeRequest.newBuilder()
              +   *           .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString())
              +   *           .setForce(true)
              +   *           .build();
              +   *   ApiFuture future =
              +   *       dataformClient.deleteTeamFolderTreeCallable().futureCall(request);
              +   *   // Do something.
              +   *   future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable + deleteTeamFolderTreeCallable() { + return stub.deleteTeamFolderTreeCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns the contents of a given TeamFolder. @@ -1909,7 +2138,7 @@ public final UnaryCallable deleteTeamFolderCalla * } * } * - * @param teamFolder Required. Name of the team_folder whose contents to list. Format: + * @param teamFolder Required. Resource name of the TeamFolder to list contents for. Format: * `projects/*/locations/*/teamFolders/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1943,7 +2172,7 @@ public final QueryTeamFolderContentsPagedResponse queryTeamFolderContents( * } * } * - * @param teamFolder Required. Name of the team_folder whose contents to list. Format: + * @param teamFolder Required. Resource name of the TeamFolder to list contents for. Format: * `projects/*/locations/*/teamFolders/*`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2612,6 +2841,172 @@ public final UnaryCallable deleteFolderCallable() { return stub.deleteFolderCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Folder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). + * + *

              Sample code: + * + *

              {@code
              +   * // This snippet has been automatically generated and should be regarded as a code template only.
              +   * // It will require modifications to work:
              +   * // - It may require correct/in-range values for request initialization.
              +   * // - It may require specifying regional endpoints when creating the service client as shown in
              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
              +   * try (DataformClient dataformClient = DataformClient.create()) {
              +   *   FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]");
              +   *   boolean force = true;
              +   *   dataformClient.deleteFolderTreeAsync(name, force).get();
              +   * }
              +   * }
              + * + * @param name Required. The Folder's name. Format: + * projects/{project}/locations/{location}/folders/{folder} + * @param force Optional. If `false` (default): The operation will fail if any Repository within + * the folder hierarchy has associated Release Configs or Workflow Configs. + *

              If `true`: The operation will attempt to delete everything, including any Release + * Configs and Workflow Configs linked to Repositories within the folder hierarchy. This + * permanently removes schedules and resources. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFolderTreeAsync( + FolderName name, boolean force) { + DeleteFolderTreeRequest request = + DeleteFolderTreeRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setForce(force) + .build(); + return deleteFolderTreeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Folder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). + * + *

              Sample code: + * + *

              {@code
              +   * // This snippet has been automatically generated and should be regarded as a code template only.
              +   * // It will require modifications to work:
              +   * // - It may require correct/in-range values for request initialization.
              +   * // - It may require specifying regional endpoints when creating the service client as shown in
              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
              +   * try (DataformClient dataformClient = DataformClient.create()) {
              +   *   String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString();
              +   *   boolean force = true;
              +   *   dataformClient.deleteFolderTreeAsync(name, force).get();
              +   * }
              +   * }
              + * + * @param name Required. The Folder's name. Format: + * projects/{project}/locations/{location}/folders/{folder} + * @param force Optional. If `false` (default): The operation will fail if any Repository within + * the folder hierarchy has associated Release Configs or Workflow Configs. + *

              If `true`: The operation will attempt to delete everything, including any Release + * Configs and Workflow Configs linked to Repositories within the folder hierarchy. This + * permanently removes schedules and resources. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteFolderTreeAsync( + String name, boolean force) { + DeleteFolderTreeRequest request = + DeleteFolderTreeRequest.newBuilder().setName(name).setForce(force).build(); + return deleteFolderTreeAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Folder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). + * + *

              Sample code: + * + *

              {@code
              +   * // This snippet has been automatically generated and should be regarded as a code template only.
              +   * // It will require modifications to work:
              +   * // - It may require correct/in-range values for request initialization.
              +   * // - It may require specifying regional endpoints when creating the service client as shown in
              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
              +   * try (DataformClient dataformClient = DataformClient.create()) {
              +   *   DeleteFolderTreeRequest request =
              +   *       DeleteFolderTreeRequest.newBuilder()
              +   *           .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString())
              +   *           .setForce(true)
              +   *           .build();
              +   *   dataformClient.deleteFolderTreeAsync(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 deleteFolderTreeAsync( + DeleteFolderTreeRequest request) { + return deleteFolderTreeOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Folder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). + * + *

              Sample code: + * + *

              {@code
              +   * // This snippet has been automatically generated and should be regarded as a code template only.
              +   * // It will require modifications to work:
              +   * // - It may require correct/in-range values for request initialization.
              +   * // - It may require specifying regional endpoints when creating the service client as shown in
              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
              +   * try (DataformClient dataformClient = DataformClient.create()) {
              +   *   DeleteFolderTreeRequest request =
              +   *       DeleteFolderTreeRequest.newBuilder()
              +   *           .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString())
              +   *           .setForce(true)
              +   *           .build();
              +   *   OperationFuture future =
              +   *       dataformClient.deleteFolderTreeOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable + deleteFolderTreeOperationCallable() { + return stub.deleteFolderTreeOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a Folder with its contents (Folders, Repositories, Workspaces, ReleaseConfigs, and + * WorkflowConfigs). + * + *

              Sample code: + * + *

              {@code
              +   * // This snippet has been automatically generated and should be regarded as a code template only.
              +   * // It will require modifications to work:
              +   * // - It may require correct/in-range values for request initialization.
              +   * // - It may require specifying regional endpoints when creating the service client as shown in
              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
              +   * try (DataformClient dataformClient = DataformClient.create()) {
              +   *   DeleteFolderTreeRequest request =
              +   *       DeleteFolderTreeRequest.newBuilder()
              +   *           .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString())
              +   *           .setForce(true)
              +   *           .build();
              +   *   ApiFuture future = dataformClient.deleteFolderTreeCallable().futureCall(request);
              +   *   // Do something.
              +   *   future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable deleteFolderTreeCallable() { + return stub.deleteFolderTreeCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns the contents of a given Folder. @@ -2633,7 +3028,7 @@ public final UnaryCallable deleteFolderCallable() { * } * } * - * @param folder Required. Name of the folder whose contents to list. Format: + * @param folder Required. Resource name of the Folder to list contents for. Format: * projects/*/locations/*/folders/* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2666,7 +3061,7 @@ public final QueryFolderContentsPagedResponse queryFolderContents(FolderName fol * } * } * - * @param folder Required. Name of the folder whose contents to list. Format: + * @param folder Required. Resource name of the Folder to list contents for. Format: * projects/*/locations/*/folders/* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2811,7 +3206,7 @@ public final QueryFolderContentsPagedResponse queryFolderContents( * } * } * - * @param location Required. Location of the user root folder whose contents to list. Format: + * @param location Required. Location of the user root folder to list contents for. Format: * projects/*/locations/* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -2845,7 +3240,7 @@ public final QueryUserRootContentsPagedResponse queryUserRootContents(LocationNa * } * } * - * @param location Required. Location of the user root folder whose contents to list. Format: + * @param location Required. Location of the user root folder to list contents for. Format: * projects/*/locations/* * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -3776,6 +4171,179 @@ public final UnaryCallable deleteRepositoryCalla return stub.deleteRepositoryCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single repository asynchronously. + * + *

              Sample code: + * + *

              {@code
              +   * // This snippet has been automatically generated and should be regarded as a code template only.
              +   * // It will require modifications to work:
              +   * // - It may require correct/in-range values for request initialization.
              +   * // - It may require specifying regional endpoints when creating the service client as shown in
              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
              +   * try (DataformClient dataformClient = DataformClient.create()) {
              +   *   RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
              +   *   boolean force = true;
              +   *   DeleteRepositoryLongRunningResponse response =
              +   *       dataformClient.deleteRepositoryLongRunningAsync(name, force).get();
              +   * }
              +   * }
              + * + * @param name Required. The repository's name. + * @param force Optional. If set to true, child resources of this repository (compilation results + * and workflow invocations) will also be deleted. Otherwise, the request will only succeed if + * the repository has no child resources. + *

              **Note:** *This flag doesn't support deletion of workspaces, release + * configs or workflow configs. If any of such resources exists in the repository, the request + * will fail.* + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + DeleteRepositoryLongRunningResponse, DeleteRepositoryLongRunningMetadata> + deleteRepositoryLongRunningAsync(RepositoryName name, boolean force) { + DeleteRepositoryLongRunningRequest request = + DeleteRepositoryLongRunningRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setForce(force) + .build(); + return deleteRepositoryLongRunningAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single repository asynchronously. + * + *

              Sample code: + * + *

              {@code
              +   * // This snippet has been automatically generated and should be regarded as a code template only.
              +   * // It will require modifications to work:
              +   * // - It may require correct/in-range values for request initialization.
              +   * // - It may require specifying regional endpoints when creating the service client as shown in
              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
              +   * try (DataformClient dataformClient = DataformClient.create()) {
              +   *   String name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString();
              +   *   boolean force = true;
              +   *   DeleteRepositoryLongRunningResponse response =
              +   *       dataformClient.deleteRepositoryLongRunningAsync(name, force).get();
              +   * }
              +   * }
              + * + * @param name Required. The repository's name. + * @param force Optional. If set to true, child resources of this repository (compilation results + * and workflow invocations) will also be deleted. Otherwise, the request will only succeed if + * the repository has no child resources. + *

              **Note:** *This flag doesn't support deletion of workspaces, release + * configs or workflow configs. If any of such resources exists in the repository, the request + * will fail.* + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture< + DeleteRepositoryLongRunningResponse, DeleteRepositoryLongRunningMetadata> + deleteRepositoryLongRunningAsync(String name, boolean force) { + DeleteRepositoryLongRunningRequest request = + DeleteRepositoryLongRunningRequest.newBuilder().setName(name).setForce(force).build(); + return deleteRepositoryLongRunningAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single repository asynchronously. + * + *

              Sample code: + * + *

              {@code
              +   * // This snippet has been automatically generated and should be regarded as a code template only.
              +   * // It will require modifications to work:
              +   * // - It may require correct/in-range values for request initialization.
              +   * // - It may require specifying regional endpoints when creating the service client as shown in
              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
              +   * try (DataformClient dataformClient = DataformClient.create()) {
              +   *   DeleteRepositoryLongRunningRequest request =
              +   *       DeleteRepositoryLongRunningRequest.newBuilder()
              +   *           .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
              +   *           .setForce(true)
              +   *           .build();
              +   *   DeleteRepositoryLongRunningResponse response =
              +   *       dataformClient.deleteRepositoryLongRunningAsync(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< + DeleteRepositoryLongRunningResponse, DeleteRepositoryLongRunningMetadata> + deleteRepositoryLongRunningAsync(DeleteRepositoryLongRunningRequest request) { + return deleteRepositoryLongRunningOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single repository asynchronously. + * + *

              Sample code: + * + *

              {@code
              +   * // This snippet has been automatically generated and should be regarded as a code template only.
              +   * // It will require modifications to work:
              +   * // - It may require correct/in-range values for request initialization.
              +   * // - It may require specifying regional endpoints when creating the service client as shown in
              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
              +   * try (DataformClient dataformClient = DataformClient.create()) {
              +   *   DeleteRepositoryLongRunningRequest request =
              +   *       DeleteRepositoryLongRunningRequest.newBuilder()
              +   *           .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
              +   *           .setForce(true)
              +   *           .build();
              +   *   OperationFuture
              +   *       future =
              +   *           dataformClient.deleteRepositoryLongRunningOperationCallable().futureCall(request);
              +   *   // Do something.
              +   *   DeleteRepositoryLongRunningResponse response = future.get();
              +   * }
              +   * }
              + */ + public final OperationCallable< + DeleteRepositoryLongRunningRequest, + DeleteRepositoryLongRunningResponse, + DeleteRepositoryLongRunningMetadata> + deleteRepositoryLongRunningOperationCallable() { + return stub.deleteRepositoryLongRunningOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single repository asynchronously. + * + *

              Sample code: + * + *

              {@code
              +   * // This snippet has been automatically generated and should be regarded as a code template only.
              +   * // It will require modifications to work:
              +   * // - It may require correct/in-range values for request initialization.
              +   * // - It may require specifying regional endpoints when creating the service client as shown in
              +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
              +   * try (DataformClient dataformClient = DataformClient.create()) {
              +   *   DeleteRepositoryLongRunningRequest request =
              +   *       DeleteRepositoryLongRunningRequest.newBuilder()
              +   *           .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString())
              +   *           .setForce(true)
              +   *           .build();
              +   *   ApiFuture future =
              +   *       dataformClient.deleteRepositoryLongRunningCallable().futureCall(request);
              +   *   // Do something.
              +   *   Operation response = future.get();
              +   * }
              +   * }
              + */ + public final UnaryCallable + deleteRepositoryLongRunningCallable() { + return stub.deleteRepositoryLongRunningCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Moves a Repository to a new location. @@ -5475,6 +6043,7 @@ public final UnaryCallable fetchFil * .setPath("path3433509") * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setView(DirectoryContentsView.forNumber(0)) * .build(); * for (DirectoryEntry element : dataformClient.queryDirectoryContents(request).iterateAll()) { * // doThingsWith(element); @@ -5511,6 +6080,7 @@ public final QueryDirectoryContentsPagedResponse queryDirectoryContents( * .setPath("path3433509") * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setView(DirectoryContentsView.forNumber(0)) * .build(); * ApiFuture future = * dataformClient.queryDirectoryContentsPagedCallable().futureCall(request); @@ -5547,6 +6117,7 @@ public final QueryDirectoryContentsPagedResponse queryDirectoryContents( * .setPath("path3433509") * .setPageSize(883849137) * .setPageToken("pageToken873572522") + * .setView(DirectoryContentsView.forNumber(0)) * .build(); * while (true) { * QueryDirectoryContentsResponse response = @@ -9179,13 +9750,19 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. * - *

              * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *

              Sample code: * @@ -9218,13 +9795,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. * - *

              * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *

              Sample code: * @@ -9257,13 +9840,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists information about the supported locations for this service.This method can be called in - * two ways: + * Lists information about the supported locations for this service. + * + *

              This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. * - *

              * **List all public locations:** Use the path `GET /v1/locations`.* - * **List project-visible locations:** Use the path`GET - * /v1/projects/{project_id}/locations`. This may include publiclocations as well as private or - * other locations specifically visibleto the project. + *

              For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. * *

              Sample code: * diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java index f69efdb5594d..a3bc9e4896bb 100644 --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/DataformSettings.java @@ -114,7 +114,7 @@ * *

              To configure the RetrySettings of a Long Running Operation method, create an * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to - * configure the RetrySettings for moveFolder: + * configure the RetrySettings for deleteTeamFolderTree: * *

              {@code
                * // This snippet has been automatically generated and should be regarded as a code template only.
              @@ -161,6 +161,17 @@ public UnaryCallSettings deleteTeamFolderSetting
                   return ((DataformStubSettings) getStubSettings()).deleteTeamFolderSettings();
                 }
               
              +  /** Returns the object with the settings used for calls to deleteTeamFolderTree. */
              +  public UnaryCallSettings deleteTeamFolderTreeSettings() {
              +    return ((DataformStubSettings) getStubSettings()).deleteTeamFolderTreeSettings();
              +  }
              +
              +  /** Returns the object with the settings used for calls to deleteTeamFolderTree. */
              +  public OperationCallSettings
              +      deleteTeamFolderTreeOperationSettings() {
              +    return ((DataformStubSettings) getStubSettings()).deleteTeamFolderTreeOperationSettings();
              +  }
              +
                 /** Returns the object with the settings used for calls to queryTeamFolderContents. */
                 public PagedCallSettings<
                         QueryTeamFolderContentsRequest,
              @@ -197,6 +208,17 @@ public UnaryCallSettings deleteFolderSettings() {
                   return ((DataformStubSettings) getStubSettings()).deleteFolderSettings();
                 }
               
              +  /** Returns the object with the settings used for calls to deleteFolderTree. */
              +  public UnaryCallSettings deleteFolderTreeSettings() {
              +    return ((DataformStubSettings) getStubSettings()).deleteFolderTreeSettings();
              +  }
              +
              +  /** Returns the object with the settings used for calls to deleteFolderTree. */
              +  public OperationCallSettings
              +      deleteFolderTreeOperationSettings() {
              +    return ((DataformStubSettings) getStubSettings()).deleteFolderTreeOperationSettings();
              +  }
              +
                 /** Returns the object with the settings used for calls to queryFolderContents. */
                 public PagedCallSettings<
                         QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsPagedResponse>
              @@ -251,6 +273,22 @@ public UnaryCallSettings deleteRepositorySetting
                   return ((DataformStubSettings) getStubSettings()).deleteRepositorySettings();
                 }
               
              +  /** Returns the object with the settings used for calls to deleteRepositoryLongRunning. */
              +  public UnaryCallSettings
              +      deleteRepositoryLongRunningSettings() {
              +    return ((DataformStubSettings) getStubSettings()).deleteRepositoryLongRunningSettings();
              +  }
              +
              +  /** Returns the object with the settings used for calls to deleteRepositoryLongRunning. */
              +  public OperationCallSettings<
              +          DeleteRepositoryLongRunningRequest,
              +          DeleteRepositoryLongRunningResponse,
              +          DeleteRepositoryLongRunningMetadata>
              +      deleteRepositoryLongRunningOperationSettings() {
              +    return ((DataformStubSettings) getStubSettings())
              +        .deleteRepositoryLongRunningOperationSettings();
              +  }
              +
                 /** Returns the object with the settings used for calls to moveRepository. */
                 public UnaryCallSettings moveRepositorySettings() {
                   return ((DataformStubSettings) getStubSettings()).moveRepositorySettings();
              @@ -723,6 +761,19 @@ public UnaryCallSettings.Builder deleteTeamFolde
                     return getStubSettingsBuilder().deleteTeamFolderSettings();
                   }
               
              +    /** Returns the builder for the settings used for calls to deleteTeamFolderTree. */
              +    public UnaryCallSettings.Builder
              +        deleteTeamFolderTreeSettings() {
              +      return getStubSettingsBuilder().deleteTeamFolderTreeSettings();
              +    }
              +
              +    /** Returns the builder for the settings used for calls to deleteTeamFolderTree. */
              +    public OperationCallSettings.Builder<
              +            DeleteTeamFolderTreeRequest, Empty, DeleteFolderTreeMetadata>
              +        deleteTeamFolderTreeOperationSettings() {
              +      return getStubSettingsBuilder().deleteTeamFolderTreeOperationSettings();
              +    }
              +
                   /** Returns the builder for the settings used for calls to queryTeamFolderContents. */
                   public PagedCallSettings.Builder<
                           QueryTeamFolderContentsRequest,
              @@ -759,6 +810,18 @@ public UnaryCallSettings.Builder deleteFolderSetting
                     return getStubSettingsBuilder().deleteFolderSettings();
                   }
               
              +    /** Returns the builder for the settings used for calls to deleteFolderTree. */
              +    public UnaryCallSettings.Builder
              +        deleteFolderTreeSettings() {
              +      return getStubSettingsBuilder().deleteFolderTreeSettings();
              +    }
              +
              +    /** Returns the builder for the settings used for calls to deleteFolderTree. */
              +    public OperationCallSettings.Builder
              +        deleteFolderTreeOperationSettings() {
              +      return getStubSettingsBuilder().deleteFolderTreeOperationSettings();
              +    }
              +
                   /** Returns the builder for the settings used for calls to queryFolderContents. */
                   public PagedCallSettings.Builder<
                           QueryFolderContentsRequest,
              @@ -817,6 +880,21 @@ public UnaryCallSettings.Builder deleteRepositor
                     return getStubSettingsBuilder().deleteRepositorySettings();
                   }
               
              +    /** Returns the builder for the settings used for calls to deleteRepositoryLongRunning. */
              +    public UnaryCallSettings.Builder
              +        deleteRepositoryLongRunningSettings() {
              +      return getStubSettingsBuilder().deleteRepositoryLongRunningSettings();
              +    }
              +
              +    /** Returns the builder for the settings used for calls to deleteRepositoryLongRunning. */
              +    public OperationCallSettings.Builder<
              +            DeleteRepositoryLongRunningRequest,
              +            DeleteRepositoryLongRunningResponse,
              +            DeleteRepositoryLongRunningMetadata>
              +        deleteRepositoryLongRunningOperationSettings() {
              +      return getStubSettingsBuilder().deleteRepositoryLongRunningOperationSettings();
              +    }
              +
                   /** Returns the builder for the settings used for calls to moveRepository. */
                   public UnaryCallSettings.Builder moveRepositorySettings() {
                     return getStubSettingsBuilder().moveRepositorySettings();
              diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json
              index 4d3e9550d174..82a138dffd2b 100644
              --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json
              +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/gapic_metadata.json
              @@ -49,15 +49,24 @@
                           "DeleteFolder": {
                             "methods": ["deleteFolder", "deleteFolder", "deleteFolder", "deleteFolderCallable"]
                           },
              +            "DeleteFolderTree": {
              +              "methods": ["deleteFolderTreeAsync", "deleteFolderTreeAsync", "deleteFolderTreeAsync", "deleteFolderTreeOperationCallable", "deleteFolderTreeCallable"]
              +            },
                           "DeleteReleaseConfig": {
                             "methods": ["deleteReleaseConfig", "deleteReleaseConfig", "deleteReleaseConfig", "deleteReleaseConfigCallable"]
                           },
                           "DeleteRepository": {
                             "methods": ["deleteRepository", "deleteRepository", "deleteRepository", "deleteRepositoryCallable"]
                           },
              +            "DeleteRepositoryLongRunning": {
              +              "methods": ["deleteRepositoryLongRunningAsync", "deleteRepositoryLongRunningAsync", "deleteRepositoryLongRunningAsync", "deleteRepositoryLongRunningOperationCallable", "deleteRepositoryLongRunningCallable"]
              +            },
                           "DeleteTeamFolder": {
                             "methods": ["deleteTeamFolder", "deleteTeamFolder", "deleteTeamFolder", "deleteTeamFolderCallable"]
                           },
              +            "DeleteTeamFolderTree": {
              +              "methods": ["deleteTeamFolderTreeAsync", "deleteTeamFolderTreeAsync", "deleteTeamFolderTreeAsync", "deleteTeamFolderTreeOperationCallable", "deleteTeamFolderTreeCallable"]
              +            },
                           "DeleteWorkflowConfig": {
                             "methods": ["deleteWorkflowConfig", "deleteWorkflowConfig", "deleteWorkflowConfig", "deleteWorkflowConfigCallable"]
                           },
              diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java
              index 29f04cc280bb..94867f323a4f 100644
              --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java
              +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStub.java
              @@ -57,9 +57,15 @@
               import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest;
               import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest;
               import com.google.cloud.dataform.v1beta1.DeleteFolderRequest;
              +import com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata;
              +import com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest;
               import com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest;
              +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata;
              +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest;
              +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse;
               import com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest;
               import com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest;
              +import com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest;
               import com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest;
               import com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest;
               import com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest;
              @@ -201,6 +207,16 @@ public UnaryCallable deleteTeamFolderCallable()
                   throw new UnsupportedOperationException("Not implemented: deleteTeamFolderCallable()");
                 }
               
              +  public OperationCallable
              +      deleteTeamFolderTreeOperationCallable() {
              +    throw new UnsupportedOperationException(
              +        "Not implemented: deleteTeamFolderTreeOperationCallable()");
              +  }
              +
              +  public UnaryCallable deleteTeamFolderTreeCallable() {
              +    throw new UnsupportedOperationException("Not implemented: deleteTeamFolderTreeCallable()");
              +  }
              +
                 public UnaryCallable
                     queryTeamFolderContentsPagedCallable() {
                   throw new UnsupportedOperationException(
              @@ -238,6 +254,15 @@ public UnaryCallable deleteFolderCallable() {
                   throw new UnsupportedOperationException("Not implemented: deleteFolderCallable()");
                 }
               
              +  public OperationCallable
              +      deleteFolderTreeOperationCallable() {
              +    throw new UnsupportedOperationException("Not implemented: deleteFolderTreeOperationCallable()");
              +  }
              +
              +  public UnaryCallable deleteFolderTreeCallable() {
              +    throw new UnsupportedOperationException("Not implemented: deleteFolderTreeCallable()");
              +  }
              +
                 public UnaryCallable
                     queryFolderContentsPagedCallable() {
                   throw new UnsupportedOperationException("Not implemented: queryFolderContentsPagedCallable()");
              @@ -294,6 +319,21 @@ public UnaryCallable deleteRepositoryCallable()
                   throw new UnsupportedOperationException("Not implemented: deleteRepositoryCallable()");
                 }
               
              +  public OperationCallable<
              +          DeleteRepositoryLongRunningRequest,
              +          DeleteRepositoryLongRunningResponse,
              +          DeleteRepositoryLongRunningMetadata>
              +      deleteRepositoryLongRunningOperationCallable() {
              +    throw new UnsupportedOperationException(
              +        "Not implemented: deleteRepositoryLongRunningOperationCallable()");
              +  }
              +
              +  public UnaryCallable
              +      deleteRepositoryLongRunningCallable() {
              +    throw new UnsupportedOperationException(
              +        "Not implemented: deleteRepositoryLongRunningCallable()");
              +  }
              +
                 public OperationCallable
                     moveRepositoryOperationCallable() {
                   throw new UnsupportedOperationException("Not implemented: moveRepositoryOperationCallable()");
              diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java
              index c6f2a230c9a8..55c7d28671c6 100644
              --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java
              +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/DataformStubSettings.java
              @@ -86,9 +86,15 @@
               import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest;
               import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest;
               import com.google.cloud.dataform.v1beta1.DeleteFolderRequest;
              +import com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata;
              +import com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest;
               import com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest;
              +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata;
              +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest;
              +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse;
               import com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest;
               import com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest;
              +import com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest;
               import com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest;
               import com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest;
               import com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest;
              @@ -256,7 +262,7 @@
                *
                * 

              To configure the RetrySettings of a Long Running Operation method, create an * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to - * configure the RetrySettings for moveFolder: + * configure the RetrySettings for deleteTeamFolderTree: * *

              {@code
                * // This snippet has been automatically generated and should be regarded as a code template only.
              @@ -294,6 +300,10 @@ public class DataformStubSettings extends StubSettings {
                 private final UnaryCallSettings createTeamFolderSettings;
                 private final UnaryCallSettings updateTeamFolderSettings;
                 private final UnaryCallSettings deleteTeamFolderSettings;
              +  private final UnaryCallSettings
              +      deleteTeamFolderTreeSettings;
              +  private final OperationCallSettings
              +      deleteTeamFolderTreeOperationSettings;
                 private final PagedCallSettings<
                         QueryTeamFolderContentsRequest,
                         QueryTeamFolderContentsResponse,
              @@ -306,6 +316,9 @@ public class DataformStubSettings extends StubSettings {
                 private final UnaryCallSettings createFolderSettings;
                 private final UnaryCallSettings updateFolderSettings;
                 private final UnaryCallSettings deleteFolderSettings;
              +  private final UnaryCallSettings deleteFolderTreeSettings;
              +  private final OperationCallSettings
              +      deleteFolderTreeOperationSettings;
                 private final PagedCallSettings<
                         QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsPagedResponse>
                     queryFolderContentsSettings;
              @@ -324,6 +337,13 @@ public class DataformStubSettings extends StubSettings {
                 private final UnaryCallSettings createRepositorySettings;
                 private final UnaryCallSettings updateRepositorySettings;
                 private final UnaryCallSettings deleteRepositorySettings;
              +  private final UnaryCallSettings
              +      deleteRepositoryLongRunningSettings;
              +  private final OperationCallSettings<
              +          DeleteRepositoryLongRunningRequest,
              +          DeleteRepositoryLongRunningResponse,
              +          DeleteRepositoryLongRunningMetadata>
              +      deleteRepositoryLongRunningOperationSettings;
                 private final UnaryCallSettings moveRepositorySettings;
                 private final OperationCallSettings
                     moveRepositoryOperationSettings;
              @@ -1579,6 +1599,17 @@ public UnaryCallSettings deleteTeamFolderSetting
                   return deleteTeamFolderSettings;
                 }
               
              +  /** Returns the object with the settings used for calls to deleteTeamFolderTree. */
              +  public UnaryCallSettings deleteTeamFolderTreeSettings() {
              +    return deleteTeamFolderTreeSettings;
              +  }
              +
              +  /** Returns the object with the settings used for calls to deleteTeamFolderTree. */
              +  public OperationCallSettings
              +      deleteTeamFolderTreeOperationSettings() {
              +    return deleteTeamFolderTreeOperationSettings;
              +  }
              +
                 /** Returns the object with the settings used for calls to queryTeamFolderContents. */
                 public PagedCallSettings<
                         QueryTeamFolderContentsRequest,
              @@ -1615,6 +1646,17 @@ public UnaryCallSettings deleteFolderSettings() {
                   return deleteFolderSettings;
                 }
               
              +  /** Returns the object with the settings used for calls to deleteFolderTree. */
              +  public UnaryCallSettings deleteFolderTreeSettings() {
              +    return deleteFolderTreeSettings;
              +  }
              +
              +  /** Returns the object with the settings used for calls to deleteFolderTree. */
              +  public OperationCallSettings
              +      deleteFolderTreeOperationSettings() {
              +    return deleteFolderTreeOperationSettings;
              +  }
              +
                 /** Returns the object with the settings used for calls to queryFolderContents. */
                 public PagedCallSettings<
                         QueryFolderContentsRequest, QueryFolderContentsResponse, QueryFolderContentsPagedResponse>
              @@ -1669,6 +1711,21 @@ public UnaryCallSettings deleteRepositorySetting
                   return deleteRepositorySettings;
                 }
               
              +  /** Returns the object with the settings used for calls to deleteRepositoryLongRunning. */
              +  public UnaryCallSettings
              +      deleteRepositoryLongRunningSettings() {
              +    return deleteRepositoryLongRunningSettings;
              +  }
              +
              +  /** Returns the object with the settings used for calls to deleteRepositoryLongRunning. */
              +  public OperationCallSettings<
              +          DeleteRepositoryLongRunningRequest,
              +          DeleteRepositoryLongRunningResponse,
              +          DeleteRepositoryLongRunningMetadata>
              +      deleteRepositoryLongRunningOperationSettings() {
              +    return deleteRepositoryLongRunningOperationSettings;
              +  }
              +
                 /** Returns the object with the settings used for calls to moveRepository. */
                 public UnaryCallSettings moveRepositorySettings() {
                   return moveRepositorySettings;
              @@ -2121,12 +2178,17 @@ protected DataformStubSettings(Builder settingsBuilder) throws IOException {
                   createTeamFolderSettings = settingsBuilder.createTeamFolderSettings().build();
                   updateTeamFolderSettings = settingsBuilder.updateTeamFolderSettings().build();
                   deleteTeamFolderSettings = settingsBuilder.deleteTeamFolderSettings().build();
              +    deleteTeamFolderTreeSettings = settingsBuilder.deleteTeamFolderTreeSettings().build();
              +    deleteTeamFolderTreeOperationSettings =
              +        settingsBuilder.deleteTeamFolderTreeOperationSettings().build();
                   queryTeamFolderContentsSettings = settingsBuilder.queryTeamFolderContentsSettings().build();
                   searchTeamFoldersSettings = settingsBuilder.searchTeamFoldersSettings().build();
                   getFolderSettings = settingsBuilder.getFolderSettings().build();
                   createFolderSettings = settingsBuilder.createFolderSettings().build();
                   updateFolderSettings = settingsBuilder.updateFolderSettings().build();
                   deleteFolderSettings = settingsBuilder.deleteFolderSettings().build();
              +    deleteFolderTreeSettings = settingsBuilder.deleteFolderTreeSettings().build();
              +    deleteFolderTreeOperationSettings = settingsBuilder.deleteFolderTreeOperationSettings().build();
                   queryFolderContentsSettings = settingsBuilder.queryFolderContentsSettings().build();
                   queryUserRootContentsSettings = settingsBuilder.queryUserRootContentsSettings().build();
                   moveFolderSettings = settingsBuilder.moveFolderSettings().build();
              @@ -2136,6 +2198,10 @@ protected DataformStubSettings(Builder settingsBuilder) throws IOException {
                   createRepositorySettings = settingsBuilder.createRepositorySettings().build();
                   updateRepositorySettings = settingsBuilder.updateRepositorySettings().build();
                   deleteRepositorySettings = settingsBuilder.deleteRepositorySettings().build();
              +    deleteRepositoryLongRunningSettings =
              +        settingsBuilder.deleteRepositoryLongRunningSettings().build();
              +    deleteRepositoryLongRunningOperationSettings =
              +        settingsBuilder.deleteRepositoryLongRunningOperationSettings().build();
                   moveRepositorySettings = settingsBuilder.moveRepositorySettings().build();
                   moveRepositoryOperationSettings = settingsBuilder.moveRepositoryOperationSettings().build();
                   commitRepositoryChangesSettings = settingsBuilder.commitRepositoryChangesSettings().build();
              @@ -2217,6 +2283,11 @@ public static class Builder extends StubSettings.Builder
                       deleteTeamFolderSettings;
              +    private final UnaryCallSettings.Builder
              +        deleteTeamFolderTreeSettings;
              +    private final OperationCallSettings.Builder<
              +            DeleteTeamFolderTreeRequest, Empty, DeleteFolderTreeMetadata>
              +        deleteTeamFolderTreeOperationSettings;
                   private final PagedCallSettings.Builder<
                           QueryTeamFolderContentsRequest,
                           QueryTeamFolderContentsResponse,
              @@ -2229,6 +2300,11 @@ public static class Builder extends StubSettings.Builder createFolderSettings;
                   private final UnaryCallSettings.Builder updateFolderSettings;
                   private final UnaryCallSettings.Builder deleteFolderSettings;
              +    private final UnaryCallSettings.Builder
              +        deleteFolderTreeSettings;
              +    private final OperationCallSettings.Builder<
              +            DeleteFolderTreeRequest, Empty, DeleteFolderTreeMetadata>
              +        deleteFolderTreeOperationSettings;
                   private final PagedCallSettings.Builder<
                           QueryFolderContentsRequest,
                           QueryFolderContentsResponse,
              @@ -2252,6 +2328,13 @@ public static class Builder extends StubSettings.Builder
                       deleteRepositorySettings;
              +    private final UnaryCallSettings.Builder
              +        deleteRepositoryLongRunningSettings;
              +    private final OperationCallSettings.Builder<
              +            DeleteRepositoryLongRunningRequest,
              +            DeleteRepositoryLongRunningResponse,
              +            DeleteRepositoryLongRunningMetadata>
              +        deleteRepositoryLongRunningOperationSettings;
                   private final UnaryCallSettings.Builder
                       moveRepositorySettings;
                   private final OperationCallSettings.Builder<
              @@ -2420,6 +2503,8 @@ protected Builder(ClientContext clientContext) {
                     createTeamFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                     updateTeamFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                     deleteTeamFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
              +      deleteTeamFolderTreeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
              +      deleteTeamFolderTreeOperationSettings = OperationCallSettings.newBuilder();
                     queryTeamFolderContentsSettings =
                         PagedCallSettings.newBuilder(QUERY_TEAM_FOLDER_CONTENTS_PAGE_STR_FACT);
                     searchTeamFoldersSettings = PagedCallSettings.newBuilder(SEARCH_TEAM_FOLDERS_PAGE_STR_FACT);
              @@ -2427,6 +2512,8 @@ protected Builder(ClientContext clientContext) {
                     createFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                     updateFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                     deleteFolderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
              +      deleteFolderTreeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
              +      deleteFolderTreeOperationSettings = OperationCallSettings.newBuilder();
                     queryFolderContentsSettings =
                         PagedCallSettings.newBuilder(QUERY_FOLDER_CONTENTS_PAGE_STR_FACT);
                     queryUserRootContentsSettings =
              @@ -2438,6 +2525,8 @@ protected Builder(ClientContext clientContext) {
                     createRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                     updateRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                     deleteRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
              +      deleteRepositoryLongRunningSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
              +      deleteRepositoryLongRunningOperationSettings = OperationCallSettings.newBuilder();
                     moveRepositorySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                     moveRepositoryOperationSettings = OperationCallSettings.newBuilder();
                     commitRepositoryChangesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
              @@ -2509,12 +2598,14 @@ protected Builder(ClientContext clientContext) {
                             createTeamFolderSettings,
                             updateTeamFolderSettings,
                             deleteTeamFolderSettings,
              +              deleteTeamFolderTreeSettings,
                             queryTeamFolderContentsSettings,
                             searchTeamFoldersSettings,
                             getFolderSettings,
                             createFolderSettings,
                             updateFolderSettings,
                             deleteFolderSettings,
              +              deleteFolderTreeSettings,
                             queryFolderContentsSettings,
                             queryUserRootContentsSettings,
                             moveFolderSettings,
              @@ -2523,6 +2614,7 @@ protected Builder(ClientContext clientContext) {
                             createRepositorySettings,
                             updateRepositorySettings,
                             deleteRepositorySettings,
              +              deleteRepositoryLongRunningSettings,
                             moveRepositorySettings,
                             commitRepositoryChangesSettings,
                             readRepositoryFileSettings,
              @@ -2588,12 +2680,17 @@ protected Builder(DataformStubSettings settings) {
                     createTeamFolderSettings = settings.createTeamFolderSettings.toBuilder();
                     updateTeamFolderSettings = settings.updateTeamFolderSettings.toBuilder();
                     deleteTeamFolderSettings = settings.deleteTeamFolderSettings.toBuilder();
              +      deleteTeamFolderTreeSettings = settings.deleteTeamFolderTreeSettings.toBuilder();
              +      deleteTeamFolderTreeOperationSettings =
              +          settings.deleteTeamFolderTreeOperationSettings.toBuilder();
                     queryTeamFolderContentsSettings = settings.queryTeamFolderContentsSettings.toBuilder();
                     searchTeamFoldersSettings = settings.searchTeamFoldersSettings.toBuilder();
                     getFolderSettings = settings.getFolderSettings.toBuilder();
                     createFolderSettings = settings.createFolderSettings.toBuilder();
                     updateFolderSettings = settings.updateFolderSettings.toBuilder();
                     deleteFolderSettings = settings.deleteFolderSettings.toBuilder();
              +      deleteFolderTreeSettings = settings.deleteFolderTreeSettings.toBuilder();
              +      deleteFolderTreeOperationSettings = settings.deleteFolderTreeOperationSettings.toBuilder();
                     queryFolderContentsSettings = settings.queryFolderContentsSettings.toBuilder();
                     queryUserRootContentsSettings = settings.queryUserRootContentsSettings.toBuilder();
                     moveFolderSettings = settings.moveFolderSettings.toBuilder();
              @@ -2603,6 +2700,10 @@ protected Builder(DataformStubSettings settings) {
                     createRepositorySettings = settings.createRepositorySettings.toBuilder();
                     updateRepositorySettings = settings.updateRepositorySettings.toBuilder();
                     deleteRepositorySettings = settings.deleteRepositorySettings.toBuilder();
              +      deleteRepositoryLongRunningSettings =
              +          settings.deleteRepositoryLongRunningSettings.toBuilder();
              +      deleteRepositoryLongRunningOperationSettings =
              +          settings.deleteRepositoryLongRunningOperationSettings.toBuilder();
                     moveRepositorySettings = settings.moveRepositorySettings.toBuilder();
                     moveRepositoryOperationSettings = settings.moveRepositoryOperationSettings.toBuilder();
                     commitRepositoryChangesSettings = settings.commitRepositoryChangesSettings.toBuilder();
              @@ -2670,12 +2771,14 @@ protected Builder(DataformStubSettings settings) {
                             createTeamFolderSettings,
                             updateTeamFolderSettings,
                             deleteTeamFolderSettings,
              +              deleteTeamFolderTreeSettings,
                             queryTeamFolderContentsSettings,
                             searchTeamFoldersSettings,
                             getFolderSettings,
                             createFolderSettings,
                             updateFolderSettings,
                             deleteFolderSettings,
              +              deleteFolderTreeSettings,
                             queryFolderContentsSettings,
                             queryUserRootContentsSettings,
                             moveFolderSettings,
              @@ -2684,6 +2787,7 @@ protected Builder(DataformStubSettings settings) {
                             createRepositorySettings,
                             updateRepositorySettings,
                             deleteRepositorySettings,
              +              deleteRepositoryLongRunningSettings,
                             moveRepositorySettings,
                             commitRepositoryChangesSettings,
                             readRepositoryFileSettings,
              @@ -2786,6 +2890,11 @@ private static Builder initDefaults(Builder builder) {
                         .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
                         .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
               
              +      builder
              +          .deleteTeamFolderTreeSettings()
              +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
              +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
              +
                     builder
                         .queryTeamFolderContentsSettings()
                         .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
              @@ -2816,6 +2925,11 @@ private static Builder initDefaults(Builder builder) {
                         .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
                         .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
               
              +      builder
              +          .deleteFolderTreeSettings()
              +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
              +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
              +
                     builder
                         .queryFolderContentsSettings()
                         .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
              @@ -2856,6 +2970,11 @@ private static Builder initDefaults(Builder builder) {
                         .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
                         .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
               
              +      builder
              +          .deleteRepositoryLongRunningSettings()
              +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
              +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
              +
                     builder
                         .moveRepositorySettings()
                         .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
              @@ -3131,6 +3250,54 @@ private static Builder initDefaults(Builder builder) {
                         .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
                         .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
               
              +      builder
              +          .deleteTeamFolderTreeOperationSettings()
              +          .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(DeleteFolderTreeMetadata.class))
              +          .setPollingAlgorithm(
              +              OperationTimedPollAlgorithm.create(
              +                  RetrySettings.newBuilder()
              +                      .setInitialRetryDelayDuration(Duration.ofMillis(5000L))
              +                      .setRetryDelayMultiplier(1.5)
              +                      .setMaxRetryDelayDuration(Duration.ofMillis(45000L))
              +                      .setInitialRpcTimeoutDuration(Duration.ZERO)
              +                      .setRpcTimeoutMultiplier(1.0)
              +                      .setMaxRpcTimeoutDuration(Duration.ZERO)
              +                      .setTotalTimeoutDuration(Duration.ofMillis(300000L))
              +                      .build()));
              +
              +      builder
              +          .deleteFolderTreeOperationSettings()
              +          .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(DeleteFolderTreeMetadata.class))
              +          .setPollingAlgorithm(
              +              OperationTimedPollAlgorithm.create(
              +                  RetrySettings.newBuilder()
              +                      .setInitialRetryDelayDuration(Duration.ofMillis(5000L))
              +                      .setRetryDelayMultiplier(1.5)
              +                      .setMaxRetryDelayDuration(Duration.ofMillis(45000L))
              +                      .setInitialRpcTimeoutDuration(Duration.ZERO)
              +                      .setRpcTimeoutMultiplier(1.0)
              +                      .setMaxRpcTimeoutDuration(Duration.ZERO)
              +                      .setTotalTimeoutDuration(Duration.ofMillis(300000L))
              +                      .build()));
              +
                     builder
                         .moveFolderOperationSettings()
                         .setInitialCallSettings(
              @@ -3154,6 +3321,33 @@ private static Builder initDefaults(Builder builder) {
                                     .setTotalTimeoutDuration(Duration.ofMillis(300000L))
                                     .build()));
               
              +      builder
              +          .deleteRepositoryLongRunningOperationSettings()
              +          .setInitialCallSettings(
              +              UnaryCallSettings
              +                  .
              +                      newUnaryCallSettingsBuilder()
              +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
              +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"))
              +                  .build())
              +          .setResponseTransformer(
              +              ProtoOperationTransformers.ResponseTransformer.create(
              +                  DeleteRepositoryLongRunningResponse.class))
              +          .setMetadataTransformer(
              +              ProtoOperationTransformers.MetadataTransformer.create(
              +                  DeleteRepositoryLongRunningMetadata.class))
              +          .setPollingAlgorithm(
              +              OperationTimedPollAlgorithm.create(
              +                  RetrySettings.newBuilder()
              +                      .setInitialRetryDelayDuration(Duration.ofMillis(5000L))
              +                      .setRetryDelayMultiplier(1.5)
              +                      .setMaxRetryDelayDuration(Duration.ofMillis(45000L))
              +                      .setInitialRpcTimeoutDuration(Duration.ZERO)
              +                      .setRpcTimeoutMultiplier(1.0)
              +                      .setMaxRpcTimeoutDuration(Duration.ZERO)
              +                      .setTotalTimeoutDuration(Duration.ofMillis(300000L))
              +                      .build()));
              +
                     builder
                         .moveRepositoryOperationSettings()
                         .setInitialCallSettings(
              @@ -3218,6 +3412,19 @@ public UnaryCallSettings.Builder deleteTeamFolde
                     return deleteTeamFolderSettings;
                   }
               
              +    /** Returns the builder for the settings used for calls to deleteTeamFolderTree. */
              +    public UnaryCallSettings.Builder
              +        deleteTeamFolderTreeSettings() {
              +      return deleteTeamFolderTreeSettings;
              +    }
              +
              +    /** Returns the builder for the settings used for calls to deleteTeamFolderTree. */
              +    public OperationCallSettings.Builder<
              +            DeleteTeamFolderTreeRequest, Empty, DeleteFolderTreeMetadata>
              +        deleteTeamFolderTreeOperationSettings() {
              +      return deleteTeamFolderTreeOperationSettings;
              +    }
              +
                   /** Returns the builder for the settings used for calls to queryTeamFolderContents. */
                   public PagedCallSettings.Builder<
                           QueryTeamFolderContentsRequest,
              @@ -3254,6 +3461,18 @@ public UnaryCallSettings.Builder deleteFolderSetting
                     return deleteFolderSettings;
                   }
               
              +    /** Returns the builder for the settings used for calls to deleteFolderTree. */
              +    public UnaryCallSettings.Builder
              +        deleteFolderTreeSettings() {
              +      return deleteFolderTreeSettings;
              +    }
              +
              +    /** Returns the builder for the settings used for calls to deleteFolderTree. */
              +    public OperationCallSettings.Builder
              +        deleteFolderTreeOperationSettings() {
              +      return deleteFolderTreeOperationSettings;
              +    }
              +
                   /** Returns the builder for the settings used for calls to queryFolderContents. */
                   public PagedCallSettings.Builder<
                           QueryFolderContentsRequest,
              @@ -3312,6 +3531,21 @@ public UnaryCallSettings.Builder deleteRepositor
                     return deleteRepositorySettings;
                   }
               
              +    /** Returns the builder for the settings used for calls to deleteRepositoryLongRunning. */
              +    public UnaryCallSettings.Builder
              +        deleteRepositoryLongRunningSettings() {
              +      return deleteRepositoryLongRunningSettings;
              +    }
              +
              +    /** Returns the builder for the settings used for calls to deleteRepositoryLongRunning. */
              +    public OperationCallSettings.Builder<
              +            DeleteRepositoryLongRunningRequest,
              +            DeleteRepositoryLongRunningResponse,
              +            DeleteRepositoryLongRunningMetadata>
              +        deleteRepositoryLongRunningOperationSettings() {
              +      return deleteRepositoryLongRunningOperationSettings;
              +    }
              +
                   /** Returns the builder for the settings used for calls to moveRepository. */
                   public UnaryCallSettings.Builder moveRepositorySettings() {
                     return moveRepositorySettings;
              diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java
              index 6b38431ce657..c861f6a238d1 100644
              --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java
              +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/GrpcDataformStub.java
              @@ -62,9 +62,15 @@
               import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest;
               import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest;
               import com.google.cloud.dataform.v1beta1.DeleteFolderRequest;
              +import com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata;
              +import com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest;
               import com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest;
              +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata;
              +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest;
              +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse;
               import com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest;
               import com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest;
              +import com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest;
               import com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest;
               import com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest;
               import com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest;
              @@ -229,6 +235,17 @@ public class GrpcDataformStub extends DataformStub {
                             .setSampledToLocalTracing(true)
                             .build();
               
              +  private static final MethodDescriptor
              +      deleteTeamFolderTreeMethodDescriptor =
              +          MethodDescriptor.newBuilder()
              +              .setType(MethodDescriptor.MethodType.UNARY)
              +              .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/DeleteTeamFolderTree")
              +              .setRequestMarshaller(
              +                  ProtoUtils.marshaller(DeleteTeamFolderTreeRequest.getDefaultInstance()))
              +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
              +              .setSampledToLocalTracing(true)
              +              .build();
              +
                 private static final MethodDescriptor<
                         QueryTeamFolderContentsRequest, QueryTeamFolderContentsResponse>
                     queryTeamFolderContentsMethodDescriptor =
              @@ -291,6 +308,17 @@ public class GrpcDataformStub extends DataformStub {
                         .setSampledToLocalTracing(true)
                         .build();
               
              +  private static final MethodDescriptor
              +      deleteFolderTreeMethodDescriptor =
              +          MethodDescriptor.newBuilder()
              +              .setType(MethodDescriptor.MethodType.UNARY)
              +              .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/DeleteFolderTree")
              +              .setRequestMarshaller(
              +                  ProtoUtils.marshaller(DeleteFolderTreeRequest.getDefaultInstance()))
              +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
              +              .setSampledToLocalTracing(true)
              +              .build();
              +
                 private static final MethodDescriptor
                     queryFolderContentsMethodDescriptor =
                         MethodDescriptor.newBuilder()
              @@ -380,6 +408,18 @@ public class GrpcDataformStub extends DataformStub {
                             .setSampledToLocalTracing(true)
                             .build();
               
              +  private static final MethodDescriptor
              +      deleteRepositoryLongRunningMethodDescriptor =
              +          MethodDescriptor.newBuilder()
              +              .setType(MethodDescriptor.MethodType.UNARY)
              +              .setFullMethodName(
              +                  "google.cloud.dataform.v1beta1.Dataform/DeleteRepositoryLongRunning")
              +              .setRequestMarshaller(
              +                  ProtoUtils.marshaller(DeleteRepositoryLongRunningRequest.getDefaultInstance()))
              +              .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance()))
              +              .setSampledToLocalTracing(true)
              +              .build();
              +
                 private static final MethodDescriptor
                     moveRepositoryMethodDescriptor =
                         MethodDescriptor.newBuilder()
              @@ -1038,6 +1078,9 @@ public class GrpcDataformStub extends DataformStub {
                 private final UnaryCallable createTeamFolderCallable;
                 private final UnaryCallable updateTeamFolderCallable;
                 private final UnaryCallable deleteTeamFolderCallable;
              +  private final UnaryCallable deleteTeamFolderTreeCallable;
              +  private final OperationCallable
              +      deleteTeamFolderTreeOperationCallable;
                 private final UnaryCallable
                     queryTeamFolderContentsCallable;
                 private final UnaryCallable
              @@ -1050,6 +1093,9 @@ public class GrpcDataformStub extends DataformStub {
                 private final UnaryCallable createFolderCallable;
                 private final UnaryCallable updateFolderCallable;
                 private final UnaryCallable deleteFolderCallable;
              +  private final UnaryCallable deleteFolderTreeCallable;
              +  private final OperationCallable
              +      deleteFolderTreeOperationCallable;
                 private final UnaryCallable
                     queryFolderContentsCallable;
                 private final UnaryCallable
              @@ -1069,6 +1115,13 @@ public class GrpcDataformStub extends DataformStub {
                 private final UnaryCallable createRepositoryCallable;
                 private final UnaryCallable updateRepositoryCallable;
                 private final UnaryCallable deleteRepositoryCallable;
              +  private final UnaryCallable
              +      deleteRepositoryLongRunningCallable;
              +  private final OperationCallable<
              +          DeleteRepositoryLongRunningRequest,
              +          DeleteRepositoryLongRunningResponse,
              +          DeleteRepositoryLongRunningMetadata>
              +      deleteRepositoryLongRunningOperationCallable;
                 private final UnaryCallable moveRepositoryCallable;
                 private final OperationCallable
                     moveRepositoryOperationCallable;
              @@ -1271,6 +1324,17 @@ protected GrpcDataformStub(
                               })
                           .setResourceNameExtractor(request -> request.getName())
                           .build();
              +    GrpcCallSettings deleteTeamFolderTreeTransportSettings =
              +        GrpcCallSettings.newBuilder()
              +            .setMethodDescriptor(deleteTeamFolderTreeMethodDescriptor)
              +            .setParamsExtractor(
              +                request -> {
              +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
              +                  builder.add("name", String.valueOf(request.getName()));
              +                  return builder.build();
              +                })
              +            .setResourceNameExtractor(request -> request.getName())
              +            .build();
                   GrpcCallSettings
                       queryTeamFolderContentsTransportSettings =
                           GrpcCallSettings
              @@ -1339,6 +1403,17 @@ protected GrpcDataformStub(
                               })
                           .setResourceNameExtractor(request -> request.getName())
                           .build();
              +    GrpcCallSettings deleteFolderTreeTransportSettings =
              +        GrpcCallSettings.newBuilder()
              +            .setMethodDescriptor(deleteFolderTreeMethodDescriptor)
              +            .setParamsExtractor(
              +                request -> {
              +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
              +                  builder.add("name", String.valueOf(request.getName()));
              +                  return builder.build();
              +                })
              +            .setResourceNameExtractor(request -> request.getName())
              +            .build();
                   GrpcCallSettings
                       queryFolderContentsTransportSettings =
                           GrpcCallSettings.newBuilder()
              @@ -1430,6 +1505,18 @@ protected GrpcDataformStub(
                               })
                           .setResourceNameExtractor(request -> request.getName())
                           .build();
              +    GrpcCallSettings
              +        deleteRepositoryLongRunningTransportSettings =
              +            GrpcCallSettings.newBuilder()
              +                .setMethodDescriptor(deleteRepositoryLongRunningMethodDescriptor)
              +                .setParamsExtractor(
              +                    request -> {
              +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
              +                      builder.add("name", String.valueOf(request.getName()));
              +                      return builder.build();
              +                    })
              +                .setResourceNameExtractor(request -> request.getName())
              +                .build();
                   GrpcCallSettings moveRepositoryTransportSettings =
                       GrpcCallSettings.newBuilder()
                           .setMethodDescriptor(moveRepositoryMethodDescriptor)
              @@ -2099,6 +2186,17 @@ protected GrpcDataformStub(
                   this.deleteTeamFolderCallable =
                       callableFactory.createUnaryCallable(
                           deleteTeamFolderTransportSettings, settings.deleteTeamFolderSettings(), clientContext);
              +    this.deleteTeamFolderTreeCallable =
              +        callableFactory.createUnaryCallable(
              +            deleteTeamFolderTreeTransportSettings,
              +            settings.deleteTeamFolderTreeSettings(),
              +            clientContext);
              +    this.deleteTeamFolderTreeOperationCallable =
              +        callableFactory.createOperationCallable(
              +            deleteTeamFolderTreeTransportSettings,
              +            settings.deleteTeamFolderTreeOperationSettings(),
              +            clientContext,
              +            operationsStub);
                   this.queryTeamFolderContentsCallable =
                       callableFactory.createUnaryCallable(
                           queryTeamFolderContentsTransportSettings,
              @@ -2131,6 +2229,15 @@ protected GrpcDataformStub(
                   this.deleteFolderCallable =
                       callableFactory.createUnaryCallable(
                           deleteFolderTransportSettings, settings.deleteFolderSettings(), clientContext);
              +    this.deleteFolderTreeCallable =
              +        callableFactory.createUnaryCallable(
              +            deleteFolderTreeTransportSettings, settings.deleteFolderTreeSettings(), clientContext);
              +    this.deleteFolderTreeOperationCallable =
              +        callableFactory.createOperationCallable(
              +            deleteFolderTreeTransportSettings,
              +            settings.deleteFolderTreeOperationSettings(),
              +            clientContext,
              +            operationsStub);
                   this.queryFolderContentsCallable =
                       callableFactory.createUnaryCallable(
                           queryFolderContentsTransportSettings,
              @@ -2178,6 +2285,17 @@ protected GrpcDataformStub(
                   this.deleteRepositoryCallable =
                       callableFactory.createUnaryCallable(
                           deleteRepositoryTransportSettings, settings.deleteRepositorySettings(), clientContext);
              +    this.deleteRepositoryLongRunningCallable =
              +        callableFactory.createUnaryCallable(
              +            deleteRepositoryLongRunningTransportSettings,
              +            settings.deleteRepositoryLongRunningSettings(),
              +            clientContext);
              +    this.deleteRepositoryLongRunningOperationCallable =
              +        callableFactory.createOperationCallable(
              +            deleteRepositoryLongRunningTransportSettings,
              +            settings.deleteRepositoryLongRunningOperationSettings(),
              +            clientContext,
              +            operationsStub);
                   this.moveRepositoryCallable =
                       callableFactory.createUnaryCallable(
                           moveRepositoryTransportSettings, settings.moveRepositorySettings(), clientContext);
              @@ -2496,6 +2614,17 @@ public UnaryCallable deleteTeamFolderCallable()
                   return deleteTeamFolderCallable;
                 }
               
              +  @Override
              +  public UnaryCallable deleteTeamFolderTreeCallable() {
              +    return deleteTeamFolderTreeCallable;
              +  }
              +
              +  @Override
              +  public OperationCallable
              +      deleteTeamFolderTreeOperationCallable() {
              +    return deleteTeamFolderTreeOperationCallable;
              +  }
              +
                 @Override
                 public UnaryCallable
                     queryTeamFolderContentsCallable() {
              @@ -2540,6 +2669,17 @@ public UnaryCallable deleteFolderCallable() {
                   return deleteFolderCallable;
                 }
               
              +  @Override
              +  public UnaryCallable deleteFolderTreeCallable() {
              +    return deleteFolderTreeCallable;
              +  }
              +
              +  @Override
              +  public OperationCallable
              +      deleteFolderTreeOperationCallable() {
              +    return deleteFolderTreeOperationCallable;
              +  }
              +
                 @Override
                 public UnaryCallable
                     queryFolderContentsCallable() {
              @@ -2607,6 +2747,21 @@ public UnaryCallable deleteRepositoryCallable()
                   return deleteRepositoryCallable;
                 }
               
              +  @Override
              +  public UnaryCallable
              +      deleteRepositoryLongRunningCallable() {
              +    return deleteRepositoryLongRunningCallable;
              +  }
              +
              +  @Override
              +  public OperationCallable<
              +          DeleteRepositoryLongRunningRequest,
              +          DeleteRepositoryLongRunningResponse,
              +          DeleteRepositoryLongRunningMetadata>
              +      deleteRepositoryLongRunningOperationCallable() {
              +    return deleteRepositoryLongRunningOperationCallable;
              +  }
              +
                 @Override
                 public UnaryCallable moveRepositoryCallable() {
                   return moveRepositoryCallable;
              diff --git a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java
              index 854ccedcfc0c..2a62a137e52c 100644
              --- a/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java
              +++ b/java-dataform/google-cloud-dataform/src/main/java/com/google/cloud/dataform/v1beta1/stub/HttpJsonDataformStub.java
              @@ -70,9 +70,15 @@
               import com.google.cloud.dataform.v1beta1.CreateWorkflowInvocationRequest;
               import com.google.cloud.dataform.v1beta1.CreateWorkspaceRequest;
               import com.google.cloud.dataform.v1beta1.DeleteFolderRequest;
              +import com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata;
              +import com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest;
               import com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest;
              +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata;
              +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest;
              +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse;
               import com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest;
               import com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest;
              +import com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest;
               import com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest;
               import com.google.cloud.dataform.v1beta1.DeleteWorkflowInvocationRequest;
               import com.google.cloud.dataform.v1beta1.DeleteWorkspaceRequest;
              @@ -199,7 +205,10 @@ public class HttpJsonDataformStub extends DataformStub {
                 private static final TypeRegistry typeRegistry =
                     TypeRegistry.newBuilder()
                         .add(Empty.getDescriptor())
              +          .add(DeleteRepositoryLongRunningResponse.getDescriptor())
              +          .add(DeleteRepositoryLongRunningMetadata.getDescriptor())
                         .add(MoveRepositoryMetadata.getDescriptor())
              +          .add(DeleteFolderTreeMetadata.getDescriptor())
                         .add(MoveFolderMetadata.getDescriptor())
                         .build();
               
              @@ -349,6 +358,46 @@ public class HttpJsonDataformStub extends DataformStub {
                                     .build())
                             .build();
               
              +  private static final ApiMethodDescriptor
              +      deleteTeamFolderTreeMethodDescriptor =
              +          ApiMethodDescriptor.newBuilder()
              +              .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/DeleteTeamFolderTree")
              +              .setHttpMethod("POST")
              +              .setType(ApiMethodDescriptor.MethodType.UNARY)
              +              .setRequestFormatter(
              +                  ProtoMessageRequestFormatter.newBuilder()
              +                      .setPath(
              +                          "/v1beta1/{name=projects/*/locations/*/teamFolders/*}:deleteTree",
              +                          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(
              +                  (DeleteTeamFolderTreeRequest request, Operation response) ->
              +                      HttpJsonOperationSnapshot.create(response))
              +              .build();
              +
                 private static final ApiMethodDescriptor<
                         QueryTeamFolderContentsRequest, QueryTeamFolderContentsResponse>
                     queryTeamFolderContentsMethodDescriptor =
              @@ -571,6 +620,46 @@ public class HttpJsonDataformStub extends DataformStub {
                                     .build())
                             .build();
               
              +  private static final ApiMethodDescriptor
              +      deleteFolderTreeMethodDescriptor =
              +          ApiMethodDescriptor.newBuilder()
              +              .setFullMethodName("google.cloud.dataform.v1beta1.Dataform/DeleteFolderTree")
              +              .setHttpMethod("POST")
              +              .setType(ApiMethodDescriptor.MethodType.UNARY)
              +              .setRequestFormatter(
              +                  ProtoMessageRequestFormatter.newBuilder()
              +                      .setPath(
              +                          "/v1beta1/{name=projects/*/locations/*/folders/*}:deleteTree",
              +                          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(
              +                  (DeleteFolderTreeRequest request, Operation response) ->
              +                      HttpJsonOperationSnapshot.create(response))
              +              .build();
              +
                 private static final ApiMethodDescriptor
                     queryFolderContentsMethodDescriptor =
                         ApiMethodDescriptor.newBuilder()
              @@ -874,6 +963,47 @@ public class HttpJsonDataformStub extends DataformStub {
                                     .build())
                             .build();
               
              +  private static final ApiMethodDescriptor
              +      deleteRepositoryLongRunningMethodDescriptor =
              +          ApiMethodDescriptor.newBuilder()
              +              .setFullMethodName(
              +                  "google.cloud.dataform.v1beta1.Dataform/DeleteRepositoryLongRunning")
              +              .setHttpMethod("POST")
              +              .setType(ApiMethodDescriptor.MethodType.UNARY)
              +              .setRequestFormatter(
              +                  ProtoMessageRequestFormatter.newBuilder()
              +                      .setPath(
              +                          "/v1beta1/{name=projects/*/locations/*/repositories/*}:deleteLongRunning",
              +                          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(
              +                  (DeleteRepositoryLongRunningRequest request, Operation response) ->
              +                      HttpJsonOperationSnapshot.create(response))
              +              .build();
              +
                 private static final ApiMethodDescriptor
                     moveRepositoryMethodDescriptor =
                         ApiMethodDescriptor.newBuilder()
              @@ -1614,6 +1744,7 @@ public class HttpJsonDataformStub extends DataformStub {
                                           serializer.putQueryParam(fields, "pageSize", request.getPageSize());
                                           serializer.putQueryParam(fields, "pageToken", request.getPageToken());
                                           serializer.putQueryParam(fields, "path", request.getPath());
              +                            serializer.putQueryParam(fields, "view", request.getViewValue());
                                           serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int");
                                           return fields;
                                         })
              @@ -2932,6 +3063,9 @@ public class HttpJsonDataformStub extends DataformStub {
                 private final UnaryCallable createTeamFolderCallable;
                 private final UnaryCallable updateTeamFolderCallable;
                 private final UnaryCallable deleteTeamFolderCallable;
              +  private final UnaryCallable deleteTeamFolderTreeCallable;
              +  private final OperationCallable
              +      deleteTeamFolderTreeOperationCallable;
                 private final UnaryCallable
                     queryTeamFolderContentsCallable;
                 private final UnaryCallable
              @@ -2944,6 +3078,9 @@ public class HttpJsonDataformStub extends DataformStub {
                 private final UnaryCallable createFolderCallable;
                 private final UnaryCallable updateFolderCallable;
                 private final UnaryCallable deleteFolderCallable;
              +  private final UnaryCallable deleteFolderTreeCallable;
              +  private final OperationCallable
              +      deleteFolderTreeOperationCallable;
                 private final UnaryCallable
                     queryFolderContentsCallable;
                 private final UnaryCallable
              @@ -2963,6 +3100,13 @@ public class HttpJsonDataformStub extends DataformStub {
                 private final UnaryCallable createRepositoryCallable;
                 private final UnaryCallable updateRepositoryCallable;
                 private final UnaryCallable deleteRepositoryCallable;
              +  private final UnaryCallable
              +      deleteRepositoryLongRunningCallable;
              +  private final OperationCallable<
              +          DeleteRepositoryLongRunningRequest,
              +          DeleteRepositoryLongRunningResponse,
              +          DeleteRepositoryLongRunningMetadata>
              +      deleteRepositoryLongRunningOperationCallable;
                 private final UnaryCallable moveRepositoryCallable;
                 private final OperationCallable
                     moveRepositoryOperationCallable;
              @@ -3199,6 +3343,19 @@ protected HttpJsonDataformStub(
                               })
                           .setResourceNameExtractor(request -> request.getName())
                           .build();
              +    HttpJsonCallSettings
              +        deleteTeamFolderTreeTransportSettings =
              +            HttpJsonCallSettings.newBuilder()
              +                .setMethodDescriptor(deleteTeamFolderTreeMethodDescriptor)
              +                .setTypeRegistry(typeRegistry)
              +                .setParamsExtractor(
              +                    request -> {
              +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
              +                      builder.add("name", String.valueOf(request.getName()));
              +                      return builder.build();
              +                    })
              +                .setResourceNameExtractor(request -> request.getName())
              +                .build();
                   HttpJsonCallSettings
                       queryTeamFolderContentsTransportSettings =
                           HttpJsonCallSettings
              @@ -3273,6 +3430,18 @@ protected HttpJsonDataformStub(
                               })
                           .setResourceNameExtractor(request -> request.getName())
                           .build();
              +    HttpJsonCallSettings deleteFolderTreeTransportSettings =
              +        HttpJsonCallSettings.newBuilder()
              +            .setMethodDescriptor(deleteFolderTreeMethodDescriptor)
              +            .setTypeRegistry(typeRegistry)
              +            .setParamsExtractor(
              +                request -> {
              +                  RequestParamsBuilder builder = RequestParamsBuilder.create();
              +                  builder.add("name", String.valueOf(request.getName()));
              +                  return builder.build();
              +                })
              +            .setResourceNameExtractor(request -> request.getName())
              +            .build();
                   HttpJsonCallSettings
                       queryFolderContentsTransportSettings =
                           HttpJsonCallSettings
              @@ -3373,6 +3542,19 @@ protected HttpJsonDataformStub(
                               })
                           .setResourceNameExtractor(request -> request.getName())
                           .build();
              +    HttpJsonCallSettings
              +        deleteRepositoryLongRunningTransportSettings =
              +            HttpJsonCallSettings.newBuilder()
              +                .setMethodDescriptor(deleteRepositoryLongRunningMethodDescriptor)
              +                .setTypeRegistry(typeRegistry)
              +                .setParamsExtractor(
              +                    request -> {
              +                      RequestParamsBuilder builder = RequestParamsBuilder.create();
              +                      builder.add("name", String.valueOf(request.getName()));
              +                      return builder.build();
              +                    })
              +                .setResourceNameExtractor(request -> request.getName())
              +                .build();
                   HttpJsonCallSettings moveRepositoryTransportSettings =
                       HttpJsonCallSettings.newBuilder()
                           .setMethodDescriptor(moveRepositoryMethodDescriptor)
              @@ -4108,6 +4290,17 @@ protected HttpJsonDataformStub(
                   this.deleteTeamFolderCallable =
                       callableFactory.createUnaryCallable(
                           deleteTeamFolderTransportSettings, settings.deleteTeamFolderSettings(), clientContext);
              +    this.deleteTeamFolderTreeCallable =
              +        callableFactory.createUnaryCallable(
              +            deleteTeamFolderTreeTransportSettings,
              +            settings.deleteTeamFolderTreeSettings(),
              +            clientContext);
              +    this.deleteTeamFolderTreeOperationCallable =
              +        callableFactory.createOperationCallable(
              +            deleteTeamFolderTreeTransportSettings,
              +            settings.deleteTeamFolderTreeOperationSettings(),
              +            clientContext,
              +            httpJsonOperationsStub);
                   this.queryTeamFolderContentsCallable =
                       callableFactory.createUnaryCallable(
                           queryTeamFolderContentsTransportSettings,
              @@ -4140,6 +4333,15 @@ protected HttpJsonDataformStub(
                   this.deleteFolderCallable =
                       callableFactory.createUnaryCallable(
                           deleteFolderTransportSettings, settings.deleteFolderSettings(), clientContext);
              +    this.deleteFolderTreeCallable =
              +        callableFactory.createUnaryCallable(
              +            deleteFolderTreeTransportSettings, settings.deleteFolderTreeSettings(), clientContext);
              +    this.deleteFolderTreeOperationCallable =
              +        callableFactory.createOperationCallable(
              +            deleteFolderTreeTransportSettings,
              +            settings.deleteFolderTreeOperationSettings(),
              +            clientContext,
              +            httpJsonOperationsStub);
                   this.queryFolderContentsCallable =
                       callableFactory.createUnaryCallable(
                           queryFolderContentsTransportSettings,
              @@ -4187,6 +4389,17 @@ protected HttpJsonDataformStub(
                   this.deleteRepositoryCallable =
                       callableFactory.createUnaryCallable(
                           deleteRepositoryTransportSettings, settings.deleteRepositorySettings(), clientContext);
              +    this.deleteRepositoryLongRunningCallable =
              +        callableFactory.createUnaryCallable(
              +            deleteRepositoryLongRunningTransportSettings,
              +            settings.deleteRepositoryLongRunningSettings(),
              +            clientContext);
              +    this.deleteRepositoryLongRunningOperationCallable =
              +        callableFactory.createOperationCallable(
              +            deleteRepositoryLongRunningTransportSettings,
              +            settings.deleteRepositoryLongRunningOperationSettings(),
              +            clientContext,
              +            httpJsonOperationsStub);
                   this.moveRepositoryCallable =
                       callableFactory.createUnaryCallable(
                           moveRepositoryTransportSettings, settings.moveRepositorySettings(), clientContext);
              @@ -4488,12 +4701,14 @@ public static List getMethodDescriptors() {
                   methodDescriptors.add(createTeamFolderMethodDescriptor);
                   methodDescriptors.add(updateTeamFolderMethodDescriptor);
                   methodDescriptors.add(deleteTeamFolderMethodDescriptor);
              +    methodDescriptors.add(deleteTeamFolderTreeMethodDescriptor);
                   methodDescriptors.add(queryTeamFolderContentsMethodDescriptor);
                   methodDescriptors.add(searchTeamFoldersMethodDescriptor);
                   methodDescriptors.add(getFolderMethodDescriptor);
                   methodDescriptors.add(createFolderMethodDescriptor);
                   methodDescriptors.add(updateFolderMethodDescriptor);
                   methodDescriptors.add(deleteFolderMethodDescriptor);
              +    methodDescriptors.add(deleteFolderTreeMethodDescriptor);
                   methodDescriptors.add(queryFolderContentsMethodDescriptor);
                   methodDescriptors.add(queryUserRootContentsMethodDescriptor);
                   methodDescriptors.add(moveFolderMethodDescriptor);
              @@ -4502,6 +4717,7 @@ public static List getMethodDescriptors() {
                   methodDescriptors.add(createRepositoryMethodDescriptor);
                   methodDescriptors.add(updateRepositoryMethodDescriptor);
                   methodDescriptors.add(deleteRepositoryMethodDescriptor);
              +    methodDescriptors.add(deleteRepositoryLongRunningMethodDescriptor);
                   methodDescriptors.add(moveRepositoryMethodDescriptor);
                   methodDescriptors.add(commitRepositoryChangesMethodDescriptor);
                   methodDescriptors.add(readRepositoryFileMethodDescriptor);
              @@ -4584,6 +4800,17 @@ public UnaryCallable deleteTeamFolderCallable()
                   return deleteTeamFolderCallable;
                 }
               
              +  @Override
              +  public UnaryCallable deleteTeamFolderTreeCallable() {
              +    return deleteTeamFolderTreeCallable;
              +  }
              +
              +  @Override
              +  public OperationCallable
              +      deleteTeamFolderTreeOperationCallable() {
              +    return deleteTeamFolderTreeOperationCallable;
              +  }
              +
                 @Override
                 public UnaryCallable
                     queryTeamFolderContentsCallable() {
              @@ -4628,6 +4855,17 @@ public UnaryCallable deleteFolderCallable() {
                   return deleteFolderCallable;
                 }
               
              +  @Override
              +  public UnaryCallable deleteFolderTreeCallable() {
              +    return deleteFolderTreeCallable;
              +  }
              +
              +  @Override
              +  public OperationCallable
              +      deleteFolderTreeOperationCallable() {
              +    return deleteFolderTreeOperationCallable;
              +  }
              +
                 @Override
                 public UnaryCallable
                     queryFolderContentsCallable() {
              @@ -4695,6 +4933,21 @@ public UnaryCallable deleteRepositoryCallable()
                   return deleteRepositoryCallable;
                 }
               
              +  @Override
              +  public UnaryCallable
              +      deleteRepositoryLongRunningCallable() {
              +    return deleteRepositoryLongRunningCallable;
              +  }
              +
              +  @Override
              +  public OperationCallable<
              +          DeleteRepositoryLongRunningRequest,
              +          DeleteRepositoryLongRunningResponse,
              +          DeleteRepositoryLongRunningMetadata>
              +      deleteRepositoryLongRunningOperationCallable() {
              +    return deleteRepositoryLongRunningOperationCallable;
              +  }
              +
                 @Override
                 public UnaryCallable moveRepositoryCallable() {
                   return moveRepositoryCallable;
              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 d6134dd8a489..6a55ca96464e 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
              @@ -1250,6 +1250,51 @@
                   "allDeclaredClasses": true,
                   "allPublicClasses": true
                 },
              +  {
              +    "name": "com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata",
              +    "queryAllDeclaredConstructors": true,
              +    "queryAllPublicConstructors": true,
              +    "queryAllDeclaredMethods": true,
              +    "allPublicMethods": true,
              +    "allDeclaredClasses": true,
              +    "allPublicClasses": true
              +  },
              +  {
              +    "name": "com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata$Builder",
              +    "queryAllDeclaredConstructors": true,
              +    "queryAllPublicConstructors": true,
              +    "queryAllDeclaredMethods": true,
              +    "allPublicMethods": true,
              +    "allDeclaredClasses": true,
              +    "allPublicClasses": true
              +  },
              +  {
              +    "name": "com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata$State",
              +    "queryAllDeclaredConstructors": true,
              +    "queryAllPublicConstructors": true,
              +    "queryAllDeclaredMethods": true,
              +    "allPublicMethods": true,
              +    "allDeclaredClasses": true,
              +    "allPublicClasses": true
              +  },
              +  {
              +    "name": "com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest",
              +    "queryAllDeclaredConstructors": true,
              +    "queryAllPublicConstructors": true,
              +    "queryAllDeclaredMethods": true,
              +    "allPublicMethods": true,
              +    "allDeclaredClasses": true,
              +    "allPublicClasses": true
              +  },
              +  {
              +    "name": "com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest$Builder",
              +    "queryAllDeclaredConstructors": true,
              +    "queryAllPublicConstructors": true,
              +    "queryAllDeclaredMethods": true,
              +    "allPublicMethods": true,
              +    "allDeclaredClasses": true,
              +    "allPublicClasses": true
              +  },
                 {
                   "name": "com.google.cloud.dataform.v1beta1.DeleteReleaseConfigRequest",
                   "queryAllDeclaredConstructors": true,
              @@ -1268,6 +1313,69 @@
                   "allDeclaredClasses": true,
                   "allPublicClasses": true
                 },
              +  {
              +    "name": "com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata",
              +    "queryAllDeclaredConstructors": true,
              +    "queryAllPublicConstructors": true,
              +    "queryAllDeclaredMethods": true,
              +    "allPublicMethods": true,
              +    "allDeclaredClasses": true,
              +    "allPublicClasses": true
              +  },
              +  {
              +    "name": "com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata$Builder",
              +    "queryAllDeclaredConstructors": true,
              +    "queryAllPublicConstructors": true,
              +    "queryAllDeclaredMethods": true,
              +    "allPublicMethods": true,
              +    "allDeclaredClasses": true,
              +    "allPublicClasses": true
              +  },
              +  {
              +    "name": "com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata$State",
              +    "queryAllDeclaredConstructors": true,
              +    "queryAllPublicConstructors": true,
              +    "queryAllDeclaredMethods": true,
              +    "allPublicMethods": true,
              +    "allDeclaredClasses": true,
              +    "allPublicClasses": true
              +  },
              +  {
              +    "name": "com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest",
              +    "queryAllDeclaredConstructors": true,
              +    "queryAllPublicConstructors": true,
              +    "queryAllDeclaredMethods": true,
              +    "allPublicMethods": true,
              +    "allDeclaredClasses": true,
              +    "allPublicClasses": true
              +  },
              +  {
              +    "name": "com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest$Builder",
              +    "queryAllDeclaredConstructors": true,
              +    "queryAllPublicConstructors": true,
              +    "queryAllDeclaredMethods": true,
              +    "allPublicMethods": true,
              +    "allDeclaredClasses": true,
              +    "allPublicClasses": true
              +  },
              +  {
              +    "name": "com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse",
              +    "queryAllDeclaredConstructors": true,
              +    "queryAllPublicConstructors": true,
              +    "queryAllDeclaredMethods": true,
              +    "allPublicMethods": true,
              +    "allDeclaredClasses": true,
              +    "allPublicClasses": true
              +  },
              +  {
              +    "name": "com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse$Builder",
              +    "queryAllDeclaredConstructors": true,
              +    "queryAllPublicConstructors": true,
              +    "queryAllDeclaredMethods": true,
              +    "allPublicMethods": true,
              +    "allDeclaredClasses": true,
              +    "allPublicClasses": true
              +  },
                 {
                   "name": "com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest",
                   "queryAllDeclaredConstructors": true,
              @@ -1304,6 +1412,24 @@
                   "allDeclaredClasses": true,
                   "allPublicClasses": true
                 },
              +  {
              +    "name": "com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest",
              +    "queryAllDeclaredConstructors": true,
              +    "queryAllPublicConstructors": true,
              +    "queryAllDeclaredMethods": true,
              +    "allPublicMethods": true,
              +    "allDeclaredClasses": true,
              +    "allPublicClasses": true
              +  },
              +  {
              +    "name": "com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest$Builder",
              +    "queryAllDeclaredConstructors": true,
              +    "queryAllPublicConstructors": true,
              +    "queryAllDeclaredMethods": true,
              +    "allPublicMethods": true,
              +    "allDeclaredClasses": true,
              +    "allPublicClasses": true
              +  },
                 {
                   "name": "com.google.cloud.dataform.v1beta1.DeleteWorkflowConfigRequest",
                   "queryAllDeclaredConstructors": true,
              @@ -1358,6 +1484,15 @@
                   "allDeclaredClasses": true,
                   "allPublicClasses": true
                 },
              +  {
              +    "name": "com.google.cloud.dataform.v1beta1.DirectoryContentsView",
              +    "queryAllDeclaredConstructors": true,
              +    "queryAllPublicConstructors": true,
              +    "queryAllDeclaredMethods": true,
              +    "allPublicMethods": true,
              +    "allDeclaredClasses": true,
              +    "allPublicClasses": true
              +  },
                 {
                   "name": "com.google.cloud.dataform.v1beta1.DirectoryEntry",
                   "queryAllDeclaredConstructors": true,
              @@ -1619,6 +1754,24 @@
                   "allDeclaredClasses": true,
                   "allPublicClasses": true
                 },
              +  {
              +    "name": "com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata",
              +    "queryAllDeclaredConstructors": true,
              +    "queryAllPublicConstructors": true,
              +    "queryAllDeclaredMethods": true,
              +    "allPublicMethods": true,
              +    "allDeclaredClasses": true,
              +    "allPublicClasses": true
              +  },
              +  {
              +    "name": "com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata$Builder",
              +    "queryAllDeclaredConstructors": true,
              +    "queryAllPublicConstructors": true,
              +    "queryAllDeclaredMethods": true,
              +    "allPublicMethods": true,
              +    "allDeclaredClasses": true,
              +    "allPublicClasses": true
              +  },
                 {
                   "name": "com.google.cloud.dataform.v1beta1.Folder",
                   "queryAllDeclaredConstructors": true,
              diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java
              index 40ad003f8d06..c548cb6257f8 100644
              --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java
              +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientHttpJsonTest.java
              @@ -458,6 +458,100 @@ public void deleteTeamFolderExceptionTest2() throws Exception {
                   }
                 }
               
              +  @Test
              +  public void deleteTeamFolderTreeTest() throws Exception {
              +    Empty expectedResponse = Empty.newBuilder().build();
              +    Operation resultOperation =
              +        Operation.newBuilder()
              +            .setName("deleteTeamFolderTreeTest")
              +            .setDone(true)
              +            .setResponse(Any.pack(expectedResponse))
              +            .build();
              +    mockService.addResponse(resultOperation);
              +
              +    TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]");
              +    boolean force = true;
              +
              +    client.deleteTeamFolderTreeAsync(name, force).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 deleteTeamFolderTreeExceptionTest() throws Exception {
              +    ApiException exception =
              +        ApiExceptionFactory.createException(
              +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
              +    mockService.addException(exception);
              +
              +    try {
              +      TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]");
              +      boolean force = true;
              +      client.deleteTeamFolderTreeAsync(name, force).get();
              +      Assert.fail("No exception raised");
              +    } catch (ExecutionException e) {
              +    }
              +  }
              +
              +  @Test
              +  public void deleteTeamFolderTreeTest2() throws Exception {
              +    Empty expectedResponse = Empty.newBuilder().build();
              +    Operation resultOperation =
              +        Operation.newBuilder()
              +            .setName("deleteTeamFolderTreeTest")
              +            .setDone(true)
              +            .setResponse(Any.pack(expectedResponse))
              +            .build();
              +    mockService.addResponse(resultOperation);
              +
              +    String name = "projects/project-1378/locations/location-1378/teamFolders/teamFolder-1378";
              +    boolean force = true;
              +
              +    client.deleteTeamFolderTreeAsync(name, force).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 deleteTeamFolderTreeExceptionTest2() throws Exception {
              +    ApiException exception =
              +        ApiExceptionFactory.createException(
              +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
              +    mockService.addException(exception);
              +
              +    try {
              +      String name = "projects/project-1378/locations/location-1378/teamFolders/teamFolder-1378";
              +      boolean force = true;
              +      client.deleteTeamFolderTreeAsync(name, force).get();
              +      Assert.fail("No exception raised");
              +    } catch (ExecutionException e) {
              +    }
              +  }
              +
                 @Test
                 public void queryTeamFolderContentsTest() throws Exception {
                   QueryTeamFolderContentsResponse.TeamFolderContentsEntry responsesElement =
              @@ -992,6 +1086,100 @@ public void deleteFolderExceptionTest2() throws Exception {
                   }
                 }
               
              +  @Test
              +  public void deleteFolderTreeTest() throws Exception {
              +    Empty expectedResponse = Empty.newBuilder().build();
              +    Operation resultOperation =
              +        Operation.newBuilder()
              +            .setName("deleteFolderTreeTest")
              +            .setDone(true)
              +            .setResponse(Any.pack(expectedResponse))
              +            .build();
              +    mockService.addResponse(resultOperation);
              +
              +    FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]");
              +    boolean force = true;
              +
              +    client.deleteFolderTreeAsync(name, force).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 deleteFolderTreeExceptionTest() throws Exception {
              +    ApiException exception =
              +        ApiExceptionFactory.createException(
              +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
              +    mockService.addException(exception);
              +
              +    try {
              +      FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]");
              +      boolean force = true;
              +      client.deleteFolderTreeAsync(name, force).get();
              +      Assert.fail("No exception raised");
              +    } catch (ExecutionException e) {
              +    }
              +  }
              +
              +  @Test
              +  public void deleteFolderTreeTest2() throws Exception {
              +    Empty expectedResponse = Empty.newBuilder().build();
              +    Operation resultOperation =
              +        Operation.newBuilder()
              +            .setName("deleteFolderTreeTest")
              +            .setDone(true)
              +            .setResponse(Any.pack(expectedResponse))
              +            .build();
              +    mockService.addResponse(resultOperation);
              +
              +    String name = "projects/project-6987/locations/location-6987/folders/folder-6987";
              +    boolean force = true;
              +
              +    client.deleteFolderTreeAsync(name, force).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 deleteFolderTreeExceptionTest2() throws Exception {
              +    ApiException exception =
              +        ApiExceptionFactory.createException(
              +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
              +    mockService.addException(exception);
              +
              +    try {
              +      String name = "projects/project-6987/locations/location-6987/folders/folder-6987";
              +      boolean force = true;
              +      client.deleteFolderTreeAsync(name, force).get();
              +      Assert.fail("No exception raised");
              +    } catch (ExecutionException e) {
              +    }
              +  }
              +
                 @Test
                 public void queryFolderContentsTest() throws Exception {
                   QueryFolderContentsResponse.FolderContentsEntry responsesElement =
              @@ -1815,6 +2003,106 @@ public void deleteRepositoryExceptionTest2() throws Exception {
                   }
                 }
               
              +  @Test
              +  public void deleteRepositoryLongRunningTest() throws Exception {
              +    DeleteRepositoryLongRunningResponse expectedResponse =
              +        DeleteRepositoryLongRunningResponse.newBuilder().build();
              +    Operation resultOperation =
              +        Operation.newBuilder()
              +            .setName("deleteRepositoryLongRunningTest")
              +            .setDone(true)
              +            .setResponse(Any.pack(expectedResponse))
              +            .build();
              +    mockService.addResponse(resultOperation);
              +
              +    RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
              +    boolean force = true;
              +
              +    DeleteRepositoryLongRunningResponse actualResponse =
              +        client.deleteRepositoryLongRunningAsync(name, force).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 deleteRepositoryLongRunningExceptionTest() throws Exception {
              +    ApiException exception =
              +        ApiExceptionFactory.createException(
              +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
              +    mockService.addException(exception);
              +
              +    try {
              +      RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
              +      boolean force = true;
              +      client.deleteRepositoryLongRunningAsync(name, force).get();
              +      Assert.fail("No exception raised");
              +    } catch (ExecutionException e) {
              +    }
              +  }
              +
              +  @Test
              +  public void deleteRepositoryLongRunningTest2() throws Exception {
              +    DeleteRepositoryLongRunningResponse expectedResponse =
              +        DeleteRepositoryLongRunningResponse.newBuilder().build();
              +    Operation resultOperation =
              +        Operation.newBuilder()
              +            .setName("deleteRepositoryLongRunningTest")
              +            .setDone(true)
              +            .setResponse(Any.pack(expectedResponse))
              +            .build();
              +    mockService.addResponse(resultOperation);
              +
              +    String name = "projects/project-4840/locations/location-4840/repositories/repositorie-4840";
              +    boolean force = true;
              +
              +    DeleteRepositoryLongRunningResponse actualResponse =
              +        client.deleteRepositoryLongRunningAsync(name, force).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 deleteRepositoryLongRunningExceptionTest2() throws Exception {
              +    ApiException exception =
              +        ApiExceptionFactory.createException(
              +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
              +    mockService.addException(exception);
              +
              +    try {
              +      String name = "projects/project-4840/locations/location-4840/repositories/repositorie-4840";
              +      boolean force = true;
              +      client.deleteRepositoryLongRunningAsync(name, force).get();
              +      Assert.fail("No exception raised");
              +    } catch (ExecutionException e) {
              +    }
              +  }
              +
                 @Test
                 public void moveRepositoryTest() throws Exception {
                   Empty expectedResponse = Empty.newBuilder().build();
              @@ -3094,6 +3382,7 @@ public void queryDirectoryContentsTest() throws Exception {
                           .setPath("path3433509")
                           .setPageSize(883849137)
                           .setPageToken("pageToken873572522")
              +            .setView(DirectoryContentsView.forNumber(0))
                           .build();
               
                   QueryDirectoryContentsPagedResponse pagedListResponse = client.queryDirectoryContents(request);
              @@ -3134,6 +3423,7 @@ public void queryDirectoryContentsExceptionTest() throws Exception {
                             .setPath("path3433509")
                             .setPageSize(883849137)
                             .setPageToken("pageToken873572522")
              +              .setView(DirectoryContentsView.forNumber(0))
                             .build();
                     client.queryDirectoryContents(request);
                     Assert.fail("No exception raised");
              diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java
              index 9aeb3c709872..38f8edca3447 100644
              --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java
              +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/DataformClientTest.java
              @@ -414,6 +414,98 @@ public void deleteTeamFolderExceptionTest2() throws Exception {
                   }
                 }
               
              +  @Test
              +  public void deleteTeamFolderTreeTest() throws Exception {
              +    Empty expectedResponse = Empty.newBuilder().build();
              +    Operation resultOperation =
              +        Operation.newBuilder()
              +            .setName("deleteTeamFolderTreeTest")
              +            .setDone(true)
              +            .setResponse(Any.pack(expectedResponse))
              +            .build();
              +    mockDataform.addResponse(resultOperation);
              +
              +    TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]");
              +    boolean force = true;
              +
              +    client.deleteTeamFolderTreeAsync(name, force).get();
              +
              +    List actualRequests = mockDataform.getRequests();
              +    Assert.assertEquals(1, actualRequests.size());
              +    DeleteTeamFolderTreeRequest actualRequest =
              +        ((DeleteTeamFolderTreeRequest) actualRequests.get(0));
              +
              +    Assert.assertEquals(name.toString(), actualRequest.getName());
              +    Assert.assertEquals(force, actualRequest.getForce());
              +    Assert.assertTrue(
              +        channelProvider.isHeaderSent(
              +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
              +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
              +  }
              +
              +  @Test
              +  public void deleteTeamFolderTreeExceptionTest() throws Exception {
              +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
              +    mockDataform.addException(exception);
              +
              +    try {
              +      TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]");
              +      boolean force = true;
              +      client.deleteTeamFolderTreeAsync(name, force).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 deleteTeamFolderTreeTest2() throws Exception {
              +    Empty expectedResponse = Empty.newBuilder().build();
              +    Operation resultOperation =
              +        Operation.newBuilder()
              +            .setName("deleteTeamFolderTreeTest")
              +            .setDone(true)
              +            .setResponse(Any.pack(expectedResponse))
              +            .build();
              +    mockDataform.addResponse(resultOperation);
              +
              +    String name = "name3373707";
              +    boolean force = true;
              +
              +    client.deleteTeamFolderTreeAsync(name, force).get();
              +
              +    List actualRequests = mockDataform.getRequests();
              +    Assert.assertEquals(1, actualRequests.size());
              +    DeleteTeamFolderTreeRequest actualRequest =
              +        ((DeleteTeamFolderTreeRequest) actualRequests.get(0));
              +
              +    Assert.assertEquals(name, actualRequest.getName());
              +    Assert.assertEquals(force, actualRequest.getForce());
              +    Assert.assertTrue(
              +        channelProvider.isHeaderSent(
              +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
              +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
              +  }
              +
              +  @Test
              +  public void deleteTeamFolderTreeExceptionTest2() throws Exception {
              +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
              +    mockDataform.addException(exception);
              +
              +    try {
              +      String name = "name3373707";
              +      boolean force = true;
              +      client.deleteTeamFolderTreeAsync(name, force).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 queryTeamFolderContentsTest() throws Exception {
                   QueryTeamFolderContentsResponse.TeamFolderContentsEntry responsesElement =
              @@ -876,6 +968,96 @@ public void deleteFolderExceptionTest2() throws Exception {
                   }
                 }
               
              +  @Test
              +  public void deleteFolderTreeTest() throws Exception {
              +    Empty expectedResponse = Empty.newBuilder().build();
              +    Operation resultOperation =
              +        Operation.newBuilder()
              +            .setName("deleteFolderTreeTest")
              +            .setDone(true)
              +            .setResponse(Any.pack(expectedResponse))
              +            .build();
              +    mockDataform.addResponse(resultOperation);
              +
              +    FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]");
              +    boolean force = true;
              +
              +    client.deleteFolderTreeAsync(name, force).get();
              +
              +    List actualRequests = mockDataform.getRequests();
              +    Assert.assertEquals(1, actualRequests.size());
              +    DeleteFolderTreeRequest actualRequest = ((DeleteFolderTreeRequest) actualRequests.get(0));
              +
              +    Assert.assertEquals(name.toString(), actualRequest.getName());
              +    Assert.assertEquals(force, actualRequest.getForce());
              +    Assert.assertTrue(
              +        channelProvider.isHeaderSent(
              +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
              +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
              +  }
              +
              +  @Test
              +  public void deleteFolderTreeExceptionTest() throws Exception {
              +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
              +    mockDataform.addException(exception);
              +
              +    try {
              +      FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]");
              +      boolean force = true;
              +      client.deleteFolderTreeAsync(name, force).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 deleteFolderTreeTest2() throws Exception {
              +    Empty expectedResponse = Empty.newBuilder().build();
              +    Operation resultOperation =
              +        Operation.newBuilder()
              +            .setName("deleteFolderTreeTest")
              +            .setDone(true)
              +            .setResponse(Any.pack(expectedResponse))
              +            .build();
              +    mockDataform.addResponse(resultOperation);
              +
              +    String name = "name3373707";
              +    boolean force = true;
              +
              +    client.deleteFolderTreeAsync(name, force).get();
              +
              +    List actualRequests = mockDataform.getRequests();
              +    Assert.assertEquals(1, actualRequests.size());
              +    DeleteFolderTreeRequest actualRequest = ((DeleteFolderTreeRequest) actualRequests.get(0));
              +
              +    Assert.assertEquals(name, actualRequest.getName());
              +    Assert.assertEquals(force, actualRequest.getForce());
              +    Assert.assertTrue(
              +        channelProvider.isHeaderSent(
              +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
              +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
              +  }
              +
              +  @Test
              +  public void deleteFolderTreeExceptionTest2() throws Exception {
              +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
              +    mockDataform.addException(exception);
              +
              +    try {
              +      String name = "name3373707";
              +      boolean force = true;
              +      client.deleteFolderTreeAsync(name, force).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 queryFolderContentsTest() throws Exception {
                   QueryFolderContentsResponse.FolderContentsEntry responsesElement =
              @@ -1590,6 +1772,104 @@ public void deleteRepositoryExceptionTest2() throws Exception {
                   }
                 }
               
              +  @Test
              +  public void deleteRepositoryLongRunningTest() throws Exception {
              +    DeleteRepositoryLongRunningResponse expectedResponse =
              +        DeleteRepositoryLongRunningResponse.newBuilder().build();
              +    Operation resultOperation =
              +        Operation.newBuilder()
              +            .setName("deleteRepositoryLongRunningTest")
              +            .setDone(true)
              +            .setResponse(Any.pack(expectedResponse))
              +            .build();
              +    mockDataform.addResponse(resultOperation);
              +
              +    RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
              +    boolean force = true;
              +
              +    DeleteRepositoryLongRunningResponse actualResponse =
              +        client.deleteRepositoryLongRunningAsync(name, force).get();
              +    Assert.assertEquals(expectedResponse, actualResponse);
              +
              +    List actualRequests = mockDataform.getRequests();
              +    Assert.assertEquals(1, actualRequests.size());
              +    DeleteRepositoryLongRunningRequest actualRequest =
              +        ((DeleteRepositoryLongRunningRequest) actualRequests.get(0));
              +
              +    Assert.assertEquals(name.toString(), actualRequest.getName());
              +    Assert.assertEquals(force, actualRequest.getForce());
              +    Assert.assertTrue(
              +        channelProvider.isHeaderSent(
              +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
              +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
              +  }
              +
              +  @Test
              +  public void deleteRepositoryLongRunningExceptionTest() throws Exception {
              +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
              +    mockDataform.addException(exception);
              +
              +    try {
              +      RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]");
              +      boolean force = true;
              +      client.deleteRepositoryLongRunningAsync(name, force).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 deleteRepositoryLongRunningTest2() throws Exception {
              +    DeleteRepositoryLongRunningResponse expectedResponse =
              +        DeleteRepositoryLongRunningResponse.newBuilder().build();
              +    Operation resultOperation =
              +        Operation.newBuilder()
              +            .setName("deleteRepositoryLongRunningTest")
              +            .setDone(true)
              +            .setResponse(Any.pack(expectedResponse))
              +            .build();
              +    mockDataform.addResponse(resultOperation);
              +
              +    String name = "name3373707";
              +    boolean force = true;
              +
              +    DeleteRepositoryLongRunningResponse actualResponse =
              +        client.deleteRepositoryLongRunningAsync(name, force).get();
              +    Assert.assertEquals(expectedResponse, actualResponse);
              +
              +    List actualRequests = mockDataform.getRequests();
              +    Assert.assertEquals(1, actualRequests.size());
              +    DeleteRepositoryLongRunningRequest actualRequest =
              +        ((DeleteRepositoryLongRunningRequest) actualRequests.get(0));
              +
              +    Assert.assertEquals(name, actualRequest.getName());
              +    Assert.assertEquals(force, actualRequest.getForce());
              +    Assert.assertTrue(
              +        channelProvider.isHeaderSent(
              +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
              +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
              +  }
              +
              +  @Test
              +  public void deleteRepositoryLongRunningExceptionTest2() throws Exception {
              +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
              +    mockDataform.addException(exception);
              +
              +    try {
              +      String name = "name3373707";
              +      boolean force = true;
              +      client.deleteRepositoryLongRunningAsync(name, force).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 moveRepositoryTest() throws Exception {
                   Empty expectedResponse = Empty.newBuilder().build();
              @@ -2764,6 +3044,7 @@ public void queryDirectoryContentsTest() throws Exception {
                           .setPath("path3433509")
                           .setPageSize(883849137)
                           .setPageToken("pageToken873572522")
              +            .setView(DirectoryContentsView.forNumber(0))
                           .build();
               
                   QueryDirectoryContentsPagedResponse pagedListResponse = client.queryDirectoryContents(request);
              @@ -2782,6 +3063,7 @@ public void queryDirectoryContentsTest() throws Exception {
                   Assert.assertEquals(request.getPath(), actualRequest.getPath());
                   Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize());
                   Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken());
              +    Assert.assertEquals(request.getView(), actualRequest.getView());
                   Assert.assertTrue(
                       channelProvider.isHeaderSent(
                           ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
              @@ -2802,6 +3084,7 @@ public void queryDirectoryContentsExceptionTest() throws Exception {
                             .setPath("path3433509")
                             .setPageSize(883849137)
                             .setPageToken("pageToken873572522")
              +              .setView(DirectoryContentsView.forNumber(0))
                             .build();
                     client.queryDirectoryContents(request);
                     Assert.fail("No exception raised");
              diff --git a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java
              index 7a46c1ca1386..0e77c774f858 100644
              --- a/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java
              +++ b/java-dataform/google-cloud-dataform/src/test/java/com/google/cloud/dataform/v1beta1/MockDataformImpl.java
              @@ -149,6 +149,28 @@ public void deleteTeamFolder(
                   }
                 }
               
              +  @Override
              +  public void deleteTeamFolderTree(
              +      DeleteTeamFolderTreeRequest 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 DeleteTeamFolderTree, expected %s or"
              +                      + " %s",
              +                  response == null ? "null" : response.getClass().getName(),
              +                  Operation.class.getName(),
              +                  Exception.class.getName())));
              +    }
              +  }
              +
                 @Override
                 public void queryTeamFolderContents(
                     QueryTeamFolderContentsRequest request,
              @@ -274,6 +296,27 @@ public void deleteFolder(DeleteFolderRequest request, StreamObserver resp
                   }
                 }
               
              +  @Override
              +  public void deleteFolderTree(
              +      DeleteFolderTreeRequest 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 DeleteFolderTree, expected %s or %s",
              +                  response == null ? "null" : response.getClass().getName(),
              +                  Operation.class.getName(),
              +                  Exception.class.getName())));
              +    }
              +  }
              +
                 @Override
                 public void queryFolderContents(
                     QueryFolderContentsRequest request,
              @@ -444,6 +487,28 @@ public void deleteRepository(
                   }
                 }
               
              +  @Override
              +  public void deleteRepositoryLongRunning(
              +      DeleteRepositoryLongRunningRequest 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 DeleteRepositoryLongRunning, expected"
              +                      + " %s or %s",
              +                  response == null ? "null" : response.getClass().getName(),
              +                  Operation.class.getName(),
              +                  Exception.class.getName())));
              +    }
              +  }
              +
                 @Override
                 public void moveRepository(
                     MoveRepositoryRequest request, StreamObserver responseObserver) {
              diff --git a/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java b/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java
              index 0d3a7b8437dd..a2c59c70247f 100644
              --- a/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java
              +++ b/java-dataform/grpc-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformGrpc.java
              @@ -210,6 +210,53 @@ private DataformGrpc() {}
                   return getDeleteTeamFolderMethod;
                 }
               
              +  private static volatile io.grpc.MethodDescriptor<
              +          com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest,
              +          com.google.longrunning.Operation>
              +      getDeleteTeamFolderTreeMethod;
              +
              +  @io.grpc.stub.annotations.RpcMethod(
              +      fullMethodName = SERVICE_NAME + '/' + "DeleteTeamFolderTree",
              +      requestType = com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest.class,
              +      responseType = com.google.longrunning.Operation.class,
              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
              +  public static io.grpc.MethodDescriptor<
              +          com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest,
              +          com.google.longrunning.Operation>
              +      getDeleteTeamFolderTreeMethod() {
              +    io.grpc.MethodDescriptor<
              +            com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest,
              +            com.google.longrunning.Operation>
              +        getDeleteTeamFolderTreeMethod;
              +    if ((getDeleteTeamFolderTreeMethod = DataformGrpc.getDeleteTeamFolderTreeMethod) == null) {
              +      synchronized (DataformGrpc.class) {
              +        if ((getDeleteTeamFolderTreeMethod = DataformGrpc.getDeleteTeamFolderTreeMethod) == null) {
              +          DataformGrpc.getDeleteTeamFolderTreeMethod =
              +              getDeleteTeamFolderTreeMethod =
              +                  io.grpc.MethodDescriptor
              +                      .
              +                          newBuilder()
              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              +                      .setFullMethodName(
              +                          generateFullMethodName(SERVICE_NAME, "DeleteTeamFolderTree"))
              +                      .setSampledToLocalTracing(true)
              +                      .setRequestMarshaller(
              +                          io.grpc.protobuf.ProtoUtils.marshaller(
              +                              com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest
              +                                  .getDefaultInstance()))
              +                      .setResponseMarshaller(
              +                          io.grpc.protobuf.ProtoUtils.marshaller(
              +                              com.google.longrunning.Operation.getDefaultInstance()))
              +                      .setSchemaDescriptor(
              +                          new DataformMethodDescriptorSupplier("DeleteTeamFolderTree"))
              +                      .build();
              +        }
              +      }
              +    }
              +    return getDeleteTeamFolderTreeMethod;
              +  }
              +
                 private static volatile io.grpc.MethodDescriptor<
                         com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest,
                         com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse>
              @@ -484,6 +531,51 @@ private DataformGrpc() {}
                   return getDeleteFolderMethod;
                 }
               
              +  private static volatile io.grpc.MethodDescriptor<
              +          com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest,
              +          com.google.longrunning.Operation>
              +      getDeleteFolderTreeMethod;
              +
              +  @io.grpc.stub.annotations.RpcMethod(
              +      fullMethodName = SERVICE_NAME + '/' + "DeleteFolderTree",
              +      requestType = com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest.class,
              +      responseType = com.google.longrunning.Operation.class,
              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
              +  public static io.grpc.MethodDescriptor<
              +          com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest,
              +          com.google.longrunning.Operation>
              +      getDeleteFolderTreeMethod() {
              +    io.grpc.MethodDescriptor<
              +            com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest,
              +            com.google.longrunning.Operation>
              +        getDeleteFolderTreeMethod;
              +    if ((getDeleteFolderTreeMethod = DataformGrpc.getDeleteFolderTreeMethod) == null) {
              +      synchronized (DataformGrpc.class) {
              +        if ((getDeleteFolderTreeMethod = DataformGrpc.getDeleteFolderTreeMethod) == null) {
              +          DataformGrpc.getDeleteFolderTreeMethod =
              +              getDeleteFolderTreeMethod =
              +                  io.grpc.MethodDescriptor
              +                      .
              +                          newBuilder()
              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFolderTree"))
              +                      .setSampledToLocalTracing(true)
              +                      .setRequestMarshaller(
              +                          io.grpc.protobuf.ProtoUtils.marshaller(
              +                              com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest
              +                                  .getDefaultInstance()))
              +                      .setResponseMarshaller(
              +                          io.grpc.protobuf.ProtoUtils.marshaller(
              +                              com.google.longrunning.Operation.getDefaultInstance()))
              +                      .setSchemaDescriptor(new DataformMethodDescriptorSupplier("DeleteFolderTree"))
              +                      .build();
              +        }
              +      }
              +    }
              +    return getDeleteFolderTreeMethod;
              +  }
              +
                 private static volatile io.grpc.MethodDescriptor<
                         com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest,
                         com.google.cloud.dataform.v1beta1.QueryFolderContentsResponse>
              @@ -846,6 +938,56 @@ private DataformGrpc() {}
                   return getDeleteRepositoryMethod;
                 }
               
              +  private static volatile io.grpc.MethodDescriptor<
              +          com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest,
              +          com.google.longrunning.Operation>
              +      getDeleteRepositoryLongRunningMethod;
              +
              +  @io.grpc.stub.annotations.RpcMethod(
              +      fullMethodName = SERVICE_NAME + '/' + "DeleteRepositoryLongRunning",
              +      requestType = com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest.class,
              +      responseType = com.google.longrunning.Operation.class,
              +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
              +  public static io.grpc.MethodDescriptor<
              +          com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest,
              +          com.google.longrunning.Operation>
              +      getDeleteRepositoryLongRunningMethod() {
              +    io.grpc.MethodDescriptor<
              +            com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest,
              +            com.google.longrunning.Operation>
              +        getDeleteRepositoryLongRunningMethod;
              +    if ((getDeleteRepositoryLongRunningMethod = DataformGrpc.getDeleteRepositoryLongRunningMethod)
              +        == null) {
              +      synchronized (DataformGrpc.class) {
              +        if ((getDeleteRepositoryLongRunningMethod =
              +                DataformGrpc.getDeleteRepositoryLongRunningMethod)
              +            == null) {
              +          DataformGrpc.getDeleteRepositoryLongRunningMethod =
              +              getDeleteRepositoryLongRunningMethod =
              +                  io.grpc.MethodDescriptor
              +                      .
              +                          newBuilder()
              +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              +                      .setFullMethodName(
              +                          generateFullMethodName(SERVICE_NAME, "DeleteRepositoryLongRunning"))
              +                      .setSampledToLocalTracing(true)
              +                      .setRequestMarshaller(
              +                          io.grpc.protobuf.ProtoUtils.marshaller(
              +                              com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest
              +                                  .getDefaultInstance()))
              +                      .setResponseMarshaller(
              +                          io.grpc.protobuf.ProtoUtils.marshaller(
              +                              com.google.longrunning.Operation.getDefaultInstance()))
              +                      .setSchemaDescriptor(
              +                          new DataformMethodDescriptorSupplier("DeleteRepositoryLongRunning"))
              +                      .build();
              +        }
              +      }
              +    }
              +    return getDeleteRepositoryLongRunningMethod;
              +  }
              +
                 private static volatile io.grpc.MethodDescriptor<
                         com.google.cloud.dataform.v1beta1.MoveRepositoryRequest, com.google.longrunning.Operation>
                     getMoveRepositoryMethod;
              @@ -3464,6 +3606,21 @@ default void deleteTeamFolder(
                         getDeleteTeamFolderMethod(), responseObserver);
                   }
               
              +    /**
              +     *
              +     *
              +     * 
              +     * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces,
              +     * ReleaseConfigs, and WorkflowConfigs).
              +     * 
              + */ + default void deleteTeamFolderTree( + com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteTeamFolderTreeMethod(), responseObserver); + } + /** * * @@ -3551,6 +3708,21 @@ default void deleteFolder( getDeleteFolderMethod(), responseObserver); } + /** + * + * + *
              +     * Deletes a Folder with its contents (Folders, Repositories, Workspaces,
              +     * ReleaseConfigs, and WorkflowConfigs).
              +     * 
              + */ + default void deleteFolderTree( + com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFolderTreeMethod(), responseObserver); + } + /** * * @@ -3676,6 +3848,20 @@ default void deleteRepository( getDeleteRepositoryMethod(), responseObserver); } + /** + * + * + *
              +     * Deletes a single repository asynchronously.
              +     * 
              + */ + default void deleteRepositoryLongRunning( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRepositoryLongRunningMethod(), responseObserver); + } + /** * * @@ -4594,6 +4780,23 @@ public void deleteTeamFolder( responseObserver); } + /** + * + * + *
              +     * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces,
              +     * ReleaseConfigs, and WorkflowConfigs).
              +     * 
              + */ + public void deleteTeamFolderTree( + com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteTeamFolderTreeMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -4692,6 +4895,23 @@ public void deleteFolder( responseObserver); } + /** + * + * + *
              +     * Deletes a Folder with its contents (Folders, Repositories, Workspaces,
              +     * ReleaseConfigs, and WorkflowConfigs).
              +     * 
              + */ + public void deleteFolderTree( + com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFolderTreeMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -4832,6 +5052,22 @@ public void deleteRepository( responseObserver); } + /** + * + * + *
              +     * Deletes a single repository asynchronously.
              +     * 
              + */ + public void deleteRepositoryLongRunning( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRepositoryLongRunningMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -5826,6 +6062,21 @@ public com.google.protobuf.Empty deleteTeamFolder( getChannel(), getDeleteTeamFolderMethod(), getCallOptions(), request); } + /** + * + * + *
              +     * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces,
              +     * ReleaseConfigs, and WorkflowConfigs).
              +     * 
              + */ + public com.google.longrunning.Operation deleteTeamFolderTree( + com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteTeamFolderTreeMethod(), getCallOptions(), request); + } + /** * * @@ -5911,6 +6162,21 @@ public com.google.protobuf.Empty deleteFolder( getChannel(), getDeleteFolderMethod(), getCallOptions(), request); } + /** + * + * + *
              +     * Deletes a Folder with its contents (Folders, Repositories, Workspaces,
              +     * ReleaseConfigs, and WorkflowConfigs).
              +     * 
              + */ + public com.google.longrunning.Operation deleteFolderTree( + com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteFolderTreeMethod(), getCallOptions(), request); + } + /** * * @@ -6031,6 +6297,20 @@ public com.google.protobuf.Empty deleteRepository( getChannel(), getDeleteRepositoryMethod(), getCallOptions(), request); } + /** + * + * + *
              +     * Deletes a single repository asynchronously.
              +     * 
              + */ + public com.google.longrunning.Operation deleteRepositoryLongRunning( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteRepositoryLongRunningMethod(), getCallOptions(), request); + } + /** * * @@ -6871,6 +7151,20 @@ public com.google.protobuf.Empty deleteTeamFolder( getChannel(), getDeleteTeamFolderMethod(), getCallOptions(), request); } + /** + * + * + *
              +     * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces,
              +     * ReleaseConfigs, and WorkflowConfigs).
              +     * 
              + */ + public com.google.longrunning.Operation deleteTeamFolderTree( + com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteTeamFolderTreeMethod(), getCallOptions(), request); + } + /** * * @@ -6951,6 +7245,20 @@ public com.google.protobuf.Empty deleteFolder( getChannel(), getDeleteFolderMethod(), getCallOptions(), request); } + /** + * + * + *
              +     * Deletes a Folder with its contents (Folders, Repositories, Workspaces,
              +     * ReleaseConfigs, and WorkflowConfigs).
              +     * 
              + */ + public com.google.longrunning.Operation deleteFolderTree( + com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFolderTreeMethod(), getCallOptions(), request); + } + /** * * @@ -7063,6 +7371,19 @@ public com.google.protobuf.Empty deleteRepository( getChannel(), getDeleteRepositoryMethod(), getCallOptions(), request); } + /** + * + * + *
              +     * Deletes a single repository asynchronously.
              +     * 
              + */ + public com.google.longrunning.Operation deleteRepositoryLongRunning( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRepositoryLongRunningMethod(), getCallOptions(), request); + } + /** * * @@ -7858,6 +8179,21 @@ protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions getChannel().newCall(getDeleteTeamFolderMethod(), getCallOptions()), request); } + /** + * + * + *
              +     * Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces,
              +     * ReleaseConfigs, and WorkflowConfigs).
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteTeamFolderTree( + com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteTeamFolderTreeMethod(), getCallOptions()), request); + } + /** * * @@ -7943,6 +8279,20 @@ protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions getChannel().newCall(getDeleteFolderMethod(), getCallOptions()), request); } + /** + * + * + *
              +     * Deletes a Folder with its contents (Folders, Repositories, Workspaces,
              +     * ReleaseConfigs, and WorkflowConfigs).
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteFolderTree(com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFolderTreeMethod(), getCallOptions()), request); + } + /** * * @@ -8062,6 +8412,20 @@ protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions getChannel().newCall(getDeleteRepositoryMethod(), getCallOptions()), request); } + /** + * + * + *
              +     * Deletes a single repository asynchronously.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteRepositoryLongRunning( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRepositoryLongRunningMethod(), getCallOptions()), request); + } + /** * * @@ -8853,73 +9217,76 @@ protected DataformFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_CREATE_TEAM_FOLDER = 1; private static final int METHODID_UPDATE_TEAM_FOLDER = 2; private static final int METHODID_DELETE_TEAM_FOLDER = 3; - private static final int METHODID_QUERY_TEAM_FOLDER_CONTENTS = 4; - private static final int METHODID_SEARCH_TEAM_FOLDERS = 5; - private static final int METHODID_GET_FOLDER = 6; - private static final int METHODID_CREATE_FOLDER = 7; - private static final int METHODID_UPDATE_FOLDER = 8; - private static final int METHODID_DELETE_FOLDER = 9; - private static final int METHODID_QUERY_FOLDER_CONTENTS = 10; - private static final int METHODID_QUERY_USER_ROOT_CONTENTS = 11; - private static final int METHODID_MOVE_FOLDER = 12; - private static final int METHODID_LIST_REPOSITORIES = 13; - private static final int METHODID_GET_REPOSITORY = 14; - private static final int METHODID_CREATE_REPOSITORY = 15; - private static final int METHODID_UPDATE_REPOSITORY = 16; - private static final int METHODID_DELETE_REPOSITORY = 17; - private static final int METHODID_MOVE_REPOSITORY = 18; - private static final int METHODID_COMMIT_REPOSITORY_CHANGES = 19; - private static final int METHODID_READ_REPOSITORY_FILE = 20; - private static final int METHODID_QUERY_REPOSITORY_DIRECTORY_CONTENTS = 21; - private static final int METHODID_FETCH_REPOSITORY_HISTORY = 22; - private static final int METHODID_COMPUTE_REPOSITORY_ACCESS_TOKEN_STATUS = 23; - private static final int METHODID_FETCH_REMOTE_BRANCHES = 24; - private static final int METHODID_LIST_WORKSPACES = 25; - private static final int METHODID_GET_WORKSPACE = 26; - private static final int METHODID_CREATE_WORKSPACE = 27; - private static final int METHODID_DELETE_WORKSPACE = 28; - private static final int METHODID_INSTALL_NPM_PACKAGES = 29; - private static final int METHODID_PULL_GIT_COMMITS = 30; - private static final int METHODID_PUSH_GIT_COMMITS = 31; - private static final int METHODID_FETCH_FILE_GIT_STATUSES = 32; - private static final int METHODID_FETCH_GIT_AHEAD_BEHIND = 33; - private static final int METHODID_COMMIT_WORKSPACE_CHANGES = 34; - private static final int METHODID_RESET_WORKSPACE_CHANGES = 35; - private static final int METHODID_FETCH_FILE_DIFF = 36; - private static final int METHODID_QUERY_DIRECTORY_CONTENTS = 37; - private static final int METHODID_SEARCH_FILES = 38; - private static final int METHODID_MAKE_DIRECTORY = 39; - private static final int METHODID_REMOVE_DIRECTORY = 40; - private static final int METHODID_MOVE_DIRECTORY = 41; - private static final int METHODID_READ_FILE = 42; - private static final int METHODID_REMOVE_FILE = 43; - private static final int METHODID_MOVE_FILE = 44; - private static final int METHODID_WRITE_FILE = 45; - private static final int METHODID_LIST_RELEASE_CONFIGS = 46; - private static final int METHODID_GET_RELEASE_CONFIG = 47; - private static final int METHODID_CREATE_RELEASE_CONFIG = 48; - private static final int METHODID_UPDATE_RELEASE_CONFIG = 49; - private static final int METHODID_DELETE_RELEASE_CONFIG = 50; - private static final int METHODID_LIST_COMPILATION_RESULTS = 51; - private static final int METHODID_GET_COMPILATION_RESULT = 52; - private static final int METHODID_CREATE_COMPILATION_RESULT = 53; - private static final int METHODID_QUERY_COMPILATION_RESULT_ACTIONS = 54; - private static final int METHODID_LIST_WORKFLOW_CONFIGS = 55; - private static final int METHODID_GET_WORKFLOW_CONFIG = 56; - private static final int METHODID_CREATE_WORKFLOW_CONFIG = 57; - private static final int METHODID_UPDATE_WORKFLOW_CONFIG = 58; - private static final int METHODID_DELETE_WORKFLOW_CONFIG = 59; - private static final int METHODID_LIST_WORKFLOW_INVOCATIONS = 60; - private static final int METHODID_GET_WORKFLOW_INVOCATION = 61; - private static final int METHODID_CREATE_WORKFLOW_INVOCATION = 62; - private static final int METHODID_DELETE_WORKFLOW_INVOCATION = 63; - private static final int METHODID_CANCEL_WORKFLOW_INVOCATION = 64; - private static final int METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS = 65; - private static final int METHODID_GET_CONFIG = 66; - private static final int METHODID_UPDATE_CONFIG = 67; - private static final int METHODID_GET_IAM_POLICY = 68; - private static final int METHODID_SET_IAM_POLICY = 69; - private static final int METHODID_TEST_IAM_PERMISSIONS = 70; + private static final int METHODID_DELETE_TEAM_FOLDER_TREE = 4; + private static final int METHODID_QUERY_TEAM_FOLDER_CONTENTS = 5; + private static final int METHODID_SEARCH_TEAM_FOLDERS = 6; + private static final int METHODID_GET_FOLDER = 7; + private static final int METHODID_CREATE_FOLDER = 8; + private static final int METHODID_UPDATE_FOLDER = 9; + private static final int METHODID_DELETE_FOLDER = 10; + private static final int METHODID_DELETE_FOLDER_TREE = 11; + private static final int METHODID_QUERY_FOLDER_CONTENTS = 12; + private static final int METHODID_QUERY_USER_ROOT_CONTENTS = 13; + private static final int METHODID_MOVE_FOLDER = 14; + private static final int METHODID_LIST_REPOSITORIES = 15; + private static final int METHODID_GET_REPOSITORY = 16; + private static final int METHODID_CREATE_REPOSITORY = 17; + private static final int METHODID_UPDATE_REPOSITORY = 18; + private static final int METHODID_DELETE_REPOSITORY = 19; + private static final int METHODID_DELETE_REPOSITORY_LONG_RUNNING = 20; + private static final int METHODID_MOVE_REPOSITORY = 21; + private static final int METHODID_COMMIT_REPOSITORY_CHANGES = 22; + private static final int METHODID_READ_REPOSITORY_FILE = 23; + private static final int METHODID_QUERY_REPOSITORY_DIRECTORY_CONTENTS = 24; + private static final int METHODID_FETCH_REPOSITORY_HISTORY = 25; + private static final int METHODID_COMPUTE_REPOSITORY_ACCESS_TOKEN_STATUS = 26; + private static final int METHODID_FETCH_REMOTE_BRANCHES = 27; + private static final int METHODID_LIST_WORKSPACES = 28; + private static final int METHODID_GET_WORKSPACE = 29; + private static final int METHODID_CREATE_WORKSPACE = 30; + private static final int METHODID_DELETE_WORKSPACE = 31; + private static final int METHODID_INSTALL_NPM_PACKAGES = 32; + private static final int METHODID_PULL_GIT_COMMITS = 33; + private static final int METHODID_PUSH_GIT_COMMITS = 34; + private static final int METHODID_FETCH_FILE_GIT_STATUSES = 35; + private static final int METHODID_FETCH_GIT_AHEAD_BEHIND = 36; + private static final int METHODID_COMMIT_WORKSPACE_CHANGES = 37; + private static final int METHODID_RESET_WORKSPACE_CHANGES = 38; + private static final int METHODID_FETCH_FILE_DIFF = 39; + private static final int METHODID_QUERY_DIRECTORY_CONTENTS = 40; + private static final int METHODID_SEARCH_FILES = 41; + private static final int METHODID_MAKE_DIRECTORY = 42; + private static final int METHODID_REMOVE_DIRECTORY = 43; + private static final int METHODID_MOVE_DIRECTORY = 44; + private static final int METHODID_READ_FILE = 45; + private static final int METHODID_REMOVE_FILE = 46; + private static final int METHODID_MOVE_FILE = 47; + private static final int METHODID_WRITE_FILE = 48; + private static final int METHODID_LIST_RELEASE_CONFIGS = 49; + private static final int METHODID_GET_RELEASE_CONFIG = 50; + private static final int METHODID_CREATE_RELEASE_CONFIG = 51; + private static final int METHODID_UPDATE_RELEASE_CONFIG = 52; + private static final int METHODID_DELETE_RELEASE_CONFIG = 53; + private static final int METHODID_LIST_COMPILATION_RESULTS = 54; + private static final int METHODID_GET_COMPILATION_RESULT = 55; + private static final int METHODID_CREATE_COMPILATION_RESULT = 56; + private static final int METHODID_QUERY_COMPILATION_RESULT_ACTIONS = 57; + private static final int METHODID_LIST_WORKFLOW_CONFIGS = 58; + private static final int METHODID_GET_WORKFLOW_CONFIG = 59; + private static final int METHODID_CREATE_WORKFLOW_CONFIG = 60; + private static final int METHODID_UPDATE_WORKFLOW_CONFIG = 61; + private static final int METHODID_DELETE_WORKFLOW_CONFIG = 62; + private static final int METHODID_LIST_WORKFLOW_INVOCATIONS = 63; + private static final int METHODID_GET_WORKFLOW_INVOCATION = 64; + private static final int METHODID_CREATE_WORKFLOW_INVOCATION = 65; + private static final int METHODID_DELETE_WORKFLOW_INVOCATION = 66; + private static final int METHODID_CANCEL_WORKFLOW_INVOCATION = 67; + private static final int METHODID_QUERY_WORKFLOW_INVOCATION_ACTIONS = 68; + private static final int METHODID_GET_CONFIG = 69; + private static final int METHODID_UPDATE_CONFIG = 70; + private static final int METHODID_GET_IAM_POLICY = 71; + private static final int METHODID_SET_IAM_POLICY = 72; + private static final int METHODID_TEST_IAM_PERMISSIONS = 73; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -8961,6 +9328,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DELETE_TEAM_FOLDER_TREE: + serviceImpl.deleteTeamFolderTree( + (com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_QUERY_TEAM_FOLDER_CONTENTS: serviceImpl.queryTeamFolderContents( (com.google.cloud.dataform.v1beta1.QueryTeamFolderContentsRequest) request, @@ -8998,6 +9370,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.dataform.v1beta1.DeleteFolderRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DELETE_FOLDER_TREE: + serviceImpl.deleteFolderTree( + (com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_QUERY_FOLDER_CONTENTS: serviceImpl.queryFolderContents( (com.google.cloud.dataform.v1beta1.QueryFolderContentsRequest) request, @@ -9047,6 +9424,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DELETE_REPOSITORY_LONG_RUNNING: + serviceImpl.deleteRepositoryLongRunning( + (com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_MOVE_REPOSITORY: serviceImpl.moveRepository( (com.google.cloud.dataform.v1beta1.MoveRepositoryRequest) request, @@ -9426,6 +9808,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.dataform.v1beta1.DeleteTeamFolderRequest, com.google.protobuf.Empty>(service, METHODID_DELETE_TEAM_FOLDER))) + .addMethod( + getDeleteTeamFolderTreeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_TEAM_FOLDER_TREE))) .addMethod( getQueryTeamFolderContentsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -9464,6 +9852,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.dataform.v1beta1.DeleteFolderRequest, com.google.protobuf.Empty>(service, METHODID_DELETE_FOLDER))) + .addMethod( + getDeleteFolderTreeMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_FOLDER_TREE))) .addMethod( getQueryFolderContentsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -9518,6 +9912,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.dataform.v1beta1.DeleteRepositoryRequest, com.google.protobuf.Empty>(service, METHODID_DELETE_REPOSITORY))) + .addMethod( + getDeleteRepositoryLongRunningMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest, + com.google.longrunning.Operation>( + service, METHODID_DELETE_REPOSITORY_LONG_RUNNING))) .addMethod( getMoveRepositoryMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -9930,12 +10331,14 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateTeamFolderMethod()) .addMethod(getUpdateTeamFolderMethod()) .addMethod(getDeleteTeamFolderMethod()) + .addMethod(getDeleteTeamFolderTreeMethod()) .addMethod(getQueryTeamFolderContentsMethod()) .addMethod(getSearchTeamFoldersMethod()) .addMethod(getGetFolderMethod()) .addMethod(getCreateFolderMethod()) .addMethod(getUpdateFolderMethod()) .addMethod(getDeleteFolderMethod()) + .addMethod(getDeleteFolderTreeMethod()) .addMethod(getQueryFolderContentsMethod()) .addMethod(getQueryUserRootContentsMethod()) .addMethod(getMoveFolderMethod()) @@ -9944,6 +10347,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateRepositoryMethod()) .addMethod(getUpdateRepositoryMethod()) .addMethod(getDeleteRepositoryMethod()) + .addMethod(getDeleteRepositoryLongRunningMethod()) .addMethod(getMoveRepositoryMethod()) .addMethod(getCommitRepositoryChangesMethod()) .addMethod(getReadRepositoryFileMethod()) diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ComputeRepositoryAccessTokenStatusResponse.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ComputeRepositoryAccessTokenStatusResponse.java index a5c100751198..9a95bdb60ef4 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ComputeRepositoryAccessTokenStatusResponse.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/ComputeRepositoryAccessTokenStatusResponse.java @@ -125,6 +125,16 @@ public enum TokenStatus implements com.google.protobuf.ProtocolMessageEnum { * VALID = 3; */ VALID(3), + /** + * + * + *
              +     * The token is not accessible due to permission issues.
              +     * 
              + * + * PERMISSION_DENIED = 4; + */ + PERMISSION_DENIED(4), UNRECOGNIZED(-1), ; @@ -183,6 +193,17 @@ public enum TokenStatus implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VALID_VALUE = 3; + /** + * + * + *
              +     * The token is not accessible due to permission issues.
              +     * 
              + * + * PERMISSION_DENIED = 4; + */ + public static final int PERMISSION_DENIED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -215,6 +236,8 @@ public static TokenStatus forNumber(int value) { return INVALID; case 3: return VALID; + case 4: + return PERMISSION_DENIED; default: return null; } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequest.java index 629096a6c963..b8497f1707ef 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequest.java @@ -199,15 +199,20 @@ public com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder() { * * *
              +   * Deprecated: This field is not used. The resource name is generated
              +   * automatically.
                  * The ID to use for the Folder, which will become the final component of
                  * the Folder's resource name.
                  * 
              * - * string folder_id = 3; + * string folder_id = 3 [deprecated = true]; * + * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See + * google/cloud/dataform/v1beta1/dataform.proto;l=3552 * @return The folderId. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { @@ -224,15 +229,20 @@ public java.lang.String getFolderId() { * * *
              +   * Deprecated: This field is not used. The resource name is generated
              +   * automatically.
                  * The ID to use for the Folder, which will become the final component of
                  * the Folder's resource name.
                  * 
              * - * string folder_id = 3; + * string folder_id = 3 [deprecated = true]; * + * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See + * google/cloud/dataform/v1beta1/dataform.proto;l=3552 * @return The bytes for folderId. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof java.lang.String) { @@ -967,14 +977,19 @@ public com.google.cloud.dataform.v1beta1.FolderOrBuilder getFolderOrBuilder() { * * *
              +     * Deprecated: This field is not used. The resource name is generated
              +     * automatically.
                    * The ID to use for the Folder, which will become the final component of
                    * the Folder's resource name.
                    * 
              * - * string folder_id = 3; + * string folder_id = 3 [deprecated = true]; * + * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See + * google/cloud/dataform/v1beta1/dataform.proto;l=3552 * @return The folderId. */ + @java.lang.Deprecated public java.lang.String getFolderId() { java.lang.Object ref = folderId_; if (!(ref instanceof java.lang.String)) { @@ -991,14 +1006,19 @@ public java.lang.String getFolderId() { * * *
              +     * Deprecated: This field is not used. The resource name is generated
              +     * automatically.
                    * The ID to use for the Folder, which will become the final component of
                    * the Folder's resource name.
                    * 
              * - * string folder_id = 3; + * string folder_id = 3 [deprecated = true]; * + * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See + * google/cloud/dataform/v1beta1/dataform.proto;l=3552 * @return The bytes for folderId. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getFolderIdBytes() { java.lang.Object ref = folderId_; if (ref instanceof String) { @@ -1015,15 +1035,20 @@ public com.google.protobuf.ByteString getFolderIdBytes() { * * *
              +     * Deprecated: This field is not used. The resource name is generated
              +     * automatically.
                    * The ID to use for the Folder, which will become the final component of
                    * the Folder's resource name.
                    * 
              * - * string folder_id = 3; + * string folder_id = 3 [deprecated = true]; * + * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See + * google/cloud/dataform/v1beta1/dataform.proto;l=3552 * @param value The folderId to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setFolderId(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1038,14 +1063,19 @@ public Builder setFolderId(java.lang.String value) { * * *
              +     * Deprecated: This field is not used. The resource name is generated
              +     * automatically.
                    * The ID to use for the Folder, which will become the final component of
                    * the Folder's resource name.
                    * 
              * - * string folder_id = 3; + * string folder_id = 3 [deprecated = true]; * + * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See + * google/cloud/dataform/v1beta1/dataform.proto;l=3552 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearFolderId() { folderId_ = getDefaultInstance().getFolderId(); bitField0_ = (bitField0_ & ~0x00000004); @@ -1057,15 +1087,20 @@ public Builder clearFolderId() { * * *
              +     * Deprecated: This field is not used. The resource name is generated
              +     * automatically.
                    * The ID to use for the Folder, which will become the final component of
                    * the Folder's resource name.
                    * 
              * - * string folder_id = 3; + * string folder_id = 3 [deprecated = true]; * + * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See + * google/cloud/dataform/v1beta1/dataform.proto;l=3552 * @param value The bytes for folderId to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setFolderIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequestOrBuilder.java index abbddea1c6aa..3b17c3e8b4c0 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateFolderRequestOrBuilder.java @@ -105,27 +105,37 @@ public interface CreateFolderRequestOrBuilder * * *
              +   * Deprecated: This field is not used. The resource name is generated
              +   * automatically.
                  * The ID to use for the Folder, which will become the final component of
                  * the Folder's resource name.
                  * 
              * - * string folder_id = 3; + * string folder_id = 3 [deprecated = true]; * + * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See + * google/cloud/dataform/v1beta1/dataform.proto;l=3552 * @return The folderId. */ + @java.lang.Deprecated java.lang.String getFolderId(); /** * * *
              +   * Deprecated: This field is not used. The resource name is generated
              +   * automatically.
                  * The ID to use for the Folder, which will become the final component of
                  * the Folder's resource name.
                  * 
              * - * string folder_id = 3; + * string folder_id = 3 [deprecated = true]; * + * @deprecated google.cloud.dataform.v1beta1.CreateFolderRequest.folder_id is deprecated. See + * google/cloud/dataform/v1beta1/dataform.proto;l=3552 * @return The bytes for folderId. */ + @java.lang.Deprecated com.google.protobuf.ByteString getFolderIdBytes(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequest.java index 0100eab8b36d..f603cc757985 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequest.java @@ -199,15 +199,20 @@ public com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder getTeamFolderOrBuil * * *
              +   * Deprecated: This field is not used. The resource name is generated
              +   * automatically.
                  * The ID to use for the TeamFolder, which will become the final component of
                  * the TeamFolder's resource name.
                  * 
              * - * string team_folder_id = 3; + * string team_folder_id = 3 [deprecated = true]; * + * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is deprecated. + * See google/cloud/dataform/v1beta1/dataform.proto;l=3864 * @return The teamFolderId. */ @java.lang.Override + @java.lang.Deprecated public java.lang.String getTeamFolderId() { java.lang.Object ref = teamFolderId_; if (ref instanceof java.lang.String) { @@ -224,15 +229,20 @@ public java.lang.String getTeamFolderId() { * * *
              +   * Deprecated: This field is not used. The resource name is generated
              +   * automatically.
                  * The ID to use for the TeamFolder, which will become the final component of
                  * the TeamFolder's resource name.
                  * 
              * - * string team_folder_id = 3; + * string team_folder_id = 3 [deprecated = true]; * + * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is deprecated. + * See google/cloud/dataform/v1beta1/dataform.proto;l=3864 * @return The bytes for teamFolderId. */ @java.lang.Override + @java.lang.Deprecated public com.google.protobuf.ByteString getTeamFolderIdBytes() { java.lang.Object ref = teamFolderId_; if (ref instanceof java.lang.String) { @@ -969,14 +979,19 @@ public com.google.cloud.dataform.v1beta1.TeamFolderOrBuilder getTeamFolderOrBuil * * *
              +     * Deprecated: This field is not used. The resource name is generated
              +     * automatically.
                    * The ID to use for the TeamFolder, which will become the final component of
                    * the TeamFolder's resource name.
                    * 
              * - * string team_folder_id = 3; + * string team_folder_id = 3 [deprecated = true]; * + * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=3864 * @return The teamFolderId. */ + @java.lang.Deprecated public java.lang.String getTeamFolderId() { java.lang.Object ref = teamFolderId_; if (!(ref instanceof java.lang.String)) { @@ -993,14 +1008,19 @@ public java.lang.String getTeamFolderId() { * * *
              +     * Deprecated: This field is not used. The resource name is generated
              +     * automatically.
                    * The ID to use for the TeamFolder, which will become the final component of
                    * the TeamFolder's resource name.
                    * 
              * - * string team_folder_id = 3; + * string team_folder_id = 3 [deprecated = true]; * + * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=3864 * @return The bytes for teamFolderId. */ + @java.lang.Deprecated public com.google.protobuf.ByteString getTeamFolderIdBytes() { java.lang.Object ref = teamFolderId_; if (ref instanceof String) { @@ -1017,15 +1037,20 @@ public com.google.protobuf.ByteString getTeamFolderIdBytes() { * * *
              +     * Deprecated: This field is not used. The resource name is generated
              +     * automatically.
                    * The ID to use for the TeamFolder, which will become the final component of
                    * the TeamFolder's resource name.
                    * 
              * - * string team_folder_id = 3; + * string team_folder_id = 3 [deprecated = true]; * + * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=3864 * @param value The teamFolderId to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setTeamFolderId(java.lang.String value) { if (value == null) { throw new NullPointerException(); @@ -1040,14 +1065,19 @@ public Builder setTeamFolderId(java.lang.String value) { * * *
              +     * Deprecated: This field is not used. The resource name is generated
              +     * automatically.
                    * The ID to use for the TeamFolder, which will become the final component of
                    * the TeamFolder's resource name.
                    * 
              * - * string team_folder_id = 3; + * string team_folder_id = 3 [deprecated = true]; * + * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=3864 * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearTeamFolderId() { teamFolderId_ = getDefaultInstance().getTeamFolderId(); bitField0_ = (bitField0_ & ~0x00000004); @@ -1059,15 +1089,20 @@ public Builder clearTeamFolderId() { * * *
              +     * Deprecated: This field is not used. The resource name is generated
              +     * automatically.
                    * The ID to use for the TeamFolder, which will become the final component of
                    * the TeamFolder's resource name.
                    * 
              * - * string team_folder_id = 3; + * string team_folder_id = 3 [deprecated = true]; * + * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=3864 * @param value The bytes for teamFolderId to set. * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setTeamFolderIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequestOrBuilder.java index 6908f8b9753f..5c97ef9b9c83 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/CreateTeamFolderRequestOrBuilder.java @@ -105,27 +105,37 @@ public interface CreateTeamFolderRequestOrBuilder * * *
              +   * Deprecated: This field is not used. The resource name is generated
              +   * automatically.
                  * The ID to use for the TeamFolder, which will become the final component of
                  * the TeamFolder's resource name.
                  * 
              * - * string team_folder_id = 3; + * string team_folder_id = 3 [deprecated = true]; * + * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is deprecated. + * See google/cloud/dataform/v1beta1/dataform.proto;l=3864 * @return The teamFolderId. */ + @java.lang.Deprecated java.lang.String getTeamFolderId(); /** * * *
              +   * Deprecated: This field is not used. The resource name is generated
              +   * automatically.
                  * The ID to use for the TeamFolder, which will become the final component of
                  * the TeamFolder's resource name.
                  * 
              * - * string team_folder_id = 3; + * string team_folder_id = 3 [deprecated = true]; * + * @deprecated google.cloud.dataform.v1beta1.CreateTeamFolderRequest.team_folder_id is deprecated. + * See google/cloud/dataform/v1beta1/dataform.proto;l=3864 * @return The bytes for teamFolderId. */ + @java.lang.Deprecated com.google.protobuf.ByteString getTeamFolderIdBytes(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java index f26c3bab7875..7c754c159bb9 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DataformProto.java @@ -96,6 +96,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -268,6 +276,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_FilesystemEntryMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_FilesystemEntryMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1beta1_SearchFilesRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -648,6 +660,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderTreeRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderTreeRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -724,6 +748,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -746,7 +774,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "atus.proto\032\032google/type/interval.proto\"e\n" + "\023DataEncryptionState\022N\n" + "\024kms_key_version_name\030\001 \001(\tB0\340A\002\372A*\n" - + "(cloudkms.googleapis.com/CryptoKeyVersion\"\260\016\n\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\"\314\017\n\n" + "Repository\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022#\n" + "\021containing_folder\030\020 \001(\tB\003\340A\001H\000\210\001\001\022\"\n" @@ -769,17 +797,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!cloudkms.googleapis.com/CryptoKey\022V\n" + "\025data_encryption_state\030\014" + " \001(\01322.google.cloud.dataform.v1beta1.DataEncryptionStateB\003\340A\003\022#\n" - + "\021internal_metadata\030\017 \001(\tB\003\340A\003H\002\210\001\001\032\361\004\n" + + "\021internal_metadata\030\017 \001(\tB\003\340A\003H\002\210\001\001\032\215\006\n" + "\021GitRemoteSettings\022\020\n" + "\003url\030\001 \001(\tB\003\340A\002\022\033\n" - + "\016default_branch\030\002 \001(\tB\003\340A\002\022_\n" + + "\016default_branch\030\002 \001(\tB\003\340A\001\022%\n" + + "\030effective_default_branch\030\t \001(\tB\003\340A\003\022_\n" + "#authentication_token_secret_version\030\003 \001(\tB2\340A\001\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022{\n" - + "\031ssh_authentication_config\030\005 \001(\0132S.google." - + "cloud.dataform.v1beta1.Repository.GitRem" - + "oteSettings.SshAuthenticationConfigB\003\340A\001\022d\n" - + "\014token_status\030\004 \001(\0162G.google.cloud.da" - + "taform.v1beta1.Repository.GitRemoteSettings.TokenStatusB\005\030\001\340A\003\032\224\001\n" + + "\031ssh_authentication_config\030\005 \001(\0132S.google.c" + + "loud.dataform.v1beta1.Repository.GitRemo" + + "teSettings.SshAuthenticationConfigB\003\340A\001\022[\n" + + "\023git_repository_link\030\007 \001(\tB9\340A\001\372A3\n" + + "1developerconnect.googleapis.com/GitRepositoryLinkH\000\210\001\001\022d\n" + + "\014token_status\030\004 \001(\0162G.goo" + + "gle.cloud.dataform.v1beta1.Repository.GitRemoteSettings.TokenStatusB\005\030\001\340A\003\032\224\001\n" + "\027SshAuthenticationConfig\022[\n" + "\037user_private_key_secret_version\030\001 \001(\tB2\340A\002\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022\034\n" @@ -788,16 +819,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030TOKEN_STATUS_UNSPECIFIED\020\000\022\r\n" + "\tNOT_FOUND\020\001\022\013\n" + "\007INVALID\020\002\022\t\n" - + "\005VALID\020\003\032u\n" + + "\005VALID\020\003B\026\n" + + "\024_git_repository_link\032u\n" + "\035WorkspaceCompilationOverrides\022\035\n" - + "\020default_database\030\001 \001(\tB\003\340A\001\022\032\n\r" + + "\020default_database\030\001 \001(\tB\003\340A\001\022\032\n" + + "\r" + "schema_suffix\030\002 \001(\tB\003\340A\001\022\031\n" + "\014table_prefix\030\003 \001(\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:\205\001\352A\201\001\n" - + "\"dataform.googleapis.com/Repository\022Aprojects/{pr" - + "oject}/locations/{location}/repositories/{repository}*\014repositories2\n" + + "\"dataform.googleapis.com/Repository\022Aprojects/{projec" + + "t}/locations/{location}/repositories/{repository}*\014repositories2\n" + "repositoryB\024\n" + "\022_containing_folderB\023\n" + "\021_team_folder_nameB\024\n" @@ -827,8 +860,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027CreateRepositoryRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022B\n\n" - + "repository\030\002 \001(\0132).goog" - + "le.cloud.dataform.v1beta1.RepositoryB\003\340A\002\022\032\n\r" + + "repository\030\002" + + " \001(\0132).google.cloud.dataform.v1beta1.RepositoryB\003\340A\002\022\032\n" + + "\r" + "repository_id\030\003 \001(\tB\003\340A\002\"\223\001\n" + "\027UpdateRepositoryRequest\0224\n" + "\013update_mask\030\001" @@ -838,28 +872,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027DeleteRepositoryRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022\022\n" + + "\005force\030\002 \001(\010B\003\340A\001\"%\n" + + "#DeleteRepositoryLongRunningResponse\"r\n" + + "\"DeleteRepositoryLongRunningRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"dataform.googleapis.com/Repository\022\022\n" + "\005force\030\002 \001(\010B\003\340A\001\"\354\005\n" + "\036CommitRepositoryChangesRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022K\n" - + "\017commit_metadata\030\002 \001" - + "(\0132-.google.cloud.dataform.v1beta1.CommitMetadataB\003\340A\002\022%\n" + + "\017commit_metadata\030\002 \001(\0132-.goog" + + "le.cloud.dataform.v1beta1.CommitMetadataB\003\340A\002\022%\n" + "\030required_head_commit_sha\030\004 \001(\tB\003\340A\001\022o\n" - + "\017file_operations\030\003 \003(\0132Q.google.cloud.dataform.v1beta1.CommitRep" - + "ositoryChangesRequest.FileOperationsEntryB\003\340A\001\032\245\002\n\r" + + "\017file_operations\030\003 \003(\0132Q.google.c" + + "loud.dataform.v1beta1.CommitRepositoryCh" + + "angesRequest.FileOperationsEntryB\003\340A\001\032\245\002\n\r" + "FileOperation\022k\n\n" - + "write_file\030\001 \001(\0132U.google.cloud.dataform.v1beta1.Com" - + "mitRepositoryChangesRequest.FileOperation.WriteFileH\000\022m\n" - + "\013delete_file\030\002 \001(\0132V.google.cloud.dataform.v1beta1.CommitReposit" - + "oryChangesRequest.FileOperation.DeleteFileH\000\032\035\n" + + "write_file\030\001 \001(\0132U.google.cloud.dataform.v1beta1.CommitReposi" + + "toryChangesRequest.FileOperation.WriteFileH\000\022m\n" + + "\013delete_file\030\002 \001(\0132V.google.cloud" + + ".dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFileH\000\032\035\n" + "\tWriteFile\022\020\n" + "\010contents\030\001 \001(\014\032\014\n\n" + "DeleteFileB\013\n" + "\toperation\032\202\001\n" + "\023FileOperationsEntry\022\013\n" + "\003key\030\001 \001(\t\022Z\n" - + "\005value\030\002 \001(\0132K.goo" - + "gle.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation:\0028\001\"5\n" + + "\005value\030\002 \001(\0132K.google.cloud" + + ".dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation:\0028\001\"5\n" + "\037CommitRepositoryChangesResponse\022\022\n\n" + "commit_sha\030\001 \001(\t\"\201\001\n" + "\031ReadRepositoryFileRequest\0228\n" @@ -894,20 +934,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006author\030\003 \001(\0132+.google.cloud.dataform.v1beta1.CommitAuthor\022\026\n" + "\016commit_message\030\004 \001(\t\"o\n" + "\016CommitMetadata\022@\n" - + "\006author\030\001 \001(\013" - + "2+.google.cloud.dataform.v1beta1.CommitAuthorB\003\340A\002\022\033\n" + + "\006author\030\001 \001(\0132+.google" + + ".cloud.dataform.v1beta1.CommitAuthorB\003\340A\002\022\033\n" + "\016commit_message\030\002 \001(\tB\003\340A\001\"e\n" + ")ComputeRepositoryAccessTokenStatusRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" - + "\"dataform.googleapis.com/Repository\"\355\001\n" + + "\"dataform.googleapis.com/Repository\"\204\002\n" + "*ComputeRepositoryAccessTokenStatusResponse\022k\n" - + "\014token_status\030\001 \001(\0162U.google.cloud.dataform.v1be" - + "ta1.ComputeRepositoryAccessTokenStatusResponse.TokenStatus\"R\n" + + "\014token_status\030\001 \001(\0162U.google.cloud.dataform.v1beta1.Compu" + + "teRepositoryAccessTokenStatusResponse.TokenStatus\"i\n" + "\013TokenStatus\022\034\n" + "\030TOKEN_STATUS_UNSPECIFIED\020\000\022\r\n" + "\tNOT_FOUND\020\001\022\013\n" + "\007INVALID\020\002\022\t\n" - + "\005VALID\020\003\"V\n" + + "\005VALID\020\003\022\025\n" + + "\021PERMISSION_DENIED\020\004\"V\n" + "\032FetchRemoteBranchesRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\"/\n" @@ -916,14 +957,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tWorkspace\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022V\n" - + "\025data_encryption_state\030\002 \001(\01322." - + "google.cloud.dataform.v1beta1.DataEncryptionStateB\003\340A\003\022#\n" + + "\025data_encryption_state\030\002" + + " \001(\01322.google.cloud.dataform.v1beta1.DataEncryptionStateB\003\340A\003\022#\n" + "\021internal_metadata\030\005 \001(\tB\003\340A\003H\000\210\001\001\022\037\n\r" + "disable_moves\030\006 \001(\010B\003\340A\001H\001\210\001\001\022^\n" - + "\031private_resource_metadata\030\010 \001(\0132" - + "6.google.cloud.dataform.v1beta1.PrivateResourceMetadataB\003\340A\003:\230\001\352A\224\001\n" - + "!dataform.googleapis.com/Workspace\022Xprojects/{projec" - + "t}/locations/{location}/repositories/{repository}/workspaces/{workspace}*\n" + + "\031private_resource_metadata\030\010 \001(\01326.google.cloud.dataform.v1" + + "beta1.PrivateResourceMetadataB\003\340A\003:\230\001\352A\224\001\n" + + "!dataform.googleapis.com/Workspace\022Xprojects/{project}/locations/{location}/re" + + "positories/{repository}/workspaces/{workspace}*\n" + "workspaces2\tworkspaceB\024\n" + "\022_internal_metadataB\020\n" + "\016_disable_moves\"\260\001\n" @@ -944,8 +985,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026CreateWorkspaceRequest\022:\n" + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022@\n" - + "\tworkspace\030\002 \001(\0132(.go" - + "ogle.cloud.dataform.v1beta1.WorkspaceB\003\340A\002\022\031\n" + + "\tworkspace\030\002" + + " \001(\0132(.google.cloud.dataform.v1beta1.WorkspaceB\003\340A\002\022\031\n" + "\014workspace_id\030\003 \001(\tB\003\340A\002\"Q\n" + "\026DeleteWorkspaceRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" @@ -957,8 +998,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!dataform.googleapis.com/Workspace\022\032\n\r" + "remote_branch\030\002 \001(\tB\003\340A\001\022@\n" - + "\006author\030\003" - + " \001(\0132+.google.cloud.dataform.v1beta1.CommitAuthorB\003\340A\002\"\030\n" + + "\006author\030\003 \001(\0132+.g" + + "oogle.cloud.dataform.v1beta1.CommitAuthorB\003\340A\002\"\030\n" + "\026PullGitCommitsResponse\"l\n" + "\025PushGitCommitsRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" @@ -969,12 +1010,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!dataform.googleapis.com/Workspace\"\201\003\n" + "\034FetchFileGitStatusesResponse\022s\n" - + "\030uncommitted_file_changes\030\001 \003(\0132Q.google.c" - + "loud.dataform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange\032\353\001\n" + + "\030uncommitted_file_changes\030\001 \003(\0132Q.google.cloud.dataform.v1beta1.Fetc" + + "hFileGitStatusesResponse.UncommittedFileChange\032\353\001\n" + "\025UncommittedFileChange\022\014\n" + "\004path\030\001 \001(\t\022k\n" - + "\005state\030\002 \001(\0162W.google.cloud.dataform.v1beta1." - + "FetchFileGitStatusesResponse.UncommittedFileChange.StateB\003\340A\003\"W\n" + + "\005state\030\002 \001(\0162W.google.cloud.dat" + + "aform.v1beta1.FetchFileGitStatusesResponse.UncommittedFileChange.StateB\003\340A\003\"W\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\t\n" + "\005ADDED\020\001\022\013\n" @@ -983,8 +1024,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "HAS_CONFLICTS\020\004\"q\n" + "\032FetchGitAheadBehindRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" - + "!dataform.googleapis.com/Workspace\022\032\n" - + "\r" + + "!dataform.googleapis.com/Workspace\022\032\n\r" + "remote_branch\030\002 \001(\tB\003\340A\001\"L\n" + "\033FetchGitAheadBehindResponse\022\025\n\r" + "commits_ahead\030\001 \001(\005\022\026\n" @@ -1008,21 +1048,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!dataform.googleapis.com/Workspace\022\021\n" + "\004path\030\002 \001(\tB\003\340A\002\"/\n" + "\025FetchFileDiffResponse\022\026\n" - + "\016formatted_diff\030\001 \001(\t\"\241\001\n" + + "\016formatted_diff\030\001 \001(\t\"\352\001\n" + "\035QueryDirectoryContentsRequest\022<\n" + "\tworkspace\030\001 \001(\tB)\340A\002\372A#\n" + "!dataform.googleapis.com/Workspace\022\021\n" + "\004path\030\002 \001(\tB\003\340A\001\022\026\n" + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\004 \001(\tB\003\340A\001\"\203\001\n" + + "page_token\030\004 \001(\tB\003\340A\001\022G\n" + + "\004view\030\005" + + " \001(\01624.google.cloud.dataform.v1beta1.DirectoryContentsViewB\003\340A\001\"\203\001\n" + "\036QueryDirectoryContentsResponse\022H\n" + "\021directory_entries\030\001" + " \003(\0132-.google.cloud.dataform.v1beta1.DirectoryEntry\022\027\n" - + "\017next_page_token\030\002 \001(\t\">\n" + + "\017next_page_token\030\002 \001(\t\"\210\001\n" + "\016DirectoryEntry\022\016\n" + "\004file\030\001 \001(\tH\000\022\023\n" - + "\tdirectory\030\002 \001(\tH\000B\007\n" - + "\005entry\"\230\001\n" + + "\tdirectory\030\002 \001(\tH\000\022H\n" + + "\010metadata\030\003 \001(\01326" + + ".google.cloud.dataform.v1beta1.FilesystemEntryMetadataB\007\n" + + "\005entry\"h\n" + + "\027FilesystemEntryMetadata\022\027\n\n" + + "size_bytes\030\001 \001(\003B\003\340A\003\0224\n" + + "\013update_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\"\230\001\n" + "\022SearchFilesRequest\022<\n" + "\tworkspace\030\001 \001(\tB)\340A\002\372A#\n" + "!dataform.googleapis.com/Workspace\022\026\n" @@ -1034,10 +1082,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132+.google.cloud.dataform.v1beta1.SearchResult\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\001\"\243\001\n" + "\014SearchResult\022?\n" - + "\004file\030\001" - + " \001(\0132/.google.cloud.dataform.v1beta1.FileSearchResultH\000\022I\n" - + "\tdirectory\030\002 \001(\0132" - + "4.google.cloud.dataform.v1beta1.DirectorySearchResultH\000B\007\n" + + "\004file\030\001 \001(\0132/." + + "google.cloud.dataform.v1beta1.FileSearchResultH\000\022I\n" + + "\tdirectory\030\002 \001(\01324.google.clo" + + "ud.dataform.v1beta1.DirectorySearchResultH\000B\007\n" + "\005entry\" \n" + "\020FileSearchResult\022\014\n" + "\004path\030\001 \001(\t\"%\n" @@ -1090,12 +1138,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ReleaseConfig\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\032\n\r" + "git_commitish\030\002 \001(\tB\003\340A\002\022Z\n" - + "\027code_compilation_config\030\003 \001(\01324.google" - + ".cloud.dataform.v1beta1.CodeCompilationConfigB\003\340A\001\022\032\n\r" + + "\027code_compilation_config\030\003 \001(\01324.google.cloud.dataf" + + "orm.v1beta1.CodeCompilationConfigB\003\340A\001\022\032\n\r" + "cron_schedule\030\004 \001(\tB\003\340A\001\022\026\n" + "\ttime_zone\030\007 \001(\tB\003\340A\001\022r\n" - + " recent_scheduled_release_records\030\005 \003(\0132C.google.cloud." - + "dataform.v1beta1.ReleaseConfig.ScheduledReleaseRecordB\003\340A\003\022U\n" + + " recent_scheduled_release_records\030\005 \003(\0132C.google.cloud.dataform.v1b" + + "eta1.ReleaseConfig.ScheduledReleaseRecordB\003\340A\003\022U\n" + "\032release_compilation_result\030\006 \001(\tB1\340A\001\372A+\n" + ")dataform.googleapis.com/CompilationResult\022\025\n" + "\010disabled\030\010 \001(\010B\003\340A\001\022#\n" @@ -1106,9 +1154,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014error_status\030\003 \001(\0132\022.google.rpc.StatusH\000\0225\n" + "\014release_time\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003B\010\n" + "\006result:\255\001\352A\251\001\n" - + "%dataform.googleapis.com/ReleaseConfig\022aprojects/{pro" - + "ject}/locations/{location}/repositories/" - + "{repository}/releaseConfigs/{release_config}*\016releaseConfigs2\r" + + "%dataform.googleapis.com/ReleaseConfig\022aprojects/{project}/locati" + + "ons/{location}/repositories/{repository}" + + "/releaseConfigs/{release_config}*\016releaseConfigs2\r" + "releaseConfigB\024\n" + "\022_internal_metadata\"\210\001\n" + "\031ListReleaseConfigsRequest\022:\n" @@ -1117,8 +1165,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\221\001\n" + "\032ListReleaseConfigsResponse\022E\n" - + "\017release_configs\030\001" - + " \003(\0132,.google.cloud.dataform.v1beta1.ReleaseConfig\022\027\n" + + "\017release_configs\030\001 \003(\013" + + "2,.google.cloud.dataform.v1beta1.ReleaseConfig\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"V\n" + "\027GetReleaseConfigRequest\022;\n" @@ -1127,8 +1175,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032CreateReleaseConfigRequest\022:\n" + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022I\n" - + "\016release_config\030\002 \001(\0132,.google.clo" - + "ud.dataform.v1beta1.ReleaseConfigB\003\340A\002\022\036\n" + + "\016release_config\030\002" + + " \001(\0132,.google.cloud.dataform.v1beta1.ReleaseConfigB\003\340A\002\022\036\n" + "\021release_config_id\030\003 \001(\tB\003\340A\002\"\235\001\n" + "\032UpdateReleaseConfigRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022I\n" @@ -1144,28 +1192,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016release_config\030\007 \001(\tB-\340A\005\372A\'\n" + "%dataform.googleapis.com/ReleaseConfigH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022Z\n" - + "\027code_compilation_config\030\004 \001" - + "(\01324.google.cloud.dataform.v1beta1.CodeCompilationConfigB\003\340A\005\022$\n" + + "\027code_compilation_config\030\004 \001(\01324.google." + + "cloud.dataform.v1beta1.CodeCompilationConfigB\003\340A\005\022$\n" + "\027resolved_git_commit_sha\030\010 \001(\tB\003\340A\003\022\"\n" + "\025dataform_core_version\030\005 \001(\tB\003\340A\003\022b\n" - + "\022compilation_errors\030\006 " - + "\003(\0132A.google.cloud.dataform.v1beta1.CompilationResult.CompilationErrorB\003\340A\003\022V\n" - + "\025data_encryption_state\030\t \001(\01322.google.clou" - + "d.dataform.v1beta1.DataEncryptionStateB\003\340A\003\0224\n" + + "\022compilation_errors\030\006 \003(\0132A.google" + + ".cloud.dataform.v1beta1.CompilationResult.CompilationErrorB\003\340A\003\022V\n" + + "\025data_encryption_state\030\t" + + " \001(\01322.google.cloud.dataform.v1beta1.DataEncryptionStateB\003\340A\003\0224\n" + "\013create_time\030\n" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022#\n" + "\021internal_metadata\030\013 \001(\tB\003\340A\003H\001\210\001\001\022^\n" - + "\031private_resource_metadata\030\014" - + " \001(\01326.google.cloud.dataform.v1beta1.PrivateResourceMetadataB\003\340A\003\032\222\001\n" + + "\031private_resource_metadata\030\014 \001(\01326." + + "google.cloud.dataform.v1beta1.PrivateResourceMetadataB\003\340A\003\032\222\001\n" + "\020CompilationError\022\024\n" + "\007message\030\001 \001(\tB\003\340A\003\022\022\n" + "\005stack\030\002 \001(\tB\003\340A\003\022\021\n" + "\004path\030\003 \001(\tB\003\340A\003\022A\n\r" - + "action_target\030\004" - + " \001(\0132%.google.cloud.dataform.v1beta1.TargetB\003\340A\003:\301\001\352A\275\001\n" - + ")dataform.googleapis.com/CompilationResult\022iprojects/" - + "{project}/locations/{location}/repositories/{repository}/compilationResults/{com" - + "pilation_result}*\022compilationResults2\021compilationResultB\010\n" + + "action_target\030\004 " + + "\001(\0132%.google.cloud.dataform.v1beta1.TargetB\003\340A\003:\301\001\352A\275\001\n" + + ")dataform.googleapis.com/CompilationResult\022iprojects/{project}/lo" + + "cations/{location}/repositories/{repository}/compilationResults/{compilation_res" + + "ult}*\022compilationResults2\021compilationResultB\010\n" + "\006sourceB\024\n" + "\022_internal_metadata\"\370\003\n" + "\025CodeCompilationConfig\022\035\n" @@ -1173,15 +1221,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016default_schema\030\002 \001(\tB\003\340A\001\022\035\n" + "\020default_location\030\010 \001(\tB\003\340A\001\022\035\n" + "\020assertion_schema\030\003 \001(\tB\003\340A\001\022Q\n" - + "\004vars\030\004 \003(\0132>.google.cloud.dataform.v1beta" - + "1.CodeCompilationConfig.VarsEntryB\003\340A\001\022\034\n" + + "\004vars\030\004 \003(\0132>." + + "google.cloud.dataform.v1beta1.CodeCompilationConfig.VarsEntryB\003\340A\001\022\034\n" + "\017database_suffix\030\005 \001(\tB\003\340A\001\022\032\n\r" + "schema_suffix\030\006 \001(\tB\003\340A\001\022\031\n" + "\014table_prefix\030\007 \001(\tB\003\340A\001\022*\n" + "\035builtin_assertion_name_prefix\030\n" + " \001(\tB\003\340A\001\022d\n" - + " default_notebook_runtime_options\030\t" - + " \001(\01325.google.cloud.dataform.v1beta1.NotebookRuntimeOptionsB\003\340A\001\032+\n" + + " default_notebook_runtime_options\030\t \001(\01325." + + "google.cloud.dataform.v1beta1.NotebookRuntimeOptionsB\003\340A\001\032+\n" + "\tVarsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\266\001\n" @@ -1198,8 +1246,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\"\235\001\n" + "\036ListCompilationResultsResponse\022M\n" - + "\023compilation_results\030\001 \003(\01320.google." - + "cloud.dataform.v1beta1.CompilationResult\022\027\n" + + "\023compilation_results\030\001" + + " \003(\01320.google.cloud.dataform.v1beta1.CompilationResult\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"^\n" + "\033GetCompilationResultRequest\022?\n" @@ -1208,18 +1256,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036CreateCompilationResultRequest\022:\n" + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022Q\n" - + "\022compilation_result\030\002 \001(\01320.google.cloud" - + ".dataform.v1beta1.CompilationResultB\003\340A\002\"G\n" + + "\022compilation_result\030\002" + + " \001(\01320.google.cloud.dataform.v1beta1.CompilationResultB\003\340A\002\"G\n" + "\006Target\022\025\n" + "\010database\030\001 \001(\tB\003\340A\001\022\023\n" + "\006schema\030\002 \001(\tB\003\340A\001\022\021\n" + "\004name\030\003 \001(\tB\003\340A\001\"\352\002\n" + "\022RelationDescriptor\022\023\n" + "\013description\030\001 \001(\t\022S\n" - + "\007columns\030\002 \003(\0132B.google.cloud.dataform.v" - + "1beta1.RelationDescriptor.ColumnDescriptor\022^\n" - + "\017bigquery_labels\030\003 \003(\0132E.google.clo" - + "ud.dataform.v1beta1.RelationDescriptor.BigqueryLabelsEntry\032S\n" + + "\007columns\030\002 \003" + + "(\0132B.google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor\022^\n" + + "\017bigquery_labels\030\003 \003(\0132E.google.cloud.dataform." + + "v1beta1.RelationDescriptor.BigqueryLabelsEntry\032S\n" + "\020ColumnDescriptor\022\014\n" + "\004path\030\001 \003(\t\022\023\n" + "\013description\030\002 \001(\t\022\034\n" @@ -1228,18 +1276,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\276\037\n" + "\027CompilationResultAction\022S\n" - + "\010relation\030\004" - + " \001(\0132?.google.cloud.dataform.v1beta1.CompilationResultAction.RelationH\000\022W\n\n" - + "operations\030\005 \001(\0132A.google.cloud.dataform.v1be" - + "ta1.CompilationResultAction.OperationsH\000\022U\n" - + "\tassertion\030\006 \001(\0132@.google.cloud.dataf" - + "orm.v1beta1.CompilationResultAction.AssertionH\000\022Y\n" - + "\013declaration\030\007 \001(\0132B.google.cl" - + "oud.dataform.v1beta1.CompilationResultAction.DeclarationH\000\022S\n" - + "\010notebook\030\010 \001(\0132?.g" - + "oogle.cloud.dataform.v1beta1.CompilationResultAction.NotebookH\000\022b\n" - + "\020data_preparation\030\t \001(\0132F.google.cloud.dataform.v1beta" - + "1.CompilationResultAction.DataPreparationH\000\0225\n" + + "\010relation\030\004 \001(\0132?.googl" + + "e.cloud.dataform.v1beta1.CompilationResultAction.RelationH\000\022W\n\n" + + "operations\030\005 \001(\0132" + + "A.google.cloud.dataform.v1beta1.CompilationResultAction.OperationsH\000\022U\n" + + "\tassertio", + "n\030\006" + + " \001(\0132@.google.cloud.dataform.v1beta1.CompilationResultAction.AssertionH\000\022Y\n" + + "\013declaration\030\007 \001(\0132B.google.cloud.dataform" + + ".v1beta1.CompilationResultAction.DeclarationH\000\022S\n" + + "\010notebook\030\010 \001(\0132?.google.cloud." + + "dataform.v1beta1.CompilationResultAction.NotebookH\000\022b\n" + + "\020data_preparation\030\t \001(\0132F." + + "google.cloud.dataform.v1beta1.CompilationResultAction.DataPreparationH\000\0225\n" + "\006target\030\001 \001(\0132%.google.cloud.dataform.v1beta1.Target\022?\n" + "\020canonical_target\030\002" + " \001(\0132%.google.cloud.dataform.v1beta1.Target\022\021\n" @@ -1247,32 +1296,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021internal_metadata\030\n" + " \001(\tB\003\340A\003H\001\210\001\001\032\321\013\n" + "\010Relation\022A\n" - + "\022dependency_targets\030\001 \003(\0132%.google.cloud.data", - "form.v1beta1.Target\022\020\n" + + "\022dependency_targets\030\001" + + " \003(\0132%.google.cloud.dataform.v1beta1.Target\022\020\n" + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022N\n" - + "\023relation_descriptor\030\004 \001(\013" - + "21.google.cloud.dataform.v1beta1.RelationDescriptor\022c\n\r" - + "relation_type\030\005 \001(\0162L.goo" - + "gle.cloud.dataform.v1beta1.CompilationResultAction.Relation.RelationType\022\024\n" + + "\023relation_descriptor\030\004 \001(\01321.google.cl" + + "oud.dataform.v1beta1.RelationDescriptor\022c\n\r" + + "relation_type\030\005 \001(\0162L.google.cloud.da" + + "taform.v1beta1.CompilationResultAction.Relation.RelationType\022\024\n" + "\014select_query\030\006 \001(\t\022\026\n" + "\016pre_operations\030\007 \003(\t\022\027\n" + "\017post_operations\030\010 \003(\t\022x\n" - + "\030incremental_table_config\030\t \001(\0132V.google.cloud.datafor" - + "m.v1beta1.CompilationResultAction.Relation.IncrementalTableConfig\022\034\n" + + "\030incremental_table_config\030\t \001(\0132V.google.cloud.dataform.v1beta1.Co" + + "mpilationResultAction.Relation.IncrementalTableConfig\022\034\n" + "\024partition_expression\030\n" + " \001(\t\022\033\n" + "\023cluster_expressions\030\013 \003(\t\022!\n" + "\031partition_expiration_days\030\014 \001(\005\022 \n" + "\030require_partition_filter\030\r" + " \001(\010\022r\n" - + "\022additional_options\030\016 \003(\0132V.google.cloud.dat" - + "aform.v1beta1.CompilationResultAction.Relation.AdditionalOptionsEntry\022\027\n\n" + + "\022additional_options\030\016 \003(\0132V.google.cloud.dataform.v1beta" + + "1.CompilationResultAction.Relation.AdditionalOptionsEntry\022\027\n\n" + "connection\030\017 \001(\tB\003\340A\001\022f\n" - + "\014table_format\030\020 \001(\0162K.google.cloud.dataform.v1beta1.Compilation" - + "ResultAction.Relation.TableFormatB\003\340A\001\022d\n" - + "\013file_format\030\021 \001(\0162J.google.cloud.dataf" - + "orm.v1beta1.CompilationResultAction.Relation.FileFormatB\003\340A\001\022\030\n" + + "\014table_format\030\020 \001(\0162K.google.cloud." + + "dataform.v1beta1.CompilationResultAction.Relation.TableFormatB\003\340A\001\022d\n" + + "\013file_format\030\021 \001(\0162J.google.cloud.dataform.v1beta1." + + "CompilationResultAction.Relation.FileFormatB\003\340A\001\022\030\n" + "\013storage_uri\030\022 \001(\tB\003\340A\001\032\330\001\n" + "\026IncrementalTableConfig\022 \n" + "\030incremental_select_query\030\001 \001(\t\022\030\n" @@ -1301,8 +1350,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132%.google.cloud.dataform.v1beta1.Target\022\020\n" + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022N\n" - + "\023relation_descriptor\030\006" - + " \001(\01321.google.cloud.dataform.v1beta1.RelationDescriptor\022\017\n" + + "\023relation_descriptor\030\006 \001" + + "(\01321.google.cloud.dataform.v1beta1.RelationDescriptor\022\017\n" + "\007queries\030\004 \003(\t\022\022\n\n" + "has_output\030\005 \001(\010\032\222\002\n" + "\tAssertion\022A\n" @@ -1312,8 +1361,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\003 \003(\t\022\024\n" + "\014select_query\030\004 \001(\t\022N\n" - + "\023relation_descriptor\030\006" - + " \001(\01321.google.cloud.dataform.v1beta1.RelationDescriptor\032]\n" + + "\023relation_descriptor\030\006 \001(\01321.g" + + "oogle.cloud.dataform.v1beta1.RelationDescriptor\032]\n" + "\013Declaration\022N\n" + "\023relation_descriptor\030\001" + " \001(\01321.google.cloud.dataform.v1beta1.RelationDescriptor\032\177\n" @@ -1325,31 +1374,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004tags\030\004 \003(\t\032\300\004\n" + "\017DataPreparation\022\027\n\r" + "contents_yaml\030\005 \001(\tH\000\022l\n" - + "\014contents_sql\030\006 \001(\0132T.google.cloud.dataform.v1beta1.CompilationResult" - + "Action.DataPreparation.SqlDefinitionH\000\022A\n" + + "\014contents_sql\030\006 \001(\0132T.google.cloud.datafo" + + "rm.v1beta1.CompilationResultAction.DataPreparation.SqlDefinitionH\000\022A\n" + "\022dependency_targets\030\001" + " \003(\0132%.google.cloud.dataform.v1beta1.Target\022\020\n" + "\010disabled\030\002 \001(\010\022\014\n" + "\004tags\030\004 \003(\t\032\327\001\n\r" + "SqlDefinition\022\r\n" + "\005query\030\001 \001(\t\022f\n" - + "\013error_table\030\002 \001(\0132Q.google" - + ".cloud.dataform.v1beta1.CompilationResultAction.DataPreparation.ErrorTable\022O\n" - + "\004load\030\003" - + " \001(\0132A.google.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig\032[\n\n" + + "\013error_table\030\002 \001(\0132Q.google.cloud.dataf" + + "orm.v1beta1.CompilationResultAction.DataPreparation.ErrorTable\022O\n" + + "\004load\030\003 \001(\0132A.g" + + "oogle.cloud.dataform.v1beta1.CompilationResultAction.LoadConfig\032[\n\n" + "ErrorTable\0225\n" + "\006target\030\001 \001(\0132%.google.cloud.dataform.v1beta1.Target\022\026\n" + "\016retention_days\030\002 \001(\005B\014\n\n" + "definition\032\204\003\n\n" + "LoadConfig\022X\n" - + "\007replace\030\001 \001(\0132E.google.cloud.dataform.v" - + "1beta1.CompilationResultAction.SimpleLoadModeH\000\022W\n" - + "\006append\030\002 \001(\0132E.google.cloud.d" - + "ataform.v1beta1.CompilationResultAction.SimpleLoadModeH\000\022]\n" - + "\007maximum\030\003 \001(\0132J.goog" - + "le.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadModeH\000\022\\\n" - + "\006unique\030\004 \001(\0132J.google.cloud.dataform.v1beta1." - + "CompilationResultAction.IncrementalLoadModeH\000B\006\n" + + "\007replace\030\001 \001" + + "(\0132E.google.cloud.dataform.v1beta1.CompilationResultAction.SimpleLoadModeH\000\022W\n" + + "\006append\030\002 \001(\0132E.google.cloud.dataform.v1be" + + "ta1.CompilationResultAction.SimpleLoadModeH\000\022]\n" + + "\007maximum\030\003 \001(\0132J.google.cloud.dat" + + "aform.v1beta1.CompilationResultAction.IncrementalLoadModeH\000\022\\\n" + + "\006unique\030\004 \001(\0132J.go" + + "ogle.cloud.dataform.v1beta1.CompilationResultAction.IncrementalLoadModeH\000B\006\n" + "\004mode\032\020\n" + "\016SimpleLoadMode\032%\n" + "\023IncrementalLoadMode\022\016\n" @@ -1363,8 +1412,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\"\234\001\n" + "%QueryCompilationResultActionsResponse\022Z\n" - + "\032compilation_result_actions\030\001" - + " \003(\01326.google.cloud.dataform.v1beta1.CompilationResultAction\022\027\n" + + "\032compilation_result_actions\030\001 \003(\01326.goog" + + "le.cloud.dataform.v1beta1.CompilationResultAction\022\027\n" + "\017next_page_token\030\002 \001(\t\"\267\007\n" + "\016WorkflowConfig\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022E\n" @@ -1374,8 +1423,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132/.google.cloud.dataform.v1beta1.InvocationConfigB\003\340A\001\022\032\n\r" + "cron_schedule\030\004 \001(\tB\003\340A\001\022\026\n" + "\ttime_zone\030\007 \001(\tB\003\340A\001\022w\n" - + "\"recent_scheduled_execution_records\030\005 \003(\0132F.google.cloud.dataform.v1b" - + "eta1.WorkflowConfig.ScheduledExecutionRecordB\003\340A\003\022\025\n" + + "\"recent_scheduled_execution_records\030\005 \003(\013" + + "2F.google.cloud.dataform.v1beta1.WorkflowConfig.ScheduledExecutionRecordB\003\340A\003\022\025\n" + "\010disabled\030\010 \001(\010B\003\340A\001\0224\n" + "\013create_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\n" @@ -1388,20 +1437,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016execution_time\030\001" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003B\010\n" + "\006result:\262\001\352A\256\001\n" - + "&dataform.googleapis.com/WorkflowConfig\022cprojects/{project}/locations/{loca" - + "tion}/repositories/{repository}/workflow" - + "Configs/{workflow_config}*\017workflowConfigs2\016workflowConfigB\024\n" + + "&dataform.googleapis.com/WorkflowConfig\022cprojec" + + "ts/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{wor" + + "kflow_config}*\017workflowConfigs2\016workflowConfigB\024\n" + "\022_internal_metadata\"\346\003\n" + "\020InvocationConfig\022D\n" - + "\020included_targets\030\001" - + " \003(\0132%.google.cloud.dataform.v1beta1.TargetB\003\340A\001\022\032\n\r" + + "\020included_targets\030\001 \003(\0132%.go" + + "ogle.cloud.dataform.v1beta1.TargetB\003\340A\001\022\032\n\r" + "included_tags\030\002 \003(\tB\003\340A\001\022-\n" + " transitive_dependencies_included\030\003 \001(\010B\003\340A\001\022+\n" + "\036transitive_dependents_included\030\004 \001(\010B\003\340A\001\0225\n" + "(fully_refresh_incremental_tables_enabled\030\005 \001(\010B\003\340A\001\022\034\n" + "\017service_account\030\006 \001(\tB\003\340A\001\022_\n" - + "\016query_priority\030\t \001(\016" - + "2=.google.cloud.dataform.v1beta1.InvocationConfig.QueryPriorityB\003\340A\001H\000\210\001\001\"K\n\r" + + "\016query_priority\030\t \001(\0162=.google.cl" + + "oud.dataform.v1beta1.InvocationConfig.QueryPriorityB\003\340A\001H\000\210\001\001\"K\n\r" + "QueryPriority\022\036\n" + "\032QUERY_PRIORITY_UNSPECIFIED\020\000\022\017\n" + "\013INTERACTIVE\020\001\022\t\n" @@ -1413,8 +1462,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\224\001\n" + "\033ListWorkflowConfigsResponse\022G\n" - + "\020workflow_configs\030\001" - + " \003(\0132-.google.cloud.dataform.v1beta1.WorkflowConfig\022\027\n" + + "\020workflow_configs\030\001 \003(\0132-.go" + + "ogle.cloud.dataform.v1beta1.WorkflowConfig\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"X\n" + "\030GetWorkflowConfigRequest\022<\n" @@ -1423,8 +1472,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033CreateWorkflowConfigRequest\022:\n" + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022K\n" - + "\017workflow_config\030\002 \001(\0132-.google.clo" - + "ud.dataform.v1beta1.WorkflowConfigB\003\340A\002\022\037\n" + + "\017workflow_config\030\002" + + " \001(\0132-.google.cloud.dataform.v1beta1.WorkflowConfigB\003\340A\002\022\037\n" + "\022workflow_config_id\030\003 \001(\tB\003\340A\002\"\240\001\n" + "\033UpdateWorkflowConfigRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022K\n" @@ -1439,10 +1488,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017workflow_config\030\006 \001(\tB.\340A\005\372A(\n" + "&dataform.googleapis.com/WorkflowConfigH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022O\n" - + "\021invocation_config\030\003 \001(\0132/.goog" - + "le.cloud.dataform.v1beta1.InvocationConfigB\003\340A\005\022K\n" - + "\005state\030\004 \001(\01627.google.cloud.da" - + "taform.v1beta1.WorkflowInvocation.StateB\003\340A\003\0225\n" + + "\021invocation_config\030\003" + + " \001(\0132/.google.cloud.dataform.v1beta1.InvocationConfigB\003\340A\005\022K\n" + + "\005state\030\004" + + " \001(\01627.google.cloud.dataform.v1beta1.WorkflowInvocation.StateB\003\340A\003\0225\n" + "\021invocation_timing\030\005 \001(\0132\025.google.type.IntervalB\003\340A\003\022V\n" + "\033resolved_compilation_result\030\007 \001(\tB1\340A\003\372A+\n" + ")dataform.googleapis.com/CompilationResult\022V\n" @@ -1458,9 +1507,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tCANCELLED\020\003\022\n\n" + "\006FAILED\020\004\022\r\n" + "\tCANCELING\020\005:\306\001\352A\302\001\n" - + "*dataform.googleapis.com/WorkflowInvocation\022kprojects/{project}/locations/{locatio" - + "n}/repositories/{repository}/workflowInv" - + "ocations/{workflow_invocation}*\023workflowInvocations2\022workflowInvocationB\024\n" + + "*dataform.googleapis.com/WorkflowInvocation\022kprojects/" + + "{project}/locations/{location}/repositories/{repository}/workflowInvocations/{wo" + + "rkflow_invocation}*\023workflowInvocations2\022workflowInvocationB\024\n" + "\022compilation_sourceB\024\n" + "\022_internal_metadata\"\271\001\n" + "\036ListWorkflowInvocationsRequest\022:\n" @@ -1471,8 +1520,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\"\240\001\n" + "\037ListWorkflowInvocationsResponse\022O\n" - + "\024workflow_invocations\030\001" - + " \003(\01321.google.cloud.dataform.v1beta1.WorkflowInvocation\022\027\n" + + "\024workflow_invocations\030\001 \003(\01321." + + "google.cloud.dataform.v1beta1.WorkflowInvocation\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"`\n" + "\034GetWorkflowInvocationRequest\022@\n" @@ -1481,8 +1530,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037CreateWorkflowInvocationRequest\022:\n" + "\006parent\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/Repository\022S\n" - + "\023workflow_invocation\030\002" - + " \001(\01321.google.cloud.dataform.v1beta1.WorkflowInvocationB\003\340A\002\"c\n" + + "\023workflow_invocation\030\002 \001(\01321." + + "google.cloud.dataform.v1beta1.WorkflowInvocationB\003\340A\002\"c\n" + "\037DeleteWorkflowInvocationRequest\022@\n" + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + "*dataform.googleapis.com/WorkflowInvocation\"c\n" @@ -1491,18 +1540,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*dataform.googleapis.com/WorkflowInvocation\"\"\n" + " CancelWorkflowInvocationResponse\"\341\020\n" + "\030WorkflowInvocationAction\022f\n" - + "\017bigquery_action\030\006 \001(\0132F." - + "google.cloud.dataform.v1beta1.WorkflowInvocationAction.BigQueryActionB\003\340A\003H\000\022f\n" - + "\017notebook_action\030\010 \001(\0132F.google.cloud.dat" - + "aform.v1beta1.WorkflowInvocationAction.NotebookActionB\003\340A\003H\000\022u\n" - + "\027data_preparation_action\030\t \001(\0132M.google.cloud.dataform.v1" - + "beta1.WorkflowInvocationAction.DataPreparationActionB\003\340A\003H\000\022:\n" - + "\006target\030\001 \001(\0132%.go" - + "ogle.cloud.dataform.v1beta1.TargetB\003\340A\003\022D\n" + + "\017bigquery_action\030\006 \001(\0132F.google.cloud" + + ".dataform.v1beta1.WorkflowInvocationAction.BigQueryActionB\003\340A\003H\000\022f\n" + + "\017notebook_action\030\010 \001(\0132F.google.cloud.dataform.v1beta" + + "1.WorkflowInvocationAction.NotebookActionB\003\340A\003H\000\022u\n" + + "\027data_preparation_action\030\t \001(\0132M.google.cloud.dataform.v1beta1.Workfl" + + "owInvocationAction.DataPreparationActionB\003\340A\003H\000\022:\n" + + "\006target\030\001" + + " \001(\0132%.google.cloud.dataform.v1beta1.TargetB\003\340A\003\022D\n" + "\020canonical_target\030\002" + " \001(\0132%.google.cloud.dataform.v1beta1.TargetB\003\340A\003\022Q\n" - + "\005state\030\004" - + " \001(\0162=.google.cloud.dataform.v1beta1.WorkflowInvocationAction.StateB\003\340A\003\022\033\n" + + "\005state\030\004 \001(\0162=.googl" + + "e.cloud.dataform.v1beta1.WorkflowInvocationAction.StateB\003\340A\003\022\033\n" + "\016failure_reason\030\007 \001(\tB\003\340A\003\0225\n" + "\021invocation_timing\030\005 \001(\0132\025.google.type.IntervalB\003\340A\003\022#\n" + "\021internal_metadata\030\n" @@ -1515,28 +1564,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006job_id\030\002 \001(\tB\003\340A\003\032\251\t\n" + "\025DataPreparationAction\022\034\n\r" + "contents_yaml\030\002 \001(\tB\003\340A\003H\000\022y\n" - + "\014contents_sql\030\006 \001(\0132a.google.cloud.dataform.v1beta1.WorkflowIn" - + "vocationAction.DataPreparationAction.ActionSqlDefinitionH\000\022\032\n\r" + + "\014contents_sql\030\006 \001(\0132a.google.cloud" + + ".dataform.v1beta1.WorkflowInvocationActi" + + "on.DataPreparationAction.ActionSqlDefinitionH\000\022\032\n\r" + "generated_sql\030\003 \001(\tB\003\340A\003\022\023\n" + "\006job_id\030\004 \001(\tB\003\340A\003\032\216\002\n" + "\023ActionSqlDefinition\022\r\n" + "\005query\030\001 \001(\t\022s\n" - + "\013error_table\030\002 \001(\0132^.google.cloud.dataform.v1beta1." - + "WorkflowInvocationAction.DataPreparationAction.ActionErrorTable\022s\n" - + "\013load_config\030\003 \001(\0132^.google.cloud.dataform.v1beta1.Wor" - + "kflowInvocationAction.DataPreparationAction.ActionLoadConfig\032a\n" + + "\013error_table\030\002 \001(\0132^.google.cloud.dataform.v1beta1.WorkflowInvo" + + "cationAction.DataPreparationAction.ActionErrorTable\022s\n" + + "\013load_config\030\003 \001(\0132^.google.cloud.dataform.v1beta1.WorkflowInvocat" + + "ionAction.DataPreparationAction.ActionLoadConfig\032a\n" + "\020ActionErrorTable\0225\n" + "\006target\030\001 \001(\0132%.google.cloud.dataform.v1beta1.Target\022\026\n" + "\016retention_days\030\002 \001(\005\032\376\003\n" + "\020ActionLoadConfig\022u\n" - + "\007replace\030\001 \001(\0132b.google.cloud.dataform.v1beta1.WorkflowIn" - + "vocationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022t\n" - + "\006append\030\002 \001(\0132b.google.cloud.dataform.v1beta1.WorkflowInvo" - + "cationAction.DataPreparationAction.ActionSimpleLoadModeH\000\022z\n" - + "\007maximum\030\003 \001(\0132g.google.cloud.dataform.v1beta1.WorkflowInvoc" - + "ationAction.DataPreparationAction.ActionIncrementalLoadModeH\000\022y\n" - + "\006unique\030\004 \001(\0132g.google.cloud.dataform.v1beta1.WorkflowIn" - + "vocationAction.DataPreparationAction.ActionIncrementalLoadModeH\000B\006\n" + + "\007replace\030\001 \001(\0132b.google.cloud.dataform.v1beta1.WorkflowInvocationActi" + + "on.DataPreparationAction.ActionSimpleLoadModeH\000\022t\n" + + "\006append\030\002 \001(\0132b.google.cloud.dataform.v1beta1.WorkflowInvocationAction" + + ".DataPreparationAction.ActionSimpleLoadModeH\000\022z\n" + + "\007maximum\030\003 \001(\0132g.google.cloud.da" + + "taform.v1beta1.WorkflowInvocationAction." + + "DataPreparationAction.ActionIncrementalLoadModeH\000\022y\n" + + "\006unique\030\004 \001(\0132g.google.cloud.dataform.v1beta1.WorkflowInvocationActi" + + "on.DataPreparationAction.ActionIncrementalLoadModeH\000B\006\n" + "\004mode\032\026\n" + "\024ActionSimpleLoadMode\032+\n" + "\031ActionIncrementalLoadMode\022\016\n" @@ -1558,16 +1609,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\"\237\001\n" + "&QueryWorkflowInvocationActionsResponse\022\\\n" - + "\033workflow_invocation_actions\030\001" - + " \003(\01327.google.cloud.dataform.v1beta1.WorkflowInvocationAction\022\027\n" + + "\033workflow_invocation_actions\030\001 \003(\01327.g" + + "oogle.cloud.dataform.v1beta1.WorkflowInvocationAction\022\027\n" + "\017next_page_token\030\002 \001(\t\"\205\002\n" + "\006Config\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022G\n" + "\024default_kms_key_name\030\002 \001(\tB)\340A\001\372A#\n" + "!cloudkms.googleapis.com/CryptoKey\022#\n" + "\021internal_metadata\030\007 \001(\tB\003\340A\003H\000\210\001\001:d\352Aa\n" - + "\036dataform.googleapis.com/Config\022.projects/{p" - + "roject}/locations/{location}/config*\007configs2\006configB\024\n" + + "\036dataform.googleapis.com/Config\022.projects/{project}/loca" + + "tions/{location}/config*\007configs2\006configB\024\n" + "\022_internal_metadata\"H\n" + "\020GetConfigRequest\0224\n" + "\004name\030\001 \001(\tB&\340A\002\372A \n" @@ -1586,16 +1637,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022#\n" + "\021internal_metadata\030\007 \001(\tB\003\340A\003H\000\210\001\001\022\'\n" + "\025creator_iam_principal\030\010 \001(\tB\003\340A\003H\001\210\001\001:n\352Ak\n" - + "\036dataform.googleapis.com/Folder\0228projects/" - + "{project}/locations/{location}/folders/{folder}*\007folders2\006folderB\024\n" + + "\036dataform.googleapis.com/Folder\0228projects/{project}/lo" + + "cations/{location}/folders/{folder}*\007folders2\006folderB\024\n" + "\022_internal_metadataB\030\n" - + "\026_creator_iam_principal\"\237\001\n" + + "\026_creator_iam_principal\"\243\001\n" + "\023CreateFolderRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022:\n" - + "\006folder\030\002" - + " \001(\0132%.google.cloud.dataform.v1beta1.FolderB\003\340A\002\022\021\n" - + "\tfolder_id\030\003 \001(\t\"\234\001\n" + + "\006folder\030\002 \001(\0132" + + "%.google.cloud.dataform.v1beta1.FolderB\003\340A\002\022\025\n" + + "\tfolder_id\030\003 \001(\tB\002\030\001\"\234\001\n" + "\021MoveFolderRequest\0224\n" + "\004name\030\001 \001(\tB&\340A\002\372A \n" + "\036dataform.googleapis.com/Folder\022/\n" @@ -1609,17 +1660,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006folder\030\002 \001(\0132%.google.cloud.dataform.v1beta1.FolderB\003\340A\002\"K\n" + "\023DeleteFolderRequest\0224\n" + "\004name\030\001 \001(\tB&\340A\002\372A \n" - + "\036dataform.googleapis.com/Folder\"\261\001\n" + + "\036dataform.googleapis.com/Folder\"c\n" + + "\027DeleteFolderTreeRequest\0224\n" + + "\004name\030\001 \001(\tB&\340A\002\372A \n" + + "\036dataform.googleapis.com/Folder\022\022\n" + + "\005force\030\002 \001(\010B\003\340A\001\"k\n" + + "\033DeleteTeamFolderTreeRequest\0228\n" + + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + + "\"dataform.googleapis.com/TeamFolder\022\022\n" + + "\005force\030\002 \001(\010B\003\340A\001\"\347\002\n" + + "\030DeleteFolderTreeMetadata\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\022Q\n" + + "\005state\030\004 \001(\0162=.google.cloud.dataform.v" + + "1beta1.DeleteFolderTreeMetadata.StateB\003\340A\003\022\035\n" + + "\020percent_complete\030\005 \001(\005B\003\340A\003\"[\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\017\n" + + "\013INITIALIZED\020\001\022\017\n" + + "\013IN_PROGRESS\020\002\022\r\n" + + "\tSUCCEEDED\020\003\022\n\n" + + "\006FAILED\020\004\"\261\001\n" + "\032QueryFolderContentsRequest\0226\n" + "\006folder\030\001 \001(\tB&\340A\002\372A \n" + "\036dataform.googleapis.com/Folder\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\n" + "page_token\030\003 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\"\262\002\n" + "\033QueryFolderContentsResponse\022_\n" - + "\007entries\030\001 \003(\0132N.google" - + ".cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry\022\027\n" + + "\007entries\030\001 \003(\0132N.go" + + "ogle.cloud.dataform.v1beta1.QueryFolderContentsResponse.FolderContentsEntry\022\027\n" + "\017next_page_token\030\002 \001(\t\032\230\001\n" + "\023FolderContentsEntry\0227\n" + "\006folder\030\001 \001(\0132%.google.cloud.dataform.v1beta1.FolderH\000\022?\n\n" @@ -1633,11 +1706,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\"\262\002\n" + "\035QueryUserRootContentsResponse\022_\n" - + "\007entries\030\001 \003(\0132N.google.cloud.dataform.v1beta" - + "1.QueryUserRootContentsResponse.RootContentsEntry\022\027\n" + + "\007entries\030\001 \003(\0132N.google.cloud.dataform.v1" + + "beta1.QueryUserRootContentsResponse.RootContentsEntry\022\027\n" + "\017next_page_token\030\002 \001(\t\032\226\001\n" + "\021RootContentsEntry\0227\n" - + "\006folder\030\001 \001(\0132%.google.cloud.dataform.v1beta1.FolderH\000\022?\n\n" + + "\006folder\030\001 \001(\0132%.google.cloud.dataform.v1beta1.FolderH\000\022?\n" + + "\n" + "repository\030\002 \001(\0132).google.cloud.dataform.v1beta1.RepositoryH\000B\007\n" + "\005entry\"\253\003\n\n" + "TeamFolder\022\021\n" @@ -1648,24 +1722,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021internal_metadata\030\005 \001(\tB\003\340A\003H\000\210\001\001\022\'\n" + "\025creator_iam_principal\030\006 \001(" + "\tB\003\340A\003H\001\210\001\001:\204\001\352A\200\001\n" - + "\"dataform.googleapis.com/TeamFolder\022Ap" - + "rojects/{project}/locations/{location}/teamFolders/{team_folder}*\013teamFolders2\n" + + "\"dataform.googleapis.com/TeamFolder\022Aprojects/{project}/locations/{locatio" + + "n}/teamFolders/{team_folder}*\013teamFolders2\n" + "teamFolderB\024\n" + "\022_internal_metadataB\030\n" - + "\026_creator_iam_principal\"\261\001\n" + + "\026_creator_iam_principal\"\265\001\n" + "\027CreateTeamFolderRequest\0229\n" + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + "!locations.googleapis.com/Location\022C\n" + "\013team_folder\030\002" - + " \001(\0132).google.cloud.dataform.v1beta1.TeamFolderB\003\340A\002\022\026\n" - + "\016team_folder_id\030\003 \001(\t\"P\n" + + " \001(\0132).google.cloud.dataform.v1beta1.TeamFolderB\003\340A\002\022\032\n" + + "\016team_folder_id\030\003 \001(\tB\002\030\001\"P\n" + "\024GetTeamFolderRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/TeamFolder\"\224\001\n" + "\027UpdateTeamFolderRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022C\n" - + "\013team_folder\030\002" - + " \001(\0132).google.cloud.dataform.v1beta1.TeamFolderB\003\340A\002\"S\n" + + "\013team_folder\030\002 \001(\0132).google." + + "cloud.dataform.v1beta1.TeamFolderB\003\340A\002\"S\n" + "\027DeleteTeamFolderRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"dataform.googleapis.com/TeamFolder\"\276\001\n" @@ -1677,8 +1751,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\"\302\002\n" + "\037QueryTeamFolderContentsResponse\022g\n" - + "\007entries\030\001 \003(\0132V.google.cloud.dataform.v1beta1.QueryT" - + "eamFolderContentsResponse.TeamFolderContentsEntry\022\027\n" + + "\007entries\030\001 \003(\0132V.google.cloud.dataform.v1beta" + + "1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry\022\027\n" + "\017next_page_token\030\002 \001(\t\032\234\001\n" + "\027TeamFolderContentsEntry\0227\n" + "\006folder\030\001 \001(\0132%.google.cloud.dataform.v1beta1.FolderH\000\022?\n\n" @@ -1692,8 +1766,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010order_by\030\004 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\"\373\001\n" + "\031SearchTeamFoldersResponse\022`\n" - + "\007results\030\001 \003(\0132O.google.cloud.d" - + "ataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult\022\027\n" + + "\007results\030\001 \003(\0132O.google" + + ".cloud.dataform.v1beta1.SearchTeamFoldersResponse.TeamFolderSearchResult\022\027\n" + "\017next_page_token\030\002 \001(\t\032c\n" + "\026TeamFolderSearchResult\022@\n" + "\013team_folder\030\002" @@ -1703,461 +1777,499 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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\022F\n" - + "\005state\030\004 \001(\01627.goo" - + "gle.cloud.dataform.v1beta1.MoveFolderMetadata.State\022\030\n" - + "\020percent_complete\030\005 \001(\005\"Y\n" - + "\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\017\n" - + "\013INITIALIZED\020\001\022\017\n" - + "\013IN_PROGRESS\020\002\022\013\n" - + "\007SUCCESS\020\003\022\n\n" - + "\006FAILED\020\004\"\327\002\n" - + "\026MoveRepositoryMetadata\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\022J\n" - + "\005state\030\004" - + " \001(\0162;.google.cloud.dataform.v1beta1.MoveRepositoryMetadata.State\022\030\n" - + "\020percent_complete\030\005 \001(\005\"Y\n" - + "\005State\022\025\n" - + "\021STATE_UNSPECIFIED\020\000\022\017\n" - + "\013INITIALIZED\020\001\022\017\n" - + "\013IN_PROGRESS\020\002\022\013\n" - + "\007SUCCESS\020\003\022\n\n" - + "\006FAILED\020\0042\213\202\001\n" - + "\010Dataform\022\264\001\n\r" - + "GetTeamFolder\0223.google.cloud.dataform.v1beta1.GetTeamFolderRequest\032" - + ").google.cloud.dataform.v1beta1.TeamFold" - + "er\"C\332A\004name\202\323\344\223\0026\0224/v1beta1/{name=projects/*/locations/*/teamFolders/*}\022\325\001\n" - + "\020CreateTeamFolder\0226.google.cloud.dataform.v1b" - + "eta1.CreateTeamFolderRequest\032).google.cl" - + "oud.dataform.v1beta1.TeamFolder\"^\332A\022pare" - + "nt,team_folder\202\323\344\223\002C\"4/v1beta1/{parent=p" - + "rojects/*/locations/*}/teamFolders:\013team_folder\022\346\001\n" - + "\020UpdateTeamFolder\0226.google.cloud.dataform.v1beta1.UpdateTeamFolderReq" - + "uest\032).google.cloud.dataform.v1beta1.Tea" - + "mFolder\"o\332A\027team_folder,update_mask\202\323\344\223\002" - + "O2@/v1beta1/{team_folder.name=projects/*/locations/*/teamFolders/*}:\013team_folder", - "\022\247\001\n\020DeleteTeamFolder\0226.google.cloud.dat" - + "aform.v1beta1.DeleteTeamFolderRequest\032\026." - + "google.protobuf.Empty\"C\332A\004name\202\323\344\223\0026*4/v" - + "1beta1/{name=projects/*/locations/*/team" - + "Folders/*}\022\371\001\n\027QueryTeamFolderContents\022=" - + ".google.cloud.dataform.v1beta1.QueryTeam" - + "FolderContentsRequest\032>.google.cloud.dat" - + "aform.v1beta1.QueryTeamFolderContentsRes" - + "ponse\"_\332A\013team_folder\202\323\344\223\002K\022I/v1beta1/{t" - + "eam_folder=projects/*/locations/*/teamFo" - + "lders/*}:queryContents\022\315\001\n\021SearchTeamFol" - + "ders\0227.google.cloud.dataform.v1beta1.Sea" - + "rchTeamFoldersRequest\0328.google.cloud.dat" - + "aform.v1beta1.SearchTeamFoldersResponse\"" - + "E\202\323\344\223\002?\022=/v1beta1/{location=projects/*/l" - + "ocations/*}/teamFolders:search\022\244\001\n\tGetFo" - + "lder\022/.google.cloud.dataform.v1beta1.Get" - + "FolderRequest\032%.google.cloud.dataform.v1" - + "beta1.Folder\"?\332A\004name\202\323\344\223\0022\0220/v1beta1/{n" - + "ame=projects/*/locations/*/folders/*}\022\273\001" - + "\n\014CreateFolder\0222.google.cloud.dataform.v" - + "1beta1.CreateFolderRequest\032%.google.clou" - + "d.dataform.v1beta1.Folder\"P\332A\rparent,fol" - + "der\202\323\344\223\002:\"0/v1beta1/{parent=projects/*/l" - + "ocations/*}/folders:\006folder\022\307\001\n\014UpdateFo" - + "lder\0222.google.cloud.dataform.v1beta1.Upd" - + "ateFolderRequest\032%.google.cloud.dataform" - + ".v1beta1.Folder\"\\\332A\022folder,update_mask\202\323" - + "\344\223\002A27/v1beta1/{folder.name=projects/*/l" - + "ocations/*/folders/*}:\006folder\022\233\001\n\014Delete" - + "Folder\0222.google.cloud.dataform.v1beta1.D" - + "eleteFolderRequest\032\026.google.protobuf.Emp" - + "ty\"?\332A\004name\202\323\344\223\0022*0/v1beta1/{name=projec" - + "ts/*/locations/*/folders/*}\022\345\001\n\023QueryFol" - + "derContents\0229.google.cloud.dataform.v1be" - + "ta1.QueryFolderContentsRequest\032:.google." - + "cloud.dataform.v1beta1.QueryFolderConten" - + "tsResponse\"W\332A\006folder\202\323\344\223\002H\022F/v1beta1/{f" - + "older=projects/*/locations/*/folders/*}:" - + "queryFolderContents\022\347\001\n\025QueryUserRootCon" - + "tents\022;.google.cloud.dataform.v1beta1.Qu" - + "eryUserRootContentsRequest\032<.google.clou" - + "d.dataform.v1beta1.QueryUserRootContents" - + "Response\"S\332A\010location\202\323\344\223\002B\022@/v1beta1/{l" - + "ocation=projects/*/locations/*}:queryUse" - + "rRootContents\022\363\001\n\nMoveFolder\0220.google.cl" - + "oud.dataform.v1beta1.MoveFolderRequest\032\035" - + ".google.longrunning.Operation\"\223\001\312A+\n\025goo" - + "gle.protobuf.Empty\022\022MoveFolderMetadata\332A" + + "\005state\030\004 \001", + "(\01627.google.cloud.dataform.v1beta1.MoveF" + + "olderMetadata.State\022\030\n\020percent_complete\030" + + "\005 \001(\005\"Y\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\017\n" + + "\013INITIALIZED\020\001\022\017\n\013IN_PROGRESS\020\002\022\013\n\007SUCCE" + + "SS\020\003\022\n\n\006FAILED\020\004\"\327\002\n\026MoveRepositoryMetad" + + "ata\0224\n\013create_time\030\001 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\003\340A\003\022\023\n\006target\030\003" + + " \001(\tB\003\340A\003\022J\n\005state\030\004 \001(\0162;.google.cloud." + + "dataform.v1beta1.MoveRepositoryMetadata." + + "State\022\030\n\020percent_complete\030\005 \001(\005\"Y\n\005State" + + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\017\n\013INITIALIZED\020\001" + + "\022\017\n\013IN_PROGRESS\020\002\022\013\n\007SUCCESS\020\003\022\n\n\006FAILED" + + "\020\004\"\341\003\n#DeleteRepositoryLongRunningMetada" + + "ta\0224\n\013create_time\030\001 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\003\340A\003\022:\n\006target\030\003 " + + "\001(\tB*\340A\003\372A$\n\"dataform.googleapis.com/Rep" + + "ository\022\\\n\005state\030\004 \001(\0162H.google.cloud.da" + + "taform.v1beta1.DeleteRepositoryLongRunni" + + "ngMetadata.StateB\003\340A\003\022\035\n\020percent_complet" + + "e\030\005 \001(\005B\003\340A\003\022\"\n\025child_resources_count\030\006 " + + "\001(\003B\003\340A\003\022,\n\037remaining_child_resources_co" + + "unt\030\007 \001(\003B\003\340A\003\"F\n\005State\022\025\n\021STATE_UNSPECI" + + "FIED\020\000\022\013\n\007RUNNING\020\001\022\r\n\tSUCCEEDED\020\002\022\n\n\006FA" + + "ILED\020\003*\211\001\n\025DirectoryContentsView\022\'\n#DIRE" + + "CTORY_CONTENTS_VIEW_UNSPECIFIED\020\000\022!\n\035DIR" + + "ECTORY_CONTENTS_VIEW_BASIC\020\001\022$\n DIRECTOR" + + "Y_CONTENTS_VIEW_METADATA\020\0022\264\210\001\n\010Dataform" + + "\022\264\001\n\rGetTeamFolder\0223.google.cloud.datafo" + + "rm.v1beta1.GetTeamFolderRequest\032).google" + + ".cloud.dataform.v1beta1.TeamFolder\"C\332A\004n" + + "ame\202\323\344\223\0026\0224/v1beta1/{name=projects/*/loc" + + "ations/*/teamFolders/*}\022\325\001\n\020CreateTeamFo" + + "lder\0226.google.cloud.dataform.v1beta1.Cre" + + "ateTeamFolderRequest\032).google.cloud.data" + + "form.v1beta1.TeamFolder\"^\332A\022parent,team_" + + "folder\202\323\344\223\002C\"4/v1beta1/{parent=projects/" + + "*/locations/*}/teamFolders:\013team_folder\022" + + "\346\001\n\020UpdateTeamFolder\0226.google.cloud.data" + + "form.v1beta1.UpdateTeamFolderRequest\032).g" + + "oogle.cloud.dataform.v1beta1.TeamFolder\"" + + "o\332A\027team_folder,update_mask\202\323\344\223\002O2@/v1be" + + "ta1/{team_folder.name=projects/*/locatio" + + "ns/*/teamFolders/*}:\013team_folder\022\247\001\n\020Del" + + "eteTeamFolder\0226.google.cloud.dataform.v1" + + "beta1.DeleteTeamFolderRequest\032\026.google.p" + + "rotobuf.Empty\"C\332A\004name\202\323\344\223\0026*4/v1beta1/{" + + "name=projects/*/locations/*/teamFolders/" + + "*}\022\377\001\n\024DeleteTeamFolderTree\022:.google.clo" + + "ud.dataform.v1beta1.DeleteTeamFolderTree" + + "Request\032\035.google.longrunning.Operation\"\213" + + "\001\312A1\n\025google.protobuf.Empty\022\030DeleteFolde" + + "rTreeMetadata\332A\nname,force\202\323\344\223\002D\"?/v1bet" + + "a1/{name=projects/*/locations/*/teamFold" + + "ers/*}:deleteTree:\001*\022\371\001\n\027QueryTeamFolder" + + "Contents\022=.google.cloud.dataform.v1beta1" + + ".QueryTeamFolderContentsRequest\032>.google" + + ".cloud.dataform.v1beta1.QueryTeamFolderC" + + "ontentsResponse\"_\332A\013team_folder\202\323\344\223\002K\022I/" + + "v1beta1/{team_folder=projects/*/location" + + "s/*/teamFolders/*}:queryContents\022\315\001\n\021Sea" + + "rchTeamFolders\0227.google.cloud.dataform.v" + + "1beta1.SearchTeamFoldersRequest\0328.google" + + ".cloud.dataform.v1beta1.SearchTeamFolder" + + "sResponse\"E\202\323\344\223\002?\022=/v1beta1/{location=pr" + + "ojects/*/locations/*}/teamFolders:search" + + "\022\244\001\n\tGetFolder\022/.google.cloud.dataform.v" + + "1beta1.GetFolderRequest\032%.google.cloud.d" + + "ataform.v1beta1.Folder\"?\332A\004name\202\323\344\223\0022\0220/" + + "v1beta1/{name=projects/*/locations/*/fol" + + "ders/*}\022\273\001\n\014CreateFolder\0222.google.cloud." + + "dataform.v1beta1.CreateFolderRequest\032%.g" + + "oogle.cloud.dataform.v1beta1.Folder\"P\332A\r" + + "parent,folder\202\323\344\223\002:\"0/v1beta1/{parent=pr" + + "ojects/*/locations/*}/folders:\006folder\022\307\001" + + "\n\014UpdateFolder\0222.google.cloud.dataform.v" + + "1beta1.UpdateFolderRequest\032%.google.clou" + + "d.dataform.v1beta1.Folder\"\\\332A\022folder,upd" + + "ate_mask\202\323\344\223\002A27/v1beta1/{folder.name=pr" + + "ojects/*/locations/*/folders/*}:\006folder\022" + + "\233\001\n\014DeleteFolder\0222.google.cloud.dataform" + + ".v1beta1.DeleteFolderRequest\032\026.google.pr" + + "otobuf.Empty\"?\332A\004name\202\323\344\223\0022*0/v1beta1/{n" + + "ame=projects/*/locations/*/folders/*}\022\363\001" + + "\n\020DeleteFolderTree\0226.google.cloud.datafo" + + "rm.v1beta1.DeleteFolderTreeRequest\032\035.goo" + + "gle.longrunning.Operation\"\207\001\312A1\n\025google." + + "protobuf.Empty\022\030DeleteFolderTreeMetadata" + + "\332A\nname,force\202\323\344\223\002@\";/v1beta1/{name=proj" + + "ects/*/locations/*/folders/*}:deleteTree" + + ":\001*\022\345\001\n\023QueryFolderContents\0229.google.clo" + + "ud.dataform.v1beta1.QueryFolderContentsR" + + "equest\032:.google.cloud.dataform.v1beta1.Q" + + "ueryFolderContentsResponse\"W\332A\006folder\202\323\344" + + "\223\002H\022F/v1beta1/{folder=projects/*/locatio" + + "ns/*/folders/*}:queryFolderContents\022\347\001\n\025" + + "QueryUserRootContents\022;.google.cloud.dat" + + "aform.v1beta1.QueryUserRootContentsReque" + + "st\032<.google.cloud.dataform.v1beta1.Query" + + "UserRootContentsResponse\"S\332A\010location\202\323\344" + + "\223\002B\022@/v1beta1/{location=projects/*/locat" + + "ions/*}:queryUserRootContents\022\363\001\n\nMoveFo" + + "lder\0220.google.cloud.dataform.v1beta1.Mov" + + "eFolderRequest\032\035.google.longrunning.Oper" + + "ation\"\223\001\312A+\n\025google.protobuf.Empty\022\022Move" + + "FolderMetadata\332A\"name,destination_contai" + + "ning_folder\202\323\344\223\002:\"5/v1beta1/{name=projec" + + "ts/*/locations/*/folders/*}:move:\001*\022\313\001\n\020" + + "ListRepositories\0226.google.cloud.dataform" + + ".v1beta1.ListRepositoriesRequest\0327.googl" + + "e.cloud.dataform.v1beta1.ListRepositorie" + + "sResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1beta1/{pa" + + "rent=projects/*/locations/*}/repositorie" + + "s\022\265\001\n\rGetRepository\0223.google.cloud.dataf" + + "orm.v1beta1.GetRepositoryRequest\032).googl" + + "e.cloud.dataform.v1beta1.Repository\"D\332A\004" + + "name\202\323\344\223\0027\0225/v1beta1/{name=projects/*/lo" + + "cations/*/repositories/*}\022\342\001\n\020CreateRepo" + + "sitory\0226.google.cloud.dataform.v1beta1.C" + + "reateRepositoryRequest\032).google.cloud.da" + + "taform.v1beta1.Repository\"k\332A\037parent,rep" + + "ository,repository_id\202\323\344\223\002C\"5/v1beta1/{p" + + "arent=projects/*/locations/*}/repositori" + + "es:\nrepository\022\344\001\n\020UpdateRepository\0226.go" + + "ogle.cloud.dataform.v1beta1.UpdateReposi" + + "toryRequest\032).google.cloud.dataform.v1be" + + "ta1.Repository\"m\332A\026repository,update_mas" + + "k\202\323\344\223\002N2@/v1beta1/{repository.name=proje" + + "cts/*/locations/*/repositories/*}:\nrepos" + + "itory\022\250\001\n\020DeleteRepository\0226.google.clou" + + "d.dataform.v1beta1.DeleteRepositoryReque" + + "st\032\026.google.protobuf.Empty\"D\332A\004name\202\323\344\223\002" + + "7*5/v1beta1/{name=projects/*/locations/*" + + "/repositories/*}\022\256\002\n\033DeleteRepositoryLon" + + "gRunning\022A.google.cloud.dataform.v1beta1" + + ".DeleteRepositoryLongRunningRequest\032\035.go" + + "ogle.longrunning.Operation\"\254\001\312AJ\n#Delete" + + "RepositoryLongRunningResponse\022#DeleteRep" + + "ositoryLongRunningMetadata\332A\nname,force\202" + + "\323\344\223\002L\"G/v1beta1/{name=projects/*/locatio" + + "ns/*/repositories/*}:deleteLongRunning:\001" + + "*\022\204\002\n\016MoveRepository\0224.google.cloud.data" + + "form.v1beta1.MoveRepositoryRequest\032\035.goo" + + "gle.longrunning.Operation\"\234\001\312A/\n\025google." + + "protobuf.Empty\022\026MoveRepositoryMetadata\332A" + "\"name,destination_containing_folder\202\323\344\223\002" - + ":\"5/v1beta1/{name=projects/*/locations/*" - + "/folders/*}:move:\001*\022\313\001\n\020ListRepositories" - + "\0226.google.cloud.dataform.v1beta1.ListRep" - + "ositoriesRequest\0327.google.cloud.dataform" - + ".v1beta1.ListRepositoriesResponse\"F\332A\006pa" - + "rent\202\323\344\223\0027\0225/v1beta1/{parent=projects/*/" - + "locations/*}/repositories\022\265\001\n\rGetReposit" - + "ory\0223.google.cloud.dataform.v1beta1.GetR" - + "epositoryRequest\032).google.cloud.dataform" - + ".v1beta1.Repository\"D\332A\004name\202\323\344\223\0027\0225/v1b" - + "eta1/{name=projects/*/locations/*/reposi" - + "tories/*}\022\342\001\n\020CreateRepository\0226.google." - + "cloud.dataform.v1beta1.CreateRepositoryR" - + "equest\032).google.cloud.dataform.v1beta1.R" - + "epository\"k\332A\037parent,repository,reposito" - + "ry_id\202\323\344\223\002C\"5/v1beta1/{parent=projects/*" - + "/locations/*}/repositories:\nrepository\022\344" - + "\001\n\020UpdateRepository\0226.google.cloud.dataf" - + "orm.v1beta1.UpdateRepositoryRequest\032).go" - + "ogle.cloud.dataform.v1beta1.Repository\"m" - + "\332A\026repository,update_mask\202\323\344\223\002N2@/v1beta" - + "1/{repository.name=projects/*/locations/" - + "*/repositories/*}:\nrepository\022\250\001\n\020Delete" - + "Repository\0226.google.cloud.dataform.v1bet" - + "a1.DeleteRepositoryRequest\032\026.google.prot" - + "obuf.Empty\"D\332A\004name\202\323\344\223\0027*5/v1beta1/{nam" - + "e=projects/*/locations/*/repositories/*}" - + "\022\204\002\n\016MoveRepository\0224.google.cloud.dataf" - + "orm.v1beta1.MoveRepositoryRequest\032\035.goog" - + "le.longrunning.Operation\"\234\001\312A/\n\025google.p" - + "rotobuf.Empty\022\026MoveRepositoryMetadata\332A\"" - + "name,destination_containing_folder\202\323\344\223\002?" - + "\":/v1beta1/{name=projects/*/locations/*/" - + "repositories/*}:move:\001*\022\341\001\n\027CommitReposi" - + "toryChanges\022=.google.cloud.dataform.v1be" - + "ta1.CommitRepositoryChangesRequest\032>.goo" - + "gle.cloud.dataform.v1beta1.CommitReposit" - + "oryChangesResponse\"G\202\323\344\223\002A\"/v1beta1/{name=projects/*/locations/*/r" - + "epositories/*}:readFile\022\211\002\n QueryReposit" - + "oryDirectoryContents\022F.google.cloud.data" - + "form.v1beta1.QueryRepositoryDirectoryCon" - + "tentsRequest\032G.google.cloud.dataform.v1b" - + "eta1.QueryRepositoryDirectoryContentsRes" - + "ponse\"T\202\323\344\223\002N\022L/v1beta1/{name=projects/*" - + "/locations/*/repositories/*}:queryDirect" - + "oryContents\022\341\001\n\026FetchRepositoryHistory\022<" - + ".google.cloud.dataform.v1beta1.FetchRepo" - + "sitoryHistoryRequest\032=.google.cloud.data" - + "form.v1beta1.FetchRepositoryHistoryRespo" - + "nse\"J\202\323\344\223\002D\022B/v1beta1/{name=projects/*/l" - + "ocations/*/repositories/*}:fetchHistory\022" - + "\221\002\n\"ComputeRepositoryAccessTokenStatus\022H" - + ".google.cloud.dataform.v1beta1.ComputeRe" - + "positoryAccessTokenStatusRequest\032I.googl" - + "e.cloud.dataform.v1beta1.ComputeReposito" - + "ryAccessTokenStatusResponse\"V\202\323\344\223\002P\022N/v1" - + "beta1/{name=projects/*/locations/*/repos" - + "itories/*}:computeAccessTokenStatus\022\337\001\n\023" - + "FetchRemoteBranches\0229.google.cloud.dataf" - + "orm.v1beta1.FetchRemoteBranchesRequest\032:" - + ".google.cloud.dataform.v1beta1.FetchRemo" - + "teBranchesResponse\"Q\202\323\344\223\002K\022I/v1beta1/{na" - + "me=projects/*/locations/*/repositories/*" - + "}:fetchRemoteBranches\022\322\001\n\016ListWorkspaces" - + "\0224.google.cloud.dataform.v1beta1.ListWor" - + "kspacesRequest\0325.google.cloud.dataform.v" - + "1beta1.ListWorkspacesResponse\"S\332A\006parent" - + "\202\323\344\223\002D\022B/v1beta1/{parent=projects/*/loca" - + "tions/*/repositories/*}/workspaces\022\277\001\n\014G" - + "etWorkspace\0222.google.cloud.dataform.v1be" - + "ta1.GetWorkspaceRequest\032(.google.cloud.d" - + "ataform.v1beta1.Workspace\"Q\332A\004name\202\323\344\223\002D" - + "\022B/v1beta1/{name=projects/*/locations/*/" - + "repositories/*/workspaces/*}\022\351\001\n\017CreateW" - + "orkspace\0225.google.cloud.dataform.v1beta1" - + ".CreateWorkspaceRequest\032(.google.cloud.d" - + "ataform.v1beta1.Workspace\"u\332A\035parent,wor" - + "kspace,workspace_id\202\323\344\223\002O\"B/v1beta1/{par" - + "ent=projects/*/locations/*/repositories/" - + "*}/workspaces:\tworkspace\022\263\001\n\017DeleteWorks" - + "pace\0225.google.cloud.dataform.v1beta1.Del" - + "eteWorkspaceRequest\032\026.google.protobuf.Em" - + "pty\"Q\332A\004name\202\323\344\223\002D*B/v1beta1/{name=proje" - + "cts/*/locations/*/repositories/*/workspa" - + "ces/*}\022\360\001\n\022InstallNpmPackages\0228.google.c" - + "loud.dataform.v1beta1.InstallNpmPackages" - + "Request\0329.google.cloud.dataform.v1beta1." - + "InstallNpmPackagesResponse\"e\202\323\344\223\002_\"Z/v1b" - + "eta1/{workspace=projects/*/locations/*/r" - + "epositories/*/workspaces/*}:installNpmPa" - + "ckages:\001*\022\321\001\n\016PullGitCommits\0224.google.cl" - + "oud.dataform.v1beta1.PullGitCommitsReque" - + "st\0325.google.cloud.dataform.v1beta1.PullG" - + "itCommitsResponse\"R\202\323\344\223\002L\"G/v1beta1/{nam" - + "e=projects/*/locations/*/repositories/*/" - + "workspaces/*}:pull:\001*\022\321\001\n\016PushGitCommits" - + "\0224.google.cloud.dataform.v1beta1.PushGit" - + "CommitsRequest\0325.google.cloud.dataform.v" - + "1beta1.PushGitCommitsResponse\"R\202\323\344\223\002L\"G/" - + "v1beta1/{name=projects/*/locations/*/rep" - + "ositories/*/workspaces/*}:push:\001*\022\360\001\n\024Fe" - + "tchFileGitStatuses\022:.google.cloud.datafo" - + "rm.v1beta1.FetchFileGitStatusesRequest\032;" - + ".google.cloud.dataform.v1beta1.FetchFile" - + "GitStatusesResponse\"_\202\323\344\223\002Y\022W/v1beta1/{n" + + "?\":/v1beta1/{name=projects/*/locations/*" + + "/repositories/*}:move:\001*\022\341\001\n\027CommitRepos" + + "itoryChanges\022=.google.cloud.dataform.v1b" + + "eta1.CommitRepositoryChangesRequest\032>.go" + + "ogle.cloud.dataform.v1beta1.CommitReposi" + + "toryChangesResponse\"G\202\323\344\223\002A\"/v1beta1/{name=projects/*/locations/*/" + + "repositories/*}:readFile\022\211\002\n QueryReposi" + + "toryDirectoryContents\022F.google.cloud.dat" + + "aform.v1beta1.QueryRepositoryDirectoryCo" + + "ntentsRequest\032G.google.cloud.dataform.v1" + + "beta1.QueryRepositoryDirectoryContentsRe" + + "sponse\"T\202\323\344\223\002N\022L/v1beta1/{name=projects/" + + "*/locations/*/repositories/*}:queryDirec" + + "toryContents\022\341\001\n\026FetchRepositoryHistory\022" + + "<.google.cloud.dataform.v1beta1.FetchRep" + + "ositoryHistoryRequest\032=.google.cloud.dat" + + "aform.v1beta1.FetchRepositoryHistoryResp" + + "onse\"J\202\323\344\223\002D\022B/v1beta1/{name=projects/*/" + + "locations/*/repositories/*}:fetchHistory" + + "\022\221\002\n\"ComputeRepositoryAccessTokenStatus\022" + + "H.google.cloud.dataform.v1beta1.ComputeR" + + "epositoryAccessTokenStatusRequest\032I.goog" + + "le.cloud.dataform.v1beta1.ComputeReposit" + + "oryAccessTokenStatusResponse\"V\202\323\344\223\002P\022N/v" + + "1beta1/{name=projects/*/locations/*/repo" + + "sitories/*}:computeAccessTokenStatus\022\337\001\n" + + "\023FetchRemoteBranches\0229.google.cloud.data" + + "form.v1beta1.FetchRemoteBranchesRequest\032" + + ":.google.cloud.dataform.v1beta1.FetchRem" + + "oteBranchesResponse\"Q\202\323\344\223\002K\022I/v1beta1/{n" + "ame=projects/*/locations/*/repositories/" - + "*/workspaces/*}:fetchGitAheadBehind\022\353\001\n\026" - + "CommitWorkspaceChanges\022<.google.cloud.da" - + "taform.v1beta1.CommitWorkspaceChangesReq" - + "uest\032=.google.cloud.dataform.v1beta1.Com" - + "mitWorkspaceChangesResponse\"T\202\323\344\223\002N\"I/v1" - + "beta1/{name=projects/*/locations/*/repos" - + "itories/*/workspaces/*}:commit:\001*\022\347\001\n\025Re" - + "setWorkspaceChanges\022;.google.cloud.dataf" - + "orm.v1beta1.ResetWorkspaceChangesRequest" - + "\032<.google.cloud.dataform.v1beta1.ResetWo" - + "rkspaceChangesResponse\"S\202\323\344\223\002M\"H/v1beta1" - + "/{name=projects/*/locations/*/repositori" - + "es/*/workspaces/*}:reset:\001*\022\331\001\n\rFetchFil" - + "eDiff\0223.google.cloud.dataform.v1beta1.Fe" - + "tchFileDiffRequest\0324.google.cloud.datafo" - + "rm.v1beta1.FetchFileDiffResponse\"]\202\323\344\223\002W" - + "\022U/v1beta1/{workspace=projects/*/locatio" - + "ns/*/repositories/*/workspaces/*}:fetchF" - + "ileDiff\022\375\001\n\026QueryDirectoryContents\022<.goo" - + "gle.cloud.dataform.v1beta1.QueryDirector" - + "yContentsRequest\032=.google.cloud.dataform" - + ".v1beta1.QueryDirectoryContentsResponse\"" - + "f\202\323\344\223\002`\022^/v1beta1/{workspace=projects/*/" - + "locations/*/repositories/*/workspaces/*}" - + ":queryDirectoryContents\022\321\001\n\013SearchFiles\022" - + "1.google.cloud.dataform.v1beta1.SearchFi" - + "lesRequest\0322.google.cloud.dataform.v1bet" - + "a1.SearchFilesResponse\"[\202\323\344\223\002U\022S/v1beta1" - + "/{workspace=projects/*/locations/*/repos" - + "itories/*/workspaces/*}:searchFiles\022\334\001\n\r" - + "MakeDirectory\0223.google.cloud.dataform.v1" - + "beta1.MakeDirectoryRequest\0324.google.clou" - + "d.dataform.v1beta1.MakeDirectoryResponse" - + "\"`\202\323\344\223\002Z\"U/v1beta1/{workspace=projects/*" + + "*}:fetchRemoteBranches\022\322\001\n\016ListWorkspace" + + "s\0224.google.cloud.dataform.v1beta1.ListWo" + + "rkspacesRequest\0325.google.cloud.dataform." + + "v1beta1.ListWorkspacesResponse\"S\332A\006paren" + + "t\202\323\344\223\002D\022B/v1beta1/{parent=projects/*/loc" + + "ations/*/repositories/*}/workspaces\022\277\001\n\014" + + "GetWorkspace\0222.google.cloud.dataform.v1b" + + "eta1.GetWorkspaceRequest\032(.google.cloud." + + "dataform.v1beta1.Workspace\"Q\332A\004name\202\323\344\223\002" + + "D\022B/v1beta1/{name=projects/*/locations/*" + + "/repositories/*/workspaces/*}\022\351\001\n\017Create" + + "Workspace\0225.google.cloud.dataform.v1beta" + + "1.CreateWorkspaceRequest\032(.google.cloud." + + "dataform.v1beta1.Workspace\"u\332A\035parent,wo" + + "rkspace,workspace_id\202\323\344\223\002O\"B/v1beta1/{pa" + + "rent=projects/*/locations/*/repositories" + + "/*}/workspaces:\tworkspace\022\263\001\n\017DeleteWork" + + "space\0225.google.cloud.dataform.v1beta1.De" + + "leteWorkspaceRequest\032\026.google.protobuf.E" + + "mpty\"Q\332A\004name\202\323\344\223\002D*B/v1beta1/{name=proj" + + "ects/*/locations/*/repositories/*/worksp" + + "aces/*}\022\360\001\n\022InstallNpmPackages\0228.google." + + "cloud.dataform.v1beta1.InstallNpmPackage" + + "sRequest\0329.google.cloud.dataform.v1beta1" + + ".InstallNpmPackagesResponse\"e\202\323\344\223\002_\"Z/v1" + + "beta1/{workspace=projects/*/locations/*/" + + "repositories/*/workspaces/*}:installNpmP" + + "ackages:\001*\022\321\001\n\016PullGitCommits\0224.google.c" + + "loud.dataform.v1beta1.PullGitCommitsRequ" + + "est\0325.google.cloud.dataform.v1beta1.Pull" + + "GitCommitsResponse\"R\202\323\344\223\002L\"G/v1beta1/{na" + + "me=projects/*/locations/*/repositories/*" + + "/workspaces/*}:pull:\001*\022\321\001\n\016PushGitCommit" + + "s\0224.google.cloud.dataform.v1beta1.PushGi" + + "tCommitsRequest\0325.google.cloud.dataform." + + "v1beta1.PushGitCommitsResponse\"R\202\323\344\223\002L\"G" + + "/v1beta1/{name=projects/*/locations/*/re" + + "positories/*/workspaces/*}:push:\001*\022\360\001\n\024F" + + "etchFileGitStatuses\022:.google.cloud.dataf" + + "orm.v1beta1.FetchFileGitStatusesRequest\032" + + ";.google.cloud.dataform.v1beta1.FetchFil" + + "eGitStatusesResponse\"_\202\323\344\223\002Y\022W/v1beta1/{" + + "name=projects/*/locations/*/repositories" + + "/*/workspaces/*}:fetchFileGitStatuses\022\354\001" + + "\n\023FetchGitAheadBehind\0229.google.cloud.dat" + + "aform.v1beta1.FetchGitAheadBehindRequest" + + "\032:.google.cloud.dataform.v1beta1.FetchGi" + + "tAheadBehindResponse\"^\202\323\344\223\002X\022V/v1beta1/{" + + "name=projects/*/locations/*/repositories" + + "/*/workspaces/*}:fetchGitAheadBehind\022\353\001\n" + + "\026CommitWorkspaceChanges\022<.google.cloud.d" + + "ataform.v1beta1.CommitWorkspaceChangesRe" + + "quest\032=.google.cloud.dataform.v1beta1.Co" + + "mmitWorkspaceChangesResponse\"T\202\323\344\223\002N\"I/v" + + "1beta1/{name=projects/*/locations/*/repo" + + "sitories/*/workspaces/*}:commit:\001*\022\347\001\n\025R" + + "esetWorkspaceChanges\022;.google.cloud.data" + + "form.v1beta1.ResetWorkspaceChangesReques" + + "t\032<.google.cloud.dataform.v1beta1.ResetW" + + "orkspaceChangesResponse\"S\202\323\344\223\002M\"H/v1beta" + + "1/{name=projects/*/locations/*/repositor" + + "ies/*/workspaces/*}:reset:\001*\022\331\001\n\rFetchFi" + + "leDiff\0223.google.cloud.dataform.v1beta1.F" + + "etchFileDiffRequest\0324.google.cloud.dataf" + + "orm.v1beta1.FetchFileDiffResponse\"]\202\323\344\223\002" + + "W\022U/v1beta1/{workspace=projects/*/locati" + + "ons/*/repositories/*/workspaces/*}:fetch" + + "FileDiff\022\375\001\n\026QueryDirectoryContents\022<.go" + + "ogle.cloud.dataform.v1beta1.QueryDirecto" + + "ryContentsRequest\032=.google.cloud.datafor" + + "m.v1beta1.QueryDirectoryContentsResponse" + + "\"f\202\323\344\223\002`\022^/v1beta1/{workspace=projects/*" + "/locations/*/repositories/*/workspaces/*" - + "}:makeDirectory:\001*\022\344\001\n\017RemoveDirectory\0225" - + ".google.cloud.dataform.v1beta1.RemoveDir" - + "ectoryRequest\0326.google.cloud.dataform.v1" - + "beta1.RemoveDirectoryResponse\"b\202\323\344\223\002\\\"W/" + + "}:queryDirectoryContents\022\321\001\n\013SearchFiles" + + "\0221.google.cloud.dataform.v1beta1.SearchF" + + "ilesRequest\0322.google.cloud.dataform.v1be" + + "ta1.SearchFilesResponse\"[\202\323\344\223\002U\022S/v1beta" + + "1/{workspace=projects/*/locations/*/repo" + + "sitories/*/workspaces/*}:searchFiles\022\334\001\n" + + "\rMakeDirectory\0223.google.cloud.dataform.v" + + "1beta1.MakeDirectoryRequest\0324.google.clo" + + "ud.dataform.v1beta1.MakeDirectoryRespons" + + "e\"`\202\323\344\223\002Z\"U/v1beta1/{workspace=projects/" + + "*/locations/*/repositories/*/workspaces/" + + "*}:makeDirectory:\001*\022\344\001\n\017RemoveDirectory\022" + + "5.google.cloud.dataform.v1beta1.RemoveDi" + + "rectoryRequest\0326.google.cloud.dataform.v" + + "1beta1.RemoveDirectoryResponse\"b\202\323\344\223\002\\\"W" + + "/v1beta1/{workspace=projects/*/locations" + + "/*/repositories/*/workspaces/*}:removeDi" + + "rectory:\001*\022\334\001\n\rMoveDirectory\0223.google.cl" + + "oud.dataform.v1beta1.MoveDirectoryReques" + + "t\0324.google.cloud.dataform.v1beta1.MoveDi" + + "rectoryResponse\"`\202\323\344\223\002Z\"U/v1beta1/{works" + + "pace=projects/*/locations/*/repositories" + + "/*/workspaces/*}:moveDirectory:\001*\022\305\001\n\010Re" + + "adFile\022..google.cloud.dataform.v1beta1.R" + + "eadFileRequest\032/.google.cloud.dataform.v" + + "1beta1.ReadFileResponse\"X\202\323\344\223\002R\022P/v1beta" + + "1/{workspace=projects/*/locations/*/repo" + + "sitories/*/workspaces/*}:readFile\022\320\001\n\nRe" + + "moveFile\0220.google.cloud.dataform.v1beta1" + + ".RemoveFileRequest\0321.google.cloud.datafo" + + "rm.v1beta1.RemoveFileResponse\"]\202\323\344\223\002W\"R/" + "v1beta1/{workspace=projects/*/locations/" - + "*/repositories/*/workspaces/*}:removeDir" - + "ectory:\001*\022\334\001\n\rMoveDirectory\0223.google.clo" - + "ud.dataform.v1beta1.MoveDirectoryRequest" - + "\0324.google.cloud.dataform.v1beta1.MoveDir" - + "ectoryResponse\"`\202\323\344\223\002Z\"U/v1beta1/{worksp" - + "ace=projects/*/locations/*/repositories/" - + "*/workspaces/*}:moveDirectory:\001*\022\305\001\n\010Rea" - + "dFile\022..google.cloud.dataform.v1beta1.Re" - + "adFileRequest\032/.google.cloud.dataform.v1" - + "beta1.ReadFileResponse\"X\202\323\344\223\002R\022P/v1beta1" - + "/{workspace=projects/*/locations/*/repos" - + "itories/*/workspaces/*}:readFile\022\320\001\n\nRem" - + "oveFile\0220.google.cloud.dataform.v1beta1." - + "RemoveFileRequest\0321.google.cloud.datafor" - + "m.v1beta1.RemoveFileResponse\"]\202\323\344\223\002W\"R/v" - + "1beta1/{workspace=projects/*/locations/*" - + "/repositories/*/workspaces/*}:removeFile" - + ":\001*\022\310\001\n\010MoveFile\022..google.cloud.dataform" - + ".v1beta1.MoveFileRequest\032/.google.cloud." - + "dataform.v1beta1.MoveFileResponse\"[\202\323\344\223\002" - + "U\"P/v1beta1/{workspace=projects/*/locati" - + "ons/*/repositories/*/workspaces/*}:moveF" - + "ile:\001*\022\314\001\n\tWriteFile\022/.google.cloud.data" - + "form.v1beta1.WriteFileRequest\0320.google.c" - + "loud.dataform.v1beta1.WriteFileResponse\"" - + "\\\202\323\344\223\002V\"Q/v1beta1/{workspace=projects/*/" - + "locations/*/repositories/*/workspaces/*}" - + ":writeFile:\001*\022\342\001\n\022ListReleaseConfigs\0228.g" - + "oogle.cloud.dataform.v1beta1.ListRelease" - + "ConfigsRequest\0329.google.cloud.dataform.v" - + "1beta1.ListReleaseConfigsResponse\"W\332A\006pa" - + "rent\202\323\344\223\002H\022F/v1beta1/{parent=projects/*/" - + "locations/*/repositories/*}/releaseConfi" - + "gs\022\317\001\n\020GetReleaseConfig\0226.google.cloud.d" - + "ataform.v1beta1.GetReleaseConfigRequest\032" - + ",.google.cloud.dataform.v1beta1.ReleaseC" - + "onfig\"U\332A\004name\202\323\344\223\002H\022F/v1beta1/{name=pro" - + "jects/*/locations/*/repositories/*/relea" - + "seConfigs/*}\022\211\002\n\023CreateReleaseConfig\0229.g" - + "oogle.cloud.dataform.v1beta1.CreateRelea" - + "seConfigRequest\032,.google.cloud.dataform." - + "v1beta1.ReleaseConfig\"\210\001\332A\'parent,releas" - + "e_config,release_config_id\202\323\344\223\002X\"F/v1bet" - + "a1/{parent=projects/*/locations/*/reposi" - + "tories/*}/releaseConfigs:\016release_config" - + "\022\213\002\n\023UpdateReleaseConfig\0229.google.cloud." - + "dataform.v1beta1.UpdateReleaseConfigRequ" - + "est\032,.google.cloud.dataform.v1beta1.Rele" - + "aseConfig\"\212\001\332A\032release_config,update_mas" - + "k\202\323\344\223\002g2U/v1beta1/{release_config.name=p" - + "rojects/*/locations/*/repositories/*/rel" - + "easeConfigs/*}:\016release_config\022\277\001\n\023Delet" - + "eReleaseConfig\0229.google.cloud.dataform.v" - + "1beta1.DeleteReleaseConfigRequest\032\026.goog" - + "le.protobuf.Empty\"U\332A\004name\202\323\344\223\002H*F/v1bet" - + "a1/{name=projects/*/locations/*/reposito" - + "ries/*/releaseConfigs/*}\022\362\001\n\026ListCompila" - + "tionResults\022<.google.cloud.dataform.v1be" - + "ta1.ListCompilationResultsRequest\032=.goog" - + "le.cloud.dataform.v1beta1.ListCompilatio" - + "nResultsResponse\"[\332A\006parent\202\323\344\223\002L\022J/v1be" - + "ta1/{parent=projects/*/locations/*/repos" - + "itories/*}/compilationResults\022\337\001\n\024GetCom" - + "pilationResult\022:.google.cloud.dataform.v" - + "1beta1.GetCompilationResultRequest\0320.goo" - + "gle.cloud.dataform.v1beta1.CompilationRe" - + "sult\"Y\332A\004name\202\323\344\223\002L\022J/v1beta1/{name=proj" - + "ects/*/locations/*/repositories/*/compil" - + "ationResults/*}\022\217\002\n\027CreateCompilationRes" - + "ult\022=.google.cloud.dataform.v1beta1.Crea" - + "teCompilationResultRequest\0320.google.clou" - + "d.dataform.v1beta1.CompilationResult\"\202\001\332" - + "A\031parent,compilation_result\202\323\344\223\002`\"J/v1be" + + "*/repositories/*/workspaces/*}:removeFil" + + "e:\001*\022\310\001\n\010MoveFile\022..google.cloud.datafor" + + "m.v1beta1.MoveFileRequest\032/.google.cloud" + + ".dataform.v1beta1.MoveFileResponse\"[\202\323\344\223" + + "\002U\"P/v1beta1/{workspace=projects/*/locat" + + "ions/*/repositories/*/workspaces/*}:move" + + "File:\001*\022\314\001\n\tWriteFile\022/.google.cloud.dat" + + "aform.v1beta1.WriteFileRequest\0320.google." + + "cloud.dataform.v1beta1.WriteFileResponse" + + "\"\\\202\323\344\223\002V\"Q/v1beta1/{workspace=projects/*" + + "/locations/*/repositories/*/workspaces/*" + + "}:writeFile:\001*\022\342\001\n\022ListReleaseConfigs\0228." + + "google.cloud.dataform.v1beta1.ListReleas" + + "eConfigsRequest\0329.google.cloud.dataform." + + "v1beta1.ListReleaseConfigsResponse\"W\332A\006p" + + "arent\202\323\344\223\002H\022F/v1beta1/{parent=projects/*" + + "/locations/*/repositories/*}/releaseConf" + + "igs\022\317\001\n\020GetReleaseConfig\0226.google.cloud." + + "dataform.v1beta1.GetReleaseConfigRequest" + + "\032,.google.cloud.dataform.v1beta1.Release" + + "Config\"U\332A\004name\202\323\344\223\002H\022F/v1beta1/{name=pr" + + "ojects/*/locations/*/repositories/*/rele" + + "aseConfigs/*}\022\211\002\n\023CreateReleaseConfig\0229." + + "google.cloud.dataform.v1beta1.CreateRele" + + "aseConfigRequest\032,.google.cloud.dataform" + + ".v1beta1.ReleaseConfig\"\210\001\332A\'parent,relea" + + "se_config,release_config_id\202\323\344\223\002X\"F/v1be" + "ta1/{parent=projects/*/locations/*/repos" - + "itories/*}/compilationResults:\022compilati" - + "on_result\022\204\002\n\035QueryCompilationResultActi" - + "ons\022C.google.cloud.dataform.v1beta1.Quer" - + "yCompilationResultActionsRequest\032D.googl" - + "e.cloud.dataform.v1beta1.QueryCompilatio" - + "nResultActionsResponse\"X\202\323\344\223\002R\022P/v1beta1" - + "/{name=projects/*/locations/*/repositori" - + "es/*/compilationResults/*}:query\022\346\001\n\023Lis" - + "tWorkflowConfigs\0229.google.cloud.dataform" - + ".v1beta1.ListWorkflowConfigsRequest\032:.go" - + "ogle.cloud.dataform.v1beta1.ListWorkflow" - + "ConfigsResponse\"X\332A\006parent\202\323\344\223\002I\022G/v1bet" - + "a1/{parent=projects/*/locations/*/reposi" - + "tories/*}/workflowConfigs\022\323\001\n\021GetWorkflo" - + "wConfig\0227.google.cloud.dataform.v1beta1." - + "GetWorkflowConfigRequest\032-.google.cloud." - + "dataform.v1beta1.WorkflowConfig\"V\332A\004name" - + "\202\323\344\223\002I\022G/v1beta1/{name=projects/*/locati" - + "ons/*/repositories/*/workflowConfigs/*}\022" - + "\220\002\n\024CreateWorkflowConfig\022:.google.cloud." - + "dataform.v1beta1.CreateWorkflowConfigReq" - + "uest\032-.google.cloud.dataform.v1beta1.Wor" - + "kflowConfig\"\214\001\332A)parent,workflow_config," - + "workflow_config_id\202\323\344\223\002Z\"G/v1beta1/{pare" - + "nt=projects/*/locations/*/repositories/*" - + "}/workflowConfigs:\017workflow_config\022\222\002\n\024U" - + "pdateWorkflowConfig\022:.google.cloud.dataf" - + "orm.v1beta1.UpdateWorkflowConfigRequest\032" - + "-.google.cloud.dataform.v1beta1.Workflow" - + "Config\"\216\001\332A\033workflow_config,update_mask\202" - + "\323\344\223\002j2W/v1beta1/{workflow_config.name=pr" - + "ojects/*/locations/*/repositories/*/work" - + "flowConfigs/*}:\017workflow_config\022\302\001\n\024Dele" - + "teWorkflowConfig\022:.google.cloud.dataform" - + ".v1beta1.DeleteWorkflowConfigRequest\032\026.g" - + "oogle.protobuf.Empty\"V\332A\004name\202\323\344\223\002I*G/v1" - + "beta1/{name=projects/*/locations/*/repos" - + "itories/*/workflowConfigs/*}\022\366\001\n\027ListWor" - + "kflowInvocations\022=.google.cloud.dataform" - + ".v1beta1.ListWorkflowInvocationsRequest\032" - + ">.google.cloud.dataform.v1beta1.ListWork" - + "flowInvocationsResponse\"\\\332A\006parent\202\323\344\223\002M" - + "\022K/v1beta1/{parent=projects/*/locations/" - + "*/repositories/*}/workflowInvocations\022\343\001" - + "\n\025GetWorkflowInvocation\022;.google.cloud.d" - + "ataform.v1beta1.GetWorkflowInvocationReq" - + "uest\0321.google.cloud.dataform.v1beta1.Wor" - + "kflowInvocation\"Z\332A\004name\202\323\344\223\002M\022K/v1beta1" - + "/{name=projects/*/locations/*/repositori" - + "es/*/workflowInvocations/*}\022\225\002\n\030CreateWo" - + "rkflowInvocation\022>.google.cloud.dataform" - + ".v1beta1.CreateWorkflowInvocationRequest" - + "\0321.google.cloud.dataform.v1beta1.Workflo" - + "wInvocation\"\205\001\332A\032parent,workflow_invocat" - + "ion\202\323\344\223\002b\"K/v1beta1/{parent=projects/*/l" - + "ocations/*/repositories/*}/workflowInvoc" - + "ations:\023workflow_invocation\022\316\001\n\030DeleteWo" - + "rkflowInvocation\022>.google.cloud.dataform" - + ".v1beta1.DeleteWorkflowInvocationRequest" - + "\032\026.google.protobuf.Empty\"Z\332A\004name\202\323\344\223\002M*" - + "K/v1beta1/{name=projects/*/locations/*/r" - + "epositories/*/workflowInvocations/*}\022\372\001\n" - + "\030CancelWorkflowInvocation\022>.google.cloud" - + ".dataform.v1beta1.CancelWorkflowInvocati" - + "onRequest\032?.google.cloud.dataform.v1beta" - + "1.CancelWorkflowInvocationResponse\"]\202\323\344\223" - + "\002W\"R/v1beta1/{name=projects/*/locations/" - + "*/repositories/*/workflowInvocations/*}:" - + "cancel:\001*\022\210\002\n\036QueryWorkflowInvocationAct" - + "ions\022D.google.cloud.dataform.v1beta1.Que" - + "ryWorkflowInvocationActionsRequest\032E.goo" - + "gle.cloud.dataform.v1beta1.QueryWorkflow" - + "InvocationActionsResponse\"Y\202\323\344\223\002S\022Q/v1be" + + "itories/*}/releaseConfigs:\016release_confi" + + "g\022\213\002\n\023UpdateReleaseConfig\0229.google.cloud" + + ".dataform.v1beta1.UpdateReleaseConfigReq" + + "uest\032,.google.cloud.dataform.v1beta1.Rel" + + "easeConfig\"\212\001\332A\032release_config,update_ma" + + "sk\202\323\344\223\002g2U/v1beta1/{release_config.name=" + + "projects/*/locations/*/repositories/*/re" + + "leaseConfigs/*}:\016release_config\022\277\001\n\023Dele" + + "teReleaseConfig\0229.google.cloud.dataform." + + "v1beta1.DeleteReleaseConfigRequest\032\026.goo" + + "gle.protobuf.Empty\"U\332A\004name\202\323\344\223\002H*F/v1be" + "ta1/{name=projects/*/locations/*/reposit" - + "ories/*/workflowInvocations/*}:query\022\241\001\n" - + "\tGetConfig\022/.google.cloud.dataform.v1bet" - + "a1.GetConfigRequest\032%.google.cloud.dataf" - + "orm.v1beta1.Config\"<\332A\004name\202\323\344\223\002/\022-/v1be" - + "ta1/{name=projects/*/locations/*/config}" - + "\022\304\001\n\014UpdateConfig\0222.google.cloud.datafor" - + "m.v1beta1.UpdateConfigRequest\032%.google.c" - + "loud.dataform.v1beta1.Config\"Y\332A\022config," - + "update_mask\202\323\344\223\002>24/v1beta1/{config.name" - + "=projects/*/locations/*/config}:\006config\022" - + "\213\003\n\014GetIamPolicy\022\".google.iam.v1.GetIamP" - + "olicyRequest\032\025.google.iam.v1.Policy\"\277\002\332A" - + "\010resource\202\323\344\223\002\255\002\022F/v1beta1/{resource=pro" - + "jects/*/locations/*/repositories/*}:getI" - + "amPolicyZU\022S/v1beta1/{resource=projects/" - + "*/locations/*/repositories/*/workspaces/" - + "*}:getIamPolicyZC\022A/v1beta1/{resource=pr" - + "ojects/*/locations/*/folders/*}:getIamPo" - + "licyZG\022E/v1beta1/{resource=projects/*/lo" - + "cations/*/teamFolders/*}:getIamPolicy\022\214\003" - + "\n\014SetIamPolicy\022\".google.iam.v1.SetIamPol" - + "icyRequest\032\025.google.iam.v1.Policy\"\300\002\202\323\344\223" - + "\002\271\002\"F/v1beta1/{resource=projects/*/locat" - + "ions/*/repositories/*}:setIamPolicy:\001*ZX" - + "\"S/v1beta1/{resource=projects/*/location" - + "s/*/repositories/*/workspaces/*}:setIamP" - + "olicy:\001*ZF\"A/v1beta1/{resource=projects/" - + "*/locations/*/folders/*}:setIamPolicy:\001*" - + "ZJ\"E/v1beta1/{resource=projects/*/locati" - + "ons/*/teamFolders/*}:setIamPolicy:\001*\022\304\003\n" - + "\022TestIamPermissions\022(.google.iam.v1.Test" - + "IamPermissionsRequest\032).google.iam.v1.Te" - + "stIamPermissionsResponse\"\330\002\202\323\344\223\002\321\002\"L/v1b" - + "eta1/{resource=projects/*/locations/*/re" - + "positories/*}:testIamPermissions:\001*Z^\"Y/" - + "v1beta1/{resource=projects/*/locations/*" - + "/repositories/*/workspaces/*}:testIamPer" - + "missions:\001*ZL\"G/v1beta1/{resource=projec" - + "ts/*/locations/*/folders/*}:testIamPermi" - + "ssions:\001*ZP\"K/v1beta1/{resource=projects" - + "/*/locations/*/teamFolders/*}:testIamPer" - + "missions:\001*\032t\312A\027dataform.googleapis.com\322" - + "AWhttps://www.googleapis.com/auth/bigque" - + "ry,https://www.googleapis.com/auth/cloud", - "-platformB\367\005\n!com.google.cloud.dataform." - + "v1beta1B\rDataformProtoP\001Z=cloud.google.c" - + "om/go/dataform/apiv1beta1/dataformpb;dat" - + "aformpb\252\002\035Google.Cloud.Dataform.V1Beta1\312" - + "\002\035Google\\Cloud\\Dataform\\V1beta1\352\002 Google" - + "::Cloud::Dataform::V1beta1\352Ad\n*secretman" - + "ager.googleapis.com/SecretVersion\0226proje" - + "cts/{project}/secrets/{secret}/versions/" - + "{version}\352Ax\n!cloudkms.googleapis.com/Cr" - + "yptoKey\022Sprojects/{project}/locations/{l" - + "ocation}/keyRings/{key_ring}/cryptoKeys/" - + "{crypto_key}\352A\246\001\n(cloudkms.googleapis.co" - + "m/CryptoKeyVersion\022zprojects/{project}/l" - + "ocations/{location}/keyRings/{key_ring}/" - + "cryptoKeys/{crypto_key}/cryptoKeyVersion" - + "s/{crypto_key_version}\352A\221\001\n1aiplatform.g" - + "oogleapis.com/NotebookRuntimeTemplate\022\\p" - + "rojects/{project}/locations/{location}/n" - + "otebookRuntimeTemplates/{notebook_runtim" - + "e_template}b\006proto3" + + "ories/*/releaseConfigs/*}\022\362\001\n\026ListCompil" + + "ationResults\022<.google.cloud.dataform.v1b" + + "eta1.ListCompilationResultsRequest\032=.goo" + + "gle.cloud.dataform.v1beta1.ListCompilati" + + "onResultsResponse\"[\332A\006parent\202\323\344\223\002L\022J/v1b" + + "eta1/{parent=projects/*/locations/*/repo" + + "sitories/*}/compilationResults\022\337\001\n\024GetCo" + + "mpilationResult\022:.google.cloud.dataform." + + "v1beta1.GetCompilationResultRequest\0320.go" + + "ogle.cloud.dataform.v1beta1.CompilationR" + + "esult\"Y\332A\004name\202\323\344\223\002L\022J/v1beta1/{name=pro" + + "jects/*/locations/*/repositories/*/compi" + + "lationResults/*}\022\217\002\n\027CreateCompilationRe" + + "sult\022=.google.cloud.dataform.v1beta1.Cre" + + "ateCompilationResultRequest\0320.google.clo" + + "ud.dataform.v1beta1.CompilationResult\"\202\001" + + "\332A\031parent,compilation_result\202\323\344\223\002`\"J/v1b" + + "eta1/{parent=projects/*/locations/*/repo" + + "sitories/*}/compilationResults:\022compilat" + + "ion_result\022\204\002\n\035QueryCompilationResultAct" + + "ions\022C.google.cloud.dataform.v1beta1.Que" + + "ryCompilationResultActionsRequest\032D.goog" + + "le.cloud.dataform.v1beta1.QueryCompilati" + + "onResultActionsResponse\"X\202\323\344\223\002R\022P/v1beta" + + "1/{name=projects/*/locations/*/repositor" + + "ies/*/compilationResults/*}:query\022\346\001\n\023Li" + + "stWorkflowConfigs\0229.google.cloud.datafor" + + "m.v1beta1.ListWorkflowConfigsRequest\032:.g" + + "oogle.cloud.dataform.v1beta1.ListWorkflo" + + "wConfigsResponse\"X\332A\006parent\202\323\344\223\002I\022G/v1be" + + "ta1/{parent=projects/*/locations/*/repos" + + "itories/*}/workflowConfigs\022\323\001\n\021GetWorkfl" + + "owConfig\0227.google.cloud.dataform.v1beta1" + + ".GetWorkflowConfigRequest\032-.google.cloud" + + ".dataform.v1beta1.WorkflowConfig\"V\332A\004nam" + + "e\202\323\344\223\002I\022G/v1beta1/{name=projects/*/locat" + + "ions/*/repositories/*/workflowConfigs/*}" + + "\022\220\002\n\024CreateWorkflowConfig\022:.google.cloud" + + ".dataform.v1beta1.CreateWorkflowConfigRe" + + "quest\032-.google.cloud.dataform.v1beta1.Wo" + + "rkflowConfig\"\214\001\332A)parent,workflow_config" + + ",workflow_config_id\202\323\344\223\002Z\"G/v1beta1/{par" + + "ent=projects/*/locations/*/repositories/" + + "*}/workflowConfigs:\017workflow_config\022\222\002\n\024" + + "UpdateWorkflowConfig\022:.google.cloud.data" + + "form.v1beta1.UpdateWorkflowConfigRequest" + + "\032-.google.cloud.dataform.v1beta1.Workflo" + + "wConfig\"\216\001\332A\033workflow_config,update_mask" + + "\202\323\344\223\002j2W/v1beta1/{workflow_config.name=p" + + "rojects/*/locations/*/repositories/*/wor" + + "kflowConfigs/*}:\017workflow_config\022\302\001\n\024Del" + + "eteWorkflowConfig\022:.google.cloud.datafor" + + "m.v1beta1.DeleteWorkflowConfigRequest\032\026." + + "google.protobuf.Empty\"V\332A\004name\202\323\344\223\002I*G/v" + + "1beta1/{name=projects/*/locations/*/repo" + + "sitories/*/workflowConfigs/*}\022\366\001\n\027ListWo" + + "rkflowInvocations\022=.google.cloud.datafor" + + "m.v1beta1.ListWorkflowInvocationsRequest" + + "\032>.google.cloud.dataform.v1beta1.ListWor" + + "kflowInvocationsResponse\"\\\332A\006parent\202\323\344\223\002" + + "M\022K/v1beta1/{parent=projects/*/locations" + + "/*/repositories/*}/workflowInvocations\022\343" + + "\001\n\025GetWorkflowInvocation\022;.google.cloud." + + "dataform.v1beta1.GetWorkflowInvocationRe" + + "quest\0321.google.cloud.dataform.v1beta1.Wo" + + "rkflowInvocation\"Z\332A\004name\202\323\344\223\002M\022K/v1beta" + + "1/{name=projects/*/locations/*/repositor" + + "ies/*/workflowInvocations/*}\022\225\002\n\030CreateW" + + "orkflowInvocation\022>.google.cloud.datafor" + + "m.v1beta1.CreateWorkflowInvocationReques" + + "t\0321.google.cloud.dataform.v1beta1.Workfl", + "owInvocation\"\205\001\332A\032parent,workflow_invoca" + + "tion\202\323\344\223\002b\"K/v1beta1/{parent=projects/*/" + + "locations/*/repositories/*}/workflowInvo" + + "cations:\023workflow_invocation\022\316\001\n\030DeleteW" + + "orkflowInvocation\022>.google.cloud.datafor" + + "m.v1beta1.DeleteWorkflowInvocationReques" + + "t\032\026.google.protobuf.Empty\"Z\332A\004name\202\323\344\223\002M" + + "*K/v1beta1/{name=projects/*/locations/*/" + + "repositories/*/workflowInvocations/*}\022\372\001" + + "\n\030CancelWorkflowInvocation\022>.google.clou" + + "d.dataform.v1beta1.CancelWorkflowInvocat" + + "ionRequest\032?.google.cloud.dataform.v1bet" + + "a1.CancelWorkflowInvocationResponse\"]\202\323\344" + + "\223\002W\"R/v1beta1/{name=projects/*/locations" + + "/*/repositories/*/workflowInvocations/*}" + + ":cancel:\001*\022\210\002\n\036QueryWorkflowInvocationAc" + + "tions\022D.google.cloud.dataform.v1beta1.Qu" + + "eryWorkflowInvocationActionsRequest\032E.go" + + "ogle.cloud.dataform.v1beta1.QueryWorkflo" + + "wInvocationActionsResponse\"Y\202\323\344\223\002S\022Q/v1b" + + "eta1/{name=projects/*/locations/*/reposi" + + "tories/*/workflowInvocations/*}:query\022\241\001" + + "\n\tGetConfig\022/.google.cloud.dataform.v1be" + + "ta1.GetConfigRequest\032%.google.cloud.data" + + "form.v1beta1.Config\"<\332A\004name\202\323\344\223\002/\022-/v1b" + + "eta1/{name=projects/*/locations/*/config" + + "}\022\304\001\n\014UpdateConfig\0222.google.cloud.datafo" + + "rm.v1beta1.UpdateConfigRequest\032%.google." + + "cloud.dataform.v1beta1.Config\"Y\332A\022config" + + ",update_mask\202\323\344\223\002>24/v1beta1/{config.nam" + + "e=projects/*/locations/*/config}:\006config" + + "\022\213\003\n\014GetIamPolicy\022\".google.iam.v1.GetIam" + + "PolicyRequest\032\025.google.iam.v1.Policy\"\277\002\332" + + "A\010resource\202\323\344\223\002\255\002\022F/v1beta1/{resource=pr" + + "ojects/*/locations/*/repositories/*}:get" + + "IamPolicyZU\022S/v1beta1/{resource=projects" + + "/*/locations/*/repositories/*/workspaces" + + "/*}:getIamPolicyZC\022A/v1beta1/{resource=p" + + "rojects/*/locations/*/folders/*}:getIamP" + + "olicyZG\022E/v1beta1/{resource=projects/*/l" + + "ocations/*/teamFolders/*}:getIamPolicy\022\214" + + "\003\n\014SetIamPolicy\022\".google.iam.v1.SetIamPo" + + "licyRequest\032\025.google.iam.v1.Policy\"\300\002\202\323\344" + + "\223\002\271\002\"F/v1beta1/{resource=projects/*/loca" + + "tions/*/repositories/*}:setIamPolicy:\001*Z" + + "X\"S/v1beta1/{resource=projects/*/locatio" + + "ns/*/repositories/*/workspaces/*}:setIam" + + "Policy:\001*ZF\"A/v1beta1/{resource=projects" + + "/*/locations/*/folders/*}:setIamPolicy:\001" + + "*ZJ\"E/v1beta1/{resource=projects/*/locat" + + "ions/*/teamFolders/*}:setIamPolicy:\001*\022\304\003" + + "\n\022TestIamPermissions\022(.google.iam.v1.Tes" + + "tIamPermissionsRequest\032).google.iam.v1.T" + + "estIamPermissionsResponse\"\330\002\202\323\344\223\002\321\002\"L/v1" + + "beta1/{resource=projects/*/locations/*/r" + + "epositories/*}:testIamPermissions:\001*Z^\"Y" + + "/v1beta1/{resource=projects/*/locations/" + + "*/repositories/*/workspaces/*}:testIamPe" + + "rmissions:\001*ZL\"G/v1beta1/{resource=proje" + + "cts/*/locations/*/folders/*}:testIamPerm" + + "issions:\001*ZP\"K/v1beta1/{resource=project" + + "s/*/locations/*/teamFolders/*}:testIamPe" + + "rmissions:\001*\032t\312A\027dataform.googleapis.com" + + "\322AWhttps://www.googleapis.com/auth/bigqu" + + "ery,https://www.googleapis.com/auth/clou" + + "d-platformB\232\010\n!com.google.cloud.dataform" + + ".v1beta1B\rDataformProtoP\001Z=cloud.google." + + "com/go/dataform/apiv1beta1/dataformpb;da" + + "taformpb\252\002\035Google.Cloud.Dataform.V1Beta1" + + "\312\002\035Google\\Cloud\\Dataform\\V1beta1\352\002 Googl" + + "e::Cloud::Dataform::V1beta1\352Ad\n*secretma" + + "nager.googleapis.com/SecretVersion\0226proj" + + "ects/{project}/secrets/{secret}/versions" + + "/{version}\352Ax\n!cloudkms.googleapis.com/C" + + "ryptoKey\022Sprojects/{project}/locations/{" + + "location}/keyRings/{key_ring}/cryptoKeys" + + "/{crypto_key}\352A\246\001\n(cloudkms.googleapis.c" + + "om/CryptoKeyVersion\022zprojects/{project}/" + + "locations/{location}/keyRings/{key_ring}" + + "/cryptoKeys/{crypto_key}/cryptoKeyVersio" + + "ns/{crypto_key_version}\352A\221\001\n1aiplatform." + + "googleapis.com/NotebookRuntimeTemplate\022\\" + + "projects/{project}/locations/{location}/" + + "notebookRuntimeTemplates/{notebook_runti" + + "me_template}\352A~\n!dataplex.googleapis.com" + + "/EntryLink\022Yprojects/{project}/locations" + + "/{location}/entryGroups/{entry_group}/en" + + "tryLinks/{entry_link}\352A\236\001\n1developerconn" + + "ect.googleapis.com/GitRepositoryLink\022ipr" + + "ojects/{project}/locations/{location}/co" + + "nnections/{connection}/gitRepositoryLink" + + "s/{git_repository_link}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -2213,8 +2325,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Url", "DefaultBranch", + "EffectiveDefaultBranch", "AuthenticationTokenSecretVersion", "SshAuthenticationConfig", + "GitRepositoryLink", "TokenStatus", }); internal_static_google_cloud_dataform_v1beta1_Repository_GitRemoteSettings_SshAuthenticationConfig_descriptor = @@ -2306,8 +2420,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Force", }); - internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_descriptor = + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningResponse_descriptor = getDescriptor().getMessageType(10); + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningRequest_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_descriptor = + getDescriptor().getMessageType(12); internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesRequest_descriptor, @@ -2349,7 +2477,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesResponse_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(13); internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitRepositoryChangesResponse_descriptor, @@ -2357,7 +2485,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CommitSha", }); internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileRequest_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(14); internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileRequest_descriptor, @@ -2365,7 +2493,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "CommitSha", "Path", }); internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileResponse_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(15); internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ReadRepositoryFileResponse_descriptor, @@ -2373,7 +2501,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Contents", }); internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsRequest_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(16); internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsRequest_descriptor, @@ -2381,7 +2509,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "CommitSha", "Path", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsResponse_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(17); internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryRepositoryDirectoryContentsResponse_descriptor, @@ -2389,7 +2517,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DirectoryEntries", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryRequest_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(18); internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryRequest_descriptor, @@ -2397,7 +2525,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryResponse_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(19); internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchRepositoryHistoryResponse_descriptor, @@ -2405,7 +2533,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Commits", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_CommitLogEntry_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(20); internal_static_google_cloud_dataform_v1beta1_CommitLogEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitLogEntry_descriptor, @@ -2413,7 +2541,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CommitTime", "CommitSha", "Author", "CommitMessage", }); internal_static_google_cloud_dataform_v1beta1_CommitMetadata_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(21); internal_static_google_cloud_dataform_v1beta1_CommitMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitMetadata_descriptor, @@ -2421,7 +2549,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Author", "CommitMessage", }); internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusRequest_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(22); internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusRequest_descriptor, @@ -2429,7 +2557,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusResponse_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(23); internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ComputeRepositoryAccessTokenStatusResponse_descriptor, @@ -2437,7 +2565,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TokenStatus", }); internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(24); internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesRequest_descriptor, @@ -2445,7 +2573,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesResponse_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(25); internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchRemoteBranchesResponse_descriptor, @@ -2453,7 +2581,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Branches", }); internal_static_google_cloud_dataform_v1beta1_Workspace_descriptor = - getDescriptor().getMessageType(24); + getDescriptor().getMessageType(26); internal_static_google_cloud_dataform_v1beta1_Workspace_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_Workspace_descriptor, @@ -2466,7 +2594,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrivateResourceMetadata", }); internal_static_google_cloud_dataform_v1beta1_ListWorkspacesRequest_descriptor = - getDescriptor().getMessageType(25); + getDescriptor().getMessageType(27); internal_static_google_cloud_dataform_v1beta1_ListWorkspacesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkspacesRequest_descriptor, @@ -2474,7 +2602,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_ListWorkspacesResponse_descriptor = - getDescriptor().getMessageType(26); + getDescriptor().getMessageType(28); internal_static_google_cloud_dataform_v1beta1_ListWorkspacesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkspacesResponse_descriptor, @@ -2482,7 +2610,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspaces", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetWorkspaceRequest_descriptor = - getDescriptor().getMessageType(27); + getDescriptor().getMessageType(29); internal_static_google_cloud_dataform_v1beta1_GetWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetWorkspaceRequest_descriptor, @@ -2490,7 +2618,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_descriptor = - getDescriptor().getMessageType(28); + getDescriptor().getMessageType(30); internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateWorkspaceRequest_descriptor, @@ -2498,7 +2626,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Workspace", "WorkspaceId", }); internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor = - getDescriptor().getMessageType(29); + getDescriptor().getMessageType(31); internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteWorkspaceRequest_descriptor, @@ -2506,7 +2634,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CommitAuthor_descriptor = - getDescriptor().getMessageType(30); + getDescriptor().getMessageType(32); internal_static_google_cloud_dataform_v1beta1_CommitAuthor_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitAuthor_descriptor, @@ -2514,7 +2642,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "EmailAddress", }); internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_descriptor = - getDescriptor().getMessageType(31); + getDescriptor().getMessageType(33); internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PullGitCommitsRequest_descriptor, @@ -2522,13 +2650,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RemoteBranch", "Author", }); internal_static_google_cloud_dataform_v1beta1_PullGitCommitsResponse_descriptor = - getDescriptor().getMessageType(32); + getDescriptor().getMessageType(34); internal_static_google_cloud_dataform_v1beta1_PullGitCommitsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PullGitCommitsResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_descriptor = - getDescriptor().getMessageType(33); + getDescriptor().getMessageType(35); internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PushGitCommitsRequest_descriptor, @@ -2536,13 +2664,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RemoteBranch", }); internal_static_google_cloud_dataform_v1beta1_PushGitCommitsResponse_descriptor = - getDescriptor().getMessageType(34); + getDescriptor().getMessageType(36); internal_static_google_cloud_dataform_v1beta1_PushGitCommitsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_PushGitCommitsResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_descriptor = - getDescriptor().getMessageType(35); + getDescriptor().getMessageType(37); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesRequest_descriptor, @@ -2550,7 +2678,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_descriptor = - getDescriptor().getMessageType(36); + getDescriptor().getMessageType(38); internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileGitStatusesResponse_descriptor, @@ -2567,7 +2695,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Path", "State", }); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_descriptor = - getDescriptor().getMessageType(37); + getDescriptor().getMessageType(39); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindRequest_descriptor, @@ -2575,7 +2703,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RemoteBranch", }); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_descriptor = - getDescriptor().getMessageType(38); + getDescriptor().getMessageType(40); internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchGitAheadBehindResponse_descriptor, @@ -2583,7 +2711,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CommitsAhead", "CommitsBehind", }); internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_descriptor = - getDescriptor().getMessageType(39); + getDescriptor().getMessageType(41); internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesRequest_descriptor, @@ -2591,13 +2719,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Author", "CommitMessage", "Paths", }); internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesResponse_descriptor = - getDescriptor().getMessageType(40); + getDescriptor().getMessageType(42); internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CommitWorkspaceChangesResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_descriptor = - getDescriptor().getMessageType(41); + getDescriptor().getMessageType(43); internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesRequest_descriptor, @@ -2605,13 +2733,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Paths", "Clean", }); internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesResponse_descriptor = - getDescriptor().getMessageType(42); + getDescriptor().getMessageType(44); internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ResetWorkspaceChangesResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_descriptor = - getDescriptor().getMessageType(43); + getDescriptor().getMessageType(45); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileDiffRequest_descriptor, @@ -2619,7 +2747,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_descriptor = - getDescriptor().getMessageType(44); + getDescriptor().getMessageType(46); internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FetchFileDiffResponse_descriptor, @@ -2627,15 +2755,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FormattedDiff", }); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_descriptor = - getDescriptor().getMessageType(45); + getDescriptor().getMessageType(47); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsRequest_descriptor, new java.lang.String[] { - "Workspace", "Path", "PageSize", "PageToken", + "Workspace", "Path", "PageSize", "PageToken", "View", }); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_descriptor = - getDescriptor().getMessageType(46); + getDescriptor().getMessageType(48); internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryDirectoryContentsResponse_descriptor, @@ -2643,15 +2771,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DirectoryEntries", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_descriptor = - getDescriptor().getMessageType(47); + getDescriptor().getMessageType(49); internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DirectoryEntry_descriptor, new java.lang.String[] { - "File", "Directory", "Entry", + "File", "Directory", "Metadata", "Entry", + }); + internal_static_google_cloud_dataform_v1beta1_FilesystemEntryMetadata_descriptor = + getDescriptor().getMessageType(50); + internal_static_google_cloud_dataform_v1beta1_FilesystemEntryMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_FilesystemEntryMetadata_descriptor, + new java.lang.String[] { + "SizeBytes", "UpdateTime", }); internal_static_google_cloud_dataform_v1beta1_SearchFilesRequest_descriptor = - getDescriptor().getMessageType(48); + getDescriptor().getMessageType(51); internal_static_google_cloud_dataform_v1beta1_SearchFilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SearchFilesRequest_descriptor, @@ -2659,7 +2795,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_dataform_v1beta1_SearchFilesResponse_descriptor = - getDescriptor().getMessageType(49); + getDescriptor().getMessageType(52); internal_static_google_cloud_dataform_v1beta1_SearchFilesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SearchFilesResponse_descriptor, @@ -2667,7 +2803,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SearchResults", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_SearchResult_descriptor = - getDescriptor().getMessageType(50); + getDescriptor().getMessageType(53); internal_static_google_cloud_dataform_v1beta1_SearchResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SearchResult_descriptor, @@ -2675,7 +2811,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "File", "Directory", "Entry", }); internal_static_google_cloud_dataform_v1beta1_FileSearchResult_descriptor = - getDescriptor().getMessageType(51); + getDescriptor().getMessageType(54); internal_static_google_cloud_dataform_v1beta1_FileSearchResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_FileSearchResult_descriptor, @@ -2683,7 +2819,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Path", }); internal_static_google_cloud_dataform_v1beta1_DirectorySearchResult_descriptor = - getDescriptor().getMessageType(52); + getDescriptor().getMessageType(55); internal_static_google_cloud_dataform_v1beta1_DirectorySearchResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DirectorySearchResult_descriptor, @@ -2691,7 +2827,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Path", }); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_descriptor = - getDescriptor().getMessageType(53); + getDescriptor().getMessageType(56); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MakeDirectoryRequest_descriptor, @@ -2699,13 +2835,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_descriptor = - getDescriptor().getMessageType(54); + getDescriptor().getMessageType(57); internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MakeDirectoryResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_descriptor = - getDescriptor().getMessageType(55); + getDescriptor().getMessageType(58); internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryRequest_descriptor, @@ -2713,13 +2849,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryResponse_descriptor = - getDescriptor().getMessageType(56); + getDescriptor().getMessageType(59); internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RemoveDirectoryResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_descriptor = - getDescriptor().getMessageType(57); + getDescriptor().getMessageType(60); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveDirectoryRequest_descriptor, @@ -2727,13 +2863,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "NewPath", }); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_descriptor = - getDescriptor().getMessageType(58); + getDescriptor().getMessageType(61); internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveDirectoryResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_descriptor = - getDescriptor().getMessageType(59); + getDescriptor().getMessageType(62); internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ReadFileRequest_descriptor, @@ -2741,7 +2877,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "Revision", }); internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_descriptor = - getDescriptor().getMessageType(60); + getDescriptor().getMessageType(63); internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ReadFileResponse_descriptor, @@ -2749,7 +2885,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FileContents", }); internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_descriptor = - getDescriptor().getMessageType(61); + getDescriptor().getMessageType(64); internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RemoveFileRequest_descriptor, @@ -2757,13 +2893,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", }); internal_static_google_cloud_dataform_v1beta1_RemoveFileResponse_descriptor = - getDescriptor().getMessageType(62); + getDescriptor().getMessageType(65); internal_static_google_cloud_dataform_v1beta1_RemoveFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RemoveFileResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_descriptor = - getDescriptor().getMessageType(63); + getDescriptor().getMessageType(66); internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveFileRequest_descriptor, @@ -2771,13 +2907,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "NewPath", }); internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_descriptor = - getDescriptor().getMessageType(64); + getDescriptor().getMessageType(67); internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveFileResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_descriptor = - getDescriptor().getMessageType(65); + getDescriptor().getMessageType(68); internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WriteFileRequest_descriptor, @@ -2785,13 +2921,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", "Path", "Contents", }); internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_descriptor = - getDescriptor().getMessageType(66); + getDescriptor().getMessageType(69); internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WriteFileResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_descriptor = - getDescriptor().getMessageType(67); + getDescriptor().getMessageType(70); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesRequest_descriptor, @@ -2799,13 +2935,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Workspace", }); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_descriptor = - getDescriptor().getMessageType(68); + getDescriptor().getMessageType(71); internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_InstallNpmPackagesResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_descriptor = - getDescriptor().getMessageType(69); + getDescriptor().getMessageType(72); internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ReleaseConfig_descriptor, @@ -2829,7 +2965,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompilationResult", "ErrorStatus", "ReleaseTime", "Result", }); internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_descriptor = - getDescriptor().getMessageType(70); + getDescriptor().getMessageType(73); internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsRequest_descriptor, @@ -2837,7 +2973,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_descriptor = - getDescriptor().getMessageType(71); + getDescriptor().getMessageType(74); internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListReleaseConfigsResponse_descriptor, @@ -2845,7 +2981,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReleaseConfigs", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_descriptor = - getDescriptor().getMessageType(72); + getDescriptor().getMessageType(75); internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetReleaseConfigRequest_descriptor, @@ -2853,7 +2989,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_descriptor = - getDescriptor().getMessageType(73); + getDescriptor().getMessageType(76); internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateReleaseConfigRequest_descriptor, @@ -2861,7 +2997,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "ReleaseConfig", "ReleaseConfigId", }); internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_descriptor = - getDescriptor().getMessageType(74); + getDescriptor().getMessageType(77); internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_UpdateReleaseConfigRequest_descriptor, @@ -2869,7 +3005,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "ReleaseConfig", }); internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_descriptor = - getDescriptor().getMessageType(75); + getDescriptor().getMessageType(78); internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteReleaseConfigRequest_descriptor, @@ -2877,7 +3013,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor = - getDescriptor().getMessageType(76); + getDescriptor().getMessageType(79); internal_static_google_cloud_dataform_v1beta1_CompilationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CompilationResult_descriptor, @@ -2905,7 +3041,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Message", "Stack", "Path", "ActionTarget", }); internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_descriptor = - getDescriptor().getMessageType(77); + getDescriptor().getMessageType(80); internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CodeCompilationConfig_descriptor, @@ -2931,7 +3067,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataform_v1beta1_NotebookRuntimeOptions_descriptor = - getDescriptor().getMessageType(78); + getDescriptor().getMessageType(81); internal_static_google_cloud_dataform_v1beta1_NotebookRuntimeOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_NotebookRuntimeOptions_descriptor, @@ -2939,7 +3075,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsOutputBucket", "AiPlatformNotebookRuntimeTemplate", "ExecutionSink", }); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_descriptor = - getDescriptor().getMessageType(79); + getDescriptor().getMessageType(82); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsRequest_descriptor, @@ -2947,7 +3083,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_descriptor = - getDescriptor().getMessageType(80); + getDescriptor().getMessageType(83); internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListCompilationResultsResponse_descriptor, @@ -2955,7 +3091,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompilationResults", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_descriptor = - getDescriptor().getMessageType(81); + getDescriptor().getMessageType(84); internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetCompilationResultRequest_descriptor, @@ -2963,7 +3099,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_descriptor = - getDescriptor().getMessageType(82); + getDescriptor().getMessageType(85); internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateCompilationResultRequest_descriptor, @@ -2971,7 +3107,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CompilationResult", }); internal_static_google_cloud_dataform_v1beta1_Target_descriptor = - getDescriptor().getMessageType(83); + getDescriptor().getMessageType(86); internal_static_google_cloud_dataform_v1beta1_Target_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_Target_descriptor, @@ -2979,7 +3115,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Database", "Schema", "Name", }); internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_descriptor = - getDescriptor().getMessageType(84); + getDescriptor().getMessageType(87); internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_RelationDescriptor_descriptor, @@ -3005,7 +3141,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor = - getDescriptor().getMessageType(85); + getDescriptor().getMessageType(88); internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CompilationResultAction_descriptor, @@ -3165,7 +3301,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Column", }); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_descriptor = - getDescriptor().getMessageType(86); + getDescriptor().getMessageType(89); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsRequest_descriptor, @@ -3173,7 +3309,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_descriptor = - getDescriptor().getMessageType(87); + getDescriptor().getMessageType(90); internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryCompilationResultActionsResponse_descriptor, @@ -3181,7 +3317,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompilationResultActions", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_descriptor = - getDescriptor().getMessageType(88); + getDescriptor().getMessageType(91); internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WorkflowConfig_descriptor, @@ -3206,7 +3342,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkflowInvocation", "ErrorStatus", "ExecutionTime", "Result", }); internal_static_google_cloud_dataform_v1beta1_InvocationConfig_descriptor = - getDescriptor().getMessageType(89); + getDescriptor().getMessageType(92); internal_static_google_cloud_dataform_v1beta1_InvocationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_InvocationConfig_descriptor, @@ -3220,7 +3356,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "QueryPriority", }); internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_descriptor = - getDescriptor().getMessageType(90); + getDescriptor().getMessageType(93); internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsRequest_descriptor, @@ -3228,7 +3364,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_descriptor = - getDescriptor().getMessageType(91); + getDescriptor().getMessageType(94); internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkflowConfigsResponse_descriptor, @@ -3236,7 +3372,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkflowConfigs", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_descriptor = - getDescriptor().getMessageType(92); + getDescriptor().getMessageType(95); internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetWorkflowConfigRequest_descriptor, @@ -3244,7 +3380,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_descriptor = - getDescriptor().getMessageType(93); + getDescriptor().getMessageType(96); internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateWorkflowConfigRequest_descriptor, @@ -3252,7 +3388,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "WorkflowConfig", "WorkflowConfigId", }); internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_descriptor = - getDescriptor().getMessageType(94); + getDescriptor().getMessageType(97); internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_UpdateWorkflowConfigRequest_descriptor, @@ -3260,7 +3396,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "WorkflowConfig", }); internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_descriptor = - getDescriptor().getMessageType(95); + getDescriptor().getMessageType(98); internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowConfigRequest_descriptor, @@ -3268,7 +3404,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor = - getDescriptor().getMessageType(96); + getDescriptor().getMessageType(99); internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WorkflowInvocation_descriptor, @@ -3286,7 +3422,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompilationSource", }); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_descriptor = - getDescriptor().getMessageType(97); + getDescriptor().getMessageType(100); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsRequest_descriptor, @@ -3294,7 +3430,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_descriptor = - getDescriptor().getMessageType(98); + getDescriptor().getMessageType(101); internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_ListWorkflowInvocationsResponse_descriptor, @@ -3302,7 +3438,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkflowInvocations", "NextPageToken", "Unreachable", }); internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageType(99); + getDescriptor().getMessageType(102); internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetWorkflowInvocationRequest_descriptor, @@ -3310,7 +3446,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageType(100); + getDescriptor().getMessageType(103); internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateWorkflowInvocationRequest_descriptor, @@ -3318,7 +3454,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "WorkflowInvocation", }); internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageType(101); + getDescriptor().getMessageType(104); internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteWorkflowInvocationRequest_descriptor, @@ -3326,7 +3462,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_descriptor = - getDescriptor().getMessageType(102); + getDescriptor().getMessageType(105); internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationRequest_descriptor, @@ -3334,13 +3470,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationResponse_descriptor = - getDescriptor().getMessageType(103); + getDescriptor().getMessageType(106); internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CancelWorkflowInvocationResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor = - getDescriptor().getMessageType(104); + getDescriptor().getMessageType(107); internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_WorkflowInvocationAction_descriptor, @@ -3427,7 +3563,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Column", }); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_descriptor = - getDescriptor().getMessageType(105); + getDescriptor().getMessageType(108); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsRequest_descriptor, @@ -3435,7 +3571,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "PageSize", "PageToken", }); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_descriptor = - getDescriptor().getMessageType(106); + getDescriptor().getMessageType(109); internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryWorkflowInvocationActionsResponse_descriptor, @@ -3443,7 +3579,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "WorkflowInvocationActions", "NextPageToken", }); internal_static_google_cloud_dataform_v1beta1_Config_descriptor = - getDescriptor().getMessageType(107); + getDescriptor().getMessageType(110); internal_static_google_cloud_dataform_v1beta1_Config_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_Config_descriptor, @@ -3451,7 +3587,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DefaultKmsKeyName", "InternalMetadata", }); internal_static_google_cloud_dataform_v1beta1_GetConfigRequest_descriptor = - getDescriptor().getMessageType(108); + getDescriptor().getMessageType(111); internal_static_google_cloud_dataform_v1beta1_GetConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetConfigRequest_descriptor, @@ -3459,7 +3595,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_UpdateConfigRequest_descriptor = - getDescriptor().getMessageType(109); + getDescriptor().getMessageType(112); internal_static_google_cloud_dataform_v1beta1_UpdateConfigRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_UpdateConfigRequest_descriptor, @@ -3467,7 +3603,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Config", "UpdateMask", }); internal_static_google_cloud_dataform_v1beta1_Folder_descriptor = - getDescriptor().getMessageType(110); + getDescriptor().getMessageType(113); internal_static_google_cloud_dataform_v1beta1_Folder_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_Folder_descriptor, @@ -3482,7 +3618,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreatorIamPrincipal", }); internal_static_google_cloud_dataform_v1beta1_CreateFolderRequest_descriptor = - getDescriptor().getMessageType(111); + getDescriptor().getMessageType(114); internal_static_google_cloud_dataform_v1beta1_CreateFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateFolderRequest_descriptor, @@ -3490,7 +3626,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Folder", "FolderId", }); internal_static_google_cloud_dataform_v1beta1_MoveFolderRequest_descriptor = - getDescriptor().getMessageType(112); + getDescriptor().getMessageType(115); internal_static_google_cloud_dataform_v1beta1_MoveFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveFolderRequest_descriptor, @@ -3498,7 +3634,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DestinationContainingFolder", }); internal_static_google_cloud_dataform_v1beta1_GetFolderRequest_descriptor = - getDescriptor().getMessageType(113); + getDescriptor().getMessageType(116); internal_static_google_cloud_dataform_v1beta1_GetFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetFolderRequest_descriptor, @@ -3506,7 +3642,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_UpdateFolderRequest_descriptor = - getDescriptor().getMessageType(114); + getDescriptor().getMessageType(117); internal_static_google_cloud_dataform_v1beta1_UpdateFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_UpdateFolderRequest_descriptor, @@ -3514,15 +3650,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Folder", }); internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_descriptor = - getDescriptor().getMessageType(115); + getDescriptor().getMessageType(118); internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteFolderRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeRequest_descriptor = + getDescriptor().getMessageType(119); + internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderTreeRequest_descriptor = + getDescriptor().getMessageType(120); + internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderTreeRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderTreeRequest_descriptor, + new java.lang.String[] { + "Name", "Force", + }); + internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeMetadata_descriptor = + getDescriptor().getMessageType(121); + internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "EndTime", "Target", "State", "PercentComplete", + }); internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_descriptor = - getDescriptor().getMessageType(116); + getDescriptor().getMessageType(122); internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsRequest_descriptor, @@ -3530,7 +3690,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Folder", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_descriptor = - getDescriptor().getMessageType(117); + getDescriptor().getMessageType(123); internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryFolderContentsResponse_descriptor, @@ -3547,7 +3707,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Folder", "Repository", "Entry", }); internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsRequest_descriptor = - getDescriptor().getMessageType(118); + getDescriptor().getMessageType(124); internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsRequest_descriptor, @@ -3555,7 +3715,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Location", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_descriptor = - getDescriptor().getMessageType(119); + getDescriptor().getMessageType(125); internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryUserRootContentsResponse_descriptor, @@ -3572,7 +3732,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Folder", "Repository", "Entry", }); internal_static_google_cloud_dataform_v1beta1_TeamFolder_descriptor = - getDescriptor().getMessageType(120); + getDescriptor().getMessageType(126); internal_static_google_cloud_dataform_v1beta1_TeamFolder_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_TeamFolder_descriptor, @@ -3585,7 +3745,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreatorIamPrincipal", }); internal_static_google_cloud_dataform_v1beta1_CreateTeamFolderRequest_descriptor = - getDescriptor().getMessageType(121); + getDescriptor().getMessageType(127); internal_static_google_cloud_dataform_v1beta1_CreateTeamFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_CreateTeamFolderRequest_descriptor, @@ -3593,7 +3753,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "TeamFolder", "TeamFolderId", }); internal_static_google_cloud_dataform_v1beta1_GetTeamFolderRequest_descriptor = - getDescriptor().getMessageType(122); + getDescriptor().getMessageType(128); internal_static_google_cloud_dataform_v1beta1_GetTeamFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_GetTeamFolderRequest_descriptor, @@ -3601,7 +3761,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_UpdateTeamFolderRequest_descriptor = - getDescriptor().getMessageType(123); + getDescriptor().getMessageType(129); internal_static_google_cloud_dataform_v1beta1_UpdateTeamFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_UpdateTeamFolderRequest_descriptor, @@ -3609,7 +3769,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "TeamFolder", }); internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderRequest_descriptor = - getDescriptor().getMessageType(124); + getDescriptor().getMessageType(130); internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderRequest_descriptor, @@ -3617,7 +3777,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsRequest_descriptor = - getDescriptor().getMessageType(125); + getDescriptor().getMessageType(131); internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsRequest_descriptor, @@ -3625,7 +3785,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TeamFolder", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_descriptor = - getDescriptor().getMessageType(126); + getDescriptor().getMessageType(132); internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_QueryTeamFolderContentsResponse_descriptor, @@ -3642,7 +3802,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Folder", "Repository", "Entry", }); internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersRequest_descriptor = - getDescriptor().getMessageType(127); + getDescriptor().getMessageType(133); internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersRequest_descriptor, @@ -3650,7 +3810,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Location", "PageSize", "PageToken", "OrderBy", "Filter", }); internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_descriptor = - getDescriptor().getMessageType(128); + getDescriptor().getMessageType(134); internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_SearchTeamFoldersResponse_descriptor, @@ -3667,7 +3827,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TeamFolder", "Entry", }); internal_static_google_cloud_dataform_v1beta1_MoveFolderMetadata_descriptor = - getDescriptor().getMessageType(129); + getDescriptor().getMessageType(135); internal_static_google_cloud_dataform_v1beta1_MoveFolderMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveFolderMetadata_descriptor, @@ -3675,13 +3835,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Target", "State", "PercentComplete", }); internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_descriptor = - getDescriptor().getMessageType(130); + getDescriptor().getMessageType(136); internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_dataform_v1beta1_MoveRepositoryMetadata_descriptor, new java.lang.String[] { "CreateTime", "EndTime", "Target", "State", "PercentComplete", }); + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningMetadata_descriptor = + getDescriptor().getMessageType(137); + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Target", + "State", + "PercentComplete", + "ChildResourcesCount", + "RemainingChildResourcesCount", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderTreeMetadata.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderTreeMetadata.java new file mode 100644 index 000000000000..84c542520607 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderTreeMetadata.java @@ -0,0 +1,1700 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
              + * Contains metadata about the progress of the DeleteFolderTree Long-running
              + * operations.
              + * 
              + * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata} + */ +@com.google.protobuf.Generated +public final class DeleteFolderTreeMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata) + DeleteFolderTreeMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteFolderTreeMetadata"); + } + + // Use DeleteFolderTreeMetadata.newBuilder() to construct. + private DeleteFolderTreeMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteFolderTreeMetadata() { + target_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.class, + com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.Builder.class); + } + + /** + * + * + *
              +   * Different states of the DeleteFolderTree operation.
              +   * 
              + * + * Protobuf enum {@code google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
              +     * The state is unspecified.
              +     * 
              + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
              +     * The operation was initialized and recorded by the server, but not yet
              +     * started.
              +     * 
              + * + * INITIALIZED = 1; + */ + INITIALIZED(1), + /** + * + * + *
              +     * The operation is in progress.
              +     * 
              + * + * IN_PROGRESS = 2; + */ + IN_PROGRESS(2), + /** + * + * + *
              +     * The operation has completed successfully.
              +     * 
              + * + * SUCCEEDED = 3; + */ + SUCCEEDED(3), + /** + * + * + *
              +     * The operation has failed.
              +     * 
              + * + * FAILED = 4; + */ + FAILED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
              +     * The state is unspecified.
              +     * 
              + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
              +     * The operation was initialized and recorded by the server, but not yet
              +     * started.
              +     * 
              + * + * INITIALIZED = 1; + */ + public static final int INITIALIZED_VALUE = 1; + + /** + * + * + *
              +     * The operation is in progress.
              +     * 
              + * + * IN_PROGRESS = 2; + */ + public static final int IN_PROGRESS_VALUE = 2; + + /** + * + * + *
              +     * The operation has completed successfully.
              +     * 
              + * + * SUCCEEDED = 3; + */ + public static final int SUCCEEDED_VALUE = 3; + + /** + * + * + *
              +     * The operation has failed.
              +     * 
              + * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return INITIALIZED; + case 2: + return IN_PROGRESS; + case 3: + return SUCCEEDED; + case 4: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State) + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
              +   * Output only. The time the operation was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 1 [(.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 END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
              +   * Output only. The time the operation finished running.
              +   * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +   * Output only. The time the operation finished running.
              +   * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
              +   * Output only. The time the operation finished running.
              +   * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int TARGET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + + /** + * + * + *
              +   * Output only. Resource name of the target of the operation.
              +   * Format: projects/{project}/locations/{location}/folders/{folder} or
              +   * projects/{project}/locations/{location}/teamFolders/{team_folder}
              +   * 
              + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
              +   * Output only. Resource name of the target of the operation.
              +   * Format: projects/{project}/locations/{location}/folders/{folder} or
              +   * projects/{project}/locations/{location}/teamFolders/{team_folder}
              +   * 
              + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
              +   * Output only. The state of the operation.
              +   * 
              + * + * + * .google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
              +   * Output only. The state of the operation.
              +   * 
              + * + * + * .google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State getState() { + com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State result = + com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State.UNRECOGNIZED + : result; + } + + public static final int PERCENT_COMPLETE_FIELD_NUMBER = 5; + private int percentComplete_ = 0; + + /** + * + * + *
              +   * Output only. Percent complete of the operation [0, 100].
              +   * 
              + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, target_); + } + if (state_ + != com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, state_); + } + if (percentComplete_ != 0) { + output.writeInt32(5, percentComplete_); + } + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, target_); + } + if (state_ + != com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (percentComplete_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, percentComplete_); + } + 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.dataform.v1beta1.DeleteFolderTreeMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata other = + (com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (state_ != other.state_) return false; + if (getPercentComplete() != other.getPercentComplete()) 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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + PERCENT_COMPLETE_FIELD_NUMBER; + hash = (53 * hash) + getPercentComplete(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata 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.dataform.v1beta1.DeleteFolderTreeMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata parseFrom( + 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.dataform.v1beta1.DeleteFolderTreeMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Contains metadata about the progress of the DeleteFolderTree Long-running
              +   * operations.
              +   * 
              + * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata) + com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.class, + com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + state_ = 0; + percentComplete_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata build() { + com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata buildPartial() { + com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata result = + new com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.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.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.percentComplete_ = percentComplete_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata) { + return mergeFrom((com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata other) { + if (other == com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.getDefaultInstance()) + return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getPercentComplete() != 0) { + setPercentComplete(other.getPercentComplete()); + } + 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( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + percentComplete_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
              +     * Output only. The time the operation was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +     * Output only. The time the operation was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The time the operation was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The time the operation was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. The time the operation was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The time the operation was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. The time the operation was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
              +     * Output only. The time the operation finished running.
              +     * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +     * Output only. The time the operation finished running.
              +     * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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(); + } + } + + /** + * + * + *
              +     * Output only. The time the operation finished running.
              +     * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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; + } + + /** + * + * + *
              +     * Output only. The time the operation finished running.
              +     * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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; + } + + /** + * + * + *
              +     * Output only. The time the operation finished running.
              +     * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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; + } + + /** + * + * + *
              +     * Output only. The time the operation finished running.
              +     * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The time the operation finished running.
              +     * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. The time the operation finished running.
              +     * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
              +     * Output only. The time the operation finished running.
              +     * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object target_ = ""; + + /** + * + * + *
              +     * Output only. Resource name of the target of the operation.
              +     * Format: projects/{project}/locations/{location}/folders/{folder} or
              +     * projects/{project}/locations/{location}/teamFolders/{team_folder}
              +     * 
              + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
              +     * Output only. Resource name of the target of the operation.
              +     * Format: projects/{project}/locations/{location}/folders/{folder} or
              +     * projects/{project}/locations/{location}/teamFolders/{team_folder}
              +     * 
              + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
              +     * Output only. Resource name of the target of the operation.
              +     * Format: projects/{project}/locations/{location}/folders/{folder} or
              +     * projects/{project}/locations/{location}/teamFolders/{team_folder}
              +     * 
              + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Resource name of the target of the operation.
              +     * Format: projects/{project}/locations/{location}/folders/{folder} or
              +     * projects/{project}/locations/{location}/teamFolders/{team_folder}
              +     * 
              + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Resource name of the target of the operation.
              +     * Format: projects/{project}/locations/{location}/folders/{folder} or
              +     * projects/{project}/locations/{location}/teamFolders/{team_folder}
              +     * 
              + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
              +     * Output only. The state of the operation.
              +     * 
              + * + * + * .google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
              +     * Output only. The state of the operation.
              +     * 
              + * + * + * .google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The state of the operation.
              +     * 
              + * + * + * .google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State getState() { + com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State result = + com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State.forNumber(state_); + return result == null + ? com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
              +     * Output only. The state of the operation.
              +     * 
              + * + * + * .google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The state of the operation.
              +     * 
              + * + * + * .google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private int percentComplete_; + + /** + * + * + *
              +     * Output only. Percent complete of the operation [0, 100].
              +     * 
              + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + /** + * + * + *
              +     * Output only. Percent complete of the operation [0, 100].
              +     * 
              + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The percentComplete to set. + * @return This builder for chaining. + */ + public Builder setPercentComplete(int value) { + + percentComplete_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Percent complete of the operation [0, 100].
              +     * 
              + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPercentComplete() { + bitField0_ = (bitField0_ & ~0x00000010); + percentComplete_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata) + private static final com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata(); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFolderTreeMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.dataform.v1beta1.DeleteFolderTreeMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderTreeMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderTreeMetadataOrBuilder.java new file mode 100644 index 000000000000..e64c2a6f8484 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderTreeMetadataOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface DeleteFolderTreeMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Output only. The time the operation was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
              +   * Output only. The time the operation was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
              +   * Output only. The time the operation was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. The time the operation finished running.
              +   * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
              +   * Output only. The time the operation finished running.
              +   * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
              +   * Output only. The time the operation finished running.
              +   * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. Resource name of the target of the operation.
              +   * Format: projects/{project}/locations/{location}/folders/{folder} or
              +   * projects/{project}/locations/{location}/teamFolders/{team_folder}
              +   * 
              + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The target. + */ + java.lang.String getTarget(); + + /** + * + * + *
              +   * Output only. Resource name of the target of the operation.
              +   * Format: projects/{project}/locations/{location}/folders/{folder} or
              +   * projects/{project}/locations/{location}/teamFolders/{team_folder}
              +   * 
              + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
              +   * Output only. The state of the operation.
              +   * 
              + * + * + * .google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
              +   * Output only. The state of the operation.
              +   * 
              + * + * + * .google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata.State getState(); + + /** + * + * + *
              +   * Output only. Percent complete of the operation [0, 100].
              +   * 
              + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The percentComplete. + */ + int getPercentComplete(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderTreeRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderTreeRequest.java new file mode 100644 index 000000000000..6936f3ab86f4 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderTreeRequest.java @@ -0,0 +1,739 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
              + * `DeleteFolderTree` request message.
              + * 
              + * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteFolderTreeRequest} + */ +@com.google.protobuf.Generated +public final class DeleteFolderTreeRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.DeleteFolderTreeRequest) + DeleteFolderTreeRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteFolderTreeRequest"); + } + + // Use DeleteFolderTreeRequest.newBuilder() to construct. + private DeleteFolderTreeRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteFolderTreeRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest.class, + com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Required. The Folder's name.
              +   * Format: projects/{project}/locations/{location}/folders/{folder}
              +   * 
              + * + * + * 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 Folder's name.
              +   * Format: projects/{project}/locations/{location}/folders/{folder}
              +   * 
              + * + * + * 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 FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
              +   * Optional. If `false` (default): The operation will fail if any
              +   * Repository within the folder hierarchy has associated Release Configs or
              +   * Workflow Configs.
              +   *
              +   * If `true`: The operation will attempt to delete everything, including any
              +   * Release Configs and Workflow Configs linked to Repositories within the
              +   * folder hierarchy. This permanently removes schedules and resources.
              +   * 
              + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest other = + (com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest 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.dataform.v1beta1.DeleteFolderTreeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest parseFrom( + 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.dataform.v1beta1.DeleteFolderTreeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * `DeleteFolderTree` request message.
              +   * 
              + * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteFolderTreeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.DeleteFolderTreeRequest) + com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest.class, + com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteFolderTreeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest build() { + com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest buildPartial() { + com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest result = + new com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest other) { + if (other == com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + force_ = 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_ = ""; + + /** + * + * + *
              +     * Required. The Folder's name.
              +     * Format: projects/{project}/locations/{location}/folders/{folder}
              +     * 
              + * + * + * 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 Folder's name.
              +     * Format: projects/{project}/locations/{location}/folders/{folder}
              +     * 
              + * + * + * 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 Folder's name.
              +     * Format: projects/{project}/locations/{location}/folders/{folder}
              +     * 
              + * + * + * 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 Folder's name.
              +     * Format: projects/{project}/locations/{location}/folders/{folder}
              +     * 
              + * + * + * 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 Folder's name.
              +     * Format: projects/{project}/locations/{location}/folders/{folder}
              +     * 
              + * + * + * 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 force_; + + /** + * + * + *
              +     * Optional. If `false` (default): The operation will fail if any
              +     * Repository within the folder hierarchy has associated Release Configs or
              +     * Workflow Configs.
              +     *
              +     * If `true`: The operation will attempt to delete everything, including any
              +     * Release Configs and Workflow Configs linked to Repositories within the
              +     * folder hierarchy. This permanently removes schedules and resources.
              +     * 
              + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
              +     * Optional. If `false` (default): The operation will fail if any
              +     * Repository within the folder hierarchy has associated Release Configs or
              +     * Workflow Configs.
              +     *
              +     * If `true`: The operation will attempt to delete everything, including any
              +     * Release Configs and Workflow Configs linked to Repositories within the
              +     * folder hierarchy. This permanently removes schedules and resources.
              +     * 
              + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. If `false` (default): The operation will fail if any
              +     * Repository within the folder hierarchy has associated Release Configs or
              +     * Workflow Configs.
              +     *
              +     * If `true`: The operation will attempt to delete everything, including any
              +     * Release Configs and Workflow Configs linked to Repositories within the
              +     * folder hierarchy. This permanently removes schedules and resources.
              +     * 
              + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.DeleteFolderTreeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.DeleteFolderTreeRequest) + private static final com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest(); + } + + public static com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFolderTreeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.dataform.v1beta1.DeleteFolderTreeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderTreeRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderTreeRequestOrBuilder.java new file mode 100644 index 000000000000..af5dddd6404c --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteFolderTreeRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface DeleteFolderTreeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.DeleteFolderTreeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The Folder's name.
              +   * Format: projects/{project}/locations/{location}/folders/{folder}
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Required. The Folder's name.
              +   * Format: projects/{project}/locations/{location}/folders/{folder}
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
              +   * Optional. If `false` (default): The operation will fail if any
              +   * Repository within the folder hierarchy has associated Release Configs or
              +   * Workflow Configs.
              +   *
              +   * If `true`: The operation will attempt to delete everything, including any
              +   * Release Configs and Workflow Configs linked to Repositories within the
              +   * folder hierarchy. This permanently removes schedules and resources.
              +   * 
              + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningMetadata.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningMetadata.java new file mode 100644 index 000000000000..edfb14be89ae --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningMetadata.java @@ -0,0 +1,1901 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
              + * Represents metadata about the progress of the DeleteRepository long-running
              + * operation.
              + * 
              + * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata} + */ +@com.google.protobuf.Generated +public final class DeleteRepositoryLongRunningMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata) + DeleteRepositoryLongRunningMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteRepositoryLongRunningMetadata"); + } + + // Use DeleteRepositoryLongRunningMetadata.newBuilder() to construct. + private DeleteRepositoryLongRunningMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteRepositoryLongRunningMetadata() { + target_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.class, + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.Builder.class); + } + + /** + * + * + *
              +   * Different states of the DeleteRepositoryLongRunning operation.
              +   * 
              + * + * Protobuf enum {@code google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
              +     * The state is unspecified.
              +     * 
              + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
              +     * The operation is running.
              +     * 
              + * + * RUNNING = 1; + */ + RUNNING(1), + /** + * + * + *
              +     * The operation has completed successfully.
              +     * 
              + * + * SUCCEEDED = 2; + */ + SUCCEEDED(2), + /** + * + * + *
              +     * The operation has failed.
              +     * 
              + * + * FAILED = 3; + */ + FAILED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
              +     * The state is unspecified.
              +     * 
              + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
              +     * The operation is running.
              +     * 
              + * + * RUNNING = 1; + */ + public static final int RUNNING_VALUE = 1; + + /** + * + * + *
              +     * The operation has completed successfully.
              +     * 
              + * + * SUCCEEDED = 2; + */ + public static final int SUCCEEDED_VALUE = 2; + + /** + * + * + *
              +     * The operation has failed.
              +     * 
              + * + * FAILED = 3; + */ + public static final int FAILED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return RUNNING; + case 2: + return SUCCEEDED; + case 3: + return FAILED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State) + } + + private int bitField0_; + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
              +   * Output only. The time the operation was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 1 [(.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 END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
              +   * Output only. The time the operation finished running.
              +   * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +   * Output only. The time the operation finished running.
              +   * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
              +   * Output only. The time the operation finished running.
              +   * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int TARGET_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object target_ = ""; + + /** + * + * + *
              +   * Output only. Server-defined resource path for the target of the operation.
              +   * Format: projects/{project}/locations/{location}/repositories/{repository}
              +   * 
              + * + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @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; + } + } + + /** + * + * + *
              +   * Output only. Server-defined resource path for the target of the operation.
              +   * Format: projects/{project}/locations/{location}/repositories/{repository}
              +   * 
              + * + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @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 STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
              +   * Output only. The state of the operation.
              +   * 
              + * + * + * .google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
              +   * Output only. The state of the operation.
              +   * 
              + * + * + * .google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State getState() { + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State result = + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State.forNumber( + state_); + return result == null + ? com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State.UNRECOGNIZED + : result; + } + + public static final int PERCENT_COMPLETE_FIELD_NUMBER = 5; + private int percentComplete_ = 0; + + /** + * + * + *
              +   * Output only. Percent complete of the operation [0, 100].
              +   * 
              + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + public static final int CHILD_RESOURCES_COUNT_FIELD_NUMBER = 6; + private long childResourcesCount_ = 0L; + + /** + * + * + *
              +   * Output only. The total number of child resources (Compilation Results,
              +   * Workflow Executions) that will be deleted.
              +   * 
              + * + * int64 child_resources_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The childResourcesCount. + */ + @java.lang.Override + public long getChildResourcesCount() { + return childResourcesCount_; + } + + public static final int REMAINING_CHILD_RESOURCES_COUNT_FIELD_NUMBER = 7; + private long remainingChildResourcesCount_ = 0L; + + /** + * + * + *
              +   * Output only. The remaining number of child resources to be deleted.
              +   * 
              + * + * int64 remaining_child_resources_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The remainingChildResourcesCount. + */ + @java.lang.Override + public long getRemainingChildResourcesCount() { + return remainingChildResourcesCount_; + } + + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, target_); + } + if (state_ + != com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State + .STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, state_); + } + if (percentComplete_ != 0) { + output.writeInt32(5, percentComplete_); + } + if (childResourcesCount_ != 0L) { + output.writeInt64(6, childResourcesCount_); + } + if (remainingChildResourcesCount_ != 0L) { + output.writeInt64(7, remainingChildResourcesCount_); + } + 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, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(target_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, target_); + } + if (state_ + != com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State + .STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (percentComplete_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, percentComplete_); + } + if (childResourcesCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, childResourcesCount_); + } + if (remainingChildResourcesCount_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(7, remainingChildResourcesCount_); + } + 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.dataform.v1beta1.DeleteRepositoryLongRunningMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata other = + (com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!getTarget().equals(other.getTarget())) return false; + if (state_ != other.state_) return false; + if (getPercentComplete() != other.getPercentComplete()) return false; + if (getChildResourcesCount() != other.getChildResourcesCount()) return false; + if (getRemainingChildResourcesCount() != other.getRemainingChildResourcesCount()) 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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (37 * hash) + TARGET_FIELD_NUMBER; + hash = (53 * hash) + getTarget().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + PERCENT_COMPLETE_FIELD_NUMBER; + hash = (53 * hash) + getPercentComplete(); + hash = (37 * hash) + CHILD_RESOURCES_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getChildResourcesCount()); + hash = (37 * hash) + REMAINING_CHILD_RESOURCES_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRemainingChildResourcesCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata 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.dataform.v1beta1.DeleteRepositoryLongRunningMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata parseFrom( + 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.dataform.v1beta1.DeleteRepositoryLongRunningMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Represents metadata about the progress of the DeleteRepository long-running
              +   * operation.
              +   * 
              + * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata) + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.class, + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetEndTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + target_ = ""; + state_ = 0; + percentComplete_ = 0; + childResourcesCount_ = 0L; + remainingChildResourcesCount_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata build() { + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata buildPartial() { + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata result = + new com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.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.target_ = target_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.percentComplete_ = percentComplete_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.childResourcesCount_ = childResourcesCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.remainingChildResourcesCount_ = remainingChildResourcesCount_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata other) { + if (other + == com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata + .getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.getTarget().isEmpty()) { + target_ = other.target_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.getPercentComplete() != 0) { + setPercentComplete(other.getPercentComplete()); + } + if (other.getChildResourcesCount() != 0L) { + setChildResourcesCount(other.getChildResourcesCount()); + } + if (other.getRemainingChildResourcesCount() != 0L) { + setRemainingChildResourcesCount(other.getRemainingChildResourcesCount()); + } + 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( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + target_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + percentComplete_ = input.readInt32(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + childResourcesCount_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + remainingChildResourcesCount_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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 createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
              +     * Output only. The time the operation was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +     * Output only. The time the operation was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The time the operation was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The time the operation was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. The time the operation was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The time the operation was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. The time the operation was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 1 [(.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 the operation was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
              +     * Output only. The time the operation finished running.
              +     * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +     * Output only. The time the operation finished running.
              +     * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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(); + } + } + + /** + * + * + *
              +     * Output only. The time the operation finished running.
              +     * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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; + } + + /** + * + * + *
              +     * Output only. The time the operation finished running.
              +     * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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; + } + + /** + * + * + *
              +     * Output only. The time the operation finished running.
              +     * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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; + } + + /** + * + * + *
              +     * Output only. The time the operation finished running.
              +     * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The time the operation finished running.
              +     * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. The time the operation finished running.
              +     * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
              +     * Output only. The time the operation finished running.
              +     * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private java.lang.Object target_ = ""; + + /** + * + * + *
              +     * Output only. Server-defined resource path for the target of the operation.
              +     * Format: projects/{project}/locations/{location}/repositories/{repository}
              +     * 
              + * + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @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; + } + } + + /** + * + * + *
              +     * Output only. Server-defined resource path for the target of the operation.
              +     * Format: projects/{project}/locations/{location}/repositories/{repository}
              +     * 
              + * + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @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; + } + } + + /** + * + * + *
              +     * Output only. Server-defined resource path for the target of the operation.
              +     * Format: projects/{project}/locations/{location}/repositories/{repository}
              +     * 
              + * + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Server-defined resource path for the target of the operation.
              +     * Format: projects/{project}/locations/{location}/repositories/{repository}
              +     * 
              + * + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearTarget() { + target_ = getDefaultInstance().getTarget(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Server-defined resource path for the target of the operation.
              +     * Format: projects/{project}/locations/{location}/repositories/{repository}
              +     * 
              + * + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
              +     * Output only. The state of the operation.
              +     * 
              + * + * + * .google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
              +     * Output only. The state of the operation.
              +     * 
              + * + * + * .google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The state of the operation.
              +     * 
              + * + * + * .google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State getState() { + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State result = + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State.forNumber( + state_); + return result == null + ? com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
              +     * Output only. The state of the operation.
              +     * 
              + * + * + * .google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The state of the operation.
              +     * 
              + * + * + * .google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000008); + state_ = 0; + onChanged(); + return this; + } + + private int percentComplete_; + + /** + * + * + *
              +     * Output only. Percent complete of the operation [0, 100].
              +     * 
              + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The percentComplete. + */ + @java.lang.Override + public int getPercentComplete() { + return percentComplete_; + } + + /** + * + * + *
              +     * Output only. Percent complete of the operation [0, 100].
              +     * 
              + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The percentComplete to set. + * @return This builder for chaining. + */ + public Builder setPercentComplete(int value) { + + percentComplete_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Percent complete of the operation [0, 100].
              +     * 
              + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPercentComplete() { + bitField0_ = (bitField0_ & ~0x00000010); + percentComplete_ = 0; + onChanged(); + return this; + } + + private long childResourcesCount_; + + /** + * + * + *
              +     * Output only. The total number of child resources (Compilation Results,
              +     * Workflow Executions) that will be deleted.
              +     * 
              + * + * int64 child_resources_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The childResourcesCount. + */ + @java.lang.Override + public long getChildResourcesCount() { + return childResourcesCount_; + } + + /** + * + * + *
              +     * Output only. The total number of child resources (Compilation Results,
              +     * Workflow Executions) that will be deleted.
              +     * 
              + * + * int64 child_resources_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The childResourcesCount to set. + * @return This builder for chaining. + */ + public Builder setChildResourcesCount(long value) { + + childResourcesCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The total number of child resources (Compilation Results,
              +     * Workflow Executions) that will be deleted.
              +     * 
              + * + * int64 child_resources_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearChildResourcesCount() { + bitField0_ = (bitField0_ & ~0x00000020); + childResourcesCount_ = 0L; + onChanged(); + return this; + } + + private long remainingChildResourcesCount_; + + /** + * + * + *
              +     * Output only. The remaining number of child resources to be deleted.
              +     * 
              + * + * int64 remaining_child_resources_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The remainingChildResourcesCount. + */ + @java.lang.Override + public long getRemainingChildResourcesCount() { + return remainingChildResourcesCount_; + } + + /** + * + * + *
              +     * Output only. The remaining number of child resources to be deleted.
              +     * 
              + * + * int64 remaining_child_resources_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The remainingChildResourcesCount to set. + * @return This builder for chaining. + */ + public Builder setRemainingChildResourcesCount(long value) { + + remainingChildResourcesCount_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The remaining number of child resources to be deleted.
              +     * 
              + * + * int64 remaining_child_resources_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearRemainingChildResourcesCount() { + bitField0_ = (bitField0_ & ~0x00000040); + remainingChildResourcesCount_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata) + private static final com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata(); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRepositoryLongRunningMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.dataform.v1beta1.DeleteRepositoryLongRunningMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningMetadataOrBuilder.java new file mode 100644 index 000000000000..ab0e0a76c19e --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningMetadataOrBuilder.java @@ -0,0 +1,211 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface DeleteRepositoryLongRunningMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Output only. The time the operation was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
              +   * Output only. The time the operation was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
              +   * Output only. The time the operation was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. The time the operation finished running.
              +   * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
              +   * Output only. The time the operation finished running.
              +   * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
              +   * Output only. The time the operation finished running.
              +   * 
              + * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. Server-defined resource path for the target of the operation.
              +   * Format: projects/{project}/locations/{location}/repositories/{repository}
              +   * 
              + * + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The target. + */ + java.lang.String getTarget(); + + /** + * + * + *
              +   * Output only. Server-defined resource path for the target of the operation.
              +   * Format: projects/{project}/locations/{location}/repositories/{repository}
              +   * 
              + * + * + * string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for target. + */ + com.google.protobuf.ByteString getTargetBytes(); + + /** + * + * + *
              +   * Output only. The state of the operation.
              +   * 
              + * + * + * .google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
              +   * Output only. The state of the operation.
              +   * 
              + * + * + * .google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata.State getState(); + + /** + * + * + *
              +   * Output only. Percent complete of the operation [0, 100].
              +   * 
              + * + * int32 percent_complete = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The percentComplete. + */ + int getPercentComplete(); + + /** + * + * + *
              +   * Output only. The total number of child resources (Compilation Results,
              +   * Workflow Executions) that will be deleted.
              +   * 
              + * + * int64 child_resources_count = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The childResourcesCount. + */ + long getChildResourcesCount(); + + /** + * + * + *
              +   * Output only. The remaining number of child resources to be deleted.
              +   * 
              + * + * int64 remaining_child_resources_count = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The remainingChildResourcesCount. + */ + long getRemainingChildResourcesCount(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningRequest.java new file mode 100644 index 000000000000..59cb19f3f485 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningRequest.java @@ -0,0 +1,744 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
              + * `DeleteRepositoryLongRunning` request message.
              + * 
              + * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest} + */ +@com.google.protobuf.Generated +public final class DeleteRepositoryLongRunningRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest) + DeleteRepositoryLongRunningRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteRepositoryLongRunningRequest"); + } + + // Use DeleteRepositoryLongRunningRequest.newBuilder() to construct. + private DeleteRepositoryLongRunningRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteRepositoryLongRunningRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest.class, + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Required. The repository's 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; + } + } + + /** + * + * + *
              +   * Required. The repository's name.
              +   * 
              + * + * + * 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 FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
              +   * Optional. If set to true, child resources of this repository (compilation
              +   * results and workflow invocations) will also be deleted. Otherwise, the
              +   * request will only succeed if the repository has no child resources.
              +   *
              +   * **Note:** *This flag doesn't support deletion of workspaces, release
              +   * configs or workflow configs. If any of such resources exists in the
              +   * repository, the request will fail.*
              +   * 
              + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest other = + (com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest 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.dataform.v1beta1.DeleteRepositoryLongRunningRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest parseFrom( + 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.dataform.v1beta1.DeleteRepositoryLongRunningRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * `DeleteRepositoryLongRunning` request message.
              +   * 
              + * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest) + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest.class, + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest.Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest build() { + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest buildPartial() { + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest result = + new com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + force_ = 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_ = ""; + + /** + * + * + *
              +     * Required. The repository's 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; + } + } + + /** + * + * + *
              +     * Required. The repository's name.
              +     * 
              + * + * + * 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 repository's name.
              +     * 
              + * + * + * 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 repository's name.
              +     * 
              + * + * + * 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 repository's name.
              +     * 
              + * + * + * 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 force_; + + /** + * + * + *
              +     * Optional. If set to true, child resources of this repository (compilation
              +     * results and workflow invocations) will also be deleted. Otherwise, the
              +     * request will only succeed if the repository has no child resources.
              +     *
              +     * **Note:** *This flag doesn't support deletion of workspaces, release
              +     * configs or workflow configs. If any of such resources exists in the
              +     * repository, the request will fail.*
              +     * 
              + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
              +     * Optional. If set to true, child resources of this repository (compilation
              +     * results and workflow invocations) will also be deleted. Otherwise, the
              +     * request will only succeed if the repository has no child resources.
              +     *
              +     * **Note:** *This flag doesn't support deletion of workspaces, release
              +     * configs or workflow configs. If any of such resources exists in the
              +     * repository, the request will fail.*
              +     * 
              + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. If set to true, child resources of this repository (compilation
              +     * results and workflow invocations) will also be deleted. Otherwise, the
              +     * request will only succeed if the repository has no child resources.
              +     *
              +     * **Note:** *This flag doesn't support deletion of workspaces, release
              +     * configs or workflow configs. If any of such resources exists in the
              +     * repository, the request will fail.*
              +     * 
              + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest) + private static final com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest(); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRepositoryLongRunningRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.dataform.v1beta1.DeleteRepositoryLongRunningRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningRequestOrBuilder.java new file mode 100644 index 000000000000..400dcad9b3aa --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningRequestOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface DeleteRepositoryLongRunningRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The repository's name.
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Required. The repository's name.
              +   * 
              + * + * + * 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, child resources of this repository (compilation
              +   * results and workflow invocations) will also be deleted. Otherwise, the
              +   * request will only succeed if the repository has no child resources.
              +   *
              +   * **Note:** *This flag doesn't support deletion of workspaces, release
              +   * configs or workflow configs. If any of such resources exists in the
              +   * repository, the request will fail.*
              +   * 
              + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningResponse.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningResponse.java new file mode 100644 index 000000000000..d6fe48f71e75 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningResponse.java @@ -0,0 +1,408 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
              + * `DeleteRepositoryLongRunning` response message.
              + * 
              + * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse} + */ +@com.google.protobuf.Generated +public final class DeleteRepositoryLongRunningResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse) + DeleteRepositoryLongRunningResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteRepositoryLongRunningResponse"); + } + + // Use DeleteRepositoryLongRunningResponse.newBuilder() to construct. + private DeleteRepositoryLongRunningResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteRepositoryLongRunningResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse.class, + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse other = + (com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse 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.dataform.v1beta1.DeleteRepositoryLongRunningResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse parseFrom( + 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.dataform.v1beta1.DeleteRepositoryLongRunningResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * `DeleteRepositoryLongRunning` response message.
              +   * 
              + * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse) + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse.class, + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse.Builder.class); + } + + // Construct using + // com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteRepositoryLongRunningResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse build() { + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse buildPartial() { + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse result = + new com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse) { + return mergeFrom( + (com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse other) { + if (other + == com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse) + private static final com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse(); + } + + public static com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRepositoryLongRunningResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.dataform.v1beta1.DeleteRepositoryLongRunningResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningResponseOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningResponseOrBuilder.java new file mode 100644 index 000000000000..edcdcd28e598 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteRepositoryLongRunningResponseOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface DeleteRepositoryLongRunningResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteTeamFolderTreeRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteTeamFolderTreeRequest.java new file mode 100644 index 000000000000..46d5681a3324 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteTeamFolderTreeRequest.java @@ -0,0 +1,743 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
              + * `DeleteTeamFolderTree` request message.
              + * 
              + * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest} + */ +@com.google.protobuf.Generated +public final class DeleteTeamFolderTreeRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest) + DeleteTeamFolderTreeRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteTeamFolderTreeRequest"); + } + + // Use DeleteTeamFolderTreeRequest.newBuilder() to construct. + private DeleteTeamFolderTreeRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteTeamFolderTreeRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderTreeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderTreeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest.class, + com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Required. The TeamFolder's name.
              +   * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
              +   * 
              + * + * + * 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 TeamFolder's name.
              +   * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
              +   * 
              + * + * + * 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 FORCE_FIELD_NUMBER = 2; + private boolean force_ = false; + + /** + * + * + *
              +   * Optional. If `false` (default): The operation will fail if any
              +   * Repository within the folder hierarchy has associated Release Configs or
              +   * Workflow Configs.
              +   *
              +   * If `true`: The operation will attempt to delete everything, including any
              +   * Release Configs and Workflow Configs linked to Repositories within the
              +   * folder hierarchy. This permanently removes schedules and resources.
              +   * 
              + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (force_ != false) { + output.writeBool(2, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, force_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest other = + (com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getForce() != other.getForce()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest 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.dataform.v1beta1.DeleteTeamFolderTreeRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest parseFrom( + 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.dataform.v1beta1.DeleteTeamFolderTreeRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * `DeleteTeamFolderTree` request message.
              +   * 
              + * + * Protobuf type {@code google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest) + com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderTreeRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderTreeRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest.class, + com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_DeleteTeamFolderTreeRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest + getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest build() { + com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest buildPartial() { + com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest result = + new com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest) { + return mergeFrom((com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest other) { + if (other + == com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + force_ = 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_ = ""; + + /** + * + * + *
              +     * Required. The TeamFolder's name.
              +     * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
              +     * 
              + * + * + * 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 TeamFolder's name.
              +     * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
              +     * 
              + * + * + * 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 TeamFolder's name.
              +     * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
              +     * 
              + * + * + * 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 TeamFolder's name.
              +     * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
              +     * 
              + * + * + * 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 TeamFolder's name.
              +     * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
              +     * 
              + * + * + * 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 force_; + + /** + * + * + *
              +     * Optional. If `false` (default): The operation will fail if any
              +     * Repository within the folder hierarchy has associated Release Configs or
              +     * Workflow Configs.
              +     *
              +     * If `true`: The operation will attempt to delete everything, including any
              +     * Release Configs and Workflow Configs linked to Repositories within the
              +     * folder hierarchy. This permanently removes schedules and resources.
              +     * 
              + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
              +     * Optional. If `false` (default): The operation will fail if any
              +     * Repository within the folder hierarchy has associated Release Configs or
              +     * Workflow Configs.
              +     *
              +     * If `true`: The operation will attempt to delete everything, including any
              +     * Release Configs and Workflow Configs linked to Repositories within the
              +     * folder hierarchy. This permanently removes schedules and resources.
              +     * 
              + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. If `false` (default): The operation will fail if any
              +     * Repository within the folder hierarchy has associated Release Configs or
              +     * Workflow Configs.
              +     *
              +     * If `true`: The operation will attempt to delete everything, including any
              +     * Release Configs and Workflow Configs linked to Repositories within the
              +     * folder hierarchy. This permanently removes schedules and resources.
              +     * 
              + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000002); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest) + private static final com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest(); + } + + public static com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteTeamFolderTreeRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.dataform.v1beta1.DeleteTeamFolderTreeRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteTeamFolderTreeRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteTeamFolderTreeRequestOrBuilder.java new file mode 100644 index 000000000000..68dc443bb5f0 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DeleteTeamFolderTreeRequestOrBuilder.java @@ -0,0 +1,79 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface DeleteTeamFolderTreeRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The TeamFolder's name.
              +   * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Required. The TeamFolder's name.
              +   * Format: projects/{project}/locations/{location}/teamFolders/{team_folder}
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
              +   * Optional. If `false` (default): The operation will fail if any
              +   * Repository within the folder hierarchy has associated Release Configs or
              +   * Workflow Configs.
              +   *
              +   * If `true`: The operation will attempt to delete everything, including any
              +   * Release Configs and Workflow Configs linked to Repositories within the
              +   * folder hierarchy. This permanently removes schedules and resources.
              +   * 
              + * + * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DirectoryContentsView.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DirectoryContentsView.java new file mode 100644 index 000000000000..858bf8366e56 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DirectoryContentsView.java @@ -0,0 +1,196 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
              + * Represents the level of detail to return for directory contents.
              + * 
              + * + * Protobuf enum {@code google.cloud.dataform.v1beta1.DirectoryContentsView} + */ +@com.google.protobuf.Generated +public enum DirectoryContentsView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
              +   * The default unset value. Defaults to DIRECTORY_CONTENTS_VIEW_BASIC.
              +   * 
              + * + * DIRECTORY_CONTENTS_VIEW_UNSPECIFIED = 0; + */ + DIRECTORY_CONTENTS_VIEW_UNSPECIFIED(0), + /** + * + * + *
              +   * Includes only the file or directory name. This is the default behavior.
              +   * 
              + * + * DIRECTORY_CONTENTS_VIEW_BASIC = 1; + */ + DIRECTORY_CONTENTS_VIEW_BASIC(1), + /** + * + * + *
              +   * Includes all metadata for each file or directory. Currently not supported
              +   * by CMEK-protected workspaces.
              +   * 
              + * + * DIRECTORY_CONTENTS_VIEW_METADATA = 2; + */ + DIRECTORY_CONTENTS_VIEW_METADATA(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DirectoryContentsView"); + } + + /** + * + * + *
              +   * The default unset value. Defaults to DIRECTORY_CONTENTS_VIEW_BASIC.
              +   * 
              + * + * DIRECTORY_CONTENTS_VIEW_UNSPECIFIED = 0; + */ + public static final int DIRECTORY_CONTENTS_VIEW_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
              +   * Includes only the file or directory name. This is the default behavior.
              +   * 
              + * + * DIRECTORY_CONTENTS_VIEW_BASIC = 1; + */ + public static final int DIRECTORY_CONTENTS_VIEW_BASIC_VALUE = 1; + + /** + * + * + *
              +   * Includes all metadata for each file or directory. Currently not supported
              +   * by CMEK-protected workspaces.
              +   * 
              + * + * DIRECTORY_CONTENTS_VIEW_METADATA = 2; + */ + public static final int DIRECTORY_CONTENTS_VIEW_METADATA_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 DirectoryContentsView 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 DirectoryContentsView forNumber(int value) { + switch (value) { + case 0: + return DIRECTORY_CONTENTS_VIEW_UNSPECIFIED; + case 1: + return DIRECTORY_CONTENTS_VIEW_BASIC; + case 2: + return DIRECTORY_CONTENTS_VIEW_METADATA; + 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 DirectoryContentsView findValueByNumber(int number) { + return DirectoryContentsView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto.getDescriptor().getEnumTypes().get(0); + } + + private static final DirectoryContentsView[] VALUES = values(); + + public static DirectoryContentsView 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 DirectoryContentsView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.dataform.v1beta1.DirectoryContentsView) +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DirectoryEntry.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DirectoryEntry.java index 04ae6b9a40ff..913d7d861091 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DirectoryEntry.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DirectoryEntry.java @@ -68,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.dataform.v1beta1.DirectoryEntry.Builder.class); } + private int bitField0_; private int entryCase_ = 0; @SuppressWarnings("serial") @@ -124,7 +125,8 @@ public EntryCase getEntryCase() { * * *
              -   * A file in the directory.
              +   * A file in the directory. The path is returned including the full
              +   * folder structure from the root.
                  * 
              * * string file = 1; @@ -139,7 +141,8 @@ public boolean hasFile() { * * *
              -   * A file in the directory.
              +   * A file in the directory. The path is returned including the full
              +   * folder structure from the root.
                  * 
              * * string file = 1; @@ -167,7 +170,8 @@ public java.lang.String getFile() { * * *
              -   * A file in the directory.
              +   * A file in the directory. The path is returned including the full
              +   * folder structure from the root.
                  * 
              * * string file = 1; @@ -197,7 +201,8 @@ public com.google.protobuf.ByteString getFileBytes() { * * *
              -   * A child directory in the directory.
              +   * A child directory in the directory. The path is returned including
              +   * the full folder structure from the root.
                  * 
              * * string directory = 2; @@ -212,7 +217,8 @@ public boolean hasDirectory() { * * *
              -   * A child directory in the directory.
              +   * A child directory in the directory. The path is returned including
              +   * the full folder structure from the root.
                  * 
              * * string directory = 2; @@ -240,7 +246,8 @@ public java.lang.String getDirectory() { * * *
              -   * A child directory in the directory.
              +   * A child directory in the directory. The path is returned including
              +   * the full folder structure from the root.
                  * 
              * * string directory = 2; @@ -264,6 +271,59 @@ public com.google.protobuf.ByteString getDirectoryBytes() { } } + public static final int METADATA_FIELD_NUMBER = 3; + private com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata metadata_; + + /** + * + * + *
              +   * Entry with metadata.
              +   * 
              + * + * .google.cloud.dataform.v1beta1.FilesystemEntryMetadata metadata = 3; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Entry with metadata.
              +   * 
              + * + * .google.cloud.dataform.v1beta1.FilesystemEntryMetadata metadata = 3; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata.getDefaultInstance() + : metadata_; + } + + /** + * + * + *
              +   * Entry with metadata.
              +   * 
              + * + * .google.cloud.dataform.v1beta1.FilesystemEntryMetadata metadata = 3; + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FilesystemEntryMetadataOrBuilder getMetadataOrBuilder() { + return metadata_ == null + ? com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata.getDefaultInstance() + : metadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -284,6 +344,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (entryCase_ == 2) { com.google.protobuf.GeneratedMessage.writeString(output, 2, entry_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getMetadata()); + } getUnknownFields().writeTo(output); } @@ -299,6 +362,9 @@ public int getSerializedSize() { if (entryCase_ == 2) { size += com.google.protobuf.GeneratedMessage.computeStringSize(2, entry_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -315,6 +381,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.dataform.v1beta1.DirectoryEntry other = (com.google.cloud.dataform.v1beta1.DirectoryEntry) obj; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } if (!getEntryCase().equals(other.getEntryCase())) return false; switch (entryCase_) { case 1: @@ -337,6 +407,10 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } switch (entryCase_) { case 1: hash = (37 * hash) + FILE_FIELD_NUMBER; @@ -479,16 +553,30 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.dataform.v1beta1.DirectoryEntry.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMetadataFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } entryCase_ = 0; entry_ = null; return this; @@ -528,6 +616,12 @@ public com.google.cloud.dataform.v1beta1.DirectoryEntry buildPartial() { private void buildPartial0(com.google.cloud.dataform.v1beta1.DirectoryEntry result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.dataform.v1beta1.DirectoryEntry result) { @@ -548,6 +642,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.dataform.v1beta1.DirectoryEntry other) { if (other == com.google.cloud.dataform.v1beta1.DirectoryEntry.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } switch (other.getEntryCase()) { case FILE: { @@ -608,6 +705,13 @@ public Builder mergeFrom( entry_ = s; break; } // case 18 + case 26: + { + input.readMessage( + internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -645,7 +749,8 @@ public Builder clearEntry() { * * *
              -     * A file in the directory.
              +     * A file in the directory. The path is returned including the full
              +     * folder structure from the root.
                    * 
              * * string file = 1; @@ -661,7 +766,8 @@ public boolean hasFile() { * * *
              -     * A file in the directory.
              +     * A file in the directory. The path is returned including the full
              +     * folder structure from the root.
                    * 
              * * string file = 1; @@ -690,7 +796,8 @@ public java.lang.String getFile() { * * *
              -     * A file in the directory.
              +     * A file in the directory. The path is returned including the full
              +     * folder structure from the root.
                    * 
              * * string file = 1; @@ -719,7 +826,8 @@ public com.google.protobuf.ByteString getFileBytes() { * * *
              -     * A file in the directory.
              +     * A file in the directory. The path is returned including the full
              +     * folder structure from the root.
                    * 
              * * string file = 1; @@ -741,7 +849,8 @@ public Builder setFile(java.lang.String value) { * * *
              -     * A file in the directory.
              +     * A file in the directory. The path is returned including the full
              +     * folder structure from the root.
                    * 
              * * string file = 1; @@ -761,7 +870,8 @@ public Builder clearFile() { * * *
              -     * A file in the directory.
              +     * A file in the directory. The path is returned including the full
              +     * folder structure from the root.
                    * 
              * * string file = 1; @@ -784,7 +894,8 @@ public Builder setFileBytes(com.google.protobuf.ByteString value) { * * *
              -     * A child directory in the directory.
              +     * A child directory in the directory. The path is returned including
              +     * the full folder structure from the root.
                    * 
              * * string directory = 2; @@ -800,7 +911,8 @@ public boolean hasDirectory() { * * *
              -     * A child directory in the directory.
              +     * A child directory in the directory. The path is returned including
              +     * the full folder structure from the root.
                    * 
              * * string directory = 2; @@ -829,7 +941,8 @@ public java.lang.String getDirectory() { * * *
              -     * A child directory in the directory.
              +     * A child directory in the directory. The path is returned including
              +     * the full folder structure from the root.
                    * 
              * * string directory = 2; @@ -858,7 +971,8 @@ public com.google.protobuf.ByteString getDirectoryBytes() { * * *
              -     * A child directory in the directory.
              +     * A child directory in the directory. The path is returned including
              +     * the full folder structure from the root.
                    * 
              * * string directory = 2; @@ -880,7 +994,8 @@ public Builder setDirectory(java.lang.String value) { * * *
              -     * A child directory in the directory.
              +     * A child directory in the directory. The path is returned including
              +     * the full folder structure from the root.
                    * 
              * * string directory = 2; @@ -900,7 +1015,8 @@ public Builder clearDirectory() { * * *
              -     * A child directory in the directory.
              +     * A child directory in the directory. The path is returned including
              +     * the full folder structure from the root.
                    * 
              * * string directory = 2; @@ -919,6 +1035,203 @@ public Builder setDirectoryBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata metadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata, + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata.Builder, + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadataOrBuilder> + metadataBuilder_; + + /** + * + * + *
              +     * Entry with metadata.
              +     * 
              + * + * .google.cloud.dataform.v1beta1.FilesystemEntryMetadata metadata = 3; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +     * Entry with metadata.
              +     * 
              + * + * .google.cloud.dataform.v1beta1.FilesystemEntryMetadata metadata = 3; + * + * @return The metadata. + */ + public com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Entry with metadata.
              +     * 
              + * + * .google.cloud.dataform.v1beta1.FilesystemEntryMetadata metadata = 3; + */ + public Builder setMetadata(com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Entry with metadata.
              +     * 
              + * + * .google.cloud.dataform.v1beta1.FilesystemEntryMetadata metadata = 3; + */ + public Builder setMetadata( + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Entry with metadata.
              +     * 
              + * + * .google.cloud.dataform.v1beta1.FilesystemEntryMetadata metadata = 3; + */ + public Builder mergeMetadata(com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Entry with metadata.
              +     * 
              + * + * .google.cloud.dataform.v1beta1.FilesystemEntryMetadata metadata = 3; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Entry with metadata.
              +     * 
              + * + * .google.cloud.dataform.v1beta1.FilesystemEntryMetadata metadata = 3; + */ + public com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata.Builder getMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Entry with metadata.
              +     * 
              + * + * .google.cloud.dataform.v1beta1.FilesystemEntryMetadata metadata = 3; + */ + public com.google.cloud.dataform.v1beta1.FilesystemEntryMetadataOrBuilder + getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata.getDefaultInstance() + : metadata_; + } + } + + /** + * + * + *
              +     * Entry with metadata.
              +     * 
              + * + * .google.cloud.dataform.v1beta1.FilesystemEntryMetadata metadata = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata, + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata.Builder, + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadataOrBuilder> + internalGetMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata, + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata.Builder, + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.DirectoryEntry) } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DirectoryEntryOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DirectoryEntryOrBuilder.java index 475b5eea0562..5fef570b960f 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DirectoryEntryOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/DirectoryEntryOrBuilder.java @@ -30,7 +30,8 @@ public interface DirectoryEntryOrBuilder * * *
              -   * A file in the directory.
              +   * A file in the directory. The path is returned including the full
              +   * folder structure from the root.
                  * 
              * * string file = 1; @@ -43,7 +44,8 @@ public interface DirectoryEntryOrBuilder * * *
              -   * A file in the directory.
              +   * A file in the directory. The path is returned including the full
              +   * folder structure from the root.
                  * 
              * * string file = 1; @@ -56,7 +58,8 @@ public interface DirectoryEntryOrBuilder * * *
              -   * A file in the directory.
              +   * A file in the directory. The path is returned including the full
              +   * folder structure from the root.
                  * 
              * * string file = 1; @@ -69,7 +72,8 @@ public interface DirectoryEntryOrBuilder * * *
              -   * A child directory in the directory.
              +   * A child directory in the directory. The path is returned including
              +   * the full folder structure from the root.
                  * 
              * * string directory = 2; @@ -82,7 +86,8 @@ public interface DirectoryEntryOrBuilder * * *
              -   * A child directory in the directory.
              +   * A child directory in the directory. The path is returned including
              +   * the full folder structure from the root.
                  * 
              * * string directory = 2; @@ -95,7 +100,8 @@ public interface DirectoryEntryOrBuilder * * *
              -   * A child directory in the directory.
              +   * A child directory in the directory. The path is returned including
              +   * the full folder structure from the root.
                  * 
              * * string directory = 2; @@ -104,5 +110,42 @@ public interface DirectoryEntryOrBuilder */ com.google.protobuf.ByteString getDirectoryBytes(); + /** + * + * + *
              +   * Entry with metadata.
              +   * 
              + * + * .google.cloud.dataform.v1beta1.FilesystemEntryMetadata metadata = 3; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + + /** + * + * + *
              +   * Entry with metadata.
              +   * 
              + * + * .google.cloud.dataform.v1beta1.FilesystemEntryMetadata metadata = 3; + * + * @return The metadata. + */ + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata getMetadata(); + + /** + * + * + *
              +   * Entry with metadata.
              +   * 
              + * + * .google.cloud.dataform.v1beta1.FilesystemEntryMetadata metadata = 3; + */ + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadataOrBuilder getMetadataOrBuilder(); + com.google.cloud.dataform.v1beta1.DirectoryEntry.EntryCase getEntryCase(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FilesystemEntryMetadata.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FilesystemEntryMetadata.java new file mode 100644 index 000000000000..febae0d8a6a0 --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FilesystemEntryMetadata.java @@ -0,0 +1,817 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +/** + * + * + *
              + * Represents metadata for a single entry in a filesystem.
              + * 
              + * + * Protobuf type {@code google.cloud.dataform.v1beta1.FilesystemEntryMetadata} + */ +@com.google.protobuf.Generated +public final class FilesystemEntryMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.dataform.v1beta1.FilesystemEntryMetadata) + FilesystemEntryMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FilesystemEntryMetadata"); + } + + // Use FilesystemEntryMetadata.newBuilder() to construct. + private FilesystemEntryMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FilesystemEntryMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FilesystemEntryMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FilesystemEntryMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata.class, + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata.Builder.class); + } + + private int bitField0_; + public static final int SIZE_BYTES_FIELD_NUMBER = 1; + private long sizeBytes_ = 0L; + + /** + * + * + *
              +   * Output only. Provides the size of the entry in bytes. For directories, this
              +   * will be 0.
              +   * 
              + * + * int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeBytes. + */ + @java.lang.Override + public long getSizeBytes() { + return sizeBytes_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
              +   * Output only. Represents the time of the last modification of the entry.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Output only. Represents the time of the last modification of the entry.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 2 [(.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. Represents the time of the last modification of the entry.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 2 [(.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 (sizeBytes_ != 0L) { + output.writeInt64(1, sizeBytes_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sizeBytes_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, sizeBytes_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata)) { + return super.equals(obj); + } + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata other = + (com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata) obj; + + if (getSizeBytes() != other.getSizeBytes()) 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) + SIZE_BYTES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeBytes()); + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata 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.dataform.v1beta1.FilesystemEntryMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata parseFrom( + 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.dataform.v1beta1.FilesystemEntryMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Represents metadata for a single entry in a filesystem.
              +   * 
              + * + * Protobuf type {@code google.cloud.dataform.v1beta1.FilesystemEntryMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.dataform.v1beta1.FilesystemEntryMetadata) + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FilesystemEntryMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FilesystemEntryMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata.class, + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata.Builder.class); + } + + // Construct using com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + sizeBytes_ = 0L; + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.dataform.v1beta1.DataformProto + .internal_static_google_cloud_dataform_v1beta1_FilesystemEntryMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata getDefaultInstanceForType() { + return com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata build() { + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata buildPartial() { + com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata result = + new com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.sizeBytes_ = sizeBytes_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata) { + return mergeFrom((com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata other) { + if (other == com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata.getDefaultInstance()) + return this; + if (other.getSizeBytes() != 0L) { + setSizeBytes(other.getSizeBytes()); + } + 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 8: + { + sizeBytes_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().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 long sizeBytes_; + + /** + * + * + *
              +     * Output only. Provides the size of the entry in bytes. For directories, this
              +     * will be 0.
              +     * 
              + * + * int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeBytes. + */ + @java.lang.Override + public long getSizeBytes() { + return sizeBytes_; + } + + /** + * + * + *
              +     * Output only. Provides the size of the entry in bytes. For directories, this
              +     * will be 0.
              +     * 
              + * + * int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sizeBytes to set. + * @return This builder for chaining. + */ + public Builder setSizeBytes(long value) { + + sizeBytes_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Provides the size of the entry in bytes. For directories, this
              +     * will be 0.
              +     * 
              + * + * int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSizeBytes() { + bitField0_ = (bitField0_ & ~0x00000001); + sizeBytes_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
              +     * Output only. Represents the time of the last modification of the entry.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +     * Output only. Represents the time of the last modification of the entry.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 2 [(.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. Represents the time of the last modification of the entry.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Represents the time of the last modification of the entry.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 2 [(.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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Represents the time of the last modification of the entry.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. Represents the time of the last modification of the entry.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. Represents the time of the last modification of the entry.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. Represents the time of the last modification of the entry.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 2 [(.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. Represents the time of the last modification of the entry.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.FilesystemEntryMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.dataform.v1beta1.FilesystemEntryMetadata) + private static final com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata(); + } + + public static com.google.cloud.dataform.v1beta1.FilesystemEntryMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FilesystemEntryMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.dataform.v1beta1.FilesystemEntryMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FilesystemEntryMetadataOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FilesystemEntryMetadataOrBuilder.java new file mode 100644 index 000000000000..eea0bcf4921b --- /dev/null +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FilesystemEntryMetadataOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/dataform/v1beta1/dataform.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.dataform.v1beta1; + +@com.google.protobuf.Generated +public interface FilesystemEntryMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.dataform.v1beta1.FilesystemEntryMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Output only. Provides the size of the entry in bytes. For directories, this
              +   * will be 0.
              +   * 
              + * + * int64 size_bytes = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sizeBytes. + */ + long getSizeBytes(); + + /** + * + * + *
              +   * Output only. Represents the time of the last modification of the entry.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
              +   * Output only. Represents the time of the last modification of the entry.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
              +   * Output only. Represents the time of the last modification of the entry.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Folder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Folder.java index d1c85db609ff..7353d30e78c2 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Folder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Folder.java @@ -195,8 +195,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * Optional. The containing Folder resource name. This should take * the format: projects/{project}/locations/{location}/folders/{folder}, * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just - * projects/{project}/locations/{location} if this is a root Folder. This - * field can only be updated through MoveFolder. + * "" if this is a root Folder. This field can only be updated through + * MoveFolder. *
              * * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -223,8 +223,8 @@ public java.lang.String getContainingFolder() { * Optional. The containing Folder resource name. This should take * the format: projects/{project}/locations/{location}/folders/{folder}, * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just - * projects/{project}/locations/{location} if this is a root Folder. This - * field can only be updated through MoveFolder. + * "" if this is a root Folder. This field can only be updated through + * MoveFolder. *
              * * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1309,8 +1309,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * Optional. The containing Folder resource name. This should take * the format: projects/{project}/locations/{location}/folders/{folder}, * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just - * projects/{project}/locations/{location} if this is a root Folder. This - * field can only be updated through MoveFolder. + * "" if this is a root Folder. This field can only be updated through + * MoveFolder. * * * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1336,8 +1336,8 @@ public java.lang.String getContainingFolder() { * Optional. The containing Folder resource name. This should take * the format: projects/{project}/locations/{location}/folders/{folder}, * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just - * projects/{project}/locations/{location} if this is a root Folder. This - * field can only be updated through MoveFolder. + * "" if this is a root Folder. This field can only be updated through + * MoveFolder. * * * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1363,8 +1363,8 @@ public com.google.protobuf.ByteString getContainingFolderBytes() { * Optional. The containing Folder resource name. This should take * the format: projects/{project}/locations/{location}/folders/{folder}, * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just - * projects/{project}/locations/{location} if this is a root Folder. This - * field can only be updated through MoveFolder. + * "" if this is a root Folder. This field can only be updated through + * MoveFolder. * * * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1389,8 +1389,8 @@ public Builder setContainingFolder(java.lang.String value) { * Optional. The containing Folder resource name. This should take * the format: projects/{project}/locations/{location}/folders/{folder}, * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just - * projects/{project}/locations/{location} if this is a root Folder. This - * field can only be updated through MoveFolder. + * "" if this is a root Folder. This field can only be updated through + * MoveFolder. * * * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1411,8 +1411,8 @@ public Builder clearContainingFolder() { * Optional. The containing Folder resource name. This should take * the format: projects/{project}/locations/{location}/folders/{folder}, * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just - * projects/{project}/locations/{location} if this is a root Folder. This - * field can only be updated through MoveFolder. + * "" if this is a root Folder. This field can only be updated through + * MoveFolder. * * * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FolderOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FolderOrBuilder.java index 7036eb90fe3a..b61b671ade98 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FolderOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/FolderOrBuilder.java @@ -85,8 +85,8 @@ public interface FolderOrBuilder * Optional. The containing Folder resource name. This should take * the format: projects/{project}/locations/{location}/folders/{folder}, * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just - * projects/{project}/locations/{location} if this is a root Folder. This - * field can only be updated through MoveFolder. + * "" if this is a root Folder. This field can only be updated through + * MoveFolder. * * * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -102,8 +102,8 @@ public interface FolderOrBuilder * Optional. The containing Folder resource name. This should take * the format: projects/{project}/locations/{location}/folders/{folder}, * projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just - * projects/{project}/locations/{location} if this is a root Folder. This - * field can only be updated through MoveFolder. + * "" if this is a root Folder. This field can only be updated through + * MoveFolder. * * * string containing_folder = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequest.java index a915043c13b9..57338394773c 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequest.java @@ -55,6 +55,7 @@ private QueryDirectoryContentsRequest() { workspace_ = ""; path_ = ""; pageToken_ = ""; + view_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -268,6 +269,55 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } + public static final int VIEW_FIELD_NUMBER = 5; + private int view_ = 0; + + /** + * + * + *
              +   * Optional. Specifies the metadata to return for each directory entry.
              +   * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
              +   * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
              +   * CMEK-protected workspaces.
              +   * 
              + * + * + * .google.cloud.dataform.v1beta1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
              +   * Optional. Specifies the metadata to return for each directory entry.
              +   * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
              +   * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
              +   * CMEK-protected workspaces.
              +   * 
              + * + * + * .google.cloud.dataform.v1beta1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DirectoryContentsView getView() { + com.google.cloud.dataform.v1beta1.DirectoryContentsView result = + com.google.cloud.dataform.v1beta1.DirectoryContentsView.forNumber(view_); + return result == null + ? com.google.cloud.dataform.v1beta1.DirectoryContentsView.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -294,6 +344,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, pageToken_); } + if (view_ + != com.google.cloud.dataform.v1beta1.DirectoryContentsView + .DIRECTORY_CONTENTS_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, view_); + } getUnknownFields().writeTo(output); } @@ -315,6 +371,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pageToken_); } + if (view_ + != com.google.cloud.dataform.v1beta1.DirectoryContentsView + .DIRECTORY_CONTENTS_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, view_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -335,6 +397,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPath().equals(other.getPath())) return false; if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; + if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -354,6 +417,8 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -499,6 +564,7 @@ public Builder clear() { path_ = ""; pageSize_ = 0; pageToken_ = ""; + view_ = 0; return this; } @@ -549,6 +615,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000008) != 0)) { result.pageToken_ = pageToken_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.view_ = view_; + } } @java.lang.Override @@ -584,6 +653,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; onChanged(); } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -634,6 +706,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 40: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1088,6 +1166,128 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { return this; } + private int view_ = 0; + + /** + * + * + *
              +     * Optional. Specifies the metadata to return for each directory entry.
              +     * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
              +     * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
              +     * CMEK-protected workspaces.
              +     * 
              + * + * + * .google.cloud.dataform.v1beta1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
              +     * Optional. Specifies the metadata to return for each directory entry.
              +     * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
              +     * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
              +     * CMEK-protected workspaces.
              +     * 
              + * + * + * .google.cloud.dataform.v1beta1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + view_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Specifies the metadata to return for each directory entry.
              +     * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
              +     * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
              +     * CMEK-protected workspaces.
              +     * 
              + * + * + * .google.cloud.dataform.v1beta1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.dataform.v1beta1.DirectoryContentsView getView() { + com.google.cloud.dataform.v1beta1.DirectoryContentsView result = + com.google.cloud.dataform.v1beta1.DirectoryContentsView.forNumber(view_); + return result == null + ? com.google.cloud.dataform.v1beta1.DirectoryContentsView.UNRECOGNIZED + : result; + } + + /** + * + * + *
              +     * Optional. Specifies the metadata to return for each directory entry.
              +     * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
              +     * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
              +     * CMEK-protected workspaces.
              +     * 
              + * + * + * .google.cloud.dataform.v1beta1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView(com.google.cloud.dataform.v1beta1.DirectoryContentsView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + view_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Specifies the metadata to return for each directory entry.
              +     * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
              +     * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
              +     * CMEK-protected workspaces.
              +     * 
              + * + * + * .google.cloud.dataform.v1beta1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000010); + view_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest) } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequestOrBuilder.java index 5ca43fe9b8ea..39082fb305d5 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryDirectoryContentsRequestOrBuilder.java @@ -134,4 +134,40 @@ public interface QueryDirectoryContentsRequestOrBuilder * @return The bytes for pageToken. */ com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
              +   * Optional. Specifies the metadata to return for each directory entry.
              +   * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
              +   * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
              +   * CMEK-protected workspaces.
              +   * 
              + * + * + * .google.cloud.dataform.v1beta1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + + /** + * + * + *
              +   * Optional. Specifies the metadata to return for each directory entry.
              +   * If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`.
              +   * Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by
              +   * CMEK-protected workspaces.
              +   * 
              + * + * + * .google.cloud.dataform.v1beta1.DirectoryContentsView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.dataform.v1beta1.DirectoryContentsView getView(); } diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsRequest.java index e2c0728faa66..2c9f9b7990c9 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
              -   * Required. Name of the folder whose contents to list.
              +   * Required. Resource name of the Folder to list contents for.
                  * Format: projects/*/locations/*/folders/*
                  * 
              * @@ -109,7 +109,7 @@ public java.lang.String getFolder() { * * *
              -   * Required. Name of the folder whose contents to list.
              +   * Required. Resource name of the Folder to list contents for.
                  * Format: projects/*/locations/*/folders/*
                  * 
              * @@ -230,8 +230,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * order. Supported keywords: display_name (default), create_time, * last_modified_time. * Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -260,8 +261,9 @@ public java.lang.String getOrderBy() { * order. Supported keywords: display_name (default), create_time, * last_modified_time. * Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -294,7 +296,8 @@ public com.google.protobuf.ByteString getOrderByBytes() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -322,7 +325,8 @@ public java.lang.String getFilter() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -756,7 +760,7 @@ public Builder mergeFrom( * * *
              -     * Required. Name of the folder whose contents to list.
              +     * Required. Resource name of the Folder to list contents for.
                    * Format: projects/*/locations/*/folders/*
                    * 
              * @@ -782,7 +786,7 @@ public java.lang.String getFolder() { * * *
              -     * Required. Name of the folder whose contents to list.
              +     * Required. Resource name of the Folder to list contents for.
                    * Format: projects/*/locations/*/folders/*
                    * 
              * @@ -808,7 +812,7 @@ public com.google.protobuf.ByteString getFolderBytes() { * * *
              -     * Required. Name of the folder whose contents to list.
              +     * Required. Resource name of the Folder to list contents for.
                    * Format: projects/*/locations/*/folders/*
                    * 
              * @@ -833,7 +837,7 @@ public Builder setFolder(java.lang.String value) { * * *
              -     * Required. Name of the folder whose contents to list.
              +     * Required. Resource name of the Folder to list contents for.
                    * Format: projects/*/locations/*/folders/*
                    * 
              * @@ -854,7 +858,7 @@ public Builder clearFolder() { * * *
              -     * Required. Name of the folder whose contents to list.
              +     * Required. Resource name of the Folder to list contents for.
                    * Format: projects/*/locations/*/folders/*
                    * 
              * @@ -1085,8 +1089,9 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * order. Supported keywords: display_name (default), create_time, * last_modified_time. * Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1114,8 +1119,9 @@ public java.lang.String getOrderBy() { * order. Supported keywords: display_name (default), create_time, * last_modified_time. * Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1143,8 +1149,9 @@ public com.google.protobuf.ByteString getOrderByBytes() { * order. Supported keywords: display_name (default), create_time, * last_modified_time. * Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1171,8 +1178,9 @@ public Builder setOrderBy(java.lang.String value) { * order. Supported keywords: display_name (default), create_time, * last_modified_time. * Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1195,8 +1203,9 @@ public Builder clearOrderBy() { * order. Supported keywords: display_name (default), create_time, * last_modified_time. * Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1225,7 +1234,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1252,7 +1262,8 @@ public java.lang.String getFilter() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1279,7 +1290,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1305,7 +1317,8 @@ public Builder setFilter(java.lang.String value) { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1327,7 +1340,8 @@ public Builder clearFilter() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsRequestOrBuilder.java index d7fdacbe3297..550a8a25fe41 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryFolderContentsRequestOrBuilder.java @@ -30,7 +30,7 @@ public interface QueryFolderContentsRequestOrBuilder * * *
              -   * Required. Name of the folder whose contents to list.
              +   * Required. Resource name of the Folder to list contents for.
                  * Format: projects/*/locations/*/folders/*
                  * 
              * @@ -46,7 +46,7 @@ public interface QueryFolderContentsRequestOrBuilder * * *
              -   * Required. Name of the folder whose contents to list.
              +   * Required. Resource name of the Folder to list contents for.
                  * Format: projects/*/locations/*/folders/*
                  * 
              * @@ -118,8 +118,9 @@ public interface QueryFolderContentsRequestOrBuilder * order. Supported keywords: display_name (default), create_time, * last_modified_time. * Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -137,8 +138,9 @@ public interface QueryFolderContentsRequestOrBuilder * order. Supported keywords: display_name (default), create_time, * last_modified_time. * Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -155,7 +157,8 @@ public interface QueryFolderContentsRequestOrBuilder * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -172,7 +175,8 @@ public interface QueryFolderContentsRequestOrBuilder * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsRequest.java index b8ba79b6c28d..d1bba65e9b5b 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
              -   * Required. Name of the team_folder whose contents to list.
              +   * Required. Resource name of the TeamFolder to list contents for.
                  * Format: `projects/*/locations/*/teamFolders/*`.
                  * 
              * @@ -109,7 +109,7 @@ public java.lang.String getTeamFolder() { * * *
              -   * Required. Name of the team_folder whose contents to list.
              +   * Required. Resource name of the TeamFolder to list contents for.
                  * Format: `projects/*/locations/*/teamFolders/*`.
                  * 
              * @@ -230,8 +230,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * order. Supported keywords: `display_name` (default), `create_time`, * last_modified_time. * Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -260,8 +261,9 @@ public java.lang.String getOrderBy() { * order. Supported keywords: `display_name` (default), `create_time`, * last_modified_time. * Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -294,7 +296,8 @@ public com.google.protobuf.ByteString getOrderByBytes() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -322,7 +325,8 @@ public java.lang.String getFilter() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -757,7 +761,7 @@ public Builder mergeFrom( * * *
              -     * Required. Name of the team_folder whose contents to list.
              +     * Required. Resource name of the TeamFolder to list contents for.
                    * Format: `projects/*/locations/*/teamFolders/*`.
                    * 
              * @@ -783,7 +787,7 @@ public java.lang.String getTeamFolder() { * * *
              -     * Required. Name of the team_folder whose contents to list.
              +     * Required. Resource name of the TeamFolder to list contents for.
                    * Format: `projects/*/locations/*/teamFolders/*`.
                    * 
              * @@ -809,7 +813,7 @@ public com.google.protobuf.ByteString getTeamFolderBytes() { * * *
              -     * Required. Name of the team_folder whose contents to list.
              +     * Required. Resource name of the TeamFolder to list contents for.
                    * Format: `projects/*/locations/*/teamFolders/*`.
                    * 
              * @@ -834,7 +838,7 @@ public Builder setTeamFolder(java.lang.String value) { * * *
              -     * Required. Name of the team_folder whose contents to list.
              +     * Required. Resource name of the TeamFolder to list contents for.
                    * Format: `projects/*/locations/*/teamFolders/*`.
                    * 
              * @@ -855,7 +859,7 @@ public Builder clearTeamFolder() { * * *
              -     * Required. Name of the team_folder whose contents to list.
              +     * Required. Resource name of the TeamFolder to list contents for.
                    * Format: `projects/*/locations/*/teamFolders/*`.
                    * 
              * @@ -1086,8 +1090,9 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * order. Supported keywords: `display_name` (default), `create_time`, * last_modified_time. * Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1115,8 +1120,9 @@ public java.lang.String getOrderBy() { * order. Supported keywords: `display_name` (default), `create_time`, * last_modified_time. * Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1144,8 +1150,9 @@ public com.google.protobuf.ByteString getOrderByBytes() { * order. Supported keywords: `display_name` (default), `create_time`, * last_modified_time. * Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1172,8 +1179,9 @@ public Builder setOrderBy(java.lang.String value) { * order. Supported keywords: `display_name` (default), `create_time`, * last_modified_time. * Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1196,8 +1204,9 @@ public Builder clearOrderBy() { * order. Supported keywords: `display_name` (default), `create_time`, * last_modified_time. * Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1226,7 +1235,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1253,7 +1263,8 @@ public java.lang.String getFilter() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1280,7 +1291,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1306,7 +1318,8 @@ public Builder setFilter(java.lang.String value) { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1328,7 +1341,8 @@ public Builder clearFilter() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsRequestOrBuilder.java index f6c9d647fee8..3de9259c0ac9 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryTeamFolderContentsRequestOrBuilder.java @@ -30,7 +30,7 @@ public interface QueryTeamFolderContentsRequestOrBuilder * * *
              -   * Required. Name of the team_folder whose contents to list.
              +   * Required. Resource name of the TeamFolder to list contents for.
                  * Format: `projects/*/locations/*/teamFolders/*`.
                  * 
              * @@ -46,7 +46,7 @@ public interface QueryTeamFolderContentsRequestOrBuilder * * *
              -   * Required. Name of the team_folder whose contents to list.
              +   * Required. Resource name of the TeamFolder to list contents for.
                  * Format: `projects/*/locations/*/teamFolders/*`.
                  * 
              * @@ -118,8 +118,9 @@ public interface QueryTeamFolderContentsRequestOrBuilder * order. Supported keywords: `display_name` (default), `create_time`, * last_modified_time. * Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -137,8 +138,9 @@ public interface QueryTeamFolderContentsRequestOrBuilder * order. Supported keywords: `display_name` (default), `create_time`, * last_modified_time. * Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -155,7 +157,8 @@ public interface QueryTeamFolderContentsRequestOrBuilder * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -172,7 +175,8 @@ public interface QueryTeamFolderContentsRequestOrBuilder * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsRequest.java index a17a49ed2666..0c6b6b73804b 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsRequest.java @@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
              -   * Required. Location of the user root folder whose contents to list.
              +   * Required. Location of the user root folder to list contents for.
                  * Format: projects/*/locations/*
                  * 
              * @@ -109,7 +109,7 @@ public java.lang.String getLocation() { * * *
              -   * Required. Location of the user root folder whose contents to list.
              +   * Required. Location of the user root folder to list contents for.
                  * Format: projects/*/locations/*
                  * 
              * @@ -229,8 +229,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * Will order Folders before Repositories, and then by `order_by` in ascending * order. Supported keywords: display_name (default), created_at, * last_modified_at. Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -258,8 +259,9 @@ public java.lang.String getOrderBy() { * Will order Folders before Repositories, and then by `order_by` in ascending * order. Supported keywords: display_name (default), created_at, * last_modified_at. Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -292,7 +294,8 @@ public com.google.protobuf.ByteString getOrderByBytes() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -320,7 +323,8 @@ public java.lang.String getFilter() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -754,7 +758,7 @@ public Builder mergeFrom( * * *
              -     * Required. Location of the user root folder whose contents to list.
              +     * Required. Location of the user root folder to list contents for.
                    * Format: projects/*/locations/*
                    * 
              * @@ -780,7 +784,7 @@ public java.lang.String getLocation() { * * *
              -     * Required. Location of the user root folder whose contents to list.
              +     * Required. Location of the user root folder to list contents for.
                    * Format: projects/*/locations/*
                    * 
              * @@ -806,7 +810,7 @@ public com.google.protobuf.ByteString getLocationBytes() { * * *
              -     * Required. Location of the user root folder whose contents to list.
              +     * Required. Location of the user root folder to list contents for.
                    * Format: projects/*/locations/*
                    * 
              * @@ -831,7 +835,7 @@ public Builder setLocation(java.lang.String value) { * * *
              -     * Required. Location of the user root folder whose contents to list.
              +     * Required. Location of the user root folder to list contents for.
                    * Format: projects/*/locations/*
                    * 
              * @@ -852,7 +856,7 @@ public Builder clearLocation() { * * *
              -     * Required. Location of the user root folder whose contents to list.
              +     * Required. Location of the user root folder to list contents for.
                    * Format: projects/*/locations/*
                    * 
              * @@ -1082,8 +1086,9 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * Will order Folders before Repositories, and then by `order_by` in ascending * order. Supported keywords: display_name (default), created_at, * last_modified_at. Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1110,8 +1115,9 @@ public java.lang.String getOrderBy() { * Will order Folders before Repositories, and then by `order_by` in ascending * order. Supported keywords: display_name (default), created_at, * last_modified_at. Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1138,8 +1144,9 @@ public com.google.protobuf.ByteString getOrderByBytes() { * Will order Folders before Repositories, and then by `order_by` in ascending * order. Supported keywords: display_name (default), created_at, * last_modified_at. Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1165,8 +1172,9 @@ public Builder setOrderBy(java.lang.String value) { * Will order Folders before Repositories, and then by `order_by` in ascending * order. Supported keywords: display_name (default), created_at, * last_modified_at. Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1188,8 +1196,9 @@ public Builder clearOrderBy() { * Will order Folders before Repositories, and then by `order_by` in ascending * order. Supported keywords: display_name (default), created_at, * last_modified_at. Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1218,7 +1227,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1245,7 +1255,8 @@ public java.lang.String getFilter() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1272,7 +1283,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1298,7 +1310,8 @@ public Builder setFilter(java.lang.String value) { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1320,7 +1333,8 @@ public Builder clearFilter() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsRequestOrBuilder.java index 3b0aa44f6880..5b0aab5477c7 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/QueryUserRootContentsRequestOrBuilder.java @@ -30,7 +30,7 @@ public interface QueryUserRootContentsRequestOrBuilder * * *
              -   * Required. Location of the user root folder whose contents to list.
              +   * Required. Location of the user root folder to list contents for.
                  * Format: projects/*/locations/*
                  * 
              * @@ -46,7 +46,7 @@ public interface QueryUserRootContentsRequestOrBuilder * * *
              -   * Required. Location of the user root folder whose contents to list.
              +   * Required. Location of the user root folder to list contents for.
                  * Format: projects/*/locations/*
                  * 
              * @@ -117,8 +117,9 @@ public interface QueryUserRootContentsRequestOrBuilder * Will order Folders before Repositories, and then by `order_by` in ascending * order. Supported keywords: display_name (default), created_at, * last_modified_at. Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -135,8 +136,9 @@ public interface QueryUserRootContentsRequestOrBuilder * Will order Folders before Repositories, and then by `order_by` in ascending * order. Supported keywords: display_name (default), created_at, * last_modified_at. Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -153,7 +155,8 @@ public interface QueryUserRootContentsRequestOrBuilder * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -170,7 +173,8 @@ public interface QueryUserRootContentsRequestOrBuilder * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java index 43f349ad784a..e5efc5196fe9 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/Repository.java @@ -124,10 +124,11 @@ public interface GitRemoteSettingsOrBuilder * * *
              -     * Required. The Git remote's default branch name.
              +     * Optional. The Git remote's default branch name.
              +     * If not set, `main` will be used.
                    * 
              * - * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * string default_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The defaultBranch. */ @@ -137,15 +138,48 @@ public interface GitRemoteSettingsOrBuilder * * *
              -     * Required. The Git remote's default branch name.
              +     * Optional. The Git remote's default branch name.
              +     * If not set, `main` will be used.
                    * 
              * - * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * string default_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for defaultBranch. */ com.google.protobuf.ByteString getDefaultBranchBytes(); + /** + * + * + *
              +     * Output only. The Git remote's effective default branch name.
              +     * This is the default branch name of the Git remote if it is set,
              +     * otherwise it is `main`.
              +     * 
              + * + * string effective_default_branch = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveDefaultBranch. + */ + java.lang.String getEffectiveDefaultBranch(); + + /** + * + * + *
              +     * Output only. The Git remote's effective default branch name.
              +     * This is the default branch name of the Git remote if it is set,
              +     * otherwise it is `main`.
              +     * 
              + * + * string effective_default_branch = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for effectiveDefaultBranch. + */ + com.google.protobuf.ByteString getEffectiveDefaultBranchBytes(); + /** * * @@ -225,6 +259,57 @@ public interface GitRemoteSettingsOrBuilder com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfigOrBuilder getSshAuthenticationConfigOrBuilder(); + /** + * + * + *
              +     * Optional. Resource name for the `GitRepositoryLink` used for machine
              +     * credentials. Must be in the format
              +     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`
              +     * 
              + * + * + * optional string git_repository_link = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the gitRepositoryLink field is set. + */ + boolean hasGitRepositoryLink(); + + /** + * + * + *
              +     * Optional. Resource name for the `GitRepositoryLink` used for machine
              +     * credentials. Must be in the format
              +     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`
              +     * 
              + * + * + * optional string git_repository_link = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The gitRepositoryLink. + */ + java.lang.String getGitRepositoryLink(); + + /** + * + * + *
              +     * Optional. Resource name for the `GitRepositoryLink` used for machine
              +     * credentials. Must be in the format
              +     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`
              +     * 
              + * + * + * optional string git_repository_link = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for gitRepositoryLink. + */ + com.google.protobuf.ByteString getGitRepositoryLinkBytes(); + /** * * @@ -239,7 +324,7 @@ public interface GitRemoteSettingsOrBuilder * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=839 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=921 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Deprecated @@ -259,7 +344,7 @@ public interface GitRemoteSettingsOrBuilder * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=839 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=921 * @return The tokenStatus. */ @java.lang.Deprecated @@ -299,7 +384,9 @@ private GitRemoteSettings(com.google.protobuf.GeneratedMessage.Builder builde private GitRemoteSettings() { url_ = ""; defaultBranch_ = ""; + effectiveDefaultBranch_ = ""; authenticationTokenSecretVersion_ = ""; + gitRepositoryLink_ = ""; tokenStatus_ = 0; } @@ -1513,10 +1600,11 @@ public com.google.protobuf.ByteString getUrlBytes() { * * *
              -     * Required. The Git remote's default branch name.
              +     * Optional. The Git remote's default branch name.
              +     * If not set, `main` will be used.
                    * 
              * - * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * string default_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The defaultBranch. */ @@ -1537,10 +1625,11 @@ public java.lang.String getDefaultBranch() { * * *
              -     * Required. The Git remote's default branch name.
              +     * Optional. The Git remote's default branch name.
              +     * If not set, `main` will be used.
                    * 
              * - * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * string default_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for defaultBranch. */ @@ -1557,6 +1646,65 @@ public com.google.protobuf.ByteString getDefaultBranchBytes() { } } + public static final int EFFECTIVE_DEFAULT_BRANCH_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object effectiveDefaultBranch_ = ""; + + /** + * + * + *
              +     * Output only. The Git remote's effective default branch name.
              +     * This is the default branch name of the Git remote if it is set,
              +     * otherwise it is `main`.
              +     * 
              + * + * string effective_default_branch = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveDefaultBranch. + */ + @java.lang.Override + public java.lang.String getEffectiveDefaultBranch() { + java.lang.Object ref = effectiveDefaultBranch_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + effectiveDefaultBranch_ = s; + return s; + } + } + + /** + * + * + *
              +     * Output only. The Git remote's effective default branch name.
              +     * This is the default branch name of the Git remote if it is set,
              +     * otherwise it is `main`.
              +     * 
              + * + * string effective_default_branch = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for effectiveDefaultBranch. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEffectiveDefaultBranchBytes() { + java.lang.Object ref = effectiveDefaultBranch_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + effectiveDefaultBranch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int AUTHENTICATION_TOKEN_SECRET_VERSION_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -1683,6 +1831,87 @@ public boolean hasSshAuthenticationConfig() { : sshAuthenticationConfig_; } + public static final int GIT_REPOSITORY_LINK_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object gitRepositoryLink_ = ""; + + /** + * + * + *
              +     * Optional. Resource name for the `GitRepositoryLink` used for machine
              +     * credentials. Must be in the format
              +     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`
              +     * 
              + * + * + * optional string git_repository_link = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the gitRepositoryLink field is set. + */ + @java.lang.Override + public boolean hasGitRepositoryLink() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +     * Optional. Resource name for the `GitRepositoryLink` used for machine
              +     * credentials. Must be in the format
              +     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`
              +     * 
              + * + * + * optional string git_repository_link = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The gitRepositoryLink. + */ + @java.lang.Override + public java.lang.String getGitRepositoryLink() { + java.lang.Object ref = gitRepositoryLink_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitRepositoryLink_ = s; + return s; + } + } + + /** + * + * + *
              +     * Optional. Resource name for the `GitRepositoryLink` used for machine
              +     * credentials. Must be in the format
              +     * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`
              +     * 
              + * + * + * optional string git_repository_link = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for gitRepositoryLink. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGitRepositoryLinkBytes() { + java.lang.Object ref = gitRepositoryLink_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gitRepositoryLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int TOKEN_STATUS_FIELD_NUMBER = 4; private int tokenStatus_ = 0; @@ -1700,7 +1929,7 @@ public boolean hasSshAuthenticationConfig() { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=839 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=921 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Override @@ -1723,7 +1952,7 @@ public int getTokenStatusValue() { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=839 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=921 * @return The tokenStatus. */ @java.lang.Override @@ -1771,6 +2000,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(5, getSshAuthenticationConfig()); } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, gitRepositoryLink_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(effectiveDefaultBranch_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, effectiveDefaultBranch_); + } getUnknownFields().writeTo(output); } @@ -1802,6 +2037,12 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, getSshAuthenticationConfig()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, gitRepositoryLink_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(effectiveDefaultBranch_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, effectiveDefaultBranch_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1820,12 +2061,17 @@ public boolean equals(final java.lang.Object obj) { if (!getUrl().equals(other.getUrl())) return false; if (!getDefaultBranch().equals(other.getDefaultBranch())) return false; + if (!getEffectiveDefaultBranch().equals(other.getEffectiveDefaultBranch())) return false; if (!getAuthenticationTokenSecretVersion() .equals(other.getAuthenticationTokenSecretVersion())) return false; if (hasSshAuthenticationConfig() != other.hasSshAuthenticationConfig()) return false; if (hasSshAuthenticationConfig()) { if (!getSshAuthenticationConfig().equals(other.getSshAuthenticationConfig())) return false; } + if (hasGitRepositoryLink() != other.hasGitRepositoryLink()) return false; + if (hasGitRepositoryLink()) { + if (!getGitRepositoryLink().equals(other.getGitRepositoryLink())) return false; + } if (tokenStatus_ != other.tokenStatus_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1842,12 +2088,18 @@ public int hashCode() { hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + DEFAULT_BRANCH_FIELD_NUMBER; hash = (53 * hash) + getDefaultBranch().hashCode(); + hash = (37 * hash) + EFFECTIVE_DEFAULT_BRANCH_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveDefaultBranch().hashCode(); hash = (37 * hash) + AUTHENTICATION_TOKEN_SECRET_VERSION_FIELD_NUMBER; hash = (53 * hash) + getAuthenticationTokenSecretVersion().hashCode(); if (hasSshAuthenticationConfig()) { hash = (37 * hash) + SSH_AUTHENTICATION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getSshAuthenticationConfig().hashCode(); } + if (hasGitRepositoryLink()) { + hash = (37 * hash) + GIT_REPOSITORY_LINK_FIELD_NUMBER; + hash = (53 * hash) + getGitRepositoryLink().hashCode(); + } hash = (37 * hash) + TOKEN_STATUS_FIELD_NUMBER; hash = (53 * hash) + tokenStatus_; hash = (29 * hash) + getUnknownFields().hashCode(); @@ -2002,12 +2254,14 @@ public Builder clear() { bitField0_ = 0; url_ = ""; defaultBranch_ = ""; + effectiveDefaultBranch_ = ""; authenticationTokenSecretVersion_ = ""; sshAuthenticationConfig_ = null; if (sshAuthenticationConfigBuilder_ != null) { sshAuthenticationConfigBuilder_.dispose(); sshAuthenticationConfigBuilder_ = null; } + gitRepositoryLink_ = ""; tokenStatus_ = 0; return this; } @@ -2054,17 +2308,24 @@ private void buildPartial0( result.defaultBranch_ = defaultBranch_; } if (((from_bitField0_ & 0x00000004) != 0)) { + result.effectiveDefaultBranch_ = effectiveDefaultBranch_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.authenticationTokenSecretVersion_ = authenticationTokenSecretVersion_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.sshAuthenticationConfig_ = sshAuthenticationConfigBuilder_ == null ? sshAuthenticationConfig_ : sshAuthenticationConfigBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { + result.gitRepositoryLink_ = gitRepositoryLink_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { result.tokenStatus_ = tokenStatus_; } result.bitField0_ |= to_bitField0_; @@ -2095,14 +2356,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; onChanged(); } + if (!other.getEffectiveDefaultBranch().isEmpty()) { + effectiveDefaultBranch_ = other.effectiveDefaultBranch_; + bitField0_ |= 0x00000004; + onChanged(); + } if (!other.getAuthenticationTokenSecretVersion().isEmpty()) { authenticationTokenSecretVersion_ = other.authenticationTokenSecretVersion_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasSshAuthenticationConfig()) { mergeSshAuthenticationConfig(other.getSshAuthenticationConfig()); } + if (other.hasGitRepositoryLink()) { + gitRepositoryLink_ = other.gitRepositoryLink_; + bitField0_ |= 0x00000020; + onChanged(); + } if (other.tokenStatus_ != 0) { setTokenStatusValue(other.getTokenStatusValue()); } @@ -2147,13 +2418,13 @@ public Builder mergeFrom( case 26: { authenticationTokenSecretVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 32: { tokenStatus_ = input.readEnum(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; break; } // case 32 case 42: @@ -2161,9 +2432,21 @@ public Builder mergeFrom( input.readMessage( internalGetSshAuthenticationConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 42 + case 58: + { + gitRepositoryLink_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 74: + { + effectiveDefaultBranch_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2300,10 +2583,11 @@ public Builder setUrlBytes(com.google.protobuf.ByteString value) { * * *
              -       * Required. The Git remote's default branch name.
              +       * Optional. The Git remote's default branch name.
              +       * If not set, `main` will be used.
                      * 
              * - * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * string default_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The defaultBranch. */ @@ -2323,10 +2607,11 @@ public java.lang.String getDefaultBranch() { * * *
              -       * Required. The Git remote's default branch name.
              +       * Optional. The Git remote's default branch name.
              +       * If not set, `main` will be used.
                      * 
              * - * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * string default_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for defaultBranch. */ @@ -2346,10 +2631,11 @@ public com.google.protobuf.ByteString getDefaultBranchBytes() { * * *
              -       * Required. The Git remote's default branch name.
              +       * Optional. The Git remote's default branch name.
              +       * If not set, `main` will be used.
                      * 
              * - * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * string default_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The defaultBranch to set. * @return This builder for chaining. @@ -2368,10 +2654,11 @@ public Builder setDefaultBranch(java.lang.String value) { * * *
              -       * Required. The Git remote's default branch name.
              +       * Optional. The Git remote's default branch name.
              +       * If not set, `main` will be used.
                      * 
              * - * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * string default_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -2386,10 +2673,11 @@ public Builder clearDefaultBranch() { * * *
              -       * Required. The Git remote's default branch name.
              +       * Optional. The Git remote's default branch name.
              +       * If not set, `main` will be used.
                      * 
              * - * string default_branch = 2 [(.google.api.field_behavior) = REQUIRED]; + * string default_branch = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for defaultBranch to set. * @return This builder for chaining. @@ -2405,6 +2693,132 @@ public Builder setDefaultBranchBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object effectiveDefaultBranch_ = ""; + + /** + * + * + *
              +       * Output only. The Git remote's effective default branch name.
              +       * This is the default branch name of the Git remote if it is set,
              +       * otherwise it is `main`.
              +       * 
              + * + * string effective_default_branch = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The effectiveDefaultBranch. + */ + public java.lang.String getEffectiveDefaultBranch() { + java.lang.Object ref = effectiveDefaultBranch_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + effectiveDefaultBranch_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +       * Output only. The Git remote's effective default branch name.
              +       * This is the default branch name of the Git remote if it is set,
              +       * otherwise it is `main`.
              +       * 
              + * + * string effective_default_branch = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for effectiveDefaultBranch. + */ + public com.google.protobuf.ByteString getEffectiveDefaultBranchBytes() { + java.lang.Object ref = effectiveDefaultBranch_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + effectiveDefaultBranch_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +       * Output only. The Git remote's effective default branch name.
              +       * This is the default branch name of the Git remote if it is set,
              +       * otherwise it is `main`.
              +       * 
              + * + * string effective_default_branch = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The effectiveDefaultBranch to set. + * @return This builder for chaining. + */ + public Builder setEffectiveDefaultBranch(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + effectiveDefaultBranch_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +       * Output only. The Git remote's effective default branch name.
              +       * This is the default branch name of the Git remote if it is set,
              +       * otherwise it is `main`.
              +       * 
              + * + * string effective_default_branch = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearEffectiveDefaultBranch() { + effectiveDefaultBranch_ = getDefaultInstance().getEffectiveDefaultBranch(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
              +       * Output only. The Git remote's effective default branch name.
              +       * This is the default branch name of the Git remote if it is set,
              +       * otherwise it is `main`.
              +       * 
              + * + * string effective_default_branch = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for effectiveDefaultBranch to set. + * @return This builder for chaining. + */ + public Builder setEffectiveDefaultBranchBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + effectiveDefaultBranch_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + private java.lang.Object authenticationTokenSecretVersion_ = ""; /** @@ -2482,7 +2896,7 @@ public Builder setAuthenticationTokenSecretVersion(java.lang.String value) { throw new NullPointerException(); } authenticationTokenSecretVersion_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2505,7 +2919,7 @@ public Builder setAuthenticationTokenSecretVersion(java.lang.String value) { public Builder clearAuthenticationTokenSecretVersion() { authenticationTokenSecretVersion_ = getDefaultInstance().getAuthenticationTokenSecretVersion(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2533,7 +2947,7 @@ public Builder setAuthenticationTokenSecretVersionBytes( } checkByteStringIsUtf8(value); authenticationTokenSecretVersion_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -2563,7 +2977,7 @@ public Builder setAuthenticationTokenSecretVersionBytes( * @return Whether the sshAuthenticationConfig field is set. */ public boolean hasSshAuthenticationConfig() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -2613,7 +3027,7 @@ public Builder setSshAuthenticationConfig( } else { sshAuthenticationConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2638,7 +3052,7 @@ public Builder setSshAuthenticationConfig( } else { sshAuthenticationConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2658,7 +3072,7 @@ public Builder mergeSshAuthenticationConfig( com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig value) { if (sshAuthenticationConfigBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && sshAuthenticationConfig_ != null && sshAuthenticationConfig_ != com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings @@ -2671,7 +3085,7 @@ public Builder mergeSshAuthenticationConfig( sshAuthenticationConfigBuilder_.mergeFrom(value); } if (sshAuthenticationConfig_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } return this; @@ -2689,7 +3103,7 @@ public Builder mergeSshAuthenticationConfig( * */ public Builder clearSshAuthenticationConfig() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); sshAuthenticationConfig_ = null; if (sshAuthenticationConfigBuilder_ != null) { sshAuthenticationConfigBuilder_.dispose(); @@ -2713,7 +3127,7 @@ public Builder clearSshAuthenticationConfig() { public com.google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.SshAuthenticationConfig .Builder getSshAuthenticationConfigBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return internalGetSshAuthenticationConfigFieldBuilder().getBuilder(); } @@ -2776,6 +3190,156 @@ public Builder clearSshAuthenticationConfig() { return sshAuthenticationConfigBuilder_; } + private java.lang.Object gitRepositoryLink_ = ""; + + /** + * + * + *
              +       * Optional. Resource name for the `GitRepositoryLink` used for machine
              +       * credentials. Must be in the format
              +       * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`
              +       * 
              + * + * + * optional string git_repository_link = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the gitRepositoryLink field is set. + */ + public boolean hasGitRepositoryLink() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
              +       * Optional. Resource name for the `GitRepositoryLink` used for machine
              +       * credentials. Must be in the format
              +       * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`
              +       * 
              + * + * + * optional string git_repository_link = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The gitRepositoryLink. + */ + public java.lang.String getGitRepositoryLink() { + java.lang.Object ref = gitRepositoryLink_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gitRepositoryLink_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +       * Optional. Resource name for the `GitRepositoryLink` used for machine
              +       * credentials. Must be in the format
              +       * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`
              +       * 
              + * + * + * optional string git_repository_link = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for gitRepositoryLink. + */ + public com.google.protobuf.ByteString getGitRepositoryLinkBytes() { + java.lang.Object ref = gitRepositoryLink_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gitRepositoryLink_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +       * Optional. Resource name for the `GitRepositoryLink` used for machine
              +       * credentials. Must be in the format
              +       * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`
              +       * 
              + * + * + * optional string git_repository_link = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The gitRepositoryLink to set. + * @return This builder for chaining. + */ + public Builder setGitRepositoryLink(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gitRepositoryLink_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. Resource name for the `GitRepositoryLink` used for machine
              +       * credentials. Must be in the format
              +       * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`
              +       * 
              + * + * + * optional string git_repository_link = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearGitRepositoryLink() { + gitRepositoryLink_ = getDefaultInstance().getGitRepositoryLink(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. Resource name for the `GitRepositoryLink` used for machine
              +       * credentials. Must be in the format
              +       * `projects/*/locations/*/connections/*/gitRepositoryLinks/*`
              +       * 
              + * + * + * optional string git_repository_link = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for gitRepositoryLink to set. + * @return This builder for chaining. + */ + public Builder setGitRepositoryLinkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gitRepositoryLink_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + private int tokenStatus_ = 0; /** @@ -2792,7 +3356,7 @@ public Builder clearSshAuthenticationConfig() { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=839 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=921 * @return The enum numeric value on the wire for tokenStatus. */ @java.lang.Override @@ -2815,14 +3379,14 @@ public int getTokenStatusValue() { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=839 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=921 * @param value The enum numeric value on the wire for tokenStatus to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setTokenStatusValue(int value) { tokenStatus_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2841,7 +3405,7 @@ public Builder setTokenStatusValue(int value) { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=839 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=921 * @return The tokenStatus. */ @java.lang.Override @@ -2871,7 +3435,7 @@ public Builder setTokenStatusValue(int value) { * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=839 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=921 * @param value The tokenStatus to set. * @return This builder for chaining. */ @@ -2881,7 +3445,7 @@ public Builder setTokenStatus( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; tokenStatus_ = value.getNumber(); onChanged(); return this; @@ -2901,12 +3465,12 @@ public Builder setTokenStatus( * * * @deprecated google.cloud.dataform.v1beta1.Repository.GitRemoteSettings.token_status is - * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=839 + * deprecated. See google/cloud/dataform/v1beta1/dataform.proto;l=921 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearTokenStatus() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); tokenStatus_ = 0; onChanged(); return this; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersRequest.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersRequest.java index af4c3b640d23..bffea89ee964 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersRequest.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersRequest.java @@ -139,9 +139,9 @@ public com.google.protobuf.ByteString getLocationBytes() { * * *
              -   * Optional. Maximum number of TeamFolders to return. The server may return
              -   * fewer items than requested. If unspecified, the server will pick an
              -   * appropriate default.
              +   * Optional. Maximum number of `TeamFolders` to return. The server may return
              +   * fewer items than requested. If unspecified, the server will pick a default
              +   * of `page_size` = 50.
                  * 
              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -228,8 +228,9 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * Optional. Field to additionally sort results by. * Supported keywords: `display_name` (default), `create_time`, * `last_modified_time`. Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -256,8 +257,9 @@ public java.lang.String getOrderBy() { * Optional. Field to additionally sort results by. * Supported keywords: `display_name` (default), `create_time`, * `last_modified_time`. Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -290,7 +292,8 @@ public com.google.protobuf.ByteString getOrderByBytes() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -318,7 +321,8 @@ public java.lang.String getFilter() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -875,9 +879,9 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { * * *
              -     * Optional. Maximum number of TeamFolders to return. The server may return
              -     * fewer items than requested. If unspecified, the server will pick an
              -     * appropriate default.
              +     * Optional. Maximum number of `TeamFolders` to return. The server may return
              +     * fewer items than requested. If unspecified, the server will pick a default
              +     * of `page_size` = 50.
                    * 
              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -893,9 +897,9 @@ public int getPageSize() { * * *
              -     * Optional. Maximum number of TeamFolders to return. The server may return
              -     * fewer items than requested. If unspecified, the server will pick an
              -     * appropriate default.
              +     * Optional. Maximum number of `TeamFolders` to return. The server may return
              +     * fewer items than requested. If unspecified, the server will pick a default
              +     * of `page_size` = 50.
                    * 
              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -915,9 +919,9 @@ public Builder setPageSize(int value) { * * *
              -     * Optional. Maximum number of TeamFolders to return. The server may return
              -     * fewer items than requested. If unspecified, the server will pick an
              -     * appropriate default.
              +     * Optional. Maximum number of `TeamFolders` to return. The server may return
              +     * fewer items than requested. If unspecified, the server will pick a default
              +     * of `page_size` = 50.
                    * 
              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1076,8 +1080,9 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * Optional. Field to additionally sort results by. * Supported keywords: `display_name` (default), `create_time`, * `last_modified_time`. Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1103,8 +1108,9 @@ public java.lang.String getOrderBy() { * Optional. Field to additionally sort results by. * Supported keywords: `display_name` (default), `create_time`, * `last_modified_time`. Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1130,8 +1136,9 @@ public com.google.protobuf.ByteString getOrderByBytes() { * Optional. Field to additionally sort results by. * Supported keywords: `display_name` (default), `create_time`, * `last_modified_time`. Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1156,8 +1163,9 @@ public Builder setOrderBy(java.lang.String value) { * Optional. Field to additionally sort results by. * Supported keywords: `display_name` (default), `create_time`, * `last_modified_time`. Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1178,8 +1186,9 @@ public Builder clearOrderBy() { * Optional. Field to additionally sort results by. * Supported keywords: `display_name` (default), `create_time`, * `last_modified_time`. Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -1208,7 +1217,8 @@ public Builder setOrderByBytes(com.google.protobuf.ByteString value) { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1235,7 +1245,8 @@ public java.lang.String getFilter() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1262,7 +1273,8 @@ public com.google.protobuf.ByteString getFilterBytes() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1288,7 +1300,8 @@ public Builder setFilter(java.lang.String value) { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1310,7 +1323,8 @@ public Builder clearFilter() { * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersRequestOrBuilder.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersRequestOrBuilder.java index d753bcc19e05..d4b0f6ac6deb 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersRequestOrBuilder.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/SearchTeamFoldersRequestOrBuilder.java @@ -62,9 +62,9 @@ public interface SearchTeamFoldersRequestOrBuilder * * *
              -   * Optional. Maximum number of TeamFolders to return. The server may return
              -   * fewer items than requested. If unspecified, the server will pick an
              -   * appropriate default.
              +   * Optional. Maximum number of `TeamFolders` to return. The server may return
              +   * fewer items than requested. If unspecified, the server will pick a default
              +   * of `page_size` = 50.
                  * 
              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -116,8 +116,9 @@ public interface SearchTeamFoldersRequestOrBuilder * Optional. Field to additionally sort results by. * Supported keywords: `display_name` (default), `create_time`, * `last_modified_time`. Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -133,8 +134,9 @@ public interface SearchTeamFoldersRequestOrBuilder * Optional. Field to additionally sort results by. * Supported keywords: `display_name` (default), `create_time`, * `last_modified_time`. Examples: - * - `orderBy="display_name"` - * - `orderBy="display_name desc"` + * + * * `orderBy="display_name"` + * * `orderBy="display_name desc"` * * * string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; @@ -151,7 +153,8 @@ public interface SearchTeamFoldersRequestOrBuilder * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -168,7 +171,8 @@ public interface SearchTeamFoldersRequestOrBuilder * only supported on the `display_name` field. * * Example: - * - `filter="display_name="MyFolder""` + * + * * `filter="display_name="MyFolder""` * * * string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationAction.java b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationAction.java index 6fb7123c5bb1..b261f5896e09 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationAction.java +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/java/com/google/cloud/dataform/v1beta1/WorkflowInvocationAction.java @@ -1229,9 +1229,10 @@ public interface NotebookActionOrBuilder * * *
              -     * Output only. The ID of the Vertex job that executed the notebook in
              -     * contents and also the ID used for the outputs created in Google Cloud
              -     * Storage buckets. Only set once the job has started to run.
              +     * Output only. The ID of the Gemini Enterprise Agent Platform job that
              +     * executed the notebook in contents and also the ID used for the outputs
              +     * created in Google Cloud Storage buckets. Only set once the job has
              +     * started to run.
                    * 
              * * string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1244,9 +1245,10 @@ public interface NotebookActionOrBuilder * * *
              -     * Output only. The ID of the Vertex job that executed the notebook in
              -     * contents and also the ID used for the outputs created in Google Cloud
              -     * Storage buckets. Only set once the job has started to run.
              +     * Output only. The ID of the Gemini Enterprise Agent Platform job that
              +     * executed the notebook in contents and also the ID used for the outputs
              +     * created in Google Cloud Storage buckets. Only set once the job has
              +     * started to run.
                    * 
              * * string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1369,9 +1371,10 @@ public com.google.protobuf.ByteString getContentsBytes() { * * *
              -     * Output only. The ID of the Vertex job that executed the notebook in
              -     * contents and also the ID used for the outputs created in Google Cloud
              -     * Storage buckets. Only set once the job has started to run.
              +     * Output only. The ID of the Gemini Enterprise Agent Platform job that
              +     * executed the notebook in contents and also the ID used for the outputs
              +     * created in Google Cloud Storage buckets. Only set once the job has
              +     * started to run.
                    * 
              * * string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1395,9 +1398,10 @@ public java.lang.String getJobId() { * * *
              -     * Output only. The ID of the Vertex job that executed the notebook in
              -     * contents and also the ID used for the outputs created in Google Cloud
              -     * Storage buckets. Only set once the job has started to run.
              +     * Output only. The ID of the Gemini Enterprise Agent Platform job that
              +     * executed the notebook in contents and also the ID used for the outputs
              +     * created in Google Cloud Storage buckets. Only set once the job has
              +     * started to run.
                    * 
              * * string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1887,9 +1891,10 @@ public Builder setContentsBytes(com.google.protobuf.ByteString value) { * * *
              -       * Output only. The ID of the Vertex job that executed the notebook in
              -       * contents and also the ID used for the outputs created in Google Cloud
              -       * Storage buckets. Only set once the job has started to run.
              +       * Output only. The ID of the Gemini Enterprise Agent Platform job that
              +       * executed the notebook in contents and also the ID used for the outputs
              +       * created in Google Cloud Storage buckets. Only set once the job has
              +       * started to run.
                      * 
              * * string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1912,9 +1917,10 @@ public java.lang.String getJobId() { * * *
              -       * Output only. The ID of the Vertex job that executed the notebook in
              -       * contents and also the ID used for the outputs created in Google Cloud
              -       * Storage buckets. Only set once the job has started to run.
              +       * Output only. The ID of the Gemini Enterprise Agent Platform job that
              +       * executed the notebook in contents and also the ID used for the outputs
              +       * created in Google Cloud Storage buckets. Only set once the job has
              +       * started to run.
                      * 
              * * string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1937,9 +1943,10 @@ public com.google.protobuf.ByteString getJobIdBytes() { * * *
              -       * Output only. The ID of the Vertex job that executed the notebook in
              -       * contents and also the ID used for the outputs created in Google Cloud
              -       * Storage buckets. Only set once the job has started to run.
              +       * Output only. The ID of the Gemini Enterprise Agent Platform job that
              +       * executed the notebook in contents and also the ID used for the outputs
              +       * created in Google Cloud Storage buckets. Only set once the job has
              +       * started to run.
                      * 
              * * string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1961,9 +1968,10 @@ public Builder setJobId(java.lang.String value) { * * *
              -       * Output only. The ID of the Vertex job that executed the notebook in
              -       * contents and also the ID used for the outputs created in Google Cloud
              -       * Storage buckets. Only set once the job has started to run.
              +       * Output only. The ID of the Gemini Enterprise Agent Platform job that
              +       * executed the notebook in contents and also the ID used for the outputs
              +       * created in Google Cloud Storage buckets. Only set once the job has
              +       * started to run.
                      * 
              * * string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1981,9 +1989,10 @@ public Builder clearJobId() { * * *
              -       * Output only. The ID of the Vertex job that executed the notebook in
              -       * contents and also the ID used for the outputs created in Google Cloud
              -       * Storage buckets. Only set once the job has started to run.
              +       * Output only. The ID of the Gemini Enterprise Agent Platform job that
              +       * executed the notebook in contents and also the ID used for the outputs
              +       * created in Google Cloud Storage buckets. Only set once the job has
              +       * started to run.
                      * 
              * * string job_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto index 7a0944a2dfc7..14f1b37c7ad3 100644 --- a/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto +++ b/java-dataform/proto-google-cloud-dataform-v1beta1/src/main/proto/google/cloud/dataform/v1beta1/dataform.proto @@ -52,6 +52,14 @@ option (google.api.resource_definition) = { type: "aiplatform.googleapis.com/NotebookRuntimeTemplate" pattern: "projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}" }; +option (google.api.resource_definition) = { + type: "dataplex.googleapis.com/EntryLink" + pattern: "projects/{project}/locations/{location}/entryGroups/{entry_group}/entryLinks/{entry_link}" +}; +option (google.api.resource_definition) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + pattern: "projects/{project}/locations/{location}/connections/{connection}/gitRepositoryLinks/{git_repository_link}" +}; // Dataform is a service to develop, create, document, test, and update curated // tables in BigQuery. @@ -96,6 +104,21 @@ service Dataform { option (google.api.method_signature) = "name"; } + // Deletes a TeamFolder with its contents (Folders, Repositories, Workspaces, + // ReleaseConfigs, and WorkflowConfigs). + rpc DeleteTeamFolderTree(DeleteTeamFolderTreeRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/teamFolders/*}:deleteTree" + body: "*" + }; + option (google.api.method_signature) = "name,force"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteFolderTreeMetadata" + }; + } + // Returns the contents of a given TeamFolder. rpc QueryTeamFolderContents(QueryTeamFolderContentsRequest) returns (QueryTeamFolderContentsResponse) { @@ -148,6 +171,21 @@ service Dataform { option (google.api.method_signature) = "name"; } + // Deletes a Folder with its contents (Folders, Repositories, Workspaces, + // ReleaseConfigs, and WorkflowConfigs). + rpc DeleteFolderTree(DeleteFolderTreeRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/folders/*}:deleteTree" + body: "*" + }; + option (google.api.method_signature) = "name,force"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteFolderTreeMetadata" + }; + } + // Returns the contents of a given Folder. rpc QueryFolderContents(QueryFolderContentsRequest) returns (QueryFolderContentsResponse) { @@ -233,6 +271,20 @@ service Dataform { option (google.api.method_signature) = "name"; } + // Deletes a single repository asynchronously. + rpc DeleteRepositoryLongRunning(DeleteRepositoryLongRunningRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/repositories/*}:deleteLongRunning" + body: "*" + }; + option (google.api.method_signature) = "name,force"; + option (google.longrunning.operation_info) = { + response_type: "DeleteRepositoryLongRunningResponse" + metadata_type: "DeleteRepositoryLongRunningMetadata" + }; + } + // Moves a Repository to a new location. rpc MoveRepository(MoveRepositoryRequest) returns (google.longrunning.Operation) { @@ -758,6 +810,19 @@ service Dataform { } } +// Represents the level of detail to return for directory contents. +enum DirectoryContentsView { + // The default unset value. Defaults to DIRECTORY_CONTENTS_VIEW_BASIC. + DIRECTORY_CONTENTS_VIEW_UNSPECIFIED = 0; + + // Includes only the file or directory name. This is the default behavior. + DIRECTORY_CONTENTS_VIEW_BASIC = 1; + + // Includes all metadata for each file or directory. Currently not supported + // by CMEK-protected workspaces. + DIRECTORY_CONTENTS_VIEW_METADATA = 2; +} + // Describes encryption state of a resource. message DataEncryptionState { // Required. The KMS key version name with which data of a resource is @@ -817,8 +882,15 @@ message Repository { // Required. The Git remote's URL. string url = 1 [(google.api.field_behavior) = REQUIRED]; - // Required. The Git remote's default branch name. - string default_branch = 2 [(google.api.field_behavior) = REQUIRED]; + // Optional. The Git remote's default branch name. + // If not set, `main` will be used. + string default_branch = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The Git remote's effective default branch name. + // This is the default branch name of the Git remote if it is set, + // otherwise it is `main`. + string effective_default_branch = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. The name of the Secret Manager secret version to use as an // authentication token for Git operations. Must be in the format @@ -834,6 +906,16 @@ message Repository { SshAuthenticationConfig ssh_authentication_config = 5 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Resource name for the `GitRepositoryLink` used for machine + // credentials. Must be in the format + // `projects/*/locations/*/connections/*/gitRepositoryLinks/*` + optional string git_repository_link = 7 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "developerconnect.googleapis.com/GitRepositoryLink" + } + ]; + // Output only. Deprecated: The field does not contain any token status // information. Instead use // https://cloud.google.com/dataform/reference/rest/v1beta1/projects.locations.repositories/computeAccessTokenStatus @@ -1079,6 +1161,29 @@ message DeleteRepositoryRequest { bool force = 2 [(google.api.field_behavior) = OPTIONAL]; } +// `DeleteRepositoryLongRunning` response message. +message DeleteRepositoryLongRunningResponse {} + +// `DeleteRepositoryLongRunning` request message. +message DeleteRepositoryLongRunningRequest { + // Required. The repository's name. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/Repository" + } + ]; + + // Optional. If set to true, child resources of this repository (compilation + // results and workflow invocations) will also be deleted. Otherwise, the + // request will only succeed if the repository has no child resources. + // + // **Note:** *This flag doesn't support deletion of workspaces, release + // configs or workflow configs. If any of such resources exists in the + // repository, the request will fail.* + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; +} + // `CommitRepositoryChanges` request message. message CommitRepositoryChangesRequest { // Represents a single file operation to the repository. @@ -1282,6 +1387,9 @@ message ComputeRepositoryAccessTokenStatusResponse { // The token was used successfully to authenticate against the Git remote. VALID = 3; + + // The token is not accessible due to permission issues. + PERMISSION_DENIED = 4; } // Indicates the status of the Git access token. @@ -1641,6 +1749,12 @@ message QueryDirectoryContentsRequest { // `QueryDirectoryContents`, with the exception of `page_size`, must match the // call that provided the page token. string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the metadata to return for each directory entry. + // If unspecified, the default is `DIRECTORY_CONTENTS_VIEW_BASIC`. + // Currently the `DIRECTORY_CONTENTS_VIEW_METADATA` view is not supported by + // CMEK-protected workspaces. + DirectoryContentsView view = 5 [(google.api.field_behavior) = OPTIONAL]; } // `QueryDirectoryContents` response message. @@ -1657,12 +1771,28 @@ message QueryDirectoryContentsResponse { message DirectoryEntry { // The entry's contents. oneof entry { - // A file in the directory. + // A file in the directory. The path is returned including the full + // folder structure from the root. string file = 1; - // A child directory in the directory. + // A child directory in the directory. The path is returned including + // the full folder structure from the root. string directory = 2; } + + // Entry with metadata. + FilesystemEntryMetadata metadata = 3; +} + +// Represents metadata for a single entry in a filesystem. +message FilesystemEntryMetadata { + // Output only. Provides the size of the entry in bytes. For directories, this + // will be 0. + int64 size_bytes = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Represents the time of the last modification of the entry. + google.protobuf.Timestamp update_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Configuration containing file search request parameters. @@ -3118,9 +3248,10 @@ message WorkflowInvocationAction { // Output only. The code contents of a Notebook to be run. string contents = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The ID of the Vertex job that executed the notebook in - // contents and also the ID used for the outputs created in Google Cloud - // Storage buckets. Only set once the job has started to run. + // Output only. The ID of the Gemini Enterprise Agent Platform job that + // executed the notebook in contents and also the ID used for the outputs + // created in Google Cloud Storage buckets. Only set once the job has + // started to run. string job_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } @@ -3371,8 +3502,8 @@ message Folder { // Optional. The containing Folder resource name. This should take // the format: projects/{project}/locations/{location}/folders/{folder}, // projects/{project}/locations/{location}/teamFolders/{teamFolder}, or just - // projects/{project}/locations/{location} if this is a root Folder. This - // field can only be updated through MoveFolder. + // "" if this is a root Folder. This field can only be updated through + // MoveFolder. string containing_folder = 3 [(google.api.field_behavior) = OPTIONAL]; // Output only. The resource name of the TeamFolder that this Folder is @@ -3415,9 +3546,11 @@ message CreateFolderRequest { // Required. The Folder to create. Folder folder = 2 [(google.api.field_behavior) = REQUIRED]; + // Deprecated: This field is not used. The resource name is generated + // automatically. // The ID to use for the Folder, which will become the final component of // the Folder's resource name. - string folder_id = 3; + string folder_id = 3 [deprecated = true]; } // `MoveFolder` request message. @@ -3466,9 +3599,91 @@ message DeleteFolderRequest { ]; } +// `DeleteFolderTree` request message. +message DeleteFolderTreeRequest { + // Required. The Folder's name. + // Format: projects/{project}/locations/{location}/folders/{folder} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "dataform.googleapis.com/Folder" } + ]; + + // Optional. If `false` (default): The operation will fail if any + // Repository within the folder hierarchy has associated Release Configs or + // Workflow Configs. + // + // If `true`: The operation will attempt to delete everything, including any + // Release Configs and Workflow Configs linked to Repositories within the + // folder hierarchy. This permanently removes schedules and resources. + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// `DeleteTeamFolderTree` request message. +message DeleteTeamFolderTreeRequest { + // Required. The TeamFolder's name. + // Format: projects/{project}/locations/{location}/teamFolders/{team_folder} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/TeamFolder" + } + ]; + + // Optional. If `false` (default): The operation will fail if any + // Repository within the folder hierarchy has associated Release Configs or + // Workflow Configs. + // + // If `true`: The operation will attempt to delete everything, including any + // Release Configs and Workflow Configs linked to Repositories within the + // folder hierarchy. This permanently removes schedules and resources. + bool force = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Contains metadata about the progress of the DeleteFolderTree Long-running +// operations. +message DeleteFolderTreeMetadata { + // Different states of the DeleteFolderTree operation. + enum State { + // The state is unspecified. + STATE_UNSPECIFIED = 0; + + // The operation was initialized and recorded by the server, but not yet + // started. + INITIALIZED = 1; + + // The operation is in progress. + IN_PROGRESS = 2; + + // The operation has completed successfully. + SUCCEEDED = 3; + + // The operation has failed. + FAILED = 4; + } + + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Resource name of the target of the operation. + // Format: projects/{project}/locations/{location}/folders/{folder} or + // projects/{project}/locations/{location}/teamFolders/{team_folder} + string target = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the operation. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Percent complete of the operation [0, 100]. + int32 percent_complete = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // `QueryFolderContents` request message. message QueryFolderContentsRequest { - // Required. Name of the folder whose contents to list. + // Required. Resource name of the Folder to list contents for. // Format: projects/*/locations/*/folders/* string folder = 1 [ (google.api.field_behavior) = REQUIRED, @@ -3493,15 +3708,17 @@ message QueryFolderContentsRequest { // order. Supported keywords: display_name (default), create_time, // last_modified_time. // Examples: - // - `orderBy="display_name"` - // - `orderBy="display_name desc"` + // + // * `orderBy="display_name"` + // * `orderBy="display_name desc"` string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Optional filtering for the returned list. Filtering is currently // only supported on the `display_name` field. // // Example: - // - `filter="display_name="MyFolder""` + // + // * `filter="display_name="MyFolder""` string filter = 5 [(google.api.field_behavior) = OPTIONAL]; } @@ -3529,7 +3746,7 @@ message QueryFolderContentsResponse { // `QueryUserRootContents` request message. message QueryUserRootContentsRequest { - // Required. Location of the user root folder whose contents to list. + // Required. Location of the user root folder to list contents for. // Format: projects/*/locations/* string location = 1 [ (google.api.field_behavior) = REQUIRED, @@ -3555,15 +3772,17 @@ message QueryUserRootContentsRequest { // Will order Folders before Repositories, and then by `order_by` in ascending // order. Supported keywords: display_name (default), created_at, // last_modified_at. Examples: - // - `orderBy="display_name"` - // - `orderBy="display_name desc"` + // + // * `orderBy="display_name"` + // * `orderBy="display_name desc"` string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Optional filtering for the returned list. Filtering is currently // only supported on the `display_name` field. // // Example: - // - `filter="display_name="MyFolder""` + // + // * `filter="display_name="MyFolder""` string filter = 5 [(google.api.field_behavior) = OPTIONAL]; } @@ -3639,9 +3858,11 @@ message CreateTeamFolderRequest { // Required. The TeamFolder to create. TeamFolder team_folder = 2 [(google.api.field_behavior) = REQUIRED]; + // Deprecated: This field is not used. The resource name is generated + // automatically. // The ID to use for the TeamFolder, which will become the final component of // the TeamFolder's resource name. - string team_folder_id = 3; + string team_folder_id = 3 [deprecated = true]; } // `GetTeamFolder` request message. @@ -3679,7 +3900,7 @@ message DeleteTeamFolderRequest { // `QueryTeamFolderContents` request message. message QueryTeamFolderContentsRequest { - // Required. Name of the team_folder whose contents to list. + // Required. Resource name of the TeamFolder to list contents for. // Format: `projects/*/locations/*/teamFolders/*`. string team_folder = 1 [ (google.api.field_behavior) = REQUIRED, @@ -3706,15 +3927,17 @@ message QueryTeamFolderContentsRequest { // order. Supported keywords: `display_name` (default), `create_time`, // last_modified_time. // Examples: - // - `orderBy="display_name"` - // - `orderBy="display_name desc"` + // + // * `orderBy="display_name"` + // * `orderBy="display_name desc"` string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Optional filtering for the returned list. Filtering is currently // only supported on the `display_name` field. // // Example: - // - `filter="display_name="MyFolder""` + // + // * `filter="display_name="MyFolder""` string filter = 5 [(google.api.field_behavior) = OPTIONAL]; } @@ -3751,9 +3974,9 @@ message SearchTeamFoldersRequest { } ]; - // Optional. Maximum number of TeamFolders to return. The server may return - // fewer items than requested. If unspecified, the server will pick an - // appropriate default. + // Optional. Maximum number of `TeamFolders` to return. The server may return + // fewer items than requested. If unspecified, the server will pick a default + // of `page_size` = 50. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. Page token received from a previous `SearchTeamFolders` call. @@ -3767,15 +3990,17 @@ message SearchTeamFoldersRequest { // Optional. Field to additionally sort results by. // Supported keywords: `display_name` (default), `create_time`, // `last_modified_time`. Examples: - // - `orderBy="display_name"` - // - `orderBy="display_name desc"` + // + // * `orderBy="display_name"` + // * `orderBy="display_name desc"` string order_by = 4 [(google.api.field_behavior) = OPTIONAL]; // Optional. Optional filtering for the returned list. Filtering is currently // only supported on the `display_name` field. // // Example: - // - `filter="display_name="MyFolder""` + // + // * `filter="display_name="MyFolder""` string filter = 5 [(google.api.field_behavior) = OPTIONAL]; } @@ -3875,3 +4100,53 @@ message MoveRepositoryMetadata { // Percent complete of the move [0, 100]. int32 percent_complete = 5; } + +// Represents metadata about the progress of the DeleteRepository long-running +// operation. +message DeleteRepositoryLongRunningMetadata { + // Different states of the DeleteRepositoryLongRunning operation. + enum State { + // The state is unspecified. + STATE_UNSPECIFIED = 0; + + // The operation is running. + RUNNING = 1; + + // The operation has completed successfully. + SUCCEEDED = 2; + + // The operation has failed. + FAILED = 3; + } + + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Server-defined resource path for the target of the operation. + // Format: projects/{project}/locations/{location}/repositories/{repository} + string target = 3 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "dataform.googleapis.com/Repository" + } + ]; + + // Output only. The state of the operation. + State state = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Percent complete of the operation [0, 100]. + int32 percent_complete = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The total number of child resources (Compilation Results, + // Workflow Executions) that will be deleted. + int64 child_resources_count = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The remaining number of child resources to be deleted. + int64 remaining_child_resources_count = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/AsyncDeleteFolderTree.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/AsyncDeleteFolderTree.java new file mode 100644 index 000000000000..de1e8bddea06 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/AsyncDeleteFolderTree.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteFolderTree_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.longrunning.Operation; + +public class AsyncDeleteFolderTree { + + public static void main(String[] args) throws Exception { + asyncDeleteFolderTree(); + } + + public static void asyncDeleteFolderTree() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteFolderTreeRequest request = + DeleteFolderTreeRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setForce(true) + .build(); + ApiFuture future = dataformClient.deleteFolderTreeCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteFolderTree_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/AsyncDeleteFolderTreeLRO.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/AsyncDeleteFolderTreeLRO.java new file mode 100644 index 000000000000..5d51db19acb6 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/AsyncDeleteFolderTreeLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteFolderTree_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata; +import com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.protobuf.Empty; + +public class AsyncDeleteFolderTreeLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteFolderTreeLRO(); + } + + public static void asyncDeleteFolderTreeLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteFolderTreeRequest request = + DeleteFolderTreeRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setForce(true) + .build(); + OperationFuture future = + dataformClient.deleteFolderTreeOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteFolderTree_LRO_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/SyncDeleteFolderTree.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/SyncDeleteFolderTree.java new file mode 100644 index 000000000000..13c77b8deda7 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/SyncDeleteFolderTree.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteFolderTree_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DeleteFolderTreeRequest; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteFolderTree { + + public static void main(String[] args) throws Exception { + syncDeleteFolderTree(); + } + + public static void syncDeleteFolderTree() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteFolderTreeRequest request = + DeleteFolderTreeRequest.newBuilder() + .setName(FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString()) + .setForce(true) + .build(); + dataformClient.deleteFolderTreeAsync(request).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteFolderTree_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/SyncDeleteFolderTreeFoldernameBoolean.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/SyncDeleteFolderTreeFoldernameBoolean.java new file mode 100644 index 000000000000..0946cbab68e2 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/SyncDeleteFolderTreeFoldernameBoolean.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteFolderTree_FoldernameBoolean_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteFolderTreeFoldernameBoolean { + + public static void main(String[] args) throws Exception { + syncDeleteFolderTreeFoldernameBoolean(); + } + + public static void syncDeleteFolderTreeFoldernameBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + FolderName name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]"); + boolean force = true; + dataformClient.deleteFolderTreeAsync(name, force).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteFolderTree_FoldernameBoolean_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/SyncDeleteFolderTreeStringBoolean.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/SyncDeleteFolderTreeStringBoolean.java new file mode 100644 index 000000000000..71b41a8beaf5 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deletefoldertree/SyncDeleteFolderTreeStringBoolean.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteFolderTree_StringBoolean_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.FolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteFolderTreeStringBoolean { + + public static void main(String[] args) throws Exception { + syncDeleteFolderTreeStringBoolean(); + } + + public static void syncDeleteFolderTreeStringBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = FolderName.of("[PROJECT]", "[LOCATION]", "[FOLDER]").toString(); + boolean force = true; + dataformClient.deleteFolderTreeAsync(name, force).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteFolderTree_StringBoolean_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/AsyncDeleteRepositoryLongRunning.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/AsyncDeleteRepositoryLongRunning.java new file mode 100644 index 000000000000..904c2cfbc3be --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/AsyncDeleteRepositoryLongRunning.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteRepositoryLongRunning_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest; +import com.google.cloud.dataform.v1beta1.RepositoryName; +import com.google.longrunning.Operation; + +public class AsyncDeleteRepositoryLongRunning { + + public static void main(String[] args) throws Exception { + asyncDeleteRepositoryLongRunning(); + } + + public static void asyncDeleteRepositoryLongRunning() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteRepositoryLongRunningRequest request = + DeleteRepositoryLongRunningRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setForce(true) + .build(); + ApiFuture future = + dataformClient.deleteRepositoryLongRunningCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteRepositoryLongRunning_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/AsyncDeleteRepositoryLongRunningLRO.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/AsyncDeleteRepositoryLongRunningLRO.java new file mode 100644 index 000000000000..b229afe4e829 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/AsyncDeleteRepositoryLongRunningLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteRepositoryLongRunning_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningMetadata; +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest; +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class AsyncDeleteRepositoryLongRunningLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteRepositoryLongRunningLRO(); + } + + public static void asyncDeleteRepositoryLongRunningLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteRepositoryLongRunningRequest request = + DeleteRepositoryLongRunningRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setForce(true) + .build(); + OperationFuture + future = + dataformClient.deleteRepositoryLongRunningOperationCallable().futureCall(request); + // Do something. + DeleteRepositoryLongRunningResponse response = future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteRepositoryLongRunning_LRO_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/SyncDeleteRepositoryLongRunning.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/SyncDeleteRepositoryLongRunning.java new file mode 100644 index 000000000000..64eeedc71473 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/SyncDeleteRepositoryLongRunning.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteRepositoryLongRunning_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningRequest; +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class SyncDeleteRepositoryLongRunning { + + public static void main(String[] args) throws Exception { + syncDeleteRepositoryLongRunning(); + } + + public static void syncDeleteRepositoryLongRunning() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteRepositoryLongRunningRequest request = + DeleteRepositoryLongRunningRequest.newBuilder() + .setName(RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString()) + .setForce(true) + .build(); + DeleteRepositoryLongRunningResponse response = + dataformClient.deleteRepositoryLongRunningAsync(request).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteRepositoryLongRunning_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/SyncDeleteRepositoryLongRunningRepositorynameBoolean.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/SyncDeleteRepositoryLongRunningRepositorynameBoolean.java new file mode 100644 index 000000000000..f4c274e77b1f --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/SyncDeleteRepositoryLongRunningRepositorynameBoolean.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteRepositoryLongRunning_RepositorynameBoolean_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class SyncDeleteRepositoryLongRunningRepositorynameBoolean { + + public static void main(String[] args) throws Exception { + syncDeleteRepositoryLongRunningRepositorynameBoolean(); + } + + public static void syncDeleteRepositoryLongRunningRepositorynameBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + RepositoryName name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]"); + boolean force = true; + DeleteRepositoryLongRunningResponse response = + dataformClient.deleteRepositoryLongRunningAsync(name, force).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteRepositoryLongRunning_RepositorynameBoolean_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/SyncDeleteRepositoryLongRunningStringBoolean.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/SyncDeleteRepositoryLongRunningStringBoolean.java new file mode 100644 index 000000000000..ba0d7c788848 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleterepositorylongrunning/SyncDeleteRepositoryLongRunningStringBoolean.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteRepositoryLongRunning_StringBoolean_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DeleteRepositoryLongRunningResponse; +import com.google.cloud.dataform.v1beta1.RepositoryName; + +public class SyncDeleteRepositoryLongRunningStringBoolean { + + public static void main(String[] args) throws Exception { + syncDeleteRepositoryLongRunningStringBoolean(); + } + + public static void syncDeleteRepositoryLongRunningStringBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = RepositoryName.of("[PROJECT]", "[LOCATION]", "[REPOSITORY]").toString(); + boolean force = true; + DeleteRepositoryLongRunningResponse response = + dataformClient.deleteRepositoryLongRunningAsync(name, force).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteRepositoryLongRunning_StringBoolean_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTree.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTree.java new file mode 100644 index 000000000000..154b3b677f58 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTree.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteTeamFolderTree_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest; +import com.google.cloud.dataform.v1beta1.TeamFolderName; +import com.google.longrunning.Operation; + +public class AsyncDeleteTeamFolderTree { + + public static void main(String[] args) throws Exception { + asyncDeleteTeamFolderTree(); + } + + public static void asyncDeleteTeamFolderTree() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteTeamFolderTreeRequest request = + DeleteTeamFolderTreeRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setForce(true) + .build(); + ApiFuture future = + dataformClient.deleteTeamFolderTreeCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteTeamFolderTree_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTreeLRO.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTreeLRO.java new file mode 100644 index 000000000000..3606e8b2539c --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/AsyncDeleteTeamFolderTreeLRO.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteTeamFolderTree_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DeleteFolderTreeMetadata; +import com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest; +import com.google.cloud.dataform.v1beta1.TeamFolderName; +import com.google.protobuf.Empty; + +public class AsyncDeleteTeamFolderTreeLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteTeamFolderTreeLRO(); + } + + public static void asyncDeleteTeamFolderTreeLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteTeamFolderTreeRequest request = + DeleteTeamFolderTreeRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setForce(true) + .build(); + OperationFuture future = + dataformClient.deleteTeamFolderTreeOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteTeamFolderTree_LRO_async] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTree.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTree.java new file mode 100644 index 000000000000..b7e655ab38da --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTree.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteTeamFolderTree_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DeleteTeamFolderTreeRequest; +import com.google.cloud.dataform.v1beta1.TeamFolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteTeamFolderTree { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolderTree(); + } + + public static void syncDeleteTeamFolderTree() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + DeleteTeamFolderTreeRequest request = + DeleteTeamFolderTreeRequest.newBuilder() + .setName(TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString()) + .setForce(true) + .build(); + dataformClient.deleteTeamFolderTreeAsync(request).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteTeamFolderTree_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeStringBoolean.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeStringBoolean.java new file mode 100644 index 000000000000..3b81743ae2e8 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeStringBoolean.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteTeamFolderTree_StringBoolean_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.TeamFolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteTeamFolderTreeStringBoolean { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolderTreeStringBoolean(); + } + + public static void syncDeleteTeamFolderTreeStringBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + String name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]").toString(); + boolean force = true; + dataformClient.deleteTeamFolderTreeAsync(name, force).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteTeamFolderTree_StringBoolean_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeTeamfoldernameBoolean.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeTeamfoldernameBoolean.java new file mode 100644 index 000000000000..df2edd80ae59 --- /dev/null +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/deleteteamfoldertree/SyncDeleteTeamFolderTreeTeamfoldernameBoolean.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.dataform.v1beta1.samples; + +// [START dataform_v1beta1_generated_Dataform_DeleteTeamFolderTree_TeamfoldernameBoolean_sync] +import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.TeamFolderName; +import com.google.protobuf.Empty; + +public class SyncDeleteTeamFolderTreeTeamfoldernameBoolean { + + public static void main(String[] args) throws Exception { + syncDeleteTeamFolderTreeTeamfoldernameBoolean(); + } + + public static void syncDeleteTeamFolderTreeTeamfoldernameBoolean() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataformClient dataformClient = DataformClient.create()) { + TeamFolderName name = TeamFolderName.of("[PROJECT]", "[LOCATION]", "[TEAM_FOLDER]"); + boolean force = true; + dataformClient.deleteTeamFolderTreeAsync(name, force).get(); + } + } +} +// [END dataform_v1beta1_generated_Dataform_DeleteTeamFolderTree_TeamfoldernameBoolean_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/AsyncQueryDirectoryContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/AsyncQueryDirectoryContents.java index 094621bc08dd..25b3db934f0a 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/AsyncQueryDirectoryContents.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/AsyncQueryDirectoryContents.java @@ -19,6 +19,7 @@ // [START dataform_v1beta1_generated_Dataform_QueryDirectoryContents_async] import com.google.api.core.ApiFuture; import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DirectoryContentsView; import com.google.cloud.dataform.v1beta1.DirectoryEntry; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1beta1.WorkspaceName; @@ -44,6 +45,7 @@ public static void asyncQueryDirectoryContents() throws Exception { .setPath("path3433509") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setView(DirectoryContentsView.forNumber(0)) .build(); ApiFuture future = dataformClient.queryDirectoryContentsPagedCallable().futureCall(request); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/AsyncQueryDirectoryContentsPaged.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/AsyncQueryDirectoryContentsPaged.java index ef78fc4f140a..ae8c114c2d76 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/AsyncQueryDirectoryContentsPaged.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/AsyncQueryDirectoryContentsPaged.java @@ -18,6 +18,7 @@ // [START dataform_v1beta1_generated_Dataform_QueryDirectoryContents_Paged_async] import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DirectoryContentsView; import com.google.cloud.dataform.v1beta1.DirectoryEntry; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsResponse; @@ -45,6 +46,7 @@ public static void asyncQueryDirectoryContentsPaged() throws Exception { .setPath("path3433509") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setView(DirectoryContentsView.forNumber(0)) .build(); while (true) { QueryDirectoryContentsResponse response = diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/SyncQueryDirectoryContents.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/SyncQueryDirectoryContents.java index bcfd32d017cf..810d3dd10835 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/SyncQueryDirectoryContents.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataform/querydirectorycontents/SyncQueryDirectoryContents.java @@ -18,6 +18,7 @@ // [START dataform_v1beta1_generated_Dataform_QueryDirectoryContents_sync] import com.google.cloud.dataform.v1beta1.DataformClient; +import com.google.cloud.dataform.v1beta1.DirectoryContentsView; import com.google.cloud.dataform.v1beta1.DirectoryEntry; import com.google.cloud.dataform.v1beta1.QueryDirectoryContentsRequest; import com.google.cloud.dataform.v1beta1.WorkspaceName; @@ -43,6 +44,7 @@ public static void syncQueryDirectoryContents() throws Exception { .setPath("path3433509") .setPageSize(883849137) .setPageToken("pageToken873572522") + .setView(DirectoryContentsView.forNumber(0)) .build(); for (DirectoryEntry element : dataformClient.queryDirectoryContents(request).iterateAll()) { // doThingsWith(element); diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataformsettings/movefolder/SyncMoveFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataformsettings/deleteteamfoldertree/SyncDeleteTeamFolderTree.java similarity index 87% rename from java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataformsettings/movefolder/SyncMoveFolder.java rename to java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataformsettings/deleteteamfoldertree/SyncDeleteTeamFolderTree.java index 48fc2c832e81..fc62aaa4e2fb 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataformsettings/movefolder/SyncMoveFolder.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/dataformsettings/deleteteamfoldertree/SyncDeleteTeamFolderTree.java @@ -16,20 +16,20 @@ package com.google.cloud.dataform.v1beta1.samples; -// [START dataform_v1beta1_generated_DataformSettings_MoveFolder_sync] +// [START dataform_v1beta1_generated_DataformSettings_DeleteTeamFolderTree_sync] import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.retrying.TimedRetryAlgorithm; import com.google.cloud.dataform.v1beta1.DataformSettings; import java.time.Duration; -public class SyncMoveFolder { +public class SyncDeleteTeamFolderTree { public static void main(String[] args) throws Exception { - syncMoveFolder(); + syncDeleteTeamFolderTree(); } - public static void syncMoveFolder() throws Exception { + public static void syncDeleteTeamFolderTree() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -50,4 +50,4 @@ public static void syncMoveFolder() throws Exception { .build(); } } -// [END dataform_v1beta1_generated_DataformSettings_MoveFolder_sync] +// [END dataform_v1beta1_generated_DataformSettings_DeleteTeamFolderTree_sync] diff --git a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/stub/dataformstubsettings/movefolder/SyncMoveFolder.java b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/stub/dataformstubsettings/deleteteamfoldertree/SyncDeleteTeamFolderTree.java similarity index 86% rename from java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/stub/dataformstubsettings/movefolder/SyncMoveFolder.java rename to java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/stub/dataformstubsettings/deleteteamfoldertree/SyncDeleteTeamFolderTree.java index 36f4ca9eed6d..8b37015f4c09 100644 --- a/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/stub/dataformstubsettings/movefolder/SyncMoveFolder.java +++ b/java-dataform/samples/snippets/generated/com/google/cloud/dataform/v1beta1/stub/dataformstubsettings/deleteteamfoldertree/SyncDeleteTeamFolderTree.java @@ -16,20 +16,20 @@ package com.google.cloud.dataform.v1beta1.stub.samples; -// [START dataform_v1beta1_generated_DataformStubSettings_MoveFolder_sync] +// [START dataform_v1beta1_generated_DataformStubSettings_DeleteTeamFolderTree_sync] import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.retrying.TimedRetryAlgorithm; import com.google.cloud.dataform.v1beta1.stub.DataformStubSettings; import java.time.Duration; -public class SyncMoveFolder { +public class SyncDeleteTeamFolderTree { public static void main(String[] args) throws Exception { - syncMoveFolder(); + syncDeleteTeamFolderTree(); } - public static void syncMoveFolder() throws Exception { + public static void syncDeleteTeamFolderTree() throws Exception { // This snippet has been automatically generated and should be regarded as a code template only. // It will require modifications to work: // - It may require correct/in-range values for request initialization. @@ -50,4 +50,4 @@ public static void syncMoveFolder() throws Exception { .build(); } } -// [END dataform_v1beta1_generated_DataformStubSettings_MoveFolder_sync] +// [END dataform_v1beta1_generated_DataformStubSettings_DeleteTeamFolderTree_sync] 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 2e8eb5c39beb..ec8a584932c2 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 @@ -656,6 +656,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.networkmanagement.v1.CloudRunJobInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.networkmanagement.v1.CloudRunJobInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo", "queryAllDeclaredConstructors": true, diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CloudRunJobInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CloudRunJobInfo.java new file mode 100644 index 000000000000..96e67b9ba0bc --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CloudRunJobInfo.java @@ -0,0 +1,975 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networkmanagement/v1/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkmanagement.v1; + +/** + * + * + *
              + * For display only. Metadata associated with a Cloud Run job.
              + * 
              + * + * Protobuf type {@code google.cloud.networkmanagement.v1.CloudRunJobInfo} + */ +@com.google.protobuf.Generated +public final class CloudRunJobInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.networkmanagement.v1.CloudRunJobInfo) + CloudRunJobInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CloudRunJobInfo"); + } + + // Use CloudRunJobInfo.newBuilder() to construct. + private CloudRunJobInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CloudRunJobInfo() { + displayName_ = ""; + uri_ = ""; + location_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_CloudRunJobInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_CloudRunJobInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.CloudRunJobInfo.class, + com.google.cloud.networkmanagement.v1.CloudRunJobInfo.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
              +   * Name of a Cloud Run job.
              +   * 
              + * + * 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 Run job.
              +   * 
              + * + * 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 Run job.
              +   * 
              + * + * 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 Run job.
              +   * 
              + * + * 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 LOCATION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
              +   * Location in which this job is deployed.
              +   * 
              + * + * string location = 3; + * + * @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; + } + } + + /** + * + * + *
              +   * Location in which this job is deployed.
              +   * 
              + * + * string location = 3; + * + * @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.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, location_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, 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.CloudRunJobInfo)) { + return super.equals(obj); + } + com.google.cloud.networkmanagement.v1.CloudRunJobInfo other = + (com.google.cloud.networkmanagement.v1.CloudRunJobInfo) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getUri().equals(other.getUri())) 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) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.networkmanagement.v1.CloudRunJobInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.CloudRunJobInfo 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.CloudRunJobInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.CloudRunJobInfo parseFrom( + 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.CloudRunJobInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.networkmanagement.v1.CloudRunJobInfo 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.CloudRunJobInfo parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.CloudRunJobInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.CloudRunJobInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.CloudRunJobInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.networkmanagement.v1.CloudRunJobInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.networkmanagement.v1.CloudRunJobInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.networkmanagement.v1.CloudRunJobInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * For display only. Metadata associated with a Cloud Run job.
              +   * 
              + * + * Protobuf type {@code google.cloud.networkmanagement.v1.CloudRunJobInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.networkmanagement.v1.CloudRunJobInfo) + com.google.cloud.networkmanagement.v1.CloudRunJobInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_CloudRunJobInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.networkmanagement.v1.TraceProto + .internal_static_google_cloud_networkmanagement_v1_CloudRunJobInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.networkmanagement.v1.CloudRunJobInfo.class, + com.google.cloud.networkmanagement.v1.CloudRunJobInfo.Builder.class); + } + + // Construct using com.google.cloud.networkmanagement.v1.CloudRunJobInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + uri_ = ""; + 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_CloudRunJobInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.CloudRunJobInfo getDefaultInstanceForType() { + return com.google.cloud.networkmanagement.v1.CloudRunJobInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.CloudRunJobInfo build() { + com.google.cloud.networkmanagement.v1.CloudRunJobInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.networkmanagement.v1.CloudRunJobInfo buildPartial() { + com.google.cloud.networkmanagement.v1.CloudRunJobInfo result = + new com.google.cloud.networkmanagement.v1.CloudRunJobInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.networkmanagement.v1.CloudRunJobInfo 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.location_ = location_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.networkmanagement.v1.CloudRunJobInfo) { + return mergeFrom((com.google.cloud.networkmanagement.v1.CloudRunJobInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.networkmanagement.v1.CloudRunJobInfo other) { + if (other == com.google.cloud.networkmanagement.v1.CloudRunJobInfo.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.getLocation().isEmpty()) { + location_ = other.location_; + 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: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + location_ = 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 displayName_ = ""; + + /** + * + * + *
              +     * Name of a Cloud Run job.
              +     * 
              + * + * 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 Run job.
              +     * 
              + * + * 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 Run job.
              +     * 
              + * + * 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 Run job.
              +     * 
              + * + * 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 Run job.
              +     * 
              + * + * 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 Run job.
              +     * 
              + * + * 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 Run job.
              +     * 
              + * + * 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 Run job.
              +     * 
              + * + * 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 Run job.
              +     * 
              + * + * string uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearUri() { + uri_ = getDefaultInstance().getUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * URI of a Cloud Run job.
              +     * 
              + * + * 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 location_ = ""; + + /** + * + * + *
              +     * Location in which this job is deployed.
              +     * 
              + * + * string location = 3; + * + * @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; + } + } + + /** + * + * + *
              +     * Location in which this job is deployed.
              +     * 
              + * + * string location = 3; + * + * @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; + } + } + + /** + * + * + *
              +     * Location in which this job is deployed.
              +     * 
              + * + * string location = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Location in which this job is deployed.
              +     * 
              + * + * string location = 3; + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Location in which this job is deployed.
              +     * 
              + * + * string location = 3; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.networkmanagement.v1.CloudRunJobInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.networkmanagement.v1.CloudRunJobInfo) + private static final com.google.cloud.networkmanagement.v1.CloudRunJobInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.networkmanagement.v1.CloudRunJobInfo(); + } + + public static com.google.cloud.networkmanagement.v1.CloudRunJobInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudRunJobInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + 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.CloudRunJobInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CloudRunJobInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CloudRunJobInfoOrBuilder.java new file mode 100644 index 000000000000..c59ffe91433c --- /dev/null +++ b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/CloudRunJobInfoOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/networkmanagement/v1/trace.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.networkmanagement.v1; + +@com.google.protobuf.Generated +public interface CloudRunJobInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.networkmanagement.v1.CloudRunJobInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Name of a Cloud Run job.
              +   * 
              + * + * string display_name = 1; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
              +   * Name of a Cloud Run job.
              +   * 
              + * + * string display_name = 1; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
              +   * URI of a Cloud Run job.
              +   * 
              + * + * string uri = 2; + * + * @return The uri. + */ + java.lang.String getUri(); + + /** + * + * + *
              +   * URI of a Cloud Run job.
              +   * 
              + * + * string uri = 2; + * + * @return The bytes for uri. + */ + com.google.protobuf.ByteString getUriBytes(); + + /** + * + * + *
              +   * Location in which this job is deployed.
              +   * 
              + * + * string location = 3; + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
              +   * Location in which this job is deployed.
              +   * 
              + * + * string location = 3; + * + * @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/DeliverInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/DeliverInfo.java index 6c3cb326bd50..568794770a5c 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 @@ -278,6 +278,16 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { * GKE_POD = 19; */ GKE_POD(19), + /** + * + * + *
              +     * Target is a Cloud Run Job. Used only for return traces.
              +     * 
              + * + * CLOUD_RUN_JOB = 20; + */ + CLOUD_RUN_JOB(20), UNRECOGNIZED(-1), ; @@ -503,6 +513,17 @@ public enum Target implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GKE_POD_VALUE = 19; + /** + * + * + *
              +     * Target is a Cloud Run Job. Used only for return traces.
              +     * 
              + * + * CLOUD_RUN_JOB = 20; + */ + public static final int CLOUD_RUN_JOB_VALUE = 20; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -565,6 +586,8 @@ public static Target forNumber(int value) { return REDIS_CLUSTER; case 19: return GKE_POD; + case 20: + return CLOUD_RUN_JOB; default: return null; } 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 8425ab30e819..da9c686ae5f6 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 @@ -809,6 +809,16 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { * CLOUD_RUN_REVISION_NOT_READY = 29; */ CLOUD_RUN_REVISION_NOT_READY(29), + /** + * + * + *
              +     * Packet sent from a Cloud Run job that is not ready.
              +     * 
              + * + * CLOUD_RUN_JOB_NOT_READY = 113; + */ + CLOUD_RUN_JOB_NOT_READY(113), /** * * @@ -2038,6 +2048,17 @@ public enum Cause implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CLOUD_RUN_REVISION_NOT_READY_VALUE = 29; + /** + * + * + *
              +     * Packet sent from a Cloud Run job that is not ready.
              +     * 
              + * + * CLOUD_RUN_JOB_NOT_READY = 113; + */ + public static final int CLOUD_RUN_JOB_NOT_READY_VALUE = 113; + /** * * @@ -2660,6 +2681,8 @@ public static Cause forNumber(int value) { return HYBRID_NEG_NON_LOCAL_DYNAMIC_ROUTE_MATCHED; case 29: return CLOUD_RUN_REVISION_NOT_READY; + case 113: + return CLOUD_RUN_JOB_NOT_READY; case 37: return DROPPED_INSIDE_PSC_SERVICE_PRODUCER; case 39: 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 5445c03caa33..bfa2aa1ba2af 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 @@ -64,6 +64,7 @@ private Endpoint() { redisInstance_ = ""; redisCluster_ = ""; gkePod_ = ""; + cloudRunJob_ = ""; network_ = ""; networkType_ = 0; projectId_ = ""; @@ -3602,6 +3603,67 @@ public boolean hasCloudRunRevision() { : cloudRunRevision_; } + public static final int CLOUD_RUN_JOB_FIELD_NUMBER = 24; + + @SuppressWarnings("serial") + private volatile java.lang.Object cloudRunJob_ = ""; + + /** + * + * + *
              +   * A [Cloud Run](https://cloud.google.com/run)
              +   * [job](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs#Job)
              +   * URI.
              +   * Applicable only to source endpoint.
              +   * The format is: projects/{project}/locations/{location}/jobs/{job}
              +   * 
              + * + * string cloud_run_job = 24; + * + * @return The cloudRunJob. + */ + @java.lang.Override + public java.lang.String getCloudRunJob() { + java.lang.Object ref = cloudRunJob_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloudRunJob_ = s; + return s; + } + } + + /** + * + * + *
              +   * A [Cloud Run](https://cloud.google.com/run)
              +   * [job](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs#Job)
              +   * URI.
              +   * Applicable only to source endpoint.
              +   * The format is: projects/{project}/locations/{location}/jobs/{job}
              +   * 
              + * + * string cloud_run_job = 24; + * + * @return The bytes for cloudRunJob. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCloudRunJobBytes() { + java.lang.Object ref = cloudRunJob_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudRunJob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int NETWORK_FIELD_NUMBER = 4; @SuppressWarnings("serial") @@ -3830,6 +3892,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gkePod_)) { com.google.protobuf.GeneratedMessage.writeString(output, 21, gkePod_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloudRunJob_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 24, cloudRunJob_); + } getUnknownFields().writeTo(output); } @@ -3898,6 +3963,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gkePod_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(21, gkePod_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(cloudRunJob_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(24, cloudRunJob_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3948,6 +4016,7 @@ public boolean equals(final java.lang.Object obj) { if (hasCloudRunRevision()) { if (!getCloudRunRevision().equals(other.getCloudRunRevision())) return false; } + if (!getCloudRunJob().equals(other.getCloudRunJob())) return false; if (!getNetwork().equals(other.getNetwork())) return false; if (networkType_ != other.networkType_) return false; if (!getProjectId().equals(other.getProjectId())) return false; @@ -4006,6 +4075,8 @@ public int hashCode() { hash = (37 * hash) + CLOUD_RUN_REVISION_FIELD_NUMBER; hash = (53 * hash) + getCloudRunRevision().hashCode(); } + hash = (37 * hash) + CLOUD_RUN_JOB_FIELD_NUMBER; + hash = (53 * hash) + getCloudRunJob().hashCode(); hash = (37 * hash) + NETWORK_FIELD_NUMBER; hash = (53 * hash) + getNetwork().hashCode(); hash = (37 * hash) + NETWORK_TYPE_FIELD_NUMBER; @@ -4191,6 +4262,7 @@ public Builder clear() { cloudRunRevisionBuilder_.dispose(); cloudRunRevisionBuilder_ = null; } + cloudRunJob_ = ""; network_ = ""; networkType_ = 0; projectId_ = ""; @@ -4289,12 +4361,15 @@ private void buildPartial0(com.google.cloud.networkmanagement.v1.Endpoint result to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00010000) != 0)) { - result.network_ = network_; + result.cloudRunJob_ = cloudRunJob_; } if (((from_bitField0_ & 0x00020000) != 0)) { - result.networkType_ = networkType_; + result.network_ = network_; } if (((from_bitField0_ & 0x00040000) != 0)) { + result.networkType_ = networkType_; + } + if (((from_bitField0_ & 0x00080000) != 0)) { result.projectId_ = projectId_; } result.bitField0_ |= to_bitField0_; @@ -4380,9 +4455,14 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.Endpoint other) { if (other.hasCloudRunRevision()) { mergeCloudRunRevision(other.getCloudRunRevision()); } + if (!other.getCloudRunJob().isEmpty()) { + cloudRunJob_ = other.cloudRunJob_; + bitField0_ |= 0x00010000; + onChanged(); + } if (!other.getNetwork().isEmpty()) { network_ = other.network_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } if (other.networkType_ != 0) { @@ -4390,7 +4470,7 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.Endpoint other) { } if (!other.getProjectId().isEmpty()) { projectId_ = other.projectId_; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -4440,19 +4520,19 @@ public Builder mergeFrom( case 34: { network_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 34 case 40: { networkType_ = input.readEnum(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 40 case 50: { projectId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 50 case 58: @@ -4536,6 +4616,12 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 170 + case 194: + { + cloudRunJob_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 194 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -6776,6 +6862,137 @@ public Builder clearCloudRunRevision() { return cloudRunRevisionBuilder_; } + private java.lang.Object cloudRunJob_ = ""; + + /** + * + * + *
              +     * A [Cloud Run](https://cloud.google.com/run)
              +     * [job](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs#Job)
              +     * URI.
              +     * Applicable only to source endpoint.
              +     * The format is: projects/{project}/locations/{location}/jobs/{job}
              +     * 
              + * + * string cloud_run_job = 24; + * + * @return The cloudRunJob. + */ + public java.lang.String getCloudRunJob() { + java.lang.Object ref = cloudRunJob_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + cloudRunJob_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * A [Cloud Run](https://cloud.google.com/run)
              +     * [job](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs#Job)
              +     * URI.
              +     * Applicable only to source endpoint.
              +     * The format is: projects/{project}/locations/{location}/jobs/{job}
              +     * 
              + * + * string cloud_run_job = 24; + * + * @return The bytes for cloudRunJob. + */ + public com.google.protobuf.ByteString getCloudRunJobBytes() { + java.lang.Object ref = cloudRunJob_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + cloudRunJob_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * A [Cloud Run](https://cloud.google.com/run)
              +     * [job](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs#Job)
              +     * URI.
              +     * Applicable only to source endpoint.
              +     * The format is: projects/{project}/locations/{location}/jobs/{job}
              +     * 
              + * + * string cloud_run_job = 24; + * + * @param value The cloudRunJob to set. + * @return This builder for chaining. + */ + public Builder setCloudRunJob(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + cloudRunJob_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + /** + * + * + *
              +     * A [Cloud Run](https://cloud.google.com/run)
              +     * [job](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs#Job)
              +     * URI.
              +     * Applicable only to source endpoint.
              +     * The format is: projects/{project}/locations/{location}/jobs/{job}
              +     * 
              + * + * string cloud_run_job = 24; + * + * @return This builder for chaining. + */ + public Builder clearCloudRunJob() { + cloudRunJob_ = getDefaultInstance().getCloudRunJob(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + + /** + * + * + *
              +     * A [Cloud Run](https://cloud.google.com/run)
              +     * [job](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs#Job)
              +     * URI.
              +     * Applicable only to source endpoint.
              +     * The format is: projects/{project}/locations/{location}/jobs/{job}
              +     * 
              + * + * string cloud_run_job = 24; + * + * @param value The bytes for cloudRunJob to set. + * @return This builder for chaining. + */ + public Builder setCloudRunJobBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + cloudRunJob_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + private java.lang.Object network_ = ""; /** @@ -6850,7 +7067,7 @@ public Builder setNetwork(java.lang.String value) { throw new NullPointerException(); } network_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6871,7 +7088,7 @@ public Builder setNetwork(java.lang.String value) { */ public Builder clearNetwork() { network_ = getDefaultInstance().getNetwork(); - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); onChanged(); return this; } @@ -6897,7 +7114,7 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); network_ = value; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -6936,7 +7153,7 @@ public int getNetworkTypeValue() { */ public Builder setNetworkTypeValue(int value) { networkType_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6980,7 +7197,7 @@ public Builder setNetworkType( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; networkType_ = value.getNumber(); onChanged(); return this; @@ -6999,7 +7216,7 @@ public Builder setNetworkType( * @return This builder for chaining. */ public Builder clearNetworkType() { - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); networkType_ = 0; onChanged(); return this; @@ -7073,7 +7290,7 @@ public Builder setProjectId(java.lang.String value) { throw new NullPointerException(); } projectId_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -7092,7 +7309,7 @@ public Builder setProjectId(java.lang.String value) { */ public Builder clearProjectId() { projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } @@ -7116,7 +7333,7 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); projectId_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; 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 250b1b3a3499..b267f25fb855 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 @@ -579,6 +579,40 @@ public interface EndpointOrBuilder com.google.cloud.networkmanagement.v1.Endpoint.CloudRunRevisionEndpointOrBuilder getCloudRunRevisionOrBuilder(); + /** + * + * + *
              +   * A [Cloud Run](https://cloud.google.com/run)
              +   * [job](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs#Job)
              +   * URI.
              +   * Applicable only to source endpoint.
              +   * The format is: projects/{project}/locations/{location}/jobs/{job}
              +   * 
              + * + * string cloud_run_job = 24; + * + * @return The cloudRunJob. + */ + java.lang.String getCloudRunJob(); + + /** + * + * + *
              +   * A [Cloud Run](https://cloud.google.com/run)
              +   * [job](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs#Job)
              +   * URI.
              +   * Applicable only to source endpoint.
              +   * The format is: projects/{project}/locations/{location}/jobs/{job}
              +   * 
              + * + * string cloud_run_job = 24; + * + * @return The bytes for cloudRunJob. + */ + com.google.protobuf.ByteString getCloudRunJobBytes(); + /** * * 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 7e39f05a73e9..fb31f10ddd53 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 @@ -652,7 +652,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=409 + * google/cloud/networkmanagement/v1/trace.proto;l=416 * @return The serviceAccount. */ @java.lang.Override @@ -679,7 +679,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=409 + * google/cloud/networkmanagement/v1/trace.proto;l=416 * @return The bytes for serviceAccount. */ @java.lang.Override @@ -763,7 +763,7 @@ public com.google.protobuf.ByteString getPscNetworkAttachmentUriBytes() { * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=416 + * google/cloud/networkmanagement/v1/trace.proto;l=423 * @return The running. */ @java.lang.Override @@ -2236,7 +2236,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=409 + * google/cloud/networkmanagement/v1/trace.proto;l=416 * @return The serviceAccount. */ @java.lang.Deprecated @@ -2262,7 +2262,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=409 + * google/cloud/networkmanagement/v1/trace.proto;l=416 * @return The bytes for serviceAccount. */ @java.lang.Deprecated @@ -2288,7 +2288,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=409 + * google/cloud/networkmanagement/v1/trace.proto;l=416 * @param value The serviceAccount to set. * @return This builder for chaining. */ @@ -2313,7 +2313,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=409 + * google/cloud/networkmanagement/v1/trace.proto;l=416 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2334,7 +2334,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=409 + * google/cloud/networkmanagement/v1/trace.proto;l=416 * @param value The bytes for serviceAccount to set. * @return This builder for chaining. */ @@ -2474,7 +2474,7 @@ public Builder setPscNetworkAttachmentUriBytes(com.google.protobuf.ByteString va * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=416 + * google/cloud/networkmanagement/v1/trace.proto;l=423 * @return The running. */ @java.lang.Override @@ -2494,7 +2494,7 @@ public boolean getRunning() { * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=416 + * google/cloud/networkmanagement/v1/trace.proto;l=423 * @param value The running to set. * @return This builder for chaining. */ @@ -2518,7 +2518,7 @@ public Builder setRunning(boolean value) { * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=416 + * google/cloud/networkmanagement/v1/trace.proto;l=423 * @return This builder for chaining. */ @java.lang.Deprecated 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 55ebbdc7abf6..1ec52de6981b 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 @@ -246,7 +246,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=409 + * google/cloud/networkmanagement/v1/trace.proto;l=416 * @return The serviceAccount. */ @java.lang.Deprecated @@ -262,7 +262,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=409 + * google/cloud/networkmanagement/v1/trace.proto;l=416 * @return The bytes for serviceAccount. */ @java.lang.Deprecated @@ -305,7 +305,7 @@ public interface InstanceInfoOrBuilder * bool running = 10 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.InstanceInfo.running is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=416 + * google/cloud/networkmanagement/v1/trace.proto;l=423 * @return The running. */ @java.lang.Deprecated 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 2b5526f54ba9..3f5231406b69 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 @@ -572,7 +572,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=888 + * See google/cloud/networkmanagement/v1/trace.proto;l=895 * @return The healthCheckUri. */ @java.lang.Override @@ -601,7 +601,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=888 + * See google/cloud/networkmanagement/v1/trace.proto;l=895 * @return The bytes for healthCheckUri. */ @java.lang.Override @@ -1377,7 +1377,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=888 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=895 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -1405,7 +1405,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=888 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=895 * @return The bytes for healthCheckUri. */ @java.lang.Deprecated @@ -1433,7 +1433,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=888 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=895 * @param value The healthCheckUri to set. * @return This builder for chaining. */ @@ -1460,7 +1460,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=888 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=895 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1483,7 +1483,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=888 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=895 * @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 3a467c83dcab..9dd068ab0c32 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 @@ -68,7 +68,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=888 + * See google/cloud/networkmanagement/v1/trace.proto;l=895 * @return The healthCheckUri. */ @java.lang.Deprecated @@ -86,7 +86,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=888 + * See google/cloud/networkmanagement/v1/trace.proto;l=895 * @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/RouteInfo.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfo.java index 460fa633d84d..b0330c5aab9a 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 @@ -1107,7 +1107,7 @@ public com.google.cloud.networkmanagement.v1.RouteInfo.NextHopType getNextHopTyp * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=673 + * google/cloud/networkmanagement/v1/trace.proto;l=680 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Override @@ -1129,7 +1129,7 @@ public int getRouteScopeValue() { * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=673 + * google/cloud/networkmanagement/v1/trace.proto;l=680 * @return The routeScope. */ @java.lang.Override @@ -1381,7 +1381,7 @@ public com.google.protobuf.ByteString getDestIpRangeBytes() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=695 + * google/cloud/networkmanagement/v1/trace.proto;l=702 * @return The nextHop. */ @java.lang.Override @@ -1410,7 +1410,7 @@ public java.lang.String getNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=695 + * google/cloud/networkmanagement/v1/trace.proto;l=702 * @return The bytes for nextHop. */ @java.lang.Override @@ -2059,7 +2059,7 @@ public com.google.protobuf.ByteString getAdvertisedRouteSourceRouterUriBytes() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=742 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Override @@ -2082,7 +2082,7 @@ public boolean hasAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=742 * @return The advertisedRouteNextHopUri. */ @java.lang.Override @@ -2113,7 +2113,7 @@ public java.lang.String getAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=742 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Override @@ -3567,7 +3567,7 @@ public Builder clearNextHopType() { * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=673 + * google/cloud/networkmanagement/v1/trace.proto;l=680 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Override @@ -3589,7 +3589,7 @@ public int getRouteScopeValue() { * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=673 + * google/cloud/networkmanagement/v1/trace.proto;l=680 * @param value The enum numeric value on the wire for routeScope to set. * @return This builder for chaining. */ @@ -3614,7 +3614,7 @@ public Builder setRouteScopeValue(int value) { * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=673 + * google/cloud/networkmanagement/v1/trace.proto;l=680 * @return The routeScope. */ @java.lang.Override @@ -3640,7 +3640,7 @@ public com.google.cloud.networkmanagement.v1.RouteInfo.RouteScope getRouteScope( * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=673 + * google/cloud/networkmanagement/v1/trace.proto;l=680 * @param value The routeScope to set. * @return This builder for chaining. */ @@ -3668,7 +3668,7 @@ public Builder setRouteScope(com.google.cloud.networkmanagement.v1.RouteInfo.Rou * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=673 + * google/cloud/networkmanagement/v1/trace.proto;l=680 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4162,7 +4162,7 @@ public Builder setDestIpRangeBytes(com.google.protobuf.ByteString value) { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=695 + * google/cloud/networkmanagement/v1/trace.proto;l=702 * @return The nextHop. */ @java.lang.Deprecated @@ -4190,7 +4190,7 @@ public java.lang.String getNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=695 + * google/cloud/networkmanagement/v1/trace.proto;l=702 * @return The bytes for nextHop. */ @java.lang.Deprecated @@ -4218,7 +4218,7 @@ public com.google.protobuf.ByteString getNextHopBytes() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=695 + * google/cloud/networkmanagement/v1/trace.proto;l=702 * @param value The nextHop to set. * @return This builder for chaining. */ @@ -4245,7 +4245,7 @@ public Builder setNextHop(java.lang.String value) { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=695 + * google/cloud/networkmanagement/v1/trace.proto;l=702 * @return This builder for chaining. */ @java.lang.Deprecated @@ -4268,7 +4268,7 @@ public Builder clearNextHop() { * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=695 + * google/cloud/networkmanagement/v1/trace.proto;l=702 * @param value The bytes for nextHop to set. * @return This builder for chaining. */ @@ -5706,7 +5706,7 @@ public Builder setAdvertisedRouteSourceRouterUriBytes(com.google.protobuf.ByteSt * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=742 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Deprecated @@ -5728,7 +5728,7 @@ public boolean hasAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=742 * @return The advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -5758,7 +5758,7 @@ public java.lang.String getAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=742 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -5788,7 +5788,7 @@ public com.google.protobuf.ByteString getAdvertisedRouteNextHopUriBytes() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=742 * @param value The advertisedRouteNextHopUri to set. * @return This builder for chaining. */ @@ -5817,7 +5817,7 @@ public Builder setAdvertisedRouteNextHopUri(java.lang.String value) { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=742 * @return This builder for chaining. */ @java.lang.Deprecated @@ -5842,7 +5842,7 @@ public Builder clearAdvertisedRouteNextHopUri() { * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=742 * @param value The bytes for advertisedRouteNextHopUri 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/RouteInfoOrBuilder.java b/java-network-management/proto-google-cloud-network-management-v1/src/main/java/com/google/cloud/networkmanagement/v1/RouteInfoOrBuilder.java index fc75c0e5370d..9e20a175226c 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 @@ -91,7 +91,7 @@ public interface RouteInfoOrBuilder * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=673 + * google/cloud/networkmanagement/v1/trace.proto;l=680 * @return The enum numeric value on the wire for routeScope. */ @java.lang.Deprecated @@ -110,7 +110,7 @@ public interface RouteInfoOrBuilder * * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.route_scope is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=673 + * google/cloud/networkmanagement/v1/trace.proto;l=680 * @return The routeScope. */ @java.lang.Deprecated @@ -242,7 +242,7 @@ public interface RouteInfoOrBuilder * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=695 + * google/cloud/networkmanagement/v1/trace.proto;l=702 * @return The nextHop. */ @java.lang.Deprecated @@ -260,7 +260,7 @@ public interface RouteInfoOrBuilder * string next_hop = 4 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.next_hop is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=695 + * google/cloud/networkmanagement/v1/trace.proto;l=702 * @return The bytes for nextHop. */ @java.lang.Deprecated @@ -687,7 +687,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=742 * @return Whether the advertisedRouteNextHopUri field is set. */ @java.lang.Deprecated @@ -707,7 +707,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=742 * @return The advertisedRouteNextHopUri. */ @java.lang.Deprecated @@ -727,7 +727,7 @@ public interface RouteInfoOrBuilder * optional string advertised_route_next_hop_uri = 18 [deprecated = true]; * * @deprecated google.cloud.networkmanagement.v1.RouteInfo.advertised_route_next_hop_uri is - * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=735 + * deprecated. See google/cloud/networkmanagement/v1/trace.proto;l=742 * @return The bytes for advertisedRouteNextHopUri. */ @java.lang.Deprecated 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 0d9b741cdb5e..a96e1bcfee0c 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 @@ -228,6 +228,17 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { * START_FROM_CLOUD_RUN_REVISION = 26; */ START_FROM_CLOUD_RUN_REVISION(26), + /** + * + * + *
              +     * Initial state: packet originating from a Cloud Run Job.
              +     * A CloudRunJobInfo is populated with starting Job information.
              +     * 
              + * + * START_FROM_CLOUD_RUN_JOB = 50; + */ + START_FROM_CLOUD_RUN_JOB(50), /** * * @@ -747,6 +758,18 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int START_FROM_CLOUD_RUN_REVISION_VALUE = 26; + /** + * + * + *
              +     * Initial state: packet originating from a Cloud Run Job.
              +     * A CloudRunJobInfo is populated with starting Job information.
              +     * 
              + * + * START_FROM_CLOUD_RUN_JOB = 50; + */ + public static final int START_FROM_CLOUD_RUN_JOB_VALUE = 50; + /** * * @@ -1177,6 +1200,8 @@ public static State forNumber(int value) { return START_FROM_APP_ENGINE_VERSION; case 26: return START_FROM_CLOUD_RUN_REVISION; + case 50: + return START_FROM_CLOUD_RUN_JOB; case 29: return START_FROM_STORAGE_BUCKET; case 30: @@ -1336,6 +1361,7 @@ public enum StepInfoCase CLOUD_FUNCTION(20), APP_ENGINE_VERSION(22), CLOUD_RUN_REVISION(23), + CLOUD_RUN_JOB(45), NAT(25), PROXY_CONNECTION(26), LOAD_BALANCER_BACKEND_INFO(27), @@ -1421,6 +1447,8 @@ public static StepInfoCase forNumber(int value) { return APP_ENGINE_VERSION; case 23: return CLOUD_RUN_REVISION; + case 45: + return CLOUD_RUN_JOB; case 25: return NAT; case 26: @@ -2583,7 +2611,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=311 + * google/cloud/networkmanagement/v1/trace.proto;l=315 * @return Whether the loadBalancer field is set. */ @java.lang.Override @@ -2605,7 +2633,7 @@ public boolean hasLoadBalancer() { * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=311 + * google/cloud/networkmanagement/v1/trace.proto;l=315 * @return The loadBalancer. */ @java.lang.Override @@ -3316,6 +3344,60 @@ public com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo getCloudRunRev return com.google.cloud.networkmanagement.v1.CloudRunRevisionInfo.getDefaultInstance(); } + public static final int CLOUD_RUN_JOB_FIELD_NUMBER = 45; + + /** + * + * + *
              +   * Display information of a Cloud Run job.
              +   * 
              + * + * .google.cloud.networkmanagement.v1.CloudRunJobInfo cloud_run_job = 45; + * + * @return Whether the cloudRunJob field is set. + */ + @java.lang.Override + public boolean hasCloudRunJob() { + return stepInfoCase_ == 45; + } + + /** + * + * + *
              +   * Display information of a Cloud Run job.
              +   * 
              + * + * .google.cloud.networkmanagement.v1.CloudRunJobInfo cloud_run_job = 45; + * + * @return The cloudRunJob. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.CloudRunJobInfo getCloudRunJob() { + if (stepInfoCase_ == 45) { + return (com.google.cloud.networkmanagement.v1.CloudRunJobInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.CloudRunJobInfo.getDefaultInstance(); + } + + /** + * + * + *
              +   * Display information of a Cloud Run job.
              +   * 
              + * + * .google.cloud.networkmanagement.v1.CloudRunJobInfo cloud_run_job = 45; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.CloudRunJobInfoOrBuilder getCloudRunJobOrBuilder() { + if (stepInfoCase_ == 45) { + return (com.google.cloud.networkmanagement.v1.CloudRunJobInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.CloudRunJobInfo.getDefaultInstance(); + } + public static final int NAT_FIELD_NUMBER = 25; /** @@ -3804,6 +3886,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 42, (com.google.cloud.networkmanagement.v1.NgfwPacketInspectionInfo) stepInfo_); } + if (stepInfoCase_ == 45) { + output.writeMessage(45, (com.google.cloud.networkmanagement.v1.CloudRunJobInfo) stepInfo_); + } getUnknownFields().writeTo(output); } @@ -4006,6 +4091,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 42, (com.google.cloud.networkmanagement.v1.NgfwPacketInspectionInfo) stepInfo_); } + if (stepInfoCase_ == 45) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 45, (com.google.cloud.networkmanagement.v1.CloudRunJobInfo) stepInfo_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -4120,6 +4210,9 @@ public boolean equals(final java.lang.Object obj) { case 23: if (!getCloudRunRevision().equals(other.getCloudRunRevision())) return false; break; + case 45: + if (!getCloudRunJob().equals(other.getCloudRunJob())) return false; + break; case 25: if (!getNat().equals(other.getNat())) return false; break; @@ -4281,6 +4374,10 @@ public int hashCode() { hash = (37 * hash) + CLOUD_RUN_REVISION_FIELD_NUMBER; hash = (53 * hash) + getCloudRunRevision().hashCode(); break; + case 45: + hash = (37 * hash) + CLOUD_RUN_JOB_FIELD_NUMBER; + hash = (53 * hash) + getCloudRunJob().hashCode(); + break; case 25: hash = (37 * hash) + NAT_FIELD_NUMBER; hash = (53 * hash) + getNat().hashCode(); @@ -4544,6 +4641,9 @@ public Builder clear() { if (cloudRunRevisionBuilder_ != null) { cloudRunRevisionBuilder_.clear(); } + if (cloudRunJobBuilder_ != null) { + cloudRunJobBuilder_.clear(); + } if (natBuilder_ != null) { natBuilder_.clear(); } @@ -4715,6 +4815,9 @@ private void buildPartialOneofs(com.google.cloud.networkmanagement.v1.Step resul if (stepInfoCase_ == 23 && cloudRunRevisionBuilder_ != null) { result.stepInfo_ = cloudRunRevisionBuilder_.build(); } + if (stepInfoCase_ == 45 && cloudRunJobBuilder_ != null) { + result.stepInfo_ = cloudRunJobBuilder_.build(); + } if (stepInfoCase_ == 25 && natBuilder_ != null) { result.stepInfo_ = natBuilder_.build(); } @@ -4914,6 +5017,11 @@ public Builder mergeFrom(com.google.cloud.networkmanagement.v1.Step other) { mergeCloudRunRevision(other.getCloudRunRevision()); break; } + case CLOUD_RUN_JOB: + { + mergeCloudRunJob(other.getCloudRunJob()); + break; + } case NAT: { mergeNat(other.getNat()); @@ -5248,6 +5356,13 @@ public Builder mergeFrom( stepInfoCase_ = 42; break; } // case 338 + case 362: + { + input.readMessage( + internalGetCloudRunJobFieldBuilder().getBuilder(), extensionRegistry); + stepInfoCase_ = 45; + break; + } // case 362 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -9521,7 +9636,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=311 + * google/cloud/networkmanagement/v1/trace.proto;l=315 * @return Whether the loadBalancer field is set. */ @java.lang.Override @@ -9543,7 +9658,7 @@ public boolean hasLoadBalancer() { * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=311 + * google/cloud/networkmanagement/v1/trace.proto;l=315 * @return The loadBalancer. */ @java.lang.Override @@ -12491,6 +12606,226 @@ public Builder clearCloudRunRevision() { return cloudRunRevisionBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkmanagement.v1.CloudRunJobInfo, + com.google.cloud.networkmanagement.v1.CloudRunJobInfo.Builder, + com.google.cloud.networkmanagement.v1.CloudRunJobInfoOrBuilder> + cloudRunJobBuilder_; + + /** + * + * + *
              +     * Display information of a Cloud Run job.
              +     * 
              + * + * .google.cloud.networkmanagement.v1.CloudRunJobInfo cloud_run_job = 45; + * + * @return Whether the cloudRunJob field is set. + */ + @java.lang.Override + public boolean hasCloudRunJob() { + return stepInfoCase_ == 45; + } + + /** + * + * + *
              +     * Display information of a Cloud Run job.
              +     * 
              + * + * .google.cloud.networkmanagement.v1.CloudRunJobInfo cloud_run_job = 45; + * + * @return The cloudRunJob. + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.CloudRunJobInfo getCloudRunJob() { + if (cloudRunJobBuilder_ == null) { + if (stepInfoCase_ == 45) { + return (com.google.cloud.networkmanagement.v1.CloudRunJobInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.CloudRunJobInfo.getDefaultInstance(); + } else { + if (stepInfoCase_ == 45) { + return cloudRunJobBuilder_.getMessage(); + } + return com.google.cloud.networkmanagement.v1.CloudRunJobInfo.getDefaultInstance(); + } + } + + /** + * + * + *
              +     * Display information of a Cloud Run job.
              +     * 
              + * + * .google.cloud.networkmanagement.v1.CloudRunJobInfo cloud_run_job = 45; + */ + public Builder setCloudRunJob(com.google.cloud.networkmanagement.v1.CloudRunJobInfo value) { + if (cloudRunJobBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stepInfo_ = value; + onChanged(); + } else { + cloudRunJobBuilder_.setMessage(value); + } + stepInfoCase_ = 45; + return this; + } + + /** + * + * + *
              +     * Display information of a Cloud Run job.
              +     * 
              + * + * .google.cloud.networkmanagement.v1.CloudRunJobInfo cloud_run_job = 45; + */ + public Builder setCloudRunJob( + com.google.cloud.networkmanagement.v1.CloudRunJobInfo.Builder builderForValue) { + if (cloudRunJobBuilder_ == null) { + stepInfo_ = builderForValue.build(); + onChanged(); + } else { + cloudRunJobBuilder_.setMessage(builderForValue.build()); + } + stepInfoCase_ = 45; + return this; + } + + /** + * + * + *
              +     * Display information of a Cloud Run job.
              +     * 
              + * + * .google.cloud.networkmanagement.v1.CloudRunJobInfo cloud_run_job = 45; + */ + public Builder mergeCloudRunJob(com.google.cloud.networkmanagement.v1.CloudRunJobInfo value) { + if (cloudRunJobBuilder_ == null) { + if (stepInfoCase_ == 45 + && stepInfo_ + != com.google.cloud.networkmanagement.v1.CloudRunJobInfo.getDefaultInstance()) { + stepInfo_ = + com.google.cloud.networkmanagement.v1.CloudRunJobInfo.newBuilder( + (com.google.cloud.networkmanagement.v1.CloudRunJobInfo) stepInfo_) + .mergeFrom(value) + .buildPartial(); + } else { + stepInfo_ = value; + } + onChanged(); + } else { + if (stepInfoCase_ == 45) { + cloudRunJobBuilder_.mergeFrom(value); + } else { + cloudRunJobBuilder_.setMessage(value); + } + } + stepInfoCase_ = 45; + return this; + } + + /** + * + * + *
              +     * Display information of a Cloud Run job.
              +     * 
              + * + * .google.cloud.networkmanagement.v1.CloudRunJobInfo cloud_run_job = 45; + */ + public Builder clearCloudRunJob() { + if (cloudRunJobBuilder_ == null) { + if (stepInfoCase_ == 45) { + stepInfoCase_ = 0; + stepInfo_ = null; + onChanged(); + } + } else { + if (stepInfoCase_ == 45) { + stepInfoCase_ = 0; + stepInfo_ = null; + } + cloudRunJobBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * Display information of a Cloud Run job.
              +     * 
              + * + * .google.cloud.networkmanagement.v1.CloudRunJobInfo cloud_run_job = 45; + */ + public com.google.cloud.networkmanagement.v1.CloudRunJobInfo.Builder getCloudRunJobBuilder() { + return internalGetCloudRunJobFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Display information of a Cloud Run job.
              +     * 
              + * + * .google.cloud.networkmanagement.v1.CloudRunJobInfo cloud_run_job = 45; + */ + @java.lang.Override + public com.google.cloud.networkmanagement.v1.CloudRunJobInfoOrBuilder + getCloudRunJobOrBuilder() { + if ((stepInfoCase_ == 45) && (cloudRunJobBuilder_ != null)) { + return cloudRunJobBuilder_.getMessageOrBuilder(); + } else { + if (stepInfoCase_ == 45) { + return (com.google.cloud.networkmanagement.v1.CloudRunJobInfo) stepInfo_; + } + return com.google.cloud.networkmanagement.v1.CloudRunJobInfo.getDefaultInstance(); + } + } + + /** + * + * + *
              +     * Display information of a Cloud Run job.
              +     * 
              + * + * .google.cloud.networkmanagement.v1.CloudRunJobInfo cloud_run_job = 45; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkmanagement.v1.CloudRunJobInfo, + com.google.cloud.networkmanagement.v1.CloudRunJobInfo.Builder, + com.google.cloud.networkmanagement.v1.CloudRunJobInfoOrBuilder> + internalGetCloudRunJobFieldBuilder() { + if (cloudRunJobBuilder_ == null) { + if (!(stepInfoCase_ == 45)) { + stepInfo_ = com.google.cloud.networkmanagement.v1.CloudRunJobInfo.getDefaultInstance(); + } + cloudRunJobBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.networkmanagement.v1.CloudRunJobInfo, + com.google.cloud.networkmanagement.v1.CloudRunJobInfo.Builder, + com.google.cloud.networkmanagement.v1.CloudRunJobInfoOrBuilder>( + (com.google.cloud.networkmanagement.v1.CloudRunJobInfo) stepInfo_, + getParentForChildren(), + isClean()); + stepInfo_ = null; + } + stepInfoCase_ = 45; + onChanged(); + return cloudRunJobBuilder_; + } + private com.google.protobuf.SingleFieldBuilder< com.google.cloud.networkmanagement.v1.NatInfo, com.google.cloud.networkmanagement.v1.NatInfo.Builder, 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 e9d2b130c483..5c13256918e3 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 @@ -791,7 +791,7 @@ public interface StepOrBuilder * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=311 + * google/cloud/networkmanagement/v1/trace.proto;l=315 * @return Whether the loadBalancer field is set. */ @java.lang.Deprecated @@ -810,7 +810,7 @@ public interface StepOrBuilder * * * @deprecated google.cloud.networkmanagement.v1.Step.load_balancer is deprecated. See - * google/cloud/networkmanagement/v1/trace.proto;l=311 + * google/cloud/networkmanagement/v1/trace.proto;l=315 * @return The loadBalancer. */ @java.lang.Deprecated @@ -1299,6 +1299,43 @@ public interface StepOrBuilder com.google.cloud.networkmanagement.v1.CloudRunRevisionInfoOrBuilder getCloudRunRevisionOrBuilder(); + /** + * + * + *
              +   * Display information of a Cloud Run job.
              +   * 
              + * + * .google.cloud.networkmanagement.v1.CloudRunJobInfo cloud_run_job = 45; + * + * @return Whether the cloudRunJob field is set. + */ + boolean hasCloudRunJob(); + + /** + * + * + *
              +   * Display information of a Cloud Run job.
              +   * 
              + * + * .google.cloud.networkmanagement.v1.CloudRunJobInfo cloud_run_job = 45; + * + * @return The cloudRunJob. + */ + com.google.cloud.networkmanagement.v1.CloudRunJobInfo getCloudRunJob(); + + /** + * + * + *
              +   * Display information of a Cloud Run job.
              +   * 
              + * + * .google.cloud.networkmanagement.v1.CloudRunJobInfo cloud_run_job = 45; + */ + com.google.cloud.networkmanagement.v1.CloudRunJobInfoOrBuilder getCloudRunJobOrBuilder(); + /** * * 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 e971653b4b27..861178e473e9 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 @@ -130,7 +130,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:t\352Aq\n" + "1networkmanagement.googleapis.com/ConnectivityTest\022.google.cloud.network" - + "management.v1.ProbingDetails.EdgeLocation\022\\\n" + + "endpoint_info\030\007 \001(\0132/.goog" + + "le.cloud.networkmanagement.v1.EndpointInfo\022O\n" + + "\017probing_latency\030\010 \001(\01326.google.clo" + + "ud.networkmanagement.v1.LatencyDistribution\022c\n" + + "\033destination_egress_location\030\t \001(\013" + + "2>.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation\022\\\n" + "\016edge_responses\030\n" - + " \003(\0132D.google.cloud" - + ".networkmanagement.v1.ProbingDetails.SingleEdgeResponse\022\032\n" + + " \003(\0132D.google.cloud.networkmanagemen" + + "t.v1.ProbingDetails.SingleEdgeResponse\022\032\n" + "\022probed_all_devices\030\013 \001(\010\032)\n" + "\014EdgeLocation\022\031\n" + "\021metropolitan_area\030\001 \001(\t\032\361\002\n" + "\022SingleEdgeResponse\022O\n" - + "\006result\030\001" - + " \001(\0162?.google.cloud.networkmanagement.v1.ProbingDetails.ProbingResult\022\030\n" + + "\006result\030\001 \001(\0162?.google.cl" + + "oud.networkmanagement.v1.ProbingDetails.ProbingResult\022\030\n" + "\020sent_probe_count\030\002 \001(\005\022\036\n" + "\026successful_probe_count\030\003 \001(\005\022O\n" - + "\017probing_latency\030\004 \001(\01326.goog" - + "le.cloud.networkmanagement.v1.LatencyDistribution\022c\n" - + "\033destination_egress_location\030\005" - + " \001(\0132>.google.cloud.networkmanagement.v1.ProbingDetails.EdgeLocation\022\032\n" + + "\017probing_latency\030\004" + + " \001(\01326.google.cloud.networkmanagement.v1.LatencyDistribution\022c\n" + + "\033destination_egress_location\030\005 \001(\0132>.google.c" + + "loud.networkmanagement.v1.ProbingDetails.EdgeLocation\022\032\n" + "\022destination_router\030\006 \001(\t\"\200\001\n\r" + "ProbingResult\022\036\n" + "\032PROBING_RESULT_UNSPECIFIED\020\000\022\r\n" @@ -238,11 +239,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037PROBING_ABORT_CAUSE_UNSPECIFIED\020\000\022\025\n" + "\021PERMISSION_DENIED\020\001\022\026\n" + "\022NO_SOURCE_LOCATION\020\002B\375\001\n" - + "%com.google.cloud.networkmanagement.v1B\016TestOuterClassP\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" + + "%com.google.cloud.networkmanagement.v1B\016TestOuterClassP\001ZScloud.google.com/go/n" + + "etworkmanagement/apiv1/networkmanagementpb;networkmanagementpb\252\002!Google.Cloud.Ne" + + "tworkManagement.V1\312\002!Google\\Cloud\\Networ" + + "kManagement\\V1\352\002$Google::Cloud::NetworkManagement::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -307,6 +307,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CloudFunction", "AppEngineVersion", "CloudRunRevision", + "CloudRunJob", "Network", "NetworkType", "ProjectId", 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 65f15d14154d..4f4d3e57ebac 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 @@ -156,6 +156,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_networkmanagement_v1_CloudRunRevisionInfo_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_networkmanagement_v1_CloudRunRevisionInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_networkmanagement_v1_CloudRunJobInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_networkmanagement_v1_CloudRunJobInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_networkmanagement_v1_AppEngineVersionInfo_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -212,7 +216,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "endpoint_info\030\001" + " \001(\0132/.google.cloud.networkmanagement.v1.EndpointInfo\0226\n" + "\005steps\030\002 \003(\0132\'.google.cloud.networkmanagement.v1.Step\022\030\n" - + "\020forward_trace_id\030\004 \001(\005\"\375!\n" + + "\020forward_trace_id\030\004 \001(\005\"\350\"\n" + "\004Step\022\023\n" + "\013description\030\001 \001(\t\022<\n" + "\005state\030\002 \001(\0162-.google.cloud.networkmanagement.v1.Step.State\022\023\n" @@ -273,18 +277,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022app_engine_version\030\026 \001(\01327.goo" + "gle.cloud.networkmanagement.v1.AppEngineVersionInfoH\000\022U\n" + "\022cloud_run_revision\030\027 \001(" - + "\01327.google.cloud.networkmanagement.v1.CloudRunRevisionInfoH\000\0229\n" + + "\01327.google.cloud.networkmanagement.v1.CloudRunRevisionInfoH\000\022K\n\r" + + "cloud_run_job\030- " + + "\001(\01322.google.cloud.networkmanagement.v1.CloudRunJobInfoH\000\0229\n" + "\003nat\030\031 \001(\0132*.google.cloud.networkmanagement.v1.NatInfoH\000\022R\n" - + "\020proxy_connection\030\032 \001(\01326.google.cloud" - + ".networkmanagement.v1.ProxyConnectionInfoH\000\022`\n" - + "\032load_balancer_backend_info\030\033 \001(\0132" - + ":.google.cloud.networkmanagement.v1.LoadBalancerBackendInfoH\000\022N\n" - + "\016storage_bucket\030\034" - + " \001(\01324.google.cloud.networkmanagement.v1.StorageBucketInfoH\000\022N\n" - + "\016serverless_neg\030\035" - + " \001(\01324.google.cloud.networkmanagement.v1.ServerlessNegInfoH\000\022]\n" + + "\020proxy_connection\030\032 \001(\01326.google.cloud.ne" + + "tworkmanagement.v1.ProxyConnectionInfoH\000\022`\n" + + "\032load_balancer_backend_info\030\033 \001(\0132:.g" + + "oogle.cloud.networkmanagement.v1.LoadBalancerBackendInfoH\000\022N\n" + + "\016storage_bucket\030\034 \001" + + "(\01324.google.cloud.networkmanagement.v1.StorageBucketInfoH\000\022N\n" + + "\016serverless_neg\030\035 \001" + + "(\01324.google.cloud.networkmanagement.v1.ServerlessNegInfoH\000\022]\n" + "\026ngfw_packet_inspection\030*" - + " \001(\0132;.google.cloud.networkmanagement.v1.NgfwPacketInspectionInfoH\000\"\260\n\n" + + " \001(\0132;.google.cloud.networkmanagement.v1.NgfwPacketInspectionInfoH\000\"\316\n\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\027\n" + "\023START_FROM_INSTANCE\020\001\022\027\n" @@ -298,7 +304,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030START_FROM_REDIS_CLUSTER\020!\022\035\n" + "\031START_FROM_CLOUD_FUNCTION\020\027\022!\n" + "\035START_FROM_APP_ENGINE_VERSION\020\031\022!\n" - + "\035START_FROM_CLOUD_RUN_REVISION\020\032\022\035\n" + + "\035START_FROM_CLOUD_RUN_REVISION\020\032\022\034\n" + + "\030START_FROM_CLOUD_RUN_JOB\0202\022\035\n" + "\031START_FROM_STORAGE_BUCKET\020\035\022$\n" + " START_FROM_PSC_PUBLISHED_SERVICE\020\036\022\035\n" + "\031START_FROM_SERVERLESS_NEG\020\037\022\037\n" @@ -347,8 +354,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032psc_network_attachment_uri\030\t \001(\t\022\023\n" + "\007running\030\n" + " \001(\010B\002\030\001\022F\n" - + "\006status\030\013 \001(\01626" - + ".google.cloud.networkmanagement.v1.InstanceInfo.Status\">\n" + + "\006status\030\013 \001(\01626.google.cloud" + + ".networkmanagement.v1.InstanceInfo.Status\">\n" + "\006Status\022\026\n" + "\022STATUS_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\017\n" @@ -397,8 +404,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01626.google.cloud.networkmanagement.v1.RouteInfo.RouteType\022O\n\r" + "next_hop_type\030\t" + " \001(\01628.google.cloud.networkmanagement.v1.RouteInfo.NextHopType\022P\n" - + "\013route_scope\030\016" - + " \001(\01627.google.cloud.networkmanagement.v1.RouteInfo.RouteScopeB\002\030\001\022\024\n" + + "\013route_scope\030\016 " + + "\001(\01627.google.cloud.networkmanagement.v1.RouteInfo.RouteScopeB\002\030\001\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\r" @@ -460,8 +467,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036_advertised_route_next_hop_uri\"\332\002\n" + "\021GoogleServiceInfo\022\021\n" + "\tsource_ip\030\001 \001(\t\022c\n" - + "\023google_service_type\030\002 \001(\0162F.google.cloud.networkmana" - + "gement.v1.GoogleServiceInfo.GoogleServiceType\"\314\001\n" + + "\023google_service_type\030\002 \001(\016" + + "2F.google.cloud.networkmanagement.v1.GoogleServiceInfo.GoogleServiceType\"\314\001\n" + "\021GoogleServiceType\022#\n" + "\037GOOGLE_SERVICE_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003IAP\020\001\022$\n" @@ -485,13 +492,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\t\022\035\n" + "\025psc_google_api_target\030\013 \001(\t\"\302\004\n" + "\020LoadBalancerInfo\022`\n" - + "\022load_balancer_type\030\001 \001(\0162D.google.cloud.networkman" - + "agement.v1.LoadBalancerInfo.LoadBalancerType\022\034\n" + + "\022load_balancer_type\030\001 \001(" + + "\0162D.google.cloud.networkmanagement.v1.LoadBalancerInfo.LoadBalancerType\022\034\n" + "\020health_check_uri\030\002 \001(\tB\002\030\001\022H\n" - + "\010backends\030\003" - + " \003(\01326.google.cloud.networkmanagement.v1.LoadBalancerBackend\022U\n" - + "\014backend_type\030\004" - + " \001(\0162?.google.cloud.networkmanagement.v1.LoadBalancerInfo.BackendType\022\023\n" + + "\010backends\030\003 \003(\0132" + + "6.google.cloud.networkmanagement.v1.LoadBalancerBackend\022U\n" + + "\014backend_type\030\004 \001(\0162?." + + "google.cloud.networkmanagement.v1.LoadBalancerInfo.BackendType\022\023\n" + "\013backend_uri\030\005 \001(\t\"\217\001\n" + "\020LoadBalancerType\022\"\n" + "\036LOAD_BALANCER_TYPE_UNSPECIFIED\020\000\022\024\n" @@ -508,9 +515,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023LoadBalancerBackend\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022t\n" - + "\033health_check_firewall_state\030\003 \001" - + "(\0162O.google.cloud.networkmanagement.v1.L" - + "oadBalancerBackend.HealthCheckFirewallState\022,\n" + + "\033health_check_firewall_state\030\003 \001(\0162O.google.c" + + "loud.networkmanagement.v1.LoadBalancerBackend.HealthCheckFirewallState\022,\n" + "$health_check_allowing_firewall_rules\030\004 \003(\t\022,\n" + "$health_check_blocking_firewall_rules\030\005 \003(\t\"j\n" + "\030HealthCheckFirewallState\022+\n" @@ -527,7 +533,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013network_uri\030\003 \001(\t\022\022\n\n" + "ip_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\r" + + "\006region\030\006 \001(\t\"\356\002\n" + + "\r" + "VpnTunnelInfo\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\026\n" @@ -537,8 +544,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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.n" - + "etworkmanagement.v1.VpnTunnelInfo.RoutingType\"[\n" + + "\014routing_type\030\t" + + " \001(\0162<.google.cloud.networkmanagement.v1.VpnTunnelInfo.RoutingType\"[\n" + "\013RoutingType\022\034\n" + "\030ROUTING_TYPE_UNSPECIFIED\020\000\022\017\n" + "\013ROUTE_BASED\020\001\022\020\n" @@ -550,8 +557,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020interconnect_uri\030\003 \001(\t\022\016\n" + "\006region\030\004 \001(\t\022\030\n" + "\020cloud_router_uri\030\005 \001(\t\022P\n" - + "\004type\030\006" - + " \001(\0162B.google.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type\0222\n" + + "\004type\030\006 \001(\0162B.goog" + + "le.cloud.networkmanagement.v1.InterconnectAttachmentInfo.Type\0222\n" + " l2_attachment_matched_ip_address\030\007 \001(" + "\tB\010\342\214\317\327\010\002\010\004\"`\n" + "\004Type\022\024\n" @@ -568,16 +575,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020destination_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" - + "\020source_agent_uri\030\010 \001(\t\"\324\006\n" + + "\020source_agent_uri\030\010 \001(\t\"\347\006\n" + "\013DeliverInfo\022E\n" - + "\006target\030\001 \001(\01625.google.cl" - + "oud.networkmanagement.v1.DeliverInfo.Target\022\024\n" + + "\006target\030\001" + + " \001(\01625.google.cloud.networkmanagement.v1.DeliverInfo.Target\022\024\n" + "\014resource_uri\030\002 \001(\t\022\034\n\n" + "ip_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_api_target\030\005 \001(\t\022]\n" - + "\023google_service_type\030\006 \001(\0162@.google.cloud.netwo" - + "rkmanagement.v1.DeliverInfo.GoogleServiceType\"\204\003\n" + + "\023google_service_type\030\006" + + " \001(\0162@.google.cloud.networkmanagement.v1.DeliverInfo.GoogleServiceType\"\227\003\n" + "\006Target\022\026\n" + "\022TARGET_UNSPECIFIED\020\000\022\014\n" + "\010INSTANCE\020\001\022\014\n" @@ -599,7 +606,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026GOOGLE_MANAGED_SERVICE\020\017\022\022\n" + "\016REDIS_INSTANCE\020\020\022\021\n\r" + "REDIS_CLUSTER\020\021\022\013\n" - + "\007GKE_POD\020\023\"\254\001\n" + + "\007GKE_POD\020\023\022\021\n\r" + + "CLOUD_RUN_JOB\020\024\"\254\001\n" + "\021GoogleServiceType\022#\n" + "\037GOOGLE_SERVICE_TYPE_UNSPECIFIED\020\000\022\007\n" + "\003IAP\020\001\022$\n" @@ -608,16 +616,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025PRIVATE_GOOGLE_ACCESS\020\004\022\031\n" + "\025SERVERLESS_VPC_ACCESS\020\005\"\211\003\n" + "\013ForwardInfo\022E\n" - + "\006target\030\001 " - + "\001(\01625.google.cloud.networkmanagement.v1.ForwardInfo.Target\022\024\n" + + "\006target\030\001" + + " \001(\01625.google.cloud.networkmanagement.v1.ForwardInfo.Target\022\024\n" + "\014resource_uri\030\002 \001(\t\022\034\n\n" + "ip_address\030\003 \001(\tB\010\342\214\317\327\010\002\010\004\"\376\001\n" + "\006Target\022\026\n" + "\022TARGET_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" - + "\n" + + "\014INTERCONNECT\020\003\022\022\n\n" + "GKE_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" @@ -627,8 +634,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030SECURE_WEB_PROXY_GATEWAY\020\n" + "\"\205\r\n" + "\tAbortInfo\022A\n" - + "\005cause\030\001 \001(\01622.g" - + "oogle.cloud.networkmanagement.v1.AbortInfo.Cause\022\024\n" + + "\005cause\030\001 \001" + + "(\01622.google.cloud.networkmanagement.v1.AbortInfo.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_missing_permission\030\003 \003(\t\"\333\013\n" @@ -678,16 +685,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ")UNSUPPORTED_GOOGLE_MANAGED_PROJECT_CONFIG\020\037\022\033\n" + "\027NO_SERVERLESS_IP_RANGES\020%\022 \n" + "\034IP_VERSION_PROTOCOL_MISMATCH\020(\022%\n" - + "!GKE_POD_UNKNOWN_ENDPOINT_LOCATION\020)\"\261\"\n" + + "!GKE_POD_UNKNOWN_ENDPOINT_LOCATION\020)\"\316\"\n" + "\010DropInfo\022@\n" - + "\005cause\030\001 \001(\01621.google.clo" - + "ud.networkmanagement.v1.DropInfo.Cause\022\024\n" + + "\005cause\030\001 \001(\01621.goog" + + "le.cloud.networkmanagement.v1.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\022\037\n" + "\027source_geolocation_code\030\006 \001(\t\022$\n" - + "\034destination_geolocation_code\030\007 \001(\t\"\312 \n" + + "\034destination_geolocation_code\030\007 \001(\t\"\347 \n" + "\005Cause\022\025\n" + "\021CAUSE_UNSPECIFIED\020\000\022\034\n" + "\030UNKNOWN_EXTERNAL_ADDRESS\020\001\022\031\n" @@ -752,12 +759,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*PSC_NEG_PRODUCER_ENDPOINT_NO_GLOBAL_ACCESS\0200\0223\n" + "/PSC_NEG_PRODUCER_FORWARDING_RULE_MULTIPLE_PORTS\0206\022!\n" + "\035CLOUD_SQL_PSC_NEG_UNSUPPORTED\020:\022-\n" - + ")NO_NAT_SUBNETS_FOR_PSC_SERVICE_ATTACHMENT\0209\022#\n" + + ")NO_NAT_SUBNETS_FOR_", + "PSC_SERVICE_ATTACHMENT\0209\022#\n" + "\037PSC_TRANSITIVITY_NOT_PROPAGATED\020@\022(\n" + "$HYBRID_NEG_NON_DYNAMIC_ROUTE_MATCHED\0207\022.\n" - + "*HYBRID_NEG_NON_LOCA", - "L_DYNAMIC_ROUTE_MATCHED\0208\022 \n" - + "\034CLOUD_RUN_REVISION_NOT_READY\020\035\022\'\n" + + "*HYBRID_NEG_NON_LOCAL_DYNAMIC_ROUTE_MATCHED\0208\022 \n" + + "\034CLOUD_RUN_REVISION_NOT_READY\020\035\022\033\n" + + "\027CLOUD_RUN_JOB_NOT_READY\020q\022\'\n" + "#DROPPED_INSIDE_PSC_SERVICE_PRODUCER\020%\022%\n" + "!LOAD_BALANCER_HAS_NO_PROXY_SUBNET\020\'\022\032\n" + "\026CLOUD_NAT_NO_ADDRESSES\020(\022\020\n" @@ -808,8 +816,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ip_address\030\002 \001(\tB\010\342\214\317\327\010\002\010\004\022\023\n" + "\013network_uri\030\003 \001(\t\"\277\003\n" + "\031IpMasqueradingSkippedInfo\022S\n" - + "\006reason\030\001 \001(\0162C.google.cloud.n" - + "etworkmanagement.v1.IpMasqueradingSkippedInfo.Reason\022\034\n" + + "\006reason\030\001 \001(\0162C.google.cloud.networ" + + "kmanagement.v1.IpMasqueradingSkippedInfo.Reason\022\034\n" + "\024non_masquerade_range\030\002 \001(\t\"\256\002\n" + "\006Reason\022\026\n" + "\022REASON_UNSPECIFIED\020\000\0225\n" @@ -826,8 +834,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tdirection\030\003 \001(\t\022\016\n" + "\006action\030\004 \001(\t\"\336\002\n" + "\033GkeNetworkPolicySkippedInfo\022U\n" - + "\006reason\030\001 \001(\0162E.google.cloud.networkmanageme" - + "nt.v1.GkeNetworkPolicySkippedInfo.Reason\"\347\001\n" + + "\006reason\030\001" + + " \001(\0162E.google.cloud.networkmanagement.v1.GkeNetworkPolicySkippedInfo.Reason\"\347\001\n" + "\006Reason\022\026\n" + "\022REASON_UNSPECIFIED\020\000\022\033\n" + "\027NETWORK_POLICY_DISABLED\020\001\022\037\n" @@ -867,7 +875,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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" + + "\013service_uri\030\005 \001(\t\"F\n" + + "\017CloudRunJobInfo\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\"_\n" + "\024AppEngineVersionInfo\022\024\n" + "\014display_name\030\001 \001(\t\022\013\n" + "\003uri\030\002 \001(\t\022\017\n" @@ -889,8 +901,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007NatInfo\022=\n" + "\004type\030\001 \001(\0162/.google.cloud.networkmanagement.v1.NatInfo.Type\022\020\n" + "\010protocol\030\002 \001(\t\022\023\n" - + "\013network_uri\030\003 \001(\t\022\025\n" - + "\r" + + "\013network_uri\030\003 \001(\t\022\025\n\r" + "old_source_ip\030\004 \001(\t\022\025\n\r" + "new_source_ip\030\005 \001(\t\022\032\n" + "\022old_destination_ip\030\006 \001(\t\022\032\n" @@ -903,8 +914,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "router_uri\030\014 \001(\t\022\030\n" + "\020nat_gateway_name\030\r" + " \001(\t\022^\n" - + "\026cloud_nat_gateway_type\030\016" - + " \001(\0162>.google.cloud.networkmanagement.v1.NatInfo.CloudNatGatewayType\"\231\001\n" + + "\026cloud_nat_gateway_type\030\016 \001(\0162>.goo" + + "gle.cloud.networkmanagement.v1.NatInfo.CloudNatGatewayType\"\231\001\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\030\n" + "\024INTERNAL_TO_EXTERNAL\020\001\022\030\n" @@ -943,8 +954,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025psc_google_api_target\030\n" + " \001(\t\022\030\n" + "\020health_check_uri\030\006 \001(\t\022\214\001\n" - + "#health_check_firewalls_config_state\030\007 \001(\0162Z.google.cloud.networkmanagem" - + "ent.v1.LoadBalancerBackendInfo.HealthCheckFirewallsConfigStateB\003\340A\003\"\315\001\n" + + "#health_check_firewalls_config_state\030\007 \001(\0162Z." + + "google.cloud.networkmanagement.v1.LoadBa" + + "lancerBackendInfo.HealthCheckFirewallsConfigStateB\003\340A\003\"\315\001\n" + "\037HealthCheckFirewallsConfigState\0223\n" + "/HEALTH_CHECK_FIREWALLS_CONFIG_STATE_UNSPECIFIED\020\000\022\030\n" + "\024FIREWALLS_CONFIGURED\020\001\022\"\n" @@ -971,10 +983,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036TCP_UDP_INTERNAL_LOAD_BALANCER\020\n" + "B\371\001\n" + "%com.google.cloud.networkmanagement.v1B\n" - + "TraceProtoP\001ZScloud.google.com/go/networkmana" - + "gement/apiv1/networkmanagementpb;networkmanagementpb\252\002!Google.Cloud.NetworkManag" - + "ement.V1\312\002!Google\\Cloud\\NetworkManagemen" - + "t\\V1\352\002$Google::Cloud::NetworkManagement::V1b\006proto3" + + "TraceProtoP\001ZScloud.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( @@ -1031,6 +1044,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CloudFunction", "AppEngineVersion", "CloudRunRevision", + "CloudRunJob", "Nat", "ProxyConnection", "LoadBalancerBackendInfo", @@ -1351,8 +1365,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DisplayName", "Uri", "Location", "ServiceUri", }); - internal_static_google_cloud_networkmanagement_v1_AppEngineVersionInfo_descriptor = + internal_static_google_cloud_networkmanagement_v1_CloudRunJobInfo_descriptor = getDescriptor().getMessageType(29); + internal_static_google_cloud_networkmanagement_v1_CloudRunJobInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_networkmanagement_v1_CloudRunJobInfo_descriptor, + new java.lang.String[] { + "DisplayName", "Uri", "Location", + }); + internal_static_google_cloud_networkmanagement_v1_AppEngineVersionInfo_descriptor = + getDescriptor().getMessageType(30); internal_static_google_cloud_networkmanagement_v1_AppEngineVersionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_AppEngineVersionInfo_descriptor, @@ -1360,7 +1382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "Runtime", "Environment", }); internal_static_google_cloud_networkmanagement_v1_VpcConnectorInfo_descriptor = - getDescriptor().getMessageType(30); + getDescriptor().getMessageType(31); internal_static_google_cloud_networkmanagement_v1_VpcConnectorInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_VpcConnectorInfo_descriptor, @@ -1368,7 +1390,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisplayName", "Uri", "Location", }); internal_static_google_cloud_networkmanagement_v1_DirectVpcEgressConnectionInfo_descriptor = - getDescriptor().getMessageType(31); + getDescriptor().getMessageType(32); internal_static_google_cloud_networkmanagement_v1_DirectVpcEgressConnectionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_DirectVpcEgressConnectionInfo_descriptor, @@ -1376,7 +1398,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkUri", "SubnetworkUri", "SelectedIpRange", "SelectedIpAddress", "Region", }); internal_static_google_cloud_networkmanagement_v1_ServerlessExternalConnectionInfo_descriptor = - getDescriptor().getMessageType(32); + getDescriptor().getMessageType(33); internal_static_google_cloud_networkmanagement_v1_ServerlessExternalConnectionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_ServerlessExternalConnectionInfo_descriptor, @@ -1384,7 +1406,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SelectedIpAddress", }); internal_static_google_cloud_networkmanagement_v1_NatInfo_descriptor = - getDescriptor().getMessageType(33); + getDescriptor().getMessageType(34); internal_static_google_cloud_networkmanagement_v1_NatInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_NatInfo_descriptor, @@ -1405,7 +1427,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CloudNatGatewayType", }); internal_static_google_cloud_networkmanagement_v1_ProxyConnectionInfo_descriptor = - getDescriptor().getMessageType(34); + getDescriptor().getMessageType(35); internal_static_google_cloud_networkmanagement_v1_ProxyConnectionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_ProxyConnectionInfo_descriptor, @@ -1423,7 +1445,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NetworkUri", }); internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackendInfo_descriptor = - getDescriptor().getMessageType(35); + getDescriptor().getMessageType(36); internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackendInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_LoadBalancerBackendInfo_descriptor, @@ -1440,7 +1462,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HealthCheckFirewallsConfigState", }); internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_descriptor = - getDescriptor().getMessageType(36); + getDescriptor().getMessageType(37); internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_StorageBucketInfo_descriptor, @@ -1448,7 +1470,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Bucket", }); internal_static_google_cloud_networkmanagement_v1_ServerlessNegInfo_descriptor = - getDescriptor().getMessageType(37); + getDescriptor().getMessageType(38); internal_static_google_cloud_networkmanagement_v1_ServerlessNegInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_ServerlessNegInfo_descriptor, @@ -1456,7 +1478,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "NegUri", }); internal_static_google_cloud_networkmanagement_v1_NgfwPacketInspectionInfo_descriptor = - getDescriptor().getMessageType(38); + getDescriptor().getMessageType(39); internal_static_google_cloud_networkmanagement_v1_NgfwPacketInspectionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_networkmanagement_v1_NgfwPacketInspectionInfo_descriptor, 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 f73063521d65..bf40d970ba06 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 @@ -267,6 +267,13 @@ message Endpoint { // Applicable only to source endpoint. CloudRunRevisionEndpoint cloud_run_revision = 12; + // A [Cloud Run](https://cloud.google.com/run) + // [job](https://docs.cloud.google.com/run/docs/reference/rest/v2/projects.locations.jobs#Job) + // URI. + // Applicable only to source endpoint. + // The format is: projects/{project}/locations/{location}/jobs/{job} + string cloud_run_job = 24; + // A VPC network URI. For source endpoints, used according to the // `network_type`. For destination endpoints, used only when the source is an // external IP address endpoint, and the destination is an internal IP address 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 78794b6348ee..2ddd2c4d61e7 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 @@ -118,6 +118,10 @@ message Step { // A CloudRunRevisionInfo is populated with starting revision information. START_FROM_CLOUD_RUN_REVISION = 26; + // Initial state: packet originating from a Cloud Run Job. + // A CloudRunJobInfo is populated with starting Job information. + START_FROM_CLOUD_RUN_JOB = 50; + // Initial state: packet originating from a Storage Bucket. Used only for // return traces. // The storage_bucket information is populated. @@ -349,6 +353,9 @@ message Step { // Display information of a Cloud Run revision. CloudRunRevisionInfo cloud_run_revision = 23; + // Display information of a Cloud Run job. + CloudRunJobInfo cloud_run_job = 45; + // Display information of a NAT. NatInfo nat = 25; @@ -1151,6 +1158,9 @@ message DeliverInfo { // Target is a GKE Pod. GKE_POD = 19; + + // Target is a Cloud Run Job. Used only for return traces. + CLOUD_RUN_JOB = 20; } // Recognized type of a Google Service. @@ -1712,6 +1722,9 @@ message DropInfo { // Packet sent from a Cloud Run revision that is not ready. CLOUD_RUN_REVISION_NOT_READY = 29; + // Packet sent from a Cloud Run job that is not ready. + CLOUD_RUN_JOB_NOT_READY = 113; + // Packet was dropped inside Private Service Connect service producer. DROPPED_INSIDE_PSC_SERVICE_PRODUCER = 37; @@ -2119,6 +2132,18 @@ message CloudRunRevisionInfo { string service_uri = 5; } +// For display only. Metadata associated with a Cloud Run job. +message CloudRunJobInfo { + // Name of a Cloud Run job. + string display_name = 1; + + // URI of a Cloud Run job. + string uri = 2; + + // Location in which this job is deployed. + string location = 3; +} + // For display only. Metadata associated with an App Engine version. message AppEngineVersionInfo { // Name of an App Engine version. diff --git a/librarian.yaml b/librarian.yaml index e59852a4a4dc..047d6eb8723a 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -16,8 +16,8 @@ version: v0.21.1-0.20260617000028-820646f3db93 repo: googleapis/google-cloud-java sources: googleapis: - commit: 1df255f1feb82e85ec0c8a3b558857e8ca3d3372 - sha256: 75d9ff8bb7174f6bea0e5ee24aae7b59238a906a878392dccc9b3e0e1226d179 + commit: 4679f0c8e33ba14d27612bd607649e1f867a881c + sha256: 35131934f78f0eb4499feb17845ca0c060d3cfc506e0d1d626fbb1bce4d70e23 showcase: commit: 328bec7ce4c1fb77c37fdf1868d0506bc02a70fc sha256: 8df187486e37edf5a78c1646c859c311bc452871b9ba4641d93149d3c53450a2 From b721e435849e3e4a0d0cecd8d09e18bd989f4205 Mon Sep 17 00:00:00 2001 From: werman Date: Mon, 22 Jun 2026 13:13:54 -0700 Subject: [PATCH 49/82] feat(auth): Add support for Regional Access Boundaries (#13499) The Regional Access Boundaries PR to main. Contains all the changes merged to the feature branch rebased on top of main. P.S. Opening the PR directly to main as feature branch regional-access-boundaries has drifted from main and opening a rebased-PR to the feature branch shows 5k+ lines of code diff. --- .../auth/oauth2/ComputeEngineCredentials.java | 29 +- ...ernalAccountAuthorizedUserCredentials.java | 30 +- .../oauth2/ExternalAccountCredentials.java | 49 ++- .../google/auth/oauth2/GoogleCredentials.java | 210 +++++++++- .../auth/oauth2/ImpersonatedCredentials.java | 15 +- .../google/auth/oauth2/OAuth2Credentials.java | 30 +- .../com/google/auth/oauth2/OAuth2Utils.java | 17 + .../auth/oauth2/RegionalAccessBoundary.java | 255 ++++++++++++ .../oauth2/RegionalAccessBoundaryManager.java | 298 +++++++++++++ .../RegionalAccessBoundaryProvider.java | 50 +++ .../oauth2/ServiceAccountCredentials.java | 39 +- .../javatests/com/google/auth/TestUtils.java | 9 +- .../auth/oauth2/AwsCredentialsTest.java | 90 ++++ .../oauth2/ComputeEngineCredentialsTest.java | 149 ++++++- ...lAccountAuthorizedUserCredentialsTest.java | 113 ++++- .../ExternalAccountCredentialsTest.java | 302 +++++++++++++- .../auth/oauth2/GoogleCredentialsTest.java | 390 ++++++++++++++++++ .../auth/oauth2/IdTokenCredentialsTest.java | 4 + .../oauth2/IdentityPoolCredentialsTest.java | 108 ++++- .../oauth2/ImpersonatedCredentialsTest.java | 64 +++ .../com/google/auth/oauth2/LoggingTest.java | 13 +- ...ckExternalAccountCredentialsTransport.java | 31 +- .../MockIAMCredentialsServiceTransport.java | 25 ++ .../oauth2/MockMetadataServerTransport.java | 43 +- .../google/auth/oauth2/MockStsTransport.java | 19 + .../auth/oauth2/MockTokenServerTransport.java | 49 +++ .../oauth2/PluggableAuthCredentialsTest.java | 48 +++ .../oauth2/RegionalAccessBoundaryTest.java | 337 +++++++++++++++ .../oauth2/ServiceAccountCredentialsTest.java | 144 ++++++- .../com/google/auth/oauth2/TestUtils.java | 5 + .../samples/snippets/pom.xml | 1 - 31 files changed, 2916 insertions(+), 50 deletions(-) create mode 100644 google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundary.java create mode 100644 google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundaryManager.java create mode 100644 google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundaryProvider.java create mode 100644 google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/RegionalAccessBoundaryTest.java diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ComputeEngineCredentials.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ComputeEngineCredentials.java index ad5fb8e7dcf3..c5b8e0d3adbf 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ComputeEngineCredentials.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ComputeEngineCredentials.java @@ -41,6 +41,7 @@ import com.google.api.client.http.HttpStatusCodes; import com.google.api.client.json.JsonObjectParser; import com.google.api.client.util.GenericData; +import com.google.api.core.InternalApi; import com.google.auth.CredentialTypeForMetrics; import com.google.auth.Credentials; import com.google.auth.Retryable; @@ -71,6 +72,7 @@ import java.util.Objects; import java.util.logging.Level; import java.util.logging.Logger; +import java.util.regex.Pattern; /** * OAuth2 credentials representing the built-in service account for a Google Compute Engine VM. @@ -80,7 +82,7 @@ *

              These credentials use the IAM API to sign data. See {@link #sign(byte[])} for more details. */ public class ComputeEngineCredentials extends GoogleCredentials - implements ServiceAccountSigner, IdTokenProvider { + implements ServiceAccountSigner, IdTokenProvider, RegionalAccessBoundaryProvider { static final String METADATA_RESPONSE_EMPTY_CONTENT_ERROR_MESSAGE = "Empty content from metadata token server request."; @@ -116,6 +118,7 @@ public class ComputeEngineCredentials extends GoogleCredentials private static final String PARSE_ERROR_PREFIX = "Error parsing token refresh response. "; private static final String PARSE_ERROR_ACCOUNT = "Error parsing service account response. "; + private static final Pattern EMAIL_PATTERN = Pattern.compile("^[^@]+@[^@]+\\.[^@]+$"); private static final long serialVersionUID = -4113476462526554235L; private final String transportFactoryClassName; @@ -454,7 +457,6 @@ public AccessToken refreshAccessToken() throws IOException { int expiresInSeconds = OAuth2Utils.validateInt32(responseData, "expires_in", PARSE_ERROR_PREFIX); long expiresAtMilliseconds = clock.currentTimeMillis() + expiresInSeconds * 1000; - return new AccessToken(accessToken, new Date(expiresAtMilliseconds)); } @@ -779,6 +781,11 @@ public static Builder newBuilder() { * * @throws RuntimeException if the default service account cannot be read */ + @Override + HttpTransportFactory getTransportFactory() { + return transportFactory; + } + @Override // todo(#314) getAccount should not throw a RuntimeException public String getAccount() { @@ -792,6 +799,24 @@ public String getAccount() { return principal; } + @InternalApi + @Override + public String getRegionalAccessBoundaryUrl() throws IOException { + String account = getAccount(); + // The MDS may return a non-email value for the account and we should skip RAB refresh in that + // scenario. + if (account == null || !EMAIL_PATTERN.matcher(account).matches()) { + LoggingUtils.log( + LOGGER_PROVIDER, + Level.INFO, + Collections.emptyMap(), + "Unable to retrieve this instance's email and will skip the regional request routing. Proceeding with request"); + return null; + } + return String.format( + OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_SERVICE_ACCOUNT, account); + } + /** * Signs the provided bytes using the private key associated with the service account. * diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountAuthorizedUserCredentials.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountAuthorizedUserCredentials.java index b274fec76c65..08f04b60f39d 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountAuthorizedUserCredentials.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountAuthorizedUserCredentials.java @@ -31,7 +31,9 @@ package com.google.auth.oauth2; +import static com.google.auth.oauth2.OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKFORCE_POOL; import static com.google.auth.oauth2.OAuth2Utils.JSON_FACTORY; +import static com.google.auth.oauth2.OAuth2Utils.WORKFORCE_AUDIENCE_PATTERN; import com.google.api.client.http.GenericUrl; import com.google.api.client.http.HttpHeaders; @@ -43,6 +45,7 @@ import com.google.api.client.json.JsonObjectParser; import com.google.api.client.util.GenericData; import com.google.api.client.util.Preconditions; +import com.google.api.core.InternalApi; import com.google.auth.http.HttpTransportFactory; import com.google.common.base.MoreObjects; import com.google.common.io.BaseEncoding; @@ -54,6 +57,7 @@ import java.util.Date; import java.util.Map; import java.util.Objects; +import java.util.regex.Matcher; import javax.annotation.Nullable; /** @@ -74,7 +78,8 @@ * } * */ -public class ExternalAccountAuthorizedUserCredentials extends GoogleCredentials { +public class ExternalAccountAuthorizedUserCredentials extends GoogleCredentials + implements RegionalAccessBoundaryProvider { private static final LoggerProvider LOGGER_PROVIDER = LoggerProvider.forClazz(ExternalAccountAuthorizedUserCredentials.class); @@ -229,6 +234,29 @@ public AccessToken refreshAccessToken() throws IOException { .build(); } + @InternalApi + @Override + public String getRegionalAccessBoundaryUrl() throws IOException { + String audience = getAudience(); + if (audience == null) { + throw new IllegalStateException( + "The audience is null, which is not in the correct format for a workforce pool."); + } + Matcher matcher = WORKFORCE_AUDIENCE_PATTERN.matcher(audience); + if (!matcher.matches()) { + throw new IllegalStateException( + "The provided audience is not in the correct format for a workforce pool. " + + "Refer: https://docs.cloud.google.com/iam/docs/principal-identifiers"); + } + String poolId = matcher.group("pool"); + return String.format(IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKFORCE_POOL, poolId); + } + + @Override + HttpTransportFactory getTransportFactory() { + return transportFactory; + } + @Nullable public String getAudience() { return audience; diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountCredentials.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountCredentials.java index 47cb398d26bf..52ae3925c600 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountCredentials.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountCredentials.java @@ -31,11 +31,14 @@ package com.google.auth.oauth2; +import static com.google.auth.oauth2.OAuth2Utils.WORKFORCE_AUDIENCE_PATTERN; +import static com.google.auth.oauth2.OAuth2Utils.WORKLOAD_AUDIENCE_PATTERN; import static com.google.common.base.Preconditions.checkNotNull; import com.google.api.client.http.HttpHeaders; import com.google.api.client.json.GenericJson; import com.google.api.client.util.Data; +import com.google.api.core.InternalApi; import com.google.auth.RequestMetadataCallback; import com.google.auth.http.HttpTransportFactory; import com.google.common.base.MoreObjects; @@ -54,6 +57,7 @@ import java.util.Locale; import java.util.Map; import java.util.concurrent.Executor; +import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.annotation.Nullable; @@ -63,7 +67,8 @@ *

              Handles initializing external credentials, calls to the Security Token Service, and service * account impersonation. */ -public abstract class ExternalAccountCredentials extends GoogleCredentials { +public abstract class ExternalAccountCredentials extends GoogleCredentials + implements RegionalAccessBoundaryProvider { private static final long serialVersionUID = 8049126194174465023L; @@ -577,6 +582,11 @@ protected AccessToken exchangeExternalCredentialForAccessToken( */ public abstract String retrieveSubjectToken() throws IOException; + @Override + HttpTransportFactory getTransportFactory() { + return transportFactory; + } + public String getAudience() { return audience; } @@ -620,6 +630,43 @@ public String getServiceAccountEmail() { return ImpersonatedCredentials.extractTargetPrincipal(serviceAccountImpersonationUrl); } + @InternalApi + @Override + public String getRegionalAccessBoundaryUrl() throws IOException { + if (getServiceAccountEmail() != null) { + return String.format( + OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_SERVICE_ACCOUNT, + getServiceAccountEmail()); + } + + String audience = getAudience(); + if (audience == null) { + throw new IllegalStateException( + "The audience is null, which is not in a valid format for either a workload identity pool or a workforce pool."); + } + + Matcher workforceMatcher = WORKFORCE_AUDIENCE_PATTERN.matcher(audience); + if (workforceMatcher.matches()) { + String poolId = workforceMatcher.group("pool"); + return String.format( + OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKFORCE_POOL, poolId); + } + + Matcher workloadMatcher = WORKLOAD_AUDIENCE_PATTERN.matcher(audience); + if (workloadMatcher.matches()) { + String projectNumber = workloadMatcher.group("project"); + String poolId = workloadMatcher.group("pool"); + return String.format( + OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKLOAD_POOL, + projectNumber, + poolId); + } + + throw new IllegalStateException( + "The provided audience is not in a valid format for either a workload identity pool or a workforce pool." + + " Refer: https://docs.cloud.google.com/iam/docs/principal-identifiers"); + } + @Nullable public String getClientId() { return clientId; diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/GoogleCredentials.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/GoogleCredentials.java index 7395274c4786..e423a68ac18b 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/GoogleCredentials.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/GoogleCredentials.java @@ -36,6 +36,8 @@ import com.google.api.client.util.Preconditions; import com.google.api.core.ObsoleteApi; import com.google.auth.Credentials; +import com.google.auth.RequestMetadataCallback; +import com.google.auth.http.AuthHttpConstants; import com.google.auth.http.HttpTransportFactory; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.MoreObjects; @@ -46,6 +48,8 @@ import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.io.IOException; import java.io.InputStream; +import java.io.ObjectInputStream; +import java.net.URI; import java.nio.charset.StandardCharsets; import java.time.Duration; import java.util.Collection; @@ -106,6 +110,9 @@ String getFileType() { private final String universeDomain; private final boolean isExplicitUniverseDomain; + transient RegionalAccessBoundaryManager regionalAccessBoundaryManager = + new RegionalAccessBoundaryManager(clock); + protected final String quotaProjectId; private static final DefaultCredentialsProvider defaultCredentialsProvider = @@ -347,6 +354,139 @@ public GoogleCredentials createWithQuotaProject(String quotaProject) { return this.toBuilder().setQuotaProjectId(quotaProject).build(); } + /** + * Returns the currently cached regional access boundary, or null if none is available or if it + * has expired. + * + * @return The cached regional access boundary, or null. + */ + final RegionalAccessBoundary getRegionalAccessBoundary() { + return regionalAccessBoundaryManager.getCachedRAB(); + } + + /** + * Refreshes the Regional Access Boundary if it is expired or not yet fetched. + * + * @param uri The URI of the outbound request. + * @param token The access token to use for the refresh. + * @throws IOException If getting the universe domain fails. + */ + void refreshRegionalAccessBoundaryIfExpired(@Nullable URI uri, @Nullable AccessToken token) + throws IOException { + if (!(this instanceof RegionalAccessBoundaryProvider) || !isDefaultUniverseDomain()) { + return; + } + + // Skip refresh for regional endpoints. + if (uri != null && uri.getHost() != null) { + String host = uri.getHost(); + if (host.endsWith(".rep.googleapis.com") || host.endsWith(".rep.sandbox.googleapis.com")) { + return; + } + } + + // We need a valid access token for the refresh. + if (token == null + || (token.getExpirationTimeMillis() != null + && token.getExpirationTimeMillis() < clock.currentTimeMillis())) { + return; + } + + HttpTransportFactory transportFactory = getTransportFactory(); + if (transportFactory == null) { + return; + } + + regionalAccessBoundaryManager.triggerAsyncRefresh( + transportFactory, (RegionalAccessBoundaryProvider) this, token); + } + + /** + * Extracts the self-signed JWT from the request metadata and triggers a Regional Access Boundary + * refresh if expired. + * + * @param uri The URI of the outbound request. + * @param requestMetadata The request metadata containing the authorization header. + */ + void refreshRegionalAccessBoundaryWithSelfSignedJwtIfExpired( + @Nullable URI uri, Map> requestMetadata) { + List authHeaders = requestMetadata.get(AuthHttpConstants.AUTHORIZATION); + if (authHeaders != null && !authHeaders.isEmpty()) { + String authHeader = authHeaders.get(0); + if (authHeader.startsWith(AuthHttpConstants.BEARER + " ")) { + String tokenValue = authHeader.substring((AuthHttpConstants.BEARER + " ").length()); + // Use a null expiration as JWTs are short-lived anyway. + AccessToken wrappedToken = new AccessToken(tokenValue, null); + try { + refreshRegionalAccessBoundaryIfExpired(uri, wrappedToken); + } catch (IOException e) { + // Ignore failure in async refresh trigger. + } + } + } + } + + /** + * Synchronously provides the request metadata. + * + *

              This method is blocking and will wait for a token refresh if necessary. It also ensures any + * available Regional Access Boundary information is included in the metadata. + * + * @param uri The URI of the request. + * @return The request metadata containing the authorization header and potentially regional + * access boundary. + * @throws IOException If an error occurs while fetching the token. + */ + @Override + public Map> getRequestMetadata(URI uri) throws IOException { + Map> metadata = super.getRequestMetadata(uri); + metadata = addRegionalAccessBoundaryToRequestMetadata(uri, metadata); + try { + // Sets off an async refresh for request-metadata. + refreshRegionalAccessBoundaryIfExpired(uri, getAccessToken()); + } catch (IOException e) { + // Ignore failure in async refresh trigger. + } + return metadata; + } + + /** + * Asynchronously provides the request metadata. + * + *

              This method is non-blocking. It ensures any available Regional Access Boundary information + * is included in the metadata. + * + * @param uri The URI of the request. + * @param executor The executor to use for any required background tasks. + * @param callback The callback to receive the metadata or any error. + */ + @Override + public void getRequestMetadata( + final URI uri, + final java.util.concurrent.Executor executor, + final RequestMetadataCallback callback) { + super.getRequestMetadata( + uri, + executor, + new RequestMetadataCallback() { + @Override + public void onSuccess(Map> metadata) { + metadata = addRegionalAccessBoundaryToRequestMetadata(uri, metadata); + try { + refreshRegionalAccessBoundaryIfExpired(uri, getAccessToken()); + } catch (IOException e) { + // Ignore failure in async refresh trigger. + } + callback.onSuccess(metadata); + } + + @Override + public void onFailure(Throwable exception) { + callback.onFailure(exception); + } + }); + } + /** * Gets the universe domain for the credential. * @@ -390,22 +530,59 @@ boolean isDefaultUniverseDomain() throws IOException { static Map> addQuotaProjectIdToRequestMetadata( String quotaProjectId, Map> requestMetadata) { Preconditions.checkNotNull(requestMetadata); - Map> newRequestMetadata = new HashMap<>(requestMetadata); if (quotaProjectId != null && !requestMetadata.containsKey(QUOTA_PROJECT_ID_HEADER_KEY)) { - newRequestMetadata.put( - QUOTA_PROJECT_ID_HEADER_KEY, Collections.singletonList(quotaProjectId)); + return ImmutableMap.>builder() + .putAll(requestMetadata) + .put(QUOTA_PROJECT_ID_HEADER_KEY, Collections.singletonList(quotaProjectId)) + .build(); + } + return requestMetadata; + } + + /** + * Adds Regional Access Boundary header to requestMetadata if available. Overwrites if present. If + * the current RAB is null, it removes any stale header that might have survived serialization. + * + * @param uri The URI of the request. + * @param requestMetadata The request metadata. + * @return a new map with Regional Access Boundary header added, updated, or removed + */ + Map> addRegionalAccessBoundaryToRequestMetadata( + URI uri, Map> requestMetadata) { + Preconditions.checkNotNull(requestMetadata); + + if (uri != null && uri.getHost() != null) { + String host = uri.getHost(); + if (host.endsWith(".rep.googleapis.com") || host.endsWith(".rep.sandbox.googleapis.com")) { + return requestMetadata; + } } - return Collections.unmodifiableMap(newRequestMetadata); + + RegionalAccessBoundary rab = getRegionalAccessBoundary(); + if (rab != null) { + // Overwrite the header to ensure the most recent async update is used, + // preventing staleness if the token itself hasn't expired yet. + Map> newMetadata = new HashMap<>(requestMetadata); + newMetadata.put( + RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY, + Collections.singletonList(rab.getEncodedLocations())); + return ImmutableMap.copyOf(newMetadata); + } else if (requestMetadata.containsKey(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)) { + // If RAB is null but the header exists (e.g., from a serialized cache), we must strip it + // to prevent sending stale data to the server. + Map> newMetadata = new HashMap<>(requestMetadata); + newMetadata.remove(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY); + return ImmutableMap.copyOf(newMetadata); + } + return requestMetadata; } @Override protected Map> getAdditionalHeaders() { - Map> headers = super.getAdditionalHeaders(); + Map> headers = new HashMap<>(super.getAdditionalHeaders()); + String quotaProjectId = this.getQuotaProjectId(); - if (quotaProjectId != null) { - return addQuotaProjectIdToRequestMetadata(quotaProjectId, headers); - } - return headers; + return addQuotaProjectIdToRequestMetadata(quotaProjectId, headers); } /** Default constructor. */ @@ -516,6 +693,11 @@ public int hashCode() { return Objects.hash(this.quotaProjectId, this.universeDomain, this.isExplicitUniverseDomain); } + private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException { + input.defaultReadObject(); + regionalAccessBoundaryManager = new RegionalAccessBoundaryManager(clock); + } + public static Builder newBuilder() { return new Builder(); } @@ -651,6 +833,16 @@ public Map getCredentialInfo() { return ImmutableMap.copyOf(infoMap); } + /** + * Returns the transport factory used by the credential. + * + * @return the transport factory, or null if not available. + */ + @Nullable + HttpTransportFactory getTransportFactory() { + return null; + } + public static class Builder extends OAuth2Credentials.Builder { @Nullable protected String quotaProjectId; @Nullable protected String universeDomain; diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ImpersonatedCredentials.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ImpersonatedCredentials.java index 34716d92b552..ede86c646d95 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ImpersonatedCredentials.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ImpersonatedCredentials.java @@ -44,6 +44,7 @@ import com.google.api.client.json.GenericJson; import com.google.api.client.json.JsonObjectParser; import com.google.api.client.util.GenericData; +import com.google.api.core.InternalApi; import com.google.api.core.ObsoleteApi; import com.google.auth.CredentialTypeForMetrics; import com.google.auth.ServiceAccountSigner; @@ -98,7 +99,7 @@ * */ public class ImpersonatedCredentials extends GoogleCredentials - implements ServiceAccountSigner, IdTokenProvider { + implements ServiceAccountSigner, IdTokenProvider, RegionalAccessBoundaryProvider { private static final long serialVersionUID = -2133257318957488431L; private static final int TWELVE_HOURS_IN_SECONDS = 43200; @@ -327,10 +328,22 @@ public GoogleCredentials getSourceCredentials() { return sourceCredentials; } + @InternalApi + @Override + public String getRegionalAccessBoundaryUrl() throws IOException { + return String.format( + OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_SERVICE_ACCOUNT, getAccount()); + } + int getLifetime() { return this.lifetime; } + @Override + HttpTransportFactory getTransportFactory() { + return transportFactory; + } + public void setTransportFactory(HttpTransportFactory httpTransportFactory) { this.transportFactory = httpTransportFactory; } diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/OAuth2Credentials.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/OAuth2Credentials.java index e17714c3eee8..ef1225d19a73 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/OAuth2Credentials.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/OAuth2Credentials.java @@ -62,7 +62,6 @@ import java.util.Map; import java.util.Objects; import java.util.ServiceLoader; -import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concurrent.Executor; import javax.annotation.Nullable; @@ -167,6 +166,16 @@ Duration getExpirationMargin() { return this.expirationMargin; } + /** + * Asynchronously provides the request metadata by ensuring there is a current access token and + * providing it as an authorization bearer token. + * + *

              This method is non-blocking. The results are provided through the given callback. + * + * @param uri The URI of the request. + * @param executor The executor to use for any required background tasks. + * @param callback The callback to receive the metadata or any error. + */ @Override public void getRequestMetadata( final URI uri, Executor executor, final RequestMetadataCallback callback) { @@ -178,8 +187,14 @@ public void getRequestMetadata( } /** - * Provide the request metadata by ensuring there is a current access token and providing it as an - * authorization bearer token. + * Synchronously provides the request metadata by ensuring there is a current access token and + * providing it as an authorization bearer token. + * + *

              This method is blocking and will wait for a token refresh if necessary. + * + * @param uri The URI of the request. + * @return The request metadata containing the authorization header. + * @throws IOException If an error occurs while fetching the token. */ @Override public Map> getRequestMetadata(URI uri) throws IOException { @@ -267,11 +282,8 @@ private AsyncRefreshResult getOrCreateRefreshTask() { final ListenableFutureTask task = ListenableFutureTask.create( - new Callable() { - @Override - public OAuthValue call() throws Exception { - return OAuthValue.create(refreshAccessToken(), getAdditionalHeaders()); - } + () -> { + return OAuthValue.create(refreshAccessToken(), getAdditionalHeaders()); }); refreshTask = new RefreshTask(task, new RefreshTaskListener(task)); @@ -376,7 +388,7 @@ public AccessToken refreshAccessToken() throws IOException { /** * Provide additional headers to return as request metadata. * - * @return additional headers + * @return additional headers. */ protected Map> getAdditionalHeaders() { return EMPTY_EXTRA_HEADERS; diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/OAuth2Utils.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/OAuth2Utils.java index 643c3dc7dc65..84cb62390fe7 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/OAuth2Utils.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/OAuth2Utils.java @@ -68,6 +68,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.regex.Pattern; /** * Internal utilities for the com.google.auth.oauth2 namespace. @@ -123,6 +124,22 @@ enum Pkcs8Algorithm { static final double RETRY_MULTIPLIER = 2; static final int DEFAULT_NUMBER_OF_RETRIES = 3; + static final Pattern WORKFORCE_AUDIENCE_PATTERN = + Pattern.compile( + "^//iam.googleapis.com/locations/(?[^/]+)/workforcePools/(?[^/]+)/providers/(?[^/]+)$"); + static final Pattern WORKLOAD_AUDIENCE_PATTERN = + Pattern.compile( + "^//iam.googleapis.com/projects/(?[^/]+)/locations/(?[^/]+)/workloadIdentityPools/(?[^/]+)/providers/(?[^/]+)$"); + + static final String IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_SERVICE_ACCOUNT = + "https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/%s/allowedLocations"; + + static final String IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKFORCE_POOL = + "https://iamcredentials.googleapis.com/v1/locations/global/workforcePools/%s/allowedLocations"; + + static final String IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKLOAD_POOL = + "https://iamcredentials.googleapis.com/v1/projects/%s/locations/global/workloadIdentityPools/%s/allowedLocations"; + // Includes expected server errors from Google token endpoint // Other 5xx codes are either not used or retries are unlikely to succeed public static final Set TOKEN_ENDPOINT_RETRYABLE_STATUS_CODES = diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundary.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundary.java new file mode 100644 index 000000000000..444b35ef0328 --- /dev/null +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundary.java @@ -0,0 +1,255 @@ +/* + * Copyright 2026, Google LLC + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following disclaimer + * in the documentation and/or other materials provided with the + * distribution. + * + * * Neither the name of Google LLC nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package com.google.auth.oauth2; + +import com.google.api.client.http.GenericUrl; +import com.google.api.client.http.HttpBackOffIOExceptionHandler; +import com.google.api.client.http.HttpBackOffUnsuccessfulResponseHandler; +import com.google.api.client.http.HttpIOExceptionHandler; +import com.google.api.client.http.HttpRequest; +import com.google.api.client.http.HttpRequestFactory; +import com.google.api.client.http.HttpResponse; +import com.google.api.client.http.HttpUnsuccessfulResponseHandler; +import com.google.api.client.json.GenericJson; +import com.google.api.client.json.JsonObjectParser; +import com.google.api.client.util.Clock; +import com.google.api.client.util.ExponentialBackOff; +import com.google.api.client.util.Key; +import com.google.auth.http.HttpTransportFactory; +import com.google.common.base.MoreObjects; +import com.google.common.base.Preconditions; +import java.io.IOException; +import java.io.ObjectInputStream; +import java.io.Serializable; +import java.util.Collections; +import java.util.List; + +/** + * Represents the regional access boundary configuration for a credential. This class holds the + * information retrieved from the IAM `allowedLocations` endpoint. This data is then used to + * populate the `x-allowed-locations` header in outgoing API requests, which in turn allows Google's + * infrastructure to enforce regional security restrictions. This class does not perform any + * client-side validation or enforcement. + */ +final class RegionalAccessBoundary implements Serializable { + + static final String X_ALLOWED_LOCATIONS_HEADER_KEY = "x-allowed-locations"; + private static final long serialVersionUID = -2428522338274020302L; + + static final long TTL_MILLIS = 6 * 60 * 60 * 1000L; // 6 hours + static final long REFRESH_THRESHOLD_MILLIS = 1 * 60 * 60 * 1000L; // 1 hour + + private final String encodedLocations; + private final List locations; + private final long refreshTime; + private transient Clock clock; + + /** + * Creates a new RegionalAccessBoundary instance. + * + * @param encodedLocations The encoded string representation of the allowed locations. + * @param locations A list of human-readable location strings. + * @param clock The clock used to set the creation time. + */ + RegionalAccessBoundary(String encodedLocations, List locations, Clock clock) { + this( + encodedLocations, + locations, + clock != null ? clock.currentTimeMillis() : Clock.SYSTEM.currentTimeMillis(), + clock); + } + + /** + * Internal constructor for testing and manual creation with refresh time. + * + * @param encodedLocations The encoded string representation of the allowed locations. + * @param locations A list of human-readable location strings. + * @param refreshTime The time at which the information was last refreshed. + * @param clock The clock to use for expiration checks. + */ + RegionalAccessBoundary( + String encodedLocations, List locations, long refreshTime, Clock clock) { + this.encodedLocations = encodedLocations; + this.locations = + locations == null + ? Collections.emptyList() + : Collections.unmodifiableList(new java.util.ArrayList<>(locations)); + this.refreshTime = refreshTime; + this.clock = clock != null ? clock : Clock.SYSTEM; + } + + /** Returns the encoded string representation of the allowed locations. */ + public String getEncodedLocations() { + return encodedLocations; + } + + /** Returns a list of human-readable location strings. */ + public List getLocations() { + return locations; + } + + /** + * Checks if the regional access boundary data is expired. + * + * @return True if the data has expired based on the TTL, false otherwise. + */ + public boolean isExpired() { + return clock.currentTimeMillis() > refreshTime + TTL_MILLIS; + } + + /** + * Checks if the regional access boundary data should be refreshed. This is a "soft-expiry" check + * that allows for background refreshes before the data actually expires. + * + * @return True if the data is within the refresh threshold, false otherwise. + */ + public boolean shouldRefresh() { + return clock.currentTimeMillis() > refreshTime + (TTL_MILLIS - REFRESH_THRESHOLD_MILLIS); + } + + /** Represents the JSON response from the regional access boundary endpoint. */ + public static class RegionalAccessBoundaryResponse extends GenericJson { + @Key("encodedLocations") + private String encodedLocations; + + @Key("locations") + private List locations; + + /** Returns the encoded string representation of the allowed locations from the API response. */ + public String getEncodedLocations() { + return encodedLocations; + } + + /** Returns a list of human-readable location strings from the API response. */ + public List getLocations() { + return locations; + } + + @Override + /** Returns a string representation of the RegionalAccessBoundaryResponse. */ + public String toString() { + return MoreObjects.toStringHelper(this) + .add("encodedLocations", encodedLocations) + .add("locations", locations) + .toString(); + } + } + + /** + * Refreshes the regional access boundary by making a network call to the lookup endpoint. + * + * @param transportFactory The HTTP transport factory to use for the network request. + * @param url The URL of the regional access boundary endpoint. + * @param accessToken The access token to authenticate the request. + * @param clock The clock to use for expiration checks. + * @param maxRetryElapsedTimeMillis The max duration to wait for retries. + * @return A new RegionalAccessBoundary object containing the refreshed information. + * @throws IllegalArgumentException If the provided access token is null or expired. + * @throws IOException If a network error occurs or the response is malformed. + */ + static RegionalAccessBoundary refresh( + HttpTransportFactory transportFactory, + String url, + AccessToken accessToken, + Clock clock, + int maxRetryElapsedTimeMillis) + throws IOException { + Preconditions.checkNotNull(accessToken, "The provided access token is null."); + if (accessToken.getExpirationTimeMillis() != null + && accessToken.getExpirationTimeMillis() < clock.currentTimeMillis()) { + throw new IllegalArgumentException("The provided access token is expired."); + } + + HttpRequestFactory requestFactory = transportFactory.create().createRequestFactory(); + HttpRequest request = requestFactory.buildGetRequest(new GenericUrl(url)); + // Disable automatic logging by google-http-java-client to prevent leakage of sensitive tokens. + request.setLoggingEnabled(false); + request.getHeaders().setAuthorization("Bearer " + accessToken.getTokenValue()); + + // Add retry logic + ExponentialBackOff backoff = + new ExponentialBackOff.Builder() + .setInitialIntervalMillis(OAuth2Utils.INITIAL_RETRY_INTERVAL_MILLIS) + .setRandomizationFactor(OAuth2Utils.RETRY_RANDOMIZATION_FACTOR) + .setMultiplier(OAuth2Utils.RETRY_MULTIPLIER) + .setMaxElapsedTimeMillis(maxRetryElapsedTimeMillis) + .build(); + + HttpUnsuccessfulResponseHandler unsuccessfulResponseHandler = + new HttpBackOffUnsuccessfulResponseHandler(backoff) + .setBackOffRequired( + response -> { + int statusCode = response.getStatusCode(); + return statusCode == 500 + || statusCode == 502 + || statusCode == 503 + || statusCode == 504; + }); + request.setUnsuccessfulResponseHandler(unsuccessfulResponseHandler); + + HttpIOExceptionHandler ioExceptionHandler = new HttpBackOffIOExceptionHandler(backoff); + request.setIOExceptionHandler(ioExceptionHandler); + + request.setParser(new JsonObjectParser(OAuth2Utils.JSON_FACTORY)); + + RegionalAccessBoundaryResponse json; + HttpResponse response = null; + try { + response = request.execute(); + json = response.parseAs(RegionalAccessBoundaryResponse.class); + } catch (IOException e) { + throw new IOException( + "RegionalAccessBoundary: Failure while getting regional access boundaries:", e); + } finally { + if (response != null) { + response.disconnect(); + } + } + String encodedLocations = json.getEncodedLocations(); + // The encodedLocations is the value attached to the x-allowed-locations header, and + // it should always have a value. + if (encodedLocations == null) { + throw new IOException( + "RegionalAccessBoundary: Malformed response from lookup endpoint - `encodedLocations` was null."); + } + return new RegionalAccessBoundary(encodedLocations, json.getLocations(), clock); + } + + /** + * Initializes the transient clock to Clock.SYSTEM upon deserialization to prevent + * NullPointerException when evaluating expiration on deserialized objects. + */ + private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException { + input.defaultReadObject(); + clock = Clock.SYSTEM; + } +} diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundaryManager.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundaryManager.java new file mode 100644 index 000000000000..b2237fae6d13 --- /dev/null +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundaryManager.java @@ -0,0 +1,298 @@ +/* + * Copyright 2026, Google LLC + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following disclaimer + * in the documentation and/or other materials provided with the + * distribution. + * + * * Neither the name of Google LLC nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package com.google.auth.oauth2; + +import static com.google.auth.oauth2.LoggingUtils.log; + +import com.google.api.client.util.Clock; +import com.google.api.core.InternalApi; +import com.google.auth.http.HttpTransportFactory; +import com.google.common.annotations.VisibleForTesting; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.LinkedBlockingQueue; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicInteger; +import java.util.concurrent.atomic.AtomicReference; +import java.util.logging.Level; +import javax.annotation.Nullable; + +/** + * Manages the lifecycle of Regional Access Boundaries (RAB) for a credential. + * + *

              This class handles caching, asynchronous refreshing, and cooldown logic to ensure that API + * requests are not blocked by lookup failures and that the lookup service is not overwhelmed. + */ +@InternalApi +final class RegionalAccessBoundaryManager { + + private static final LoggerProvider LOGGER_PROVIDER = + LoggerProvider.forClazz(RegionalAccessBoundaryManager.class); + + static final long INITIAL_COOLDOWN_MILLIS = 15 * 60 * 1000L; // 15 minutes + static final long MAX_COOLDOWN_MILLIS = 6 * 60 * 60 * 1000L; // 6 hours + + /** + * The default maximum elapsed time in milliseconds for retrying Regional Access Boundary lookup + * requests. + */ + static final int DEFAULT_MAX_RETRY_ELAPSED_TIME_MILLIS = 60000; + + /** + * cachedRAB uses AtomicReference to provide thread-safe, lock-free access to the cached data for + * high-concurrency request threads. + */ + private final AtomicReference cachedRAB = new AtomicReference<>(); + + /** + * isRefreshing acts as an atomic gate for request de-duplication. If true, it indicates a + * background refresh is already in progress. + */ + private final AtomicBoolean isRefreshing = new AtomicBoolean(false); + + private final AtomicReference cooldownState = + new AtomicReference<>(new CooldownState(0, INITIAL_COOLDOWN_MILLIS)); + + private final AtomicBoolean skipRAB = new AtomicBoolean(false); + + // Unbounded thread creation is discouraged in library code to avoid resource + // exhaustion. A shared, bounded executor service ensures a hard limit (5) + // on concurrent refresh tasks, while threadCount provides unique names + // for easier debugging. + private static final AtomicInteger threadCount = new AtomicInteger(0); + + // Bounded executor service ensures hard limits on concurrent refresh tasks and queued tasks + // to avoid resource exhaustion. + private static final int EXECUTOR_POOL_SIZE = 5; + private static final int EXECUTOR_QUEUE_CAPACITY = 100; + + private static final ExecutorService DEFAULT_SHARED_EXECUTOR; + + static { + ThreadPoolExecutor executor = + new ThreadPoolExecutor( + EXECUTOR_POOL_SIZE, // corePoolSize: threads to keep alive + EXECUTOR_POOL_SIZE, // maximumPoolSize: max threads allowed + 1, // keepAliveTime: time to wait before terminating idle threads + TimeUnit.HOURS, // unit for keepAliveTime + new LinkedBlockingQueue<>(EXECUTOR_QUEUE_CAPACITY), // work queue with bound + r -> { + Thread t = new Thread(r, "RAB-refresh-" + threadCount.getAndIncrement()); + t.setDaemon(true); + return t; + }); + // Allow core threads to time out so the executor can shrink to 0 when idle. + // Ensures threads are released when idle to avoid unnecessary resource usage. + executor.allowCoreThreadTimeOut(true); + DEFAULT_SHARED_EXECUTOR = executor; + } + + private final transient Clock clock; + private final int maxRetryElapsedTimeMillis; + private final ExecutorService executor; + + /** + * Creates a new RegionalAccessBoundaryManager with the default retry timeout of 60 seconds. + * + * @param clock The clock to use for cooldown and expiration checks. + */ + RegionalAccessBoundaryManager(Clock clock) { + this(clock, DEFAULT_MAX_RETRY_ELAPSED_TIME_MILLIS, DEFAULT_SHARED_EXECUTOR); + } + + @VisibleForTesting + RegionalAccessBoundaryManager(Clock clock, int maxRetryElapsedTimeMillis) { + this(clock, maxRetryElapsedTimeMillis, DEFAULT_SHARED_EXECUTOR); + } + + @VisibleForTesting + RegionalAccessBoundaryManager( + Clock clock, int maxRetryElapsedTimeMillis, ExecutorService executor) { + this.clock = clock != null ? clock : Clock.SYSTEM; + this.maxRetryElapsedTimeMillis = maxRetryElapsedTimeMillis; + this.executor = executor; + } + + /** + * Returns the currently cached RegionalAccessBoundary, or null if none is available or if it has + * expired. + * + * @return The cached RAB, or null. + */ + @Nullable + RegionalAccessBoundary getCachedRAB() { + RegionalAccessBoundary rab = cachedRAB.get(); + if (rab != null && !rab.isExpired()) { + return rab; + } + return null; + } + + @VisibleForTesting + void setCachedRAB(RegionalAccessBoundary rab) { + this.cachedRAB.set(rab); + } + + /** + * Triggers an asynchronous refresh of the RegionalAccessBoundary if it is not already being + * refreshed and if the cooldown period is not active. + * + *

              This method is entirely non-blocking for the calling thread. If a refresh is already in + * progress or a cooldown is active, it returns immediately. + * + * @param transportFactory The HTTP transport factory to use for the lookup. + * @param provider The provider used to retrieve the lookup endpoint URL. + * @param accessToken The access token for authentication. + */ + void triggerAsyncRefresh( + final HttpTransportFactory transportFactory, + final RegionalAccessBoundaryProvider provider, + final AccessToken accessToken) { + if (skipRAB.get() || isCooldownActive()) { + return; + } + + RegionalAccessBoundary currentRab = cachedRAB.get(); + if (currentRab != null && !currentRab.shouldRefresh()) { + return; + } + + // Atomically check if a refresh is already running. If compareAndSet returns true, + // this thread "won the race" and is responsible for starting the background task. + // All other concurrent threads will return false and exit immediately. + if (isRefreshing.compareAndSet(false, true)) { + Runnable refreshTask = + () -> { + try { + String url = provider.getRegionalAccessBoundaryUrl(); + if (url == null) { + skipRAB.set(true); + return; + } + RegionalAccessBoundary newRAB = + RegionalAccessBoundary.refresh( + transportFactory, url, accessToken, clock, maxRetryElapsedTimeMillis); + cachedRAB.set(newRAB); + resetCooldown(); + } catch (Exception e) { + handleRefreshFailure(e); + } finally { + // Open the gate again for future refresh requests. + isRefreshing.set(false); + } + }; + + try { + this.executor.submit(refreshTask); + } catch (Exception | Error e) { + // If scheduling fails (e.g., RejectedExecutionException, OutOfMemoryError for threads), + // the task's finally block will never execute. We must release the lock here. + log( + LOGGER_PROVIDER, + Level.FINE, + null, + "Could not submit background refresh task for Regional Access Boundary. " + + "This is non-blocking and the library will attempt to refresh on the next access. Error: " + + e.getMessage()); + isRefreshing.set(false); + } + } + } + + private void handleRefreshFailure(Exception e) { + CooldownState currentCooldownState = cooldownState.get(); + CooldownState next; + if (currentCooldownState.expiryTime == 0) { + // In the first non-retryable failure, we set cooldown to currentTime + 15 mins. + next = + new CooldownState( + clock.currentTimeMillis() + INITIAL_COOLDOWN_MILLIS, INITIAL_COOLDOWN_MILLIS); + } else { + // We attempted to exit cool-down but failed. + // For each failed cooldown exit attempt, we double the cooldown time (till max 6 hrs). + // This avoids overwhelming RAB lookup endpoint. + long nextDuration = Math.min(currentCooldownState.durationMillis * 2, MAX_COOLDOWN_MILLIS); + next = new CooldownState(clock.currentTimeMillis() + nextDuration, nextDuration); + } + + // Atomically update the cooldown state. compareAndSet returns true only if the state + // hasn't been changed by another thread in the meantime. This prevents multiple + // concurrent failures from logging redundant messages or incorrectly calculating + // the exponential backoff. + if (cooldownState.compareAndSet(currentCooldownState, next)) { + log( + LOGGER_PROVIDER, + Level.FINE, + null, + "Regional Access Boundary lookup was not successful; will retry after a cooldown of " + + (next.durationMillis / 60000) + + "m. This is handled automatically. Details: " + + e.getMessage()); + } + } + + private void resetCooldown() { + cooldownState.set(new CooldownState(0, INITIAL_COOLDOWN_MILLIS)); + } + + boolean isCooldownActive() { + CooldownState state = cooldownState.get(); + if (state.expiryTime == 0) { + return false; + } + return clock.currentTimeMillis() < state.expiryTime; + } + + @VisibleForTesting + long getCurrentCooldownMillis() { + return cooldownState.get().durationMillis; + } + + @VisibleForTesting + boolean isSkipRAB() { + return skipRAB.get(); + } + + private static class CooldownState { + /** The time (in milliseconds from epoch) when the current cooldown period expires. */ + final long expiryTime; + + /** The duration (in milliseconds) of the current cooldown period. */ + final long durationMillis; + + CooldownState(long expiryTime, long durationMillis) { + this.expiryTime = expiryTime; + this.durationMillis = durationMillis; + } + } +} diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundaryProvider.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundaryProvider.java new file mode 100644 index 000000000000..e34bbafea0dc --- /dev/null +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundaryProvider.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026, Google LLC + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following disclaimer + * in the documentation and/or other materials provided with the + * distribution. + * + * * Neither the name of Google LLC nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package com.google.auth.oauth2; + +import com.google.api.core.InternalApi; +import java.io.IOException; + +/** + * An interface for providing regional access boundary information. It is used to provide a common + * interface for credentials that support regional access boundary checks. + */ +@InternalApi +interface RegionalAccessBoundaryProvider { + + /** + * Returns the regional access boundary URI. + * + * @return The regional access boundary URI. + */ + String getRegionalAccessBoundaryUrl() throws IOException; +} diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java index a65ddbe8d26e..ca6e330762cd 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java @@ -52,6 +52,7 @@ import com.google.api.client.util.GenericData; import com.google.api.client.util.Joiner; import com.google.api.client.util.Preconditions; +import com.google.api.core.InternalApi; import com.google.auth.CredentialTypeForMetrics; import com.google.auth.Credentials; import com.google.auth.RequestMetadataCallback; @@ -90,7 +91,7 @@ *

              By default uses a JSON Web Token (JWT) to fetch access tokens. */ public class ServiceAccountCredentials extends GoogleCredentials - implements ServiceAccountSigner, IdTokenProvider, JwtProvider { + implements ServiceAccountSigner, IdTokenProvider, JwtProvider, RegionalAccessBoundaryProvider { private static final long serialVersionUID = 7807543542681217978L; private static final String GRANT_TYPE = "urn:ietf:params:oauth:grant-type:jwt-bearer"; @@ -834,11 +835,23 @@ public boolean getUseJwtAccessWithScope() { return useJwtAccessWithScope; } + @InternalApi + @Override + public String getRegionalAccessBoundaryUrl() throws IOException { + return String.format( + OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_SERVICE_ACCOUNT, getAccount()); + } + @VisibleForTesting JwtCredentials getSelfSignedJwtCredentialsWithScope() { return selfSignedJwtCredentialsWithScope; } + @Override + HttpTransportFactory getTransportFactory() { + return transportFactory; + } + @Override public String getAccount() { return getClientEmail(); @@ -1034,6 +1047,17 @@ JwtCredentials createSelfSignedJwtCredentials(final URI uri, Collection .build(); } + /** + * Asynchronously provides the request metadata. + * + *

              This method is non-blocking. For Self-signed JWT flows (which are calculated locally), it + * may execute the callback immediately on the calling thread. For standard flows, it may use the + * provided executor for background tasks. + * + * @param uri The URI of the request. + * @param executor The executor to use for any required background tasks. + * @param callback The callback to receive the metadata or any error. + */ @Override public void getRequestMetadata( final URI uri, Executor executor, final RequestMetadataCallback callback) { @@ -1056,7 +1080,16 @@ public void getRequestMetadata( } } - /** Provide the request metadata by putting an access JWT directly in the metadata. */ + /** + * Synchronously provides the request metadata. + * + *

              This method is blocking. For standard flows, it will wait for a network call to complete. + * For Self-signed JWT flows, it calculates the token locally. + * + * @param uri The URI of the request. + * @return The request metadata containing the authorization header. + * @throws IOException If an error occurs while fetching or calculating the token. + */ @Override public Map> getRequestMetadata(URI uri) throws IOException { if (createScopedRequired() && uri == null) { @@ -1125,6 +1158,8 @@ private Map> getRequestMetadataWithSelfSignedJwt(URI uri) } Map> requestMetadata = jwtCredentials.getRequestMetadata(null); + requestMetadata = addRegionalAccessBoundaryToRequestMetadata(uri, requestMetadata); + refreshRegionalAccessBoundaryWithSelfSignedJwtIfExpired(uri, requestMetadata); return addQuotaProjectIdToRequestMetadata(quotaProjectId, requestMetadata); } diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/TestUtils.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/TestUtils.java index 91b648992848..9315c631985e 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/TestUtils.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/TestUtils.java @@ -42,6 +42,7 @@ import com.google.api.client.json.gson.GsonFactory; import com.google.auth.http.AuthHttpConstants; import com.google.common.base.Splitter; +import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; import java.io.ByteArrayInputStream; import java.io.IOException; @@ -55,6 +56,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.TimeZone; import javax.annotation.Nullable; /** Utilities for test code under com.google.auth. */ @@ -64,6 +66,9 @@ public class TestUtils { URI.create("https://auth.cloud.google/authorize"); public static final URI WORKFORCE_IDENTITY_FEDERATION_TOKEN_SERVER_URI = URI.create("https://sts.googleapis.com/v1/oauthtoken"); + public static final String REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION = "0x800000"; + public static final List REGIONAL_ACCESS_BOUNDARY_LOCATIONS = + ImmutableList.of("us-central1", "us-central2"); private static final JsonFactory JSON_FACTORY = GsonFactory.getDefaultInstance(); @@ -167,7 +172,9 @@ public static String getDefaultExpireTime() { Calendar calendar = Calendar.getInstance(); calendar.setTime(new Date()); calendar.add(Calendar.SECOND, 300); - return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").format(calendar.getTime()); + SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); + dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); + return dateFormat.format(calendar.getTime()); } private TestUtils() {} diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/AwsCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/AwsCredentialsTest.java index e401ae853771..26fe9151955b 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/AwsCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/AwsCredentialsTest.java @@ -32,6 +32,7 @@ package com.google.auth.oauth2; import static com.google.auth.Credentials.GOOGLE_DEFAULT_UNIVERSE; +import static com.google.auth.oauth2.TestUtils.createDummyRab; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; @@ -56,11 +57,15 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; /** Tests for {@link AwsCredentials}. */ class AwsCredentialsTest extends BaseSerializationTest { + @org.junit.jupiter.api.BeforeEach + void setUp() {} + private static final String STS_URL = "https://sts.googleapis.com/v1/token"; private static final String AWS_CREDENTIALS_URL = "https://169.254.169.254"; private static final String AWS_CREDENTIALS_URL_WITH_ROLE = "https://169.254.169.254/roleName"; @@ -130,6 +135,7 @@ void refreshAccessToken_withoutServiceAccountImpersonation() throws IOException .setHttpTransportFactory(transportFactory) .setCredentialSource(buildAwsCredentialSource(transportFactory)) .build(); + awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); AccessToken accessToken = awsCredential.refreshAccessToken(); @@ -159,6 +165,7 @@ void refreshAccessToken_withServiceAccountImpersonation() throws IOException { .setServiceAccountImpersonationUrl( transportFactory.transport.getServiceAccountImpersonationUrl()) .build(); + awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); AccessToken accessToken = awsCredential.refreshAccessToken(); @@ -191,6 +198,7 @@ void refreshAccessToken_withServiceAccountImpersonationOptions() throws IOExcept .setServiceAccountImpersonationOptions( ExternalAccountCredentialsTest.buildServiceAccountImpersonationOptions()) .build(); + awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); AccessToken accessToken = awsCredential.refreshAccessToken(); @@ -228,6 +236,7 @@ void refreshAccessTokenProgrammaticRefresh_withoutServiceAccountImpersonation() .setTokenUrl(STS_URL) .setSubjectTokenType("subjectTokenType") .build(); + awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); AccessToken accessToken = awsCredential.refreshAccessToken(); @@ -259,6 +268,7 @@ void refreshAccessTokenProgrammaticRefresh_withServiceAccountImpersonation() thr .setServiceAccountImpersonationUrl( transportFactory.transport.getServiceAccountImpersonationUrl()) .build(); + awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); AccessToken accessToken = awsCredential.refreshAccessToken(); @@ -282,6 +292,7 @@ void retrieveSubjectToken() throws IOException { .setHttpTransportFactory(transportFactory) .setCredentialSource(buildAwsCredentialSource(transportFactory)) .build(); + awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); String subjectToken = URLDecoder.decode(awsCredential.retrieveSubjectToken(), "UTF-8"); @@ -326,6 +337,7 @@ void retrieveSubjectTokenWithSessionTokenUrl() throws IOException { .setHttpTransportFactory(transportFactory) .setCredentialSource(buildAwsImdsv2CredentialSource(transportFactory)) .build(); + awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); String subjectToken = URLDecoder.decode(awsCredential.retrieveSubjectToken(), "UTF-8"); @@ -399,6 +411,7 @@ void retrieveSubjectToken_imdsv1EnvVariablesSet_metadataServerNotCalled() throws .setCredentialSource(buildAwsCredentialSource(transportFactory)) .setEnvironmentProvider(environmentProvider) .build(); + awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); String subjectToken = URLDecoder.decode(awsCredential.retrieveSubjectToken(), "UTF-8"); @@ -444,6 +457,7 @@ void retrieveSubjectToken_imdsv2EnvVariablesSet_metadataServerNotCalled() throws .setCredentialSource(buildAwsImdsv2CredentialSource(transportFactory)) .setEnvironmentProvider(environmentProvider) .build(); + awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); String subjectToken = URLDecoder.decode(awsCredential.retrieveSubjectToken(), "UTF-8"); @@ -483,6 +497,7 @@ void retrieveSubjectToken_noRegion_expectThrows() { .setHttpTransportFactory(transportFactory) .setCredentialSource(buildAwsCredentialSource(transportFactory)) .build(); + awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); IOException exception = assertThrows(IOException.class, awsCredential::retrieveSubjectToken); assertEquals("Failed to retrieve AWS region.", exception.getMessage()); @@ -508,6 +523,7 @@ void retrieveSubjectToken_noRole_expectThrows() { .setHttpTransportFactory(transportFactory) .setCredentialSource(buildAwsCredentialSource(transportFactory)) .build(); + awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); IOException exception = assertThrows(IOException.class, awsCredential::retrieveSubjectToken); assertEquals("Failed to retrieve AWS IAM role.", exception.getMessage()); @@ -536,6 +552,7 @@ void retrieveSubjectToken_noCredentials_expectThrows() { .setHttpTransportFactory(transportFactory) .setCredentialSource(buildAwsCredentialSource(transportFactory)) .build(); + awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); IOException exception = assertThrows(IOException.class, awsCredential::retrieveSubjectToken); assertEquals("Failed to retrieve AWS credentials.", exception.getMessage()); @@ -567,6 +584,7 @@ void retrieveSubjectToken_noRegionUrlProvided() { .setHttpTransportFactory(transportFactory) .setCredentialSource(new AwsCredentialSource(credentialSource)) .build(); + awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); IOException exception = assertThrows(IOException.class, awsCredential::retrieveSubjectToken); assertEquals( @@ -595,6 +613,7 @@ void retrieveSubjectToken_withProgrammaticRefresh() throws IOException { .setTokenUrl(STS_URL) .setSubjectTokenType("subjectTokenType") .build(); + awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); String subjectToken = URLDecoder.decode(awsCredential.retrieveSubjectToken(), "UTF-8"); @@ -637,6 +656,7 @@ void retrieveSubjectToken_withProgrammaticRefreshSessionToken() throws IOExcepti .setTokenUrl(STS_URL) .setSubjectTokenType("subjectTokenType") .build(); + awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); String subjectToken = URLDecoder.decode(awsCredential.retrieveSubjectToken(), "UTF-8"); @@ -687,6 +707,7 @@ void retrieveSubjectToken_passesContext() { .setTokenUrl(STS_URL) .setSubjectTokenType("subjectTokenType") .build(); + awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); assertDoesNotThrow(awsCredential::retrieveSubjectToken); } @@ -709,6 +730,7 @@ void retrieveSubjectToken_withProgrammaticRefreshThrowsError() { .setTokenUrl(STS_URL) .setSubjectTokenType("subjectTokenType") .build(); + awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); IOException exception = assertThrows(IOException.class, awsCredential::retrieveSubjectToken); assertEquals("test", exception.getMessage()); @@ -725,6 +747,8 @@ void getAwsSecurityCredentials_fromEnvironmentVariablesNoToken() throws IOExcept AwsCredentials.newBuilder(AWS_CREDENTIAL) .setEnvironmentProvider(environmentProvider) .build(); + testAwsCredentials.regionalAccessBoundaryManager.setCachedRAB( + createDummyRab(testAwsCredentials.clock)); AwsSecurityCredentials credentials = testAwsCredentials.getAwsSecurityCredentialsSupplier().getCredentials(emptyContext); @@ -758,6 +782,8 @@ void getAwsSecurityCredentials_fromEnvironmentVariablesWithToken() throws IOExce .setEnvironmentProvider(environmentProvider) .setCredentialSource(credSource) .build(); + testAwsCredentials.regionalAccessBoundaryManager.setCachedRAB( + createDummyRab(testAwsCredentials.clock)); AwsSecurityCredentials credentials = testAwsCredentials.getAwsSecurityCredentialsSupplier().getCredentials(emptyContext); @@ -780,6 +806,8 @@ void getAwsSecurityCredentials_fromEnvironmentVariables_noMetadataServerCall() AwsCredentials.newBuilder(AWS_CREDENTIAL) .setEnvironmentProvider(environmentProvider) .build(); + testAwsCredentials.regionalAccessBoundaryManager.setCachedRAB( + createDummyRab(testAwsCredentials.clock)); AwsSecurityCredentials credentials = testAwsCredentials.getAwsSecurityCredentialsSupplier().getCredentials(emptyContext); @@ -799,6 +827,7 @@ void getAwsSecurityCredentials_fromMetadataServer() throws IOException { .setHttpTransportFactory(transportFactory) .setCredentialSource(buildAwsCredentialSource(transportFactory)) .build(); + awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); AwsSecurityCredentials credentials = awsCredential.getAwsSecurityCredentialsSupplier().getCredentials(emptyContext); @@ -831,6 +860,7 @@ void getAwsSecurityCredentials_fromMetadataServer_noUrlProvided() { .setHttpTransportFactory(transportFactory) .setCredentialSource(new AwsCredentialSource(credentialSource)) .build(); + awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); IOException exception = assertThrows( @@ -859,6 +889,7 @@ void getAwsRegion_awsRegionEnvironmentVariable() throws IOException { .setCredentialSource(buildAwsCredentialSource(transportFactory)) .setEnvironmentProvider(environmentProvider) .build(); + awsCredentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredentials.clock)); String region = awsCredentials.getAwsSecurityCredentialsSupplier().getRegion(emptyContext); @@ -884,6 +915,7 @@ void getAwsRegion_awsDefaultRegionEnvironmentVariable() throws IOException { .setCredentialSource(buildAwsCredentialSource(transportFactory)) .setEnvironmentProvider(environmentProvider) .build(); + awsCredentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredentials.clock)); String region = awsCredentials.getAwsSecurityCredentialsSupplier().getRegion(emptyContext); @@ -905,6 +937,7 @@ void getAwsRegion_metadataServer() throws IOException { .setHttpTransportFactory(transportFactory) .setCredentialSource(buildAwsCredentialSource(transportFactory)) .build(); + awsCredentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredentials.clock)); String region = awsCredentials.getAwsSecurityCredentialsSupplier().getRegion(emptyContext); @@ -933,10 +966,12 @@ void createdScoped_clonedCredentialWithAddedScopes() { .setClientSecret("clientSecret") .setUniverseDomain("universeDomain") .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); List newScopes = Arrays.asList("scope1", "scope2"); AwsCredentials newCredentials = (AwsCredentials) credentials.createScoped(newScopes); + newCredentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(newCredentials.clock)); assertEquals(credentials.getAudience(), newCredentials.getAudience()); assertEquals(credentials.getSubjectTokenType(), newCredentials.getSubjectTokenType()); @@ -1012,6 +1047,7 @@ void builder_allFields() { .setScopes(scopes) .setUniverseDomain("universeDomain") .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertEquals("audience", credentials.getAudience()); assertEquals("subjectTokenType", credentials.getSubjectTokenType()); @@ -1048,6 +1084,7 @@ void builder_missingUniverseDomain_defaults() { .setClientSecret("clientSecret") .setScopes(scopes) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertEquals("https://test.com", credentials.getRegionalCredentialVerificationUrlOverride()); assertEquals("audience", credentials.getAudience()); @@ -1085,8 +1122,11 @@ void newBuilder_allFields() { .setScopes(scopes) .setUniverseDomain("universeDomain") .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); AwsCredentials newBuilderCreds = AwsCredentials.newBuilder(credentials).build(); + newBuilderCreds.regionalAccessBoundaryManager.setCachedRAB( + createDummyRab(newBuilderCreds.clock)); assertEquals(credentials.getAudience(), newBuilderCreds.getAudience()); assertEquals(credentials.getSubjectTokenType(), newBuilderCreds.getSubjectTokenType()); assertEquals(credentials.getTokenUrl(), newBuilderCreds.getTokenUrl()); @@ -1122,8 +1162,11 @@ void newBuilder_noUniverseDomain_defaults() { .setClientSecret("clientSecret") .setScopes(scopes) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); AwsCredentials newBuilderCreds = AwsCredentials.newBuilder(credentials).build(); + newBuilderCreds.regionalAccessBoundaryManager.setCachedRAB( + createDummyRab(newBuilderCreds.clock)); assertEquals(credentials.getAudience(), newBuilderCreds.getAudience()); assertEquals(credentials.getSubjectTokenType(), newBuilderCreds.getSubjectTokenType()); assertEquals(credentials.getTokenUrl(), newBuilderCreds.getTokenUrl()); @@ -1161,6 +1204,7 @@ void builder_defaultRegionalCredentialVerificationUrlOverride() { .setClientSecret("clientSecret") .setScopes(scopes) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertNull(credentials.getRegionalCredentialVerificationUrlOverride()); assertEquals( @@ -1240,6 +1284,8 @@ void serialize() throws IOException, ClassNotFoundException { .setUniverseDomain("universeDomain") .setScopes(scopes) .build(); + testCredentials.regionalAccessBoundaryManager.setCachedRAB( + createDummyRab(testCredentials.clock)); AwsCredentials deserializedCredentials = serializeAndDeserialize(testCredentials); assertEquals(testCredentials, deserializedCredentials); @@ -1357,4 +1403,48 @@ public AwsSecurityCredentials getCredentials(ExternalAccountSupplierContext cont return credentials; } } + + @Test + public void testRefresh_regionalAccessBoundarySuccess() throws IOException, InterruptedException { + + MockExternalAccountCredentialsTransportFactory transportFactory = + new MockExternalAccountCredentialsTransportFactory(); + + AwsSecurityCredentialsSupplier supplier = + new TestAwsSecurityCredentialsSupplier("test", programmaticAwsCreds, null, null); + + AwsCredentials awsCredential = + AwsCredentials.newBuilder() + .setAwsSecurityCredentialsSupplier(supplier) + .setHttpTransportFactory(transportFactory) + .setAudience( + "//iam.googleapis.com/projects/12345/locations/global/workloadIdentityPools/pool/providers/provider") + .setTokenUrl(STS_URL) + .setSubjectTokenType("subjectTokenType") + .build(); + + // First call: initiates async refresh. + Map> headers = awsCredential.getRequestMetadata(); + assertNull(headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); + + waitForRegionalAccessBoundary(awsCredential); + + // Second call: should have header. + headers = awsCredential.getRequestMetadata(); + assertEquals( + headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY), + Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); + } + + private void waitForRegionalAccessBoundary(GoogleCredentials credentials) + throws InterruptedException { + long deadline = System.currentTimeMillis() + 5000; + while (credentials.getRegionalAccessBoundary() == null + && System.currentTimeMillis() < deadline) { + Thread.sleep(100); + } + if (credentials.getRegionalAccessBoundary() == null) { + Assertions.fail("Timed out waiting for regional access boundary refresh"); + } + } } diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ComputeEngineCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ComputeEngineCredentialsTest.java index 82240171d9af..b6de475ae510 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ComputeEngineCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ComputeEngineCredentialsTest.java @@ -33,6 +33,8 @@ import static com.google.auth.oauth2.ComputeEngineCredentials.METADATA_RESPONSE_EMPTY_CONTENT_ERROR_MESSAGE; import static com.google.auth.oauth2.ImpersonatedCredentialsTest.SA_CLIENT_EMAIL; +import static com.google.auth.oauth2.RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY; +import static com.google.auth.oauth2.TestUtils.createDummyRab; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; @@ -43,6 +45,7 @@ import static org.junit.jupiter.api.Assertions.assertSame; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.fail; import com.google.api.client.http.HttpStatusCodes; import com.google.api.client.http.HttpTransport; @@ -75,6 +78,9 @@ /** Test case for {@link ComputeEngineCredentials}. */ class ComputeEngineCredentialsTest extends BaseSerializationTest { + @org.junit.jupiter.api.BeforeEach + void setUp() {} + private static final URI CALL_URI = URI.create("http://googleapis.com/testapi/v1/foo"); private static final String TOKEN_URL = @@ -388,12 +394,12 @@ void getRequestMetadata_hasAccessToken() throws IOException { transportFactory.transport.setServiceAccountEmail(SA_CLIENT_EMAIL); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); TestUtils.assertContainsBearerToken(metadata, ACCESS_TOKEN); // verify metrics header added and other header intact Map> requestHeaders = transportFactory.transport.getRequest().getHeaders(); - com.google.auth.oauth2.TestUtils.validateMetricsHeader(requestHeaders, "at", "mds"); assertTrue(requestHeaders.containsKey("metadata-flavor")); assertTrue(requestHeaders.get("metadata-flavor").contains("Google")); } @@ -405,6 +411,7 @@ void getRequestMetadata_shouldInvalidateAccessTokenWhenScoped_newAccessTokenFrom transportFactory.transport.setServiceAccountEmail("SA_CLIENT_EMAIL"); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); TestUtils.assertContainsBearerToken(metadata, ACCESS_TOKEN); @@ -412,6 +419,8 @@ void getRequestMetadata_shouldInvalidateAccessTokenWhenScoped_newAccessTokenFrom assertNotNull(credentials.getAccessToken()); ComputeEngineCredentials scopedCredentialCopy = (ComputeEngineCredentials) credentials.createScoped(SCOPES); + scopedCredentialCopy.regionalAccessBoundaryManager.setCachedRAB( + createDummyRab(scopedCredentialCopy.clock)); assertNull(scopedCredentialCopy.getAccessToken()); Map> metadataForCopiedCredentials = scopedCredentialCopy.getRequestMetadata(CALL_URI); @@ -426,6 +435,7 @@ void getRequestMetadata_missingServiceAccount_throws() { transportFactory.transport.setServiceAccountEmail("SA_CLIENT_EMAIL"); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IOException exception = assertThrows(IOException.class, () -> credentials.getRequestMetadata(CALL_URI)); String message = exception.getMessage(); @@ -441,6 +451,7 @@ void getRequestMetadata_serverError_throws() { transportFactory.transport.setServiceAccountEmail("SA_CLIENT_EMAIL"); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IOException exception = assertThrows(IOException.class, () -> credentials.getRequestMetadata(CALL_URI)); String message = exception.getMessage(); @@ -564,6 +575,7 @@ void getAccount_sameAs() { transportFactory.transport.setServiceAccountEmail(defaultAccountEmail); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertEquals(defaultAccountEmail, credentials.getAccount()); @@ -597,6 +609,7 @@ public LowLevelHttpResponse execute() throws IOException { transportFactory.transport.setServiceAccountEmail(defaultAccountEmail); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); RuntimeException exception = assertThrows(RuntimeException.class, credentials::getAccount); assertEquals("Failed to get service account", exception.getMessage()); @@ -628,6 +641,7 @@ public LowLevelHttpResponse execute() throws IOException { transportFactory.transport.setServiceAccountEmail(defaultAccountEmail); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); RuntimeException exception = assertThrows(RuntimeException.class, credentials::getAccount); assertEquals("Failed to get service account", exception.getMessage()); @@ -645,6 +659,7 @@ void sign_sameAs() { transportFactory.transport.setSignature(expectedSignature); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertArrayEquals(expectedSignature, credentials.sign(expectedSignature)); } @@ -657,6 +672,7 @@ void sign_getUniverseException() { transportFactory.transport.setServiceAccountEmail(defaultAccountEmail); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transportFactory.transport.setStatusCode(501); assertThrows(IOException.class, credentials::getUniverseDomain); @@ -675,6 +691,7 @@ void sign_getAccountFails() { transportFactory.transport.setSignature(expectedSignature); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); SigningException exception = assertThrows(SigningException.class, () -> credentials.sign(expectedSignature)); @@ -710,6 +727,7 @@ public LowLevelHttpResponse execute() throws IOException { ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); byte[] bytes = {0xD, 0xE, 0xA, 0xD}; @@ -748,6 +766,7 @@ public LowLevelHttpResponse execute() throws IOException { ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); byte[] bytes = {0xD, 0xE, 0xA, 0xD}; @@ -779,6 +798,7 @@ public LowLevelHttpResponse execute() throws IOException { ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IOException exception = assertThrows(IOException.class, credentials::refreshAccessToken); assertTrue(exception.getCause().getMessage().contains("503")); @@ -842,6 +862,7 @@ public LowLevelHttpResponse execute() throws IOException { ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String universeDomain = credentials.getUniverseDomain(); assertEquals("some-universe.xyz", universeDomain); @@ -869,6 +890,7 @@ public LowLevelHttpResponse execute() throws IOException { ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String universeDomain = credentials.getUniverseDomain(); assertEquals(Credentials.GOOGLE_DEFAULT_UNIVERSE, universeDomain); @@ -896,6 +918,7 @@ public LowLevelHttpResponse execute() throws IOException { ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String universeDomain = credentials.getUniverseDomain(); assertEquals(Credentials.GOOGLE_DEFAULT_UNIVERSE, universeDomain); @@ -942,6 +965,7 @@ void getUniverseDomain_fromMetadata_non404error_throws() { ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); for (int status = 400; status < 600; status++) { // 404 should not throw and tested separately @@ -982,6 +1006,7 @@ public LowLevelHttpResponse execute() { ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); byte[] bytes = {0xD, 0xE, 0xA, 0xD}; @@ -998,6 +1023,7 @@ void idTokenWithAudience_sameAs() throws IOException { transportFactory.transport.setIdToken(STANDARD_ID_TOKEN); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = @@ -1018,6 +1044,7 @@ void idTokenWithAudience_standard() throws IOException { MockMetadataServerTransportFactory transportFactory = new MockMetadataServerTransportFactory(); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = @@ -1037,6 +1064,7 @@ void idTokenWithAudience_full() throws IOException { MockMetadataServerTransportFactory transportFactory = new MockMetadataServerTransportFactory(); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = @@ -1063,6 +1091,7 @@ void idTokenWithAudience_licenses() throws IOException { MockMetadataServerTransportFactory transportFactory = new MockMetadataServerTransportFactory(); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = @@ -1091,6 +1120,7 @@ void idTokenWithAudience_404StatusCode() { transportFactory.transport.setStatusCode(HttpStatusCodes.STATUS_CODE_NOT_FOUND); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IOException exception = assertThrows(IOException.class, () -> credentials.idTokenWithAudience("Audience", null)); assertEquals( @@ -1108,6 +1138,7 @@ void idTokenWithAudience_emptyContent() { transportFactory.transport.setEmptyContent(true); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IOException exception = assertThrows(IOException.class, () -> credentials.idTokenWithAudience("Audience", null)); assertEquals(METADATA_RESPONSE_EMPTY_CONTENT_ERROR_MESSAGE, exception.getMessage()); @@ -1119,6 +1150,7 @@ void idTokenWithAudience_503StatusCode() { transportFactory.transport.setStatusCode(HttpStatusCodes.STATUS_CODE_SERVICE_UNAVAILABLE); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertThrows( GoogleAuthException.class, () -> credentials.idTokenWithAudience("Audience", null)); } @@ -1143,6 +1175,7 @@ public LowLevelHttpResponse execute() throws IOException { ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String projectId = credentials.getProjectId(); assertEquals("some-project-id", projectId); } @@ -1153,6 +1186,7 @@ void getProjectId_metadataServerFailure_404StatusCode() { transportFactory.transport.setStatusCode(HttpStatusCodes.STATUS_CODE_SERVICE_UNAVAILABLE); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertNull(credentials.getProjectId()); } @@ -1162,6 +1196,7 @@ void getProjectId_metadataServerFailure_otherStatusCode() { transportFactory.transport.setStatusCode(HttpStatusCodes.STATUS_CODE_UNAUTHORIZED); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertNull(credentials.getProjectId()); } @@ -1171,12 +1206,124 @@ void getProjectId_explicitSet_noMDsCall() { new MockRequestCountingTransportFactory(); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); credentials.setProjectId("explicit.project_id"); assertEquals("explicit.project_id", credentials.getProjectId()); assertEquals(0, transportFactory.transport.getRequestCount()); } + @Test + void refresh_regionalAccessBoundarySuccess() throws IOException, InterruptedException { + + String defaultAccountEmail = "default@email.com"; + MockMetadataServerTransportFactory transportFactory = new MockMetadataServerTransportFactory(); + RegionalAccessBoundary regionalAccessBoundary = + new RegionalAccessBoundary( + TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION, + TestUtils.REGIONAL_ACCESS_BOUNDARY_LOCATIONS, + null); + transportFactory.transport.setRegionalAccessBoundary(regionalAccessBoundary); + transportFactory.transport.setServiceAccountEmail(defaultAccountEmail); + + ComputeEngineCredentials credentials = + ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + + // First call: initiates async refresh. + Map> headers = credentials.getRequestMetadata(); + assertNull(headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); + + waitForRegionalAccessBoundary(credentials); + + // Second call: should have header. + headers = credentials.getRequestMetadata(); + assertEquals( + headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY), + Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); + } + + @Test + void refresh_regionalAccessBoundaryNonEmail_skipsRABLookup() + throws IOException, InterruptedException { + String nonEmailAccount = "non-email-account-value"; + MockMetadataServerTransportFactory transportFactory = new MockMetadataServerTransportFactory(); + RegionalAccessBoundary regionalAccessBoundary = + new RegionalAccessBoundary( + TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION, + TestUtils.REGIONAL_ACCESS_BOUNDARY_LOCATIONS, + null); + transportFactory.transport.setRegionalAccessBoundary(regionalAccessBoundary); + transportFactory.transport.setServiceAccountEmail(nonEmailAccount); + + ComputeEngineCredentials credentials = + ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + + // Before any call, skipRAB flag should be false + assertFalse(credentials.regionalAccessBoundaryManager.isSkipRAB()); + + // First call: triggers lookup which determines non-email, returns null, and sets skipRAB to + // true + Map> headers = credentials.getRequestMetadata(); + assertNull(headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); + + // Since the task is scheduled asynchronously on the shared executor, wait for it to complete + long deadline = System.currentTimeMillis() + 5000; + while (!credentials.regionalAccessBoundaryManager.isSkipRAB() + && System.currentTimeMillis() < deadline) { + Thread.sleep(50); + } + + // Verify skipRAB flag has been set to true + assertTrue(credentials.regionalAccessBoundaryManager.isSkipRAB()); + + // Verify RAB is still null + assertNull(credentials.getRegionalAccessBoundary()); + + // Second call: should bypass triggerAsyncRefresh completely and remain null + headers = credentials.getRequestMetadata(); + assertNull(headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); + } + + @Test + void getRegionalAccessBoundaryUrl_validEmail_returnsUrl() throws IOException { + MockMetadataServerTransportFactory transportFactory = new MockMetadataServerTransportFactory(); + String defaultAccountEmail = "mail@mail.com"; + + transportFactory.transport.setServiceAccountEmail(defaultAccountEmail); + ComputeEngineCredentials credentials = + ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + + String expectedUrl = + String.format( + OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_SERVICE_ACCOUNT, + defaultAccountEmail); + assertEquals(expectedUrl, credentials.getRegionalAccessBoundaryUrl()); + } + + @Test + void getRegionalAccessBoundaryUrl_invalidEmail_returnsNull() throws IOException { + MockMetadataServerTransportFactory transportFactory = new MockMetadataServerTransportFactory(); + String defaultAccountEmail = "default"; // non-email account format + + transportFactory.transport.setServiceAccountEmail(defaultAccountEmail); + ComputeEngineCredentials credentials = + ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + + assertNull(credentials.getRegionalAccessBoundaryUrl()); + } + + private void waitForRegionalAccessBoundary(GoogleCredentials credentials) + throws InterruptedException { + long deadline = System.currentTimeMillis() + 5000; + while (credentials.getRegionalAccessBoundary() == null + && System.currentTimeMillis() < deadline) { + Thread.sleep(100); + } + if (credentials.getRegionalAccessBoundary() == null) { + fail("Timed out waiting for regional access boundary refresh"); + } + } + static class MockMetadataServerTransportFactory implements HttpTransportFactory { MockMetadataServerTransport transport = diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ExternalAccountAuthorizedUserCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ExternalAccountAuthorizedUserCredentialsTest.java index 78bb6811953e..071500f679ee 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ExternalAccountAuthorizedUserCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ExternalAccountAuthorizedUserCredentialsTest.java @@ -32,6 +32,7 @@ package com.google.auth.oauth2; import static com.google.auth.Credentials.GOOGLE_DEFAULT_UNIVERSE; +import static com.google.auth.oauth2.TestUtils.createDummyRab; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotEquals; @@ -43,7 +44,6 @@ import com.google.api.client.http.HttpTransport; import com.google.api.client.json.GenericJson; import com.google.api.client.testing.http.MockLowLevelHttpRequest; -import com.google.api.client.util.Clock; import com.google.auth.TestUtils; import com.google.auth.http.AuthHttpConstants; import com.google.auth.http.HttpTransportFactory; @@ -62,6 +62,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -129,6 +130,9 @@ void setup() { transportFactory = new MockExternalAccountAuthorizedUserCredentialsTransportFactory(); } + @org.junit.jupiter.api.AfterEach + void tearDown() {} + @Test void builder_allFields() throws IOException { ExternalAccountAuthorizedUserCredentials credentials = @@ -703,6 +707,7 @@ void createScopedRequired_false() { void getRequestMetadata() throws IOException { GoogleCredentials credentials = ExternalAccountAuthorizedUserCredentials.fromJson(buildJsonCredentials(), transportFactory); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); @@ -714,6 +719,7 @@ void getRequestMetadata() throws IOException { void getRequestMetadata_withQuotaProjectId() throws IOException { GoogleCredentials credentials = ExternalAccountAuthorizedUserCredentials.fromJson(buildJsonCredentials(), transportFactory); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); @@ -732,6 +738,7 @@ void getRequestMetadata_withAccessToken() throws IOException { .setHttpTransportFactory(transportFactory) .setAccessToken(new AccessToken(ACCESS_TOKEN, /* expirationTime= */ null)) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); @@ -1233,7 +1240,109 @@ void serialize() throws IOException, ClassNotFoundException { assertEquals(credentials, deserializedCredentials); assertEquals(credentials.hashCode(), deserializedCredentials.hashCode()); assertEquals(credentials.toString(), deserializedCredentials.toString()); - assertSame(Clock.SYSTEM, deserializedCredentials.clock); + assertSame(com.google.api.client.util.Clock.SYSTEM, deserializedCredentials.clock); + } + + @org.junit.jupiter.api.Test + void testRefresh_regionalAccessBoundarySuccess() throws IOException, InterruptedException { + + ExternalAccountAuthorizedUserCredentials credentials = + ExternalAccountAuthorizedUserCredentials.newBuilder() + .setClientId(CLIENT_ID) + .setClientSecret(CLIENT_SECRET) + .setRefreshToken(REFRESH_TOKEN) + .setTokenUrl(TOKEN_URL) + .setAudience( + "//iam.googleapis.com/locations/global/workforcePools/pool/providers/provider") + .setHttpTransportFactory(transportFactory) + .build(); + + // First call: initiates async refresh. + Map> headers = credentials.getRequestMetadata(); + assertNull(headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); + + waitForRegionalAccessBoundary(credentials); + + // Second call: should have header. + headers = credentials.getRequestMetadata(); + assertEquals( + headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY), + Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); + } + + @Test + void getRegionalAccessBoundaryUrl_workforce() throws IOException { + ExternalAccountAuthorizedUserCredentials credentials = + ExternalAccountAuthorizedUserCredentials.newBuilder() + .setClientId(CLIENT_ID) + .setClientSecret(CLIENT_SECRET) + .setRefreshToken(REFRESH_TOKEN) + .setTokenUrl(TOKEN_URL) + .setAudience( + "//iam.googleapis.com/locations/global/workforcePools/my-pool/providers/my-provider") + .build(); + + String expectedUrl = + "https://iamcredentials.googleapis.com/v1/locations/global/workforcePools/my-pool/allowedLocations"; + assertEquals(expectedUrl, credentials.getRegionalAccessBoundaryUrl()); + } + + @Test + void getRegionalAccessBoundaryUrl_invalidAudience_throws() { + ExternalAccountAuthorizedUserCredentials credentials = + ExternalAccountAuthorizedUserCredentials.newBuilder() + .setClientId(CLIENT_ID) + .setClientSecret(CLIENT_SECRET) + .setRefreshToken(REFRESH_TOKEN) + .setTokenUrl(TOKEN_URL) + .setAudience("invalid-audience") + .build(); + + IllegalStateException exception = + assertThrows( + IllegalStateException.class, + () -> { + credentials.getRegionalAccessBoundaryUrl(); + }); + + assertEquals( + "The provided audience is not in the correct format for a workforce pool. " + + "Refer: https://docs.cloud.google.com/iam/docs/principal-identifiers", + exception.getMessage()); + } + + @Test + void getRegionalAccessBoundaryUrl_nullAudience_throws() { + ExternalAccountAuthorizedUserCredentials credentials = + ExternalAccountAuthorizedUserCredentials.newBuilder() + .setClientId(CLIENT_ID) + .setClientSecret(CLIENT_SECRET) + .setRefreshToken(REFRESH_TOKEN) + .setTokenUrl(TOKEN_URL) + .build(); + + IllegalStateException exception = + assertThrows( + IllegalStateException.class, + () -> { + credentials.getRegionalAccessBoundaryUrl(); + }); + + assertEquals( + "The audience is null, which is not in the correct format for a workforce pool.", + exception.getMessage()); + } + + private void waitForRegionalAccessBoundary(GoogleCredentials credentials) + throws InterruptedException { + long deadline = System.currentTimeMillis() + 5000; + while (credentials.getRegionalAccessBoundary() == null + && System.currentTimeMillis() < deadline) { + Thread.sleep(100); + } + if (credentials.getRegionalAccessBoundary() == null) { + Assertions.fail("Timed out waiting for regional access boundary refresh"); + } } static GenericJson buildJsonCredentials() { diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ExternalAccountCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ExternalAccountCredentialsTest.java index 1338c0d68fe9..db3d1601ed94 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ExternalAccountCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ExternalAccountCredentialsTest.java @@ -32,6 +32,10 @@ package com.google.auth.oauth2; import static com.google.auth.oauth2.MockExternalAccountCredentialsTransport.SERVICE_ACCOUNT_IMPERSONATION_URL; +import static com.google.auth.oauth2.OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_SERVICE_ACCOUNT; +import static com.google.auth.oauth2.OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKFORCE_POOL; +import static com.google.auth.oauth2.OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKLOAD_POOL; +import static com.google.auth.oauth2.TestUtils.createDummyRab; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertInstanceOf; @@ -53,12 +57,8 @@ import java.io.IOException; import java.math.BigDecimal; import java.net.URI; -import java.util.Arrays; -import java.util.Date; -import java.util.HashMap; -import java.util.List; -import java.util.Locale; -import java.util.Map; +import java.util.*; +import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -1109,6 +1109,8 @@ void getRequestMetadata_withQuotaProjectId() throws IOException { .setCredentialSource(new TestCredentialSource(FILE_CREDENTIAL_SOURCE_MAP)) .setQuotaProjectId("quotaProjectId") .build(); + testCredentials.regionalAccessBoundaryManager.setCachedRAB( + createDummyRab(testCredentials.clock)); Map> requestMetadata = testCredentials.getRequestMetadata(URI.create("http://googleapis.com/foo/bar")); @@ -1144,7 +1146,7 @@ void serialize() throws IOException, ClassNotFoundException { assertEquals( testCredentials.getServiceAccountImpersonationOptions().getLifetime(), deserializedCredentials.getServiceAccountImpersonationOptions().getLifetime()); - assertSame(Clock.SYSTEM, deserializedCredentials.clock); + assertSame(deserializedCredentials.clock, Clock.SYSTEM); assertEquals( MockExternalAccountCredentialsTransportFactory.class, deserializedCredentials.toBuilder().getHttpTransportFactory().getClass()); @@ -1240,6 +1242,292 @@ void validateServiceAccountImpersonationUrls_invalidUrls() { } } + @Test + public void getRegionalAccessBoundaryUrl_workload() throws IOException { + String audience = + "//iam.googleapis.com/projects/12345/locations/global/workloadIdentityPools/my-pool/providers/my-provider"; + ExternalAccountCredentials credentials = + TestExternalAccountCredentials.newBuilder() + .setAudience(audience) + .setSubjectTokenType("subject_token_type") + .setCredentialSource(new TestCredentialSource(FILE_CREDENTIAL_SOURCE_MAP)) + .build(); + + String expectedUrl = + "https://iamcredentials.googleapis.com/v1/projects/12345/locations/global/workloadIdentityPools/my-pool/allowedLocations"; + assertEquals(expectedUrl, credentials.getRegionalAccessBoundaryUrl()); + } + + @Test + public void getRegionalAccessBoundaryUrl_workforce() throws IOException { + String audience = + "//iam.googleapis.com/locations/global/workforcePools/my-pool/providers/my-provider"; + ExternalAccountCredentials credentials = + TestExternalAccountCredentials.newBuilder() + .setAudience(audience) + .setWorkforcePoolUserProject("12345") + .setSubjectTokenType("subject_token_type") + .setCredentialSource(new TestCredentialSource(FILE_CREDENTIAL_SOURCE_MAP)) + .build(); + + String expectedUrl = + "https://iamcredentials.googleapis.com/v1/locations/global/workforcePools/my-pool/allowedLocations"; + assertEquals(expectedUrl, credentials.getRegionalAccessBoundaryUrl()); + } + + @Test + public void getRegionalAccessBoundaryUrl_invalidAudience_throws() { + ExternalAccountCredentials credentials = + TestExternalAccountCredentials.newBuilder() + .setAudience("invalid-audience") + .setSubjectTokenType("subject_token_type") + .setCredentialSource(new TestCredentialSource(FILE_CREDENTIAL_SOURCE_MAP)) + .build(); + + IllegalStateException exception = + assertThrows( + IllegalStateException.class, + () -> { + credentials.getRegionalAccessBoundaryUrl(); + }); + + assertEquals( + "The provided audience is not in a valid format for either a workload identity pool or a workforce pool. " + + "Refer: https://docs.cloud.google.com/iam/docs/principal-identifiers", + exception.getMessage()); + } + + @Test + public void getRegionalAccessBoundaryUrl_nullAudience_throws() { + ExternalAccountCredentials credentials = + new TestExternalAccountCredentials( + TestExternalAccountCredentials.newBuilder() + .setAudience("any-audience-to-pass-constructor-check") + .setSubjectTokenType("subject_token_type") + .setCredentialSource(new TestCredentialSource(FILE_CREDENTIAL_SOURCE_MAP))) { + @Override + public String getAudience() { + return null; + } + }; + + IllegalStateException exception = + assertThrows( + IllegalStateException.class, + () -> { + credentials.getRegionalAccessBoundaryUrl(); + }); + + assertEquals( + "The audience is null, which is not in a valid format for either a workload identity pool or a workforce pool.", + exception.getMessage()); + } + + @Test + public void refresh_workload_regionalAccessBoundarySuccess() + throws IOException, InterruptedException { + + String audience = + "//iam.googleapis.com/projects/12345/locations/global/workloadIdentityPools/my-pool/providers/my-provider"; + + ExternalAccountCredentials credentials = + new IdentityPoolCredentials( + IdentityPoolCredentials.newBuilder() + .setHttpTransportFactory(transportFactory) + .setAudience(audience) + .setSubjectTokenType("subject_token_type") + .setTokenUrl(STS_URL) + .setCredentialSource(new TestCredentialSource(FILE_CREDENTIAL_SOURCE_MAP))) { + @Override + public String retrieveSubjectToken() throws IOException { + // This override isolates the test from the filesystem. + return "dummy-subject-token"; + } + }; + + // First call: initiates async refresh. + Map> headers = credentials.getRequestMetadata(); + assertNull(headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); + + waitForRegionalAccessBoundary(credentials); + + // Second call: should have header. + headers = credentials.getRequestMetadata(); + assertEquals( + headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY), + Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); + } + + @Test + public void refresh_workforce_regionalAccessBoundarySuccess() + throws IOException, InterruptedException { + + String audience = + "//iam.googleapis.com/locations/global/workforcePools/my-pool/providers/my-provider"; + + ExternalAccountCredentials credentials = + new IdentityPoolCredentials( + IdentityPoolCredentials.newBuilder() + .setHttpTransportFactory(transportFactory) + .setAudience(audience) + .setWorkforcePoolUserProject("12345") + .setSubjectTokenType("subject_token_type") + .setTokenUrl(STS_URL) + .setCredentialSource(new TestCredentialSource(FILE_CREDENTIAL_SOURCE_MAP))) { + @Override + public String retrieveSubjectToken() throws IOException { + return "dummy-subject-token"; + } + }; + + // First call: initiates async refresh. + Map> headers = credentials.getRequestMetadata(); + assertNull(headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); + + waitForRegionalAccessBoundary(credentials); + + // Second call: should have header. + headers = credentials.getRequestMetadata(); + assertEquals( + headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY), + Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); + } + + @Test + public void refresh_impersonated_workload_regionalAccessBoundarySuccess() + throws IOException, InterruptedException { + + String projectNumber = "12345"; + String poolId = "my-pool"; + String providerId = "my-provider"; + String audience = + String.format( + "//iam.googleapis.com/projects/%s/locations/global/workloadIdentityPools/%s/providers/%s", + projectNumber, poolId, providerId); + + transportFactory.transport.setExpireTime(TestUtils.getDefaultExpireTime()); + + // 1. Setup distinct RABs for workload and impersonated identities. + String workloadRabUrl = + String.format( + IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKLOAD_POOL, projectNumber, poolId); + RegionalAccessBoundary workloadRab = + new RegionalAccessBoundary( + "workload-encoded", Collections.singletonList("workload-loc"), null); + transportFactory.transport.addRegionalAccessBoundary(workloadRabUrl, workloadRab); + + String saEmail = + ImpersonatedCredentials.extractTargetPrincipal(SERVICE_ACCOUNT_IMPERSONATION_URL); + String impersonatedRabUrl = + String.format(IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_SERVICE_ACCOUNT, saEmail); + RegionalAccessBoundary impersonatedRab = + new RegionalAccessBoundary( + "impersonated-encoded", Collections.singletonList("impersonated-loc"), null); + transportFactory.transport.addRegionalAccessBoundary(impersonatedRabUrl, impersonatedRab); + + // Use a URL-based source that the mock transport can handle, to avoid file IO. + Map urlCredentialSourceMap = new HashMap<>(); + urlCredentialSourceMap.put("url", "https://www.metadata.google.com"); + Map headers = new HashMap<>(); + headers.put("Metadata-Flavor", "Google"); + urlCredentialSourceMap.put("headers", headers); + + ExternalAccountCredentials credentials = + IdentityPoolCredentials.newBuilder() + .setHttpTransportFactory(transportFactory) + .setAudience(audience) + .setSubjectTokenType("subject_token_type") + .setTokenUrl(STS_URL) + .setServiceAccountImpersonationUrl(SERVICE_ACCOUNT_IMPERSONATION_URL) + .setCredentialSource(new IdentityPoolCredentialSource(urlCredentialSourceMap)) + .build(); + + // First call: initiates async refresh. + Map> requestHeaders = credentials.getRequestMetadata(); + assertNull(requestHeaders.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); + + waitForRegionalAccessBoundary(credentials); + + // Second call: should have the IMPERSONATED header, not the workload one. + requestHeaders = credentials.getRequestMetadata(); + assertEquals( + Arrays.asList("impersonated-encoded"), + requestHeaders.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); + } + + @Test + public void refresh_impersonated_workforce_regionalAccessBoundarySuccess() + throws IOException, InterruptedException { + + String poolId = "my-pool"; + String providerId = "my-provider"; + String audience = + String.format( + "//iam.googleapis.com/locations/global/workforcePools/%s/providers/%s", + poolId, providerId); + + transportFactory.transport.setExpireTime(TestUtils.getDefaultExpireTime()); + + // 1. Setup distinct RABs for workforce and impersonated identities. + String workforceRabUrl = + String.format(IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKFORCE_POOL, poolId); + RegionalAccessBoundary workforceRab = + new RegionalAccessBoundary( + "workforce-encoded", Collections.singletonList("workforce-loc"), null); + transportFactory.transport.addRegionalAccessBoundary(workforceRabUrl, workforceRab); + + String saEmail = + ImpersonatedCredentials.extractTargetPrincipal(SERVICE_ACCOUNT_IMPERSONATION_URL); + String impersonatedRabUrl = + String.format(IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_SERVICE_ACCOUNT, saEmail); + RegionalAccessBoundary impersonatedRab = + new RegionalAccessBoundary( + "impersonated-encoded", Collections.singletonList("impersonated-loc"), null); + transportFactory.transport.addRegionalAccessBoundary(impersonatedRabUrl, impersonatedRab); + + // Use a URL-based source that the mock transport can handle, to avoid file IO. + Map urlCredentialSourceMap = new HashMap<>(); + urlCredentialSourceMap.put("url", "https://www.metadata.google.com"); + Map headers = new HashMap<>(); + headers.put("Metadata-Flavor", "Google"); + urlCredentialSourceMap.put("headers", headers); + + ExternalAccountCredentials credentials = + IdentityPoolCredentials.newBuilder() + .setHttpTransportFactory(transportFactory) + .setAudience(audience) + .setWorkforcePoolUserProject("12345") + .setSubjectTokenType("subject_token_type") + .setTokenUrl(STS_URL) + .setServiceAccountImpersonationUrl(SERVICE_ACCOUNT_IMPERSONATION_URL) + .setCredentialSource(new IdentityPoolCredentialSource(urlCredentialSourceMap)) + .build(); + + // First call: initiates async refresh. + Map> requestHeaders = credentials.getRequestMetadata(); + assertNull(requestHeaders.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); + + waitForRegionalAccessBoundary(credentials); + + // Second call: should have the IMPERSONATED header, not the workforce one. + requestHeaders = credentials.getRequestMetadata(); + assertEquals( + Arrays.asList("impersonated-encoded"), + requestHeaders.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); + } + + private void waitForRegionalAccessBoundary(GoogleCredentials credentials) + throws InterruptedException { + long deadline = System.currentTimeMillis() + 5000; + while (credentials.getRegionalAccessBoundary() == null + && System.currentTimeMillis() < deadline) { + Thread.sleep(100); + } + if (credentials.getRegionalAccessBoundary() == null) { + Assertions.fail("Timed out waiting for regional access boundary refresh"); + } + } + private GenericJson buildJsonIdentityPoolCredential() { GenericJson json = new GenericJson(); json.put( diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/GoogleCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/GoogleCredentialsTest.java index 74aa9fae9ccd..18e5c4585eef 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/GoogleCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/GoogleCredentialsTest.java @@ -31,6 +31,8 @@ package com.google.auth.oauth2; +import static com.google.auth.oauth2.RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY; +import static org.junit.Assert.fail; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertInstanceOf; @@ -44,6 +46,7 @@ import com.google.api.client.json.GenericJson; import com.google.api.client.util.Clock; import com.google.auth.Credentials; +import com.google.auth.RequestMetadataCallback; import com.google.auth.TestUtils; import com.google.auth.http.HttpTransportFactory; import com.google.auth.oauth2.ExternalAccountAuthorizedUserCredentialsTest.MockExternalAccountAuthorizedUserCredentialsTransportFactory; @@ -58,7 +61,10 @@ import java.util.Collections; import java.util.List; import java.util.Map; +import java.util.concurrent.atomic.AtomicLong; import java.util.concurrent.atomic.AtomicReference; +import javax.annotation.Nullable; +import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; /** Test case for {@link GoogleCredentials}. */ @@ -99,6 +105,12 @@ class GoogleCredentialsTest extends BaseSerializationTest { private static final String GOOGLE_DEFAULT_UNIVERSE = "googleapis.com"; private static final String TPC_UNIVERSE = "foo.bar"; + @org.junit.jupiter.api.BeforeEach + void setUp() {} + + @org.junit.jupiter.api.AfterEach + void tearDown() {} + @Test void getApplicationDefault_nullTransport_throws() { assertThrows(NullPointerException.class, () -> GoogleCredentials.getApplicationDefault(null)); @@ -838,6 +850,54 @@ void serialize() throws IOException, ClassNotFoundException { assertEquals(testCredentials.hashCode(), deserializedCredentials.hashCode()); assertEquals(testCredentials.toString(), deserializedCredentials.toString()); assertSame(Clock.SYSTEM, deserializedCredentials.clock); + assertSame(deserializedCredentials.clock, Clock.SYSTEM); + assertNotNull(deserializedCredentials.regionalAccessBoundaryManager); + } + + @Test + public void serialize_removesStaleRabHeaders() throws Exception { + + MockTokenServerTransportFactory transportFactory = new MockTokenServerTransportFactory(); + RegionalAccessBoundary rab = + new RegionalAccessBoundary( + "test-encoded", + Collections.singletonList("test-loc"), + System.currentTimeMillis(), + null); + transportFactory.transport.setRegionalAccessBoundary(rab); + transportFactory.transport.addServiceAccount(SA_CLIENT_EMAIL, ACCESS_TOKEN); + + GoogleCredentials credentials = + new ServiceAccountCredentials.Builder() + .setClientEmail(SA_CLIENT_EMAIL) + .setPrivateKey(OAuth2Utils.privateKeyFromPkcs8(SA_PRIVATE_KEY_PKCS8)) + .setPrivateKeyId(SA_PRIVATE_KEY_ID) + .setHttpTransportFactory(transportFactory) + .setScopes(SCOPES) + .build(); + + // 1. Trigger request metadata to start async RAB refresh + credentials.getRequestMetadata(URI.create("https://foo.com")); + + // Wait for the RAB to be fetched and cached + waitForRegionalAccessBoundary(credentials); + + // 2. Verify the live credential has the RAB header + Map> metadata = credentials.getRequestMetadata(); + assertEquals( + Collections.singletonList("test-encoded"), + metadata.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); + + // 3. Serialize and deserialize. + GoogleCredentials deserialized = serializeAndDeserialize(credentials); + + // 4. Verify. + // The manager is transient, so it should be empty. + assertNull(deserialized.getRegionalAccessBoundary()); + + // The metadata should NOT contain the RAB header anymore, preventing stale headers. + Map> deserializedMetadata = deserialized.getRequestMetadata(); + assertNull(deserializedMetadata.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); } @Test @@ -977,4 +1037,334 @@ void getCredentialInfo_impersonatedServiceAccount() throws IOException { assertEquals( ImpersonatedCredentialsTest.IMPERSONATED_CLIENT_EMAIL, credentialInfo.get("Principal")); } + + @Test + public void regionalAccessBoundary_shouldFetchAndReturnRegionalAccessBoundaryDataSuccessfully() + throws IOException, InterruptedException { + + MockTokenServerTransport transport = new MockTokenServerTransport(); + transport.addServiceAccount(SA_CLIENT_EMAIL, ACCESS_TOKEN); + RegionalAccessBoundary regionalAccessBoundary = + new RegionalAccessBoundary( + TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION, + Collections.singletonList("us-central1"), + null); + transport.setRegionalAccessBoundary(regionalAccessBoundary); + + ServiceAccountCredentials credentials = + ServiceAccountCredentials.newBuilder() + .setClientEmail(SA_CLIENT_EMAIL) + .setPrivateKey(OAuth2Utils.privateKeyFromPkcs8(SA_PRIVATE_KEY_PKCS8)) + .setPrivateKeyId(SA_PRIVATE_KEY_ID) + .setHttpTransportFactory(() -> transport) + .setScopes(SCOPES) + .build(); + + // First call: returns no header, initiates async refresh. + Map> headers = credentials.getRequestMetadata(); + assertNull(headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); + + waitForRegionalAccessBoundary(credentials); + + // Second call: should have header. + headers = credentials.getRequestMetadata(); + assertEquals( + headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY), + Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); + } + + @Test + public void regionalAccessBoundary_shouldRetryRegionalAccessBoundaryLookupOnFailure() + throws IOException, InterruptedException { + + // This transport will be used for the regional access boundary lookup. + // We will configure it to fail on the first attempt. + MockTokenServerTransport regionalAccessBoundaryTransport = new MockTokenServerTransport(); + regionalAccessBoundaryTransport.addResponseErrorSequence( + new IOException("Service Unavailable")); + RegionalAccessBoundary regionalAccessBoundary = + new RegionalAccessBoundary( + TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION, + TestUtils.REGIONAL_ACCESS_BOUNDARY_LOCATIONS, + null); + regionalAccessBoundaryTransport.setRegionalAccessBoundary(regionalAccessBoundary); + + // This transport will be used for the access token refresh. + // It will succeed. + MockTokenServerTransport accessTokenTransport = new MockTokenServerTransport(); + accessTokenTransport.addServiceAccount(SA_CLIENT_EMAIL, ACCESS_TOKEN); + + ServiceAccountCredentials credentials = + ServiceAccountCredentials.newBuilder() + .setClientEmail(SA_CLIENT_EMAIL) + .setPrivateKey(OAuth2Utils.privateKeyFromPkcs8(SA_PRIVATE_KEY_PKCS8)) + .setPrivateKeyId(SA_PRIVATE_KEY_ID) + // Use a custom transport factory that returns the correct transport for each endpoint. + .setHttpTransportFactory( + () -> + new com.google.api.client.testing.http.MockHttpTransport() { + @Override + public com.google.api.client.http.LowLevelHttpRequest buildRequest( + String method, String url) throws IOException { + if (url.endsWith("/allowedLocations")) { + return regionalAccessBoundaryTransport.buildRequest(method, url); + } + return accessTokenTransport.buildRequest(method, url); + } + }) + .setScopes(SCOPES) + .build(); + + credentials.getRequestMetadata(); + waitForRegionalAccessBoundary(credentials); + + Map> headers = credentials.getRequestMetadata(); + assertEquals( + Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION), + headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); + } + + @Test + public void regionalAccessBoundary_refreshShouldNotThrowWhenNoValidAccessTokenIsPassed() + throws IOException { + + MockTokenServerTransport transport = new MockTokenServerTransport(); + // Return an expired access token. + transport.addServiceAccount(SA_CLIENT_EMAIL, "expired-token"); + transport.setExpiresInSeconds(-1); + + ServiceAccountCredentials credentials = + ServiceAccountCredentials.newBuilder() + .setClientEmail(SA_CLIENT_EMAIL) + .setPrivateKey(OAuth2Utils.privateKeyFromPkcs8(SA_PRIVATE_KEY_PKCS8)) + .setPrivateKeyId(SA_PRIVATE_KEY_ID) + .setHttpTransportFactory(() -> transport) + .setScopes(SCOPES) + .build(); + + // Should not throw, but just fail-open (no header). + Map> headers = credentials.getRequestMetadata(); + assertNull(headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); + } + + @Test + public void regionalAccessBoundary_cooldownDoublingAndRefresh() + throws IOException, InterruptedException { + + MockTokenServerTransport transport = new MockTokenServerTransport(); + transport.addServiceAccount(SA_CLIENT_EMAIL, ACCESS_TOKEN); + // Always fail lookup for now. + transport.addResponseErrorSequence(new IOException("Persistent Failure")); + + ServiceAccountCredentials credentials = + ServiceAccountCredentials.newBuilder() + .setClientEmail(SA_CLIENT_EMAIL) + .setPrivateKey(OAuth2Utils.privateKeyFromPkcs8(SA_PRIVATE_KEY_PKCS8)) + .setPrivateKeyId(SA_PRIVATE_KEY_ID) + .setHttpTransportFactory(() -> transport) + .setScopes(SCOPES) + .build(); + + TestClock testClock = new TestClock(); + credentials.clock = testClock; + credentials.regionalAccessBoundaryManager = new RegionalAccessBoundaryManager(testClock, 100); + + // First attempt: triggers lookup, fails, enters 15m cooldown. + credentials.getRequestMetadata(); + waitForCooldownActive(credentials); + assertTrue(credentials.regionalAccessBoundaryManager.isCooldownActive()); + assertEquals( + 15 * 60 * 1000L, credentials.regionalAccessBoundaryManager.getCurrentCooldownMillis()); + + // Second attempt (during cooldown): does not trigger lookup. + credentials.getRequestMetadata(); + assertTrue(credentials.regionalAccessBoundaryManager.isCooldownActive()); + + // Fast-forward past 15m cooldown. + testClock.advanceTime(16 * 60 * 1000L); + assertFalse(credentials.regionalAccessBoundaryManager.isCooldownActive()); + + // Third attempt (cooldown expired): triggers lookup, fails again, cooldown should double. + credentials.getRequestMetadata(); + waitForCooldownActive(credentials); + assertTrue(credentials.regionalAccessBoundaryManager.isCooldownActive()); + assertEquals( + 30 * 60 * 1000L, credentials.regionalAccessBoundaryManager.getCurrentCooldownMillis()); + + // Fast-forward past 30m cooldown. + testClock.advanceTime(31 * 60 * 1000L); + assertFalse(credentials.regionalAccessBoundaryManager.isCooldownActive()); + + // Set successful response. + transport.setRegionalAccessBoundary( + new RegionalAccessBoundary("0x123", Collections.emptyList(), null)); + + // Fourth attempt: triggers lookup, succeeds, resets cooldown. + credentials.getRequestMetadata(); + waitForRegionalAccessBoundary(credentials); + assertFalse(credentials.regionalAccessBoundaryManager.isCooldownActive()); + assertEquals("0x123", credentials.getRegionalAccessBoundary().getEncodedLocations()); + assertEquals( + 15 * 60 * 1000L, credentials.regionalAccessBoundaryManager.getCurrentCooldownMillis()); + } + + @Test + public void regionalAccessBoundary_shouldFailOpenWhenRefreshCannotBeStarted() throws IOException { + + // Use a simple AccessToken-based credential that won't try to refresh. + GoogleCredentials credentials = GoogleCredentials.create(new AccessToken("some-token", null)); + + // Should not throw, but just fail-open (no header). + Map> headers = credentials.getRequestMetadata(); + assertNull(headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); + } + + @Test + public void regionalAccessBoundary_deduplicationOfConcurrentRefreshes() + throws IOException, InterruptedException { + + MockTokenServerTransport transport = new MockTokenServerTransport(); + transport.setRegionalAccessBoundary( + new RegionalAccessBoundary("valid", Collections.singletonList("us-central1"), null)); + // Add delay to lookup to ensure threads overlap. + transport.setResponseDelayMillis(500); + + GoogleCredentials credentials = createTestCredentials(transport); + + // Fire multiple concurrent requests. + for (int i = 0; i < 10; i++) { + new Thread( + () -> { + try { + credentials.getRequestMetadata(); + } catch (IOException e) { + } + }) + .start(); + } + + waitForRegionalAccessBoundary(credentials); + + // Only ONE request should have been made to the lookup endpoint. + assertEquals(1, transport.getRegionalAccessBoundaryRequestCount()); + } + + @Test + public void regionalAccessBoundary_shouldSkipRefreshForRegionalEndpoints() throws IOException { + + MockTokenServerTransport transport = new MockTokenServerTransport(); + GoogleCredentials credentials = createTestCredentials(transport); + + URI regionalUri = URI.create("https://storage.us-central1.rep.googleapis.com/v1/b/foo"); + credentials.getRequestMetadata(regionalUri); + + // Should not have triggered any lookup. + assertEquals(0, transport.getRegionalAccessBoundaryRequestCount()); + } + + @Test + public void getRequestMetadata_ignoresRabRefreshException() throws IOException { + GoogleCredentials credentials = + new GoogleCredentials() { + @Override + public AccessToken refreshAccessToken() throws IOException { + return new AccessToken("token", null); + } + + @Override + void refreshRegionalAccessBoundaryIfExpired( + @Nullable URI uri, @Nullable AccessToken token) throws IOException { + throw new IOException("Simulated RAB failure"); + } + }; + + // This should not throw the IOException from refreshRegionalAccessBoundaryIfExpired + Map> metadata = + credentials.getRequestMetadata(URI.create("https://foo.com")); + assertTrue(metadata.containsKey("Authorization")); + } + + @Test + public void getRequestMetadataAsync_ignoresRabRefreshException() throws IOException { + GoogleCredentials credentials = + new GoogleCredentials() { + @Override + public AccessToken refreshAccessToken() throws IOException { + return new AccessToken("token", null); + } + + @Override + void refreshRegionalAccessBoundaryIfExpired( + @Nullable URI uri, @Nullable AccessToken token) throws IOException { + throw new IOException("Simulated RAB failure"); + } + }; + + java.util.concurrent.atomic.AtomicBoolean success = + new java.util.concurrent.atomic.AtomicBoolean(false); + credentials.getRequestMetadata( + URI.create("https://foo.com"), + Runnable::run, + new RequestMetadataCallback() { + @Override + public void onSuccess(Map> metadata) { + success.set(true); + } + + @Override + public void onFailure(Throwable exception) { + fail("Should not have failed"); + } + }); + + assertTrue(success.get()); + } + + private GoogleCredentials createTestCredentials(MockTokenServerTransport transport) + throws IOException { + transport.addServiceAccount(SA_CLIENT_EMAIL, ACCESS_TOKEN); + return new ServiceAccountCredentials.Builder() + .setClientEmail(SA_CLIENT_EMAIL) + .setPrivateKey(OAuth2Utils.privateKeyFromPkcs8(SA_PRIVATE_KEY_PKCS8)) + .setPrivateKeyId(SA_PRIVATE_KEY_ID) + .setHttpTransportFactory(() -> transport) + .setScopes(SCOPES) + .build(); + } + + private void waitForRegionalAccessBoundary(GoogleCredentials credentials) + throws InterruptedException { + long deadline = System.currentTimeMillis() + 5000; + while (credentials.getRegionalAccessBoundary() == null + && System.currentTimeMillis() < deadline) { + Thread.sleep(100); + } + if (credentials.getRegionalAccessBoundary() == null) { + Assertions.fail("Timed out waiting for regional access boundary refresh"); + } + } + + private void waitForCooldownActive(GoogleCredentials credentials) throws InterruptedException { + long deadline = System.currentTimeMillis() + 5000; + while (!credentials.regionalAccessBoundaryManager.isCooldownActive() + && System.currentTimeMillis() < deadline) { + Thread.sleep(100); + } + if (!credentials.regionalAccessBoundaryManager.isCooldownActive()) { + Assertions.fail("Timed out waiting for cooldown to become active"); + } + } + + private static class TestClock implements Clock { + private final AtomicLong currentTime = new AtomicLong(System.currentTimeMillis()); + + @Override + public long currentTimeMillis() { + return currentTime.get(); + } + + public void advanceTime(long millis) { + currentTime.addAndGet(millis); + } + } } diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/IdTokenCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/IdTokenCredentialsTest.java index e3dcec4b520c..56ebcc3f273e 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/IdTokenCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/IdTokenCredentialsTest.java @@ -31,6 +31,7 @@ package com.google.auth.oauth2; +import static com.google.auth.oauth2.TestUtils.createDummyRab; import static org.junit.jupiter.api.Assertions.assertEquals; import java.io.IOException; @@ -46,6 +47,7 @@ void hashCode_equals() throws IOException { transportFactory.transport.setIdToken(ComputeEngineCredentialsTest.STANDARD_ID_TOKEN); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = @@ -72,6 +74,7 @@ void toString_equals() throws IOException { transportFactory.transport.setIdToken(ComputeEngineCredentialsTest.STANDARD_ID_TOKEN); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = @@ -99,6 +102,7 @@ void serialize() throws IOException, ClassNotFoundException { transportFactory.transport.setIdToken(ComputeEngineCredentialsTest.STANDARD_ID_TOKEN); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/IdentityPoolCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/IdentityPoolCredentialsTest.java index 674d523e5090..3a5dcd8720e7 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/IdentityPoolCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/IdentityPoolCredentialsTest.java @@ -34,12 +34,15 @@ import static com.google.auth.Credentials.GOOGLE_DEFAULT_UNIVERSE; import static com.google.auth.oauth2.MockExternalAccountCredentialsTransport.SERVICE_ACCOUNT_IMPERSONATION_URL; import static com.google.auth.oauth2.OAuth2Utils.JSON_FACTORY; +import static com.google.auth.oauth2.TestUtils.createDummyRab; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertSame; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.fail; import com.google.api.client.http.HttpTransport; import com.google.api.client.json.GenericJson; @@ -75,6 +78,12 @@ class IdentityPoolCredentialsTest extends BaseSerializationTest { private static final IdentityPoolSubjectTokenSupplier testProvider = (ExternalAccountSupplierContext context) -> "testSubjectToken"; + @org.junit.jupiter.api.BeforeEach + void setUp() {} + + @org.junit.jupiter.api.AfterEach + void tearDown() {} + @Test void createdScoped_clonedCredentialWithAddedScopes() { IdentityPoolCredentials credentials = @@ -85,10 +94,12 @@ void createdScoped_clonedCredentialWithAddedScopes() { .setClientSecret("clientSecret") .setUniverseDomain("universeDomain") .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); List newScopes = Arrays.asList("scope1", "scope2"); IdentityPoolCredentials newCredentials = credentials.createScoped(newScopes); + newCredentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(newCredentials.clock)); assertEquals(credentials.getAudience(), newCredentials.getAudience()); assertEquals(credentials.getSubjectTokenType(), newCredentials.getSubjectTokenType()); @@ -126,6 +137,7 @@ void retrieveSubjectToken_fileSourced() throws IOException { IdentityPoolCredentials.newBuilder(createBaseFileSourcedCredentials()) .setCredentialSource(credentialSource) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String subjectToken = credentials.retrieveSubjectToken(); @@ -167,6 +179,7 @@ void retrieveSubjectToken_fileSourcedWithJsonFormat() throws IOException { .setHttpTransportFactory(transportFactory) .setCredentialSource(credentialSource) .build(); + credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); String subjectToken = credential.retrieveSubjectToken(); @@ -205,6 +218,7 @@ void retrieveSubjectToken_noFile_throws() { IdentityPoolCredentials.newBuilder(createBaseFileSourcedCredentials()) .setCredentialSource(credentialSource) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IOException e = assertThrows(IOException.class, credentials::retrieveSubjectToken); assertEquals( @@ -223,6 +237,7 @@ void retrieveSubjectToken_urlSourced() throws IOException { .setCredentialSource( buildUrlBasedCredentialSource(transportFactory.transport.getMetadataUrl())) .build(); + credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); String subjectToken = credential.retrieveSubjectToken(); @@ -248,6 +263,7 @@ void retrieveSubjectToken_urlSourcedWithJsonFormat() throws IOException { .setHttpTransportFactory(transportFactory) .setCredentialSource(credentialSource) .build(); + credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); String subjectToken = credential.retrieveSubjectToken(); @@ -268,6 +284,7 @@ void retrieveSubjectToken_urlSourcedCredential_throws() { .setCredentialSource( buildUrlBasedCredentialSource(transportFactory.transport.getMetadataUrl())) .build(); + credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); IOException e = assertThrows(IOException.class, credential::retrieveSubjectToken); assertEquals( @@ -285,6 +302,7 @@ void retrieveSubjectToken_provider() throws IOException { .setCredentialSource(null) .setSubjectTokenSupplier(testProvider) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String subjectToken = credentials.retrieveSubjectToken(); @@ -304,6 +322,7 @@ void retrieveSubjectToken_providerThrowsError() { .setCredentialSource(null) .setSubjectTokenSupplier(errorProvider) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IOException e = assertThrows(IOException.class, credentials::retrieveSubjectToken); assertEquals("test", e.getMessage()); @@ -328,6 +347,7 @@ void retrieveSubjectToken_supplierPassesContext() throws IOException { .setCredentialSource(null) .setSubjectTokenSupplier(testSupplier) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); credentials.retrieveSubjectToken(); } @@ -349,6 +369,7 @@ void refreshAccessToken_withoutServiceAccountImpersonation() throws IOException .setCredentialSource( buildUrlBasedCredentialSource(transportFactory.transport.getMetadataUrl())) .build(); + credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); AccessToken accessToken = credential.refreshAccessToken(); @@ -375,6 +396,7 @@ void refreshAccessToken_internalOptionsSet() throws IOException { .setCredentialSource( buildUrlBasedCredentialSource(transportFactory.transport.getMetadataUrl())) .build(); + credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); AccessToken accessToken = credential.refreshAccessToken(); @@ -412,6 +434,7 @@ void refreshAccessToken_withServiceAccountImpersonation() throws IOException { .setCredentialSource( buildUrlBasedCredentialSource(transportFactory.transport.getMetadataUrl())) .build(); + credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); AccessToken accessToken = credential.refreshAccessToken(); @@ -445,6 +468,7 @@ void refreshAccessToken_withServiceAccountImpersonationOptions() throws IOExcept .setServiceAccountImpersonationOptions( ExternalAccountCredentialsTest.buildServiceAccountImpersonationOptions()) .build(); + credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); AccessToken accessToken = credential.refreshAccessToken(); @@ -481,6 +505,7 @@ void refreshAccessToken_Provider() throws IOException { .setTokenUrl(transportFactory.transport.getStsUrl()) .setHttpTransportFactory(transportFactory) .build(); + credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); AccessToken accessToken = credential.refreshAccessToken(); @@ -510,6 +535,7 @@ void refreshAccessToken_providerWithServiceAccountImpersonation() throws IOExcep .setTokenUrl(transportFactory.transport.getStsUrl()) .setHttpTransportFactory(transportFactory) .build(); + credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); AccessToken accessToken = credential.refreshAccessToken(); @@ -540,6 +566,7 @@ void refreshAccessToken_workforceWithServiceAccountImpersonation() throws IOExce buildUrlBasedCredentialSource(transportFactory.transport.getMetadataUrl())) .setWorkforcePoolUserProject("userProject") .build(); + credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); AccessToken accessToken = credential.refreshAccessToken(); @@ -577,6 +604,7 @@ void refreshAccessToken_workforceWithServiceAccountImpersonationOptions() throws .setServiceAccountImpersonationOptions( ExternalAccountCredentialsTest.buildServiceAccountImpersonationOptions()) .build(); + credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); AccessToken accessToken = credential.refreshAccessToken(); @@ -760,6 +788,7 @@ void builder_allFields() { .setScopes(scopes) .setUniverseDomain("universeDomain") .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertEquals("audience", credentials.getAudience()); assertEquals("subjectTokenType", credentials.getSubjectTokenType()); @@ -794,6 +823,7 @@ void builder_subjectTokenSupplier() { .setClientSecret("clientSecret") .setScopes(scopes) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertEquals(testProvider, credentials.getIdentityPoolSubjectTokenSupplier()); } @@ -845,6 +875,7 @@ void builder_emptyWorkforceUserProjectWithWorkforceAudience() { .setCredentialSource(createFileCredentialSource()) .setQuotaProjectId("quotaProjectId") .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertTrue(credentials.isWorkforcePoolConfiguration()); } @@ -899,6 +930,7 @@ void builder_missingUniverseDomain_defaults() { .setClientSecret("clientSecret") .setScopes(scopes) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertEquals("audience", credentials.getAudience()); assertEquals("subjectTokenType", credentials.getSubjectTokenType()); @@ -936,9 +968,13 @@ void newBuilder_allFields() { .setWorkforcePoolUserProject("workforcePoolUserProject") .setUniverseDomain("universeDomain") .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IdentityPoolCredentials newBuilderCreds = IdentityPoolCredentials.newBuilder(credentials).build(); + newBuilderCreds.regionalAccessBoundaryManager.setCachedRAB( + new RegionalAccessBoundary( + "dummy-locations", Arrays.asList("dummy-loc"), newBuilderCreds.clock)); assertEquals(credentials.getAudience(), newBuilderCreds.getAudience()); assertEquals(credentials.getSubjectTokenType(), newBuilderCreds.getSubjectTokenType()); assertEquals(credentials.getTokenUrl(), newBuilderCreds.getTokenUrl()); @@ -977,9 +1013,13 @@ void newBuilder_noUniverseDomain_defaults() { .setScopes(scopes) .setWorkforcePoolUserProject("workforcePoolUserProject") .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IdentityPoolCredentials newBuilderCreds = IdentityPoolCredentials.newBuilder(credentials).build(); + newBuilderCreds.regionalAccessBoundaryManager.setCachedRAB( + new RegionalAccessBoundary( + "dummy-locations", Arrays.asList("dummy-loc"), newBuilderCreds.clock)); assertEquals(credentials.getAudience(), newBuilderCreds.getAudience()); assertEquals(credentials.getSubjectTokenType(), newBuilderCreds.getSubjectTokenType()); assertEquals(credentials.getTokenUrl(), newBuilderCreds.getTokenUrl()); @@ -1008,6 +1048,9 @@ void serialize() throws IOException, ClassNotFoundException { .setClientSecret("clientSecret") .setUniverseDomain("universeDomain") .build(); + testCredentials.regionalAccessBoundaryManager.setCachedRAB( + new RegionalAccessBoundary( + "dummy-locations", Arrays.asList("dummy-loc"), testCredentials.clock)); IdentityPoolCredentials deserializedCredentials = serializeAndDeserialize(testCredentials); assertEquals(testCredentials, deserializedCredentials); @@ -1037,6 +1080,7 @@ void build_withCertificateSource_succeeds() throws Exception { .setSubjectTokenType("test-token-type") .setCredentialSource(credentialSource) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); // Verify successful creation and correct internal setup. assertNotNull(credentials, "Credentials should be successfully created"); @@ -1079,6 +1123,7 @@ void build_withDefaultCertificateConfig_success() .setSubjectTokenType("test-token-type") .setCredentialSource(credentialSource) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); // Verify successful creation and correct internal setup. assertNotNull(credentials, "Credentials should be successfully created"); @@ -1248,15 +1293,18 @@ private IdentityPoolCredentials createBaseFileSourcedCredentials() { IdentityPoolCredentialSource identityPoolCredentialSource = new IdentityPoolCredentialSource(fileCredentialSourceMap); - return IdentityPoolCredentials.newBuilder() - .setHttpTransportFactory(OAuth2Utils.HTTP_TRANSPORT_FACTORY) - .setAudience( - "//iam.googleapis.com/projects/123/locations/global/workloadIdentityPools/pool/providers/provider") - .setSubjectTokenType("subjectTokenType") - .setTokenUrl(STS_URL) - .setTokenInfoUrl("tokenInfoUrl") - .setCredentialSource(identityPoolCredentialSource) - .build(); + IdentityPoolCredentials credentials = + IdentityPoolCredentials.newBuilder() + .setHttpTransportFactory(OAuth2Utils.HTTP_TRANSPORT_FACTORY) + .setAudience( + "//iam.googleapis.com/projects/123/locations/global/workloadIdentityPools/pool/providers/provider") + .setSubjectTokenType("subjectTokenType") + .setTokenUrl(STS_URL) + .setTokenInfoUrl("tokenInfoUrl") + .setCredentialSource(identityPoolCredentialSource) + .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); + return credentials; } private IdentityPoolCredentialSource createFileCredentialSource() { @@ -1299,4 +1347,46 @@ void setShouldThrowOnGetKeyStore(boolean shouldThrow) { this.shouldThrowOnGetKeyStore = shouldThrow; } } + + @Test + public void testRefresh_regionalAccessBoundarySuccess() throws IOException, InterruptedException { + + MockExternalAccountCredentialsTransportFactory transportFactory = + new MockExternalAccountCredentialsTransportFactory(); + HttpTransportFactory testingHttpTransportFactory = transportFactory; + + IdentityPoolCredentials credentials = + IdentityPoolCredentials.newBuilder() + .setSubjectTokenSupplier(testProvider) + .setHttpTransportFactory(testingHttpTransportFactory) + .setAudience( + "//iam.googleapis.com/projects/12345/locations/global/workloadIdentityPools/pool/providers/provider") + .setSubjectTokenType("subjectTokenType") + .setTokenUrl(STS_URL) + .build(); + + // First call: initiates async refresh. + Map> headers = credentials.getRequestMetadata(); + assertNull(headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); + + waitForRegionalAccessBoundary(credentials); + + // Second call: should have header. + headers = credentials.getRequestMetadata(); + assertEquals( + headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY), + Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); + } + + private void waitForRegionalAccessBoundary(GoogleCredentials credentials) + throws InterruptedException { + long deadline = System.currentTimeMillis() + 5000; + while (credentials.getRegionalAccessBoundary() == null + && System.currentTimeMillis() < deadline) { + Thread.sleep(100); + } + if (credentials.getRegionalAccessBoundary() == null) { + fail("Timed out waiting for regional access boundary refresh"); + } + } } diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ImpersonatedCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ImpersonatedCredentialsTest.java index 044aa0ce6755..3664fb22c2ff 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ImpersonatedCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ImpersonatedCredentialsTest.java @@ -31,6 +31,8 @@ package com.google.auth.oauth2; +import static com.google.auth.oauth2.RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY; +import static com.google.auth.oauth2.TestUtils.createDummyRab; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; @@ -40,6 +42,7 @@ import static org.junit.jupiter.api.Assertions.assertSame; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.fail; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; @@ -69,6 +72,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.Calendar; +import java.util.Collections; import java.util.Date; import java.util.List; import java.util.Map; @@ -145,6 +149,11 @@ class ImpersonatedCredentialsTest extends BaseSerializationTest { private static final String REFRESH_TOKEN = "dasdfasdffa4ffdfadgyjirasdfadsft"; public static final List DELEGATES = Arrays.asList("sa1@developer.gserviceaccount.com", "sa2@developer.gserviceaccount.com"); + public static final RegionalAccessBoundary REGIONAL_ACCESS_BOUNDARY = + new RegionalAccessBoundary( + TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION, + TestUtils.REGIONAL_ACCESS_BOUNDARY_LOCATIONS, + null); private GoogleCredentials sourceCredentials; private MockIAMCredentialsServiceTransportFactory mockTransportFactory; @@ -167,7 +176,10 @@ static GoogleCredentials getSourceCredentials() throws IOException { .setProjectId(PROJECT_ID) .setHttpTransportFactory(transportFactory) .build(); + sourceCredentials.regionalAccessBoundaryManager.setCachedRAB( + createDummyRab(sourceCredentials.clock)); transportFactory.transport.addServiceAccount(SA_CLIENT_EMAIL, ACCESS_TOKEN); + transportFactory.transport.setRegionalAccessBoundary(REGIONAL_ACCESS_BOUNDARY); return sourceCredentials; } @@ -583,6 +595,8 @@ void getRequestMetadata_withQuotaProjectId() throws IOException, IllegalStateExc VALID_LIFETIME, mockTransportFactory, QUOTA_PROJECT_ID); + targetCredentials.regionalAccessBoundaryManager.setCachedRAB( + createDummyRab(targetCredentials.clock)); Map> metadata = targetCredentials.getRequestMetadata(); assertTrue(metadata.containsKey("x-goog-user-project")); @@ -605,6 +619,8 @@ void getRequestMetadata_withoutQuotaProjectId() throws IOException, IllegalState IMMUTABLE_SCOPES_LIST, VALID_LIFETIME, mockTransportFactory); + targetCredentials.regionalAccessBoundaryManager.setCachedRAB( + createDummyRab(targetCredentials.clock)); Map> metadata = targetCredentials.getRequestMetadata(); assertFalse(metadata.containsKey("x-goog-user-project")); @@ -1260,6 +1276,54 @@ void refreshAccessToken_afterSerialization_success() throws IOException, ClassNo assertEquals(ACCESS_TOKEN, token.getTokenValue()); } + @Test + void refresh_regionalAccessBoundarySuccess() throws IOException, InterruptedException { + + // Mock regional access boundary response + RegionalAccessBoundary regionalAccessBoundary = REGIONAL_ACCESS_BOUNDARY; + + mockTransportFactory.getTransport().setRegionalAccessBoundary(regionalAccessBoundary); + mockTransportFactory.getTransport().setTargetPrincipal(IMPERSONATED_CLIENT_EMAIL); + mockTransportFactory.getTransport().setAccessToken(ACCESS_TOKEN); + mockTransportFactory.getTransport().setExpireTime(getDefaultExpireTime()); + mockTransportFactory + .getTransport() + .addStatusCodeAndMessage(HttpStatusCodes.STATUS_CODE_OK, "", true); + + ImpersonatedCredentials targetCredentials = + ImpersonatedCredentials.create( + sourceCredentials, + IMPERSONATED_CLIENT_EMAIL, + null, + IMMUTABLE_SCOPES_LIST, + VALID_LIFETIME, + mockTransportFactory); + + // First call: initiates async refresh. + Map> headers = targetCredentials.getRequestMetadata(); + assertNull(headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); + + waitForRegionalAccessBoundary(targetCredentials); + + // Second call: should have header. + headers = targetCredentials.getRequestMetadata(); + assertEquals( + headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY), + Collections.singletonList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); + } + + private void waitForRegionalAccessBoundary(GoogleCredentials credentials) + throws InterruptedException { + long deadline = System.currentTimeMillis() + 5000; + while (credentials.getRegionalAccessBoundary() == null + && System.currentTimeMillis() < deadline) { + Thread.sleep(100); + } + if (credentials.getRegionalAccessBoundary() == null) { + fail("Timed out waiting for regional access boundary refresh"); + } + } + public static String getDefaultExpireTime() { return Instant.now().plusSeconds(VALID_LIFETIME).truncatedTo(ChronoUnit.SECONDS).toString(); } diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/LoggingTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/LoggingTest.java index 524a312ce0c1..92ea38cbcf7d 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/LoggingTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/LoggingTest.java @@ -43,6 +43,7 @@ import static com.google.auth.oauth2.ServiceAccountCredentialsTest.DEFAULT_ID_TOKEN; import static com.google.auth.oauth2.ServiceAccountCredentialsTest.SCOPES; import static com.google.auth.oauth2.ServiceAccountCredentialsTest.createDefaultBuilder; +import static com.google.auth.oauth2.TestUtils.createDummyRab; import static com.google.auth.oauth2.UserCredentialsTest.CLIENT_ID; import static com.google.auth.oauth2.UserCredentialsTest.CLIENT_SECRET; import static com.google.auth.oauth2.UserCredentialsTest.REFRESH_TOKEN; @@ -94,12 +95,16 @@ static void setup() { LoggingUtils.setEnvironmentProvider(testEnvironmentProvider); } + @org.junit.jupiter.api.BeforeEach + void setUp() {} + @Test void userCredentials_getRequestMetadata_fromRefreshToken_hasAccessToken() throws IOException { TestAppender testAppender = setupTestLogger(UserCredentials.class); MockTokenServerTransportFactory transportFactory = new MockTokenServerTransportFactory(); transportFactory.transport.addClient(CLIENT_ID, CLIENT_SECRET); transportFactory.transport.addRefreshToken(REFRESH_TOKEN, ACCESS_TOKEN); + UserCredentials userCredentials = UserCredentials.newBuilder() .setClientId(CLIENT_ID) @@ -163,6 +168,7 @@ void serviceAccountCredentials_getRequestMetadata_hasAccessToken() throws IOExce ServiceAccountCredentialsTest.createDefaultBuilderWithToken(ACCESS_TOKEN) .setScopes(SCOPES) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); TestUtils.assertContainsBearerToken(metadata, ACCESS_TOKEN); @@ -212,12 +218,14 @@ void serviceAccountCredentials_idTokenWithAudience_iamFlow_targetAudienceMatches transportFactory.getTransport().setTargetPrincipal(CLIENT_EMAIL); transportFactory.getTransport().setIdToken(DEFAULT_ID_TOKEN); transportFactory.getTransport().addStatusCodeAndMessage(HttpStatusCodes.STATUS_CODE_OK, ""); + ServiceAccountCredentials credentials = createDefaultBuilder() .setScopes(SCOPES) .setHttpTransportFactory(transportFactory) .setUniverseDomain(nonGDU) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = @@ -439,11 +447,12 @@ void getRequestMetadata_hasAccessToken() throws IOException { transportFactory.transport.setServiceAccountEmail("SA_CLIENT_EMAIL"); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); TestUtils.assertContainsBearerToken(metadata, ACCESS_TOKEN); - assertEquals(3, testAppender.events.size()); + assertEquals(5, testAppender.events.size()); ILoggingEvent accessTokenRequest = testAppender.events.get(0); assertEquals("Sending request to refresh access token", accessTokenRequest.getMessage()); @@ -480,6 +489,7 @@ void idTokenWithAudience_full() throws IOException { MockMetadataServerTransportFactory transportFactory = new MockMetadataServerTransportFactory(); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = @@ -534,6 +544,7 @@ void serviceAccountCredentials_exchangeToken_masksSensitiveTokens() throws IOExc ServiceAccountCredentialsTest.createDefaultBuilderWithToken(ACCESS_TOKEN) .setScopes(SCOPES) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); TestUtils.assertContainsBearerToken(metadata, ACCESS_TOKEN); diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockExternalAccountCredentialsTransport.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockExternalAccountCredentialsTransport.java index 7719b08d2e7b..c53eda5b2bd5 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockExternalAccountCredentialsTransport.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockExternalAccountCredentialsTransport.java @@ -50,6 +50,7 @@ import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Collections; +import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Queue; @@ -68,6 +69,7 @@ public class MockExternalAccountCredentialsTransport extends MockHttpTransport { private static final String AWS_IMDSV2_SESSION_TOKEN_URL = "https://169.254.169.254/imdsv2"; private static final String METADATA_SERVER_URL = "https://www.metadata.google.com"; private static final String STS_URL = "https://sts.googleapis.com/v1/token"; + private static final String REGIONAL_ACCESS_BOUNDARY_URL_END = "/allowedLocations"; private static final String SUBJECT_TOKEN = "subjectToken"; private static final String TOKEN_TYPE = "Bearer"; @@ -92,6 +94,11 @@ public class MockExternalAccountCredentialsTransport extends MockHttpTransport { private String expireTime; private String metadataServerContentType; private String stsContent; + private final Map regionalAccessBoundaries = new HashMap<>(); + + public void addRegionalAccessBoundary(String url, RegionalAccessBoundary regionalAccessBoundary) { + this.regionalAccessBoundaries.put(url, regionalAccessBoundary); + } public void addResponseErrorSequence(IOException... errors) { Collections.addAll(responseErrorSequence, errors); @@ -196,6 +203,26 @@ public LowLevelHttpResponse execute() throws IOException { } if (url.contains(IAM_ENDPOINT)) { + + if (url.endsWith(REGIONAL_ACCESS_BOUNDARY_URL_END)) { + RegionalAccessBoundary rab = regionalAccessBoundaries.get(url); + if (rab == null) { + rab = + new RegionalAccessBoundary( + TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION, + TestUtils.REGIONAL_ACCESS_BOUNDARY_LOCATIONS, + null); + } + GenericJson responseJson = new GenericJson(); + responseJson.setFactory(OAuth2Utils.JSON_FACTORY); + responseJson.put("encodedLocations", rab.getEncodedLocations()); + responseJson.put("locations", rab.getLocations()); + String content = responseJson.toPrettyString(); + return new MockLowLevelHttpResponse() + .setContentType(Json.MEDIA_TYPE) + .setContent(content); + } + GenericJson query = OAuth2Utils.JSON_FACTORY .createJsonParser(getContentAsString()) @@ -220,7 +247,9 @@ public LowLevelHttpResponse execute() throws IOException { } }; - this.requests.add(request); + if (url == null || !url.contains("allowedLocations")) { + this.requests.add(request); + } return request; } diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockIAMCredentialsServiceTransport.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockIAMCredentialsServiceTransport.java index cbd57d115afe..5346f4fdba3d 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockIAMCredentialsServiceTransport.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockIAMCredentialsServiceTransport.java @@ -80,6 +80,8 @@ public ServerResponse(int statusCode, String response, boolean repeatServerRespo private String universeDomain; + private RegionalAccessBoundary regionalAccessBoundary; + private MockLowLevelHttpRequest request; MockIAMCredentialsServiceTransport(String universeDomain) { @@ -132,6 +134,10 @@ public void setAccessTokenEndpoint(String accessTokenEndpoint) { this.iamAccessTokenEndpoint = accessTokenEndpoint; } + public void setRegionalAccessBoundary(RegionalAccessBoundary regionalAccessBoundary) { + this.regionalAccessBoundary = regionalAccessBoundary; + } + public MockLowLevelHttpRequest getRequest() { return request; } @@ -221,6 +227,25 @@ public LowLevelHttpResponse execute() throws IOException { .setContent(tokenContent); } }; + } else if (url.endsWith("/allowedLocations")) { + request = + new MockLowLevelHttpRequest(url) { + @Override + public LowLevelHttpResponse execute() throws IOException { + if (regionalAccessBoundary == null) { + return new MockLowLevelHttpResponse().setStatusCode(404); + } + GenericJson responseJson = new GenericJson(); + responseJson.setFactory(OAuth2Utils.JSON_FACTORY); + responseJson.put("encodedLocations", regionalAccessBoundary.getEncodedLocations()); + responseJson.put("locations", regionalAccessBoundary.getLocations()); + String content = responseJson.toPrettyString(); + return new MockLowLevelHttpResponse() + .setContentType(Json.MEDIA_TYPE) + .setContent(content); + } + }; + return request; } else { return super.buildRequest(method, url); } diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java index 1b218b73ef45..92b24d60fd53 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java @@ -72,6 +72,9 @@ public class MockMetadataServerTransport extends MockHttpTransport { private boolean emptyContent; private MockLowLevelHttpRequest request; + private RegionalAccessBoundary regionalAccessBoundary; + private IOException lookupError; + public MockMetadataServerTransport() {} public MockMetadataServerTransport(String accessToken) { @@ -119,6 +122,14 @@ public void setEmptyContent(boolean emptyContent) { this.emptyContent = emptyContent; } + public void setRegionalAccessBoundary(RegionalAccessBoundary regionalAccessBoundary) { + this.regionalAccessBoundary = regionalAccessBoundary; + } + + public void setLookupError(IOException lookupError) { + this.lookupError = lookupError; + } + public MockLowLevelHttpRequest getRequest() { return request; } @@ -139,6 +150,8 @@ public LowLevelHttpRequest buildRequest(String method, String url) throws IOExce return this.request; } else if (isMtlsConfigRequestUrl(url)) { return getMockRequestForMtlsConfig(url); + } else if (isIamLookupUrl(url)) { + return getMockRequestForRegionalAccessBoundaryLookup(url); } this.request = new MockLowLevelHttpRequest(url) { @@ -213,7 +226,7 @@ public LowLevelHttpResponse execute() throws IOException { refreshContents.put( "access_token", scopesToAccessToken.get("[" + urlParsed.get(1) + "]")); } - refreshContents.put("expires_in", 3600000); + refreshContents.put("expires_in", 3600); refreshContents.put("token_type", "Bearer"); String refreshText = refreshContents.toPrettyString(); @@ -346,4 +359,32 @@ protected boolean isMtlsConfigRequestUrl(String url) { ComputeEngineCredentials.getMetadataServerUrl() + SecureSessionAgent.S2A_CONFIG_ENDPOINT_POSTFIX); } + + private MockLowLevelHttpRequest getMockRequestForRegionalAccessBoundaryLookup(String url) { + return new MockLowLevelHttpRequest(url) { + @Override + public LowLevelHttpResponse execute() throws IOException { + if (lookupError != null) { + throw lookupError; + } + if (regionalAccessBoundary == null) { + return new MockLowLevelHttpResponse().setStatusCode(404); + } + GenericJson responseJson = new GenericJson(); + responseJson.setFactory(OAuth2Utils.JSON_FACTORY); + responseJson.put("encodedLocations", regionalAccessBoundary.getEncodedLocations()); + responseJson.put("locations", regionalAccessBoundary.getLocations()); + String content = responseJson.toPrettyString(); + return new MockLowLevelHttpResponse().setContentType(Json.MEDIA_TYPE).setContent(content); + } + }; + } + + protected boolean isIamLookupUrl(String url) { + // Mocking call to the /allowedLocations endpoint for regional access boundary refresh. + // For testing convenience, this mock transport handles + // the /allowedLocations endpoint. The actual server for this endpoint + // will be the IAM Credentials API. + return url.endsWith("/allowedLocations"); + } } diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockStsTransport.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockStsTransport.java index cdb0a068e2d0..24566a0e5ca3 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockStsTransport.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockStsTransport.java @@ -62,6 +62,8 @@ public final class MockStsTransport extends MockHttpTransport { private static final String ISSUED_TOKEN_TYPE = "urn:ietf:params:oauth:token-type:access_token"; private static final String VALID_STS_PATTERN = "https:\\/\\/sts.[a-z-_\\.]+\\/v1\\/(token|oauthtoken)"; + private static final String VALID_REGIONAL_ACCESS_BOUNDARY_PATTERN = + "https:\\/\\/iam.[a-z-_\\.]+\\/v1\\/.*\\/allowedLocations"; private static final String ACCESS_TOKEN = "accessToken"; private static final String TOKEN_TYPE = "Bearer"; private static final Long EXPIRES_IN = 3600L; @@ -99,6 +101,23 @@ public LowLevelHttpRequest buildRequest(final String method, final String url) { new MockLowLevelHttpRequest(url) { @Override public LowLevelHttpResponse execute() throws IOException { + // Mocking call to refresh regional access boundaries. + // The lookup endpoint is located in the IAM server. + Matcher regionalAccessBoundaryMatcher = + Pattern.compile(VALID_REGIONAL_ACCESS_BOUNDARY_PATTERN).matcher(url); + if (regionalAccessBoundaryMatcher.matches()) { + // Mocking call to the /allowedLocations endpoint for regional access boundary + // refresh. + // For testing convenience, this mock transport handles + // the /allowedLocations endpoint. + GenericJson response = new GenericJson(); + response.put("locations", TestUtils.REGIONAL_ACCESS_BOUNDARY_LOCATIONS); + response.put("encodedLocations", TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION); + return new MockLowLevelHttpResponse() + .setContentType(Json.MEDIA_TYPE) + .setContent(OAuth2Utils.JSON_FACTORY.toString(response)); + } + // Environment version is prefixed by "aws". e.g. "aws1". Matcher matcher = Pattern.compile(VALID_STS_PATTERN).matcher(url); if (!matcher.matches()) { diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockTokenServerTransport.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockTokenServerTransport.java index 5a6cd2e5d1a8..62f31e256d24 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockTokenServerTransport.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockTokenServerTransport.java @@ -76,6 +76,21 @@ public class MockTokenServerTransport extends MockHttpTransport { private int expiresInSeconds = 3600; private MockLowLevelHttpRequest request; private PKCEProvider pkceProvider; + private RegionalAccessBoundary regionalAccessBoundary; + private int regionalAccessBoundaryRequestCount = 0; + private int responseDelayMillis = 0; + + public void setRegionalAccessBoundary(RegionalAccessBoundary regionalAccessBoundary) { + this.regionalAccessBoundary = regionalAccessBoundary; + } + + public int getRegionalAccessBoundaryRequestCount() { + return regionalAccessBoundaryRequestCount; + } + + public void setResponseDelayMillis(int responseDelayMillis) { + this.responseDelayMillis = responseDelayMillis; + } public MockTokenServerTransport() {} @@ -171,6 +186,40 @@ public LowLevelHttpRequest buildRequest(String method, String url) throws IOExce int questionMarkPos = url.indexOf('?'); final String urlWithoutQuery = (questionMarkPos > 0) ? url.substring(0, questionMarkPos) : url; + if (urlWithoutQuery.endsWith("/allowedLocations")) { + // Mocking call to the /allowedLocations endpoint for regional access boundary refresh. + // For testing convenience, this mock transport handles + // the /allowedLocations endpoint. The actual server for this endpoint + // will be the IAM Credentials API. + request = + new MockLowLevelHttpRequest(url) { + @Override + public LowLevelHttpResponse execute() throws IOException { + regionalAccessBoundaryRequestCount++; + if (responseDelayMillis > 0) { + try { + Thread.sleep(responseDelayMillis); + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + } + } + RegionalAccessBoundary rab = regionalAccessBoundary; + if (rab == null) { + return new MockLowLevelHttpResponse().setStatusCode(404); + } + GenericJson responseJson = new GenericJson(); + responseJson.setFactory(JSON_FACTORY); + responseJson.put("encodedLocations", rab.getEncodedLocations()); + responseJson.put("locations", rab.getLocations()); + String content = responseJson.toPrettyString(); + return new MockLowLevelHttpResponse() + .setContentType(Json.MEDIA_TYPE) + .setContent(content); + } + }; + return request; + } + if (!responseSequence.isEmpty()) { request = new MockLowLevelHttpRequest(url) { diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/PluggableAuthCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/PluggableAuthCredentialsTest.java index 094b21f9dbb2..8576ffe38e3a 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/PluggableAuthCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/PluggableAuthCredentialsTest.java @@ -36,6 +36,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.fail; import com.google.api.client.http.HttpTransport; import com.google.api.client.json.GenericJson; @@ -56,6 +57,10 @@ /** Tests for {@link PluggableAuthCredentials}. */ class PluggableAuthCredentialsTest extends BaseSerializationTest { + + @org.junit.jupiter.api.AfterEach + void tearDown() {} + // The default timeout for waiting for the executable to finish (30 seconds). private static final int DEFAULT_EXECUTABLE_TIMEOUT_MS = 30 * 1000; // The minimum timeout for waiting for the executable to finish (5 seconds). @@ -601,6 +606,49 @@ void serialize() { assertThrows(NotSerializableException.class, () -> serializeAndDeserialize(testCredentials)); } + @Test + public void testRefresh_regionalAccessBoundarySuccess() throws IOException, InterruptedException { + + MockExternalAccountCredentialsTransportFactory transportFactory = + new MockExternalAccountCredentialsTransportFactory(); + transportFactory.transport.setExpireTime(TestUtils.getDefaultExpireTime()); + + PluggableAuthCredentials credentials = + PluggableAuthCredentials.newBuilder() + .setHttpTransportFactory(transportFactory) + .setAudience( + "//iam.googleapis.com/projects/12345/locations/global/workloadIdentityPools/pool/providers/provider") + .setSubjectTokenType("subjectTokenType") + .setTokenUrl(transportFactory.transport.getStsUrl()) + .setCredentialSource(buildCredentialSource()) + .setExecutableHandler(options -> "pluggableAuthToken") + .build(); + + // First call: initiates async refresh. + Map> headers = credentials.getRequestMetadata(); + assertNull(headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); + + waitForRegionalAccessBoundary(credentials); + + // Second call: should have header. + headers = credentials.getRequestMetadata(); + assertEquals( + headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY), + Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); + } + + private void waitForRegionalAccessBoundary(GoogleCredentials credentials) + throws InterruptedException { + long deadline = System.currentTimeMillis() + 5000; + while (credentials.getRegionalAccessBoundary() == null + && System.currentTimeMillis() < deadline) { + Thread.sleep(100); + } + if (credentials.getRegionalAccessBoundary() == null) { + fail("Timed out waiting for regional access boundary refresh"); + } + } + private static PluggableAuthCredentialSource buildCredentialSource() { return buildCredentialSource("command", null, null); } diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/RegionalAccessBoundaryTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/RegionalAccessBoundaryTest.java new file mode 100644 index 000000000000..5664582ef059 --- /dev/null +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/RegionalAccessBoundaryTest.java @@ -0,0 +1,337 @@ +/* + * Copyright 2026, Google LLC + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are + * met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above + * copyright notice, this list of conditions and the following disclaimer + * in the documentation and/or other materials provided with the + * distribution. + * + * * Neither the name of Google LLC nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +package com.google.auth.oauth2; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import com.google.api.client.testing.http.MockHttpTransport; +import com.google.api.client.testing.http.MockLowLevelHttpResponse; +import com.google.api.client.util.Clock; +import com.google.auth.http.HttpTransportFactory; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.ObjectInputStream; +import java.io.ObjectOutputStream; +import java.util.Collections; +import java.util.concurrent.CountDownLatch; +import java.util.concurrent.atomic.AtomicLong; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +public class RegionalAccessBoundaryTest { + + private static final long TTL = RegionalAccessBoundary.TTL_MILLIS; + private static final long REFRESH_THRESHOLD = RegionalAccessBoundary.REFRESH_THRESHOLD_MILLIS; + + private TestClock testClock; + + @BeforeEach + public void setUp() { + testClock = new TestClock(); + } + + @AfterEach + public void tearDown() {} + + @Test + public void testIsExpired() { + long now = testClock.currentTimeMillis(); + RegionalAccessBoundary rab = + new RegionalAccessBoundary("encoded", Collections.singletonList("loc"), now, testClock); + + assertFalse(rab.isExpired()); + + testClock.set(now + TTL - 1); + assertFalse(rab.isExpired()); + + testClock.set(now + TTL + 1); + assertTrue(rab.isExpired()); + } + + @Test + public void testShouldRefresh() { + long now = testClock.currentTimeMillis(); + RegionalAccessBoundary rab = + new RegionalAccessBoundary("encoded", Collections.singletonList("loc"), now, testClock); + + // Initial state: fresh + assertFalse(rab.shouldRefresh()); + + // Just before threshold + testClock.set(now + TTL - REFRESH_THRESHOLD - 1); + assertFalse(rab.shouldRefresh()); + + // At threshold + testClock.set(now + TTL - REFRESH_THRESHOLD + 1); + assertTrue(rab.shouldRefresh()); + + // Still not expired + assertFalse(rab.isExpired()); + } + + @Test + public void testSerialization() throws Exception { + long now = testClock.currentTimeMillis(); + RegionalAccessBoundary rab = + new RegionalAccessBoundary("encoded", Collections.singletonList("loc"), now, testClock); + + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + ObjectOutputStream oos = new ObjectOutputStream(baos); + oos.writeObject(rab); + oos.close(); + + ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); + ObjectInputStream ois = new ObjectInputStream(bais); + RegionalAccessBoundary deserializedRab = (RegionalAccessBoundary) ois.readObject(); + ois.close(); + + assertEquals("encoded", deserializedRab.getEncodedLocations()); + assertEquals(1, deserializedRab.getLocations().size()); + assertEquals("loc", deserializedRab.getLocations().get(0)); + // The transient clock field should be restored to Clock.SYSTEM upon deserialization, + // thereby avoiding a NullPointerException when checking expiration. + assertFalse(deserializedRab.isExpired()); + } + + @Test + public void testRefreshClosesResponse() throws Exception { + final String url = "https://example.com/rab"; + final AccessToken token = + new AccessToken("token", new java.util.Date(System.currentTimeMillis() + 3600000L)); + + TrackingMockLowLevelHttpResponse mockResponse = new TrackingMockLowLevelHttpResponse(); + mockResponse.setContentType("application/json"); + mockResponse.setContent("{\"encodedLocations\": \"encoded\", \"locations\": [\"loc\"]}"); + + MockHttpTransport transport = + new MockHttpTransport.Builder().setLowLevelHttpResponse(mockResponse).build(); + HttpTransportFactory transportFactory = () -> transport; + + RegionalAccessBoundary rab = + RegionalAccessBoundary.refresh(transportFactory, url, token, testClock, 1000); + + assertEquals("encoded", rab.getEncodedLocations()); + assertTrue(mockResponse.isDisconnected(), "Response should have been disconnected"); + } + + @Test + public void testManagerTriggersRefreshInGracePeriod() throws InterruptedException { + final String url = + "https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/default:allowedLocations"; + final AccessToken token = + new AccessToken( + "token", new java.util.Date(System.currentTimeMillis() + 10 * 3600000L)); // + + // Mock transport to return a new RAB + final String newEncoded = "new-encoded"; + MockHttpTransport transport = + new MockHttpTransport.Builder() + .setLowLevelHttpResponse( + new MockLowLevelHttpResponse() + .setContentType("application/json") + .setContent( + "{\"encodedLocations\": \"" + + newEncoded + + "\", \"locations\": [\"new-loc\"]}")) + .build(); + HttpTransportFactory transportFactory = () -> transport; + RegionalAccessBoundaryProvider provider = () -> url; + + RegionalAccessBoundaryManager manager = new RegionalAccessBoundaryManager(testClock); + + // 1. Let's first get a RAB into the cache + manager.triggerAsyncRefresh(transportFactory, provider, token); + + // Wait for it to be cached + int retries = 0; + while (manager.getCachedRAB() == null && retries < 50) { + Thread.sleep(50); + retries++; + } + assertEquals(newEncoded, manager.getCachedRAB().getEncodedLocations()); + + // 2. Advance clock to grace period + testClock.set(testClock.currentTimeMillis() + TTL - REFRESH_THRESHOLD + 1000); + + assertTrue(manager.getCachedRAB().shouldRefresh()); + assertFalse(manager.getCachedRAB().isExpired()); + + // 3. Prepare mock for SECOND refresh + final String newerEncoded = "newer-encoded"; + MockHttpTransport transport2 = + new MockHttpTransport.Builder() + .setLowLevelHttpResponse( + new MockLowLevelHttpResponse() + .setContentType("application/json") + .setContent( + "{\"encodedLocations\": \"" + + newerEncoded + + "\", \"locations\": [\"newer-loc\"]}")) + .build(); + HttpTransportFactory transportFactory2 = () -> transport2; + + // 4. Trigger refresh - should start because we are in grace period + manager.triggerAsyncRefresh(transportFactory2, provider, token); + + // 5. Wait for background refresh to complete + // We expect the cached RAB to eventually change to newerEncoded + retries = 0; + RegionalAccessBoundary resultRab = null; + while (retries < 100) { + resultRab = manager.getCachedRAB(); + if (resultRab != null && newerEncoded.equals(resultRab.getEncodedLocations())) { + break; + } + Thread.sleep(50); + retries++; + } + + assertTrue( + resultRab != null && newerEncoded.equals(resultRab.getEncodedLocations()), + "Refresh should have completed and updated the cache within 5 seconds"); + assertEquals(newerEncoded, resultRab.getEncodedLocations()); + } + + @Test + public void testExecutorQueueCapacityLimit() throws Exception { + final String url = "https://example.com/rab"; + final AccessToken token = + new AccessToken("token", new java.util.Date(System.currentTimeMillis() + 3600000L)); + RegionalAccessBoundaryProvider provider = () -> url; + + int poolSize = 5; + int queueCapacity = 100; + int totalCapacity = poolSize + queueCapacity; + + java.util.concurrent.ThreadPoolExecutor testExecutor = + new java.util.concurrent.ThreadPoolExecutor( + poolSize, + poolSize, + 1, + java.util.concurrent.TimeUnit.HOURS, + new java.util.concurrent.LinkedBlockingQueue<>(queueCapacity), + r -> { + Thread t = new Thread(r, "test-RAB-refresh"); + t.setDaemon(true); + return t; + }); + + CountDownLatch latch = new CountDownLatch(1); + + java.io.InputStream blockingStream = + new java.io.InputStream() { + private final java.io.InputStream delegate = + new ByteArrayInputStream( + "{\"encodedLocations\": \"encoded\", \"locations\": [\"loc\"]}".getBytes()); + private boolean blocked = false; + + @Override + public int read() throws java.io.IOException { + if (!blocked) { + try { + latch.await(); + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + } + blocked = true; + } + return delegate.read(); + } + }; + + MockHttpTransport transport = + new MockHttpTransport.Builder() + .setLowLevelHttpResponse( + new MockLowLevelHttpResponse() + .setContent(blockingStream) + .setContentType("application/json")) + .build(); + HttpTransportFactory transportFactory = () -> transport; + + RegionalAccessBoundaryManager[] managers = new RegionalAccessBoundaryManager[totalCapacity]; + for (int i = 0; i < totalCapacity; i++) { + managers[i] = + new RegionalAccessBoundaryManager( + testClock, + RegionalAccessBoundaryManager.DEFAULT_MAX_RETRY_ELAPSED_TIME_MILLIS, + testExecutor); + managers[i].triggerAsyncRefresh(transportFactory, provider, token); + } + + RegionalAccessBoundaryManager extraManager = + new RegionalAccessBoundaryManager( + testClock, + RegionalAccessBoundaryManager.DEFAULT_MAX_RETRY_ELAPSED_TIME_MILLIS, + testExecutor); + assertFalse(extraManager.isCooldownActive()); + + extraManager.triggerAsyncRefresh(transportFactory, provider, token); + + assertFalse( + extraManager.isCooldownActive(), + "106th task should NOT have entered cooldown on scheduling failure"); + + latch.countDown(); + testExecutor.shutdownNow(); + } + + private static class TestClock implements Clock { + private final AtomicLong currentTime = new AtomicLong(System.currentTimeMillis()); + + @Override + public long currentTimeMillis() { + return currentTime.get(); + } + + public void set(long millis) { + currentTime.set(millis); + } + } + + private static class TrackingMockLowLevelHttpResponse extends MockLowLevelHttpResponse { + private boolean disconnected = false; + + @Override + public void disconnect() throws IOException { + super.disconnect(); + disconnected = true; + } + + public boolean isDisconnected() { + return disconnected; + } + } +} diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java index 6ee26e3338a0..e1582ebe2b3a 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java @@ -31,6 +31,8 @@ package com.google.auth.oauth2; +import static com.google.auth.oauth2.RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY; +import static com.google.auth.oauth2.TestUtils.createDummyRab; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -155,6 +157,12 @@ static ServiceAccountCredentials.Builder createDefaultBuilder() throws IOExcepti return createDefaultBuilderWithKey(privateKey); } + @org.junit.jupiter.api.BeforeEach + void setUp() {} + + @org.junit.jupiter.api.AfterEach + void tearDown() {} + @Test void setLifetime() throws IOException { ServiceAccountCredentials.Builder builder = createDefaultBuilder(); @@ -359,6 +367,7 @@ void createAssertionForIdToken_incorrect() throws IOException { @Test void createdScoped_withAud_noUniverse_jwtWithScopesDisabled_accessToken() throws IOException { GoogleCredentials credentials = createDefaultBuilderWithToken(ACCESS_TOKEN).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); // No aud, no scopes gives an exception. IOException exception = @@ -368,6 +377,8 @@ void createdScoped_withAud_noUniverse_jwtWithScopesDisabled_accessToken() throws "expected to fail with exception"); GoogleCredentials scopedCredentials = credentials.createScoped(SCOPES); + scopedCredentials.regionalAccessBoundaryManager.setCachedRAB( + createDummyRab(scopedCredentials.clock)); assertEquals(false, credentials.isExplicitUniverseDomain()); assertEquals(Credentials.GOOGLE_DEFAULT_UNIVERSE, credentials.getUniverseDomain()); Map> metadata = scopedCredentials.getRequestMetadata(CALL_URI); @@ -378,17 +389,22 @@ void createdScoped_withAud_noUniverse_jwtWithScopesDisabled_accessToken() throws void createdScoped_withUniverse_selfSignedJwt() throws IOException { ServiceAccountCredentials credentials = createDefaultBuilder().setUniverseDomain("foo.bar").build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IOException exception = assertThrows(IOException.class, () -> credentials.getRequestMetadata(null)); assertTrue( exception.getMessage().contains("Scopes and uri are not configured for service account")); GoogleCredentials scopedCredentials = credentials.createScoped("dummy.scope"); + scopedCredentials.regionalAccessBoundaryManager.setCachedRAB( + createDummyRab(scopedCredentials.clock)); Map> metadata = scopedCredentials.getRequestMetadata(null); verifyJwtAccess(metadata, "dummy.scope"); // Recreate to avoid jwt caching. scopedCredentials = credentials.createScoped("dummy.scope2"); + scopedCredentials.regionalAccessBoundaryManager.setCachedRAB( + createDummyRab(scopedCredentials.clock)); assertEquals(true, scopedCredentials.isExplicitUniverseDomain()); assertEquals("foo.bar", scopedCredentials.getUniverseDomain()); metadata = scopedCredentials.getRequestMetadata(CALL_URI); @@ -398,6 +414,8 @@ void createdScoped_withUniverse_selfSignedJwt() throws IOException { scopedCredentials = credentials.createScoped( Collections.emptyList(), Arrays.asList("dummy.default.scope")); + scopedCredentials.regionalAccessBoundaryManager.setCachedRAB( + createDummyRab(scopedCredentials.clock)); metadata = scopedCredentials.getRequestMetadata(null); verifyJwtAccess(metadata, "dummy.default.scope"); @@ -405,6 +423,8 @@ void createdScoped_withUniverse_selfSignedJwt() throws IOException { scopedCredentials = credentials.createScoped( Collections.emptyList(), Arrays.asList("dummy.default.scope2")); + scopedCredentials.regionalAccessBoundaryManager.setCachedRAB( + createDummyRab(scopedCredentials.clock)); metadata = scopedCredentials.getRequestMetadata(CALL_URI); verifyJwtAccess(metadata, "dummy.default.scope2"); } @@ -525,6 +545,7 @@ void fromJSON_hasAccessToken() throws IOException { GenericJson json = writeServiceAccountJson(PROJECT_ID, null, null); GoogleCredentials credentials = ServiceAccountCredentials.fromJson(json, transportFactory); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); credentials = credentials.createScoped(SCOPES); Map> metadata = credentials.getRequestMetadata(CALL_URI); @@ -538,6 +559,7 @@ void fromJSON_withUniverse_selfSignedJwt() throws IOException { GenericJson json = writeServiceAccountJson(PROJECT_ID, null, "foo.bar"); GoogleCredentials credentials = ServiceAccountCredentials.fromJson(json, transportFactory); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); credentials = credentials.createScoped(SCOPES); Map> metadata = credentials.getRequestMetadata(null); @@ -562,6 +584,7 @@ void fromJson_hasQuotaProjectId() throws IOException { transportFactory.transport.addServiceAccount(CLIENT_EMAIL, ACCESS_TOKEN); GenericJson json = writeServiceAccountJson(PROJECT_ID, QUOTA_PROJECT, null); GoogleCredentials credentials = ServiceAccountCredentials.fromJson(json, transportFactory); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); credentials = credentials.createScoped(SCOPES); Map> metadata = credentials.getRequestMetadata(CALL_URI); @@ -576,6 +599,7 @@ void fromJson_hasQuotaProjectId() throws IOException { void getRequestMetadata_hasAccessToken() throws IOException { GoogleCredentials credentials = createDefaultBuilderWithToken(ACCESS_TOKEN).setScopes(SCOPES).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); TestUtils.assertContainsBearerToken(metadata, ACCESS_TOKEN); } @@ -586,12 +610,13 @@ void getRequestMetadata_customTokenServer_hasAccessToken() throws IOException { MockTokenServerTransportFactory transportFactory = new MockTokenServerTransportFactory(); transportFactory.transport.addServiceAccount(CLIENT_EMAIL, ACCESS_TOKEN); transportFactory.transport.setTokenServerUri(tokenServerUri); - OAuth2Credentials credentials = + ServiceAccountCredentials credentials = createDefaultBuilder() .setScopes(SCOPES) .setHttpTransportFactory(transportFactory) .setTokenServerUri(tokenServerUri) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); TestUtils.assertContainsBearerToken(metadata, ACCESS_TOKEN); @@ -616,6 +641,7 @@ void refreshAccessToken_refreshesToken() throws IOException { MockTokenServerTransport transport = transportFactory.transport; ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, accessToken1); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), accessToken1); @@ -631,6 +657,7 @@ void refreshAccessToken_tokenExpiry() throws IOException { transport.addServiceAccount(CLIENT_EMAIL, ACCESS_TOKEN); ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); credentials.clock = new FixedClock(0L); AccessToken accessToken = credentials.refreshAccessToken(); @@ -652,6 +679,7 @@ void refreshAccessToken_IOException_Retry() throws IOException { MockTokenServerTransport transport = transportFactory.transport; ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, accessToken1); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), accessToken1); @@ -670,6 +698,7 @@ void refreshAccessToken_retriesServerErrors() throws IOException { MockTokenServerTransport transport = transportFactory.transport; ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, accessToken1); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), accessToken1); @@ -690,6 +719,7 @@ void refreshAccessToken_retriesTimeoutAndThrottled() throws IOException { MockTokenServerTransport transport = transportFactory.transport; ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, accessToken1); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), accessToken1); @@ -714,6 +744,7 @@ void refreshAccessToken_defaultRetriesDisabled() throws IOException { .setHttpTransportFactory(transportFactory) .build() .createWithCustomRetryStrategy(false); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, accessToken1); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), accessToken1); @@ -735,6 +766,7 @@ void refreshAccessToken_maxRetries_maxDelay() throws IOException { MockTokenServerTransport transport = transportFactory.transport; ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, ACCESS_TOKEN); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), ACCESS_TOKEN); @@ -764,6 +796,7 @@ void refreshAccessToken_RequestFailure_retried() throws IOException { MockTokenServerTransport transport = transportFactory.transport; ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, ACCESS_TOKEN); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), ACCESS_TOKEN); @@ -795,6 +828,7 @@ void refreshAccessToken_4xx_5xx_NonRetryableFails() throws IOException { MockTokenServerTransport transport = transportFactory.transport; ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, accessToken1); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), accessToken1); @@ -820,6 +854,7 @@ void idTokenWithAudience_oauthFlow_targetAudienceMatchesAudClaim() throws IOExce MockTokenServerTransport transport = transportFactory.transport; ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, accessToken1); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), accessToken1); @@ -857,6 +892,7 @@ void idTokenWithAudience_oauthFlow_targetAudienceDoesNotMatchAudClaim() throws I MockTokenServerTransport transport = transportFactory.transport; ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, accessToken1); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), accessToken1); @@ -889,6 +925,7 @@ void idTokenWithAudience_iamFlow_targetAudienceMatchesAudClaim() throws IOExcept .setHttpTransportFactory(transportFactory) .setUniverseDomain(nonGDU) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = @@ -920,6 +957,7 @@ void idTokenWithAudience_iamFlow_targetAudienceDoesNotMatchAudClaim() throws IOE .setHttpTransportFactory(transportFactory) .setUniverseDomain(nonGDU) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "differentAudience"; IdTokenCredentials tokenCredential = @@ -941,6 +979,7 @@ void idTokenWithAudience_oauthEndpoint_non2XXStatusCode() throws IOException { transportFactory.transport.setError(new IOException("404 Not Found")); ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "audience"; IdTokenCredentials tokenCredential = @@ -969,6 +1008,7 @@ void idTokenWithAudience_iamEndpoint_non2XXStatusCode() throws IOException { .setHttpTransportFactory(transportFactory) .setUniverseDomain(universeDomain) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "audience"; IdTokenCredentials tokenCredential = @@ -1370,6 +1410,7 @@ void fromStream_providesToken() throws IOException { GoogleCredentials credentials = ServiceAccountCredentials.fromStream(serviceAccountStream, transportFactory); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertNotNull(credentials); credentials = credentials.createScoped(SCOPES); @@ -1412,6 +1453,7 @@ void getIdTokenWithAudience_badEmailError_issClaimTraced() throws IOException { transport.setError(new IOException("Invalid grant: Account not found")); ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://bar"; IdTokenCredentials tokenCredential = @@ -1496,6 +1538,7 @@ void getRequestMetadata_setsQuotaProjectId() throws IOException { .setQuotaProjectId("my-quota-project-id") .setHttpTransportFactory(transportFactory) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); assertTrue(metadata.containsKey("x-goog-user-project")); @@ -1522,6 +1565,7 @@ void getRequestMetadata_noQuotaProjectId() throws IOException { .setProjectId(PROJECT_ID) .setHttpTransportFactory(transportFactory) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); assertFalse(metadata.containsKey("x-goog-user-project")); @@ -1545,6 +1589,7 @@ void getRequestMetadata_withCallback() throws IOException { .setQuotaProjectId("my-quota-project-id") .setHttpTransportFactory(transportFactory) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); final Map> plainMetadata = credentials.getRequestMetadata(); final AtomicBoolean success = new AtomicBoolean(false); @@ -1585,6 +1630,7 @@ void getRequestMetadata_withScopes_withUniverseDomain_SelfSignedJwt() throws IOE .setHttpTransportFactory(transportFactory) .setUniverseDomain("foo.bar") .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); final Map> plainMetadata = credentials.getRequestMetadata(); final AtomicBoolean success = new AtomicBoolean(false); @@ -1621,6 +1667,7 @@ void getRequestMetadata_withScopes_selfSignedJWT() throws IOException { .setHttpTransportFactory(new MockTokenServerTransportFactory()) .setUseJwtAccessWithScope(true) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); assertNotNull(((ServiceAccountCredentials) credentials).getSelfSignedJwtCredentialsWithScope()); @@ -1652,6 +1699,7 @@ void refreshAccessToken_withDomainDelegation_selfSignedJWT_disabled() throws IOE .setHttpTransportFactory(transportFactory) .setUseJwtAccessWithScope(true) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, accessToken1); Map> metadata = credentials.getRequestMetadata(CALL_URI); @@ -1676,6 +1724,7 @@ void getRequestMetadata_withAudience_selfSignedJWT() throws IOException { .setProjectId(PROJECT_ID) .setHttpTransportFactory(new MockTokenServerTransportFactory()) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); assertNull(((ServiceAccountCredentials) credentials).getSelfSignedJwtCredentialsWithScope()); @@ -1696,6 +1745,7 @@ void getRequestMetadata_withDefaultScopes_selfSignedJWT() throws IOException { .setHttpTransportFactory(new MockTokenServerTransportFactory()) .setUseJwtAccessWithScope(true) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(null); verifyJwtAccess(metadata, "dummy.scope"); @@ -1716,6 +1766,7 @@ void getRequestMetadataWithCallback_selfSignedJWT() throws IOException { .setUseJwtAccessWithScope(true) .setScopes(SCOPES) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); final AtomicBoolean success = new AtomicBoolean(false); credentials.getRequestMetadata( @@ -1753,6 +1804,7 @@ void createScopes_existingAccessTokenInvalidated() throws IOException { .setHttpTransportFactory(transportFactory) .setScopes(SCOPES) .build(); + credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), ACCESS_TOKEN); // Calling createScoped() again will invalidate the existing access token and calling @@ -1773,6 +1825,96 @@ void getRequestMetadata_withMultipleScopes_selfSignedJWT() throws IOException { verifyJwtAccess(credentials.getRequestMetadata(CALL_URI), "scope1 scope2"); } + @Test + public void refresh_regionalAccessBoundarySuccess() throws IOException, InterruptedException { + + // Mock regional access boundary response + RegionalAccessBoundary regionalAccessBoundary = + new RegionalAccessBoundary( + TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION, + TestUtils.REGIONAL_ACCESS_BOUNDARY_LOCATIONS, + null); + + MockTokenServerTransport transport = new MockTokenServerTransport(); + transport.addServiceAccount(CLIENT_EMAIL, "test-access-token"); + transport.setRegionalAccessBoundary(regionalAccessBoundary); + + ServiceAccountCredentials credentials = + ServiceAccountCredentials.newBuilder() + .setClientEmail(CLIENT_EMAIL) + .setPrivateKey( + OAuth2Utils.privateKeyFromPkcs8(ServiceAccountCredentialsTest.PRIVATE_KEY_PKCS8)) + .setPrivateKeyId("test-key-id") + .setHttpTransportFactory(() -> transport) + .setScopes(SCOPES) + .build(); + + // First call: initiates async refresh. + Map> headers = credentials.getRequestMetadata(); + assertNull(headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); + + waitForRegionalAccessBoundary(credentials); + + // Second call: should have header. + headers = credentials.getRequestMetadata(); + assertEquals( + headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY), + Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); + } + + @Test + public void refresh_regionalAccessBoundary_selfSignedJWT() + throws IOException, InterruptedException { + + RegionalAccessBoundary regionalAccessBoundary = + new RegionalAccessBoundary( + TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION, + TestUtils.REGIONAL_ACCESS_BOUNDARY_LOCATIONS, + null); + + MockTokenServerTransport transport = new MockTokenServerTransport(); + transport.setRegionalAccessBoundary(regionalAccessBoundary); + + ServiceAccountCredentials credentials = + ServiceAccountCredentials.newBuilder() + .setClientEmail(CLIENT_EMAIL) + .setPrivateKey( + OAuth2Utils.privateKeyFromPkcs8(ServiceAccountCredentialsTest.PRIVATE_KEY_PKCS8)) + .setPrivateKeyId("test-key-id") + .setHttpTransportFactory(() -> transport) + .setUseJwtAccessWithScope(true) + .setScopes(SCOPES) + .build(); + + // First call: initiates async refresh using the SSJWT as the token. + Map> headers = credentials.getRequestMetadata(); + assertNull(headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); + + waitForRegionalAccessBoundary(credentials); + + // Second call: should have header. + headers = credentials.getRequestMetadata(); + assertEquals( + headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY), + Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); + + assertEquals( + TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION, + credentials.getRegionalAccessBoundary().getEncodedLocations()); + } + + private void waitForRegionalAccessBoundary(GoogleCredentials credentials) + throws InterruptedException { + long deadline = System.currentTimeMillis() + 5000; + while (credentials.getRegionalAccessBoundary() == null + && System.currentTimeMillis() < deadline) { + Thread.sleep(100); + } + if (credentials.getRegionalAccessBoundary() == null) { + fail("Timed out waiting for regional access boundary refresh"); + } + } + private void verifyJwtAccess(Map> metadata, String expectedScopeClaim) throws IOException { assertNotNull(metadata); diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/TestUtils.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/TestUtils.java index 4efc138bbfa8..52652a71c458 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/TestUtils.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/TestUtils.java @@ -69,4 +69,9 @@ static void validateMetricsHeader( } assertEquals(expectedMetricsValue, actualMetricsValue); } + + static RegionalAccessBoundary createDummyRab(com.google.api.client.util.Clock clock) { + return new RegionalAccessBoundary( + "dummy-locations", java.util.Arrays.asList("dummy-loc"), clock); + } } diff --git a/google-auth-library-java/samples/snippets/pom.xml b/google-auth-library-java/samples/snippets/pom.xml index 5b721797222a..941191a80ee0 100644 --- a/google-auth-library-java/samples/snippets/pom.xml +++ b/google-auth-library-java/samples/snippets/pom.xml @@ -80,4 +80,3 @@ - From aa3262ae03e76af73ab0bd2739fce7dbfc5a1454 Mon Sep 17 00:00:00 2001 From: Kirill Logachev Date: Mon, 22 Jun 2026 17:48:32 -0700 Subject: [PATCH 50/82] chore(bigquery-jdbc): refactor tests to remove hardcoded base uri (#13420) --- .../bigquery/jdbc/BigQueryJdbcBaseTest.java | 3 +- .../cloud/bigquery/jdbc/it/ITAuthTests.java | 51 ++-- .../google/cloud/bigquery/jdbc/it/ITBase.java | 12 +- .../bigquery/jdbc/it/ITBigQueryJDBCTest.java | 261 +++++------------- .../jdbc/it/ITCallableStatementTest.java | 5 +- .../jdbc/it/ITConnectionPoolingTest.java | 52 +--- .../bigquery/jdbc/it/ITConnectionTest.java | 81 ++---- .../jdbc/it/ITDatabaseMetadataTest.java | 96 ++----- .../jdbc/it/ITNightlyBigQueryTest.java | 80 ++---- .../jdbc/it/ITResultSetMetadataTest.java | 3 +- .../bigquery/jdbc/it/ITStatementTest.java | 43 +-- .../bigquery/jdbc/utils/TestUtilities.java | 23 ++ 12 files changed, 248 insertions(+), 462 deletions(-) diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcBaseTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcBaseTest.java index 1ee627b8af00..d9b1ce473324 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcBaseTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcBaseTest.java @@ -16,6 +16,7 @@ package com.google.cloud.bigquery.jdbc; +import com.google.cloud.bigquery.jdbc.utils.TestUtilities; import com.google.cloud.bigquery.jdbc.utils.URIBuilder; public class BigQueryJdbcBaseTest { @@ -43,7 +44,7 @@ public class BigQueryJdbcBaseTest { "-----END PRIVATE KEY-----"; protected static URIBuilder getBaseUri() { - return new URIBuilder("jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;"); + return new URIBuilder(TestUtilities.getBaseConnectionUrl()); } protected static URIBuilder getBaseUri(int authType) { diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITAuthTests.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITAuthTests.java index 0877553e42c0..1d6bac0cd257 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITAuthTests.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITAuthTests.java @@ -90,7 +90,7 @@ public void testValidServiceAccountAuthentication() throws SQLException, IOExcep Files.write(tempFile.toPath(), authJson.toString().getBytes()); String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" + getBaseConnectionUrl() + "ProjectId=" + authJson.get("project_id").getAsString() + ";OAuthType=0;" @@ -104,11 +104,7 @@ public void testValidServiceAccountAuthentication() throws SQLException, IOExcep @Test public void testServiceAccountAuthenticationMissingOAuthPvtKeyPath() throws SQLException { - String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "ProjectId=" - + PROJECT_ID - + ";OAuthType=0;"; + String connection_uri = getBaseConnectionUrl() + "ProjectId=" + PROJECT_ID + ";OAuthType=0;"; try { DriverManager.getConnection(connection_uri); @@ -127,7 +123,7 @@ public void testValidServiceAccountAuthenticationOAuthPvtKeyAsPath() Files.write(tempFile.toPath(), authJson.toString().getBytes()); String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" + getBaseConnectionUrl() + "ProjectId=" + authJson.get("project_id").getAsString() + ";OAuthType=0;" @@ -144,7 +140,7 @@ public void testValidServiceAccountAuthenticationViaEmailAndPkcs8Key() final JsonObject authJson = getAuthJson(); String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" + getBaseConnectionUrl() + "ProjectId=" + authJson.get("project_id").getAsString() + ";OAuthType=0;" @@ -162,7 +158,7 @@ public void testValidServiceAccountAuthenticationOAuthPvtKeyAsJson() final JsonObject authJson = getAuthJson(); String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" + getBaseConnectionUrl() + "ProjectId=" + authJson.get("project_id").getAsString() + ";OAuthType=0;" @@ -192,9 +188,12 @@ public void testValidServiceAccountAuthenticationP12() throws SQLException, IOEx @Disabled public void testValidGoogleUserAccountAuthentication() throws SQLException { String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" + getBaseConnectionUrl() + + "PROJECTID=" + PROJECT_ID - + ";OAuthType=1;OAuthClientId=client_id;OAuthClientSecret=client_secret;"; + + ";OAuthType=1;" + + "OAuthClientId=client_id;" + + "OAuthClientSecret=client_secret;"; Connection connection = DriverManager.getConnection(connection_uri); assertNotNull(connection); @@ -213,12 +212,15 @@ public void testValidGoogleUserAccountAuthentication() throws SQLException { @Disabled public void testValidExternalAccountAuthentication() throws SQLException { String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" + getBaseConnectionUrl() + + "PROJECTID=" + PROJECT_ID + ";OAUTHTYPE=4;" + "BYOID_AudienceUri=//iam.googleapis.com/projects//locations//workloadIdentityPools//providers/;" - + "BYOID_SubjectTokenType=;BYOID_CredentialSource={\"file\":\"/path/to/file\"};" - + "BYOID_SA_Impersonation_Uri=;BYOID_TokenUri=;"; + + "BYOID_SubjectTokenType=;" + + "BYOID_CredentialSource={\"file\":\"/path/to/file\"};" + + "BYOID_SA_Impersonation_Uri=;" + + "BYOID_TokenUri=;"; Connection connection = DriverManager.getConnection(connection_uri); assertNotNull(connection); @@ -237,7 +239,8 @@ public void testValidExternalAccountAuthentication() throws SQLException { @Disabled public void testValidExternalAccountAuthenticationFromFile() throws SQLException { String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" + getBaseConnectionUrl() + + "PROJECTID=" + PROJECT_ID + ";OAUTHTYPE=4;" + "OAuthPvtKeyPath=/path/to/file;"; @@ -259,9 +262,11 @@ public void testValidExternalAccountAuthenticationFromFile() throws SQLException @Disabled public void testValidExternalAccountAuthenticationRawJson() throws SQLException { String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" + getBaseConnectionUrl() + + "PROJECTID=" + PROJECT_ID - + ";OAUTHTYPE=4;OAuthPvtKey={\n" + + ";OAUTHTYPE=4;" + + "OAuthPvtKey={\n" + " \"universe_domain\": \"googleapis.com\",\n" + " \"type\": \"external_account\",\n" + " \"audience\":" @@ -303,7 +308,8 @@ public void testValidPreGeneratedAccessTokenAuthentication(String scope, boolean String accessToken = credentials.getAccessToken().getTokenValue(); String connectionUri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=" + getBaseConnectionUrl() + + "ProjectId=" + authJson.get("project_id").getAsString() + ";OAuthType=2" + ";OAuthAccessToken=" @@ -319,10 +325,13 @@ public void testValidPreGeneratedAccessTokenAuthentication(String scope, boolean @Disabled public void testValidRefreshTokenAuthentication() throws SQLException { String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" + getBaseConnectionUrl() + + "PROJECTID=" + PROJECT_ID - + ";OAUTHTYPE=2;OAuthRefreshToken=refresh_token;" - + ";OAuthClientId=client;OAuthClientSecret=secret;"; + + ";OAUTHTYPE=2;" + + "OAuthRefreshToken=refresh_token;" + + ";OAuthClientId=client;" + + "OAuthClientSecret=secret;"; Connection connection = DriverManager.getConnection(connection_uri); assertNotNull(connection); diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBase.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBase.java index 5b4d36fac4fe..87446355d4ca 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBase.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBase.java @@ -23,6 +23,7 @@ import com.google.cloud.bigquery.BigQueryOptions; import com.google.cloud.bigquery.QueryJobConfiguration; import com.google.cloud.bigquery.jdbc.BigQueryJdbcBaseTest; +import com.google.cloud.bigquery.jdbc.utils.TestUtilities; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; @@ -177,10 +178,13 @@ private static void registerShutdownHook(final String dataset) { } public static final String DEFAULT_CATALOG = ServiceOptions.getDefaultProjectId(); - public static String connectionUrl = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=" - + DEFAULT_CATALOG - + ";OAuthType=3;Timeout=3600;"; + + public static String getBaseConnectionUrl() { + return TestUtilities.getBaseConnectionUrl(); + } + + public static final String connectionUrl = + getBaseConnectionUrl() + "ProjectId=" + DEFAULT_CATALOG + ";OAuthType=3;Timeout=3600;"; public static final String createDatasetQuery = "CREATE SCHEMA IF NOT EXISTS `%s.%s` OPTIONS(default_table_expiration_days = 5)"; diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBigQueryJDBCTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBigQueryJDBCTest.java index 9fe1c4f0f2fc..44a8160f726d 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBigQueryJDBCTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBigQueryJDBCTest.java @@ -64,11 +64,8 @@ public class ITBigQueryJDBCTest extends ITBase { static final String PROJECT_ID = ServiceOptions.getDefaultProjectId(); - static final String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + PROJECT_ID - + ";OAUTHTYPE=3"; - static final String session_enabled_connection_uri = connection_uri + ";EnableSession=1"; + static final String connection_uri = ITBase.connectionUrl; + static final String session_enabled_connection_uri = connection_uri + "EnableSession=1;"; private static final String BASE_QUERY = "SELECT * FROM bigquery-public-data.new_york_taxi_trips.tlc_yellow_trips_2017 order by" + " trip_distance asc LIMIT %s"; @@ -109,10 +106,8 @@ public void testValidAllDataTypesSerializationFromSelectQueryArrowDataset() thro String TABLE_NAME = "JDBC_INTEGRATION_ARROW_TEST_TABLE"; String selectQuery = "select * from " + DATASET + "." + TABLE_NAME + " LIMIT 5000;"; String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;ProjectId=" - + DEFAULT_CATALOG - + ";EnableHighThroughputAPI=1;" + ITBigQueryJDBCTest.connection_uri + + "EnableHighThroughputAPI=1;" + "HighThroughputActivationRatio=2;" + "HighThroughputMinTableSize=1000;"; @@ -240,10 +235,11 @@ public void testReadAPIPathLarge() throws SQLException { @Test public void testReadAPIPathLargeWithThresholdParameters() throws SQLException { String connectionUri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + DEFAULT_CATALOG - + ";OAUTHTYPE=3;MaxResults=300;HighThroughputActivationRatio=2;" - + "HighThroughputMinTableSize=100;EnableHighThroughputAPI=1"; + ITBigQueryJDBCTest.connection_uri + + "MaxResults=300;" + + "HighThroughputActivationRatio=2;" + + "HighThroughputMinTableSize=100;" + + "EnableHighThroughputAPI=1"; Connection connection = DriverManager.getConnection(connectionUri); Statement statement = connection.createStatement(); int expectedCnt = 1000; @@ -257,10 +253,10 @@ public void testReadAPIPathLargeWithThresholdParameters() throws SQLException { @Test public void testReadAPIPathLargeWithThresholdNotMet() throws SQLException { String connectionUri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + DEFAULT_CATALOG - + ";OAUTHTYPE=3;HighThroughputActivationRatio=4;" - + "HighThroughputMinTableSize=100;EnableHighThroughputAPI=1"; + ITBigQueryJDBCTest.connection_uri + + "HighThroughputActivationRatio=4;" + + "HighThroughputMinTableSize=100;" + + "EnableHighThroughputAPI=1"; Connection connection = DriverManager.getConnection(connectionUri); Statement statement = connection.createStatement(); int expectedCnt = 5000; @@ -305,10 +301,7 @@ public void testInvalidQuery() throws SQLException { @Test public void testDriver() throws SQLException { - String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + PROJECT_ID - + ";OAUTHTYPE=3"; + String connection_uri = ITBigQueryJDBCTest.connection_uri; Driver driver = BigQueryDriver.getRegisteredDriver(); assertTrue(driver.acceptsURL(connection_uri)); @@ -323,10 +316,7 @@ public void testDriver() throws SQLException { @Test public void testDefaultDataset() throws SQLException { - String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + PROJECT_ID - + ";OAUTHTYPE=3;DEFAULTDATASET=testDataset"; + String connection_uri = ITBigQueryJDBCTest.connection_uri + "DEFAULTDATASET=testDataset"; Driver driver = BigQueryDriver.getRegisteredDriver(); assertTrue(driver.acceptsURL(connection_uri)); @@ -337,10 +327,7 @@ public void testDefaultDataset() throws SQLException { DatasetId.of("testDataset"), connection.unwrap(BigQueryConnection.class).getDefaultDataset()); - String connection_uri_null_default_dataset = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + PROJECT_ID - + ";OAUTHTYPE=3"; + String connection_uri_null_default_dataset = ITBigQueryJDBCTest.connection_uri; assertTrue(driver.acceptsURL(connection_uri_null_default_dataset)); @@ -354,11 +341,7 @@ public void testDefaultDataset() throws SQLException { @Test public void testDefaultDatasetWithProject() throws SQLException { String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + PROJECT_ID - + ";OAUTHTYPE=3;DEFAULTDATASET=" - + PROJECT_ID - + ".testDataset"; + ITBigQueryJDBCTest.connection_uri + "DEFAULTDATASET=" + PROJECT_ID + ".testDataset"; Driver driver = BigQueryDriver.getRegisteredDriver(); assertTrue(driver.acceptsURL(connection_uri)); @@ -373,10 +356,7 @@ public void testDefaultDatasetWithProject() throws SQLException { @Test public void testLocation() throws SQLException { - String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + PROJECT_ID - + ";OAUTHTYPE=3;LOCATION=EU"; + String connection_uri = ITBigQueryJDBCTest.connection_uri + "LOCATION=EU"; Driver driver = BigQueryDriver.getRegisteredDriver(); assertTrue(driver.acceptsURL(connection_uri)); @@ -392,10 +372,7 @@ public void testLocation() throws SQLException { ResultSet resultSet = statement.executeQuery(query); assertEquals(100, resultSetRowCount(resultSet)); - String connection_uri_null_location = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + PROJECT_ID - + ";OAUTHTYPE=3"; + String connection_uri_null_location = ITBigQueryJDBCTest.connection_uri; assertTrue(driver.acceptsURL(connection_uri_null_location)); @@ -408,10 +385,7 @@ public void testLocation() throws SQLException { @Test public void testIncorrectLocation() throws SQLException { - String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + PROJECT_ID - + ";OAUTHTYPE=3;LOCATION=europe-west3"; + String connection_uri = ITBigQueryJDBCTest.connection_uri + "LOCATION=europe-west3"; Driver driver = BigQueryDriver.getRegisteredDriver(); @@ -1291,12 +1265,13 @@ public void testAllValidStatementTypesForAddBatch() throws SQLException { public void testUnsupportedHTAPIFallbacksToStandardQueriesWithRange() throws SQLException { String selectQuery = "select * from `DATATYPERANGETEST.RangeIntervalTestTable` LIMIT 5000;"; String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;ProjectId=" - + PROJECT_ID - + ";MaxResults=500;HighThroughputActivationRatio=1;" + ITBigQueryJDBCTest.connection_uri + + "MaxResults=500;" + + "HighThroughputActivationRatio=1;" + "HighThroughputMinTableSize=100;" - + "EnableHighThroughputAPI=1;UnsupportedHTAPIFallback=1;JobCreationMode=1;"; + + "EnableHighThroughputAPI=1;" + + "UnsupportedHTAPIFallback=1;" + + "JobCreationMode=1;"; // Read data via JDBC Connection connection = DriverManager.getConnection(connection_uri); @@ -1315,12 +1290,12 @@ public void testIntervalDataTypeWithArrowResultSet() throws SQLException { String selectQuery = "select * from `DATATYPERANGETEST.RangeIntervalTestTable` order by intColumn limit 5000;"; String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;ProjectId=" - + PROJECT_ID - + ";MaxResults=500;HighThroughputActivationRatio=0;" + ITBigQueryJDBCTest.connection_uri + + "MaxResults=500;" + + "HighThroughputActivationRatio=0;" + "HighThroughputMinTableSize=100;" - + "EnableHighThroughputAPI=1;JobCreationMode=1;"; + + "EnableHighThroughputAPI=1;" + + "JobCreationMode=1;"; // Read data via JDBC Connection connection = DriverManager.getConnection(connection_uri); @@ -1340,12 +1315,12 @@ public void testIntervalDataTypeWithJsonResultSet() throws SQLException { String selectQuery = "select * from `DATATYPERANGETEST.RangeIntervalTestTable` order by intColumn limit 10 ;"; String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;ProjectId=" - + PROJECT_ID - + ";MaxResults=500;HighThroughputActivationRatio=1;" + ITBigQueryJDBCTest.connection_uri + + "MaxResults=500;" + + "HighThroughputActivationRatio=1;" + "HighThroughputMinTableSize=100;" - + "EnableHighThroughputAPI=0;JobCreationMode=1;"; + + "EnableHighThroughputAPI=0;" + + "JobCreationMode=1;"; // Read data via JDBC Connection connection = DriverManager.getConnection(connection_uri); @@ -1366,11 +1341,7 @@ public void testValidLEPEndpointQuery() throws SQLException { String TABLE_NAME = "REGIONAL_TABLE"; String selectQuery = "select * from " + DATASET + "." + TABLE_NAME; String connection_uri = - "jdbc:bigquery://https://googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";" + ITBigQueryJDBCTest.connection_uri + "EndpointOverrides=BIGQUERY=https://us-east4-bigquery.googleapis.com;"; // Read data via JDBC @@ -1386,11 +1357,7 @@ public void testValidEndpointWithInvalidBQPortThrows() throws SQLException { String TABLE_NAME = "JDBC_REGIONAL_TABLE_" + randomNumber; String selectQuery = "select * from " + DATASET + "." + TABLE_NAME; String connection_uri = - "jdbc:bigquery://https://googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";" + ITBigQueryJDBCTest.connection_uri + "EndpointOverrides=BIGQUERY=https://us-east4-bigquery.googleapis.com:12312312;"; // Read data via JDBC @@ -1406,11 +1373,7 @@ public void testLEPEndpointDataNotFoundThrows() throws SQLException { String TABLE_NAME = "REGIONAL_TABLE"; String selectQuery = "select * from " + DATASET + "." + TABLE_NAME; String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";" + ITBigQueryJDBCTest.connection_uri + "EndpointOverrides=BIGQUERY=https://us-east5-bigquery.googleapis.com;"; // Attempting read data via JDBC @@ -1426,11 +1389,7 @@ public void testValidREPEndpointQuery() throws SQLException { String TABLE_NAME = "REGIONAL_TABLE"; String selectQuery = "select * from " + DATASET + "." + TABLE_NAME; String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";" + ITBigQueryJDBCTest.connection_uri + "EndpointOverrides=BIGQUERY=https://bigquery.us-east4.rep.googleapis.com;"; // Read data via JDBC @@ -1447,11 +1406,7 @@ public void testREPEndpointDataNotFoundThrows() throws SQLException { String TABLE_NAME = "REGIONAL_TABLE"; String selectQuery = "select * from " + DATASET + "." + TABLE_NAME; String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";" + ITBigQueryJDBCTest.connection_uri + "EndpointOverrides=BIGQUERY=https://bigquery.us-east7.rep.googleapis.com;"; // Attempting read data via JDBC @@ -1527,7 +1482,7 @@ public void testConnectionIsValid() throws SQLException { @Test public void testDataSource() throws SQLException { DataSource ds = new DataSource(); - ds.setURL("jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;"); + ds.setURL(getBaseConnectionUrl()); ds.setOAuthType(3); try (Connection connection = ds.getConnection()) { @@ -1540,7 +1495,7 @@ public void testDataSourceOAuthPvtKeyPath() throws SQLException, IOException { File tempFile = File.createTempFile("auth", ".json"); tempFile.deleteOnExit(); DataSource ds = new DataSource(); - ds.setURL("jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;"); + ds.setURL(getBaseConnectionUrl()); ds.setOAuthType(0); ds.setOAuthPvtKeyPath(tempFile.toPath().toString()); assertEquals(0, ds.getOAuthType().intValue()); @@ -1697,11 +1652,8 @@ public void testPreparedStatementDateTimeValues() throws SQLException { public void testValidDestinationTableSavesQueriesWithLegacySQL() throws SQLException { // setup String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";QueryDialect=BIG_QUERY;" + ITBigQueryJDBCTest.connection_uri + + "QueryDialect=BIG_QUERY;" + "AllowLargeResults=1;" + "LargeResultTable=destination_table_test_legacy;" + "LargeResultDataset=INTEGRATION_TESTS;"; @@ -1729,12 +1681,7 @@ public void testValidDestinationTableSavesQueriesWithLegacySQL() throws SQLExcep @Test public void testNonEnabledUseLegacySQLThrowsSyntaxError() throws SQLException { // setup - String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + DEFAULT_CATALOG - + ";"; + String connection_uri = ITBigQueryJDBCTest.connection_uri; String selectLegacyQuery = "SELECT * FROM [bigquery-public-data.deepmind_alphafold.metadata] LIMIT 20000000;"; Connection connection = DriverManager.getConnection(connection_uri, new Properties()); @@ -1749,11 +1696,7 @@ public void testNonEnabledUseLegacySQLThrowsSyntaxError() throws SQLException { public void testUseLegacySQLWithLargeResultsNotAllowedQueries() throws SQLException { // setup String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + DEFAULT_CATALOG - + ";QueryDialect=BIG_QUERY;AllowLargeResults=0;"; + ITBigQueryJDBCTest.connection_uri + "QueryDialect=BIG_QUERY;" + "AllowLargeResults=0;"; String selectLegacyQuery = "SELECT * FROM [bigquery-public-data.deepmind_alphafold.metadata] LIMIT 250000;"; Connection connection = DriverManager.getConnection(connection_uri, new Properties()); @@ -1771,11 +1714,8 @@ public void testUseLegacySQLWithLargeResultsNotAllowedQueries() throws SQLExcept public void testValidDestinationTableSavesQueriesWithStandardSQL() throws SQLException { // setup String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";QueryDialect=SQL;" + ITBigQueryJDBCTest.connection_uri + + "QueryDialect=SQL;" + "LargeResultTable=destination_table_test;" + "LargeResultDataset=INTEGRATION_TESTS;"; String selectLegacyQuery = @@ -1804,11 +1744,8 @@ public void testDestinationTableAndDestinationDatasetThatDoesNotExistsCreates() throws SQLException { // setup String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";QueryDialect=BIG_QUERY;" + ITBigQueryJDBCTest.connection_uri + + "QueryDialect=BIG_QUERY;" + "AllowLargeResults=1;" + "LargeResultTable=FakeTable;" + "LargeResultDataset=FakeDataset;"; @@ -1837,11 +1774,7 @@ public void testUseLegacySQLWithLargeResultsAllowedWithNoDestinationTableDefault throws SQLException { // setup String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + DEFAULT_CATALOG - + ";QueryDialect=BIG_QUERY;AllowLargeResults=1;"; + ITBigQueryJDBCTest.connection_uri + "QueryDialect=BIG_QUERY;" + "AllowLargeResults=1;"; String selectLegacyQuery = "SELECT * FROM [bigquery-public-data.deepmind_alphafold.metadata] LIMIT 250000;"; Connection connection = DriverManager.getConnection(connection_uri, new Properties()); @@ -1859,11 +1792,8 @@ public void testUseLegacySQLWithLargeResultsAllowedWithNoDestinationTableDefault public void testDestinationTableWithMissingDestinationDatasetDefaults() throws SQLException { // setup String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";QueryDialect=BIG_QUERY;" + ITBigQueryJDBCTest.connection_uri + + "QueryDialect=BIG_QUERY;" + "AllowLargeResults=1;" + "LargeResultTable=FakeTable;"; String selectLegacyQuery = @@ -1892,11 +1822,8 @@ public void testNonSelectForLegacyDestinationTableThrows() throws SQLException { "CREATE OR REPLACE TABLE %s.%s (`id` INTEGER, `name` STRING, `age` INTEGER);", DATASET, TRANSACTION_TABLE); String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";QueryDialect=BIG_QUERY;" + ITBigQueryJDBCTest.connection_uri + + "QueryDialect=BIG_QUERY;" + "AllowLargeResults=1;" + "LargeResultTable=destination_table_test;" + "LargeResultDataset=INTEGRATION_TESTS;"; @@ -1918,11 +1845,8 @@ public void testNonSelectForStandardDestinationTableDoesNotThrow() throws SQLExc "CREATE OR REPLACE TABLE %s.%s (`id` INTEGER, `name` STRING, `age` INTEGER);", DATASET, TRANSACTION_TABLE); String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";QueryDialect=SQL;" + ITBigQueryJDBCTest.connection_uri + + "QueryDialect=SQL;" + "AllowLargeResults=1;" + "LargeResultTable=destination_table_test;" + "LargeResultDataset=INTEGRATION_TESTS;"; @@ -2001,12 +1925,12 @@ public void testRangeDataTypeWithArrowResultSet() throws SQLException { "select * from `DATATYPERANGETEST.RangeIntervalTestTable` order by intColumn limit 5000;"; String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;ProjectId=" - + PROJECT_ID - + ";MaxResults=500;HighThroughputActivationRatio=0;" + ITBigQueryJDBCTest.connection_uri + + "MaxResults=500;" + + "HighThroughputActivationRatio=0;" + "HighThroughputMinTableSize=100;" - + "EnableHighThroughputAPI=1;JobCreationMode=1;"; + + "EnableHighThroughputAPI=1;" + + "JobCreationMode=1;"; // Read data via JDBC Connection connection = DriverManager.getConnection(connection_uri); @@ -2052,11 +1976,8 @@ public void testAlterTable() throws SQLException { public void testQueryPropertyDataSetProjectIdQueriesToCorrectDataset() throws SQLException { String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";QueryProperties=dataset_project_id=" + ITBigQueryJDBCTest.connection_uri + + "QueryProperties=dataset_project_id=" + PROJECT_ID + ";"; String insertQuery = @@ -2087,11 +2008,8 @@ public void testQueryPropertyDataSetProjectIdQueriesToCorrectDataset() throws SQ public void testQueryPropertyDataSetProjectIdQueriesToIncorrectDatasetThrows() throws SQLException { String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";QueryProperties=dataset_project_id=bigquerytestdefault" + ITBigQueryJDBCTest.connection_uri + + "QueryProperties=dataset_project_id=bigquerytestdefault" + ";"; String insertQuery = String.format( @@ -2109,11 +2027,7 @@ public void testQueryPropertyDataSetProjectIdQueriesToIncorrectDatasetThrows() @Test public void testQueryPropertyTimeZoneQueries() throws SQLException { String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";QueryProperties=time_zone=America/New_York;"; + ITBigQueryJDBCTest.connection_uri + "QueryProperties=time_zone=America/New_York;"; String query = "SELECT * FROM `bigquery-public-data.samples.shakespeare` LIMIT 180"; Driver driver = BigQueryDriver.getRegisteredDriver(); Connection connection = driver.connect(connection_uri, new Properties()); @@ -2133,13 +2047,7 @@ public void testQueryPropertySessionIdSetsStatementSession() throws SQLException, InterruptedException { String sessionId = getSessionId(); String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";QueryProperties=session_id=" - + sessionId - + ";"; + ITBigQueryJDBCTest.connection_uri + "QueryProperties=session_id=" + sessionId + ";"; String selectQuery = "INSERT INTO `bigquery-devtools-drivers.JDBC_INTEGRATION_DATASET.No_KMS_Test_table` (id," + " name, age) VALUES (132, 'Batman', 531);"; @@ -2164,14 +2072,7 @@ public void testQueryPropertySessionIdSetsStatementSession() public void testEncryptedTableWithKmsQueries() throws SQLException { // setup String KMSKeyName = requireEnvVar("KMS_RESOURCE_PATH"); - String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";KMSKeyName=" - + KMSKeyName - + ";"; + String connection_uri = ITBigQueryJDBCTest.connection_uri + "KMSKeyName=" + KMSKeyName + ";"; String selectQuery = "SELECT * FROM `JDBC_INTEGRATION_DATASET.KMS_Test_table`;"; Driver driver = BigQueryDriver.getRegisteredDriver(); Connection connection = driver.connect(connection_uri, new Properties()); @@ -2190,14 +2091,7 @@ public void testEncryptedTableWithKmsQueries() throws SQLException { @Test public void testIncorrectKmsThrows() throws SQLException { String KMSKeyName = requireEnvVar("KMS_RESOURCE_PATH"); - String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";KMSKeyName=" - + KMSKeyName - + ";"; + String connection_uri = ITBigQueryJDBCTest.connection_uri + "KMSKeyName=" + KMSKeyName + ";"; String selectQuery = "INSERT INTO `bigquery-devtools-drivers.JDBC_INTEGRATION_DATASET.No_KMS_Test_table` (id," + " name, age) VALUES (132, 'Batman', 531);"; @@ -2214,11 +2108,8 @@ public void testIncorrectKmsThrows() throws SQLException { public void testQueryPropertyServiceAccountFollowsIamPermission() throws SQLException { final String SERVICE_ACCOUNT_EMAIL = requireEnvVar("SA_EMAIL"); String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";QueryProperties=service_account=" + ITBigQueryJDBCTest.connection_uri + + "QueryProperties=service_account=" + SERVICE_ACCOUNT_EMAIL + ";"; Driver driver = BigQueryDriver.getRegisteredDriver(); @@ -2242,11 +2133,7 @@ public void testValidLegacySQLStatement() throws SQLException { + "FROM\n" + " [bigquery-public-data.github_repos.commits],\n" + " [bigquery-public-data.github_repos.sample_commits] LIMIT 10"; - String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;ProjectId=" - + PROJECT_ID - + ";QueryDialect=BIG_QUERY;"; + String connection_uri = ITBigQueryJDBCTest.connection_uri + "QueryDialect=BIG_QUERY;"; Connection connection = DriverManager.getConnection(connection_uri); Statement statement = connection.createStatement(); diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITCallableStatementTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITCallableStatementTest.java index cbd128a818f1..d70f0cb77a9b 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITCallableStatementTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITCallableStatementTest.java @@ -48,10 +48,7 @@ public class ITCallableStatementTest extends ITBase { static final String PROJECT_ID = ServiceOptions.getDefaultProjectId(); - static final String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + PROJECT_ID - + ";OAUTHTYPE=3"; + static final String connection_uri = ITBase.connectionUrl; private static final Random random = new Random(); private static String DATASET; private static final String CALLABLE_STMT_PROC_NAME = "IT_CALLABLE_STMT_PROC_TEST"; diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITConnectionPoolingTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITConnectionPoolingTest.java index 6f3b5ca43926..0da773d7c965 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITConnectionPoolingTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITConnectionPoolingTest.java @@ -43,8 +43,7 @@ public class ITConnectionPoolingTest extends ITBase { @Test public void testPooledConnectionDataSourceSuccess() throws SQLException { - String connectionUrl = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;OAuthType=3;ProjectId=testProject;ConnectionPoolSize=20;ListenerPoolSize=20;"; + String connectionUrl = ITBase.connectionUrl + "ConnectionPoolSize=20;" + "ListenerPoolSize=20;"; PooledConnectionDataSource pooledDataSource = new PooledConnectionDataSource(); pooledDataSource.setURL(connectionUrl); @@ -62,9 +61,7 @@ public void testPooledConnectionDataSourceFailNoConnectionURl() { @Test public void testPooledConnectionDataSourceFailInvalidConnectionURl() { - String connectionUrl = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;OAuthType=3;ProjectId=testProject;" - + "ListenerPoolSize=invalid"; + String connectionUrl = ITBase.connectionUrl + "ListenerPoolSize=invalid;"; PooledConnectionDataSource pooledDataSource = new PooledConnectionDataSource(); pooledDataSource.setURL(connectionUrl); @@ -73,8 +70,7 @@ public void testPooledConnectionDataSourceFailInvalidConnectionURl() { @Test public void testPooledConnectionAddConnectionListener() throws SQLException { - String connectionUrl = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;OAuthType=3;ProjectId=testProject;ConnectionPoolSize=20;ListenerPoolSize=20;"; + String connectionUrl = ITBase.connectionUrl + "ConnectionPoolSize=20;" + "ListenerPoolSize=20;"; PooledConnectionDataSource pooledDataSource = new PooledConnectionDataSource(); pooledDataSource.setURL(connectionUrl); @@ -89,8 +85,7 @@ public void testPooledConnectionAddConnectionListener() throws SQLException { @Test public void testPooledConnectionRemoveConnectionListener() throws SQLException { - String connectionUrl = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;OAuthType=3;ProjectId=testProject;ConnectionPoolSize=20;ListenerPoolSize=20;"; + String connectionUrl = ITBase.connectionUrl + "ConnectionPoolSize=20;" + "ListenerPoolSize=20;"; PooledConnectionDataSource pooledDataSource = new PooledConnectionDataSource(); pooledDataSource.setURL(connectionUrl); @@ -105,8 +100,7 @@ public void testPooledConnectionRemoveConnectionListener() throws SQLException { @Test public void testPooledConnectionConnectionClosed() throws SQLException { - String connectionUrl = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;OAuthType=3;ProjectId=testProject;ConnectionPoolSize=20;ListenerPoolSize=20;"; + String connectionUrl = ITBase.connectionUrl + "ConnectionPoolSize=20;" + "ListenerPoolSize=20;"; PooledConnectionDataSource pooledDataSource = new PooledConnectionDataSource(); pooledDataSource.setURL(connectionUrl); @@ -129,8 +123,7 @@ public void testPooledConnectionConnectionClosed() throws SQLException { @Test public void testPooledConnectionClose() throws SQLException { - String connectionUrl = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;OAuthType=3;ProjectId=testProject;ConnectionPoolSize=20;ListenerPoolSize=20;"; + String connectionUrl = ITBase.connectionUrl + "ConnectionPoolSize=20;" + "ListenerPoolSize=20;"; PooledConnectionDataSource pooledDataSource = new PooledConnectionDataSource(); pooledDataSource.setURL(connectionUrl); @@ -149,8 +142,7 @@ public void testPooledConnectionClose() throws SQLException { @Test public void testPooledConnectionConnectionError() throws SQLException { - String connectionUrl = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;OAuthType=3;ProjectId=testProject;ConnectionPoolSize=20;ListenerPoolSize=20;"; + String connectionUrl = ITBase.connectionUrl + "ConnectionPoolSize=20;" + "ListenerPoolSize=20;"; PooledConnectionDataSource pooledDataSource = new PooledConnectionDataSource(); pooledDataSource.setURL(connectionUrl); @@ -178,8 +170,7 @@ public void testPooledConnectionConnectionError() throws SQLException { @Test public void testPooledConnectionListenerAddListener() throws SQLException { - String connectionUrl = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;OAuthType=3;ProjectId=testProject;ConnectionPoolSize=20;ListenerPoolSize=20;"; + String connectionUrl = ITBase.connectionUrl + "ConnectionPoolSize=20;" + "ListenerPoolSize=20;"; PooledConnectionDataSource pooledDataSource = new PooledConnectionDataSource(); pooledDataSource.setURL(connectionUrl); @@ -194,8 +185,7 @@ public void testPooledConnectionListenerAddListener() throws SQLException { @Test public void testPooledConnectionListenerRemoveListener() throws SQLException { - String connectionUrl = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;OAuthType=3;ProjectId=testProject;ConnectionPoolSize=20;ListenerPoolSize=20;"; + String connectionUrl = ITBase.connectionUrl + "ConnectionPoolSize=20;" + "ListenerPoolSize=20;"; PooledConnectionDataSource pooledDataSource = new PooledConnectionDataSource(); pooledDataSource.setURL(connectionUrl); @@ -213,8 +203,7 @@ public void testPooledConnectionListenerRemoveListener() throws SQLException { @Test public void testPooledConnectionListenerCloseConnection() throws SQLException { - String connectionUrl = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;OAuthType=3;ProjectId=testProject;ConnectionPoolSize=20;ListenerPoolSize=20;"; + String connectionUrl = ITBase.connectionUrl + "ConnectionPoolSize=20;" + "ListenerPoolSize=20;"; PooledConnectionDataSource pooledDataSource = new PooledConnectionDataSource(); pooledDataSource.setURL(connectionUrl); @@ -236,8 +225,7 @@ public void testPooledConnectionListenerCloseConnection() throws SQLException { @Test public void testPooledConnectionListenerClosePooledConnection() throws SQLException { - String connectionUrl = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;OAuthType=3;ProjectId=testProject;ConnectionPoolSize=20;ListenerPoolSize=20;"; + String connectionUrl = ITBase.connectionUrl + "ConnectionPoolSize=20;" + "ListenerPoolSize=20;"; PooledConnectionDataSource pooledDataSource = new PooledConnectionDataSource(); pooledDataSource.setURL(connectionUrl); @@ -254,8 +242,7 @@ public void testPooledConnectionListenerClosePooledConnection() throws SQLExcept @Test public void testPooledConnectionListenerConnectionError() throws SQLException { - String connectionUrl = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;OAuthType=3;ProjectId=testProject;ConnectionPoolSize=20;ListenerPoolSize=20;"; + String connectionUrl = ITBase.connectionUrl + "ConnectionPoolSize=20;" + "ListenerPoolSize=20;"; PooledConnectionDataSource pooledDataSource = new PooledConnectionDataSource(); pooledDataSource.setURL(connectionUrl); @@ -281,24 +268,15 @@ public void testPooledConnectionListenerConnectionError() throws SQLException { @Test public void testExecuteQueryWithConnectionPoolingEnabledDefaultPoolSize() throws SQLException { - String connectionURL = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;ProjectId=" - + PROJECT_ID - + ";"; + String connectionURL = ITBase.connectionUrl; + assertConnectionPoolingResults(connectionURL, DEFAULT_CONN_POOL_SIZE); } @Test public void testExecuteQueryWithConnectionPoolingEnabledCustomPoolSize() throws SQLException { String connectionURL = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;ProjectId=" - + PROJECT_ID - + ";" - + "ConnectionPoolSize=" - + CUSTOM_CONN_POOL_SIZE - + ";"; + ITBase.connectionUrl + "ConnectionPoolSize=" + CUSTOM_CONN_POOL_SIZE + ";"; assertConnectionPoolingResults(connectionURL, CUSTOM_CONN_POOL_SIZE); } diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITConnectionTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITConnectionTest.java index d1a5b06ed6fb..79a8f398f0cf 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITConnectionTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITConnectionTest.java @@ -49,9 +49,6 @@ public class ITConnectionTest { static int randomNumber = random.nextInt(999); private static final String TABLE_NAME = "JDBC_CONNECTION_TEST_TABLE" + randomNumber; - private static String connectionUrl = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=%s;OAuthType=3;Timeout=3600;"; - @BeforeAll public static void beforeClass() throws InterruptedException { DATASET = ITBase.getSharedDataset(); @@ -66,8 +63,7 @@ public static void afterClass() throws InterruptedException { @Test public void testGetMetaData() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); assertFalse(connection.isClosed()); DatabaseMetaData metaData = connection.getMetaData(); assertNotNull(metaData); @@ -80,8 +76,7 @@ public void testGetMetaData() throws SQLException { @Test public void testCreateStatement() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); assertFalse(connection.isClosed()); Statement statement = connection.createStatement(); assertNotNull(statement); @@ -91,8 +86,7 @@ public void testCreateStatement() throws SQLException { @Test public void testPrepareStatement1() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); PreparedStatement preparedStatement = connection.prepareStatement("SELECT 1"); assertNotNull(preparedStatement); preparedStatement.execute(); @@ -103,8 +97,7 @@ public void testPrepareStatement1() throws SQLException { @Test public void testPrepareStatement2() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); PreparedStatement preparedStatement = connection.prepareStatement("SELECT 1", Statement.NO_GENERATED_KEYS); assertNotNull(preparedStatement); @@ -115,8 +108,7 @@ public void testPrepareStatement2() throws SQLException { @Test public void testPrepareStatement3() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); assertThrows( SQLFeatureNotSupportedException.class, () -> connection.prepareStatement("SELECT 1", new int[] {1, 2, 3})); @@ -124,8 +116,7 @@ public void testPrepareStatement3() throws SQLException { @Test public void testPrepareStatement4() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); PreparedStatement preparedStatement = connection.prepareStatement( "SELECT 1", ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); @@ -137,8 +128,7 @@ public void testPrepareStatement4() throws SQLException { @Test public void testPrepareStatement5() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); assertThrows( SQLFeatureNotSupportedException.class, () -> @@ -151,8 +141,7 @@ public void testPrepareStatement5() throws SQLException { @Test public void testPrepareStatement6() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); assertThrows( SQLFeatureNotSupportedException.class, () -> connection.prepareStatement("SELECT 1", new String[] {"a", "b"})); @@ -160,8 +149,7 @@ public void testPrepareStatement6() throws SQLException { @Test public void testPrepareCall1() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); try { CallableStatement callableStatement = connection.prepareCall( @@ -179,8 +167,7 @@ public void testPrepareCall1() throws SQLException { @Test public void testPrepareCall2() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); try { CallableStatement callableStatement1 = @@ -201,8 +188,7 @@ public void testPrepareCall2() throws SQLException { @Test public void testPrepareCall3() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); assertThrows( SQLFeatureNotSupportedException.class, () -> @@ -229,8 +215,7 @@ public void testSetAutoCommit() throws SQLException { @Test public void testCommitAndRollback() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); Statement statement = connection.createStatement(); Properties properties = new Properties(); properties.setProperty("EnableSession", "1"); @@ -268,8 +253,7 @@ public void testCommitAndRollback() throws SQLException { @Test public void testSetCatalog() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); try { String catalog = connection.getCatalog(); if (catalog != null) { @@ -284,8 +268,7 @@ public void testSetCatalog() throws SQLException { @Test public void testSetSchema() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); try { String schema = connection.getSchema(); if (schema != null) { @@ -300,8 +283,7 @@ public void testSetSchema() throws SQLException { @Test public void testSetClientInfo() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData databaseMetaData = connection.getMetaData(); ResultSet resultSet = databaseMetaData.getClientInfoProperties(); while (resultSet.next()) { @@ -326,8 +308,7 @@ public void testSetClientInfo() throws SQLException { @Disabled @Test public void testSetNetworkTimeout() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); assertThrows( SQLFeatureNotSupportedException.class, () -> connection.setNetworkTimeout(null, 1000)); // 1 second timeout @@ -335,36 +316,31 @@ public void testSetNetworkTimeout() throws SQLException { @Test public void testCreateClob() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); assertThrows(SQLFeatureNotSupportedException.class, () -> connection.createClob()); } @Test public void testCreateBlob() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); assertThrows(SQLFeatureNotSupportedException.class, () -> connection.createBlob()); } @Test public void testCreateNClob() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); assertThrows(SQLFeatureNotSupportedException.class, () -> connection.createNClob()); } @Test public void testCreateSQLXML() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); assertThrows(SQLFeatureNotSupportedException.class, () -> connection.createSQLXML()); } @Test public void testCreateArray() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); try { Array array = connection.createArrayOf("INTEGER", new Object[] {1, 2, 3}); assertNotNull(array); @@ -378,8 +354,7 @@ public void testCreateArray() throws SQLException { @Test public void testCreateStruct() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); assertThrows( SQLFeatureNotSupportedException.class, () -> connection.createStruct("ADDRESS", new Object[] {"123 Main St", "Anytown"})); @@ -387,8 +362,7 @@ public void testCreateStruct() throws SQLException { @Test public void testNativeSQL() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); String sql = "SELECT 1"; String nativeSql = connection.nativeSQL(sql); assertEquals(sql, nativeSql); @@ -418,8 +392,7 @@ public void testSetSavepoint() throws SQLException { // TODO:rewrite test @Test public void testAbort() throws SQLException, InterruptedException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); // This test is tricky to automate fully, as it involves asynchronous behavior // We'll just test that we can call it without throwing an exception immediately @@ -456,16 +429,14 @@ public void testAbort() throws SQLException, InterruptedException { @Test public void testIsWrapperFor() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); assertTrue(connection.isWrapperFor(Connection.class)); connection.close(); } @Test public void testIsValid() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); assertTrue(connection.isValid(0)); // 0 seconds timeout connection.close(); } diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITDatabaseMetadataTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITDatabaseMetadataTest.java index 8df46d7d5802..789ccced452c 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITDatabaseMetadataTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITDatabaseMetadataTest.java @@ -49,10 +49,6 @@ public class ITDatabaseMetadataTest extends ITBase { static final String PROJECT_ID = ServiceOptions.getDefaultProjectId(); - static final String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + PROJECT_ID - + ";OAUTHTYPE=3"; private static final Random random = new Random(); private static final int randomNumber = random.nextInt(9999); private static String DATASET; @@ -65,8 +61,6 @@ public class ITDatabaseMetadataTest extends ITBase { Pattern.compile("^(\\d+)\\.(\\d+)(?:\\.\\d+)+\\s*.*"); private static final String DEFAULT_CATALOG = ServiceOptions.getDefaultProjectId(); private static final String TABLE_NAME = "JDBC_DBMETADATA_TEST_TABLE" + randomNumber; - private static String connectionUrl = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=%s;OAuthType=3;Timeout=3600;"; @BeforeAll public static void beforeClass() throws InterruptedException, SQLException { @@ -83,8 +77,7 @@ public static void afterClass() throws SQLException {} @Disabled @Test public void testGetCatalogs() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData metaData = connection.getMetaData(); try { @@ -99,8 +92,7 @@ public void testGetCatalogs() throws SQLException { // metadata @Test public void testGetSchemas() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData metaData = connection.getMetaData(); try { @@ -113,8 +105,7 @@ public void testGetSchemas() throws SQLException { @Test public void testGetTableTypes() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData metaData = connection.getMetaData(); try { // this is either 3 or 4 in different projects @@ -128,8 +119,7 @@ public void testGetTableTypes() throws SQLException { @Test public void testGetTables() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData metaData = connection.getMetaData(); try { @@ -144,8 +134,7 @@ public void testGetTables() throws SQLException { // TODO: Make it return non-empty @Test public void testGetTablePrivileges() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData metaData = connection.getMetaData(); try { @@ -158,8 +147,7 @@ public void testGetTablePrivileges() throws SQLException { @Test public void testGetClientInfoProperties() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData metaData = connection.getMetaData(); try { @@ -174,8 +162,7 @@ public void testGetClientInfoProperties() throws SQLException { @Test public void testGetColumns() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData metaData = connection.getMetaData(); try { @@ -189,8 +176,7 @@ public void testGetColumns() throws SQLException { @Disabled @Test public void testDriverMetadataInfo() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData metaData = connection.getMetaData(); try { @@ -205,8 +191,7 @@ public void testDriverMetadataInfo() throws SQLException { @Disabled @Test public void testProcedure() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData metaData = connection.getMetaData(); try { @@ -220,8 +205,7 @@ public void testProcedure() throws SQLException { @Disabled @Test public void testAllBooleanMethods() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData metaData = connection.getMetaData(); try { // This method toggles between true and false in different environments @@ -247,8 +231,7 @@ public void testAllBooleanMethods() throws SQLException { @Disabled @Test public void testAllIntMethods() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData metaData = connection.getMetaData(); try { verifyIntMethods(metaData); @@ -264,8 +247,7 @@ public void testAllIntMethods() throws SQLException { @Test public void testAllStringMethods() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData metaData = connection.getMetaData(); try { verifyAllStringMethods(metaData, "procedure"); @@ -277,8 +259,7 @@ public void testAllStringMethods() throws SQLException { @Test public void testGetPrimaryKeys() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData metaData = connection.getMetaData(); try { verifyGetPrimaryKeys(connection, metaData, DATASET); @@ -290,8 +271,7 @@ public void testGetPrimaryKeys() throws SQLException { @Test public void testTableConstraints() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); ResultSet primaryKey1 = connection .getMetaData() @@ -351,8 +331,7 @@ public void testTableConstraints() throws SQLException { @Test public void testMetadataResultSetsDoNotInterfere() throws SQLException { - try (Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG))) { + try (Connection connection = DriverManager.getConnection(ITBase.connectionUrl)) { DatabaseMetaData metaData = connection.getMetaData(); // Get primary keys for table 1 @@ -386,8 +365,7 @@ public void testMetadataResultSetsDoNotInterfere() throws SQLException { @Test public void testDatabaseMetadataGetCatalogs() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData databaseMetaData = connection.getMetaData(); try (ResultSet rs = databaseMetaData.getCatalogs()) { assertNotNull(rs, "ResultSet from getCatalogs() should not be null"); @@ -409,8 +387,7 @@ public void testDatabaseMetadataGetCatalogs() throws SQLException { @Test public void testDatabaseMetadataGetProcedures() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); String DATASET = "JDBC_INTEGRATION_DATASET"; String procedureName = "create_customer"; DatabaseMetaData databaseMetaData = connection.getMetaData(); @@ -431,8 +408,7 @@ public void testDatabaseMetadataGetProcedures() throws SQLException { @Test public void testDatabaseMetadataGetProcedureColumns() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData databaseMetaData = connection.getMetaData(); // --- Test Case 1: Specific schema and procedure, null column name pattern --- @@ -496,8 +472,7 @@ public void testDatabaseMetadataGetProcedureColumns() throws SQLException { @Test public void testDatabaseMetadataGetColumns() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); String DATASET = "JDBC_INTEGRATION_DATASET"; String TABLE_NAME = "JDBC_DATATYPES_INTEGRATION_TEST_TABLE"; DatabaseMetaData databaseMetaData = connection.getMetaData(); @@ -688,8 +663,7 @@ public void testDatabaseMetadataGetColumns() throws SQLException { @Test public void testDatabaseMetadataGetTables() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData databaseMetaData = connection.getMetaData(); String DATASET = "JDBC_TABLE_TYPES_TEST"; @@ -789,8 +763,7 @@ public void testDatabaseMetadataGetTables() throws SQLException { @Test public void testDatabaseMetadataGetSchemas() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData databaseMetaData = connection.getMetaData(); // Test case 1: Get all schemas with catalog and check for the presence of specific schemas @@ -826,8 +799,7 @@ public void testDatabaseMetadataGetSchemas() throws SQLException { @Test public void testDatabaseMetadataGetSchemasNoArgs() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData databaseMetaData = connection.getMetaData(); String expectedCatalog = connection.getCatalog(); assertNotNull(expectedCatalog, "Project ID (catalog) from connection should not be null"); @@ -862,8 +834,7 @@ public void testDatabaseMetadataGetSchemasNoArgs() throws SQLException { @Test public void testDatabaseMetaDataGetFunctions() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData databaseMetaData = connection.getMetaData(); String testSchema = "JDBC_TABLE_TYPES_TEST"; String testCatalog = PROJECT_ID; @@ -974,8 +945,7 @@ public void testDatabaseMetaDataGetFunctions() throws SQLException { @Disabled @Test public void testDatabaseMetadataGetFunctionColumns() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); DatabaseMetaData databaseMetaData = connection.getMetaData(); String testCatalog = PROJECT_ID; String testSchema = "JDBC_TABLE_TYPES_TEST"; @@ -1107,11 +1077,7 @@ public void testAdditionalProjectsInMetadata() throws SQLException { String datasetInAdditionalProject = "baseball"; String urlWithAdditionalProjects = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=" - + PROJECT_ID - + ";OAuthType=3" - + ";AdditionalProjects=" - + additionalProjectsValue; + ITBase.connectionUrl + "AdditionalProjects=" + additionalProjectsValue; try (Connection conn = DriverManager.getConnection(urlWithAdditionalProjects)) { DatabaseMetaData dbMetaData = conn.getMetaData(); @@ -1172,10 +1138,8 @@ public void testFilterTablesOnDefaultDataset_getTables() throws SQLException { String table2InSpecificDataset = "external_table"; String connectionUrl = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=" - + PROJECT_ID - + ";OAuthType=3" - + ";DefaultDataset=" + ITBase.connectionUrl + + "DefaultDataset=" + defaultDatasetValue + ";FilterTablesOnDefaultDataset=1"; try (Connection conn = DriverManager.getConnection(connectionUrl)) { @@ -1243,10 +1207,8 @@ public void testFilterTablesOnDefaultDataset_getColumns() throws SQLException { String[] columnsInSpecificTable = {"id", "name", "created_at"}; String connectionUrl = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=" - + PROJECT_ID - + ";OAuthType=3" - + ";DefaultDataset=" + ITBase.connectionUrl + + "DefaultDataset=" + defaultDatasetValue + ";FilterTablesOnDefaultDataset=1"; diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITNightlyBigQueryTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITNightlyBigQueryTest.java index 161f5163b691..ff9dbf0e7060 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITNightlyBigQueryTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITNightlyBigQueryTest.java @@ -81,15 +81,9 @@ public class ITNightlyBigQueryTest { private static final String CALLABLE_STMT_DML_TABLE_NAME = "IT_CALLABLE_STMT_PROC_DML_TABLE"; private static String DATASET; private static String DATASET2; - static final String session_enabled_connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + PROJECT_ID - + ";OAUTHTYPE=3;EnableSession=1"; + static final String session_enabled_connection_uri = ITBase.connectionUrl + "EnableSession=1;"; - static final String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + PROJECT_ID - + ";OAUTHTYPE=3"; + static final String connection_uri = ITBase.connectionUrl; @BeforeAll public static void beforeClass() throws SQLException { @@ -343,11 +337,8 @@ public void testExecuteLargeUpdate() throws SQLException { public void testHTAPIWithValidDestinationTableSavesQueriesWithStandardSQL() throws SQLException { // setup String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";QueryDialect=SQL;" + ITNightlyBigQueryTest.connection_uri + + "QueryDialect=SQL;" + "LargeResultTable=destination_table_test;" + "LargeResultDataset=INTEGRATION_TESTS;" + "EnableHighThroughputAPI=1;"; @@ -733,11 +724,8 @@ public void testFailedStatementInTheMiddleOfExecuteBatchStopsExecuting() throws public void testHTAPIWithValidDestinationTableSavesQueriesWithLegacy() throws SQLException { // setup String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";QueryDialect=BIG_QUERY;" + ITNightlyBigQueryTest.connection_uri + + "QueryDialect=BIG_QUERY;" + "LargeResultTable=destination_table_test;" + "LargeResultDataset=INTEGRATION_TESTS;" + "EnableHighThroughputAPI=1;"; @@ -1121,10 +1109,8 @@ public void testValidAllDataTypesSerializationFromSelectQueryArrowDataset() thro String TABLE_NAME = "JDBC_INTEGRATION_ARROW_TEST_TABLE"; String selectQuery = "select * from " + DATASET + "." + TABLE_NAME + " LIMIT 5000;"; String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;ProjectId=" - + PROJECT_ID - + ";EnableHighThroughputAPI=1;" + ITNightlyBigQueryTest.connection_uri + + "EnableHighThroughputAPI=1;" + "HighThroughputActivationRatio=2;" + "HighThroughputMinTableSize=1000;"; @@ -1183,10 +1169,10 @@ public void testBulkInsertOperation() throws SQLException { String selectQuery = String.format("SELECT * FROM %s.%s", DATASET, TABLE_NAME); String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + PROJECT_ID - + ";OAUTHTYPE=3;" - + "EnableWriteAPI=1;SWA_ActivationRowCount=5;SWA_AppendRowCount=500"; + ITNightlyBigQueryTest.connection_uri + + "EnableWriteAPI=1;" + + "SWA_ActivationRowCount=5;" + + "SWA_AppendRowCount=500"; try (Connection connection = DriverManager.getConnection(connection_uri)) { bigQueryStatement.execute(createQuery); @@ -1232,10 +1218,10 @@ public void testBulkInsertOperationStandard() throws SQLException { String selectQuery = String.format("SELECT * FROM %s.%s", DATASET, TABLE_NAME); String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + PROJECT_ID - + ";OAUTHTYPE=3;" - + "EnableWriteAPI=0;SWA_ActivationRowCount=50;SWA_AppendRowCount=500"; + ITNightlyBigQueryTest.connection_uri + + "EnableWriteAPI=0;" + + "SWA_ActivationRowCount=50;" + + "SWA_AppendRowCount=500"; try (Connection connection = DriverManager.getConnection(connection_uri)) { bigQueryStatement.execute(createQuery); @@ -1365,13 +1351,7 @@ public void testQueryPropertySessionIdIsUsedWithTransaction() // Run the transaction String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";QueryProperties=session_id=" - + sessionId - + ";"; + ITNightlyBigQueryTest.connection_uri + "QueryProperties=session_id=" + sessionId + ";"; Driver driver = BigQueryDriver.getRegisteredDriver(); Connection connection = driver.connect(connection_uri, new Properties()); Statement statement = connection.createStatement(); @@ -1613,12 +1593,7 @@ public void testIterateOrderArrowMultiThread() throws SQLException { @Test public void testNonEnabledUseLegacySQLThrowsSyntaxError() throws SQLException { // setup - String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" - + "OAuthType=3;" - + "ProjectId=" - + PROJECT_ID - + ";"; + String connection_uri = ITNightlyBigQueryTest.connection_uri; String selectLegacyQuery = "SELECT * FROM [bigquery-public-data.deepmind_alphafold.metadata] LIMIT 20000000;"; Driver driver = BigQueryDriver.getRegisteredDriver(); @@ -1661,10 +1636,12 @@ public void testReadAPIPathLarge() throws SQLException { @Test public void testReadAPIPathLargeWithThresholdParameters() throws SQLException { String connectionUri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + PROJECT_ID - + ";OAUTHTYPE=3;MaxResults=300;HighThroughputActivationRatio=2;" - + "HighThroughputMinTableSize=100;EnableHighThroughputAPI=1"; + ITNightlyBigQueryTest.connection_uri + + "MaxResults=300;" + + "HighThroughputActivationRatio=2;" + + "HighThroughputMinTableSize=100;" + + "EnableHighThroughputAPI=1"; + Connection connection = DriverManager.getConnection(connectionUri); Statement statement = connection.createStatement(); int expectedCnt = 1000; @@ -1679,10 +1656,11 @@ public void testReadAPIPathLargeWithThresholdParameters() throws SQLException { @Test public void testReadAPIPathLargeWithThresholdNotMet() throws SQLException { String connectionUri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + PROJECT_ID - + ";OAUTHTYPE=3;HighThroughputActivationRatio=4;" - + "HighThroughputMinTableSize=100;EnableHighThroughputAPI=1"; + ITNightlyBigQueryTest.connection_uri + + "HighThroughputActivationRatio=4;" + + "HighThroughputMinTableSize=100;" + + "EnableHighThroughputAPI=1"; + Connection connection = DriverManager.getConnection(connectionUri); Statement statement = connection.createStatement(); int expectedCnt = 5000; diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITResultSetMetadataTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITResultSetMetadataTest.java index 917db7124243..65a3b888d4fd 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITResultSetMetadataTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITResultSetMetadataTest.java @@ -55,8 +55,7 @@ public static void afterClass() throws InterruptedException { @Test public void testResultSetMetadata() throws SQLException { String selectData = "SELECT * FROM " + DATASET + "." + TABLE_NAME + ";"; - Connection connection = - DriverManager.getConnection(String.format(ITBase.connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); Statement statement = connection.createStatement(); ResultSet resultSet = statement.executeQuery(selectData); metaData = resultSet.getMetaData(); diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITStatementTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITStatementTest.java index eaafdd3ef0a3..7094e944893d 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITStatementTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITStatementTest.java @@ -51,8 +51,6 @@ public class ITStatementTest { private static final String DEFAULT_CATALOG = ServiceOptions.getDefaultProjectId(); private static String DATASET; - private static String connectionUrl = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=%s;OAuthType=3;Timeout=3600;"; private static Random random = new Random(); private static int randomNumber = random.nextInt(999); private static final String TABLE_NAME = "JDBC_STATEMENT_TEST_TABLE" + randomNumber; @@ -71,8 +69,7 @@ public static void afterClass() throws InterruptedException { @Disabled @Test public void testExecute() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); Statement statement = connection.createStatement(); String selectQuery = "select * from " + DATASET + "." + TABLE_NAME; @@ -111,8 +108,7 @@ public void testExecute() throws SQLException { @Test public void testExecuteQuery() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); Statement statement = connection.createStatement(); String selectQuery = "SELECT * FROM bigquery-public-data.chicago_taxi_trips.taxi_trips LIMIT 1000;"; @@ -169,8 +165,7 @@ public void testExecuteQuery() throws SQLException { @Test public void testExecuteUpdate() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); String TEMP_TABLE_NAME = "TEMP_DDL_STATEMENT_TABLE"; String createQuery = "CREATE OR REPLACE TABLE " @@ -230,10 +225,7 @@ public void testExecuteUpdate() throws SQLException { @Test public void testScript() throws SQLException { - String connection_uri = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;PROJECTID=" - + DEFAULT_CATALOG - + ";OAUTHTYPE=3"; + String connection_uri = ITBase.connectionUrl; Properties withReadApi = new Properties(); withReadApi.setProperty("EnableHighThroughputAPI", "1"); Connection connection = DriverManager.getConnection(connection_uri, withReadApi); @@ -262,19 +254,9 @@ private int resultSetRowCount(ResultSet resultSet) throws SQLException { @Test public void testStringColumnLength() throws SQLException { - String projectId = DEFAULT_CATALOG; String TABLE_NAME = "StringColumnLengthTable"; - String oauthType = "3"; // Google Application Credentials int length = 10; - String connectionUrl = - "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;ProjectId=" - + projectId - + ";OAuthType=" - + oauthType - + ";Timeout=3600;" - + "StringColumnLength=" - + length - + ";"; + String connectionUrl = ITBase.connectionUrl + "StringColumnLength=" + length + ";"; // + "EnableSession=1"; Connection connection1 = DriverManager.getConnection(connectionUrl); Statement statement = connection1.createStatement(); @@ -319,8 +301,7 @@ private String generateString(int len) { @Test public void testCloseStatement() throws SQLException { String selectQuery = "select * from " + DATASET + "." + TABLE_NAME; - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); Statement statement = connection.createStatement(); assertFalse(statement.isClosed()); @@ -339,8 +320,7 @@ public void testCloseStatement() throws SQLException { @Test public void testSetTimeout() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); Statement statement = connection.createStatement(); String selectQuery = @@ -364,16 +344,14 @@ public void testSetTimeout() throws SQLException { @Disabled @Test public void testSetTimeoutThrows() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); Statement statement = connection.createStatement(); assertThrows(SQLException.class, () -> statement.setQueryTimeout(-1)); } @Test public void testDefaultValues() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); Statement statement = connection.createStatement(); assertEquals(0, statement.getMaxFieldSize()); // assertEquals(0, statement.getLargeMaxRows()); @@ -385,8 +363,7 @@ public void testDefaultValues() throws SQLException { @Test public void testRangeSelectDataset() throws SQLException { - Connection connection = - DriverManager.getConnection(String.format(connectionUrl, DEFAULT_CATALOG)); + Connection connection = DriverManager.getConnection(ITBase.connectionUrl); Statement statement = connection.createStatement(); // execute diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/utils/TestUtilities.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/utils/TestUtilities.java index 419cb9b0bcb1..a11e7fbb4778 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/utils/TestUtilities.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/utils/TestUtilities.java @@ -140,4 +140,27 @@ public int getConnectionErrorCount() { return connectionErrorCount; } } + + private static String getEnvOrProperty(String envVar, String sysProp, String defaultValue) { + String value = System.getenv(envVar); + if (value == null || value.isEmpty()) { + value = System.getProperty(sysProp, defaultValue); + } + return value; + } + + public static String getBaseUrl() { + return getEnvOrProperty( + "BIGQUERY_BASE_URL", "bigquery.baseUrl", "https://www.googleapis.com/bigquery/v2:443"); + } + + public static String getUrlFlags() { + return getEnvOrProperty("BIGQUERY_URL_FLAGS", "bigquery.urlFlags", ""); + } + + public static String getBaseConnectionUrl() { + String baseUrl = getBaseUrl(); + String flags = getUrlFlags().trim(); + return "jdbc:bigquery://" + baseUrl + ";" + flags + ";"; + } } From d3e7a198f2a37024c699d6d26addde3d909a9922 Mon Sep 17 00:00:00 2001 From: Kirill Logachev Date: Mon, 22 Jun 2026 18:08:28 -0700 Subject: [PATCH 51/82] fix(bigquery-jdbc): ensure largeResults are handled in PreparedStatement (#13496) --- .../jdbc/BigQueryParameterHandler.java | 4 + .../jdbc/BigQueryPreparedStatement.java | 38 ++------- .../bigquery/jdbc/BigQueryStatement.java | 52 +++++++----- .../bigquery/jdbc/BigQueryStatementTest.java | 80 +++++++++++++++++++ 4 files changed, 122 insertions(+), 52 deletions(-) diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryParameterHandler.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryParameterHandler.java index 8daaf99b62a8..9cb60177090c 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryParameterHandler.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryParameterHandler.java @@ -284,4 +284,8 @@ StandardSQLTypeName getSqlType(String name) { } return null; } + + int getParametersArraySize() { + return this.parametersArraySize; + } } diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryPreparedStatement.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryPreparedStatement.java index c153b1935bb6..7e62c7fd4f69 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryPreparedStatement.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryPreparedStatement.java @@ -64,8 +64,7 @@ class BigQueryPreparedStatement extends BigQueryStatement implements PreparedStatement { private final BigQueryJdbcCustomLogger LOG = new BigQueryJdbcCustomLogger(this.toString()); private static final char POSITIONAL_PARAMETER_CHAR = '?'; - // Making this protected so BigQueryCallableStatement subclass can access the parameters. - protected final BigQueryParameterHandler parameterHandler; + // parameterHandler is inherited from BigQueryStatement protected int parameterCount = 0; protected String currentQuery; private Queue> batchParameters = new LinkedList<>(); @@ -90,49 +89,22 @@ private int getParameterCount(String query) { @Override public ResultSet executeQuery() throws SQLException { - logQueryExecutionStart(this.currentQuery); - try { - QueryJobConfiguration.Builder jobConfiguration = getJobConfig(this.currentQuery); - jobConfiguration.setParameterMode("POSITIONAL"); - jobConfiguration = this.parameterHandler.configureParameters(jobConfiguration); - runQuery(this.currentQuery, jobConfiguration.build()); - } catch (InterruptedException ex) { - throw new BigQueryJdbcRuntimeException("Interrupted during executeQuery", ex); - } - return getCurrentResultSet(); + return super.executeQuery(this.currentQuery); } @Override public long executeLargeUpdate() throws SQLException { - logQueryExecutionStart(this.currentQuery); - try { - QueryJobConfiguration.Builder jobConfiguration = getJobConfig(this.currentQuery); - jobConfiguration.setParameterMode("POSITIONAL"); - jobConfiguration = this.parameterHandler.configureParameters(jobConfiguration); - runQuery(this.currentQuery, jobConfiguration.build()); - } catch (InterruptedException ex) { - throw new BigQueryJdbcRuntimeException("Interrupted during executeLargeUpdate", ex); - } - return this.currentUpdateCount; + return super.executeLargeUpdate(this.currentQuery); } @Override public int executeUpdate() throws SQLException { - return checkUpdateCount(executeLargeUpdate()); + return super.executeUpdate(this.currentQuery); } @Override public boolean execute() throws SQLException { - logQueryExecutionStart(this.currentQuery); - try { - QueryJobConfiguration.Builder jobConfiguration = getJobConfig(this.currentQuery); - jobConfiguration.setParameterMode("POSITIONAL"); - jobConfiguration = this.parameterHandler.configureParameters(jobConfiguration); - runQuery(this.currentQuery, jobConfiguration.build()); - } catch (InterruptedException ex) { - throw new BigQueryJdbcRuntimeException("Interrupted during execute", ex); - } - return getCurrentResultSet() != null; + return super.execute(this.currentQuery); } @Override diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java index f582c9d79181..21cdf706bef8 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java @@ -105,6 +105,7 @@ public class BigQueryStatement extends BigQueryNoOpsStatement { protected int currentJobIdIndex = -1; protected List batchQueries = new ArrayList<>(); protected BigQueryConnection connection; + protected BigQueryParameterHandler parameterHandler = null; protected String connectionId; protected int maxFieldSize = 0; protected int maxRows = 0; @@ -242,9 +243,10 @@ public ResultSet executeQuery(String sql) throws SQLException { private ResultSet executeQueryImpl(String sql) throws SQLException { logQueryExecutionStart(sql); try { - QueryJobConfiguration jobConfiguration = - setDestinationDatasetAndTableInJobConfig(getJobConfig(sql).build()); - runQuery(sql, jobConfiguration); + QueryJobConfiguration.Builder jobConfiguration = getJobConfig(sql); + jobConfiguration = applyParametersIfPresent(jobConfiguration); + jobConfiguration = setDestinationDatasetAndTableInJobConfig(jobConfiguration); + runQuery(sql, jobConfiguration.build()); } catch (InterruptedException ex) { throw new BigQueryJdbcException("Interrupted during executeQuery", ex); } @@ -266,6 +268,7 @@ private long executeLargeUpdateImpl(String sql) throws SQLException { logQueryExecutionStart(sql); try { QueryJobConfiguration.Builder jobConfiguration = getJobConfig(sql); + jobConfiguration = applyParametersIfPresent(jobConfiguration); runQuery(sql, jobConfiguration.build()); } catch (InterruptedException ex) { throw new BigQueryJdbcRuntimeException("Interrupted during executeLargeUpdate", ex); @@ -301,12 +304,13 @@ public boolean execute(String sql) throws SQLException { private boolean executeImpl(String sql) throws SQLException { logQueryExecutionStart(sql); try { - QueryJobConfiguration jobConfiguration = getJobConfig(sql).build(); - // If Large Results are enabled, ensure query type is SELECT - if (isLargeResultsEnabled() && getQueryType(jobConfiguration, null) == SqlType.SELECT) { + QueryJobConfiguration.Builder jobConfiguration = getJobConfig(sql); + jobConfiguration = applyParametersIfPresent(jobConfiguration); + if (isLargeResultsEnabled() + && getQueryType(jobConfiguration.build(), null) == SqlType.SELECT) { jobConfiguration = setDestinationDatasetAndTableInJobConfig(jobConfiguration); } - runQuery(sql, jobConfiguration); + runQuery(sql, jobConfiguration.build()); } catch (InterruptedException ex) { throw new BigQueryJdbcRuntimeException("Interrupted during execute", ex); } @@ -623,35 +627,43 @@ void runQuery(String query, QueryJobConfiguration jobConfiguration) } } - private boolean isLargeResultsEnabled() { + protected QueryJobConfiguration.Builder applyParametersIfPresent( + QueryJobConfiguration.Builder jobConfigurationBuilder) throws SQLException { + if (this.parameterHandler != null && this.parameterHandler.getParametersArraySize() > 0) { + jobConfigurationBuilder.setParameterMode("POSITIONAL"); + jobConfigurationBuilder = this.parameterHandler.configureParameters(jobConfigurationBuilder); + } + return jobConfigurationBuilder; + } + + boolean isLargeResultsEnabled() { String destinationTable = this.querySettings.getDestinationTable(); String destinationDataset = this.querySettings.getDestinationDataset(); return destinationDataset != null || destinationTable != null; } - private QueryJobConfiguration setDestinationDatasetAndTableInJobConfig( - QueryJobConfiguration jobConfiguration) { + QueryJobConfiguration.Builder setDestinationDatasetAndTableInJobConfig( + QueryJobConfiguration.Builder jobConfigurationBuilder) { String destinationTable = this.querySettings.getDestinationTable(); String destinationDataset = this.querySettings.getDestinationDataset(); if (destinationDataset != null || destinationTable != null) { if (destinationDataset != null) { checkIfDatasetExistElseCreate(destinationDataset); } - if (jobConfiguration.useLegacySql() && destinationDataset == null) { + if (getUseLegacySql() && destinationDataset == null) { checkIfDatasetExistElseCreate(DEFAULT_DATASET_NAME); destinationDataset = DEFAULT_DATASET_NAME; } if (destinationTable == null) { destinationTable = getDefaultDestinationTable(); } - return jobConfiguration.toBuilder() + return jobConfigurationBuilder .setAllowLargeResults(this.querySettings.getAllowLargeResults()) .setDestinationTable(TableId.of(destinationDataset, destinationTable)) .setCreateDisposition(JobInfo.CreateDisposition.CREATE_IF_NEEDED) - .setWriteDisposition(JobInfo.WriteDisposition.WRITE_TRUNCATE) - .build(); + .setWriteDisposition(JobInfo.WriteDisposition.WRITE_TRUNCATE); } - return jobConfiguration; + return jobConfigurationBuilder; } Job getNextJob() { @@ -1407,14 +1419,16 @@ QueryJobConfiguration.Builder getJobConfig(String query) { if (this.querySettings.getQueryProperties() != null) { queryConfigBuilder.setConnectionProperties(this.querySettings.getQueryProperties()); } - boolean useLegacy = - QueryDialectType.BIG_QUERY.equals( - QueryDialectType.valueOf(this.querySettings.getQueryDialect())); - queryConfigBuilder.setUseLegacySql(useLegacy); + queryConfigBuilder.setUseLegacySql(getUseLegacySql()); return queryConfigBuilder; } + private boolean getUseLegacySql() { + return QueryDialectType.BIG_QUERY.equals( + QueryDialectType.valueOf(this.querySettings.getQueryDialect())); + } + private void checkIfDatasetExistElseCreate(String datasetName) { Dataset dataset = bigQuery.getDataset(DatasetId.of(datasetName)); if (dataset == null) { diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java index dd89f45cbd57..06de322a4c32 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java @@ -702,6 +702,86 @@ public void testWrapperMethods() throws SQLException { assertTrue(e.getMessage().contains("Cannot unwrap to java.sql.Connection")); } + @Test + public void testPreparedStatementExecuteQueryWithLargeResults() throws Exception { + // Setup connection mocks to return large results settings + doReturn(true).when(bigQueryConnection).isAllowLargeResults(); + doReturn("test_dataset").when(bigQueryConnection).getDestinationDataset(); + doReturn("test_table").when(bigQueryConnection).getDestinationTable(); + + com.google.cloud.bigquery.Dataset dataset = mock(com.google.cloud.bigquery.Dataset.class); + doReturn(dataset).when(bigquery).getDataset(any(com.google.cloud.bigquery.DatasetId.class)); + + // Create PreparedStatement + BigQueryPreparedStatement preparedStatement = + new BigQueryPreparedStatement(bigQueryConnection, query); + BigQueryPreparedStatement preparedStatementSpy = Mockito.spy(preparedStatement); + + TableResult result = Mockito.mock(TableResult.class); + BigQueryJsonResultSet jsonResultSet = mock(BigQueryJsonResultSet.class); + QueryJobConfiguration jobConfiguration = QueryJobConfiguration.newBuilder(query).build(); + Job job = getJobMock(result, jobConfiguration, StatementType.SELECT); + + doReturn(job).when(bigquery).queryWithTimeout(any(), any(), any()); + doReturn(jsonResultSet).when(preparedStatementSpy).processJsonResultSet(eq(result), any()); + + Job dryRunJob = getJobMock(null, jobConfiguration, StatementType.SELECT); + doReturn(dryRunJob).when(bigquery).create(any(JobInfo.class)); + + // Act + preparedStatementSpy.executeQuery(); + + // Assert + ArgumentCaptor captor = + ArgumentCaptor.forClass(QueryJobConfiguration.class); + verify(bigquery).queryWithTimeout(captor.capture(), any(), any()); + QueryJobConfiguration capturedConfig = captor.getValue(); + + assertThat(capturedConfig.getDestinationTable()) + .isEqualTo(TableId.of("test_dataset", "test_table")); + assertThat(capturedConfig.allowLargeResults()).isTrue(); + } + + @Test + public void testPreparedStatementExecuteWithLargeResults() throws Exception { + // Setup connection mocks to return large results settings + doReturn(true).when(bigQueryConnection).isAllowLargeResults(); + doReturn("test_dataset").when(bigQueryConnection).getDestinationDataset(); + doReturn("test_table").when(bigQueryConnection).getDestinationTable(); + + com.google.cloud.bigquery.Dataset dataset = mock(com.google.cloud.bigquery.Dataset.class); + doReturn(dataset).when(bigquery).getDataset(any(com.google.cloud.bigquery.DatasetId.class)); + + // Create PreparedStatement + BigQueryPreparedStatement preparedStatement = + new BigQueryPreparedStatement(bigQueryConnection, query); + BigQueryPreparedStatement preparedStatementSpy = Mockito.spy(preparedStatement); + + TableResult result = Mockito.mock(TableResult.class); + BigQueryJsonResultSet jsonResultSet = mock(BigQueryJsonResultSet.class); + QueryJobConfiguration jobConfiguration = QueryJobConfiguration.newBuilder(query).build(); + Job job = getJobMock(result, jobConfiguration, StatementType.SELECT); + + doReturn(job).when(bigquery).queryWithTimeout(any(), any(), any()); + doReturn(jsonResultSet).when(preparedStatementSpy).processJsonResultSet(eq(result), any()); + + Job dryRunJob = getJobMock(null, jobConfiguration, StatementType.SELECT); + doReturn(dryRunJob).when(bigquery).create(any(JobInfo.class)); + + // Act + preparedStatementSpy.execute(); + + // Assert + ArgumentCaptor captor = + ArgumentCaptor.forClass(QueryJobConfiguration.class); + verify(bigquery).queryWithTimeout(captor.capture(), any(), any()); + QueryJobConfiguration capturedConfig = captor.getValue(); + + assertThat(capturedConfig.getDestinationTable()) + .isEqualTo(TableId.of("test_dataset", "test_table")); + assertThat(capturedConfig.allowLargeResults()).isTrue(); + } + @Test public void testSetFetchSizeNegativeThrows() { org.junit.jupiter.api.Assertions.assertThrows( From 5ff7a0f014489ea463c9f3349ed2d1780620b2cc Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Tue, 23 Jun 2026 02:13:45 +0000 Subject: [PATCH 52/82] chore: Update owlbot to avoid copying generated unit tests for pure GAPIC libraries (#13518) Update all the owlbot hermetic configs to not copy over the GAPIC generated unit tests. We will instead rely on the showcase tests for coverage for functionality. This also updates the template `owlbot.yaml.monorepo.j2` to prevent new client libraries from copying over the generated unit tests. All future library generations should only contain the source code. Part of https://github.com/googleapis/google-cloud-java/issues/13296 to speed up the CIs (reducing the bulk test times). --- java-accessapproval/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 6 +- java-admanager/.OwlBot-hermetic.yaml | 4 +- .../.OwlBot-hermetic.yaml | 11 +- java-aiplatform/.OwlBot-hermetic.yaml | 4 +- java-alloydb-connectors/.OwlBot-hermetic.yaml | 11 +- java-alloydb/.OwlBot-hermetic.yaml | 11 +- java-analytics-admin/.OwlBot-hermetic.yaml | 9 +- java-analytics-data/.OwlBot-hermetic.yaml | 9 +- java-analyticshub/.OwlBot-hermetic.yaml | 11 +- java-api-gateway/.OwlBot-hermetic.yaml | 11 +- java-apigee-connect/.OwlBot-hermetic.yaml | 9 +- java-apigee-registry/.OwlBot-hermetic.yaml | 11 +- java-apihub/.OwlBot-hermetic.yaml | 11 +- java-apikeys/.OwlBot-hermetic.yaml | 11 +- java-appengine-admin/.OwlBot-hermetic.yaml | 9 +- java-apphub/.OwlBot-hermetic.yaml | 11 +- java-appoptimize/.OwlBot-hermetic.yaml | 10 +- java-area120-tables/.OwlBot-hermetic.yaml | 9 +- .../tables/v1alpha/MockTablesService.java | 59 -- .../tables/v1alpha/MockTablesServiceImpl.java | 327 ------- .../TablesServiceClientHttpJsonTest.java | 873 ------------------ .../v1alpha/TablesServiceClientTest.java | 784 ---------------- java-artifact-registry/.OwlBot-hermetic.yaml | 9 +- java-asset/.OwlBot-hermetic.yaml | 13 +- java-assured-workloads/.OwlBot-hermetic.yaml | 9 +- java-auditmanager/.OwlBot-hermetic.yaml | 11 +- java-automl/.OwlBot-hermetic.yaml | 9 +- java-backstory/.OwlBot-hermetic.yaml | 11 +- java-backupdr/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-batch/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-biglake/.OwlBot-hermetic.yaml | 19 +- .../.OwlBot-hermetic.yaml | 11 +- java-bigqueryconnection/.OwlBot-hermetic.yaml | 11 +- java-bigquerydatapolicy/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 9 +- java-bigquerymigration/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-billing/.OwlBot-hermetic.yaml | 6 +- java-billingbudgets/.OwlBot-hermetic.yaml | 9 +- .../.OwlBot-hermetic.yaml | 9 +- java-capacityplanner/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-ces/.OwlBot-hermetic.yaml | 11 +- java-channel/.OwlBot-hermetic.yaml | 9 +- java-chat/.OwlBot-hermetic.yaml | 11 +- java-chronicle/.OwlBot-hermetic.yaml | 11 +- java-cloudapiregistry/.OwlBot-hermetic.yaml | 11 +- java-cloudbuild/.OwlBot-hermetic.yaml | 9 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-cloudquotas/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-cloudsupport/.OwlBot-hermetic.yaml | 11 +- java-common-protos/.OwlBot-hermetic.yaml | 7 +- java-compute/.OwlBot-hermetic.yaml | 12 +- .../.OwlBot-hermetic.yaml | 11 +- java-configdelivery/.OwlBot-hermetic.yaml | 11 +- java-connectgateway/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 9 +- java-container/.OwlBot-hermetic.yaml | 13 +- java-containeranalysis/.OwlBot-hermetic.yaml | 7 +- java-contentwarehouse/.OwlBot-hermetic.yaml | 11 +- java-data-fusion/.OwlBot-hermetic.yaml | 11 +- java-databasecenter/.OwlBot-hermetic.yaml | 11 +- java-datacatalog/.OwlBot-hermetic.yaml | 11 +- java-dataflow/.OwlBot-hermetic.yaml | 11 +- java-dataform/.OwlBot-hermetic.yaml | 11 +- java-datalabeling/.OwlBot-hermetic.yaml | 13 +- java-datalineage/.OwlBot-hermetic.yaml | 15 +- java-datamanager/.OwlBot-hermetic.yaml | 6 +- java-dataplex/.OwlBot-hermetic.yaml | 11 +- java-dataproc-metastore/.OwlBot-hermetic.yaml | 11 +- java-dataproc/.OwlBot-hermetic.yaml | 11 +- java-datastore/.OwlBot-hermetic.yaml | 9 +- java-datastream/.OwlBot-hermetic.yaml | 11 +- java-deploy/.OwlBot-hermetic.yaml | 11 +- java-developerconnect/.OwlBot-hermetic.yaml | 11 +- java-developerknowledge/.OwlBot-hermetic.yaml | 11 +- java-devicestreaming/.OwlBot-hermetic.yaml | 11 +- java-dialogflow-cx/.OwlBot-hermetic.yaml | 11 +- java-dialogflow/.OwlBot-hermetic.yaml | 12 +- java-discoveryengine/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-dlp/.OwlBot-hermetic.yaml | 10 +- java-dms/.OwlBot-hermetic.yaml | 9 +- java-document-ai/.OwlBot-hermetic.yaml | 9 +- java-domains/.OwlBot-hermetic.yaml | 9 +- java-edgenetwork/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-errorreporting/.OwlBot-hermetic.yaml | 10 +- java-essential-contacts/.OwlBot-hermetic.yaml | 9 +- .../.OwlBot-hermetic.yaml | 11 +- java-eventarc/.OwlBot-hermetic.yaml | 11 +- java-filestore/.OwlBot-hermetic.yaml | 11 +- java-financialservices/.OwlBot-hermetic.yaml | 11 +- java-functions/.OwlBot-hermetic.yaml | 9 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-gke-backup/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 9 +- java-gke-multi-cloud/.OwlBot-hermetic.yaml | 11 +- java-gkehub/.OwlBot-hermetic.yaml | 9 +- java-gkerecommender/.OwlBot-hermetic.yaml | 11 +- java-grafeas/.OwlBot-hermetic.yaml | 6 +- java-gsuite-addons/.OwlBot-hermetic.yaml | 9 +- java-health/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-iam-admin/.OwlBot-hermetic.yaml | 11 +- java-iam-policy/.OwlBot-hermetic.yaml | 17 +- java-iamcredentials/.OwlBot-hermetic.yaml | 11 +- java-iap/.OwlBot-hermetic.yaml | 11 +- java-ids/.OwlBot-hermetic.yaml | 11 +- java-infra-manager/.OwlBot-hermetic.yaml | 11 +- java-iot/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-kms/.OwlBot-hermetic.yaml | 12 +- java-kmsinventory/.OwlBot-hermetic.yaml | 11 +- java-language/.OwlBot-hermetic.yaml | 9 +- java-licensemanager/.OwlBot-hermetic.yaml | 11 +- java-life-sciences/.OwlBot-hermetic.yaml | 9 +- java-locationfinder/.OwlBot-hermetic.yaml | 11 +- java-lustre/.OwlBot-hermetic.yaml | 11 +- java-maintenance/.OwlBot-hermetic.yaml | 11 +- java-managed-identities/.OwlBot-hermetic.yaml | 11 +- java-managedkafka/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-maps-area-insights/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-maps-fleetengine/.OwlBot-hermetic.yaml | 11 +- java-maps-geocode/.OwlBot-hermetic.yaml | 10 +- java-maps-mapmanagement/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-maps-places/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-maps-routing/.OwlBot-hermetic.yaml | 11 +- java-maps-solar/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 6 +- java-mediatranslation/.OwlBot-hermetic.yaml | 9 +- java-meet/.OwlBot-hermetic.yaml | 11 +- java-memcache/.OwlBot-hermetic.yaml | 11 +- java-migrationcenter/.OwlBot-hermetic.yaml | 11 +- java-modelarmor/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-monitoring/.OwlBot-hermetic.yaml | 12 +- java-netapp/.OwlBot-hermetic.yaml | 11 +- java-network-management/.OwlBot-hermetic.yaml | 11 +- java-network-security/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-networkservices/.OwlBot-hermetic.yaml | 11 +- java-notebooks/.OwlBot-hermetic.yaml | 11 +- java-optimization/.OwlBot-hermetic.yaml | 11 +- java-oracledatabase/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-orgpolicy/.OwlBot-hermetic.yaml | 11 +- java-os-config/.OwlBot-hermetic.yaml | 9 +- java-os-login/.OwlBot-hermetic.yaml | 10 +- java-parallelstore/.OwlBot-hermetic.yaml | 11 +- java-parametermanager/.OwlBot-hermetic.yaml | 11 +- java-phishingprotection/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 15 +- java-policysimulator/.OwlBot-hermetic.yaml | 11 +- java-private-catalog/.OwlBot-hermetic.yaml | 9 +- .../.OwlBot-hermetic.yaml | 11 +- java-profiler/.OwlBot-hermetic.yaml | 11 +- java-publicca/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-recommendations-ai/.OwlBot-hermetic.yaml | 11 +- java-recommender/.OwlBot-hermetic.yaml | 11 +- java-redis-cluster/.OwlBot-hermetic.yaml | 11 +- java-redis/.OwlBot-hermetic.yaml | 11 +- java-resourcemanager/.OwlBot-hermetic.yaml | 4 +- java-retail/.OwlBot-hermetic.yaml | 11 +- java-run/.OwlBot-hermetic.yaml | 11 +- java-saasservicemgmt/.OwlBot-hermetic.yaml | 11 +- java-scheduler/.OwlBot-hermetic.yaml | 10 +- java-secretmanager/.OwlBot-hermetic.yaml | 14 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 9 +- .../.OwlBot-hermetic.yaml | 11 +- java-securitycenter/.OwlBot-hermetic.yaml | 10 +- .../.OwlBot-hermetic.yaml | 11 +- java-securityposture/.OwlBot-hermetic.yaml | 11 +- java-service-control/.OwlBot-hermetic.yaml | 11 +- java-service-management/.OwlBot-hermetic.yaml | 12 +- java-service-usage/.OwlBot-hermetic.yaml | 9 +- java-servicedirectory/.OwlBot-hermetic.yaml | 9 +- java-servicehealth/.OwlBot-hermetic.yaml | 11 +- java-shell/.OwlBot-hermetic.yaml | 9 +- java-shopping-css/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-spanneradapter/.OwlBot-hermetic.yaml | 11 +- java-speech/.OwlBot-hermetic.yaml | 14 +- java-storage-transfer/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-storageinsights/.OwlBot-hermetic.yaml | 11 +- java-talent/.OwlBot-hermetic.yaml | 11 +- java-tasks/.OwlBot-hermetic.yaml | 12 +- java-telcoautomation/.OwlBot-hermetic.yaml | 11 +- java-texttospeech/.OwlBot-hermetic.yaml | 14 +- java-tpu/.OwlBot-hermetic.yaml | 9 +- java-trace/.OwlBot-hermetic.yaml | 14 +- .../cloud/trace/v1/MockTraceService.java | 59 -- .../cloud/trace/v1/MockTraceServiceImpl.java | 127 --- .../v1/TraceServiceClientHttpJsonTest.java | 223 ----- .../trace/v1/TraceServiceClientTest.java | 213 ----- .../cloud/trace/v2/MockTraceService.java | 59 -- .../cloud/trace/v2/MockTraceServiceImpl.java | 104 --- .../v2/TraceServiceClientHttpJsonTest.java | 254 ----- .../trace/v2/TraceServiceClientTest.java | 257 ------ java-valkey/.OwlBot-hermetic.yaml | 11 +- java-vectorsearch/.OwlBot-hermetic.yaml | 11 +- java-video-intelligence/.OwlBot-hermetic.yaml | 11 +- java-video-live-stream/.OwlBot-hermetic.yaml | 11 +- java-video-stitcher/.OwlBot-hermetic.yaml | 11 +- java-video-transcoder/.OwlBot-hermetic.yaml | 11 +- java-vision/.OwlBot-hermetic.yaml | 12 +- java-visionai/.OwlBot-hermetic.yaml | 11 +- java-vmmigration/.OwlBot-hermetic.yaml | 11 +- java-vmwareengine/.OwlBot-hermetic.yaml | 11 +- java-vpcaccess/.OwlBot-hermetic.yaml | 9 +- java-webrisk/.OwlBot-hermetic.yaml | 11 +- java-websecurityscanner/.OwlBot-hermetic.yaml | 14 +- .../.OwlBot-hermetic.yaml | 11 +- java-workflows/.OwlBot-hermetic.yaml | 9 +- java-workloadmanager/.OwlBot-hermetic.yaml | 11 +- java-workspaceevents/.OwlBot-hermetic.yaml | 11 +- java-workstations/.OwlBot-hermetic.yaml | 11 +- .../templates/owlbot.yaml.monorepo.j2 | 16 +- .../goldens/.OwlBot-hermetic-golden.yaml | 12 +- 250 files changed, 1435 insertions(+), 4447 deletions(-) delete mode 100644 java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesService.java delete mode 100644 java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesServiceImpl.java delete mode 100644 java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientHttpJsonTest.java delete mode 100644 java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientTest.java delete mode 100644 java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceService.java delete mode 100644 java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceServiceImpl.java delete mode 100644 java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientHttpJsonTest.java delete mode 100644 java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientTest.java delete mode 100644 java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceService.java delete mode 100644 java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceServiceImpl.java delete mode 100644 java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientHttpJsonTest.java delete mode 100644 java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientTest.java diff --git a/java-accessapproval/.OwlBot-hermetic.yaml b/java-accessapproval/.OwlBot-hermetic.yaml index 4736283994aa..d7b296197d4d 100644 --- a/java-accessapproval/.OwlBot-hermetic.yaml +++ b/java-accessapproval/.OwlBot-hermetic.yaml @@ -16,20 +16,23 @@ deep-remove-regex: - "/java-accessapproval/grpc-google-.*/src" - "/java-accessapproval/proto-google-.*/src" -- "/java-accessapproval/google-.*/src" +- "/java-accessapproval/google-.*/src/main" +- "/java-accessapproval/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-accessapproval/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-accessapproval/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-accessapproval/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/it" +- "/.*google-cloud-accessapproval/src/test/java/com/google/.*/accessapproval/v1/it" deep-copy-regex: - source: "/google/cloud/accessapproval/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-accessapproval/$1/proto-google-cloud-accessapproval-$1/src" - source: "/google/cloud/accessapproval/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-accessapproval/$1/grpc-google-cloud-accessapproval-$1/src" -- source: "/google/cloud/accessapproval/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-accessapproval/$1/google-cloud-accessapproval/src" +- source: "/google/cloud/accessapproval/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-accessapproval/$1/google-cloud-accessapproval/src/main" - source: "/google/cloud/accessapproval/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-accessapproval/$1/samples/snippets/generated" diff --git a/java-accesscontextmanager/.OwlBot-hermetic.yaml b/java-accesscontextmanager/.OwlBot-hermetic.yaml index d06ba37a7aec..0b8833e0c281 100644 --- a/java-accesscontextmanager/.OwlBot-hermetic.yaml +++ b/java-accesscontextmanager/.OwlBot-hermetic.yaml @@ -19,15 +19,13 @@ deep-remove-regex: deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/identity/accesscontextmanager/(v\\d)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-accesscontextmanager/$1/proto-google-identity-accesscontextmanager-$1/src" - source: "/google/identity/accesscontextmanager/(v\\d)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-accesscontextmanager/$1/grpc-google-identity-accesscontextmanager-$1/src" -- source: "/google/identity/accesscontextmanager/(v\\d)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-accesscontextmanager/$1/google-identity-accesscontextmanager/src" +- source: "/google/identity/accesscontextmanager/(v\\d)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-accesscontextmanager/$1/google-identity-accesscontextmanager/src/main" - source: "/google/identity/accesscontextmanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-accesscontextmanager/$1/samples/snippets/generated" - source: "/google/identity/accesscontextmanager/type/.*-java/proto-google-.*/src" diff --git a/java-admanager/.OwlBot-hermetic.yaml b/java-admanager/.OwlBot-hermetic.yaml index ceb5433db71d..52730788c628 100644 --- a/java-admanager/.OwlBot-hermetic.yaml +++ b/java-admanager/.OwlBot-hermetic.yaml @@ -28,8 +28,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-admanager/$1/proto-ad-manager-$1/src" - source: "/google/ads/admanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-admanager/$1/grpc-ad-manager-$1/src" -- source: "/google/ads/admanager/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-admanager/$1/ad-manager/src" +- source: "/google/ads/admanager/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-admanager/$1/ad-manager/src/main" - source: "/google/ads/admanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-admanager/$1/samples/snippets/generated" diff --git a/java-advisorynotifications/.OwlBot-hermetic.yaml b/java-advisorynotifications/.OwlBot-hermetic.yaml index 5feb99e20c19..e81b6fc2d183 100644 --- a/java-advisorynotifications/.OwlBot-hermetic.yaml +++ b/java-advisorynotifications/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-advisorynotifications/grpc-google-.*/src" - "/java-advisorynotifications/proto-google-.*/src" -- "/java-advisorynotifications/google-.*/src" +- "/java-advisorynotifications/google-.*/src/main" +- "/java-advisorynotifications/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-advisorynotifications/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-advisorynotifications/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-advisorynotifications/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/advisorynotifications/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-advisorynotifications/$1/proto-google-cloud-advisorynotifications-$1/src" - source: "/google/cloud/advisorynotifications/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-advisorynotifications/$1/grpc-google-cloud-advisorynotifications-$1/src" -- source: "/google/cloud/advisorynotifications/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-advisorynotifications/$1/google-cloud-advisorynotifications/src" +- source: "/google/cloud/advisorynotifications/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-advisorynotifications/$1/google-cloud-advisorynotifications/src/main" - source: "/google/cloud/advisorynotifications/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-advisorynotifications/$1/samples/snippets/generated" diff --git a/java-aiplatform/.OwlBot-hermetic.yaml b/java-aiplatform/.OwlBot-hermetic.yaml index 27f0b13f5309..894543a4510b 100644 --- a/java-aiplatform/.OwlBot-hermetic.yaml +++ b/java-aiplatform/.OwlBot-hermetic.yaml @@ -28,8 +28,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-aiplatform/$1/proto-google-cloud-aiplatform-$1/src" - source: "/google/cloud/aiplatform/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-aiplatform/$1/grpc-google-cloud-aiplatform-$1/src" -- source: "/google/cloud/aiplatform/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-aiplatform/$1/google-cloud-aiplatform/src" +- source: "/google/cloud/aiplatform/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-aiplatform/$1/google-cloud-aiplatform/src/main" - source: "/google/cloud/aiplatform/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-aiplatform/$1/samples/snippets/generated" diff --git a/java-alloydb-connectors/.OwlBot-hermetic.yaml b/java-alloydb-connectors/.OwlBot-hermetic.yaml index 93a134a913f0..385ea820103d 100644 --- a/java-alloydb-connectors/.OwlBot-hermetic.yaml +++ b/java-alloydb-connectors/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-alloydb-connectors/grpc-google-.*/src" - "/java-alloydb-connectors/proto-google-.*/src" -- "/java-alloydb-connectors/google-.*/src" +- "/java-alloydb-connectors/google-.*/src/main" +- "/java-alloydb-connectors/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-alloydb-connectors/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-alloydb-connectors/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-alloydb-connectors/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/alloydb/connectors/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-alloydb-connectors/$1/proto-google-cloud-alloydb-connectors-$1/src" - source: "/google/cloud/alloydb/connectors/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-alloydb-connectors/$1/grpc-google-cloud-alloydb-connectors-$1/src" -- source: "/google/cloud/alloydb/connectors/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-alloydb-connectors/$1/google-cloud-alloydb-connectors/src" +- source: "/google/cloud/alloydb/connectors/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-alloydb-connectors/$1/google-cloud-alloydb-connectors/src/main" - source: "/google/cloud/alloydb/connectors/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-alloydb-connectors/$1/samples/snippets/generated" diff --git a/java-alloydb/.OwlBot-hermetic.yaml b/java-alloydb/.OwlBot-hermetic.yaml index 6f0899e44b64..5ec5dabf9951 100644 --- a/java-alloydb/.OwlBot-hermetic.yaml +++ b/java-alloydb/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-alloydb/grpc-google-.*/src" - "/java-alloydb/proto-google-.*/src" -- "/java-alloydb/google-.*/src" +- "/java-alloydb/google-.*/src/main" +- "/java-alloydb/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-alloydb/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-alloydb/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-alloydb/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/alloydb/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-alloydb/$1/proto-google-cloud-alloydb-$1/src" - source: "/google/cloud/alloydb/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-alloydb/$1/grpc-google-cloud-alloydb-$1/src" -- source: "/google/cloud/alloydb/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-alloydb/$1/google-cloud-alloydb/src" +- source: "/google/cloud/alloydb/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-alloydb/$1/google-cloud-alloydb/src/main" - source: "/google/cloud/alloydb/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-alloydb/$1/samples/snippets/generated" diff --git a/java-analytics-admin/.OwlBot-hermetic.yaml b/java-analytics-admin/.OwlBot-hermetic.yaml index 5f3586f3a66c..36ef2cba814c 100644 --- a/java-analytics-admin/.OwlBot-hermetic.yaml +++ b/java-analytics-admin/.OwlBot-hermetic.yaml @@ -16,7 +16,10 @@ deep-remove-regex: - "/java-analytics-admin/grpc-google-.*/src" - "/java-analytics-admin/proto-google-.*/src" -- "/java-analytics-admin/google-.*/src" +- "/java-analytics-admin/google-.*/src/main" +- "/java-analytics-admin/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-analytics-admin/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-analytics-admin/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-analytics-admin/samples/snippets/generated" deep-preserve-regex: @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-analytics-admin/$1/proto-google-analytics-admin-$1/src" - source: "/google/analytics/admin/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-analytics-admin/$1/grpc-google-analytics-admin-$1/src" -- source: "/google/analytics/admin/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-analytics-admin/$1/google-analytics-admin/src" +- source: "/google/analytics/admin/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-analytics-admin/$1/google-analytics-admin/src/main" - source: "/google/analytics/admin/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-analytics-admin/$1/samples/snippets/generated" diff --git a/java-analytics-data/.OwlBot-hermetic.yaml b/java-analytics-data/.OwlBot-hermetic.yaml index 01c77325e63d..1c5c6ebf37c2 100644 --- a/java-analytics-data/.OwlBot-hermetic.yaml +++ b/java-analytics-data/.OwlBot-hermetic.yaml @@ -16,7 +16,10 @@ deep-remove-regex: - "/java-analytics-data/grpc-google-.*/src" - "/java-analytics-data/proto-google-.*/src" -- "/java-analytics-data/google-.*/src" +- "/java-analytics-data/google-.*/src/main" +- "/java-analytics-data/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-analytics-data/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-analytics-data/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-analytics-data/samples/snippets/generated" deep-preserve-regex: @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-analytics-data/$1/proto-google-analytics-data-$1/src" - source: "/google/analytics/data/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-analytics-data/$1/grpc-google-analytics-data-$1/src" -- source: "/google/analytics/data/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-analytics-data/$1/google-analytics-data/src" +- source: "/google/analytics/data/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-analytics-data/$1/google-analytics-data/src/main" - source: "/google/analytics/data/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-analytics-data/$1/samples/snippets/generated" diff --git a/java-analyticshub/.OwlBot-hermetic.yaml b/java-analyticshub/.OwlBot-hermetic.yaml index 52b3e48efc60..b16d7785fad3 100644 --- a/java-analyticshub/.OwlBot-hermetic.yaml +++ b/java-analyticshub/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-analyticshub/grpc-google-.*/src" - "/java-analyticshub/proto-google-.*/src" -- "/java-analyticshub/google-.*/src" +- "/java-analyticshub/google-.*/src/main" +- "/java-analyticshub/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-analyticshub/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-analyticshub/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-analyticshub/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/bigquery/analyticshub/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-analyticshub/$1/proto-google-cloud-analyticshub-$1/src" - source: "/google/cloud/bigquery/analyticshub/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-analyticshub/$1/grpc-google-cloud-analyticshub-$1/src" -- source: "/google/cloud/bigquery/analyticshub/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-analyticshub/$1/google-cloud-analyticshub/src" +- source: "/google/cloud/bigquery/analyticshub/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-analyticshub/$1/google-cloud-analyticshub/src/main" - source: "/google/cloud/bigquery/analyticshub/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-analyticshub/$1/samples/snippets/generated" diff --git a/java-api-gateway/.OwlBot-hermetic.yaml b/java-api-gateway/.OwlBot-hermetic.yaml index 410f47678877..e8814dbaf1d4 100644 --- a/java-api-gateway/.OwlBot-hermetic.yaml +++ b/java-api-gateway/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-api-gateway/samples/snippets/generated" - "/java-api-gateway/grpc-google-.*/src" - "/java-api-gateway/proto-google-.*/src" -- "/java-api-gateway/google-.*/src" +- "/java-api-gateway/google-.*/src/main" +- "/java-api-gateway/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-api-gateway/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-api-gateway/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/apigateway/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-api-gateway/$1/proto-google-cloud-api-gateway-$1/src" - source: "/google/cloud/apigateway/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-api-gateway/$1/grpc-google-cloud-api-gateway-$1/src" -- source: "/google/cloud/apigateway/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-api-gateway/$1/google-cloud-api-gateway/src" +- source: "/google/cloud/apigateway/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-api-gateway/$1/google-cloud-api-gateway/src/main" - source: "/google/cloud/apigateway/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-api-gateway/$1/samples/snippets/generated" diff --git a/java-apigee-connect/.OwlBot-hermetic.yaml b/java-apigee-connect/.OwlBot-hermetic.yaml index c5d378822b26..f528f023fea5 100644 --- a/java-apigee-connect/.OwlBot-hermetic.yaml +++ b/java-apigee-connect/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-apigee-connect/samples/snippets/generated" - "/java-apigee-connect/grpc-google-.*/src" - "/java-apigee-connect/proto-google-.*/src" -- "/java-apigee-connect/google-.*/src" +- "/java-apigee-connect/google-.*/src/main" +- "/java-apigee-connect/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-apigee-connect/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-apigee-connect/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-apigee-connect/$1/proto-google-cloud-apigee-connect-$1/src" - source: "/google/cloud/apigeeconnect/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-apigee-connect/$1/grpc-google-cloud-apigee-connect-$1/src" -- source: "/google/cloud/apigeeconnect/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-apigee-connect/$1/google-cloud-apigee-connect/src" +- source: "/google/cloud/apigeeconnect/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-apigee-connect/$1/google-cloud-apigee-connect/src/main" - source: "/google/cloud/apigeeconnect/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-apigee-connect/$1/samples/snippets/generated" diff --git a/java-apigee-registry/.OwlBot-hermetic.yaml b/java-apigee-registry/.OwlBot-hermetic.yaml index 1444f0ccaf15..5656db65737c 100644 --- a/java-apigee-registry/.OwlBot-hermetic.yaml +++ b/java-apigee-registry/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-apigee-registry/grpc-google-.*/src" - "/java-apigee-registry/proto-google-.*/src" -- "/java-apigee-registry/google-.*/src" +- "/java-apigee-registry/google-.*/src/main" +- "/java-apigee-registry/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-apigee-registry/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-apigee-registry/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-apigee-registry/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/apigeeregistry/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-apigee-registry/$1/proto-google-cloud-apigee-registry-$1/src" - source: "/google/cloud/apigeeregistry/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-apigee-registry/$1/grpc-google-cloud-apigee-registry-$1/src" -- source: "/google/cloud/apigeeregistry/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-apigee-registry/$1/google-cloud-apigee-registry/src" +- source: "/google/cloud/apigeeregistry/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-apigee-registry/$1/google-cloud-apigee-registry/src/main" - source: "/google/cloud/apigeeregistry/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-apigee-registry/$1/samples/snippets/generated" api-name: apigee-registry diff --git a/java-apihub/.OwlBot-hermetic.yaml b/java-apihub/.OwlBot-hermetic.yaml index 86d34b927e2f..bb3e403a31ff 100644 --- a/java-apihub/.OwlBot-hermetic.yaml +++ b/java-apihub/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-apihub/grpc-google-.*/src" - "/java-apihub/proto-google-.*/src" -- "/java-apihub/google-.*/src" +- "/java-apihub/google-.*/src/main" +- "/java-apihub/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-apihub/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-apihub/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-apihub/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/apihub/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-apihub/$1/proto-google-cloud-apihub-$1/src" - source: "/google/cloud/apihub/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-apihub/$1/grpc-google-cloud-apihub-$1/src" -- source: "/google/cloud/apihub/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-apihub/$1/google-cloud-apihub/src" +- source: "/google/cloud/apihub/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-apihub/$1/google-cloud-apihub/src/main" - source: "/google/cloud/apihub/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-apihub/$1/samples/snippets/generated" diff --git a/java-apikeys/.OwlBot-hermetic.yaml b/java-apikeys/.OwlBot-hermetic.yaml index a20286624096..91469fa75319 100644 --- a/java-apikeys/.OwlBot-hermetic.yaml +++ b/java-apikeys/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-apikeys/grpc-google-.*/src" - "/java-apikeys/proto-google-.*/src" -- "/java-apikeys/google-.*/src" +- "/java-apikeys/google-.*/src/main" +- "/java-apikeys/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-apikeys/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-apikeys/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-apikeys/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/api/apikeys/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-apikeys/$1/proto-google-cloud-apikeys-$1/src" - source: "/google/api/apikeys/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-apikeys/$1/grpc-google-cloud-apikeys-$1/src" -- source: "/google/api/apikeys/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-apikeys/$1/google-cloud-apikeys/src" +- source: "/google/api/apikeys/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-apikeys/$1/google-cloud-apikeys/src/main" - source: "/google/api/apikeys/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-apikeys/$1/samples/snippets/generated" diff --git a/java-appengine-admin/.OwlBot-hermetic.yaml b/java-appengine-admin/.OwlBot-hermetic.yaml index 7bf30a296880..c0b56e4cbe19 100644 --- a/java-appengine-admin/.OwlBot-hermetic.yaml +++ b/java-appengine-admin/.OwlBot-hermetic.yaml @@ -16,7 +16,10 @@ deep-remove-regex: - "/java-appengine-admin/grpc-google-.*/src" - "/java-appengine-admin/proto-google-.*/src" -- "/java-appengine-admin/google-.*/src" +- "/java-appengine-admin/google-.*/src/main" +- "/java-appengine-admin/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-appengine-admin/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-appengine-admin/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-appengine-admin/samples/snippets/generated" deep-preserve-regex: @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-appengine-admin/$1/proto-google-cloud-appengine-admin-$1/src" - source: "/google/appengine/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-appengine-admin/$1/grpc-google-cloud-appengine-admin-$1/src" -- source: "/google/appengine/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-appengine-admin/$1/google-cloud-appengine-admin/src" +- source: "/google/appengine/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-appengine-admin/$1/google-cloud-appengine-admin/src/main" - source: "/google/appengine/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-appengine-admin/$1/samples/snippets/generated" diff --git a/java-apphub/.OwlBot-hermetic.yaml b/java-apphub/.OwlBot-hermetic.yaml index 4ec45152b5f3..1756e672c33e 100644 --- a/java-apphub/.OwlBot-hermetic.yaml +++ b/java-apphub/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-apphub/grpc-google-.*/src" - "/java-apphub/proto-google-.*/src" -- "/java-apphub/google-.*/src" +- "/java-apphub/google-.*/src/main" +- "/java-apphub/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-apphub/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-apphub/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-apphub/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/apphub/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-apphub/$1/proto-google-cloud-apphub-$1/src" - source: "/google/cloud/apphub/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-apphub/$1/grpc-google-cloud-apphub-$1/src" -- source: "/google/cloud/apphub/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-apphub/$1/google-cloud-apphub/src" +- source: "/google/cloud/apphub/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-apphub/$1/google-cloud-apphub/src/main" - source: "/google/cloud/apphub/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-apphub/$1/samples/snippets/generated" diff --git a/java-appoptimize/.OwlBot-hermetic.yaml b/java-appoptimize/.OwlBot-hermetic.yaml index 8c33a053fe62..63cc65ba9fdc 100644 --- a/java-appoptimize/.OwlBot-hermetic.yaml +++ b/java-appoptimize/.OwlBot-hermetic.yaml @@ -16,11 +16,13 @@ deep-remove-regex: - "/java-appoptimize/grpc-google-.*/src" - "/java-appoptimize/proto-google-.*/src" -- "/java-appoptimize/google-.*/src" +- "/java-appoptimize/google-.*/src/main" +- "/java-appoptimize/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-appoptimize/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-appoptimize/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-appoptimize/samples/snippets/generated" deep-preserve-regex: -- "/java-appoptimize/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*google-.*/src/main/java/.*/stub/Version.java" deep-copy-regex: @@ -28,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-appoptimize/$1/proto-google-cloud-appoptimize-$1/src" - source: "/google/cloud/appoptimize/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-appoptimize/$1/grpc-google-cloud-appoptimize-$1/src" -- source: "/google/cloud/appoptimize/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-appoptimize/$1/google-cloud-appoptimize/src" +- source: "/google/cloud/appoptimize/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-appoptimize/$1/google-cloud-appoptimize/src/main" - source: "/google/cloud/appoptimize/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-appoptimize/$1/samples/snippets/generated" diff --git a/java-area120-tables/.OwlBot-hermetic.yaml b/java-area120-tables/.OwlBot-hermetic.yaml index 336a6566afb2..e714b7efe1e6 100644 --- a/java-area120-tables/.OwlBot-hermetic.yaml +++ b/java-area120-tables/.OwlBot-hermetic.yaml @@ -16,7 +16,10 @@ deep-remove-regex: - "/java-area120-tables/grpc-google-.*/src" - "/java-area120-tables/proto-google-.*/src" -- "/java-area120-tables/google-.*/src" +- "/java-area120-tables/google-.*/src/main" +- "/java-area120-tables/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-area120-tables/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-area120-tables/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-area120-tables/samples/snippets/generated" deep-preserve-regex: @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-area120-tables/$1/proto-google-area120-tables-$1/src" - source: "/google/area120/tables/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-area120-tables/$1/grpc-google-area120-tables-$1/src" -- source: "/google/area120/tables/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-area120-tables/$1/google-area120-tables/src" +- source: "/google/area120/tables/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-area120-tables/$1/google-area120-tables/src/main" - source: "/google/area120/tables/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-area120-tables/$1/samples/snippets/generated" diff --git a/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesService.java b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesService.java deleted file mode 100644 index 61ea5327678e..000000000000 --- a/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockTablesService implements MockGrpcService { - private final MockTablesServiceImpl serviceImpl; - - public MockTablesService() { - serviceImpl = new MockTablesServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesServiceImpl.java b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesServiceImpl.java deleted file mode 100644 index 8bb1b9060085..000000000000 --- a/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesServiceImpl.java +++ /dev/null @@ -1,327 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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; - -import com.google.api.core.BetaApi; -import com.google.area120.tables.v1alpha1.BatchCreateRowsRequest; -import com.google.area120.tables.v1alpha1.BatchCreateRowsResponse; -import com.google.area120.tables.v1alpha1.BatchDeleteRowsRequest; -import com.google.area120.tables.v1alpha1.BatchUpdateRowsRequest; -import com.google.area120.tables.v1alpha1.BatchUpdateRowsResponse; -import com.google.area120.tables.v1alpha1.CreateRowRequest; -import com.google.area120.tables.v1alpha1.DeleteRowRequest; -import com.google.area120.tables.v1alpha1.GetRowRequest; -import com.google.area120.tables.v1alpha1.GetTableRequest; -import com.google.area120.tables.v1alpha1.GetWorkspaceRequest; -import com.google.area120.tables.v1alpha1.ListRowsRequest; -import com.google.area120.tables.v1alpha1.ListRowsResponse; -import com.google.area120.tables.v1alpha1.ListTablesRequest; -import com.google.area120.tables.v1alpha1.ListTablesResponse; -import com.google.area120.tables.v1alpha1.ListWorkspacesRequest; -import com.google.area120.tables.v1alpha1.ListWorkspacesResponse; -import com.google.area120.tables.v1alpha1.Row; -import com.google.area120.tables.v1alpha1.Table; -import com.google.area120.tables.v1alpha1.TablesServiceGrpc.TablesServiceImplBase; -import com.google.area120.tables.v1alpha1.UpdateRowRequest; -import com.google.area120.tables.v1alpha1.Workspace; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockTablesServiceImpl extends TablesServiceImplBase { - private List requests; - private Queue responses; - - public MockTablesServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void getTable(GetTableRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Table) { - requests.add(request); - responseObserver.onNext(((Table) 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 GetTable, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Table.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listTables( - ListTablesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListTablesResponse) { - requests.add(request); - responseObserver.onNext(((ListTablesResponse) 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 ListTables, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListTablesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getWorkspace( - GetWorkspaceRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Workspace) { - requests.add(request); - responseObserver.onNext(((Workspace) 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 GetWorkspace, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Workspace.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listWorkspaces( - ListWorkspacesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListWorkspacesResponse) { - requests.add(request); - responseObserver.onNext(((ListWorkspacesResponse) 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 ListWorkspaces, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListWorkspacesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getRow(GetRowRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Row) { - requests.add(request); - responseObserver.onNext(((Row) 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 GetRow, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Row.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listRows(ListRowsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListRowsResponse) { - requests.add(request); - responseObserver.onNext(((ListRowsResponse) 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 ListRows, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListRowsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createRow(CreateRowRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Row) { - requests.add(request); - responseObserver.onNext(((Row) 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 CreateRow, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Row.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchCreateRows( - BatchCreateRowsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof BatchCreateRowsResponse) { - requests.add(request); - responseObserver.onNext(((BatchCreateRowsResponse) 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 BatchCreateRows, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - BatchCreateRowsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateRow(UpdateRowRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Row) { - requests.add(request); - responseObserver.onNext(((Row) 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 UpdateRow, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Row.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchUpdateRows( - BatchUpdateRowsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof BatchUpdateRowsResponse) { - requests.add(request); - responseObserver.onNext(((BatchUpdateRowsResponse) 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 BatchUpdateRows, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - BatchUpdateRowsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteRow(DeleteRowRequest 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 DeleteRow, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void batchDeleteRows( - BatchDeleteRowsRequest 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 BatchDeleteRows, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientHttpJsonTest.java b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientHttpJsonTest.java deleted file mode 100644 index cc5db353ccaa..000000000000 --- a/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientHttpJsonTest.java +++ /dev/null @@ -1,873 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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; - -import static com.google.area120.tables.v1alpha.TablesServiceClient.ListRowsPagedResponse; -import static com.google.area120.tables.v1alpha.TablesServiceClient.ListTablesPagedResponse; -import static com.google.area120.tables.v1alpha.TablesServiceClient.ListWorkspacesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.area120.tables.v1alpha.stub.HttpJsonTablesServiceStub; -import com.google.area120.tables.v1alpha1.BatchCreateRowsRequest; -import com.google.area120.tables.v1alpha1.BatchCreateRowsResponse; -import com.google.area120.tables.v1alpha1.BatchDeleteRowsRequest; -import com.google.area120.tables.v1alpha1.BatchUpdateRowsRequest; -import com.google.area120.tables.v1alpha1.BatchUpdateRowsResponse; -import com.google.area120.tables.v1alpha1.ColumnDescription; -import com.google.area120.tables.v1alpha1.CreateRowRequest; -import com.google.area120.tables.v1alpha1.ListRowsResponse; -import com.google.area120.tables.v1alpha1.ListTablesRequest; -import com.google.area120.tables.v1alpha1.ListTablesResponse; -import com.google.area120.tables.v1alpha1.ListWorkspacesRequest; -import com.google.area120.tables.v1alpha1.ListWorkspacesResponse; -import com.google.area120.tables.v1alpha1.Row; -import com.google.area120.tables.v1alpha1.RowName; -import com.google.area120.tables.v1alpha1.Table; -import com.google.area120.tables.v1alpha1.TableName; -import com.google.area120.tables.v1alpha1.UpdateRowRequest; -import com.google.area120.tables.v1alpha1.Workspace; -import com.google.area120.tables.v1alpha1.WorkspaceName; -import com.google.common.collect.Lists; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Value; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class TablesServiceClientHttpJsonTest { - private static MockHttpService mockService; - private static TablesServiceClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonTablesServiceStub.getMethodDescriptors(), - TablesServiceSettings.getDefaultEndpoint()); - TablesServiceSettings settings = - TablesServiceSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - TablesServiceSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = TablesServiceClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void getTableTest() throws Exception { - Table expectedResponse = - Table.newBuilder() - .setName(TableName.of("[TABLE]").toString()) - .setDisplayName("displayName1714148973") - .addAllColumns(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - TableName name = TableName.of("[TABLE]"); - - Table actualResponse = client.getTable(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 getTableExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TableName name = TableName.of("[TABLE]"); - client.getTable(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTableTest2() throws Exception { - Table expectedResponse = - Table.newBuilder() - .setName(TableName.of("[TABLE]").toString()) - .setDisplayName("displayName1714148973") - .addAllColumns(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "tables/table-2379"; - - Table actualResponse = client.getTable(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 getTableExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "tables/table-2379"; - client.getTable(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTablesTest() throws Exception { - Table responsesElement = Table.newBuilder().build(); - ListTablesResponse expectedResponse = - ListTablesResponse.newBuilder() - .setNextPageToken("") - .addAllTables(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - ListTablesRequest request = - ListTablesRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListTablesPagedResponse pagedListResponse = client.listTables(request); - - List
              resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTablesList().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 listTablesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ListTablesRequest request = - ListTablesRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listTables(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getWorkspaceTest() throws Exception { - Workspace expectedResponse = - Workspace.newBuilder() - .setName(WorkspaceName.of("[WORKSPACE]").toString()) - .setDisplayName("displayName1714148973") - .addAllTables(new ArrayList
              ()) - .build(); - mockService.addResponse(expectedResponse); - - WorkspaceName name = WorkspaceName.of("[WORKSPACE]"); - - Workspace actualResponse = client.getWorkspace(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 getWorkspaceExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - WorkspaceName name = WorkspaceName.of("[WORKSPACE]"); - client.getWorkspace(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getWorkspaceTest2() throws Exception { - Workspace expectedResponse = - Workspace.newBuilder() - .setName(WorkspaceName.of("[WORKSPACE]").toString()) - .setDisplayName("displayName1714148973") - .addAllTables(new ArrayList
              ()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "workspaces/workspace-1084"; - - Workspace actualResponse = client.getWorkspace(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 getWorkspaceExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "workspaces/workspace-1084"; - client.getWorkspace(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listWorkspacesTest() throws Exception { - Workspace responsesElement = Workspace.newBuilder().build(); - ListWorkspacesResponse expectedResponse = - ListWorkspacesResponse.newBuilder() - .setNextPageToken("") - .addAllWorkspaces(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - ListWorkspacesRequest request = - ListWorkspacesRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListWorkspacesPagedResponse pagedListResponse = client.listWorkspaces(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getWorkspacesList().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 listWorkspacesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ListWorkspacesRequest request = - ListWorkspacesRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listWorkspaces(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRowTest() throws Exception { - Row expectedResponse = - Row.newBuilder() - .setName(RowName.of("[TABLE]", "[ROW]").toString()) - .putAllValues(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - RowName name = RowName.of("[TABLE]", "[ROW]"); - - Row actualResponse = client.getRow(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 getRowExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RowName name = RowName.of("[TABLE]", "[ROW]"); - client.getRow(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRowTest2() throws Exception { - Row expectedResponse = - Row.newBuilder() - .setName(RowName.of("[TABLE]", "[ROW]").toString()) - .putAllValues(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "tables/table-4056/rows/row-4056"; - - Row actualResponse = client.getRow(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 getRowExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "tables/table-4056/rows/row-4056"; - client.getRow(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listRowsTest() throws Exception { - Row responsesElement = Row.newBuilder().build(); - ListRowsResponse expectedResponse = - ListRowsResponse.newBuilder() - .setNextPageToken("") - .addAllRows(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "tables/table-3978"; - - ListRowsPagedResponse pagedListResponse = client.listRows(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRowsList().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 listRowsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "tables/table-3978"; - client.listRows(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createRowTest() throws Exception { - Row expectedResponse = - Row.newBuilder() - .setName(RowName.of("[TABLE]", "[ROW]").toString()) - .putAllValues(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "tables/table-3978"; - Row row = Row.newBuilder().build(); - - Row actualResponse = client.createRow(parent, row); - 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 createRowExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "tables/table-3978"; - Row row = Row.newBuilder().build(); - client.createRow(parent, row); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchCreateRowsTest() throws Exception { - BatchCreateRowsResponse expectedResponse = - BatchCreateRowsResponse.newBuilder().addAllRows(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - BatchCreateRowsRequest request = - BatchCreateRowsRequest.newBuilder() - .setParent("tables/table-3978") - .addAllRequests(new ArrayList()) - .build(); - - BatchCreateRowsResponse actualResponse = client.batchCreateRows(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 batchCreateRowsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - BatchCreateRowsRequest request = - BatchCreateRowsRequest.newBuilder() - .setParent("tables/table-3978") - .addAllRequests(new ArrayList()) - .build(); - client.batchCreateRows(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateRowTest() throws Exception { - Row expectedResponse = - Row.newBuilder() - .setName(RowName.of("[TABLE]", "[ROW]").toString()) - .putAllValues(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - Row row = - Row.newBuilder() - .setName(RowName.of("[TABLE]", "[ROW]").toString()) - .putAllValues(new HashMap()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Row actualResponse = client.updateRow(row, 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 updateRowExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Row row = - Row.newBuilder() - .setName(RowName.of("[TABLE]", "[ROW]").toString()) - .putAllValues(new HashMap()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateRow(row, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchUpdateRowsTest() throws Exception { - BatchUpdateRowsResponse expectedResponse = - BatchUpdateRowsResponse.newBuilder().addAllRows(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - BatchUpdateRowsRequest request = - BatchUpdateRowsRequest.newBuilder() - .setParent("tables/table-3978") - .addAllRequests(new ArrayList()) - .build(); - - BatchUpdateRowsResponse actualResponse = client.batchUpdateRows(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 batchUpdateRowsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - BatchUpdateRowsRequest request = - BatchUpdateRowsRequest.newBuilder() - .setParent("tables/table-3978") - .addAllRequests(new ArrayList()) - .build(); - client.batchUpdateRows(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteRowTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - RowName name = RowName.of("[TABLE]", "[ROW]"); - - client.deleteRow(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 deleteRowExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RowName name = RowName.of("[TABLE]", "[ROW]"); - client.deleteRow(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteRowTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "tables/table-4056/rows/row-4056"; - - client.deleteRow(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 deleteRowExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "tables/table-4056/rows/row-4056"; - client.deleteRow(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchDeleteRowsTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - BatchDeleteRowsRequest request = - BatchDeleteRowsRequest.newBuilder() - .setParent(TableName.of("[TABLE]").toString()) - .addAllNames(new ArrayList()) - .build(); - - client.batchDeleteRows(request); - - 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 batchDeleteRowsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - BatchDeleteRowsRequest request = - BatchDeleteRowsRequest.newBuilder() - .setParent(TableName.of("[TABLE]").toString()) - .addAllNames(new ArrayList()) - .build(); - client.batchDeleteRows(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientTest.java b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientTest.java deleted file mode 100644 index ef189c621231..000000000000 --- a/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientTest.java +++ /dev/null @@ -1,784 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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; - -import static com.google.area120.tables.v1alpha.TablesServiceClient.ListRowsPagedResponse; -import static com.google.area120.tables.v1alpha.TablesServiceClient.ListTablesPagedResponse; -import static com.google.area120.tables.v1alpha.TablesServiceClient.ListWorkspacesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -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.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.area120.tables.v1alpha1.BatchCreateRowsRequest; -import com.google.area120.tables.v1alpha1.BatchCreateRowsResponse; -import com.google.area120.tables.v1alpha1.BatchDeleteRowsRequest; -import com.google.area120.tables.v1alpha1.BatchUpdateRowsRequest; -import com.google.area120.tables.v1alpha1.BatchUpdateRowsResponse; -import com.google.area120.tables.v1alpha1.ColumnDescription; -import com.google.area120.tables.v1alpha1.CreateRowRequest; -import com.google.area120.tables.v1alpha1.DeleteRowRequest; -import com.google.area120.tables.v1alpha1.GetRowRequest; -import com.google.area120.tables.v1alpha1.GetTableRequest; -import com.google.area120.tables.v1alpha1.GetWorkspaceRequest; -import com.google.area120.tables.v1alpha1.ListRowsRequest; -import com.google.area120.tables.v1alpha1.ListRowsResponse; -import com.google.area120.tables.v1alpha1.ListTablesRequest; -import com.google.area120.tables.v1alpha1.ListTablesResponse; -import com.google.area120.tables.v1alpha1.ListWorkspacesRequest; -import com.google.area120.tables.v1alpha1.ListWorkspacesResponse; -import com.google.area120.tables.v1alpha1.Row; -import com.google.area120.tables.v1alpha1.RowName; -import com.google.area120.tables.v1alpha1.Table; -import com.google.area120.tables.v1alpha1.TableName; -import com.google.area120.tables.v1alpha1.UpdateRowRequest; -import com.google.area120.tables.v1alpha1.Workspace; -import com.google.area120.tables.v1alpha1.WorkspaceName; -import com.google.common.collect.Lists; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Value; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import java.util.UUID; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class TablesServiceClientTest { - private static MockServiceHelper mockServiceHelper; - private static MockTablesService mockTablesService; - private LocalChannelProvider channelProvider; - private TablesServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockTablesService = new MockTablesService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockTablesService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - TablesServiceSettings settings = - TablesServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = TablesServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void getTableTest() throws Exception { - Table expectedResponse = - Table.newBuilder() - .setName(TableName.of("[TABLE]").toString()) - .setDisplayName("displayName1714148973") - .addAllColumns(new ArrayList()) - .build(); - mockTablesService.addResponse(expectedResponse); - - TableName name = TableName.of("[TABLE]"); - - Table actualResponse = client.getTable(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTablesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTableRequest actualRequest = ((GetTableRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTableExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTablesService.addException(exception); - - try { - TableName name = TableName.of("[TABLE]"); - client.getTable(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTableTest2() throws Exception { - Table expectedResponse = - Table.newBuilder() - .setName(TableName.of("[TABLE]").toString()) - .setDisplayName("displayName1714148973") - .addAllColumns(new ArrayList()) - .build(); - mockTablesService.addResponse(expectedResponse); - - String name = "name3373707"; - - Table actualResponse = client.getTable(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTablesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTableRequest actualRequest = ((GetTableRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTableExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTablesService.addException(exception); - - try { - String name = "name3373707"; - client.getTable(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTablesTest() throws Exception { - Table responsesElement = Table.newBuilder().build(); - ListTablesResponse expectedResponse = - ListTablesResponse.newBuilder() - .setNextPageToken("") - .addAllTables(Arrays.asList(responsesElement)) - .build(); - mockTablesService.addResponse(expectedResponse); - - ListTablesRequest request = - ListTablesRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListTablesPagedResponse pagedListResponse = client.listTables(request); - - List
              resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTablesList().get(0), resources.get(0)); - - List actualRequests = mockTablesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTablesRequest actualRequest = ((ListTablesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTablesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTablesService.addException(exception); - - try { - ListTablesRequest request = - ListTablesRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listTables(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getWorkspaceTest() throws Exception { - Workspace expectedResponse = - Workspace.newBuilder() - .setName(WorkspaceName.of("[WORKSPACE]").toString()) - .setDisplayName("displayName1714148973") - .addAllTables(new ArrayList
              ()) - .build(); - mockTablesService.addResponse(expectedResponse); - - WorkspaceName name = WorkspaceName.of("[WORKSPACE]"); - - Workspace actualResponse = client.getWorkspace(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTablesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetWorkspaceRequest actualRequest = ((GetWorkspaceRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getWorkspaceExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTablesService.addException(exception); - - try { - WorkspaceName name = WorkspaceName.of("[WORKSPACE]"); - client.getWorkspace(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getWorkspaceTest2() throws Exception { - Workspace expectedResponse = - Workspace.newBuilder() - .setName(WorkspaceName.of("[WORKSPACE]").toString()) - .setDisplayName("displayName1714148973") - .addAllTables(new ArrayList
              ()) - .build(); - mockTablesService.addResponse(expectedResponse); - - String name = "name3373707"; - - Workspace actualResponse = client.getWorkspace(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTablesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetWorkspaceRequest actualRequest = ((GetWorkspaceRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getWorkspaceExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTablesService.addException(exception); - - try { - String name = "name3373707"; - client.getWorkspace(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listWorkspacesTest() throws Exception { - Workspace responsesElement = Workspace.newBuilder().build(); - ListWorkspacesResponse expectedResponse = - ListWorkspacesResponse.newBuilder() - .setNextPageToken("") - .addAllWorkspaces(Arrays.asList(responsesElement)) - .build(); - mockTablesService.addResponse(expectedResponse); - - ListWorkspacesRequest request = - ListWorkspacesRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListWorkspacesPagedResponse pagedListResponse = client.listWorkspaces(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getWorkspacesList().get(0), resources.get(0)); - - List actualRequests = mockTablesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListWorkspacesRequest actualRequest = ((ListWorkspacesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listWorkspacesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTablesService.addException(exception); - - try { - ListWorkspacesRequest request = - ListWorkspacesRequest.newBuilder() - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listWorkspaces(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRowTest() throws Exception { - Row expectedResponse = - Row.newBuilder() - .setName(RowName.of("[TABLE]", "[ROW]").toString()) - .putAllValues(new HashMap()) - .build(); - mockTablesService.addResponse(expectedResponse); - - RowName name = RowName.of("[TABLE]", "[ROW]"); - - Row actualResponse = client.getRow(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTablesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetRowRequest actualRequest = ((GetRowRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getRowExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTablesService.addException(exception); - - try { - RowName name = RowName.of("[TABLE]", "[ROW]"); - client.getRow(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRowTest2() throws Exception { - Row expectedResponse = - Row.newBuilder() - .setName(RowName.of("[TABLE]", "[ROW]").toString()) - .putAllValues(new HashMap()) - .build(); - mockTablesService.addResponse(expectedResponse); - - String name = "name3373707"; - - Row actualResponse = client.getRow(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTablesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetRowRequest actualRequest = ((GetRowRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getRowExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTablesService.addException(exception); - - try { - String name = "name3373707"; - client.getRow(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listRowsTest() throws Exception { - Row responsesElement = Row.newBuilder().build(); - ListRowsResponse expectedResponse = - ListRowsResponse.newBuilder() - .setNextPageToken("") - .addAllRows(Arrays.asList(responsesElement)) - .build(); - mockTablesService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListRowsPagedResponse pagedListResponse = client.listRows(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRowsList().get(0), resources.get(0)); - - List actualRequests = mockTablesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListRowsRequest actualRequest = ((ListRowsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listRowsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTablesService.addException(exception); - - try { - String parent = "parent-995424086"; - client.listRows(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createRowTest() throws Exception { - Row expectedResponse = - Row.newBuilder() - .setName(RowName.of("[TABLE]", "[ROW]").toString()) - .putAllValues(new HashMap()) - .build(); - mockTablesService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Row row = Row.newBuilder().build(); - - Row actualResponse = client.createRow(parent, row); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTablesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateRowRequest actualRequest = ((CreateRowRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(row, actualRequest.getRow()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createRowExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTablesService.addException(exception); - - try { - String parent = "parent-995424086"; - Row row = Row.newBuilder().build(); - client.createRow(parent, row); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchCreateRowsTest() throws Exception { - BatchCreateRowsResponse expectedResponse = - BatchCreateRowsResponse.newBuilder().addAllRows(new ArrayList()).build(); - mockTablesService.addResponse(expectedResponse); - - BatchCreateRowsRequest request = - BatchCreateRowsRequest.newBuilder() - .setParent("parent-995424086") - .addAllRequests(new ArrayList()) - .build(); - - BatchCreateRowsResponse actualResponse = client.batchCreateRows(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTablesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchCreateRowsRequest actualRequest = ((BatchCreateRowsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchCreateRowsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTablesService.addException(exception); - - try { - BatchCreateRowsRequest request = - BatchCreateRowsRequest.newBuilder() - .setParent("parent-995424086") - .addAllRequests(new ArrayList()) - .build(); - client.batchCreateRows(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateRowTest() throws Exception { - Row expectedResponse = - Row.newBuilder() - .setName(RowName.of("[TABLE]", "[ROW]").toString()) - .putAllValues(new HashMap()) - .build(); - mockTablesService.addResponse(expectedResponse); - - Row row = Row.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Row actualResponse = client.updateRow(row, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTablesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateRowRequest actualRequest = ((UpdateRowRequest) actualRequests.get(0)); - - Assert.assertEquals(row, actualRequest.getRow()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateRowExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTablesService.addException(exception); - - try { - Row row = Row.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateRow(row, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchUpdateRowsTest() throws Exception { - BatchUpdateRowsResponse expectedResponse = - BatchUpdateRowsResponse.newBuilder().addAllRows(new ArrayList()).build(); - mockTablesService.addResponse(expectedResponse); - - BatchUpdateRowsRequest request = - BatchUpdateRowsRequest.newBuilder() - .setParent("parent-995424086") - .addAllRequests(new ArrayList()) - .build(); - - BatchUpdateRowsResponse actualResponse = client.batchUpdateRows(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTablesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchUpdateRowsRequest actualRequest = ((BatchUpdateRowsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchUpdateRowsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTablesService.addException(exception); - - try { - BatchUpdateRowsRequest request = - BatchUpdateRowsRequest.newBuilder() - .setParent("parent-995424086") - .addAllRequests(new ArrayList()) - .build(); - client.batchUpdateRows(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteRowTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockTablesService.addResponse(expectedResponse); - - RowName name = RowName.of("[TABLE]", "[ROW]"); - - client.deleteRow(name); - - List actualRequests = mockTablesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteRowRequest actualRequest = ((DeleteRowRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteRowExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTablesService.addException(exception); - - try { - RowName name = RowName.of("[TABLE]", "[ROW]"); - client.deleteRow(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteRowTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockTablesService.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteRow(name); - - List actualRequests = mockTablesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteRowRequest actualRequest = ((DeleteRowRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteRowExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTablesService.addException(exception); - - try { - String name = "name3373707"; - client.deleteRow(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchDeleteRowsTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockTablesService.addResponse(expectedResponse); - - BatchDeleteRowsRequest request = - BatchDeleteRowsRequest.newBuilder() - .setParent(TableName.of("[TABLE]").toString()) - .addAllNames(new ArrayList()) - .build(); - - client.batchDeleteRows(request); - - List actualRequests = mockTablesService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchDeleteRowsRequest actualRequest = ((BatchDeleteRowsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getNamesList(), actualRequest.getNamesList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchDeleteRowsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTablesService.addException(exception); - - try { - BatchDeleteRowsRequest request = - BatchDeleteRowsRequest.newBuilder() - .setParent(TableName.of("[TABLE]").toString()) - .addAllNames(new ArrayList()) - .build(); - client.batchDeleteRows(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-artifact-registry/.OwlBot-hermetic.yaml b/java-artifact-registry/.OwlBot-hermetic.yaml index 064792d99ac9..7f9ba0dc7c2d 100644 --- a/java-artifact-registry/.OwlBot-hermetic.yaml +++ b/java-artifact-registry/.OwlBot-hermetic.yaml @@ -16,7 +16,10 @@ deep-remove-regex: - "/java-artifact-registry/grpc-google-.*/src" - "/java-artifact-registry/proto-google-.*/src" -- "/java-artifact-registry/google-.*/src" +- "/java-artifact-registry/google-.*/src/main" +- "/java-artifact-registry/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-artifact-registry/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-artifact-registry/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-artifact-registry/samples/snippets/generated" deep-preserve-regex: @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-artifact-registry/$1/proto-google-cloud-artifact-registry-$1/src" - source: "/google/devtools/artifactregistry/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-artifact-registry/$1/grpc-google-cloud-artifact-registry-$1/src" -- source: "/google/devtools/artifactregistry/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-artifact-registry/$1/google-cloud-artifact-registry/src" +- source: "/google/devtools/artifactregistry/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-artifact-registry/$1/google-cloud-artifact-registry/src/main" - source: "/google/devtools/artifactregistry/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-artifact-registry/$1/samples/snippets/generated" diff --git a/java-asset/.OwlBot-hermetic.yaml b/java-asset/.OwlBot-hermetic.yaml index 46f8c9bee784..0b7a7c5b85ab 100644 --- a/java-asset/.OwlBot-hermetic.yaml +++ b/java-asset/.OwlBot-hermetic.yaml @@ -17,12 +17,15 @@ deep-remove-regex: - "/java-asset/samples/snippets/generated" - "/java-asset/grpc-google-.*/src" - "/java-asset/proto-google-.*/src" -- "/java-asset/google-.*/src" +- "/java-asset/google-.*/src/main" +- "/java-asset/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-asset/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-asset/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-.*/src/test/java/com/google/cloud/.*/it" -- "/.*google-cloud-asset/src/test/java/com/google/cloud/asset/v1/VPCServiceControlTest.java" +- "/.*google-cloud-.*/src/test/java/com/google/.*/it" +- "/.*google-cloud-asset/src/test/java/com/google/.*/asset/v1/VPCServiceControlTest.java" - "/.*proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ProjectName.java" deep-copy-regex: @@ -30,8 +33,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-asset/$1/proto-google-cloud-asset-$1/src" - source: "/google/cloud/asset/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-asset/$1/grpc-google-cloud-asset-$1/src" -- source: "/google/cloud/asset/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-asset/$1/google-cloud-asset/src" +- source: "/google/cloud/asset/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-asset/$1/google-cloud-asset/src/main" - source: "/google/cloud/asset/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-asset/$1/samples/snippets/generated" diff --git a/java-assured-workloads/.OwlBot-hermetic.yaml b/java-assured-workloads/.OwlBot-hermetic.yaml index 4ae7d7469586..fa911e4ddf1f 100644 --- a/java-assured-workloads/.OwlBot-hermetic.yaml +++ b/java-assured-workloads/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-assured-workloads/samples/snippets/generated" - "/java-assured-workloads/grpc-google-.*/src" - "/java-assured-workloads/proto-google-.*/src" -- "/java-assured-workloads/google-.*/src" +- "/java-assured-workloads/google-.*/src/main" +- "/java-assured-workloads/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-assured-workloads/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-assured-workloads/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-assured-workloads/$1/proto-google-cloud-assured-workloads-$1/src" - source: "/google/cloud/assuredworkloads/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-assured-workloads/$1/grpc-google-cloud-assured-workloads-$1/src" -- source: "/google/cloud/assuredworkloads/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-assured-workloads/$1/google-cloud-assured-workloads/src" +- source: "/google/cloud/assuredworkloads/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-assured-workloads/$1/google-cloud-assured-workloads/src/main" - source: "/google/cloud/assuredworkloads/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-assured-workloads/$1/samples/snippets/generated" diff --git a/java-auditmanager/.OwlBot-hermetic.yaml b/java-auditmanager/.OwlBot-hermetic.yaml index 026473f06cf3..6013a7ecb949 100644 --- a/java-auditmanager/.OwlBot-hermetic.yaml +++ b/java-auditmanager/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-auditmanager/grpc-google-.*/src" - "/java-auditmanager/proto-google-.*/src" -- "/java-auditmanager/google-.*/src" +- "/java-auditmanager/google-.*/src/main" +- "/java-auditmanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-auditmanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-auditmanager/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-auditmanager/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/auditmanager/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-auditmanager/$1/proto-google-cloud-auditmanager-$1/src" - source: "/google/cloud/auditmanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-auditmanager/$1/grpc-google-cloud-auditmanager-$1/src" -- source: "/google/cloud/auditmanager/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-auditmanager/$1/google-cloud-auditmanager/src" +- source: "/google/cloud/auditmanager/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-auditmanager/$1/google-cloud-auditmanager/src/main" - source: "/google/cloud/auditmanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-auditmanager/$1/samples/snippets/generated" diff --git a/java-automl/.OwlBot-hermetic.yaml b/java-automl/.OwlBot-hermetic.yaml index 0c39ec644cac..2a0afdb2f2d2 100644 --- a/java-automl/.OwlBot-hermetic.yaml +++ b/java-automl/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-automl/samples/snippets/generated" - "/java-automl/grpc-google-.*/src" - "/java-automl/proto-google-.*/src" -- "/java-automl/google-.*/src" +- "/java-automl/google-.*/src/main" +- "/java-automl/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-automl/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-automl/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-automl/$1/proto-google-cloud-automl-$1/src" - source: "/google/cloud/automl/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-automl/$1/grpc-google-cloud-automl-$1/src" -- source: "/google/cloud/automl/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-automl/$1/google-cloud-automl/src" +- source: "/google/cloud/automl/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-automl/$1/google-cloud-automl/src/main" - source: "/google/cloud/automl/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-automl/$1/samples/snippets/generated" diff --git a/java-backstory/.OwlBot-hermetic.yaml b/java-backstory/.OwlBot-hermetic.yaml index 0f5259ed6710..af06658e9554 100644 --- a/java-backstory/.OwlBot-hermetic.yaml +++ b/java-backstory/.OwlBot-hermetic.yaml @@ -16,19 +16,20 @@ deep-remove-regex: - "/java-backstory/grpc-google-.*/src" - "/java-backstory/proto-google-.*/src" -- "/java-backstory/google-.*/src" +- "/java-backstory/google-.*/src/main" +- "/java-backstory/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-backstory/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-backstory/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-backstory/samples/snippets/generated" deep-preserve-regex: -- "/java-backstory/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/backstory/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-backstory/proto-google-cloud-backstory/src" - source: "/backstory/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-backstory/grpc-google-cloud-backstory/src" -- source: "/backstory/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-backstory/google-cloud-backstory/src" +- source: "/backstory/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-backstory/google-cloud-backstory/src/main" - source: "/backstory/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-backstory/samples/snippets/generated" diff --git a/java-backupdr/.OwlBot-hermetic.yaml b/java-backupdr/.OwlBot-hermetic.yaml index ba649a8c91cf..e61117b2b93b 100644 --- a/java-backupdr/.OwlBot-hermetic.yaml +++ b/java-backupdr/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-backupdr/grpc-google-.*/src" - "/java-backupdr/proto-google-.*/src" -- "/java-backupdr/google-.*/src" +- "/java-backupdr/google-.*/src/main" +- "/java-backupdr/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-backupdr/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-backupdr/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-backupdr/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/backupdr/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-backupdr/$1/proto-google-cloud-backupdr-$1/src" - source: "/google/cloud/backupdr/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-backupdr/$1/grpc-google-cloud-backupdr-$1/src" -- source: "/google/cloud/backupdr/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-backupdr/$1/google-cloud-backupdr/src" +- source: "/google/cloud/backupdr/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-backupdr/$1/google-cloud-backupdr/src/main" - source: "/google/cloud/backupdr/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-backupdr/$1/samples/snippets/generated" diff --git a/java-bare-metal-solution/.OwlBot-hermetic.yaml b/java-bare-metal-solution/.OwlBot-hermetic.yaml index 7c4b212a734d..97c7a33ff2db 100644 --- a/java-bare-metal-solution/.OwlBot-hermetic.yaml +++ b/java-bare-metal-solution/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-bare-metal-solution/samples/snippets/generated" - "/java-bare-metal-solution/grpc-google-.*/src" - "/java-bare-metal-solution/proto-google-.*/src" -- "/java-bare-metal-solution/google-.*/src" +- "/java-bare-metal-solution/google-.*/src/main" +- "/java-bare-metal-solution/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-bare-metal-solution/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-bare-metal-solution/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/baremetalsolution/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-bare-metal-solution/$1/proto-google-cloud-bare-metal-solution-$1/src" - source: "/google/cloud/baremetalsolution/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-bare-metal-solution/$1/grpc-google-cloud-bare-metal-solution-$1/src" -- source: "/google/cloud/baremetalsolution/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-bare-metal-solution/$1/google-cloud-bare-metal-solution/src" +- source: "/google/cloud/baremetalsolution/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-bare-metal-solution/$1/google-cloud-bare-metal-solution/src/main" - source: "/google/cloud/baremetalsolution/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-bare-metal-solution/$1/samples/snippets/generated" diff --git a/java-batch/.OwlBot-hermetic.yaml b/java-batch/.OwlBot-hermetic.yaml index 2a81fdedf9f2..22c8b1ad18ed 100644 --- a/java-batch/.OwlBot-hermetic.yaml +++ b/java-batch/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-batch/grpc-google-.*/src" - "/java-batch/proto-google-.*/src" -- "/java-batch/google-.*/src" +- "/java-batch/google-.*/src/main" +- "/java-batch/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-batch/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-batch/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-batch/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/batch/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-batch/$1/proto-google-cloud-batch-$1/src" - source: "/google/cloud/batch/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-batch/$1/grpc-google-cloud-batch-$1/src" -- source: "/google/cloud/batch/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-batch/$1/google-cloud-batch/src" +- source: "/google/cloud/batch/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-batch/$1/google-cloud-batch/src/main" - source: "/google/cloud/batch/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-batch/$1/samples/snippets/generated" diff --git a/java-beyondcorp-appconnections/.OwlBot-hermetic.yaml b/java-beyondcorp-appconnections/.OwlBot-hermetic.yaml index 86bae36e4272..c42b0a47b493 100644 --- a/java-beyondcorp-appconnections/.OwlBot-hermetic.yaml +++ b/java-beyondcorp-appconnections/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-beyondcorp-appconnections/grpc-google-.*/src" - "/java-beyondcorp-appconnections/proto-google-.*/src" -- "/java-beyondcorp-appconnections/google-.*/src" +- "/java-beyondcorp-appconnections/google-.*/src/main" +- "/java-beyondcorp-appconnections/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-beyondcorp-appconnections/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-beyondcorp-appconnections/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-beyondcorp-appconnections/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/beyondcorp/appconnections/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-appconnections/$1/proto-google-cloud-beyondcorp-appconnections-$1/src" - source: "/google/cloud/beyondcorp/appconnections/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-appconnections/$1/grpc-google-cloud-beyondcorp-appconnections-$1/src" -- source: "/google/cloud/beyondcorp/appconnections/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-beyondcorp-appconnections/$1/google-cloud-beyondcorp-appconnections/src" +- source: "/google/cloud/beyondcorp/appconnections/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-beyondcorp-appconnections/$1/google-cloud-beyondcorp-appconnections/src/main" - source: "/google/cloud/beyondcorp/appconnections/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-beyondcorp-appconnections/$1/samples/snippets/generated" diff --git a/java-beyondcorp-appconnectors/.OwlBot-hermetic.yaml b/java-beyondcorp-appconnectors/.OwlBot-hermetic.yaml index 6f98f29fe8a5..23aade4fbeb2 100644 --- a/java-beyondcorp-appconnectors/.OwlBot-hermetic.yaml +++ b/java-beyondcorp-appconnectors/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-beyondcorp-appconnectors/grpc-google-.*/src" - "/java-beyondcorp-appconnectors/proto-google-.*/src" -- "/java-beyondcorp-appconnectors/google-.*/src" +- "/java-beyondcorp-appconnectors/google-.*/src/main" +- "/java-beyondcorp-appconnectors/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-beyondcorp-appconnectors/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-beyondcorp-appconnectors/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-beyondcorp-appconnectors/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/beyondcorp/appconnectors/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-appconnectors/$1/proto-google-cloud-beyondcorp-appconnectors-$1/src" - source: "/google/cloud/beyondcorp/appconnectors/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-appconnectors/$1/grpc-google-cloud-beyondcorp-appconnectors-$1/src" -- source: "/google/cloud/beyondcorp/appconnectors/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-beyondcorp-appconnectors/$1/google-cloud-beyondcorp-appconnectors/src" +- source: "/google/cloud/beyondcorp/appconnectors/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-beyondcorp-appconnectors/$1/google-cloud-beyondcorp-appconnectors/src/main" - source: "/google/cloud/beyondcorp/appconnectors/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-beyondcorp-appconnectors/$1/samples/snippets/generated" diff --git a/java-beyondcorp-appgateways/.OwlBot-hermetic.yaml b/java-beyondcorp-appgateways/.OwlBot-hermetic.yaml index fff966a5f049..ae803c297d4b 100644 --- a/java-beyondcorp-appgateways/.OwlBot-hermetic.yaml +++ b/java-beyondcorp-appgateways/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-beyondcorp-appgateways/grpc-google-.*/src" - "/java-beyondcorp-appgateways/proto-google-.*/src" -- "/java-beyondcorp-appgateways/google-.*/src" +- "/java-beyondcorp-appgateways/google-.*/src/main" +- "/java-beyondcorp-appgateways/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-beyondcorp-appgateways/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-beyondcorp-appgateways/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-beyondcorp-appgateways/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/beyondcorp/appgateways/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-appgateways/$1/proto-google-cloud-beyondcorp-appgateways-$1/src" - source: "/google/cloud/beyondcorp/appgateways/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-appgateways/$1/grpc-google-cloud-beyondcorp-appgateways-$1/src" -- source: "/google/cloud/beyondcorp/appgateways/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-beyondcorp-appgateways/$1/google-cloud-beyondcorp-appgateways/src" +- source: "/google/cloud/beyondcorp/appgateways/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-beyondcorp-appgateways/$1/google-cloud-beyondcorp-appgateways/src/main" - source: "/google/cloud/beyondcorp/appgateways/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-beyondcorp-appgateways/$1/samples/snippets/generated" diff --git a/java-beyondcorp-clientconnectorservices/.OwlBot-hermetic.yaml b/java-beyondcorp-clientconnectorservices/.OwlBot-hermetic.yaml index 948ce1b9f5fd..234121a74384 100644 --- a/java-beyondcorp-clientconnectorservices/.OwlBot-hermetic.yaml +++ b/java-beyondcorp-clientconnectorservices/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-beyondcorp-clientconnectorservices/grpc-google-.*/src" - "/java-beyondcorp-clientconnectorservices/proto-google-.*/src" -- "/java-beyondcorp-clientconnectorservices/google-.*/src" +- "/java-beyondcorp-clientconnectorservices/google-.*/src/main" +- "/java-beyondcorp-clientconnectorservices/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-beyondcorp-clientconnectorservices/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-beyondcorp-clientconnectorservices/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-beyondcorp-clientconnectorservices/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/beyondcorp/clientconnectorservices/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-clientconnectorservices/$1/proto-google-cloud-beyondcorp-clientconnectorservices-$1/src" - source: "/google/cloud/beyondcorp/clientconnectorservices/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-clientconnectorservices/$1/grpc-google-cloud-beyondcorp-clientconnectorservices-$1/src" -- source: "/google/cloud/beyondcorp/clientconnectorservices/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-beyondcorp-clientconnectorservices/$1/google-cloud-beyondcorp-clientconnectorservices/src" +- source: "/google/cloud/beyondcorp/clientconnectorservices/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-beyondcorp-clientconnectorservices/$1/google-cloud-beyondcorp-clientconnectorservices/src/main" - source: "/google/cloud/beyondcorp/clientconnectorservices/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-beyondcorp-clientconnectorservices/$1/samples/snippets/generated" diff --git a/java-beyondcorp-clientgateways/.OwlBot-hermetic.yaml b/java-beyondcorp-clientgateways/.OwlBot-hermetic.yaml index 6957323522d7..0c3466eea465 100644 --- a/java-beyondcorp-clientgateways/.OwlBot-hermetic.yaml +++ b/java-beyondcorp-clientgateways/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-beyondcorp-clientgateways/grpc-google-.*/src" - "/java-beyondcorp-clientgateways/proto-google-.*/src" -- "/java-beyondcorp-clientgateways/google-.*/src" +- "/java-beyondcorp-clientgateways/google-.*/src/main" +- "/java-beyondcorp-clientgateways/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-beyondcorp-clientgateways/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-beyondcorp-clientgateways/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-beyondcorp-clientgateways/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/beyondcorp/clientgateways/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-clientgateways/$1/proto-google-cloud-beyondcorp-clientgateways-$1/src" - source: "/google/cloud/beyondcorp/clientgateways/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-clientgateways/$1/grpc-google-cloud-beyondcorp-clientgateways-$1/src" -- source: "/google/cloud/beyondcorp/clientgateways/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-beyondcorp-clientgateways/$1/google-cloud-beyondcorp-clientgateways/src" +- source: "/google/cloud/beyondcorp/clientgateways/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-beyondcorp-clientgateways/$1/google-cloud-beyondcorp-clientgateways/src/main" - source: "/google/cloud/beyondcorp/clientgateways/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-beyondcorp-clientgateways/$1/samples/snippets/generated" diff --git a/java-biglake/.OwlBot-hermetic.yaml b/java-biglake/.OwlBot-hermetic.yaml index 10bf0a32e29f..c134b76bcccb 100644 --- a/java-biglake/.OwlBot-hermetic.yaml +++ b/java-biglake/.OwlBot-hermetic.yaml @@ -16,36 +16,37 @@ deep-remove-regex: - "/java-biglake/grpc-google-.*/src" - "/java-biglake/proto-google-.*/src" -- "/java-biglake/google-.*/src" +- "/java-biglake/google-.*/src/main" +- "/java-biglake/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-biglake/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-biglake/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-biglake/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/bigquery/biglake/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-biglake/$1/proto-google-cloud-biglake-$1/src" - source: "/google/cloud/bigquery/biglake/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-biglake/$1/grpc-google-cloud-biglake-$1/src" -- source: "/google/cloud/bigquery/biglake/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-biglake/$1/google-cloud-biglake/src" +- source: "/google/cloud/bigquery/biglake/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-biglake/$1/google-cloud-biglake/src/main" - source: "/google/cloud/bigquery/biglake/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-biglake/$1/samples/snippets/generated" - source: "/google/cloud/biglake/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-biglake/$1/proto-google-cloud-biglake-$1/src" - source: "/google/cloud/biglake/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-biglake/$1/grpc-google-cloud-biglake-$1/src" -- source: "/google/cloud/biglake/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-biglake/$1/google-cloud-biglake/src" +- source: "/google/cloud/biglake/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-biglake/$1/google-cloud-biglake/src/main" - source: "/google/cloud/biglake/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-biglake/$1/samples/snippets/generated" - source: "/google/cloud/biglake/hive/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-biglake/$1/proto-google-cloud-biglake-$1/src" - source: "/google/cloud/biglake/hive/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-biglake/$1/grpc-google-cloud-biglake-$1/src" -- source: "/google/cloud/biglake/hive/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-biglake/$1/google-cloud-biglake/src" +- source: "/google/cloud/biglake/hive/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-biglake/$1/google-cloud-biglake/src/main" - source: "/google/cloud/biglake/hive/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-biglake/$1/samples/snippets/generated" diff --git a/java-bigquery-data-exchange/.OwlBot-hermetic.yaml b/java-bigquery-data-exchange/.OwlBot-hermetic.yaml index 005fdb14c886..78b0459d7966 100644 --- a/java-bigquery-data-exchange/.OwlBot-hermetic.yaml +++ b/java-bigquery-data-exchange/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-bigquery-data-exchange/grpc-google-.*/src" - "/java-bigquery-data-exchange/proto-google-.*/src" -- "/java-bigquery-data-exchange/google-.*/src" +- "/java-bigquery-data-exchange/google-.*/src/main" +- "/java-bigquery-data-exchange/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-bigquery-data-exchange/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-bigquery-data-exchange/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-bigquery-data-exchange/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/bigquery/dataexchange/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-bigquery-data-exchange/$1/proto-google-cloud-bigquery-data-exchange-$1/src" - source: "/google/cloud/bigquery/dataexchange/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-bigquery-data-exchange/$1/grpc-google-cloud-bigquery-data-exchange-$1/src" -- source: "/google/cloud/bigquery/dataexchange/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-bigquery-data-exchange/$1/google-cloud-bigquery-data-exchange/src" +- source: "/google/cloud/bigquery/dataexchange/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-bigquery-data-exchange/$1/google-cloud-bigquery-data-exchange/src/main" - source: "/google/cloud/bigquery/dataexchange/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-bigquery-data-exchange/$1/samples/snippets/generated" diff --git a/java-bigqueryconnection/.OwlBot-hermetic.yaml b/java-bigqueryconnection/.OwlBot-hermetic.yaml index d6052c29351b..e98fd0c99c26 100644 --- a/java-bigqueryconnection/.OwlBot-hermetic.yaml +++ b/java-bigqueryconnection/.OwlBot-hermetic.yaml @@ -16,20 +16,23 @@ deep-remove-regex: - "/java-bigqueryconnection/grpc-google-.*/src" - "/java-bigqueryconnection/proto-google-.*/src" -- "/java-bigqueryconnection/google-.*/src" +- "/java-bigqueryconnection/google-.*/src/main" +- "/java-bigqueryconnection/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-bigqueryconnection/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-bigqueryconnection/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-bigqueryconnection/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v.*/it/ITSystemTest.java" +- "/.*google-cloud-bigqueryconnection/src/test/java/com/google/.*/bigqueryconnection/v.*/it/ITSystemTest.java" deep-copy-regex: - source: "/google/cloud/bigquery/connection/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-bigqueryconnection/$1/proto-google-cloud-bigqueryconnection-$1/src" - source: "/google/cloud/bigquery/connection/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-bigqueryconnection/$1/grpc-google-cloud-bigqueryconnection-$1/src" -- source: "/google/cloud/bigquery/connection/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-bigqueryconnection/$1/google-cloud-bigqueryconnection/src" +- source: "/google/cloud/bigquery/connection/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-bigqueryconnection/$1/google-cloud-bigqueryconnection/src/main" - source: "/google/cloud/bigquery/connection/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-bigqueryconnection/$1/samples/snippets/generated" diff --git a/java-bigquerydatapolicy/.OwlBot-hermetic.yaml b/java-bigquerydatapolicy/.OwlBot-hermetic.yaml index 898f10fa75bc..1238c65a2a65 100644 --- a/java-bigquerydatapolicy/.OwlBot-hermetic.yaml +++ b/java-bigquerydatapolicy/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-bigquerydatapolicy/grpc-google-.*/src" - "/java-bigquerydatapolicy/proto-google-.*/src" -- "/java-bigquerydatapolicy/google-.*/src" +- "/java-bigquerydatapolicy/google-.*/src/main" +- "/java-bigquerydatapolicy/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-bigquerydatapolicy/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-bigquerydatapolicy/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-bigquerydatapolicy/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/bigquery/datapolicies/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-bigquerydatapolicy/$1/proto-google-cloud-bigquerydatapolicy-$1/src" - source: "/google/cloud/bigquery/datapolicies/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-bigquerydatapolicy/$1/grpc-google-cloud-bigquerydatapolicy-$1/src" -- source: "/google/cloud/bigquery/datapolicies/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-bigquerydatapolicy/$1/google-cloud-bigquerydatapolicy/src" +- source: "/google/cloud/bigquery/datapolicies/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-bigquerydatapolicy/$1/google-cloud-bigquerydatapolicy/src/main" - source: "/google/cloud/bigquery/datapolicies/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-bigquerydatapolicy/$1/samples/snippets/generated" diff --git a/java-bigquerydatatransfer/.OwlBot-hermetic.yaml b/java-bigquerydatatransfer/.OwlBot-hermetic.yaml index c0bf7ba29614..c3124bbdd696 100644 --- a/java-bigquerydatatransfer/.OwlBot-hermetic.yaml +++ b/java-bigquerydatatransfer/.OwlBot-hermetic.yaml @@ -16,7 +16,10 @@ deep-remove-regex: - "/java-bigquerydatatransfer/grpc-google-.*/src" - "/java-bigquerydatatransfer/proto-google-.*/src" -- "/java-bigquerydatatransfer/google-.*/src" +- "/java-bigquerydatatransfer/google-.*/src/main" +- "/java-bigquerydatatransfer/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-bigquerydatatransfer/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-bigquerydatatransfer/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-bigquerydatatransfer/samples/snippets/generated" deep-preserve-regex: @@ -28,8 +31,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-bigquerydatatransfer/$1/proto-google-cloud-bigquerydatatransfer-$1/src" - source: "/google/cloud/bigquery/datatransfer/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-bigquerydatatransfer/$1/grpc-google-cloud-bigquerydatatransfer-$1/src" -- source: "/google/cloud/bigquery/datatransfer/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-bigquerydatatransfer/$1/google-cloud-bigquerydatatransfer/src" +- source: "/google/cloud/bigquery/datatransfer/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-bigquerydatatransfer/$1/google-cloud-bigquerydatatransfer/src/main" - source: "/google/cloud/bigquery/datatransfer/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-bigquerydatatransfer/$1/samples/snippets/generated" diff --git a/java-bigquerymigration/.OwlBot-hermetic.yaml b/java-bigquerymigration/.OwlBot-hermetic.yaml index baea5d9e7b20..c08d04a0f142 100644 --- a/java-bigquerymigration/.OwlBot-hermetic.yaml +++ b/java-bigquerymigration/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-bigquerymigration/grpc-google-.*/src" - "/java-bigquerymigration/proto-google-.*/src" -- "/java-bigquerymigration/google-.*/src" +- "/java-bigquerymigration/google-.*/src/main" +- "/java-bigquerymigration/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-bigquerymigration/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-bigquerymigration/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-bigquerymigration/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/bigquery/migration/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-bigquerymigration/$1/proto-google-cloud-bigquerymigration-$1/src" - source: "/google/cloud/bigquery/migration/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-bigquerymigration/$1/grpc-google-cloud-bigquerymigration-$1/src" -- source: "/google/cloud/bigquery/migration/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-bigquerymigration/$1/google-cloud-bigquerymigration/src" +- source: "/google/cloud/bigquery/migration/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-bigquerymigration/$1/google-cloud-bigquerymigration/src/main" - source: "/google/cloud/bigquery/migration/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-bigquerymigration/$1/samples/snippets/generated" diff --git a/java-bigqueryreservation/.OwlBot-hermetic.yaml b/java-bigqueryreservation/.OwlBot-hermetic.yaml index ba21b8d461a9..cd2da41ba7b1 100644 --- a/java-bigqueryreservation/.OwlBot-hermetic.yaml +++ b/java-bigqueryreservation/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-bigqueryreservation/grpc-google-.*/src" - "/java-bigqueryreservation/proto-google-.*/src" -- "/java-bigqueryreservation/google-.*/src" +- "/java-bigqueryreservation/google-.*/src/main" +- "/java-bigqueryreservation/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-bigqueryreservation/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-bigqueryreservation/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-bigqueryreservation/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/bigquery/reservation/(v\\d)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-bigqueryreservation/$1/proto-google-cloud-bigqueryreservation-$1/src" - source: "/google/cloud/bigquery/reservation/(v\\d)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-bigqueryreservation/$1/grpc-google-cloud-bigqueryreservation-$1/src" -- source: "/google/cloud/bigquery/reservation/(v\\d)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-bigqueryreservation/$1/google-cloud-bigqueryreservation/src" +- source: "/google/cloud/bigquery/reservation/(v\\d)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-bigqueryreservation/$1/google-cloud-bigqueryreservation/src/main" - source: "/google/cloud/bigquery/reservation/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-bigqueryreservation/$1/samples/snippets/generated" diff --git a/java-billing/.OwlBot-hermetic.yaml b/java-billing/.OwlBot-hermetic.yaml index 1a8f34f3d240..b10e441a274d 100644 --- a/java-billing/.OwlBot-hermetic.yaml +++ b/java-billing/.OwlBot-hermetic.yaml @@ -14,7 +14,7 @@ deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java" +- "/.*google-cloud-billing/src/test/java/com/google/.*/billing/v1/CloudBillingClientHttpJsonTest.java" deep-remove-regex: - "/.*samples/snippets/generated" @@ -27,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-billing/$1/proto-google-cloud-billing-$1/src" - source: "/google/cloud/billing/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-billing/$1/grpc-google-cloud-billing-$1/src" -- source: "/google/cloud/billing/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-billing/$1/google-cloud-billing/src" +- source: "/google/cloud/billing/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-billing/$1/google-cloud-billing/src/main" - source: "/google/cloud/billing/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-billing/$1/samples/snippets/generated" diff --git a/java-billingbudgets/.OwlBot-hermetic.yaml b/java-billingbudgets/.OwlBot-hermetic.yaml index 631ac7657913..94a1eec50c8d 100644 --- a/java-billingbudgets/.OwlBot-hermetic.yaml +++ b/java-billingbudgets/.OwlBot-hermetic.yaml @@ -16,7 +16,10 @@ deep-remove-regex: - "/java-billingbudgets/grpc-google-.*/src" - "/java-billingbudgets/proto-google-.*/src" -- "/java-billingbudgets/google-.*/src" +- "/java-billingbudgets/google-.*/src/main" +- "/java-billingbudgets/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-billingbudgets/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-billingbudgets/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-billingbudgets/samples/snippets/generated" deep-preserve-regex: @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-billingbudgets/$1/proto-google-cloud-billingbudgets-$1/src" - source: "/google/cloud/billing/budgets/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-billingbudgets/$1/grpc-google-cloud-billingbudgets-$1/src" -- source: "/google/cloud/billing/budgets/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-billingbudgets/$1/google-cloud-billingbudgets/src" +- source: "/google/cloud/billing/budgets/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-billingbudgets/$1/google-cloud-billingbudgets/src/main" - source: "/google/cloud/billing/budgets/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-billingbudgets/$1/samples/snippets/generated" diff --git a/java-binary-authorization/.OwlBot-hermetic.yaml b/java-binary-authorization/.OwlBot-hermetic.yaml index 183a5108d700..0d64af8bb3cf 100644 --- a/java-binary-authorization/.OwlBot-hermetic.yaml +++ b/java-binary-authorization/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-binary-authorization/samples/snippets/generated" - "/java-binary-authorization/grpc-google-.*/src" - "/java-binary-authorization/proto-google-.*/src" -- "/java-binary-authorization/google-.*/src" +- "/java-binary-authorization/google-.*/src/main" +- "/java-binary-authorization/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-binary-authorization/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-binary-authorization/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-binary-authorization/$1/proto-google-cloud-binary-authorization-$1/src" - source: "/google/cloud/binaryauthorization/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-binary-authorization/$1/grpc-google-cloud-binary-authorization-$1/src" -- source: "/google/cloud/binaryauthorization/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-binary-authorization/$1/google-cloud-binary-authorization/src" +- source: "/google/cloud/binaryauthorization/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-binary-authorization/$1/google-cloud-binary-authorization/src/main" - source: "/google/cloud/binaryauthorization/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-binary-authorization/$1/samples/snippets/generated" diff --git a/java-capacityplanner/.OwlBot-hermetic.yaml b/java-capacityplanner/.OwlBot-hermetic.yaml index bcb7c405fdc9..58d1a917b29e 100644 --- a/java-capacityplanner/.OwlBot-hermetic.yaml +++ b/java-capacityplanner/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-capacityplanner/grpc-google-.*/src" - "/java-capacityplanner/proto-google-.*/src" -- "/java-capacityplanner/google-.*/src" +- "/java-capacityplanner/google-.*/src/main" +- "/java-capacityplanner/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-capacityplanner/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-capacityplanner/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-capacityplanner/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/capacityplanner/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-capacityplanner/$1/proto-google-cloud-capacityplanner-$1/src" - source: "/google/cloud/capacityplanner/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-capacityplanner/$1/grpc-google-cloud-capacityplanner-$1/src" -- source: "/google/cloud/capacityplanner/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-capacityplanner/$1/google-cloud-capacityplanner/src" +- source: "/google/cloud/capacityplanner/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-capacityplanner/$1/google-cloud-capacityplanner/src/main" - source: "/google/cloud/capacityplanner/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-capacityplanner/$1/samples/snippets/generated" diff --git a/java-certificate-manager/.OwlBot-hermetic.yaml b/java-certificate-manager/.OwlBot-hermetic.yaml index 04bea2c9343a..e9fd8075c1d7 100644 --- a/java-certificate-manager/.OwlBot-hermetic.yaml +++ b/java-certificate-manager/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-certificate-manager/samples/snippets/generated" - "/java-certificate-manager/grpc-google-.*/src" - "/java-certificate-manager/proto-google-.*/src" -- "/java-certificate-manager/google-.*/src" +- "/java-certificate-manager/google-.*/src/main" +- "/java-certificate-manager/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-certificate-manager/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-certificate-manager/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/certificatemanager/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-certificate-manager/$1/proto-google-cloud-certificate-manager-$1/src" - source: "/google/cloud/certificatemanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-certificate-manager/$1/grpc-google-cloud-certificate-manager-$1/src" -- source: "/google/cloud/certificatemanager/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-certificate-manager/$1/google-cloud-certificate-manager/src" +- source: "/google/cloud/certificatemanager/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-certificate-manager/$1/google-cloud-certificate-manager/src/main" - source: "/google/cloud/certificatemanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-certificate-manager/$1/samples/snippets/generated" diff --git a/java-ces/.OwlBot-hermetic.yaml b/java-ces/.OwlBot-hermetic.yaml index 44ecb82fb0c8..beaf6b683909 100644 --- a/java-ces/.OwlBot-hermetic.yaml +++ b/java-ces/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-ces/grpc-google-.*/src" - "/java-ces/proto-google-.*/src" -- "/java-ces/google-.*/src" +- "/java-ces/google-.*/src/main" +- "/java-ces/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-ces/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-ces/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-ces/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/ces/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-ces/$1/proto-google-cloud-ces-$1/src" - source: "/google/cloud/ces/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-ces/$1/grpc-google-cloud-ces-$1/src" -- source: "/google/cloud/ces/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-ces/$1/google-cloud-ces/src" +- source: "/google/cloud/ces/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-ces/$1/google-cloud-ces/src/main" - source: "/google/cloud/ces/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-ces/$1/samples/snippets/generated" diff --git a/java-channel/.OwlBot-hermetic.yaml b/java-channel/.OwlBot-hermetic.yaml index 66e0acb60968..8bf0c164fec9 100644 --- a/java-channel/.OwlBot-hermetic.yaml +++ b/java-channel/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-channel/samples/snippets/generated" - "/java-channel/grpc-google-.*/src" - "/java-channel/proto-google-.*/src" -- "/java-channel/google-.*/src" +- "/java-channel/google-.*/src/main" +- "/java-channel/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-channel/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-channel/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-channel/$1/proto-google-cloud-channel-$1/src" - source: "/google/cloud/channel/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-channel/$1/grpc-google-cloud-channel-$1/src" -- source: "/google/cloud/channel/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-channel/$1/google-cloud-channel/src" +- source: "/google/cloud/channel/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-channel/$1/google-cloud-channel/src/main" - source: "/google/cloud/channel/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-channel/$1/samples/snippets/generated" diff --git a/java-chat/.OwlBot-hermetic.yaml b/java-chat/.OwlBot-hermetic.yaml index de8208b2b3e7..cc0d8b4ae4e1 100644 --- a/java-chat/.OwlBot-hermetic.yaml +++ b/java-chat/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-chat/grpc-google-.*/src" - "/java-chat/proto-google-.*/src" -- "/java-chat/google-.*/src" +- "/java-chat/google-.*/src/main" +- "/java-chat/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-chat/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-chat/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-chat/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/chat/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-chat/$1/proto-google-cloud-chat-$1/src" - source: "/google/chat/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-chat/$1/grpc-google-cloud-chat-$1/src" -- source: "/google/chat/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-chat/$1/google-cloud-chat/src" +- source: "/google/chat/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-chat/$1/google-cloud-chat/src/main" - source: "/google/chat/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-chat/$1/samples/snippets/generated" diff --git a/java-chronicle/.OwlBot-hermetic.yaml b/java-chronicle/.OwlBot-hermetic.yaml index fc1783c6578d..b82f9d0a8ec3 100644 --- a/java-chronicle/.OwlBot-hermetic.yaml +++ b/java-chronicle/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-chronicle/grpc-google-.*/src" - "/java-chronicle/proto-google-.*/src" -- "/java-chronicle/google-.*/src" +- "/java-chronicle/google-.*/src/main" +- "/java-chronicle/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-chronicle/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-chronicle/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-chronicle/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/chronicle/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-chronicle/$1/proto-google-cloud-chronicle-$1/src" - source: "/google/cloud/chronicle/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-chronicle/$1/grpc-google-cloud-chronicle-$1/src" -- source: "/google/cloud/chronicle/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-chronicle/$1/google-cloud-chronicle/src" +- source: "/google/cloud/chronicle/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-chronicle/$1/google-cloud-chronicle/src/main" - source: "/google/cloud/chronicle/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-chronicle/$1/samples/snippets/generated" diff --git a/java-cloudapiregistry/.OwlBot-hermetic.yaml b/java-cloudapiregistry/.OwlBot-hermetic.yaml index 562bd0c587d9..09a63276b1be 100644 --- a/java-cloudapiregistry/.OwlBot-hermetic.yaml +++ b/java-cloudapiregistry/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-cloudapiregistry/grpc-google-.*/src" - "/java-cloudapiregistry/proto-google-.*/src" -- "/java-cloudapiregistry/google-.*/src" +- "/java-cloudapiregistry/google-.*/src/main" +- "/java-cloudapiregistry/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-cloudapiregistry/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-cloudapiregistry/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-cloudapiregistry/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/apiregistry/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-cloudapiregistry/$1/proto-google-cloud-cloudapiregistry-$1/src" - source: "/google/cloud/apiregistry/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-cloudapiregistry/$1/grpc-google-cloud-cloudapiregistry-$1/src" -- source: "/google/cloud/apiregistry/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-cloudapiregistry/$1/google-cloud-cloudapiregistry/src" +- source: "/google/cloud/apiregistry/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-cloudapiregistry/$1/google-cloud-cloudapiregistry/src/main" - source: "/google/cloud/apiregistry/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-cloudapiregistry/$1/samples/snippets/generated" diff --git a/java-cloudbuild/.OwlBot-hermetic.yaml b/java-cloudbuild/.OwlBot-hermetic.yaml index 1919c09ed6b5..31f97cd08949 100644 --- a/java-cloudbuild/.OwlBot-hermetic.yaml +++ b/java-cloudbuild/.OwlBot-hermetic.yaml @@ -16,7 +16,10 @@ deep-remove-regex: - "/java-cloudbuild/grpc-google-.*/src" - "/java-cloudbuild/proto-google-.*/src" -- "/java-cloudbuild/google-.*/src" +- "/java-cloudbuild/google-.*/src/main" +- "/java-cloudbuild/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-cloudbuild/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-cloudbuild/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-cloudbuild/samples/snippets/generated" deep-preserve-regex: @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-cloudbuild/$1/proto-google-cloud-build-$1/src" - source: "/google/devtools/cloudbuild/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-cloudbuild/$1/grpc-google-cloud-build-$1/src" -- source: "/google/devtools/cloudbuild/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-cloudbuild/$1/google-cloud-build/src" +- source: "/google/devtools/cloudbuild/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-cloudbuild/$1/google-cloud-build/src/main" - source: "/google/devtools/cloudbuild/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-cloudbuild/$1/samples/snippets/generated" diff --git a/java-cloudcommerceconsumerprocurement/.OwlBot-hermetic.yaml b/java-cloudcommerceconsumerprocurement/.OwlBot-hermetic.yaml index 9e14e5c32b11..ecf7dd448afc 100644 --- a/java-cloudcommerceconsumerprocurement/.OwlBot-hermetic.yaml +++ b/java-cloudcommerceconsumerprocurement/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-cloudcommerceconsumerprocurement/grpc-google-.*/src" - "/java-cloudcommerceconsumerprocurement/proto-google-.*/src" -- "/java-cloudcommerceconsumerprocurement/google-.*/src" +- "/java-cloudcommerceconsumerprocurement/google-.*/src/main" +- "/java-cloudcommerceconsumerprocurement/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-cloudcommerceconsumerprocurement/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-cloudcommerceconsumerprocurement/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-cloudcommerceconsumerprocurement/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/commerce/consumer/procurement/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-cloudcommerceconsumerprocurement/$1/proto-google-cloud-cloudcommerceconsumerprocurement-$1/src" - source: "/google/cloud/commerce/consumer/procurement/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-cloudcommerceconsumerprocurement/$1/grpc-google-cloud-cloudcommerceconsumerprocurement-$1/src" -- source: "/google/cloud/commerce/consumer/procurement/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-cloudcommerceconsumerprocurement/$1/google-cloud-cloudcommerceconsumerprocurement/src" +- source: "/google/cloud/commerce/consumer/procurement/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-cloudcommerceconsumerprocurement/$1/google-cloud-cloudcommerceconsumerprocurement/src/main" - source: "/google/cloud/commerce/consumer/procurement/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-cloudcommerceconsumerprocurement/$1/samples/snippets/generated" diff --git a/java-cloudcontrolspartner/.OwlBot-hermetic.yaml b/java-cloudcontrolspartner/.OwlBot-hermetic.yaml index 0e1f04bc5757..378a5e8c717f 100644 --- a/java-cloudcontrolspartner/.OwlBot-hermetic.yaml +++ b/java-cloudcontrolspartner/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-cloudcontrolspartner/grpc-google-.*/src" - "/java-cloudcontrolspartner/proto-google-.*/src" -- "/java-cloudcontrolspartner/google-.*/src" +- "/java-cloudcontrolspartner/google-.*/src/main" +- "/java-cloudcontrolspartner/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-cloudcontrolspartner/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-cloudcontrolspartner/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-cloudcontrolspartner/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/cloudcontrolspartner/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-cloudcontrolspartner/$1/proto-google-cloud-cloudcontrolspartner-$1/src" - source: "/google/cloud/cloudcontrolspartner/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-cloudcontrolspartner/$1/grpc-google-cloud-cloudcontrolspartner-$1/src" -- source: "/google/cloud/cloudcontrolspartner/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-cloudcontrolspartner/$1/google-cloud-cloudcontrolspartner/src" +- source: "/google/cloud/cloudcontrolspartner/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-cloudcontrolspartner/$1/google-cloud-cloudcontrolspartner/src/main" - source: "/google/cloud/cloudcontrolspartner/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-cloudcontrolspartner/$1/samples/snippets/generated" diff --git a/java-cloudquotas/.OwlBot-hermetic.yaml b/java-cloudquotas/.OwlBot-hermetic.yaml index 8bb2e51f829b..6311a33241a3 100644 --- a/java-cloudquotas/.OwlBot-hermetic.yaml +++ b/java-cloudquotas/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-cloudquotas/grpc-google-.*/src" - "/java-cloudquotas/proto-google-.*/src" -- "/java-cloudquotas/google-.*/src" +- "/java-cloudquotas/google-.*/src/main" +- "/java-cloudquotas/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-cloudquotas/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-cloudquotas/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-cloudquotas/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/api/cloudquotas/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-cloudquotas/$1/proto-google-cloud-cloudquotas-$1/src" - source: "/google/api/cloudquotas/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-cloudquotas/$1/grpc-google-cloud-cloudquotas-$1/src" -- source: "/google/api/cloudquotas/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-cloudquotas/$1/google-cloud-cloudquotas/src" +- source: "/google/api/cloudquotas/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-cloudquotas/$1/google-cloud-cloudquotas/src/main" - source: "/google/api/cloudquotas/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-cloudquotas/$1/samples/snippets/generated" diff --git a/java-cloudsecuritycompliance/.OwlBot-hermetic.yaml b/java-cloudsecuritycompliance/.OwlBot-hermetic.yaml index 0d2b2d4016bc..63a91a7ca9c0 100644 --- a/java-cloudsecuritycompliance/.OwlBot-hermetic.yaml +++ b/java-cloudsecuritycompliance/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-cloudsecuritycompliance/grpc-google-.*/src" - "/java-cloudsecuritycompliance/proto-google-.*/src" -- "/java-cloudsecuritycompliance/google-.*/src" +- "/java-cloudsecuritycompliance/google-.*/src/main" +- "/java-cloudsecuritycompliance/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-cloudsecuritycompliance/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-cloudsecuritycompliance/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-cloudsecuritycompliance/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/cloudsecuritycompliance/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-cloudsecuritycompliance/$1/proto-google-cloud-cloudsecuritycompliance-$1/src" - source: "/google/cloud/cloudsecuritycompliance/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-cloudsecuritycompliance/$1/grpc-google-cloud-cloudsecuritycompliance-$1/src" -- source: "/google/cloud/cloudsecuritycompliance/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-cloudsecuritycompliance/$1/google-cloud-cloudsecuritycompliance/src" +- source: "/google/cloud/cloudsecuritycompliance/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-cloudsecuritycompliance/$1/google-cloud-cloudsecuritycompliance/src/main" - source: "/google/cloud/cloudsecuritycompliance/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-cloudsecuritycompliance/$1/samples/snippets/generated" diff --git a/java-cloudsupport/.OwlBot-hermetic.yaml b/java-cloudsupport/.OwlBot-hermetic.yaml index 3ce84c43fc48..2bf7005efebd 100644 --- a/java-cloudsupport/.OwlBot-hermetic.yaml +++ b/java-cloudsupport/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-cloudsupport/grpc-google-.*/src" - "/java-cloudsupport/proto-google-.*/src" -- "/java-cloudsupport/google-.*/src" +- "/java-cloudsupport/google-.*/src/main" +- "/java-cloudsupport/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-cloudsupport/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-cloudsupport/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-cloudsupport/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/support/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-cloudsupport/$1/proto-google-cloud-cloudsupport-$1/src" - source: "/google/cloud/support/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-cloudsupport/$1/grpc-google-cloud-cloudsupport-$1/src" -- source: "/google/cloud/support/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-cloudsupport/$1/google-cloud-cloudsupport/src" +- source: "/google/cloud/support/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-cloudsupport/$1/google-cloud-cloudsupport/src/main" - source: "/google/cloud/support/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-cloudsupport/$1/samples/snippets/generated" diff --git a/java-common-protos/.OwlBot-hermetic.yaml b/java-common-protos/.OwlBot-hermetic.yaml index 1aed221695fa..551b4e933f5c 100644 --- a/java-common-protos/.OwlBot-hermetic.yaml +++ b/java-common-protos/.OwlBot-hermetic.yaml @@ -16,11 +16,12 @@ deep-remove-regex: - "/java-common-protos/grpc-google-.*/src" - "/java-common-protos/proto-google-.*/src" -- "/java-common-protos/google-.*/src" +- "/java-common-protos/google-.*/src/main" +- "/java-common-protos/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-common-protos/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-common-protos/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: -- "/java-common-protos/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/api/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src" diff --git a/java-compute/.OwlBot-hermetic.yaml b/java-compute/.OwlBot-hermetic.yaml index 74f604a9b21a..dd83e1e1c7ed 100644 --- a/java-compute/.OwlBot-hermetic.yaml +++ b/java-compute/.OwlBot-hermetic.yaml @@ -15,19 +15,21 @@ deep-remove-regex: - "/java-compute/proto-google-.*/src" -- "/java-compute/google-.*/src" +- "/java-compute/google-.*/src/main" +- "/java-compute/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-compute/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-compute/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-compute/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/.*google-cloud-compute/src/test/java/com/google/cloud/compute/v1/integration" +- "/.*google-cloud-compute/src/test/java/com/google/.*/compute/v1/integration" deep-copy-regex: - source: "/google/cloud/compute/(v\\d)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-compute/$1/proto-google-cloud-compute-$1/src" -- source: "/google/cloud/compute/(v\\d)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-compute/$1/google-cloud-compute/src" +- source: "/google/cloud/compute/(v\\d)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-compute/$1/google-cloud-compute/src/main" - source: "/google/cloud/compute/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-compute/$1/samples/snippets/generated" diff --git a/java-confidentialcomputing/.OwlBot-hermetic.yaml b/java-confidentialcomputing/.OwlBot-hermetic.yaml index dc26501de170..b09bd425cb4b 100644 --- a/java-confidentialcomputing/.OwlBot-hermetic.yaml +++ b/java-confidentialcomputing/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-confidentialcomputing/grpc-google-.*/src" - "/java-confidentialcomputing/proto-google-.*/src" -- "/java-confidentialcomputing/google-.*/src" +- "/java-confidentialcomputing/google-.*/src/main" +- "/java-confidentialcomputing/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-confidentialcomputing/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-confidentialcomputing/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-confidentialcomputing/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/confidentialcomputing/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-confidentialcomputing/$1/proto-google-cloud-confidentialcomputing-$1/src" - source: "/google/cloud/confidentialcomputing/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-confidentialcomputing/$1/grpc-google-cloud-confidentialcomputing-$1/src" -- source: "/google/cloud/confidentialcomputing/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-confidentialcomputing/$1/google-cloud-confidentialcomputing/src" +- source: "/google/cloud/confidentialcomputing/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-confidentialcomputing/$1/google-cloud-confidentialcomputing/src/main" - source: "/google/cloud/confidentialcomputing/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-confidentialcomputing/$1/samples/snippets/generated" diff --git a/java-configdelivery/.OwlBot-hermetic.yaml b/java-configdelivery/.OwlBot-hermetic.yaml index d68c796dde71..c5e4c9d3ea8c 100644 --- a/java-configdelivery/.OwlBot-hermetic.yaml +++ b/java-configdelivery/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-configdelivery/grpc-google-.*/src" - "/java-configdelivery/proto-google-.*/src" -- "/java-configdelivery/google-.*/src" +- "/java-configdelivery/google-.*/src/main" +- "/java-configdelivery/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-configdelivery/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-configdelivery/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-configdelivery/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/configdelivery/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-configdelivery/$1/proto-google-cloud-configdelivery-$1/src" - source: "/google/cloud/configdelivery/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-configdelivery/$1/grpc-google-cloud-configdelivery-$1/src" -- source: "/google/cloud/configdelivery/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-configdelivery/$1/google-cloud-configdelivery/src" +- source: "/google/cloud/configdelivery/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-configdelivery/$1/google-cloud-configdelivery/src/main" - source: "/google/cloud/configdelivery/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-configdelivery/$1/samples/snippets/generated" diff --git a/java-connectgateway/.OwlBot-hermetic.yaml b/java-connectgateway/.OwlBot-hermetic.yaml index d4cd3aa8603d..c22c078048ff 100644 --- a/java-connectgateway/.OwlBot-hermetic.yaml +++ b/java-connectgateway/.OwlBot-hermetic.yaml @@ -15,18 +15,19 @@ deep-remove-regex: - "/java-connectgateway/proto-google-.*/src" -- "/java-connectgateway/google-.*/src" +- "/java-connectgateway/google-.*/src/main" +- "/java-connectgateway/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-connectgateway/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-connectgateway/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-connectgateway/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/gkeconnect/gateway/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-connectgateway/$1/proto-google-cloud-connectgateway-$1/src" -- source: "/google/cloud/gkeconnect/gateway/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-connectgateway/$1/google-cloud-connectgateway/src" +- source: "/google/cloud/gkeconnect/gateway/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-connectgateway/$1/google-cloud-connectgateway/src/main" - source: "/google/cloud/gkeconnect/gateway/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-connectgateway/$1/samples/snippets/generated" diff --git a/java-contact-center-insights/.OwlBot-hermetic.yaml b/java-contact-center-insights/.OwlBot-hermetic.yaml index edf370f767b7..424056a742d4 100644 --- a/java-contact-center-insights/.OwlBot-hermetic.yaml +++ b/java-contact-center-insights/.OwlBot-hermetic.yaml @@ -16,7 +16,10 @@ deep-remove-regex: - "/java-contact-center-insights/grpc-google-.*/src" - "/java-contact-center-insights/proto-google-.*/src" -- "/java-contact-center-insights/google-.*/src" +- "/java-contact-center-insights/google-.*/src/main" +- "/java-contact-center-insights/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-contact-center-insights/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-contact-center-insights/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-contact-center-insights/samples/snippets/generated" deep-preserve-regex: @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-contact-center-insights/$1/proto-google-cloud-contact-center-insights-$1/src" - source: "/google/cloud/contactcenterinsights/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-contact-center-insights/$1/grpc-google-cloud-contact-center-insights-$1/src" -- source: "/google/cloud/contactcenterinsights/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-contact-center-insights/$1/google-cloud-contact-center-insights/src" +- source: "/google/cloud/contactcenterinsights/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-contact-center-insights/$1/google-cloud-contact-center-insights/src/main" - source: "/google/cloud/contactcenterinsights/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-contact-center-insights/$1/samples/snippets/generated" diff --git a/java-container/.OwlBot-hermetic.yaml b/java-container/.OwlBot-hermetic.yaml index 8af14e8c8e41..ee3451e7947b 100644 --- a/java-container/.OwlBot-hermetic.yaml +++ b/java-container/.OwlBot-hermetic.yaml @@ -16,22 +16,25 @@ deep-remove-regex: - "/java-container/grpc-google-.*/src" - "/java-container/proto-google-.*/src" -- "/java-container/google-.*/src" +- "/java-container/google-.*/src/main" +- "/java-container/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-container/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-container/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-container/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" - "/.*google-cloud-container/src/main/java/com/google/cloud/container/v1/SampleApp.java" -- "/.*google-cloud-container/src/test/java/com/google/cloud/container/v1/it/ITSystemTest.java" -- "/.*google-cloud-container/src/test/java/com/google/cloud/container/v1/it/Util.java" +- "/.*google-cloud-container/src/test/java/com/google/.*/container/v1/it/ITSystemTest.java" +- "/.*google-cloud-container/src/test/java/com/google/.*/container/v1/it/Util.java" deep-copy-regex: - source: "/google/container/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-container/$1/proto-google-cloud-container-$1/src" - source: "/google/container/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-container/$1/grpc-google-cloud-container-$1/src" -- source: "/google/container/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-container/$1/google-cloud-container/src" +- source: "/google/container/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-container/$1/google-cloud-container/src/main" - source: "/google/container/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-container/$1/samples/snippets/generated" diff --git a/java-containeranalysis/.OwlBot-hermetic.yaml b/java-containeranalysis/.OwlBot-hermetic.yaml index 8414051180a3..25839d98e712 100644 --- a/java-containeranalysis/.OwlBot-hermetic.yaml +++ b/java-containeranalysis/.OwlBot-hermetic.yaml @@ -22,16 +22,15 @@ deep-remove-regex: deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/GrafeasUtils.java" -- "/.*google-cloud-containeranalysis/src/test/java/com/google/cloud/devtools/containeranalysis/v1/ITGrafeasInteropTest.java" +- "/.*google-cloud-containeranalysis/src/test/java/com/google/.*/devtools/containeranalysis/v1/ITGrafeasInteropTest.java" deep-copy-regex: - source: "/google/devtools/containeranalysis/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-containeranalysis/$1/proto-google-cloud-containeranalysis-$1/src" - source: "/google/devtools/containeranalysis/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-containeranalysis/$1/grpc-google-cloud-containeranalysis-$1/src" -- source: "/google/devtools/containeranalysis/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-containeranalysis/$1/google-cloud-containeranalysis/src" +- source: "/google/devtools/containeranalysis/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-containeranalysis/$1/google-cloud-containeranalysis/src/main" api-name: containeranalysis diff --git a/java-contentwarehouse/.OwlBot-hermetic.yaml b/java-contentwarehouse/.OwlBot-hermetic.yaml index 2d22d56f04b7..b57431c9826b 100644 --- a/java-contentwarehouse/.OwlBot-hermetic.yaml +++ b/java-contentwarehouse/.OwlBot-hermetic.yaml @@ -16,19 +16,20 @@ deep-remove-regex: - "/java-contentwarehouse/grpc-google-.*/src" - "/java-contentwarehouse/proto-google-.*/src" -- "/java-contentwarehouse/google-.*/src" +- "/java-contentwarehouse/google-.*/src/main" +- "/java-contentwarehouse/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-contentwarehouse/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-contentwarehouse/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-contentwarehouse/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/contentwarehouse/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-contentwarehouse/$1/proto-google-cloud-contentwarehouse-$1/src" - source: "/google/cloud/contentwarehouse/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-contentwarehouse/$1/grpc-google-cloud-contentwarehouse-$1/src" -- source: "/google/cloud/contentwarehouse/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-contentwarehouse/$1/google-cloud-contentwarehouse/src" +- source: "/google/cloud/contentwarehouse/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-contentwarehouse/$1/google-cloud-contentwarehouse/src/main" - source: "/google/cloud/contentwarehouse/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-contentwarehouse/$1/samples/snippets/generated" diff --git a/java-data-fusion/.OwlBot-hermetic.yaml b/java-data-fusion/.OwlBot-hermetic.yaml index c841cc730970..6f681190498c 100644 --- a/java-data-fusion/.OwlBot-hermetic.yaml +++ b/java-data-fusion/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-data-fusion/samples/snippets/generated" - "/java-data-fusion/grpc-google-.*/src" - "/java-data-fusion/proto-google-.*/src" -- "/java-data-fusion/google-.*/src" +- "/java-data-fusion/google-.*/src/main" +- "/java-data-fusion/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-data-fusion/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-data-fusion/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/datafusion/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-data-fusion/$1/proto-google-cloud-data-fusion-$1/src" - source: "/google/cloud/datafusion/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-data-fusion/$1/grpc-google-cloud-data-fusion-$1/src" -- source: "/google/cloud/datafusion/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-data-fusion/$1/google-cloud-data-fusion/src" +- source: "/google/cloud/datafusion/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-data-fusion/$1/google-cloud-data-fusion/src/main" - source: "/google/cloud/datafusion/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-data-fusion/$1/samples/snippets/generated" diff --git a/java-databasecenter/.OwlBot-hermetic.yaml b/java-databasecenter/.OwlBot-hermetic.yaml index bba598c45114..e6c9581f8c5e 100644 --- a/java-databasecenter/.OwlBot-hermetic.yaml +++ b/java-databasecenter/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-databasecenter/grpc-google-.*/src" - "/java-databasecenter/proto-google-.*/src" -- "/java-databasecenter/google-.*/src" +- "/java-databasecenter/google-.*/src/main" +- "/java-databasecenter/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-databasecenter/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-databasecenter/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-databasecenter/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/databasecenter/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-databasecenter/$1/proto-google-cloud-databasecenter-$1/src" - source: "/google/cloud/databasecenter/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-databasecenter/$1/grpc-google-cloud-databasecenter-$1/src" -- source: "/google/cloud/databasecenter/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-databasecenter/$1/google-cloud-databasecenter/src" +- source: "/google/cloud/databasecenter/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-databasecenter/$1/google-cloud-databasecenter/src/main" - source: "/google/cloud/databasecenter/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-databasecenter/$1/samples/snippets/generated" diff --git a/java-datacatalog/.OwlBot-hermetic.yaml b/java-datacatalog/.OwlBot-hermetic.yaml index 43aa06b891c7..dbb40cd65172 100644 --- a/java-datacatalog/.OwlBot-hermetic.yaml +++ b/java-datacatalog/.OwlBot-hermetic.yaml @@ -17,11 +17,14 @@ deep-remove-regex: - "/java-datacatalog/samples/snippets/generated" - "/java-datacatalog/grpc-google-.*/src" - "/java-datacatalog/proto-google-.*/src" -- "/java-datacatalog/google-.*/src" +- "/java-datacatalog/google-.*/src/main" +- "/java-datacatalog/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-datacatalog/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-datacatalog/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/it/ITSystemTest.java" +- "/.*google-cloud-datacatalog/src/test/java/com/google/.*/datacatalog/v1beta1/it/ITSystemTest.java" - "/.*proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldName.java" deep-copy-regex: @@ -29,8 +32,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-datacatalog/$1/proto-google-cloud-datacatalog-$1/src" - source: "/google/cloud/datacatalog/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-datacatalog/$1/grpc-google-cloud-datacatalog-$1/src" -- source: "/google/cloud/datacatalog/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-datacatalog/$1/google-cloud-datacatalog/src" +- source: "/google/cloud/datacatalog/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-datacatalog/$1/google-cloud-datacatalog/src/main" - source: "/google/cloud/datacatalog/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-datacatalog/$1/samples/snippets/generated" diff --git a/java-dataflow/.OwlBot-hermetic.yaml b/java-dataflow/.OwlBot-hermetic.yaml index c33fd0a03d96..a432b0160c83 100644 --- a/java-dataflow/.OwlBot-hermetic.yaml +++ b/java-dataflow/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-dataflow/grpc-google-.*/src" - "/java-dataflow/proto-google-.*/src" -- "/java-dataflow/google-.*/src" +- "/java-dataflow/google-.*/src/main" +- "/java-dataflow/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-dataflow/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-dataflow/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-dataflow/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/dataflow/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-dataflow/$1/proto-google-cloud-dataflow-$1/src" - source: "/google/dataflow/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-dataflow/$1/grpc-google-cloud-dataflow-$1/src" -- source: "/google/dataflow/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-dataflow/$1/google-cloud-dataflow/src" +- source: "/google/dataflow/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-dataflow/$1/google-cloud-dataflow/src/main" - source: "/google/dataflow/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-dataflow/$1/samples/snippets/generated" diff --git a/java-dataform/.OwlBot-hermetic.yaml b/java-dataform/.OwlBot-hermetic.yaml index 34672662be20..acf744bd7999 100644 --- a/java-dataform/.OwlBot-hermetic.yaml +++ b/java-dataform/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-dataform/grpc-google-.*/src" - "/java-dataform/proto-google-.*/src" -- "/java-dataform/google-.*/src" +- "/java-dataform/google-.*/src/main" +- "/java-dataform/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-dataform/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-dataform/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-dataform/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/dataform/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-dataform/$1/proto-google-cloud-dataform-$1/src" - source: "/google/cloud/dataform/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-dataform/$1/grpc-google-cloud-dataform-$1/src" -- source: "/google/cloud/dataform/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-dataform/$1/google-cloud-dataform/src" +- source: "/google/cloud/dataform/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-dataform/$1/google-cloud-dataform/src/main" - source: "/google/cloud/dataform/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-dataform/$1/samples/snippets/generated" diff --git a/java-datalabeling/.OwlBot-hermetic.yaml b/java-datalabeling/.OwlBot-hermetic.yaml index 43f523395142..998a180f8d72 100644 --- a/java-datalabeling/.OwlBot-hermetic.yaml +++ b/java-datalabeling/.OwlBot-hermetic.yaml @@ -17,12 +17,15 @@ deep-remove-regex: - "/java-datalabeling/samples/snippets/generated" - "/java-datalabeling/grpc-google-.*/src" - "/java-datalabeling/proto-google-.*/src" -- "/java-datalabeling/google-.*/src" +- "/java-datalabeling/google-.*/src/main" +- "/java-datalabeling/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-datalabeling/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-datalabeling/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/it/ITSystemTest.java" -- "/.*google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/it/ITSystemTest.java" +- "/.*google-cloud-datalabeling/src/test/java/com/google/.*/datalabeling/v1beta1/it/ITSystemTest.java" +- "/.*google-cloud-datalabeling/src/test/java/com/google/.*/datalabeling/it/ITSystemTest.java" deep-copy-regex: @@ -30,8 +33,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-datalabeling/$1/proto-google-cloud-datalabeling-$1/src" - source: "/google/cloud/datalabeling/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-datalabeling/$1/grpc-google-cloud-datalabeling-$1/src" -- source: "/google/cloud/datalabeling/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-datalabeling/$1/google-cloud-datalabeling/src" +- source: "/google/cloud/datalabeling/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-datalabeling/$1/google-cloud-datalabeling/src/main" - source: "/google/cloud/datalabeling/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-datalabeling/$1/samples/snippets/generated" diff --git a/java-datalineage/.OwlBot-hermetic.yaml b/java-datalineage/.OwlBot-hermetic.yaml index c4631c60d9fe..3c7eba1f1413 100644 --- a/java-datalineage/.OwlBot-hermetic.yaml +++ b/java-datalineage/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-datalineage/grpc-google-.*/src" - "/java-datalineage/proto-google-.*/src" -- "/java-datalineage/google-.*/src" +- "/java-datalineage/google-.*/src/main" +- "/java-datalineage/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-datalineage/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-datalineage/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-datalineage/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/datacatalog/lineage/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-datalineage/$1/proto-google-cloud-datalineage-$1/src" - source: "/google/cloud/datacatalog/lineage/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-datalineage/$1/grpc-google-cloud-datalineage-$1/src" -- source: "/google/cloud/datacatalog/lineage/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-datalineage/$1/google-cloud-datalineage/src" +- source: "/google/cloud/datacatalog/lineage/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-datalineage/$1/google-cloud-datalineage/src/main" - source: "/google/cloud/datacatalog/lineage/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-datalineage/$1/samples/snippets/generated" # configmanagement @@ -37,8 +38,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-datalineage/$1/proto-google-cloud-datalineage-$1/src" - source: "/google/cloud/datacatalog/lineage/configmanagement/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-datalineage/$1/grpc-google-cloud-datalineage-$1/src" -- source: "/google/cloud/datacatalog/lineage/configmanagement/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-datalineage/$1/google-cloud-datalineage/src" +- source: "/google/cloud/datacatalog/lineage/configmanagement/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-datalineage/$1/google-cloud-datalineage/src/main" - source: "/google/cloud/datacatalog/lineage/configmanagement/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-datalineage/$1/samples/snippets/generated" diff --git a/java-datamanager/.OwlBot-hermetic.yaml b/java-datamanager/.OwlBot-hermetic.yaml index 0973cb3788d4..03caae46a139 100644 --- a/java-datamanager/.OwlBot-hermetic.yaml +++ b/java-datamanager/.OwlBot-hermetic.yaml @@ -21,15 +21,15 @@ deep-remove-regex: deep-preserve-regex: - "/.*data-manager.*/src/main/java/.*/stub/Version.java" -- "/.*data-manager.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*data-manager.*/src/test/java/com/google/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/ads/datamanager/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-datamanager/$1/proto-data-manager-$1/src" - source: "/google/ads/datamanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-datamanager/$1/grpc-data-manager-$1/src" -- source: "/google/ads/datamanager/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-datamanager/$1/data-manager/src" +- source: "/google/ads/datamanager/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-datamanager/$1/data-manager/src/main" - source: "/google/ads/datamanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-datamanager/$1/samples/snippets/generated" diff --git a/java-dataplex/.OwlBot-hermetic.yaml b/java-dataplex/.OwlBot-hermetic.yaml index b868b48c0cd4..aaf0608687c0 100644 --- a/java-dataplex/.OwlBot-hermetic.yaml +++ b/java-dataplex/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-dataplex/samples/snippets/generated" - "/java-dataplex/grpc-google-.*/src" - "/java-dataplex/proto-google-.*/src" -- "/java-dataplex/google-.*/src" +- "/java-dataplex/google-.*/src/main" +- "/java-dataplex/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-dataplex/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-dataplex/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/dataplex/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-dataplex/$1/proto-google-cloud-dataplex-$1/src" - source: "/google/cloud/dataplex/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-dataplex/$1/grpc-google-cloud-dataplex-$1/src" -- source: "/google/cloud/dataplex/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-dataplex/$1/google-cloud-dataplex/src" +- source: "/google/cloud/dataplex/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-dataplex/$1/google-cloud-dataplex/src/main" - source: "/google/cloud/dataplex/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-dataplex/$1/samples/snippets/generated" diff --git a/java-dataproc-metastore/.OwlBot-hermetic.yaml b/java-dataproc-metastore/.OwlBot-hermetic.yaml index f682fd5ad824..db262cb52014 100644 --- a/java-dataproc-metastore/.OwlBot-hermetic.yaml +++ b/java-dataproc-metastore/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-dataproc-metastore/grpc-google-.*/src" - "/java-dataproc-metastore/proto-google-.*/src" -- "/java-dataproc-metastore/google-.*/src" +- "/java-dataproc-metastore/google-.*/src/main" +- "/java-dataproc-metastore/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-dataproc-metastore/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-dataproc-metastore/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-dataproc-metastore/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/metastore/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-dataproc-metastore/$1/proto-google-cloud-dataproc-metastore-$1/src" - source: "/google/cloud/metastore/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-dataproc-metastore/$1/grpc-google-cloud-dataproc-metastore-$1/src" -- source: "/google/cloud/metastore/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-dataproc-metastore/$1/google-cloud-dataproc-metastore/src" +- source: "/google/cloud/metastore/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-dataproc-metastore/$1/google-cloud-dataproc-metastore/src/main" - source: "/google/cloud/metastore/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-dataproc-metastore/$1/samples/snippets/generated" diff --git a/java-dataproc/.OwlBot-hermetic.yaml b/java-dataproc/.OwlBot-hermetic.yaml index 0e36cb2965f5..1893fc510875 100644 --- a/java-dataproc/.OwlBot-hermetic.yaml +++ b/java-dataproc/.OwlBot-hermetic.yaml @@ -17,19 +17,22 @@ deep-remove-regex: - "/java-dataproc/samples/snippets/generated" - "/java-dataproc/grpc-google-.*/src" - "/java-dataproc/proto-google-.*/src" -- "/java-dataproc/google-.*/src" +- "/java-dataproc/google-.*/src/main" +- "/java-dataproc/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-dataproc/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-dataproc/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v.*/it/ITSystemTest.java" +- "/.*google-cloud-dataproc/src/test/java/com/google/.*/dataproc/v.*/it/ITSystemTest.java" deep-copy-regex: - source: "/google/cloud/dataproc/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-dataproc/$1/proto-google-cloud-dataproc-$1/src" - source: "/google/cloud/dataproc/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-dataproc/$1/grpc-google-cloud-dataproc-$1/src" -- source: "/google/cloud/dataproc/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-dataproc/$1/google-cloud-dataproc/src" +- source: "/google/cloud/dataproc/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-dataproc/$1/google-cloud-dataproc/src/main" - source: "/google/cloud/dataproc/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-dataproc/$1/samples/snippets/generated" diff --git a/java-datastore/.OwlBot-hermetic.yaml b/java-datastore/.OwlBot-hermetic.yaml index dce59c74ec54..17145bac29ca 100644 --- a/java-datastore/.OwlBot-hermetic.yaml +++ b/java-datastore/.OwlBot-hermetic.yaml @@ -16,7 +16,6 @@ deep-remove-regex: - /java-datastore/proto-google-.*/src deep-preserve-regex: - /.*google-.*/src/main/java/.*/stub/Version.java -- /.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java deep-copy-regex: - source: /google/datastore/(v.*)/.*-java/proto-google-.*/src dest: /owl-bot-staging/java-datastore/$1/proto-google-cloud-datastore-$1/src @@ -26,7 +25,7 @@ deep-copy-regex: dest: /owl-bot-staging/java-datastore/$1/grpc-google-cloud-datastore-$1/src - source: /google/datastore/admin/(v.*)/.*-java/grpc-google-.*/src dest: /owl-bot-staging/java-datastore/$1/grpc-google-cloud-datastore-admin-$1/src -- source: /google/datastore/(v.*)/.*-java/gapic-google-.*/src - dest: /owl-bot-staging/java-datastore/$1/google-cloud-datastore/src -- source: /google/datastore/admin/(v.*)/.*-java/gapic-google-.*/src - dest: /owl-bot-staging/java-datastore/$1/google-cloud-datastore/src +- source: /google/datastore/(v.*)/.*-java/gapic-google-.*/src/main + dest: /owl-bot-staging/java-datastore/$1/google-cloud-datastore/src/main +- source: /google/datastore/admin/(v.*)/.*-java/gapic-google-.*/src/main + dest: /owl-bot-staging/java-datastore/$1/google-cloud-datastore/src/main diff --git a/java-datastream/.OwlBot-hermetic.yaml b/java-datastream/.OwlBot-hermetic.yaml index 8cc68058f04d..c019cefd5ddc 100644 --- a/java-datastream/.OwlBot-hermetic.yaml +++ b/java-datastream/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-datastream/samples/snippets/generated" - "/java-datastream/grpc-google-.*/src" - "/java-datastream/proto-google-.*/src" -- "/java-datastream/google-.*/src" +- "/java-datastream/google-.*/src/main" +- "/java-datastream/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-datastream/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-datastream/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/datastream/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-datastream/$1/proto-google-cloud-datastream-$1/src" - source: "/google/cloud/datastream/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-datastream/$1/grpc-google-cloud-datastream-$1/src" -- source: "/google/cloud/datastream/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-datastream/$1/google-cloud-datastream/src" +- source: "/google/cloud/datastream/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-datastream/$1/google-cloud-datastream/src/main" - source: "/google/cloud/datastream/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-datastream/$1/samples/snippets/generated" diff --git a/java-deploy/.OwlBot-hermetic.yaml b/java-deploy/.OwlBot-hermetic.yaml index 114057365364..7926277d80e6 100644 --- a/java-deploy/.OwlBot-hermetic.yaml +++ b/java-deploy/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-deploy/samples/snippets/generated" - "/java-deploy/grpc-google-.*/src" - "/java-deploy/proto-google-.*/src" -- "/java-deploy/google-.*/src" +- "/java-deploy/google-.*/src/main" +- "/java-deploy/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-deploy/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-deploy/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/deploy/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-deploy/$1/proto-google-cloud-deploy-$1/src" - source: "/google/cloud/deploy/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-deploy/$1/grpc-google-cloud-deploy-$1/src" -- source: "/google/cloud/deploy/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-deploy/$1/google-cloud-deploy/src" +- source: "/google/cloud/deploy/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-deploy/$1/google-cloud-deploy/src/main" - source: "/google/cloud/deploy/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-deploy/$1/samples/snippets/generated" diff --git a/java-developerconnect/.OwlBot-hermetic.yaml b/java-developerconnect/.OwlBot-hermetic.yaml index d1e9cb274753..d002e638eacd 100644 --- a/java-developerconnect/.OwlBot-hermetic.yaml +++ b/java-developerconnect/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-developerconnect/grpc-google-.*/src" - "/java-developerconnect/proto-google-.*/src" -- "/java-developerconnect/google-.*/src" +- "/java-developerconnect/google-.*/src/main" +- "/java-developerconnect/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-developerconnect/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-developerconnect/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-developerconnect/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/developerconnect/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-developerconnect/$1/proto-google-cloud-developerconnect-$1/src" - source: "/google/cloud/developerconnect/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-developerconnect/$1/grpc-google-cloud-developerconnect-$1/src" -- source: "/google/cloud/developerconnect/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-developerconnect/$1/google-cloud-developerconnect/src" +- source: "/google/cloud/developerconnect/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-developerconnect/$1/google-cloud-developerconnect/src/main" - source: "/google/cloud/developerconnect/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-developerconnect/$1/samples/snippets/generated" diff --git a/java-developerknowledge/.OwlBot-hermetic.yaml b/java-developerknowledge/.OwlBot-hermetic.yaml index 453bf6e1b842..762ce5deff00 100644 --- a/java-developerknowledge/.OwlBot-hermetic.yaml +++ b/java-developerknowledge/.OwlBot-hermetic.yaml @@ -16,19 +16,20 @@ deep-remove-regex: - "/java-developerknowledge/grpc-google-.*/src" - "/java-developerknowledge/proto-google-.*/src" -- "/java-developerknowledge/google-.*/src" +- "/java-developerknowledge/google-.*/src/main" +- "/java-developerknowledge/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-developerknowledge/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-developerknowledge/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-developerknowledge/samples/snippets/generated" deep-preserve-regex: -- "/java-developerknowledge/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/developers/knowledge/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-developerknowledge/$1/proto-google-cloud-developer-knowledge-$1/src" - source: "/google/developers/knowledge/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-developerknowledge/$1/grpc-google-cloud-developer-knowledge-$1/src" -- source: "/google/developers/knowledge/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-developerknowledge/$1/google-cloud-developer-knowledge/src" +- source: "/google/developers/knowledge/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-developerknowledge/$1/google-cloud-developer-knowledge/src/main" - source: "/google/developers/knowledge/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-developerknowledge/$1/samples/snippets/generated" diff --git a/java-devicestreaming/.OwlBot-hermetic.yaml b/java-devicestreaming/.OwlBot-hermetic.yaml index 562181c3d889..d9e20b1d52b4 100644 --- a/java-devicestreaming/.OwlBot-hermetic.yaml +++ b/java-devicestreaming/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-devicestreaming/grpc-google-.*/src" - "/java-devicestreaming/proto-google-.*/src" -- "/java-devicestreaming/google-.*/src" +- "/java-devicestreaming/google-.*/src/main" +- "/java-devicestreaming/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-devicestreaming/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-devicestreaming/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-devicestreaming/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/devicestreaming/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-devicestreaming/$1/proto-google-cloud-devicestreaming-$1/src" - source: "/google/cloud/devicestreaming/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-devicestreaming/$1/grpc-google-cloud-devicestreaming-$1/src" -- source: "/google/cloud/devicestreaming/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-devicestreaming/$1/google-cloud-devicestreaming/src" +- source: "/google/cloud/devicestreaming/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-devicestreaming/$1/google-cloud-devicestreaming/src/main" - source: "/google/cloud/devicestreaming/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-devicestreaming/$1/samples/snippets/generated" diff --git a/java-dialogflow-cx/.OwlBot-hermetic.yaml b/java-dialogflow-cx/.OwlBot-hermetic.yaml index ed47b4ae48a3..5260f6ab0df7 100644 --- a/java-dialogflow-cx/.OwlBot-hermetic.yaml +++ b/java-dialogflow-cx/.OwlBot-hermetic.yaml @@ -16,20 +16,23 @@ deep-remove-regex: - "/java-dialogflow-cx/grpc-google-.*/src" - "/java-dialogflow-cx/proto-google-.*/src" -- "/java-dialogflow-cx/google-.*/src" +- "/java-dialogflow-cx/google-.*/src/main" +- "/java-dialogflow-cx/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-dialogflow-cx/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-dialogflow-cx/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-dialogflow-cx/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v.*/it/ITSystemTest.java" +- "/.*google-cloud-dialogflow-cx/src/test/java/com/google/.*/dialogflow/cx/v.*/it/ITSystemTest.java" deep-copy-regex: - source: "/google/cloud/dialogflow/cx/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-dialogflow-cx/$1/proto-google-cloud-dialogflow-cx-$1/src" - source: "/google/cloud/dialogflow/cx/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-dialogflow-cx/$1/grpc-google-cloud-dialogflow-cx-$1/src" -- source: "/google/cloud/dialogflow/cx/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-dialogflow-cx/$1/google-cloud-dialogflow-cx/src" +- source: "/google/cloud/dialogflow/cx/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-dialogflow-cx/$1/google-cloud-dialogflow-cx/src/main" - source: "/google/cloud/dialogflow/cx/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-dialogflow-cx/$1/samples/snippets/generated" diff --git a/java-dialogflow/.OwlBot-hermetic.yaml b/java-dialogflow/.OwlBot-hermetic.yaml index 6760f0c2a39b..6d5c490c7bc8 100644 --- a/java-dialogflow/.OwlBot-hermetic.yaml +++ b/java-dialogflow/.OwlBot-hermetic.yaml @@ -17,12 +17,14 @@ deep-remove-regex: - "/java-dialogflow/samples/snippets/generated" - "/java-dialogflow/grpc-google-.*/src" - "/java-dialogflow/proto-google-.*/src" -- "/java-dialogflow/google-.*/src" +- "/java-dialogflow/google-.*/src/main" +- "/java-dialogflow/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-dialogflow/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-dialogflow/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/.*google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ContextManagementSmokeTest.java" +- "/.*google-cloud-dialogflow/src/test/java/com/google/.*/dialogflow/v2/ContextManagementSmokeTest.java" - "/.*proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelName.java" - "/.*proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ProjectAgentName.java" - "/.*proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationModelName.java" @@ -37,8 +39,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-dialogflow/$1/proto-google-cloud-dialogflow-$1/src" - source: "/google/cloud/dialogflow/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-dialogflow/$1/grpc-google-cloud-dialogflow-$1/src" -- source: "/google/cloud/dialogflow/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-dialogflow/$1/google-cloud-dialogflow/src" +- source: "/google/cloud/dialogflow/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-dialogflow/$1/google-cloud-dialogflow/src/main" - source: "/google/cloud/dialogflow/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-dialogflow/$1/samples/snippets/generated" diff --git a/java-discoveryengine/.OwlBot-hermetic.yaml b/java-discoveryengine/.OwlBot-hermetic.yaml index 05388100d4f4..dadbe1a5c8df 100644 --- a/java-discoveryengine/.OwlBot-hermetic.yaml +++ b/java-discoveryengine/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-discoveryengine/grpc-google-.*/src" - "/java-discoveryengine/proto-google-.*/src" -- "/java-discoveryengine/google-.*/src" +- "/java-discoveryengine/google-.*/src/main" +- "/java-discoveryengine/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-discoveryengine/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-discoveryengine/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-discoveryengine/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/discoveryengine/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-discoveryengine/$1/proto-google-cloud-discoveryengine-$1/src" - source: "/google/cloud/discoveryengine/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-discoveryengine/$1/grpc-google-cloud-discoveryengine-$1/src" -- source: "/google/cloud/discoveryengine/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-discoveryengine/$1/google-cloud-discoveryengine/src" +- source: "/google/cloud/discoveryengine/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-discoveryengine/$1/google-cloud-discoveryengine/src/main" - source: "/google/cloud/discoveryengine/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-discoveryengine/$1/samples/snippets/generated" diff --git a/java-distributedcloudedge/.OwlBot-hermetic.yaml b/java-distributedcloudedge/.OwlBot-hermetic.yaml index 9f1ab595cbea..24a539c31f61 100644 --- a/java-distributedcloudedge/.OwlBot-hermetic.yaml +++ b/java-distributedcloudedge/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-distributedcloudedge/grpc-google-.*/src" - "/java-distributedcloudedge/proto-google-.*/src" -- "/java-distributedcloudedge/google-.*/src" +- "/java-distributedcloudedge/google-.*/src/main" +- "/java-distributedcloudedge/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-distributedcloudedge/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-distributedcloudedge/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-distributedcloudedge/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/edgecontainer/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-distributedcloudedge/$1/proto-google-cloud-distributedcloudedge-$1/src" - source: "/google/cloud/edgecontainer/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-distributedcloudedge/$1/grpc-google-cloud-distributedcloudedge-$1/src" -- source: "/google/cloud/edgecontainer/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-distributedcloudedge/$1/google-cloud-distributedcloudedge/src" +- source: "/google/cloud/edgecontainer/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-distributedcloudedge/$1/google-cloud-distributedcloudedge/src/main" - source: "/google/cloud/edgecontainer/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-distributedcloudedge/$1/samples/snippets/generated" diff --git a/java-dlp/.OwlBot-hermetic.yaml b/java-dlp/.OwlBot-hermetic.yaml index bdf0a59ff171..0037d23c57c9 100644 --- a/java-dlp/.OwlBot-hermetic.yaml +++ b/java-dlp/.OwlBot-hermetic.yaml @@ -16,12 +16,14 @@ deep-remove-regex: - "/java-dlp/grpc-google-.*/src" - "/java-dlp/proto-google-.*/src" -- "/java-dlp/google-.*/src" +- "/java-dlp/google-.*/src/main" +- "/java-dlp/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-dlp/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-dlp/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-dlp/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplateNames.java" - "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectFindingName.java" - "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateNames.java" @@ -42,8 +44,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-dlp/$1/proto-google-cloud-dlp-$1/src" - source: "/google/privacy/dlp/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-dlp/$1/grpc-google-cloud-dlp-$1/src" -- source: "/google/privacy/dlp/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-dlp/$1/google-cloud-dlp/src" +- source: "/google/privacy/dlp/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-dlp/$1/google-cloud-dlp/src/main" - source: "/google/privacy/dlp/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-dlp/$1/samples/snippets/generated" diff --git a/java-dms/.OwlBot-hermetic.yaml b/java-dms/.OwlBot-hermetic.yaml index ba833f573253..d67e54433055 100644 --- a/java-dms/.OwlBot-hermetic.yaml +++ b/java-dms/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-dms/samples/snippets/generated" - "/java-dms/grpc-google-.*/src" - "/java-dms/proto-google-.*/src" -- "/java-dms/google-.*/src" +- "/java-dms/google-.*/src/main" +- "/java-dms/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-dms/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-dms/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-dms/$1/proto-google-cloud-dms-$1/src" - source: "/google/cloud/clouddms/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-dms/$1/grpc-google-cloud-dms-$1/src" -- source: "/google/cloud/clouddms/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-dms/$1/google-cloud-dms/src" +- source: "/google/cloud/clouddms/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-dms/$1/google-cloud-dms/src/main" - source: "/google/cloud/clouddms/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-dms/$1/samples/snippets/generated" diff --git a/java-document-ai/.OwlBot-hermetic.yaml b/java-document-ai/.OwlBot-hermetic.yaml index 8959e8b04037..9371dfb82bec 100644 --- a/java-document-ai/.OwlBot-hermetic.yaml +++ b/java-document-ai/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-document-ai/samples/snippets/generated" - "/java-document-ai/grpc-google-.*/src" - "/java-document-ai/proto-google-.*/src" -- "/java-document-ai/google-.*/src" +- "/java-document-ai/google-.*/src/main" +- "/java-document-ai/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-document-ai/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-document-ai/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-document-ai/$1/proto-google-cloud-document-ai-$1/src" - source: "/google/cloud/documentai/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-document-ai/$1/grpc-google-cloud-document-ai-$1/src" -- source: "/google/cloud/documentai/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-document-ai/$1/google-cloud-document-ai/src" +- source: "/google/cloud/documentai/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-document-ai/$1/google-cloud-document-ai/src/main" - source: "/google/cloud/documentai/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-document-ai/$1/samples/snippets/generated" diff --git a/java-domains/.OwlBot-hermetic.yaml b/java-domains/.OwlBot-hermetic.yaml index 9a459f552625..1b301f4f83dc 100644 --- a/java-domains/.OwlBot-hermetic.yaml +++ b/java-domains/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-domains/samples/snippets/generated" - "/java-domains/grpc-google-.*/src" - "/java-domains/proto-google-.*/src" -- "/java-domains/google-.*/src" +- "/java-domains/google-.*/src/main" +- "/java-domains/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-domains/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-domains/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-domains/$1/proto-google-cloud-domains-$1/src" - source: "/google/cloud/domains/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-domains/$1/grpc-google-cloud-domains-$1/src" -- source: "/google/cloud/domains/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-domains/$1/google-cloud-domains/src" +- source: "/google/cloud/domains/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-domains/$1/google-cloud-domains/src/main" - source: "/google/cloud/domains/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-domains/$1/samples/snippets/generated" diff --git a/java-edgenetwork/.OwlBot-hermetic.yaml b/java-edgenetwork/.OwlBot-hermetic.yaml index 715992af0f10..97571caf4441 100644 --- a/java-edgenetwork/.OwlBot-hermetic.yaml +++ b/java-edgenetwork/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-edgenetwork/grpc-google-.*/src" - "/java-edgenetwork/proto-google-.*/src" -- "/java-edgenetwork/google-.*/src" +- "/java-edgenetwork/google-.*/src/main" +- "/java-edgenetwork/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-edgenetwork/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-edgenetwork/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-edgenetwork/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/edgenetwork/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-edgenetwork/$1/proto-google-cloud-edgenetwork-$1/src" - source: "/google/cloud/edgenetwork/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-edgenetwork/$1/grpc-google-cloud-edgenetwork-$1/src" -- source: "/google/cloud/edgenetwork/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-edgenetwork/$1/google-cloud-edgenetwork/src" +- source: "/google/cloud/edgenetwork/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-edgenetwork/$1/google-cloud-edgenetwork/src/main" - source: "/google/cloud/edgenetwork/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-edgenetwork/$1/samples/snippets/generated" diff --git a/java-enterpriseknowledgegraph/.OwlBot-hermetic.yaml b/java-enterpriseknowledgegraph/.OwlBot-hermetic.yaml index 6dee08352840..5ee80a297817 100644 --- a/java-enterpriseknowledgegraph/.OwlBot-hermetic.yaml +++ b/java-enterpriseknowledgegraph/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-enterpriseknowledgegraph/grpc-google-.*/src" - "/java-enterpriseknowledgegraph/proto-google-.*/src" -- "/java-enterpriseknowledgegraph/google-.*/src" +- "/java-enterpriseknowledgegraph/google-.*/src/main" +- "/java-enterpriseknowledgegraph/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-enterpriseknowledgegraph/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-enterpriseknowledgegraph/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-enterpriseknowledgegraph/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/enterpriseknowledgegraph/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-enterpriseknowledgegraph/$1/proto-google-cloud-enterpriseknowledgegraph-$1/src" - source: "/google/cloud/enterpriseknowledgegraph/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-enterpriseknowledgegraph/$1/grpc-google-cloud-enterpriseknowledgegraph-$1/src" -- source: "/google/cloud/enterpriseknowledgegraph/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-enterpriseknowledgegraph/$1/google-cloud-enterpriseknowledgegraph/src" +- source: "/google/cloud/enterpriseknowledgegraph/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-enterpriseknowledgegraph/$1/google-cloud-enterpriseknowledgegraph/src/main" - source: "/google/cloud/enterpriseknowledgegraph/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-enterpriseknowledgegraph/$1/samples/snippets/generated" diff --git a/java-errorreporting/.OwlBot-hermetic.yaml b/java-errorreporting/.OwlBot-hermetic.yaml index a1e48c565f94..84dc0c49ab67 100644 --- a/java-errorreporting/.OwlBot-hermetic.yaml +++ b/java-errorreporting/.OwlBot-hermetic.yaml @@ -16,12 +16,14 @@ deep-remove-regex: - "/java-errorreporting/grpc-google-.*/src" - "/java-errorreporting/proto-google-.*/src" -- "/java-errorreporting/google-.*/src" +- "/java-errorreporting/google-.*/src/main" +- "/java-errorreporting/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-errorreporting/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-errorreporting/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-errorreporting/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*google-cloud-errorreporting/src/test/java/com/google/devtools/clouderrorreporting/v1beta1/ITSystemTest.java" - "/.*proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/GroupName.java" @@ -30,8 +32,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-errorreporting/$1/proto-google-cloud-error-reporting-$1/src" - source: "/google/devtools/clouderrorreporting/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-errorreporting/$1/grpc-google-cloud-error-reporting-$1/src" -- source: "/google/devtools/clouderrorreporting/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-errorreporting/$1/google-cloud-errorreporting/src" +- source: "/google/devtools/clouderrorreporting/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-errorreporting/$1/google-cloud-errorreporting/src/main" - source: "/google/devtools/clouderrorreporting/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-errorreporting/$1/samples/snippets/generated" diff --git a/java-essential-contacts/.OwlBot-hermetic.yaml b/java-essential-contacts/.OwlBot-hermetic.yaml index 680559efcaa3..c335a5dc5aba 100644 --- a/java-essential-contacts/.OwlBot-hermetic.yaml +++ b/java-essential-contacts/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-essential-contacts/samples/snippets/generated" - "/java-essential-contacts/grpc-google-.*/src" - "/java-essential-contacts/proto-google-.*/src" -- "/java-essential-contacts/google-.*/src" +- "/java-essential-contacts/google-.*/src/main" +- "/java-essential-contacts/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-essential-contacts/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-essential-contacts/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-essential-contacts/$1/proto-google-cloud-essential-contacts-$1/src" - source: "/google/cloud/essentialcontacts/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-essential-contacts/$1/grpc-google-cloud-essential-contacts-$1/src" -- source: "/google/cloud/essentialcontacts/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-essential-contacts/$1/google-cloud-essential-contacts/src" +- source: "/google/cloud/essentialcontacts/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-essential-contacts/$1/google-cloud-essential-contacts/src/main" - source: "/google/cloud/essentialcontacts/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-essential-contacts/$1/samples/snippets/generated" diff --git a/java-eventarc-publishing/.OwlBot-hermetic.yaml b/java-eventarc-publishing/.OwlBot-hermetic.yaml index 3a4e887b35d8..b549b701fe05 100644 --- a/java-eventarc-publishing/.OwlBot-hermetic.yaml +++ b/java-eventarc-publishing/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-eventarc-publishing/grpc-google-.*/src" - "/java-eventarc-publishing/proto-google-.*/src" -- "/java-eventarc-publishing/google-.*/src" +- "/java-eventarc-publishing/google-.*/src/main" +- "/java-eventarc-publishing/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-eventarc-publishing/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-eventarc-publishing/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-eventarc-publishing/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/eventarc/publishing/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-eventarc-publishing/$1/proto-google-cloud-eventarc-publishing-$1/src" - source: "/google/cloud/eventarc/publishing/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-eventarc-publishing/$1/grpc-google-cloud-eventarc-publishing-$1/src" -- source: "/google/cloud/eventarc/publishing/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-eventarc-publishing/$1/google-cloud-eventarc-publishing/src" +- source: "/google/cloud/eventarc/publishing/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-eventarc-publishing/$1/google-cloud-eventarc-publishing/src/main" - source: "/google/cloud/eventarc/publishing/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-eventarc-publishing/$1/samples/snippets/generated" diff --git a/java-eventarc/.OwlBot-hermetic.yaml b/java-eventarc/.OwlBot-hermetic.yaml index c8218dd34cad..f2be15bf97e0 100644 --- a/java-eventarc/.OwlBot-hermetic.yaml +++ b/java-eventarc/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-eventarc/samples/snippets/generated" - "/java-eventarc/grpc-google-.*/src" - "/java-eventarc/proto-google-.*/src" -- "/java-eventarc/google-.*/src" +- "/java-eventarc/google-.*/src/main" +- "/java-eventarc/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-eventarc/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-eventarc/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/eventarc/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-eventarc/$1/proto-google-cloud-eventarc-$1/src" - source: "/google/cloud/eventarc/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-eventarc/$1/grpc-google-cloud-eventarc-$1/src" -- source: "/google/cloud/eventarc/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-eventarc/$1/google-cloud-eventarc/src" +- source: "/google/cloud/eventarc/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-eventarc/$1/google-cloud-eventarc/src/main" - source: "/google/cloud/eventarc/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-eventarc/$1/samples/snippets/generated" diff --git a/java-filestore/.OwlBot-hermetic.yaml b/java-filestore/.OwlBot-hermetic.yaml index ce2daa3e6763..c35194e743df 100644 --- a/java-filestore/.OwlBot-hermetic.yaml +++ b/java-filestore/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-filestore/samples/snippets/generated" - "/java-filestore/grpc-google-.*/src" - "/java-filestore/proto-google-.*/src" -- "/java-filestore/google-.*/src" +- "/java-filestore/google-.*/src/main" +- "/java-filestore/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-filestore/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-filestore/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/filestore/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-filestore/$1/proto-google-cloud-filestore-$1/src" - source: "/google/cloud/filestore/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-filestore/$1/grpc-google-cloud-filestore-$1/src" -- source: "/google/cloud/filestore/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-filestore/$1/google-cloud-filestore/src" +- source: "/google/cloud/filestore/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-filestore/$1/google-cloud-filestore/src/main" - source: "/google/cloud/filestore/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-filestore/$1/samples/snippets/generated" diff --git a/java-financialservices/.OwlBot-hermetic.yaml b/java-financialservices/.OwlBot-hermetic.yaml index bd926e264c52..77d768acb475 100644 --- a/java-financialservices/.OwlBot-hermetic.yaml +++ b/java-financialservices/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-financialservices/grpc-google-.*/src" - "/java-financialservices/proto-google-.*/src" -- "/java-financialservices/google-.*/src" +- "/java-financialservices/google-.*/src/main" +- "/java-financialservices/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-financialservices/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-financialservices/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-financialservices/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/financialservices/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-financialservices/$1/proto-google-cloud-financialservices-$1/src" - source: "/google/cloud/financialservices/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-financialservices/$1/grpc-google-cloud-financialservices-$1/src" -- source: "/google/cloud/financialservices/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-financialservices/$1/google-cloud-financialservices/src" +- source: "/google/cloud/financialservices/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-financialservices/$1/google-cloud-financialservices/src/main" - source: "/google/cloud/financialservices/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-financialservices/$1/samples/snippets/generated" diff --git a/java-functions/.OwlBot-hermetic.yaml b/java-functions/.OwlBot-hermetic.yaml index 81a03b0007ca..a1b52428d66b 100644 --- a/java-functions/.OwlBot-hermetic.yaml +++ b/java-functions/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-functions/samples/snippets/generated" - "/java-functions/grpc-google-.*/src" - "/java-functions/proto-google-.*/src" -- "/java-functions/google-.*/src" +- "/java-functions/google-.*/src/main" +- "/java-functions/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-functions/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-functions/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: @@ -28,8 +31,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-functions/$1/proto-google-cloud-functions-$1/src" - source: "/google/cloud/functions/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-functions/$1/grpc-google-cloud-functions-$1/src" -- source: "/google/cloud/functions/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-functions/$1/google-cloud-functions/src" +- source: "/google/cloud/functions/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-functions/$1/google-cloud-functions/src/main" - source: "/google/cloud/functions/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-functions/$1/samples/snippets/generated" diff --git a/java-gdchardwaremanagement/.OwlBot-hermetic.yaml b/java-gdchardwaremanagement/.OwlBot-hermetic.yaml index 70c7f35214c2..a0b0927607ec 100644 --- a/java-gdchardwaremanagement/.OwlBot-hermetic.yaml +++ b/java-gdchardwaremanagement/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-gdchardwaremanagement/grpc-google-.*/src" - "/java-gdchardwaremanagement/proto-google-.*/src" -- "/java-gdchardwaremanagement/google-.*/src" +- "/java-gdchardwaremanagement/google-.*/src/main" +- "/java-gdchardwaremanagement/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-gdchardwaremanagement/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-gdchardwaremanagement/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-gdchardwaremanagement/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/gdchardwaremanagement/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-gdchardwaremanagement/$1/proto-google-cloud-gdchardwaremanagement-$1/src" - source: "/google/cloud/gdchardwaremanagement/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-gdchardwaremanagement/$1/grpc-google-cloud-gdchardwaremanagement-$1/src" -- source: "/google/cloud/gdchardwaremanagement/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-gdchardwaremanagement/$1/google-cloud-gdchardwaremanagement/src" +- source: "/google/cloud/gdchardwaremanagement/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-gdchardwaremanagement/$1/google-cloud-gdchardwaremanagement/src/main" - source: "/google/cloud/gdchardwaremanagement/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-gdchardwaremanagement/$1/samples/snippets/generated" diff --git a/java-geminidataanalytics/.OwlBot-hermetic.yaml b/java-geminidataanalytics/.OwlBot-hermetic.yaml index b1949c92ae25..670524d902df 100644 --- a/java-geminidataanalytics/.OwlBot-hermetic.yaml +++ b/java-geminidataanalytics/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-geminidataanalytics/grpc-google-.*/src" - "/java-geminidataanalytics/proto-google-.*/src" -- "/java-geminidataanalytics/google-.*/src" +- "/java-geminidataanalytics/google-.*/src/main" +- "/java-geminidataanalytics/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-geminidataanalytics/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-geminidataanalytics/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-geminidataanalytics/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/geminidataanalytics/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-geminidataanalytics/$1/proto-google-cloud-geminidataanalytics-$1/src" - source: "/google/cloud/geminidataanalytics/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-geminidataanalytics/$1/grpc-google-cloud-geminidataanalytics-$1/src" -- source: "/google/cloud/geminidataanalytics/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-geminidataanalytics/$1/google-cloud-geminidataanalytics/src" +- source: "/google/cloud/geminidataanalytics/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-geminidataanalytics/$1/google-cloud-geminidataanalytics/src/main" - source: "/google/cloud/geminidataanalytics/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-geminidataanalytics/$1/samples/snippets/generated" diff --git a/java-gke-backup/.OwlBot-hermetic.yaml b/java-gke-backup/.OwlBot-hermetic.yaml index 51cb1bf65bb7..20309e53bd9e 100644 --- a/java-gke-backup/.OwlBot-hermetic.yaml +++ b/java-gke-backup/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-gke-backup/samples/snippets/generated" - "/java-gke-backup/grpc-google-.*/src" - "/java-gke-backup/proto-google-.*/src" -- "/java-gke-backup/google-.*/src" +- "/java-gke-backup/google-.*/src/main" +- "/java-gke-backup/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-gke-backup/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-gke-backup/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/gkebackup/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-gke-backup/$1/proto-google-cloud-gke-backup-$1/src" - source: "/google/cloud/gkebackup/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-gke-backup/$1/grpc-google-cloud-gke-backup-$1/src" -- source: "/google/cloud/gkebackup/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-gke-backup/$1/google-cloud-gke-backup/src" +- source: "/google/cloud/gkebackup/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-gke-backup/$1/google-cloud-gke-backup/src/main" - source: "/google/cloud/gkebackup/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-gke-backup/$1/samples/snippets/generated" diff --git a/java-gke-connect-gateway/.OwlBot-hermetic.yaml b/java-gke-connect-gateway/.OwlBot-hermetic.yaml index 16bd4a77ffbf..b4ab90118234 100644 --- a/java-gke-connect-gateway/.OwlBot-hermetic.yaml +++ b/java-gke-connect-gateway/.OwlBot-hermetic.yaml @@ -16,7 +16,10 @@ deep-remove-regex: - "/java-gke-connect-gateway/samples/snippets/generated" - "/java-gke-connect-gateway/proto-google-.*/src" -- "/java-gke-connect-gateway/google-.*/src" +- "/java-gke-connect-gateway/google-.*/src/main" +- "/java-gke-connect-gateway/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-gke-connect-gateway/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-gke-connect-gateway/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -24,8 +27,8 @@ deep-preserve-regex: deep-copy-regex: - source: "/google/cloud/gkeconnect/gateway/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-gke-connect-gateway/$1/proto-google-cloud-gke-connect-gateway-$1/src" -- source: "/google/cloud/gkeconnect/gateway/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-gke-connect-gateway/$1/google-cloud-gke-connect-gateway/src" +- source: "/google/cloud/gkeconnect/gateway/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-gke-connect-gateway/$1/google-cloud-gke-connect-gateway/src/main" - source: "/google/cloud/gkeconnect/gateway/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-gke-connect-gateway/$1/samples/snippets/generated" diff --git a/java-gke-multi-cloud/.OwlBot-hermetic.yaml b/java-gke-multi-cloud/.OwlBot-hermetic.yaml index d0362b60f2d0..e03761e20155 100644 --- a/java-gke-multi-cloud/.OwlBot-hermetic.yaml +++ b/java-gke-multi-cloud/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-gke-multi-cloud/samples/snippets/generated" - "/java-gke-multi-cloud/grpc-google-.*/src" - "/java-gke-multi-cloud/proto-google-.*/src" -- "/java-gke-multi-cloud/google-.*/src" +- "/java-gke-multi-cloud/google-.*/src/main" +- "/java-gke-multi-cloud/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-gke-multi-cloud/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-gke-multi-cloud/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/gkemulticloud/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-gke-multi-cloud/$1/proto-google-cloud-gke-multi-cloud-$1/src" - source: "/google/cloud/gkemulticloud/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-gke-multi-cloud/$1/grpc-google-cloud-gke-multi-cloud-$1/src" -- source: "/google/cloud/gkemulticloud/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-gke-multi-cloud/$1/google-cloud-gke-multi-cloud/src" +- source: "/google/cloud/gkemulticloud/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-gke-multi-cloud/$1/google-cloud-gke-multi-cloud/src/main" - source: "/google/cloud/gkemulticloud/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-gke-multi-cloud/$1/samples/snippets/generated" diff --git a/java-gkehub/.OwlBot-hermetic.yaml b/java-gkehub/.OwlBot-hermetic.yaml index 9a55f24ec07e..933e298e71b4 100644 --- a/java-gkehub/.OwlBot-hermetic.yaml +++ b/java-gkehub/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-gkehub/samples/snippets/generated" - "/java-gkehub/grpc-google-.*/src" - "/java-gkehub/proto-google-.*/src" -- "/java-gkehub/google-.*/src" +- "/java-gkehub/google-.*/src/main" +- "/java-gkehub/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-gkehub/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-gkehub/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-gkehub/$1/proto-google-cloud-gkehub-$1/src" - source: "/google/cloud/gkehub/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-gkehub/$1/grpc-google-cloud-gkehub-$1/src" -- source: "/google/cloud/gkehub/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-gkehub/$1/google-cloud-gkehub/src" +- source: "/google/cloud/gkehub/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-gkehub/$1/google-cloud-gkehub/src/main" - source: "/google/cloud/gkehub/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-gkehub/$1/samples/snippets/generated" - source: "/google/cloud/gkehub/servicemesh/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-gkerecommender/.OwlBot-hermetic.yaml b/java-gkerecommender/.OwlBot-hermetic.yaml index b4cf42e7300a..f57855076b10 100644 --- a/java-gkerecommender/.OwlBot-hermetic.yaml +++ b/java-gkerecommender/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-gkerecommender/grpc-google-.*/src" - "/java-gkerecommender/proto-google-.*/src" -- "/java-gkerecommender/google-.*/src" +- "/java-gkerecommender/google-.*/src/main" +- "/java-gkerecommender/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-gkerecommender/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-gkerecommender/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-gkerecommender/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/gkerecommender/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-gkerecommender/$1/proto-google-cloud-gkerecommender-$1/src" - source: "/google/cloud/gkerecommender/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-gkerecommender/$1/grpc-google-cloud-gkerecommender-$1/src" -- source: "/google/cloud/gkerecommender/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-gkerecommender/$1/google-cloud-gkerecommender/src" +- source: "/google/cloud/gkerecommender/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-gkerecommender/$1/google-cloud-gkerecommender/src/main" - source: "/google/cloud/gkerecommender/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-gkerecommender/$1/samples/snippets/generated" diff --git a/java-grafeas/.OwlBot-hermetic.yaml b/java-grafeas/.OwlBot-hermetic.yaml index f57dd3985cba..c486a20cf1a5 100644 --- a/java-grafeas/.OwlBot-hermetic.yaml +++ b/java-grafeas/.OwlBot-hermetic.yaml @@ -18,7 +18,7 @@ deep-remove-regex: deep-preserve-regex: - "/.*src/main/java/.*/stub/Version.java" -- "/.*src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*src/test/java/com/google/.*/v.*/it/IT.*Test.java" - "/.*samples/snippets/generated" deep-copy-regex: @@ -26,7 +26,7 @@ deep-copy-regex: dest: "/owl-bot-staging/java-grafeas/$1/src" - source: "/grafeas/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-grafeas/$1/src" -- source: "/grafeas/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-grafeas/$1/src" +- source: "/grafeas/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-grafeas/$1/src/main" api-name: containeranalysis diff --git a/java-gsuite-addons/.OwlBot-hermetic.yaml b/java-gsuite-addons/.OwlBot-hermetic.yaml index ea7940af5140..62c1b5af0648 100644 --- a/java-gsuite-addons/.OwlBot-hermetic.yaml +++ b/java-gsuite-addons/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-gsuite-addons/samples/snippets/generated" - "/java-gsuite-addons/grpc-google-.*/src" - "/java-gsuite-addons/proto-google-.*/src" -- "/java-gsuite-addons/google-.*/src" +- "/java-gsuite-addons/google-.*/src/main" +- "/java-gsuite-addons/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-gsuite-addons/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-gsuite-addons/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-gsuite-addons/$1/proto-google-cloud-gsuite-addons-$1/src" - source: "/google/cloud/gsuiteaddons/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-gsuite-addons/$1/grpc-google-cloud-gsuite-addons-$1/src" -- source: "/google/cloud/gsuiteaddons/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-gsuite-addons/$1/google-cloud-gsuite-addons/src" +- source: "/google/cloud/gsuiteaddons/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-gsuite-addons/$1/google-cloud-gsuite-addons/src/main" - source: "/google/apps/script/type/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-gsuite-addons/v1/proto-google-apps-script-type-protos/src" - source: "/google/apps/script/type/calendar/.*-java/proto-google-.*/src" diff --git a/java-health/.OwlBot-hermetic.yaml b/java-health/.OwlBot-hermetic.yaml index 154283fb9b98..7fad515fad88 100644 --- a/java-health/.OwlBot-hermetic.yaml +++ b/java-health/.OwlBot-hermetic.yaml @@ -16,19 +16,20 @@ deep-remove-regex: - "/java-health/grpc-google-.*/src" - "/java-health/proto-google-.*/src" -- "/java-health/google-.*/src" +- "/java-health/google-.*/src/main" +- "/java-health/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-health/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-health/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-health/samples/snippets/generated" deep-preserve-regex: -- "/java-health/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/devicesandservices/health/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-health/$1/proto-google-cloud-health-$1/src" - source: "/google/devicesandservices/health/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-health/$1/grpc-google-cloud-health-$1/src" -- source: "/google/devicesandservices/health/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-health/$1/google-cloud-health/src" +- source: "/google/devicesandservices/health/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-health/$1/google-cloud-health/src/main" - source: "/google/devicesandservices/health/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-health/$1/samples/snippets/generated" diff --git a/java-hypercomputecluster/.OwlBot-hermetic.yaml b/java-hypercomputecluster/.OwlBot-hermetic.yaml index 051c5d42a39f..925335d07c0c 100644 --- a/java-hypercomputecluster/.OwlBot-hermetic.yaml +++ b/java-hypercomputecluster/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-hypercomputecluster/grpc-google-.*/src" - "/java-hypercomputecluster/proto-google-.*/src" -- "/java-hypercomputecluster/google-.*/src" +- "/java-hypercomputecluster/google-.*/src/main" +- "/java-hypercomputecluster/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-hypercomputecluster/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-hypercomputecluster/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-hypercomputecluster/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/hypercomputecluster/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-hypercomputecluster/$1/proto-google-cloud-hypercomputecluster-$1/src" - source: "/google/cloud/hypercomputecluster/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-hypercomputecluster/$1/grpc-google-cloud-hypercomputecluster-$1/src" -- source: "/google/cloud/hypercomputecluster/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-hypercomputecluster/$1/google-cloud-hypercomputecluster/src" +- source: "/google/cloud/hypercomputecluster/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-hypercomputecluster/$1/google-cloud-hypercomputecluster/src/main" - source: "/google/cloud/hypercomputecluster/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-hypercomputecluster/$1/samples/snippets/generated" diff --git a/java-iam-admin/.OwlBot-hermetic.yaml b/java-iam-admin/.OwlBot-hermetic.yaml index e74f012edbc3..62f602bc5388 100644 --- a/java-iam-admin/.OwlBot-hermetic.yaml +++ b/java-iam-admin/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-iam-admin/grpc-google-.*/src" - "/java-iam-admin/proto-google-.*/src" -- "/java-iam-admin/google-.*/src" +- "/java-iam-admin/google-.*/src/main" +- "/java-iam-admin/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-iam-admin/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-iam-admin/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-iam-admin/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/iam/admin/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-iam-admin/$1/proto-google-iam-admin-$1/src" - source: "/google/iam/admin/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-iam-admin/$1/grpc-google-iam-admin-$1/src" -- source: "/google/iam/admin/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-iam-admin/$1/google-iam-admin/src" +- source: "/google/iam/admin/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-iam-admin/$1/google-iam-admin/src/main" - source: "/google/iam/admin/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-iam-admin/$1/samples/snippets/generated" diff --git a/java-iam-policy/.OwlBot-hermetic.yaml b/java-iam-policy/.OwlBot-hermetic.yaml index 2ef1c1ef9084..c70e1881b0e6 100644 --- a/java-iam-policy/.OwlBot-hermetic.yaml +++ b/java-iam-policy/.OwlBot-hermetic.yaml @@ -19,17 +19,16 @@ deep-remove-regex: deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" - - "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*samples/snippets/generated" deep-copy-regex: - - source: "/google/iam/v2beta/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-iam-policy/v2beta/google-iam-policy/src" - - source: "/google/iam/v2/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-iam-policy/v2/google-iam-policy/src" - - source: "/google/iam/v3/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-iam-policy/v3/google-iam-policy/src" - - source: "/google/iam/v3beta/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-iam-policy/v3beta/google-iam-policy/src" + - source: "/google/iam/v2beta/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-iam-policy/v2beta/google-iam-policy/src/main" + - source: "/google/iam/v2/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-iam-policy/v2/google-iam-policy/src/main" + - source: "/google/iam/v3/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-iam-policy/v3/google-iam-policy/src/main" + - source: "/google/iam/v3beta/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-iam-policy/v3beta/google-iam-policy/src/main" api-name: iam-policy diff --git a/java-iamcredentials/.OwlBot-hermetic.yaml b/java-iamcredentials/.OwlBot-hermetic.yaml index a46cb39bbbc4..c50cb841e7a0 100644 --- a/java-iamcredentials/.OwlBot-hermetic.yaml +++ b/java-iamcredentials/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-iamcredentials/grpc-google-.*/src" - "/java-iamcredentials/proto-google-.*/src" -- "/java-iamcredentials/google-.*/src" +- "/java-iamcredentials/google-.*/src/main" +- "/java-iamcredentials/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-iamcredentials/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-iamcredentials/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-iamcredentials/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/iam/credentials/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-iamcredentials/$1/proto-google-cloud-iamcredentials-$1/src" - source: "/google/iam/credentials/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-iamcredentials/$1/grpc-google-cloud-iamcredentials-$1/src" -- source: "/google/iam/credentials/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-iamcredentials/$1/google-cloud-iamcredentials/src" +- source: "/google/iam/credentials/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-iamcredentials/$1/google-cloud-iamcredentials/src/main" - source: "/google/iam/credentials/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-iamcredentials/$1/samples/snippets/generated" diff --git a/java-iap/.OwlBot-hermetic.yaml b/java-iap/.OwlBot-hermetic.yaml index 8fa64f8e08e1..f8d95c788061 100644 --- a/java-iap/.OwlBot-hermetic.yaml +++ b/java-iap/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-iap/grpc-google-.*/src" - "/java-iap/proto-google-.*/src" -- "/java-iap/google-.*/src" +- "/java-iap/google-.*/src/main" +- "/java-iap/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-iap/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-iap/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-iap/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/iap/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-iap/$1/proto-google-cloud-iap-$1/src" - source: "/google/cloud/iap/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-iap/$1/grpc-google-cloud-iap-$1/src" -- source: "/google/cloud/iap/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-iap/$1/google-cloud-iap/src" +- source: "/google/cloud/iap/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-iap/$1/google-cloud-iap/src/main" - source: "/google/cloud/iap/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-iap/$1/samples/snippets/generated" diff --git a/java-ids/.OwlBot-hermetic.yaml b/java-ids/.OwlBot-hermetic.yaml index 6d6fc5e5c899..7ba09b0c72a2 100644 --- a/java-ids/.OwlBot-hermetic.yaml +++ b/java-ids/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-ids/samples/snippets/generated" - "/java-ids/grpc-google-.*/src" - "/java-ids/proto-google-.*/src" -- "/java-ids/google-.*/src" +- "/java-ids/google-.*/src/main" +- "/java-ids/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-ids/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-ids/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/ids/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-ids/$1/proto-google-cloud-ids-$1/src" - source: "/google/cloud/ids/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-ids/$1/grpc-google-cloud-ids-$1/src" -- source: "/google/cloud/ids/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-ids/$1/google-cloud-ids/src" +- source: "/google/cloud/ids/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-ids/$1/google-cloud-ids/src/main" - source: "/google/cloud/ids/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-ids/$1/samples/snippets/generated" diff --git a/java-infra-manager/.OwlBot-hermetic.yaml b/java-infra-manager/.OwlBot-hermetic.yaml index 470affd734f0..1cef27a83b7a 100644 --- a/java-infra-manager/.OwlBot-hermetic.yaml +++ b/java-infra-manager/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-infra-manager/grpc-google-.*/src" - "/java-infra-manager/proto-google-.*/src" -- "/java-infra-manager/google-.*/src" +- "/java-infra-manager/google-.*/src/main" +- "/java-infra-manager/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-infra-manager/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-infra-manager/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-infra-manager/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/config/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-infra-manager/$1/proto-google-cloud-infra-manager-$1/src" - source: "/google/cloud/config/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-infra-manager/$1/grpc-google-cloud-infra-manager-$1/src" -- source: "/google/cloud/config/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-infra-manager/$1/google-cloud-infra-manager/src" +- source: "/google/cloud/config/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-infra-manager/$1/google-cloud-infra-manager/src/main" - source: "/google/cloud/config/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-infra-manager/$1/samples/snippets/generated" diff --git a/java-iot/.OwlBot-hermetic.yaml b/java-iot/.OwlBot-hermetic.yaml index 3f3d084a78d2..e03e5c9644b8 100644 --- a/java-iot/.OwlBot-hermetic.yaml +++ b/java-iot/.OwlBot-hermetic.yaml @@ -17,19 +17,22 @@ deep-remove-regex: - "/java-iot/samples/snippets/generated" - "/java-iot/grpc-google-.*/src" - "/java-iot/proto-google-.*/src" -- "/java-iot/google-.*/src" +- "/java-iot/google-.*/src/main" +- "/java-iot/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-iot/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-iot/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-iot/src/test/java/com/google/cloud/iot/v1/it/ITSystemTest.java" +- "/.*google-cloud-iot/src/test/java/com/google/.*/iot/v1/it/ITSystemTest.java" deep-copy-regex: - source: "/google/cloud/iot/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-iot/$1/proto-google-cloud-iot-$1/src" - source: "/google/cloud/iot/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-iot/$1/grpc-google-cloud-iot-$1/src" -- source: "/google/cloud/iot/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-iot/$1/google-cloud-iot/src" +- source: "/google/cloud/iot/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-iot/$1/google-cloud-iot/src/main" - source: "/google/cloud/iot/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-iot/$1/samples/snippets/generated" diff --git a/java-java-shopping-merchant-issue-resolution/.OwlBot-hermetic.yaml b/java-java-shopping-merchant-issue-resolution/.OwlBot-hermetic.yaml index 4c537d62342e..9df662cbf149 100644 --- a/java-java-shopping-merchant-issue-resolution/.OwlBot-hermetic.yaml +++ b/java-java-shopping-merchant-issue-resolution/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-java-shopping-merchant-issue-resolution/grpc-google-.*/src" - "/java-java-shopping-merchant-issue-resolution/proto-google-.*/src" -- "/java-java-shopping-merchant-issue-resolution/google-.*/src" +- "/java-java-shopping-merchant-issue-resolution/google-.*/src/main" +- "/java-java-shopping-merchant-issue-resolution/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-java-shopping-merchant-issue-resolution/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-java-shopping-merchant-issue-resolution/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-java-shopping-merchant-issue-resolution/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/shopping/merchant/issueresolution/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-java-shopping-merchant-issue-resolution/$1/proto-google-shopping-merchant-issue-resolution-$1/src" - source: "/google/shopping/merchant/issueresolution/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-java-shopping-merchant-issue-resolution/$1/grpc-google-shopping-merchant-issue-resolution-$1/src" -- source: "/google/shopping/merchant/issueresolution/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-java-shopping-merchant-issue-resolution/$1/google-shopping-merchant-issue-resolution/src" +- source: "/google/shopping/merchant/issueresolution/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-java-shopping-merchant-issue-resolution/$1/google-shopping-merchant-issue-resolution/src/main" - source: "/google/shopping/merchant/issueresolution/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-java-shopping-merchant-issue-resolution/$1/samples/snippets/generated" diff --git a/java-java-shopping-merchant-order-tracking/.OwlBot-hermetic.yaml b/java-java-shopping-merchant-order-tracking/.OwlBot-hermetic.yaml index 676275b6ffed..5eec8f9491e4 100644 --- a/java-java-shopping-merchant-order-tracking/.OwlBot-hermetic.yaml +++ b/java-java-shopping-merchant-order-tracking/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-java-shopping-merchant-order-tracking/grpc-google-.*/src" - "/java-java-shopping-merchant-order-tracking/proto-google-.*/src" -- "/java-java-shopping-merchant-order-tracking/google-.*/src" +- "/java-java-shopping-merchant-order-tracking/google-.*/src/main" +- "/java-java-shopping-merchant-order-tracking/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-java-shopping-merchant-order-tracking/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-java-shopping-merchant-order-tracking/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-java-shopping-merchant-order-tracking/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/shopping/merchant/ordertracking/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-java-shopping-merchant-order-tracking/$1/proto-google-shopping-merchant-order-tracking-$1/src" - source: "/google/shopping/merchant/ordertracking/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-java-shopping-merchant-order-tracking/$1/grpc-google-shopping-merchant-order-tracking-$1/src" -- source: "/google/shopping/merchant/ordertracking/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-java-shopping-merchant-order-tracking/$1/google-shopping-merchant-order-tracking/src" +- source: "/google/shopping/merchant/ordertracking/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-java-shopping-merchant-order-tracking/$1/google-shopping-merchant-order-tracking/src/main" - source: "/google/shopping/merchant/ordertracking/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-java-shopping-merchant-order-tracking/$1/samples/snippets/generated" diff --git a/java-kms/.OwlBot-hermetic.yaml b/java-kms/.OwlBot-hermetic.yaml index ae489e0d9529..c1352c11bd12 100644 --- a/java-kms/.OwlBot-hermetic.yaml +++ b/java-kms/.OwlBot-hermetic.yaml @@ -17,15 +17,17 @@ deep-remove-regex: - "/java-kms/samples/snippets/generated" - "/java-kms/grpc-google-.*/src" - "/java-kms/proto-google-.*/src" -- "/java-kms/google-.*/src" +- "/java-kms/google-.*/src/main" +- "/java-kms/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-kms/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-kms/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UntypedKeyName.java" - "/.*proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyName.java" - "/.*proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyNames.java" -- "/.*google-cloud-kms/src/test/java/com/google/cloud/kms/it/ITKmsTest.java" +- "/.*google-cloud-kms/src/test/java/com/google/.*/kms/it/ITKmsTest.java" - "/.*proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyPathName.java" deep-copy-regex: @@ -33,8 +35,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-kms/$1/proto-google-cloud-kms-$1/src" - source: "/google/cloud/kms/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-kms/$1/grpc-google-cloud-kms-$1/src" -- source: "/google/cloud/kms/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-kms/$1/google-cloud-kms/src" +- source: "/google/cloud/kms/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-kms/$1/google-cloud-kms/src/main" - source: "/google/cloud/kms/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-kms/$1/samples/snippets/generated" diff --git a/java-kmsinventory/.OwlBot-hermetic.yaml b/java-kmsinventory/.OwlBot-hermetic.yaml index 7cf69b4cf3e8..7b04f644b86f 100644 --- a/java-kmsinventory/.OwlBot-hermetic.yaml +++ b/java-kmsinventory/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-kmsinventory/grpc-google-.*/src" - "/java-kmsinventory/proto-google-.*/src" -- "/java-kmsinventory/google-.*/src" +- "/java-kmsinventory/google-.*/src/main" +- "/java-kmsinventory/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-kmsinventory/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-kmsinventory/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-kmsinventory/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/kms/inventory/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-kmsinventory/$1/proto-google-cloud-kmsinventory-$1/src" - source: "/google/cloud/kms/inventory/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-kmsinventory/$1/grpc-google-cloud-kmsinventory-$1/src" -- source: "/google/cloud/kms/inventory/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-kmsinventory/$1/google-cloud-kmsinventory/src" +- source: "/google/cloud/kms/inventory/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-kmsinventory/$1/google-cloud-kmsinventory/src/main" - source: "/google/cloud/kms/inventory/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-kmsinventory/$1/samples/snippets/generated" diff --git a/java-language/.OwlBot-hermetic.yaml b/java-language/.OwlBot-hermetic.yaml index 3575314d1c5e..7838f8035c42 100644 --- a/java-language/.OwlBot-hermetic.yaml +++ b/java-language/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-language/samples/snippets/generated" - "/java-language/grpc-google-.*/src" - "/java-language/proto-google-.*/src" -- "/java-language/google-.*/src" +- "/java-language/google-.*/src/main" +- "/java-language/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-language/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-language/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-language/$1/proto-google-cloud-language-$1/src" - source: "/google/cloud/language/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-language/$1/grpc-google-cloud-language-$1/src" -- source: "/google/cloud/language/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-language/$1/google-cloud-language/src" +- source: "/google/cloud/language/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-language/$1/google-cloud-language/src/main" - source: "/google/cloud/language/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-language/$1/samples/snippets/generated" diff --git a/java-licensemanager/.OwlBot-hermetic.yaml b/java-licensemanager/.OwlBot-hermetic.yaml index 54141164978a..f5e0c45a9b0a 100644 --- a/java-licensemanager/.OwlBot-hermetic.yaml +++ b/java-licensemanager/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-licensemanager/grpc-google-.*/src" - "/java-licensemanager/proto-google-.*/src" -- "/java-licensemanager/google-.*/src" +- "/java-licensemanager/google-.*/src/main" +- "/java-licensemanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-licensemanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-licensemanager/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-licensemanager/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/licensemanager/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-licensemanager/$1/proto-google-cloud-licensemanager-$1/src" - source: "/google/cloud/licensemanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-licensemanager/$1/grpc-google-cloud-licensemanager-$1/src" -- source: "/google/cloud/licensemanager/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-licensemanager/$1/google-cloud-licensemanager/src" +- source: "/google/cloud/licensemanager/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-licensemanager/$1/google-cloud-licensemanager/src/main" - source: "/google/cloud/licensemanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-licensemanager/$1/samples/snippets/generated" diff --git a/java-life-sciences/.OwlBot-hermetic.yaml b/java-life-sciences/.OwlBot-hermetic.yaml index ff8f09839eca..720701e587c2 100644 --- a/java-life-sciences/.OwlBot-hermetic.yaml +++ b/java-life-sciences/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-life-sciences/samples/snippets/generated" - "/java-life-sciences/grpc-google-.*/src" - "/java-life-sciences/proto-google-.*/src" -- "/java-life-sciences/google-.*/src" +- "/java-life-sciences/google-.*/src/main" +- "/java-life-sciences/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-life-sciences/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-life-sciences/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-life-sciences/$1/proto-google-cloud-life-sciences-$1/src" - source: "/google/cloud/lifesciences/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-life-sciences/$1/grpc-google-cloud-life-sciences-$1/src" -- source: "/google/cloud/lifesciences/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-life-sciences/$1/google-cloud-life-sciences/src" +- source: "/google/cloud/lifesciences/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-life-sciences/$1/google-cloud-life-sciences/src/main" - source: "/google/cloud/lifesciences/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-life-sciences/$1/samples/snippets/generated" diff --git a/java-locationfinder/.OwlBot-hermetic.yaml b/java-locationfinder/.OwlBot-hermetic.yaml index 531e37fe2169..643bb54672d8 100644 --- a/java-locationfinder/.OwlBot-hermetic.yaml +++ b/java-locationfinder/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-locationfinder/grpc-google-.*/src" - "/java-locationfinder/proto-google-.*/src" -- "/java-locationfinder/google-.*/src" +- "/java-locationfinder/google-.*/src/main" +- "/java-locationfinder/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-locationfinder/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-locationfinder/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-locationfinder/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/locationfinder/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-locationfinder/$1/proto-google-cloud-locationfinder-$1/src" - source: "/google/cloud/locationfinder/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-locationfinder/$1/grpc-google-cloud-locationfinder-$1/src" -- source: "/google/cloud/locationfinder/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-locationfinder/$1/google-cloud-locationfinder/src" +- source: "/google/cloud/locationfinder/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-locationfinder/$1/google-cloud-locationfinder/src/main" - source: "/google/cloud/locationfinder/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-locationfinder/$1/samples/snippets/generated" diff --git a/java-lustre/.OwlBot-hermetic.yaml b/java-lustre/.OwlBot-hermetic.yaml index 3c2b5a3e7c13..4d15a028513c 100644 --- a/java-lustre/.OwlBot-hermetic.yaml +++ b/java-lustre/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-lustre/grpc-google-.*/src" - "/java-lustre/proto-google-.*/src" -- "/java-lustre/google-.*/src" +- "/java-lustre/google-.*/src/main" +- "/java-lustre/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-lustre/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-lustre/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-lustre/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/lustre/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-lustre/$1/proto-google-cloud-lustre-$1/src" - source: "/google/cloud/lustre/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-lustre/$1/grpc-google-cloud-lustre-$1/src" -- source: "/google/cloud/lustre/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-lustre/$1/google-cloud-lustre/src" +- source: "/google/cloud/lustre/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-lustre/$1/google-cloud-lustre/src/main" - source: "/google/cloud/lustre/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-lustre/$1/samples/snippets/generated" diff --git a/java-maintenance/.OwlBot-hermetic.yaml b/java-maintenance/.OwlBot-hermetic.yaml index b2f51e965a8b..0f60b0a7933e 100644 --- a/java-maintenance/.OwlBot-hermetic.yaml +++ b/java-maintenance/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-maintenance/grpc-google-.*/src" - "/java-maintenance/proto-google-.*/src" -- "/java-maintenance/google-.*/src" +- "/java-maintenance/google-.*/src/main" +- "/java-maintenance/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-maintenance/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-maintenance/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-maintenance/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/maintenance/api/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maintenance/$1/proto-google-cloud-maintenance-$1/src" - source: "/google/cloud/maintenance/api/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maintenance/$1/grpc-google-cloud-maintenance-$1/src" -- source: "/google/cloud/maintenance/api/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-maintenance/$1/google-cloud-maintenance/src" +- source: "/google/cloud/maintenance/api/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-maintenance/$1/google-cloud-maintenance/src/main" - source: "/google/cloud/maintenance/api/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maintenance/$1/samples/snippets/generated" diff --git a/java-managed-identities/.OwlBot-hermetic.yaml b/java-managed-identities/.OwlBot-hermetic.yaml index d6211988d561..7a880bb440f9 100644 --- a/java-managed-identities/.OwlBot-hermetic.yaml +++ b/java-managed-identities/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-managed-identities/samples/snippets/generated" - "/java-managed-identities/grpc-google-.*/src" - "/java-managed-identities/proto-google-.*/src" -- "/java-managed-identities/google-.*/src" +- "/java-managed-identities/google-.*/src/main" +- "/java-managed-identities/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-managed-identities/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-managed-identities/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/managedidentities/(v\\d)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-managed-identities/$1/proto-google-cloud-managed-identities-$1/src" - source: "/google/cloud/managedidentities/(v\\d)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-managed-identities/$1/grpc-google-cloud-managed-identities-$1/src" -- source: "/google/cloud/managedidentities/(v\\d)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-managed-identities/$1/google-cloud-managed-identities/src" +- source: "/google/cloud/managedidentities/(v\\d)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-managed-identities/$1/google-cloud-managed-identities/src/main" - source: "/google/cloud/managedidentities/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-managed-identities/$1/samples/snippets/generated" diff --git a/java-managedkafka/.OwlBot-hermetic.yaml b/java-managedkafka/.OwlBot-hermetic.yaml index fe5fb3a73323..7c7c06cc025f 100644 --- a/java-managedkafka/.OwlBot-hermetic.yaml +++ b/java-managedkafka/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-managedkafka/grpc-google-.*/src" - "/java-managedkafka/proto-google-.*/src" -- "/java-managedkafka/google-.*/src" +- "/java-managedkafka/google-.*/src/main" +- "/java-managedkafka/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-managedkafka/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-managedkafka/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-managedkafka/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/managedkafka/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-managedkafka/$1/proto-google-cloud-managedkafka-$1/src" - source: "/google/cloud/managedkafka/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-managedkafka/$1/grpc-google-cloud-managedkafka-$1/src" -- source: "/google/cloud/managedkafka/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-managedkafka/$1/google-cloud-managedkafka/src" +- source: "/google/cloud/managedkafka/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-managedkafka/$1/google-cloud-managedkafka/src/main" - source: "/google/cloud/managedkafka/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-managedkafka/$1/samples/snippets/generated" diff --git a/java-maps-addressvalidation/.OwlBot-hermetic.yaml b/java-maps-addressvalidation/.OwlBot-hermetic.yaml index 6beb4c93ba5b..2bbc656606f6 100644 --- a/java-maps-addressvalidation/.OwlBot-hermetic.yaml +++ b/java-maps-addressvalidation/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-maps-addressvalidation/grpc-google-.*/src" - "/java-maps-addressvalidation/proto-google-.*/src" -- "/java-maps-addressvalidation/google-.*/src" +- "/java-maps-addressvalidation/google-.*/src/main" +- "/java-maps-addressvalidation/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-maps-addressvalidation/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-maps-addressvalidation/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-maps-addressvalidation/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/maps/addressvalidation/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-addressvalidation/$1/proto-google-maps-addressvalidation-$1/src" - source: "/google/maps/addressvalidation/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-addressvalidation/$1/grpc-google-maps-addressvalidation-$1/src" -- source: "/google/maps/addressvalidation/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-maps-addressvalidation/$1/google-maps-addressvalidation/src" +- source: "/google/maps/addressvalidation/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-maps-addressvalidation/$1/google-maps-addressvalidation/src/main" - source: "/google/maps/addressvalidation/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-addressvalidation/$1/samples/snippets/generated" diff --git a/java-maps-area-insights/.OwlBot-hermetic.yaml b/java-maps-area-insights/.OwlBot-hermetic.yaml index 8cec6d3a27e9..956a4c05f07a 100644 --- a/java-maps-area-insights/.OwlBot-hermetic.yaml +++ b/java-maps-area-insights/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-maps-area-insights/grpc-google-.*/src" - "/java-maps-area-insights/proto-google-.*/src" -- "/java-maps-area-insights/google-.*/src" +- "/java-maps-area-insights/google-.*/src/main" +- "/java-maps-area-insights/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-maps-area-insights/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-maps-area-insights/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-maps-area-insights/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/maps/areainsights/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-area-insights/$1/proto-google-maps-area-insights-$1/src" - source: "/google/maps/areainsights/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-area-insights/$1/grpc-google-maps-area-insights-$1/src" -- source: "/google/maps/areainsights/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-maps-area-insights/$1/google-maps-area-insights/src" +- source: "/google/maps/areainsights/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-maps-area-insights/$1/google-maps-area-insights/src/main" - source: "/google/maps/areainsights/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-area-insights/$1/samples/snippets/generated" diff --git a/java-maps-fleetengine-delivery/.OwlBot-hermetic.yaml b/java-maps-fleetengine-delivery/.OwlBot-hermetic.yaml index d708960cb963..0a82d1edc52b 100644 --- a/java-maps-fleetengine-delivery/.OwlBot-hermetic.yaml +++ b/java-maps-fleetengine-delivery/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-maps-fleetengine-delivery/grpc-google-.*/src" - "/java-maps-fleetengine-delivery/proto-google-.*/src" -- "/java-maps-fleetengine-delivery/google-.*/src" +- "/java-maps-fleetengine-delivery/google-.*/src/main" +- "/java-maps-fleetengine-delivery/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-maps-fleetengine-delivery/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-maps-fleetengine-delivery/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-maps-fleetengine-delivery/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/maps/fleetengine/delivery/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-fleetengine-delivery/$1/proto-google-maps-fleetengine-delivery-$1/src" - source: "/google/maps/fleetengine/delivery/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-fleetengine-delivery/$1/grpc-google-maps-fleetengine-delivery-$1/src" -- source: "/google/maps/fleetengine/delivery/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-maps-fleetengine-delivery/$1/google-maps-fleetengine-delivery/src" +- source: "/google/maps/fleetengine/delivery/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-maps-fleetengine-delivery/$1/google-maps-fleetengine-delivery/src/main" - source: "/google/maps/fleetengine/delivery/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-fleetengine-delivery/$1/samples/snippets/generated" diff --git a/java-maps-fleetengine/.OwlBot-hermetic.yaml b/java-maps-fleetengine/.OwlBot-hermetic.yaml index fc575f9d47a9..dbb5b459b6b5 100644 --- a/java-maps-fleetengine/.OwlBot-hermetic.yaml +++ b/java-maps-fleetengine/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-maps-fleetengine/grpc-google-.*/src" - "/java-maps-fleetengine/proto-google-.*/src" -- "/java-maps-fleetengine/google-.*/src" +- "/java-maps-fleetengine/google-.*/src/main" +- "/java-maps-fleetengine/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-maps-fleetengine/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-maps-fleetengine/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-maps-fleetengine/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/maps/fleetengine/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-fleetengine/$1/proto-google-maps-fleetengine-$1/src" - source: "/google/maps/fleetengine/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-fleetengine/$1/grpc-google-maps-fleetengine-$1/src" -- source: "/google/maps/fleetengine/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-maps-fleetengine/$1/google-maps-fleetengine/src" +- source: "/google/maps/fleetengine/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-maps-fleetengine/$1/google-maps-fleetengine/src/main" - source: "/google/maps/fleetengine/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-fleetengine/$1/samples/snippets/generated" diff --git a/java-maps-geocode/.OwlBot-hermetic.yaml b/java-maps-geocode/.OwlBot-hermetic.yaml index 0eb3d1729c18..aed78c88ac4d 100644 --- a/java-maps-geocode/.OwlBot-hermetic.yaml +++ b/java-maps-geocode/.OwlBot-hermetic.yaml @@ -16,11 +16,13 @@ deep-remove-regex: - "/java-maps-geocode/grpc-google-.*/src" - "/java-maps-geocode/proto-google-.*/src" -- "/java-maps-geocode/google-.*/src" +- "/java-maps-geocode/google-.*/src/main" +- "/java-maps-geocode/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-maps-geocode/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-maps-geocode/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-maps-geocode/samples/snippets/generated" deep-preserve-regex: -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*google-.*/src/main/java/.*/stub/Version.java" deep-copy-regex: @@ -28,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-maps-geocode/$1/proto-google-maps-geocode-$1/src" - source: "/google/maps/geocode/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-geocode/$1/grpc-google-maps-geocode-$1/src" -- source: "/google/maps/geocode/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-maps-geocode/$1/google-maps-geocode/src" +- source: "/google/maps/geocode/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-maps-geocode/$1/google-maps-geocode/src/main" - source: "/google/maps/geocode/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-geocode/$1/samples/snippets/generated" diff --git a/java-maps-mapmanagement/.OwlBot-hermetic.yaml b/java-maps-mapmanagement/.OwlBot-hermetic.yaml index 9cd55603c491..fbce07f3ebee 100644 --- a/java-maps-mapmanagement/.OwlBot-hermetic.yaml +++ b/java-maps-mapmanagement/.OwlBot-hermetic.yaml @@ -16,19 +16,20 @@ deep-remove-regex: - "/java-maps-mapmanagement/grpc-google-.*/src" - "/java-maps-mapmanagement/proto-google-.*/src" -- "/java-maps-mapmanagement/google-.*/src" +- "/java-maps-mapmanagement/google-.*/src/main" +- "/java-maps-mapmanagement/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-maps-mapmanagement/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-maps-mapmanagement/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-maps-mapmanagement/samples/snippets/generated" deep-preserve-regex: -- "/java-maps-mapmanagement/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/maps/mapmanagement/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-mapmanagement/$1/proto-google-maps-mapmanagement-$1/src" - source: "/google/maps/mapmanagement/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-mapmanagement/$1/grpc-google-maps-mapmanagement-$1/src" -- source: "/google/maps/mapmanagement/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-maps-mapmanagement/$1/google-maps-mapmanagement/src" +- source: "/google/maps/mapmanagement/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-maps-mapmanagement/$1/google-maps-mapmanagement/src/main" - source: "/google/maps/mapmanagement/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-mapmanagement/$1/samples/snippets/generated" diff --git a/java-maps-mapsplatformdatasets/.OwlBot-hermetic.yaml b/java-maps-mapsplatformdatasets/.OwlBot-hermetic.yaml index 048353339568..a72f8b7ce17f 100644 --- a/java-maps-mapsplatformdatasets/.OwlBot-hermetic.yaml +++ b/java-maps-mapsplatformdatasets/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-maps-mapsplatformdatasets/grpc-google-.*/src" - "/java-maps-mapsplatformdatasets/proto-google-.*/src" -- "/java-maps-mapsplatformdatasets/google-.*/src" +- "/java-maps-mapsplatformdatasets/google-.*/src/main" +- "/java-maps-mapsplatformdatasets/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-maps-mapsplatformdatasets/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-maps-mapsplatformdatasets/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-maps-mapsplatformdatasets/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/maps/mapsplatformdatasets/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-mapsplatformdatasets/$1/proto-google-maps-mapsplatformdatasets-$1/src" - source: "/google/maps/mapsplatformdatasets/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-mapsplatformdatasets/$1/grpc-google-maps-mapsplatformdatasets-$1/src" -- source: "/google/maps/mapsplatformdatasets/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-maps-mapsplatformdatasets/$1/google-maps-mapsplatformdatasets/src" +- source: "/google/maps/mapsplatformdatasets/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-maps-mapsplatformdatasets/$1/google-maps-mapsplatformdatasets/src/main" - source: "/google/maps/mapsplatformdatasets/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-mapsplatformdatasets/$1/samples/snippets/generated" diff --git a/java-maps-places/.OwlBot-hermetic.yaml b/java-maps-places/.OwlBot-hermetic.yaml index d0d48165c534..217211ba94ef 100644 --- a/java-maps-places/.OwlBot-hermetic.yaml +++ b/java-maps-places/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-maps-places/grpc-google-.*/src" - "/java-maps-places/proto-google-.*/src" -- "/java-maps-places/google-.*/src" +- "/java-maps-places/google-.*/src/main" +- "/java-maps-places/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-maps-places/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-maps-places/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-maps-places/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/maps/places/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-places/$1/proto-google-maps-places-$1/src" - source: "/google/maps/places/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-places/$1/grpc-google-maps-places-$1/src" -- source: "/google/maps/places/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-maps-places/$1/google-maps-places/src" +- source: "/google/maps/places/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-maps-places/$1/google-maps-places/src/main" - source: "/google/maps/places/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-places/$1/samples/snippets/generated" diff --git a/java-maps-routeoptimization/.OwlBot-hermetic.yaml b/java-maps-routeoptimization/.OwlBot-hermetic.yaml index e05ba15b2aa4..9f2e50a83bf3 100644 --- a/java-maps-routeoptimization/.OwlBot-hermetic.yaml +++ b/java-maps-routeoptimization/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-maps-routeoptimization/grpc-google-.*/src" - "/java-maps-routeoptimization/proto-google-.*/src" -- "/java-maps-routeoptimization/google-.*/src" +- "/java-maps-routeoptimization/google-.*/src/main" +- "/java-maps-routeoptimization/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-maps-routeoptimization/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-maps-routeoptimization/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-maps-routeoptimization/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/maps/routeoptimization/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-routeoptimization/$1/proto-google-maps-routeoptimization-$1/src" - source: "/google/maps/routeoptimization/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-routeoptimization/$1/grpc-google-maps-routeoptimization-$1/src" -- source: "/google/maps/routeoptimization/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-maps-routeoptimization/$1/google-maps-routeoptimization/src" +- source: "/google/maps/routeoptimization/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-maps-routeoptimization/$1/google-maps-routeoptimization/src/main" - source: "/google/maps/routeoptimization/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-routeoptimization/$1/samples/snippets/generated" diff --git a/java-maps-routing/.OwlBot-hermetic.yaml b/java-maps-routing/.OwlBot-hermetic.yaml index 75058a8ea00d..0056a969cff8 100644 --- a/java-maps-routing/.OwlBot-hermetic.yaml +++ b/java-maps-routing/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-maps-routing/grpc-google-.*/src" - "/java-maps-routing/proto-google-.*/src" -- "/java-maps-routing/google-.*/src" +- "/java-maps-routing/google-.*/src/main" +- "/java-maps-routing/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-maps-routing/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-maps-routing/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-maps-routing/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/maps/routing/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-routing/$1/proto-google-maps-routing-$1/src" - source: "/google/maps/routing/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-routing/$1/grpc-google-maps-routing-$1/src" -- source: "/google/maps/routing/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-maps-routing/$1/google-maps-routing/src" +- source: "/google/maps/routing/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-maps-routing/$1/google-maps-routing/src/main" - source: "/google/maps/routing/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-routing/$1/samples/snippets/generated" diff --git a/java-maps-solar/.OwlBot-hermetic.yaml b/java-maps-solar/.OwlBot-hermetic.yaml index 3939a2705e84..eac5622f3466 100644 --- a/java-maps-solar/.OwlBot-hermetic.yaml +++ b/java-maps-solar/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-maps-solar/grpc-google-.*/src" - "/java-maps-solar/proto-google-.*/src" -- "/java-maps-solar/google-.*/src" +- "/java-maps-solar/google-.*/src/main" +- "/java-maps-solar/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-maps-solar/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-maps-solar/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-maps-solar/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/maps/solar/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-solar/$1/proto-google-maps-solar-$1/src" - source: "/google/maps/solar/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-solar/$1/grpc-google-maps-solar-$1/src" -- source: "/google/maps/solar/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-maps-solar/$1/google-maps-solar/src" +- source: "/google/maps/solar/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-maps-solar/$1/google-maps-solar/src/main" - source: "/google/maps/solar/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-solar/$1/samples/snippets/generated" diff --git a/java-marketingplatformadminapi/.OwlBot-hermetic.yaml b/java-marketingplatformadminapi/.OwlBot-hermetic.yaml index 4634763f98b4..d130c81e93d0 100644 --- a/java-marketingplatformadminapi/.OwlBot-hermetic.yaml +++ b/java-marketingplatformadminapi/.OwlBot-hermetic.yaml @@ -21,15 +21,15 @@ deep-remove-regex: deep-preserve-regex: - "/.*admin.*/src/main/java/.*/stub/Version.java" -- "/.*admin.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*admin.*/src/test/java/com/google/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/marketingplatform/admin/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-marketingplatformadminapi/$1/proto-admin-$1/src" - source: "/google/marketingplatform/admin/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-marketingplatformadminapi/$1/grpc-admin-$1/src" -- source: "/google/marketingplatform/admin/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-marketingplatformadminapi/$1/admin/src" +- source: "/google/marketingplatform/admin/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-marketingplatformadminapi/$1/admin/src/main" - source: "/google/marketingplatform/admin/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-marketingplatformadminapi/$1/samples/snippets/generated" diff --git a/java-mediatranslation/.OwlBot-hermetic.yaml b/java-mediatranslation/.OwlBot-hermetic.yaml index 2f0f15ea1354..459fbea5a4e8 100644 --- a/java-mediatranslation/.OwlBot-hermetic.yaml +++ b/java-mediatranslation/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-mediatranslation/samples/snippets/generated" - "/java-mediatranslation/grpc-google-.*/src" - "/java-mediatranslation/proto-google-.*/src" -- "/java-mediatranslation/google-.*/src" +- "/java-mediatranslation/google-.*/src/main" +- "/java-mediatranslation/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-mediatranslation/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-mediatranslation/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-mediatranslation/$1/proto-google-cloud-mediatranslation-$1/src" - source: "/google/cloud/mediatranslation/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-mediatranslation/$1/grpc-google-cloud-mediatranslation-$1/src" -- source: "/google/cloud/mediatranslation/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-mediatranslation/$1/google-cloud-mediatranslation/src" +- source: "/google/cloud/mediatranslation/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-mediatranslation/$1/google-cloud-mediatranslation/src/main" - source: "/google/cloud/mediatranslation/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-mediatranslation/$1/samples/snippets/generated" diff --git a/java-meet/.OwlBot-hermetic.yaml b/java-meet/.OwlBot-hermetic.yaml index 98c1a22ecfae..03726260e897 100644 --- a/java-meet/.OwlBot-hermetic.yaml +++ b/java-meet/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-meet/grpc-google-.*/src" - "/java-meet/proto-google-.*/src" -- "/java-meet/google-.*/src" +- "/java-meet/google-.*/src/main" +- "/java-meet/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-meet/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-meet/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-meet/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/apps/meet/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-meet/$1/proto-google-cloud-meet-$1/src" - source: "/google/apps/meet/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-meet/$1/grpc-google-cloud-meet-$1/src" -- source: "/google/apps/meet/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-meet/$1/google-cloud-meet/src" +- source: "/google/apps/meet/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-meet/$1/google-cloud-meet/src/main" - source: "/google/apps/meet/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-meet/$1/samples/snippets/generated" diff --git a/java-memcache/.OwlBot-hermetic.yaml b/java-memcache/.OwlBot-hermetic.yaml index e8277f172055..186ceb1d65a5 100644 --- a/java-memcache/.OwlBot-hermetic.yaml +++ b/java-memcache/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-memcache/samples/snippets/generated" - "/java-memcache/grpc-google-.*/src" - "/java-memcache/proto-google-.*/src" -- "/java-memcache/google-.*/src" +- "/java-memcache/google-.*/src/main" +- "/java-memcache/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-memcache/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-memcache/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/memcache/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-memcache/$1/proto-google-cloud-memcache-$1/src" - source: "/google/cloud/memcache/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-memcache/$1/grpc-google-cloud-memcache-$1/src" -- source: "/google/cloud/memcache/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-memcache/$1/google-cloud-memcache/src" +- source: "/google/cloud/memcache/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-memcache/$1/google-cloud-memcache/src/main" - source: "/google/cloud/memcache/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-memcache/$1/samples/snippets/generated" diff --git a/java-migrationcenter/.OwlBot-hermetic.yaml b/java-migrationcenter/.OwlBot-hermetic.yaml index 4b7671f76131..cd43d683b451 100644 --- a/java-migrationcenter/.OwlBot-hermetic.yaml +++ b/java-migrationcenter/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-migrationcenter/grpc-google-.*/src" - "/java-migrationcenter/proto-google-.*/src" -- "/java-migrationcenter/google-.*/src" +- "/java-migrationcenter/google-.*/src/main" +- "/java-migrationcenter/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-migrationcenter/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-migrationcenter/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-migrationcenter/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/migrationcenter/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-migrationcenter/$1/proto-google-cloud-migrationcenter-$1/src" - source: "/google/cloud/migrationcenter/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-migrationcenter/$1/grpc-google-cloud-migrationcenter-$1/src" -- source: "/google/cloud/migrationcenter/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-migrationcenter/$1/google-cloud-migrationcenter/src" +- source: "/google/cloud/migrationcenter/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-migrationcenter/$1/google-cloud-migrationcenter/src/main" - source: "/google/cloud/migrationcenter/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-migrationcenter/$1/samples/snippets/generated" diff --git a/java-modelarmor/.OwlBot-hermetic.yaml b/java-modelarmor/.OwlBot-hermetic.yaml index 5d05fe9ead89..f5e773891d03 100644 --- a/java-modelarmor/.OwlBot-hermetic.yaml +++ b/java-modelarmor/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-modelarmor/grpc-google-.*/src" - "/java-modelarmor/proto-google-.*/src" -- "/java-modelarmor/google-.*/src" +- "/java-modelarmor/google-.*/src/main" +- "/java-modelarmor/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-modelarmor/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-modelarmor/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-modelarmor/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/modelarmor/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-modelarmor/$1/proto-google-cloud-modelarmor-$1/src" - source: "/google/cloud/modelarmor/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-modelarmor/$1/grpc-google-cloud-modelarmor-$1/src" -- source: "/google/cloud/modelarmor/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-modelarmor/$1/google-cloud-modelarmor/src" +- source: "/google/cloud/modelarmor/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-modelarmor/$1/google-cloud-modelarmor/src/main" - source: "/google/cloud/modelarmor/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-modelarmor/$1/samples/snippets/generated" diff --git a/java-monitoring-dashboards/.OwlBot-hermetic.yaml b/java-monitoring-dashboards/.OwlBot-hermetic.yaml index 2324e9bb2d73..6b3c3d33e1fc 100644 --- a/java-monitoring-dashboards/.OwlBot-hermetic.yaml +++ b/java-monitoring-dashboards/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-monitoring-dashboards/grpc-google-.*/src" - "/java-monitoring-dashboards/proto-google-.*/src" -- "/java-monitoring-dashboards/google-.*/src" +- "/java-monitoring-dashboards/google-.*/src/main" +- "/java-monitoring-dashboards/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-monitoring-dashboards/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-monitoring-dashboards/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-monitoring-dashboards/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/monitoring/dashboard/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-monitoring-dashboards/$1/proto-google-cloud-monitoring-dashboard-$1/src" - source: "/google/monitoring/dashboard/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-monitoring-dashboards/$1/grpc-google-cloud-monitoring-dashboard-$1/src" -- source: "/google/monitoring/dashboard/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-monitoring-dashboards/$1/google-cloud-monitoring-dashboard/src" +- source: "/google/monitoring/dashboard/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-monitoring-dashboards/$1/google-cloud-monitoring-dashboard/src/main" - source: "/google/monitoring/dashboard/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-monitoring-dashboards/$1/samples/snippets/generated" diff --git a/java-monitoring-metricsscope/.OwlBot-hermetic.yaml b/java-monitoring-metricsscope/.OwlBot-hermetic.yaml index 4b49090291c1..e5d3e421bb4d 100644 --- a/java-monitoring-metricsscope/.OwlBot-hermetic.yaml +++ b/java-monitoring-metricsscope/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-monitoring-metricsscope/grpc-google-.*/src" - "/java-monitoring-metricsscope/proto-google-.*/src" -- "/java-monitoring-metricsscope/google-.*/src" +- "/java-monitoring-metricsscope/google-.*/src/main" +- "/java-monitoring-metricsscope/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-monitoring-metricsscope/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-monitoring-metricsscope/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-monitoring-metricsscope/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/monitoring/metricsscope/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-monitoring-metricsscope/$1/proto-google-cloud-monitoring-metricsscope-$1/src" - source: "/google/monitoring/metricsscope/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-monitoring-metricsscope/$1/grpc-google-cloud-monitoring-metricsscope-$1/src" -- source: "/google/monitoring/metricsscope/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-monitoring-metricsscope/$1/google-cloud-monitoring-metricsscope/src" +- source: "/google/monitoring/metricsscope/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-monitoring-metricsscope/$1/google-cloud-monitoring-metricsscope/src/main" - source: "/google/monitoring/metricsscope/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-monitoring-metricsscope/$1/samples/snippets/generated" diff --git a/java-monitoring/.OwlBot-hermetic.yaml b/java-monitoring/.OwlBot-hermetic.yaml index c840ec761edc..069ccd62074d 100644 --- a/java-monitoring/.OwlBot-hermetic.yaml +++ b/java-monitoring/.OwlBot-hermetic.yaml @@ -16,21 +16,23 @@ deep-remove-regex: - "/java-monitoring/grpc-google-.*/src" - "/java-monitoring/proto-google-.*/src" -- "/java-monitoring/google-.*/src" +- "/java-monitoring/google-.*/src/main" +- "/java-monitoring/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-monitoring/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-monitoring/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-monitoring/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/.*google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/ITVPCServiceControlTest.java" +- "/.*google-cloud-monitoring/src/test/java/com/google/.*/monitoring/v3/ITVPCServiceControlTest.java" deep-copy-regex: - source: "/google/monitoring/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-monitoring/$1/proto-google-cloud-monitoring-$1/src" - source: "/google/monitoring/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-monitoring/$1/grpc-google-cloud-monitoring-$1/src" -- source: "/google/monitoring/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-monitoring/$1/google-cloud-monitoring/src" +- source: "/google/monitoring/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-monitoring/$1/google-cloud-monitoring/src/main" - source: "/google/monitoring/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-monitoring/$1/samples/snippets/generated" diff --git a/java-netapp/.OwlBot-hermetic.yaml b/java-netapp/.OwlBot-hermetic.yaml index a6e9ede88ec3..a65887398699 100644 --- a/java-netapp/.OwlBot-hermetic.yaml +++ b/java-netapp/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-netapp/grpc-google-.*/src" - "/java-netapp/proto-google-.*/src" -- "/java-netapp/google-.*/src" +- "/java-netapp/google-.*/src/main" +- "/java-netapp/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-netapp/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-netapp/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-netapp/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/netapp/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-netapp/$1/proto-google-cloud-netapp-$1/src" - source: "/google/cloud/netapp/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-netapp/$1/grpc-google-cloud-netapp-$1/src" -- source: "/google/cloud/netapp/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-netapp/$1/google-cloud-netapp/src" +- source: "/google/cloud/netapp/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-netapp/$1/google-cloud-netapp/src/main" - source: "/google/cloud/netapp/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-netapp/$1/samples/snippets/generated" diff --git a/java-network-management/.OwlBot-hermetic.yaml b/java-network-management/.OwlBot-hermetic.yaml index 0bf790166b3b..417e5e15d754 100644 --- a/java-network-management/.OwlBot-hermetic.yaml +++ b/java-network-management/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-network-management/samples/snippets/generated" - "/java-network-management/grpc-google-.*/src" - "/java-network-management/proto-google-.*/src" -- "/java-network-management/google-.*/src" +- "/java-network-management/google-.*/src/main" +- "/java-network-management/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-network-management/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-network-management/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/networkmanagement/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-network-management/$1/proto-google-cloud-network-management-$1/src" - source: "/google/cloud/networkmanagement/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-network-management/$1/grpc-google-cloud-network-management-$1/src" -- source: "/google/cloud/networkmanagement/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-network-management/$1/google-cloud-network-management/src" +- source: "/google/cloud/networkmanagement/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-network-management/$1/google-cloud-network-management/src/main" - source: "/google/cloud/networkmanagement/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-network-management/$1/samples/snippets/generated" diff --git a/java-network-security/.OwlBot-hermetic.yaml b/java-network-security/.OwlBot-hermetic.yaml index c4f54c956193..2c5ca7aae476 100644 --- a/java-network-security/.OwlBot-hermetic.yaml +++ b/java-network-security/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-network-security/samples/snippets/generated" - "/java-network-security/grpc-google-.*/src" - "/java-network-security/proto-google-.*/src" -- "/java-network-security/google-.*/src" +- "/java-network-security/google-.*/src/main" +- "/java-network-security/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-network-security/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-network-security/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/networksecurity/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-network-security/$1/proto-google-cloud-network-security-$1/src" - source: "/google/cloud/networksecurity/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-network-security/$1/grpc-google-cloud-network-security-$1/src" -- source: "/google/cloud/networksecurity/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-network-security/$1/google-cloud-network-security/src" +- source: "/google/cloud/networksecurity/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-network-security/$1/google-cloud-network-security/src/main" - source: "/google/cloud/networksecurity/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-network-security/$1/samples/snippets/generated" diff --git a/java-networkconnectivity/.OwlBot-hermetic.yaml b/java-networkconnectivity/.OwlBot-hermetic.yaml index caf9c6a0961f..a5cd8eb38844 100644 --- a/java-networkconnectivity/.OwlBot-hermetic.yaml +++ b/java-networkconnectivity/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-networkconnectivity/samples/snippets/generated" - "/java-networkconnectivity/grpc-google-.*/src" - "/java-networkconnectivity/proto-google-.*/src" -- "/java-networkconnectivity/google-.*/src" +- "/java-networkconnectivity/google-.*/src/main" +- "/java-networkconnectivity/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-networkconnectivity/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-networkconnectivity/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/networkconnectivity/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-networkconnectivity/$1/proto-google-cloud-networkconnectivity-$1/src" - source: "/google/cloud/networkconnectivity/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-networkconnectivity/$1/grpc-google-cloud-networkconnectivity-$1/src" -- source: "/google/cloud/networkconnectivity/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-networkconnectivity/$1/google-cloud-networkconnectivity/src" +- source: "/google/cloud/networkconnectivity/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-networkconnectivity/$1/google-cloud-networkconnectivity/src/main" - source: "/google/cloud/networkconnectivity/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-networkconnectivity/$1/samples/snippets/generated" diff --git a/java-networkservices/.OwlBot-hermetic.yaml b/java-networkservices/.OwlBot-hermetic.yaml index c8fc49ee0d72..ef2b339d8d08 100644 --- a/java-networkservices/.OwlBot-hermetic.yaml +++ b/java-networkservices/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-networkservices/grpc-google-.*/src" - "/java-networkservices/proto-google-.*/src" -- "/java-networkservices/google-.*/src" +- "/java-networkservices/google-.*/src/main" +- "/java-networkservices/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-networkservices/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-networkservices/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-networkservices/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/networkservices/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-networkservices/$1/proto-google-cloud-networkservices-$1/src" - source: "/google/cloud/networkservices/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-networkservices/$1/grpc-google-cloud-networkservices-$1/src" -- source: "/google/cloud/networkservices/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-networkservices/$1/google-cloud-networkservices/src" +- source: "/google/cloud/networkservices/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-networkservices/$1/google-cloud-networkservices/src/main" - source: "/google/cloud/networkservices/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-networkservices/$1/samples/snippets/generated" diff --git a/java-notebooks/.OwlBot-hermetic.yaml b/java-notebooks/.OwlBot-hermetic.yaml index b27fb18c1f19..84a6469ac5b3 100644 --- a/java-notebooks/.OwlBot-hermetic.yaml +++ b/java-notebooks/.OwlBot-hermetic.yaml @@ -17,15 +17,18 @@ deep-remove-regex: - "/java-notebooks/samples/snippets/generated" - "/java-notebooks/grpc-google-.*/src" - "/java-notebooks/proto-google-.*/src" -- "/java-notebooks/google-.*/src" +- "/java-notebooks/google-.*/src/main" +- "/java-notebooks/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-notebooks/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-notebooks/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/.*.java" +- "/.*google-.*/src/test/java/com/google/.*/v.*/it/.*.java" deep-copy-regex: -- source: "/google/cloud/notebooks/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-notebooks/$1/google-cloud-notebooks/src" +- source: "/google/cloud/notebooks/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-notebooks/$1/google-cloud-notebooks/src/main" - source: "/google/cloud/notebooks/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-notebooks/$1/proto-google-cloud-notebooks-$1/src" - source: "/google/cloud/notebooks/(v.*)/.*-java/grpc-google-.*/src" diff --git a/java-optimization/.OwlBot-hermetic.yaml b/java-optimization/.OwlBot-hermetic.yaml index 5a09812f1ae0..7bc4d06c9c3a 100644 --- a/java-optimization/.OwlBot-hermetic.yaml +++ b/java-optimization/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-optimization/samples/snippets/generated" - "/java-optimization/grpc-google-.*/src" - "/java-optimization/proto-google-.*/src" -- "/java-optimization/google-.*/src" +- "/java-optimization/google-.*/src/main" +- "/java-optimization/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-optimization/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-optimization/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/optimization/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-optimization/$1/proto-google-cloud-optimization-$1/src" - source: "/google/cloud/optimization/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-optimization/$1/grpc-google-cloud-optimization-$1/src" -- source: "/google/cloud/optimization/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-optimization/$1/google-cloud-optimization/src" +- source: "/google/cloud/optimization/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-optimization/$1/google-cloud-optimization/src/main" - source: "/google/cloud/optimization/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-optimization/$1/samples/snippets/generated" diff --git a/java-oracledatabase/.OwlBot-hermetic.yaml b/java-oracledatabase/.OwlBot-hermetic.yaml index 37dfe543f944..677ec9c5ade3 100644 --- a/java-oracledatabase/.OwlBot-hermetic.yaml +++ b/java-oracledatabase/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-oracledatabase/grpc-google-.*/src" - "/java-oracledatabase/proto-google-.*/src" -- "/java-oracledatabase/google-.*/src" +- "/java-oracledatabase/google-.*/src/main" +- "/java-oracledatabase/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-oracledatabase/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-oracledatabase/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-oracledatabase/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/oracledatabase/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-oracledatabase/$1/proto-google-cloud-oracledatabase-$1/src" - source: "/google/cloud/oracledatabase/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-oracledatabase/$1/grpc-google-cloud-oracledatabase-$1/src" -- source: "/google/cloud/oracledatabase/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-oracledatabase/$1/google-cloud-oracledatabase/src" +- source: "/google/cloud/oracledatabase/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-oracledatabase/$1/google-cloud-oracledatabase/src/main" - source: "/google/cloud/oracledatabase/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-oracledatabase/$1/samples/snippets/generated" diff --git a/java-orchestration-airflow/.OwlBot-hermetic.yaml b/java-orchestration-airflow/.OwlBot-hermetic.yaml index ddfd96e63ec0..1b220510f422 100644 --- a/java-orchestration-airflow/.OwlBot-hermetic.yaml +++ b/java-orchestration-airflow/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-orchestration-airflow/samples/snippets/generated" - "/java-orchestration-airflow/grpc-google-.*/src" - "/java-orchestration-airflow/proto-google-.*/src" -- "/java-orchestration-airflow/google-.*/src" +- "/java-orchestration-airflow/google-.*/src/main" +- "/java-orchestration-airflow/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-orchestration-airflow/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-orchestration-airflow/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/orchestration/airflow/service/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-orchestration-airflow/$1/proto-google-cloud-orchestration-airflow-$1/src" - source: "/google/cloud/orchestration/airflow/service/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-orchestration-airflow/$1/grpc-google-cloud-orchestration-airflow-$1/src" -- source: "/google/cloud/orchestration/airflow/service/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-orchestration-airflow/$1/google-cloud-orchestration-airflow/src" +- source: "/google/cloud/orchestration/airflow/service/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-orchestration-airflow/$1/google-cloud-orchestration-airflow/src/main" - source: "/google/cloud/orchestration/airflow/service/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-orchestration-airflow/$1/samples/snippets/generated" diff --git a/java-orgpolicy/.OwlBot-hermetic.yaml b/java-orgpolicy/.OwlBot-hermetic.yaml index 437136e05bc4..2328a0809d44 100644 --- a/java-orgpolicy/.OwlBot-hermetic.yaml +++ b/java-orgpolicy/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-orgpolicy/samples/snippets/generated" - "/java-orgpolicy/grpc-google-.*/src" - "/java-orgpolicy/proto-google-.*/src" -- "/java-orgpolicy/google-.*/src" +- "/java-orgpolicy/google-.*/src/main" +- "/java-orgpolicy/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-orgpolicy/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-orgpolicy/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/orgpolicy/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-orgpolicy/$1/proto-google-cloud-orgpolicy-$1/src" - source: "/google/cloud/orgpolicy/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-orgpolicy/$1/grpc-google-cloud-orgpolicy-$1/src" -- source: "/google/cloud/orgpolicy/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-orgpolicy/$1/google-cloud-orgpolicy/src" +- source: "/google/cloud/orgpolicy/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-orgpolicy/$1/google-cloud-orgpolicy/src/main" - source: "/google/cloud/orgpolicy/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-orgpolicy/$1/samples/snippets/generated" diff --git a/java-os-config/.OwlBot-hermetic.yaml b/java-os-config/.OwlBot-hermetic.yaml index efe2c1a78e2a..e1c251d5c091 100644 --- a/java-os-config/.OwlBot-hermetic.yaml +++ b/java-os-config/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-os-config/samples/snippets/generated" - "/java-os-config/grpc-google-.*/src" - "/java-os-config/proto-google-.*/src" -- "/java-os-config/google-.*/src" +- "/java-os-config/google-.*/src/main" +- "/java-os-config/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-os-config/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-os-config/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-os-config/$1/proto-google-cloud-os-config-$1/src" - source: "/google/cloud/osconfig/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-os-config/$1/grpc-google-cloud-os-config-$1/src" -- source: "/google/cloud/osconfig/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-os-config/$1/google-cloud-os-config/src" +- source: "/google/cloud/osconfig/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-os-config/$1/google-cloud-os-config/src/main" - source: "/google/cloud/osconfig/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-os-config/$1/samples/snippets/generated" diff --git a/java-os-login/.OwlBot-hermetic.yaml b/java-os-login/.OwlBot-hermetic.yaml index aab0a7cbc0b7..0e7c65c6768c 100644 --- a/java-os-login/.OwlBot-hermetic.yaml +++ b/java-os-login/.OwlBot-hermetic.yaml @@ -16,12 +16,14 @@ deep-remove-regex: - "/java-os-login/grpc-google-.*/src" - "/java-os-login/proto-google-.*/src" -- "/java-os-login/google-.*/src" +- "/java-os-login/google-.*/src/main" +- "/java-os-login/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-os-login/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-os-login/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-os-login/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/FingerprintName.java" - "/.*proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/ProjectName.java" - "/.*proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/FingerprintName.java" @@ -34,8 +36,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-os-login/$1/proto-google-cloud-os-login-$1/src" - source: "/google/cloud/oslogin/(v\\d)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-os-login/$1/grpc-google-cloud-os-login-$1/src" -- source: "/google/cloud/oslogin/(v\\d)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-os-login/$1/google-cloud-os-login/src" +- source: "/google/cloud/oslogin/(v\\d)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-os-login/$1/google-cloud-os-login/src/main" - source: "/google/cloud/oslogin/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-os-login/$1/samples/snippets/generated" diff --git a/java-parallelstore/.OwlBot-hermetic.yaml b/java-parallelstore/.OwlBot-hermetic.yaml index b3da915e88a5..68a7af3c3595 100644 --- a/java-parallelstore/.OwlBot-hermetic.yaml +++ b/java-parallelstore/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-parallelstore/grpc-google-.*/src" - "/java-parallelstore/proto-google-.*/src" -- "/java-parallelstore/google-.*/src" +- "/java-parallelstore/google-.*/src/main" +- "/java-parallelstore/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-parallelstore/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-parallelstore/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-parallelstore/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/parallelstore/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-parallelstore/$1/proto-google-cloud-parallelstore-$1/src" - source: "/google/cloud/parallelstore/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-parallelstore/$1/grpc-google-cloud-parallelstore-$1/src" -- source: "/google/cloud/parallelstore/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-parallelstore/$1/google-cloud-parallelstore/src" +- source: "/google/cloud/parallelstore/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-parallelstore/$1/google-cloud-parallelstore/src/main" - source: "/google/cloud/parallelstore/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-parallelstore/$1/samples/snippets/generated" diff --git a/java-parametermanager/.OwlBot-hermetic.yaml b/java-parametermanager/.OwlBot-hermetic.yaml index 00211c303626..ad847b3b3da2 100644 --- a/java-parametermanager/.OwlBot-hermetic.yaml +++ b/java-parametermanager/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-parametermanager/grpc-google-.*/src" - "/java-parametermanager/proto-google-.*/src" -- "/java-parametermanager/google-.*/src" +- "/java-parametermanager/google-.*/src/main" +- "/java-parametermanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-parametermanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-parametermanager/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-parametermanager/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/parametermanager/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-parametermanager/$1/proto-google-cloud-parametermanager-$1/src" - source: "/google/cloud/parametermanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-parametermanager/$1/grpc-google-cloud-parametermanager-$1/src" -- source: "/google/cloud/parametermanager/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-parametermanager/$1/google-cloud-parametermanager/src" +- source: "/google/cloud/parametermanager/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-parametermanager/$1/google-cloud-parametermanager/src/main" - source: "/google/cloud/parametermanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-parametermanager/$1/samples/snippets/generated" diff --git a/java-phishingprotection/.OwlBot-hermetic.yaml b/java-phishingprotection/.OwlBot-hermetic.yaml index 141ac0ffafed..730787b96dc9 100644 --- a/java-phishingprotection/.OwlBot-hermetic.yaml +++ b/java-phishingprotection/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-phishingprotection/samples/snippets/generated" - "/java-phishingprotection/grpc-google-.*/src" - "/java-phishingprotection/proto-google-.*/src" -- "/java-phishingprotection/google-.*/src" +- "/java-phishingprotection/google-.*/src/main" +- "/java-phishingprotection/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-phishingprotection/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-phishingprotection/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/phishingprotection/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-phishingprotection/$1/proto-google-cloud-phishingprotection-$1/src" - source: "/google/cloud/phishingprotection/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-phishingprotection/$1/grpc-google-cloud-phishingprotection-$1/src" -- source: "/google/cloud/phishingprotection/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-phishingprotection/$1/google-cloud-phishingprotection/src" +- source: "/google/cloud/phishingprotection/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-phishingprotection/$1/google-cloud-phishingprotection/src/main" - source: "/google/cloud/phishingprotection/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-phishingprotection/$1/samples/snippets/generated" diff --git a/java-policy-troubleshooter/.OwlBot-hermetic.yaml b/java-policy-troubleshooter/.OwlBot-hermetic.yaml index f71b01061bdd..7addcb019325 100644 --- a/java-policy-troubleshooter/.OwlBot-hermetic.yaml +++ b/java-policy-troubleshooter/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-policy-troubleshooter/samples/snippets/generated" - "/java-policy-troubleshooter/grpc-google-.*/src" - "/java-policy-troubleshooter/proto-google-.*/src" -- "/java-policy-troubleshooter/google-.*/src" +- "/java-policy-troubleshooter/google-.*/src/main" +- "/java-policy-troubleshooter/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-policy-troubleshooter/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-policy-troubleshooter/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-policy-troubleshooter/iam/samples/snippets/generated" - "/java-policy-troubleshooter/iam/grpc-google-.*/src" - "/java-policy-troubleshooter/iam/proto-google-.*/src" @@ -25,23 +28,21 @@ deep-remove-regex: deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/policytroubleshooter/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-policy-troubleshooter/$1/proto-google-cloud-policy-troubleshooter-$1/src" - source: "/google/cloud/policytroubleshooter/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-policy-troubleshooter/$1/grpc-google-cloud-policy-troubleshooter-$1/src" -- source: "/google/cloud/policytroubleshooter/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-policy-troubleshooter/$1/google-cloud-policy-troubleshooter/src" +- source: "/google/cloud/policytroubleshooter/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-policy-troubleshooter/$1/google-cloud-policy-troubleshooter/src/main" - source: "/google/cloud/policytroubleshooter/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-policy-troubleshooter/$1/samples/snippets/generated" - source: "/google/cloud/policytroubleshooter/iam/v3/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-policy-troubleshooter/v3/proto-google-cloud-policy-troubleshooter-v3/src" - source: "/google/cloud/policytroubleshooter/iam/v3/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-policy-troubleshooter/v3/grpc-google-cloud-policy-troubleshooter-v3/src" -- source: "/google/cloud/policytroubleshooter/iam/v3/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-policy-troubleshooter/v3/google-cloud-policy-troubleshooter/src" +- source: "/google/cloud/policytroubleshooter/iam/v3/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-policy-troubleshooter/v3/google-cloud-policy-troubleshooter/src/main" - source: "/google/cloud/policytroubleshooter/iam/v3/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-policy-troubleshooter/v3/samples/snippets/generated" diff --git a/java-policysimulator/.OwlBot-hermetic.yaml b/java-policysimulator/.OwlBot-hermetic.yaml index 7e9118fd3106..dc27c2a82e75 100644 --- a/java-policysimulator/.OwlBot-hermetic.yaml +++ b/java-policysimulator/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-policysimulator/grpc-google-.*/src" - "/java-policysimulator/proto-google-.*/src" -- "/java-policysimulator/google-.*/src" +- "/java-policysimulator/google-.*/src/main" +- "/java-policysimulator/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-policysimulator/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-policysimulator/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-policysimulator/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/policysimulator/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-policysimulator/$1/proto-google-cloud-policysimulator-$1/src" - source: "/google/cloud/policysimulator/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-policysimulator/$1/grpc-google-cloud-policysimulator-$1/src" -- source: "/google/cloud/policysimulator/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-policysimulator/$1/google-cloud-policysimulator/src" +- source: "/google/cloud/policysimulator/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-policysimulator/$1/google-cloud-policysimulator/src/main" - source: "/google/cloud/policysimulator/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-policysimulator/$1/samples/snippets/generated" diff --git a/java-private-catalog/.OwlBot-hermetic.yaml b/java-private-catalog/.OwlBot-hermetic.yaml index 9551923182c5..1ee7c7656bf0 100644 --- a/java-private-catalog/.OwlBot-hermetic.yaml +++ b/java-private-catalog/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-private-catalog/samples/snippets/generated" - "/java-private-catalog/grpc-google-.*/src" - "/java-private-catalog/proto-google-.*/src" -- "/java-private-catalog/google-.*/src" +- "/java-private-catalog/google-.*/src/main" +- "/java-private-catalog/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-private-catalog/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-private-catalog/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-private-catalog/$1/proto-google-cloud-private-catalog-$1/src" - source: "/google/cloud/privatecatalog/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-private-catalog/$1/grpc-google-cloud-private-catalog-$1/src" -- source: "/google/cloud/privatecatalog/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-private-catalog/$1/google-cloud-private-catalog/src" +- source: "/google/cloud/privatecatalog/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-private-catalog/$1/google-cloud-private-catalog/src/main" - source: "/google/cloud/privatecatalog/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-private-catalog/$1/samples/snippets/generated" diff --git a/java-privilegedaccessmanager/.OwlBot-hermetic.yaml b/java-privilegedaccessmanager/.OwlBot-hermetic.yaml index 87b05f09c97c..70df72078914 100644 --- a/java-privilegedaccessmanager/.OwlBot-hermetic.yaml +++ b/java-privilegedaccessmanager/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-privilegedaccessmanager/grpc-google-.*/src" - "/java-privilegedaccessmanager/proto-google-.*/src" -- "/java-privilegedaccessmanager/google-.*/src" +- "/java-privilegedaccessmanager/google-.*/src/main" +- "/java-privilegedaccessmanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-privilegedaccessmanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-privilegedaccessmanager/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-privilegedaccessmanager/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/privilegedaccessmanager/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-privilegedaccessmanager/$1/proto-google-cloud-privilegedaccessmanager-$1/src" - source: "/google/cloud/privilegedaccessmanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-privilegedaccessmanager/$1/grpc-google-cloud-privilegedaccessmanager-$1/src" -- source: "/google/cloud/privilegedaccessmanager/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-privilegedaccessmanager/$1/google-cloud-privilegedaccessmanager/src" +- source: "/google/cloud/privilegedaccessmanager/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-privilegedaccessmanager/$1/google-cloud-privilegedaccessmanager/src/main" - source: "/google/cloud/privilegedaccessmanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-privilegedaccessmanager/$1/samples/snippets/generated" diff --git a/java-profiler/.OwlBot-hermetic.yaml b/java-profiler/.OwlBot-hermetic.yaml index 6e89cccb43a8..412a062b62ca 100644 --- a/java-profiler/.OwlBot-hermetic.yaml +++ b/java-profiler/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-profiler/grpc-google-.*/src" - "/java-profiler/proto-google-.*/src" -- "/java-profiler/google-.*/src" +- "/java-profiler/google-.*/src/main" +- "/java-profiler/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-profiler/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-profiler/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-profiler/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/devtools/cloudprofiler/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-profiler/$1/proto-google-cloud-profiler-$1/src" - source: "/google/devtools/cloudprofiler/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-profiler/$1/grpc-google-cloud-profiler-$1/src" -- source: "/google/devtools/cloudprofiler/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-profiler/$1/google-cloud-profiler/src" +- source: "/google/devtools/cloudprofiler/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-profiler/$1/google-cloud-profiler/src/main" - source: "/google/devtools/cloudprofiler/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-profiler/$1/samples/snippets/generated" diff --git a/java-publicca/.OwlBot-hermetic.yaml b/java-publicca/.OwlBot-hermetic.yaml index 812ff0774bef..9974d676fc10 100644 --- a/java-publicca/.OwlBot-hermetic.yaml +++ b/java-publicca/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-publicca/grpc-google-.*/src" - "/java-publicca/proto-google-.*/src" -- "/java-publicca/google-.*/src" +- "/java-publicca/google-.*/src/main" +- "/java-publicca/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-publicca/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-publicca/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-publicca/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/security/publicca/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-publicca/$1/proto-google-cloud-publicca-$1/src" - source: "/google/cloud/security/publicca/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-publicca/$1/grpc-google-cloud-publicca-$1/src" -- source: "/google/cloud/security/publicca/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-publicca/$1/google-cloud-publicca/src" +- source: "/google/cloud/security/publicca/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-publicca/$1/google-cloud-publicca/src/main" - source: "/google/cloud/security/publicca/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-publicca/$1/samples/snippets/generated" diff --git a/java-rapidmigrationassessment/.OwlBot-hermetic.yaml b/java-rapidmigrationassessment/.OwlBot-hermetic.yaml index d18e49ea762b..e8201456df55 100644 --- a/java-rapidmigrationassessment/.OwlBot-hermetic.yaml +++ b/java-rapidmigrationassessment/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-rapidmigrationassessment/grpc-google-.*/src" - "/java-rapidmigrationassessment/proto-google-.*/src" -- "/java-rapidmigrationassessment/google-.*/src" +- "/java-rapidmigrationassessment/google-.*/src/main" +- "/java-rapidmigrationassessment/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-rapidmigrationassessment/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-rapidmigrationassessment/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-rapidmigrationassessment/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/rapidmigrationassessment/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-rapidmigrationassessment/$1/proto-google-cloud-rapidmigrationassessment-$1/src" - source: "/google/cloud/rapidmigrationassessment/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-rapidmigrationassessment/$1/grpc-google-cloud-rapidmigrationassessment-$1/src" -- source: "/google/cloud/rapidmigrationassessment/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-rapidmigrationassessment/$1/google-cloud-rapidmigrationassessment/src" +- source: "/google/cloud/rapidmigrationassessment/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-rapidmigrationassessment/$1/google-cloud-rapidmigrationassessment/src/main" - source: "/google/cloud/rapidmigrationassessment/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-rapidmigrationassessment/$1/samples/snippets/generated" diff --git a/java-recaptchaenterprise/.OwlBot-hermetic.yaml b/java-recaptchaenterprise/.OwlBot-hermetic.yaml index bb5926bac69a..fc1239787dd1 100644 --- a/java-recaptchaenterprise/.OwlBot-hermetic.yaml +++ b/java-recaptchaenterprise/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-recaptchaenterprise/samples/snippets/generated" - "/java-recaptchaenterprise/grpc-google-.*/src" - "/java-recaptchaenterprise/proto-google-.*/src" -- "/java-recaptchaenterprise/google-.*/src" +- "/java-recaptchaenterprise/google-.*/src/main" +- "/java-recaptchaenterprise/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-recaptchaenterprise/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-recaptchaenterprise/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/recaptchaenterprise/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-recaptchaenterprise/$1/proto-google-cloud-recaptchaenterprise-$1/src" - source: "/google/cloud/recaptchaenterprise/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-recaptchaenterprise/$1/grpc-google-cloud-recaptchaenterprise-$1/src" -- source: "/google/cloud/recaptchaenterprise/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-recaptchaenterprise/$1/google-cloud-recaptchaenterprise/src" +- source: "/google/cloud/recaptchaenterprise/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-recaptchaenterprise/$1/google-cloud-recaptchaenterprise/src/main" - source: "/google/cloud/recaptchaenterprise/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-recaptchaenterprise/$1/samples/snippets/generated" diff --git a/java-recommendations-ai/.OwlBot-hermetic.yaml b/java-recommendations-ai/.OwlBot-hermetic.yaml index 4ccc8487eb32..172dc4763964 100644 --- a/java-recommendations-ai/.OwlBot-hermetic.yaml +++ b/java-recommendations-ai/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-recommendations-ai/samples/snippets/generated" - "/java-recommendations-ai/grpc-google-.*/src" - "/java-recommendations-ai/proto-google-.*/src" -- "/java-recommendations-ai/google-.*/src" +- "/java-recommendations-ai/google-.*/src/main" +- "/java-recommendations-ai/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-recommendations-ai/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-recommendations-ai/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/recommendationengine/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-recommendations-ai/$1/proto-google-cloud-recommendations-ai-$1/src" - source: "/google/cloud/recommendationengine/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-recommendations-ai/$1/grpc-google-cloud-recommendations-ai-$1/src" -- source: "/google/cloud/recommendationengine/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-recommendations-ai/$1/google-cloud-recommendations-ai/src" +- source: "/google/cloud/recommendationengine/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-recommendations-ai/$1/google-cloud-recommendations-ai/src/main" - source: "/google/cloud/recommendationengine/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-recommendations-ai/$1/samples/snippets/generated" diff --git a/java-recommender/.OwlBot-hermetic.yaml b/java-recommender/.OwlBot-hermetic.yaml index db000cc53ca4..db5d4302b463 100644 --- a/java-recommender/.OwlBot-hermetic.yaml +++ b/java-recommender/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-recommender/samples/snippets/generated" - "/java-recommender/grpc-google-.*/src" - "/java-recommender/proto-google-.*/src" -- "/java-recommender/google-.*/src" +- "/java-recommender/google-.*/src/main" +- "/java-recommender/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-recommender/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-recommender/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/recommender/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-recommender/$1/proto-google-cloud-recommender-$1/src" - source: "/google/cloud/recommender/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-recommender/$1/grpc-google-cloud-recommender-$1/src" -- source: "/google/cloud/recommender/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-recommender/$1/google-cloud-recommender/src" +- source: "/google/cloud/recommender/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-recommender/$1/google-cloud-recommender/src/main" - source: "/google/cloud/recommender/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-recommender/$1/samples/snippets/generated" diff --git a/java-redis-cluster/.OwlBot-hermetic.yaml b/java-redis-cluster/.OwlBot-hermetic.yaml index 87d1431b9b08..199249da310e 100644 --- a/java-redis-cluster/.OwlBot-hermetic.yaml +++ b/java-redis-cluster/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-redis-cluster/grpc-google-.*/src" - "/java-redis-cluster/proto-google-.*/src" -- "/java-redis-cluster/google-.*/src" +- "/java-redis-cluster/google-.*/src/main" +- "/java-redis-cluster/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-redis-cluster/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-redis-cluster/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-redis-cluster/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/redis/cluster/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-redis-cluster/$1/proto-google-cloud-redis-cluster-$1/src" - source: "/google/cloud/redis/cluster/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-redis-cluster/$1/grpc-google-cloud-redis-cluster-$1/src" -- source: "/google/cloud/redis/cluster/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-redis-cluster/$1/google-cloud-redis-cluster/src" +- source: "/google/cloud/redis/cluster/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-redis-cluster/$1/google-cloud-redis-cluster/src/main" - source: "/google/cloud/redis/cluster/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-redis-cluster/$1/samples/snippets/generated" diff --git a/java-redis/.OwlBot-hermetic.yaml b/java-redis/.OwlBot-hermetic.yaml index 72c59c860a4e..63894a64cdbe 100644 --- a/java-redis/.OwlBot-hermetic.yaml +++ b/java-redis/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-redis/samples/snippets/generated" - "/java-redis/grpc-google-.*/src" - "/java-redis/proto-google-.*/src" -- "/java-redis/google-.*/src" +- "/java-redis/google-.*/src/main" +- "/java-redis/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-redis/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-redis/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/redis/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-redis/$1/proto-google-cloud-redis-$1/src" - source: "/google/cloud/redis/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-redis/$1/grpc-google-cloud-redis-$1/src" -- source: "/google/cloud/redis/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-redis/$1/google-cloud-redis/src" +- source: "/google/cloud/redis/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-redis/$1/google-cloud-redis/src/main" - source: "/google/cloud/redis/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-redis/$1/samples/snippets/generated" diff --git a/java-resourcemanager/.OwlBot-hermetic.yaml b/java-resourcemanager/.OwlBot-hermetic.yaml index 7ea3b55c29f1..95ba3c2acae8 100644 --- a/java-resourcemanager/.OwlBot-hermetic.yaml +++ b/java-resourcemanager/.OwlBot-hermetic.yaml @@ -27,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-resourcemanager/$1/proto-google-cloud-resourcemanager-$1/src" - source: "/google/cloud/resourcemanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-resourcemanager/$1/grpc-google-cloud-resourcemanager-$1/src" -- source: "/google/cloud/resourcemanager/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-resourcemanager/$1/google-cloud-resourcemanager/src" +- source: "/google/cloud/resourcemanager/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-resourcemanager/$1/google-cloud-resourcemanager/src/main" - source: "/google/cloud/resourcemanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-resourcemanager/$1/samples/snippets/generated" diff --git a/java-retail/.OwlBot-hermetic.yaml b/java-retail/.OwlBot-hermetic.yaml index 8d86aea4aea3..2e2e56d46aa8 100644 --- a/java-retail/.OwlBot-hermetic.yaml +++ b/java-retail/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-retail/samples/snippets/generated" - "/java-retail/grpc-google-.*/src" - "/java-retail/proto-google-.*/src" -- "/java-retail/google-.*/src" +- "/java-retail/google-.*/src/main" +- "/java-retail/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-retail/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-retail/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/retail/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-retail/$1/proto-google-cloud-retail-$1/src" - source: "/google/cloud/retail/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-retail/$1/grpc-google-cloud-retail-$1/src" -- source: "/google/cloud/retail/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-retail/$1/google-cloud-retail/src" +- source: "/google/cloud/retail/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-retail/$1/google-cloud-retail/src/main" - source: "/google/cloud/retail/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-retail/$1/samples/snippets/generated" diff --git a/java-run/.OwlBot-hermetic.yaml b/java-run/.OwlBot-hermetic.yaml index c87b38d3872e..9a4b5aa3f04e 100644 --- a/java-run/.OwlBot-hermetic.yaml +++ b/java-run/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-run/samples/snippets/generated" - "/java-run/grpc-google-.*/src" - "/java-run/proto-google-.*/src" -- "/java-run/google-.*/src" +- "/java-run/google-.*/src/main" +- "/java-run/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-run/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-run/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/run/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-run/$1/proto-google-cloud-run-$1/src" - source: "/google/cloud/run/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-run/$1/grpc-google-cloud-run-$1/src" -- source: "/google/cloud/run/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-run/$1/google-cloud-run/src" +- source: "/google/cloud/run/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-run/$1/google-cloud-run/src/main" - source: "/google/cloud/run/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-run/$1/samples/snippets/generated" diff --git a/java-saasservicemgmt/.OwlBot-hermetic.yaml b/java-saasservicemgmt/.OwlBot-hermetic.yaml index c8a8bce6df2f..baa5ceb15f43 100644 --- a/java-saasservicemgmt/.OwlBot-hermetic.yaml +++ b/java-saasservicemgmt/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-saasservicemgmt/grpc-google-.*/src" - "/java-saasservicemgmt/proto-google-.*/src" -- "/java-saasservicemgmt/google-.*/src" +- "/java-saasservicemgmt/google-.*/src/main" +- "/java-saasservicemgmt/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-saasservicemgmt/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-saasservicemgmt/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-saasservicemgmt/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/saasplatform/saasservicemgmt/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-saasservicemgmt/$1/proto-google-cloud-saasservicemgmt-$1/src" - source: "/google/cloud/saasplatform/saasservicemgmt/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-saasservicemgmt/$1/grpc-google-cloud-saasservicemgmt-$1/src" -- source: "/google/cloud/saasplatform/saasservicemgmt/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-saasservicemgmt/$1/google-cloud-saasservicemgmt/src" +- source: "/google/cloud/saasplatform/saasservicemgmt/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-saasservicemgmt/$1/google-cloud-saasservicemgmt/src/main" - source: "/google/cloud/saasplatform/saasservicemgmt/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-saasservicemgmt/$1/samples/snippets/generated" diff --git a/java-scheduler/.OwlBot-hermetic.yaml b/java-scheduler/.OwlBot-hermetic.yaml index d918ac117207..90b8659e10e6 100644 --- a/java-scheduler/.OwlBot-hermetic.yaml +++ b/java-scheduler/.OwlBot-hermetic.yaml @@ -17,11 +17,13 @@ deep-remove-regex: - "/java-scheduler/samples/snippets/generated" - "/java-scheduler/grpc-google-.*/src" - "/java-scheduler/proto-google-.*/src" -- "/java-scheduler/google-.*/src" +- "/java-scheduler/google-.*/src/main" +- "/java-scheduler/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-scheduler/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-scheduler/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ProjectName.java" - "/.*proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/ProjectName.java" @@ -30,8 +32,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-scheduler/$1/proto-google-cloud-scheduler-$1/src" - source: "/google/cloud/scheduler/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-scheduler/$1/grpc-google-cloud-scheduler-$1/src" -- source: "/google/cloud/scheduler/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-scheduler/$1/google-cloud-scheduler/src" +- source: "/google/cloud/scheduler/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-scheduler/$1/google-cloud-scheduler/src/main" - source: "/google/cloud/scheduler/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-scheduler/$1/samples/snippets/generated" diff --git a/java-secretmanager/.OwlBot-hermetic.yaml b/java-secretmanager/.OwlBot-hermetic.yaml index 8b7f3693af79..e30b03654f2d 100644 --- a/java-secretmanager/.OwlBot-hermetic.yaml +++ b/java-secretmanager/.OwlBot-hermetic.yaml @@ -17,11 +17,13 @@ deep-remove-regex: - "/java-secretmanager/samples/snippets/generated" - "/java-secretmanager/grpc-google-.*/src" - "/java-secretmanager/proto-google-.*/src" -- "/java-secretmanager/google-.*/src" +- "/java-secretmanager/google-.*/src/main" +- "/java-secretmanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-secretmanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-secretmanager/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v1/it/IT.*Test.java" - "/.*proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicName.java" @@ -31,8 +33,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-secretmanager/$1/proto-google-cloud-secretmanager-$1/src" - source: "/google/cloud/secrets/(v\\d.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-secretmanager/$1/grpc-google-cloud-secretmanager-$1/src" -- source: "/google/cloud/secrets/(v\\d.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-secretmanager/$1/google-cloud-secretmanager/src" +- source: "/google/cloud/secrets/(v\\d.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-secretmanager/$1/google-cloud-secretmanager/src/main" - source: "/google/cloud/secrets/(v\\d.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-secretmanager/$1/samples/snippets/generated" # The next four configurations are for all others versions configured in /google/cloud/secretmanager/{version} @@ -40,8 +42,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-secretmanager/$1/proto-google-cloud-secretmanager-$1/src" - source: "/google/cloud/secretmanager/(v\\d.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-secretmanager/$1/grpc-google-cloud-secretmanager-$1/src" -- source: "/google/cloud/secretmanager/(v\\d.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-secretmanager/$1/google-cloud-secretmanager/src" +- source: "/google/cloud/secretmanager/(v\\d.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-secretmanager/$1/google-cloud-secretmanager/src/main" - source: "/google/cloud/secretmanager/(v\\d.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-secretmanager/$1/samples/snippets/generated" diff --git a/java-securesourcemanager/.OwlBot-hermetic.yaml b/java-securesourcemanager/.OwlBot-hermetic.yaml index d428f4797afd..df7808276564 100644 --- a/java-securesourcemanager/.OwlBot-hermetic.yaml +++ b/java-securesourcemanager/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-securesourcemanager/grpc-google-.*/src" - "/java-securesourcemanager/proto-google-.*/src" -- "/java-securesourcemanager/google-.*/src" +- "/java-securesourcemanager/google-.*/src/main" +- "/java-securesourcemanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-securesourcemanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-securesourcemanager/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-securesourcemanager/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/securesourcemanager/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-securesourcemanager/$1/proto-google-cloud-securesourcemanager-$1/src" - source: "/google/cloud/securesourcemanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-securesourcemanager/$1/grpc-google-cloud-securesourcemanager-$1/src" -- source: "/google/cloud/securesourcemanager/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-securesourcemanager/$1/google-cloud-securesourcemanager/src" +- source: "/google/cloud/securesourcemanager/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-securesourcemanager/$1/google-cloud-securesourcemanager/src/main" - source: "/google/cloud/securesourcemanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-securesourcemanager/$1/samples/snippets/generated" diff --git a/java-security-private-ca/.OwlBot-hermetic.yaml b/java-security-private-ca/.OwlBot-hermetic.yaml index ebe9982eff85..b01b6fbc6c43 100644 --- a/java-security-private-ca/.OwlBot-hermetic.yaml +++ b/java-security-private-ca/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-security-private-ca/samples/snippets/generated" - "/java-security-private-ca/grpc-google-.*/src" - "/java-security-private-ca/proto-google-.*/src" -- "/java-security-private-ca/google-.*/src" +- "/java-security-private-ca/google-.*/src/main" +- "/java-security-private-ca/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-security-private-ca/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-security-private-ca/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-security-private-ca/$1/proto-google-cloud-security-private-ca-$1/src" - source: "/google/cloud/security/privateca/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-security-private-ca/$1/grpc-google-cloud-security-private-ca-$1/src" -- source: "/google/cloud/security/privateca/v.*/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-security-private-ca/$1/google-cloud-security-private-ca/src" +- source: "/google/cloud/security/privateca/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-security-private-ca/$1/google-cloud-security-private-ca/src/main" - source: "/google/cloud/security/privateca/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-security-private-ca/$1/samples/snippets/generated" diff --git a/java-securitycenter-settings/.OwlBot-hermetic.yaml b/java-securitycenter-settings/.OwlBot-hermetic.yaml index b7a7fea9c7b1..f44402768f9e 100644 --- a/java-securitycenter-settings/.OwlBot-hermetic.yaml +++ b/java-securitycenter-settings/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-securitycenter-settings/grpc-google-.*/src" - "/java-securitycenter-settings/proto-google-.*/src" -- "/java-securitycenter-settings/google-.*/src" +- "/java-securitycenter-settings/google-.*/src/main" +- "/java-securitycenter-settings/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-securitycenter-settings/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-securitycenter-settings/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-securitycenter-settings/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/securitycenter/settings/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-securitycenter-settings/$1/proto-google-cloud-securitycenter-settings-$1/src" - source: "/google/cloud/securitycenter/settings/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-securitycenter-settings/$1/grpc-google-cloud-securitycenter-settings-$1/src" -- source: "/google/cloud/securitycenter/settings/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-securitycenter-settings/$1/google-cloud-securitycenter-settings/src" +- source: "/google/cloud/securitycenter/settings/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-securitycenter-settings/$1/google-cloud-securitycenter-settings/src/main" - source: "/google/cloud/securitycenter/settings/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-securitycenter-settings/$1/samples/snippets/generated" diff --git a/java-securitycenter/.OwlBot-hermetic.yaml b/java-securitycenter/.OwlBot-hermetic.yaml index 887a17fde535..8f5907da823b 100644 --- a/java-securitycenter/.OwlBot-hermetic.yaml +++ b/java-securitycenter/.OwlBot-hermetic.yaml @@ -17,11 +17,13 @@ deep-remove-regex: - "/java-securitycenter/samples/snippets/generated" - "/java-securitycenter/grpc-google-.*/src" - "/java-securitycenter/proto-google-.*/src" -- "/java-securitycenter/google-.*/src" +- "/java-securitycenter/google-.*/src/main" +- "/java-securitycenter/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-securitycenter/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-securitycenter/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UntypedSecuritymarksName.java" - "/.*proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritymarksNames.java" - "/.*proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritymarksName.java" @@ -33,8 +35,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-securitycenter/$1/proto-google-cloud-securitycenter-$1/src" - source: "/google/cloud/securitycenter/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-securitycenter/$1/grpc-google-cloud-securitycenter-$1/src" -- source: "/google/cloud/securitycenter/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-securitycenter/$1/google-cloud-securitycenter/src" +- source: "/google/cloud/securitycenter/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-securitycenter/$1/google-cloud-securitycenter/src/main" - source: "/google/cloud/securitycenter/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-securitycenter/$1/samples/snippets/generated" diff --git a/java-securitycentermanagement/.OwlBot-hermetic.yaml b/java-securitycentermanagement/.OwlBot-hermetic.yaml index 111d059bd078..0b987b97960f 100644 --- a/java-securitycentermanagement/.OwlBot-hermetic.yaml +++ b/java-securitycentermanagement/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-securitycentermanagement/grpc-google-.*/src" - "/java-securitycentermanagement/proto-google-.*/src" -- "/java-securitycentermanagement/google-.*/src" +- "/java-securitycentermanagement/google-.*/src/main" +- "/java-securitycentermanagement/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-securitycentermanagement/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-securitycentermanagement/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-securitycentermanagement/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/securitycentermanagement/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-securitycentermanagement/$1/proto-google-cloud-securitycentermanagement-$1/src" - source: "/google/cloud/securitycentermanagement/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-securitycentermanagement/$1/grpc-google-cloud-securitycentermanagement-$1/src" -- source: "/google/cloud/securitycentermanagement/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-securitycentermanagement/$1/google-cloud-securitycentermanagement/src" +- source: "/google/cloud/securitycentermanagement/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-securitycentermanagement/$1/google-cloud-securitycentermanagement/src/main" - source: "/google/cloud/securitycentermanagement/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-securitycentermanagement/$1/samples/snippets/generated" diff --git a/java-securityposture/.OwlBot-hermetic.yaml b/java-securityposture/.OwlBot-hermetic.yaml index 157dd1ca34bf..b97419916092 100644 --- a/java-securityposture/.OwlBot-hermetic.yaml +++ b/java-securityposture/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-securityposture/grpc-google-.*/src" - "/java-securityposture/proto-google-.*/src" -- "/java-securityposture/google-.*/src" +- "/java-securityposture/google-.*/src/main" +- "/java-securityposture/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-securityposture/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-securityposture/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-securityposture/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/securityposture/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-securityposture/$1/proto-google-cloud-securityposture-$1/src" - source: "/google/cloud/securityposture/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-securityposture/$1/grpc-google-cloud-securityposture-$1/src" -- source: "/google/cloud/securityposture/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-securityposture/$1/google-cloud-securityposture/src" +- source: "/google/cloud/securityposture/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-securityposture/$1/google-cloud-securityposture/src/main" - source: "/google/cloud/securityposture/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-securityposture/$1/samples/snippets/generated" diff --git a/java-service-control/.OwlBot-hermetic.yaml b/java-service-control/.OwlBot-hermetic.yaml index b1ab44a4737e..36040790859d 100644 --- a/java-service-control/.OwlBot-hermetic.yaml +++ b/java-service-control/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-service-control/grpc-google-.*/src" - "/java-service-control/proto-google-.*/src" -- "/java-service-control/google-.*/src" +- "/java-service-control/google-.*/src/main" +- "/java-service-control/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-service-control/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-service-control/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-service-control/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/api/servicecontrol/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-service-control/$1/proto-google-cloud-service-control-$1/src" - source: "/google/api/servicecontrol/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-service-control/$1/grpc-google-cloud-service-control-$1/src" -- source: "/google/api/servicecontrol/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-service-control/$1/google-cloud-service-control/src" +- source: "/google/api/servicecontrol/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-service-control/$1/google-cloud-service-control/src/main" - source: "/google/api/servicecontrol/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-service-control/$1/samples/snippets/generated" diff --git a/java-service-management/.OwlBot-hermetic.yaml b/java-service-management/.OwlBot-hermetic.yaml index c436920dc409..7b4091715084 100644 --- a/java-service-management/.OwlBot-hermetic.yaml +++ b/java-service-management/.OwlBot-hermetic.yaml @@ -16,21 +16,23 @@ deep-remove-regex: - "/java-service-management/grpc-google-.*/src" - "/java-service-management/proto-google-.*/src" -- "/java-service-management/google-.*/src" +- "/java-service-management/google-.*/src/main" +- "/java-service-management/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-service-management/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-service-management/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-service-management/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/.*google-cloud-service-management/src/test/java/com/google/cloud/api/servicemanagement/v1/ServiceManagerClientHttpJsonTest.java" +- "/.*google-cloud-service-management/src/test/java/com/google/.*/api/servicemanagement/v1/ServiceManagerClientHttpJsonTest.java" deep-copy-regex: - source: "/google/api/servicemanagement/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-service-management/$1/proto-google-cloud-service-management-$1/src" - source: "/google/api/servicemanagement/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-service-management/$1/grpc-google-cloud-service-management-$1/src" -- source: "/google/api/servicemanagement/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-service-management/$1/google-cloud-service-management/src" +- source: "/google/api/servicemanagement/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-service-management/$1/google-cloud-service-management/src/main" - source: "/google/api/servicemanagement/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-service-management/$1/samples/snippets/generated" diff --git a/java-service-usage/.OwlBot-hermetic.yaml b/java-service-usage/.OwlBot-hermetic.yaml index 67c408dc52ab..10da3c1e168f 100644 --- a/java-service-usage/.OwlBot-hermetic.yaml +++ b/java-service-usage/.OwlBot-hermetic.yaml @@ -16,7 +16,10 @@ deep-remove-regex: - "/java-service-usage/grpc-google-.*/src" - "/java-service-usage/proto-google-.*/src" -- "/java-service-usage/google-.*/src" +- "/java-service-usage/google-.*/src/main" +- "/java-service-usage/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-service-usage/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-service-usage/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-service-usage/samples/snippets/generated" deep-preserve-regex: @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-service-usage/$1/proto-google-cloud-service-usage-$1/src" - source: "/google/api/serviceusage/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-service-usage/$1/grpc-google-cloud-service-usage-$1/src" -- source: "/google/api/serviceusage/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-service-usage/$1/google-cloud-service-usage/src" +- source: "/google/api/serviceusage/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-service-usage/$1/google-cloud-service-usage/src/main" - source: "/google/api/serviceusage/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-service-usage/$1/samples/snippets/generated" diff --git a/java-servicedirectory/.OwlBot-hermetic.yaml b/java-servicedirectory/.OwlBot-hermetic.yaml index 868555902c36..e1d2056fdae1 100644 --- a/java-servicedirectory/.OwlBot-hermetic.yaml +++ b/java-servicedirectory/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-servicedirectory/samples/snippets/generated" - "/java-servicedirectory/grpc-google-.*/src" - "/java-servicedirectory/proto-google-.*/src" -- "/java-servicedirectory/google-.*/src" +- "/java-servicedirectory/google-.*/src/main" +- "/java-servicedirectory/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-servicedirectory/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-servicedirectory/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-servicedirectory/$1/proto-google-cloud-servicedirectory-$1/src" - source: "/google/cloud/servicedirectory/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-servicedirectory/$1/grpc-google-cloud-servicedirectory-$1/src" -- source: "/google/cloud/servicedirectory/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-servicedirectory/$1/google-cloud-servicedirectory/src" +- source: "/google/cloud/servicedirectory/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-servicedirectory/$1/google-cloud-servicedirectory/src/main" - source: "/google/cloud/servicedirectory/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-servicedirectory/$1/samples/snippets/generated" diff --git a/java-servicehealth/.OwlBot-hermetic.yaml b/java-servicehealth/.OwlBot-hermetic.yaml index b6a92928c1f7..7b96124792b3 100644 --- a/java-servicehealth/.OwlBot-hermetic.yaml +++ b/java-servicehealth/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-servicehealth/grpc-google-.*/src" - "/java-servicehealth/proto-google-.*/src" -- "/java-servicehealth/google-.*/src" +- "/java-servicehealth/google-.*/src/main" +- "/java-servicehealth/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-servicehealth/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-servicehealth/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-servicehealth/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/servicehealth/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-servicehealth/$1/proto-google-cloud-servicehealth-$1/src" - source: "/google/cloud/servicehealth/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-servicehealth/$1/grpc-google-cloud-servicehealth-$1/src" -- source: "/google/cloud/servicehealth/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-servicehealth/$1/google-cloud-servicehealth/src" +- source: "/google/cloud/servicehealth/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-servicehealth/$1/google-cloud-servicehealth/src/main" - source: "/google/cloud/servicehealth/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-servicehealth/$1/samples/snippets/generated" diff --git a/java-shell/.OwlBot-hermetic.yaml b/java-shell/.OwlBot-hermetic.yaml index eb45f01c0d80..a227834df4a9 100644 --- a/java-shell/.OwlBot-hermetic.yaml +++ b/java-shell/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-shell/samples/snippets/generated" - "/java-shell/grpc-google-.*/src" - "/java-shell/proto-google-.*/src" -- "/java-shell/google-.*/src" +- "/java-shell/google-.*/src/main" +- "/java-shell/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-shell/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-shell/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-shell/$1/proto-google-cloud-shell-$1/src" - source: "/google/cloud/shell/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shell/$1/grpc-google-cloud-shell-$1/src" -- source: "/google/cloud/shell/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-shell/$1/google-cloud-shell/src" +- source: "/google/cloud/shell/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-shell/$1/google-cloud-shell/src/main" - source: "/google/cloud/shell/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shell/$1/samples/snippets/generated" diff --git a/java-shopping-css/.OwlBot-hermetic.yaml b/java-shopping-css/.OwlBot-hermetic.yaml index 85dc9638c585..7c99b6905b3a 100644 --- a/java-shopping-css/.OwlBot-hermetic.yaml +++ b/java-shopping-css/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-shopping-css/grpc-google-.*/src" - "/java-shopping-css/proto-google-.*/src" -- "/java-shopping-css/google-.*/src" +- "/java-shopping-css/google-.*/src/main" +- "/java-shopping-css/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-shopping-css/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-shopping-css/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-shopping-css/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/shopping/css/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-css/$1/proto-google-shopping-css-$1/src" - source: "/google/shopping/css/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-css/$1/grpc-google-shopping-css-$1/src" -- source: "/google/shopping/css/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-shopping-css/$1/google-shopping-css/src" +- source: "/google/shopping/css/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-shopping-css/$1/google-shopping-css/src/main" - source: "/google/shopping/css/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-css/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-accounts/.OwlBot-hermetic.yaml b/java-shopping-merchant-accounts/.OwlBot-hermetic.yaml index 9625b0161907..f923c6c863bd 100644 --- a/java-shopping-merchant-accounts/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-accounts/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-shopping-merchant-accounts/grpc-google-.*/src" - "/java-shopping-merchant-accounts/proto-google-.*/src" -- "/java-shopping-merchant-accounts/google-.*/src" +- "/java-shopping-merchant-accounts/google-.*/src/main" +- "/java-shopping-merchant-accounts/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-shopping-merchant-accounts/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-shopping-merchant-accounts/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-shopping-merchant-accounts/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/shopping/merchant/accounts/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-accounts/$1/proto-google-shopping-merchant-accounts-$1/src" - source: "/google/shopping/merchant/accounts/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-accounts/$1/grpc-google-shopping-merchant-accounts-$1/src" -- source: "/google/shopping/merchant/accounts/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-shopping-merchant-accounts/$1/google-shopping-merchant-accounts/src" +- source: "/google/shopping/merchant/accounts/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-shopping-merchant-accounts/$1/google-shopping-merchant-accounts/src/main" - source: "/google/shopping/merchant/accounts/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-accounts/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-conversions/.OwlBot-hermetic.yaml b/java-shopping-merchant-conversions/.OwlBot-hermetic.yaml index f3dd37243f40..5fdfee378bfd 100644 --- a/java-shopping-merchant-conversions/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-conversions/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-shopping-merchant-conversions/grpc-google-.*/src" - "/java-shopping-merchant-conversions/proto-google-.*/src" -- "/java-shopping-merchant-conversions/google-.*/src" +- "/java-shopping-merchant-conversions/google-.*/src/main" +- "/java-shopping-merchant-conversions/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-shopping-merchant-conversions/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-shopping-merchant-conversions/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-shopping-merchant-conversions/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/shopping/merchant/conversions/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-conversions/$1/proto-google-shopping-merchant-conversions-$1/src" - source: "/google/shopping/merchant/conversions/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-conversions/$1/grpc-google-shopping-merchant-conversions-$1/src" -- source: "/google/shopping/merchant/conversions/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-shopping-merchant-conversions/$1/google-shopping-merchant-conversions/src" +- source: "/google/shopping/merchant/conversions/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-shopping-merchant-conversions/$1/google-shopping-merchant-conversions/src/main" - source: "/google/shopping/merchant/conversions/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-conversions/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-datasources/.OwlBot-hermetic.yaml b/java-shopping-merchant-datasources/.OwlBot-hermetic.yaml index bd1291e3f8c9..1e1de694fb8f 100644 --- a/java-shopping-merchant-datasources/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-datasources/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-shopping-merchant-datasources/grpc-google-.*/src" - "/java-shopping-merchant-datasources/proto-google-.*/src" -- "/java-shopping-merchant-datasources/google-.*/src" +- "/java-shopping-merchant-datasources/google-.*/src/main" +- "/java-shopping-merchant-datasources/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-shopping-merchant-datasources/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-shopping-merchant-datasources/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-shopping-merchant-datasources/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/shopping/merchant/datasources/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-datasources/$1/proto-google-shopping-merchant-datasources-$1/src" - source: "/google/shopping/merchant/datasources/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-datasources/$1/grpc-google-shopping-merchant-datasources-$1/src" -- source: "/google/shopping/merchant/datasources/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-shopping-merchant-datasources/$1/google-shopping-merchant-datasources/src" +- source: "/google/shopping/merchant/datasources/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-shopping-merchant-datasources/$1/google-shopping-merchant-datasources/src/main" - source: "/google/shopping/merchant/datasources/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-datasources/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-inventories/.OwlBot-hermetic.yaml b/java-shopping-merchant-inventories/.OwlBot-hermetic.yaml index aa2ed61270d0..56af2710dfe3 100644 --- a/java-shopping-merchant-inventories/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-inventories/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-shopping-merchant-inventories/grpc-google-.*/src" - "/java-shopping-merchant-inventories/proto-google-.*/src" -- "/java-shopping-merchant-inventories/google-.*/src" +- "/java-shopping-merchant-inventories/google-.*/src/main" +- "/java-shopping-merchant-inventories/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-shopping-merchant-inventories/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-shopping-merchant-inventories/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-shopping-merchant-inventories/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/shopping/merchant/inventories/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-inventories/$1/proto-google-shopping-merchant-inventories-$1/src" - source: "/google/shopping/merchant/inventories/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-inventories/$1/grpc-google-shopping-merchant-inventories-$1/src" -- source: "/google/shopping/merchant/inventories/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-shopping-merchant-inventories/$1/google-shopping-merchant-inventories/src" +- source: "/google/shopping/merchant/inventories/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-shopping-merchant-inventories/$1/google-shopping-merchant-inventories/src/main" - source: "/google/shopping/merchant/inventories/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-inventories/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-lfp/.OwlBot-hermetic.yaml b/java-shopping-merchant-lfp/.OwlBot-hermetic.yaml index 8d0d80e1258c..fc23a950ab16 100644 --- a/java-shopping-merchant-lfp/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-lfp/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-shopping-merchant-lfp/grpc-google-.*/src" - "/java-shopping-merchant-lfp/proto-google-.*/src" -- "/java-shopping-merchant-lfp/google-.*/src" +- "/java-shopping-merchant-lfp/google-.*/src/main" +- "/java-shopping-merchant-lfp/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-shopping-merchant-lfp/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-shopping-merchant-lfp/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-shopping-merchant-lfp/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/shopping/merchant/lfp/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-lfp/$1/proto-google-shopping-merchant-lfp-$1/src" - source: "/google/shopping/merchant/lfp/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-lfp/$1/grpc-google-shopping-merchant-lfp-$1/src" -- source: "/google/shopping/merchant/lfp/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-shopping-merchant-lfp/$1/google-shopping-merchant-lfp/src" +- source: "/google/shopping/merchant/lfp/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-shopping-merchant-lfp/$1/google-shopping-merchant-lfp/src/main" - source: "/google/shopping/merchant/lfp/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-lfp/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-notifications/.OwlBot-hermetic.yaml b/java-shopping-merchant-notifications/.OwlBot-hermetic.yaml index 7f4bbbdc24c2..248869ffc5d2 100644 --- a/java-shopping-merchant-notifications/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-notifications/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-shopping-merchant-notifications/grpc-google-.*/src" - "/java-shopping-merchant-notifications/proto-google-.*/src" -- "/java-shopping-merchant-notifications/google-.*/src" +- "/java-shopping-merchant-notifications/google-.*/src/main" +- "/java-shopping-merchant-notifications/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-shopping-merchant-notifications/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-shopping-merchant-notifications/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-shopping-merchant-notifications/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/shopping/merchant/notifications/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-notifications/$1/proto-google-shopping-merchant-notifications-$1/src" - source: "/google/shopping/merchant/notifications/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-notifications/$1/grpc-google-shopping-merchant-notifications-$1/src" -- source: "/google/shopping/merchant/notifications/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-shopping-merchant-notifications/$1/google-shopping-merchant-notifications/src" +- source: "/google/shopping/merchant/notifications/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-shopping-merchant-notifications/$1/google-shopping-merchant-notifications/src/main" - source: "/google/shopping/merchant/notifications/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-notifications/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-product-studio/.OwlBot-hermetic.yaml b/java-shopping-merchant-product-studio/.OwlBot-hermetic.yaml index 92eb584e5bae..23bb7b97234a 100644 --- a/java-shopping-merchant-product-studio/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-product-studio/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-shopping-merchant-product-studio/grpc-google-.*/src" - "/java-shopping-merchant-product-studio/proto-google-.*/src" -- "/java-shopping-merchant-product-studio/google-.*/src" +- "/java-shopping-merchant-product-studio/google-.*/src/main" +- "/java-shopping-merchant-product-studio/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-shopping-merchant-product-studio/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-shopping-merchant-product-studio/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-shopping-merchant-product-studio/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/shopping/merchant/productstudio/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-product-studio/$1/proto-google-shopping-merchant-productstudio-$1/src" - source: "/google/shopping/merchant/productstudio/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-product-studio/$1/grpc-google-shopping-merchant-productstudio-$1/src" -- source: "/google/shopping/merchant/productstudio/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-shopping-merchant-product-studio/$1/google-shopping-merchant-productstudio/src" +- source: "/google/shopping/merchant/productstudio/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-shopping-merchant-product-studio/$1/google-shopping-merchant-productstudio/src/main" - source: "/google/shopping/merchant/productstudio/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-product-studio/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-products/.OwlBot-hermetic.yaml b/java-shopping-merchant-products/.OwlBot-hermetic.yaml index a1b39aa14f9b..73478b85e1db 100644 --- a/java-shopping-merchant-products/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-products/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-shopping-merchant-products/grpc-google-.*/src" - "/java-shopping-merchant-products/proto-google-.*/src" -- "/java-shopping-merchant-products/google-.*/src" +- "/java-shopping-merchant-products/google-.*/src/main" +- "/java-shopping-merchant-products/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-shopping-merchant-products/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-shopping-merchant-products/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-shopping-merchant-products/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/shopping/merchant/products/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-products/$1/proto-google-shopping-merchant-products-$1/src" - source: "/google/shopping/merchant/products/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-products/$1/grpc-google-shopping-merchant-products-$1/src" -- source: "/google/shopping/merchant/products/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-shopping-merchant-products/$1/google-shopping-merchant-products/src" +- source: "/google/shopping/merchant/products/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-shopping-merchant-products/$1/google-shopping-merchant-products/src/main" - source: "/google/shopping/merchant/products/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-products/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-promotions/.OwlBot-hermetic.yaml b/java-shopping-merchant-promotions/.OwlBot-hermetic.yaml index daa80c453010..9bf0a38dcb9e 100644 --- a/java-shopping-merchant-promotions/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-promotions/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-shopping-merchant-promotions/grpc-google-.*/src" - "/java-shopping-merchant-promotions/proto-google-.*/src" -- "/java-shopping-merchant-promotions/google-.*/src" +- "/java-shopping-merchant-promotions/google-.*/src/main" +- "/java-shopping-merchant-promotions/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-shopping-merchant-promotions/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-shopping-merchant-promotions/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-shopping-merchant-promotions/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/shopping/merchant/promotions/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-promotions/$1/proto-google-shopping-merchant-promotions-$1/src" - source: "/google/shopping/merchant/promotions/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-promotions/$1/grpc-google-shopping-merchant-promotions-$1/src" -- source: "/google/shopping/merchant/promotions/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-shopping-merchant-promotions/$1/google-shopping-merchant-promotions/src" +- source: "/google/shopping/merchant/promotions/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-shopping-merchant-promotions/$1/google-shopping-merchant-promotions/src/main" - source: "/google/shopping/merchant/promotions/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-promotions/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-quota/.OwlBot-hermetic.yaml b/java-shopping-merchant-quota/.OwlBot-hermetic.yaml index 845a84f44df0..f0270504e506 100644 --- a/java-shopping-merchant-quota/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-quota/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-shopping-merchant-quota/grpc-google-.*/src" - "/java-shopping-merchant-quota/proto-google-.*/src" -- "/java-shopping-merchant-quota/google-.*/src" +- "/java-shopping-merchant-quota/google-.*/src/main" +- "/java-shopping-merchant-quota/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-shopping-merchant-quota/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-shopping-merchant-quota/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-shopping-merchant-quota/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/shopping/merchant/quota/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-quota/$1/proto-google-shopping-merchant-quota-$1/src" - source: "/google/shopping/merchant/quota/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-quota/$1/grpc-google-shopping-merchant-quota-$1/src" -- source: "/google/shopping/merchant/quota/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-shopping-merchant-quota/$1/google-shopping-merchant-quota/src" +- source: "/google/shopping/merchant/quota/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-shopping-merchant-quota/$1/google-shopping-merchant-quota/src/main" - source: "/google/shopping/merchant/quota/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-quota/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-reports/.OwlBot-hermetic.yaml b/java-shopping-merchant-reports/.OwlBot-hermetic.yaml index c2696556538a..287faabfab12 100644 --- a/java-shopping-merchant-reports/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-reports/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-shopping-merchant-reports/grpc-google-.*/src" - "/java-shopping-merchant-reports/proto-google-.*/src" -- "/java-shopping-merchant-reports/google-.*/src" +- "/java-shopping-merchant-reports/google-.*/src/main" +- "/java-shopping-merchant-reports/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-shopping-merchant-reports/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-shopping-merchant-reports/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-shopping-merchant-reports/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/shopping/merchant/reports/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-reports/$1/proto-google-shopping-merchant-reports-$1/src" - source: "/google/shopping/merchant/reports/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-reports/$1/grpc-google-shopping-merchant-reports-$1/src" -- source: "/google/shopping/merchant/reports/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-shopping-merchant-reports/$1/google-shopping-merchant-reports/src" +- source: "/google/shopping/merchant/reports/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-shopping-merchant-reports/$1/google-shopping-merchant-reports/src/main" - source: "/google/shopping/merchant/reports/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-reports/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-reviews/.OwlBot-hermetic.yaml b/java-shopping-merchant-reviews/.OwlBot-hermetic.yaml index e0d092823073..e8630c1b23b8 100644 --- a/java-shopping-merchant-reviews/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-reviews/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-shopping-merchant-reviews/grpc-google-.*/src" - "/java-shopping-merchant-reviews/proto-google-.*/src" -- "/java-shopping-merchant-reviews/google-.*/src" +- "/java-shopping-merchant-reviews/google-.*/src/main" +- "/java-shopping-merchant-reviews/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-shopping-merchant-reviews/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-shopping-merchant-reviews/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-shopping-merchant-reviews/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/shopping/merchant/reviews/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-reviews/$1/proto-google-shopping-merchant-reviews-$1/src" - source: "/google/shopping/merchant/reviews/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-reviews/$1/grpc-google-shopping-merchant-reviews-$1/src" -- source: "/google/shopping/merchant/reviews/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-shopping-merchant-reviews/$1/google-shopping-merchant-reviews/src" +- source: "/google/shopping/merchant/reviews/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-shopping-merchant-reviews/$1/google-shopping-merchant-reviews/src/main" - source: "/google/shopping/merchant/reviews/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-reviews/$1/samples/snippets/generated" diff --git a/java-spanneradapter/.OwlBot-hermetic.yaml b/java-spanneradapter/.OwlBot-hermetic.yaml index e1613bb2f512..1acae29a2eae 100644 --- a/java-spanneradapter/.OwlBot-hermetic.yaml +++ b/java-spanneradapter/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-spanneradapter/grpc-google-.*/src" - "/java-spanneradapter/proto-google-.*/src" -- "/java-spanneradapter/google-.*/src" +- "/java-spanneradapter/google-.*/src/main" +- "/java-spanneradapter/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-spanneradapter/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-spanneradapter/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-spanneradapter/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/spanner/adapter/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-spanneradapter/$1/proto-google-cloud-spanneradapter-$1/src" - source: "/google/spanner/adapter/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-spanneradapter/$1/grpc-google-cloud-spanneradapter-$1/src" -- source: "/google/spanner/adapter/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-spanneradapter/$1/google-cloud-spanneradapter/src" +- source: "/google/spanner/adapter/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-spanneradapter/$1/google-cloud-spanneradapter/src/main" - source: "/google/spanner/adapter/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-spanneradapter/$1/samples/snippets/generated" diff --git a/java-speech/.OwlBot-hermetic.yaml b/java-speech/.OwlBot-hermetic.yaml index cccfac32ddd0..620e118ad0e9 100644 --- a/java-speech/.OwlBot-hermetic.yaml +++ b/java-speech/.OwlBot-hermetic.yaml @@ -17,13 +17,15 @@ deep-remove-regex: - "/java-speech/samples/snippets/generated" - "/java-speech/grpc-google-.*/src" - "/java-speech/proto-google-.*/src" -- "/java-speech/google-.*/src" +- "/java-speech/google-.*/src/main" +- "/java-speech/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-speech/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-speech/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/.*google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechSmokeTest.java" -- "/.*google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechSmokeTest.java" +- "/.*google-cloud-speech/src/test/java/com/google/.*/speech/v1/SpeechSmokeTest.java" +- "/.*google-cloud-speech/src/test/java/com/google/.*/speech/v1p1beta1/SpeechSmokeTest.java" - "/.*google-cloud-speech/src/test/resources/hello.flac" - "/.*google-cloud-speech/src/test/resources/META-INF/native-image/" @@ -32,8 +34,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-speech/$1/proto-google-cloud-speech-$1/src" - source: "/google/cloud/speech/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-speech/$1/grpc-google-cloud-speech-$1/src" -- source: "/google/cloud/speech/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-speech/$1/google-cloud-speech/src" +- source: "/google/cloud/speech/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-speech/$1/google-cloud-speech/src/main" - source: "/google/cloud/speech/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-speech/$1/samples/snippets/generated" diff --git a/java-storage-transfer/.OwlBot-hermetic.yaml b/java-storage-transfer/.OwlBot-hermetic.yaml index d27a909724d3..0bfde85b6c9e 100644 --- a/java-storage-transfer/.OwlBot-hermetic.yaml +++ b/java-storage-transfer/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-storage-transfer/grpc-google-.*/src" - "/java-storage-transfer/proto-google-.*/src" -- "/java-storage-transfer/google-.*/src" +- "/java-storage-transfer/google-.*/src/main" +- "/java-storage-transfer/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-storage-transfer/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-storage-transfer/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-storage-transfer/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/storagetransfer/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-storage-transfer/$1/proto-google-cloud-storage-transfer-$1/src" - source: "/google/storagetransfer/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-storage-transfer/$1/grpc-google-cloud-storage-transfer-$1/src" -- source: "/google/storagetransfer/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-storage-transfer/$1/google-cloud-storage-transfer/src" +- source: "/google/storagetransfer/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-storage-transfer/$1/google-cloud-storage-transfer/src/main" - source: "/google/storagetransfer/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-storage-transfer/$1/samples/snippets/generated" diff --git a/java-storagebatchoperations/.OwlBot-hermetic.yaml b/java-storagebatchoperations/.OwlBot-hermetic.yaml index 5740ca2e28b9..f21399a9f155 100644 --- a/java-storagebatchoperations/.OwlBot-hermetic.yaml +++ b/java-storagebatchoperations/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-storagebatchoperations/grpc-google-.*/src" - "/java-storagebatchoperations/proto-google-.*/src" -- "/java-storagebatchoperations/google-.*/src" +- "/java-storagebatchoperations/google-.*/src/main" +- "/java-storagebatchoperations/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-storagebatchoperations/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-storagebatchoperations/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-storagebatchoperations/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/storagebatchoperations/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-storagebatchoperations/$1/proto-google-cloud-storagebatchoperations-$1/src" - source: "/google/cloud/storagebatchoperations/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-storagebatchoperations/$1/grpc-google-cloud-storagebatchoperations-$1/src" -- source: "/google/cloud/storagebatchoperations/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-storagebatchoperations/$1/google-cloud-storagebatchoperations/src" +- source: "/google/cloud/storagebatchoperations/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-storagebatchoperations/$1/google-cloud-storagebatchoperations/src/main" - source: "/google/cloud/storagebatchoperations/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-storagebatchoperations/$1/samples/snippets/generated" diff --git a/java-storageinsights/.OwlBot-hermetic.yaml b/java-storageinsights/.OwlBot-hermetic.yaml index e07bfe54426c..47a50b6ddfa8 100644 --- a/java-storageinsights/.OwlBot-hermetic.yaml +++ b/java-storageinsights/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-storageinsights/grpc-google-.*/src" - "/java-storageinsights/proto-google-.*/src" -- "/java-storageinsights/google-.*/src" +- "/java-storageinsights/google-.*/src/main" +- "/java-storageinsights/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-storageinsights/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-storageinsights/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-storageinsights/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/storageinsights/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-storageinsights/$1/proto-google-cloud-storageinsights-$1/src" - source: "/google/cloud/storageinsights/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-storageinsights/$1/grpc-google-cloud-storageinsights-$1/src" -- source: "/google/cloud/storageinsights/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-storageinsights/$1/google-cloud-storageinsights/src" +- source: "/google/cloud/storageinsights/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-storageinsights/$1/google-cloud-storageinsights/src/main" - source: "/google/cloud/storageinsights/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-storageinsights/$1/samples/snippets/generated" diff --git a/java-talent/.OwlBot-hermetic.yaml b/java-talent/.OwlBot-hermetic.yaml index 2144d70d7b19..003c01d7e64a 100644 --- a/java-talent/.OwlBot-hermetic.yaml +++ b/java-talent/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-talent/samples/snippets/generated" - "/java-talent/grpc-google-.*/src" - "/java-talent/proto-google-.*/src" -- "/java-talent/google-.*/src" +- "/java-talent/google-.*/src/main" +- "/java-talent/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-talent/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-talent/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/talent/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-talent/$1/proto-google-cloud-talent-$1/src" - source: "/google/cloud/talent/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-talent/$1/grpc-google-cloud-talent-$1/src" -- source: "/google/cloud/talent/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-talent/$1/google-cloud-talent/src" +- source: "/google/cloud/talent/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-talent/$1/google-cloud-talent/src/main" - source: "/google/cloud/talent/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-talent/$1/samples/snippets/generated" diff --git a/java-tasks/.OwlBot-hermetic.yaml b/java-tasks/.OwlBot-hermetic.yaml index 0c6e99f9fa6d..64038befc453 100644 --- a/java-tasks/.OwlBot-hermetic.yaml +++ b/java-tasks/.OwlBot-hermetic.yaml @@ -17,12 +17,14 @@ deep-remove-regex: - "/java-tasks/samples/snippets/generated" - "/java-tasks/grpc-google-.*/src" - "/java-tasks/proto-google-.*/src" -- "/java-tasks/google-.*/src" +- "/java-tasks/google-.*/src/main" +- "/java-tasks/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-tasks/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-tasks/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/.*google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksSmokeTest.java" +- "/.*google-cloud-tasks/src/test/java/com/google/.*/tasks/v2beta3/CloudTasksSmokeTest.java" - "/.*proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ProjectName.java" - "/.*proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ProjectName.java" - "/.*proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ProjectName.java" @@ -32,8 +34,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-tasks/$1/proto-google-cloud-tasks-$1/src" - source: "/google/cloud/tasks/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-tasks/$1/grpc-google-cloud-tasks-$1/src" -- source: "/google/cloud/tasks/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-tasks/$1/google-cloud-tasks/src" +- source: "/google/cloud/tasks/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-tasks/$1/google-cloud-tasks/src/main" - source: "/google/cloud/tasks/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-tasks/$1/samples/snippets/generated" diff --git a/java-telcoautomation/.OwlBot-hermetic.yaml b/java-telcoautomation/.OwlBot-hermetic.yaml index d8f63cf283f9..980aec3062ba 100644 --- a/java-telcoautomation/.OwlBot-hermetic.yaml +++ b/java-telcoautomation/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-telcoautomation/grpc-google-.*/src" - "/java-telcoautomation/proto-google-.*/src" -- "/java-telcoautomation/google-.*/src" +- "/java-telcoautomation/google-.*/src/main" +- "/java-telcoautomation/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-telcoautomation/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-telcoautomation/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-telcoautomation/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/telcoautomation/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-telcoautomation/$1/proto-google-cloud-telcoautomation-$1/src" - source: "/google/cloud/telcoautomation/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-telcoautomation/$1/grpc-google-cloud-telcoautomation-$1/src" -- source: "/google/cloud/telcoautomation/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-telcoautomation/$1/google-cloud-telcoautomation/src" +- source: "/google/cloud/telcoautomation/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-telcoautomation/$1/google-cloud-telcoautomation/src/main" - source: "/google/cloud/telcoautomation/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-telcoautomation/$1/samples/snippets/generated" diff --git a/java-texttospeech/.OwlBot-hermetic.yaml b/java-texttospeech/.OwlBot-hermetic.yaml index 4ef41ea7d2bb..f9a724d687d0 100644 --- a/java-texttospeech/.OwlBot-hermetic.yaml +++ b/java-texttospeech/.OwlBot-hermetic.yaml @@ -17,13 +17,15 @@ deep-remove-regex: - "/java-texttospeech/samples/snippets/generated" - "/java-texttospeech/grpc-google-.*/src" - "/java-texttospeech/proto-google-.*/src" -- "/java-texttospeech/google-.*/src" +- "/java-texttospeech/google-.*/src/main" +- "/java-texttospeech/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-texttospeech/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-texttospeech/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/.*google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechSmokeTest.java" -- "/.*google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSmokeTest.java" +- "/.*google-cloud-texttospeech/src/test/java/com/google/.*/texttospeech/v1/TextToSpeechSmokeTest.java" +- "/.*google-cloud-texttospeech/src/test/java/com/google/.*/texttospeech/v1beta1/TextToSpeechSmokeTest.java" deep-copy-regex: @@ -31,8 +33,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-texttospeech/$1/proto-google-cloud-texttospeech-$1/src" - source: "/google/cloud/texttospeech/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-texttospeech/$1/grpc-google-cloud-texttospeech-$1/src" -- source: "/google/cloud/texttospeech/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-texttospeech/$1/google-cloud-texttospeech/src" +- source: "/google/cloud/texttospeech/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-texttospeech/$1/google-cloud-texttospeech/src/main" - source: "/google/cloud/texttospeech/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-texttospeech/$1/samples/snippets/generated" diff --git a/java-tpu/.OwlBot-hermetic.yaml b/java-tpu/.OwlBot-hermetic.yaml index 3794e77bf685..47a0185b1d2d 100644 --- a/java-tpu/.OwlBot-hermetic.yaml +++ b/java-tpu/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-tpu/samples/snippets/generated" - "/java-tpu/grpc-google-.*/src" - "/java-tpu/proto-google-.*/src" -- "/java-tpu/google-.*/src" +- "/java-tpu/google-.*/src/main" +- "/java-tpu/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-tpu/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-tpu/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-tpu/$1/proto-google-cloud-tpu-$1/src" - source: "/google/cloud/tpu/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-tpu/$1/grpc-google-cloud-tpu-$1/src" -- source: "/google/cloud/tpu/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-tpu/$1/google-cloud-tpu/src" +- source: "/google/cloud/tpu/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-tpu/$1/google-cloud-tpu/src/main" - source: "/google/cloud/tpu/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-tpu/$1/samples/snippets/generated" diff --git a/java-trace/.OwlBot-hermetic.yaml b/java-trace/.OwlBot-hermetic.yaml index fa7122e5a04c..b434ba61ff0e 100644 --- a/java-trace/.OwlBot-hermetic.yaml +++ b/java-trace/.OwlBot-hermetic.yaml @@ -16,22 +16,24 @@ deep-remove-regex: - "/java-trace/grpc-google-.*/src" - "/java-trace/proto-google-.*/src" -- "/java-trace/google-.*/src" +- "/java-trace/google-.*/src/main" +- "/java-trace/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-trace/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-trace/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-trace/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/.*google-cloud-trace/src/test/java/com/google/cloud/trace/v1/VPCServiceControlTest.java" -- "/.*google-cloud-trace/src/test/java/com/google/cloud/trace/v2/VPCServiceControlTest.java" +- "/.*google-cloud-trace/src/test/java/com/google/.*/trace/v1/VPCServiceControlTest.java" +- "/.*google-cloud-trace/src/test/java/com/google/.*/trace/v2/VPCServiceControlTest.java" deep-copy-regex: - source: "/google/devtools/cloudtrace/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-trace/$1/proto-google-cloud-trace-$1/src" - source: "/google/devtools/cloudtrace/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-trace/$1/grpc-google-cloud-trace-$1/src" -- source: "/google/devtools/cloudtrace/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-trace/$1/google-cloud-trace/src" +- source: "/google/devtools/cloudtrace/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-trace/$1/google-cloud-trace/src/main" - source: "/google/devtools/cloudtrace/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-trace/$1/samples/snippets/generated" diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceService.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceService.java deleted file mode 100644 index 87adc39cda29..000000000000 --- a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF 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; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockTraceService implements MockGrpcService { - private final MockTraceServiceImpl serviceImpl; - - public MockTraceService() { - serviceImpl = new MockTraceServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceServiceImpl.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceServiceImpl.java deleted file mode 100644 index 8d9ec4ceaf7b..000000000000 --- a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceServiceImpl.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF 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; - -import com.google.api.core.BetaApi; -import com.google.devtools.cloudtrace.v1.GetTraceRequest; -import com.google.devtools.cloudtrace.v1.ListTracesRequest; -import com.google.devtools.cloudtrace.v1.ListTracesResponse; -import com.google.devtools.cloudtrace.v1.PatchTracesRequest; -import com.google.devtools.cloudtrace.v1.Trace; -import com.google.devtools.cloudtrace.v1.TraceServiceGrpc.TraceServiceImplBase; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockTraceServiceImpl extends TraceServiceImplBase { - private List requests; - private Queue responses; - - public MockTraceServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void listTraces( - ListTracesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListTracesResponse) { - requests.add(request); - responseObserver.onNext(((ListTracesResponse) 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 ListTraces, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListTracesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getTrace(GetTraceRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Trace) { - requests.add(request); - responseObserver.onNext(((Trace) 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 GetTrace, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Trace.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void patchTraces(PatchTracesRequest 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 PatchTraces, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientHttpJsonTest.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientHttpJsonTest.java deleted file mode 100644 index 6ebec9afb0c5..000000000000 --- a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientHttpJsonTest.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF 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; - -import static com.google.cloud.trace.v1.TraceServiceClient.ListTracesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.cloud.trace.v1.stub.HttpJsonTraceServiceStub; -import com.google.common.collect.Lists; -import com.google.devtools.cloudtrace.v1.ListTracesResponse; -import com.google.devtools.cloudtrace.v1.Trace; -import com.google.devtools.cloudtrace.v1.TraceSpan; -import com.google.devtools.cloudtrace.v1.Traces; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class TraceServiceClientHttpJsonTest { - private static MockHttpService mockService; - private static TraceServiceClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonTraceServiceStub.getMethodDescriptors(), - TraceServiceSettings.getDefaultEndpoint()); - TraceServiceSettings settings = - TraceServiceSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - TraceServiceSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = TraceServiceClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void listTracesTest() throws Exception { - Trace responsesElement = Trace.newBuilder().build(); - ListTracesResponse expectedResponse = - ListTracesResponse.newBuilder() - .setNextPageToken("") - .addAllTraces(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String projectId = "projectId-1530"; - - ListTracesPagedResponse pagedListResponse = client.listTraces(projectId); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTracesList().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 listTracesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String projectId = "projectId-1530"; - client.listTraces(projectId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTraceTest() throws Exception { - Trace expectedResponse = - Trace.newBuilder() - .setProjectId("projectId-894832108") - .setTraceId("traceId-1067401920") - .addAllSpans(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String projectId = "projectId-1530"; - String traceId = "traceId-8890"; - - Trace actualResponse = client.getTrace(projectId, traceId); - 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 getTraceExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String projectId = "projectId-1530"; - String traceId = "traceId-8890"; - client.getTrace(projectId, traceId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void patchTracesTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String projectId = "projectId-1530"; - Traces traces = Traces.newBuilder().build(); - - client.patchTraces(projectId, traces); - - 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 patchTracesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String projectId = "projectId-1530"; - Traces traces = Traces.newBuilder().build(); - client.patchTraces(projectId, traces); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientTest.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientTest.java deleted file mode 100644 index 44d15d9dd336..000000000000 --- a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientTest.java +++ /dev/null @@ -1,213 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF 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; - -import static com.google.cloud.trace.v1.TraceServiceClient.ListTracesPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -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.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.common.collect.Lists; -import com.google.devtools.cloudtrace.v1.GetTraceRequest; -import com.google.devtools.cloudtrace.v1.ListTracesRequest; -import com.google.devtools.cloudtrace.v1.ListTracesResponse; -import com.google.devtools.cloudtrace.v1.PatchTracesRequest; -import com.google.devtools.cloudtrace.v1.Trace; -import com.google.devtools.cloudtrace.v1.TraceSpan; -import com.google.devtools.cloudtrace.v1.Traces; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class TraceServiceClientTest { - private static MockServiceHelper mockServiceHelper; - private static MockTraceService mockTraceService; - private LocalChannelProvider channelProvider; - private TraceServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockTraceService = new MockTraceService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockTraceService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - TraceServiceSettings settings = - TraceServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = TraceServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void listTracesTest() throws Exception { - Trace responsesElement = Trace.newBuilder().build(); - ListTracesResponse expectedResponse = - ListTracesResponse.newBuilder() - .setNextPageToken("") - .addAllTraces(Arrays.asList(responsesElement)) - .build(); - mockTraceService.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - - ListTracesPagedResponse pagedListResponse = client.listTraces(projectId); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTracesList().get(0), resources.get(0)); - - List actualRequests = mockTraceService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTracesRequest actualRequest = ((ListTracesRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTracesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTraceService.addException(exception); - - try { - String projectId = "projectId-894832108"; - client.listTraces(projectId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTraceTest() throws Exception { - Trace expectedResponse = - Trace.newBuilder() - .setProjectId("projectId-894832108") - .setTraceId("traceId-1067401920") - .addAllSpans(new ArrayList()) - .build(); - mockTraceService.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - String traceId = "traceId-1067401920"; - - Trace actualResponse = client.getTrace(projectId, traceId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTraceService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTraceRequest actualRequest = ((GetTraceRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(traceId, actualRequest.getTraceId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTraceExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTraceService.addException(exception); - - try { - String projectId = "projectId-894832108"; - String traceId = "traceId-1067401920"; - client.getTrace(projectId, traceId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void patchTracesTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockTraceService.addResponse(expectedResponse); - - String projectId = "projectId-894832108"; - Traces traces = Traces.newBuilder().build(); - - client.patchTraces(projectId, traces); - - List actualRequests = mockTraceService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PatchTracesRequest actualRequest = ((PatchTracesRequest) actualRequests.get(0)); - - Assert.assertEquals(projectId, actualRequest.getProjectId()); - Assert.assertEquals(traces, actualRequest.getTraces()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void patchTracesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTraceService.addException(exception); - - try { - String projectId = "projectId-894832108"; - Traces traces = Traces.newBuilder().build(); - client.patchTraces(projectId, traces); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceService.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceService.java deleted file mode 100644 index 9bc0330c2c08..000000000000 --- a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceService.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF 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; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockTraceService implements MockGrpcService { - private final MockTraceServiceImpl serviceImpl; - - public MockTraceService() { - serviceImpl = new MockTraceServiceImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceServiceImpl.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceServiceImpl.java deleted file mode 100644 index 5f981b35f193..000000000000 --- a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceServiceImpl.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF 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; - -import com.google.api.core.BetaApi; -import com.google.devtools.cloudtrace.v2.BatchWriteSpansRequest; -import com.google.devtools.cloudtrace.v2.Span; -import com.google.devtools.cloudtrace.v2.TraceServiceGrpc.TraceServiceImplBase; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockTraceServiceImpl extends TraceServiceImplBase { - private List requests; - private Queue responses; - - public MockTraceServiceImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void batchWriteSpans( - BatchWriteSpansRequest 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 BatchWriteSpans, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createSpan(Span request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Span) { - requests.add(request); - responseObserver.onNext(((Span) 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 CreateSpan, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Span.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientHttpJsonTest.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientHttpJsonTest.java deleted file mode 100644 index 38ec0ca017c5..000000000000 --- a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientHttpJsonTest.java +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF 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; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.cloud.trace.v2.stub.HttpJsonTraceServiceStub; -import com.google.devtools.cloudtrace.v2.ProjectName; -import com.google.devtools.cloudtrace.v2.Span; -import com.google.devtools.cloudtrace.v2.SpanName; -import com.google.devtools.cloudtrace.v2.StackTrace; -import com.google.devtools.cloudtrace.v2.TruncatableString; -import com.google.protobuf.BoolValue; -import com.google.protobuf.Empty; -import com.google.protobuf.Int32Value; -import com.google.protobuf.Timestamp; -import com.google.rpc.Status; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class TraceServiceClientHttpJsonTest { - private static MockHttpService mockService; - private static TraceServiceClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonTraceServiceStub.getMethodDescriptors(), - TraceServiceSettings.getDefaultEndpoint()); - TraceServiceSettings settings = - TraceServiceSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - TraceServiceSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = TraceServiceClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void batchWriteSpansTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - ProjectName name = ProjectName.of("[PROJECT]"); - List spans = new ArrayList<>(); - - client.batchWriteSpans(name, spans); - - 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 batchWriteSpansExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ProjectName name = ProjectName.of("[PROJECT]"); - List spans = new ArrayList<>(); - client.batchWriteSpans(name, spans); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchWriteSpansTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3664"; - List spans = new ArrayList<>(); - - client.batchWriteSpans(name, spans); - - 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 batchWriteSpansExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3664"; - List spans = new ArrayList<>(); - client.batchWriteSpans(name, spans); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createSpanTest() throws Exception { - Span expectedResponse = - Span.newBuilder() - .setName(SpanName.of("[PROJECT]", "[TRACE]", "[SPAN]").toString()) - .setSpanId("spanId-896182779") - .setParentSpanId("parentSpanId1059234639") - .setDisplayName(TruncatableString.newBuilder().build()) - .setStartTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setAttributes(Span.Attributes.newBuilder().build()) - .setStackTrace(StackTrace.newBuilder().build()) - .setTimeEvents(Span.TimeEvents.newBuilder().build()) - .setLinks(Span.Links.newBuilder().build()) - .setStatus(Status.newBuilder().build()) - .setSameProcessAsParentSpan(BoolValue.newBuilder().build()) - .setChildSpanCount(Int32Value.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - Span request = - Span.newBuilder() - .setName(SpanName.of("[PROJECT]", "[TRACE]", "[SPAN]").toString()) - .setSpanId("spanId-896182779") - .setParentSpanId("parentSpanId1059234639") - .setDisplayName(TruncatableString.newBuilder().build()) - .setStartTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setAttributes(Span.Attributes.newBuilder().build()) - .setStackTrace(StackTrace.newBuilder().build()) - .setTimeEvents(Span.TimeEvents.newBuilder().build()) - .setLinks(Span.Links.newBuilder().build()) - .setStatus(Status.newBuilder().build()) - .setSameProcessAsParentSpan(BoolValue.newBuilder().build()) - .setChildSpanCount(Int32Value.newBuilder().build()) - .build(); - - Span actualResponse = client.createSpan(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 createSpanExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Span request = - Span.newBuilder() - .setName(SpanName.of("[PROJECT]", "[TRACE]", "[SPAN]").toString()) - .setSpanId("spanId-896182779") - .setParentSpanId("parentSpanId1059234639") - .setDisplayName(TruncatableString.newBuilder().build()) - .setStartTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setAttributes(Span.Attributes.newBuilder().build()) - .setStackTrace(StackTrace.newBuilder().build()) - .setTimeEvents(Span.TimeEvents.newBuilder().build()) - .setLinks(Span.Links.newBuilder().build()) - .setStatus(Status.newBuilder().build()) - .setSameProcessAsParentSpan(BoolValue.newBuilder().build()) - .setChildSpanCount(Int32Value.newBuilder().build()) - .build(); - client.createSpan(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientTest.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientTest.java deleted file mode 100644 index 562de9a35d91..000000000000 --- a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientTest.java +++ /dev/null @@ -1,257 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF 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; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -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.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.devtools.cloudtrace.v2.BatchWriteSpansRequest; -import com.google.devtools.cloudtrace.v2.ProjectName; -import com.google.devtools.cloudtrace.v2.Span; -import com.google.devtools.cloudtrace.v2.SpanName; -import com.google.devtools.cloudtrace.v2.StackTrace; -import com.google.devtools.cloudtrace.v2.TruncatableString; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.BoolValue; -import com.google.protobuf.Empty; -import com.google.protobuf.Int32Value; -import com.google.protobuf.Timestamp; -import com.google.rpc.Status; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class TraceServiceClientTest { - private static MockServiceHelper mockServiceHelper; - private static MockTraceService mockTraceService; - private LocalChannelProvider channelProvider; - private TraceServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockTraceService = new MockTraceService(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockTraceService)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - TraceServiceSettings settings = - TraceServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = TraceServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void batchWriteSpansTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockTraceService.addResponse(expectedResponse); - - ProjectName name = ProjectName.of("[PROJECT]"); - List spans = new ArrayList<>(); - - client.batchWriteSpans(name, spans); - - List actualRequests = mockTraceService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchWriteSpansRequest actualRequest = ((BatchWriteSpansRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(spans, actualRequest.getSpansList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchWriteSpansExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTraceService.addException(exception); - - try { - ProjectName name = ProjectName.of("[PROJECT]"); - List spans = new ArrayList<>(); - client.batchWriteSpans(name, spans); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void batchWriteSpansTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockTraceService.addResponse(expectedResponse); - - String name = "name3373707"; - List spans = new ArrayList<>(); - - client.batchWriteSpans(name, spans); - - List actualRequests = mockTraceService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchWriteSpansRequest actualRequest = ((BatchWriteSpansRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(spans, actualRequest.getSpansList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void batchWriteSpansExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTraceService.addException(exception); - - try { - String name = "name3373707"; - List spans = new ArrayList<>(); - client.batchWriteSpans(name, spans); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createSpanTest() throws Exception { - Span expectedResponse = - Span.newBuilder() - .setName(SpanName.of("[PROJECT]", "[TRACE]", "[SPAN]").toString()) - .setSpanId("spanId-896182779") - .setParentSpanId("parentSpanId1059234639") - .setDisplayName(TruncatableString.newBuilder().build()) - .setStartTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setAttributes(Span.Attributes.newBuilder().build()) - .setStackTrace(StackTrace.newBuilder().build()) - .setTimeEvents(Span.TimeEvents.newBuilder().build()) - .setLinks(Span.Links.newBuilder().build()) - .setStatus(Status.newBuilder().build()) - .setSameProcessAsParentSpan(BoolValue.newBuilder().build()) - .setChildSpanCount(Int32Value.newBuilder().build()) - .build(); - mockTraceService.addResponse(expectedResponse); - - Span request = - Span.newBuilder() - .setName(SpanName.of("[PROJECT]", "[TRACE]", "[SPAN]").toString()) - .setSpanId("spanId-896182779") - .setParentSpanId("parentSpanId1059234639") - .setDisplayName(TruncatableString.newBuilder().build()) - .setStartTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setAttributes(Span.Attributes.newBuilder().build()) - .setStackTrace(StackTrace.newBuilder().build()) - .setTimeEvents(Span.TimeEvents.newBuilder().build()) - .setLinks(Span.Links.newBuilder().build()) - .setStatus(Status.newBuilder().build()) - .setSameProcessAsParentSpan(BoolValue.newBuilder().build()) - .setChildSpanCount(Int32Value.newBuilder().build()) - .build(); - - Span actualResponse = client.createSpan(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockTraceService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - Span actualRequest = ((Span) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getSpanId(), actualRequest.getSpanId()); - Assert.assertEquals(request.getParentSpanId(), actualRequest.getParentSpanId()); - Assert.assertEquals(request.getDisplayName(), actualRequest.getDisplayName()); - Assert.assertEquals(request.getStartTime(), actualRequest.getStartTime()); - Assert.assertEquals(request.getEndTime(), actualRequest.getEndTime()); - Assert.assertEquals(request.getAttributes(), actualRequest.getAttributes()); - Assert.assertEquals(request.getStackTrace(), actualRequest.getStackTrace()); - Assert.assertEquals(request.getTimeEvents(), actualRequest.getTimeEvents()); - Assert.assertEquals(request.getLinks(), actualRequest.getLinks()); - Assert.assertEquals(request.getStatus(), actualRequest.getStatus()); - Assert.assertEquals( - request.getSameProcessAsParentSpan(), actualRequest.getSameProcessAsParentSpan()); - Assert.assertEquals(request.getChildSpanCount(), actualRequest.getChildSpanCount()); - Assert.assertEquals(request.getSpanKind(), actualRequest.getSpanKind()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createSpanExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockTraceService.addException(exception); - - try { - Span request = - Span.newBuilder() - .setName(SpanName.of("[PROJECT]", "[TRACE]", "[SPAN]").toString()) - .setSpanId("spanId-896182779") - .setParentSpanId("parentSpanId1059234639") - .setDisplayName(TruncatableString.newBuilder().build()) - .setStartTime(Timestamp.newBuilder().build()) - .setEndTime(Timestamp.newBuilder().build()) - .setAttributes(Span.Attributes.newBuilder().build()) - .setStackTrace(StackTrace.newBuilder().build()) - .setTimeEvents(Span.TimeEvents.newBuilder().build()) - .setLinks(Span.Links.newBuilder().build()) - .setStatus(Status.newBuilder().build()) - .setSameProcessAsParentSpan(BoolValue.newBuilder().build()) - .setChildSpanCount(Int32Value.newBuilder().build()) - .build(); - client.createSpan(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-valkey/.OwlBot-hermetic.yaml b/java-valkey/.OwlBot-hermetic.yaml index 0648c0ad5d99..cf9d331e2d50 100644 --- a/java-valkey/.OwlBot-hermetic.yaml +++ b/java-valkey/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-valkey/grpc-google-.*/src" - "/java-valkey/proto-google-.*/src" -- "/java-valkey/google-.*/src" +- "/java-valkey/google-.*/src/main" +- "/java-valkey/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-valkey/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-valkey/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-valkey/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/memorystore/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-valkey/$1/proto-google-cloud-valkey-$1/src" - source: "/google/cloud/memorystore/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-valkey/$1/grpc-google-cloud-valkey-$1/src" -- source: "/google/cloud/memorystore/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-valkey/$1/google-cloud-valkey/src" +- source: "/google/cloud/memorystore/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-valkey/$1/google-cloud-valkey/src/main" - source: "/google/cloud/memorystore/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-valkey/$1/samples/snippets/generated" diff --git a/java-vectorsearch/.OwlBot-hermetic.yaml b/java-vectorsearch/.OwlBot-hermetic.yaml index b3fa7977161f..dffccf4c84d2 100644 --- a/java-vectorsearch/.OwlBot-hermetic.yaml +++ b/java-vectorsearch/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-vectorsearch/grpc-google-.*/src" - "/java-vectorsearch/proto-google-.*/src" -- "/java-vectorsearch/google-.*/src" +- "/java-vectorsearch/google-.*/src/main" +- "/java-vectorsearch/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-vectorsearch/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-vectorsearch/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-vectorsearch/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/vectorsearch/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-vectorsearch/$1/proto-google-cloud-vectorsearch-$1/src" - source: "/google/cloud/vectorsearch/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-vectorsearch/$1/grpc-google-cloud-vectorsearch-$1/src" -- source: "/google/cloud/vectorsearch/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-vectorsearch/$1/google-cloud-vectorsearch/src" +- source: "/google/cloud/vectorsearch/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-vectorsearch/$1/google-cloud-vectorsearch/src/main" - source: "/google/cloud/vectorsearch/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-vectorsearch/$1/samples/snippets/generated" diff --git a/java-video-intelligence/.OwlBot-hermetic.yaml b/java-video-intelligence/.OwlBot-hermetic.yaml index d45a10f8a927..af0e2b5ec625 100644 --- a/java-video-intelligence/.OwlBot-hermetic.yaml +++ b/java-video-intelligence/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-video-intelligence/samples/snippets/generated" - "/java-video-intelligence/grpc-google-.*/src" - "/java-video-intelligence/proto-google-.*/src" -- "/java-video-intelligence/google-.*/src" +- "/java-video-intelligence/google-.*/src/main" +- "/java-video-intelligence/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-video-intelligence/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-video-intelligence/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/videointelligence/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-video-intelligence/$1/proto-google-cloud-video-intelligence-$1/src" - source: "/google/cloud/videointelligence/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-video-intelligence/$1/grpc-google-cloud-video-intelligence-$1/src" -- source: "/google/cloud/videointelligence/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-video-intelligence/$1/google-cloud-video-intelligence/src" +- source: "/google/cloud/videointelligence/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-video-intelligence/$1/google-cloud-video-intelligence/src/main" - source: "/google/cloud/videointelligence/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-video-intelligence/$1/samples/snippets/generated" diff --git a/java-video-live-stream/.OwlBot-hermetic.yaml b/java-video-live-stream/.OwlBot-hermetic.yaml index d5a2876a1ffd..4af2bd976514 100644 --- a/java-video-live-stream/.OwlBot-hermetic.yaml +++ b/java-video-live-stream/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-video-live-stream/samples/snippets/generated" - "/java-video-live-stream/grpc-google-.*/src" - "/java-video-live-stream/proto-google-.*/src" -- "/java-video-live-stream/google-.*/src" +- "/java-video-live-stream/google-.*/src/main" +- "/java-video-live-stream/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-video-live-stream/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-video-live-stream/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/video/livestream/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-video-live-stream/$1/proto-google-cloud-live-stream-$1/src" - source: "/google/cloud/video/livestream/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-video-live-stream/$1/grpc-google-cloud-live-stream-$1/src" -- source: "/google/cloud/video/livestream/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-video-live-stream/$1/google-cloud-live-stream/src" +- source: "/google/cloud/video/livestream/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-video-live-stream/$1/google-cloud-live-stream/src/main" - source: "/google/cloud/video/livestream/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-video-live-stream/$1/samples/snippets/generated" diff --git a/java-video-stitcher/.OwlBot-hermetic.yaml b/java-video-stitcher/.OwlBot-hermetic.yaml index 4a79449cfdbd..9fde5d293ca2 100644 --- a/java-video-stitcher/.OwlBot-hermetic.yaml +++ b/java-video-stitcher/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-video-stitcher/grpc-google-.*/src" - "/java-video-stitcher/proto-google-.*/src" -- "/java-video-stitcher/google-.*/src" +- "/java-video-stitcher/google-.*/src/main" +- "/java-video-stitcher/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-video-stitcher/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-video-stitcher/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-video-stitcher/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/video/stitcher/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-video-stitcher/$1/proto-google-cloud-video-stitcher-$1/src" - source: "/google/cloud/video/stitcher/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-video-stitcher/$1/grpc-google-cloud-video-stitcher-$1/src" -- source: "/google/cloud/video/stitcher/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-video-stitcher/$1/google-cloud-video-stitcher/src" +- source: "/google/cloud/video/stitcher/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-video-stitcher/$1/google-cloud-video-stitcher/src/main" - source: "/google/cloud/video/stitcher/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-video-stitcher/$1/samples/snippets/generated" diff --git a/java-video-transcoder/.OwlBot-hermetic.yaml b/java-video-transcoder/.OwlBot-hermetic.yaml index f6e4e1a4a4ff..86eca2604a05 100644 --- a/java-video-transcoder/.OwlBot-hermetic.yaml +++ b/java-video-transcoder/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-video-transcoder/samples/snippets/generated" - "/java-video-transcoder/grpc-google-.*/src" - "/java-video-transcoder/proto-google-.*/src" -- "/java-video-transcoder/google-.*/src" +- "/java-video-transcoder/google-.*/src/main" +- "/java-video-transcoder/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-video-transcoder/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-video-transcoder/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/video/transcoder/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-video-transcoder/$1/proto-google-cloud-video-transcoder-$1/src" - source: "/google/cloud/video/transcoder/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-video-transcoder/$1/grpc-google-cloud-video-transcoder-$1/src" -- source: "/google/cloud/video/transcoder/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-video-transcoder/$1/google-cloud-video-transcoder/src" +- source: "/google/cloud/video/transcoder/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-video-transcoder/$1/google-cloud-video-transcoder/src/main" - source: "/google/cloud/video/transcoder/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-video-transcoder/$1/samples/snippets/generated" diff --git a/java-vision/.OwlBot-hermetic.yaml b/java-vision/.OwlBot-hermetic.yaml index e394616ef3c0..4eb02ebc71be 100644 --- a/java-vision/.OwlBot-hermetic.yaml +++ b/java-vision/.OwlBot-hermetic.yaml @@ -17,13 +17,15 @@ deep-remove-regex: - "/java-vision/samples/snippets/generated" - "/java-vision/grpc-google-.*/src" - "/java-vision/proto-google-.*/src" -- "/java-vision/google-.*/src" +- "/java-vision/google-.*/src/main" +- "/java-vision/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-vision/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-vision/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageName.java" -- "/.*google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java" +- "/.*google-cloud-vision/src/test/java/com/google/.*/vision/it/ITSystemTest.java" - "/.*google-cloud-vision/src/test/resources/city.jpg" - "/.*google-cloud-vision/src/test/resources/face_no_surprise.jpg" - "/.*google-cloud-vision/src/test/resources/landmark.jpg" @@ -37,8 +39,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-vision/$1/proto-google-cloud-vision-$1/src" - source: "/google/cloud/vision/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-vision/$1/grpc-google-cloud-vision-$1/src" -- source: "/google/cloud/vision/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-vision/$1/google-cloud-vision/src" +- source: "/google/cloud/vision/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-vision/$1/google-cloud-vision/src/main" - source: "/google/cloud/vision/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-vision/$1/samples/snippets/generated" diff --git a/java-visionai/.OwlBot-hermetic.yaml b/java-visionai/.OwlBot-hermetic.yaml index 05f7525e913b..7ce644687c56 100644 --- a/java-visionai/.OwlBot-hermetic.yaml +++ b/java-visionai/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-visionai/grpc-google-.*/src" - "/java-visionai/proto-google-.*/src" -- "/java-visionai/google-.*/src" +- "/java-visionai/google-.*/src/main" +- "/java-visionai/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-visionai/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-visionai/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-visionai/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/visionai/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-visionai/$1/proto-google-cloud-visionai-$1/src" - source: "/google/cloud/visionai/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-visionai/$1/grpc-google-cloud-visionai-$1/src" -- source: "/google/cloud/visionai/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-visionai/$1/google-cloud-visionai/src" +- source: "/google/cloud/visionai/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-visionai/$1/google-cloud-visionai/src/main" - source: "/google/cloud/visionai/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-visionai/$1/samples/snippets/generated" diff --git a/java-vmmigration/.OwlBot-hermetic.yaml b/java-vmmigration/.OwlBot-hermetic.yaml index 56746503806f..772aa237cbc5 100644 --- a/java-vmmigration/.OwlBot-hermetic.yaml +++ b/java-vmmigration/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-vmmigration/samples/snippets/generated" - "/java-vmmigration/grpc-google-.*/src" - "/java-vmmigration/proto-google-.*/src" -- "/java-vmmigration/google-.*/src" +- "/java-vmmigration/google-.*/src/main" +- "/java-vmmigration/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-vmmigration/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-vmmigration/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/vmmigration/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-vmmigration/$1/proto-google-cloud-vmmigration-$1/src" - source: "/google/cloud/vmmigration/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-vmmigration/$1/grpc-google-cloud-vmmigration-$1/src" -- source: "/google/cloud/vmmigration/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-vmmigration/$1/google-cloud-vmmigration/src" +- source: "/google/cloud/vmmigration/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-vmmigration/$1/google-cloud-vmmigration/src/main" - source: "/google/cloud/vmmigration/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-vmmigration/$1/samples/snippets/generated" diff --git a/java-vmwareengine/.OwlBot-hermetic.yaml b/java-vmwareengine/.OwlBot-hermetic.yaml index 32625de40188..6f506cd42198 100644 --- a/java-vmwareengine/.OwlBot-hermetic.yaml +++ b/java-vmwareengine/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-vmwareengine/grpc-google-.*/src" - "/java-vmwareengine/proto-google-.*/src" -- "/java-vmwareengine/google-.*/src" +- "/java-vmwareengine/google-.*/src/main" +- "/java-vmwareengine/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-vmwareengine/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-vmwareengine/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-vmwareengine/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/vmwareengine/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-vmwareengine/$1/proto-google-cloud-vmwareengine-$1/src" - source: "/google/cloud/vmwareengine/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-vmwareengine/$1/grpc-google-cloud-vmwareengine-$1/src" -- source: "/google/cloud/vmwareengine/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-vmwareengine/$1/google-cloud-vmwareengine/src" +- source: "/google/cloud/vmwareengine/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-vmwareengine/$1/google-cloud-vmwareengine/src/main" - source: "/google/cloud/vmwareengine/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-vmwareengine/$1/samples/snippets/generated" diff --git a/java-vpcaccess/.OwlBot-hermetic.yaml b/java-vpcaccess/.OwlBot-hermetic.yaml index b59f9f7eb2cd..83b09c3dd02c 100644 --- a/java-vpcaccess/.OwlBot-hermetic.yaml +++ b/java-vpcaccess/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-vpcaccess/samples/snippets/generated" - "/java-vpcaccess/grpc-google-.*/src" - "/java-vpcaccess/proto-google-.*/src" -- "/java-vpcaccess/google-.*/src" +- "/java-vpcaccess/google-.*/src/main" +- "/java-vpcaccess/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-vpcaccess/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-vpcaccess/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-vpcaccess/$1/proto-google-cloud-vpcaccess-$1/src" - source: "/google/cloud/vpcaccess/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-vpcaccess/$1/grpc-google-cloud-vpcaccess-$1/src" -- source: "/google/cloud/vpcaccess/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-vpcaccess/$1/google-cloud-vpcaccess/src" +- source: "/google/cloud/vpcaccess/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-vpcaccess/$1/google-cloud-vpcaccess/src/main" - source: "/google/cloud/vpcaccess/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-vpcaccess/$1/samples/snippets/generated" diff --git a/java-webrisk/.OwlBot-hermetic.yaml b/java-webrisk/.OwlBot-hermetic.yaml index 5f7551f9c27b..414548bd93b6 100644 --- a/java-webrisk/.OwlBot-hermetic.yaml +++ b/java-webrisk/.OwlBot-hermetic.yaml @@ -17,19 +17,20 @@ deep-remove-regex: - "/java-webrisk/samples/snippets/generated" - "/java-webrisk/grpc-google-.*/src" - "/java-webrisk/proto-google-.*/src" -- "/java-webrisk/google-.*/src" +- "/java-webrisk/google-.*/src/main" +- "/java-webrisk/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-webrisk/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-webrisk/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/webrisk/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-webrisk/$1/proto-google-cloud-webrisk-$1/src" - source: "/google/cloud/webrisk/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-webrisk/$1/grpc-google-cloud-webrisk-$1/src" -- source: "/google/cloud/webrisk/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-webrisk/$1/google-cloud-webrisk/src" +- source: "/google/cloud/webrisk/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-webrisk/$1/google-cloud-webrisk/src/main" - source: "/google/cloud/webrisk/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-webrisk/$1/samples/snippets/generated" diff --git a/java-websecurityscanner/.OwlBot-hermetic.yaml b/java-websecurityscanner/.OwlBot-hermetic.yaml index cb099f7e32c5..0a716ba6e4fd 100644 --- a/java-websecurityscanner/.OwlBot-hermetic.yaml +++ b/java-websecurityscanner/.OwlBot-hermetic.yaml @@ -17,13 +17,15 @@ deep-remove-regex: - "/java-websecurityscanner/samples/snippets/generated" - "/java-websecurityscanner/grpc-google-.*/src" - "/java-websecurityscanner/proto-google-.*/src" -- "/java-websecurityscanner/google-.*/src" +- "/java-websecurityscanner/google-.*/src/main" +- "/java-websecurityscanner/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-websecurityscanner/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-websecurityscanner/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" -- "/.*google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/it/v1beta/VPCServiceControlNegativeTest.java" -- "/.*google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/it/v1beta/VPCServiceControlPositiveTest.java" +- "/.*google-cloud-websecurityscanner/src/test/java/com/google/.*/websecurityscanner/it/v1beta/VPCServiceControlNegativeTest.java" +- "/.*google-cloud-websecurityscanner/src/test/java/com/google/.*/websecurityscanner/it/v1beta/VPCServiceControlPositiveTest.java" deep-copy-regex: @@ -31,8 +33,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-websecurityscanner/$1/proto-google-cloud-websecurityscanner-$1/src" - source: "/google/cloud/websecurityscanner/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-websecurityscanner/$1/grpc-google-cloud-websecurityscanner-$1/src" -- source: "/google/cloud/websecurityscanner/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-websecurityscanner/$1/google-cloud-websecurityscanner/src" +- source: "/google/cloud/websecurityscanner/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-websecurityscanner/$1/google-cloud-websecurityscanner/src/main" - source: "/google/cloud/websecurityscanner/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-websecurityscanner/$1/samples/snippets/generated" diff --git a/java-workflow-executions/.OwlBot-hermetic.yaml b/java-workflow-executions/.OwlBot-hermetic.yaml index db20f01d0b75..8c53aab2bc68 100644 --- a/java-workflow-executions/.OwlBot-hermetic.yaml +++ b/java-workflow-executions/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-workflow-executions/grpc-google-.*/src" - "/java-workflow-executions/proto-google-.*/src" -- "/java-workflow-executions/google-.*/src" +- "/java-workflow-executions/google-.*/src/main" +- "/java-workflow-executions/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-workflow-executions/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-workflow-executions/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-workflow-executions/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/workflows/executions/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-workflow-executions/$1/proto-google-cloud-workflow-executions-$1/src" - source: "/google/cloud/workflows/executions/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-workflow-executions/$1/grpc-google-cloud-workflow-executions-$1/src" -- source: "/google/cloud/workflows/executions/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-workflow-executions/$1/google-cloud-workflow-executions/src" +- source: "/google/cloud/workflows/executions/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-workflow-executions/$1/google-cloud-workflow-executions/src/main" - source: "/google/cloud/workflows/executions/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-workflow-executions/$1/samples/snippets/generated" diff --git a/java-workflows/.OwlBot-hermetic.yaml b/java-workflows/.OwlBot-hermetic.yaml index cdee73a24d38..08daa325b060 100644 --- a/java-workflows/.OwlBot-hermetic.yaml +++ b/java-workflows/.OwlBot-hermetic.yaml @@ -17,7 +17,10 @@ deep-remove-regex: - "/java-workflows/samples/snippets/generated" - "/java-workflows/grpc-google-.*/src" - "/java-workflows/proto-google-.*/src" -- "/java-workflows/google-.*/src" +- "/java-workflows/google-.*/src/main" +- "/java-workflows/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-workflows/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-workflows/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-workflows/$1/proto-google-cloud-workflows-$1/src" - source: "/google/cloud/workflows/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-workflows/$1/grpc-google-cloud-workflows-$1/src" -- source: "/google/cloud/workflows/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-workflows/$1/google-cloud-workflows/src" +- source: "/google/cloud/workflows/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-workflows/$1/google-cloud-workflows/src/main" - source: "/google/cloud/workflows/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-workflows/$1/samples/snippets/generated" diff --git a/java-workloadmanager/.OwlBot-hermetic.yaml b/java-workloadmanager/.OwlBot-hermetic.yaml index 35136c7ef699..b77c68b82bae 100644 --- a/java-workloadmanager/.OwlBot-hermetic.yaml +++ b/java-workloadmanager/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-workloadmanager/grpc-google-.*/src" - "/java-workloadmanager/proto-google-.*/src" -- "/java-workloadmanager/google-.*/src" +- "/java-workloadmanager/google-.*/src/main" +- "/java-workloadmanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-workloadmanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-workloadmanager/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-workloadmanager/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/workloadmanager/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-workloadmanager/$1/proto-google-cloud-workloadmanager-$1/src" - source: "/google/cloud/workloadmanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-workloadmanager/$1/grpc-google-cloud-workloadmanager-$1/src" -- source: "/google/cloud/workloadmanager/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-workloadmanager/$1/google-cloud-workloadmanager/src" +- source: "/google/cloud/workloadmanager/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-workloadmanager/$1/google-cloud-workloadmanager/src/main" - source: "/google/cloud/workloadmanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-workloadmanager/$1/samples/snippets/generated" diff --git a/java-workspaceevents/.OwlBot-hermetic.yaml b/java-workspaceevents/.OwlBot-hermetic.yaml index 34ebbcc9793e..26b3135c9d04 100644 --- a/java-workspaceevents/.OwlBot-hermetic.yaml +++ b/java-workspaceevents/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-workspaceevents/grpc-google-.*/src" - "/java-workspaceevents/proto-google-.*/src" -- "/java-workspaceevents/google-.*/src" +- "/java-workspaceevents/google-.*/src/main" +- "/java-workspaceevents/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-workspaceevents/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-workspaceevents/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-workspaceevents/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/apps/events/subscriptions/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-workspaceevents/$1/proto-google-cloud-workspaceevents-$1/src" - source: "/google/apps/events/subscriptions/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-workspaceevents/$1/grpc-google-cloud-workspaceevents-$1/src" -- source: "/google/apps/events/subscriptions/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-workspaceevents/$1/google-cloud-workspaceevents/src" +- source: "/google/apps/events/subscriptions/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-workspaceevents/$1/google-cloud-workspaceevents/src/main" - source: "/google/apps/events/subscriptions/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-workspaceevents/$1/samples/snippets/generated" diff --git a/java-workstations/.OwlBot-hermetic.yaml b/java-workstations/.OwlBot-hermetic.yaml index 2e2118bed884..a7576c3f4a74 100644 --- a/java-workstations/.OwlBot-hermetic.yaml +++ b/java-workstations/.OwlBot-hermetic.yaml @@ -16,20 +16,21 @@ deep-remove-regex: - "/java-workstations/grpc-google-.*/src" - "/java-workstations/proto-google-.*/src" -- "/java-workstations/google-.*/src" +- "/java-workstations/google-.*/src/main" +- "/java-workstations/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-workstations/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-workstations/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-workstations/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/workstations/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-workstations/$1/proto-google-cloud-workstations-$1/src" - source: "/google/cloud/workstations/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-workstations/$1/grpc-google-cloud-workstations-$1/src" -- source: "/google/cloud/workstations/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-workstations/$1/google-cloud-workstations/src" +- source: "/google/cloud/workstations/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-workstations/$1/google-cloud-workstations/src/main" - source: "/google/cloud/workstations/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-workstations/$1/samples/snippets/generated" diff --git a/sdk-platform-java/hermetic_build/library_generation/templates/owlbot.yaml.monorepo.j2 b/sdk-platform-java/hermetic_build/library_generation/templates/owlbot.yaml.monorepo.j2 index d3f29de32a7e..93c2cd8172b4 100644 --- a/sdk-platform-java/hermetic_build/library_generation/templates/owlbot.yaml.monorepo.j2 +++ b/sdk-platform-java/hermetic_build/library_generation/templates/owlbot.yaml.monorepo.j2 @@ -16,20 +16,20 @@ deep-remove-regex: - "/{{ module_name }}/grpc-google-.*/src" - "/{{ module_name }}/proto-google-.*/src" -- "/{{ module_name }}/google-.*/src" +- "/{{ module_name }}/google-.*/src/main" +- "/{{ module_name }}/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/{{ module_name }}/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/{{ module_name }}/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/{{ module_name }}/samples/snippets/generated" -deep-preserve-regex: -- "/{{ module_name }}/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: {%- if has_version %} - source: "/{{ proto_path }}/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/{{ module_name }}/$1/proto-{{ artifact_id }}-$1/src" - source: "/{{ proto_path }}/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/{{ module_name }}/$1/grpc-{{ artifact_id }}-$1/src" -- source: "/{{ proto_path }}/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/{{ module_name }}/$1/{{ artifact_id }}/src" +- source: "/{{ proto_path }}/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/{{ module_name }}/$1/{{ artifact_id }}/src/main" - source: "/{{ proto_path }}/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/{{ module_name }}/$1/samples/snippets/generated" {%- else %} @@ -37,8 +37,8 @@ deep-copy-regex: dest: "/owl-bot-staging/{{ module_name }}/proto-{{ artifact_id }}/src" - source: "/{{ proto_path }}/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/{{ module_name }}/grpc-{{ artifact_id }}/src" -- source: "/{{ proto_path }}/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/{{ module_name }}/{{ artifact_id }}/src" +- source: "/{{ proto_path }}/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/{{ module_name }}/{{ artifact_id }}/src/main" - source: "/{{ proto_path }}/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/{{ module_name }}/samples/snippets/generated" {%- endif %} diff --git a/sdk-platform-java/hermetic_build/library_generation/tests/resources/goldens/.OwlBot-hermetic-golden.yaml b/sdk-platform-java/hermetic_build/library_generation/tests/resources/goldens/.OwlBot-hermetic-golden.yaml index 225b4620bf5f..9d45123cd1cb 100644 --- a/sdk-platform-java/hermetic_build/library_generation/tests/resources/goldens/.OwlBot-hermetic-golden.yaml +++ b/sdk-platform-java/hermetic_build/library_generation/tests/resources/goldens/.OwlBot-hermetic-golden.yaml @@ -16,19 +16,19 @@ deep-remove-regex: - "/java-bare-metal-solution/grpc-google-.*/src" - "/java-bare-metal-solution/proto-google-.*/src" -- "/java-bare-metal-solution/google-.*/src" +- "/java-bare-metal-solution/google-.*/src/main" +- "/java-bare-metal-solution/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" +- "/java-bare-metal-solution/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" +- "/java-bare-metal-solution/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" - "/java-bare-metal-solution/samples/snippets/generated" -deep-preserve-regex: -- "/java-bare-metal-solution/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - deep-copy-regex: - source: "/google/cloud/baremetalsolution/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-bare-metal-solution/$1/proto-google-cloud-bare-metal-solution-$1/src" - source: "/google/cloud/baremetalsolution/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-bare-metal-solution/$1/grpc-google-cloud-bare-metal-solution-$1/src" -- source: "/google/cloud/baremetalsolution/(v.*)/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-bare-metal-solution/$1/google-cloud-bare-metal-solution/src" +- source: "/google/cloud/baremetalsolution/(v.*)/.*-java/gapic-google-.*/src/main" + dest: "/owl-bot-staging/java-bare-metal-solution/$1/google-cloud-bare-metal-solution/src/main" - source: "/google/cloud/baremetalsolution/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-bare-metal-solution/$1/samples/snippets/generated" From 7af3224e40775de26c0408e9fcd28f598849159a Mon Sep 17 00:00:00 2001 From: Keshav Dandeva Date: Tue, 23 Jun 2026 14:47:38 +0200 Subject: [PATCH 53/82] feat(bigquery-jdbc): respect standard JVM trustStore properties by default (#13435) b/515129164 ### Problem In enterprise corporate networks (e.g. Zscaler), outbound HTTPS traffic is intercepted by transparent proxies doing SSL MITM (man-in-the-middle) decryption. The proxy signs its re-encrypted connections with dynamically generated root CA certificates. The BigQuery JDBC driver failed to establish TLS connections under these environments because the underlying client library ignored JVM trust stores (the standard Java `cacerts` file or custom system properties set via `-Djavax.net.ssl.trustStore`). This happened because when direct connections had empty SSL/proxy settings, the driver returned `null` for `HttpTransportOptions`. This fallback triggered classpath SPI overrides or legacy defaults which invoked `GoogleNetHttpTransport.newTrustedTransport()`. That convenience constructor hardcodes trust exclusively to a bundled `google.p12` keystore, completely overriding JVM system properties. ### Solution Simplified the driver's transport instantiation to align with the core Google Cloud Java SDK's network defaults: 1. **Direct Connections:** Modified `getHttpTransportOptions(...)` to unconditionally return a transport factory configured with a single `NetHttpTransport` instance (`new NetHttpTransport.Builder().build()`). This allows JSSE to handle TLS certificate validation using standard JVM system properties and `cacerts` natively. Bypassing the SPI loader prevents classpath hijacking. 2. **Explicit Proxy Connections:** Configured the Apache HTTP client builder inside `getHttpTransportFactory(...)` to unconditionally call `httpClientBuilder.useSystemProperties()`. This ensures that even when a proxy is set in the JDBC URL, Apache HttpClient still honors system-level properties like `-Djavax.net.ssl.trustStore`. ### Integration Testing: SSL/TLS Validation (`ITLocalSslValidationTest`) Added `ITLocalSslValidationTest.java` to validate the loading and enforcement of custom SSL truststore configurations end-to-end. * **Local Mock HTTPS Server:** Starts a lightweight local HTTPS server on a random port presenting a self-signed certificate. It mocks necessary BigQuery backend endpoints (`/queries` and `/jobs`) to satisfy basic driver query execution. * **Process Isolation:** Runs each connection check in a separate, isolated JVM subprocess via `ProcessBuilder`. This is required to bypass JSSE's JVM-wide caching of the `-Djavax.net.ssl.trustStore` property. * **Test Coverage:** * **Negative Case:** Verifies that connection attempts without a truststore fail with the expected `PKIX path building failed` handshake error (exit code `1`). * **Positive Case:** Verifies that connection attempts using our custom truststore (`localhost-truststore.jks`) succeed and complete query executions successfully (exit code `0`). * **CI Integration:** Added to `ITPresubmitTests` to run automatically on every pull request. Since it uses local mocks, it requires **no GCP credentials** and executes in **under 2 seconds**. --- .../jdbc/BigQueryJdbcProxyUtility.java | 12 +- .../jdbc/BigQueryJdbcProxyUtilityTest.java | 10 +- .../jdbc/it/ITLocalSslValidationTest.java | 272 ++++++++++++++++++ .../jdbc/it/suites/ITPresubmitTests.java | 2 + .../src/test/resources/localhost-keystore.jks | Bin 0 -> 2215 bytes .../test/resources/localhost-truststore.jks | Bin 0 -> 927 bytes 6 files changed, 285 insertions(+), 11 deletions(-) create mode 100644 java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITLocalSslValidationTest.java create mode 100644 java-bigquery-jdbc/src/test/resources/localhost-keystore.jks create mode 100644 java-bigquery-jdbc/src/test/resources/localhost-truststore.jks diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcProxyUtility.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcProxyUtility.java index 7c495e801537..983eda9760f8 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcProxyUtility.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcProxyUtility.java @@ -20,6 +20,7 @@ import com.google.api.client.http.HttpTransport; import com.google.api.client.http.apache.v5.Apache5HttpTransport; +import com.google.api.client.http.javanet.NetHttpTransport; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.auth.http.HttpTransportFactory; import com.google.cloud.bigquery.exception.BigQueryJdbcRuntimeException; @@ -58,6 +59,7 @@ final class BigQueryJdbcProxyUtility { new BigQueryJdbcCustomLogger(BigQueryJdbcProxyUtility.class.getName()); static final String validPortRegex = "^([1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$"; + private static final HttpTransport DEFAULT_TRANSPORT = new NetHttpTransport.Builder().build(); private BigQueryJdbcProxyUtility() {} @@ -136,17 +138,14 @@ static HttpTransportOptions getHttpTransportOptions( boolean hasProxyOrSsl = proxyProperties.containsKey(BigQueryJdbcUrlUtility.PROXY_HOST_PROPERTY_NAME) || sslTrustStorePath != null; - boolean hasTimeoutConfig = connectTimeout != null || readTimeout != null; - - if (!hasProxyOrSsl && !hasTimeoutConfig) { - return null; - } HttpTransportOptions.Builder httpTransportOptionsBuilder = HttpTransportOptions.newBuilder(); if (hasProxyOrSsl) { httpTransportOptionsBuilder.setHttpTransportFactory( getHttpTransportFactory( proxyProperties, sslTrustStorePath, sslTrustStorePassword, callerClassName)); + } else { + httpTransportOptionsBuilder.setHttpTransportFactory(() -> DEFAULT_TRANSPORT); } if (connectTimeout != null) { @@ -178,9 +177,8 @@ private static HttpTransportFactory getHttpTransportFactory( HttpRoutePlanner httpRoutePlanner = new DefaultProxyRoutePlanner(proxyHostDetails); httpClientBuilder.setRoutePlanner(httpRoutePlanner); addAuthToProxyIfPresent(proxyProperties, httpClientBuilder, callerClassName); - } else { - httpClientBuilder.useSystemProperties(); } + httpClientBuilder.useSystemProperties(); if (sslTrustStorePath != null) { try (FileInputStream trustStoreStream = new FileInputStream(sslTrustStorePath)) { diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcProxyUtilityTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcProxyUtilityTest.java index ea62166e0112..c8e613f08941 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcProxyUtilityTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcProxyUtilityTest.java @@ -161,7 +161,7 @@ public void testGetHttpTransportOptionsWithNonAuthenticatedProxy() { } @Test - public void testGetHttpTransportOptionsWithNoProxySettingsReturnsNull() { + public void testGetHttpTransportOptionsWithNoProxySettingsReturnsDefaultOptions() { String connection_uri = "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" + "ProjectId=TestProject" @@ -172,7 +172,8 @@ public void testGetHttpTransportOptionsWithNoProxySettingsReturnsNull() { HttpTransportOptions result = BigQueryJdbcProxyUtility.getHttpTransportOptions( proxyProperties, null, null, null, null, "TestClass"); - assertNull(result); + assertNotNull(result); + assertNotNull(result.getHttpTransportFactory()); } private String getTestResourcePath(String resourceName) throws URISyntaxException { @@ -299,11 +300,12 @@ public void testGetTransportChannelProvider_noProxyNoSsl_returnsNull() { } @Test - public void testGetHttpTransportOptions_noProxyNoSsl_returnsNull() { + public void testGetHttpTransportOptions_noProxyNoSsl_returnsDefaultOptions() { HttpTransportOptions options = BigQueryJdbcProxyUtility.getHttpTransportOptions( Collections.emptyMap(), null, null, null, null, "TestClass"); - assertNull(options); + assertNotNull(options); + assertNotNull(options.getHttpTransportFactory()); } @Test diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITLocalSslValidationTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITLocalSslValidationTest.java new file mode 100644 index 000000000000..6ccffb703547 --- /dev/null +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITLocalSslValidationTest.java @@ -0,0 +1,272 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + +package com.google.cloud.bigquery.jdbc.it; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; + +import com.google.cloud.bigquery.jdbc.utils.URIBuilder; +import com.google.common.io.CharStreams; +import com.sun.net.httpserver.HttpsConfigurator; +import com.sun.net.httpserver.HttpsParameters; +import com.sun.net.httpserver.HttpsServer; +import java.io.File; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.OutputStream; +import java.net.InetSocketAddress; +import java.net.URL; +import java.nio.charset.StandardCharsets; +import java.security.KeyStore; +import java.sql.Connection; +import java.sql.DriverManager; +import java.sql.Statement; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +import javax.net.ssl.KeyManagerFactory; +import javax.net.ssl.SSLContext; +import javax.net.ssl.SSLParameters; +import org.junit.jupiter.api.AfterAll; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; + +public class ITLocalSslValidationTest { + private static final String HOST = "localhost"; + private static final String PASSWORD = "changeit"; + private static final String KEYSTORE_RESOURCE = "/localhost-keystore.jks"; + private static final String TRUSTSTORE_RESOURCE = "/localhost-truststore.jks"; + private static final String SUCCESS_MARKER = "SUBPROCESS_RESULT: SUCCESS"; + private static final String FAILURE_MARKER_PREFIX = "SUBPROCESS_RESULT: FAILURE - "; + private static final String PKIX_ERROR_MSG = "PKIX path building failed"; + + private static MockHttpsServer mockServer; + private static int port; + + public static class MockHttpsServer { + private final HttpsServer server; + + public MockHttpsServer(int port) throws Exception { + server = HttpsServer.create(new InetSocketAddress(HOST, port), 0); + SSLContext sslContext = SSLContext.getInstance("TLS"); + + KeyStore ks = KeyStore.getInstance("JKS"); + try (InputStream stream = getClass().getResourceAsStream(KEYSTORE_RESOURCE)) { + if (stream == null) { + throw new IllegalStateException( + "Keystore resource " + KEYSTORE_RESOURCE + " not found on classpath!"); + } + ks.load(stream, PASSWORD.toCharArray()); + } + + KeyManagerFactory kmf = + KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm()); + kmf.init(ks, PASSWORD.toCharArray()); + + sslContext.init(kmf.getKeyManagers(), null, null); + + server.setHttpsConfigurator( + new HttpsConfigurator(sslContext) { + @Override + public void configure(HttpsParameters params) { + try { + SSLContext context = getSSLContext(); + SSLParameters sslParams = context.getDefaultSSLParameters(); + params.setSSLParameters(sslParams); + } catch (Exception ex) { + ex.printStackTrace(); + } + } + }); + + server.createContext( + "/", + exchange -> { + String path = exchange.getRequestURI().getPath(); + String response; + if (path.contains("/queries")) { + response = + "{\n" + + " \"kind\": \"bigquery#queryResponse\",\n" + + " \"jobComplete\": true,\n" + + " \"rows\": [],\n" + + " \"totalRows\": \"0\",\n" + + " \"schema\": {\n" + + " \"fields\": []\n" + + " }\n" + + "}"; + } else { + response = + "{\n" + + " \"kind\": \"bigquery#job\",\n" + + " \"status\": {\n" + + " \"state\": \"DONE\"\n" + + " },\n" + + " \"jobReference\": {\n" + + " \"projectId\": \"dummy\",\n" + + " \"jobId\": \"dummy-job\"\n" + + " },\n" + + " \"configuration\": {\n" + + " \"query\": {\n" + + " \"query\": \"SELECT 1\"\n" + + " }\n" + + " },\n" + + " \"statistics\": {\n" + + " \"query\": {\n" + + " \"statementType\": \"SELECT\"\n" + + " }\n" + + " }\n" + + "}"; + } + byte[] responseBytes = response.getBytes(StandardCharsets.UTF_8); + exchange.getResponseHeaders().set("Content-Type", "application/json"); + exchange.sendResponseHeaders(200, responseBytes.length); + try (OutputStream os = exchange.getResponseBody()) { + os.write(responseBytes); + } + }); + } + + public void start() { + server.start(); + } + + public void stop() { + server.stop(0); + } + + public int getPort() { + return server.getAddress().getPort(); + } + } + + private static class ProcessResult { + final int exitCode; + final String stdout; + + ProcessResult(int exitCode, String stdout) { + this.exitCode = exitCode; + this.stdout = stdout; + } + } + + @BeforeAll + public static void setUp() throws Exception { + mockServer = new MockHttpsServer(0); + mockServer.start(); + port = mockServer.getPort(); + } + + @AfterAll + public static void tearDown() { + if (mockServer == null) { + return; + } + mockServer.stop(); + } + + private ProcessResult runSubprocess(String trustStore, String password) throws Exception { + String javaHome = System.getProperty("java.home"); + String javaBin = javaHome + File.separator + "bin" + File.separator + "java"; + String classpath = System.getProperty("java.class.path"); + String className = ITLocalSslValidationTest.class.getCanonicalName(); + + List command = new ArrayList<>(); + command.add(javaBin); + if (trustStore != null) { + command.add("-Djavax.net.ssl.trustStore=" + trustStore); + } + if (password != null) { + command.add("-Djavax.net.ssl.trustStorePassword=" + password); + } + command.add("-cp"); + command.add(classpath); + command.add(className); + command.add(String.valueOf(port)); + + ProcessBuilder builder = new ProcessBuilder(command); + builder.redirectErrorStream(true); + Process process = builder.start(); + + String output = ""; + boolean finished = false; + try { + try (InputStreamReader reader = + new InputStreamReader(process.getInputStream(), StandardCharsets.UTF_8)) { + output = CharStreams.toString(reader); + } + finished = process.waitFor(10, TimeUnit.SECONDS); + if (!finished) { + throw new TimeoutException("Subprocess timed out after 10 seconds"); + } + int exitCode = process.exitValue(); + return new ProcessResult(exitCode, output); + } finally { + if (!finished && process.isAlive()) { + process.destroyForcibly(); + } + } + } + + @Test + public void testDefaultSslFailsForSelfSigned() throws Exception { + ProcessResult result = runSubprocess(null, null); + assertEquals(1, result.exitCode, "Subprocess should fail. Output:\n" + result.stdout); + assertTrue(result.stdout.contains(PKIX_ERROR_MSG)); + } + + @Test + public void testCustomTrustStoreSucceeds() throws Exception { + URL trustStoreUrl = getClass().getResource(TRUSTSTORE_RESOURCE); + if (trustStoreUrl == null) { + throw new IllegalStateException( + "Truststore resource " + TRUSTSTORE_RESOURCE + " not found on classpath!"); + } + String trustStorePath = new File(trustStoreUrl.toURI()).getAbsolutePath(); + ProcessResult result = runSubprocess(trustStorePath, PASSWORD); + + assertEquals(0, result.exitCode, "Subprocess failed. Output:\n" + result.stdout); + assertTrue(result.stdout.contains(SUCCESS_MARKER)); + assertFalse( + result.stdout.contains(PKIX_ERROR_MSG), + "Handshake failed with SSL error: " + result.stdout); + } + + public static void main(String[] args) { + int port = Integer.parseInt(args[0]); + String baseUri = "jdbc:bigquery://https://" + HOST + ":" + port + ";"; + String url = + new URIBuilder(baseUri) + .append("EndpointOverrides", "BIGQUERY=https://" + HOST + ":" + port) + .append("ProjectId", "dummy") + .append("OAuthType", 2) + .append("OAuthAccessToken", "dummy-token") + .toString(); + try (Connection connection = DriverManager.getConnection(url); + Statement statement = connection.createStatement()) { + statement.execute("SELECT 1"); + System.out.println(SUCCESS_MARKER); + System.exit(0); + } catch (Throwable e) { + System.out.println(FAILURE_MARKER_PREFIX + e.getMessage()); + e.printStackTrace(); + System.exit(1); + } + } +} diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/suites/ITPresubmitTests.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/suites/ITPresubmitTests.java index cdcece31a279..44e37f6888e2 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/suites/ITPresubmitTests.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/suites/ITPresubmitTests.java @@ -23,6 +23,7 @@ import com.google.cloud.bigquery.jdbc.it.ITConnectionTest; import com.google.cloud.bigquery.jdbc.it.ITDatabaseMetadataTest; import com.google.cloud.bigquery.jdbc.it.ITDriverTest; +import com.google.cloud.bigquery.jdbc.it.ITLocalSslValidationTest; import com.google.cloud.bigquery.jdbc.it.ITResultSetMetadataTest; import com.google.cloud.bigquery.jdbc.it.ITStatementTest; import org.junit.platform.suite.api.SelectClasses; @@ -37,6 +38,7 @@ ITConnectionPoolingTest.class, ITDatabaseMetadataTest.class, ITDriverTest.class, + ITLocalSslValidationTest.class, ITResultSetMetadataTest.class, ITStatementTest.class }) diff --git a/java-bigquery-jdbc/src/test/resources/localhost-keystore.jks b/java-bigquery-jdbc/src/test/resources/localhost-keystore.jks new file mode 100644 index 0000000000000000000000000000000000000000..a5a04b2fe56ebfb02819999555f64e28e6efa50e GIT binary patch literal 2215 zcmcJQ`8(8$7sux_#y%L0B{4ImCRZ`~jK;oX=f;Tadx-4Y2xa*)iV$j$RQB~+6P2|R zg=TQC#xk~Sjhd_}5#{UN=ef_ff8hJW`Qde*bDr~@<$0fIElCnB8WH;6%=m>9n7n`oO-i*_elao2d$|= zF+TLxqT?3m5k;vUF?0nNF(95IhkAZm-i?bX zE~K;OA;IYSb9j5$!roI*!v><(iisFvm@!jsMz>D{~YyVQynxmJ?t*-OCXlNE#JXWL_4Lwt<1Z4tz2gx#ILvJz%h zZrlhz2*E;S67Qg<_hxfqk@)^stnO;yrh2fQ*C&Pbyw-=hO*s7z=HJ92Y7#3f7GGma(L0J6bhdfO$hoR-98rlBT)q9Y2mdA!p zGttJJQu=Pmq6d1Zca7k0l%62vE#+9uJ`!T=sw8J9JS%X!h6RpJk-rp&xktO8YgVP% zuVPYp^^QJo^uvy5rYN2UZ4nx*>+!-yS-o!b==k^M4w%83UYh4e``3ScAJeH{WUCan z&Fji)OC(8#mW;iLxQLTzv%@mTC=M$HL}0@7AVlj`rHqr2G>#4S~bn1+fa&2X33*Y@{l>qL*lwqaTv07PlXwH`g zk?IY+&_hAExyIZ}M;deAxLj@T)!5)!dSb!a@@h-VwT_H2#~#t4sTcPVD}LO|E+~y^ zc@aw0(x%a9p{M}EKP2=%<94wdSI$rg^xK5@{3ctFMVBt0sh2GNM;bZp6_h|V2!z80 zq;NQZ6sT?y2NZxpdAN%%!%sgyYXu5$@t#aFN%|%L0Pq9RbRzJByj&bMFfJt2#_C_- zK|=L){{?O&lw?Z~I>5G^jC zs0=C-6bXt%P)XJC09Ag$|8H>$aP-$^0Zs@91rR!T696BS0sxS%WTU4ex;QbjBbXhw zP6B?UV3=uc!`9JU?*O?D>HJLomOK#A`sb)}M6HW0M~D;R?fXYoD~D;hz2k|bsObV> z_GHWxEn#eKG z`a!h*+1Ul_*2niyt){|`^4wlAW6!@gvh!QMHsNXB)eDcpFZN}6#OtH-78$V@C$_uO z9@u$_3WRlw$xM8`hs=Nn&8*}GcV{@XUXjo8yAk-{;@w)ApnbQ(9-$Gme08V7GAZ&x zBzMNnDk`Dy1x;FqD^Pktx9XJV1&mBbWyRuhP@sNA=D=kr2LJ&|u^a6ZYl2G2pMAB~l_Q@OqNA9lo<2H$iJa zt=o7VC#12eTvT5c>diJDGq)yM-Rf$q>bW>vJ-&+EdMcQe9Ibw4b?k`wb$?xKCyyC+ z(=3xS(TS8yBwI=a!qJrR8+*`{B$!d@*pVenqVx}Ij5txO29diJu(n911@ z#$gv`@(nZO2kHbW;}T|b&(BZKNj2m(;06hB3$uiz7MB{&)u2IeM4eg=akMlPl%Mn;B%?QYwzI;x2INXh?v z<5|$exa`%Y(DHUU=woq*Z#fzY}w8W*UZY+#D*~!L z+?^-*>UPaGTS3L?8;}0J9eyh&tzxRpO`e>4*_KDn$dz`rEm)!Vcxl5P!_2}TXVO*7 z%nwIB<0-dt&O3eb!Gp&kJGah~-RUhDrNf?DbAA7>jj!hJ__|s5blR%Nn@Unn^d~hq z%g%gqr8ec(kHg(_!c#?giw=va-TFF9xQ{3A-rMQd2jwGGmQe-v9Xd zNBFPG>8#qT_r|w8p`5+%=R4WP`3FubII!g^Ja$~6pPV4CwrBaWCvWm{otO2WEoEY6 zWMEvZXdrJO3ye5fJ{B<+k$LW~e0BzAIyJF)o>=phZ}O}jx68L)XX7Ka0Ku zxie Date: Tue, 23 Jun 2026 12:59:38 -0400 Subject: [PATCH 54/82] feat(bigtable): route point read rows to shim (#13542) --- .../cloud/bigtable/data/v2/models/Query.java | 31 ++- .../data/v2/stub/EnhancedBigtableStub.java | 53 +++- .../stub/readrows/MaybePointReadCallable.java | 119 +++++++++ .../bigtable/data/v2/models/QueryTest.java | 110 +++++++++ .../readrows/MaybePointReadCallableTest.java | 226 ++++++++++++++++++ 5 files changed, 526 insertions(+), 13 deletions(-) create mode 100644 java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/readrows/MaybePointReadCallable.java create mode 100644 java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/readrows/MaybePointReadCallableTest.java diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/Query.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/Query.java index ffac399e7262..ae5de38e5b08 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/Query.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/models/Query.java @@ -318,10 +318,39 @@ public TargetId getTargetId() { return targetId; } + /** + * Returns true if this query identifies a single row that can be served by a point read. Supports + * two shapes: exactly one row key and no row ranges, or exactly one closed-closed row range whose + * start key equals its end key. + */ + @InternalApi + public boolean isSinglePointQuery() { + RowSet rows = this.builder.getRows(); + int keyCount = rows.getRowKeysCount(); + int rangeCount = rows.getRowRangesCount(); + if (keyCount == 1 && rangeCount == 0) { + return true; + } + if (keyCount == 0 && rangeCount == 1) { + RowRange range = rows.getRowRanges(0); + return range.hasStartKeyClosed() + && range.hasEndKeyClosed() + && range.getStartKeyClosed().equals(range.getEndKeyClosed()); + } + return false; + } + @InternalApi public SessionReadRowRequest toSessionPointProto() { + Preconditions.checkState( + isSinglePointQuery(), + "Query must be a single-point read (one row key, or one closed-closed row range whose" + + " start equals its end)"); + RowSet rows = this.builder.getRows(); + ByteString key = + rows.getRowKeysCount() > 0 ? rows.getRowKeys(0) : rows.getRowRanges(0).getStartKeyClosed(); return SessionReadRowRequest.newBuilder() - .setKey(this.builder.getRows().getRowKeysList().get(0)) + .setKey(key) .setFilter(this.builder.getFilter()) .build(); } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStub.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStub.java index 56b7d634f11a..aa01e0a57f37 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStub.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStub.java @@ -27,6 +27,7 @@ import com.google.api.gax.retrying.BasicResultRetryAlgorithm; import com.google.api.gax.retrying.ExponentialRetryAlgorithm; import com.google.api.gax.retrying.RetryAlgorithm; +import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.retrying.RetryingExecutorWithContext; import com.google.api.gax.retrying.ScheduledRetryingExecutor; import com.google.api.gax.retrying.SimpleStreamResumptionStrategy; @@ -37,6 +38,7 @@ import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.api.gax.tracing.SpanName; @@ -97,6 +99,7 @@ import com.google.cloud.bigtable.data.v2.stub.mutaterows.MutateRowsRetryingCallable; import com.google.cloud.bigtable.data.v2.stub.readrows.FilterMarkerRowsCallable; import com.google.cloud.bigtable.data.v2.stub.readrows.LargeReadRowsResumptionStrategy; +import com.google.cloud.bigtable.data.v2.stub.readrows.MaybePointReadCallable; import com.google.cloud.bigtable.data.v2.stub.readrows.ReadRowsBatchingDescriptor; import com.google.cloud.bigtable.data.v2.stub.readrows.ReadRowsResumptionStrategy; import com.google.cloud.bigtable.data.v2.stub.readrows.ReadRowsRetryCompletedCallable; @@ -119,6 +122,7 @@ import java.time.Duration; import java.util.List; import java.util.Map; +import java.util.Set; import java.util.concurrent.TimeUnit; import java.util.function.Function; import javax.annotation.Nonnull; @@ -259,11 +263,20 @@ public ServerStreamingCallable createReadRowsCallable( bigtableClientContext.getClientContext().getTracerFactory(), span); - return traced.withDefaultCallContext( - bigtableClientContext - .getClientContext() - .getDefaultCallContext() - .withRetrySettings(perOpSettings.readRowsSettings.getRetrySettings())); + ServerStreamingCallable classic = + traced.withDefaultCallContext( + bigtableClientContext + .getClientContext() + .getDefaultCallContext() + .withRetrySettings(perOpSettings.readRowsSettings.getRetrySettings())); + + return new MaybePointReadCallable<>( + classic, + createPointReadCallable( + rowAdapter, + "ReadRows", + perOpSettings.readRowsSettings.getRetrySettings(), + perOpSettings.readRowsSettings.getRetryableCodes())); } /** @@ -281,13 +294,25 @@ public ServerStreamingCallable createReadRowsCallable( * */ public UnaryCallable createReadRowCallable(RowAdapter rowAdapter) { + return createPointReadCallable( + rowAdapter, + "ReadRow", + perOpSettings.readRowSettings.getRetrySettings(), + perOpSettings.readRowSettings.getRetryableCodes()); + } + + private UnaryCallable createPointReadCallable( + RowAdapter rowAdapter, + String spanName, + RetrySettings retrySettings, + Set retryableCodes) { ClientContext clientContext = bigtableClientContext.getClientContext(); ServerStreamingCallable readRowsCallable = createReadRowsBaseCallable( ServerStreamingCallSettings.newBuilder() - .setRetryableCodes(perOpSettings.readRowSettings.getRetryableCodes()) - .setRetrySettings(perOpSettings.readRowSettings.getRetrySettings()) + .setRetryableCodes(retryableCodes) + .setRetrySettings(retrySettings) .setIdleTimeoutDuration(Duration.ZERO) .setWaitTimeoutDuration(Duration.ZERO) .build(), @@ -302,16 +327,20 @@ public UnaryCallable createReadRowCallable(RowAdapter BigtableUnaryOperationCallable classic = new BigtableUnaryOperationCallable<>( readRowCallable, - clientContext - .getDefaultCallContext() - .withRetrySettings(perOpSettings.readRowSettings.getRetrySettings()), + clientContext.getDefaultCallContext().withRetrySettings(retrySettings), clientContext.getTracerFactory(), - getSpanName("ReadRow"), + getSpanName(spanName), /* allowNoResponse= */ true); + UnaryCallSettings shimSettings = + perOpSettings.readRowSettings.toBuilder() + .setRetrySettings(retrySettings) + .setRetryableCodes(retryableCodes) + .build(); + return bigtableClientContext .getSessionShim() - .decorateReadRow(classic, rowAdapter, perOpSettings.readRowSettings); + .decorateReadRow(classic, rowAdapter, shimSettings); } private ServerStreamingCallable createReadRowsBaseCallable( diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/readrows/MaybePointReadCallable.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/readrows/MaybePointReadCallable.java new file mode 100644 index 000000000000..5530cd346612 --- /dev/null +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/readrows/MaybePointReadCallable.java @@ -0,0 +1,119 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.bigtable.data.v2.stub.readrows; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutureCallback; +import com.google.api.core.ApiFutures; +import com.google.api.core.InternalApi; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ResponseObserver; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamController; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.bigtable.data.v2.models.Query; +import com.google.common.util.concurrent.MoreExecutors; +import java.util.concurrent.atomic.AtomicBoolean; +import java.util.concurrent.atomic.AtomicReference; + +/** + * Routes ReadRows calls whose query identifies a single row through a unary point-read callable, + * letting them benefit from the same session-shim diversion as {@code ReadRow}. Queries that cannot + * be reduced to a point read fall through to the classic {@code ReadRows} callable. + */ +@InternalApi +public class MaybePointReadCallable extends ServerStreamingCallable { + private final ServerStreamingCallable classic; + private final UnaryCallable pointReader; + + public MaybePointReadCallable( + ServerStreamingCallable classic, UnaryCallable pointReader) { + this.classic = classic; + this.pointReader = pointReader; + } + + @Override + public void call(Query request, ResponseObserver responseObserver, ApiCallContext context) { + if (!request.isSinglePointQuery()) { + classic.call(request, responseObserver, context); + return; + } + + AtomicBoolean cancelled = new AtomicBoolean(); + AtomicReference> futureRef = new AtomicReference<>(); + + responseObserver.onStart( + new StreamController() { + @Override + public void cancel() { + cancelled.set(true); + ApiFuture f = futureRef.get(); + if (f != null) { + f.cancel(false); + } + } + + @Override + public void disableAutoInboundFlowControl() {} + + @Override + public void request(int count) {} + }); + + ApiFuture future; + try { + future = pointReader.futureCall(request, context); + } catch (Throwable t) { + if (!cancelled.get()) { + responseObserver.onError(t); + } + return; + } + futureRef.set(future); + if (cancelled.get()) { + future.cancel(false); + } + + ApiFutures.addCallback( + future, + new ApiFutureCallback() { + @Override + public void onSuccess(RowT row) { + if (cancelled.get()) { + return; + } + if (row != null) { + try { + responseObserver.onResponse(row); + } catch (Throwable t) { + responseObserver.onError(t); + return; + } + } + responseObserver.onComplete(); + } + + @Override + public void onFailure(Throwable t) { + if (cancelled.get()) { + return; + } + responseObserver.onError(t); + } + }, + MoreExecutors.directExecutor()); + } +} diff --git a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/models/QueryTest.java b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/models/QueryTest.java index b7c394eb1539..4a2bb337b6b2 100644 --- a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/models/QueryTest.java +++ b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/models/QueryTest.java @@ -23,6 +23,7 @@ import com.google.bigtable.v2.RowFilter; import com.google.bigtable.v2.RowRange; import com.google.bigtable.v2.RowSet; +import com.google.bigtable.v2.SessionReadRowRequest; import com.google.cloud.bigtable.data.v2.internal.ByteStringComparator; import com.google.cloud.bigtable.data.v2.internal.NameUtil; import com.google.cloud.bigtable.data.v2.internal.RequestContext; @@ -966,4 +967,113 @@ public void testQueryReversed() { assertThat(query.toProto(requestContext)) .isEqualTo(expectedReadFromTableProtoBuilder().setReversed(true).build()); } + + @Test + public void isSinglePointQuery_singleRowKey() { + assertThat(Query.create(TABLE_ID).rowKey("k").isSinglePointQuery()).isTrue(); + } + + @Test + public void isSinglePointQuery_singleClosedRange() { + assertThat( + Query.create(TABLE_ID) + .range(ByteStringRange.unbounded().startClosed("k").endClosed("k")) + .isSinglePointQuery()) + .isTrue(); + } + + @Test + public void isSinglePointQuery_emptyQuery() { + assertThat(Query.create(TABLE_ID).isSinglePointQuery()).isFalse(); + } + + @Test + public void isSinglePointQuery_multipleRowKeys() { + assertThat(Query.create(TABLE_ID).rowKey("a").rowKey("b").isSinglePointQuery()).isFalse(); + } + + @Test + public void isSinglePointQuery_rowKeyAndRange() { + assertThat( + Query.create(TABLE_ID) + .rowKey("a") + .range(ByteStringRange.unbounded().startClosed("a").endClosed("a")) + .isSinglePointQuery()) + .isFalse(); + } + + @Test + public void isSinglePointQuery_multipleRanges() { + assertThat( + Query.create(TABLE_ID) + .range(ByteStringRange.unbounded().startClosed("a").endClosed("a")) + .range(ByteStringRange.unbounded().startClosed("b").endClosed("b")) + .isSinglePointQuery()) + .isFalse(); + } + + @Test + public void isSinglePointQuery_closedOpenRange() { + assertThat( + Query.create(TABLE_ID) + .range(ByteStringRange.unbounded().startClosed("k").endOpen("k")) + .isSinglePointQuery()) + .isFalse(); + } + + @Test + public void isSinglePointQuery_unequalClosedRange() { + assertThat( + Query.create(TABLE_ID) + .range(ByteStringRange.unbounded().startClosed("a").endClosed("b")) + .isSinglePointQuery()) + .isFalse(); + } + + @Test + public void isSinglePointQuery_prefixRange() { + assertThat(Query.create(TABLE_ID).prefix("k").isSinglePointQuery()).isFalse(); + } + + @Test + public void toSessionPointProto_fromRowKey() { + Query query = Query.create(TABLE_ID).rowKey("the-key"); + assertThat(query.toSessionPointProto()) + .isEqualTo( + SessionReadRowRequest.newBuilder() + .setKey(ByteString.copyFromUtf8("the-key")) + .setFilter(RowFilter.getDefaultInstance()) + .build()); + } + + @Test + public void toSessionPointProto_fromClosedRange() { + Query query = + Query.create(TABLE_ID) + .range(ByteStringRange.unbounded().startClosed("the-key").endClosed("the-key")); + assertThat(query.toSessionPointProto()) + .isEqualTo( + SessionReadRowRequest.newBuilder() + .setKey(ByteString.copyFromUtf8("the-key")) + .setFilter(RowFilter.getDefaultInstance()) + .build()); + } + + @Test + public void toSessionPointProto_preservesFilter() { + RowFilter filter = FILTERS.key().regex("regex").toProto(); + Query query = Query.create(TABLE_ID).rowKey("the-key").filter(FILTERS.key().regex("regex")); + assertThat(query.toSessionPointProto()) + .isEqualTo( + SessionReadRowRequest.newBuilder() + .setKey(ByteString.copyFromUtf8("the-key")) + .setFilter(filter) + .build()); + } + + @Test + public void toSessionPointProto_rejectsNonSinglePointQuery() { + Query query = Query.create(TABLE_ID).rowKey("a").rowKey("b"); + assertThrows(IllegalStateException.class, query::toSessionPointProto); + } } diff --git a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/readrows/MaybePointReadCallableTest.java b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/readrows/MaybePointReadCallableTest.java new file mode 100644 index 000000000000..42a6c28a9d88 --- /dev/null +++ b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/stub/readrows/MaybePointReadCallableTest.java @@ -0,0 +1,226 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.bigtable.data.v2.stub.readrows; + +import static com.google.common.truth.Truth.assertThat; + +import com.google.api.core.ApiFuture; +import com.google.api.core.SettableApiFuture; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ResponseObserver; +import com.google.api.gax.rpc.StreamController; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.bigtable.data.v2.models.Query; +import com.google.cloud.bigtable.data.v2.models.Range.ByteStringRange; +import com.google.cloud.bigtable.data.v2.models.Row; +import com.google.cloud.bigtable.data.v2.models.RowCell; +import com.google.cloud.bigtable.data.v2.models.TableId; +import com.google.cloud.bigtable.gaxx.testing.FakeStreamingApi.ServerStreamingStashCallable; +import com.google.common.collect.ImmutableList; +import com.google.protobuf.ByteString; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +public class MaybePointReadCallableTest { + + private static final TableId TABLE_ID = TableId.of("fake-table"); + private static final Row ROW_A = + Row.create(ByteString.copyFromUtf8("a"), ImmutableList.of()); + private static final Row ROW_B = + Row.create(ByteString.copyFromUtf8("b"), ImmutableList.of()); + + private ServerStreamingStashCallable classic; + private FakePointReader pointReader; + private MaybePointReadCallable callable; + private RecordingObserver observer; + + @BeforeEach + public void setUp() { + classic = new ServerStreamingStashCallable<>(ImmutableList.of(ROW_A, ROW_B)); + pointReader = new FakePointReader(); + callable = new MaybePointReadCallable<>(classic, pointReader); + observer = new RecordingObserver(); + } + + @Test + public void singleRowKey_routesToPointReader() { + Query query = Query.create(TABLE_ID).rowKey("a"); + + callable.call(query, observer, null); + pointReader.response.set(ROW_A); + + assertThat(pointReader.request).isEqualTo(query); + assertThat(observer.responses).containsExactly(ROW_A); + assertThat(observer.completed).isTrue(); + assertThat(observer.error).isNull(); + assertThat(classic.getActualRequest()).isNull(); + } + + @Test + public void singleClosedRange_routesToPointReader() { + Query query = + Query.create(TABLE_ID).range(ByteStringRange.unbounded().startClosed("a").endClosed("a")); + + callable.call(query, observer, null); + pointReader.response.set(ROW_A); + + assertThat(pointReader.request).isEqualTo(query); + assertThat(observer.responses).containsExactly(ROW_A); + assertThat(observer.completed).isTrue(); + } + + @Test + public void multipleRowKeys_fallsThroughToClassic() { + Query query = Query.create(TABLE_ID).rowKey("a").rowKey("b"); + + callable.call(query, observer, null); + + assertThat(pointReader.request).isNull(); + assertThat(classic.getActualRequest()).isEqualTo(query); + assertThat(observer.responses).containsExactly(ROW_A, ROW_B).inOrder(); + assertThat(observer.completed).isTrue(); + } + + @Test + public void unboundedRange_fallsThroughToClassic() { + Query query = Query.create(TABLE_ID); + + callable.call(query, observer, null); + + assertThat(pointReader.request).isNull(); + assertThat(classic.getActualRequest()).isEqualTo(query); + } + + @Test + public void pointReaderReturnsNull_completesWithoutResponse() { + Query query = Query.create(TABLE_ID).rowKey("missing"); + + callable.call(query, observer, null); + pointReader.response.set(null); + + assertThat(observer.responses).isEmpty(); + assertThat(observer.completed).isTrue(); + assertThat(observer.error).isNull(); + } + + @Test + public void pointReaderFails_propagatesErrorToObserver() { + Query query = Query.create(TABLE_ID).rowKey("a"); + RuntimeException failure = new RuntimeException("boom"); + + callable.call(query, observer, null); + pointReader.response.setException(failure); + + assertThat(observer.responses).isEmpty(); + assertThat(observer.completed).isFalse(); + assertThat(observer.error).isSameInstanceAs(failure); + } + + @Test + public void observerCancel_cancelsFutureAndSuppressesError() { + Query query = Query.create(TABLE_ID).rowKey("a"); + + callable.call(query, observer, null); + observer.controller.cancel(); + + assertThat(pointReader.response.isCancelled()).isTrue(); + assertThat(observer.error).isNull(); + assertThat(observer.completed).isFalse(); + } + + @Test + public void cancelBeforeFutureReturns_cancelsAfterFutureAttaches() { + Query query = Query.create(TABLE_ID).rowKey("a"); + pointReader.onCall = () -> observer.controller.cancel(); + + callable.call(query, observer, null); + + assertThat(pointReader.response.isCancelled()).isTrue(); + assertThat(observer.error).isNull(); + } + + @Test + public void futureCallThrows_routesThroughOnError() { + Query query = Query.create(TABLE_ID).rowKey("a"); + RuntimeException failure = new RuntimeException("sync boom"); + pointReader.syncFailure = failure; + + callable.call(query, observer, null); + + assertThat(observer.controller).isNotNull(); + assertThat(observer.error).isSameInstanceAs(failure); + assertThat(observer.completed).isFalse(); + } + + @Test + public void futureCallThrowsAfterCancel_suppressesError() { + Query query = Query.create(TABLE_ID).rowKey("a"); + pointReader.syncFailure = new RuntimeException("sync boom"); + pointReader.onCall = () -> observer.controller.cancel(); + + callable.call(query, observer, null); + + assertThat(observer.error).isNull(); + } + + private static class FakePointReader extends UnaryCallable { + Query request; + final SettableApiFuture response = SettableApiFuture.create(); + RuntimeException syncFailure; + Runnable onCall; + + @Override + public ApiFuture futureCall(Query request, ApiCallContext context) { + this.request = request; + if (onCall != null) { + onCall.run(); + } + if (syncFailure != null) { + throw syncFailure; + } + return response; + } + } + + private static class RecordingObserver implements ResponseObserver { + final List responses = new ArrayList<>(); + boolean completed; + Throwable error; + StreamController controller; + + @Override + public void onStart(StreamController controller) { + this.controller = controller; + } + + @Override + public void onResponse(Row response) { + responses.add(response); + } + + @Override + public void onError(Throwable t) { + error = t; + } + + @Override + public void onComplete() { + completed = true; + } + } +} From fa81a5e329379f93f72ce2e093ae99243ed0b792 Mon Sep 17 00:00:00 2001 From: Kirill Logachev Date: Tue, 23 Jun 2026 11:02:20 -0700 Subject: [PATCH 55/82] chore(bigquery-jdbc): update integration tests to handle different cancellation (#13541) --- .../cloud/bigquery/jdbc/it/ITNightlyBigQueryTest.java | 6 +++++- .../google/cloud/bigquery/jdbc/it/ITStatementTest.java | 10 ++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITNightlyBigQueryTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITNightlyBigQueryTest.java index ff9dbf0e7060..f98d6a8d46ca 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITNightlyBigQueryTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITNightlyBigQueryTest.java @@ -232,7 +232,11 @@ public void testQueryInterruptGracefullyStopsExplicitJob() }); t.start(); // Allow thread to actually initiate the query - Thread.sleep(3000); + // Even when job is created, we might be using `query` API which means if we cancle within first + // 10 seconds, + // it is similar to Optional job cancellation. Need to wait until after we're in "Wait for job + // completion" mode. + Thread.sleep(15000); bigQueryStatement.cancel(); // Wait until background thread is finished t.join(); diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITStatementTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITStatementTest.java index 7094e944893d..35f3284bab1b 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITStatementTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITStatementTest.java @@ -331,12 +331,10 @@ public void testSetTimeout() throws SQLException { assertEquals(0, statement.getQueryTimeout()); statement.setQueryTimeout(1); assertEquals(1, statement.getQueryTimeout()); - try { - statement.executeQuery(selectQuery); - } catch (SQLException e) { - assertTrue(true); - assertEquals("SQL execution canceled", e.getMessage()); - } + SQLException e = assertThrows(SQLException.class, () -> statement.executeQuery(selectQuery)); + assertEquals( + "BigQueryException during runQuery\nJob execution was cancelled: Job timed out", + e.getMessage()); statement.close(); connection.close(); } From 255166c85a7ea7a2969d2639e2273145ea696fb5 Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Wed, 24 Jun 2026 14:51:08 +0000 Subject: [PATCH 56/82] Revert "chore: Update owlbot to avoid copying generated unit tests for pure GAPIC libraries" (#13550) Reverts googleapis/google-cloud-java#13518 --- java-accessapproval/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 6 +- java-admanager/.OwlBot-hermetic.yaml | 4 +- .../.OwlBot-hermetic.yaml | 11 +- java-aiplatform/.OwlBot-hermetic.yaml | 4 +- java-alloydb-connectors/.OwlBot-hermetic.yaml | 11 +- java-alloydb/.OwlBot-hermetic.yaml | 11 +- java-analytics-admin/.OwlBot-hermetic.yaml | 9 +- java-analytics-data/.OwlBot-hermetic.yaml | 9 +- java-analyticshub/.OwlBot-hermetic.yaml | 11 +- java-api-gateway/.OwlBot-hermetic.yaml | 11 +- java-apigee-connect/.OwlBot-hermetic.yaml | 9 +- java-apigee-registry/.OwlBot-hermetic.yaml | 11 +- java-apihub/.OwlBot-hermetic.yaml | 11 +- java-apikeys/.OwlBot-hermetic.yaml | 11 +- java-appengine-admin/.OwlBot-hermetic.yaml | 9 +- java-apphub/.OwlBot-hermetic.yaml | 11 +- java-appoptimize/.OwlBot-hermetic.yaml | 10 +- java-area120-tables/.OwlBot-hermetic.yaml | 9 +- .../tables/v1alpha/MockTablesService.java | 59 ++ .../tables/v1alpha/MockTablesServiceImpl.java | 327 +++++++ .../TablesServiceClientHttpJsonTest.java | 873 ++++++++++++++++++ .../v1alpha/TablesServiceClientTest.java | 784 ++++++++++++++++ java-artifact-registry/.OwlBot-hermetic.yaml | 9 +- java-asset/.OwlBot-hermetic.yaml | 13 +- java-assured-workloads/.OwlBot-hermetic.yaml | 9 +- java-auditmanager/.OwlBot-hermetic.yaml | 11 +- java-automl/.OwlBot-hermetic.yaml | 9 +- java-backstory/.OwlBot-hermetic.yaml | 11 +- java-backupdr/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-batch/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-biglake/.OwlBot-hermetic.yaml | 19 +- .../.OwlBot-hermetic.yaml | 11 +- java-bigqueryconnection/.OwlBot-hermetic.yaml | 11 +- java-bigquerydatapolicy/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 9 +- java-bigquerymigration/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-billing/.OwlBot-hermetic.yaml | 6 +- java-billingbudgets/.OwlBot-hermetic.yaml | 9 +- .../.OwlBot-hermetic.yaml | 9 +- java-capacityplanner/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-ces/.OwlBot-hermetic.yaml | 11 +- java-channel/.OwlBot-hermetic.yaml | 9 +- java-chat/.OwlBot-hermetic.yaml | 11 +- java-chronicle/.OwlBot-hermetic.yaml | 11 +- java-cloudapiregistry/.OwlBot-hermetic.yaml | 11 +- java-cloudbuild/.OwlBot-hermetic.yaml | 9 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-cloudquotas/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-cloudsupport/.OwlBot-hermetic.yaml | 11 +- java-common-protos/.OwlBot-hermetic.yaml | 7 +- java-compute/.OwlBot-hermetic.yaml | 12 +- .../.OwlBot-hermetic.yaml | 11 +- java-configdelivery/.OwlBot-hermetic.yaml | 11 +- java-connectgateway/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 9 +- java-container/.OwlBot-hermetic.yaml | 13 +- java-containeranalysis/.OwlBot-hermetic.yaml | 7 +- java-contentwarehouse/.OwlBot-hermetic.yaml | 11 +- java-data-fusion/.OwlBot-hermetic.yaml | 11 +- java-databasecenter/.OwlBot-hermetic.yaml | 11 +- java-datacatalog/.OwlBot-hermetic.yaml | 11 +- java-dataflow/.OwlBot-hermetic.yaml | 11 +- java-dataform/.OwlBot-hermetic.yaml | 11 +- java-datalabeling/.OwlBot-hermetic.yaml | 13 +- java-datalineage/.OwlBot-hermetic.yaml | 15 +- java-datamanager/.OwlBot-hermetic.yaml | 6 +- java-dataplex/.OwlBot-hermetic.yaml | 11 +- java-dataproc-metastore/.OwlBot-hermetic.yaml | 11 +- java-dataproc/.OwlBot-hermetic.yaml | 11 +- java-datastore/.OwlBot-hermetic.yaml | 9 +- java-datastream/.OwlBot-hermetic.yaml | 11 +- java-deploy/.OwlBot-hermetic.yaml | 11 +- java-developerconnect/.OwlBot-hermetic.yaml | 11 +- java-developerknowledge/.OwlBot-hermetic.yaml | 11 +- java-devicestreaming/.OwlBot-hermetic.yaml | 11 +- java-dialogflow-cx/.OwlBot-hermetic.yaml | 11 +- java-dialogflow/.OwlBot-hermetic.yaml | 12 +- java-discoveryengine/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-dlp/.OwlBot-hermetic.yaml | 10 +- java-dms/.OwlBot-hermetic.yaml | 9 +- java-document-ai/.OwlBot-hermetic.yaml | 9 +- java-domains/.OwlBot-hermetic.yaml | 9 +- java-edgenetwork/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-errorreporting/.OwlBot-hermetic.yaml | 10 +- java-essential-contacts/.OwlBot-hermetic.yaml | 9 +- .../.OwlBot-hermetic.yaml | 11 +- java-eventarc/.OwlBot-hermetic.yaml | 11 +- java-filestore/.OwlBot-hermetic.yaml | 11 +- java-financialservices/.OwlBot-hermetic.yaml | 11 +- java-functions/.OwlBot-hermetic.yaml | 9 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-gke-backup/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 9 +- java-gke-multi-cloud/.OwlBot-hermetic.yaml | 11 +- java-gkehub/.OwlBot-hermetic.yaml | 9 +- java-gkerecommender/.OwlBot-hermetic.yaml | 11 +- java-grafeas/.OwlBot-hermetic.yaml | 6 +- java-gsuite-addons/.OwlBot-hermetic.yaml | 9 +- java-health/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-iam-admin/.OwlBot-hermetic.yaml | 11 +- java-iam-policy/.OwlBot-hermetic.yaml | 17 +- java-iamcredentials/.OwlBot-hermetic.yaml | 11 +- java-iap/.OwlBot-hermetic.yaml | 11 +- java-ids/.OwlBot-hermetic.yaml | 11 +- java-infra-manager/.OwlBot-hermetic.yaml | 11 +- java-iot/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-kms/.OwlBot-hermetic.yaml | 12 +- java-kmsinventory/.OwlBot-hermetic.yaml | 11 +- java-language/.OwlBot-hermetic.yaml | 9 +- java-licensemanager/.OwlBot-hermetic.yaml | 11 +- java-life-sciences/.OwlBot-hermetic.yaml | 9 +- java-locationfinder/.OwlBot-hermetic.yaml | 11 +- java-lustre/.OwlBot-hermetic.yaml | 11 +- java-maintenance/.OwlBot-hermetic.yaml | 11 +- java-managed-identities/.OwlBot-hermetic.yaml | 11 +- java-managedkafka/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-maps-area-insights/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-maps-fleetengine/.OwlBot-hermetic.yaml | 11 +- java-maps-geocode/.OwlBot-hermetic.yaml | 10 +- java-maps-mapmanagement/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-maps-places/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-maps-routing/.OwlBot-hermetic.yaml | 11 +- java-maps-solar/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 6 +- java-mediatranslation/.OwlBot-hermetic.yaml | 9 +- java-meet/.OwlBot-hermetic.yaml | 11 +- java-memcache/.OwlBot-hermetic.yaml | 11 +- java-migrationcenter/.OwlBot-hermetic.yaml | 11 +- java-modelarmor/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-monitoring/.OwlBot-hermetic.yaml | 12 +- java-netapp/.OwlBot-hermetic.yaml | 11 +- java-network-management/.OwlBot-hermetic.yaml | 11 +- java-network-security/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-networkservices/.OwlBot-hermetic.yaml | 11 +- java-notebooks/.OwlBot-hermetic.yaml | 11 +- java-optimization/.OwlBot-hermetic.yaml | 11 +- java-oracledatabase/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-orgpolicy/.OwlBot-hermetic.yaml | 11 +- java-os-config/.OwlBot-hermetic.yaml | 9 +- java-os-login/.OwlBot-hermetic.yaml | 10 +- java-parallelstore/.OwlBot-hermetic.yaml | 11 +- java-parametermanager/.OwlBot-hermetic.yaml | 11 +- java-phishingprotection/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 15 +- java-policysimulator/.OwlBot-hermetic.yaml | 11 +- java-private-catalog/.OwlBot-hermetic.yaml | 9 +- .../.OwlBot-hermetic.yaml | 11 +- java-profiler/.OwlBot-hermetic.yaml | 11 +- java-publicca/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-recommendations-ai/.OwlBot-hermetic.yaml | 11 +- java-recommender/.OwlBot-hermetic.yaml | 11 +- java-redis-cluster/.OwlBot-hermetic.yaml | 11 +- java-redis/.OwlBot-hermetic.yaml | 11 +- java-resourcemanager/.OwlBot-hermetic.yaml | 4 +- java-retail/.OwlBot-hermetic.yaml | 11 +- java-run/.OwlBot-hermetic.yaml | 11 +- java-saasservicemgmt/.OwlBot-hermetic.yaml | 11 +- java-scheduler/.OwlBot-hermetic.yaml | 10 +- java-secretmanager/.OwlBot-hermetic.yaml | 14 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 9 +- .../.OwlBot-hermetic.yaml | 11 +- java-securitycenter/.OwlBot-hermetic.yaml | 10 +- .../.OwlBot-hermetic.yaml | 11 +- java-securityposture/.OwlBot-hermetic.yaml | 11 +- java-service-control/.OwlBot-hermetic.yaml | 11 +- java-service-management/.OwlBot-hermetic.yaml | 12 +- java-service-usage/.OwlBot-hermetic.yaml | 9 +- java-servicedirectory/.OwlBot-hermetic.yaml | 9 +- java-servicehealth/.OwlBot-hermetic.yaml | 11 +- java-shell/.OwlBot-hermetic.yaml | 9 +- java-shopping-css/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-spanneradapter/.OwlBot-hermetic.yaml | 11 +- java-speech/.OwlBot-hermetic.yaml | 14 +- java-storage-transfer/.OwlBot-hermetic.yaml | 11 +- .../.OwlBot-hermetic.yaml | 11 +- java-storageinsights/.OwlBot-hermetic.yaml | 11 +- java-talent/.OwlBot-hermetic.yaml | 11 +- java-tasks/.OwlBot-hermetic.yaml | 12 +- java-telcoautomation/.OwlBot-hermetic.yaml | 11 +- java-texttospeech/.OwlBot-hermetic.yaml | 14 +- java-tpu/.OwlBot-hermetic.yaml | 9 +- java-trace/.OwlBot-hermetic.yaml | 14 +- .../cloud/trace/v1/MockTraceService.java | 59 ++ .../cloud/trace/v1/MockTraceServiceImpl.java | 127 +++ .../v1/TraceServiceClientHttpJsonTest.java | 223 +++++ .../trace/v1/TraceServiceClientTest.java | 213 +++++ .../cloud/trace/v2/MockTraceService.java | 59 ++ .../cloud/trace/v2/MockTraceServiceImpl.java | 104 +++ .../v2/TraceServiceClientHttpJsonTest.java | 254 +++++ .../trace/v2/TraceServiceClientTest.java | 257 ++++++ java-valkey/.OwlBot-hermetic.yaml | 11 +- java-vectorsearch/.OwlBot-hermetic.yaml | 11 +- java-video-intelligence/.OwlBot-hermetic.yaml | 11 +- java-video-live-stream/.OwlBot-hermetic.yaml | 11 +- java-video-stitcher/.OwlBot-hermetic.yaml | 11 +- java-video-transcoder/.OwlBot-hermetic.yaml | 11 +- java-vision/.OwlBot-hermetic.yaml | 12 +- java-visionai/.OwlBot-hermetic.yaml | 11 +- java-vmmigration/.OwlBot-hermetic.yaml | 11 +- java-vmwareengine/.OwlBot-hermetic.yaml | 11 +- java-vpcaccess/.OwlBot-hermetic.yaml | 9 +- java-webrisk/.OwlBot-hermetic.yaml | 11 +- java-websecurityscanner/.OwlBot-hermetic.yaml | 14 +- .../.OwlBot-hermetic.yaml | 11 +- java-workflows/.OwlBot-hermetic.yaml | 9 +- java-workloadmanager/.OwlBot-hermetic.yaml | 11 +- java-workspaceevents/.OwlBot-hermetic.yaml | 11 +- java-workstations/.OwlBot-hermetic.yaml | 11 +- .../templates/owlbot.yaml.monorepo.j2 | 16 +- .../goldens/.OwlBot-hermetic-golden.yaml | 12 +- 250 files changed, 4447 insertions(+), 1435 deletions(-) create mode 100644 java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesService.java create mode 100644 java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesServiceImpl.java create mode 100644 java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientHttpJsonTest.java create mode 100644 java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientTest.java create mode 100644 java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceService.java create mode 100644 java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceServiceImpl.java create mode 100644 java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientHttpJsonTest.java create mode 100644 java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientTest.java create mode 100644 java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceService.java create mode 100644 java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceServiceImpl.java create mode 100644 java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientHttpJsonTest.java create mode 100644 java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientTest.java diff --git a/java-accessapproval/.OwlBot-hermetic.yaml b/java-accessapproval/.OwlBot-hermetic.yaml index d7b296197d4d..4736283994aa 100644 --- a/java-accessapproval/.OwlBot-hermetic.yaml +++ b/java-accessapproval/.OwlBot-hermetic.yaml @@ -16,23 +16,20 @@ deep-remove-regex: - "/java-accessapproval/grpc-google-.*/src" - "/java-accessapproval/proto-google-.*/src" -- "/java-accessapproval/google-.*/src/main" -- "/java-accessapproval/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-accessapproval/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-accessapproval/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-accessapproval/google-.*/src" - "/java-accessapproval/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-accessapproval/src/test/java/com/google/.*/accessapproval/v1/it" +- "/.*google-cloud-accessapproval/src/test/java/com/google/cloud/accessapproval/v1/it" deep-copy-regex: - source: "/google/cloud/accessapproval/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-accessapproval/$1/proto-google-cloud-accessapproval-$1/src" - source: "/google/cloud/accessapproval/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-accessapproval/$1/grpc-google-cloud-accessapproval-$1/src" -- source: "/google/cloud/accessapproval/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-accessapproval/$1/google-cloud-accessapproval/src/main" +- source: "/google/cloud/accessapproval/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-accessapproval/$1/google-cloud-accessapproval/src" - source: "/google/cloud/accessapproval/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-accessapproval/$1/samples/snippets/generated" diff --git a/java-accesscontextmanager/.OwlBot-hermetic.yaml b/java-accesscontextmanager/.OwlBot-hermetic.yaml index 0b8833e0c281..d06ba37a7aec 100644 --- a/java-accesscontextmanager/.OwlBot-hermetic.yaml +++ b/java-accesscontextmanager/.OwlBot-hermetic.yaml @@ -19,13 +19,15 @@ deep-remove-regex: deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/identity/accesscontextmanager/(v\\d)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-accesscontextmanager/$1/proto-google-identity-accesscontextmanager-$1/src" - source: "/google/identity/accesscontextmanager/(v\\d)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-accesscontextmanager/$1/grpc-google-identity-accesscontextmanager-$1/src" -- source: "/google/identity/accesscontextmanager/(v\\d)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-accesscontextmanager/$1/google-identity-accesscontextmanager/src/main" +- source: "/google/identity/accesscontextmanager/(v\\d)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-accesscontextmanager/$1/google-identity-accesscontextmanager/src" - source: "/google/identity/accesscontextmanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-accesscontextmanager/$1/samples/snippets/generated" - source: "/google/identity/accesscontextmanager/type/.*-java/proto-google-.*/src" diff --git a/java-admanager/.OwlBot-hermetic.yaml b/java-admanager/.OwlBot-hermetic.yaml index 52730788c628..ceb5433db71d 100644 --- a/java-admanager/.OwlBot-hermetic.yaml +++ b/java-admanager/.OwlBot-hermetic.yaml @@ -28,8 +28,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-admanager/$1/proto-ad-manager-$1/src" - source: "/google/ads/admanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-admanager/$1/grpc-ad-manager-$1/src" -- source: "/google/ads/admanager/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-admanager/$1/ad-manager/src/main" +- source: "/google/ads/admanager/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-admanager/$1/ad-manager/src" - source: "/google/ads/admanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-admanager/$1/samples/snippets/generated" diff --git a/java-advisorynotifications/.OwlBot-hermetic.yaml b/java-advisorynotifications/.OwlBot-hermetic.yaml index e81b6fc2d183..5feb99e20c19 100644 --- a/java-advisorynotifications/.OwlBot-hermetic.yaml +++ b/java-advisorynotifications/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-advisorynotifications/grpc-google-.*/src" - "/java-advisorynotifications/proto-google-.*/src" -- "/java-advisorynotifications/google-.*/src/main" -- "/java-advisorynotifications/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-advisorynotifications/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-advisorynotifications/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-advisorynotifications/google-.*/src" - "/java-advisorynotifications/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/advisorynotifications/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-advisorynotifications/$1/proto-google-cloud-advisorynotifications-$1/src" - source: "/google/cloud/advisorynotifications/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-advisorynotifications/$1/grpc-google-cloud-advisorynotifications-$1/src" -- source: "/google/cloud/advisorynotifications/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-advisorynotifications/$1/google-cloud-advisorynotifications/src/main" +- source: "/google/cloud/advisorynotifications/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-advisorynotifications/$1/google-cloud-advisorynotifications/src" - source: "/google/cloud/advisorynotifications/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-advisorynotifications/$1/samples/snippets/generated" diff --git a/java-aiplatform/.OwlBot-hermetic.yaml b/java-aiplatform/.OwlBot-hermetic.yaml index 894543a4510b..27f0b13f5309 100644 --- a/java-aiplatform/.OwlBot-hermetic.yaml +++ b/java-aiplatform/.OwlBot-hermetic.yaml @@ -28,8 +28,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-aiplatform/$1/proto-google-cloud-aiplatform-$1/src" - source: "/google/cloud/aiplatform/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-aiplatform/$1/grpc-google-cloud-aiplatform-$1/src" -- source: "/google/cloud/aiplatform/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-aiplatform/$1/google-cloud-aiplatform/src/main" +- source: "/google/cloud/aiplatform/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-aiplatform/$1/google-cloud-aiplatform/src" - source: "/google/cloud/aiplatform/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-aiplatform/$1/samples/snippets/generated" diff --git a/java-alloydb-connectors/.OwlBot-hermetic.yaml b/java-alloydb-connectors/.OwlBot-hermetic.yaml index 385ea820103d..93a134a913f0 100644 --- a/java-alloydb-connectors/.OwlBot-hermetic.yaml +++ b/java-alloydb-connectors/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-alloydb-connectors/grpc-google-.*/src" - "/java-alloydb-connectors/proto-google-.*/src" -- "/java-alloydb-connectors/google-.*/src/main" -- "/java-alloydb-connectors/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-alloydb-connectors/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-alloydb-connectors/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-alloydb-connectors/google-.*/src" - "/java-alloydb-connectors/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/alloydb/connectors/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-alloydb-connectors/$1/proto-google-cloud-alloydb-connectors-$1/src" - source: "/google/cloud/alloydb/connectors/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-alloydb-connectors/$1/grpc-google-cloud-alloydb-connectors-$1/src" -- source: "/google/cloud/alloydb/connectors/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-alloydb-connectors/$1/google-cloud-alloydb-connectors/src/main" +- source: "/google/cloud/alloydb/connectors/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-alloydb-connectors/$1/google-cloud-alloydb-connectors/src" - source: "/google/cloud/alloydb/connectors/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-alloydb-connectors/$1/samples/snippets/generated" diff --git a/java-alloydb/.OwlBot-hermetic.yaml b/java-alloydb/.OwlBot-hermetic.yaml index 5ec5dabf9951..6f0899e44b64 100644 --- a/java-alloydb/.OwlBot-hermetic.yaml +++ b/java-alloydb/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-alloydb/grpc-google-.*/src" - "/java-alloydb/proto-google-.*/src" -- "/java-alloydb/google-.*/src/main" -- "/java-alloydb/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-alloydb/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-alloydb/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-alloydb/google-.*/src" - "/java-alloydb/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/alloydb/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-alloydb/$1/proto-google-cloud-alloydb-$1/src" - source: "/google/cloud/alloydb/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-alloydb/$1/grpc-google-cloud-alloydb-$1/src" -- source: "/google/cloud/alloydb/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-alloydb/$1/google-cloud-alloydb/src/main" +- source: "/google/cloud/alloydb/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-alloydb/$1/google-cloud-alloydb/src" - source: "/google/cloud/alloydb/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-alloydb/$1/samples/snippets/generated" diff --git a/java-analytics-admin/.OwlBot-hermetic.yaml b/java-analytics-admin/.OwlBot-hermetic.yaml index 36ef2cba814c..5f3586f3a66c 100644 --- a/java-analytics-admin/.OwlBot-hermetic.yaml +++ b/java-analytics-admin/.OwlBot-hermetic.yaml @@ -16,10 +16,7 @@ deep-remove-regex: - "/java-analytics-admin/grpc-google-.*/src" - "/java-analytics-admin/proto-google-.*/src" -- "/java-analytics-admin/google-.*/src/main" -- "/java-analytics-admin/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-analytics-admin/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-analytics-admin/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-analytics-admin/google-.*/src" - "/java-analytics-admin/samples/snippets/generated" deep-preserve-regex: @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-analytics-admin/$1/proto-google-analytics-admin-$1/src" - source: "/google/analytics/admin/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-analytics-admin/$1/grpc-google-analytics-admin-$1/src" -- source: "/google/analytics/admin/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-analytics-admin/$1/google-analytics-admin/src/main" +- source: "/google/analytics/admin/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-analytics-admin/$1/google-analytics-admin/src" - source: "/google/analytics/admin/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-analytics-admin/$1/samples/snippets/generated" diff --git a/java-analytics-data/.OwlBot-hermetic.yaml b/java-analytics-data/.OwlBot-hermetic.yaml index 1c5c6ebf37c2..01c77325e63d 100644 --- a/java-analytics-data/.OwlBot-hermetic.yaml +++ b/java-analytics-data/.OwlBot-hermetic.yaml @@ -16,10 +16,7 @@ deep-remove-regex: - "/java-analytics-data/grpc-google-.*/src" - "/java-analytics-data/proto-google-.*/src" -- "/java-analytics-data/google-.*/src/main" -- "/java-analytics-data/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-analytics-data/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-analytics-data/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-analytics-data/google-.*/src" - "/java-analytics-data/samples/snippets/generated" deep-preserve-regex: @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-analytics-data/$1/proto-google-analytics-data-$1/src" - source: "/google/analytics/data/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-analytics-data/$1/grpc-google-analytics-data-$1/src" -- source: "/google/analytics/data/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-analytics-data/$1/google-analytics-data/src/main" +- source: "/google/analytics/data/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-analytics-data/$1/google-analytics-data/src" - source: "/google/analytics/data/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-analytics-data/$1/samples/snippets/generated" diff --git a/java-analyticshub/.OwlBot-hermetic.yaml b/java-analyticshub/.OwlBot-hermetic.yaml index b16d7785fad3..52b3e48efc60 100644 --- a/java-analyticshub/.OwlBot-hermetic.yaml +++ b/java-analyticshub/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-analyticshub/grpc-google-.*/src" - "/java-analyticshub/proto-google-.*/src" -- "/java-analyticshub/google-.*/src/main" -- "/java-analyticshub/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-analyticshub/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-analyticshub/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-analyticshub/google-.*/src" - "/java-analyticshub/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/bigquery/analyticshub/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-analyticshub/$1/proto-google-cloud-analyticshub-$1/src" - source: "/google/cloud/bigquery/analyticshub/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-analyticshub/$1/grpc-google-cloud-analyticshub-$1/src" -- source: "/google/cloud/bigquery/analyticshub/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-analyticshub/$1/google-cloud-analyticshub/src/main" +- source: "/google/cloud/bigquery/analyticshub/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-analyticshub/$1/google-cloud-analyticshub/src" - source: "/google/cloud/bigquery/analyticshub/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-analyticshub/$1/samples/snippets/generated" diff --git a/java-api-gateway/.OwlBot-hermetic.yaml b/java-api-gateway/.OwlBot-hermetic.yaml index e8814dbaf1d4..410f47678877 100644 --- a/java-api-gateway/.OwlBot-hermetic.yaml +++ b/java-api-gateway/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-api-gateway/samples/snippets/generated" - "/java-api-gateway/grpc-google-.*/src" - "/java-api-gateway/proto-google-.*/src" -- "/java-api-gateway/google-.*/src/main" -- "/java-api-gateway/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-api-gateway/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-api-gateway/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-api-gateway/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/apigateway/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-api-gateway/$1/proto-google-cloud-api-gateway-$1/src" - source: "/google/cloud/apigateway/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-api-gateway/$1/grpc-google-cloud-api-gateway-$1/src" -- source: "/google/cloud/apigateway/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-api-gateway/$1/google-cloud-api-gateway/src/main" +- source: "/google/cloud/apigateway/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-api-gateway/$1/google-cloud-api-gateway/src" - source: "/google/cloud/apigateway/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-api-gateway/$1/samples/snippets/generated" diff --git a/java-apigee-connect/.OwlBot-hermetic.yaml b/java-apigee-connect/.OwlBot-hermetic.yaml index f528f023fea5..c5d378822b26 100644 --- a/java-apigee-connect/.OwlBot-hermetic.yaml +++ b/java-apigee-connect/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-apigee-connect/samples/snippets/generated" - "/java-apigee-connect/grpc-google-.*/src" - "/java-apigee-connect/proto-google-.*/src" -- "/java-apigee-connect/google-.*/src/main" -- "/java-apigee-connect/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-apigee-connect/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-apigee-connect/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-apigee-connect/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-apigee-connect/$1/proto-google-cloud-apigee-connect-$1/src" - source: "/google/cloud/apigeeconnect/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-apigee-connect/$1/grpc-google-cloud-apigee-connect-$1/src" -- source: "/google/cloud/apigeeconnect/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-apigee-connect/$1/google-cloud-apigee-connect/src/main" +- source: "/google/cloud/apigeeconnect/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-apigee-connect/$1/google-cloud-apigee-connect/src" - source: "/google/cloud/apigeeconnect/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-apigee-connect/$1/samples/snippets/generated" diff --git a/java-apigee-registry/.OwlBot-hermetic.yaml b/java-apigee-registry/.OwlBot-hermetic.yaml index 5656db65737c..1444f0ccaf15 100644 --- a/java-apigee-registry/.OwlBot-hermetic.yaml +++ b/java-apigee-registry/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-apigee-registry/grpc-google-.*/src" - "/java-apigee-registry/proto-google-.*/src" -- "/java-apigee-registry/google-.*/src/main" -- "/java-apigee-registry/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-apigee-registry/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-apigee-registry/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-apigee-registry/google-.*/src" - "/java-apigee-registry/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/apigeeregistry/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-apigee-registry/$1/proto-google-cloud-apigee-registry-$1/src" - source: "/google/cloud/apigeeregistry/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-apigee-registry/$1/grpc-google-cloud-apigee-registry-$1/src" -- source: "/google/cloud/apigeeregistry/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-apigee-registry/$1/google-cloud-apigee-registry/src/main" +- source: "/google/cloud/apigeeregistry/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-apigee-registry/$1/google-cloud-apigee-registry/src" - source: "/google/cloud/apigeeregistry/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-apigee-registry/$1/samples/snippets/generated" api-name: apigee-registry diff --git a/java-apihub/.OwlBot-hermetic.yaml b/java-apihub/.OwlBot-hermetic.yaml index bb3e403a31ff..86d34b927e2f 100644 --- a/java-apihub/.OwlBot-hermetic.yaml +++ b/java-apihub/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-apihub/grpc-google-.*/src" - "/java-apihub/proto-google-.*/src" -- "/java-apihub/google-.*/src/main" -- "/java-apihub/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-apihub/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-apihub/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-apihub/google-.*/src" - "/java-apihub/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/apihub/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-apihub/$1/proto-google-cloud-apihub-$1/src" - source: "/google/cloud/apihub/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-apihub/$1/grpc-google-cloud-apihub-$1/src" -- source: "/google/cloud/apihub/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-apihub/$1/google-cloud-apihub/src/main" +- source: "/google/cloud/apihub/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-apihub/$1/google-cloud-apihub/src" - source: "/google/cloud/apihub/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-apihub/$1/samples/snippets/generated" diff --git a/java-apikeys/.OwlBot-hermetic.yaml b/java-apikeys/.OwlBot-hermetic.yaml index 91469fa75319..a20286624096 100644 --- a/java-apikeys/.OwlBot-hermetic.yaml +++ b/java-apikeys/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-apikeys/grpc-google-.*/src" - "/java-apikeys/proto-google-.*/src" -- "/java-apikeys/google-.*/src/main" -- "/java-apikeys/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-apikeys/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-apikeys/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-apikeys/google-.*/src" - "/java-apikeys/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/api/apikeys/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-apikeys/$1/proto-google-cloud-apikeys-$1/src" - source: "/google/api/apikeys/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-apikeys/$1/grpc-google-cloud-apikeys-$1/src" -- source: "/google/api/apikeys/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-apikeys/$1/google-cloud-apikeys/src/main" +- source: "/google/api/apikeys/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-apikeys/$1/google-cloud-apikeys/src" - source: "/google/api/apikeys/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-apikeys/$1/samples/snippets/generated" diff --git a/java-appengine-admin/.OwlBot-hermetic.yaml b/java-appengine-admin/.OwlBot-hermetic.yaml index c0b56e4cbe19..7bf30a296880 100644 --- a/java-appengine-admin/.OwlBot-hermetic.yaml +++ b/java-appengine-admin/.OwlBot-hermetic.yaml @@ -16,10 +16,7 @@ deep-remove-regex: - "/java-appengine-admin/grpc-google-.*/src" - "/java-appengine-admin/proto-google-.*/src" -- "/java-appengine-admin/google-.*/src/main" -- "/java-appengine-admin/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-appengine-admin/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-appengine-admin/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-appengine-admin/google-.*/src" - "/java-appengine-admin/samples/snippets/generated" deep-preserve-regex: @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-appengine-admin/$1/proto-google-cloud-appengine-admin-$1/src" - source: "/google/appengine/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-appengine-admin/$1/grpc-google-cloud-appengine-admin-$1/src" -- source: "/google/appengine/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-appengine-admin/$1/google-cloud-appengine-admin/src/main" +- source: "/google/appengine/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-appengine-admin/$1/google-cloud-appengine-admin/src" - source: "/google/appengine/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-appengine-admin/$1/samples/snippets/generated" diff --git a/java-apphub/.OwlBot-hermetic.yaml b/java-apphub/.OwlBot-hermetic.yaml index 1756e672c33e..4ec45152b5f3 100644 --- a/java-apphub/.OwlBot-hermetic.yaml +++ b/java-apphub/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-apphub/grpc-google-.*/src" - "/java-apphub/proto-google-.*/src" -- "/java-apphub/google-.*/src/main" -- "/java-apphub/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-apphub/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-apphub/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-apphub/google-.*/src" - "/java-apphub/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/apphub/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-apphub/$1/proto-google-cloud-apphub-$1/src" - source: "/google/cloud/apphub/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-apphub/$1/grpc-google-cloud-apphub-$1/src" -- source: "/google/cloud/apphub/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-apphub/$1/google-cloud-apphub/src/main" +- source: "/google/cloud/apphub/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-apphub/$1/google-cloud-apphub/src" - source: "/google/cloud/apphub/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-apphub/$1/samples/snippets/generated" diff --git a/java-appoptimize/.OwlBot-hermetic.yaml b/java-appoptimize/.OwlBot-hermetic.yaml index 63cc65ba9fdc..8c33a053fe62 100644 --- a/java-appoptimize/.OwlBot-hermetic.yaml +++ b/java-appoptimize/.OwlBot-hermetic.yaml @@ -16,13 +16,11 @@ deep-remove-regex: - "/java-appoptimize/grpc-google-.*/src" - "/java-appoptimize/proto-google-.*/src" -- "/java-appoptimize/google-.*/src/main" -- "/java-appoptimize/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-appoptimize/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-appoptimize/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-appoptimize/google-.*/src" - "/java-appoptimize/samples/snippets/generated" deep-preserve-regex: +- "/java-appoptimize/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*google-.*/src/main/java/.*/stub/Version.java" deep-copy-regex: @@ -30,8 +28,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-appoptimize/$1/proto-google-cloud-appoptimize-$1/src" - source: "/google/cloud/appoptimize/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-appoptimize/$1/grpc-google-cloud-appoptimize-$1/src" -- source: "/google/cloud/appoptimize/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-appoptimize/$1/google-cloud-appoptimize/src/main" +- source: "/google/cloud/appoptimize/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-appoptimize/$1/google-cloud-appoptimize/src" - source: "/google/cloud/appoptimize/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-appoptimize/$1/samples/snippets/generated" diff --git a/java-area120-tables/.OwlBot-hermetic.yaml b/java-area120-tables/.OwlBot-hermetic.yaml index e714b7efe1e6..336a6566afb2 100644 --- a/java-area120-tables/.OwlBot-hermetic.yaml +++ b/java-area120-tables/.OwlBot-hermetic.yaml @@ -16,10 +16,7 @@ deep-remove-regex: - "/java-area120-tables/grpc-google-.*/src" - "/java-area120-tables/proto-google-.*/src" -- "/java-area120-tables/google-.*/src/main" -- "/java-area120-tables/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-area120-tables/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-area120-tables/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-area120-tables/google-.*/src" - "/java-area120-tables/samples/snippets/generated" deep-preserve-regex: @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-area120-tables/$1/proto-google-area120-tables-$1/src" - source: "/google/area120/tables/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-area120-tables/$1/grpc-google-area120-tables-$1/src" -- source: "/google/area120/tables/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-area120-tables/$1/google-area120-tables/src/main" +- source: "/google/area120/tables/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-area120-tables/$1/google-area120-tables/src" - source: "/google/area120/tables/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-area120-tables/$1/samples/snippets/generated" diff --git a/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesService.java b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesService.java new file mode 100644 index 000000000000..61ea5327678e --- /dev/null +++ b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTablesService implements MockGrpcService { + private final MockTablesServiceImpl serviceImpl; + + public MockTablesService() { + serviceImpl = new MockTablesServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesServiceImpl.java b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesServiceImpl.java new file mode 100644 index 000000000000..8bb1b9060085 --- /dev/null +++ b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/MockTablesServiceImpl.java @@ -0,0 +1,327 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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; + +import com.google.api.core.BetaApi; +import com.google.area120.tables.v1alpha1.BatchCreateRowsRequest; +import com.google.area120.tables.v1alpha1.BatchCreateRowsResponse; +import com.google.area120.tables.v1alpha1.BatchDeleteRowsRequest; +import com.google.area120.tables.v1alpha1.BatchUpdateRowsRequest; +import com.google.area120.tables.v1alpha1.BatchUpdateRowsResponse; +import com.google.area120.tables.v1alpha1.CreateRowRequest; +import com.google.area120.tables.v1alpha1.DeleteRowRequest; +import com.google.area120.tables.v1alpha1.GetRowRequest; +import com.google.area120.tables.v1alpha1.GetTableRequest; +import com.google.area120.tables.v1alpha1.GetWorkspaceRequest; +import com.google.area120.tables.v1alpha1.ListRowsRequest; +import com.google.area120.tables.v1alpha1.ListRowsResponse; +import com.google.area120.tables.v1alpha1.ListTablesRequest; +import com.google.area120.tables.v1alpha1.ListTablesResponse; +import com.google.area120.tables.v1alpha1.ListWorkspacesRequest; +import com.google.area120.tables.v1alpha1.ListWorkspacesResponse; +import com.google.area120.tables.v1alpha1.Row; +import com.google.area120.tables.v1alpha1.Table; +import com.google.area120.tables.v1alpha1.TablesServiceGrpc.TablesServiceImplBase; +import com.google.area120.tables.v1alpha1.UpdateRowRequest; +import com.google.area120.tables.v1alpha1.Workspace; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTablesServiceImpl extends TablesServiceImplBase { + private List requests; + private Queue responses; + + public MockTablesServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void getTable(GetTableRequest request, StreamObserver
              responseObserver) { + Object response = responses.poll(); + if (response instanceof Table) { + requests.add(request); + responseObserver.onNext(((Table) 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 GetTable, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Table.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listTables( + ListTablesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTablesResponse) { + requests.add(request); + responseObserver.onNext(((ListTablesResponse) 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 ListTables, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTablesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getWorkspace( + GetWorkspaceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Workspace) { + requests.add(request); + responseObserver.onNext(((Workspace) 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 GetWorkspace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Workspace.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listWorkspaces( + ListWorkspacesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListWorkspacesResponse) { + requests.add(request); + responseObserver.onNext(((ListWorkspacesResponse) 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 ListWorkspaces, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListWorkspacesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getRow(GetRowRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Row) { + requests.add(request); + responseObserver.onNext(((Row) 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 GetRow, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Row.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listRows(ListRowsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListRowsResponse) { + requests.add(request); + responseObserver.onNext(((ListRowsResponse) 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 ListRows, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListRowsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createRow(CreateRowRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Row) { + requests.add(request); + responseObserver.onNext(((Row) 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 CreateRow, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Row.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchCreateRows( + BatchCreateRowsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BatchCreateRowsResponse) { + requests.add(request); + responseObserver.onNext(((BatchCreateRowsResponse) 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 BatchCreateRows, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + BatchCreateRowsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateRow(UpdateRowRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Row) { + requests.add(request); + responseObserver.onNext(((Row) 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 UpdateRow, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Row.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchUpdateRows( + BatchUpdateRowsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof BatchUpdateRowsResponse) { + requests.add(request); + responseObserver.onNext(((BatchUpdateRowsResponse) 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 BatchUpdateRows, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + BatchUpdateRowsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteRow(DeleteRowRequest 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 DeleteRow, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void batchDeleteRows( + BatchDeleteRowsRequest 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 BatchDeleteRows, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientHttpJsonTest.java b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..cc5db353ccaa --- /dev/null +++ b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientHttpJsonTest.java @@ -0,0 +1,873 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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; + +import static com.google.area120.tables.v1alpha.TablesServiceClient.ListRowsPagedResponse; +import static com.google.area120.tables.v1alpha.TablesServiceClient.ListTablesPagedResponse; +import static com.google.area120.tables.v1alpha.TablesServiceClient.ListWorkspacesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.area120.tables.v1alpha.stub.HttpJsonTablesServiceStub; +import com.google.area120.tables.v1alpha1.BatchCreateRowsRequest; +import com.google.area120.tables.v1alpha1.BatchCreateRowsResponse; +import com.google.area120.tables.v1alpha1.BatchDeleteRowsRequest; +import com.google.area120.tables.v1alpha1.BatchUpdateRowsRequest; +import com.google.area120.tables.v1alpha1.BatchUpdateRowsResponse; +import com.google.area120.tables.v1alpha1.ColumnDescription; +import com.google.area120.tables.v1alpha1.CreateRowRequest; +import com.google.area120.tables.v1alpha1.ListRowsResponse; +import com.google.area120.tables.v1alpha1.ListTablesRequest; +import com.google.area120.tables.v1alpha1.ListTablesResponse; +import com.google.area120.tables.v1alpha1.ListWorkspacesRequest; +import com.google.area120.tables.v1alpha1.ListWorkspacesResponse; +import com.google.area120.tables.v1alpha1.Row; +import com.google.area120.tables.v1alpha1.RowName; +import com.google.area120.tables.v1alpha1.Table; +import com.google.area120.tables.v1alpha1.TableName; +import com.google.area120.tables.v1alpha1.UpdateRowRequest; +import com.google.area120.tables.v1alpha1.Workspace; +import com.google.area120.tables.v1alpha1.WorkspaceName; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Value; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TablesServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static TablesServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonTablesServiceStub.getMethodDescriptors(), + TablesServiceSettings.getDefaultEndpoint()); + TablesServiceSettings settings = + TablesServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + TablesServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TablesServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getTableTest() throws Exception { + Table expectedResponse = + Table.newBuilder() + .setName(TableName.of("[TABLE]").toString()) + .setDisplayName("displayName1714148973") + .addAllColumns(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + TableName name = TableName.of("[TABLE]"); + + Table actualResponse = client.getTable(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 getTableExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TableName name = TableName.of("[TABLE]"); + client.getTable(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTableTest2() throws Exception { + Table expectedResponse = + Table.newBuilder() + .setName(TableName.of("[TABLE]").toString()) + .setDisplayName("displayName1714148973") + .addAllColumns(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "tables/table-2379"; + + Table actualResponse = client.getTable(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 getTableExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "tables/table-2379"; + client.getTable(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTablesTest() throws Exception { + Table responsesElement = Table.newBuilder().build(); + ListTablesResponse expectedResponse = + ListTablesResponse.newBuilder() + .setNextPageToken("") + .addAllTables(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListTablesRequest request = + ListTablesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListTablesPagedResponse pagedListResponse = client.listTables(request); + + List
              resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTablesList().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 listTablesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListTablesRequest request = + ListTablesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listTables(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkspaceTest() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName(WorkspaceName.of("[WORKSPACE]").toString()) + .setDisplayName("displayName1714148973") + .addAllTables(new ArrayList
              ()) + .build(); + mockService.addResponse(expectedResponse); + + WorkspaceName name = WorkspaceName.of("[WORKSPACE]"); + + Workspace actualResponse = client.getWorkspace(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 getWorkspaceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + WorkspaceName name = WorkspaceName.of("[WORKSPACE]"); + client.getWorkspace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkspaceTest2() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName(WorkspaceName.of("[WORKSPACE]").toString()) + .setDisplayName("displayName1714148973") + .addAllTables(new ArrayList
              ()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "workspaces/workspace-1084"; + + Workspace actualResponse = client.getWorkspace(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 getWorkspaceExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "workspaces/workspace-1084"; + client.getWorkspace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkspacesTest() throws Exception { + Workspace responsesElement = Workspace.newBuilder().build(); + ListWorkspacesResponse expectedResponse = + ListWorkspacesResponse.newBuilder() + .setNextPageToken("") + .addAllWorkspaces(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListWorkspacesRequest request = + ListWorkspacesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListWorkspacesPagedResponse pagedListResponse = client.listWorkspaces(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkspacesList().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 listWorkspacesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListWorkspacesRequest request = + ListWorkspacesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listWorkspaces(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRowTest() throws Exception { + Row expectedResponse = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + RowName name = RowName.of("[TABLE]", "[ROW]"); + + Row actualResponse = client.getRow(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 getRowExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RowName name = RowName.of("[TABLE]", "[ROW]"); + client.getRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRowTest2() throws Exception { + Row expectedResponse = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "tables/table-4056/rows/row-4056"; + + Row actualResponse = client.getRow(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 getRowExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "tables/table-4056/rows/row-4056"; + client.getRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRowsTest() throws Exception { + Row responsesElement = Row.newBuilder().build(); + ListRowsResponse expectedResponse = + ListRowsResponse.newBuilder() + .setNextPageToken("") + .addAllRows(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "tables/table-3978"; + + ListRowsPagedResponse pagedListResponse = client.listRows(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRowsList().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 listRowsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "tables/table-3978"; + client.listRows(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createRowTest() throws Exception { + Row expectedResponse = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "tables/table-3978"; + Row row = Row.newBuilder().build(); + + Row actualResponse = client.createRow(parent, row); + 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 createRowExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "tables/table-3978"; + Row row = Row.newBuilder().build(); + client.createRow(parent, row); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateRowsTest() throws Exception { + BatchCreateRowsResponse expectedResponse = + BatchCreateRowsResponse.newBuilder().addAllRows(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + BatchCreateRowsRequest request = + BatchCreateRowsRequest.newBuilder() + .setParent("tables/table-3978") + .addAllRequests(new ArrayList()) + .build(); + + BatchCreateRowsResponse actualResponse = client.batchCreateRows(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 batchCreateRowsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchCreateRowsRequest request = + BatchCreateRowsRequest.newBuilder() + .setParent("tables/table-3978") + .addAllRequests(new ArrayList()) + .build(); + client.batchCreateRows(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateRowTest() throws Exception { + Row expectedResponse = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + mockService.addResponse(expectedResponse); + + Row row = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Row actualResponse = client.updateRow(row, 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 updateRowExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Row row = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateRow(row, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateRowsTest() throws Exception { + BatchUpdateRowsResponse expectedResponse = + BatchUpdateRowsResponse.newBuilder().addAllRows(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + BatchUpdateRowsRequest request = + BatchUpdateRowsRequest.newBuilder() + .setParent("tables/table-3978") + .addAllRequests(new ArrayList()) + .build(); + + BatchUpdateRowsResponse actualResponse = client.batchUpdateRows(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 batchUpdateRowsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchUpdateRowsRequest request = + BatchUpdateRowsRequest.newBuilder() + .setParent("tables/table-3978") + .addAllRequests(new ArrayList()) + .build(); + client.batchUpdateRows(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRowTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + RowName name = RowName.of("[TABLE]", "[ROW]"); + + client.deleteRow(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 deleteRowExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RowName name = RowName.of("[TABLE]", "[ROW]"); + client.deleteRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRowTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "tables/table-4056/rows/row-4056"; + + client.deleteRow(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 deleteRowExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "tables/table-4056/rows/row-4056"; + client.deleteRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeleteRowsTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + BatchDeleteRowsRequest request = + BatchDeleteRowsRequest.newBuilder() + .setParent(TableName.of("[TABLE]").toString()) + .addAllNames(new ArrayList()) + .build(); + + client.batchDeleteRows(request); + + 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 batchDeleteRowsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchDeleteRowsRequest request = + BatchDeleteRowsRequest.newBuilder() + .setParent(TableName.of("[TABLE]").toString()) + .addAllNames(new ArrayList()) + .build(); + client.batchDeleteRows(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientTest.java b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientTest.java new file mode 100644 index 000000000000..ef189c621231 --- /dev/null +++ b/java-area120-tables/google-area120-tables/src/test/java/com/google/area120/tables/v1alpha/TablesServiceClientTest.java @@ -0,0 +1,784 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.area120.tables.v1alpha; + +import static com.google.area120.tables.v1alpha.TablesServiceClient.ListRowsPagedResponse; +import static com.google.area120.tables.v1alpha.TablesServiceClient.ListTablesPagedResponse; +import static com.google.area120.tables.v1alpha.TablesServiceClient.ListWorkspacesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +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.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.area120.tables.v1alpha1.BatchCreateRowsRequest; +import com.google.area120.tables.v1alpha1.BatchCreateRowsResponse; +import com.google.area120.tables.v1alpha1.BatchDeleteRowsRequest; +import com.google.area120.tables.v1alpha1.BatchUpdateRowsRequest; +import com.google.area120.tables.v1alpha1.BatchUpdateRowsResponse; +import com.google.area120.tables.v1alpha1.ColumnDescription; +import com.google.area120.tables.v1alpha1.CreateRowRequest; +import com.google.area120.tables.v1alpha1.DeleteRowRequest; +import com.google.area120.tables.v1alpha1.GetRowRequest; +import com.google.area120.tables.v1alpha1.GetTableRequest; +import com.google.area120.tables.v1alpha1.GetWorkspaceRequest; +import com.google.area120.tables.v1alpha1.ListRowsRequest; +import com.google.area120.tables.v1alpha1.ListRowsResponse; +import com.google.area120.tables.v1alpha1.ListTablesRequest; +import com.google.area120.tables.v1alpha1.ListTablesResponse; +import com.google.area120.tables.v1alpha1.ListWorkspacesRequest; +import com.google.area120.tables.v1alpha1.ListWorkspacesResponse; +import com.google.area120.tables.v1alpha1.Row; +import com.google.area120.tables.v1alpha1.RowName; +import com.google.area120.tables.v1alpha1.Table; +import com.google.area120.tables.v1alpha1.TableName; +import com.google.area120.tables.v1alpha1.UpdateRowRequest; +import com.google.area120.tables.v1alpha1.Workspace; +import com.google.area120.tables.v1alpha1.WorkspaceName; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Value; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TablesServiceClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockTablesService mockTablesService; + private LocalChannelProvider channelProvider; + private TablesServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockTablesService = new MockTablesService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockTablesService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + TablesServiceSettings settings = + TablesServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TablesServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void getTableTest() throws Exception { + Table expectedResponse = + Table.newBuilder() + .setName(TableName.of("[TABLE]").toString()) + .setDisplayName("displayName1714148973") + .addAllColumns(new ArrayList()) + .build(); + mockTablesService.addResponse(expectedResponse); + + TableName name = TableName.of("[TABLE]"); + + Table actualResponse = client.getTable(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTableRequest actualRequest = ((GetTableRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTableExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + TableName name = TableName.of("[TABLE]"); + client.getTable(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTableTest2() throws Exception { + Table expectedResponse = + Table.newBuilder() + .setName(TableName.of("[TABLE]").toString()) + .setDisplayName("displayName1714148973") + .addAllColumns(new ArrayList()) + .build(); + mockTablesService.addResponse(expectedResponse); + + String name = "name3373707"; + + Table actualResponse = client.getTable(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTableRequest actualRequest = ((GetTableRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTableExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + String name = "name3373707"; + client.getTable(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listTablesTest() throws Exception { + Table responsesElement = Table.newBuilder().build(); + ListTablesResponse expectedResponse = + ListTablesResponse.newBuilder() + .setNextPageToken("") + .addAllTables(Arrays.asList(responsesElement)) + .build(); + mockTablesService.addResponse(expectedResponse); + + ListTablesRequest request = + ListTablesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListTablesPagedResponse pagedListResponse = client.listTables(request); + + List
              resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTablesList().get(0), resources.get(0)); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTablesRequest actualRequest = ((ListTablesRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTablesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + ListTablesRequest request = + ListTablesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listTables(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkspaceTest() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName(WorkspaceName.of("[WORKSPACE]").toString()) + .setDisplayName("displayName1714148973") + .addAllTables(new ArrayList
              ()) + .build(); + mockTablesService.addResponse(expectedResponse); + + WorkspaceName name = WorkspaceName.of("[WORKSPACE]"); + + Workspace actualResponse = client.getWorkspace(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetWorkspaceRequest actualRequest = ((GetWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getWorkspaceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + WorkspaceName name = WorkspaceName.of("[WORKSPACE]"); + client.getWorkspace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getWorkspaceTest2() throws Exception { + Workspace expectedResponse = + Workspace.newBuilder() + .setName(WorkspaceName.of("[WORKSPACE]").toString()) + .setDisplayName("displayName1714148973") + .addAllTables(new ArrayList
              ()) + .build(); + mockTablesService.addResponse(expectedResponse); + + String name = "name3373707"; + + Workspace actualResponse = client.getWorkspace(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetWorkspaceRequest actualRequest = ((GetWorkspaceRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getWorkspaceExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + String name = "name3373707"; + client.getWorkspace(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listWorkspacesTest() throws Exception { + Workspace responsesElement = Workspace.newBuilder().build(); + ListWorkspacesResponse expectedResponse = + ListWorkspacesResponse.newBuilder() + .setNextPageToken("") + .addAllWorkspaces(Arrays.asList(responsesElement)) + .build(); + mockTablesService.addResponse(expectedResponse); + + ListWorkspacesRequest request = + ListWorkspacesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListWorkspacesPagedResponse pagedListResponse = client.listWorkspaces(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkspacesList().get(0), resources.get(0)); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListWorkspacesRequest actualRequest = ((ListWorkspacesRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listWorkspacesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + ListWorkspacesRequest request = + ListWorkspacesRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listWorkspaces(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRowTest() throws Exception { + Row expectedResponse = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + mockTablesService.addResponse(expectedResponse); + + RowName name = RowName.of("[TABLE]", "[ROW]"); + + Row actualResponse = client.getRow(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRowRequest actualRequest = ((GetRowRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getRowExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + RowName name = RowName.of("[TABLE]", "[ROW]"); + client.getRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getRowTest2() throws Exception { + Row expectedResponse = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + mockTablesService.addResponse(expectedResponse); + + String name = "name3373707"; + + Row actualResponse = client.getRow(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetRowRequest actualRequest = ((GetRowRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getRowExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + String name = "name3373707"; + client.getRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listRowsTest() throws Exception { + Row responsesElement = Row.newBuilder().build(); + ListRowsResponse expectedResponse = + ListRowsResponse.newBuilder() + .setNextPageToken("") + .addAllRows(Arrays.asList(responsesElement)) + .build(); + mockTablesService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListRowsPagedResponse pagedListResponse = client.listRows(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getRowsList().get(0), resources.get(0)); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListRowsRequest actualRequest = ((ListRowsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listRowsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listRows(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createRowTest() throws Exception { + Row expectedResponse = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + mockTablesService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + Row row = Row.newBuilder().build(); + + Row actualResponse = client.createRow(parent, row); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateRowRequest actualRequest = ((CreateRowRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(row, actualRequest.getRow()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createRowExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + String parent = "parent-995424086"; + Row row = Row.newBuilder().build(); + client.createRow(parent, row); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateRowsTest() throws Exception { + BatchCreateRowsResponse expectedResponse = + BatchCreateRowsResponse.newBuilder().addAllRows(new ArrayList()).build(); + mockTablesService.addResponse(expectedResponse); + + BatchCreateRowsRequest request = + BatchCreateRowsRequest.newBuilder() + .setParent("parent-995424086") + .addAllRequests(new ArrayList()) + .build(); + + BatchCreateRowsResponse actualResponse = client.batchCreateRows(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchCreateRowsRequest actualRequest = ((BatchCreateRowsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchCreateRowsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + BatchCreateRowsRequest request = + BatchCreateRowsRequest.newBuilder() + .setParent("parent-995424086") + .addAllRequests(new ArrayList()) + .build(); + client.batchCreateRows(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateRowTest() throws Exception { + Row expectedResponse = + Row.newBuilder() + .setName(RowName.of("[TABLE]", "[ROW]").toString()) + .putAllValues(new HashMap()) + .build(); + mockTablesService.addResponse(expectedResponse); + + Row row = Row.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Row actualResponse = client.updateRow(row, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateRowRequest actualRequest = ((UpdateRowRequest) actualRequests.get(0)); + + Assert.assertEquals(row, actualRequest.getRow()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateRowExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + Row row = Row.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateRow(row, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateRowsTest() throws Exception { + BatchUpdateRowsResponse expectedResponse = + BatchUpdateRowsResponse.newBuilder().addAllRows(new ArrayList()).build(); + mockTablesService.addResponse(expectedResponse); + + BatchUpdateRowsRequest request = + BatchUpdateRowsRequest.newBuilder() + .setParent("parent-995424086") + .addAllRequests(new ArrayList()) + .build(); + + BatchUpdateRowsResponse actualResponse = client.batchUpdateRows(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchUpdateRowsRequest actualRequest = ((BatchUpdateRowsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getRequestsList(), actualRequest.getRequestsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchUpdateRowsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + BatchUpdateRowsRequest request = + BatchUpdateRowsRequest.newBuilder() + .setParent("parent-995424086") + .addAllRequests(new ArrayList()) + .build(); + client.batchUpdateRows(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRowTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTablesService.addResponse(expectedResponse); + + RowName name = RowName.of("[TABLE]", "[ROW]"); + + client.deleteRow(name); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteRowRequest actualRequest = ((DeleteRowRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteRowExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + RowName name = RowName.of("[TABLE]", "[ROW]"); + client.deleteRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteRowTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTablesService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteRow(name); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteRowRequest actualRequest = ((DeleteRowRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteRowExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + String name = "name3373707"; + client.deleteRow(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeleteRowsTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTablesService.addResponse(expectedResponse); + + BatchDeleteRowsRequest request = + BatchDeleteRowsRequest.newBuilder() + .setParent(TableName.of("[TABLE]").toString()) + .addAllNames(new ArrayList()) + .build(); + + client.batchDeleteRows(request); + + List actualRequests = mockTablesService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchDeleteRowsRequest actualRequest = ((BatchDeleteRowsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getNamesList(), actualRequest.getNamesList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchDeleteRowsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTablesService.addException(exception); + + try { + BatchDeleteRowsRequest request = + BatchDeleteRowsRequest.newBuilder() + .setParent(TableName.of("[TABLE]").toString()) + .addAllNames(new ArrayList()) + .build(); + client.batchDeleteRows(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-artifact-registry/.OwlBot-hermetic.yaml b/java-artifact-registry/.OwlBot-hermetic.yaml index 7f9ba0dc7c2d..064792d99ac9 100644 --- a/java-artifact-registry/.OwlBot-hermetic.yaml +++ b/java-artifact-registry/.OwlBot-hermetic.yaml @@ -16,10 +16,7 @@ deep-remove-regex: - "/java-artifact-registry/grpc-google-.*/src" - "/java-artifact-registry/proto-google-.*/src" -- "/java-artifact-registry/google-.*/src/main" -- "/java-artifact-registry/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-artifact-registry/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-artifact-registry/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-artifact-registry/google-.*/src" - "/java-artifact-registry/samples/snippets/generated" deep-preserve-regex: @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-artifact-registry/$1/proto-google-cloud-artifact-registry-$1/src" - source: "/google/devtools/artifactregistry/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-artifact-registry/$1/grpc-google-cloud-artifact-registry-$1/src" -- source: "/google/devtools/artifactregistry/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-artifact-registry/$1/google-cloud-artifact-registry/src/main" +- source: "/google/devtools/artifactregistry/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-artifact-registry/$1/google-cloud-artifact-registry/src" - source: "/google/devtools/artifactregistry/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-artifact-registry/$1/samples/snippets/generated" diff --git a/java-asset/.OwlBot-hermetic.yaml b/java-asset/.OwlBot-hermetic.yaml index 0b7a7c5b85ab..46f8c9bee784 100644 --- a/java-asset/.OwlBot-hermetic.yaml +++ b/java-asset/.OwlBot-hermetic.yaml @@ -17,15 +17,12 @@ deep-remove-regex: - "/java-asset/samples/snippets/generated" - "/java-asset/grpc-google-.*/src" - "/java-asset/proto-google-.*/src" -- "/java-asset/google-.*/src/main" -- "/java-asset/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-asset/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-asset/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-asset/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-.*/src/test/java/com/google/.*/it" -- "/.*google-cloud-asset/src/test/java/com/google/.*/asset/v1/VPCServiceControlTest.java" +- "/.*google-cloud-.*/src/test/java/com/google/cloud/.*/it" +- "/.*google-cloud-asset/src/test/java/com/google/cloud/asset/v1/VPCServiceControlTest.java" - "/.*proto-google-cloud-asset-v1/src/main/java/com/google/cloud/asset/v1/ProjectName.java" deep-copy-regex: @@ -33,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-asset/$1/proto-google-cloud-asset-$1/src" - source: "/google/cloud/asset/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-asset/$1/grpc-google-cloud-asset-$1/src" -- source: "/google/cloud/asset/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-asset/$1/google-cloud-asset/src/main" +- source: "/google/cloud/asset/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-asset/$1/google-cloud-asset/src" - source: "/google/cloud/asset/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-asset/$1/samples/snippets/generated" diff --git a/java-assured-workloads/.OwlBot-hermetic.yaml b/java-assured-workloads/.OwlBot-hermetic.yaml index fa911e4ddf1f..4ae7d7469586 100644 --- a/java-assured-workloads/.OwlBot-hermetic.yaml +++ b/java-assured-workloads/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-assured-workloads/samples/snippets/generated" - "/java-assured-workloads/grpc-google-.*/src" - "/java-assured-workloads/proto-google-.*/src" -- "/java-assured-workloads/google-.*/src/main" -- "/java-assured-workloads/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-assured-workloads/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-assured-workloads/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-assured-workloads/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-assured-workloads/$1/proto-google-cloud-assured-workloads-$1/src" - source: "/google/cloud/assuredworkloads/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-assured-workloads/$1/grpc-google-cloud-assured-workloads-$1/src" -- source: "/google/cloud/assuredworkloads/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-assured-workloads/$1/google-cloud-assured-workloads/src/main" +- source: "/google/cloud/assuredworkloads/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-assured-workloads/$1/google-cloud-assured-workloads/src" - source: "/google/cloud/assuredworkloads/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-assured-workloads/$1/samples/snippets/generated" diff --git a/java-auditmanager/.OwlBot-hermetic.yaml b/java-auditmanager/.OwlBot-hermetic.yaml index 6013a7ecb949..026473f06cf3 100644 --- a/java-auditmanager/.OwlBot-hermetic.yaml +++ b/java-auditmanager/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-auditmanager/grpc-google-.*/src" - "/java-auditmanager/proto-google-.*/src" -- "/java-auditmanager/google-.*/src/main" -- "/java-auditmanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-auditmanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-auditmanager/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-auditmanager/google-.*/src" - "/java-auditmanager/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/auditmanager/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-auditmanager/$1/proto-google-cloud-auditmanager-$1/src" - source: "/google/cloud/auditmanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-auditmanager/$1/grpc-google-cloud-auditmanager-$1/src" -- source: "/google/cloud/auditmanager/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-auditmanager/$1/google-cloud-auditmanager/src/main" +- source: "/google/cloud/auditmanager/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-auditmanager/$1/google-cloud-auditmanager/src" - source: "/google/cloud/auditmanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-auditmanager/$1/samples/snippets/generated" diff --git a/java-automl/.OwlBot-hermetic.yaml b/java-automl/.OwlBot-hermetic.yaml index 2a0afdb2f2d2..0c39ec644cac 100644 --- a/java-automl/.OwlBot-hermetic.yaml +++ b/java-automl/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-automl/samples/snippets/generated" - "/java-automl/grpc-google-.*/src" - "/java-automl/proto-google-.*/src" -- "/java-automl/google-.*/src/main" -- "/java-automl/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-automl/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-automl/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-automl/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-automl/$1/proto-google-cloud-automl-$1/src" - source: "/google/cloud/automl/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-automl/$1/grpc-google-cloud-automl-$1/src" -- source: "/google/cloud/automl/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-automl/$1/google-cloud-automl/src/main" +- source: "/google/cloud/automl/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-automl/$1/google-cloud-automl/src" - source: "/google/cloud/automl/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-automl/$1/samples/snippets/generated" diff --git a/java-backstory/.OwlBot-hermetic.yaml b/java-backstory/.OwlBot-hermetic.yaml index af06658e9554..0f5259ed6710 100644 --- a/java-backstory/.OwlBot-hermetic.yaml +++ b/java-backstory/.OwlBot-hermetic.yaml @@ -16,20 +16,19 @@ deep-remove-regex: - "/java-backstory/grpc-google-.*/src" - "/java-backstory/proto-google-.*/src" -- "/java-backstory/google-.*/src/main" -- "/java-backstory/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-backstory/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-backstory/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-backstory/google-.*/src" - "/java-backstory/samples/snippets/generated" deep-preserve-regex: +- "/java-backstory/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/backstory/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-backstory/proto-google-cloud-backstory/src" - source: "/backstory/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-backstory/grpc-google-cloud-backstory/src" -- source: "/backstory/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-backstory/google-cloud-backstory/src/main" +- source: "/backstory/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-backstory/google-cloud-backstory/src" - source: "/backstory/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-backstory/samples/snippets/generated" diff --git a/java-backupdr/.OwlBot-hermetic.yaml b/java-backupdr/.OwlBot-hermetic.yaml index e61117b2b93b..ba649a8c91cf 100644 --- a/java-backupdr/.OwlBot-hermetic.yaml +++ b/java-backupdr/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-backupdr/grpc-google-.*/src" - "/java-backupdr/proto-google-.*/src" -- "/java-backupdr/google-.*/src/main" -- "/java-backupdr/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-backupdr/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-backupdr/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-backupdr/google-.*/src" - "/java-backupdr/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/backupdr/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-backupdr/$1/proto-google-cloud-backupdr-$1/src" - source: "/google/cloud/backupdr/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-backupdr/$1/grpc-google-cloud-backupdr-$1/src" -- source: "/google/cloud/backupdr/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-backupdr/$1/google-cloud-backupdr/src/main" +- source: "/google/cloud/backupdr/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-backupdr/$1/google-cloud-backupdr/src" - source: "/google/cloud/backupdr/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-backupdr/$1/samples/snippets/generated" diff --git a/java-bare-metal-solution/.OwlBot-hermetic.yaml b/java-bare-metal-solution/.OwlBot-hermetic.yaml index 97c7a33ff2db..7c4b212a734d 100644 --- a/java-bare-metal-solution/.OwlBot-hermetic.yaml +++ b/java-bare-metal-solution/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-bare-metal-solution/samples/snippets/generated" - "/java-bare-metal-solution/grpc-google-.*/src" - "/java-bare-metal-solution/proto-google-.*/src" -- "/java-bare-metal-solution/google-.*/src/main" -- "/java-bare-metal-solution/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-bare-metal-solution/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-bare-metal-solution/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-bare-metal-solution/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/baremetalsolution/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-bare-metal-solution/$1/proto-google-cloud-bare-metal-solution-$1/src" - source: "/google/cloud/baremetalsolution/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-bare-metal-solution/$1/grpc-google-cloud-bare-metal-solution-$1/src" -- source: "/google/cloud/baremetalsolution/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-bare-metal-solution/$1/google-cloud-bare-metal-solution/src/main" +- source: "/google/cloud/baremetalsolution/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-bare-metal-solution/$1/google-cloud-bare-metal-solution/src" - source: "/google/cloud/baremetalsolution/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-bare-metal-solution/$1/samples/snippets/generated" diff --git a/java-batch/.OwlBot-hermetic.yaml b/java-batch/.OwlBot-hermetic.yaml index 22c8b1ad18ed..2a81fdedf9f2 100644 --- a/java-batch/.OwlBot-hermetic.yaml +++ b/java-batch/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-batch/grpc-google-.*/src" - "/java-batch/proto-google-.*/src" -- "/java-batch/google-.*/src/main" -- "/java-batch/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-batch/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-batch/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-batch/google-.*/src" - "/java-batch/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/batch/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-batch/$1/proto-google-cloud-batch-$1/src" - source: "/google/cloud/batch/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-batch/$1/grpc-google-cloud-batch-$1/src" -- source: "/google/cloud/batch/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-batch/$1/google-cloud-batch/src/main" +- source: "/google/cloud/batch/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-batch/$1/google-cloud-batch/src" - source: "/google/cloud/batch/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-batch/$1/samples/snippets/generated" diff --git a/java-beyondcorp-appconnections/.OwlBot-hermetic.yaml b/java-beyondcorp-appconnections/.OwlBot-hermetic.yaml index c42b0a47b493..86bae36e4272 100644 --- a/java-beyondcorp-appconnections/.OwlBot-hermetic.yaml +++ b/java-beyondcorp-appconnections/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-beyondcorp-appconnections/grpc-google-.*/src" - "/java-beyondcorp-appconnections/proto-google-.*/src" -- "/java-beyondcorp-appconnections/google-.*/src/main" -- "/java-beyondcorp-appconnections/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-beyondcorp-appconnections/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-beyondcorp-appconnections/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-beyondcorp-appconnections/google-.*/src" - "/java-beyondcorp-appconnections/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/beyondcorp/appconnections/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-appconnections/$1/proto-google-cloud-beyondcorp-appconnections-$1/src" - source: "/google/cloud/beyondcorp/appconnections/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-appconnections/$1/grpc-google-cloud-beyondcorp-appconnections-$1/src" -- source: "/google/cloud/beyondcorp/appconnections/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-beyondcorp-appconnections/$1/google-cloud-beyondcorp-appconnections/src/main" +- source: "/google/cloud/beyondcorp/appconnections/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-beyondcorp-appconnections/$1/google-cloud-beyondcorp-appconnections/src" - source: "/google/cloud/beyondcorp/appconnections/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-beyondcorp-appconnections/$1/samples/snippets/generated" diff --git a/java-beyondcorp-appconnectors/.OwlBot-hermetic.yaml b/java-beyondcorp-appconnectors/.OwlBot-hermetic.yaml index 23aade4fbeb2..6f98f29fe8a5 100644 --- a/java-beyondcorp-appconnectors/.OwlBot-hermetic.yaml +++ b/java-beyondcorp-appconnectors/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-beyondcorp-appconnectors/grpc-google-.*/src" - "/java-beyondcorp-appconnectors/proto-google-.*/src" -- "/java-beyondcorp-appconnectors/google-.*/src/main" -- "/java-beyondcorp-appconnectors/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-beyondcorp-appconnectors/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-beyondcorp-appconnectors/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-beyondcorp-appconnectors/google-.*/src" - "/java-beyondcorp-appconnectors/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/beyondcorp/appconnectors/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-appconnectors/$1/proto-google-cloud-beyondcorp-appconnectors-$1/src" - source: "/google/cloud/beyondcorp/appconnectors/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-appconnectors/$1/grpc-google-cloud-beyondcorp-appconnectors-$1/src" -- source: "/google/cloud/beyondcorp/appconnectors/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-beyondcorp-appconnectors/$1/google-cloud-beyondcorp-appconnectors/src/main" +- source: "/google/cloud/beyondcorp/appconnectors/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-beyondcorp-appconnectors/$1/google-cloud-beyondcorp-appconnectors/src" - source: "/google/cloud/beyondcorp/appconnectors/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-beyondcorp-appconnectors/$1/samples/snippets/generated" diff --git a/java-beyondcorp-appgateways/.OwlBot-hermetic.yaml b/java-beyondcorp-appgateways/.OwlBot-hermetic.yaml index ae803c297d4b..fff966a5f049 100644 --- a/java-beyondcorp-appgateways/.OwlBot-hermetic.yaml +++ b/java-beyondcorp-appgateways/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-beyondcorp-appgateways/grpc-google-.*/src" - "/java-beyondcorp-appgateways/proto-google-.*/src" -- "/java-beyondcorp-appgateways/google-.*/src/main" -- "/java-beyondcorp-appgateways/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-beyondcorp-appgateways/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-beyondcorp-appgateways/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-beyondcorp-appgateways/google-.*/src" - "/java-beyondcorp-appgateways/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/beyondcorp/appgateways/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-appgateways/$1/proto-google-cloud-beyondcorp-appgateways-$1/src" - source: "/google/cloud/beyondcorp/appgateways/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-appgateways/$1/grpc-google-cloud-beyondcorp-appgateways-$1/src" -- source: "/google/cloud/beyondcorp/appgateways/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-beyondcorp-appgateways/$1/google-cloud-beyondcorp-appgateways/src/main" +- source: "/google/cloud/beyondcorp/appgateways/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-beyondcorp-appgateways/$1/google-cloud-beyondcorp-appgateways/src" - source: "/google/cloud/beyondcorp/appgateways/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-beyondcorp-appgateways/$1/samples/snippets/generated" diff --git a/java-beyondcorp-clientconnectorservices/.OwlBot-hermetic.yaml b/java-beyondcorp-clientconnectorservices/.OwlBot-hermetic.yaml index 234121a74384..948ce1b9f5fd 100644 --- a/java-beyondcorp-clientconnectorservices/.OwlBot-hermetic.yaml +++ b/java-beyondcorp-clientconnectorservices/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-beyondcorp-clientconnectorservices/grpc-google-.*/src" - "/java-beyondcorp-clientconnectorservices/proto-google-.*/src" -- "/java-beyondcorp-clientconnectorservices/google-.*/src/main" -- "/java-beyondcorp-clientconnectorservices/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-beyondcorp-clientconnectorservices/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-beyondcorp-clientconnectorservices/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-beyondcorp-clientconnectorservices/google-.*/src" - "/java-beyondcorp-clientconnectorservices/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/beyondcorp/clientconnectorservices/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-clientconnectorservices/$1/proto-google-cloud-beyondcorp-clientconnectorservices-$1/src" - source: "/google/cloud/beyondcorp/clientconnectorservices/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-clientconnectorservices/$1/grpc-google-cloud-beyondcorp-clientconnectorservices-$1/src" -- source: "/google/cloud/beyondcorp/clientconnectorservices/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-beyondcorp-clientconnectorservices/$1/google-cloud-beyondcorp-clientconnectorservices/src/main" +- source: "/google/cloud/beyondcorp/clientconnectorservices/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-beyondcorp-clientconnectorservices/$1/google-cloud-beyondcorp-clientconnectorservices/src" - source: "/google/cloud/beyondcorp/clientconnectorservices/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-beyondcorp-clientconnectorservices/$1/samples/snippets/generated" diff --git a/java-beyondcorp-clientgateways/.OwlBot-hermetic.yaml b/java-beyondcorp-clientgateways/.OwlBot-hermetic.yaml index 0c3466eea465..6957323522d7 100644 --- a/java-beyondcorp-clientgateways/.OwlBot-hermetic.yaml +++ b/java-beyondcorp-clientgateways/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-beyondcorp-clientgateways/grpc-google-.*/src" - "/java-beyondcorp-clientgateways/proto-google-.*/src" -- "/java-beyondcorp-clientgateways/google-.*/src/main" -- "/java-beyondcorp-clientgateways/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-beyondcorp-clientgateways/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-beyondcorp-clientgateways/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-beyondcorp-clientgateways/google-.*/src" - "/java-beyondcorp-clientgateways/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/beyondcorp/clientgateways/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-clientgateways/$1/proto-google-cloud-beyondcorp-clientgateways-$1/src" - source: "/google/cloud/beyondcorp/clientgateways/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-beyondcorp-clientgateways/$1/grpc-google-cloud-beyondcorp-clientgateways-$1/src" -- source: "/google/cloud/beyondcorp/clientgateways/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-beyondcorp-clientgateways/$1/google-cloud-beyondcorp-clientgateways/src/main" +- source: "/google/cloud/beyondcorp/clientgateways/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-beyondcorp-clientgateways/$1/google-cloud-beyondcorp-clientgateways/src" - source: "/google/cloud/beyondcorp/clientgateways/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-beyondcorp-clientgateways/$1/samples/snippets/generated" diff --git a/java-biglake/.OwlBot-hermetic.yaml b/java-biglake/.OwlBot-hermetic.yaml index c134b76bcccb..10bf0a32e29f 100644 --- a/java-biglake/.OwlBot-hermetic.yaml +++ b/java-biglake/.OwlBot-hermetic.yaml @@ -16,37 +16,36 @@ deep-remove-regex: - "/java-biglake/grpc-google-.*/src" - "/java-biglake/proto-google-.*/src" -- "/java-biglake/google-.*/src/main" -- "/java-biglake/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-biglake/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-biglake/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-biglake/google-.*/src" - "/java-biglake/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/bigquery/biglake/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-biglake/$1/proto-google-cloud-biglake-$1/src" - source: "/google/cloud/bigquery/biglake/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-biglake/$1/grpc-google-cloud-biglake-$1/src" -- source: "/google/cloud/bigquery/biglake/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-biglake/$1/google-cloud-biglake/src/main" +- source: "/google/cloud/bigquery/biglake/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-biglake/$1/google-cloud-biglake/src" - source: "/google/cloud/bigquery/biglake/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-biglake/$1/samples/snippets/generated" - source: "/google/cloud/biglake/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-biglake/$1/proto-google-cloud-biglake-$1/src" - source: "/google/cloud/biglake/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-biglake/$1/grpc-google-cloud-biglake-$1/src" -- source: "/google/cloud/biglake/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-biglake/$1/google-cloud-biglake/src/main" +- source: "/google/cloud/biglake/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-biglake/$1/google-cloud-biglake/src" - source: "/google/cloud/biglake/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-biglake/$1/samples/snippets/generated" - source: "/google/cloud/biglake/hive/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-biglake/$1/proto-google-cloud-biglake-$1/src" - source: "/google/cloud/biglake/hive/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-biglake/$1/grpc-google-cloud-biglake-$1/src" -- source: "/google/cloud/biglake/hive/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-biglake/$1/google-cloud-biglake/src/main" +- source: "/google/cloud/biglake/hive/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-biglake/$1/google-cloud-biglake/src" - source: "/google/cloud/biglake/hive/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-biglake/$1/samples/snippets/generated" diff --git a/java-bigquery-data-exchange/.OwlBot-hermetic.yaml b/java-bigquery-data-exchange/.OwlBot-hermetic.yaml index 78b0459d7966..005fdb14c886 100644 --- a/java-bigquery-data-exchange/.OwlBot-hermetic.yaml +++ b/java-bigquery-data-exchange/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-bigquery-data-exchange/grpc-google-.*/src" - "/java-bigquery-data-exchange/proto-google-.*/src" -- "/java-bigquery-data-exchange/google-.*/src/main" -- "/java-bigquery-data-exchange/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-bigquery-data-exchange/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-bigquery-data-exchange/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-bigquery-data-exchange/google-.*/src" - "/java-bigquery-data-exchange/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/bigquery/dataexchange/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-bigquery-data-exchange/$1/proto-google-cloud-bigquery-data-exchange-$1/src" - source: "/google/cloud/bigquery/dataexchange/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-bigquery-data-exchange/$1/grpc-google-cloud-bigquery-data-exchange-$1/src" -- source: "/google/cloud/bigquery/dataexchange/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-bigquery-data-exchange/$1/google-cloud-bigquery-data-exchange/src/main" +- source: "/google/cloud/bigquery/dataexchange/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-bigquery-data-exchange/$1/google-cloud-bigquery-data-exchange/src" - source: "/google/cloud/bigquery/dataexchange/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-bigquery-data-exchange/$1/samples/snippets/generated" diff --git a/java-bigqueryconnection/.OwlBot-hermetic.yaml b/java-bigqueryconnection/.OwlBot-hermetic.yaml index e98fd0c99c26..d6052c29351b 100644 --- a/java-bigqueryconnection/.OwlBot-hermetic.yaml +++ b/java-bigqueryconnection/.OwlBot-hermetic.yaml @@ -16,23 +16,20 @@ deep-remove-regex: - "/java-bigqueryconnection/grpc-google-.*/src" - "/java-bigqueryconnection/proto-google-.*/src" -- "/java-bigqueryconnection/google-.*/src/main" -- "/java-bigqueryconnection/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-bigqueryconnection/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-bigqueryconnection/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-bigqueryconnection/google-.*/src" - "/java-bigqueryconnection/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-bigqueryconnection/src/test/java/com/google/.*/bigqueryconnection/v.*/it/ITSystemTest.java" +- "/.*google-cloud-bigqueryconnection/src/test/java/com/google/cloud/bigqueryconnection/v.*/it/ITSystemTest.java" deep-copy-regex: - source: "/google/cloud/bigquery/connection/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-bigqueryconnection/$1/proto-google-cloud-bigqueryconnection-$1/src" - source: "/google/cloud/bigquery/connection/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-bigqueryconnection/$1/grpc-google-cloud-bigqueryconnection-$1/src" -- source: "/google/cloud/bigquery/connection/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-bigqueryconnection/$1/google-cloud-bigqueryconnection/src/main" +- source: "/google/cloud/bigquery/connection/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-bigqueryconnection/$1/google-cloud-bigqueryconnection/src" - source: "/google/cloud/bigquery/connection/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-bigqueryconnection/$1/samples/snippets/generated" diff --git a/java-bigquerydatapolicy/.OwlBot-hermetic.yaml b/java-bigquerydatapolicy/.OwlBot-hermetic.yaml index 1238c65a2a65..898f10fa75bc 100644 --- a/java-bigquerydatapolicy/.OwlBot-hermetic.yaml +++ b/java-bigquerydatapolicy/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-bigquerydatapolicy/grpc-google-.*/src" - "/java-bigquerydatapolicy/proto-google-.*/src" -- "/java-bigquerydatapolicy/google-.*/src/main" -- "/java-bigquerydatapolicy/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-bigquerydatapolicy/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-bigquerydatapolicy/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-bigquerydatapolicy/google-.*/src" - "/java-bigquerydatapolicy/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/bigquery/datapolicies/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-bigquerydatapolicy/$1/proto-google-cloud-bigquerydatapolicy-$1/src" - source: "/google/cloud/bigquery/datapolicies/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-bigquerydatapolicy/$1/grpc-google-cloud-bigquerydatapolicy-$1/src" -- source: "/google/cloud/bigquery/datapolicies/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-bigquerydatapolicy/$1/google-cloud-bigquerydatapolicy/src/main" +- source: "/google/cloud/bigquery/datapolicies/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-bigquerydatapolicy/$1/google-cloud-bigquerydatapolicy/src" - source: "/google/cloud/bigquery/datapolicies/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-bigquerydatapolicy/$1/samples/snippets/generated" diff --git a/java-bigquerydatatransfer/.OwlBot-hermetic.yaml b/java-bigquerydatatransfer/.OwlBot-hermetic.yaml index c3124bbdd696..c0bf7ba29614 100644 --- a/java-bigquerydatatransfer/.OwlBot-hermetic.yaml +++ b/java-bigquerydatatransfer/.OwlBot-hermetic.yaml @@ -16,10 +16,7 @@ deep-remove-regex: - "/java-bigquerydatatransfer/grpc-google-.*/src" - "/java-bigquerydatatransfer/proto-google-.*/src" -- "/java-bigquerydatatransfer/google-.*/src/main" -- "/java-bigquerydatatransfer/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-bigquerydatatransfer/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-bigquerydatatransfer/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-bigquerydatatransfer/google-.*/src" - "/java-bigquerydatatransfer/samples/snippets/generated" deep-preserve-regex: @@ -31,8 +28,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-bigquerydatatransfer/$1/proto-google-cloud-bigquerydatatransfer-$1/src" - source: "/google/cloud/bigquery/datatransfer/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-bigquerydatatransfer/$1/grpc-google-cloud-bigquerydatatransfer-$1/src" -- source: "/google/cloud/bigquery/datatransfer/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-bigquerydatatransfer/$1/google-cloud-bigquerydatatransfer/src/main" +- source: "/google/cloud/bigquery/datatransfer/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-bigquerydatatransfer/$1/google-cloud-bigquerydatatransfer/src" - source: "/google/cloud/bigquery/datatransfer/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-bigquerydatatransfer/$1/samples/snippets/generated" diff --git a/java-bigquerymigration/.OwlBot-hermetic.yaml b/java-bigquerymigration/.OwlBot-hermetic.yaml index c08d04a0f142..baea5d9e7b20 100644 --- a/java-bigquerymigration/.OwlBot-hermetic.yaml +++ b/java-bigquerymigration/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-bigquerymigration/grpc-google-.*/src" - "/java-bigquerymigration/proto-google-.*/src" -- "/java-bigquerymigration/google-.*/src/main" -- "/java-bigquerymigration/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-bigquerymigration/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-bigquerymigration/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-bigquerymigration/google-.*/src" - "/java-bigquerymigration/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/bigquery/migration/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-bigquerymigration/$1/proto-google-cloud-bigquerymigration-$1/src" - source: "/google/cloud/bigquery/migration/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-bigquerymigration/$1/grpc-google-cloud-bigquerymigration-$1/src" -- source: "/google/cloud/bigquery/migration/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-bigquerymigration/$1/google-cloud-bigquerymigration/src/main" +- source: "/google/cloud/bigquery/migration/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-bigquerymigration/$1/google-cloud-bigquerymigration/src" - source: "/google/cloud/bigquery/migration/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-bigquerymigration/$1/samples/snippets/generated" diff --git a/java-bigqueryreservation/.OwlBot-hermetic.yaml b/java-bigqueryreservation/.OwlBot-hermetic.yaml index cd2da41ba7b1..ba21b8d461a9 100644 --- a/java-bigqueryreservation/.OwlBot-hermetic.yaml +++ b/java-bigqueryreservation/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-bigqueryreservation/grpc-google-.*/src" - "/java-bigqueryreservation/proto-google-.*/src" -- "/java-bigqueryreservation/google-.*/src/main" -- "/java-bigqueryreservation/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-bigqueryreservation/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-bigqueryreservation/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-bigqueryreservation/google-.*/src" - "/java-bigqueryreservation/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/bigquery/reservation/(v\\d)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-bigqueryreservation/$1/proto-google-cloud-bigqueryreservation-$1/src" - source: "/google/cloud/bigquery/reservation/(v\\d)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-bigqueryreservation/$1/grpc-google-cloud-bigqueryreservation-$1/src" -- source: "/google/cloud/bigquery/reservation/(v\\d)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-bigqueryreservation/$1/google-cloud-bigqueryreservation/src/main" +- source: "/google/cloud/bigquery/reservation/(v\\d)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-bigqueryreservation/$1/google-cloud-bigqueryreservation/src" - source: "/google/cloud/bigquery/reservation/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-bigqueryreservation/$1/samples/snippets/generated" diff --git a/java-billing/.OwlBot-hermetic.yaml b/java-billing/.OwlBot-hermetic.yaml index b10e441a274d..1a8f34f3d240 100644 --- a/java-billing/.OwlBot-hermetic.yaml +++ b/java-billing/.OwlBot-hermetic.yaml @@ -14,7 +14,7 @@ deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-billing/src/test/java/com/google/.*/billing/v1/CloudBillingClientHttpJsonTest.java" +- "/.*google-cloud-billing/src/test/java/com/google/cloud/billing/v1/CloudBillingClientHttpJsonTest.java" deep-remove-regex: - "/.*samples/snippets/generated" @@ -27,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-billing/$1/proto-google-cloud-billing-$1/src" - source: "/google/cloud/billing/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-billing/$1/grpc-google-cloud-billing-$1/src" -- source: "/google/cloud/billing/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-billing/$1/google-cloud-billing/src/main" +- source: "/google/cloud/billing/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-billing/$1/google-cloud-billing/src" - source: "/google/cloud/billing/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-billing/$1/samples/snippets/generated" diff --git a/java-billingbudgets/.OwlBot-hermetic.yaml b/java-billingbudgets/.OwlBot-hermetic.yaml index 94a1eec50c8d..631ac7657913 100644 --- a/java-billingbudgets/.OwlBot-hermetic.yaml +++ b/java-billingbudgets/.OwlBot-hermetic.yaml @@ -16,10 +16,7 @@ deep-remove-regex: - "/java-billingbudgets/grpc-google-.*/src" - "/java-billingbudgets/proto-google-.*/src" -- "/java-billingbudgets/google-.*/src/main" -- "/java-billingbudgets/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-billingbudgets/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-billingbudgets/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-billingbudgets/google-.*/src" - "/java-billingbudgets/samples/snippets/generated" deep-preserve-regex: @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-billingbudgets/$1/proto-google-cloud-billingbudgets-$1/src" - source: "/google/cloud/billing/budgets/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-billingbudgets/$1/grpc-google-cloud-billingbudgets-$1/src" -- source: "/google/cloud/billing/budgets/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-billingbudgets/$1/google-cloud-billingbudgets/src/main" +- source: "/google/cloud/billing/budgets/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-billingbudgets/$1/google-cloud-billingbudgets/src" - source: "/google/cloud/billing/budgets/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-billingbudgets/$1/samples/snippets/generated" diff --git a/java-binary-authorization/.OwlBot-hermetic.yaml b/java-binary-authorization/.OwlBot-hermetic.yaml index 0d64af8bb3cf..183a5108d700 100644 --- a/java-binary-authorization/.OwlBot-hermetic.yaml +++ b/java-binary-authorization/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-binary-authorization/samples/snippets/generated" - "/java-binary-authorization/grpc-google-.*/src" - "/java-binary-authorization/proto-google-.*/src" -- "/java-binary-authorization/google-.*/src/main" -- "/java-binary-authorization/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-binary-authorization/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-binary-authorization/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-binary-authorization/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-binary-authorization/$1/proto-google-cloud-binary-authorization-$1/src" - source: "/google/cloud/binaryauthorization/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-binary-authorization/$1/grpc-google-cloud-binary-authorization-$1/src" -- source: "/google/cloud/binaryauthorization/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-binary-authorization/$1/google-cloud-binary-authorization/src/main" +- source: "/google/cloud/binaryauthorization/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-binary-authorization/$1/google-cloud-binary-authorization/src" - source: "/google/cloud/binaryauthorization/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-binary-authorization/$1/samples/snippets/generated" diff --git a/java-capacityplanner/.OwlBot-hermetic.yaml b/java-capacityplanner/.OwlBot-hermetic.yaml index 58d1a917b29e..bcb7c405fdc9 100644 --- a/java-capacityplanner/.OwlBot-hermetic.yaml +++ b/java-capacityplanner/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-capacityplanner/grpc-google-.*/src" - "/java-capacityplanner/proto-google-.*/src" -- "/java-capacityplanner/google-.*/src/main" -- "/java-capacityplanner/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-capacityplanner/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-capacityplanner/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-capacityplanner/google-.*/src" - "/java-capacityplanner/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/capacityplanner/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-capacityplanner/$1/proto-google-cloud-capacityplanner-$1/src" - source: "/google/cloud/capacityplanner/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-capacityplanner/$1/grpc-google-cloud-capacityplanner-$1/src" -- source: "/google/cloud/capacityplanner/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-capacityplanner/$1/google-cloud-capacityplanner/src/main" +- source: "/google/cloud/capacityplanner/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-capacityplanner/$1/google-cloud-capacityplanner/src" - source: "/google/cloud/capacityplanner/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-capacityplanner/$1/samples/snippets/generated" diff --git a/java-certificate-manager/.OwlBot-hermetic.yaml b/java-certificate-manager/.OwlBot-hermetic.yaml index e9fd8075c1d7..04bea2c9343a 100644 --- a/java-certificate-manager/.OwlBot-hermetic.yaml +++ b/java-certificate-manager/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-certificate-manager/samples/snippets/generated" - "/java-certificate-manager/grpc-google-.*/src" - "/java-certificate-manager/proto-google-.*/src" -- "/java-certificate-manager/google-.*/src/main" -- "/java-certificate-manager/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-certificate-manager/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-certificate-manager/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-certificate-manager/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/certificatemanager/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-certificate-manager/$1/proto-google-cloud-certificate-manager-$1/src" - source: "/google/cloud/certificatemanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-certificate-manager/$1/grpc-google-cloud-certificate-manager-$1/src" -- source: "/google/cloud/certificatemanager/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-certificate-manager/$1/google-cloud-certificate-manager/src/main" +- source: "/google/cloud/certificatemanager/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-certificate-manager/$1/google-cloud-certificate-manager/src" - source: "/google/cloud/certificatemanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-certificate-manager/$1/samples/snippets/generated" diff --git a/java-ces/.OwlBot-hermetic.yaml b/java-ces/.OwlBot-hermetic.yaml index beaf6b683909..44ecb82fb0c8 100644 --- a/java-ces/.OwlBot-hermetic.yaml +++ b/java-ces/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-ces/grpc-google-.*/src" - "/java-ces/proto-google-.*/src" -- "/java-ces/google-.*/src/main" -- "/java-ces/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-ces/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-ces/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-ces/google-.*/src" - "/java-ces/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/ces/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-ces/$1/proto-google-cloud-ces-$1/src" - source: "/google/cloud/ces/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-ces/$1/grpc-google-cloud-ces-$1/src" -- source: "/google/cloud/ces/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-ces/$1/google-cloud-ces/src/main" +- source: "/google/cloud/ces/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-ces/$1/google-cloud-ces/src" - source: "/google/cloud/ces/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-ces/$1/samples/snippets/generated" diff --git a/java-channel/.OwlBot-hermetic.yaml b/java-channel/.OwlBot-hermetic.yaml index 8bf0c164fec9..66e0acb60968 100644 --- a/java-channel/.OwlBot-hermetic.yaml +++ b/java-channel/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-channel/samples/snippets/generated" - "/java-channel/grpc-google-.*/src" - "/java-channel/proto-google-.*/src" -- "/java-channel/google-.*/src/main" -- "/java-channel/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-channel/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-channel/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-channel/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-channel/$1/proto-google-cloud-channel-$1/src" - source: "/google/cloud/channel/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-channel/$1/grpc-google-cloud-channel-$1/src" -- source: "/google/cloud/channel/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-channel/$1/google-cloud-channel/src/main" +- source: "/google/cloud/channel/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-channel/$1/google-cloud-channel/src" - source: "/google/cloud/channel/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-channel/$1/samples/snippets/generated" diff --git a/java-chat/.OwlBot-hermetic.yaml b/java-chat/.OwlBot-hermetic.yaml index cc0d8b4ae4e1..de8208b2b3e7 100644 --- a/java-chat/.OwlBot-hermetic.yaml +++ b/java-chat/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-chat/grpc-google-.*/src" - "/java-chat/proto-google-.*/src" -- "/java-chat/google-.*/src/main" -- "/java-chat/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-chat/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-chat/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-chat/google-.*/src" - "/java-chat/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/chat/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-chat/$1/proto-google-cloud-chat-$1/src" - source: "/google/chat/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-chat/$1/grpc-google-cloud-chat-$1/src" -- source: "/google/chat/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-chat/$1/google-cloud-chat/src/main" +- source: "/google/chat/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-chat/$1/google-cloud-chat/src" - source: "/google/chat/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-chat/$1/samples/snippets/generated" diff --git a/java-chronicle/.OwlBot-hermetic.yaml b/java-chronicle/.OwlBot-hermetic.yaml index b82f9d0a8ec3..fc1783c6578d 100644 --- a/java-chronicle/.OwlBot-hermetic.yaml +++ b/java-chronicle/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-chronicle/grpc-google-.*/src" - "/java-chronicle/proto-google-.*/src" -- "/java-chronicle/google-.*/src/main" -- "/java-chronicle/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-chronicle/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-chronicle/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-chronicle/google-.*/src" - "/java-chronicle/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/chronicle/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-chronicle/$1/proto-google-cloud-chronicle-$1/src" - source: "/google/cloud/chronicle/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-chronicle/$1/grpc-google-cloud-chronicle-$1/src" -- source: "/google/cloud/chronicle/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-chronicle/$1/google-cloud-chronicle/src/main" +- source: "/google/cloud/chronicle/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-chronicle/$1/google-cloud-chronicle/src" - source: "/google/cloud/chronicle/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-chronicle/$1/samples/snippets/generated" diff --git a/java-cloudapiregistry/.OwlBot-hermetic.yaml b/java-cloudapiregistry/.OwlBot-hermetic.yaml index 09a63276b1be..562bd0c587d9 100644 --- a/java-cloudapiregistry/.OwlBot-hermetic.yaml +++ b/java-cloudapiregistry/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-cloudapiregistry/grpc-google-.*/src" - "/java-cloudapiregistry/proto-google-.*/src" -- "/java-cloudapiregistry/google-.*/src/main" -- "/java-cloudapiregistry/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-cloudapiregistry/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-cloudapiregistry/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-cloudapiregistry/google-.*/src" - "/java-cloudapiregistry/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/apiregistry/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-cloudapiregistry/$1/proto-google-cloud-cloudapiregistry-$1/src" - source: "/google/cloud/apiregistry/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-cloudapiregistry/$1/grpc-google-cloud-cloudapiregistry-$1/src" -- source: "/google/cloud/apiregistry/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-cloudapiregistry/$1/google-cloud-cloudapiregistry/src/main" +- source: "/google/cloud/apiregistry/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-cloudapiregistry/$1/google-cloud-cloudapiregistry/src" - source: "/google/cloud/apiregistry/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-cloudapiregistry/$1/samples/snippets/generated" diff --git a/java-cloudbuild/.OwlBot-hermetic.yaml b/java-cloudbuild/.OwlBot-hermetic.yaml index 31f97cd08949..1919c09ed6b5 100644 --- a/java-cloudbuild/.OwlBot-hermetic.yaml +++ b/java-cloudbuild/.OwlBot-hermetic.yaml @@ -16,10 +16,7 @@ deep-remove-regex: - "/java-cloudbuild/grpc-google-.*/src" - "/java-cloudbuild/proto-google-.*/src" -- "/java-cloudbuild/google-.*/src/main" -- "/java-cloudbuild/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-cloudbuild/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-cloudbuild/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-cloudbuild/google-.*/src" - "/java-cloudbuild/samples/snippets/generated" deep-preserve-regex: @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-cloudbuild/$1/proto-google-cloud-build-$1/src" - source: "/google/devtools/cloudbuild/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-cloudbuild/$1/grpc-google-cloud-build-$1/src" -- source: "/google/devtools/cloudbuild/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-cloudbuild/$1/google-cloud-build/src/main" +- source: "/google/devtools/cloudbuild/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-cloudbuild/$1/google-cloud-build/src" - source: "/google/devtools/cloudbuild/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-cloudbuild/$1/samples/snippets/generated" diff --git a/java-cloudcommerceconsumerprocurement/.OwlBot-hermetic.yaml b/java-cloudcommerceconsumerprocurement/.OwlBot-hermetic.yaml index ecf7dd448afc..9e14e5c32b11 100644 --- a/java-cloudcommerceconsumerprocurement/.OwlBot-hermetic.yaml +++ b/java-cloudcommerceconsumerprocurement/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-cloudcommerceconsumerprocurement/grpc-google-.*/src" - "/java-cloudcommerceconsumerprocurement/proto-google-.*/src" -- "/java-cloudcommerceconsumerprocurement/google-.*/src/main" -- "/java-cloudcommerceconsumerprocurement/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-cloudcommerceconsumerprocurement/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-cloudcommerceconsumerprocurement/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-cloudcommerceconsumerprocurement/google-.*/src" - "/java-cloudcommerceconsumerprocurement/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/commerce/consumer/procurement/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-cloudcommerceconsumerprocurement/$1/proto-google-cloud-cloudcommerceconsumerprocurement-$1/src" - source: "/google/cloud/commerce/consumer/procurement/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-cloudcommerceconsumerprocurement/$1/grpc-google-cloud-cloudcommerceconsumerprocurement-$1/src" -- source: "/google/cloud/commerce/consumer/procurement/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-cloudcommerceconsumerprocurement/$1/google-cloud-cloudcommerceconsumerprocurement/src/main" +- source: "/google/cloud/commerce/consumer/procurement/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-cloudcommerceconsumerprocurement/$1/google-cloud-cloudcommerceconsumerprocurement/src" - source: "/google/cloud/commerce/consumer/procurement/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-cloudcommerceconsumerprocurement/$1/samples/snippets/generated" diff --git a/java-cloudcontrolspartner/.OwlBot-hermetic.yaml b/java-cloudcontrolspartner/.OwlBot-hermetic.yaml index 378a5e8c717f..0e1f04bc5757 100644 --- a/java-cloudcontrolspartner/.OwlBot-hermetic.yaml +++ b/java-cloudcontrolspartner/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-cloudcontrolspartner/grpc-google-.*/src" - "/java-cloudcontrolspartner/proto-google-.*/src" -- "/java-cloudcontrolspartner/google-.*/src/main" -- "/java-cloudcontrolspartner/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-cloudcontrolspartner/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-cloudcontrolspartner/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-cloudcontrolspartner/google-.*/src" - "/java-cloudcontrolspartner/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/cloudcontrolspartner/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-cloudcontrolspartner/$1/proto-google-cloud-cloudcontrolspartner-$1/src" - source: "/google/cloud/cloudcontrolspartner/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-cloudcontrolspartner/$1/grpc-google-cloud-cloudcontrolspartner-$1/src" -- source: "/google/cloud/cloudcontrolspartner/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-cloudcontrolspartner/$1/google-cloud-cloudcontrolspartner/src/main" +- source: "/google/cloud/cloudcontrolspartner/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-cloudcontrolspartner/$1/google-cloud-cloudcontrolspartner/src" - source: "/google/cloud/cloudcontrolspartner/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-cloudcontrolspartner/$1/samples/snippets/generated" diff --git a/java-cloudquotas/.OwlBot-hermetic.yaml b/java-cloudquotas/.OwlBot-hermetic.yaml index 6311a33241a3..8bb2e51f829b 100644 --- a/java-cloudquotas/.OwlBot-hermetic.yaml +++ b/java-cloudquotas/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-cloudquotas/grpc-google-.*/src" - "/java-cloudquotas/proto-google-.*/src" -- "/java-cloudquotas/google-.*/src/main" -- "/java-cloudquotas/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-cloudquotas/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-cloudquotas/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-cloudquotas/google-.*/src" - "/java-cloudquotas/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/api/cloudquotas/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-cloudquotas/$1/proto-google-cloud-cloudquotas-$1/src" - source: "/google/api/cloudquotas/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-cloudquotas/$1/grpc-google-cloud-cloudquotas-$1/src" -- source: "/google/api/cloudquotas/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-cloudquotas/$1/google-cloud-cloudquotas/src/main" +- source: "/google/api/cloudquotas/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-cloudquotas/$1/google-cloud-cloudquotas/src" - source: "/google/api/cloudquotas/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-cloudquotas/$1/samples/snippets/generated" diff --git a/java-cloudsecuritycompliance/.OwlBot-hermetic.yaml b/java-cloudsecuritycompliance/.OwlBot-hermetic.yaml index 63a91a7ca9c0..0d2b2d4016bc 100644 --- a/java-cloudsecuritycompliance/.OwlBot-hermetic.yaml +++ b/java-cloudsecuritycompliance/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-cloudsecuritycompliance/grpc-google-.*/src" - "/java-cloudsecuritycompliance/proto-google-.*/src" -- "/java-cloudsecuritycompliance/google-.*/src/main" -- "/java-cloudsecuritycompliance/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-cloudsecuritycompliance/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-cloudsecuritycompliance/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-cloudsecuritycompliance/google-.*/src" - "/java-cloudsecuritycompliance/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/cloudsecuritycompliance/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-cloudsecuritycompliance/$1/proto-google-cloud-cloudsecuritycompliance-$1/src" - source: "/google/cloud/cloudsecuritycompliance/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-cloudsecuritycompliance/$1/grpc-google-cloud-cloudsecuritycompliance-$1/src" -- source: "/google/cloud/cloudsecuritycompliance/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-cloudsecuritycompliance/$1/google-cloud-cloudsecuritycompliance/src/main" +- source: "/google/cloud/cloudsecuritycompliance/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-cloudsecuritycompliance/$1/google-cloud-cloudsecuritycompliance/src" - source: "/google/cloud/cloudsecuritycompliance/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-cloudsecuritycompliance/$1/samples/snippets/generated" diff --git a/java-cloudsupport/.OwlBot-hermetic.yaml b/java-cloudsupport/.OwlBot-hermetic.yaml index 2bf7005efebd..3ce84c43fc48 100644 --- a/java-cloudsupport/.OwlBot-hermetic.yaml +++ b/java-cloudsupport/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-cloudsupport/grpc-google-.*/src" - "/java-cloudsupport/proto-google-.*/src" -- "/java-cloudsupport/google-.*/src/main" -- "/java-cloudsupport/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-cloudsupport/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-cloudsupport/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-cloudsupport/google-.*/src" - "/java-cloudsupport/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/support/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-cloudsupport/$1/proto-google-cloud-cloudsupport-$1/src" - source: "/google/cloud/support/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-cloudsupport/$1/grpc-google-cloud-cloudsupport-$1/src" -- source: "/google/cloud/support/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-cloudsupport/$1/google-cloud-cloudsupport/src/main" +- source: "/google/cloud/support/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-cloudsupport/$1/google-cloud-cloudsupport/src" - source: "/google/cloud/support/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-cloudsupport/$1/samples/snippets/generated" diff --git a/java-common-protos/.OwlBot-hermetic.yaml b/java-common-protos/.OwlBot-hermetic.yaml index 551b4e933f5c..1aed221695fa 100644 --- a/java-common-protos/.OwlBot-hermetic.yaml +++ b/java-common-protos/.OwlBot-hermetic.yaml @@ -16,12 +16,11 @@ deep-remove-regex: - "/java-common-protos/grpc-google-.*/src" - "/java-common-protos/proto-google-.*/src" -- "/java-common-protos/google-.*/src/main" -- "/java-common-protos/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-common-protos/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-common-protos/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-common-protos/google-.*/src" deep-preserve-regex: +- "/java-common-protos/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/api/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-common-protos/v1/proto-google-common-protos/src" diff --git a/java-compute/.OwlBot-hermetic.yaml b/java-compute/.OwlBot-hermetic.yaml index dd83e1e1c7ed..74f604a9b21a 100644 --- a/java-compute/.OwlBot-hermetic.yaml +++ b/java-compute/.OwlBot-hermetic.yaml @@ -15,21 +15,19 @@ deep-remove-regex: - "/java-compute/proto-google-.*/src" -- "/java-compute/google-.*/src/main" -- "/java-compute/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-compute/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-compute/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-compute/google-.*/src" - "/java-compute/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-compute/src/test/java/com/google/.*/compute/v1/integration" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-compute/src/test/java/com/google/cloud/compute/v1/integration" deep-copy-regex: - source: "/google/cloud/compute/(v\\d)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-compute/$1/proto-google-cloud-compute-$1/src" -- source: "/google/cloud/compute/(v\\d)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-compute/$1/google-cloud-compute/src/main" +- source: "/google/cloud/compute/(v\\d)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-compute/$1/google-cloud-compute/src" - source: "/google/cloud/compute/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-compute/$1/samples/snippets/generated" diff --git a/java-confidentialcomputing/.OwlBot-hermetic.yaml b/java-confidentialcomputing/.OwlBot-hermetic.yaml index b09bd425cb4b..dc26501de170 100644 --- a/java-confidentialcomputing/.OwlBot-hermetic.yaml +++ b/java-confidentialcomputing/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-confidentialcomputing/grpc-google-.*/src" - "/java-confidentialcomputing/proto-google-.*/src" -- "/java-confidentialcomputing/google-.*/src/main" -- "/java-confidentialcomputing/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-confidentialcomputing/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-confidentialcomputing/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-confidentialcomputing/google-.*/src" - "/java-confidentialcomputing/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/confidentialcomputing/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-confidentialcomputing/$1/proto-google-cloud-confidentialcomputing-$1/src" - source: "/google/cloud/confidentialcomputing/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-confidentialcomputing/$1/grpc-google-cloud-confidentialcomputing-$1/src" -- source: "/google/cloud/confidentialcomputing/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-confidentialcomputing/$1/google-cloud-confidentialcomputing/src/main" +- source: "/google/cloud/confidentialcomputing/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-confidentialcomputing/$1/google-cloud-confidentialcomputing/src" - source: "/google/cloud/confidentialcomputing/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-confidentialcomputing/$1/samples/snippets/generated" diff --git a/java-configdelivery/.OwlBot-hermetic.yaml b/java-configdelivery/.OwlBot-hermetic.yaml index c5e4c9d3ea8c..d68c796dde71 100644 --- a/java-configdelivery/.OwlBot-hermetic.yaml +++ b/java-configdelivery/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-configdelivery/grpc-google-.*/src" - "/java-configdelivery/proto-google-.*/src" -- "/java-configdelivery/google-.*/src/main" -- "/java-configdelivery/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-configdelivery/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-configdelivery/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-configdelivery/google-.*/src" - "/java-configdelivery/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/configdelivery/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-configdelivery/$1/proto-google-cloud-configdelivery-$1/src" - source: "/google/cloud/configdelivery/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-configdelivery/$1/grpc-google-cloud-configdelivery-$1/src" -- source: "/google/cloud/configdelivery/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-configdelivery/$1/google-cloud-configdelivery/src/main" +- source: "/google/cloud/configdelivery/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-configdelivery/$1/google-cloud-configdelivery/src" - source: "/google/cloud/configdelivery/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-configdelivery/$1/samples/snippets/generated" diff --git a/java-connectgateway/.OwlBot-hermetic.yaml b/java-connectgateway/.OwlBot-hermetic.yaml index c22c078048ff..d4cd3aa8603d 100644 --- a/java-connectgateway/.OwlBot-hermetic.yaml +++ b/java-connectgateway/.OwlBot-hermetic.yaml @@ -15,19 +15,18 @@ deep-remove-regex: - "/java-connectgateway/proto-google-.*/src" -- "/java-connectgateway/google-.*/src/main" -- "/java-connectgateway/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-connectgateway/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-connectgateway/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-connectgateway/google-.*/src" - "/java-connectgateway/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/gkeconnect/gateway/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-connectgateway/$1/proto-google-cloud-connectgateway-$1/src" -- source: "/google/cloud/gkeconnect/gateway/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-connectgateway/$1/google-cloud-connectgateway/src/main" +- source: "/google/cloud/gkeconnect/gateway/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-connectgateway/$1/google-cloud-connectgateway/src" - source: "/google/cloud/gkeconnect/gateway/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-connectgateway/$1/samples/snippets/generated" diff --git a/java-contact-center-insights/.OwlBot-hermetic.yaml b/java-contact-center-insights/.OwlBot-hermetic.yaml index 424056a742d4..edf370f767b7 100644 --- a/java-contact-center-insights/.OwlBot-hermetic.yaml +++ b/java-contact-center-insights/.OwlBot-hermetic.yaml @@ -16,10 +16,7 @@ deep-remove-regex: - "/java-contact-center-insights/grpc-google-.*/src" - "/java-contact-center-insights/proto-google-.*/src" -- "/java-contact-center-insights/google-.*/src/main" -- "/java-contact-center-insights/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-contact-center-insights/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-contact-center-insights/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-contact-center-insights/google-.*/src" - "/java-contact-center-insights/samples/snippets/generated" deep-preserve-regex: @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-contact-center-insights/$1/proto-google-cloud-contact-center-insights-$1/src" - source: "/google/cloud/contactcenterinsights/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-contact-center-insights/$1/grpc-google-cloud-contact-center-insights-$1/src" -- source: "/google/cloud/contactcenterinsights/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-contact-center-insights/$1/google-cloud-contact-center-insights/src/main" +- source: "/google/cloud/contactcenterinsights/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-contact-center-insights/$1/google-cloud-contact-center-insights/src" - source: "/google/cloud/contactcenterinsights/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-contact-center-insights/$1/samples/snippets/generated" diff --git a/java-container/.OwlBot-hermetic.yaml b/java-container/.OwlBot-hermetic.yaml index ee3451e7947b..8af14e8c8e41 100644 --- a/java-container/.OwlBot-hermetic.yaml +++ b/java-container/.OwlBot-hermetic.yaml @@ -16,25 +16,22 @@ deep-remove-regex: - "/java-container/grpc-google-.*/src" - "/java-container/proto-google-.*/src" -- "/java-container/google-.*/src/main" -- "/java-container/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-container/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-container/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-container/google-.*/src" - "/java-container/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" - "/.*google-cloud-container/src/main/java/com/google/cloud/container/v1/SampleApp.java" -- "/.*google-cloud-container/src/test/java/com/google/.*/container/v1/it/ITSystemTest.java" -- "/.*google-cloud-container/src/test/java/com/google/.*/container/v1/it/Util.java" +- "/.*google-cloud-container/src/test/java/com/google/cloud/container/v1/it/ITSystemTest.java" +- "/.*google-cloud-container/src/test/java/com/google/cloud/container/v1/it/Util.java" deep-copy-regex: - source: "/google/container/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-container/$1/proto-google-cloud-container-$1/src" - source: "/google/container/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-container/$1/grpc-google-cloud-container-$1/src" -- source: "/google/container/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-container/$1/google-cloud-container/src/main" +- source: "/google/container/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-container/$1/google-cloud-container/src" - source: "/google/container/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-container/$1/samples/snippets/generated" diff --git a/java-containeranalysis/.OwlBot-hermetic.yaml b/java-containeranalysis/.OwlBot-hermetic.yaml index 25839d98e712..8414051180a3 100644 --- a/java-containeranalysis/.OwlBot-hermetic.yaml +++ b/java-containeranalysis/.OwlBot-hermetic.yaml @@ -22,15 +22,16 @@ deep-remove-regex: deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*google-cloud-containeranalysis/src/main/java/com/google/cloud/devtools/containeranalysis/v1/GrafeasUtils.java" -- "/.*google-cloud-containeranalysis/src/test/java/com/google/.*/devtools/containeranalysis/v1/ITGrafeasInteropTest.java" +- "/.*google-cloud-containeranalysis/src/test/java/com/google/cloud/devtools/containeranalysis/v1/ITGrafeasInteropTest.java" deep-copy-regex: - source: "/google/devtools/containeranalysis/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-containeranalysis/$1/proto-google-cloud-containeranalysis-$1/src" - source: "/google/devtools/containeranalysis/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-containeranalysis/$1/grpc-google-cloud-containeranalysis-$1/src" -- source: "/google/devtools/containeranalysis/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-containeranalysis/$1/google-cloud-containeranalysis/src/main" +- source: "/google/devtools/containeranalysis/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-containeranalysis/$1/google-cloud-containeranalysis/src" api-name: containeranalysis diff --git a/java-contentwarehouse/.OwlBot-hermetic.yaml b/java-contentwarehouse/.OwlBot-hermetic.yaml index b57431c9826b..2d22d56f04b7 100644 --- a/java-contentwarehouse/.OwlBot-hermetic.yaml +++ b/java-contentwarehouse/.OwlBot-hermetic.yaml @@ -16,20 +16,19 @@ deep-remove-regex: - "/java-contentwarehouse/grpc-google-.*/src" - "/java-contentwarehouse/proto-google-.*/src" -- "/java-contentwarehouse/google-.*/src/main" -- "/java-contentwarehouse/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-contentwarehouse/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-contentwarehouse/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-contentwarehouse/google-.*/src" - "/java-contentwarehouse/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/contentwarehouse/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-contentwarehouse/$1/proto-google-cloud-contentwarehouse-$1/src" - source: "/google/cloud/contentwarehouse/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-contentwarehouse/$1/grpc-google-cloud-contentwarehouse-$1/src" -- source: "/google/cloud/contentwarehouse/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-contentwarehouse/$1/google-cloud-contentwarehouse/src/main" +- source: "/google/cloud/contentwarehouse/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-contentwarehouse/$1/google-cloud-contentwarehouse/src" - source: "/google/cloud/contentwarehouse/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-contentwarehouse/$1/samples/snippets/generated" diff --git a/java-data-fusion/.OwlBot-hermetic.yaml b/java-data-fusion/.OwlBot-hermetic.yaml index 6f681190498c..c841cc730970 100644 --- a/java-data-fusion/.OwlBot-hermetic.yaml +++ b/java-data-fusion/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-data-fusion/samples/snippets/generated" - "/java-data-fusion/grpc-google-.*/src" - "/java-data-fusion/proto-google-.*/src" -- "/java-data-fusion/google-.*/src/main" -- "/java-data-fusion/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-data-fusion/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-data-fusion/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-data-fusion/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/datafusion/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-data-fusion/$1/proto-google-cloud-data-fusion-$1/src" - source: "/google/cloud/datafusion/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-data-fusion/$1/grpc-google-cloud-data-fusion-$1/src" -- source: "/google/cloud/datafusion/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-data-fusion/$1/google-cloud-data-fusion/src/main" +- source: "/google/cloud/datafusion/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-data-fusion/$1/google-cloud-data-fusion/src" - source: "/google/cloud/datafusion/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-data-fusion/$1/samples/snippets/generated" diff --git a/java-databasecenter/.OwlBot-hermetic.yaml b/java-databasecenter/.OwlBot-hermetic.yaml index e6c9581f8c5e..bba598c45114 100644 --- a/java-databasecenter/.OwlBot-hermetic.yaml +++ b/java-databasecenter/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-databasecenter/grpc-google-.*/src" - "/java-databasecenter/proto-google-.*/src" -- "/java-databasecenter/google-.*/src/main" -- "/java-databasecenter/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-databasecenter/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-databasecenter/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-databasecenter/google-.*/src" - "/java-databasecenter/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/databasecenter/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-databasecenter/$1/proto-google-cloud-databasecenter-$1/src" - source: "/google/cloud/databasecenter/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-databasecenter/$1/grpc-google-cloud-databasecenter-$1/src" -- source: "/google/cloud/databasecenter/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-databasecenter/$1/google-cloud-databasecenter/src/main" +- source: "/google/cloud/databasecenter/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-databasecenter/$1/google-cloud-databasecenter/src" - source: "/google/cloud/databasecenter/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-databasecenter/$1/samples/snippets/generated" diff --git a/java-datacatalog/.OwlBot-hermetic.yaml b/java-datacatalog/.OwlBot-hermetic.yaml index dbb40cd65172..43aa06b891c7 100644 --- a/java-datacatalog/.OwlBot-hermetic.yaml +++ b/java-datacatalog/.OwlBot-hermetic.yaml @@ -17,14 +17,11 @@ deep-remove-regex: - "/java-datacatalog/samples/snippets/generated" - "/java-datacatalog/grpc-google-.*/src" - "/java-datacatalog/proto-google-.*/src" -- "/java-datacatalog/google-.*/src/main" -- "/java-datacatalog/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-datacatalog/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-datacatalog/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-datacatalog/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-datacatalog/src/test/java/com/google/.*/datacatalog/v1beta1/it/ITSystemTest.java" +- "/.*google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/it/ITSystemTest.java" - "/.*proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldName.java" deep-copy-regex: @@ -32,8 +29,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-datacatalog/$1/proto-google-cloud-datacatalog-$1/src" - source: "/google/cloud/datacatalog/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-datacatalog/$1/grpc-google-cloud-datacatalog-$1/src" -- source: "/google/cloud/datacatalog/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-datacatalog/$1/google-cloud-datacatalog/src/main" +- source: "/google/cloud/datacatalog/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-datacatalog/$1/google-cloud-datacatalog/src" - source: "/google/cloud/datacatalog/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-datacatalog/$1/samples/snippets/generated" diff --git a/java-dataflow/.OwlBot-hermetic.yaml b/java-dataflow/.OwlBot-hermetic.yaml index a432b0160c83..c33fd0a03d96 100644 --- a/java-dataflow/.OwlBot-hermetic.yaml +++ b/java-dataflow/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-dataflow/grpc-google-.*/src" - "/java-dataflow/proto-google-.*/src" -- "/java-dataflow/google-.*/src/main" -- "/java-dataflow/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-dataflow/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-dataflow/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-dataflow/google-.*/src" - "/java-dataflow/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/dataflow/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-dataflow/$1/proto-google-cloud-dataflow-$1/src" - source: "/google/dataflow/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-dataflow/$1/grpc-google-cloud-dataflow-$1/src" -- source: "/google/dataflow/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-dataflow/$1/google-cloud-dataflow/src/main" +- source: "/google/dataflow/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-dataflow/$1/google-cloud-dataflow/src" - source: "/google/dataflow/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-dataflow/$1/samples/snippets/generated" diff --git a/java-dataform/.OwlBot-hermetic.yaml b/java-dataform/.OwlBot-hermetic.yaml index acf744bd7999..34672662be20 100644 --- a/java-dataform/.OwlBot-hermetic.yaml +++ b/java-dataform/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-dataform/grpc-google-.*/src" - "/java-dataform/proto-google-.*/src" -- "/java-dataform/google-.*/src/main" -- "/java-dataform/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-dataform/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-dataform/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-dataform/google-.*/src" - "/java-dataform/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/dataform/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-dataform/$1/proto-google-cloud-dataform-$1/src" - source: "/google/cloud/dataform/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-dataform/$1/grpc-google-cloud-dataform-$1/src" -- source: "/google/cloud/dataform/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-dataform/$1/google-cloud-dataform/src/main" +- source: "/google/cloud/dataform/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-dataform/$1/google-cloud-dataform/src" - source: "/google/cloud/dataform/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-dataform/$1/samples/snippets/generated" diff --git a/java-datalabeling/.OwlBot-hermetic.yaml b/java-datalabeling/.OwlBot-hermetic.yaml index 998a180f8d72..43f523395142 100644 --- a/java-datalabeling/.OwlBot-hermetic.yaml +++ b/java-datalabeling/.OwlBot-hermetic.yaml @@ -17,15 +17,12 @@ deep-remove-regex: - "/java-datalabeling/samples/snippets/generated" - "/java-datalabeling/grpc-google-.*/src" - "/java-datalabeling/proto-google-.*/src" -- "/java-datalabeling/google-.*/src/main" -- "/java-datalabeling/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-datalabeling/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-datalabeling/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-datalabeling/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-datalabeling/src/test/java/com/google/.*/datalabeling/v1beta1/it/ITSystemTest.java" -- "/.*google-cloud-datalabeling/src/test/java/com/google/.*/datalabeling/it/ITSystemTest.java" +- "/.*google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/it/ITSystemTest.java" +- "/.*google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/it/ITSystemTest.java" deep-copy-regex: @@ -33,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-datalabeling/$1/proto-google-cloud-datalabeling-$1/src" - source: "/google/cloud/datalabeling/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-datalabeling/$1/grpc-google-cloud-datalabeling-$1/src" -- source: "/google/cloud/datalabeling/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-datalabeling/$1/google-cloud-datalabeling/src/main" +- source: "/google/cloud/datalabeling/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-datalabeling/$1/google-cloud-datalabeling/src" - source: "/google/cloud/datalabeling/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-datalabeling/$1/samples/snippets/generated" diff --git a/java-datalineage/.OwlBot-hermetic.yaml b/java-datalineage/.OwlBot-hermetic.yaml index 3c7eba1f1413..c4631c60d9fe 100644 --- a/java-datalineage/.OwlBot-hermetic.yaml +++ b/java-datalineage/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-datalineage/grpc-google-.*/src" - "/java-datalineage/proto-google-.*/src" -- "/java-datalineage/google-.*/src/main" -- "/java-datalineage/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-datalineage/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-datalineage/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-datalineage/google-.*/src" - "/java-datalineage/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/datacatalog/lineage/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-datalineage/$1/proto-google-cloud-datalineage-$1/src" - source: "/google/cloud/datacatalog/lineage/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-datalineage/$1/grpc-google-cloud-datalineage-$1/src" -- source: "/google/cloud/datacatalog/lineage/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-datalineage/$1/google-cloud-datalineage/src/main" +- source: "/google/cloud/datacatalog/lineage/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-datalineage/$1/google-cloud-datalineage/src" - source: "/google/cloud/datacatalog/lineage/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-datalineage/$1/samples/snippets/generated" # configmanagement @@ -38,8 +37,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-datalineage/$1/proto-google-cloud-datalineage-$1/src" - source: "/google/cloud/datacatalog/lineage/configmanagement/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-datalineage/$1/grpc-google-cloud-datalineage-$1/src" -- source: "/google/cloud/datacatalog/lineage/configmanagement/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-datalineage/$1/google-cloud-datalineage/src/main" +- source: "/google/cloud/datacatalog/lineage/configmanagement/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-datalineage/$1/google-cloud-datalineage/src" - source: "/google/cloud/datacatalog/lineage/configmanagement/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-datalineage/$1/samples/snippets/generated" diff --git a/java-datamanager/.OwlBot-hermetic.yaml b/java-datamanager/.OwlBot-hermetic.yaml index 03caae46a139..0973cb3788d4 100644 --- a/java-datamanager/.OwlBot-hermetic.yaml +++ b/java-datamanager/.OwlBot-hermetic.yaml @@ -21,15 +21,15 @@ deep-remove-regex: deep-preserve-regex: - "/.*data-manager.*/src/main/java/.*/stub/Version.java" -- "/.*data-manager.*/src/test/java/com/google/.*/v.*/it/IT.*Test.java" +- "/.*data-manager.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/ads/datamanager/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-datamanager/$1/proto-data-manager-$1/src" - source: "/google/ads/datamanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-datamanager/$1/grpc-data-manager-$1/src" -- source: "/google/ads/datamanager/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-datamanager/$1/data-manager/src/main" +- source: "/google/ads/datamanager/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-datamanager/$1/data-manager/src" - source: "/google/ads/datamanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-datamanager/$1/samples/snippets/generated" diff --git a/java-dataplex/.OwlBot-hermetic.yaml b/java-dataplex/.OwlBot-hermetic.yaml index aaf0608687c0..b868b48c0cd4 100644 --- a/java-dataplex/.OwlBot-hermetic.yaml +++ b/java-dataplex/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-dataplex/samples/snippets/generated" - "/java-dataplex/grpc-google-.*/src" - "/java-dataplex/proto-google-.*/src" -- "/java-dataplex/google-.*/src/main" -- "/java-dataplex/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-dataplex/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-dataplex/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-dataplex/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/dataplex/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-dataplex/$1/proto-google-cloud-dataplex-$1/src" - source: "/google/cloud/dataplex/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-dataplex/$1/grpc-google-cloud-dataplex-$1/src" -- source: "/google/cloud/dataplex/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-dataplex/$1/google-cloud-dataplex/src/main" +- source: "/google/cloud/dataplex/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-dataplex/$1/google-cloud-dataplex/src" - source: "/google/cloud/dataplex/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-dataplex/$1/samples/snippets/generated" diff --git a/java-dataproc-metastore/.OwlBot-hermetic.yaml b/java-dataproc-metastore/.OwlBot-hermetic.yaml index db262cb52014..f682fd5ad824 100644 --- a/java-dataproc-metastore/.OwlBot-hermetic.yaml +++ b/java-dataproc-metastore/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-dataproc-metastore/grpc-google-.*/src" - "/java-dataproc-metastore/proto-google-.*/src" -- "/java-dataproc-metastore/google-.*/src/main" -- "/java-dataproc-metastore/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-dataproc-metastore/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-dataproc-metastore/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-dataproc-metastore/google-.*/src" - "/java-dataproc-metastore/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/metastore/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-dataproc-metastore/$1/proto-google-cloud-dataproc-metastore-$1/src" - source: "/google/cloud/metastore/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-dataproc-metastore/$1/grpc-google-cloud-dataproc-metastore-$1/src" -- source: "/google/cloud/metastore/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-dataproc-metastore/$1/google-cloud-dataproc-metastore/src/main" +- source: "/google/cloud/metastore/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-dataproc-metastore/$1/google-cloud-dataproc-metastore/src" - source: "/google/cloud/metastore/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-dataproc-metastore/$1/samples/snippets/generated" diff --git a/java-dataproc/.OwlBot-hermetic.yaml b/java-dataproc/.OwlBot-hermetic.yaml index 1893fc510875..0e36cb2965f5 100644 --- a/java-dataproc/.OwlBot-hermetic.yaml +++ b/java-dataproc/.OwlBot-hermetic.yaml @@ -17,22 +17,19 @@ deep-remove-regex: - "/java-dataproc/samples/snippets/generated" - "/java-dataproc/grpc-google-.*/src" - "/java-dataproc/proto-google-.*/src" -- "/java-dataproc/google-.*/src/main" -- "/java-dataproc/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-dataproc/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-dataproc/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-dataproc/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-dataproc/src/test/java/com/google/.*/dataproc/v.*/it/ITSystemTest.java" +- "/.*google-cloud-dataproc/src/test/java/com/google/cloud/dataproc/v.*/it/ITSystemTest.java" deep-copy-regex: - source: "/google/cloud/dataproc/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-dataproc/$1/proto-google-cloud-dataproc-$1/src" - source: "/google/cloud/dataproc/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-dataproc/$1/grpc-google-cloud-dataproc-$1/src" -- source: "/google/cloud/dataproc/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-dataproc/$1/google-cloud-dataproc/src/main" +- source: "/google/cloud/dataproc/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-dataproc/$1/google-cloud-dataproc/src" - source: "/google/cloud/dataproc/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-dataproc/$1/samples/snippets/generated" diff --git a/java-datastore/.OwlBot-hermetic.yaml b/java-datastore/.OwlBot-hermetic.yaml index 17145bac29ca..dce59c74ec54 100644 --- a/java-datastore/.OwlBot-hermetic.yaml +++ b/java-datastore/.OwlBot-hermetic.yaml @@ -16,6 +16,7 @@ deep-remove-regex: - /java-datastore/proto-google-.*/src deep-preserve-regex: - /.*google-.*/src/main/java/.*/stub/Version.java +- /.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java deep-copy-regex: - source: /google/datastore/(v.*)/.*-java/proto-google-.*/src dest: /owl-bot-staging/java-datastore/$1/proto-google-cloud-datastore-$1/src @@ -25,7 +26,7 @@ deep-copy-regex: dest: /owl-bot-staging/java-datastore/$1/grpc-google-cloud-datastore-$1/src - source: /google/datastore/admin/(v.*)/.*-java/grpc-google-.*/src dest: /owl-bot-staging/java-datastore/$1/grpc-google-cloud-datastore-admin-$1/src -- source: /google/datastore/(v.*)/.*-java/gapic-google-.*/src/main - dest: /owl-bot-staging/java-datastore/$1/google-cloud-datastore/src/main -- source: /google/datastore/admin/(v.*)/.*-java/gapic-google-.*/src/main - dest: /owl-bot-staging/java-datastore/$1/google-cloud-datastore/src/main +- source: /google/datastore/(v.*)/.*-java/gapic-google-.*/src + dest: /owl-bot-staging/java-datastore/$1/google-cloud-datastore/src +- source: /google/datastore/admin/(v.*)/.*-java/gapic-google-.*/src + dest: /owl-bot-staging/java-datastore/$1/google-cloud-datastore/src diff --git a/java-datastream/.OwlBot-hermetic.yaml b/java-datastream/.OwlBot-hermetic.yaml index c019cefd5ddc..8cc68058f04d 100644 --- a/java-datastream/.OwlBot-hermetic.yaml +++ b/java-datastream/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-datastream/samples/snippets/generated" - "/java-datastream/grpc-google-.*/src" - "/java-datastream/proto-google-.*/src" -- "/java-datastream/google-.*/src/main" -- "/java-datastream/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-datastream/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-datastream/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-datastream/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/datastream/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-datastream/$1/proto-google-cloud-datastream-$1/src" - source: "/google/cloud/datastream/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-datastream/$1/grpc-google-cloud-datastream-$1/src" -- source: "/google/cloud/datastream/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-datastream/$1/google-cloud-datastream/src/main" +- source: "/google/cloud/datastream/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-datastream/$1/google-cloud-datastream/src" - source: "/google/cloud/datastream/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-datastream/$1/samples/snippets/generated" diff --git a/java-deploy/.OwlBot-hermetic.yaml b/java-deploy/.OwlBot-hermetic.yaml index 7926277d80e6..114057365364 100644 --- a/java-deploy/.OwlBot-hermetic.yaml +++ b/java-deploy/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-deploy/samples/snippets/generated" - "/java-deploy/grpc-google-.*/src" - "/java-deploy/proto-google-.*/src" -- "/java-deploy/google-.*/src/main" -- "/java-deploy/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-deploy/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-deploy/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-deploy/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/deploy/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-deploy/$1/proto-google-cloud-deploy-$1/src" - source: "/google/cloud/deploy/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-deploy/$1/grpc-google-cloud-deploy-$1/src" -- source: "/google/cloud/deploy/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-deploy/$1/google-cloud-deploy/src/main" +- source: "/google/cloud/deploy/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-deploy/$1/google-cloud-deploy/src" - source: "/google/cloud/deploy/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-deploy/$1/samples/snippets/generated" diff --git a/java-developerconnect/.OwlBot-hermetic.yaml b/java-developerconnect/.OwlBot-hermetic.yaml index d002e638eacd..d1e9cb274753 100644 --- a/java-developerconnect/.OwlBot-hermetic.yaml +++ b/java-developerconnect/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-developerconnect/grpc-google-.*/src" - "/java-developerconnect/proto-google-.*/src" -- "/java-developerconnect/google-.*/src/main" -- "/java-developerconnect/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-developerconnect/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-developerconnect/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-developerconnect/google-.*/src" - "/java-developerconnect/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/developerconnect/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-developerconnect/$1/proto-google-cloud-developerconnect-$1/src" - source: "/google/cloud/developerconnect/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-developerconnect/$1/grpc-google-cloud-developerconnect-$1/src" -- source: "/google/cloud/developerconnect/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-developerconnect/$1/google-cloud-developerconnect/src/main" +- source: "/google/cloud/developerconnect/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-developerconnect/$1/google-cloud-developerconnect/src" - source: "/google/cloud/developerconnect/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-developerconnect/$1/samples/snippets/generated" diff --git a/java-developerknowledge/.OwlBot-hermetic.yaml b/java-developerknowledge/.OwlBot-hermetic.yaml index 762ce5deff00..453bf6e1b842 100644 --- a/java-developerknowledge/.OwlBot-hermetic.yaml +++ b/java-developerknowledge/.OwlBot-hermetic.yaml @@ -16,20 +16,19 @@ deep-remove-regex: - "/java-developerknowledge/grpc-google-.*/src" - "/java-developerknowledge/proto-google-.*/src" -- "/java-developerknowledge/google-.*/src/main" -- "/java-developerknowledge/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-developerknowledge/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-developerknowledge/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-developerknowledge/google-.*/src" - "/java-developerknowledge/samples/snippets/generated" deep-preserve-regex: +- "/java-developerknowledge/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/developers/knowledge/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-developerknowledge/$1/proto-google-cloud-developer-knowledge-$1/src" - source: "/google/developers/knowledge/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-developerknowledge/$1/grpc-google-cloud-developer-knowledge-$1/src" -- source: "/google/developers/knowledge/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-developerknowledge/$1/google-cloud-developer-knowledge/src/main" +- source: "/google/developers/knowledge/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-developerknowledge/$1/google-cloud-developer-knowledge/src" - source: "/google/developers/knowledge/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-developerknowledge/$1/samples/snippets/generated" diff --git a/java-devicestreaming/.OwlBot-hermetic.yaml b/java-devicestreaming/.OwlBot-hermetic.yaml index d9e20b1d52b4..562181c3d889 100644 --- a/java-devicestreaming/.OwlBot-hermetic.yaml +++ b/java-devicestreaming/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-devicestreaming/grpc-google-.*/src" - "/java-devicestreaming/proto-google-.*/src" -- "/java-devicestreaming/google-.*/src/main" -- "/java-devicestreaming/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-devicestreaming/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-devicestreaming/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-devicestreaming/google-.*/src" - "/java-devicestreaming/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/devicestreaming/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-devicestreaming/$1/proto-google-cloud-devicestreaming-$1/src" - source: "/google/cloud/devicestreaming/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-devicestreaming/$1/grpc-google-cloud-devicestreaming-$1/src" -- source: "/google/cloud/devicestreaming/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-devicestreaming/$1/google-cloud-devicestreaming/src/main" +- source: "/google/cloud/devicestreaming/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-devicestreaming/$1/google-cloud-devicestreaming/src" - source: "/google/cloud/devicestreaming/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-devicestreaming/$1/samples/snippets/generated" diff --git a/java-dialogflow-cx/.OwlBot-hermetic.yaml b/java-dialogflow-cx/.OwlBot-hermetic.yaml index 5260f6ab0df7..ed47b4ae48a3 100644 --- a/java-dialogflow-cx/.OwlBot-hermetic.yaml +++ b/java-dialogflow-cx/.OwlBot-hermetic.yaml @@ -16,23 +16,20 @@ deep-remove-regex: - "/java-dialogflow-cx/grpc-google-.*/src" - "/java-dialogflow-cx/proto-google-.*/src" -- "/java-dialogflow-cx/google-.*/src/main" -- "/java-dialogflow-cx/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-dialogflow-cx/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-dialogflow-cx/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-dialogflow-cx/google-.*/src" - "/java-dialogflow-cx/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-dialogflow-cx/src/test/java/com/google/.*/dialogflow/cx/v.*/it/ITSystemTest.java" +- "/.*google-cloud-dialogflow-cx/src/test/java/com/google/cloud/dialogflow/cx/v.*/it/ITSystemTest.java" deep-copy-regex: - source: "/google/cloud/dialogflow/cx/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-dialogflow-cx/$1/proto-google-cloud-dialogflow-cx-$1/src" - source: "/google/cloud/dialogflow/cx/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-dialogflow-cx/$1/grpc-google-cloud-dialogflow-cx-$1/src" -- source: "/google/cloud/dialogflow/cx/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-dialogflow-cx/$1/google-cloud-dialogflow-cx/src/main" +- source: "/google/cloud/dialogflow/cx/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-dialogflow-cx/$1/google-cloud-dialogflow-cx/src" - source: "/google/cloud/dialogflow/cx/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-dialogflow-cx/$1/samples/snippets/generated" diff --git a/java-dialogflow/.OwlBot-hermetic.yaml b/java-dialogflow/.OwlBot-hermetic.yaml index 6d5c490c7bc8..6760f0c2a39b 100644 --- a/java-dialogflow/.OwlBot-hermetic.yaml +++ b/java-dialogflow/.OwlBot-hermetic.yaml @@ -17,14 +17,12 @@ deep-remove-regex: - "/java-dialogflow/samples/snippets/generated" - "/java-dialogflow/grpc-google-.*/src" - "/java-dialogflow/proto-google-.*/src" -- "/java-dialogflow/google-.*/src/main" -- "/java-dialogflow/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-dialogflow/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-dialogflow/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-dialogflow/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-dialogflow/src/test/java/com/google/.*/dialogflow/v2/ContextManagementSmokeTest.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-dialogflow/src/test/java/com/google/cloud/dialogflow/v2/ContextManagementSmokeTest.java" - "/.*proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ConversationModelName.java" - "/.*proto-google-cloud-dialogflow-v2/src/main/java/com/google/cloud/dialogflow/v2/ProjectAgentName.java" - "/.*proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/ConversationModelName.java" @@ -39,8 +37,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-dialogflow/$1/proto-google-cloud-dialogflow-$1/src" - source: "/google/cloud/dialogflow/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-dialogflow/$1/grpc-google-cloud-dialogflow-$1/src" -- source: "/google/cloud/dialogflow/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-dialogflow/$1/google-cloud-dialogflow/src/main" +- source: "/google/cloud/dialogflow/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-dialogflow/$1/google-cloud-dialogflow/src" - source: "/google/cloud/dialogflow/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-dialogflow/$1/samples/snippets/generated" diff --git a/java-discoveryengine/.OwlBot-hermetic.yaml b/java-discoveryengine/.OwlBot-hermetic.yaml index dadbe1a5c8df..05388100d4f4 100644 --- a/java-discoveryengine/.OwlBot-hermetic.yaml +++ b/java-discoveryengine/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-discoveryengine/grpc-google-.*/src" - "/java-discoveryengine/proto-google-.*/src" -- "/java-discoveryengine/google-.*/src/main" -- "/java-discoveryengine/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-discoveryengine/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-discoveryengine/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-discoveryengine/google-.*/src" - "/java-discoveryengine/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/discoveryengine/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-discoveryengine/$1/proto-google-cloud-discoveryengine-$1/src" - source: "/google/cloud/discoveryengine/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-discoveryengine/$1/grpc-google-cloud-discoveryengine-$1/src" -- source: "/google/cloud/discoveryengine/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-discoveryengine/$1/google-cloud-discoveryengine/src/main" +- source: "/google/cloud/discoveryengine/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-discoveryengine/$1/google-cloud-discoveryengine/src" - source: "/google/cloud/discoveryengine/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-discoveryengine/$1/samples/snippets/generated" diff --git a/java-distributedcloudedge/.OwlBot-hermetic.yaml b/java-distributedcloudedge/.OwlBot-hermetic.yaml index 24a539c31f61..9f1ab595cbea 100644 --- a/java-distributedcloudedge/.OwlBot-hermetic.yaml +++ b/java-distributedcloudedge/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-distributedcloudedge/grpc-google-.*/src" - "/java-distributedcloudedge/proto-google-.*/src" -- "/java-distributedcloudedge/google-.*/src/main" -- "/java-distributedcloudedge/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-distributedcloudedge/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-distributedcloudedge/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-distributedcloudedge/google-.*/src" - "/java-distributedcloudedge/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/edgecontainer/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-distributedcloudedge/$1/proto-google-cloud-distributedcloudedge-$1/src" - source: "/google/cloud/edgecontainer/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-distributedcloudedge/$1/grpc-google-cloud-distributedcloudedge-$1/src" -- source: "/google/cloud/edgecontainer/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-distributedcloudedge/$1/google-cloud-distributedcloudedge/src/main" +- source: "/google/cloud/edgecontainer/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-distributedcloudedge/$1/google-cloud-distributedcloudedge/src" - source: "/google/cloud/edgecontainer/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-distributedcloudedge/$1/samples/snippets/generated" diff --git a/java-dlp/.OwlBot-hermetic.yaml b/java-dlp/.OwlBot-hermetic.yaml index 0037d23c57c9..bdf0a59ff171 100644 --- a/java-dlp/.OwlBot-hermetic.yaml +++ b/java-dlp/.OwlBot-hermetic.yaml @@ -16,14 +16,12 @@ deep-remove-regex: - "/java-dlp/grpc-google-.*/src" - "/java-dlp/proto-google-.*/src" -- "/java-dlp/google-.*/src/main" -- "/java-dlp/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-dlp/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-dlp/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-dlp/google-.*/src" - "/java-dlp/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DeidentifyTemplateNames.java" - "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectFindingName.java" - "/.*proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InspectTemplateNames.java" @@ -44,8 +42,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-dlp/$1/proto-google-cloud-dlp-$1/src" - source: "/google/privacy/dlp/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-dlp/$1/grpc-google-cloud-dlp-$1/src" -- source: "/google/privacy/dlp/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-dlp/$1/google-cloud-dlp/src/main" +- source: "/google/privacy/dlp/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-dlp/$1/google-cloud-dlp/src" - source: "/google/privacy/dlp/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-dlp/$1/samples/snippets/generated" diff --git a/java-dms/.OwlBot-hermetic.yaml b/java-dms/.OwlBot-hermetic.yaml index d67e54433055..ba833f573253 100644 --- a/java-dms/.OwlBot-hermetic.yaml +++ b/java-dms/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-dms/samples/snippets/generated" - "/java-dms/grpc-google-.*/src" - "/java-dms/proto-google-.*/src" -- "/java-dms/google-.*/src/main" -- "/java-dms/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-dms/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-dms/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-dms/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-dms/$1/proto-google-cloud-dms-$1/src" - source: "/google/cloud/clouddms/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-dms/$1/grpc-google-cloud-dms-$1/src" -- source: "/google/cloud/clouddms/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-dms/$1/google-cloud-dms/src/main" +- source: "/google/cloud/clouddms/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-dms/$1/google-cloud-dms/src" - source: "/google/cloud/clouddms/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-dms/$1/samples/snippets/generated" diff --git a/java-document-ai/.OwlBot-hermetic.yaml b/java-document-ai/.OwlBot-hermetic.yaml index 9371dfb82bec..8959e8b04037 100644 --- a/java-document-ai/.OwlBot-hermetic.yaml +++ b/java-document-ai/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-document-ai/samples/snippets/generated" - "/java-document-ai/grpc-google-.*/src" - "/java-document-ai/proto-google-.*/src" -- "/java-document-ai/google-.*/src/main" -- "/java-document-ai/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-document-ai/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-document-ai/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-document-ai/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-document-ai/$1/proto-google-cloud-document-ai-$1/src" - source: "/google/cloud/documentai/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-document-ai/$1/grpc-google-cloud-document-ai-$1/src" -- source: "/google/cloud/documentai/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-document-ai/$1/google-cloud-document-ai/src/main" +- source: "/google/cloud/documentai/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-document-ai/$1/google-cloud-document-ai/src" - source: "/google/cloud/documentai/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-document-ai/$1/samples/snippets/generated" diff --git a/java-domains/.OwlBot-hermetic.yaml b/java-domains/.OwlBot-hermetic.yaml index 1b301f4f83dc..9a459f552625 100644 --- a/java-domains/.OwlBot-hermetic.yaml +++ b/java-domains/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-domains/samples/snippets/generated" - "/java-domains/grpc-google-.*/src" - "/java-domains/proto-google-.*/src" -- "/java-domains/google-.*/src/main" -- "/java-domains/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-domains/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-domains/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-domains/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-domains/$1/proto-google-cloud-domains-$1/src" - source: "/google/cloud/domains/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-domains/$1/grpc-google-cloud-domains-$1/src" -- source: "/google/cloud/domains/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-domains/$1/google-cloud-domains/src/main" +- source: "/google/cloud/domains/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-domains/$1/google-cloud-domains/src" - source: "/google/cloud/domains/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-domains/$1/samples/snippets/generated" diff --git a/java-edgenetwork/.OwlBot-hermetic.yaml b/java-edgenetwork/.OwlBot-hermetic.yaml index 97571caf4441..715992af0f10 100644 --- a/java-edgenetwork/.OwlBot-hermetic.yaml +++ b/java-edgenetwork/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-edgenetwork/grpc-google-.*/src" - "/java-edgenetwork/proto-google-.*/src" -- "/java-edgenetwork/google-.*/src/main" -- "/java-edgenetwork/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-edgenetwork/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-edgenetwork/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-edgenetwork/google-.*/src" - "/java-edgenetwork/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/edgenetwork/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-edgenetwork/$1/proto-google-cloud-edgenetwork-$1/src" - source: "/google/cloud/edgenetwork/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-edgenetwork/$1/grpc-google-cloud-edgenetwork-$1/src" -- source: "/google/cloud/edgenetwork/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-edgenetwork/$1/google-cloud-edgenetwork/src/main" +- source: "/google/cloud/edgenetwork/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-edgenetwork/$1/google-cloud-edgenetwork/src" - source: "/google/cloud/edgenetwork/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-edgenetwork/$1/samples/snippets/generated" diff --git a/java-enterpriseknowledgegraph/.OwlBot-hermetic.yaml b/java-enterpriseknowledgegraph/.OwlBot-hermetic.yaml index 5ee80a297817..6dee08352840 100644 --- a/java-enterpriseknowledgegraph/.OwlBot-hermetic.yaml +++ b/java-enterpriseknowledgegraph/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-enterpriseknowledgegraph/grpc-google-.*/src" - "/java-enterpriseknowledgegraph/proto-google-.*/src" -- "/java-enterpriseknowledgegraph/google-.*/src/main" -- "/java-enterpriseknowledgegraph/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-enterpriseknowledgegraph/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-enterpriseknowledgegraph/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-enterpriseknowledgegraph/google-.*/src" - "/java-enterpriseknowledgegraph/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/enterpriseknowledgegraph/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-enterpriseknowledgegraph/$1/proto-google-cloud-enterpriseknowledgegraph-$1/src" - source: "/google/cloud/enterpriseknowledgegraph/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-enterpriseknowledgegraph/$1/grpc-google-cloud-enterpriseknowledgegraph-$1/src" -- source: "/google/cloud/enterpriseknowledgegraph/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-enterpriseknowledgegraph/$1/google-cloud-enterpriseknowledgegraph/src/main" +- source: "/google/cloud/enterpriseknowledgegraph/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-enterpriseknowledgegraph/$1/google-cloud-enterpriseknowledgegraph/src" - source: "/google/cloud/enterpriseknowledgegraph/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-enterpriseknowledgegraph/$1/samples/snippets/generated" diff --git a/java-errorreporting/.OwlBot-hermetic.yaml b/java-errorreporting/.OwlBot-hermetic.yaml index 84dc0c49ab67..a1e48c565f94 100644 --- a/java-errorreporting/.OwlBot-hermetic.yaml +++ b/java-errorreporting/.OwlBot-hermetic.yaml @@ -16,14 +16,12 @@ deep-remove-regex: - "/java-errorreporting/grpc-google-.*/src" - "/java-errorreporting/proto-google-.*/src" -- "/java-errorreporting/google-.*/src/main" -- "/java-errorreporting/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-errorreporting/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-errorreporting/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-errorreporting/google-.*/src" - "/java-errorreporting/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*google-cloud-errorreporting/src/test/java/com/google/devtools/clouderrorreporting/v1beta1/ITSystemTest.java" - "/.*proto-google-cloud-error-reporting-v1beta1/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/GroupName.java" @@ -32,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-errorreporting/$1/proto-google-cloud-error-reporting-$1/src" - source: "/google/devtools/clouderrorreporting/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-errorreporting/$1/grpc-google-cloud-error-reporting-$1/src" -- source: "/google/devtools/clouderrorreporting/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-errorreporting/$1/google-cloud-errorreporting/src/main" +- source: "/google/devtools/clouderrorreporting/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-errorreporting/$1/google-cloud-errorreporting/src" - source: "/google/devtools/clouderrorreporting/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-errorreporting/$1/samples/snippets/generated" diff --git a/java-essential-contacts/.OwlBot-hermetic.yaml b/java-essential-contacts/.OwlBot-hermetic.yaml index c335a5dc5aba..680559efcaa3 100644 --- a/java-essential-contacts/.OwlBot-hermetic.yaml +++ b/java-essential-contacts/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-essential-contacts/samples/snippets/generated" - "/java-essential-contacts/grpc-google-.*/src" - "/java-essential-contacts/proto-google-.*/src" -- "/java-essential-contacts/google-.*/src/main" -- "/java-essential-contacts/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-essential-contacts/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-essential-contacts/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-essential-contacts/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-essential-contacts/$1/proto-google-cloud-essential-contacts-$1/src" - source: "/google/cloud/essentialcontacts/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-essential-contacts/$1/grpc-google-cloud-essential-contacts-$1/src" -- source: "/google/cloud/essentialcontacts/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-essential-contacts/$1/google-cloud-essential-contacts/src/main" +- source: "/google/cloud/essentialcontacts/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-essential-contacts/$1/google-cloud-essential-contacts/src" - source: "/google/cloud/essentialcontacts/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-essential-contacts/$1/samples/snippets/generated" diff --git a/java-eventarc-publishing/.OwlBot-hermetic.yaml b/java-eventarc-publishing/.OwlBot-hermetic.yaml index b549b701fe05..3a4e887b35d8 100644 --- a/java-eventarc-publishing/.OwlBot-hermetic.yaml +++ b/java-eventarc-publishing/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-eventarc-publishing/grpc-google-.*/src" - "/java-eventarc-publishing/proto-google-.*/src" -- "/java-eventarc-publishing/google-.*/src/main" -- "/java-eventarc-publishing/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-eventarc-publishing/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-eventarc-publishing/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-eventarc-publishing/google-.*/src" - "/java-eventarc-publishing/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/eventarc/publishing/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-eventarc-publishing/$1/proto-google-cloud-eventarc-publishing-$1/src" - source: "/google/cloud/eventarc/publishing/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-eventarc-publishing/$1/grpc-google-cloud-eventarc-publishing-$1/src" -- source: "/google/cloud/eventarc/publishing/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-eventarc-publishing/$1/google-cloud-eventarc-publishing/src/main" +- source: "/google/cloud/eventarc/publishing/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-eventarc-publishing/$1/google-cloud-eventarc-publishing/src" - source: "/google/cloud/eventarc/publishing/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-eventarc-publishing/$1/samples/snippets/generated" diff --git a/java-eventarc/.OwlBot-hermetic.yaml b/java-eventarc/.OwlBot-hermetic.yaml index f2be15bf97e0..c8218dd34cad 100644 --- a/java-eventarc/.OwlBot-hermetic.yaml +++ b/java-eventarc/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-eventarc/samples/snippets/generated" - "/java-eventarc/grpc-google-.*/src" - "/java-eventarc/proto-google-.*/src" -- "/java-eventarc/google-.*/src/main" -- "/java-eventarc/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-eventarc/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-eventarc/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-eventarc/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/eventarc/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-eventarc/$1/proto-google-cloud-eventarc-$1/src" - source: "/google/cloud/eventarc/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-eventarc/$1/grpc-google-cloud-eventarc-$1/src" -- source: "/google/cloud/eventarc/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-eventarc/$1/google-cloud-eventarc/src/main" +- source: "/google/cloud/eventarc/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-eventarc/$1/google-cloud-eventarc/src" - source: "/google/cloud/eventarc/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-eventarc/$1/samples/snippets/generated" diff --git a/java-filestore/.OwlBot-hermetic.yaml b/java-filestore/.OwlBot-hermetic.yaml index c35194e743df..ce2daa3e6763 100644 --- a/java-filestore/.OwlBot-hermetic.yaml +++ b/java-filestore/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-filestore/samples/snippets/generated" - "/java-filestore/grpc-google-.*/src" - "/java-filestore/proto-google-.*/src" -- "/java-filestore/google-.*/src/main" -- "/java-filestore/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-filestore/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-filestore/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-filestore/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/filestore/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-filestore/$1/proto-google-cloud-filestore-$1/src" - source: "/google/cloud/filestore/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-filestore/$1/grpc-google-cloud-filestore-$1/src" -- source: "/google/cloud/filestore/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-filestore/$1/google-cloud-filestore/src/main" +- source: "/google/cloud/filestore/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-filestore/$1/google-cloud-filestore/src" - source: "/google/cloud/filestore/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-filestore/$1/samples/snippets/generated" diff --git a/java-financialservices/.OwlBot-hermetic.yaml b/java-financialservices/.OwlBot-hermetic.yaml index 77d768acb475..bd926e264c52 100644 --- a/java-financialservices/.OwlBot-hermetic.yaml +++ b/java-financialservices/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-financialservices/grpc-google-.*/src" - "/java-financialservices/proto-google-.*/src" -- "/java-financialservices/google-.*/src/main" -- "/java-financialservices/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-financialservices/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-financialservices/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-financialservices/google-.*/src" - "/java-financialservices/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/financialservices/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-financialservices/$1/proto-google-cloud-financialservices-$1/src" - source: "/google/cloud/financialservices/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-financialservices/$1/grpc-google-cloud-financialservices-$1/src" -- source: "/google/cloud/financialservices/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-financialservices/$1/google-cloud-financialservices/src/main" +- source: "/google/cloud/financialservices/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-financialservices/$1/google-cloud-financialservices/src" - source: "/google/cloud/financialservices/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-financialservices/$1/samples/snippets/generated" diff --git a/java-functions/.OwlBot-hermetic.yaml b/java-functions/.OwlBot-hermetic.yaml index a1b52428d66b..81a03b0007ca 100644 --- a/java-functions/.OwlBot-hermetic.yaml +++ b/java-functions/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-functions/samples/snippets/generated" - "/java-functions/grpc-google-.*/src" - "/java-functions/proto-google-.*/src" -- "/java-functions/google-.*/src/main" -- "/java-functions/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-functions/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-functions/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-functions/google-.*/src" deep-preserve-regex: @@ -31,8 +28,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-functions/$1/proto-google-cloud-functions-$1/src" - source: "/google/cloud/functions/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-functions/$1/grpc-google-cloud-functions-$1/src" -- source: "/google/cloud/functions/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-functions/$1/google-cloud-functions/src/main" +- source: "/google/cloud/functions/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-functions/$1/google-cloud-functions/src" - source: "/google/cloud/functions/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-functions/$1/samples/snippets/generated" diff --git a/java-gdchardwaremanagement/.OwlBot-hermetic.yaml b/java-gdchardwaremanagement/.OwlBot-hermetic.yaml index a0b0927607ec..70c7f35214c2 100644 --- a/java-gdchardwaremanagement/.OwlBot-hermetic.yaml +++ b/java-gdchardwaremanagement/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-gdchardwaremanagement/grpc-google-.*/src" - "/java-gdchardwaremanagement/proto-google-.*/src" -- "/java-gdchardwaremanagement/google-.*/src/main" -- "/java-gdchardwaremanagement/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-gdchardwaremanagement/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-gdchardwaremanagement/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-gdchardwaremanagement/google-.*/src" - "/java-gdchardwaremanagement/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/gdchardwaremanagement/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-gdchardwaremanagement/$1/proto-google-cloud-gdchardwaremanagement-$1/src" - source: "/google/cloud/gdchardwaremanagement/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-gdchardwaremanagement/$1/grpc-google-cloud-gdchardwaremanagement-$1/src" -- source: "/google/cloud/gdchardwaremanagement/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-gdchardwaremanagement/$1/google-cloud-gdchardwaremanagement/src/main" +- source: "/google/cloud/gdchardwaremanagement/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-gdchardwaremanagement/$1/google-cloud-gdchardwaremanagement/src" - source: "/google/cloud/gdchardwaremanagement/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-gdchardwaremanagement/$1/samples/snippets/generated" diff --git a/java-geminidataanalytics/.OwlBot-hermetic.yaml b/java-geminidataanalytics/.OwlBot-hermetic.yaml index 670524d902df..b1949c92ae25 100644 --- a/java-geminidataanalytics/.OwlBot-hermetic.yaml +++ b/java-geminidataanalytics/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-geminidataanalytics/grpc-google-.*/src" - "/java-geminidataanalytics/proto-google-.*/src" -- "/java-geminidataanalytics/google-.*/src/main" -- "/java-geminidataanalytics/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-geminidataanalytics/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-geminidataanalytics/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-geminidataanalytics/google-.*/src" - "/java-geminidataanalytics/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/geminidataanalytics/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-geminidataanalytics/$1/proto-google-cloud-geminidataanalytics-$1/src" - source: "/google/cloud/geminidataanalytics/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-geminidataanalytics/$1/grpc-google-cloud-geminidataanalytics-$1/src" -- source: "/google/cloud/geminidataanalytics/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-geminidataanalytics/$1/google-cloud-geminidataanalytics/src/main" +- source: "/google/cloud/geminidataanalytics/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-geminidataanalytics/$1/google-cloud-geminidataanalytics/src" - source: "/google/cloud/geminidataanalytics/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-geminidataanalytics/$1/samples/snippets/generated" diff --git a/java-gke-backup/.OwlBot-hermetic.yaml b/java-gke-backup/.OwlBot-hermetic.yaml index 20309e53bd9e..51cb1bf65bb7 100644 --- a/java-gke-backup/.OwlBot-hermetic.yaml +++ b/java-gke-backup/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-gke-backup/samples/snippets/generated" - "/java-gke-backup/grpc-google-.*/src" - "/java-gke-backup/proto-google-.*/src" -- "/java-gke-backup/google-.*/src/main" -- "/java-gke-backup/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-gke-backup/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-gke-backup/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-gke-backup/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/gkebackup/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-gke-backup/$1/proto-google-cloud-gke-backup-$1/src" - source: "/google/cloud/gkebackup/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-gke-backup/$1/grpc-google-cloud-gke-backup-$1/src" -- source: "/google/cloud/gkebackup/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-gke-backup/$1/google-cloud-gke-backup/src/main" +- source: "/google/cloud/gkebackup/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-gke-backup/$1/google-cloud-gke-backup/src" - source: "/google/cloud/gkebackup/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-gke-backup/$1/samples/snippets/generated" diff --git a/java-gke-connect-gateway/.OwlBot-hermetic.yaml b/java-gke-connect-gateway/.OwlBot-hermetic.yaml index b4ab90118234..16bd4a77ffbf 100644 --- a/java-gke-connect-gateway/.OwlBot-hermetic.yaml +++ b/java-gke-connect-gateway/.OwlBot-hermetic.yaml @@ -16,10 +16,7 @@ deep-remove-regex: - "/java-gke-connect-gateway/samples/snippets/generated" - "/java-gke-connect-gateway/proto-google-.*/src" -- "/java-gke-connect-gateway/google-.*/src/main" -- "/java-gke-connect-gateway/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-gke-connect-gateway/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-gke-connect-gateway/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-gke-connect-gateway/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -27,8 +24,8 @@ deep-preserve-regex: deep-copy-regex: - source: "/google/cloud/gkeconnect/gateway/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-gke-connect-gateway/$1/proto-google-cloud-gke-connect-gateway-$1/src" -- source: "/google/cloud/gkeconnect/gateway/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-gke-connect-gateway/$1/google-cloud-gke-connect-gateway/src/main" +- source: "/google/cloud/gkeconnect/gateway/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-gke-connect-gateway/$1/google-cloud-gke-connect-gateway/src" - source: "/google/cloud/gkeconnect/gateway/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-gke-connect-gateway/$1/samples/snippets/generated" diff --git a/java-gke-multi-cloud/.OwlBot-hermetic.yaml b/java-gke-multi-cloud/.OwlBot-hermetic.yaml index e03761e20155..d0362b60f2d0 100644 --- a/java-gke-multi-cloud/.OwlBot-hermetic.yaml +++ b/java-gke-multi-cloud/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-gke-multi-cloud/samples/snippets/generated" - "/java-gke-multi-cloud/grpc-google-.*/src" - "/java-gke-multi-cloud/proto-google-.*/src" -- "/java-gke-multi-cloud/google-.*/src/main" -- "/java-gke-multi-cloud/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-gke-multi-cloud/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-gke-multi-cloud/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-gke-multi-cloud/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/gkemulticloud/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-gke-multi-cloud/$1/proto-google-cloud-gke-multi-cloud-$1/src" - source: "/google/cloud/gkemulticloud/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-gke-multi-cloud/$1/grpc-google-cloud-gke-multi-cloud-$1/src" -- source: "/google/cloud/gkemulticloud/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-gke-multi-cloud/$1/google-cloud-gke-multi-cloud/src/main" +- source: "/google/cloud/gkemulticloud/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-gke-multi-cloud/$1/google-cloud-gke-multi-cloud/src" - source: "/google/cloud/gkemulticloud/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-gke-multi-cloud/$1/samples/snippets/generated" diff --git a/java-gkehub/.OwlBot-hermetic.yaml b/java-gkehub/.OwlBot-hermetic.yaml index 933e298e71b4..9a55f24ec07e 100644 --- a/java-gkehub/.OwlBot-hermetic.yaml +++ b/java-gkehub/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-gkehub/samples/snippets/generated" - "/java-gkehub/grpc-google-.*/src" - "/java-gkehub/proto-google-.*/src" -- "/java-gkehub/google-.*/src/main" -- "/java-gkehub/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-gkehub/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-gkehub/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-gkehub/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-gkehub/$1/proto-google-cloud-gkehub-$1/src" - source: "/google/cloud/gkehub/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-gkehub/$1/grpc-google-cloud-gkehub-$1/src" -- source: "/google/cloud/gkehub/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-gkehub/$1/google-cloud-gkehub/src/main" +- source: "/google/cloud/gkehub/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-gkehub/$1/google-cloud-gkehub/src" - source: "/google/cloud/gkehub/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-gkehub/$1/samples/snippets/generated" - source: "/google/cloud/gkehub/servicemesh/(v.*)/.*-java/proto-google-.*/src" diff --git a/java-gkerecommender/.OwlBot-hermetic.yaml b/java-gkerecommender/.OwlBot-hermetic.yaml index f57855076b10..b4cf42e7300a 100644 --- a/java-gkerecommender/.OwlBot-hermetic.yaml +++ b/java-gkerecommender/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-gkerecommender/grpc-google-.*/src" - "/java-gkerecommender/proto-google-.*/src" -- "/java-gkerecommender/google-.*/src/main" -- "/java-gkerecommender/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-gkerecommender/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-gkerecommender/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-gkerecommender/google-.*/src" - "/java-gkerecommender/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/gkerecommender/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-gkerecommender/$1/proto-google-cloud-gkerecommender-$1/src" - source: "/google/cloud/gkerecommender/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-gkerecommender/$1/grpc-google-cloud-gkerecommender-$1/src" -- source: "/google/cloud/gkerecommender/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-gkerecommender/$1/google-cloud-gkerecommender/src/main" +- source: "/google/cloud/gkerecommender/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-gkerecommender/$1/google-cloud-gkerecommender/src" - source: "/google/cloud/gkerecommender/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-gkerecommender/$1/samples/snippets/generated" diff --git a/java-grafeas/.OwlBot-hermetic.yaml b/java-grafeas/.OwlBot-hermetic.yaml index c486a20cf1a5..f57dd3985cba 100644 --- a/java-grafeas/.OwlBot-hermetic.yaml +++ b/java-grafeas/.OwlBot-hermetic.yaml @@ -18,7 +18,7 @@ deep-remove-regex: deep-preserve-regex: - "/.*src/main/java/.*/stub/Version.java" -- "/.*src/test/java/com/google/.*/v.*/it/IT.*Test.java" +- "/.*src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*samples/snippets/generated" deep-copy-regex: @@ -26,7 +26,7 @@ deep-copy-regex: dest: "/owl-bot-staging/java-grafeas/$1/src" - source: "/grafeas/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-grafeas/$1/src" -- source: "/grafeas/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-grafeas/$1/src/main" +- source: "/grafeas/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-grafeas/$1/src" api-name: containeranalysis diff --git a/java-gsuite-addons/.OwlBot-hermetic.yaml b/java-gsuite-addons/.OwlBot-hermetic.yaml index 62c1b5af0648..ea7940af5140 100644 --- a/java-gsuite-addons/.OwlBot-hermetic.yaml +++ b/java-gsuite-addons/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-gsuite-addons/samples/snippets/generated" - "/java-gsuite-addons/grpc-google-.*/src" - "/java-gsuite-addons/proto-google-.*/src" -- "/java-gsuite-addons/google-.*/src/main" -- "/java-gsuite-addons/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-gsuite-addons/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-gsuite-addons/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-gsuite-addons/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-gsuite-addons/$1/proto-google-cloud-gsuite-addons-$1/src" - source: "/google/cloud/gsuiteaddons/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-gsuite-addons/$1/grpc-google-cloud-gsuite-addons-$1/src" -- source: "/google/cloud/gsuiteaddons/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-gsuite-addons/$1/google-cloud-gsuite-addons/src/main" +- source: "/google/cloud/gsuiteaddons/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-gsuite-addons/$1/google-cloud-gsuite-addons/src" - source: "/google/apps/script/type/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-gsuite-addons/v1/proto-google-apps-script-type-protos/src" - source: "/google/apps/script/type/calendar/.*-java/proto-google-.*/src" diff --git a/java-health/.OwlBot-hermetic.yaml b/java-health/.OwlBot-hermetic.yaml index 7fad515fad88..154283fb9b98 100644 --- a/java-health/.OwlBot-hermetic.yaml +++ b/java-health/.OwlBot-hermetic.yaml @@ -16,20 +16,19 @@ deep-remove-regex: - "/java-health/grpc-google-.*/src" - "/java-health/proto-google-.*/src" -- "/java-health/google-.*/src/main" -- "/java-health/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-health/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-health/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-health/google-.*/src" - "/java-health/samples/snippets/generated" deep-preserve-regex: +- "/java-health/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/devicesandservices/health/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-health/$1/proto-google-cloud-health-$1/src" - source: "/google/devicesandservices/health/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-health/$1/grpc-google-cloud-health-$1/src" -- source: "/google/devicesandservices/health/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-health/$1/google-cloud-health/src/main" +- source: "/google/devicesandservices/health/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-health/$1/google-cloud-health/src" - source: "/google/devicesandservices/health/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-health/$1/samples/snippets/generated" diff --git a/java-hypercomputecluster/.OwlBot-hermetic.yaml b/java-hypercomputecluster/.OwlBot-hermetic.yaml index 925335d07c0c..051c5d42a39f 100644 --- a/java-hypercomputecluster/.OwlBot-hermetic.yaml +++ b/java-hypercomputecluster/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-hypercomputecluster/grpc-google-.*/src" - "/java-hypercomputecluster/proto-google-.*/src" -- "/java-hypercomputecluster/google-.*/src/main" -- "/java-hypercomputecluster/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-hypercomputecluster/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-hypercomputecluster/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-hypercomputecluster/google-.*/src" - "/java-hypercomputecluster/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/hypercomputecluster/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-hypercomputecluster/$1/proto-google-cloud-hypercomputecluster-$1/src" - source: "/google/cloud/hypercomputecluster/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-hypercomputecluster/$1/grpc-google-cloud-hypercomputecluster-$1/src" -- source: "/google/cloud/hypercomputecluster/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-hypercomputecluster/$1/google-cloud-hypercomputecluster/src/main" +- source: "/google/cloud/hypercomputecluster/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-hypercomputecluster/$1/google-cloud-hypercomputecluster/src" - source: "/google/cloud/hypercomputecluster/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-hypercomputecluster/$1/samples/snippets/generated" diff --git a/java-iam-admin/.OwlBot-hermetic.yaml b/java-iam-admin/.OwlBot-hermetic.yaml index 62f602bc5388..e74f012edbc3 100644 --- a/java-iam-admin/.OwlBot-hermetic.yaml +++ b/java-iam-admin/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-iam-admin/grpc-google-.*/src" - "/java-iam-admin/proto-google-.*/src" -- "/java-iam-admin/google-.*/src/main" -- "/java-iam-admin/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-iam-admin/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-iam-admin/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-iam-admin/google-.*/src" - "/java-iam-admin/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/iam/admin/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-iam-admin/$1/proto-google-iam-admin-$1/src" - source: "/google/iam/admin/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-iam-admin/$1/grpc-google-iam-admin-$1/src" -- source: "/google/iam/admin/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-iam-admin/$1/google-iam-admin/src/main" +- source: "/google/iam/admin/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-iam-admin/$1/google-iam-admin/src" - source: "/google/iam/admin/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-iam-admin/$1/samples/snippets/generated" diff --git a/java-iam-policy/.OwlBot-hermetic.yaml b/java-iam-policy/.OwlBot-hermetic.yaml index c70e1881b0e6..2ef1c1ef9084 100644 --- a/java-iam-policy/.OwlBot-hermetic.yaml +++ b/java-iam-policy/.OwlBot-hermetic.yaml @@ -19,16 +19,17 @@ deep-remove-regex: deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" + - "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*samples/snippets/generated" deep-copy-regex: - - source: "/google/iam/v2beta/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-iam-policy/v2beta/google-iam-policy/src/main" - - source: "/google/iam/v2/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-iam-policy/v2/google-iam-policy/src/main" - - source: "/google/iam/v3/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-iam-policy/v3/google-iam-policy/src/main" - - source: "/google/iam/v3beta/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-iam-policy/v3beta/google-iam-policy/src/main" + - source: "/google/iam/v2beta/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-iam-policy/v2beta/google-iam-policy/src" + - source: "/google/iam/v2/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-iam-policy/v2/google-iam-policy/src" + - source: "/google/iam/v3/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-iam-policy/v3/google-iam-policy/src" + - source: "/google/iam/v3beta/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-iam-policy/v3beta/google-iam-policy/src" api-name: iam-policy diff --git a/java-iamcredentials/.OwlBot-hermetic.yaml b/java-iamcredentials/.OwlBot-hermetic.yaml index c50cb841e7a0..a46cb39bbbc4 100644 --- a/java-iamcredentials/.OwlBot-hermetic.yaml +++ b/java-iamcredentials/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-iamcredentials/grpc-google-.*/src" - "/java-iamcredentials/proto-google-.*/src" -- "/java-iamcredentials/google-.*/src/main" -- "/java-iamcredentials/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-iamcredentials/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-iamcredentials/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-iamcredentials/google-.*/src" - "/java-iamcredentials/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/iam/credentials/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-iamcredentials/$1/proto-google-cloud-iamcredentials-$1/src" - source: "/google/iam/credentials/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-iamcredentials/$1/grpc-google-cloud-iamcredentials-$1/src" -- source: "/google/iam/credentials/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-iamcredentials/$1/google-cloud-iamcredentials/src/main" +- source: "/google/iam/credentials/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-iamcredentials/$1/google-cloud-iamcredentials/src" - source: "/google/iam/credentials/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-iamcredentials/$1/samples/snippets/generated" diff --git a/java-iap/.OwlBot-hermetic.yaml b/java-iap/.OwlBot-hermetic.yaml index f8d95c788061..8fa64f8e08e1 100644 --- a/java-iap/.OwlBot-hermetic.yaml +++ b/java-iap/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-iap/grpc-google-.*/src" - "/java-iap/proto-google-.*/src" -- "/java-iap/google-.*/src/main" -- "/java-iap/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-iap/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-iap/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-iap/google-.*/src" - "/java-iap/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/iap/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-iap/$1/proto-google-cloud-iap-$1/src" - source: "/google/cloud/iap/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-iap/$1/grpc-google-cloud-iap-$1/src" -- source: "/google/cloud/iap/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-iap/$1/google-cloud-iap/src/main" +- source: "/google/cloud/iap/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-iap/$1/google-cloud-iap/src" - source: "/google/cloud/iap/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-iap/$1/samples/snippets/generated" diff --git a/java-ids/.OwlBot-hermetic.yaml b/java-ids/.OwlBot-hermetic.yaml index 7ba09b0c72a2..6d6fc5e5c899 100644 --- a/java-ids/.OwlBot-hermetic.yaml +++ b/java-ids/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-ids/samples/snippets/generated" - "/java-ids/grpc-google-.*/src" - "/java-ids/proto-google-.*/src" -- "/java-ids/google-.*/src/main" -- "/java-ids/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-ids/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-ids/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-ids/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/ids/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-ids/$1/proto-google-cloud-ids-$1/src" - source: "/google/cloud/ids/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-ids/$1/grpc-google-cloud-ids-$1/src" -- source: "/google/cloud/ids/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-ids/$1/google-cloud-ids/src/main" +- source: "/google/cloud/ids/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-ids/$1/google-cloud-ids/src" - source: "/google/cloud/ids/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-ids/$1/samples/snippets/generated" diff --git a/java-infra-manager/.OwlBot-hermetic.yaml b/java-infra-manager/.OwlBot-hermetic.yaml index 1cef27a83b7a..470affd734f0 100644 --- a/java-infra-manager/.OwlBot-hermetic.yaml +++ b/java-infra-manager/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-infra-manager/grpc-google-.*/src" - "/java-infra-manager/proto-google-.*/src" -- "/java-infra-manager/google-.*/src/main" -- "/java-infra-manager/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-infra-manager/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-infra-manager/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-infra-manager/google-.*/src" - "/java-infra-manager/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/config/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-infra-manager/$1/proto-google-cloud-infra-manager-$1/src" - source: "/google/cloud/config/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-infra-manager/$1/grpc-google-cloud-infra-manager-$1/src" -- source: "/google/cloud/config/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-infra-manager/$1/google-cloud-infra-manager/src/main" +- source: "/google/cloud/config/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-infra-manager/$1/google-cloud-infra-manager/src" - source: "/google/cloud/config/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-infra-manager/$1/samples/snippets/generated" diff --git a/java-iot/.OwlBot-hermetic.yaml b/java-iot/.OwlBot-hermetic.yaml index e03e5c9644b8..3f3d084a78d2 100644 --- a/java-iot/.OwlBot-hermetic.yaml +++ b/java-iot/.OwlBot-hermetic.yaml @@ -17,22 +17,19 @@ deep-remove-regex: - "/java-iot/samples/snippets/generated" - "/java-iot/grpc-google-.*/src" - "/java-iot/proto-google-.*/src" -- "/java-iot/google-.*/src/main" -- "/java-iot/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-iot/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-iot/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-iot/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-iot/src/test/java/com/google/.*/iot/v1/it/ITSystemTest.java" +- "/.*google-cloud-iot/src/test/java/com/google/cloud/iot/v1/it/ITSystemTest.java" deep-copy-regex: - source: "/google/cloud/iot/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-iot/$1/proto-google-cloud-iot-$1/src" - source: "/google/cloud/iot/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-iot/$1/grpc-google-cloud-iot-$1/src" -- source: "/google/cloud/iot/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-iot/$1/google-cloud-iot/src/main" +- source: "/google/cloud/iot/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-iot/$1/google-cloud-iot/src" - source: "/google/cloud/iot/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-iot/$1/samples/snippets/generated" diff --git a/java-java-shopping-merchant-issue-resolution/.OwlBot-hermetic.yaml b/java-java-shopping-merchant-issue-resolution/.OwlBot-hermetic.yaml index 9df662cbf149..4c537d62342e 100644 --- a/java-java-shopping-merchant-issue-resolution/.OwlBot-hermetic.yaml +++ b/java-java-shopping-merchant-issue-resolution/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-java-shopping-merchant-issue-resolution/grpc-google-.*/src" - "/java-java-shopping-merchant-issue-resolution/proto-google-.*/src" -- "/java-java-shopping-merchant-issue-resolution/google-.*/src/main" -- "/java-java-shopping-merchant-issue-resolution/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-java-shopping-merchant-issue-resolution/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-java-shopping-merchant-issue-resolution/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-java-shopping-merchant-issue-resolution/google-.*/src" - "/java-java-shopping-merchant-issue-resolution/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/shopping/merchant/issueresolution/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-java-shopping-merchant-issue-resolution/$1/proto-google-shopping-merchant-issue-resolution-$1/src" - source: "/google/shopping/merchant/issueresolution/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-java-shopping-merchant-issue-resolution/$1/grpc-google-shopping-merchant-issue-resolution-$1/src" -- source: "/google/shopping/merchant/issueresolution/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-java-shopping-merchant-issue-resolution/$1/google-shopping-merchant-issue-resolution/src/main" +- source: "/google/shopping/merchant/issueresolution/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-java-shopping-merchant-issue-resolution/$1/google-shopping-merchant-issue-resolution/src" - source: "/google/shopping/merchant/issueresolution/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-java-shopping-merchant-issue-resolution/$1/samples/snippets/generated" diff --git a/java-java-shopping-merchant-order-tracking/.OwlBot-hermetic.yaml b/java-java-shopping-merchant-order-tracking/.OwlBot-hermetic.yaml index 5eec8f9491e4..676275b6ffed 100644 --- a/java-java-shopping-merchant-order-tracking/.OwlBot-hermetic.yaml +++ b/java-java-shopping-merchant-order-tracking/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-java-shopping-merchant-order-tracking/grpc-google-.*/src" - "/java-java-shopping-merchant-order-tracking/proto-google-.*/src" -- "/java-java-shopping-merchant-order-tracking/google-.*/src/main" -- "/java-java-shopping-merchant-order-tracking/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-java-shopping-merchant-order-tracking/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-java-shopping-merchant-order-tracking/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-java-shopping-merchant-order-tracking/google-.*/src" - "/java-java-shopping-merchant-order-tracking/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/shopping/merchant/ordertracking/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-java-shopping-merchant-order-tracking/$1/proto-google-shopping-merchant-order-tracking-$1/src" - source: "/google/shopping/merchant/ordertracking/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-java-shopping-merchant-order-tracking/$1/grpc-google-shopping-merchant-order-tracking-$1/src" -- source: "/google/shopping/merchant/ordertracking/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-java-shopping-merchant-order-tracking/$1/google-shopping-merchant-order-tracking/src/main" +- source: "/google/shopping/merchant/ordertracking/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-java-shopping-merchant-order-tracking/$1/google-shopping-merchant-order-tracking/src" - source: "/google/shopping/merchant/ordertracking/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-java-shopping-merchant-order-tracking/$1/samples/snippets/generated" diff --git a/java-kms/.OwlBot-hermetic.yaml b/java-kms/.OwlBot-hermetic.yaml index c1352c11bd12..ae489e0d9529 100644 --- a/java-kms/.OwlBot-hermetic.yaml +++ b/java-kms/.OwlBot-hermetic.yaml @@ -17,17 +17,15 @@ deep-remove-regex: - "/java-kms/samples/snippets/generated" - "/java-kms/grpc-google-.*/src" - "/java-kms/proto-google-.*/src" -- "/java-kms/google-.*/src/main" -- "/java-kms/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-kms/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-kms/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-kms/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/UntypedKeyName.java" - "/.*proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyName.java" - "/.*proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/KeyNames.java" -- "/.*google-cloud-kms/src/test/java/com/google/.*/kms/it/ITKmsTest.java" +- "/.*google-cloud-kms/src/test/java/com/google/cloud/kms/it/ITKmsTest.java" - "/.*proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/CryptoKeyPathName.java" deep-copy-regex: @@ -35,8 +33,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-kms/$1/proto-google-cloud-kms-$1/src" - source: "/google/cloud/kms/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-kms/$1/grpc-google-cloud-kms-$1/src" -- source: "/google/cloud/kms/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-kms/$1/google-cloud-kms/src/main" +- source: "/google/cloud/kms/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-kms/$1/google-cloud-kms/src" - source: "/google/cloud/kms/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-kms/$1/samples/snippets/generated" diff --git a/java-kmsinventory/.OwlBot-hermetic.yaml b/java-kmsinventory/.OwlBot-hermetic.yaml index 7b04f644b86f..7cf69b4cf3e8 100644 --- a/java-kmsinventory/.OwlBot-hermetic.yaml +++ b/java-kmsinventory/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-kmsinventory/grpc-google-.*/src" - "/java-kmsinventory/proto-google-.*/src" -- "/java-kmsinventory/google-.*/src/main" -- "/java-kmsinventory/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-kmsinventory/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-kmsinventory/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-kmsinventory/google-.*/src" - "/java-kmsinventory/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/kms/inventory/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-kmsinventory/$1/proto-google-cloud-kmsinventory-$1/src" - source: "/google/cloud/kms/inventory/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-kmsinventory/$1/grpc-google-cloud-kmsinventory-$1/src" -- source: "/google/cloud/kms/inventory/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-kmsinventory/$1/google-cloud-kmsinventory/src/main" +- source: "/google/cloud/kms/inventory/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-kmsinventory/$1/google-cloud-kmsinventory/src" - source: "/google/cloud/kms/inventory/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-kmsinventory/$1/samples/snippets/generated" diff --git a/java-language/.OwlBot-hermetic.yaml b/java-language/.OwlBot-hermetic.yaml index 7838f8035c42..3575314d1c5e 100644 --- a/java-language/.OwlBot-hermetic.yaml +++ b/java-language/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-language/samples/snippets/generated" - "/java-language/grpc-google-.*/src" - "/java-language/proto-google-.*/src" -- "/java-language/google-.*/src/main" -- "/java-language/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-language/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-language/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-language/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-language/$1/proto-google-cloud-language-$1/src" - source: "/google/cloud/language/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-language/$1/grpc-google-cloud-language-$1/src" -- source: "/google/cloud/language/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-language/$1/google-cloud-language/src/main" +- source: "/google/cloud/language/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-language/$1/google-cloud-language/src" - source: "/google/cloud/language/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-language/$1/samples/snippets/generated" diff --git a/java-licensemanager/.OwlBot-hermetic.yaml b/java-licensemanager/.OwlBot-hermetic.yaml index f5e0c45a9b0a..54141164978a 100644 --- a/java-licensemanager/.OwlBot-hermetic.yaml +++ b/java-licensemanager/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-licensemanager/grpc-google-.*/src" - "/java-licensemanager/proto-google-.*/src" -- "/java-licensemanager/google-.*/src/main" -- "/java-licensemanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-licensemanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-licensemanager/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-licensemanager/google-.*/src" - "/java-licensemanager/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/licensemanager/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-licensemanager/$1/proto-google-cloud-licensemanager-$1/src" - source: "/google/cloud/licensemanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-licensemanager/$1/grpc-google-cloud-licensemanager-$1/src" -- source: "/google/cloud/licensemanager/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-licensemanager/$1/google-cloud-licensemanager/src/main" +- source: "/google/cloud/licensemanager/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-licensemanager/$1/google-cloud-licensemanager/src" - source: "/google/cloud/licensemanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-licensemanager/$1/samples/snippets/generated" diff --git a/java-life-sciences/.OwlBot-hermetic.yaml b/java-life-sciences/.OwlBot-hermetic.yaml index 720701e587c2..ff8f09839eca 100644 --- a/java-life-sciences/.OwlBot-hermetic.yaml +++ b/java-life-sciences/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-life-sciences/samples/snippets/generated" - "/java-life-sciences/grpc-google-.*/src" - "/java-life-sciences/proto-google-.*/src" -- "/java-life-sciences/google-.*/src/main" -- "/java-life-sciences/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-life-sciences/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-life-sciences/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-life-sciences/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-life-sciences/$1/proto-google-cloud-life-sciences-$1/src" - source: "/google/cloud/lifesciences/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-life-sciences/$1/grpc-google-cloud-life-sciences-$1/src" -- source: "/google/cloud/lifesciences/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-life-sciences/$1/google-cloud-life-sciences/src/main" +- source: "/google/cloud/lifesciences/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-life-sciences/$1/google-cloud-life-sciences/src" - source: "/google/cloud/lifesciences/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-life-sciences/$1/samples/snippets/generated" diff --git a/java-locationfinder/.OwlBot-hermetic.yaml b/java-locationfinder/.OwlBot-hermetic.yaml index 643bb54672d8..531e37fe2169 100644 --- a/java-locationfinder/.OwlBot-hermetic.yaml +++ b/java-locationfinder/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-locationfinder/grpc-google-.*/src" - "/java-locationfinder/proto-google-.*/src" -- "/java-locationfinder/google-.*/src/main" -- "/java-locationfinder/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-locationfinder/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-locationfinder/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-locationfinder/google-.*/src" - "/java-locationfinder/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/locationfinder/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-locationfinder/$1/proto-google-cloud-locationfinder-$1/src" - source: "/google/cloud/locationfinder/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-locationfinder/$1/grpc-google-cloud-locationfinder-$1/src" -- source: "/google/cloud/locationfinder/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-locationfinder/$1/google-cloud-locationfinder/src/main" +- source: "/google/cloud/locationfinder/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-locationfinder/$1/google-cloud-locationfinder/src" - source: "/google/cloud/locationfinder/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-locationfinder/$1/samples/snippets/generated" diff --git a/java-lustre/.OwlBot-hermetic.yaml b/java-lustre/.OwlBot-hermetic.yaml index 4d15a028513c..3c2b5a3e7c13 100644 --- a/java-lustre/.OwlBot-hermetic.yaml +++ b/java-lustre/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-lustre/grpc-google-.*/src" - "/java-lustre/proto-google-.*/src" -- "/java-lustre/google-.*/src/main" -- "/java-lustre/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-lustre/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-lustre/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-lustre/google-.*/src" - "/java-lustre/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/lustre/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-lustre/$1/proto-google-cloud-lustre-$1/src" - source: "/google/cloud/lustre/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-lustre/$1/grpc-google-cloud-lustre-$1/src" -- source: "/google/cloud/lustre/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-lustre/$1/google-cloud-lustre/src/main" +- source: "/google/cloud/lustre/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-lustre/$1/google-cloud-lustre/src" - source: "/google/cloud/lustre/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-lustre/$1/samples/snippets/generated" diff --git a/java-maintenance/.OwlBot-hermetic.yaml b/java-maintenance/.OwlBot-hermetic.yaml index 0f60b0a7933e..b2f51e965a8b 100644 --- a/java-maintenance/.OwlBot-hermetic.yaml +++ b/java-maintenance/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-maintenance/grpc-google-.*/src" - "/java-maintenance/proto-google-.*/src" -- "/java-maintenance/google-.*/src/main" -- "/java-maintenance/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-maintenance/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-maintenance/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-maintenance/google-.*/src" - "/java-maintenance/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/maintenance/api/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maintenance/$1/proto-google-cloud-maintenance-$1/src" - source: "/google/cloud/maintenance/api/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maintenance/$1/grpc-google-cloud-maintenance-$1/src" -- source: "/google/cloud/maintenance/api/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-maintenance/$1/google-cloud-maintenance/src/main" +- source: "/google/cloud/maintenance/api/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-maintenance/$1/google-cloud-maintenance/src" - source: "/google/cloud/maintenance/api/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maintenance/$1/samples/snippets/generated" diff --git a/java-managed-identities/.OwlBot-hermetic.yaml b/java-managed-identities/.OwlBot-hermetic.yaml index 7a880bb440f9..d6211988d561 100644 --- a/java-managed-identities/.OwlBot-hermetic.yaml +++ b/java-managed-identities/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-managed-identities/samples/snippets/generated" - "/java-managed-identities/grpc-google-.*/src" - "/java-managed-identities/proto-google-.*/src" -- "/java-managed-identities/google-.*/src/main" -- "/java-managed-identities/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-managed-identities/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-managed-identities/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-managed-identities/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/managedidentities/(v\\d)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-managed-identities/$1/proto-google-cloud-managed-identities-$1/src" - source: "/google/cloud/managedidentities/(v\\d)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-managed-identities/$1/grpc-google-cloud-managed-identities-$1/src" -- source: "/google/cloud/managedidentities/(v\\d)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-managed-identities/$1/google-cloud-managed-identities/src/main" +- source: "/google/cloud/managedidentities/(v\\d)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-managed-identities/$1/google-cloud-managed-identities/src" - source: "/google/cloud/managedidentities/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-managed-identities/$1/samples/snippets/generated" diff --git a/java-managedkafka/.OwlBot-hermetic.yaml b/java-managedkafka/.OwlBot-hermetic.yaml index 7c7c06cc025f..fe5fb3a73323 100644 --- a/java-managedkafka/.OwlBot-hermetic.yaml +++ b/java-managedkafka/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-managedkafka/grpc-google-.*/src" - "/java-managedkafka/proto-google-.*/src" -- "/java-managedkafka/google-.*/src/main" -- "/java-managedkafka/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-managedkafka/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-managedkafka/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-managedkafka/google-.*/src" - "/java-managedkafka/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/managedkafka/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-managedkafka/$1/proto-google-cloud-managedkafka-$1/src" - source: "/google/cloud/managedkafka/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-managedkafka/$1/grpc-google-cloud-managedkafka-$1/src" -- source: "/google/cloud/managedkafka/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-managedkafka/$1/google-cloud-managedkafka/src/main" +- source: "/google/cloud/managedkafka/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-managedkafka/$1/google-cloud-managedkafka/src" - source: "/google/cloud/managedkafka/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-managedkafka/$1/samples/snippets/generated" diff --git a/java-maps-addressvalidation/.OwlBot-hermetic.yaml b/java-maps-addressvalidation/.OwlBot-hermetic.yaml index 2bbc656606f6..6beb4c93ba5b 100644 --- a/java-maps-addressvalidation/.OwlBot-hermetic.yaml +++ b/java-maps-addressvalidation/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-maps-addressvalidation/grpc-google-.*/src" - "/java-maps-addressvalidation/proto-google-.*/src" -- "/java-maps-addressvalidation/google-.*/src/main" -- "/java-maps-addressvalidation/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-maps-addressvalidation/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-maps-addressvalidation/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-maps-addressvalidation/google-.*/src" - "/java-maps-addressvalidation/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/maps/addressvalidation/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-addressvalidation/$1/proto-google-maps-addressvalidation-$1/src" - source: "/google/maps/addressvalidation/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-addressvalidation/$1/grpc-google-maps-addressvalidation-$1/src" -- source: "/google/maps/addressvalidation/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-maps-addressvalidation/$1/google-maps-addressvalidation/src/main" +- source: "/google/maps/addressvalidation/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-maps-addressvalidation/$1/google-maps-addressvalidation/src" - source: "/google/maps/addressvalidation/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-addressvalidation/$1/samples/snippets/generated" diff --git a/java-maps-area-insights/.OwlBot-hermetic.yaml b/java-maps-area-insights/.OwlBot-hermetic.yaml index 956a4c05f07a..8cec6d3a27e9 100644 --- a/java-maps-area-insights/.OwlBot-hermetic.yaml +++ b/java-maps-area-insights/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-maps-area-insights/grpc-google-.*/src" - "/java-maps-area-insights/proto-google-.*/src" -- "/java-maps-area-insights/google-.*/src/main" -- "/java-maps-area-insights/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-maps-area-insights/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-maps-area-insights/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-maps-area-insights/google-.*/src" - "/java-maps-area-insights/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/maps/areainsights/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-area-insights/$1/proto-google-maps-area-insights-$1/src" - source: "/google/maps/areainsights/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-area-insights/$1/grpc-google-maps-area-insights-$1/src" -- source: "/google/maps/areainsights/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-maps-area-insights/$1/google-maps-area-insights/src/main" +- source: "/google/maps/areainsights/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-maps-area-insights/$1/google-maps-area-insights/src" - source: "/google/maps/areainsights/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-area-insights/$1/samples/snippets/generated" diff --git a/java-maps-fleetengine-delivery/.OwlBot-hermetic.yaml b/java-maps-fleetengine-delivery/.OwlBot-hermetic.yaml index 0a82d1edc52b..d708960cb963 100644 --- a/java-maps-fleetengine-delivery/.OwlBot-hermetic.yaml +++ b/java-maps-fleetengine-delivery/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-maps-fleetengine-delivery/grpc-google-.*/src" - "/java-maps-fleetengine-delivery/proto-google-.*/src" -- "/java-maps-fleetengine-delivery/google-.*/src/main" -- "/java-maps-fleetengine-delivery/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-maps-fleetengine-delivery/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-maps-fleetengine-delivery/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-maps-fleetengine-delivery/google-.*/src" - "/java-maps-fleetengine-delivery/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/maps/fleetengine/delivery/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-fleetengine-delivery/$1/proto-google-maps-fleetengine-delivery-$1/src" - source: "/google/maps/fleetengine/delivery/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-fleetengine-delivery/$1/grpc-google-maps-fleetengine-delivery-$1/src" -- source: "/google/maps/fleetengine/delivery/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-maps-fleetengine-delivery/$1/google-maps-fleetengine-delivery/src/main" +- source: "/google/maps/fleetengine/delivery/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-maps-fleetengine-delivery/$1/google-maps-fleetengine-delivery/src" - source: "/google/maps/fleetengine/delivery/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-fleetengine-delivery/$1/samples/snippets/generated" diff --git a/java-maps-fleetengine/.OwlBot-hermetic.yaml b/java-maps-fleetengine/.OwlBot-hermetic.yaml index dbb5b459b6b5..fc575f9d47a9 100644 --- a/java-maps-fleetengine/.OwlBot-hermetic.yaml +++ b/java-maps-fleetengine/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-maps-fleetengine/grpc-google-.*/src" - "/java-maps-fleetengine/proto-google-.*/src" -- "/java-maps-fleetengine/google-.*/src/main" -- "/java-maps-fleetengine/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-maps-fleetengine/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-maps-fleetengine/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-maps-fleetengine/google-.*/src" - "/java-maps-fleetengine/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/maps/fleetengine/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-fleetengine/$1/proto-google-maps-fleetengine-$1/src" - source: "/google/maps/fleetengine/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-fleetengine/$1/grpc-google-maps-fleetengine-$1/src" -- source: "/google/maps/fleetengine/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-maps-fleetengine/$1/google-maps-fleetengine/src/main" +- source: "/google/maps/fleetengine/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-maps-fleetengine/$1/google-maps-fleetengine/src" - source: "/google/maps/fleetengine/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-fleetengine/$1/samples/snippets/generated" diff --git a/java-maps-geocode/.OwlBot-hermetic.yaml b/java-maps-geocode/.OwlBot-hermetic.yaml index aed78c88ac4d..0eb3d1729c18 100644 --- a/java-maps-geocode/.OwlBot-hermetic.yaml +++ b/java-maps-geocode/.OwlBot-hermetic.yaml @@ -16,13 +16,11 @@ deep-remove-regex: - "/java-maps-geocode/grpc-google-.*/src" - "/java-maps-geocode/proto-google-.*/src" -- "/java-maps-geocode/google-.*/src/main" -- "/java-maps-geocode/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-maps-geocode/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-maps-geocode/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-maps-geocode/google-.*/src" - "/java-maps-geocode/samples/snippets/generated" deep-preserve-regex: +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*google-.*/src/main/java/.*/stub/Version.java" deep-copy-regex: @@ -30,8 +28,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-maps-geocode/$1/proto-google-maps-geocode-$1/src" - source: "/google/maps/geocode/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-geocode/$1/grpc-google-maps-geocode-$1/src" -- source: "/google/maps/geocode/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-maps-geocode/$1/google-maps-geocode/src/main" +- source: "/google/maps/geocode/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-maps-geocode/$1/google-maps-geocode/src" - source: "/google/maps/geocode/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-geocode/$1/samples/snippets/generated" diff --git a/java-maps-mapmanagement/.OwlBot-hermetic.yaml b/java-maps-mapmanagement/.OwlBot-hermetic.yaml index fbce07f3ebee..9cd55603c491 100644 --- a/java-maps-mapmanagement/.OwlBot-hermetic.yaml +++ b/java-maps-mapmanagement/.OwlBot-hermetic.yaml @@ -16,20 +16,19 @@ deep-remove-regex: - "/java-maps-mapmanagement/grpc-google-.*/src" - "/java-maps-mapmanagement/proto-google-.*/src" -- "/java-maps-mapmanagement/google-.*/src/main" -- "/java-maps-mapmanagement/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-maps-mapmanagement/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-maps-mapmanagement/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-maps-mapmanagement/google-.*/src" - "/java-maps-mapmanagement/samples/snippets/generated" deep-preserve-regex: +- "/java-maps-mapmanagement/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/maps/mapmanagement/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-mapmanagement/$1/proto-google-maps-mapmanagement-$1/src" - source: "/google/maps/mapmanagement/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-mapmanagement/$1/grpc-google-maps-mapmanagement-$1/src" -- source: "/google/maps/mapmanagement/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-maps-mapmanagement/$1/google-maps-mapmanagement/src/main" +- source: "/google/maps/mapmanagement/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-maps-mapmanagement/$1/google-maps-mapmanagement/src" - source: "/google/maps/mapmanagement/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-mapmanagement/$1/samples/snippets/generated" diff --git a/java-maps-mapsplatformdatasets/.OwlBot-hermetic.yaml b/java-maps-mapsplatformdatasets/.OwlBot-hermetic.yaml index a72f8b7ce17f..048353339568 100644 --- a/java-maps-mapsplatformdatasets/.OwlBot-hermetic.yaml +++ b/java-maps-mapsplatformdatasets/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-maps-mapsplatformdatasets/grpc-google-.*/src" - "/java-maps-mapsplatformdatasets/proto-google-.*/src" -- "/java-maps-mapsplatformdatasets/google-.*/src/main" -- "/java-maps-mapsplatformdatasets/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-maps-mapsplatformdatasets/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-maps-mapsplatformdatasets/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-maps-mapsplatformdatasets/google-.*/src" - "/java-maps-mapsplatformdatasets/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/maps/mapsplatformdatasets/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-mapsplatformdatasets/$1/proto-google-maps-mapsplatformdatasets-$1/src" - source: "/google/maps/mapsplatformdatasets/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-mapsplatformdatasets/$1/grpc-google-maps-mapsplatformdatasets-$1/src" -- source: "/google/maps/mapsplatformdatasets/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-maps-mapsplatformdatasets/$1/google-maps-mapsplatformdatasets/src/main" +- source: "/google/maps/mapsplatformdatasets/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-maps-mapsplatformdatasets/$1/google-maps-mapsplatformdatasets/src" - source: "/google/maps/mapsplatformdatasets/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-mapsplatformdatasets/$1/samples/snippets/generated" diff --git a/java-maps-places/.OwlBot-hermetic.yaml b/java-maps-places/.OwlBot-hermetic.yaml index 217211ba94ef..d0d48165c534 100644 --- a/java-maps-places/.OwlBot-hermetic.yaml +++ b/java-maps-places/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-maps-places/grpc-google-.*/src" - "/java-maps-places/proto-google-.*/src" -- "/java-maps-places/google-.*/src/main" -- "/java-maps-places/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-maps-places/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-maps-places/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-maps-places/google-.*/src" - "/java-maps-places/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/maps/places/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-places/$1/proto-google-maps-places-$1/src" - source: "/google/maps/places/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-places/$1/grpc-google-maps-places-$1/src" -- source: "/google/maps/places/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-maps-places/$1/google-maps-places/src/main" +- source: "/google/maps/places/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-maps-places/$1/google-maps-places/src" - source: "/google/maps/places/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-places/$1/samples/snippets/generated" diff --git a/java-maps-routeoptimization/.OwlBot-hermetic.yaml b/java-maps-routeoptimization/.OwlBot-hermetic.yaml index 9f2e50a83bf3..e05ba15b2aa4 100644 --- a/java-maps-routeoptimization/.OwlBot-hermetic.yaml +++ b/java-maps-routeoptimization/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-maps-routeoptimization/grpc-google-.*/src" - "/java-maps-routeoptimization/proto-google-.*/src" -- "/java-maps-routeoptimization/google-.*/src/main" -- "/java-maps-routeoptimization/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-maps-routeoptimization/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-maps-routeoptimization/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-maps-routeoptimization/google-.*/src" - "/java-maps-routeoptimization/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/maps/routeoptimization/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-routeoptimization/$1/proto-google-maps-routeoptimization-$1/src" - source: "/google/maps/routeoptimization/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-routeoptimization/$1/grpc-google-maps-routeoptimization-$1/src" -- source: "/google/maps/routeoptimization/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-maps-routeoptimization/$1/google-maps-routeoptimization/src/main" +- source: "/google/maps/routeoptimization/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-maps-routeoptimization/$1/google-maps-routeoptimization/src" - source: "/google/maps/routeoptimization/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-routeoptimization/$1/samples/snippets/generated" diff --git a/java-maps-routing/.OwlBot-hermetic.yaml b/java-maps-routing/.OwlBot-hermetic.yaml index 0056a969cff8..75058a8ea00d 100644 --- a/java-maps-routing/.OwlBot-hermetic.yaml +++ b/java-maps-routing/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-maps-routing/grpc-google-.*/src" - "/java-maps-routing/proto-google-.*/src" -- "/java-maps-routing/google-.*/src/main" -- "/java-maps-routing/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-maps-routing/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-maps-routing/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-maps-routing/google-.*/src" - "/java-maps-routing/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/maps/routing/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-routing/$1/proto-google-maps-routing-$1/src" - source: "/google/maps/routing/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-routing/$1/grpc-google-maps-routing-$1/src" -- source: "/google/maps/routing/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-maps-routing/$1/google-maps-routing/src/main" +- source: "/google/maps/routing/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-maps-routing/$1/google-maps-routing/src" - source: "/google/maps/routing/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-routing/$1/samples/snippets/generated" diff --git a/java-maps-solar/.OwlBot-hermetic.yaml b/java-maps-solar/.OwlBot-hermetic.yaml index eac5622f3466..3939a2705e84 100644 --- a/java-maps-solar/.OwlBot-hermetic.yaml +++ b/java-maps-solar/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-maps-solar/grpc-google-.*/src" - "/java-maps-solar/proto-google-.*/src" -- "/java-maps-solar/google-.*/src/main" -- "/java-maps-solar/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-maps-solar/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-maps-solar/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-maps-solar/google-.*/src" - "/java-maps-solar/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/maps/solar/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-maps-solar/$1/proto-google-maps-solar-$1/src" - source: "/google/maps/solar/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-maps-solar/$1/grpc-google-maps-solar-$1/src" -- source: "/google/maps/solar/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-maps-solar/$1/google-maps-solar/src/main" +- source: "/google/maps/solar/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-maps-solar/$1/google-maps-solar/src" - source: "/google/maps/solar/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-maps-solar/$1/samples/snippets/generated" diff --git a/java-marketingplatformadminapi/.OwlBot-hermetic.yaml b/java-marketingplatformadminapi/.OwlBot-hermetic.yaml index d130c81e93d0..4634763f98b4 100644 --- a/java-marketingplatformadminapi/.OwlBot-hermetic.yaml +++ b/java-marketingplatformadminapi/.OwlBot-hermetic.yaml @@ -21,15 +21,15 @@ deep-remove-regex: deep-preserve-regex: - "/.*admin.*/src/main/java/.*/stub/Version.java" -- "/.*admin.*/src/test/java/com/google/.*/v.*/it/IT.*Test.java" +- "/.*admin.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" deep-copy-regex: - source: "/google/marketingplatform/admin/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-marketingplatformadminapi/$1/proto-admin-$1/src" - source: "/google/marketingplatform/admin/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-marketingplatformadminapi/$1/grpc-admin-$1/src" -- source: "/google/marketingplatform/admin/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-marketingplatformadminapi/$1/admin/src/main" +- source: "/google/marketingplatform/admin/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-marketingplatformadminapi/$1/admin/src" - source: "/google/marketingplatform/admin/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-marketingplatformadminapi/$1/samples/snippets/generated" diff --git a/java-mediatranslation/.OwlBot-hermetic.yaml b/java-mediatranslation/.OwlBot-hermetic.yaml index 459fbea5a4e8..2f0f15ea1354 100644 --- a/java-mediatranslation/.OwlBot-hermetic.yaml +++ b/java-mediatranslation/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-mediatranslation/samples/snippets/generated" - "/java-mediatranslation/grpc-google-.*/src" - "/java-mediatranslation/proto-google-.*/src" -- "/java-mediatranslation/google-.*/src/main" -- "/java-mediatranslation/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-mediatranslation/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-mediatranslation/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-mediatranslation/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-mediatranslation/$1/proto-google-cloud-mediatranslation-$1/src" - source: "/google/cloud/mediatranslation/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-mediatranslation/$1/grpc-google-cloud-mediatranslation-$1/src" -- source: "/google/cloud/mediatranslation/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-mediatranslation/$1/google-cloud-mediatranslation/src/main" +- source: "/google/cloud/mediatranslation/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-mediatranslation/$1/google-cloud-mediatranslation/src" - source: "/google/cloud/mediatranslation/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-mediatranslation/$1/samples/snippets/generated" diff --git a/java-meet/.OwlBot-hermetic.yaml b/java-meet/.OwlBot-hermetic.yaml index 03726260e897..98c1a22ecfae 100644 --- a/java-meet/.OwlBot-hermetic.yaml +++ b/java-meet/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-meet/grpc-google-.*/src" - "/java-meet/proto-google-.*/src" -- "/java-meet/google-.*/src/main" -- "/java-meet/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-meet/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-meet/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-meet/google-.*/src" - "/java-meet/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/apps/meet/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-meet/$1/proto-google-cloud-meet-$1/src" - source: "/google/apps/meet/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-meet/$1/grpc-google-cloud-meet-$1/src" -- source: "/google/apps/meet/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-meet/$1/google-cloud-meet/src/main" +- source: "/google/apps/meet/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-meet/$1/google-cloud-meet/src" - source: "/google/apps/meet/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-meet/$1/samples/snippets/generated" diff --git a/java-memcache/.OwlBot-hermetic.yaml b/java-memcache/.OwlBot-hermetic.yaml index 186ceb1d65a5..e8277f172055 100644 --- a/java-memcache/.OwlBot-hermetic.yaml +++ b/java-memcache/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-memcache/samples/snippets/generated" - "/java-memcache/grpc-google-.*/src" - "/java-memcache/proto-google-.*/src" -- "/java-memcache/google-.*/src/main" -- "/java-memcache/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-memcache/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-memcache/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-memcache/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/memcache/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-memcache/$1/proto-google-cloud-memcache-$1/src" - source: "/google/cloud/memcache/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-memcache/$1/grpc-google-cloud-memcache-$1/src" -- source: "/google/cloud/memcache/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-memcache/$1/google-cloud-memcache/src/main" +- source: "/google/cloud/memcache/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-memcache/$1/google-cloud-memcache/src" - source: "/google/cloud/memcache/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-memcache/$1/samples/snippets/generated" diff --git a/java-migrationcenter/.OwlBot-hermetic.yaml b/java-migrationcenter/.OwlBot-hermetic.yaml index cd43d683b451..4b7671f76131 100644 --- a/java-migrationcenter/.OwlBot-hermetic.yaml +++ b/java-migrationcenter/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-migrationcenter/grpc-google-.*/src" - "/java-migrationcenter/proto-google-.*/src" -- "/java-migrationcenter/google-.*/src/main" -- "/java-migrationcenter/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-migrationcenter/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-migrationcenter/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-migrationcenter/google-.*/src" - "/java-migrationcenter/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/migrationcenter/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-migrationcenter/$1/proto-google-cloud-migrationcenter-$1/src" - source: "/google/cloud/migrationcenter/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-migrationcenter/$1/grpc-google-cloud-migrationcenter-$1/src" -- source: "/google/cloud/migrationcenter/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-migrationcenter/$1/google-cloud-migrationcenter/src/main" +- source: "/google/cloud/migrationcenter/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-migrationcenter/$1/google-cloud-migrationcenter/src" - source: "/google/cloud/migrationcenter/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-migrationcenter/$1/samples/snippets/generated" diff --git a/java-modelarmor/.OwlBot-hermetic.yaml b/java-modelarmor/.OwlBot-hermetic.yaml index f5e773891d03..5d05fe9ead89 100644 --- a/java-modelarmor/.OwlBot-hermetic.yaml +++ b/java-modelarmor/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-modelarmor/grpc-google-.*/src" - "/java-modelarmor/proto-google-.*/src" -- "/java-modelarmor/google-.*/src/main" -- "/java-modelarmor/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-modelarmor/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-modelarmor/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-modelarmor/google-.*/src" - "/java-modelarmor/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/modelarmor/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-modelarmor/$1/proto-google-cloud-modelarmor-$1/src" - source: "/google/cloud/modelarmor/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-modelarmor/$1/grpc-google-cloud-modelarmor-$1/src" -- source: "/google/cloud/modelarmor/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-modelarmor/$1/google-cloud-modelarmor/src/main" +- source: "/google/cloud/modelarmor/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-modelarmor/$1/google-cloud-modelarmor/src" - source: "/google/cloud/modelarmor/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-modelarmor/$1/samples/snippets/generated" diff --git a/java-monitoring-dashboards/.OwlBot-hermetic.yaml b/java-monitoring-dashboards/.OwlBot-hermetic.yaml index 6b3c3d33e1fc..2324e9bb2d73 100644 --- a/java-monitoring-dashboards/.OwlBot-hermetic.yaml +++ b/java-monitoring-dashboards/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-monitoring-dashboards/grpc-google-.*/src" - "/java-monitoring-dashboards/proto-google-.*/src" -- "/java-monitoring-dashboards/google-.*/src/main" -- "/java-monitoring-dashboards/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-monitoring-dashboards/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-monitoring-dashboards/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-monitoring-dashboards/google-.*/src" - "/java-monitoring-dashboards/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/monitoring/dashboard/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-monitoring-dashboards/$1/proto-google-cloud-monitoring-dashboard-$1/src" - source: "/google/monitoring/dashboard/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-monitoring-dashboards/$1/grpc-google-cloud-monitoring-dashboard-$1/src" -- source: "/google/monitoring/dashboard/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-monitoring-dashboards/$1/google-cloud-monitoring-dashboard/src/main" +- source: "/google/monitoring/dashboard/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-monitoring-dashboards/$1/google-cloud-monitoring-dashboard/src" - source: "/google/monitoring/dashboard/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-monitoring-dashboards/$1/samples/snippets/generated" diff --git a/java-monitoring-metricsscope/.OwlBot-hermetic.yaml b/java-monitoring-metricsscope/.OwlBot-hermetic.yaml index e5d3e421bb4d..4b49090291c1 100644 --- a/java-monitoring-metricsscope/.OwlBot-hermetic.yaml +++ b/java-monitoring-metricsscope/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-monitoring-metricsscope/grpc-google-.*/src" - "/java-monitoring-metricsscope/proto-google-.*/src" -- "/java-monitoring-metricsscope/google-.*/src/main" -- "/java-monitoring-metricsscope/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-monitoring-metricsscope/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-monitoring-metricsscope/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-monitoring-metricsscope/google-.*/src" - "/java-monitoring-metricsscope/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/monitoring/metricsscope/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-monitoring-metricsscope/$1/proto-google-cloud-monitoring-metricsscope-$1/src" - source: "/google/monitoring/metricsscope/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-monitoring-metricsscope/$1/grpc-google-cloud-monitoring-metricsscope-$1/src" -- source: "/google/monitoring/metricsscope/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-monitoring-metricsscope/$1/google-cloud-monitoring-metricsscope/src/main" +- source: "/google/monitoring/metricsscope/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-monitoring-metricsscope/$1/google-cloud-monitoring-metricsscope/src" - source: "/google/monitoring/metricsscope/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-monitoring-metricsscope/$1/samples/snippets/generated" diff --git a/java-monitoring/.OwlBot-hermetic.yaml b/java-monitoring/.OwlBot-hermetic.yaml index 069ccd62074d..c840ec761edc 100644 --- a/java-monitoring/.OwlBot-hermetic.yaml +++ b/java-monitoring/.OwlBot-hermetic.yaml @@ -16,23 +16,21 @@ deep-remove-regex: - "/java-monitoring/grpc-google-.*/src" - "/java-monitoring/proto-google-.*/src" -- "/java-monitoring/google-.*/src/main" -- "/java-monitoring/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-monitoring/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-monitoring/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-monitoring/google-.*/src" - "/java-monitoring/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-monitoring/src/test/java/com/google/.*/monitoring/v3/ITVPCServiceControlTest.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-monitoring/src/test/java/com/google/cloud/monitoring/v3/ITVPCServiceControlTest.java" deep-copy-regex: - source: "/google/monitoring/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-monitoring/$1/proto-google-cloud-monitoring-$1/src" - source: "/google/monitoring/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-monitoring/$1/grpc-google-cloud-monitoring-$1/src" -- source: "/google/monitoring/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-monitoring/$1/google-cloud-monitoring/src/main" +- source: "/google/monitoring/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-monitoring/$1/google-cloud-monitoring/src" - source: "/google/monitoring/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-monitoring/$1/samples/snippets/generated" diff --git a/java-netapp/.OwlBot-hermetic.yaml b/java-netapp/.OwlBot-hermetic.yaml index a65887398699..a6e9ede88ec3 100644 --- a/java-netapp/.OwlBot-hermetic.yaml +++ b/java-netapp/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-netapp/grpc-google-.*/src" - "/java-netapp/proto-google-.*/src" -- "/java-netapp/google-.*/src/main" -- "/java-netapp/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-netapp/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-netapp/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-netapp/google-.*/src" - "/java-netapp/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/netapp/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-netapp/$1/proto-google-cloud-netapp-$1/src" - source: "/google/cloud/netapp/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-netapp/$1/grpc-google-cloud-netapp-$1/src" -- source: "/google/cloud/netapp/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-netapp/$1/google-cloud-netapp/src/main" +- source: "/google/cloud/netapp/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-netapp/$1/google-cloud-netapp/src" - source: "/google/cloud/netapp/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-netapp/$1/samples/snippets/generated" diff --git a/java-network-management/.OwlBot-hermetic.yaml b/java-network-management/.OwlBot-hermetic.yaml index 417e5e15d754..0bf790166b3b 100644 --- a/java-network-management/.OwlBot-hermetic.yaml +++ b/java-network-management/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-network-management/samples/snippets/generated" - "/java-network-management/grpc-google-.*/src" - "/java-network-management/proto-google-.*/src" -- "/java-network-management/google-.*/src/main" -- "/java-network-management/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-network-management/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-network-management/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-network-management/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/networkmanagement/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-network-management/$1/proto-google-cloud-network-management-$1/src" - source: "/google/cloud/networkmanagement/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-network-management/$1/grpc-google-cloud-network-management-$1/src" -- source: "/google/cloud/networkmanagement/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-network-management/$1/google-cloud-network-management/src/main" +- source: "/google/cloud/networkmanagement/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-network-management/$1/google-cloud-network-management/src" - source: "/google/cloud/networkmanagement/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-network-management/$1/samples/snippets/generated" diff --git a/java-network-security/.OwlBot-hermetic.yaml b/java-network-security/.OwlBot-hermetic.yaml index 2c5ca7aae476..c4f54c956193 100644 --- a/java-network-security/.OwlBot-hermetic.yaml +++ b/java-network-security/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-network-security/samples/snippets/generated" - "/java-network-security/grpc-google-.*/src" - "/java-network-security/proto-google-.*/src" -- "/java-network-security/google-.*/src/main" -- "/java-network-security/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-network-security/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-network-security/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-network-security/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/networksecurity/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-network-security/$1/proto-google-cloud-network-security-$1/src" - source: "/google/cloud/networksecurity/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-network-security/$1/grpc-google-cloud-network-security-$1/src" -- source: "/google/cloud/networksecurity/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-network-security/$1/google-cloud-network-security/src/main" +- source: "/google/cloud/networksecurity/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-network-security/$1/google-cloud-network-security/src" - source: "/google/cloud/networksecurity/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-network-security/$1/samples/snippets/generated" diff --git a/java-networkconnectivity/.OwlBot-hermetic.yaml b/java-networkconnectivity/.OwlBot-hermetic.yaml index a5cd8eb38844..caf9c6a0961f 100644 --- a/java-networkconnectivity/.OwlBot-hermetic.yaml +++ b/java-networkconnectivity/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-networkconnectivity/samples/snippets/generated" - "/java-networkconnectivity/grpc-google-.*/src" - "/java-networkconnectivity/proto-google-.*/src" -- "/java-networkconnectivity/google-.*/src/main" -- "/java-networkconnectivity/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-networkconnectivity/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-networkconnectivity/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-networkconnectivity/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/networkconnectivity/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-networkconnectivity/$1/proto-google-cloud-networkconnectivity-$1/src" - source: "/google/cloud/networkconnectivity/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-networkconnectivity/$1/grpc-google-cloud-networkconnectivity-$1/src" -- source: "/google/cloud/networkconnectivity/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-networkconnectivity/$1/google-cloud-networkconnectivity/src/main" +- source: "/google/cloud/networkconnectivity/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-networkconnectivity/$1/google-cloud-networkconnectivity/src" - source: "/google/cloud/networkconnectivity/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-networkconnectivity/$1/samples/snippets/generated" diff --git a/java-networkservices/.OwlBot-hermetic.yaml b/java-networkservices/.OwlBot-hermetic.yaml index ef2b339d8d08..c8fc49ee0d72 100644 --- a/java-networkservices/.OwlBot-hermetic.yaml +++ b/java-networkservices/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-networkservices/grpc-google-.*/src" - "/java-networkservices/proto-google-.*/src" -- "/java-networkservices/google-.*/src/main" -- "/java-networkservices/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-networkservices/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-networkservices/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-networkservices/google-.*/src" - "/java-networkservices/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/networkservices/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-networkservices/$1/proto-google-cloud-networkservices-$1/src" - source: "/google/cloud/networkservices/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-networkservices/$1/grpc-google-cloud-networkservices-$1/src" -- source: "/google/cloud/networkservices/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-networkservices/$1/google-cloud-networkservices/src/main" +- source: "/google/cloud/networkservices/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-networkservices/$1/google-cloud-networkservices/src" - source: "/google/cloud/networkservices/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-networkservices/$1/samples/snippets/generated" diff --git a/java-notebooks/.OwlBot-hermetic.yaml b/java-notebooks/.OwlBot-hermetic.yaml index 84a6469ac5b3..b27fb18c1f19 100644 --- a/java-notebooks/.OwlBot-hermetic.yaml +++ b/java-notebooks/.OwlBot-hermetic.yaml @@ -17,18 +17,15 @@ deep-remove-regex: - "/java-notebooks/samples/snippets/generated" - "/java-notebooks/grpc-google-.*/src" - "/java-notebooks/proto-google-.*/src" -- "/java-notebooks/google-.*/src/main" -- "/java-notebooks/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-notebooks/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-notebooks/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-notebooks/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-.*/src/test/java/com/google/.*/v.*/it/.*.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/.*.java" deep-copy-regex: -- source: "/google/cloud/notebooks/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-notebooks/$1/google-cloud-notebooks/src/main" +- source: "/google/cloud/notebooks/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-notebooks/$1/google-cloud-notebooks/src" - source: "/google/cloud/notebooks/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-notebooks/$1/proto-google-cloud-notebooks-$1/src" - source: "/google/cloud/notebooks/(v.*)/.*-java/grpc-google-.*/src" diff --git a/java-optimization/.OwlBot-hermetic.yaml b/java-optimization/.OwlBot-hermetic.yaml index 7bc4d06c9c3a..5a09812f1ae0 100644 --- a/java-optimization/.OwlBot-hermetic.yaml +++ b/java-optimization/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-optimization/samples/snippets/generated" - "/java-optimization/grpc-google-.*/src" - "/java-optimization/proto-google-.*/src" -- "/java-optimization/google-.*/src/main" -- "/java-optimization/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-optimization/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-optimization/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-optimization/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/optimization/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-optimization/$1/proto-google-cloud-optimization-$1/src" - source: "/google/cloud/optimization/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-optimization/$1/grpc-google-cloud-optimization-$1/src" -- source: "/google/cloud/optimization/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-optimization/$1/google-cloud-optimization/src/main" +- source: "/google/cloud/optimization/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-optimization/$1/google-cloud-optimization/src" - source: "/google/cloud/optimization/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-optimization/$1/samples/snippets/generated" diff --git a/java-oracledatabase/.OwlBot-hermetic.yaml b/java-oracledatabase/.OwlBot-hermetic.yaml index 677ec9c5ade3..37dfe543f944 100644 --- a/java-oracledatabase/.OwlBot-hermetic.yaml +++ b/java-oracledatabase/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-oracledatabase/grpc-google-.*/src" - "/java-oracledatabase/proto-google-.*/src" -- "/java-oracledatabase/google-.*/src/main" -- "/java-oracledatabase/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-oracledatabase/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-oracledatabase/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-oracledatabase/google-.*/src" - "/java-oracledatabase/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/oracledatabase/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-oracledatabase/$1/proto-google-cloud-oracledatabase-$1/src" - source: "/google/cloud/oracledatabase/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-oracledatabase/$1/grpc-google-cloud-oracledatabase-$1/src" -- source: "/google/cloud/oracledatabase/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-oracledatabase/$1/google-cloud-oracledatabase/src/main" +- source: "/google/cloud/oracledatabase/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-oracledatabase/$1/google-cloud-oracledatabase/src" - source: "/google/cloud/oracledatabase/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-oracledatabase/$1/samples/snippets/generated" diff --git a/java-orchestration-airflow/.OwlBot-hermetic.yaml b/java-orchestration-airflow/.OwlBot-hermetic.yaml index 1b220510f422..ddfd96e63ec0 100644 --- a/java-orchestration-airflow/.OwlBot-hermetic.yaml +++ b/java-orchestration-airflow/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-orchestration-airflow/samples/snippets/generated" - "/java-orchestration-airflow/grpc-google-.*/src" - "/java-orchestration-airflow/proto-google-.*/src" -- "/java-orchestration-airflow/google-.*/src/main" -- "/java-orchestration-airflow/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-orchestration-airflow/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-orchestration-airflow/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-orchestration-airflow/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/orchestration/airflow/service/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-orchestration-airflow/$1/proto-google-cloud-orchestration-airflow-$1/src" - source: "/google/cloud/orchestration/airflow/service/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-orchestration-airflow/$1/grpc-google-cloud-orchestration-airflow-$1/src" -- source: "/google/cloud/orchestration/airflow/service/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-orchestration-airflow/$1/google-cloud-orchestration-airflow/src/main" +- source: "/google/cloud/orchestration/airflow/service/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-orchestration-airflow/$1/google-cloud-orchestration-airflow/src" - source: "/google/cloud/orchestration/airflow/service/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-orchestration-airflow/$1/samples/snippets/generated" diff --git a/java-orgpolicy/.OwlBot-hermetic.yaml b/java-orgpolicy/.OwlBot-hermetic.yaml index 2328a0809d44..437136e05bc4 100644 --- a/java-orgpolicy/.OwlBot-hermetic.yaml +++ b/java-orgpolicy/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-orgpolicy/samples/snippets/generated" - "/java-orgpolicy/grpc-google-.*/src" - "/java-orgpolicy/proto-google-.*/src" -- "/java-orgpolicy/google-.*/src/main" -- "/java-orgpolicy/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-orgpolicy/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-orgpolicy/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-orgpolicy/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/orgpolicy/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-orgpolicy/$1/proto-google-cloud-orgpolicy-$1/src" - source: "/google/cloud/orgpolicy/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-orgpolicy/$1/grpc-google-cloud-orgpolicy-$1/src" -- source: "/google/cloud/orgpolicy/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-orgpolicy/$1/google-cloud-orgpolicy/src/main" +- source: "/google/cloud/orgpolicy/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-orgpolicy/$1/google-cloud-orgpolicy/src" - source: "/google/cloud/orgpolicy/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-orgpolicy/$1/samples/snippets/generated" diff --git a/java-os-config/.OwlBot-hermetic.yaml b/java-os-config/.OwlBot-hermetic.yaml index e1c251d5c091..efe2c1a78e2a 100644 --- a/java-os-config/.OwlBot-hermetic.yaml +++ b/java-os-config/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-os-config/samples/snippets/generated" - "/java-os-config/grpc-google-.*/src" - "/java-os-config/proto-google-.*/src" -- "/java-os-config/google-.*/src/main" -- "/java-os-config/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-os-config/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-os-config/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-os-config/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-os-config/$1/proto-google-cloud-os-config-$1/src" - source: "/google/cloud/osconfig/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-os-config/$1/grpc-google-cloud-os-config-$1/src" -- source: "/google/cloud/osconfig/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-os-config/$1/google-cloud-os-config/src/main" +- source: "/google/cloud/osconfig/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-os-config/$1/google-cloud-os-config/src" - source: "/google/cloud/osconfig/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-os-config/$1/samples/snippets/generated" diff --git a/java-os-login/.OwlBot-hermetic.yaml b/java-os-login/.OwlBot-hermetic.yaml index 0e7c65c6768c..aab0a7cbc0b7 100644 --- a/java-os-login/.OwlBot-hermetic.yaml +++ b/java-os-login/.OwlBot-hermetic.yaml @@ -16,14 +16,12 @@ deep-remove-regex: - "/java-os-login/grpc-google-.*/src" - "/java-os-login/proto-google-.*/src" -- "/java-os-login/google-.*/src/main" -- "/java-os-login/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-os-login/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-os-login/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-os-login/google-.*/src" - "/java-os-login/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/FingerprintName.java" - "/.*proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/common/ProjectName.java" - "/.*proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/FingerprintName.java" @@ -36,8 +34,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-os-login/$1/proto-google-cloud-os-login-$1/src" - source: "/google/cloud/oslogin/(v\\d)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-os-login/$1/grpc-google-cloud-os-login-$1/src" -- source: "/google/cloud/oslogin/(v\\d)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-os-login/$1/google-cloud-os-login/src/main" +- source: "/google/cloud/oslogin/(v\\d)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-os-login/$1/google-cloud-os-login/src" - source: "/google/cloud/oslogin/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-os-login/$1/samples/snippets/generated" diff --git a/java-parallelstore/.OwlBot-hermetic.yaml b/java-parallelstore/.OwlBot-hermetic.yaml index 68a7af3c3595..b3da915e88a5 100644 --- a/java-parallelstore/.OwlBot-hermetic.yaml +++ b/java-parallelstore/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-parallelstore/grpc-google-.*/src" - "/java-parallelstore/proto-google-.*/src" -- "/java-parallelstore/google-.*/src/main" -- "/java-parallelstore/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-parallelstore/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-parallelstore/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-parallelstore/google-.*/src" - "/java-parallelstore/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/parallelstore/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-parallelstore/$1/proto-google-cloud-parallelstore-$1/src" - source: "/google/cloud/parallelstore/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-parallelstore/$1/grpc-google-cloud-parallelstore-$1/src" -- source: "/google/cloud/parallelstore/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-parallelstore/$1/google-cloud-parallelstore/src/main" +- source: "/google/cloud/parallelstore/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-parallelstore/$1/google-cloud-parallelstore/src" - source: "/google/cloud/parallelstore/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-parallelstore/$1/samples/snippets/generated" diff --git a/java-parametermanager/.OwlBot-hermetic.yaml b/java-parametermanager/.OwlBot-hermetic.yaml index ad847b3b3da2..00211c303626 100644 --- a/java-parametermanager/.OwlBot-hermetic.yaml +++ b/java-parametermanager/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-parametermanager/grpc-google-.*/src" - "/java-parametermanager/proto-google-.*/src" -- "/java-parametermanager/google-.*/src/main" -- "/java-parametermanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-parametermanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-parametermanager/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-parametermanager/google-.*/src" - "/java-parametermanager/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/parametermanager/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-parametermanager/$1/proto-google-cloud-parametermanager-$1/src" - source: "/google/cloud/parametermanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-parametermanager/$1/grpc-google-cloud-parametermanager-$1/src" -- source: "/google/cloud/parametermanager/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-parametermanager/$1/google-cloud-parametermanager/src/main" +- source: "/google/cloud/parametermanager/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-parametermanager/$1/google-cloud-parametermanager/src" - source: "/google/cloud/parametermanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-parametermanager/$1/samples/snippets/generated" diff --git a/java-phishingprotection/.OwlBot-hermetic.yaml b/java-phishingprotection/.OwlBot-hermetic.yaml index 730787b96dc9..141ac0ffafed 100644 --- a/java-phishingprotection/.OwlBot-hermetic.yaml +++ b/java-phishingprotection/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-phishingprotection/samples/snippets/generated" - "/java-phishingprotection/grpc-google-.*/src" - "/java-phishingprotection/proto-google-.*/src" -- "/java-phishingprotection/google-.*/src/main" -- "/java-phishingprotection/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-phishingprotection/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-phishingprotection/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-phishingprotection/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/phishingprotection/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-phishingprotection/$1/proto-google-cloud-phishingprotection-$1/src" - source: "/google/cloud/phishingprotection/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-phishingprotection/$1/grpc-google-cloud-phishingprotection-$1/src" -- source: "/google/cloud/phishingprotection/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-phishingprotection/$1/google-cloud-phishingprotection/src/main" +- source: "/google/cloud/phishingprotection/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-phishingprotection/$1/google-cloud-phishingprotection/src" - source: "/google/cloud/phishingprotection/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-phishingprotection/$1/samples/snippets/generated" diff --git a/java-policy-troubleshooter/.OwlBot-hermetic.yaml b/java-policy-troubleshooter/.OwlBot-hermetic.yaml index 7addcb019325..f71b01061bdd 100644 --- a/java-policy-troubleshooter/.OwlBot-hermetic.yaml +++ b/java-policy-troubleshooter/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-policy-troubleshooter/samples/snippets/generated" - "/java-policy-troubleshooter/grpc-google-.*/src" - "/java-policy-troubleshooter/proto-google-.*/src" -- "/java-policy-troubleshooter/google-.*/src/main" -- "/java-policy-troubleshooter/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-policy-troubleshooter/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-policy-troubleshooter/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-policy-troubleshooter/google-.*/src" - "/java-policy-troubleshooter/iam/samples/snippets/generated" - "/java-policy-troubleshooter/iam/grpc-google-.*/src" - "/java-policy-troubleshooter/iam/proto-google-.*/src" @@ -28,21 +25,23 @@ deep-remove-regex: deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/policytroubleshooter/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-policy-troubleshooter/$1/proto-google-cloud-policy-troubleshooter-$1/src" - source: "/google/cloud/policytroubleshooter/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-policy-troubleshooter/$1/grpc-google-cloud-policy-troubleshooter-$1/src" -- source: "/google/cloud/policytroubleshooter/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-policy-troubleshooter/$1/google-cloud-policy-troubleshooter/src/main" +- source: "/google/cloud/policytroubleshooter/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-policy-troubleshooter/$1/google-cloud-policy-troubleshooter/src" - source: "/google/cloud/policytroubleshooter/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-policy-troubleshooter/$1/samples/snippets/generated" - source: "/google/cloud/policytroubleshooter/iam/v3/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-policy-troubleshooter/v3/proto-google-cloud-policy-troubleshooter-v3/src" - source: "/google/cloud/policytroubleshooter/iam/v3/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-policy-troubleshooter/v3/grpc-google-cloud-policy-troubleshooter-v3/src" -- source: "/google/cloud/policytroubleshooter/iam/v3/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-policy-troubleshooter/v3/google-cloud-policy-troubleshooter/src/main" +- source: "/google/cloud/policytroubleshooter/iam/v3/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-policy-troubleshooter/v3/google-cloud-policy-troubleshooter/src" - source: "/google/cloud/policytroubleshooter/iam/v3/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-policy-troubleshooter/v3/samples/snippets/generated" diff --git a/java-policysimulator/.OwlBot-hermetic.yaml b/java-policysimulator/.OwlBot-hermetic.yaml index dc27c2a82e75..7e9118fd3106 100644 --- a/java-policysimulator/.OwlBot-hermetic.yaml +++ b/java-policysimulator/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-policysimulator/grpc-google-.*/src" - "/java-policysimulator/proto-google-.*/src" -- "/java-policysimulator/google-.*/src/main" -- "/java-policysimulator/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-policysimulator/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-policysimulator/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-policysimulator/google-.*/src" - "/java-policysimulator/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/policysimulator/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-policysimulator/$1/proto-google-cloud-policysimulator-$1/src" - source: "/google/cloud/policysimulator/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-policysimulator/$1/grpc-google-cloud-policysimulator-$1/src" -- source: "/google/cloud/policysimulator/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-policysimulator/$1/google-cloud-policysimulator/src/main" +- source: "/google/cloud/policysimulator/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-policysimulator/$1/google-cloud-policysimulator/src" - source: "/google/cloud/policysimulator/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-policysimulator/$1/samples/snippets/generated" diff --git a/java-private-catalog/.OwlBot-hermetic.yaml b/java-private-catalog/.OwlBot-hermetic.yaml index 1ee7c7656bf0..9551923182c5 100644 --- a/java-private-catalog/.OwlBot-hermetic.yaml +++ b/java-private-catalog/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-private-catalog/samples/snippets/generated" - "/java-private-catalog/grpc-google-.*/src" - "/java-private-catalog/proto-google-.*/src" -- "/java-private-catalog/google-.*/src/main" -- "/java-private-catalog/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-private-catalog/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-private-catalog/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-private-catalog/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-private-catalog/$1/proto-google-cloud-private-catalog-$1/src" - source: "/google/cloud/privatecatalog/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-private-catalog/$1/grpc-google-cloud-private-catalog-$1/src" -- source: "/google/cloud/privatecatalog/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-private-catalog/$1/google-cloud-private-catalog/src/main" +- source: "/google/cloud/privatecatalog/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-private-catalog/$1/google-cloud-private-catalog/src" - source: "/google/cloud/privatecatalog/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-private-catalog/$1/samples/snippets/generated" diff --git a/java-privilegedaccessmanager/.OwlBot-hermetic.yaml b/java-privilegedaccessmanager/.OwlBot-hermetic.yaml index 70df72078914..87b05f09c97c 100644 --- a/java-privilegedaccessmanager/.OwlBot-hermetic.yaml +++ b/java-privilegedaccessmanager/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-privilegedaccessmanager/grpc-google-.*/src" - "/java-privilegedaccessmanager/proto-google-.*/src" -- "/java-privilegedaccessmanager/google-.*/src/main" -- "/java-privilegedaccessmanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-privilegedaccessmanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-privilegedaccessmanager/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-privilegedaccessmanager/google-.*/src" - "/java-privilegedaccessmanager/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/privilegedaccessmanager/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-privilegedaccessmanager/$1/proto-google-cloud-privilegedaccessmanager-$1/src" - source: "/google/cloud/privilegedaccessmanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-privilegedaccessmanager/$1/grpc-google-cloud-privilegedaccessmanager-$1/src" -- source: "/google/cloud/privilegedaccessmanager/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-privilegedaccessmanager/$1/google-cloud-privilegedaccessmanager/src/main" +- source: "/google/cloud/privilegedaccessmanager/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-privilegedaccessmanager/$1/google-cloud-privilegedaccessmanager/src" - source: "/google/cloud/privilegedaccessmanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-privilegedaccessmanager/$1/samples/snippets/generated" diff --git a/java-profiler/.OwlBot-hermetic.yaml b/java-profiler/.OwlBot-hermetic.yaml index 412a062b62ca..6e89cccb43a8 100644 --- a/java-profiler/.OwlBot-hermetic.yaml +++ b/java-profiler/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-profiler/grpc-google-.*/src" - "/java-profiler/proto-google-.*/src" -- "/java-profiler/google-.*/src/main" -- "/java-profiler/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-profiler/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-profiler/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-profiler/google-.*/src" - "/java-profiler/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/devtools/cloudprofiler/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-profiler/$1/proto-google-cloud-profiler-$1/src" - source: "/google/devtools/cloudprofiler/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-profiler/$1/grpc-google-cloud-profiler-$1/src" -- source: "/google/devtools/cloudprofiler/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-profiler/$1/google-cloud-profiler/src/main" +- source: "/google/devtools/cloudprofiler/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-profiler/$1/google-cloud-profiler/src" - source: "/google/devtools/cloudprofiler/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-profiler/$1/samples/snippets/generated" diff --git a/java-publicca/.OwlBot-hermetic.yaml b/java-publicca/.OwlBot-hermetic.yaml index 9974d676fc10..812ff0774bef 100644 --- a/java-publicca/.OwlBot-hermetic.yaml +++ b/java-publicca/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-publicca/grpc-google-.*/src" - "/java-publicca/proto-google-.*/src" -- "/java-publicca/google-.*/src/main" -- "/java-publicca/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-publicca/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-publicca/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-publicca/google-.*/src" - "/java-publicca/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/security/publicca/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-publicca/$1/proto-google-cloud-publicca-$1/src" - source: "/google/cloud/security/publicca/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-publicca/$1/grpc-google-cloud-publicca-$1/src" -- source: "/google/cloud/security/publicca/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-publicca/$1/google-cloud-publicca/src/main" +- source: "/google/cloud/security/publicca/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-publicca/$1/google-cloud-publicca/src" - source: "/google/cloud/security/publicca/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-publicca/$1/samples/snippets/generated" diff --git a/java-rapidmigrationassessment/.OwlBot-hermetic.yaml b/java-rapidmigrationassessment/.OwlBot-hermetic.yaml index e8201456df55..d18e49ea762b 100644 --- a/java-rapidmigrationassessment/.OwlBot-hermetic.yaml +++ b/java-rapidmigrationassessment/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-rapidmigrationassessment/grpc-google-.*/src" - "/java-rapidmigrationassessment/proto-google-.*/src" -- "/java-rapidmigrationassessment/google-.*/src/main" -- "/java-rapidmigrationassessment/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-rapidmigrationassessment/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-rapidmigrationassessment/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-rapidmigrationassessment/google-.*/src" - "/java-rapidmigrationassessment/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/rapidmigrationassessment/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-rapidmigrationassessment/$1/proto-google-cloud-rapidmigrationassessment-$1/src" - source: "/google/cloud/rapidmigrationassessment/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-rapidmigrationassessment/$1/grpc-google-cloud-rapidmigrationassessment-$1/src" -- source: "/google/cloud/rapidmigrationassessment/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-rapidmigrationassessment/$1/google-cloud-rapidmigrationassessment/src/main" +- source: "/google/cloud/rapidmigrationassessment/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-rapidmigrationassessment/$1/google-cloud-rapidmigrationassessment/src" - source: "/google/cloud/rapidmigrationassessment/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-rapidmigrationassessment/$1/samples/snippets/generated" diff --git a/java-recaptchaenterprise/.OwlBot-hermetic.yaml b/java-recaptchaenterprise/.OwlBot-hermetic.yaml index fc1239787dd1..bb5926bac69a 100644 --- a/java-recaptchaenterprise/.OwlBot-hermetic.yaml +++ b/java-recaptchaenterprise/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-recaptchaenterprise/samples/snippets/generated" - "/java-recaptchaenterprise/grpc-google-.*/src" - "/java-recaptchaenterprise/proto-google-.*/src" -- "/java-recaptchaenterprise/google-.*/src/main" -- "/java-recaptchaenterprise/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-recaptchaenterprise/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-recaptchaenterprise/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-recaptchaenterprise/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/recaptchaenterprise/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-recaptchaenterprise/$1/proto-google-cloud-recaptchaenterprise-$1/src" - source: "/google/cloud/recaptchaenterprise/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-recaptchaenterprise/$1/grpc-google-cloud-recaptchaenterprise-$1/src" -- source: "/google/cloud/recaptchaenterprise/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-recaptchaenterprise/$1/google-cloud-recaptchaenterprise/src/main" +- source: "/google/cloud/recaptchaenterprise/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-recaptchaenterprise/$1/google-cloud-recaptchaenterprise/src" - source: "/google/cloud/recaptchaenterprise/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-recaptchaenterprise/$1/samples/snippets/generated" diff --git a/java-recommendations-ai/.OwlBot-hermetic.yaml b/java-recommendations-ai/.OwlBot-hermetic.yaml index 172dc4763964..4ccc8487eb32 100644 --- a/java-recommendations-ai/.OwlBot-hermetic.yaml +++ b/java-recommendations-ai/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-recommendations-ai/samples/snippets/generated" - "/java-recommendations-ai/grpc-google-.*/src" - "/java-recommendations-ai/proto-google-.*/src" -- "/java-recommendations-ai/google-.*/src/main" -- "/java-recommendations-ai/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-recommendations-ai/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-recommendations-ai/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-recommendations-ai/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/recommendationengine/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-recommendations-ai/$1/proto-google-cloud-recommendations-ai-$1/src" - source: "/google/cloud/recommendationengine/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-recommendations-ai/$1/grpc-google-cloud-recommendations-ai-$1/src" -- source: "/google/cloud/recommendationengine/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-recommendations-ai/$1/google-cloud-recommendations-ai/src/main" +- source: "/google/cloud/recommendationengine/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-recommendations-ai/$1/google-cloud-recommendations-ai/src" - source: "/google/cloud/recommendationengine/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-recommendations-ai/$1/samples/snippets/generated" diff --git a/java-recommender/.OwlBot-hermetic.yaml b/java-recommender/.OwlBot-hermetic.yaml index db5d4302b463..db000cc53ca4 100644 --- a/java-recommender/.OwlBot-hermetic.yaml +++ b/java-recommender/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-recommender/samples/snippets/generated" - "/java-recommender/grpc-google-.*/src" - "/java-recommender/proto-google-.*/src" -- "/java-recommender/google-.*/src/main" -- "/java-recommender/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-recommender/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-recommender/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-recommender/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/recommender/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-recommender/$1/proto-google-cloud-recommender-$1/src" - source: "/google/cloud/recommender/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-recommender/$1/grpc-google-cloud-recommender-$1/src" -- source: "/google/cloud/recommender/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-recommender/$1/google-cloud-recommender/src/main" +- source: "/google/cloud/recommender/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-recommender/$1/google-cloud-recommender/src" - source: "/google/cloud/recommender/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-recommender/$1/samples/snippets/generated" diff --git a/java-redis-cluster/.OwlBot-hermetic.yaml b/java-redis-cluster/.OwlBot-hermetic.yaml index 199249da310e..87d1431b9b08 100644 --- a/java-redis-cluster/.OwlBot-hermetic.yaml +++ b/java-redis-cluster/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-redis-cluster/grpc-google-.*/src" - "/java-redis-cluster/proto-google-.*/src" -- "/java-redis-cluster/google-.*/src/main" -- "/java-redis-cluster/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-redis-cluster/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-redis-cluster/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-redis-cluster/google-.*/src" - "/java-redis-cluster/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/redis/cluster/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-redis-cluster/$1/proto-google-cloud-redis-cluster-$1/src" - source: "/google/cloud/redis/cluster/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-redis-cluster/$1/grpc-google-cloud-redis-cluster-$1/src" -- source: "/google/cloud/redis/cluster/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-redis-cluster/$1/google-cloud-redis-cluster/src/main" +- source: "/google/cloud/redis/cluster/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-redis-cluster/$1/google-cloud-redis-cluster/src" - source: "/google/cloud/redis/cluster/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-redis-cluster/$1/samples/snippets/generated" diff --git a/java-redis/.OwlBot-hermetic.yaml b/java-redis/.OwlBot-hermetic.yaml index 63894a64cdbe..72c59c860a4e 100644 --- a/java-redis/.OwlBot-hermetic.yaml +++ b/java-redis/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-redis/samples/snippets/generated" - "/java-redis/grpc-google-.*/src" - "/java-redis/proto-google-.*/src" -- "/java-redis/google-.*/src/main" -- "/java-redis/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-redis/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-redis/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-redis/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/redis/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-redis/$1/proto-google-cloud-redis-$1/src" - source: "/google/cloud/redis/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-redis/$1/grpc-google-cloud-redis-$1/src" -- source: "/google/cloud/redis/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-redis/$1/google-cloud-redis/src/main" +- source: "/google/cloud/redis/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-redis/$1/google-cloud-redis/src" - source: "/google/cloud/redis/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-redis/$1/samples/snippets/generated" diff --git a/java-resourcemanager/.OwlBot-hermetic.yaml b/java-resourcemanager/.OwlBot-hermetic.yaml index 95ba3c2acae8..7ea3b55c29f1 100644 --- a/java-resourcemanager/.OwlBot-hermetic.yaml +++ b/java-resourcemanager/.OwlBot-hermetic.yaml @@ -27,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-resourcemanager/$1/proto-google-cloud-resourcemanager-$1/src" - source: "/google/cloud/resourcemanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-resourcemanager/$1/grpc-google-cloud-resourcemanager-$1/src" -- source: "/google/cloud/resourcemanager/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-resourcemanager/$1/google-cloud-resourcemanager/src/main" +- source: "/google/cloud/resourcemanager/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-resourcemanager/$1/google-cloud-resourcemanager/src" - source: "/google/cloud/resourcemanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-resourcemanager/$1/samples/snippets/generated" diff --git a/java-retail/.OwlBot-hermetic.yaml b/java-retail/.OwlBot-hermetic.yaml index 2e2e56d46aa8..8d86aea4aea3 100644 --- a/java-retail/.OwlBot-hermetic.yaml +++ b/java-retail/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-retail/samples/snippets/generated" - "/java-retail/grpc-google-.*/src" - "/java-retail/proto-google-.*/src" -- "/java-retail/google-.*/src/main" -- "/java-retail/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-retail/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-retail/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-retail/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/retail/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-retail/$1/proto-google-cloud-retail-$1/src" - source: "/google/cloud/retail/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-retail/$1/grpc-google-cloud-retail-$1/src" -- source: "/google/cloud/retail/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-retail/$1/google-cloud-retail/src/main" +- source: "/google/cloud/retail/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-retail/$1/google-cloud-retail/src" - source: "/google/cloud/retail/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-retail/$1/samples/snippets/generated" diff --git a/java-run/.OwlBot-hermetic.yaml b/java-run/.OwlBot-hermetic.yaml index 9a4b5aa3f04e..c87b38d3872e 100644 --- a/java-run/.OwlBot-hermetic.yaml +++ b/java-run/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-run/samples/snippets/generated" - "/java-run/grpc-google-.*/src" - "/java-run/proto-google-.*/src" -- "/java-run/google-.*/src/main" -- "/java-run/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-run/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-run/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-run/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/run/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-run/$1/proto-google-cloud-run-$1/src" - source: "/google/cloud/run/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-run/$1/grpc-google-cloud-run-$1/src" -- source: "/google/cloud/run/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-run/$1/google-cloud-run/src/main" +- source: "/google/cloud/run/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-run/$1/google-cloud-run/src" - source: "/google/cloud/run/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-run/$1/samples/snippets/generated" diff --git a/java-saasservicemgmt/.OwlBot-hermetic.yaml b/java-saasservicemgmt/.OwlBot-hermetic.yaml index baa5ceb15f43..c8a8bce6df2f 100644 --- a/java-saasservicemgmt/.OwlBot-hermetic.yaml +++ b/java-saasservicemgmt/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-saasservicemgmt/grpc-google-.*/src" - "/java-saasservicemgmt/proto-google-.*/src" -- "/java-saasservicemgmt/google-.*/src/main" -- "/java-saasservicemgmt/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-saasservicemgmt/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-saasservicemgmt/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-saasservicemgmt/google-.*/src" - "/java-saasservicemgmt/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/saasplatform/saasservicemgmt/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-saasservicemgmt/$1/proto-google-cloud-saasservicemgmt-$1/src" - source: "/google/cloud/saasplatform/saasservicemgmt/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-saasservicemgmt/$1/grpc-google-cloud-saasservicemgmt-$1/src" -- source: "/google/cloud/saasplatform/saasservicemgmt/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-saasservicemgmt/$1/google-cloud-saasservicemgmt/src/main" +- source: "/google/cloud/saasplatform/saasservicemgmt/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-saasservicemgmt/$1/google-cloud-saasservicemgmt/src" - source: "/google/cloud/saasplatform/saasservicemgmt/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-saasservicemgmt/$1/samples/snippets/generated" diff --git a/java-scheduler/.OwlBot-hermetic.yaml b/java-scheduler/.OwlBot-hermetic.yaml index 90b8659e10e6..d918ac117207 100644 --- a/java-scheduler/.OwlBot-hermetic.yaml +++ b/java-scheduler/.OwlBot-hermetic.yaml @@ -17,13 +17,11 @@ deep-remove-regex: - "/java-scheduler/samples/snippets/generated" - "/java-scheduler/grpc-google-.*/src" - "/java-scheduler/proto-google-.*/src" -- "/java-scheduler/google-.*/src/main" -- "/java-scheduler/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-scheduler/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-scheduler/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-scheduler/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*proto-google-cloud-scheduler-v1/src/main/java/com/google/cloud/scheduler/v1/ProjectName.java" - "/.*proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/ProjectName.java" @@ -32,8 +30,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-scheduler/$1/proto-google-cloud-scheduler-$1/src" - source: "/google/cloud/scheduler/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-scheduler/$1/grpc-google-cloud-scheduler-$1/src" -- source: "/google/cloud/scheduler/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-scheduler/$1/google-cloud-scheduler/src/main" +- source: "/google/cloud/scheduler/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-scheduler/$1/google-cloud-scheduler/src" - source: "/google/cloud/scheduler/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-scheduler/$1/samples/snippets/generated" diff --git a/java-secretmanager/.OwlBot-hermetic.yaml b/java-secretmanager/.OwlBot-hermetic.yaml index e30b03654f2d..8b7f3693af79 100644 --- a/java-secretmanager/.OwlBot-hermetic.yaml +++ b/java-secretmanager/.OwlBot-hermetic.yaml @@ -17,13 +17,11 @@ deep-remove-regex: - "/java-secretmanager/samples/snippets/generated" - "/java-secretmanager/grpc-google-.*/src" - "/java-secretmanager/proto-google-.*/src" -- "/java-secretmanager/google-.*/src/main" -- "/java-secretmanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-secretmanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-secretmanager/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-secretmanager/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v1/it/IT.*Test.java" - "/.*proto-google-cloud-secretmanager-v1/src/main/java/com/google/cloud/secretmanager/v1/TopicName.java" @@ -33,8 +31,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-secretmanager/$1/proto-google-cloud-secretmanager-$1/src" - source: "/google/cloud/secrets/(v\\d.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-secretmanager/$1/grpc-google-cloud-secretmanager-$1/src" -- source: "/google/cloud/secrets/(v\\d.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-secretmanager/$1/google-cloud-secretmanager/src/main" +- source: "/google/cloud/secrets/(v\\d.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-secretmanager/$1/google-cloud-secretmanager/src" - source: "/google/cloud/secrets/(v\\d.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-secretmanager/$1/samples/snippets/generated" # The next four configurations are for all others versions configured in /google/cloud/secretmanager/{version} @@ -42,8 +40,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-secretmanager/$1/proto-google-cloud-secretmanager-$1/src" - source: "/google/cloud/secretmanager/(v\\d.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-secretmanager/$1/grpc-google-cloud-secretmanager-$1/src" -- source: "/google/cloud/secretmanager/(v\\d.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-secretmanager/$1/google-cloud-secretmanager/src/main" +- source: "/google/cloud/secretmanager/(v\\d.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-secretmanager/$1/google-cloud-secretmanager/src" - source: "/google/cloud/secretmanager/(v\\d.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-secretmanager/$1/samples/snippets/generated" diff --git a/java-securesourcemanager/.OwlBot-hermetic.yaml b/java-securesourcemanager/.OwlBot-hermetic.yaml index df7808276564..d428f4797afd 100644 --- a/java-securesourcemanager/.OwlBot-hermetic.yaml +++ b/java-securesourcemanager/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-securesourcemanager/grpc-google-.*/src" - "/java-securesourcemanager/proto-google-.*/src" -- "/java-securesourcemanager/google-.*/src/main" -- "/java-securesourcemanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-securesourcemanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-securesourcemanager/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-securesourcemanager/google-.*/src" - "/java-securesourcemanager/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/securesourcemanager/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-securesourcemanager/$1/proto-google-cloud-securesourcemanager-$1/src" - source: "/google/cloud/securesourcemanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-securesourcemanager/$1/grpc-google-cloud-securesourcemanager-$1/src" -- source: "/google/cloud/securesourcemanager/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-securesourcemanager/$1/google-cloud-securesourcemanager/src/main" +- source: "/google/cloud/securesourcemanager/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-securesourcemanager/$1/google-cloud-securesourcemanager/src" - source: "/google/cloud/securesourcemanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-securesourcemanager/$1/samples/snippets/generated" diff --git a/java-security-private-ca/.OwlBot-hermetic.yaml b/java-security-private-ca/.OwlBot-hermetic.yaml index b01b6fbc6c43..ebe9982eff85 100644 --- a/java-security-private-ca/.OwlBot-hermetic.yaml +++ b/java-security-private-ca/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-security-private-ca/samples/snippets/generated" - "/java-security-private-ca/grpc-google-.*/src" - "/java-security-private-ca/proto-google-.*/src" -- "/java-security-private-ca/google-.*/src/main" -- "/java-security-private-ca/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-security-private-ca/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-security-private-ca/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-security-private-ca/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-security-private-ca/$1/proto-google-cloud-security-private-ca-$1/src" - source: "/google/cloud/security/privateca/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-security-private-ca/$1/grpc-google-cloud-security-private-ca-$1/src" -- source: "/google/cloud/security/privateca/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-security-private-ca/$1/google-cloud-security-private-ca/src/main" +- source: "/google/cloud/security/privateca/v.*/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-security-private-ca/$1/google-cloud-security-private-ca/src" - source: "/google/cloud/security/privateca/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-security-private-ca/$1/samples/snippets/generated" diff --git a/java-securitycenter-settings/.OwlBot-hermetic.yaml b/java-securitycenter-settings/.OwlBot-hermetic.yaml index f44402768f9e..b7a7fea9c7b1 100644 --- a/java-securitycenter-settings/.OwlBot-hermetic.yaml +++ b/java-securitycenter-settings/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-securitycenter-settings/grpc-google-.*/src" - "/java-securitycenter-settings/proto-google-.*/src" -- "/java-securitycenter-settings/google-.*/src/main" -- "/java-securitycenter-settings/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-securitycenter-settings/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-securitycenter-settings/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-securitycenter-settings/google-.*/src" - "/java-securitycenter-settings/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/securitycenter/settings/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-securitycenter-settings/$1/proto-google-cloud-securitycenter-settings-$1/src" - source: "/google/cloud/securitycenter/settings/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-securitycenter-settings/$1/grpc-google-cloud-securitycenter-settings-$1/src" -- source: "/google/cloud/securitycenter/settings/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-securitycenter-settings/$1/google-cloud-securitycenter-settings/src/main" +- source: "/google/cloud/securitycenter/settings/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-securitycenter-settings/$1/google-cloud-securitycenter-settings/src" - source: "/google/cloud/securitycenter/settings/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-securitycenter-settings/$1/samples/snippets/generated" diff --git a/java-securitycenter/.OwlBot-hermetic.yaml b/java-securitycenter/.OwlBot-hermetic.yaml index 8f5907da823b..887a17fde535 100644 --- a/java-securitycenter/.OwlBot-hermetic.yaml +++ b/java-securitycenter/.OwlBot-hermetic.yaml @@ -17,13 +17,11 @@ deep-remove-regex: - "/java-securitycenter/samples/snippets/generated" - "/java-securitycenter/grpc-google-.*/src" - "/java-securitycenter/proto-google-.*/src" -- "/java-securitycenter/google-.*/src/main" -- "/java-securitycenter/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-securitycenter/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-securitycenter/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-securitycenter/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/UntypedSecuritymarksName.java" - "/.*proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritymarksNames.java" - "/.*proto-google-cloud-securitycenter-v1beta1/src/main/java/com/google/cloud/securitycenter/v1beta1/SecuritymarksName.java" @@ -35,8 +33,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-securitycenter/$1/proto-google-cloud-securitycenter-$1/src" - source: "/google/cloud/securitycenter/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-securitycenter/$1/grpc-google-cloud-securitycenter-$1/src" -- source: "/google/cloud/securitycenter/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-securitycenter/$1/google-cloud-securitycenter/src/main" +- source: "/google/cloud/securitycenter/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-securitycenter/$1/google-cloud-securitycenter/src" - source: "/google/cloud/securitycenter/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-securitycenter/$1/samples/snippets/generated" diff --git a/java-securitycentermanagement/.OwlBot-hermetic.yaml b/java-securitycentermanagement/.OwlBot-hermetic.yaml index 0b987b97960f..111d059bd078 100644 --- a/java-securitycentermanagement/.OwlBot-hermetic.yaml +++ b/java-securitycentermanagement/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-securitycentermanagement/grpc-google-.*/src" - "/java-securitycentermanagement/proto-google-.*/src" -- "/java-securitycentermanagement/google-.*/src/main" -- "/java-securitycentermanagement/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-securitycentermanagement/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-securitycentermanagement/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-securitycentermanagement/google-.*/src" - "/java-securitycentermanagement/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/securitycentermanagement/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-securitycentermanagement/$1/proto-google-cloud-securitycentermanagement-$1/src" - source: "/google/cloud/securitycentermanagement/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-securitycentermanagement/$1/grpc-google-cloud-securitycentermanagement-$1/src" -- source: "/google/cloud/securitycentermanagement/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-securitycentermanagement/$1/google-cloud-securitycentermanagement/src/main" +- source: "/google/cloud/securitycentermanagement/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-securitycentermanagement/$1/google-cloud-securitycentermanagement/src" - source: "/google/cloud/securitycentermanagement/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-securitycentermanagement/$1/samples/snippets/generated" diff --git a/java-securityposture/.OwlBot-hermetic.yaml b/java-securityposture/.OwlBot-hermetic.yaml index b97419916092..157dd1ca34bf 100644 --- a/java-securityposture/.OwlBot-hermetic.yaml +++ b/java-securityposture/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-securityposture/grpc-google-.*/src" - "/java-securityposture/proto-google-.*/src" -- "/java-securityposture/google-.*/src/main" -- "/java-securityposture/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-securityposture/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-securityposture/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-securityposture/google-.*/src" - "/java-securityposture/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/securityposture/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-securityposture/$1/proto-google-cloud-securityposture-$1/src" - source: "/google/cloud/securityposture/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-securityposture/$1/grpc-google-cloud-securityposture-$1/src" -- source: "/google/cloud/securityposture/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-securityposture/$1/google-cloud-securityposture/src/main" +- source: "/google/cloud/securityposture/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-securityposture/$1/google-cloud-securityposture/src" - source: "/google/cloud/securityposture/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-securityposture/$1/samples/snippets/generated" diff --git a/java-service-control/.OwlBot-hermetic.yaml b/java-service-control/.OwlBot-hermetic.yaml index 36040790859d..b1ab44a4737e 100644 --- a/java-service-control/.OwlBot-hermetic.yaml +++ b/java-service-control/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-service-control/grpc-google-.*/src" - "/java-service-control/proto-google-.*/src" -- "/java-service-control/google-.*/src/main" -- "/java-service-control/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-service-control/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-service-control/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-service-control/google-.*/src" - "/java-service-control/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/api/servicecontrol/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-service-control/$1/proto-google-cloud-service-control-$1/src" - source: "/google/api/servicecontrol/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-service-control/$1/grpc-google-cloud-service-control-$1/src" -- source: "/google/api/servicecontrol/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-service-control/$1/google-cloud-service-control/src/main" +- source: "/google/api/servicecontrol/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-service-control/$1/google-cloud-service-control/src" - source: "/google/api/servicecontrol/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-service-control/$1/samples/snippets/generated" diff --git a/java-service-management/.OwlBot-hermetic.yaml b/java-service-management/.OwlBot-hermetic.yaml index 7b4091715084..c436920dc409 100644 --- a/java-service-management/.OwlBot-hermetic.yaml +++ b/java-service-management/.OwlBot-hermetic.yaml @@ -16,23 +16,21 @@ deep-remove-regex: - "/java-service-management/grpc-google-.*/src" - "/java-service-management/proto-google-.*/src" -- "/java-service-management/google-.*/src/main" -- "/java-service-management/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-service-management/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-service-management/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-service-management/google-.*/src" - "/java-service-management/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-service-management/src/test/java/com/google/.*/api/servicemanagement/v1/ServiceManagerClientHttpJsonTest.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-service-management/src/test/java/com/google/cloud/api/servicemanagement/v1/ServiceManagerClientHttpJsonTest.java" deep-copy-regex: - source: "/google/api/servicemanagement/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-service-management/$1/proto-google-cloud-service-management-$1/src" - source: "/google/api/servicemanagement/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-service-management/$1/grpc-google-cloud-service-management-$1/src" -- source: "/google/api/servicemanagement/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-service-management/$1/google-cloud-service-management/src/main" +- source: "/google/api/servicemanagement/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-service-management/$1/google-cloud-service-management/src" - source: "/google/api/servicemanagement/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-service-management/$1/samples/snippets/generated" diff --git a/java-service-usage/.OwlBot-hermetic.yaml b/java-service-usage/.OwlBot-hermetic.yaml index 10da3c1e168f..67c408dc52ab 100644 --- a/java-service-usage/.OwlBot-hermetic.yaml +++ b/java-service-usage/.OwlBot-hermetic.yaml @@ -16,10 +16,7 @@ deep-remove-regex: - "/java-service-usage/grpc-google-.*/src" - "/java-service-usage/proto-google-.*/src" -- "/java-service-usage/google-.*/src/main" -- "/java-service-usage/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-service-usage/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-service-usage/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-service-usage/google-.*/src" - "/java-service-usage/samples/snippets/generated" deep-preserve-regex: @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-service-usage/$1/proto-google-cloud-service-usage-$1/src" - source: "/google/api/serviceusage/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-service-usage/$1/grpc-google-cloud-service-usage-$1/src" -- source: "/google/api/serviceusage/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-service-usage/$1/google-cloud-service-usage/src/main" +- source: "/google/api/serviceusage/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-service-usage/$1/google-cloud-service-usage/src" - source: "/google/api/serviceusage/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-service-usage/$1/samples/snippets/generated" diff --git a/java-servicedirectory/.OwlBot-hermetic.yaml b/java-servicedirectory/.OwlBot-hermetic.yaml index e1d2056fdae1..868555902c36 100644 --- a/java-servicedirectory/.OwlBot-hermetic.yaml +++ b/java-servicedirectory/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-servicedirectory/samples/snippets/generated" - "/java-servicedirectory/grpc-google-.*/src" - "/java-servicedirectory/proto-google-.*/src" -- "/java-servicedirectory/google-.*/src/main" -- "/java-servicedirectory/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-servicedirectory/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-servicedirectory/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-servicedirectory/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-servicedirectory/$1/proto-google-cloud-servicedirectory-$1/src" - source: "/google/cloud/servicedirectory/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-servicedirectory/$1/grpc-google-cloud-servicedirectory-$1/src" -- source: "/google/cloud/servicedirectory/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-servicedirectory/$1/google-cloud-servicedirectory/src/main" +- source: "/google/cloud/servicedirectory/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-servicedirectory/$1/google-cloud-servicedirectory/src" - source: "/google/cloud/servicedirectory/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-servicedirectory/$1/samples/snippets/generated" diff --git a/java-servicehealth/.OwlBot-hermetic.yaml b/java-servicehealth/.OwlBot-hermetic.yaml index 7b96124792b3..b6a92928c1f7 100644 --- a/java-servicehealth/.OwlBot-hermetic.yaml +++ b/java-servicehealth/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-servicehealth/grpc-google-.*/src" - "/java-servicehealth/proto-google-.*/src" -- "/java-servicehealth/google-.*/src/main" -- "/java-servicehealth/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-servicehealth/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-servicehealth/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-servicehealth/google-.*/src" - "/java-servicehealth/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/servicehealth/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-servicehealth/$1/proto-google-cloud-servicehealth-$1/src" - source: "/google/cloud/servicehealth/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-servicehealth/$1/grpc-google-cloud-servicehealth-$1/src" -- source: "/google/cloud/servicehealth/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-servicehealth/$1/google-cloud-servicehealth/src/main" +- source: "/google/cloud/servicehealth/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-servicehealth/$1/google-cloud-servicehealth/src" - source: "/google/cloud/servicehealth/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-servicehealth/$1/samples/snippets/generated" diff --git a/java-shell/.OwlBot-hermetic.yaml b/java-shell/.OwlBot-hermetic.yaml index a227834df4a9..eb45f01c0d80 100644 --- a/java-shell/.OwlBot-hermetic.yaml +++ b/java-shell/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-shell/samples/snippets/generated" - "/java-shell/grpc-google-.*/src" - "/java-shell/proto-google-.*/src" -- "/java-shell/google-.*/src/main" -- "/java-shell/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-shell/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-shell/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-shell/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-shell/$1/proto-google-cloud-shell-$1/src" - source: "/google/cloud/shell/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shell/$1/grpc-google-cloud-shell-$1/src" -- source: "/google/cloud/shell/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-shell/$1/google-cloud-shell/src/main" +- source: "/google/cloud/shell/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-shell/$1/google-cloud-shell/src" - source: "/google/cloud/shell/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shell/$1/samples/snippets/generated" diff --git a/java-shopping-css/.OwlBot-hermetic.yaml b/java-shopping-css/.OwlBot-hermetic.yaml index 7c99b6905b3a..85dc9638c585 100644 --- a/java-shopping-css/.OwlBot-hermetic.yaml +++ b/java-shopping-css/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-shopping-css/grpc-google-.*/src" - "/java-shopping-css/proto-google-.*/src" -- "/java-shopping-css/google-.*/src/main" -- "/java-shopping-css/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-shopping-css/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-shopping-css/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-shopping-css/google-.*/src" - "/java-shopping-css/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/shopping/css/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-css/$1/proto-google-shopping-css-$1/src" - source: "/google/shopping/css/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-css/$1/grpc-google-shopping-css-$1/src" -- source: "/google/shopping/css/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-shopping-css/$1/google-shopping-css/src/main" +- source: "/google/shopping/css/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-shopping-css/$1/google-shopping-css/src" - source: "/google/shopping/css/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-css/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-accounts/.OwlBot-hermetic.yaml b/java-shopping-merchant-accounts/.OwlBot-hermetic.yaml index f923c6c863bd..9625b0161907 100644 --- a/java-shopping-merchant-accounts/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-accounts/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-shopping-merchant-accounts/grpc-google-.*/src" - "/java-shopping-merchant-accounts/proto-google-.*/src" -- "/java-shopping-merchant-accounts/google-.*/src/main" -- "/java-shopping-merchant-accounts/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-shopping-merchant-accounts/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-shopping-merchant-accounts/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-shopping-merchant-accounts/google-.*/src" - "/java-shopping-merchant-accounts/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/shopping/merchant/accounts/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-accounts/$1/proto-google-shopping-merchant-accounts-$1/src" - source: "/google/shopping/merchant/accounts/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-accounts/$1/grpc-google-shopping-merchant-accounts-$1/src" -- source: "/google/shopping/merchant/accounts/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-shopping-merchant-accounts/$1/google-shopping-merchant-accounts/src/main" +- source: "/google/shopping/merchant/accounts/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-shopping-merchant-accounts/$1/google-shopping-merchant-accounts/src" - source: "/google/shopping/merchant/accounts/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-accounts/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-conversions/.OwlBot-hermetic.yaml b/java-shopping-merchant-conversions/.OwlBot-hermetic.yaml index 5fdfee378bfd..f3dd37243f40 100644 --- a/java-shopping-merchant-conversions/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-conversions/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-shopping-merchant-conversions/grpc-google-.*/src" - "/java-shopping-merchant-conversions/proto-google-.*/src" -- "/java-shopping-merchant-conversions/google-.*/src/main" -- "/java-shopping-merchant-conversions/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-shopping-merchant-conversions/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-shopping-merchant-conversions/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-shopping-merchant-conversions/google-.*/src" - "/java-shopping-merchant-conversions/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/shopping/merchant/conversions/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-conversions/$1/proto-google-shopping-merchant-conversions-$1/src" - source: "/google/shopping/merchant/conversions/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-conversions/$1/grpc-google-shopping-merchant-conversions-$1/src" -- source: "/google/shopping/merchant/conversions/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-shopping-merchant-conversions/$1/google-shopping-merchant-conversions/src/main" +- source: "/google/shopping/merchant/conversions/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-shopping-merchant-conversions/$1/google-shopping-merchant-conversions/src" - source: "/google/shopping/merchant/conversions/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-conversions/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-datasources/.OwlBot-hermetic.yaml b/java-shopping-merchant-datasources/.OwlBot-hermetic.yaml index 1e1de694fb8f..bd1291e3f8c9 100644 --- a/java-shopping-merchant-datasources/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-datasources/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-shopping-merchant-datasources/grpc-google-.*/src" - "/java-shopping-merchant-datasources/proto-google-.*/src" -- "/java-shopping-merchant-datasources/google-.*/src/main" -- "/java-shopping-merchant-datasources/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-shopping-merchant-datasources/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-shopping-merchant-datasources/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-shopping-merchant-datasources/google-.*/src" - "/java-shopping-merchant-datasources/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/shopping/merchant/datasources/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-datasources/$1/proto-google-shopping-merchant-datasources-$1/src" - source: "/google/shopping/merchant/datasources/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-datasources/$1/grpc-google-shopping-merchant-datasources-$1/src" -- source: "/google/shopping/merchant/datasources/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-shopping-merchant-datasources/$1/google-shopping-merchant-datasources/src/main" +- source: "/google/shopping/merchant/datasources/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-shopping-merchant-datasources/$1/google-shopping-merchant-datasources/src" - source: "/google/shopping/merchant/datasources/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-datasources/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-inventories/.OwlBot-hermetic.yaml b/java-shopping-merchant-inventories/.OwlBot-hermetic.yaml index 56af2710dfe3..aa2ed61270d0 100644 --- a/java-shopping-merchant-inventories/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-inventories/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-shopping-merchant-inventories/grpc-google-.*/src" - "/java-shopping-merchant-inventories/proto-google-.*/src" -- "/java-shopping-merchant-inventories/google-.*/src/main" -- "/java-shopping-merchant-inventories/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-shopping-merchant-inventories/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-shopping-merchant-inventories/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-shopping-merchant-inventories/google-.*/src" - "/java-shopping-merchant-inventories/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/shopping/merchant/inventories/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-inventories/$1/proto-google-shopping-merchant-inventories-$1/src" - source: "/google/shopping/merchant/inventories/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-inventories/$1/grpc-google-shopping-merchant-inventories-$1/src" -- source: "/google/shopping/merchant/inventories/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-shopping-merchant-inventories/$1/google-shopping-merchant-inventories/src/main" +- source: "/google/shopping/merchant/inventories/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-shopping-merchant-inventories/$1/google-shopping-merchant-inventories/src" - source: "/google/shopping/merchant/inventories/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-inventories/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-lfp/.OwlBot-hermetic.yaml b/java-shopping-merchant-lfp/.OwlBot-hermetic.yaml index fc23a950ab16..8d0d80e1258c 100644 --- a/java-shopping-merchant-lfp/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-lfp/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-shopping-merchant-lfp/grpc-google-.*/src" - "/java-shopping-merchant-lfp/proto-google-.*/src" -- "/java-shopping-merchant-lfp/google-.*/src/main" -- "/java-shopping-merchant-lfp/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-shopping-merchant-lfp/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-shopping-merchant-lfp/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-shopping-merchant-lfp/google-.*/src" - "/java-shopping-merchant-lfp/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/shopping/merchant/lfp/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-lfp/$1/proto-google-shopping-merchant-lfp-$1/src" - source: "/google/shopping/merchant/lfp/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-lfp/$1/grpc-google-shopping-merchant-lfp-$1/src" -- source: "/google/shopping/merchant/lfp/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-shopping-merchant-lfp/$1/google-shopping-merchant-lfp/src/main" +- source: "/google/shopping/merchant/lfp/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-shopping-merchant-lfp/$1/google-shopping-merchant-lfp/src" - source: "/google/shopping/merchant/lfp/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-lfp/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-notifications/.OwlBot-hermetic.yaml b/java-shopping-merchant-notifications/.OwlBot-hermetic.yaml index 248869ffc5d2..7f4bbbdc24c2 100644 --- a/java-shopping-merchant-notifications/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-notifications/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-shopping-merchant-notifications/grpc-google-.*/src" - "/java-shopping-merchant-notifications/proto-google-.*/src" -- "/java-shopping-merchant-notifications/google-.*/src/main" -- "/java-shopping-merchant-notifications/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-shopping-merchant-notifications/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-shopping-merchant-notifications/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-shopping-merchant-notifications/google-.*/src" - "/java-shopping-merchant-notifications/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/shopping/merchant/notifications/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-notifications/$1/proto-google-shopping-merchant-notifications-$1/src" - source: "/google/shopping/merchant/notifications/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-notifications/$1/grpc-google-shopping-merchant-notifications-$1/src" -- source: "/google/shopping/merchant/notifications/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-shopping-merchant-notifications/$1/google-shopping-merchant-notifications/src/main" +- source: "/google/shopping/merchant/notifications/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-shopping-merchant-notifications/$1/google-shopping-merchant-notifications/src" - source: "/google/shopping/merchant/notifications/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-notifications/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-product-studio/.OwlBot-hermetic.yaml b/java-shopping-merchant-product-studio/.OwlBot-hermetic.yaml index 23bb7b97234a..92eb584e5bae 100644 --- a/java-shopping-merchant-product-studio/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-product-studio/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-shopping-merchant-product-studio/grpc-google-.*/src" - "/java-shopping-merchant-product-studio/proto-google-.*/src" -- "/java-shopping-merchant-product-studio/google-.*/src/main" -- "/java-shopping-merchant-product-studio/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-shopping-merchant-product-studio/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-shopping-merchant-product-studio/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-shopping-merchant-product-studio/google-.*/src" - "/java-shopping-merchant-product-studio/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/shopping/merchant/productstudio/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-product-studio/$1/proto-google-shopping-merchant-productstudio-$1/src" - source: "/google/shopping/merchant/productstudio/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-product-studio/$1/grpc-google-shopping-merchant-productstudio-$1/src" -- source: "/google/shopping/merchant/productstudio/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-shopping-merchant-product-studio/$1/google-shopping-merchant-productstudio/src/main" +- source: "/google/shopping/merchant/productstudio/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-shopping-merchant-product-studio/$1/google-shopping-merchant-productstudio/src" - source: "/google/shopping/merchant/productstudio/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-product-studio/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-products/.OwlBot-hermetic.yaml b/java-shopping-merchant-products/.OwlBot-hermetic.yaml index 73478b85e1db..a1b39aa14f9b 100644 --- a/java-shopping-merchant-products/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-products/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-shopping-merchant-products/grpc-google-.*/src" - "/java-shopping-merchant-products/proto-google-.*/src" -- "/java-shopping-merchant-products/google-.*/src/main" -- "/java-shopping-merchant-products/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-shopping-merchant-products/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-shopping-merchant-products/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-shopping-merchant-products/google-.*/src" - "/java-shopping-merchant-products/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/shopping/merchant/products/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-products/$1/proto-google-shopping-merchant-products-$1/src" - source: "/google/shopping/merchant/products/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-products/$1/grpc-google-shopping-merchant-products-$1/src" -- source: "/google/shopping/merchant/products/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-shopping-merchant-products/$1/google-shopping-merchant-products/src/main" +- source: "/google/shopping/merchant/products/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-shopping-merchant-products/$1/google-shopping-merchant-products/src" - source: "/google/shopping/merchant/products/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-products/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-promotions/.OwlBot-hermetic.yaml b/java-shopping-merchant-promotions/.OwlBot-hermetic.yaml index 9bf0a38dcb9e..daa80c453010 100644 --- a/java-shopping-merchant-promotions/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-promotions/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-shopping-merchant-promotions/grpc-google-.*/src" - "/java-shopping-merchant-promotions/proto-google-.*/src" -- "/java-shopping-merchant-promotions/google-.*/src/main" -- "/java-shopping-merchant-promotions/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-shopping-merchant-promotions/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-shopping-merchant-promotions/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-shopping-merchant-promotions/google-.*/src" - "/java-shopping-merchant-promotions/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/shopping/merchant/promotions/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-promotions/$1/proto-google-shopping-merchant-promotions-$1/src" - source: "/google/shopping/merchant/promotions/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-promotions/$1/grpc-google-shopping-merchant-promotions-$1/src" -- source: "/google/shopping/merchant/promotions/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-shopping-merchant-promotions/$1/google-shopping-merchant-promotions/src/main" +- source: "/google/shopping/merchant/promotions/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-shopping-merchant-promotions/$1/google-shopping-merchant-promotions/src" - source: "/google/shopping/merchant/promotions/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-promotions/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-quota/.OwlBot-hermetic.yaml b/java-shopping-merchant-quota/.OwlBot-hermetic.yaml index f0270504e506..845a84f44df0 100644 --- a/java-shopping-merchant-quota/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-quota/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-shopping-merchant-quota/grpc-google-.*/src" - "/java-shopping-merchant-quota/proto-google-.*/src" -- "/java-shopping-merchant-quota/google-.*/src/main" -- "/java-shopping-merchant-quota/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-shopping-merchant-quota/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-shopping-merchant-quota/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-shopping-merchant-quota/google-.*/src" - "/java-shopping-merchant-quota/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/shopping/merchant/quota/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-quota/$1/proto-google-shopping-merchant-quota-$1/src" - source: "/google/shopping/merchant/quota/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-quota/$1/grpc-google-shopping-merchant-quota-$1/src" -- source: "/google/shopping/merchant/quota/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-shopping-merchant-quota/$1/google-shopping-merchant-quota/src/main" +- source: "/google/shopping/merchant/quota/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-shopping-merchant-quota/$1/google-shopping-merchant-quota/src" - source: "/google/shopping/merchant/quota/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-quota/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-reports/.OwlBot-hermetic.yaml b/java-shopping-merchant-reports/.OwlBot-hermetic.yaml index 287faabfab12..c2696556538a 100644 --- a/java-shopping-merchant-reports/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-reports/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-shopping-merchant-reports/grpc-google-.*/src" - "/java-shopping-merchant-reports/proto-google-.*/src" -- "/java-shopping-merchant-reports/google-.*/src/main" -- "/java-shopping-merchant-reports/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-shopping-merchant-reports/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-shopping-merchant-reports/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-shopping-merchant-reports/google-.*/src" - "/java-shopping-merchant-reports/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/shopping/merchant/reports/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-reports/$1/proto-google-shopping-merchant-reports-$1/src" - source: "/google/shopping/merchant/reports/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-reports/$1/grpc-google-shopping-merchant-reports-$1/src" -- source: "/google/shopping/merchant/reports/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-shopping-merchant-reports/$1/google-shopping-merchant-reports/src/main" +- source: "/google/shopping/merchant/reports/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-shopping-merchant-reports/$1/google-shopping-merchant-reports/src" - source: "/google/shopping/merchant/reports/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-reports/$1/samples/snippets/generated" diff --git a/java-shopping-merchant-reviews/.OwlBot-hermetic.yaml b/java-shopping-merchant-reviews/.OwlBot-hermetic.yaml index e8630c1b23b8..e0d092823073 100644 --- a/java-shopping-merchant-reviews/.OwlBot-hermetic.yaml +++ b/java-shopping-merchant-reviews/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-shopping-merchant-reviews/grpc-google-.*/src" - "/java-shopping-merchant-reviews/proto-google-.*/src" -- "/java-shopping-merchant-reviews/google-.*/src/main" -- "/java-shopping-merchant-reviews/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-shopping-merchant-reviews/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-shopping-merchant-reviews/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-shopping-merchant-reviews/google-.*/src" - "/java-shopping-merchant-reviews/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/shopping/merchant/reviews/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-reviews/$1/proto-google-shopping-merchant-reviews-$1/src" - source: "/google/shopping/merchant/reviews/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-shopping-merchant-reviews/$1/grpc-google-shopping-merchant-reviews-$1/src" -- source: "/google/shopping/merchant/reviews/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-shopping-merchant-reviews/$1/google-shopping-merchant-reviews/src/main" +- source: "/google/shopping/merchant/reviews/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-shopping-merchant-reviews/$1/google-shopping-merchant-reviews/src" - source: "/google/shopping/merchant/reviews/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-shopping-merchant-reviews/$1/samples/snippets/generated" diff --git a/java-spanneradapter/.OwlBot-hermetic.yaml b/java-spanneradapter/.OwlBot-hermetic.yaml index 1acae29a2eae..e1613bb2f512 100644 --- a/java-spanneradapter/.OwlBot-hermetic.yaml +++ b/java-spanneradapter/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-spanneradapter/grpc-google-.*/src" - "/java-spanneradapter/proto-google-.*/src" -- "/java-spanneradapter/google-.*/src/main" -- "/java-spanneradapter/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-spanneradapter/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-spanneradapter/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-spanneradapter/google-.*/src" - "/java-spanneradapter/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/spanner/adapter/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-spanneradapter/$1/proto-google-cloud-spanneradapter-$1/src" - source: "/google/spanner/adapter/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-spanneradapter/$1/grpc-google-cloud-spanneradapter-$1/src" -- source: "/google/spanner/adapter/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-spanneradapter/$1/google-cloud-spanneradapter/src/main" +- source: "/google/spanner/adapter/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-spanneradapter/$1/google-cloud-spanneradapter/src" - source: "/google/spanner/adapter/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-spanneradapter/$1/samples/snippets/generated" diff --git a/java-speech/.OwlBot-hermetic.yaml b/java-speech/.OwlBot-hermetic.yaml index 620e118ad0e9..cccfac32ddd0 100644 --- a/java-speech/.OwlBot-hermetic.yaml +++ b/java-speech/.OwlBot-hermetic.yaml @@ -17,15 +17,13 @@ deep-remove-regex: - "/java-speech/samples/snippets/generated" - "/java-speech/grpc-google-.*/src" - "/java-speech/proto-google-.*/src" -- "/java-speech/google-.*/src/main" -- "/java-speech/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-speech/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-speech/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-speech/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-speech/src/test/java/com/google/.*/speech/v1/SpeechSmokeTest.java" -- "/.*google-cloud-speech/src/test/java/com/google/.*/speech/v1p1beta1/SpeechSmokeTest.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-speech/src/test/java/com/google/cloud/speech/v1/SpeechSmokeTest.java" +- "/.*google-cloud-speech/src/test/java/com/google/cloud/speech/v1p1beta1/SpeechSmokeTest.java" - "/.*google-cloud-speech/src/test/resources/hello.flac" - "/.*google-cloud-speech/src/test/resources/META-INF/native-image/" @@ -34,8 +32,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-speech/$1/proto-google-cloud-speech-$1/src" - source: "/google/cloud/speech/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-speech/$1/grpc-google-cloud-speech-$1/src" -- source: "/google/cloud/speech/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-speech/$1/google-cloud-speech/src/main" +- source: "/google/cloud/speech/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-speech/$1/google-cloud-speech/src" - source: "/google/cloud/speech/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-speech/$1/samples/snippets/generated" diff --git a/java-storage-transfer/.OwlBot-hermetic.yaml b/java-storage-transfer/.OwlBot-hermetic.yaml index 0bfde85b6c9e..d27a909724d3 100644 --- a/java-storage-transfer/.OwlBot-hermetic.yaml +++ b/java-storage-transfer/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-storage-transfer/grpc-google-.*/src" - "/java-storage-transfer/proto-google-.*/src" -- "/java-storage-transfer/google-.*/src/main" -- "/java-storage-transfer/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-storage-transfer/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-storage-transfer/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-storage-transfer/google-.*/src" - "/java-storage-transfer/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/storagetransfer/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-storage-transfer/$1/proto-google-cloud-storage-transfer-$1/src" - source: "/google/storagetransfer/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-storage-transfer/$1/grpc-google-cloud-storage-transfer-$1/src" -- source: "/google/storagetransfer/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-storage-transfer/$1/google-cloud-storage-transfer/src/main" +- source: "/google/storagetransfer/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-storage-transfer/$1/google-cloud-storage-transfer/src" - source: "/google/storagetransfer/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-storage-transfer/$1/samples/snippets/generated" diff --git a/java-storagebatchoperations/.OwlBot-hermetic.yaml b/java-storagebatchoperations/.OwlBot-hermetic.yaml index f21399a9f155..5740ca2e28b9 100644 --- a/java-storagebatchoperations/.OwlBot-hermetic.yaml +++ b/java-storagebatchoperations/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-storagebatchoperations/grpc-google-.*/src" - "/java-storagebatchoperations/proto-google-.*/src" -- "/java-storagebatchoperations/google-.*/src/main" -- "/java-storagebatchoperations/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-storagebatchoperations/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-storagebatchoperations/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-storagebatchoperations/google-.*/src" - "/java-storagebatchoperations/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/storagebatchoperations/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-storagebatchoperations/$1/proto-google-cloud-storagebatchoperations-$1/src" - source: "/google/cloud/storagebatchoperations/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-storagebatchoperations/$1/grpc-google-cloud-storagebatchoperations-$1/src" -- source: "/google/cloud/storagebatchoperations/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-storagebatchoperations/$1/google-cloud-storagebatchoperations/src/main" +- source: "/google/cloud/storagebatchoperations/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-storagebatchoperations/$1/google-cloud-storagebatchoperations/src" - source: "/google/cloud/storagebatchoperations/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-storagebatchoperations/$1/samples/snippets/generated" diff --git a/java-storageinsights/.OwlBot-hermetic.yaml b/java-storageinsights/.OwlBot-hermetic.yaml index 47a50b6ddfa8..e07bfe54426c 100644 --- a/java-storageinsights/.OwlBot-hermetic.yaml +++ b/java-storageinsights/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-storageinsights/grpc-google-.*/src" - "/java-storageinsights/proto-google-.*/src" -- "/java-storageinsights/google-.*/src/main" -- "/java-storageinsights/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-storageinsights/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-storageinsights/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-storageinsights/google-.*/src" - "/java-storageinsights/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/storageinsights/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-storageinsights/$1/proto-google-cloud-storageinsights-$1/src" - source: "/google/cloud/storageinsights/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-storageinsights/$1/grpc-google-cloud-storageinsights-$1/src" -- source: "/google/cloud/storageinsights/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-storageinsights/$1/google-cloud-storageinsights/src/main" +- source: "/google/cloud/storageinsights/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-storageinsights/$1/google-cloud-storageinsights/src" - source: "/google/cloud/storageinsights/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-storageinsights/$1/samples/snippets/generated" diff --git a/java-talent/.OwlBot-hermetic.yaml b/java-talent/.OwlBot-hermetic.yaml index 003c01d7e64a..2144d70d7b19 100644 --- a/java-talent/.OwlBot-hermetic.yaml +++ b/java-talent/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-talent/samples/snippets/generated" - "/java-talent/grpc-google-.*/src" - "/java-talent/proto-google-.*/src" -- "/java-talent/google-.*/src/main" -- "/java-talent/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-talent/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-talent/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-talent/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/talent/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-talent/$1/proto-google-cloud-talent-$1/src" - source: "/google/cloud/talent/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-talent/$1/grpc-google-cloud-talent-$1/src" -- source: "/google/cloud/talent/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-talent/$1/google-cloud-talent/src/main" +- source: "/google/cloud/talent/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-talent/$1/google-cloud-talent/src" - source: "/google/cloud/talent/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-talent/$1/samples/snippets/generated" diff --git a/java-tasks/.OwlBot-hermetic.yaml b/java-tasks/.OwlBot-hermetic.yaml index 64038befc453..0c6e99f9fa6d 100644 --- a/java-tasks/.OwlBot-hermetic.yaml +++ b/java-tasks/.OwlBot-hermetic.yaml @@ -17,14 +17,12 @@ deep-remove-regex: - "/java-tasks/samples/snippets/generated" - "/java-tasks/grpc-google-.*/src" - "/java-tasks/proto-google-.*/src" -- "/java-tasks/google-.*/src/main" -- "/java-tasks/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-tasks/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-tasks/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-tasks/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-tasks/src/test/java/com/google/.*/tasks/v2beta3/CloudTasksSmokeTest.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-tasks/src/test/java/com/google/cloud/tasks/v2beta3/CloudTasksSmokeTest.java" - "/.*proto-google-cloud-tasks-v2/src/main/java/com/google/cloud/tasks/v2/ProjectName.java" - "/.*proto-google-cloud-tasks-v2beta2/src/main/java/com/google/cloud/tasks/v2beta2/ProjectName.java" - "/.*proto-google-cloud-tasks-v2beta3/src/main/java/com/google/cloud/tasks/v2beta3/ProjectName.java" @@ -34,8 +32,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-tasks/$1/proto-google-cloud-tasks-$1/src" - source: "/google/cloud/tasks/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-tasks/$1/grpc-google-cloud-tasks-$1/src" -- source: "/google/cloud/tasks/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-tasks/$1/google-cloud-tasks/src/main" +- source: "/google/cloud/tasks/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-tasks/$1/google-cloud-tasks/src" - source: "/google/cloud/tasks/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-tasks/$1/samples/snippets/generated" diff --git a/java-telcoautomation/.OwlBot-hermetic.yaml b/java-telcoautomation/.OwlBot-hermetic.yaml index 980aec3062ba..d8f63cf283f9 100644 --- a/java-telcoautomation/.OwlBot-hermetic.yaml +++ b/java-telcoautomation/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-telcoautomation/grpc-google-.*/src" - "/java-telcoautomation/proto-google-.*/src" -- "/java-telcoautomation/google-.*/src/main" -- "/java-telcoautomation/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-telcoautomation/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-telcoautomation/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-telcoautomation/google-.*/src" - "/java-telcoautomation/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/telcoautomation/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-telcoautomation/$1/proto-google-cloud-telcoautomation-$1/src" - source: "/google/cloud/telcoautomation/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-telcoautomation/$1/grpc-google-cloud-telcoautomation-$1/src" -- source: "/google/cloud/telcoautomation/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-telcoautomation/$1/google-cloud-telcoautomation/src/main" +- source: "/google/cloud/telcoautomation/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-telcoautomation/$1/google-cloud-telcoautomation/src" - source: "/google/cloud/telcoautomation/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-telcoautomation/$1/samples/snippets/generated" diff --git a/java-texttospeech/.OwlBot-hermetic.yaml b/java-texttospeech/.OwlBot-hermetic.yaml index f9a724d687d0..4ef41ea7d2bb 100644 --- a/java-texttospeech/.OwlBot-hermetic.yaml +++ b/java-texttospeech/.OwlBot-hermetic.yaml @@ -17,15 +17,13 @@ deep-remove-regex: - "/java-texttospeech/samples/snippets/generated" - "/java-texttospeech/grpc-google-.*/src" - "/java-texttospeech/proto-google-.*/src" -- "/java-texttospeech/google-.*/src/main" -- "/java-texttospeech/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-texttospeech/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-texttospeech/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-texttospeech/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-texttospeech/src/test/java/com/google/.*/texttospeech/v1/TextToSpeechSmokeTest.java" -- "/.*google-cloud-texttospeech/src/test/java/com/google/.*/texttospeech/v1beta1/TextToSpeechSmokeTest.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1/TextToSpeechSmokeTest.java" +- "/.*google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSmokeTest.java" deep-copy-regex: @@ -33,8 +31,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-texttospeech/$1/proto-google-cloud-texttospeech-$1/src" - source: "/google/cloud/texttospeech/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-texttospeech/$1/grpc-google-cloud-texttospeech-$1/src" -- source: "/google/cloud/texttospeech/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-texttospeech/$1/google-cloud-texttospeech/src/main" +- source: "/google/cloud/texttospeech/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-texttospeech/$1/google-cloud-texttospeech/src" - source: "/google/cloud/texttospeech/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-texttospeech/$1/samples/snippets/generated" diff --git a/java-tpu/.OwlBot-hermetic.yaml b/java-tpu/.OwlBot-hermetic.yaml index 47a0185b1d2d..3794e77bf685 100644 --- a/java-tpu/.OwlBot-hermetic.yaml +++ b/java-tpu/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-tpu/samples/snippets/generated" - "/java-tpu/grpc-google-.*/src" - "/java-tpu/proto-google-.*/src" -- "/java-tpu/google-.*/src/main" -- "/java-tpu/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-tpu/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-tpu/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-tpu/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-tpu/$1/proto-google-cloud-tpu-$1/src" - source: "/google/cloud/tpu/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-tpu/$1/grpc-google-cloud-tpu-$1/src" -- source: "/google/cloud/tpu/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-tpu/$1/google-cloud-tpu/src/main" +- source: "/google/cloud/tpu/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-tpu/$1/google-cloud-tpu/src" - source: "/google/cloud/tpu/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-tpu/$1/samples/snippets/generated" diff --git a/java-trace/.OwlBot-hermetic.yaml b/java-trace/.OwlBot-hermetic.yaml index b434ba61ff0e..fa7122e5a04c 100644 --- a/java-trace/.OwlBot-hermetic.yaml +++ b/java-trace/.OwlBot-hermetic.yaml @@ -16,24 +16,22 @@ deep-remove-regex: - "/java-trace/grpc-google-.*/src" - "/java-trace/proto-google-.*/src" -- "/java-trace/google-.*/src/main" -- "/java-trace/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-trace/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-trace/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-trace/google-.*/src" - "/java-trace/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-trace/src/test/java/com/google/.*/trace/v1/VPCServiceControlTest.java" -- "/.*google-cloud-trace/src/test/java/com/google/.*/trace/v2/VPCServiceControlTest.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-trace/src/test/java/com/google/cloud/trace/v1/VPCServiceControlTest.java" +- "/.*google-cloud-trace/src/test/java/com/google/cloud/trace/v2/VPCServiceControlTest.java" deep-copy-regex: - source: "/google/devtools/cloudtrace/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-trace/$1/proto-google-cloud-trace-$1/src" - source: "/google/devtools/cloudtrace/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-trace/$1/grpc-google-cloud-trace-$1/src" -- source: "/google/devtools/cloudtrace/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-trace/$1/google-cloud-trace/src/main" +- source: "/google/devtools/cloudtrace/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-trace/$1/google-cloud-trace/src" - source: "/google/devtools/cloudtrace/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-trace/$1/samples/snippets/generated" diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceService.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceService.java new file mode 100644 index 000000000000..87adc39cda29 --- /dev/null +++ b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTraceService implements MockGrpcService { + private final MockTraceServiceImpl serviceImpl; + + public MockTraceService() { + serviceImpl = new MockTraceServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceServiceImpl.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceServiceImpl.java new file mode 100644 index 000000000000..8d9ec4ceaf7b --- /dev/null +++ b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/MockTraceServiceImpl.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.BetaApi; +import com.google.devtools.cloudtrace.v1.GetTraceRequest; +import com.google.devtools.cloudtrace.v1.ListTracesRequest; +import com.google.devtools.cloudtrace.v1.ListTracesResponse; +import com.google.devtools.cloudtrace.v1.PatchTracesRequest; +import com.google.devtools.cloudtrace.v1.Trace; +import com.google.devtools.cloudtrace.v1.TraceServiceGrpc.TraceServiceImplBase; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTraceServiceImpl extends TraceServiceImplBase { + private List requests; + private Queue responses; + + public MockTraceServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void listTraces( + ListTracesRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListTracesResponse) { + requests.add(request); + responseObserver.onNext(((ListTracesResponse) 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 ListTraces, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListTracesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getTrace(GetTraceRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Trace) { + requests.add(request); + responseObserver.onNext(((Trace) 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 GetTrace, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Trace.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void patchTraces(PatchTracesRequest 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 PatchTraces, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientHttpJsonTest.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..6ebec9afb0c5 --- /dev/null +++ b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientHttpJsonTest.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.trace.v1; + +import static com.google.cloud.trace.v1.TraceServiceClient.ListTracesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.trace.v1.stub.HttpJsonTraceServiceStub; +import com.google.common.collect.Lists; +import com.google.devtools.cloudtrace.v1.ListTracesResponse; +import com.google.devtools.cloudtrace.v1.Trace; +import com.google.devtools.cloudtrace.v1.TraceSpan; +import com.google.devtools.cloudtrace.v1.Traces; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TraceServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static TraceServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonTraceServiceStub.getMethodDescriptors(), + TraceServiceSettings.getDefaultEndpoint()); + TraceServiceSettings settings = + TraceServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + TraceServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TraceServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listTracesTest() throws Exception { + Trace responsesElement = Trace.newBuilder().build(); + ListTracesResponse expectedResponse = + ListTracesResponse.newBuilder() + .setNextPageToken("") + .addAllTraces(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-1530"; + + ListTracesPagedResponse pagedListResponse = client.listTraces(projectId); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTracesList().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 listTracesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-1530"; + client.listTraces(projectId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTraceTest() throws Exception { + Trace expectedResponse = + Trace.newBuilder() + .setProjectId("projectId-894832108") + .setTraceId("traceId-1067401920") + .addAllSpans(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-1530"; + String traceId = "traceId-8890"; + + Trace actualResponse = client.getTrace(projectId, traceId); + 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 getTraceExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-1530"; + String traceId = "traceId-8890"; + client.getTrace(projectId, traceId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void patchTracesTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String projectId = "projectId-1530"; + Traces traces = Traces.newBuilder().build(); + + client.patchTraces(projectId, traces); + + 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 patchTracesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String projectId = "projectId-1530"; + Traces traces = Traces.newBuilder().build(); + client.patchTraces(projectId, traces); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientTest.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientTest.java new file mode 100644 index 000000000000..44d15d9dd336 --- /dev/null +++ b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v1/TraceServiceClientTest.java @@ -0,0 +1,213 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import static com.google.cloud.trace.v1.TraceServiceClient.ListTracesPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +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.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.common.collect.Lists; +import com.google.devtools.cloudtrace.v1.GetTraceRequest; +import com.google.devtools.cloudtrace.v1.ListTracesRequest; +import com.google.devtools.cloudtrace.v1.ListTracesResponse; +import com.google.devtools.cloudtrace.v1.PatchTracesRequest; +import com.google.devtools.cloudtrace.v1.Trace; +import com.google.devtools.cloudtrace.v1.TraceSpan; +import com.google.devtools.cloudtrace.v1.Traces; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TraceServiceClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockTraceService mockTraceService; + private LocalChannelProvider channelProvider; + private TraceServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockTraceService = new MockTraceService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockTraceService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + TraceServiceSettings settings = + TraceServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TraceServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listTracesTest() throws Exception { + Trace responsesElement = Trace.newBuilder().build(); + ListTracesResponse expectedResponse = + ListTracesResponse.newBuilder() + .setNextPageToken("") + .addAllTraces(Arrays.asList(responsesElement)) + .build(); + mockTraceService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + + ListTracesPagedResponse pagedListResponse = client.listTraces(projectId); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getTracesList().get(0), resources.get(0)); + + List actualRequests = mockTraceService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListTracesRequest actualRequest = ((ListTracesRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listTracesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTraceService.addException(exception); + + try { + String projectId = "projectId-894832108"; + client.listTraces(projectId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getTraceTest() throws Exception { + Trace expectedResponse = + Trace.newBuilder() + .setProjectId("projectId-894832108") + .setTraceId("traceId-1067401920") + .addAllSpans(new ArrayList()) + .build(); + mockTraceService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + String traceId = "traceId-1067401920"; + + Trace actualResponse = client.getTrace(projectId, traceId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTraceService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetTraceRequest actualRequest = ((GetTraceRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(traceId, actualRequest.getTraceId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getTraceExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTraceService.addException(exception); + + try { + String projectId = "projectId-894832108"; + String traceId = "traceId-1067401920"; + client.getTrace(projectId, traceId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void patchTracesTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTraceService.addResponse(expectedResponse); + + String projectId = "projectId-894832108"; + Traces traces = Traces.newBuilder().build(); + + client.patchTraces(projectId, traces); + + List actualRequests = mockTraceService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + PatchTracesRequest actualRequest = ((PatchTracesRequest) actualRequests.get(0)); + + Assert.assertEquals(projectId, actualRequest.getProjectId()); + Assert.assertEquals(traces, actualRequest.getTraces()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void patchTracesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTraceService.addException(exception); + + try { + String projectId = "projectId-894832108"; + Traces traces = Traces.newBuilder().build(); + client.patchTraces(projectId, traces); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceService.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceService.java new file mode 100644 index 000000000000..9bc0330c2c08 --- /dev/null +++ b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTraceService implements MockGrpcService { + private final MockTraceServiceImpl serviceImpl; + + public MockTraceService() { + serviceImpl = new MockTraceServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceServiceImpl.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceServiceImpl.java new file mode 100644 index 000000000000..5f981b35f193 --- /dev/null +++ b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/MockTraceServiceImpl.java @@ -0,0 +1,104 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.core.BetaApi; +import com.google.devtools.cloudtrace.v2.BatchWriteSpansRequest; +import com.google.devtools.cloudtrace.v2.Span; +import com.google.devtools.cloudtrace.v2.TraceServiceGrpc.TraceServiceImplBase; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Empty; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockTraceServiceImpl extends TraceServiceImplBase { + private List requests; + private Queue responses; + + public MockTraceServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void batchWriteSpans( + BatchWriteSpansRequest 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 BatchWriteSpans, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createSpan(Span request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Span) { + requests.add(request); + responseObserver.onNext(((Span) 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 CreateSpan, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Span.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientHttpJsonTest.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..38ec0ca017c5 --- /dev/null +++ b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientHttpJsonTest.java @@ -0,0 +1,254 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.trace.v2.stub.HttpJsonTraceServiceStub; +import com.google.devtools.cloudtrace.v2.ProjectName; +import com.google.devtools.cloudtrace.v2.Span; +import com.google.devtools.cloudtrace.v2.SpanName; +import com.google.devtools.cloudtrace.v2.StackTrace; +import com.google.devtools.cloudtrace.v2.TruncatableString; +import com.google.protobuf.BoolValue; +import com.google.protobuf.Empty; +import com.google.protobuf.Int32Value; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TraceServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static TraceServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonTraceServiceStub.getMethodDescriptors(), + TraceServiceSettings.getDefaultEndpoint()); + TraceServiceSettings settings = + TraceServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + TraceServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TraceServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void batchWriteSpansTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ProjectName name = ProjectName.of("[PROJECT]"); + List spans = new ArrayList<>(); + + client.batchWriteSpans(name, spans); + + 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 batchWriteSpansExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName name = ProjectName.of("[PROJECT]"); + List spans = new ArrayList<>(); + client.batchWriteSpans(name, spans); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchWriteSpansTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-3664"; + List spans = new ArrayList<>(); + + client.batchWriteSpans(name, spans); + + 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 batchWriteSpansExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-3664"; + List spans = new ArrayList<>(); + client.batchWriteSpans(name, spans); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSpanTest() throws Exception { + Span expectedResponse = + Span.newBuilder() + .setName(SpanName.of("[PROJECT]", "[TRACE]", "[SPAN]").toString()) + .setSpanId("spanId-896182779") + .setParentSpanId("parentSpanId1059234639") + .setDisplayName(TruncatableString.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setAttributes(Span.Attributes.newBuilder().build()) + .setStackTrace(StackTrace.newBuilder().build()) + .setTimeEvents(Span.TimeEvents.newBuilder().build()) + .setLinks(Span.Links.newBuilder().build()) + .setStatus(Status.newBuilder().build()) + .setSameProcessAsParentSpan(BoolValue.newBuilder().build()) + .setChildSpanCount(Int32Value.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Span request = + Span.newBuilder() + .setName(SpanName.of("[PROJECT]", "[TRACE]", "[SPAN]").toString()) + .setSpanId("spanId-896182779") + .setParentSpanId("parentSpanId1059234639") + .setDisplayName(TruncatableString.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setAttributes(Span.Attributes.newBuilder().build()) + .setStackTrace(StackTrace.newBuilder().build()) + .setTimeEvents(Span.TimeEvents.newBuilder().build()) + .setLinks(Span.Links.newBuilder().build()) + .setStatus(Status.newBuilder().build()) + .setSameProcessAsParentSpan(BoolValue.newBuilder().build()) + .setChildSpanCount(Int32Value.newBuilder().build()) + .build(); + + Span actualResponse = client.createSpan(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 createSpanExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Span request = + Span.newBuilder() + .setName(SpanName.of("[PROJECT]", "[TRACE]", "[SPAN]").toString()) + .setSpanId("spanId-896182779") + .setParentSpanId("parentSpanId1059234639") + .setDisplayName(TruncatableString.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setAttributes(Span.Attributes.newBuilder().build()) + .setStackTrace(StackTrace.newBuilder().build()) + .setTimeEvents(Span.TimeEvents.newBuilder().build()) + .setLinks(Span.Links.newBuilder().build()) + .setStatus(Status.newBuilder().build()) + .setSameProcessAsParentSpan(BoolValue.newBuilder().build()) + .setChildSpanCount(Int32Value.newBuilder().build()) + .build(); + client.createSpan(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientTest.java b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientTest.java new file mode 100644 index 000000000000..562de9a35d91 --- /dev/null +++ b/java-trace/google-cloud-trace/src/test/java/com/google/cloud/trace/v2/TraceServiceClientTest.java @@ -0,0 +1,257 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF 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; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +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.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.devtools.cloudtrace.v2.BatchWriteSpansRequest; +import com.google.devtools.cloudtrace.v2.ProjectName; +import com.google.devtools.cloudtrace.v2.Span; +import com.google.devtools.cloudtrace.v2.SpanName; +import com.google.devtools.cloudtrace.v2.StackTrace; +import com.google.devtools.cloudtrace.v2.TruncatableString; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.BoolValue; +import com.google.protobuf.Empty; +import com.google.protobuf.Int32Value; +import com.google.protobuf.Timestamp; +import com.google.rpc.Status; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.UUID; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TraceServiceClientTest { + private static MockServiceHelper mockServiceHelper; + private static MockTraceService mockTraceService; + private LocalChannelProvider channelProvider; + private TraceServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockTraceService = new MockTraceService(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockTraceService)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + TraceServiceSettings settings = + TraceServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TraceServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void batchWriteSpansTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTraceService.addResponse(expectedResponse); + + ProjectName name = ProjectName.of("[PROJECT]"); + List spans = new ArrayList<>(); + + client.batchWriteSpans(name, spans); + + List actualRequests = mockTraceService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchWriteSpansRequest actualRequest = ((BatchWriteSpansRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(spans, actualRequest.getSpansList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchWriteSpansExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTraceService.addException(exception); + + try { + ProjectName name = ProjectName.of("[PROJECT]"); + List spans = new ArrayList<>(); + client.batchWriteSpans(name, spans); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchWriteSpansTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockTraceService.addResponse(expectedResponse); + + String name = "name3373707"; + List spans = new ArrayList<>(); + + client.batchWriteSpans(name, spans); + + List actualRequests = mockTraceService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BatchWriteSpansRequest actualRequest = ((BatchWriteSpansRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(spans, actualRequest.getSpansList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void batchWriteSpansExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTraceService.addException(exception); + + try { + String name = "name3373707"; + List spans = new ArrayList<>(); + client.batchWriteSpans(name, spans); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createSpanTest() throws Exception { + Span expectedResponse = + Span.newBuilder() + .setName(SpanName.of("[PROJECT]", "[TRACE]", "[SPAN]").toString()) + .setSpanId("spanId-896182779") + .setParentSpanId("parentSpanId1059234639") + .setDisplayName(TruncatableString.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setAttributes(Span.Attributes.newBuilder().build()) + .setStackTrace(StackTrace.newBuilder().build()) + .setTimeEvents(Span.TimeEvents.newBuilder().build()) + .setLinks(Span.Links.newBuilder().build()) + .setStatus(Status.newBuilder().build()) + .setSameProcessAsParentSpan(BoolValue.newBuilder().build()) + .setChildSpanCount(Int32Value.newBuilder().build()) + .build(); + mockTraceService.addResponse(expectedResponse); + + Span request = + Span.newBuilder() + .setName(SpanName.of("[PROJECT]", "[TRACE]", "[SPAN]").toString()) + .setSpanId("spanId-896182779") + .setParentSpanId("parentSpanId1059234639") + .setDisplayName(TruncatableString.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setAttributes(Span.Attributes.newBuilder().build()) + .setStackTrace(StackTrace.newBuilder().build()) + .setTimeEvents(Span.TimeEvents.newBuilder().build()) + .setLinks(Span.Links.newBuilder().build()) + .setStatus(Status.newBuilder().build()) + .setSameProcessAsParentSpan(BoolValue.newBuilder().build()) + .setChildSpanCount(Int32Value.newBuilder().build()) + .build(); + + Span actualResponse = client.createSpan(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockTraceService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + Span actualRequest = ((Span) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getSpanId(), actualRequest.getSpanId()); + Assert.assertEquals(request.getParentSpanId(), actualRequest.getParentSpanId()); + Assert.assertEquals(request.getDisplayName(), actualRequest.getDisplayName()); + Assert.assertEquals(request.getStartTime(), actualRequest.getStartTime()); + Assert.assertEquals(request.getEndTime(), actualRequest.getEndTime()); + Assert.assertEquals(request.getAttributes(), actualRequest.getAttributes()); + Assert.assertEquals(request.getStackTrace(), actualRequest.getStackTrace()); + Assert.assertEquals(request.getTimeEvents(), actualRequest.getTimeEvents()); + Assert.assertEquals(request.getLinks(), actualRequest.getLinks()); + Assert.assertEquals(request.getStatus(), actualRequest.getStatus()); + Assert.assertEquals( + request.getSameProcessAsParentSpan(), actualRequest.getSameProcessAsParentSpan()); + Assert.assertEquals(request.getChildSpanCount(), actualRequest.getChildSpanCount()); + Assert.assertEquals(request.getSpanKind(), actualRequest.getSpanKind()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createSpanExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockTraceService.addException(exception); + + try { + Span request = + Span.newBuilder() + .setName(SpanName.of("[PROJECT]", "[TRACE]", "[SPAN]").toString()) + .setSpanId("spanId-896182779") + .setParentSpanId("parentSpanId1059234639") + .setDisplayName(TruncatableString.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setAttributes(Span.Attributes.newBuilder().build()) + .setStackTrace(StackTrace.newBuilder().build()) + .setTimeEvents(Span.TimeEvents.newBuilder().build()) + .setLinks(Span.Links.newBuilder().build()) + .setStatus(Status.newBuilder().build()) + .setSameProcessAsParentSpan(BoolValue.newBuilder().build()) + .setChildSpanCount(Int32Value.newBuilder().build()) + .build(); + client.createSpan(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-valkey/.OwlBot-hermetic.yaml b/java-valkey/.OwlBot-hermetic.yaml index cf9d331e2d50..0648c0ad5d99 100644 --- a/java-valkey/.OwlBot-hermetic.yaml +++ b/java-valkey/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-valkey/grpc-google-.*/src" - "/java-valkey/proto-google-.*/src" -- "/java-valkey/google-.*/src/main" -- "/java-valkey/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-valkey/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-valkey/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-valkey/google-.*/src" - "/java-valkey/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/memorystore/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-valkey/$1/proto-google-cloud-valkey-$1/src" - source: "/google/cloud/memorystore/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-valkey/$1/grpc-google-cloud-valkey-$1/src" -- source: "/google/cloud/memorystore/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-valkey/$1/google-cloud-valkey/src/main" +- source: "/google/cloud/memorystore/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-valkey/$1/google-cloud-valkey/src" - source: "/google/cloud/memorystore/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-valkey/$1/samples/snippets/generated" diff --git a/java-vectorsearch/.OwlBot-hermetic.yaml b/java-vectorsearch/.OwlBot-hermetic.yaml index dffccf4c84d2..b3fa7977161f 100644 --- a/java-vectorsearch/.OwlBot-hermetic.yaml +++ b/java-vectorsearch/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-vectorsearch/grpc-google-.*/src" - "/java-vectorsearch/proto-google-.*/src" -- "/java-vectorsearch/google-.*/src/main" -- "/java-vectorsearch/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-vectorsearch/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-vectorsearch/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-vectorsearch/google-.*/src" - "/java-vectorsearch/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/vectorsearch/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-vectorsearch/$1/proto-google-cloud-vectorsearch-$1/src" - source: "/google/cloud/vectorsearch/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-vectorsearch/$1/grpc-google-cloud-vectorsearch-$1/src" -- source: "/google/cloud/vectorsearch/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-vectorsearch/$1/google-cloud-vectorsearch/src/main" +- source: "/google/cloud/vectorsearch/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-vectorsearch/$1/google-cloud-vectorsearch/src" - source: "/google/cloud/vectorsearch/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-vectorsearch/$1/samples/snippets/generated" diff --git a/java-video-intelligence/.OwlBot-hermetic.yaml b/java-video-intelligence/.OwlBot-hermetic.yaml index af0e2b5ec625..d45a10f8a927 100644 --- a/java-video-intelligence/.OwlBot-hermetic.yaml +++ b/java-video-intelligence/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-video-intelligence/samples/snippets/generated" - "/java-video-intelligence/grpc-google-.*/src" - "/java-video-intelligence/proto-google-.*/src" -- "/java-video-intelligence/google-.*/src/main" -- "/java-video-intelligence/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-video-intelligence/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-video-intelligence/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-video-intelligence/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/videointelligence/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-video-intelligence/$1/proto-google-cloud-video-intelligence-$1/src" - source: "/google/cloud/videointelligence/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-video-intelligence/$1/grpc-google-cloud-video-intelligence-$1/src" -- source: "/google/cloud/videointelligence/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-video-intelligence/$1/google-cloud-video-intelligence/src/main" +- source: "/google/cloud/videointelligence/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-video-intelligence/$1/google-cloud-video-intelligence/src" - source: "/google/cloud/videointelligence/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-video-intelligence/$1/samples/snippets/generated" diff --git a/java-video-live-stream/.OwlBot-hermetic.yaml b/java-video-live-stream/.OwlBot-hermetic.yaml index 4af2bd976514..d5a2876a1ffd 100644 --- a/java-video-live-stream/.OwlBot-hermetic.yaml +++ b/java-video-live-stream/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-video-live-stream/samples/snippets/generated" - "/java-video-live-stream/grpc-google-.*/src" - "/java-video-live-stream/proto-google-.*/src" -- "/java-video-live-stream/google-.*/src/main" -- "/java-video-live-stream/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-video-live-stream/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-video-live-stream/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-video-live-stream/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/video/livestream/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-video-live-stream/$1/proto-google-cloud-live-stream-$1/src" - source: "/google/cloud/video/livestream/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-video-live-stream/$1/grpc-google-cloud-live-stream-$1/src" -- source: "/google/cloud/video/livestream/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-video-live-stream/$1/google-cloud-live-stream/src/main" +- source: "/google/cloud/video/livestream/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-video-live-stream/$1/google-cloud-live-stream/src" - source: "/google/cloud/video/livestream/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-video-live-stream/$1/samples/snippets/generated" diff --git a/java-video-stitcher/.OwlBot-hermetic.yaml b/java-video-stitcher/.OwlBot-hermetic.yaml index 9fde5d293ca2..4a79449cfdbd 100644 --- a/java-video-stitcher/.OwlBot-hermetic.yaml +++ b/java-video-stitcher/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-video-stitcher/grpc-google-.*/src" - "/java-video-stitcher/proto-google-.*/src" -- "/java-video-stitcher/google-.*/src/main" -- "/java-video-stitcher/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-video-stitcher/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-video-stitcher/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-video-stitcher/google-.*/src" - "/java-video-stitcher/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/video/stitcher/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-video-stitcher/$1/proto-google-cloud-video-stitcher-$1/src" - source: "/google/cloud/video/stitcher/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-video-stitcher/$1/grpc-google-cloud-video-stitcher-$1/src" -- source: "/google/cloud/video/stitcher/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-video-stitcher/$1/google-cloud-video-stitcher/src/main" +- source: "/google/cloud/video/stitcher/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-video-stitcher/$1/google-cloud-video-stitcher/src" - source: "/google/cloud/video/stitcher/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-video-stitcher/$1/samples/snippets/generated" diff --git a/java-video-transcoder/.OwlBot-hermetic.yaml b/java-video-transcoder/.OwlBot-hermetic.yaml index 86eca2604a05..f6e4e1a4a4ff 100644 --- a/java-video-transcoder/.OwlBot-hermetic.yaml +++ b/java-video-transcoder/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-video-transcoder/samples/snippets/generated" - "/java-video-transcoder/grpc-google-.*/src" - "/java-video-transcoder/proto-google-.*/src" -- "/java-video-transcoder/google-.*/src/main" -- "/java-video-transcoder/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-video-transcoder/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-video-transcoder/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-video-transcoder/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/video/transcoder/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-video-transcoder/$1/proto-google-cloud-video-transcoder-$1/src" - source: "/google/cloud/video/transcoder/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-video-transcoder/$1/grpc-google-cloud-video-transcoder-$1/src" -- source: "/google/cloud/video/transcoder/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-video-transcoder/$1/google-cloud-video-transcoder/src/main" +- source: "/google/cloud/video/transcoder/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-video-transcoder/$1/google-cloud-video-transcoder/src" - source: "/google/cloud/video/transcoder/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-video-transcoder/$1/samples/snippets/generated" diff --git a/java-vision/.OwlBot-hermetic.yaml b/java-vision/.OwlBot-hermetic.yaml index 4eb02ebc71be..e394616ef3c0 100644 --- a/java-vision/.OwlBot-hermetic.yaml +++ b/java-vision/.OwlBot-hermetic.yaml @@ -17,15 +17,13 @@ deep-remove-regex: - "/java-vision/samples/snippets/generated" - "/java-vision/grpc-google-.*/src" - "/java-vision/proto-google-.*/src" -- "/java-vision/google-.*/src/main" -- "/java-vision/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-vision/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-vision/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-vision/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" - "/.*proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageName.java" -- "/.*google-cloud-vision/src/test/java/com/google/.*/vision/it/ITSystemTest.java" +- "/.*google-cloud-vision/src/test/java/com/google/cloud/vision/it/ITSystemTest.java" - "/.*google-cloud-vision/src/test/resources/city.jpg" - "/.*google-cloud-vision/src/test/resources/face_no_surprise.jpg" - "/.*google-cloud-vision/src/test/resources/landmark.jpg" @@ -39,8 +37,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-vision/$1/proto-google-cloud-vision-$1/src" - source: "/google/cloud/vision/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-vision/$1/grpc-google-cloud-vision-$1/src" -- source: "/google/cloud/vision/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-vision/$1/google-cloud-vision/src/main" +- source: "/google/cloud/vision/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-vision/$1/google-cloud-vision/src" - source: "/google/cloud/vision/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-vision/$1/samples/snippets/generated" diff --git a/java-visionai/.OwlBot-hermetic.yaml b/java-visionai/.OwlBot-hermetic.yaml index 7ce644687c56..05f7525e913b 100644 --- a/java-visionai/.OwlBot-hermetic.yaml +++ b/java-visionai/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-visionai/grpc-google-.*/src" - "/java-visionai/proto-google-.*/src" -- "/java-visionai/google-.*/src/main" -- "/java-visionai/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-visionai/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-visionai/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-visionai/google-.*/src" - "/java-visionai/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/visionai/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-visionai/$1/proto-google-cloud-visionai-$1/src" - source: "/google/cloud/visionai/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-visionai/$1/grpc-google-cloud-visionai-$1/src" -- source: "/google/cloud/visionai/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-visionai/$1/google-cloud-visionai/src/main" +- source: "/google/cloud/visionai/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-visionai/$1/google-cloud-visionai/src" - source: "/google/cloud/visionai/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-visionai/$1/samples/snippets/generated" diff --git a/java-vmmigration/.OwlBot-hermetic.yaml b/java-vmmigration/.OwlBot-hermetic.yaml index 772aa237cbc5..56746503806f 100644 --- a/java-vmmigration/.OwlBot-hermetic.yaml +++ b/java-vmmigration/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-vmmigration/samples/snippets/generated" - "/java-vmmigration/grpc-google-.*/src" - "/java-vmmigration/proto-google-.*/src" -- "/java-vmmigration/google-.*/src/main" -- "/java-vmmigration/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-vmmigration/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-vmmigration/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-vmmigration/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/vmmigration/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-vmmigration/$1/proto-google-cloud-vmmigration-$1/src" - source: "/google/cloud/vmmigration/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-vmmigration/$1/grpc-google-cloud-vmmigration-$1/src" -- source: "/google/cloud/vmmigration/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-vmmigration/$1/google-cloud-vmmigration/src/main" +- source: "/google/cloud/vmmigration/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-vmmigration/$1/google-cloud-vmmigration/src" - source: "/google/cloud/vmmigration/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-vmmigration/$1/samples/snippets/generated" diff --git a/java-vmwareengine/.OwlBot-hermetic.yaml b/java-vmwareengine/.OwlBot-hermetic.yaml index 6f506cd42198..32625de40188 100644 --- a/java-vmwareengine/.OwlBot-hermetic.yaml +++ b/java-vmwareengine/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-vmwareengine/grpc-google-.*/src" - "/java-vmwareengine/proto-google-.*/src" -- "/java-vmwareengine/google-.*/src/main" -- "/java-vmwareengine/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-vmwareengine/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-vmwareengine/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-vmwareengine/google-.*/src" - "/java-vmwareengine/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/vmwareengine/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-vmwareengine/$1/proto-google-cloud-vmwareengine-$1/src" - source: "/google/cloud/vmwareengine/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-vmwareengine/$1/grpc-google-cloud-vmwareengine-$1/src" -- source: "/google/cloud/vmwareengine/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-vmwareengine/$1/google-cloud-vmwareengine/src/main" +- source: "/google/cloud/vmwareengine/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-vmwareengine/$1/google-cloud-vmwareengine/src" - source: "/google/cloud/vmwareengine/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-vmwareengine/$1/samples/snippets/generated" diff --git a/java-vpcaccess/.OwlBot-hermetic.yaml b/java-vpcaccess/.OwlBot-hermetic.yaml index 83b09c3dd02c..b59f9f7eb2cd 100644 --- a/java-vpcaccess/.OwlBot-hermetic.yaml +++ b/java-vpcaccess/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-vpcaccess/samples/snippets/generated" - "/java-vpcaccess/grpc-google-.*/src" - "/java-vpcaccess/proto-google-.*/src" -- "/java-vpcaccess/google-.*/src/main" -- "/java-vpcaccess/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-vpcaccess/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-vpcaccess/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-vpcaccess/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-vpcaccess/$1/proto-google-cloud-vpcaccess-$1/src" - source: "/google/cloud/vpcaccess/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-vpcaccess/$1/grpc-google-cloud-vpcaccess-$1/src" -- source: "/google/cloud/vpcaccess/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-vpcaccess/$1/google-cloud-vpcaccess/src/main" +- source: "/google/cloud/vpcaccess/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-vpcaccess/$1/google-cloud-vpcaccess/src" - source: "/google/cloud/vpcaccess/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-vpcaccess/$1/samples/snippets/generated" diff --git a/java-webrisk/.OwlBot-hermetic.yaml b/java-webrisk/.OwlBot-hermetic.yaml index 414548bd93b6..5f7551f9c27b 100644 --- a/java-webrisk/.OwlBot-hermetic.yaml +++ b/java-webrisk/.OwlBot-hermetic.yaml @@ -17,20 +17,19 @@ deep-remove-regex: - "/java-webrisk/samples/snippets/generated" - "/java-webrisk/grpc-google-.*/src" - "/java-webrisk/proto-google-.*/src" -- "/java-webrisk/google-.*/src/main" -- "/java-webrisk/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-webrisk/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-webrisk/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-webrisk/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/webrisk/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-webrisk/$1/proto-google-cloud-webrisk-$1/src" - source: "/google/cloud/webrisk/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-webrisk/$1/grpc-google-cloud-webrisk-$1/src" -- source: "/google/cloud/webrisk/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-webrisk/$1/google-cloud-webrisk/src/main" +- source: "/google/cloud/webrisk/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-webrisk/$1/google-cloud-webrisk/src" - source: "/google/cloud/webrisk/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-webrisk/$1/samples/snippets/generated" diff --git a/java-websecurityscanner/.OwlBot-hermetic.yaml b/java-websecurityscanner/.OwlBot-hermetic.yaml index 0a716ba6e4fd..cb099f7e32c5 100644 --- a/java-websecurityscanner/.OwlBot-hermetic.yaml +++ b/java-websecurityscanner/.OwlBot-hermetic.yaml @@ -17,15 +17,13 @@ deep-remove-regex: - "/java-websecurityscanner/samples/snippets/generated" - "/java-websecurityscanner/grpc-google-.*/src" - "/java-websecurityscanner/proto-google-.*/src" -- "/java-websecurityscanner/google-.*/src/main" -- "/java-websecurityscanner/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-websecurityscanner/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-websecurityscanner/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-websecurityscanner/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" -- "/.*google-cloud-websecurityscanner/src/test/java/com/google/.*/websecurityscanner/it/v1beta/VPCServiceControlNegativeTest.java" -- "/.*google-cloud-websecurityscanner/src/test/java/com/google/.*/websecurityscanner/it/v1beta/VPCServiceControlPositiveTest.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" +- "/.*google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/it/v1beta/VPCServiceControlNegativeTest.java" +- "/.*google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/it/v1beta/VPCServiceControlPositiveTest.java" deep-copy-regex: @@ -33,8 +31,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-websecurityscanner/$1/proto-google-cloud-websecurityscanner-$1/src" - source: "/google/cloud/websecurityscanner/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-websecurityscanner/$1/grpc-google-cloud-websecurityscanner-$1/src" -- source: "/google/cloud/websecurityscanner/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-websecurityscanner/$1/google-cloud-websecurityscanner/src/main" +- source: "/google/cloud/websecurityscanner/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-websecurityscanner/$1/google-cloud-websecurityscanner/src" - source: "/google/cloud/websecurityscanner/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-websecurityscanner/$1/samples/snippets/generated" diff --git a/java-workflow-executions/.OwlBot-hermetic.yaml b/java-workflow-executions/.OwlBot-hermetic.yaml index 8c53aab2bc68..db20f01d0b75 100644 --- a/java-workflow-executions/.OwlBot-hermetic.yaml +++ b/java-workflow-executions/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-workflow-executions/grpc-google-.*/src" - "/java-workflow-executions/proto-google-.*/src" -- "/java-workflow-executions/google-.*/src/main" -- "/java-workflow-executions/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-workflow-executions/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-workflow-executions/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-workflow-executions/google-.*/src" - "/java-workflow-executions/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/workflows/executions/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-workflow-executions/$1/proto-google-cloud-workflow-executions-$1/src" - source: "/google/cloud/workflows/executions/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-workflow-executions/$1/grpc-google-cloud-workflow-executions-$1/src" -- source: "/google/cloud/workflows/executions/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-workflow-executions/$1/google-cloud-workflow-executions/src/main" +- source: "/google/cloud/workflows/executions/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-workflow-executions/$1/google-cloud-workflow-executions/src" - source: "/google/cloud/workflows/executions/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-workflow-executions/$1/samples/snippets/generated" diff --git a/java-workflows/.OwlBot-hermetic.yaml b/java-workflows/.OwlBot-hermetic.yaml index 08daa325b060..cdee73a24d38 100644 --- a/java-workflows/.OwlBot-hermetic.yaml +++ b/java-workflows/.OwlBot-hermetic.yaml @@ -17,10 +17,7 @@ deep-remove-regex: - "/java-workflows/samples/snippets/generated" - "/java-workflows/grpc-google-.*/src" - "/java-workflows/proto-google-.*/src" -- "/java-workflows/google-.*/src/main" -- "/java-workflows/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-workflows/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-workflows/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-workflows/google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -30,8 +27,8 @@ deep-copy-regex: dest: "/owl-bot-staging/java-workflows/$1/proto-google-cloud-workflows-$1/src" - source: "/google/cloud/workflows/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-workflows/$1/grpc-google-cloud-workflows-$1/src" -- source: "/google/cloud/workflows/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-workflows/$1/google-cloud-workflows/src/main" +- source: "/google/cloud/workflows/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-workflows/$1/google-cloud-workflows/src" - source: "/google/cloud/workflows/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-workflows/$1/samples/snippets/generated" diff --git a/java-workloadmanager/.OwlBot-hermetic.yaml b/java-workloadmanager/.OwlBot-hermetic.yaml index b77c68b82bae..35136c7ef699 100644 --- a/java-workloadmanager/.OwlBot-hermetic.yaml +++ b/java-workloadmanager/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-workloadmanager/grpc-google-.*/src" - "/java-workloadmanager/proto-google-.*/src" -- "/java-workloadmanager/google-.*/src/main" -- "/java-workloadmanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-workloadmanager/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-workloadmanager/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-workloadmanager/google-.*/src" - "/java-workloadmanager/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/workloadmanager/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-workloadmanager/$1/proto-google-cloud-workloadmanager-$1/src" - source: "/google/cloud/workloadmanager/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-workloadmanager/$1/grpc-google-cloud-workloadmanager-$1/src" -- source: "/google/cloud/workloadmanager/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-workloadmanager/$1/google-cloud-workloadmanager/src/main" +- source: "/google/cloud/workloadmanager/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-workloadmanager/$1/google-cloud-workloadmanager/src" - source: "/google/cloud/workloadmanager/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-workloadmanager/$1/samples/snippets/generated" diff --git a/java-workspaceevents/.OwlBot-hermetic.yaml b/java-workspaceevents/.OwlBot-hermetic.yaml index 26b3135c9d04..34ebbcc9793e 100644 --- a/java-workspaceevents/.OwlBot-hermetic.yaml +++ b/java-workspaceevents/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-workspaceevents/grpc-google-.*/src" - "/java-workspaceevents/proto-google-.*/src" -- "/java-workspaceevents/google-.*/src/main" -- "/java-workspaceevents/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-workspaceevents/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-workspaceevents/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-workspaceevents/google-.*/src" - "/java-workspaceevents/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/apps/events/subscriptions/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-workspaceevents/$1/proto-google-cloud-workspaceevents-$1/src" - source: "/google/apps/events/subscriptions/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-workspaceevents/$1/grpc-google-cloud-workspaceevents-$1/src" -- source: "/google/apps/events/subscriptions/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-workspaceevents/$1/google-cloud-workspaceevents/src/main" +- source: "/google/apps/events/subscriptions/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-workspaceevents/$1/google-cloud-workspaceevents/src" - source: "/google/apps/events/subscriptions/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-workspaceevents/$1/samples/snippets/generated" diff --git a/java-workstations/.OwlBot-hermetic.yaml b/java-workstations/.OwlBot-hermetic.yaml index a7576c3f4a74..2e2118bed884 100644 --- a/java-workstations/.OwlBot-hermetic.yaml +++ b/java-workstations/.OwlBot-hermetic.yaml @@ -16,21 +16,20 @@ deep-remove-regex: - "/java-workstations/grpc-google-.*/src" - "/java-workstations/proto-google-.*/src" -- "/java-workstations/google-.*/src/main" -- "/java-workstations/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-workstations/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-workstations/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-workstations/google-.*/src" - "/java-workstations/samples/snippets/generated" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" +- "/.*google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/workstations/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-workstations/$1/proto-google-cloud-workstations-$1/src" - source: "/google/cloud/workstations/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-workstations/$1/grpc-google-cloud-workstations-$1/src" -- source: "/google/cloud/workstations/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-workstations/$1/google-cloud-workstations/src/main" +- source: "/google/cloud/workstations/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-workstations/$1/google-cloud-workstations/src" - source: "/google/cloud/workstations/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-workstations/$1/samples/snippets/generated" diff --git a/sdk-platform-java/hermetic_build/library_generation/templates/owlbot.yaml.monorepo.j2 b/sdk-platform-java/hermetic_build/library_generation/templates/owlbot.yaml.monorepo.j2 index 93c2cd8172b4..d3f29de32a7e 100644 --- a/sdk-platform-java/hermetic_build/library_generation/templates/owlbot.yaml.monorepo.j2 +++ b/sdk-platform-java/hermetic_build/library_generation/templates/owlbot.yaml.monorepo.j2 @@ -16,20 +16,20 @@ deep-remove-regex: - "/{{ module_name }}/grpc-google-.*/src" - "/{{ module_name }}/proto-google-.*/src" -- "/{{ module_name }}/google-.*/src/main" -- "/{{ module_name }}/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/{{ module_name }}/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/{{ module_name }}/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/{{ module_name }}/google-.*/src" - "/{{ module_name }}/samples/snippets/generated" +deep-preserve-regex: +- "/{{ module_name }}/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: {%- if has_version %} - source: "/{{ proto_path }}/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/{{ module_name }}/$1/proto-{{ artifact_id }}-$1/src" - source: "/{{ proto_path }}/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/{{ module_name }}/$1/grpc-{{ artifact_id }}-$1/src" -- source: "/{{ proto_path }}/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/{{ module_name }}/$1/{{ artifact_id }}/src/main" +- source: "/{{ proto_path }}/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/{{ module_name }}/$1/{{ artifact_id }}/src" - source: "/{{ proto_path }}/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/{{ module_name }}/$1/samples/snippets/generated" {%- else %} @@ -37,8 +37,8 @@ deep-copy-regex: dest: "/owl-bot-staging/{{ module_name }}/proto-{{ artifact_id }}/src" - source: "/{{ proto_path }}/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/{{ module_name }}/grpc-{{ artifact_id }}/src" -- source: "/{{ proto_path }}/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/{{ module_name }}/{{ artifact_id }}/src/main" +- source: "/{{ proto_path }}/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/{{ module_name }}/{{ artifact_id }}/src" - source: "/{{ proto_path }}/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/{{ module_name }}/samples/snippets/generated" {%- endif %} diff --git a/sdk-platform-java/hermetic_build/library_generation/tests/resources/goldens/.OwlBot-hermetic-golden.yaml b/sdk-platform-java/hermetic_build/library_generation/tests/resources/goldens/.OwlBot-hermetic-golden.yaml index 9d45123cd1cb..225b4620bf5f 100644 --- a/sdk-platform-java/hermetic_build/library_generation/tests/resources/goldens/.OwlBot-hermetic-golden.yaml +++ b/sdk-platform-java/hermetic_build/library_generation/tests/resources/goldens/.OwlBot-hermetic-golden.yaml @@ -16,19 +16,19 @@ deep-remove-regex: - "/java-bare-metal-solution/grpc-google-.*/src" - "/java-bare-metal-solution/proto-google-.*/src" -- "/java-bare-metal-solution/google-.*/src/main" -- "/java-bare-metal-solution/google-.*/src/test/java/com/google/.*/v.*/.*ClientTest.java" -- "/java-bare-metal-solution/google-.*/src/test/java/com/google/.*/v.*/.*ClientHttpJsonTest.java" -- "/java-bare-metal-solution/google-.*/src/test/java/com/google/.*/v.*/Mock.*.java" +- "/java-bare-metal-solution/google-.*/src" - "/java-bare-metal-solution/samples/snippets/generated" +deep-preserve-regex: +- "/java-bare-metal-solution/google-.*/src/test/java/com/google/cloud/.*/v.*/it/IT.*Test.java" + deep-copy-regex: - source: "/google/cloud/baremetalsolution/(v.*)/.*-java/proto-google-.*/src" dest: "/owl-bot-staging/java-bare-metal-solution/$1/proto-google-cloud-bare-metal-solution-$1/src" - source: "/google/cloud/baremetalsolution/(v.*)/.*-java/grpc-google-.*/src" dest: "/owl-bot-staging/java-bare-metal-solution/$1/grpc-google-cloud-bare-metal-solution-$1/src" -- source: "/google/cloud/baremetalsolution/(v.*)/.*-java/gapic-google-.*/src/main" - dest: "/owl-bot-staging/java-bare-metal-solution/$1/google-cloud-bare-metal-solution/src/main" +- source: "/google/cloud/baremetalsolution/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/java-bare-metal-solution/$1/google-cloud-bare-metal-solution/src" - source: "/google/cloud/baremetalsolution/(v.*)/.*-java/samples/snippets/generated" dest: "/owl-bot-staging/java-bare-metal-solution/$1/samples/snippets/generated" From e3d20823faaaa10bb2fe94af9d67bb9b03f1a5c0 Mon Sep 17 00:00:00 2001 From: Sagnik Ghosh Date: Thu, 25 Jun 2026 01:25:40 +0530 Subject: [PATCH 57/82] deps: Add org.bouncycastle:bcprov-jdk18on to java-shared-dependencies (#13531) This adds BouncyCastle to the shared dependency BOM. It is required to implement the OPAQUE PAKE protocol for Spanner Omni authentication (which relies on Argon2id and low-level Elliptic Curve math not available in standard Java/Tink). Bug: b/526057728 --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- .../third-party-dependencies/pom.xml | 6 ++++++ .../java-shared-dependencies/upper-bound-check/pom.xml | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/sdk-platform-java/java-shared-dependencies/third-party-dependencies/pom.xml b/sdk-platform-java/java-shared-dependencies/third-party-dependencies/pom.xml index 77da27155848..36809c3d794c 100644 --- a/sdk-platform-java/java-shared-dependencies/third-party-dependencies/pom.xml +++ b/sdk-platform-java/java-shared-dependencies/third-party-dependencies/pom.xml @@ -42,6 +42,7 @@ 0.8 17.0.0 0.6.0 + 1.80 1.16.0 1.45.0-alpha 20250517 @@ -49,6 +50,11 @@ + + org.bouncycastle + bcprov-jdk18on + ${bouncycastle.version} + org.apache.arrow arrow-memory-core diff --git a/sdk-platform-java/java-shared-dependencies/upper-bound-check/pom.xml b/sdk-platform-java/java-shared-dependencies/upper-bound-check/pom.xml index f0cf98e66fd8..a73012834e92 100644 --- a/sdk-platform-java/java-shared-dependencies/upper-bound-check/pom.xml +++ b/sdk-platform-java/java-shared-dependencies/upper-bound-check/pom.xml @@ -247,5 +247,9 @@ org.jspecify jspecify + + org.bouncycastle + bcprov-jdk18on + From 78d711c84d2e37c958c86ad6a304152e97fe8c6b Mon Sep 17 00:00:00 2001 From: Kirill Logachev Date: Wed, 24 Jun 2026 14:46:31 -0700 Subject: [PATCH 58/82] chore(bigquery-jdbc): fix flaky testSetTimeout test (#13549) --- .../google/cloud/bigquery/jdbc/it/ITBase.java | 5 +++ .../jdbc/it/ITNightlyBigQueryTest.java | 24 ++------------ .../bigquery/jdbc/it/ITStatementTest.java | 32 ++++--------------- 3 files changed, 14 insertions(+), 47 deletions(-) diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBase.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBase.java index 87446355d4ca..0f4cda735e5f 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBase.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBase.java @@ -33,6 +33,11 @@ public class ITBase extends BigQueryJdbcBaseTest { + // This query takes 300 seconds to complete + public static final String query300seconds = + "DECLARE DELAY_TIME DATETIME; SET DELAY_TIME = DATETIME_ADD(CURRENT_DATETIME, INTERVAL 300" + + " SECOND); WHILE CURRENT_DATETIME < DELAY_TIME DO END WHILE;"; + private static String sharedDataset; private static String sharedDataset2; diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITNightlyBigQueryTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITNightlyBigQueryTest.java index f98d6a8d46ca..94e538b3ae4b 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITNightlyBigQueryTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITNightlyBigQueryTest.java @@ -56,7 +56,7 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -public class ITNightlyBigQueryTest { +public class ITNightlyBigQueryTest extends ITBase { static final String PROJECT_ID = ServiceOptions.getDefaultProjectId(); static Connection bigQueryConnection; static Statement bigQueryStatement; @@ -215,18 +215,13 @@ public void testQueryInterruptGracefullyStopsExplicitJob() DriverManager.getConnection(connection_uri + ";JobCreationMode=1", new Properties()); Statement bigQueryStatement = bigQueryConnection.createStatement(); - // This query takes 300 seconds to complete - String query300Seconds = - "DECLARE DELAY_TIME DATETIME; SET DELAY_TIME = DATETIME_ADD(CURRENT_DATETIME, INTERVAL 300" - + " SECOND); WHILE CURRENT_DATETIME < DELAY_TIME DO END WHILE;"; - // Query will be started in the background thread & we will call cancel from current thread. Thread t = new Thread( () -> { SQLException e = assertThrows( - SQLException.class, () -> bigQueryStatement.execute(query300Seconds)); + SQLException.class, () -> bigQueryStatement.execute(ITBase.query300seconds)); assertTrue(e.getMessage().contains("User requested cancellation")); threadException.set(false); }); @@ -254,18 +249,13 @@ public void testQueryInterruptGracefullyStopsOptionalJob() DriverManager.getConnection(connection_uri + ";JobCreationMode=2", new Properties()); Statement bigQueryStatement = bigQueryConnection.createStatement(); - // This query takes 300 seconds to complete - String query300Seconds = - "DECLARE DELAY_TIME DATETIME; SET DELAY_TIME = DATETIME_ADD(CURRENT_DATETIME, INTERVAL 300" - + " SECOND); WHILE CURRENT_DATETIME < DELAY_TIME DO END WHILE;"; - // Query will be started in the background thread & we will call cancel from current thread. Thread t = new Thread( () -> { SQLException e = assertThrows( - SQLException.class, () -> bigQueryStatement.execute(query300Seconds)); + SQLException.class, () -> bigQueryStatement.execute(ITBase.query300seconds)); assertTrue(e.getMessage().contains("Query was cancelled.")); threadException.set(false); }); @@ -1684,12 +1674,4 @@ private String getSessionId() throws InterruptedException { Job stubJob = bigQuery.getJob(job.getJobId()); return stubJob.getStatistics().getSessionInfo().getSessionId(); } - - private int resultSetRowCount(ResultSet resultSet) throws SQLException { - int rowCount = 0; - while (resultSet.next()) { - rowCount++; - } - return rowCount; - } } diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITStatementTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITStatementTest.java index 35f3284bab1b..addbbb3f0b27 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITStatementTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITStatementTest.java @@ -16,6 +16,7 @@ package com.google.cloud.bigquery.jdbc.it; +import static com.google.common.truth.Truth.assertThat; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotEquals; @@ -48,7 +49,7 @@ import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; -public class ITStatementTest { +public class ITStatementTest extends ITBase { private static final String DEFAULT_CATALOG = ServiceOptions.getDefaultProjectId(); private static String DATASET; private static Random random = new Random(); @@ -122,7 +123,7 @@ public void testExecuteQuery() throws SQLException { // setMaxRows Test statement.setMaxRows(5); ResultSet maxRowsResultSet = statement.executeQuery(selectQuery); - assertEquals(5, getSizeOfResultSet(maxRowsResultSet)); + assertEquals(5, resultSetRowCount(maxRowsResultSet)); try { statement.setMaxRows(0); @@ -244,14 +245,6 @@ public void testScript() throws SQLException { connection.close(); } - private int resultSetRowCount(ResultSet resultSet) throws SQLException { - int rowCount = 0; - while (resultSet.next()) { - rowCount++; - } - return rowCount; - } - @Test public void testStringColumnLength() throws SQLException { String TABLE_NAME = "StringColumnLengthTable"; @@ -323,18 +316,13 @@ public void testSetTimeout() throws SQLException { Connection connection = DriverManager.getConnection(ITBase.connectionUrl); Statement statement = connection.createStatement(); - String selectQuery = - "SELECT views FROM bigquery-public-data.wikipedia.pageviews_2020 WHERE datehour >=" - + " '2020-01-01' LIMIT 9000000"; - // statement.execute(selectQuery); assertEquals(0, statement.getQueryTimeout()); statement.setQueryTimeout(1); assertEquals(1, statement.getQueryTimeout()); - SQLException e = assertThrows(SQLException.class, () -> statement.executeQuery(selectQuery)); - assertEquals( - "BigQueryException during runQuery\nJob execution was cancelled: Job timed out", - e.getMessage()); + SQLException e = + assertThrows(SQLException.class, () -> statement.executeQuery(ITBase.query300seconds)); + assertThat(e.getMessage()).contains("Job execution was cancelled: Job timed out"); statement.close(); connection.close(); } @@ -388,14 +376,6 @@ public void testRangeSelectDataset() throws SQLException { connection.close(); } - int getSizeOfResultSet(ResultSet resultSet) throws SQLException { - int count = 0; - while (resultSet.next()) { - count++; - } - return count; - } - @Test public void testTemporaryDatasetLocation() throws SQLException, InterruptedException { String projectId = DEFAULT_CATALOG; From 0dd0ca668f19a6cd9a96cdd3a8cbc7634ce4956a Mon Sep 17 00:00:00 2001 From: Kirill Logachev Date: Wed, 24 Jun 2026 15:54:44 -0700 Subject: [PATCH 59/82] chore(bigquery-jdbc): dockerized proxy environment to run integration tests (#13546) --- java-bigquery-jdbc/Dockerfile | 15 ++++- java-bigquery-jdbc/Makefile | 21 ++++++- java-bigquery-jdbc/pom.xml | 2 + .../tools/environments/proxy/start-proxy.sh | 58 +++++++++++++++++++ 4 files changed, 91 insertions(+), 5 deletions(-) create mode 100644 java-bigquery-jdbc/tools/environments/proxy/start-proxy.sh diff --git a/java-bigquery-jdbc/Dockerfile b/java-bigquery-jdbc/Dockerfile index 374a1c6a82fb..627acbf4ea92 100644 --- a/java-bigquery-jdbc/Dockerfile +++ b/java-bigquery-jdbc/Dockerfile @@ -1,4 +1,4 @@ -FROM gcr.io/cloud-devrel-public-resources/java11 +FROM gcr.io/cloud-devrel-public-resources/java11 AS base ARG BRANCH=main ENV JDBC_DOCKER_ENV=true @@ -19,6 +19,17 @@ RUN bash -c " \ # This will ensure all deps are present WORKDIR /src -RUN mvn install +RUN mvn install ENTRYPOINT [] + +# Proxy stage: configured squid proxy and iptables to force all traffic through it +FROM base AS proxy +RUN apt-get update && apt-get install -y squid iptables iproute2 curl && rm -rf /var/lib/apt/lists/* +COPY tools/environments/proxy/start-proxy.sh /usr/local/bin/start-proxy.sh +RUN chmod +x /usr/local/bin/start-proxy.sh +ENTRYPOINT ["/usr/local/bin/start-proxy.sh"] + +# Regular stage: same as base, default stage +FROM base AS regular + diff --git a/java-bigquery-jdbc/Makefile b/java-bigquery-jdbc/Makefile index ddbef13ba672..9503c0ef7507 100644 --- a/java-bigquery-jdbc/Makefile +++ b/java-bigquery-jdbc/Makefile @@ -1,9 +1,11 @@ SHELL := /bin/bash # Default 'sh' doesn't support 'source' BUILD_BRANCH=main CONTAINER_NAME=jdbc +PROXY_CONTAINER_NAME=$(CONTAINER_NAME)-proxy PACKAGE_DESTINATION=$(PWD)/drivers SRC="$(PWD)" skipSurefire ?= true +skipShade ?= true JDBC_DRIVER_VERSION = $(shell mvn help:evaluate -Dexpression=project.version -q -DforceStdout) JDBC_JAR = $(PACKAGE_DESTINATION)/google-cloud-bigquery-jdbc-$(JDBC_DRIVER_VERSION)-all.jar @@ -33,13 +35,14 @@ unittest: | -Dtest=$(test) \ test -# Important: By default, this command will skip unittests. +# Important: By default, this command will skip unittests & uberjar build. # To include unit tests, run: make integration-test skipSurefire=false integration-test: mvn -B -ntp \ -Penable-integration-tests \ -DtrimStackTrace=false \ -DskipSurefire=$(skipSurefire) \ + -DskipShade=$(skipShade) \ -Dclirr.skip=true \ -Denforcer.skip=true \ -Dit.failIfNoSpecifiedTests=true \ @@ -76,6 +79,7 @@ run-it-standalone: # Commands for dockerized environments .docker-run: | docker run -it \ + --cap-add=NET_ADMIN \ -v $(GOOGLE_APPLICATION_CREDENTIALS):/auth/application_creds.json \ -v "$(GOOGLE_APPLICATION_CREDENTIALS).p12":/auth/application_creds.p12 \ -e "GOOGLE_APPLICATION_CREDENTIALS=/auth/application_creds.json" \ @@ -83,14 +87,22 @@ run-it-standalone: -e "SA_EMAIL=test_email" \ -e "SA_SECRET=/auth/application_creds.json" \ -e "SA_SECRET_P12=/auth/application_creds.p12" \ + -e "BIGQUERY_BASE_URL=$(BIGQUERY_BASE_URL)" \ + -e "BIGQUERY_URL_FLAGS=$(BIGQUERY_URL_FLAGS)" \ $(CONTAINER_NAME) $(args) docker-build: - docker build -t $(CONTAINER_NAME) -f Dockerfile --build-arg BRANCH=${BUILD_BRANCH} $(SRC) + docker build --target regular -t $(CONTAINER_NAME) -f Dockerfile --build-arg BRANCH=${BUILD_BRANCH} $(SRC) + +docker-proxy-build: + docker build --target proxy -t $(PROXY_CONTAINER_NAME) -f Dockerfile --build-arg BRANCH=${BUILD_BRANCH} $(SRC) docker-session: $(MAKE) .docker-run args="bash" +docker-proxy-session: + $(MAKE) .docker-run CONTAINER_NAME=$(PROXY_CONTAINER_NAME) args="bash" + docker-package-all-dependencies: docker-build mkdir -p $(PACKAGE_DESTINATION) docker run \ @@ -134,6 +146,9 @@ docker-unittest: | docker-integration-test: .check-env $(MAKE) .docker-run args="make integration-test test=$(test) skipSurefire=$(skipSurefire)" +docker-proxy-integration-test: .check-env docker-proxy-build + $(MAKE) docker-integration-test CONTAINER_NAME=$(PROXY_CONTAINER_NAME) BIGQUERY_URL_FLAGS="ProxyHost=127.0.0.1;ProxyPort=3128;" + docker-coverage: $(MAKE) .docker-run args="make unit-test-coverage" - $(MAKE) .docker-run args="make full-coverage" \ No newline at end of file + $(MAKE) .docker-run args="make full-coverage" diff --git a/java-bigquery-jdbc/pom.xml b/java-bigquery-jdbc/pom.xml index ed141e41ef35..f3bd286dc3e4 100644 --- a/java-bigquery-jdbc/pom.xml +++ b/java-bigquery-jdbc/pom.xml @@ -31,6 +31,7 @@ UTF-8 github google-cloud-bigquery-jdbc + false @@ -96,6 +97,7 @@ shade + ${skipShade} true true true diff --git a/java-bigquery-jdbc/tools/environments/proxy/start-proxy.sh b/java-bigquery-jdbc/tools/environments/proxy/start-proxy.sh new file mode 100644 index 000000000000..4384485b44d5 --- /dev/null +++ b/java-bigquery-jdbc/tools/environments/proxy/start-proxy.sh @@ -0,0 +1,58 @@ +#!/bin/bash +# start-proxy.sh + +set -e + +echo "Starting Squid proxy..." +# Run squid in background. +# On Debian, /usr/sbin/squid is the binary. +# -s sends errors to syslog. -Y during rebuild. -C do not catch fatal signals. +/usr/sbin/squid -sYC + +# Wait for squid to be ready and listen on 3128 +echo "Waiting for Squid to listen on port 3128..." +timeout=30 +while ! curl -s -I -x http://127.0.0.1:3128 https://www.google.com >/dev/null; do + sleep 1 + timeout=$((timeout - 1)) + if [ $timeout -le 0 ]; then + echo "Squid failed to start or cannot access the internet." + exit 1 + fi +done +echo "Squid is ready and working." + +# Configure iptables to restrict network access +echo "Configuring iptables rules..." + +# 1. Allow loopback traffic +iptables -A OUTPUT -o lo -j ACCEPT + +# 2. Allow squid user (proxy) to access the network +iptables -A OUTPUT -m owner --uid-owner proxy -j ACCEPT + +# 3. Allow DNS (port 53) for everyone +iptables -A OUTPUT -p udp --dport 53 -j ACCEPT +iptables -A OUTPUT -p tcp --dport 53 -j ACCEPT + +# 4. Allow outgoing traffic to port 3128 (proxies) for testing external proxies +iptables -A OUTPUT -p tcp --dport 3128 -j ACCEPT + +# 4.5 Allow raw access to Maven Central (repo.maven.apache.org) for dynamic dependency downloads +echo "Resolving repo.maven.apache.org and allowing raw access..." +for ip in $(getent ahosts repo.maven.apache.org | awk '{print $1}' | sort -u); do + if [[ $ip =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then + echo "Allowing outbound to $ip" + iptables -A OUTPUT -d "$ip" -p tcp --dport 443 -j ACCEPT + iptables -A OUTPUT -d "$ip" -p tcp --dport 80 -j ACCEPT + fi +done + +# 5. Reject all other outgoing TCP/UDP traffic +iptables -A OUTPUT -p tcp -j REJECT --reject-with tcp-reset +iptables -A OUTPUT -p udp -j REJECT + +echo "Raw network access is now disabled. All traffic must go through the proxy." + +# Execute the main command +exec "$@" From 576f66e0d476266ab382e40ffd1530434f7f7556 Mon Sep 17 00:00:00 2001 From: werman Date: Wed, 24 Jun 2026 16:41:41 -0700 Subject: [PATCH 60/82] Revert "feat(auth): Add support for Regional Access Boundaries" (#13554) Reverts googleapis/google-cloud-java#13499 --- .../auth/oauth2/ComputeEngineCredentials.java | 29 +- ...ernalAccountAuthorizedUserCredentials.java | 30 +- .../oauth2/ExternalAccountCredentials.java | 49 +-- .../google/auth/oauth2/GoogleCredentials.java | 210 +--------- .../auth/oauth2/ImpersonatedCredentials.java | 15 +- .../google/auth/oauth2/OAuth2Credentials.java | 30 +- .../com/google/auth/oauth2/OAuth2Utils.java | 17 - .../auth/oauth2/RegionalAccessBoundary.java | 255 ------------ .../oauth2/RegionalAccessBoundaryManager.java | 298 ------------- .../RegionalAccessBoundaryProvider.java | 50 --- .../oauth2/ServiceAccountCredentials.java | 39 +- .../javatests/com/google/auth/TestUtils.java | 9 +- .../auth/oauth2/AwsCredentialsTest.java | 90 ---- .../oauth2/ComputeEngineCredentialsTest.java | 149 +------ ...lAccountAuthorizedUserCredentialsTest.java | 113 +---- .../ExternalAccountCredentialsTest.java | 302 +------------- .../auth/oauth2/GoogleCredentialsTest.java | 390 ------------------ .../auth/oauth2/IdTokenCredentialsTest.java | 4 - .../oauth2/IdentityPoolCredentialsTest.java | 108 +---- .../oauth2/ImpersonatedCredentialsTest.java | 64 --- .../com/google/auth/oauth2/LoggingTest.java | 13 +- ...ckExternalAccountCredentialsTransport.java | 31 +- .../MockIAMCredentialsServiceTransport.java | 25 -- .../oauth2/MockMetadataServerTransport.java | 43 +- .../google/auth/oauth2/MockStsTransport.java | 19 - .../auth/oauth2/MockTokenServerTransport.java | 49 --- .../oauth2/PluggableAuthCredentialsTest.java | 48 --- .../oauth2/RegionalAccessBoundaryTest.java | 337 --------------- .../oauth2/ServiceAccountCredentialsTest.java | 144 +------ .../com/google/auth/oauth2/TestUtils.java | 5 - .../samples/snippets/pom.xml | 1 + 31 files changed, 50 insertions(+), 2916 deletions(-) delete mode 100644 google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundary.java delete mode 100644 google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundaryManager.java delete mode 100644 google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundaryProvider.java delete mode 100644 google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/RegionalAccessBoundaryTest.java diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ComputeEngineCredentials.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ComputeEngineCredentials.java index c5b8e0d3adbf..ad5fb8e7dcf3 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ComputeEngineCredentials.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ComputeEngineCredentials.java @@ -41,7 +41,6 @@ import com.google.api.client.http.HttpStatusCodes; import com.google.api.client.json.JsonObjectParser; import com.google.api.client.util.GenericData; -import com.google.api.core.InternalApi; import com.google.auth.CredentialTypeForMetrics; import com.google.auth.Credentials; import com.google.auth.Retryable; @@ -72,7 +71,6 @@ import java.util.Objects; import java.util.logging.Level; import java.util.logging.Logger; -import java.util.regex.Pattern; /** * OAuth2 credentials representing the built-in service account for a Google Compute Engine VM. @@ -82,7 +80,7 @@ *

              These credentials use the IAM API to sign data. See {@link #sign(byte[])} for more details. */ public class ComputeEngineCredentials extends GoogleCredentials - implements ServiceAccountSigner, IdTokenProvider, RegionalAccessBoundaryProvider { + implements ServiceAccountSigner, IdTokenProvider { static final String METADATA_RESPONSE_EMPTY_CONTENT_ERROR_MESSAGE = "Empty content from metadata token server request."; @@ -118,7 +116,6 @@ public class ComputeEngineCredentials extends GoogleCredentials private static final String PARSE_ERROR_PREFIX = "Error parsing token refresh response. "; private static final String PARSE_ERROR_ACCOUNT = "Error parsing service account response. "; - private static final Pattern EMAIL_PATTERN = Pattern.compile("^[^@]+@[^@]+\\.[^@]+$"); private static final long serialVersionUID = -4113476462526554235L; private final String transportFactoryClassName; @@ -457,6 +454,7 @@ public AccessToken refreshAccessToken() throws IOException { int expiresInSeconds = OAuth2Utils.validateInt32(responseData, "expires_in", PARSE_ERROR_PREFIX); long expiresAtMilliseconds = clock.currentTimeMillis() + expiresInSeconds * 1000; + return new AccessToken(accessToken, new Date(expiresAtMilliseconds)); } @@ -781,11 +779,6 @@ public static Builder newBuilder() { * * @throws RuntimeException if the default service account cannot be read */ - @Override - HttpTransportFactory getTransportFactory() { - return transportFactory; - } - @Override // todo(#314) getAccount should not throw a RuntimeException public String getAccount() { @@ -799,24 +792,6 @@ public String getAccount() { return principal; } - @InternalApi - @Override - public String getRegionalAccessBoundaryUrl() throws IOException { - String account = getAccount(); - // The MDS may return a non-email value for the account and we should skip RAB refresh in that - // scenario. - if (account == null || !EMAIL_PATTERN.matcher(account).matches()) { - LoggingUtils.log( - LOGGER_PROVIDER, - Level.INFO, - Collections.emptyMap(), - "Unable to retrieve this instance's email and will skip the regional request routing. Proceeding with request"); - return null; - } - return String.format( - OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_SERVICE_ACCOUNT, account); - } - /** * Signs the provided bytes using the private key associated with the service account. * diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountAuthorizedUserCredentials.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountAuthorizedUserCredentials.java index 08f04b60f39d..b274fec76c65 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountAuthorizedUserCredentials.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountAuthorizedUserCredentials.java @@ -31,9 +31,7 @@ package com.google.auth.oauth2; -import static com.google.auth.oauth2.OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKFORCE_POOL; import static com.google.auth.oauth2.OAuth2Utils.JSON_FACTORY; -import static com.google.auth.oauth2.OAuth2Utils.WORKFORCE_AUDIENCE_PATTERN; import com.google.api.client.http.GenericUrl; import com.google.api.client.http.HttpHeaders; @@ -45,7 +43,6 @@ import com.google.api.client.json.JsonObjectParser; import com.google.api.client.util.GenericData; import com.google.api.client.util.Preconditions; -import com.google.api.core.InternalApi; import com.google.auth.http.HttpTransportFactory; import com.google.common.base.MoreObjects; import com.google.common.io.BaseEncoding; @@ -57,7 +54,6 @@ import java.util.Date; import java.util.Map; import java.util.Objects; -import java.util.regex.Matcher; import javax.annotation.Nullable; /** @@ -78,8 +74,7 @@ * } * */ -public class ExternalAccountAuthorizedUserCredentials extends GoogleCredentials - implements RegionalAccessBoundaryProvider { +public class ExternalAccountAuthorizedUserCredentials extends GoogleCredentials { private static final LoggerProvider LOGGER_PROVIDER = LoggerProvider.forClazz(ExternalAccountAuthorizedUserCredentials.class); @@ -234,29 +229,6 @@ public AccessToken refreshAccessToken() throws IOException { .build(); } - @InternalApi - @Override - public String getRegionalAccessBoundaryUrl() throws IOException { - String audience = getAudience(); - if (audience == null) { - throw new IllegalStateException( - "The audience is null, which is not in the correct format for a workforce pool."); - } - Matcher matcher = WORKFORCE_AUDIENCE_PATTERN.matcher(audience); - if (!matcher.matches()) { - throw new IllegalStateException( - "The provided audience is not in the correct format for a workforce pool. " - + "Refer: https://docs.cloud.google.com/iam/docs/principal-identifiers"); - } - String poolId = matcher.group("pool"); - return String.format(IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKFORCE_POOL, poolId); - } - - @Override - HttpTransportFactory getTransportFactory() { - return transportFactory; - } - @Nullable public String getAudience() { return audience; diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountCredentials.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountCredentials.java index 52ae3925c600..47cb398d26bf 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountCredentials.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ExternalAccountCredentials.java @@ -31,14 +31,11 @@ package com.google.auth.oauth2; -import static com.google.auth.oauth2.OAuth2Utils.WORKFORCE_AUDIENCE_PATTERN; -import static com.google.auth.oauth2.OAuth2Utils.WORKLOAD_AUDIENCE_PATTERN; import static com.google.common.base.Preconditions.checkNotNull; import com.google.api.client.http.HttpHeaders; import com.google.api.client.json.GenericJson; import com.google.api.client.util.Data; -import com.google.api.core.InternalApi; import com.google.auth.RequestMetadataCallback; import com.google.auth.http.HttpTransportFactory; import com.google.common.base.MoreObjects; @@ -57,7 +54,6 @@ import java.util.Locale; import java.util.Map; import java.util.concurrent.Executor; -import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.annotation.Nullable; @@ -67,8 +63,7 @@ *

              Handles initializing external credentials, calls to the Security Token Service, and service * account impersonation. */ -public abstract class ExternalAccountCredentials extends GoogleCredentials - implements RegionalAccessBoundaryProvider { +public abstract class ExternalAccountCredentials extends GoogleCredentials { private static final long serialVersionUID = 8049126194174465023L; @@ -582,11 +577,6 @@ protected AccessToken exchangeExternalCredentialForAccessToken( */ public abstract String retrieveSubjectToken() throws IOException; - @Override - HttpTransportFactory getTransportFactory() { - return transportFactory; - } - public String getAudience() { return audience; } @@ -630,43 +620,6 @@ public String getServiceAccountEmail() { return ImpersonatedCredentials.extractTargetPrincipal(serviceAccountImpersonationUrl); } - @InternalApi - @Override - public String getRegionalAccessBoundaryUrl() throws IOException { - if (getServiceAccountEmail() != null) { - return String.format( - OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_SERVICE_ACCOUNT, - getServiceAccountEmail()); - } - - String audience = getAudience(); - if (audience == null) { - throw new IllegalStateException( - "The audience is null, which is not in a valid format for either a workload identity pool or a workforce pool."); - } - - Matcher workforceMatcher = WORKFORCE_AUDIENCE_PATTERN.matcher(audience); - if (workforceMatcher.matches()) { - String poolId = workforceMatcher.group("pool"); - return String.format( - OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKFORCE_POOL, poolId); - } - - Matcher workloadMatcher = WORKLOAD_AUDIENCE_PATTERN.matcher(audience); - if (workloadMatcher.matches()) { - String projectNumber = workloadMatcher.group("project"); - String poolId = workloadMatcher.group("pool"); - return String.format( - OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKLOAD_POOL, - projectNumber, - poolId); - } - - throw new IllegalStateException( - "The provided audience is not in a valid format for either a workload identity pool or a workforce pool." - + " Refer: https://docs.cloud.google.com/iam/docs/principal-identifiers"); - } - @Nullable public String getClientId() { return clientId; diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/GoogleCredentials.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/GoogleCredentials.java index e423a68ac18b..7395274c4786 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/GoogleCredentials.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/GoogleCredentials.java @@ -36,8 +36,6 @@ import com.google.api.client.util.Preconditions; import com.google.api.core.ObsoleteApi; import com.google.auth.Credentials; -import com.google.auth.RequestMetadataCallback; -import com.google.auth.http.AuthHttpConstants; import com.google.auth.http.HttpTransportFactory; import com.google.common.annotations.VisibleForTesting; import com.google.common.base.MoreObjects; @@ -48,8 +46,6 @@ import com.google.errorprone.annotations.CanIgnoreReturnValue; import java.io.IOException; import java.io.InputStream; -import java.io.ObjectInputStream; -import java.net.URI; import java.nio.charset.StandardCharsets; import java.time.Duration; import java.util.Collection; @@ -110,9 +106,6 @@ String getFileType() { private final String universeDomain; private final boolean isExplicitUniverseDomain; - transient RegionalAccessBoundaryManager regionalAccessBoundaryManager = - new RegionalAccessBoundaryManager(clock); - protected final String quotaProjectId; private static final DefaultCredentialsProvider defaultCredentialsProvider = @@ -354,139 +347,6 @@ public GoogleCredentials createWithQuotaProject(String quotaProject) { return this.toBuilder().setQuotaProjectId(quotaProject).build(); } - /** - * Returns the currently cached regional access boundary, or null if none is available or if it - * has expired. - * - * @return The cached regional access boundary, or null. - */ - final RegionalAccessBoundary getRegionalAccessBoundary() { - return regionalAccessBoundaryManager.getCachedRAB(); - } - - /** - * Refreshes the Regional Access Boundary if it is expired or not yet fetched. - * - * @param uri The URI of the outbound request. - * @param token The access token to use for the refresh. - * @throws IOException If getting the universe domain fails. - */ - void refreshRegionalAccessBoundaryIfExpired(@Nullable URI uri, @Nullable AccessToken token) - throws IOException { - if (!(this instanceof RegionalAccessBoundaryProvider) || !isDefaultUniverseDomain()) { - return; - } - - // Skip refresh for regional endpoints. - if (uri != null && uri.getHost() != null) { - String host = uri.getHost(); - if (host.endsWith(".rep.googleapis.com") || host.endsWith(".rep.sandbox.googleapis.com")) { - return; - } - } - - // We need a valid access token for the refresh. - if (token == null - || (token.getExpirationTimeMillis() != null - && token.getExpirationTimeMillis() < clock.currentTimeMillis())) { - return; - } - - HttpTransportFactory transportFactory = getTransportFactory(); - if (transportFactory == null) { - return; - } - - regionalAccessBoundaryManager.triggerAsyncRefresh( - transportFactory, (RegionalAccessBoundaryProvider) this, token); - } - - /** - * Extracts the self-signed JWT from the request metadata and triggers a Regional Access Boundary - * refresh if expired. - * - * @param uri The URI of the outbound request. - * @param requestMetadata The request metadata containing the authorization header. - */ - void refreshRegionalAccessBoundaryWithSelfSignedJwtIfExpired( - @Nullable URI uri, Map> requestMetadata) { - List authHeaders = requestMetadata.get(AuthHttpConstants.AUTHORIZATION); - if (authHeaders != null && !authHeaders.isEmpty()) { - String authHeader = authHeaders.get(0); - if (authHeader.startsWith(AuthHttpConstants.BEARER + " ")) { - String tokenValue = authHeader.substring((AuthHttpConstants.BEARER + " ").length()); - // Use a null expiration as JWTs are short-lived anyway. - AccessToken wrappedToken = new AccessToken(tokenValue, null); - try { - refreshRegionalAccessBoundaryIfExpired(uri, wrappedToken); - } catch (IOException e) { - // Ignore failure in async refresh trigger. - } - } - } - } - - /** - * Synchronously provides the request metadata. - * - *

              This method is blocking and will wait for a token refresh if necessary. It also ensures any - * available Regional Access Boundary information is included in the metadata. - * - * @param uri The URI of the request. - * @return The request metadata containing the authorization header and potentially regional - * access boundary. - * @throws IOException If an error occurs while fetching the token. - */ - @Override - public Map> getRequestMetadata(URI uri) throws IOException { - Map> metadata = super.getRequestMetadata(uri); - metadata = addRegionalAccessBoundaryToRequestMetadata(uri, metadata); - try { - // Sets off an async refresh for request-metadata. - refreshRegionalAccessBoundaryIfExpired(uri, getAccessToken()); - } catch (IOException e) { - // Ignore failure in async refresh trigger. - } - return metadata; - } - - /** - * Asynchronously provides the request metadata. - * - *

              This method is non-blocking. It ensures any available Regional Access Boundary information - * is included in the metadata. - * - * @param uri The URI of the request. - * @param executor The executor to use for any required background tasks. - * @param callback The callback to receive the metadata or any error. - */ - @Override - public void getRequestMetadata( - final URI uri, - final java.util.concurrent.Executor executor, - final RequestMetadataCallback callback) { - super.getRequestMetadata( - uri, - executor, - new RequestMetadataCallback() { - @Override - public void onSuccess(Map> metadata) { - metadata = addRegionalAccessBoundaryToRequestMetadata(uri, metadata); - try { - refreshRegionalAccessBoundaryIfExpired(uri, getAccessToken()); - } catch (IOException e) { - // Ignore failure in async refresh trigger. - } - callback.onSuccess(metadata); - } - - @Override - public void onFailure(Throwable exception) { - callback.onFailure(exception); - } - }); - } - /** * Gets the universe domain for the credential. * @@ -530,59 +390,22 @@ boolean isDefaultUniverseDomain() throws IOException { static Map> addQuotaProjectIdToRequestMetadata( String quotaProjectId, Map> requestMetadata) { Preconditions.checkNotNull(requestMetadata); + Map> newRequestMetadata = new HashMap<>(requestMetadata); if (quotaProjectId != null && !requestMetadata.containsKey(QUOTA_PROJECT_ID_HEADER_KEY)) { - return ImmutableMap.>builder() - .putAll(requestMetadata) - .put(QUOTA_PROJECT_ID_HEADER_KEY, Collections.singletonList(quotaProjectId)) - .build(); - } - return requestMetadata; - } - - /** - * Adds Regional Access Boundary header to requestMetadata if available. Overwrites if present. If - * the current RAB is null, it removes any stale header that might have survived serialization. - * - * @param uri The URI of the request. - * @param requestMetadata The request metadata. - * @return a new map with Regional Access Boundary header added, updated, or removed - */ - Map> addRegionalAccessBoundaryToRequestMetadata( - URI uri, Map> requestMetadata) { - Preconditions.checkNotNull(requestMetadata); - - if (uri != null && uri.getHost() != null) { - String host = uri.getHost(); - if (host.endsWith(".rep.googleapis.com") || host.endsWith(".rep.sandbox.googleapis.com")) { - return requestMetadata; - } + newRequestMetadata.put( + QUOTA_PROJECT_ID_HEADER_KEY, Collections.singletonList(quotaProjectId)); } - - RegionalAccessBoundary rab = getRegionalAccessBoundary(); - if (rab != null) { - // Overwrite the header to ensure the most recent async update is used, - // preventing staleness if the token itself hasn't expired yet. - Map> newMetadata = new HashMap<>(requestMetadata); - newMetadata.put( - RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY, - Collections.singletonList(rab.getEncodedLocations())); - return ImmutableMap.copyOf(newMetadata); - } else if (requestMetadata.containsKey(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)) { - // If RAB is null but the header exists (e.g., from a serialized cache), we must strip it - // to prevent sending stale data to the server. - Map> newMetadata = new HashMap<>(requestMetadata); - newMetadata.remove(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY); - return ImmutableMap.copyOf(newMetadata); - } - return requestMetadata; + return Collections.unmodifiableMap(newRequestMetadata); } @Override protected Map> getAdditionalHeaders() { - Map> headers = new HashMap<>(super.getAdditionalHeaders()); - + Map> headers = super.getAdditionalHeaders(); String quotaProjectId = this.getQuotaProjectId(); - return addQuotaProjectIdToRequestMetadata(quotaProjectId, headers); + if (quotaProjectId != null) { + return addQuotaProjectIdToRequestMetadata(quotaProjectId, headers); + } + return headers; } /** Default constructor. */ @@ -693,11 +516,6 @@ public int hashCode() { return Objects.hash(this.quotaProjectId, this.universeDomain, this.isExplicitUniverseDomain); } - private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException { - input.defaultReadObject(); - regionalAccessBoundaryManager = new RegionalAccessBoundaryManager(clock); - } - public static Builder newBuilder() { return new Builder(); } @@ -833,16 +651,6 @@ public Map getCredentialInfo() { return ImmutableMap.copyOf(infoMap); } - /** - * Returns the transport factory used by the credential. - * - * @return the transport factory, or null if not available. - */ - @Nullable - HttpTransportFactory getTransportFactory() { - return null; - } - public static class Builder extends OAuth2Credentials.Builder { @Nullable protected String quotaProjectId; @Nullable protected String universeDomain; diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ImpersonatedCredentials.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ImpersonatedCredentials.java index ede86c646d95..34716d92b552 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ImpersonatedCredentials.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ImpersonatedCredentials.java @@ -44,7 +44,6 @@ import com.google.api.client.json.GenericJson; import com.google.api.client.json.JsonObjectParser; import com.google.api.client.util.GenericData; -import com.google.api.core.InternalApi; import com.google.api.core.ObsoleteApi; import com.google.auth.CredentialTypeForMetrics; import com.google.auth.ServiceAccountSigner; @@ -99,7 +98,7 @@ * */ public class ImpersonatedCredentials extends GoogleCredentials - implements ServiceAccountSigner, IdTokenProvider, RegionalAccessBoundaryProvider { + implements ServiceAccountSigner, IdTokenProvider { private static final long serialVersionUID = -2133257318957488431L; private static final int TWELVE_HOURS_IN_SECONDS = 43200; @@ -328,22 +327,10 @@ public GoogleCredentials getSourceCredentials() { return sourceCredentials; } - @InternalApi - @Override - public String getRegionalAccessBoundaryUrl() throws IOException { - return String.format( - OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_SERVICE_ACCOUNT, getAccount()); - } - int getLifetime() { return this.lifetime; } - @Override - HttpTransportFactory getTransportFactory() { - return transportFactory; - } - public void setTransportFactory(HttpTransportFactory httpTransportFactory) { this.transportFactory = httpTransportFactory; } diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/OAuth2Credentials.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/OAuth2Credentials.java index ef1225d19a73..e17714c3eee8 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/OAuth2Credentials.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/OAuth2Credentials.java @@ -62,6 +62,7 @@ import java.util.Map; import java.util.Objects; import java.util.ServiceLoader; +import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concurrent.Executor; import javax.annotation.Nullable; @@ -166,16 +167,6 @@ Duration getExpirationMargin() { return this.expirationMargin; } - /** - * Asynchronously provides the request metadata by ensuring there is a current access token and - * providing it as an authorization bearer token. - * - *

              This method is non-blocking. The results are provided through the given callback. - * - * @param uri The URI of the request. - * @param executor The executor to use for any required background tasks. - * @param callback The callback to receive the metadata or any error. - */ @Override public void getRequestMetadata( final URI uri, Executor executor, final RequestMetadataCallback callback) { @@ -187,14 +178,8 @@ public void getRequestMetadata( } /** - * Synchronously provides the request metadata by ensuring there is a current access token and - * providing it as an authorization bearer token. - * - *

              This method is blocking and will wait for a token refresh if necessary. - * - * @param uri The URI of the request. - * @return The request metadata containing the authorization header. - * @throws IOException If an error occurs while fetching the token. + * Provide the request metadata by ensuring there is a current access token and providing it as an + * authorization bearer token. */ @Override public Map> getRequestMetadata(URI uri) throws IOException { @@ -282,8 +267,11 @@ private AsyncRefreshResult getOrCreateRefreshTask() { final ListenableFutureTask task = ListenableFutureTask.create( - () -> { - return OAuthValue.create(refreshAccessToken(), getAdditionalHeaders()); + new Callable() { + @Override + public OAuthValue call() throws Exception { + return OAuthValue.create(refreshAccessToken(), getAdditionalHeaders()); + } }); refreshTask = new RefreshTask(task, new RefreshTaskListener(task)); @@ -388,7 +376,7 @@ public AccessToken refreshAccessToken() throws IOException { /** * Provide additional headers to return as request metadata. * - * @return additional headers. + * @return additional headers */ protected Map> getAdditionalHeaders() { return EMPTY_EXTRA_HEADERS; diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/OAuth2Utils.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/OAuth2Utils.java index 84cb62390fe7..643c3dc7dc65 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/OAuth2Utils.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/OAuth2Utils.java @@ -68,7 +68,6 @@ import java.util.List; import java.util.Map; import java.util.Set; -import java.util.regex.Pattern; /** * Internal utilities for the com.google.auth.oauth2 namespace. @@ -124,22 +123,6 @@ enum Pkcs8Algorithm { static final double RETRY_MULTIPLIER = 2; static final int DEFAULT_NUMBER_OF_RETRIES = 3; - static final Pattern WORKFORCE_AUDIENCE_PATTERN = - Pattern.compile( - "^//iam.googleapis.com/locations/(?[^/]+)/workforcePools/(?[^/]+)/providers/(?[^/]+)$"); - static final Pattern WORKLOAD_AUDIENCE_PATTERN = - Pattern.compile( - "^//iam.googleapis.com/projects/(?[^/]+)/locations/(?[^/]+)/workloadIdentityPools/(?[^/]+)/providers/(?[^/]+)$"); - - static final String IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_SERVICE_ACCOUNT = - "https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/%s/allowedLocations"; - - static final String IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKFORCE_POOL = - "https://iamcredentials.googleapis.com/v1/locations/global/workforcePools/%s/allowedLocations"; - - static final String IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKLOAD_POOL = - "https://iamcredentials.googleapis.com/v1/projects/%s/locations/global/workloadIdentityPools/%s/allowedLocations"; - // Includes expected server errors from Google token endpoint // Other 5xx codes are either not used or retries are unlikely to succeed public static final Set TOKEN_ENDPOINT_RETRYABLE_STATUS_CODES = diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundary.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundary.java deleted file mode 100644 index 444b35ef0328..000000000000 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundary.java +++ /dev/null @@ -1,255 +0,0 @@ -/* - * Copyright 2026, Google LLC - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Google LLC nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -package com.google.auth.oauth2; - -import com.google.api.client.http.GenericUrl; -import com.google.api.client.http.HttpBackOffIOExceptionHandler; -import com.google.api.client.http.HttpBackOffUnsuccessfulResponseHandler; -import com.google.api.client.http.HttpIOExceptionHandler; -import com.google.api.client.http.HttpRequest; -import com.google.api.client.http.HttpRequestFactory; -import com.google.api.client.http.HttpResponse; -import com.google.api.client.http.HttpUnsuccessfulResponseHandler; -import com.google.api.client.json.GenericJson; -import com.google.api.client.json.JsonObjectParser; -import com.google.api.client.util.Clock; -import com.google.api.client.util.ExponentialBackOff; -import com.google.api.client.util.Key; -import com.google.auth.http.HttpTransportFactory; -import com.google.common.base.MoreObjects; -import com.google.common.base.Preconditions; -import java.io.IOException; -import java.io.ObjectInputStream; -import java.io.Serializable; -import java.util.Collections; -import java.util.List; - -/** - * Represents the regional access boundary configuration for a credential. This class holds the - * information retrieved from the IAM `allowedLocations` endpoint. This data is then used to - * populate the `x-allowed-locations` header in outgoing API requests, which in turn allows Google's - * infrastructure to enforce regional security restrictions. This class does not perform any - * client-side validation or enforcement. - */ -final class RegionalAccessBoundary implements Serializable { - - static final String X_ALLOWED_LOCATIONS_HEADER_KEY = "x-allowed-locations"; - private static final long serialVersionUID = -2428522338274020302L; - - static final long TTL_MILLIS = 6 * 60 * 60 * 1000L; // 6 hours - static final long REFRESH_THRESHOLD_MILLIS = 1 * 60 * 60 * 1000L; // 1 hour - - private final String encodedLocations; - private final List locations; - private final long refreshTime; - private transient Clock clock; - - /** - * Creates a new RegionalAccessBoundary instance. - * - * @param encodedLocations The encoded string representation of the allowed locations. - * @param locations A list of human-readable location strings. - * @param clock The clock used to set the creation time. - */ - RegionalAccessBoundary(String encodedLocations, List locations, Clock clock) { - this( - encodedLocations, - locations, - clock != null ? clock.currentTimeMillis() : Clock.SYSTEM.currentTimeMillis(), - clock); - } - - /** - * Internal constructor for testing and manual creation with refresh time. - * - * @param encodedLocations The encoded string representation of the allowed locations. - * @param locations A list of human-readable location strings. - * @param refreshTime The time at which the information was last refreshed. - * @param clock The clock to use for expiration checks. - */ - RegionalAccessBoundary( - String encodedLocations, List locations, long refreshTime, Clock clock) { - this.encodedLocations = encodedLocations; - this.locations = - locations == null - ? Collections.emptyList() - : Collections.unmodifiableList(new java.util.ArrayList<>(locations)); - this.refreshTime = refreshTime; - this.clock = clock != null ? clock : Clock.SYSTEM; - } - - /** Returns the encoded string representation of the allowed locations. */ - public String getEncodedLocations() { - return encodedLocations; - } - - /** Returns a list of human-readable location strings. */ - public List getLocations() { - return locations; - } - - /** - * Checks if the regional access boundary data is expired. - * - * @return True if the data has expired based on the TTL, false otherwise. - */ - public boolean isExpired() { - return clock.currentTimeMillis() > refreshTime + TTL_MILLIS; - } - - /** - * Checks if the regional access boundary data should be refreshed. This is a "soft-expiry" check - * that allows for background refreshes before the data actually expires. - * - * @return True if the data is within the refresh threshold, false otherwise. - */ - public boolean shouldRefresh() { - return clock.currentTimeMillis() > refreshTime + (TTL_MILLIS - REFRESH_THRESHOLD_MILLIS); - } - - /** Represents the JSON response from the regional access boundary endpoint. */ - public static class RegionalAccessBoundaryResponse extends GenericJson { - @Key("encodedLocations") - private String encodedLocations; - - @Key("locations") - private List locations; - - /** Returns the encoded string representation of the allowed locations from the API response. */ - public String getEncodedLocations() { - return encodedLocations; - } - - /** Returns a list of human-readable location strings from the API response. */ - public List getLocations() { - return locations; - } - - @Override - /** Returns a string representation of the RegionalAccessBoundaryResponse. */ - public String toString() { - return MoreObjects.toStringHelper(this) - .add("encodedLocations", encodedLocations) - .add("locations", locations) - .toString(); - } - } - - /** - * Refreshes the regional access boundary by making a network call to the lookup endpoint. - * - * @param transportFactory The HTTP transport factory to use for the network request. - * @param url The URL of the regional access boundary endpoint. - * @param accessToken The access token to authenticate the request. - * @param clock The clock to use for expiration checks. - * @param maxRetryElapsedTimeMillis The max duration to wait for retries. - * @return A new RegionalAccessBoundary object containing the refreshed information. - * @throws IllegalArgumentException If the provided access token is null or expired. - * @throws IOException If a network error occurs or the response is malformed. - */ - static RegionalAccessBoundary refresh( - HttpTransportFactory transportFactory, - String url, - AccessToken accessToken, - Clock clock, - int maxRetryElapsedTimeMillis) - throws IOException { - Preconditions.checkNotNull(accessToken, "The provided access token is null."); - if (accessToken.getExpirationTimeMillis() != null - && accessToken.getExpirationTimeMillis() < clock.currentTimeMillis()) { - throw new IllegalArgumentException("The provided access token is expired."); - } - - HttpRequestFactory requestFactory = transportFactory.create().createRequestFactory(); - HttpRequest request = requestFactory.buildGetRequest(new GenericUrl(url)); - // Disable automatic logging by google-http-java-client to prevent leakage of sensitive tokens. - request.setLoggingEnabled(false); - request.getHeaders().setAuthorization("Bearer " + accessToken.getTokenValue()); - - // Add retry logic - ExponentialBackOff backoff = - new ExponentialBackOff.Builder() - .setInitialIntervalMillis(OAuth2Utils.INITIAL_RETRY_INTERVAL_MILLIS) - .setRandomizationFactor(OAuth2Utils.RETRY_RANDOMIZATION_FACTOR) - .setMultiplier(OAuth2Utils.RETRY_MULTIPLIER) - .setMaxElapsedTimeMillis(maxRetryElapsedTimeMillis) - .build(); - - HttpUnsuccessfulResponseHandler unsuccessfulResponseHandler = - new HttpBackOffUnsuccessfulResponseHandler(backoff) - .setBackOffRequired( - response -> { - int statusCode = response.getStatusCode(); - return statusCode == 500 - || statusCode == 502 - || statusCode == 503 - || statusCode == 504; - }); - request.setUnsuccessfulResponseHandler(unsuccessfulResponseHandler); - - HttpIOExceptionHandler ioExceptionHandler = new HttpBackOffIOExceptionHandler(backoff); - request.setIOExceptionHandler(ioExceptionHandler); - - request.setParser(new JsonObjectParser(OAuth2Utils.JSON_FACTORY)); - - RegionalAccessBoundaryResponse json; - HttpResponse response = null; - try { - response = request.execute(); - json = response.parseAs(RegionalAccessBoundaryResponse.class); - } catch (IOException e) { - throw new IOException( - "RegionalAccessBoundary: Failure while getting regional access boundaries:", e); - } finally { - if (response != null) { - response.disconnect(); - } - } - String encodedLocations = json.getEncodedLocations(); - // The encodedLocations is the value attached to the x-allowed-locations header, and - // it should always have a value. - if (encodedLocations == null) { - throw new IOException( - "RegionalAccessBoundary: Malformed response from lookup endpoint - `encodedLocations` was null."); - } - return new RegionalAccessBoundary(encodedLocations, json.getLocations(), clock); - } - - /** - * Initializes the transient clock to Clock.SYSTEM upon deserialization to prevent - * NullPointerException when evaluating expiration on deserialized objects. - */ - private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException { - input.defaultReadObject(); - clock = Clock.SYSTEM; - } -} diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundaryManager.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundaryManager.java deleted file mode 100644 index b2237fae6d13..000000000000 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundaryManager.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Copyright 2026, Google LLC - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Google LLC nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -package com.google.auth.oauth2; - -import static com.google.auth.oauth2.LoggingUtils.log; - -import com.google.api.client.util.Clock; -import com.google.api.core.InternalApi; -import com.google.auth.http.HttpTransportFactory; -import com.google.common.annotations.VisibleForTesting; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.LinkedBlockingQueue; -import java.util.concurrent.ThreadPoolExecutor; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.atomic.AtomicBoolean; -import java.util.concurrent.atomic.AtomicInteger; -import java.util.concurrent.atomic.AtomicReference; -import java.util.logging.Level; -import javax.annotation.Nullable; - -/** - * Manages the lifecycle of Regional Access Boundaries (RAB) for a credential. - * - *

              This class handles caching, asynchronous refreshing, and cooldown logic to ensure that API - * requests are not blocked by lookup failures and that the lookup service is not overwhelmed. - */ -@InternalApi -final class RegionalAccessBoundaryManager { - - private static final LoggerProvider LOGGER_PROVIDER = - LoggerProvider.forClazz(RegionalAccessBoundaryManager.class); - - static final long INITIAL_COOLDOWN_MILLIS = 15 * 60 * 1000L; // 15 minutes - static final long MAX_COOLDOWN_MILLIS = 6 * 60 * 60 * 1000L; // 6 hours - - /** - * The default maximum elapsed time in milliseconds for retrying Regional Access Boundary lookup - * requests. - */ - static final int DEFAULT_MAX_RETRY_ELAPSED_TIME_MILLIS = 60000; - - /** - * cachedRAB uses AtomicReference to provide thread-safe, lock-free access to the cached data for - * high-concurrency request threads. - */ - private final AtomicReference cachedRAB = new AtomicReference<>(); - - /** - * isRefreshing acts as an atomic gate for request de-duplication. If true, it indicates a - * background refresh is already in progress. - */ - private final AtomicBoolean isRefreshing = new AtomicBoolean(false); - - private final AtomicReference cooldownState = - new AtomicReference<>(new CooldownState(0, INITIAL_COOLDOWN_MILLIS)); - - private final AtomicBoolean skipRAB = new AtomicBoolean(false); - - // Unbounded thread creation is discouraged in library code to avoid resource - // exhaustion. A shared, bounded executor service ensures a hard limit (5) - // on concurrent refresh tasks, while threadCount provides unique names - // for easier debugging. - private static final AtomicInteger threadCount = new AtomicInteger(0); - - // Bounded executor service ensures hard limits on concurrent refresh tasks and queued tasks - // to avoid resource exhaustion. - private static final int EXECUTOR_POOL_SIZE = 5; - private static final int EXECUTOR_QUEUE_CAPACITY = 100; - - private static final ExecutorService DEFAULT_SHARED_EXECUTOR; - - static { - ThreadPoolExecutor executor = - new ThreadPoolExecutor( - EXECUTOR_POOL_SIZE, // corePoolSize: threads to keep alive - EXECUTOR_POOL_SIZE, // maximumPoolSize: max threads allowed - 1, // keepAliveTime: time to wait before terminating idle threads - TimeUnit.HOURS, // unit for keepAliveTime - new LinkedBlockingQueue<>(EXECUTOR_QUEUE_CAPACITY), // work queue with bound - r -> { - Thread t = new Thread(r, "RAB-refresh-" + threadCount.getAndIncrement()); - t.setDaemon(true); - return t; - }); - // Allow core threads to time out so the executor can shrink to 0 when idle. - // Ensures threads are released when idle to avoid unnecessary resource usage. - executor.allowCoreThreadTimeOut(true); - DEFAULT_SHARED_EXECUTOR = executor; - } - - private final transient Clock clock; - private final int maxRetryElapsedTimeMillis; - private final ExecutorService executor; - - /** - * Creates a new RegionalAccessBoundaryManager with the default retry timeout of 60 seconds. - * - * @param clock The clock to use for cooldown and expiration checks. - */ - RegionalAccessBoundaryManager(Clock clock) { - this(clock, DEFAULT_MAX_RETRY_ELAPSED_TIME_MILLIS, DEFAULT_SHARED_EXECUTOR); - } - - @VisibleForTesting - RegionalAccessBoundaryManager(Clock clock, int maxRetryElapsedTimeMillis) { - this(clock, maxRetryElapsedTimeMillis, DEFAULT_SHARED_EXECUTOR); - } - - @VisibleForTesting - RegionalAccessBoundaryManager( - Clock clock, int maxRetryElapsedTimeMillis, ExecutorService executor) { - this.clock = clock != null ? clock : Clock.SYSTEM; - this.maxRetryElapsedTimeMillis = maxRetryElapsedTimeMillis; - this.executor = executor; - } - - /** - * Returns the currently cached RegionalAccessBoundary, or null if none is available or if it has - * expired. - * - * @return The cached RAB, or null. - */ - @Nullable - RegionalAccessBoundary getCachedRAB() { - RegionalAccessBoundary rab = cachedRAB.get(); - if (rab != null && !rab.isExpired()) { - return rab; - } - return null; - } - - @VisibleForTesting - void setCachedRAB(RegionalAccessBoundary rab) { - this.cachedRAB.set(rab); - } - - /** - * Triggers an asynchronous refresh of the RegionalAccessBoundary if it is not already being - * refreshed and if the cooldown period is not active. - * - *

              This method is entirely non-blocking for the calling thread. If a refresh is already in - * progress or a cooldown is active, it returns immediately. - * - * @param transportFactory The HTTP transport factory to use for the lookup. - * @param provider The provider used to retrieve the lookup endpoint URL. - * @param accessToken The access token for authentication. - */ - void triggerAsyncRefresh( - final HttpTransportFactory transportFactory, - final RegionalAccessBoundaryProvider provider, - final AccessToken accessToken) { - if (skipRAB.get() || isCooldownActive()) { - return; - } - - RegionalAccessBoundary currentRab = cachedRAB.get(); - if (currentRab != null && !currentRab.shouldRefresh()) { - return; - } - - // Atomically check if a refresh is already running. If compareAndSet returns true, - // this thread "won the race" and is responsible for starting the background task. - // All other concurrent threads will return false and exit immediately. - if (isRefreshing.compareAndSet(false, true)) { - Runnable refreshTask = - () -> { - try { - String url = provider.getRegionalAccessBoundaryUrl(); - if (url == null) { - skipRAB.set(true); - return; - } - RegionalAccessBoundary newRAB = - RegionalAccessBoundary.refresh( - transportFactory, url, accessToken, clock, maxRetryElapsedTimeMillis); - cachedRAB.set(newRAB); - resetCooldown(); - } catch (Exception e) { - handleRefreshFailure(e); - } finally { - // Open the gate again for future refresh requests. - isRefreshing.set(false); - } - }; - - try { - this.executor.submit(refreshTask); - } catch (Exception | Error e) { - // If scheduling fails (e.g., RejectedExecutionException, OutOfMemoryError for threads), - // the task's finally block will never execute. We must release the lock here. - log( - LOGGER_PROVIDER, - Level.FINE, - null, - "Could not submit background refresh task for Regional Access Boundary. " - + "This is non-blocking and the library will attempt to refresh on the next access. Error: " - + e.getMessage()); - isRefreshing.set(false); - } - } - } - - private void handleRefreshFailure(Exception e) { - CooldownState currentCooldownState = cooldownState.get(); - CooldownState next; - if (currentCooldownState.expiryTime == 0) { - // In the first non-retryable failure, we set cooldown to currentTime + 15 mins. - next = - new CooldownState( - clock.currentTimeMillis() + INITIAL_COOLDOWN_MILLIS, INITIAL_COOLDOWN_MILLIS); - } else { - // We attempted to exit cool-down but failed. - // For each failed cooldown exit attempt, we double the cooldown time (till max 6 hrs). - // This avoids overwhelming RAB lookup endpoint. - long nextDuration = Math.min(currentCooldownState.durationMillis * 2, MAX_COOLDOWN_MILLIS); - next = new CooldownState(clock.currentTimeMillis() + nextDuration, nextDuration); - } - - // Atomically update the cooldown state. compareAndSet returns true only if the state - // hasn't been changed by another thread in the meantime. This prevents multiple - // concurrent failures from logging redundant messages or incorrectly calculating - // the exponential backoff. - if (cooldownState.compareAndSet(currentCooldownState, next)) { - log( - LOGGER_PROVIDER, - Level.FINE, - null, - "Regional Access Boundary lookup was not successful; will retry after a cooldown of " - + (next.durationMillis / 60000) - + "m. This is handled automatically. Details: " - + e.getMessage()); - } - } - - private void resetCooldown() { - cooldownState.set(new CooldownState(0, INITIAL_COOLDOWN_MILLIS)); - } - - boolean isCooldownActive() { - CooldownState state = cooldownState.get(); - if (state.expiryTime == 0) { - return false; - } - return clock.currentTimeMillis() < state.expiryTime; - } - - @VisibleForTesting - long getCurrentCooldownMillis() { - return cooldownState.get().durationMillis; - } - - @VisibleForTesting - boolean isSkipRAB() { - return skipRAB.get(); - } - - private static class CooldownState { - /** The time (in milliseconds from epoch) when the current cooldown period expires. */ - final long expiryTime; - - /** The duration (in milliseconds) of the current cooldown period. */ - final long durationMillis; - - CooldownState(long expiryTime, long durationMillis) { - this.expiryTime = expiryTime; - this.durationMillis = durationMillis; - } - } -} diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundaryProvider.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundaryProvider.java deleted file mode 100644 index e34bbafea0dc..000000000000 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/RegionalAccessBoundaryProvider.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026, Google LLC - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Google LLC nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -package com.google.auth.oauth2; - -import com.google.api.core.InternalApi; -import java.io.IOException; - -/** - * An interface for providing regional access boundary information. It is used to provide a common - * interface for credentials that support regional access boundary checks. - */ -@InternalApi -interface RegionalAccessBoundaryProvider { - - /** - * Returns the regional access boundary URI. - * - * @return The regional access boundary URI. - */ - String getRegionalAccessBoundaryUrl() throws IOException; -} diff --git a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java index ca6e330762cd..a65ddbe8d26e 100644 --- a/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java +++ b/google-auth-library-java/oauth2_http/java/com/google/auth/oauth2/ServiceAccountCredentials.java @@ -52,7 +52,6 @@ import com.google.api.client.util.GenericData; import com.google.api.client.util.Joiner; import com.google.api.client.util.Preconditions; -import com.google.api.core.InternalApi; import com.google.auth.CredentialTypeForMetrics; import com.google.auth.Credentials; import com.google.auth.RequestMetadataCallback; @@ -91,7 +90,7 @@ *

              By default uses a JSON Web Token (JWT) to fetch access tokens. */ public class ServiceAccountCredentials extends GoogleCredentials - implements ServiceAccountSigner, IdTokenProvider, JwtProvider, RegionalAccessBoundaryProvider { + implements ServiceAccountSigner, IdTokenProvider, JwtProvider { private static final long serialVersionUID = 7807543542681217978L; private static final String GRANT_TYPE = "urn:ietf:params:oauth:grant-type:jwt-bearer"; @@ -835,23 +834,11 @@ public boolean getUseJwtAccessWithScope() { return useJwtAccessWithScope; } - @InternalApi - @Override - public String getRegionalAccessBoundaryUrl() throws IOException { - return String.format( - OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_SERVICE_ACCOUNT, getAccount()); - } - @VisibleForTesting JwtCredentials getSelfSignedJwtCredentialsWithScope() { return selfSignedJwtCredentialsWithScope; } - @Override - HttpTransportFactory getTransportFactory() { - return transportFactory; - } - @Override public String getAccount() { return getClientEmail(); @@ -1047,17 +1034,6 @@ JwtCredentials createSelfSignedJwtCredentials(final URI uri, Collection .build(); } - /** - * Asynchronously provides the request metadata. - * - *

              This method is non-blocking. For Self-signed JWT flows (which are calculated locally), it - * may execute the callback immediately on the calling thread. For standard flows, it may use the - * provided executor for background tasks. - * - * @param uri The URI of the request. - * @param executor The executor to use for any required background tasks. - * @param callback The callback to receive the metadata or any error. - */ @Override public void getRequestMetadata( final URI uri, Executor executor, final RequestMetadataCallback callback) { @@ -1080,16 +1056,7 @@ public void getRequestMetadata( } } - /** - * Synchronously provides the request metadata. - * - *

              This method is blocking. For standard flows, it will wait for a network call to complete. - * For Self-signed JWT flows, it calculates the token locally. - * - * @param uri The URI of the request. - * @return The request metadata containing the authorization header. - * @throws IOException If an error occurs while fetching or calculating the token. - */ + /** Provide the request metadata by putting an access JWT directly in the metadata. */ @Override public Map> getRequestMetadata(URI uri) throws IOException { if (createScopedRequired() && uri == null) { @@ -1158,8 +1125,6 @@ private Map> getRequestMetadataWithSelfSignedJwt(URI uri) } Map> requestMetadata = jwtCredentials.getRequestMetadata(null); - requestMetadata = addRegionalAccessBoundaryToRequestMetadata(uri, requestMetadata); - refreshRegionalAccessBoundaryWithSelfSignedJwtIfExpired(uri, requestMetadata); return addQuotaProjectIdToRequestMetadata(quotaProjectId, requestMetadata); } diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/TestUtils.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/TestUtils.java index 9315c631985e..91b648992848 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/TestUtils.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/TestUtils.java @@ -42,7 +42,6 @@ import com.google.api.client.json.gson.GsonFactory; import com.google.auth.http.AuthHttpConstants; import com.google.common.base.Splitter; -import com.google.common.collect.ImmutableList; import com.google.common.collect.Lists; import java.io.ByteArrayInputStream; import java.io.IOException; @@ -56,7 +55,6 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import java.util.TimeZone; import javax.annotation.Nullable; /** Utilities for test code under com.google.auth. */ @@ -66,9 +64,6 @@ public class TestUtils { URI.create("https://auth.cloud.google/authorize"); public static final URI WORKFORCE_IDENTITY_FEDERATION_TOKEN_SERVER_URI = URI.create("https://sts.googleapis.com/v1/oauthtoken"); - public static final String REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION = "0x800000"; - public static final List REGIONAL_ACCESS_BOUNDARY_LOCATIONS = - ImmutableList.of("us-central1", "us-central2"); private static final JsonFactory JSON_FACTORY = GsonFactory.getDefaultInstance(); @@ -172,9 +167,7 @@ public static String getDefaultExpireTime() { Calendar calendar = Calendar.getInstance(); calendar.setTime(new Date()); calendar.add(Calendar.SECOND, 300); - SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); - dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); - return dateFormat.format(calendar.getTime()); + return new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").format(calendar.getTime()); } private TestUtils() {} diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/AwsCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/AwsCredentialsTest.java index 26fe9151955b..e401ae853771 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/AwsCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/AwsCredentialsTest.java @@ -32,7 +32,6 @@ package com.google.auth.oauth2; import static com.google.auth.Credentials.GOOGLE_DEFAULT_UNIVERSE; -import static com.google.auth.oauth2.TestUtils.createDummyRab; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; @@ -57,15 +56,11 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; /** Tests for {@link AwsCredentials}. */ class AwsCredentialsTest extends BaseSerializationTest { - @org.junit.jupiter.api.BeforeEach - void setUp() {} - private static final String STS_URL = "https://sts.googleapis.com/v1/token"; private static final String AWS_CREDENTIALS_URL = "https://169.254.169.254"; private static final String AWS_CREDENTIALS_URL_WITH_ROLE = "https://169.254.169.254/roleName"; @@ -135,7 +130,6 @@ void refreshAccessToken_withoutServiceAccountImpersonation() throws IOException .setHttpTransportFactory(transportFactory) .setCredentialSource(buildAwsCredentialSource(transportFactory)) .build(); - awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); AccessToken accessToken = awsCredential.refreshAccessToken(); @@ -165,7 +159,6 @@ void refreshAccessToken_withServiceAccountImpersonation() throws IOException { .setServiceAccountImpersonationUrl( transportFactory.transport.getServiceAccountImpersonationUrl()) .build(); - awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); AccessToken accessToken = awsCredential.refreshAccessToken(); @@ -198,7 +191,6 @@ void refreshAccessToken_withServiceAccountImpersonationOptions() throws IOExcept .setServiceAccountImpersonationOptions( ExternalAccountCredentialsTest.buildServiceAccountImpersonationOptions()) .build(); - awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); AccessToken accessToken = awsCredential.refreshAccessToken(); @@ -236,7 +228,6 @@ void refreshAccessTokenProgrammaticRefresh_withoutServiceAccountImpersonation() .setTokenUrl(STS_URL) .setSubjectTokenType("subjectTokenType") .build(); - awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); AccessToken accessToken = awsCredential.refreshAccessToken(); @@ -268,7 +259,6 @@ void refreshAccessTokenProgrammaticRefresh_withServiceAccountImpersonation() thr .setServiceAccountImpersonationUrl( transportFactory.transport.getServiceAccountImpersonationUrl()) .build(); - awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); AccessToken accessToken = awsCredential.refreshAccessToken(); @@ -292,7 +282,6 @@ void retrieveSubjectToken() throws IOException { .setHttpTransportFactory(transportFactory) .setCredentialSource(buildAwsCredentialSource(transportFactory)) .build(); - awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); String subjectToken = URLDecoder.decode(awsCredential.retrieveSubjectToken(), "UTF-8"); @@ -337,7 +326,6 @@ void retrieveSubjectTokenWithSessionTokenUrl() throws IOException { .setHttpTransportFactory(transportFactory) .setCredentialSource(buildAwsImdsv2CredentialSource(transportFactory)) .build(); - awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); String subjectToken = URLDecoder.decode(awsCredential.retrieveSubjectToken(), "UTF-8"); @@ -411,7 +399,6 @@ void retrieveSubjectToken_imdsv1EnvVariablesSet_metadataServerNotCalled() throws .setCredentialSource(buildAwsCredentialSource(transportFactory)) .setEnvironmentProvider(environmentProvider) .build(); - awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); String subjectToken = URLDecoder.decode(awsCredential.retrieveSubjectToken(), "UTF-8"); @@ -457,7 +444,6 @@ void retrieveSubjectToken_imdsv2EnvVariablesSet_metadataServerNotCalled() throws .setCredentialSource(buildAwsImdsv2CredentialSource(transportFactory)) .setEnvironmentProvider(environmentProvider) .build(); - awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); String subjectToken = URLDecoder.decode(awsCredential.retrieveSubjectToken(), "UTF-8"); @@ -497,7 +483,6 @@ void retrieveSubjectToken_noRegion_expectThrows() { .setHttpTransportFactory(transportFactory) .setCredentialSource(buildAwsCredentialSource(transportFactory)) .build(); - awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); IOException exception = assertThrows(IOException.class, awsCredential::retrieveSubjectToken); assertEquals("Failed to retrieve AWS region.", exception.getMessage()); @@ -523,7 +508,6 @@ void retrieveSubjectToken_noRole_expectThrows() { .setHttpTransportFactory(transportFactory) .setCredentialSource(buildAwsCredentialSource(transportFactory)) .build(); - awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); IOException exception = assertThrows(IOException.class, awsCredential::retrieveSubjectToken); assertEquals("Failed to retrieve AWS IAM role.", exception.getMessage()); @@ -552,7 +536,6 @@ void retrieveSubjectToken_noCredentials_expectThrows() { .setHttpTransportFactory(transportFactory) .setCredentialSource(buildAwsCredentialSource(transportFactory)) .build(); - awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); IOException exception = assertThrows(IOException.class, awsCredential::retrieveSubjectToken); assertEquals("Failed to retrieve AWS credentials.", exception.getMessage()); @@ -584,7 +567,6 @@ void retrieveSubjectToken_noRegionUrlProvided() { .setHttpTransportFactory(transportFactory) .setCredentialSource(new AwsCredentialSource(credentialSource)) .build(); - awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); IOException exception = assertThrows(IOException.class, awsCredential::retrieveSubjectToken); assertEquals( @@ -613,7 +595,6 @@ void retrieveSubjectToken_withProgrammaticRefresh() throws IOException { .setTokenUrl(STS_URL) .setSubjectTokenType("subjectTokenType") .build(); - awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); String subjectToken = URLDecoder.decode(awsCredential.retrieveSubjectToken(), "UTF-8"); @@ -656,7 +637,6 @@ void retrieveSubjectToken_withProgrammaticRefreshSessionToken() throws IOExcepti .setTokenUrl(STS_URL) .setSubjectTokenType("subjectTokenType") .build(); - awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); String subjectToken = URLDecoder.decode(awsCredential.retrieveSubjectToken(), "UTF-8"); @@ -707,7 +687,6 @@ void retrieveSubjectToken_passesContext() { .setTokenUrl(STS_URL) .setSubjectTokenType("subjectTokenType") .build(); - awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); assertDoesNotThrow(awsCredential::retrieveSubjectToken); } @@ -730,7 +709,6 @@ void retrieveSubjectToken_withProgrammaticRefreshThrowsError() { .setTokenUrl(STS_URL) .setSubjectTokenType("subjectTokenType") .build(); - awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); IOException exception = assertThrows(IOException.class, awsCredential::retrieveSubjectToken); assertEquals("test", exception.getMessage()); @@ -747,8 +725,6 @@ void getAwsSecurityCredentials_fromEnvironmentVariablesNoToken() throws IOExcept AwsCredentials.newBuilder(AWS_CREDENTIAL) .setEnvironmentProvider(environmentProvider) .build(); - testAwsCredentials.regionalAccessBoundaryManager.setCachedRAB( - createDummyRab(testAwsCredentials.clock)); AwsSecurityCredentials credentials = testAwsCredentials.getAwsSecurityCredentialsSupplier().getCredentials(emptyContext); @@ -782,8 +758,6 @@ void getAwsSecurityCredentials_fromEnvironmentVariablesWithToken() throws IOExce .setEnvironmentProvider(environmentProvider) .setCredentialSource(credSource) .build(); - testAwsCredentials.regionalAccessBoundaryManager.setCachedRAB( - createDummyRab(testAwsCredentials.clock)); AwsSecurityCredentials credentials = testAwsCredentials.getAwsSecurityCredentialsSupplier().getCredentials(emptyContext); @@ -806,8 +780,6 @@ void getAwsSecurityCredentials_fromEnvironmentVariables_noMetadataServerCall() AwsCredentials.newBuilder(AWS_CREDENTIAL) .setEnvironmentProvider(environmentProvider) .build(); - testAwsCredentials.regionalAccessBoundaryManager.setCachedRAB( - createDummyRab(testAwsCredentials.clock)); AwsSecurityCredentials credentials = testAwsCredentials.getAwsSecurityCredentialsSupplier().getCredentials(emptyContext); @@ -827,7 +799,6 @@ void getAwsSecurityCredentials_fromMetadataServer() throws IOException { .setHttpTransportFactory(transportFactory) .setCredentialSource(buildAwsCredentialSource(transportFactory)) .build(); - awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); AwsSecurityCredentials credentials = awsCredential.getAwsSecurityCredentialsSupplier().getCredentials(emptyContext); @@ -860,7 +831,6 @@ void getAwsSecurityCredentials_fromMetadataServer_noUrlProvided() { .setHttpTransportFactory(transportFactory) .setCredentialSource(new AwsCredentialSource(credentialSource)) .build(); - awsCredential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredential.clock)); IOException exception = assertThrows( @@ -889,7 +859,6 @@ void getAwsRegion_awsRegionEnvironmentVariable() throws IOException { .setCredentialSource(buildAwsCredentialSource(transportFactory)) .setEnvironmentProvider(environmentProvider) .build(); - awsCredentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredentials.clock)); String region = awsCredentials.getAwsSecurityCredentialsSupplier().getRegion(emptyContext); @@ -915,7 +884,6 @@ void getAwsRegion_awsDefaultRegionEnvironmentVariable() throws IOException { .setCredentialSource(buildAwsCredentialSource(transportFactory)) .setEnvironmentProvider(environmentProvider) .build(); - awsCredentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredentials.clock)); String region = awsCredentials.getAwsSecurityCredentialsSupplier().getRegion(emptyContext); @@ -937,7 +905,6 @@ void getAwsRegion_metadataServer() throws IOException { .setHttpTransportFactory(transportFactory) .setCredentialSource(buildAwsCredentialSource(transportFactory)) .build(); - awsCredentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(awsCredentials.clock)); String region = awsCredentials.getAwsSecurityCredentialsSupplier().getRegion(emptyContext); @@ -966,12 +933,10 @@ void createdScoped_clonedCredentialWithAddedScopes() { .setClientSecret("clientSecret") .setUniverseDomain("universeDomain") .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); List newScopes = Arrays.asList("scope1", "scope2"); AwsCredentials newCredentials = (AwsCredentials) credentials.createScoped(newScopes); - newCredentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(newCredentials.clock)); assertEquals(credentials.getAudience(), newCredentials.getAudience()); assertEquals(credentials.getSubjectTokenType(), newCredentials.getSubjectTokenType()); @@ -1047,7 +1012,6 @@ void builder_allFields() { .setScopes(scopes) .setUniverseDomain("universeDomain") .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertEquals("audience", credentials.getAudience()); assertEquals("subjectTokenType", credentials.getSubjectTokenType()); @@ -1084,7 +1048,6 @@ void builder_missingUniverseDomain_defaults() { .setClientSecret("clientSecret") .setScopes(scopes) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertEquals("https://test.com", credentials.getRegionalCredentialVerificationUrlOverride()); assertEquals("audience", credentials.getAudience()); @@ -1122,11 +1085,8 @@ void newBuilder_allFields() { .setScopes(scopes) .setUniverseDomain("universeDomain") .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); AwsCredentials newBuilderCreds = AwsCredentials.newBuilder(credentials).build(); - newBuilderCreds.regionalAccessBoundaryManager.setCachedRAB( - createDummyRab(newBuilderCreds.clock)); assertEquals(credentials.getAudience(), newBuilderCreds.getAudience()); assertEquals(credentials.getSubjectTokenType(), newBuilderCreds.getSubjectTokenType()); assertEquals(credentials.getTokenUrl(), newBuilderCreds.getTokenUrl()); @@ -1162,11 +1122,8 @@ void newBuilder_noUniverseDomain_defaults() { .setClientSecret("clientSecret") .setScopes(scopes) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); AwsCredentials newBuilderCreds = AwsCredentials.newBuilder(credentials).build(); - newBuilderCreds.regionalAccessBoundaryManager.setCachedRAB( - createDummyRab(newBuilderCreds.clock)); assertEquals(credentials.getAudience(), newBuilderCreds.getAudience()); assertEquals(credentials.getSubjectTokenType(), newBuilderCreds.getSubjectTokenType()); assertEquals(credentials.getTokenUrl(), newBuilderCreds.getTokenUrl()); @@ -1204,7 +1161,6 @@ void builder_defaultRegionalCredentialVerificationUrlOverride() { .setClientSecret("clientSecret") .setScopes(scopes) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertNull(credentials.getRegionalCredentialVerificationUrlOverride()); assertEquals( @@ -1284,8 +1240,6 @@ void serialize() throws IOException, ClassNotFoundException { .setUniverseDomain("universeDomain") .setScopes(scopes) .build(); - testCredentials.regionalAccessBoundaryManager.setCachedRAB( - createDummyRab(testCredentials.clock)); AwsCredentials deserializedCredentials = serializeAndDeserialize(testCredentials); assertEquals(testCredentials, deserializedCredentials); @@ -1403,48 +1357,4 @@ public AwsSecurityCredentials getCredentials(ExternalAccountSupplierContext cont return credentials; } } - - @Test - public void testRefresh_regionalAccessBoundarySuccess() throws IOException, InterruptedException { - - MockExternalAccountCredentialsTransportFactory transportFactory = - new MockExternalAccountCredentialsTransportFactory(); - - AwsSecurityCredentialsSupplier supplier = - new TestAwsSecurityCredentialsSupplier("test", programmaticAwsCreds, null, null); - - AwsCredentials awsCredential = - AwsCredentials.newBuilder() - .setAwsSecurityCredentialsSupplier(supplier) - .setHttpTransportFactory(transportFactory) - .setAudience( - "//iam.googleapis.com/projects/12345/locations/global/workloadIdentityPools/pool/providers/provider") - .setTokenUrl(STS_URL) - .setSubjectTokenType("subjectTokenType") - .build(); - - // First call: initiates async refresh. - Map> headers = awsCredential.getRequestMetadata(); - assertNull(headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); - - waitForRegionalAccessBoundary(awsCredential); - - // Second call: should have header. - headers = awsCredential.getRequestMetadata(); - assertEquals( - headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY), - Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); - } - - private void waitForRegionalAccessBoundary(GoogleCredentials credentials) - throws InterruptedException { - long deadline = System.currentTimeMillis() + 5000; - while (credentials.getRegionalAccessBoundary() == null - && System.currentTimeMillis() < deadline) { - Thread.sleep(100); - } - if (credentials.getRegionalAccessBoundary() == null) { - Assertions.fail("Timed out waiting for regional access boundary refresh"); - } - } } diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ComputeEngineCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ComputeEngineCredentialsTest.java index b6de475ae510..82240171d9af 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ComputeEngineCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ComputeEngineCredentialsTest.java @@ -33,8 +33,6 @@ import static com.google.auth.oauth2.ComputeEngineCredentials.METADATA_RESPONSE_EMPTY_CONTENT_ERROR_MESSAGE; import static com.google.auth.oauth2.ImpersonatedCredentialsTest.SA_CLIENT_EMAIL; -import static com.google.auth.oauth2.RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY; -import static com.google.auth.oauth2.TestUtils.createDummyRab; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; @@ -45,7 +43,6 @@ import static org.junit.jupiter.api.Assertions.assertSame; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; -import static org.junit.jupiter.api.Assertions.fail; import com.google.api.client.http.HttpStatusCodes; import com.google.api.client.http.HttpTransport; @@ -78,9 +75,6 @@ /** Test case for {@link ComputeEngineCredentials}. */ class ComputeEngineCredentialsTest extends BaseSerializationTest { - @org.junit.jupiter.api.BeforeEach - void setUp() {} - private static final URI CALL_URI = URI.create("http://googleapis.com/testapi/v1/foo"); private static final String TOKEN_URL = @@ -394,12 +388,12 @@ void getRequestMetadata_hasAccessToken() throws IOException { transportFactory.transport.setServiceAccountEmail(SA_CLIENT_EMAIL); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); TestUtils.assertContainsBearerToken(metadata, ACCESS_TOKEN); // verify metrics header added and other header intact Map> requestHeaders = transportFactory.transport.getRequest().getHeaders(); + com.google.auth.oauth2.TestUtils.validateMetricsHeader(requestHeaders, "at", "mds"); assertTrue(requestHeaders.containsKey("metadata-flavor")); assertTrue(requestHeaders.get("metadata-flavor").contains("Google")); } @@ -411,7 +405,6 @@ void getRequestMetadata_shouldInvalidateAccessTokenWhenScoped_newAccessTokenFrom transportFactory.transport.setServiceAccountEmail("SA_CLIENT_EMAIL"); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); TestUtils.assertContainsBearerToken(metadata, ACCESS_TOKEN); @@ -419,8 +412,6 @@ void getRequestMetadata_shouldInvalidateAccessTokenWhenScoped_newAccessTokenFrom assertNotNull(credentials.getAccessToken()); ComputeEngineCredentials scopedCredentialCopy = (ComputeEngineCredentials) credentials.createScoped(SCOPES); - scopedCredentialCopy.regionalAccessBoundaryManager.setCachedRAB( - createDummyRab(scopedCredentialCopy.clock)); assertNull(scopedCredentialCopy.getAccessToken()); Map> metadataForCopiedCredentials = scopedCredentialCopy.getRequestMetadata(CALL_URI); @@ -435,7 +426,6 @@ void getRequestMetadata_missingServiceAccount_throws() { transportFactory.transport.setServiceAccountEmail("SA_CLIENT_EMAIL"); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IOException exception = assertThrows(IOException.class, () -> credentials.getRequestMetadata(CALL_URI)); String message = exception.getMessage(); @@ -451,7 +441,6 @@ void getRequestMetadata_serverError_throws() { transportFactory.transport.setServiceAccountEmail("SA_CLIENT_EMAIL"); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IOException exception = assertThrows(IOException.class, () -> credentials.getRequestMetadata(CALL_URI)); String message = exception.getMessage(); @@ -575,7 +564,6 @@ void getAccount_sameAs() { transportFactory.transport.setServiceAccountEmail(defaultAccountEmail); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertEquals(defaultAccountEmail, credentials.getAccount()); @@ -609,7 +597,6 @@ public LowLevelHttpResponse execute() throws IOException { transportFactory.transport.setServiceAccountEmail(defaultAccountEmail); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); RuntimeException exception = assertThrows(RuntimeException.class, credentials::getAccount); assertEquals("Failed to get service account", exception.getMessage()); @@ -641,7 +628,6 @@ public LowLevelHttpResponse execute() throws IOException { transportFactory.transport.setServiceAccountEmail(defaultAccountEmail); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); RuntimeException exception = assertThrows(RuntimeException.class, credentials::getAccount); assertEquals("Failed to get service account", exception.getMessage()); @@ -659,7 +645,6 @@ void sign_sameAs() { transportFactory.transport.setSignature(expectedSignature); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertArrayEquals(expectedSignature, credentials.sign(expectedSignature)); } @@ -672,7 +657,6 @@ void sign_getUniverseException() { transportFactory.transport.setServiceAccountEmail(defaultAccountEmail); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transportFactory.transport.setStatusCode(501); assertThrows(IOException.class, credentials::getUniverseDomain); @@ -691,7 +675,6 @@ void sign_getAccountFails() { transportFactory.transport.setSignature(expectedSignature); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); SigningException exception = assertThrows(SigningException.class, () -> credentials.sign(expectedSignature)); @@ -727,7 +710,6 @@ public LowLevelHttpResponse execute() throws IOException { ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); byte[] bytes = {0xD, 0xE, 0xA, 0xD}; @@ -766,7 +748,6 @@ public LowLevelHttpResponse execute() throws IOException { ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); byte[] bytes = {0xD, 0xE, 0xA, 0xD}; @@ -798,7 +779,6 @@ public LowLevelHttpResponse execute() throws IOException { ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IOException exception = assertThrows(IOException.class, credentials::refreshAccessToken); assertTrue(exception.getCause().getMessage().contains("503")); @@ -862,7 +842,6 @@ public LowLevelHttpResponse execute() throws IOException { ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String universeDomain = credentials.getUniverseDomain(); assertEquals("some-universe.xyz", universeDomain); @@ -890,7 +869,6 @@ public LowLevelHttpResponse execute() throws IOException { ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String universeDomain = credentials.getUniverseDomain(); assertEquals(Credentials.GOOGLE_DEFAULT_UNIVERSE, universeDomain); @@ -918,7 +896,6 @@ public LowLevelHttpResponse execute() throws IOException { ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String universeDomain = credentials.getUniverseDomain(); assertEquals(Credentials.GOOGLE_DEFAULT_UNIVERSE, universeDomain); @@ -965,7 +942,6 @@ void getUniverseDomain_fromMetadata_non404error_throws() { ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); for (int status = 400; status < 600; status++) { // 404 should not throw and tested separately @@ -1006,7 +982,6 @@ public LowLevelHttpResponse execute() { ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); byte[] bytes = {0xD, 0xE, 0xA, 0xD}; @@ -1023,7 +998,6 @@ void idTokenWithAudience_sameAs() throws IOException { transportFactory.transport.setIdToken(STANDARD_ID_TOKEN); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = @@ -1044,7 +1018,6 @@ void idTokenWithAudience_standard() throws IOException { MockMetadataServerTransportFactory transportFactory = new MockMetadataServerTransportFactory(); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = @@ -1064,7 +1037,6 @@ void idTokenWithAudience_full() throws IOException { MockMetadataServerTransportFactory transportFactory = new MockMetadataServerTransportFactory(); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = @@ -1091,7 +1063,6 @@ void idTokenWithAudience_licenses() throws IOException { MockMetadataServerTransportFactory transportFactory = new MockMetadataServerTransportFactory(); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = @@ -1120,7 +1091,6 @@ void idTokenWithAudience_404StatusCode() { transportFactory.transport.setStatusCode(HttpStatusCodes.STATUS_CODE_NOT_FOUND); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IOException exception = assertThrows(IOException.class, () -> credentials.idTokenWithAudience("Audience", null)); assertEquals( @@ -1138,7 +1108,6 @@ void idTokenWithAudience_emptyContent() { transportFactory.transport.setEmptyContent(true); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IOException exception = assertThrows(IOException.class, () -> credentials.idTokenWithAudience("Audience", null)); assertEquals(METADATA_RESPONSE_EMPTY_CONTENT_ERROR_MESSAGE, exception.getMessage()); @@ -1150,7 +1119,6 @@ void idTokenWithAudience_503StatusCode() { transportFactory.transport.setStatusCode(HttpStatusCodes.STATUS_CODE_SERVICE_UNAVAILABLE); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertThrows( GoogleAuthException.class, () -> credentials.idTokenWithAudience("Audience", null)); } @@ -1175,7 +1143,6 @@ public LowLevelHttpResponse execute() throws IOException { ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String projectId = credentials.getProjectId(); assertEquals("some-project-id", projectId); } @@ -1186,7 +1153,6 @@ void getProjectId_metadataServerFailure_404StatusCode() { transportFactory.transport.setStatusCode(HttpStatusCodes.STATUS_CODE_SERVICE_UNAVAILABLE); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertNull(credentials.getProjectId()); } @@ -1196,7 +1162,6 @@ void getProjectId_metadataServerFailure_otherStatusCode() { transportFactory.transport.setStatusCode(HttpStatusCodes.STATUS_CODE_UNAUTHORIZED); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertNull(credentials.getProjectId()); } @@ -1206,124 +1171,12 @@ void getProjectId_explicitSet_noMDsCall() { new MockRequestCountingTransportFactory(); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); credentials.setProjectId("explicit.project_id"); assertEquals("explicit.project_id", credentials.getProjectId()); assertEquals(0, transportFactory.transport.getRequestCount()); } - @Test - void refresh_regionalAccessBoundarySuccess() throws IOException, InterruptedException { - - String defaultAccountEmail = "default@email.com"; - MockMetadataServerTransportFactory transportFactory = new MockMetadataServerTransportFactory(); - RegionalAccessBoundary regionalAccessBoundary = - new RegionalAccessBoundary( - TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION, - TestUtils.REGIONAL_ACCESS_BOUNDARY_LOCATIONS, - null); - transportFactory.transport.setRegionalAccessBoundary(regionalAccessBoundary); - transportFactory.transport.setServiceAccountEmail(defaultAccountEmail); - - ComputeEngineCredentials credentials = - ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - - // First call: initiates async refresh. - Map> headers = credentials.getRequestMetadata(); - assertNull(headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); - - waitForRegionalAccessBoundary(credentials); - - // Second call: should have header. - headers = credentials.getRequestMetadata(); - assertEquals( - headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY), - Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); - } - - @Test - void refresh_regionalAccessBoundaryNonEmail_skipsRABLookup() - throws IOException, InterruptedException { - String nonEmailAccount = "non-email-account-value"; - MockMetadataServerTransportFactory transportFactory = new MockMetadataServerTransportFactory(); - RegionalAccessBoundary regionalAccessBoundary = - new RegionalAccessBoundary( - TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION, - TestUtils.REGIONAL_ACCESS_BOUNDARY_LOCATIONS, - null); - transportFactory.transport.setRegionalAccessBoundary(regionalAccessBoundary); - transportFactory.transport.setServiceAccountEmail(nonEmailAccount); - - ComputeEngineCredentials credentials = - ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - - // Before any call, skipRAB flag should be false - assertFalse(credentials.regionalAccessBoundaryManager.isSkipRAB()); - - // First call: triggers lookup which determines non-email, returns null, and sets skipRAB to - // true - Map> headers = credentials.getRequestMetadata(); - assertNull(headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); - - // Since the task is scheduled asynchronously on the shared executor, wait for it to complete - long deadline = System.currentTimeMillis() + 5000; - while (!credentials.regionalAccessBoundaryManager.isSkipRAB() - && System.currentTimeMillis() < deadline) { - Thread.sleep(50); - } - - // Verify skipRAB flag has been set to true - assertTrue(credentials.regionalAccessBoundaryManager.isSkipRAB()); - - // Verify RAB is still null - assertNull(credentials.getRegionalAccessBoundary()); - - // Second call: should bypass triggerAsyncRefresh completely and remain null - headers = credentials.getRequestMetadata(); - assertNull(headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); - } - - @Test - void getRegionalAccessBoundaryUrl_validEmail_returnsUrl() throws IOException { - MockMetadataServerTransportFactory transportFactory = new MockMetadataServerTransportFactory(); - String defaultAccountEmail = "mail@mail.com"; - - transportFactory.transport.setServiceAccountEmail(defaultAccountEmail); - ComputeEngineCredentials credentials = - ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - - String expectedUrl = - String.format( - OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_SERVICE_ACCOUNT, - defaultAccountEmail); - assertEquals(expectedUrl, credentials.getRegionalAccessBoundaryUrl()); - } - - @Test - void getRegionalAccessBoundaryUrl_invalidEmail_returnsNull() throws IOException { - MockMetadataServerTransportFactory transportFactory = new MockMetadataServerTransportFactory(); - String defaultAccountEmail = "default"; // non-email account format - - transportFactory.transport.setServiceAccountEmail(defaultAccountEmail); - ComputeEngineCredentials credentials = - ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - - assertNull(credentials.getRegionalAccessBoundaryUrl()); - } - - private void waitForRegionalAccessBoundary(GoogleCredentials credentials) - throws InterruptedException { - long deadline = System.currentTimeMillis() + 5000; - while (credentials.getRegionalAccessBoundary() == null - && System.currentTimeMillis() < deadline) { - Thread.sleep(100); - } - if (credentials.getRegionalAccessBoundary() == null) { - fail("Timed out waiting for regional access boundary refresh"); - } - } - static class MockMetadataServerTransportFactory implements HttpTransportFactory { MockMetadataServerTransport transport = diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ExternalAccountAuthorizedUserCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ExternalAccountAuthorizedUserCredentialsTest.java index 071500f679ee..78bb6811953e 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ExternalAccountAuthorizedUserCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ExternalAccountAuthorizedUserCredentialsTest.java @@ -32,7 +32,6 @@ package com.google.auth.oauth2; import static com.google.auth.Credentials.GOOGLE_DEFAULT_UNIVERSE; -import static com.google.auth.oauth2.TestUtils.createDummyRab; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotEquals; @@ -44,6 +43,7 @@ import com.google.api.client.http.HttpTransport; import com.google.api.client.json.GenericJson; import com.google.api.client.testing.http.MockLowLevelHttpRequest; +import com.google.api.client.util.Clock; import com.google.auth.TestUtils; import com.google.auth.http.AuthHttpConstants; import com.google.auth.http.HttpTransportFactory; @@ -62,7 +62,6 @@ import java.util.HashMap; import java.util.List; import java.util.Map; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -130,9 +129,6 @@ void setup() { transportFactory = new MockExternalAccountAuthorizedUserCredentialsTransportFactory(); } - @org.junit.jupiter.api.AfterEach - void tearDown() {} - @Test void builder_allFields() throws IOException { ExternalAccountAuthorizedUserCredentials credentials = @@ -707,7 +703,6 @@ void createScopedRequired_false() { void getRequestMetadata() throws IOException { GoogleCredentials credentials = ExternalAccountAuthorizedUserCredentials.fromJson(buildJsonCredentials(), transportFactory); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); @@ -719,7 +714,6 @@ void getRequestMetadata() throws IOException { void getRequestMetadata_withQuotaProjectId() throws IOException { GoogleCredentials credentials = ExternalAccountAuthorizedUserCredentials.fromJson(buildJsonCredentials(), transportFactory); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); @@ -738,7 +732,6 @@ void getRequestMetadata_withAccessToken() throws IOException { .setHttpTransportFactory(transportFactory) .setAccessToken(new AccessToken(ACCESS_TOKEN, /* expirationTime= */ null)) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); @@ -1240,109 +1233,7 @@ void serialize() throws IOException, ClassNotFoundException { assertEquals(credentials, deserializedCredentials); assertEquals(credentials.hashCode(), deserializedCredentials.hashCode()); assertEquals(credentials.toString(), deserializedCredentials.toString()); - assertSame(com.google.api.client.util.Clock.SYSTEM, deserializedCredentials.clock); - } - - @org.junit.jupiter.api.Test - void testRefresh_regionalAccessBoundarySuccess() throws IOException, InterruptedException { - - ExternalAccountAuthorizedUserCredentials credentials = - ExternalAccountAuthorizedUserCredentials.newBuilder() - .setClientId(CLIENT_ID) - .setClientSecret(CLIENT_SECRET) - .setRefreshToken(REFRESH_TOKEN) - .setTokenUrl(TOKEN_URL) - .setAudience( - "//iam.googleapis.com/locations/global/workforcePools/pool/providers/provider") - .setHttpTransportFactory(transportFactory) - .build(); - - // First call: initiates async refresh. - Map> headers = credentials.getRequestMetadata(); - assertNull(headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); - - waitForRegionalAccessBoundary(credentials); - - // Second call: should have header. - headers = credentials.getRequestMetadata(); - assertEquals( - headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY), - Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); - } - - @Test - void getRegionalAccessBoundaryUrl_workforce() throws IOException { - ExternalAccountAuthorizedUserCredentials credentials = - ExternalAccountAuthorizedUserCredentials.newBuilder() - .setClientId(CLIENT_ID) - .setClientSecret(CLIENT_SECRET) - .setRefreshToken(REFRESH_TOKEN) - .setTokenUrl(TOKEN_URL) - .setAudience( - "//iam.googleapis.com/locations/global/workforcePools/my-pool/providers/my-provider") - .build(); - - String expectedUrl = - "https://iamcredentials.googleapis.com/v1/locations/global/workforcePools/my-pool/allowedLocations"; - assertEquals(expectedUrl, credentials.getRegionalAccessBoundaryUrl()); - } - - @Test - void getRegionalAccessBoundaryUrl_invalidAudience_throws() { - ExternalAccountAuthorizedUserCredentials credentials = - ExternalAccountAuthorizedUserCredentials.newBuilder() - .setClientId(CLIENT_ID) - .setClientSecret(CLIENT_SECRET) - .setRefreshToken(REFRESH_TOKEN) - .setTokenUrl(TOKEN_URL) - .setAudience("invalid-audience") - .build(); - - IllegalStateException exception = - assertThrows( - IllegalStateException.class, - () -> { - credentials.getRegionalAccessBoundaryUrl(); - }); - - assertEquals( - "The provided audience is not in the correct format for a workforce pool. " - + "Refer: https://docs.cloud.google.com/iam/docs/principal-identifiers", - exception.getMessage()); - } - - @Test - void getRegionalAccessBoundaryUrl_nullAudience_throws() { - ExternalAccountAuthorizedUserCredentials credentials = - ExternalAccountAuthorizedUserCredentials.newBuilder() - .setClientId(CLIENT_ID) - .setClientSecret(CLIENT_SECRET) - .setRefreshToken(REFRESH_TOKEN) - .setTokenUrl(TOKEN_URL) - .build(); - - IllegalStateException exception = - assertThrows( - IllegalStateException.class, - () -> { - credentials.getRegionalAccessBoundaryUrl(); - }); - - assertEquals( - "The audience is null, which is not in the correct format for a workforce pool.", - exception.getMessage()); - } - - private void waitForRegionalAccessBoundary(GoogleCredentials credentials) - throws InterruptedException { - long deadline = System.currentTimeMillis() + 5000; - while (credentials.getRegionalAccessBoundary() == null - && System.currentTimeMillis() < deadline) { - Thread.sleep(100); - } - if (credentials.getRegionalAccessBoundary() == null) { - Assertions.fail("Timed out waiting for regional access boundary refresh"); - } + assertSame(Clock.SYSTEM, deserializedCredentials.clock); } static GenericJson buildJsonCredentials() { diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ExternalAccountCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ExternalAccountCredentialsTest.java index db3d1601ed94..1338c0d68fe9 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ExternalAccountCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ExternalAccountCredentialsTest.java @@ -32,10 +32,6 @@ package com.google.auth.oauth2; import static com.google.auth.oauth2.MockExternalAccountCredentialsTransport.SERVICE_ACCOUNT_IMPERSONATION_URL; -import static com.google.auth.oauth2.OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_SERVICE_ACCOUNT; -import static com.google.auth.oauth2.OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKFORCE_POOL; -import static com.google.auth.oauth2.OAuth2Utils.IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKLOAD_POOL; -import static com.google.auth.oauth2.TestUtils.createDummyRab; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertInstanceOf; @@ -57,8 +53,12 @@ import java.io.IOException; import java.math.BigDecimal; import java.net.URI; -import java.util.*; -import org.junit.jupiter.api.Assertions; +import java.util.Arrays; +import java.util.Date; +import java.util.HashMap; +import java.util.List; +import java.util.Locale; +import java.util.Map; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -1109,8 +1109,6 @@ void getRequestMetadata_withQuotaProjectId() throws IOException { .setCredentialSource(new TestCredentialSource(FILE_CREDENTIAL_SOURCE_MAP)) .setQuotaProjectId("quotaProjectId") .build(); - testCredentials.regionalAccessBoundaryManager.setCachedRAB( - createDummyRab(testCredentials.clock)); Map> requestMetadata = testCredentials.getRequestMetadata(URI.create("http://googleapis.com/foo/bar")); @@ -1146,7 +1144,7 @@ void serialize() throws IOException, ClassNotFoundException { assertEquals( testCredentials.getServiceAccountImpersonationOptions().getLifetime(), deserializedCredentials.getServiceAccountImpersonationOptions().getLifetime()); - assertSame(deserializedCredentials.clock, Clock.SYSTEM); + assertSame(Clock.SYSTEM, deserializedCredentials.clock); assertEquals( MockExternalAccountCredentialsTransportFactory.class, deserializedCredentials.toBuilder().getHttpTransportFactory().getClass()); @@ -1242,292 +1240,6 @@ void validateServiceAccountImpersonationUrls_invalidUrls() { } } - @Test - public void getRegionalAccessBoundaryUrl_workload() throws IOException { - String audience = - "//iam.googleapis.com/projects/12345/locations/global/workloadIdentityPools/my-pool/providers/my-provider"; - ExternalAccountCredentials credentials = - TestExternalAccountCredentials.newBuilder() - .setAudience(audience) - .setSubjectTokenType("subject_token_type") - .setCredentialSource(new TestCredentialSource(FILE_CREDENTIAL_SOURCE_MAP)) - .build(); - - String expectedUrl = - "https://iamcredentials.googleapis.com/v1/projects/12345/locations/global/workloadIdentityPools/my-pool/allowedLocations"; - assertEquals(expectedUrl, credentials.getRegionalAccessBoundaryUrl()); - } - - @Test - public void getRegionalAccessBoundaryUrl_workforce() throws IOException { - String audience = - "//iam.googleapis.com/locations/global/workforcePools/my-pool/providers/my-provider"; - ExternalAccountCredentials credentials = - TestExternalAccountCredentials.newBuilder() - .setAudience(audience) - .setWorkforcePoolUserProject("12345") - .setSubjectTokenType("subject_token_type") - .setCredentialSource(new TestCredentialSource(FILE_CREDENTIAL_SOURCE_MAP)) - .build(); - - String expectedUrl = - "https://iamcredentials.googleapis.com/v1/locations/global/workforcePools/my-pool/allowedLocations"; - assertEquals(expectedUrl, credentials.getRegionalAccessBoundaryUrl()); - } - - @Test - public void getRegionalAccessBoundaryUrl_invalidAudience_throws() { - ExternalAccountCredentials credentials = - TestExternalAccountCredentials.newBuilder() - .setAudience("invalid-audience") - .setSubjectTokenType("subject_token_type") - .setCredentialSource(new TestCredentialSource(FILE_CREDENTIAL_SOURCE_MAP)) - .build(); - - IllegalStateException exception = - assertThrows( - IllegalStateException.class, - () -> { - credentials.getRegionalAccessBoundaryUrl(); - }); - - assertEquals( - "The provided audience is not in a valid format for either a workload identity pool or a workforce pool. " - + "Refer: https://docs.cloud.google.com/iam/docs/principal-identifiers", - exception.getMessage()); - } - - @Test - public void getRegionalAccessBoundaryUrl_nullAudience_throws() { - ExternalAccountCredentials credentials = - new TestExternalAccountCredentials( - TestExternalAccountCredentials.newBuilder() - .setAudience("any-audience-to-pass-constructor-check") - .setSubjectTokenType("subject_token_type") - .setCredentialSource(new TestCredentialSource(FILE_CREDENTIAL_SOURCE_MAP))) { - @Override - public String getAudience() { - return null; - } - }; - - IllegalStateException exception = - assertThrows( - IllegalStateException.class, - () -> { - credentials.getRegionalAccessBoundaryUrl(); - }); - - assertEquals( - "The audience is null, which is not in a valid format for either a workload identity pool or a workforce pool.", - exception.getMessage()); - } - - @Test - public void refresh_workload_regionalAccessBoundarySuccess() - throws IOException, InterruptedException { - - String audience = - "//iam.googleapis.com/projects/12345/locations/global/workloadIdentityPools/my-pool/providers/my-provider"; - - ExternalAccountCredentials credentials = - new IdentityPoolCredentials( - IdentityPoolCredentials.newBuilder() - .setHttpTransportFactory(transportFactory) - .setAudience(audience) - .setSubjectTokenType("subject_token_type") - .setTokenUrl(STS_URL) - .setCredentialSource(new TestCredentialSource(FILE_CREDENTIAL_SOURCE_MAP))) { - @Override - public String retrieveSubjectToken() throws IOException { - // This override isolates the test from the filesystem. - return "dummy-subject-token"; - } - }; - - // First call: initiates async refresh. - Map> headers = credentials.getRequestMetadata(); - assertNull(headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); - - waitForRegionalAccessBoundary(credentials); - - // Second call: should have header. - headers = credentials.getRequestMetadata(); - assertEquals( - headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY), - Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); - } - - @Test - public void refresh_workforce_regionalAccessBoundarySuccess() - throws IOException, InterruptedException { - - String audience = - "//iam.googleapis.com/locations/global/workforcePools/my-pool/providers/my-provider"; - - ExternalAccountCredentials credentials = - new IdentityPoolCredentials( - IdentityPoolCredentials.newBuilder() - .setHttpTransportFactory(transportFactory) - .setAudience(audience) - .setWorkforcePoolUserProject("12345") - .setSubjectTokenType("subject_token_type") - .setTokenUrl(STS_URL) - .setCredentialSource(new TestCredentialSource(FILE_CREDENTIAL_SOURCE_MAP))) { - @Override - public String retrieveSubjectToken() throws IOException { - return "dummy-subject-token"; - } - }; - - // First call: initiates async refresh. - Map> headers = credentials.getRequestMetadata(); - assertNull(headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); - - waitForRegionalAccessBoundary(credentials); - - // Second call: should have header. - headers = credentials.getRequestMetadata(); - assertEquals( - headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY), - Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); - } - - @Test - public void refresh_impersonated_workload_regionalAccessBoundarySuccess() - throws IOException, InterruptedException { - - String projectNumber = "12345"; - String poolId = "my-pool"; - String providerId = "my-provider"; - String audience = - String.format( - "//iam.googleapis.com/projects/%s/locations/global/workloadIdentityPools/%s/providers/%s", - projectNumber, poolId, providerId); - - transportFactory.transport.setExpireTime(TestUtils.getDefaultExpireTime()); - - // 1. Setup distinct RABs for workload and impersonated identities. - String workloadRabUrl = - String.format( - IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKLOAD_POOL, projectNumber, poolId); - RegionalAccessBoundary workloadRab = - new RegionalAccessBoundary( - "workload-encoded", Collections.singletonList("workload-loc"), null); - transportFactory.transport.addRegionalAccessBoundary(workloadRabUrl, workloadRab); - - String saEmail = - ImpersonatedCredentials.extractTargetPrincipal(SERVICE_ACCOUNT_IMPERSONATION_URL); - String impersonatedRabUrl = - String.format(IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_SERVICE_ACCOUNT, saEmail); - RegionalAccessBoundary impersonatedRab = - new RegionalAccessBoundary( - "impersonated-encoded", Collections.singletonList("impersonated-loc"), null); - transportFactory.transport.addRegionalAccessBoundary(impersonatedRabUrl, impersonatedRab); - - // Use a URL-based source that the mock transport can handle, to avoid file IO. - Map urlCredentialSourceMap = new HashMap<>(); - urlCredentialSourceMap.put("url", "https://www.metadata.google.com"); - Map headers = new HashMap<>(); - headers.put("Metadata-Flavor", "Google"); - urlCredentialSourceMap.put("headers", headers); - - ExternalAccountCredentials credentials = - IdentityPoolCredentials.newBuilder() - .setHttpTransportFactory(transportFactory) - .setAudience(audience) - .setSubjectTokenType("subject_token_type") - .setTokenUrl(STS_URL) - .setServiceAccountImpersonationUrl(SERVICE_ACCOUNT_IMPERSONATION_URL) - .setCredentialSource(new IdentityPoolCredentialSource(urlCredentialSourceMap)) - .build(); - - // First call: initiates async refresh. - Map> requestHeaders = credentials.getRequestMetadata(); - assertNull(requestHeaders.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); - - waitForRegionalAccessBoundary(credentials); - - // Second call: should have the IMPERSONATED header, not the workload one. - requestHeaders = credentials.getRequestMetadata(); - assertEquals( - Arrays.asList("impersonated-encoded"), - requestHeaders.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); - } - - @Test - public void refresh_impersonated_workforce_regionalAccessBoundarySuccess() - throws IOException, InterruptedException { - - String poolId = "my-pool"; - String providerId = "my-provider"; - String audience = - String.format( - "//iam.googleapis.com/locations/global/workforcePools/%s/providers/%s", - poolId, providerId); - - transportFactory.transport.setExpireTime(TestUtils.getDefaultExpireTime()); - - // 1. Setup distinct RABs for workforce and impersonated identities. - String workforceRabUrl = - String.format(IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_WORKFORCE_POOL, poolId); - RegionalAccessBoundary workforceRab = - new RegionalAccessBoundary( - "workforce-encoded", Collections.singletonList("workforce-loc"), null); - transportFactory.transport.addRegionalAccessBoundary(workforceRabUrl, workforceRab); - - String saEmail = - ImpersonatedCredentials.extractTargetPrincipal(SERVICE_ACCOUNT_IMPERSONATION_URL); - String impersonatedRabUrl = - String.format(IAM_CREDENTIALS_ALLOWED_LOCATIONS_URL_FORMAT_SERVICE_ACCOUNT, saEmail); - RegionalAccessBoundary impersonatedRab = - new RegionalAccessBoundary( - "impersonated-encoded", Collections.singletonList("impersonated-loc"), null); - transportFactory.transport.addRegionalAccessBoundary(impersonatedRabUrl, impersonatedRab); - - // Use a URL-based source that the mock transport can handle, to avoid file IO. - Map urlCredentialSourceMap = new HashMap<>(); - urlCredentialSourceMap.put("url", "https://www.metadata.google.com"); - Map headers = new HashMap<>(); - headers.put("Metadata-Flavor", "Google"); - urlCredentialSourceMap.put("headers", headers); - - ExternalAccountCredentials credentials = - IdentityPoolCredentials.newBuilder() - .setHttpTransportFactory(transportFactory) - .setAudience(audience) - .setWorkforcePoolUserProject("12345") - .setSubjectTokenType("subject_token_type") - .setTokenUrl(STS_URL) - .setServiceAccountImpersonationUrl(SERVICE_ACCOUNT_IMPERSONATION_URL) - .setCredentialSource(new IdentityPoolCredentialSource(urlCredentialSourceMap)) - .build(); - - // First call: initiates async refresh. - Map> requestHeaders = credentials.getRequestMetadata(); - assertNull(requestHeaders.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); - - waitForRegionalAccessBoundary(credentials); - - // Second call: should have the IMPERSONATED header, not the workforce one. - requestHeaders = credentials.getRequestMetadata(); - assertEquals( - Arrays.asList("impersonated-encoded"), - requestHeaders.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); - } - - private void waitForRegionalAccessBoundary(GoogleCredentials credentials) - throws InterruptedException { - long deadline = System.currentTimeMillis() + 5000; - while (credentials.getRegionalAccessBoundary() == null - && System.currentTimeMillis() < deadline) { - Thread.sleep(100); - } - if (credentials.getRegionalAccessBoundary() == null) { - Assertions.fail("Timed out waiting for regional access boundary refresh"); - } - } - private GenericJson buildJsonIdentityPoolCredential() { GenericJson json = new GenericJson(); json.put( diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/GoogleCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/GoogleCredentialsTest.java index 18e5c4585eef..74aa9fae9ccd 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/GoogleCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/GoogleCredentialsTest.java @@ -31,8 +31,6 @@ package com.google.auth.oauth2; -import static com.google.auth.oauth2.RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY; -import static org.junit.Assert.fail; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertInstanceOf; @@ -46,7 +44,6 @@ import com.google.api.client.json.GenericJson; import com.google.api.client.util.Clock; import com.google.auth.Credentials; -import com.google.auth.RequestMetadataCallback; import com.google.auth.TestUtils; import com.google.auth.http.HttpTransportFactory; import com.google.auth.oauth2.ExternalAccountAuthorizedUserCredentialsTest.MockExternalAccountAuthorizedUserCredentialsTransportFactory; @@ -61,10 +58,7 @@ import java.util.Collections; import java.util.List; import java.util.Map; -import java.util.concurrent.atomic.AtomicLong; import java.util.concurrent.atomic.AtomicReference; -import javax.annotation.Nullable; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; /** Test case for {@link GoogleCredentials}. */ @@ -105,12 +99,6 @@ class GoogleCredentialsTest extends BaseSerializationTest { private static final String GOOGLE_DEFAULT_UNIVERSE = "googleapis.com"; private static final String TPC_UNIVERSE = "foo.bar"; - @org.junit.jupiter.api.BeforeEach - void setUp() {} - - @org.junit.jupiter.api.AfterEach - void tearDown() {} - @Test void getApplicationDefault_nullTransport_throws() { assertThrows(NullPointerException.class, () -> GoogleCredentials.getApplicationDefault(null)); @@ -850,54 +838,6 @@ void serialize() throws IOException, ClassNotFoundException { assertEquals(testCredentials.hashCode(), deserializedCredentials.hashCode()); assertEquals(testCredentials.toString(), deserializedCredentials.toString()); assertSame(Clock.SYSTEM, deserializedCredentials.clock); - assertSame(deserializedCredentials.clock, Clock.SYSTEM); - assertNotNull(deserializedCredentials.regionalAccessBoundaryManager); - } - - @Test - public void serialize_removesStaleRabHeaders() throws Exception { - - MockTokenServerTransportFactory transportFactory = new MockTokenServerTransportFactory(); - RegionalAccessBoundary rab = - new RegionalAccessBoundary( - "test-encoded", - Collections.singletonList("test-loc"), - System.currentTimeMillis(), - null); - transportFactory.transport.setRegionalAccessBoundary(rab); - transportFactory.transport.addServiceAccount(SA_CLIENT_EMAIL, ACCESS_TOKEN); - - GoogleCredentials credentials = - new ServiceAccountCredentials.Builder() - .setClientEmail(SA_CLIENT_EMAIL) - .setPrivateKey(OAuth2Utils.privateKeyFromPkcs8(SA_PRIVATE_KEY_PKCS8)) - .setPrivateKeyId(SA_PRIVATE_KEY_ID) - .setHttpTransportFactory(transportFactory) - .setScopes(SCOPES) - .build(); - - // 1. Trigger request metadata to start async RAB refresh - credentials.getRequestMetadata(URI.create("https://foo.com")); - - // Wait for the RAB to be fetched and cached - waitForRegionalAccessBoundary(credentials); - - // 2. Verify the live credential has the RAB header - Map> metadata = credentials.getRequestMetadata(); - assertEquals( - Collections.singletonList("test-encoded"), - metadata.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); - - // 3. Serialize and deserialize. - GoogleCredentials deserialized = serializeAndDeserialize(credentials); - - // 4. Verify. - // The manager is transient, so it should be empty. - assertNull(deserialized.getRegionalAccessBoundary()); - - // The metadata should NOT contain the RAB header anymore, preventing stale headers. - Map> deserializedMetadata = deserialized.getRequestMetadata(); - assertNull(deserializedMetadata.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); } @Test @@ -1037,334 +977,4 @@ void getCredentialInfo_impersonatedServiceAccount() throws IOException { assertEquals( ImpersonatedCredentialsTest.IMPERSONATED_CLIENT_EMAIL, credentialInfo.get("Principal")); } - - @Test - public void regionalAccessBoundary_shouldFetchAndReturnRegionalAccessBoundaryDataSuccessfully() - throws IOException, InterruptedException { - - MockTokenServerTransport transport = new MockTokenServerTransport(); - transport.addServiceAccount(SA_CLIENT_EMAIL, ACCESS_TOKEN); - RegionalAccessBoundary regionalAccessBoundary = - new RegionalAccessBoundary( - TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION, - Collections.singletonList("us-central1"), - null); - transport.setRegionalAccessBoundary(regionalAccessBoundary); - - ServiceAccountCredentials credentials = - ServiceAccountCredentials.newBuilder() - .setClientEmail(SA_CLIENT_EMAIL) - .setPrivateKey(OAuth2Utils.privateKeyFromPkcs8(SA_PRIVATE_KEY_PKCS8)) - .setPrivateKeyId(SA_PRIVATE_KEY_ID) - .setHttpTransportFactory(() -> transport) - .setScopes(SCOPES) - .build(); - - // First call: returns no header, initiates async refresh. - Map> headers = credentials.getRequestMetadata(); - assertNull(headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); - - waitForRegionalAccessBoundary(credentials); - - // Second call: should have header. - headers = credentials.getRequestMetadata(); - assertEquals( - headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY), - Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); - } - - @Test - public void regionalAccessBoundary_shouldRetryRegionalAccessBoundaryLookupOnFailure() - throws IOException, InterruptedException { - - // This transport will be used for the regional access boundary lookup. - // We will configure it to fail on the first attempt. - MockTokenServerTransport regionalAccessBoundaryTransport = new MockTokenServerTransport(); - regionalAccessBoundaryTransport.addResponseErrorSequence( - new IOException("Service Unavailable")); - RegionalAccessBoundary regionalAccessBoundary = - new RegionalAccessBoundary( - TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION, - TestUtils.REGIONAL_ACCESS_BOUNDARY_LOCATIONS, - null); - regionalAccessBoundaryTransport.setRegionalAccessBoundary(regionalAccessBoundary); - - // This transport will be used for the access token refresh. - // It will succeed. - MockTokenServerTransport accessTokenTransport = new MockTokenServerTransport(); - accessTokenTransport.addServiceAccount(SA_CLIENT_EMAIL, ACCESS_TOKEN); - - ServiceAccountCredentials credentials = - ServiceAccountCredentials.newBuilder() - .setClientEmail(SA_CLIENT_EMAIL) - .setPrivateKey(OAuth2Utils.privateKeyFromPkcs8(SA_PRIVATE_KEY_PKCS8)) - .setPrivateKeyId(SA_PRIVATE_KEY_ID) - // Use a custom transport factory that returns the correct transport for each endpoint. - .setHttpTransportFactory( - () -> - new com.google.api.client.testing.http.MockHttpTransport() { - @Override - public com.google.api.client.http.LowLevelHttpRequest buildRequest( - String method, String url) throws IOException { - if (url.endsWith("/allowedLocations")) { - return regionalAccessBoundaryTransport.buildRequest(method, url); - } - return accessTokenTransport.buildRequest(method, url); - } - }) - .setScopes(SCOPES) - .build(); - - credentials.getRequestMetadata(); - waitForRegionalAccessBoundary(credentials); - - Map> headers = credentials.getRequestMetadata(); - assertEquals( - Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION), - headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); - } - - @Test - public void regionalAccessBoundary_refreshShouldNotThrowWhenNoValidAccessTokenIsPassed() - throws IOException { - - MockTokenServerTransport transport = new MockTokenServerTransport(); - // Return an expired access token. - transport.addServiceAccount(SA_CLIENT_EMAIL, "expired-token"); - transport.setExpiresInSeconds(-1); - - ServiceAccountCredentials credentials = - ServiceAccountCredentials.newBuilder() - .setClientEmail(SA_CLIENT_EMAIL) - .setPrivateKey(OAuth2Utils.privateKeyFromPkcs8(SA_PRIVATE_KEY_PKCS8)) - .setPrivateKeyId(SA_PRIVATE_KEY_ID) - .setHttpTransportFactory(() -> transport) - .setScopes(SCOPES) - .build(); - - // Should not throw, but just fail-open (no header). - Map> headers = credentials.getRequestMetadata(); - assertNull(headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); - } - - @Test - public void regionalAccessBoundary_cooldownDoublingAndRefresh() - throws IOException, InterruptedException { - - MockTokenServerTransport transport = new MockTokenServerTransport(); - transport.addServiceAccount(SA_CLIENT_EMAIL, ACCESS_TOKEN); - // Always fail lookup for now. - transport.addResponseErrorSequence(new IOException("Persistent Failure")); - - ServiceAccountCredentials credentials = - ServiceAccountCredentials.newBuilder() - .setClientEmail(SA_CLIENT_EMAIL) - .setPrivateKey(OAuth2Utils.privateKeyFromPkcs8(SA_PRIVATE_KEY_PKCS8)) - .setPrivateKeyId(SA_PRIVATE_KEY_ID) - .setHttpTransportFactory(() -> transport) - .setScopes(SCOPES) - .build(); - - TestClock testClock = new TestClock(); - credentials.clock = testClock; - credentials.regionalAccessBoundaryManager = new RegionalAccessBoundaryManager(testClock, 100); - - // First attempt: triggers lookup, fails, enters 15m cooldown. - credentials.getRequestMetadata(); - waitForCooldownActive(credentials); - assertTrue(credentials.regionalAccessBoundaryManager.isCooldownActive()); - assertEquals( - 15 * 60 * 1000L, credentials.regionalAccessBoundaryManager.getCurrentCooldownMillis()); - - // Second attempt (during cooldown): does not trigger lookup. - credentials.getRequestMetadata(); - assertTrue(credentials.regionalAccessBoundaryManager.isCooldownActive()); - - // Fast-forward past 15m cooldown. - testClock.advanceTime(16 * 60 * 1000L); - assertFalse(credentials.regionalAccessBoundaryManager.isCooldownActive()); - - // Third attempt (cooldown expired): triggers lookup, fails again, cooldown should double. - credentials.getRequestMetadata(); - waitForCooldownActive(credentials); - assertTrue(credentials.regionalAccessBoundaryManager.isCooldownActive()); - assertEquals( - 30 * 60 * 1000L, credentials.regionalAccessBoundaryManager.getCurrentCooldownMillis()); - - // Fast-forward past 30m cooldown. - testClock.advanceTime(31 * 60 * 1000L); - assertFalse(credentials.regionalAccessBoundaryManager.isCooldownActive()); - - // Set successful response. - transport.setRegionalAccessBoundary( - new RegionalAccessBoundary("0x123", Collections.emptyList(), null)); - - // Fourth attempt: triggers lookup, succeeds, resets cooldown. - credentials.getRequestMetadata(); - waitForRegionalAccessBoundary(credentials); - assertFalse(credentials.regionalAccessBoundaryManager.isCooldownActive()); - assertEquals("0x123", credentials.getRegionalAccessBoundary().getEncodedLocations()); - assertEquals( - 15 * 60 * 1000L, credentials.regionalAccessBoundaryManager.getCurrentCooldownMillis()); - } - - @Test - public void regionalAccessBoundary_shouldFailOpenWhenRefreshCannotBeStarted() throws IOException { - - // Use a simple AccessToken-based credential that won't try to refresh. - GoogleCredentials credentials = GoogleCredentials.create(new AccessToken("some-token", null)); - - // Should not throw, but just fail-open (no header). - Map> headers = credentials.getRequestMetadata(); - assertNull(headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); - } - - @Test - public void regionalAccessBoundary_deduplicationOfConcurrentRefreshes() - throws IOException, InterruptedException { - - MockTokenServerTransport transport = new MockTokenServerTransport(); - transport.setRegionalAccessBoundary( - new RegionalAccessBoundary("valid", Collections.singletonList("us-central1"), null)); - // Add delay to lookup to ensure threads overlap. - transport.setResponseDelayMillis(500); - - GoogleCredentials credentials = createTestCredentials(transport); - - // Fire multiple concurrent requests. - for (int i = 0; i < 10; i++) { - new Thread( - () -> { - try { - credentials.getRequestMetadata(); - } catch (IOException e) { - } - }) - .start(); - } - - waitForRegionalAccessBoundary(credentials); - - // Only ONE request should have been made to the lookup endpoint. - assertEquals(1, transport.getRegionalAccessBoundaryRequestCount()); - } - - @Test - public void regionalAccessBoundary_shouldSkipRefreshForRegionalEndpoints() throws IOException { - - MockTokenServerTransport transport = new MockTokenServerTransport(); - GoogleCredentials credentials = createTestCredentials(transport); - - URI regionalUri = URI.create("https://storage.us-central1.rep.googleapis.com/v1/b/foo"); - credentials.getRequestMetadata(regionalUri); - - // Should not have triggered any lookup. - assertEquals(0, transport.getRegionalAccessBoundaryRequestCount()); - } - - @Test - public void getRequestMetadata_ignoresRabRefreshException() throws IOException { - GoogleCredentials credentials = - new GoogleCredentials() { - @Override - public AccessToken refreshAccessToken() throws IOException { - return new AccessToken("token", null); - } - - @Override - void refreshRegionalAccessBoundaryIfExpired( - @Nullable URI uri, @Nullable AccessToken token) throws IOException { - throw new IOException("Simulated RAB failure"); - } - }; - - // This should not throw the IOException from refreshRegionalAccessBoundaryIfExpired - Map> metadata = - credentials.getRequestMetadata(URI.create("https://foo.com")); - assertTrue(metadata.containsKey("Authorization")); - } - - @Test - public void getRequestMetadataAsync_ignoresRabRefreshException() throws IOException { - GoogleCredentials credentials = - new GoogleCredentials() { - @Override - public AccessToken refreshAccessToken() throws IOException { - return new AccessToken("token", null); - } - - @Override - void refreshRegionalAccessBoundaryIfExpired( - @Nullable URI uri, @Nullable AccessToken token) throws IOException { - throw new IOException("Simulated RAB failure"); - } - }; - - java.util.concurrent.atomic.AtomicBoolean success = - new java.util.concurrent.atomic.AtomicBoolean(false); - credentials.getRequestMetadata( - URI.create("https://foo.com"), - Runnable::run, - new RequestMetadataCallback() { - @Override - public void onSuccess(Map> metadata) { - success.set(true); - } - - @Override - public void onFailure(Throwable exception) { - fail("Should not have failed"); - } - }); - - assertTrue(success.get()); - } - - private GoogleCredentials createTestCredentials(MockTokenServerTransport transport) - throws IOException { - transport.addServiceAccount(SA_CLIENT_EMAIL, ACCESS_TOKEN); - return new ServiceAccountCredentials.Builder() - .setClientEmail(SA_CLIENT_EMAIL) - .setPrivateKey(OAuth2Utils.privateKeyFromPkcs8(SA_PRIVATE_KEY_PKCS8)) - .setPrivateKeyId(SA_PRIVATE_KEY_ID) - .setHttpTransportFactory(() -> transport) - .setScopes(SCOPES) - .build(); - } - - private void waitForRegionalAccessBoundary(GoogleCredentials credentials) - throws InterruptedException { - long deadline = System.currentTimeMillis() + 5000; - while (credentials.getRegionalAccessBoundary() == null - && System.currentTimeMillis() < deadline) { - Thread.sleep(100); - } - if (credentials.getRegionalAccessBoundary() == null) { - Assertions.fail("Timed out waiting for regional access boundary refresh"); - } - } - - private void waitForCooldownActive(GoogleCredentials credentials) throws InterruptedException { - long deadline = System.currentTimeMillis() + 5000; - while (!credentials.regionalAccessBoundaryManager.isCooldownActive() - && System.currentTimeMillis() < deadline) { - Thread.sleep(100); - } - if (!credentials.regionalAccessBoundaryManager.isCooldownActive()) { - Assertions.fail("Timed out waiting for cooldown to become active"); - } - } - - private static class TestClock implements Clock { - private final AtomicLong currentTime = new AtomicLong(System.currentTimeMillis()); - - @Override - public long currentTimeMillis() { - return currentTime.get(); - } - - public void advanceTime(long millis) { - currentTime.addAndGet(millis); - } - } } diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/IdTokenCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/IdTokenCredentialsTest.java index 56ebcc3f273e..e3dcec4b520c 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/IdTokenCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/IdTokenCredentialsTest.java @@ -31,7 +31,6 @@ package com.google.auth.oauth2; -import static com.google.auth.oauth2.TestUtils.createDummyRab; import static org.junit.jupiter.api.Assertions.assertEquals; import java.io.IOException; @@ -47,7 +46,6 @@ void hashCode_equals() throws IOException { transportFactory.transport.setIdToken(ComputeEngineCredentialsTest.STANDARD_ID_TOKEN); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = @@ -74,7 +72,6 @@ void toString_equals() throws IOException { transportFactory.transport.setIdToken(ComputeEngineCredentialsTest.STANDARD_ID_TOKEN); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = @@ -102,7 +99,6 @@ void serialize() throws IOException, ClassNotFoundException { transportFactory.transport.setIdToken(ComputeEngineCredentialsTest.STANDARD_ID_TOKEN); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/IdentityPoolCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/IdentityPoolCredentialsTest.java index 3a5dcd8720e7..674d523e5090 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/IdentityPoolCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/IdentityPoolCredentialsTest.java @@ -34,15 +34,12 @@ import static com.google.auth.Credentials.GOOGLE_DEFAULT_UNIVERSE; import static com.google.auth.oauth2.MockExternalAccountCredentialsTransport.SERVICE_ACCOUNT_IMPERSONATION_URL; import static com.google.auth.oauth2.OAuth2Utils.JSON_FACTORY; -import static com.google.auth.oauth2.TestUtils.createDummyRab; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; -import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertSame; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; -import static org.junit.jupiter.api.Assertions.fail; import com.google.api.client.http.HttpTransport; import com.google.api.client.json.GenericJson; @@ -78,12 +75,6 @@ class IdentityPoolCredentialsTest extends BaseSerializationTest { private static final IdentityPoolSubjectTokenSupplier testProvider = (ExternalAccountSupplierContext context) -> "testSubjectToken"; - @org.junit.jupiter.api.BeforeEach - void setUp() {} - - @org.junit.jupiter.api.AfterEach - void tearDown() {} - @Test void createdScoped_clonedCredentialWithAddedScopes() { IdentityPoolCredentials credentials = @@ -94,12 +85,10 @@ void createdScoped_clonedCredentialWithAddedScopes() { .setClientSecret("clientSecret") .setUniverseDomain("universeDomain") .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); List newScopes = Arrays.asList("scope1", "scope2"); IdentityPoolCredentials newCredentials = credentials.createScoped(newScopes); - newCredentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(newCredentials.clock)); assertEquals(credentials.getAudience(), newCredentials.getAudience()); assertEquals(credentials.getSubjectTokenType(), newCredentials.getSubjectTokenType()); @@ -137,7 +126,6 @@ void retrieveSubjectToken_fileSourced() throws IOException { IdentityPoolCredentials.newBuilder(createBaseFileSourcedCredentials()) .setCredentialSource(credentialSource) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String subjectToken = credentials.retrieveSubjectToken(); @@ -179,7 +167,6 @@ void retrieveSubjectToken_fileSourcedWithJsonFormat() throws IOException { .setHttpTransportFactory(transportFactory) .setCredentialSource(credentialSource) .build(); - credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); String subjectToken = credential.retrieveSubjectToken(); @@ -218,7 +205,6 @@ void retrieveSubjectToken_noFile_throws() { IdentityPoolCredentials.newBuilder(createBaseFileSourcedCredentials()) .setCredentialSource(credentialSource) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IOException e = assertThrows(IOException.class, credentials::retrieveSubjectToken); assertEquals( @@ -237,7 +223,6 @@ void retrieveSubjectToken_urlSourced() throws IOException { .setCredentialSource( buildUrlBasedCredentialSource(transportFactory.transport.getMetadataUrl())) .build(); - credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); String subjectToken = credential.retrieveSubjectToken(); @@ -263,7 +248,6 @@ void retrieveSubjectToken_urlSourcedWithJsonFormat() throws IOException { .setHttpTransportFactory(transportFactory) .setCredentialSource(credentialSource) .build(); - credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); String subjectToken = credential.retrieveSubjectToken(); @@ -284,7 +268,6 @@ void retrieveSubjectToken_urlSourcedCredential_throws() { .setCredentialSource( buildUrlBasedCredentialSource(transportFactory.transport.getMetadataUrl())) .build(); - credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); IOException e = assertThrows(IOException.class, credential::retrieveSubjectToken); assertEquals( @@ -302,7 +285,6 @@ void retrieveSubjectToken_provider() throws IOException { .setCredentialSource(null) .setSubjectTokenSupplier(testProvider) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String subjectToken = credentials.retrieveSubjectToken(); @@ -322,7 +304,6 @@ void retrieveSubjectToken_providerThrowsError() { .setCredentialSource(null) .setSubjectTokenSupplier(errorProvider) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IOException e = assertThrows(IOException.class, credentials::retrieveSubjectToken); assertEquals("test", e.getMessage()); @@ -347,7 +328,6 @@ void retrieveSubjectToken_supplierPassesContext() throws IOException { .setCredentialSource(null) .setSubjectTokenSupplier(testSupplier) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); credentials.retrieveSubjectToken(); } @@ -369,7 +349,6 @@ void refreshAccessToken_withoutServiceAccountImpersonation() throws IOException .setCredentialSource( buildUrlBasedCredentialSource(transportFactory.transport.getMetadataUrl())) .build(); - credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); AccessToken accessToken = credential.refreshAccessToken(); @@ -396,7 +375,6 @@ void refreshAccessToken_internalOptionsSet() throws IOException { .setCredentialSource( buildUrlBasedCredentialSource(transportFactory.transport.getMetadataUrl())) .build(); - credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); AccessToken accessToken = credential.refreshAccessToken(); @@ -434,7 +412,6 @@ void refreshAccessToken_withServiceAccountImpersonation() throws IOException { .setCredentialSource( buildUrlBasedCredentialSource(transportFactory.transport.getMetadataUrl())) .build(); - credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); AccessToken accessToken = credential.refreshAccessToken(); @@ -468,7 +445,6 @@ void refreshAccessToken_withServiceAccountImpersonationOptions() throws IOExcept .setServiceAccountImpersonationOptions( ExternalAccountCredentialsTest.buildServiceAccountImpersonationOptions()) .build(); - credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); AccessToken accessToken = credential.refreshAccessToken(); @@ -505,7 +481,6 @@ void refreshAccessToken_Provider() throws IOException { .setTokenUrl(transportFactory.transport.getStsUrl()) .setHttpTransportFactory(transportFactory) .build(); - credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); AccessToken accessToken = credential.refreshAccessToken(); @@ -535,7 +510,6 @@ void refreshAccessToken_providerWithServiceAccountImpersonation() throws IOExcep .setTokenUrl(transportFactory.transport.getStsUrl()) .setHttpTransportFactory(transportFactory) .build(); - credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); AccessToken accessToken = credential.refreshAccessToken(); @@ -566,7 +540,6 @@ void refreshAccessToken_workforceWithServiceAccountImpersonation() throws IOExce buildUrlBasedCredentialSource(transportFactory.transport.getMetadataUrl())) .setWorkforcePoolUserProject("userProject") .build(); - credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); AccessToken accessToken = credential.refreshAccessToken(); @@ -604,7 +577,6 @@ void refreshAccessToken_workforceWithServiceAccountImpersonationOptions() throws .setServiceAccountImpersonationOptions( ExternalAccountCredentialsTest.buildServiceAccountImpersonationOptions()) .build(); - credential.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credential.clock)); AccessToken accessToken = credential.refreshAccessToken(); @@ -788,7 +760,6 @@ void builder_allFields() { .setScopes(scopes) .setUniverseDomain("universeDomain") .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertEquals("audience", credentials.getAudience()); assertEquals("subjectTokenType", credentials.getSubjectTokenType()); @@ -823,7 +794,6 @@ void builder_subjectTokenSupplier() { .setClientSecret("clientSecret") .setScopes(scopes) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertEquals(testProvider, credentials.getIdentityPoolSubjectTokenSupplier()); } @@ -875,7 +845,6 @@ void builder_emptyWorkforceUserProjectWithWorkforceAudience() { .setCredentialSource(createFileCredentialSource()) .setQuotaProjectId("quotaProjectId") .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertTrue(credentials.isWorkforcePoolConfiguration()); } @@ -930,7 +899,6 @@ void builder_missingUniverseDomain_defaults() { .setClientSecret("clientSecret") .setScopes(scopes) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertEquals("audience", credentials.getAudience()); assertEquals("subjectTokenType", credentials.getSubjectTokenType()); @@ -968,13 +936,9 @@ void newBuilder_allFields() { .setWorkforcePoolUserProject("workforcePoolUserProject") .setUniverseDomain("universeDomain") .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IdentityPoolCredentials newBuilderCreds = IdentityPoolCredentials.newBuilder(credentials).build(); - newBuilderCreds.regionalAccessBoundaryManager.setCachedRAB( - new RegionalAccessBoundary( - "dummy-locations", Arrays.asList("dummy-loc"), newBuilderCreds.clock)); assertEquals(credentials.getAudience(), newBuilderCreds.getAudience()); assertEquals(credentials.getSubjectTokenType(), newBuilderCreds.getSubjectTokenType()); assertEquals(credentials.getTokenUrl(), newBuilderCreds.getTokenUrl()); @@ -1013,13 +977,9 @@ void newBuilder_noUniverseDomain_defaults() { .setScopes(scopes) .setWorkforcePoolUserProject("workforcePoolUserProject") .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IdentityPoolCredentials newBuilderCreds = IdentityPoolCredentials.newBuilder(credentials).build(); - newBuilderCreds.regionalAccessBoundaryManager.setCachedRAB( - new RegionalAccessBoundary( - "dummy-locations", Arrays.asList("dummy-loc"), newBuilderCreds.clock)); assertEquals(credentials.getAudience(), newBuilderCreds.getAudience()); assertEquals(credentials.getSubjectTokenType(), newBuilderCreds.getSubjectTokenType()); assertEquals(credentials.getTokenUrl(), newBuilderCreds.getTokenUrl()); @@ -1048,9 +1008,6 @@ void serialize() throws IOException, ClassNotFoundException { .setClientSecret("clientSecret") .setUniverseDomain("universeDomain") .build(); - testCredentials.regionalAccessBoundaryManager.setCachedRAB( - new RegionalAccessBoundary( - "dummy-locations", Arrays.asList("dummy-loc"), testCredentials.clock)); IdentityPoolCredentials deserializedCredentials = serializeAndDeserialize(testCredentials); assertEquals(testCredentials, deserializedCredentials); @@ -1080,7 +1037,6 @@ void build_withCertificateSource_succeeds() throws Exception { .setSubjectTokenType("test-token-type") .setCredentialSource(credentialSource) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); // Verify successful creation and correct internal setup. assertNotNull(credentials, "Credentials should be successfully created"); @@ -1123,7 +1079,6 @@ void build_withDefaultCertificateConfig_success() .setSubjectTokenType("test-token-type") .setCredentialSource(credentialSource) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); // Verify successful creation and correct internal setup. assertNotNull(credentials, "Credentials should be successfully created"); @@ -1293,18 +1248,15 @@ private IdentityPoolCredentials createBaseFileSourcedCredentials() { IdentityPoolCredentialSource identityPoolCredentialSource = new IdentityPoolCredentialSource(fileCredentialSourceMap); - IdentityPoolCredentials credentials = - IdentityPoolCredentials.newBuilder() - .setHttpTransportFactory(OAuth2Utils.HTTP_TRANSPORT_FACTORY) - .setAudience( - "//iam.googleapis.com/projects/123/locations/global/workloadIdentityPools/pool/providers/provider") - .setSubjectTokenType("subjectTokenType") - .setTokenUrl(STS_URL) - .setTokenInfoUrl("tokenInfoUrl") - .setCredentialSource(identityPoolCredentialSource) - .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); - return credentials; + return IdentityPoolCredentials.newBuilder() + .setHttpTransportFactory(OAuth2Utils.HTTP_TRANSPORT_FACTORY) + .setAudience( + "//iam.googleapis.com/projects/123/locations/global/workloadIdentityPools/pool/providers/provider") + .setSubjectTokenType("subjectTokenType") + .setTokenUrl(STS_URL) + .setTokenInfoUrl("tokenInfoUrl") + .setCredentialSource(identityPoolCredentialSource) + .build(); } private IdentityPoolCredentialSource createFileCredentialSource() { @@ -1347,46 +1299,4 @@ void setShouldThrowOnGetKeyStore(boolean shouldThrow) { this.shouldThrowOnGetKeyStore = shouldThrow; } } - - @Test - public void testRefresh_regionalAccessBoundarySuccess() throws IOException, InterruptedException { - - MockExternalAccountCredentialsTransportFactory transportFactory = - new MockExternalAccountCredentialsTransportFactory(); - HttpTransportFactory testingHttpTransportFactory = transportFactory; - - IdentityPoolCredentials credentials = - IdentityPoolCredentials.newBuilder() - .setSubjectTokenSupplier(testProvider) - .setHttpTransportFactory(testingHttpTransportFactory) - .setAudience( - "//iam.googleapis.com/projects/12345/locations/global/workloadIdentityPools/pool/providers/provider") - .setSubjectTokenType("subjectTokenType") - .setTokenUrl(STS_URL) - .build(); - - // First call: initiates async refresh. - Map> headers = credentials.getRequestMetadata(); - assertNull(headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); - - waitForRegionalAccessBoundary(credentials); - - // Second call: should have header. - headers = credentials.getRequestMetadata(); - assertEquals( - headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY), - Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); - } - - private void waitForRegionalAccessBoundary(GoogleCredentials credentials) - throws InterruptedException { - long deadline = System.currentTimeMillis() + 5000; - while (credentials.getRegionalAccessBoundary() == null - && System.currentTimeMillis() < deadline) { - Thread.sleep(100); - } - if (credentials.getRegionalAccessBoundary() == null) { - fail("Timed out waiting for regional access boundary refresh"); - } - } } diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ImpersonatedCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ImpersonatedCredentialsTest.java index 3664fb22c2ff..044aa0ce6755 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ImpersonatedCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ImpersonatedCredentialsTest.java @@ -31,8 +31,6 @@ package com.google.auth.oauth2; -import static com.google.auth.oauth2.RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY; -import static com.google.auth.oauth2.TestUtils.createDummyRab; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; @@ -42,7 +40,6 @@ import static org.junit.jupiter.api.Assertions.assertSame; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; -import static org.junit.jupiter.api.Assertions.fail; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; @@ -72,7 +69,6 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.Calendar; -import java.util.Collections; import java.util.Date; import java.util.List; import java.util.Map; @@ -149,11 +145,6 @@ class ImpersonatedCredentialsTest extends BaseSerializationTest { private static final String REFRESH_TOKEN = "dasdfasdffa4ffdfadgyjirasdfadsft"; public static final List DELEGATES = Arrays.asList("sa1@developer.gserviceaccount.com", "sa2@developer.gserviceaccount.com"); - public static final RegionalAccessBoundary REGIONAL_ACCESS_BOUNDARY = - new RegionalAccessBoundary( - TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION, - TestUtils.REGIONAL_ACCESS_BOUNDARY_LOCATIONS, - null); private GoogleCredentials sourceCredentials; private MockIAMCredentialsServiceTransportFactory mockTransportFactory; @@ -176,10 +167,7 @@ static GoogleCredentials getSourceCredentials() throws IOException { .setProjectId(PROJECT_ID) .setHttpTransportFactory(transportFactory) .build(); - sourceCredentials.regionalAccessBoundaryManager.setCachedRAB( - createDummyRab(sourceCredentials.clock)); transportFactory.transport.addServiceAccount(SA_CLIENT_EMAIL, ACCESS_TOKEN); - transportFactory.transport.setRegionalAccessBoundary(REGIONAL_ACCESS_BOUNDARY); return sourceCredentials; } @@ -595,8 +583,6 @@ void getRequestMetadata_withQuotaProjectId() throws IOException, IllegalStateExc VALID_LIFETIME, mockTransportFactory, QUOTA_PROJECT_ID); - targetCredentials.regionalAccessBoundaryManager.setCachedRAB( - createDummyRab(targetCredentials.clock)); Map> metadata = targetCredentials.getRequestMetadata(); assertTrue(metadata.containsKey("x-goog-user-project")); @@ -619,8 +605,6 @@ void getRequestMetadata_withoutQuotaProjectId() throws IOException, IllegalState IMMUTABLE_SCOPES_LIST, VALID_LIFETIME, mockTransportFactory); - targetCredentials.regionalAccessBoundaryManager.setCachedRAB( - createDummyRab(targetCredentials.clock)); Map> metadata = targetCredentials.getRequestMetadata(); assertFalse(metadata.containsKey("x-goog-user-project")); @@ -1276,54 +1260,6 @@ void refreshAccessToken_afterSerialization_success() throws IOException, ClassNo assertEquals(ACCESS_TOKEN, token.getTokenValue()); } - @Test - void refresh_regionalAccessBoundarySuccess() throws IOException, InterruptedException { - - // Mock regional access boundary response - RegionalAccessBoundary regionalAccessBoundary = REGIONAL_ACCESS_BOUNDARY; - - mockTransportFactory.getTransport().setRegionalAccessBoundary(regionalAccessBoundary); - mockTransportFactory.getTransport().setTargetPrincipal(IMPERSONATED_CLIENT_EMAIL); - mockTransportFactory.getTransport().setAccessToken(ACCESS_TOKEN); - mockTransportFactory.getTransport().setExpireTime(getDefaultExpireTime()); - mockTransportFactory - .getTransport() - .addStatusCodeAndMessage(HttpStatusCodes.STATUS_CODE_OK, "", true); - - ImpersonatedCredentials targetCredentials = - ImpersonatedCredentials.create( - sourceCredentials, - IMPERSONATED_CLIENT_EMAIL, - null, - IMMUTABLE_SCOPES_LIST, - VALID_LIFETIME, - mockTransportFactory); - - // First call: initiates async refresh. - Map> headers = targetCredentials.getRequestMetadata(); - assertNull(headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); - - waitForRegionalAccessBoundary(targetCredentials); - - // Second call: should have header. - headers = targetCredentials.getRequestMetadata(); - assertEquals( - headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY), - Collections.singletonList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); - } - - private void waitForRegionalAccessBoundary(GoogleCredentials credentials) - throws InterruptedException { - long deadline = System.currentTimeMillis() + 5000; - while (credentials.getRegionalAccessBoundary() == null - && System.currentTimeMillis() < deadline) { - Thread.sleep(100); - } - if (credentials.getRegionalAccessBoundary() == null) { - fail("Timed out waiting for regional access boundary refresh"); - } - } - public static String getDefaultExpireTime() { return Instant.now().plusSeconds(VALID_LIFETIME).truncatedTo(ChronoUnit.SECONDS).toString(); } diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/LoggingTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/LoggingTest.java index 92ea38cbcf7d..524a312ce0c1 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/LoggingTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/LoggingTest.java @@ -43,7 +43,6 @@ import static com.google.auth.oauth2.ServiceAccountCredentialsTest.DEFAULT_ID_TOKEN; import static com.google.auth.oauth2.ServiceAccountCredentialsTest.SCOPES; import static com.google.auth.oauth2.ServiceAccountCredentialsTest.createDefaultBuilder; -import static com.google.auth.oauth2.TestUtils.createDummyRab; import static com.google.auth.oauth2.UserCredentialsTest.CLIENT_ID; import static com.google.auth.oauth2.UserCredentialsTest.CLIENT_SECRET; import static com.google.auth.oauth2.UserCredentialsTest.REFRESH_TOKEN; @@ -95,16 +94,12 @@ static void setup() { LoggingUtils.setEnvironmentProvider(testEnvironmentProvider); } - @org.junit.jupiter.api.BeforeEach - void setUp() {} - @Test void userCredentials_getRequestMetadata_fromRefreshToken_hasAccessToken() throws IOException { TestAppender testAppender = setupTestLogger(UserCredentials.class); MockTokenServerTransportFactory transportFactory = new MockTokenServerTransportFactory(); transportFactory.transport.addClient(CLIENT_ID, CLIENT_SECRET); transportFactory.transport.addRefreshToken(REFRESH_TOKEN, ACCESS_TOKEN); - UserCredentials userCredentials = UserCredentials.newBuilder() .setClientId(CLIENT_ID) @@ -168,7 +163,6 @@ void serviceAccountCredentials_getRequestMetadata_hasAccessToken() throws IOExce ServiceAccountCredentialsTest.createDefaultBuilderWithToken(ACCESS_TOKEN) .setScopes(SCOPES) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); TestUtils.assertContainsBearerToken(metadata, ACCESS_TOKEN); @@ -218,14 +212,12 @@ void serviceAccountCredentials_idTokenWithAudience_iamFlow_targetAudienceMatches transportFactory.getTransport().setTargetPrincipal(CLIENT_EMAIL); transportFactory.getTransport().setIdToken(DEFAULT_ID_TOKEN); transportFactory.getTransport().addStatusCodeAndMessage(HttpStatusCodes.STATUS_CODE_OK, ""); - ServiceAccountCredentials credentials = createDefaultBuilder() .setScopes(SCOPES) .setHttpTransportFactory(transportFactory) .setUniverseDomain(nonGDU) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = @@ -447,12 +439,11 @@ void getRequestMetadata_hasAccessToken() throws IOException { transportFactory.transport.setServiceAccountEmail("SA_CLIENT_EMAIL"); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); TestUtils.assertContainsBearerToken(metadata, ACCESS_TOKEN); - assertEquals(5, testAppender.events.size()); + assertEquals(3, testAppender.events.size()); ILoggingEvent accessTokenRequest = testAppender.events.get(0); assertEquals("Sending request to refresh access token", accessTokenRequest.getMessage()); @@ -489,7 +480,6 @@ void idTokenWithAudience_full() throws IOException { MockMetadataServerTransportFactory transportFactory = new MockMetadataServerTransportFactory(); ComputeEngineCredentials credentials = ComputeEngineCredentials.newBuilder().setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = @@ -544,7 +534,6 @@ void serviceAccountCredentials_exchangeToken_masksSensitiveTokens() throws IOExc ServiceAccountCredentialsTest.createDefaultBuilderWithToken(ACCESS_TOKEN) .setScopes(SCOPES) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); TestUtils.assertContainsBearerToken(metadata, ACCESS_TOKEN); diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockExternalAccountCredentialsTransport.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockExternalAccountCredentialsTransport.java index c53eda5b2bd5..7719b08d2e7b 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockExternalAccountCredentialsTransport.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockExternalAccountCredentialsTransport.java @@ -50,7 +50,6 @@ import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Collections; -import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Queue; @@ -69,7 +68,6 @@ public class MockExternalAccountCredentialsTransport extends MockHttpTransport { private static final String AWS_IMDSV2_SESSION_TOKEN_URL = "https://169.254.169.254/imdsv2"; private static final String METADATA_SERVER_URL = "https://www.metadata.google.com"; private static final String STS_URL = "https://sts.googleapis.com/v1/token"; - private static final String REGIONAL_ACCESS_BOUNDARY_URL_END = "/allowedLocations"; private static final String SUBJECT_TOKEN = "subjectToken"; private static final String TOKEN_TYPE = "Bearer"; @@ -94,11 +92,6 @@ public class MockExternalAccountCredentialsTransport extends MockHttpTransport { private String expireTime; private String metadataServerContentType; private String stsContent; - private final Map regionalAccessBoundaries = new HashMap<>(); - - public void addRegionalAccessBoundary(String url, RegionalAccessBoundary regionalAccessBoundary) { - this.regionalAccessBoundaries.put(url, regionalAccessBoundary); - } public void addResponseErrorSequence(IOException... errors) { Collections.addAll(responseErrorSequence, errors); @@ -203,26 +196,6 @@ public LowLevelHttpResponse execute() throws IOException { } if (url.contains(IAM_ENDPOINT)) { - - if (url.endsWith(REGIONAL_ACCESS_BOUNDARY_URL_END)) { - RegionalAccessBoundary rab = regionalAccessBoundaries.get(url); - if (rab == null) { - rab = - new RegionalAccessBoundary( - TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION, - TestUtils.REGIONAL_ACCESS_BOUNDARY_LOCATIONS, - null); - } - GenericJson responseJson = new GenericJson(); - responseJson.setFactory(OAuth2Utils.JSON_FACTORY); - responseJson.put("encodedLocations", rab.getEncodedLocations()); - responseJson.put("locations", rab.getLocations()); - String content = responseJson.toPrettyString(); - return new MockLowLevelHttpResponse() - .setContentType(Json.MEDIA_TYPE) - .setContent(content); - } - GenericJson query = OAuth2Utils.JSON_FACTORY .createJsonParser(getContentAsString()) @@ -247,9 +220,7 @@ public LowLevelHttpResponse execute() throws IOException { } }; - if (url == null || !url.contains("allowedLocations")) { - this.requests.add(request); - } + this.requests.add(request); return request; } diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockIAMCredentialsServiceTransport.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockIAMCredentialsServiceTransport.java index 5346f4fdba3d..cbd57d115afe 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockIAMCredentialsServiceTransport.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockIAMCredentialsServiceTransport.java @@ -80,8 +80,6 @@ public ServerResponse(int statusCode, String response, boolean repeatServerRespo private String universeDomain; - private RegionalAccessBoundary regionalAccessBoundary; - private MockLowLevelHttpRequest request; MockIAMCredentialsServiceTransport(String universeDomain) { @@ -134,10 +132,6 @@ public void setAccessTokenEndpoint(String accessTokenEndpoint) { this.iamAccessTokenEndpoint = accessTokenEndpoint; } - public void setRegionalAccessBoundary(RegionalAccessBoundary regionalAccessBoundary) { - this.regionalAccessBoundary = regionalAccessBoundary; - } - public MockLowLevelHttpRequest getRequest() { return request; } @@ -227,25 +221,6 @@ public LowLevelHttpResponse execute() throws IOException { .setContent(tokenContent); } }; - } else if (url.endsWith("/allowedLocations")) { - request = - new MockLowLevelHttpRequest(url) { - @Override - public LowLevelHttpResponse execute() throws IOException { - if (regionalAccessBoundary == null) { - return new MockLowLevelHttpResponse().setStatusCode(404); - } - GenericJson responseJson = new GenericJson(); - responseJson.setFactory(OAuth2Utils.JSON_FACTORY); - responseJson.put("encodedLocations", regionalAccessBoundary.getEncodedLocations()); - responseJson.put("locations", regionalAccessBoundary.getLocations()); - String content = responseJson.toPrettyString(); - return new MockLowLevelHttpResponse() - .setContentType(Json.MEDIA_TYPE) - .setContent(content); - } - }; - return request; } else { return super.buildRequest(method, url); } diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java index 92b24d60fd53..1b218b73ef45 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockMetadataServerTransport.java @@ -72,9 +72,6 @@ public class MockMetadataServerTransport extends MockHttpTransport { private boolean emptyContent; private MockLowLevelHttpRequest request; - private RegionalAccessBoundary regionalAccessBoundary; - private IOException lookupError; - public MockMetadataServerTransport() {} public MockMetadataServerTransport(String accessToken) { @@ -122,14 +119,6 @@ public void setEmptyContent(boolean emptyContent) { this.emptyContent = emptyContent; } - public void setRegionalAccessBoundary(RegionalAccessBoundary regionalAccessBoundary) { - this.regionalAccessBoundary = regionalAccessBoundary; - } - - public void setLookupError(IOException lookupError) { - this.lookupError = lookupError; - } - public MockLowLevelHttpRequest getRequest() { return request; } @@ -150,8 +139,6 @@ public LowLevelHttpRequest buildRequest(String method, String url) throws IOExce return this.request; } else if (isMtlsConfigRequestUrl(url)) { return getMockRequestForMtlsConfig(url); - } else if (isIamLookupUrl(url)) { - return getMockRequestForRegionalAccessBoundaryLookup(url); } this.request = new MockLowLevelHttpRequest(url) { @@ -226,7 +213,7 @@ public LowLevelHttpResponse execute() throws IOException { refreshContents.put( "access_token", scopesToAccessToken.get("[" + urlParsed.get(1) + "]")); } - refreshContents.put("expires_in", 3600); + refreshContents.put("expires_in", 3600000); refreshContents.put("token_type", "Bearer"); String refreshText = refreshContents.toPrettyString(); @@ -359,32 +346,4 @@ protected boolean isMtlsConfigRequestUrl(String url) { ComputeEngineCredentials.getMetadataServerUrl() + SecureSessionAgent.S2A_CONFIG_ENDPOINT_POSTFIX); } - - private MockLowLevelHttpRequest getMockRequestForRegionalAccessBoundaryLookup(String url) { - return new MockLowLevelHttpRequest(url) { - @Override - public LowLevelHttpResponse execute() throws IOException { - if (lookupError != null) { - throw lookupError; - } - if (regionalAccessBoundary == null) { - return new MockLowLevelHttpResponse().setStatusCode(404); - } - GenericJson responseJson = new GenericJson(); - responseJson.setFactory(OAuth2Utils.JSON_FACTORY); - responseJson.put("encodedLocations", regionalAccessBoundary.getEncodedLocations()); - responseJson.put("locations", regionalAccessBoundary.getLocations()); - String content = responseJson.toPrettyString(); - return new MockLowLevelHttpResponse().setContentType(Json.MEDIA_TYPE).setContent(content); - } - }; - } - - protected boolean isIamLookupUrl(String url) { - // Mocking call to the /allowedLocations endpoint for regional access boundary refresh. - // For testing convenience, this mock transport handles - // the /allowedLocations endpoint. The actual server for this endpoint - // will be the IAM Credentials API. - return url.endsWith("/allowedLocations"); - } } diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockStsTransport.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockStsTransport.java index 24566a0e5ca3..cdb0a068e2d0 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockStsTransport.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockStsTransport.java @@ -62,8 +62,6 @@ public final class MockStsTransport extends MockHttpTransport { private static final String ISSUED_TOKEN_TYPE = "urn:ietf:params:oauth:token-type:access_token"; private static final String VALID_STS_PATTERN = "https:\\/\\/sts.[a-z-_\\.]+\\/v1\\/(token|oauthtoken)"; - private static final String VALID_REGIONAL_ACCESS_BOUNDARY_PATTERN = - "https:\\/\\/iam.[a-z-_\\.]+\\/v1\\/.*\\/allowedLocations"; private static final String ACCESS_TOKEN = "accessToken"; private static final String TOKEN_TYPE = "Bearer"; private static final Long EXPIRES_IN = 3600L; @@ -101,23 +99,6 @@ public LowLevelHttpRequest buildRequest(final String method, final String url) { new MockLowLevelHttpRequest(url) { @Override public LowLevelHttpResponse execute() throws IOException { - // Mocking call to refresh regional access boundaries. - // The lookup endpoint is located in the IAM server. - Matcher regionalAccessBoundaryMatcher = - Pattern.compile(VALID_REGIONAL_ACCESS_BOUNDARY_PATTERN).matcher(url); - if (regionalAccessBoundaryMatcher.matches()) { - // Mocking call to the /allowedLocations endpoint for regional access boundary - // refresh. - // For testing convenience, this mock transport handles - // the /allowedLocations endpoint. - GenericJson response = new GenericJson(); - response.put("locations", TestUtils.REGIONAL_ACCESS_BOUNDARY_LOCATIONS); - response.put("encodedLocations", TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION); - return new MockLowLevelHttpResponse() - .setContentType(Json.MEDIA_TYPE) - .setContent(OAuth2Utils.JSON_FACTORY.toString(response)); - } - // Environment version is prefixed by "aws". e.g. "aws1". Matcher matcher = Pattern.compile(VALID_STS_PATTERN).matcher(url); if (!matcher.matches()) { diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockTokenServerTransport.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockTokenServerTransport.java index 62f31e256d24..5a6cd2e5d1a8 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockTokenServerTransport.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/MockTokenServerTransport.java @@ -76,21 +76,6 @@ public class MockTokenServerTransport extends MockHttpTransport { private int expiresInSeconds = 3600; private MockLowLevelHttpRequest request; private PKCEProvider pkceProvider; - private RegionalAccessBoundary regionalAccessBoundary; - private int regionalAccessBoundaryRequestCount = 0; - private int responseDelayMillis = 0; - - public void setRegionalAccessBoundary(RegionalAccessBoundary regionalAccessBoundary) { - this.regionalAccessBoundary = regionalAccessBoundary; - } - - public int getRegionalAccessBoundaryRequestCount() { - return regionalAccessBoundaryRequestCount; - } - - public void setResponseDelayMillis(int responseDelayMillis) { - this.responseDelayMillis = responseDelayMillis; - } public MockTokenServerTransport() {} @@ -186,40 +171,6 @@ public LowLevelHttpRequest buildRequest(String method, String url) throws IOExce int questionMarkPos = url.indexOf('?'); final String urlWithoutQuery = (questionMarkPos > 0) ? url.substring(0, questionMarkPos) : url; - if (urlWithoutQuery.endsWith("/allowedLocations")) { - // Mocking call to the /allowedLocations endpoint for regional access boundary refresh. - // For testing convenience, this mock transport handles - // the /allowedLocations endpoint. The actual server for this endpoint - // will be the IAM Credentials API. - request = - new MockLowLevelHttpRequest(url) { - @Override - public LowLevelHttpResponse execute() throws IOException { - regionalAccessBoundaryRequestCount++; - if (responseDelayMillis > 0) { - try { - Thread.sleep(responseDelayMillis); - } catch (InterruptedException e) { - Thread.currentThread().interrupt(); - } - } - RegionalAccessBoundary rab = regionalAccessBoundary; - if (rab == null) { - return new MockLowLevelHttpResponse().setStatusCode(404); - } - GenericJson responseJson = new GenericJson(); - responseJson.setFactory(JSON_FACTORY); - responseJson.put("encodedLocations", rab.getEncodedLocations()); - responseJson.put("locations", rab.getLocations()); - String content = responseJson.toPrettyString(); - return new MockLowLevelHttpResponse() - .setContentType(Json.MEDIA_TYPE) - .setContent(content); - } - }; - return request; - } - if (!responseSequence.isEmpty()) { request = new MockLowLevelHttpRequest(url) { diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/PluggableAuthCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/PluggableAuthCredentialsTest.java index 8576ffe38e3a..094b21f9dbb2 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/PluggableAuthCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/PluggableAuthCredentialsTest.java @@ -36,7 +36,6 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; -import static org.junit.jupiter.api.Assertions.fail; import com.google.api.client.http.HttpTransport; import com.google.api.client.json.GenericJson; @@ -57,10 +56,6 @@ /** Tests for {@link PluggableAuthCredentials}. */ class PluggableAuthCredentialsTest extends BaseSerializationTest { - - @org.junit.jupiter.api.AfterEach - void tearDown() {} - // The default timeout for waiting for the executable to finish (30 seconds). private static final int DEFAULT_EXECUTABLE_TIMEOUT_MS = 30 * 1000; // The minimum timeout for waiting for the executable to finish (5 seconds). @@ -606,49 +601,6 @@ void serialize() { assertThrows(NotSerializableException.class, () -> serializeAndDeserialize(testCredentials)); } - @Test - public void testRefresh_regionalAccessBoundarySuccess() throws IOException, InterruptedException { - - MockExternalAccountCredentialsTransportFactory transportFactory = - new MockExternalAccountCredentialsTransportFactory(); - transportFactory.transport.setExpireTime(TestUtils.getDefaultExpireTime()); - - PluggableAuthCredentials credentials = - PluggableAuthCredentials.newBuilder() - .setHttpTransportFactory(transportFactory) - .setAudience( - "//iam.googleapis.com/projects/12345/locations/global/workloadIdentityPools/pool/providers/provider") - .setSubjectTokenType("subjectTokenType") - .setTokenUrl(transportFactory.transport.getStsUrl()) - .setCredentialSource(buildCredentialSource()) - .setExecutableHandler(options -> "pluggableAuthToken") - .build(); - - // First call: initiates async refresh. - Map> headers = credentials.getRequestMetadata(); - assertNull(headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY)); - - waitForRegionalAccessBoundary(credentials); - - // Second call: should have header. - headers = credentials.getRequestMetadata(); - assertEquals( - headers.get(RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY), - Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); - } - - private void waitForRegionalAccessBoundary(GoogleCredentials credentials) - throws InterruptedException { - long deadline = System.currentTimeMillis() + 5000; - while (credentials.getRegionalAccessBoundary() == null - && System.currentTimeMillis() < deadline) { - Thread.sleep(100); - } - if (credentials.getRegionalAccessBoundary() == null) { - fail("Timed out waiting for regional access boundary refresh"); - } - } - private static PluggableAuthCredentialSource buildCredentialSource() { return buildCredentialSource("command", null, null); } diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/RegionalAccessBoundaryTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/RegionalAccessBoundaryTest.java deleted file mode 100644 index 5664582ef059..000000000000 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/RegionalAccessBoundaryTest.java +++ /dev/null @@ -1,337 +0,0 @@ -/* - * Copyright 2026, Google LLC - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are - * met: - * - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above - * copyright notice, this list of conditions and the following disclaimer - * in the documentation and/or other materials provided with the - * distribution. - * - * * Neither the name of Google LLC nor the names of its - * contributors may be used to endorse or promote products derived from - * this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS - * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT - * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR - * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT - * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -package com.google.auth.oauth2; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertFalse; -import static org.junit.jupiter.api.Assertions.assertTrue; - -import com.google.api.client.testing.http.MockHttpTransport; -import com.google.api.client.testing.http.MockLowLevelHttpResponse; -import com.google.api.client.util.Clock; -import com.google.auth.http.HttpTransportFactory; -import java.io.ByteArrayInputStream; -import java.io.ByteArrayOutputStream; -import java.io.IOException; -import java.io.ObjectInputStream; -import java.io.ObjectOutputStream; -import java.util.Collections; -import java.util.concurrent.CountDownLatch; -import java.util.concurrent.atomic.AtomicLong; -import org.junit.jupiter.api.AfterEach; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Test; - -public class RegionalAccessBoundaryTest { - - private static final long TTL = RegionalAccessBoundary.TTL_MILLIS; - private static final long REFRESH_THRESHOLD = RegionalAccessBoundary.REFRESH_THRESHOLD_MILLIS; - - private TestClock testClock; - - @BeforeEach - public void setUp() { - testClock = new TestClock(); - } - - @AfterEach - public void tearDown() {} - - @Test - public void testIsExpired() { - long now = testClock.currentTimeMillis(); - RegionalAccessBoundary rab = - new RegionalAccessBoundary("encoded", Collections.singletonList("loc"), now, testClock); - - assertFalse(rab.isExpired()); - - testClock.set(now + TTL - 1); - assertFalse(rab.isExpired()); - - testClock.set(now + TTL + 1); - assertTrue(rab.isExpired()); - } - - @Test - public void testShouldRefresh() { - long now = testClock.currentTimeMillis(); - RegionalAccessBoundary rab = - new RegionalAccessBoundary("encoded", Collections.singletonList("loc"), now, testClock); - - // Initial state: fresh - assertFalse(rab.shouldRefresh()); - - // Just before threshold - testClock.set(now + TTL - REFRESH_THRESHOLD - 1); - assertFalse(rab.shouldRefresh()); - - // At threshold - testClock.set(now + TTL - REFRESH_THRESHOLD + 1); - assertTrue(rab.shouldRefresh()); - - // Still not expired - assertFalse(rab.isExpired()); - } - - @Test - public void testSerialization() throws Exception { - long now = testClock.currentTimeMillis(); - RegionalAccessBoundary rab = - new RegionalAccessBoundary("encoded", Collections.singletonList("loc"), now, testClock); - - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - ObjectOutputStream oos = new ObjectOutputStream(baos); - oos.writeObject(rab); - oos.close(); - - ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); - ObjectInputStream ois = new ObjectInputStream(bais); - RegionalAccessBoundary deserializedRab = (RegionalAccessBoundary) ois.readObject(); - ois.close(); - - assertEquals("encoded", deserializedRab.getEncodedLocations()); - assertEquals(1, deserializedRab.getLocations().size()); - assertEquals("loc", deserializedRab.getLocations().get(0)); - // The transient clock field should be restored to Clock.SYSTEM upon deserialization, - // thereby avoiding a NullPointerException when checking expiration. - assertFalse(deserializedRab.isExpired()); - } - - @Test - public void testRefreshClosesResponse() throws Exception { - final String url = "https://example.com/rab"; - final AccessToken token = - new AccessToken("token", new java.util.Date(System.currentTimeMillis() + 3600000L)); - - TrackingMockLowLevelHttpResponse mockResponse = new TrackingMockLowLevelHttpResponse(); - mockResponse.setContentType("application/json"); - mockResponse.setContent("{\"encodedLocations\": \"encoded\", \"locations\": [\"loc\"]}"); - - MockHttpTransport transport = - new MockHttpTransport.Builder().setLowLevelHttpResponse(mockResponse).build(); - HttpTransportFactory transportFactory = () -> transport; - - RegionalAccessBoundary rab = - RegionalAccessBoundary.refresh(transportFactory, url, token, testClock, 1000); - - assertEquals("encoded", rab.getEncodedLocations()); - assertTrue(mockResponse.isDisconnected(), "Response should have been disconnected"); - } - - @Test - public void testManagerTriggersRefreshInGracePeriod() throws InterruptedException { - final String url = - "https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/default:allowedLocations"; - final AccessToken token = - new AccessToken( - "token", new java.util.Date(System.currentTimeMillis() + 10 * 3600000L)); // - - // Mock transport to return a new RAB - final String newEncoded = "new-encoded"; - MockHttpTransport transport = - new MockHttpTransport.Builder() - .setLowLevelHttpResponse( - new MockLowLevelHttpResponse() - .setContentType("application/json") - .setContent( - "{\"encodedLocations\": \"" - + newEncoded - + "\", \"locations\": [\"new-loc\"]}")) - .build(); - HttpTransportFactory transportFactory = () -> transport; - RegionalAccessBoundaryProvider provider = () -> url; - - RegionalAccessBoundaryManager manager = new RegionalAccessBoundaryManager(testClock); - - // 1. Let's first get a RAB into the cache - manager.triggerAsyncRefresh(transportFactory, provider, token); - - // Wait for it to be cached - int retries = 0; - while (manager.getCachedRAB() == null && retries < 50) { - Thread.sleep(50); - retries++; - } - assertEquals(newEncoded, manager.getCachedRAB().getEncodedLocations()); - - // 2. Advance clock to grace period - testClock.set(testClock.currentTimeMillis() + TTL - REFRESH_THRESHOLD + 1000); - - assertTrue(manager.getCachedRAB().shouldRefresh()); - assertFalse(manager.getCachedRAB().isExpired()); - - // 3. Prepare mock for SECOND refresh - final String newerEncoded = "newer-encoded"; - MockHttpTransport transport2 = - new MockHttpTransport.Builder() - .setLowLevelHttpResponse( - new MockLowLevelHttpResponse() - .setContentType("application/json") - .setContent( - "{\"encodedLocations\": \"" - + newerEncoded - + "\", \"locations\": [\"newer-loc\"]}")) - .build(); - HttpTransportFactory transportFactory2 = () -> transport2; - - // 4. Trigger refresh - should start because we are in grace period - manager.triggerAsyncRefresh(transportFactory2, provider, token); - - // 5. Wait for background refresh to complete - // We expect the cached RAB to eventually change to newerEncoded - retries = 0; - RegionalAccessBoundary resultRab = null; - while (retries < 100) { - resultRab = manager.getCachedRAB(); - if (resultRab != null && newerEncoded.equals(resultRab.getEncodedLocations())) { - break; - } - Thread.sleep(50); - retries++; - } - - assertTrue( - resultRab != null && newerEncoded.equals(resultRab.getEncodedLocations()), - "Refresh should have completed and updated the cache within 5 seconds"); - assertEquals(newerEncoded, resultRab.getEncodedLocations()); - } - - @Test - public void testExecutorQueueCapacityLimit() throws Exception { - final String url = "https://example.com/rab"; - final AccessToken token = - new AccessToken("token", new java.util.Date(System.currentTimeMillis() + 3600000L)); - RegionalAccessBoundaryProvider provider = () -> url; - - int poolSize = 5; - int queueCapacity = 100; - int totalCapacity = poolSize + queueCapacity; - - java.util.concurrent.ThreadPoolExecutor testExecutor = - new java.util.concurrent.ThreadPoolExecutor( - poolSize, - poolSize, - 1, - java.util.concurrent.TimeUnit.HOURS, - new java.util.concurrent.LinkedBlockingQueue<>(queueCapacity), - r -> { - Thread t = new Thread(r, "test-RAB-refresh"); - t.setDaemon(true); - return t; - }); - - CountDownLatch latch = new CountDownLatch(1); - - java.io.InputStream blockingStream = - new java.io.InputStream() { - private final java.io.InputStream delegate = - new ByteArrayInputStream( - "{\"encodedLocations\": \"encoded\", \"locations\": [\"loc\"]}".getBytes()); - private boolean blocked = false; - - @Override - public int read() throws java.io.IOException { - if (!blocked) { - try { - latch.await(); - } catch (InterruptedException e) { - Thread.currentThread().interrupt(); - } - blocked = true; - } - return delegate.read(); - } - }; - - MockHttpTransport transport = - new MockHttpTransport.Builder() - .setLowLevelHttpResponse( - new MockLowLevelHttpResponse() - .setContent(blockingStream) - .setContentType("application/json")) - .build(); - HttpTransportFactory transportFactory = () -> transport; - - RegionalAccessBoundaryManager[] managers = new RegionalAccessBoundaryManager[totalCapacity]; - for (int i = 0; i < totalCapacity; i++) { - managers[i] = - new RegionalAccessBoundaryManager( - testClock, - RegionalAccessBoundaryManager.DEFAULT_MAX_RETRY_ELAPSED_TIME_MILLIS, - testExecutor); - managers[i].triggerAsyncRefresh(transportFactory, provider, token); - } - - RegionalAccessBoundaryManager extraManager = - new RegionalAccessBoundaryManager( - testClock, - RegionalAccessBoundaryManager.DEFAULT_MAX_RETRY_ELAPSED_TIME_MILLIS, - testExecutor); - assertFalse(extraManager.isCooldownActive()); - - extraManager.triggerAsyncRefresh(transportFactory, provider, token); - - assertFalse( - extraManager.isCooldownActive(), - "106th task should NOT have entered cooldown on scheduling failure"); - - latch.countDown(); - testExecutor.shutdownNow(); - } - - private static class TestClock implements Clock { - private final AtomicLong currentTime = new AtomicLong(System.currentTimeMillis()); - - @Override - public long currentTimeMillis() { - return currentTime.get(); - } - - public void set(long millis) { - currentTime.set(millis); - } - } - - private static class TrackingMockLowLevelHttpResponse extends MockLowLevelHttpResponse { - private boolean disconnected = false; - - @Override - public void disconnect() throws IOException { - super.disconnect(); - disconnected = true; - } - - public boolean isDisconnected() { - return disconnected; - } - } -} diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java index e1582ebe2b3a..6ee26e3338a0 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/ServiceAccountCredentialsTest.java @@ -31,8 +31,6 @@ package com.google.auth.oauth2; -import static com.google.auth.oauth2.RegionalAccessBoundary.X_ALLOWED_LOCATIONS_HEADER_KEY; -import static com.google.auth.oauth2.TestUtils.createDummyRab; import static org.junit.jupiter.api.Assertions.assertArrayEquals; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertEquals; @@ -157,12 +155,6 @@ static ServiceAccountCredentials.Builder createDefaultBuilder() throws IOExcepti return createDefaultBuilderWithKey(privateKey); } - @org.junit.jupiter.api.BeforeEach - void setUp() {} - - @org.junit.jupiter.api.AfterEach - void tearDown() {} - @Test void setLifetime() throws IOException { ServiceAccountCredentials.Builder builder = createDefaultBuilder(); @@ -367,7 +359,6 @@ void createAssertionForIdToken_incorrect() throws IOException { @Test void createdScoped_withAud_noUniverse_jwtWithScopesDisabled_accessToken() throws IOException { GoogleCredentials credentials = createDefaultBuilderWithToken(ACCESS_TOKEN).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); // No aud, no scopes gives an exception. IOException exception = @@ -377,8 +368,6 @@ void createdScoped_withAud_noUniverse_jwtWithScopesDisabled_accessToken() throws "expected to fail with exception"); GoogleCredentials scopedCredentials = credentials.createScoped(SCOPES); - scopedCredentials.regionalAccessBoundaryManager.setCachedRAB( - createDummyRab(scopedCredentials.clock)); assertEquals(false, credentials.isExplicitUniverseDomain()); assertEquals(Credentials.GOOGLE_DEFAULT_UNIVERSE, credentials.getUniverseDomain()); Map> metadata = scopedCredentials.getRequestMetadata(CALL_URI); @@ -389,22 +378,17 @@ void createdScoped_withAud_noUniverse_jwtWithScopesDisabled_accessToken() throws void createdScoped_withUniverse_selfSignedJwt() throws IOException { ServiceAccountCredentials credentials = createDefaultBuilder().setUniverseDomain("foo.bar").build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); IOException exception = assertThrows(IOException.class, () -> credentials.getRequestMetadata(null)); assertTrue( exception.getMessage().contains("Scopes and uri are not configured for service account")); GoogleCredentials scopedCredentials = credentials.createScoped("dummy.scope"); - scopedCredentials.regionalAccessBoundaryManager.setCachedRAB( - createDummyRab(scopedCredentials.clock)); Map> metadata = scopedCredentials.getRequestMetadata(null); verifyJwtAccess(metadata, "dummy.scope"); // Recreate to avoid jwt caching. scopedCredentials = credentials.createScoped("dummy.scope2"); - scopedCredentials.regionalAccessBoundaryManager.setCachedRAB( - createDummyRab(scopedCredentials.clock)); assertEquals(true, scopedCredentials.isExplicitUniverseDomain()); assertEquals("foo.bar", scopedCredentials.getUniverseDomain()); metadata = scopedCredentials.getRequestMetadata(CALL_URI); @@ -414,8 +398,6 @@ void createdScoped_withUniverse_selfSignedJwt() throws IOException { scopedCredentials = credentials.createScoped( Collections.emptyList(), Arrays.asList("dummy.default.scope")); - scopedCredentials.regionalAccessBoundaryManager.setCachedRAB( - createDummyRab(scopedCredentials.clock)); metadata = scopedCredentials.getRequestMetadata(null); verifyJwtAccess(metadata, "dummy.default.scope"); @@ -423,8 +405,6 @@ void createdScoped_withUniverse_selfSignedJwt() throws IOException { scopedCredentials = credentials.createScoped( Collections.emptyList(), Arrays.asList("dummy.default.scope2")); - scopedCredentials.regionalAccessBoundaryManager.setCachedRAB( - createDummyRab(scopedCredentials.clock)); metadata = scopedCredentials.getRequestMetadata(CALL_URI); verifyJwtAccess(metadata, "dummy.default.scope2"); } @@ -545,7 +525,6 @@ void fromJSON_hasAccessToken() throws IOException { GenericJson json = writeServiceAccountJson(PROJECT_ID, null, null); GoogleCredentials credentials = ServiceAccountCredentials.fromJson(json, transportFactory); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); credentials = credentials.createScoped(SCOPES); Map> metadata = credentials.getRequestMetadata(CALL_URI); @@ -559,7 +538,6 @@ void fromJSON_withUniverse_selfSignedJwt() throws IOException { GenericJson json = writeServiceAccountJson(PROJECT_ID, null, "foo.bar"); GoogleCredentials credentials = ServiceAccountCredentials.fromJson(json, transportFactory); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); credentials = credentials.createScoped(SCOPES); Map> metadata = credentials.getRequestMetadata(null); @@ -584,7 +562,6 @@ void fromJson_hasQuotaProjectId() throws IOException { transportFactory.transport.addServiceAccount(CLIENT_EMAIL, ACCESS_TOKEN); GenericJson json = writeServiceAccountJson(PROJECT_ID, QUOTA_PROJECT, null); GoogleCredentials credentials = ServiceAccountCredentials.fromJson(json, transportFactory); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); credentials = credentials.createScoped(SCOPES); Map> metadata = credentials.getRequestMetadata(CALL_URI); @@ -599,7 +576,6 @@ void fromJson_hasQuotaProjectId() throws IOException { void getRequestMetadata_hasAccessToken() throws IOException { GoogleCredentials credentials = createDefaultBuilderWithToken(ACCESS_TOKEN).setScopes(SCOPES).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); TestUtils.assertContainsBearerToken(metadata, ACCESS_TOKEN); } @@ -610,13 +586,12 @@ void getRequestMetadata_customTokenServer_hasAccessToken() throws IOException { MockTokenServerTransportFactory transportFactory = new MockTokenServerTransportFactory(); transportFactory.transport.addServiceAccount(CLIENT_EMAIL, ACCESS_TOKEN); transportFactory.transport.setTokenServerUri(tokenServerUri); - ServiceAccountCredentials credentials = + OAuth2Credentials credentials = createDefaultBuilder() .setScopes(SCOPES) .setHttpTransportFactory(transportFactory) .setTokenServerUri(tokenServerUri) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); TestUtils.assertContainsBearerToken(metadata, ACCESS_TOKEN); @@ -641,7 +616,6 @@ void refreshAccessToken_refreshesToken() throws IOException { MockTokenServerTransport transport = transportFactory.transport; ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, accessToken1); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), accessToken1); @@ -657,7 +631,6 @@ void refreshAccessToken_tokenExpiry() throws IOException { transport.addServiceAccount(CLIENT_EMAIL, ACCESS_TOKEN); ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); credentials.clock = new FixedClock(0L); AccessToken accessToken = credentials.refreshAccessToken(); @@ -679,7 +652,6 @@ void refreshAccessToken_IOException_Retry() throws IOException { MockTokenServerTransport transport = transportFactory.transport; ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, accessToken1); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), accessToken1); @@ -698,7 +670,6 @@ void refreshAccessToken_retriesServerErrors() throws IOException { MockTokenServerTransport transport = transportFactory.transport; ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, accessToken1); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), accessToken1); @@ -719,7 +690,6 @@ void refreshAccessToken_retriesTimeoutAndThrottled() throws IOException { MockTokenServerTransport transport = transportFactory.transport; ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, accessToken1); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), accessToken1); @@ -744,7 +714,6 @@ void refreshAccessToken_defaultRetriesDisabled() throws IOException { .setHttpTransportFactory(transportFactory) .build() .createWithCustomRetryStrategy(false); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, accessToken1); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), accessToken1); @@ -766,7 +735,6 @@ void refreshAccessToken_maxRetries_maxDelay() throws IOException { MockTokenServerTransport transport = transportFactory.transport; ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, ACCESS_TOKEN); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), ACCESS_TOKEN); @@ -796,7 +764,6 @@ void refreshAccessToken_RequestFailure_retried() throws IOException { MockTokenServerTransport transport = transportFactory.transport; ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, ACCESS_TOKEN); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), ACCESS_TOKEN); @@ -828,7 +795,6 @@ void refreshAccessToken_4xx_5xx_NonRetryableFails() throws IOException { MockTokenServerTransport transport = transportFactory.transport; ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, accessToken1); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), accessToken1); @@ -854,7 +820,6 @@ void idTokenWithAudience_oauthFlow_targetAudienceMatchesAudClaim() throws IOExce MockTokenServerTransport transport = transportFactory.transport; ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, accessToken1); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), accessToken1); @@ -892,7 +857,6 @@ void idTokenWithAudience_oauthFlow_targetAudienceDoesNotMatchAudClaim() throws I MockTokenServerTransport transport = transportFactory.transport; ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, accessToken1); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), accessToken1); @@ -925,7 +889,6 @@ void idTokenWithAudience_iamFlow_targetAudienceMatchesAudClaim() throws IOExcept .setHttpTransportFactory(transportFactory) .setUniverseDomain(nonGDU) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://foo.bar"; IdTokenCredentials tokenCredential = @@ -957,7 +920,6 @@ void idTokenWithAudience_iamFlow_targetAudienceDoesNotMatchAudClaim() throws IOE .setHttpTransportFactory(transportFactory) .setUniverseDomain(nonGDU) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "differentAudience"; IdTokenCredentials tokenCredential = @@ -979,7 +941,6 @@ void idTokenWithAudience_oauthEndpoint_non2XXStatusCode() throws IOException { transportFactory.transport.setError(new IOException("404 Not Found")); ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "audience"; IdTokenCredentials tokenCredential = @@ -1008,7 +969,6 @@ void idTokenWithAudience_iamEndpoint_non2XXStatusCode() throws IOException { .setHttpTransportFactory(transportFactory) .setUniverseDomain(universeDomain) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "audience"; IdTokenCredentials tokenCredential = @@ -1410,7 +1370,6 @@ void fromStream_providesToken() throws IOException { GoogleCredentials credentials = ServiceAccountCredentials.fromStream(serviceAccountStream, transportFactory); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); assertNotNull(credentials); credentials = credentials.createScoped(SCOPES); @@ -1453,7 +1412,6 @@ void getIdTokenWithAudience_badEmailError_issClaimTraced() throws IOException { transport.setError(new IOException("Invalid grant: Account not found")); ServiceAccountCredentials credentials = createDefaultBuilder().setScopes(SCOPES).setHttpTransportFactory(transportFactory).build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); String targetAudience = "https://bar"; IdTokenCredentials tokenCredential = @@ -1538,7 +1496,6 @@ void getRequestMetadata_setsQuotaProjectId() throws IOException { .setQuotaProjectId("my-quota-project-id") .setHttpTransportFactory(transportFactory) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); assertTrue(metadata.containsKey("x-goog-user-project")); @@ -1565,7 +1522,6 @@ void getRequestMetadata_noQuotaProjectId() throws IOException { .setProjectId(PROJECT_ID) .setHttpTransportFactory(transportFactory) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); assertFalse(metadata.containsKey("x-goog-user-project")); @@ -1589,7 +1545,6 @@ void getRequestMetadata_withCallback() throws IOException { .setQuotaProjectId("my-quota-project-id") .setHttpTransportFactory(transportFactory) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); final Map> plainMetadata = credentials.getRequestMetadata(); final AtomicBoolean success = new AtomicBoolean(false); @@ -1630,7 +1585,6 @@ void getRequestMetadata_withScopes_withUniverseDomain_SelfSignedJwt() throws IOE .setHttpTransportFactory(transportFactory) .setUniverseDomain("foo.bar") .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); final Map> plainMetadata = credentials.getRequestMetadata(); final AtomicBoolean success = new AtomicBoolean(false); @@ -1667,7 +1621,6 @@ void getRequestMetadata_withScopes_selfSignedJWT() throws IOException { .setHttpTransportFactory(new MockTokenServerTransportFactory()) .setUseJwtAccessWithScope(true) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); assertNotNull(((ServiceAccountCredentials) credentials).getSelfSignedJwtCredentialsWithScope()); @@ -1699,7 +1652,6 @@ void refreshAccessToken_withDomainDelegation_selfSignedJWT_disabled() throws IOE .setHttpTransportFactory(transportFactory) .setUseJwtAccessWithScope(true) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); transport.addServiceAccount(CLIENT_EMAIL, accessToken1); Map> metadata = credentials.getRequestMetadata(CALL_URI); @@ -1724,7 +1676,6 @@ void getRequestMetadata_withAudience_selfSignedJWT() throws IOException { .setProjectId(PROJECT_ID) .setHttpTransportFactory(new MockTokenServerTransportFactory()) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(CALL_URI); assertNull(((ServiceAccountCredentials) credentials).getSelfSignedJwtCredentialsWithScope()); @@ -1745,7 +1696,6 @@ void getRequestMetadata_withDefaultScopes_selfSignedJWT() throws IOException { .setHttpTransportFactory(new MockTokenServerTransportFactory()) .setUseJwtAccessWithScope(true) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); Map> metadata = credentials.getRequestMetadata(null); verifyJwtAccess(metadata, "dummy.scope"); @@ -1766,7 +1716,6 @@ void getRequestMetadataWithCallback_selfSignedJWT() throws IOException { .setUseJwtAccessWithScope(true) .setScopes(SCOPES) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); final AtomicBoolean success = new AtomicBoolean(false); credentials.getRequestMetadata( @@ -1804,7 +1753,6 @@ void createScopes_existingAccessTokenInvalidated() throws IOException { .setHttpTransportFactory(transportFactory) .setScopes(SCOPES) .build(); - credentials.regionalAccessBoundaryManager.setCachedRAB(createDummyRab(credentials.clock)); TestUtils.assertContainsBearerToken(credentials.getRequestMetadata(CALL_URI), ACCESS_TOKEN); // Calling createScoped() again will invalidate the existing access token and calling @@ -1825,96 +1773,6 @@ void getRequestMetadata_withMultipleScopes_selfSignedJWT() throws IOException { verifyJwtAccess(credentials.getRequestMetadata(CALL_URI), "scope1 scope2"); } - @Test - public void refresh_regionalAccessBoundarySuccess() throws IOException, InterruptedException { - - // Mock regional access boundary response - RegionalAccessBoundary regionalAccessBoundary = - new RegionalAccessBoundary( - TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION, - TestUtils.REGIONAL_ACCESS_BOUNDARY_LOCATIONS, - null); - - MockTokenServerTransport transport = new MockTokenServerTransport(); - transport.addServiceAccount(CLIENT_EMAIL, "test-access-token"); - transport.setRegionalAccessBoundary(regionalAccessBoundary); - - ServiceAccountCredentials credentials = - ServiceAccountCredentials.newBuilder() - .setClientEmail(CLIENT_EMAIL) - .setPrivateKey( - OAuth2Utils.privateKeyFromPkcs8(ServiceAccountCredentialsTest.PRIVATE_KEY_PKCS8)) - .setPrivateKeyId("test-key-id") - .setHttpTransportFactory(() -> transport) - .setScopes(SCOPES) - .build(); - - // First call: initiates async refresh. - Map> headers = credentials.getRequestMetadata(); - assertNull(headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); - - waitForRegionalAccessBoundary(credentials); - - // Second call: should have header. - headers = credentials.getRequestMetadata(); - assertEquals( - headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY), - Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); - } - - @Test - public void refresh_regionalAccessBoundary_selfSignedJWT() - throws IOException, InterruptedException { - - RegionalAccessBoundary regionalAccessBoundary = - new RegionalAccessBoundary( - TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION, - TestUtils.REGIONAL_ACCESS_BOUNDARY_LOCATIONS, - null); - - MockTokenServerTransport transport = new MockTokenServerTransport(); - transport.setRegionalAccessBoundary(regionalAccessBoundary); - - ServiceAccountCredentials credentials = - ServiceAccountCredentials.newBuilder() - .setClientEmail(CLIENT_EMAIL) - .setPrivateKey( - OAuth2Utils.privateKeyFromPkcs8(ServiceAccountCredentialsTest.PRIVATE_KEY_PKCS8)) - .setPrivateKeyId("test-key-id") - .setHttpTransportFactory(() -> transport) - .setUseJwtAccessWithScope(true) - .setScopes(SCOPES) - .build(); - - // First call: initiates async refresh using the SSJWT as the token. - Map> headers = credentials.getRequestMetadata(); - assertNull(headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY)); - - waitForRegionalAccessBoundary(credentials); - - // Second call: should have header. - headers = credentials.getRequestMetadata(); - assertEquals( - headers.get(X_ALLOWED_LOCATIONS_HEADER_KEY), - Arrays.asList(TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION)); - - assertEquals( - TestUtils.REGIONAL_ACCESS_BOUNDARY_ENCODED_LOCATION, - credentials.getRegionalAccessBoundary().getEncodedLocations()); - } - - private void waitForRegionalAccessBoundary(GoogleCredentials credentials) - throws InterruptedException { - long deadline = System.currentTimeMillis() + 5000; - while (credentials.getRegionalAccessBoundary() == null - && System.currentTimeMillis() < deadline) { - Thread.sleep(100); - } - if (credentials.getRegionalAccessBoundary() == null) { - fail("Timed out waiting for regional access boundary refresh"); - } - } - private void verifyJwtAccess(Map> metadata, String expectedScopeClaim) throws IOException { assertNotNull(metadata); diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/TestUtils.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/TestUtils.java index 52652a71c458..4efc138bbfa8 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/TestUtils.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/TestUtils.java @@ -69,9 +69,4 @@ static void validateMetricsHeader( } assertEquals(expectedMetricsValue, actualMetricsValue); } - - static RegionalAccessBoundary createDummyRab(com.google.api.client.util.Clock clock) { - return new RegionalAccessBoundary( - "dummy-locations", java.util.Arrays.asList("dummy-loc"), clock); - } } diff --git a/google-auth-library-java/samples/snippets/pom.xml b/google-auth-library-java/samples/snippets/pom.xml index 941191a80ee0..5b721797222a 100644 --- a/google-auth-library-java/samples/snippets/pom.xml +++ b/google-auth-library-java/samples/snippets/pom.xml @@ -80,3 +80,4 @@ + From 591cae0298b7bc5e679fd7b67ac6fe7b8c0c480e Mon Sep 17 00:00:00 2001 From: Dhriti07 <56169283+Dhriti07@users.noreply.github.com> Date: Thu, 25 Jun 2026 09:12:20 +0530 Subject: [PATCH 61/82] feat(storage): adding disabling option for bidi reads (#13506) Add option to disable Bidi Checksum using checksum disable system property --------- Co-authored-by: Dhriti Chopra Co-authored-by: Nidhi --- .../BaseObjectReadSessionStreamRead.java | 4 ++-- .../cloud/storage/CumulativeHasher.java | 9 +++++--- .../storage/GapicDownloadSessionBuilder.java | 2 +- .../GapicUnbufferedReadableByteChannel.java | 2 +- .../cloud/storage/GrpcBlobReadChannel.java | 2 +- .../java/com/google/cloud/storage/Hasher.java | 21 +++++++++++++++++++ .../storage/HttpDownloadSessionBuilder.java | 2 +- .../storage/HttpStorageRpcHasherHelper.java | 2 +- .../google/cloud/storage/ReadAsChannel.java | 2 +- .../cloud/storage/ReadAsFutureByteString.java | 2 +- .../cloud/storage/ReadAsFutureBytes.java | 2 +- .../cloud/storage/ReadAsSeekableChannel.java | 2 +- 12 files changed, 38 insertions(+), 14 deletions(-) diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/BaseObjectReadSessionStreamRead.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/BaseObjectReadSessionStreamRead.java index 0032d1a2da91..a590f404e57b 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/BaseObjectReadSessionStreamRead.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/BaseObjectReadSessionStreamRead.java @@ -151,7 +151,7 @@ private AccumulatingRead( super(rangeSpec, retryContext, onCloseCallback); this.readId = readId; this.hasher = - (rangeSpec.begin() == 0 && !(hasher instanceof Hasher.NoOpHasher)) + (rangeSpec.begin() == 0) ? new CumulativeHasher(hasher, 0, rangeSpec.maxLength()) : hasher; this.complete = SettableApiFuture.create(); @@ -284,7 +284,7 @@ static class StreamingRead extends BaseObjectReadSessionStreamRead expected = Crc32cValue.of(metadata.getChecksums().getCrc32C()); Crc32cLengthKnown actual = getCumulativeHash(); + if (actual == null) { + return; + } + Crc32cValue expected = Crc32cValue.of(metadata.getChecksums().getCrc32C()); if (!actual.eqValue(expected)) { throw new UncheckedCumulativeChecksumMismatchException(expected, actual); } @@ -132,7 +135,7 @@ void validateCumulativeChecksum(Object metadata) } private void accumulate(Crc32cLengthKnown actual) { - cumulativeHash = cumulativeHash.concat(actual); + cumulativeHash = nullSafeConcat(cumulativeHash, actual); } Crc32cLengthKnown getCumulativeHash() { diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GapicDownloadSessionBuilder.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GapicDownloadSessionBuilder.java index 3bbba1d703ea..bb24799b4fe8 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GapicDownloadSessionBuilder.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GapicDownloadSessionBuilder.java @@ -67,7 +67,7 @@ private ReadableByteChannelSessionBuilder( this.read = read; this.retrier = retrier; this.resultRetryAlgorithm = resultRetryAlgorithm; - this.hasher = Hasher.defaultHasher(); + this.hasher = Hasher.readHasher(); this.autoGzipDecompression = false; } diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannel.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannel.java index f17bd942fd31..4f5e45516ff8 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannel.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannel.java @@ -93,7 +93,7 @@ final class GapicUnbufferedReadableByteChannel this.read = read; this.req = req; this.hasher = - (req.getReadOffset() == 0 && !(hasher instanceof Hasher.NoOpHasher)) + (req.getReadOffset() == 0) ? new CumulativeHasher( hasher, 0, diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GrpcBlobReadChannel.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GrpcBlobReadChannel.java index 9113af1e0c91..9dd39dfe47ea 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GrpcBlobReadChannel.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GrpcBlobReadChannel.java @@ -62,7 +62,7 @@ protected LazyReadChannel newLazyReadChannel() { ResumableMedia.gapic() .read() .byteChannel(read, retrier, resultRetryAlgorithm) - .setHasher(Hasher.defaultHasher()) + .setHasher(Hasher.readHasher()) .setAutoGzipDecompression(autoGzipDecompression); BufferHandle bufferHandle = getBufferHandle(); // because we're erasing the specific type of channel, we need to declare it here. diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/Hasher.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/Hasher.java index ed97152b2584..62ca7c076b72 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/Hasher.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/Hasher.java @@ -57,6 +57,27 @@ final class DefaultInstanceHolder { } } + final class ReadInstanceHolder { + private static final Logger LOGGER = Logger.getLogger(Hasher.class.getName()); + private static final String PROPERTY_NAME = "com.google.cloud.storage.Hasher.read"; + private static final String PROPERTY_VALUE = + System.getProperty(PROPERTY_NAME, DefaultInstanceHolder.PROPERTY_VALUE); + static final Hasher READ_HASHER; + + static { + LOGGER.fine(String.format(Locale.US, "-D%s=%s", PROPERTY_NAME, PROPERTY_VALUE)); + if ("disabled".equalsIgnoreCase(PROPERTY_VALUE)) { + READ_HASHER = noop(); + } else { + READ_HASHER = enabled(); + } + } + } + + static Hasher readHasher() { + return ReadInstanceHolder.READ_HASHER; + } + @Nullable default Crc32cLengthKnown hash(Supplier b) { return hash(b.get()); diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/HttpDownloadSessionBuilder.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/HttpDownloadSessionBuilder.java index 202cf13b3051..ab5ae876f617 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/HttpDownloadSessionBuilder.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/HttpDownloadSessionBuilder.java @@ -58,7 +58,7 @@ public static final class ReadableByteChannelSessionBuilder { private ReadableByteChannelSessionBuilder(BlobReadChannelContext blobReadChannelContext) { this.blobReadChannelContext = blobReadChannelContext; - this.hasher = Hasher.defaultHasher(); + this.hasher = Hasher.readHasher(); this.autoGzipDecompression = false; } diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/HttpStorageRpcHasherHelper.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/HttpStorageRpcHasherHelper.java index 8f6111cb5d5d..7d1bf13ff629 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/HttpStorageRpcHasherHelper.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/HttpStorageRpcHasherHelper.java @@ -40,7 +40,7 @@ public final class HttpStorageRpcHasherHelper { private final Hasher hasher; private HttpStorageRpcHasherHelper() { - hasher = Hasher.defaultHasher(); + hasher = Hasher.readHasher(); } /** diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ReadAsChannel.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ReadAsChannel.java index 48f2e1582777..c3c37d34e120 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ReadAsChannel.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ReadAsChannel.java @@ -46,7 +46,7 @@ @BetaApi @Immutable public final class ReadAsChannel extends BaseConfig { - static final ReadAsChannel INSTANCE = new ReadAsChannel(RangeSpec.all(), Hasher.enabled()); + static final ReadAsChannel INSTANCE = new ReadAsChannel(RangeSpec.all(), Hasher.readHasher()); private final RangeSpec range; private final Hasher hasher; diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ReadAsFutureByteString.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ReadAsFutureByteString.java index aa7eee536d1c..5f4f50db96d9 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ReadAsFutureByteString.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ReadAsFutureByteString.java @@ -46,7 +46,7 @@ public final class ReadAsFutureByteString extends BaseConfig, AccumulatingRead> { static final ReadAsFutureByteString INSTANCE = - new ReadAsFutureByteString(RangeSpec.all(), Hasher.enabled()); + new ReadAsFutureByteString(RangeSpec.all(), Hasher.readHasher()); private final RangeSpec range; private final Hasher hasher; diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ReadAsFutureBytes.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ReadAsFutureBytes.java index 722b01bc2972..8388cb62ff09 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ReadAsFutureBytes.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ReadAsFutureBytes.java @@ -41,7 +41,7 @@ public final class ReadAsFutureBytes extends BaseConfig, AccumulatingRead> { static final ReadAsFutureBytes INSTANCE = - new ReadAsFutureBytes(RangeSpec.all(), Hasher.enabled()); + new ReadAsFutureBytes(RangeSpec.all(), Hasher.readHasher()); private final RangeSpec range; private final Hasher hasher; diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ReadAsSeekableChannel.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ReadAsSeekableChannel.java index b0b098e7afee..3ff33d91ce5e 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ReadAsSeekableChannel.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ReadAsSeekableChannel.java @@ -46,7 +46,7 @@ public final class ReadAsSeekableChannel extends ReadProjectionConfig { static final ReadAsSeekableChannel INSTANCE = - new ReadAsSeekableChannel(Hasher.enabled(), LinearExponentialRangeSpecFunction.INSTANCE); + new ReadAsSeekableChannel(Hasher.readHasher(), LinearExponentialRangeSpecFunction.INSTANCE); private final Hasher hasher; private final RangeSpecFunction rangeSpecFunction; From 825dadd008632b633d18c5035f9d448a12d6a49f Mon Sep 17 00:00:00 2001 From: Nicole Lee Date: Wed, 24 Jun 2026 21:51:23 -0700 Subject: [PATCH 62/82] feat(gapic-generator): Add NullMarked annotation to generated classes (#13517) This PR updates the gapic-generator-java to add the JSpecify @NullMarked annotation to all generated class declarations. Adding @NullMarked at the class level defines the class scope as null-safe, establishing that all unannotated types in method signatures (parameters and return types) are nonnull able by default. This is the first phase in onboarding the generated client libraries to compile-time safety validation, see design doc for more details: [go/sdk:java-jspecify-null-annotations-gapic](http://goto.google.com/sdk:java-jspecify-null-annotations-gapic) Classes Annotated: - Client Classes: AbstractServiceClientClassComposer - Settings Classes: AbstractServiceSettingsClassComposer and AbstractServiceStubSettingsClassComposer - Stub Classes: AbstractServiceStubClassComposer and AbstractTransportServiceStubClassComposer - Callable Factories: AbstractServiceCallableFactoryClassComposer - Resource Names: ResourceNameHelperClassComposer, CommonStrings Implementation Changes: - Added JSpecify import statements to class-level generation templates - Registered NullMarked.class and Nullable.class in TypeStore across all class composers to ensure references compile and resolve properly Verification/Testing: - Please refer to this doc: https://docs.google.com/document/d/1h126pbTGqSwtJyl35E2_vQjM9gNtmWETYCM7PObcvmQ/edit?tab=t.0#heading=h.s4q06jxocx8b Revisions: - Mainly to fix the autogenerator, not related to logic: added goldens + dependencies for the build Next Steps: - In the next PR, will add @Nullable annotations --- .../java/com/google/showcase/v1beta1/ComplianceClient.java | 2 ++ .../java/com/google/showcase/v1beta1/ComplianceSettings.java | 2 ++ .../main/java/com/google/showcase/v1beta1/EchoClient.java | 2 ++ .../main/java/com/google/showcase/v1beta1/EchoSettings.java | 2 ++ .../java/com/google/showcase/v1beta1/IdentityClient.java | 2 ++ .../java/com/google/showcase/v1beta1/IdentitySettings.java | 2 ++ .../java/com/google/showcase/v1beta1/MessagingClient.java | 2 ++ .../java/com/google/showcase/v1beta1/MessagingSettings.java | 2 ++ .../com/google/showcase/v1beta1/SequenceServiceClient.java | 2 ++ .../com/google/showcase/v1beta1/SequenceServiceSettings.java | 2 ++ .../main/java/com/google/showcase/v1beta1/TestingClient.java | 2 ++ .../java/com/google/showcase/v1beta1/TestingSettings.java | 2 ++ .../com/google/showcase/v1beta1/stub/ComplianceStub.java | 2 ++ .../google/showcase/v1beta1/stub/ComplianceStubSettings.java | 2 ++ .../main/java/com/google/showcase/v1beta1/stub/EchoStub.java | 2 ++ .../com/google/showcase/v1beta1/stub/EchoStubSettings.java | 2 ++ .../showcase/v1beta1/stub/GrpcComplianceCallableFactory.java | 2 ++ .../com/google/showcase/v1beta1/stub/GrpcComplianceStub.java | 2 ++ .../showcase/v1beta1/stub/GrpcEchoCallableFactory.java | 2 ++ .../java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java | 2 ++ .../showcase/v1beta1/stub/GrpcIdentityCallableFactory.java | 2 ++ .../com/google/showcase/v1beta1/stub/GrpcIdentityStub.java | 2 ++ .../showcase/v1beta1/stub/GrpcMessagingCallableFactory.java | 2 ++ .../com/google/showcase/v1beta1/stub/GrpcMessagingStub.java | 2 ++ .../v1beta1/stub/GrpcSequenceServiceCallableFactory.java | 2 ++ .../showcase/v1beta1/stub/GrpcSequenceServiceStub.java | 2 ++ .../showcase/v1beta1/stub/GrpcTestingCallableFactory.java | 2 ++ .../com/google/showcase/v1beta1/stub/GrpcTestingStub.java | 2 ++ .../v1beta1/stub/HttpJsonComplianceCallableFactory.java | 2 ++ .../google/showcase/v1beta1/stub/HttpJsonComplianceStub.java | 2 ++ .../showcase/v1beta1/stub/HttpJsonEchoCallableFactory.java | 2 ++ .../com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java | 2 ++ .../v1beta1/stub/HttpJsonIdentityCallableFactory.java | 2 ++ .../google/showcase/v1beta1/stub/HttpJsonIdentityStub.java | 2 ++ .../v1beta1/stub/HttpJsonMessagingCallableFactory.java | 2 ++ .../google/showcase/v1beta1/stub/HttpJsonMessagingStub.java | 2 ++ .../v1beta1/stub/HttpJsonSequenceServiceCallableFactory.java | 2 ++ .../showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java | 2 ++ .../v1beta1/stub/HttpJsonTestingCallableFactory.java | 2 ++ .../google/showcase/v1beta1/stub/HttpJsonTestingStub.java | 2 ++ .../java/com/google/showcase/v1beta1/stub/IdentityStub.java | 2 ++ .../google/showcase/v1beta1/stub/IdentityStubSettings.java | 2 ++ .../java/com/google/showcase/v1beta1/stub/MessagingStub.java | 2 ++ .../google/showcase/v1beta1/stub/MessagingStubSettings.java | 2 ++ .../google/showcase/v1beta1/stub/SequenceServiceStub.java | 2 ++ .../showcase/v1beta1/stub/SequenceServiceStubSettings.java | 2 ++ .../java/com/google/showcase/v1beta1/stub/TestingStub.java | 2 ++ .../google/showcase/v1beta1/stub/TestingStubSettings.java | 2 ++ .../src/main/java/com/google/showcase/v1beta1/BlurbName.java | 2 ++ .../main/java/com/google/showcase/v1beta1/ProfileName.java | 2 ++ .../src/main/java/com/google/showcase/v1beta1/RoomName.java | 2 ++ .../main/java/com/google/showcase/v1beta1/SequenceName.java | 2 ++ .../java/com/google/showcase/v1beta1/SequenceReportName.java | 2 ++ .../main/java/com/google/showcase/v1beta1/SessionName.java | 2 ++ .../com/google/showcase/v1beta1/StreamingSequenceName.java | 2 ++ .../google/showcase/v1beta1/StreamingSequenceReportName.java | 2 ++ .../src/main/java/com/google/showcase/v1beta1/TestName.java | 2 ++ .../src/main/java/com/google/showcase/v1beta1/UserName.java | 2 ++ rules_java_gapic/java_gapic.bzl | 2 ++ sdk-platform-java/gapic-generator-java/pom.xml | 5 +++++ .../common/AbstractServiceCallableFactoryClassComposer.java | 5 ++++- .../composer/common/AbstractServiceClientClassComposer.java | 3 +++ .../common/AbstractServiceSettingsClassComposer.java | 5 ++++- .../composer/common/AbstractServiceStubClassComposer.java | 5 ++++- .../common/AbstractServiceStubSettingsClassComposer.java | 5 ++++- .../common/AbstractTransportServiceStubClassComposer.java | 5 ++++- .../resourcename/ResourceNameHelperClassComposer.java | 5 ++++- .../goldens/GrpcServiceClientWithNestedClassImport.golden | 2 ++ .../grpc/goldens/ApiVersionTestingStubSettings.golden | 2 ++ .../gapic/composer/grpc/goldens/BookshopClient.golden | 2 ++ .../composer/grpc/goldens/DeprecatedServiceClient.golden | 2 ++ .../composer/grpc/goldens/DeprecatedServiceSettings.golden | 2 ++ .../gapic/composer/grpc/goldens/DeprecatedServiceStub.golden | 2 ++ .../grpc/goldens/DeprecatedServiceStubSettings.golden | 2 ++ .../generator/gapic/composer/grpc/goldens/EchoClient.golden | 2 ++ .../grpc/goldens/EchoServiceSelectiveGapicClient.golden | 2 ++ .../grpc/goldens/EchoServiceSelectiveGapicClientStub.golden | 2 ++ .../goldens/EchoServiceSelectiveGapicServiceSettings.golden | 2 ++ .../goldens/EchoServiceSelectiveGapicStubSettings.golden | 2 ++ .../gapic/composer/grpc/goldens/EchoSettings.golden | 2 ++ .../generator/gapic/composer/grpc/goldens/EchoStub.golden | 2 ++ .../gapic/composer/grpc/goldens/EchoStubSettings.golden | 2 ++ .../composer/grpc/goldens/GrpcAutoPopulateFieldStub.golden | 2 ++ .../composer/grpc/goldens/GrpcBigQueryJobServiceStub.golden | 2 ++ .../composer/grpc/goldens/GrpcCallableNameTypeStub.golden | 2 ++ .../grpc/goldens/GrpcDeprecatedServiceCallableFactory.golden | 2 ++ .../composer/grpc/goldens/GrpcDeprecatedServiceStub.golden | 2 ++ .../composer/grpc/goldens/GrpcEchoCallableFactory.golden | 2 ++ .../gapic/composer/grpc/goldens/GrpcEchoStub.golden | 2 ++ .../gapic/composer/grpc/goldens/GrpcLoggingStub.golden | 2 ++ .../gapic/composer/grpc/goldens/GrpcPublisherStub.golden | 2 ++ .../grpc/goldens/GrpcResourceNameExtractorStub.golden | 2 ++ .../composer/grpc/goldens/GrpcRoutingHeadersStub.golden | 2 ++ .../gapic/composer/grpc/goldens/GrpcTestingStub.golden | 2 ++ .../gapic/composer/grpc/goldens/IdentityClient.golden | 2 ++ .../composer/grpc/goldens/JobServiceStubSettings.golden | 2 ++ .../grpc/goldens/LoggingServiceV2StubSettings.golden | 2 ++ .../gapic/composer/grpc/goldens/MessagingClient.golden | 2 ++ .../gapic/composer/grpc/goldens/PublisherStubSettings.golden | 2 ++ .../gapic/composer/grpcrest/goldens/EchoClient.golden | 2 ++ .../gapic/composer/grpcrest/goldens/EchoSettings.golden | 2 ++ .../gapic/composer/grpcrest/goldens/EchoStubSettings.golden | 2 ++ .../composer/grpcrest/goldens/GrpcEchoCallableFactory.golden | 2 ++ .../gapic/composer/grpcrest/goldens/GrpcEchoStub.golden | 2 ++ .../grpcrest/goldens/GrpcWickedCallableFactory.golden | 2 ++ .../gapic/composer/grpcrest/goldens/GrpcWickedStub.golden | 2 ++ .../grpcrest/goldens/HttpJsonEchoCallableFactory.golden | 2 ++ .../gapic/composer/grpcrest/goldens/HttpJsonEchoStub.golden | 2 ++ .../gapic/composer/grpcrest/goldens/WickedClient.golden | 2 ++ .../gapic/composer/grpcrest/goldens/WickedSettings.golden | 2 ++ .../composer/grpcrest/goldens/WickedStubSettings.golden | 2 ++ .../gapic/composer/resourcename/goldens/AgentName.golden | 2 ++ .../resourcename/goldens/BillingAccountLocationName.golden | 2 ++ .../resourcename/goldens/CollisionResourceName.golden | 2 ++ .../gapic/composer/resourcename/goldens/FoobarName.golden | 2 ++ .../gapic/composer/resourcename/goldens/SessionName.golden | 2 ++ .../gapic/composer/resourcename/goldens/TestName.golden | 2 ++ .../gapic/composer/rest/goldens/ComplianceSettings.golden | 2 ++ .../composer/rest/goldens/ComplianceStubSettings.golden | 2 ++ .../goldens/HttpJsonApiVersionTestingStubSettings.golden | 2 ++ .../rest/goldens/HttpJsonAutoPopulateFieldTestingStub.golden | 2 ++ .../rest/goldens/HttpJsonComplianceCallableFactory.golden | 2 ++ .../composer/rest/goldens/HttpJsonComplianceStub.golden | 2 ++ .../gapic/composer/rest/goldens/HttpJsonEchoStub.golden | 2 ++ .../rest/goldens/HttpJsonResourceNameExtractorStub.golden | 2 ++ .../composer/rest/goldens/HttpJsonRoutingHeadersStub.golden | 2 ++ sdk-platform-java/gax-java/dependencies.properties | 1 + .../owlbot/templates/poms/cloud_pom.xml.j2 | 5 +++++ .../cloud/apigeeconnect/v1/ConnectionServiceClient.java | 2 ++ .../cloud/apigeeconnect/v1/ConnectionServiceSettings.java | 2 ++ .../src/com/google/cloud/apigeeconnect/v1/EndpointName.java | 2 ++ .../src/com/google/cloud/apigeeconnect/v1/TetherClient.java | 2 ++ .../com/google/cloud/apigeeconnect/v1/TetherSettings.java | 2 ++ .../cloud/apigeeconnect/v1/stub/ConnectionServiceStub.java | 2 ++ .../apigeeconnect/v1/stub/ConnectionServiceStubSettings.java | 2 ++ .../v1/stub/GrpcConnectionServiceCallableFactory.java | 2 ++ .../apigeeconnect/v1/stub/GrpcConnectionServiceStub.java | 2 ++ .../apigeeconnect/v1/stub/GrpcTetherCallableFactory.java | 2 ++ .../google/cloud/apigeeconnect/v1/stub/GrpcTetherStub.java | 2 ++ .../v1/stub/HttpJsonConnectionServiceCallableFactory.java | 2 ++ .../apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java | 2 ++ .../com/google/cloud/apigeeconnect/v1/stub/TetherStub.java | 2 ++ .../cloud/apigeeconnect/v1/stub/TetherStubSettings.java | 2 ++ .../src/com/google/cloud/asset/v1/AssetServiceClient.java | 2 ++ .../src/com/google/cloud/asset/v1/AssetServiceSettings.java | 2 ++ .../asset/src/com/google/cloud/asset/v1/FeedName.java | 2 ++ .../asset/src/com/google/cloud/asset/v1/FolderName.java | 2 ++ .../src/com/google/cloud/asset/v1/OrganizationName.java | 2 ++ .../asset/src/com/google/cloud/asset/v1/ProjectName.java | 2 ++ .../asset/src/com/google/cloud/asset/v1/SavedQueryName.java | 2 ++ .../src/com/google/cloud/asset/v1/stub/AssetServiceStub.java | 2 ++ .../google/cloud/asset/v1/stub/AssetServiceStubSettings.java | 2 ++ .../cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java | 2 ++ .../com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java | 2 ++ .../asset/v1/stub/HttpJsonAssetServiceCallableFactory.java | 2 ++ .../google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java | 2 ++ .../bigtable/src/com/google/bigtable/v2/InstanceName.java | 2 ++ .../bigtable/src/com/google/bigtable/v2/TableName.java | 2 ++ .../cloud/bigtable/data/v2/BaseBigtableDataClient.java | 2 ++ .../cloud/bigtable/data/v2/BaseBigtableDataSettings.java | 2 ++ .../com/google/cloud/bigtable/data/v2/stub/BigtableStub.java | 2 ++ .../cloud/bigtable/data/v2/stub/BigtableStubSettings.java | 2 ++ .../bigtable/data/v2/stub/GrpcBigtableCallableFactory.java | 2 ++ .../google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java | 2 ++ .../com/google/cloud/compute/v1small/AddressesClient.java | 2 ++ .../com/google/cloud/compute/v1small/AddressesSettings.java | 2 ++ .../google/cloud/compute/v1small/RegionOperationsClient.java | 2 ++ .../cloud/compute/v1small/RegionOperationsSettings.java | 2 ++ .../com/google/cloud/compute/v1small/stub/AddressesStub.java | 2 ++ .../cloud/compute/v1small/stub/AddressesStubSettings.java | 2 ++ .../v1small/stub/HttpJsonAddressesCallableFactory.java | 2 ++ .../cloud/compute/v1small/stub/HttpJsonAddressesStub.java | 2 ++ .../stub/HttpJsonRegionOperationsCallableFactory.java | 2 ++ .../compute/v1small/stub/HttpJsonRegionOperationsStub.java | 2 ++ .../cloud/compute/v1small/stub/RegionOperationsStub.java | 2 ++ .../compute/v1small/stub/RegionOperationsStubSettings.java | 2 ++ .../cloud/iam/credentials/v1/IamCredentialsClient.java | 2 ++ .../cloud/iam/credentials/v1/IamCredentialsSettings.java | 2 ++ .../google/cloud/iam/credentials/v1/ServiceAccountName.java | 2 ++ .../v1/stub/GrpcIamCredentialsCallableFactory.java | 2 ++ .../iam/credentials/v1/stub/GrpcIamCredentialsStub.java | 2 ++ .../v1/stub/HttpJsonIamCredentialsCallableFactory.java | 2 ++ .../iam/credentials/v1/stub/HttpJsonIamCredentialsStub.java | 2 ++ .../cloud/iam/credentials/v1/stub/IamCredentialsStub.java | 2 ++ .../iam/credentials/v1/stub/IamCredentialsStubSettings.java | 2 ++ .../goldens/iam/src/com/google/iam/v1/IAMPolicyClient.java | 2 ++ .../goldens/iam/src/com/google/iam/v1/IAMPolicySettings.java | 2 ++ .../com/google/iam/v1/stub/GrpcIAMPolicyCallableFactory.java | 2 ++ .../iam/src/com/google/iam/v1/stub/GrpcIAMPolicyStub.java | 2 ++ .../iam/src/com/google/iam/v1/stub/IAMPolicyStub.java | 2 ++ .../src/com/google/iam/v1/stub/IAMPolicyStubSettings.java | 2 ++ .../kms/src/com/google/cloud/kms/v1/CryptoKeyName.java | 2 ++ .../src/com/google/cloud/kms/v1/CryptoKeyVersionName.java | 2 ++ .../kms/src/com/google/cloud/kms/v1/ImportJobName.java | 2 ++ .../com/google/cloud/kms/v1/KeyManagementServiceClient.java | 2 ++ .../google/cloud/kms/v1/KeyManagementServiceSettings.java | 2 ++ .../goldens/kms/src/com/google/cloud/kms/v1/KeyRingName.java | 2 ++ .../kms/src/com/google/cloud/kms/v1/LocationName.java | 2 ++ .../kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java | 2 ++ .../cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java | 2 ++ .../google/cloud/kms/v1/stub/KeyManagementServiceStub.java | 2 ++ .../cloud/kms/v1/stub/KeyManagementServiceStubSettings.java | 2 ++ .../cloud/example/library/v1/LibraryServiceClient.java | 2 ++ .../cloud/example/library/v1/LibraryServiceSettings.java | 2 ++ .../library/v1/stub/GrpcLibraryServiceCallableFactory.java | 2 ++ .../example/library/v1/stub/GrpcLibraryServiceStub.java | 2 ++ .../v1/stub/HttpJsonLibraryServiceCallableFactory.java | 2 ++ .../example/library/v1/stub/HttpJsonLibraryServiceStub.java | 2 ++ .../cloud/example/library/v1/stub/LibraryServiceStub.java | 2 ++ .../example/library/v1/stub/LibraryServiceStubSettings.java | 2 ++ .../library/src/com/google/example/library/v1/BookName.java | 2 ++ .../library/src/com/google/example/library/v1/ShelfName.java | 2 ++ .../src/com/google/cloud/logging/v2/ConfigClient.java | 2 ++ .../src/com/google/cloud/logging/v2/ConfigSettings.java | 2 ++ .../src/com/google/cloud/logging/v2/LoggingClient.java | 2 ++ .../src/com/google/cloud/logging/v2/LoggingSettings.java | 2 ++ .../src/com/google/cloud/logging/v2/MetricsClient.java | 2 ++ .../src/com/google/cloud/logging/v2/MetricsSettings.java | 2 ++ .../google/cloud/logging/v2/stub/ConfigServiceV2Stub.java | 2 ++ .../cloud/logging/v2/stub/ConfigServiceV2StubSettings.java | 2 ++ .../logging/v2/stub/GrpcConfigServiceV2CallableFactory.java | 2 ++ .../cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java | 2 ++ .../logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java | 2 ++ .../cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java | 2 ++ .../logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java | 2 ++ .../cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java | 2 ++ .../google/cloud/logging/v2/stub/LoggingServiceV2Stub.java | 2 ++ .../cloud/logging/v2/stub/LoggingServiceV2StubSettings.java | 2 ++ .../google/cloud/logging/v2/stub/MetricsServiceV2Stub.java | 2 ++ .../cloud/logging/v2/stub/MetricsServiceV2StubSettings.java | 2 ++ .../com/google/logging/v2/BillingAccountLocationName.java | 2 ++ .../src/com/google/logging/v2/BillingAccountName.java | 2 ++ .../logging/src/com/google/logging/v2/CmekSettingsName.java | 2 ++ .../src/com/google/logging/v2/FolderLocationName.java | 2 ++ .../logging/src/com/google/logging/v2/FolderName.java | 2 ++ .../logging/src/com/google/logging/v2/LocationName.java | 2 ++ .../logging/src/com/google/logging/v2/LogBucketName.java | 2 ++ .../logging/src/com/google/logging/v2/LogExclusionName.java | 2 ++ .../logging/src/com/google/logging/v2/LogMetricName.java | 2 ++ .../goldens/logging/src/com/google/logging/v2/LogName.java | 2 ++ .../logging/src/com/google/logging/v2/LogSinkName.java | 2 ++ .../logging/src/com/google/logging/v2/LogViewName.java | 2 ++ .../src/com/google/logging/v2/OrganizationLocationName.java | 2 ++ .../logging/src/com/google/logging/v2/OrganizationName.java | 2 ++ .../logging/src/com/google/logging/v2/ProjectName.java | 2 ++ .../logging/src/com/google/logging/v2/SettingsName.java | 2 ++ .../src/com/google/cloud/pubsub/v1/SchemaServiceClient.java | 2 ++ .../com/google/cloud/pubsub/v1/SchemaServiceSettings.java | 2 ++ .../com/google/cloud/pubsub/v1/SubscriptionAdminClient.java | 2 ++ .../google/cloud/pubsub/v1/SubscriptionAdminSettings.java | 2 ++ .../src/com/google/cloud/pubsub/v1/TopicAdminClient.java | 2 ++ .../src/com/google/cloud/pubsub/v1/TopicAdminSettings.java | 2 ++ .../cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java | 2 ++ .../com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java | 2 ++ .../pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java | 2 ++ .../google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java | 2 ++ .../cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java | 2 ++ .../com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java | 2 ++ .../src/com/google/cloud/pubsub/v1/stub/PublisherStub.java | 2 ++ .../google/cloud/pubsub/v1/stub/PublisherStubSettings.java | 2 ++ .../com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java | 2 ++ .../cloud/pubsub/v1/stub/SchemaServiceStubSettings.java | 2 ++ .../src/com/google/cloud/pubsub/v1/stub/SubscriberStub.java | 2 ++ .../google/cloud/pubsub/v1/stub/SubscriberStubSettings.java | 2 ++ .../goldens/pubsub/src/com/google/pubsub/v1/ProjectName.java | 2 ++ .../goldens/pubsub/src/com/google/pubsub/v1/SchemaName.java | 2 ++ .../pubsub/src/com/google/pubsub/v1/SnapshotName.java | 2 ++ .../pubsub/src/com/google/pubsub/v1/SubscriptionName.java | 2 ++ .../goldens/pubsub/src/com/google/pubsub/v1/TopicName.java | 2 ++ .../src/com/google/cloud/redis/v1beta1/CloudRedisClient.java | 2 ++ .../com/google/cloud/redis/v1beta1/CloudRedisSettings.java | 2 ++ .../src/com/google/cloud/redis/v1beta1/InstanceName.java | 2 ++ .../src/com/google/cloud/redis/v1beta1/LocationName.java | 2 ++ .../com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java | 2 ++ .../cloud/redis/v1beta1/stub/CloudRedisStubSettings.java | 2 ++ .../redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java | 2 ++ .../google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java | 2 ++ .../v1beta1/stub/HttpJsonCloudRedisCallableFactory.java | 2 ++ .../cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java | 2 ++ .../storage/src/com/google/storage/v2/BucketName.java | 2 ++ .../storage/src/com/google/storage/v2/CryptoKeyName.java | 2 ++ .../storage/src/com/google/storage/v2/NotificationName.java | 2 ++ .../storage/src/com/google/storage/v2/ProjectName.java | 2 ++ .../storage/src/com/google/storage/v2/StorageClient.java | 2 ++ .../storage/src/com/google/storage/v2/StorageSettings.java | 2 ++ .../google/storage/v2/stub/GrpcStorageCallableFactory.java | 2 ++ .../src/com/google/storage/v2/stub/GrpcStorageStub.java | 2 ++ .../storage/src/com/google/storage/v2/stub/StorageStub.java | 2 ++ .../src/com/google/storage/v2/stub/StorageStubSettings.java | 2 ++ 289 files changed, 596 insertions(+), 6 deletions(-) diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceClient.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceClient.java index 7f1d2095d6ef..7dfdbc833e6f 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceClient.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceClient.java @@ -41,6 +41,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -355,6 +356,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class ComplianceClient implements BackgroundResource { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java index 27c7f1a83381..67b1e8395ec5 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/ComplianceSettings.java @@ -43,6 +43,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -93,6 +94,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class ComplianceSettings extends ClientSettings { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java index 94d3fef234b5..951b15c1a69c 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoClient.java @@ -49,6 +49,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -364,6 +365,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class EchoClient implements BackgroundResource { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java index e070b3fe7f45..55ce20f85076 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/EchoSettings.java @@ -49,6 +49,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -124,6 +125,7 @@ * .build(); * } */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class EchoSettings extends ClientSettings { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentityClient.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentityClient.java index dfa80e1a7fc8..2a08bf0f7598 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentityClient.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentityClient.java @@ -42,6 +42,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -286,6 +287,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class IdentityClient implements BackgroundResource { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java index f998c45023f9..2e530db81883 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/IdentitySettings.java @@ -45,6 +45,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -95,6 +96,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class IdentitySettings extends ClientSettings { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingClient.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingClient.java index 673923e8e85f..4f2f1f868ca1 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingClient.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingClient.java @@ -50,6 +50,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -449,6 +450,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class MessagingClient implements BackgroundResource { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java index 5a7a29216fda..302303c985ea 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/MessagingSettings.java @@ -50,6 +50,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -125,6 +126,7 @@ * .build(); * } */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class MessagingSettings extends ClientSettings { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java index bc5d66536374..f3e48827b712 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceClient.java @@ -43,6 +43,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -309,6 +310,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class SequenceServiceClient implements BackgroundResource { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java index ef27a713df99..37903aadff11 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/SequenceServiceSettings.java @@ -45,6 +45,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -96,6 +97,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class SequenceServiceSettings extends ClientSettings { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingClient.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingClient.java index c941dc9676fe..aea75b7a86e3 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingClient.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingClient.java @@ -42,6 +42,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -318,6 +319,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class TestingClient implements BackgroundResource { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java index 7bd64be2153a..016da734f965 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/TestingSettings.java @@ -46,6 +46,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -96,6 +97,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class TestingSettings extends ClientSettings { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStub.java index 022d3dee15f1..35789202d361 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStub.java @@ -35,6 +35,7 @@ import com.google.showcase.v1beta1.RepeatRequest; import com.google.showcase.v1beta1.RepeatResponse; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -42,6 +43,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public abstract class ComplianceStub implements BackgroundResource { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java index 43de8c07b6ea..a82d26feb9b8 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/ComplianceStubSettings.java @@ -65,6 +65,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -115,6 +116,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java index 6eeddc421c3d..cd41c825e38a 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStub.java @@ -55,6 +55,7 @@ import com.google.showcase.v1beta1.WaitRequest; import com.google.showcase.v1beta1.WaitResponse; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -62,6 +63,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public abstract class EchoStub implements BackgroundResource { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java index 757b99eb640f..c62be894bd9b 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/EchoStubSettings.java @@ -89,6 +89,7 @@ import java.util.List; import java.util.Map; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -164,6 +165,7 @@ * .build(); * } */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceCallableFactory.java index e61ad2900c52..6d6808165c3f 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceCallableFactory.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceCallableFactory.java @@ -35,6 +35,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -42,6 +43,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcComplianceCallableFactory implements GrpcStubCallableFactory { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java index 3949f8d8c968..1928846a7deb 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcComplianceStub.java @@ -45,6 +45,7 @@ import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -52,6 +53,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcComplianceStub extends ComplianceStub { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoCallableFactory.java index 7c2726f06e18..efe6fabc1b41 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoCallableFactory.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoCallableFactory.java @@ -35,6 +35,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -42,6 +43,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcEchoCallableFactory implements GrpcStubCallableFactory { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java index c5dccbe24562..c4f4b8f8a4ea 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcEchoStub.java @@ -67,6 +67,7 @@ import java.util.UUID; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -74,6 +75,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcEchoStub extends EchoStub { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityCallableFactory.java index e59799ce9a92..24cc588c0e6f 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityCallableFactory.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityCallableFactory.java @@ -35,6 +35,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -42,6 +43,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcIdentityCallableFactory implements GrpcStubCallableFactory { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java index 666ce88c52a8..d43e8521875b 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcIdentityStub.java @@ -50,6 +50,7 @@ import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -57,6 +58,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcIdentityStub extends IdentityStub { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingCallableFactory.java index ceeab3d586cb..ddefa6b22d45 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingCallableFactory.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingCallableFactory.java @@ -35,6 +35,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -42,6 +43,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcMessagingCallableFactory implements GrpcStubCallableFactory { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingStub.java index 4d343ab1e319..548d8bb5228e 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcMessagingStub.java @@ -70,6 +70,7 @@ import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -77,6 +78,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcMessagingStub extends MessagingStub { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceCallableFactory.java index 43291ed81f3b..5fe5e72a4797 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceCallableFactory.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceCallableFactory.java @@ -35,6 +35,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -42,6 +43,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcSequenceServiceCallableFactory implements GrpcStubCallableFactory { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java index 545208ea67a2..a2377beaa52b 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcSequenceServiceStub.java @@ -54,6 +54,7 @@ import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -61,6 +62,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcSequenceServiceStub extends SequenceServiceStub { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingCallableFactory.java index 9b99f011af42..a38aab562383 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingCallableFactory.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingCallableFactory.java @@ -35,6 +35,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -42,6 +43,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcTestingCallableFactory implements GrpcStubCallableFactory { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingStub.java index 6ceaa01ce751..ec383fccedf1 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/GrpcTestingStub.java @@ -57,6 +57,7 @@ import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -64,6 +65,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcTestingStub extends TestingStub { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceCallableFactory.java index ea3d3be7bcab..35e76136d119 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceCallableFactory.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceCallableFactory.java @@ -33,6 +33,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -40,6 +41,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class HttpJsonComplianceCallableFactory diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceStub.java index 247f16c37da8..f2d56fbf8b0b 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonComplianceStub.java @@ -52,6 +52,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -59,6 +60,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class HttpJsonComplianceStub extends ComplianceStub { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoCallableFactory.java index 70b68fc24700..ead7a784ff31 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoCallableFactory.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoCallableFactory.java @@ -33,6 +33,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -40,6 +41,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class HttpJsonEchoCallableFactory diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java index a0e5b55daccd..f1f490bea15b 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonEchoStub.java @@ -78,6 +78,7 @@ import java.util.UUID; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -85,6 +86,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class HttpJsonEchoStub extends EchoStub { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityCallableFactory.java index 5ea4ee07aa74..b712335a4966 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityCallableFactory.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityCallableFactory.java @@ -33,6 +33,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -40,6 +41,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class HttpJsonIdentityCallableFactory diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityStub.java index c4c305e0527b..8c4fb935787c 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonIdentityStub.java @@ -57,6 +57,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -64,6 +65,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class HttpJsonIdentityStub extends IdentityStub { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingCallableFactory.java index 6e59fe4c6872..1fe00091d732 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingCallableFactory.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingCallableFactory.java @@ -33,6 +33,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -40,6 +41,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class HttpJsonMessagingCallableFactory diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java index dda9ca23b58a..6aaad20e8459 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonMessagingStub.java @@ -81,6 +81,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -88,6 +89,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class HttpJsonMessagingStub extends MessagingStub { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceCallableFactory.java index 34dc970004dc..5c96c69502a6 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceCallableFactory.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceCallableFactory.java @@ -33,6 +33,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -40,6 +41,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class HttpJsonSequenceServiceCallableFactory diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java index da7116caad45..8e40b5e32b09 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonSequenceServiceStub.java @@ -61,6 +61,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -68,6 +69,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class HttpJsonSequenceServiceStub extends SequenceServiceStub { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingCallableFactory.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingCallableFactory.java index be1186b7ec97..21e3c14b566b 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingCallableFactory.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingCallableFactory.java @@ -33,6 +33,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -40,6 +41,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class HttpJsonTestingCallableFactory diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingStub.java index ed6aeae3eb08..fdbff5f71a25 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/HttpJsonTestingStub.java @@ -64,6 +64,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -71,6 +72,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class HttpJsonTestingStub extends TestingStub { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStub.java index 740a6f42b3e8..62b7315c6aad 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStub.java @@ -40,6 +40,7 @@ import com.google.showcase.v1beta1.UpdateUserRequest; import com.google.showcase.v1beta1.User; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -47,6 +48,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public abstract class IdentityStub implements BackgroundResource { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java index c1163fe00050..bd1b8ac22d6a 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/IdentityStubSettings.java @@ -71,6 +71,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -121,6 +122,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStub.java index 6bdad6e3354c..370965e9c472 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStub.java @@ -61,6 +61,7 @@ import com.google.showcase.v1beta1.UpdateBlurbRequest; import com.google.showcase.v1beta1.UpdateRoomRequest; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -68,6 +69,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public abstract class MessagingStub implements BackgroundResource { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java index 14f9ba167b58..63524a233b17 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/MessagingStubSettings.java @@ -93,6 +93,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -168,6 +169,7 @@ * .build(); * } */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java index 39f8ccd1fc5e..d92c4203b486 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStub.java @@ -44,6 +44,7 @@ import com.google.showcase.v1beta1.StreamingSequence; import com.google.showcase.v1beta1.StreamingSequenceReport; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -51,6 +52,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public abstract class SequenceServiceStub implements BackgroundResource { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java index bbc13d23dc87..8e63e65c67b8 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/SequenceServiceStubSettings.java @@ -75,6 +75,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -126,6 +127,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStub.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStub.java index 92b4a42f59ad..f6ffe32525f8 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStub.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStub.java @@ -47,6 +47,7 @@ import com.google.showcase.v1beta1.VerifyTestRequest; import com.google.showcase.v1beta1.VerifyTestResponse; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -54,6 +55,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public abstract class TestingStub implements BackgroundResource { diff --git a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java index 02d1260a2f83..da278f791454 100644 --- a/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java +++ b/java-showcase/gapic-showcase/src/main/java/com/google/showcase/v1beta1/stub/TestingStubSettings.java @@ -78,6 +78,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -128,6 +129,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java index c0f03fe0caca..2e44117605ba 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/BlurbName.java @@ -26,8 +26,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class BlurbName implements ResourceName { private static final PathTemplate USER_LEGACY_USER_BLURB = diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java index 1a76331959b4..ee06ebfc70ff 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/ProfileName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class ProfileName implements ResourceName { private static final PathTemplate USER = diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java index 1dbb32e73c7e..1370b309df9a 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/RoomName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class RoomName implements ResourceName { private static final PathTemplate ROOM = PathTemplate.createWithoutUrlEncoding("rooms/{room}"); diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java index a4703d1b3983..81b4e7bd25d4 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class SequenceName implements ResourceName { private static final PathTemplate SEQUENCE = diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java index 27970631de56..16898ca82d83 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SequenceReportName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class SequenceReportName implements ResourceName { private static final PathTemplate SEQUENCE = diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java index 4f40865d28d0..883685a36c55 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/SessionName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class SessionName implements ResourceName { private static final PathTemplate SESSION = diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java index bfced7876efc..e87564212f17 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class StreamingSequenceName implements ResourceName { private static final PathTemplate STREAMING_SEQUENCE = diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java index 59f40f2c589f..ea6ae25d25b0 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/StreamingSequenceReportName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class StreamingSequenceReportName implements ResourceName { private static final PathTemplate STREAMING_SEQUENCE = diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java index 34499c19fda5..c8b6ed227aff 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/TestName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class TestName implements ResourceName { private static final PathTemplate SESSION_TEST = diff --git a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java index 92105d5d7753..7a9020f92bd9 100644 --- a/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java +++ b/java-showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/UserName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class UserName implements ResourceName { private static final PathTemplate USER = PathTemplate.createWithoutUrlEncoding("users/{user}"); diff --git a/rules_java_gapic/java_gapic.bzl b/rules_java_gapic/java_gapic.bzl index 0eaf06264f66..6b778feca354 100644 --- a/rules_java_gapic/java_gapic.bzl +++ b/rules_java_gapic/java_gapic.bzl @@ -288,6 +288,7 @@ def java_gapic_library( "@com_google_api_api_common//jar", "@com_google_guava_guava//jar", "@javax_annotation_javax_annotation_api//jar", + "@org_jspecify_jspecify//jar", ], **kwargs ) @@ -307,6 +308,7 @@ def java_gapic_library( "@com_google_auth_google_auth_library_oauth2_http//jar", "@com_google_http_client_google_http_client//jar", "@javax_annotation_javax_annotation_api//jar", + "@org_jspecify_jspecify//jar", ] if not transport or transport == "grpc": diff --git a/sdk-platform-java/gapic-generator-java/pom.xml b/sdk-platform-java/gapic-generator-java/pom.xml index 736b3ca5a20e..ac9a2a948e24 100644 --- a/sdk-platform-java/gapic-generator-java/pom.xml +++ b/sdk-platform-java/gapic-generator-java/pom.xml @@ -283,6 +283,11 @@ + + org.jspecify + jspecify + ${jspecify.version} + com.google.guava guava diff --git a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceCallableFactoryClassComposer.java b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceCallableFactoryClassComposer.java index fd861390a7ee..066c55383c0b 100644 --- a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceCallableFactoryClassComposer.java +++ b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceCallableFactoryClassComposer.java @@ -48,6 +48,7 @@ import java.util.List; import java.util.stream.Collectors; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; public abstract class AbstractServiceCallableFactoryClassComposer implements ClassComposer { private final TransportContext transportContext; @@ -93,6 +94,7 @@ public GapicClass generate(GapicContext context, Service service) { protected List createClassAnnotations(Service service, TypeStore typeStore) { List annotations = new ArrayList<>(); + annotations.add(AnnotationNode.withType(typeStore.get("NullMarked"))); if (!PackageChecker.isGaApi(service.pakkage())) { annotations.add(AnnotationNode.withType(typeStore.get("BetaApi"))); } @@ -349,7 +351,8 @@ private TypeStore createTypes(Service service) { UnaryCallSettings.class, UnaryCallable.class, Generated.class, - UnsupportedOperationException.class); + UnsupportedOperationException.class, + NullMarked.class); return new TypeStore(concreteClazzes); } } diff --git a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java index 913ffd0f5c75..42c7bd743fe4 100644 --- a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java +++ b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceClientClassComposer.java @@ -103,6 +103,7 @@ import java.util.function.Function; import java.util.stream.Collectors; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; public abstract class AbstractServiceClientClassComposer implements ClassComposer { private static final String CALLABLE_NAME_PATTERN = "%sCallable"; @@ -193,6 +194,7 @@ public GapicClass generate(GapicContext context, Service service) { private static List createClassAnnotations(Service service, TypeStore typeStore) { List annotations = new ArrayList<>(); + annotations.add(AnnotationNode.withType(typeStore.get("NullMarked"))); if (!PackageChecker.isGaApi(service.pakkage())) { annotations.add(AnnotationNode.withType(typeStore.get("BetaApi"))); } @@ -1786,6 +1788,7 @@ private static TypeStore createTypes(Service service, Map messa InterruptedException.class, IOException.class, MoreExecutors.class, + NullMarked.class, Objects.class, Operation.class, OperationFuture.class, diff --git a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java index e117097b1094..d7241886efc8 100644 --- a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java +++ b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceSettingsClassComposer.java @@ -79,6 +79,7 @@ import java.util.function.Function; import java.util.stream.Collectors; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; public abstract class AbstractServiceSettingsClassComposer implements ClassComposer { private static final String BUILDER_CLASS_NAME = "Builder"; @@ -204,6 +205,7 @@ private static List createClassHeaderComments( private static List createClassAnnotations(Service service) { List annotations = new ArrayList<>(); + annotations.add(AnnotationNode.withType(FIXED_TYPESTORE.get("NullMarked"))); if (!PackageChecker.isGaApi(service.pakkage())) { annotations.add(AnnotationNode.withType(FIXED_TYPESTORE.get("BetaApi"))); } @@ -847,7 +849,8 @@ private static TypeStore createStaticTypes() { StreamingCallSettings.class, StubSettings.class, TransportChannelProvider.class, - UnaryCallSettings.class); + UnaryCallSettings.class, + NullMarked.class); return new TypeStore(concreteClazzes); } diff --git a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubClassComposer.java b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubClassComposer.java index 5cdb08ff1051..423a25eee11a 100644 --- a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubClassComposer.java +++ b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubClassComposer.java @@ -54,6 +54,7 @@ import java.util.Map; import java.util.stream.Collectors; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; public abstract class AbstractServiceStubClassComposer implements ClassComposer { @@ -93,6 +94,7 @@ public GapicClass generate(GapicContext context, Service service) { private static List createClassAnnotations(Service service, TypeStore typeStore) { List annotations = new ArrayList<>(); + annotations.add(AnnotationNode.withType(typeStore.get("NullMarked"))); if (!PackageChecker.isGaApi(service.pakkage())) { annotations.add(AnnotationNode.withType(typeStore.get("BetaApi"))); } @@ -270,7 +272,8 @@ private static TypeStore createTypes(Service service, Map messa OperationCallable.class, ServerStreamingCallable.class, UnaryCallable.class, - UnsupportedOperationException.class); + UnsupportedOperationException.class, + NullMarked.class); TypeStore typeStore = new TypeStore(concreteClazzes); typeStore.put("com.google.longrunning.stub", "OperationsStub"); diff --git a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java index 489e82f9d56e..9a0c1337b115 100644 --- a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java +++ b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractServiceStubSettingsClassComposer.java @@ -124,6 +124,7 @@ import java.util.stream.Collectors; import javax.annotation.Generated; import javax.annotation.Nullable; +import org.jspecify.annotations.NullMarked; public abstract class AbstractServiceStubSettingsClassComposer implements ClassComposer { private static final Statement EMPTY_LINE_STATEMENT = EmptyLineStatement.create(); @@ -411,6 +412,7 @@ protected MethodDefinition createApiClientHeaderProviderBuilderMethod( private List createClassAnnotations(Service service) { List annotations = new ArrayList<>(); + annotations.add(AnnotationNode.withType(FIXED_TYPESTORE.get("NullMarked"))); if (!PackageChecker.isGaApi(service.pakkage())) { annotations.add(AnnotationNode.withType(FIXED_TYPESTORE.get("BetaApi"))); } @@ -2217,7 +2219,8 @@ private static TypeStore createStaticTypes() { SuppressWarnings.class, TransportChannelProvider.class, UnaryCallSettings.class, - UnaryCallable.class); + UnaryCallable.class, + NullMarked.class); return new TypeStore(concreteClazzes); } diff --git a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractTransportServiceStubClassComposer.java b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractTransportServiceStubClassComposer.java index 922dda48dcc9..6cdf49e38d4c 100644 --- a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractTransportServiceStubClassComposer.java +++ b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/common/AbstractTransportServiceStubClassComposer.java @@ -100,6 +100,7 @@ import java.util.stream.Collectors; import javax.annotation.Generated; import javax.annotation.Nullable; +import org.jspecify.annotations.NullMarked; public abstract class AbstractTransportServiceStubClassComposer implements ClassComposer { private static final List AIP_STANDARDS_METHODS = @@ -152,7 +153,8 @@ private static TypeStore createStaticTypes() { TimeUnit.class, TypeRegistry.class, UnaryCallable.class, - UnsupportedOperationException.class); + UnsupportedOperationException.class, + NullMarked.class); return new TypeStore(concreteClazzes); } @@ -548,6 +550,7 @@ private VariableExpr getOperationCallableExpr(Method protoMethod, String callabl protected List createClassAnnotations(Service service) { List annotations = new ArrayList<>(); + annotations.add(AnnotationNode.withType(FIXED_TYPESTORE.get("NullMarked"))); if (!PackageChecker.isGaApi(service.pakkage())) { annotations.add(AnnotationNode.withType(FIXED_TYPESTORE.get("BetaApi"))); } diff --git a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/resourcename/ResourceNameHelperClassComposer.java b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/resourcename/ResourceNameHelperClassComposer.java index 775a88c01b13..69f9ca96e0f9 100644 --- a/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/resourcename/ResourceNameHelperClassComposer.java +++ b/sdk-platform-java/gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/resourcename/ResourceNameHelperClassComposer.java @@ -69,6 +69,7 @@ import java.util.function.Function; import java.util.stream.Collectors; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; public class ResourceNameHelperClassComposer { private static final String CLASS_NAME_PATTERN = "%sName"; @@ -152,6 +153,7 @@ public GapicClass generate(ResourceName resourceName, GapicContext context) { private static List createClassAnnotations() { return Arrays.asList( + AnnotationNode.withType(FIXED_TYPESTORE.get("NullMarked")), AnnotationNode.builder() .setType(FIXED_TYPESTORE.get("Generated")) .setDescription("by gapic-generator-java") @@ -1704,7 +1706,8 @@ private static TypeStore createStaticTypes() { PathTemplate.class, Preconditions.class, com.google.api.resourcenames.ResourceName.class, - ValidationException.class); + ValidationException.class, + NullMarked.class); return new TypeStore(concreteClazzes); } diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/engine/writer/goldens/GrpcServiceClientWithNestedClassImport.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/engine/writer/goldens/GrpcServiceClientWithNestedClassImport.golden index 9a8f46553d49..c5edba8acd9a 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/engine/writer/goldens/GrpcServiceClientWithNestedClassImport.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/engine/writer/goldens/GrpcServiceClientWithNestedClassImport.golden @@ -8,6 +8,7 @@ import com.google.types.testing.stub.NestedMessageServiceStubSettings; import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -95,6 +96,7 @@ import javax.annotation.Generated; * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @Generated("by gapic-generator-java") public class NestedMessageServiceClient implements BackgroundResource { private final NestedMessageServiceSettings settings; diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/ApiVersionTestingStubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/ApiVersionTestingStubSettings.golden index 86eb85a24497..7b37b4120ddb 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/ApiVersionTestingStubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/ApiVersionTestingStubSettings.golden @@ -25,6 +25,7 @@ import com.google.common.collect.Lists; import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -76,6 +77,7 @@ import javax.annotation.Generated; * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class EchoWithVersionStubSettings extends StubSettings { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/BookshopClient.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/BookshopClient.golden index 13e54850392c..d093dec5b5a5 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/BookshopClient.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/BookshopClient.golden @@ -9,6 +9,7 @@ import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -98,6 +99,7 @@ import javax.annotation.Generated; * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class BookshopClient implements BackgroundResource { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceClient.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceClient.golden index aec12869e407..5afedc72d093 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceClient.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceClient.golden @@ -8,6 +8,7 @@ import com.google.testdata.v1.stub.DeprecatedServiceStubSettings; import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -110,6 +111,7 @@ import javax.annotation.Generated; * * @deprecated This class is deprecated and will be removed in the next major version update. */ +@NullMarked @Deprecated @Generated("by gapic-generator-java") public class DeprecatedServiceClient implements BackgroundResource { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden index 3a17bc1a9b64..2f2222d4979b 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceSettings.golden @@ -15,6 +15,7 @@ import com.google.testdata.v1.stub.DeprecatedServiceStubSettings; import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -68,6 +69,7 @@ import javax.annotation.Generated; * * @deprecated This class is deprecated and will be removed in the next major version update. */ +@NullMarked @Deprecated @Generated("by gapic-generator-java") public class DeprecatedServiceSettings extends ClientSettings { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStub.golden index 6a40197ba46c..9b25100eb162 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStub.golden @@ -5,6 +5,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.protobuf.Empty; import com.google.testdata.v1.FibonacciRequest; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -14,6 +15,7 @@ import javax.annotation.Generated; * * @deprecated This class is deprecated and will be removed in the next major version update. */ +@NullMarked @Deprecated @Generated("by gapic-generator-java") public abstract class DeprecatedServiceStub implements BackgroundResource { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStubSettings.golden index b33cacc753fc..51d610d81f0d 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/DeprecatedServiceStubSettings.golden @@ -26,6 +26,7 @@ import java.io.IOException; import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -80,6 +81,7 @@ import javax.annotation.Generated; * * @deprecated This class is deprecated and will be removed in the next major version update. */ +@NullMarked @Deprecated @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden index 612111aea0df..153bc625a8c3 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoClient.golden @@ -27,6 +27,7 @@ import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -260,6 +261,7 @@ import javax.annotation.Generated; * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class EchoClient implements BackgroundResource { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicClient.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicClient.golden index 731ebe1834bf..7c2bf556b96d 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicClient.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicClient.golden @@ -10,6 +10,7 @@ import com.google.selective.generate.v1beta1.stub.EchoServiceShouldGenerateParti import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -155,6 +156,7 @@ import javax.annotation.Generated; * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class EchoServiceShouldGeneratePartialUsualClient implements BackgroundResource { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicClientStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicClientStub.golden index d654e9644c93..c5ff4c5e86e8 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicClientStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicClientStub.golden @@ -8,6 +8,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.selective.generate.v1beta1.EchoRequest; import com.google.selective.generate.v1beta1.EchoResponse; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -15,6 +16,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public abstract class EchoServiceShouldGeneratePartialUsualStub implements BackgroundResource { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicServiceSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicServiceSettings.golden index e78f11aef44b..ddb91ae8bcbb 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicServiceSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicServiceSettings.golden @@ -17,6 +17,7 @@ import com.google.selective.generate.v1beta1.stub.EchoServiceShouldGenerateParti import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -70,6 +71,7 @@ import javax.annotation.Generated; * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class EchoServiceShouldGeneratePartialUsualSettings diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicStubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicStubSettings.golden index 8e4331441cc1..5c171f04360a 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicStubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoServiceSelectiveGapicStubSettings.golden @@ -28,6 +28,7 @@ import com.google.selective.generate.v1beta1.EchoResponse; import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -82,6 +83,7 @@ import javax.annotation.Generated; * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden index 753662f8f99e..a9770bf54cd4 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoSettings.golden @@ -23,6 +23,7 @@ import com.google.showcase.v1beta1.stub.EchoStubSettings; import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -98,6 +99,7 @@ import javax.annotation.Generated; * .build(); * } */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class EchoSettings extends ClientSettings { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStub.golden index c43465da6889..8fed4fe54d48 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStub.golden @@ -25,6 +25,7 @@ import com.google.showcase.v1beta1.WaitMetadata; import com.google.showcase.v1beta1.WaitRequest; import com.google.showcase.v1beta1.WaitResponse; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -32,6 +33,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public abstract class EchoStub implements BackgroundResource { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden index 837e9e6b2933..6713de000399 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/EchoStubSettings.golden @@ -54,6 +54,7 @@ import java.io.IOException; import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -129,6 +130,7 @@ import javax.annotation.Generated; * .build(); * } */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcAutoPopulateFieldStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcAutoPopulateFieldStub.golden index f3614d7226ee..b7270cd7441f 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcAutoPopulateFieldStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcAutoPopulateFieldStub.golden @@ -20,6 +20,7 @@ import java.io.IOException; import java.util.UUID; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -27,6 +28,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcAutoPopulateFieldTestingStub extends AutoPopulateFieldTestingStub { private static final MethodDescriptor< diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcBigQueryJobServiceStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcBigQueryJobServiceStub.golden index a6a08d1acba6..05a69268c60a 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcBigQueryJobServiceStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcBigQueryJobServiceStub.golden @@ -18,6 +18,7 @@ import java.io.IOException; import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -25,6 +26,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcJobServiceStub extends JobServiceStub { private static final MethodDescriptor diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcCallableNameTypeStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcCallableNameTypeStub.golden index 870c0181d1cd..d2f843a3b4d8 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcCallableNameTypeStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcCallableNameTypeStub.golden @@ -16,6 +16,7 @@ import java.io.IOException; import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -23,6 +24,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcCallableNameTypeServiceStub extends CallableNameTypeServiceStub { private static final MethodDescriptor diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcDeprecatedServiceCallableFactory.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcDeprecatedServiceCallableFactory.golden index c27b65e6ae5c..1b15b2753641 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcDeprecatedServiceCallableFactory.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcDeprecatedServiceCallableFactory.golden @@ -18,6 +18,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -27,6 +28,7 @@ import javax.annotation.Generated; * * @deprecated This class is deprecated and will be removed in the next major version update. */ +@NullMarked @Deprecated @Generated("by gapic-generator-java") public class GrpcDeprecatedServiceCallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcDeprecatedServiceStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcDeprecatedServiceStub.golden index c225eb1a32f1..f0e3fcb15f1a 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcDeprecatedServiceStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcDeprecatedServiceStub.golden @@ -14,6 +14,7 @@ import io.grpc.protobuf.ProtoUtils; import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -23,6 +24,7 @@ import javax.annotation.Generated; * * @deprecated This class is deprecated and will be removed in the next major version update. */ +@NullMarked @Deprecated @Generated("by gapic-generator-java") public class GrpcDeprecatedServiceStub extends DeprecatedServiceStub { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcEchoCallableFactory.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcEchoCallableFactory.golden index d6ac9c9fe7dc..946d23dd9c79 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcEchoCallableFactory.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcEchoCallableFactory.golden @@ -19,6 +19,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -26,6 +27,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcEchoCallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcEchoStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcEchoStub.golden index 6b6bf6368139..b00e38a732d4 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcEchoStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcEchoStub.golden @@ -33,6 +33,7 @@ import io.grpc.protobuf.ProtoUtils; import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -40,6 +41,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcEchoStub extends EchoStub { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcLoggingStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcLoggingStub.golden index 940d0c779aec..641885e7c64b 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcLoggingStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcLoggingStub.golden @@ -31,6 +31,7 @@ import java.io.IOException; import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -38,6 +39,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcLoggingServiceV2Stub extends LoggingServiceV2Stub { private static final MethodDescriptor deleteLogMethodDescriptor = diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcPublisherStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcPublisherStub.golden index a881a35e880e..315dc7a25734 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcPublisherStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcPublisherStub.golden @@ -33,6 +33,7 @@ import java.io.IOException; import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -40,6 +41,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcPublisherStub extends PublisherStub { private static final MethodDescriptor createTopicMethodDescriptor = diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcResourceNameExtractorStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcResourceNameExtractorStub.golden index 4657fbe7da7d..fad7579a00ee 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcResourceNameExtractorStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcResourceNameExtractorStub.golden @@ -29,6 +29,7 @@ import java.util.HashMap; import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -36,6 +37,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcResourceNameExtractorTestingStub extends ResourceNameExtractorTestingStub { private static final MethodDescriptor getFooMethodDescriptor = diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcRoutingHeadersStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcRoutingHeadersStub.golden index 26b66097b557..2de1cb9cc9c9 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcRoutingHeadersStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcRoutingHeadersStub.golden @@ -20,6 +20,7 @@ import java.io.IOException; import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -27,6 +28,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcExplicitDynamicRoutingHeaderTestingStub extends ExplicitDynamicRoutingHeaderTestingStub { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcTestingStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcTestingStub.golden index a467bb696fa9..d01d58872b0a 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcTestingStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/GrpcTestingStub.golden @@ -35,6 +35,7 @@ import java.io.IOException; import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -42,6 +43,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcTestingStub extends TestingStub { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden index efb41dc308f5..1f6390842460 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden @@ -17,6 +17,7 @@ import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -175,6 +176,7 @@ import javax.annotation.Generated; * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class IdentityClient implements BackgroundResource { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/JobServiceStubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/JobServiceStubSettings.golden index 89ddd1d70399..6ec8f16f177c 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/JobServiceStubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/JobServiceStubSettings.golden @@ -36,6 +36,7 @@ import java.io.IOException; import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -86,6 +87,7 @@ import javax.annotation.Generated; * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class JobServiceStubSettings extends StubSettings { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden index d3b2ed5a616b..213edf6a3d4b 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/LoggingServiceV2StubSettings.golden @@ -59,6 +59,7 @@ import java.time.Duration; import java.util.Collection; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -110,6 +111,7 @@ import javax.annotation.Generated; * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class LoggingServiceV2StubSettings extends StubSettings { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden index 359ba586244e..f53d16b8b749 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden @@ -25,6 +25,7 @@ import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -325,6 +326,7 @@ import javax.annotation.Generated; * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class MessagingClient implements BackgroundResource { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden index 1c48ebf05afe..5dd715e05b8f 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/PublisherStubSettings.golden @@ -60,6 +60,7 @@ import java.util.ArrayList; import java.util.Collection; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -110,6 +111,7 @@ import javax.annotation.Generated; * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class PublisherStubSettings extends StubSettings { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoClient.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoClient.golden index 91e167d4e103..35c02eda2d66 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoClient.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoClient.golden @@ -27,6 +27,7 @@ import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -282,6 +283,7 @@ import javax.annotation.Generated; * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class EchoClient implements BackgroundResource { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden index 2249b438e52b..12383ffd66c1 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoSettings.golden @@ -24,6 +24,7 @@ import com.google.showcase.grpcrest.v1beta1.stub.EchoStubSettings; import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -99,6 +100,7 @@ import javax.annotation.Generated; * .build(); * } */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class EchoSettings extends ClientSettings { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoStubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoStubSettings.golden index 3ca91988a4bd..e29f91480185 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoStubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/EchoStubSettings.golden @@ -58,6 +58,7 @@ import java.io.IOException; import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -133,6 +134,7 @@ import javax.annotation.Generated; * .build(); * } */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/GrpcEchoCallableFactory.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/GrpcEchoCallableFactory.golden index 99bb5884092a..280c988aca17 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/GrpcEchoCallableFactory.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/GrpcEchoCallableFactory.golden @@ -19,6 +19,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -26,6 +27,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcEchoCallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/GrpcEchoStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/GrpcEchoStub.golden index 3d337d1d4459..880d307e9a14 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/GrpcEchoStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/GrpcEchoStub.golden @@ -35,6 +35,7 @@ import java.io.IOException; import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -42,6 +43,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcEchoStub extends EchoStub { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/GrpcWickedCallableFactory.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/GrpcWickedCallableFactory.golden index 88f063999a44..b94ed408707d 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/GrpcWickedCallableFactory.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/GrpcWickedCallableFactory.golden @@ -19,6 +19,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -26,6 +27,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcWickedCallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/GrpcWickedStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/GrpcWickedStub.golden index c421c2a8a698..b0ffc0fa206a 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/GrpcWickedStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/GrpcWickedStub.golden @@ -17,6 +17,7 @@ import io.grpc.protobuf.ProtoUtils; import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -24,6 +25,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcWickedStub extends WickedStub { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/HttpJsonEchoCallableFactory.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/HttpJsonEchoCallableFactory.golden index 5da8337d63b0..cc730b52f6e7 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/HttpJsonEchoCallableFactory.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/HttpJsonEchoCallableFactory.golden @@ -17,6 +17,7 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -24,6 +25,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class HttpJsonEchoCallableFactory diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/HttpJsonEchoStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/HttpJsonEchoStub.golden index 1ca61a984099..c66fb1e95232 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/HttpJsonEchoStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/HttpJsonEchoStub.golden @@ -46,6 +46,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -53,6 +54,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class HttpJsonEchoStub extends EchoStub { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedClient.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedClient.golden index 138bee4bc15d..fff1e0377a22 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedClient.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedClient.golden @@ -10,6 +10,7 @@ import com.google.showcase.v1beta1.stub.WickedStubSettings; import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -113,6 +114,7 @@ import javax.annotation.Generated; * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class WickedClient implements BackgroundResource { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedSettings.golden index 7df7e658dce4..95f2e533d03d 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedSettings.golden @@ -16,6 +16,7 @@ import com.google.showcase.v1beta1.stub.WickedStubSettings; import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -66,6 +67,7 @@ import javax.annotation.Generated; * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class WickedSettings extends ClientSettings { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedStubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedStubSettings.golden index e84994274db9..4a1bc0d0ea14 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedStubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/grpcrest/goldens/WickedStubSettings.golden @@ -27,6 +27,7 @@ import com.google.showcase.v1beta1.EvilResponse; import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -77,6 +78,7 @@ import javax.annotation.Generated; * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/AgentName.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/AgentName.golden index 2eb43f4f3964..a35217c08a0a 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/AgentName.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/AgentName.golden @@ -10,8 +10,10 @@ import java.util.List; import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class AgentName implements ResourceName { private static final PathTemplate PROJECT_LOCATION = diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/BillingAccountLocationName.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/BillingAccountLocationName.golden index 123088ef24e8..bf9b58f73ed0 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/BillingAccountLocationName.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/BillingAccountLocationName.golden @@ -9,8 +9,10 @@ import java.util.List; import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class BillingAccountLocationName implements ResourceName { private static final PathTemplate BILLING_ACCOUNT_LOCATION = diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/CollisionResourceName.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/CollisionResourceName.golden index 273db9bd662f..515dc35aead2 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/CollisionResourceName.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/CollisionResourceName.golden @@ -8,8 +8,10 @@ import java.util.List; import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class ResourceName implements com.google.api.resourcenames.ResourceName { private static final PathTemplate PROJECT_LOCATION_DEPLOYMENT_REVISION_RESOURCE = diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/FoobarName.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/FoobarName.golden index 4dcf36186aad..c9e2d43c6959 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/FoobarName.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/FoobarName.golden @@ -10,8 +10,10 @@ import java.util.List; import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class FoobarName implements ResourceName { private static final PathTemplate PROJECT_FOOBAR = diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/SessionName.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/SessionName.golden index cb5996f0ed1b..f5c711d82aa2 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/SessionName.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/SessionName.golden @@ -9,8 +9,10 @@ import java.util.List; import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class SessionName implements ResourceName { private static final PathTemplate SESSION = diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/TestName.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/TestName.golden index 0fc68b527a3a..571aec00ec5f 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/TestName.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/resourcename/goldens/TestName.golden @@ -9,8 +9,10 @@ import java.util.List; import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class TestName implements ResourceName { private static final PathTemplate SESSION_SHARD_ID_TEST_ID = diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden index 9c210dc69564..1d554dc788b6 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceSettings.golden @@ -15,6 +15,7 @@ import com.google.showcase.v1beta1.stub.ComplianceStubSettings; import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -65,6 +66,7 @@ import javax.annotation.Generated; * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class ComplianceSettings extends ClientSettings { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden index f4c6b636af62..db257e4d5a3d 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/ComplianceStubSettings.golden @@ -29,6 +29,7 @@ import com.google.showcase.v1beta1.RepeatResponse; import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -79,6 +80,7 @@ import javax.annotation.Generated; * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonApiVersionTestingStubSettings.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonApiVersionTestingStubSettings.golden index 924e9c556626..8b0b94e4daab 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonApiVersionTestingStubSettings.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonApiVersionTestingStubSettings.golden @@ -25,6 +25,7 @@ import com.google.common.collect.Lists; import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -76,6 +77,7 @@ import javax.annotation.Generated; * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class EchoWithVersionStubSettings extends StubSettings { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonAutoPopulateFieldTestingStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonAutoPopulateFieldTestingStub.golden index 6b390feb69b0..00c0e65f570b 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonAutoPopulateFieldTestingStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonAutoPopulateFieldTestingStub.golden @@ -27,6 +27,7 @@ import java.util.Map; import java.util.UUID; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -34,6 +35,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class HttpJsonAutoPopulateFieldTestingStub extends AutoPopulateFieldTestingStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonComplianceCallableFactory.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonComplianceCallableFactory.golden index 25f9086a1308..9caec1171e0e 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonComplianceCallableFactory.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonComplianceCallableFactory.golden @@ -17,6 +17,7 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -24,6 +25,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class HttpJsonComplianceCallableFactory diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonComplianceStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonComplianceStub.golden index 39dc2df47161..fc4fcbf22545 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonComplianceStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonComplianceStub.golden @@ -26,6 +26,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -33,6 +34,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class HttpJsonComplianceStub extends ComplianceStub { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonEchoStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonEchoStub.golden index 443511805263..3c02a78ccd8f 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonEchoStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonEchoStub.golden @@ -45,6 +45,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -52,6 +53,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class HttpJsonEchoStub extends EchoStub { diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonResourceNameExtractorStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonResourceNameExtractorStub.golden index ee8722706bd8..c4552d93999e 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonResourceNameExtractorStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonResourceNameExtractorStub.golden @@ -34,6 +34,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,6 +42,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class HttpJsonResourceNameExtractorTestingStub extends ResourceNameExtractorTestingStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); diff --git a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonRoutingHeadersStub.golden b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonRoutingHeadersStub.golden index b377fe3a181f..e75975005600 100644 --- a/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonRoutingHeadersStub.golden +++ b/sdk-platform-java/gapic-generator-java/src/test/java/com/google/api/generator/gapic/composer/rest/goldens/HttpJsonRoutingHeadersStub.golden @@ -26,6 +26,7 @@ import java.util.List; import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -33,6 +34,7 @@ import javax.annotation.Generated; * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class HttpJsonExplicitDynamicRoutingHeaderTestingStub extends ExplicitDynamicRoutingHeaderTestingStub { diff --git a/sdk-platform-java/gax-java/dependencies.properties b/sdk-platform-java/gax-java/dependencies.properties index 50cb9dc8de0b..1cf7a0cc71c9 100644 --- a/sdk-platform-java/gax-java/dependencies.properties +++ b/sdk-platform-java/gax-java/dependencies.properties @@ -81,6 +81,7 @@ maven.org_slf4j_slf4j_api=org.slf4j:slf4j-api:2.0.16 maven.com_google_protobuf_protobuf_java_util=com.google.protobuf:protobuf-java-util:3.25.5 # Testing maven artifacts +maven.org_jspecify_jspecify=org.jspecify:jspecify:1.0.0 maven.junit_junit=junit:junit:4.13.2 maven.org_mockito_mockito_core=org.mockito:mockito-core:4.11.0 maven.org_mockito_mockito_junit_jupiter=org.mockito:mockito-junit-jupiter:4.11.0 diff --git a/sdk-platform-java/hermetic_build/library_generation/owlbot/templates/poms/cloud_pom.xml.j2 b/sdk-platform-java/hermetic_build/library_generation/owlbot/templates/poms/cloud_pom.xml.j2 index d0ae8cd7c56b..8978d8437e52 100644 --- a/sdk-platform-java/hermetic_build/library_generation/owlbot/templates/poms/cloud_pom.xml.j2 +++ b/sdk-platform-java/hermetic_build/library_generation/owlbot/templates/poms/cloud_pom.xml.j2 @@ -43,6 +43,11 @@ com.google.api.grpc proto-google-common-protos + + org.jspecify + jspecify + ${jspecify.version} + {% for module in proto_modules %} {{module.group_id}} diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java index e9e1cef5dd06..11a4a43a6524 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java @@ -31,6 +31,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -142,6 +143,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @Generated("by gapic-generator-java") public class ConnectionServiceClient implements BackgroundResource { private final ConnectionServiceSettings settings; diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java index 335e0f4be326..f2095fd712b0 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java @@ -35,6 +35,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -86,6 +87,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") public class ConnectionServiceSettings extends ClientSettings { diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/EndpointName.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/EndpointName.java index 16bf12e1638c..9c8e5208230c 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/EndpointName.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/EndpointName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class EndpointName implements ResourceName { private static final PathTemplate PROJECT_ENDPOINT = diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherClient.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherClient.java index f3cd1b0dc68f..bd296833e614 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherClient.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherClient.java @@ -23,6 +23,7 @@ import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -118,6 +119,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @Generated("by gapic-generator-java") public class TetherClient implements BackgroundResource { private final TetherSettings settings; diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherSettings.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherSettings.java index 5c941f005e58..fbbdbe0359ef 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherSettings.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/TetherSettings.java @@ -31,6 +31,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -81,6 +82,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") public class TetherSettings extends ClientSettings { diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStub.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStub.java index c1235c18367d..25478406d58e 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStub.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStub.java @@ -23,6 +23,7 @@ import com.google.cloud.apigeeconnect.v1.ListConnectionsRequest; import com.google.cloud.apigeeconnect.v1.ListConnectionsResponse; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -30,6 +31,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public abstract class ConnectionServiceStub implements BackgroundResource { diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java index 184451d6db32..08f2534708ee 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java @@ -56,6 +56,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -108,6 +109,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class ConnectionServiceStubSettings extends StubSettings { diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceCallableFactory.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceCallableFactory.java index 5bbbfc3b1aa1..f24668061e45 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceCallableFactory.java @@ -34,6 +34,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,6 +42,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcConnectionServiceCallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java index 6e453159f7bf..1a65052651b8 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java @@ -34,6 +34,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,6 +42,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcConnectionServiceStub extends ConnectionServiceStub { private static final MethodDescriptor diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherCallableFactory.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherCallableFactory.java index e9720bc945fd..3d2b4b80d68d 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherCallableFactory.java @@ -34,6 +34,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,6 +42,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcTetherCallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherStub.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherStub.java index 396579ae685a..686ac740c547 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherStub.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherStub.java @@ -30,6 +30,7 @@ import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -37,6 +38,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcTetherStub extends TetherStub { private static final MethodDescriptor egressMethodDescriptor = diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceCallableFactory.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceCallableFactory.java index 06e53d47b717..5a40b3849119 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceCallableFactory.java @@ -32,6 +32,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -39,6 +40,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class HttpJsonConnectionServiceCallableFactory implements HttpJsonStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java index 3cf8a205a409..86c9e0f106f4 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java @@ -40,6 +40,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -47,6 +48,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class HttpJsonConnectionServiceStub extends ConnectionServiceStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStub.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStub.java index affda077bafa..424bc479e782 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStub.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStub.java @@ -21,6 +21,7 @@ import com.google.cloud.apigeeconnect.v1.EgressRequest; import com.google.cloud.apigeeconnect.v1.EgressResponse; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -28,6 +29,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public abstract class TetherStub implements BackgroundResource { diff --git a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java index 227a68e91ff0..f0a16c22b218 100644 --- a/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/apigeeconnect/src/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java @@ -42,6 +42,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -92,6 +93,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class TetherStubSettings extends StubSettings { diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java index a7841addfda4..9e2be2079cca 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java @@ -39,6 +39,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -482,6 +483,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @Generated("by gapic-generator-java") public class AssetServiceClient implements BackgroundResource { private final AssetServiceSettings settings; diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java index 2319d4ff413b..137014ae6c20 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceSettings.java @@ -41,6 +41,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -116,6 +117,7 @@ * .build(); * } */ +@NullMarked @Generated("by gapic-generator-java") public class AssetServiceSettings extends ClientSettings { diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FeedName.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FeedName.java index b66fee59337e..ed33edd129ec 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FeedName.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FeedName.java @@ -26,8 +26,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class FeedName implements ResourceName { private static final PathTemplate PROJECT_FEED = diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FolderName.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FolderName.java index 41c31e946a0f..29369cb83590 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FolderName.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/FolderName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class FolderName implements ResourceName { private static final PathTemplate FOLDER = diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/OrganizationName.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/OrganizationName.java index 7ceca6182ac2..0cadf25e6184 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/OrganizationName.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/OrganizationName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class OrganizationName implements ResourceName { private static final PathTemplate ORGANIZATION = diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/ProjectName.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/ProjectName.java index 7e9b79905a12..e659b684f3f6 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/ProjectName.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/ProjectName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class ProjectName implements ResourceName { private static final PathTemplate PROJECT = diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/SavedQueryName.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/SavedQueryName.java index d2c3bc76638c..e565aefb9835 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/SavedQueryName.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/SavedQueryName.java @@ -26,8 +26,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class SavedQueryName implements ResourceName { private static final PathTemplate PROJECT_SAVED_QUERY = diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStub.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStub.java index 442d70659293..d38f4b4b7703 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStub.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStub.java @@ -63,6 +63,7 @@ import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -70,6 +71,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public abstract class AssetServiceStub implements BackgroundResource { diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java index dddb8294c78b..14ec11890d20 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/AssetServiceStubSettings.java @@ -100,6 +100,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -177,6 +178,7 @@ * .build(); * } */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class AssetServiceStubSettings extends StubSettings { diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java index 242acd7db303..e1e74ecfdf07 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceCallableFactory.java @@ -34,6 +34,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,6 +42,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcAssetServiceCallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java index cf4e9beb8951..57f5e3e4a599 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/GrpcAssetServiceStub.java @@ -73,6 +73,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -80,6 +81,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcAssetServiceStub extends AssetServiceStub { private static final MethodDescriptor diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceCallableFactory.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceCallableFactory.java index 3e0878845ae1..994dbf67c729 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceCallableFactory.java @@ -32,6 +32,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -39,6 +40,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class HttpJsonAssetServiceCallableFactory implements HttpJsonStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java index 9c6b1aa24e73..85623f708e6e 100644 --- a/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java +++ b/sdk-platform-java/test/integration/goldens/asset/src/com/google/cloud/asset/v1/stub/HttpJsonAssetServiceStub.java @@ -82,6 +82,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -89,6 +90,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class HttpJsonAssetServiceStub extends AssetServiceStub { private static final TypeRegistry typeRegistry = diff --git a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/bigtable/v2/InstanceName.java b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/bigtable/v2/InstanceName.java index d36d4f04c14a..6e36641b3114 100644 --- a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/bigtable/v2/InstanceName.java +++ b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/bigtable/v2/InstanceName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class InstanceName implements ResourceName { private static final PathTemplate PROJECT_INSTANCE = diff --git a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/bigtable/v2/TableName.java b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/bigtable/v2/TableName.java index b616cb8488fc..200ca73023f9 100644 --- a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/bigtable/v2/TableName.java +++ b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/bigtable/v2/TableName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class TableName implements ResourceName { private static final PathTemplate PROJECT_INSTANCE_TABLE = diff --git a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java index 66354a487f61..f4b922e30f27 100644 --- a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java +++ b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataClient.java @@ -45,6 +45,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -235,6 +236,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @Generated("by gapic-generator-java") public class BaseBigtableDataClient implements BackgroundResource { private final BaseBigtableDataSettings settings; diff --git a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java index 9c85d1d69af1..728748a3dd7a 100644 --- a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java +++ b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/BaseBigtableDataSettings.java @@ -45,6 +45,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -96,6 +97,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") public class BaseBigtableDataSettings extends ClientSettings { diff --git a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java index 3560cde528d3..e1e39ce76221 100644 --- a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java +++ b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStub.java @@ -34,6 +34,7 @@ import com.google.bigtable.v2.SampleRowKeysRequest; import com.google.bigtable.v2.SampleRowKeysResponse; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,6 +42,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public abstract class BigtableStub implements BackgroundResource { diff --git a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java index 23374ac7802b..680112fc2920 100644 --- a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/BigtableStubSettings.java @@ -55,6 +55,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -106,6 +107,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class BigtableStubSettings extends StubSettings { diff --git a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableCallableFactory.java b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableCallableFactory.java index a7be4becd9ae..0ec0d12ba370 100644 --- a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableCallableFactory.java @@ -34,6 +34,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,6 +42,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcBigtableCallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java index 81a698650bde..333fd03ec358 100644 --- a/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java +++ b/sdk-platform-java/test/integration/goldens/bigtable/src/com/google/cloud/bigtable/data/v2/stub/GrpcBigtableStub.java @@ -46,6 +46,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -53,6 +54,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcBigtableStub extends BigtableStub { private static final MethodDescriptor diff --git a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClient.java b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClient.java index 4807e593af20..7ae225f7cdfb 100644 --- a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClient.java +++ b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClient.java @@ -34,6 +34,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -186,6 +187,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @Generated("by gapic-generator-java") public class AddressesClient implements BackgroundResource { private final AddressesSettings settings; diff --git a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesSettings.java b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesSettings.java index 9a69837dd37d..1d092e884e40 100644 --- a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesSettings.java +++ b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesSettings.java @@ -35,6 +35,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -110,6 +111,7 @@ * .build(); * } */ +@NullMarked @Generated("by gapic-generator-java") public class AddressesSettings extends ClientSettings { diff --git a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClient.java b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClient.java index fa6c2a73ccea..8531bab2388b 100644 --- a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClient.java +++ b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsClient.java @@ -23,6 +23,7 @@ import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -136,6 +137,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @Generated("by gapic-generator-java") public class RegionOperationsClient implements BackgroundResource { private final RegionOperationsSettings settings; diff --git a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsSettings.java b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsSettings.java index 670ba5b3d1b2..4104ee49c9f2 100644 --- a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsSettings.java +++ b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/RegionOperationsSettings.java @@ -30,6 +30,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -81,6 +82,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") public class RegionOperationsSettings extends ClientSettings { diff --git a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStub.java b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStub.java index c0539366139a..ed3b92afde6d 100644 --- a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStub.java +++ b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStub.java @@ -30,6 +30,7 @@ import com.google.cloud.compute.v1small.ListAddressesRequest; import com.google.cloud.compute.v1small.Operation; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -37,6 +38,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public abstract class AddressesStub implements BackgroundResource { diff --git a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java index 3ae9929a1539..114d5a8d9b4a 100644 --- a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/AddressesStubSettings.java @@ -64,6 +64,7 @@ import java.util.List; import java.util.Map; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -139,6 +140,7 @@ * .build(); * } */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class AddressesStubSettings extends StubSettings { diff --git a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesCallableFactory.java b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesCallableFactory.java index 82c30e674ae2..89a2d2ed8bac 100644 --- a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesCallableFactory.java @@ -31,6 +31,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.compute.v1small.Operation; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -38,6 +39,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class HttpJsonAddressesCallableFactory implements HttpJsonStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesStub.java b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesStub.java index 545ecf7a36a2..bc9caeb208de 100644 --- a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesStub.java +++ b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonAddressesStub.java @@ -51,6 +51,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -58,6 +59,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class HttpJsonAddressesStub extends AddressesStub { private static final TypeRegistry typeRegistry = diff --git a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsCallableFactory.java b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsCallableFactory.java index fd5187b104ab..732b7b0f1bca 100644 --- a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsCallableFactory.java @@ -32,6 +32,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -39,6 +40,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class HttpJsonRegionOperationsCallableFactory implements HttpJsonStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsStub.java b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsStub.java index d0ef4b45db7c..e87d888844c3 100644 --- a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsStub.java +++ b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/HttpJsonRegionOperationsStub.java @@ -46,6 +46,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -53,6 +54,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class HttpJsonRegionOperationsStub extends RegionOperationsStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); diff --git a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStub.java b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStub.java index 94ac7ea0a833..bda6f3bed672 100644 --- a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStub.java +++ b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStub.java @@ -23,6 +23,7 @@ import com.google.cloud.compute.v1small.Operation; import com.google.cloud.compute.v1small.WaitRegionOperationRequest; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -30,6 +31,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public abstract class RegionOperationsStub implements BackgroundResource { diff --git a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java index b2d447967627..1c66a2b510e2 100644 --- a/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/stub/RegionOperationsStubSettings.java @@ -43,6 +43,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -94,6 +95,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class RegionOperationsStubSettings extends StubSettings { diff --git a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java index 9480ea267ada..809d9f7bc606 100644 --- a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java +++ b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsClient.java @@ -26,6 +26,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -198,6 +199,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @Generated("by gapic-generator-java") public class IamCredentialsClient implements BackgroundResource { private final IamCredentialsSettings settings; diff --git a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java index 6a91546f378a..6c6d18c2ef46 100644 --- a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java +++ b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/IamCredentialsSettings.java @@ -32,6 +32,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -84,6 +85,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") public class IamCredentialsSettings extends ClientSettings { diff --git a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/ServiceAccountName.java b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/ServiceAccountName.java index d538857c2abd..29071fff8871 100644 --- a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/ServiceAccountName.java +++ b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/ServiceAccountName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class ServiceAccountName implements ResourceName { private static final PathTemplate PROJECT_SERVICE_ACCOUNT = diff --git a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsCallableFactory.java b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsCallableFactory.java index 719369a4a764..37097115994c 100644 --- a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsCallableFactory.java @@ -34,6 +34,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,6 +42,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcIamCredentialsCallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsStub.java b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsStub.java index 7bcb37dd59b0..b54a7efe152d 100644 --- a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsStub.java +++ b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/GrpcIamCredentialsStub.java @@ -38,6 +38,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -45,6 +46,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcIamCredentialsStub extends IamCredentialsStub { private static final MethodDescriptor diff --git a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsCallableFactory.java b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsCallableFactory.java index fcd9f51b7a58..9de801ce60a8 100644 --- a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsCallableFactory.java @@ -32,6 +32,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -39,6 +40,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class HttpJsonIamCredentialsCallableFactory implements HttpJsonStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsStub.java b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsStub.java index 979fd23d1103..5acc718825c6 100644 --- a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsStub.java +++ b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/HttpJsonIamCredentialsStub.java @@ -44,6 +44,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -51,6 +52,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class HttpJsonIamCredentialsStub extends IamCredentialsStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); diff --git a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStub.java b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStub.java index e7a22e224f0e..3558f1c6f5e0 100644 --- a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStub.java +++ b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStub.java @@ -27,6 +27,7 @@ import com.google.cloud.iam.credentials.v1.SignJwtRequest; import com.google.cloud.iam.credentials.v1.SignJwtResponse; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -34,6 +35,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public abstract class IamCredentialsStub implements BackgroundResource { diff --git a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java index 425b0e81fe7d..21c092c1e3a2 100644 --- a/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/credentials/src/com/google/cloud/iam/credentials/v1/stub/IamCredentialsStubSettings.java @@ -52,6 +52,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -104,6 +105,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class IamCredentialsStubSettings extends StubSettings { diff --git a/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClient.java b/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClient.java index 2e72baf90ed3..0599d925334f 100644 --- a/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClient.java +++ b/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicyClient.java @@ -23,6 +23,7 @@ import java.io.IOException; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -164,6 +165,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @Generated("by gapic-generator-java") public class IAMPolicyClient implements BackgroundResource { private final IAMPolicySettings settings; diff --git a/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicySettings.java b/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicySettings.java index 560c59690c11..3a3621b77e58 100644 --- a/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicySettings.java +++ b/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/IAMPolicySettings.java @@ -30,6 +30,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -80,6 +81,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") public class IAMPolicySettings extends ClientSettings { diff --git a/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyCallableFactory.java b/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyCallableFactory.java index 3335d37bae7d..96547b3d7ca0 100644 --- a/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyCallableFactory.java @@ -34,6 +34,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,6 +42,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcIAMPolicyCallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyStub.java b/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyStub.java index 4bee05992bba..11c267d3a7f2 100644 --- a/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyStub.java +++ b/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/GrpcIAMPolicyStub.java @@ -35,6 +35,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -42,6 +43,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcIAMPolicyStub extends IAMPolicyStub { private static final MethodDescriptor setIamPolicyMethodDescriptor = diff --git a/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStub.java b/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStub.java index 1c4324ca87c2..da78e573d479 100644 --- a/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStub.java +++ b/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStub.java @@ -24,6 +24,7 @@ import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -31,6 +32,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public abstract class IAMPolicyStub implements BackgroundResource { diff --git a/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStubSettings.java b/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStubSettings.java index 23681831f557..7761748c268a 100644 --- a/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/iam/src/com/google/iam/v1/stub/IAMPolicyStubSettings.java @@ -45,6 +45,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -95,6 +96,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class IAMPolicyStubSettings extends StubSettings { diff --git a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyName.java b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyName.java index 37789fe0fe4a..9926a26800fa 100644 --- a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyName.java +++ b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class CryptoKeyName implements ResourceName { private static final PathTemplate PROJECT_LOCATION_KEY_RING_CRYPTO_KEY = diff --git a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyVersionName.java b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyVersionName.java index 94c1acf7d3b3..c874db01eba9 100644 --- a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyVersionName.java +++ b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/CryptoKeyVersionName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class CryptoKeyVersionName implements ResourceName { private static final PathTemplate PROJECT_LOCATION_KEY_RING_CRYPTO_KEY_CRYPTO_KEY_VERSION = diff --git a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/ImportJobName.java b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/ImportJobName.java index 38d3595e2e1f..11769b9fcaec 100644 --- a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/ImportJobName.java +++ b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/ImportJobName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class ImportJobName implements ResourceName { private static final PathTemplate PROJECT_LOCATION_KEY_RING_IMPORT_JOB = diff --git a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClient.java b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClient.java index 6d24c630c70f..2346dcd09a38 100644 --- a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClient.java +++ b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClient.java @@ -42,6 +42,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -630,6 +631,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @Generated("by gapic-generator-java") public class KeyManagementServiceClient implements BackgroundResource { private final KeyManagementServiceSettings settings; diff --git a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceSettings.java b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceSettings.java index e838a395e319..61f4951cdc4c 100644 --- a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceSettings.java +++ b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceSettings.java @@ -45,6 +45,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -97,6 +98,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") public class KeyManagementServiceSettings extends ClientSettings { diff --git a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyRingName.java b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyRingName.java index d2ec54cdcfbd..b2faeab39438 100644 --- a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyRingName.java +++ b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyRingName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class KeyRingName implements ResourceName { private static final PathTemplate PROJECT_LOCATION_KEY_RING = diff --git a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/LocationName.java b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/LocationName.java index 7c0935ae37dc..8d115370779b 100644 --- a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/LocationName.java +++ b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/LocationName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class LocationName implements ResourceName { private static final PathTemplate PROJECT_LOCATION = diff --git a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java index fe3fa2622bb0..546f05449d9e 100644 --- a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceCallableFactory.java @@ -34,6 +34,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,6 +42,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcKeyManagementServiceCallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java index d88a498dd169..5c94dbfd3150 100644 --- a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java +++ b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/GrpcKeyManagementServiceStub.java @@ -80,6 +80,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -87,6 +88,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcKeyManagementServiceStub extends KeyManagementServiceStub { private static final MethodDescriptor diff --git a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java index b23cdac8545e..a7c184645481 100644 --- a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java +++ b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStub.java @@ -69,6 +69,7 @@ import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -76,6 +77,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public abstract class KeyManagementServiceStub implements BackgroundResource { diff --git a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java index 614f4a5b7543..b2398a668d42 100644 --- a/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/kms/src/com/google/cloud/kms/v1/stub/KeyManagementServiceStubSettings.java @@ -97,6 +97,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -149,6 +150,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class KeyManagementServiceStubSettings diff --git a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClient.java b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClient.java index 9dcad1502321..7146943da73b 100644 --- a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClient.java +++ b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClient.java @@ -50,6 +50,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -351,6 +352,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @Generated("by gapic-generator-java") public class LibraryServiceClient implements BackgroundResource { private final LibraryServiceSettings settings; diff --git a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java index 20bd7f01c526..2bd7ba039c9c 100644 --- a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java +++ b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceSettings.java @@ -52,6 +52,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -104,6 +105,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") public class LibraryServiceSettings extends ClientSettings { diff --git a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceCallableFactory.java b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceCallableFactory.java index 5c3abfedf03d..18005b22c8b9 100644 --- a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceCallableFactory.java @@ -34,6 +34,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,6 +42,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcLibraryServiceCallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceStub.java b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceStub.java index fdf52125892b..ee7832edc449 100644 --- a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceStub.java +++ b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/GrpcLibraryServiceStub.java @@ -49,6 +49,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -56,6 +57,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcLibraryServiceStub extends LibraryServiceStub { private static final MethodDescriptor createShelfMethodDescriptor = diff --git a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceCallableFactory.java b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceCallableFactory.java index 9607f81ea19b..58598331549e 100644 --- a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceCallableFactory.java @@ -32,6 +32,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -39,6 +40,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class HttpJsonLibraryServiceCallableFactory implements HttpJsonStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceStub.java b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceStub.java index ff6f3983860e..1169d4f4afcb 100644 --- a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceStub.java +++ b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/HttpJsonLibraryServiceStub.java @@ -55,6 +55,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -62,6 +63,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class HttpJsonLibraryServiceStub extends LibraryServiceStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); diff --git a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStub.java b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStub.java index e1a94b7f25c5..e9509bdef3e4 100644 --- a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStub.java +++ b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStub.java @@ -38,6 +38,7 @@ import com.google.example.library.v1.UpdateBookRequest; import com.google.protobuf.Empty; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -45,6 +46,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public abstract class LibraryServiceStub implements BackgroundResource { diff --git a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java index f4774ebdb5eb..8e74f9c6e25d 100644 --- a/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/library/src/com/google/cloud/example/library/v1/stub/LibraryServiceStubSettings.java @@ -70,6 +70,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -122,6 +123,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class LibraryServiceStubSettings extends StubSettings { diff --git a/sdk-platform-java/test/integration/goldens/library/src/com/google/example/library/v1/BookName.java b/sdk-platform-java/test/integration/goldens/library/src/com/google/example/library/v1/BookName.java index 917a994babda..a115d587e51d 100644 --- a/sdk-platform-java/test/integration/goldens/library/src/com/google/example/library/v1/BookName.java +++ b/sdk-platform-java/test/integration/goldens/library/src/com/google/example/library/v1/BookName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class BookName implements ResourceName { private static final PathTemplate SHELF_BOOK = diff --git a/sdk-platform-java/test/integration/goldens/library/src/com/google/example/library/v1/ShelfName.java b/sdk-platform-java/test/integration/goldens/library/src/com/google/example/library/v1/ShelfName.java index 41e22d15da94..172ce6f1d71c 100644 --- a/sdk-platform-java/test/integration/goldens/library/src/com/google/example/library/v1/ShelfName.java +++ b/sdk-platform-java/test/integration/goldens/library/src/com/google/example/library/v1/ShelfName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class ShelfName implements ResourceName { private static final PathTemplate SHELF_ID = diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClient.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClient.java index 3ac4f9af1202..3b949565cc9e 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClient.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClient.java @@ -86,6 +86,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -630,6 +631,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @Generated("by gapic-generator-java") public class ConfigClient implements BackgroundResource { private final ConfigSettings settings; diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigSettings.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigSettings.java index 7dbd629d5fe8..2904dc6ec896 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigSettings.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigSettings.java @@ -77,6 +77,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -152,6 +153,7 @@ * .build(); * } */ +@NullMarked @Generated("by gapic-generator-java") public class ConfigSettings extends ClientSettings { diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClient.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClient.java index 9390d279af30..707c661a9e79 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClient.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClient.java @@ -53,6 +53,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -228,6 +229,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @Generated("by gapic-generator-java") public class LoggingClient implements BackgroundResource { private final LoggingSettings settings; diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingSettings.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingSettings.java index 1a740d51f0f7..47c2092a47ac 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingSettings.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingSettings.java @@ -49,6 +49,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -99,6 +100,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") public class LoggingSettings extends ClientSettings { diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClient.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClient.java index 8ee3f62074e8..298de5923a4d 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClient.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClient.java @@ -41,6 +41,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -207,6 +208,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @Generated("by gapic-generator-java") public class MetricsClient implements BackgroundResource { private final MetricsSettings settings; diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsSettings.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsSettings.java index 2176a3c1e1d2..5c6c60c6028e 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsSettings.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsSettings.java @@ -41,6 +41,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -91,6 +92,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") public class MetricsSettings extends ClientSettings { diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java index 87d63ca97dde..23c72df8c13f 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2Stub.java @@ -66,6 +66,7 @@ import com.google.longrunning.stub.OperationsStub; import com.google.protobuf.Empty; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -73,6 +74,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public abstract class ConfigServiceV2Stub implements BackgroundResource { diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java index 76d8a313162b..a9fb32db8506 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/ConfigServiceV2StubSettings.java @@ -96,6 +96,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -173,6 +174,7 @@ * .build(); * } */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class ConfigServiceV2StubSettings extends StubSettings { diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java index e37c3746ba55..7848f2f91655 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2CallableFactory.java @@ -34,6 +34,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,6 +42,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcConfigServiceV2CallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java index 424b550eec5c..2853af9453a4 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcConfigServiceV2Stub.java @@ -76,6 +76,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -83,6 +84,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcConfigServiceV2Stub extends ConfigServiceV2Stub { private static final MethodDescriptor diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java index 2ea721e819a5..0e603e59e1f7 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2CallableFactory.java @@ -34,6 +34,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,6 +42,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcLoggingServiceV2CallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java index 45064851889e..1021cdbeb468 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcLoggingServiceV2Stub.java @@ -47,6 +47,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -54,6 +55,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcLoggingServiceV2Stub extends LoggingServiceV2Stub { private static final MethodDescriptor deleteLogMethodDescriptor = diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java index d64bb1b3fb61..b86840e0dd06 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2CallableFactory.java @@ -34,6 +34,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,6 +42,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcMetricsServiceV2CallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java index 5d8e5dfcd366..9531166314ba 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/GrpcMetricsServiceV2Stub.java @@ -40,6 +40,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -47,6 +48,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcMetricsServiceV2Stub extends MetricsServiceV2Stub { private static final MethodDescriptor diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java index 5e2830d0e3e0..09084951ee4c 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2Stub.java @@ -36,6 +36,7 @@ import com.google.logging.v2.WriteLogEntriesResponse; import com.google.protobuf.Empty; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -43,6 +44,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public abstract class LoggingServiceV2Stub implements BackgroundResource { diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java index 38a71668b15e..129d2dce53ce 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/LoggingServiceV2StubSettings.java @@ -75,6 +75,7 @@ import java.util.Collection; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -126,6 +127,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class LoggingServiceV2StubSettings extends StubSettings { diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java index f546d2c26860..afbfe7d34893 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2Stub.java @@ -29,6 +29,7 @@ import com.google.logging.v2.UpdateLogMetricRequest; import com.google.protobuf.Empty; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -36,6 +37,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public abstract class MetricsServiceV2Stub implements BackgroundResource { diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java index 12ab94379c47..12c4baf63676 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/cloud/logging/v2/stub/MetricsServiceV2StubSettings.java @@ -57,6 +57,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -108,6 +109,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class MetricsServiceV2StubSettings extends StubSettings { diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountLocationName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountLocationName.java index 1a5aa5c8de05..178a8e99bf96 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountLocationName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountLocationName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class BillingAccountLocationName implements ResourceName { private static final PathTemplate BILLING_ACCOUNT_LOCATION = diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountName.java index 681a8031f749..7a0fcf839421 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/BillingAccountName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class BillingAccountName implements ResourceName { private static final PathTemplate BILLING_ACCOUNT = diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/CmekSettingsName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/CmekSettingsName.java index 07c7a115ab63..103c3a818915 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/CmekSettingsName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/CmekSettingsName.java @@ -26,8 +26,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class CmekSettingsName implements ResourceName { private static final PathTemplate PROJECT = diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/FolderLocationName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/FolderLocationName.java index 4860a1eb4424..4676ef17d701 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/FolderLocationName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/FolderLocationName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class FolderLocationName implements ResourceName { private static final PathTemplate FOLDER_LOCATION = diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/FolderName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/FolderName.java index 2cb041189a60..ad975e6564ff 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/FolderName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/FolderName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class FolderName implements ResourceName { private static final PathTemplate FOLDER = diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LocationName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LocationName.java index 6f29f3fd7e21..e869cb57f633 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LocationName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LocationName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class LocationName implements ResourceName { private static final PathTemplate PROJECT_LOCATION = diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogBucketName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogBucketName.java index 03ecbe72fa5c..d5af1c62075b 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogBucketName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogBucketName.java @@ -26,8 +26,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class LogBucketName implements ResourceName { private static final PathTemplate PROJECT_LOCATION_BUCKET = diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogExclusionName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogExclusionName.java index 621994445785..f5deda544cd4 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogExclusionName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogExclusionName.java @@ -26,8 +26,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class LogExclusionName implements ResourceName { private static final PathTemplate PROJECT_EXCLUSION = diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogMetricName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogMetricName.java index 019696eea596..4ed25f0ecaf5 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogMetricName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogMetricName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class LogMetricName implements ResourceName { private static final PathTemplate PROJECT_METRIC = diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogName.java index b6bc4835f353..3e7c291fb43c 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogName.java @@ -26,8 +26,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class LogName implements ResourceName { private static final PathTemplate PROJECT_LOG = diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogSinkName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogSinkName.java index 3e225abde9fc..9f8f86acccb5 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogSinkName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogSinkName.java @@ -26,8 +26,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class LogSinkName implements ResourceName { private static final PathTemplate PROJECT_SINK = diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogViewName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogViewName.java index 7a8e274b185c..83f47d206990 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogViewName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/LogViewName.java @@ -26,8 +26,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class LogViewName implements ResourceName { private static final PathTemplate PROJECT_LOCATION_BUCKET_VIEW = diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationLocationName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationLocationName.java index a747d117eceb..63390df42c17 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationLocationName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationLocationName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class OrganizationLocationName implements ResourceName { private static final PathTemplate ORGANIZATION_LOCATION = diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationName.java index 44d1cb28d139..d90f4ff73657 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/OrganizationName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class OrganizationName implements ResourceName { private static final PathTemplate ORGANIZATION = diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/ProjectName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/ProjectName.java index aa708f472427..2cc797351ff5 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/ProjectName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/ProjectName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class ProjectName implements ResourceName { private static final PathTemplate PROJECT = diff --git a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/SettingsName.java b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/SettingsName.java index fbfdd7c0d1c8..4c3f9c69f7a6 100644 --- a/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/SettingsName.java +++ b/sdk-platform-java/test/integration/goldens/logging/src/com/google/logging/v2/SettingsName.java @@ -26,8 +26,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class SettingsName implements ResourceName { private static final PathTemplate PROJECT = diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClient.java index 859ae29a5f62..9ed9579c9353 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -54,6 +54,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -358,6 +359,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @Generated("by gapic-generator-java") public class SchemaServiceClient implements BackgroundResource { private final SchemaServiceSettings settings; diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceSettings.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceSettings.java index bc1793ed7516..3a1bb72aaf88 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceSettings.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceSettings.java @@ -55,6 +55,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -105,6 +106,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") public class SchemaServiceSettings extends ClientSettings { diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index 010cc884d23f..504c1ef5067e 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -65,6 +65,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -480,6 +481,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @Generated("by gapic-generator-java") public class SubscriptionAdminClient implements BackgroundResource { private final SubscriptionAdminSettings settings; diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java index 4afdf2718a0c..b5dea6fd00af 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminSettings.java @@ -63,6 +63,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -114,6 +115,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") public class SubscriptionAdminSettings extends ClientSettings { diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClient.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClient.java index a02ba18b89b1..4017bf13db75 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -54,6 +54,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -334,6 +335,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @Generated("by gapic-generator-java") public class TopicAdminClient implements BackgroundResource { private final TopicAdminSettings settings; diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminSettings.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminSettings.java index e089bdd5688c..3cd5c31abad1 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminSettings.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminSettings.java @@ -56,6 +56,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -106,6 +107,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") public class TopicAdminSettings extends ClientSettings { diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java index 92adc0c86116..c7804ce55579 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherCallableFactory.java @@ -34,6 +34,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,6 +42,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcPublisherCallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java index 71c31ff8593e..28da8084068e 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcPublisherStub.java @@ -54,6 +54,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -61,6 +62,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcPublisherStub extends PublisherStub { private static final MethodDescriptor createTopicMethodDescriptor = diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java index 16236bc4bd0d..4f6d2494195e 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceCallableFactory.java @@ -34,6 +34,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,6 +42,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcSchemaServiceCallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java index 775b0ad332c0..6c3dcf58d2f7 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSchemaServiceStub.java @@ -54,6 +54,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -61,6 +62,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcSchemaServiceStub extends SchemaServiceStub { private static final MethodDescriptor createSchemaMethodDescriptor = diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java index 8249a721942b..92193648b691 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberCallableFactory.java @@ -34,6 +34,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,6 +42,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcSubscriberCallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java index 02f4b0cce0e4..375d6bdb1ff7 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/GrpcSubscriberStub.java @@ -62,6 +62,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -69,6 +70,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcSubscriberStub extends SubscriberStub { private static final MethodDescriptor diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStub.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStub.java index 5c7f9d6a89be..8b1ab98e2311 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStub.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStub.java @@ -43,6 +43,7 @@ import com.google.pubsub.v1.Topic; import com.google.pubsub.v1.UpdateTopicRequest; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -50,6 +51,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public abstract class PublisherStub implements BackgroundResource { diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java index 067d40923a32..30709fd96c19 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/PublisherStubSettings.java @@ -81,6 +81,7 @@ import java.util.Collection; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -131,6 +132,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class PublisherStubSettings extends StubSettings { diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java index a0335a4b1fed..a06076e66b54 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStub.java @@ -43,6 +43,7 @@ import com.google.pubsub.v1.ValidateSchemaRequest; import com.google.pubsub.v1.ValidateSchemaResponse; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -50,6 +51,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public abstract class SchemaServiceStub implements BackgroundResource { diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java index 6feb16de0c20..4871f04a3607 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SchemaServiceStubSettings.java @@ -70,6 +70,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -121,6 +122,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class SchemaServiceStubSettings extends StubSettings { diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStub.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStub.java index 115a2f2c82ae..13424d099837 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStub.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStub.java @@ -51,6 +51,7 @@ import com.google.pubsub.v1.UpdateSnapshotRequest; import com.google.pubsub.v1.UpdateSubscriptionRequest; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -58,6 +59,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public abstract class SubscriberStub implements BackgroundResource { diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java index 4e1bcbc2596f..394af9a144ff 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/stub/SubscriberStubSettings.java @@ -79,6 +79,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -130,6 +131,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class SubscriberStubSettings extends StubSettings { diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/ProjectName.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/ProjectName.java index a4f599b17206..2db74834b0de 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/ProjectName.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/ProjectName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class ProjectName implements ResourceName { private static final PathTemplate PROJECT = diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SchemaName.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SchemaName.java index b3eaa772f014..a7fcd22be396 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SchemaName.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SchemaName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class SchemaName implements ResourceName { private static final PathTemplate PROJECT_SCHEMA = diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SnapshotName.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SnapshotName.java index a3a2342396c2..bbeafc6c4ddb 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SnapshotName.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SnapshotName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class SnapshotName implements ResourceName { private static final PathTemplate PROJECT_SNAPSHOT = diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SubscriptionName.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SubscriptionName.java index 2c12a10dcde1..8ea245778aab 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SubscriptionName.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/SubscriptionName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class SubscriptionName implements ResourceName { private static final PathTemplate PROJECT_SUBSCRIPTION = diff --git a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/TopicName.java b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/TopicName.java index 798c74c892b7..5aa9b579ffbc 100644 --- a/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/TopicName.java +++ b/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/pubsub/v1/TopicName.java @@ -26,8 +26,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class TopicName implements ResourceName { private static final PathTemplate PROJECT_TOPIC = diff --git a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClient.java b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClient.java index 61a4d254232d..abbea298e8e9 100644 --- a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClient.java +++ b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClient.java @@ -40,6 +40,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -371,6 +372,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class CloudRedisClient implements BackgroundResource { diff --git a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java index 94d6f4580a16..da404eee4abc 100644 --- a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java +++ b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisSettings.java @@ -39,6 +39,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -114,6 +115,7 @@ * .build(); * } */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class CloudRedisSettings extends ClientSettings { diff --git a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/InstanceName.java b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/InstanceName.java index 58994ef5819b..603b9f8ca7ef 100644 --- a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/InstanceName.java +++ b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/InstanceName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class InstanceName implements ResourceName { private static final PathTemplate PROJECT_LOCATION_INSTANCE = diff --git a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/LocationName.java b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/LocationName.java index 8ea7eca806dc..6b5c2f14a01f 100644 --- a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/LocationName.java +++ b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/LocationName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class LocationName implements ResourceName { private static final PathTemplate PROJECT_LOCATION = diff --git a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java index ee3b618be4b9..e68811a95d94 100644 --- a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java +++ b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStub.java @@ -41,6 +41,7 @@ import com.google.protobuf.Any; import com.google.protobuf.Empty; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -48,6 +49,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public abstract class CloudRedisStub implements BackgroundResource { diff --git a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java index 6551856c0f32..c196c6066f9a 100644 --- a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/CloudRedisStubSettings.java @@ -74,6 +74,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -149,6 +150,7 @@ * .build(); * } */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") diff --git a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java index 73f0d9dc6d65..c2d3ef3c3361 100644 --- a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisCallableFactory.java @@ -35,6 +35,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -42,6 +43,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcCloudRedisCallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java index 3668310283e2..817ff56f330c 100644 --- a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java +++ b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/GrpcCloudRedisStub.java @@ -51,6 +51,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -58,6 +59,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class GrpcCloudRedisStub extends CloudRedisStub { diff --git a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisCallableFactory.java b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisCallableFactory.java index dd0148220481..9b5d2e3c10bd 100644 --- a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisCallableFactory.java @@ -33,6 +33,7 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.longrunning.Operation; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -40,6 +41,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class HttpJsonCloudRedisCallableFactory diff --git a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java index 8e4ed2536565..19ffec240831 100644 --- a/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java +++ b/sdk-platform-java/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/stub/HttpJsonCloudRedisStub.java @@ -62,6 +62,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -69,6 +70,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @BetaApi @Generated("by gapic-generator-java") public class HttpJsonCloudRedisStub extends CloudRedisStub { diff --git a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/BucketName.java b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/BucketName.java index 67619b665fdb..64f36d73175a 100644 --- a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/BucketName.java +++ b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/BucketName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class BucketName implements ResourceName { private static final PathTemplate PROJECT_BUCKET = diff --git a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/CryptoKeyName.java b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/CryptoKeyName.java index f10da50fb9e8..b9ccbab4b6fa 100644 --- a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/CryptoKeyName.java +++ b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/CryptoKeyName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class CryptoKeyName implements ResourceName { private static final PathTemplate PROJECT_LOCATION_KEY_RING_CRYPTO_KEY = diff --git a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/NotificationName.java b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/NotificationName.java index f69d2add31ac..5e33a2ad301e 100644 --- a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/NotificationName.java +++ b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/NotificationName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class NotificationName implements ResourceName { private static final PathTemplate PROJECT_BUCKET_NOTIFICATION = diff --git a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/ProjectName.java b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/ProjectName.java index 813ee0879415..790851e53aa8 100644 --- a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/ProjectName.java +++ b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/ProjectName.java @@ -25,8 +25,10 @@ import java.util.Map; import java.util.Objects; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked @Generated("by gapic-generator-java") public class ProjectName implements ResourceName { private static final PathTemplate PROJECT = diff --git a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/StorageClient.java b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/StorageClient.java index a5dfd3ca29b2..38af59ac85e2 100644 --- a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/StorageClient.java +++ b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/StorageClient.java @@ -41,6 +41,7 @@ import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -667,6 +668,7 @@ * *

              Please refer to the GitHub repository's samples for more quickstart code snippets. */ +@NullMarked @Generated("by gapic-generator-java") public class StorageClient implements BackgroundResource { private final StorageSettings settings; diff --git a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/StorageSettings.java b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/StorageSettings.java index 15e9e7d78cfd..14f6bcbea995 100644 --- a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/StorageSettings.java +++ b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/StorageSettings.java @@ -44,6 +44,7 @@ import java.io.IOException; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -94,6 +95,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") public class StorageSettings extends ClientSettings { diff --git a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageCallableFactory.java b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageCallableFactory.java index 272e2c8c22c6..423c5d864576 100644 --- a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageCallableFactory.java +++ b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageCallableFactory.java @@ -34,6 +34,7 @@ import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -41,6 +42,7 @@ * *

              This class is for advanced usage. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcStorageCallableFactory implements GrpcStubCallableFactory { diff --git a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageStub.java b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageStub.java index 5335577783cd..bc6ce0b29f70 100644 --- a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageStub.java +++ b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/GrpcStorageStub.java @@ -87,6 +87,7 @@ import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -94,6 +95,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public class GrpcStorageStub extends StorageStub { private static final MethodDescriptor deleteBucketMethodDescriptor = diff --git a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStub.java b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStub.java index f02424e45e16..f68895ed8f02 100644 --- a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStub.java +++ b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStub.java @@ -75,6 +75,7 @@ import com.google.storage.v2.WriteObjectRequest; import com.google.storage.v2.WriteObjectResponse; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -82,6 +83,7 @@ * *

              This class is for advanced usage and reflects the underlying API directly. */ +@NullMarked @Generated("by gapic-generator-java") public abstract class StorageStub implements BackgroundResource { diff --git a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStubSettings.java b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStubSettings.java index 1cb752596388..83dd99d89c31 100644 --- a/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStubSettings.java +++ b/sdk-platform-java/test/integration/goldens/storage/src/com/google/storage/v2/stub/StorageStubSettings.java @@ -103,6 +103,7 @@ import java.time.Duration; import java.util.List; import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; // AUTO-GENERATED DOCUMENTATION AND CLASS. /** @@ -153,6 +154,7 @@ * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. */ +@NullMarked @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") public class StorageStubSettings extends StubSettings { From 87dda5dfd8e913262c7ada0d078040cf6597c645 Mon Sep 17 00:00:00 2001 From: Keshav Dandeva Date: Thu, 25 Jun 2026 13:04:15 +0200 Subject: [PATCH 63/82] fix(bigquery-jdbc): propagate connection proxy settings to auth library (#13539) b/526579065 https://github.com/googleapis/google-cloud-java/issues/13494 This PR resolves an issue where the BigQuery JDBC driver fails to connect/authenticate in proxy-enforced network environments, resulting in authentication timeouts. ### Problem While the driver successfully parses connection-specific proxy parameters (`ProxyHost` and `ProxyPort` in the connection string) and configures the main BigQuery client, it **does not** propagate them to the Google Auth Library credential objects (used to fetch/refresh OAuth2 access tokens). As a result, token fetch requests bypass the proxy and attempt direct egress to `oauth2.googleapis.com`, which is blocked by the firewall. ### Solution 1. **Reordered Constructor:** Updated `BigQueryConnection.java` to parse HTTP proxy settings and build `HttpTransportOptions` *before* instantiating credentials. 2. **Propagated Transport Factory:** Extracted the proxy-configured `HttpTransportFactory` and passed it into the credentials helper (`BigQueryJdbcOAuthUtility.getCredentials(...)`). 3. **Updated Auth Utility:** Overloaded and updated all authentication methods inside `BigQueryJdbcOAuthUtility.java` (`getGoogleServiceAccountCredentials`, `getUserAuthorizer`, `getExternalAccountAuthCredentials`, and `getServiceAccountImpersonatedCredentials`) to accept `HttpTransportFactory` and apply it to their respective credential builders. --- ## Testing Done ### 1. Unit Tests Added regression tests to `BigQueryJdbcOAuthUtilityTest.java` to assert that `HttpTransportFactory` is correctly set on the built credentials: * `testGetCredentialsPropagatesHttpTransportFactory` (Service Account Credentials) * `testGetImpersonatedCredentialsPropagatesHttpTransportFactory` (Impersonated Credentials) ### 2. Manual Verification Verified routing in a network-isolated environment using Docker: * Set up a local **Squid proxy** on port `3128` and a mock HTTPS server hosting the `/token` endpoint on port `45825` on the host loopback. * Ran the client verifier container inside an isolated Docker bridge network (blocking direct access to the host loopback). * Configured the connection URL string with proxy details: `;ProxyHost=host.docker.internal;ProxyPort=3128;`. * **Result:** The connection was established successfully, and the Squid proxy log recorded the authentication tunnel request: `CONNECT localhost:45825 - HIER_DIRECT/::1 -` * Omitting proxy settings correctly threw a `Connection refused` exception and left Squid logs empty, proving that proxy routing was strictly enforced and active. --- .../bigquery/jdbc/BigQueryConnection.java | 40 +++++--- .../jdbc/BigQueryJdbcOAuthUtility.java | 98 +++++++++++++++---- .../jdbc/BigQueryJdbcOAuthUtilityTest.java | 94 ++++++++++++++++-- 3 files changed, 188 insertions(+), 44 deletions(-) diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java index 1146f4d46d95..8a2fc25ddcf3 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java @@ -24,6 +24,7 @@ import com.google.api.gax.rpc.HeaderProvider; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.auth.Credentials; +import com.google.auth.http.HttpTransportFactory; import com.google.cloud.bigquery.BigQuery; import com.google.cloud.bigquery.BigQueryException; import com.google.cloud.bigquery.BigQueryOptions; @@ -265,11 +266,34 @@ public class BigQueryConnection extends BigQueryNoOpsConnection { String.valueOf(ds.getRequestGoogleDriveScope()), BigQueryJdbcUrlUtility.REQUEST_GOOGLE_DRIVE_SCOPE_PROPERTY_NAME); + Map proxyProperties = + BigQueryJdbcProxyUtility.parseProxyProperties(ds, this.connectionClassName); + + this.sslTrustStorePath = ds.getSSLTrustStorePath(); + this.sslTrustStorePassword = ds.getSSLTrustStorePassword(); + this.httpConnectTimeout = ds.getHttpConnectTimeout(); + this.httpReadTimeout = ds.getHttpReadTimeout(); + + this.httpTransportOptions = + BigQueryJdbcProxyUtility.getHttpTransportOptions( + proxyProperties, + this.sslTrustStorePath, + this.sslTrustStorePassword, + this.httpConnectTimeout, + this.httpReadTimeout, + this.connectionClassName); + + HttpTransportFactory httpTransportFactory = + this.httpTransportOptions != null + ? this.httpTransportOptions.getHttpTransportFactory() + : null; + this.credentials = BigQueryJdbcOAuthUtility.getCredentials( authProperties, overrideProperties, this.reqGoogleDriveScope, + httpTransportFactory, this.connectionClassName); String defaultDatasetString = ds.getDefaultDataset(); if (defaultDatasetString == null || defaultDatasetString.trim().isEmpty()) { @@ -302,22 +326,6 @@ public class BigQueryConnection extends BigQueryNoOpsConnection { this.destinationDataset = ds.getDestinationDataset(); this.destinationDatasetExpirationTime = ds.getDestinationDatasetExpirationTime(); this.kmsKeyName = ds.getKmsKeyName(); - Map proxyProperties = - BigQueryJdbcProxyUtility.parseProxyProperties(ds, this.connectionClassName); - - this.sslTrustStorePath = ds.getSSLTrustStorePath(); - this.sslTrustStorePassword = ds.getSSLTrustStorePassword(); - this.httpConnectTimeout = ds.getHttpConnectTimeout(); - this.httpReadTimeout = ds.getHttpReadTimeout(); - - this.httpTransportOptions = - BigQueryJdbcProxyUtility.getHttpTransportOptions( - proxyProperties, - this.sslTrustStorePath, - this.sslTrustStorePassword, - this.httpConnectTimeout, - this.httpReadTimeout, - this.connectionClassName); this.transportChannelProvider = BigQueryJdbcProxyUtility.getTransportChannelProvider( proxyProperties, diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcOAuthUtility.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcOAuthUtility.java index 0b9166d4cda2..d2236a7ad90b 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcOAuthUtility.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcOAuthUtility.java @@ -21,6 +21,7 @@ import com.google.api.client.util.PemReader; import com.google.api.client.util.SecurityUtils; +import com.google.auth.http.HttpTransportFactory; import com.google.auth.oauth2.AccessToken; import com.google.auth.oauth2.ClientId; import com.google.auth.oauth2.ExternalAccountCredentials; @@ -51,6 +52,7 @@ import java.net.URI; import java.net.URISyntaxException; import java.net.URL; +import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Paths; import java.security.GeneralSecurityException; @@ -262,6 +264,7 @@ static GoogleCredentials getCredentials( Map authProperties, Map overrideProperties, Boolean reqGoogleDriveScopeBool, + HttpTransportFactory httpTransportFactory, String callerClassName) { LOG.finer("++enter++\t" + callerClassName); @@ -272,21 +275,26 @@ static GoogleCredentials getCredentials( switch (authType) { case GOOGLE_SERVICE_ACCOUNT: credentials = - getGoogleServiceAccountCredentials(authProperties, overrideProperties, callerClassName); + getGoogleServiceAccountCredentials( + authProperties, overrideProperties, httpTransportFactory, callerClassName); break; case GOOGLE_USER_ACCOUNT: credentials = - getGoogleUserAccountCredentials(authProperties, overrideProperties, callerClassName); + getGoogleUserAccountCredentials( + authProperties, overrideProperties, httpTransportFactory, callerClassName); break; case PRE_GENERATED_TOKEN: credentials = - getPreGeneratedTokensCredentials(authProperties, overrideProperties, callerClassName); + getPreGeneratedTokensCredentials( + authProperties, overrideProperties, httpTransportFactory, callerClassName); break; case APPLICATION_DEFAULT_CREDENTIALS: - credentials = getApplicationDefaultCredentials(callerClassName); + credentials = getApplicationDefaultCredentials(httpTransportFactory, callerClassName); break; case EXTERNAL_ACCOUNT_AUTH: - credentials = getExternalAccountAuthCredentials(authProperties, callerClassName); + credentials = + getExternalAccountAuthCredentials( + authProperties, httpTransportFactory, callerClassName); break; default: IllegalStateException ex = new IllegalStateException(OAUTH_TYPE_ERROR_MESSAGE); @@ -295,7 +303,7 @@ static GoogleCredentials getCredentials( } return getServiceAccountImpersonatedCredentials( - credentials, reqGoogleDriveScopeBool, authProperties); + credentials, reqGoogleDriveScopeBool, authProperties, httpTransportFactory); } private static boolean isFileExists(String filename) { @@ -326,6 +334,7 @@ private static boolean isJson(byte[] value) { private static GoogleCredentials getGoogleServiceAccountCredentials( Map authProperties, Map overrideProperties, + HttpTransportFactory httpTransportFactory, String callerClassName) { LOG.finer("++enter++\t" + callerClassName); @@ -370,6 +379,10 @@ private static GoogleCredentials getGoogleServiceAccountCredentials( throw new BigQueryJdbcRuntimeException("No valid credentials provided."); } + if (httpTransportFactory != null) { + builder.setHttpTransportFactory(httpTransportFactory); + } + if (overrideProperties.containsKey(BigQueryJdbcUrlUtility.OAUTH2_TOKEN_URI_PROPERTY_NAME)) { builder.setTokenServerUri( new URI(overrideProperties.get(BigQueryJdbcUrlUtility.OAUTH2_TOKEN_URI_PROPERTY_NAME))); @@ -391,6 +404,7 @@ static UserAuthorizer getUserAuthorizer( Map authProperties, Map overrideProperties, int port, + HttpTransportFactory httpTransportFactory, String callerClassName) throws URISyntaxException { LOG.finer("++enter++\t" + callerClassName); @@ -411,6 +425,10 @@ static UserAuthorizer getUserAuthorizer( .setScopes(scopes) .setCallbackUri(URI.create("http://localhost:" + port)); + if (httpTransportFactory != null) { + userAuthorizerBuilder.setHttpTransportFactory(httpTransportFactory); + } + if (overrideProperties.containsKey(BigQueryJdbcUrlUtility.OAUTH2_TOKEN_URI_PROPERTY_NAME)) { userAuthorizerBuilder.setTokenServerUri( new URI(overrideProperties.get(BigQueryJdbcUrlUtility.OAUTH2_TOKEN_URI_PROPERTY_NAME))); @@ -420,14 +438,23 @@ static UserAuthorizer getUserAuthorizer( } static UserCredentials getCredentialsFromCode( - UserAuthorizer userAuthorizer, String code, String callerClassName) throws IOException { + UserAuthorizer userAuthorizer, + String code, + HttpTransportFactory httpTransportFactory, + String callerClassName) + throws IOException { LOG.finer("++enter++\t" + callerClassName); - return userAuthorizer.getCredentialsFromCode(code, URI.create("")); + UserCredentials credentials = userAuthorizer.getCredentialsFromCode(code, URI.create("")); + if (httpTransportFactory != null) { + credentials = credentials.toBuilder().setHttpTransportFactory(httpTransportFactory).build(); + } + return credentials; } private static GoogleCredentials getGoogleUserAccountCredentials( Map authProperties, Map overrideProperties, + HttpTransportFactory httpTransportFactory, String callerClassName) { LOG.finer("++enter++\t" + callerClassName); try { @@ -435,7 +462,8 @@ private static GoogleCredentials getGoogleUserAccountCredentials( serverSocket.setSoTimeout(USER_AUTH_TIMEOUT_MS); int port = serverSocket.getLocalPort(); UserAuthorizer userAuthorizer = - getUserAuthorizer(authProperties, overrideProperties, port, callerClassName); + getUserAuthorizer( + authProperties, overrideProperties, port, httpTransportFactory, callerClassName); URL authURL = userAuthorizer.getAuthorizationUrl("user", "", URI.create("")); String code; @@ -468,7 +496,7 @@ private static GoogleCredentials getGoogleUserAccountCredentials( throw new BigQueryJdbcRuntimeException("User auth only supported in desktop environments"); } - return getCredentialsFromCode(userAuthorizer, code, callerClassName); + return getCredentialsFromCode(userAuthorizer, code, httpTransportFactory, callerClassName); } catch (IOException | URISyntaxException ex) { throw new BigQueryJdbcRuntimeException( "Failed to establish connection using User Account authentication", ex); @@ -503,12 +531,13 @@ private static GoogleCredentials getPreGeneratedAccessTokenCredentials( static GoogleCredentials getPreGeneratedTokensCredentials( Map authProperties, Map overrideProperties, + HttpTransportFactory httpTransportFactory, String callerClassName) { LOG.finer("++enter++\t" + callerClassName); if (authProperties.containsKey(BigQueryJdbcUrlUtility.OAUTH_REFRESH_TOKEN_PROPERTY_NAME)) { try { return getPreGeneratedRefreshTokenCredentials( - authProperties, overrideProperties, callerClassName); + authProperties, overrideProperties, httpTransportFactory, callerClassName); } catch (URISyntaxException ex) { throw new BigQueryJdbcRuntimeException( "URISyntaxException during getPreGeneratedTokensCredentials", ex); @@ -522,6 +551,7 @@ static GoogleCredentials getPreGeneratedTokensCredentials( static UserCredentials getPreGeneratedRefreshTokenCredentials( Map authProperties, Map overrideProperties, + HttpTransportFactory httpTransportFactory, String callerClassName) throws URISyntaxException { LOG.finer("++enter++\t" + callerClassName); @@ -534,6 +564,10 @@ static UserCredentials getPreGeneratedRefreshTokenCredentials( .setClientSecret( authProperties.get(BigQueryJdbcUrlUtility.OAUTH_CLIENT_SECRET_PROPERTY_NAME)); + if (httpTransportFactory != null) { + userCredentialsBuilder.setHttpTransportFactory(httpTransportFactory); + } + if (overrideProperties.containsKey(BigQueryJdbcUrlUtility.OAUTH2_TOKEN_URI_PROPERTY_NAME)) { userCredentialsBuilder.setTokenServerUri( new URI(overrideProperties.get(BigQueryJdbcUrlUtility.OAUTH2_TOKEN_URI_PROPERTY_NAME))); @@ -548,10 +582,14 @@ static UserCredentials getPreGeneratedRefreshTokenCredentials( return userCredentialsBuilder.build(); } - private static GoogleCredentials getApplicationDefaultCredentials(String callerClassName) { + private static GoogleCredentials getApplicationDefaultCredentials( + HttpTransportFactory httpTransportFactory, String callerClassName) { LOG.finer("++enter++\t" + callerClassName); try { - GoogleCredentials credentials = GoogleCredentials.getApplicationDefault(); + GoogleCredentials credentials = + httpTransportFactory != null + ? GoogleCredentials.getApplicationDefault(httpTransportFactory) + : GoogleCredentials.getApplicationDefault(); String principal = "unknown"; if (credentials instanceof ServiceAccountCredentials) { principal = ((ServiceAccountCredentials) credentials).getClientEmail(); @@ -572,7 +610,9 @@ private static GoogleCredentials getApplicationDefaultCredentials(String callerC } private static GoogleCredentials getExternalAccountAuthCredentials( - Map authProperties, String callerClassName) { + Map authProperties, + HttpTransportFactory httpTransportFactory, + String callerClassName) { LOG.finer("++enter++\t" + callerClassName); try { JsonObject jsonObject = null; @@ -609,18 +649,28 @@ private static GoogleCredentials getExternalAccountAuthCredentials( } } + ExternalAccountCredentials credentials; if (credentialsPath != null) { - return ExternalAccountCredentials.fromStream( - Files.newInputStream(Paths.get(credentialsPath))); + try (InputStream stream = Files.newInputStream(Paths.get(credentialsPath))) { + credentials = + httpTransportFactory != null + ? ExternalAccountCredentials.fromStream(stream, httpTransportFactory) + : ExternalAccountCredentials.fromStream(stream); + } } else if (jsonObject != null) { - return ExternalAccountCredentials.fromStream( - new ByteArrayInputStream(jsonObject.toString().getBytes())); + InputStream stream = + new ByteArrayInputStream(jsonObject.toString().getBytes(StandardCharsets.UTF_8)); + credentials = + httpTransportFactory != null + ? ExternalAccountCredentials.fromStream(stream, httpTransportFactory) + : ExternalAccountCredentials.fromStream(stream); } else { IllegalArgumentException ex = new IllegalArgumentException("Insufficient info provided for external authentication"); LOG.severe(ex.getMessage(), ex); throw ex; } + return credentials; } catch (IOException e) { throw new BigQueryJdbcRuntimeException( "IOException during getExternalAccountAuthCredentials", e); @@ -634,7 +684,8 @@ private static GoogleCredentials getExternalAccountAuthCredentials( private static GoogleCredentials getServiceAccountImpersonatedCredentials( GoogleCredentials credentials, Boolean reqGoogleDriveScopeBool, - Map authProperties) { + Map authProperties, + HttpTransportFactory httpTransportFactory) { String impersonationEmail = authProperties.get(BigQueryJdbcUrlUtility.OAUTH_SA_IMPERSONATION_EMAIL_PROPERTY_NAME); @@ -684,6 +735,15 @@ private static GoogleCredentials getServiceAccountImpersonatedCredentials( throw ex; } + if (httpTransportFactory != null) { + return ImpersonatedCredentials.create( + credentials, + impersonationEmail, + impersonationChain, + impersonationScopes, + impersonationLifetimeInt, + httpTransportFactory); + } return ImpersonatedCredentials.create( credentials, impersonationEmail, diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcOAuthUtilityTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcOAuthUtilityTest.java index f785173c00c1..1a086782e341 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcOAuthUtilityTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcOAuthUtilityTest.java @@ -22,8 +22,10 @@ import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; +import com.google.auth.http.HttpTransportFactory; import com.google.auth.oauth2.GoogleCredentials; import com.google.auth.oauth2.ImpersonatedCredentials; +import com.google.auth.oauth2.ServiceAccountCredentials; import com.google.auth.oauth2.UserAuthorizer; import com.google.auth.oauth2.UserCredentials; import com.google.cloud.bigquery.exception.BigQueryJdbcRuntimeException; @@ -108,7 +110,8 @@ public void testInvalidTokenUriForAuthType0() { DataSource.fromUrl(connectionString).getOverrideProperties(); try { - BigQueryJdbcOAuthUtility.getCredentials(oauthProperties, overrideProperties, false, null); + BigQueryJdbcOAuthUtility.getCredentials( + oauthProperties, overrideProperties, false, null, null); Assertions.fail(); } catch (BigQueryJdbcRuntimeException e) { assertThat(e.getMessage()).contains("Validation failure"); @@ -164,7 +167,8 @@ public void testGetCredentialsForPreGeneratedToken() { null); GoogleCredentials credentials = - BigQueryJdbcOAuthUtility.getCredentials(authProperties, Collections.EMPTY_MAP, false, null); + BigQueryJdbcOAuthUtility.getCredentials( + authProperties, Collections.EMPTY_MAP, false, null, null); assertThat(credentials).isNotNull(); } @@ -184,7 +188,8 @@ public void testGetCredentialsForPreGeneratedTokenTPC() throws IOException { Map overrideProperties = new HashMap<>(stringStringMap); GoogleCredentials credentials = - BigQueryJdbcOAuthUtility.getCredentials(authProperties, overrideProperties, false, null); + BigQueryJdbcOAuthUtility.getCredentials( + authProperties, overrideProperties, false, null, null); assertThat(credentials.getUniverseDomain()).isEqualTo("testDomain"); } @@ -199,7 +204,7 @@ public void testGetCredentialsForApplicationDefault() { null); GoogleCredentials credentials = - BigQueryJdbcOAuthUtility.getCredentials(authProperties, null, false, null); + BigQueryJdbcOAuthUtility.getCredentials(authProperties, null, false, null, null); assertThat(credentials).isNotNull(); } @@ -243,7 +248,7 @@ public void testGenerateUserAuthURL() { UserAuthorizer userAuthorizer = BigQueryJdbcOAuthUtility.getUserAuthorizer( - authProperties, new HashMap(), USER_AUTH_PORT, null); + authProperties, new HashMap(), USER_AUTH_PORT, null, null); String userId = "test_user"; String state = "test_state"; @@ -276,7 +281,7 @@ public void testGenerateUserAuthURLOverrideOauthEndpoint() { UserAuthorizer userAuthorizer = BigQueryJdbcOAuthUtility.getUserAuthorizer( - authProperties, overrideProperties, USER_AUTH_PORT, null); + authProperties, overrideProperties, USER_AUTH_PORT, null, null); assertThat(overrideTokenSeverURI).isEqualTo(userAuthorizer.toBuilder().getTokenServerUri()); } catch (URISyntaxException e) { @@ -317,7 +322,7 @@ public void testParseOverridePropsForRefreshTokenAuth() { UserCredentials userCredentials = BigQueryJdbcOAuthUtility.getPreGeneratedRefreshTokenCredentials( - authProperties, overrideProperties, null); + authProperties, overrideProperties, null, null); assertThat(userCredentials.toBuilder().getTokenServerUri()) .isEqualTo(URI.create("https://oauth2-private.p.googleapis.com/token")); @@ -427,7 +432,7 @@ public void testGetServiceAccountImpersonatedCredentialsForADC() throws Exceptio GoogleCredentials credentials = BigQueryJdbcOAuthUtility.getCredentials( - authProperties, java.util.Collections.EMPTY_MAP, false, null); + authProperties, java.util.Collections.EMPTY_MAP, false, null, null); assertThat(credentials).isInstanceOf(ImpersonatedCredentials.class); assertThat(((ImpersonatedCredentials) credentials).getSourceCredentials()) @@ -445,7 +450,8 @@ public void testGetServiceAccountImpersonatedCredentials() { .toString()), ""); GoogleCredentials credentials = - BigQueryJdbcOAuthUtility.getCredentials(authProperties, Collections.EMPTY_MAP, false, null); + BigQueryJdbcOAuthUtility.getCredentials( + authProperties, Collections.EMPTY_MAP, false, null, null); assertThat(credentials).isInstanceOf(ImpersonatedCredentials.class); } @@ -489,4 +495,74 @@ public void testPrivateKeyFromP12Bytes_wrong_password() { assertTrue(false); } } + + @Test + public void testGetCredentialsPropagatesHttpTransportFactory() { + Map authProperties = + BigQueryJdbcOAuthUtility.parseOAuthProperties( + DataSource.fromUrl( + "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" + + "ProjectId=MyBigQueryProject;OAuthType=0;" + + "OAuthServiceAcctEmail=dummytest@dummytest.iam.gserviceaccount.com;" + + "OAuthPvtKey=" + + fake_pkcs8_key + + ";"), + null); + + HttpTransportFactory dummyFactory = () -> null; + + GoogleCredentials credentials = + BigQueryJdbcOAuthUtility.getCredentials( + authProperties, Collections.emptyMap(), false, dummyFactory, null); + + assertThat(credentials).isInstanceOf(ServiceAccountCredentials.class); + assertThat(((ServiceAccountCredentials) credentials).toBuilder().getHttpTransportFactory()) + .isEqualTo(dummyFactory); + } + + @Test + public void testGetImpersonatedCredentialsPropagatesHttpTransportFactory() { + Map authProperties = + BigQueryJdbcOAuthUtility.parseOAuthProperties( + DataSource.fromUrl( + "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" + + "ProjectId=MyBigQueryProject;OAuthType=0;" + + "OAuthServiceAcctEmail=dummytest@dummytest.iam.gserviceaccount.com;" + + "OAuthPvtKey=" + + fake_pkcs8_key + + ";" + + "ServiceAccountImpersonationEmail=impersonated@email.com;"), + null); + + HttpTransportFactory dummyFactory = () -> null; + + GoogleCredentials credentials = + BigQueryJdbcOAuthUtility.getCredentials( + authProperties, Collections.emptyMap(), false, dummyFactory, null); + + assertThat(credentials).isInstanceOf(ImpersonatedCredentials.class); + assertThat(((ImpersonatedCredentials) credentials).toBuilder().getHttpTransportFactory()) + .isEqualTo(dummyFactory); + } + + @Test + public void testGetPreGeneratedRefreshTokenCredentialsPropagatesHttpTransportFactory() { + Map authProperties = + BigQueryJdbcOAuthUtility.parseOAuthProperties( + DataSource.fromUrl( + "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" + + "ProjectId=MyBigQueryProject;OAuthType=2;" + + "OAuthRefreshToken=dummy_refresh_token;OAuthClientId=dummy_client_id;OAuthClientSecret=dummy_client_secret;"), + null); + + HttpTransportFactory dummyFactory = () -> null; + + GoogleCredentials credentials = + BigQueryJdbcOAuthUtility.getCredentials( + authProperties, Collections.emptyMap(), false, dummyFactory, null); + + assertThat(credentials).isInstanceOf(UserCredentials.class); + assertThat(((UserCredentials) credentials).toBuilder().getHttpTransportFactory()) + .isEqualTo(dummyFactory); + } } From ab9669a1d41d1b24b997a7a5cfc15d580c8cca0a Mon Sep 17 00:00:00 2001 From: Keshav Dandeva Date: Thu, 25 Jun 2026 13:43:54 +0200 Subject: [PATCH 64/82] feat(bigquery-jdbc): add `EnableProjectDiscovery` connection property for metadata methods (#13344) b/499078725 This PR implements the `EnableProjectDiscovery` connection property into the BigQuery JDBC driver. Enabling this property (default `false`) allows JDBC database metadata methods (like `getCatalogs()` and `getSchemas()`) to discover and query datasets across all Google Cloud projects accessible to the client credentials, rather than being confined to the single default `ProjectId` specified in the connection URL. #### Changes - **Connection Parameter Parsing**: Added parsing for `EnableProjectDiscovery` in `BigQueryJdbcUrlUtility` and configured it in `DataSource`. - **SDK Integration**: Implemented `BigQueryConnection.getDiscoveredProjects()` to utilize the `BigQuery.listProjects()` core SDK method - **Resilience and Caching**: - Connection-scoped caching is implemented via `discoveredProjectsCache`. - **Metadata Integration**: Integrated discovered projects inside `BigQueryDatabaseMetaData.getAccessibleCatalogNames()` so that catalog and schema metadata fetches automatically query across all accessible projects when `EnableProjectDiscovery` is enabled. --- .../bigquery/jdbc/BigQueryConnection.java | 30 +++++ .../jdbc/BigQueryDatabaseMetaData.java | 43 +++--- .../bigquery/jdbc/BigQueryJdbcUrlUtility.java | 9 ++ .../cloud/bigquery/jdbc/DataSource.java | 22 +++ .../bigquery/jdbc/BigQueryConnectionTest.java | 84 ++++++++++++ .../jdbc/BigQueryDatabaseMetaDataTest.java | 126 +++++++++++++++++- .../jdbc/BigQueryJdbcUrlUtilityTest.java | 19 +++ 7 files changed, 316 insertions(+), 17 deletions(-) diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java index 8a2fc25ddcf3..e146e221049a 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java @@ -19,6 +19,7 @@ import com.google.api.gax.core.CredentialsProvider; import com.google.api.gax.core.FixedCredentialsProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.paging.Page; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.FixedHeaderProvider; import com.google.api.gax.rpc.HeaderProvider; @@ -32,6 +33,7 @@ import com.google.cloud.bigquery.DatasetId; import com.google.cloud.bigquery.Job; import com.google.cloud.bigquery.JobInfo; +import com.google.cloud.bigquery.Project; import com.google.cloud.bigquery.QueryJobConfiguration; import com.google.cloud.bigquery.QueryJobConfiguration.JobCreationMode; import com.google.cloud.bigquery.exception.BigQueryJdbcException; @@ -42,6 +44,7 @@ import com.google.cloud.bigquery.storage.v1.BigQueryWriteClient; import com.google.cloud.bigquery.storage.v1.BigQueryWriteSettings; import com.google.cloud.http.HttpTransportOptions; +import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSortedSet; import java.io.IOException; import java.io.InputStream; @@ -122,6 +125,7 @@ public class BigQueryConnection extends BigQueryNoOpsConnection { BigQueryJdbcUrlUtility.SWA_APPEND_ROW_COUNT_PROPERTY_NAME, BigQueryJdbcUrlUtility.SWA_ACTIVATION_ROW_COUNT_PROPERTY_NAME, BigQueryJdbcUrlUtility.FILTER_TABLES_ON_DEFAULT_DATASET_PROPERTY_NAME, + BigQueryJdbcUrlUtility.ENABLE_PROJECT_DISCOVERY_PROPERTY_NAME, BigQueryJdbcUrlUtility.REQUEST_GOOGLE_DRIVE_SCOPE_PROPERTY_NAME, BigQueryJdbcUrlUtility.SSL_TRUST_STORE_PROPERTY_NAME, BigQueryJdbcUrlUtility.MAX_BYTES_BILLED_PROPERTY_NAME, @@ -171,6 +175,8 @@ public class BigQueryConnection extends BigQueryNoOpsConnection { int highThroughputMinTableSize; int highThroughputActivationRatio; boolean enableSession; + boolean enableProjectDiscovery; + private List discoveredProjectsCache; boolean unsupportedHTAPIFallback; boolean useQueryCache; String queryDialect; @@ -346,6 +352,7 @@ public class BigQueryConnection extends BigQueryNoOpsConnection { this.additionalProjects = ds.getAdditionalProjects(); this.filterTablesOnDefaultDataset = ds.getFilterTablesOnDefaultDataset(); + this.enableProjectDiscovery = ds.getEnableProjectDiscovery(); this.requestGoogleDriveScope = ds.getRequestGoogleDriveScope(); this.metadataFetchThreadCount = ds.getMetadataFetchThreadCount(); this.requestReason = ds.getRequestReason(); @@ -1320,6 +1327,29 @@ private boolean checkIsReadOnlyTokenUsed(Map authProps) { return false; } + public boolean isEnableProjectDiscovery() { + return this.enableProjectDiscovery; + } + + public synchronized List getDiscoveredProjects() throws SQLException { + if (this.discoveredProjectsCache != null) { + return this.discoveredProjectsCache; + } + + try { + BigQuery bigQuery = getBigQuery(); + List projects = new ArrayList<>(); + Page projectPage = bigQuery.listProjects(); + for (Project project : projectPage.iterateAll()) { + projects.add(project.getProjectId()); + } + this.discoveredProjectsCache = ImmutableList.copyOf(projects); + } catch (Exception e) { + throw new BigQueryJdbcException("Failed to list all accessible projects.", e); + } + return this.discoveredProjectsCache; + } + @Override public T unwrap(Class iface) throws SQLException { if (iface.isInstance(this)) { diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java index 73da585db087..836b3cb3ea6c 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java @@ -1996,14 +1996,14 @@ Comparator defineGetTablesComparator(FieldList resultSchemaField } @Override - public ResultSet getSchemas() { + public ResultSet getSchemas() throws SQLException { LOG.info("getSchemas() called"); return getSchemas(null, null); } @Override - public ResultSet getCatalogs() { + public ResultSet getCatalogs() throws SQLException { LOG.info("getCatalogs() called"); final List accessibleCatalogs = getAccessibleCatalogNames(); @@ -3618,7 +3618,7 @@ public RowIdLifetime getRowIdLifetime() { } @Override - public ResultSet getSchemas(String catalog, String schemaPattern) { + public ResultSet getSchemas(String catalog, String schemaPattern) throws SQLException { if ((catalog != null && catalog.isEmpty()) || (schemaPattern != null && schemaPattern.isEmpty())) { LOG.warning("Returning empty ResultSet as catalog or schemaPattern is an empty string."); @@ -3641,20 +3641,20 @@ public ResultSet getSchemas(String catalog, String schemaPattern) { final FieldList localResultSchemaFields = resultSchemaFields; List projectsToScanList = new ArrayList<>(); - if (catalogParam != null) { - projectsToScanList.add(catalogParam); - } else { - projectsToScanList.addAll(getAccessibleCatalogNames()); - } + try { + if (catalogParam != null) { + projectsToScanList.add(catalogParam); + } else { + projectsToScanList.addAll(getAccessibleCatalogNames()); + } - if (projectsToScanList.isEmpty()) { - LOG.info( - "No valid projects to scan (primary, specified, or additional). Returning empty" - + " resultset."); - return; - } + if (projectsToScanList.isEmpty()) { + LOG.info( + "No valid projects to scan (primary, specified, or additional). Returning empty" + + " resultset."); + return; + } - try { for (String currentProjectToScan : projectsToScanList) { if (Thread.currentThread().isInterrupted()) { LOG.warning( @@ -3707,6 +3707,13 @@ public ResultSet getSchemas(String catalog, String schemaPattern) { } catch (Throwable t) { LOG.severe("Unexpected error in schema fetcher runnable: " + t.getMessage()); + Exception ex = (t instanceof Exception) ? (Exception) t : new Exception(t); + try { + queue.put(BigQueryFieldValueListWrapper.ofError(ex)); + } catch (InterruptedException ie) { + LOG.warning("Failed to put exception to queue due to interruption."); + Thread.currentThread().interrupt(); + } } finally { signalEndOfData(queue, localResultSchemaFields); LOG.info("Schema fetcher thread finished."); @@ -5178,7 +5185,7 @@ private String getCurrentCatalogName() { return this.connection.getCatalog(); } - private List getAccessibleCatalogNames() { + private List getAccessibleCatalogNames() throws SQLException { Set accessibleCatalogs = new HashSet<>(); String primaryCatalog = getCurrentCatalogName(); if (primaryCatalog != null && !primaryCatalog.isEmpty()) { @@ -5199,6 +5206,10 @@ private List getAccessibleCatalogNames() { } } + if (this.connection.isEnableProjectDiscovery()) { + accessibleCatalogs.addAll(this.connection.getDiscoveredProjects()); + } + List sortedCatalogs = new ArrayList<>(accessibleCatalogs); Collections.sort(sortedCatalogs); return sortedCatalogs; diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcUrlUtility.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcUrlUtility.java index dd46dae44188..a46a4eecd4f7 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcUrlUtility.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcUrlUtility.java @@ -168,6 +168,8 @@ protected boolean removeEldestEntry(Map.Entry> eldes static final String FILTER_TABLES_ON_DEFAULT_DATASET_PROPERTY_NAME = "FilterTablesOnDefaultDataset"; static final boolean DEFAULT_FILTER_TABLES_ON_DEFAULT_DATASET_VALUE = false; + static final String ENABLE_PROJECT_DISCOVERY_PROPERTY_NAME = "EnableProjectDiscovery"; + static final boolean DEFAULT_ENABLE_PROJECT_DISCOVERY_VALUE = false; static final String REQUEST_GOOGLE_DRIVE_SCOPE_PROPERTY_NAME = "RequestGoogleDriveScope"; static final String SSL_TRUST_STORE_PROPERTY_NAME = "SSLTrustStore"; static final String SSL_TRUST_STORE_PWD_PROPERTY_NAME = "SSLTrustStorePwd"; @@ -577,6 +579,13 @@ protected boolean removeEldestEntry(Map.Entry> eldes .setDefaultValue( String.valueOf(DEFAULT_FILTER_TABLES_ON_DEFAULT_DATASET_VALUE)) .build(), + BigQueryConnectionProperty.newBuilder() + .setName(ENABLE_PROJECT_DISCOVERY_PROPERTY_NAME) + .setDescription( + "Enables or disables automatic discovery of all accessible Google Cloud projects. " + + "When disabled, only the default ProjectId and AdditionalProjects are listed as catalogs.") + .setDefaultValue(String.valueOf(DEFAULT_ENABLE_PROJECT_DISCOVERY_VALUE)) + .build(), BigQueryConnectionProperty.newBuilder() .setName(REQUEST_GOOGLE_DRIVE_SCOPE_PROPERTY_NAME) .setDescription( diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/DataSource.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/DataSource.java index 9e82fee605b5..e51ebeb00e90 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/DataSource.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/DataSource.java @@ -84,6 +84,7 @@ public class DataSource implements javax.sql.DataSource { private Boolean enableWriteAPI; private String additionalProjects; private Boolean filterTablesOnDefaultDataset; + private Boolean enableProjectDiscovery; private Integer requestGoogleDriveScope; private Integer metadataFetchThreadCount; private String sslTrustStorePath; @@ -242,6 +243,12 @@ public class DataSource implements javax.sql.DataSource { BigQueryJdbcUrlUtility.convertIntToBoolean( val, BigQueryJdbcUrlUtility.FILTER_TABLES_ON_DEFAULT_DATASET_PROPERTY_NAME))) + .put( + BigQueryJdbcUrlUtility.ENABLE_PROJECT_DISCOVERY_PROPERTY_NAME, + (ds, val) -> + ds.setEnableProjectDiscovery( + BigQueryJdbcUrlUtility.convertIntToBoolean( + val, BigQueryJdbcUrlUtility.ENABLE_PROJECT_DISCOVERY_PROPERTY_NAME))) .put( BigQueryJdbcUrlUtility.REQUEST_GOOGLE_DRIVE_SCOPE_PROPERTY_NAME, (ds, val) -> ds.setRequestGoogleDriveScope(Integer.parseInt(val))) @@ -555,6 +562,11 @@ Properties createProperties() { BigQueryJdbcUrlUtility.FILTER_TABLES_ON_DEFAULT_DATASET_PROPERTY_NAME, String.valueOf(this.filterTablesOnDefaultDataset)); } + if (this.enableProjectDiscovery != null) { + connectionProperties.setProperty( + BigQueryJdbcUrlUtility.ENABLE_PROJECT_DISCOVERY_PROPERTY_NAME, + String.valueOf(this.enableProjectDiscovery)); + } if (this.requestGoogleDriveScope != null) { connectionProperties.setProperty( BigQueryJdbcUrlUtility.REQUEST_GOOGLE_DRIVE_SCOPE_PROPERTY_NAME, @@ -1060,6 +1072,16 @@ public void setFilterTablesOnDefaultDataset(Boolean filterTablesOnDefaultDataset this.filterTablesOnDefaultDataset = filterTablesOnDefaultDataset; } + public Boolean getEnableProjectDiscovery() { + return enableProjectDiscovery != null + ? enableProjectDiscovery + : BigQueryJdbcUrlUtility.DEFAULT_ENABLE_PROJECT_DISCOVERY_VALUE; + } + + public void setEnableProjectDiscovery(Boolean enableProjectDiscovery) { + this.enableProjectDiscovery = enableProjectDiscovery; + } + public Integer getRequestGoogleDriveScope() { return requestGoogleDriveScope != null ? requestGoogleDriveScope diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryConnectionTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryConnectionTest.java index 94cde20fa400..47be7567406f 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryConnectionTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryConnectionTest.java @@ -23,11 +23,18 @@ import static org.junit.jupiter.api.Assertions.assertSame; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.paging.Page; import com.google.api.gax.rpc.HeaderProvider; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.cloud.bigquery.BigQuery; +import com.google.cloud.bigquery.BigQueryException; +import com.google.cloud.bigquery.Project; import com.google.cloud.bigquery.QueryJobConfiguration.JobCreationMode; import com.google.cloud.bigquery.exception.BigQueryJdbcException; import com.google.cloud.bigquery.storage.v1.BigQueryReadClient; @@ -35,6 +42,8 @@ import java.io.IOException; import java.io.InputStream; import java.sql.SQLException; +import java.util.Arrays; +import java.util.List; import java.util.Optional; import java.util.Properties; import java.util.logging.Level; @@ -519,4 +528,79 @@ public void testWrapperMethods() throws Exception { assertTrue(e.getMessage().contains("Cannot unwrap to java.sql.Statement")); } } + + @Test + public void testGetDiscoveredProjects_Success() throws Exception { + try (BigQueryConnection connection = new BigQueryConnection(BASE_URL)) { + BigQuery mockBigQuery = mock(BigQuery.class); + connection.bigQuery = mockBigQuery; + + Page mockPage = mock(Page.class); + Project project1 = mock(Project.class); + when(project1.getProjectId()).thenReturn("discovered-p1"); + Project project2 = mock(Project.class); + when(project2.getProjectId()).thenReturn("discovered-p2"); + + when(mockPage.iterateAll()).thenReturn(Arrays.asList(project1, project2)); + when(mockBigQuery.listProjects()).thenReturn(mockPage); + + List discovered = connection.getDiscoveredProjects(); + assertEquals(Arrays.asList("discovered-p1", "discovered-p2"), discovered); + + // Verify caching: second call should not invoke listProjects again + List discoveredCached = connection.getDiscoveredProjects(); + assertSame(discovered, discoveredCached); + verify(mockBigQuery, times(1)).listProjects(); + } + } + + @Test + public void testGetDiscoveredProjects_BigQueryExceptionThrown() throws Exception { + try (BigQueryConnection connection = new BigQueryConnection(BASE_URL)) { + BigQuery mockBigQuery = mock(BigQuery.class); + connection.bigQuery = mockBigQuery; + + BigQueryException exception = new BigQueryException(403, "Access Denied"); + when(mockBigQuery.listProjects()).thenThrow(exception); + + // Verify that it throws BigQueryJdbcException + BigQueryJdbcException ex = + assertThrows( + BigQueryJdbcException.class, + () -> { + connection.getDiscoveredProjects(); + }); + assertTrue(ex.getMessage().contains("Failed to list all accessible projects.")); + assertEquals(exception, ex.getCause()); + + // Subsequent call should retry since no cache is set + assertThrows( + BigQueryJdbcException.class, + () -> { + connection.getDiscoveredProjects(); + }); + verify(mockBigQuery, times(2)).listProjects(); + } + } + + @Test + public void testGetDiscoveredProjects_OtherExceptionThrown() throws Exception { + try (BigQueryConnection connection = new BigQueryConnection(BASE_URL)) { + BigQuery mockBigQuery = mock(BigQuery.class); + connection.bigQuery = mockBigQuery; + + RuntimeException exception = new RuntimeException("Generic Network Failure"); + when(mockBigQuery.listProjects()).thenThrow(exception); + + // Verify that it throws BigQueryJdbcException + BigQueryJdbcException ex = + assertThrows( + BigQueryJdbcException.class, + () -> { + connection.getDiscoveredProjects(); + }); + assertTrue(ex.getMessage().contains("Failed to list all accessible projects.")); + assertEquals(exception, ex.getCause()); + } + } } diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaDataTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaDataTest.java index 9b2b82644c35..f756c636d847 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaDataTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaDataTest.java @@ -2955,7 +2955,7 @@ public void testPrepareGetCatalogsRows() { } @Test - public void testGetSchemas_NoArgs_DelegatesCorrectly() { + public void testGetSchemas_NoArgs_DelegatesCorrectly() throws SQLException { BigQueryDatabaseMetaData spiedDbMetadata = spy(dbMetadata); ResultSet mockResultSet = mock(ResultSet.class); doReturn(mockResultSet).when(spiedDbMetadata).getSchemas(null, null); @@ -3313,6 +3313,130 @@ public void testMetadataAndResultSetMetadataTypeMappingConsistency(StandardSQLTy metadataTypeInfo.jdbcType, (int) resultSetType, "Type mapping mismatch for " + type); } + @Test + public void testGetCatalogs_WithProjectDiscovery() throws SQLException { + when(bigQueryConnection.getCatalog()).thenReturn("primary-project"); + when(bigQueryConnection.isEnableProjectDiscovery()).thenReturn(true); + when(bigQueryConnection.getDiscoveredProjects()) + .thenReturn(Arrays.asList("discovered-1", "discovered-2")); + when(bigQueryConnection.getAdditionalProjects()).thenReturn("additional-1,additional-2"); + + ResultSet rs = dbMetadata.getCatalogs(); + assertNotNull(rs); + + List catalogs = new ArrayList<>(); + while (rs.next()) { + catalogs.add(rs.getString("TABLE_CAT")); + } + + assertThat(catalogs) + .containsExactly( + "additional-1", "additional-2", "discovered-1", "discovered-2", "primary-project") + .inOrder(); + } + + @Test + public void testGetCatalogs_WithoutProjectDiscovery() throws SQLException { + when(bigQueryConnection.getCatalog()).thenReturn("primary-project"); + when(bigQueryConnection.isEnableProjectDiscovery()).thenReturn(false); + when(bigQueryConnection.getDiscoveredProjects()) + .thenReturn(Arrays.asList("discovered-1", "discovered-2")); + when(bigQueryConnection.getAdditionalProjects()).thenReturn("additional-1,additional-2"); + + ResultSet rs = dbMetadata.getCatalogs(); + assertNotNull(rs); + + List catalogs = new ArrayList<>(); + while (rs.next()) { + catalogs.add(rs.getString("TABLE_CAT")); + } + + assertThat(catalogs) + .containsExactly("additional-1", "additional-2", "primary-project") + .inOrder(); + } + + @Test + public void testGetSchemas_WithProjectDiscovery() throws SQLException { + when(bigQueryConnection.getCatalog()).thenReturn("primary-project"); + when(bigQueryConnection.isEnableProjectDiscovery()).thenReturn(true); + when(bigQueryConnection.getDiscoveredProjects()).thenReturn(Arrays.asList("discovered-1")); + when(bigQueryConnection.getAdditionalProjects()).thenReturn("additional-1"); + + Page pagePrimary = mock(Page.class); + Dataset dsPrimary = mockBigQueryDataset("primary-project", "dataset_p"); + when(pagePrimary.iterateAll()).thenReturn(Collections.singletonList(dsPrimary)); + when(bigqueryClient.listDatasets(eq("primary-project"), any(BigQuery.DatasetListOption.class))) + .thenReturn(pagePrimary); + + Page pageAdditional = mock(Page.class); + Dataset dsAdditional = mockBigQueryDataset("additional-1", "dataset_a"); + when(pageAdditional.iterateAll()).thenReturn(Collections.singletonList(dsAdditional)); + when(bigqueryClient.listDatasets(eq("additional-1"), any(BigQuery.DatasetListOption.class))) + .thenReturn(pageAdditional); + + Page pageDiscovered = mock(Page.class); + Dataset dsDiscovered = mockBigQueryDataset("discovered-1", "dataset_d"); + when(pageDiscovered.iterateAll()).thenReturn(Collections.singletonList(dsDiscovered)); + when(bigqueryClient.listDatasets(eq("discovered-1"), any(BigQuery.DatasetListOption.class))) + .thenReturn(pageDiscovered); + + ResultSet rs = dbMetadata.getSchemas(null, null); + assertNotNull(rs); + + List schemas = new ArrayList<>(); + List catalogs = new ArrayList<>(); + while (rs.next()) { + schemas.add(rs.getString("TABLE_SCHEM")); + catalogs.add(rs.getString("TABLE_CATALOG")); + } + + // Results are sorted by catalog (TABLE_CATALOG) then schema (TABLE_SCHEM) + // alphabetical catalog: "additional-1", "discovered-1", "primary-project" + assertThat(catalogs) + .containsExactly("additional-1", "discovered-1", "primary-project") + .inOrder(); + assertThat(schemas).containsExactly("dataset_a", "dataset_d", "dataset_p").inOrder(); + } + + @Test + public void testGetSchemas_WithoutProjectDiscovery() throws SQLException { + when(bigQueryConnection.getCatalog()).thenReturn("primary-project"); + when(bigQueryConnection.isEnableProjectDiscovery()).thenReturn(false); + when(bigQueryConnection.getDiscoveredProjects()).thenReturn(Arrays.asList("discovered-1")); + when(bigQueryConnection.getAdditionalProjects()).thenReturn("additional-1"); + + Page pagePrimary = mock(Page.class); + Dataset dsPrimary = mockBigQueryDataset("primary-project", "dataset_p"); + when(pagePrimary.iterateAll()).thenReturn(Collections.singletonList(dsPrimary)); + when(bigqueryClient.listDatasets(eq("primary-project"), any(BigQuery.DatasetListOption.class))) + .thenReturn(pagePrimary); + + Page pageAdditional = mock(Page.class); + Dataset dsAdditional = mockBigQueryDataset("additional-1", "dataset_a"); + when(pageAdditional.iterateAll()).thenReturn(Collections.singletonList(dsAdditional)); + when(bigqueryClient.listDatasets(eq("additional-1"), any(BigQuery.DatasetListOption.class))) + .thenReturn(pageAdditional); + + ResultSet rs = dbMetadata.getSchemas(null, null); + assertNotNull(rs); + + List schemas = new ArrayList<>(); + List catalogs = new ArrayList<>(); + while (rs.next()) { + schemas.add(rs.getString("TABLE_SCHEM")); + catalogs.add(rs.getString("TABLE_CATALOG")); + } + + // Results are sorted by catalog (TABLE_CATALOG) then schema (TABLE_SCHEM) + // alphabetical catalog: "additional-1", "primary-project" (discovered-1 is ignored) + assertThat(catalogs).containsExactly("additional-1", "primary-project").inOrder(); + assertThat(schemas).containsExactly("dataset_a", "dataset_p").inOrder(); + + verify(bigqueryClient, never()) + .listDatasets(eq("discovered-1"), any(BigQuery.DatasetListOption.class)); + } + @Test public void testWrapThread_NullThread() { assertNull(BigQueryDatabaseMetaData.wrapThread(null)); diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcUrlUtilityTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcUrlUtilityTest.java index 3a09813a035e..0bc580391b12 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcUrlUtilityTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryJdbcUrlUtilityTest.java @@ -260,4 +260,23 @@ public void testUnrecognizedConnectionProperties() { String url2 = "jdbc:bigquery://;MalformedProperty"; assertThrows(BigQueryJdbcRuntimeException.class, () -> DataSource.fromUrl(url2)); } + + @Test + public void testParseEnableProjectDiscovery() { + String url = + "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" + + "ProjectId=MyBigQueryProject;" + + "EnableProjectDiscovery=true"; + + String result = BigQueryJdbcUrlUtility.parseUriProperty(url, "EnableProjectDiscovery"); + assertThat(result).isEqualTo("true"); + + String url2 = + "jdbc:bigquery://https://www.googleapis.com/bigquery/v2:443;" + + "ProjectId=MyBigQueryProject;" + + "EnableProjectDiscovery=false"; + + String result2 = BigQueryJdbcUrlUtility.parseUriProperty(url2, "EnableProjectDiscovery"); + assertThat(result2).isEqualTo("false"); + } } From 494ad661794796b8bb9bc2da5e288e8a9ea54aae Mon Sep 17 00:00:00 2001 From: Wes Tarle Date: Thu, 25 Jun 2026 08:00:35 -0400 Subject: [PATCH 65/82] test(auth): verify GoogleCredentials.fromStream throws IOException on invalid JSON (#13473) Other client libraries (such as Python, Go, and Rust) strictly validate JSON syntax and reject malformed payload structures immediately. This test ensures Java maintains parity by asserting that an IOException is explicitly thrown when ADC JSON parsing fails, preventing silent fallbacks. This fills an untested gap in the Java ADC resolution suite. --- .../google/auth/oauth2/GoogleCredentialsTest.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/GoogleCredentialsTest.java b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/GoogleCredentialsTest.java index 74aa9fae9ccd..343eca7fbcd2 100644 --- a/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/GoogleCredentialsTest.java +++ b/google-auth-library-java/oauth2_http/javatests/com/google/auth/oauth2/GoogleCredentialsTest.java @@ -53,6 +53,7 @@ import java.io.IOException; import java.io.InputStream; import java.net.URI; +import java.nio.charset.StandardCharsets; import java.util.Arrays; import java.util.Collection; import java.util.Collections; @@ -122,9 +123,20 @@ void fromStream_unknownType_throws() throws IOException { } } + @Test + void fromStream_invalidJson_throws() throws IOException { + // This test ensures Java successfully throws an IOException when ADC JSON parsing + // fails, preventing silent fallbacks. + MockHttpTransportFactory transportFactory = new MockHttpTransportFactory(); + try (InputStream stream = + new ByteArrayInputStream("invalid-json{".getBytes(StandardCharsets.UTF_8))) { + assertThrows(IOException.class, () -> GoogleCredentials.fromStream(stream, transportFactory)); + } + } + @Test void fromStream_nullTransport_throws() { - InputStream stream = new ByteArrayInputStream("foo".getBytes()); + InputStream stream = new ByteArrayInputStream("foo".getBytes(StandardCharsets.UTF_8)); assertThrows(NullPointerException.class, () -> GoogleCredentials.fromStream(stream, null)); } From 9492aa2b01382d731abf465aa69444092068a814 Mon Sep 17 00:00:00 2001 From: Nidhi Date: Thu, 25 Jun 2026 16:41:45 +0000 Subject: [PATCH 66/82] feat(storage): log additional bytes received from GCS in read path (#13427) Fixes bug 475824752. Tracks the number of bytes received from the transport layer and emits a warning log if GCS sends more bytes than requested by the user during explicit range requests. [Generated-by: AI] --------- Co-authored-by: Dhriti07 <56169283+Dhriti07@users.noreply.github.com> --- .../ApiaryUnbufferedReadableByteChannel.java | 24 ++++++- .../GapicUnbufferedReadableByteChannel.java | 65 ++++++++++------- ...iaryUnbufferedReadableByteChannelTest.java | 68 +++++++++++++++++- ...apicUnbufferedReadableByteChannelTest.java | 69 +++++++++++++++++++ 4 files changed, 196 insertions(+), 30 deletions(-) diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ApiaryUnbufferedReadableByteChannel.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ApiaryUnbufferedReadableByteChannel.java index a9c439dadb56..781c449369cb 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ApiaryUnbufferedReadableByteChannel.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/ApiaryUnbufferedReadableByteChannel.java @@ -77,6 +77,7 @@ class ApiaryUnbufferedReadableByteChannel implements UnbufferedReadableByteChann private ScatteringByteChannel sbc; private boolean open; private boolean returnEOF; + private long totalBytesReadFromNetwork; // returned X-Goog-Generation header value private Long xGoogGeneration; @@ -147,6 +148,7 @@ public long read(ByteBuffer[] dsts, int offset, int length) throws IOException { } } else { totalRead += read; + totalBytesReadFromNetwork += read; } return totalRead; } catch (Exception t) { @@ -182,9 +184,25 @@ public boolean isOpen() { @Override public void close() throws IOException { - open = false; - if (sbc != null) { - sbc.close(); + try { + long requestedLength = apiaryReadRequest.getByteRangeSpec().length(); + if (requestedLength >= 0 + && requestedLength < ByteRangeSpec.EFFECTIVE_INFINITY + && totalBytesReadFromNetwork > requestedLength) { + java.util.logging.Logger.getLogger(ApiaryUnbufferedReadableByteChannel.class.getName()) + .warning( + String.format( + "storage: received %d more bytes than requested from GCS for bucket '%s'," + + " object '%s'", + totalBytesReadFromNetwork - requestedLength, + apiaryReadRequest.getObject().getBucket(), + apiaryReadRequest.getObject().getName())); + } + } finally { + open = false; + if (sbc != null) { + sbc.close(); + } } } diff --git a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannel.java b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannel.java index 4f5e45516ff8..7989fcaecb4b 100644 --- a/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannel.java +++ b/java-storage/google-cloud-storage/src/main/java/com/google/cloud/storage/GapicUnbufferedReadableByteChannel.java @@ -209,37 +209,50 @@ public boolean isOpen() { @Override public void close() throws IOException { - open = false; try { - if (leftovers != null) { - leftovers.close(); + long readLimit = req.getReadLimit(); + long receivedBytes = fetchOffset.get() - req.getReadOffset(); + if (readLimit > 0 && receivedBytes > readLimit) { + java.util.logging.Logger.getLogger(GapicUnbufferedReadableByteChannel.class.getName()) + .warning( + String.format( + "storage: received %d more bytes than requested from GCS for bucket '%s'," + + " object '%s'", + receivedBytes - readLimit, req.getBucket(), req.getObject())); } - ReadObjectObserver obs = readObjectObserver; - if (obs != null && !obs.cancellation.isDone()) { - obs.cancel(); - drainQueue(); - try { - // make sure our waiting doesn't lockup permanently - obs.cancellation.get(1, TimeUnit.SECONDS); - } catch (InterruptedException e) { - Thread.currentThread().interrupt(); - InterruptedIOException ioe = new InterruptedIOException(); - ioe.initCause(e); - ioe.addSuppressed(new AsyncStorageTaskException()); - throw ioe; - } catch (ExecutionException e) { - Throwable cause = e; - if (e.getCause() != null) { - cause = e.getCause(); + } finally { + open = false; + try { + if (leftovers != null) { + leftovers.close(); + } + ReadObjectObserver obs = readObjectObserver; + if (obs != null && !obs.cancellation.isDone()) { + obs.cancel(); + drainQueue(); + try { + // make sure our waiting doesn't lockup permanently + obs.cancellation.get(1, TimeUnit.SECONDS); + } catch (InterruptedException e) { + Thread.currentThread().interrupt(); + InterruptedIOException ioe = new InterruptedIOException(); + ioe.initCause(e); + ioe.addSuppressed(new AsyncStorageTaskException()); + throw ioe; + } catch (ExecutionException e) { + Throwable cause = e; + if (e.getCause() != null) { + cause = e.getCause(); + } + IOException ioException = new IOException(cause); + ioException.addSuppressed(new AsyncStorageTaskException()); + throw ioException; + } catch (TimeoutException ignore) { } - IOException ioException = new IOException(cause); - ioException.addSuppressed(new AsyncStorageTaskException()); - throw ioException; - } catch (TimeoutException ignore) { } + } finally { + drainQueue(); } - } finally { - drainQueue(); } } diff --git a/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/ApiaryUnbufferedReadableByteChannelTest.java b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/ApiaryUnbufferedReadableByteChannelTest.java index ddba508fbfa7..ac0a7c70fd73 100644 --- a/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/ApiaryUnbufferedReadableByteChannelTest.java +++ b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/ApiaryUnbufferedReadableByteChannelTest.java @@ -16,6 +16,7 @@ package com.google.cloud.storage; +import static com.google.common.truth.Truth.assertThat; import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertThrows; import static org.junit.Assert.assertTrue; @@ -27,17 +28,25 @@ import com.google.api.services.storage.Storage; import com.google.api.services.storage.model.StorageObject; import com.google.cloud.storage.ApiaryUnbufferedReadableByteChannel.ApiaryReadRequest; +import com.google.cloud.storage.Retrying.Retrier; import com.google.cloud.storage.Retrying.RetrierWithAlg; +import com.google.cloud.storage.UnbufferedReadableByteChannelSession.UnbufferedReadableByteChannel; +import com.google.cloud.storage.spi.v1.AuditingHttpTransport; import com.google.common.collect.ImmutableMap; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.Channels; import java.nio.channels.WritableByteChannel; +import java.util.ArrayList; +import java.util.List; import java.util.Map; +import java.util.logging.Handler; +import java.util.logging.LogRecord; +import java.util.logging.Logger; import org.junit.Test; -public class ApiaryUnbufferedReadableByteChannelTest { +public final class ApiaryUnbufferedReadableByteChannelTest { private static final byte[] CONTENT_BYTES = "Hello, World!".getBytes(); private static final String CORRECT_CRC32C_BASE64 = "TVUQaA=="; @@ -218,4 +227,61 @@ public void testRead_partialRangeNoCrc32cValidation() throws IOException { assertArrayEquals(CONTENT_BYTES, out.toByteArray()); } } + + @Test + public void logsWarning_whenReceivingMoreBytesThanRequested() throws IOException { + byte[] content = "0123456789extra_bytes".getBytes(); + MockLowLevelHttpResponse response = + new MockLowLevelHttpResponse() + .setContentType("application/octet-stream") + .setContent(content) + .setStatusCode(200); + + AuditingHttpTransport transport = new AuditingHttpTransport(response); + Storage storage = + new Storage.Builder(transport, GsonFactory.getDefaultInstance(), null).build(); + + StorageObject storageObject = new StorageObject().setBucket("bucket").setName("object"); + // Explicit range request for 10 bytes + ByteRangeSpec byteRangeSpec = ByteRangeSpec.relativeLength(0L, 10L); + ApiaryReadRequest apiaryReadRequest = + new ApiaryReadRequest(storageObject, ImmutableMap.of(), byteRangeSpec); + + Logger logger = Logger.getLogger(ApiaryUnbufferedReadableByteChannel.class.getName()); + List records = new ArrayList<>(); + Handler handler = + new Handler() { + @Override + public void publish(LogRecord record) { + records.add(record); + } + + @Override + public void flush() {} + + @Override + public void close() throws SecurityException {} + }; + logger.addHandler(handler); + + try { + try (UnbufferedReadableByteChannel c = + new ApiaryUnbufferedReadableByteChannel( + apiaryReadRequest, + storage, + SettableApiFuture.create(), + Retrier.attemptOnce(), + Retrying.neverRetry(), + Hasher.defaultHasher())) { + ByteBuffer dst = ByteBuffer.allocate(25); + c.read(dst); + } + + boolean warningLogged = + records.stream().anyMatch(r -> r.getMessage().contains("more bytes than requested")); + assertThat(warningLogged).isTrue(); + } finally { + logger.removeHandler(handler); + } + } } diff --git a/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/ITGapicUnbufferedReadableByteChannelTest.java b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/ITGapicUnbufferedReadableByteChannelTest.java index 1e1c05915ab5..fb2e5c5f0c39 100644 --- a/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/ITGapicUnbufferedReadableByteChannelTest.java +++ b/java-storage/google-cloud-storage/src/test/java/com/google/cloud/storage/ITGapicUnbufferedReadableByteChannelTest.java @@ -330,6 +330,75 @@ public void readObject( } } + @Test + public void logsWarning_whenReceivingMoreBytesThanRequested() + throws IOException, ExecutionException, InterruptedException, TimeoutException { + ReadObjectRequest reqWithLimit = + ReadObjectRequest.newBuilder() + .setObject(objectName) + .setReadOffset(0) + .setReadLimit(10) + .build(); + + StorageGrpc.StorageImplBase fakeStorage = + new StorageGrpc.StorageImplBase() { + @Override + public void readObject( + ReadObjectRequest request, StreamObserver responseObserver) { + responseObserver.onNext(resp1); // sends 10 bytes + responseObserver.onNext(resp2); // sends another 10 bytes (total 20 > limit 10) + responseObserver.onCompleted(); + } + }; + + java.util.logging.Logger logger = + java.util.logging.Logger.getLogger(GapicUnbufferedReadableByteChannel.class.getName()); + java.util.List records = new java.util.ArrayList<>(); + java.util.logging.Handler handler = + new java.util.logging.Handler() { + @Override + public void publish(java.util.logging.LogRecord record) { + records.add(record); + } + + @Override + public void flush() {} + + @Override + public void close() throws SecurityException {} + }; + logger.addHandler(handler); + + try (FakeServer server = FakeServer.of(fakeStorage); + StorageClient storageClient = StorageClient.create(server.storageSettings())) { + Retrier retrier = TestUtils.retrierFromStorageOptions(server.getGrpcStorageOptions()); + + UnbufferedReadableByteChannelSession session = + new UnbufferedReadSession<>( + ApiFutures.immediateFuture(reqWithLimit), + (start, resultFuture) -> + new GapicUnbufferedReadableByteChannel( + resultFuture, + new ZeroCopyServerStreamingCallable<>( + storageClient.readObjectCallable(), + ResponseContentLifecycleManager.noop()), + start, + Hasher.noop(), + retrier, + retryOnly(DataLossException.class))); + byte[] actualBytes = new byte[15]; + try (UnbufferedReadableByteChannel c = session.open()) { + c.read(ByteBuffer.wrap(actualBytes)); + } + + boolean warningLogged = + records.stream().anyMatch(r -> r.getMessage().contains("more bytes than requested")); + assertThat(warningLogged).isTrue(); + } finally { + logger.removeHandler(handler); + } + } + private static ResultRetryAlgorithm retryOnly(Class c) { return new BasicResultRetryAlgorithm() { @Override From 79bbee10f478b63ee918e581467300e1923dde74 Mon Sep 17 00:00:00 2001 From: Ainur <59531286+yagudin10@users.noreply.github.com> Date: Thu, 25 Jun 2026 21:51:59 +0300 Subject: [PATCH 67/82] fix(bigquery-jdbc): avoid rollback on statement close in manual commit mode (#13503) **Problem** Manual commit mode does not work correctly because statement cancellation triggers a transaction rollback. **STR (Steps to Reproduce)** 1. Create a JDBC connection. 2. Disable auto-commit: ```java conn.setAutoCommit(false); ``` 3. Execute a DML statement using a `PreparedStatement`. 4. Close the statement. 5. Call: ```java conn.commit(); ``` **ER (Expected Result)** * Closing a statement does not affect the active transaction. * Pending changes remain available until an explicit `commit()` or `rollback()` is performed on the connection. * `conn.commit()` successfully persists transaction changes. **AR (Actual Result)** * Statement cleanup invokes `cancel()`. * `cancel()` performs a transaction rollback. * Pending transaction changes are discarded before `conn.commit()` is called. * `conn.commit()` has no effect because the transaction has already been rolled back. **Sample Java Code:** ```java try (Connection conn = DriverManager.getConnection(jdbcUrl, props)) { conn.setAutoCommit(false); try (PreparedStatement ps = conn.prepareStatement( "INSERT INTO test_table(id) VALUES (1)")) { ps.executeUpdate(); } // statement cleanup invokes cancel() -> rollback conn.commit(); // nothing is committed } ``` **Fix** Remove transaction rollback from the statement cancellation path. Transaction state is now managed exclusively through explicit `Connection.commit()` and `Connection.rollback()` operations. --------- Co-authored-by: Kirill Logachev --- .../bigquery/jdbc/BigQueryConnection.java | 15 ++++ .../bigquery/jdbc/BigQueryStatement.java | 3 - .../bigquery/jdbc/BigQueryStatementTest.java | 14 +++ .../bigquery/jdbc/it/ITBigQueryJDBCTest.java | 90 +++++++++++++++++++ 4 files changed, 119 insertions(+), 3 deletions(-) diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java index e146e221049a..466b83f185de 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java @@ -992,6 +992,21 @@ private void closeImpl() throws SQLException { } this.openStatements.clear(); + if (isTransactionStarted()) { + try { + // It looks like there's no need to start a new transaction after a rollback, + // but the commit behavior is preserved since close() may still fail before isClosed is + // updated. + rollbackImpl(); + } catch (SQLException e) { + if (exceptionToThrow == null) { + exceptionToThrow = e; + } else { + exceptionToThrow.addSuppressed(e); + } + } + } + boolean interrupted = Thread.currentThread().isInterrupted(); try { diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java index 21cdf706bef8..6f8a5d71deb0 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryStatement.java @@ -526,9 +526,6 @@ private void closeStatementResources() throws SQLException { this.currentUpdateCount = -1; this.currentJobIdIndex = -1; if (this.connection != null) { - if (this.connection.isTransactionStarted()) { - this.connection.rollback(); - } this.connection.removeStatement(this); } } diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java index 06de322a4c32..761102914a8a 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryStatementTest.java @@ -492,6 +492,20 @@ public void testCancelWithJoblessQuery() throws SQLException, InterruptedExcepti verify(bigquery, Mockito.never()).cancel(any(JobId.class)); } + @Test + public void testCancelDoesNotRollbackTransaction() throws SQLException { + doReturn(true).when(bigQueryConnection).isTransactionStarted(); + BigQueryStatement statementSpy = Mockito.spy(bigQueryStatement); + statementSpy.jobIds.add(jobId); + + statementSpy.cancel(); + + // Cancel should call bigquery.cancel() but not rollback the transaction + verify(bigquery).cancel(eq(jobId)); + verify(bigQueryConnection, Mockito.never()).rollback(); + verify(bigQueryConnection).removeStatement(statementSpy); + } + @ParameterizedTest @ValueSource(booleans = {true, false}) public void testGetStatementType(boolean isReadOnlyTokenUsed) throws Exception { diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBigQueryJDBCTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBigQueryJDBCTest.java index 44a8160f726d..a7da13606fe2 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBigQueryJDBCTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/it/ITBigQueryJDBCTest.java @@ -2211,6 +2211,96 @@ public void testConnectionWithMultipleTransactionCommits() throws SQLException { connection.close(); } + @Test + public void testPreparedStatementCloseDoesNotRollbackTransaction() throws SQLException { + String TRANSACTION_TABLE = "JDBC_PS_CLOSE_TABLE" + randomNumber; + String createTransactionTable = + String.format( + "CREATE OR REPLACE TABLE %s.%s (`id` INTEGER, `name` STRING, `age` INTEGER);", + DATASET, TRANSACTION_TABLE); + String insertQuery = + String.format( + "INSERT INTO %s.%s (id, name, age) VALUES (?, ?, ?);", DATASET, TRANSACTION_TABLE); + String selectQuery = + String.format("SELECT id, name, age FROM %s.%s ORDER BY id;", DATASET, TRANSACTION_TABLE); + + bigQueryStatement.execute(createTransactionTable); + + try (Connection connection = DriverManager.getConnection(session_enabled_connection_uri)) { + connection.setAutoCommit(false); + try (PreparedStatement ps1 = connection.prepareStatement(insertQuery); + PreparedStatement ps2 = connection.prepareStatement(insertQuery)) { + ps1.setInt(1, 1); + ps1.setString(2, "DwightShrute"); + ps1.setInt(3, 10); + assertEquals(1, ps1.executeUpdate()); + + ps2.setInt(1, 2); + ps2.setString(2, "MichaelScott"); + ps2.setInt(3, 20); + assertEquals(1, ps2.executeUpdate()); + + ps1.close(); + connection.commit(); + + try (ResultSet resultSet = bigQueryStatement.executeQuery(selectQuery)) { + int rowCount = 0; + while (resultSet.next()) { + rowCount++; + assertEquals(rowCount, resultSet.getInt(1)); + } + assertEquals(2, rowCount); + } + } finally { + bigQueryStatement.execute( + String.format("DROP TABLE IF EXISTS %s.%s", DATASET, TRANSACTION_TABLE)); + } + } + } + + @Test + public void testClosingUnusedPreparedStatementDoesNotRollbackPreviousExecute() + throws SQLException { + String TRANSACTION_TABLE = "JDBC_PS_UNUSED_CLOSE_TABLE" + randomNumber; + String createTransactionTable = + String.format( + "CREATE OR REPLACE TABLE %s.%s (`id` INTEGER, `name` STRING, `age` INTEGER);", + DATASET, TRANSACTION_TABLE); + String insertQuery = + String.format( + "INSERT INTO %s.%s (id, name, age) VALUES (?, ?, ?);", DATASET, TRANSACTION_TABLE); + String selectQuery = + String.format("SELECT id, name, age FROM %s.%s ORDER BY id;", DATASET, TRANSACTION_TABLE); + + bigQueryStatement.execute(createTransactionTable); + + try (Connection connection = DriverManager.getConnection(session_enabled_connection_uri)) { + connection.setAutoCommit(false); + try (PreparedStatement ps1 = connection.prepareStatement(insertQuery); + PreparedStatement ps2 = connection.prepareStatement(insertQuery)) { + + ps2.setInt(1, 1); + ps2.setString(2, "MichaelScott"); + ps2.setInt(3, 20); + assertEquals(1, ps2.executeUpdate()); + + ps1.close(); + connection.commit(); + + try (ResultSet resultSet = bigQueryStatement.executeQuery(selectQuery)) { + assertTrue(resultSet.next()); + assertEquals(1, resultSet.getInt(1)); + assertEquals("MichaelScott", resultSet.getString(2)); + assertEquals(20, resultSet.getInt(3)); + assertFalse(resultSet.next()); + } + } + } finally { + bigQueryStatement.execute( + String.format("DROP TABLE IF EXISTS %s.%s", DATASET, TRANSACTION_TABLE)); + } + } + // Private Helper functions private String getSessionId() throws InterruptedException { QueryJobConfiguration stubJobConfig = From 7ef1312df5607f402547b0bb582e2e8c6fcebef8 Mon Sep 17 00:00:00 2001 From: Kirill Logachev Date: Thu, 25 Jun 2026 14:39:22 -0700 Subject: [PATCH 68/82] fix(bigquery-jdbc): shade org.slf4j (#13547) --- java-bigquery-jdbc/pom.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java-bigquery-jdbc/pom.xml b/java-bigquery-jdbc/pom.xml index f3bd286dc3e4..681b5b84300f 100644 --- a/java-bigquery-jdbc/pom.xml +++ b/java-bigquery-jdbc/pom.xml @@ -154,6 +154,10 @@ org.json com.google.bqjdbc.shaded.org.json + + org.slf4j + com.google.bqjdbc.shaded.org.slf4j + io.grpc com.google.bqjdbc.shaded.io.grpc From 9fd84fcbdcf8bedd5c5002e8d6a43abc45387dce Mon Sep 17 00:00:00 2001 From: Kirill Logachev Date: Thu, 25 Jun 2026 16:17:24 -0700 Subject: [PATCH 69/82] fix(bigquery-jdbc): add proper version to BigQueryDriver (#13294) --- .../jdbc/BigQueryDatabaseMetaData.java | 63 ++----------- .../cloud/bigquery/jdbc/BigQueryDriver.java | 8 +- .../utils/BigQueryJdbcVersionUtility.java | 90 +++++++++++++++++++ .../bigquery/jdbc/BigQueryDriverTest.java | 7 +- 4 files changed, 103 insertions(+), 65 deletions(-) create mode 100644 java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/utils/BigQueryJdbcVersionUtility.java diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java index 836b3cb3ea6c..9d59524c61f4 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java @@ -43,8 +43,8 @@ import com.google.cloud.bigquery.TableId; import com.google.cloud.bigquery.exception.BigQueryJdbcException; import com.google.cloud.bigquery.jdbc.BigQueryJdbcTypeMappings.ColumnTypeInfo; +import com.google.cloud.bigquery.jdbc.utils.BigQueryJdbcVersionUtility; import java.io.BufferedReader; -import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.sql.Connection; @@ -60,7 +60,6 @@ import java.util.Comparator; import java.util.HashSet; import java.util.List; -import java.util.Properties; import java.util.Scanner; import java.util.Set; import java.util.concurrent.BlockingQueue; @@ -73,7 +72,6 @@ import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; -import java.util.concurrent.atomic.AtomicReference; import java.util.function.Function; import java.util.function.Supplier; import java.util.regex.Pattern; @@ -92,7 +90,7 @@ class BigQueryDatabaseMetaData implements DatabaseMetaData { private static final String DATABASE_PRODUCT_NAME = "Google BigQuery"; private static final String DATABASE_PRODUCT_VERSION = "2.0"; private static final String DRIVER_NAME = "GoogleJDBCDriverForGoogleBigQuery"; - private static final String DRIVER_DEFAULT_VERSION = "0.0.0"; + private static final String SCHEMA_TERM = "Dataset"; private static final String CATALOG_TERM = "Project"; private static final String PROCEDURE_TERM = "Procedure"; @@ -143,18 +141,12 @@ class BigQueryDatabaseMetaData implements DatabaseMetaData { BigQueryConnection connection; private final BigQuery bigquery; private final int metadataFetchThreadCount; - private static final AtomicReference parsedDriverVersion = new AtomicReference<>(null); - private static final AtomicReference parsedDriverMajorVersion = - new AtomicReference<>(null); - private static final AtomicReference parsedDriverMinorVersion = - new AtomicReference<>(null); BigQueryDatabaseMetaData(BigQueryConnection connection) { this.URL = connection.getConnectionUrl(); this.connection = connection; this.bigquery = connection.getBigQuery(); this.metadataFetchThreadCount = connection.getMetadataFetchThreadCount(); - loadDriverVersionProperties(); } @Override @@ -223,17 +215,17 @@ public String getDriverName() { @Override public String getDriverVersion() { - return parsedDriverVersion.get() != null ? parsedDriverVersion.get() : DRIVER_DEFAULT_VERSION; + return BigQueryJdbcVersionUtility.getDriverVersion(); } @Override public int getDriverMajorVersion() { - return parsedDriverMajorVersion.get() != null ? parsedDriverMajorVersion.get() : 0; + return BigQueryJdbcVersionUtility.getDriverMajorVersion(); } @Override public int getDriverMinorVersion() { - return parsedDriverMinorVersion.get() != null ? parsedDriverMinorVersion.get() : 0; + return BigQueryJdbcVersionUtility.getDriverMinorVersion(); } @Override @@ -5233,51 +5225,6 @@ String replaceSqlParameters(String sql, String... params) throws SQLException { return String.format(sql, (Object[]) params); } - private void loadDriverVersionProperties() { - if (parsedDriverVersion.get() != null) { - return; - } - Properties props = new Properties(); - try (InputStream input = - getClass().getResourceAsStream("/com/google/cloud/bigquery/jdbc/dependencies.properties")) { - if (input == null) { - String errorMessage = - "Could not find dependencies.properties. Driver version information is unavailable."; - IllegalStateException ex = new IllegalStateException(errorMessage); - LOG.severe(errorMessage, ex); - throw ex; - } - props.load(input); - String versionString = props.getProperty("version.jdbc"); - if (versionString == null || versionString.trim().isEmpty()) { - String errorMessage = - "The property version.jdbc not found or empty in dependencies.properties."; - IllegalStateException ex = new IllegalStateException(errorMessage); - LOG.severe(errorMessage, ex); - throw ex; - } - parsedDriverVersion.compareAndSet(null, versionString.trim()); - String[] parts = versionString.split("\\."); - if (parts.length < 2) { - return; - } - parsedDriverMajorVersion.compareAndSet(null, Integer.parseInt(parts[0])); - String minorPart = parts[1]; - String numericMinor = minorPart.replaceAll("[^0-9].*", ""); - if (!numericMinor.isEmpty()) { - parsedDriverMinorVersion.compareAndSet(null, Integer.parseInt(numericMinor)); - } - } catch (IOException | NumberFormatException e) { - String errorMessage = - "Error reading dependencies.properties. Driver version information is" - + " unavailable. Error: " - + e.getMessage(); - IllegalStateException ex = new IllegalStateException(errorMessage, e); - LOG.severe(errorMessage, ex); - throw ex; - } - } - // TODO(keshav): This is a temporary compatibility bridge to wrap raw Threads into Futures. // This should be removed when BigQueryDatabaseMetaData is refactored to use the ExecutorService // directly. diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDriver.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDriver.java index 15058ff01bd9..8c032dc79b14 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDriver.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDriver.java @@ -18,6 +18,7 @@ import com.google.cloud.bigquery.exception.BigQueryJdbcException; import com.google.cloud.bigquery.exception.BigQueryJdbcRuntimeException; +import com.google.cloud.bigquery.jdbc.utils.BigQueryJdbcVersionUtility; import io.grpc.LoadBalancerRegistry; import io.grpc.internal.PickFirstLoadBalancerProvider; import java.io.IOException; @@ -55,9 +56,6 @@ public class BigQueryDriver implements Driver { private static final BigQueryJdbcCustomLogger LOG = new BigQueryJdbcCustomLogger(BigQueryDriver.class.getName()); - // TODO: update this when JDBC goes GA - private static final int JDBC_MAJOR_VERSION = 0; - private static final int JDBC_MINOR_VERSION = 1; static BigQueryDriver registeredBigqueryJdbcDriver; static { @@ -243,13 +241,13 @@ public DriverPropertyInfo[] getPropertyInfo(String url, Properties info) { @Override public int getMajorVersion() { LOG.finest("++enter++"); - return JDBC_MAJOR_VERSION; + return BigQueryJdbcVersionUtility.getDriverMajorVersion(); } @Override public int getMinorVersion() { LOG.finest("++enter++"); - return JDBC_MINOR_VERSION; + return BigQueryJdbcVersionUtility.getDriverMinorVersion(); } @Override diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/utils/BigQueryJdbcVersionUtility.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/utils/BigQueryJdbcVersionUtility.java new file mode 100644 index 000000000000..ece2ad4bd268 --- /dev/null +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/utils/BigQueryJdbcVersionUtility.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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. + */ + +package com.google.cloud.bigquery.jdbc.utils; + +import com.google.cloud.bigquery.jdbc.BigQueryJdbcCustomLogger; +import java.io.InputStream; +import java.util.Properties; + +/** Utility class to load and parse the JDBC driver version from dependencies.properties. */ +public final class BigQueryJdbcVersionUtility { + + private static final BigQueryJdbcCustomLogger LOG = + new BigQueryJdbcCustomLogger(BigQueryJdbcVersionUtility.class.getName()); + + private static final String DRIVER_VERSION; + private static final int DRIVER_MAJOR_VERSION; + private static final int DRIVER_MINOR_VERSION; + + static { + String version = "0.0.0"; + int major = 0; + int minor = 0; + try (InputStream input = + BigQueryJdbcVersionUtility.class.getResourceAsStream( + "/com/google/cloud/bigquery/jdbc/dependencies.properties")) { + if (input == null) { + throw new IllegalArgumentException( + "Could not find dependencies.properties. Driver version information is unavailable."); + } + + Properties props = new Properties(); + props.load(input); + String versionString = props.getProperty("version.jdbc"); + if (versionString == null || versionString.trim().isEmpty()) { + throw new IllegalArgumentException( + "The property version.jdbc not found or empty in dependencies.properties."); + } + + version = versionString.trim(); + String[] parts = version.split("\\."); + if (parts.length < 2) { + throw new IllegalArgumentException("Unexpected version format: " + versionString); + } + major = Integer.parseInt(parts[0]); + String minorPart = parts[1]; + String numericMinor = minorPart.replaceAll("[^0-9].*", ""); + if (!numericMinor.isEmpty()) { + minor = Integer.parseInt(numericMinor); + } + } catch (Exception e) { + LOG.severe( + "Error reading dependencies.properties. Driver version information is unavailable. Error: " + + e.getMessage(), + e); + } + DRIVER_VERSION = version; + DRIVER_MAJOR_VERSION = major; + DRIVER_MINOR_VERSION = minor; + } + + private BigQueryJdbcVersionUtility() { + // Utility class, static methods only. + } + + public static String getDriverVersion() { + return DRIVER_VERSION; + } + + public static int getDriverMajorVersion() { + return DRIVER_MAJOR_VERSION; + } + + public static int getDriverMinorVersion() { + return DRIVER_MINOR_VERSION; + } +} diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryDriverTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryDriverTest.java index 2a5ad5c4767c..4ed3109f9845 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryDriverTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryDriverTest.java @@ -17,6 +17,7 @@ import static com.google.common.truth.Truth.assertThat; +import com.google.cloud.bigquery.jdbc.utils.BigQueryJdbcVersionUtility; import java.sql.Connection; import java.sql.DriverPropertyInfo; import java.sql.SQLException; @@ -78,12 +79,14 @@ public void testGetPropertyInfoReturnsValidProperties() { @Test public void testGetMajorVersionMatchesDriverMajorVersion() { - assertThat(bigQueryDriver.getMajorVersion()).isEqualTo(0); + assertThat(bigQueryDriver.getMajorVersion()) + .isEqualTo(BigQueryJdbcVersionUtility.getDriverMajorVersion()); } @Test public void testGetMinorVersionMatchesDriverMinorVersion() { - assertThat(bigQueryDriver.getMinorVersion()).isEqualTo(1); + assertThat(bigQueryDriver.getMinorVersion()) + .isEqualTo(BigQueryJdbcVersionUtility.getDriverMinorVersion()); } @Test From d7f1d1cc9f386c44f62f67b7d84ca726d315153b Mon Sep 17 00:00:00 2001 From: Keshav Dandeva Date: Fri, 26 Jun 2026 15:56:26 +0200 Subject: [PATCH 70/82] refactor(bigquery-jdbc): migrate metadata thread management to connection-scoped executor (#13556) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit b/520400589 This PR optimizes thread management for JDBC metadata methods, implementing a deadlock-free, bipartite thread pool design and unifying resource lifecycle management. ### Key Changes * **Bipartite Thread Pool Architecture (Deadlock Prevention)**: * Redirected all outer, orchestrating fetcher tasks (parent tasks) to the connection’s cached query executor (`connection.getExecutorService()`). Because the cached pool scales dynamically as needed, this structurally prevents pool-induced deadlocks (thread starvation). * Kept all inner, highly concurrent parallel network API calls (child tasks) on the connection's fixed-size metadata executor (`connection.getMetadataExecutor()`). This bounds parallel network traffic to prevent overwhelming the BigQuery backend. * *Result*: The driver is fully protected against pool-induced deadlocks, even under high concurrency or if `metadataFetchThreadCount` is configured to `1`. * **Connection-Scoped Shared Executor**: * Migrated all asynchronous metadata operations (`getSchemas`, `getTables`, `getColumns`, `getProcedures`, `getProcedureColumns`, `getFunctions`, and `getFunctionColumns`) from spawning raw threads or short-lived local pools to connection-managed executors. * Configured the shared metadata pool to be lazily instantiated on demand and gracefully shut down with the connection lifecycle. Idle threads are automatically reclaimed after 60 seconds. * **Lower CPU Overhead (Sequential Row-Building)**: * Completely removed secondary CPU-bound thread pools (such as `routineProcessorExecutor`, `processArgsExecutor`, `tableProcessorExecutor`, and `processParamsExecutor`) previously used for row-building. * Refactored row-building and parameter-processing tasks to execute sequentially on the background fetcher threads, removing context-switching overhead and preventing nested-pool deadlock risks. * **Teardown of Legacy Bridges**: * Deleted the obsolete `wrapThread(Thread)` compatibility adapter in `BigQueryDatabaseMetaData.java`. * Removed obsolete `testWrapThread_*` cases from `BigQueryDatabaseMetaDataTest.java`. Metadata queries now track and cancel background tasks natively via standard `Future` handles. * **Test Suite Refactoring**: * Updated `BigQueryDatabaseMetaDataTest` setup to inject real, connection-scoped cached executor services, ensuring that background metadata tasks execute deterministically during testing. * Added `@AfterEach` teardown logic to prevent test-suite thread leaks. * Refactored argument-processing tests to verify row-building synchronously without mock executors. --- .../bigquery/jdbc/BigQueryConnection.java | 8 +- .../jdbc/BigQueryDatabaseMetaData.java | 396 +++--------------- .../bigquery/jdbc/BigQueryJsonResultSet.java | 17 + .../jdbc/BigQueryDatabaseMetaDataTest.java | 171 +------- 4 files changed, 101 insertions(+), 491 deletions(-) diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java index 466b83f185de..218225ede208 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryConnection.java @@ -362,15 +362,13 @@ public class BigQueryConnection extends BigQueryNoOpsConnection { this.headerProvider = createHeaderProvider(); this.bigQuery = getBigQueryConnection(); - // Fixed thread pool queues tasks to limit concurrent metadata calls and prevent API - // throttling. - this.metadataExecutor = - BigQueryJdbcMdc.newFixedThreadPool( - String.format("BQ-Metadata-%s", connectionId), metadataFetchThreadCount); // Cached pool executes queries immediately without queueing and reclaims all idle threads // when inactive, minimizing resources. this.queryExecutor = BigQueryJdbcMdc.newCachedThreadPool(String.format("BQ-Query-%s", connectionId)); + this.metadataExecutor = + BigQueryJdbcMdc.newFixedThreadPool( + String.format("BQ-Metadata-%s", connectionId), this.metadataFetchThreadCount); } } diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java index 9d59524c61f4..1b5eb0af0a4e 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaData.java @@ -67,11 +67,9 @@ import java.util.concurrent.CancellationException; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; import java.util.concurrent.Future; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.TimeUnit; -import java.util.concurrent.TimeoutException; import java.util.function.Function; import java.util.function.Supplier; import java.util.regex.Pattern; @@ -794,13 +792,11 @@ public ResultSet getProcedures( final BlockingQueue queue = new LinkedBlockingQueue<>(DEFAULT_QUEUE_CAPACITY); final List collectedResults = Collections.synchronizedList(new ArrayList<>()); - final List> processingTaskFutures = new ArrayList<>(); final String catalogParam = catalog; Runnable procedureFetcher = () -> { ExecutorService apiExecutor = null; - ExecutorService routineProcessorExecutor = null; final FieldList localResultSchemaFields = resultSchemaFields; final List>> apiFutures = new ArrayList<>(); @@ -822,8 +818,7 @@ public ResultSet getProcedures( return; } - apiExecutor = Executors.newFixedThreadPool(API_EXECUTOR_POOL_SIZE); - routineProcessorExecutor = Executors.newFixedThreadPool(this.metadataFetchThreadCount); + apiExecutor = connection.getMetadataExecutor(); LOG.fine("Submitting parallel findMatchingRoutines tasks..."); for (Dataset dataset : datasetsToScan) { @@ -854,7 +849,6 @@ public ResultSet getProcedures( apiFutures.add(apiFuture); } LOG.fine("Finished submitting " + apiFutures.size() + " findMatchingRoutines tasks."); - apiExecutor.shutdown(); LOG.fine("Processing results from findMatchingRoutines tasks..."); for (Future> apiFuture : apiFutures) { @@ -869,15 +863,8 @@ public ResultSet getProcedures( if (Thread.currentThread().isInterrupted()) break; if ("PROCEDURE".equalsIgnoreCase(routine.getRoutineType())) { - LOG.fine( - "Submitting processing task for procedure: " + routine.getRoutineId()); - final Routine finalRoutine = routine; - Future processFuture = - routineProcessorExecutor.submit( - () -> - processProcedureInfo( - finalRoutine, collectedResults, localResultSchemaFields)); - processingTaskFutures.add(processFuture); + LOG.fine("Processing procedure sequentially: " + routine.getRoutineId()); + processProcedureInfo(routine, collectedResults, localResultSchemaFields); } else { LOG.finer("Skipping non-procedure routine: " + routine.getRoutineId()); } @@ -898,21 +885,6 @@ public ResultSet getProcedures( } } - LOG.fine( - "Finished submitting " - + processingTaskFutures.size() - + " processProcedureInfo tasks."); - - if (Thread.currentThread().isInterrupted()) { - LOG.warning( - "Fetcher interrupted before waiting for processing tasks; cancelling remaining."); - processingTaskFutures.forEach(f -> f.cancel(true)); - } else { - LOG.fine("Waiting for processProcedureInfo tasks to complete..."); - waitForTasksCompletion(processingTaskFutures); - LOG.fine("All processProcedureInfo tasks completed or handled."); - } - if (!Thread.currentThread().isInterrupted()) { Comparator comparator = defineGetProceduresComparator(localResultSchemaFields); @@ -925,22 +897,18 @@ public ResultSet getProcedures( } catch (Throwable t) { LOG.severe("Unexpected error in procedure fetcher runnable: " + t.getMessage()); - apiFutures.forEach(f -> f.cancel(true)); - processingTaskFutures.forEach(f -> f.cancel(true)); } finally { + apiFutures.forEach(f -> f.cancel(true)); signalEndOfData(queue, localResultSchemaFields); - shutdownExecutor(apiExecutor); - shutdownExecutor(routineProcessorExecutor); LOG.info("Procedure fetcher thread finished."); } }; - Thread fetcherThread = new Thread(procedureFetcher, "getProcedures-fetcher-" + catalog); + Future fetcherFuture = connection.getExecutorService().submit(procedureFetcher); BigQueryJsonResultSet resultSet = - BigQueryJsonResultSet.of(resultSchema, -1, queue, null, wrapThread(fetcherThread)); + BigQueryJsonResultSet.of(resultSchema, -1, queue, null, fetcherFuture); - fetcherThread.start(); - LOG.info("Started background thread for getProcedures"); + LOG.info("Submitted background task for getProcedures to metadata executor"); return resultSet; } @@ -1079,17 +1047,12 @@ public ResultSet getProcedureColumns( final BlockingQueue queue = new LinkedBlockingQueue<>(DEFAULT_QUEUE_CAPACITY); final List collectedResults = Collections.synchronizedList(new ArrayList<>()); - final List> processingTaskFutures = new ArrayList<>(); final String catalogParam = catalog; Runnable procedureColumnFetcher = () -> { ExecutorService listRoutinesExecutor = null; ExecutorService getRoutineDetailsExecutor = null; - ExecutorService processArgsExecutor = null; - - final String fetcherThreadNameSuffix = - "-" + catalogParam.substring(0, Math.min(10, catalogParam.length())); try { List datasetsToScan = @@ -1100,10 +1063,7 @@ public ResultSet getProcedureColumns( return; } - listRoutinesExecutor = - Executors.newFixedThreadPool( - API_EXECUTOR_POOL_SIZE, - runnable -> new Thread(runnable, "pcol-list-rout" + fetcherThreadNameSuffix)); + listRoutinesExecutor = connection.getMetadataExecutor(); List procedureIdsToGet = listMatchingProcedureIdsFromDatasets( datasetsToScan, @@ -1112,7 +1072,6 @@ public ResultSet getProcedureColumns( listRoutinesExecutor, catalogParam, LOG); - shutdownExecutor(listRoutinesExecutor); listRoutinesExecutor = null; if (procedureIdsToGet.isEmpty() || Thread.currentThread().isInterrupted()) { @@ -1120,13 +1079,9 @@ public ResultSet getProcedureColumns( return; } - getRoutineDetailsExecutor = - Executors.newFixedThreadPool( - 100, - runnable -> new Thread(runnable, "pcol-get-details" + fetcherThreadNameSuffix)); + getRoutineDetailsExecutor = connection.getMetadataExecutor(); List fullRoutines = fetchFullRoutineDetailsForIds(procedureIdsToGet, getRoutineDetailsExecutor, LOG); - shutdownExecutor(getRoutineDetailsExecutor); getRoutineDetailsExecutor = null; if (fullRoutines.isEmpty() || Thread.currentThread().isInterrupted()) { @@ -1135,35 +1090,8 @@ public ResultSet getProcedureColumns( return; } - processArgsExecutor = - Executors.newFixedThreadPool( - this.metadataFetchThreadCount, - runnable -> new Thread(runnable, "pcol-proc-args" + fetcherThreadNameSuffix)); - submitProcedureArgumentProcessingJobs( - fullRoutines, - columnNameRegex, - collectedResults, - resultSchema.getFields(), - processArgsExecutor, - processingTaskFutures, - LOG); - - if (Thread.currentThread().isInterrupted()) { - LOG.warning( - "Fetcher: Interrupted before waiting for argument processing. Catalog: " - + catalogParam); - processingTaskFutures.forEach(f -> f.cancel(true)); - } else { - LOG.fine( - "Fetcher: Waiting for " - + processingTaskFutures.size() - + " argument processing tasks. Catalog: " - + catalogParam); - waitForTasksCompletion(processingTaskFutures); - LOG.fine( - "Fetcher: All argument processing tasks completed or handled. Catalog: " - + catalogParam); - } + processProcedureArgumentsSequentially( + fullRoutines, columnNameRegex, collectedResults, resultSchema.getFields(), LOG); if (!Thread.currentThread().isInterrupted()) { Comparator comparator = @@ -1179,30 +1107,23 @@ public ResultSet getProcedureColumns( + catalogParam + ". Error: " + e.getMessage()); - processingTaskFutures.forEach(f -> f.cancel(true)); } catch (Throwable t) { LOG.severe( "Fetcher: Unexpected error in main try block for catalog " + catalogParam + ". Error: " + t.getMessage()); - processingTaskFutures.forEach(f -> f.cancel(true)); } finally { signalEndOfData(queue, resultSchema.getFields()); - if (listRoutinesExecutor != null) shutdownExecutor(listRoutinesExecutor); - if (getRoutineDetailsExecutor != null) shutdownExecutor(getRoutineDetailsExecutor); - if (processArgsExecutor != null) shutdownExecutor(processArgsExecutor); LOG.info("Procedure column fetcher thread finished for catalog: " + catalogParam); } }; - Thread fetcherThread = - new Thread(procedureColumnFetcher, "getProcedureColumns-fetcher-" + catalog); + Future fetcherFuture = connection.getExecutorService().submit(procedureColumnFetcher); BigQueryJsonResultSet resultSet = - BigQueryJsonResultSet.of(resultSchema, -1, queue, null, wrapThread(fetcherThread)); + BigQueryJsonResultSet.of(resultSchema, -1, queue, null, fetcherFuture); - fetcherThread.start(); - LOG.info("Started background thread for getProcedureColumns for catalog: " + catalog); + LOG.info("Started background task for getProcedureColumns for catalog: " + catalog); return resultSet; } @@ -1370,33 +1291,26 @@ List fetchFullRoutineDetailsForIds( return fullRoutines; } - void submitProcedureArgumentProcessingJobs( + void processProcedureArgumentsSequentially( List fullRoutines, Pattern columnNameRegex, List collectedResults, FieldList resultSchemaFields, - ExecutorService processArgsExecutor, - List> outArgumentProcessingFutures, BigQueryJdbcCustomLogger logger) throws InterruptedException { - logger.fine("Submitting argument processing jobs for %d routines.", fullRoutines.size()); + logger.fine("Processing argument jobs sequentially for %d routines.", fullRoutines.size()); for (Routine fullRoutine : fullRoutines) { if (Thread.currentThread().isInterrupted()) { InterruptedException ex = - new InterruptedException("Interrupted while submitting argument processing jobs"); + new InterruptedException("Interrupted while processing argument jobs sequentially"); logger.severe(ex.getMessage(), ex); throw ex; } if (fullRoutine != null) { if ("PROCEDURE".equalsIgnoreCase(fullRoutine.getRoutineType())) { - final Routine finalFullRoutine = fullRoutine; - Future processFuture = - processArgsExecutor.submit( - () -> - processProcedureArguments( - finalFullRoutine, columnNameRegex, collectedResults, resultSchemaFields)); - outArgumentProcessingFutures.add(processFuture); + processProcedureArguments( + fullRoutine, columnNameRegex, collectedResults, resultSchemaFields); } else { logger.warning( "Routine " @@ -1409,10 +1323,6 @@ void submitProcedureArgumentProcessingJobs( } } } - logger.fine( - "Finished submitting " - + outArgumentProcessingFutures.size() - + " processProcedureArguments tasks."); } Schema defineGetProcedureColumnsSchema() { @@ -1737,10 +1647,8 @@ public ResultSet getTables( Runnable tableFetcher = () -> { ExecutorService apiExecutor = null; - ExecutorService tableProcessorExecutor = null; final FieldList localResultSchemaFields = resultSchemaFields; final List>> apiFutures = new ArrayList<>(); - final List> processingFutures = new ArrayList<>(); try { List datasetsToScan = @@ -1760,8 +1668,7 @@ public ResultSet getTables( return; } - apiExecutor = Executors.newFixedThreadPool(API_EXECUTOR_POOL_SIZE); - tableProcessorExecutor = Executors.newFixedThreadPool(this.metadataFetchThreadCount); + apiExecutor = connection.getMetadataExecutor(); LOG.fine("Submitting parallel findMatchingTables tasks..."); for (Dataset dataset : datasetsToScan) { @@ -1792,7 +1699,6 @@ public ResultSet getTables( apiFutures.add(apiFuture); } LOG.fine("Finished submitting " + apiFutures.size() + " findMatchingTables tasks."); - apiExecutor.shutdown(); LOG.fine("Processing results from findMatchingTables tasks..."); for (Future> apiFuture : apiFutures) { @@ -1806,16 +1712,9 @@ public ResultSet getTables( for (Table table : tablesResult) { if (Thread.currentThread().isInterrupted()) break; - final Table currentTable = table; - Future processFuture = - tableProcessorExecutor.submit( - () -> - processTableInfo( - currentTable, - requestedTypes, - collectedResults, - localResultSchemaFields)); - processingFutures.add(processFuture); + LOG.fine("Processing table sequentially: " + table.getTableId()); + processTableInfo( + table, requestedTypes, collectedResults, localResultSchemaFields); } } } catch (InterruptedException e) { @@ -1833,19 +1732,6 @@ public ResultSet getTables( } } - LOG.fine( - "Finished submitting " + processingFutures.size() + " processTableInfo tasks."); - - if (Thread.currentThread().isInterrupted()) { - LOG.warning( - "Fetcher interrupted before waiting for processing tasks; cancelling remaining."); - processingFutures.forEach(f -> f.cancel(true)); - } else { - LOG.fine("Waiting for processTableInfo tasks to complete..."); - waitForTasksCompletion(processingFutures); - LOG.fine("All processTableInfo tasks completed."); - } - if (!Thread.currentThread().isInterrupted()) { Comparator comparator = defineGetTablesComparator(localResultSchemaFields); @@ -1858,21 +1744,17 @@ public ResultSet getTables( } catch (Throwable t) { LOG.severe("Unexpected error in table fetcher runnable: " + t.getMessage()); - apiFutures.forEach(f -> f.cancel(true)); - processingFutures.forEach(f -> f.cancel(true)); } finally { + apiFutures.forEach(f -> f.cancel(true)); signalEndOfData(queue, localResultSchemaFields); - shutdownExecutor(apiExecutor); - shutdownExecutor(tableProcessorExecutor); LOG.info("Table fetcher thread finished."); } }; - Thread fetcherThread = new Thread(tableFetcher, "getTables-fetcher-" + effectiveCatalog); + Future fetcherFuture = connection.getExecutorService().submit(tableFetcher); BigQueryJsonResultSet resultSet = - BigQueryJsonResultSet.of(resultSchema, -1, queue, null, wrapThread(fetcherThread)); + BigQueryJsonResultSet.of(resultSchema, -1, queue, null, fetcherFuture); - fetcherThread.start(); LOG.info("Started background thread for getTables"); return resultSet; } @@ -2124,7 +2006,7 @@ public ResultSet getColumns( return; } - columnExecutor = Executors.newFixedThreadPool(this.metadataFetchThreadCount); + columnExecutor = connection.getMetadataExecutor(); for (Dataset dataset : datasetsToScan) { if (Thread.currentThread().isInterrupted()) { @@ -2187,19 +2069,17 @@ public ResultSet getColumns( } catch (Throwable t) { LOG.severe("Unexpected error in column fetcher runnable: " + t.getMessage()); - taskFutures.forEach(f -> f.cancel(true)); } finally { + taskFutures.forEach(f -> f.cancel(true)); signalEndOfData(queue, localResultSchemaFields); - shutdownExecutor(columnExecutor); LOG.info("Column fetcher thread finished."); } }; - Thread fetcherThread = new Thread(columnFetcher, "getColumns-fetcher-" + effectiveCatalog); + Future fetcherFuture = connection.getExecutorService().submit(columnFetcher); BigQueryJsonResultSet resultSet = - BigQueryJsonResultSet.of(resultSchema, -1, queue, null, wrapThread(fetcherThread)); + BigQueryJsonResultSet.of(resultSchema, -1, queue, null, fetcherFuture); - fetcherThread.start(); LOG.info("Started background thread for getColumns"); return resultSet; } @@ -2474,7 +2354,7 @@ public ResultSet getColumnPrivileges( final BlockingQueue queue = new LinkedBlockingQueue<>(1); signalEndOfData(queue, resultSchemaFields); - return BigQueryJsonResultSet.of(resultSchema, 0, queue, null, null); + return BigQueryJsonResultSet.of(resultSchema, 0, queue, null); } Schema defineGetColumnPrivilegesSchema() { @@ -2502,7 +2382,7 @@ public ResultSet getTablePrivileges( final BlockingQueue queue = new LinkedBlockingQueue<>(1); signalEndOfData(queue, resultSchemaFields); - return BigQueryJsonResultSet.of(resultSchema, 0, queue, null, null); + return BigQueryJsonResultSet.of(resultSchema, 0, queue, null); } Schema defineGetTablePrivilegesSchema() { @@ -2524,7 +2404,7 @@ public ResultSet getBestRowIdentifier( final BlockingQueue queue = new LinkedBlockingQueue<>(1); signalEndOfData(queue, resultSchemaFields); - return BigQueryJsonResultSet.of(resultSchema, 0, queue, null, null); + return BigQueryJsonResultSet.of(resultSchema, 0, queue, null); } Schema defineGetBestRowIdentifierSchema() { @@ -2574,7 +2454,7 @@ public ResultSet getVersionColumns(String catalog, String schema, String table) final BlockingQueue queue = new LinkedBlockingQueue<>(1); signalEndOfData(queue, resultSchemaFields); - return BigQueryJsonResultSet.of(resultSchema, 0, queue, null, null); + return BigQueryJsonResultSet.of(resultSchema, 0, queue, null); } Schema defineGetVersionColumnsSchema() { @@ -3174,7 +3054,7 @@ public ResultSet getIndexInfo( final BlockingQueue queue = new LinkedBlockingQueue<>(1); signalEndOfData(queue, resultSchemaFields); - return BigQueryJsonResultSet.of(resultSchema, 0, queue, null, null); + return BigQueryJsonResultSet.of(resultSchema, 0, queue, null); } Schema defineGetIndexInfoSchema() { @@ -3305,7 +3185,7 @@ public ResultSet getUDTs( final BlockingQueue queue = new LinkedBlockingQueue<>(1); signalEndOfData(queue, resultSchemaFields); - return BigQueryJsonResultSet.of(resultSchema, 0, queue, null, null); + return BigQueryJsonResultSet.of(resultSchema, 0, queue, null); } Schema defineGetUDTsSchema() { @@ -3379,7 +3259,7 @@ public ResultSet getSuperTables(String catalog, String schemaPattern, String tab signalEndOfData(queue, resultSchemaFields); - return BigQueryJsonResultSet.of(resultSchema, 0, queue, null, null); + return BigQueryJsonResultSet.of(resultSchema, 0, queue, null); } Schema defineGetSuperTablesSchema() { @@ -3416,7 +3296,7 @@ public ResultSet getSuperTypes(String catalog, String schemaPattern, String type signalEndOfData(queue, resultSchemaFields); - return BigQueryJsonResultSet.of(resultSchema, 0, queue, null, null); + return BigQueryJsonResultSet.of(resultSchema, 0, queue, null); } Schema defineGetSuperTypesSchema() { @@ -3462,7 +3342,7 @@ public ResultSet getAttributes( final BlockingQueue queue = new LinkedBlockingQueue<>(1); signalEndOfData(queue, resultSchemaFields); - return BigQueryJsonResultSet.of(resultSchema, 0, queue, null, null); + return BigQueryJsonResultSet.of(resultSchema, 0, queue, null); } Schema defineGetAttributesSchema() { @@ -3712,12 +3592,11 @@ public ResultSet getSchemas(String catalog, String schemaPattern) throws SQLExce } }; - Thread fetcherThread = new Thread(schemaFetcher, "getSchemas-fetcher-" + catalog); + Future fetcherFuture = connection.getExecutorService().submit(schemaFetcher); BigQueryJsonResultSet resultSet = - BigQueryJsonResultSet.of(resultSchema, -1, queue, null, wrapThread(fetcherThread)); + BigQueryJsonResultSet.of(resultSchema, -1, queue, null, fetcherFuture); - fetcherThread.start(); - LOG.info("Started background thread for getSchemas"); + LOG.info("Submitted background task for getSchemas to metadata executor"); return resultSet; } @@ -3879,13 +3758,11 @@ public ResultSet getFunctions(String catalog, String schemaPattern, String funct final BlockingQueue queue = new LinkedBlockingQueue<>(DEFAULT_QUEUE_CAPACITY); final List collectedResults = Collections.synchronizedList(new ArrayList<>()); - final List> processingTaskFutures = new ArrayList<>(); final String catalogParam = catalog; Runnable functionFetcher = () -> { ExecutorService apiExecutor = null; - ExecutorService routineProcessorExecutor = null; final FieldList localResultSchemaFields = resultSchemaFields; final List>> apiFutures = new ArrayList<>(); @@ -3907,8 +3784,7 @@ public ResultSet getFunctions(String catalog, String schemaPattern, String funct return; } - apiExecutor = Executors.newFixedThreadPool(API_EXECUTOR_POOL_SIZE); - routineProcessorExecutor = Executors.newFixedThreadPool(this.metadataFetchThreadCount); + apiExecutor = connection.getMetadataExecutor(); for (Dataset dataset : datasetsToScan) { if (Thread.currentThread().isInterrupted()) { @@ -3946,7 +3822,6 @@ public ResultSet getFunctions(String catalog, String schemaPattern, String funct "Finished submitting " + apiFutures.size() + " findMatchingRoutines (for functions) tasks."); - apiExecutor.shutdown(); for (Future> apiFuture : apiFutures) { if (Thread.currentThread().isInterrupted()) { @@ -3964,17 +3839,11 @@ public ResultSet getFunctions(String catalog, String schemaPattern, String funct if ("SCALAR_FUNCTION".equalsIgnoreCase(routineType) || "TABLE_FUNCTION".equalsIgnoreCase(routineType)) { LOG.fine( - "Submitting processing task for function: " + "Processing function sequentially: " + routine.getRoutineId() + " of type " + routineType); - final Routine finalRoutine = routine; - Future processFuture = - routineProcessorExecutor.submit( - () -> - processFunctionInfo( - finalRoutine, collectedResults, localResultSchemaFields)); - processingTaskFutures.add(processFuture); + processFunctionInfo(routine, collectedResults, localResultSchemaFields); } } } @@ -3989,28 +3858,23 @@ public ResultSet getFunctions(String catalog, String schemaPattern, String funct + e.getMessage()); } } - waitForTasksCompletion(processingTaskFutures); Comparator comparator = defineGetFunctionsComparator(localResultSchemaFields); sortResults(collectedResults, comparator, "getFunctions", LOG); populateQueue(collectedResults, queue, localResultSchemaFields); } catch (Throwable t) { LOG.severe("Unexpected error in function fetcher runnable: " + t.getMessage()); - apiFutures.forEach(f -> f.cancel(true)); - processingTaskFutures.forEach(f -> f.cancel(true)); } finally { + apiFutures.forEach(f -> f.cancel(true)); signalEndOfData(queue, localResultSchemaFields); - shutdownExecutor(apiExecutor); - shutdownExecutor(routineProcessorExecutor); LOG.info("Function fetcher thread finished."); } }; - Thread fetcherThread = new Thread(functionFetcher, "getFunctions-fetcher-" + catalog); + Future fetcherFuture = connection.getExecutorService().submit(functionFetcher); BigQueryJsonResultSet resultSet = - BigQueryJsonResultSet.of(resultSchema, -1, queue, null, wrapThread(fetcherThread)); + BigQueryJsonResultSet.of(resultSchema, -1, queue, null, fetcherFuture); - fetcherThread.start(); LOG.info("Started background thread for getFunctions"); return resultSet; } @@ -4131,16 +3995,12 @@ public ResultSet getFunctionColumns( final BlockingQueue queue = new LinkedBlockingQueue<>(DEFAULT_QUEUE_CAPACITY); final List collectedResults = Collections.synchronizedList(new ArrayList<>()); - final List> processingTaskFutures = new ArrayList<>(); final String catalogParam = catalog; Runnable functionColumnFetcher = () -> { ExecutorService listRoutinesExecutor = null; ExecutorService getRoutineDetailsExecutor = null; - ExecutorService processParamsExecutor = null; - final String fetcherThreadNameSuffix = - "-" + catalogParam.substring(0, Math.min(10, catalogParam.length())); try { List datasetsToScan = @@ -4161,10 +4021,7 @@ public ResultSet getFunctionColumns( return; } - listRoutinesExecutor = - Executors.newFixedThreadPool( - API_EXECUTOR_POOL_SIZE, - runnable -> new Thread(runnable, "funcol-list-rout" + fetcherThreadNameSuffix)); + listRoutinesExecutor = connection.getMetadataExecutor(); List functionIdsToGet = listMatchingFunctionIdsFromDatasets( datasetsToScan, @@ -4173,7 +4030,6 @@ public ResultSet getFunctionColumns( listRoutinesExecutor, catalogParam, LOG); - shutdownExecutor(listRoutinesExecutor); listRoutinesExecutor = null; if (functionIdsToGet.isEmpty() || Thread.currentThread().isInterrupted()) { @@ -4181,14 +4037,9 @@ public ResultSet getFunctionColumns( return; } - getRoutineDetailsExecutor = - Executors.newFixedThreadPool( - this.metadataFetchThreadCount, - runnable -> - new Thread(runnable, "funcol-get-details" + fetcherThreadNameSuffix)); + getRoutineDetailsExecutor = connection.getMetadataExecutor(); List fullFunctions = fetchFullRoutineDetailsForIds(functionIdsToGet, getRoutineDetailsExecutor, LOG); - shutdownExecutor(getRoutineDetailsExecutor); getRoutineDetailsExecutor = null; if (fullFunctions.isEmpty() || Thread.currentThread().isInterrupted()) { @@ -4197,36 +4048,8 @@ public ResultSet getFunctionColumns( return; } - processParamsExecutor = - Executors.newFixedThreadPool( - this.metadataFetchThreadCount, - runnable -> - new Thread(runnable, "funcol-proc-params" + fetcherThreadNameSuffix)); - submitFunctionParameterProcessingJobs( - fullFunctions, - columnNameRegex, - collectedResults, - resultSchemaFields, - processParamsExecutor, - processingTaskFutures, - LOG); - - if (Thread.currentThread().isInterrupted()) { - LOG.warning( - "Fetcher: Interrupted before waiting for parameter processing. Catalog: " - + catalogParam); - processingTaskFutures.forEach(f -> f.cancel(true)); - } else { - LOG.fine( - "Fetcher: Waiting for " - + processingTaskFutures.size() - + " parameter processing tasks. Catalog: " - + catalogParam); - waitForTasksCompletion(processingTaskFutures); - LOG.fine( - "Fetcher: All parameter processing tasks completed or handled. Catalog: " - + catalogParam); - } + processFunctionParametersSequentially( + fullFunctions, columnNameRegex, collectedResults, resultSchemaFields, LOG); if (!Thread.currentThread().isInterrupted()) { Comparator comparator = @@ -4242,29 +4065,22 @@ public ResultSet getFunctionColumns( + catalogParam + ". Error: " + e.getMessage()); - processingTaskFutures.forEach(f -> f.cancel(true)); } catch (Throwable t) { LOG.severe( "Fetcher: Unexpected error in main try block for catalog " + catalogParam + ". Error: " + t.getMessage()); - processingTaskFutures.forEach(f -> f.cancel(true)); } finally { signalEndOfData(queue, resultSchemaFields); - if (listRoutinesExecutor != null) shutdownExecutor(listRoutinesExecutor); - if (getRoutineDetailsExecutor != null) shutdownExecutor(getRoutineDetailsExecutor); - if (processParamsExecutor != null) shutdownExecutor(processParamsExecutor); LOG.info("Function column fetcher thread finished for catalog: " + catalogParam); } }; - Thread fetcherThread = - new Thread(functionColumnFetcher, "getFunctionColumns-fetcher-" + catalog); + Future fetcherFuture = connection.getExecutorService().submit(functionColumnFetcher); BigQueryJsonResultSet resultSet = - BigQueryJsonResultSet.of(resultSchema, -1, queue, null, wrapThread(fetcherThread)); + BigQueryJsonResultSet.of(resultSchema, -1, queue, null, fetcherFuture); - fetcherThread.start(); LOG.info("Started background thread for getFunctionColumns for catalog: " + catalog); return resultSet; } @@ -4424,37 +4240,27 @@ List listMatchingFunctionIdsFromDatasets( return functionIdsToGet; } - void submitFunctionParameterProcessingJobs( + void processFunctionParametersSequentially( List fullFunctions, Pattern columnNameRegex, List collectedResults, FieldList resultSchemaFields, - ExecutorService processParamsExecutor, - List> outParameterProcessingFutures, BigQueryJdbcCustomLogger logger) throws InterruptedException { - logger.fine("Submitting parameter processing jobs for %d functions.", fullFunctions.size()); + logger.fine("Processing parameter jobs sequentially for %d functions.", fullFunctions.size()); for (Routine fullFunction : fullFunctions) { if (Thread.currentThread().isInterrupted()) { - logger.warning("Interrupted during submission of function parameter processing tasks."); + logger.warning("Interrupted during function parameter processing."); throw new InterruptedException( - "Interrupted while submitting function parameter processing jobs"); + "Interrupted while processing function parameters sequentially"); } if (fullFunction != null) { String routineType = fullFunction.getRoutineType(); if ("SCALAR_FUNCTION".equalsIgnoreCase(routineType) || "TABLE_FUNCTION".equalsIgnoreCase(routineType)) { - final Routine finalFullFunction = fullFunction; - Future processFuture = - processParamsExecutor.submit( - () -> - processFunctionParametersAndReturnValue( - finalFullFunction, - columnNameRegex, - collectedResults, - resultSchemaFields)); - outParameterProcessingFutures.add(processFuture); + processFunctionParametersAndReturnValue( + fullFunction, columnNameRegex, collectedResults, resultSchemaFields); } else { logger.warning( "Routine " @@ -4467,10 +4273,6 @@ void submitFunctionParameterProcessingJobs( } } } - logger.fine( - "Finished submitting " - + outParameterProcessingFutures.size() - + " processFunctionParametersAndReturnValue tasks."); } void processFunctionParametersAndReturnValue( @@ -4669,7 +4471,7 @@ public ResultSet getPseudoColumns( final BlockingQueue queue = new LinkedBlockingQueue<>(1); signalEndOfData(queue, resultSchemaFields); - return BigQueryJsonResultSet.of(resultSchema, 0, queue, null, null); + return BigQueryJsonResultSet.of(resultSchema, 0, queue, null); } Schema defineGetPseudoColumnsSchema() { @@ -5224,80 +5026,4 @@ static String readSqlFromFile(String filename) { String replaceSqlParameters(String sql, String... params) throws SQLException { return String.format(sql, (Object[]) params); } - - // TODO(keshav): This is a temporary compatibility bridge to wrap raw Threads into Futures. - // This should be removed when BigQueryDatabaseMetaData is refactored to use the ExecutorService - // directly. - static Future[] wrapThread(final Thread thread) { - if (thread == null) { - return null; - } - return new Future[] { - new Future() { - private volatile boolean cancelled = false; - - @Override - public synchronized boolean cancel(boolean mayInterruptIfRunning) { - if (cancelled || thread.getState() == Thread.State.TERMINATED) { - return false; - } - cancelled = true; - if (mayInterruptIfRunning) { - thread.interrupt(); - } - return true; - } - - @Override - public boolean isCancelled() { - return cancelled; - } - - @Override - public boolean isDone() { - return cancelled || thread.getState() == Thread.State.TERMINATED; - } - - @Override - public Object get() throws InterruptedException, CancellationException { - try { - return get(365, TimeUnit.DAYS); - } catch (TimeoutException e) { - throw new RuntimeException(e); - } - } - - @Override - public Object get(long timeout, TimeUnit unit) - throws InterruptedException, CancellationException, TimeoutException { - if (isCancelled()) { - throw new CancellationException(); - } - long remainingNanos = unit.toNanos(timeout); - long deadline = System.nanoTime() + remainingNanos; - while (thread.getState() != Thread.State.TERMINATED) { - if (isCancelled()) { - throw new CancellationException(); - } - if (remainingNanos <= 0) { - throw new TimeoutException(); - } - long remainingMillis = TimeUnit.NANOSECONDS.toMillis(remainingNanos); - if (remainingMillis == 0) { - remainingMillis = 1; - } - - long delay = Math.min(remainingMillis, 50); - if (thread.getState() == Thread.State.NEW) { - Thread.sleep(delay); - } else { - thread.join(delay); - } - remainingNanos = deadline - System.nanoTime(); - } - return null; - } - } - }; - } } diff --git a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJsonResultSet.java b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJsonResultSet.java index 4bebadca258c..b36a3e018823 100644 --- a/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJsonResultSet.java +++ b/java-bigquery-jdbc/src/main/java/com/google/cloud/bigquery/jdbc/BigQueryJsonResultSet.java @@ -109,6 +109,23 @@ static BigQueryJsonResultSet of( schema, totalRows, buffer, statement, false, null, -1, -1, ownedTasks, null, null); } + static BigQueryJsonResultSet of( + Schema schema, + long totalRows, + BlockingQueue buffer, + BigQueryStatement statement, + Future ownedTask) { + return of(schema, totalRows, buffer, statement, new Future[] {ownedTask}); + } + + static BigQueryJsonResultSet of( + Schema schema, + long totalRows, + BlockingQueue buffer, + BigQueryStatement statement) { + return of(schema, totalRows, buffer, statement, (Future[]) null); + } + BigQueryJsonResultSet() { super(null, null, null, false); totalRows = 0; diff --git a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaDataTest.java b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaDataTest.java index f756c636d847..3a97f41924a8 100644 --- a/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaDataTest.java +++ b/java-bigquery-jdbc/src/test/java/com/google/cloud/bigquery/jdbc/BigQueryDatabaseMetaDataTest.java @@ -44,14 +44,12 @@ import java.sql.Types; import java.util.*; import java.util.concurrent.Callable; -import java.util.concurrent.CancellationException; -import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; import java.util.concurrent.Future; -import java.util.concurrent.TimeUnit; -import java.util.concurrent.TimeoutException; import java.util.regex.Pattern; +import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; @@ -62,20 +60,31 @@ public class BigQueryDatabaseMetaDataTest { private BigQueryConnection bigQueryConnection; private BigQueryDatabaseMetaData dbMetadata; private BigQuery bigqueryClient; + private ExecutorService metadataExecutor; @BeforeEach public void setUp() throws SQLException { bigQueryConnection = mock(BigQueryConnection.class); bigqueryClient = mock(BigQuery.class); Statement mockStatement = mock(Statement.class); + metadataExecutor = Executors.newCachedThreadPool(); when(bigQueryConnection.getConnectionUrl()).thenReturn("jdbc:bigquery://test-project"); when(bigQueryConnection.getBigQuery()).thenReturn(bigqueryClient); when(bigQueryConnection.createStatement()).thenReturn(mockStatement); + when(bigQueryConnection.getMetadataExecutor()).thenReturn(metadataExecutor); + when(bigQueryConnection.getExecutorService()).thenReturn(metadataExecutor); dbMetadata = new BigQueryDatabaseMetaData(bigQueryConnection); } + @AfterEach + public void tearDown() { + if (metadataExecutor != null) { + metadataExecutor.shutdownNow(); + } + } + private Table mockBigQueryTable( String project, String dataset, String table, TableDefinition.Type type, String description) { Table mockTable = mock(Table.class); @@ -1598,7 +1607,7 @@ public void testListMatchingProcedureIdsFromDatasets() throws Exception { } @Test - public void testSubmitProcedureArgumentProcessingJobs_Basic() throws InterruptedException { + public void testProcessProcedureArgumentsSequentially_Basic() throws InterruptedException { String catalog = "p"; String schemaName = "d"; RoutineArgument arg1 = mockRoutineArgument("arg1_name", StandardSQLTypeName.STRING, "IN"); @@ -1623,32 +1632,13 @@ public void testSubmitProcedureArgumentProcessingJobs_Basic() throws Interrupted Schema resultSchema = dbMetadata.defineGetProcedureColumnsSchema(); FieldList resultSchemaFields = resultSchema.getFields(); - ExecutorService mockExecutor = mock(ExecutorService.class); - List> processingTaskFutures = new ArrayList<>(); + dbMetadata.processProcedureArgumentsSequentially( + fullRoutines, columnNameRegex, collectedResults, resultSchemaFields, dbMetadata.LOG); - // Capture the runnable submitted to the executor - List submittedRunnables = new ArrayList<>(); - doAnswer( - invocation -> { - Runnable runnable = invocation.getArgument(0); - submittedRunnables.add(runnable); - Future future = mock(Future.class); - return future; - }) - .when(mockExecutor) - .submit(any(Runnable.class)); - - dbMetadata.submitProcedureArgumentProcessingJobs( - fullRoutines, - columnNameRegex, - collectedResults, - resultSchemaFields, - mockExecutor, - processingTaskFutures, - dbMetadata.LOG); - - verify(mockExecutor, times(2)).submit(any(Runnable.class)); - assertEquals(2, processingTaskFutures.size()); + // Only proc1 has arguments, so collectedResults should contain 1 row. + assertEquals(1, collectedResults.size()); + FieldValueList row = collectedResults.get(0); + assertEquals("arg1_name", row.get("COLUMN_NAME").getStringValue()); } @Test @@ -3436,125 +3426,4 @@ public void testGetSchemas_WithoutProjectDiscovery() throws SQLException { verify(bigqueryClient, never()) .listDatasets(eq("discovered-1"), any(BigQuery.DatasetListOption.class)); } - - @Test - public void testWrapThread_NullThread() { - assertNull(BigQueryDatabaseMetaData.wrapThread(null)); - } - - @Test - public void testWrapThread_BasicLifecycle() throws Exception { - CountDownLatch startLatch = new CountDownLatch(1); - CountDownLatch finishLatch = new CountDownLatch(1); - Thread t = - new Thread( - () -> { - try { - startLatch.countDown(); - finishLatch.await(); - } catch (InterruptedException e) { - // ignore - } - }); - - Future[] futures = BigQueryDatabaseMetaData.wrapThread(t); - assertNotNull(futures); - assertEquals(1, futures.length); - Future f = futures[0]; - - // Thread is NEW (not started yet). - assertFalse(f.isDone()); - assertFalse(f.isCancelled()); - - t.start(); - startLatch.await(); - - // Thread is running. - assertFalse(f.isDone()); - assertFalse(f.isCancelled()); - - finishLatch.countDown(); - t.join(); - - // Thread is terminated. - assertTrue(f.isDone()); - assertFalse(f.isCancelled()); - assertNull(f.get()); - } - - @Test - public void testWrapThread_CancelBeforeStart() throws Exception { - Thread t = - new Thread( - () -> { - try { - Thread.sleep(1000); - } catch (InterruptedException e) { - // ignore - } - }); - - Future f = BigQueryDatabaseMetaData.wrapThread(t)[0]; - assertTrue(f.cancel(true)); - assertTrue(f.isCancelled()); - assertTrue(f.isDone()); - - // cancel on already cancelled should return false - assertFalse(f.cancel(true)); - - assertThrows(CancellationException.class, () -> f.get()); - assertThrows(CancellationException.class, () -> f.get(1, TimeUnit.SECONDS)); - } - - @Test - public void testWrapThread_CancelRunningWithInterrupt() throws Exception { - CountDownLatch startLatch = new CountDownLatch(1); - CountDownLatch interruptedLatch = new CountDownLatch(1); - Thread t = - new Thread( - () -> { - startLatch.countDown(); - try { - Thread.sleep(10000); - } catch (InterruptedException e) { - interruptedLatch.countDown(); - } - }); - - t.start(); - startLatch.await(); - - Future f = BigQueryDatabaseMetaData.wrapThread(t)[0]; - assertTrue(f.cancel(true)); - assertTrue(f.isCancelled()); - assertTrue(f.isDone()); - - assertTrue(interruptedLatch.await(5, TimeUnit.SECONDS)); - assertThrows(CancellationException.class, () -> f.get()); - } - - @Test - public void testWrapThread_GetTimeout() throws Exception { - CountDownLatch startLatch = new CountDownLatch(1); - Thread t = - new Thread( - () -> { - startLatch.countDown(); - try { - Thread.sleep(10000); - } catch (InterruptedException e) { - // ignore - } - }); - - t.start(); - startLatch.await(); - - Future f = BigQueryDatabaseMetaData.wrapThread(t)[0]; - assertThrows(TimeoutException.class, () -> f.get(100, TimeUnit.MILLISECONDS)); - - // Cleanup: stop the thread - t.interrupt(); - t.join(); - } } From 53b7142d7b04c8a85ea67feab6a3d8320d1a507d Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Fri, 26 Jun 2026 14:33:02 +0000 Subject: [PATCH 71/82] fix(datastore): disable built-in OpenTelemetry SDK when metrics export is disabled (#13543) Fixes: https://github.com/googleapis/google-cloud-java/issues/13469 --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- .../BuiltInDatastoreMetricsProvider.java | 10 ++++-- .../DatastoreCloudMonitoringExporter.java | 4 +++ ...DatastoreCloudMonitoringExporterUtils.java | 6 +++- .../telemetry/DatastoreMetricsRecorder.java | 2 +- .../BuiltInDatastoreMetricsProviderTest.java | 34 +++++++++++++++++-- .../DatastoreCloudMonitoringExporterTest.java | 30 ++++++++++++++++ .../DatastoreMetricsRecorderTest.java | 11 +++--- 7 files changed, 85 insertions(+), 12 deletions(-) diff --git a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/telemetry/BuiltInDatastoreMetricsProvider.java b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/telemetry/BuiltInDatastoreMetricsProvider.java index a538e1318135..d8494a52258d 100644 --- a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/telemetry/BuiltInDatastoreMetricsProvider.java +++ b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/telemetry/BuiltInDatastoreMetricsProvider.java @@ -36,7 +36,6 @@ import java.util.logging.Level; import java.util.logging.Logger; import javax.annotation.Nonnull; -import javax.annotation.Nullable; /** * Provides a built-in {@link OpenTelemetry} instance for Datastore client-side metrics. @@ -116,10 +115,15 @@ private static String hashClientUId(String uuid) { * the lifetime of their Datastore client. * * @param options Datastore Client Options - * @return a new {@link OpenTelemetry} instance, or {@code null} if it could not be created. + * @return a new {@link OpenTelemetry} instance. */ - @Nullable public OpenTelemetry createOpenTelemetry(@Nonnull DatastoreOptions options) { + // If built-in metrics export is disabled, return no-op OpenTelemetry to avoid instantiating + // a real SdkMeterProvider. Otherwise, the SDK-internal PeriodicMetricReader will start + // and attempt to export diagnostic metrics, leading to log spam if the exporter fails. + if (!options.getOpenTelemetryOptions().isExportBuiltinMetricsToGoogleCloudMonitoring()) { + return OpenTelemetry.noop(); + } Credentials credentials = Preconditions.checkNotNull( options.getCredentials(), "Credentials cannot be null for built in metrics"); diff --git a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/telemetry/DatastoreCloudMonitoringExporter.java b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/telemetry/DatastoreCloudMonitoringExporter.java index c0e34a977b16..06f355f8bb69 100644 --- a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/telemetry/DatastoreCloudMonitoringExporter.java +++ b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/telemetry/DatastoreCloudMonitoringExporter.java @@ -235,6 +235,10 @@ public CompletableResultCode export(@Nonnull Collection collection) return CompletableResultCode.ofFailure(); } + if (datastoreTimeSeries.isEmpty()) { + return CompletableResultCode.ofSuccess(); + } + ProjectName projectName = ProjectName.of(projectId); // Perform the actual network call to Cloud Monitoring. diff --git a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/telemetry/DatastoreCloudMonitoringExporterUtils.java b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/telemetry/DatastoreCloudMonitoringExporterUtils.java index 949bdff3c293..ce1dff566631 100644 --- a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/telemetry/DatastoreCloudMonitoringExporterUtils.java +++ b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/telemetry/DatastoreCloudMonitoringExporterUtils.java @@ -82,8 +82,12 @@ static List convertToDatastoreTimeSeries( List collection, Map clientAttributes) { List allTimeSeries = new ArrayList<>(); - // Metrics should already been filtered for Gax and Datastore related ones + // Only convert metrics that belong to Datastore/GAX (starting with METRIC_PREFIX) + // to filter out OpenTelemetry internal diagnostic metrics. for (MetricData metricData : collection) { + if (!metricData.getName().startsWith(TelemetryConstants.METRIC_PREFIX)) { + continue; + } // TODO(b/405457573): The monitored resource is currently written to `global` because the // Firestore namespace in Cloud Monitoring has not been deployed yet. Once the namespace // is available, database_id and location labels should be added here using diff --git a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/telemetry/DatastoreMetricsRecorder.java b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/telemetry/DatastoreMetricsRecorder.java index ac755ddb0f81..16202efcb544 100644 --- a/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/telemetry/DatastoreMetricsRecorder.java +++ b/java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/telemetry/DatastoreMetricsRecorder.java @@ -103,7 +103,7 @@ static DatastoreMetricsRecorder getInstance( // When using a local emulator, there is no need to configure a built-in Otel instance if (otelOptions.isExportBuiltinMetricsToGoogleCloudMonitoring()) { try { - if (builtInOtel != null) { + if (builtInOtel != null && builtInOtel != OpenTelemetry.noop()) { recorders.add( new OpenTelemetryDatastoreMetricsRecorder( builtInOtel, TelemetryConstants.METRIC_PREFIX)); diff --git a/java-datastore/google-cloud-datastore/src/test/java/com/google/cloud/datastore/telemetry/BuiltInDatastoreMetricsProviderTest.java b/java-datastore/google-cloud-datastore/src/test/java/com/google/cloud/datastore/telemetry/BuiltInDatastoreMetricsProviderTest.java index 655be0b6f84d..631c288a8c4f 100644 --- a/java-datastore/google-cloud-datastore/src/test/java/com/google/cloud/datastore/telemetry/BuiltInDatastoreMetricsProviderTest.java +++ b/java-datastore/google-cloud-datastore/src/test/java/com/google/cloud/datastore/telemetry/BuiltInDatastoreMetricsProviderTest.java @@ -21,6 +21,7 @@ import com.google.auth.CredentialTypeForMetrics; import com.google.auth.Credentials; import com.google.cloud.NoCredentials; +import com.google.cloud.datastore.DatastoreOpenTelemetryOptions; import com.google.cloud.datastore.DatastoreOptions; import io.opentelemetry.api.OpenTelemetry; import io.opentelemetry.sdk.OpenTelemetrySdk; @@ -54,7 +55,7 @@ public void testCreateOpenTelemetry_returnsNoOp() { .setCredentials(NoCredentials.getInstance()) .build(); OpenTelemetry otel = BuiltInDatastoreMetricsProvider.INSTANCE.createOpenTelemetry(options); - assertThat(otel).isInstanceOf(OpenTelemetry.noop().getClass()); + assertThat(otel).isSameInstanceAs(OpenTelemetry.noop()); } @Test @@ -69,6 +70,10 @@ public void testCreateOpenTelemetry_returnsNonNull() { .setProjectId(PROJECT_ID) .setDatabaseId("test-db") .setCredentials(credentials) + .setOpenTelemetryOptions( + DatastoreOpenTelemetryOptions.newBuilder() + .setExportBuiltinMetricsToGoogleCloudMonitoring(true) + .build()) .build(); OpenTelemetry otel = BuiltInDatastoreMetricsProvider.INSTANCE.createOpenTelemetry(options); @@ -96,6 +101,10 @@ public void testCreateOpenTelemetry_eachCallReturnsDistinctInstance() { .setProjectId(PROJECT_ID) .setDatabaseId("test-db") .setCredentials(credentials1) + .setOpenTelemetryOptions( + DatastoreOpenTelemetryOptions.newBuilder() + .setExportBuiltinMetricsToGoogleCloudMonitoring(true) + .build()) .build(); DatastoreOptions options2 = @@ -103,6 +112,10 @@ public void testCreateOpenTelemetry_eachCallReturnsDistinctInstance() { .setProjectId(PROJECT_ID) .setDatabaseId("test-db") .setCredentials(credentials2) + .setOpenTelemetryOptions( + DatastoreOpenTelemetryOptions.newBuilder() + .setExportBuiltinMetricsToGoogleCloudMonitoring(true) + .build()) .build(); OpenTelemetry otel1 = BuiltInDatastoreMetricsProvider.INSTANCE.createOpenTelemetry(options1); @@ -132,9 +145,26 @@ public void testCreateOpenTelemetry_withEmulatorHostProperty_returnsNoOp() { .setCredentials(NoCredentials.getInstance()) .build(); OpenTelemetry otel = BuiltInDatastoreMetricsProvider.INSTANCE.createOpenTelemetry(options); - assertThat(otel).isInstanceOf(OpenTelemetry.noop().getClass()); + assertThat(otel).isSameInstanceAs(OpenTelemetry.noop()); } finally { System.clearProperty(DatastoreOptions.LOCAL_HOST_ENV_VAR); } } + + @Test + public void testCreateOpenTelemetry_exportDisabled_returnsNoOp() { + Credentials credentials = EasyMock.mock(Credentials.class); + EasyMock.replay(credentials); + + DatastoreOptions options = + DatastoreOptions.newBuilder() + .setProjectId(PROJECT_ID) + .setDatabaseId("test-db") + .setCredentials(credentials) + // export is disabled by default + .build(); + + OpenTelemetry otel = BuiltInDatastoreMetricsProvider.INSTANCE.createOpenTelemetry(options); + assertThat(otel).isSameInstanceAs(OpenTelemetry.noop()); + } } diff --git a/java-datastore/google-cloud-datastore/src/test/java/com/google/cloud/datastore/telemetry/DatastoreCloudMonitoringExporterTest.java b/java-datastore/google-cloud-datastore/src/test/java/com/google/cloud/datastore/telemetry/DatastoreCloudMonitoringExporterTest.java index 9391585a12a9..e310082de363 100644 --- a/java-datastore/google-cloud-datastore/src/test/java/com/google/cloud/datastore/telemetry/DatastoreCloudMonitoringExporterTest.java +++ b/java-datastore/google-cloud-datastore/src/test/java/com/google/cloud/datastore/telemetry/DatastoreCloudMonitoringExporterTest.java @@ -42,6 +42,7 @@ import com.google.monitoring.v3.TimeSeries; import com.google.protobuf.Empty; import io.opentelemetry.api.common.Attributes; +import io.opentelemetry.sdk.common.CompletableResultCode; import io.opentelemetry.sdk.common.InstrumentationScopeInfo; import io.opentelemetry.sdk.metrics.data.AggregationTemporality; import io.opentelemetry.sdk.metrics.data.LongPointData; @@ -190,6 +191,35 @@ public void testClientCacheReferenceCounting() { verify(mockClient); } + @Test + public void testExportingIgnoredMetrics() { + // No expectations on mockMetricServiceStub means we expect NO calls to it. + replay(mockMetricServiceStub); + + long fakeValue = 11L; + long startEpoch = 10; + long endEpoch = 15; + LongPointData longPointData = + ImmutableLongPointData.create(startEpoch, endEpoch, attributes, fakeValue); + + String ignoredMetricName = "otel.sdk.metric_reader.collection.duration"; + MetricData ignoredData = + ImmutableMetricData.createLongSum( + resource, + scope, + ignoredMetricName, + "description", + "1", + ImmutableSumData.create( + true, AggregationTemporality.CUMULATIVE, ImmutableList.of(longPointData))); + + CompletableResultCode result = exporter.export(Collections.singletonList(ignoredData)); + + assertThat(result.isSuccess()).isTrue(); + + verify(mockMetricServiceStub); + } + private static class FakeMetricServiceClient extends MetricServiceClient { protected FakeMetricServiceClient(MetricServiceStub stub) { super(stub); diff --git a/java-datastore/google-cloud-datastore/src/test/java/com/google/cloud/datastore/telemetry/DatastoreMetricsRecorderTest.java b/java-datastore/google-cloud-datastore/src/test/java/com/google/cloud/datastore/telemetry/DatastoreMetricsRecorderTest.java index 71390957a04d..c19aea217334 100644 --- a/java-datastore/google-cloud-datastore/src/test/java/com/google/cloud/datastore/telemetry/DatastoreMetricsRecorderTest.java +++ b/java-datastore/google-cloud-datastore/src/test/java/com/google/cloud/datastore/telemetry/DatastoreMetricsRecorderTest.java @@ -21,6 +21,7 @@ import com.google.cloud.datastore.DatastoreOpenTelemetryOptions; import com.google.cloud.datastore.DatastoreOptions; import io.opentelemetry.api.OpenTelemetry; +import io.opentelemetry.sdk.OpenTelemetrySdk; import org.easymock.EasyMock; import org.junit.Test; import org.junit.runner.RunWith; @@ -79,7 +80,7 @@ public void tracingEnabledButMetricsDisabledAndBuiltInDisabled_returnsNoRecorder } @Test - public void defaultOptionsWithBuiltInMetricsEnabled_butNoCredentials_returnsOneRecorder() { + public void defaultOptionsWithBuiltInMetricsEnabled_butNoCredentials_returnsNoRecorders() { // Explicitly enable built-in metrics export DatastoreOptions options = baseOptions() // Uses NoCredentials by default @@ -92,12 +93,12 @@ public void defaultOptionsWithBuiltInMetricsEnabled_butNoCredentials_returnsOneR DatastoreMetricsRecorder.getInstance(options, OpenTelemetry.noop()); // Since baseOptions() uses NoCredentials, the provider returns OpenTelemetry.noop(). - // This NoOp instance is passed to getInstance, which adds it to the recorders list. - // So we have 1 recorder (the NoOp one). + // This NoOp instance is passed to getInstance, which should NOT add it to the recorders list. + // So we have 0 recorders. assertThat(recorder).isInstanceOf(CompositeDatastoreMetricsRecorder.class); CompositeDatastoreMetricsRecorder compositeRecorder = (CompositeDatastoreMetricsRecorder) recorder; - assertThat(compositeRecorder.getMetricRecorders().size()).isEqualTo(1); + assertThat(compositeRecorder.getMetricRecorders().size()).isEqualTo(0); } @Test @@ -142,7 +143,7 @@ public void bothEnabled_returnsTwoRecorders() { .setOpenTelemetry(OpenTelemetry.noop()) .build()) .build(); - OpenTelemetry builtInOtel = OpenTelemetry.noop(); + OpenTelemetry builtInOtel = OpenTelemetrySdk.builder().build(); DatastoreMetricsRecorder recorder = DatastoreMetricsRecorder.getInstance(options, builtInOtel); assertThat(recorder).isInstanceOf(CompositeDatastoreMetricsRecorder.class); From b898917fe3386ebf7fce53537ac24aa9665ee99a Mon Sep 17 00:00:00 2001 From: Igor Bernstein Date: Fri, 26 Jun 2026 18:13:00 -0400 Subject: [PATCH 72/82] chore: expose the user set executor on TransportProvider (#13557) This allows service clients to reuse that executor for other transport related things in addition to gax --- .../gaxx/grpc/BigtableTransportChannelProvider.java | 6 ++++++ .../api/gax/grpc/InstantiatingGrpcChannelProvider.java | 6 ++++++ .../httpjson/InstantiatingHttpJsonChannelProvider.java | 6 ++++++ .../google/api/gax/rpc/TransportChannelProvider.java | 10 ++++++++++ 4 files changed, 28 insertions(+) diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/gaxx/grpc/BigtableTransportChannelProvider.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/gaxx/grpc/BigtableTransportChannelProvider.java index e0d120d27795..31d3d9f8cc79 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/gaxx/grpc/BigtableTransportChannelProvider.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/gaxx/grpc/BigtableTransportChannelProvider.java @@ -74,6 +74,12 @@ public boolean needsExecutor() { return delegate.needsExecutor(); } + @Nullable + @Override + public Executor getExecutor() { + return delegate.getExecutor(); + } + @Override @Deprecated public BigtableTransportChannelProvider withExecutor(ScheduledExecutorService executor) { diff --git a/sdk-platform-java/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/InstantiatingGrpcChannelProvider.java b/sdk-platform-java/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/InstantiatingGrpcChannelProvider.java index c4543d986741..56f44fa7ae0a 100644 --- a/sdk-platform-java/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/InstantiatingGrpcChannelProvider.java +++ b/sdk-platform-java/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/InstantiatingGrpcChannelProvider.java @@ -264,6 +264,12 @@ public boolean needsExecutor() { return executor == null; } + @Nullable + @Override + public Executor getExecutor() { + return executor; + } + @Deprecated @Override public TransportChannelProvider withExecutor(ScheduledExecutorService executor) { diff --git a/sdk-platform-java/gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/InstantiatingHttpJsonChannelProvider.java b/sdk-platform-java/gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/InstantiatingHttpJsonChannelProvider.java index daf94a498cc4..495fec1ed450 100644 --- a/sdk-platform-java/gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/InstantiatingHttpJsonChannelProvider.java +++ b/sdk-platform-java/gax-java/gax-httpjson/src/main/java/com/google/api/gax/httpjson/InstantiatingHttpJsonChannelProvider.java @@ -105,6 +105,12 @@ public boolean needsExecutor() { return executor == null; } + @Nullable + @Override + public Executor getExecutor() { + return executor; + } + @Deprecated @Override public TransportChannelProvider withExecutor(ScheduledExecutorService executor) { diff --git a/sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/rpc/TransportChannelProvider.java b/sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/rpc/TransportChannelProvider.java index cc2ebdb064b6..ebdcbc9f415c 100644 --- a/sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/rpc/TransportChannelProvider.java +++ b/sdk-platform-java/gax-java/gax/src/main/java/com/google/api/gax/rpc/TransportChannelProvider.java @@ -36,6 +36,7 @@ import java.util.Map; import java.util.concurrent.Executor; import java.util.concurrent.ScheduledExecutorService; +import javax.annotation.Nullable; /** * Provides an interface to either build a TransportChannel or provide a fixed TransportChannel that @@ -70,6 +71,15 @@ public interface TransportChannelProvider { @Deprecated boolean needsExecutor(); + /** + * @return the user provided executor. This can be null if the user didn't override the executor + * and/or the TransportProvider is using its internal executor. + */ + @Nullable + default Executor getExecutor() { + return null; + } + /** Sets the executor to use when constructing a new {@link TransportChannel}. */ TransportChannelProvider withExecutor(Executor executor); From e9028dcfe1f9c375ba9963f3bde87be5d0f475bf Mon Sep 17 00:00:00 2001 From: Joe Wang <106995533+JoeWang1127@users.noreply.github.com> Date: Fri, 26 Jun 2026 22:14:29 +0000 Subject: [PATCH 73/82] chore: update librarian to v0.22.0 (#13552) --- .../src/main/java/io/grafeas/v1/AliasContext.java | 1 - .../java/io/grafeas/v1/AliasContextOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Architecture.java | 1 - .../src/main/java/io/grafeas/v1/Artifact.java | 1 - .../java/io/grafeas/v1/ArtifactOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Attestation.java | 1 - .../main/java/io/grafeas/v1/AttestationNote.java | 1 - .../io/grafeas/v1/AttestationNoteOrBuilder.java | 1 - .../java/io/grafeas/v1/AttestationOccurrence.java | 1 - .../v1/AttestationOccurrenceOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/BaseImage.java | 1 - .../java/io/grafeas/v1/BaseImageOrBuilder.java | 1 - .../io/grafeas/v1/BatchCreateNotesRequest.java | 1 - .../v1/BatchCreateNotesRequestOrBuilder.java | 1 - .../io/grafeas/v1/BatchCreateNotesResponse.java | 1 - .../v1/BatchCreateNotesResponseOrBuilder.java | 1 - .../grafeas/v1/BatchCreateOccurrencesRequest.java | 1 - .../BatchCreateOccurrencesRequestOrBuilder.java | 1 - .../v1/BatchCreateOccurrencesResponse.java | 1 - .../BatchCreateOccurrencesResponseOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Build.java | 1 - .../src/main/java/io/grafeas/v1/BuildNote.java | 1 - .../java/io/grafeas/v1/BuildNoteOrBuilder.java | 1 - .../main/java/io/grafeas/v1/BuildOccurrence.java | 1 - .../io/grafeas/v1/BuildOccurrenceOrBuilder.java | 1 - .../main/java/io/grafeas/v1/BuildProvenance.java | 1 - .../io/grafeas/v1/BuildProvenanceOrBuilder.java | 1 - .../main/java/io/grafeas/v1/BuilderConfig.java | 1 - .../io/grafeas/v1/BuilderConfigOrBuilder.java | 1 - .../v1/CISAKnownExploitedVulnerabilities.java | 1 - ...ISAKnownExploitedVulnerabilitiesOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/CVSS.java | 1 - .../main/java/io/grafeas/v1/CVSSOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/CVSSProto.java | 1 - .../src/main/java/io/grafeas/v1/CVSSVersion.java | 1 - .../src/main/java/io/grafeas/v1/CVSSv3.java | 1 - .../main/java/io/grafeas/v1/CVSSv3OrBuilder.java | 1 - .../io/grafeas/v1/CloudRepoSourceContext.java | 1 - .../v1/CloudRepoSourceContextOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Command.java | 1 - .../main/java/io/grafeas/v1/CommandOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Common.java | 1 - .../src/main/java/io/grafeas/v1/Completeness.java | 1 - .../java/io/grafeas/v1/CompletenessOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Compliance.java | 1 - .../main/java/io/grafeas/v1/ComplianceNote.java | 1 - .../io/grafeas/v1/ComplianceNoteOrBuilder.java | 1 - .../java/io/grafeas/v1/ComplianceOccurrence.java | 1 - .../grafeas/v1/ComplianceOccurrenceOrBuilder.java | 1 - .../java/io/grafeas/v1/ComplianceVersion.java | 1 - .../io/grafeas/v1/ComplianceVersionOrBuilder.java | 1 - .../java/io/grafeas/v1/CreateNoteRequest.java | 1 - .../io/grafeas/v1/CreateNoteRequestOrBuilder.java | 1 - .../io/grafeas/v1/CreateOccurrenceRequest.java | 1 - .../v1/CreateOccurrenceRequestOrBuilder.java | 1 - .../java/io/grafeas/v1/DSSEAttestationNote.java | 1 - .../grafeas/v1/DSSEAttestationNoteOrBuilder.java | 1 - .../io/grafeas/v1/DSSEAttestationOccurrence.java | 1 - .../v1/DSSEAttestationOccurrenceOrBuilder.java | 1 - .../java/io/grafeas/v1/DeleteNoteRequest.java | 1 - .../io/grafeas/v1/DeleteNoteRequestOrBuilder.java | 1 - .../io/grafeas/v1/DeleteOccurrenceRequest.java | 1 - .../v1/DeleteOccurrenceRequestOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Deployment.java | 1 - .../main/java/io/grafeas/v1/DeploymentNote.java | 1 - .../io/grafeas/v1/DeploymentNoteOrBuilder.java | 1 - .../java/io/grafeas/v1/DeploymentOccurrence.java | 1 - .../grafeas/v1/DeploymentOccurrenceOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Digest.java | 1 - .../main/java/io/grafeas/v1/DigestOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Discovery.java | 1 - .../main/java/io/grafeas/v1/DiscoveryNote.java | 1 - .../io/grafeas/v1/DiscoveryNoteOrBuilder.java | 1 - .../java/io/grafeas/v1/DiscoveryOccurrence.java | 1 - .../grafeas/v1/DiscoveryOccurrenceOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Distribution.java | 1 - .../java/io/grafeas/v1/DistributionOrBuilder.java | 1 - .../main/java/io/grafeas/v1/DsseAttestation.java | 1 - .../src/main/java/io/grafeas/v1/Envelope.java | 1 - .../java/io/grafeas/v1/EnvelopeOrBuilder.java | 1 - .../java/io/grafeas/v1/EnvelopeSignature.java | 1 - .../io/grafeas/v1/EnvelopeSignatureOrBuilder.java | 1 - .../v1/ExploitPredictionScoringSystem.java | 1 - .../ExploitPredictionScoringSystemOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/FileHashes.java | 1 - .../java/io/grafeas/v1/FileHashesOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/FileLocation.java | 1 - .../java/io/grafeas/v1/FileLocationOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Fingerprint.java | 1 - .../java/io/grafeas/v1/FingerprintOrBuilder.java | 1 - .../java/io/grafeas/v1/GerritSourceContext.java | 1 - .../grafeas/v1/GerritSourceContextOrBuilder.java | 1 - .../main/java/io/grafeas/v1/GetNoteRequest.java | 1 - .../io/grafeas/v1/GetNoteRequestOrBuilder.java | 1 - .../io/grafeas/v1/GetOccurrenceNoteRequest.java | 1 - .../v1/GetOccurrenceNoteRequestOrBuilder.java | 1 - .../java/io/grafeas/v1/GetOccurrenceRequest.java | 1 - .../grafeas/v1/GetOccurrenceRequestOrBuilder.java | 1 - .../main/java/io/grafeas/v1/GitSourceContext.java | 1 - .../io/grafeas/v1/GitSourceContextOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/GrafeasGrpc.java | 15 +++++++++++++++ .../java/io/grafeas/v1/GrafeasOuterClass.java | 1 - .../src/main/java/io/grafeas/v1/Hash.java | 1 - .../main/java/io/grafeas/v1/HashOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Image.java | 1 - .../src/main/java/io/grafeas/v1/ImageNote.java | 1 - .../java/io/grafeas/v1/ImageNoteOrBuilder.java | 1 - .../main/java/io/grafeas/v1/ImageOccurrence.java | 1 - .../io/grafeas/v1/ImageOccurrenceOrBuilder.java | 1 - .../main/java/io/grafeas/v1/InTotoProvenance.java | 1 - .../io/grafeas/v1/InTotoProvenanceOrBuilder.java | 1 - .../java/io/grafeas/v1/InTotoProvenanceProto.java | 1 - .../io/grafeas/v1/InTotoSlsaProvenanceV1.java | 1 - .../v1/InTotoSlsaProvenanceV1OrBuilder.java | 1 - .../main/java/io/grafeas/v1/InTotoStatement.java | 1 - .../io/grafeas/v1/InTotoStatementOrBuilder.java | 1 - .../java/io/grafeas/v1/InTotoStatementProto.java | 1 - java-grafeas/src/main/java/io/grafeas/v1/Jwt.java | 1 - .../src/main/java/io/grafeas/v1/JwtOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Layer.java | 1 - .../src/main/java/io/grafeas/v1/LayerDetails.java | 1 - .../java/io/grafeas/v1/LayerDetailsOrBuilder.java | 1 - .../main/java/io/grafeas/v1/LayerOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/License.java | 1 - .../main/java/io/grafeas/v1/LicenseOrBuilder.java | 1 - .../io/grafeas/v1/ListNoteOccurrencesRequest.java | 1 - .../v1/ListNoteOccurrencesRequestOrBuilder.java | 1 - .../grafeas/v1/ListNoteOccurrencesResponse.java | 1 - .../v1/ListNoteOccurrencesResponseOrBuilder.java | 1 - .../main/java/io/grafeas/v1/ListNotesRequest.java | 1 - .../io/grafeas/v1/ListNotesRequestOrBuilder.java | 1 - .../java/io/grafeas/v1/ListNotesResponse.java | 1 - .../io/grafeas/v1/ListNotesResponseOrBuilder.java | 1 - .../io/grafeas/v1/ListOccurrencesRequest.java | 1 - .../v1/ListOccurrencesRequestOrBuilder.java | 1 - .../io/grafeas/v1/ListOccurrencesResponse.java | 1 - .../v1/ListOccurrencesResponseOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Location.java | 1 - .../java/io/grafeas/v1/LocationOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Metadata.java | 1 - .../java/io/grafeas/v1/MetadataOrBuilder.java | 1 - .../main/java/io/grafeas/v1/NonCompliantFile.java | 1 - .../io/grafeas/v1/NonCompliantFileOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Note.java | 1 - .../src/main/java/io/grafeas/v1/NoteKind.java | 1 - .../main/java/io/grafeas/v1/NoteOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Occurrence.java | 1 - .../java/io/grafeas/v1/OccurrenceOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Package.java | 1 - .../src/main/java/io/grafeas/v1/PackageNote.java | 1 - .../java/io/grafeas/v1/PackageNoteOrBuilder.java | 1 - .../java/io/grafeas/v1/PackageOccurrence.java | 1 - .../io/grafeas/v1/PackageOccurrenceOrBuilder.java | 1 - .../main/java/io/grafeas/v1/ProjectRepoId.java | 1 - .../io/grafeas/v1/ProjectRepoIdOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Provenance.java | 1 - .../src/main/java/io/grafeas/v1/Recipe.java | 1 - .../main/java/io/grafeas/v1/RecipeOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/RelatedUrl.java | 1 - .../java/io/grafeas/v1/RelatedUrlOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/RepoId.java | 1 - .../main/java/io/grafeas/v1/RepoIdOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Risk.java | 1 - .../main/java/io/grafeas/v1/RiskOrBuilder.java | 1 - .../main/java/io/grafeas/v1/RiskOuterClass.java | 1 - .../java/io/grafeas/v1/SBOMReferenceNote.java | 1 - .../io/grafeas/v1/SBOMReferenceNoteOrBuilder.java | 1 - .../io/grafeas/v1/SBOMReferenceOccurrence.java | 1 - .../v1/SBOMReferenceOccurrenceOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Sbom.java | 1 - .../io/grafeas/v1/SbomReferenceIntotoPayload.java | 1 - .../v1/SbomReferenceIntotoPayloadOrBuilder.java | 1 - .../grafeas/v1/SbomReferenceIntotoPredicate.java | 1 - .../v1/SbomReferenceIntotoPredicateOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Secret.java | 1 - .../src/main/java/io/grafeas/v1/SecretKind.java | 1 - .../main/java/io/grafeas/v1/SecretLocation.java | 1 - .../io/grafeas/v1/SecretLocationOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/SecretNote.java | 1 - .../java/io/grafeas/v1/SecretNoteOrBuilder.java | 1 - .../main/java/io/grafeas/v1/SecretOccurrence.java | 1 - .../io/grafeas/v1/SecretOccurrenceOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/SecretStatus.java | 1 - .../java/io/grafeas/v1/SecretStatusOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Severity.java | 1 - .../java/io/grafeas/v1/SeverityOuterClass.java | 1 - .../src/main/java/io/grafeas/v1/Signature.java | 1 - .../java/io/grafeas/v1/SignatureOrBuilder.java | 1 - .../main/java/io/grafeas/v1/SlsaProvenance.java | 1 - .../io/grafeas/v1/SlsaProvenanceOrBuilder.java | 1 - .../java/io/grafeas/v1/SlsaProvenanceProto.java | 1 - .../java/io/grafeas/v1/SlsaProvenanceZeroTwo.java | 1 - .../v1/SlsaProvenanceZeroTwoOrBuilder.java | 1 - .../io/grafeas/v1/SlsaProvenanceZeroTwoProto.java | 1 - .../src/main/java/io/grafeas/v1/Source.java | 1 - .../main/java/io/grafeas/v1/SourceContext.java | 1 - .../io/grafeas/v1/SourceContextOrBuilder.java | 1 - .../main/java/io/grafeas/v1/SourceOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Subject.java | 1 - .../main/java/io/grafeas/v1/SubjectOrBuilder.java | 1 - .../java/io/grafeas/v1/UpdateNoteRequest.java | 1 - .../io/grafeas/v1/UpdateNoteRequestOrBuilder.java | 1 - .../io/grafeas/v1/UpdateOccurrenceRequest.java | 1 - .../v1/UpdateOccurrenceRequestOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Upgrade.java | 1 - .../java/io/grafeas/v1/UpgradeDistribution.java | 1 - .../grafeas/v1/UpgradeDistributionOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/UpgradeNote.java | 1 - .../java/io/grafeas/v1/UpgradeNoteOrBuilder.java | 1 - .../java/io/grafeas/v1/UpgradeOccurrence.java | 1 - .../io/grafeas/v1/UpgradeOccurrenceOrBuilder.java | 1 - .../src/main/java/io/grafeas/v1/Version.java | 1 - .../main/java/io/grafeas/v1/VersionOrBuilder.java | 1 - java-grafeas/src/main/java/io/grafeas/v1/Vex.java | 1 - .../main/java/io/grafeas/v1/Vulnerability.java | 1 - .../grafeas/v1/VulnerabilityAssessmentNote.java | 1 - .../v1/VulnerabilityAssessmentNoteOrBuilder.java | 1 - .../java/io/grafeas/v1/VulnerabilityNote.java | 1 - .../io/grafeas/v1/VulnerabilityNoteOrBuilder.java | 1 - .../io/grafeas/v1/VulnerabilityOccurrence.java | 1 - .../v1/VulnerabilityOccurrenceOrBuilder.java | 1 - .../main/java/io/grafeas/v1/WindowsUpdate.java | 1 - .../io/grafeas/v1/WindowsUpdateOrBuilder.java | 1 - librarian.yaml | 2 +- 224 files changed, 16 insertions(+), 223 deletions(-) diff --git a/java-grafeas/src/main/java/io/grafeas/v1/AliasContext.java b/java-grafeas/src/main/java/io/grafeas/v1/AliasContext.java index c762dcc2c5fe..b1473254e88d 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/AliasContext.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/AliasContext.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/AliasContextOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/AliasContextOrBuilder.java index b553aecbd783..8f45098280bb 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/AliasContextOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/AliasContextOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Architecture.java b/java-grafeas/src/main/java/io/grafeas/v1/Architecture.java index 9205463877b1..4989abef2ecd 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Architecture.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Architecture.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/package.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Artifact.java b/java-grafeas/src/main/java/io/grafeas/v1/Artifact.java index 722c35dc1048..240724864dfb 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Artifact.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Artifact.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ArtifactOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/ArtifactOrBuilder.java index 49c7e8e0c5de..5f34547328ff 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ArtifactOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ArtifactOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Attestation.java b/java-grafeas/src/main/java/io/grafeas/v1/Attestation.java index 084b3b8aa44b..1ac9695c4d24 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Attestation.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Attestation.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/attestation.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/AttestationNote.java b/java-grafeas/src/main/java/io/grafeas/v1/AttestationNote.java index 5ece2fbfc35d..19e36d562bea 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/AttestationNote.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/AttestationNote.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/attestation.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/AttestationNoteOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/AttestationNoteOrBuilder.java index abe27c607357..7984b3b04e6e 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/AttestationNoteOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/AttestationNoteOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/attestation.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/AttestationOccurrence.java b/java-grafeas/src/main/java/io/grafeas/v1/AttestationOccurrence.java index 47483a0e4e28..c1d5321cb2d5 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/AttestationOccurrence.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/AttestationOccurrence.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/attestation.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/AttestationOccurrenceOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/AttestationOccurrenceOrBuilder.java index 7d7553c9e597..2d780d2a1d3f 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/AttestationOccurrenceOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/AttestationOccurrenceOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/attestation.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/BaseImage.java b/java-grafeas/src/main/java/io/grafeas/v1/BaseImage.java index c7fcc106b0c4..24340ead88a6 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/BaseImage.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/BaseImage.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/BaseImageOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/BaseImageOrBuilder.java index 392c5d4043f8..4d8bc5d47f4a 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/BaseImageOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/BaseImageOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateNotesRequest.java b/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateNotesRequest.java index 9ac273599a83..4f25a3fe1a77 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateNotesRequest.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateNotesRequest.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateNotesRequestOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateNotesRequestOrBuilder.java index 02acdcf953f6..5397537248bf 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateNotesRequestOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateNotesRequestOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateNotesResponse.java b/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateNotesResponse.java index 2e0709abcaad..51cf52f8b55c 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateNotesResponse.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateNotesResponse.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateNotesResponseOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateNotesResponseOrBuilder.java index d1cf6ea13751..2851f45e25ec 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateNotesResponseOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateNotesResponseOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateOccurrencesRequest.java b/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateOccurrencesRequest.java index 5a621335f7f1..96ab28783828 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateOccurrencesRequest.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateOccurrencesRequest.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateOccurrencesRequestOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateOccurrencesRequestOrBuilder.java index f225e6566ebc..ff72e8c0e2ce 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateOccurrencesRequestOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateOccurrencesRequestOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateOccurrencesResponse.java b/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateOccurrencesResponse.java index 5bebe89636a6..d9cb03bccc5e 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateOccurrencesResponse.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateOccurrencesResponse.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateOccurrencesResponseOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateOccurrencesResponseOrBuilder.java index 0b2fc4fbe316..4b3bb68ad0e9 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateOccurrencesResponseOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/BatchCreateOccurrencesResponseOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Build.java b/java-grafeas/src/main/java/io/grafeas/v1/Build.java index add2921c444d..f7b28d7f0404 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Build.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Build.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/build.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/BuildNote.java b/java-grafeas/src/main/java/io/grafeas/v1/BuildNote.java index 0c744eae7daf..affdb19a9587 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/BuildNote.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/BuildNote.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/build.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/BuildNoteOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/BuildNoteOrBuilder.java index cef88afbfc4e..6ae291b03dab 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/BuildNoteOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/BuildNoteOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/build.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/BuildOccurrence.java b/java-grafeas/src/main/java/io/grafeas/v1/BuildOccurrence.java index 0874f05327eb..6c165b367b37 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/BuildOccurrence.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/BuildOccurrence.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/build.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/BuildOccurrenceOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/BuildOccurrenceOrBuilder.java index b3881d02b674..cacf2a4409b7 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/BuildOccurrenceOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/BuildOccurrenceOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/build.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/BuildProvenance.java b/java-grafeas/src/main/java/io/grafeas/v1/BuildProvenance.java index 6faff1152bb5..4a941af5e8f5 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/BuildProvenance.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/BuildProvenance.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/BuildProvenanceOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/BuildProvenanceOrBuilder.java index cd2960e102eb..dbf67ce21641 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/BuildProvenanceOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/BuildProvenanceOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/BuilderConfig.java b/java-grafeas/src/main/java/io/grafeas/v1/BuilderConfig.java index 5871a02ff2e2..e685033df374 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/BuilderConfig.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/BuilderConfig.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/intoto_provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/BuilderConfigOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/BuilderConfigOrBuilder.java index 0a0d4f0fbec2..3c689ab97f93 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/BuilderConfigOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/BuilderConfigOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/intoto_provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/CISAKnownExploitedVulnerabilities.java b/java-grafeas/src/main/java/io/grafeas/v1/CISAKnownExploitedVulnerabilities.java index f5225cb708e8..1873773c9d90 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/CISAKnownExploitedVulnerabilities.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/CISAKnownExploitedVulnerabilities.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/risk.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/CISAKnownExploitedVulnerabilitiesOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/CISAKnownExploitedVulnerabilitiesOrBuilder.java index bc0c32b4ba7a..9affed3f87c1 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/CISAKnownExploitedVulnerabilitiesOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/CISAKnownExploitedVulnerabilitiesOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/risk.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/CVSS.java b/java-grafeas/src/main/java/io/grafeas/v1/CVSS.java index 303ad975e1bb..7b9eb77ba775 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/CVSS.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/CVSS.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/cvss.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/CVSSOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/CVSSOrBuilder.java index 85809312d4c3..37bc9325c50c 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/CVSSOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/CVSSOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/cvss.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/CVSSProto.java b/java-grafeas/src/main/java/io/grafeas/v1/CVSSProto.java index 5454b384d171..f94c12fc9e12 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/CVSSProto.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/CVSSProto.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/cvss.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/CVSSVersion.java b/java-grafeas/src/main/java/io/grafeas/v1/CVSSVersion.java index f6dba7130807..791c837233ca 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/CVSSVersion.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/CVSSVersion.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/cvss.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/CVSSv3.java b/java-grafeas/src/main/java/io/grafeas/v1/CVSSv3.java index 63f3ae9c8042..aca89bd52a12 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/CVSSv3.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/CVSSv3.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/cvss.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/CVSSv3OrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/CVSSv3OrBuilder.java index aa58313c9bf0..719074370068 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/CVSSv3OrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/CVSSv3OrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/cvss.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/CloudRepoSourceContext.java b/java-grafeas/src/main/java/io/grafeas/v1/CloudRepoSourceContext.java index 08c95a08a30d..f54617751b64 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/CloudRepoSourceContext.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/CloudRepoSourceContext.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/CloudRepoSourceContextOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/CloudRepoSourceContextOrBuilder.java index c12e99ddf773..a461c3039ec8 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/CloudRepoSourceContextOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/CloudRepoSourceContextOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Command.java b/java-grafeas/src/main/java/io/grafeas/v1/Command.java index 2fe93fe3ad92..16d86d6e2bdb 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Command.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Command.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/CommandOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/CommandOrBuilder.java index 8269b59dda70..35c0fdc92e9f 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/CommandOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/CommandOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Common.java b/java-grafeas/src/main/java/io/grafeas/v1/Common.java index b576dd3e3f01..8ec7bc34815f 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Common.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Common.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Completeness.java b/java-grafeas/src/main/java/io/grafeas/v1/Completeness.java index 642b845407ec..0c577b39c251 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Completeness.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Completeness.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/intoto_provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/CompletenessOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/CompletenessOrBuilder.java index 062b8a04ecf1..b78d3dd54614 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/CompletenessOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/CompletenessOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/intoto_provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Compliance.java b/java-grafeas/src/main/java/io/grafeas/v1/Compliance.java index 04286b621246..2a521c14cc42 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Compliance.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Compliance.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/compliance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ComplianceNote.java b/java-grafeas/src/main/java/io/grafeas/v1/ComplianceNote.java index 9a0258fd0d31..189ef81e5cb9 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ComplianceNote.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ComplianceNote.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/compliance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ComplianceNoteOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/ComplianceNoteOrBuilder.java index faf4cf934d4b..d7b48bd859d4 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ComplianceNoteOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ComplianceNoteOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/compliance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ComplianceOccurrence.java b/java-grafeas/src/main/java/io/grafeas/v1/ComplianceOccurrence.java index d3bc88eeca2e..97131a72515b 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ComplianceOccurrence.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ComplianceOccurrence.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/compliance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ComplianceOccurrenceOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/ComplianceOccurrenceOrBuilder.java index 06b5eab514f4..f4771979ea4e 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ComplianceOccurrenceOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ComplianceOccurrenceOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/compliance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ComplianceVersion.java b/java-grafeas/src/main/java/io/grafeas/v1/ComplianceVersion.java index fbbe290fbb60..5842965f86c8 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ComplianceVersion.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ComplianceVersion.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/compliance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ComplianceVersionOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/ComplianceVersionOrBuilder.java index 5180297e9916..2c20df52915b 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ComplianceVersionOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ComplianceVersionOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/compliance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/CreateNoteRequest.java b/java-grafeas/src/main/java/io/grafeas/v1/CreateNoteRequest.java index 85f3754acbb0..0be7ee58ff01 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/CreateNoteRequest.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/CreateNoteRequest.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/CreateNoteRequestOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/CreateNoteRequestOrBuilder.java index e939fbdff2b3..561d3de60ab1 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/CreateNoteRequestOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/CreateNoteRequestOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/CreateOccurrenceRequest.java b/java-grafeas/src/main/java/io/grafeas/v1/CreateOccurrenceRequest.java index 9f9b87df3b2c..7c0367db2b83 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/CreateOccurrenceRequest.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/CreateOccurrenceRequest.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/CreateOccurrenceRequestOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/CreateOccurrenceRequestOrBuilder.java index 8f9666ecd6b6..f71ba8f18e21 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/CreateOccurrenceRequestOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/CreateOccurrenceRequestOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DSSEAttestationNote.java b/java-grafeas/src/main/java/io/grafeas/v1/DSSEAttestationNote.java index c5f665bb5451..8ec43bf0c76d 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DSSEAttestationNote.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DSSEAttestationNote.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/dsse_attestation.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DSSEAttestationNoteOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/DSSEAttestationNoteOrBuilder.java index a41565fa795f..cbb0a1d7bda6 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DSSEAttestationNoteOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DSSEAttestationNoteOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/dsse_attestation.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DSSEAttestationOccurrence.java b/java-grafeas/src/main/java/io/grafeas/v1/DSSEAttestationOccurrence.java index 2b4562e02d3f..21a1d2bbc48c 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DSSEAttestationOccurrence.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DSSEAttestationOccurrence.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/dsse_attestation.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DSSEAttestationOccurrenceOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/DSSEAttestationOccurrenceOrBuilder.java index 166b3c8da6c5..199eaef21933 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DSSEAttestationOccurrenceOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DSSEAttestationOccurrenceOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/dsse_attestation.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DeleteNoteRequest.java b/java-grafeas/src/main/java/io/grafeas/v1/DeleteNoteRequest.java index 2921c5bb5683..822850de29f6 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DeleteNoteRequest.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DeleteNoteRequest.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DeleteNoteRequestOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/DeleteNoteRequestOrBuilder.java index 5dcab7b5cf27..63eebda17354 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DeleteNoteRequestOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DeleteNoteRequestOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DeleteOccurrenceRequest.java b/java-grafeas/src/main/java/io/grafeas/v1/DeleteOccurrenceRequest.java index f5596267dc10..f7074bca7fc1 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DeleteOccurrenceRequest.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DeleteOccurrenceRequest.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DeleteOccurrenceRequestOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/DeleteOccurrenceRequestOrBuilder.java index d8ae33306f05..e66113e8f5cd 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DeleteOccurrenceRequestOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DeleteOccurrenceRequestOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Deployment.java b/java-grafeas/src/main/java/io/grafeas/v1/Deployment.java index e38199f34fe9..fe518b0f22c6 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Deployment.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Deployment.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/deployment.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DeploymentNote.java b/java-grafeas/src/main/java/io/grafeas/v1/DeploymentNote.java index 489616565b9d..a709cc5fce37 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DeploymentNote.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DeploymentNote.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/deployment.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DeploymentNoteOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/DeploymentNoteOrBuilder.java index 29c8697fac80..d6c3c7ff3565 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DeploymentNoteOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DeploymentNoteOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/deployment.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DeploymentOccurrence.java b/java-grafeas/src/main/java/io/grafeas/v1/DeploymentOccurrence.java index 3ef7ef1a00f7..ee337566804b 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DeploymentOccurrence.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DeploymentOccurrence.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/deployment.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DeploymentOccurrenceOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/DeploymentOccurrenceOrBuilder.java index daca1351d818..07302b8e85fd 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DeploymentOccurrenceOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DeploymentOccurrenceOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/deployment.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Digest.java b/java-grafeas/src/main/java/io/grafeas/v1/Digest.java index 318c2c017840..8f7eb18b784d 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Digest.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Digest.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DigestOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/DigestOrBuilder.java index e6bdefd768fa..dbb8da496b05 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DigestOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DigestOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Discovery.java b/java-grafeas/src/main/java/io/grafeas/v1/Discovery.java index 5731be1a9889..3c8415164cc5 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Discovery.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Discovery.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/discovery.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryNote.java b/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryNote.java index 0ce5ff033259..6ed9d25ddf07 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryNote.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryNote.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/discovery.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryNoteOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryNoteOrBuilder.java index 3033eb5e7aba..8eb2e67afb99 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryNoteOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryNoteOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/discovery.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryOccurrence.java b/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryOccurrence.java index 4685979935d5..969615637ebe 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryOccurrence.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryOccurrence.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/discovery.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryOccurrenceOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryOccurrenceOrBuilder.java index 655bd4cb8d9c..422551d33e4b 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryOccurrenceOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DiscoveryOccurrenceOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/discovery.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Distribution.java b/java-grafeas/src/main/java/io/grafeas/v1/Distribution.java index 8e263b302699..90e16b107b82 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Distribution.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Distribution.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/package.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DistributionOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/DistributionOrBuilder.java index de204ffba5a6..dfe8b25b2d67 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DistributionOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DistributionOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/package.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/DsseAttestation.java b/java-grafeas/src/main/java/io/grafeas/v1/DsseAttestation.java index b54a8a7ff3c3..6ea4e99b3139 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/DsseAttestation.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/DsseAttestation.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/dsse_attestation.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Envelope.java b/java-grafeas/src/main/java/io/grafeas/v1/Envelope.java index 7746d7d5bdde..089228e2e5b7 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Envelope.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Envelope.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/EnvelopeOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/EnvelopeOrBuilder.java index fd6389ee09aa..ab23e1908fa2 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/EnvelopeOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/EnvelopeOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/EnvelopeSignature.java b/java-grafeas/src/main/java/io/grafeas/v1/EnvelopeSignature.java index 566b906abd11..06ea758ae243 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/EnvelopeSignature.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/EnvelopeSignature.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/EnvelopeSignatureOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/EnvelopeSignatureOrBuilder.java index e82af25f3da1..4a6e15360562 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/EnvelopeSignatureOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/EnvelopeSignatureOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ExploitPredictionScoringSystem.java b/java-grafeas/src/main/java/io/grafeas/v1/ExploitPredictionScoringSystem.java index 27ee788ffe2c..bd78e87c5c2c 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ExploitPredictionScoringSystem.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ExploitPredictionScoringSystem.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/risk.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ExploitPredictionScoringSystemOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/ExploitPredictionScoringSystemOrBuilder.java index 7ef180014417..63905b9b1f91 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ExploitPredictionScoringSystemOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ExploitPredictionScoringSystemOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/risk.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/FileHashes.java b/java-grafeas/src/main/java/io/grafeas/v1/FileHashes.java index 1174cb6171dc..0ab47bed9d03 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/FileHashes.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/FileHashes.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/FileHashesOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/FileHashesOrBuilder.java index 8871072578bf..b2f025fc00e5 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/FileHashesOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/FileHashesOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/FileLocation.java b/java-grafeas/src/main/java/io/grafeas/v1/FileLocation.java index d26cd42b3139..5a69fd29cd09 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/FileLocation.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/FileLocation.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/FileLocationOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/FileLocationOrBuilder.java index 9e69bff3d875..ea9538f52314 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/FileLocationOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/FileLocationOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Fingerprint.java b/java-grafeas/src/main/java/io/grafeas/v1/Fingerprint.java index 575617adf00d..5d4eeaf67686 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Fingerprint.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Fingerprint.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/image.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/FingerprintOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/FingerprintOrBuilder.java index 5ce6716fa424..cf771aa694ef 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/FingerprintOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/FingerprintOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/image.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/GerritSourceContext.java b/java-grafeas/src/main/java/io/grafeas/v1/GerritSourceContext.java index 1a4ed2b8b455..64c9f37ef19f 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/GerritSourceContext.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/GerritSourceContext.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/GerritSourceContextOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/GerritSourceContextOrBuilder.java index 5d86338108cc..3e9ee85075d3 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/GerritSourceContextOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/GerritSourceContextOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/GetNoteRequest.java b/java-grafeas/src/main/java/io/grafeas/v1/GetNoteRequest.java index b39b60102b19..2fe8917e86ee 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/GetNoteRequest.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/GetNoteRequest.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/GetNoteRequestOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/GetNoteRequestOrBuilder.java index 65c7e7f44881..2964ed43cd00 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/GetNoteRequestOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/GetNoteRequestOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/GetOccurrenceNoteRequest.java b/java-grafeas/src/main/java/io/grafeas/v1/GetOccurrenceNoteRequest.java index 9d3163363a04..81ecc73df03c 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/GetOccurrenceNoteRequest.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/GetOccurrenceNoteRequest.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/GetOccurrenceNoteRequestOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/GetOccurrenceNoteRequestOrBuilder.java index 54b5847991e3..e6f22351fc98 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/GetOccurrenceNoteRequestOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/GetOccurrenceNoteRequestOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/GetOccurrenceRequest.java b/java-grafeas/src/main/java/io/grafeas/v1/GetOccurrenceRequest.java index 8f1343c729d9..bb4991e06165 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/GetOccurrenceRequest.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/GetOccurrenceRequest.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/GetOccurrenceRequestOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/GetOccurrenceRequestOrBuilder.java index 024718449bef..779a5d79f65c 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/GetOccurrenceRequestOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/GetOccurrenceRequestOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/GitSourceContext.java b/java-grafeas/src/main/java/io/grafeas/v1/GitSourceContext.java index 0084038725c6..db6efe84b63c 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/GitSourceContext.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/GitSourceContext.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/GitSourceContextOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/GitSourceContextOrBuilder.java index fa62fc7057d7..99ef39789f7b 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/GitSourceContextOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/GitSourceContextOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/GrafeasGrpc.java b/java-grafeas/src/main/java/io/grafeas/v1/GrafeasGrpc.java index 4a4781688749..16719e3d346b 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/GrafeasGrpc.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/GrafeasGrpc.java @@ -13,6 +13,21 @@ * See the License for the specific language governing permissions and * limitations under the License. */ +/* + * Copyright 2026 The Grafeas Authors. All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package io.grafeas.v1; diff --git a/java-grafeas/src/main/java/io/grafeas/v1/GrafeasOuterClass.java b/java-grafeas/src/main/java/io/grafeas/v1/GrafeasOuterClass.java index a4e7090263a3..c426988f5665 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/GrafeasOuterClass.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/GrafeasOuterClass.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Hash.java b/java-grafeas/src/main/java/io/grafeas/v1/Hash.java index e7c5e96da663..d2854c0fbb8e 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Hash.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Hash.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/HashOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/HashOrBuilder.java index 5a4ae226e215..939bdd3f35f5 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/HashOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/HashOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Image.java b/java-grafeas/src/main/java/io/grafeas/v1/Image.java index 3097de5dd29e..ccaf834c0a3b 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Image.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Image.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/image.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ImageNote.java b/java-grafeas/src/main/java/io/grafeas/v1/ImageNote.java index 6325884bd593..4aefd5a2d61a 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ImageNote.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ImageNote.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/image.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ImageNoteOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/ImageNoteOrBuilder.java index ed989a4a52d0..d19ceb15fa89 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ImageNoteOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ImageNoteOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/image.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ImageOccurrence.java b/java-grafeas/src/main/java/io/grafeas/v1/ImageOccurrence.java index 60ce92de3ca8..5c19f0f2c91d 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ImageOccurrence.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ImageOccurrence.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/image.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ImageOccurrenceOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/ImageOccurrenceOrBuilder.java index ef84a745b72f..1f3d3a440300 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ImageOccurrenceOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ImageOccurrenceOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/image.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/InTotoProvenance.java b/java-grafeas/src/main/java/io/grafeas/v1/InTotoProvenance.java index 14c3157292d4..b6d11cb91853 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/InTotoProvenance.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/InTotoProvenance.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/intoto_provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/InTotoProvenanceOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/InTotoProvenanceOrBuilder.java index d8478444114d..fdc41ce52553 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/InTotoProvenanceOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/InTotoProvenanceOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/intoto_provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/InTotoProvenanceProto.java b/java-grafeas/src/main/java/io/grafeas/v1/InTotoProvenanceProto.java index fe8210f38b96..f8a780bdfaeb 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/InTotoProvenanceProto.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/InTotoProvenanceProto.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/intoto_provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/InTotoSlsaProvenanceV1.java b/java-grafeas/src/main/java/io/grafeas/v1/InTotoSlsaProvenanceV1.java index debab97b0e08..e8f007f3d2fe 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/InTotoSlsaProvenanceV1.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/InTotoSlsaProvenanceV1.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/intoto_statement.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/InTotoSlsaProvenanceV1OrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/InTotoSlsaProvenanceV1OrBuilder.java index 0c44a676d2ed..9dd0319acfaf 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/InTotoSlsaProvenanceV1OrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/InTotoSlsaProvenanceV1OrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/intoto_statement.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/InTotoStatement.java b/java-grafeas/src/main/java/io/grafeas/v1/InTotoStatement.java index 48c824be9b07..adb7e579b5a8 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/InTotoStatement.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/InTotoStatement.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/intoto_statement.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/InTotoStatementOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/InTotoStatementOrBuilder.java index 0742e06fdffe..87bd1804b1af 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/InTotoStatementOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/InTotoStatementOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/intoto_statement.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/InTotoStatementProto.java b/java-grafeas/src/main/java/io/grafeas/v1/InTotoStatementProto.java index 7eabc9edbbb9..89e03985c06b 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/InTotoStatementProto.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/InTotoStatementProto.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/intoto_statement.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Jwt.java b/java-grafeas/src/main/java/io/grafeas/v1/Jwt.java index 9f5d7bf429ed..d242e6afe6f0 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Jwt.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Jwt.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/attestation.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/JwtOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/JwtOrBuilder.java index 74bc2214d239..97f25e8f43c5 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/JwtOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/JwtOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/attestation.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Layer.java b/java-grafeas/src/main/java/io/grafeas/v1/Layer.java index 2da0edaf2c56..2f8aa79fc2dd 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Layer.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Layer.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/image.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/LayerDetails.java b/java-grafeas/src/main/java/io/grafeas/v1/LayerDetails.java index 9f5e68ae41ed..5f6ea71950d1 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/LayerDetails.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/LayerDetails.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/LayerDetailsOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/LayerDetailsOrBuilder.java index ac346ff5fb2d..d39bcf7ad111 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/LayerDetailsOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/LayerDetailsOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/LayerOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/LayerOrBuilder.java index 5418655fb762..a0d7a0613ac4 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/LayerOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/LayerOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/image.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/License.java b/java-grafeas/src/main/java/io/grafeas/v1/License.java index e8205a0d8b53..e88f7f8931f0 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/License.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/License.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/LicenseOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/LicenseOrBuilder.java index e9f22ae8382b..0bd3f29c752b 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/LicenseOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/LicenseOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ListNoteOccurrencesRequest.java b/java-grafeas/src/main/java/io/grafeas/v1/ListNoteOccurrencesRequest.java index 73c9990db01a..f678de3e0181 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ListNoteOccurrencesRequest.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ListNoteOccurrencesRequest.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ListNoteOccurrencesRequestOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/ListNoteOccurrencesRequestOrBuilder.java index 57e35586d048..222097aeedd6 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ListNoteOccurrencesRequestOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ListNoteOccurrencesRequestOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ListNoteOccurrencesResponse.java b/java-grafeas/src/main/java/io/grafeas/v1/ListNoteOccurrencesResponse.java index 6fc0b80d1e26..5c3a4bcb2517 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ListNoteOccurrencesResponse.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ListNoteOccurrencesResponse.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ListNoteOccurrencesResponseOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/ListNoteOccurrencesResponseOrBuilder.java index bed27a706b0b..0aefffaf923c 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ListNoteOccurrencesResponseOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ListNoteOccurrencesResponseOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ListNotesRequest.java b/java-grafeas/src/main/java/io/grafeas/v1/ListNotesRequest.java index b79cb5cf7d57..88047d8ce602 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ListNotesRequest.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ListNotesRequest.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ListNotesRequestOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/ListNotesRequestOrBuilder.java index 386db077ceae..0f670b32e0d2 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ListNotesRequestOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ListNotesRequestOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ListNotesResponse.java b/java-grafeas/src/main/java/io/grafeas/v1/ListNotesResponse.java index 2d66f66cc434..2b01cc3aa12e 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ListNotesResponse.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ListNotesResponse.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ListNotesResponseOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/ListNotesResponseOrBuilder.java index faeaf54cffdf..85f90d7bdbc3 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ListNotesResponseOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ListNotesResponseOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ListOccurrencesRequest.java b/java-grafeas/src/main/java/io/grafeas/v1/ListOccurrencesRequest.java index 1bf1160f7432..804e8c1e7bb9 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ListOccurrencesRequest.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ListOccurrencesRequest.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ListOccurrencesRequestOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/ListOccurrencesRequestOrBuilder.java index 91e860032c3f..c28479106ab7 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ListOccurrencesRequestOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ListOccurrencesRequestOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ListOccurrencesResponse.java b/java-grafeas/src/main/java/io/grafeas/v1/ListOccurrencesResponse.java index 519a8cfb42f1..4bf57f523fea 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ListOccurrencesResponse.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ListOccurrencesResponse.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ListOccurrencesResponseOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/ListOccurrencesResponseOrBuilder.java index 318df75d4e6d..06dfbaac18d1 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ListOccurrencesResponseOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ListOccurrencesResponseOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Location.java b/java-grafeas/src/main/java/io/grafeas/v1/Location.java index 1171fe4926a2..e0f951c6f1c1 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Location.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Location.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/package.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/LocationOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/LocationOrBuilder.java index ddff70a5acd6..442d6cd9559a 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/LocationOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/LocationOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/package.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Metadata.java b/java-grafeas/src/main/java/io/grafeas/v1/Metadata.java index 117dd7718047..4ca9502042b0 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Metadata.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Metadata.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/intoto_provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/MetadataOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/MetadataOrBuilder.java index 0d4bd7263dda..016e435d41ba 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/MetadataOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/MetadataOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/intoto_provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/NonCompliantFile.java b/java-grafeas/src/main/java/io/grafeas/v1/NonCompliantFile.java index 6c6fb92e9b1d..61aa90ff5203 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/NonCompliantFile.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/NonCompliantFile.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/compliance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/NonCompliantFileOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/NonCompliantFileOrBuilder.java index ee9060e48a8b..28e15abc480d 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/NonCompliantFileOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/NonCompliantFileOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/compliance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Note.java b/java-grafeas/src/main/java/io/grafeas/v1/Note.java index d1900567cd7a..f5d9273dbc3a 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Note.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Note.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/NoteKind.java b/java-grafeas/src/main/java/io/grafeas/v1/NoteKind.java index 1eb91068b05e..7324eac8c9d8 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/NoteKind.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/NoteKind.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/NoteOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/NoteOrBuilder.java index cbbcd462eb80..9b0b6eedaf46 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/NoteOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/NoteOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Occurrence.java b/java-grafeas/src/main/java/io/grafeas/v1/Occurrence.java index 525c52e9f9ba..b14d3200dd09 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Occurrence.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Occurrence.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/OccurrenceOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/OccurrenceOrBuilder.java index ba217296e037..f353768579e6 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/OccurrenceOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/OccurrenceOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Package.java b/java-grafeas/src/main/java/io/grafeas/v1/Package.java index 97b3d9a004ea..d15f8a673e8e 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Package.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Package.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/package.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/PackageNote.java b/java-grafeas/src/main/java/io/grafeas/v1/PackageNote.java index f4014d0e1f8f..84092dbab646 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/PackageNote.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/PackageNote.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/package.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/PackageNoteOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/PackageNoteOrBuilder.java index ba4eda410d17..d7f4f50ed61c 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/PackageNoteOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/PackageNoteOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/package.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/PackageOccurrence.java b/java-grafeas/src/main/java/io/grafeas/v1/PackageOccurrence.java index f3c41130346e..758c5a3a1e57 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/PackageOccurrence.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/PackageOccurrence.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/package.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/PackageOccurrenceOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/PackageOccurrenceOrBuilder.java index 2fdd1c2db77e..419e3a5a3fc6 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/PackageOccurrenceOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/PackageOccurrenceOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/package.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ProjectRepoId.java b/java-grafeas/src/main/java/io/grafeas/v1/ProjectRepoId.java index d13cb8cb7d09..9fb091a64bef 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ProjectRepoId.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ProjectRepoId.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/ProjectRepoIdOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/ProjectRepoIdOrBuilder.java index fbe28238e217..144f1c3e459b 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/ProjectRepoIdOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/ProjectRepoIdOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Provenance.java b/java-grafeas/src/main/java/io/grafeas/v1/Provenance.java index f859bffe658f..ae38d0d22b68 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Provenance.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Provenance.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Recipe.java b/java-grafeas/src/main/java/io/grafeas/v1/Recipe.java index 1da154e9d5b2..3b4fe862c950 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Recipe.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Recipe.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/intoto_provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/RecipeOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/RecipeOrBuilder.java index b4c6f78e0a0f..048bfcabce3c 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/RecipeOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/RecipeOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/intoto_provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/RelatedUrl.java b/java-grafeas/src/main/java/io/grafeas/v1/RelatedUrl.java index f4d9c50b95fe..c9d96a0b5ab1 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/RelatedUrl.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/RelatedUrl.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/RelatedUrlOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/RelatedUrlOrBuilder.java index dc7ce160a7f5..58a1609b180e 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/RelatedUrlOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/RelatedUrlOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/RepoId.java b/java-grafeas/src/main/java/io/grafeas/v1/RepoId.java index aad9341b6b36..0fd5911f8c3d 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/RepoId.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/RepoId.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/RepoIdOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/RepoIdOrBuilder.java index e870d56f9c53..e49be47d396e 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/RepoIdOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/RepoIdOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Risk.java b/java-grafeas/src/main/java/io/grafeas/v1/Risk.java index 177513ae40c5..cc8417c102b8 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Risk.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Risk.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/risk.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/RiskOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/RiskOrBuilder.java index 4374786234cf..083b6bbaafec 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/RiskOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/RiskOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/risk.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/RiskOuterClass.java b/java-grafeas/src/main/java/io/grafeas/v1/RiskOuterClass.java index a92206cf057a..213acfd160f4 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/RiskOuterClass.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/RiskOuterClass.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/risk.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SBOMReferenceNote.java b/java-grafeas/src/main/java/io/grafeas/v1/SBOMReferenceNote.java index 58888e29a090..049ab84f2a59 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SBOMReferenceNote.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SBOMReferenceNote.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/sbom.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SBOMReferenceNoteOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/SBOMReferenceNoteOrBuilder.java index 6c4933c5ec3e..b2663b330495 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SBOMReferenceNoteOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SBOMReferenceNoteOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/sbom.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SBOMReferenceOccurrence.java b/java-grafeas/src/main/java/io/grafeas/v1/SBOMReferenceOccurrence.java index 00eff37313bc..808fb845d674 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SBOMReferenceOccurrence.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SBOMReferenceOccurrence.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/sbom.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SBOMReferenceOccurrenceOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/SBOMReferenceOccurrenceOrBuilder.java index 8c75dd943079..c3a2b6737dec 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SBOMReferenceOccurrenceOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SBOMReferenceOccurrenceOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/sbom.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Sbom.java b/java-grafeas/src/main/java/io/grafeas/v1/Sbom.java index ca900b1cb5c0..eef95c12cb84 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Sbom.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Sbom.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/sbom.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SbomReferenceIntotoPayload.java b/java-grafeas/src/main/java/io/grafeas/v1/SbomReferenceIntotoPayload.java index 81fe70e36406..2db9e8df68ee 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SbomReferenceIntotoPayload.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SbomReferenceIntotoPayload.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/sbom.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SbomReferenceIntotoPayloadOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/SbomReferenceIntotoPayloadOrBuilder.java index 236784f46c11..9004cb2c0fd6 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SbomReferenceIntotoPayloadOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SbomReferenceIntotoPayloadOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/sbom.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SbomReferenceIntotoPredicate.java b/java-grafeas/src/main/java/io/grafeas/v1/SbomReferenceIntotoPredicate.java index faa38cd29d66..375697fb80bb 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SbomReferenceIntotoPredicate.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SbomReferenceIntotoPredicate.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/sbom.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SbomReferenceIntotoPredicateOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/SbomReferenceIntotoPredicateOrBuilder.java index 0b2b947bb039..3f4291aa5421 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SbomReferenceIntotoPredicateOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SbomReferenceIntotoPredicateOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/sbom.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Secret.java b/java-grafeas/src/main/java/io/grafeas/v1/Secret.java index 7658bf8810b8..adbb26a55bcc 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Secret.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Secret.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/secret.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SecretKind.java b/java-grafeas/src/main/java/io/grafeas/v1/SecretKind.java index d66d1478ec96..9f75880c14eb 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SecretKind.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SecretKind.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/secret.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SecretLocation.java b/java-grafeas/src/main/java/io/grafeas/v1/SecretLocation.java index 86c12a0e78d2..41c9f37ad920 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SecretLocation.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SecretLocation.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/secret.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SecretLocationOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/SecretLocationOrBuilder.java index 99a8664fbb5a..109ad87b4aee 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SecretLocationOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SecretLocationOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/secret.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SecretNote.java b/java-grafeas/src/main/java/io/grafeas/v1/SecretNote.java index a45941307b9f..2401c8174e42 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SecretNote.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SecretNote.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/secret.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SecretNoteOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/SecretNoteOrBuilder.java index 1c09c7b87353..495a76e8266c 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SecretNoteOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SecretNoteOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/secret.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SecretOccurrence.java b/java-grafeas/src/main/java/io/grafeas/v1/SecretOccurrence.java index 451edfa7b1c5..8e5f5cce13f0 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SecretOccurrence.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SecretOccurrence.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/secret.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SecretOccurrenceOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/SecretOccurrenceOrBuilder.java index 347ec3e959c7..592e18c004b8 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SecretOccurrenceOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SecretOccurrenceOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/secret.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SecretStatus.java b/java-grafeas/src/main/java/io/grafeas/v1/SecretStatus.java index 0ef7075f6692..85a57ec9bf3c 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SecretStatus.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SecretStatus.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/secret.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SecretStatusOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/SecretStatusOrBuilder.java index c88d816bc5bd..0878391d9946 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SecretStatusOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SecretStatusOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/secret.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Severity.java b/java-grafeas/src/main/java/io/grafeas/v1/Severity.java index c59339aaa2aa..72190e2ace8e 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Severity.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Severity.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/severity.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SeverityOuterClass.java b/java-grafeas/src/main/java/io/grafeas/v1/SeverityOuterClass.java index c5f23ad4cc75..856d45faee38 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SeverityOuterClass.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SeverityOuterClass.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/severity.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Signature.java b/java-grafeas/src/main/java/io/grafeas/v1/Signature.java index 01ff389c5b0e..d510bd03c3fb 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Signature.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Signature.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SignatureOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/SignatureOrBuilder.java index be0955b97e66..30bb348e2603 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SignatureOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SignatureOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/common.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenance.java b/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenance.java index 009d7ff28194..852c173c23a1 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenance.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenance.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/slsa_provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceOrBuilder.java index 9b16d60ec42a..f063a1943743 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/slsa_provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceProto.java b/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceProto.java index 2563499ce945..de8878393043 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceProto.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceProto.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/slsa_provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceZeroTwo.java b/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceZeroTwo.java index 4fd785d1c11b..c039085f665e 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceZeroTwo.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceZeroTwo.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/slsa_provenance_zero_two.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceZeroTwoOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceZeroTwoOrBuilder.java index 50df379f2c5f..d10c743aba46 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceZeroTwoOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceZeroTwoOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/slsa_provenance_zero_two.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceZeroTwoProto.java b/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceZeroTwoProto.java index ddad8922b0b2..f647a78a2850 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceZeroTwoProto.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SlsaProvenanceZeroTwoProto.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/slsa_provenance_zero_two.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Source.java b/java-grafeas/src/main/java/io/grafeas/v1/Source.java index 3fc1ce447d3e..a085eda0f4d5 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Source.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Source.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SourceContext.java b/java-grafeas/src/main/java/io/grafeas/v1/SourceContext.java index fd74f832404b..b6b890b00a3e 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SourceContext.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SourceContext.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SourceContextOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/SourceContextOrBuilder.java index 287bee48f547..0ee59a02ea7c 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SourceContextOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SourceContextOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SourceOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/SourceOrBuilder.java index 716af763840f..bb0f7e9d67d8 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SourceOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SourceOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/provenance.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Subject.java b/java-grafeas/src/main/java/io/grafeas/v1/Subject.java index dfa6959fb9c5..0754b3b82da5 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Subject.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Subject.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/intoto_statement.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/SubjectOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/SubjectOrBuilder.java index 1c10ea2a291b..7c1c2bf30eda 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/SubjectOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/SubjectOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/intoto_statement.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/UpdateNoteRequest.java b/java-grafeas/src/main/java/io/grafeas/v1/UpdateNoteRequest.java index 373e70017d55..0ec9cf9e9a0c 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/UpdateNoteRequest.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/UpdateNoteRequest.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/UpdateNoteRequestOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/UpdateNoteRequestOrBuilder.java index 1e0c925a2068..7954188cdb08 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/UpdateNoteRequestOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/UpdateNoteRequestOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/UpdateOccurrenceRequest.java b/java-grafeas/src/main/java/io/grafeas/v1/UpdateOccurrenceRequest.java index f5c066097268..b159ff730f34 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/UpdateOccurrenceRequest.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/UpdateOccurrenceRequest.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/UpdateOccurrenceRequestOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/UpdateOccurrenceRequestOrBuilder.java index f767a44dd1fd..eb8a2db701b1 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/UpdateOccurrenceRequestOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/UpdateOccurrenceRequestOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/grafeas.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Upgrade.java b/java-grafeas/src/main/java/io/grafeas/v1/Upgrade.java index e9f4c50012c5..d14d95c42e7f 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Upgrade.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Upgrade.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/upgrade.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/UpgradeDistribution.java b/java-grafeas/src/main/java/io/grafeas/v1/UpgradeDistribution.java index a2ee5aef422c..bc1444549479 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/UpgradeDistribution.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/UpgradeDistribution.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/upgrade.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/UpgradeDistributionOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/UpgradeDistributionOrBuilder.java index 4047a10f56af..7c6514da7a6a 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/UpgradeDistributionOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/UpgradeDistributionOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/upgrade.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/UpgradeNote.java b/java-grafeas/src/main/java/io/grafeas/v1/UpgradeNote.java index bc72fba4e1cc..ae3bc586f2ca 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/UpgradeNote.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/UpgradeNote.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/upgrade.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/UpgradeNoteOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/UpgradeNoteOrBuilder.java index 146676c206e9..e49625130f8d 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/UpgradeNoteOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/UpgradeNoteOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/upgrade.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/UpgradeOccurrence.java b/java-grafeas/src/main/java/io/grafeas/v1/UpgradeOccurrence.java index 5d1f1cf758a7..a32f2672f967 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/UpgradeOccurrence.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/UpgradeOccurrence.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/upgrade.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/UpgradeOccurrenceOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/UpgradeOccurrenceOrBuilder.java index d6c6c741cf81..3a7fe04feabb 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/UpgradeOccurrenceOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/UpgradeOccurrenceOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/upgrade.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Version.java b/java-grafeas/src/main/java/io/grafeas/v1/Version.java index 686c90b71cc3..31a5ba844ae9 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Version.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Version.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/package.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/VersionOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/VersionOrBuilder.java index 347c09d11e72..e4e51f7d4162 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/VersionOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/VersionOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/package.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Vex.java b/java-grafeas/src/main/java/io/grafeas/v1/Vex.java index e918b2d7e05b..91f6d85b79db 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Vex.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Vex.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/vex.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/Vulnerability.java b/java-grafeas/src/main/java/io/grafeas/v1/Vulnerability.java index 716620308338..9631ea431193 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/Vulnerability.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/Vulnerability.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/vulnerability.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityAssessmentNote.java b/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityAssessmentNote.java index 388f154dab01..4a3847a51d54 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityAssessmentNote.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityAssessmentNote.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/vex.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityAssessmentNoteOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityAssessmentNoteOrBuilder.java index 27a5f2a72d17..11678bbc0589 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityAssessmentNoteOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityAssessmentNoteOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/vex.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityNote.java b/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityNote.java index 43833424c49d..a4a78e55ef76 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityNote.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityNote.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/vulnerability.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityNoteOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityNoteOrBuilder.java index 5eb1bd90aab4..e1b3df6580a8 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityNoteOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityNoteOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/vulnerability.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityOccurrence.java b/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityOccurrence.java index 444db1daeeea..cea70498360e 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityOccurrence.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityOccurrence.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/vulnerability.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityOccurrenceOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityOccurrenceOrBuilder.java index bacbbe378ecf..1d0a7e73edd4 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityOccurrenceOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/VulnerabilityOccurrenceOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/vulnerability.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/WindowsUpdate.java b/java-grafeas/src/main/java/io/grafeas/v1/WindowsUpdate.java index bcd99f69aa17..e5f0069b69c3 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/WindowsUpdate.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/WindowsUpdate.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/upgrade.proto diff --git a/java-grafeas/src/main/java/io/grafeas/v1/WindowsUpdateOrBuilder.java b/java-grafeas/src/main/java/io/grafeas/v1/WindowsUpdateOrBuilder.java index 19f59f2cfc08..e538db13267c 100644 --- a/java-grafeas/src/main/java/io/grafeas/v1/WindowsUpdateOrBuilder.java +++ b/java-grafeas/src/main/java/io/grafeas/v1/WindowsUpdateOrBuilder.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: grafeas/v1/upgrade.proto diff --git a/librarian.yaml b/librarian.yaml index 047d6eb8723a..4f3116bd9357 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. language: java -version: v0.21.1-0.20260617000028-820646f3db93 +version: v0.22.0 repo: googleapis/google-cloud-java sources: googleapis: From 6908deefbcb4f1e77b9a73b09a6ea96261a45846 Mon Sep 17 00:00:00 2001 From: rahul2393 Date: Sat, 27 Jun 2026 12:02:15 +0530 Subject: [PATCH 74/82] fix(spanner): pin inline read-write transactions to default endpoint (#13562) Fixes location-aware routing for inline read-write transactions that begin on the default endpoint. When an inline read-write transaction (`TransactionSelector.BEGIN`) starts on the default endpoint, the client must remember that default endpoint affinity for the returned transaction ID. Without this, later statements in the same transaction can be routed by CacheUpdate to a direct endpoint, causing mid-transaction endpoint switches and ABORTED failures. This change records default endpoint affinity for inline read-write begins, matching the existing behavior for explicit `BeginTransaction` requests. --- .../cloud/spanner/spi/v1/KeyAwareChannel.java | 1 + ...nAwareSharedBackendReplicaHarnessTest.java | 126 +++++++++++++++--- 2 files changed, 108 insertions(+), 19 deletions(-) diff --git a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/KeyAwareChannel.java b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/KeyAwareChannel.java index 16903ad0cfac..c0dfdb8210fe 100644 --- a/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/KeyAwareChannel.java +++ b/java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/spi/v1/KeyAwareChannel.java @@ -785,6 +785,7 @@ private void maybeTrackReadWriteBegin(TransactionSelector selector) { if (selector.getSelectorCase() == TransactionSelector.SelectorCase.BEGIN && !selector.getBegin().hasReadOnly()) { shouldRecordTransactionAffinity = true; + allowDefaultAffinity = true; } } diff --git a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/LocationAwareSharedBackendReplicaHarnessTest.java b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/LocationAwareSharedBackendReplicaHarnessTest.java index dbb1aecb052e..d55e95653e21 100644 --- a/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/LocationAwareSharedBackendReplicaHarnessTest.java +++ b/java-spanner/google-cloud-spanner/src/test/java/com/google/cloud/spanner/LocationAwareSharedBackendReplicaHarnessTest.java @@ -67,6 +67,7 @@ public class LocationAwareSharedBackendReplicaHarnessTest { private static final String PROJECT = "fake-project"; private static final String INSTANCE = "fake-instance"; private static final String DATABASE = "fake-database"; + private static final AtomicInteger DATABASE_COUNTER = new AtomicInteger(); private static final String TABLE = "T"; private static final String REPLICA_LOCATION = "us-east1"; private static final Statement SEED_QUERY = Statement.of("SELECT 1"); @@ -85,6 +86,14 @@ public class LocationAwareSharedBackendReplicaHarnessTest { .build(); private static SharedBackendReplicaHarness harness; + // Assigned a fresh value per test so each test uses a distinct database scope. The location-aware + // routing layer keeps a process-wide EndpointLatencyRegistry keyed by (databaseScope, + // operationUid, ...). Each test builds a new Spanner whose per-channel operationUid counter + // restarts at 1, so without a unique scope a prior test's recorded error/latency penalties (e.g. + // an aborted commit on the leader) would leak into a later test and skew its routing, making the + // routing assertions flaky. + private String database; + @BeforeClass public static void enableLocationAwareRouting() throws Exception { SpannerOptions.useEnvironment( @@ -100,6 +109,7 @@ public boolean isEnableLocationApi() { @Before public void resetHarness() { harness.reset(); + database = DATABASE + "-" + DATABASE_COUNTER.incrementAndGet(); } @AfterClass @@ -118,7 +128,7 @@ public static void restoreEnvironment() throws Exception { public void singleUseReadReroutesOnResourceExhaustedForBypassTraffic() throws Exception { try (Spanner spanner = createSpanner(harness)) { configureBackend(harness, singleRowReadResultSet("b")); - DatabaseClient client = spanner.getDatabaseClient(DatabaseId.of(PROJECT, INSTANCE, DATABASE)); + DatabaseClient client = spanner.getDatabaseClient(DatabaseId.of(PROJECT, INSTANCE, database)); seedLocationMetadata(client); waitForReplicaRoutedRead(client, harness); @@ -135,7 +145,7 @@ public void singleUseReadReroutesOnResourceExhaustedForBypassTraffic() throws Ex KeySet.singleKey(Key.of("b")), Arrays.asList("k"), Options.directedRead(DIRECTED_READ_OPTIONS))) { - assertTrue(resultSet.next()); + assertTrue(drain(resultSet)); } String diagnostics = routingDiagnostics(harness); @@ -154,7 +164,7 @@ public void singleUseReadReroutesOnResourceExhaustedForBypassTraffic() throws Ex public void singleUseReadCooldownSkipsReplicaOnNextRequestForBypassTraffic() throws Exception { try (Spanner spanner = createSpanner(harness)) { configureBackend(harness, singleRowReadResultSet("b")); - DatabaseClient client = spanner.getDatabaseClient(DatabaseId.of(PROJECT, INSTANCE, DATABASE)); + DatabaseClient client = spanner.getDatabaseClient(DatabaseId.of(PROJECT, INSTANCE, database)); seedLocationMetadata(client); waitForReplicaRoutedRead(client, harness); @@ -172,7 +182,7 @@ public void singleUseReadCooldownSkipsReplicaOnNextRequestForBypassTraffic() thr KeySet.singleKey(Key.of("b")), Arrays.asList("k"), Options.directedRead(DIRECTED_READ_OPTIONS))) { - assertTrue(firstRead.next()); + assertTrue(drain(firstRead)); } try (ResultSet secondRead = @@ -183,7 +193,7 @@ public void singleUseReadCooldownSkipsReplicaOnNextRequestForBypassTraffic() thr KeySet.singleKey(Key.of("b")), Arrays.asList("k"), Options.directedRead(DIRECTED_READ_OPTIONS))) { - assertTrue(secondRead.next()); + assertTrue(drain(secondRead)); } String diagnostics = routingDiagnostics(harness); @@ -210,7 +220,7 @@ public void singleUseReadCooldownSkipsReplicaOnNextRequestForBypassTraffic() thr public void singleUseReadReroutesOnUnavailableForBypassTraffic() throws Exception { try (Spanner spanner = createSpanner(harness)) { configureBackend(harness, singleRowReadResultSet("b")); - DatabaseClient client = spanner.getDatabaseClient(DatabaseId.of(PROJECT, INSTANCE, DATABASE)); + DatabaseClient client = spanner.getDatabaseClient(DatabaseId.of(PROJECT, INSTANCE, database)); seedLocationMetadata(client); waitForReplicaRoutedRead(client, harness); @@ -227,7 +237,7 @@ public void singleUseReadReroutesOnUnavailableForBypassTraffic() throws Exceptio KeySet.singleKey(Key.of("b")), Arrays.asList("k"), Options.directedRead(DIRECTED_READ_OPTIONS))) { - assertTrue(resultSet.next()); + assertTrue(drain(resultSet)); } String diagnostics = routingDiagnostics(harness); @@ -247,7 +257,7 @@ public void singleUseReadCooldownSkipsUnavailableReplicaOnNextRequestForBypassTr throws Exception { try (Spanner spanner = createSpanner(harness)) { configureBackend(harness, singleRowReadResultSet("b")); - DatabaseClient client = spanner.getDatabaseClient(DatabaseId.of(PROJECT, INSTANCE, DATABASE)); + DatabaseClient client = spanner.getDatabaseClient(DatabaseId.of(PROJECT, INSTANCE, database)); seedLocationMetadata(client); waitForReplicaRoutedRead(client, harness); @@ -264,7 +274,7 @@ public void singleUseReadCooldownSkipsUnavailableReplicaOnNextRequestForBypassTr KeySet.singleKey(Key.of("b")), Arrays.asList("k"), Options.directedRead(DIRECTED_READ_OPTIONS))) { - assertTrue(firstRead.next()); + assertTrue(drain(firstRead)); } try (ResultSet secondRead = @@ -275,7 +285,7 @@ public void singleUseReadCooldownSkipsUnavailableReplicaOnNextRequestForBypassTr KeySet.singleKey(Key.of("b")), Arrays.asList("k"), Options.directedRead(DIRECTED_READ_OPTIONS))) { - assertTrue(secondRead.next()); + assertTrue(drain(secondRead)); } String diagnostics = routingDiagnostics(harness); @@ -303,7 +313,7 @@ public void singleUseReadMidStreamRecvFailureWithoutRetryInfoRetriesForBypassTra throws Exception { try (Spanner spanner = createSpanner(harness)) { configureBackend(harness, multiRowReadResultSet("b", "c", "d")); - DatabaseClient client = spanner.getDatabaseClient(DatabaseId.of(PROJECT, INSTANCE, DATABASE)); + DatabaseClient client = spanner.getDatabaseClient(DatabaseId.of(PROJECT, INSTANCE, database)); seedLocationMetadata(client); waitForReplicaRoutedRead(client, harness); @@ -354,12 +364,75 @@ public void singleUseReadMidStreamRecvFailureWithoutRetryInfoRetriesForBypassTra } } + @Test + public void readWriteTransactionInlineBeginOnDefaultKeepsReadOnDefaultForBypassTraffic() + throws Exception { + try (Spanner spanner = createSpanner(harness)) { + configureBackend(harness, singleRowReadResultSet("b"), /* leaderReplicaIndex= */ 1); + DatabaseClient client = spanner.getDatabaseClient(DatabaseId.of(PROJECT, INSTANCE, database)); + + seedLocationMetadata(client); + waitForReplicaRoutedStrongRead(client, harness, /* expectedReplicaIndex= */ 1); + harness.clearRequests(); + + client + .readWriteTransaction() + .run( + transaction -> { + try (ResultSet resultSet = transaction.executeQuery(SEED_QUERY)) { + assertTrue(drain(resultSet)); + } + try (ResultSet resultSet = + transaction.read(TABLE, KeySet.singleKey(Key.of("b")), Arrays.asList("k"))) { + assertTrue(drain(resultSet)); + } + return null; + }); + + String diagnostics = routingDiagnostics(harness); + assertEquals( + "Read after inline begin on default should stay on default.\n" + diagnostics, + 1, + harness + .defaultReplica + .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) + .size()); + assertEquals( + "Direct replicas should not receive the transaction read.\n" + diagnostics, + 0, + harness + .replicas + .get(0) + .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) + .size() + + harness + .replicas + .get(1) + .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) + .size()); + assertEquals( + "Commit should use the default transaction affinity.\n" + diagnostics, + 1, + harness.defaultReplica.getRequests(SharedBackendReplicaHarness.METHOD_COMMIT).size()); + assertEquals( + "Direct replicas should not receive commit for the default-pinned transaction.\n" + + diagnostics, + 0, + harness.replicas.get(0).getRequests(SharedBackendReplicaHarness.METHOD_COMMIT).size() + + harness + .replicas + .get(1) + .getRequests(SharedBackendReplicaHarness.METHOD_COMMIT) + .size()); + } + } + @Test public void readWriteTransactionAbortedCommitUsesReadAffinityReplicaForBypassTraffic() throws Exception { try (Spanner spanner = createSpanner(harness)) { configureBackend(harness, singleRowReadResultSet("b"), /* leaderReplicaIndex= */ 1); - DatabaseClient client = spanner.getDatabaseClient(DatabaseId.of(PROJECT, INSTANCE, DATABASE)); + DatabaseClient client = spanner.getDatabaseClient(DatabaseId.of(PROJECT, INSTANCE, database)); seedLocationMetadata(client); waitForReplicaRoutedStrongRead(client, harness, /* expectedReplicaIndex= */ 1); @@ -374,7 +447,7 @@ public void readWriteTransactionAbortedCommitUsesReadAffinityReplicaForBypassTra int attempt = attempts.incrementAndGet(); try (ResultSet resultSet = transaction.read(TABLE, KeySet.singleKey(Key.of("b")), Arrays.asList("k"))) { - assertTrue(resultSet.next()); + assertTrue(drain(resultSet)); } if (attempt == 1) { @@ -486,6 +559,20 @@ private static void seedLocationMetadata(DatabaseClient client) { } } + /** + * Fully consumes the result set so the underlying gRPC streaming read closes promptly. Leaving a + * stream open keeps the routed endpoint's active-request count above zero, which inflates its + * selection cost and can bounce the next request to a different replica, making routing + * assertions flaky under load. Returns whether at least one row was seen. + */ + private static boolean drain(ResultSet resultSet) { + boolean sawRow = false; + while (resultSet.next()) { + sawRow = true; + } + return sawRow; + } + private static int waitForReplicaRoutedRead( DatabaseClient client, SharedBackendReplicaHarness harness) throws InterruptedException { long deadlineNanos = System.nanoTime() + TimeUnit.SECONDS.toNanos(10); @@ -498,7 +585,7 @@ private static int waitForReplicaRoutedRead( KeySet.singleKey(Key.of("b")), Arrays.asList("k"), Options.directedRead(DIRECTED_READ_OPTIONS))) { - if (resultSet.next()) { + if (drain(resultSet)) { for (int replicaIndex = 0; replicaIndex < harness.replicas.size(); replicaIndex++) { if (!harness .replicas @@ -521,17 +608,18 @@ private static void waitForReplicaRoutedStrongRead( long deadlineNanos = System.nanoTime() + TimeUnit.SECONDS.toNanos(10); while (System.nanoTime() < deadlineNanos) { harness.clearRequests(); + boolean sawRow; try (ResultSet resultSet = client.singleUse().read(TABLE, KeySet.singleKey(Key.of("b")), Arrays.asList("k"))) { - if (resultSet.next()) { - if (!harness + sawRow = drain(resultSet); + } + if (sawRow + && !harness .replicas .get(expectedReplicaIndex) .getRequests(SharedBackendReplicaHarness.METHOD_STREAMING_READ) .isEmpty()) { - return; - } - } + return; } Thread.sleep(50L); } From 50a8658841f5dbd6ef64627a60efda5809445412 Mon Sep 17 00:00:00 2001 From: Nidhi Date: Mon, 29 Jun 2026 06:47:07 +0000 Subject: [PATCH 75/82] feat(storage): update compose sample to support deleteSourceObjects option (#13493) Update composeObject snippet to support deleteSourceObjects option. Add corresponding system integration tests. [Generated-by: AI] Co-authored-by: Dhriti07 <56169283+Dhriti07@users.noreply.github.com> --- .../example/storage/object/ComposeObject.java | 8 +++-- .../com/example/storage/ITObjectSnippets.java | 29 ++++++++++++++++++- 2 files changed, 34 insertions(+), 3 deletions(-) diff --git a/java-storage/samples/snippets/src/main/java/com/example/storage/object/ComposeObject.java b/java-storage/samples/snippets/src/main/java/com/example/storage/object/ComposeObject.java index a1707ce26ce8..3b548e6de44f 100644 --- a/java-storage/samples/snippets/src/main/java/com/example/storage/object/ComposeObject.java +++ b/java-storage/samples/snippets/src/main/java/com/example/storage/object/ComposeObject.java @@ -28,7 +28,8 @@ public static void composeObject( String firstObjectName, String secondObjectName, String targetObjectName, - String projectId) { + String projectId, + boolean deleteSourceObjects) { // The ID of your GCP project // String projectId = "your-project-id"; @@ -70,17 +71,20 @@ public static void composeObject( .addSource(firstObjectName, secondObjectName) .setTarget(BlobInfo.newBuilder(bucketName, targetObjectName).build()) .setTargetOptions(precondition) + .setDeleteSourceObjects(deleteSourceObjects) .build(); Blob compositeObject = storage.compose(composeRequest); + String deletionMessage = deleteSourceObjects ? " and the source objects were deleted." : "."; System.out.println( "New composite object " + compositeObject.getName() + " was created by combining " + firstObjectName + " and " - + secondObjectName); + + secondObjectName + + deletionMessage); } } // [END storage_compose_file] diff --git a/java-storage/samples/snippets/src/test/java/com/example/storage/ITObjectSnippets.java b/java-storage/samples/snippets/src/test/java/com/example/storage/ITObjectSnippets.java index 4789c02524cf..195932c73dec 100644 --- a/java-storage/samples/snippets/src/test/java/com/example/storage/ITObjectSnippets.java +++ b/java-storage/samples/snippets/src/test/java/com/example/storage/ITObjectSnippets.java @@ -468,12 +468,39 @@ public void testComposeObject() { BlobInfo.newBuilder(bucket.getName(), secondObject).build(), secondObject.getBytes(UTF_8)); ComposeObject.composeObject( - bucket.getName(), firstObject, secondObject, targetObject, GOOGLE_CLOUD_PROJECT); + bucket.getName(), firstObject, secondObject, targetObject, GOOGLE_CLOUD_PROJECT, false); String got = stdOut.getCapturedOutputAsUtf8String(); assertThat(got).contains(firstObject); assertThat(got).contains(secondObject); assertThat(got).contains(targetObject); + // Verify source objects still exist + assertThat(storage.get(bucket.getName(), firstObject)).isNotNull(); + assertThat(storage.get(bucket.getName(), secondObject)).isNotNull(); + } + + @Test + public void testComposeObjectWithDeleteSources() { + String firstObject = generator.randomObjectName(); + String secondObject = generator.randomObjectName(); + String targetObject = generator.randomObjectName(); + storage.create( + BlobInfo.newBuilder(bucket.getName(), firstObject).build(), firstObject.getBytes(UTF_8)); + storage.create( + BlobInfo.newBuilder(bucket.getName(), secondObject).build(), secondObject.getBytes(UTF_8)); + + ComposeObject.composeObject( + bucket.getName(), firstObject, secondObject, targetObject, GOOGLE_CLOUD_PROJECT, true); + + String got = stdOut.getCapturedOutputAsUtf8String(); + assertThat(got).contains(firstObject); + assertThat(got).contains(secondObject); + assertThat(got).contains(targetObject); + assertThat(got).contains("and the source objects were deleted"); + + // Verify source objects are deleted + assertThat(storage.get(bucket.getName(), firstObject)).isNull(); + assertThat(storage.get(bucket.getName(), secondObject)).isNull(); } @Test From fd38992c31ef72ffe9123aec77c3f75cc9dead1e Mon Sep 17 00:00:00 2001 From: Igor Bernstein Date: Wed, 27 May 2026 20:25:51 +0000 Subject: [PATCH 76/82] chore: rationalize SessionImpl field visibility Document lock ownership before later steps remove the lock. Add @GuardedBy to fields under the lock, move heartbeatInterval read into the synchronized block in startRpc(), and comment fields intentionally read outside the lock. No runtime change. --- .../data/v2/internal/session/SessionImpl.java | 28 +++++++++++++++++-- .../v2/internal/session/SessionPoolImpl.java | 10 ++++++- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImpl.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImpl.java index 9ee86bffbdbd..8dcebbfc22d9 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImpl.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImpl.java @@ -94,12 +94,24 @@ public class SessionImpl implements Session, VRpcSessionApi { @GuardedBy("lock") private Instant lastStateChangedAt; + // Set once under lock in start(), then read freely from gRPC callbacks without the lock. + // Safe because start() is always called before any callback fires, so the write is + // visible to all subsequent readers through the happens-before chain from stream.start(). private Listener sessionListener; + // volatile: written under lock in handleSessionRefreshConfigResponse(); read without lock in + // getOpenParams() and isOpenParamsUpdated() so callers get a consistent (if possibly stale) + // snapshot without contending on the lock. Stale reads are acceptable for these accessors. private volatile OpenParams openParams; private volatile boolean openParamsUpdated; + // closeReason is written under lock in close(), forceClose(), handleGoAwayResponse(), and + // dispatchStreamClosed(). The one read that occurs outside the lock — in dispatchStreamClosed + // after the synchronized block — runs on the same gRPC callback thread that just released the + // lock, so the lock's release-acquire edge provides the necessary visibility. A stale read is + // structurally impossible given the control flow (closeReason is always set before the lock + // is released on every path that reaches that read site). @Nullable private CloseSessionRequest closeReason = null; @GuardedBy("lock") @@ -112,10 +124,18 @@ public class SessionImpl implements Session, VRpcSessionApi { @GuardedBy("lock") private VRpcResult currentCancel = null; + @GuardedBy("lock") private SessionParametersResponse sessionParameters = DEFAULT_SESSION_PARAMS; + + // volatile: written under lock in handleSessionParamsResponse(); read without lock in + // handleHeartBeatResponse() where a stale read is acceptable — the heartbeat deadline is a + // soft scheduling hint, not a correctness invariant. startRpc() reads this inside the lock. private volatile Duration heartbeatInterval = Duration.ofMillis(Durations.toMillis(sessionParameters.getKeepAlive())); + // volatile: written from multiple sites without holding the lock (startRpc, handleVRpc*, + // handleHeartBeatResponse). Stale reads are acceptable — nextHeartbeat is used only as a + // scheduling hint by the pool's heartbeat monitor. private volatile Instant nextHeartbeat; public SessionImpl( @@ -330,9 +350,6 @@ VRpc newCall(VRpcDescriptor descriptor) { @Override public Status startRpc(VRpcImpl rpc, VirtualRpcRequest payload) { - // start monitoring for heartbeat when the vrpc is started - this.nextHeartbeat = clock.instant().plus(heartbeatInterval); - synchronized (lock) { if (currentRpc != null) { return Status.INTERNAL.withDescription( @@ -345,6 +362,11 @@ public Status startRpc(VRpcImpl rpc, VirtualRpcRequest payload) { this.currentRpc = rpc; stream.sendMessage(SessionRequest.newBuilder().setVirtualRpc(payload).build()); + // Start monitoring for heartbeat when the vRPC is started. heartbeatInterval is read + // inside the lock to avoid a race with handleSessionParamsResponse(). nextHeartbeat is + // volatile and written here without an atomicity guarantee — that is intentional; it is + // only a scheduling hint (see field comment). + this.nextHeartbeat = clock.instant().plus(heartbeatInterval); return Status.OK; } } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImpl.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImpl.java index 35884cb74319..c175509d5f33 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImpl.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImpl.java @@ -140,6 +140,10 @@ private enum PoolState { private final DebugTagTracer debugTagTracer; + // @SuppressWarnings("GuardedBy"): error-prone flags writes to @GuardedBy("this") fields + // (sessions, picker, poolSizer, pendingRpcs, budget, retryCreateSessionFuture) inside the + // constructor without holding the monitor. This is safe because the object is not yet published + // to other threads — no external reference exists until the constructor returns. @SuppressWarnings("GuardedBy") public SessionPoolImpl( Metrics metrics, @@ -164,6 +168,7 @@ public SessionPoolImpl( createInitialBudget(configManager.getClientConfiguration())); } + // @SuppressWarnings("GuardedBy"): same rationale as the public constructor above. @SuppressWarnings("GuardedBy") @VisibleForTesting SessionPoolImpl( @@ -751,7 +756,10 @@ static class Watchdog implements Runnable { private final Clock clock; private final DebugTagTracer debugTagTracer; - // TODO: fix lock sharing + // The `lock` parameter is the pool-wide monitor (SessionPoolImpl.this). It is typed as Object + // because Watchdog is a static nested class and cannot reference the outer instance type in its + // constructor signature without creating a circular dependency. Phase 5 will replace this with + // a properly typed lock once the per-AFE sharding model is established. public Watchdog( Object lock, ScheduledExecutorService executor, From b89c675911ac37d08df44f3f269d9fd2f7948f3e Mon Sep 17 00:00:00 2001 From: Igor Bernstein Date: Fri, 12 Jun 2026 22:28:34 +0000 Subject: [PATCH 77/82] chore: migrate pool scheduling to a hashed-wheel timer Replace ScheduledExecutorService with a BigtableTimer (Netty hashed wheel, will move in-tree later) for heartbeat, deadline, watchdog, AFE-prune, retry-create-session, and retry-delay. Owned by Client and shared across pools. --- .../v2/internal/api/AuthorizedViewAsync.java | 6 +- .../bigtable/data/v2/internal/api/Client.java | 17 +- .../internal/api/MaterializedViewAsync.java | 6 +- .../data/v2/internal/api/TableAsync.java | 6 +- .../data/v2/internal/api/TableBase.java | 19 +- .../v2/internal/middleware/RetryingVRpc.java | 38 ++-- .../v2/internal/session/BigtableTimer.java | 60 ++++++ .../v2/internal/session/NettyWheelTimer.java | 78 ++++++++ .../data/v2/internal/session/SessionImpl.java | 76 +++++++- .../data/v2/internal/session/SessionList.java | 24 --- .../v2/internal/session/SessionPoolImpl.java | 182 ++++++++++++------ .../data/v2/internal/api/TableBaseTest.java | 4 +- .../internal/csm/tracers/VRpcTracerTest.java | 15 +- .../internal/middleware/RetryingVRpcTest.java | 25 ++- .../v2/internal/session/SessionImplTest.java | 20 +- .../internal/session/SessionPoolImplTest.java | 50 +++-- .../v2/internal/session/WatchdogTest.java | 35 +++- 17 files changed, 487 insertions(+), 174 deletions(-) create mode 100644 java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/BigtableTimer.java create mode 100644 java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/NettyWheelTimer.java diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/AuthorizedViewAsync.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/AuthorizedViewAsync.java index 3edacf7766e0..fdb79871324f 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/AuthorizedViewAsync.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/AuthorizedViewAsync.java @@ -26,13 +26,13 @@ import com.google.cloud.bigtable.data.v2.internal.csm.Metrics; import com.google.cloud.bigtable.data.v2.internal.csm.attributes.ClientInfo; import com.google.cloud.bigtable.data.v2.internal.session.SessionPool; +import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; import com.google.cloud.bigtable.data.v2.internal.session.VRpcDescriptor; import com.google.cloud.bigtable.data.v2.internal.util.ClientConfigurationManager; import io.grpc.CallOptions; import io.grpc.Deadline; import java.io.Closeable; import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ScheduledExecutorService; public class AuthorizedViewAsync implements AutoCloseable, Closeable { @@ -48,7 +48,7 @@ static AuthorizedViewAsync createAndStart( String viewId, Permission permission, Metrics metrics, - ScheduledExecutorService executorService) { + BigtableTimer timer) { AuthorizedViewName viewName = AuthorizedViewName.builder() @@ -78,7 +78,7 @@ static AuthorizedViewAsync createAndStart( callOptions, viewName.toString(), metrics, - executorService); + timer); return new AuthorizedViewAsync(base); } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/Client.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/Client.java index 82ddff08c3cb..5214c2480131 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/Client.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/Client.java @@ -33,7 +33,9 @@ import com.google.cloud.bigtable.data.v2.internal.csm.MetricsImpl; import com.google.cloud.bigtable.data.v2.internal.csm.NoopMetrics; import com.google.cloud.bigtable.data.v2.internal.csm.attributes.ClientInfo; +import com.google.cloud.bigtable.data.v2.internal.session.NettyWheelTimer; import com.google.cloud.bigtable.data.v2.internal.session.SessionPool; +import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; import com.google.cloud.bigtable.data.v2.internal.util.ClientConfigurationManager; import io.grpc.CallOptions; import io.opencensus.stats.Stats; @@ -71,6 +73,10 @@ public class Client implements AutoCloseable { private final FeatureFlags featureFlags; private final ClientInfo clientInfo; private final Resource backgroundExecutor; + // Hashed-wheel timer for heartbeat / deadline / watchdog / retry scheduling. Built over + // backgroundExecutor (the timer's tick thread dispatches bodies onto it). Single tick thread per + // Client, shared across every SessionPoolImpl. + private final BigtableTimer sessionTimer; private final CallOptions defaultCallOptions; private final ChannelPool channelPool; @@ -166,6 +172,9 @@ public Client( this.metrics = metrics; this.configManager = configManager; this.backgroundExecutor = bgExecutor; + // Timer's tick thread dispatches bodies onto backgroundExecutor — tick-thread-blocking work + // (anything that takes a pool lock) gets handed off there instead of stalling the wheel. + this.sessionTimer = new NettyWheelTimer("bigtable-session-timer", bgExecutor.get()); defaultCallOptions = CallOptions.DEFAULT; @@ -202,6 +211,8 @@ public void close() { metrics.close(); channelPool.close(); configManager.close(); + // Stop the timer before tearing down backgroundExecutor (the timer's dispatcher). + sessionTimer.stop(); backgroundExecutor.close(); } @@ -216,7 +227,7 @@ public TableAsync openTableAsync(String tableId, Permission permission) { tableId, permission, metrics.get(), - backgroundExecutor.get()); + sessionTimer); sessionPools.add(tableAsync.getSessionPool()); return tableAsync; } @@ -234,7 +245,7 @@ public AuthorizedViewAsync openAuthorizedViewAsync( viewId, permission, metrics.get(), - backgroundExecutor.get()); + sessionTimer); sessionPools.add(viewAsync.getSessionPool()); return viewAsync; } @@ -251,7 +262,7 @@ public MaterializedViewAsync openMaterializedViewAsync( viewId, permission, metrics.get(), - backgroundExecutor.get()); + sessionTimer); sessionPools.add(viewAsync.getSessionPool()); return viewAsync; } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/MaterializedViewAsync.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/MaterializedViewAsync.java index 70023645efc2..81a76f876fe6 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/MaterializedViewAsync.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/MaterializedViewAsync.java @@ -23,13 +23,13 @@ import com.google.cloud.bigtable.data.v2.internal.csm.Metrics; import com.google.cloud.bigtable.data.v2.internal.csm.attributes.ClientInfo; import com.google.cloud.bigtable.data.v2.internal.session.SessionPool; +import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; import com.google.cloud.bigtable.data.v2.internal.session.VRpcDescriptor; import com.google.cloud.bigtable.data.v2.internal.util.ClientConfigurationManager; import io.grpc.CallOptions; import io.grpc.Deadline; import java.io.Closeable; import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ScheduledExecutorService; public class MaterializedViewAsync implements AutoCloseable, Closeable { @@ -44,7 +44,7 @@ public static MaterializedViewAsync createAndStart( String viewId, OpenMaterializedViewRequest.Permission permission, Metrics metrics, - ScheduledExecutorService executorService) { + BigtableTimer timer) { MaterializedViewName viewName = MaterializedViewName.builder() @@ -73,7 +73,7 @@ public static MaterializedViewAsync createAndStart( callOptions, viewId, metrics, - executorService); + timer); return new MaterializedViewAsync(base); } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableAsync.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableAsync.java index 0bc699d4f146..8fb0ac27a2d3 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableAsync.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableAsync.java @@ -27,13 +27,13 @@ import com.google.cloud.bigtable.data.v2.internal.csm.Metrics; import com.google.cloud.bigtable.data.v2.internal.csm.attributes.ClientInfo; import com.google.cloud.bigtable.data.v2.internal.session.SessionPool; +import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; import com.google.cloud.bigtable.data.v2.internal.session.VRpcDescriptor; import com.google.cloud.bigtable.data.v2.internal.util.ClientConfigurationManager; import io.grpc.CallOptions; import io.grpc.Deadline; import java.io.Closeable; import java.util.concurrent.CompletableFuture; -import java.util.concurrent.ScheduledExecutorService; public class TableAsync implements AutoCloseable, Closeable { private final TableBase base; @@ -47,7 +47,7 @@ public static TableAsync createAndStart( String tableId, Permission permission, Metrics metrics, - ScheduledExecutorService executorService) { + BigtableTimer timer) { TableName tableName = TableName.builder() @@ -76,7 +76,7 @@ public static TableAsync createAndStart( callOptions, tableId, metrics, - executorService); + timer); return new TableAsync(base); } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableBase.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableBase.java index 8feef399d625..af3bf306856f 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableBase.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableBase.java @@ -31,6 +31,7 @@ import com.google.cloud.bigtable.data.v2.internal.middleware.VRpc.VRpcListener; import com.google.cloud.bigtable.data.v2.internal.session.SessionPool; import com.google.cloud.bigtable.data.v2.internal.session.SessionPoolImpl; +import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; import com.google.cloud.bigtable.data.v2.internal.session.VRpcDescriptor; import com.google.cloud.bigtable.data.v2.internal.util.ClientConfigurationManager; import com.google.common.annotations.VisibleForTesting; @@ -39,11 +40,10 @@ import io.grpc.Context; import io.grpc.Deadline; import io.grpc.Metadata; -import java.util.concurrent.ScheduledExecutorService; class TableBase implements AutoCloseable { private final SessionPool sessionPool; - private final ScheduledExecutorService backgroundExecutor; + private final BigtableTimer timer; private final Metrics metrics; private final VRpcDescriptor readRowDescriptor; private final VRpcDescriptor @@ -61,7 +61,7 @@ static TableBase createAndStart( CallOptions callOptions, String sessionPoolName, Metrics metrics, - ScheduledExecutorService executor) { + BigtableTimer timer) { SessionPool sessionPool = new SessionPoolImpl<>( @@ -73,11 +73,12 @@ static TableBase createAndStart( callOptions, sessionDescriptor, sessionPoolName, - executor); + timer); sessionPool.start(openReq, new Metadata()); - return new TableBase(sessionPool, readRowDescriptor, mutateRowDescriptor, metrics, executor); + return new TableBase( + sessionPool, readRowDescriptor, mutateRowDescriptor, metrics, timer); } @VisibleForTesting @@ -86,12 +87,12 @@ static TableBase createAndStart( VRpcDescriptor readRowDescriptor, VRpcDescriptor mutateRowDescriptor, Metrics metrics, - ScheduledExecutorService executor) { + BigtableTimer timer) { this.sessionPool = sessionPool; this.readRowDescriptor = readRowDescriptor; this.mutateRowDescriptor = mutateRowDescriptor; this.metrics = metrics; - this.backgroundExecutor = executor; + this.timer = timer; } @Override @@ -110,7 +111,7 @@ public SessionPool getSessionPool() { public void readRow( SessionReadRowRequest req, VRpcListener listener, Deadline deadline) { RetryingVRpc retry = - new RetryingVRpc<>(() -> sessionPool.newCall(readRowDescriptor), backgroundExecutor); + new RetryingVRpc<>(() -> sessionPool.newCall(readRowDescriptor), timer); VRpcTracer tracer = metrics.newTableTracer(sessionPool.getInfo(), readRowDescriptor, deadline); VRpcCallContext ctx = VRpcCallContext.create(deadline, true, tracer); @@ -126,7 +127,7 @@ public void mutateRow( VRpcListener listener, Deadline deadline) { RetryingVRpc retry = - new RetryingVRpc<>(() -> sessionPool.newCall(mutateRowDescriptor), backgroundExecutor); + new RetryingVRpc<>(() -> sessionPool.newCall(mutateRowDescriptor), timer); boolean idempotent = Util.isIdempotent(req.getMutationsList()); diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpc.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpc.java index d6048bfb9140..0e19fe076d63 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpc.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpc.java @@ -17,6 +17,7 @@ package com.google.cloud.bigtable.data.v2.internal.middleware; import com.google.cloud.bigtable.data.v2.internal.csm.tracers.VRpcTracer; +import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; import com.google.common.base.Stopwatch; import com.google.protobuf.Duration; import com.google.protobuf.util.Durations; @@ -26,7 +27,6 @@ import io.grpc.SynchronizationContext; import java.util.Optional; import java.util.concurrent.RejectedExecutionException; -import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import java.util.function.Supplier; import java.util.logging.Level; @@ -46,7 +46,7 @@ public class RetryingVRpc implements VRpc { private VRpcCallContext context; private VRpcTracer tracer; - private final ScheduledExecutorService executor; + private final BigtableTimer timer; private final SynchronizationContext syncContext; // current state and all the flags don't need to be volatile because they're only updated within @@ -56,13 +56,13 @@ public class RetryingVRpc implements VRpc { // Breaks the loop if uncaught exception happens during sync context execution. private boolean isCancelling; - public RetryingVRpc(Supplier> supplier, ScheduledExecutorService executor) { + public RetryingVRpc(Supplier> supplier, BigtableTimer timer) { this.attemptFactory = supplier; grpcContext = Context.current(); otelContext = io.opentelemetry.context.Context.current(); - this.executor = otelContext.wrap(executor); + this.timer = timer; this.syncContext = new SynchronizationContext( (t, e) -> { @@ -271,7 +271,7 @@ boolean shouldRetry(VRpcResult result) { class Scheduled extends State { private final Duration retryDelay; - private SynchronizationContext.ScheduledHandle future; + private BigtableTimer.Timeout future; Scheduled(Duration retryDelay) { this.retryDelay = retryDelay; @@ -280,12 +280,23 @@ class Scheduled extends State { @Override public void onStart() { try { + // Wraps go innermost so the captured gRPC + OpenTelemetry contexts are re-established at + // the moment the body runs, not just while the dispatcher is invoking the outer task. + // syncContext.execute may queue the inner runnable for a later drain on a different + // thread; an outer wrap's scope would already be closed by then. future = - syncContext.schedule( - () -> grpcContext.wrap(() -> onStateChange(new Idle())).run(), + timer.newTimeout( + () -> + syncContext.execute( + () -> + grpcContext.wrap( + () -> + otelContext + .wrap(() -> onStateChange(new Idle())) + .run()) + .run()), Durations.toMillis(retryDelay), - TimeUnit.MILLISECONDS, - executor); + TimeUnit.MILLISECONDS); } catch (RejectedExecutionException e) { onStateChange( new Done( @@ -299,11 +310,10 @@ public void onStart() { @Override public void onCancel(String reason, Throwable throwable) { - // future can be null if schedule throws an exception that's not RejectedExecutionException. - // In which case sync context uncaught exception handler will be called, which calls cancel on - // the current - // state before transition into done state. - if (future != null && future.isPending()) { + // future can be null if newTimeout throws an exception. In which case sync context uncaught + // exception handler will be called, which calls cancel on the current state before + // transition into done state. + if (future != null && !future.isCancelled()) { future.cancel(); } } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/BigtableTimer.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/BigtableTimer.java new file mode 100644 index 000000000000..48930ece77e1 --- /dev/null +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/BigtableTimer.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.bigtable.data.v2.internal.session; + +import java.util.concurrent.TimeUnit; + +/** + * Schedules short-lived callbacks (heartbeat ticks, deadline monitors, watchdog ticks) at + * approximate, low-resolution times. Backed by a hashed wheel: O(1) insert and O(1) cancel, + * regardless of how many pending timeouts the wheel holds. + * + *

              {@link #newTimeout} runs the callback on the timer's bundled dispatch executor — callers do + * not have to wrap their bodies in {@code executor.execute(...)} to stay off the tick thread. This + * is the default and is correct for any callback that takes a lock or does real work. + * + *

              TODO: once later refactor steps introduce per-op / per-session dispatchers (e.g. {@code + * SerializingExecutor} or {@code SynchronizationContext}), add a {@code newTimeoutOnTickThread} + * variant so callers with their own dispatcher can skip the wasted hop through the bundled + * executor. + * + *

              This is a thin abstraction over a single concrete implementation today (see {@code + * NettyWheelTimer}). It exists so the implementation can be swapped after benchmarking establishes + * a baseline. + */ +public interface BigtableTimer { + /** + * Schedules {@code task} to run after {@code delay}. The task body runs on the timer's bundled + * dispatch executor, not on the tick thread, so it is safe to take locks or do bounded work. + * + *

              The returned handle can be used to cancel the task; cancel is O(1) and does not leave the + * entry in any heap. + */ + Timeout newTimeout(Runnable task, long delay, TimeUnit unit); + + /** + * Releases the tick thread and discards any pending timeouts. Idempotent. After {@code stop()}, + * subsequent calls to {@link #newTimeout} throw {@link IllegalStateException}. + */ + void stop(); + + interface Timeout { + /** Cancels the scheduled task. Returns true if the task had not yet fired. */ + boolean cancel(); + + boolean isCancelled(); + } +} diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/NettyWheelTimer.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/NettyWheelTimer.java new file mode 100644 index 000000000000..825065055110 --- /dev/null +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/NettyWheelTimer.java @@ -0,0 +1,78 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.bigtable.data.v2.internal.session; + +import com.google.common.util.concurrent.ThreadFactoryBuilder; +import io.grpc.netty.shaded.io.netty.util.HashedWheelTimer; +import java.util.concurrent.Executor; +import java.util.concurrent.TimeUnit; + +/** + * {@link BigtableTimer} backed by Netty's {@code HashedWheelTimer}, accessed via the shaded copy + * inside {@code grpc-netty-shaded}. We depend on the shaded class so the library does not pull in + * an additional {@code io.netty:netty-common} artifact. + * + *

              Temporary: once threading-refactor benchmarks establish a baseline, this should be replaced + * with an in-tree implementation that does not reach into gRPC's shaded internals. + */ +public final class NettyWheelTimer implements BigtableTimer { + // 10 ms tick × 512 buckets ≈ 5 s per rotation. Heartbeat (100 ms), deadlines (sub-second to + // seconds), and watchdog (5 min) all sit comfortably inside this resolution. + private static final long TICK_DURATION_MS = 10; + private static final int TICKS_PER_WHEEL = 512; + + private final HashedWheelTimer delegate; + private final Executor dispatcher; + + public NettyWheelTimer(String name, Executor dispatcher) { + this.dispatcher = dispatcher; + this.delegate = + new HashedWheelTimer( + new ThreadFactoryBuilder().setNameFormat(name + "-%d").setDaemon(true).build(), + TICK_DURATION_MS, + TimeUnit.MILLISECONDS, + TICKS_PER_WHEEL); + } + + @Override + public Timeout newTimeout(Runnable task, long delay, TimeUnit unit) { + return new TimeoutHandle( + delegate.newTimeout(ignored -> dispatcher.execute(task), delay, unit)); + } + + @Override + public void stop() { + delegate.stop(); + } + + private static final class TimeoutHandle implements Timeout { + private final io.grpc.netty.shaded.io.netty.util.Timeout nettyTimeout; + + TimeoutHandle(io.grpc.netty.shaded.io.netty.util.Timeout nettyTimeout) { + this.nettyTimeout = nettyTimeout; + } + + @Override + public boolean cancel() { + return nettyTimeout.cancel(); + } + + @Override + public boolean isCancelled() { + return nettyTimeout.isCancelled(); + } + } +} diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImpl.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImpl.java index 8dcebbfc22d9..832c08943913 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImpl.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImpl.java @@ -49,6 +49,7 @@ import java.time.Instant; import java.util.Locale; import java.util.Optional; +import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; import javax.annotation.Nullable; @@ -70,6 +71,12 @@ public class SessionImpl implements Session, VRpcSessionApi { // A time in the future to skip heartbeat checks when there's no active vRPCs on the session static final Duration FUTURE_TIME = Duration.ofMinutes(30); + private static final CloseSessionRequest MISSED_HEARTBEAT_CLOSE_REQUEST = + CloseSessionRequest.newBuilder() + .setReason(CloseSessionReason.CLOSE_SESSION_REASON_MISSED_HEARTBEAT) + .setDescription("missed heartbeat") + .build(); + /* * This lock should be mostly uncontended - all access should be naturally interleaved. Contention * can only really happen when an unsolicited gRPC control message (ie GOAWAY) arrives at the same @@ -79,6 +86,7 @@ public class SessionImpl implements Session, VRpcSessionApi { private final Object lock = new Object(); private final Clock clock; + private final BigtableTimer timer; private final SessionTracer tracer; private final DebugTagTracer debugTagTracer; @@ -135,12 +143,23 @@ public class SessionImpl implements Session, VRpcSessionApi { // volatile: written from multiple sites without holding the lock (startRpc, handleVRpc*, // handleHeartBeatResponse). Stale reads are acceptable — nextHeartbeat is used only as a - // scheduling hint by the pool's heartbeat monitor. + // scheduling hint by the per-session heartbeat tick. private volatile Instant nextHeartbeat; + // Handle for the in-flight heartbeat tick (one outstanding at a time). Set under lock when the + // session enters READY (handleOpenSessionResponse) and again from checkHeartbeat to chain the + // next tick. Cancelled under lock from updateState when the session transitions past READY. + @GuardedBy("lock") + @Nullable + private BigtableTimer.Timeout heartbeatTimeout; + public SessionImpl( - Metrics metrics, SessionPoolInfo poolInfo, long sessionNum, SessionStream stream) { - this(metrics, Clock.systemUTC(), poolInfo, sessionNum, stream); + Metrics metrics, + SessionPoolInfo poolInfo, + long sessionNum, + SessionStream stream, + BigtableTimer timer) { + this(metrics, Clock.systemUTC(), poolInfo, sessionNum, stream, timer); } SessionImpl( @@ -148,8 +167,10 @@ public SessionImpl( Clock clock, SessionPoolInfo poolInfo, long sessionNum, - SessionStream stream) { + SessionStream stream, + BigtableTimer timer) { this.clock = clock; + this.timer = timer; this.info = SessionInfo.create(poolInfo, sessionNum); this.stream = stream; this.tracer = metrics.newSessionTracer(poolInfo); @@ -383,6 +404,46 @@ public void cancelRpc(long rpcId, @Nullable String message, @Nullable Throwable } } + @GuardedBy("lock") + private void scheduleHeartbeatCheck() { + heartbeatTimeout = + timer.newTimeout( + this::checkHeartbeat, + HEARTBEAT_CHECK_INTERVAL.toMillis(), + TimeUnit.MILLISECONDS); + } + + @GuardedBy("lock") + private void cancelHeartbeatTimeout() { + if (heartbeatTimeout != null) { + heartbeatTimeout.cancel(); + heartbeatTimeout = null; + } + } + + // Runs on the wheel-timer tick thread. Takes the per-session lock to read state/nextHeartbeat + // and force-close on miss, then chains the next tick by re-scheduling. If the session is past + // WAIT_SERVER_CLOSE we drop the chain — no further checks are useful. + private void checkHeartbeat() { + CloseSessionRequest missed = null; + synchronized (lock) { + if (state.phase >= SessionState.WAIT_SERVER_CLOSE.phase) { + return; + } + if (clock.instant().isAfter(nextHeartbeat)) { + missed = MISSED_HEARTBEAT_CLOSE_REQUEST; + } else { + scheduleHeartbeatCheck(); + } + } + if (missed != null) { + logger.warning( + String.format("Missed heartbeat for %s, forcing session close", info.getLogName())); + // forceClose acquires the lock again and performs its own state checks. + forceClose(missed); + } + } + // region SessionStream event handlers private void dispatchResponseMessage(SessionResponse message) { switch (message.getPayloadCase()) { @@ -434,6 +495,7 @@ private void handleOpenSessionResponse(OpenSessionResponse openSession) { } localPeerInfo = stream.getPeerInfo(); updateState(SessionState.READY); + scheduleHeartbeatCheck(); } tracer.onOpen(localPeerInfo); sessionListener.onReady(openSession); @@ -703,6 +765,12 @@ private void dispatchStreamClosed(Status status, Metadata trailers) { private void updateState(SessionState newState) { this.state = newState; this.lastStateChangedAt = clock.instant(); + // Once we're past READY, no further heartbeat checks are useful: checkHeartbeat short-circuits + // on state.phase >= WAIT_SERVER_CLOSE. Cancel any pending tick to keep the wheel clean during + // session churn. + if (newState.phase >= SessionState.WAIT_SERVER_CLOSE.phase) { + cancelHeartbeatTimeout(); + } } private static String formatPeerInfo(PeerInfo peerInfo) { diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionList.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionList.java index cba048fe0ce0..9beccf40fd85 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionList.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionList.java @@ -16,15 +16,12 @@ package com.google.cloud.bigtable.data.v2.internal.session; -import static com.google.bigtable.v2.CloseSessionRequest.CloseSessionReason.CLOSE_SESSION_REASON_MISSED_HEARTBEAT; - import com.google.auto.value.AutoValue; import com.google.bigtable.v2.CloseSessionRequest; import com.google.bigtable.v2.PeerInfo; import com.google.cloud.bigtable.data.v2.internal.middleware.VRpc.VRpcResult; import com.google.cloud.bigtable.data.v2.internal.session.Session.SessionState; import com.google.common.annotations.VisibleForTesting; -import java.time.Clock; import java.time.Duration; import java.time.Instant; import java.time.temporal.ChronoUnit; @@ -41,7 +38,6 @@ import java.util.Queue; import java.util.Set; import java.util.concurrent.TimeUnit; -import java.util.logging.Level; import java.util.logging.Logger; import javax.annotation.concurrent.NotThreadSafe; @@ -69,12 +65,6 @@ class SessionList { private final Set allSessions = new HashSet<>(); private final Set inUseSessions = new HashSet<>(); - private final CloseSessionRequest missedHeartbeatCloseRequest = - CloseSessionRequest.newBuilder() - .setReason(CLOSE_SESSION_REASON_MISSED_HEARTBEAT) - .setDescription("missed heartbeat") - .build(); - // pool level statistics across all the afes private final PoolStats poolStats = new PoolStats(); @@ -145,20 +135,6 @@ void prune() { } } - void checkHeartbeat(Clock clock) { - Instant now = clock.instant(); - inUseSessions.forEach( - handle -> { - if (now.isAfter(handle.getSession().getNextHeartbeat())) { - LOG.log( - Level.WARNING, - "Missed heartbeat for {0}, forcing session close", - handle.getSession().getLogName()); - handle.getSession().forceClose(missedHeartbeatCloseRequest); - } - }); - } - @NotThreadSafe class SessionHandle { private final Session session; diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImpl.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImpl.java index c175509d5f33..eaf2289097d7 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImpl.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImpl.java @@ -59,12 +59,11 @@ import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Deque; +import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Optional; import java.util.Set; -import java.util.concurrent.ScheduledExecutorService; -import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import java.util.logging.Level; import java.util.logging.Logger; @@ -112,6 +111,10 @@ private enum PoolState { private final Watchdog watchdog; + // Shared by every SessionImpl, PendingVRpc, Watchdog, AFE pruner, and retry-create-session in + // this pool. One tick thread per Client (owned by Client); O(1) insert / O(1) cancel. + private final BigtableTimer timer; + @GuardedBy("this") private int consecutiveFailures = 0; @@ -122,14 +125,16 @@ private enum PoolState { */ private volatile int consecutiveUnimplementedFailures = 0; - private final ScheduledFuture afeListPruneTask; - - private final ScheduledFuture heartbeatMonitor; + // Self-rescheduling AFE-prune chain. Set by scheduleNextAfePrune; cancelled by close. + @GuardedBy("this") + @Nullable + private BigtableTimer.Timeout afeListPruneTimeout; - private final ScheduledExecutorService executorService; + @GuardedBy("this") + private boolean closed = false; @GuardedBy("this") - private ScheduledFuture retryCreateSessionFuture = null; + private BigtableTimer.Timeout retryCreateSessionFuture = null; // TODO: get the max from ClientConfiguration @GuardedBy("this") @@ -154,7 +159,7 @@ public SessionPoolImpl( CallOptions callOptions, SessionDescriptor sessionDescriptor, String name, - ScheduledExecutorService executorService) { + BigtableTimer timer) { this( metrics, featureFlags, @@ -164,7 +169,7 @@ public SessionPoolImpl( callOptions, sessionDescriptor, name, - executorService, + timer, createInitialBudget(configManager.getClientConfiguration())); } @@ -180,7 +185,7 @@ public SessionPoolImpl( CallOptions callOptions, SessionDescriptor sessionDescriptor, String name, - ScheduledExecutorService executorService, + BigtableTimer timer, SessionCreationBudget budget) { this.metrics = metrics; this.featureFlags = featureFlags; @@ -188,7 +193,9 @@ public SessionPoolImpl( this.factory = new SessionFactory(channelPool, sessionDescriptor.getMethodDescriptor(), callOptions); this.descriptor = sessionDescriptor; - this.executorService = executorService; + // Timer is owned by the caller (typically Client) and shared across pools — do NOT stop it + // in close(). + this.timer = timer; sessions = new SessionList(); LoadBalancingOptions lbOptions = @@ -210,29 +217,9 @@ public SessionPoolImpl( debugTagTracer = metrics.getDebugTagTracer(); // Watchdog checks for sessions in WAIT_SERVER_CLOSE state and runs every 5 minutes - watchdog = new Watchdog(this, executorService, Duration.ofMinutes(5), sessions, debugTagTracer); - // Heartbeat monitor checks for sessions in READY state with active vRPCs and runs more - // frequently - heartbeatMonitor = - executorService.scheduleAtFixedRate( - () -> { - synchronized (SessionPoolImpl.this) { - sessions.checkHeartbeat(Clock.systemUTC()); - } - }, - SessionImpl.HEARTBEAT_CHECK_INTERVAL.toMillis(), - SessionImpl.HEARTBEAT_CHECK_INTERVAL.toMillis(), - TimeUnit.MILLISECONDS); - afeListPruneTask = - executorService.scheduleAtFixedRate( - () -> { - synchronized (SessionPoolImpl.this) { - sessions.prune(); - } - }, - SessionList.SESSION_LIST_PRUNE_INTERVAL.toMillis(), - SessionList.SESSION_LIST_PRUNE_INTERVAL.toMillis(), - TimeUnit.MILLISECONDS); + watchdog = new Watchdog(this, timer, Duration.ofMinutes(5), sessions, debugTagTracer); + // Heartbeat monitoring is now done per-session via SessionImpl.scheduleHeartbeatCheck. + scheduleNextAfePrune(); this.budget = budget; @@ -266,19 +253,54 @@ public void close(CloseSessionRequest req) { logger.fine(String.format("Closing session pool %s for reason %s", info.getLogName(), req)); poolState = PoolState.CLOSED; + closed = true; for (PendingVRpc pendingRpc : pendingRpcs) { pendingRpc.cancel("SessionPool closed: " + req, null); } - afeListPruneTask.cancel(false); - heartbeatMonitor.cancel(false); + if (afeListPruneTimeout != null) { + afeListPruneTimeout.cancel(); + afeListPruneTimeout = null; + } if (retryCreateSessionFuture != null) { - retryCreateSessionFuture.cancel(false); + retryCreateSessionFuture.cancel(); retryCreateSessionFuture = null; } watchdog.close(); sessions.close(req); } + + // Timer is owned by the Client and shared across pools; do not stop it here. + } + + // Self-rescheduling AFE prune. Pattern matches Watchdog: tick dispatches to the pool executor, + // executor takes the lock, prunes, schedules the next tick. Tolerates body exceptions so a + // transient fault does not permanently disable pruning. + @GuardedBy("this") + private void scheduleNextAfePrune() { + if (closed) { + return; + } + afeListPruneTimeout = + timer.newTimeout( + this::runAfePruneAndReschedule, + SessionList.SESSION_LIST_PRUNE_INTERVAL.toMillis(), + TimeUnit.MILLISECONDS); + } + + private void runAfePruneAndReschedule() { + synchronized (SessionPoolImpl.this) { + try { + if (closed) { + return; + } + sessions.prune(); + } catch (Throwable t) { + logger.log(Level.WARNING, "AFE prune tick threw; continuing", t); + } finally { + scheduleNextAfePrune(); + } + } } @Override @@ -350,7 +372,7 @@ private synchronized void createSession(OpenParams openParams) { try (Scope ignored = io.opentelemetry.context.Context.root().makeCurrent()) { SessionStream stream = factory.createNew(); - Session session = new SessionImpl(metrics, info, sessionNum++, stream); + Session session = new SessionImpl(metrics, info, sessionNum++, stream, timer); SessionHandle handle = sessions.newHandle(session); Metadata localMd = new Metadata(); @@ -393,9 +415,9 @@ private void maybeScheduleCreateSessionRetry() { retryIntervalMs = 1; } retryCreateSessionFuture = - executorService.schedule( + timer.newTimeout( () -> { - synchronized (this) { + synchronized (SessionPoolImpl.this) { retryCreateSessionFuture = null; if (poolState != PoolState.CLOSED && poolSizer.getScaleDelta() > 0) { createSession(openParams); @@ -620,7 +642,7 @@ class PendingVRpc implements VRpc realCall; - private ScheduledFuture deadlineMonitor; + private BigtableTimer.Timeout deadlineMonitor; public PendingVRpc(VRpcDescriptor desc) { this.desc = desc; @@ -636,7 +658,7 @@ public void start(ReqT req, VRpcCallContext ctx, VRpcListener listener) { this.req = req; this.ctx = ctx; this.listener = listener; - this.deadlineMonitor = monitorDeadline(executorService, ctx.getOperationInfo().getDeadline()); + this.deadlineMonitor = monitorDeadline(ctx.getOperationInfo().getDeadline()); synchronized (SessionPoolImpl.this) { if (SessionPoolImpl.this.poolState != PoolState.STARTED) { @@ -723,7 +745,7 @@ private void drainTo(SessionHandle handle) { } this.realCall.start(req, ctx, listener); if (deadlineMonitor != null) { - deadlineMonitor.cancel(false); + deadlineMonitor.cancel(); } } @@ -731,14 +753,15 @@ private VRpcListener getListener() { return listener; } - private ScheduledFuture monitorDeadline( - ScheduledExecutorService executorService, Deadline deadline) { - return executorService.schedule( + private BigtableTimer.Timeout monitorDeadline(Deadline deadline) { + // Body runs on the timer's bundled dispatcher (off the tick thread). + // onlyCancelPendingCall=true avoids racing with a user cancel that already attached a real + // call. + return timer.newTimeout( () -> - // This could race with user cancel. Setting onlyCancelPendingCall to true - // so that if the real call is set, this cancellation is going to be a noop. cancel( - Status.DEADLINE_EXCEEDED.withDescription("Deadline exceeded waiting for session"), + Status.DEADLINE_EXCEEDED.withDescription( + "Deadline exceeded waiting for session"), true), deadline.timeRemaining(TimeUnit.NANOSECONDS), TimeUnit.NANOSECONDS); @@ -749,36 +772,45 @@ static class Watchdog implements Runnable { private static final Logger LOG = Logger.getLogger(Watchdog.class.getName()); private final Object lock; - private final ScheduledExecutorService executor; + private final BigtableTimer timer; private final Duration interval; private final SessionList sessions; - private ScheduledFuture future; private final Clock clock; private final DebugTagTracer debugTagTracer; + // Guards currentTimeout and watchdogClosed. Self-contained — never composed with any external + // lock. + private final Object scheduleLock = new Object(); + + @GuardedBy("scheduleLock") + private BigtableTimer.Timeout currentTimeout; + + @GuardedBy("scheduleLock") + private boolean watchdogClosed = false; + // The `lock` parameter is the pool-wide monitor (SessionPoolImpl.this). It is typed as Object // because Watchdog is a static nested class and cannot reference the outer instance type in its // constructor signature without creating a circular dependency. Phase 5 will replace this with // a properly typed lock once the per-AFE sharding model is established. public Watchdog( Object lock, - ScheduledExecutorService executor, + BigtableTimer timer, Duration interval, SessionList sessionList, DebugTagTracer debugTagTracer) { - this(lock, executor, interval, sessionList, debugTagTracer, Clock.systemUTC()); + this(lock, timer, interval, sessionList, debugTagTracer, Clock.systemUTC()); } @VisibleForTesting Watchdog( Object lock, - ScheduledExecutorService executor, + BigtableTimer timer, Duration interval, SessionList sessionList, DebugTagTracer debugTagTracer, Clock clock) { this.lock = lock; - this.executor = executor; + this.timer = timer; this.interval = interval; this.sessions = sessionList; this.debugTagTracer = debugTagTracer; @@ -786,16 +818,40 @@ public Watchdog( } public void start() { - future = - executor.scheduleAtFixedRate( - this, interval.toMillis(), interval.toMillis(), TimeUnit.MILLISECONDS); + scheduleNext(); + } + + // Self-reschedule. Called once from start() and again at the end of each tick. + private void scheduleNext() { + synchronized (scheduleLock) { + if (watchdogClosed) return; + currentTimeout = + timer.newTimeout(this::runAndReschedule, interval.toMillis(), TimeUnit.MILLISECONDS); + } + } + + private void runAndReschedule() { + try { + run(); + } catch (Throwable t) { + // Preserve the watchdog across body exceptions — unlike scheduleAtFixedRate, which silently + // stops the schedule on the first exception, we keep going so a transient fault doesn't + // permanently disable session leak detection. + LOG.log(Level.WARNING, "Watchdog tick threw; continuing", t); + } finally { + scheduleNext(); + } } @Override public void run() { + // Snapshot under the pool lock: getAllSessions() returns the live HashSet, and pool state + // mutation (session create/close on another thread) during iteration would throw + // ConcurrentModificationException. Most common trigger is a heartbeat-miss cascade that + // churns sessions while the watchdog is walking the list. Set allSessions; synchronized (lock) { - allSessions = sessions.getAllSessions(); + allSessions = new HashSet<>(sessions.getAllSessions()); } for (SessionHandle handle : allSessions) { @@ -833,8 +889,12 @@ public void run() { } public void close() { - if (future != null) { - future.cancel(false); + synchronized (scheduleLock) { + watchdogClosed = true; + if (currentTimeout != null) { + currentTimeout.cancel(); + currentTimeout = null; + } } } } diff --git a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/api/TableBaseTest.java b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/api/TableBaseTest.java index 54406abe51a8..b2b6e819e959 100644 --- a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/api/TableBaseTest.java +++ b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/api/TableBaseTest.java @@ -29,6 +29,7 @@ import com.google.cloud.bigtable.data.v2.internal.middleware.VRpc; import com.google.cloud.bigtable.data.v2.internal.session.SessionPool; import com.google.cloud.bigtable.data.v2.internal.session.SessionPoolInfo; +import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; import com.google.cloud.bigtable.data.v2.internal.session.VRpcDescriptor; import com.google.protobuf.Message; import io.grpc.Deadline; @@ -50,6 +51,7 @@ public class TableBaseTest { private final Metrics noopMetrics = new NoopMetrics(); private final ScheduledExecutorService mockExecutor = Mockito.mock(ScheduledExecutorService.class); + private final BigtableTimer mockTimer = Mockito.mock(BigtableTimer.class); private static final ClientInfo clientInfo = ClientInfo.builder() .setInstanceName( @@ -70,7 +72,7 @@ public void setup() { VRpcDescriptor.READ_ROW, VRpcDescriptor.MUTATE_ROW, noopMetrics, - mockExecutor); + mockTimer); deadline = Deadline.after(1, TimeUnit.MINUTES); f = new UnaryResponseFuture<>(); } diff --git a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/csm/tracers/VRpcTracerTest.java b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/csm/tracers/VRpcTracerTest.java index 62a802dfeb0d..ec7dc6a01245 100644 --- a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/csm/tracers/VRpcTracerTest.java +++ b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/csm/tracers/VRpcTracerTest.java @@ -45,8 +45,10 @@ import com.google.cloud.bigtable.data.v2.internal.middleware.RetryingVRpc; import com.google.cloud.bigtable.data.v2.internal.middleware.VRpc; import com.google.cloud.bigtable.data.v2.internal.session.FakeDescriptor; +import com.google.cloud.bigtable.data.v2.internal.session.NettyWheelTimer; import com.google.cloud.bigtable.data.v2.internal.session.Session; import com.google.cloud.bigtable.data.v2.internal.session.SessionFactory; +import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; import com.google.cloud.bigtable.data.v2.internal.session.SessionImpl; import com.google.cloud.bigtable.data.v2.internal.session.SessionPoolInfo; import com.google.cloud.bigtable.data.v2.internal.session.fake.FakeServiceBuilder; @@ -97,6 +99,7 @@ public class VRpcTracerTest { Correspondence.transforming(MetricData::getName, "MetricData name"); private ScheduledExecutorService executor; + private BigtableTimer timer; private Server server; private ChannelPool channelPool; @@ -115,6 +118,7 @@ public class VRpcTracerTest { @BeforeEach void setUp() throws IOException { executor = Executors.newScheduledThreadPool(4); + timer = new NettyWheelTimer("vrpc-tracer-test", com.google.common.util.concurrent.MoreExecutors.directExecutor()); server = FakeServiceBuilder.create(new FakeSessionService(executor)) .intercept(new PeerInfoInterceptor()) @@ -157,7 +161,7 @@ void setUp() throws IOException { SessionFactory sessionFactory = new SessionFactory( channelPool, FakeDescriptor.FAKE_SESSION.getMethodDescriptor(), CallOptions.DEFAULT); - session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew()); + session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew(), timer); } @AfterEach @@ -173,6 +177,7 @@ void tearDown() { metrics.close(); server.shutdownNow(); executor.shutdownNow(); + timer.stop(); } @Test @@ -199,7 +204,7 @@ public void operationLatencyTest() throws Exception { CompletableFuture opFinished = new CompletableFuture<>(); Stopwatch stopwatch = Stopwatch.createStarted(); RetryingVRpc retrying = - new RetryingVRpc<>(() -> session.newCall(FakeDescriptor.SCRIPTED), executor); + new RetryingVRpc<>(() -> session.newCall(FakeDescriptor.SCRIPTED), timer); UnaryResponseFuture userFuture = new UnaryResponseFuture<>(); MethodInfo methodInfo = MethodInfo.builder().setName("Bigtable.ReadRow").setStreaming(false).build(); @@ -258,7 +263,7 @@ public void attemptLatencyTest() throws Exception { AtomicLong maxAttemptLatency = new AtomicLong(); DelayedVRpc delayedVRpc = new DelayedVRpc<>( - () -> new RetryingVRpc<>(() -> session.newCall(FakeDescriptor.SCRIPTED), executor)); + () -> new RetryingVRpc<>(() -> session.newCall(FakeDescriptor.SCRIPTED), timer)); UnaryResponseFuture userFuture = new UnaryResponseFuture<>(); MethodInfo methodInfo = MethodInfo.builder().setName("Bigtable.ReadRow").setStreaming(false).build(); @@ -316,7 +321,7 @@ public void retryCountTest() throws Exception { // Test RetryingVRpc retrying = - new RetryingVRpc<>(() -> session.newCall(FakeDescriptor.SCRIPTED), executor); + new RetryingVRpc<>(() -> session.newCall(FakeDescriptor.SCRIPTED), timer); UnaryResponseFuture f = new UnaryResponseFuture<>(); CompletableFuture opFinished = new CompletableFuture<>(); MethodInfo methodInfo = @@ -367,7 +372,7 @@ public void clientBlockingLatencySessionDelayTest() throws Exception { // Test DelayedVRpc delayedVRpc = new DelayedVRpc<>( - () -> new RetryingVRpc<>(() -> session.newCall(FakeDescriptor.SCRIPTED), executor)); + () -> new RetryingVRpc<>(() -> session.newCall(FakeDescriptor.SCRIPTED), timer)); UnaryResponseFuture f = new UnaryResponseFuture<>(); CompletableFuture attemptFinished = new CompletableFuture<>(); MethodInfo methodInfo = diff --git a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpcTest.java b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpcTest.java index b9af925d4871..e823db5b3aea 100644 --- a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpcTest.java +++ b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpcTest.java @@ -38,9 +38,11 @@ import com.google.cloud.bigtable.data.v2.internal.csm.attributes.ClientInfo; import com.google.cloud.bigtable.data.v2.internal.csm.tracers.VRpcTracer; import com.google.cloud.bigtable.data.v2.internal.session.FakeDescriptor; +import com.google.cloud.bigtable.data.v2.internal.session.NettyWheelTimer; import com.google.cloud.bigtable.data.v2.internal.session.SessionFactory; import com.google.cloud.bigtable.data.v2.internal.session.SessionImpl; import com.google.cloud.bigtable.data.v2.internal.session.SessionPoolInfo; +import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; import com.google.cloud.bigtable.data.v2.internal.session.fake.FakeServiceBuilder; import com.google.cloud.bigtable.data.v2.internal.session.fake.FakeSessionListener; import com.google.cloud.bigtable.data.v2.internal.session.fake.FakeSessionService; @@ -74,6 +76,7 @@ @ExtendWith(MockitoExtension.class) public class RetryingVRpcTest { private ScheduledExecutorService executor; + private BigtableTimer timer; private Server server; private ChannelPool channelPool; @@ -88,6 +91,7 @@ public class RetryingVRpcTest { @BeforeEach void setUp() throws IOException { executor = Executors.newScheduledThreadPool(4); + timer = new NettyWheelTimer("retrying-vrpc-test", com.google.common.util.concurrent.MoreExecutors.directExecutor()); server = FakeServiceBuilder.create(new FakeSessionService(executor)) .intercept(new PeerInfoInterceptor()) @@ -117,11 +121,12 @@ void tearDown() { channelPool.close(); server.shutdownNow(); executor.shutdownNow(); + timer.stop(); } @Test void noRetryTest() throws Exception { - SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew()); + SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew(), timer); FakeSessionListener sessionListener = new FakeSessionListener(); OpenSessionRequest openSessionRequest = @@ -133,7 +138,7 @@ void noRetryTest() throws Exception { .isInstanceOf(OpenSessionResponse.class); RetryingVRpc retrying = - new RetryingVRpc<>(() -> session.newCall(FakeDescriptor.SCRIPTED), executor); + new RetryingVRpc<>(() -> session.newCall(FakeDescriptor.SCRIPTED), timer); UnaryResponseFuture f = new UnaryResponseFuture<>(); retrying.start( SessionFakeScriptedRequest.newBuilder().setTag(0).build(), @@ -152,7 +157,7 @@ void noRetryTest() throws Exception { @Test public void retryServerError() throws Exception { int requestTag = 1; - SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew()); + SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew(), timer); FakeSessionListener sessionListener = new FakeSessionListener(); @@ -199,7 +204,7 @@ public void retryServerError() throws Exception { .isInstanceOf(OpenSessionResponse.class); RetryingVRpc retrying = - new RetryingVRpc<>(() -> session.newCall(FakeDescriptor.SCRIPTED), executor); + new RetryingVRpc<>(() -> session.newCall(FakeDescriptor.SCRIPTED), timer); UnaryResponseFuture f = new UnaryResponseFuture<>(); retrying.start( SessionFakeScriptedRequest.newBuilder().setTag(requestTag).build(), @@ -218,7 +223,7 @@ public void retryServerError() throws Exception { @Test public void retryDeadlineRespectedTest() throws Exception { int requestTag = 1; - SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew()); + SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew(), timer); FakeSessionListener sessionListener = new FakeSessionListener(); @@ -274,7 +279,7 @@ public void retryDeadlineRespectedTest() throws Exception { .isInstanceOf(OpenSessionResponse.class); RetryingVRpc retrying = - new RetryingVRpc<>(() -> session.newCall(FakeDescriptor.SCRIPTED), executor); + new RetryingVRpc<>(() -> session.newCall(FakeDescriptor.SCRIPTED), timer); UnaryResponseFuture f = new UnaryResponseFuture<>(); retrying.start( SessionFakeScriptedRequest.newBuilder().setTag(requestTag).build(), @@ -295,7 +300,7 @@ public void retryDeadlineRespectedTest() throws Exception { @Test public void vRpcFailureTest() throws Exception { // vrpc error on the session should not close the stream - SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew()); + SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew(), timer); FakeSessionListener sessionListener = new FakeSessionListener(); @@ -333,7 +338,7 @@ public void vRpcFailureTest() throws Exception { .isInstanceOf(OpenSessionResponse.class); RetryingVRpc retrying = - new RetryingVRpc<>(() -> session.newCall(FakeDescriptor.SCRIPTED), executor); + new RetryingVRpc<>(() -> session.newCall(FakeDescriptor.SCRIPTED), timer); UnaryResponseFuture f = new UnaryResponseFuture<>(); retrying.start( SessionFakeScriptedRequest.newBuilder().setTag(0).build(), @@ -353,7 +358,7 @@ public void vRpcFailureTest() throws Exception { @Test void cancelInScheduledState() throws Exception { - SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew()); + SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew(), timer); FakeSessionListener sessionListener = new FakeSessionListener(); @@ -392,7 +397,7 @@ void cancelInScheduledState() throws Exception { .isInstanceOf(OpenSessionResponse.class); RetryingVRpc retrying = - new RetryingVRpc<>(() -> session.newCall(FakeDescriptor.SCRIPTED), executor); + new RetryingVRpc<>(() -> session.newCall(FakeDescriptor.SCRIPTED), timer); UnaryResponseFuture f = new UnaryResponseFuture<>(); retrying.start( SessionFakeScriptedRequest.newBuilder().setTag(1).build(), diff --git a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImplTest.java b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImplTest.java index 838cea0e2ffe..c50e4f55d5c2 100644 --- a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImplTest.java +++ b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImplTest.java @@ -85,6 +85,7 @@ @ExtendWith(MockitoExtension.class) public class SessionImplTest { private ScheduledExecutorService executor; + private BigtableTimer timer; @Mock(answer = Answers.RETURNS_DEEP_STUBS) private Metrics metrics; @@ -98,6 +99,7 @@ public class SessionImplTest { @BeforeEach void setUp() throws IOException { executor = Executors.newScheduledThreadPool(4); + timer = new NettyWheelTimer("session-impl-test", com.google.common.util.concurrent.MoreExecutors.directExecutor()); server = FakeServiceBuilder.create(new FakeSessionService(executor)) .intercept(new PeerInfoInterceptor()) @@ -128,12 +130,13 @@ void setUp() throws IOException { void tearDown() { channelPool.close(); server.shutdownNow(); + timer.stop(); executor.shutdownNow(); } @Test void sessionSendAndCloseTest() throws Exception { - SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew()); + SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew(), timer); FakeSessionListener sessionListener = new FakeSessionListener(); OpenSessionRequest openSessionRequest = @@ -163,7 +166,7 @@ void sessionSendAndCloseTest() throws Exception { @Test void sessionCloseBeforeInit() throws Exception { - SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew()); + SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew(), timer); FakeSessionListener sessionListener = new FakeSessionListener(); OpenSessionRequest openSessionRequest = @@ -180,7 +183,7 @@ void sessionCloseBeforeInit() throws Exception { @Test void sessionGoAwayTest() throws Exception { - SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew()); + SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew(), timer); Duration goAwayDelay = Duration.ofMillis(500); FakeSessionListener sessionListener = new FakeSessionListener(); @@ -268,7 +271,7 @@ void sessionGoAwayTest() throws Exception { @Test void streamErrorDuringRpcTest() throws Exception { - SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew()); + SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew(), timer); FakeSessionListener sessionListener = new FakeSessionListener(); Status.Code actualCode = Status.Code.INTERNAL; @@ -337,7 +340,7 @@ void streamErrorDuringRpcTest() throws Exception { @Test void rpcErrorDuringRpcTest() throws Exception { - SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew()); + SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew(), timer); com.google.rpc.Status expectedRpcStatus = com.google.rpc.Status.newBuilder() @@ -404,7 +407,7 @@ void rpcErrorDuringRpcTest() throws Exception { @Test void localErrorTest() throws Exception { - SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew()); + SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew(), timer); FakeSessionListener sessionListener = new FakeSessionListener(); session.start( @@ -451,7 +454,8 @@ void testHeartbeat() throws Exception { Instant time = clock.instant(); - SessionImpl session = new SessionImpl(metrics, clock, poolInfo, 0, sessionFactory.createNew()); + SessionImpl session = + new SessionImpl(metrics, clock, poolInfo, 0, sessionFactory.createNew(), timer); int keepAliveDurationMs = 150; @@ -507,7 +511,7 @@ void testHeartbeat() throws Exception { @Test void testCancel() throws Exception { - SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew()); + SessionImpl session = new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew(), timer); int responseDelayMs = 200; // Configure the fake service to delay the response, giving us time to cancel it diff --git a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImplTest.java b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImplTest.java index ea142d8a7449..ceb84d4b0e59 100644 --- a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImplTest.java +++ b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImplTest.java @@ -21,6 +21,8 @@ import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyLong; import static org.mockito.ArgumentMatchers.eq; +import static org.mockito.ArgumentMatchers.longThat; +import static org.mockito.Mockito.doAnswer; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; @@ -110,6 +112,7 @@ public class SessionPoolImplTest { Correspondence.transforming(SessionRequest::getOpenSession, "open session"); private ScheduledExecutorService executor; + private NettyWheelTimer testTimer; @Mock(answer = Answers.RETURNS_DEEP_STUBS) private Metrics metrics; @@ -126,6 +129,7 @@ public class SessionPoolImplTest { @BeforeEach void setUp() throws IOException { executor = Executors.newScheduledThreadPool(4); + testTimer = new NettyWheelTimer("test-timer", com.google.common.util.concurrent.MoreExecutors.directExecutor()); fakeService = new FakeSessionService(executor); headerInterceptor = new HeaderInterceptor(); server = @@ -159,7 +163,7 @@ void setUp() throws IOException { CallOptions.DEFAULT, FakeDescriptor.FAKE_SESSION, "fake-pool", - executor); + testTimer); } @AfterEach @@ -173,6 +177,7 @@ void tearDown() { // channel gets shutdown in channelPool.close() server.shutdownNow(); executor.shutdownNow(); + testTimer.stop(); } @Test @@ -239,7 +244,7 @@ void pendingVRpcDrainTest() throws ExecutionException, InterruptedException, Tim CallOptions.DEFAULT, FakeDescriptor.FAKE_SESSION, "fake-pool", - executor); + testTimer); // session ack should be delayed by at least 10ms testSessionPool.start(OpenFakeSessionRequest.getDefaultInstance(), new Metadata()); @@ -295,7 +300,7 @@ void testCreateSessionDoesntPropagateDeadline() { CallOptions.DEFAULT, FakeDescriptor.FAKE_SESSION, "fake-pool", - executor); + testTimer); Context.current() .withDeadlineAfter(1, TimeUnit.MINUTES, executor) @@ -314,7 +319,7 @@ void testCreateSessionDoesntPropagateDeadline() { class RetrySessionCreation { private FakeClock fakeClock; - private ScheduledExecutorService mockExecutor; + private BigtableTimer mockTimer; private FakeSessionService fakeService; private ChannelPool channelPool; private SessionPoolImpl sessionPool; @@ -324,7 +329,9 @@ class RetrySessionCreation { @BeforeEach void setUp() throws Exception { fakeClock = new FakeClock(Instant.now()); - mockExecutor = mock(ScheduledExecutorService.class, Mockito.RETURNS_DEEP_STUBS); + // The retry-create-session site uses timer.newTimeout(); we capture the scheduled body on a + // mock timer and run it inline below. + mockTimer = mock(BigtableTimer.class, Mockito.RETURNS_DEEP_STUBS); Duration penalty = Duration.ofMinutes(1); SessionCreationBudget budget = new SessionCreationBudget(10, penalty, fakeClock); @@ -353,7 +360,7 @@ void setUp() throws Exception { CallOptions.DEFAULT, FakeDescriptor.FAKE_SESSION, "fake-pool", - mockExecutor, + mockTimer, budget); } @@ -371,7 +378,14 @@ void tearDown() { @Test public void test() throws Exception { ArgumentCaptor runnableCaptor = ArgumentCaptor.forClass(Runnable.class); - ArgumentCaptor delayCaptor = ArgumentCaptor.forClass(Long.class); + // Filter out watchdog (5 min, exact) and AFE prune (10 min, exact) ticks. The + // retry-create-session site computes its delay against the real wall clock and the fake + // budget clock, so it can land anywhere from sub-second to a couple of penalty intervals. + // Match anything that isn't one of the two fixed cadences. + long watchdogMs = java.time.Duration.ofMinutes(5).toMillis(); + long afePruneMs = SessionList.SESSION_LIST_PRUNE_INTERVAL.toMillis(); + java.util.function.LongPredicate isRetrySchedule = + d -> d > 0 && d != watchdogMs && d != afePruneMs; // start the pool sessionPool.start( @@ -384,12 +398,11 @@ public void test() throws Exception { // The delay should be around budget creation failure penalty. It'll take some time for the // job to exhaust all the creation budget so set a delay before verifying. int waitForReadyMs = 1000; - verify(mockExecutor, Mockito.timeout(waitForReadyMs)) - .schedule(runnableCaptor.capture(), delayCaptor.capture(), eq(TimeUnit.MILLISECONDS)); - assertThat(delayCaptor.getValue()) - .isIn( - Range.openClosed( - penalty.minus(Duration.ofMillis(waitForReadyMs)).toMillis(), penalty.toMillis())); + verify(mockTimer, Mockito.timeout(waitForReadyMs)) + .newTimeout( + runnableCaptor.capture(), + longThat(isRetrySchedule::test), + eq(TimeUnit.MILLISECONDS)); // we should have received some open requests int requestsBefore = fakeService.getOpenRequestCount().get(); @@ -407,13 +420,16 @@ public void test() throws Exception { // Advance the clock so there's more budget to create sessions fakeClock.increment(penalty.plusMillis(1)); - // Run the scheduled task, pool sizer will return a positive scale factor because there's a - // pending vrpc + // Run the scheduled timer body inline. The body executes the retry which schedules another + // timer tick. runnableCaptor.getValue().run(); // The retry task will try to open new sessions. This will fail and schedule another retry. - verify(mockExecutor, Mockito.timeout(1000).times(2)) - .schedule(any(Runnable.class), anyLong(), eq(TimeUnit.MILLISECONDS)); + verify(mockTimer, Mockito.timeout(5000).times(2)) + .newTimeout( + any(Runnable.class), + longThat(isRetrySchedule::test), + eq(TimeUnit.MILLISECONDS)); // the retry will exhaust the budget again. we should see double the request compared to // before diff --git a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/WatchdogTest.java b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/WatchdogTest.java index 94bd6fcc5049..3582e66e1971 100644 --- a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/WatchdogTest.java +++ b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/WatchdogTest.java @@ -30,9 +30,7 @@ import io.grpc.Metadata; import java.time.Duration; import java.time.Instant; -import java.util.concurrent.Executors; -import java.util.concurrent.ScheduledExecutorService; -import org.junit.jupiter.api.AfterEach; +import java.util.concurrent.TimeUnit; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; @@ -41,7 +39,7 @@ @ExtendWith(MockitoExtension.class) public class WatchdogTest { private final Duration interval = Duration.ofMinutes(5); - private ScheduledExecutorService executor; + private BigtableTimer timer; private SessionPoolImpl.Watchdog watchdog; private SessionList sessions; private FakeSession fakeSession = new FakeSession(); @@ -51,7 +49,9 @@ public class WatchdogTest { @BeforeEach void setUp() { - executor = Executors.newScheduledThreadPool(4); + // run() is invoked synchronously in tests; the timer is wired in only so the constructor + // signature is satisfied. start() / close() are not exercised here. + timer = new NoOpBigtableTimer(); now = Instant.now(); fakeClock = new FakeClock(now); @@ -59,16 +59,33 @@ void setUp() { watchdog = new Watchdog( new Object(), - executor, + timer, interval, sessions, NoopMetrics.NoopDebugTracer.INSTANCE, fakeClock); } - @AfterEach - void tearDown() { - executor.shutdownNow(); + // A BigtableTimer that drops every newTimeout(). Used because awaitCloseTest drives the watchdog + // by calling run() directly; the scheduling layer is not under test. + private static final class NoOpBigtableTimer implements BigtableTimer { + @Override + public Timeout newTimeout(Runnable task, long delay, TimeUnit unit) { + return new Timeout() { + @Override + public boolean cancel() { + return false; + } + + @Override + public boolean isCancelled() { + return true; + } + }; + } + + @Override + public void stop() {} } @Test From 21ef5c0cf023bc96fd9c4d13a2c79eb98c3a85ec Mon Sep 17 00:00:00 2001 From: Igor Bernstein Date: Fri, 12 Jun 2026 22:45:19 +0000 Subject: [PATCH 78/82] chore: introduce VOperation as the head of the middleware chain Replaces CancellableVRpc with a VOperation layer that sits above the VRpc chain rather than inside it. VOperationImpl owns the gRPC Context cancellation listener and constructs the per-op VRpcCallContext; downstream middleware just sees the chain. --- .../data/v2/internal/api/TableBase.java | 19 +--- .../internal/middleware/CancellableVRpc.java | 74 ------------- .../v2/internal/middleware/VOperation.java | 37 +++++++ .../internal/middleware/VOperationImpl.java | 100 ++++++++++++++++++ 4 files changed, 141 insertions(+), 89 deletions(-) delete mode 100644 java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/CancellableVRpc.java create mode 100644 java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VOperation.java create mode 100644 java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VOperationImpl.java diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableBase.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableBase.java index af3bf306856f..a11a05c9d4b9 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableBase.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableBase.java @@ -25,9 +25,8 @@ import com.google.cloud.bigtable.data.v2.internal.csm.Metrics; import com.google.cloud.bigtable.data.v2.internal.csm.attributes.ClientInfo; import com.google.cloud.bigtable.data.v2.internal.csm.tracers.VRpcTracer; -import com.google.cloud.bigtable.data.v2.internal.middleware.CancellableVRpc; +import com.google.cloud.bigtable.data.v2.internal.middleware.VOperationImpl; import com.google.cloud.bigtable.data.v2.internal.middleware.RetryingVRpc; -import com.google.cloud.bigtable.data.v2.internal.middleware.VRpc.VRpcCallContext; import com.google.cloud.bigtable.data.v2.internal.middleware.VRpc.VRpcListener; import com.google.cloud.bigtable.data.v2.internal.session.SessionPool; import com.google.cloud.bigtable.data.v2.internal.session.SessionPoolImpl; @@ -112,14 +111,9 @@ public void readRow( SessionReadRowRequest req, VRpcListener listener, Deadline deadline) { RetryingVRpc retry = new RetryingVRpc<>(() -> sessionPool.newCall(readRowDescriptor), timer); - VRpcTracer tracer = metrics.newTableTracer(sessionPool.getInfo(), readRowDescriptor, deadline); - VRpcCallContext ctx = VRpcCallContext.create(deadline, true, tracer); - - CancellableVRpc cancellableVRpc = - new CancellableVRpc<>(retry, Context.current()); - cancellableVRpc.start(req, ctx, listener); + new VOperationImpl<>(retry, Context.current(), tracer, deadline, true).start(req, listener); } public void mutateRow( @@ -128,16 +122,11 @@ public void mutateRow( Deadline deadline) { RetryingVRpc retry = new RetryingVRpc<>(() -> sessionPool.newCall(mutateRowDescriptor), timer); - boolean idempotent = Util.isIdempotent(req.getMutationsList()); - VRpcTracer tracer = metrics.newTableTracer(sessionPool.getInfo(), mutateRowDescriptor, deadline); - VRpcCallContext ctx = VRpcCallContext.create(deadline, idempotent, tracer); - - CancellableVRpc cancellable = - new CancellableVRpc<>(retry, Context.current()); - cancellable.start(req, ctx, listener); + new VOperationImpl<>(retry, Context.current(), tracer, deadline, idempotent) + .start(req, listener); } } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/CancellableVRpc.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/CancellableVRpc.java deleted file mode 100644 index ded284e1979c..000000000000 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/CancellableVRpc.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.bigtable.data.v2.internal.middleware; - -import com.google.common.util.concurrent.MoreExecutors; -import io.grpc.Context; -import io.grpc.Deadline; -import java.util.Optional; -import java.util.concurrent.TimeoutException; - -/** - * A {@link VRpc} decorator that propagates gRPC {@link Context} cancellation to the underlying - * VRpc. - */ -public class CancellableVRpc extends ForwardingVRpc { - private final Context context; - private final Context.CancellationListener cancellationListener; - - public CancellableVRpc(VRpc delegate, Context context) { - super(delegate); - this.context = context; - this.cancellationListener = - (c) -> { - boolean deadlineExceeded = - Optional.ofNullable(c.getDeadline()).map(Deadline::isExpired).orElse(false); - deadlineExceeded = deadlineExceeded && c.cancellationCause() instanceof TimeoutException; - // Let VRpc machinery handle deadline exceeded - if (!deadlineExceeded) { - delegate.cancel("gRPC context cancelled", c.cancellationCause()); - } - }; - } - - @Override - public void start(ReqT req, VRpcCallContext ctx, VRpcListener listener) { - context.addListener(cancellationListener, MoreExecutors.directExecutor()); - super.start( - req, ctx, new CancellationCleanupListener<>(listener, context, cancellationListener)); - } - - private static class CancellationCleanupListener extends ForwardListener { - private final Context context; - private final Context.CancellationListener cancellationListener; - - private CancellationCleanupListener( - VRpcListener delegate, - Context context, - Context.CancellationListener cancellationListener) { - super(delegate); - this.context = context; - this.cancellationListener = cancellationListener; - } - - @Override - public void onClose(VRpcResult result) { - context.removeListener(cancellationListener); - super.onClose(result); - } - } -} diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VOperation.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VOperation.java new file mode 100644 index 000000000000..fcc50904fedd --- /dev/null +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VOperation.java @@ -0,0 +1,37 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigtable.data.v2.internal.middleware; + +import com.google.cloud.bigtable.data.v2.internal.middleware.VRpc.VRpcListener; +import javax.annotation.Nullable; + +/** + * Entry point for a single user-facing operation that may translate into one or more {@link VRpc} + * attempts. + * + *

              {@code VOperation} sits above the {@code VRpc} chain. It owns the per-op {@link + * VRpc.VRpcCallContext} and the gRPC {@link io.grpc.Context} cancellation listener, so downstream + * middleware only deals with the chain itself. + */ +public interface VOperation { + + /** Start the operation. Results are delivered to {@code listener}. */ + void start(ReqT req, VRpcListener listener); + + /** Cancel a started operation. Best effort. */ + void cancel(@Nullable String message, @Nullable Throwable cause); +} diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VOperationImpl.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VOperationImpl.java new file mode 100644 index 000000000000..f00c4376350e --- /dev/null +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VOperationImpl.java @@ -0,0 +1,100 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigtable.data.v2.internal.middleware; + +import com.google.cloud.bigtable.data.v2.internal.csm.tracers.VRpcTracer; +import com.google.cloud.bigtable.data.v2.internal.middleware.ForwardingVRpc.ForwardListener; +import com.google.cloud.bigtable.data.v2.internal.middleware.VRpc.VRpcCallContext; +import com.google.cloud.bigtable.data.v2.internal.middleware.VRpc.VRpcListener; +import com.google.cloud.bigtable.data.v2.internal.middleware.VRpc.VRpcResult; +import com.google.common.util.concurrent.MoreExecutors; +import io.grpc.Context; +import io.grpc.Deadline; +import java.util.Optional; +import java.util.concurrent.TimeoutException; +import javax.annotation.Nullable; + +/** + * The single edge between the user and the VRpc middleware chain. Constructs the per-op {@link + * VRpcCallContext} and owns the gRPC {@link Context} cancellation listener. + * + *

              Precondition: {@link #cancel} must not be called before {@link #start}. + */ +public class VOperationImpl implements VOperation { + + private final VRpc chain; + private final Context grpcContext; + private final VRpcTracer tracer; + private final Deadline deadline; + private final boolean idempotent; + private final Context.CancellationListener cancellationListener; + + public VOperationImpl( + VRpc chain, + Context grpcContext, + VRpcTracer tracer, + Deadline deadline, + boolean idempotent) { + this.chain = chain; + this.grpcContext = grpcContext; + this.tracer = tracer; + this.deadline = deadline; + this.idempotent = idempotent; + this.cancellationListener = + (c) -> { + boolean deadlineExceeded = + Optional.ofNullable(c.getDeadline()).map(Deadline::isExpired).orElse(false); + deadlineExceeded = deadlineExceeded && c.cancellationCause() instanceof TimeoutException; + // Let VRpc machinery handle deadline exceeded. + if (!deadlineExceeded) { + cancel("gRPC context cancelled", c.cancellationCause()); + } + }; + } + + @Override + public void start(ReqT req, VRpcListener listener) { + VRpcCallContext ctx = VRpcCallContext.create(deadline, idempotent, tracer); + grpcContext.addListener(cancellationListener, MoreExecutors.directExecutor()); + chain.start(req, ctx, new CleanupListener<>(listener, grpcContext, cancellationListener)); + } + + @Override + public void cancel(@Nullable String message, @Nullable Throwable cause) { + chain.cancel(message, cause); + } + + private static class CleanupListener extends ForwardListener { + private final Context grpcContext; + private final Context.CancellationListener cancellationListener; + + CleanupListener( + VRpcListener delegate, + Context grpcContext, + Context.CancellationListener cancellationListener) { + super(delegate); + this.grpcContext = grpcContext; + this.cancellationListener = cancellationListener; + } + + @Override + public void onClose(VRpcResult result) { + grpcContext.removeListener(cancellationListener); + super.onClose(result); + } + } +} From 138e9b8d645a48d8feac63a29687be0fbea255d0 Mon Sep 17 00:00:00 2001 From: Igor Bernstein Date: Fri, 12 Jun 2026 23:02:34 +0000 Subject: [PATCH 79/82] chore: introduce OpExecutor; plumb VRpcCallContext.getExecutor VRpcCallContext.getExecutor() returns OpExecutor (thin wrapper with runningThread affinity tracking). VOperationImpl constructs the per-call SynchronizationContext + OpExecutor; RetryingVRpc drops its own SyncContext and dispatches via ctx.getExecutor(). The uncaught-handler safety net moves from RetryingVRpc up to VOperationImpl. --- .../v2/internal/middleware/OpExecutor.java | 59 +++++++++ .../v2/internal/middleware/RetryingVRpc.java | 112 +++++++++--------- .../internal/middleware/VOperationImpl.java | 9 +- .../data/v2/internal/middleware/VRpc.java | 22 +++- 4 files changed, 140 insertions(+), 62 deletions(-) create mode 100644 java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/OpExecutor.java diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/OpExecutor.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/OpExecutor.java new file mode 100644 index 000000000000..91669284549c --- /dev/null +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/OpExecutor.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.bigtable.data.v2.internal.middleware; + +import java.util.concurrent.Executor; + +/** + * Per-op serializing executor. Wraps a delegate {@link Executor} and tracks which thread is + * currently running a task, so callers can assert they are on the executor (analogous to {@code + * SynchronizationContext#throwIfNotInThisSynchronizationContext}). + * + *

              Backing executor evolves over the refactor — for now it is the per-call {@link + * io.grpc.SynchronizationContext} that {@link VOperationImpl} constructs. Later commits swap it + * for a {@code SerializingExecutor} over the user-callback pool, and eventually a tailored inline + * queue. + */ +public final class OpExecutor implements Executor { + + private final Executor backing; + private volatile Thread runningThread; + + public OpExecutor(Executor backing) { + this.backing = backing; + } + + @Override + public void execute(Runnable r) { + backing.execute( + () -> { + Thread prev = runningThread; + runningThread = Thread.currentThread(); + try { + r.run(); + } finally { + runningThread = prev; + } + }); + } + + public void throwIfNotInThisExecutor() { + if (Thread.currentThread() != runningThread) { + throw new IllegalStateException("Not running on this op executor"); + } + } +} diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpc.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpc.java index 0e19fe076d63..6625407dee38 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpc.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpc.java @@ -24,7 +24,6 @@ import com.google.rpc.RetryInfo; import io.grpc.Context; import io.grpc.Status; -import io.grpc.SynchronizationContext; import java.util.Optional; import java.util.concurrent.RejectedExecutionException; import java.util.concurrent.TimeUnit; @@ -47,13 +46,12 @@ public class RetryingVRpc implements VRpc { private VRpcTracer tracer; private final BigtableTimer timer; - private final SynchronizationContext syncContext; // current state and all the flags don't need to be volatile because they're only updated within - // the sync context. + // the op executor. private State currentState; private boolean started; - // Breaks the loop if uncaught exception happens during sync context execution. + // Breaks the loop if uncaught exception happens during op-executor execution. private boolean isCancelling; public RetryingVRpc(Supplier> supplier, BigtableTimer timer) { @@ -63,14 +61,6 @@ public RetryingVRpc(Supplier> supplier, BigtableTimer timer) { otelContext = io.opentelemetry.context.Context.current(); this.timer = timer; - this.syncContext = - new SynchronizationContext( - (t, e) -> { - this.cancel( - "Unexpected error while notifying the caller of RetryingVRpc. Trying to cancel" - + " vRpc to ensure consistent state", - e); - }); started = false; isCancelling = false; @@ -79,51 +69,55 @@ public RetryingVRpc(Supplier> supplier, BigtableTimer timer) { @Override public void start(ReqT req, VRpcCallContext ctx, VRpcListener listener) { - syncContext.execute( - () -> { - if (started) { - listener.onClose( - VRpcResult.createRejectedError( - Status.FAILED_PRECONDITION.withDescription("operation is already started"))); - return; - } - started = true; - - this.request = req; - this.listener = listener; - this.context = ctx; - this.tracer = context.getTracer(); - - tracer.onOperationStart(); - currentState.onStart(); - }); + ctx.getExecutor() + .execute( + () -> { + if (started) { + listener.onClose( + VRpcResult.createRejectedError( + Status.FAILED_PRECONDITION.withDescription( + "operation is already started"))); + return; + } + started = true; + + this.request = req; + this.listener = listener; + this.context = ctx; + this.tracer = context.getTracer(); + + tracer.onOperationStart(); + currentState.onStart(); + }); } @Override public void cancel(@Nullable String message, @Nullable Throwable cause) { - syncContext.execute( - () -> { - if (currentState.isDone() || isCancelling) { - LOG.fine("Ignoring cancel because the vRPC is already cancelled or done."); - return; - } - // Prevents infinite loop if there's any error thrown during this phase. - isCancelling = true; - Throwable finalCause = cause; - try { - currentState.onCancel(message, cause); - } catch (Throwable t) { - if (finalCause != null) { - finalCause.addSuppressed(t); - } else { - finalCause = t; - } - } - onStateChange( - new Done( - VRpcResult.createRejectedError( - Status.CANCELLED.withDescription(message).withCause(finalCause)))); - }); + context + .getExecutor() + .execute( + () -> { + if (currentState.isDone() || isCancelling) { + LOG.fine("Ignoring cancel because the vRPC is already cancelled or done."); + return; + } + // Prevents infinite loop if there's any error thrown during this phase. + isCancelling = true; + Throwable finalCause = cause; + try { + currentState.onCancel(message, cause); + } catch (Throwable t) { + if (finalCause != null) { + finalCause.addSuppressed(t); + } else { + finalCause = t; + } + } + onStateChange( + new Done( + VRpcResult.createRejectedError( + Status.CANCELLED.withDescription(message).withCause(finalCause)))); + }); } @Override @@ -132,7 +126,7 @@ public void requestNext() { } void onStateChange(State state) { - syncContext.throwIfNotInThisSynchronizationContext(); + context.getExecutor().throwIfNotInThisExecutor(); if (currentState.isDone()) { return; } @@ -177,7 +171,7 @@ public void onStart() { new VRpcListener() { @Override public void onMessage(RespT msg) { - syncContext.execute( + context.getExecutor().execute( () -> { if (currentState != Active.this) { LOG.log( @@ -198,7 +192,7 @@ public void onMessage(RespT msg) { @Override public void onClose(VRpcResult result) { - syncContext.execute( + context.getExecutor().execute( () -> { tracer.onAttemptFinish(result); if (currentState != Active.this) { @@ -282,12 +276,12 @@ public void onStart() { try { // Wraps go innermost so the captured gRPC + OpenTelemetry contexts are re-established at // the moment the body runs, not just while the dispatcher is invoking the outer task. - // syncContext.execute may queue the inner runnable for a later drain on a different - // thread; an outer wrap's scope would already be closed by then. + // The executor may queue the inner runnable for a later drain on a different thread; an + // outer wrap's scope would already be closed by then. future = timer.newTimeout( () -> - syncContext.execute( + context.getExecutor().execute( () -> grpcContext.wrap( () -> diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VOperationImpl.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VOperationImpl.java index f00c4376350e..4d8b7427d144 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VOperationImpl.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VOperationImpl.java @@ -24,6 +24,7 @@ import com.google.common.util.concurrent.MoreExecutors; import io.grpc.Context; import io.grpc.Deadline; +import io.grpc.SynchronizationContext; import java.util.Optional; import java.util.concurrent.TimeoutException; import javax.annotation.Nullable; @@ -68,7 +69,13 @@ public VOperationImpl( @Override public void start(ReqT req, VRpcListener listener) { - VRpcCallContext ctx = VRpcCallContext.create(deadline, idempotent, tracer); + // Per-call SynchronizationContext serializes all middleware below this layer. Uncaught task + // failures drive the chain to a terminal state so the caller's listener still gets onClose; + // RetryingVRpc.cancel is idempotent so the resulting cascade collapses safely. + SynchronizationContext syncContext = + new SynchronizationContext((t, e) -> chain.cancel("Uncaught exception in op executor", e)); + OpExecutor exec = new OpExecutor(syncContext); + VRpcCallContext ctx = VRpcCallContext.create(deadline, idempotent, tracer, exec); grpcContext.addListener(cancellationListener, MoreExecutors.directExecutor()); chain.start(req, ctx, new CleanupListener<>(listener, grpcContext, cancellationListener)); } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VRpc.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VRpc.java index a29a51fd72c6..d17f9b6eee7f 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VRpc.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VRpc.java @@ -24,6 +24,7 @@ import com.google.common.annotations.VisibleForTesting; import com.google.common.base.Ticker; import com.google.common.collect.ImmutableList; +import com.google.common.util.concurrent.MoreExecutors; import com.google.protobuf.Any; import com.google.rpc.RetryInfo; import io.grpc.Context; @@ -92,12 +93,29 @@ abstract class VRpcCallContext { public abstract VRpcTracer getTracer(); + /** + * The per-op executor that serializes all middleware below {@link VOperationImpl}. Owned by + * {@code VOperationImpl}; downstream layers use it via {@code ctx.getExecutor()}. + */ + public abstract OpExecutor getExecutor(); + // TODO: csm // Clientside metrics instrument // public abstract BigtableTracer getTracer(); + /** + * Defaults the executor to one over {@link MoreExecutors#directExecutor()}. Suitable for tests + * that do not exercise the per-op serialization; production callers go through {@link + * VOperationImpl} which supplies a real serializing executor. + */ public static VRpcCallContext create( Deadline deadline, boolean isIdempotent, VRpcTracer tracer) { + return create( + deadline, isIdempotent, tracer, new OpExecutor(MoreExecutors.directExecutor())); + } + + public static VRpcCallContext create( + Deadline deadline, boolean isIdempotent, VRpcTracer tracer, OpExecutor executor) { Deadline grpcContextDeadline = Context.current().getDeadline(); @@ -114,12 +132,12 @@ public static VRpcCallContext create( } return new AutoValue_VRpc_VRpcCallContext( - OperationInfo.create(operationTimeout, isIdempotent), "TODO", tracer); + OperationInfo.create(operationTimeout, isIdempotent), "TODO", tracer, executor); } public VRpcCallContext createForNextAttempt() { return new AutoValue_VRpc_VRpcCallContext( - getOperationInfo().createForNextAttempt(), getTraceParent(), getTracer()); + getOperationInfo().createForNextAttempt(), getTraceParent(), getTracer(), getExecutor()); } } From ff12f7b3542ea50bc03a010a64696b1602b05ba9 Mon Sep 17 00:00:00 2001 From: Igor Bernstein Date: Sat, 13 Jun 2026 14:32:02 +0000 Subject: [PATCH 80/82] chore: move callback dispatch from RetryingVRpc to VRpcImpl VRpcImpl.handle*() methods now dispatch listener callbacks via ctx.getExecutor(), with CAS STARTED->CLOSED in all three (handleError no longer proceeds from NEW) and decode moved into the executor task. RetryingVRpc.Active drops its own wrap since callbacks already arrive on the op executor. start() publishes ctx/listener only after winning the CAS so a racing duplicate can't corrupt the winner's fields. SessionPoolImpl's three direct listener.onClose paths also dispatch via ctx.getExecutor(). --- .../v2/internal/middleware/RetryingVRpc.java | 85 ++++++----- .../v2/internal/session/SessionPoolImpl.java | 21 ++- .../data/v2/internal/session/VRpcImpl.java | 135 +++++++++--------- 3 files changed, 125 insertions(+), 116 deletions(-) diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpc.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpc.java index 6625407dee38..ffaafc4e180f 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpc.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpc.java @@ -169,57 +169,52 @@ public void onStart() { request, context, new VRpcListener() { + // VRpcImpl dispatches its callbacks via ctx.getExecutor() already, so these methods + // run inside the op-executor task — no need to re-dispatch here. @Override public void onMessage(RespT msg) { - context.getExecutor().execute( - () -> { - if (currentState != Active.this) { - LOG.log( - Level.FINE, - "Discarding response {0} because the attempt is no longer active.", - msg); - return; - } - tracer.onResponseReceived(); - Stopwatch appTimer = Stopwatch.createStarted(); - try { - listener.onMessage(msg); - } finally { - tracer.recordApplicationBlockingLatencies(appTimer.elapsed()); - } - }); + if (currentState != Active.this) { + LOG.log( + Level.FINE, + "Discarding response {0} because the attempt is no longer active.", + msg); + return; + } + tracer.onResponseReceived(); + Stopwatch appTimer = Stopwatch.createStarted(); + try { + listener.onMessage(msg); + } finally { + tracer.recordApplicationBlockingLatencies(appTimer.elapsed()); + } } @Override public void onClose(VRpcResult result) { - context.getExecutor().execute( - () -> { - tracer.onAttemptFinish(result); - if (currentState != Active.this) { - LOG.log( - Level.FINE, - "Discarding server close with result {0} because the the attempt is no" - + " longer active.", - result); - return; - } - if (shouldRetry(result)) { - context = context.createForNextAttempt(); - Duration retryDelay = - Optional.ofNullable(result.getRetryInfo()) - .map(RetryInfo::getRetryDelay) - .orElse(Durations.ZERO); - if (Durations.compare(retryDelay, Durations.ZERO) > 0) { - Scheduled scheduled = new Scheduled(retryDelay); - onStateChange(scheduled); - } else { - onStateChange(new Idle()); - } - return; - } - - onStateChange(new Done(result)); - }); + tracer.onAttemptFinish(result); + if (currentState != Active.this) { + LOG.log( + Level.FINE, + "Discarding server close with result {0} because the the attempt is no" + + " longer active.", + result); + return; + } + if (shouldRetry(result)) { + context = context.createForNextAttempt(); + Duration retryDelay = + Optional.ofNullable(result.getRetryInfo()) + .map(RetryInfo::getRetryDelay) + .orElse(Durations.ZERO); + if (Durations.compare(retryDelay, Durations.ZERO) > 0) { + Scheduled scheduled = new Scheduled(retryDelay); + onStateChange(scheduled); + } else { + onStateChange(new Idle()); + } + return; + } + onStateChange(new Done(result)); } }); } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImpl.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImpl.java index eaf2289097d7..67c2ac505358 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImpl.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImpl.java @@ -542,9 +542,18 @@ private void onSessionClose( status, trailers))); for (PendingVRpc vrpc : toBeClosed) { try { - vrpc.getListener().onClose(result); + vrpc.ctx + .getExecutor() + .execute( + () -> { + try { + vrpc.getListener().onClose(result); + } catch (Throwable t) { + logger.log(Level.WARNING, "Exception when closing request", t); + } + }); } catch (Throwable t) { - logger.log(Level.WARNING, "Exception when closing request", t); + logger.log(Level.WARNING, "Exception dispatching close to op executor", t); } } } @@ -662,10 +671,11 @@ public void start(ReqT req, VRpcCallContext ctx, VRpcListener listener) { synchronized (SessionPoolImpl.this) { if (SessionPoolImpl.this.poolState != PoolState.STARTED) { - listener.onClose( + VRpcResult result = VRpcResult.createUncommitedError( Status.UNAVAILABLE.withCause( - new IllegalStateException("SessionPool is closed")))); + new IllegalStateException("SessionPool is closed"))); + ctx.getExecutor().execute(() -> listener.onClose(result)); return; } pendingRpcs.add(this); @@ -724,7 +734,8 @@ private void cancel(Status status, boolean onlyCancelPendingCall) { if (delegateToRealCall) { realCall.cancel(status.getDescription(), status.getCause()); } else { - listener.onClose(VRpcResult.createRejectedError(status)); + VRpcResult result = VRpcResult.createRejectedError(status); + ctx.getExecutor().execute(() -> listener.onClose(result)); } } diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/VRpcImpl.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/VRpcImpl.java index a2d841bd1a68..95b83b8b4cb6 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/VRpcImpl.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/VRpcImpl.java @@ -69,6 +69,7 @@ private enum State { private final VRpcDescriptor desc; final long rpcId; private VRpcListener listener; + private VRpcCallContext ctx; private PeerInfo peerInfo; private AtomicReference state; @@ -91,54 +92,55 @@ public VRpcImpl( @Override public void start(ReqT req, VRpcCallContext ctx, VRpcListener listener) { + if (!state.compareAndSet(State.NEW, State.STARTED)) { + // Lost the CAS — a duplicate start. Dispatch to the local listener/ctx without touching + // the shared fields, otherwise we'd corrupt the in-flight call owned by the CAS winner. + VRpcResult result = + VRpcResult.createRejectedError( + Status.INTERNAL.withDescription("VRpc already started in state: " + state.get())); + ctx.getExecutor().execute(() -> listener.onClose(result)); + return; + } + // Won the CAS — publish the fields. this.listener = listener; + this.ctx = ctx; - Status status; - boolean retryable = true; - - if (!state.compareAndSet(State.NEW, State.STARTED)) { - status = Status.INTERNAL.withDescription("VRpc already started in state: " + state.get()); - retryable = false; - } else if (ctx.getOperationInfo().getDeadline().timeRemaining(TimeUnit.MICROSECONDS) + if (ctx.getOperationInfo().getDeadline().timeRemaining(TimeUnit.MICROSECONDS) < TimeUnit.MILLISECONDS.toMicros(1)) { - // Don't send RPCs that don't have any hope of succeeding - status = - Status.DEADLINE_EXCEEDED.withDescription("Remaining deadline is too short to send RPC"); - retryable = false; - } else { - Metadata vRpcMetadata = - Metadata.newBuilder() - .setAttemptNumber(ctx.getOperationInfo().getAttemptNumber()) - .setTraceparent(ctx.getTraceParent()) - .build(); - ctx.getTracer().onRequestSent(peerInfo); - status = - session.startRpc( - this, - VirtualRpcRequest.newBuilder() - .setRpcId(rpcId) - .setMetadata(vRpcMetadata) - .setDeadline( - Durations.fromNanos( - ctx.getOperationInfo().getDeadline().timeRemaining(TimeUnit.NANOSECONDS))) - .setPayload(desc.encode(req)) - .build()); - // if status is not OK, the session might not be ready and the vRPC can be retried on a - // different session + state.set(State.CLOSED); + VRpcResult result = + VRpcResult.createRejectedError( + Status.DEADLINE_EXCEEDED.withDescription( + "Remaining deadline is too short to send RPC")); + ctx.getExecutor().execute(() -> listener.onClose(result)); + return; } + Metadata vRpcMetadata = + Metadata.newBuilder() + .setAttemptNumber(ctx.getOperationInfo().getAttemptNumber()) + .setTraceparent(ctx.getTraceParent()) + .build(); + ctx.getTracer().onRequestSent(peerInfo); + Status status = + session.startRpc( + this, + VirtualRpcRequest.newBuilder() + .setRpcId(rpcId) + .setMetadata(vRpcMetadata) + .setDeadline( + Durations.fromNanos( + ctx.getOperationInfo().getDeadline().timeRemaining(TimeUnit.NANOSECONDS))) + .setPayload(desc.encode(req)) + .build()); if (!status.isOk()) { debugTagTracer.checkPrecondition( state.compareAndSet(State.STARTED, State.CLOSED), "vrpc_incorrect_start_state", "VRpc has incorrect state. Expected to be started but was %s", state); - // TODO: loop through the session executor - if (retryable) { - listener.onClose(VRpcResult.createUncommitedError(status)); - } else { - listener.onClose(VRpcResult.createRejectedError(status)); - } + VRpcResult result = VRpcResult.createUncommitedError(status); + ctx.getExecutor().execute(() -> listener.onClose(result)); } } @@ -147,8 +149,7 @@ void handleSessionClose(VRpcResult result) { logger.warning("tried to close a vRPC after it was already closed state: " + state.get()); return; } - - listener.onClose(result); + ctx.getExecutor().execute(() -> listener.onClose(result)); } void handleResponse(VirtualRpcResponse response) { @@ -159,38 +160,40 @@ void handleResponse(VirtualRpcResponse response) { } // TODO: handle streaming - RespT resp; - try { - resp = desc.decode(response.getPayload()); - } catch (Throwable e) { - // TODO: notify Session to cancel the vRPC - // Right now, vrpc streaming & cancellation is not supported, so notifying SessionImpl is - // unnecessary. In the future handleResponse will need to notify that Session that the user - // was already notified of the error and no further notifications should be delivered - VRpcResult result = - VRpcResult.createLocalTransportError( - Status.INTERNAL.withDescription("Failed to decode VRpc payload").withCause(e)); - listener.onClose(result); - return; - } - - try { - listener.onMessage(resp); - } catch (Throwable e) { - VRpcResult result = VRpcResult.createUserError(e); - listener.onClose(result); - return; - } - - listener.onClose(VRpcResult.createServerOk(response)); + // Decode + callback fan-out all run on the op executor: keeps the (potentially heavy) decode + // off the session sync context, and gives every callback a single dispatcher. + ctx.getExecutor() + .execute( + () -> { + RespT resp; + try { + resp = desc.decode(response.getPayload()); + } catch (Throwable e) { + // TODO: notify Session to cancel the vRPC + listener.onClose( + VRpcResult.createLocalTransportError( + Status.INTERNAL + .withDescription("Failed to decode VRpc payload") + .withCause(e))); + return; + } + try { + listener.onMessage(resp); + } catch (Throwable e) { + listener.onClose(VRpcResult.createUserError(e)); + return; + } + listener.onClose(VRpcResult.createServerOk(response)); + }); } void handleError(VRpcResult result) { - if (state.getAndSet(State.CLOSED) == State.CLOSED) { + // CAS STARTED -> CLOSED, matching handleResponse / handleSessionClose. The previous + // getAndSet(CLOSED) would proceed from NEW and dereference null ctx/listener fields. + if (!state.compareAndSet(State.STARTED, State.CLOSED)) { return; } - - listener.onClose(result); + ctx.getExecutor().execute(() -> listener.onClose(result)); } @Override From 3d84b22aa3a3cfc32ae41f85dd22c2ebb0393aa3 Mon Sep 17 00:00:00 2001 From: Igor Bernstein Date: Wed, 17 Jun 2026 19:12:17 +0000 Subject: [PATCH 81/82] fix: arm heartbeat tick only while a vRPC is in flight The pool-wide heartbeat monitor on main only inspected sessions in inUseSessions (i.e. with an active vRPC). When heartbeat scheduling moved into SessionImpl, the per-session timer was instead armed once on ready and self-rescheduled indefinitely. The "no active vRPC" case was reduced to a sentinel (nextHeartbeat = now + FUTURE_TIME), which made checkHeartbeat no-op but kept the wheel ticking. It also left a latent force-close on idle sessions: handleHeartBeatResponse unconditionally resets nextHeartbeat to now + heartbeatInterval, so an idle session that received a server heartbeat became eligible for force-close on the next missed beat. Tie the timer to the vRPC lifecycle to match main's semantic: - handleOpenSessionResponse no longer schedules the tick. - startRpc arms the tick after setting nextHeartbeat. - handleVRpcResponse / handleVRpcErrorResponse cancel the tick. - updateState (already cancels on transition past READY). Add SessionImplTest coverage with a counting BigtableTimer wrapper that asserts (a) no schedule before any vRPC and (b) exactly one schedule/cancel per vRPC lifecycle. --- .../data/v2/internal/session/SessionImpl.java | 8 +- .../v2/internal/session/SessionImplTest.java | 135 ++++++++++++++++++ 2 files changed, 142 insertions(+), 1 deletion(-) diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImpl.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImpl.java index 832c08943913..963c7d519391 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImpl.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImpl.java @@ -388,6 +388,9 @@ public Status startRpc(VRpcImpl rpc, VirtualRpcRequest payload) { // volatile and written here without an atomicity guarantee — that is intentional; it is // only a scheduling hint (see field comment). this.nextHeartbeat = clock.instant().plus(heartbeatInterval); + // Arm the heartbeat check only while a vRPC is in flight. handleVRpcResponse / + // handleVRpcErrorResponse cancel it on completion; updateState cancels on shutdown. + scheduleHeartbeatCheck(); return Status.OK; } } @@ -495,7 +498,6 @@ private void handleOpenSessionResponse(OpenSessionResponse openSession) { } localPeerInfo = stream.getPeerInfo(); updateState(SessionState.READY); - scheduleHeartbeatCheck(); } tracer.onOpen(localPeerInfo); sessionListener.onReady(openSession); @@ -566,6 +568,8 @@ private void handleVRpcResponse(VirtualRpcResponse vrpc) { // TODO: handle multiplexing currentRpc = null; needsClose = (state == SessionState.CLOSING); + // No active vRPC means no useful heartbeat deadline; drop the in-flight tick. + cancelHeartbeatTimeout(); } if (localCancel != null) { @@ -644,6 +648,8 @@ private void handleVRpcErrorResponse(ErrorResponse error) { localRpc = currentRpc; currentRpc = null; needsClose = (state == SessionState.CLOSING); + // No active vRPC means no useful heartbeat deadline; drop the in-flight tick. + cancelHeartbeatTimeout(); } if (localCancel != null) { diff --git a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImplTest.java b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImplTest.java index c50e4f55d5c2..c37e756749d3 100644 --- a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImplTest.java +++ b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImplTest.java @@ -74,6 +74,7 @@ import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; +import java.util.concurrent.atomic.AtomicInteger; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -563,4 +564,138 @@ void testCancel() throws Exception { session.close(CloseSessionRequest.getDefaultInstance()); sessionListener.popUntil(Status.class); } + + // Regression test: a READY session with no in-flight vRPC must not have the heartbeat tick + // armed on the wheel. Without this, every idle session burns periodic wheel wake-ups, and a + // server heartbeat resetting nextHeartbeat to a near-future deadline can force-close a healthy + // idle session if subsequent heartbeats are briefly delayed. + @Test + void testHeartbeatNotScheduledWithoutVRpc() throws Exception { + CountingBigtableTimer counting = new CountingBigtableTimer(timer); + SessionImpl session = + new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew(), counting); + + FakeSessionListener sessionListener = new FakeSessionListener(); + session.start( + OpenSessionRequest.newBuilder() + .setPayload(OpenFakeSessionRequest.getDefaultInstance().toByteString()) + .build(), + new Metadata(), + sessionListener); + assertThat(sessionListener.popUntil(OpenSessionResponse.class)) + .isInstanceOf(OpenSessionResponse.class); + + // After session is READY with no vRPC, no Timeout should ever have been scheduled. Wait a + // bit so that any background tick (none expected) would have shown up. + Thread.sleep(50); + assertWithMessage("no heartbeat timer should be armed before any vRPC starts") + .that(counting.scheduleCount.get()) + .isEqualTo(0); + + session.close( + CloseSessionRequest.newBuilder() + .setReason(CloseSessionReason.CLOSE_SESSION_REASON_USER) + .setDescription("test closed session") + .build()); + assertThat(sessionListener.popUntil(Status.class)).isOk(); + } + + // Verifies the lifecycle: timer is armed exactly when a vRPC starts and cancelled when it + // completes. Paired with testHeartbeatNotScheduledWithoutVRpc, this locks in "scheduled iff + // active vRPC". + @Test + void testHeartbeatScheduledOnlyDuringVRpc() throws Exception { + CountingBigtableTimer counting = new CountingBigtableTimer(timer); + SessionImpl session = + new SessionImpl(metrics, poolInfo, 0, sessionFactory.createNew(), counting); + + FakeSessionListener sessionListener = new FakeSessionListener(); + OpenSessionRequest openSessionRequest = + OpenSessionRequest.newBuilder() + .setPayload( + OpenFakeSessionRequest.newBuilder() + .putVrpcActions( + 0, + ActionList.newBuilder() + .addActions( + Action.newBuilder() + .setResponse(VirtualRpcResponse.getDefaultInstance()) + .build()) + .build()) + .build() + .toByteString()) + .build(); + session.start(openSessionRequest, new Metadata(), sessionListener); + assertThat(sessionListener.popUntil(OpenSessionResponse.class)) + .isInstanceOf(OpenSessionResponse.class); + + assertThat(counting.scheduleCount.get()).isEqualTo(0); + + VRpc rpc = + session.newCall(FakeDescriptor.SCRIPTED); + UnaryResponseFuture f = new UnaryResponseFuture<>(); + rpc.start( + SessionFakeScriptedRequest.newBuilder().setTag(0).build(), + VRpcCallContext.create(Deadline.after(1, TimeUnit.MINUTES), true, tracer), + f); + assertThat(f.get()).isEqualTo(SessionFakeScriptedResponse.getDefaultInstance()); + + int schedulesAfterRpc = counting.scheduleCount.get(); + int cancelsAfterRpc = counting.cancelCount.get(); + assertWithMessage("startRpc must arm at least one heartbeat tick") + .that(schedulesAfterRpc) + .isAtLeast(1); + assertWithMessage("vRPC completion must cancel the heartbeat tick") + .that(cancelsAfterRpc) + .isAtLeast(1); + + // After completion no further schedules should happen — wait past one HEARTBEAT_CHECK_INTERVAL + // to give a stray tick a chance to re-arm itself if the cancel were ineffective. + Thread.sleep(SessionImpl.HEARTBEAT_CHECK_INTERVAL.toMillis() + 50); + assertWithMessage("no further heartbeat schedules after vRPC completes") + .that(counting.scheduleCount.get()) + .isEqualTo(schedulesAfterRpc); + + session.close( + CloseSessionRequest.newBuilder() + .setReason(CloseSessionReason.CLOSE_SESSION_REASON_USER) + .setDescription("test closed session") + .build()); + assertThat(sessionListener.popUntil(Status.class)).isOk(); + } + + // Wraps a real BigtableTimer and counts newTimeout / cancel calls. Used to assert that the + // heartbeat tick is only armed while a vRPC is in flight. + private static final class CountingBigtableTimer implements BigtableTimer { + private final BigtableTimer delegate; + final AtomicInteger scheduleCount = new AtomicInteger(); + final AtomicInteger cancelCount = new AtomicInteger(); + + CountingBigtableTimer(BigtableTimer delegate) { + this.delegate = delegate; + } + + @Override + public Timeout newTimeout(Runnable task, long delay, TimeUnit unit) { + scheduleCount.incrementAndGet(); + Timeout inner = delegate.newTimeout(task, delay, unit); + return new Timeout() { + @Override + public boolean cancel() { + cancelCount.incrementAndGet(); + return inner.cancel(); + } + + @Override + public boolean isCancelled() { + return inner.isCancelled(); + } + }; + } + + @Override + public void stop() { + delegate.stop(); + } + } } From be630acd2070e49db0eca48b4f7eda373bfc01f1 Mon Sep 17 00:00:00 2001 From: Igor Bernstein Date: Mon, 22 Jun 2026 21:18:26 +0000 Subject: [PATCH 82/82] chore: apply fmt-maven-plugin --- .../v2/internal/api/AuthorizedViewAsync.java | 2 +- .../bigtable/data/v2/internal/api/Client.java | 2 +- .../v2/internal/api/MaterializedViewAsync.java | 2 +- .../data/v2/internal/api/TableAsync.java | 2 +- .../data/v2/internal/api/TableBase.java | 7 +++---- .../data/v2/internal/middleware/OpExecutor.java | 4 ++-- .../v2/internal/middleware/RetryingVRpc.java | 17 +++++++++-------- .../data/v2/internal/middleware/VRpc.java | 3 +-- .../v2/internal/session/NettyWheelTimer.java | 3 +-- .../data/v2/internal/session/SessionImpl.java | 4 +--- .../v2/internal/session/SessionPoolImpl.java | 6 ++---- .../data/v2/internal/api/TableBaseTest.java | 2 +- .../v2/internal/csm/tracers/VRpcTracerTest.java | 6 ++++-- .../internal/middleware/RetryingVRpcTest.java | 6 ++++-- .../v2/internal/session/SessionImplTest.java | 4 +++- .../internal/session/SessionPoolImplTest.java | 17 ++++++----------- 16 files changed, 41 insertions(+), 46 deletions(-) diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/AuthorizedViewAsync.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/AuthorizedViewAsync.java index fdb79871324f..2c4bb29f1c0e 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/AuthorizedViewAsync.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/AuthorizedViewAsync.java @@ -25,8 +25,8 @@ import com.google.cloud.bigtable.data.v2.internal.channels.ChannelPool; import com.google.cloud.bigtable.data.v2.internal.csm.Metrics; import com.google.cloud.bigtable.data.v2.internal.csm.attributes.ClientInfo; -import com.google.cloud.bigtable.data.v2.internal.session.SessionPool; import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; +import com.google.cloud.bigtable.data.v2.internal.session.SessionPool; import com.google.cloud.bigtable.data.v2.internal.session.VRpcDescriptor; import com.google.cloud.bigtable.data.v2.internal.util.ClientConfigurationManager; import io.grpc.CallOptions; diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/Client.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/Client.java index 5214c2480131..6cb909d96b95 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/Client.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/Client.java @@ -33,9 +33,9 @@ import com.google.cloud.bigtable.data.v2.internal.csm.MetricsImpl; import com.google.cloud.bigtable.data.v2.internal.csm.NoopMetrics; import com.google.cloud.bigtable.data.v2.internal.csm.attributes.ClientInfo; +import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; import com.google.cloud.bigtable.data.v2.internal.session.NettyWheelTimer; import com.google.cloud.bigtable.data.v2.internal.session.SessionPool; -import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; import com.google.cloud.bigtable.data.v2.internal.util.ClientConfigurationManager; import io.grpc.CallOptions; import io.opencensus.stats.Stats; diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/MaterializedViewAsync.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/MaterializedViewAsync.java index 81a76f876fe6..e83c2acde29e 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/MaterializedViewAsync.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/MaterializedViewAsync.java @@ -22,8 +22,8 @@ import com.google.cloud.bigtable.data.v2.internal.channels.ChannelPool; import com.google.cloud.bigtable.data.v2.internal.csm.Metrics; import com.google.cloud.bigtable.data.v2.internal.csm.attributes.ClientInfo; -import com.google.cloud.bigtable.data.v2.internal.session.SessionPool; import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; +import com.google.cloud.bigtable.data.v2.internal.session.SessionPool; import com.google.cloud.bigtable.data.v2.internal.session.VRpcDescriptor; import com.google.cloud.bigtable.data.v2.internal.util.ClientConfigurationManager; import io.grpc.CallOptions; diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableAsync.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableAsync.java index 8fb0ac27a2d3..a33dd459b6e3 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableAsync.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableAsync.java @@ -26,8 +26,8 @@ import com.google.cloud.bigtable.data.v2.internal.channels.ChannelPool; import com.google.cloud.bigtable.data.v2.internal.csm.Metrics; import com.google.cloud.bigtable.data.v2.internal.csm.attributes.ClientInfo; -import com.google.cloud.bigtable.data.v2.internal.session.SessionPool; import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; +import com.google.cloud.bigtable.data.v2.internal.session.SessionPool; import com.google.cloud.bigtable.data.v2.internal.session.VRpcDescriptor; import com.google.cloud.bigtable.data.v2.internal.util.ClientConfigurationManager; import io.grpc.CallOptions; diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableBase.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableBase.java index a11a05c9d4b9..590f46b47b99 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableBase.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/api/TableBase.java @@ -25,12 +25,12 @@ import com.google.cloud.bigtable.data.v2.internal.csm.Metrics; import com.google.cloud.bigtable.data.v2.internal.csm.attributes.ClientInfo; import com.google.cloud.bigtable.data.v2.internal.csm.tracers.VRpcTracer; -import com.google.cloud.bigtable.data.v2.internal.middleware.VOperationImpl; import com.google.cloud.bigtable.data.v2.internal.middleware.RetryingVRpc; +import com.google.cloud.bigtable.data.v2.internal.middleware.VOperationImpl; import com.google.cloud.bigtable.data.v2.internal.middleware.VRpc.VRpcListener; +import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; import com.google.cloud.bigtable.data.v2.internal.session.SessionPool; import com.google.cloud.bigtable.data.v2.internal.session.SessionPoolImpl; -import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; import com.google.cloud.bigtable.data.v2.internal.session.VRpcDescriptor; import com.google.cloud.bigtable.data.v2.internal.util.ClientConfigurationManager; import com.google.common.annotations.VisibleForTesting; @@ -76,8 +76,7 @@ static TableBase createAndStart( sessionPool.start(openReq, new Metadata()); - return new TableBase( - sessionPool, readRowDescriptor, mutateRowDescriptor, metrics, timer); + return new TableBase(sessionPool, readRowDescriptor, mutateRowDescriptor, metrics, timer); } @VisibleForTesting diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/OpExecutor.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/OpExecutor.java index 91669284549c..da3dbe49e343 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/OpExecutor.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/OpExecutor.java @@ -24,8 +24,8 @@ * SynchronizationContext#throwIfNotInThisSynchronizationContext}). * *

              Backing executor evolves over the refactor — for now it is the per-call {@link - * io.grpc.SynchronizationContext} that {@link VOperationImpl} constructs. Later commits swap it - * for a {@code SerializingExecutor} over the user-callback pool, and eventually a tailored inline + * io.grpc.SynchronizationContext} that {@link VOperationImpl} constructs. Later commits swap it for + * a {@code SerializingExecutor} over the user-callback pool, and eventually a tailored inline * queue. */ public final class OpExecutor implements Executor { diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpc.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpc.java index ffaafc4e180f..8efd123137da 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpc.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpc.java @@ -276,14 +276,15 @@ public void onStart() { future = timer.newTimeout( () -> - context.getExecutor().execute( - () -> - grpcContext.wrap( - () -> - otelContext - .wrap(() -> onStateChange(new Idle())) - .run()) - .run()), + context + .getExecutor() + .execute( + () -> + grpcContext + .wrap( + () -> + otelContext.wrap(() -> onStateChange(new Idle())).run()) + .run()), Durations.toMillis(retryDelay), TimeUnit.MILLISECONDS); } catch (RejectedExecutionException e) { diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VRpc.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VRpc.java index d17f9b6eee7f..5d98f13bfdde 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VRpc.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/middleware/VRpc.java @@ -110,8 +110,7 @@ abstract class VRpcCallContext { */ public static VRpcCallContext create( Deadline deadline, boolean isIdempotent, VRpcTracer tracer) { - return create( - deadline, isIdempotent, tracer, new OpExecutor(MoreExecutors.directExecutor())); + return create(deadline, isIdempotent, tracer, new OpExecutor(MoreExecutors.directExecutor())); } public static VRpcCallContext create( diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/NettyWheelTimer.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/NettyWheelTimer.java index 825065055110..6d66b06ff09d 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/NettyWheelTimer.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/NettyWheelTimer.java @@ -49,8 +49,7 @@ public NettyWheelTimer(String name, Executor dispatcher) { @Override public Timeout newTimeout(Runnable task, long delay, TimeUnit unit) { - return new TimeoutHandle( - delegate.newTimeout(ignored -> dispatcher.execute(task), delay, unit)); + return new TimeoutHandle(delegate.newTimeout(ignored -> dispatcher.execute(task), delay, unit)); } @Override diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImpl.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImpl.java index 963c7d519391..fdaa3f2ed0ad 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImpl.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImpl.java @@ -411,9 +411,7 @@ public void cancelRpc(long rpcId, @Nullable String message, @Nullable Throwable private void scheduleHeartbeatCheck() { heartbeatTimeout = timer.newTimeout( - this::checkHeartbeat, - HEARTBEAT_CHECK_INTERVAL.toMillis(), - TimeUnit.MILLISECONDS); + this::checkHeartbeat, HEARTBEAT_CHECK_INTERVAL.toMillis(), TimeUnit.MILLISECONDS); } @GuardedBy("lock") diff --git a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImpl.java b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImpl.java index 67c2ac505358..8f2d6e8bd85d 100644 --- a/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImpl.java +++ b/java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImpl.java @@ -673,8 +673,7 @@ public void start(ReqT req, VRpcCallContext ctx, VRpcListener listener) { if (SessionPoolImpl.this.poolState != PoolState.STARTED) { VRpcResult result = VRpcResult.createUncommitedError( - Status.UNAVAILABLE.withCause( - new IllegalStateException("SessionPool is closed"))); + Status.UNAVAILABLE.withCause(new IllegalStateException("SessionPool is closed"))); ctx.getExecutor().execute(() -> listener.onClose(result)); return; } @@ -771,8 +770,7 @@ private BigtableTimer.Timeout monitorDeadline(Deadline deadline) { return timer.newTimeout( () -> cancel( - Status.DEADLINE_EXCEEDED.withDescription( - "Deadline exceeded waiting for session"), + Status.DEADLINE_EXCEEDED.withDescription("Deadline exceeded waiting for session"), true), deadline.timeRemaining(TimeUnit.NANOSECONDS), TimeUnit.NANOSECONDS); diff --git a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/api/TableBaseTest.java b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/api/TableBaseTest.java index b2b6e819e959..089a78cb30b2 100644 --- a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/api/TableBaseTest.java +++ b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/api/TableBaseTest.java @@ -27,9 +27,9 @@ import com.google.cloud.bigtable.data.v2.internal.csm.NoopMetrics; import com.google.cloud.bigtable.data.v2.internal.csm.attributes.ClientInfo; import com.google.cloud.bigtable.data.v2.internal.middleware.VRpc; +import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; import com.google.cloud.bigtable.data.v2.internal.session.SessionPool; import com.google.cloud.bigtable.data.v2.internal.session.SessionPoolInfo; -import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; import com.google.cloud.bigtable.data.v2.internal.session.VRpcDescriptor; import com.google.protobuf.Message; import io.grpc.Deadline; diff --git a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/csm/tracers/VRpcTracerTest.java b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/csm/tracers/VRpcTracerTest.java index ec7dc6a01245..b9765d4e777b 100644 --- a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/csm/tracers/VRpcTracerTest.java +++ b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/csm/tracers/VRpcTracerTest.java @@ -44,11 +44,11 @@ import com.google.cloud.bigtable.data.v2.internal.csm.attributes.MethodInfo; import com.google.cloud.bigtable.data.v2.internal.middleware.RetryingVRpc; import com.google.cloud.bigtable.data.v2.internal.middleware.VRpc; +import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; import com.google.cloud.bigtable.data.v2.internal.session.FakeDescriptor; import com.google.cloud.bigtable.data.v2.internal.session.NettyWheelTimer; import com.google.cloud.bigtable.data.v2.internal.session.Session; import com.google.cloud.bigtable.data.v2.internal.session.SessionFactory; -import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; import com.google.cloud.bigtable.data.v2.internal.session.SessionImpl; import com.google.cloud.bigtable.data.v2.internal.session.SessionPoolInfo; import com.google.cloud.bigtable.data.v2.internal.session.fake.FakeServiceBuilder; @@ -118,7 +118,9 @@ public class VRpcTracerTest { @BeforeEach void setUp() throws IOException { executor = Executors.newScheduledThreadPool(4); - timer = new NettyWheelTimer("vrpc-tracer-test", com.google.common.util.concurrent.MoreExecutors.directExecutor()); + timer = + new NettyWheelTimer( + "vrpc-tracer-test", com.google.common.util.concurrent.MoreExecutors.directExecutor()); server = FakeServiceBuilder.create(new FakeSessionService(executor)) .intercept(new PeerInfoInterceptor()) diff --git a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpcTest.java b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpcTest.java index e823db5b3aea..6776aef7ef48 100644 --- a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpcTest.java +++ b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/middleware/RetryingVRpcTest.java @@ -37,12 +37,12 @@ import com.google.cloud.bigtable.data.v2.internal.csm.NoopMetrics; import com.google.cloud.bigtable.data.v2.internal.csm.attributes.ClientInfo; import com.google.cloud.bigtable.data.v2.internal.csm.tracers.VRpcTracer; +import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; import com.google.cloud.bigtable.data.v2.internal.session.FakeDescriptor; import com.google.cloud.bigtable.data.v2.internal.session.NettyWheelTimer; import com.google.cloud.bigtable.data.v2.internal.session.SessionFactory; import com.google.cloud.bigtable.data.v2.internal.session.SessionImpl; import com.google.cloud.bigtable.data.v2.internal.session.SessionPoolInfo; -import com.google.cloud.bigtable.data.v2.internal.session.BigtableTimer; import com.google.cloud.bigtable.data.v2.internal.session.fake.FakeServiceBuilder; import com.google.cloud.bigtable.data.v2.internal.session.fake.FakeSessionListener; import com.google.cloud.bigtable.data.v2.internal.session.fake.FakeSessionService; @@ -91,7 +91,9 @@ public class RetryingVRpcTest { @BeforeEach void setUp() throws IOException { executor = Executors.newScheduledThreadPool(4); - timer = new NettyWheelTimer("retrying-vrpc-test", com.google.common.util.concurrent.MoreExecutors.directExecutor()); + timer = + new NettyWheelTimer( + "retrying-vrpc-test", com.google.common.util.concurrent.MoreExecutors.directExecutor()); server = FakeServiceBuilder.create(new FakeSessionService(executor)) .intercept(new PeerInfoInterceptor()) diff --git a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImplTest.java b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImplTest.java index c37e756749d3..c7739de633ad 100644 --- a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImplTest.java +++ b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionImplTest.java @@ -100,7 +100,9 @@ public class SessionImplTest { @BeforeEach void setUp() throws IOException { executor = Executors.newScheduledThreadPool(4); - timer = new NettyWheelTimer("session-impl-test", com.google.common.util.concurrent.MoreExecutors.directExecutor()); + timer = + new NettyWheelTimer( + "session-impl-test", com.google.common.util.concurrent.MoreExecutors.directExecutor()); server = FakeServiceBuilder.create(new FakeSessionService(executor)) .intercept(new PeerInfoInterceptor()) diff --git a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImplTest.java b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImplTest.java index ceb84d4b0e59..21419ce4bf09 100644 --- a/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImplTest.java +++ b/java-bigtable/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/data/v2/internal/session/SessionPoolImplTest.java @@ -19,10 +19,8 @@ import static com.google.common.truth.Truth.assertThat; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.ArgumentMatchers.any; -import static org.mockito.ArgumentMatchers.anyLong; import static org.mockito.ArgumentMatchers.eq; import static org.mockito.ArgumentMatchers.longThat; -import static org.mockito.Mockito.doAnswer; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; @@ -55,7 +53,6 @@ import com.google.cloud.bigtable.data.v2.internal.session.fake.PeerInfoInterceptor; import com.google.cloud.bigtable.data.v2.internal.util.ClientConfigurationManager; import com.google.common.base.Suppliers; -import com.google.common.collect.Range; import com.google.common.truth.Correspondence; import com.google.protobuf.ByteString; import com.google.protobuf.util.Durations; @@ -129,7 +126,9 @@ public class SessionPoolImplTest { @BeforeEach void setUp() throws IOException { executor = Executors.newScheduledThreadPool(4); - testTimer = new NettyWheelTimer("test-timer", com.google.common.util.concurrent.MoreExecutors.directExecutor()); + testTimer = + new NettyWheelTimer( + "test-timer", com.google.common.util.concurrent.MoreExecutors.directExecutor()); fakeService = new FakeSessionService(executor); headerInterceptor = new HeaderInterceptor(); server = @@ -163,7 +162,7 @@ void setUp() throws IOException { CallOptions.DEFAULT, FakeDescriptor.FAKE_SESSION, "fake-pool", - testTimer); + testTimer); } @AfterEach @@ -400,9 +399,7 @@ public void test() throws Exception { int waitForReadyMs = 1000; verify(mockTimer, Mockito.timeout(waitForReadyMs)) .newTimeout( - runnableCaptor.capture(), - longThat(isRetrySchedule::test), - eq(TimeUnit.MILLISECONDS)); + runnableCaptor.capture(), longThat(isRetrySchedule::test), eq(TimeUnit.MILLISECONDS)); // we should have received some open requests int requestsBefore = fakeService.getOpenRequestCount().get(); @@ -427,9 +424,7 @@ public void test() throws Exception { // The retry task will try to open new sessions. This will fail and schedule another retry. verify(mockTimer, Mockito.timeout(5000).times(2)) .newTimeout( - any(Runnable.class), - longThat(isRetrySchedule::test), - eq(TimeUnit.MILLISECONDS)); + any(Runnable.class), longThat(isRetrySchedule::test), eq(TimeUnit.MILLISECONDS)); // the retry will exhaust the budget again. we should see double the request compared to // before